@compozy/client 0.4.6 → 0.4.8

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.
@@ -5813,6 +5813,23 @@ export interface paths {
5813
5813
  patch?: never;
5814
5814
  trace?: never;
5815
5815
  };
5816
+ "/api/workspaces/{workspace_id}/sessions/{session_id}/later": {
5817
+ parameters: {
5818
+ query?: never;
5819
+ header?: never;
5820
+ path?: never;
5821
+ cookie?: never;
5822
+ };
5823
+ get?: never;
5824
+ put?: never;
5825
+ /** Stop a session and its children and park them in Later, with an optional reason and return time */
5826
+ post: operations["moveSessionToLater"];
5827
+ delete?: never;
5828
+ options?: never;
5829
+ head?: never;
5830
+ patch?: never;
5831
+ trace?: never;
5832
+ };
5816
5833
  "/api/workspaces/{workspace_id}/sessions/{session_id}/monitors": {
5817
5834
  parameters: {
5818
5835
  query?: never;
@@ -5875,7 +5892,7 @@ export interface paths {
5875
5892
  /** Adopt a parentless user session as a child of another session */
5876
5893
  put: operations["setSessionParent"];
5877
5894
  post?: never;
5878
- /** Make an adopted child session top-level again */
5895
+ /** Make an adopted child session top-level, or take over a stopped spawned worker */
5879
5896
  delete: operations["clearSessionParent"];
5880
5897
  options?: never;
5881
5898
  head?: never;
@@ -6054,6 +6071,23 @@ export interface paths {
6054
6071
  patch?: never;
6055
6072
  trace?: never;
6056
6073
  };
6074
+ "/api/workspaces/{workspace_id}/sessions/{session_id}/resume-later": {
6075
+ parameters: {
6076
+ query?: never;
6077
+ header?: never;
6078
+ path?: never;
6079
+ cookie?: never;
6080
+ };
6081
+ get?: never;
6082
+ put?: never;
6083
+ /** Return a parked session, and optionally its parked children, to the normal flow */
6084
+ post: operations["resumeSessionFromLater"];
6085
+ delete?: never;
6086
+ options?: never;
6087
+ head?: never;
6088
+ patch?: never;
6089
+ trace?: never;
6090
+ };
6057
6091
  "/api/workspaces/{workspace_id}/sessions/{session_id}/rewind": {
6058
6092
  parameters: {
6059
6093
  query?: never;
@@ -11715,6 +11749,11 @@ export interface components {
11715
11749
  MoveSessionRequest: {
11716
11750
  folder_id?: string;
11717
11751
  };
11752
+ MoveSessionToLaterRequest: {
11753
+ reason?: string;
11754
+ /** Format: date-time */
11755
+ return_at?: string | null;
11756
+ };
11718
11757
  MoveWorkspaceRequest: {
11719
11758
  folder_id?: string;
11720
11759
  workspace_id: string;
@@ -12636,7 +12675,10 @@ export interface components {
12636
12675
  | "tool_unknown"
12637
12676
  | "toolset_cycle"
12638
12677
  | "toolset_unknown"
12639
- | "visibility_denied";
12678
+ | "visibility_denied"
12679
+ | "worktree_missing"
12680
+ | "worktree_not_found"
12681
+ | "worktree_not_ready";
12640
12682
  };
12641
12683
  Reference: {
12642
12684
  effective_paused?: boolean;
@@ -12839,6 +12881,9 @@ export interface components {
12839
12881
  /** Format: date-time */
12840
12882
  updated_at: string;
12841
12883
  };
12884
+ ResumeSessionFromLaterRequest: {
12885
+ with_children?: boolean;
12886
+ };
12842
12887
  ResumeTaskRequest: {
12843
12888
  metadata?: unknown;
12844
12889
  };
@@ -13338,7 +13383,7 @@ export interface components {
13338
13383
  canceled_queued_entries?: number;
13339
13384
  delivery: string;
13340
13385
  /** @enum {string} */
13341
- disposition?: "direct" | "steering" | "queued" | "interrupting";
13386
+ disposition?: "direct" | "steering" | "queued" | "interrupting" | "later";
13342
13387
  entry_id?: string;
13343
13388
  /** Format: date-time */
13344
13389
  estimated_send_at?: string | null;
@@ -13483,6 +13528,7 @@ export interface components {
13483
13528
  done: number;
13484
13529
  in_review: number;
13485
13530
  needs_you: number;
13531
+ waiting: number;
13486
13532
  working: number;
13487
13533
  };
13488
13534
  SessionCatalogEventPayload: {
@@ -13506,6 +13552,7 @@ export interface components {
13506
13552
  by_profile: components["schemas"]["SessionProfileFacetsPayload"][];
13507
13553
  by_workspace: components["schemas"]["SessionWorkspaceFacetsPayload"][];
13508
13554
  facets: components["schemas"]["SessionCatalogFacetsPayload"];
13555
+ later?: number;
13509
13556
  };
13510
13557
  SessionCatalogPagePayload: {
13511
13558
  has_more: boolean;
@@ -13522,6 +13569,7 @@ export interface components {
13522
13569
  in_review: number;
13523
13570
  needs_you: number;
13524
13571
  total: number;
13572
+ waiting: number;
13525
13573
  working: number;
13526
13574
  };
13527
13575
  SessionCommandPayload: {
@@ -13978,6 +14026,14 @@ export interface components {
13978
14026
  SessionInteractionsResponse: {
13979
14027
  interactions: components["schemas"]["PendingInteractionPayload"][];
13980
14028
  };
14029
+ SessionLaterPayload: {
14030
+ /** Format: date-time */
14031
+ parked_at: string;
14032
+ pending_messages: number;
14033
+ reason?: string;
14034
+ /** Format: date-time */
14035
+ return_at?: string | null;
14036
+ };
13981
14037
  SessionLineagePayload: {
13982
14038
  auto_stop_on_parent: boolean;
13983
14039
  /** @enum {string} */
@@ -14054,7 +14110,7 @@ export interface components {
14054
14110
  | "needs-attention"
14055
14111
  | "waiting";
14056
14112
  /** @enum {string} */
14057
- board_column: "needs_you" | "working" | "in_review" | "done";
14113
+ board_column: "needs_you" | "working" | "waiting" | "in_review" | "done";
14058
14114
  branch?: string;
14059
14115
  busy_input?: components["schemas"]["BusyInputState"] | null;
14060
14116
  children?: components["schemas"]["SessionChildrenPayload"] | null;
@@ -14068,6 +14124,7 @@ export interface components {
14068
14124
  folder_id?: string;
14069
14125
  health?: components["schemas"]["SessionHealthPayload"] | null;
14070
14126
  id: string;
14127
+ later?: components["schemas"]["SessionLaterPayload"] | null;
14071
14128
  lineage?: components["schemas"]["SessionLineagePayload"] | null;
14072
14129
  monitor_summary?: components["schemas"]["SessionMonitorSummaryPayload"] | null;
14073
14130
  name?: string;
@@ -14084,6 +14141,8 @@ export interface components {
14084
14141
  pull_request_lookup: components["schemas"]["SessionPullRequestLookupPayload"] | null;
14085
14142
  queue?: components["schemas"]["SessionQueueSummaryPayload"] | null;
14086
14143
  reply_watches?: components["schemas"]["ReplyWatchPayload"][];
14144
+ /** Format: date-time */
14145
+ returned_from_later_at?: string | null;
14087
14146
  runtime: components["schemas"]["SessionRuntimePayload"];
14088
14147
  scope: string;
14089
14148
  /** @enum {string} */
@@ -14132,6 +14191,7 @@ export interface components {
14132
14191
  profile: string;
14133
14192
  session_id: string;
14134
14193
  session_name: string;
14194
+ trees?: components["schemas"]["SessionProcessTreePayload"][];
14135
14195
  workspace_id: string;
14136
14196
  };
14137
14197
  SessionProcessPayload: {
@@ -14155,6 +14215,7 @@ export interface components {
14155
14215
  /** Format: date-time */
14156
14216
  started_at: string;
14157
14217
  terminal_id?: string;
14218
+ tree_id?: string;
14158
14219
  };
14159
14220
  SessionProcessResult: {
14160
14221
  error?: string;
@@ -14170,17 +14231,29 @@ export interface components {
14170
14231
  supported: boolean;
14171
14232
  terminals: number;
14172
14233
  total: number;
14234
+ trees?: number;
14173
14235
  };
14174
14236
  SessionProcessTarget: {
14175
14237
  pid: number;
14176
14238
  /** Format: date-time */
14177
14239
  started_at: string;
14178
14240
  };
14241
+ SessionProcessTreePayload: {
14242
+ id: string;
14243
+ /** @enum {string} */
14244
+ kind: "background" | "tool" | "terminal";
14245
+ lead: components["schemas"]["SessionProcessTarget"];
14246
+ members: components["schemas"]["SessionProcessTarget"][];
14247
+ ports: number[];
14248
+ root: components["schemas"]["SessionProcessTarget"];
14249
+ wrappers: components["schemas"]["SessionProcessTarget"][];
14250
+ };
14179
14251
  SessionProcessesResponse: {
14180
14252
  items: components["schemas"]["SessionProcessPayload"][];
14181
14253
  /** Format: date-time */
14182
14254
  scanned_at: string;
14183
14255
  supported: boolean;
14256
+ trees?: components["schemas"]["SessionProcessTreePayload"][];
14184
14257
  };
14185
14258
  SessionProfileFacetsPayload: {
14186
14259
  facets: components["schemas"]["SessionCatalogFacetsPayload"];
@@ -14198,6 +14271,8 @@ export interface components {
14198
14271
  harness?: string;
14199
14272
  home_policy?: string;
14200
14273
  name: string;
14274
+ /** @enum {string} */
14275
+ runtime_live_apply?: "next_step" | "next_turn";
14201
14276
  runtime_provider?: string;
14202
14277
  /** @enum {string} */
14203
14278
  runtime_strategy?: "session_config" | "launch_arg" | "provider_managed";
@@ -15062,6 +15137,7 @@ export interface components {
15062
15137
  diagnostic?: string;
15063
15138
  /** Format: date-time */
15064
15139
  expires_at?: string | null;
15140
+ inherited?: boolean;
15065
15141
  issuer?: string;
15066
15142
  owner: string;
15067
15143
  profile?: string;
@@ -17642,6 +17718,7 @@ export interface components {
17642
17718
  rows?: number;
17643
17719
  shell?: string;
17644
17720
  title?: string;
17721
+ worktree?: string;
17645
17722
  };
17646
17723
  TerminalDeliveredResponse: {
17647
17724
  delivered: boolean;
@@ -17847,6 +17924,7 @@ export interface components {
17847
17924
  };
17848
17925
  TerminateSessionProcessesRequest: {
17849
17926
  all?: boolean;
17927
+ include_tools?: boolean;
17850
17928
  targets?: components["schemas"]["SessionProcessTarget"][];
17851
17929
  };
17852
17930
  TerminateSessionProcessesResponse: {
@@ -18119,6 +18197,9 @@ export interface components {
18119
18197
  | "toolset_cycle"
18120
18198
  | "toolset_unknown"
18121
18199
  | "visibility_denied"
18200
+ | "worktree_missing"
18201
+ | "worktree_not_found"
18202
+ | "worktree_not_ready"
18122
18203
  )[];
18123
18204
  registered: boolean;
18124
18205
  };
@@ -18166,8 +18247,11 @@ export interface components {
18166
18247
  | "recording_unavailable"
18167
18248
  | "session_archive_stop_failed"
18168
18249
  | "session_busy"
18250
+ | "session_in_later"
18251
+ | "session_later_stop_failed"
18169
18252
  | "session_worktree_conflict"
18170
18253
  | "slow_consumer"
18254
+ | "subagent_later_follows_parent"
18171
18255
  | "subscriber_limit_reached"
18172
18256
  | "terminal_exited"
18173
18257
  | "terminal_expired"
@@ -18290,6 +18374,9 @@ export interface components {
18290
18374
  | "toolset_cycle"
18291
18375
  | "toolset_unknown"
18292
18376
  | "visibility_denied"
18377
+ | "worktree_missing"
18378
+ | "worktree_not_found"
18379
+ | "worktree_not_ready"
18293
18380
  )[];
18294
18381
  redacted_input_fields?: string[];
18295
18382
  /** Format: int64 */
@@ -18368,8 +18455,11 @@ export interface components {
18368
18455
  | "recording_unavailable"
18369
18456
  | "session_archive_stop_failed"
18370
18457
  | "session_busy"
18458
+ | "session_in_later"
18459
+ | "session_later_stop_failed"
18371
18460
  | "session_worktree_conflict"
18372
18461
  | "slow_consumer"
18462
+ | "subagent_later_follows_parent"
18373
18463
  | "subscriber_limit_reached"
18374
18464
  | "terminal_exited"
18375
18465
  | "terminal_expired"
@@ -18488,6 +18578,9 @@ export interface components {
18488
18578
  | "toolset_cycle"
18489
18579
  | "toolset_unknown"
18490
18580
  | "visibility_denied"
18581
+ | "worktree_missing"
18582
+ | "worktree_not_found"
18583
+ | "worktree_not_ready"
18491
18584
  )[];
18492
18585
  tool_id?: string;
18493
18586
  };
@@ -18607,6 +18700,9 @@ export interface components {
18607
18700
  | "toolset_cycle"
18608
18701
  | "toolset_unknown"
18609
18702
  | "visibility_denied"
18703
+ | "worktree_missing"
18704
+ | "worktree_not_found"
18705
+ | "worktree_not_ready"
18610
18706
  )[];
18611
18707
  registry_policy_result?: string;
18612
18708
  session_policy_result?: string;
@@ -18740,6 +18836,9 @@ export interface components {
18740
18836
  | "toolset_cycle"
18741
18837
  | "toolset_unknown"
18742
18838
  | "visibility_denied"
18839
+ | "worktree_missing"
18840
+ | "worktree_not_found"
18841
+ | "worktree_not_ready"
18743
18842
  )[];
18744
18843
  status: string;
18745
18844
  tools?: string[];
@@ -20068,6 +20167,7 @@ export interface components {
20068
20167
  base_ref?: string;
20069
20168
  behind: number | null;
20070
20169
  branch: string;
20170
+ create_error?: string;
20071
20171
  /** Format: date-time */
20072
20172
  created_at: string;
20073
20173
  created_branch: boolean;
@@ -32622,12 +32722,14 @@ export interface operations {
32622
32722
  resumable?: boolean;
32623
32723
  /** @description Only list sessions in the needs-you attention class */
32624
32724
  attention?: boolean;
32625
- /** @description Repeatable board column filter: needs_you, working, in_review, done */
32725
+ /** @description Repeatable board column filter: needs_you, working, waiting, in_review, done */
32626
32726
  board_column?: string[];
32627
32727
  /** @description Filter by comma-separated exact session badges */
32628
32728
  badge?: string;
32629
32729
  /** @description Archived session visibility */
32630
32730
  archive?: "exclude" | "only" | "include";
32731
+ /** @description Visibility of sessions parked in Later; excluded by default */
32732
+ later?: "exclude" | "only" | "include";
32631
32733
  /** @description Stable session ordering */
32632
32734
  sort?:
32633
32735
  | "recent"
@@ -32919,6 +33021,8 @@ export interface operations {
32919
33021
  type?: "user" | "system" | "coordinator" | "spawned";
32920
33022
  /** @description Archived session visibility */
32921
33023
  archive?: "exclude" | "only" | "include";
33024
+ /** @description Visibility of sessions parked in Later; excluded by default */
33025
+ later?: "exclude" | "only" | "include";
32922
33026
  /** @description Read one profile's rows by name */
32923
33027
  profile?: string;
32924
33028
  /** @description Read the owner-labeled all-profiles aggregate */
@@ -47068,12 +47172,14 @@ export interface operations {
47068
47172
  resumable?: boolean;
47069
47173
  /** @description Only list sessions in the needs-you attention class */
47070
47174
  attention?: boolean;
47071
- /** @description Repeatable board column filter: needs_you, working, in_review, done */
47175
+ /** @description Repeatable board column filter: needs_you, working, waiting, in_review, done */
47072
47176
  board_column?: string[];
47073
47177
  /** @description Filter by comma-separated exact session badges */
47074
47178
  badge?: string;
47075
47179
  /** @description Archived session visibility */
47076
47180
  archive?: "exclude" | "only" | "include";
47181
+ /** @description Visibility of sessions parked in Later; excluded by default */
47182
+ later?: "exclude" | "only" | "include";
47077
47183
  /** @description Stable session ordering */
47078
47184
  sort?:
47079
47185
  | "recent"
@@ -48856,6 +48962,84 @@ export interface operations {
48856
48962
  };
48857
48963
  };
48858
48964
  };
48965
+ moveSessionToLater: {
48966
+ parameters: {
48967
+ query?: {
48968
+ /** @description Act as this profile by name */
48969
+ profile?: string;
48970
+ };
48971
+ header?: never;
48972
+ path: {
48973
+ /** @description Workspace id */
48974
+ workspace_id: string;
48975
+ /** @description Session id */
48976
+ session_id: string;
48977
+ };
48978
+ cookie?: never;
48979
+ };
48980
+ /** @description JSON request body */
48981
+ requestBody?: {
48982
+ content: {
48983
+ "application/json": components["schemas"]["MoveSessionToLaterRequest"];
48984
+ };
48985
+ };
48986
+ responses: {
48987
+ /** @description OK */
48988
+ 200: {
48989
+ headers: {
48990
+ [name: string]: unknown;
48991
+ };
48992
+ content: {
48993
+ "application/json": components["schemas"]["SessionResponse"];
48994
+ };
48995
+ };
48996
+ /** @description Invalid Move to Later request */
48997
+ 400: {
48998
+ headers: {
48999
+ [name: string]: unknown;
49000
+ };
49001
+ content: {
49002
+ "application/json": components["schemas"]["ErrorPayload"];
49003
+ };
49004
+ };
49005
+ /** @description Session not found */
49006
+ 404: {
49007
+ headers: {
49008
+ [name: string]: unknown;
49009
+ };
49010
+ content: {
49011
+ "application/json": components["schemas"]["ErrorPayload"];
49012
+ };
49013
+ };
49014
+ /** @description Subagents move with their parent, or the session tree could not be stopped */
49015
+ 409: {
49016
+ headers: {
49017
+ [name: string]: unknown;
49018
+ };
49019
+ content: {
49020
+ "application/json": components["schemas"]["ErrorPayload"];
49021
+ };
49022
+ };
49023
+ /** @description Internal server error */
49024
+ 500: {
49025
+ headers: {
49026
+ [name: string]: unknown;
49027
+ };
49028
+ content: {
49029
+ "application/json": components["schemas"]["ErrorPayload"];
49030
+ };
49031
+ };
49032
+ /** @description Service unavailable - dependent service missing */
49033
+ 503: {
49034
+ headers: {
49035
+ [name: string]: unknown;
49036
+ };
49037
+ content: {
49038
+ "application/json": components["schemas"]["ErrorPayload"];
49039
+ };
49040
+ };
49041
+ };
49042
+ };
48859
49043
  listSessionMonitors: {
48860
49044
  parameters: {
48861
49045
  query?: {
@@ -49994,6 +50178,84 @@ export interface operations {
49994
50178
  };
49995
50179
  };
49996
50180
  };
50181
+ resumeSessionFromLater: {
50182
+ parameters: {
50183
+ query?: {
50184
+ /** @description Act as this profile by name */
50185
+ profile?: string;
50186
+ };
50187
+ header?: never;
50188
+ path: {
50189
+ /** @description Workspace id */
50190
+ workspace_id: string;
50191
+ /** @description Session id */
50192
+ session_id: string;
50193
+ };
50194
+ cookie?: never;
50195
+ };
50196
+ /** @description JSON request body */
50197
+ requestBody?: {
50198
+ content: {
50199
+ "application/json": components["schemas"]["ResumeSessionFromLaterRequest"];
50200
+ };
50201
+ };
50202
+ responses: {
50203
+ /** @description OK */
50204
+ 200: {
50205
+ headers: {
50206
+ [name: string]: unknown;
50207
+ };
50208
+ content: {
50209
+ "application/json": components["schemas"]["SessionResponse"];
50210
+ };
50211
+ };
50212
+ /** @description Invalid Back from Later request */
50213
+ 400: {
50214
+ headers: {
50215
+ [name: string]: unknown;
50216
+ };
50217
+ content: {
50218
+ "application/json": components["schemas"]["ErrorPayload"];
50219
+ };
50220
+ };
50221
+ /** @description Session not found */
50222
+ 404: {
50223
+ headers: {
50224
+ [name: string]: unknown;
50225
+ };
50226
+ content: {
50227
+ "application/json": components["schemas"]["ErrorPayload"];
50228
+ };
50229
+ };
50230
+ /** @description The session could not leave Later */
50231
+ 409: {
50232
+ headers: {
50233
+ [name: string]: unknown;
50234
+ };
50235
+ content: {
50236
+ "application/json": components["schemas"]["ErrorPayload"];
50237
+ };
50238
+ };
50239
+ /** @description Internal server error */
50240
+ 500: {
50241
+ headers: {
50242
+ [name: string]: unknown;
50243
+ };
50244
+ content: {
50245
+ "application/json": components["schemas"]["ErrorPayload"];
50246
+ };
50247
+ };
50248
+ /** @description Service unavailable - dependent service missing */
50249
+ 503: {
50250
+ headers: {
50251
+ [name: string]: unknown;
50252
+ };
50253
+ content: {
50254
+ "application/json": components["schemas"]["ErrorPayload"];
50255
+ };
50256
+ };
50257
+ };
50258
+ };
49997
50259
  rewindSessionConversation: {
49998
50260
  parameters: {
49999
50261
  query?: {
@@ -51722,7 +51984,16 @@ export interface operations {
51722
51984
  "application/json": components["schemas"]["TerminalErrorResponse"];
51723
51985
  };
51724
51986
  };
51725
- /** @description Terminal limit reached */
51987
+ /** @description Worktree not found */
51988
+ 404: {
51989
+ headers: {
51990
+ [name: string]: unknown;
51991
+ };
51992
+ content: {
51993
+ "application/json": components["schemas"]["TerminalErrorResponse"];
51994
+ };
51995
+ };
51996
+ /** @description Terminal limit reached or worktree unavailable */
51726
51997
  409: {
51727
51998
  headers: {
51728
51999
  [name: string]: unknown;