@compozy/client 0.3.0-beta.39 → 0.4.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.
@@ -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;
@@ -6808,6 +6825,23 @@ export interface paths {
6808
6825
  patch?: never;
6809
6826
  trace?: never;
6810
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
+ };
6811
6845
  "/api/workspaces/{workspace_id}/worktrees/{worktree_id}/status": {
6812
6846
  parameters: {
6813
6847
  query?: never;
@@ -13156,11 +13190,37 @@ export interface components {
13156
13190
  /** Format: date-time */
13157
13191
  at: string;
13158
13192
  class: string;
13159
- 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";
13160
13207
  profile_id: string;
13161
13208
  profile_name: string;
13162
13209
  session_id: string;
13163
- 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";
13164
13224
  workspace_id: string;
13165
13225
  };
13166
13226
  SessionAttentionSummaryPayload: {
@@ -13168,6 +13228,12 @@ export interface components {
13168
13228
  finished: number;
13169
13229
  needs_you: number;
13170
13230
  };
13231
+ SessionBoardCountsPayload: {
13232
+ done: number;
13233
+ in_review: number;
13234
+ needs_you: number;
13235
+ working: number;
13236
+ };
13171
13237
  SessionCatalogEventPayload: {
13172
13238
  kind: string;
13173
13239
  profile_id: string;
@@ -13177,6 +13243,7 @@ export interface components {
13177
13243
  };
13178
13244
  SessionCatalogFacetsPayload: {
13179
13245
  all: number;
13246
+ board: components["schemas"]["SessionBoardCountsPayload"];
13180
13247
  finished: number;
13181
13248
  idle: number;
13182
13249
  needs_you: number;
@@ -13198,6 +13265,13 @@ export interface components {
13198
13265
  page: components["schemas"]["SessionCatalogPagePayload"];
13199
13266
  sessions: components["schemas"]["SessionPayload"][];
13200
13267
  };
13268
+ SessionChildrenPayload: {
13269
+ done: number;
13270
+ in_review: number;
13271
+ needs_you: number;
13272
+ total: number;
13273
+ working: number;
13274
+ };
13201
13275
  SessionCommandPayload: {
13202
13276
  available: boolean;
13203
13277
  canonical_token: string;
@@ -13712,8 +13786,25 @@ export interface components {
13712
13786
  /** Format: date-time */
13713
13787
  attention_changed_at?: string | null;
13714
13788
  available_commands: components["schemas"]["ACPAvailableCommandPayload"][];
13715
- 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;
13716
13806
  busy_input?: components["schemas"]["BusyInputState"] | null;
13807
+ children?: components["schemas"]["SessionChildrenPayload"] | null;
13717
13808
  /** Format: date-time */
13718
13809
  created_at: string;
13719
13810
  derivation?: components["schemas"]["SessionDerivationPayload"] | null;
@@ -13726,6 +13817,7 @@ export interface components {
13726
13817
  lineage?: components["schemas"]["SessionLineagePayload"] | null;
13727
13818
  monitor_summary?: components["schemas"]["SessionMonitorSummaryPayload"] | null;
13728
13819
  name?: string;
13820
+ parent_title?: string;
13729
13821
  pending_interactions: components["schemas"]["PendingInteractionPayload"][];
13730
13822
  profile_archived?: boolean;
13731
13823
  profile_color?: string;
@@ -13733,6 +13825,8 @@ export interface components {
13733
13825
  profile_icon?: string;
13734
13826
  profile_id: string;
13735
13827
  profile_name: string;
13828
+ pull_request: components["schemas"]["SessionPullRequestPayload"] | null;
13829
+ pull_request_lookup: components["schemas"]["SessionPullRequestLookupPayload"] | null;
13736
13830
  queue?: components["schemas"]["SessionQueueSummaryPayload"] | null;
13737
13831
  reply_watches?: components["schemas"]["ReplyWatchPayload"][];
13738
13832
  runtime: components["schemas"]["SessionRuntimePayload"];
@@ -13763,6 +13857,8 @@ export interface components {
13763
13857
  /** Format: date-time */
13764
13858
  updated_at: string;
13765
13859
  verified?: boolean | null;
13860
+ /** @enum {string} */
13861
+ waiting_on?: "sessions" | "monitor";
13766
13862
  workspace_id?: string;
13767
13863
  workspace_path?: string;
13768
13864
  worktree_id?: string;
@@ -13794,6 +13890,56 @@ export interface components {
13794
13890
  /** @enum {string} */
13795
13891
  runtime_strategy?: "session_config" | "launch_arg" | "provider_managed";
13796
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
+ };
13797
13943
  SessionQueueSummaryPayload: {
13798
13944
  cap: number;
13799
13945
  entries: number;
@@ -13874,7 +14020,20 @@ export interface components {
13874
14020
  agent_name: string;
13875
14021
  attachable: boolean;
13876
14022
  attention?: string;
13877
- 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";
13878
14037
  derivation?: components["schemas"]["SessionDerivationPayload"] | null;
13879
14038
  eligible_for_wake: boolean;
13880
14039
  escalated?: boolean | null;
@@ -15622,7 +15781,8 @@ export interface components {
15622
15781
  | "loop_run"
15623
15782
  | "task_lease"
15624
15783
  | "scheduled_wait"
15625
- | "awaiting_reply";
15784
+ | "awaiting_reply"
15785
+ | "active_monitor";
15626
15786
  ref?: string;
15627
15787
  state: string;
15628
15788
  };
@@ -19332,7 +19492,8 @@ export interface components {
19332
19492
  | "loop_run"
19333
19493
  | "task_lease"
19334
19494
  | "scheduled_wait"
19335
- | "awaiting_reply";
19495
+ | "awaiting_reply"
19496
+ | "active_monitor";
19336
19497
  ref?: string;
19337
19498
  /** Format: date-time */
19338
19499
  since: string;
@@ -19547,6 +19708,7 @@ export interface components {
19547
19708
  WorktreeRemovalRefusalPayload: {
19548
19709
  code: string;
19549
19710
  downgrade: boolean;
19711
+ error?: string;
19550
19712
  risk: components["schemas"]["WorktreeRemovalRiskPayload"];
19551
19713
  };
19552
19714
  WorktreeRemovalRiskPayload: {
@@ -19554,6 +19716,7 @@ export interface components {
19554
19716
  deletions: number;
19555
19717
  exists_on_remote: boolean;
19556
19718
  insertions: number;
19719
+ leftover_files: number;
19557
19720
  unpushed_commits: number;
19558
19721
  };
19559
19722
  WorktreeRepoPayload: {
@@ -31901,6 +32064,8 @@ export interface operations {
31901
32064
  agent?: string;
31902
32065
  /** @description Subagent session visibility (default include) */
31903
32066
  subagents?: "include" | "exclude" | "only";
32067
+ /** @description Managed child visibility */
32068
+ children?: "include" | "exclude";
31904
32069
  /** @description Filter by exact parent session id */
31905
32070
  parent?: string;
31906
32071
  /** @description Filter by exact root session id (includes the root itself) */
@@ -31915,6 +32080,8 @@ export interface operations {
31915
32080
  resumable?: boolean;
31916
32081
  /** @description Only list sessions in the needs-you attention class */
31917
32082
  attention?: boolean;
32083
+ /** @description Repeatable board column filter: needs_you, working, in_review, done */
32084
+ board_column?: string[];
31918
32085
  /** @description Filter by comma-separated exact session badges */
31919
32086
  badge?: string;
31920
32087
  /** @description Archived session visibility */
@@ -32196,6 +32363,8 @@ export interface operations {
32196
32363
  agent?: string;
32197
32364
  /** @description Subagent session visibility (default include) */
32198
32365
  subagents?: "include" | "exclude" | "only";
32366
+ /** @description Managed child visibility */
32367
+ children?: "include" | "exclude";
32199
32368
  /** @description Filter by exact parent session id */
32200
32369
  parent?: string;
32201
32370
  /** @description Filter by exact root session id (includes the root itself) */
@@ -32502,6 +32671,59 @@ export interface operations {
32502
32671
  };
32503
32672
  };
32504
32673
  };
32674
+ refreshSessionPullRequest: {
32675
+ parameters: {
32676
+ query?: {
32677
+ /** @description Act as this profile by name */
32678
+ profile?: string;
32679
+ };
32680
+ header?: never;
32681
+ path: {
32682
+ /** @description Session id */
32683
+ session_id: string;
32684
+ };
32685
+ cookie?: never;
32686
+ };
32687
+ requestBody?: never;
32688
+ responses: {
32689
+ /** @description Refreshed or retained cached facts */
32690
+ 200: {
32691
+ headers: {
32692
+ [name: string]: unknown;
32693
+ };
32694
+ content: {
32695
+ "application/json": components["schemas"]["SessionPullRequestResponse"];
32696
+ };
32697
+ };
32698
+ /** @description Session not found */
32699
+ 404: {
32700
+ headers: {
32701
+ [name: string]: unknown;
32702
+ };
32703
+ content: {
32704
+ "application/json": components["schemas"]["ErrorPayload"];
32705
+ };
32706
+ };
32707
+ /** @description Session branch unavailable */
32708
+ 409: {
32709
+ headers: {
32710
+ [name: string]: unknown;
32711
+ };
32712
+ content: {
32713
+ "application/json": components["schemas"]["SessionPullRequestErrorPayload"];
32714
+ };
32715
+ };
32716
+ /** @description Forge unavailable without cached facts */
32717
+ 502: {
32718
+ headers: {
32719
+ [name: string]: unknown;
32720
+ };
32721
+ content: {
32722
+ "application/json": components["schemas"]["SessionPullRequestErrorPayload"];
32723
+ };
32724
+ };
32725
+ };
32726
+ };
32505
32727
  getGlobalSessionStatus: {
32506
32728
  parameters: {
32507
32729
  query?: {
@@ -45624,6 +45846,8 @@ export interface operations {
45624
45846
  agent?: string;
45625
45847
  /** @description Subagent session visibility (default include) */
45626
45848
  subagents?: "include" | "exclude" | "only";
45849
+ /** @description Managed child visibility */
45850
+ children?: "include" | "exclude";
45627
45851
  /** @description Filter by exact parent session id */
45628
45852
  parent?: string;
45629
45853
  /** @description Filter by exact root session id (includes the root itself) */
@@ -45638,6 +45862,8 @@ export interface operations {
45638
45862
  resumable?: boolean;
45639
45863
  /** @description Only list sessions in the needs-you attention class */
45640
45864
  attention?: boolean;
45865
+ /** @description Repeatable board column filter: needs_you, working, in_review, done */
45866
+ board_column?: string[];
45641
45867
  /** @description Filter by comma-separated exact session badges */
45642
45868
  badge?: string;
45643
45869
  /** @description Archived session visibility */
@@ -47395,7 +47621,12 @@ export interface operations {
47395
47621
  };
47396
47622
  listSessionMonitors: {
47397
47623
  parameters: {
47398
- query?: never;
47624
+ query?: {
47625
+ /** @description Read one profile's rows by name */
47626
+ profile?: string;
47627
+ /** @description Read the owner-labeled all-profiles aggregate */
47628
+ all_profiles?: boolean;
47629
+ };
47399
47630
  header?: never;
47400
47631
  path: {
47401
47632
  /** @description Workspace id */
@@ -47416,6 +47647,15 @@ export interface operations {
47416
47647
  "application/json": components["schemas"]["SessionMonitorsResponse"];
47417
47648
  };
47418
47649
  };
47650
+ /** @description Invalid profile selection */
47651
+ 400: {
47652
+ headers: {
47653
+ [name: string]: unknown;
47654
+ };
47655
+ content: {
47656
+ "application/json": components["schemas"]["ProfileErrorPayload"];
47657
+ };
47658
+ };
47419
47659
  /** @description Session or monitor not found */
47420
47660
  404: {
47421
47661
  headers: {
@@ -47447,7 +47687,10 @@ export interface operations {
47447
47687
  };
47448
47688
  cancelSessionMonitor: {
47449
47689
  parameters: {
47450
- query?: never;
47690
+ query?: {
47691
+ /** @description Act as this profile by name */
47692
+ profile?: string;
47693
+ };
47451
47694
  header?: never;
47452
47695
  path: {
47453
47696
  /** @description Workspace id */
@@ -47470,6 +47713,15 @@ export interface operations {
47470
47713
  "application/json": components["schemas"]["SessionMonitorResponse"];
47471
47714
  };
47472
47715
  };
47716
+ /** @description Invalid profile selection */
47717
+ 400: {
47718
+ headers: {
47719
+ [name: string]: unknown;
47720
+ };
47721
+ content: {
47722
+ "application/json": components["schemas"]["ProfileErrorPayload"];
47723
+ };
47724
+ };
47473
47725
  /** @description Session or monitor not found */
47474
47726
  404: {
47475
47727
  headers: {
@@ -53476,6 +53728,67 @@ export interface operations {
53476
53728
  };
53477
53729
  };
53478
53730
  };
53731
+ prepareWorktreeExitPlan: {
53732
+ parameters: {
53733
+ query?: never;
53734
+ header?: never;
53735
+ path: {
53736
+ /** @description Workspace id or path */
53737
+ workspace_id: string;
53738
+ /** @description Worktree id, name, or path */
53739
+ worktree_id: string;
53740
+ };
53741
+ cookie?: never;
53742
+ };
53743
+ requestBody?: never;
53744
+ responses: {
53745
+ /** @description OK */
53746
+ 200: {
53747
+ headers: {
53748
+ [name: string]: unknown;
53749
+ };
53750
+ content: {
53751
+ "application/json": components["schemas"]["WorktreeExitPlanResponse"];
53752
+ };
53753
+ };
53754
+ /** @description Worktree or workspace not found */
53755
+ 404: {
53756
+ headers: {
53757
+ [name: string]: unknown;
53758
+ };
53759
+ content: {
53760
+ "application/json": components["schemas"]["ErrorPayload"];
53761
+ };
53762
+ };
53763
+ /** @description Worktree exit plan is unavailable */
53764
+ 409: {
53765
+ headers: {
53766
+ [name: string]: unknown;
53767
+ };
53768
+ content: {
53769
+ "application/json": components["schemas"]["ErrorPayload"];
53770
+ };
53771
+ };
53772
+ /** @description Internal server error */
53773
+ 500: {
53774
+ headers: {
53775
+ [name: string]: unknown;
53776
+ };
53777
+ content: {
53778
+ "application/json": components["schemas"]["ErrorPayload"];
53779
+ };
53780
+ };
53781
+ /** @description Worktree service is unavailable */
53782
+ 503: {
53783
+ headers: {
53784
+ [name: string]: unknown;
53785
+ };
53786
+ content: {
53787
+ "application/json": components["schemas"]["ErrorPayload"];
53788
+ };
53789
+ };
53790
+ };
53791
+ };
53479
53792
  getWorktreeStatus: {
53480
53793
  parameters: {
53481
53794
  query?: {