@endgame-build/khub 0.28.0 → 0.30.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/README.md +9 -2
- package/bin/khub.js +11 -3
- package/binaries/darwin-arm64/khub +0 -0
- package/binaries/darwin-x64/khub +0 -0
- package/binaries/linux-arm64/khub +0 -0
- package/binaries/linux-x64/khub +0 -0
- package/binaries/win32-arm64/khub.exe +0 -0
- package/binaries/win32-x64/khub.exe +0 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
[](https://github.com/endgame-build/khub/actions/workflows/ci.yml)
|
|
4
4
|

|
|
5
|
-

|
|
6
6
|
|
|
7
7
|
**Schema-bound, agent-facing context management.**
|
|
8
8
|
|
|
@@ -30,7 +30,7 @@ Full command surface and JSON contracts: [`docs/cli.md`](docs/cli.md). Feature h
|
|
|
30
30
|
|
|
31
31
|
## Quickstart
|
|
32
32
|
|
|
33
|
-
khub is a single static binary for macOS and
|
|
33
|
+
khub is a single static binary for macOS, Linux and Windows (amd64, arm64; Windows is experimental). The primary install is the npm package [`@endgame-build/khub`](https://www.npmjs.com/package/@endgame-build/khub) — one package carrying a prebuilt binary per platform behind a launcher that picks the matching one — pinned per repo, so everyone (and every agent) touching that repo runs the same khub:
|
|
34
34
|
|
|
35
35
|
```bash
|
|
36
36
|
npm install -D @endgame-build/khub # exact per-repo pin (required: later commands run it)
|
|
@@ -93,6 +93,13 @@ khub ships two skills: `khub` (the read and write verbs) and `setup` (install th
|
|
|
93
93
|
/plugin install khub@khub
|
|
94
94
|
```
|
|
95
95
|
|
|
96
|
+
To update the plugin later, run these from a shell, then start a new session or run `/reload-plugins`:
|
|
97
|
+
|
|
98
|
+
```bash
|
|
99
|
+
claude plugin marketplace update khub
|
|
100
|
+
claude plugin update khub@khub
|
|
101
|
+
```
|
|
102
|
+
|
|
96
103
|
**Every other agent — `npx skills`.** opencode, Cursor, Codex, Gemini CLI and any other agent that reads a `SKILL.md` get the two skills, with no mod. Needs Node and access to the repo:
|
|
97
104
|
|
|
98
105
|
```bash
|
package/bin/khub.js
CHANGED
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
"use strict";
|
|
3
3
|
// Launcher for the khub static binary.
|
|
4
4
|
//
|
|
5
|
-
// One package carries every binary, under binaries/<platform>-<arch>/khub
|
|
5
|
+
// One package carries every binary, under binaries/<platform>-<arch>/khub
|
|
6
|
+
// (khub.exe on win32, which is experimental).
|
|
6
7
|
// package.json's `bin` is a single path, so this shim exists to pick the right
|
|
7
8
|
// one at run time and hand over: stdio is inherited (khub's own TTY detection
|
|
8
9
|
// and EPIPE handling see the real file descriptors), the exit code is forwarded
|
|
@@ -22,7 +23,7 @@ const path = require("path");
|
|
|
22
23
|
|
|
23
24
|
const root = path.join(__dirname, "..", "binaries");
|
|
24
25
|
const target = `${process.platform}-${process.arch}`;
|
|
25
|
-
const bin = path.join(root, target, "khub");
|
|
26
|
+
const bin = path.join(root, target, process.platform === "win32" ? "khub.exe" : "khub");
|
|
26
27
|
|
|
27
28
|
if (!fs.existsSync(bin)) {
|
|
28
29
|
// No fallback if binaries/ is unreadable: node's own ENOENT names the path,
|
|
@@ -43,6 +44,13 @@ if (result.error) {
|
|
|
43
44
|
}
|
|
44
45
|
if (result.signal) {
|
|
45
46
|
// Re-raise so the parent observes the same termination the binary did.
|
|
46
|
-
|
|
47
|
+
// Windows has no signals to re-raise: node emulates SIGINT, SIGTERM and
|
|
48
|
+
// SIGKILL as an unconditional kill and throws for any other name, so a
|
|
49
|
+
// failed re-raise falls through to the exit below rather than crashing.
|
|
50
|
+
try {
|
|
51
|
+
process.kill(process.pid, result.signal);
|
|
52
|
+
} catch {
|
|
53
|
+
// fall through
|
|
54
|
+
}
|
|
47
55
|
}
|
|
48
56
|
process.exit(result.status === null ? 1 : result.status);
|
|
Binary file
|
package/binaries/darwin-x64/khub
CHANGED
|
Binary file
|
|
Binary file
|
package/binaries/linux-x64/khub
CHANGED
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@endgame-build/khub",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.30.0",
|
|
4
4
|
"description": "Schema-bound, agent-facing context management. A single static binary; this package carries one per supported platform and launches the matching one.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": "ENDGAME",
|