@niuwoai/willdeep 0.145.0-rc4 → 0.147.0-rc14
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 +0 -1
- package/bin/willdeep.js +1 -1
- package/install-manifest.json +5 -9
- package/lib/install.js +1 -1
- package/lib/release.js +7 -18
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -19,7 +19,6 @@ willdeep --version
|
|
|
19
19
|
|---|---|
|
|
20
20
|
| macOS(Universal,Apple Silicon 与 Intel 通用) | `willdeep-macos-universal.tar.gz` |
|
|
21
21
|
| Linux amd64 / arm64 | `willdeep-linux-amd64.tar.gz` · `willdeep-linux-arm64.tar.gz` |
|
|
22
|
-
| Windows x64 | `willdeep-windows-x64.zip` |
|
|
23
22
|
|
|
24
23
|
## 开始用
|
|
25
24
|
|
package/bin/willdeep.js
CHANGED
|
@@ -5,7 +5,7 @@ const { spawn } = require('node:child_process');
|
|
|
5
5
|
const fs = require('node:fs');
|
|
6
6
|
const path = require('node:path');
|
|
7
7
|
|
|
8
|
-
const binary = path.join(__dirname,
|
|
8
|
+
const binary = path.join(__dirname, 'willdeep');
|
|
9
9
|
if (!fs.existsSync(binary)) {
|
|
10
10
|
process.stderr.write('willdeep 还没有安装完成。请重新执行 npm install willdeep。\n');
|
|
11
11
|
process.exit(1);
|
package/install-manifest.json
CHANGED
|
@@ -1,23 +1,19 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "0.
|
|
2
|
+
"version": "0.147.0-rc14",
|
|
3
3
|
"repository": "niuwoai/willdeep-cli",
|
|
4
|
-
"tag": "v0.
|
|
4
|
+
"tag": "v0.147.0-rc14",
|
|
5
5
|
"assets": {
|
|
6
6
|
"willdeep-macos-universal.tar.gz": {
|
|
7
7
|
"name": "willdeep-macos-universal.tar.gz",
|
|
8
|
-
"sha256": "
|
|
8
|
+
"sha256": "6326a725d89435089e4f5b43c6e97894e0b614423046f262cf36ff7335dd100c"
|
|
9
9
|
},
|
|
10
10
|
"willdeep-linux-amd64.tar.gz": {
|
|
11
11
|
"name": "willdeep-linux-amd64.tar.gz",
|
|
12
|
-
"sha256": "
|
|
12
|
+
"sha256": "72ff2fa98ca4d5461fb193437acc42204caed33bac2209f49abb57432c10d45c"
|
|
13
13
|
},
|
|
14
14
|
"willdeep-linux-arm64.tar.gz": {
|
|
15
15
|
"name": "willdeep-linux-arm64.tar.gz",
|
|
16
|
-
"sha256": "
|
|
17
|
-
},
|
|
18
|
-
"willdeep-windows-x64.zip": {
|
|
19
|
-
"name": "willdeep-windows-x64.zip",
|
|
20
|
-
"sha256": "b161a71514631545287fd36dc90ec13cf5d7ed27180ad20123d7498d8fec6155"
|
|
16
|
+
"sha256": "c9b67c29e19900e41bc0fdab0e91c52790aceabfeece89481d3e9a1c1aa31341"
|
|
21
17
|
}
|
|
22
18
|
}
|
|
23
19
|
}
|
package/lib/install.js
CHANGED
|
@@ -7,7 +7,7 @@ const { installWilldeep } = require('./release');
|
|
|
7
7
|
async function main() {
|
|
8
8
|
const packageRoot = path.resolve(__dirname, '..');
|
|
9
9
|
const manifest = JSON.parse(fs.readFileSync(path.join(packageRoot, 'install-manifest.json'), 'utf8'));
|
|
10
|
-
const destination = path.join(packageRoot, 'bin',
|
|
10
|
+
const destination = path.join(packageRoot, 'bin', 'willdeep');
|
|
11
11
|
const installed = await installWilldeep({
|
|
12
12
|
manifest,
|
|
13
13
|
platform: process.platform,
|
package/lib/release.js
CHANGED
|
@@ -11,12 +11,9 @@ const PLATFORMS = Object.freeze({
|
|
|
11
11
|
'darwin-arm64': 'willdeep-macos-universal.tar.gz',
|
|
12
12
|
'linux-x64': 'willdeep-linux-amd64.tar.gz',
|
|
13
13
|
'linux-arm64': 'willdeep-linux-arm64.tar.gz',
|
|
14
|
-
'win32-x64': 'willdeep-windows-x64.zip',
|
|
15
|
-
});
|
|
16
|
-
const EXPECTED_ENTRIES = Object.freeze({
|
|
17
|
-
'.tar.gz': 'willdeep',
|
|
18
|
-
'.zip': 'willdeep.exe',
|
|
19
14
|
});
|
|
15
|
+
const ARCHIVE_SUFFIX = '.tar.gz';
|
|
16
|
+
const EXPECTED_ENTRY = 'willdeep';
|
|
20
17
|
const MAX_ASSET_BYTES = 128 * 1024 * 1024;
|
|
21
18
|
const MAX_BINARY_BYTES = 128 * 1024 * 1024;
|
|
22
19
|
const RELEASE_HOSTS = new Set(['github.com', 'release-assets.githubusercontent.com']);
|
|
@@ -70,27 +67,19 @@ async function downloadAsset(url, expected, fetchImpl, redirectCount = 0, truste
|
|
|
70
67
|
}
|
|
71
68
|
|
|
72
69
|
function extractBinary(archivePath, assetName, destination) {
|
|
73
|
-
|
|
74
|
-
const expected = EXPECTED_ENTRIES[extension];
|
|
75
|
-
if (!expected) throw new InstallError(`不认识的发行包:${assetName}。`);
|
|
70
|
+
if (!assetName.endsWith(ARCHIVE_SUFFIX)) throw new InstallError(`不认识的发行包:${assetName}。`);
|
|
76
71
|
const output = fs.mkdtempSync(path.join(os.tmpdir(), 'willdeep-npm-'));
|
|
77
72
|
try {
|
|
78
|
-
|
|
79
|
-
execFileSync('tar', ['-xzf', archivePath, '-C', output], { stdio: 'pipe' });
|
|
80
|
-
} else if (process.platform === 'win32') {
|
|
81
|
-
execFileSync('tar', ['-xf', archivePath, '-C', output], { stdio: 'pipe' });
|
|
82
|
-
} else {
|
|
83
|
-
execFileSync('unzip', ['-q', archivePath, '-d', output], { stdio: 'pipe' });
|
|
84
|
-
}
|
|
73
|
+
execFileSync('tar', ['-xzf', archivePath, '-C', output], { stdio: 'pipe' });
|
|
85
74
|
const extracted = fs.readdirSync(output);
|
|
86
|
-
if (extracted.length !== 1 || extracted[0] !==
|
|
75
|
+
if (extracted.length !== 1 || extracted[0] !== EXPECTED_ENTRY) {
|
|
87
76
|
throw new InstallError(`发行包内容异常:${extracted.join(', ') || '空包'}。`);
|
|
88
77
|
}
|
|
89
|
-
const source = path.join(output,
|
|
78
|
+
const source = path.join(output, EXPECTED_ENTRY);
|
|
90
79
|
const metadata = fs.lstatSync(source);
|
|
91
80
|
if (!metadata.isFile()) throw new InstallError('发行包里的程序必须是普通文件。');
|
|
92
81
|
if (metadata.size > MAX_BINARY_BYTES) throw new InstallError('发行包里的程序超过 128 MiB 上限。');
|
|
93
|
-
if (
|
|
82
|
+
if ((metadata.mode & 0o111) === 0) {
|
|
94
83
|
throw new InstallError('发行包里的程序没有可执行权限。');
|
|
95
84
|
}
|
|
96
85
|
fs.mkdirSync(path.dirname(destination), { recursive: true });
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@niuwoai/willdeep",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.147.0-rc14",
|
|
4
4
|
"description": "Install the WillDeep CLI from its verified GitHub Release.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -29,6 +29,6 @@
|
|
|
29
29
|
"access": "public",
|
|
30
30
|
"tag": "rc"
|
|
31
31
|
},
|
|
32
|
-
"readme": "# WillDeep\n\n`@niuwoai/willdeep` installs the self-hosted WillDeep CLI. The installer downloads the GitHub Release that matches this package version, checks its SHA256, and places a single `willdeep` binary on your PATH.\n\n自托管的 AI Coding Agent。模型可以不出国,每一行改动能追溯到是哪个 Agent、哪次工具调用改的,小模型交上来的活由退出码裁决而不是自我声明,检查点回退把对话和文件一起退回去。一个二进制,终端 / 浏览器 / 手机三种界面,关掉窗口任务照跑。\n\n> **WillDeep** is a self-hosted AI coding agent. Every changed line is attributed to the agent and tool call that wrote it, sub-agent work is judged by exit codes, and sessions and goals outlive your terminal. Works with any OpenAI-compatible or Anthropic-style endpoint, including models that never leave your datacenter.\n\n## 安装\n\n需要 Node.js 18 或更新版本。安装器下载与本包版本对应的 [GitHub Release](https://github.com/niuwoai/willdeep-cli/releases),校验 SHA256 后把单个 `willdeep` 放进 npm 的 bin 目录:\n\n```bash\nnpm install -g @niuwoai/willdeep@rc\nwilldeep --version\n```\n\n| 平台 | 发行包 |\n|---|---|\n| macOS(Universal,Apple Silicon 与 Intel 通用) | `willdeep-macos-universal.tar.gz` |\n| Linux amd64 / arm64 | `willdeep-linux-amd64.tar.gz` · `willdeep-linux-arm64.tar.gz` |\n
|
|
32
|
+
"readme": "# WillDeep\n\n`@niuwoai/willdeep` installs the self-hosted WillDeep CLI. The installer downloads the GitHub Release that matches this package version, checks its SHA256, and places a single `willdeep` binary on your PATH.\n\n自托管的 AI Coding Agent。模型可以不出国,每一行改动能追溯到是哪个 Agent、哪次工具调用改的,小模型交上来的活由退出码裁决而不是自我声明,检查点回退把对话和文件一起退回去。一个二进制,终端 / 浏览器 / 手机三种界面,关掉窗口任务照跑。\n\n> **WillDeep** is a self-hosted AI coding agent. Every changed line is attributed to the agent and tool call that wrote it, sub-agent work is judged by exit codes, and sessions and goals outlive your terminal. Works with any OpenAI-compatible or Anthropic-style endpoint, including models that never leave your datacenter.\n\n## 安装\n\n需要 Node.js 18 或更新版本。安装器下载与本包版本对应的 [GitHub Release](https://github.com/niuwoai/willdeep-cli/releases),校验 SHA256 后把单个 `willdeep` 放进 npm 的 bin 目录:\n\n```bash\nnpm install -g @niuwoai/willdeep@rc\nwilldeep --version\n```\n\n| 平台 | 发行包 |\n|---|---|\n| macOS(Universal,Apple Silicon 与 Intel 通用) | `willdeep-macos-universal.tar.gz` |\n| Linux amd64 / arm64 | `willdeep-linux-amd64.tar.gz` · `willdeep-linux-arm64.tar.gz` |\n\n## 开始用\n\n没有配置文件也能跑,环境里有认得出的 Key 就直接开工:\n\n```bash\nexport SOMEIM_API_KEY=... # 或 ANTHROPIC_API_KEY\nwilldeep --onboarding # 打开 WebApp 配置引导,也可选择终端手动配置\n\nwilldeep --workspace . # 终端界面(TUI)\nwilldeep --web --workspace . # 浏览器界面,默认 127.0.0.1:9847\nwilldeep web # 复用或启动 Runtime Web App,并打开浏览器\nwilldeep qr # 显示手机配对二维码\nwilldeep run --output json \"总结当前风险\" # 无头自动化:稳定退出码,可进 CI\n```\n\n`willdeep doctor` 不联系任何 Provider 就能检查配置、围栏和 Runtime 状态。\n\n更多内容见 [WillDeep 仓库](https://github.com/niuwoai/willdeep-cli):[README](https://github.com/niuwoai/willdeep-cli#readme)、[docs/INSTALL.md](https://github.com/niuwoai/willdeep-cli/blob/develop/docs/INSTALL.md)、[docs/CONFIGURATION.md](https://github.com/niuwoai/willdeep-cli/blob/develop/docs/CONFIGURATION.md)。\n",
|
|
33
33
|
"readmeFilename": "README.md"
|
|
34
34
|
}
|