@fishwithcat/dsh-tui 0.2.2-alpha.2 → 0.2.2-alpha.3.fork.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/README.i18n.yaml +2 -2
- package/README.md +17 -13
- package/README.zh.md +12 -10
- package/lib/bin.js +9 -3
- package/lib/types/launch.d.ts +3 -2
- package/package.json +13 -13
package/README.i18n.yaml
CHANGED
|
@@ -3,5 +3,5 @@
|
|
|
3
3
|
# After editing either side, bring the other along and re-record with:
|
|
4
4
|
# pnpm run verify-translation-pairing --write apps/tui-launcher/README.md
|
|
5
5
|
/deepseek-ai-dsh-tui-launcher:
|
|
6
|
-
en:
|
|
7
|
-
zh:
|
|
6
|
+
en: d2af509f44c7c023
|
|
7
|
+
zh: 964f6eade419ff50
|
package/README.md
CHANGED
|
@@ -2,19 +2,23 @@
|
|
|
2
2
|
|
|
3
3
|
English | [中文](README.zh.md)
|
|
4
4
|
|
|
5
|
-
The npm
|
|
6
|
-
is missing, resolves the installed
|
|
7
|
-
`--profile tui`, forwarding every
|
|
8
|
-
aliases that CLI dependency to this
|
|
9
|
-
|
|
10
|
-
profile choice: `--profile`,
|
|
11
|
-
rejected.
|
|
5
|
+
The terminal entry for npm installs and source checkouts. `dsh-tui` creates
|
|
6
|
+
the `tui` profile when it is missing, resolves the installed
|
|
7
|
+
`@deepseek-ai/dsh` CLI, and runs it with `--profile tui`, forwarding every
|
|
8
|
+
application argument. The packed manifest aliases that CLI dependency to this
|
|
9
|
+
fork's build, so the resolved command is the fork's launcher rather than the
|
|
10
|
+
upstream package. The launcher owns the profile choice: `--profile`,
|
|
11
|
+
`--from-default-profile`, and `dsh plugin` are rejected. A source checkout
|
|
12
|
+
installs the same command with `pnpm run link:dsh-tui` and runs it from source
|
|
13
|
+
with `pnpm dsh-tui`.
|
|
12
14
|
|
|
13
|
-
The published package is `@fishwithcat/dsh-tui`. Its packed manifest
|
|
14
|
-
the
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
15
|
+
The published package is `@fishwithcat/dsh-tui`. Its packed manifest aliases
|
|
16
|
+
the TUI layer (`@fishwithcat/dsh` and `@fishwithcat/dsh-tui-app`) at the fork
|
|
17
|
+
version and the eight core-overlay packages at the upstream version, so the
|
|
18
|
+
upstream CLI resolves every name to the fork's builds while upstream exact
|
|
19
|
+
ranges and required peers keep one copy. A fork version has the form
|
|
20
|
+
`<upstream>.fork.<n>`.
|
|
18
21
|
|
|
19
22
|
`dsh-tui watch <session-id>` is translated to `--watch <session-id>`, and
|
|
20
|
-
`dsh-tui --version`
|
|
23
|
+
`dsh-tui --version` prints the launcher's fork version without creating a
|
|
24
|
+
profile or resolving the installed CLI.
|
package/README.zh.md
CHANGED
|
@@ -2,16 +2,18 @@
|
|
|
2
2
|
|
|
3
3
|
[English](README.md) | 中文
|
|
4
4
|
|
|
5
|
-
npm
|
|
6
|
-
`@deepseek-ai/dsh` CLI,并以 `--profile tui`
|
|
7
|
-
manifest 把这个 CLI 依赖别名到本 fork 的构建,因此实际解析到的是
|
|
8
|
-
|
|
9
|
-
`dsh plugin`
|
|
5
|
+
npm 安装与源码 checkout 共用的终端入口。`dsh-tui` 在 `tui` profile 不存在时创建
|
|
6
|
+
它,解析已安装的 `@deepseek-ai/dsh` CLI,并以 `--profile tui` 启动,原样转发应用
|
|
7
|
+
参数。打包后的 manifest 把这个 CLI 依赖别名到本 fork 的构建,因此实际解析到的是
|
|
8
|
+
fork 的启动器,而不是上游包。profile 由启动器固定:`--profile`、
|
|
9
|
+
`--from-default-profile` 和 `dsh plugin` 会被拒绝。源码 checkout 用
|
|
10
|
+
`pnpm run link:dsh-tui` 安装同一个命令,并用 `pnpm dsh-tui` 从源码运行。
|
|
10
11
|
|
|
11
|
-
实际发布的包名是 `@fishwithcat/dsh-tui`。打包后的 manifest
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
12
|
+
实际发布的包名是 `@fishwithcat/dsh-tui`。打包后的 manifest 把 TUI 层
|
|
13
|
+
(`@fishwithcat/dsh` 与 `@fishwithcat/dsh-tui-app`)别名到 fork 版本,把 8 个
|
|
14
|
+
核心覆盖包别名到上游版本,让上游 CLI 按同一批依赖名解析到 fork 的构建,同时让
|
|
15
|
+
上游的精确范围与 required peer 只保留一份副本。fork 版本的形式为
|
|
16
|
+
`<upstream>.fork.<n>`。
|
|
15
17
|
|
|
16
18
|
`dsh-tui watch <session-id>` 会转换成 `--watch <session-id>`,`dsh-tui --version`
|
|
17
|
-
|
|
19
|
+
会打印启动器的 fork 版本,不创建 profile,也不解析已安装的 CLI。
|
package/lib/bin.js
CHANGED
|
@@ -64,8 +64,9 @@ function resolveCliEntry(resolve) {
|
|
|
64
64
|
return resolve("@deepseek-ai/dsh/lib/bin.js");
|
|
65
65
|
}
|
|
66
66
|
/**
|
|
67
|
-
* Whether the invocation only asks for the
|
|
68
|
-
* profile
|
|
67
|
+
* Whether the invocation only asks for the launcher version. The launcher
|
|
68
|
+
* answers it from its own manifest, without creating a profile or resolving
|
|
69
|
+
* the installed CLI.
|
|
69
70
|
* @param argv - normalized CLI arguments.
|
|
70
71
|
* @returns true when the invocation carries a version flag.
|
|
71
72
|
*/
|
|
@@ -86,10 +87,15 @@ function fail(message, code) {
|
|
|
86
87
|
process.exit(code);
|
|
87
88
|
}
|
|
88
89
|
const require = createRequire(import.meta.url);
|
|
90
|
+
const { version } = require("../package.json");
|
|
89
91
|
const invocation = (() => {
|
|
90
92
|
try {
|
|
91
93
|
const args = launcherCliArgs(process.argv.slice(2));
|
|
92
|
-
if (
|
|
94
|
+
if (isVersionRequest(args)) {
|
|
95
|
+
process.stdout.write(`${version}\n`);
|
|
96
|
+
process.exit(0);
|
|
97
|
+
}
|
|
98
|
+
ensureTuiProfile();
|
|
93
99
|
return {
|
|
94
100
|
args,
|
|
95
101
|
entry: resolveCliEntry(require.resolve)
|
package/lib/types/launch.d.ts
CHANGED
|
@@ -35,8 +35,9 @@ export declare function ensureTuiProfile(dir?: string): string;
|
|
|
35
35
|
*/
|
|
36
36
|
export declare function resolveCliEntry(resolve: (specifier: string) => string): string;
|
|
37
37
|
/**
|
|
38
|
-
* Whether the invocation only asks for the
|
|
39
|
-
* profile
|
|
38
|
+
* Whether the invocation only asks for the launcher version. The launcher
|
|
39
|
+
* answers it from its own manifest, without creating a profile or resolving
|
|
40
|
+
* the installed CLI.
|
|
40
41
|
* @param argv - normalized CLI arguments.
|
|
41
42
|
* @returns true when the invocation carries a version flag.
|
|
42
43
|
*/
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fishwithcat/dsh-tui",
|
|
3
3
|
"description": "The npm-installable terminal entry: creates the tui profile and launches the installed dsh CLI",
|
|
4
|
-
"version": "0.2.2-alpha.
|
|
4
|
+
"version": "0.2.2-alpha.3.fork.1",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
7
7
|
"dsh-tui": "lib/bin.js"
|
|
@@ -20,17 +20,17 @@
|
|
|
20
20
|
"node": ">=24.9.0"
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@deepseek-ai/dsh": "npm:@fishwithcat/dsh@0.2.2-alpha.
|
|
24
|
-
"@deepseek-ai/dsh-app-boot": "0.2.2-alpha.
|
|
25
|
-
"@deepseek-ai/dsh-base": "0.2.2-alpha.
|
|
26
|
-
"@deepseek-ai/dsh-agent": "npm:@fishwithcat/dsh-agent@0.2.2-alpha.
|
|
27
|
-
"@deepseek-ai/dsh-session": "npm:@fishwithcat/dsh-session@0.2.2-alpha.
|
|
28
|
-
"@deepseek-ai/dsh-user-approval": "npm:@fishwithcat/dsh-user-approval@0.2.2-alpha.
|
|
29
|
-
"@deepseek-ai/dsh-tool-ask-user": "npm:@fishwithcat/dsh-tool-ask-user@0.2.2-alpha.
|
|
30
|
-
"@deepseek-ai/dsh-compaction": "npm:@fishwithcat/dsh-compaction@0.2.2-alpha.
|
|
31
|
-
"@deepseek-ai/dsh-compaction-basic": "npm:@fishwithcat/dsh-compaction-basic@0.2.2-alpha.
|
|
32
|
-
"@deepseek-ai/dsh-subagent": "npm:@fishwithcat/dsh-subagent@0.2.2-alpha.
|
|
33
|
-
"@deepseek-ai/dsh-tool-todo": "npm:@fishwithcat/dsh-tool-todo@0.2.2-alpha.
|
|
34
|
-
"@deepseek-ai/dsh-tui-app": "npm:@fishwithcat/dsh-tui-app@0.2.2-alpha.
|
|
23
|
+
"@deepseek-ai/dsh": "npm:@fishwithcat/dsh@0.2.2-alpha.3.fork.1",
|
|
24
|
+
"@deepseek-ai/dsh-app-boot": "0.2.2-alpha.3",
|
|
25
|
+
"@deepseek-ai/dsh-base": "0.2.2-alpha.3",
|
|
26
|
+
"@deepseek-ai/dsh-agent": "npm:@fishwithcat/dsh-agent@0.2.2-alpha.3",
|
|
27
|
+
"@deepseek-ai/dsh-session": "npm:@fishwithcat/dsh-session@0.2.2-alpha.3",
|
|
28
|
+
"@deepseek-ai/dsh-user-approval": "npm:@fishwithcat/dsh-user-approval@0.2.2-alpha.3",
|
|
29
|
+
"@deepseek-ai/dsh-tool-ask-user": "npm:@fishwithcat/dsh-tool-ask-user@0.2.2-alpha.3",
|
|
30
|
+
"@deepseek-ai/dsh-compaction": "npm:@fishwithcat/dsh-compaction@0.2.2-alpha.3",
|
|
31
|
+
"@deepseek-ai/dsh-compaction-basic": "npm:@fishwithcat/dsh-compaction-basic@0.2.2-alpha.3",
|
|
32
|
+
"@deepseek-ai/dsh-subagent": "npm:@fishwithcat/dsh-subagent@0.2.2-alpha.3",
|
|
33
|
+
"@deepseek-ai/dsh-tool-todo": "npm:@fishwithcat/dsh-tool-todo@0.2.2-alpha.3",
|
|
34
|
+
"@deepseek-ai/dsh-tui-app": "npm:@fishwithcat/dsh-tui-app@0.2.2-alpha.3.fork.1"
|
|
35
35
|
}
|
|
36
36
|
}
|