@team-agent/installer 0.5.73 → 0.5.75

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 (38) hide show
  1. package/Cargo.lock +1 -1
  2. package/Cargo.toml +1 -1
  3. package/crates/team-agent/src/cli/adapters.rs +19 -13
  4. package/crates/team-agent/src/cli/emit.rs +6 -3
  5. package/crates/team-agent/src/cli/mod.rs +151 -0
  6. package/crates/team-agent/src/cli/tests/leader_watch.rs +28 -0
  7. package/crates/team-agent/src/cli/tests/run_delegation.rs +3 -0
  8. package/crates/team-agent/src/cli/types.rs +6 -0
  9. package/crates/team-agent/src/compiler.rs +14 -1
  10. package/crates/team-agent/src/layout/worker_env.rs +366 -0
  11. package/crates/team-agent/src/leader/lease.rs +334 -53
  12. package/crates/team-agent/src/leader/registry.rs +177 -108
  13. package/crates/team-agent/src/lifecycle/launch/pi_mcp.rs +12 -1
  14. package/crates/team-agent/src/lifecycle/launch/quick_start.rs +2272 -128
  15. package/crates/team-agent/src/lifecycle/launch/quick_start_transport.rs +16 -6
  16. package/crates/team-agent/src/lifecycle/launch/spawn.rs +4 -0
  17. package/crates/team-agent/src/lifecycle/launch/spec_state.rs +138 -13
  18. package/crates/team-agent/src/lifecycle/launch/state_projection.rs +5 -3
  19. package/crates/team-agent/src/lifecycle/restart/common.rs +3 -11
  20. package/crates/team-agent/src/lifecycle/tests/launch_spawn.rs +60 -0
  21. package/crates/team-agent/src/lifecycle/tests/pi_compiler_red.rs +31 -0
  22. package/crates/team-agent/src/lifecycle/tests/pi_dual_entry_red.rs +25 -23
  23. package/crates/team-agent/src/lifecycle/tests/worker_spawn_env_red.rs +110 -31
  24. package/crates/team-agent/src/messaging/delivery.rs +226 -37
  25. package/crates/team-agent/src/messaging/leader_channel.rs +12 -3
  26. package/crates/team-agent/src/messaging/tests/runtime.rs +234 -0
  27. package/crates/team-agent/src/model/spec.rs +81 -7
  28. package/crates/team-agent/src/provider/adapters/pi.rs +14 -0
  29. package/crates/team-agent/src/state/persist.rs +433 -4
  30. package/crates/team-agent/src/state/repository.rs +45 -2
  31. package/crates/team-agent/src/tmux_backend/tests.rs +414 -7
  32. package/crates/team-agent/src/tmux_backend.rs +274 -26
  33. package/crates/team-agent/src/transport/test_support.rs +18 -3
  34. package/crates/team-agent/src/transport.rs +99 -0
  35. package/package.json +4 -4
  36. package/skills/team-agent/SKILL.md +3 -0
  37. package/skills/team-agent/command-coverage.json +21 -0
  38. package/skills/team-agent/references/team-agent-operator.md +9 -2
@@ -67,6 +67,13 @@
67
67
  "owner": "runtime-owner:leader-channel",
68
68
  "plan": "Execute in a hermetic leader fixture and bind assertions to owner/receiver persistence or a precise zero-write refusal."
69
69
  },
70
+ {
71
+ "command": "team-agent claim-leader --detail",
72
+ "bucket": "declared_gap",
73
+ "covered": false,
74
+ "owner": "runtime-owner:leader-channel",
75
+ "plan": "Execute the exact argv and bind assertions to detail-only topology_convergence, owner_epoch, and checked_paths fields."
76
+ },
70
77
  {
71
78
  "command": "team-agent claude",
72
79
  "bucket": "declared_gap",
@@ -233,6 +240,13 @@
233
240
  }
234
241
  }
235
242
  },
243
+ {
244
+ "command": "team-agent quick-start --json --detail",
245
+ "bucket": "declared_gap",
246
+ "covered": false,
247
+ "owner": "runtime-owner:lifecycle",
248
+ "plan": "Execute the exact argv and bind assertions to detail-only receiver, topology, and coordinator diagnostics while keeping compact default JSON."
249
+ },
236
250
  {
237
251
  "command": "team-agent quick-start <dir>",
238
252
  "bucket": "covered",
@@ -308,6 +322,13 @@
308
322
  "owner": "runtime-owner:restart",
309
323
  "plan": "Execute a representative team selector and bind assertions to selected-team restart and sibling preservation."
310
324
  },
