@optima-chat/optima-agent 0.3.0 → 0.3.1
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.
|
@@ -31,7 +31,11 @@
|
|
|
31
31
|
"Bash(gh issue create:*)",
|
|
32
32
|
"Bash(npx tsx:*)",
|
|
33
33
|
"Bash(timeout 30 npx tsx:*)",
|
|
34
|
-
"Bash(git push origin feature/ask-user-question)"
|
|
34
|
+
"Bash(git push origin feature/ask-user-question)",
|
|
35
|
+
"Bash(node:*)",
|
|
36
|
+
"Bash(npm version:*)",
|
|
37
|
+
"Bash(git push:*)",
|
|
38
|
+
"Bash(npm publish:*)"
|
|
35
39
|
],
|
|
36
40
|
"deny": [],
|
|
37
41
|
"ask": []
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../../src/version.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../../src/version.ts"],"names":[],"mappings":"AAWA,eAAO,MAAM,OAAO,EAAE,MAAoB,CAAC"}
|
package/dist/src/version.js
CHANGED
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
import { createRequire } from "module";
|
|
2
|
+
import { dirname, join } from "path";
|
|
3
|
+
import { fileURLToPath } from "url";
|
|
4
|
+
const __filename = fileURLToPath(import.meta.url);
|
|
5
|
+
const __dirname = dirname(__filename);
|
|
2
6
|
const require = createRequire(import.meta.url);
|
|
3
|
-
|
|
7
|
+
// 从 dist/src/version.js 需要往上两级到项目根目录
|
|
8
|
+
const pkg = require(join(__dirname, "..", "..", "package.json"));
|
|
4
9
|
export const VERSION = pkg.version;
|
|
5
10
|
//# sourceMappingURL=version.js.map
|
package/dist/src/version.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.js","sourceRoot":"","sources":["../../src/version.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,QAAQ,CAAC;
|
|
1
|
+
{"version":3,"file":"version.js","sourceRoot":"","sources":["../../src/version.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,QAAQ,CAAC;AACvC,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AACrC,OAAO,EAAE,aAAa,EAAE,MAAM,KAAK,CAAC;AAEpC,MAAM,UAAU,GAAG,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAClD,MAAM,SAAS,GAAG,OAAO,CAAC,UAAU,CAAC,CAAC;AAEtC,MAAM,OAAO,GAAG,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAC/C,qCAAqC;AACrC,MAAM,GAAG,GAAG,OAAO,CAAC,IAAI,CAAC,SAAS,EAAE,IAAI,EAAE,IAAI,EAAE,cAAc,CAAC,CAAC,CAAC;AAEjE,MAAM,CAAC,MAAM,OAAO,GAAW,GAAG,CAAC,OAAO,CAAC"}
|
package/package.json
CHANGED
package/dist/package.json
DELETED
|
@@ -1,67 +0,0 @@
|
|
|
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
|
-
}
|