@autoglm.js/cli 0.0.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.
- package/LICENSE.md +230 -0
- package/dist/Config-BFfUabcq.mjs +215 -0
- package/dist/Devices-Bcw7H-ua.mjs +235 -0
- package/dist/Help-BZfoJEGE.mjs +167 -0
- package/dist/InstallKeyboard-4dIO_YlT.mjs +71 -0
- package/dist/Tasks-2Hupx2WP.mjs +246 -0
- package/dist/Welcome-CxaX8LEp.mjs +55 -0
- package/dist/index.mjs +3334 -0
- package/package.json +74 -0
- package/schema/agent-config.schema.json +69 -0
package/package.json
ADDED
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@autoglm.js/cli",
|
|
3
|
+
"type": "module",
|
|
4
|
+
"version": "0.0.1",
|
|
5
|
+
"private": false,
|
|
6
|
+
"description": "AutoGLM.js Command Line Interface",
|
|
7
|
+
"author": "FliPPeDround <flippedround@qq.com>",
|
|
8
|
+
"license": "MIT",
|
|
9
|
+
"funding": "https://afdian.com/a/flippedround",
|
|
10
|
+
"homepage": "https://github.com/FliPPeDround/autoglm.js#readme",
|
|
11
|
+
"repository": {
|
|
12
|
+
"type": "git",
|
|
13
|
+
"url": "https://github.com/FliPPeDround/autoglm.js"
|
|
14
|
+
},
|
|
15
|
+
"bugs": "https://github.com/FliPPeDround/autoglm.js/issues",
|
|
16
|
+
"keywords": [
|
|
17
|
+
"autoglm",
|
|
18
|
+
"open-autoglm",
|
|
19
|
+
"agent",
|
|
20
|
+
"ai",
|
|
21
|
+
"cli"
|
|
22
|
+
],
|
|
23
|
+
"sideEffects": false,
|
|
24
|
+
"unpkg": "./schema/agent-config.schema.json",
|
|
25
|
+
"jsdelivr": "./schema/agent-config.schema.json",
|
|
26
|
+
"bin": {
|
|
27
|
+
"autoglm": "./dist/index.mjs"
|
|
28
|
+
},
|
|
29
|
+
"files": [
|
|
30
|
+
"dist",
|
|
31
|
+
"schema"
|
|
32
|
+
],
|
|
33
|
+
"dependencies": {
|
|
34
|
+
"i18next": "^25.7.3",
|
|
35
|
+
"ink": "^6.6.0",
|
|
36
|
+
"ink-big-text": "^2.0.0",
|
|
37
|
+
"ink-gradient": "^3.0.0",
|
|
38
|
+
"ink-scroll-list": "^0.3.3",
|
|
39
|
+
"ink-scroll-view": "^0.3.2",
|
|
40
|
+
"ink-spinner": "^5.0.0",
|
|
41
|
+
"ink-text-input": "^6.0.0",
|
|
42
|
+
"node-notifier": "^10.0.1",
|
|
43
|
+
"react": "^19.2.3",
|
|
44
|
+
"react-i18next": "^16.5.1",
|
|
45
|
+
"react-router": "^7.11.0",
|
|
46
|
+
"unconfig": "^7.4.2",
|
|
47
|
+
"zustand": "^5.0.9"
|
|
48
|
+
},
|
|
49
|
+
"devDependencies": {
|
|
50
|
+
"@clack/prompts": "^0.11.0",
|
|
51
|
+
"@react-router/node": "^7.11.0",
|
|
52
|
+
"@types/fs-extra": "^11.0.4",
|
|
53
|
+
"@types/minimist": "^1.2.5",
|
|
54
|
+
"@types/node-notifier": "^8.0.5",
|
|
55
|
+
"@types/react": "^19.2.7",
|
|
56
|
+
"consola": "^3.4.2",
|
|
57
|
+
"dayjs": "^1.11.19",
|
|
58
|
+
"fs-extra": "^11.3.3",
|
|
59
|
+
"kolorist": "^1.8.0",
|
|
60
|
+
"minimist": "^1.2.8",
|
|
61
|
+
"std-env": "^3.10.0",
|
|
62
|
+
"tsx": "^4.21.0",
|
|
63
|
+
"@autoglm.js/shared": "1.0.0",
|
|
64
|
+
"autoglm.js": "0.0.7-beta.4"
|
|
65
|
+
},
|
|
66
|
+
"scripts": {
|
|
67
|
+
"start": "node dist/index.mjs",
|
|
68
|
+
"build": "tsdown",
|
|
69
|
+
"hmr": "tsx watch src/index.tsx",
|
|
70
|
+
"dev": "tsdown --watch",
|
|
71
|
+
"release": "bumpp",
|
|
72
|
+
"typecheck": "tsc"
|
|
73
|
+
}
|
|
74
|
+
}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"title": "AgentConfig",
|
|
4
|
+
"description": "Configuration schema for the Agent",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"maxSteps": {
|
|
8
|
+
"type": "integer",
|
|
9
|
+
"description": "Maximum number of steps the agent can take",
|
|
10
|
+
"minimum": 1,
|
|
11
|
+
"default": 100
|
|
12
|
+
},
|
|
13
|
+
"lang": {
|
|
14
|
+
"type": "string",
|
|
15
|
+
"enum": ["cn", "en"],
|
|
16
|
+
"description": "Language setting for the agent",
|
|
17
|
+
"default": "cn"
|
|
18
|
+
},
|
|
19
|
+
"deviceId": {
|
|
20
|
+
"type": "string",
|
|
21
|
+
"description": "Optional device identifier"
|
|
22
|
+
},
|
|
23
|
+
"systemPrompt": {
|
|
24
|
+
"type": "string",
|
|
25
|
+
"description": "Optional system prompt for the agent"
|
|
26
|
+
},
|
|
27
|
+
"baseUrl": {
|
|
28
|
+
"type": "string",
|
|
29
|
+
"description": "Base URL for the API"
|
|
30
|
+
},
|
|
31
|
+
"apiKey": {
|
|
32
|
+
"type": "string",
|
|
33
|
+
"description": "API key for authentication"
|
|
34
|
+
},
|
|
35
|
+
"model": {
|
|
36
|
+
"type": "string",
|
|
37
|
+
"description": "Name of the model to use"
|
|
38
|
+
},
|
|
39
|
+
"maxTokens": {
|
|
40
|
+
"type": "integer",
|
|
41
|
+
"description": "Maximum number of tokens",
|
|
42
|
+
"minimum": 1
|
|
43
|
+
},
|
|
44
|
+
"temperature": {
|
|
45
|
+
"type": "number",
|
|
46
|
+
"description": "Temperature parameter for model generation",
|
|
47
|
+
"minimum": 0,
|
|
48
|
+
"maximum": 2
|
|
49
|
+
},
|
|
50
|
+
"topP": {
|
|
51
|
+
"type": "number",
|
|
52
|
+
"description": "Top-p parameter for model generation",
|
|
53
|
+
"minimum": 0,
|
|
54
|
+
"maximum": 1
|
|
55
|
+
},
|
|
56
|
+
"frequencyPenalty": {
|
|
57
|
+
"type": "number",
|
|
58
|
+
"description": "Frequency penalty parameter",
|
|
59
|
+
"minimum": -2,
|
|
60
|
+
"maximum": 2
|
|
61
|
+
}
|
|
62
|
+
},
|
|
63
|
+
"required": [
|
|
64
|
+
"lang",
|
|
65
|
+
"baseUrl",
|
|
66
|
+
"model"
|
|
67
|
+
],
|
|
68
|
+
"additionalProperties": false
|
|
69
|
+
}
|