coding-supervisor 0.1.0-rc3 → 0.1.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/lib/resolve-binary.js +7 -2
- package/package.json +3 -3
package/lib/resolve-binary.js
CHANGED
|
@@ -3,6 +3,11 @@
|
|
|
3
3
|
const fs = require("fs");
|
|
4
4
|
const path = require("path");
|
|
5
5
|
|
|
6
|
+
// The launcher's own version: a reinstall hint names it, never @latest, so a fix reinstalls the
|
|
7
|
+
// version that is running rather than whatever latest points at.
|
|
8
|
+
const { version: LAUNCHER_VERSION } = require("../package.json");
|
|
9
|
+
const REINSTALL = `npm install -g --prefer-online coding-supervisor@${LAUNCHER_VERSION}`;
|
|
10
|
+
|
|
6
11
|
const SUPPORTED_TARGETS = Object.freeze([
|
|
7
12
|
Object.freeze({
|
|
8
13
|
platform: "linux",
|
|
@@ -135,14 +140,14 @@ function formatResolveError(result, opts) {
|
|
|
135
140
|
` Give ${platform} its own npm prefix, then reinstall:\n` +
|
|
136
141
|
` npm config set prefix "$HOME/.npm-global"\n` +
|
|
137
142
|
` export PATH="$HOME/.npm-global/bin:$PATH" # ahead of any /mnt/* entries; add to ~/.profile to persist\n` +
|
|
138
|
-
` hash -r &&
|
|
143
|
+
` hash -r && ${REINSTALL}\n` +
|
|
139
144
|
` Verify with: which supervisor # expect $HOME/.npm-global/bin/supervisor, not /mnt/...\n` +
|
|
140
145
|
` Then rerun: supervisor install --harness <name> --project <dir>`
|
|
141
146
|
);
|
|
142
147
|
}
|
|
143
148
|
return (
|
|
144
149
|
`supervisor: platform package ${result.platformPackage} not installed or missing its binary. ` +
|
|
145
|
-
|
|
150
|
+
`Reinstall with optional dependencies enabled: ${REINSTALL}`
|
|
146
151
|
);
|
|
147
152
|
}
|
|
148
153
|
if (result.reason === "invalid_binary") {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "coding-supervisor",
|
|
3
|
-
"version": "0.1.0
|
|
3
|
+
"version": "0.1.0",
|
|
4
4
|
"description": "Completion gate for coding agents: a task is done only when every mandatory check has a current, observed receipt",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -14,8 +14,8 @@
|
|
|
14
14
|
"test": "node --test tests/*.test.js"
|
|
15
15
|
},
|
|
16
16
|
"optionalDependencies": {
|
|
17
|
-
"coding-supervisor-linux-x64": "0.1.0
|
|
18
|
-
"coding-supervisor-windows-x64": "0.1.0
|
|
17
|
+
"coding-supervisor-linux-x64": "0.1.0",
|
|
18
|
+
"coding-supervisor-windows-x64": "0.1.0"
|
|
19
19
|
},
|
|
20
20
|
"files": [
|
|
21
21
|
"bin/",
|