impulso 0.20.22 → 0.21.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/harnesses/opencode/bin/darwin-amd64/impulso-hub +0 -0
- package/harnesses/opencode/bin/darwin-arm64/impulso-hub +0 -0
- package/harnesses/opencode/bin/linux-amd64/impulso-hub +0 -0
- package/harnesses/opencode/bin/linux-arm64/impulso-hub +0 -0
- package/harnesses/opencode/plugin.js +4 -4
- package/package.json +1 -1
- package/scripts/install-hub.js +9 -1
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -32,7 +32,7 @@ const REQUIRED_BINARIES = [
|
|
|
32
32
|
{ bin: 'plannotator', hint: 'curl -fsSL https://plannotator.ai/install.sh | bash' },
|
|
33
33
|
];
|
|
34
34
|
|
|
35
|
-
function
|
|
35
|
+
function warnRequiredBinaries() {
|
|
36
36
|
const missing = REQUIRED_BINARIES.filter(({ bin }) => {
|
|
37
37
|
const r = spawnSync('which', [bin], { stdio: ['ignore', 'pipe', 'ignore'] });
|
|
38
38
|
return r.error || r.status !== 0;
|
|
@@ -42,13 +42,13 @@ function enforceRequiredBinaries() {
|
|
|
42
42
|
'[impulso] hard-required binaries missing from PATH: ' +
|
|
43
43
|
missing.map(({ bin, hint }) => `${bin} (install: ${hint})`).join(', ');
|
|
44
44
|
console.error(msg);
|
|
45
|
-
|
|
45
|
+
console.warn('[impulso] continuing without required binaries — some features may not work');
|
|
46
46
|
}
|
|
47
47
|
}
|
|
48
48
|
|
|
49
49
|
export const ImpulsoPlugin = async (ctx) => {
|
|
50
|
-
await installHub({ packageRoot: pkgRoot });
|
|
51
|
-
|
|
50
|
+
await installHub({ packageRoot: pkgRoot, verifyVersion: false });
|
|
51
|
+
warnRequiredBinaries();
|
|
52
52
|
|
|
53
53
|
const sub = [];
|
|
54
54
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "impulso",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.21.0",
|
|
4
4
|
"description": "Impulso — plugin bundle for opencode and Claude Code: Plannotator skills + Impulso-DirectSpeech (rethemed ex-Caveman) + RTK. Harness-neutral repo; per-harness glue under harnesses/.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "harnesses/opencode/plugin.js",
|
package/scripts/install-hub.js
CHANGED
|
@@ -40,6 +40,7 @@ export async function installHub({
|
|
|
40
40
|
version,
|
|
41
41
|
platform = process.platform,
|
|
42
42
|
arch = process.arch,
|
|
43
|
+
verifyVersion = true,
|
|
43
44
|
} = {}) {
|
|
44
45
|
const packageJson = JSON.parse(await readFile(path.join(packageRoot, 'package.json'), 'utf8'));
|
|
45
46
|
const packageVersion = version || packageJson.version;
|
|
@@ -47,7 +48,14 @@ export async function installHub({
|
|
|
47
48
|
const source = bundledBinaryPath(packageRoot, target);
|
|
48
49
|
await stat(source);
|
|
49
50
|
|
|
50
|
-
if (
|
|
51
|
+
if (!verifyVersion) {
|
|
52
|
+
try {
|
|
53
|
+
await stat(destination);
|
|
54
|
+
return { target, updated: false, destination, version: packageVersion };
|
|
55
|
+
} catch (_e) {
|
|
56
|
+
// destination absent — fall through to copy
|
|
57
|
+
}
|
|
58
|
+
} else if ((await installedVersion(destination)) === packageVersion) {
|
|
51
59
|
return { target, updated: false, destination, version: packageVersion };
|
|
52
60
|
}
|
|
53
61
|
|