@zerowall/dsh-claude-coderun 0.1.0-preview.3 → 0.1.0-preview.4
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 +1 -1
- package/README.zh.md +1 -1
- package/lib/index.js +5 -2
- package/package.json +1 -1
package/README.i18n.yaml
CHANGED
|
@@ -9,8 +9,8 @@
|
|
|
9
9
|
en: 9467750a45c67430
|
|
10
10
|
zh: a8fd90782db2cae8
|
|
11
11
|
/zerowall-dsh-claude-coderun/use:
|
|
12
|
-
en:
|
|
13
|
-
zh:
|
|
12
|
+
en: 1f4180fc876a6c5b
|
|
13
|
+
zh: f4b32128399e6f90
|
|
14
14
|
/zerowall-dsh-claude-coderun/development:
|
|
15
15
|
en: daf95c3a3f6311a8
|
|
16
16
|
zh: 732348a47df4222f
|
package/README.md
CHANGED
|
@@ -12,7 +12,7 @@ ZeroWall Desktop selects this package from its installation manifest. Open Plugi
|
|
|
12
12
|
|
|
13
13
|
See the [retained migration reference](migration-reference.md) for detailed workflows and historical platform requirements. The package manifest owns current dependency versions.
|
|
14
14
|
|
|
15
|
-
Runtime preparation uses the Desktop carrier Node and pnpm paths, never
|
|
15
|
+
Runtime preparation uses the Desktop carrier's standalone Node and pnpm paths, never a personal Claude installation. Installer scripts receive the bundled Node directory first in PATH; a flat private dependency layout keeps Windows lifecycle-script directories short. Defaults are CLI `2.1.309`, HTTPS registry `https://registry.npmmirror.com` and `autoInstall: true`; these are plugin Config fields. Storage defaults to `DSH_HOME/zerowall/claude-code/runtime`, with `runtimeRoot` or `ZEROWALL_CLAUDE_RUNTIME_ROOT` overrides. Status refresh runs a bounded version probe without installing or moving the activation pointer. Install, automatic startup and session startup share preparation. Failed candidates preserve the active generation. Exit cancels the installer tree and awaits termination; explicit uninstall persists automatic-install suppression, and manual installation restores it.
|
|
16
16
|
|
|
17
17
|
## Development
|
|
18
18
|
|
package/README.zh.md
CHANGED
|
@@ -12,7 +12,7 @@ ZeroWall Desktop 根据安装清单选择此包。在插件页检查状态和插
|
|
|
12
12
|
|
|
13
13
|
详细工作流及历史平台要求见[保留的迁移参考](migration-reference.md)。当前依赖版本以包清单为准。
|
|
14
14
|
|
|
15
|
-
运行准备使用 Desktop
|
|
15
|
+
运行准备使用 Desktop 提供的独立 Node 与 pnpm 路径,不使用个人 Claude 安装。安装脚本的 PATH 优先使用内置 Node 目录;隔离依赖采用扁平目录,缩短 Windows 安装脚本所在的路径。插件 Config 默认 `version: 2.1.309`、`registry: https://registry.npmmirror.com` 和 `autoInstall: true`。数据目录默认为 `DSH_HOME/zerowall/claude-code/runtime`,可通过 `runtimeRoot` 或 `ZEROWALL_CLAUDE_RUNTIME_ROOT` 覆盖。状态刷新只执行限时版本探测,不安装或移动激活指针。自动准备、手动安装和会话启动共享任务;候选失败保留有效版本。退出时取消并等待安装进程树结束;明确卸载会持久化禁止自动安装的状态,手动安装可恢复。
|
|
16
16
|
|
|
17
17
|
## 开发
|
|
18
18
|
|
package/lib/index.js
CHANGED
|
@@ -97,7 +97,7 @@ import { SecretBrokerClient } from "@zerowall/dsh-plugin-ai-cloud/secrets";
|
|
|
97
97
|
import { randomUUID } from "node:crypto";
|
|
98
98
|
import { existsSync as nodeExistsSync } from "node:fs";
|
|
99
99
|
import * as nodeFs from "node:fs/promises";
|
|
100
|
-
import { isAbsolute, join, relative, resolve, sep } from "node:path";
|
|
100
|
+
import { dirname, isAbsolute, join, relative, resolve, sep } from "node:path";
|
|
101
101
|
var CLAUDE_CODE_PACKAGE = "@anthropic-ai/claude-code";
|
|
102
102
|
var CLAUDE_CODE_VERSION = "2.1.309";
|
|
103
103
|
var CLAUDE_CODE_REGISTRY = "https://registry.npmmirror.com";
|
|
@@ -309,6 +309,7 @@ var ClaudeRuntimeManager = class {
|
|
|
309
309
|
"--expose-internals",
|
|
310
310
|
this.#pnpm.pnpmPath,
|
|
311
311
|
"install",
|
|
312
|
+
"--node-linker=hoisted",
|
|
312
313
|
`--registry=${this.#registry}`,
|
|
313
314
|
`--store-dir=${this.storeDir}`
|
|
314
315
|
], {
|
|
@@ -520,7 +521,9 @@ var ClaudeRuntimeManager = class {
|
|
|
520
521
|
return env;
|
|
521
522
|
}
|
|
522
523
|
#buildInstallEnvironment(userConfigFile) {
|
|
523
|
-
|
|
524
|
+
const env = this.#buildEnvironment({ npm_config_userconfig: userConfigFile });
|
|
525
|
+
env.PATH = [dirname(this.#pnpm.executable), env.PATH].filter(Boolean).join(this.#platform === "win32" ? ";" : ":");
|
|
526
|
+
return env;
|
|
524
527
|
}
|
|
525
528
|
#resolveCliRelative(packageJson) {
|
|
526
529
|
if (this.#platform === "win32") return join("bin", "claude.exe");
|