@agent-compose/sdk 0.8.0 → 0.8.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/agent/agent-loop.d.ts +8 -0
- package/dist/agent/run-agent.d.ts +4 -0
- package/dist/client.d.ts +50 -6
- package/dist/display.d.ts +16 -0
- package/dist/index.d.ts +5 -5
- package/dist/index.js +256 -39
- package/dist/runtimes/_cli-agent.d.ts +9 -7
- package/dist/runtimes/claude-code.d.ts +10 -8
- package/dist/runtimes/codex.d.ts +4 -1
- package/dist/runtimes/openai-desktop.js +249 -38
- package/dist/types/api-conversations.d.ts +31 -0
- package/dist/types/api-factory.d.ts +25 -0
- package/dist/types/api-runs.d.ts +46 -1
- package/dist/types/protocol.d.ts +8 -0
- package/dist/types/workflow-metadata.d.ts +8 -0
- package/dist/utils/bundler.d.ts +56 -0
- package/dist/workflow-steps/workflow.d.ts +7 -0
- package/dist/workflows/invoke-child.d.ts +18 -0
- package/dist/workflows/invoke-child.test.d.ts +9 -0
- package/package.json +2 -2
- package/src/agent/agent-loop.ts +9 -0
- package/src/agent/run-agent.ts +5 -0
- package/src/client.ts +145 -10
- package/src/display.ts +61 -15
- package/src/index.ts +11 -3
- package/src/runtimes/_cli-agent.ts +9 -7
- package/src/runtimes/claude-code.ts +25 -15
- package/src/runtimes/codex.ts +11 -3
- package/src/types/api-conversations.ts +25 -0
- package/src/types/api-factory.ts +32 -0
- package/src/types/api-runs.ts +48 -1
- package/src/types/protocol.ts +8 -0
- package/src/types/workflow-metadata.ts +9 -0
- package/src/utils/bundler.ts +213 -3
- package/src/workflow-steps/workflow.ts +7 -0
- package/src/workflows/invoke-child.ts +47 -11
|
@@ -97,6 +97,11 @@ export type AgentLifecycleEvent = {
|
|
|
97
97
|
/** Short runtime self-identifier (`claude`, `openai-desktop`, …).
|
|
98
98
|
* Drives the per-agent runtime icon on the dashboard. */
|
|
99
99
|
runtimeKind?: string;
|
|
100
|
+
/** Authored plan-phase this agent belongs to (e.g. dynamic-task's
|
|
101
|
+
* `phase.name`). Purely observability: the dashboard groups agents
|
|
102
|
+
* under named phases without parsing the label prefix. Optional and
|
|
103
|
+
* additive — absent for agents outside a phased plan. */
|
|
104
|
+
phase?: string;
|
|
100
105
|
} | {
|
|
101
106
|
event: "agent.message";
|
|
102
107
|
at: number;
|
|
@@ -124,6 +129,9 @@ export type AgentLifecycleEvent = {
|
|
|
124
129
|
export interface AgentLoopOpts<TResponse = unknown> {
|
|
125
130
|
agentId?: string;
|
|
126
131
|
label?: string;
|
|
132
|
+
/** Authored plan-phase name carried onto `agent.spawned` (see
|
|
133
|
+
* AgentLifecycleEvent.phase). Optional, observability-only. */
|
|
134
|
+
phase?: string;
|
|
127
135
|
onAgentLifecycleEvent?: (event: AgentLifecycleEvent) => void;
|
|
128
136
|
onIteration?: (iteration: number, status: AgentStatus | null) => void;
|
|
129
137
|
turnsPerIteration?: number;
|
|
@@ -48,6 +48,10 @@ export interface AgentOpts<T = unknown> {
|
|
|
48
48
|
responseSchema?: z.ZodType<T>;
|
|
49
49
|
/** Label prefix for runtime stderr ("[sbid][agent]" by default). */
|
|
50
50
|
label?: string;
|
|
51
|
+
/** Authored plan-phase this agent belongs to. Rides `agent.spawned` so the
|
|
52
|
+
* dashboard groups agents under named phases. Optional, additive,
|
|
53
|
+
* observability-only — it never affects execution. */
|
|
54
|
+
phase?: string;
|
|
51
55
|
/** Lifecycle event sink from workflow ctx. Emits agent.spawned / iteration / settled. */
|
|
52
56
|
events?: {
|
|
53
57
|
emit: (event: AgentLifecycleEvent) => void | Promise<void>;
|
package/dist/client.d.ts
CHANGED
|
@@ -12,17 +12,17 @@
|
|
|
12
12
|
*/
|
|
13
13
|
import type { RunEvent } from "./types/events.js";
|
|
14
14
|
import type { ConversationStreamEvent } from "./types/conversation-stream.js";
|
|
15
|
-
import type { InvokeWorkflowOptions, InvokeAndWaitOptions, InvokeResult, StreamRunLogsOptions, RunStatus, ResumePauseOptions, ResumePauseResponse, AnswerSteerOptions, RequestAgentPauseOptions, RequestAgentPauseResponse, SendAgentMessageOptions, SendAgentMessageResponse, RunDetail, RunListEntry, ListRunsOptions, TimelineEvent, RunFundingResponse, EventRow, ReportEventInput, ListEventsOptions, ListEventsResult, RunArtifactRow, RunLogLine, ListRunLogsOptions, CancelRunResponse, ListSnapshotsOptions, SnapshotListResponse, SnapshotListEntry, RunSnapshotEntry } from "./types/api-runs.js";
|
|
15
|
+
import type { InvokeWorkflowOptions, InvokeAndWaitOptions, InvokeResult, StreamRunLogsOptions, InlineWorkflowPayload, InvokeInlineOptions, InvokeInlineAndWaitOptions, RunStatus, ResumePauseOptions, ResumePauseResponse, AnswerSteerOptions, RequestAgentPauseOptions, RequestAgentPauseResponse, SendAgentMessageOptions, SendAgentMessageResponse, RunDetail, RunListEntry, ListRunsOptions, TimelineEvent, RunFundingResponse, EventRow, ReportEventInput, ListEventsOptions, ListEventsResult, RunArtifactRow, RunLogLine, ListRunLogsOptions, CancelRunResponse, ListSnapshotsOptions, SnapshotListResponse, SnapshotListEntry, RunSnapshotEntry } from "./types/api-runs.js";
|
|
16
16
|
import type { TeamMember, Mention, CreateMentionsInput, ConversationsPage, SessionsPage, ConversationDetail, ConversationThread, CreateCloudSessionInput, CloudSessionCreated, SessionPreview, PreviewOpened, OpenPreviewInput, SessionForked, SessionChangeSet, SessionMergeReport, SessionDiscardReport, SendConversationMessageInput, SendConversationMessageResult, ChannelSessionRow, SessionChannelMessagePosted, ConversationPresenceSnapshot, StreamConversationOptions, AgentListRow } from "./types/api-conversations.js";
|
|
17
17
|
import type { ConversationMemberRole, ConversationMember, ArtifactScope, SetScopeGrantsInput, SetTemplateScopeInput } from "./types/api-scopes.js";
|
|
18
18
|
import type { Project, ProjectsPage, ProjectRole, ProjectMember, ProjectObjectsPage, ProjectAddPreview, AddProjectObjectInput, AddProjectObjectResult, RefreshProjectObjectResult } from "./types/api-projects.js";
|
|
19
|
-
import type { RegisterResult, RegisterWorkflowInput, TemplateRow, TemplateDetail, ListTemplatesOptions, SearchFactoryFilesOptions, FactoryFileSearchResult, FactoryFileWriteResult, FactoryRow, CreateFactoryInput, UpdateFactoryInput, ScheduleRow, CreateScheduleInput, SecretOptions, SetSecretResult, SecretListEntry, CreateApiKeyInput, ApiKey, ApiKeyCreated, UsageResponse, DriveRepoLink, CreateDriveRepoLinkInput } from "./types/api-factory.js";
|
|
19
|
+
import type { RegisterResult, RegisterWorkflowInput, TemplateRow, TemplateDetail, ListTemplatesOptions, SearchFactoryFilesOptions, FactoryFileSearchResult, FactoryFileWriteResult, FactoryRow, CreateFactoryInput, UpdateFactoryInput, ScheduleRow, CreateScheduleInput, SecretOptions, SetSecretResult, SecretListEntry, CreateApiKeyInput, ApiKey, ApiKeyCreated, UsageResponse, DriveRepoLink, CreateDriveRepoLinkInput, DriveMountSession, CreateDriveMountSessionInput } from "./types/api-factory.js";
|
|
20
20
|
import type { ComplianceSession, RequestComplianceSessionInput, ListComplianceSessionsOptions, ComplianceSessionsPage, ListComplianceAccessesOptions, ComplianceAccessesPage } from "./types/api-compliance.js";
|
|
21
|
-
export type { RunState, InvokeWorkflowOptions, InvokeAndWaitOptions, InvokeResult, StreamRunLogsOptions, RunStatus, ResumePauseActor, ResumePauseSuccess, ResumePausePending, ResumePauseResponse, ResumePauseOptions, RequestAgentPauseOptions, AnswerSteerOptions, RequestAgentPauseResponse, SendAgentMessageOptions, SendAgentMessageResponse, RunDetail, RunListEntry, ListRunsOptions, TimelineEvent, FundingLane, RunFundingStamp, RunFundingUsageRow, RunFundingResponse, EventSubjectType, EventRow, RunArtifactRow, ReportEventInput, ListEventsOptions, ListEventsResult, RunLogLine, ListRunLogsOptions, CancelRunResponse, ListSnapshotsOptions, SnapshotListEntry, SnapshotListResponse, RunSnapshotEntry, } from "./types/api-runs.js";
|
|
21
|
+
export type { RunState, InvokeWorkflowOptions, InvokeAndWaitOptions, InvokeResult, FundingChoice, StreamRunLogsOptions, InlineWorkflowPayload, InvokeInlineOptions, InvokeInlineAndWaitOptions, RunStatus, ResumePauseActor, ResumePauseSuccess, ResumePausePending, ResumePauseResponse, ResumePauseOptions, RequestAgentPauseOptions, AnswerSteerOptions, RequestAgentPauseResponse, SendAgentMessageOptions, SendAgentMessageResponse, RunDetail, RunListEntry, ListRunsOptions, TimelineEvent, FundingLane, RunFundingStamp, RunFundingUsageRow, RunFundingResponse, EventSubjectType, EventRow, RunArtifactRow, ReportEventInput, ListEventsOptions, ListEventsResult, RunLogLine, ListRunLogsOptions, CancelRunResponse, ListSnapshotsOptions, SnapshotListEntry, SnapshotListResponse, RunSnapshotEntry, } from "./types/api-runs.js";
|
|
22
22
|
export type { TeamMember, Mention, CreateMentionsInput, ConversationMessagePart, ConversationRow, ConversationMessageRow, ConversationsPage, SessionsPage, ConversationDetail, CreateCloudSessionInput, CloudSessionCreated, ConversationThread, SessionPreview, PreviewOpened, OpenPreviewInput, SessionForked, SessionFileChange, SessionChangeSet, SessionMergeReportDetail, SessionMergeReport, SessionDiscardReport, ConversationPageContext, SendConversationMessageInput, ConversationTurnState, SendConversationMessageResult, ConversationPresenceSnapshot, AgentListRow, StreamConversationOptions, ChannelSessionStatus, ChannelSessionRow, ChannelSessionsResponse, SessionChannelMessagePosted, } from "./types/api-conversations.js";
|
|
23
23
|
export type { ConversationMemberRole, ConversationMember, DocumentCapability, TemplateCapability, ScopeGrant, ArtifactScope, RunContext, SetScopeGrantsInput, SetTemplateScopeInput, } from "./types/api-scopes.js";
|
|
24
24
|
export type { Project, ProjectsPage, ProjectRole, ProjectMember, ProjectObject, ProjectObjectsPage, ProjectSkippedFile, ProjectPreviewFile, ProjectAddPreview, AddProjectObjectInput, AddProjectObjectResult, RefreshProjectObjectResult, } from "./types/api-projects.js";
|
|
25
|
-
export type { RegisterResult, RegisteredRuntime, RuntimeSourceInput, TemplateSourceRef, RegisterWorkflowInput, TemplateRow, TemplateDetail, ListTemplatesOptions, FactoryFileSearchRow, FactoryFolderSearchRow, SearchFactoryFilesOptions, FactoryFileSearchResult, FactoryFileWriteResult, PublicFileLinkState, FactoryRow, CreateFactoryInput, UpdateFactoryInput, ScheduleRow, CreateScheduleInput, SecretOptions, SetSecretResult, SecretListEntry, CreateApiKeyInput, ApiKey, ApiKeyCreated, UsageRollupRow, UsageResponse, DriveRepoLink, CreateDriveRepoLinkInput, } from "./types/api-factory.js";
|
|
25
|
+
export type { RegisterResult, RegisteredRuntime, RuntimeSourceInput, TemplateSourceRef, RegisterWorkflowInput, TemplateRow, TemplateDetail, ListTemplatesOptions, FactoryFileSearchRow, FactoryFolderSearchRow, SearchFactoryFilesOptions, FactoryFileSearchResult, FactoryFileWriteResult, PublicFileLinkState, FactoryRow, CreateFactoryInput, UpdateFactoryInput, ScheduleRow, CreateScheduleInput, SecretOptions, SetSecretResult, SecretListEntry, CreateApiKeyInput, ApiKey, ApiKeyCreated, UsageRollupRow, UsageResponse, DriveRepoLink, CreateDriveRepoLinkInput, DriveMountSession, CreateDriveMountSessionInput, } from "./types/api-factory.js";
|
|
26
26
|
export type { ComplianceScopeKind, ComplianceStatus, ComplianceSession, ComplianceAccess, RequestComplianceSessionInput, ListComplianceSessionsOptions, ComplianceSessionsPage, ListComplianceAccessesOptions, ComplianceAccessesPage, } from "./types/api-compliance.js";
|
|
27
27
|
export interface AgentComposeClientOptions {
|
|
28
28
|
/** Your team's API key — minted from the dashboard or `agentc keys create`.
|
|
@@ -65,6 +65,14 @@ export declare class AgentComposeClient {
|
|
|
65
65
|
*
|
|
66
66
|
* `factorySlug`: defaults to `"default"`. */
|
|
67
67
|
invoke(name: string, input?: Record<string, unknown>, opts?: InvokeWorkflowOptions): Promise<InvokeResult>;
|
|
68
|
+
/** Invoke an INLINE workflow — the exact payload `bundleWorkflow` produced
|
|
69
|
+
* plus a `name` — WITHOUT registering it. The server validates it through
|
|
70
|
+
* the same core as registration (manifest required + bound to the source
|
|
71
|
+
* bytes) but writes no registry row: the run snapshots the source it
|
|
72
|
+
* executes, and registration stays the door for named/versioned/scheduled
|
|
73
|
+
* workflows. Same parent-child auto-detection and `Idempotency-Key`
|
|
74
|
+
* semantics as `invoke()`. Requires the `invoke` scope. */
|
|
75
|
+
invokeInline(workflow: InlineWorkflowPayload, input?: Record<string, unknown>, opts?: InvokeInlineOptions): Promise<InvokeResult>;
|
|
68
76
|
/** Invoke a workflow and wait for it to settle (success / failed / abandoned).
|
|
69
77
|
* Polls `getStatus` on a fixed interval. Rejects with `AgentComposeError`
|
|
70
78
|
* if the run settles non-success, or a plain `Error` on timeout.
|
|
@@ -73,6 +81,16 @@ export declare class AgentComposeClient {
|
|
|
73
81
|
* tests, tune up for long-running workflows. The parent-child auto-
|
|
74
82
|
* detection from `invoke()` applies here too. */
|
|
75
83
|
invokeAndWait<TOutput = unknown>(name: string, input?: Record<string, unknown>, opts?: InvokeAndWaitOptions): Promise<RunStatus<TOutput>>;
|
|
84
|
+
/** `invokeInline` + block until the run settles — the "call blocks →
|
|
85
|
+
* result returns on the same turn" contract for inline sub-workflows. */
|
|
86
|
+
invokeInlineAndWait<TOutput = unknown>(workflow: InlineWorkflowPayload, input?: Record<string, unknown>, opts?: InvokeInlineAndWaitOptions): Promise<RunStatus<TOutput>>;
|
|
87
|
+
/** Poll one run until it settles (success / failed / abandoned) and return
|
|
88
|
+
* its final status. Shared tail of `invokeAndWait` / `invokeInlineAndWait`;
|
|
89
|
+
* also useful to re-attach to a run you dispatched fire-and-forget. */
|
|
90
|
+
waitForRun<TOutput = unknown>(runId: string, opts?: {
|
|
91
|
+
timeoutMs?: number;
|
|
92
|
+
pollIntervalMs?: number;
|
|
93
|
+
}): Promise<RunStatus<TOutput>>;
|
|
76
94
|
/** List captured snapshots in a factory. */
|
|
77
95
|
listSnapshots(opts?: ListSnapshotsOptions): Promise<SnapshotListEntry[]>;
|
|
78
96
|
/** List one page of captured snapshots in a factory. */
|
|
@@ -183,6 +201,13 @@ export declare class AgentComposeClient {
|
|
|
183
201
|
/** Files the run wrote on the factory drive — run-attributed revisions,
|
|
184
202
|
* latest write per path, paths the run later deleted excluded. */
|
|
185
203
|
listRunArtifacts(runId: string): Promise<RunArtifactRow[]>;
|
|
204
|
+
/** One run artifact's bytes, resolved server-side through the DRIVE INDEX
|
|
205
|
+
* (never the run's gone sandbox or branch) — a listed artifact with an
|
|
206
|
+
* indexed path is always readable here, including after the run's branch
|
|
207
|
+
* is merged/retired. The path is the listing's `path`, sent as a single
|
|
208
|
+
* query parameter so slashes / spaces / unicode in agent-derived
|
|
209
|
+
* filenames survive verbatim. */
|
|
210
|
+
getRunArtifactBytes(runId: string, path: string): Promise<Uint8Array>;
|
|
186
211
|
/** Write (create or overwrite) one file on a factory's drive. */
|
|
187
212
|
putFactoryFile(path: string, content: string | Uint8Array, opts?: {
|
|
188
213
|
factorySlug?: string;
|
|
@@ -196,6 +221,7 @@ export declare class AgentComposeClient {
|
|
|
196
221
|
getFactoryFileBytes(path: string, opts?: {
|
|
197
222
|
factorySlug?: string;
|
|
198
223
|
revision?: number;
|
|
224
|
+
branch?: string;
|
|
199
225
|
}): Promise<Uint8Array>;
|
|
200
226
|
/** Read one file's current content (or a specific revision) as text
|
|
201
227
|
* (UTF-8). For binary files use `getFactoryFileBytes` — decoding them to
|
|
@@ -203,7 +229,21 @@ export declare class AgentComposeClient {
|
|
|
203
229
|
getFactoryFile(path: string, opts?: {
|
|
204
230
|
factorySlug?: string;
|
|
205
231
|
revision?: number;
|
|
232
|
+
branch?: string;
|
|
206
233
|
}): Promise<string>;
|
|
234
|
+
/** Create a local drive mount (or re-mint an existing one's token by
|
|
235
|
+
* passing its `conversationId`). */
|
|
236
|
+
createDriveMountSession(opts?: CreateDriveMountSessionInput & {
|
|
237
|
+
factorySlug?: string;
|
|
238
|
+
}): Promise<DriveMountSession>;
|
|
239
|
+
/** Release a local mount's gateway branch mount (clean unmount). The
|
|
240
|
+
* branch and its review card survive — this only drops the gateway's
|
|
241
|
+
* in-memory mount so the exclusive branch is not pinned. */
|
|
242
|
+
releaseDriveMountSession(conversationId: string, opts?: {
|
|
243
|
+
factorySlug?: string;
|
|
244
|
+
}): Promise<{
|
|
245
|
+
released: boolean;
|
|
246
|
+
}>;
|
|
207
247
|
/** List conversations the caller can access, newest-activity first.
|
|
208
248
|
* Cursor-paginated: pass the previous page's `next_cursor`. */
|
|
209
249
|
listConversations(opts?: {
|
|
@@ -215,8 +255,12 @@ export declare class AgentComposeClient {
|
|
|
215
255
|
listSessions(factoryId: string, opts?: {
|
|
216
256
|
cursor?: string;
|
|
217
257
|
}): Promise<SessionsPage>;
|
|
218
|
-
/** One conversation with its latest page of messages.
|
|
219
|
-
|
|
258
|
+
/** One conversation with its latest page of messages. `limit` bounds the
|
|
259
|
+
* page (newest N) — metadata-only consumers (e.g. resolving the
|
|
260
|
+
* session's drive branch) pass 1 instead of pulling the full hydrate. */
|
|
261
|
+
getConversation(id: string, opts?: {
|
|
262
|
+
limit?: number;
|
|
263
|
+
}): Promise<ConversationDetail>;
|
|
220
264
|
/** Provision a CLOUD-native session (ADR-0037 Phase 3b / ADR-0055 §9): a
|
|
221
265
|
* persistent server-side sandbox on the factory drive that keeps working
|
|
222
266
|
* after the caller's terminal (and laptop) closes. The session's TYPE is
|
package/dist/display.d.ts
CHANGED
|
@@ -107,6 +107,22 @@ export declare function clampPlanEntries(raw: unknown): DisplayPlanEntry[];
|
|
|
107
107
|
export declare const TABLE_MAX_COLUMNS = 12;
|
|
108
108
|
export declare const TABLE_MAX_ROWS = 100;
|
|
109
109
|
export declare const TABLE_CELL_MAX_CHARS = 200;
|
|
110
|
+
/** Drive-path bound for promoted/marker paths (mirrors the directive cap). */
|
|
111
|
+
export declare const DRIVE_PATH_MAX_CHARS = 512;
|
|
112
|
+
/**
|
|
113
|
+
* Whether a string is a PLAUSIBLE factory-drive path — the gate every
|
|
114
|
+
* promoted document/image/preview/diff path and document/image marker
|
|
115
|
+
* passes before it can become a card. A malformed agent command can hand
|
|
116
|
+
* the promoter shell fragments instead of a path (live failure: a partial
|
|
117
|
+
* `agentc display document` call promoted the redirect word `2>&1` — and a
|
|
118
|
+
* bare `/` — into "Showed document" cards whose viewer link was dead), so
|
|
119
|
+
* anything that reads as a shell operator, flag, or empty reference is not
|
|
120
|
+
* a path: reject whitespace-only, over-long, flag-shaped (leading `-`),
|
|
121
|
+
* shell operators / substitution (`|`, `<`, `>`, `;`, backticks, `$(`,
|
|
122
|
+
* which covers `2>&1`), control characters, backslashes, bare/duplicate
|
|
123
|
+
* slashes, and `.`/`..` segments (the server rejects those anyway).
|
|
124
|
+
*/
|
|
125
|
+
export declare function isPlausibleDrivePath(raw: string): boolean;
|
|
110
126
|
/**
|
|
111
127
|
* Clamp raw table input to the marker/part bounds. Accepts an array of flat
|
|
112
128
|
* objects (columns inferred from the key union, first-seen order) or a
|
package/dist/index.d.ts
CHANGED
|
@@ -27,7 +27,7 @@ export type { Processor, ProcessorContext, ProcessorVerdict, ToolCall, GatePause
|
|
|
27
27
|
export type { AgentMessage, AgentMessageInit, AgentMessageText, AgentMessageThinking, AgentMessageToolUse, AgentMessageToolResult, AgentMessageDone, AgentMessageError, AgentMessageUsage, AgentStatus, } from "./types/protocol.js";
|
|
28
28
|
export type { SandboxProvider, DesktopSandboxProvider, SandboxPtyOpts, SandboxPtyHandle, } from "./types/sandbox.js";
|
|
29
29
|
export { AgentComposeClient } from "./client.js";
|
|
30
|
-
export type { RegisterResult, RegisterWorkflowInput, RuntimeSourceInput, TemplateSourceRef, InvokeWorkflowOptions, InvokeAndWaitOptions, InvokeResult, ListSnapshotsOptions, TemplateRow, ListTemplatesOptions, CreateFactoryInput, UpdateFactoryInput, SecretOptions, SetSecretResult, SecretListEntry, CreateApiKeyInput, StreamRunLogsOptions, TeamMember, Mention, CreateMentionsInput, EventSubjectType, EventRow, ReportEventInput, ListEventsOptions, ListEventsResult, RunLogLine, ListRunLogsOptions, RunListEntry, ListRunsOptions, RunDetail, FundingLane, RunFundingStamp, RunFundingUsageRow, RunFundingResponse, RegisteredRuntime, RunState, RunStatus, FactoryRow, SnapshotListEntry, SnapshotListResponse, ApiKey, ApiKeyCreated, UsageRollupRow, UsageResponse, CancelRunResponse, RequestAgentPauseOptions, RequestAgentPauseResponse, SendAgentMessageOptions, SendAgentMessageResponse, AnswerSteerOptions, ResumePauseOptions, ResumePauseResponse, ResumePauseSuccess, ResumePausePending, ResumePauseActor, ConversationMessagePart, ConversationRow, ConversationMessageRow, ConversationsPage, ConversationDetail, ConversationThread, ConversationPageContext, SendConversationMessageInput, SendConversationMessageResult, ConversationTurnState, ConversationPresenceSnapshot, StreamConversationOptions, AgentListRow, CreateCloudSessionInput, CloudSessionCreated, SessionPreview, PreviewOpened, OpenPreviewInput, SessionForked, SessionFileChange, SessionChangeSet, SessionMergeReportDetail, SessionMergeReport, SessionDiscardReport, ChannelSessionStatus, ChannelSessionRow, ChannelSessionsResponse, SessionChannelMessagePosted, FactoryFileSearchRow, FactoryFolderSearchRow, SearchFactoryFilesOptions, FactoryFileSearchResult, PublicFileLinkState, ConversationMemberRole, ConversationMember, DocumentCapability, TemplateCapability, ScopeGrant, ArtifactScope, RunContext, SetScopeGrantsInput, SetTemplateScopeInput, TemplateDetail, Project, ProjectsPage, ProjectRole, ProjectMember, ProjectObject, ProjectObjectsPage, ProjectSkippedFile, ProjectPreviewFile, ProjectAddPreview, AddProjectObjectInput, AddProjectObjectResult, RefreshProjectObjectResult, ComplianceScopeKind, ComplianceStatus, ComplianceSession, ComplianceAccess, RequestComplianceSessionInput, ListComplianceSessionsOptions, ComplianceSessionsPage, ListComplianceAccessesOptions, ComplianceAccessesPage, } from "./client.js";
|
|
30
|
+
export type { RegisterResult, RegisterWorkflowInput, RuntimeSourceInput, TemplateSourceRef, InvokeWorkflowOptions, InvokeAndWaitOptions, InvokeResult, FundingChoice, InlineWorkflowPayload, InvokeInlineOptions, InvokeInlineAndWaitOptions, ListSnapshotsOptions, TemplateRow, ListTemplatesOptions, CreateFactoryInput, UpdateFactoryInput, SecretOptions, SetSecretResult, SecretListEntry, CreateApiKeyInput, StreamRunLogsOptions, TeamMember, Mention, CreateMentionsInput, EventSubjectType, EventRow, ReportEventInput, ListEventsOptions, ListEventsResult, RunLogLine, ListRunLogsOptions, RunListEntry, ListRunsOptions, RunDetail, FundingLane, RunFundingStamp, RunFundingUsageRow, RunFundingResponse, RegisteredRuntime, RunState, RunStatus, FactoryRow, SnapshotListEntry, SnapshotListResponse, ApiKey, ApiKeyCreated, UsageRollupRow, UsageResponse, CancelRunResponse, RequestAgentPauseOptions, RequestAgentPauseResponse, SendAgentMessageOptions, SendAgentMessageResponse, AnswerSteerOptions, ResumePauseOptions, ResumePauseResponse, ResumePauseSuccess, ResumePausePending, ResumePauseActor, ConversationMessagePart, ConversationRow, ConversationMessageRow, ConversationsPage, ConversationDetail, ConversationThread, ConversationPageContext, SendConversationMessageInput, SendConversationMessageResult, ConversationTurnState, ConversationPresenceSnapshot, StreamConversationOptions, AgentListRow, CreateCloudSessionInput, CloudSessionCreated, SessionPreview, PreviewOpened, OpenPreviewInput, SessionForked, SessionFileChange, SessionChangeSet, SessionMergeReportDetail, SessionMergeReport, SessionDiscardReport, DriveMountSession, CreateDriveMountSessionInput, ChannelSessionStatus, ChannelSessionRow, ChannelSessionsResponse, SessionChannelMessagePosted, FactoryFileSearchRow, FactoryFolderSearchRow, SearchFactoryFilesOptions, FactoryFileSearchResult, PublicFileLinkState, ConversationMemberRole, ConversationMember, DocumentCapability, TemplateCapability, ScopeGrant, ArtifactScope, RunContext, SetScopeGrantsInput, SetTemplateScopeInput, TemplateDetail, Project, ProjectsPage, ProjectRole, ProjectMember, ProjectObject, ProjectObjectsPage, ProjectSkippedFile, ProjectPreviewFile, ProjectAddPreview, AddProjectObjectInput, AddProjectObjectResult, RefreshProjectObjectResult, ComplianceScopeKind, ComplianceStatus, ComplianceSession, ComplianceAccess, RequestComplianceSessionInput, ListComplianceSessionsOptions, ComplianceSessionsPage, ListComplianceAccessesOptions, ComplianceAccessesPage, } from "./client.js";
|
|
31
31
|
export { parseSseStream } from "./sse.js";
|
|
32
32
|
export { renderDirectiveMarker, parseDirectiveMarkers, DIRECTIVE_MARKER_PREFIX, DIRECTIVE_MARKER_SUFFIX, MAX_DIRECTIVES_PER_OUTPUT, REVISION_SELECTOR_RE, ASK_DIRECTIVE_PROMPT_MAX, ASK_DIRECTIVE_MAX_OPTIONS, ASK_DIRECTIVE_OPTION_ID_MAX, ASK_DIRECTIVE_OPTION_LABEL_MAX, ASK_APPROVER_MIN, ASK_APPROVER_MAX, } from "./directives.js";
|
|
33
33
|
export type { CloudDirective } from "./directives.js";
|
|
@@ -38,7 +38,7 @@ export type { AcpAvailableCommand, AcpClientPeerDeps, AcpSessionCaps } from "./r
|
|
|
38
38
|
export { AgentComposeError } from "./errors.js";
|
|
39
39
|
export type { AuthzErrorCode } from "./errors.js";
|
|
40
40
|
export { formatError } from "./utils/errors.js";
|
|
41
|
-
export { bundleWorkflow, BUNDLER_VERSION, WorkflowSourceValidationError, assertDefaultExportIsDefineWorkflow, } from "./utils/bundler.js";
|
|
41
|
+
export { bundleWorkflow, BUNDLER_VERSION, WorkflowSourceValidationError, assertDefaultExportIsDefineWorkflow, SDK_PACKAGE, SDK_SPECIFIER_ALIASES, resolveSdkAlias, explainBundleFailure, } from "./utils/bundler.js";
|
|
42
42
|
export type { BundledWorkflow, WorkflowManifest } from "./utils/bundler.js";
|
|
43
43
|
export { AgentStatusSchema } from "./utils/schemas.js";
|
|
44
44
|
export { createClaudeRuntime, ClaudeRunner } from "./runtimes/claude.js";
|
|
@@ -48,7 +48,7 @@ export { createVercelRuntime, VercelRunner, listVercelRuntimeModels } from "./ru
|
|
|
48
48
|
export type { VercelRuntimeConfig, VercelRuntimeModel } from "./runtimes/vercel.js";
|
|
49
49
|
export type { GatewayModelId } from "ai";
|
|
50
50
|
export { createCodexRuntime, codexSpec } from "./runtimes/codex.js";
|
|
51
|
-
export type { CodexRuntimeConfig } from "./runtimes/codex.js";
|
|
51
|
+
export type { CodexRuntimeConfig, CodexReasoningEffort } from "./runtimes/codex.js";
|
|
52
52
|
export { default as codexRuntime } from "./runtimes/codex.js";
|
|
53
53
|
export type { CliReasoningEffort } from "./runtimes/_cli-agent.js";
|
|
54
54
|
export { createAmpRuntime } from "./runtimes/amp.js";
|
|
@@ -63,7 +63,7 @@ export { default as cursorRuntime } from "./runtimes/cursor.js";
|
|
|
63
63
|
export { createDroidRuntime, droidSpec } from "./runtimes/droid.js";
|
|
64
64
|
export type { DroidRuntimeConfig } from "./runtimes/droid.js";
|
|
65
65
|
export { default as droidRuntime } from "./runtimes/droid.js";
|
|
66
|
-
export { createClaudeCodeRuntime, claudeCodeSpec, CLAUDE_CODE_ACP_ADAPTER,
|
|
66
|
+
export { createClaudeCodeRuntime, claudeCodeSpec, CLAUDE_CODE_ACP_ADAPTER, CLAUDE_CODE_EFFORT_LEVELS } from "./runtimes/claude-code.js";
|
|
67
67
|
export type { ClaudeCodeRuntimeConfig } from "./runtimes/claude-code.js";
|
|
68
68
|
export { default as claudeCodeRuntime } from "./runtimes/claude-code.js";
|
|
69
69
|
export { bashTool, codingTools, editTool, readTool, writeTool } from "./tools/index.js";
|
|
@@ -94,5 +94,5 @@ export { AGENT_COMPOSE_MANUAL, buildAgentContextDoc, writeAgentContext, buildAdd
|
|
|
94
94
|
export type { AgentConnectorInfo, AddedSessionBriefParams } from "./agent/agent-context.js";
|
|
95
95
|
export { AgentMessageSchema, parseAgentResponse } from "./agent/protocol.js";
|
|
96
96
|
export { importSourceModule, TMP_DIR, LATEST_VERSION } from "./utils/source-loader.js";
|
|
97
|
-
export { DISPLAY_MARKER_KEY, DISPLAY_MARKER_VERSION, PLAN_MAX_ENTRIES, PLAN_ENTRY_MAX_CHARS, TABLE_MAX_COLUMNS, TABLE_MAX_ROWS, TABLE_CELL_MAX_CHARS, CHART_MAX_SERIES, CHART_MAX_POINTS_PER_SERIES, CHART_LABEL_MAX_CHARS, ASK_PROMPT_MAX_CHARS, ASK_MAX_OPTIONS, ASK_OPTION_ID_MAX_CHARS, ASK_OPTION_LABEL_MAX_CHARS, serializeDisplayMarker, parseDisplayMarker, findDisplayMarker, clampPlanEntries, clampTableData, clampChartSeries, clampChartAxisLabel, clampAskOptions, detectAgentcInvocation, shellWords, createDisplayPromoter, } from "./display.js";
|
|
97
|
+
export { DISPLAY_MARKER_KEY, DISPLAY_MARKER_VERSION, PLAN_MAX_ENTRIES, PLAN_ENTRY_MAX_CHARS, TABLE_MAX_COLUMNS, TABLE_MAX_ROWS, TABLE_CELL_MAX_CHARS, CHART_MAX_SERIES, CHART_MAX_POINTS_PER_SERIES, CHART_LABEL_MAX_CHARS, ASK_PROMPT_MAX_CHARS, ASK_MAX_OPTIONS, ASK_OPTION_ID_MAX_CHARS, ASK_OPTION_LABEL_MAX_CHARS, DRIVE_PATH_MAX_CHARS, isPlausibleDrivePath, serializeDisplayMarker, parseDisplayMarker, findDisplayMarker, clampPlanEntries, clampTableData, clampChartSeries, clampChartAxisLabel, clampAskOptions, detectAgentcInvocation, shellWords, createDisplayPromoter, } from "./display.js";
|
|
98
98
|
export type { DisplayMarker, DisplayPlanEntry, DisplayPlanStatus, DisplayTableCell, DisplayTableColumn, DisplayTableData, DisplayChartKind, DisplayChartPoint, DisplayChartSeries, DisplayAskOption, AgentcInvocation, PromotedPart, DisplayPromoter, DisplayPromoterContext, } from "./display.js";
|