@compozy/extension-sdk 0.3.0-beta.21 → 0.3.0-beta.23
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contracts.js","sourceRoot":"","sources":["../../../src/generated/contracts.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"contracts.js","sourceRoot":"","sources":["../../../src/generated/contracts.ts"],"names":[],"mappings":";;;AAqwQa,QAAA,2BAA2B,GAAG;IACzC,gBAAgB,EAAE,CAAC,iBAAiB,EAAE,0BAA0B,CAAC;IACjE,uBAAuB,EAAE;QACvB,wBAAwB;QACxB,qBAAqB;QACrB,uBAAuB;KACxB;IACD,gBAAgB,EAAE,CAAC,oBAAoB,EAAE,iBAAiB,EAAE,cAAc,CAAC;IAC3E,mBAAmB,EAAE,CAAC,YAAY,CAAC;IACnC,gBAAgB,EAAE,CAAC,eAAe,EAAE,eAAe,EAAE,cAAc,CAAC;IACpE,cAAc,EAAE,CAAC,aAAa,CAAC;IAC/B,eAAe,EAAE,CAAC,eAAe,EAAE,YAAY,CAAC;IAChD,eAAe,EAAE,CAAC,YAAY,EAAE,YAAY,EAAE,WAAW,CAAC;CACI,CAAC;AAOpD,QAAA,mCAAmC,GAAyC;IACvF;QACE,OAAO,EAAE,uBAAuB;QAChC,gBAAgB,EAAE,QAAA,2BAA2B,CAAC,uBAAuB,CAAC;KACvE;IACD,EAAE,OAAO,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,QAAA,2BAA2B,CAAC,gBAAgB,CAAC,EAAE;IAC9F;QACE,OAAO,EAAE,mBAAmB;QAC5B,gBAAgB,EAAE,QAAA,2BAA2B,CAAC,mBAAmB,CAAC;KACnE;IACD,EAAE,OAAO,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,QAAA,2BAA2B,CAAC,gBAAgB,CAAC,EAAE;IAC9F,EAAE,OAAO,EAAE,cAAc,EAAE,gBAAgB,EAAE,QAAA,2BAA2B,CAAC,cAAc,CAAC,EAAE;IAC1F,EAAE,OAAO,EAAE,eAAe,EAAE,gBAAgB,EAAE,QAAA,2BAA2B,CAAC,eAAe,CAAC,EAAE;IAC5F,EAAE,OAAO,EAAE,eAAe,EAAE,gBAAgB,EAAE,QAAA,2BAA2B,CAAC,eAAe,CAAC,EAAE;CAC7F,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contracts.js","sourceRoot":"","sources":["../../../src/generated/contracts.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"contracts.js","sourceRoot":"","sources":["../../../src/generated/contracts.ts"],"names":[],"mappings":"AAqwQA,MAAM,CAAC,MAAM,2BAA2B,GAAG;IACzC,gBAAgB,EAAE,CAAC,iBAAiB,EAAE,0BAA0B,CAAC;IACjE,uBAAuB,EAAE;QACvB,wBAAwB;QACxB,qBAAqB;QACrB,uBAAuB;KACxB;IACD,gBAAgB,EAAE,CAAC,oBAAoB,EAAE,iBAAiB,EAAE,cAAc,CAAC;IAC3E,mBAAmB,EAAE,CAAC,YAAY,CAAC;IACnC,gBAAgB,EAAE,CAAC,eAAe,EAAE,eAAe,EAAE,cAAc,CAAC;IACpE,cAAc,EAAE,CAAC,aAAa,CAAC;IAC/B,eAAe,EAAE,CAAC,eAAe,EAAE,YAAY,CAAC;IAChD,eAAe,EAAE,CAAC,YAAY,EAAE,YAAY,EAAE,WAAW,CAAC;CACI,CAAC;AAOjE,MAAM,CAAC,MAAM,mCAAmC,GAAyC;IACvF;QACE,OAAO,EAAE,uBAAuB;QAChC,gBAAgB,EAAE,2BAA2B,CAAC,uBAAuB,CAAC;KACvE;IACD,EAAE,OAAO,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,2BAA2B,CAAC,gBAAgB,CAAC,EAAE;IAC9F;QACE,OAAO,EAAE,mBAAmB;QAC5B,gBAAgB,EAAE,2BAA2B,CAAC,mBAAmB,CAAC;KACnE;IACD,EAAE,OAAO,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,2BAA2B,CAAC,gBAAgB,CAAC,EAAE;IAC9F,EAAE,OAAO,EAAE,cAAc,EAAE,gBAAgB,EAAE,2BAA2B,CAAC,cAAc,CAAC,EAAE;IAC1F,EAAE,OAAO,EAAE,eAAe,EAAE,gBAAgB,EAAE,2BAA2B,CAAC,eAAe,CAAC,EAAE;IAC5F,EAAE,OAAO,EAAE,eAAe,EAAE,gBAAgB,EAAE,2BAA2B,CAAC,eAAe,CAAC,EAAE;CAC7F,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ISODateTime, JSONValue } from "../base-types.js";
|
|
2
|
-
export type HostAPIMethod = "agents/heartbeat/delete" | "agents/heartbeat/get" | "agents/heartbeat/history" | "agents/heartbeat/put" | "agents/heartbeat/rollback" | "agents/heartbeat/status" | "agents/heartbeat/validate" | "agents/heartbeat/wake" | "agents/soul/delete" | "agents/soul/get" | "agents/soul/history" | "agents/soul/put" | "agents/soul/rollback" | "agents/soul/validate" | "automation/jobs" | "automation/jobs/create" | "automation/jobs/delete" | "automation/jobs/get" | "automation/jobs/runs" | "automation/jobs/trigger" | "automation/jobs/update" | "automation/runs" | "automation/triggers" | "automation/triggers/create" | "automation/triggers/delete" | "automation/triggers/fire" | "automation/triggers/get" | "automation/triggers/runs" | "automation/triggers/update" | "bridges/instances/get" | "bridges/instances/list" | "bridges/instances/report_state" | "bridges/messages/ingest" | "clarify/ask" | "logs/list" | "memory/forget" | "memory/recall" | "memory/store" | "models/list" | "models/refresh" | "models/status" | "network/channels" | "network/direct/messages" | "network/direct/resolve" | "network/directs" | "network/peers" | "network/send" | "network/status" | "network/thread/get" | "network/thread/messages" | "network/threads" | "network/usage" | "network/work/get" | "observe/health" | "resources/get" | "resources/list" | "resources/snapshot" | "sandbox/exec" | "sandbox/info" | "sandbox/list" | "sessions/archive" | "sessions/create" | "sessions/events" | "sessions/health/get" | "sessions/inputs/cancel" | "sessions/inputs/list" | "sessions/inputs/promote" | "sessions/inputs/replace" | "sessions/list" | "sessions/prompt" | "sessions/runtime/clear" | "sessions/runtime/set" | "sessions/soul/refresh" | "sessions/status" | "sessions/status/get" | "sessions/stop" | "sessions/unarchive" | "skills/list" | "tasks" | "tasks/cancel" | "tasks/create" | "tasks/dashboard" | "tasks/get" | "tasks/inbox" | "tasks/runs" | "tasks/runs/attach_session" | "tasks/runs/cancel" | "tasks/runs/complete" | "tasks/runs/enqueue" | "tasks/runs/fail" | "tasks/runs/get" | "tasks/runs/start" | "tasks/timeline" | "tasks/tree" | "tasks/update" | "view/patch";
|
|
2
|
+
export type HostAPIMethod = "agents/heartbeat/delete" | "agents/heartbeat/get" | "agents/heartbeat/history" | "agents/heartbeat/put" | "agents/heartbeat/rollback" | "agents/heartbeat/status" | "agents/heartbeat/validate" | "agents/heartbeat/wake" | "agents/soul/delete" | "agents/soul/get" | "agents/soul/history" | "agents/soul/put" | "agents/soul/rollback" | "agents/soul/validate" | "automation/jobs" | "automation/jobs/create" | "automation/jobs/delete" | "automation/jobs/get" | "automation/jobs/runs" | "automation/jobs/trigger" | "automation/jobs/update" | "automation/runs" | "automation/triggers" | "automation/triggers/create" | "automation/triggers/delete" | "automation/triggers/fire" | "automation/triggers/get" | "automation/triggers/runs" | "automation/triggers/update" | "bridges/instances/get" | "bridges/instances/list" | "bridges/instances/report_state" | "bridges/messages/ingest" | "clarify/ask" | "logs/list" | "memory/forget" | "memory/recall" | "memory/store" | "models/list" | "models/refresh" | "models/status" | "network/channels" | "network/direct/messages" | "network/direct/resolve" | "network/directs" | "network/peers" | "network/send" | "network/status" | "network/thread/get" | "network/thread/messages" | "network/threads" | "network/usage" | "network/work/get" | "observe/health" | "resources/get" | "resources/list" | "resources/snapshot" | "sandbox/exec" | "sandbox/info" | "sandbox/list" | "sessions/archive" | "sessions/create" | "sessions/events" | "sessions/health/get" | "sessions/inputs/cancel" | "sessions/inputs/list" | "sessions/inputs/promote" | "sessions/inputs/replace" | "sessions/list" | "sessions/prompt" | "sessions/runtime/clear" | "sessions/runtime/set" | "sessions/soul/refresh" | "sessions/status" | "sessions/status/get" | "sessions/stop" | "sessions/unarchive" | "skills/list" | "tasks" | "tasks/cancel" | "tasks/create" | "tasks/dashboard" | "tasks/get" | "tasks/inbox" | "tasks/runs" | "tasks/runs/attach_session" | "tasks/runs/cancel" | "tasks/runs/complete" | "tasks/runs/enqueue" | "tasks/runs/fail" | "tasks/runs/get" | "tasks/runs/result" | "tasks/runs/start" | "tasks/timeline" | "tasks/tree" | "tasks/update" | "view/patch";
|
|
3
3
|
export interface AcceptedCapabilities {
|
|
4
4
|
provides: string[];
|
|
5
5
|
permissions: HostAPIMethod[];
|
|
@@ -7,7 +7,7 @@ export interface AcceptedCapabilities {
|
|
|
7
7
|
export interface AgentCrashedPatch {
|
|
8
8
|
labels?: Record<string, string>;
|
|
9
9
|
}
|
|
10
|
-
export type HookEvent = "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" | "sandbox.prepare" | "sandbox.ready" | "sandbox.sync.before" | "sandbox.sync.after" | "sandbox.stop" | "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" | "network.thread.opened" | "network.direct_room.opened" | "network.message.persisted" | "network.work.opened" | "network.work.transitioned" | "network.work.closed" | "network.peer.joined" | "network.peer.left" | "network.participation.pre_resolve" | "network.participation.resolved" | "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";
|
|
10
|
+
export type HookEvent = "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" | "sandbox.prepare" | "sandbox.ready" | "sandbox.sync.before" | "sandbox.sync.after" | "sandbox.stop" | "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" | "network.thread.opened" | "network.direct_room.opened" | "network.message.persisted" | "network.work.opened" | "network.work.transitioned" | "network.work.closed" | "network.peer.joined" | "network.peer.left" | "network.participation.pre_resolve" | "network.participation.resolved" | "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";
|
|
11
11
|
export interface AgentCrashedPayload {
|
|
12
12
|
event: HookEvent;
|
|
13
13
|
timestamp: ISODateTime;
|
|
@@ -1576,6 +1576,7 @@ export interface Redaction {
|
|
|
1576
1576
|
reason: ReasonCode;
|
|
1577
1577
|
bytes?: number;
|
|
1578
1578
|
}
|
|
1579
|
+
export type ResultTrust = string;
|
|
1579
1580
|
export interface ToolResult {
|
|
1580
1581
|
content?: ToolContent[];
|
|
1581
1582
|
structured?: JSONValue;
|
|
@@ -1586,6 +1587,7 @@ export interface ToolResult {
|
|
|
1586
1587
|
truncated: boolean;
|
|
1587
1588
|
bytes: number;
|
|
1588
1589
|
duration_ms: number;
|
|
1590
|
+
trust?: ResultTrust;
|
|
1589
1591
|
}
|
|
1590
1592
|
export interface ExtensionToolCallResponse {
|
|
1591
1593
|
result: ToolResult;
|
|
@@ -1826,10 +1828,15 @@ export interface HeartbeatWakeEventPayload {
|
|
|
1826
1828
|
created_at: ISODateTime;
|
|
1827
1829
|
expires_at: ISODateTime;
|
|
1828
1830
|
}
|
|
1831
|
+
export type State = "starting" | "active" | "stopping" | "stopped";
|
|
1829
1832
|
export type SessionHealthState = "idle" | "prompting" | "stopped" | "detached";
|
|
1830
1833
|
export type SessionHealthStatus = "healthy" | "degraded" | "stale" | "dead" | "unknown";
|
|
1831
1834
|
export type SessionHealthIneligibilityReason = "session_prompt_active" | "session_not_attachable" | "session_unhealthy" | "session_health_stale" | "session_health_hung" | "session_health_dead" | "session_health_unknown";
|
|
1832
1835
|
export interface SessionHealthPayload {
|
|
1836
|
+
lifecycle_state?: State;
|
|
1837
|
+
verified?: boolean;
|
|
1838
|
+
escalated?: boolean;
|
|
1839
|
+
attention?: string;
|
|
1833
1840
|
session_id: string;
|
|
1834
1841
|
workspace_id: string;
|
|
1835
1842
|
agent_name: string;
|
|
@@ -1941,7 +1948,7 @@ export interface HookDecl {
|
|
|
1941
1948
|
source: HookSource;
|
|
1942
1949
|
required?: boolean;
|
|
1943
1950
|
}
|
|
1944
|
-
export type HookEventFamily = "session" | "sandbox" | "input" | "prompt" | "event" | "automation" | "agent" | "turn" | "message" | "tool" | "permission" | "context" | "coordinator" | "task" | "task.run" | "loop" | "spawn" | "network" | "window_manager" | "worktree";
|
|
1951
|
+
export type HookEventFamily = "session" | "sandbox" | "input" | "prompt" | "event" | "automation" | "agent" | "turn" | "message" | "tool" | "permission" | "context" | "coordinator" | "task" | "task.run" | "loop" | "spawn" | "network" | "window_manager" | "worktree" | "terminal";
|
|
1945
1952
|
export type HookRunOutcome = "applied" | "denied" | "failed" | "skipped" | "dropped" | "rejected";
|
|
1946
1953
|
export type HookSkillSource = "bundled" | "marketplace" | "user" | "profile" | "additional" | "workspace" | "workspace_profile";
|
|
1947
1954
|
export interface InboundAction {
|
|
@@ -2554,6 +2561,38 @@ export interface ModelSourceListParams {
|
|
|
2554
2561
|
include_stale?: boolean;
|
|
2555
2562
|
}
|
|
2556
2563
|
export type ReasoningEffort = "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max";
|
|
2564
|
+
export type ModelSourceOptionKind = string;
|
|
2565
|
+
export interface ModelSourceOptionValue {
|
|
2566
|
+
value_id: string;
|
|
2567
|
+
label?: string;
|
|
2568
|
+
description?: string;
|
|
2569
|
+
group_id?: string;
|
|
2570
|
+
group_label?: string;
|
|
2571
|
+
order?: number;
|
|
2572
|
+
}
|
|
2573
|
+
export interface ModelSourceOptionDescriptor {
|
|
2574
|
+
id: string;
|
|
2575
|
+
label?: string;
|
|
2576
|
+
description?: string;
|
|
2577
|
+
category?: string;
|
|
2578
|
+
kind: ModelSourceOptionKind;
|
|
2579
|
+
current_value_id?: string;
|
|
2580
|
+
current_bool?: boolean;
|
|
2581
|
+
values?: ModelSourceOptionValue[];
|
|
2582
|
+
}
|
|
2583
|
+
export interface ModelSourceOptionSelection {
|
|
2584
|
+
id: string;
|
|
2585
|
+
value_id?: string;
|
|
2586
|
+
bool_value?: boolean;
|
|
2587
|
+
}
|
|
2588
|
+
export interface ModelSourceTransportBinding {
|
|
2589
|
+
transport_model_id: string;
|
|
2590
|
+
label?: string;
|
|
2591
|
+
reasoning_effort?: ReasoningEffort;
|
|
2592
|
+
fast?: boolean;
|
|
2593
|
+
thinking?: boolean;
|
|
2594
|
+
option_selections?: ModelSourceOptionSelection[];
|
|
2595
|
+
}
|
|
2557
2596
|
export interface ModelCatalogCostPayload {
|
|
2558
2597
|
input_per_million?: number;
|
|
2559
2598
|
output_per_million?: number;
|
|
@@ -2578,6 +2617,8 @@ export interface ModelSourceRow {
|
|
|
2578
2617
|
supports_reasoning?: boolean;
|
|
2579
2618
|
reasoning_efforts?: ReasoningEffort[];
|
|
2580
2619
|
default_reasoning_effort?: ReasoningEffort;
|
|
2620
|
+
config_options?: ModelSourceOptionDescriptor[];
|
|
2621
|
+
transport_bindings?: ModelSourceTransportBinding[];
|
|
2581
2622
|
cost?: ModelCatalogCostPayload;
|
|
2582
2623
|
deprecated?: boolean;
|
|
2583
2624
|
hidden?: boolean;
|
|
@@ -3530,6 +3571,28 @@ export interface ModelCatalogSourceRefPayload {
|
|
|
3530
3571
|
stale: boolean;
|
|
3531
3572
|
last_error?: string;
|
|
3532
3573
|
}
|
|
3574
|
+
export interface SessionConfigOptionValuePayload {
|
|
3575
|
+
value: string;
|
|
3576
|
+
label?: string;
|
|
3577
|
+
description?: string;
|
|
3578
|
+
group_id?: string;
|
|
3579
|
+
group_label?: string;
|
|
3580
|
+
}
|
|
3581
|
+
export interface SessionConfigOptionPayload {
|
|
3582
|
+
id: string;
|
|
3583
|
+
label?: string;
|
|
3584
|
+
description?: string;
|
|
3585
|
+
category?: string;
|
|
3586
|
+
kind: string;
|
|
3587
|
+
current_value_id?: string;
|
|
3588
|
+
current_bool?: boolean;
|
|
3589
|
+
values?: SessionConfigOptionValuePayload[];
|
|
3590
|
+
}
|
|
3591
|
+
export interface ProviderModelConfigurationPayload {
|
|
3592
|
+
reasoning_effort?: ReasoningEffort;
|
|
3593
|
+
fast?: boolean;
|
|
3594
|
+
thinking?: boolean;
|
|
3595
|
+
}
|
|
3533
3596
|
export type ReasoningSource = "acp" | "catalog";
|
|
3534
3597
|
export interface ProviderModelPayload {
|
|
3535
3598
|
provider_id: string;
|
|
@@ -3547,6 +3610,8 @@ export interface ProviderModelPayload {
|
|
|
3547
3610
|
supports_reasoning?: boolean;
|
|
3548
3611
|
reasoning_efforts?: ReasoningEffort[];
|
|
3549
3612
|
default_reasoning_effort?: ReasoningEffort;
|
|
3613
|
+
config_options?: SessionConfigOptionPayload[];
|
|
3614
|
+
configurations?: ProviderModelConfigurationPayload[];
|
|
3550
3615
|
cost?: ModelCatalogCostPayload;
|
|
3551
3616
|
curated: boolean;
|
|
3552
3617
|
deprecated: boolean;
|
|
@@ -3950,16 +4015,24 @@ export interface SessionHealthUpdateAfterPayload {
|
|
|
3950
4015
|
last_presence_at: ISODateTime;
|
|
3951
4016
|
last_error?: string;
|
|
3952
4017
|
}
|
|
4018
|
+
export type SteerDeliveryMode = "injected" | "pending_injection" | "interrupt_fallback";
|
|
3953
4019
|
export type PromptMode = string;
|
|
3954
4020
|
export type PromptDelivery = string;
|
|
3955
4021
|
export type Speed = string;
|
|
4022
|
+
export interface AgentACPOptionSelection {
|
|
4023
|
+
id: string;
|
|
4024
|
+
value_id?: string;
|
|
4025
|
+
bool_value?: boolean;
|
|
4026
|
+
}
|
|
3956
4027
|
export interface PromptRuntimeSelectionPayload {
|
|
3957
4028
|
provider: string;
|
|
3958
4029
|
model?: string;
|
|
3959
4030
|
reasoning_effort?: ReasoningEffort;
|
|
3960
4031
|
speed?: Speed;
|
|
4032
|
+
acp_options?: AgentACPOptionSelection[];
|
|
3961
4033
|
}
|
|
3962
4034
|
export interface SessionInput {
|
|
4035
|
+
steer_delivery?: SteerDeliveryMode;
|
|
3963
4036
|
id: string;
|
|
3964
4037
|
session_id: string;
|
|
3965
4038
|
message_id?: string;
|
|
@@ -4214,7 +4287,11 @@ export interface SessionPreStopPayload {
|
|
|
4214
4287
|
created_at: ISODateTime;
|
|
4215
4288
|
updated_at: ISODateTime;
|
|
4216
4289
|
}
|
|
4290
|
+
export type Disposition = "direct" | "steering" | "queued" | "interrupting";
|
|
4217
4291
|
export interface SessionPromptResult {
|
|
4292
|
+
disposition?: Disposition;
|
|
4293
|
+
steer_delivery?: SteerDeliveryMode;
|
|
4294
|
+
entry_id?: string;
|
|
4218
4295
|
status: string;
|
|
4219
4296
|
mode?: PromptMode;
|
|
4220
4297
|
delivery: PromptDelivery;
|
|
@@ -4252,6 +4329,7 @@ export interface SessionRuntimeRecoveryExhaustedPayload {
|
|
|
4252
4329
|
created_at: ISODateTime;
|
|
4253
4330
|
updated_at: ISODateTime;
|
|
4254
4331
|
turn_id?: string;
|
|
4332
|
+
run_id: string;
|
|
4255
4333
|
attempt: number;
|
|
4256
4334
|
max_attempts: number;
|
|
4257
4335
|
generation: number;
|
|
@@ -4276,6 +4354,7 @@ export interface SessionRuntimeRecoveryStartedPayload {
|
|
|
4276
4354
|
created_at: ISODateTime;
|
|
4277
4355
|
updated_at: ISODateTime;
|
|
4278
4356
|
turn_id?: string;
|
|
4357
|
+
run_id: string;
|
|
4279
4358
|
attempt: number;
|
|
4280
4359
|
max_attempts: number;
|
|
4281
4360
|
generation: number;
|
|
@@ -4300,6 +4379,7 @@ export interface SessionRuntimeRecoverySucceededPayload {
|
|
|
4300
4379
|
created_at: ISODateTime;
|
|
4301
4380
|
updated_at: ISODateTime;
|
|
4302
4381
|
turn_id?: string;
|
|
4382
|
+
run_id: string;
|
|
4303
4383
|
attempt: number;
|
|
4304
4384
|
max_attempts: number;
|
|
4305
4385
|
generation: number;
|
|
@@ -4311,6 +4391,7 @@ export interface SessionRuntimeSelectionPayload {
|
|
|
4311
4391
|
model?: string;
|
|
4312
4392
|
reasoning_effort?: ReasoningEffort;
|
|
4313
4393
|
speed?: Speed;
|
|
4394
|
+
acp_options?: AgentACPOptionSelection[];
|
|
4314
4395
|
}
|
|
4315
4396
|
export interface SessionRuntimeSetParams {
|
|
4316
4397
|
workspace_id: string;
|
|
@@ -4351,21 +4432,9 @@ export interface RuntimeSelectionPayload {
|
|
|
4351
4432
|
model?: string;
|
|
4352
4433
|
reasoning_effort?: ReasoningEffort;
|
|
4353
4434
|
speed?: Speed;
|
|
4435
|
+
acp_options?: AgentACPOptionSelection[];
|
|
4354
4436
|
speed_resolution?: Resolution;
|
|
4355
4437
|
}
|
|
4356
|
-
export interface SessionConfigOptionValuePayload {
|
|
4357
|
-
value: string;
|
|
4358
|
-
label?: string;
|
|
4359
|
-
description?: string;
|
|
4360
|
-
}
|
|
4361
|
-
export interface SessionConfigOptionPayload {
|
|
4362
|
-
id: string;
|
|
4363
|
-
label?: string;
|
|
4364
|
-
description?: string;
|
|
4365
|
-
kind: string;
|
|
4366
|
-
current?: string;
|
|
4367
|
-
values?: SessionConfigOptionValuePayload[];
|
|
4368
|
-
}
|
|
4369
4438
|
export interface ACPCapsPayload {
|
|
4370
4439
|
supports_load_session: boolean;
|
|
4371
4440
|
prompt_image: boolean;
|
|
@@ -4386,7 +4455,6 @@ export interface SessionRuntimePayload {
|
|
|
4386
4455
|
acp_session_id?: string;
|
|
4387
4456
|
acp_caps?: ACPCapsPayload;
|
|
4388
4457
|
}
|
|
4389
|
-
export type State = "starting" | "active" | "stopping" | "stopped";
|
|
4390
4458
|
export type StopReason = "completed" | "user_canceled" | "max_iterations" | "loop_detected" | "timeout" | "budget_exceeded" | "error" | "agent_crashed" | "hook_stopped" | "shutdown";
|
|
4391
4459
|
export interface SessionStatus {
|
|
4392
4460
|
session_id: string;
|
|
@@ -4406,6 +4474,10 @@ export interface SessionStatusGetParams {
|
|
|
4406
4474
|
workspace_id: string;
|
|
4407
4475
|
session_id: string;
|
|
4408
4476
|
}
|
|
4477
|
+
export interface SessionQueueSummaryPayload {
|
|
4478
|
+
entries: number;
|
|
4479
|
+
cap: number;
|
|
4480
|
+
}
|
|
4409
4481
|
export type Badge = string;
|
|
4410
4482
|
export interface PendingInteractionPayload {
|
|
4411
4483
|
interaction_id: string;
|
|
@@ -4415,6 +4487,7 @@ export interface PendingInteractionPayload {
|
|
|
4415
4487
|
title?: string;
|
|
4416
4488
|
choices?: string[];
|
|
4417
4489
|
decisions?: string[];
|
|
4490
|
+
tool_id?: string;
|
|
4418
4491
|
status: string;
|
|
4419
4492
|
created_at: ISODateTime;
|
|
4420
4493
|
resolved_at?: ISODateTime;
|
|
@@ -4422,6 +4495,11 @@ export interface PendingInteractionPayload {
|
|
|
4422
4495
|
resolved_by?: string;
|
|
4423
4496
|
}
|
|
4424
4497
|
export interface SessionStatusResponse {
|
|
4498
|
+
queue?: SessionQueueSummaryPayload;
|
|
4499
|
+
lifecycle_state?: State;
|
|
4500
|
+
verified?: boolean;
|
|
4501
|
+
escalated?: boolean;
|
|
4502
|
+
attention?: string;
|
|
4425
4503
|
session_id: string;
|
|
4426
4504
|
workspace_id: string;
|
|
4427
4505
|
agent_name: string;
|
|
@@ -5119,6 +5197,8 @@ export interface TaskRun {
|
|
|
5119
5197
|
error?: string;
|
|
5120
5198
|
metadata?: JSONValue;
|
|
5121
5199
|
result?: JSONValue;
|
|
5200
|
+
result_ref?: string;
|
|
5201
|
+
result_bytes?: number;
|
|
5122
5202
|
}
|
|
5123
5203
|
export interface TaskDesignationRollupPayload {
|
|
5124
5204
|
designation_group_id: string;
|
|
@@ -5726,6 +5806,21 @@ export interface TaskRunReleasedPayload {
|
|
|
5726
5806
|
recovery_action?: string;
|
|
5727
5807
|
recovery_reason?: string;
|
|
5728
5808
|
}
|
|
5809
|
+
export interface TaskRunResultPage {
|
|
5810
|
+
run_id: string;
|
|
5811
|
+
result_ref?: string;
|
|
5812
|
+
offset: number;
|
|
5813
|
+
bytes: number;
|
|
5814
|
+
total_bytes: number;
|
|
5815
|
+
data_base64: string;
|
|
5816
|
+
next_offset?: number;
|
|
5817
|
+
eof: boolean;
|
|
5818
|
+
}
|
|
5819
|
+
export interface TaskRunResultParams {
|
|
5820
|
+
id: string;
|
|
5821
|
+
offset?: number;
|
|
5822
|
+
limit?: number;
|
|
5823
|
+
}
|
|
5729
5824
|
export interface TaskRunStartParams {
|
|
5730
5825
|
id: string;
|
|
5731
5826
|
idempotency_key?: string;
|
|
@@ -5906,6 +6001,176 @@ export interface TasksResponse {
|
|
|
5906
6001
|
page: CountedCursorPagePayload;
|
|
5907
6002
|
facets: TaskCatalogFacetsPayload;
|
|
5908
6003
|
}
|
|
6004
|
+
export interface TerminalExit {
|
|
6005
|
+
cause: string;
|
|
6006
|
+
code?: number;
|
|
6007
|
+
signal?: string;
|
|
6008
|
+
}
|
|
6009
|
+
export interface TerminalClosedPayload {
|
|
6010
|
+
event: HookEvent;
|
|
6011
|
+
timestamp: ISODateTime;
|
|
6012
|
+
workspace_id: string;
|
|
6013
|
+
profile_id: string;
|
|
6014
|
+
terminal_id?: string;
|
|
6015
|
+
actor_kind: string;
|
|
6016
|
+
actor_id: string;
|
|
6017
|
+
session_id?: string;
|
|
6018
|
+
run_id?: string;
|
|
6019
|
+
generation?: number;
|
|
6020
|
+
at: ISODateTime;
|
|
6021
|
+
exit: TerminalExit;
|
|
6022
|
+
reason: string;
|
|
6023
|
+
}
|
|
6024
|
+
export interface TerminalCommandFinishedPayload {
|
|
6025
|
+
event: HookEvent;
|
|
6026
|
+
timestamp: ISODateTime;
|
|
6027
|
+
workspace_id: string;
|
|
6028
|
+
profile_id: string;
|
|
6029
|
+
terminal_id?: string;
|
|
6030
|
+
actor_kind: string;
|
|
6031
|
+
actor_id: string;
|
|
6032
|
+
session_id?: string;
|
|
6033
|
+
run_id?: string;
|
|
6034
|
+
generation?: number;
|
|
6035
|
+
at: ISODateTime;
|
|
6036
|
+
command_id: string;
|
|
6037
|
+
exit_code?: number;
|
|
6038
|
+
signal?: string;
|
|
6039
|
+
exit_cause: string;
|
|
6040
|
+
duration_ms: number;
|
|
6041
|
+
detected_by: string;
|
|
6042
|
+
approval: string;
|
|
6043
|
+
}
|
|
6044
|
+
export interface TerminalCommandStartedPayload {
|
|
6045
|
+
event: HookEvent;
|
|
6046
|
+
timestamp: ISODateTime;
|
|
6047
|
+
workspace_id: string;
|
|
6048
|
+
profile_id: string;
|
|
6049
|
+
terminal_id?: string;
|
|
6050
|
+
actor_kind: string;
|
|
6051
|
+
actor_id: string;
|
|
6052
|
+
session_id?: string;
|
|
6053
|
+
run_id?: string;
|
|
6054
|
+
generation?: number;
|
|
6055
|
+
at: ISODateTime;
|
|
6056
|
+
command_id: string;
|
|
6057
|
+
command: string;
|
|
6058
|
+
cwd: string;
|
|
6059
|
+
detected_by: string;
|
|
6060
|
+
}
|
|
6061
|
+
export interface TerminalInputProvidedPayload {
|
|
6062
|
+
event: HookEvent;
|
|
6063
|
+
timestamp: ISODateTime;
|
|
6064
|
+
workspace_id: string;
|
|
6065
|
+
profile_id: string;
|
|
6066
|
+
terminal_id?: string;
|
|
6067
|
+
actor_kind: string;
|
|
6068
|
+
actor_id: string;
|
|
6069
|
+
session_id?: string;
|
|
6070
|
+
run_id?: string;
|
|
6071
|
+
generation?: number;
|
|
6072
|
+
at: ISODateTime;
|
|
6073
|
+
request_id: string;
|
|
6074
|
+
redacted: boolean;
|
|
6075
|
+
length: number;
|
|
6076
|
+
outcome: string;
|
|
6077
|
+
}
|
|
6078
|
+
export interface TerminalInputRequestedPayload {
|
|
6079
|
+
event: HookEvent;
|
|
6080
|
+
timestamp: ISODateTime;
|
|
6081
|
+
workspace_id: string;
|
|
6082
|
+
profile_id: string;
|
|
6083
|
+
terminal_id?: string;
|
|
6084
|
+
actor_kind: string;
|
|
6085
|
+
actor_id: string;
|
|
6086
|
+
session_id?: string;
|
|
6087
|
+
run_id?: string;
|
|
6088
|
+
generation?: number;
|
|
6089
|
+
at: ISODateTime;
|
|
6090
|
+
request_id: string;
|
|
6091
|
+
reason: string;
|
|
6092
|
+
redacted: boolean;
|
|
6093
|
+
}
|
|
6094
|
+
export interface TerminalLimitRejectedPayload {
|
|
6095
|
+
event: HookEvent;
|
|
6096
|
+
timestamp: ISODateTime;
|
|
6097
|
+
workspace_id: string;
|
|
6098
|
+
profile_id: string;
|
|
6099
|
+
terminal_id?: string;
|
|
6100
|
+
actor_kind: string;
|
|
6101
|
+
actor_id: string;
|
|
6102
|
+
session_id?: string;
|
|
6103
|
+
run_id?: string;
|
|
6104
|
+
generation?: number;
|
|
6105
|
+
at: ISODateTime;
|
|
6106
|
+
limit: string;
|
|
6107
|
+
current: number;
|
|
6108
|
+
max: number;
|
|
6109
|
+
}
|
|
6110
|
+
export type TerminalObservationPatch = Record<string, never>;
|
|
6111
|
+
export interface TerminalOpenedPayload {
|
|
6112
|
+
event: HookEvent;
|
|
6113
|
+
timestamp: ISODateTime;
|
|
6114
|
+
workspace_id: string;
|
|
6115
|
+
profile_id: string;
|
|
6116
|
+
terminal_id?: string;
|
|
6117
|
+
actor_kind: string;
|
|
6118
|
+
actor_id: string;
|
|
6119
|
+
session_id?: string;
|
|
6120
|
+
run_id?: string;
|
|
6121
|
+
generation?: number;
|
|
6122
|
+
at: ISODateTime;
|
|
6123
|
+
mode: string;
|
|
6124
|
+
cwd: string;
|
|
6125
|
+
title?: string;
|
|
6126
|
+
}
|
|
6127
|
+
export interface TerminalRecordingStartedPayload {
|
|
6128
|
+
event: HookEvent;
|
|
6129
|
+
timestamp: ISODateTime;
|
|
6130
|
+
workspace_id: string;
|
|
6131
|
+
profile_id: string;
|
|
6132
|
+
terminal_id?: string;
|
|
6133
|
+
actor_kind: string;
|
|
6134
|
+
actor_id: string;
|
|
6135
|
+
session_id?: string;
|
|
6136
|
+
run_id?: string;
|
|
6137
|
+
generation?: number;
|
|
6138
|
+
at: ISODateTime;
|
|
6139
|
+
recording_id: string;
|
|
6140
|
+
}
|
|
6141
|
+
export interface TerminalRecordingStoppedPayload {
|
|
6142
|
+
event: HookEvent;
|
|
6143
|
+
timestamp: ISODateTime;
|
|
6144
|
+
workspace_id: string;
|
|
6145
|
+
profile_id: string;
|
|
6146
|
+
terminal_id?: string;
|
|
6147
|
+
actor_kind: string;
|
|
6148
|
+
actor_id: string;
|
|
6149
|
+
session_id?: string;
|
|
6150
|
+
run_id?: string;
|
|
6151
|
+
generation?: number;
|
|
6152
|
+
at: ISODateTime;
|
|
6153
|
+
recording_id: string;
|
|
6154
|
+
digest: string;
|
|
6155
|
+
bytes: number;
|
|
6156
|
+
reason: string;
|
|
6157
|
+
truncated: boolean;
|
|
6158
|
+
}
|
|
6159
|
+
export interface TerminalSubscriberEvictedPayload {
|
|
6160
|
+
event: HookEvent;
|
|
6161
|
+
timestamp: ISODateTime;
|
|
6162
|
+
workspace_id: string;
|
|
6163
|
+
profile_id: string;
|
|
6164
|
+
terminal_id?: string;
|
|
6165
|
+
actor_kind: string;
|
|
6166
|
+
actor_id: string;
|
|
6167
|
+
session_id?: string;
|
|
6168
|
+
run_id?: string;
|
|
6169
|
+
generation?: number;
|
|
6170
|
+
at: ISODateTime;
|
|
6171
|
+
flow: string;
|
|
6172
|
+
reason: string;
|
|
6173
|
+
}
|
|
5909
6174
|
export type BackendKind = string;
|
|
5910
6175
|
export interface BackendRef {
|
|
5911
6176
|
kind: BackendKind;
|
|
@@ -6629,6 +6894,16 @@ export interface HookPayloadByEvent {
|
|
|
6629
6894
|
"worktree.created": WorktreeObservationPayload;
|
|
6630
6895
|
"worktree.adopted": WorktreeObservationPayload;
|
|
6631
6896
|
"worktree.removed": WorktreeObservationPayload;
|
|
6897
|
+
"terminal.opened": TerminalOpenedPayload;
|
|
6898
|
+
"terminal.closed": TerminalClosedPayload;
|
|
6899
|
+
"terminal.command_started": TerminalCommandStartedPayload;
|
|
6900
|
+
"terminal.command_finished": TerminalCommandFinishedPayload;
|
|
6901
|
+
"terminal.input_requested": TerminalInputRequestedPayload;
|
|
6902
|
+
"terminal.input_provided": TerminalInputProvidedPayload;
|
|
6903
|
+
"terminal.recording_started": TerminalRecordingStartedPayload;
|
|
6904
|
+
"terminal.recording_stopped": TerminalRecordingStoppedPayload;
|
|
6905
|
+
"terminal.subscriber_evicted": TerminalSubscriberEvictedPayload;
|
|
6906
|
+
"terminal.limit_rejected": TerminalLimitRejectedPayload;
|
|
6632
6907
|
}
|
|
6633
6908
|
export interface HookPatchByEvent {
|
|
6634
6909
|
"session.pre_create": SessionCreatePatch;
|
|
@@ -6735,6 +7010,16 @@ export interface HookPatchByEvent {
|
|
|
6735
7010
|
"worktree.created": WorktreeObservationPatch;
|
|
6736
7011
|
"worktree.adopted": WorktreeObservationPatch;
|
|
6737
7012
|
"worktree.removed": WorktreeObservationPatch;
|
|
7013
|
+
"terminal.opened": TerminalObservationPatch;
|
|
7014
|
+
"terminal.closed": TerminalObservationPatch;
|
|
7015
|
+
"terminal.command_started": TerminalObservationPatch;
|
|
7016
|
+
"terminal.command_finished": TerminalObservationPatch;
|
|
7017
|
+
"terminal.input_requested": TerminalObservationPatch;
|
|
7018
|
+
"terminal.input_provided": TerminalObservationPatch;
|
|
7019
|
+
"terminal.recording_started": TerminalObservationPatch;
|
|
7020
|
+
"terminal.recording_stopped": TerminalObservationPatch;
|
|
7021
|
+
"terminal.subscriber_evicted": TerminalObservationPatch;
|
|
7022
|
+
"terminal.limit_rejected": TerminalObservationPatch;
|
|
6738
7023
|
}
|
|
6739
7024
|
export interface HostAPIMethodMap {
|
|
6740
7025
|
"sessions/list": {
|
|
@@ -7017,6 +7302,10 @@ export interface HostAPIMethodMap {
|
|
|
7017
7302
|
params: TaskRunGetParams;
|
|
7018
7303
|
result: TaskRunDetail;
|
|
7019
7304
|
};
|
|
7305
|
+
"tasks/runs/result": {
|
|
7306
|
+
params: TaskRunResultParams;
|
|
7307
|
+
result: TaskRunResultPage;
|
|
7308
|
+
};
|
|
7020
7309
|
"tasks/runs/enqueue": {
|
|
7021
7310
|
params: TaskRunEnqueueParams;
|
|
7022
7311
|
result: TaskRun;
|