@happyvertical/smrt-chat 0.62.3 → 0.62.5

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 CHANGED
@@ -43,6 +43,11 @@ See [turn-driver contracts and callback example](agents/turn-drivers.md),
43
43
  including MCP authorization responsibilities, engine status, and browser
44
44
  continuation limits.
45
45
 
46
+ A host without chat storage can run a tool-free workflow child turn with
47
+ `runWorkflowStepTurn` from the package root. It reuses the internal-turn run,
48
+ handoff, tracked calls and parent budget/fence; the host supplies its engine
49
+ and validates the returned JSON. See [child-turn accounting](agents/assistant-turn-runs.md).
50
+
46
51
  ## Data-surface bridge security
47
52
 
48
53
  The `./data-surface-bridge` entry point is the server half of the browser data-
@@ -72,3 +72,20 @@ when the turn ends a stopped or cancelled child stops the parent the same way
72
72
  closes the `handoff` with how the child ended. A step on an external engine
73
73
  is the same child run with its one engine call. Tests:
74
74
  `turn-tracking-child.test.ts`.
75
+
76
+
77
+ ### Tool-free hosts without chat storage
78
+
79
+ `runWorkflowStepTurn(options: WorkflowStepTurnOptions): Promise<string>` is the
80
+ same internal child-turn runner for a host with no chat rooms, session or HTTP
81
+ request. Pass `tracking` with its resolved registered `prompt`, tenant-bound
82
+ `tracked` client and required `parent: { context, stepIndex, name }`, the
83
+ server-authorized `principal`, `selection`, `signal`, and either `ai` or
84
+ `turnDriver`. It offers no tools, persists no chat messages and returns the raw
85
+ answer for the workflow's schema/check. External drivers must also deny tools
86
+ at their MCP execution boundary. Never expose this trusted API as request input.
87
+ The existing `chatClientForTracking(ai: object)` adapter is also exported from
88
+ the root so a host can bind its chat-only provider to core without duplicating
89
+ the adapter. It preserves parent budget stops and claim errors rather than returning a
90
+ synthetic chat error as plan output. Existing route and turn callers are
91
+ unchanged. Tests: `workflow-step-turn.test.ts`.