@asanabrial/estigia 0.1.1 → 0.2.0
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/bin/estigia.js +20 -4
- package/package.json +1 -1
package/bin/estigia.js
CHANGED
|
@@ -17,7 +17,7 @@ const TARGETS = {
|
|
|
17
17
|
"darwin-x64": { triple: "x86_64-apple-darwin", archive: "tar.gz", exe: "estigia" },
|
|
18
18
|
"darwin-arm64": { triple: "aarch64-apple-darwin", archive: "tar.gz", exe: "estigia" },
|
|
19
19
|
"win32-x64": { triple: "x86_64-pc-windows-msvc", archive: "zip", exe: "estigia.exe" },
|
|
20
|
-
"win32-arm64": { triple: "
|
|
20
|
+
"win32-arm64": { triple: "x86_64-pc-windows-msvc", archive: "zip", exe: "estigia.exe" },
|
|
21
21
|
};
|
|
22
22
|
|
|
23
23
|
class EstigiaError extends Error {}
|
|
@@ -135,11 +135,27 @@ async function install(tag, target, binary) {
|
|
|
135
135
|
fs.chmodSync(candidate, 0o755);
|
|
136
136
|
|
|
137
137
|
const recorded = spawnSync(candidate, ["__record-install"], {
|
|
138
|
-
|
|
138
|
+
encoding: "utf8",
|
|
139
|
+
stdio: ["ignore", process.stderr, "pipe"],
|
|
139
140
|
});
|
|
140
|
-
|
|
141
|
-
|
|
141
|
+
const loaderWords = (recorded.stderr || "").trim();
|
|
142
|
+
if (recorded.error || recorded.status === 126 || recorded.status === 127) {
|
|
143
|
+
const words = recorded.error ? recorded.error.message : loaderWords;
|
|
144
|
+
let detail = `this platform cannot run the ${target.triple} archive, and that is the reason`;
|
|
145
|
+
if (words) {
|
|
146
|
+
detail += `; the loader said: ${words}`;
|
|
147
|
+
}
|
|
148
|
+
if (target.triple.endsWith("-unknown-linux-gnu")) {
|
|
149
|
+
detail += `\n The published ${target.triple} archives need glibc 2.39 or newer.`;
|
|
150
|
+
}
|
|
151
|
+
fail(
|
|
152
|
+
`the downloaded candidate could not be executed, so it was not asked to record itself: ${detail}\n` +
|
|
153
|
+
" Build on this machine instead: cargo install estigia " +
|
|
154
|
+
`(main: cargo install --git https://github.com/${REPO})\n` +
|
|
155
|
+
" Refusing to replace the installed executable.",
|
|
156
|
+
);
|
|
142
157
|
}
|
|
158
|
+
process.stderr.write(recorded.stderr || "");
|
|
143
159
|
if (recorded.status !== 0) {
|
|
144
160
|
fail("candidate lifecycle admission failed; refusing to replace the installed executable");
|
|
145
161
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@asanabrial/estigia",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"mcpName": "io.github.asanabrial/estigia",
|
|
5
5
|
"description": "Guardrails for AI coding agents (Claude Code, Codex, OpenCode, Pi): an MCP server and hooks that verify issue claims, bind reviews to exact commits and gate merges",
|
|
6
6
|
"bin": {
|