@compozy/client 0.5.5 → 0.6.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.
@@ -168,8 +168,11 @@ export type AgentDraftRuntime = {
168
168
  };
169
169
  export type AgentEffectiveRuntimePayload = {
170
170
  acp_options?: Array<AgentACPOptionSelection>;
171
+ auto_compact_window?: number | null;
172
+ lean_environment?: boolean | null;
171
173
  model?: string;
172
174
  permissions?: string;
175
+ policy_excluded_acp_options?: Array<AgentACPOptionSelection>;
173
176
  provider: string;
174
177
  reasoning_effort?: string;
175
178
  session_env?: {
@@ -516,6 +519,7 @@ export type AgentPayload = {
516
519
  appearance?: {
517
520
  [key: string]: unknown;
518
521
  };
522
+ auto_compact_window?: number | null;
519
523
  category_path?: Array<string>;
520
524
  command?: string;
521
525
  definition_digest: string;
@@ -528,6 +532,7 @@ export type AgentPayload = {
528
532
  kind?: string;
529
533
  label: string;
530
534
  layer?: string;
535
+ lean_environment?: boolean | null;
531
536
  mcp_servers?: Array<AgentMCPServerJSON>;
532
537
  model?: string;
533
538
  name: string;
@@ -1532,6 +1537,7 @@ export type CreateAgentPayload = {
1532
1537
  appearance?: {
1533
1538
  [key: string]: unknown;
1534
1539
  };
1540
+ auto_compact_window?: number | null;
1535
1541
  category_path?: Array<string>;
1536
1542
  command?: string;
1537
1543
  deny_tools?: Array<string>;
@@ -1543,6 +1549,7 @@ export type CreateAgentPayload = {
1543
1549
  */
1544
1550
  kind?: "on_demand" | "always_on";
1545
1551
  label?: string;
1552
+ lean_environment?: boolean | null;
1546
1553
  mcp_servers?: Array<AgentMCPServerInput>;
1547
1554
  model?: string;
1548
1555
  name: string;
@@ -1822,6 +1829,7 @@ export type DuplicateAgentOverrides = {
1822
1829
  appearance?: {
1823
1830
  [key: string]: unknown;
1824
1831
  };
1832
+ auto_compact_window?: number | null;
1825
1833
  category_path?: Array<string>;
1826
1834
  clear_acp_options?: boolean;
1827
1835
  clear_speed?: boolean;
@@ -1833,6 +1841,7 @@ export type DuplicateAgentOverrides = {
1833
1841
  * Agent kind: on_demand (default) or always_on; fixed at creation.
1834
1842
  */
1835
1843
  kind?: "on_demand" | "always_on";
1844
+ lean_environment?: boolean | null;
1836
1845
  model?: string;
1837
1846
  permission_rules?: Array<AgentPermissionRulePayload>;
1838
1847
  permissions?: "deny-all" | "approve-reads" | "approve-edits" | "auto" | "approve-all";
@@ -4958,6 +4967,7 @@ export type ProviderSummaryPayload = {
4958
4967
  auth_status: ProviderAuthStatusPayload;
4959
4968
  default: boolean;
4960
4969
  display_name?: string;
4970
+ enabled: boolean;
4961
4971
  name: string;
4962
4972
  reviewer_mode: string;
4963
4973
  runtime_strategy?: "session_config" | "launch_arg" | "provider_managed";
@@ -5309,6 +5319,14 @@ export type RestartProgress = {
5309
5319
  total: number;
5310
5320
  updated_at: string;
5311
5321
  };
5322
+ export type ResultViewContract = {
5323
+ digest?: string;
5324
+ schema: unknown;
5325
+ };
5326
+ export type ResultViews = {
5327
+ compact: ResultViewContract;
5328
+ full: ResultViewContract;
5329
+ };
5312
5330
  export type ResumeSessionFromLaterRequest = {
5313
5331
  with_children?: boolean;
5314
5332
  };
@@ -6762,6 +6780,9 @@ export type SetSessionRuntimeRequest = {
6762
6780
  expected_revision: number | null;
6763
6781
  runtime: PromptRuntimeSelectionPayload;
6764
6782
  };
6783
+ export type SetSettingsProviderEnabledRequest = {
6784
+ enabled: boolean;
6785
+ };
6765
6786
  export type SettingsActionMetadataPayload = {
6766
6787
  available: boolean;
6767
6788
  behavior: "applied_now" | "restart_required" | "action_trigger";
@@ -7270,6 +7291,10 @@ export type SettingsProviderCredentialStatusPayload = {
7270
7291
  source?: string;
7271
7292
  target_env: string;
7272
7293
  };
7294
+ export type SettingsProviderEnabledResponse = {
7295
+ apply: SettingsApplyResponse;
7296
+ provider: SettingsProviderItemPayload;
7297
+ };
7273
7298
  export type SettingsProviderFallbackPayload = {
7274
7299
  settings: SettingsProviderSettingsPayload;
7275
7300
  source: SettingsSourceRefPayload;
@@ -7335,11 +7360,13 @@ export type SettingsProviderSettingsPayload = {
7335
7360
  auth_acp_method?: string;
7336
7361
  auth_mode?: string;
7337
7362
  auth_status_command?: string;
7363
+ auto_compact_window?: number | null;
7338
7364
  base_url?: string;
7339
7365
  command?: string;
7340
7366
  command_inherited?: boolean;
7341
7367
  credential_slots?: Array<SettingsProviderCredentialSlotPayload>;
7342
7368
  display_name?: string;
7369
+ enabled: boolean;
7343
7370
  env_policy?: string;
7344
7371
  harness?: string;
7345
7372
  home_policy?: string;
@@ -7377,6 +7404,7 @@ export type SettingsProviderWritePayload = {
7377
7404
  auth_login_command?: string | null;
7378
7405
  auth_mode?: string;
7379
7406
  auth_status_command?: string;
7407
+ auto_compact_window?: number | null;
7380
7408
  base_url?: string;
7381
7409
  command?: string;
7382
7410
  credential_slots?: Array<SettingsProviderCredentialSlotPayload>;
@@ -9317,7 +9345,7 @@ export type ToolCallEventPayload = {
9317
9345
  destructive: boolean;
9318
9346
  display_title?: string;
9319
9347
  duration_ms?: number;
9320
- error_code?: "agent_instance_not_found" | "agent_instance_starting" | "approval_rejected" | "attention_requires_action" | "compaction_unsupported" | "generation_fenced" | "input_request_already_answered" | "input_request_limit_reached" | "input_request_not_found" | "input_request_requires_hidden_input" | "input_request_superseded" | "invalid_cwd" | "journal_unavailable" | "message_hop_limit" | "message_rate_limited" | "model_not_found" | "profile_archived" | "profile_selection_conflict" | "profile_session_conflict" | "profile_unavailable" | "reasoning_effort_unsupported" | "recording_already_started" | "recording_not_active" | "recording_unavailable" | "session_archive_stop_failed" | "session_busy" | "session_in_later" | "session_later_stop_failed" | "session_worktree_conflict" | "slow_consumer" | "subagent_later_follows_parent" | "subscriber_limit_reached" | "terminal_exited" | "terminal_expired" | "terminal_interactive_unavailable" | "terminal_limit_reached" | "terminal_not_found" | "terminal_not_interactive" | "terminal_requires_workspace" | "ticket_expired" | "ticket_invalid" | "timeout_out_of_range" | "tool_approval_required" | "tool_backend_failed" | "tool_canceled" | "tool_conflict" | "tool_denied" | "tool_invalid_input" | "tool_not_found" | "tool_result_persistence_failed" | "tool_result_too_large" | "tool_timed_out" | "tool_unavailable" | "workspace_archived" | "workspace_busy" | "workspace_root_missing" | "worktree_missing" | "worktree_not_found" | "worktree_not_ready" | "worktree_operation_in_progress" | "worktree_session_active";
9348
+ error_code?: "agent_instance_not_found" | "agent_instance_starting" | "approval_rejected" | "attention_requires_action" | "compaction_unsupported" | "generation_fenced" | "input_request_already_answered" | "input_request_limit_reached" | "input_request_not_found" | "input_request_requires_hidden_input" | "input_request_superseded" | "invalid_cwd" | "journal_unavailable" | "message_hop_limit" | "message_rate_limited" | "model_not_found" | "profile_archived" | "profile_selection_conflict" | "profile_session_conflict" | "profile_unavailable" | "provider_disabled" | "reasoning_effort_unsupported" | "recording_already_started" | "recording_not_active" | "recording_unavailable" | "session_archive_stop_failed" | "session_busy" | "session_in_later" | "session_later_stop_failed" | "session_worktree_conflict" | "slow_consumer" | "subagent_later_follows_parent" | "subscriber_limit_reached" | "terminal_exited" | "terminal_expired" | "terminal_interactive_unavailable" | "terminal_limit_reached" | "terminal_not_found" | "terminal_not_interactive" | "terminal_requires_workspace" | "ticket_expired" | "ticket_invalid" | "timeout_out_of_range" | "tool_approval_required" | "tool_backend_failed" | "tool_canceled" | "tool_conflict" | "tool_denied" | "tool_invalid_input" | "tool_not_found" | "tool_result_persistence_failed" | "tool_result_too_large" | "tool_timed_out" | "tool_unavailable" | "workspace_archived" | "workspace_busy" | "workspace_root_missing" | "worktree_missing" | "worktree_not_found" | "worktree_not_ready" | "worktree_operation_in_progress" | "worktree_session_active";
9321
9349
  input_digest?: string;
9322
9350
  kind: "tool.call_started" | "tool.call_completed" | "tool.call_failed" | "tool.call_denied" | "tool.result_truncated";
9323
9351
  open_world: boolean;
@@ -9359,6 +9387,7 @@ export type ToolDescriptorPayload = {
9359
9387
  open_world: boolean;
9360
9388
  output_schema?: unknown;
9361
9389
  output_schema_digest?: string;
9390
+ output_views?: ResultViews | null;
9362
9391
  preview?: string;
9363
9392
  read_only: boolean;
9364
9393
  requires_interaction: boolean;
@@ -9371,7 +9400,7 @@ export type ToolDescriptorPayload = {
9371
9400
  visibility: "internal" | "operator" | "session" | "model";
9372
9401
  };
9373
9402
  export type ToolErrorPayload = {
9374
- code: "agent_instance_not_found" | "agent_instance_starting" | "approval_rejected" | "attention_requires_action" | "compaction_unsupported" | "generation_fenced" | "input_request_already_answered" | "input_request_limit_reached" | "input_request_not_found" | "input_request_requires_hidden_input" | "input_request_superseded" | "invalid_cwd" | "journal_unavailable" | "message_hop_limit" | "message_rate_limited" | "model_not_found" | "profile_archived" | "profile_selection_conflict" | "profile_session_conflict" | "profile_unavailable" | "reasoning_effort_unsupported" | "recording_already_started" | "recording_not_active" | "recording_unavailable" | "session_archive_stop_failed" | "session_busy" | "session_in_later" | "session_later_stop_failed" | "session_worktree_conflict" | "slow_consumer" | "subagent_later_follows_parent" | "subscriber_limit_reached" | "terminal_exited" | "terminal_expired" | "terminal_interactive_unavailable" | "terminal_limit_reached" | "terminal_not_found" | "terminal_not_interactive" | "terminal_requires_workspace" | "ticket_expired" | "ticket_invalid" | "timeout_out_of_range" | "tool_approval_required" | "tool_backend_failed" | "tool_canceled" | "tool_conflict" | "tool_denied" | "tool_invalid_input" | "tool_not_found" | "tool_result_persistence_failed" | "tool_result_too_large" | "tool_timed_out" | "tool_unavailable" | "workspace_archived" | "workspace_busy" | "workspace_root_missing" | "worktree_missing" | "worktree_not_found" | "worktree_not_ready" | "worktree_operation_in_progress" | "worktree_session_active";
9403
+ code: "agent_instance_not_found" | "agent_instance_starting" | "approval_rejected" | "attention_requires_action" | "compaction_unsupported" | "generation_fenced" | "input_request_already_answered" | "input_request_limit_reached" | "input_request_not_found" | "input_request_requires_hidden_input" | "input_request_superseded" | "invalid_cwd" | "journal_unavailable" | "message_hop_limit" | "message_rate_limited" | "model_not_found" | "profile_archived" | "profile_selection_conflict" | "profile_session_conflict" | "profile_unavailable" | "provider_disabled" | "reasoning_effort_unsupported" | "recording_already_started" | "recording_not_active" | "recording_unavailable" | "session_archive_stop_failed" | "session_busy" | "session_in_later" | "session_later_stop_failed" | "session_worktree_conflict" | "slow_consumer" | "subagent_later_follows_parent" | "subscriber_limit_reached" | "terminal_exited" | "terminal_expired" | "terminal_interactive_unavailable" | "terminal_limit_reached" | "terminal_not_found" | "terminal_not_interactive" | "terminal_requires_workspace" | "ticket_expired" | "ticket_invalid" | "timeout_out_of_range" | "tool_approval_required" | "tool_backend_failed" | "tool_canceled" | "tool_conflict" | "tool_denied" | "tool_invalid_input" | "tool_not_found" | "tool_result_persistence_failed" | "tool_result_too_large" | "tool_timed_out" | "tool_unavailable" | "workspace_archived" | "workspace_busy" | "workspace_root_missing" | "worktree_missing" | "worktree_not_found" | "worktree_not_ready" | "worktree_operation_in_progress" | "worktree_session_active";
9375
9404
  details?: {
9376
9405
  [key: string]: unknown;
9377
9406
  };
@@ -9442,6 +9471,7 @@ export type ToolResult = {
9442
9471
  export type ToolSearchRequest = {
9443
9472
  agent_name?: string;
9444
9473
  limit?: number;
9474
+ offset?: number;
9445
9475
  query: string;
9446
9476
  session_id?: string;
9447
9477
  workspace_id?: string;
@@ -9457,7 +9487,12 @@ export type ToolSourceRefPayload = {
9457
9487
  workspace_id?: string;
9458
9488
  };
9459
9489
  export type ToolsResponse = {
9490
+ count: number;
9491
+ has_more: boolean;
9492
+ next_offset?: number;
9493
+ offset?: number;
9460
9494
  tools: Array<ToolPayload>;
9495
+ total: number;
9461
9496
  };
9462
9497
  export type ToolsetPayload = {
9463
9498
  expanded_tools?: Array<string>;
@@ -10227,6 +10262,7 @@ export type CreateAgentPayloadWritable = {
10227
10262
  appearance?: {
10228
10263
  [key: string]: unknown;
10229
10264
  };
10265
+ auto_compact_window?: number | null;
10230
10266
  category_path?: Array<string>;
10231
10267
  command?: string;
10232
10268
  deny_tools?: Array<string>;
@@ -10238,6 +10274,7 @@ export type CreateAgentPayloadWritable = {
10238
10274
  */
10239
10275
  kind?: "on_demand" | "always_on";
10240
10276
  label?: string;
10277
+ lean_environment?: boolean | null;
10241
10278
  mcp_servers?: Array<AgentMCPServerInputWritable>;
10242
10279
  model?: string;
10243
10280
  name: string;
@@ -14977,7 +15014,11 @@ export type ListAutomationJobRunsData = {
14977
15014
  */
14978
15015
  until?: string;
14979
15016
  /**
14980
- * Maximum number of records to return
15017
+ * Continue after page.next_cursor with unchanged filters
15018
+ */
15019
+ cursor?: string;
15020
+ /**
15021
+ * Page size (default 50, maximum 200; zero uses default)
14981
15022
  */
14982
15023
  limit?: number;
14983
15024
  /**
@@ -15100,7 +15141,7 @@ export type ListAutomationRunsData = {
15100
15141
  */
15101
15142
  until?: string;
15102
15143
  /**
15103
- * Maximum number of records to return
15144
+ * Page size (default 50, maximum 200; zero uses default)
15104
15145
  */
15105
15146
  limit?: number;
15106
15147
  /**
@@ -15511,7 +15552,11 @@ export type ListAutomationTriggerRunsData = {
15511
15552
  */
15512
15553
  until?: string;
15513
15554
  /**
15514
- * Maximum number of records to return
15555
+ * Continue after page.next_cursor with unchanged filters
15556
+ */
15557
+ cursor?: string;
15558
+ /**
15559
+ * Page size (default 50, maximum 200; zero uses default)
15515
15560
  */
15516
15561
  limit?: number;
15517
15562
  /**
@@ -23340,6 +23385,50 @@ export type PutSettingsProviderResponses = {
23340
23385
  200: SettingsApplyResponse;
23341
23386
  };
23342
23387
  export type PutSettingsProviderResponse = PutSettingsProviderResponses[keyof PutSettingsProviderResponses];
23388
+ export type SetSettingsProviderEnabledData = {
23389
+ /**
23390
+ * JSON request body
23391
+ */
23392
+ body: SetSettingsProviderEnabledRequest;
23393
+ path: {
23394
+ /**
23395
+ * Provider name
23396
+ */
23397
+ name: string;
23398
+ };
23399
+ query?: never;
23400
+ url: "/api/settings/providers/{name}/enabled";
23401
+ };
23402
+ export type SetSettingsProviderEnabledErrors = {
23403
+ /**
23404
+ * Invalid enabled payload
23405
+ */
23406
+ 400: ErrorPayload;
23407
+ /**
23408
+ * Forbidden
23409
+ */
23410
+ 403: ErrorPayload;
23411
+ /**
23412
+ * Provider not found
23413
+ */
23414
+ 404: ErrorPayload;
23415
+ /**
23416
+ * Disabling the default provider is rejected
23417
+ */
23418
+ 422: ErrorPayload;
23419
+ /**
23420
+ * Internal server error
23421
+ */
23422
+ 500: ErrorPayload;
23423
+ };
23424
+ export type SetSettingsProviderEnabledError = SetSettingsProviderEnabledErrors[keyof SetSettingsProviderEnabledErrors];
23425
+ export type SetSettingsProviderEnabledResponses = {
23426
+ /**
23427
+ * OK
23428
+ */
23429
+ 200: SettingsProviderEnabledResponse;
23430
+ };
23431
+ export type SetSettingsProviderEnabledResponse = SetSettingsProviderEnabledResponses[keyof SetSettingsProviderEnabledResponses];
23343
23432
  export type ReloadSettingsData = {
23344
23433
  body?: never;
23345
23434
  path?: never;
@@ -28085,14 +28174,31 @@ export type GetWorkspaceData = {
28085
28174
  */
28086
28175
  id: string;
28087
28176
  };
28088
- query?: never;
28177
+ query?: {
28178
+ /**
28179
+ * Read one profile's rows by name
28180
+ */
28181
+ profile?: string;
28182
+ /**
28183
+ * Read the owner-labeled all-profiles aggregate
28184
+ */
28185
+ all_profiles?: boolean;
28186
+ };
28089
28187
  url: "/api/workspaces/{id}";
28090
28188
  };
28091
28189
  export type GetWorkspaceErrors = {
28092
28190
  /**
28093
- * Workspace not found
28191
+ * Invalid profile selection
28094
28192
  */
28095
- 404: ErrorPayload;
28193
+ 400: ProfileErrorPayload;
28194
+ /**
28195
+ * Workspace or requested profile not found
28196
+ */
28197
+ 404: ErrorPayload | ProfileErrorPayload;
28198
+ /**
28199
+ * Profile archived or unavailable
28200
+ */
28201
+ 409: ProfileErrorPayload;
28096
28202
  /**
28097
28203
  * Unknown workspace config keys (workspace_config_invalid)
28098
28204
  */
@@ -37527,6 +37633,10 @@ export type ListWorktreesData = {
37527
37633
  * Refresh Git discovery and status
37528
37634
  */
37529
37635
  refresh?: boolean;
37636
+ /**
37637
+ * Include removed records (excluded by default)
37638
+ */
37639
+ include_removed?: boolean;
37530
37640
  };
37531
37641
  url: "/api/workspaces/{workspace_id}/worktrees";
37532
37642
  };
@@ -38210,6 +38320,10 @@ export type ListWorktreesAggregateData = {
38210
38320
  * Repeatable project IDs or @user; requires all_workspaces=true
38211
38321
  */
38212
38322
  workspace_ids?: Array<string>;
38323
+ /**
38324
+ * Include removed records (excluded by default)
38325
+ */
38326
+ include_removed?: boolean;
38213
38327
  };
38214
38328
  url: "/api/worktrees";
38215
38329
  };