@cofy-x/dsh-console 0.1.0-alpha.5 → 0.1.0-alpha.7
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/README.md +10 -3
- package/bin/dsh-console.js +18 -5
- package/cordis.patch.yml +2 -0
- package/dist/{chunk-N3EQS35J.js → chunk-4L2DX7CL.js} +11 -0
- package/dist/{chunk-6BGDBP2N.js → chunk-HNDB6HFI.js} +969 -526
- package/dist/dsh/index.d.ts +2 -0
- package/dist/dsh/index.js +2 -2
- package/dist/dsh/startup.d.ts +4 -0
- package/dist/dsh/startup.js +38 -14
- package/dist/index.js +2 -2
- package/dist/ui/renderers.js +1 -1
- package/package.json +36 -18
package/dist/dsh/index.d.ts
CHANGED
|
@@ -11,6 +11,8 @@ export interface Config {
|
|
|
11
11
|
prompt?: string;
|
|
12
12
|
debug?: boolean;
|
|
13
13
|
pokemon?: number;
|
|
14
|
+
continueSession?: boolean;
|
|
15
|
+
resumeSessionId?: string;
|
|
14
16
|
}
|
|
15
17
|
export declare const Config: z<Config>;
|
|
16
18
|
export declare function apply(ctx: Context, config: Config): void;
|
package/dist/dsh/index.js
CHANGED
package/dist/dsh/startup.d.ts
CHANGED
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
* Copyright 2026 cofy-x
|
|
4
4
|
* SPDX-License-Identifier: Apache-2.0
|
|
5
5
|
*/
|
|
6
|
+
import { Command } from 'commander';
|
|
6
7
|
import type { Context } from '@deepseek-ai/cordis';
|
|
7
8
|
export declare const name = "dsh-console-startup";
|
|
8
9
|
export declare const inject: string[];
|
|
@@ -11,5 +12,8 @@ export interface DshConsoleStartupValues {
|
|
|
11
12
|
prompt?: string;
|
|
12
13
|
debug: boolean;
|
|
13
14
|
pokemon?: number;
|
|
15
|
+
continueSession?: boolean;
|
|
16
|
+
resumeSessionId?: string;
|
|
14
17
|
}
|
|
18
|
+
export declare function createStartupCommand(provide: (values: DshConsoleStartupValues) => void, env?: NodeJS.ProcessEnv): Command;
|
|
15
19
|
export declare function apply(ctx: Context): void;
|
package/dist/dsh/startup.js
CHANGED
|
@@ -4,34 +4,58 @@ import {
|
|
|
4
4
|
} from "../chunk-WTD7XY24.js";
|
|
5
5
|
|
|
6
6
|
// src/dsh/startup.ts
|
|
7
|
-
import { Command } from "commander";
|
|
7
|
+
import { Command, Option } from "commander";
|
|
8
8
|
import { parseCmdline } from "@deepseek-ai/dsh-cmdline";
|
|
9
9
|
var name = "dsh-console-startup";
|
|
10
10
|
var inject = ["cmdlineArgs"];
|
|
11
11
|
var DSH_CONSOLE_STARTUP_SERVICE = "dshConsoleStartup";
|
|
12
|
-
function
|
|
12
|
+
function createStartupCommand(provide, env = process.env) {
|
|
13
13
|
const program = new Command().name("dsh-console").description("Run DeepSeek Harness with the DSH Console terminal frontend.").helpOption("-h, --help", "show this help").option("-d, --debug", "enable DSH Console diagnostics", false).option(
|
|
14
14
|
"--pokemon <number>",
|
|
15
15
|
"use a bundled Pokemon number for this launch"
|
|
16
|
-
).option("-p, --prompt <text>", "submit an initial prompt after startup")
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
16
|
+
).option("-p, --prompt <text>", "submit an initial prompt after startup").addOption(
|
|
17
|
+
new Option(
|
|
18
|
+
"-c, --continue",
|
|
19
|
+
"resume the latest Session for this directory"
|
|
20
|
+
).conflicts("resume")
|
|
21
|
+
).addOption(
|
|
22
|
+
new Option(
|
|
23
|
+
"--resume <session-id>",
|
|
24
|
+
"resume a specific Session for this directory"
|
|
25
|
+
).conflicts("continue")
|
|
26
|
+
).action((options) => {
|
|
27
|
+
const resumeSessionId = options.resume?.trim();
|
|
28
|
+
if (options.resume !== void 0 && !resumeSessionId) {
|
|
29
|
+
program.error(
|
|
30
|
+
"error: option '--resume <session-id>' requires a non-empty Session id"
|
|
22
31
|
);
|
|
23
|
-
ctx.provide(DSH_CONSOLE_STARTUP_SERVICE, {
|
|
24
|
-
...options.prompt === void 0 ? {} : { prompt: options.prompt },
|
|
25
|
-
...pokemon === void 0 ? {} : { pokemon },
|
|
26
|
-
debug: options.debug
|
|
27
|
-
});
|
|
28
32
|
}
|
|
33
|
+
const pokemon = resolvePokemonNumber(
|
|
34
|
+
options.pokemon,
|
|
35
|
+
env[POKEMON_NUMBER_ENV]
|
|
36
|
+
);
|
|
37
|
+
provide({
|
|
38
|
+
...options.prompt === void 0 ? {} : { prompt: options.prompt },
|
|
39
|
+
...pokemon === void 0 ? {} : { pokemon },
|
|
40
|
+
...options.continue === true ? { continueSession: true } : {},
|
|
41
|
+
...resumeSessionId === void 0 ? {} : { resumeSessionId },
|
|
42
|
+
debug: options.debug
|
|
43
|
+
});
|
|
44
|
+
});
|
|
45
|
+
return program;
|
|
46
|
+
}
|
|
47
|
+
function apply(ctx) {
|
|
48
|
+
parseCmdline(
|
|
49
|
+
ctx,
|
|
50
|
+
createStartupCommand(
|
|
51
|
+
(values) => ctx.provide(DSH_CONSOLE_STARTUP_SERVICE, values)
|
|
52
|
+
)
|
|
29
53
|
);
|
|
30
|
-
parseCmdline(ctx, program);
|
|
31
54
|
}
|
|
32
55
|
export {
|
|
33
56
|
DSH_CONSOLE_STARTUP_SERVICE,
|
|
34
57
|
apply,
|
|
58
|
+
createStartupCommand,
|
|
35
59
|
inject,
|
|
36
60
|
name
|
|
37
61
|
};
|
package/dist/index.js
CHANGED
package/dist/ui/renderers.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cofy-x/dsh-console",
|
|
3
|
-
"version": "0.1.0-alpha.
|
|
3
|
+
"version": "0.1.0-alpha.7",
|
|
4
4
|
"description": "A TypeScript and React/Ink terminal frontend for DeepSeek Harness.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -56,11 +56,13 @@
|
|
|
56
56
|
"dsh": {
|
|
57
57
|
"bundle": {
|
|
58
58
|
"patch": "./cordis.patch.yml"
|
|
59
|
+
},
|
|
60
|
+
"compatibility": {
|
|
61
|
+
"minimum": "0.1.1-rc.2",
|
|
62
|
+
"maximumTested": "0.1.2-alpha.1"
|
|
59
63
|
}
|
|
60
64
|
},
|
|
61
65
|
"dependencies": {
|
|
62
|
-
"@deepseek-ai/dsh-cmdline": "0.1.1-rc.2",
|
|
63
|
-
"@deepseek-ai/schemastery": "3.18.1",
|
|
64
66
|
"@xterm/headless": "^5.5.0",
|
|
65
67
|
"ansi-escapes": "^7.2.0",
|
|
66
68
|
"ansi-regex": "^6.2.2",
|
|
@@ -69,6 +71,7 @@
|
|
|
69
71
|
"clipboardy": "^5.0.2",
|
|
70
72
|
"commander": "^14.0.3",
|
|
71
73
|
"comment-json": "^4.5.0",
|
|
74
|
+
"cross-spawn": "^7.0.6",
|
|
72
75
|
"diff": "^8.0.3",
|
|
73
76
|
"dotenv": "^17.2.3",
|
|
74
77
|
"fdir": "^6.5.0",
|
|
@@ -93,6 +96,7 @@
|
|
|
93
96
|
"@cofy-x/dsh-console-test-utils": "workspace:*",
|
|
94
97
|
"@deepseek-ai/cordis": "4.0.1",
|
|
95
98
|
"@deepseek-ai/cordis-plugin-loader": "1.0.2",
|
|
99
|
+
"@deepseek-ai/dsh-cmdline": "0.1.1-rc.2",
|
|
96
100
|
"@deepseek-ai/dsh-agent": "0.1.1-rc.2",
|
|
97
101
|
"@deepseek-ai/dsh-agent-default-model": "0.1.1-rc.2",
|
|
98
102
|
"@deepseek-ai/dsh-attachment": "0.1.1-rc.2",
|
|
@@ -105,9 +109,11 @@
|
|
|
105
109
|
"@deepseek-ai/dsh-session-query": "0.1.1-rc.2",
|
|
106
110
|
"@deepseek-ai/dsh-settings": "0.1.1-rc.2",
|
|
107
111
|
"@deepseek-ai/dsh-subagent": "0.1.1-rc.2",
|
|
112
|
+
"@deepseek-ai/dsh-tool-todo": "0.1.1-rc.2",
|
|
108
113
|
"@deepseek-ai/dsh-tools": "0.1.1-rc.2",
|
|
109
114
|
"@deepseek-ai/dsh-user-approval": "0.1.1-rc.2",
|
|
110
115
|
"@deepseek-ai/dsh-user-questions": "0.1.1-rc.2",
|
|
116
|
+
"@deepseek-ai/schemastery": "3.18.1",
|
|
111
117
|
"@types/hast": "^3.0.4",
|
|
112
118
|
"@types/node": "^24.10.1",
|
|
113
119
|
"@types/react": "^19.2.18",
|
|
@@ -122,21 +128,24 @@
|
|
|
122
128
|
"peerDependencies": {
|
|
123
129
|
"@deepseek-ai/cordis": ">=4.0.1-rc.1 <5.0.0",
|
|
124
130
|
"@deepseek-ai/cordis-plugin-loader": ">=1.0.2 <2.0.0",
|
|
125
|
-
"@deepseek-ai/dsh-
|
|
126
|
-
"@deepseek-ai/dsh-agent
|
|
127
|
-
"@deepseek-ai/dsh-
|
|
128
|
-
"@deepseek-ai/dsh-
|
|
129
|
-
"@deepseek-ai/dsh-
|
|
130
|
-
"@deepseek-ai/dsh-
|
|
131
|
-
"@deepseek-ai/dsh-
|
|
132
|
-
"@deepseek-ai/dsh-
|
|
133
|
-
"@deepseek-ai/dsh-session
|
|
134
|
-
"@deepseek-ai/dsh-session-
|
|
135
|
-
"@deepseek-ai/dsh-
|
|
136
|
-
"@deepseek-ai/dsh-
|
|
137
|
-
"@deepseek-ai/dsh-
|
|
138
|
-
"@deepseek-ai/dsh-
|
|
139
|
-
"@deepseek-ai/dsh-
|
|
131
|
+
"@deepseek-ai/dsh-cmdline": ">=0.1.1-rc.2 <=0.1.2-alpha.1",
|
|
132
|
+
"@deepseek-ai/dsh-agent": ">=0.1.1-rc.2 <=0.1.2-alpha.1",
|
|
133
|
+
"@deepseek-ai/dsh-agent-default-model": ">=0.1.1-rc.2 <=0.1.2-alpha.1",
|
|
134
|
+
"@deepseek-ai/dsh-attachment": ">=0.1.1-rc.2 <=0.1.2-alpha.1",
|
|
135
|
+
"@deepseek-ai/dsh-commands": ">=0.1.1-rc.2 <=0.1.2-alpha.1",
|
|
136
|
+
"@deepseek-ai/dsh-credentials": ">=0.1.1-rc.2 <=0.1.2-alpha.1",
|
|
137
|
+
"@deepseek-ai/dsh-llm": ">=0.1.1-rc.2 <=0.1.2-alpha.1",
|
|
138
|
+
"@deepseek-ai/dsh-permission-presets": ">=0.1.1-rc.2 <=0.1.2-alpha.1",
|
|
139
|
+
"@deepseek-ai/dsh-session": ">=0.1.1-rc.2 <=0.1.2-alpha.1",
|
|
140
|
+
"@deepseek-ai/dsh-session-projection": ">=0.1.1-rc.2 <=0.1.2-alpha.1",
|
|
141
|
+
"@deepseek-ai/dsh-session-query": ">=0.1.1-rc.2 <=0.1.2-alpha.1",
|
|
142
|
+
"@deepseek-ai/dsh-settings": ">=0.1.1-rc.2 <=0.1.2-alpha.1",
|
|
143
|
+
"@deepseek-ai/dsh-subagent": ">=0.1.1-rc.2 <=0.1.2-alpha.1",
|
|
144
|
+
"@deepseek-ai/dsh-tool-todo": ">=0.1.1-rc.2 <=0.1.2-alpha.1",
|
|
145
|
+
"@deepseek-ai/dsh-tools": ">=0.1.1-rc.2 <=0.1.2-alpha.1",
|
|
146
|
+
"@deepseek-ai/dsh-user-approval": ">=0.1.1-rc.2 <=0.1.2-alpha.1",
|
|
147
|
+
"@deepseek-ai/dsh-user-questions": ">=0.1.1-rc.2 <=0.1.2-alpha.1",
|
|
148
|
+
"@deepseek-ai/schemastery": ">=3.18.1 <4.0.0"
|
|
140
149
|
},
|
|
141
150
|
"peerDependenciesMeta": {
|
|
142
151
|
"@deepseek-ai/cordis": {
|
|
@@ -145,6 +154,9 @@
|
|
|
145
154
|
"@deepseek-ai/cordis-plugin-loader": {
|
|
146
155
|
"optional": true
|
|
147
156
|
},
|
|
157
|
+
"@deepseek-ai/dsh-cmdline": {
|
|
158
|
+
"optional": true
|
|
159
|
+
},
|
|
148
160
|
"@deepseek-ai/dsh-agent": {
|
|
149
161
|
"optional": true
|
|
150
162
|
},
|
|
@@ -169,6 +181,9 @@
|
|
|
169
181
|
"@deepseek-ai/dsh-session-query": {
|
|
170
182
|
"optional": true
|
|
171
183
|
},
|
|
184
|
+
"@deepseek-ai/dsh-tool-todo": {
|
|
185
|
+
"optional": true
|
|
186
|
+
},
|
|
172
187
|
"@deepseek-ai/dsh-tools": {
|
|
173
188
|
"optional": true
|
|
174
189
|
},
|
|
@@ -189,6 +204,9 @@
|
|
|
189
204
|
},
|
|
190
205
|
"@deepseek-ai/dsh-subagent": {
|
|
191
206
|
"optional": true
|
|
207
|
+
},
|
|
208
|
+
"@deepseek-ai/schemastery": {
|
|
209
|
+
"optional": true
|
|
192
210
|
}
|
|
193
211
|
},
|
|
194
212
|
"license": "Apache-2.0",
|