@automatalabs/workflows 0.26.7 → 0.27.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/README.md +34 -0
- package/dist/index.d.ts +3 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -220,6 +220,17 @@ const manager = new WorkflowManager({ agent: createAcpRunner() });
|
|
|
220
220
|
|
|
221
221
|
const run = await manager.runSync(script, { repo: "agentprism" }, { tokenBudget: 200_000 });
|
|
222
222
|
|
|
223
|
+
const background = manager.startInBackground(script, { repo: "agentprism" }, { tokenBudget: 200_000 });
|
|
224
|
+
console.log(background.runId, manager.getSnapshot(background.runId));
|
|
225
|
+
// background.promise resolves only on completion and rejects on pause/failure/abort.
|
|
226
|
+
|
|
227
|
+
const status = manager.inspectRun(run.runId, {
|
|
228
|
+
lastN: 10,
|
|
229
|
+
labelGlob: "review-*",
|
|
230
|
+
logLines: 20,
|
|
231
|
+
});
|
|
232
|
+
console.log(status?.status, status?.logTail, status?.calls);
|
|
233
|
+
|
|
223
234
|
if (run.status === "paused") {
|
|
224
235
|
// resume() reloads the original script, args, cwd, and journal under the SAME runId,
|
|
225
236
|
// then continues in the background. Observe manager events or getRun(runId) for status.
|
|
@@ -240,6 +251,29 @@ checkpoint unless the author opts in. `WorkflowManagerOptions` lets you set a de
|
|
|
240
251
|
`loadSavedWorkflow` resolver (enables nested `workflow('name')`), a custom `persistence`
|
|
241
252
|
implementation, and per-agent timeout/retry defaults.
|
|
242
253
|
|
|
254
|
+
`startInBackground(script, args?, exec?)` is detached only for the lifetime of this process and
|
|
255
|
+
returns `{ runId, promise: Promise<WorkflowRunResult> }`. The facade keeps an ACP event bridge for a
|
|
256
|
+
per-execution `exec.agent` until that promise settles, including rejection. Read live state with
|
|
257
|
+
`getRun()`, `getSnapshot()`, or `inspectRun()`, and subscribe to cumulative `tokenUsage` events while
|
|
258
|
+
work is running. Live attempts update `snapshot.tokenUsage` monotonically; replayed calls add zero.
|
|
259
|
+
|
|
260
|
+
When `exec.resumeJournal` is preloaded, the underlying manager sorts and copies the inherited prefix
|
|
261
|
+
into the child run before its fail-fast initial persistence. Cached replay does not re-emit journal
|
|
262
|
+
events, but every subsequent live suffix write persists the complete prefix. This makes each new
|
|
263
|
+
background run ID independently resumable across multiple pause/resume hops. Process loss can stop
|
|
264
|
+
in-flight work; the next manager recovers a stale durable `running` record to `paused`, and an
|
|
265
|
+
unjournaled in-flight call may run again.
|
|
266
|
+
|
|
267
|
+
`inspectRun(runId, options?)` is inherited through this facade and returns the shared
|
|
268
|
+
`WorkflowRunStatus` without importing `@automatalabs/workflow-engine`. It reads the freshest live
|
|
269
|
+
snapshot first and project-scoped persistence second, never executes the script or acquires a run
|
|
270
|
+
lease, and returns `undefined` for an unknown/unreadable ID. The facade also re-exports
|
|
271
|
+
`WorkflowRunInspectionOptions`, `WorkflowLogTail`, `WorkflowRunCallStatus`,
|
|
272
|
+
`WorkflowRunStatusTruncation`, `WorkflowRunStatus`, and `JournalCallMetadata`. Inspection defaults
|
|
273
|
+
to 20 calls and 20 log lines, supports case-sensitive whole-label `*`/`?`/backslash globs, redacts
|
|
274
|
+
and compacts previews, and enforces the shared 24,576-byte structured cap. Non-completed terminal
|
|
275
|
+
execution results carry an immediate redacted final-20 `logTail`; completed results omit it.
|
|
276
|
+
|
|
243
277
|
Manager events are Node `EventEmitter` notifications: `agentStart`, `agentEnd`, `agentHistory`,
|
|
244
278
|
`journal`, `tokenUsage`, `log`, `phase`, `complete`, `paused`, `resumed`, `stopped`, `error`,
|
|
245
279
|
and `agentEvent`. `journal` emits `{ runId, entry }` for each live journal append, even when
|
package/dist/index.d.ts
CHANGED
|
@@ -2,11 +2,11 @@ import { WorkflowManager as EngineWorkflowManager } from "@automatalabs/workflow
|
|
|
2
2
|
import type { AcpEventName, AcpRunnerEventMap } from "@automatalabs/acp-agents";
|
|
3
3
|
import type { ExecOptions, WorkflowDir, WorkflowManagerOptions } from "@automatalabs/workflow-engine";
|
|
4
4
|
import type { AgentRunner, WorkflowBackendConfig, WorkflowRunResult } from "@automatalabs/shared-types";
|
|
5
|
-
export { runWorkflow, parseWorkflowScript } from "@automatalabs/workflow-engine";
|
|
5
|
+
export { runWorkflow, parseWorkflowScript, redactText, truncateUtf8 } from "@automatalabs/workflow-engine";
|
|
6
6
|
export { openWorkflowDir, type WorkflowDir, type WorkflowDirEntry, type OpenWorkflowDirOptions, } from "@automatalabs/workflow-engine";
|
|
7
7
|
export { validateWorkflowScript, fabricateFromSchema, formatValidateReport, MOCK_TOKENS_PER_AGENT } from "./validate.js";
|
|
8
8
|
export type { ValidateWorkflowOptions, ValidateWorkflowReport, ValidatedAgentCall, ValidatedCheckpoint, } from "./validate.js";
|
|
9
|
-
export type { WorkflowRunOptions, AgentOptions, ExecOptions, WorkflowManagerOptions, CheckpointOptions, WorkflowRunResult, WorkflowSnapshot, WorkflowPathOptions, RunPersistence, RunPersistenceOptions, PersistedRunState, PersistedAgentState, } from "@automatalabs/workflow-engine";
|
|
9
|
+
export type { WorkflowRunOptions, AgentOptions, ExecOptions, WorkflowManagerOptions, CheckpointOptions, WorkflowRunResult, WorkflowSnapshot, WorkflowPathOptions, RunPersistence, RunPersistenceOptions, PersistedRunState, PersistedAgentState, WorkflowLogTail, WorkflowRunCallStatus, WorkflowRunInspectionOptions, WorkflowRunStatus, WorkflowRunStatusTruncation, } from "@automatalabs/workflow-engine";
|
|
10
10
|
export { AGENTPRISM_PERSISTENCE_ROOT_ENV, WorkflowError, WorkflowErrorCode, isWorkflowError, isProviderUsageLimit, isAuthRequired, } from "@automatalabs/workflow-engine";
|
|
11
11
|
export { createAcpRunner, AcpAgentRunner, InteractiveSession, selectBackend, ClaudeBackend, CodexBackend, CustomAcpBackend, AGENT_METHODS, CLIENT_METHODS, AGENT_METHOD_COVERAGE, CLIENT_METHOD_COVERAGE, ACP_AUTH_REQUIRED_ERROR_CODE, clientCapabilitiesFor, adaptPromptContent, resolveBackendRegistry, BACKENDS_ENV, toJsonSchema, toStrictJsonSchema, } from "@automatalabs/acp-agents";
|
|
12
12
|
export type { AcpPoolOptions, AcpRunnerOptions, AuthenticateOptions, AuthMethodsOptions, DisableProviderOptions, DeleteSessionOptions, InteractiveSessionOptions, InteractiveTurn, ListProvidersOptions, ListSessionsOptions, LogoutOptions, ReattachSessionOptions, SetProviderOptions, BackendRegistry, CustomBackendConfig, RegisteredBackend, ClientCapabilityOptions, ClientHandlers, FsHandlers, McpHandlers, TerminalHandlers, AcpSessionContext, NegotiatedCapabilities, PermissionResolver, AgentAuthCapabilities, AgentRequestMethod, AgentRequestParamsByMethod, AgentRequestResponsesByMethod, AuthCapabilities, AuthEnvVar, AuthenticateRequest, AuthenticateResponse, AuthMethod, AuthMethodAgent, AuthMethodEnvVar, AuthMethodId, AuthMethodTerminal, ConnectMcpRequest, ConnectMcpResponse, DeleteSessionRequest, DeleteSessionResponse, DisableProviderRequest, DisableProviderResponse, DisconnectMcpRequest, DisconnectMcpResponse, ListProvidersRequest, ListProvidersResponse, ListSessionsRequest, ListSessionsResponse, LlmProtocol, LoadSessionRequest, LoadSessionResponse, LogoutCapabilities, LogoutRequest, LogoutResponse, McpConnectionId, McpServerAcp, McpServerAcpId, MessageMcpNotification, MessageMcpRequest, MessageMcpResponse, ProviderCurrentConfig, ProviderId, ProviderInfo, ProvidersCapabilities, ResumeSessionRequest, ResumeSessionResponse, SetProviderRequest, SetProviderResponse, AgentNotificationMethod, AgentNotificationParamsByMethod, CompleteElicitationNotification, CreateElicitationRequest, CreateElicitationResponse, ElicitationAcceptAction, ElicitationCapabilities, ElicitationContentValue, ElicitationFormCapabilities, ElicitationFormMode, ElicitationId, ElicitationPropertySchema, ElicitationRequestScope, ElicitationResolver, ElicitationSchema, ElicitationSchemaType, ElicitationSessionScope, ElicitationUrlCapabilities, ElicitationUrlMode, SessionMode, SessionModeState, SessionInfo, SendRequestOptions, AgentMethodCoverage, ClientMethodCoverage, } from "@automatalabs/acp-agents";
|
|
@@ -15,7 +15,7 @@ export type { AuthErrorContext, CheckpointContext } from "@automatalabs/shared-t
|
|
|
15
15
|
export { TypedEventEmitter } from "@automatalabs/acp-agents";
|
|
16
16
|
export type { AcpRunnerEventMap, AcpEventName, AcpEventListener, AcpEventContext, AcpSessionUpdate, AcpUpdateKind, AcpElicitationCompleteEvent, AcpElicitationEvent, AcpElicitationPendingEvent, AcpPermissionPendingEvent, AcpPermissionEvent, AcpRawMessageEvent, AcpBackendErrorEvent, } from "@automatalabs/acp-agents";
|
|
17
17
|
export type { AgentRunner, McpAcpServerConfig, McpServerConfig, RunOptions, AgentResult, AgentUsage, } from "@automatalabs/shared-types";
|
|
18
|
-
export type { AgentSessionRecord, AgentSessionRef, JournalEntry, WorkflowBackendConfig, WorkflowMeta } from "@automatalabs/shared-types";
|
|
18
|
+
export type { AgentSessionRecord, AgentSessionRef, JournalCallMetadata, JournalEntry, WorkflowBackendConfig, WorkflowMeta, } from "@automatalabs/shared-types";
|
|
19
19
|
type ContextProperty<T, K extends PropertyKey> = K extends keyof T ? T[K] : never;
|
|
20
20
|
type OptionalContextProperty<T, K extends PropertyKey> = K extends keyof T ? T[K] : undefined;
|
|
21
21
|
/** Payload of `WorkflowManager`'s `agentEvent` observer. `event` is the verbatim runner event
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAaA,OAAO,EAKL,eAAe,IAAI,qBAAqB,EACzC,MAAM,+BAA+B,CAAC;AACvC,OAAO,KAAK,EAAoB,YAAY,EAAE,iBAAiB,EAAiB,MAAM,0BAA0B,CAAC;AACjH,OAAO,KAAK,EAAE,WAAW,EAAE,WAAW,EAAE,sBAAsB,EAAE,MAAM,+BAA+B,CAAC;AACtG,OAAO,KAAK,EAAE,WAAW,EAAE,qBAAqB,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,C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O,CAAC,iBAAiB,CAAC,CAmC5B"}
|
package/dist/index.js
CHANGED
|
@@ -13,7 +13,7 @@ import { ACP_CROSS_CUTTING_EVENT_NAMES, createAcpRunner } from "@automatalabs/ac
|
|
|
13
13
|
import { openWorkflowDir, parseWorkflowScript, WorkflowError, WorkflowErrorCode, WorkflowManager as EngineWorkflowManager, } from "@automatalabs/workflow-engine";
|
|
14
14
|
// ── Engine: run entry, script parsing, the managed-run lifecycle, and the
|
|
15
15
|
// option/result + error types the host composes against. ──
|
|
16
|
-
export { runWorkflow, parseWorkflowScript } from "@automatalabs/workflow-engine";
|
|
16
|
+
export { runWorkflow, parseWorkflowScript, redactText, truncateUtf8 } from "@automatalabs/workflow-engine";
|
|
17
17
|
// ── Workflow directory view: openWorkflowDir("./workflows") binds a read-only,
|
|
18
18
|
// per-call-fresh view over folders of versioned workflow scripts (name = filename
|
|
19
19
|
// stem). `view.resolve` IS a loadSavedWorkflow resolver; runDynamicWorkflow accepts
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@automatalabs/workflows",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.27.1",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"engines": {
|
|
6
6
|
"node": ">=22"
|
|
@@ -30,9 +30,9 @@
|
|
|
30
30
|
"access": "public"
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@automatalabs/shared-types": "0.
|
|
34
|
-
"@automatalabs/workflow-engine": "0.
|
|
35
|
-
"@automatalabs/acp-agents": "0.24.
|
|
33
|
+
"@automatalabs/shared-types": "0.17.0",
|
|
34
|
+
"@automatalabs/workflow-engine": "0.17.0",
|
|
35
|
+
"@automatalabs/acp-agents": "0.24.8"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
38
|
"typebox": "1.3.2"
|