@newpeak/barista-cli 0.2.244 → 0.2.245
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/system/ai-conversation/get.d.ts +3 -0
- package/dist/commands/liberica/system/ai-conversation/get.d.ts.map +1 -0
- package/dist/commands/liberica/system/ai-conversation/get.js +66 -0
- package/dist/commands/liberica/system/ai-conversation/get.js.map +1 -0
- package/dist/commands/liberica/system/ai-conversation/index.d.ts +3 -0
- package/dist/commands/liberica/system/ai-conversation/index.d.ts.map +1 -0
- package/dist/commands/liberica/system/ai-conversation/index.js +13 -0
- package/dist/commands/liberica/system/ai-conversation/index.js.map +1 -0
- package/dist/commands/liberica/system/ai-conversation/list.d.ts +3 -0
- package/dist/commands/liberica/system/ai-conversation/list.d.ts.map +1 -0
- package/dist/commands/liberica/system/ai-conversation/list.js +101 -0
- package/dist/commands/liberica/system/ai-conversation/list.js.map +1 -0
- package/dist/commands/liberica/system/ai-conversation/overview.d.ts +3 -0
- package/dist/commands/liberica/system/ai-conversation/overview.d.ts.map +1 -0
- package/dist/commands/liberica/system/ai-conversation/overview.js +91 -0
- package/dist/commands/liberica/system/ai-conversation/overview.js.map +1 -0
- package/dist/commands/liberica/system/index.d.ts.map +1 -1
- package/dist/commands/liberica/system/index.js +2 -0
- package/dist/commands/liberica/system/index.js.map +1 -1
- package/dist/core/api/client.d.ts +15 -0
- package/dist/core/api/client.d.ts.map +1 -1
- package/dist/core/api/client.js +70 -0
- package/dist/core/api/client.js.map +1 -1
- package/dist/types/ai-conversation.d.ts +51 -0
- package/dist/types/ai-conversation.d.ts.map +1 -0
- package/dist/types/ai-conversation.js +2 -0
- package/dist/types/ai-conversation.js.map +1 -0
- package/package.json +1 -1
- package/skills/barista-cli/data/commands.json +19 -1
- package/skills/barista-cli/data/commands.yaml +14 -1
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { PageResult } from './index.js';
|
|
2
|
+
export interface AiConversationLogItem {
|
|
3
|
+
id: string;
|
|
4
|
+
conversationId: string;
|
|
5
|
+
appId: string;
|
|
6
|
+
appName: string;
|
|
7
|
+
userId: string;
|
|
8
|
+
userName: string;
|
|
9
|
+
model: string;
|
|
10
|
+
totalTokens: number;
|
|
11
|
+
inputTokens: number;
|
|
12
|
+
outputTokens: number;
|
|
13
|
+
duration: number;
|
|
14
|
+
status: 'success' | 'failed' | 'timeout';
|
|
15
|
+
errorMessage?: string;
|
|
16
|
+
createdAt: string;
|
|
17
|
+
updatedAt: string;
|
|
18
|
+
}
|
|
19
|
+
export interface AiConversationPageResult extends PageResult<AiConversationLogItem> {
|
|
20
|
+
totalTokens?: number;
|
|
21
|
+
totalInputTokens?: number;
|
|
22
|
+
totalOutputTokens?: number;
|
|
23
|
+
successCount?: number;
|
|
24
|
+
failedCount?: number;
|
|
25
|
+
}
|
|
26
|
+
export interface AiConversationOverview {
|
|
27
|
+
totalConversations: number;
|
|
28
|
+
totalTokens: number;
|
|
29
|
+
totalInputTokens: number;
|
|
30
|
+
totalOutputTokens: number;
|
|
31
|
+
successCount: number;
|
|
32
|
+
failedCount: number;
|
|
33
|
+
timeoutCount: number;
|
|
34
|
+
avgDuration: number;
|
|
35
|
+
avgTokensPerConversation: number;
|
|
36
|
+
topModels: Array<{
|
|
37
|
+
model: string;
|
|
38
|
+
count: number;
|
|
39
|
+
totalTokens: number;
|
|
40
|
+
}>;
|
|
41
|
+
topApps: Array<{
|
|
42
|
+
appId: string;
|
|
43
|
+
appName: string;
|
|
44
|
+
count: number;
|
|
45
|
+
}>;
|
|
46
|
+
dateRange: {
|
|
47
|
+
startDate: string;
|
|
48
|
+
endDate: string;
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
//# sourceMappingURL=ai-conversation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ai-conversation.d.ts","sourceRoot":"","sources":["../../src/types/ai-conversation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE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AAC,CAAC;IACH,OAAO,EAAE,KAAK,CAAC;QACb,KAAK,EAAE,MAAM,CAAC;QACd,OAAO,EAAE,MAAM,CAAC;QAChB,KAAK,EAAE,MAAM,CAAC;KACf,CAAC,CAAC;IACH,SAAS,EAAE;QACT,SAAS,EAAE,MAAM,CAAC;QAClB,OAAO,EAAE,MAAM,CAAC;KACjB,CAAC;CACH"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ai-conversation.js","sourceRoot":"","sources":["../../src/types/ai-conversation.ts"],"names":[],"mappings":""}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"_metadata": {
|
|
3
|
-
"generatedAt": "2026-08-
|
|
3
|
+
"generatedAt": "2026-08-24T15:46:35.687Z",
|
|
4
4
|
"source": "src/commands/",
|
|
5
5
|
"generator": "src/skills/barista-cli/scripts/generate.ts"
|
|
6
6
|
},
|
|
@@ -3769,6 +3769,24 @@
|
|
|
3769
3769
|
}
|
|
3770
3770
|
}
|
|
3771
3771
|
},
|
|
3772
|
+
"system/ai-conversation": {
|
|
3773
|
+
"group": "其他",
|
|
3774
|
+
"description": "AI conversation log and statistics",
|
|
3775
|
+
"commands": {
|
|
3776
|
+
"get": {
|
|
3777
|
+
"description": "Get AI conversation log detail by ID",
|
|
3778
|
+
"json": true
|
|
3779
|
+
},
|
|
3780
|
+
"list": {
|
|
3781
|
+
"description": "List AI conversation logs with pagination and filters",
|
|
3782
|
+
"json": true
|
|
3783
|
+
},
|
|
3784
|
+
"overview": {
|
|
3785
|
+
"description": "Get AI conversation statistics overview",
|
|
3786
|
+
"json": true
|
|
3787
|
+
}
|
|
3788
|
+
}
|
|
3789
|
+
},
|
|
3772
3790
|
"system/druid": {
|
|
3773
3791
|
"group": "其他",
|
|
3774
3792
|
"description": "Druid performance monitoring (platform admin only)",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# ★ 自动生成。修改源码后重新生成:npm run generate-skills-data
|
|
2
|
-
# ★ 生成时间: 2026-08-
|
|
2
|
+
# ★ 生成时间: 2026-08-24T15:46:35.696Z
|
|
3
3
|
|
|
4
4
|
global:
|
|
5
5
|
# ── 全局 ──
|
|
@@ -2418,6 +2418,19 @@ liberica:
|
|
|
2418
2418
|
deploy-info:
|
|
2419
2419
|
description: "Show current deployed commit hash for the environment"
|
|
2420
2420
|
options: [--json]
|
|
2421
|
+
system/ai-conversation:
|
|
2422
|
+
group: "其他"
|
|
2423
|
+
description: "AI conversation log and statistics"
|
|
2424
|
+
commands:
|
|
2425
|
+
get:
|
|
2426
|
+
description: "Get AI conversation log detail by ID"
|
|
2427
|
+
options: [--json]
|
|
2428
|
+
list:
|
|
2429
|
+
description: "List AI conversation logs with pagination and filters"
|
|
2430
|
+
options: [--json]
|
|
2431
|
+
overview:
|
|
2432
|
+
description: "Get AI conversation statistics overview"
|
|
2433
|
+
options: [--json]
|
|
2421
2434
|
system/druid:
|
|
2422
2435
|
group: "其他"
|
|
2423
2436
|
description: "Druid performance monitoring (platform admin only)"
|