@compozy/client 0.3.0-beta.38 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2689,6 +2689,23 @@ export interface paths {
2689
2689
  patch?: never;
2690
2690
  trace?: never;
2691
2691
  };
2692
+ "/api/sessions/{session_id}/pull-request/refresh": {
2693
+ parameters: {
2694
+ query?: never;
2695
+ header?: never;
2696
+ path?: never;
2697
+ cookie?: never;
2698
+ };
2699
+ get?: never;
2700
+ put?: never;
2701
+ /** Refresh a session pull request */
2702
+ post: operations["refreshSessionPullRequest"];
2703
+ delete?: never;
2704
+ options?: never;
2705
+ head?: never;
2706
+ patch?: never;
2707
+ trace?: never;
2708
+ };
2692
2709
  "/api/sessions/{session_id}/status": {
2693
2710
  parameters: {
2694
2711
  query?: never;
@@ -5309,7 +5326,7 @@ export interface paths {
5309
5326
  };
5310
5327
  get?: never;
5311
5328
  put?: never;
5312
- /** Archive a stopped session */
5329
+ /** Archive a stopped session, or stop and archive a live session with stop=true */
5313
5330
  post: operations["archiveSession"];
5314
5331
  delete?: never;
5315
5332
  options?: never;
@@ -5692,6 +5709,24 @@ export interface paths {
5692
5709
  patch?: never;
5693
5710
  trace?: never;
5694
5711
  };
5712
+ "/api/workspaces/{workspace_id}/sessions/{session_id}/parent": {
5713
+ parameters: {
5714
+ query?: never;
5715
+ header?: never;
5716
+ path?: never;
5717
+ cookie?: never;
5718
+ };
5719
+ get?: never;
5720
+ /** Adopt a parentless user session as a child of another session */
5721
+ put: operations["setSessionParent"];
5722
+ post?: never;
5723
+ /** Make an adopted child session top-level again */
5724
+ delete: operations["clearSessionParent"];
5725
+ options?: never;
5726
+ head?: never;
5727
+ patch?: never;
5728
+ trace?: never;
5729
+ };
5695
5730
  "/api/workspaces/{workspace_id}/sessions/{session_id}/presence": {
5696
5731
  parameters: {
5697
5732
  query?: never;
@@ -6790,6 +6825,23 @@ export interface paths {
6790
6825
  patch?: never;
6791
6826
  trace?: never;
6792
6827
  };
6828
+ "/api/workspaces/{workspace_id}/worktrees/{worktree_id}/exit/prepare": {
6829
+ parameters: {
6830
+ query?: never;
6831
+ header?: never;
6832
+ path?: never;
6833
+ cookie?: never;
6834
+ };
6835
+ get?: never;
6836
+ put?: never;
6837
+ /** Resolve forge capabilities and prepare the worktree exit plan */
6838
+ post: operations["prepareWorktreeExitPlan"];
6839
+ delete?: never;
6840
+ options?: never;
6841
+ head?: never;
6842
+ patch?: never;
6843
+ trace?: never;
6844
+ };
6793
6845
  "/api/workspaces/{workspace_id}/worktrees/{worktree_id}/status": {
6794
6846
  parameters: {
6795
6847
  query?: never;
@@ -13138,11 +13190,37 @@ export interface components {
13138
13190
  /** Format: date-time */
13139
13191
  at: string;
13140
13192
  class: string;
13141
- from: string;
13193
+ /** @enum {string} */
13194
+ from:
13195
+ | "running"
13196
+ | "idle"
13197
+ | "unhealthy"
13198
+ | "hung"
13199
+ | "waiting-for-auth"
13200
+ | "waiting-for-input"
13201
+ | "done"
13202
+ | "stopped"
13203
+ | "failed"
13204
+ | "unknown"
13205
+ | "needs-attention"
13206
+ | "waiting";
13142
13207
  profile_id: string;
13143
13208
  profile_name: string;
13144
13209
  session_id: string;
13145
- to: string;
13210
+ /** @enum {string} */
13211
+ to:
13212
+ | "running"
13213
+ | "idle"
13214
+ | "unhealthy"
13215
+ | "hung"
13216
+ | "waiting-for-auth"
13217
+ | "waiting-for-input"
13218
+ | "done"
13219
+ | "stopped"
13220
+ | "failed"
13221
+ | "unknown"
13222
+ | "needs-attention"
13223
+ | "waiting";
13146
13224
  workspace_id: string;
13147
13225
  };
13148
13226
  SessionAttentionSummaryPayload: {
@@ -13150,6 +13228,12 @@ export interface components {
13150
13228
  finished: number;
13151
13229
  needs_you: number;
13152
13230
  };
13231
+ SessionBoardCountsPayload: {
13232
+ done: number;
13233
+ in_review: number;
13234
+ needs_you: number;
13235
+ working: number;
13236
+ };
13153
13237
  SessionCatalogEventPayload: {
13154
13238
  kind: string;
13155
13239
  profile_id: string;
@@ -13159,6 +13243,7 @@ export interface components {
13159
13243
  };
13160
13244
  SessionCatalogFacetsPayload: {
13161
13245
  all: number;
13246
+ board: components["schemas"]["SessionBoardCountsPayload"];
13162
13247
  finished: number;
13163
13248
  idle: number;
13164
13249
  needs_you: number;
@@ -13180,6 +13265,13 @@ export interface components {
13180
13265
  page: components["schemas"]["SessionCatalogPagePayload"];
13181
13266
  sessions: components["schemas"]["SessionPayload"][];
13182
13267
  };
13268
+ SessionChildrenPayload: {
13269
+ done: number;
13270
+ in_review: number;
13271
+ needs_you: number;
13272
+ total: number;
13273
+ working: number;
13274
+ };
13183
13275
  SessionCommandPayload: {
13184
13276
  available: boolean;
13185
13277
  canonical_token: string;
@@ -13694,8 +13786,25 @@ export interface components {
13694
13786
  /** Format: date-time */
13695
13787
  attention_changed_at?: string | null;
13696
13788
  available_commands: components["schemas"]["ACPAvailableCommandPayload"][];
13697
- badge: string;
13789
+ /** @enum {string} */
13790
+ badge:
13791
+ | "running"
13792
+ | "idle"
13793
+ | "unhealthy"
13794
+ | "hung"
13795
+ | "waiting-for-auth"
13796
+ | "waiting-for-input"
13797
+ | "done"
13798
+ | "stopped"
13799
+ | "failed"
13800
+ | "unknown"
13801
+ | "needs-attention"
13802
+ | "waiting";
13803
+ /** @enum {string} */
13804
+ board_column: "needs_you" | "working" | "in_review" | "done";
13805
+ branch?: string;
13698
13806
  busy_input?: components["schemas"]["BusyInputState"] | null;
13807
+ children?: components["schemas"]["SessionChildrenPayload"] | null;
13699
13808
  /** Format: date-time */
13700
13809
  created_at: string;
13701
13810
  derivation?: components["schemas"]["SessionDerivationPayload"] | null;
@@ -13708,6 +13817,7 @@ export interface components {
13708
13817
  lineage?: components["schemas"]["SessionLineagePayload"] | null;
13709
13818
  monitor_summary?: components["schemas"]["SessionMonitorSummaryPayload"] | null;
13710
13819
  name?: string;
13820
+ parent_title?: string;
13711
13821
  pending_interactions: components["schemas"]["PendingInteractionPayload"][];
13712
13822
  profile_archived?: boolean;
13713
13823
  profile_color?: string;
@@ -13715,6 +13825,8 @@ export interface components {
13715
13825
  profile_icon?: string;
13716
13826
  profile_id: string;
13717
13827
  profile_name: string;
13828
+ pull_request: components["schemas"]["SessionPullRequestPayload"] | null;
13829
+ pull_request_lookup: components["schemas"]["SessionPullRequestLookupPayload"] | null;
13718
13830
  queue?: components["schemas"]["SessionQueueSummaryPayload"] | null;
13719
13831
  reply_watches?: components["schemas"]["ReplyWatchPayload"][];
13720
13832
  runtime: components["schemas"]["SessionRuntimePayload"];
@@ -13745,6 +13857,8 @@ export interface components {
13745
13857
  /** Format: date-time */
13746
13858
  updated_at: string;
13747
13859
  verified?: boolean | null;
13860
+ /** @enum {string} */
13861
+ waiting_on?: "sessions" | "monitor";
13748
13862
  workspace_id?: string;
13749
13863
  workspace_path?: string;
13750
13864
  worktree_id?: string;
@@ -13776,6 +13890,56 @@ export interface components {
13776
13890
  /** @enum {string} */
13777
13891
  runtime_strategy?: "session_config" | "launch_arg" | "provider_managed";
13778
13892
  };
13893
+ SessionPullRequestChecksPayload: {
13894
+ failed: number;
13895
+ failed_names: string[];
13896
+ passed: number;
13897
+ pending: number;
13898
+ /** @enum {string} */
13899
+ state: "passing" | "failing" | "pending" | "none" | "unknown";
13900
+ };
13901
+ SessionPullRequestErrorPayload: {
13902
+ cause?: string;
13903
+ code?: string;
13904
+ config_path?: string;
13905
+ current_turn_id?: string;
13906
+ details?: {
13907
+ [key: string]: string;
13908
+ };
13909
+ diagnostic?: components["schemas"]["DiagnosticItem"] | null;
13910
+ error: string;
13911
+ message: string;
13912
+ unknown_keys?: string[];
13913
+ };
13914
+ SessionPullRequestLookupPayload: {
13915
+ cause: string;
13916
+ /** Format: date-time */
13917
+ observed_at: string | null;
13918
+ stale: boolean;
13919
+ /** @enum {string} */
13920
+ state: "ok" | "pending" | "error" | "incomplete";
13921
+ };
13922
+ SessionPullRequestPayload: {
13923
+ checks: components["schemas"]["SessionPullRequestChecksPayload"];
13924
+ draft: boolean | null;
13925
+ head_sha: string;
13926
+ /** @enum {string} */
13927
+ mergeable: "mergeable" | "conflicting" | "unknown";
13928
+ number: number;
13929
+ provider: string;
13930
+ ready_to_merge: boolean;
13931
+ /** @enum {string} */
13932
+ review_decision: "approved" | "changes_requested" | "review_required" | "none" | "unknown";
13933
+ /** @enum {string} */
13934
+ state: "open" | "closed" | "merged";
13935
+ url: string;
13936
+ };
13937
+ SessionPullRequestResponse: {
13938
+ branch: string;
13939
+ pull_request: components["schemas"]["SessionPullRequestPayload"] | null;
13940
+ pull_request_lookup: components["schemas"]["SessionPullRequestLookupPayload"] | null;
13941
+ session_id: string;
13942
+ };
13779
13943
  SessionQueueSummaryPayload: {
13780
13944
  cap: number;
13781
13945
  entries: number;
@@ -13819,6 +13983,7 @@ export interface components {
13819
13983
  generation?: number;
13820
13984
  last_known?: components["schemas"]["RuntimeSelectionPayload"] | null;
13821
13985
  recovery?: components["schemas"]["SessionRuntimeRecoveryPayload"] | null;
13986
+ requested?: components["schemas"]["PromptRuntimeSelectionPayload"] | null;
13822
13987
  selected?: components["schemas"]["PromptRuntimeSelectionPayload"] | null;
13823
13988
  /** Format: int64 */
13824
13989
  selection_revision: number;
@@ -13855,7 +14020,20 @@ export interface components {
13855
14020
  agent_name: string;
13856
14021
  attachable: boolean;
13857
14022
  attention?: string;
13858
- badge: string;
14023
+ /** @enum {string} */
14024
+ badge:
14025
+ | "running"
14026
+ | "idle"
14027
+ | "unhealthy"
14028
+ | "hung"
14029
+ | "waiting-for-auth"
14030
+ | "waiting-for-input"
14031
+ | "done"
14032
+ | "stopped"
14033
+ | "failed"
14034
+ | "unknown"
14035
+ | "needs-attention"
14036
+ | "waiting";
13859
14037
  derivation?: components["schemas"]["SessionDerivationPayload"] | null;
13860
14038
  eligible_for_wake: boolean;
13861
14039
  escalated?: boolean | null;
@@ -13955,6 +14133,7 @@ export interface components {
13955
14133
  total_tokens?: number | null;
13956
14134
  /** Format: int64 */
13957
14135
  turn_count: number;
14136
+ work_time?: components["schemas"]["SessionWorkTimePayload"] | null;
13958
14137
  };
13959
14138
  SessionUsageResponse: {
13960
14139
  usage: components["schemas"]["SessionUsagePayload"];
@@ -13989,6 +14168,13 @@ export interface components {
13989
14168
  /** Format: int64 */
13990
14169
  waited_ms: number;
13991
14170
  };
14171
+ SessionWorkTimePayload: {
14172
+ /** Format: int64 */
14173
+ active_duration_ms: number;
14174
+ last_completed_turn_id?: string;
14175
+ /** Format: int64 */
14176
+ turn_count: number;
14177
+ };
13992
14178
  SessionWorkspaceFacetsPayload: {
13993
14179
  facets: components["schemas"]["SessionCatalogFacetsPayload"];
13994
14180
  workspace_id: string;
@@ -14000,6 +14186,9 @@ export interface components {
14000
14186
  SetExtensionSecretsRequest: {
14001
14187
  bindings: components["schemas"]["ExtensionSecretBindingInput"][];
14002
14188
  };
14189
+ SetSessionParentRequest: {
14190
+ parent_session_id: string;
14191
+ };
14003
14192
  SetSessionRuntimeRequest: {
14004
14193
  /** Format: int64 */
14005
14194
  expected_revision: number | null;
@@ -15592,7 +15781,8 @@ export interface components {
15592
15781
  | "loop_run"
15593
15782
  | "task_lease"
15594
15783
  | "scheduled_wait"
15595
- | "awaiting_reply";
15784
+ | "awaiting_reply"
15785
+ | "active_monitor";
15596
15786
  ref?: string;
15597
15787
  state: string;
15598
15788
  };
@@ -17634,6 +17824,7 @@ export interface components {
17634
17824
  | "recording_already_started"
17635
17825
  | "recording_not_active"
17636
17826
  | "recording_unavailable"
17827
+ | "session_archive_stop_failed"
17637
17828
  | "session_busy"
17638
17829
  | "slow_consumer"
17639
17830
  | "subscriber_limit_reached"
@@ -17826,6 +18017,7 @@ export interface components {
17826
18017
  | "recording_already_started"
17827
18018
  | "recording_not_active"
17828
18019
  | "recording_unavailable"
18020
+ | "session_archive_stop_failed"
17829
18021
  | "session_busy"
17830
18022
  | "slow_consumer"
17831
18023
  | "subscriber_limit_reached"
@@ -19300,7 +19492,8 @@ export interface components {
19300
19492
  | "loop_run"
19301
19493
  | "task_lease"
19302
19494
  | "scheduled_wait"
19303
- | "awaiting_reply";
19495
+ | "awaiting_reply"
19496
+ | "active_monitor";
19304
19497
  ref?: string;
19305
19498
  /** Format: date-time */
19306
19499
  since: string;
@@ -31869,6 +32062,8 @@ export interface operations {
31869
32062
  agent?: string;
31870
32063
  /** @description Subagent session visibility (default include) */
31871
32064
  subagents?: "include" | "exclude" | "only";
32065
+ /** @description Managed child visibility */
32066
+ children?: "include" | "exclude";
31872
32067
  /** @description Filter by exact parent session id */
31873
32068
  parent?: string;
31874
32069
  /** @description Filter by exact root session id (includes the root itself) */
@@ -31883,6 +32078,8 @@ export interface operations {
31883
32078
  resumable?: boolean;
31884
32079
  /** @description Only list sessions in the needs-you attention class */
31885
32080
  attention?: boolean;
32081
+ /** @description Repeatable board column filter: needs_you, working, in_review, done */
32082
+ board_column?: string[];
31886
32083
  /** @description Filter by comma-separated exact session badges */
31887
32084
  badge?: string;
31888
32085
  /** @description Archived session visibility */
@@ -32164,6 +32361,8 @@ export interface operations {
32164
32361
  agent?: string;
32165
32362
  /** @description Subagent session visibility (default include) */
32166
32363
  subagents?: "include" | "exclude" | "only";
32364
+ /** @description Managed child visibility */
32365
+ children?: "include" | "exclude";
32167
32366
  /** @description Filter by exact parent session id */
32168
32367
  parent?: string;
32169
32368
  /** @description Filter by exact root session id (includes the root itself) */
@@ -32470,6 +32669,59 @@ export interface operations {
32470
32669
  };
32471
32670
  };
32472
32671
  };
32672
+ refreshSessionPullRequest: {
32673
+ parameters: {
32674
+ query?: {
32675
+ /** @description Act as this profile by name */
32676
+ profile?: string;
32677
+ };
32678
+ header?: never;
32679
+ path: {
32680
+ /** @description Session id */
32681
+ session_id: string;
32682
+ };
32683
+ cookie?: never;
32684
+ };
32685
+ requestBody?: never;
32686
+ responses: {
32687
+ /** @description Refreshed or retained cached facts */
32688
+ 200: {
32689
+ headers: {
32690
+ [name: string]: unknown;
32691
+ };
32692
+ content: {
32693
+ "application/json": components["schemas"]["SessionPullRequestResponse"];
32694
+ };
32695
+ };
32696
+ /** @description Session not found */
32697
+ 404: {
32698
+ headers: {
32699
+ [name: string]: unknown;
32700
+ };
32701
+ content: {
32702
+ "application/json": components["schemas"]["ErrorPayload"];
32703
+ };
32704
+ };
32705
+ /** @description Session branch unavailable */
32706
+ 409: {
32707
+ headers: {
32708
+ [name: string]: unknown;
32709
+ };
32710
+ content: {
32711
+ "application/json": components["schemas"]["SessionPullRequestErrorPayload"];
32712
+ };
32713
+ };
32714
+ /** @description Forge unavailable without cached facts */
32715
+ 502: {
32716
+ headers: {
32717
+ [name: string]: unknown;
32718
+ };
32719
+ content: {
32720
+ "application/json": components["schemas"]["SessionPullRequestErrorPayload"];
32721
+ };
32722
+ };
32723
+ };
32724
+ };
32473
32725
  getGlobalSessionStatus: {
32474
32726
  parameters: {
32475
32727
  query?: {
@@ -45592,6 +45844,8 @@ export interface operations {
45592
45844
  agent?: string;
45593
45845
  /** @description Subagent session visibility (default include) */
45594
45846
  subagents?: "include" | "exclude" | "only";
45847
+ /** @description Managed child visibility */
45848
+ children?: "include" | "exclude";
45595
45849
  /** @description Filter by exact parent session id */
45596
45850
  parent?: string;
45597
45851
  /** @description Filter by exact root session id (includes the root itself) */
@@ -45606,6 +45860,8 @@ export interface operations {
45606
45860
  resumable?: boolean;
45607
45861
  /** @description Only list sessions in the needs-you attention class */
45608
45862
  attention?: boolean;
45863
+ /** @description Repeatable board column filter: needs_you, working, in_review, done */
45864
+ board_column?: string[];
45609
45865
  /** @description Filter by comma-separated exact session badges */
45610
45866
  badge?: string;
45611
45867
  /** @description Archived session visibility */
@@ -45916,6 +46172,8 @@ export interface operations {
45916
46172
  archiveSession: {
45917
46173
  parameters: {
45918
46174
  query?: {
46175
+ /** @description Stop a live session through the normal stop path before archiving it; a failed stop leaves it unarchived */
46176
+ stop?: boolean;
45919
46177
  /** @description Act as this profile by name */
45920
46178
  profile?: string;
45921
46179
  };
@@ -45939,6 +46197,15 @@ export interface operations {
45939
46197
  "application/json": components["schemas"]["SessionResponse"];
45940
46198
  };
45941
46199
  };
46200
+ /** @description Invalid archive request */
46201
+ 400: {
46202
+ headers: {
46203
+ [name: string]: unknown;
46204
+ };
46205
+ content: {
46206
+ "application/json": components["schemas"]["ErrorPayload"];
46207
+ };
46208
+ };
45942
46209
  /** @description Session not found */
45943
46210
  404: {
45944
46211
  headers: {
@@ -45948,7 +46215,7 @@ export interface operations {
45948
46215
  "application/json": components["schemas"]["ErrorPayload"];
45949
46216
  };
45950
46217
  };
45951
- /** @description Session must be stopped before archiving */
46218
+ /** @description Session must be stopped before archiving, or the requested stop failed */
45952
46219
  409: {
45953
46220
  headers: {
45954
46221
  [name: string]: unknown;
@@ -47534,6 +47801,157 @@ export interface operations {
47534
47801
  };
47535
47802
  };
47536
47803
  };
47804
+ setSessionParent: {
47805
+ parameters: {
47806
+ query?: {
47807
+ /** @description Act as this profile by name */
47808
+ profile?: string;
47809
+ };
47810
+ header?: never;
47811
+ path: {
47812
+ /** @description Workspace id */
47813
+ workspace_id: string;
47814
+ /** @description Session id */
47815
+ session_id: string;
47816
+ };
47817
+ cookie?: never;
47818
+ };
47819
+ /** @description JSON request body */
47820
+ requestBody: {
47821
+ content: {
47822
+ "application/json": components["schemas"]["SetSessionParentRequest"];
47823
+ };
47824
+ };
47825
+ responses: {
47826
+ /** @description OK */
47827
+ 200: {
47828
+ headers: {
47829
+ [name: string]: unknown;
47830
+ };
47831
+ content: {
47832
+ "application/json": components["schemas"]["SessionResponse"];
47833
+ };
47834
+ };
47835
+ /** @description Invalid reparent request */
47836
+ 400: {
47837
+ headers: {
47838
+ [name: string]: unknown;
47839
+ };
47840
+ content: {
47841
+ "application/json": components["schemas"]["ErrorPayload"];
47842
+ };
47843
+ };
47844
+ /** @description Session not found */
47845
+ 404: {
47846
+ headers: {
47847
+ [name: string]: unknown;
47848
+ };
47849
+ content: {
47850
+ "application/json": components["schemas"]["ErrorPayload"];
47851
+ };
47852
+ };
47853
+ /** @description Reparent refused by a lineage rule; code names the rule */
47854
+ 409: {
47855
+ headers: {
47856
+ [name: string]: unknown;
47857
+ };
47858
+ content: {
47859
+ "application/json": components["schemas"]["ErrorPayload"];
47860
+ };
47861
+ };
47862
+ /** @description Internal server error */
47863
+ 500: {
47864
+ headers: {
47865
+ [name: string]: unknown;
47866
+ };
47867
+ content: {
47868
+ "application/json": components["schemas"]["ErrorPayload"];
47869
+ };
47870
+ };
47871
+ /** @description Session reparent unavailable */
47872
+ 503: {
47873
+ headers: {
47874
+ [name: string]: unknown;
47875
+ };
47876
+ content: {
47877
+ "application/json": components["schemas"]["ErrorPayload"];
47878
+ };
47879
+ };
47880
+ };
47881
+ };
47882
+ clearSessionParent: {
47883
+ parameters: {
47884
+ query?: {
47885
+ /** @description Act as this profile by name */
47886
+ profile?: string;
47887
+ };
47888
+ header?: never;
47889
+ path: {
47890
+ /** @description Workspace id */
47891
+ workspace_id: string;
47892
+ /** @description Session id */
47893
+ session_id: string;
47894
+ };
47895
+ cookie?: never;
47896
+ };
47897
+ requestBody?: never;
47898
+ responses: {
47899
+ /** @description OK */
47900
+ 200: {
47901
+ headers: {
47902
+ [name: string]: unknown;
47903
+ };
47904
+ content: {
47905
+ "application/json": components["schemas"]["SessionResponse"];
47906
+ };
47907
+ };
47908
+ /** @description Invalid reparent request */
47909
+ 400: {
47910
+ headers: {
47911
+ [name: string]: unknown;
47912
+ };
47913
+ content: {
47914
+ "application/json": components["schemas"]["ErrorPayload"];
47915
+ };
47916
+ };
47917
+ /** @description Session not found */
47918
+ 404: {
47919
+ headers: {
47920
+ [name: string]: unknown;
47921
+ };
47922
+ content: {
47923
+ "application/json": components["schemas"]["ErrorPayload"];
47924
+ };
47925
+ };
47926
+ /** @description Reparent refused by a lineage rule; code names the rule */
47927
+ 409: {
47928
+ headers: {
47929
+ [name: string]: unknown;
47930
+ };
47931
+ content: {
47932
+ "application/json": components["schemas"]["ErrorPayload"];
47933
+ };
47934
+ };
47935
+ /** @description Internal server error */
47936
+ 500: {
47937
+ headers: {
47938
+ [name: string]: unknown;
47939
+ };
47940
+ content: {
47941
+ "application/json": components["schemas"]["ErrorPayload"];
47942
+ };
47943
+ };
47944
+ /** @description Session reparent unavailable */
47945
+ 503: {
47946
+ headers: {
47947
+ [name: string]: unknown;
47948
+ };
47949
+ content: {
47950
+ "application/json": components["schemas"]["ErrorPayload"];
47951
+ };
47952
+ };
47953
+ };
47954
+ };
47537
47955
  updateSessionPresence: {
47538
47956
  parameters: {
47539
47957
  query?: never;
@@ -53282,6 +53700,67 @@ export interface operations {
53282
53700
  };
53283
53701
  };
53284
53702
  };
53703
+ prepareWorktreeExitPlan: {
53704
+ parameters: {
53705
+ query?: never;
53706
+ header?: never;
53707
+ path: {
53708
+ /** @description Workspace id or path */
53709
+ workspace_id: string;
53710
+ /** @description Worktree id, name, or path */
53711
+ worktree_id: string;
53712
+ };
53713
+ cookie?: never;
53714
+ };
53715
+ requestBody?: never;
53716
+ responses: {
53717
+ /** @description OK */
53718
+ 200: {
53719
+ headers: {
53720
+ [name: string]: unknown;
53721
+ };
53722
+ content: {
53723
+ "application/json": components["schemas"]["WorktreeExitPlanResponse"];
53724
+ };
53725
+ };
53726
+ /** @description Worktree or workspace not found */
53727
+ 404: {
53728
+ headers: {
53729
+ [name: string]: unknown;
53730
+ };
53731
+ content: {
53732
+ "application/json": components["schemas"]["ErrorPayload"];
53733
+ };
53734
+ };
53735
+ /** @description Worktree exit plan is unavailable */
53736
+ 409: {
53737
+ headers: {
53738
+ [name: string]: unknown;
53739
+ };
53740
+ content: {
53741
+ "application/json": components["schemas"]["ErrorPayload"];
53742
+ };
53743
+ };
53744
+ /** @description Internal server error */
53745
+ 500: {
53746
+ headers: {
53747
+ [name: string]: unknown;
53748
+ };
53749
+ content: {
53750
+ "application/json": components["schemas"]["ErrorPayload"];
53751
+ };
53752
+ };
53753
+ /** @description Worktree service is unavailable */
53754
+ 503: {
53755
+ headers: {
53756
+ [name: string]: unknown;
53757
+ };
53758
+ content: {
53759
+ "application/json": components["schemas"]["ErrorPayload"];
53760
+ };
53761
+ };
53762
+ };
53763
+ };
53285
53764
  getWorktreeStatus: {
53286
53765
  parameters: {
53287
53766
  query?: {