konductor 0.12.2 → 0.12.4
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 +0 -6
- package/bin/konductor +4 -18
- package/package.json +1 -1
- package/scripts/postinstall.js +2 -1
package/README.md
CHANGED
|
@@ -8,12 +8,6 @@ Spec-driven development orchestrator for [Kiro CLI](https://kiro.dev).
|
|
|
8
8
|
npm install -g konductor
|
|
9
9
|
```
|
|
10
10
|
|
|
11
|
-
Or run without installing:
|
|
12
|
-
|
|
13
|
-
```bash
|
|
14
|
-
npx konductor mcp
|
|
15
|
-
```
|
|
16
|
-
|
|
17
11
|
The npm package automatically downloads the correct prebuilt binary for your platform (macOS/Linux, x64/arm64).
|
|
18
12
|
|
|
19
13
|
## Usage
|
package/bin/konductor
CHANGED
|
@@ -1,18 +1,4 @@
|
|
|
1
|
-
#!/
|
|
2
|
-
"
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
const { spawnSync } = require("child_process");
|
|
6
|
-
const fs = require("fs");
|
|
7
|
-
|
|
8
|
-
const bin = path.join(__dirname, "konductor-native");
|
|
9
|
-
|
|
10
|
-
if (!fs.existsSync(bin)) {
|
|
11
|
-
console.error("Error: konductor binary not found.");
|
|
12
|
-
console.error("Try reinstalling: npm install -g konductor");
|
|
13
|
-
console.error("Or use the shell installer: https://github.com/bnusunny/konductor");
|
|
14
|
-
process.exit(1);
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
const result = spawnSync(bin, process.argv.slice(2), { stdio: "inherit" });
|
|
18
|
-
process.exit(result.status ?? 1);
|
|
1
|
+
#!/bin/sh
|
|
2
|
+
echo "Error: konductor binary not installed." >&2
|
|
3
|
+
echo "Try reinstalling: npm install -g konductor" >&2
|
|
4
|
+
exit 1
|
package/package.json
CHANGED
package/scripts/postinstall.js
CHANGED
|
@@ -29,6 +29,7 @@ function fetch(url) {
|
|
|
29
29
|
const mod = url.startsWith("https") ? https : http;
|
|
30
30
|
mod.get(url, { headers: { "User-Agent": "konductor-npm" } }, (res) => {
|
|
31
31
|
if (res.statusCode >= 300 && res.statusCode < 400 && res.headers.location) {
|
|
32
|
+
res.resume();
|
|
32
33
|
return fetch(res.headers.location).then(resolve, reject);
|
|
33
34
|
}
|
|
34
35
|
if (res.statusCode !== 200) {
|
|
@@ -48,7 +49,7 @@ async function main() {
|
|
|
48
49
|
const asset = getAssetName();
|
|
49
50
|
const baseUrl = `https://github.com/${REPO}/releases/download/v${version}`;
|
|
50
51
|
const binDir = path.join(__dirname, "..", "bin");
|
|
51
|
-
const dest = path.join(binDir, "konductor
|
|
52
|
+
const dest = path.join(binDir, "konductor");
|
|
52
53
|
|
|
53
54
|
console.log(`Downloading konductor v${version} (${asset})...`);
|
|
54
55
|
|