cyberfleet 0.0.2 → 0.0.3

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/dist/cli.mjs CHANGED
@@ -341,25 +341,6 @@ function buildMissions(agentsRoot, agents) {
341
341
  return agents.map((a) => buildMissionRow(agentsRoot, a));
342
342
  }
343
343
  //#endregion
344
- //#region src/mode.ts
345
- /** The tracked marker file that makes a cyberlegion root initialized (mirrors cyberlegion's own
346
- * `ensureMarker` — kept in sync by hand since it is not itself exported). */
347
- const MARKER_FILE = "config.json";
348
- /**
349
- * Detect ship vs. command-center by the tracked `.agents/cyberlegion/config.json` marker's
350
- * presence alone at this project root — no check against `.agents/specs` or any other SDD state.
351
- * A spawned unit worktree is stamped with its own marker at spawn time (see cyberlegion's
352
- * `session.ts`), so this simply asks: is this cwd's project root one of those stamped worktrees?
353
- */
354
- function detectMode(opts = {}) {
355
- const cwdRoot = projectRoot(opts.cwd);
356
- return {
357
- mode: existsSync(join(cwdRoot, ".agents", "cyberlegion", MARKER_FILE)) ? "ship" : "command-center",
358
- cwdRoot,
359
- fleetRoot: resolveRoot(opts)
360
- };
361
- }
362
- //#endregion
363
344
  //#region src/cli.ts
364
345
  function ctxOf(opts) {
365
346
  return {
@@ -390,20 +371,6 @@ function pauseAgent(ctx, id) {
390
371
  const rootOpts = (cmd) => cmd.option("--root <path>", "cyberlegion hub root (overrides the global hub / $CYBERLEGION_ROOT)").option("--space <path>", "alias for --root").addOption(new Option("--format <format>", "output format").choices(["toon", "json"]).default("toon"));
391
372
  const program = new Command();
392
373
  program.name("cyberfleet").description("Fleet layer over cyberlegion — ships, missions, and the Council view").version("0.0.0");
393
- rootOpts(program.command("mode")).description("report ship (a spawned unit worktree) vs command-center, and the shared fleet root").action((opts) => {
394
- const info = detectMode({
395
- root: opts.root,
396
- space: opts.space
397
- });
398
- emit(formatOf(opts), {
399
- toon: toonObject({
400
- mode: info.mode,
401
- cwdRoot: info.cwdRoot,
402
- fleetRoot: info.fleetRoot
403
- }),
404
- json: info
405
- });
406
- });
407
374
  rootOpts(program.command("missions")).description("who needs the Council's hands — ships × mission × gate × leash, derived from SDD state").option("--agents-root <path>", "override the root under which .agents/ is resolved (default: the primary checkout)").action((opts) => {
408
375
  const ctx = ctxOf(opts);
409
376
  touch(ctx);
@@ -458,7 +425,7 @@ rootOpts(program.command("jump")).description("select/focus a ship's session (tm
458
425
  const ctx = ctxOf(opts);
459
426
  touch(ctx);
460
427
  const agent = resolveAgent(ctx.store, peer);
461
- const pane = agent.tmux?.pane ?? ctx.store.findPaneByAgentId(agent.id);
428
+ const pane = agent.pane?.id ?? ctx.store.findPaneByAgentId(agent.id);
462
429
  if (pane) try {
463
430
  selectSessionAdapter(ctx.env ?? process.env).focus(realExec, { id: pane });
464
431
  emit(formatOf(opts), {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cyberfleet",
3
- "version": "0.0.2",
3
+ "version": "0.0.3",
4
4
  "description": "Harness-agnostic, MCP-free inter-agent sessions and messaging over the filesystem",
5
5
  "keywords": [
6
6
  "agent",
@@ -30,7 +30,7 @@
30
30
  ],
31
31
  "dependencies": {
32
32
  "commander": "^14.0.3",
33
- "cyberlegion": "0.1.0"
33
+ "cyberlegion": "0.2.0"
34
34
  },
35
35
  "devDependencies": {
36
36
  "@types/node": "^24.10.1",
@@ -48,8 +48,9 @@
48
48
  },
49
49
  "scripts": {
50
50
  "build": "tsdown",
51
+ "check:spec": "sdd-check-specs",
51
52
  "dev": "tsx src/cli.ts",
52
- "test": "pnpm build && vitest run src",
53
+ "test": "vitest run src",
53
54
  "test:watch": "vitest",
54
55
  "typecheck": "tsc --noEmit"
55
56
  }
package/readme.md CHANGED
@@ -22,9 +22,6 @@ npx cyberfleet@0.1.0 <command>
22
22
  ## Commands
23
23
 
24
24
  ```sh
25
- # Report ship (a spawned unit worktree) vs command-center, and the shared fleet root
26
- npx cyberfleet mode
27
-
28
25
  # Who needs the Council's hands — ships × mission × gate × leash, derived from SDD state
29
26
  npx cyberfleet missions
30
27
  npx cyberfleet missions --agents-root <path>