@warlock.js/ai 4.1.13 → 4.1.14

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.
Files changed (224) hide show
  1. package/cjs/index.cjs +86 -86
  2. package/esm/agent/agent-config.type.d.mts +1 -1
  3. package/esm/agent/agent-input-builder.mjs +1 -1
  4. package/esm/agent/agent-log-event.mjs +1 -1
  5. package/esm/agent/agent-stream.d.mts +1 -1
  6. package/esm/agent/agent-stream.mjs +1 -1
  7. package/esm/agent/agent-to-stream-event.mjs +1 -1
  8. package/esm/agent/agent.d.mts +1 -1
  9. package/esm/agent/agent.mjs +1 -1
  10. package/esm/agent/json-stream-guard.mjs +1 -1
  11. package/esm/ai.d.mts +1 -1
  12. package/esm/ai.mjs +1 -1
  13. package/esm/config.d.mts +1 -1
  14. package/esm/config.mjs +1 -1
  15. package/esm/contracts/agent/agent-options.type.d.mts +1 -1
  16. package/esm/contracts/agent/agent.contract.d.mts +1 -1
  17. package/esm/contracts/attachment.type.d.mts +1 -1
  18. package/esm/contracts/content-part.type.d.mts +1 -1
  19. package/esm/contracts/conversation-message.type.d.mts +1 -1
  20. package/esm/contracts/embedder.contract.d.mts +1 -1
  21. package/esm/contracts/end.type.d.mts +1 -1
  22. package/esm/contracts/end.type.mjs +1 -1
  23. package/esm/contracts/events/agent-events.type.d.mts +1 -1
  24. package/esm/contracts/events/complete-event.type.d.mts +1 -1
  25. package/esm/contracts/events/event-identity.type.d.mts +1 -1
  26. package/esm/contracts/events/event-map.type.d.mts +1 -1
  27. package/esm/contracts/events/supervisor-events.type.d.mts +1 -1
  28. package/esm/contracts/events/usage-event.type.d.mts +1 -1
  29. package/esm/contracts/events/workflow-events.type.d.mts +1 -1
  30. package/esm/contracts/executable.contract.d.mts +1 -1
  31. package/esm/contracts/finish-reason.type.d.mts +1 -1
  32. package/esm/contracts/middleware/middleware-context.type.d.mts +1 -1
  33. package/esm/contracts/middleware/middleware-state.type.d.mts +1 -1
  34. package/esm/contracts/middleware/middleware.contract.d.mts +1 -1
  35. package/esm/contracts/model-tool-call-request.type.d.mts +1 -1
  36. package/esm/contracts/model.contract.d.mts +1 -1
  37. package/esm/contracts/placeholders.type.d.mts +1 -1
  38. package/esm/contracts/result/agent-result.type.d.mts +1 -1
  39. package/esm/contracts/result/attempt-entry.type.d.mts +1 -1
  40. package/esm/contracts/result/base-report.type.d.mts +1 -1
  41. package/esm/contracts/result/base-report.type.mjs +1 -1
  42. package/esm/contracts/result/base-result.type.d.mts +1 -1
  43. package/esm/contracts/result/execute-result.type.d.mts +1 -1
  44. package/esm/contracts/result/execution-report.type.d.mts +1 -1
  45. package/esm/contracts/result/llm-trip.type.d.mts +1 -1
  46. package/esm/contracts/result/model-pricing.type.d.mts +1 -1
  47. package/esm/contracts/result/session-send-result.type.d.mts +1 -1
  48. package/esm/contracts/result/step-result.type.d.mts +1 -1
  49. package/esm/contracts/result/supervisor-result.type.d.mts +1 -1
  50. package/esm/contracts/result/tool-call.type.d.mts +1 -1
  51. package/esm/contracts/result/usage.type.d.mts +1 -1
  52. package/esm/contracts/result/workflow-result.type.d.mts +1 -1
  53. package/esm/contracts/sdk-adapter.contract.d.mts +1 -1
  54. package/esm/contracts/stream/stream-event.type.d.mts +1 -1
  55. package/esm/contracts/stream/stream.contract.d.mts +1 -1
  56. package/esm/contracts/streaming-tool-guard-config.type.d.mts +1 -1
  57. package/esm/contracts/supervisor/ack-entry.type.d.mts +1 -1
  58. package/esm/contracts/supervisor/classifier-context.type.d.mts +1 -1
  59. package/esm/contracts/supervisor/dispatch-context.type.d.mts +1 -1
  60. package/esm/contracts/supervisor/evaluate-context.type.d.mts +1 -1
  61. package/esm/contracts/supervisor/intent-entry.type.d.mts +1 -1
  62. package/esm/contracts/supervisor/iteration-snapshot.type.d.mts +1 -1
  63. package/esm/contracts/supervisor/next.type.d.mts +1 -1
  64. package/esm/contracts/supervisor/route-context.type.d.mts +1 -1
  65. package/esm/contracts/supervisor/router-entry.type.d.mts +1 -1
  66. package/esm/contracts/supervisor/supervisor-config.type.d.mts +1 -1
  67. package/esm/contracts/supervisor/supervisor-execute-options.type.d.mts +1 -1
  68. package/esm/contracts/supervisor/supervisor-input.type.d.mts +1 -1
  69. package/esm/contracts/supervisor/supervisor-snapshot.type.d.mts +1 -1
  70. package/esm/contracts/supervisor/supervisor-stream-event.type.d.mts +1 -1
  71. package/esm/contracts/supervisor/supervisor.contract.d.mts +1 -1
  72. package/esm/contracts/system-prompt.contract.d.mts +1 -1
  73. package/esm/contracts/tool.contract.d.mts +1 -1
  74. package/esm/contracts/workflow/next-step-result.type.d.mts +1 -1
  75. package/esm/contracts/workflow/retry-config.type.d.mts +1 -1
  76. package/esm/contracts/workflow/step.contract.d.mts +1 -1
  77. package/esm/contracts/workflow/workflow-context.type.d.mts +1 -1
  78. package/esm/contracts/workflow/workflow-snapshot.type.d.mts +1 -1
  79. package/esm/contracts/workflow/workflow.contract.d.mts +1 -1
  80. package/esm/errors/agent-cancelled-error.d.mts +1 -1
  81. package/esm/errors/agent-cancelled-error.mjs +1 -1
  82. package/esm/errors/agent-execution-error.d.mts +1 -1
  83. package/esm/errors/agent-execution-error.mjs +1 -1
  84. package/esm/errors/agent-max-trips-error.d.mts +1 -1
  85. package/esm/errors/agent-max-trips-error.mjs +1 -1
  86. package/esm/errors/ai-error.d.mts +1 -1
  87. package/esm/errors/ai-error.mjs +1 -1
  88. package/esm/errors/budget-exceeded-error.d.mts +1 -1
  89. package/esm/errors/budget-exceeded-error.mjs +1 -1
  90. package/esm/errors/content-filter-error.d.mts +1 -1
  91. package/esm/errors/content-filter-error.mjs +1 -1
  92. package/esm/errors/context-length-exceeded-error.d.mts +1 -1
  93. package/esm/errors/context-length-exceeded-error.mjs +1 -1
  94. package/esm/errors/error-category.type.d.mts +1 -1
  95. package/esm/errors/error-code.type.d.mts +1 -1
  96. package/esm/errors/guardrail-violation-error.d.mts +1 -1
  97. package/esm/errors/guardrail-violation-error.mjs +1 -1
  98. package/esm/errors/invalid-request-error.d.mts +1 -1
  99. package/esm/errors/invalid-request-error.mjs +1 -1
  100. package/esm/errors/max-iterations-error.d.mts +1 -1
  101. package/esm/errors/max-iterations-error.mjs +1 -1
  102. package/esm/errors/max-steps-exceeded-error.d.mts +1 -1
  103. package/esm/errors/max-steps-exceeded-error.mjs +1 -1
  104. package/esm/errors/provider-auth-error.d.mts +1 -1
  105. package/esm/errors/provider-auth-error.mjs +1 -1
  106. package/esm/errors/provider-error.d.mts +1 -1
  107. package/esm/errors/provider-error.mjs +1 -1
  108. package/esm/errors/provider-rate-limit-error.d.mts +1 -1
  109. package/esm/errors/provider-rate-limit-error.mjs +1 -1
  110. package/esm/errors/provider-timeout-error.d.mts +1 -1
  111. package/esm/errors/provider-timeout-error.mjs +1 -1
  112. package/esm/errors/quota-exceeded-error.d.mts +1 -1
  113. package/esm/errors/quota-exceeded-error.mjs +1 -1
  114. package/esm/errors/routing-error.d.mts +1 -1
  115. package/esm/errors/routing-error.mjs +1 -1
  116. package/esm/errors/schema-validation-error.d.mts +1 -1
  117. package/esm/errors/schema-validation-error.mjs +1 -1
  118. package/esm/errors/step-failed-error.d.mts +1 -1
  119. package/esm/errors/step-failed-error.mjs +1 -1
  120. package/esm/errors/supervisor-cancelled-error.d.mts +1 -1
  121. package/esm/errors/supervisor-cancelled-error.mjs +1 -1
  122. package/esm/errors/supervisor-drift-error.d.mts +1 -1
  123. package/esm/errors/supervisor-drift-error.mjs +1 -1
  124. package/esm/errors/supervisor-failed-error.d.mts +1 -1
  125. package/esm/errors/supervisor-failed-error.mjs +1 -1
  126. package/esm/errors/supervisor-routing-error.d.mts +1 -1
  127. package/esm/errors/supervisor-routing-error.mjs +1 -1
  128. package/esm/errors/tool-execution-error.d.mts +1 -1
  129. package/esm/errors/tool-execution-error.mjs +1 -1
  130. package/esm/errors/workflow-cancelled-error.d.mts +1 -1
  131. package/esm/errors/workflow-cancelled-error.mjs +1 -1
  132. package/esm/errors/workflow-drift-error.d.mts +1 -1
  133. package/esm/errors/workflow-drift-error.mjs +1 -1
  134. package/esm/errors/workflow-error.d.mts +1 -1
  135. package/esm/errors/workflow-error.mjs +1 -1
  136. package/esm/middleware/builtins/budget.d.mts +1 -1
  137. package/esm/middleware/builtins/budget.mjs +1 -1
  138. package/esm/middleware/builtins/guardrail.d.mts +1 -1
  139. package/esm/middleware/builtins/guardrail.mjs +1 -1
  140. package/esm/middleware/builtins/semantic-cache.d.mts +1 -1
  141. package/esm/middleware/builtins/semantic-cache.mjs +1 -1
  142. package/esm/middleware/helpers/compose.d.mts +1 -1
  143. package/esm/middleware/helpers/compose.mjs +1 -1
  144. package/esm/middleware/helpers/for-tool.d.mts +1 -1
  145. package/esm/middleware/helpers/for-tool.mjs +1 -1
  146. package/esm/middleware/pipeline.d.mts +1 -1
  147. package/esm/middleware/pipeline.mjs +1 -1
  148. package/esm/middleware/utils/extract-user-text.d.mts +1 -1
  149. package/esm/middleware/utils/extract-user-text.mjs +1 -1
  150. package/esm/middleware/utils/namespaced-state.d.mts +1 -1
  151. package/esm/middleware/utils/namespaced-state.mjs +1 -1
  152. package/esm/mock/mock-agent.d.mts +1 -1
  153. package/esm/mock/mock-agent.mjs +1 -1
  154. package/esm/mock/mock-config.type.d.mts +1 -1
  155. package/esm/mock/mock-model.d.mts +1 -1
  156. package/esm/mock/mock-model.mjs +1 -1
  157. package/esm/mock/mock-sdk.d.mts +1 -1
  158. package/esm/mock/mock-sdk.mjs +1 -1
  159. package/esm/supervisor/as-tool.d.mts +1 -1
  160. package/esm/supervisor/as-tool.mjs +1 -1
  161. package/esm/supervisor/cancellation.d.mts +1 -1
  162. package/esm/supervisor/cancellation.mjs +1 -1
  163. package/esm/supervisor/decide.mjs +1 -1
  164. package/esm/supervisor/emitter.d.mts +1 -1
  165. package/esm/supervisor/emitter.mjs +1 -1
  166. package/esm/supervisor/entries.d.mts +1 -1
  167. package/esm/supervisor/entries.mjs +1 -1
  168. package/esm/supervisor/execution.d.mts +1 -1
  169. package/esm/supervisor/execution.mjs +1 -1
  170. package/esm/supervisor/router-prompt.d.mts +1 -1
  171. package/esm/supervisor/router-prompt.mjs +1 -1
  172. package/esm/supervisor/signature.d.mts +1 -1
  173. package/esm/supervisor/signature.mjs +1 -1
  174. package/esm/supervisor/snapshot.d.mts +1 -1
  175. package/esm/supervisor/snapshot.mjs +1 -1
  176. package/esm/supervisor/supervisor-stream.d.mts +1 -1
  177. package/esm/supervisor/supervisor-stream.mjs +1 -1
  178. package/esm/supervisor/supervisor.d.mts +1 -1
  179. package/esm/supervisor/supervisor.mjs +1 -1
  180. package/esm/system-prompt/instruction.d.mts +1 -1
  181. package/esm/system-prompt/instruction.mjs +1 -1
  182. package/esm/system-prompt/persona.d.mts +1 -1
  183. package/esm/system-prompt/persona.mjs +1 -1
  184. package/esm/system-prompt/render-placeholders.d.mts +1 -1
  185. package/esm/system-prompt/render-placeholders.mjs +1 -1
  186. package/esm/system-prompt/system-prompt.d.mts +1 -1
  187. package/esm/system-prompt/system-prompt.mjs +1 -1
  188. package/esm/tool/tool.d.mts +1 -1
  189. package/esm/tool/tool.mjs +1 -1
  190. package/esm/utils/compute-cost.d.mts +1 -1
  191. package/esm/utils/compute-cost.mjs +1 -1
  192. package/esm/utils/extract-json-payload.d.mts +1 -1
  193. package/esm/utils/extract-json-payload.mjs +1 -1
  194. package/esm/utils/generate-run-id.d.mts +1 -1
  195. package/esm/utils/generate-run-id.mjs +1 -1
  196. package/esm/utils/json-schema.d.mts +1 -1
  197. package/esm/utils/json-schema.mjs +1 -1
  198. package/esm/utils/prepare-attachment-part.d.mts +1 -1
  199. package/esm/utils/prepare-attachment-part.mjs +1 -1
  200. package/esm/utils/resolve-attachment.d.mts +1 -1
  201. package/esm/utils/resolve-attachment.mjs +1 -1
  202. package/esm/utils/safe-json-parse.d.mts +1 -1
  203. package/esm/utils/safe-json-parse.mjs +1 -1
  204. package/esm/utils/stamp-report-lineage.d.mts +1 -1
  205. package/esm/utils/stamp-report-lineage.mjs +1 -1
  206. package/esm/utils/token-count.d.mts +1 -1
  207. package/esm/utils/token-count.mjs +1 -1
  208. package/esm/workflow/as-tool.mjs +1 -1
  209. package/esm/workflow/cancellation.mjs +1 -1
  210. package/esm/workflow/emitter.mjs +1 -1
  211. package/esm/workflow/engine.mjs +1 -1
  212. package/esm/workflow/retry.mjs +1 -1
  213. package/esm/workflow/router.mjs +1 -1
  214. package/esm/workflow/run-scoped-emitter.mjs +1 -1
  215. package/esm/workflow/signature.d.mts +1 -1
  216. package/esm/workflow/signature.mjs +1 -1
  217. package/esm/workflow/snapshot.mjs +1 -1
  218. package/esm/workflow/state.mjs +1 -1
  219. package/esm/workflow/step-runner.mjs +1 -1
  220. package/esm/workflow/step.d.mts +1 -1
  221. package/esm/workflow/step.mjs +1 -1
  222. package/esm/workflow/workflow.d.mts +1 -1
  223. package/esm/workflow/workflow.mjs +1 -1
  224. package/package.json +1 -1
