@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.
@@ -1,51 +1,34 @@
1
1
  import { PageResult } from './index.js';
2
2
  export interface AiConversationLogItem {
3
- id: string;
4
- conversationId: string;
5
- appId: string;
6
- appName: string;
3
+ logId: string;
4
+ tenantId: string;
7
5
  userId: string;
8
- userName: string;
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
- 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;
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
- 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;
21
+ satisfactionRate: number;
22
+ likeCount: number;
23
+ dislikeCount: number;
24
+ topDislikes: Array<{
25
+ question: string;
26
+ reason: string;
27
+ createTime: string;
40
28
  }>;
41
- topApps: Array<{
42
- appId: string;
43
- appName: string;
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 @@
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AAM,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
  "name": "@newpeak/barista-cli",
3
- "version": "0.2.245",
3
+ "version": "0.2.246",
4
4
  "description": "AI Tools CLI for Liberica and Arabica services",
5
5
  "license": "MIT",
6
6
  "keywords": [
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "_metadata": {
3
- "generatedAt": "2026-08-24T15:46:35.687Z",
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 log detail by ID",
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 conversation statistics overview",
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-24T15:46:35.696Z
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 log detail by ID"
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 conversation statistics overview"
2432
+ description: "Get AI dashboard overview statistics"
2433
2433
  options: [--json]
2434
2434
  system/druid:
2435
2435
  group: "其他"