@cofy-x/dsh-console 0.1.0-alpha.5 → 0.1.0-alpha.6
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 +8 -1
- package/cordis.patch.yml +2 -0
- package/dist/{chunk-N3EQS35J.js → chunk-4L2DX7CL.js} +11 -0
- package/dist/{chunk-6BGDBP2N.js → chunk-4NKDFR6S.js} +902 -498
- 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 +6 -1
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.6",
|
|
4
4
|
"description": "A TypeScript and React/Ink terminal frontend for DeepSeek Harness.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -105,6 +105,7 @@
|
|
|
105
105
|
"@deepseek-ai/dsh-session-query": "0.1.1-rc.2",
|
|
106
106
|
"@deepseek-ai/dsh-settings": "0.1.1-rc.2",
|
|
107
107
|
"@deepseek-ai/dsh-subagent": "0.1.1-rc.2",
|
|
108
|
+
"@deepseek-ai/dsh-tool-todo": "0.1.1-rc.2",
|
|
108
109
|
"@deepseek-ai/dsh-tools": "0.1.1-rc.2",
|
|
109
110
|
"@deepseek-ai/dsh-user-approval": "0.1.1-rc.2",
|
|
110
111
|
"@deepseek-ai/dsh-user-questions": "0.1.1-rc.2",
|
|
@@ -134,6 +135,7 @@
|
|
|
134
135
|
"@deepseek-ai/dsh-session-query": ">=0.1.0-rc.3 <0.2.0",
|
|
135
136
|
"@deepseek-ai/dsh-settings": ">=0.1.0-rc.3 <0.2.0",
|
|
136
137
|
"@deepseek-ai/dsh-subagent": ">=0.1.0-rc.3 <0.2.0",
|
|
138
|
+
"@deepseek-ai/dsh-tool-todo": ">=0.1.0-rc.3 <0.2.0",
|
|
137
139
|
"@deepseek-ai/dsh-tools": ">=0.1.0-rc.3 <0.2.0",
|
|
138
140
|
"@deepseek-ai/dsh-user-approval": ">=0.1.0-rc.3 <0.2.0",
|
|
139
141
|
"@deepseek-ai/dsh-user-questions": ">=0.1.0-rc.3 <0.2.0"
|
|
@@ -169,6 +171,9 @@
|
|
|
169
171
|
"@deepseek-ai/dsh-session-query": {
|
|
170
172
|
"optional": true
|
|
171
173
|
},
|
|
174
|
+
"@deepseek-ai/dsh-tool-todo": {
|
|
175
|
+
"optional": true
|
|
176
|
+
},
|
|
172
177
|
"@deepseek-ai/dsh-tools": {
|
|
173
178
|
"optional": true
|
|
174
179
|
},
|