@gorlitzer-labs/seldon 0.9.0 → 0.9.2
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/bin/seldon.js +19 -9
- package/package.json +7 -2
package/bin/seldon.js
CHANGED
|
@@ -738,11 +738,12 @@ async function up() {
|
|
|
738
738
|
// decisions from them). It no longer posts into rooms.
|
|
739
739
|
if (has("factory")) startDaemon("factory-watch", "factory", ["watch", "--all"]);
|
|
740
740
|
|
|
741
|
-
// The rest are on-demand, not daemons — point at the command.
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
if (has("
|
|
745
|
-
if (has("
|
|
741
|
+
// The rest are on-demand, not daemons — point at the command. Your agents first; the rooms
|
|
742
|
+
// flow is an add-on and says so.
|
|
743
|
+
go.unshift(`${C.bold("Your agents")} ${C.cyan("seldon")} ${C.dim("→ n new lane · p plan · ⏎ open · in any repo")}`);
|
|
744
|
+
if (has("factory")) go.push(`${C.bold("Projects in rooms")} ${C.dim("(add-on)")} ${C.cyan('factory new "<your idea>"')} ${C.dim("·")} ${C.cyan("seldon adopt [dir]")}`);
|
|
745
|
+
if (has("apiary")) go.push(`${C.bold("Agent rooms")} ${C.dim("(add-on)")} ${C.cyan("apiary ps")}`);
|
|
746
|
+
if (has("bifrost")) go.push(`${C.bold("Terminals across machines")} ${C.dim("(add-on)")} ${C.cyan("bifrost sessions")}`);
|
|
746
747
|
|
|
747
748
|
if (go.length) { console.log(C.bold(" Where to go:")); for (const l of go) console.log(" • " + l); }
|
|
748
749
|
else console.log(C.dim(" nothing to start — install services first: seldon install factory demerzel"));
|
|
@@ -1544,16 +1545,25 @@ async function reportCmd(harness) {
|
|
|
1544
1545
|
try { for await (const chunk of process.stdin) raw += chunk; writeReport(reportFromEvent(harness, JSON.parse(raw))); } catch { /* never fail the agent */ }
|
|
1545
1546
|
}
|
|
1546
1547
|
|
|
1548
|
+
function stableSeldonBin() {
|
|
1549
|
+
try {
|
|
1550
|
+
const p = execSync("command -v seldon", { stdio: ["ignore", "pipe", "ignore"] }).toString().trim();
|
|
1551
|
+
if (p && path.isAbsolute(p)) return p;
|
|
1552
|
+
} catch { /* not on PATH */ }
|
|
1553
|
+
return process.argv[1];
|
|
1554
|
+
}
|
|
1555
|
+
|
|
1547
1556
|
// `seldon setup [codex|opencode] [--remove]` — install the reporter into each harness.
|
|
1548
1557
|
const CODEX_HOOKS = path.join(process.env.HOME, ".codex", "hooks.json");
|
|
1549
1558
|
const OPENCODE_PLUGIN = path.join(process.env.HOME, ".config", "opencode", "plugins", "seldon.js");
|
|
1550
1559
|
function setupCmd(which, flags) {
|
|
1551
1560
|
const targets = which ? [which] : ["codex", "opencode"].filter((h) => has(h) || flags.remove);
|
|
1552
1561
|
if (!targets.length) { console.log(C.dim("neither codex nor opencode is installed — Claude needs no setup")); return; }
|
|
1553
|
-
// The
|
|
1554
|
-
//
|
|
1555
|
-
//
|
|
1556
|
-
|
|
1562
|
+
// The `seldon` on PATH (e.g. ~/Library/pnpm/bin/seldon), not the file running now: that one
|
|
1563
|
+
// lives under a versioned store path (pnpm's launcher execs node on it, so even argv[1] is the
|
|
1564
|
+
// versioned path), and a hook pointing at a path an upgrade removed fails on every event,
|
|
1565
|
+
// silently. Only if seldon is not on PATH at all does it fall back to the running file.
|
|
1566
|
+
const bin = stableSeldonBin();
|
|
1557
1567
|
const report = `SELDON_REPORT=1 ${JSON.stringify(bin)} report`;
|
|
1558
1568
|
for (const h of targets) {
|
|
1559
1569
|
if (h === "codex") {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gorlitzer-labs/seldon",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.2",
|
|
4
4
|
"description": "Install the Seldon stack — pick your tools from a checklist; each installs via its native method.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -24,7 +24,12 @@
|
|
|
24
24
|
"apiary",
|
|
25
25
|
"factory"
|
|
26
26
|
],
|
|
27
|
-
"author": "
|
|
27
|
+
"author": "gorlitzer",
|
|
28
|
+
"repository": {
|
|
29
|
+
"type": "git",
|
|
30
|
+
"url": "git+https://github.com/gorlitzer-labs/seldon.git",
|
|
31
|
+
"directory": "tools/seldon"
|
|
32
|
+
},
|
|
28
33
|
"license": "MIT",
|
|
29
34
|
"publishConfig": {
|
|
30
35
|
"access": "public"
|