@agentic-surfaces/core 0.1.5 → 0.1.7

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.
@@ -10,7 +10,13 @@ export const agentHandler = {
10
10
  model,
11
11
  mcpServers,
12
12
  context: Object.fromEntries(ctx.outputs),
13
+ decisionSchema: cfg.decision,
13
14
  });
15
+ // With a decision schema, surface the decision's fields at the top level so
16
+ // jsonata (e.g. task.branch `interpret.action`) can route on them; keep .text.
17
+ if (cfg.decision && result.data && typeof result.data === "object" && !Array.isArray(result.data)) {
18
+ return { output: { ...result.data, text: result.text } };
19
+ }
14
20
  return { output: result };
15
21
  },
16
22
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agentic-surfaces/core",
3
- "version": "0.1.5",
3
+ "version": "0.1.7",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "publishConfig": {
@@ -23,7 +23,7 @@
23
23
  "jsonata": "^2.2.1",
24
24
  "yaml": "^2.9.0",
25
25
  "zod": "^4.4.3",
26
- "@agentic-surfaces/agent": "0.1.5"
26
+ "@agentic-surfaces/agent": "0.1.7"
27
27
  },
28
28
  "devDependencies": {
29
29
  "@types/better-sqlite3": "^7.6.13",