325
+ {
326
+ "command": "team-agent restart --json --detail",
327
+ "bucket": "declared_gap",
328
+ "covered": false,
329
+ "owner": "runtime-owner:restart",
330
+ "plan": "Execute the exact argv and bind assertions to detail-only coordinator diagnostics while keeping compact default JSON."
331
+ },
311
332
  {
312
333
  "command": "team-agent send --task task_initial \"Start\"",
313
334
  "bucket": "declared_gap",
@@ -96,6 +96,8 @@ EOF
96
96
  team-agent quick-start .team/current
97
97
  ```
98
98
 
99
+ That copy-paste role is Codex-specific. Provider tool categories are not portable: Pi roles must contain `mcp_team` and may use only `fs_read`, `fs_list`, `fs_write`, and `execute_bash`; do not carry `provider_builtin`, `git_diff`, or `network` into a Pi role. `team-agent compile`/`validate` rejects an unsupported Pi category before quick-start persists runtime state, and the error names the category to remove.
100
+
99
101
  YAML lists must be block style. Use `tools:\n - fs_read`; do not use `tools: [fs_read, mcp_team]`.
100
102
 
101
103
  Display choices (set `display_backend:` in `TEAM.md` to opt in):
@@ -122,9 +124,11 @@ team-agent claim-leader --help
122
124
  Observed (exit 0):
123
125
 
124
126
  ```text
125
- usage: team-agent claim-leader [--workspace WORKSPACE] [--team TEAM] [--confirm] [--json]
127
+ usage: team-agent claim-leader [--workspace WORKSPACE] [--team TEAM] [--confirm] [--json] [--detail]
126
128
  ```
127
129
 
130
+ Default JSON for `quick-start`, `restart`, and `claim-leader` is compact: `ok`, `status`/`reason`, next action, attach/send. `quick-start` keeps a short `readiness` object with `all_workers_spawned`. Pass `--detail` for internal receiver/topology/coordinator diagnostics.
131
+
128
132
  Run `claim-leader` only from the **leader** pane. From a worker pane it refuses and prints a structured `action` (see Failure Rules).
129
133
 
130
134
  ## Provider Capability Matrix
@@ -264,7 +268,7 @@ team-agent shutdown --help
264
268
  Observed (all exit 0):
265
269
 
266
270
  ```text
267
- usage: team-agent restart [WORKSPACE] [--team TEAM] [--allow-fresh] [--session-converge-deadline SECONDS] [--json]
271
+ usage: team-agent restart [WORKSPACE] [--team TEAM] [--allow-fresh] [--session-converge-deadline SECONDS] [--json] [--detail]
268
272
  usage: team-agent add-agent AGENT --role-file FILE [--force] [--workspace WORKSPACE] [--team TEAM] [--no-display] [--json]
269
273
  usage: team-agent shutdown [--workspace WORKSPACE] [--team TEAM] [--keep-logs] [--json]
270
274
  ```
@@ -480,6 +484,7 @@ team-agent approvals <agent_id>
480
484
  team-agent approvals [coder]
481
485
  team-agent attach-leader
482
486
  team-agent claim-leader
487
+ team-agent claim-leader --detail
483
488
  team-agent claude
484
489
  team-agent clone-agent <source> --as <new>
485
490
  team-agent codex
@@ -501,12 +506,14 @@ team-agent quick-start ./roles --team-id alpha
501
506
  team-agent quick-start .team/alpha
502
507
  team-agent quick-start .team/current
503
508
  team-agent quick-start <dir>
509
+ team-agent quick-start --json --detail
504
510
  team-agent remove-agent <agent> --workspace . --confirm
505
511
  team-agent reset-agent <agent> --discard-session
506
512
  team-agent restart
507
513
  team-agent restart .
508
514
  team-agent restart . --allow-fresh
509
515
  team-agent restart . --team <session_name_or_team_name>
516
+ team-agent restart --json --detail
510
517
  team-agent send --task task_initial "Start"
511
518
  team-agent send --watch-result
512
519
  team-agent send --watch-result coder "Do the bounded task"