@cofy-x/dsh-console 0.1.0-alpha.0

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.
@@ -0,0 +1,15 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2026 cofy-x
4
+ * SPDX-License-Identifier: Apache-2.0
5
+ */
6
+ import type { Context } from '@deepseek-ai/cordis';
7
+ import z from '@deepseek-ai/schemastery';
8
+ export declare const name = "dsh-console-runner";
9
+ export declare const inject: string[];
10
+ export interface Config {
11
+ prompt?: string;
12
+ debug?: boolean;
13
+ }
14
+ export declare const Config: z<Config>;
15
+ export declare function apply(ctx: Context, config: Config): void;
@@ -0,0 +1,13 @@
1
+ import {
2
+ Config,
3
+ apply,
4
+ inject,
5
+ name
6
+ } from "../chunk-Z7RUTXMO.js";
7
+ import "../chunk-YNJGTXFJ.js";
8
+ export {
9
+ Config,
10
+ apply,
11
+ inject,
12
+ name
13
+ };
@@ -0,0 +1,14 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2026 cofy-x
4
+ * SPDX-License-Identifier: Apache-2.0
5
+ */
6
+ import type { Context } from '@deepseek-ai/cordis';
7
+ export declare const name = "dsh-console-startup";
8
+ export declare const inject: string[];
9
+ export declare const DSH_CONSOLE_STARTUP_SERVICE = "dshConsoleStartup";
10
+ export interface DshConsoleStartupValues {
11
+ prompt?: string;
12
+ debug: boolean;
13
+ }
14
+ export declare function apply(ctx: Context): void;
@@ -0,0 +1,27 @@
1
+ // src/dsh/startup.ts
2
+ import { Command } from "commander";
3
+ import { parseCmdline } from "@deepseek-ai/dsh-cmdline";
4
+ var name = "dsh-console-startup";
5
+ var inject = ["cmdlineArgs"];
6
+ var DSH_CONSOLE_STARTUP_SERVICE = "dshConsoleStartup";
7
+ function apply(ctx) {
8
+ 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("-p, --prompt <text>", "submit an initial prompt after startup");
9
+ program.action((options) => {
10
+ ctx.provide(DSH_CONSOLE_STARTUP_SERVICE, {
11
+ ...options.prompt === void 0 ? {} : { prompt: options.prompt },
12
+ debug: options.debug
13
+ });
14
+ });
15
+ parseCmdline(ctx, program);
16
+ }
17
+ export {
18
+ DSH_CONSOLE_STARTUP_SERVICE,
19
+ apply,
20
+ inject,
21
+ name
22
+ };
23
+ /**
24
+ * @license
25
+ * Copyright 2026 cofy-x
26
+ * SPDX-License-Identifier: Apache-2.0
27
+ */
@@ -0,0 +1,6 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2026 cofy-x
4
+ * SPDX-License-Identifier: Apache-2.0
5
+ */
6
+ export { apply, Config, name } from './dsh/index.js';
package/dist/index.js ADDED
@@ -0,0 +1,16 @@
1
+ import {
2
+ Config,
3
+ apply,
4
+ name
5
+ } from "./chunk-Z7RUTXMO.js";
6
+ import "./chunk-YNJGTXFJ.js";
7
+ export {
8
+ Config,
9
+ apply,
10
+ name
11
+ };
12
+ /**
13
+ * @license
14
+ * Copyright 2026 cofy-x
15
+ * SPDX-License-Identifier: Apache-2.0
16
+ */
@@ -0,0 +1,10 @@
1
+ ▄▀▀▀▄
2
+ ▀▀▀▀▀▀▀▄▄▄
3
+ ▄ ▄▀▀▀▀▀▀▀▀▀▀▀▀▀
4
+ ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▄
5
+ ▄▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▄
6
+ ▄▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
7
+ ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
8
+ ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
9
+ ▀▀▀▀▀▀▀▀▀▀▀▀▀ ▀▀▀
10
+ ▀▀ ▀▀▀▀▀
@@ -0,0 +1,10 @@
1
+ ▄▀▀ ▄▄
2
+ ▄▀▀▀ ▄▄▄▄▀▀▀▀▄
3
+ ▄▀▀▀▀ ▄▀▀▀▀▀▀▀▀▀▀▀
4
+ ▄▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
5
+ ▄▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▄
6
+ ▀▀▀▀▀▀▀▀▀▀▀▀▀▄▀▀▀▀
7
+ ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▄
8
+ ▀▀▀▀▀▀▀▀▀▀▀▀
9
+ ▀▀▀▀▀▀▀▀▀▀
10
+ ▀▀▀▀
@@ -0,0 +1,10 @@
1
+ ▄▄▄ ▄▀▄
2
+ ▄▀▀▀▀▀▀▄ ▀▀▀▀
3
+ ▄▀▀▀▀▀▀▀▀▄ ▀▀▀▀▀▀
4
+ ▄▀▀▀▀▀▀▀▀▀▀ ▀▀▀▀▀▀
5
+ ▀▀▀▀▀▀▀▀▀▀▀▄ ▀▀▀
6
+ ▀▀▀▀▀▀▀▀▀▀▄ ▄▀▀▀▀
7
+ ▀▀▀▀▀▀▀▀▀▀▀▀▀
8
+ ▀▀▀▀▀▀▀▀▀▀▀▀
9
+ ▀▀▀▀▀▀▀▀▀
10
+ ▀▀▀
@@ -0,0 +1,6 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2026 cofy-x
4
+ * SPDX-License-Identifier: Apache-2.0
5
+ */
6
+ export { registerExtensionContentRenderer, type ExtensionContentRenderer, type ExtensionContentRendererProps, } from './components/messages/extension-content-block.js';
@@ -0,0 +1,11 @@
1
+ import {
2
+ registerExtensionContentRenderer
3
+ } from "../chunk-YNJGTXFJ.js";
4
+ export {
5
+ registerExtensionContentRenderer
6
+ };
7
+ /**
8
+ * @license
9
+ * Copyright 2026 cofy-x
10
+ * SPDX-License-Identifier: Apache-2.0
11
+ */
package/package.json ADDED
@@ -0,0 +1,182 @@
1
+ {
2
+ "name": "@cofy-x/dsh-console",
3
+ "version": "0.1.0-alpha.0",
4
+ "description": "A TypeScript and React/Ink terminal frontend for DeepSeek Harness.",
5
+ "repository": {
6
+ "type": "git",
7
+ "url": "git+https://github.com/cofy-x/dsh-console.git"
8
+ },
9
+ "type": "module",
10
+ "main": "dist/index.js",
11
+ "bin": {
12
+ "dsh-console": "bin/dsh-console.js"
13
+ },
14
+ "exports": {
15
+ ".": "./dist/index.js",
16
+ "./dsh": {
17
+ "types": "./dist/dsh/index.d.ts",
18
+ "default": "./dist/dsh/index.js"
19
+ },
20
+ "./dsh/startup": {
21
+ "types": "./dist/dsh/startup.d.ts",
22
+ "default": "./dist/dsh/startup.js"
23
+ },
24
+ "./renderers": {
25
+ "types": "./dist/ui/renderers.d.ts",
26
+ "default": "./dist/ui/renderers.js"
27
+ },
28
+ "./package.json": "./package.json"
29
+ },
30
+ "scripts": {
31
+ "build": "node ../../scripts/build_package.js",
32
+ "prepack": "pnpm run build",
33
+ "start": "node dist/index.js",
34
+ "debug": "node --inspect-brk dist/index.js",
35
+ "lint": "eslint . --ext .ts,.tsx",
36
+ "format": "prettier --write .",
37
+ "test": "vitest run",
38
+ "test:ci": "vitest run --coverage",
39
+ "typecheck": "tsc --noEmit",
40
+ "example": "tsx --tsconfig examples/tsconfig.run.json",
41
+ "example:debug": "TSX_TSCONFIG_PATH=examples/tsconfig.run.json node --inspect-brk --import tsx/esm",
42
+ "link": "pnpm run build && pnpm link --global",
43
+ "unlink": "pnpm unlink --global @cofy-x/dsh-console"
44
+ },
45
+ "files": [
46
+ "README.md",
47
+ "LICENSE",
48
+ "NOTICE",
49
+ "THIRD_PARTY_NOTICES.md",
50
+ "bin",
51
+ "dist",
52
+ "!dist/.last_build",
53
+ "cordis.patch.yml"
54
+ ],
55
+ "dsh": {
56
+ "bundle": {
57
+ "patch": "./cordis.patch.yml"
58
+ }
59
+ },
60
+ "dependencies": {
61
+ "@deepseek-ai/dsh-cmdline": "0.1.1-rc.2",
62
+ "@deepseek-ai/schemastery": "3.18.1",
63
+ "@xterm/headless": "^5.5.0",
64
+ "ansi-escapes": "^7.2.0",
65
+ "ansi-regex": "^6.2.2",
66
+ "chalk": "^5.6.2",
67
+ "chardet": "^2.1.1",
68
+ "clipboardy": "^5.0.2",
69
+ "commander": "^14.0.3",
70
+ "comment-json": "^4.5.0",
71
+ "diff": "^8.0.3",
72
+ "dotenv": "^17.2.3",
73
+ "fdir": "^6.5.0",
74
+ "fzf": "^0.5.2",
75
+ "ignore": "^7.0.5",
76
+ "ink": "npm:@jrichman/ink@6.4.8",
77
+ "ink-gradient": "^3.0.0",
78
+ "ink-spinner": "^5.0.0",
79
+ "lowlight": "^3.3.0",
80
+ "mnemonist": "^0.40.3",
81
+ "picomatch": "^4.0.3",
82
+ "react": "^19.2.8",
83
+ "string-width": "^8.1.0",
84
+ "strip-ansi": "^7.1.2",
85
+ "strip-json-comments": "^5.0.3",
86
+ "tinygradient": "^2.0.1",
87
+ "undici": "^7.16.0",
88
+ "yargs": "^18.0.0",
89
+ "zod": "^3.25.76"
90
+ },
91
+ "devDependencies": {
92
+ "@cofy-x/dsh-console-test-utils": "workspace:*",
93
+ "@deepseek-ai/cordis": "4.0.1",
94
+ "@deepseek-ai/cordis-plugin-loader": "1.0.2",
95
+ "@deepseek-ai/dsh-agent": "0.1.1-rc.2",
96
+ "@deepseek-ai/dsh-agent-default-model": "0.1.1-rc.2",
97
+ "@deepseek-ai/dsh-attachment": "0.1.1-rc.2",
98
+ "@deepseek-ai/dsh-llm": "0.1.1-rc.2",
99
+ "@deepseek-ai/dsh-permission-presets": "0.1.1-rc.2",
100
+ "@deepseek-ai/dsh-session": "0.1.1-rc.2",
101
+ "@deepseek-ai/dsh-session-projection": "0.1.1-rc.2",
102
+ "@deepseek-ai/dsh-session-query": "0.1.1-rc.2",
103
+ "@deepseek-ai/dsh-tools": "0.1.1-rc.2",
104
+ "@deepseek-ai/dsh-user-approval": "0.1.1-rc.2",
105
+ "@deepseek-ai/dsh-user-questions": "0.1.1-rc.2",
106
+ "@deepseek-ai/dsh-commands": "0.1.1-rc.2",
107
+ "@types/hast": "^3.0.4",
108
+ "@types/react": "^19.2.18",
109
+ "@types/react-dom": "^19.2.0",
110
+ "@types/yargs": "^17.0.34",
111
+ "esbuild": "0.27.0",
112
+ "ink-testing-library": "^4.0.0"
113
+ },
114
+ "engines": {
115
+ "node": ">=24.0.0"
116
+ },
117
+ "peerDependencies": {
118
+ "@deepseek-ai/cordis": ">=4.0.1-rc.1 <5.0.0",
119
+ "@deepseek-ai/cordis-plugin-loader": ">=1.0.2 <2.0.0",
120
+ "@deepseek-ai/dsh-agent": ">=0.1.0-rc.3 <0.2.0",
121
+ "@deepseek-ai/dsh-agent-default-model": ">=0.1.0-rc.3 <0.2.0",
122
+ "@deepseek-ai/dsh-attachment": ">=0.1.0-rc.3 <0.2.0",
123
+ "@deepseek-ai/dsh-llm": ">=0.1.0-rc.3 <0.2.0",
124
+ "@deepseek-ai/dsh-permission-presets": ">=0.1.0-rc.3 <0.2.0",
125
+ "@deepseek-ai/dsh-session": ">=0.1.0-rc.3 <0.2.0",
126
+ "@deepseek-ai/dsh-session-projection": ">=0.1.0-rc.3 <0.2.0",
127
+ "@deepseek-ai/dsh-session-query": ">=0.1.0-rc.3 <0.2.0",
128
+ "@deepseek-ai/dsh-tools": ">=0.1.0-rc.3 <0.2.0",
129
+ "@deepseek-ai/dsh-user-approval": ">=0.1.0-rc.3 <0.2.0",
130
+ "@deepseek-ai/dsh-user-questions": ">=0.1.0-rc.3 <0.2.0",
131
+ "@deepseek-ai/dsh-commands": ">=0.1.0-rc.3 <0.2.0"
132
+ },
133
+ "peerDependenciesMeta": {
134
+ "@deepseek-ai/cordis": {
135
+ "optional": true
136
+ },
137
+ "@deepseek-ai/cordis-plugin-loader": {
138
+ "optional": true
139
+ },
140
+ "@deepseek-ai/dsh-agent": {
141
+ "optional": true
142
+ },
143
+ "@deepseek-ai/dsh-agent-default-model": {
144
+ "optional": true
145
+ },
146
+ "@deepseek-ai/dsh-attachment": {
147
+ "optional": true
148
+ },
149
+ "@deepseek-ai/dsh-llm": {
150
+ "optional": true
151
+ },
152
+ "@deepseek-ai/dsh-permission-presets": {
153
+ "optional": true
154
+ },
155
+ "@deepseek-ai/dsh-session": {
156
+ "optional": true
157
+ },
158
+ "@deepseek-ai/dsh-session-projection": {
159
+ "optional": true
160
+ },
161
+ "@deepseek-ai/dsh-session-query": {
162
+ "optional": true
163
+ },
164
+ "@deepseek-ai/dsh-tools": {
165
+ "optional": true
166
+ },
167
+ "@deepseek-ai/dsh-user-approval": {
168
+ "optional": true
169
+ },
170
+ "@deepseek-ai/dsh-user-questions": {
171
+ "optional": true
172
+ },
173
+ "@deepseek-ai/dsh-commands": {
174
+ "optional": true
175
+ }
176
+ },
177
+ "license": "Apache-2.0",
178
+ "publishConfig": {
179
+ "access": "public",
180
+ "tag": "alpha"
181
+ }
182
+ }