@automatalabs/workflows 0.38.4 → 0.39.0
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 +46 -6
- package/dist/index.d.ts +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -98,7 +98,7 @@ Options (`RunDynamicWorkflowOptions`):
|
|
|
98
98
|
| `args` | `unknown` | The value handed to the script's `args` global. |
|
|
99
99
|
| `cwd` | `string` | Base working directory for the run (e.g. the project root): every subagent session runs here (a per-agent `agent({ cwd })` or worktree isolation overrides it), worktrees branch from it, and `agentType` definitions are scanned from it. Omitted ⇒ `process.cwd()`. |
|
|
100
100
|
| `runner` | `AgentRunner` | Swap the backend (or stub it in tests). Omitted ⇒ `createAcpRunner()`. |
|
|
101
|
-
| `exec` | `ExecOptions` | Per-run controls forwarded to the manager: `tokenBudget`, `agentTimeoutMs`, `concurrency`, `agentRetries`, `signal`, `onProgress`, `confirm`, `resumeFromRunId`, `resumePolicy`, `checkpointReplies`, … |
|
|
101
|
+
| `exec` | `ExecOptions` | Per-run controls forwarded to the manager: `tokenBudget`, total-wall-clock-per-attempt `agentTimeoutMs`, `concurrency`, `agentRetries`, `signal`, `onProgress`, `confirm`, `resumeFromRunId`, `resumePolicy`, `checkpointReplies`, … |
|
|
102
102
|
| `allowScriptBackends` | `boolean \| callback` | Approve the commands declared in `meta.backends`; declarations are inert without host approval. |
|
|
103
103
|
| `workflows` | `string \| string[] \| WorkflowDir` | Resolve the first argument and nested `workflow("name")` calls from one or more directories. |
|
|
104
104
|
|
|
@@ -263,6 +263,9 @@ const background = manager.startInBackground(script, { repo: "agentprism" }, { t
|
|
|
263
263
|
console.log(background.runId, manager.getSnapshot(background.runId));
|
|
264
264
|
// background.promise resolves only on completion and rejects on pause/failure/abort.
|
|
265
265
|
|
|
266
|
+
// Settle one runaway agent to null without aborting the run or retrying that call.
|
|
267
|
+
await manager.cancelAgentCall(background.runId, 4);
|
|
268
|
+
|
|
266
269
|
const status = manager.inspectRun(run.runId, {
|
|
267
270
|
lastN: 10,
|
|
268
271
|
labelGlob: "review-*",
|
|
@@ -282,7 +285,7 @@ const next = await manager.runSync(script, { repo: "agentprism", expanded: true
|
|
|
282
285
|
resumeFromRunId: run.runId,
|
|
283
286
|
resumePolicy: "auto",
|
|
284
287
|
});
|
|
285
|
-
console.log(next.runId, next.resumeReport);
|
|
288
|
+
console.log(next.runId, next.replayEligibility, next.resumeReport);
|
|
286
289
|
```
|
|
287
290
|
|
|
288
291
|
`runSync(script, args?, exec?)` always resolves to a terminal `WorkflowRunResult`. A run **pauses**
|
|
@@ -297,6 +300,21 @@ checkpoint unless the author opts in. `WorkflowManagerOptions` lets you set a de
|
|
|
297
300
|
`loadSavedWorkflow` resolver (enables nested `workflow('name')`), a custom `persistence`
|
|
298
301
|
implementation, and per-agent timeout/retry defaults.
|
|
299
302
|
|
|
303
|
+
A finite run-level `agentTimeoutMs` is the ceiling for every attempt. Script-level `timeoutMs` may
|
|
304
|
+
tighten it but cannot raise or disable it; without a host ceiling, per-call `null`/omission is
|
|
305
|
+
uncapped. The clock covers total attempt wall time rather than idle time. Retries each get a fresh
|
|
306
|
+
clock, so the maximum envelope is `(resolved retries + 1) × resolved timeout` (retries are clamped
|
|
307
|
+
at 3). After the final timeout, the call resolves to `null` with recoverable `AGENT_TIMEOUT`,
|
|
308
|
+
releases its concurrency slot, and the ACP runner closes/recycles a backend session that ignores
|
|
309
|
+
cancellation.
|
|
310
|
+
|
|
311
|
+
`cancelAgentCall(runId, callIndex)` is the stateful host seam for a single live attempt. It returns
|
|
312
|
+
`WorkflowAgentCallCancellation` after the failed record and agent-end state are committed, while
|
|
313
|
+
the script receives `null` and siblings continue. `AGENT_CANCELLED` never retries, never sets the
|
|
314
|
+
run's abort state, and never creates a journal result; inspect exposes the error and a later resume
|
|
315
|
+
runs that occurrence live. A missing, settled, checkpoint, or duplicate scoped index errors with
|
|
316
|
+
the currently in-flight call-index/label pairs.
|
|
317
|
+
|
|
300
318
|
Usage-limit and auth resumes are continuation-aware by default on both `resumeFromRunId` and
|
|
301
319
|
same-ID `resume()` / `resumeInBackground()`: when the interrupted root call's index, identity hash,
|
|
302
320
|
full execution-input fingerprint, backend identity, cwd, and reopen support still agree, the manager
|
|
@@ -315,6 +333,8 @@ returns `{ runId, promise: Promise<WorkflowRunResult> }`. The facade keeps an AC
|
|
|
315
333
|
per-execution `exec.agent` until that promise settles, including rejection. Read live state with
|
|
316
334
|
`getRun()`, `getSnapshot()`, or `inspectRun()`, and subscribe to cumulative `tokenUsage` events while
|
|
317
335
|
work is running. Live attempts update `snapshot.tokenUsage` monotonically; replayed calls add zero.
|
|
336
|
+
Run results expose `effectiveLimits`; inspect status exposes the same values as `limits`, and failed
|
|
337
|
+
agent rows carry their resolved `timeoutMs` plus `errorCode`.
|
|
318
338
|
|
|
319
339
|
`exec.resumeFromRunId` asks the manager to admit a terminal source, persist a self-contained seed
|
|
320
340
|
under a new run ID, and match safe calls by exact path/hash or unique hash+input fingerprint.
|
|
@@ -324,18 +344,35 @@ records are rebound to the current call index/label/phase. `resumePolicy: "posit
|
|
|
324
344
|
index/prefix matching but cannot bypass new-format input/safety/environment gates. The distinct
|
|
325
345
|
same-ID `resume()` and low-level `resumeJournal` paths remain permanently legacy positional and
|
|
326
346
|
emit no `resumeReport`. See the [full contract](../../docs/api.md#content-addressed-incremental-resume).
|
|
347
|
+
Operational limits are resolved from the new execution's `exec` options and manager defaults, not
|
|
348
|
+
copied from the source run; pass the desired timeout/retry/concurrency values again. Host
|
|
349
|
+
`agentTimeoutMs`, `agentRetries`, and `concurrency`, plus per-call `timeoutMs` and `retries`, enter
|
|
350
|
+
neither replay identity nor the execution-input fingerprint and may change without invalidating
|
|
351
|
+
completed calls or interrupted-turn continuation.
|
|
352
|
+
|
|
353
|
+
Crash snapshots reconciled to `paused` / `interrupted` without a terminal environment use the
|
|
354
|
+
`crash-residue` positional bridge: their hash-stable prefix is eligible only when the recorded
|
|
355
|
+
admission environment matches the new run. Normally settled sources with an input-fingerprint format below 2 use the
|
|
356
|
+
`inputs-format-legacy` positional bridge. That bridge also accepts ancestor-scoped rows carried by a
|
|
357
|
+
≤0.23 resume hop when the ancestor run still exists in the same persistence directory; nested and deleted-run scopes stay live. Engine
|
|
358
|
+
package versions are persisted and surfaced as diagnostics but never gate replay. Every new-run
|
|
359
|
+
resume exposes `WorkflowReplayEligibility` on the foreground result and inspection status: strategy,
|
|
360
|
+
predicted and observed replayable prefixes, counts, the first non-replay when known, source/current
|
|
361
|
+
engine and input-format versions, and non-gating operational changes.
|
|
327
362
|
|
|
328
363
|
The manager's critical initial save contains the complete inherited seed before a background
|
|
329
364
|
acknowledgement. A manager-prepared `resumeFromRunId` hit re-journals the selected value under its
|
|
330
365
|
current target index; same-ID/manual legacy cache hits retain the historical no-journal-callback
|
|
331
366
|
behavior and rely on the already-seeded prefix. Each new run is independently resumable across
|
|
332
|
-
multiple pause/resume hops. Process loss can stop in-flight work;
|
|
333
|
-
|
|
367
|
+
multiple pause/resume hops. Process loss can stop in-flight work; construction and cold
|
|
368
|
+
inspect/list/resume lookups reconcile a dead owner's durable `pending`/`running` record under its
|
|
369
|
+
lease to `paused` with `pauseReason: "interrupted"`. An unjournaled in-flight call may run again.
|
|
334
370
|
|
|
335
371
|
`inspectRun(runId, options?)` is inherited through this facade and returns the shared
|
|
336
372
|
`WorkflowRunStatus` without importing `@automatalabs/workflow-engine`. It reads the freshest live
|
|
337
|
-
snapshot first and project-scoped persistence second
|
|
338
|
-
|
|
373
|
+
snapshot first and project-scoped persistence second and never executes the script. A cold
|
|
374
|
+
`pending`/`running` row may take a short reconciliation lease when its owner is dead; other rows are
|
|
375
|
+
not changed. It returns `undefined` for an unknown/unreadable ID. The facade also re-exports
|
|
339
376
|
`WorkflowRunInspectionOptions`, `WorkflowLogTail`, `WorkflowRunCallStatus`,
|
|
340
377
|
`WorkflowRunStatusTruncation`, `WorkflowRunStatus`, and `JournalCallMetadata`. Inspection defaults
|
|
341
378
|
to 20 calls and 20 log lines, supports case-sensitive whole-label `*`/`?`/backslash globs, redacts
|
|
@@ -808,6 +845,7 @@ RunDynamicWorkflowOptions, RunIsolationSdkOptions, RunIsolationOptions, Isolatio
|
|
|
808
845
|
IsolationTarget, ReplayRunnerOptions, ReplayRunner, ReplayObservation, ReplayReport,
|
|
809
846
|
ReplayCallReport, ReplayDivergenceEvent, ResolvedIsolationTarget,
|
|
810
847
|
WorkflowRunOptions, AgentOptions, ExecOptions, CheckpointCallContext,
|
|
848
|
+
WorkflowAgentAttemptControl, WorkflowAgentCallCancellation,
|
|
811
849
|
MockAnswerJson, MockAnswerSequence, MockAnswerRule, MockAnswers,
|
|
812
850
|
ValidatedMockAnswerUse, ValidatedMockAnswerRule, UnusedMockAnswer, ValidatedMockAnswers,
|
|
813
851
|
ValidateWorkflowOptions, ValidateWorkflowReport, ValidateHarnessOptions,
|
|
@@ -819,6 +857,8 @@ ResumePolicy, WorkflowResumeStrategy, WorkflowResumeMatch, WorkflowResumeSafety,
|
|
|
819
857
|
WorkflowResumeFallbackReason, WorkflowResumeDisabledReason,
|
|
820
858
|
WorkflowResumeCallLiveReason, WorkflowResumeCallFailedReason,
|
|
821
859
|
WorkflowCallReplayProvenance, WorkflowResumeCallDecision, WorkflowResumeReport,
|
|
860
|
+
WorkflowReplayOperationalOption, WorkflowReplayOperationalChange,
|
|
861
|
+
WorkflowReplayFirstNonReplay, WorkflowReplayEligibility,
|
|
822
862
|
WorkflowPathOptions, RunPersistence, RunPersistenceOptions,
|
|
823
863
|
AcpPoolOptions, AcpRunnerOptions, AgentRunner, RunOptions, AgentResult, AgentUsage, JournalEntry,
|
|
824
864
|
AgentSessionRef, AgentSessionRecord, WorkflowBackendConfig, WorkflowCallRecord, WorkflowRecordedError,
|
package/dist/index.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import type { AcpEventName, AcpRunnerEventMap } from "@automatalabs/acp-agents";
|
|
|
3
3
|
import type { ExecOptions, WorkflowDir, WorkflowManagerOptions } from "@automatalabs/workflow-engine";
|
|
4
4
|
import type { AgentRunner, RunEvent, WorkflowRunResult } from "@automatalabs/shared-types";
|
|
5
5
|
import { type ScriptBackendApproval } from "./script-backends.js";
|
|
6
|
-
export { runWorkflow, parseWorkflowScript, hashCheckpointInputs, redactText, truncateUtf8, CALL_PATH_FORMAT, CALL_INPUTS_FORMAT, CHECKPOINT_INPUTS_FORMAT, RESUME_FALLBACK_REASONS, RESUME_DISABLED_REASONS, RESUME_CALL_LIVE_REASONS, RESUME_CALL_FAILED_REASONS, } from "@automatalabs/workflow-engine";
|
|
6
|
+
export { runWorkflow, parseWorkflowScript, hashCheckpointInputs, resolveAgentTimeoutMs, resolveWorkflowRunLimits, redactText, truncateUtf8, CALL_PATH_FORMAT, CALL_INPUTS_FORMAT, CHECKPOINT_INPUTS_FORMAT, RESUME_FALLBACK_REASONS, RESUME_DISABLED_REASONS, RESUME_CALL_LIVE_REASONS, RESUME_CALL_FAILED_REASONS, } from "@automatalabs/workflow-engine";
|
|
7
7
|
export { runIsolation, createReplayRunner, type RunIsolationSdkOptions } from "./isolation.js";
|
|
8
8
|
export type { RunIsolationOptions, IsolationRunResult, ReplayRunnerOptions, ResolvedIsolationTarget, IsolationTarget, ReplayRunner, ReplayObservation, ReplayReport, ReplayCallReport, ReplayDivergenceEvent, CheckpointCallContext, WorkflowCallRecord, WorkflowRecordedError, } from "./isolation.js";
|
|
9
9
|
export { openWorkflowDir, type WorkflowDir, type WorkflowDirEntry, type OpenWorkflowDirOptions, } from "@automatalabs/workflow-engine";
|
|
@@ -11,7 +11,7 @@ export { validateWorkflowScript, fabricateFromSchema, formatValidateReport, MOCK
|
|
|
11
11
|
export type { MockAnswerJson, MockAnswerRule, MockAnswers, MockAnswerSequence, UnusedMockAnswer, ValidateWorkflowOptions, ValidateWorkflowReport, ValidateHarnessOptions, ValidatedAgentCall, ValidatedCheckpoint, ValidatedMockAnswerRule, ValidatedMockAnswers, ValidatedMockAnswerUse, } from "./validate.js";
|
|
12
12
|
export { probeHarnessConfig, formatHarnessConfigReport } from "./config.js";
|
|
13
13
|
export type { ProbeHarnessConfigOptions, HarnessConfigReport } from "./config.js";
|
|
14
|
-
export type { WorkflowRunOptions, AgentOptions, ExecOptions, WorkflowManagerOptions, CheckpointOptions, WorkflowRunResult, WorkflowSnapshot, WorkflowPathOptions, RunPersistence, RunPersistenceOptions, PersistedRunState, PersistedAgentState, PersistedResumeFormat, PersistedResumeCandidate, PersistedCheckpointInjection, PersistedResumeSeed, PersistedRunLineageTombstone, PreparedResume, WorkflowLogTail, WorkflowRunCallStatus, WorkflowRunInspectionOptions, WorkflowRunStatus, WorkflowRunStatusTruncation, WorkflowRunFallback, WorkflowCheckpointSource, WorkflowCheckpointTaken, ResumePolicy, WorkflowResumeStrategy, WorkflowResumeMatch, WorkflowResumeFallbackReason, WorkflowResumeDisabledReason, WorkflowResumeCallLiveReason, WorkflowResumeCallFailedReason, WorkflowResumeSafety, WorkflowCallReplayProvenance, WorkflowResumeCallDecision, WorkflowResumeReport, } from "@automatalabs/workflow-engine";
|
|
14
|
+
export type { WorkflowRunOptions, WorkflowRunLimitOptions, WorkflowAgentAttemptControl, WorkflowAgentCallCancellation, AgentOptions, ExecOptions, WorkflowManagerOptions, CheckpointOptions, WorkflowRunResult, WorkflowSnapshot, WorkflowPathOptions, RunPersistence, RunPersistenceOptions, PersistedRunState, PersistedAgentState, PersistedResumeFormat, PersistedResumeCandidate, PersistedCheckpointInjection, PersistedResumeSeed, PersistedRunLineageTombstone, PreparedResume, WorkflowLogTail, WorkflowRunCallStatus, WorkflowRunInspectionOptions, WorkflowRunLimits, WorkflowRunStatus, WorkflowRunStatusTruncation, WorkflowRunFallback, WorkflowCheckpointSource, WorkflowCheckpointTaken, ResumePolicy, WorkflowResumeStrategy, WorkflowResumeMatch, WorkflowResumeFallbackReason, WorkflowResumeDisabledReason, WorkflowResumeCallLiveReason, WorkflowResumeCallFailedReason, WorkflowResumeSafety, WorkflowCallReplayProvenance, WorkflowResumeCallDecision, WorkflowResumeReport, WorkflowReplayOperationalOption, WorkflowReplayOperationalChange, WorkflowReplayFirstNonReplay, WorkflowReplayEligibility, } from "@automatalabs/workflow-engine";
|
|
15
15
|
export { AGENTPRISM_PERSISTENCE_ROOT_ENV, WorkflowError, WorkflowErrorCode, isWorkflowError, isProviderUsageLimit, isAuthRequired, } from "@automatalabs/workflow-engine";
|
|
16
16
|
export { withRunEvents, RunEventLogError, RUN_EVENT_READ_LIMIT_DEFAULT, RUN_EVENT_READ_LIMIT_MAX, RUN_EVENT_MAX_RECORD_BYTES, } from "@automatalabs/workflow-engine";
|
|
17
17
|
export type { RunEventPersistence, RunEventStream, AppendRunEventInput, ReadRunEventsOptions, ReadRunEventsResult, WatchRunEventsOptions, RunEventLogErrorCode, } from "@automatalabs/workflow-engine";
|
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,QAAQ,EAAyB,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAClH,OAAO,EAAyB,KAAK,qBAAqB,EAAE,MAAM,sBAAsB,CAAC;AAMzF,OAAO,EACL,WAAW,EACX,mBAAmB,EACnB,oBAAoB,EACpB,UAAU,EACV,YAAY,EACZ,gBAAgB,EAChB,kBAAkB,EAClB,wBAAwB,EACxB,uBAAuB,EACvB,uBAAuB,EACvB,wBAAwB,EACxB,0BAA0B,GAC3B,MAAM,+B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MAAM,GAAG,MAAM,EAAE,GAAG,WAAW,CAAC;CAC7C;AAED;;;;;;;;;GASG;AACH,wBAAsB,kBAAkB,CACtC,MAAM,EAAE,MAAM,EACd,IAAI,GAAE,yBAA8B,GACnC,OAAO,CAAC,iBAAiB,CAAC,CAsC5B"}
|
package/dist/index.js
CHANGED
|
@@ -14,7 +14,7 @@ import { openWorkflowDir, parseWorkflowScript, WorkflowManager as EngineWorkflow
|
|
|
14
14
|
import { approveScriptBackends } from "./script-backends.js";
|
|
15
15
|
// ── Engine: run entry, script parsing, the managed-run lifecycle, and the
|
|
16
16
|
// option/result + error types the host composes against. ──
|
|
17
|
-
export { runWorkflow, parseWorkflowScript, hashCheckpointInputs, redactText, truncateUtf8, CALL_PATH_FORMAT, CALL_INPUTS_FORMAT, CHECKPOINT_INPUTS_FORMAT, RESUME_FALLBACK_REASONS, RESUME_DISABLED_REASONS, RESUME_CALL_LIVE_REASONS, RESUME_CALL_FAILED_REASONS, } from "@automatalabs/workflow-engine";
|
|
17
|
+
export { runWorkflow, parseWorkflowScript, hashCheckpointInputs, resolveAgentTimeoutMs, resolveWorkflowRunLimits, redactText, truncateUtf8, CALL_PATH_FORMAT, CALL_INPUTS_FORMAT, CHECKPOINT_INPUTS_FORMAT, RESUME_FALLBACK_REASONS, RESUME_DISABLED_REASONS, RESUME_CALL_LIVE_REASONS, RESUME_CALL_FAILED_REASONS, } from "@automatalabs/workflow-engine";
|
|
18
18
|
// ── Isolation mode: deterministic substitution testing over a recorded run. The SDK
|
|
19
19
|
// wrapper defaults the live target runner to ACP and owns that runner's disposal. ──
|
|
20
20
|
export { runIsolation, createReplayRunner } from "./isolation.js";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@automatalabs/workflows",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.39.0",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"engines": {
|
|
6
6
|
"node": ">=22"
|
|
@@ -31,9 +31,9 @@
|
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
33
|
"typebox": "1.3.2",
|
|
34
|
-
"@automatalabs/shared-types": "0.
|
|
35
|
-
"@automatalabs/
|
|
36
|
-
"@automatalabs/
|
|
34
|
+
"@automatalabs/shared-types": "0.25.0",
|
|
35
|
+
"@automatalabs/workflow-engine": "0.27.0",
|
|
36
|
+
"@automatalabs/acp-agents": "0.32.0"
|
|
37
37
|
},
|
|
38
38
|
"scripts": {
|
|
39
39
|
"build": "tsc -b",
|