@warlock.js/ai 4.1.7 → 4.1.8
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/cjs/index.cjs +86 -86
- package/esm/agent/agent-config.type.d.mts +1 -1
- package/esm/agent/agent-input-builder.mjs +1 -1
- package/esm/agent/agent-log-event.mjs +1 -1
- package/esm/agent/agent-stream.d.mts +1 -1
- package/esm/agent/agent-stream.mjs +1 -1
- package/esm/agent/agent-to-stream-event.mjs +1 -1
- package/esm/agent/agent.d.mts +1 -1
- package/esm/agent/agent.mjs +1 -1
- package/esm/agent/json-stream-guard.mjs +1 -1
- package/esm/ai.d.mts +1 -1
- package/esm/ai.mjs +1 -1
- package/esm/config.d.mts +1 -1
- package/esm/config.mjs +1 -1
- package/esm/contracts/agent/agent-options.type.d.mts +1 -1
- package/esm/contracts/agent/agent.contract.d.mts +1 -1
- package/esm/contracts/attachment.type.d.mts +1 -1
- package/esm/contracts/content-part.type.d.mts +1 -1
- package/esm/contracts/conversation-message.type.d.mts +1 -1
- package/esm/contracts/embedder.contract.d.mts +1 -1
- package/esm/contracts/end.type.d.mts +1 -1
- package/esm/contracts/end.type.mjs +1 -1
- package/esm/contracts/events/agent-events.type.d.mts +1 -1
- package/esm/contracts/events/complete-event.type.d.mts +1 -1
- package/esm/contracts/events/event-identity.type.d.mts +1 -1
- package/esm/contracts/events/event-map.type.d.mts +1 -1
- package/esm/contracts/events/supervisor-events.type.d.mts +1 -1
- package/esm/contracts/events/usage-event.type.d.mts +1 -1
- package/esm/contracts/events/workflow-events.type.d.mts +1 -1
- package/esm/contracts/executable.contract.d.mts +1 -1
- package/esm/contracts/finish-reason.type.d.mts +1 -1
- package/esm/contracts/middleware/middleware-context.type.d.mts +1 -1
- package/esm/contracts/middleware/middleware-state.type.d.mts +1 -1
- package/esm/contracts/middleware/middleware.contract.d.mts +1 -1
- package/esm/contracts/model-tool-call-request.type.d.mts +1 -1
- package/esm/contracts/model.contract.d.mts +1 -1
- package/esm/contracts/placeholders.type.d.mts +1 -1
- package/esm/contracts/result/agent-result.type.d.mts +1 -1
- package/esm/contracts/result/attempt-entry.type.d.mts +1 -1
- package/esm/contracts/result/base-report.type.d.mts +1 -1
- package/esm/contracts/result/base-report.type.mjs +1 -1
- package/esm/contracts/result/base-result.type.d.mts +1 -1
- package/esm/contracts/result/execute-result.type.d.mts +1 -1
- package/esm/contracts/result/execution-report.type.d.mts +1 -1
- package/esm/contracts/result/llm-trip.type.d.mts +1 -1
- package/esm/contracts/result/model-pricing.type.d.mts +1 -1
- package/esm/contracts/result/session-send-result.type.d.mts +1 -1
- package/esm/contracts/result/step-result.type.d.mts +1 -1
- package/esm/contracts/result/supervisor-result.type.d.mts +1 -1
- package/esm/contracts/result/tool-call.type.d.mts +1 -1
- package/esm/contracts/result/usage.type.d.mts +1 -1
- package/esm/contracts/result/workflow-result.type.d.mts +1 -1
- package/esm/contracts/sdk-adapter.contract.d.mts +1 -1
- package/esm/contracts/stream/stream-event.type.d.mts +1 -1
- package/esm/contracts/stream/stream.contract.d.mts +1 -1
- package/esm/contracts/streaming-tool-guard-config.type.d.mts +1 -1
- package/esm/contracts/supervisor/ack-entry.type.d.mts +1 -1
- package/esm/contracts/supervisor/classifier-context.type.d.mts +1 -1
- package/esm/contracts/supervisor/dispatch-context.type.d.mts +1 -1
- package/esm/contracts/supervisor/evaluate-context.type.d.mts +1 -1
- package/esm/contracts/supervisor/intent-entry.type.d.mts +1 -1
- package/esm/contracts/supervisor/iteration-snapshot.type.d.mts +1 -1
- package/esm/contracts/supervisor/next.type.d.mts +1 -1
- package/esm/contracts/supervisor/route-context.type.d.mts +1 -1
- package/esm/contracts/supervisor/router-entry.type.d.mts +1 -1
- package/esm/contracts/supervisor/supervisor-config.type.d.mts +1 -1
- package/esm/contracts/supervisor/supervisor-execute-options.type.d.mts +1 -1
- package/esm/contracts/supervisor/supervisor-input.type.d.mts +1 -1
- package/esm/contracts/supervisor/supervisor-snapshot.type.d.mts +1 -1
- package/esm/contracts/supervisor/supervisor-stream-event.type.d.mts +1 -1
- package/esm/contracts/supervisor/supervisor.contract.d.mts +1 -1
- package/esm/contracts/system-prompt.contract.d.mts +1 -1
- package/esm/contracts/tool.contract.d.mts +1 -1
- package/esm/contracts/workflow/next-step-result.type.d.mts +1 -1
- package/esm/contracts/workflow/retry-config.type.d.mts +1 -1
- package/esm/contracts/workflow/step.contract.d.mts +1 -1
- package/esm/contracts/workflow/workflow-context.type.d.mts +1 -1
- package/esm/contracts/workflow/workflow-snapshot.type.d.mts +1 -1
- package/esm/contracts/workflow/workflow.contract.d.mts +1 -1
- package/esm/errors/agent-cancelled-error.d.mts +1 -1
- package/esm/errors/agent-cancelled-error.mjs +1 -1
- package/esm/errors/agent-execution-error.d.mts +1 -1
- package/esm/errors/agent-execution-error.mjs +1 -1
- package/esm/errors/agent-max-trips-error.d.mts +1 -1
- package/esm/errors/agent-max-trips-error.mjs +1 -1
- package/esm/errors/ai-error.d.mts +1 -1
- package/esm/errors/ai-error.mjs +1 -1
- package/esm/errors/budget-exceeded-error.d.mts +1 -1
- package/esm/errors/budget-exceeded-error.mjs +1 -1
- package/esm/errors/content-filter-error.d.mts +1 -1
- package/esm/errors/content-filter-error.mjs +1 -1
- package/esm/errors/context-length-exceeded-error.d.mts +1 -1
- package/esm/errors/context-length-exceeded-error.mjs +1 -1
- package/esm/errors/error-category.type.d.mts +1 -1
- package/esm/errors/error-code.type.d.mts +1 -1
- package/esm/errors/guardrail-violation-error.d.mts +1 -1
- package/esm/errors/guardrail-violation-error.mjs +1 -1
- package/esm/errors/invalid-request-error.d.mts +1 -1
- package/esm/errors/invalid-request-error.mjs +1 -1
- package/esm/errors/max-iterations-error.d.mts +1 -1
- package/esm/errors/max-iterations-error.mjs +1 -1
- package/esm/errors/max-steps-exceeded-error.d.mts +1 -1
- package/esm/errors/max-steps-exceeded-error.mjs +1 -1
- package/esm/errors/provider-auth-error.d.mts +1 -1
- package/esm/errors/provider-auth-error.mjs +1 -1
- package/esm/errors/provider-error.d.mts +1 -1
- package/esm/errors/provider-error.mjs +1 -1
- package/esm/errors/provider-rate-limit-error.d.mts +1 -1
- package/esm/errors/provider-rate-limit-error.mjs +1 -1
- package/esm/errors/provider-timeout-error.d.mts +1 -1
- package/esm/errors/provider-timeout-error.mjs +1 -1
- package/esm/errors/quota-exceeded-error.d.mts +1 -1
- package/esm/errors/quota-exceeded-error.mjs +1 -1
- package/esm/errors/routing-error.d.mts +1 -1
- package/esm/errors/routing-error.mjs +1 -1
- package/esm/errors/schema-validation-error.d.mts +1 -1
- package/esm/errors/schema-validation-error.mjs +1 -1
- package/esm/errors/step-failed-error.d.mts +1 -1
- package/esm/errors/step-failed-error.mjs +1 -1
- package/esm/errors/supervisor-cancelled-error.d.mts +1 -1
- package/esm/errors/supervisor-cancelled-error.mjs +1 -1
- package/esm/errors/supervisor-drift-error.d.mts +1 -1
- package/esm/errors/supervisor-drift-error.mjs +1 -1
- package/esm/errors/supervisor-failed-error.d.mts +1 -1
- package/esm/errors/supervisor-failed-error.mjs +1 -1
- package/esm/errors/supervisor-routing-error.d.mts +1 -1
- package/esm/errors/supervisor-routing-error.mjs +1 -1
- package/esm/errors/tool-execution-error.d.mts +1 -1
- package/esm/errors/tool-execution-error.mjs +1 -1
- package/esm/errors/workflow-cancelled-error.d.mts +1 -1
- package/esm/errors/workflow-cancelled-error.mjs +1 -1
- package/esm/errors/workflow-drift-error.d.mts +1 -1
- package/esm/errors/workflow-drift-error.mjs +1 -1
- package/esm/errors/workflow-error.d.mts +1 -1
- package/esm/errors/workflow-error.mjs +1 -1
- package/esm/middleware/builtins/budget.d.mts +1 -1
- package/esm/middleware/builtins/budget.mjs +1 -1
- package/esm/middleware/builtins/guardrail.d.mts +1 -1
- package/esm/middleware/builtins/guardrail.mjs +1 -1
- package/esm/middleware/builtins/semantic-cache.d.mts +1 -1
- package/esm/middleware/builtins/semantic-cache.mjs +1 -1
- package/esm/middleware/helpers/compose.d.mts +1 -1
- package/esm/middleware/helpers/compose.mjs +1 -1
- package/esm/middleware/helpers/for-tool.d.mts +1 -1
- package/esm/middleware/helpers/for-tool.mjs +1 -1
- package/esm/middleware/pipeline.d.mts +1 -1
- package/esm/middleware/pipeline.mjs +1 -1
- package/esm/middleware/utils/extract-user-text.d.mts +1 -1
- package/esm/middleware/utils/extract-user-text.mjs +1 -1
- package/esm/middleware/utils/namespaced-state.d.mts +1 -1
- package/esm/middleware/utils/namespaced-state.mjs +1 -1
- package/esm/mock/mock-agent.d.mts +1 -1
- package/esm/mock/mock-agent.mjs +1 -1
- package/esm/mock/mock-config.type.d.mts +1 -1
- package/esm/mock/mock-model.d.mts +1 -1
- package/esm/mock/mock-model.mjs +1 -1
- package/esm/mock/mock-sdk.d.mts +1 -1
- package/esm/mock/mock-sdk.mjs +1 -1
- package/esm/supervisor/as-tool.d.mts +1 -1
- package/esm/supervisor/as-tool.mjs +1 -1
- package/esm/supervisor/cancellation.d.mts +1 -1
- package/esm/supervisor/cancellation.mjs +1 -1
- package/esm/supervisor/decide.mjs +1 -1
- package/esm/supervisor/emitter.d.mts +1 -1
- package/esm/supervisor/emitter.mjs +1 -1
- package/esm/supervisor/entries.d.mts +1 -1
- package/esm/supervisor/entries.mjs +1 -1
- package/esm/supervisor/execution.d.mts +1 -1
- package/esm/supervisor/execution.mjs +1 -1
- package/esm/supervisor/router-prompt.d.mts +1 -1
- package/esm/supervisor/router-prompt.mjs +1 -1
- package/esm/supervisor/signature.d.mts +1 -1
- package/esm/supervisor/signature.mjs +1 -1
- package/esm/supervisor/snapshot.d.mts +1 -1
- package/esm/supervisor/snapshot.mjs +1 -1
- package/esm/supervisor/supervisor-stream.d.mts +1 -1
- package/esm/supervisor/supervisor-stream.mjs +1 -1
- package/esm/supervisor/supervisor.d.mts +1 -1
- package/esm/supervisor/supervisor.mjs +1 -1
- package/esm/system-prompt/instruction.d.mts +1 -1
- package/esm/system-prompt/instruction.mjs +1 -1
- package/esm/system-prompt/persona.d.mts +1 -1
- package/esm/system-prompt/persona.mjs +1 -1
- package/esm/system-prompt/render-placeholders.d.mts +1 -1
- package/esm/system-prompt/render-placeholders.mjs +1 -1
- package/esm/system-prompt/system-prompt.d.mts +1 -1
- package/esm/system-prompt/system-prompt.mjs +1 -1
- package/esm/tool/tool.d.mts +1 -1
- package/esm/tool/tool.mjs +1 -1
- package/esm/utils/compute-cost.d.mts +1 -1
- package/esm/utils/compute-cost.mjs +1 -1
- package/esm/utils/extract-json-payload.d.mts +1 -1
- package/esm/utils/extract-json-payload.mjs +1 -1
- package/esm/utils/generate-run-id.d.mts +1 -1
- package/esm/utils/generate-run-id.mjs +1 -1
- package/esm/utils/json-schema.d.mts +1 -1
- package/esm/utils/json-schema.mjs +1 -1
- package/esm/utils/prepare-attachment-part.d.mts +1 -1
- package/esm/utils/prepare-attachment-part.mjs +1 -1
- package/esm/utils/resolve-attachment.d.mts +1 -1
- package/esm/utils/resolve-attachment.mjs +1 -1
- package/esm/utils/safe-json-parse.d.mts +1 -1
- package/esm/utils/safe-json-parse.mjs +1 -1
- package/esm/utils/stamp-report-lineage.d.mts +1 -1
- package/esm/utils/stamp-report-lineage.mjs +1 -1
- package/esm/utils/token-count.d.mts +1 -1
- package/esm/utils/token-count.mjs +1 -1
- package/esm/workflow/as-tool.mjs +1 -1
- package/esm/workflow/cancellation.mjs +1 -1
- package/esm/workflow/emitter.mjs +1 -1
- package/esm/workflow/engine.mjs +1 -1
- package/esm/workflow/retry.mjs +1 -1
- package/esm/workflow/router.mjs +1 -1
- package/esm/workflow/run-scoped-emitter.mjs +1 -1
- package/esm/workflow/signature.d.mts +1 -1
- package/esm/workflow/signature.mjs +1 -1
- package/esm/workflow/snapshot.mjs +1 -1
- package/esm/workflow/state.mjs +1 -1
- package/esm/workflow/step-runner.mjs +1 -1
- package/esm/workflow/step.d.mts +1 -1
- package/esm/workflow/step.mjs +1 -1
- package/esm/workflow/workflow.d.mts +1 -1
- package/esm/workflow/workflow.mjs +1 -1
- package/package.json +3 -3
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { StandardSchemaV1 } from "@standard-schema/spec";
|
|
2
2
|
|
|
3
|
-
//#region
|
|
3
|
+
//#region ../@warlock.js/ai/src/utils/json-schema.d.ts
|
|
4
4
|
/**
|
|
5
5
|
* Supported JSON Schema output targets per the Standard JSON Schema V1
|
|
6
6
|
* spec. `openai-strict` is the richest for OpenAI structured outputs —
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Attachment } from "../contracts/attachment.type.mjs";
|
|
2
2
|
import { ContentPart } from "../contracts/content-part.type.mjs";
|
|
3
3
|
|
|
4
|
-
//#region
|
|
4
|
+
//#region ../@warlock.js/ai/src/utils/prepare-attachment-part.d.ts
|
|
5
5
|
/**
|
|
6
6
|
* Convert a user-supplied `Attachment` into a provider-ready
|
|
7
7
|
* `ContentPart` the model adapter can consume without doing any I/O of
|
|
@@ -4,7 +4,7 @@ import { resolveAttachment } from "./resolve-attachment.mjs";
|
|
|
4
4
|
import { readFile } from "node:fs/promises";
|
|
5
5
|
import { extname } from "node:path";
|
|
6
6
|
|
|
7
|
-
//#region
|
|
7
|
+
//#region ../@warlock.js/ai/src/utils/prepare-attachment-part.ts
|
|
8
8
|
const IMAGE_EXTENSIONS_TO_MEDIA_TYPE = {
|
|
9
9
|
".png": "image/png",
|
|
10
10
|
".jpg": "image/jpeg",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Attachment, ResolvedAttachment } from "../contracts/attachment.type.mjs";
|
|
2
2
|
|
|
3
|
-
//#region
|
|
3
|
+
//#region ../@warlock.js/ai/src/utils/resolve-attachment.d.ts
|
|
4
4
|
/**
|
|
5
5
|
* Normalize a user-supplied `Attachment` (or bare `AttachmentSource`)
|
|
6
6
|
* into a `ResolvedAttachment` the agent can hand to file-reading code
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { InvalidRequestError } from "../errors/invalid-request-error.mjs";
|
|
2
2
|
import "../errors/index.mjs";
|
|
3
3
|
|
|
4
|
-
//#region
|
|
4
|
+
//#region ../@warlock.js/ai/src/utils/resolve-attachment.ts
|
|
5
5
|
const REMOTE_URL_PATTERN = /^https?:\/\//i;
|
|
6
6
|
/**
|
|
7
7
|
* Normalize a user-supplied `Attachment` (or bare `AttachmentSource`)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//#region
|
|
1
|
+
//#region ../@warlock.js/ai/src/utils/safe-json-parse.d.ts
|
|
2
2
|
/**
|
|
3
3
|
* Parse a JSON string, returning a caller-supplied fallback when the input
|
|
4
4
|
* is empty or malformed instead of throwing. Useful at provider boundaries
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//#region
|
|
1
|
+
//#region ../@warlock.js/ai/src/utils/safe-json-parse.ts
|
|
2
2
|
/**
|
|
3
3
|
* Parse a JSON string, returning a caller-supplied fallback when the input
|
|
4
4
|
* is empty or malformed instead of throwing. Useful at provider boundaries
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { BaseReport } from "../contracts/result/base-report.type.mjs";
|
|
2
2
|
|
|
3
|
-
//#region
|
|
3
|
+
//#region ../@warlock.js/ai/src/utils/stamp-report-lineage.d.ts
|
|
4
4
|
/**
|
|
5
5
|
* Options for {@link stampReportLineage}. Every field is optional —
|
|
6
6
|
* the caller supplies whichever pieces it knows. Missing pieces are
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { REPORT_SCHEMA_VERSION } from "../contracts/result/base-report.type.mjs";
|
|
2
2
|
|
|
3
|
-
//#region
|
|
3
|
+
//#region ../@warlock.js/ai/src/utils/stamp-report-lineage.ts
|
|
4
4
|
/**
|
|
5
5
|
* Walk a freshly-built report tree and stamp lineage fields onto
|
|
6
6
|
* every node:
|
package/esm/workflow/as-tool.mjs
CHANGED
|
@@ -2,7 +2,7 @@ import { WorkflowError } from "../errors/workflow-error.mjs";
|
|
|
2
2
|
import "../errors/index.mjs";
|
|
3
3
|
import { compositeAsTool } from "../tool/tool.mjs";
|
|
4
4
|
|
|
5
|
-
//#region
|
|
5
|
+
//#region ../@warlock.js/ai/src/workflow/as-tool.ts
|
|
6
6
|
/**
|
|
7
7
|
* Wrap a `WorkflowInstance` as a `ToolContract` so an agent can invoke
|
|
8
8
|
* it inside its tool-call loop. Closes the agent-calls-workflow
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { WorkflowCancelledError } from "../errors/workflow-cancelled-error.mjs";
|
|
2
2
|
import "../errors/index.mjs";
|
|
3
3
|
|
|
4
|
-
//#region
|
|
4
|
+
//#region ../@warlock.js/ai/src/workflow/cancellation.ts
|
|
5
5
|
/**
|
|
6
6
|
* Build a `WorkflowCancelledError` from an `AbortSignal`, extracting
|
|
7
7
|
* a human-readable reason from `signal.reason` (string | Error | any).
|
package/esm/workflow/emitter.mjs
CHANGED
package/esm/workflow/engine.mjs
CHANGED
|
@@ -15,7 +15,7 @@ import { cloneState, deepFreeze } from "./state.mjs";
|
|
|
15
15
|
import { executeStep, finalizeSnapshot, toAIError } from "./step-runner.mjs";
|
|
16
16
|
import { log } from "@warlock.js/logger";
|
|
17
17
|
|
|
18
|
-
//#region
|
|
18
|
+
//#region ../@warlock.js/ai/src/workflow/engine.ts
|
|
19
19
|
const DEFAULT_MAX_STEPS = 100;
|
|
20
20
|
const DEFAULT_LOOP_WARN = 5;
|
|
21
21
|
const LOG_MODULE_BASE = "ai.workflow";
|
package/esm/workflow/retry.mjs
CHANGED
package/esm/workflow/router.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { RoutingError } from "../errors/routing-error.mjs";
|
|
2
2
|
import "../errors/index.mjs";
|
|
3
3
|
|
|
4
|
-
//#region
|
|
4
|
+
//#region ../@warlock.js/ai/src/workflow/router.ts
|
|
5
5
|
/**
|
|
6
6
|
* Resolve the next step to run after `step` completes. Tries
|
|
7
7
|
* step-level `nextStep` first, then workflow-level, then falls
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { WorkflowDefinition } from "../contracts/workflow/workflow.contract.mjs";
|
|
2
2
|
|
|
3
|
-
//#region
|
|
3
|
+
//#region ../@warlock.js/ai/src/workflow/signature.d.ts
|
|
4
4
|
declare function computeSignature<T>(definition: WorkflowDefinition<any, T, any, any>): string;
|
|
5
5
|
//#endregion
|
|
6
6
|
export { computeSignature };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//#region
|
|
1
|
+
//#region ../@warlock.js/ai/src/workflow/signature.ts
|
|
2
2
|
function stepFingerprint(step) {
|
|
3
3
|
const tag = step.parallel ? "parallel" : step.agent ? "agent" : step.run ? "run" : "empty";
|
|
4
4
|
const agentName = step.agent?.name;
|
|
@@ -3,7 +3,7 @@ import { WorkflowDriftError } from "../errors/workflow-drift-error.mjs";
|
|
|
3
3
|
import "../errors/index.mjs";
|
|
4
4
|
import { resolveDefaultStore } from "../config.mjs";
|
|
5
5
|
|
|
6
|
-
//#region
|
|
6
|
+
//#region ../@warlock.js/ai/src/workflow/snapshot.ts
|
|
7
7
|
/**
|
|
8
8
|
* Resolve the effective snapshot store: the workflow's own
|
|
9
9
|
* `snapshotStore` field wins; absent that, fall back to the global
|
package/esm/workflow/state.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { WorkflowError } from "../errors/workflow-error.mjs";
|
|
2
2
|
import "../errors/index.mjs";
|
|
3
3
|
|
|
4
|
-
//#region
|
|
4
|
+
//#region ../@warlock.js/ai/src/workflow/state.ts
|
|
5
5
|
/**
|
|
6
6
|
* Deep-clone workflow state. Uses `structuredClone` — handles Date,
|
|
7
7
|
* Map, Set, ArrayBuffer, nested objects, arrays, primitives. Throws
|
|
@@ -8,7 +8,7 @@ import { createCancelledError, sleep } from "./cancellation.mjs";
|
|
|
8
8
|
import { cloneState, deepFreeze } from "./state.mjs";
|
|
9
9
|
import { isAbortError, resolveBackoff, resolveRetryConfig } from "./retry.mjs";
|
|
10
10
|
|
|
11
|
-
//#region
|
|
11
|
+
//#region ../@warlock.js/ai/src/workflow/step-runner.ts
|
|
12
12
|
/**
|
|
13
13
|
* Narrow an `executionResult` to an `AgentResult` when the step ran
|
|
14
14
|
* an agent. Custom `run` steps return arbitrary values, so the
|
package/esm/workflow/step.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { StepDefinition } from "../contracts/workflow/step.contract.mjs";
|
|
2
2
|
|
|
3
|
-
//#region
|
|
3
|
+
//#region ../@warlock.js/ai/src/workflow/step.d.ts
|
|
4
4
|
/**
|
|
5
5
|
* `ai.step(def)` — pass-through factory used for authoring. Returns
|
|
6
6
|
* the definition object verbatim so the workflow engine can read it
|
package/esm/workflow/step.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { WorkflowError } from "../errors/workflow-error.mjs";
|
|
2
2
|
import "../errors/index.mjs";
|
|
3
3
|
|
|
4
|
-
//#region
|
|
4
|
+
//#region ../@warlock.js/ai/src/workflow/step.ts
|
|
5
5
|
/**
|
|
6
6
|
* `ai.step(def)` — pass-through factory used for authoring. Returns
|
|
7
7
|
* the definition object verbatim so the workflow engine can read it
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { WorkflowDefinition, WorkflowInstance } from "../contracts/workflow/workflow.contract.mjs";
|
|
2
2
|
|
|
3
|
-
//#region
|
|
3
|
+
//#region ../@warlock.js/ai/src/workflow/workflow.d.ts
|
|
4
4
|
/**
|
|
5
5
|
* `ai.workflow(def)` — construct a `WorkflowInstance`. Validates the
|
|
6
6
|
* definition, computes a stable structural signature, and wires up the
|
|
@@ -6,7 +6,7 @@ import { loadSnapshotForResume } from "./snapshot.mjs";
|
|
|
6
6
|
import { runWorkflow } from "./engine.mjs";
|
|
7
7
|
import { computeSignature } from "./signature.mjs";
|
|
8
8
|
|
|
9
|
-
//#region
|
|
9
|
+
//#region ../@warlock.js/ai/src/workflow/workflow.ts
|
|
10
10
|
/**
|
|
11
11
|
* `ai.workflow(def)` — construct a `WorkflowInstance`. Validates the
|
|
12
12
|
* definition, computes a stable structural signature, and wires up the
|
package/package.json
CHANGED
|
@@ -15,10 +15,10 @@
|
|
|
15
15
|
"@standard-schema/spec": "^1.0.0"
|
|
16
16
|
},
|
|
17
17
|
"peerDependencies": {
|
|
18
|
-
"@warlock.js/cache": "
|
|
19
|
-
"@warlock.js/logger": "
|
|
18
|
+
"@warlock.js/cache": "*",
|
|
19
|
+
"@warlock.js/logger": "*"
|
|
20
20
|
},
|
|
21
|
-
"version": "4.1.
|
|
21
|
+
"version": "4.1.8",
|
|
22
22
|
"main": "./cjs/index.cjs",
|
|
23
23
|
"module": "./esm/index.mjs",
|
|
24
24
|
"types": "./esm/index.d.mts",
|