agy-delegate-rs 0.1.3 → 0.1.5
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 +1 -1
- package/bin/agy-delegate-rs.cjs +8 -3
- package/package.json +9 -1
- package/bin/darwin-arm64/agy-delegate-rs +0 -0
- package/bin/darwin-x64/agy-delegate-rs +0 -0
- package/bin/linux-arm64/agy-delegate-rs +0 -0
- package/bin/linux-x64/agy-delegate-rs +0 -0
- package/bin/win32-arm64/agy-delegate-rs.exe +0 -0
- package/bin/win32-x64/agy-delegate-rs.exe +0 -0
package/README.md
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
安装、配置、MCP 注册、环境诊断与历史清理见 [安装指南](INSTALL.md)。
|
|
6
6
|
|
|
7
|
-
支持 GitHub Release 预编译包、`npm install -g agy-delegate-rs` 和 `cargo install agy-delegate-rs --locked`。GitHub Release 和 npm 包覆盖 Linux、macOS、Windows 的 x86_64 与 ARM64,共六种组合;npm
|
|
7
|
+
支持 GitHub Release 预编译包、`npm install -g agy-delegate-rs` 和 `cargo install agy-delegate-rs --locked`。GitHub Release 和 npm 包覆盖 Linux、macOS、Windows 的 x86_64 与 ARM64,共六种组合;npm 入口包自动安装当前系统与架构的平台包,只下载对应二进制,无需 Rust。仍需自行安装 agy、Codex CLI 和对应沙箱依赖。依赖就绪后,可用 npm 安装并注册到 Codex:
|
|
8
8
|
|
|
9
9
|
```sh
|
|
10
10
|
npm install -g agy-delegate-rs
|
package/bin/agy-delegate-rs.cjs
CHANGED
|
@@ -11,9 +11,14 @@ if (!supported.includes(platform)) {
|
|
|
11
11
|
console.error(`agy-delegate-rs: unsupported platform ${platform}; install from source with Cargo.`);
|
|
12
12
|
process.exit(1);
|
|
13
13
|
}
|
|
14
|
-
const
|
|
15
|
-
|
|
16
|
-
|
|
14
|
+
const packageName = `agy-delegate-rs-${platform}`;
|
|
15
|
+
let binary;
|
|
16
|
+
try {
|
|
17
|
+
const manifest = require.resolve(`${packageName}/package.json`);
|
|
18
|
+
binary = path.join(path.dirname(manifest), "bin", `agy-delegate-rs${process.platform === "win32" ? ".exe" : ""}`);
|
|
19
|
+
if (!fs.existsSync(binary)) throw new Error("native binary missing");
|
|
20
|
+
} catch {
|
|
21
|
+
console.error(`agy-delegate-rs: ${packageName} missing; reinstall agy-delegate-rs with optional dependencies enabled (npm install -g agy-delegate-rs --include=optional).`);
|
|
17
22
|
process.exit(1);
|
|
18
23
|
}
|
|
19
24
|
const child = spawn(binary, process.argv.slice(2), { stdio: "inherit" });
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "agy-delegate-rs",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.5",
|
|
4
4
|
"description": "Read-only agy investigations through the Codex OS sandbox",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -18,6 +18,14 @@
|
|
|
18
18
|
"engines": {
|
|
19
19
|
"node": ">=22.14.0"
|
|
20
20
|
},
|
|
21
|
+
"optionalDependencies": {
|
|
22
|
+
"agy-delegate-rs-linux-x64": "0.1.5",
|
|
23
|
+
"agy-delegate-rs-linux-arm64": "0.1.5",
|
|
24
|
+
"agy-delegate-rs-darwin-x64": "0.1.5",
|
|
25
|
+
"agy-delegate-rs-darwin-arm64": "0.1.5",
|
|
26
|
+
"agy-delegate-rs-win32-x64": "0.1.5",
|
|
27
|
+
"agy-delegate-rs-win32-arm64": "0.1.5"
|
|
28
|
+
},
|
|
21
29
|
"os": [
|
|
22
30
|
"linux",
|
|
23
31
|
"darwin",
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|