feat(cli): show acting staff identity per enterprise
- hose-use whoami: 逐企业一行显示执行身份(姓名 + 工号 + 来源) - corps ls: 新增「员工姓名」列 - context/status 保持全局诊断
This commit is contained in:
1 parent
dda9b2c7a0
commit
a797196caa
6 files changed
+499
-423
No files matched your search
@@ -48,7 +48,7 @@ describe("CLI - 上下文自省与 AI PRO 状态命令 (Zero-Source-Reading Cont
|
||||
expect(data.runtime.configFile).toBeDefined();
|
||||
});
|
||||
|
||||
test("hose-use status 与 whoami 别名成功解析至 context", async () => {
|
||||
test("hose-use status 解析至 context,whoami 输出逐企业执行身份", async () => {
|
||||
const resStatus = await runCli(["status", "--json"]);
|
||||
expect(resStatus.exitCode).toBe(0);
|
||||
const dataStatus = JSON.parse(resStatus.stdout);
|
||||
@@ -57,7 +57,7 @@ describe("CLI - 上下文自省与 AI PRO 状态命令 (Zero-Source-Reading Cont
|
||||
const resWhoami = await runCli(["whoami", "--json"]);
|
||||
expect(resWhoami.exitCode).toBe(0);
|
||||
const dataWhoami = JSON.parse(resWhoami.stdout);
|
||||
expect(dataWhoami.tool).toBe("hose-use");
|
||||
expect(Array.isArray(dataWhoami.corporations)).toBe(true);
|
||||
});
|
||||
|
||||
test("hose-aipro status 输出 AI PRO 专属上下文", async () => {
|
||||
|
||||
Reference in new issue
Block a user