@tablation/crew 0.126.8 → 0.126.9

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.
Files changed (2) hide show
  1. package/dist/cli.js +14 -0
  2. package/package.json +1 -1
package/dist/cli.js CHANGED
@@ -14892,6 +14892,20 @@ async function runProvision(o, deps, write, human) {
14892
14892
  emit("route_enabled", `enabled route ${route2}`, { route: route2 });
14893
14893
  }
14894
14894
  }
14895
+ summary.seatKeys = [];
14896
+ for (const route2 of routeNames) {
14897
+ const res = deps.crew(["agents", "sync", route2]);
14898
+ const lines2 = res.stdout.split("\n").map((l) => l.trim());
14899
+ const minted = lines2.flatMap((l) => /^(\w+): agent key minted/.exec(l)?.[1] ?? []);
14900
+ const refused = lines2.filter((l) => /could not mint an agent key|^seat keys: not minted/.test(l));
14901
+ summary.seatKeys.push({ route: route2, minted });
14902
+ if (minted.length > 0) summary.changed = true;
14903
+ emit("seat_keys", `seat keys: ${minted.length} minted${minted.length > 0 ? ` (${minted.join(", ")})` : ""} for ${route2}`, { route: route2, minted });
14904
+ if (res.status >= 2 || refused.length > 0) {
14905
+ const why = refused[0] ?? (res.stderr.trim().split("\n").pop() || `crew agents sync exited ${res.status}`);
14906
+ return fail2(PROVISION_EXIT.failed, `seat keys for ${route2}: ${why}`, { stage: "seat_keys", route: route2 });
14907
+ }
14908
+ }
14895
14909
  const before = deps.installState();
14896
14910
  if (before.unitsStale || !before.running || !before.lingering) {
14897
14911
  const res = deps.crew(["install"]);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tablation/crew",
3
- "version": "0.126.8",
3
+ "version": "0.126.9",
4
4
  "description": "A standing team of headless agents that picks work off a Tablation board, does it on a machine you control, and reports back.",
5
5
  "type": "module",
6
6
  "license": "MIT",