fabro/lib/crates/fabro-cli/tests/it/cmd
Bryan Helmkamp e76398ef4c refactor(events): tidy schema v2 plumbing
Quality cleanup on top of the v2 envelope commits:

- fabro-workflow/src/event.rs: add ActorKind/ActorRef/RunProvenance
  to the existing ::fabro_types import block so call sites can use
  unqualified names (restores CLAUDE.md import style). Extract a
  node_stored_fields helper to collapse 4 near-identical match arms
  in stored_event_fields. Drop the no-op ..default() from the Agent
  arm where all 9 fields are set explicitly.
- fabro-types/src/run_event/mod.rs: collapse 9 copies of the
  obj.get/as_str/to_string chain in from_ref behind an opt_str
  closure.
- fabro-server/src/server.rs: dedupe the two identical error
  closures in api_event_envelope_from_store. Skip the typed
  ApiEventEnvelope roundtrip in sse_event_from_store so streamed
  events go straight from the wire Value to a JSON string.
- fabro-workflow/src/handler/llm/api.rs: inline current_visit into
  its sole caller current_stage_event_scope.

Also fixes pre-existing test compile breakage carried in by the
v2 commits: restore the fabro_types::RunId import in support.rs
(removed by 44def786 but still referenced by find_run_dir), and
thread parallel_group_id/parallel_branch_id: None through 9
Event::Stage*/Event::Agent constructors in run_progress and
store/dump tests that 28d28c59 missed.

