@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 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: 439609bb2db15ecd
7
- zh: 146bfa54eb9ee207
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-installed terminal entry. `dsh-tui` creates the `tui` profile when it
6
- is missing, resolves the installed `@deepseek-ai/dsh` CLI, and runs it with
7
- `--profile tui`, forwarding every application argument. The packed manifest
8
- aliases that CLI dependency to this fork's build, so the resolved command is
9
- the fork's launcher rather than the upstream package. The launcher owns the
10
- profile choice: `--profile`, `--from-default-profile`, and `dsh plugin` are
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 replaces
14
- the workspace dependencies with `npm:` aliases for the fork-only packages, so
15
- the upstream CLI resolves those names to the fork's builds. Keep the launcher
16
- and every aliased package on the upstream version; a `-fork.N` version does
17
- not satisfy the exact ranges upstream packages declare.
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` does not create a profile.
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 安装后的终端入口。`dsh-tui` 在 `tui` profile 不存在时创建它,解析已安装的
6
- `@deepseek-ai/dsh` CLI,并以 `--profile tui` 启动,原样转发应用参数。打包后的
7
- manifest 把这个 CLI 依赖别名到本 fork 的构建,因此实际解析到的是 fork 的启动器,
8
- 而不是上游包。profile 由启动器固定:`--profile`、`--from-default-profile` 和
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 会把 workspace
12
- 依赖替换成指向 fork 包的 `npm:` 别名,让上游 CLI 按同一批依赖名解析到 fork 的
13
- 构建。启动器和所有被别名的包必须与上游同号;`-fork.N` 不满足上游包声明的精确
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
- 不会创建 profile。
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 CLI version and must not create a
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 (!isVersionRequest(args)) ensureTuiProfile();
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)
@@ -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 CLI version and must not create a
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.2",
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.2",
24
- "@deepseek-ai/dsh-app-boot": "0.2.2-alpha.2",
25
- "@deepseek-ai/dsh-base": "0.2.2-alpha.2",
26
- "@deepseek-ai/dsh-agent": "npm:@fishwithcat/dsh-agent@0.2.2-alpha.2",
27
- "@deepseek-ai/dsh-session": "npm:@fishwithcat/dsh-session@0.2.2-alpha.2",
28
- "@deepseek-ai/dsh-user-approval": "npm:@fishwithcat/dsh-user-approval@0.2.2-alpha.2",
29
- "@deepseek-ai/dsh-tool-ask-user": "npm:@fishwithcat/dsh-tool-ask-user@0.2.2-alpha.2",
30
- "@deepseek-ai/dsh-compaction": "npm:@fishwithcat/dsh-compaction@0.2.2-alpha.2",
31
- "@deepseek-ai/dsh-compaction-basic": "npm:@fishwithcat/dsh-compaction-basic@0.2.2-alpha.2",
32
- "@deepseek-ai/dsh-subagent": "npm:@fishwithcat/dsh-subagent@0.2.2-alpha.2",
33
- "@deepseek-ai/dsh-tool-todo": "npm:@fishwithcat/dsh-tool-todo@0.2.2-alpha.2",
34
- "@deepseek-ai/dsh-tui-app": "npm:@fishwithcat/dsh-tui-app@0.2.2-alpha.2"
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
  }