@chatcode/chatcode-cli-test 1.0.47 → 3.0.2
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 +21 -0
- package/README.i18n.yaml +6 -0
- package/README.md +41 -135
- package/README.zh.md +63 -0
- package/lib/bin.js +303 -0
- package/lib/chatcode-home-B93iESZd.js +48 -0
- package/lib/dump-config-WbxM4B3p.js +53 -0
- package/lib/home-migration-DLaSvmfn.js +307 -0
- package/lib/plugin-CMMvQgyR.js +31 -0
- package/lib/profile-boot-CCxnpvy7.js +331 -0
- package/lib/profile-boot.js +2 -0
- package/lib/types/args.d.ts +76 -0
- package/lib/types/bin.d.ts +15 -0
- package/lib/types/chatcode-home.d.ts +30 -0
- package/lib/types/dump-config.d.ts +18 -0
- package/lib/types/home-migration.d.ts +58 -0
- package/lib/types/plugin.d.ts +7 -0
- package/lib/types/process-shutdown.d.ts +20 -0
- package/lib/types/profile-boot.d.ts +94 -0
- package/lib/types/startup-diagnostics.d.ts +19 -0
- package/package.json +310 -112
- package/bin/cli.js +0 -102
- package/bin/generation-supervisor.js +0 -142
- package/dist/cli.js +0 -8793
- package/dist/vendor/ripgrep/COPYING +0 -3
- package/dist/vendor/ripgrep/arm64-darwin/rg +0 -0
- package/dist/vendor/ripgrep/arm64-linux/rg +0 -0
- package/dist/vendor/ripgrep/arm64-win32/rg.exe +0 -0
- package/dist/vendor/ripgrep/x64-darwin/rg +0 -0
- package/dist/vendor/ripgrep/x64-linux/rg +0 -0
- package/dist/vendor/ripgrep/x64-win32/rg.exe +0 -0
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/** Save original startup diagnostics while keeping the terminal report concise. */
|
|
2
|
+
import type { StartupError } from '@deepseek-ai/dsh-app-boot';
|
|
3
|
+
/** Launcher-owned context; no environment values or plugin configurations are collected. */
|
|
4
|
+
interface StartupDiagnosticContext {
|
|
5
|
+
home: string;
|
|
6
|
+
version: string;
|
|
7
|
+
profile: string;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Print the startup summary and save a private, uniquely named report under DSH_HOME/logs.
|
|
11
|
+
* Failed writes print the complete report to stderr instead of claiming a saved path.
|
|
12
|
+
* @param error - startup audit failure retaining plugin metadata and original errors.
|
|
13
|
+
* @param context - resolved Harness home, application version, and selected profile.
|
|
14
|
+
* @param write - terminal output sink; awaited before returning, defaults to stderr.
|
|
15
|
+
* @returns after saving or printing the report and completing terminal writes.
|
|
16
|
+
*/
|
|
17
|
+
export declare function reportStartupFailure(error: StartupError, context: StartupDiagnosticContext, write?: (text: string) => void | Promise<void>): Promise<void>;
|
|
18
|
+
export {};
|
|
19
|
+
//# sourceMappingURL=startup-diagnostics.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,126 +1,324 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@chatcode/chatcode-cli-test",
|
|
3
|
-
"
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
7
|
-
"bin": {
|
|
8
|
-
"chatcode-cli": "bin/cli.js",
|
|
9
|
-
"cco": "bin/cli.js"
|
|
3
|
+
"description": "ChatCode CLI: TUI-first coding agent, Web launcher, profiles, and legacy DSH-compatible plugins",
|
|
4
|
+
"version": "3.0.2",
|
|
5
|
+
"publishConfig": {
|
|
6
|
+
"access": "public"
|
|
10
7
|
},
|
|
11
|
-
"packageManager": "bun@1.3.5",
|
|
12
8
|
"repository": {
|
|
13
9
|
"type": "git",
|
|
14
10
|
"url": "http://gitlab.tianti.tg.unicom.local/kubernetesAMP/visualDesignPlatform/chatcode-cli.git"
|
|
15
11
|
},
|
|
16
|
-
"
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
"scripts": {
|
|
21
|
-
"dev": "bun run ./scripts/dev-supervisor.mjs",
|
|
22
|
-
"start": "bun run ./scripts/dev-supervisor.mjs",
|
|
23
|
-
"version": "bun run ./scripts/dev-supervisor.mjs --version",
|
|
24
|
-
"test": "bun test scripts/tests",
|
|
25
|
-
"scan:public-surface": "bun run scripts/public-surface-scan.mjs --fail-on-match",
|
|
26
|
-
"verify:public-surface": "bun run scripts/verify-public-surface-release.mjs",
|
|
27
|
-
"build": "bun run scripts/build.mjs",
|
|
28
|
-
"build:native": "bun run scripts/build.mjs --compile",
|
|
29
|
-
"build:native:all": "bun run scripts/build.mjs --compile --all",
|
|
30
|
-
"build:native:win": "bun run scripts/build.mjs --compile --targets=win32-x64",
|
|
31
|
-
"build:native:pack": "node scripts/pack-native.mjs",
|
|
32
|
-
"prepublishOnly": "bun run build"
|
|
12
|
+
"type": "module",
|
|
13
|
+
"bin": {
|
|
14
|
+
"chatcode-cli": "lib/bin.js",
|
|
15
|
+
"cco": "lib/bin.js"
|
|
33
16
|
},
|
|
34
17
|
"files": [
|
|
35
|
-
"
|
|
36
|
-
"
|
|
37
|
-
"dist/vendor/",
|
|
38
|
-
"README.md"
|
|
18
|
+
"lib/*.js",
|
|
19
|
+
"lib/types/*.d.ts"
|
|
39
20
|
],
|
|
40
|
-
"
|
|
41
|
-
"
|
|
21
|
+
"dsh": {
|
|
22
|
+
"configTrees": [
|
|
23
|
+
{
|
|
24
|
+
"mount": "config/agent-presets",
|
|
25
|
+
"path": "../../packages/preset/agent-presets/presets",
|
|
26
|
+
"scanRoster": true
|
|
27
|
+
}
|
|
28
|
+
]
|
|
29
|
+
},
|
|
30
|
+
"license": "MIT",
|
|
31
|
+
"dependencies": {
|
|
32
|
+
"@chatcode/cco-better-sidebar": "0.18.0-alpha.1",
|
|
33
|
+
"@chatcode/cco-builtin-browser": "0.1.21",
|
|
34
|
+
"@chatcode/cco-chat-import": "0.12.0",
|
|
35
|
+
"@chatcode/cco-llm-chatcode-config": "0.1.1",
|
|
36
|
+
"@chatcode/cco-market": "1.45.1",
|
|
37
|
+
"@chatcode/cco-tui": "0.10.0-beta.6",
|
|
38
|
+
"@deepseek-harness-tui/dsh-tui": "npm:@chatcode/cco-tui@0.10.0-beta.6",
|
|
39
|
+
"commander": "^15.0.0",
|
|
40
|
+
"dsh-better-sidebar": "npm:@chatcode/cco-better-sidebar@0.18.0-alpha.1",
|
|
41
|
+
"dsh-builtin-browser": "npm:@chatcode/cco-builtin-browser@0.1.21",
|
|
42
|
+
"dsh-chat-import": "npm:@chatcode/cco-chat-import@0.12.0",
|
|
43
|
+
"dsh-llm-chatcode-config": "npm:@chatcode/cco-llm-chatcode-config@0.1.1",
|
|
44
|
+
"dshmarket": "npm:@chatcode/cco-market@1.45.1",
|
|
45
|
+
"js-yaml": "^4.2.0",
|
|
46
|
+
"node-addon-require-builtin": "^0.1.6",
|
|
47
|
+
"@deepseek-ai/cordis": "^4.0.2",
|
|
48
|
+
"@deepseek-ai/cordis-plugin-group": "^1.0.2",
|
|
49
|
+
"@deepseek-ai/cordis-plugin-timer": "^1.1.4",
|
|
50
|
+
"@deepseek-ai/dsh-acp": "^0.1.6-alpha.2",
|
|
51
|
+
"@deepseek-ai/cordis-plugin-include": "^1.0.7",
|
|
52
|
+
"@deepseek-ai/dsh-agent": "^0.1.6-alpha.2",
|
|
53
|
+
"@deepseek-ai/cordis-plugin-loader": "^1.0.3",
|
|
54
|
+
"@deepseek-ai/dsh-acp-app": "^0.1.6-alpha.2",
|
|
55
|
+
"@deepseek-ai/dsh-agent-default-model": "^0.1.6-alpha.2",
|
|
56
|
+
"@deepseek-ai/dsh-agent-presets": "^0.1.6-alpha.2",
|
|
57
|
+
"@deepseek-ai/dsh-agent-loop": "^0.1.6-alpha.2",
|
|
58
|
+
"@deepseek-ai/dsh-agent-tool-presentation": "^0.1.6-alpha.2",
|
|
59
|
+
"@deepseek-ai/dsh-agent-instructions": "^0.1.6-alpha.2",
|
|
60
|
+
"@deepseek-ai/dsh-anonymous-user-id": "^0.1.6-alpha.2",
|
|
61
|
+
"@deepseek-ai/dsh-api-remotes": "^0.1.6-alpha.2",
|
|
62
|
+
"@deepseek-ai/dsh-api-gateway": "^0.1.6-alpha.2",
|
|
63
|
+
"@deepseek-ai/dsh-api-session-controller": "^0.1.6-alpha.2",
|
|
64
|
+
"@deepseek-ai/dsh-api-settings-controller": "^0.1.6-alpha.2",
|
|
65
|
+
"@deepseek-ai/dsh-api-terminal-controller": "^0.1.6-alpha.2",
|
|
66
|
+
"@deepseek-ai/dsh-api-workspace-controller": "^0.1.6-alpha.2",
|
|
67
|
+
"@deepseek-ai/dsh-api-workspace-files": "^0.1.6-alpha.2",
|
|
68
|
+
"@deepseek-ai/dsh-app-boot": "^0.1.6-alpha.2",
|
|
69
|
+
"@deepseek-ai/dsh-atomic-write": "^0.1.6-alpha.2",
|
|
70
|
+
"@deepseek-ai/dsh-attachment": "^0.1.6-alpha.2",
|
|
71
|
+
"@deepseek-ai/dsh-attachment-local": "^0.1.6-alpha.2",
|
|
72
|
+
"@deepseek-ai/dsh-base": "^0.1.6-alpha.2",
|
|
73
|
+
"@deepseek-ai/dsh-authorization": "^0.1.6-alpha.2",
|
|
74
|
+
"@deepseek-ai/dsh-bash-local": "^0.1.6-alpha.2",
|
|
75
|
+
"@deepseek-ai/dsh-bash-sandbox": "^0.1.6-alpha.2",
|
|
76
|
+
"@deepseek-ai/dsh-brand": "^0.1.6-alpha.2",
|
|
77
|
+
"@deepseek-ai/dsh-client-connection": "^0.1.6-alpha.2",
|
|
78
|
+
"@deepseek-ai/dsh-chunked-list": "^0.1.6-alpha.2",
|
|
79
|
+
"@deepseek-ai/dsh-client-file-upload": "^0.1.6-alpha.2",
|
|
80
|
+
"@deepseek-ai/dsh-client-hmr": "^0.1.6-alpha.2",
|
|
81
|
+
"@deepseek-ai/dsh-client-locale": "^0.1.6-alpha.2",
|
|
82
|
+
"@deepseek-ai/dsh-client-modules": "^0.1.6-alpha.2",
|
|
83
|
+
"@deepseek-ai/dsh-client-ui-agent-preset": "^0.1.6-alpha.2",
|
|
84
|
+
"@deepseek-ai/dsh-client-resources": "^0.1.6-alpha.2",
|
|
85
|
+
"@deepseek-ai/dsh-client-ui-attachment": "^0.1.6-alpha.2",
|
|
86
|
+
"@deepseek-ai/dsh-client-ui-approval": "^0.1.6-alpha.2",
|
|
87
|
+
"@deepseek-ai/dsh-client-ui-brand-official": "^0.1.6-alpha.2",
|
|
88
|
+
"@deepseek-ai/dsh-client-ui-chat": "^0.1.6-alpha.2",
|
|
89
|
+
"@deepseek-ai/dsh-client-ui-commands": "^0.1.6-alpha.2",
|
|
90
|
+
"@deepseek-ai/dsh-client-ui-cordis": "^0.1.6-alpha.2",
|
|
91
|
+
"@deepseek-ai/dsh-client-ui-conversation": "^0.1.6-alpha.2",
|
|
92
|
+
"@deepseek-ai/dsh-client-ui-deliverables": "^0.1.6-alpha.2",
|
|
93
|
+
"@deepseek-ai/dsh-client-ui-directory-picker-native": "^0.1.6-alpha.2",
|
|
94
|
+
"@deepseek-ai/dsh-client-ui-goal": "^0.1.6-alpha.2",
|
|
95
|
+
"@deepseek-ai/dsh-client-ui-directory-picker-browse": "^0.1.6-alpha.2",
|
|
96
|
+
"@deepseek-ai/dsh-client-ui-layout": "^0.1.6-alpha.2",
|
|
97
|
+
"@deepseek-ai/dsh-client-ui-input-trigger": "^0.1.6-alpha.2",
|
|
98
|
+
"@deepseek-ai/dsh-client-ui-jobs": "^0.1.6-alpha.2",
|
|
99
|
+
"@deepseek-ai/dsh-client-ui-message-feedback": "^0.1.6-alpha.2",
|
|
100
|
+
"@deepseek-ai/dsh-client-ui-model-selection": "^0.1.6-alpha.2",
|
|
101
|
+
"@deepseek-ai/dsh-client-ui-plugin-manager": "^0.1.6-alpha.2",
|
|
102
|
+
"@deepseek-ai/dsh-client-ui-plan": "^0.1.6-alpha.2",
|
|
103
|
+
"@deepseek-ai/dsh-client-ui-primitives": "^0.1.6-alpha.2",
|
|
104
|
+
"@deepseek-ai/dsh-client-ui-renderer": "^0.1.6-alpha.2",
|
|
105
|
+
"@deepseek-ai/dsh-client-ui-permission-presets": "^0.1.6-alpha.2",
|
|
106
|
+
"@deepseek-ai/dsh-client-ui-session": "^0.1.6-alpha.2",
|
|
107
|
+
"@deepseek-ai/dsh-client-ui-settings": "^0.1.6-alpha.2",
|
|
108
|
+
"@deepseek-ai/dsh-client-ui-open-in-app": "^0.1.6-alpha.2",
|
|
109
|
+
"@deepseek-ai/dsh-client-ui-schedule": "^0.1.6-alpha.2",
|
|
110
|
+
"@deepseek-ai/dsh-client-ui-reference": "^0.1.6-alpha.2",
|
|
111
|
+
"@deepseek-ai/dsh-client-ui-settings-general": "^0.1.6-alpha.2",
|
|
112
|
+
"@deepseek-ai/dsh-client-ui-settings-models": "^0.1.6-alpha.2",
|
|
113
|
+
"@deepseek-ai/dsh-client-ui-settings-plugins": "^0.1.6-alpha.2",
|
|
114
|
+
"@deepseek-ai/dsh-client-ui-settings-plugin-inventory": "^0.1.6-alpha.2",
|
|
115
|
+
"@deepseek-ai/dsh-client-ui-sidebar-documentpreview": "^0.1.6-alpha.2",
|
|
116
|
+
"@deepseek-ai/dsh-client-ui-sidebar-files": "^0.1.6-alpha.2",
|
|
117
|
+
"@deepseek-ai/dsh-client-ui-sidebar-browser": "^0.1.6-alpha.2",
|
|
118
|
+
"@deepseek-ai/dsh-client-ui-sidebar-terminal": "^0.1.6-alpha.2",
|
|
119
|
+
"@deepseek-ai/dsh-client-ui-sidebar-right": "^0.1.6-alpha.2",
|
|
120
|
+
"@deepseek-ai/dsh-client-ui-skill": "^0.1.6-alpha.2",
|
|
121
|
+
"@deepseek-ai/dsh-client-ui-subagent": "^0.1.6-alpha.2",
|
|
122
|
+
"@deepseek-ai/dsh-client-ui-sidebar": "^0.1.6-alpha.2",
|
|
123
|
+
"@deepseek-ai/dsh-client-ui-theme": "^0.1.6-alpha.2",
|
|
124
|
+
"@deepseek-ai/dsh-client-ui-settings-unarchive-sessions": "^0.1.6-alpha.2",
|
|
125
|
+
"@deepseek-ai/dsh-client-ui-slots": "^0.1.6-alpha.2",
|
|
126
|
+
"@deepseek-ai/dsh-client-ui-tool": "^0.1.6-alpha.2",
|
|
127
|
+
"@deepseek-ai/dsh-client-ui-user-questions": "^0.1.6-alpha.2",
|
|
128
|
+
"@deepseek-ai/dsh-cmdline": "^0.1.6-alpha.2",
|
|
129
|
+
"@deepseek-ai/dsh-client-ui-workflow-run": "^0.1.6-alpha.2",
|
|
130
|
+
"@deepseek-ai/dsh-client-ui-workspace": "^0.1.6-alpha.2",
|
|
131
|
+
"@deepseek-ai/dsh-client-ui-trajectory": "^0.1.6-alpha.2",
|
|
132
|
+
"@deepseek-ai/dsh-command-compact": "^0.1.6-alpha.2",
|
|
133
|
+
"@deepseek-ai/dsh-command-feedback": "^0.1.6-alpha.2",
|
|
134
|
+
"@deepseek-ai/dsh-command-goal": "^0.1.6-alpha.2",
|
|
135
|
+
"@deepseek-ai/dsh-compaction": "^0.1.6-alpha.2",
|
|
136
|
+
"@deepseek-ai/dsh-compaction-basic": "^0.1.6-alpha.2",
|
|
137
|
+
"@deepseek-ai/dsh-compaction-tool-result-pruner": "^0.1.6-alpha.2",
|
|
138
|
+
"@deepseek-ai/dsh-commands": "^0.1.6-alpha.2",
|
|
139
|
+
"@deepseek-ai/dsh-cordis-client-runner": "^0.1.6-alpha.2",
|
|
140
|
+
"@deepseek-ai/dsh-cordis-host-runner": "^0.1.6-alpha.2",
|
|
141
|
+
"@deepseek-ai/dsh-compaction-image-offload": "^0.1.6-alpha.2",
|
|
142
|
+
"@deepseek-ai/dsh-credentials-local": "^0.1.6-alpha.2",
|
|
143
|
+
"@deepseek-ai/dsh-credentials": "^0.1.6-alpha.2",
|
|
144
|
+
"@deepseek-ai/dsh-deepseek-llm-api-extensions": "^0.1.6-alpha.2",
|
|
145
|
+
"@deepseek-ai/dsh-experimental-agent-team-profile": "^0.1.6-alpha.2",
|
|
146
|
+
"@deepseek-ai/dsh-experimental-agent-team": "^0.1.6-alpha.2",
|
|
147
|
+
"@deepseek-ai/dsh-experimental-agent-team-web-profile": "^0.1.6-alpha.2",
|
|
148
|
+
"@deepseek-ai/dsh-deque": "^0.1.6-alpha.2",
|
|
149
|
+
"@deepseek-ai/dsh-experimental-ptc-runtime-python": "^0.1.6-alpha.2",
|
|
150
|
+
"@deepseek-ai/dsh-experimental-client-ui-agent-team": "^0.1.6-alpha.2",
|
|
151
|
+
"@deepseek-ai/dsh-file-reference-local": "^0.1.6-alpha.2",
|
|
152
|
+
"@deepseek-ai/dsh-experimental-tool-agent-team": "^0.1.6-alpha.2",
|
|
153
|
+
"@deepseek-ai/dsh-fs-observation-policy": "^0.1.6-alpha.2",
|
|
154
|
+
"@deepseek-ai/dsh-fs": "^0.1.6-alpha.2",
|
|
155
|
+
"@deepseek-ai/dsh-goal": "^0.1.6-alpha.2",
|
|
156
|
+
"@deepseek-ai/dsh-fs-local": "^0.1.6-alpha.2",
|
|
157
|
+
"@deepseek-ai/dsh-fs-sandbox": "^0.1.6-alpha.2",
|
|
158
|
+
"@deepseek-ai/dsh-goal-round-driver": "^0.1.6-alpha.2",
|
|
159
|
+
"@deepseek-ai/dsh-headless": "^0.1.6-alpha.2",
|
|
160
|
+
"@deepseek-ai/dsh-hmr": "^0.1.6-alpha.2",
|
|
161
|
+
"@deepseek-ai/dsh-file-reference": "^0.1.6-alpha.2",
|
|
162
|
+
"@deepseek-ai/dsh-hooks-claude-code": "^0.1.6-alpha.2",
|
|
163
|
+
"@deepseek-ai/dsh-host-directory-picker": "^0.1.6-alpha.2",
|
|
164
|
+
"@deepseek-ai/dsh-hooks-codex": "^0.1.6-alpha.2",
|
|
165
|
+
"@deepseek-ai/dsh-host-directory-picker-browse": "^0.1.6-alpha.2",
|
|
166
|
+
"@deepseek-ai/dsh-host-directory-picker-auto": "^0.1.6-alpha.2",
|
|
167
|
+
"@deepseek-ai/dsh-host-directory-picker-native": "^0.1.6-alpha.2",
|
|
168
|
+
"@deepseek-ai/dsh-hook-protocol": "^0.1.6-alpha.2",
|
|
169
|
+
"@deepseek-ai/dsh-host-open-in-app": "^0.1.6-alpha.2",
|
|
170
|
+
"@deepseek-ai/dsh-host-frontend-static": "^0.1.6-alpha.2",
|
|
171
|
+
"@deepseek-ai/dsh-host-webserver": "^0.1.6-alpha.2",
|
|
172
|
+
"@deepseek-ai/dsh-invariants": "^0.1.6-alpha.2",
|
|
173
|
+
"@deepseek-ai/dsh-http-proxy": "^0.1.6-alpha.2",
|
|
174
|
+
"@deepseek-ai/dsh-host-plugin-inventory": "^0.1.6-alpha.2",
|
|
175
|
+
"@deepseek-ai/dsh-jobs": "^0.1.6-alpha.2",
|
|
176
|
+
"@deepseek-ai/dsh-jobs-local": "^0.1.6-alpha.2",
|
|
177
|
+
"@deepseek-ai/dsh-launch-environment": "^0.1.6-alpha.2",
|
|
178
|
+
"@deepseek-ai/dsh-lazy-require": "^0.1.6-alpha.2",
|
|
179
|
+
"@deepseek-ai/dsh-home-paths": "^0.1.6-alpha.2",
|
|
180
|
+
"@deepseek-ai/dsh-llm": "^0.1.6-alpha.2",
|
|
181
|
+
"@deepseek-ai/dsh-llm-deepseek": "^0.1.6-alpha.2",
|
|
182
|
+
"@deepseek-ai/dsh-llm-retry": "^0.1.6-alpha.2",
|
|
183
|
+
"@deepseek-ai/dsh-mcp-client": "^0.1.6-alpha.2",
|
|
184
|
+
"@deepseek-ai/dsh-message-feedback": "^0.1.6-alpha.2",
|
|
185
|
+
"@deepseek-ai/dsh-mcp-resources": "^0.1.6-alpha.2",
|
|
186
|
+
"@deepseek-ai/dsh-llm-pi-ai": "^0.1.6-alpha.2",
|
|
187
|
+
"@deepseek-ai/dsh-office-to-pdf": "^0.1.6-alpha.2",
|
|
188
|
+
"@deepseek-ai/dsh-permission-presets": "^0.1.6-alpha.2",
|
|
189
|
+
"@deepseek-ai/dsh-package-manifest": "^0.1.6-alpha.2",
|
|
190
|
+
"@deepseek-ai/dsh-plan-mode": "^0.1.6-alpha.2",
|
|
191
|
+
"@deepseek-ai/dsh-plugin-manager": "^0.1.6-alpha.2",
|
|
192
|
+
"@deepseek-ai/dsh-plugin-package-inventory-deepseek": "^0.1.6-alpha.2",
|
|
193
|
+
"@deepseek-ai/dsh-native-command": "^0.1.6-alpha.2",
|
|
194
|
+
"@deepseek-ai/dsh-ptc-runtime": "^0.1.6-alpha.2",
|
|
195
|
+
"@deepseek-ai/dsh-ptc-runtime-node": "^0.1.6-alpha.2",
|
|
196
|
+
"@deepseek-ai/dsh-persona": "^0.1.6-alpha.2",
|
|
197
|
+
"@deepseek-ai/dsh-pwsh-local": "^0.1.6-alpha.2",
|
|
198
|
+
"@deepseek-ai/dsh-pwsh-sandbox": "^0.1.6-alpha.2",
|
|
199
|
+
"@deepseek-ai/dsh-repeat-tool-reminder": "^0.1.6-alpha.2",
|
|
200
|
+
"@deepseek-ai/dsh-sandbox": "^0.1.6-alpha.2",
|
|
201
|
+
"@deepseek-ai/dsh-sandbox-policy": "^0.1.6-alpha.2",
|
|
202
|
+
"@deepseek-ai/dsh-sandbox-windows-acl": "^0.1.6-alpha.2",
|
|
203
|
+
"@deepseek-ai/dsh-output-retention": "^0.1.6-alpha.2",
|
|
204
|
+
"@deepseek-ai/dsh-sandbox-local": "^0.1.6-alpha.2",
|
|
205
|
+
"@deepseek-ai/dsh-scope": "^0.1.6-alpha.2",
|
|
206
|
+
"@deepseek-ai/dsh-sdk-jsonrpc-server": "^0.1.6-alpha.2",
|
|
207
|
+
"@deepseek-ai/dsh-schedule": "^0.1.6-alpha.2",
|
|
208
|
+
"@deepseek-ai/dsh-sdk-minimal": "^0.1.6-alpha.2",
|
|
209
|
+
"@deepseek-ai/dsh-sdk-protocol": "^0.1.6-alpha.2",
|
|
210
|
+
"@deepseek-ai/dsh-session": "^0.1.6-alpha.2",
|
|
211
|
+
"@deepseek-ai/dsh-session-checkpoint-policy": "^0.1.6-alpha.2",
|
|
212
|
+
"@deepseek-ai/dsh-session-format-v0-to-v1": "^0.1.6-alpha.2",
|
|
213
|
+
"@deepseek-ai/dsh-sdk-app": "^0.1.6-alpha.2",
|
|
214
|
+
"@deepseek-ai/dsh-session-format": "^0.1.6-alpha.2",
|
|
215
|
+
"@deepseek-ai/dsh-session-format-v1-to-v2": "^0.1.6-alpha.2",
|
|
216
|
+
"@deepseek-ai/dsh-session-log-deepseek": "^0.1.6-alpha.2",
|
|
217
|
+
"@deepseek-ai/dsh-session-format-catalog": "^0.1.6-alpha.2",
|
|
218
|
+
"@deepseek-ai/dsh-session-format-v2-to-v3": "^0.1.6-alpha.2",
|
|
219
|
+
"@deepseek-ai/dsh-session-log-export": "^0.1.6-alpha.2",
|
|
220
|
+
"@deepseek-ai/dsh-session-persistence": "^0.1.6-alpha.2",
|
|
221
|
+
"@deepseek-ai/dsh-session-persistence-jsonl": "^0.1.6-alpha.2",
|
|
222
|
+
"@deepseek-ai/dsh-session-query-sqlite": "^0.1.6-alpha.2",
|
|
223
|
+
"@deepseek-ai/dsh-session-projection": "^0.1.6-alpha.2",
|
|
224
|
+
"@deepseek-ai/dsh-session-projection-cache": "^0.1.6-alpha.2",
|
|
225
|
+
"@deepseek-ai/dsh-session-query": "^0.1.6-alpha.2",
|
|
226
|
+
"@deepseek-ai/dsh-session-stats": "^0.1.6-alpha.2",
|
|
227
|
+
"@deepseek-ai/dsh-session-reference": "^0.1.6-alpha.2",
|
|
228
|
+
"@deepseek-ai/dsh-session-telemetry-otel": "^0.1.6-alpha.2",
|
|
229
|
+
"@deepseek-ai/dsh-session-telemetry": "^0.1.6-alpha.2",
|
|
230
|
+
"@deepseek-ai/dsh-session-title": "^0.1.6-alpha.2",
|
|
231
|
+
"@deepseek-ai/dsh-session-title-first-prompt-llm": "^0.1.6-alpha.2",
|
|
232
|
+
"@deepseek-ai/dsh-session-title-llm": "^0.1.6-alpha.2",
|
|
233
|
+
"@deepseek-ai/dsh-session-turn-outline": "^0.1.6-alpha.2",
|
|
234
|
+
"@deepseek-ai/dsh-settings-file": "^0.1.6-alpha.2",
|
|
235
|
+
"@deepseek-ai/dsh-skill": "^0.1.6-alpha.2",
|
|
236
|
+
"@deepseek-ai/dsh-shell": "^0.1.6-alpha.2",
|
|
237
|
+
"@deepseek-ai/dsh-shell-env": "^0.1.6-alpha.2",
|
|
238
|
+
"@deepseek-ai/dsh-skill-filesystem": "^0.1.6-alpha.2",
|
|
239
|
+
"@deepseek-ai/dsh-spill": "^0.1.6-alpha.2",
|
|
240
|
+
"@deepseek-ai/dsh-spill-local": "^0.1.6-alpha.2",
|
|
241
|
+
"@deepseek-ai/dsh-settings": "^0.1.6-alpha.2",
|
|
242
|
+
"@deepseek-ai/dsh-skill-badge": "^0.1.6-alpha.2",
|
|
243
|
+
"@deepseek-ai/dsh-spill-policy": "^0.1.6-alpha.2",
|
|
244
|
+
"@deepseek-ai/dsh-storage": "^0.1.6-alpha.2",
|
|
245
|
+
"@deepseek-ai/dsh-storage-domain": "^0.1.6-alpha.2",
|
|
246
|
+
"@deepseek-ai/dsh-storage-json": "^0.1.6-alpha.2",
|
|
247
|
+
"@deepseek-ai/dsh-subagent-in-process-driver": "^0.1.6-alpha.2",
|
|
248
|
+
"@deepseek-ai/dsh-subagent-fork-in-process": "^0.1.6-alpha.2",
|
|
249
|
+
"@deepseek-ai/dsh-subagent": "^0.1.6-alpha.2",
|
|
250
|
+
"@deepseek-ai/dsh-subagent-spawn-in-process": "^0.1.6-alpha.2",
|
|
251
|
+
"@deepseek-ai/dsh-system-prompt": "^0.1.6-alpha.2",
|
|
252
|
+
"@deepseek-ai/dsh-subprocess": "^0.1.6-alpha.2",
|
|
253
|
+
"@deepseek-ai/dsh-subprocess-local": "^0.1.6-alpha.2",
|
|
254
|
+
"@deepseek-ai/dsh-terminal": "^0.1.6-alpha.2",
|
|
255
|
+
"@deepseek-ai/dsh-time-context": "^0.1.6-alpha.2",
|
|
256
|
+
"@deepseek-ai/dsh-timeout": "^0.1.6-alpha.2",
|
|
257
|
+
"@deepseek-ai/dsh-tmux-context": "^0.1.6-alpha.2",
|
|
258
|
+
"@deepseek-ai/dsh-terminal-bash": "^0.1.6-alpha.2",
|
|
259
|
+
"@deepseek-ai/dsh-token-meter": "^0.1.6-alpha.2",
|
|
260
|
+
"@deepseek-ai/dsh-tool-ask-user": "^0.1.6-alpha.2",
|
|
261
|
+
"@deepseek-ai/dsh-tool-bash": "^0.1.6-alpha.2",
|
|
262
|
+
"@deepseek-ai/dsh-tool-bash-persistent": "^0.1.6-alpha.2",
|
|
263
|
+
"@deepseek-ai/dsh-tool-call-timeout-policy": "^0.1.6-alpha.2",
|
|
264
|
+
"@deepseek-ai/dsh-tool-cordis": "^0.1.6-alpha.2",
|
|
265
|
+
"@deepseek-ai/dsh-tool-fs": "^0.1.6-alpha.2",
|
|
266
|
+
"@deepseek-ai/dsh-tool-fs-search": "^0.1.6-alpha.2",
|
|
267
|
+
"@deepseek-ai/dsh-tool-goal": "^0.1.6-alpha.2",
|
|
268
|
+
"@deepseek-ai/dsh-tool-jobs": "^0.1.6-alpha.2",
|
|
269
|
+
"@deepseek-ai/dsh-tool-present": "^0.1.6-alpha.2",
|
|
270
|
+
"@deepseek-ai/dsh-tool-pwsh-persistent": "^0.1.6-alpha.2",
|
|
271
|
+
"@deepseek-ai/dsh-tool-ralph": "^0.1.6-alpha.2",
|
|
272
|
+
"@deepseek-ai/dsh-tool-skill": "^0.1.6-alpha.2",
|
|
273
|
+
"@deepseek-ai/dsh-tool-pwsh": "^0.1.6-alpha.2",
|
|
274
|
+
"@deepseek-ai/dsh-tool-subagent": "^0.1.6-alpha.2",
|
|
275
|
+
"@deepseek-ai/dsh-tool-str-replace-editor": "^0.1.6-alpha.2",
|
|
276
|
+
"@deepseek-ai/dsh-tool-todo": "^0.1.6-alpha.2",
|
|
277
|
+
"@deepseek-ai/dsh-tool-subagent-control": "^0.1.6-alpha.2",
|
|
278
|
+
"@deepseek-ai/dsh-tool-web": "^0.1.6-alpha.2",
|
|
279
|
+
"@deepseek-ai/dsh-tool-workflow": "^0.1.6-alpha.2",
|
|
280
|
+
"@deepseek-ai/dsh-typert-loader": "^0.1.6-alpha.2",
|
|
281
|
+
"@deepseek-ai/dsh-tools": "^0.1.6-alpha.2",
|
|
282
|
+
"@deepseek-ai/dsh-typert-protocol": "^0.1.6-alpha.2",
|
|
283
|
+
"@deepseek-ai/dsh-user-approval": "^0.1.6-alpha.2",
|
|
284
|
+
"@deepseek-ai/dsh-typert-registry": "^0.1.6-alpha.2",
|
|
285
|
+
"@deepseek-ai/dsh-user-questions": "^0.1.6-alpha.2",
|
|
286
|
+
"@deepseek-ai/dsh-util-crypto": "^0.1.6-alpha.2",
|
|
287
|
+
"@deepseek-ai/dsh-util-values": "^0.1.6-alpha.2",
|
|
288
|
+
"@deepseek-ai/dsh-web": "^0.1.6-alpha.2",
|
|
289
|
+
"@deepseek-ai/dsh-util-time": "^0.1.6-alpha.2",
|
|
290
|
+
"@deepseek-ai/dsh-web-app": "^0.1.6-alpha.2",
|
|
291
|
+
"@deepseek-ai/dsh-util-workspace-path": "^0.1.6-alpha.2",
|
|
292
|
+
"@deepseek-ai/dsh-web-fetch-http": "^0.1.6-alpha.2",
|
|
293
|
+
"@deepseek-ai/dsh-webhook": "^0.1.6-alpha.2",
|
|
294
|
+
"@deepseek-ai/dsh-web-frontend": "^0.1.6-alpha.2",
|
|
295
|
+
"@deepseek-ai/dsh-webhook-github": "^0.1.6-alpha.2",
|
|
296
|
+
"@deepseek-ai/dsh-workflow": "^0.1.6-alpha.2",
|
|
297
|
+
"@deepseek-ai/dsh-win32-process": "^0.1.6-alpha.2",
|
|
298
|
+
"@deepseek-ai/dsh-workflow-ptc": "^0.1.6-alpha.2",
|
|
299
|
+
"@deepseek-ai/dsh-workspace-changes": "^0.1.6-alpha.2",
|
|
300
|
+
"@deepseek-ai/dsh-workspace": "^0.1.6-alpha.2",
|
|
301
|
+
"@deepseek-ai/schemastery": "^3.18.2",
|
|
302
|
+
"@deepseek-ai/dsh-web-search-deepseek": "^0.1.6-alpha.2"
|
|
42
303
|
},
|
|
43
304
|
"devDependencies": {
|
|
44
|
-
"@
|
|
45
|
-
"@
|
|
46
|
-
"@
|
|
47
|
-
"
|
|
48
|
-
"
|
|
49
|
-
"@
|
|
50
|
-
"@
|
|
51
|
-
"@
|
|
52
|
-
"@
|
|
53
|
-
"@
|
|
54
|
-
"@modelcontextprotocol/sdk": "1.29.0",
|
|
55
|
-
"@opentelemetry/api": "1.9.1",
|
|
56
|
-
"@opentelemetry/api-logs": "0.214.0",
|
|
57
|
-
"@opentelemetry/core": "2.6.1",
|
|
58
|
-
"@opentelemetry/resources": "2.6.1",
|
|
59
|
-
"@opentelemetry/sdk-logs": "0.214.0",
|
|
60
|
-
"@opentelemetry/sdk-metrics": "2.6.1",
|
|
61
|
-
"@opentelemetry/sdk-trace-base": "2.6.1",
|
|
62
|
-
"@opentelemetry/semantic-conventions": "1.40.0",
|
|
63
|
-
"adm-zip": "0.5.16",
|
|
64
|
-
"ajv": "8.18.0",
|
|
65
|
-
"asciichart": "1.5.25",
|
|
66
|
-
"auto-bind": "5.0.1",
|
|
67
|
-
"axios": "1.14.0",
|
|
68
|
-
"bidi-js": "1.0.3",
|
|
69
|
-
"chalk": "5.6.2",
|
|
70
|
-
"chokidar": "5.0.0",
|
|
71
|
-
"cli-boxes": "4.0.1",
|
|
72
|
-
"code-excerpt": "4.0.0",
|
|
73
|
-
"color-diff-napi": "file:./shims/color-diff-napi",
|
|
74
|
-
"diff": "8.0.4",
|
|
75
|
-
"emoji-regex": "10.6.0",
|
|
76
|
-
"env-paths": "4.0.0",
|
|
77
|
-
"execa": "9.6.1",
|
|
78
|
-
"fflate": "0.8.2",
|
|
79
|
-
"figures": "6.1.0",
|
|
80
|
-
"fuse.js": "7.1.0",
|
|
81
|
-
"get-east-asian-width": "1.5.0",
|
|
82
|
-
"highlight.js": "11.11.1",
|
|
83
|
-
"https-proxy-agent": "8.0.0",
|
|
84
|
-
"ignore": "7.0.5",
|
|
85
|
-
"indent-string": "5.0.0",
|
|
86
|
-
"ink": "6.8.0",
|
|
87
|
-
"jsonc-parser": "3.3.1",
|
|
88
|
-
"lodash-es": "4.17.23",
|
|
89
|
-
"lru-cache": "11.2.7",
|
|
90
|
-
"marked": "17.0.5",
|
|
91
|
-
"modifiers-napi": "file:./shims/modifiers-napi",
|
|
92
|
-
"p-map": "7.0.4",
|
|
93
|
-
"picomatch": "4.0.4",
|
|
94
|
-
"proper-lockfile": "4.1.2",
|
|
95
|
-
"qrcode": "1.5.4",
|
|
96
|
-
"react": "19.2.4",
|
|
97
|
-
"react-reconciler": "0.33.0",
|
|
98
|
-
"semver": "7.7.4",
|
|
99
|
-
"shell-quote": "1.8.3",
|
|
100
|
-
"signal-exit": "4.1.0",
|
|
101
|
-
"stack-utils": "2.0.6",
|
|
102
|
-
"strip-ansi": "7.2.0",
|
|
103
|
-
"supports-hyperlinks": "4.4.0",
|
|
104
|
-
"tree-kill": "1.2.2",
|
|
105
|
-
"type-fest": "5.5.0",
|
|
106
|
-
"undici": "7.24.6",
|
|
107
|
-
"url-handler-napi": "file:./shims/url-handler-napi",
|
|
108
|
-
"usehooks-ts": "3.1.1",
|
|
109
|
-
"uuid": "^11.1.0",
|
|
110
|
-
"vscode-jsonrpc": "8.2.1",
|
|
111
|
-
"vscode-languageserver-protocol": "3.17.5",
|
|
112
|
-
"vscode-languageserver-types": "3.17.5",
|
|
113
|
-
"wrap-ansi": "10.0.0",
|
|
114
|
-
"ws": "8.20.0",
|
|
115
|
-
"xss": "1.0.15",
|
|
116
|
-
"yaml": "2.8.3",
|
|
117
|
-
"zod": "4.3.6"
|
|
305
|
+
"@agentclientprotocol/sdk": "1.4.0",
|
|
306
|
+
"@types/js-yaml": "^4.0.9",
|
|
307
|
+
"@types/ws": "8.18.1",
|
|
308
|
+
"execa": "^10.0.0",
|
|
309
|
+
"ws": "8.21.0",
|
|
310
|
+
"@deepseek-ai/dsh-agent-loop-testkit": "^0.1.6-alpha.2",
|
|
311
|
+
"@deepseek-ai/dsh-system-prompt": "^0.1.6-alpha.2",
|
|
312
|
+
"@deepseek-ai/dsh-llm-mock-server": "^0.1.6-alpha.2",
|
|
313
|
+
"@deepseek-ai/dsh-llm-replay": "^0.1.6-alpha.2",
|
|
314
|
+
"@deepseek-ai/dsh-loader-smoke": "^0.1.6-alpha.2"
|
|
118
315
|
},
|
|
119
|
-
"
|
|
120
|
-
"
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
"
|
|
316
|
+
"exports": {
|
|
317
|
+
"./profile-boot": {
|
|
318
|
+
"types": "./lib/types/profile-boot.d.ts",
|
|
319
|
+
"default": "./lib/profile-boot.js"
|
|
320
|
+
},
|
|
321
|
+
"./lib/*": "./lib/*",
|
|
322
|
+
"./package.json": "./package.json"
|
|
125
323
|
}
|
|
126
|
-
}
|
|
324
|
+
}
|
package/bin/cli.js
DELETED
|
@@ -1,102 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
import { existsSync, readFileSync } from 'node:fs'
|
|
3
|
-
import { createRequire } from 'node:module'
|
|
4
|
-
import { dirname, join } from 'node:path'
|
|
5
|
-
import { fileURLToPath } from 'node:url'
|
|
6
|
-
import { runSupervised } from './generation-supervisor.js'
|
|
7
|
-
|
|
8
|
-
const require = createRequire(import.meta.url)
|
|
9
|
-
const here = dirname(fileURLToPath(import.meta.url))
|
|
10
|
-
const root = join(here, '..')
|
|
11
|
-
const args = process.argv.slice(2)
|
|
12
|
-
const platformKey = `${process.platform}-${process.arch}`
|
|
13
|
-
const executableName = process.platform === 'win32' ? 'chatcode-cli.exe' : 'chatcode-cli'
|
|
14
|
-
const mainPackage = JSON.parse(
|
|
15
|
-
readFileSync(join(root, 'package.json'), 'utf8'),
|
|
16
|
-
)
|
|
17
|
-
const mainPackageName = mainPackage.name
|
|
18
|
-
|
|
19
|
-
function shouldUseNativeBinary() {
|
|
20
|
-
if (process.env.CHATCODE_CLI_FORCE_NODE === '1') return false
|
|
21
|
-
return (
|
|
22
|
-
process.env.CHATCODE_CLI_USE_NATIVE === '1' ||
|
|
23
|
-
process.env.CHATCODE_CLI_FORCE_NATIVE === '1'
|
|
24
|
-
)
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
function resolveOptionalBinary() {
|
|
28
|
-
if (process.env.CHATCODE_CLI_FORCE_NODE === '1') return null
|
|
29
|
-
if (!shouldUseNativeBinary()) return null
|
|
30
|
-
|
|
31
|
-
try {
|
|
32
|
-
const packageName = `${mainPackageName}-${platformKey}`
|
|
33
|
-
const executablePath = require.resolve(`${packageName}/${executableName}`)
|
|
34
|
-
const nativePackage = JSON.parse(
|
|
35
|
-
readFileSync(join(dirname(executablePath), 'package.json'), 'utf8'),
|
|
36
|
-
)
|
|
37
|
-
const versionMatches = nativePackage.version === mainPackage.version
|
|
38
|
-
const formatMatches =
|
|
39
|
-
nativePackage.chatcodeNativePackageFormat ===
|
|
40
|
-
mainPackage.chatcodeNativePackageFormat
|
|
41
|
-
if (!versionMatches || !formatMatches) {
|
|
42
|
-
console.warn(
|
|
43
|
-
`Ignoring ${packageName}@${nativePackage.version}: expected version ${mainPackage.version} and native package format ${mainPackage.chatcodeNativePackageFormat}. Using the bundled Node build instead.`,
|
|
44
|
-
)
|
|
45
|
-
return null
|
|
46
|
-
}
|
|
47
|
-
return executablePath
|
|
48
|
-
} catch (_) {
|
|
49
|
-
return null
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
function resolveLocalBinary() {
|
|
54
|
-
if (process.env.CHATCODE_CLI_FORCE_NODE === '1') return null
|
|
55
|
-
if (!shouldUseNativeBinary()) return null
|
|
56
|
-
|
|
57
|
-
const localBinary = join(root, 'dist', 'native', platformKey, executableName)
|
|
58
|
-
return existsSync(localBinary) ? localBinary : null
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
function run(command, commandArgs) {
|
|
62
|
-
const result = runSupervised(command, commandArgs)
|
|
63
|
-
|
|
64
|
-
if (result.error) return result.error
|
|
65
|
-
if (result.signal) {
|
|
66
|
-
process.kill(process.pid, result.signal)
|
|
67
|
-
process.exit(1)
|
|
68
|
-
}
|
|
69
|
-
process.exit(result.status ?? 1)
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
const nativeBinary = resolveLocalBinary() ?? resolveOptionalBinary()
|
|
73
|
-
if (nativeBinary) {
|
|
74
|
-
const error = run(nativeBinary, args)
|
|
75
|
-
if (error && error.code !== 'ENOENT') {
|
|
76
|
-
console.error(`Failed to run native ChatCode CLI binary: ${error.message}`)
|
|
77
|
-
process.exit(1)
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
const fallbackCli = join(root, 'dist', 'cli.js')
|
|
82
|
-
if (!existsSync(fallbackCli)) {
|
|
83
|
-
console.error(
|
|
84
|
-
`ChatCode CLI is not installed correctly: missing ${fallbackCli}`,
|
|
85
|
-
)
|
|
86
|
-
process.exit(1)
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
const error = run(process.execPath, [
|
|
90
|
-
'--max-old-space-size=4096',
|
|
91
|
-
'--stack_size=4096',
|
|
92
|
-
// The REPL only calls global.gc() after an idle rebuildable-cache release. This
|
|
93
|
-
// lets V8 reclaim the now-unreachable graph promptly instead of waiting for
|
|
94
|
-
// a future allocation to discover it.
|
|
95
|
-
'--expose-gc',
|
|
96
|
-
fallbackCli,
|
|
97
|
-
...args,
|
|
98
|
-
])
|
|
99
|
-
if (error) {
|
|
100
|
-
console.error(`Failed to run ChatCode CLI: ${error.message}`)
|
|
101
|
-
process.exit(1)
|
|
102
|
-
}
|