@newpeak/barista-cli 0.2.244 → 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.
Files changed (30) hide show
  1. package/dist/commands/liberica/system/ai-conversation/get.d.ts +3 -0
  2. package/dist/commands/liberica/system/ai-conversation/get.d.ts.map +1 -0
  3. package/dist/commands/liberica/system/ai-conversation/get.js +67 -0
  4. package/dist/commands/liberica/system/ai-conversation/get.js.map +1 -0
  5. package/dist/commands/liberica/system/ai-conversation/index.d.ts +3 -0
  6. package/dist/commands/liberica/system/ai-conversation/index.d.ts.map +1 -0
  7. package/dist/commands/liberica/system/ai-conversation/index.js +13 -0
  8. package/dist/commands/liberica/system/ai-conversation/index.js.map +1 -0
  9. package/dist/commands/liberica/system/ai-conversation/list.d.ts +3 -0
  10. package/dist/commands/liberica/system/ai-conversation/list.d.ts.map +1 -0
  11. package/dist/commands/liberica/system/ai-conversation/list.js +106 -0
  12. package/dist/commands/liberica/system/ai-conversation/list.js.map +1 -0
  13. package/dist/commands/liberica/system/ai-conversation/overview.d.ts +3 -0
  14. package/dist/commands/liberica/system/ai-conversation/overview.d.ts.map +1 -0
  15. package/dist/commands/liberica/system/ai-conversation/overview.js +83 -0
  16. package/dist/commands/liberica/system/ai-conversation/overview.js.map +1 -0
  17. package/dist/commands/liberica/system/index.d.ts.map +1 -1
  18. package/dist/commands/liberica/system/index.js +2 -0
  19. package/dist/commands/liberica/system/index.js.map +1 -1
  20. package/dist/core/api/client.d.ts +15 -0
  21. package/dist/core/api/client.d.ts.map +1 -1
  22. package/dist/core/api/client.js +78 -0
  23. package/dist/core/api/client.js.map +1 -1
  24. package/dist/types/ai-conversation.d.ts +34 -0
  25. package/dist/types/ai-conversation.d.ts.map +1 -0
  26. package/dist/types/ai-conversation.js +2 -0
  27. package/dist/types/ai-conversation.js.map +1 -0
  28. package/package.json +1 -1
  29. package/skills/barista-cli/data/commands.json +19 -1
  30. package/skills/barista-cli/data/commands.yaml +14 -1
@@ -0,0 +1,34 @@
1
+ import { PageResult } from './index.js';
2
+ export interface AiConversationLogItem {
3
+ logId: string;
4
+ tenantId: string;
5
+ userId: 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;
14
+ model: string;
15
+ createTime: string;
16
+ }
17
+ export interface AiConversationPageResult extends PageResult<AiConversationLogItem> {
18
+ }
19
+ export interface AiConversationOverview {
20
+ totalConversations: number;
21
+ satisfactionRate: number;
22
+ likeCount: number;
23
+ dislikeCount: number;
24
+ topDislikes: Array<{
25
+ question: string;
26
+ reason: string;
27
+ createTime: string;
28
+ }>;
29
+ dailyTrend: Array<{
30
+ date: string;
31
+ conversationCount: number;
32
+ }>;
33
+ }
34
+ //# 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,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"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=ai-conversation.js.map
@@ -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
  "name": "@newpeak/barista-cli",
3
- "version": "0.2.244",
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-23T02:29:55.232Z",
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
  },
@@ -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 messages by conversation 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 dashboard overview statistics",
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-23T02:29:55.241Z
2
+ # ★ 生成时间: 2026-08-25T08:45:42.878Z
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 messages by conversation 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 dashboard overview statistics"
2433
+ options: [--json]
2421
2434
  system/druid:
2422
2435
  group: "其他"
2423
2436
  description: "Druid performance monitoring (platform admin only)"