fascicle 0.8.13 → 0.8.16

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/dist/mcp.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { G as Step, J as TrajectoryLogger } from "./index-CEj6hY9z.js";
2
- import { P as Tool } from "./index-C3NcdaSY.js";
2
+ import { P as Tool } from "./index-ORrmFF1x.js";
3
3
  import { z } from "zod";
4
4
  import { Client } from "@modelcontextprotocol/sdk/client/index.js";
5
5
  import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
package/dist/ui.d.ts ADDED
@@ -0,0 +1,48 @@
1
+ import { q as TrajectoryEvent } from "./index-CEj6hY9z.js";
2
+ import { UIMessageChunk } from "ai";
3
+ import { ServerResponse } from "node:http";
4
+
5
+ //#region src/ui/to_ui_message_stream.d.ts
6
+ /**
7
+ * The structural shape of a `run.stream(...)` handle. Typed structurally rather
8
+ * than importing the core `StreamingRunHandle` so this module depends on no
9
+ * core value and a caller can pass `run.stream(...)` directly.
10
+ */
11
+ type RunStreamLike = {
12
+ readonly events: AsyncIterable<TrajectoryEvent>;
13
+ readonly result: Promise<unknown>;
14
+ };
15
+ type ToUiStreamOptions = {
16
+ /** Map a thrown run error to the text of an `error` part. */readonly on_error?: (error: unknown) => string;
17
+ };
18
+ /**
19
+ * Per-stream state: which text/reasoning blocks are open (so `*-start` fires
20
+ * once and `*-end` closes them) and the tool name for each in-flight call (so
21
+ * `tool-input-available` can echo it after only the id arrives at close).
22
+ */
23
+ type UiMapperState = {
24
+ readonly open_text: Set<number>;
25
+ readonly open_reasoning: Set<number>;
26
+ readonly tool_names: Map<string, string>;
27
+ };
28
+ declare function create_ui_mapper_state(): UiMapperState;
29
+ declare function close_open_blocks(state: UiMapperState): UIMessageChunk[];
30
+ /**
31
+ * Map one run event to zero or more UI message chunks, advancing `state`.
32
+ * Non-`model_chunk` events (spans, cost, user emits) yield nothing in v1.
33
+ */
34
+ declare function to_ui_message_chunks(event: TrajectoryEvent, state: UiMapperState): UIMessageChunk[];
35
+ /**
36
+ * Turn a `run.stream(...)` handle into an SSE `Response` a `useChat` endpoint
37
+ * can return directly.
38
+ */
39
+ declare function to_ui_message_response(handle: RunStreamLike, options?: ToUiStreamOptions): Response;
40
+ /**
41
+ * Pipe a `run.stream(...)` handle to a Node `http.ServerResponse` as SSE, for
42
+ * `node:http` servers that hold a `ServerResponse` rather than returning a
43
+ * web `Response`.
44
+ */
45
+ declare function pipe_ui_message_stream_to_response(handle: RunStreamLike, response: ServerResponse, options?: ToUiStreamOptions): void;
46
+ //#endregion
47
+ export { type RunStreamLike, type ToUiStreamOptions, type UiMapperState, close_open_blocks, create_ui_mapper_state, pipe_ui_message_stream_to_response, to_ui_message_chunks, to_ui_message_response };
48
+ //# sourceMappingURL=ui.d.ts.map
package/dist/ui.js ADDED
@@ -0,0 +1,171 @@
1
+ import { createUIMessageStream, createUIMessageStreamResponse, pipeUIMessageStreamToResponse } from "ai";
2
+ //#region src/ui/to_ui_message_stream.ts
3
+ /**
4
+ * fascicle/ui — bridge a run's event stream to the AI SDK "UI message stream".
5
+ *
6
+ * `run.stream(flow, input)` yields `TrajectoryEvent`s; under streaming,
7
+ * `model_call` records `model_chunk` events carrying an engine `StreamChunk`.
8
+ * This module maps those chunks onto the AI SDK `UIMessageChunk` protocol so a
9
+ * fascicle flow can back a `useChat` endpoint rendered by AI Elements /
10
+ * Streamdown, with zero bespoke glue.
11
+ *
12
+ * It is the outbound inverse of the engine's inbound provider->StreamChunk
13
+ * mapping. The wire framing (SSE, `data:` lines, terminal `[DONE]`, the
14
+ * `x-vercel-ai-ui-message-stream` header) is owned by the `ai` builders; this
15
+ * file only translates chunk shapes and manages open text/reasoning blocks.
16
+ */
17
+ function create_ui_mapper_state() {
18
+ return {
19
+ open_text: /* @__PURE__ */ new Set(),
20
+ open_reasoning: /* @__PURE__ */ new Set(),
21
+ tool_names: /* @__PURE__ */ new Map()
22
+ };
23
+ }
24
+ function text_id(step_index) {
25
+ return `text-${step_index}`;
26
+ }
27
+ function reasoning_id(step_index) {
28
+ return `reasoning-${step_index}`;
29
+ }
30
+ function close_step_blocks(step_index, state) {
31
+ const parts = [];
32
+ if (state.open_text.delete(step_index)) parts.push({
33
+ type: "text-end",
34
+ id: text_id(step_index)
35
+ });
36
+ if (state.open_reasoning.delete(step_index)) parts.push({
37
+ type: "reasoning-end",
38
+ id: reasoning_id(step_index)
39
+ });
40
+ return parts;
41
+ }
42
+ function close_open_blocks(state) {
43
+ const parts = [];
44
+ for (const step_index of state.open_text) parts.push({
45
+ type: "text-end",
46
+ id: text_id(step_index)
47
+ });
48
+ for (const step_index of state.open_reasoning) parts.push({
49
+ type: "reasoning-end",
50
+ id: reasoning_id(step_index)
51
+ });
52
+ state.open_text.clear();
53
+ state.open_reasoning.clear();
54
+ return parts;
55
+ }
56
+ function map_chunk(chunk, state) {
57
+ switch (chunk.kind) {
58
+ case "text": {
59
+ const id = text_id(chunk.step_index);
60
+ const parts = [];
61
+ if (!state.open_text.has(chunk.step_index)) {
62
+ state.open_text.add(chunk.step_index);
63
+ parts.push({
64
+ type: "text-start",
65
+ id
66
+ });
67
+ }
68
+ parts.push({
69
+ type: "text-delta",
70
+ id,
71
+ delta: chunk.text
72
+ });
73
+ return parts;
74
+ }
75
+ case "reasoning": {
76
+ const id = reasoning_id(chunk.step_index);
77
+ const parts = [];
78
+ if (!state.open_reasoning.has(chunk.step_index)) {
79
+ state.open_reasoning.add(chunk.step_index);
80
+ parts.push({
81
+ type: "reasoning-start",
82
+ id
83
+ });
84
+ }
85
+ parts.push({
86
+ type: "reasoning-delta",
87
+ id,
88
+ delta: chunk.text
89
+ });
90
+ return parts;
91
+ }
92
+ case "tool_call_start":
93
+ state.tool_names.set(chunk.id, chunk.name);
94
+ return [{
95
+ type: "tool-input-start",
96
+ toolCallId: chunk.id,
97
+ toolName: chunk.name
98
+ }];
99
+ case "tool_call_input_delta": return [{
100
+ type: "tool-input-delta",
101
+ toolCallId: chunk.id,
102
+ inputTextDelta: chunk.delta
103
+ }];
104
+ case "tool_call_end": return [{
105
+ type: "tool-input-available",
106
+ toolCallId: chunk.id,
107
+ toolName: state.tool_names.get(chunk.id) ?? "",
108
+ input: chunk.input
109
+ }];
110
+ case "tool_result": return chunk.error !== void 0 ? [{
111
+ type: "tool-output-error",
112
+ toolCallId: chunk.id,
113
+ errorText: chunk.error.message
114
+ }] : [{
115
+ type: "tool-output-available",
116
+ toolCallId: chunk.id,
117
+ output: chunk.output
118
+ }];
119
+ case "step_finish": return close_step_blocks(chunk.step_index, state);
120
+ case "finish": return close_open_blocks(state);
121
+ default: return [];
122
+ }
123
+ }
124
+ function as_stream_chunk(value) {
125
+ if (typeof value !== "object" || value === null) return void 0;
126
+ if (typeof Reflect.get(value, "kind") !== "string") return void 0;
127
+ return value;
128
+ }
129
+ /**
130
+ * Map one run event to zero or more UI message chunks, advancing `state`.
131
+ * Non-`model_chunk` events (spans, cost, user emits) yield nothing in v1.
132
+ */
133
+ function to_ui_message_chunks(event, state) {
134
+ if (event.kind !== "model_chunk") return [];
135
+ const chunk = as_stream_chunk(event["chunk"]);
136
+ return chunk === void 0 ? [] : map_chunk(chunk, state);
137
+ }
138
+ function build_stream(handle, options) {
139
+ const on_error = options.on_error;
140
+ return createUIMessageStream({
141
+ execute: async ({ writer }) => {
142
+ const state = create_ui_mapper_state();
143
+ for await (const event of handle.events) for (const part of to_ui_message_chunks(event, state)) writer.write(part);
144
+ for (const part of close_open_blocks(state)) writer.write(part);
145
+ await handle.result;
146
+ },
147
+ ...on_error !== void 0 ? { onError: on_error } : {}
148
+ });
149
+ }
150
+ /**
151
+ * Turn a `run.stream(...)` handle into an SSE `Response` a `useChat` endpoint
152
+ * can return directly.
153
+ */
154
+ function to_ui_message_response(handle, options = {}) {
155
+ return createUIMessageStreamResponse({ stream: build_stream(handle, options) });
156
+ }
157
+ /**
158
+ * Pipe a `run.stream(...)` handle to a Node `http.ServerResponse` as SSE, for
159
+ * `node:http` servers that hold a `ServerResponse` rather than returning a
160
+ * web `Response`.
161
+ */
162
+ function pipe_ui_message_stream_to_response(handle, response, options = {}) {
163
+ pipeUIMessageStreamToResponse({
164
+ response,
165
+ stream: build_stream(handle, options)
166
+ });
167
+ }
168
+ //#endregion
169
+ export { close_open_blocks, create_ui_mapper_state, pipe_ui_message_stream_to_response, to_ui_message_chunks, to_ui_message_response };
170
+
171
+ //# sourceMappingURL=ui.js.map
package/dist/ui.js.map ADDED
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ui.js","names":[],"sources":["../src/ui/to_ui_message_stream.ts"],"sourcesContent":["/**\n * fascicle/ui — bridge a run's event stream to the AI SDK \"UI message stream\".\n *\n * `run.stream(flow, input)` yields `TrajectoryEvent`s; under streaming,\n * `model_call` records `model_chunk` events carrying an engine `StreamChunk`.\n * This module maps those chunks onto the AI SDK `UIMessageChunk` protocol so a\n * fascicle flow can back a `useChat` endpoint rendered by AI Elements /\n * Streamdown, with zero bespoke glue.\n *\n * It is the outbound inverse of the engine's inbound provider->StreamChunk\n * mapping. The wire framing (SSE, `data:` lines, terminal `[DONE]`, the\n * `x-vercel-ai-ui-message-stream` header) is owned by the `ai` builders; this\n * file only translates chunk shapes and manages open text/reasoning blocks.\n */\n\nimport {\n createUIMessageStream,\n createUIMessageStreamResponse,\n pipeUIMessageStreamToResponse,\n} from 'ai'\nimport type { UIMessageChunk } from 'ai'\nimport type { ServerResponse } from 'node:http'\nimport type { TrajectoryEvent } from '#core'\nimport type { StreamChunk } from '#engine'\n\n/**\n * The structural shape of a `run.stream(...)` handle. Typed structurally rather\n * than importing the core `StreamingRunHandle` so this module depends on no\n * core value and a caller can pass `run.stream(...)` directly.\n */\nexport type RunStreamLike = {\n readonly events: AsyncIterable<TrajectoryEvent>\n readonly result: Promise<unknown>\n}\n\nexport type ToUiStreamOptions = {\n /** Map a thrown run error to the text of an `error` part. */\n readonly on_error?: (error: unknown) => string\n}\n\n/**\n * Per-stream state: which text/reasoning blocks are open (so `*-start` fires\n * once and `*-end` closes them) and the tool name for each in-flight call (so\n * `tool-input-available` can echo it after only the id arrives at close).\n */\nexport type UiMapperState = {\n readonly open_text: Set<number>\n readonly open_reasoning: Set<number>\n readonly tool_names: Map<string, string>\n}\n\nexport function create_ui_mapper_state(): UiMapperState {\n return { open_text: new Set(), open_reasoning: new Set(), tool_names: new Map() }\n}\n\nfunction text_id(step_index: number): string {\n return `text-${step_index}`\n}\n\nfunction reasoning_id(step_index: number): string {\n return `reasoning-${step_index}`\n}\n\nfunction close_step_blocks(step_index: number, state: UiMapperState): UIMessageChunk[] {\n const parts: UIMessageChunk[] = []\n if (state.open_text.delete(step_index)) {\n parts.push({ type: 'text-end', id: text_id(step_index) })\n }\n if (state.open_reasoning.delete(step_index)) {\n parts.push({ type: 'reasoning-end', id: reasoning_id(step_index) })\n }\n return parts\n}\n\nexport function close_open_blocks(state: UiMapperState): UIMessageChunk[] {\n const parts: UIMessageChunk[] = []\n for (const step_index of state.open_text) {\n parts.push({ type: 'text-end', id: text_id(step_index) })\n }\n for (const step_index of state.open_reasoning) {\n parts.push({ type: 'reasoning-end', id: reasoning_id(step_index) })\n }\n state.open_text.clear()\n state.open_reasoning.clear()\n return parts\n}\n\nfunction map_chunk(chunk: StreamChunk, state: UiMapperState): UIMessageChunk[] {\n switch (chunk.kind) {\n case 'text': {\n const id = text_id(chunk.step_index)\n const parts: UIMessageChunk[] = []\n if (!state.open_text.has(chunk.step_index)) {\n state.open_text.add(chunk.step_index)\n parts.push({ type: 'text-start', id })\n }\n parts.push({ type: 'text-delta', id, delta: chunk.text })\n return parts\n }\n case 'reasoning': {\n const id = reasoning_id(chunk.step_index)\n const parts: UIMessageChunk[] = []\n if (!state.open_reasoning.has(chunk.step_index)) {\n state.open_reasoning.add(chunk.step_index)\n parts.push({ type: 'reasoning-start', id })\n }\n parts.push({ type: 'reasoning-delta', id, delta: chunk.text })\n return parts\n }\n case 'tool_call_start': {\n state.tool_names.set(chunk.id, chunk.name)\n return [{ type: 'tool-input-start', toolCallId: chunk.id, toolName: chunk.name }]\n }\n case 'tool_call_input_delta':\n return [{ type: 'tool-input-delta', toolCallId: chunk.id, inputTextDelta: chunk.delta }]\n case 'tool_call_end':\n return [\n {\n type: 'tool-input-available',\n toolCallId: chunk.id,\n toolName: state.tool_names.get(chunk.id) ?? '',\n input: chunk.input,\n },\n ]\n case 'tool_result':\n return chunk.error !== undefined\n ? [{ type: 'tool-output-error', toolCallId: chunk.id, errorText: chunk.error.message }]\n : [{ type: 'tool-output-available', toolCallId: chunk.id, output: chunk.output }]\n case 'step_finish':\n return close_step_blocks(chunk.step_index, state)\n case 'finish':\n return close_open_blocks(state)\n default:\n return []\n }\n}\n\nfunction as_stream_chunk(value: unknown): StreamChunk | undefined {\n if (typeof value !== 'object' || value === null) return undefined\n const kind = Reflect.get(value, 'kind')\n if (typeof kind !== 'string') return undefined\n // The value rode a loose TrajectoryEvent bag; model_call only records real\n // StreamChunks under `chunk`, and map_chunk narrows on `kind`, so treating it\n // as a StreamChunk is sound. Unknown kinds fall through to `[]`.\n // oxlint-disable-next-line typescript/no-unsafe-type-assertion\n return value as StreamChunk\n}\n\n/**\n * Map one run event to zero or more UI message chunks, advancing `state`.\n * Non-`model_chunk` events (spans, cost, user emits) yield nothing in v1.\n */\nexport function to_ui_message_chunks(\n event: TrajectoryEvent,\n state: UiMapperState,\n): UIMessageChunk[] {\n if (event.kind !== 'model_chunk') return []\n const chunk = as_stream_chunk(event['chunk'])\n return chunk === undefined ? [] : map_chunk(chunk, state)\n}\n\nfunction build_stream(\n handle: RunStreamLike,\n options: ToUiStreamOptions,\n): ReadableStream<UIMessageChunk> {\n const on_error = options.on_error\n return createUIMessageStream({\n execute: async ({ writer }) => {\n const state = create_ui_mapper_state()\n for await (const event of handle.events) {\n for (const part of to_ui_message_chunks(event, state)) writer.write(part)\n }\n for (const part of close_open_blocks(state)) writer.write(part)\n await handle.result\n },\n ...(on_error !== undefined ? { onError: on_error } : {}),\n })\n}\n\n/**\n * Turn a `run.stream(...)` handle into an SSE `Response` a `useChat` endpoint\n * can return directly.\n */\nexport function to_ui_message_response(\n handle: RunStreamLike,\n options: ToUiStreamOptions = {},\n): Response {\n return createUIMessageStreamResponse({ stream: build_stream(handle, options) })\n}\n\n/**\n * Pipe a `run.stream(...)` handle to a Node `http.ServerResponse` as SSE, for\n * `node:http` servers that hold a `ServerResponse` rather than returning a\n * web `Response`.\n */\nexport function pipe_ui_message_stream_to_response(\n handle: RunStreamLike,\n response: ServerResponse,\n options: ToUiStreamOptions = {},\n): void {\n pipeUIMessageStreamToResponse({ response, stream: build_stream(handle, options) })\n}\n"],"mappings":"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"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fascicle",
3
- "version": "0.8.13",
3
+ "version": "0.8.16",
4
4
  "description": "Compose agents like plain values. A TypeScript toolkit that wires LLM calls, tools, and functions into typed steps over eight providers. No framework, no ambient state.",
5
5
  "keywords": [
6
6
  "agents",
@@ -57,6 +57,10 @@
57
57
  "./stdio": {
58
58
  "types": "./dist/stdio.d.ts",
59
59
  "import": "./dist/stdio.js"
60
+ },
61
+ "./ui": {
62
+ "types": "./dist/ui.d.ts",
63
+ "import": "./dist/ui.js"
60
64
  }
61
65
  },
62
66
  "imports": {
@@ -66,7 +70,8 @@
66
70
  "#adapters": "./src/adapters/index.ts",
67
71
  "#viewer": "./src/viewer/index.ts",
68
72
  "#agents": "./src/agents/index.ts",
69
- "#stdio": "./src/stdio/index.ts"
73
+ "#stdio": "./src/stdio/index.ts",
74
+ "#ui": "./src/ui/index.ts"
70
75
  },
71
76
  "bin": {
72
77
  "fascicle-viewer": "./dist/bin/fascicle-viewer.js"