@compozy/client 0.3.0-beta.39 → 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;
@@ -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;
@@ -31901,6 +32062,8 @@ export interface operations {
31901
32062
  agent?: string;
31902
32063
  /** @description Subagent session visibility (default include) */
31903
32064
  subagents?: "include" | "exclude" | "only";
32065
+ /** @description Managed child visibility */
32066
+ children?: "include" | "exclude";
31904
32067
  /** @description Filter by exact parent session id */
31905
32068
  parent?: string;
31906
32069
  /** @description Filter by exact root session id (includes the root itself) */
@@ -31915,6 +32078,8 @@ export interface operations {
31915
32078
  resumable?: boolean;
31916
32079
  /** @description Only list sessions in the needs-you attention class */
31917
32080
  attention?: boolean;
32081
+ /** @description Repeatable board column filter: needs_you, working, in_review, done */
32082
+ board_column?: string[];
31918
32083
  /** @description Filter by comma-separated exact session badges */
31919
32084
  badge?: string;
31920
32085
  /** @description Archived session visibility */
@@ -32196,6 +32361,8 @@ export interface operations {
32196
32361
  agent?: string;
32197
32362
  /** @description Subagent session visibility (default include) */
32198
32363
  subagents?: "include" | "exclude" | "only";
32364
+ /** @description Managed child visibility */
32365
+ children?: "include" | "exclude";
32199
32366
  /** @description Filter by exact parent session id */
32200
32367
  parent?: string;
32201
32368
  /** @description Filter by exact root session id (includes the root itself) */
@@ -32502,6 +32669,59 @@ export interface operations {
32502
32669
  };
32503
32670
  };
32504
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
+ };
32505
32725
  getGlobalSessionStatus: {
32506
32726
  parameters: {
32507
32727
  query?: {
@@ -45624,6 +45844,8 @@ export interface operations {
45624
45844
  agent?: string;
45625
45845
  /** @description Subagent session visibility (default include) */
45626
45846
  subagents?: "include" | "exclude" | "only";
45847
+ /** @description Managed child visibility */
45848
+ children?: "include" | "exclude";
45627
45849
  /** @description Filter by exact parent session id */
45628
45850
  parent?: string;
45629
45851
  /** @description Filter by exact root session id (includes the root itself) */
@@ -45638,6 +45860,8 @@ export interface operations {
45638
45860
  resumable?: boolean;
45639
45861
  /** @description Only list sessions in the needs-you attention class */
45640
45862
  attention?: boolean;
45863
+ /** @description Repeatable board column filter: needs_you, working, in_review, done */
45864
+ board_column?: string[];
45641
45865
  /** @description Filter by comma-separated exact session badges */
45642
45866
  badge?: string;
45643
45867
  /** @description Archived session visibility */
@@ -53476,6 +53700,67 @@ export interface operations {
53476
53700
  };
53477
53701
  };
53478
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
+ };
53479
53764
  getWorktreeStatus: {
53480
53765
  parameters: {
53481
53766
  query?: {