No behavior change aside from the SSE hot path avoiding one full
strong-type deserialize + reserialize per event.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-09 11:42:02 -04:00
..
artifact_cp.rs perf(cli): reduce slow integration test overhead 2026-04-07 22:57:45 -04:00
artifact_list.rs perf(cli): reduce slow integration test overhead 2026-04-07 22:57:45 -04:00
attach.rs feat(api): flatten EventEnvelope wire JSON (schema v2) 2026-04-09 10:40:21 -04:00
config.rs perf(cli): reduce slow integration test overhead 2026-04-07 22:57:45 -04:00
create.rs refactor(cli): separate local socket and storage defaults 2026-04-06 11:57:14 -04:00
diff.rs refactor(scratch): remove store-backed diff and blob cache writes 2026-04-07 22:31:59 -04:00
discord.rs refactor(cli): deglobalize server and storage target flags 2026-04-05 16:06:42 -04:00
docs.rs refactor(cli): deglobalize server and storage target flags 2026-04-05 16:06:42 -04:00
doctor.rs perf(cli): reduce slow integration test overhead 2026-04-07 22:57:45 -04:00
exec.rs perf(cli): reduce slow integration test overhead 2026-04-07 22:57:45 -04:00
fabro.rs fix(cli): restore fabro-cli verification after merge 2026-04-08 16:41:13 -04:00
fork.rs refactor(cli): make run-adjacent commands server-only 2026-04-06 06:12:16 -04:00
graph.rs refactor(cli): separate local socket and storage defaults 2026-04-06 11:57:14 -04:00
inspect.rs refactor(scratch): remove stale scratch file refs 2026-04-07 20:40:06 -04:00
install.rs test(nextest): share one session server by default 2026-04-07 09:44:34 -04:00
json_global.rs test(cli): stabilize ps JSON global flag assertion 2026-04-05 10:34:32 -04:00
logs.rs refactor(scratch): remove stale scratch file refs 2026-04-07 20:40:06 -04:00
mod.rs test(cli): add integration tests for fabro uninstall 2026-04-08 16:47:48 -04:00
model.rs refactor(billing): unify the LLM billing domain 2026-04-07 14:33:35 -04:00
model_list.rs refactor(cli): separate local socket and storage defaults 2026-04-06 11:57:14 -04:00
model_test.rs refactor(cli): separate local socket and storage defaults 2026-04-06 11:57:14 -04:00
parse.rs refactor(cli): deglobalize server and storage target flags 2026-04-05 16:06:42 -04:00
pr.rs refactor(cli): deglobalize server and storage target flags 2026-04-05 16:06:42 -04:00
pr_close.rs refactor(cli): make run-adjacent commands server-only 2026-04-06 06:12:16 -04:00
pr_create.rs refactor(scratch): remove stale scratch file refs 2026-04-07 20:40:06 -04:00
pr_list.rs refactor(cli): make run-adjacent commands server-only 2026-04-06 06:12:16 -04:00
pr_merge.rs refactor(cli): make run-adjacent commands server-only 2026-04-06 06:12:16 -04:00
pr_view.rs feat(types): add RunEvent envelope fields + ActorRef (schema v2) 2026-04-09 10:03:01 -04:00
preflight.rs refactor(cli): separate local socket and storage defaults 2026-04-06 11:57:14 -04:00
provider.rs refactor(cli): deglobalize server and storage target flags 2026-04-05 16:06:42 -04:00
provider_login.rs refactor(cli): separate local socket and storage defaults 2026-04-06 11:57:14 -04:00
ps.rs refactor(scratch): remove stale scratch file refs 2026-04-07 20:40:06 -04:00
repo.rs chore: remove skill install command and GET /runs/{id}/verification endpoint 2026-04-06 16:38:03 -04:00
repo_deinit.rs refactor(cli): deglobalize server and storage target flags 2026-04-05 16:06:42 -04:00
repo_init.rs refactor(cli): separate local socket and storage defaults 2026-04-06 11:57:14 -04:00
resume.rs refactor(scratch): remove stale scratch file refs 2026-04-07 20:40:06 -04:00
rewind.rs refactor(run): store manifests and definitions in global CAS 2026-04-07 22:57:48 -04:00
rm.rs test(cli): replace slow active-run coverage 2026-04-08 03:47:35 -04:00
run.rs feat(api): flatten EventEnvelope wire JSON (schema v2) 2026-04-09 10:40:21 -04:00
runner.rs test(cli): move timeout-prone run coverage into ITs 2026-04-08 03:40:48 -04:00
sandbox_cp.rs refactor(scratch): remove stale scratch file refs 2026-04-07 20:40:06 -04:00
sandbox_preview.rs refactor(cli): make run-adjacent commands server-only 2026-04-06 06:12:16 -04:00
sandbox_ssh.rs refactor(cli): make run-adjacent commands server-only 2026-04-06 06:12:16 -04:00
secret.rs refactor(cli): separate local socket and storage defaults 2026-04-06 11:57:14 -04:00
secret_list.rs refactor(server): make secrets and operational checks server-canonical 2026-04-05 17:34:01 -04:00
secret_rm.rs refactor(cli): deglobalize server and storage target flags 2026-04-05 16:06:42 -04:00
secret_set.rs refactor(cli): deglobalize server and storage target flags 2026-04-05 16:06:42 -04:00
send_analytics.rs refactor(cli): deglobalize server and storage target flags 2026-04-05 16:06:42 -04:00
send_panic.rs refactor(cli): deglobalize server and storage target flags 2026-04-05 16:06:42 -04:00
server_start.rs feat(server): make web ui optional 2026-04-08 16:22:41 -04:00
server_status.rs test(nextest): share one session server by default 2026-04-07 09:44:34 -04:00
server_stop.rs test(nextest): share one session server by default 2026-04-07 09:44:34 -04:00
start.rs refactor(scratch): remove stale scratch file refs 2026-04-07 20:40:06 -04:00
store.rs refactor(cli): deglobalize server and storage target flags 2026-04-05 16:06:42 -04:00
store_dump.rs refactor(store): unify run dump export sources 2026-04-07 18:28:28 -04:00
support.rs refactor(events): tidy schema v2 plumbing 2026-04-09 11:42:02 -04:00
system.rs feat(system): add server-backed system commands 2026-04-06 16:10:06 -04:00
system_df.rs test(nextest): share one session server by default 2026-04-07 09:44:34 -04:00
system_events.rs test(nextest): share one session server by default 2026-04-07 09:44:34 -04:00
system_info.rs test(nextest): share one session server by default 2026-04-07 09:44:34 -04:00
system_prune.rs test(cli): narrow system prune coverage for speed 2026-04-07 23:42:15 -04:00
test_panic.rs test: speed up slow default-profile tests and tighten nextest thresholds 2026-04-05 13:15:59 -04:00
top_level.rs Move cli.rs and scenario.rs tests into per-subcommand cmd/ files 2026-03-30 11:37:24 -04:00
uninstall.rs test(cli): add integration tests for fabro uninstall 2026-04-08 16:47:48 -04:00
upgrade.rs refactor(cli): deglobalize server and storage target flags 2026-04-05 16:06:42 -04:00
validate.rs refactor(cli): separate local socket and storage defaults 2026-04-06 11:57:14 -04:00
wait.rs refactor(scratch): remove stale scratch file refs 2026-04-07 20:40:06 -04:00
workflow.rs refactor(cli): deglobalize server and storage target flags 2026-04-05 16:06:42 -04:00
workflow_create.rs refactor(cli): deglobalize server and storage target flags 2026-04-05 16:06:42 -04:00
workflow_list.rs refactor(cli): deglobalize server and storage target flags 2026-04-05 16:06:42 -04:00