@compozy/client 0.6.2 → 0.7.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.
- package/dist/cjs/generated/sdk/sdk.gen.js +68 -0
- package/dist/cjs/generated/sdk/sdk.gen.js.map +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/generated/sdk/sdk.gen.js +68 -0
- package/dist/esm/generated/sdk/sdk.gen.js.map +1 -1
- package/dist/esm/version.js +1 -1
- package/dist/types/generated/openapi/compozy-openapi.d.ts +1010 -61
- package/dist/types/generated/sdk/index.d.ts +1 -1
- package/dist/types/generated/sdk/index.d.ts.map +1 -1
- package/dist/types/generated/sdk/sdk.gen.d.ts +25 -1
- package/dist/types/generated/sdk/sdk.gen.d.ts.map +1 -1
- package/dist/types/generated/sdk/types.gen.d.ts +580 -48
- package/dist/types/generated/sdk/types.gen.d.ts.map +1 -1
- package/dist/types/version.d.ts +1 -1
- package/package.json +1 -1
|
@@ -995,6 +995,11 @@ export type BindSessionWorktreeRequest = {
|
|
|
995
995
|
expected_worktree_id?: string | null;
|
|
996
996
|
worktree: string;
|
|
997
997
|
};
|
|
998
|
+
/**
|
|
999
|
+
* Deprecated: accepted and ignored; remove before v0.8.0.
|
|
1000
|
+
*
|
|
1001
|
+
* @deprecated
|
|
1002
|
+
*/
|
|
998
1003
|
export type BindingsConfig = {
|
|
999
1004
|
bottom_center: string;
|
|
1000
1005
|
top_center: string;
|
|
@@ -1093,10 +1098,28 @@ export type ChangePatchPayload = {
|
|
|
1093
1098
|
export type ChangeSet = {
|
|
1094
1099
|
client_ids?: Array<string>;
|
|
1095
1100
|
desktop_ids?: Array<string>;
|
|
1101
|
+
/**
|
|
1102
|
+
* Deprecated: retained for compatibility; removed in v0.8.0. See the window-manager deprecation matrix for its replacement.
|
|
1103
|
+
*
|
|
1104
|
+
* @deprecated
|
|
1105
|
+
*/
|
|
1096
1106
|
group_ids?: Array<string>;
|
|
1097
1107
|
node_ids?: Array<string>;
|
|
1108
|
+
/**
|
|
1109
|
+
* Deprecated: retained for compatibility; removed in v0.8.0. See the window-manager deprecation matrix for its replacement.
|
|
1110
|
+
*
|
|
1111
|
+
* @deprecated
|
|
1112
|
+
*/
|
|
1098
1113
|
stack_grouped?: Array<string>;
|
|
1114
|
+
/**
|
|
1115
|
+
* Deprecated: retained for compatibility; removed in v0.8.0. See the window-manager deprecation matrix for its replacement.
|
|
1116
|
+
*
|
|
1117
|
+
* @deprecated
|
|
1118
|
+
*/
|
|
1099
1119
|
stack_ungrouped?: Array<string>;
|
|
1120
|
+
tab_ids?: Array<string>;
|
|
1121
|
+
tab_split?: Array<string>;
|
|
1122
|
+
tab_unsplit?: Array<string>;
|
|
1100
1123
|
window_ids?: Array<string>;
|
|
1101
1124
|
};
|
|
1102
1125
|
export type ChangeSidePayload = {
|
|
@@ -1405,6 +1428,9 @@ export type ContractWindowManagerClientRegistration = {
|
|
|
1405
1428
|
};
|
|
1406
1429
|
export type ContractWindowManagerClientView = {
|
|
1407
1430
|
active_desktop_id: string;
|
|
1431
|
+
active_tab: {
|
|
1432
|
+
[key: string]: string;
|
|
1433
|
+
};
|
|
1408
1434
|
attachment_token?: string;
|
|
1409
1435
|
client_id: string;
|
|
1410
1436
|
connected_at: string;
|
|
@@ -1415,6 +1441,11 @@ export type ContractWindowManagerClientView = {
|
|
|
1415
1441
|
kind: string;
|
|
1416
1442
|
palette_context: WindowManagerPaletteContext;
|
|
1417
1443
|
presentation_revision: number;
|
|
1444
|
+
/**
|
|
1445
|
+
* Deprecated: retained for compatibility; removed in v0.8.0. See the window-manager deprecation matrix for its replacement.
|
|
1446
|
+
*
|
|
1447
|
+
* @deprecated
|
|
1448
|
+
*/
|
|
1418
1449
|
stack_active: {
|
|
1419
1450
|
[key: string]: string;
|
|
1420
1451
|
};
|
|
@@ -1427,7 +1458,7 @@ export type ContractWindowManagerClientsResponse = {
|
|
|
1427
1458
|
export type ContractWindowManagerCommandRequest = {
|
|
1428
1459
|
actor: WindowManagerActor;
|
|
1429
1460
|
client_id?: string | null;
|
|
1430
|
-
command_id: "desktop.create" | "desktop.update" | "desktop.reorder" | "desktop.switch" | "desktop.delete" | "window.open" | "window.navigate" | "window.close" | "window.focus" | "window.move" | "window.resize" | "window.swap" | "window.toggle_floating" | "window.zoom" | "window.stack.group" | "window.stack.reorder" | "window.stack.set_active" | "window.pin" | "window.reopen" | "layout.arrange" | "layout.resize" | "layout.frame_resize" | "layout.balance" | "layout.undo" | "layout.redo" | "layout.replace";
|
|
1461
|
+
command_id: "desktop.create" | "desktop.update" | "desktop.reorder" | "desktop.switch" | "desktop.delete" | "window.open" | "window.navigate" | "window.close" | "window.focus" | "window.move" | "window.resize" | "window.swap" | "window.toggle_floating" | "window.zoom" | "window.stack.group" | "window.stack.reorder" | "window.stack.set_active" | "window.pin" | "window.reopen" | "window.tab.reorder" | "window.tab.activate" | "layout.arrange" | "layout.resize" | "layout.frame_resize" | "layout.balance" | "layout.undo" | "layout.redo" | "layout.replace";
|
|
1431
1462
|
expected_revision: number;
|
|
1432
1463
|
origin: string;
|
|
1433
1464
|
payload: unknown;
|
|
@@ -1435,12 +1466,11 @@ export type ContractWindowManagerCommandRequest = {
|
|
|
1435
1466
|
workspace_id: string;
|
|
1436
1467
|
};
|
|
1437
1468
|
export type ContractWindowManagerDesktop = {
|
|
1438
|
-
|
|
1439
|
-
floating_stacks: Array<WindowManagerFloatingStack>;
|
|
1440
|
-
groups: Array<ContractWindowManagerLayoutGroup>;
|
|
1469
|
+
active_tab_id: string;
|
|
1441
1470
|
id: string;
|
|
1442
1471
|
name: string;
|
|
1443
1472
|
order: number;
|
|
1473
|
+
tabs: Array<ContractWindowManagerTab>;
|
|
1444
1474
|
};
|
|
1445
1475
|
export type ContractWindowManagerErrorPayload = {
|
|
1446
1476
|
code: "window_manager_workspace_not_found" | "window_manager_revision_conflict" | "window_binding_invalid" | "window_manager_invalid_command" | "window_manager_invalid_topology" | "window_manager_desktop_not_found" | "window_manager_window_not_found" | "window_manager_not_stacked" | "window_manager_window_pinned" | "window_manager_client_not_found" | "window_manager_destination_required" | "window_manager_final_desktop" | "window_manager_history_boundary" | "window_manager_layout_not_found" | "window_manager_slow_consumer" | "window_manager_unavailable";
|
|
@@ -1459,11 +1489,6 @@ export type ContractWindowManagerLayoutDocument = {
|
|
|
1459
1489
|
};
|
|
1460
1490
|
workspace_id: string;
|
|
1461
1491
|
};
|
|
1462
|
-
export type ContractWindowManagerLayoutGroup = {
|
|
1463
|
-
frame: NormalizedRect;
|
|
1464
|
-
id: string;
|
|
1465
|
-
root: WindowManagerLayoutNode;
|
|
1466
|
-
};
|
|
1467
1492
|
export type ContractWindowManagerLayoutReplaceRequest = {
|
|
1468
1493
|
actor: WindowManagerActor;
|
|
1469
1494
|
client_id?: string | null;
|
|
@@ -1478,6 +1503,7 @@ export type ContractWindowManagerLayoutValidationRequest = {
|
|
|
1478
1503
|
};
|
|
1479
1504
|
export type ContractWindowManagerLayoutValidationResponse = {
|
|
1480
1505
|
diagnostics?: Array<Diagnostic>;
|
|
1506
|
+
document?: ContractWindowManagerLayoutDocument | null;
|
|
1481
1507
|
valid: boolean;
|
|
1482
1508
|
workspace_id: string;
|
|
1483
1509
|
};
|
|
@@ -1485,6 +1511,7 @@ export type ContractWindowManagerPreview = {
|
|
|
1485
1511
|
changed: boolean;
|
|
1486
1512
|
changes: ChangeSet;
|
|
1487
1513
|
client?: ContractWindowManagerClientView | null;
|
|
1514
|
+
deprecations: Array<Deprecation>;
|
|
1488
1515
|
diagnostics?: Array<Diagnostic>;
|
|
1489
1516
|
snapshot: ContractWindowManagerSnapshot;
|
|
1490
1517
|
};
|
|
@@ -1492,6 +1519,7 @@ export type ContractWindowManagerResult = {
|
|
|
1492
1519
|
applied: boolean;
|
|
1493
1520
|
changes: ChangeSet;
|
|
1494
1521
|
client?: ContractWindowManagerClientView | null;
|
|
1522
|
+
deprecations: Array<Deprecation>;
|
|
1495
1523
|
diagnostics?: Array<Diagnostic>;
|
|
1496
1524
|
rebased_from?: number;
|
|
1497
1525
|
snapshot: ContractWindowManagerSnapshot;
|
|
@@ -1499,6 +1527,7 @@ export type ContractWindowManagerResult = {
|
|
|
1499
1527
|
export type ContractWindowManagerSnapshot = {
|
|
1500
1528
|
closed_entry_count: number;
|
|
1501
1529
|
desktops: Array<ContractWindowManagerDesktop>;
|
|
1530
|
+
migration?: MigrationStatus | null;
|
|
1502
1531
|
overrides: WorkspaceConfig;
|
|
1503
1532
|
revision: number;
|
|
1504
1533
|
updated_at: string;
|
|
@@ -1508,6 +1537,11 @@ export type ContractWindowManagerSnapshot = {
|
|
|
1508
1537
|
};
|
|
1509
1538
|
workspace_id: string;
|
|
1510
1539
|
};
|
|
1540
|
+
export type ContractWindowManagerTab = {
|
|
1541
|
+
id: string;
|
|
1542
|
+
pinned: boolean;
|
|
1543
|
+
root: WindowManagerLayoutNode;
|
|
1544
|
+
};
|
|
1511
1545
|
export type CoordinatorConfigPayload = {
|
|
1512
1546
|
agent_name: string;
|
|
1513
1547
|
default_ttl_seconds: number;
|
|
@@ -1763,6 +1797,13 @@ export type DeleteProfileResponse = {
|
|
|
1763
1797
|
export type DeleteResourceRequest = {
|
|
1764
1798
|
expected_version: number;
|
|
1765
1799
|
};
|
|
1800
|
+
export type Deprecation = {
|
|
1801
|
+
code: string;
|
|
1802
|
+
message: string;
|
|
1803
|
+
removal_release: string;
|
|
1804
|
+
replacement?: string;
|
|
1805
|
+
surface: string;
|
|
1806
|
+
};
|
|
1766
1807
|
export type DetailBody = {
|
|
1767
1808
|
actions?: Array<RowAction>;
|
|
1768
1809
|
is_loading?: boolean;
|
|
@@ -4350,6 +4391,35 @@ export type MetricSpec = {
|
|
|
4350
4391
|
direction: "maximize" | "minimize";
|
|
4351
4392
|
min_delta?: number | null;
|
|
4352
4393
|
};
|
|
4394
|
+
/**
|
|
4395
|
+
* Layout migration status. A conversion diagnostic is present in error only when state is failed; a successful retry clears error.
|
|
4396
|
+
*/
|
|
4397
|
+
export type MigrationStatus = {
|
|
4398
|
+
acknowledged: boolean;
|
|
4399
|
+
at?: string;
|
|
4400
|
+
error?: Diagnostic | null;
|
|
4401
|
+
/**
|
|
4402
|
+
* Topology revision installed on conversion failure; cleared after a successful retry.
|
|
4403
|
+
*/
|
|
4404
|
+
failure_revision?: number;
|
|
4405
|
+
from_version?: number;
|
|
4406
|
+
state: "none" | "migrated" | "failed";
|
|
4407
|
+
summary?: MigrationSummary | null;
|
|
4408
|
+
/**
|
|
4409
|
+
* Number of set-aside layout backups currently retained for this profile; omitted when zero.
|
|
4410
|
+
*/
|
|
4411
|
+
superseded_backups?: number;
|
|
4412
|
+
};
|
|
4413
|
+
export type MigrationSummary = {
|
|
4414
|
+
desktops: number;
|
|
4415
|
+
floating_to_tabs: number;
|
|
4416
|
+
islands_merged: number;
|
|
4417
|
+
minimized_to_tabs: number;
|
|
4418
|
+
pins_dropped: number;
|
|
4419
|
+
tabs: number;
|
|
4420
|
+
windows: number;
|
|
4421
|
+
zoom_desktops_merged: number;
|
|
4422
|
+
};
|
|
4353
4423
|
export type ModelCatalogCostPayload = {
|
|
4354
4424
|
cache_read_per_million?: number | null;
|
|
4355
4425
|
cache_write_per_million?: number | null;
|
|
@@ -4422,12 +4492,6 @@ export type NodeCancellation = {
|
|
|
4422
4492
|
export type NodeUsage = {
|
|
4423
4493
|
tokens: number;
|
|
4424
4494
|
};
|
|
4425
|
-
export type NormalizedRect = {
|
|
4426
|
-
height: number;
|
|
4427
|
-
width: number;
|
|
4428
|
-
x: number;
|
|
4429
|
-
y: number;
|
|
4430
|
-
};
|
|
4431
4495
|
export type OTelSignalStatusPayload = {
|
|
4432
4496
|
enabled: boolean;
|
|
4433
4497
|
failed_exports: number;
|
|
@@ -5192,6 +5256,16 @@ export type RemoveDiscoveredWorktreeRequest = {
|
|
|
5192
5256
|
force?: boolean;
|
|
5193
5257
|
path: string;
|
|
5194
5258
|
};
|
|
5259
|
+
export type RemoveWorktreesRequest = {
|
|
5260
|
+
delete_branch?: boolean;
|
|
5261
|
+
dry_run?: boolean;
|
|
5262
|
+
force?: boolean;
|
|
5263
|
+
targets: Array<WorktreeRemovalTarget>;
|
|
5264
|
+
};
|
|
5265
|
+
export type RemoveWorktreesResponse = {
|
|
5266
|
+
dry_run: boolean;
|
|
5267
|
+
results: Array<WorktreeRemovalResult>;
|
|
5268
|
+
};
|
|
5195
5269
|
export type RenameProfilePlan = {
|
|
5196
5270
|
dormant_placements: Array<ProfilePlacement>;
|
|
5197
5271
|
machine_folders: Array<string>;
|
|
@@ -6463,6 +6537,7 @@ export type SessionPayload = {
|
|
|
6463
6537
|
subagent_summary?: SubagentSummaryPayload | null;
|
|
6464
6538
|
supervision: SupervisionState | null;
|
|
6465
6539
|
transcript_epoch?: number;
|
|
6540
|
+
tree_parent_session_id?: string;
|
|
6466
6541
|
type?: "user" | "system" | "coordinator" | "spawned";
|
|
6467
6542
|
updated_at: string;
|
|
6468
6543
|
verified?: boolean | null;
|
|
@@ -7029,7 +7104,7 @@ export type SettingsHookDeclarationPayload = {
|
|
|
7029
7104
|
env?: {
|
|
7030
7105
|
[key: string]: string;
|
|
7031
7106
|
};
|
|
7032
|
-
event: "agent.instance.created" | "agent.instance.paused" | "agent.instance.resumed" | "agent.instance.archived" | "agent.instance.adopted" | "subagent.settled" | "session.pre_create" | "session.post_create" | "session.pre_resume" | "session.post_resume" | "session.pre_stop" | "session.post_stop" | "session.message_persisted" | "session.runtime_recovery.started" | "session.runtime_recovery.succeeded" | "session.runtime_recovery.exhausted" | "input.pre_submit" | "prompt.post_assemble" | "event.pre_record" | "event.post_record" | "automation.job.pre_fire" | "automation.job.post_fire" | "automation.trigger.pre_fire" | "automation.trigger.post_fire" | "automation.run.completed" | "automation.run.failed" | "agent.pre_start" | "agent.spawned" | "agent.crashed" | "agent.stopped" | "agent.soul.snapshot.resolved" | "agent.soul.mutation.after" | "agent.heartbeat.policy.resolved" | "agent.heartbeat.wake.before" | "agent.heartbeat.wake.after" | "session.health.update.after" | "turn.start" | "turn.end" | "message.start" | "message.delta" | "message.end" | "tool.pre_call" | "tool.post_call" | "tool.post_error" | "permission.request" | "permission.resolved" | "permission.denied" | "context.pre_compact" | "context.post_compact" | "coordinator.pre_spawn" | "coordinator.spawned" | "coordinator.decision" | "coordinator.stopped" | "coordinator.failed" | "task.blocked" | "task.unblocked" | "task.needs_attention" | "task.recovered" | "task.status_changed" | "task.run.enqueued" | "task.run.pre_claim" | "task.run.post_claim" | "task.run.lease_extended" | "task.run.lease_expired" | "task.run.lease_recovered" | "task.run.released" | "task.run.completed" | "task.run.failed" | "loop.started" | "loop.generation.pre" | "loop.generation.post" | "loop.gate.pre" | "loop.gate.post" | "loop.node.terminal" | "loop.terminal" | "spawn.pre_create" | "spawn.created" | "spawn.parent_stopped" | "spawn.ttl_expired" | "spawn.reaped" | "session.attention.changed" | "window_manager.layout.applied" | "window_manager.desktop.created" | "window_manager.desktop.deleted" | "window_manager.window.moved" | "window_manager.window.opened" | "window_manager.window.closed" | "window_manager.stack.grouped" | "window_manager.stack.ungrouped" | "window_manager.stack.activated" | "worktree.pre_create" | "worktree.pre_remove" | "worktree.created" | "worktree.adopted" | "worktree.removed" | "terminal.opened" | "terminal.closed" | "terminal.command_started" | "terminal.command_finished" | "terminal.input_requested" | "terminal.input_provided" | "terminal.recording_started" | "terminal.recording_stopped" | "terminal.subscriber_evicted" | "terminal.limit_rejected" | "agent.instance.proposal.picked";
|
|
7107
|
+
event: "agent.instance.created" | "agent.instance.paused" | "agent.instance.resumed" | "agent.instance.archived" | "agent.instance.adopted" | "subagent.settled" | "session.pre_create" | "session.post_create" | "session.pre_resume" | "session.post_resume" | "session.pre_stop" | "session.post_stop" | "session.message_persisted" | "session.runtime_recovery.started" | "session.runtime_recovery.succeeded" | "session.runtime_recovery.exhausted" | "input.pre_submit" | "prompt.post_assemble" | "event.pre_record" | "event.post_record" | "automation.job.pre_fire" | "automation.job.post_fire" | "automation.trigger.pre_fire" | "automation.trigger.post_fire" | "automation.run.completed" | "automation.run.failed" | "agent.pre_start" | "agent.spawned" | "agent.crashed" | "agent.stopped" | "agent.soul.snapshot.resolved" | "agent.soul.mutation.after" | "agent.heartbeat.policy.resolved" | "agent.heartbeat.wake.before" | "agent.heartbeat.wake.after" | "session.health.update.after" | "turn.start" | "turn.end" | "message.start" | "message.delta" | "message.end" | "tool.pre_call" | "tool.post_call" | "tool.post_error" | "permission.request" | "permission.resolved" | "permission.denied" | "context.pre_compact" | "context.post_compact" | "coordinator.pre_spawn" | "coordinator.spawned" | "coordinator.decision" | "coordinator.stopped" | "coordinator.failed" | "task.blocked" | "task.unblocked" | "task.needs_attention" | "task.recovered" | "task.status_changed" | "task.run.enqueued" | "task.run.pre_claim" | "task.run.post_claim" | "task.run.lease_extended" | "task.run.lease_expired" | "task.run.lease_recovered" | "task.run.released" | "task.run.completed" | "task.run.failed" | "loop.started" | "loop.generation.pre" | "loop.generation.post" | "loop.gate.pre" | "loop.gate.post" | "loop.node.terminal" | "loop.terminal" | "spawn.pre_create" | "spawn.created" | "spawn.parent_stopped" | "spawn.ttl_expired" | "spawn.reaped" | "session.attention.changed" | "window_manager.tab.split" | "window_manager.tab.unsplit" | "window_manager.tab.activated" | "window_manager.layout.applied" | "window_manager.desktop.created" | "window_manager.desktop.deleted" | "window_manager.window.moved" | "window_manager.window.opened" | "window_manager.window.closed" | "window_manager.stack.grouped" | "window_manager.stack.ungrouped" | "window_manager.stack.activated" | "worktree.pre_create" | "worktree.pre_remove" | "worktree.created" | "worktree.adopted" | "worktree.removed" | "terminal.opened" | "terminal.closed" | "terminal.command_started" | "terminal.command_finished" | "terminal.input_requested" | "terminal.input_provided" | "terminal.recording_started" | "terminal.recording_stopped" | "terminal.subscriber_evicted" | "terminal.limit_rejected" | "agent.instance.proposal.picked";
|
|
7033
7108
|
executor_kind?: "native" | "subprocess" | "wasm";
|
|
7034
7109
|
matcher: HookMatcher;
|
|
7035
7110
|
metadata?: {
|
|
@@ -7731,6 +7806,11 @@ export type SettingsUpdateRuntimePayload = {
|
|
|
7731
7806
|
restored_version: string;
|
|
7732
7807
|
status: "up-to-date" | "available" | "accepted" | "applying" | "staged" | "updated" | "blocked" | "unsupported" | "failed" | "canceled";
|
|
7733
7808
|
};
|
|
7809
|
+
/**
|
|
7810
|
+
* Deprecated: accepted and ignored; remove before v0.8.0.
|
|
7811
|
+
*
|
|
7812
|
+
* @deprecated
|
|
7813
|
+
*/
|
|
7734
7814
|
export type SettingsWindowManagerBindingPayload = {
|
|
7735
7815
|
bottom_center: "none" | "reserved" | "zoom";
|
|
7736
7816
|
top_center: "none" | "reserved" | "zoom";
|
|
@@ -7742,9 +7822,19 @@ export type SettingsWindowManagerCommandPayload = {
|
|
|
7742
7822
|
title: string;
|
|
7743
7823
|
};
|
|
7744
7824
|
export type SettingsWindowManagerConfigPayload = {
|
|
7825
|
+
/**
|
|
7826
|
+
* Deprecated: accepted and ignored; remove before v0.8.0.
|
|
7827
|
+
*
|
|
7828
|
+
* @deprecated
|
|
7829
|
+
*/
|
|
7745
7830
|
bindings: SettingsWindowManagerBindingPayload;
|
|
7746
7831
|
closed_entry_limit: number;
|
|
7747
7832
|
desktop_transition: "slide" | "crossfade" | "instant";
|
|
7833
|
+
/**
|
|
7834
|
+
* Deprecated: accepted and ignored; remove before v0.8.0.
|
|
7835
|
+
*
|
|
7836
|
+
* @deprecated
|
|
7837
|
+
*/
|
|
7748
7838
|
drag_away_policy: "window" | "group";
|
|
7749
7839
|
focus_follows_pointer: boolean;
|
|
7750
7840
|
focus_policy: "click_directional" | "directional";
|
|
@@ -7753,15 +7843,33 @@ export type SettingsWindowManagerConfigPayload = {
|
|
|
7753
7843
|
global_shortcuts: {
|
|
7754
7844
|
[key: string]: string;
|
|
7755
7845
|
};
|
|
7846
|
+
/**
|
|
7847
|
+
* Deprecated: accepted and ignored; remove before v0.8.0.
|
|
7848
|
+
*
|
|
7849
|
+
* @deprecated
|
|
7850
|
+
*/
|
|
7756
7851
|
group_move_modifier: "alt" | "control" | "meta" | "shift" | "none";
|
|
7757
7852
|
history_limit: number;
|
|
7758
7853
|
nav_stack_limit: number;
|
|
7854
|
+
/**
|
|
7855
|
+
* Deprecated value "floating": translated to "tab"; removed in v0.8.0.
|
|
7856
|
+
*/
|
|
7759
7857
|
new_window_policy: "floating" | "beside_focus" | "tab";
|
|
7858
|
+
/**
|
|
7859
|
+
* Deprecated: accepted and ignored; remove before v0.8.0.
|
|
7860
|
+
*
|
|
7861
|
+
* @deprecated
|
|
7862
|
+
*/
|
|
7760
7863
|
raise_on_focus: boolean;
|
|
7761
7864
|
shortcuts: {
|
|
7762
7865
|
[key: string]: string | Array<string>;
|
|
7763
7866
|
};
|
|
7764
7867
|
small_viewport_policy: "stack" | "reject";
|
|
7868
|
+
/**
|
|
7869
|
+
* Deprecated: accepted and ignored; remove before v0.8.0.
|
|
7870
|
+
*
|
|
7871
|
+
* @deprecated
|
|
7872
|
+
*/
|
|
7765
7873
|
snap: SettingsWindowManagerSnapPayload;
|
|
7766
7874
|
swap_modifier: "alt" | "control" | "meta" | "shift" | "none";
|
|
7767
7875
|
};
|
|
@@ -7830,6 +7938,11 @@ export type SettingsWindowManagerResponse = {
|
|
|
7830
7938
|
section: "general" | "persona" | "roles" | "skills" | "automation" | "window-manager" | "cmd-palette" | "attention" | "shell" | "provider-usage" | "observability" | "hooks-extensions" | "marketplace";
|
|
7831
7939
|
workspace_id?: string;
|
|
7832
7940
|
};
|
|
7941
|
+
/**
|
|
7942
|
+
* Deprecated: accepted and ignored; remove before v0.8.0.
|
|
7943
|
+
*
|
|
7944
|
+
* @deprecated
|
|
7945
|
+
*/
|
|
7833
7946
|
export type SettingsWindowManagerSnapPayload = {
|
|
7834
7947
|
corner_reach: number;
|
|
7835
7948
|
edge_band: number;
|
|
@@ -7978,6 +8091,11 @@ export type SkillVerificationWarningPayload = {
|
|
|
7978
8091
|
export type SkillsResponse = {
|
|
7979
8092
|
skills: Array<SkillPayload>;
|
|
7980
8093
|
};
|
|
8094
|
+
/**
|
|
8095
|
+
* Deprecated: accepted and ignored; remove before v0.8.0.
|
|
8096
|
+
*
|
|
8097
|
+
* @deprecated
|
|
8098
|
+
*/
|
|
7981
8099
|
export type SnapConfig = {
|
|
7982
8100
|
corner_reach: number;
|
|
7983
8101
|
edge_band: number;
|
|
@@ -9907,22 +10025,20 @@ export type WindowManagerClientContextInput = {
|
|
|
9907
10025
|
scope_global: boolean;
|
|
9908
10026
|
workspace_trusted: boolean;
|
|
9909
10027
|
};
|
|
9910
|
-
export type WindowManagerFloatingStack = {
|
|
9911
|
-
active_id?: string | null;
|
|
9912
|
-
id: string;
|
|
9913
|
-
minimized: boolean;
|
|
9914
|
-
rect: NormalizedRect;
|
|
9915
|
-
window_ids: Array<string>;
|
|
9916
|
-
};
|
|
9917
10028
|
export type WindowManagerLayoutNode = {
|
|
9918
|
-
active_id?: string | null;
|
|
9919
10029
|
axis?: "horizontal" | "vertical";
|
|
9920
10030
|
children?: Array<WindowManagerLayoutNode>;
|
|
9921
10031
|
id: string;
|
|
9922
|
-
kind: "leaf" | "split"
|
|
10032
|
+
kind: "leaf" | "split";
|
|
9923
10033
|
weights?: Array<number>;
|
|
9924
10034
|
window_id?: string | null;
|
|
9925
|
-
|
|
10035
|
+
};
|
|
10036
|
+
export type WindowManagerMigrationRequest = {
|
|
10037
|
+
action: "ack" | "retry";
|
|
10038
|
+
/**
|
|
10039
|
+
* Replace the layout on retry when it changed after failure.
|
|
10040
|
+
*/
|
|
10041
|
+
replace?: boolean;
|
|
9926
10042
|
};
|
|
9927
10043
|
export type WindowManagerPaletteContext = {
|
|
9928
10044
|
desktop_window_count: number;
|
|
@@ -9930,8 +10046,19 @@ export type WindowManagerPaletteContext = {
|
|
|
9930
10046
|
focused_session_state?: string;
|
|
9931
10047
|
scope_global: boolean;
|
|
9932
10048
|
shell_desktop: boolean;
|
|
10049
|
+
/**
|
|
10050
|
+
* Deprecated: retained for compatibility; removed in v0.8.0. See the window-manager deprecation matrix for its replacement.
|
|
10051
|
+
*
|
|
10052
|
+
* @deprecated
|
|
10053
|
+
*/
|
|
9933
10054
|
window_floating: boolean;
|
|
9934
10055
|
window_focused: boolean;
|
|
10056
|
+
window_in_split: boolean;
|
|
10057
|
+
/**
|
|
10058
|
+
* Deprecated: retained for compatibility; removed in v0.8.0. See the window-manager deprecation matrix for its replacement.
|
|
10059
|
+
*
|
|
10060
|
+
* @deprecated
|
|
10061
|
+
*/
|
|
9935
10062
|
window_stacked: boolean;
|
|
9936
10063
|
workspace_trusted: boolean;
|
|
9937
10064
|
};
|
|
@@ -9939,33 +10066,18 @@ export type WindowManagerRebaseGuard = {
|
|
|
9939
10066
|
boundary_index?: number | null;
|
|
9940
10067
|
source_node_id?: string | null;
|
|
9941
10068
|
split_id?: string | null;
|
|
10069
|
+
tab_id?: string | null;
|
|
9942
10070
|
target_node_id?: string | null;
|
|
9943
10071
|
window_id?: string | null;
|
|
9944
10072
|
};
|
|
9945
|
-
export type WindowManagerReturnAnchor = {
|
|
9946
|
-
child_index?: number | null;
|
|
9947
|
-
desktop_id: string;
|
|
9948
|
-
group_id?: string | null;
|
|
9949
|
-
neighbor_ids?: Array<string>;
|
|
9950
|
-
parent_split_id?: string | null;
|
|
9951
|
-
source_group?: ContractWindowManagerLayoutGroup | null;
|
|
9952
|
-
source_revision: number;
|
|
9953
|
-
weight?: number | null;
|
|
9954
|
-
zoomed?: boolean;
|
|
9955
|
-
};
|
|
9956
10073
|
export type WindowManagerWindow = {
|
|
9957
10074
|
app: string;
|
|
9958
10075
|
desktop_id: string;
|
|
9959
|
-
floating_rect: NormalizedRect;
|
|
9960
10076
|
id: string;
|
|
9961
10077
|
instance_key?: string | null;
|
|
9962
|
-
minimized: boolean;
|
|
9963
10078
|
nav_stack: Array<RouteIntent>;
|
|
9964
|
-
pinned: boolean;
|
|
9965
|
-
placement: "tiled" | "stacked" | "floating";
|
|
9966
|
-
return_anchor?: WindowManagerReturnAnchor | null;
|
|
9967
10079
|
route: RouteIntent;
|
|
9968
|
-
|
|
10080
|
+
tab_id: string;
|
|
9969
10081
|
};
|
|
9970
10082
|
export type WorkCandidate = {
|
|
9971
10083
|
branch: string;
|
|
@@ -10013,23 +10125,51 @@ export type WorkspaceAttentionSummaryPayload = {
|
|
|
10013
10125
|
workspace_id: string;
|
|
10014
10126
|
};
|
|
10015
10127
|
export type WorkspaceConfig = {
|
|
10128
|
+
/**
|
|
10129
|
+
* Deprecated: accepted and ignored; remove before v0.8.0.
|
|
10130
|
+
*
|
|
10131
|
+
* @deprecated
|
|
10132
|
+
*/
|
|
10016
10133
|
bindings?: BindingsConfig | null;
|
|
10017
10134
|
closed_entry_limit?: number | null;
|
|
10018
10135
|
desktop_transition?: string | null;
|
|
10136
|
+
/**
|
|
10137
|
+
* Deprecated: accepted and ignored; remove before v0.8.0.
|
|
10138
|
+
*
|
|
10139
|
+
* @deprecated
|
|
10140
|
+
*/
|
|
10019
10141
|
drag_away_policy?: string | null;
|
|
10020
10142
|
focus_follows_pointer?: boolean | null;
|
|
10021
10143
|
focus_policy?: string | null;
|
|
10022
10144
|
focus_wrap?: boolean | null;
|
|
10023
10145
|
gaps?: GapsConfig | null;
|
|
10146
|
+
/**
|
|
10147
|
+
* Deprecated: accepted and ignored; remove before v0.8.0.
|
|
10148
|
+
*
|
|
10149
|
+
* @deprecated
|
|
10150
|
+
*/
|
|
10024
10151
|
group_move_modifier?: string | null;
|
|
10025
10152
|
history_limit?: number | null;
|
|
10026
10153
|
nav_stack_limit?: number | null;
|
|
10154
|
+
/**
|
|
10155
|
+
* Deprecated value "floating": translated to "tab"; removed in v0.8.0.
|
|
10156
|
+
*/
|
|
10027
10157
|
new_window_policy?: string | null;
|
|
10158
|
+
/**
|
|
10159
|
+
* Deprecated: accepted and ignored; remove before v0.8.0.
|
|
10160
|
+
*
|
|
10161
|
+
* @deprecated
|
|
10162
|
+
*/
|
|
10028
10163
|
raise_on_focus?: boolean | null;
|
|
10029
10164
|
shortcuts?: {
|
|
10030
10165
|
[key: string]: string | Array<string>;
|
|
10031
10166
|
};
|
|
10032
10167
|
small_viewport_policy?: string | null;
|
|
10168
|
+
/**
|
|
10169
|
+
* Deprecated: accepted and ignored; remove before v0.8.0.
|
|
10170
|
+
*
|
|
10171
|
+
* @deprecated
|
|
10172
|
+
*/
|
|
10033
10173
|
snap?: SnapConfig | null;
|
|
10034
10174
|
swap_modifier?: string | null;
|
|
10035
10175
|
};
|
|
@@ -10221,6 +10361,15 @@ export type WorktreeRemovalRefusalPayload = {
|
|
|
10221
10361
|
error?: string;
|
|
10222
10362
|
risk: WorktreeRemovalRiskPayload;
|
|
10223
10363
|
};
|
|
10364
|
+
export type WorktreeRemovalResult = {
|
|
10365
|
+
branch?: WorktreeBranchOutcomePayload | null;
|
|
10366
|
+
code?: string;
|
|
10367
|
+
error?: string;
|
|
10368
|
+
risk?: WorktreeRemovalRiskPayload | null;
|
|
10369
|
+
state: string;
|
|
10370
|
+
target: WorktreeRemovalTarget;
|
|
10371
|
+
worktree_id?: string;
|
|
10372
|
+
};
|
|
10224
10373
|
export type WorktreeRemovalRiskPayload = {
|
|
10225
10374
|
changed_files: number;
|
|
10226
10375
|
deletions: number;
|
|
@@ -10229,6 +10378,11 @@ export type WorktreeRemovalRiskPayload = {
|
|
|
10229
10378
|
leftover_files: number;
|
|
10230
10379
|
unpushed_commits: number;
|
|
10231
10380
|
};
|
|
10381
|
+
export type WorktreeRemovalTarget = {
|
|
10382
|
+
expect_stale?: boolean;
|
|
10383
|
+
path?: string;
|
|
10384
|
+
ref?: string;
|
|
10385
|
+
};
|
|
10232
10386
|
export type WorktreeRepoPayload = {
|
|
10233
10387
|
diagnostic?: string;
|
|
10234
10388
|
git_available: boolean;
|
|
@@ -15112,6 +15266,10 @@ export type TriggerAutomationJobData = {
|
|
|
15112
15266
|
url: "/api/automation/jobs/{id}/trigger";
|
|
15113
15267
|
};
|
|
15114
15268
|
export type TriggerAutomationJobErrors = {
|
|
15269
|
+
/**
|
|
15270
|
+
* Invalid wait or completion budget
|
|
15271
|
+
*/
|
|
15272
|
+
400: ErrorPayload;
|
|
15115
15273
|
/**
|
|
15116
15274
|
* Automation job not found
|
|
15117
15275
|
*/
|
|
@@ -17666,7 +17824,7 @@ export type GetHookCatalogData = {
|
|
|
17666
17824
|
/**
|
|
17667
17825
|
* Hook event name
|
|
17668
17826
|
*/
|
|
17669
|
-
event?: "agent.instance.created" | "agent.instance.paused" | "agent.instance.resumed" | "agent.instance.archived" | "agent.instance.adopted" | "subagent.settled" | "session.pre_create" | "session.post_create" | "session.pre_resume" | "session.post_resume" | "session.pre_stop" | "session.post_stop" | "session.message_persisted" | "session.runtime_recovery.started" | "session.runtime_recovery.succeeded" | "session.runtime_recovery.exhausted" | "input.pre_submit" | "prompt.post_assemble" | "event.pre_record" | "event.post_record" | "automation.job.pre_fire" | "automation.job.post_fire" | "automation.trigger.pre_fire" | "automation.trigger.post_fire" | "automation.run.completed" | "automation.run.failed" | "agent.pre_start" | "agent.spawned" | "agent.crashed" | "agent.stopped" | "agent.soul.snapshot.resolved" | "agent.soul.mutation.after" | "agent.heartbeat.policy.resolved" | "agent.heartbeat.wake.before" | "agent.heartbeat.wake.after" | "session.health.update.after" | "turn.start" | "turn.end" | "message.start" | "message.delta" | "message.end" | "tool.pre_call" | "tool.post_call" | "tool.post_error" | "permission.request" | "permission.resolved" | "permission.denied" | "context.pre_compact" | "context.post_compact" | "coordinator.pre_spawn" | "coordinator.spawned" | "coordinator.decision" | "coordinator.stopped" | "coordinator.failed" | "task.blocked" | "task.unblocked" | "task.needs_attention" | "task.recovered" | "task.status_changed" | "task.run.enqueued" | "task.run.pre_claim" | "task.run.post_claim" | "task.run.lease_extended" | "task.run.lease_expired" | "task.run.lease_recovered" | "task.run.released" | "task.run.completed" | "task.run.failed" | "loop.started" | "loop.generation.pre" | "loop.generation.post" | "loop.gate.pre" | "loop.gate.post" | "loop.node.terminal" | "loop.terminal" | "spawn.pre_create" | "spawn.created" | "spawn.parent_stopped" | "spawn.ttl_expired" | "spawn.reaped" | "session.attention.changed" | "window_manager.layout.applied" | "window_manager.desktop.created" | "window_manager.desktop.deleted" | "window_manager.window.moved" | "window_manager.window.opened" | "window_manager.window.closed" | "window_manager.stack.grouped" | "window_manager.stack.ungrouped" | "window_manager.stack.activated" | "worktree.pre_create" | "worktree.pre_remove" | "worktree.created" | "worktree.adopted" | "worktree.removed" | "terminal.opened" | "terminal.closed" | "terminal.command_started" | "terminal.command_finished" | "terminal.input_requested" | "terminal.input_provided" | "terminal.recording_started" | "terminal.recording_stopped" | "terminal.subscriber_evicted" | "terminal.limit_rejected" | "agent.instance.proposal.picked";
|
|
17827
|
+
event?: "agent.instance.created" | "agent.instance.paused" | "agent.instance.resumed" | "agent.instance.archived" | "agent.instance.adopted" | "subagent.settled" | "session.pre_create" | "session.post_create" | "session.pre_resume" | "session.post_resume" | "session.pre_stop" | "session.post_stop" | "session.message_persisted" | "session.runtime_recovery.started" | "session.runtime_recovery.succeeded" | "session.runtime_recovery.exhausted" | "input.pre_submit" | "prompt.post_assemble" | "event.pre_record" | "event.post_record" | "automation.job.pre_fire" | "automation.job.post_fire" | "automation.trigger.pre_fire" | "automation.trigger.post_fire" | "automation.run.completed" | "automation.run.failed" | "agent.pre_start" | "agent.spawned" | "agent.crashed" | "agent.stopped" | "agent.soul.snapshot.resolved" | "agent.soul.mutation.after" | "agent.heartbeat.policy.resolved" | "agent.heartbeat.wake.before" | "agent.heartbeat.wake.after" | "session.health.update.after" | "turn.start" | "turn.end" | "message.start" | "message.delta" | "message.end" | "tool.pre_call" | "tool.post_call" | "tool.post_error" | "permission.request" | "permission.resolved" | "permission.denied" | "context.pre_compact" | "context.post_compact" | "coordinator.pre_spawn" | "coordinator.spawned" | "coordinator.decision" | "coordinator.stopped" | "coordinator.failed" | "task.blocked" | "task.unblocked" | "task.needs_attention" | "task.recovered" | "task.status_changed" | "task.run.enqueued" | "task.run.pre_claim" | "task.run.post_claim" | "task.run.lease_extended" | "task.run.lease_expired" | "task.run.lease_recovered" | "task.run.released" | "task.run.completed" | "task.run.failed" | "loop.started" | "loop.generation.pre" | "loop.generation.post" | "loop.gate.pre" | "loop.gate.post" | "loop.node.terminal" | "loop.terminal" | "spawn.pre_create" | "spawn.created" | "spawn.parent_stopped" | "spawn.ttl_expired" | "spawn.reaped" | "session.attention.changed" | "window_manager.tab.split" | "window_manager.tab.unsplit" | "window_manager.tab.activated" | "window_manager.layout.applied" | "window_manager.desktop.created" | "window_manager.desktop.deleted" | "window_manager.window.moved" | "window_manager.window.opened" | "window_manager.window.closed" | "window_manager.stack.grouped" | "window_manager.stack.ungrouped" | "window_manager.stack.activated" | "worktree.pre_create" | "worktree.pre_remove" | "worktree.created" | "worktree.adopted" | "worktree.removed" | "terminal.opened" | "terminal.closed" | "terminal.command_started" | "terminal.command_finished" | "terminal.input_requested" | "terminal.input_provided" | "terminal.recording_started" | "terminal.recording_stopped" | "terminal.subscriber_evicted" | "terminal.limit_rejected" | "agent.instance.proposal.picked";
|
|
17670
17828
|
/**
|
|
17671
17829
|
* Hook source
|
|
17672
17830
|
*/
|
|
@@ -18939,7 +19097,7 @@ export type AcknowledgeAttentionNotificationsErrors = {
|
|
|
18939
19097
|
export type AcknowledgeAttentionNotificationsError = AcknowledgeAttentionNotificationsErrors[keyof AcknowledgeAttentionNotificationsErrors];
|
|
18940
19098
|
export type AcknowledgeAttentionNotificationsResponses = {
|
|
18941
19099
|
/**
|
|
18942
|
-
* Receipts committed atomically;
|
|
19100
|
+
* Receipts committed atomically; bell layout-upgrade notices also acknowledged durably
|
|
18943
19101
|
*/
|
|
18944
19102
|
204: void;
|
|
18945
19103
|
};
|
|
@@ -21318,6 +21476,10 @@ export type ListSessionsData = {
|
|
|
21318
21476
|
* Filter by exact root session id (includes the root itself)
|
|
21319
21477
|
*/
|
|
21320
21478
|
root?: string;
|
|
21479
|
+
/**
|
|
21480
|
+
* Leave out this session and every session rooted at it (for example, a session's own tree)
|
|
21481
|
+
*/
|
|
21482
|
+
exclude_root?: string;
|
|
21321
21483
|
/**
|
|
21322
21484
|
* Filter by exact bound worktree id
|
|
21323
21485
|
*/
|
|
@@ -21531,6 +21693,10 @@ export type ListSessionFacetsData = {
|
|
|
21531
21693
|
* Filter by exact root session id (includes the root itself)
|
|
21532
21694
|
*/
|
|
21533
21695
|
root?: string;
|
|
21696
|
+
/**
|
|
21697
|
+
* Leave out this session and every session rooted at it (for example, a session's own tree)
|
|
21698
|
+
*/
|
|
21699
|
+
exclude_root?: string;
|
|
21534
21700
|
/**
|
|
21535
21701
|
* Only count sessions eligible for explicit attach
|
|
21536
21702
|
*/
|
|
@@ -28240,6 +28406,10 @@ export type DeleteWorkspaceErrors = {
|
|
|
28240
28406
|
* Internal server error
|
|
28241
28407
|
*/
|
|
28242
28408
|
500: ErrorPayload;
|
|
28409
|
+
/**
|
|
28410
|
+
* Removal held by a desktop layout that could not be read; retry finishes it
|
|
28411
|
+
*/
|
|
28412
|
+
503: ErrorPayload;
|
|
28243
28413
|
};
|
|
28244
28414
|
export type DeleteWorkspaceError = DeleteWorkspaceErrors[keyof DeleteWorkspaceErrors];
|
|
28245
28415
|
export type DeleteWorkspaceResponses = {
|
|
@@ -28723,6 +28893,72 @@ export type FindFilesResponses = {
|
|
|
28723
28893
|
200: FileFindResponse;
|
|
28724
28894
|
};
|
|
28725
28895
|
export type FindFilesResponse = FindFilesResponses[keyof FindFilesResponses];
|
|
28896
|
+
export type ReadFileBytesData = {
|
|
28897
|
+
body?: never;
|
|
28898
|
+
path: {
|
|
28899
|
+
/**
|
|
28900
|
+
* Workspace id
|
|
28901
|
+
*/
|
|
28902
|
+
workspace_id: string;
|
|
28903
|
+
/**
|
|
28904
|
+
* Root-relative file path; its slashes are path segments
|
|
28905
|
+
*/
|
|
28906
|
+
path: string;
|
|
28907
|
+
};
|
|
28908
|
+
query?: {
|
|
28909
|
+
/**
|
|
28910
|
+
* Read one profile's rows by name
|
|
28911
|
+
*/
|
|
28912
|
+
profile?: string;
|
|
28913
|
+
/**
|
|
28914
|
+
* Read the owner-labeled all-profiles aggregate
|
|
28915
|
+
*/
|
|
28916
|
+
all_profiles?: boolean;
|
|
28917
|
+
};
|
|
28918
|
+
url: "/api/workspaces/{workspace_id}/files/raw/{path}";
|
|
28919
|
+
};
|
|
28920
|
+
export type ReadFileBytesErrors = {
|
|
28921
|
+
/**
|
|
28922
|
+
* File operation failed
|
|
28923
|
+
*/
|
|
28924
|
+
400: ErrorPayload;
|
|
28925
|
+
/**
|
|
28926
|
+
* File operation failed
|
|
28927
|
+
*/
|
|
28928
|
+
403: ErrorPayload;
|
|
28929
|
+
/**
|
|
28930
|
+
* File operation failed
|
|
28931
|
+
*/
|
|
28932
|
+
404: ErrorPayload;
|
|
28933
|
+
/**
|
|
28934
|
+
* File operation failed
|
|
28935
|
+
*/
|
|
28936
|
+
409: ErrorPayload;
|
|
28937
|
+
/**
|
|
28938
|
+
* Requested range not satisfiable
|
|
28939
|
+
*/
|
|
28940
|
+
416: unknown;
|
|
28941
|
+
/**
|
|
28942
|
+
* File operation failed
|
|
28943
|
+
*/
|
|
28944
|
+
422: ErrorPayload;
|
|
28945
|
+
/**
|
|
28946
|
+
* File operation failed
|
|
28947
|
+
*/
|
|
28948
|
+
500: ErrorPayload;
|
|
28949
|
+
};
|
|
28950
|
+
export type ReadFileBytesError = ReadFileBytesErrors[keyof ReadFileBytesErrors];
|
|
28951
|
+
export type ReadFileBytesResponses = {
|
|
28952
|
+
/**
|
|
28953
|
+
* File bytes
|
|
28954
|
+
*/
|
|
28955
|
+
200: Blob | File;
|
|
28956
|
+
/**
|
|
28957
|
+
* Requested byte range
|
|
28958
|
+
*/
|
|
28959
|
+
206: Blob | File;
|
|
28960
|
+
};
|
|
28961
|
+
export type ReadFileBytesResponse = ReadFileBytesResponses[keyof ReadFileBytesResponses];
|
|
28726
28962
|
export type SearchFileContentsData = {
|
|
28727
28963
|
body?: never;
|
|
28728
28964
|
path: {
|
|
@@ -28817,7 +29053,7 @@ export type GetHookRunsData = {
|
|
|
28817
29053
|
/**
|
|
28818
29054
|
* Hook event name
|
|
28819
29055
|
*/
|
|
28820
|
-
event?: "agent.instance.created" | "agent.instance.paused" | "agent.instance.resumed" | "agent.instance.archived" | "agent.instance.adopted" | "subagent.settled" | "session.pre_create" | "session.post_create" | "session.pre_resume" | "session.post_resume" | "session.pre_stop" | "session.post_stop" | "session.message_persisted" | "session.runtime_recovery.started" | "session.runtime_recovery.succeeded" | "session.runtime_recovery.exhausted" | "input.pre_submit" | "prompt.post_assemble" | "event.pre_record" | "event.post_record" | "automation.job.pre_fire" | "automation.job.post_fire" | "automation.trigger.pre_fire" | "automation.trigger.post_fire" | "automation.run.completed" | "automation.run.failed" | "agent.pre_start" | "agent.spawned" | "agent.crashed" | "agent.stopped" | "agent.soul.snapshot.resolved" | "agent.soul.mutation.after" | "agent.heartbeat.policy.resolved" | "agent.heartbeat.wake.before" | "agent.heartbeat.wake.after" | "session.health.update.after" | "turn.start" | "turn.end" | "message.start" | "message.delta" | "message.end" | "tool.pre_call" | "tool.post_call" | "tool.post_error" | "permission.request" | "permission.resolved" | "permission.denied" | "context.pre_compact" | "context.post_compact" | "coordinator.pre_spawn" | "coordinator.spawned" | "coordinator.decision" | "coordinator.stopped" | "coordinator.failed" | "task.blocked" | "task.unblocked" | "task.needs_attention" | "task.recovered" | "task.status_changed" | "task.run.enqueued" | "task.run.pre_claim" | "task.run.post_claim" | "task.run.lease_extended" | "task.run.lease_expired" | "task.run.lease_recovered" | "task.run.released" | "task.run.completed" | "task.run.failed" | "loop.started" | "loop.generation.pre" | "loop.generation.post" | "loop.gate.pre" | "loop.gate.post" | "loop.node.terminal" | "loop.terminal" | "spawn.pre_create" | "spawn.created" | "spawn.parent_stopped" | "spawn.ttl_expired" | "spawn.reaped" | "session.attention.changed" | "window_manager.layout.applied" | "window_manager.desktop.created" | "window_manager.desktop.deleted" | "window_manager.window.moved" | "window_manager.window.opened" | "window_manager.window.closed" | "window_manager.stack.grouped" | "window_manager.stack.ungrouped" | "window_manager.stack.activated" | "worktree.pre_create" | "worktree.pre_remove" | "worktree.created" | "worktree.adopted" | "worktree.removed" | "terminal.opened" | "terminal.closed" | "terminal.command_started" | "terminal.command_finished" | "terminal.input_requested" | "terminal.input_provided" | "terminal.recording_started" | "terminal.recording_stopped" | "terminal.subscriber_evicted" | "terminal.limit_rejected" | "agent.instance.proposal.picked";
|
|
29056
|
+
event?: "agent.instance.created" | "agent.instance.paused" | "agent.instance.resumed" | "agent.instance.archived" | "agent.instance.adopted" | "subagent.settled" | "session.pre_create" | "session.post_create" | "session.pre_resume" | "session.post_resume" | "session.pre_stop" | "session.post_stop" | "session.message_persisted" | "session.runtime_recovery.started" | "session.runtime_recovery.succeeded" | "session.runtime_recovery.exhausted" | "input.pre_submit" | "prompt.post_assemble" | "event.pre_record" | "event.post_record" | "automation.job.pre_fire" | "automation.job.post_fire" | "automation.trigger.pre_fire" | "automation.trigger.post_fire" | "automation.run.completed" | "automation.run.failed" | "agent.pre_start" | "agent.spawned" | "agent.crashed" | "agent.stopped" | "agent.soul.snapshot.resolved" | "agent.soul.mutation.after" | "agent.heartbeat.policy.resolved" | "agent.heartbeat.wake.before" | "agent.heartbeat.wake.after" | "session.health.update.after" | "turn.start" | "turn.end" | "message.start" | "message.delta" | "message.end" | "tool.pre_call" | "tool.post_call" | "tool.post_error" | "permission.request" | "permission.resolved" | "permission.denied" | "context.pre_compact" | "context.post_compact" | "coordinator.pre_spawn" | "coordinator.spawned" | "coordinator.decision" | "coordinator.stopped" | "coordinator.failed" | "task.blocked" | "task.unblocked" | "task.needs_attention" | "task.recovered" | "task.status_changed" | "task.run.enqueued" | "task.run.pre_claim" | "task.run.post_claim" | "task.run.lease_extended" | "task.run.lease_expired" | "task.run.lease_recovered" | "task.run.released" | "task.run.completed" | "task.run.failed" | "loop.started" | "loop.generation.pre" | "loop.generation.post" | "loop.gate.pre" | "loop.gate.post" | "loop.node.terminal" | "loop.terminal" | "spawn.pre_create" | "spawn.created" | "spawn.parent_stopped" | "spawn.ttl_expired" | "spawn.reaped" | "session.attention.changed" | "window_manager.tab.split" | "window_manager.tab.unsplit" | "window_manager.tab.activated" | "window_manager.layout.applied" | "window_manager.desktop.created" | "window_manager.desktop.deleted" | "window_manager.window.moved" | "window_manager.window.opened" | "window_manager.window.closed" | "window_manager.stack.grouped" | "window_manager.stack.ungrouped" | "window_manager.stack.activated" | "worktree.pre_create" | "worktree.pre_remove" | "worktree.created" | "worktree.adopted" | "worktree.removed" | "terminal.opened" | "terminal.closed" | "terminal.command_started" | "terminal.command_finished" | "terminal.input_requested" | "terminal.input_provided" | "terminal.recording_started" | "terminal.recording_stopped" | "terminal.subscriber_evicted" | "terminal.limit_rejected" | "agent.instance.proposal.picked";
|
|
28821
29057
|
/**
|
|
28822
29058
|
* Hook execution outcome
|
|
28823
29059
|
*/
|
|
@@ -31434,6 +31670,10 @@ export type ListWorkspaceSessionsData = {
|
|
|
31434
31670
|
* Filter by exact root session id (includes the root itself)
|
|
31435
31671
|
*/
|
|
31436
31672
|
root?: string;
|
|
31673
|
+
/**
|
|
31674
|
+
* Leave out this session and every session rooted at it (for example, a session's own tree)
|
|
31675
|
+
*/
|
|
31676
|
+
exclude_root?: string;
|
|
31437
31677
|
/**
|
|
31438
31678
|
* Filter by exact bound worktree id
|
|
31439
31679
|
*/
|
|
@@ -33034,6 +33274,76 @@ export type FindSessionFilesResponses = {
|
|
|
33034
33274
|
200: FileFindResponse;
|
|
33035
33275
|
};
|
|
33036
33276
|
export type FindSessionFilesResponse = FindSessionFilesResponses[keyof FindSessionFilesResponses];
|
|
33277
|
+
export type ReadSessionFileBytesData = {
|
|
33278
|
+
body?: never;
|
|
33279
|
+
path: {
|
|
33280
|
+
/**
|
|
33281
|
+
* Workspace id
|
|
33282
|
+
*/
|
|
33283
|
+
workspace_id: string;
|
|
33284
|
+
/**
|
|
33285
|
+
* Session id
|
|
33286
|
+
*/
|
|
33287
|
+
session_id: string;
|
|
33288
|
+
/**
|
|
33289
|
+
* Root-relative file path; its slashes are path segments
|
|
33290
|
+
*/
|
|
33291
|
+
path: string;
|
|
33292
|
+
};
|
|
33293
|
+
query?: {
|
|
33294
|
+
/**
|
|
33295
|
+
* Read one profile's rows by name
|
|
33296
|
+
*/
|
|
33297
|
+
profile?: string;
|
|
33298
|
+
/**
|
|
33299
|
+
* Read the owner-labeled all-profiles aggregate
|
|
33300
|
+
*/
|
|
33301
|
+
all_profiles?: boolean;
|
|
33302
|
+
};
|
|
33303
|
+
url: "/api/workspaces/{workspace_id}/sessions/{session_id}/files/raw/{path}";
|
|
33304
|
+
};
|
|
33305
|
+
export type ReadSessionFileBytesErrors = {
|
|
33306
|
+
/**
|
|
33307
|
+
* File operation failed
|
|
33308
|
+
*/
|
|
33309
|
+
400: ErrorPayload;
|
|
33310
|
+
/**
|
|
33311
|
+
* File operation failed
|
|
33312
|
+
*/
|
|
33313
|
+
403: ErrorPayload;
|
|
33314
|
+
/**
|
|
33315
|
+
* File operation failed
|
|
33316
|
+
*/
|
|
33317
|
+
404: ErrorPayload;
|
|
33318
|
+
/**
|
|
33319
|
+
* File operation failed
|
|
33320
|
+
*/
|
|
33321
|
+
409: ErrorPayload;
|
|
33322
|
+
/**
|
|
33323
|
+
* Requested range not satisfiable
|
|
33324
|
+
*/
|
|
33325
|
+
416: unknown;
|
|
33326
|
+
/**
|
|
33327
|
+
* File operation failed
|
|
33328
|
+
*/
|
|
33329
|
+
422: ErrorPayload;
|
|
33330
|
+
/**
|
|
33331
|
+
* File operation failed
|
|
33332
|
+
*/
|
|
33333
|
+
500: ErrorPayload;
|
|
33334
|
+
};
|
|
33335
|
+
export type ReadSessionFileBytesError = ReadSessionFileBytesErrors[keyof ReadSessionFileBytesErrors];
|
|
33336
|
+
export type ReadSessionFileBytesResponses = {
|
|
33337
|
+
/**
|
|
33338
|
+
* File bytes
|
|
33339
|
+
*/
|
|
33340
|
+
200: Blob | File;
|
|
33341
|
+
/**
|
|
33342
|
+
* Requested byte range
|
|
33343
|
+
*/
|
|
33344
|
+
206: Blob | File;
|
|
33345
|
+
};
|
|
33346
|
+
export type ReadSessionFileBytesResponse = ReadSessionFileBytesResponses[keyof ReadSessionFileBytesResponses];
|
|
33037
33347
|
export type SearchSessionFileContentsData = {
|
|
33038
33348
|
body?: never;
|
|
33039
33349
|
path: {
|
|
@@ -37094,7 +37404,7 @@ export type ReadToolArtifactData = {
|
|
|
37094
37404
|
*/
|
|
37095
37405
|
offset?: number;
|
|
37096
37406
|
/**
|
|
37097
|
-
* Page size in bytes; defaults to and is capped at 65536
|
|
37407
|
+
* Page size in bytes; defaults to 32768 and is capped at 65536
|
|
37098
37408
|
*/
|
|
37099
37409
|
limit?: number;
|
|
37100
37410
|
/**
|
|
@@ -37649,11 +37959,106 @@ export type ValidateWindowManagerLayoutErrors = {
|
|
|
37649
37959
|
export type ValidateWindowManagerLayoutError = ValidateWindowManagerLayoutErrors[keyof ValidateWindowManagerLayoutErrors];
|
|
37650
37960
|
export type ValidateWindowManagerLayoutResponses = {
|
|
37651
37961
|
/**
|
|
37652
|
-
* Validation
|
|
37962
|
+
* Validation diagnostics and the canonical v6 document when valid
|
|
37653
37963
|
*/
|
|
37654
37964
|
200: ContractWindowManagerLayoutValidationResponse;
|
|
37655
37965
|
};
|
|
37656
37966
|
export type ValidateWindowManagerLayoutResponse = ValidateWindowManagerLayoutResponses[keyof ValidateWindowManagerLayoutResponses];
|
|
37967
|
+
export type GetWindowManagerMigrationData = {
|
|
37968
|
+
body?: never;
|
|
37969
|
+
path: {
|
|
37970
|
+
/**
|
|
37971
|
+
* Workspace id
|
|
37972
|
+
*/
|
|
37973
|
+
workspace_id: string;
|
|
37974
|
+
};
|
|
37975
|
+
query?: {
|
|
37976
|
+
/**
|
|
37977
|
+
* Act as this profile by name
|
|
37978
|
+
*/
|
|
37979
|
+
profile?: string;
|
|
37980
|
+
};
|
|
37981
|
+
url: "/api/workspaces/{workspace_id}/window-manager/migration";
|
|
37982
|
+
};
|
|
37983
|
+
export type GetWindowManagerMigrationErrors = {
|
|
37984
|
+
/**
|
|
37985
|
+
* Invalid window workspace binding
|
|
37986
|
+
*/
|
|
37987
|
+
400: ContractWindowManagerErrorPayload;
|
|
37988
|
+
/**
|
|
37989
|
+
* Workspace or referenced entity not found
|
|
37990
|
+
*/
|
|
37991
|
+
404: ContractWindowManagerErrorPayload;
|
|
37992
|
+
/**
|
|
37993
|
+
* Revision or state conflict
|
|
37994
|
+
*/
|
|
37995
|
+
409: ContractWindowManagerErrorPayload;
|
|
37996
|
+
/**
|
|
37997
|
+
* Invalid window-manager request
|
|
37998
|
+
*/
|
|
37999
|
+
422: ContractWindowManagerErrorPayload;
|
|
38000
|
+
/**
|
|
38001
|
+
* Window manager unavailable
|
|
38002
|
+
*/
|
|
38003
|
+
503: ContractWindowManagerErrorPayload;
|
|
38004
|
+
};
|
|
38005
|
+
export type GetWindowManagerMigrationError = GetWindowManagerMigrationErrors[keyof GetWindowManagerMigrationErrors];
|
|
38006
|
+
export type GetWindowManagerMigrationResponses = {
|
|
38007
|
+
/**
|
|
38008
|
+
* OK
|
|
38009
|
+
*/
|
|
38010
|
+
200: MigrationStatus;
|
|
38011
|
+
};
|
|
38012
|
+
export type GetWindowManagerMigrationResponse = GetWindowManagerMigrationResponses[keyof GetWindowManagerMigrationResponses];
|
|
38013
|
+
export type UpdateWindowManagerMigrationData = {
|
|
38014
|
+
/**
|
|
38015
|
+
* JSON request body
|
|
38016
|
+
*/
|
|
38017
|
+
body: WindowManagerMigrationRequest;
|
|
38018
|
+
path: {
|
|
38019
|
+
/**
|
|
38020
|
+
* Workspace id
|
|
38021
|
+
*/
|
|
38022
|
+
workspace_id: string;
|
|
38023
|
+
};
|
|
38024
|
+
query?: {
|
|
38025
|
+
/**
|
|
38026
|
+
* Act as this profile by name
|
|
38027
|
+
*/
|
|
38028
|
+
profile?: string;
|
|
38029
|
+
};
|
|
38030
|
+
url: "/api/workspaces/{workspace_id}/window-manager/migration";
|
|
38031
|
+
};
|
|
38032
|
+
export type UpdateWindowManagerMigrationErrors = {
|
|
38033
|
+
/**
|
|
38034
|
+
* Invalid window workspace binding
|
|
38035
|
+
*/
|
|
38036
|
+
400: ContractWindowManagerErrorPayload;
|
|
38037
|
+
/**
|
|
38038
|
+
* Workspace or referenced entity not found
|
|
38039
|
+
*/
|
|
38040
|
+
404: ContractWindowManagerErrorPayload;
|
|
38041
|
+
/**
|
|
38042
|
+
* Revision or state conflict
|
|
38043
|
+
*/
|
|
38044
|
+
409: ContractWindowManagerErrorPayload;
|
|
38045
|
+
/**
|
|
38046
|
+
* Invalid window-manager request
|
|
38047
|
+
*/
|
|
38048
|
+
422: ContractWindowManagerErrorPayload;
|
|
38049
|
+
/**
|
|
38050
|
+
* Window manager unavailable
|
|
38051
|
+
*/
|
|
38052
|
+
503: ContractWindowManagerErrorPayload;
|
|
38053
|
+
};
|
|
38054
|
+
export type UpdateWindowManagerMigrationError = UpdateWindowManagerMigrationErrors[keyof UpdateWindowManagerMigrationErrors];
|
|
38055
|
+
export type UpdateWindowManagerMigrationResponses = {
|
|
38056
|
+
/**
|
|
38057
|
+
* OK
|
|
38058
|
+
*/
|
|
38059
|
+
200: MigrationStatus;
|
|
38060
|
+
};
|
|
38061
|
+
export type UpdateWindowManagerMigrationResponse = UpdateWindowManagerMigrationResponses[keyof UpdateWindowManagerMigrationResponses];
|
|
37657
38062
|
export type PreviewWindowManagerCommandData = {
|
|
37658
38063
|
/**
|
|
37659
38064
|
* JSON request body
|
|
@@ -37916,6 +38321,63 @@ export type RemoveDiscoveredWorktreeResponses = {
|
|
|
37916
38321
|
204: void;
|
|
37917
38322
|
};
|
|
37918
38323
|
export type RemoveDiscoveredWorktreeResponse = RemoveDiscoveredWorktreeResponses[keyof RemoveDiscoveredWorktreeResponses];
|
|
38324
|
+
export type RemoveWorktreesData = {
|
|
38325
|
+
/**
|
|
38326
|
+
* JSON request body
|
|
38327
|
+
*/
|
|
38328
|
+
body: RemoveWorktreesRequest;
|
|
38329
|
+
path: {
|
|
38330
|
+
/**
|
|
38331
|
+
* Workspace id or path
|
|
38332
|
+
*/
|
|
38333
|
+
workspace_id: string;
|
|
38334
|
+
};
|
|
38335
|
+
query?: {
|
|
38336
|
+
/**
|
|
38337
|
+
* Act as this profile by name. If omitted, operator requests infer the target record owner; authenticated agents remain scoped to their session profile.
|
|
38338
|
+
*/
|
|
38339
|
+
profile?: string;
|
|
38340
|
+
};
|
|
38341
|
+
url: "/api/workspaces/{workspace_id}/worktrees/remove";
|
|
38342
|
+
};
|
|
38343
|
+
export type RemoveWorktreesErrors = {
|
|
38344
|
+
/**
|
|
38345
|
+
* Invalid worktree request
|
|
38346
|
+
*/
|
|
38347
|
+
400: ErrorPayload;
|
|
38348
|
+
/**
|
|
38349
|
+
* Forbidden
|
|
38350
|
+
*/
|
|
38351
|
+
403: ErrorPayload;
|
|
38352
|
+
/**
|
|
38353
|
+
* Worktree or workspace not found
|
|
38354
|
+
*/
|
|
38355
|
+
404: ErrorPayload;
|
|
38356
|
+
/**
|
|
38357
|
+
* Worktree operation conflict
|
|
38358
|
+
*/
|
|
38359
|
+
409: ErrorPayload;
|
|
38360
|
+
/**
|
|
38361
|
+
* Invalid worktree configuration
|
|
38362
|
+
*/
|
|
38363
|
+
422: ErrorPayload;
|
|
38364
|
+
/**
|
|
38365
|
+
* Internal server error
|
|
38366
|
+
*/
|
|
38367
|
+
500: ErrorPayload;
|
|
38368
|
+
/**
|
|
38369
|
+
* Worktree service is unavailable
|
|
38370
|
+
*/
|
|
38371
|
+
503: ErrorPayload;
|
|
38372
|
+
};
|
|
38373
|
+
export type RemoveWorktreesError = RemoveWorktreesErrors[keyof RemoveWorktreesErrors];
|
|
38374
|
+
export type RemoveWorktreesResponses = {
|
|
38375
|
+
/**
|
|
38376
|
+
* Per-target removal results or dry-run risk; inspect every result
|
|
38377
|
+
*/
|
|
38378
|
+
200: RemoveWorktreesResponse;
|
|
38379
|
+
};
|
|
38380
|
+
export type RemoveWorktreesResponse2 = RemoveWorktreesResponses[keyof RemoveWorktreesResponses];
|
|
37919
38381
|
export type RemoveWorktreeData = {
|
|
37920
38382
|
body?: never;
|
|
37921
38383
|
path: {
|
|
@@ -38333,6 +38795,76 @@ export type PrepareWorktreeExitPlanResponses = {
|
|
|
38333
38795
|
200: WorktreeExitPlanResponse;
|
|
38334
38796
|
};
|
|
38335
38797
|
export type PrepareWorktreeExitPlanResponse = PrepareWorktreeExitPlanResponses[keyof PrepareWorktreeExitPlanResponses];
|
|
38798
|
+
export type ReadWorktreeFileBytesData = {
|
|
38799
|
+
body?: never;
|
|
38800
|
+
path: {
|
|
38801
|
+
/**
|
|
38802
|
+
* Workspace id
|
|
38803
|
+
*/
|
|
38804
|
+
workspace_id: string;
|
|
38805
|
+
/**
|
|
38806
|
+
* Worktree id
|
|
38807
|
+
*/
|
|
38808
|
+
worktree_id: string;
|
|
38809
|
+
/**
|
|
38810
|
+
* Root-relative file path; its slashes are path segments
|
|
38811
|
+
*/
|
|
38812
|
+
path: string;
|
|
38813
|
+
};
|
|
38814
|
+
query?: {
|
|
38815
|
+
/**
|
|
38816
|
+
* Read one profile's rows by name
|
|
38817
|
+
*/
|
|
38818
|
+
profile?: string;
|
|
38819
|
+
/**
|
|
38820
|
+
* Read the owner-labeled all-profiles aggregate
|
|
38821
|
+
*/
|
|
38822
|
+
all_profiles?: boolean;
|
|
38823
|
+
};
|
|
38824
|
+
url: "/api/workspaces/{workspace_id}/worktrees/{worktree_id}/files/raw/{path}";
|
|
38825
|
+
};
|
|
38826
|
+
export type ReadWorktreeFileBytesErrors = {
|
|
38827
|
+
/**
|
|
38828
|
+
* File operation failed
|
|
38829
|
+
*/
|
|
38830
|
+
400: ErrorPayload;
|
|
38831
|
+
/**
|
|
38832
|
+
* File operation failed
|
|
38833
|
+
*/
|
|
38834
|
+
403: ErrorPayload;
|
|
38835
|
+
/**
|
|
38836
|
+
* File operation failed
|
|
38837
|
+
*/
|
|
38838
|
+
404: ErrorPayload;
|
|
38839
|
+
/**
|
|
38840
|
+
* File operation failed
|
|
38841
|
+
*/
|
|
38842
|
+
409: ErrorPayload;
|
|
38843
|
+
/**
|
|
38844
|
+
* Requested range not satisfiable
|
|
38845
|
+
*/
|
|
38846
|
+
416: unknown;
|
|
38847
|
+
/**
|
|
38848
|
+
* File operation failed
|
|
38849
|
+
*/
|
|
38850
|
+
422: ErrorPayload;
|
|
38851
|
+
/**
|
|
38852
|
+
* File operation failed
|
|
38853
|
+
*/
|
|
38854
|
+
500: ErrorPayload;
|
|
38855
|
+
};
|
|
38856
|
+
export type ReadWorktreeFileBytesError = ReadWorktreeFileBytesErrors[keyof ReadWorktreeFileBytesErrors];
|
|
38857
|
+
export type ReadWorktreeFileBytesResponses = {
|
|
38858
|
+
/**
|
|
38859
|
+
* File bytes
|
|
38860
|
+
*/
|
|
38861
|
+
200: Blob | File;
|
|
38862
|
+
/**
|
|
38863
|
+
* Requested byte range
|
|
38864
|
+
*/
|
|
38865
|
+
206: Blob | File;
|
|
38866
|
+
};
|
|
38867
|
+
export type ReadWorktreeFileBytesResponse = ReadWorktreeFileBytesResponses[keyof ReadWorktreeFileBytesResponses];
|
|
38336
38868
|
export type GetWorktreeStatusData = {
|
|
38337
38869
|
body?: never;
|
|
38338
38870
|
path: {
|