@agent-compose/sdk 0.8.4 → 0.8.6
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/README.md +213 -189
- package/dist/agent/agent-context.d.ts +9 -1
- package/dist/agent/agent-loop.d.ts +14 -6
- package/dist/agent/perf-sampler.d.ts +27 -2
- package/dist/agent/run-agent.d.ts +1 -1
- package/dist/client.d.ts +250 -59
- package/dist/directives.d.ts +14 -0
- package/dist/display.d.ts +7 -0
- package/dist/errors.d.ts +1 -1
- package/dist/generated/agentc-commands.d.ts +34 -0
- package/dist/index.d.ts +13 -11
- package/dist/index.js +1692 -194
- package/dist/request-context/request-context.d.ts +1 -1
- package/dist/runtimes/_cli-agent.d.ts +278 -58
- package/dist/runtimes/claude-code.d.ts +90 -1
- package/dist/runtimes/claude.d.ts +1 -1
- package/dist/runtimes/codex.d.ts +94 -6
- package/dist/runtimes/codex.mid-turn-hook.test.d.ts +10 -0
- package/dist/runtimes/openai-desktop.d.ts +50 -0
- package/dist/runtimes/openai-desktop.js +1689 -211
- package/dist/runtimes/openai-desktop.test.d.ts +20 -0
- package/dist/runtimes/opencode.d.ts +48 -11
- package/dist/runtimes/opencode.test.d.ts +14 -0
- package/dist/runtimes/tool-pulse.test.d.ts +17 -0
- package/dist/sandbox/baked-clis.d.ts +75 -0
- package/dist/sandbox/devbox.d.ts +5 -5
- package/dist/sandbox/exec-stream.d.ts +1 -2
- package/dist/sandbox/network-policy.d.ts +23 -5
- package/dist/sandbox/registry.d.ts +12 -0
- package/dist/sandbox/sizes.d.ts +11 -5
- package/dist/sandbox.d.ts +5 -3
- package/dist/step-invocation/protocol.d.ts +3 -4
- package/dist/step-invocation/server.d.ts +2 -2
- package/dist/step-invocation/types.d.ts +2 -2
- package/dist/types/api-conversations.d.ts +513 -27
- package/dist/types/api-factory.d.ts +183 -3
- package/dist/types/api-projects.d.ts +480 -0
- package/dist/types/api-runs.d.ts +8 -0
- package/dist/types/api-scopes.d.ts +32 -3
- package/dist/types/conversation-stream.d.ts +27 -1
- package/dist/types/execution-context.d.ts +1 -1
- package/dist/types/protocol.d.ts +182 -2
- package/dist/types/runtime.d.ts +80 -2
- package/dist/types/workflow-metadata.d.ts +2 -4
- package/dist/types/workflow-plan.d.ts +1 -3
- package/dist/utils/bundler.d.ts +23 -0
- package/dist/workflow-steps/observability.d.ts +2 -3
- package/dist/workflow-steps/runner.d.ts +5 -8
- package/dist/workflow-steps/types.d.ts +8 -10
- package/dist/workflow-steps/workflow.d.ts +2 -1
- package/dist/workflows/engine.d.ts +3 -5
- package/dist/workflows/invoke-child.d.ts +2 -2
- package/package.json +2 -2
- package/src/agent/agent-context.ts +193 -116
- package/src/agent/agent-loop.ts +16 -9
- package/src/agent/desktop-open.ts +13 -1
- package/src/agent/perf-sampler.ts +54 -3
- package/src/agent/run-agent.ts +1 -1
- package/src/client.ts +418 -80
- package/src/directives.ts +21 -1
- package/src/display.ts +12 -0
- package/src/errors.ts +1 -0
- package/src/generated/agentc-commands.ts +571 -0
- package/src/index.ts +65 -18
- package/src/pause/pause-core.ts +2 -1
- package/src/request-context/request-context.ts +1 -1
- package/src/runtimes/_cli-agent.ts +607 -132
- package/src/runtimes/claude-code.ts +427 -20
- package/src/runtimes/claude.ts +1 -1
- package/src/runtimes/codex.ts +188 -19
- package/src/runtimes/openai-desktop.ts +82 -19
- package/src/runtimes/opencode.ts +195 -26
- package/src/sandbox/baked-clis.ts +86 -0
- package/src/sandbox/devbox.ts +5 -5
- package/src/sandbox/exec-stream.ts +1 -2
- package/src/sandbox/network-policy.ts +51 -7
- package/src/sandbox/providers/e2b.ts +63 -19
- package/src/sandbox/providers/vercel.ts +6 -6
- package/src/sandbox/registry.ts +19 -1
- package/src/sandbox/sizes.ts +11 -5
- package/src/sandbox.ts +9 -2
- package/src/step-invocation/invoker.ts +2 -6
- package/src/step-invocation/protocol.ts +3 -4
- package/src/step-invocation/server.ts +2 -2
- package/src/types/api-conversations.ts +424 -29
- package/src/types/api-factory.ts +189 -3
- package/src/types/api-projects.ts +443 -0
- package/src/types/api-runs.ts +5 -0
- package/src/types/api-scopes.ts +32 -3
- package/src/types/conversation-stream.ts +29 -1
- package/src/types/execution-context.ts +1 -1
- package/src/types/protocol.ts +180 -2
- package/src/types/runtime.ts +71 -2
- package/src/types/sandbox-environment.ts +1 -2
- package/src/types/workflow-metadata.ts +2 -4
- package/src/types/workflow-plan.ts +1 -3
- package/src/utils/bundler.ts +88 -19
- package/src/workflow-steps/observability.ts +2 -3
- package/src/workflow-steps/runner.ts +5 -8
- package/src/workflow-steps/types.ts +8 -10
- package/src/workflow-steps/workflow.ts +2 -1
- package/src/workflows/engine.ts +3 -5
- package/src/workflows/invoke-child.ts +2 -2
- package/dist/pause/__tests__/errors.test.d.ts +0 -1
- package/dist/pause/__tests__/wrappers.test.d.ts +0 -1
- package/dist/step-invocation/__tests__/protocol.test.d.ts +0 -1
package/src/index.ts
CHANGED
|
@@ -100,8 +100,14 @@ export type {
|
|
|
100
100
|
AgentMessageDone,
|
|
101
101
|
AgentMessageError,
|
|
102
102
|
AgentMessageUsage,
|
|
103
|
+
AgentMessageModelUsage,
|
|
104
|
+
AgentMessagePlanLimits,
|
|
103
105
|
AgentMessageTaskNotification,
|
|
106
|
+
AgentMessageTaskProgress,
|
|
107
|
+
WorkflowProgressEntry,
|
|
104
108
|
AgentMessageHarnessNotice,
|
|
109
|
+
AgentMessageCompaction,
|
|
110
|
+
AgentMessageSubagentUserMessage,
|
|
105
111
|
AgentStatus,
|
|
106
112
|
} from "./types/protocol.js";
|
|
107
113
|
|
|
@@ -121,7 +127,7 @@ export type {
|
|
|
121
127
|
InlineWorkflowPayload, InvokeInlineOptions, InvokeInlineAndWaitOptions,
|
|
122
128
|
ListSnapshotsOptions, TemplateRow, ListTemplatesOptions,
|
|
123
129
|
CreateFactoryInput, UpdateFactoryInput,
|
|
124
|
-
SecretOptions, SetSecretResult, SecretListEntry, SessionSecretEntry, SessionSecretInput, SessionSecretRequestCreated, SessionSecretRequestStatus,
|
|
130
|
+
SecretOptions, SetSecretResult, SecretListEntry, SessionSecretEntry, SessionSecretInput, SessionSecretRequestCreated, SessionSecretRequestStatus, SessionSecretRequestSummary, VaultRequestKind, VaultKeyShape, VaultCatalogEntry,
|
|
125
131
|
CreateApiKeyInput, StreamRunLogsOptions,
|
|
126
132
|
TeamMember, Mention, CreateMentionsInput,
|
|
127
133
|
EventSubjectType, EventRow, ReportEventInput, ListEventsOptions, ListEventsResult,
|
|
@@ -137,16 +143,24 @@ export type {
|
|
|
137
143
|
SendAgentMessageOptions, SendAgentMessageResponse,
|
|
138
144
|
AnswerSteerOptions,
|
|
139
145
|
ResumePauseOptions, ResumePauseResponse, ResumePauseSuccess, ResumePausePending, ResumePauseActor,
|
|
140
|
-
ConversationMessagePart, ConversationRow, ConversationMessageRow,
|
|
146
|
+
ConversationMessagePart, ConversationRow, ConversationProject, ConversationMessageRow,
|
|
147
|
+
CreateChatInput, ChannelIvyState, IvyConnection, HiddenIvyConnection, IvyConnectionsView, IvyConnectionScope, ListingPage,
|
|
148
|
+
DriveShareItem, DriveShare, HiddenDriveShare, DriveSharesView,
|
|
149
|
+
WorkspaceConnection, WorkspaceConnectionAudienceEntry, WorkspaceConnectionsScopeView,
|
|
141
150
|
ConversationsPage, ConversationDetail, ConversationThread,
|
|
151
|
+
ConversationUnreadSummary, ConversationUnreadThreads, ConversationReadInput, ConversationReadResult,
|
|
142
152
|
ConversationPageContext, SendConversationMessageInput, SendConversationMessageResult,
|
|
143
153
|
UnnotifiedMention,
|
|
144
154
|
ConversationTurnState, ConversationPresenceSnapshot, StreamConversationOptions, AgentListRow,
|
|
145
155
|
CreateCloudSessionInput, CloudSessionCreated,
|
|
146
156
|
// Cloud-session developer surface (ADR-0052)
|
|
147
157
|
SessionPreview, PreviewOpened, OpenPreviewInput, SessionForked, BackgroundWorkHeld,
|
|
158
|
+
BackgroundWorkChildDecl, BackgroundWorkStatus,
|
|
159
|
+
// Session waits (owner ruling 2026-09-23: the platform senses, the session is woken)
|
|
160
|
+
SessionWaitKind, SessionWaitState, CreateSessionWaitInput, SessionWait, SessionWaitCheck, SessionWaitCheckResult, SessionWaitCheckReview, SessionWaitCreated, SessionWaitList,
|
|
148
161
|
// Session branch proposals (ADR-0053)
|
|
149
162
|
SessionFileChange, SessionChangeSet, SessionChangeStats, SessionDiffReviewBound, ReviewSuggestion,
|
|
163
|
+
SessionFileHold, SessionFilePlane,
|
|
150
164
|
ReviewSuggestionInput, ReviewNotesPublished, ReviewGitCredential, SessionReviewDocument,
|
|
151
165
|
ReviewSuggestionDecision, ReviewSuggestionDecisions,
|
|
152
166
|
SessionMergeReportDetail, SessionMergeReport, SessionMergeGated, SessionDiscardReport,
|
|
@@ -154,23 +168,29 @@ export type {
|
|
|
154
168
|
// User drive mounts (`agentc files mount` on a human's own machine)
|
|
155
169
|
DriveMountSession, CreateDriveMountSessionInput,
|
|
156
170
|
// Channel-attached sessions (ADR-0057)
|
|
157
|
-
ChannelSessionStatus, ChannelSessionRow,
|
|
171
|
+
ChannelSessionStatus, ChannelSessionRow, ChannelWorkerFacts, ChannelSessionsResponse,
|
|
158
172
|
// Session→session messaging + branch claims
|
|
159
173
|
SessionDirectMessageSent, BranchClaimInfo, BranchClaimGranted, BranchClaimsReleased, BranchClaimState,
|
|
160
174
|
// Sandbox perf history (session_perf_rollups)
|
|
161
175
|
SessionPerfBucket, SessionPerfHistoryPage, FactoryPerfSummary,
|
|
162
176
|
FactoryFileSearchRow, FactoryFolderSearchRow, SearchFactoryFilesOptions, FactoryFileSearchResult, PublicFileLinkState,
|
|
163
177
|
// Drive file listing (live + browse-at-head)
|
|
164
|
-
FactoryFileListRow, ListFactoryFilesOptions, FactoryFileListPage,
|
|
178
|
+
FactoryFileListRow, ListFactoryFilesOptions, FactoryFileListPage, FactoryFileConflict, FactoryFileConflictList, ProjectSecretMeta, ProjectSecretList,
|
|
165
179
|
// Membership-scoped authorization (ADR-0045)
|
|
166
180
|
ConversationMemberRole, ConversationMember,
|
|
167
181
|
DocumentCapability, TemplateCapability, ScopeGrant, ArtifactScope,
|
|
168
182
|
RunContext, SetScopeGrantsInput, SetTemplateScopeInput, TemplateDetail,
|
|
169
183
|
// Projects (ADR-0045 projects extension)
|
|
170
|
-
Project, ProjectsPage, ProjectRole, ProjectMember,
|
|
171
|
-
ProjectObject, ProjectObjectsPage, ProjectSkippedFile, ProjectPreviewFile,
|
|
184
|
+
Project, ProjectUpdate, ProjectsPage, ProjectRole, ProjectMember,
|
|
185
|
+
ProjectObject, ProjectObjectsPage, ProjectObjectCounts, ProjectSkippedFile, ProjectPreviewFile,
|
|
172
186
|
ProjectAddPreview, AddProjectObjectInput, AddProjectObjectResult,
|
|
173
187
|
RefreshProjectObjectResult,
|
|
188
|
+
ProjectStatus, ProjectStatusThread, ProjectStatusTask, ProjectStatusPerson, ProjectStatusWorker, ProjectStatusActivity,
|
|
189
|
+
ProjectStatusActivityKind, ProjectStatusWaitingOn, ProjectStatusWaitingCount, ProjectStatusCounts,
|
|
190
|
+
ThreadStatus, ThreadStatusWorker, ThreadStatusWorkerState, ThreadStatusWorkerEffort, ThreadStatusTodo, ThreadStatusDirector, ThreadStatusOutput, ThreadStatusEvent,
|
|
191
|
+
ThreadStatusWaitingOn, ThreadStatusAssignee, ThreadStatusTodoActivity, ChatTodoPatch, ChatTodoComment,
|
|
192
|
+
ChatWork, ChatWorkThread,
|
|
193
|
+
MeStatus, MeStatusCounts,
|
|
174
194
|
// Break-glass compliance sessions (ADR-0051)
|
|
175
195
|
ComplianceScopeKind, ComplianceStatus, ComplianceSession, ComplianceAccess,
|
|
176
196
|
RequestComplianceSessionInput, ListComplianceSessionsOptions, ComplianceSessionsPage,
|
|
@@ -188,7 +208,7 @@ export {
|
|
|
188
208
|
REVISION_SELECTOR_RE,
|
|
189
209
|
ASK_DIRECTIVE_PROMPT_MAX, ASK_DIRECTIVE_MAX_OPTIONS,
|
|
190
210
|
ASK_DIRECTIVE_OPTION_ID_MAX, ASK_DIRECTIVE_OPTION_LABEL_MAX,
|
|
191
|
-
ASK_APPROVER_MIN, ASK_APPROVER_MAX,
|
|
211
|
+
ASK_APPROVER_MIN, ASK_APPROVER_MAX, TAKEOVER_NOTE_MAX_CHARS,
|
|
192
212
|
} from "./directives.js";
|
|
193
213
|
export type { CloudDirective } from "./directives.js";
|
|
194
214
|
|
|
@@ -253,7 +273,9 @@ export type { GatewayModelId } from "ai";
|
|
|
253
273
|
// CLI-agent runtimes — drive an external agentic CLI (codex / amp) inside the
|
|
254
274
|
// sandbox and stream-parse its JSONL. No heavy npm deps (the CLI lives in the
|
|
255
275
|
// sandbox image), so these are root-exported like claudeRuntime.
|
|
256
|
-
export {
|
|
276
|
+
export {
|
|
277
|
+
createCodexRuntime, codexSpec, CODEX_PLATFORM_HOOKS, RTK_CODEX_HOOK_COMMAND, CODEX_MID_TURN_HOOK_COMMAND,
|
|
278
|
+
} from "./runtimes/codex.js";
|
|
257
279
|
export type { CodexRuntimeConfig, CodexReasoningEffort } from "./runtimes/codex.js";
|
|
258
280
|
export { default as codexRuntime } from "./runtimes/codex.js";
|
|
259
281
|
// Reasoning-effort level a CLI runtime turn may carry (claude-code / codex).
|
|
@@ -264,27 +286,34 @@ export type { CliReasoningEffort } from "./runtimes/_cli-agent.js";
|
|
|
264
286
|
// of truth for the guest file contract. Server-side consumers only (these
|
|
265
287
|
// modules read process.env at load; never import them into a workflow VM).
|
|
266
288
|
export {
|
|
267
|
-
shellQuote, uniquePromptPath,
|
|
289
|
+
shellQuote, uniquePromptPath, recoverLaunchPid,
|
|
268
290
|
turnLivenessProbeCommand, parseTurnProbeOutput, livenessVerdictFromReading,
|
|
269
291
|
runnerBusySentinelFragment, exitEventPushCommand,
|
|
270
292
|
injectAppendAndAckCommand, INJECT_ACK_EXEC_TIMEOUT_MS, wrapMidTurnUserMessage,
|
|
271
|
-
|
|
293
|
+
stdinStreamInputOf, toolHookInboxFragment, MID_TURN_INBOX_ENV, MID_TURN_DELIVERED_ENV,
|
|
294
|
+
streamInputFeederFragment, sessionEnvSourceFragment, sessionEnvFingerprintCommand, credEnvSourceFragment,
|
|
272
295
|
residentFeederFragment, residentIdleCheckFragment, residentIdleWatchdogFragment,
|
|
273
|
-
residentResultCountCommand,
|
|
274
|
-
|
|
296
|
+
residentResultCountCommand, residentLastResultCommand, cliResultCountCommand,
|
|
297
|
+
deferredExitEventPushCommand,
|
|
298
|
+
RESIDENT_IDLE_TTL_S, RESIDENT_WATCHDOG_POLL_S, CLI_RESULT_LINE_AWK,
|
|
275
299
|
SESSION_ENV_FILE_RELPATH,
|
|
276
300
|
LAUNCH_EXEC_TIMEOUT_MS, TURN_PROBE_TIMEOUT_MS,
|
|
277
301
|
INSTALL_PROBE_TIMEOUT_MS, CLI_INSTALL_TIMEOUT_MS,
|
|
278
302
|
RUNNER_HEARTBEAT_INTERVAL_SECONDS, RUNNER_HEARTBEAT_STALE_MS,
|
|
303
|
+
RUNNER_BUSY_TASK_FRESH_MINUTES,
|
|
304
|
+
} from "./runtimes/_cli-agent.js";
|
|
305
|
+
export type {
|
|
306
|
+
TurnProbeReading, CliAgentSpec, MidTurnEnvelopeOptions,
|
|
307
|
+
MidTurnInputSpec, StdinStreamInputSpec, ToolHookInputSpec,
|
|
279
308
|
} from "./runtimes/_cli-agent.js";
|
|
280
|
-
export type { TurnProbeReading, CliAgentSpec } from "./runtimes/_cli-agent.js";
|
|
281
309
|
// Guest perf sampling (the `.perf` token contract riding the durable trio).
|
|
282
310
|
export {
|
|
283
311
|
perfSamplerFunctionFragment, standalonePerfProbeCommand,
|
|
284
|
-
parsePerfToken, parsePerfProbeOutput,
|
|
312
|
+
parsePerfToken, parsePerfProbeOutput, parseTopProcesses,
|
|
285
313
|
PERF_SAMPLE_EVERY_BEATS, PERF_PROBE_WINDOW_SECONDS, PERF_TOKEN_MAX_CHARS,
|
|
314
|
+
PERF_TOP_PROCESSES, PERF_TOP_NAME_MAX,
|
|
286
315
|
} from "./agent/perf-sampler.js";
|
|
287
|
-
export type { GuestPerfSample } from "./agent/perf-sampler.js";
|
|
316
|
+
export type { GuestPerfSample, GuestTopProcess } from "./agent/perf-sampler.js";
|
|
288
317
|
export { createAmpRuntime } from "./runtimes/amp.js";
|
|
289
318
|
export type { AmpRuntimeConfig } from "./runtimes/amp.js";
|
|
290
319
|
export { default as ampRuntime } from "./runtimes/amp.js";
|
|
@@ -304,7 +333,10 @@ export { default as droidRuntime } from "./runtimes/droid.js";
|
|
|
304
333
|
// adapter) — the cloud-hostable counterpart of `claudeRuntime` (claude.ts,
|
|
305
334
|
// which drives the Agent SDK in the calling process and so can never run a
|
|
306
335
|
// server-driven cloud-session turn).
|
|
307
|
-
export {
|
|
336
|
+
export {
|
|
337
|
+
createClaudeCodeRuntime, claudeCodeSpec, CLAUDE_CODE_ACP_ADAPTER, CLAUDE_CODE_EFFORT_LEVELS,
|
|
338
|
+
CLAUDE_CODE_PLATFORM_SETTINGS, RTK_BASH_HOOK_COMMAND,
|
|
339
|
+
} from "./runtimes/claude-code.js";
|
|
308
340
|
export type { ClaudeCodeRuntimeConfig } from "./runtimes/claude-code.js";
|
|
309
341
|
export { default as claudeCodeRuntime } from "./runtimes/claude-code.js";
|
|
310
342
|
|
|
@@ -318,6 +350,7 @@ export type { RunEvent } from "./types/events.js";
|
|
|
318
350
|
// Sandbox providers
|
|
319
351
|
export { createSandbox, reconnectSandbox, killAllSandboxes, killSandboxById,
|
|
320
352
|
getSandboxQuotas, listOwnedSandboxes, deleteSandboxSnapshot, snapshotResolves,
|
|
353
|
+
isSandboxSourceNotFoundError, openEgressExcept,
|
|
321
354
|
makeSandboxProvider, makeDesktopSandboxProvider,
|
|
322
355
|
parseSseExecStream, AGENT_COMPOSE_TAG,
|
|
323
356
|
SANDBOX_SIZES, SANDBOX_MACHINES, SANDBOX_VCPUS, DEFAULT_SANDBOX_SIZE, SESSION_DEFAULT_SANDBOX_SIZE,
|
|
@@ -328,7 +361,14 @@ export { createSandbox, reconnectSandbox, killAllSandboxes, killSandboxById,
|
|
|
328
361
|
isPlatformE2bTemplateAlias,
|
|
329
362
|
// ADR-0038 "Computer" — the per-member persistent desktop machine template.
|
|
330
363
|
E2B_DEVBOX_TEMPLATE, E2B_DEVBOX_SPEC, E2B_DEVBOX_RECIPE_VERSION,
|
|
331
|
-
e2bDevboxTemplateRef
|
|
364
|
+
e2bDevboxTemplateRef,
|
|
365
|
+
// Harness CLI versions the E2B session image bakes (one source for the
|
|
366
|
+
// image recipe and the runtime specs' on-demand installs), the rtk the
|
|
367
|
+
// sessions' shell hooks call, and the switches that keep each CLI from
|
|
368
|
+
// updating itself inside a machine.
|
|
369
|
+
CLAUDE_CODE_VERSION, CODEX_CLI_VERSION, OPENCODE_CLI_VERSION, RTK_VERSION,
|
|
370
|
+
CLAUDE_CODE_NO_SELF_UPDATE_ENV, CODEX_NO_SELF_UPDATE_CONFIG_LINE, OPENCODE_NO_SELF_UPDATE_CONFIG,
|
|
371
|
+
} from "./sandbox.js";
|
|
332
372
|
export { SandboxUnavailableError, SANDBOX_UNAVAILABLE_PREFIX } from "./sandbox-errors.js";
|
|
333
373
|
export type {
|
|
334
374
|
SandboxCreateOpts, SandboxNetworkPolicy, SandboxNetworkHeaderTransform,
|
|
@@ -427,6 +467,13 @@ export { agent } from "./agent/run-agent.js";
|
|
|
427
467
|
export type { AgentOpts } from "./agent/run-agent.js";
|
|
428
468
|
export { AGENT_COMPOSE_MANUAL, buildAgentContextDoc, writeAgentContext, buildAddedSessionBrief } from "./agent/agent-context.js";
|
|
429
469
|
export type { AgentConnectorInfo, AddedSessionBriefParams } from "./agent/agent-context.js";
|
|
470
|
+
// The complete `agentc` verb list, GENERATED from the CLI's commander
|
|
471
|
+
// registry (cli/scripts/generate-command-list.ts) and checked in. Both
|
|
472
|
+
// agent-facing contexts ship it verbatim — the in-sandbox manual above and
|
|
473
|
+
// the server's cloud-session prompt — so a verb can never drift out of what
|
|
474
|
+
// agents believe the CLI can do. Never hand-edit the generated module.
|
|
475
|
+
export { AGENTC_COMMANDS, AGENTC_COMMAND_LIST, AGENTC_COMMAND_LIST_MD } from "./generated/agentc-commands.js";
|
|
476
|
+
export type { AgentcCommand } from "./generated/agentc-commands.js";
|
|
430
477
|
export {
|
|
431
478
|
AC_OPEN_PATH, AC_OPEN_STATE_DIR, AC_OPEN_SHIM_PATHS, AC_OPEN_SCRIPT, AC_OPEN_SHIM,
|
|
432
479
|
installDesktopOpenCmd,
|
|
@@ -464,7 +511,7 @@ export {
|
|
|
464
511
|
DRIVE_PATH_MAX_CHARS, isPlausibleDrivePath,
|
|
465
512
|
serializeDisplayMarker, parseDisplayMarker, findDisplayMarker, clampPlanEntries,
|
|
466
513
|
clampTableData, clampChartSeries, clampChartAxisLabel, clampAskOptions,
|
|
467
|
-
detectAgentcInvocation, shellWords, createDisplayPromoter,
|
|
514
|
+
detectAgentcInvocation, shellWords, createDisplayPromoter, DISPLAY_PROMOTED_TOOL_NAMES,
|
|
468
515
|
} from "./display.js";
|
|
469
516
|
export type {
|
|
470
517
|
DisplayMarker, DisplayPlanEntry, DisplayPlanStatus,
|
package/src/pause/pause-core.ts
CHANGED
|
@@ -169,7 +169,8 @@ function scopeOf(coord: PauseCoordinate): string {
|
|
|
169
169
|
|
|
170
170
|
// Per-scope ordinal. Module-level so it resets on a fresh subprocess (the
|
|
171
171
|
// resume boundary) — which is exactly what makes the k-th pause in a scope
|
|
172
|
-
// recompute the same id across re-entry. Mirrors
|
|
172
|
+
// recompute the same id across re-entry. Mirrors the per-step agent-call
|
|
173
|
+
// counter (`nextAgentCallInActiveStep`).
|
|
173
174
|
const pauseOrdinalByScope = new Map<string, number>();
|
|
174
175
|
|
|
175
176
|
function nextPauseOrdinal(scope: string): number {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* RequestContext — one typed bag carrying tenant identity + freeform
|
|
3
3
|
* per-run state across the boundary between server, dispatch, runner,
|
|
4
|
-
* workflow body, agent loop, and
|
|
4
|
+
* workflow body, agent loop, and processors.
|
|
5
5
|
*
|
|
6
6
|
* Two halves:
|
|
7
7
|
*
|