@compozy/client 0.6.2 → 0.7.1

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.
@@ -3242,6 +3242,41 @@ export interface paths {
3242
3242
  patch?: never;
3243
3243
  trace?: never;
3244
3244
  };
3245
+ "/api/sessions/history-cleanup": {
3246
+ parameters: {
3247
+ query?: never;
3248
+ header?: never;
3249
+ path?: never;
3250
+ cookie?: never;
3251
+ };
3252
+ /** Get the selected profile's running or most recent archived-history cleanup */
3253
+ get: operations["getSessionHistoryCleanup"];
3254
+ put?: never;
3255
+ /** Preview (dry_run) or start the background deletion of archived sessions archived before a cutoff: whole threads, or only their child sessions or subagents */
3256
+ post: operations["planSessionHistoryCleanup"];
3257
+ delete?: never;
3258
+ options?: never;
3259
+ head?: never;
3260
+ patch?: never;
3261
+ trace?: never;
3262
+ };
3263
+ "/api/sessions/history-cleanup/stop": {
3264
+ parameters: {
3265
+ query?: never;
3266
+ header?: never;
3267
+ path?: never;
3268
+ cookie?: never;
3269
+ };
3270
+ get?: never;
3271
+ put?: never;
3272
+ /** Stop the selected profile's running cleanup; sessions already deleted stay deleted */
3273
+ post: operations["stopSessionHistoryCleanup"];
3274
+ delete?: never;
3275
+ options?: never;
3276
+ head?: never;
3277
+ patch?: never;
3278
+ trace?: never;
3279
+ };
3245
3280
  "/api/sessions/{session_id}": {
3246
3281
  parameters: {
3247
3282
  query?: never;
@@ -3642,6 +3677,24 @@ export interface paths {
3642
3677
  patch?: never;
3643
3678
  trace?: never;
3644
3679
  };
3680
+ "/api/settings/mcp-servers/{name}/approval": {
3681
+ parameters: {
3682
+ query?: never;
3683
+ header?: never;
3684
+ path?: never;
3685
+ cookie?: never;
3686
+ };
3687
+ get?: never;
3688
+ /** Approve an exact workspace MCP definition */
3689
+ put: operations["putSettingsMCPApproval"];
3690
+ post?: never;
3691
+ /** Revoke workspace MCP consent */
3692
+ delete: operations["deleteSettingsMCPApproval"];
3693
+ options?: never;
3694
+ head?: never;
3695
+ patch?: never;
3696
+ trace?: never;
3697
+ };
3645
3698
  "/api/settings/mcp-servers/{name}/auth/begin": {
3646
3699
  parameters: {
3647
3700
  query?: never;
@@ -3869,6 +3922,40 @@ export interface paths {
3869
3922
  patch: operations["updateSettingsRoles"];
3870
3923
  trace?: never;
3871
3924
  };
3925
+ "/api/settings/runtime-mcp-servers": {
3926
+ parameters: {
3927
+ query?: never;
3928
+ header?: never;
3929
+ path?: never;
3930
+ cookie?: never;
3931
+ };
3932
+ /** List runtime MCP servers from native configuration files */
3933
+ get: operations["listRuntimeMCPServers"];
3934
+ put?: never;
3935
+ post?: never;
3936
+ delete?: never;
3937
+ options?: never;
3938
+ head?: never;
3939
+ patch?: never;
3940
+ trace?: never;
3941
+ };
3942
+ "/api/settings/runtime-mcp-servers/{runtime}/{name}/import": {
3943
+ parameters: {
3944
+ query?: never;
3945
+ header?: never;
3946
+ path?: never;
3947
+ cookie?: never;
3948
+ };
3949
+ get?: never;
3950
+ put?: never;
3951
+ /** Copy a runtime MCP server into CompozyOS */
3952
+ post: operations["importRuntimeMCPServer"];
3953
+ delete?: never;
3954
+ options?: never;
3955
+ head?: never;
3956
+ patch?: never;
3957
+ trace?: never;
3958
+ };
3872
3959
  "/api/settings/shell": {
3873
3960
  parameters: {
3874
3961
  query?: never;
@@ -5452,6 +5539,23 @@ export interface paths {
5452
5539
  patch?: never;
5453
5540
  trace?: never;
5454
5541
  };
5542
+ "/api/workspaces/{workspace_id}/files/raw/{path}": {
5543
+ parameters: {
5544
+ query?: never;
5545
+ header?: never;
5546
+ path?: never;
5547
+ cookie?: never;
5548
+ };
5549
+ /** Stream project file bytes */
5550
+ get: operations["readFileBytes"];
5551
+ put?: never;
5552
+ post?: never;
5553
+ delete?: never;
5554
+ options?: never;
5555
+ head?: never;
5556
+ patch?: never;
5557
+ trace?: never;
5558
+ };
5455
5559
  "/api/workspaces/{workspace_id}/files/search": {
5456
5560
  parameters: {
5457
5561
  query?: never;
@@ -6518,6 +6622,23 @@ export interface paths {
6518
6622
  patch?: never;
6519
6623
  trace?: never;
6520
6624
  };
6625
+ "/api/workspaces/{workspace_id}/sessions/{session_id}/files/raw/{path}": {
6626
+ parameters: {
6627
+ query?: never;
6628
+ header?: never;
6629
+ path?: never;
6630
+ cookie?: never;
6631
+ };
6632
+ /** Stream session file bytes */
6633
+ get: operations["readSessionFileBytes"];
6634
+ put?: never;
6635
+ post?: never;
6636
+ delete?: never;
6637
+ options?: never;
6638
+ head?: never;
6639
+ patch?: never;
6640
+ trace?: never;
6641
+ };
6521
6642
  "/api/workspaces/{workspace_id}/sessions/{session_id}/files/search": {
6522
6643
  parameters: {
6523
6644
  query?: never;
@@ -6725,6 +6846,23 @@ export interface paths {
6725
6846
  patch?: never;
6726
6847
  trace?: never;
6727
6848
  };
6849
+ "/api/workspaces/{workspace_id}/sessions/{session_id}/mcp": {
6850
+ parameters: {
6851
+ query?: never;
6852
+ header?: never;
6853
+ path?: never;
6854
+ cookie?: never;
6855
+ };
6856
+ /** Read session MCP availability without discovery */
6857
+ get: operations["getSessionMCP"];
6858
+ put?: never;
6859
+ post?: never;
6860
+ delete?: never;
6861
+ options?: never;
6862
+ head?: never;
6863
+ patch?: never;
6864
+ trace?: never;
6865
+ };
6728
6866
  "/api/workspaces/{workspace_id}/sessions/{session_id}/monitors": {
6729
6867
  parameters: {
6730
6868
  query?: never;
@@ -7353,7 +7491,8 @@ export interface paths {
7353
7491
  get: operations["getSubagent"];
7354
7492
  put?: never;
7355
7493
  post?: never;
7356
- delete?: never;
7494
+ /** Delete a delegated subagent and its child session */
7495
+ delete: operations["deleteSubagent"];
7357
7496
  options?: never;
7358
7497
  head?: never;
7359
7498
  patch?: never;
@@ -7806,6 +7945,24 @@ export interface paths {
7806
7945
  patch?: never;
7807
7946
  trace?: never;
7808
7947
  };
7948
+ "/api/workspaces/{workspace_id}/window-manager/migration": {
7949
+ parameters: {
7950
+ query?: never;
7951
+ header?: never;
7952
+ path?: never;
7953
+ cookie?: never;
7954
+ };
7955
+ /** Read window layout migration status */
7956
+ get: operations["getWindowManagerMigration"];
7957
+ put?: never;
7958
+ /** Acknowledge or retry window layout migration */
7959
+ post: operations["updateWindowManagerMigration"];
7960
+ delete?: never;
7961
+ options?: never;
7962
+ head?: never;
7963
+ patch?: never;
7964
+ trace?: never;
7965
+ };
7809
7966
  "/api/workspaces/{workspace_id}/window-manager/preview": {
7810
7967
  parameters: {
7811
7968
  query?: never;
@@ -7892,6 +8049,23 @@ export interface paths {
7892
8049
  patch?: never;
7893
8050
  trace?: never;
7894
8051
  };
8052
+ "/api/workspaces/{workspace_id}/worktrees/remove": {
8053
+ parameters: {
8054
+ query?: never;
8055
+ header?: never;
8056
+ path?: never;
8057
+ cookie?: never;
8058
+ };
8059
+ get?: never;
8060
+ put?: never;
8061
+ /** Remove multiple worktrees or preview per-target removal risk */
8062
+ post: operations["removeWorktrees"];
8063
+ delete?: never;
8064
+ options?: never;
8065
+ head?: never;
8066
+ patch?: never;
8067
+ trace?: never;
8068
+ };
7895
8069
  "/api/workspaces/{workspace_id}/worktrees/{worktree_id}": {
7896
8070
  parameters: {
7897
8071
  query?: never;
@@ -8012,6 +8186,23 @@ export interface paths {
8012
8186
  patch?: never;
8013
8187
  trace?: never;
8014
8188
  };
8189
+ "/api/workspaces/{workspace_id}/worktrees/{worktree_id}/files/raw/{path}": {
8190
+ parameters: {
8191
+ query?: never;
8192
+ header?: never;
8193
+ path?: never;
8194
+ cookie?: never;
8195
+ };
8196
+ /** Stream worktree file bytes */
8197
+ get: operations["readWorktreeFileBytes"];
8198
+ put?: never;
8199
+ post?: never;
8200
+ delete?: never;
8201
+ options?: never;
8202
+ head?: never;
8203
+ patch?: never;
8204
+ trace?: never;
8205
+ };
8015
8206
  "/api/workspaces/{workspace_id}/worktrees/{worktree_id}/status": {
8016
8207
  parameters: {
8017
8208
  query?: never;
@@ -8700,6 +8891,7 @@ export interface components {
8700
8891
  };
8701
8892
  AgentResponse: {
8702
8893
  agent: components["schemas"]["AgentPayload"];
8894
+ warnings?: string[];
8703
8895
  };
8704
8896
  AgentSessionMetricsPayload: {
8705
8897
  active: number;
@@ -9160,6 +9352,10 @@ export interface components {
9160
9352
  expected_worktree_id?: string | null;
9161
9353
  worktree: string;
9162
9354
  };
9355
+ /**
9356
+ * @deprecated
9357
+ * @description Deprecated: accepted and ignored; remove before v0.8.0.
9358
+ */
9163
9359
  BindingsConfig: {
9164
9360
  bottom_center: string;
9165
9361
  top_center: string;
@@ -9272,10 +9468,25 @@ export interface components {
9272
9468
  ChangeSet: {
9273
9469
  client_ids?: string[];
9274
9470
  desktop_ids?: string[];
9471
+ /**
9472
+ * @deprecated
9473
+ * @description Deprecated: retained for compatibility; removed in v0.8.0. See the window-manager deprecation matrix for its replacement.
9474
+ */
9275
9475
  group_ids?: string[];
9276
9476
  node_ids?: string[];
9477
+ /**
9478
+ * @deprecated
9479
+ * @description Deprecated: retained for compatibility; removed in v0.8.0. See the window-manager deprecation matrix for its replacement.
9480
+ */
9277
9481
  stack_grouped?: string[];
9482
+ /**
9483
+ * @deprecated
9484
+ * @description Deprecated: retained for compatibility; removed in v0.8.0. See the window-manager deprecation matrix for its replacement.
9485
+ */
9278
9486
  stack_ungrouped?: string[];
9487
+ tab_ids?: string[];
9488
+ tab_split?: string[];
9489
+ tab_unsplit?: string[];
9279
9490
  window_ids?: string[];
9280
9491
  };
9281
9492
  ChangeSidePayload: {
@@ -9654,6 +9865,9 @@ export interface components {
9654
9865
  };
9655
9866
  ContractWindowManagerClientView: {
9656
9867
  active_desktop_id: string;
9868
+ active_tab: {
9869
+ [key: string]: string;
9870
+ };
9657
9871
  attachment_token?: string;
9658
9872
  client_id: string;
9659
9873
  /** Format: date-time */
@@ -9665,6 +9879,10 @@ export interface components {
9665
9879
  kind: string;
9666
9880
  palette_context: components["schemas"]["WindowManagerPaletteContext"];
9667
9881
  presentation_revision: number;
9882
+ /**
9883
+ * @deprecated
9884
+ * @description Deprecated: retained for compatibility; removed in v0.8.0. See the window-manager deprecation matrix for its replacement.
9885
+ */
9668
9886
  stack_active: {
9669
9887
  [key: string]: string;
9670
9888
  };
@@ -9698,6 +9916,8 @@ export interface components {
9698
9916
  | "window.stack.set_active"
9699
9917
  | "window.pin"
9700
9918
  | "window.reopen"
9919
+ | "window.tab.reorder"
9920
+ | "window.tab.activate"
9701
9921
  | "layout.arrange"
9702
9922
  | "layout.resize"
9703
9923
  | "layout.frame_resize"
@@ -9712,12 +9932,11 @@ export interface components {
9712
9932
  workspace_id: string;
9713
9933
  };
9714
9934
  ContractWindowManagerDesktop: {
9715
- floating: string[];
9716
- floating_stacks: components["schemas"]["WindowManagerFloatingStack"][];
9717
- groups: components["schemas"]["ContractWindowManagerLayoutGroup"][];
9935
+ active_tab_id: string;
9718
9936
  id: string;
9719
9937
  name: string;
9720
9938
  order: number;
9939
+ tabs: components["schemas"]["ContractWindowManagerTab"][];
9721
9940
  };
9722
9941
  ContractWindowManagerErrorFrame: {
9723
9942
  error: components["schemas"]["ContractWindowManagerErrorPayload"];
@@ -9771,11 +9990,6 @@ export interface components {
9771
9990
  };
9772
9991
  workspace_id: string;
9773
9992
  };
9774
- ContractWindowManagerLayoutGroup: {
9775
- frame: components["schemas"]["NormalizedRect"];
9776
- id: string;
9777
- root: components["schemas"]["WindowManagerLayoutNode"];
9778
- };
9779
9993
  ContractWindowManagerLayoutReplaceRequest: {
9780
9994
  actor: components["schemas"]["WindowManagerActor"];
9781
9995
  client_id?: string | null;
@@ -9790,6 +10004,7 @@ export interface components {
9790
10004
  };
9791
10005
  ContractWindowManagerLayoutValidationResponse: {
9792
10006
  diagnostics?: components["schemas"]["Diagnostic"][];
10007
+ document?: components["schemas"]["ContractWindowManagerLayoutDocument"] | null;
9793
10008
  valid: boolean;
9794
10009
  workspace_id: string;
9795
10010
  };
@@ -9797,6 +10012,7 @@ export interface components {
9797
10012
  changed: boolean;
9798
10013
  changes: components["schemas"]["ChangeSet"];
9799
10014
  client?: components["schemas"]["ContractWindowManagerClientView"] | null;
10015
+ deprecations: components["schemas"]["Deprecation"][];
9800
10016
  diagnostics?: components["schemas"]["Diagnostic"][];
9801
10017
  snapshot: components["schemas"]["ContractWindowManagerSnapshot"];
9802
10018
  };
@@ -9804,6 +10020,7 @@ export interface components {
9804
10020
  applied: boolean;
9805
10021
  changes: components["schemas"]["ChangeSet"];
9806
10022
  client?: components["schemas"]["ContractWindowManagerClientView"] | null;
10023
+ deprecations: components["schemas"]["Deprecation"][];
9807
10024
  diagnostics?: components["schemas"]["Diagnostic"][];
9808
10025
  rebased_from?: number;
9809
10026
  snapshot: components["schemas"]["ContractWindowManagerSnapshot"];
@@ -9811,6 +10028,7 @@ export interface components {
9811
10028
  ContractWindowManagerSnapshot: {
9812
10029
  closed_entry_count: number;
9813
10030
  desktops: components["schemas"]["ContractWindowManagerDesktop"][];
10031
+ migration?: components["schemas"]["MigrationStatus"] | null;
9814
10032
  overrides: components["schemas"]["WorkspaceConfig"];
9815
10033
  revision: number;
9816
10034
  /** Format: date-time */
@@ -9829,6 +10047,11 @@ export interface components {
9829
10047
  type: "snapshot";
9830
10048
  workspace_id: string;
9831
10049
  };
10050
+ ContractWindowManagerTab: {
10051
+ id: string;
10052
+ pinned: boolean;
10053
+ root: components["schemas"]["WindowManagerLayoutNode"];
10054
+ };
9832
10055
  CoordinatorConfigPayload: {
9833
10056
  agent_name: string;
9834
10057
  /** Format: int64 */
@@ -10107,6 +10330,13 @@ export interface components {
10107
10330
  /** Format: int64 */
10108
10331
  expected_version: number;
10109
10332
  };
10333
+ Deprecation: {
10334
+ code: string;
10335
+ message: string;
10336
+ removal_release: string;
10337
+ replacement?: string;
10338
+ surface: string;
10339
+ };
10110
10340
  DetailBody: {
10111
10341
  actions?: components["schemas"]["RowAction"][];
10112
10342
  is_loading?: boolean;
@@ -10278,6 +10508,7 @@ export interface components {
10278
10508
  };
10279
10509
  ErrorPayload: {
10280
10510
  blockers?: components["schemas"]["WorkspaceArchiveBlocker"][];
10511
+ client_message_id?: string;
10281
10512
  code?: string;
10282
10513
  config_path?: string;
10283
10514
  current_turn_id?: string;
@@ -10286,6 +10517,8 @@ export interface components {
10286
10517
  };
10287
10518
  diagnostic?: components["schemas"]["DiagnosticItem"] | null;
10288
10519
  error: string;
10520
+ provider_error?: string;
10521
+ retryable?: boolean;
10289
10522
  unknown_keys?: string[];
10290
10523
  };
10291
10524
  ExecutionPolicy: {
@@ -12123,6 +12356,8 @@ export interface components {
12123
12356
  /** @description Profile name. Omitted for a local operator keeps the installation available to all profiles. */
12124
12357
  profile?: string;
12125
12358
  ref: string;
12359
+ /** @description Replace the installed extension of the same name. Applies to local_path installs only, since published sources replace implicitly. The previous version stays installed only when the replacement fails before the reinstall transaction completes; a failure after it returns, such as enable failing, does not restore it. A marketplace-owned name is refused with extension_name_conflict. Replacing a package attached outside the caller's workspace requires operator authority. */
12360
+ replace?: boolean;
12126
12361
  /**
12127
12362
  * @description Overrides manifest server defaults. Mixed defaults require an explicit scope. A workspace default requires a workspace-bound caller or workspace_id.
12128
12363
  * @enum {string}
@@ -12141,6 +12376,11 @@ export interface components {
12141
12376
  enable_error?: components["schemas"]["ExtensionEnableError"] | null;
12142
12377
  extension: components["schemas"]["ExtensionPayload"];
12143
12378
  };
12379
+ Inventory: {
12380
+ /** Format: date-time */
12381
+ generated_at: string;
12382
+ runtimes: components["schemas"]["Snapshot"][];
12383
+ };
12144
12384
  /** @enum {string} */
12145
12385
  IssueSeverity: "error" | "warning" | "warn" | "info";
12146
12386
  JobPayload: {
@@ -13270,6 +13510,20 @@ export interface components {
13270
13510
  registration?: string;
13271
13511
  scopes?: string[];
13272
13512
  };
13513
+ MCPReloadRecord: {
13514
+ /** Format: date-time */
13515
+ at: string;
13516
+ outcome: string;
13517
+ reason: string;
13518
+ };
13519
+ MCPServerRow: {
13520
+ callable_count: number;
13521
+ name: string;
13522
+ owner: string;
13523
+ reason: string;
13524
+ state: string;
13525
+ tool_count: number;
13526
+ };
13273
13527
  MCPServerStatusPayload: {
13274
13528
  auth_status?: string;
13275
13529
  configured: boolean;
@@ -13285,6 +13539,11 @@ export interface components {
13285
13539
  transport?: string;
13286
13540
  workspace_id?: string;
13287
13541
  };
13542
+ MCPSummary: {
13543
+ attention: number;
13544
+ pending_reload: boolean;
13545
+ usable: number;
13546
+ };
13288
13547
  ManagedExtensionRemovePayload: {
13289
13548
  data_path?: string;
13290
13549
  name: string;
@@ -13493,6 +13752,34 @@ export interface components {
13493
13752
  /** Format: double */
13494
13753
  min_delta?: number | null;
13495
13754
  };
13755
+ /** @description Layout migration status. A conversion diagnostic is present in error only when state is failed; a successful retry clears error. */
13756
+ MigrationStatus: {
13757
+ acknowledged: boolean;
13758
+ /** Format: date-time */
13759
+ at?: string;
13760
+ error?: components["schemas"]["Diagnostic"] | null;
13761
+ /**
13762
+ * Format: uint64
13763
+ * @description Topology revision installed on conversion failure; cleared after a successful retry.
13764
+ */
13765
+ failure_revision?: number;
13766
+ from_version?: number;
13767
+ /** @enum {string} */
13768
+ state: "none" | "migrated" | "failed";
13769
+ summary?: components["schemas"]["MigrationSummary"] | null;
13770
+ /** @description Number of set-aside layout backups currently retained for this profile; omitted when zero. */
13771
+ superseded_backups?: number;
13772
+ };
13773
+ MigrationSummary: {
13774
+ desktops: number;
13775
+ floating_to_tabs: number;
13776
+ islands_merged: number;
13777
+ minimized_to_tabs: number;
13778
+ pins_dropped: number;
13779
+ tabs: number;
13780
+ windows: number;
13781
+ zoom_desktops_merged: number;
13782
+ };
13496
13783
  ModelCatalogCostPayload: {
13497
13784
  /** Format: double */
13498
13785
  cache_read_per_million?: number | null;
@@ -13574,6 +13861,10 @@ export interface components {
13574
13861
  /** Format: int64 */
13575
13862
  tokens: number;
13576
13863
  };
13864
+ /**
13865
+ * @deprecated
13866
+ * @description Deprecated: retained for compatibility; removed in v0.8.0. See the window-manager deprecation matrix for its replacement.
13867
+ */
13577
13868
  NormalizedRect: {
13578
13869
  /** Format: double */
13579
13870
  height: number;
@@ -14584,6 +14875,16 @@ export interface components {
14584
14875
  force?: boolean;
14585
14876
  path: string;
14586
14877
  };
14878
+ RemoveWorktreesRequest: {
14879
+ delete_branch?: boolean;
14880
+ dry_run?: boolean;
14881
+ force?: boolean;
14882
+ targets: components["schemas"]["WorktreeRemovalTarget"][];
14883
+ };
14884
+ RemoveWorktreesResponse: {
14885
+ dry_run: boolean;
14886
+ results: components["schemas"]["WorktreeRemovalResult"][];
14887
+ };
14587
14888
  RenameProfilePlan: {
14588
14889
  dormant_placements: components["schemas"]["ProfilePlacement"][];
14589
14890
  machine_folders: string[];
@@ -15124,11 +15425,35 @@ export interface components {
15124
15425
  max_runtime_seconds: number;
15125
15426
  summary_max_bytes: number;
15126
15427
  };
15428
+ RuntimeMCPImportRequest: {
15429
+ name?: string;
15430
+ profile?: string;
15431
+ /** @enum {string} */
15432
+ scope?: "user" | "profile" | "workspace" | "agent";
15433
+ workspace_id?: string;
15434
+ };
15435
+ RuntimeMCPImportResponse: {
15436
+ mcp_server: components["schemas"]["SettingsMCPServerItemPayload"];
15437
+ notes: string[];
15438
+ partial: boolean;
15439
+ source: components["schemas"]["Server"];
15440
+ warnings?: string[];
15441
+ };
15442
+ RuntimeMCPRow: {
15443
+ name: string;
15444
+ scope: string;
15445
+ state: string;
15446
+ transport: string;
15447
+ };
15127
15448
  RuntimeMatch: {
15128
15449
  complexity?: string;
15129
15450
  id?: string;
15130
15451
  type?: string;
15131
15452
  };
15453
+ RuntimeMode: {
15454
+ can_disable: boolean;
15455
+ mode: string;
15456
+ };
15132
15457
  RuntimePolicy: {
15133
15458
  /** @enum {string} */
15134
15459
  mode: "default" | "evidence";
@@ -15304,6 +15629,24 @@ export interface components {
15304
15629
  SendPromptResultResponse: {
15305
15630
  prompt: components["schemas"]["SendPromptResultPayload"];
15306
15631
  };
15632
+ Server: {
15633
+ also_in_compozy: boolean;
15634
+ approval: string;
15635
+ auth: string;
15636
+ copy_blocked_reason: string;
15637
+ copyable: boolean;
15638
+ definition_digest: string;
15639
+ enabled_in_runtime: boolean;
15640
+ env_keys: string[];
15641
+ header_keys: string[];
15642
+ name: string;
15643
+ runtime: string;
15644
+ scope: string;
15645
+ source_label: string;
15646
+ source_path: string;
15647
+ target: string;
15648
+ transport: string;
15649
+ };
15307
15650
  SessionActivityHealthPayload: {
15308
15651
  current_tool?: string;
15309
15652
  /** Format: date-time */
@@ -15695,6 +16038,7 @@ export interface components {
15695
16038
  SessionDeriveErrorPayload: {
15696
16039
  blockers?: components["schemas"]["WorkspaceArchiveBlocker"][];
15697
16040
  child_session_id?: string;
16041
+ client_message_id?: string;
15698
16042
  code?: string;
15699
16043
  config_path?: string;
15700
16044
  current_turn_id?: string;
@@ -15703,6 +16047,8 @@ export interface components {
15703
16047
  };
15704
16048
  diagnostic?: components["schemas"]["DiagnosticItem"] | null;
15705
16049
  error: string;
16050
+ provider_error?: string;
16051
+ retryable?: boolean;
15706
16052
  unknown_keys?: string[];
15707
16053
  };
15708
16054
  SessionDerivePreviewResponse: {
@@ -15890,6 +16236,88 @@ export interface components {
15890
16236
  SessionHealthResponse: {
15891
16237
  health: components["schemas"]["SessionHealthPayload"];
15892
16238
  };
16239
+ SessionHistoryCleanupChoices: {
16240
+ children: number;
16241
+ everything: number;
16242
+ subagents: number;
16243
+ };
16244
+ SessionHistoryCleanupCounts: {
16245
+ children: number;
16246
+ sessions: number;
16247
+ subagents: number;
16248
+ total: number;
16249
+ };
16250
+ SessionHistoryCleanupFailure: {
16251
+ code: string;
16252
+ message: string;
16253
+ session_id: string;
16254
+ title: string;
16255
+ workspace_id: string;
16256
+ };
16257
+ SessionHistoryCleanupPlan: {
16258
+ /** Format: date-time */
16259
+ archived_before?: string | null;
16260
+ choices: components["schemas"]["SessionHistoryCleanupChoices"];
16261
+ /** Format: date-time */
16262
+ counted_at: string;
16263
+ counts: components["schemas"]["SessionHistoryCleanupCounts"];
16264
+ kept_live: number;
16265
+ threads: number;
16266
+ workspaces: components["schemas"]["SessionHistoryCleanupWorkspace"][];
16267
+ };
16268
+ SessionHistoryCleanupPreviewResponse: {
16269
+ plan: components["schemas"]["SessionHistoryCleanupPlan"];
16270
+ };
16271
+ SessionHistoryCleanupRequest: {
16272
+ all_workspaces?: boolean;
16273
+ /** Format: date-time */
16274
+ archived_before?: string | null;
16275
+ /** Format: date-time */
16276
+ counted_at?: string | null;
16277
+ delete: components["schemas"]["SessionHistoryCleanupSelection"];
16278
+ dry_run?: boolean;
16279
+ older_than_days?: number | null;
16280
+ session_ids?: string[];
16281
+ workspace_id?: string;
16282
+ };
16283
+ SessionHistoryCleanupRun: {
16284
+ all_workspaces?: boolean;
16285
+ /** Format: date-time */
16286
+ archived_before?: string | null;
16287
+ /** Format: date-time */
16288
+ counted_at: string;
16289
+ delete: components["schemas"]["SessionHistoryCleanupSelection"];
16290
+ deleted: number;
16291
+ done: number;
16292
+ failed_threads: number;
16293
+ failures: components["schemas"]["SessionHistoryCleanupFailure"][];
16294
+ /** Format: date-time */
16295
+ finished_at?: string | null;
16296
+ id: string;
16297
+ profile_id: string;
16298
+ skipped: number;
16299
+ /** Format: date-time */
16300
+ started_at: string;
16301
+ state: string;
16302
+ total: number;
16303
+ workspace_id?: string;
16304
+ };
16305
+ SessionHistoryCleanupRunResponse: {
16306
+ run: components["schemas"]["SessionHistoryCleanupRun"] | null;
16307
+ };
16308
+ SessionHistoryCleanupSelection: {
16309
+ children: boolean;
16310
+ everything: boolean;
16311
+ subagents: boolean;
16312
+ };
16313
+ SessionHistoryCleanupStartResponse: {
16314
+ plan: components["schemas"]["SessionHistoryCleanupPlan"];
16315
+ run: components["schemas"]["SessionHistoryCleanupRun"];
16316
+ };
16317
+ SessionHistoryCleanupWorkspace: {
16318
+ total: number;
16319
+ workspace_id: string;
16320
+ };
15893
16321
  SessionHistoryResponse: {
15894
16322
  history: components["schemas"]["TurnHistoryPayload"][];
15895
16323
  };
@@ -16008,6 +16436,17 @@ export interface components {
16008
16436
  pull_requests: number;
16009
16437
  total: number;
16010
16438
  };
16439
+ SessionMCP: {
16440
+ attention: number;
16441
+ compozy_servers: components["schemas"]["MCPServerRow"][];
16442
+ last_reload?: components["schemas"]["MCPReloadRecord"] | null;
16443
+ pending_reload: boolean;
16444
+ runtime: string;
16445
+ runtime_display_name: string;
16446
+ runtime_servers: components["schemas"]["SessionRuntimeMCP"];
16447
+ session_id: string;
16448
+ usable: number;
16449
+ };
16011
16450
  SessionMonitorPayload: {
16012
16451
  branch?: string;
16013
16452
  /** Format: date-time */
@@ -16101,6 +16540,7 @@ export interface components {
16101
16540
  later?: components["schemas"]["SessionLaterPayload"] | null;
16102
16541
  lineage?: components["schemas"]["SessionLineagePayload"] | null;
16103
16542
  linked_work?: components["schemas"]["SessionLinkedWorkSummary"] | null;
16543
+ mcp_summary?: components["schemas"]["MCPSummary"] | null;
16104
16544
  monitor_summary?: components["schemas"]["SessionMonitorSummaryPayload"] | null;
16105
16545
  name?: string;
16106
16546
  parent_title?: string;
@@ -16142,6 +16582,7 @@ export interface components {
16142
16582
  supervision: components["schemas"]["SupervisionState"] | null;
16143
16583
  /** Format: int64 */
16144
16584
  transcript_epoch?: number;
16585
+ tree_parent_session_id?: string;
16145
16586
  /** @enum {string} */
16146
16587
  type?: "user" | "system" | "coordinator" | "spawned";
16147
16588
  /** Format: date-time */
@@ -16265,6 +16706,7 @@ export interface components {
16265
16706
  SessionPullRequestErrorPayload: {
16266
16707
  blockers?: components["schemas"]["WorkspaceArchiveBlocker"][];
16267
16708
  cause?: string;
16709
+ client_message_id?: string;
16268
16710
  code?: string;
16269
16711
  config_path?: string;
16270
16712
  current_turn_id?: string;
@@ -16274,6 +16716,8 @@ export interface components {
16274
16716
  diagnostic?: components["schemas"]["DiagnosticItem"] | null;
16275
16717
  error: string;
16276
16718
  message: string;
16719
+ provider_error?: string;
16720
+ retryable?: boolean;
16277
16721
  unknown_keys?: string[];
16278
16722
  };
16279
16723
  SessionPullRequestLookupPayload: {
@@ -16342,6 +16786,10 @@ export interface components {
16342
16786
  SessionResponse: {
16343
16787
  session: components["schemas"]["SessionPayload"];
16344
16788
  };
16789
+ SessionRuntimeMCP: {
16790
+ runtime_mcp: string;
16791
+ servers: components["schemas"]["RuntimeMCPRow"][];
16792
+ };
16345
16793
  SessionRuntimePayload: {
16346
16794
  acp_caps?: components["schemas"]["ACPCapsPayload"] | null;
16347
16795
  acp_session_id?: string;
@@ -16979,6 +17427,9 @@ export interface components {
16979
17427
  | "spawn.ttl_expired"
16980
17428
  | "spawn.reaped"
16981
17429
  | "session.attention.changed"
17430
+ | "window_manager.tab.split"
17431
+ | "window_manager.tab.unsplit"
17432
+ | "window_manager.tab.activated"
16982
17433
  | "window_manager.layout.applied"
16983
17434
  | "window_manager.desktop.created"
16984
17435
  | "window_manager.desktop.deleted"
@@ -17103,9 +17554,32 @@ export interface components {
17103
17554
  SettingsLogTailEventPayload: {
17104
17555
  line: string;
17105
17556
  };
17557
+ SettingsMCPApprovalPayload: {
17558
+ /** Format: date-time */
17559
+ approved_at?: string;
17560
+ profile: string;
17561
+ server_name: string;
17562
+ state: string;
17563
+ workspace_id: string;
17564
+ };
17565
+ SettingsMCPApprovalRequest: {
17566
+ definition_digest: string;
17567
+ profile?: string;
17568
+ workspace_id: string;
17569
+ };
17570
+ SettingsMCPApprovalResponse: {
17571
+ approval: components["schemas"]["SettingsMCPApprovalPayload"];
17572
+ };
17573
+ SettingsMCPApprovalStatePayload: {
17574
+ definition_digest: string;
17575
+ reason?: string;
17576
+ required: boolean;
17577
+ state: string;
17578
+ };
17106
17579
  SettingsMCPAuthBeginRequest: {
17107
17580
  approve_scope_escalation?: boolean;
17108
17581
  approved_scopes?: string[];
17582
+ definition_digest?: string;
17109
17583
  /** @enum {string} */
17110
17584
  mode: "automatic" | "manual";
17111
17585
  };
@@ -17175,9 +17649,11 @@ export interface components {
17175
17649
  };
17176
17650
  };
17177
17651
  SettingsMCPServerItemPayload: {
17652
+ approval: components["schemas"]["SettingsMCPApprovalStatePayload"];
17178
17653
  args?: string[];
17179
17654
  auth?: components["schemas"]["SettingsMCPAuthConfigViewPayload"] | null;
17180
17655
  auth_status?: components["schemas"]["SettingsMCPAuthStatusPayload"] | null;
17656
+ callable_in_sessions: boolean;
17181
17657
  catalog_entry?: string;
17182
17658
  catalog_version?: string;
17183
17659
  command?: string;
@@ -17462,6 +17938,7 @@ export interface components {
17462
17938
  harness?: string;
17463
17939
  home_policy?: string;
17464
17940
  models?: components["schemas"]["SettingsProviderModelsPayload"] | null;
17941
+ runtime_mcp?: string;
17465
17942
  runtime_provider?: string;
17466
17943
  session_env?: {
17467
17944
  [key: string]: components["schemas"]["SessionEnvBindingPayload"];
@@ -17520,6 +17997,7 @@ export interface components {
17520
17997
  harness?: string;
17521
17998
  home_policy?: string;
17522
17999
  models?: components["schemas"]["SettingsProviderModelsPayload"] | null;
18000
+ runtime_mcp?: string;
17523
18001
  runtime_provider?: string;
17524
18002
  session_env?: {
17525
18003
  [key: string]: components["schemas"]["SessionEnvBindingPayload"];
@@ -18041,6 +18519,10 @@ export interface components {
18041
18519
  | "failed"
18042
18520
  | "canceled";
18043
18521
  };
18522
+ /**
18523
+ * @deprecated
18524
+ * @description Deprecated: accepted and ignored; remove before v0.8.0.
18525
+ */
18044
18526
  SettingsWindowManagerBindingPayload: {
18045
18527
  /** @enum {string} */
18046
18528
  bottom_center: "none" | "reserved" | "zoom";
@@ -18054,11 +18536,19 @@ export interface components {
18054
18536
  title: string;
18055
18537
  };
18056
18538
  SettingsWindowManagerConfigPayload: {
18539
+ /**
18540
+ * @deprecated
18541
+ * @description Deprecated: accepted and ignored; remove before v0.8.0.
18542
+ */
18057
18543
  bindings: components["schemas"]["SettingsWindowManagerBindingPayload"];
18058
18544
  closed_entry_limit: number;
18059
18545
  /** @enum {string} */
18060
18546
  desktop_transition: "slide" | "crossfade" | "instant";
18061
- /** @enum {string} */
18547
+ /**
18548
+ * @deprecated
18549
+ * @description Deprecated: accepted and ignored; remove before v0.8.0.
18550
+ * @enum {string}
18551
+ */
18062
18552
  drag_away_policy: "window" | "group";
18063
18553
  focus_follows_pointer: boolean;
18064
18554
  /** @enum {string} */
@@ -18068,18 +18558,33 @@ export interface components {
18068
18558
  global_shortcuts: {
18069
18559
  [key: string]: string;
18070
18560
  };
18071
- /** @enum {string} */
18561
+ /**
18562
+ * @deprecated
18563
+ * @description Deprecated: accepted and ignored; remove before v0.8.0.
18564
+ * @enum {string}
18565
+ */
18072
18566
  group_move_modifier: "alt" | "control" | "meta" | "shift" | "none";
18073
18567
  history_limit: number;
18074
18568
  nav_stack_limit: number;
18075
- /** @enum {string} */
18569
+ /**
18570
+ * @description Deprecated value "floating": translated to "tab"; removed in v0.8.0.
18571
+ * @enum {string}
18572
+ */
18076
18573
  new_window_policy: "floating" | "beside_focus" | "tab";
18574
+ /**
18575
+ * @deprecated
18576
+ * @description Deprecated: accepted and ignored; remove before v0.8.0.
18577
+ */
18077
18578
  raise_on_focus: boolean;
18078
18579
  shortcuts: {
18079
18580
  [key: string]: string | string[];
18080
18581
  };
18081
18582
  /** @enum {string} */
18082
18583
  small_viewport_policy: "stack" | "reject";
18584
+ /**
18585
+ * @deprecated
18586
+ * @description Deprecated: accepted and ignored; remove before v0.8.0.
18587
+ */
18083
18588
  snap: components["schemas"]["SettingsWindowManagerSnapPayload"];
18084
18589
  /** @enum {string} */
18085
18590
  swap_modifier: "alt" | "control" | "meta" | "shift" | "none";
@@ -18179,6 +18684,10 @@ export interface components {
18179
18684
  | "marketplace";
18180
18685
  workspace_id?: string;
18181
18686
  };
18687
+ /**
18688
+ * @deprecated
18689
+ * @description Deprecated: accepted and ignored; remove before v0.8.0.
18690
+ */
18182
18691
  SettingsWindowManagerSnapPayload: {
18183
18692
  corner_reach: number;
18184
18693
  edge_band: number;
@@ -18350,6 +18859,10 @@ export interface components {
18350
18859
  SkillsResponse: {
18351
18860
  skills: components["schemas"]["SkillPayload"][];
18352
18861
  };
18862
+ /**
18863
+ * @deprecated
18864
+ * @description Deprecated: accepted and ignored; remove before v0.8.0.
18865
+ */
18353
18866
  SnapConfig: {
18354
18867
  /** Format: double */
18355
18868
  corner_reach: number;
@@ -18359,6 +18872,17 @@ export interface components {
18359
18872
  exit_slack: number;
18360
18873
  repeat_ratios: number[];
18361
18874
  };
18875
+ Snapshot: {
18876
+ config_files: string[];
18877
+ display_name: string;
18878
+ installed: boolean;
18879
+ notes?: string[];
18880
+ read_error?: string;
18881
+ read_state: string;
18882
+ runtime: string;
18883
+ runtime_mcp: components["schemas"]["RuntimeMode"];
18884
+ servers: components["schemas"]["Server"][];
18885
+ };
18362
18886
  SourceOutcome: {
18363
18887
  /** Format: int64 */
18364
18888
  duration_ms: number;
@@ -18526,6 +19050,10 @@ export interface components {
18526
19050
  state: string;
18527
19051
  url: string;
18528
19052
  };
19053
+ SubagentRemovedEvent: {
19054
+ session_id: string;
19055
+ subagent_id: string;
19056
+ };
18529
19057
  SubagentRuntimePayload: {
18530
19058
  agent: string;
18531
19059
  model: string;
@@ -19268,6 +19796,7 @@ export interface components {
19268
19796
  };
19269
19797
  TaskQueryErrorPayload: {
19270
19798
  blockers?: components["schemas"]["WorkspaceArchiveBlocker"][];
19799
+ client_message_id?: string;
19271
19800
  code?: string;
19272
19801
  config_path?: string;
19273
19802
  current_turn_id?: string;
@@ -19277,6 +19806,8 @@ export interface components {
19277
19806
  diagnostic?: components["schemas"]["DiagnosticItem"] | null;
19278
19807
  error: string;
19279
19808
  field: string;
19809
+ provider_error?: string;
19810
+ retryable?: boolean;
19280
19811
  unknown_keys?: string[];
19281
19812
  };
19282
19813
  TaskQueueDepthPayload: {
@@ -20477,6 +21008,7 @@ export interface components {
20477
21008
  visibility: "internal" | "operator" | "session" | "model";
20478
21009
  };
20479
21010
  ToolErrorPayload: {
21011
+ client_message_id?: string;
20480
21012
  /** @enum {string} */
20481
21013
  code:
20482
21014
  | "agent_instance_not_found"
@@ -20547,6 +21079,7 @@ export interface components {
20547
21079
  layer?: string;
20548
21080
  message: string;
20549
21081
  partial_result?: components["schemas"]["ToolResult"] | null;
21082
+ provider_error?: string;
20550
21083
  reason_codes?: (
20551
21084
  | "approval_canceled"
20552
21085
  | "approval_rejected"
@@ -20633,6 +21166,7 @@ export interface components {
20633
21166
  | "worktree_not_found"
20634
21167
  | "worktree_not_ready"
20635
21168
  )[];
21169
+ retryable?: boolean;
20636
21170
  tool_id?: string;
20637
21171
  };
20638
21172
  ToolErrorResponse: {
@@ -21338,23 +21872,42 @@ export interface components {
21338
21872
  secondary_field_multiplier: number;
21339
21873
  version: number;
21340
21874
  };
21875
+ WindowManagerActivateTabPayload: {
21876
+ window_id: string;
21877
+ };
21341
21878
  WindowManagerActor: {
21342
21879
  id?: string;
21343
21880
  kind?: string;
21344
21881
  };
21345
21882
  WindowManagerArrangeLayoutPayload: {
21346
- /** @enum {string} */
21883
+ /**
21884
+ * @description Deprecated value "stack": translated to adjacent tabs; removed in v0.8.0.
21885
+ * @enum {string}
21886
+ */
21347
21887
  arrangement: "horizontal" | "vertical" | "grid" | "stack" | "main_stack";
21348
21888
  desktop_id: string;
21349
- frame: components["schemas"]["NormalizedRect"];
21350
- group_id: string;
21889
+ frame?: components["schemas"]["NormalizedRect"];
21890
+ /**
21891
+ * @deprecated
21892
+ * @description Deprecated: retained for compatibility; removed in v0.8.0. See the window-manager deprecation matrix for its replacement.
21893
+ */
21894
+ group_id?: string;
21895
+ /**
21896
+ * @deprecated
21897
+ * @description Deprecated: retained for compatibility; removed in v0.8.0. See the window-manager deprecation matrix for its replacement.
21898
+ */
21351
21899
  keep_frames?: boolean;
21352
21900
  resource_id?: string;
21353
21901
  window_ids: string[];
21354
21902
  };
21355
21903
  WindowManagerBalanceLayoutPayload: {
21904
+ /**
21905
+ * @deprecated
21906
+ * @description Deprecated: retained for compatibility; removed in v0.8.0. See the window-manager deprecation matrix for its replacement.
21907
+ */
21356
21908
  group_id?: string | null;
21357
21909
  split_id?: string | null;
21910
+ tab_id?: string | null;
21358
21911
  };
21359
21912
  WindowManagerClientContextInput: {
21360
21913
  destination_intent?: components["schemas"]["RouteIntent"] | null;
@@ -21379,6 +21932,9 @@ export interface components {
21379
21932
  };
21380
21933
  WindowManagerClientView: {
21381
21934
  active_desktop_id: string;
21935
+ active_tab: {
21936
+ [key: string]: string;
21937
+ };
21382
21938
  attachment_token?: string;
21383
21939
  client_id: string;
21384
21940
  /** Format: date-time */
@@ -21390,6 +21946,10 @@ export interface components {
21390
21946
  kind: string;
21391
21947
  palette_context: components["schemas"]["WindowManagerPaletteContext"];
21392
21948
  presentation_revision: number;
21949
+ /**
21950
+ * @deprecated
21951
+ * @description Deprecated: retained for compatibility; removed in v0.8.0. See the window-manager deprecation matrix for its replacement.
21952
+ */
21393
21953
  stack_active: {
21394
21954
  [key: string]: string;
21395
21955
  };
@@ -21400,9 +21960,13 @@ export interface components {
21400
21960
  workspace_id: string;
21401
21961
  };
21402
21962
  WindowManagerCloseWindowPayload: {
21403
- minimize: boolean;
21963
+ /**
21964
+ * @deprecated
21965
+ * @description Deprecated: retained for compatibility; removed in v0.8.0. See the window-manager deprecation matrix for its replacement.
21966
+ */
21967
+ minimize?: boolean;
21404
21968
  /** @enum {string} */
21405
- scope?: "tab" | "group" | "others" | "right";
21969
+ scope?: "tab" | "group" | "others" | "right" | "left" | "all";
21406
21970
  window_id: string;
21407
21971
  };
21408
21972
  /** @description Semantic window-manager command selected by command_id */
@@ -21528,6 +22092,50 @@ export interface components {
21528
22092
  rebase?: components["schemas"]["WindowManagerRebaseGuard"] | null;
21529
22093
  workspace_id: string;
21530
22094
  }
22095
+ | {
22096
+ actor: components["schemas"]["WindowManagerActor"];
22097
+ client_id?: string | null;
22098
+ /** @enum {string} */
22099
+ command_id: "window.tab.reorder";
22100
+ expected_revision: number;
22101
+ origin: string;
22102
+ payload: components["schemas"]["WindowManagerReorderStackPayload"];
22103
+ rebase?: components["schemas"]["WindowManagerRebaseGuard"] | null;
22104
+ workspace_id: string;
22105
+ }
22106
+ | {
22107
+ actor: components["schemas"]["WindowManagerActor"];
22108
+ client_id?: string | null;
22109
+ /** @enum {string} */
22110
+ command_id: "window.tab.activate";
22111
+ expected_revision: number;
22112
+ origin: string;
22113
+ payload: components["schemas"]["WindowManagerSetStackActivePayload"];
22114
+ rebase?: components["schemas"]["WindowManagerRebaseGuard"] | null;
22115
+ workspace_id: string;
22116
+ }
22117
+ | {
22118
+ actor: components["schemas"]["WindowManagerActor"];
22119
+ client_id?: string | null;
22120
+ /** @enum {string} */
22121
+ command_id: "window.resize";
22122
+ expected_revision: number;
22123
+ origin: string;
22124
+ payload: components["schemas"]["WindowManagerResizeWindowPayload"];
22125
+ rebase?: components["schemas"]["WindowManagerRebaseGuard"] | null;
22126
+ workspace_id: string;
22127
+ }
22128
+ | {
22129
+ actor: components["schemas"]["WindowManagerActor"];
22130
+ client_id?: string | null;
22131
+ /** @enum {string} */
22132
+ command_id: "layout.frame_resize";
22133
+ expected_revision: number;
22134
+ origin: string;
22135
+ payload: components["schemas"]["WindowManagerFrameResizeLayoutPayload"];
22136
+ rebase?: components["schemas"]["WindowManagerRebaseGuard"] | null;
22137
+ workspace_id: string;
22138
+ }
21531
22139
  | {
21532
22140
  actor: components["schemas"]["WindowManagerActor"];
21533
22141
  client_id?: string | null;
@@ -21596,7 +22204,7 @@ export interface components {
21596
22204
  }
21597
22205
  | {
21598
22206
  actor: components["schemas"]["WindowManagerActor"];
21599
- client_id: string;
22207
+ client_id?: string | null;
21600
22208
  /** @enum {string} */
21601
22209
  command_id: "window.zoom";
21602
22210
  expected_revision: number;
@@ -21681,12 +22289,11 @@ export interface components {
21681
22289
  destination_id?: string | null;
21682
22290
  };
21683
22291
  WindowManagerDesktop: {
21684
- floating: string[];
21685
- floating_stacks: components["schemas"]["WindowManagerFloatingStack"][];
21686
- groups: components["schemas"]["ContractWindowManagerLayoutGroup"][];
22292
+ active_tab_id: string;
21687
22293
  id: string;
21688
22294
  name: string;
21689
22295
  order: number;
22296
+ tabs: components["schemas"]["ContractWindowManagerTab"][];
21690
22297
  };
21691
22298
  WindowManagerErrorFrame: {
21692
22299
  error: components["schemas"]["ContractWindowManagerErrorPayload"];
@@ -21742,6 +22349,8 @@ export interface components {
21742
22349
  | "window.stack.set_active"
21743
22350
  | "window.pin"
21744
22351
  | "window.reopen"
22352
+ | "window.tab.reorder"
22353
+ | "window.tab.activate"
21745
22354
  | "layout.arrange"
21746
22355
  | "layout.resize"
21747
22356
  | "layout.frame_resize"
@@ -21762,19 +22371,28 @@ export interface components {
21762
22371
  type: "event";
21763
22372
  workspace_id: string;
21764
22373
  };
21765
- WindowManagerFloatingStack: {
21766
- active_id?: string | null;
21767
- id: string;
21768
- minimized: boolean;
21769
- rect: components["schemas"]["NormalizedRect"];
21770
- window_ids: string[];
21771
- };
21772
22374
  WindowManagerFocusWindowPayload: {
21773
22375
  /** @enum {string} */
21774
22376
  direction?: "left" | "right" | "up" | "down";
21775
22377
  window_id?: string | null;
21776
22378
  };
22379
+ WindowManagerFrameResizeLayoutPayload: {
22380
+ desktop_id: string;
22381
+ edits: components["schemas"]["WindowManagerGroupFrameEditPayload"][];
22382
+ };
22383
+ WindowManagerGroupFrameEditPayload: {
22384
+ frame?: components["schemas"]["NormalizedRect"];
22385
+ /**
22386
+ * @deprecated
22387
+ * @description Deprecated: retained for compatibility; removed in v0.8.0. See the window-manager deprecation matrix for its replacement.
22388
+ */
22389
+ group_id?: string;
22390
+ };
21777
22391
  WindowManagerGroupWindowsPayload: {
22392
+ /**
22393
+ * @deprecated
22394
+ * @description Deprecated: retained for compatibility; removed in v0.8.0. See the window-manager deprecation matrix for its replacement.
22395
+ */
21778
22396
  insert_index?: number | null;
21779
22397
  target_window_id: string;
21780
22398
  window_ids: string[];
@@ -21794,22 +22412,15 @@ export interface components {
21794
22412
  };
21795
22413
  workspace_id: string;
21796
22414
  };
21797
- WindowManagerLayoutGroup: {
21798
- frame: components["schemas"]["NormalizedRect"];
21799
- id: string;
21800
- root: components["schemas"]["WindowManagerLayoutNode"];
21801
- };
21802
22415
  WindowManagerLayoutNode: {
21803
- active_id?: string | null;
21804
22416
  /** @enum {string|null} */
21805
22417
  axis?: "horizontal" | "vertical" | null;
21806
22418
  children?: components["schemas"]["WindowManagerLayoutNode"][];
21807
22419
  id: string;
21808
22420
  /** @enum {string} */
21809
- kind: "leaf" | "split" | "stack";
22421
+ kind: "leaf" | "split";
21810
22422
  weights?: number[];
21811
22423
  window_id?: string | null;
21812
- window_ids?: string[];
21813
22424
  };
21814
22425
  WindowManagerLayoutReplaceRequest: {
21815
22426
  actor: components["schemas"]["WindowManagerActor"];
@@ -21825,15 +22436,35 @@ export interface components {
21825
22436
  };
21826
22437
  WindowManagerLayoutValidationResponse: {
21827
22438
  diagnostics?: components["schemas"]["Diagnostic"][];
22439
+ document?: components["schemas"]["ContractWindowManagerLayoutDocument"] | null;
21828
22440
  valid: boolean;
21829
22441
  workspace_id: string;
21830
22442
  };
22443
+ WindowManagerMigrationRequest: {
22444
+ /** @enum {string} */
22445
+ action: "ack" | "retry";
22446
+ /** @description Replace the layout on retry when it changed after failure. */
22447
+ replace?: boolean;
22448
+ };
21831
22449
  WindowManagerMoveWindowPayload: {
21832
22450
  destination_desktop_id: string;
21833
22451
  floating_rect?: components["schemas"]["NormalizedRect"] | null;
21834
22452
  move_group: boolean;
21835
- /** @enum {string} */
21836
- placement: "floating" | "before" | "after" | "left" | "right" | "top" | "bottom" | "center";
22453
+ /**
22454
+ * @description Deprecated value "floating": translated to "tab"; removed in v0.8.0.
22455
+ * @enum {string}
22456
+ */
22457
+ placement:
22458
+ | "tab"
22459
+ | "floating"
22460
+ | "before"
22461
+ | "after"
22462
+ | "left"
22463
+ | "right"
22464
+ | "top"
22465
+ | "bottom"
22466
+ | "center";
22467
+ target_tab_id?: string | null;
21837
22468
  target_window_id?: string | null;
21838
22469
  window_id: string;
21839
22470
  };
@@ -21854,6 +22485,10 @@ export interface components {
21854
22485
  }
21855
22486
  );
21856
22487
  WindowManagerOpenWindowPayload: {
22488
+ /**
22489
+ * @deprecated
22490
+ * @description Deprecated: retained for compatibility; removed in v0.8.0. See the window-manager deprecation matrix for its replacement.
22491
+ */
21857
22492
  restore_window_id?: string | null;
21858
22493
  window: components["schemas"]["WindowManagerWindowSpecPayload"];
21859
22494
  };
@@ -21863,8 +22498,17 @@ export interface components {
21863
22498
  focused_session_state?: string;
21864
22499
  scope_global: boolean;
21865
22500
  shell_desktop: boolean;
22501
+ /**
22502
+ * @deprecated
22503
+ * @description Deprecated: retained for compatibility; removed in v0.8.0. See the window-manager deprecation matrix for its replacement.
22504
+ */
21866
22505
  window_floating: boolean;
21867
22506
  window_focused: boolean;
22507
+ window_in_split: boolean;
22508
+ /**
22509
+ * @deprecated
22510
+ * @description Deprecated: retained for compatibility; removed in v0.8.0. See the window-manager deprecation matrix for its replacement.
22511
+ */
21868
22512
  window_stacked: boolean;
21869
22513
  workspace_trusted: boolean;
21870
22514
  };
@@ -21876,6 +22520,7 @@ export interface components {
21876
22520
  changed: boolean;
21877
22521
  changes: components["schemas"]["ChangeSet"];
21878
22522
  client?: components["schemas"]["ContractWindowManagerClientView"] | null;
22523
+ deprecations: components["schemas"]["Deprecation"][];
21879
22524
  diagnostics?: components["schemas"]["Diagnostic"][];
21880
22525
  snapshot: components["schemas"]["ContractWindowManagerSnapshot"];
21881
22526
  };
@@ -21883,6 +22528,7 @@ export interface components {
21883
22528
  boundary_index?: number | null;
21884
22529
  source_node_id?: string | null;
21885
22530
  split_id?: string | null;
22531
+ tab_id?: string | null;
21886
22532
  target_node_id?: string | null;
21887
22533
  window_id?: string | null;
21888
22534
  };
@@ -21896,6 +22542,10 @@ export interface components {
21896
22542
  index: number;
21897
22543
  window_id: string;
21898
22544
  };
22545
+ WindowManagerReorderTabPayload: {
22546
+ index: number;
22547
+ window_id: string;
22548
+ };
21899
22549
  WindowManagerReplaceLayoutPayload: {
21900
22550
  document: components["schemas"]["ContractWindowManagerLayoutDocument"];
21901
22551
  };
@@ -21905,32 +22555,26 @@ export interface components {
21905
22555
  delta: number;
21906
22556
  split_id: string;
21907
22557
  };
22558
+ WindowManagerResizeWindowPayload: {
22559
+ frame?: components["schemas"]["NormalizedRect"];
22560
+ window_id: string;
22561
+ };
21908
22562
  WindowManagerResult: {
21909
22563
  applied: boolean;
21910
22564
  changes: components["schemas"]["ChangeSet"];
21911
22565
  client?: components["schemas"]["ContractWindowManagerClientView"] | null;
22566
+ deprecations: components["schemas"]["Deprecation"][];
21912
22567
  diagnostics?: components["schemas"]["Diagnostic"][];
21913
22568
  rebased_from?: number;
21914
22569
  snapshot: components["schemas"]["ContractWindowManagerSnapshot"];
21915
22570
  };
21916
- WindowManagerReturnAnchor: {
21917
- child_index?: number | null;
21918
- desktop_id: string;
21919
- group_id?: string | null;
21920
- neighbor_ids?: string[];
21921
- parent_split_id?: string | null;
21922
- source_group?: components["schemas"]["ContractWindowManagerLayoutGroup"] | null;
21923
- source_revision: number;
21924
- /** Format: double */
21925
- weight?: number | null;
21926
- zoomed?: boolean;
21927
- };
21928
22571
  WindowManagerSetStackActivePayload: {
21929
22572
  window_id: string;
21930
22573
  };
21931
22574
  WindowManagerSnapshot: {
21932
22575
  closed_entry_count: number;
21933
22576
  desktops: components["schemas"]["ContractWindowManagerDesktop"][];
22577
+ migration?: components["schemas"]["MigrationStatus"] | null;
21934
22578
  overrides: components["schemas"]["WorkspaceConfig"];
21935
22579
  revision: number;
21936
22580
  /** Format: date-time */
@@ -21956,6 +22600,11 @@ export interface components {
21956
22600
  WindowManagerSwitchDesktopPayload: {
21957
22601
  desktop_id: string;
21958
22602
  };
22603
+ WindowManagerTab: {
22604
+ id: string;
22605
+ pinned: boolean;
22606
+ root: components["schemas"]["WindowManagerLayoutNode"];
22607
+ };
21959
22608
  WindowManagerToggleFloatingPayload: {
21960
22609
  floating_rect?: components["schemas"]["NormalizedRect"] | null;
21961
22610
  window_id: string;
@@ -21968,25 +22617,23 @@ export interface components {
21968
22617
  WindowManagerWindow: {
21969
22618
  app: string;
21970
22619
  desktop_id: string;
21971
- floating_rect: components["schemas"]["NormalizedRect"];
21972
22620
  id: string;
21973
22621
  instance_key?: string | null;
21974
- minimized: boolean;
21975
22622
  nav_stack: components["schemas"]["RouteIntent"][];
21976
- pinned: boolean;
21977
- /** @enum {string} */
21978
- placement: "tiled" | "stacked" | "floating";
21979
- return_anchor?: components["schemas"]["WindowManagerReturnAnchor"] | null;
21980
22623
  route: components["schemas"]["RouteIntent"];
21981
- zoomed: boolean;
22624
+ tab_id: string;
21982
22625
  };
21983
22626
  WindowManagerWindowSpecPayload: {
21984
22627
  app: string;
21985
22628
  desktop_id: string;
22629
+ /**
22630
+ * @deprecated
22631
+ * @description Deprecated: retained for compatibility; removed in v0.8.0. See the window-manager deprecation matrix for its replacement.
22632
+ */
21986
22633
  floating?: boolean;
21987
- floating_rect: components["schemas"]["NormalizedRect"];
22634
+ floating_rect?: components["schemas"]["NormalizedRect"];
21988
22635
  id?: string;
21989
- insert_tiled: boolean;
22636
+ insert_tiled?: boolean;
21990
22637
  instance_key?: string | null;
21991
22638
  route: components["schemas"]["RouteIntent"];
21992
22639
  stack_target_window_id?: string | null;
@@ -22060,23 +22707,44 @@ export interface components {
22060
22707
  workspace_id: string;
22061
22708
  };
22062
22709
  WorkspaceConfig: {
22710
+ /**
22711
+ * @deprecated
22712
+ * @description Deprecated: accepted and ignored; remove before v0.8.0.
22713
+ */
22063
22714
  bindings?: components["schemas"]["BindingsConfig"] | null;
22064
22715
  closed_entry_limit?: number | null;
22065
22716
  desktop_transition?: string | null;
22717
+ /**
22718
+ * @deprecated
22719
+ * @description Deprecated: accepted and ignored; remove before v0.8.0.
22720
+ */
22066
22721
  drag_away_policy?: string | null;
22067
22722
  focus_follows_pointer?: boolean | null;
22068
22723
  focus_policy?: string | null;
22069
22724
  focus_wrap?: boolean | null;
22070
22725
  gaps?: components["schemas"]["GapsConfig"] | null;
22726
+ /**
22727
+ * @deprecated
22728
+ * @description Deprecated: accepted and ignored; remove before v0.8.0.
22729
+ */
22071
22730
  group_move_modifier?: string | null;
22072
22731
  history_limit?: number | null;
22073
22732
  nav_stack_limit?: number | null;
22733
+ /** @description Deprecated value "floating": translated to "tab"; removed in v0.8.0. */
22074
22734
  new_window_policy?: string | null;
22735
+ /**
22736
+ * @deprecated
22737
+ * @description Deprecated: accepted and ignored; remove before v0.8.0.
22738
+ */
22075
22739
  raise_on_focus?: boolean | null;
22076
22740
  shortcuts?: {
22077
22741
  [key: string]: string | string[];
22078
22742
  };
22079
22743
  small_viewport_policy?: string | null;
22744
+ /**
22745
+ * @deprecated
22746
+ * @description Deprecated: accepted and ignored; remove before v0.8.0.
22747
+ */
22080
22748
  snap?: components["schemas"]["SnapConfig"] | null;
22081
22749
  swap_modifier?: string | null;
22082
22750
  };
@@ -22283,6 +22951,15 @@ export interface components {
22283
22951
  error?: string;
22284
22952
  risk: components["schemas"]["WorktreeRemovalRiskPayload"];
22285
22953
  };
22954
+ WorktreeRemovalResult: {
22955
+ branch?: components["schemas"]["WorktreeBranchOutcomePayload"] | null;
22956
+ code?: string;
22957
+ error?: string;
22958
+ risk?: components["schemas"]["WorktreeRemovalRiskPayload"] | null;
22959
+ state: string;
22960
+ target: components["schemas"]["WorktreeRemovalTarget"];
22961
+ worktree_id?: string;
22962
+ };
22286
22963
  WorktreeRemovalRiskPayload: {
22287
22964
  changed_files: number;
22288
22965
  deletions: number;
@@ -22291,6 +22968,11 @@ export interface components {
22291
22968
  leftover_files: number;
22292
22969
  unpushed_commits: number;
22293
22970
  };
22971
+ WorktreeRemovalTarget: {
22972
+ expect_stale?: boolean;
22973
+ path?: string;
22974
+ ref?: string;
22975
+ };
22294
22976
  WorktreeRepoPayload: {
22295
22977
  diagnostic?: string;
22296
22978
  git_available: boolean;
@@ -29517,26 +30199,8 @@ export interface operations {
29517
30199
  "application/json": components["schemas"]["RunResponse"];
29518
30200
  };
29519
30201
  };
29520
- /** @description Automation job not found */
29521
- 404: {
29522
- headers: {
29523
- [name: string]: unknown;
29524
- };
29525
- content: {
29526
- "application/json": components["schemas"]["ErrorPayload"];
29527
- };
29528
- };
29529
- /** @description Automation run conflict */
29530
- 409: {
29531
- headers: {
29532
- [name: string]: unknown;
29533
- };
29534
- content: {
29535
- "application/json": components["schemas"]["ErrorPayload"];
29536
- };
29537
- };
29538
- /** @description Internal server error */
29539
- 500: {
30202
+ /** @description Invalid wait or completion budget */
30203
+ 400: {
29540
30204
  headers: {
29541
30205
  [name: string]: unknown;
29542
30206
  };
@@ -29544,8 +30208,8 @@ export interface operations {
29544
30208
  "application/json": components["schemas"]["ErrorPayload"];
29545
30209
  };
29546
30210
  };
29547
- /** @description Automation manager is not configured */
29548
- 503: {
30211
+ /** @description Automation job not found */
30212
+ 404: {
29549
30213
  headers: {
29550
30214
  [name: string]: unknown;
29551
30215
  };
@@ -29553,53 +30217,80 @@ export interface operations {
29553
30217
  "application/json": components["schemas"]["ErrorPayload"];
29554
30218
  };
29555
30219
  };
29556
- };
29557
- };
29558
- listAutomationRuns: {
29559
- parameters: {
29560
- query?: {
29561
- /** @description Filter by source project; @user selects User */
29562
- workspace_id?: string;
29563
- /** @description Read every run, including unknown attribution */
29564
- all_workspaces?: boolean;
29565
- /** @description Source project IDs or @user; excludes unknown attribution */
29566
- workspace_ids?: string[];
29567
- /** @description Opaque source-filter-bound cursor */
29568
- cursor?: string;
29569
- /** @description Filter by automation job id */
29570
- job_id?: string;
29571
- /** @description Filter by automation trigger id */
29572
- trigger_id?: string;
29573
- /** @description Filter by run status */
29574
- status?: "scheduled" | "running" | "delegated" | "completed" | "failed" | "canceled";
29575
- /** @description Only runs started since this timestamp */
29576
- since?: string;
29577
- /** @description Only runs started before this timestamp */
29578
- until?: string;
29579
- /** @description Page size (default 50, maximum 200; zero uses default) */
29580
- limit?: number;
29581
- /** @description Read one profile's rows by name */
29582
- profile?: string;
29583
- /** @description Read the owner-labeled all-profiles aggregate */
29584
- all_profiles?: boolean;
29585
- };
29586
- header?: never;
29587
- path?: never;
29588
- cookie?: never;
29589
- };
29590
- requestBody?: never;
29591
- responses: {
29592
- /** @description OK */
29593
- 200: {
29594
- headers: {
29595
- [name: string]: unknown;
29596
- };
29597
- content: {
29598
- "application/json": components["schemas"]["RunsResponse"];
29599
- };
29600
- };
29601
- /** @description Invalid automation run filter */
29602
- 400: {
30220
+ /** @description Automation run conflict */
30221
+ 409: {
30222
+ headers: {
30223
+ [name: string]: unknown;
30224
+ };
30225
+ content: {
30226
+ "application/json": components["schemas"]["ErrorPayload"];
30227
+ };
30228
+ };
30229
+ /** @description Internal server error */
30230
+ 500: {
30231
+ headers: {
30232
+ [name: string]: unknown;
30233
+ };
30234
+ content: {
30235
+ "application/json": components["schemas"]["ErrorPayload"];
30236
+ };
30237
+ };
30238
+ /** @description Automation manager is not configured */
30239
+ 503: {
30240
+ headers: {
30241
+ [name: string]: unknown;
30242
+ };
30243
+ content: {
30244
+ "application/json": components["schemas"]["ErrorPayload"];
30245
+ };
30246
+ };
30247
+ };
30248
+ };
30249
+ listAutomationRuns: {
30250
+ parameters: {
30251
+ query?: {
30252
+ /** @description Filter by source project; @user selects User */
30253
+ workspace_id?: string;
30254
+ /** @description Read every run, including unknown attribution */
30255
+ all_workspaces?: boolean;
30256
+ /** @description Source project IDs or @user; excludes unknown attribution */
30257
+ workspace_ids?: string[];
30258
+ /** @description Opaque source-filter-bound cursor */
30259
+ cursor?: string;
30260
+ /** @description Filter by automation job id */
30261
+ job_id?: string;
30262
+ /** @description Filter by automation trigger id */
30263
+ trigger_id?: string;
30264
+ /** @description Filter by run status */
30265
+ status?: "scheduled" | "running" | "delegated" | "completed" | "failed" | "canceled";
30266
+ /** @description Only runs started since this timestamp */
30267
+ since?: string;
30268
+ /** @description Only runs started before this timestamp */
30269
+ until?: string;
30270
+ /** @description Page size (default 50, maximum 200; zero uses default) */
30271
+ limit?: number;
30272
+ /** @description Read one profile's rows by name */
30273
+ profile?: string;
30274
+ /** @description Read the owner-labeled all-profiles aggregate */
30275
+ all_profiles?: boolean;
30276
+ };
30277
+ header?: never;
30278
+ path?: never;
30279
+ cookie?: never;
30280
+ };
30281
+ requestBody?: never;
30282
+ responses: {
30283
+ /** @description OK */
30284
+ 200: {
30285
+ headers: {
30286
+ [name: string]: unknown;
30287
+ };
30288
+ content: {
30289
+ "application/json": components["schemas"]["RunsResponse"];
30290
+ };
30291
+ };
30292
+ /** @description Invalid automation run filter */
30293
+ 400: {
29603
30294
  headers: {
29604
30295
  [name: string]: unknown;
29605
30296
  };
@@ -33298,6 +33989,9 @@ export interface operations {
33298
33989
  | "spawn.ttl_expired"
33299
33990
  | "spawn.reaped"
33300
33991
  | "session.attention.changed"
33992
+ | "window_manager.tab.split"
33993
+ | "window_manager.tab.unsplit"
33994
+ | "window_manager.tab.activated"
33301
33995
  | "window_manager.layout.applied"
33302
33996
  | "window_manager.desktop.created"
33303
33997
  | "window_manager.desktop.deleted"
@@ -34564,6 +35258,15 @@ export interface operations {
34564
35258
  "application/json": components["schemas"]["ErrorPayload"];
34565
35259
  };
34566
35260
  };
35261
+ /** @description MCP server waiting for approval or definition changed */
35262
+ 409: {
35263
+ headers: {
35264
+ [name: string]: unknown;
35265
+ };
35266
+ content: {
35267
+ "application/json": components["schemas"]["ErrorPayload"];
35268
+ };
35269
+ };
34567
35270
  /** @description MCP OAuth callback runtime is unavailable */
34568
35271
  503: {
34569
35272
  headers: {
@@ -35116,7 +35819,7 @@ export interface operations {
35116
35819
  };
35117
35820
  };
35118
35821
  responses: {
35119
- /** @description Receipts committed atomically; source state unchanged */
35822
+ /** @description Receipts committed atomically; bell layout-upgrade notices also acknowledged durably */
35120
35823
  204: {
35121
35824
  headers: {
35122
35825
  [name: string]: unknown;
@@ -38819,6 +39522,8 @@ export interface operations {
38819
39522
  parent?: string;
38820
39523
  /** @description Filter by exact root session id (includes the root itself) */
38821
39524
  root?: string;
39525
+ /** @description Leave out this session and every session rooted at it (for example, a session's own tree) */
39526
+ exclude_root?: string;
38822
39527
  /** @description Filter by exact bound worktree id */
38823
39528
  worktree?: string;
38824
39529
  /** @description Search session id, name, agent, or provider; title_agent searches visible title and agent */
@@ -39127,6 +39832,8 @@ export interface operations {
39127
39832
  parent?: string;
39128
39833
  /** @description Filter by exact root session id (includes the root itself) */
39129
39834
  root?: string;
39835
+ /** @description Leave out this session and every session rooted at it (for example, a session's own tree) */
39836
+ exclude_root?: string;
39130
39837
  /** @description Only count sessions eligible for explicit attach */
39131
39838
  resumable?: boolean;
39132
39839
  /** @description Filter by exact session state */
@@ -39204,6 +39911,197 @@ export interface operations {
39204
39911
  };
39205
39912
  };
39206
39913
  };
39914
+ getSessionHistoryCleanup: {
39915
+ parameters: {
39916
+ query?: {
39917
+ /** @description Act as this profile by name */
39918
+ profile?: string;
39919
+ };
39920
+ header?: never;
39921
+ path?: never;
39922
+ cookie?: never;
39923
+ };
39924
+ requestBody?: never;
39925
+ responses: {
39926
+ /** @description OK */
39927
+ 200: {
39928
+ headers: {
39929
+ [name: string]: unknown;
39930
+ };
39931
+ content: {
39932
+ "application/json": components["schemas"]["SessionHistoryCleanupRunResponse"];
39933
+ };
39934
+ };
39935
+ /** @description Agent identity is denied */
39936
+ 403: {
39937
+ headers: {
39938
+ [name: string]: unknown;
39939
+ };
39940
+ content: {
39941
+ "application/json": components["schemas"]["ErrorPayload"];
39942
+ };
39943
+ };
39944
+ /** @description Internal server error */
39945
+ 500: {
39946
+ headers: {
39947
+ [name: string]: unknown;
39948
+ };
39949
+ content: {
39950
+ "application/json": components["schemas"]["ErrorPayload"];
39951
+ };
39952
+ };
39953
+ /** @description Service unavailable - dependent service missing */
39954
+ 503: {
39955
+ headers: {
39956
+ [name: string]: unknown;
39957
+ };
39958
+ content: {
39959
+ "application/json": components["schemas"]["ErrorPayload"];
39960
+ };
39961
+ };
39962
+ };
39963
+ };
39964
+ planSessionHistoryCleanup: {
39965
+ parameters: {
39966
+ query?: {
39967
+ /** @description Act as this profile by name */
39968
+ profile?: string;
39969
+ };
39970
+ header?: never;
39971
+ path?: never;
39972
+ cookie?: never;
39973
+ };
39974
+ /** @description JSON request body */
39975
+ requestBody: {
39976
+ content: {
39977
+ "application/json": components["schemas"]["SessionHistoryCleanupRequest"];
39978
+ };
39979
+ };
39980
+ responses: {
39981
+ /** @description Dry run: the sessions the cleanup would delete */
39982
+ 200: {
39983
+ headers: {
39984
+ [name: string]: unknown;
39985
+ };
39986
+ content: {
39987
+ "application/json": components["schemas"]["SessionHistoryCleanupPreviewResponse"];
39988
+ };
39989
+ };
39990
+ /** @description Accepted: the cleanup runs in the background; follow it with getSessionHistoryCleanup */
39991
+ 202: {
39992
+ headers: {
39993
+ [name: string]: unknown;
39994
+ };
39995
+ content: {
39996
+ "application/json": components["schemas"]["SessionHistoryCleanupStartResponse"];
39997
+ };
39998
+ };
39999
+ /** @description Invalid cleanup request */
40000
+ 400: {
40001
+ headers: {
40002
+ [name: string]: unknown;
40003
+ };
40004
+ content: {
40005
+ "application/json": components["schemas"]["ErrorPayload"];
40006
+ };
40007
+ };
40008
+ /** @description Agent identity is denied */
40009
+ 403: {
40010
+ headers: {
40011
+ [name: string]: unknown;
40012
+ };
40013
+ content: {
40014
+ "application/json": components["schemas"]["ErrorPayload"];
40015
+ };
40016
+ };
40017
+ /** @description A cleanup is already running for this profile */
40018
+ 409: {
40019
+ headers: {
40020
+ [name: string]: unknown;
40021
+ };
40022
+ content: {
40023
+ "application/json": components["schemas"]["ErrorPayload"];
40024
+ };
40025
+ };
40026
+ /** @description Internal server error */
40027
+ 500: {
40028
+ headers: {
40029
+ [name: string]: unknown;
40030
+ };
40031
+ content: {
40032
+ "application/json": components["schemas"]["ErrorPayload"];
40033
+ };
40034
+ };
40035
+ /** @description Service unavailable - dependent service missing */
40036
+ 503: {
40037
+ headers: {
40038
+ [name: string]: unknown;
40039
+ };
40040
+ content: {
40041
+ "application/json": components["schemas"]["ErrorPayload"];
40042
+ };
40043
+ };
40044
+ };
40045
+ };
40046
+ stopSessionHistoryCleanup: {
40047
+ parameters: {
40048
+ query?: {
40049
+ /** @description Act as this profile by name */
40050
+ profile?: string;
40051
+ };
40052
+ header?: never;
40053
+ path?: never;
40054
+ cookie?: never;
40055
+ };
40056
+ requestBody?: never;
40057
+ responses: {
40058
+ /** @description OK */
40059
+ 200: {
40060
+ headers: {
40061
+ [name: string]: unknown;
40062
+ };
40063
+ content: {
40064
+ "application/json": components["schemas"]["SessionHistoryCleanupRunResponse"];
40065
+ };
40066
+ };
40067
+ /** @description Agent identity is denied */
40068
+ 403: {
40069
+ headers: {
40070
+ [name: string]: unknown;
40071
+ };
40072
+ content: {
40073
+ "application/json": components["schemas"]["ErrorPayload"];
40074
+ };
40075
+ };
40076
+ /** @description No cleanup is running for this profile */
40077
+ 404: {
40078
+ headers: {
40079
+ [name: string]: unknown;
40080
+ };
40081
+ content: {
40082
+ "application/json": components["schemas"]["ErrorPayload"];
40083
+ };
40084
+ };
40085
+ /** @description Internal server error */
40086
+ 500: {
40087
+ headers: {
40088
+ [name: string]: unknown;
40089
+ };
40090
+ content: {
40091
+ "application/json": components["schemas"]["ErrorPayload"];
40092
+ };
40093
+ };
40094
+ /** @description Service unavailable - dependent service missing */
40095
+ 503: {
40096
+ headers: {
40097
+ [name: string]: unknown;
40098
+ };
40099
+ content: {
40100
+ "application/json": components["schemas"]["ErrorPayload"];
40101
+ };
40102
+ };
40103
+ };
40104
+ };
39207
40105
  getSessionByID: {
39208
40106
  parameters: {
39209
40107
  query?: {
@@ -39583,6 +40481,7 @@ export interface operations {
39583
40481
  "text/event-stream":
39584
40482
  | components["schemas"]["SubagentsSnapshotEvent"]
39585
40483
  | components["schemas"]["SubagentUpdatedEvent"]
40484
+ | components["schemas"]["SubagentRemovedEvent"]
39586
40485
  | components["schemas"]["SessionUsageChangedPayload"]
39587
40486
  | components["schemas"]["SessionConsumerDegradedPayload"]
39588
40487
  | components["schemas"]["SessionEventPayload"]
@@ -41040,6 +41939,132 @@ export interface operations {
41040
41939
  };
41041
41940
  };
41042
41941
  };
41942
+ putSettingsMCPApproval: {
41943
+ parameters: {
41944
+ query?: never;
41945
+ header?: never;
41946
+ path: {
41947
+ /** @description Configured MCP server name */
41948
+ name: string;
41949
+ };
41950
+ cookie?: never;
41951
+ };
41952
+ /** @description JSON request body */
41953
+ requestBody: {
41954
+ content: {
41955
+ "application/json": components["schemas"]["SettingsMCPApprovalRequest"];
41956
+ };
41957
+ };
41958
+ responses: {
41959
+ /** @description OK */
41960
+ 200: {
41961
+ headers: {
41962
+ [name: string]: unknown;
41963
+ };
41964
+ content: {
41965
+ "application/json": components["schemas"]["SettingsMCPApprovalResponse"];
41966
+ };
41967
+ };
41968
+ /** @description Invalid MCP OAuth request or session */
41969
+ 400: {
41970
+ headers: {
41971
+ [name: string]: unknown;
41972
+ };
41973
+ content: {
41974
+ "application/json": components["schemas"]["ErrorPayload"];
41975
+ };
41976
+ };
41977
+ /** @description Forbidden */
41978
+ 403: {
41979
+ headers: {
41980
+ [name: string]: unknown;
41981
+ };
41982
+ content: {
41983
+ "application/json": components["schemas"]["ErrorPayload"];
41984
+ };
41985
+ };
41986
+ /** @description MCP server or workspace not found */
41987
+ 404: {
41988
+ headers: {
41989
+ [name: string]: unknown;
41990
+ };
41991
+ content: {
41992
+ "application/json": components["schemas"]["ErrorPayload"];
41993
+ };
41994
+ };
41995
+ /** @description MCP server waiting for approval or definition changed */
41996
+ 409: {
41997
+ headers: {
41998
+ [name: string]: unknown;
41999
+ };
42000
+ content: {
42001
+ "application/json": components["schemas"]["ErrorPayload"];
42002
+ };
42003
+ };
42004
+ /** @description Internal server error */
42005
+ 500: {
42006
+ headers: {
42007
+ [name: string]: unknown;
42008
+ };
42009
+ content: {
42010
+ "application/json": components["schemas"]["ErrorPayload"];
42011
+ };
42012
+ };
42013
+ /** @description MCP OAuth runtime is unavailable */
42014
+ 503: {
42015
+ headers: {
42016
+ [name: string]: unknown;
42017
+ };
42018
+ content: {
42019
+ "application/json": components["schemas"]["ErrorPayload"];
42020
+ };
42021
+ };
42022
+ };
42023
+ };
42024
+ deleteSettingsMCPApproval: {
42025
+ parameters: {
42026
+ query: {
42027
+ /** @description Workspace ID */
42028
+ workspace_id: string;
42029
+ /** @description Profile name */
42030
+ profile?: string;
42031
+ };
42032
+ header?: never;
42033
+ path: {
42034
+ /** @description Configured MCP server name */
42035
+ name: string;
42036
+ };
42037
+ cookie?: never;
42038
+ };
42039
+ requestBody?: never;
42040
+ responses: {
42041
+ /** @description Revoked */
42042
+ 204: {
42043
+ headers: {
42044
+ [name: string]: unknown;
42045
+ };
42046
+ content?: never;
42047
+ };
42048
+ /** @description MCP server or workspace not found */
42049
+ 404: {
42050
+ headers: {
42051
+ [name: string]: unknown;
42052
+ };
42053
+ content: {
42054
+ "application/json": components["schemas"]["ErrorPayload"];
42055
+ };
42056
+ };
42057
+ /** @description Approval not required */
42058
+ 409: {
42059
+ headers: {
42060
+ [name: string]: unknown;
42061
+ };
42062
+ content: {
42063
+ "application/json": components["schemas"]["ErrorPayload"];
42064
+ };
42065
+ };
42066
+ };
42067
+ };
41043
42068
  beginSettingsMCPAuth: {
41044
42069
  parameters: {
41045
42070
  query: {
@@ -41102,6 +42127,15 @@ export interface operations {
41102
42127
  "application/json": components["schemas"]["ErrorPayload"];
41103
42128
  };
41104
42129
  };
42130
+ /** @description MCP server waiting for approval or definition changed */
42131
+ 409: {
42132
+ headers: {
42133
+ [name: string]: unknown;
42134
+ };
42135
+ content: {
42136
+ "application/json": components["schemas"]["ErrorPayload"];
42137
+ };
42138
+ };
41105
42139
  /** @description Internal server error */
41106
42140
  500: {
41107
42141
  headers: {
@@ -41184,6 +42218,15 @@ export interface operations {
41184
42218
  "application/json": components["schemas"]["ErrorPayload"];
41185
42219
  };
41186
42220
  };
42221
+ /** @description MCP server waiting for approval or definition changed */
42222
+ 409: {
42223
+ headers: {
42224
+ [name: string]: unknown;
42225
+ };
42226
+ content: {
42227
+ "application/json": components["schemas"]["ErrorPayload"];
42228
+ };
42229
+ };
41187
42230
  /** @description Internal server error */
41188
42231
  500: {
41189
42232
  headers: {
@@ -41261,6 +42304,15 @@ export interface operations {
41261
42304
  "application/json": components["schemas"]["ErrorPayload"];
41262
42305
  };
41263
42306
  };
42307
+ /** @description MCP server waiting for approval or definition changed */
42308
+ 409: {
42309
+ headers: {
42310
+ [name: string]: unknown;
42311
+ };
42312
+ content: {
42313
+ "application/json": components["schemas"]["ErrorPayload"];
42314
+ };
42315
+ };
41264
42316
  /** @description Internal server error */
41265
42317
  500: {
41266
42318
  headers: {
@@ -41338,6 +42390,15 @@ export interface operations {
41338
42390
  "application/json": components["schemas"]["ErrorPayload"];
41339
42391
  };
41340
42392
  };
42393
+ /** @description MCP server waiting for approval or definition changed */
42394
+ 409: {
42395
+ headers: {
42396
+ [name: string]: unknown;
42397
+ };
42398
+ content: {
42399
+ "application/json": components["schemas"]["ErrorPayload"];
42400
+ };
42401
+ };
41341
42402
  /** @description Internal server error */
41342
42403
  500: {
41343
42404
  headers: {
@@ -42108,6 +43169,136 @@ export interface operations {
42108
43169
  };
42109
43170
  };
42110
43171
  };
43172
+ listRuntimeMCPServers: {
43173
+ parameters: {
43174
+ query?: {
43175
+ /** @description Select the settings scope */
43176
+ scope?: "user" | "profile" | "workspace";
43177
+ /** @description Select the workspace context */
43178
+ workspace_id?: string;
43179
+ /** @description Select the profile layer */
43180
+ profile?: string;
43181
+ runtime?: string;
43182
+ };
43183
+ header?: never;
43184
+ path?: never;
43185
+ cookie?: never;
43186
+ };
43187
+ requestBody?: never;
43188
+ responses: {
43189
+ /** @description OK */
43190
+ 200: {
43191
+ headers: {
43192
+ [name: string]: unknown;
43193
+ };
43194
+ content: {
43195
+ "application/json": components["schemas"]["Inventory"];
43196
+ };
43197
+ };
43198
+ /** @description Invalid runtime or settings scope */
43199
+ 400: {
43200
+ headers: {
43201
+ [name: string]: unknown;
43202
+ };
43203
+ content: {
43204
+ "application/json": components["schemas"]["ErrorPayload"];
43205
+ };
43206
+ };
43207
+ /** @description Workspace not found */
43208
+ 404: {
43209
+ headers: {
43210
+ [name: string]: unknown;
43211
+ };
43212
+ content: {
43213
+ "application/json": components["schemas"]["ErrorPayload"];
43214
+ };
43215
+ };
43216
+ /** @description Internal server error */
43217
+ 500: {
43218
+ headers: {
43219
+ [name: string]: unknown;
43220
+ };
43221
+ content: {
43222
+ "application/json": components["schemas"]["ErrorPayload"];
43223
+ };
43224
+ };
43225
+ };
43226
+ };
43227
+ importRuntimeMCPServer: {
43228
+ parameters: {
43229
+ query?: never;
43230
+ header?: never;
43231
+ path: {
43232
+ /** @description Source runtime */
43233
+ runtime: string;
43234
+ /** @description URL-escaped runtime server name */
43235
+ name: string;
43236
+ };
43237
+ cookie?: never;
43238
+ };
43239
+ /** @description JSON request body */
43240
+ requestBody: {
43241
+ content: {
43242
+ "application/json": components["schemas"]["RuntimeMCPImportRequest"];
43243
+ };
43244
+ };
43245
+ responses: {
43246
+ /** @description Copied, possibly with partial cleanup warnings */
43247
+ 201: {
43248
+ headers: {
43249
+ [name: string]: unknown;
43250
+ };
43251
+ content: {
43252
+ "application/json": components["schemas"]["RuntimeMCPImportResponse"];
43253
+ };
43254
+ };
43255
+ /** @description Invalid import request */
43256
+ 400: {
43257
+ headers: {
43258
+ [name: string]: unknown;
43259
+ };
43260
+ content: {
43261
+ "application/json": components["schemas"]["ErrorPayload"];
43262
+ };
43263
+ };
43264
+ /** @description Runtime server or workspace not found */
43265
+ 404: {
43266
+ headers: {
43267
+ [name: string]: unknown;
43268
+ };
43269
+ content: {
43270
+ "application/json": components["schemas"]["ErrorPayload"];
43271
+ };
43272
+ };
43273
+ /** @description Target name already exists */
43274
+ 409: {
43275
+ headers: {
43276
+ [name: string]: unknown;
43277
+ };
43278
+ content: {
43279
+ "application/json": components["schemas"]["ErrorPayload"];
43280
+ };
43281
+ };
43282
+ /** @description Runtime source, transport or definition cannot be copied */
43283
+ 422: {
43284
+ headers: {
43285
+ [name: string]: unknown;
43286
+ };
43287
+ content: {
43288
+ "application/json": components["schemas"]["ErrorPayload"];
43289
+ };
43290
+ };
43291
+ /** @description Internal server error */
43292
+ 500: {
43293
+ headers: {
43294
+ [name: string]: unknown;
43295
+ };
43296
+ content: {
43297
+ "application/json": components["schemas"]["ErrorPayload"];
43298
+ };
43299
+ };
43300
+ };
43301
+ };
42111
43302
  getSettingsShell: {
42112
43303
  parameters: {
42113
43304
  query?: never;
@@ -49269,6 +50460,15 @@ export interface operations {
49269
50460
  "application/json": components["schemas"]["ErrorPayload"];
49270
50461
  };
49271
50462
  };
50463
+ /** @description Removal held by a desktop layout that could not be read; retry finishes it */
50464
+ 503: {
50465
+ headers: {
50466
+ [name: string]: unknown;
50467
+ };
50468
+ content: {
50469
+ "application/json": components["schemas"]["ErrorPayload"];
50470
+ };
50471
+ };
49272
50472
  };
49273
50473
  };
49274
50474
  updateWorkspace: {
@@ -49874,6 +51074,113 @@ export interface operations {
49874
51074
  };
49875
51075
  };
49876
51076
  };
51077
+ readFileBytes: {
51078
+ parameters: {
51079
+ query?: {
51080
+ /** @description Read one profile's rows by name */
51081
+ profile?: string;
51082
+ /** @description Read the owner-labeled all-profiles aggregate */
51083
+ all_profiles?: boolean;
51084
+ };
51085
+ header?: never;
51086
+ path: {
51087
+ /** @description Workspace id */
51088
+ workspace_id: string;
51089
+ /** @description Root-relative file path; its slashes are path segments */
51090
+ path: string;
51091
+ };
51092
+ cookie?: never;
51093
+ };
51094
+ requestBody?: never;
51095
+ responses: {
51096
+ /** @description File bytes */
51097
+ 200: {
51098
+ headers: {
51099
+ [name: string]: unknown;
51100
+ };
51101
+ content: {
51102
+ "*/*": string;
51103
+ };
51104
+ };
51105
+ /** @description Requested byte range */
51106
+ 206: {
51107
+ headers: {
51108
+ [name: string]: unknown;
51109
+ };
51110
+ content: {
51111
+ "*/*": string;
51112
+ };
51113
+ };
51114
+ /** @description File unchanged since the supplied validator */
51115
+ 304: {
51116
+ headers: {
51117
+ [name: string]: unknown;
51118
+ };
51119
+ content?: never;
51120
+ };
51121
+ /** @description File operation failed */
51122
+ 400: {
51123
+ headers: {
51124
+ [name: string]: unknown;
51125
+ };
51126
+ content: {
51127
+ "application/json": components["schemas"]["ErrorPayload"];
51128
+ };
51129
+ };
51130
+ /** @description File operation failed */
51131
+ 403: {
51132
+ headers: {
51133
+ [name: string]: unknown;
51134
+ };
51135
+ content: {
51136
+ "application/json": components["schemas"]["ErrorPayload"];
51137
+ };
51138
+ };
51139
+ /** @description File operation failed */
51140
+ 404: {
51141
+ headers: {
51142
+ [name: string]: unknown;
51143
+ };
51144
+ content: {
51145
+ "application/json": components["schemas"]["ErrorPayload"];
51146
+ };
51147
+ };
51148
+ /** @description File operation failed */
51149
+ 409: {
51150
+ headers: {
51151
+ [name: string]: unknown;
51152
+ };
51153
+ content: {
51154
+ "application/json": components["schemas"]["ErrorPayload"];
51155
+ };
51156
+ };
51157
+ /** @description Requested range not satisfiable */
51158
+ 416: {
51159
+ headers: {
51160
+ [name: string]: unknown;
51161
+ };
51162
+ content?: never;
51163
+ };
51164
+ /** @description File operation failed */
51165
+ 422: {
51166
+ headers: {
51167
+ [name: string]: unknown;
51168
+ };
51169
+ content: {
51170
+ "application/json": components["schemas"]["ErrorPayload"];
51171
+ };
51172
+ };
51173
+ /** @description File operation failed */
51174
+ 500: {
51175
+ headers: {
51176
+ [name: string]: unknown;
51177
+ };
51178
+ content: {
51179
+ "application/json": components["schemas"]["ErrorPayload"];
51180
+ };
51181
+ };
51182
+ };
51183
+ };
49877
51184
  searchFileContents: {
49878
51185
  parameters: {
49879
51186
  query: {
@@ -50049,6 +51356,9 @@ export interface operations {
50049
51356
  | "spawn.ttl_expired"
50050
51357
  | "spawn.reaped"
50051
51358
  | "session.attention.changed"
51359
+ | "window_manager.tab.split"
51360
+ | "window_manager.tab.unsplit"
51361
+ | "window_manager.tab.activated"
50052
51362
  | "window_manager.layout.applied"
50053
51363
  | "window_manager.desktop.created"
50054
51364
  | "window_manager.desktop.deleted"
@@ -53761,6 +55071,8 @@ export interface operations {
53761
55071
  parent?: string;
53762
55072
  /** @description Filter by exact root session id (includes the root itself) */
53763
55073
  root?: string;
55074
+ /** @description Leave out this session and every session rooted at it (for example, a session's own tree) */
55075
+ exclude_root?: string;
53764
55076
  /** @description Filter by exact bound worktree id */
53765
55077
  worktree?: string;
53766
55078
  /** @description Search session id, name, agent, or provider; title_agent searches visible title and agent */
@@ -55825,6 +57137,115 @@ export interface operations {
55825
57137
  };
55826
57138
  };
55827
57139
  };
57140
+ readSessionFileBytes: {
57141
+ parameters: {
57142
+ query?: {
57143
+ /** @description Read one profile's rows by name */
57144
+ profile?: string;
57145
+ /** @description Read the owner-labeled all-profiles aggregate */
57146
+ all_profiles?: boolean;
57147
+ };
57148
+ header?: never;
57149
+ path: {
57150
+ /** @description Workspace id */
57151
+ workspace_id: string;
57152
+ /** @description Session id */
57153
+ session_id: string;
57154
+ /** @description Root-relative file path; its slashes are path segments */
57155
+ path: string;
57156
+ };
57157
+ cookie?: never;
57158
+ };
57159
+ requestBody?: never;
57160
+ responses: {
57161
+ /** @description File bytes */
57162
+ 200: {
57163
+ headers: {
57164
+ [name: string]: unknown;
57165
+ };
57166
+ content: {
57167
+ "*/*": string;
57168
+ };
57169
+ };
57170
+ /** @description Requested byte range */
57171
+ 206: {
57172
+ headers: {
57173
+ [name: string]: unknown;
57174
+ };
57175
+ content: {
57176
+ "*/*": string;
57177
+ };
57178
+ };
57179
+ /** @description File unchanged since the supplied validator */
57180
+ 304: {
57181
+ headers: {
57182
+ [name: string]: unknown;
57183
+ };
57184
+ content?: never;
57185
+ };
57186
+ /** @description File operation failed */
57187
+ 400: {
57188
+ headers: {
57189
+ [name: string]: unknown;
57190
+ };
57191
+ content: {
57192
+ "application/json": components["schemas"]["ErrorPayload"];
57193
+ };
57194
+ };
57195
+ /** @description File operation failed */
57196
+ 403: {
57197
+ headers: {
57198
+ [name: string]: unknown;
57199
+ };
57200
+ content: {
57201
+ "application/json": components["schemas"]["ErrorPayload"];
57202
+ };
57203
+ };
57204
+ /** @description File operation failed */
57205
+ 404: {
57206
+ headers: {
57207
+ [name: string]: unknown;
57208
+ };
57209
+ content: {
57210
+ "application/json": components["schemas"]["ErrorPayload"];
57211
+ };
57212
+ };
57213
+ /** @description File operation failed */
57214
+ 409: {
57215
+ headers: {
57216
+ [name: string]: unknown;
57217
+ };
57218
+ content: {
57219
+ "application/json": components["schemas"]["ErrorPayload"];
57220
+ };
57221
+ };
57222
+ /** @description Requested range not satisfiable */
57223
+ 416: {
57224
+ headers: {
57225
+ [name: string]: unknown;
57226
+ };
57227
+ content?: never;
57228
+ };
57229
+ /** @description File operation failed */
57230
+ 422: {
57231
+ headers: {
57232
+ [name: string]: unknown;
57233
+ };
57234
+ content: {
57235
+ "application/json": components["schemas"]["ErrorPayload"];
57236
+ };
57237
+ };
57238
+ /** @description File operation failed */
57239
+ 500: {
57240
+ headers: {
57241
+ [name: string]: unknown;
57242
+ };
57243
+ content: {
57244
+ "application/json": components["schemas"]["ErrorPayload"];
57245
+ };
57246
+ };
57247
+ };
57248
+ };
55828
57249
  searchSessionFileContents: {
55829
57250
  parameters: {
55830
57251
  query: {
@@ -56952,6 +58373,63 @@ export interface operations {
56952
58373
  };
56953
58374
  };
56954
58375
  };
58376
+ getSessionMCP: {
58377
+ parameters: {
58378
+ query?: {
58379
+ /** @description Read one profile's rows by name */
58380
+ profile?: string;
58381
+ /** @description Read the owner-labeled all-profiles aggregate */
58382
+ all_profiles?: boolean;
58383
+ };
58384
+ header?: never;
58385
+ path: {
58386
+ /** @description Workspace id */
58387
+ workspace_id: string;
58388
+ /** @description Session id */
58389
+ session_id: string;
58390
+ };
58391
+ cookie?: never;
58392
+ };
58393
+ requestBody?: never;
58394
+ responses: {
58395
+ /** @description OK */
58396
+ 200: {
58397
+ headers: {
58398
+ [name: string]: unknown;
58399
+ };
58400
+ content: {
58401
+ "application/json": components["schemas"]["SessionMCP"];
58402
+ };
58403
+ };
58404
+ /** @description Session not found */
58405
+ 404: {
58406
+ headers: {
58407
+ [name: string]: unknown;
58408
+ };
58409
+ content: {
58410
+ "application/json": components["schemas"]["ErrorPayload"];
58411
+ };
58412
+ };
58413
+ /** @description Internal server error */
58414
+ 500: {
58415
+ headers: {
58416
+ [name: string]: unknown;
58417
+ };
58418
+ content: {
58419
+ "application/json": components["schemas"]["ErrorPayload"];
58420
+ };
58421
+ };
58422
+ /** @description Session MCP read model unavailable */
58423
+ 503: {
58424
+ headers: {
58425
+ [name: string]: unknown;
58426
+ };
58427
+ content: {
58428
+ "application/json": components["schemas"]["ErrorPayload"];
58429
+ };
58430
+ };
58431
+ };
58432
+ };
56955
58433
  listSessionMonitors: {
56956
58434
  parameters: {
56957
58435
  query?: {
@@ -58918,6 +60396,7 @@ export interface operations {
58918
60396
  "text/event-stream":
58919
60397
  | components["schemas"]["SubagentsSnapshotEvent"]
58920
60398
  | components["schemas"]["SubagentUpdatedEvent"]
60399
+ | components["schemas"]["SubagentRemovedEvent"]
58921
60400
  | components["schemas"]["SessionUsageChangedPayload"]
58922
60401
  | components["schemas"]["SessionConsumerDegradedPayload"]
58923
60402
  | components["schemas"]["SessionEventPayload"]
@@ -58977,7 +60456,7 @@ export interface operations {
58977
60456
  limit?: number;
58978
60457
  /** @description Opaque next_cursor from the previous page */
58979
60458
  cursor?: string;
58980
- /** @description Row order: newest first (default), or most urgent first (waiting, failed, working, queued, settled) then newest */
60459
+ /** @description Row order: newest first (default), or most urgent first (waiting, working, failed, queued, settled) then newest */
58981
60460
  order?: "newest" | "urgency";
58982
60461
  /** @description Read one profile's rows by name */
58983
60462
  profile?: string;
@@ -59915,6 +61394,86 @@ export interface operations {
59915
61394
  };
59916
61395
  };
59917
61396
  };
61397
+ deleteSubagent: {
61398
+ parameters: {
61399
+ query?: {
61400
+ /** @description Act as this profile by name */
61401
+ profile?: string;
61402
+ };
61403
+ header?: never;
61404
+ path: {
61405
+ /** @description Workspace id */
61406
+ workspace_id: string;
61407
+ /** @description Subagent id */
61408
+ subagent_id: string;
61409
+ };
61410
+ cookie?: never;
61411
+ };
61412
+ requestBody?: never;
61413
+ responses: {
61414
+ /** @description No Content */
61415
+ 204: {
61416
+ headers: {
61417
+ [name: string]: unknown;
61418
+ };
61419
+ content?: never;
61420
+ };
61421
+ /** @description Invalid request */
61422
+ 400: {
61423
+ headers: {
61424
+ [name: string]: unknown;
61425
+ };
61426
+ content: {
61427
+ "application/json": components["schemas"]["ErrorPayload"];
61428
+ };
61429
+ };
61430
+ /** @description Capability denied */
61431
+ 403: {
61432
+ headers: {
61433
+ [name: string]: unknown;
61434
+ };
61435
+ content: {
61436
+ "application/json": components["schemas"]["ErrorPayload"];
61437
+ };
61438
+ };
61439
+ /** @description Session or subagent not found */
61440
+ 404: {
61441
+ headers: {
61442
+ [name: string]: unknown;
61443
+ };
61444
+ content: {
61445
+ "application/json": components["schemas"]["ErrorPayload"];
61446
+ };
61447
+ };
61448
+ /** @description Subagent is provider-native and follows its parent turn */
61449
+ 409: {
61450
+ headers: {
61451
+ [name: string]: unknown;
61452
+ };
61453
+ content: {
61454
+ "application/json": components["schemas"]["ErrorPayload"];
61455
+ };
61456
+ };
61457
+ /** @description Internal server error */
61458
+ 500: {
61459
+ headers: {
61460
+ [name: string]: unknown;
61461
+ };
61462
+ content: {
61463
+ "application/json": components["schemas"]["ErrorPayload"];
61464
+ };
61465
+ };
61466
+ /** @description Subagents unavailable */
61467
+ 503: {
61468
+ headers: {
61469
+ [name: string]: unknown;
61470
+ };
61471
+ content: {
61472
+ "application/json": components["schemas"]["ErrorPayload"];
61473
+ };
61474
+ };
61475
+ };
61476
+ };
59918
61477
  cancelSubagent: {
59919
61478
  parameters: {
59920
61479
  query?: {
@@ -61842,7 +63401,7 @@ export interface operations {
61842
63401
  query?: {
61843
63402
  /** @description Zero-based byte offset */
61844
63403
  offset?: number;
61845
- /** @description Page size in bytes; defaults to and is capped at 65536 */
63404
+ /** @description Page size in bytes; defaults to 32768 and is capped at 65536 */
61846
63405
  limit?: number;
61847
63406
  /** @description Act as this profile by name */
61848
63407
  profile?: string;
@@ -62647,7 +64206,7 @@ export interface operations {
62647
64206
  };
62648
64207
  };
62649
64208
  responses: {
62650
- /** @description Validation result */
64209
+ /** @description Validation diagnostics and the canonical v6 document when valid */
62651
64210
  200: {
62652
64211
  headers: {
62653
64212
  [name: string]: unknown;
@@ -62703,6 +64262,153 @@ export interface operations {
62703
64262
  };
62704
64263
  };
62705
64264
  };
64265
+ getWindowManagerMigration: {
64266
+ parameters: {
64267
+ query?: {
64268
+ /** @description Act as this profile by name */
64269
+ profile?: string;
64270
+ };
64271
+ header?: never;
64272
+ path: {
64273
+ /** @description Workspace id */
64274
+ workspace_id: string;
64275
+ };
64276
+ cookie?: never;
64277
+ };
64278
+ requestBody?: never;
64279
+ responses: {
64280
+ /** @description OK */
64281
+ 200: {
64282
+ headers: {
64283
+ [name: string]: unknown;
64284
+ };
64285
+ content: {
64286
+ "application/json": components["schemas"]["MigrationStatus"];
64287
+ };
64288
+ };
64289
+ /** @description Invalid window workspace binding */
64290
+ 400: {
64291
+ headers: {
64292
+ [name: string]: unknown;
64293
+ };
64294
+ content: {
64295
+ "application/json": components["schemas"]["ContractWindowManagerErrorPayload"];
64296
+ };
64297
+ };
64298
+ /** @description Workspace or referenced entity not found */
64299
+ 404: {
64300
+ headers: {
64301
+ [name: string]: unknown;
64302
+ };
64303
+ content: {
64304
+ "application/json": components["schemas"]["ContractWindowManagerErrorPayload"];
64305
+ };
64306
+ };
64307
+ /** @description Revision or state conflict */
64308
+ 409: {
64309
+ headers: {
64310
+ [name: string]: unknown;
64311
+ };
64312
+ content: {
64313
+ "application/json": components["schemas"]["ContractWindowManagerErrorPayload"];
64314
+ };
64315
+ };
64316
+ /** @description Invalid window-manager request */
64317
+ 422: {
64318
+ headers: {
64319
+ [name: string]: unknown;
64320
+ };
64321
+ content: {
64322
+ "application/json": components["schemas"]["ContractWindowManagerErrorPayload"];
64323
+ };
64324
+ };
64325
+ /** @description Window manager unavailable */
64326
+ 503: {
64327
+ headers: {
64328
+ [name: string]: unknown;
64329
+ };
64330
+ content: {
64331
+ "application/json": components["schemas"]["ContractWindowManagerErrorPayload"];
64332
+ };
64333
+ };
64334
+ };
64335
+ };
64336
+ updateWindowManagerMigration: {
64337
+ parameters: {
64338
+ query?: {
64339
+ /** @description Act as this profile by name */
64340
+ profile?: string;
64341
+ };
64342
+ header?: never;
64343
+ path: {
64344
+ /** @description Workspace id */
64345
+ workspace_id: string;
64346
+ };
64347
+ cookie?: never;
64348
+ };
64349
+ /** @description JSON request body */
64350
+ requestBody: {
64351
+ content: {
64352
+ "application/json": components["schemas"]["WindowManagerMigrationRequest"];
64353
+ };
64354
+ };
64355
+ responses: {
64356
+ /** @description OK */
64357
+ 200: {
64358
+ headers: {
64359
+ [name: string]: unknown;
64360
+ };
64361
+ content: {
64362
+ "application/json": components["schemas"]["MigrationStatus"];
64363
+ };
64364
+ };
64365
+ /** @description Invalid window workspace binding */
64366
+ 400: {
64367
+ headers: {
64368
+ [name: string]: unknown;
64369
+ };
64370
+ content: {
64371
+ "application/json": components["schemas"]["ContractWindowManagerErrorPayload"];
64372
+ };
64373
+ };
64374
+ /** @description Workspace or referenced entity not found */
64375
+ 404: {
64376
+ headers: {
64377
+ [name: string]: unknown;
64378
+ };
64379
+ content: {
64380
+ "application/json": components["schemas"]["ContractWindowManagerErrorPayload"];
64381
+ };
64382
+ };
64383
+ /** @description Revision or state conflict */
64384
+ 409: {
64385
+ headers: {
64386
+ [name: string]: unknown;
64387
+ };
64388
+ content: {
64389
+ "application/json": components["schemas"]["ContractWindowManagerErrorPayload"];
64390
+ };
64391
+ };
64392
+ /** @description Invalid window-manager request */
64393
+ 422: {
64394
+ headers: {
64395
+ [name: string]: unknown;
64396
+ };
64397
+ content: {
64398
+ "application/json": components["schemas"]["ContractWindowManagerErrorPayload"];
64399
+ };
64400
+ };
64401
+ /** @description Window manager unavailable */
64402
+ 503: {
64403
+ headers: {
64404
+ [name: string]: unknown;
64405
+ };
64406
+ content: {
64407
+ "application/json": components["schemas"]["ContractWindowManagerErrorPayload"];
64408
+ };
64409
+ };
64410
+ };
64411
+ };
62706
64412
  previewWindowManagerCommand: {
62707
64413
  parameters: {
62708
64414
  query?: {
@@ -63185,6 +64891,100 @@ export interface operations {
63185
64891
  };
63186
64892
  };
63187
64893
  };
64894
+ removeWorktrees: {
64895
+ parameters: {
64896
+ query?: {
64897
+ /** @description Act as this profile by name. If omitted, operator requests infer the target record owner; authenticated agents remain scoped to their session profile. */
64898
+ profile?: string;
64899
+ };
64900
+ header?: never;
64901
+ path: {
64902
+ /** @description Workspace id or path */
64903
+ workspace_id: string;
64904
+ };
64905
+ cookie?: never;
64906
+ };
64907
+ /** @description JSON request body */
64908
+ requestBody: {
64909
+ content: {
64910
+ "application/json": components["schemas"]["RemoveWorktreesRequest"];
64911
+ };
64912
+ };
64913
+ responses: {
64914
+ /** @description Per-target removal results or dry-run risk; inspect every result */
64915
+ 200: {
64916
+ headers: {
64917
+ [name: string]: unknown;
64918
+ };
64919
+ content: {
64920
+ "application/json": components["schemas"]["RemoveWorktreesResponse"];
64921
+ };
64922
+ };
64923
+ /** @description Invalid worktree request */
64924
+ 400: {
64925
+ headers: {
64926
+ [name: string]: unknown;
64927
+ };
64928
+ content: {
64929
+ "application/json": components["schemas"]["ErrorPayload"];
64930
+ };
64931
+ };
64932
+ /** @description Forbidden */
64933
+ 403: {
64934
+ headers: {
64935
+ [name: string]: unknown;
64936
+ };
64937
+ content: {
64938
+ "application/json": components["schemas"]["ErrorPayload"];
64939
+ };
64940
+ };
64941
+ /** @description Worktree or workspace not found */
64942
+ 404: {
64943
+ headers: {
64944
+ [name: string]: unknown;
64945
+ };
64946
+ content: {
64947
+ "application/json": components["schemas"]["ErrorPayload"];
64948
+ };
64949
+ };
64950
+ /** @description Worktree operation conflict */
64951
+ 409: {
64952
+ headers: {
64953
+ [name: string]: unknown;
64954
+ };
64955
+ content: {
64956
+ "application/json": components["schemas"]["ErrorPayload"];
64957
+ };
64958
+ };
64959
+ /** @description Invalid worktree configuration */
64960
+ 422: {
64961
+ headers: {
64962
+ [name: string]: unknown;
64963
+ };
64964
+ content: {
64965
+ "application/json": components["schemas"]["ErrorPayload"];
64966
+ };
64967
+ };
64968
+ /** @description Internal server error */
64969
+ 500: {
64970
+ headers: {
64971
+ [name: string]: unknown;
64972
+ };
64973
+ content: {
64974
+ "application/json": components["schemas"]["ErrorPayload"];
64975
+ };
64976
+ };
64977
+ /** @description Worktree service is unavailable */
64978
+ 503: {
64979
+ headers: {
64980
+ [name: string]: unknown;
64981
+ };
64982
+ content: {
64983
+ "application/json": components["schemas"]["ErrorPayload"];
64984
+ };
64985
+ };
64986
+ };
64987
+ };
63188
64988
  inspectWorktree: {
63189
64989
  parameters: {
63190
64990
  query?: never;
@@ -63809,6 +65609,115 @@ export interface operations {
63809
65609
  };
63810
65610
  };
63811
65611
  };
65612
+ readWorktreeFileBytes: {
65613
+ parameters: {
65614
+ query?: {
65615
+ /** @description Read one profile's rows by name */
65616
+ profile?: string;
65617
+ /** @description Read the owner-labeled all-profiles aggregate */
65618
+ all_profiles?: boolean;
65619
+ };
65620
+ header?: never;
65621
+ path: {
65622
+ /** @description Workspace id */
65623
+ workspace_id: string;
65624
+ /** @description Worktree id */
65625
+ worktree_id: string;
65626
+ /** @description Root-relative file path; its slashes are path segments */
65627
+ path: string;
65628
+ };
65629
+ cookie?: never;
65630
+ };
65631
+ requestBody?: never;
65632
+ responses: {
65633
+ /** @description File bytes */
65634
+ 200: {
65635
+ headers: {
65636
+ [name: string]: unknown;
65637
+ };
65638
+ content: {
65639
+ "*/*": string;
65640
+ };
65641
+ };
65642
+ /** @description Requested byte range */
65643
+ 206: {
65644
+ headers: {
65645
+ [name: string]: unknown;
65646
+ };
65647
+ content: {
65648
+ "*/*": string;
65649
+ };
65650
+ };
65651
+ /** @description File unchanged since the supplied validator */
65652
+ 304: {
65653
+ headers: {
65654
+ [name: string]: unknown;
65655
+ };
65656
+ content?: never;
65657
+ };
65658
+ /** @description File operation failed */
65659
+ 400: {
65660
+ headers: {
65661
+ [name: string]: unknown;
65662
+ };
65663
+ content: {
65664
+ "application/json": components["schemas"]["ErrorPayload"];
65665
+ };
65666
+ };
65667
+ /** @description File operation failed */
65668
+ 403: {
65669
+ headers: {
65670
+ [name: string]: unknown;
65671
+ };
65672
+ content: {
65673
+ "application/json": components["schemas"]["ErrorPayload"];
65674
+ };
65675
+ };
65676
+ /** @description File operation failed */
65677
+ 404: {
65678
+ headers: {
65679
+ [name: string]: unknown;
65680
+ };
65681
+ content: {
65682
+ "application/json": components["schemas"]["ErrorPayload"];
65683
+ };
65684
+ };
65685
+ /** @description File operation failed */
65686
+ 409: {
65687
+ headers: {
65688
+ [name: string]: unknown;
65689
+ };
65690
+ content: {
65691
+ "application/json": components["schemas"]["ErrorPayload"];
65692
+ };
65693
+ };
65694
+ /** @description Requested range not satisfiable */
65695
+ 416: {
65696
+ headers: {
65697
+ [name: string]: unknown;
65698
+ };
65699
+ content?: never;
65700
+ };
65701
+ /** @description File operation failed */
65702
+ 422: {
65703
+ headers: {
65704
+ [name: string]: unknown;
65705
+ };
65706
+ content: {
65707
+ "application/json": components["schemas"]["ErrorPayload"];
65708
+ };
65709
+ };
65710
+ /** @description File operation failed */
65711
+ 500: {
65712
+ headers: {
65713
+ [name: string]: unknown;
65714
+ };
65715
+ content: {
65716
+ "application/json": components["schemas"]["ErrorPayload"];
65717
+ };
65718
+ };
65719
+ };
65720
+ };
63812
65721
  getWorktreeStatus: {
63813
65722
  parameters: {
63814
65723
  query?: {