@anureo/workflow 0.3.3 → 0.3.4

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 (2) hide show
  1. package/package.json +1 -1
  2. package/src/agent.ts +2 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@anureo/workflow",
3
- "version": "0.3.3",
3
+ "version": "0.3.4",
4
4
  "description": "Agent execution, composition, and durable workflow steps over the Anureo SDK",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
package/src/agent.ts CHANGED
@@ -55,7 +55,8 @@ async function memoizedAgent<S extends z.ZodObject>(
55
55
  const call = {
56
56
  prompt,
57
57
  canonical: canonicalOptions(options, output?.schema),
58
- inputHookRevision: options.client.inputHookRevision,
58
+ // Older SDK clients have no input-hook revision; the journal key tolerates undefined.
59
+ inputHookRevision: (options.client as { inputHookRevision?: string }).inputHookRevision,
59
60
  }
60
61
  const execute = () => executeAgent(prompt, options) as Promise<JsonValue | null>
61
62
  if (output) return journaledCall(call, execute, stored => output.parse(canonicalJson(stored)) as z.output<S>)