@@ -1,4 +1,4 @@
1
- //#region ../@warlock.js/ai/src/utils/extract-json-payload.ts
1
+ //#region ../../@warlock.js/ai/src/utils/extract-json-payload.ts
2
2
  /**
3
3
  * Strip markdown code fences from an LLM response before JSON parsing.
4
4
  *
@@ -1,4 +1,4 @@
1
- //#region ../@warlock.js/ai/src/utils/generate-run-id.d.ts
1
+ //#region ../../@warlock.js/ai/src/utils/generate-run-id.d.ts
2
2
  /**
3
3
  * Generates a stable, human-readable run id for any execution node
4
4
  * (tool invocation, agent run, workflow run, supervisor run). Format:
@@ -1,4 +1,4 @@
1
- //#region ../@warlock.js/ai/src/utils/generate-run-id.ts
1
+ //#region ../../@warlock.js/ai/src/utils/generate-run-id.ts
2
2
  /**
3
3
  * Generates a stable, human-readable run id for any execution node
4
4
  * (tool invocation, agent run, workflow run, supervisor run). Format:
@@ -1,6 +1,6 @@
1
1
  import { StandardSchemaV1 } from "@standard-schema/spec";
2
2
 
3
- //#region ../@warlock.js/ai/src/utils/json-schema.d.ts
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,4 +1,4 @@
1
- //#region ../@warlock.js/ai/src/utils/json-schema.ts
1
+ //#region ../../@warlock.js/ai/src/utils/json-schema.ts
2
2
  /**
3
3
  * Best-effort JSON Schema extraction from a Standard Schema instance.
4
4
  *
@@ -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 ../@warlock.js/ai/src/utils/prepare-attachment-part.d.ts
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 ../@warlock.js/ai/src/utils/prepare-attachment-part.ts
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 ../@warlock.js/ai/src/utils/resolve-attachment.d.ts
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 ../@warlock.js/ai/src/utils/resolve-attachment.ts
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 ../@warlock.js/ai/src/utils/safe-json-parse.d.ts
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 ../@warlock.js/ai/src/utils/safe-json-parse.ts
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 ../@warlock.js/ai/src/utils/stamp-report-lineage.d.ts
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 ../@warlock.js/ai/src/utils/stamp-report-lineage.ts
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:
@@ -1,4 +1,4 @@
1
- //#region ../@warlock.js/ai/src/utils/token-count.d.ts
1
+ //#region ../../@warlock.js/ai/src/utils/token-count.d.ts
2
2
  /**
3
3
  * Approximate the number of tokens in a string.
4
4
  *
@@ -1,4 +1,4 @@
1
- //#region ../@warlock.js/ai/src/utils/token-count.ts
1
+ //#region ../../@warlock.js/ai/src/utils/token-count.ts
2
2
  /**
3
3
  * Approximate the number of tokens in a string.
4
4
  *
@@ -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 ../@warlock.js/ai/src/workflow/as-tool.ts
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 ../@warlock.js/ai/src/workflow/cancellation.ts
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).
@@ -1,4 +1,4 @@
1
- //#region ../@warlock.js/ai/src/workflow/emitter.ts
1
+ //#region ../../@warlock.js/ai/src/workflow/emitter.ts
2
2
  /**
3
3
  * Three-tier workflow event emitter — factory (definition) → instance →
4
4
  * per-execution. All matching handlers fire, in layer order. Handler
@@ -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 ../@warlock.js/ai/src/workflow/engine.ts
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";
@@ -1,4 +1,4 @@
1
- //#region ../@warlock.js/ai/src/workflow/retry.ts
1
+ //#region ../../@warlock.js/ai/src/workflow/retry.ts
2
2
  const DEFAULT_BACKOFF_CAP_MS = 3e4;
3
3
  function resolveBackoff(attempt, backoff) {
4
4
  const value = (() => {
@@ -1,7 +1,7 @@
1
1
  import { RoutingError } from "../errors/routing-error.mjs";
2
2
  import "../errors/index.mjs";
3
3
 
4
- //#region ../@warlock.js/ai/src/workflow/router.ts
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,4 +1,4 @@
1
- //#region ../@warlock.js/ai/src/workflow/run-scoped-emitter.ts
1
+ //#region ../../@warlock.js/ai/src/workflow/run-scoped-emitter.ts
2
2
  /**
3
3
  * Bind a factory-scoped `WorkflowEmitter` to one run's identity.
4
4
  *
@@ -1,6 +1,6 @@
1
1
  import { WorkflowDefinition } from "../contracts/workflow/workflow.contract.mjs";
2
2
 
3
- //#region ../@warlock.js/ai/src/workflow/signature.d.ts
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 ../@warlock.js/ai/src/workflow/signature.ts
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 ../@warlock.js/ai/src/workflow/snapshot.ts
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
@@ -1,7 +1,7 @@
1
1
  import { WorkflowError } from "../errors/workflow-error.mjs";
2
2
  import "../errors/index.mjs";
3
3
 
4
- //#region ../@warlock.js/ai/src/workflow/state.ts
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 ../@warlock.js/ai/src/workflow/step-runner.ts
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
@@ -1,6 +1,6 @@
1
1
  import { StepDefinition } from "../contracts/workflow/step.contract.mjs";
2
2
 
3
- //#region ../@warlock.js/ai/src/workflow/step.d.ts
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
@@ -1,7 +1,7 @@
1
1
  import { WorkflowError } from "../errors/workflow-error.mjs";
2
2
  import "../errors/index.mjs";
3
3
 
4
- //#region ../@warlock.js/ai/src/workflow/step.ts
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 ../@warlock.js/ai/src/workflow/workflow.d.ts
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 ../@warlock.js/ai/src/workflow/workflow.ts
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
@@ -18,7 +18,7 @@
18
18
  "@warlock.js/cache": "*",
19
19
  "@warlock.js/logger": "*"
20
20
  },
21
- "version": "4.1.13",
21
+ "version": "4.1.14",
22
22
  "main": "./cjs/index.cjs",
23
23
  "module": "./esm/index.mjs",
24
24
  "types": "./esm/index.d.mts",