@reddb-io/red-skills 2.23.1 → 2.24.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 +5 -4
- package/bin/rsp.mjs +19 -0
- package/dist/code-nav.bundle.min.mjs +89 -0
- package/dist/dev.bundle.min.mjs +437 -438
- package/dist/memory.bundle.min.mjs +1343 -1296
- package/dist/rsp.bundle.min.mjs +38 -0
- package/package.json +4 -3
package/README.md
CHANGED
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
# @reddb-io/red-skills
|
|
2
2
|
|
|
3
|
-
The RedSkills plugin runtime bundles (`dev`, `memory`, `brain`), distributed over
|
|
3
|
+
The RedSkills plugin runtime bundles (`dev`, `code-nav`, `memory`, `brain`), distributed over
|
|
4
4
|
**npm** — the v2 client transport (ADR 0091), replacing the broken GitHub-release
|
|
5
5
|
+ hand-rolled sigstore channel.
|
|
6
6
|
|
|
7
7
|
The tarball carries the platform-independent JS bundles under `dist/` plus three
|
|
8
8
|
bin shims (`red-skills-dev`, `red-skills-memory`, `red-skills-brain`) that exec
|
|
9
|
-
the corresponding packaged bundle.
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
the corresponding packaged bundle. `code-nav` has no bin shim; the dev plugin's
|
|
10
|
+
MCP launcher resolves `dist/code-nav.bundle.min.mjs` through the shared bundle
|
|
11
|
+
fetcher. **No postinstall download** — the bundles ship in the tarball, so
|
|
12
|
+
integrity is npm's own shasum/provenance and delivery is atomic.
|
|
12
13
|
|
|
13
14
|
## Client resolution
|
|
14
15
|
|
package/bin/rsp.mjs
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
/**
|
|
3
|
+
* rsp — thin shim that execs the neutral rsp runtime bundle packaged inside
|
|
4
|
+
* this npm tarball (`dist/rsp.bundle.min.mjs`).
|
|
5
|
+
*/
|
|
6
|
+
import { spawnSync } from "node:child_process";
|
|
7
|
+
import { existsSync } from "node:fs";
|
|
8
|
+
import { dirname, join } from "node:path";
|
|
9
|
+
import { fileURLToPath } from "node:url";
|
|
10
|
+
|
|
11
|
+
const here = dirname(fileURLToPath(import.meta.url));
|
|
12
|
+
const bundle = join(here, "..", "dist", "rsp.bundle.min.mjs");
|
|
13
|
+
if (!existsSync(bundle)) {
|
|
14
|
+
process.stderr.write(`rsp: packaged bundle missing at ${bundle}\n`);
|
|
15
|
+
process.exit(1);
|
|
16
|
+
}
|
|
17
|
+
const res = spawnSync(process.execPath, [bundle, ...process.argv.slice(2)], { stdio: "inherit" });
|
|
18
|
+
if (res.signal) process.kill(process.pid, res.signal);
|
|
19
|
+
process.exit(res.status ?? 1);
|