@optima-chat/optima-agent 0.1.76 → 0.1.78

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.
@@ -0,0 +1,22 @@
1
+ {
2
+ "permissions": {
3
+ "allow": [
4
+ "Bash(gh api:*)",
5
+ "WebFetch(domain:platform.claude.com)",
6
+ "Bash(git init:*)",
7
+ "Bash(mkdir:*)",
8
+ "Bash(npm run typecheck:*)",
9
+ "Bash(npm view:*)",
10
+ "WebSearch",
11
+ "Bash(commerce --help)",
12
+ "Bash(done)",
13
+ "Bash(commerce product:*)",
14
+ "Bash(commerce order:*)",
15
+ "Bash(commerce i18n:*)",
16
+ "Bash(google-ads:*)",
17
+ "Bash(scout --help:*)"
18
+ ],
19
+ "deny": [],
20
+ "ask": []
21
+ }
22
+ }
@@ -42,8 +42,9 @@ bi-cli analytics dashboard [--pretty]
42
42
  ### 认证
43
43
  ```bash
44
44
  bi-cli auth login # OAuth 登录
45
- bi-cli auth status # 查看登录状态
45
+ bi-cli auth whoami # 查看当前用户信息
46
46
  bi-cli auth logout # 登出
47
+ bi-cli auth switch # 切换环境
47
48
  ```
48
49
 
49
50
  ### 销售分析
@@ -107,4 +108,5 @@ bi-cli trends revenue --days 30 --pretty
107
108
  - 默认输出 JSON 格式(AI 友好)
108
109
  - 使用 `--pretty` 获取彩色表格
109
110
  - 需要先登录:`bi-cli auth login`
111
+ - 查看登录状态:`bi-cli auth whoami`
110
112
  - 默认时间范围是最近 7 天
@@ -3,7 +3,7 @@ import { parseArgs } from "node:util";
3
3
  import { OptimaAgent } from "../src/index.js";
4
4
  import { startInteractiveMode } from "../src/ui/index.js";
5
5
  import { startServer } from "../src/server/index.js";
6
- const VERSION = "0.1.76";
6
+ const VERSION = "0.1.78";
7
7
  function printHelp() {
8
8
  console.log(`
9
9
  Optima Agent - 电商运营 AI 助手
@@ -0,0 +1,67 @@
1
+ {
2
+ "name": "@optima-chat/optima-agent",
3
+ "version": "0.1.8",
4
+ "description": "基于 Claude Agent SDK 的电商运营 AI 助手",
5
+ "type": "module",
6
+ "main": "dist/src/index.js",
7
+ "types": "dist/src/index.d.ts",
8
+ "bin": {
9
+ "optima": "./dist/bin/optima.js"
10
+ },
11
+ "files": [
12
+ "dist",
13
+ ".claude"
14
+ ],
15
+ "repository": {
16
+ "type": "git",
17
+ "url": "https://github.com/Optima-Chat/optima-agent.git"
18
+ },
19
+ "keywords": [
20
+ "ai",
21
+ "agent",
22
+ "claude",
23
+ "ecommerce",
24
+ "cli"
25
+ ],
26
+ "author": "Optima Chat",
27
+ "license": "MIT",
28
+ "scripts": {
29
+ "build": "tsc",
30
+ "dev": "tsx watch src/index.ts",
31
+ "start": "node dist/src/index.js",
32
+ "typecheck": "tsc --noEmit",
33
+ "test": "vitest run",
34
+ "test:watch": "vitest",
35
+ "optima": "tsx bin/optima.ts",
36
+ "prepublishOnly": "npm run build"
37
+ },
38
+ "dependencies": {
39
+ "@anthropic-ai/claude-agent-sdk": "^0.1.55",
40
+ "@optima-chat/bi-cli": "^0.2.0",
41
+ "@optima-chat/comfy-cli": "^0.7.2",
42
+ "@optima-chat/commerce-cli": "^1.5.0",
43
+ "@optima-chat/google-ads-cli": "^0.4.0",
44
+ "@optima-chat/scout-cli": "^0.1.10",
45
+ "gray-matter": "^4.0.3",
46
+ "ink": "^5.2.1",
47
+ "ink-spinner": "^5.0.0",
48
+ "ink-text-input": "^6.0.0",
49
+ "react": "^18.3.1",
50
+ "ws": "^8.18.3",
51
+ "zod": "^3.23.8"
52
+ },
53
+ "devDependencies": {
54
+ "@types/node": "^22.10.1",
55
+ "@types/react": "^18.3.27",
56
+ "@types/ws": "^8.18.1",
57
+ "tsx": "^4.19.2",
58
+ "typescript": "^5.7.2",
59
+ "vitest": "^4.0.14"
60
+ },
61
+ "engines": {
62
+ "node": ">=18.0.0"
63
+ },
64
+ "overrides": {
65
+ "react": "^18.3.1"
66
+ }
67
+ }
@@ -2,7 +2,7 @@ import { createServer } from "http";
2
2
  import { WebSocketServer, WebSocket } from "ws";
3
3
  import { URL } from "url";
4
4
  import { OptimaAgent } from "../agent.js";
5
- const VERSION = "0.1.76";
5
+ const VERSION = "0.1.78";
6
6
  export function startServer(options) {
7
7
  const { port, token, cwd } = options;
8
8
  const server = createServer((req, res) => {
@@ -1,5 +1,5 @@
1
1
  import { OptimaAgent } from "../agent.js";
2
- const VERSION = "0.1.76";
2
+ const VERSION = "0.1.78";
3
3
  const MAX_RESULT_LINES = 5;
4
4
  const MAX_LINE_LENGTH = 120; // 每行最大字符数
5
5
  const AVAILABLE_MODELS = [
@@ -0,0 +1,2 @@
1
+ export declare const VERSION = "0.1.6";
2
+ //# sourceMappingURL=version.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../../src/version.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,OAAO,UAAU,CAAC"}
@@ -0,0 +1,3 @@
1
+ // 自动生成
2
+ export const VERSION = "0.1.6";
3
+ //# sourceMappingURL=version.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"version.js","sourceRoot":"","sources":["../../src/version.ts"],"names":[],"mappings":"AAAA,OAAO;AACP,MAAM,CAAC,MAAM,OAAO,GAAG,OAAO,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@optima-chat/optima-agent",
3
- "version": "0.1.76",
3
+ "version": "0.1.78",
4
4
  "description": "基于 Claude Agent SDK 的电商运营 AI 助手",
5
5
  "type": "module",
6
6
  "main": "dist/src/index.js",