@team-agent/installer 0.3.5 → 0.3.6
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/Cargo.lock +1 -1
- package/Cargo.toml +1 -1
- package/npm/install.mjs +21 -0
- package/package.json +4 -4
package/Cargo.lock
CHANGED
package/Cargo.toml
CHANGED
package/npm/install.mjs
CHANGED
|
@@ -11,6 +11,7 @@ const packageRoot = path.resolve(__dirname, "..");
|
|
|
11
11
|
const require = createRequire(import.meta.url);
|
|
12
12
|
const packageJson = JSON.parse(fs.readFileSync(path.join(packageRoot, "package.json"), "utf8"));
|
|
13
13
|
const DOCTOR_TIMEOUT_MS = 5000;
|
|
14
|
+
const VERSION_SMOKE_TIMEOUT_MS = 5000;
|
|
14
15
|
|
|
15
16
|
const command = process.argv[2] || "install";
|
|
16
17
|
const args = process.argv.slice(3);
|
|
@@ -88,6 +89,26 @@ function install(argv) {
|
|
|
88
89
|
console.log("skill: installed for Codex and Claude");
|
|
89
90
|
console.log(`PATH: ensure ${binDir} is on PATH`);
|
|
90
91
|
|
|
92
|
+
// 0.3.6 hotfix · C-5 cr verdict — post-install binary smoke 门(走 `--help`
|
|
93
|
+
// 子命令,因为 0.3.x CLI 现阶段没有 --version)。真跑一次 binary 才能抓住
|
|
94
|
+
// loader 级失败(glibc 不兼容 / cpu 错配 / 下载损坏 / 平台子包未装到位 等),
|
|
95
|
+
// 不止依赖 file 元数据。失败输出走三行式(错/动作/日志),非零退出。
|
|
96
|
+
// C-2 cr verdict 守护:本步不做 libc 探测、不读 /lib/x86_64-linux-gnu/libc.so.6,
|
|
97
|
+
// 通用 smoke 而非 platform-aware 逻辑。
|
|
98
|
+
const binarySmoke = spawnSync(teamAgent, ["--help"], {
|
|
99
|
+
text: true,
|
|
100
|
+
encoding: "utf8",
|
|
101
|
+
timeout: VERSION_SMOKE_TIMEOUT_MS,
|
|
102
|
+
});
|
|
103
|
+
if (binarySmoke.status !== 0) {
|
|
104
|
+
const log = (binarySmoke.stderr || binarySmoke.stdout || "").trim() || "no stderr/stdout";
|
|
105
|
+
console.error(`ERROR: team-agent --help failed (status=${binarySmoke.status ?? "signal"})`);
|
|
106
|
+
console.error(`ACTION: verify your platform is supported, reinstall, or open an issue with the log below`);
|
|
107
|
+
console.error(`LOG: ${teamAgent} --help => ${log}`);
|
|
108
|
+
process.exit(1);
|
|
109
|
+
}
|
|
110
|
+
console.log("smoke: team-agent --help ok");
|
|
111
|
+
|
|
91
112
|
const doctorWorkspace = makeDoctorWorkspace();
|
|
92
113
|
try {
|
|
93
114
|
const doctor = spawnSync(teamAgent, ["doctor", "--json", "--workspace", doctorWorkspace], {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@team-agent/installer",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.6",
|
|
4
4
|
"description": "npx installer for Team Agent",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"codex",
|
|
@@ -20,9 +20,9 @@
|
|
|
20
20
|
"team-agent-installer": "npm/install.mjs"
|
|
21
21
|
},
|
|
22
22
|
"optionalDependencies": {
|
|
23
|
-
"@team-agent/cli-darwin-arm64": "0.3.
|
|
24
|
-
"@team-agent/cli-darwin-x64": "0.3.
|
|
25
|
-
"@team-agent/cli-linux-x64": "0.3.
|
|
23
|
+
"@team-agent/cli-darwin-arm64": "0.3.6",
|
|
24
|
+
"@team-agent/cli-darwin-x64": "0.3.6",
|
|
25
|
+
"@team-agent/cli-linux-x64": "0.3.6"
|
|
26
26
|
},
|
|
27
27
|
"scripts": {
|
|
28
28
|
"postinstall": "node npm/bincheck.mjs",
|