@reddb-io/red-skills 2.23.2 → 2.24.1
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 +6 -6
- package/bin/red-skills-code-nav.mjs +19 -0
- 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 +5 -3
package/README.md
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
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
|
-
The tarball carries the platform-independent JS bundles under `dist/` plus
|
|
8
|
-
|
|
9
|
-
the corresponding packaged bundle. **No
|
|
10
|
-
in the tarball, so integrity is npm's
|
|
11
|
-
atomic.
|
|
7
|
+
The tarball carries the platform-independent JS bundles under `dist/` plus bin
|
|
8
|
+
shims (`red-skills-dev`, `red-skills-code-nav`, `red-skills-memory`,
|
|
9
|
+
`red-skills-brain`) that exec the corresponding packaged bundle. **No
|
|
10
|
+
postinstall download** — the bundles ship in the tarball, so integrity is npm's
|
|
11
|
+
own shasum/provenance and delivery is atomic.
|
|
12
12
|
|
|
13
13
|
## Client resolution
|
|
14
14
|
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
/**
|
|
3
|
+
* red-skills-code-nav — thin shim that execs the `code-nav` MCP runtime bundle
|
|
4
|
+
* packaged inside this npm tarball (`dist/code-nav.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", "code-nav.bundle.min.mjs");
|
|
13
|
+
if (!existsSync(bundle)) {
|
|
14
|
+
process.stderr.write(`red-skills-code-nav: 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);
|
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);
|