yaml-flow 8.4.25 → 8.5.1
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/browser/asset-integrity.json +3 -3
- package/browser/board-livecards-client.js +1 -1
- package/cli/browser-api/board-live-cards-browser-adapter.d.ts +1 -1
- package/cli/browser-api/board-live-cards-browser-adapter.js +1 -1
- package/cli/bundled/board-live-cards-cli.mjs +14 -14
- package/cli/bundled/chat-store-cli.mjs +13 -13
- package/cli/{types-juH2nFpz.d.ts → types-H3EMBPY2.d.ts} +10 -4
- package/examples/board/demo-shell-with-server.html +2 -2
- package/examples/board/doc.html +2 -2
- package/examples/board/server/README-mcp-api.md +680 -0
- package/examples/board/server/board-server.js +4 -0
- package/examples/board/server/chat-flow/copilot-chat/assistant.js +4 -2
- package/examples/board/server/chat-flow/flow-steps.json +9 -8
- package/examples/board/test/server-http-mcp-test.js +1148 -0
- package/examples/board/test/server-http-test.js +7 -7
- package/examples/board-local/demo-shell-localstorage.html +3 -3
- package/lib/artifacts-store-public.d.cts +1 -1
- package/lib/artifacts-store-public.d.ts +1 -1
- package/lib/board-live-cards-mcp.cjs +2 -0
- package/lib/board-live-cards-mcp.d.cts +296 -0
- package/lib/board-live-cards-mcp.d.ts +296 -0
- package/lib/board-live-cards-mcp.js +2 -0
- package/lib/board-live-cards-node.cjs +14 -14
- package/lib/board-live-cards-node.d.cts +8 -6
- package/lib/board-live-cards-node.d.ts +8 -6
- package/lib/board-live-cards-node.js +14 -14
- package/lib/{board-live-cards-public-B4RcYPC_.d.cts → board-live-cards-public-B13InXhC.d.cts} +8 -3
- package/lib/{board-live-cards-public-ydXuA4zh.d.ts → board-live-cards-public-BGS22cMb.d.ts} +8 -3
- package/lib/board-live-cards-public.cjs +1 -1
- package/lib/board-live-cards-public.d.cts +1 -1
- package/lib/board-live-cards-public.d.ts +1 -1
- package/lib/board-live-cards-public.js +1 -1
- package/lib/board-live-cards-server-runtime.cjs +5 -4
- package/lib/board-live-cards-server-runtime.d.cts +3 -3
- package/lib/board-live-cards-server-runtime.d.ts +3 -3
- package/lib/board-live-cards-server-runtime.js +5 -4
- package/lib/card-store-public.d.cts +1 -1
- package/lib/card-store-public.d.ts +1 -1
- package/lib/{chat-storage-lib-B1wU27y3.d.cts → chat-storage-lib-0imhRX3l.d.cts} +2 -1
- package/lib/{chat-storage-lib-DsF4kPon.d.ts → chat-storage-lib-CJn7a6OH.d.ts} +2 -1
- package/lib/chat-store-public.cjs +1 -1
- package/lib/chat-store-public.d.cts +7 -2
- package/lib/chat-store-public.d.ts +7 -2
- package/lib/chat-store-public.js +1 -1
- package/lib/server-runtime/index.cjs +5 -4
- package/lib/server-runtime/index.d.cts +4 -4
- package/lib/server-runtime/index.d.ts +4 -4
- package/lib/server-runtime/index.js +5 -4
- package/lib/{types-DwPRb-PY.d.ts → types-30R357js.d.ts} +3 -2
- package/lib/{types-BpfMamGs.d.cts → types-CIgsh56O.d.cts} +3 -2
- package/package.json +10 -2
- package/browser/board-livecards-localstorage.js +0 -10
|
@@ -239,7 +239,7 @@ interface BoardNonCorePlatformAdapter extends BoardPlatformAdapter {
|
|
|
239
239
|
* Each field can also be overridden per-source via source_def.timeout.
|
|
240
240
|
*
|
|
241
241
|
* validationMs — validate-source-def, validate-card-preflight (structural, fast). Default: 10_000.
|
|
242
|
-
|
|
242
|
+
* preflightMs — source preflight executor hooks (probe-source-preflight). Default: 60_000.
|
|
243
243
|
* probeMs — run-source-fetch in probe/simulation paths. Default: 60_000.
|
|
244
244
|
* describeMs — describe-capabilities introspection. Default: 10_000.
|
|
245
245
|
*/
|
|
@@ -270,7 +270,12 @@ interface BoardLiveCardsNonCorePublic {
|
|
|
270
270
|
/** body: { "card-content": <card>, "mock-projections"?: {} }; params: sourceIdx, outRef? — card JSON arrives via stdin; no board state needed */
|
|
271
271
|
probeSourcePreflight(input: CommandInput): CommandResult;
|
|
272
272
|
/** body: { "card-content": <card>, "mock-projections"?: {} }; params: sourceIdx, outRef? — runs the real source fetch flow as a preflight */
|
|
273
|
-
runSourcePreflight(input: CommandInput): CommandResult
|
|
273
|
+
runSourcePreflight(input: CommandInput): CommandResult<{
|
|
274
|
+
bindTo: string;
|
|
275
|
+
ok: boolean;
|
|
276
|
+
result: unknown;
|
|
277
|
+
issues: string[];
|
|
278
|
+
}>;
|
|
274
279
|
/** body: { "card-content": <card>, "mock-fetched-sources"?: {}, "mock-requires"?: {} } — evaluates compute expressions with supplied data; no board state needed */
|
|
275
280
|
evalCardCompute(input: CommandInput): CommandResult<{
|
|
276
281
|
cardId: string;
|
|
@@ -318,6 +323,7 @@ interface ChatRecord {
|
|
|
318
323
|
role: string;
|
|
319
324
|
text: string;
|
|
320
325
|
files: unknown[];
|
|
326
|
+
turn: string;
|
|
321
327
|
updated_at: string;
|
|
322
328
|
}
|
|
323
329
|
interface ChatConfig {
|
|
@@ -330,7 +336,7 @@ interface ChatReadAfterResult {
|
|
|
330
336
|
}
|
|
331
337
|
interface ChatStorage {
|
|
332
338
|
/** Append a message; returns the new entry id (usable as a cursor). */
|
|
333
|
-
append(cardId: string, role: string, text: string, files?: unknown[]): string;
|
|
339
|
+
append(cardId: string, role: string, text: string, files?: unknown[], turn?: string): string;
|
|
334
340
|
/** Read all messages in insertion order. */
|
|
335
341
|
readAll(cardId: string): ChatRecord[];
|
|
336
342
|
/**
|
|
@@ -389,4 +395,4 @@ interface DescribeEnvelope {
|
|
|
389
395
|
supports?: string[];
|
|
390
396
|
}
|
|
391
397
|
|
|
392
|
-
export { type BoardPlatformAdapter as B, type ChatStorage as C, type DescribeEnvelope as D, type InvocationAdapter as I, type NotificationTransport as N, type CommandInput as a, type CommandResult as b, type
|
|
398
|
+
export { type BoardPlatformAdapter as B, type ChatStorage as C, type DescribeEnvelope as D, type InvocationAdapter as I, type NotificationTransport as N, type CommandInput as a, type CommandResult as b, type ChatRecord as c, type ChatReadAfterResult as d, type ChatConfig as e, type BoardNonCorePlatformAdapter as f, type BoardLiveCardsNonCorePublic as g, type BoardLiveCardsPublic as h, createBoardLiveCardsNonCorePublic as i, createBoardLiveCardsPublic as j, createChatStorage as k, createInMemoryChatStorage as l };
|
|
@@ -19,8 +19,8 @@
|
|
|
19
19
|
<script src="https://cdn.jsdelivr.net/npm/marked/marked.min.js"></script>
|
|
20
20
|
<script src="https://cdn.jsdelivr.net/npm/dompurify/dist/purify.min.js"></script>
|
|
21
21
|
<script src="https://cdn.jsdelivr.net/npm/leader-line/leader-line.min.js"></script>
|
|
22
|
-
<script src="https://cdn.jsdelivr.net/npm/yaml-flow@8.
|
|
23
|
-
<script src="https://cdn.jsdelivr.net/npm/yaml-flow@8.
|
|
22
|
+
<script src="https://cdn.jsdelivr.net/npm/yaml-flow@8.5.1/browser/live-cards.js"></script>
|
|
23
|
+
<script src="https://cdn.jsdelivr.net/npm/yaml-flow@8.5.1/browser/board-livecards-client.js"></script>
|
|
24
24
|
</head>
|
|
25
25
|
<body class="bg-light">
|
|
26
26
|
<div class="container-fluid py-3">
|
package/examples/board/doc.html
CHANGED
|
@@ -37,8 +37,8 @@
|
|
|
37
37
|
<script src="https://cdn.jsdelivr.net/npm/marked/marked.min.js"></script>
|
|
38
38
|
<script src="https://cdn.jsdelivr.net/npm/dompurify/dist/purify.min.js"></script>
|
|
39
39
|
<script src="https://cdn.jsdelivr.net/npm/leader-line/leader-line.min.js"></script>
|
|
40
|
-
<script src="https://cdn.jsdelivr.net/npm/yaml-flow@8.
|
|
41
|
-
<script src="https://cdn.jsdelivr.net/npm/yaml-flow@8.
|
|
40
|
+
<script src="https://cdn.jsdelivr.net/npm/yaml-flow@8.5.1/browser/live-cards.js"></script>
|
|
41
|
+
<script src="https://cdn.jsdelivr.net/npm/yaml-flow@8.5.1/browser/board-livecards-client.js"></script>
|
|
42
42
|
</head>
|
|
43
43
|
<body class="bg-light">
|
|
44
44
|
<div class="container-fluid py-3">
|