@newpeak/barista-cli 0.2.276 → 0.2.277
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/commands/liberica/teams/employee-groups/employee-groups.d.ts +3 -0
- package/dist/commands/liberica/teams/employee-groups/employee-groups.d.ts.map +1 -0
- package/dist/commands/liberica/teams/employee-groups/employee-groups.js +71 -0
- package/dist/commands/liberica/teams/employee-groups/employee-groups.js.map +1 -0
- package/dist/commands/liberica/teams/employee-groups/index.d.ts +2 -0
- package/dist/commands/liberica/teams/employee-groups/index.d.ts.map +1 -0
- package/dist/commands/liberica/teams/employee-groups/index.js +2 -0
- package/dist/commands/liberica/teams/employee-groups/index.js.map +1 -0
- package/dist/commands/liberica/teams/index.d.ts.map +1 -1
- package/dist/commands/liberica/teams/index.js +2 -0
- package/dist/commands/liberica/teams/index.js.map +1 -1
- package/dist/core/api/client.d.ts +8 -0
- package/dist/core/api/client.d.ts.map +1 -1
- package/dist/core/api/client.js +32 -0
- package/dist/core/api/client.js.map +1 -1
- package/dist/types/team-employee-group.d.ts +41 -0
- package/dist/types/team-employee-group.d.ts.map +1 -0
- package/dist/types/team-employee-group.js +11 -0
- package/dist/types/team-employee-group.js.map +1 -0
- package/package.json +1 -1
- package/skills/barista-cli/data/commands.json +10 -1
- package/skills/barista-cli/data/commands.yaml +7 -1
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Team employee groups (human / AI bot) types.
|
|
3
|
+
*
|
|
4
|
+
* Mirrors the backend contract for `GET /api/enterprise/team/employee/groups`
|
|
5
|
+
* (liberica requirement 20261014067 / TYP-7a81c6ad).
|
|
6
|
+
*
|
|
7
|
+
* IMPORTANT: the CLI must NOT re-implement human/AI classification locally —
|
|
8
|
+
* every field is consumed verbatim from the backend response.
|
|
9
|
+
*/
|
|
10
|
+
/**
|
|
11
|
+
* A single employee entry in a group list.
|
|
12
|
+
* Snowflake IDs use `string` to avoid BigInteger precision loss.
|
|
13
|
+
*/
|
|
14
|
+
export interface TeamEmployeeGroupMember {
|
|
15
|
+
employeeId: string;
|
|
16
|
+
employeeCode?: string;
|
|
17
|
+
employeeName?: string;
|
|
18
|
+
employeeEmail?: string;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Grouped employee payload returned by the backend.
|
|
22
|
+
*/
|
|
23
|
+
export interface TeamEmployeeGroupsData {
|
|
24
|
+
aiBotEnable: boolean;
|
|
25
|
+
humanCount: number;
|
|
26
|
+
aiBotCount: number;
|
|
27
|
+
humanEmployees: TeamEmployeeGroupMember[];
|
|
28
|
+
aiBotEmployees: TeamEmployeeGroupMember[];
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* API response wrapper for the employee groups endpoint.
|
|
32
|
+
*/
|
|
33
|
+
export interface TeamEmployeeGroupsApiResponse {
|
|
34
|
+
success: boolean;
|
|
35
|
+
data?: TeamEmployeeGroupsData;
|
|
36
|
+
error?: {
|
|
37
|
+
code: string;
|
|
38
|
+
message: string;
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
//# sourceMappingURL=team-employee-group.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"team-employee-group.d.ts","sourceRoot":"","sources":["../../src/types/team-employee-group.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH;;;GAGG;AACH,MAAM,WAAW,uBAAuB;IACtC,UAAU,EAAE,MAAM,CAAC;IACnB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED;;GAEG;AACH,MAAM,WAAW,sBAAsB;IACrC,WAAW,EAAE,OAAO,CAAC;IACrB,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,cAAc,EAAE,uBAAuB,EAAE,CAAC;IAC1C,cAAc,EAAE,uBAAuB,EAAE,CAAC;CAC3C;AAED;;GAEG;AACH,MAAM,WAAW,6BAA6B;IAC5C,OAAO,EAAE,OAAO,CAAC;IACjB,IAAI,CAAC,EAAE,sBAAsB,CAAC;IAC9B,KAAK,CAAC,EAAE;QACN,IAAI,EAAE,MAAM,CAAC;QACb,OAAO,EAAE,MAAM,CAAC;KACjB,CAAC;CACH"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Team employee groups (human / AI bot) types.
|
|
3
|
+
*
|
|
4
|
+
* Mirrors the backend contract for `GET /api/enterprise/team/employee/groups`
|
|
5
|
+
* (liberica requirement 20261014067 / TYP-7a81c6ad).
|
|
6
|
+
*
|
|
7
|
+
* IMPORTANT: the CLI must NOT re-implement human/AI classification locally —
|
|
8
|
+
* every field is consumed verbatim from the backend response.
|
|
9
|
+
*/
|
|
10
|
+
export {};
|
|
11
|
+
//# sourceMappingURL=team-employee-group.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"team-employee-group.js","sourceRoot":"","sources":["../../src/types/team-employee-group.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"_metadata": {
|
|
3
|
-
"generatedAt": "2026-10-
|
|
3
|
+
"generatedAt": "2026-10-14T13:19:54.328Z",
|
|
4
4
|
"source": "src/commands/",
|
|
5
5
|
"generator": "src/skills/barista-cli/scripts/generate.ts"
|
|
6
6
|
},
|
|
@@ -2918,6 +2918,15 @@
|
|
|
2918
2918
|
}
|
|
2919
2919
|
}
|
|
2920
2920
|
},
|
|
2921
|
+
"teams/employee-groups": {
|
|
2922
|
+
"group": "团队",
|
|
2923
|
+
"commands": {
|
|
2924
|
+
"employee-groups": {
|
|
2925
|
+
"description": "Query current tenant human / AI bot employee groups (backend-classified)",
|
|
2926
|
+
"json": true
|
|
2927
|
+
}
|
|
2928
|
+
}
|
|
2929
|
+
},
|
|
2921
2930
|
"teams/fp-config": {
|
|
2922
2931
|
"group": "团队",
|
|
2923
2932
|
"description": "Manage FP configuration parameters",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# ★ 自动生成。修改源码后重新生成:npm run generate-skills-data
|
|
2
|
-
# ★ 生成时间: 2026-10-
|
|
2
|
+
# ★ 生成时间: 2026-10-14T13:19:54.347Z
|
|
3
3
|
|
|
4
4
|
global:
|
|
5
5
|
# ── 全局 ──
|
|
@@ -1865,6 +1865,12 @@ liberica:
|
|
|
1865
1865
|
histogram:
|
|
1866
1866
|
description: "Bot run efficiency histogram by hour / day of week / day of month"
|
|
1867
1867
|
options: [--json]
|
|
1868
|
+
teams/employee-groups:
|
|
1869
|
+
group: "团队"
|
|
1870
|
+
commands:
|
|
1871
|
+
employee-groups:
|
|
1872
|
+
description: "Query current tenant human / AI bot employee groups (backend-classified)"
|
|
1873
|
+
options: [--json]
|
|
1868
1874
|
teams/fp-config:
|
|
1869
1875
|
group: "团队"
|
|
1870
1876
|
description: "Manage FP configuration parameters"
|