@happyvertical/smrt-chat 0.62.2 → 0.62.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.
- package/README.md +5 -0
- package/agents/assistant-turn-runs.md +17 -0
- package/dist/chunks/{chat-stream-B9pFoVx_.js → chat-stream-Cvl2kFvI.js} +2 -2
- package/dist/chunks/{chat-stream-B9pFoVx_.js.map → chat-stream-Cvl2kFvI.js.map} +1 -1
- package/dist/engines.js +1 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +47 -3
- package/dist/index.js.map +1 -1
- package/dist/manifest.json +1 -1
- package/dist/smrt-knowledge.json +8 -5
- package/dist/smrt-knowledge.okf.md +2 -2
- package/dist/svelte/components/assistant/AssistantDock.svelte +14 -0
- package/dist/svelte/components/assistant/assistant-markdown.d.ts +6 -1
- package/dist/svelte/components/assistant/assistant-markdown.d.ts.map +1 -1
- package/dist/svelte/components/assistant/assistant-markdown.js +67 -1
- package/dist/sveltekit.js +1 -1
- package/dist/tool-summary.d.ts.map +1 -1
- package/dist/tool-summary.js +7 -2
- package/dist/tool-summary.js.map +1 -1
- package/dist/workflow-step-turn.d.ts +17 -0
- package/dist/workflow-step-turn.d.ts.map +1 -0
- package/package.json +20 -20
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`.
|