@compozy/client 0.6.1 → 0.7.0

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.
@@ -995,6 +995,11 @@ export type BindSessionWorktreeRequest = {
995
995
  expected_worktree_id?: string | null;
996
996
  worktree: string;
997
997
  };
998
+ /**
999
+ * Deprecated: accepted and ignored; remove before v0.8.0.
1000
+ *
1001
+ * @deprecated
1002
+ */
998
1003
  export type BindingsConfig = {
999
1004
  bottom_center: string;
1000
1005
  top_center: string;
@@ -1093,10 +1098,28 @@ export type ChangePatchPayload = {
1093
1098
  export type ChangeSet = {
1094
1099
  client_ids?: Array<string>;
1095
1100
  desktop_ids?: Array<string>;
1101
+ /**
1102
+ * Deprecated: retained for compatibility; removed in v0.8.0. See the window-manager deprecation matrix for its replacement.
1103
+ *
1104
+ * @deprecated
1105
+ */
1096
1106
  group_ids?: Array<string>;
1097
1107
  node_ids?: Array<string>;
1108
+ /**
1109
+ * Deprecated: retained for compatibility; removed in v0.8.0. See the window-manager deprecation matrix for its replacement.
1110
+ *
1111
+ * @deprecated
1112
+ */
1098
1113
  stack_grouped?: Array<string>;
1114
+ /**
1115
+ * Deprecated: retained for compatibility; removed in v0.8.0. See the window-manager deprecation matrix for its replacement.
1116
+ *
1117
+ * @deprecated
1118
+ */
1099
1119
  stack_ungrouped?: Array<string>;
1120
+ tab_ids?: Array<string>;
1121
+ tab_split?: Array<string>;
1122
+ tab_unsplit?: Array<string>;
1100
1123
  window_ids?: Array<string>;
1101
1124
  };
1102
1125
  export type ChangeSidePayload = {
@@ -1405,6 +1428,9 @@ export type ContractWindowManagerClientRegistration = {
1405
1428
  };
1406
1429
  export type ContractWindowManagerClientView = {
1407
1430
  active_desktop_id: string;
1431
+ active_tab: {
1432
+ [key: string]: string;
1433
+ };
1408
1434
  attachment_token?: string;
1409
1435
  client_id: string;
1410
1436
  connected_at: string;
@@ -1415,6 +1441,11 @@ export type ContractWindowManagerClientView = {
1415
1441
  kind: string;
1416
1442
  palette_context: WindowManagerPaletteContext;
1417
1443
  presentation_revision: number;
1444
+ /**
1445
+ * Deprecated: retained for compatibility; removed in v0.8.0. See the window-manager deprecation matrix for its replacement.
1446
+ *
1447
+ * @deprecated
1448
+ */
1418
1449
  stack_active: {
1419
1450
  [key: string]: string;
1420
1451
  };
@@ -1427,7 +1458,7 @@ export type ContractWindowManagerClientsResponse = {
1427
1458
  export type ContractWindowManagerCommandRequest = {
1428
1459
  actor: WindowManagerActor;
1429
1460
  client_id?: string | null;
1430
- command_id: "desktop.create" | "desktop.update" | "desktop.reorder" | "desktop.switch" | "desktop.delete" | "window.open" | "window.navigate" | "window.close" | "window.focus" | "window.move" | "window.resize" | "window.swap" | "window.toggle_floating" | "window.zoom" | "window.stack.group" | "window.stack.reorder" | "window.stack.set_active" | "window.pin" | "window.reopen" | "layout.arrange" | "layout.resize" | "layout.frame_resize" | "layout.balance" | "layout.undo" | "layout.redo" | "layout.replace";
1461
+ command_id: "desktop.create" | "desktop.update" | "desktop.reorder" | "desktop.switch" | "desktop.delete" | "window.open" | "window.navigate" | "window.close" | "window.focus" | "window.move" | "window.resize" | "window.swap" | "window.toggle_floating" | "window.zoom" | "window.stack.group" | "window.stack.reorder" | "window.stack.set_active" | "window.pin" | "window.reopen" | "window.tab.reorder" | "window.tab.activate" | "layout.arrange" | "layout.resize" | "layout.frame_resize" | "layout.balance" | "layout.undo" | "layout.redo" | "layout.replace";
1431
1462
  expected_revision: number;
1432
1463
  origin: string;
1433
1464
  payload: unknown;
@@ -1435,12 +1466,11 @@ export type ContractWindowManagerCommandRequest = {
1435
1466
  workspace_id: string;
1436
1467
  };
1437
1468
  export type ContractWindowManagerDesktop = {
1438
- floating: Array<string>;
1439
- floating_stacks: Array<WindowManagerFloatingStack>;
1440
- groups: Array<ContractWindowManagerLayoutGroup>;
1469
+ active_tab_id: string;
1441
1470
  id: string;
1442
1471
  name: string;
1443
1472
  order: number;
1473
+ tabs: Array<ContractWindowManagerTab>;
1444
1474
  };
1445
1475
  export type ContractWindowManagerErrorPayload = {
1446
1476
  code: "window_manager_workspace_not_found" | "window_manager_revision_conflict" | "window_binding_invalid" | "window_manager_invalid_command" | "window_manager_invalid_topology" | "window_manager_desktop_not_found" | "window_manager_window_not_found" | "window_manager_not_stacked" | "window_manager_window_pinned" | "window_manager_client_not_found" | "window_manager_destination_required" | "window_manager_final_desktop" | "window_manager_history_boundary" | "window_manager_layout_not_found" | "window_manager_slow_consumer" | "window_manager_unavailable";
@@ -1459,11 +1489,6 @@ export type ContractWindowManagerLayoutDocument = {
1459
1489
  };
1460
1490
  workspace_id: string;
1461
1491
  };
1462
- export type ContractWindowManagerLayoutGroup = {
1463
- frame: NormalizedRect;
1464
- id: string;
1465
- root: WindowManagerLayoutNode;
1466
- };
1467
1492
  export type ContractWindowManagerLayoutReplaceRequest = {
1468
1493
  actor: WindowManagerActor;
1469
1494
  client_id?: string | null;
@@ -1478,6 +1503,7 @@ export type ContractWindowManagerLayoutValidationRequest = {
1478
1503
  };
1479
1504
  export type ContractWindowManagerLayoutValidationResponse = {
1480
1505
  diagnostics?: Array<Diagnostic>;
1506
+ document?: ContractWindowManagerLayoutDocument | null;
1481
1507
  valid: boolean;
1482
1508
  workspace_id: string;
1483
1509
  };
@@ -1485,6 +1511,7 @@ export type ContractWindowManagerPreview = {
1485
1511
  changed: boolean;
1486
1512
  changes: ChangeSet;
1487
1513
  client?: ContractWindowManagerClientView | null;
1514
+ deprecations: Array<Deprecation>;
1488
1515
  diagnostics?: Array<Diagnostic>;
1489
1516
  snapshot: ContractWindowManagerSnapshot;
1490
1517
  };
@@ -1492,6 +1519,7 @@ export type ContractWindowManagerResult = {
1492
1519
  applied: boolean;
1493
1520
  changes: ChangeSet;
1494
1521
  client?: ContractWindowManagerClientView | null;
1522
+ deprecations: Array<Deprecation>;
1495
1523
  diagnostics?: Array<Diagnostic>;
1496
1524
  rebased_from?: number;
1497
1525
  snapshot: ContractWindowManagerSnapshot;
@@ -1499,6 +1527,7 @@ export type ContractWindowManagerResult = {
1499
1527
  export type ContractWindowManagerSnapshot = {
1500
1528
  closed_entry_count: number;
1501
1529
  desktops: Array<ContractWindowManagerDesktop>;
1530
+ migration?: MigrationStatus | null;
1502
1531
  overrides: WorkspaceConfig;
1503
1532
  revision: number;
1504
1533
  updated_at: string;
@@ -1508,6 +1537,11 @@ export type ContractWindowManagerSnapshot = {
1508
1537
  };
1509
1538
  workspace_id: string;
1510
1539
  };
1540
+ export type ContractWindowManagerTab = {
1541
+ id: string;
1542
+ pinned: boolean;
1543
+ root: WindowManagerLayoutNode;
1544
+ };
1511
1545
  export type CoordinatorConfigPayload = {
1512
1546
  agent_name: string;
1513
1547
  default_ttl_seconds: number;
@@ -1718,6 +1752,11 @@ export type DaemonIdentityPayload = {
1718
1752
  user_home_dir: string;
1719
1753
  version: string;
1720
1754
  };
1755
+ export type DaemonReadinessPayload = {
1756
+ phase: string;
1757
+ since: string;
1758
+ step?: string;
1759
+ };
1721
1760
  export type DaemonStatusPayload = {
1722
1761
  active_sessions: number;
1723
1762
  gateway?: GatewayStatusPayload | null;
@@ -1725,6 +1764,7 @@ export type DaemonStatusPayload = {
1725
1764
  http_port: number;
1726
1765
  min_app_version: string;
1727
1766
  pid: number;
1767
+ readiness?: DaemonReadinessPayload | null;
1728
1768
  schema_streams: Array<SchemaStreamStatus>;
1729
1769
  socket: string;
1730
1770
  started_at: string;
@@ -1757,6 +1797,13 @@ export type DeleteProfileResponse = {
1757
1797
  export type DeleteResourceRequest = {
1758
1798
  expected_version: number;
1759
1799
  };
1800
+ export type Deprecation = {
1801
+ code: string;
1802
+ message: string;
1803
+ removal_release: string;
1804
+ replacement?: string;
1805
+ surface: string;
1806
+ };
1760
1807
  export type DetailBody = {
1761
1808
  actions?: Array<RowAction>;
1762
1809
  is_loading?: boolean;
@@ -4344,6 +4391,35 @@ export type MetricSpec = {
4344
4391
  direction: "maximize" | "minimize";
4345
4392
  min_delta?: number | null;
4346
4393
  };
4394
+ /**
4395
+ * Layout migration status. A conversion diagnostic is present in error only when state is failed; a successful retry clears error.
4396
+ */
4397
+ export type MigrationStatus = {
4398
+ acknowledged: boolean;
4399
+ at?: string;
4400
+ error?: Diagnostic | null;
4401
+ /**
4402
+ * Topology revision installed on conversion failure; cleared after a successful retry.
4403
+ */
4404
+ failure_revision?: number;
4405
+ from_version?: number;
4406
+ state: "none" | "migrated" | "failed";
4407
+ summary?: MigrationSummary | null;
4408
+ /**
4409
+ * Number of set-aside layout backups currently retained for this profile; omitted when zero.
4410
+ */
4411
+ superseded_backups?: number;
4412
+ };
4413
+ export type MigrationSummary = {
4414
+ desktops: number;
4415
+ floating_to_tabs: number;
4416
+ islands_merged: number;
4417
+ minimized_to_tabs: number;
4418
+ pins_dropped: number;
4419
+ tabs: number;
4420
+ windows: number;
4421
+ zoom_desktops_merged: number;
4422
+ };
4347
4423
  export type ModelCatalogCostPayload = {
4348
4424
  cache_read_per_million?: number | null;
4349
4425
  cache_write_per_million?: number | null;
@@ -4416,11 +4492,21 @@ export type NodeCancellation = {
4416
4492
  export type NodeUsage = {
4417
4493
  tokens: number;
4418
4494
  };
4419
- export type NormalizedRect = {
4420
- height: number;
4421
- width: number;
4422
- x: number;
4423
- y: number;
4495
+ export type OTelSignalStatusPayload = {
4496
+ enabled: boolean;
4497
+ failed_exports: number;
4498
+ last_error_class?: string;
4499
+ last_export_at?: string;
4500
+ };
4501
+ export type OTelStatusPayload = {
4502
+ dropped_spans: number;
4503
+ endpoint_host?: string;
4504
+ forward_to_providers: boolean;
4505
+ metrics: OTelSignalStatusPayload;
4506
+ protocol?: string;
4507
+ sample_ratio: number;
4508
+ state: string;
4509
+ traces: OTelSignalStatusPayload;
4424
4510
  };
4425
4511
  export type ObserveFailureHealthPayload = {
4426
4512
  by_kind?: {
@@ -5170,6 +5256,16 @@ export type RemoveDiscoveredWorktreeRequest = {
5170
5256
  force?: boolean;
5171
5257
  path: string;
5172
5258
  };
5259
+ export type RemoveWorktreesRequest = {
5260
+ delete_branch?: boolean;
5261
+ dry_run?: boolean;
5262
+ force?: boolean;
5263
+ targets: Array<WorktreeRemovalTarget>;
5264
+ };
5265
+ export type RemoveWorktreesResponse = {
5266
+ dry_run: boolean;
5267
+ results: Array<WorktreeRemovalResult>;
5268
+ };
5173
5269
  export type RenameProfilePlan = {
5174
5270
  dormant_placements: Array<ProfilePlacement>;
5175
5271
  machine_folders: Array<string>;
@@ -6441,6 +6537,7 @@ export type SessionPayload = {
6441
6537
  subagent_summary?: SubagentSummaryPayload | null;
6442
6538
  supervision: SupervisionState | null;
6443
6539
  transcript_epoch?: number;
6540
+ tree_parent_session_id?: string;
6444
6541
  type?: "user" | "system" | "coordinator" | "spawned";
6445
6542
  updated_at: string;
6446
6543
  verified?: boolean | null;
@@ -7007,7 +7104,7 @@ export type SettingsHookDeclarationPayload = {
7007
7104
  env?: {
7008
7105
  [key: string]: string;
7009
7106
  };
7010
- event: "agent.instance.created" | "agent.instance.paused" | "agent.instance.resumed" | "agent.instance.archived" | "agent.instance.adopted" | "subagent.settled" | "session.pre_create" | "session.post_create" | "session.pre_resume" | "session.post_resume" | "session.pre_stop" | "session.post_stop" | "session.message_persisted" | "session.runtime_recovery.started" | "session.runtime_recovery.succeeded" | "session.runtime_recovery.exhausted" | "input.pre_submit" | "prompt.post_assemble" | "event.pre_record" | "event.post_record" | "automation.job.pre_fire" | "automation.job.post_fire" | "automation.trigger.pre_fire" | "automation.trigger.post_fire" | "automation.run.completed" | "automation.run.failed" | "agent.pre_start" | "agent.spawned" | "agent.crashed" | "agent.stopped" | "agent.soul.snapshot.resolved" | "agent.soul.mutation.after" | "agent.heartbeat.policy.resolved" | "agent.heartbeat.wake.before" | "agent.heartbeat.wake.after" | "session.health.update.after" | "turn.start" | "turn.end" | "message.start" | "message.delta" | "message.end" | "tool.pre_call" | "tool.post_call" | "tool.post_error" | "permission.request" | "permission.resolved" | "permission.denied" | "context.pre_compact" | "context.post_compact" | "coordinator.pre_spawn" | "coordinator.spawned" | "coordinator.decision" | "coordinator.stopped" | "coordinator.failed" | "task.blocked" | "task.unblocked" | "task.needs_attention" | "task.recovered" | "task.status_changed" | "task.run.enqueued" | "task.run.pre_claim" | "task.run.post_claim" | "task.run.lease_extended" | "task.run.lease_expired" | "task.run.lease_recovered" | "task.run.released" | "task.run.completed" | "task.run.failed" | "loop.started" | "loop.generation.pre" | "loop.generation.post" | "loop.gate.pre" | "loop.gate.post" | "loop.node.terminal" | "loop.terminal" | "spawn.pre_create" | "spawn.created" | "spawn.parent_stopped" | "spawn.ttl_expired" | "spawn.reaped" | "session.attention.changed" | "window_manager.layout.applied" | "window_manager.desktop.created" | "window_manager.desktop.deleted" | "window_manager.window.moved" | "window_manager.window.opened" | "window_manager.window.closed" | "window_manager.stack.grouped" | "window_manager.stack.ungrouped" | "window_manager.stack.activated" | "worktree.pre_create" | "worktree.pre_remove" | "worktree.created" | "worktree.adopted" | "worktree.removed" | "terminal.opened" | "terminal.closed" | "terminal.command_started" | "terminal.command_finished" | "terminal.input_requested" | "terminal.input_provided" | "terminal.recording_started" | "terminal.recording_stopped" | "terminal.subscriber_evicted" | "terminal.limit_rejected" | "agent.instance.proposal.picked";
7107
+ event: "agent.instance.created" | "agent.instance.paused" | "agent.instance.resumed" | "agent.instance.archived" | "agent.instance.adopted" | "subagent.settled" | "session.pre_create" | "session.post_create" | "session.pre_resume" | "session.post_resume" | "session.pre_stop" | "session.post_stop" | "session.message_persisted" | "session.runtime_recovery.started" | "session.runtime_recovery.succeeded" | "session.runtime_recovery.exhausted" | "input.pre_submit" | "prompt.post_assemble" | "event.pre_record" | "event.post_record" | "automation.job.pre_fire" | "automation.job.post_fire" | "automation.trigger.pre_fire" | "automation.trigger.post_fire" | "automation.run.completed" | "automation.run.failed" | "agent.pre_start" | "agent.spawned" | "agent.crashed" | "agent.stopped" | "agent.soul.snapshot.resolved" | "agent.soul.mutation.after" | "agent.heartbeat.policy.resolved" | "agent.heartbeat.wake.before" | "agent.heartbeat.wake.after" | "session.health.update.after" | "turn.start" | "turn.end" | "message.start" | "message.delta" | "message.end" | "tool.pre_call" | "tool.post_call" | "tool.post_error" | "permission.request" | "permission.resolved" | "permission.denied" | "context.pre_compact" | "context.post_compact" | "coordinator.pre_spawn" | "coordinator.spawned" | "coordinator.decision" | "coordinator.stopped" | "coordinator.failed" | "task.blocked" | "task.unblocked" | "task.needs_attention" | "task.recovered" | "task.status_changed" | "task.run.enqueued" | "task.run.pre_claim" | "task.run.post_claim" | "task.run.lease_extended" | "task.run.lease_expired" | "task.run.lease_recovered" | "task.run.released" | "task.run.completed" | "task.run.failed" | "loop.started" | "loop.generation.pre" | "loop.generation.post" | "loop.gate.pre" | "loop.gate.post" | "loop.node.terminal" | "loop.terminal" | "spawn.pre_create" | "spawn.created" | "spawn.parent_stopped" | "spawn.ttl_expired" | "spawn.reaped" | "session.attention.changed" | "window_manager.tab.split" | "window_manager.tab.unsplit" | "window_manager.tab.activated" | "window_manager.layout.applied" | "window_manager.desktop.created" | "window_manager.desktop.deleted" | "window_manager.window.moved" | "window_manager.window.opened" | "window_manager.window.closed" | "window_manager.stack.grouped" | "window_manager.stack.ungrouped" | "window_manager.stack.activated" | "worktree.pre_create" | "worktree.pre_remove" | "worktree.created" | "worktree.adopted" | "worktree.removed" | "terminal.opened" | "terminal.closed" | "terminal.command_started" | "terminal.command_finished" | "terminal.input_requested" | "terminal.input_provided" | "terminal.recording_started" | "terminal.recording_stopped" | "terminal.subscriber_evicted" | "terminal.limit_rejected" | "agent.instance.proposal.picked";
7011
7108
  executor_kind?: "native" | "subprocess" | "wasm";
7012
7109
  matcher: HookMatcher;
7013
7110
  metadata?: {
@@ -7709,6 +7806,11 @@ export type SettingsUpdateRuntimePayload = {
7709
7806
  restored_version: string;
7710
7807
  status: "up-to-date" | "available" | "accepted" | "applying" | "staged" | "updated" | "blocked" | "unsupported" | "failed" | "canceled";
7711
7808
  };
7809
+ /**
7810
+ * Deprecated: accepted and ignored; remove before v0.8.0.
7811
+ *
7812
+ * @deprecated
7813
+ */
7712
7814
  export type SettingsWindowManagerBindingPayload = {
7713
7815
  bottom_center: "none" | "reserved" | "zoom";
7714
7816
  top_center: "none" | "reserved" | "zoom";
@@ -7720,9 +7822,19 @@ export type SettingsWindowManagerCommandPayload = {
7720
7822
  title: string;
7721
7823
  };
7722
7824
  export type SettingsWindowManagerConfigPayload = {
7825
+ /**
7826
+ * Deprecated: accepted and ignored; remove before v0.8.0.
7827
+ *
7828
+ * @deprecated
7829
+ */
7723
7830
  bindings: SettingsWindowManagerBindingPayload;
7724
7831
  closed_entry_limit: number;
7725
7832
  desktop_transition: "slide" | "crossfade" | "instant";
7833
+ /**
7834
+ * Deprecated: accepted and ignored; remove before v0.8.0.
7835
+ *
7836
+ * @deprecated
7837
+ */
7726
7838
  drag_away_policy: "window" | "group";
7727
7839
  focus_follows_pointer: boolean;
7728
7840
  focus_policy: "click_directional" | "directional";
@@ -7731,15 +7843,33 @@ export type SettingsWindowManagerConfigPayload = {
7731
7843
  global_shortcuts: {
7732
7844
  [key: string]: string;
7733
7845
  };
7846
+ /**
7847
+ * Deprecated: accepted and ignored; remove before v0.8.0.
7848
+ *
7849
+ * @deprecated
7850
+ */
7734
7851
  group_move_modifier: "alt" | "control" | "meta" | "shift" | "none";
7735
7852
  history_limit: number;
7736
7853
  nav_stack_limit: number;
7854
+ /**
7855
+ * Deprecated value "floating": translated to "tab"; removed in v0.8.0.
7856
+ */
7737
7857
  new_window_policy: "floating" | "beside_focus" | "tab";
7858
+ /**
7859
+ * Deprecated: accepted and ignored; remove before v0.8.0.
7860
+ *
7861
+ * @deprecated
7862
+ */
7738
7863
  raise_on_focus: boolean;
7739
7864
  shortcuts: {
7740
7865
  [key: string]: string | Array<string>;
7741
7866
  };
7742
7867
  small_viewport_policy: "stack" | "reject";
7868
+ /**
7869
+ * Deprecated: accepted and ignored; remove before v0.8.0.
7870
+ *
7871
+ * @deprecated
7872
+ */
7743
7873
  snap: SettingsWindowManagerSnapPayload;
7744
7874
  swap_modifier: "alt" | "control" | "meta" | "shift" | "none";
7745
7875
  };
@@ -7808,6 +7938,11 @@ export type SettingsWindowManagerResponse = {
7808
7938
  section: "general" | "persona" | "roles" | "skills" | "automation" | "window-manager" | "cmd-palette" | "attention" | "shell" | "provider-usage" | "observability" | "hooks-extensions" | "marketplace";
7809
7939
  workspace_id?: string;
7810
7940
  };
7941
+ /**
7942
+ * Deprecated: accepted and ignored; remove before v0.8.0.
7943
+ *
7944
+ * @deprecated
7945
+ */
7811
7946
  export type SettingsWindowManagerSnapPayload = {
7812
7947
  corner_reach: number;
7813
7948
  edge_band: number;
@@ -7956,6 +8091,11 @@ export type SkillVerificationWarningPayload = {
7956
8091
  export type SkillsResponse = {
7957
8092
  skills: Array<SkillPayload>;
7958
8093
  };
8094
+ /**
8095
+ * Deprecated: accepted and ignored; remove before v0.8.0.
8096
+ *
8097
+ * @deprecated
8098
+ */
7959
8099
  export type SnapConfig = {
7960
8100
  corner_reach: number;
7961
8101
  edge_band: number;
@@ -8033,6 +8173,7 @@ export type StatusPayload = {
8033
8173
  health: ObserveHealthPayload;
8034
8174
  log_tail: LogTailStatusPayload;
8035
8175
  mcp_servers?: Array<MCPServerStatusPayload>;
8176
+ otel?: OTelStatusPayload | null;
8036
8177
  providers?: Array<ProviderStatusPayload>;
8037
8178
  schema_version: string;
8038
8179
  sessions: SessionAggregatePayload;
@@ -9884,22 +10025,20 @@ export type WindowManagerClientContextInput = {
9884
10025
  scope_global: boolean;
9885
10026
  workspace_trusted: boolean;
9886
10027
  };
9887
- export type WindowManagerFloatingStack = {
9888
- active_id?: string | null;
9889
- id: string;
9890
- minimized: boolean;
9891
- rect: NormalizedRect;
9892
- window_ids: Array<string>;
9893
- };
9894
10028
  export type WindowManagerLayoutNode = {
9895
- active_id?: string | null;
9896
10029
  axis?: "horizontal" | "vertical";
9897
10030
  children?: Array<WindowManagerLayoutNode>;
9898
10031
  id: string;
9899
- kind: "leaf" | "split" | "stack";
10032
+ kind: "leaf" | "split";
9900
10033
  weights?: Array<number>;
9901
10034
  window_id?: string | null;
9902
- window_ids?: Array<string>;
10035
+ };
10036
+ export type WindowManagerMigrationRequest = {
10037
+ action: "ack" | "retry";
10038
+ /**
10039
+ * Replace the layout on retry when it changed after failure.
10040
+ */
10041
+ replace?: boolean;
9903
10042
  };
9904
10043
  export type WindowManagerPaletteContext = {
9905
10044
  desktop_window_count: number;
@@ -9907,8 +10046,19 @@ export type WindowManagerPaletteContext = {
9907
10046
  focused_session_state?: string;
9908
10047
  scope_global: boolean;
9909
10048
  shell_desktop: boolean;
10049
+ /**
10050
+ * Deprecated: retained for compatibility; removed in v0.8.0. See the window-manager deprecation matrix for its replacement.
10051
+ *
10052
+ * @deprecated
10053
+ */
9910
10054
  window_floating: boolean;
9911
10055
  window_focused: boolean;
10056
+ window_in_split: boolean;
10057
+ /**
10058
+ * Deprecated: retained for compatibility; removed in v0.8.0. See the window-manager deprecation matrix for its replacement.
10059
+ *
10060
+ * @deprecated
10061
+ */
9912
10062
  window_stacked: boolean;
9913
10063
  workspace_trusted: boolean;
9914
10064
  };
@@ -9916,33 +10066,18 @@ export type WindowManagerRebaseGuard = {
9916
10066
  boundary_index?: number | null;
9917
10067
  source_node_id?: string | null;
9918
10068
  split_id?: string | null;
10069
+ tab_id?: string | null;
9919
10070
  target_node_id?: string | null;
9920
10071
  window_id?: string | null;
9921
10072
  };
9922
- export type WindowManagerReturnAnchor = {
9923
- child_index?: number | null;
9924
- desktop_id: string;
9925
- group_id?: string | null;
9926
- neighbor_ids?: Array<string>;
9927
- parent_split_id?: string | null;
9928
- source_group?: ContractWindowManagerLayoutGroup | null;
9929
- source_revision: number;
9930
- weight?: number | null;
9931
- zoomed?: boolean;
9932
- };
9933
10073
  export type WindowManagerWindow = {
9934
10074
  app: string;
9935
10075
  desktop_id: string;
9936
- floating_rect: NormalizedRect;
9937
10076
  id: string;
9938
10077
  instance_key?: string | null;
9939
- minimized: boolean;
9940
10078
  nav_stack: Array<RouteIntent>;
9941
- pinned: boolean;
9942
- placement: "tiled" | "stacked" | "floating";
9943
- return_anchor?: WindowManagerReturnAnchor | null;
9944
10079
  route: RouteIntent;
9945
- zoomed: boolean;
10080
+ tab_id: string;
9946
10081
  };
9947
10082
  export type WorkCandidate = {
9948
10083
  branch: string;
@@ -9990,23 +10125,51 @@ export type WorkspaceAttentionSummaryPayload = {
9990
10125
  workspace_id: string;
9991
10126
  };
9992
10127
  export type WorkspaceConfig = {
10128
+ /**
10129
+ * Deprecated: accepted and ignored; remove before v0.8.0.
10130
+ *
10131
+ * @deprecated
10132
+ */
9993
10133
  bindings?: BindingsConfig | null;
9994
10134
  closed_entry_limit?: number | null;
9995
10135
  desktop_transition?: string | null;
10136
+ /**
10137
+ * Deprecated: accepted and ignored; remove before v0.8.0.
10138
+ *
10139
+ * @deprecated
10140
+ */
9996
10141
  drag_away_policy?: string | null;
9997
10142
  focus_follows_pointer?: boolean | null;
9998
10143
  focus_policy?: string | null;
9999
10144
  focus_wrap?: boolean | null;
10000
10145
  gaps?: GapsConfig | null;
10146
+ /**
10147
+ * Deprecated: accepted and ignored; remove before v0.8.0.
10148
+ *
10149
+ * @deprecated
10150
+ */
10001
10151
  group_move_modifier?: string | null;
10002
10152
  history_limit?: number | null;
10003
10153
  nav_stack_limit?: number | null;
10154
+ /**
10155
+ * Deprecated value "floating": translated to "tab"; removed in v0.8.0.
10156
+ */
10004
10157
  new_window_policy?: string | null;
10158
+ /**
10159
+ * Deprecated: accepted and ignored; remove before v0.8.0.
10160
+ *
10161
+ * @deprecated
10162
+ */
10005
10163
  raise_on_focus?: boolean | null;
10006
10164
  shortcuts?: {
10007
10165
  [key: string]: string | Array<string>;
10008
10166
  };
10009
10167
  small_viewport_policy?: string | null;
10168
+ /**
10169
+ * Deprecated: accepted and ignored; remove before v0.8.0.
10170
+ *
10171
+ * @deprecated
10172
+ */
10010
10173
  snap?: SnapConfig | null;
10011
10174
  swap_modifier?: string | null;
10012
10175
  };
@@ -10198,6 +10361,15 @@ export type WorktreeRemovalRefusalPayload = {
10198
10361
  error?: string;
10199
10362
  risk: WorktreeRemovalRiskPayload;
10200
10363
  };
10364
+ export type WorktreeRemovalResult = {
10365
+ branch?: WorktreeBranchOutcomePayload | null;
10366
+ code?: string;
10367
+ error?: string;
10368
+ risk?: WorktreeRemovalRiskPayload | null;
10369
+ state: string;
10370
+ target: WorktreeRemovalTarget;
10371
+ worktree_id?: string;
10372
+ };
10201
10373
  export type WorktreeRemovalRiskPayload = {
10202
10374
  changed_files: number;
10203
10375
  deletions: number;
@@ -10206,6 +10378,11 @@ export type WorktreeRemovalRiskPayload = {
10206
10378
  leftover_files: number;
10207
10379
  unpushed_commits: number;
10208
10380
  };
10381
+ export type WorktreeRemovalTarget = {
10382
+ expect_stale?: boolean;
10383
+ path?: string;
10384
+ ref?: string;
10385
+ };
10209
10386
  export type WorktreeRepoPayload = {
10210
10387
  diagnostic?: string;
10211
10388
  git_available: boolean;
@@ -15089,6 +15266,10 @@ export type TriggerAutomationJobData = {
15089
15266
  url: "/api/automation/jobs/{id}/trigger";
15090
15267
  };
15091
15268
  export type TriggerAutomationJobErrors = {
15269
+ /**
15270
+ * Invalid wait or completion budget
15271
+ */
15272
+ 400: ErrorPayload;
15092
15273
  /**
15093
15274
  * Automation job not found
15094
15275
  */
@@ -15233,6 +15414,48 @@ export type GetAutomationRunResponses = {
15233
15414
  200: RunResponse;
15234
15415
  };
15235
15416
  export type GetAutomationRunResponse = GetAutomationRunResponses[keyof GetAutomationRunResponses];
15417
+ export type CancelAutomationRunData = {
15418
+ body?: never;
15419
+ path: {
15420
+ /**
15421
+ * Automation run id
15422
+ */
15423
+ id: string;
15424
+ };
15425
+ query?: {
15426
+ /**
15427
+ * Act as this profile by name
15428
+ */
15429
+ profile?: string;
15430
+ };
15431
+ url: "/api/automation/runs/{id}/cancel";
15432
+ };
15433
+ export type CancelAutomationRunErrors = {
15434
+ /**
15435
+ * Automation run not found
15436
+ */
15437
+ 404: ErrorPayload;
15438
+ /**
15439
+ * Run may still be executing or changed concurrently
15440
+ */
15441
+ 409: ErrorPayload;
15442
+ /**
15443
+ * Internal server error
15444
+ */
15445
+ 500: ErrorPayload;
15446
+ /**
15447
+ * Automation manager is not configured
15448
+ */
15449
+ 503: ErrorPayload;
15450
+ };
15451
+ export type CancelAutomationRunError = CancelAutomationRunErrors[keyof CancelAutomationRunErrors];
15452
+ export type CancelAutomationRunResponses = {
15453
+ /**
15454
+ * Canceled run or unchanged terminal run
15455
+ */
15456
+ 200: RunResponse;
15457
+ };
15458
+ export type CancelAutomationRunResponse = CancelAutomationRunResponses[keyof CancelAutomationRunResponses];
15236
15459
  export type ListAutomationSuggestionsAggregateData = {
15237
15460
  body?: never;
15238
15461
  path?: never;
@@ -17601,7 +17824,7 @@ export type GetHookCatalogData = {
17601
17824
  /**
17602
17825
  * Hook event name
17603
17826
  */
17604
- event?: "agent.instance.created" | "agent.instance.paused" | "agent.instance.resumed" | "agent.instance.archived" | "agent.instance.adopted" | "subagent.settled" | "session.pre_create" | "session.post_create" | "session.pre_resume" | "session.post_resume" | "session.pre_stop" | "session.post_stop" | "session.message_persisted" | "session.runtime_recovery.started" | "session.runtime_recovery.succeeded" | "session.runtime_recovery.exhausted" | "input.pre_submit" | "prompt.post_assemble" | "event.pre_record" | "event.post_record" | "automation.job.pre_fire" | "automation.job.post_fire" | "automation.trigger.pre_fire" | "automation.trigger.post_fire" | "automation.run.completed" | "automation.run.failed" | "agent.pre_start" | "agent.spawned" | "agent.crashed" | "agent.stopped" | "agent.soul.snapshot.resolved" | "agent.soul.mutation.after" | "agent.heartbeat.policy.resolved" | "agent.heartbeat.wake.before" | "agent.heartbeat.wake.after" | "session.health.update.after" | "turn.start" | "turn.end" | "message.start" | "message.delta" | "message.end" | "tool.pre_call" | "tool.post_call" | "tool.post_error" | "permission.request" | "permission.resolved" | "permission.denied" | "context.pre_compact" | "context.post_compact" | "coordinator.pre_spawn" | "coordinator.spawned" | "coordinator.decision" | "coordinator.stopped" | "coordinator.failed" | "task.blocked" | "task.unblocked" | "task.needs_attention" | "task.recovered" | "task.status_changed" | "task.run.enqueued" | "task.run.pre_claim" | "task.run.post_claim" | "task.run.lease_extended" | "task.run.lease_expired" | "task.run.lease_recovered" | "task.run.released" | "task.run.completed" | "task.run.failed" | "loop.started" | "loop.generation.pre" | "loop.generation.post" | "loop.gate.pre" | "loop.gate.post" | "loop.node.terminal" | "loop.terminal" | "spawn.pre_create" | "spawn.created" | "spawn.parent_stopped" | "spawn.ttl_expired" | "spawn.reaped" | "session.attention.changed" | "window_manager.layout.applied" | "window_manager.desktop.created" | "window_manager.desktop.deleted" | "window_manager.window.moved" | "window_manager.window.opened" | "window_manager.window.closed" | "window_manager.stack.grouped" | "window_manager.stack.ungrouped" | "window_manager.stack.activated" | "worktree.pre_create" | "worktree.pre_remove" | "worktree.created" | "worktree.adopted" | "worktree.removed" | "terminal.opened" | "terminal.closed" | "terminal.command_started" | "terminal.command_finished" | "terminal.input_requested" | "terminal.input_provided" | "terminal.recording_started" | "terminal.recording_stopped" | "terminal.subscriber_evicted" | "terminal.limit_rejected" | "agent.instance.proposal.picked";
17827
+ event?: "agent.instance.created" | "agent.instance.paused" | "agent.instance.resumed" | "agent.instance.archived" | "agent.instance.adopted" | "subagent.settled" | "session.pre_create" | "session.post_create" | "session.pre_resume" | "session.post_resume" | "session.pre_stop" | "session.post_stop" | "session.message_persisted" | "session.runtime_recovery.started" | "session.runtime_recovery.succeeded" | "session.runtime_recovery.exhausted" | "input.pre_submit" | "prompt.post_assemble" | "event.pre_record" | "event.post_record" | "automation.job.pre_fire" | "automation.job.post_fire" | "automation.trigger.pre_fire" | "automation.trigger.post_fire" | "automation.run.completed" | "automation.run.failed" | "agent.pre_start" | "agent.spawned" | "agent.crashed" | "agent.stopped" | "agent.soul.snapshot.resolved" | "agent.soul.mutation.after" | "agent.heartbeat.policy.resolved" | "agent.heartbeat.wake.before" | "agent.heartbeat.wake.after" | "session.health.update.after" | "turn.start" | "turn.end" | "message.start" | "message.delta" | "message.end" | "tool.pre_call" | "tool.post_call" | "tool.post_error" | "permission.request" | "permission.resolved" | "permission.denied" | "context.pre_compact" | "context.post_compact" | "coordinator.pre_spawn" | "coordinator.spawned" | "coordinator.decision" | "coordinator.stopped" | "coordinator.failed" | "task.blocked" | "task.unblocked" | "task.needs_attention" | "task.recovered" | "task.status_changed" | "task.run.enqueued" | "task.run.pre_claim" | "task.run.post_claim" | "task.run.lease_extended" | "task.run.lease_expired" | "task.run.lease_recovered" | "task.run.released" | "task.run.completed" | "task.run.failed" | "loop.started" | "loop.generation.pre" | "loop.generation.post" | "loop.gate.pre" | "loop.gate.post" | "loop.node.terminal" | "loop.terminal" | "spawn.pre_create" | "spawn.created" | "spawn.parent_stopped" | "spawn.ttl_expired" | "spawn.reaped" | "session.attention.changed" | "window_manager.tab.split" | "window_manager.tab.unsplit" | "window_manager.tab.activated" | "window_manager.layout.applied" | "window_manager.desktop.created" | "window_manager.desktop.deleted" | "window_manager.window.moved" | "window_manager.window.opened" | "window_manager.window.closed" | "window_manager.stack.grouped" | "window_manager.stack.ungrouped" | "window_manager.stack.activated" | "worktree.pre_create" | "worktree.pre_remove" | "worktree.created" | "worktree.adopted" | "worktree.removed" | "terminal.opened" | "terminal.closed" | "terminal.command_started" | "terminal.command_finished" | "terminal.input_requested" | "terminal.input_provided" | "terminal.recording_started" | "terminal.recording_stopped" | "terminal.subscriber_evicted" | "terminal.limit_rejected" | "agent.instance.proposal.picked";
17605
17828
  /**
17606
17829
  * Hook source
17607
17830
  */
@@ -18874,7 +19097,7 @@ export type AcknowledgeAttentionNotificationsErrors = {
18874
19097
  export type AcknowledgeAttentionNotificationsError = AcknowledgeAttentionNotificationsErrors[keyof AcknowledgeAttentionNotificationsErrors];
18875
19098
  export type AcknowledgeAttentionNotificationsResponses = {
18876
19099
  /**
18877
- * Receipts committed atomically; source state unchanged
19100
+ * Receipts committed atomically; bell layout-upgrade notices also acknowledged durably
18878
19101
  */
18879
19102
  204: void;
18880
19103
  };
@@ -21253,6 +21476,10 @@ export type ListSessionsData = {
21253
21476
  * Filter by exact root session id (includes the root itself)
21254
21477
  */
21255
21478
  root?: string;
21479
+ /**
21480
+ * Leave out this session and every session rooted at it (for example, a session's own tree)
21481
+ */
21482
+ exclude_root?: string;
21256
21483
  /**
21257
21484
  * Filter by exact bound worktree id
21258
21485
  */
@@ -21466,6 +21693,10 @@ export type ListSessionFacetsData = {
21466
21693
  * Filter by exact root session id (includes the root itself)
21467
21694
  */
21468
21695
  root?: string;
21696
+ /**
21697
+ * Leave out this session and every session rooted at it (for example, a session's own tree)
21698
+ */
21699
+ exclude_root?: string;
21469
21700
  /**
21470
21701
  * Only count sessions eligible for explicit attach
21471
21702
  */
@@ -21992,6 +22223,10 @@ export type TriggerSettingsRestartErrors = {
21992
22223
  * Forbidden
21993
22224
  */
21994
22225
  403: ErrorPayload;
22226
+ /**
22227
+ * Replacement runtime failed its restart pre-flight; the running daemon was kept
22228
+ */
22229
+ 409: ErrorPayload;
21995
22230
  /**
21996
22231
  * Internal server error
21997
22232
  */
@@ -28171,6 +28406,10 @@ export type DeleteWorkspaceErrors = {
28171
28406
  * Internal server error
28172
28407
  */
28173
28408
  500: ErrorPayload;
28409
+ /**
28410
+ * Removal held by a desktop layout that could not be read; retry finishes it
28411
+ */
28412
+ 503: ErrorPayload;
28174
28413
  };
28175
28414
  export type DeleteWorkspaceError = DeleteWorkspaceErrors[keyof DeleteWorkspaceErrors];
28176
28415
  export type DeleteWorkspaceResponses = {
@@ -28654,6 +28893,72 @@ export type FindFilesResponses = {
28654
28893
  200: FileFindResponse;
28655
28894
  };
28656
28895
  export type FindFilesResponse = FindFilesResponses[keyof FindFilesResponses];
28896
+ export type ReadFileBytesData = {
28897
+ body?: never;
28898
+ path: {
28899
+ /**
28900
+ * Workspace id
28901
+ */
28902
+ workspace_id: string;
28903
+ /**
28904
+ * Root-relative file path; its slashes are path segments
28905
+ */
28906
+ path: string;
28907
+ };
28908
+ query?: {
28909
+ /**
28910
+ * Read one profile's rows by name
28911
+ */
28912
+ profile?: string;
28913
+ /**
28914
+ * Read the owner-labeled all-profiles aggregate
28915
+ */
28916
+ all_profiles?: boolean;
28917
+ };
28918
+ url: "/api/workspaces/{workspace_id}/files/raw/{path}";
28919
+ };
28920
+ export type ReadFileBytesErrors = {
28921
+ /**
28922
+ * File operation failed
28923
+ */
28924
+ 400: ErrorPayload;
28925
+ /**
28926
+ * File operation failed
28927
+ */
28928
+ 403: ErrorPayload;
28929
+ /**
28930
+ * File operation failed
28931
+ */
28932
+ 404: ErrorPayload;
28933
+ /**
28934
+ * File operation failed
28935
+ */
28936
+ 409: ErrorPayload;
28937
+ /**
28938
+ * Requested range not satisfiable
28939
+ */
28940
+ 416: unknown;
28941
+ /**
28942
+ * File operation failed
28943
+ */
28944
+ 422: ErrorPayload;
28945
+ /**
28946
+ * File operation failed
28947
+ */
28948
+ 500: ErrorPayload;
28949
+ };
28950
+ export type ReadFileBytesError = ReadFileBytesErrors[keyof ReadFileBytesErrors];
28951
+ export type ReadFileBytesResponses = {
28952
+ /**
28953
+ * File bytes
28954
+ */
28955
+ 200: Blob | File;
28956
+ /**
28957
+ * Requested byte range
28958
+ */
28959
+ 206: Blob | File;
28960
+ };
28961
+ export type ReadFileBytesResponse = ReadFileBytesResponses[keyof ReadFileBytesResponses];
28657
28962
  export type SearchFileContentsData = {
28658
28963
  body?: never;
28659
28964
  path: {
@@ -28748,7 +29053,7 @@ export type GetHookRunsData = {
28748
29053
  /**
28749
29054
  * Hook event name
28750
29055
  */
28751
- event?: "agent.instance.created" | "agent.instance.paused" | "agent.instance.resumed" | "agent.instance.archived" | "agent.instance.adopted" | "subagent.settled" | "session.pre_create" | "session.post_create" | "session.pre_resume" | "session.post_resume" | "session.pre_stop" | "session.post_stop" | "session.message_persisted" | "session.runtime_recovery.started" | "session.runtime_recovery.succeeded" | "session.runtime_recovery.exhausted" | "input.pre_submit" | "prompt.post_assemble" | "event.pre_record" | "event.post_record" | "automation.job.pre_fire" | "automation.job.post_fire" | "automation.trigger.pre_fire" | "automation.trigger.post_fire" | "automation.run.completed" | "automation.run.failed" | "agent.pre_start" | "agent.spawned" | "agent.crashed" | "agent.stopped" | "agent.soul.snapshot.resolved" | "agent.soul.mutation.after" | "agent.heartbeat.policy.resolved" | "agent.heartbeat.wake.before" | "agent.heartbeat.wake.after" | "session.health.update.after" | "turn.start" | "turn.end" | "message.start" | "message.delta" | "message.end" | "tool.pre_call" | "tool.post_call" | "tool.post_error" | "permission.request" | "permission.resolved" | "permission.denied" | "context.pre_compact" | "context.post_compact" | "coordinator.pre_spawn" | "coordinator.spawned" | "coordinator.decision" | "coordinator.stopped" | "coordinator.failed" | "task.blocked" | "task.unblocked" | "task.needs_attention" | "task.recovered" | "task.status_changed" | "task.run.enqueued" | "task.run.pre_claim" | "task.run.post_claim" | "task.run.lease_extended" | "task.run.lease_expired" | "task.run.lease_recovered" | "task.run.released" | "task.run.completed" | "task.run.failed" | "loop.started" | "loop.generation.pre" | "loop.generation.post" | "loop.gate.pre" | "loop.gate.post" | "loop.node.terminal" | "loop.terminal" | "spawn.pre_create" | "spawn.created" | "spawn.parent_stopped" | "spawn.ttl_expired" | "spawn.reaped" | "session.attention.changed" | "window_manager.layout.applied" | "window_manager.desktop.created" | "window_manager.desktop.deleted" | "window_manager.window.moved" | "window_manager.window.opened" | "window_manager.window.closed" | "window_manager.stack.grouped" | "window_manager.stack.ungrouped" | "window_manager.stack.activated" | "worktree.pre_create" | "worktree.pre_remove" | "worktree.created" | "worktree.adopted" | "worktree.removed" | "terminal.opened" | "terminal.closed" | "terminal.command_started" | "terminal.command_finished" | "terminal.input_requested" | "terminal.input_provided" | "terminal.recording_started" | "terminal.recording_stopped" | "terminal.subscriber_evicted" | "terminal.limit_rejected" | "agent.instance.proposal.picked";
29056
+ event?: "agent.instance.created" | "agent.instance.paused" | "agent.instance.resumed" | "agent.instance.archived" | "agent.instance.adopted" | "subagent.settled" | "session.pre_create" | "session.post_create" | "session.pre_resume" | "session.post_resume" | "session.pre_stop" | "session.post_stop" | "session.message_persisted" | "session.runtime_recovery.started" | "session.runtime_recovery.succeeded" | "session.runtime_recovery.exhausted" | "input.pre_submit" | "prompt.post_assemble" | "event.pre_record" | "event.post_record" | "automation.job.pre_fire" | "automation.job.post_fire" | "automation.trigger.pre_fire" | "automation.trigger.post_fire" | "automation.run.completed" | "automation.run.failed" | "agent.pre_start" | "agent.spawned" | "agent.crashed" | "agent.stopped" | "agent.soul.snapshot.resolved" | "agent.soul.mutation.after" | "agent.heartbeat.policy.resolved" | "agent.heartbeat.wake.before" | "agent.heartbeat.wake.after" | "session.health.update.after" | "turn.start" | "turn.end" | "message.start" | "message.delta" | "message.end" | "tool.pre_call" | "tool.post_call" | "tool.post_error" | "permission.request" | "permission.resolved" | "permission.denied" | "context.pre_compact" | "context.post_compact" | "coordinator.pre_spawn" | "coordinator.spawned" | "coordinator.decision" | "coordinator.stopped" | "coordinator.failed" | "task.blocked" | "task.unblocked" | "task.needs_attention" | "task.recovered" | "task.status_changed" | "task.run.enqueued" | "task.run.pre_claim" | "task.run.post_claim" | "task.run.lease_extended" | "task.run.lease_expired" | "task.run.lease_recovered" | "task.run.released" | "task.run.completed" | "task.run.failed" | "loop.started" | "loop.generation.pre" | "loop.generation.post" | "loop.gate.pre" | "loop.gate.post" | "loop.node.terminal" | "loop.terminal" | "spawn.pre_create" | "spawn.created" | "spawn.parent_stopped" | "spawn.ttl_expired" | "spawn.reaped" | "session.attention.changed" | "window_manager.tab.split" | "window_manager.tab.unsplit" | "window_manager.tab.activated" | "window_manager.layout.applied" | "window_manager.desktop.created" | "window_manager.desktop.deleted" | "window_manager.window.moved" | "window_manager.window.opened" | "window_manager.window.closed" | "window_manager.stack.grouped" | "window_manager.stack.ungrouped" | "window_manager.stack.activated" | "worktree.pre_create" | "worktree.pre_remove" | "worktree.created" | "worktree.adopted" | "worktree.removed" | "terminal.opened" | "terminal.closed" | "terminal.command_started" | "terminal.command_finished" | "terminal.input_requested" | "terminal.input_provided" | "terminal.recording_started" | "terminal.recording_stopped" | "terminal.subscriber_evicted" | "terminal.limit_rejected" | "agent.instance.proposal.picked";
28752
29057
  /**
28753
29058
  * Hook execution outcome
28754
29059
  */
@@ -31365,6 +31670,10 @@ export type ListWorkspaceSessionsData = {
31365
31670
  * Filter by exact root session id (includes the root itself)
31366
31671
  */
31367
31672
  root?: string;
31673
+ /**
31674
+ * Leave out this session and every session rooted at it (for example, a session's own tree)
31675
+ */
31676
+ exclude_root?: string;
31368
31677
  /**
31369
31678
  * Filter by exact bound worktree id
31370
31679
  */
@@ -32965,6 +33274,76 @@ export type FindSessionFilesResponses = {
32965
33274
  200: FileFindResponse;
32966
33275
  };
32967
33276
  export type FindSessionFilesResponse = FindSessionFilesResponses[keyof FindSessionFilesResponses];
33277
+ export type ReadSessionFileBytesData = {
33278
+ body?: never;
33279
+ path: {
33280
+ /**
33281
+ * Workspace id
33282
+ */
33283
+ workspace_id: string;
33284
+ /**
33285
+ * Session id
33286
+ */
33287
+ session_id: string;
33288
+ /**
33289
+ * Root-relative file path; its slashes are path segments
33290
+ */
33291
+ path: string;
33292
+ };
33293
+ query?: {
33294
+ /**
33295
+ * Read one profile's rows by name
33296
+ */
33297
+ profile?: string;
33298
+ /**
33299
+ * Read the owner-labeled all-profiles aggregate
33300
+ */
33301
+ all_profiles?: boolean;
33302
+ };
33303
+ url: "/api/workspaces/{workspace_id}/sessions/{session_id}/files/raw/{path}";
33304
+ };
33305
+ export type ReadSessionFileBytesErrors = {
33306
+ /**
33307
+ * File operation failed
33308
+ */
33309
+ 400: ErrorPayload;
33310
+ /**
33311
+ * File operation failed
33312
+ */
33313
+ 403: ErrorPayload;
33314
+ /**
33315
+ * File operation failed
33316
+ */
33317
+ 404: ErrorPayload;
33318
+ /**
33319
+ * File operation failed
33320
+ */
33321
+ 409: ErrorPayload;
33322
+ /**
33323
+ * Requested range not satisfiable
33324
+ */
33325
+ 416: unknown;
33326
+ /**
33327
+ * File operation failed
33328
+ */
33329
+ 422: ErrorPayload;
33330
+ /**
33331
+ * File operation failed
33332
+ */
33333
+ 500: ErrorPayload;
33334
+ };
33335
+ export type ReadSessionFileBytesError = ReadSessionFileBytesErrors[keyof ReadSessionFileBytesErrors];
33336
+ export type ReadSessionFileBytesResponses = {
33337
+ /**
33338
+ * File bytes
33339
+ */
33340
+ 200: Blob | File;
33341
+ /**
33342
+ * Requested byte range
33343
+ */
33344
+ 206: Blob | File;
33345
+ };
33346
+ export type ReadSessionFileBytesResponse = ReadSessionFileBytesResponses[keyof ReadSessionFileBytesResponses];
32968
33347
  export type SearchSessionFileContentsData = {
32969
33348
  body?: never;
32970
33349
  path: {
@@ -37025,7 +37404,7 @@ export type ReadToolArtifactData = {
37025
37404
  */
37026
37405
  offset?: number;
37027
37406
  /**
37028
- * Page size in bytes; defaults to and is capped at 65536
37407
+ * Page size in bytes; defaults to 32768 and is capped at 65536
37029
37408
  */
37030
37409
  limit?: number;
37031
37410
  /**
@@ -37580,11 +37959,106 @@ export type ValidateWindowManagerLayoutErrors = {
37580
37959
  export type ValidateWindowManagerLayoutError = ValidateWindowManagerLayoutErrors[keyof ValidateWindowManagerLayoutErrors];
37581
37960
  export type ValidateWindowManagerLayoutResponses = {
37582
37961
  /**
37583
- * Validation result
37962
+ * Validation diagnostics and the canonical v6 document when valid
37584
37963
  */
37585
37964
  200: ContractWindowManagerLayoutValidationResponse;
37586
37965
  };
37587
37966
  export type ValidateWindowManagerLayoutResponse = ValidateWindowManagerLayoutResponses[keyof ValidateWindowManagerLayoutResponses];
37967
+ export type GetWindowManagerMigrationData = {
37968
+ body?: never;
37969
+ path: {
37970
+ /**
37971
+ * Workspace id
37972
+ */
37973
+ workspace_id: string;
37974
+ };
37975
+ query?: {
37976
+ /**
37977
+ * Act as this profile by name
37978
+ */
37979
+ profile?: string;
37980
+ };
37981
+ url: "/api/workspaces/{workspace_id}/window-manager/migration";
37982
+ };
37983
+ export type GetWindowManagerMigrationErrors = {
37984
+ /**
37985
+ * Invalid window workspace binding
37986
+ */
37987
+ 400: ContractWindowManagerErrorPayload;
37988
+ /**
37989
+ * Workspace or referenced entity not found
37990
+ */
37991
+ 404: ContractWindowManagerErrorPayload;
37992
+ /**
37993
+ * Revision or state conflict
37994
+ */
37995
+ 409: ContractWindowManagerErrorPayload;
37996
+ /**
37997
+ * Invalid window-manager request
37998
+ */
37999
+ 422: ContractWindowManagerErrorPayload;
38000
+ /**
38001
+ * Window manager unavailable
38002
+ */
38003
+ 503: ContractWindowManagerErrorPayload;
38004
+ };
38005
+ export type GetWindowManagerMigrationError = GetWindowManagerMigrationErrors[keyof GetWindowManagerMigrationErrors];
38006
+ export type GetWindowManagerMigrationResponses = {
38007
+ /**
38008
+ * OK
38009
+ */
38010
+ 200: MigrationStatus;
38011
+ };
38012
+ export type GetWindowManagerMigrationResponse = GetWindowManagerMigrationResponses[keyof GetWindowManagerMigrationResponses];
38013
+ export type UpdateWindowManagerMigrationData = {
38014
+ /**
38015
+ * JSON request body
38016
+ */
38017
+ body: WindowManagerMigrationRequest;
38018
+ path: {
38019
+ /**
38020
+ * Workspace id
38021
+ */
38022
+ workspace_id: string;
38023
+ };
38024
+ query?: {
38025
+ /**
38026
+ * Act as this profile by name
38027
+ */
38028
+ profile?: string;
38029
+ };
38030
+ url: "/api/workspaces/{workspace_id}/window-manager/migration";
38031
+ };
38032
+ export type UpdateWindowManagerMigrationErrors = {
38033
+ /**
38034
+ * Invalid window workspace binding
38035
+ */
38036
+ 400: ContractWindowManagerErrorPayload;
38037
+ /**
38038
+ * Workspace or referenced entity not found
38039
+ */
38040
+ 404: ContractWindowManagerErrorPayload;
38041
+ /**
38042
+ * Revision or state conflict
38043
+ */
38044
+ 409: ContractWindowManagerErrorPayload;
38045
+ /**
38046
+ * Invalid window-manager request
38047
+ */
38048
+ 422: ContractWindowManagerErrorPayload;
38049
+ /**
38050
+ * Window manager unavailable
38051
+ */
38052
+ 503: ContractWindowManagerErrorPayload;
38053
+ };
38054
+ export type UpdateWindowManagerMigrationError = UpdateWindowManagerMigrationErrors[keyof UpdateWindowManagerMigrationErrors];
38055
+ export type UpdateWindowManagerMigrationResponses = {
38056
+ /**
38057
+ * OK
38058
+ */
38059
+ 200: MigrationStatus;
38060
+ };
38061
+ export type UpdateWindowManagerMigrationResponse = UpdateWindowManagerMigrationResponses[keyof UpdateWindowManagerMigrationResponses];
37588
38062
  export type PreviewWindowManagerCommandData = {
37589
38063
  /**
37590
38064
  * JSON request body
@@ -37847,6 +38321,63 @@ export type RemoveDiscoveredWorktreeResponses = {
37847
38321
  204: void;
37848
38322
  };
37849
38323
  export type RemoveDiscoveredWorktreeResponse = RemoveDiscoveredWorktreeResponses[keyof RemoveDiscoveredWorktreeResponses];
38324
+ export type RemoveWorktreesData = {
38325
+ /**
38326
+ * JSON request body
38327
+ */
38328
+ body: RemoveWorktreesRequest;
38329
+ path: {
38330
+ /**
38331
+ * Workspace id or path
38332
+ */
38333
+ workspace_id: string;
38334
+ };
38335
+ query?: {
38336
+ /**
38337
+ * Act as this profile by name. If omitted, operator requests infer the target record owner; authenticated agents remain scoped to their session profile.
38338
+ */
38339
+ profile?: string;
38340
+ };
38341
+ url: "/api/workspaces/{workspace_id}/worktrees/remove";
38342
+ };
38343
+ export type RemoveWorktreesErrors = {
38344
+ /**
38345
+ * Invalid worktree request
38346
+ */
38347
+ 400: ErrorPayload;
38348
+ /**
38349
+ * Forbidden
38350
+ */
38351
+ 403: ErrorPayload;
38352
+ /**
38353
+ * Worktree or workspace not found
38354
+ */
38355
+ 404: ErrorPayload;
38356
+ /**
38357
+ * Worktree operation conflict
38358
+ */
38359
+ 409: ErrorPayload;
38360
+ /**
38361
+ * Invalid worktree configuration
38362
+ */
38363
+ 422: ErrorPayload;
38364
+ /**
38365
+ * Internal server error
38366
+ */
38367
+ 500: ErrorPayload;
38368
+ /**
38369
+ * Worktree service is unavailable
38370
+ */
38371
+ 503: ErrorPayload;
38372
+ };
38373
+ export type RemoveWorktreesError = RemoveWorktreesErrors[keyof RemoveWorktreesErrors];
38374
+ export type RemoveWorktreesResponses = {
38375
+ /**
38376
+ * Per-target removal results or dry-run risk; inspect every result
38377
+ */
38378
+ 200: RemoveWorktreesResponse;
38379
+ };
38380
+ export type RemoveWorktreesResponse2 = RemoveWorktreesResponses[keyof RemoveWorktreesResponses];
37850
38381
  export type RemoveWorktreeData = {
37851
38382
  body?: never;
37852
38383
  path: {
@@ -38264,6 +38795,76 @@ export type PrepareWorktreeExitPlanResponses = {
38264
38795
  200: WorktreeExitPlanResponse;
38265
38796
  };
38266
38797
  export type PrepareWorktreeExitPlanResponse = PrepareWorktreeExitPlanResponses[keyof PrepareWorktreeExitPlanResponses];
38798
+ export type ReadWorktreeFileBytesData = {
38799
+ body?: never;
38800
+ path: {
38801
+ /**
38802
+ * Workspace id
38803
+ */
38804
+ workspace_id: string;
38805
+ /**
38806
+ * Worktree id
38807
+ */
38808
+ worktree_id: string;
38809
+ /**
38810
+ * Root-relative file path; its slashes are path segments
38811
+ */
38812
+ path: string;
38813
+ };
38814
+ query?: {
38815
+ /**
38816
+ * Read one profile's rows by name
38817
+ */
38818
+ profile?: string;
38819
+ /**
38820
+ * Read the owner-labeled all-profiles aggregate
38821
+ */
38822
+ all_profiles?: boolean;
38823
+ };
38824
+ url: "/api/workspaces/{workspace_id}/worktrees/{worktree_id}/files/raw/{path}";
38825
+ };
38826
+ export type ReadWorktreeFileBytesErrors = {
38827
+ /**
38828
+ * File operation failed
38829
+ */
38830
+ 400: ErrorPayload;
38831
+ /**
38832
+ * File operation failed
38833
+ */
38834
+ 403: ErrorPayload;
38835
+ /**
38836
+ * File operation failed
38837
+ */
38838
+ 404: ErrorPayload;
38839
+ /**
38840
+ * File operation failed
38841
+ */
38842
+ 409: ErrorPayload;
38843
+ /**
38844
+ * Requested range not satisfiable
38845
+ */
38846
+ 416: unknown;
38847
+ /**
38848
+ * File operation failed
38849
+ */
38850
+ 422: ErrorPayload;
38851
+ /**
38852
+ * File operation failed
38853
+ */
38854
+ 500: ErrorPayload;
38855
+ };
38856
+ export type ReadWorktreeFileBytesError = ReadWorktreeFileBytesErrors[keyof ReadWorktreeFileBytesErrors];
38857
+ export type ReadWorktreeFileBytesResponses = {
38858
+ /**
38859
+ * File bytes
38860
+ */
38861
+ 200: Blob | File;
38862
+ /**
38863
+ * Requested byte range
38864
+ */
38865
+ 206: Blob | File;
38866
+ };
38867
+ export type ReadWorktreeFileBytesResponse = ReadWorktreeFileBytesResponses[keyof ReadWorktreeFileBytesResponses];
38267
38868
  export type GetWorktreeStatusData = {
38268
38869
  body?: never;
38269
38870
  path: {