@optima-chat/optima-agent 0.2.17 → 0.2.18

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.
@@ -25,7 +25,8 @@
25
25
  "Bash(git add:*)",
26
26
  "Bash(git commit:*)",
27
27
  "Bash(git push)",
28
- "Bash(timeout 5 npm run optima:*)"
28
+ "Bash(timeout 5 npm run optima:*)",
29
+ "Bash(npm install:*)"
29
30
  ],
30
31
  "deny": [],
31
32
  "ask": []
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env node
2
+ export {};
3
+ //# sourceMappingURL=bi-cli.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bi-cli.d.ts","sourceRoot":"","sources":["../../bin/bi-cli.ts"],"names":[],"mappings":""}
@@ -0,0 +1,4 @@
1
+ #!/usr/bin/env node
2
+ import("@optima-chat/bi-cli");
3
+ export {};
4
+ //# sourceMappingURL=bi-cli.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bi-cli.js","sourceRoot":"","sources":["../../bin/bi-cli.ts"],"names":[],"mappings":";AACA,MAAM,CAAC,qBAAqB,CAAC,CAAC"}
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env node
2
+ export {};
3
+ //# sourceMappingURL=comfy.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"comfy.d.ts","sourceRoot":"","sources":["../../bin/comfy.ts"],"names":[],"mappings":""}
@@ -0,0 +1,4 @@
1
+ #!/usr/bin/env node
2
+ import("@optima-chat/comfy-cli");
3
+ export {};
4
+ //# sourceMappingURL=comfy.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"comfy.js","sourceRoot":"","sources":["../../bin/comfy.ts"],"names":[],"mappings":";AACA,MAAM,CAAC,wBAAwB,CAAC,CAAC"}
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env node
2
+ export {};
3
+ //# sourceMappingURL=commerce.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"commerce.d.ts","sourceRoot":"","sources":["../../bin/commerce.ts"],"names":[],"mappings":""}
@@ -0,0 +1,4 @@
1
+ #!/usr/bin/env node
2
+ import("@optima-chat/commerce-cli");
3
+ export {};
4
+ //# sourceMappingURL=commerce.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"commerce.js","sourceRoot":"","sources":["../../bin/commerce.ts"],"names":[],"mappings":";AACA,MAAM,CAAC,2BAA2B,CAAC,CAAC"}
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env node
2
+ export {};
3
+ //# sourceMappingURL=google-ads.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"google-ads.d.ts","sourceRoot":"","sources":["../../bin/google-ads.ts"],"names":[],"mappings":""}
@@ -0,0 +1,4 @@
1
+ #!/usr/bin/env node
2
+ import("@optima-chat/google-ads-cli");
3
+ export {};
4
+ //# sourceMappingURL=google-ads.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"google-ads.js","sourceRoot":"","sources":["../../bin/google-ads.ts"],"names":[],"mappings":";AACA,MAAM,CAAC,6BAA6B,CAAC,CAAC"}
@@ -4,7 +4,7 @@ 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
6
  import { startHeadlessMode } from "../src/ui/headless.js";
7
- const VERSION = "0.2.17";
7
+ const VERSION = "0.2.18";
8
8
  function printHelp() {
9
9
  console.log(`
10
10
  Optima Agent - 电商运营 AI 助手
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env node
2
+ export {};
3
+ //# sourceMappingURL=scout.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"scout.d.ts","sourceRoot":"","sources":["../../bin/scout.ts"],"names":[],"mappings":""}
@@ -0,0 +1,4 @@
1
+ #!/usr/bin/env node
2
+ import("@optima-chat/scout-cli");
3
+ export {};
4
+ //# sourceMappingURL=scout.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"scout.js","sourceRoot":"","sources":["../../bin/scout.ts"],"names":[],"mappings":";AACA,MAAM,CAAC,wBAAwB,CAAC,CAAC"}
@@ -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.2.17";
5
+ const VERSION = "0.2.18";
6
6
  export function startServer(options) {
7
7
  const { port, token, cwd } = options;
8
8
  const server = createServer((req, res) => {
@@ -1,6 +1,6 @@
1
1
  import { OptimaAgent } from "../agent.js";
2
2
  import { getAuthStatus, clearToken, startDeviceFlow, getTokenData, isTokenExpired, refreshToken, } from "../auth/index.js";
3
- const VERSION = "0.2.17";
3
+ const VERSION = "0.2.18";
4
4
  const MAX_RESULT_LINES = 5;
5
5
  const MAX_LINE_LENGTH = 120; // 每行最大字符数
6
6
  const AVAILABLE_MODELS = [
package/package.json CHANGED
@@ -1,12 +1,17 @@
1
1
  {
2
2
  "name": "@optima-chat/optima-agent",
3
- "version": "0.2.17",
3
+ "version": "0.2.18",
4
4
  "description": "基于 Claude Agent SDK 的电商运营 AI 助手",
5
5
  "type": "module",
6
6
  "main": "dist/src/index.js",
7
7
  "types": "dist/src/index.d.ts",
8
8
  "bin": {
9
- "optima": "./dist/bin/optima.js"
9
+ "optima": "./dist/bin/optima.js",
10
+ "commerce": "./dist/bin/commerce.js",
11
+ "bi-cli": "./dist/bin/bi-cli.js",
12
+ "comfy": "./dist/bin/comfy.js",
13
+ "google-ads": "./dist/bin/google-ads.js",
14
+ "scout": "./dist/bin/scout.js"
10
15
  },
11
16
  "files": [
12
17
  "dist",