@compozy/client 0.5.5 → 0.6.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.
@@ -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?: {
@@ -299,6 +302,7 @@ export type AgentInstancePayload = {
299
302
  workspace_id: string;
300
303
  };
301
304
  export type AgentInstancePeer = {
305
+ accepts?: Array<string>;
302
306
  description: string;
303
307
  name: string;
304
308
  scope: string;
@@ -442,6 +446,7 @@ export type AgentMeResponse = {
442
446
  me: AgentMePayload;
443
447
  };
444
448
  export type AgentMemoryAddRequest = {
449
+ kind?: string;
445
450
  text: string;
446
451
  until?: string;
447
452
  };
@@ -512,10 +517,12 @@ export type AgentNotifyResponse = {
512
517
  retry_after_ms?: number;
513
518
  };
514
519
  export type AgentPayload = {
520
+ accepts?: Array<string>;
515
521
  acp_options?: Array<AgentACPOptionSelection>;
516
522
  appearance?: {
517
523
  [key: string]: unknown;
518
524
  };
525
+ auto_compact_window?: number | null;
519
526
  category_path?: Array<string>;
520
527
  command?: string;
521
528
  definition_digest: string;
@@ -528,6 +535,7 @@ export type AgentPayload = {
528
535
  kind?: string;
529
536
  label: string;
530
537
  layer?: string;
538
+ lean_environment?: boolean | null;
531
539
  mcp_servers?: Array<AgentMCPServerJSON>;
532
540
  model?: string;
533
541
  name: string;
@@ -1532,6 +1540,7 @@ export type CreateAgentPayload = {
1532
1540
  appearance?: {
1533
1541
  [key: string]: unknown;
1534
1542
  };
1543
+ auto_compact_window?: number | null;
1535
1544
  category_path?: Array<string>;
1536
1545
  command?: string;
1537
1546
  deny_tools?: Array<string>;
@@ -1543,6 +1552,7 @@ export type CreateAgentPayload = {
1543
1552
  */
1544
1553
  kind?: "on_demand" | "always_on";
1545
1554
  label?: string;
1555
+ lean_environment?: boolean | null;
1546
1556
  mcp_servers?: Array<AgentMCPServerInput>;
1547
1557
  model?: string;
1548
1558
  name: string;
@@ -1822,6 +1832,7 @@ export type DuplicateAgentOverrides = {
1822
1832
  appearance?: {
1823
1833
  [key: string]: unknown;
1824
1834
  };
1835
+ auto_compact_window?: number | null;
1825
1836
  category_path?: Array<string>;
1826
1837
  clear_acp_options?: boolean;
1827
1838
  clear_speed?: boolean;
@@ -1833,6 +1844,7 @@ export type DuplicateAgentOverrides = {
1833
1844
  * Agent kind: on_demand (default) or always_on; fixed at creation.
1834
1845
  */
1835
1846
  kind?: "on_demand" | "always_on";
1847
+ lean_environment?: boolean | null;
1836
1848
  model?: string;
1837
1849
  permission_rules?: Array<AgentPermissionRulePayload>;
1838
1850
  permissions?: "deny-all" | "approve-reads" | "approve-edits" | "auto" | "approve-all";
@@ -4958,6 +4970,7 @@ export type ProviderSummaryPayload = {
4958
4970
  auth_status: ProviderAuthStatusPayload;
4959
4971
  default: boolean;
4960
4972
  display_name?: string;
4973
+ enabled: boolean;
4961
4974
  name: string;
4962
4975
  reviewer_mode: string;
4963
4976
  runtime_strategy?: "session_config" | "launch_arg" | "provider_managed";
@@ -5309,6 +5322,14 @@ export type RestartProgress = {
5309
5322
  total: number;
5310
5323
  updated_at: string;
5311
5324
  };
5325
+ export type ResultViewContract = {
5326
+ digest?: string;
5327
+ schema: unknown;
5328
+ };
5329
+ export type ResultViews = {
5330
+ compact: ResultViewContract;
5331
+ full: ResultViewContract;
5332
+ };
5312
5333
  export type ResumeSessionFromLaterRequest = {
5313
5334
  with_children?: boolean;
5314
5335
  };
@@ -6762,6 +6783,9 @@ export type SetSessionRuntimeRequest = {
6762
6783
  expected_revision: number | null;
6763
6784
  runtime: PromptRuntimeSelectionPayload;
6764
6785
  };
6786
+ export type SetSettingsProviderEnabledRequest = {
6787
+ enabled: boolean;
6788
+ };
6765
6789
  export type SettingsActionMetadataPayload = {
6766
6790
  available: boolean;
6767
6791
  behavior: "applied_now" | "restart_required" | "action_trigger";
@@ -7270,6 +7294,10 @@ export type SettingsProviderCredentialStatusPayload = {
7270
7294
  source?: string;
7271
7295
  target_env: string;
7272
7296
  };
7297
+ export type SettingsProviderEnabledResponse = {
7298
+ apply: SettingsApplyResponse;
7299
+ provider: SettingsProviderItemPayload;
7300
+ };
7273
7301
  export type SettingsProviderFallbackPayload = {
7274
7302
  settings: SettingsProviderSettingsPayload;
7275
7303
  source: SettingsSourceRefPayload;
@@ -7335,11 +7363,13 @@ export type SettingsProviderSettingsPayload = {
7335
7363
  auth_acp_method?: string;
7336
7364
  auth_mode?: string;
7337
7365
  auth_status_command?: string;
7366
+ auto_compact_window?: number | null;
7338
7367
  base_url?: string;
7339
7368
  command?: string;
7340
7369
  command_inherited?: boolean;
7341
7370
  credential_slots?: Array<SettingsProviderCredentialSlotPayload>;
7342
7371
  display_name?: string;
7372
+ enabled: boolean;
7343
7373
  env_policy?: string;
7344
7374
  harness?: string;
7345
7375
  home_policy?: string;
@@ -7377,6 +7407,7 @@ export type SettingsProviderWritePayload = {
7377
7407
  auth_login_command?: string | null;
7378
7408
  auth_mode?: string;
7379
7409
  auth_status_command?: string;
7410
+ auto_compact_window?: number | null;
7380
7411
  base_url?: string;
7381
7412
  command?: string;
7382
7413
  credential_slots?: Array<SettingsProviderCredentialSlotPayload>;
@@ -7434,7 +7465,9 @@ export type SettingsRolesResponse = {
7434
7465
  workspace_id?: string;
7435
7466
  };
7436
7467
  export type SettingsShellAppearancePayload = {
7468
+ letter_spacing?: "tight" | "default" | "relaxed" | "wide";
7437
7469
  mono_font?: string | null;
7470
+ text_size?: "small" | "default" | "large" | "larger";
7438
7471
  ui_font?: string | null;
7439
7472
  };
7440
7473
  export type SettingsShellLegacyScopePayload = {
@@ -9020,6 +9053,7 @@ export type TerminalExecRequest = {
9020
9053
  };
9021
9054
  output?: TerminalOutputShape;
9022
9055
  visible?: boolean;
9056
+ worktree?: string;
9023
9057
  yield_ms?: number;
9024
9058
  };
9025
9059
  export type TerminalExecResponse = {
@@ -9317,7 +9351,7 @@ export type ToolCallEventPayload = {
9317
9351
  destructive: boolean;
9318
9352
  display_title?: string;
9319
9353
  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";
9354
+ 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
9355
  input_digest?: string;
9322
9356
  kind: "tool.call_started" | "tool.call_completed" | "tool.call_failed" | "tool.call_denied" | "tool.result_truncated";
9323
9357
  open_world: boolean;
@@ -9359,6 +9393,7 @@ export type ToolDescriptorPayload = {
9359
9393
  open_world: boolean;
9360
9394
  output_schema?: unknown;
9361
9395
  output_schema_digest?: string;
9396
+ output_views?: ResultViews | null;
9362
9397
  preview?: string;
9363
9398
  read_only: boolean;
9364
9399
  requires_interaction: boolean;
@@ -9371,7 +9406,7 @@ export type ToolDescriptorPayload = {
9371
9406
  visibility: "internal" | "operator" | "session" | "model";
9372
9407
  };
9373
9408
  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";
9409
+ 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
9410
  details?: {
9376
9411
  [key: string]: unknown;
9377
9412
  };
@@ -9442,6 +9477,7 @@ export type ToolResult = {
9442
9477
  export type ToolSearchRequest = {
9443
9478
  agent_name?: string;
9444
9479
  limit?: number;
9480
+ offset?: number;
9445
9481
  query: string;
9446
9482
  session_id?: string;
9447
9483
  workspace_id?: string;
@@ -9457,7 +9493,12 @@ export type ToolSourceRefPayload = {
9457
9493
  workspace_id?: string;
9458
9494
  };
9459
9495
  export type ToolsResponse = {
9496
+ count: number;
9497
+ has_more: boolean;
9498
+ next_offset?: number;
9499
+ offset?: number;
9460
9500
  tools: Array<ToolPayload>;
9501
+ total: number;
9461
9502
  };
9462
9503
  export type ToolsetPayload = {
9463
9504
  expanded_tools?: Array<string>;
@@ -10227,6 +10268,7 @@ export type CreateAgentPayloadWritable = {
10227
10268
  appearance?: {
10228
10269
  [key: string]: unknown;
10229
10270
  };
10271
+ auto_compact_window?: number | null;
10230
10272
  category_path?: Array<string>;
10231
10273
  command?: string;
10232
10274
  deny_tools?: Array<string>;
@@ -10238,6 +10280,7 @@ export type CreateAgentPayloadWritable = {
10238
10280
  */
10239
10281
  kind?: "on_demand" | "always_on";
10240
10282
  label?: string;
10283
+ lean_environment?: boolean | null;
10241
10284
  mcp_servers?: Array<AgentMCPServerInputWritable>;
10242
10285
  model?: string;
10243
10286
  name: string;
@@ -14977,7 +15020,11 @@ export type ListAutomationJobRunsData = {
14977
15020
  */
14978
15021
  until?: string;
14979
15022
  /**
14980
- * Maximum number of records to return
15023
+ * Continue after page.next_cursor with unchanged filters
15024
+ */
15025
+ cursor?: string;
15026
+ /**
15027
+ * Page size (default 50, maximum 200; zero uses default)
14981
15028
  */
14982
15029
  limit?: number;
14983
15030
  /**
@@ -15026,6 +15073,14 @@ export type TriggerAutomationJobData = {
15026
15073
  id: string;
15027
15074
  };
15028
15075
  query?: {
15076
+ /**
15077
+ * Wait for completion (default false); execution continues after the wait ends
15078
+ */
15079
+ wait?: boolean;
15080
+ /**
15081
+ * Completion wait budget when wait=true (default 1m; positive duration up to 24h). On expiry returns the running admission receipt
15082
+ */
15083
+ timeout?: string;
15029
15084
  /**
15030
15085
  * Act as this profile by name
15031
15086
  */
@@ -15054,7 +15109,7 @@ export type TriggerAutomationJobErrors = {
15054
15109
  export type TriggerAutomationJobError = TriggerAutomationJobErrors[keyof TriggerAutomationJobErrors];
15055
15110
  export type TriggerAutomationJobResponses = {
15056
15111
  /**
15057
- * OK
15112
+ * Admitted run with id and running status, or final result when wait=true; task and Loop targets retain delegated status
15058
15113
  */
15059
15114
  200: RunResponse;
15060
15115
  };
@@ -15100,7 +15155,7 @@ export type ListAutomationRunsData = {
15100
15155
  */
15101
15156
  until?: string;
15102
15157
  /**
15103
- * Maximum number of records to return
15158
+ * Page size (default 50, maximum 200; zero uses default)
15104
15159
  */
15105
15160
  limit?: number;
15106
15161
  /**
@@ -15511,7 +15566,11 @@ export type ListAutomationTriggerRunsData = {
15511
15566
  */
15512
15567
  until?: string;
15513
15568
  /**
15514
- * Maximum number of records to return
15569
+ * Continue after page.next_cursor with unchanged filters
15570
+ */
15571
+ cursor?: string;
15572
+ /**
15573
+ * Page size (default 50, maximum 200; zero uses default)
15515
15574
  */
15516
15575
  limit?: number;
15517
15576
  /**
@@ -23340,6 +23399,50 @@ export type PutSettingsProviderResponses = {
23340
23399
  200: SettingsApplyResponse;
23341
23400
  };
23342
23401
  export type PutSettingsProviderResponse = PutSettingsProviderResponses[keyof PutSettingsProviderResponses];
23402
+ export type SetSettingsProviderEnabledData = {
23403
+ /**
23404
+ * JSON request body
23405
+ */
23406
+ body: SetSettingsProviderEnabledRequest;
23407
+ path: {
23408
+ /**
23409
+ * Provider name
23410
+ */
23411
+ name: string;
23412
+ };
23413
+ query?: never;
23414
+ url: "/api/settings/providers/{name}/enabled";
23415
+ };
23416
+ export type SetSettingsProviderEnabledErrors = {
23417
+ /**
23418
+ * Invalid enabled payload
23419
+ */
23420
+ 400: ErrorPayload;
23421
+ /**
23422
+ * Forbidden
23423
+ */
23424
+ 403: ErrorPayload;
23425
+ /**
23426
+ * Provider not found
23427
+ */
23428
+ 404: ErrorPayload;
23429
+ /**
23430
+ * Disabling the default provider is rejected
23431
+ */
23432
+ 422: ErrorPayload;
23433
+ /**
23434
+ * Internal server error
23435
+ */
23436
+ 500: ErrorPayload;
23437
+ };
23438
+ export type SetSettingsProviderEnabledError = SetSettingsProviderEnabledErrors[keyof SetSettingsProviderEnabledErrors];
23439
+ export type SetSettingsProviderEnabledResponses = {
23440
+ /**
23441
+ * OK
23442
+ */
23443
+ 200: SettingsProviderEnabledResponse;
23444
+ };
23445
+ export type SetSettingsProviderEnabledResponse = SetSettingsProviderEnabledResponses[keyof SetSettingsProviderEnabledResponses];
23343
23446
  export type ReloadSettingsData = {
23344
23447
  body?: never;
23345
23448
  path?: never;
@@ -28085,14 +28188,31 @@ export type GetWorkspaceData = {
28085
28188
  */
28086
28189
  id: string;
28087
28190
  };
28088
- query?: never;
28191
+ query?: {
28192
+ /**
28193
+ * Read one profile's rows by name
28194
+ */
28195
+ profile?: string;
28196
+ /**
28197
+ * Read the owner-labeled all-profiles aggregate
28198
+ */
28199
+ all_profiles?: boolean;
28200
+ };
28089
28201
  url: "/api/workspaces/{id}";
28090
28202
  };
28091
28203
  export type GetWorkspaceErrors = {
28092
28204
  /**
28093
- * Workspace not found
28205
+ * Invalid profile selection
28094
28206
  */
28095
- 404: ErrorPayload;
28207
+ 400: ProfileErrorPayload;
28208
+ /**
28209
+ * Workspace or requested profile not found
28210
+ */
28211
+ 404: ErrorPayload | ProfileErrorPayload;
28212
+ /**
28213
+ * Profile archived or unavailable
28214
+ */
28215
+ 409: ProfileErrorPayload;
28096
28216
  /**
28097
28217
  * Unknown workspace config keys (workspace_config_invalid)
28098
28218
  */
@@ -37527,6 +37647,10 @@ export type ListWorktreesData = {
37527
37647
  * Refresh Git discovery and status
37528
37648
  */
37529
37649
  refresh?: boolean;
37650
+ /**
37651
+ * Include removed records (excluded by default)
37652
+ */
37653
+ include_removed?: boolean;
37530
37654
  };
37531
37655
  url: "/api/workspaces/{workspace_id}/worktrees";
37532
37656
  };
@@ -38210,6 +38334,10 @@ export type ListWorktreesAggregateData = {
38210
38334
  * Repeatable project IDs or @user; requires all_workspaces=true
38211
38335
  */
38212
38336
  workspace_ids?: Array<string>;
38337
+ /**
38338
+ * Include removed records (excluded by default)
38339
+ */
38340
+ include_removed?: boolean;
38213
38341
  };
38214
38342
  url: "/api/worktrees";
38215
38343
  };