@compozy/extension-sdk 0.3.0-beta.22 → 0.3.0-beta.24
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"}
|
|
@@ -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 {
|
|
@@ -2553,7 +2560,7 @@ export interface ModelSourceListParams {
|
|
|
2553
2560
|
refresh?: boolean;
|
|
2554
2561
|
include_stale?: boolean;
|
|
2555
2562
|
}
|
|
2556
|
-
export type ReasoningEffort =
|
|
2563
|
+
export type ReasoningEffort = string;
|
|
2557
2564
|
export type ModelSourceOptionKind = string;
|
|
2558
2565
|
export interface ModelSourceOptionValue {
|
|
2559
2566
|
value_id: string;
|
|
@@ -4008,6 +4015,7 @@ export interface SessionHealthUpdateAfterPayload {
|
|
|
4008
4015
|
last_presence_at: ISODateTime;
|
|
4009
4016
|
last_error?: string;
|
|
4010
4017
|
}
|
|
4018
|
+
export type SteerDeliveryMode = "injected" | "pending_injection" | "interrupt_fallback";
|
|
4011
4019
|
export type PromptMode = string;
|
|
4012
4020
|
export type PromptDelivery = string;
|
|
4013
4021
|
export type Speed = string;
|
|
@@ -4024,6 +4032,7 @@ export interface PromptRuntimeSelectionPayload {
|
|
|
4024
4032
|
acp_options?: AgentACPOptionSelection[];
|
|
4025
4033
|
}
|
|
4026
4034
|
export interface SessionInput {
|
|
4035
|
+
steer_delivery?: SteerDeliveryMode;
|
|
4027
4036
|
id: string;
|
|
4028
4037
|
session_id: string;
|
|
4029
4038
|
message_id?: string;
|
|
@@ -4278,7 +4287,11 @@ export interface SessionPreStopPayload {
|
|
|
4278
4287
|
created_at: ISODateTime;
|
|
4279
4288
|
updated_at: ISODateTime;
|
|
4280
4289
|
}
|
|
4290
|
+
export type Disposition = "direct" | "steering" | "queued" | "interrupting";
|
|
4281
4291
|
export interface SessionPromptResult {
|
|
4292
|
+
disposition?: Disposition;
|
|
4293
|
+
steer_delivery?: SteerDeliveryMode;
|
|
4294
|
+
entry_id?: string;
|
|
4282
4295
|
status: string;
|
|
4283
4296
|
mode?: PromptMode;
|
|
4284
4297
|
delivery: PromptDelivery;
|
|
@@ -4316,6 +4329,7 @@ export interface SessionRuntimeRecoveryExhaustedPayload {
|
|
|
4316
4329
|
created_at: ISODateTime;
|
|
4317
4330
|
updated_at: ISODateTime;
|
|
4318
4331
|
turn_id?: string;
|
|
4332
|
+
run_id: string;
|
|
4319
4333
|
attempt: number;
|
|
4320
4334
|
max_attempts: number;
|
|
4321
4335
|
generation: number;
|
|
@@ -4340,6 +4354,7 @@ export interface SessionRuntimeRecoveryStartedPayload {
|
|
|
4340
4354
|
created_at: ISODateTime;
|
|
4341
4355
|
updated_at: ISODateTime;
|
|
4342
4356
|
turn_id?: string;
|
|
4357
|
+
run_id: string;
|
|
4343
4358
|
attempt: number;
|
|
4344
4359
|
max_attempts: number;
|
|
4345
4360
|
generation: number;
|
|
@@ -4364,6 +4379,7 @@ export interface SessionRuntimeRecoverySucceededPayload {
|
|
|
4364
4379
|
created_at: ISODateTime;
|
|
4365
4380
|
updated_at: ISODateTime;
|
|
4366
4381
|
turn_id?: string;
|
|
4382
|
+
run_id: string;
|
|
4367
4383
|
attempt: number;
|
|
4368
4384
|
max_attempts: number;
|
|
4369
4385
|
generation: number;
|
|
@@ -4439,7 +4455,6 @@ export interface SessionRuntimePayload {
|
|
|
4439
4455
|
acp_session_id?: string;
|
|
4440
4456
|
acp_caps?: ACPCapsPayload;
|
|
4441
4457
|
}
|
|
4442
|
-
export type State = "starting" | "active" | "stopping" | "stopped";
|
|
4443
4458
|
export type StopReason = "completed" | "user_canceled" | "max_iterations" | "loop_detected" | "timeout" | "budget_exceeded" | "error" | "agent_crashed" | "hook_stopped" | "shutdown";
|
|
4444
4459
|
export interface SessionStatus {
|
|
4445
4460
|
session_id: string;
|
|
@@ -4459,6 +4474,10 @@ export interface SessionStatusGetParams {
|
|
|
4459
4474
|
workspace_id: string;
|
|
4460
4475
|
session_id: string;
|
|
4461
4476
|
}
|
|
4477
|
+
export interface SessionQueueSummaryPayload {
|
|
4478
|
+
entries: number;
|
|
4479
|
+
cap: number;
|
|
4480
|
+
}
|
|
4462
4481
|
export type Badge = string;
|
|
4463
4482
|
export interface PendingInteractionPayload {
|
|
4464
4483
|
interaction_id: string;
|
|
@@ -4468,6 +4487,7 @@ export interface PendingInteractionPayload {
|
|
|
4468
4487
|
title?: string;
|
|
4469
4488
|
choices?: string[];
|
|
4470
4489
|
decisions?: string[];
|
|
4490
|
+
tool_id?: string;
|
|
4471
4491
|
status: string;
|
|
4472
4492
|
created_at: ISODateTime;
|
|
4473
4493
|
resolved_at?: ISODateTime;
|
|
@@ -4475,6 +4495,11 @@ export interface PendingInteractionPayload {
|
|
|
4475
4495
|
resolved_by?: string;
|
|
4476
4496
|
}
|
|
4477
4497
|
export interface SessionStatusResponse {
|
|
4498
|
+
queue?: SessionQueueSummaryPayload;
|
|
4499
|
+
lifecycle_state?: State;
|
|
4500
|
+
verified?: boolean;
|
|
4501
|
+
escalated?: boolean;
|
|
4502
|
+
attention?: string;
|
|
4478
4503
|
session_id: string;
|
|
4479
4504
|
workspace_id: string;
|
|
4480
4505
|
agent_name: string;
|
|
@@ -5976,6 +6001,176 @@ export interface TasksResponse {
|
|
|
5976
6001
|
page: CountedCursorPagePayload;
|
|
5977
6002
|
facets: TaskCatalogFacetsPayload;
|
|
5978
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
|
+
}
|
|
5979
6174
|
export type BackendKind = string;
|
|
5980
6175
|
export interface BackendRef {
|
|
5981
6176
|
kind: BackendKind;
|
|
@@ -6699,6 +6894,16 @@ export interface HookPayloadByEvent {
|
|
|
6699
6894
|
"worktree.created": WorktreeObservationPayload;
|
|
6700
6895
|
"worktree.adopted": WorktreeObservationPayload;
|
|
6701
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;
|
|
6702
6907
|
}
|
|
6703
6908
|
export interface HookPatchByEvent {
|
|
6704
6909
|
"session.pre_create": SessionCreatePatch;
|
|
@@ -6805,6 +7010,16 @@ export interface HookPatchByEvent {
|
|
|
6805
7010
|
"worktree.created": WorktreeObservationPatch;
|
|
6806
7011
|
"worktree.adopted": WorktreeObservationPatch;
|
|
6807
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;
|
|
6808
7023
|
}
|
|
6809
7024
|
export interface HostAPIMethodMap {
|
|
6810
7025
|
"sessions/list": {
|