@newpeak/barista-cli 0.2.245 → 0.2.246
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.map +1 -1
- package/dist/commands/liberica/system/ai-conversation/get.js +25 -24
- package/dist/commands/liberica/system/ai-conversation/get.js.map +1 -1
- package/dist/commands/liberica/system/ai-conversation/list.d.ts.map +1 -1
- package/dist/commands/liberica/system/ai-conversation/list.js +27 -22
- package/dist/commands/liberica/system/ai-conversation/list.js.map +1 -1
- package/dist/commands/liberica/system/ai-conversation/overview.d.ts.map +1 -1
- package/dist/commands/liberica/system/ai-conversation/overview.js +22 -30
- package/dist/commands/liberica/system/ai-conversation/overview.js.map +1 -1
- package/dist/core/api/client.d.ts +7 -7
- package/dist/core/api/client.d.ts.map +1 -1
- package/dist/core/api/client.js +14 -6
- package/dist/core/api/client.js.map +1 -1
- package/dist/types/ai-conversation.d.ts +21 -38
- package/dist/types/ai-conversation.d.ts.map +1 -1
- package/package.json +1 -1
- package/skills/barista-cli/data/commands.json +3 -3
- package/skills/barista-cli/data/commands.yaml +3 -3
|
@@ -1,51 +1,34 @@
|
|
|
1
1
|
import { PageResult } from './index.js';
|
|
2
2
|
export interface AiConversationLogItem {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
appId: string;
|
|
6
|
-
appName: string;
|
|
3
|
+
logId: string;
|
|
4
|
+
tenantId: string;
|
|
7
5
|
userId: string;
|
|
8
|
-
|
|
6
|
+
conversationId: string;
|
|
7
|
+
messageIndex: number;
|
|
8
|
+
role: 'user' | 'ai' | 'tool';
|
|
9
|
+
question: string;
|
|
10
|
+
aiResponse: string;
|
|
11
|
+
toolCalls?: string;
|
|
12
|
+
latencyMs?: number;
|
|
13
|
+
tokenEstimate?: number;
|
|
9
14
|
model: string;
|
|
10
|
-
|
|
11
|
-
inputTokens: number;
|
|
12
|
-
outputTokens: number;
|
|
13
|
-
duration: number;
|
|
14
|
-
status: 'success' | 'failed' | 'timeout';
|
|
15
|
-
errorMessage?: string;
|
|
16
|
-
createdAt: string;
|
|
17
|
-
updatedAt: string;
|
|
15
|
+
createTime: string;
|
|
18
16
|
}
|
|
19
17
|
export interface AiConversationPageResult extends PageResult<AiConversationLogItem> {
|
|
20
|
-
totalTokens?: number;
|
|
21
|
-
totalInputTokens?: number;
|
|
22
|
-
totalOutputTokens?: number;
|
|
23
|
-
successCount?: number;
|
|
24
|
-
failedCount?: number;
|
|
25
18
|
}
|
|
26
19
|
export interface AiConversationOverview {
|
|
27
20
|
totalConversations: number;
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
avgTokensPerConversation: number;
|
|
36
|
-
topModels: Array<{
|
|
37
|
-
model: string;
|
|
38
|
-
count: number;
|
|
39
|
-
totalTokens: number;
|
|
21
|
+
satisfactionRate: number;
|
|
22
|
+
likeCount: number;
|
|
23
|
+
dislikeCount: number;
|
|
24
|
+
topDislikes: Array<{
|
|
25
|
+
question: string;
|
|
26
|
+
reason: string;
|
|
27
|
+
createTime: string;
|
|
40
28
|
}>;
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
count: number;
|
|
29
|
+
dailyTrend: Array<{
|
|
30
|
+
date: string;
|
|
31
|
+
conversationCount: number;
|
|
45
32
|
}>;
|
|
46
|
-
dateRange: {
|
|
47
|
-
startDate: string;
|
|
48
|
-
endDate: string;
|
|
49
|
-
};
|
|
50
33
|
}
|
|
51
34
|
//# sourceMappingURL=ai-conversation.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ai-conversation.d.ts","sourceRoot":"","sources":["../../src/types/ai-conversation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAGxC,MAAM,WAAW,qBAAqB;IACpC,
|
|
1
|
+
{"version":3,"file":"ai-conversation.d.ts","sourceRoot":"","sources":["../../src/types/ai-conversation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAGxC,MAAM,WAAW,qBAAqB;IACpC,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,cAAc,EAAE,MAAM,CAAC;IACvB,YAAY,EAAE,MAAM,CAAC;IACrB,IAAI,EAAE,MAAM,GAAG,IAAI,GAAG,MAAM,CAAC;IAC7B,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,MAAM,CAAC;CACpB;AAGD,MAAM,WAAW,wBAAyB,SAAQ,UAAU,CAAC,qBAAqB,CAAC;CAAG;AAGtF,MAAM,WAAW,sBAAsB;IACrC,kBAAkB,EAAE,MAAM,CAAC;IAC3B,gBAAgB,EAAE,MAAM,CAAC;IACzB,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY,EAAE,MAAM,CAAC;IACrB,WAAW,EAAE,KAAK,CAAC;QACjB,QAAQ,EAAE,MAAM,CAAC;QACjB,MAAM,EAAE,MAAM,CAAC;QACf,UAAU,EAAE,MAAM,CAAC;KACpB,CAAC,CAAC;IACH,UAAU,EAAE,KAAK,CAAC;QAChB,IAAI,EAAE,MAAM,CAAC;QACb,iBAAiB,EAAE,MAAM,CAAC;KAC3B,CAAC,CAAC;CACJ"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"_metadata": {
|
|
3
|
-
"generatedAt": "2026-08-
|
|
3
|
+
"generatedAt": "2026-08-25T08:45:42.868Z",
|
|
4
4
|
"source": "src/commands/",
|
|
5
5
|
"generator": "src/skills/barista-cli/scripts/generate.ts"
|
|
6
6
|
},
|
|
@@ -3774,7 +3774,7 @@
|
|
|
3774
3774
|
"description": "AI conversation log and statistics",
|
|
3775
3775
|
"commands": {
|
|
3776
3776
|
"get": {
|
|
3777
|
-
"description": "Get AI conversation
|
|
3777
|
+
"description": "Get AI conversation messages by conversation ID",
|
|
3778
3778
|
"json": true
|
|
3779
3779
|
},
|
|
3780
3780
|
"list": {
|
|
@@ -3782,7 +3782,7 @@
|
|
|
3782
3782
|
"json": true
|
|
3783
3783
|
},
|
|
3784
3784
|
"overview": {
|
|
3785
|
-
"description": "Get AI
|
|
3785
|
+
"description": "Get AI dashboard overview statistics",
|
|
3786
3786
|
"json": true
|
|
3787
3787
|
}
|
|
3788
3788
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# ★ 自动生成。修改源码后重新生成:npm run generate-skills-data
|
|
2
|
-
# ★ 生成时间: 2026-08-
|
|
2
|
+
# ★ 生成时间: 2026-08-25T08:45:42.878Z
|
|
3
3
|
|
|
4
4
|
global:
|
|
5
5
|
# ── 全局 ──
|
|
@@ -2423,13 +2423,13 @@ liberica:
|
|
|
2423
2423
|
description: "AI conversation log and statistics"
|
|
2424
2424
|
commands:
|
|
2425
2425
|
get:
|
|
2426
|
-
description: "Get AI conversation
|
|
2426
|
+
description: "Get AI conversation messages by conversation ID"
|
|
2427
2427
|
options: [--json]
|
|
2428
2428
|
list:
|
|
2429
2429
|
description: "List AI conversation logs with pagination and filters"
|
|
2430
2430
|
options: [--json]
|
|
2431
2431
|
overview:
|
|
2432
|
-
description: "Get AI
|
|
2432
|
+
description: "Get AI dashboard overview statistics"
|
|
2433
2433
|
options: [--json]
|
|
2434
2434
|
system/druid:
|
|
2435
2435
|
group: "其他"
|