yaml-flow 8.6.4 → 8.7.0
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/adapters/firebase-storage.js +3 -0
- package/browser/adapters/firestore-storage.js +3 -0
- package/browser/adapters/localstorage-storage.js +4 -0
- package/browser/asset-integrity.json +20 -4
- package/browser/server-runtime-controlface.js +8 -0
- package/examples/ARCHITECTURE.md +5 -32
- package/examples/board/demo-shell-with-server.html +2 -2
- package/examples/board/doc.html +2 -2
- package/examples/board/server/board-server.js +4 -2
- package/examples/board-firestore/README.md +81 -0
- package/examples/board-firestore/browser/board-runtime.js +263 -0
- package/examples/board-firestore/firestore.indexes.json +29 -0
- package/examples/board-firestore/package.json +14 -0
- package/examples/board-firestore/server/adapters/firestore-archive-factory.js +59 -0
- package/examples/board-firestore/server/adapters/firestore-blob-storage.js +82 -0
- package/examples/board-firestore/server/adapters/firestore-board-adapter.js +127 -0
- package/examples/board-firestore/server/adapters/firestore-journal-storage.js +54 -0
- package/examples/board-firestore/server/adapters/firestore-kv-storage.js +47 -0
- package/examples/board-firestore/server/adapters/firestore-lock.js +62 -0
- package/examples/board-firestore/server/adapters/firestore-queue-storage.js +186 -0
- package/examples/board-firestore/server/adapters/firestore-scratch-storage.js +50 -0
- package/examples/board-firestore/server/worker.js +146 -0
- package/lib/{artifacts-store-lib-BR-Samty.d.cts → artifacts-store-lib-D9nMkVcE.d.cts} +1 -1
- package/lib/{artifacts-store-lib-DT7XlWUL.d.ts → artifacts-store-lib-DSSMqVL2.d.ts} +1 -1
- package/lib/artifacts-store-public.d.cts +2 -2
- package/lib/artifacts-store-public.d.ts +2 -2
- package/lib/board-live-cards-mcp.cjs +1 -1
- package/lib/board-live-cards-mcp.d.cts +50 -3
- package/lib/board-live-cards-mcp.d.ts +50 -3
- package/lib/board-live-cards-mcp.js +1 -1
- package/lib/board-live-cards-node.cjs +8 -8
- package/lib/board-live-cards-node.d.cts +13 -9
- package/lib/board-live-cards-node.d.ts +13 -9
- package/lib/board-live-cards-node.js +8 -8
- package/lib/{board-live-cards-public-BMUIPOrc.d.ts → board-live-cards-public-D-DJek3X.d.ts} +1 -1
- package/lib/{board-live-cards-public-wkNmBIRC.d.cts → board-live-cards-public-DQzPe7A9.d.cts} +1 -1
- package/lib/board-live-cards-public-async-3hUuHxDx.d.ts +55 -0
- package/lib/board-live-cards-public-async-CgMCYYft.d.cts +55 -0
- 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-server-runtime.cjs +1 -1
- package/lib/board-live-cards-server-runtime.d.cts +10 -6
- package/lib/board-live-cards-server-runtime.d.ts +10 -6
- package/lib/board-live-cards-server-runtime.js +1 -1
- package/lib/board-platform-adapter-async-DOfEq_HC.d.cts +129 -0
- package/lib/board-platform-adapter-async-JZPCzZnH.d.ts +129 -0
- package/lib/board-worker-adapter.cjs +3 -3
- package/lib/board-worker-adapter.js +3 -3
- package/lib/card-store-public.d.cts +1 -1
- package/lib/card-store-public.d.ts +1 -1
- package/lib/{chat-storage-lib-BIUbE-fM.d.cts → chat-storage-lib-B9Q34Dyv.d.cts} +1 -1
- package/lib/{chat-storage-lib-BlG-sobS.d.ts → chat-storage-lib-DB9iSai2.d.ts} +1 -1
- package/lib/chat-store-public.d.cts +2 -2
- package/lib/chat-store-public.d.ts +2 -2
- package/lib/chunk-272IYUKT.cjs +2 -0
- package/lib/chunk-5XHOHTLZ.cjs +2 -0
- package/lib/chunk-6APH25VI.js +2 -0
- package/lib/chunk-7FGPOGRV.cjs +2 -0
- package/lib/chunk-7ICPAABP.cjs +7 -0
- package/lib/chunk-CPAXTVBQ.cjs +2 -0
- package/lib/chunk-DDYSXP2A.cjs +3 -0
- package/lib/chunk-EGRHWZRV.js +2 -0
- package/lib/chunk-GL2OHR2E.cjs +2 -0
- package/lib/chunk-IPLSRN6P.cjs +4 -0
- package/lib/chunk-J5J6BG7B.js +2 -0
- package/lib/chunk-KAWQPLIE.cjs +2 -0
- package/lib/chunk-LPXVVMQT.cjs +2 -0
- package/lib/chunk-M3OU6IS5.cjs +2 -0
- package/lib/chunk-M6STQR5F.cjs +2 -0
- package/lib/chunk-NJJ7WEDT.cjs +2 -0
- package/lib/chunk-NKIQRCOM.cjs +2 -0
- package/lib/chunk-NM6O35RY.cjs +2 -0
- package/lib/chunk-NTICU4OK.js +2 -0
- package/lib/chunk-O7NOHKVR.js +2 -0
- package/lib/chunk-PRHQBGPT.js +2 -0
- package/lib/chunk-S44QZUDX.js +2 -0
- package/lib/chunk-SGV7PU4H.js +2 -0
- package/lib/chunk-TSN3RTXT.js +4 -0
- package/lib/chunk-VXJHBWK3.js +2 -0
- package/lib/chunk-WHDEBJLT.js +7 -0
- package/lib/chunk-XYN5D3GL.js +2 -0
- package/lib/chunk-YGALANRO.js +2 -0
- package/lib/chunk-ZJ5M5COT.js +2 -0
- package/lib/chunk-ZXQR7GHT.js +3 -0
- package/lib/cloud-storage.cjs +1 -1
- package/lib/cloud-storage.d.cts +5 -3
- package/lib/cloud-storage.d.ts +5 -3
- package/lib/cloud-storage.js +1 -1
- package/lib/firebase-storage/index.cjs +3 -0
- package/lib/firebase-storage/index.d.cts +57 -0
- package/lib/firebase-storage/index.d.ts +57 -0
- package/lib/firebase-storage/index.js +3 -0
- package/lib/firestore-storage/index.cjs +3 -0
- package/lib/firestore-storage/index.d.cts +98 -0
- package/lib/firestore-storage/index.d.ts +98 -0
- package/lib/firestore-storage/index.js +3 -0
- package/lib/localstorage-storage/index.cjs +2 -0
- package/lib/localstorage-storage/index.d.cts +39 -0
- package/lib/localstorage-storage/index.d.ts +39 -0
- package/lib/localstorage-storage/index.js +2 -0
- package/lib/mcp-tool-registries-BBObLYga.d.ts +41 -0
- package/lib/mcp-tool-registries-W3TRj6O5.d.cts +41 -0
- package/lib/queue-lane-registry-PaZuFpwp.d.cts +30 -0
- package/lib/queue-lane-registry-PaZuFpwp.d.ts +30 -0
- package/lib/server-jobs-queue-runner/index.cjs +2 -0
- package/lib/server-jobs-queue-runner/index.d.cts +22 -0
- package/lib/server-jobs-queue-runner/index.d.ts +22 -0
- package/lib/server-jobs-queue-runner/index.js +2 -0
- package/lib/server-runtime/index.cjs +1 -1
- package/lib/server-runtime/index.d.cts +11 -17
- package/lib/server-runtime/index.d.ts +11 -17
- package/lib/server-runtime/index.js +1 -1
- package/lib/server-runtime-agentface/index.cjs +2 -0
- package/lib/server-runtime-agentface/index.d.cts +53 -0
- package/lib/server-runtime-agentface/index.d.ts +53 -0
- package/lib/server-runtime-agentface/index.js +2 -0
- package/lib/server-runtime-controlface/index.cjs +2 -0
- package/lib/server-runtime-controlface/index.d.cts +80 -0
- package/lib/server-runtime-controlface/index.d.ts +80 -0
- package/lib/server-runtime-controlface/index.js +2 -0
- package/lib/server-runtime-core/index.cjs +2 -0
- package/lib/server-runtime-core/index.d.cts +376 -0
- package/lib/server-runtime-core/index.d.ts +376 -0
- package/lib/server-runtime-core/index.js +2 -0
- package/lib/server-runtime-watchers/index.cjs +2 -0
- package/lib/server-runtime-watchers/index.d.cts +127 -0
- package/lib/server-runtime-watchers/index.d.ts +127 -0
- package/lib/server-runtime-watchers/index.js +2 -0
- package/lib/server-runtime-webhooks/index.cjs +2 -0
- package/lib/server-runtime-webhooks/index.d.cts +34 -0
- package/lib/server-runtime-webhooks/index.d.ts +34 -0
- package/lib/server-runtime-webhooks/index.js +2 -0
- package/lib/storage-async-interface-BRR4eBjx.d.cts +81 -0
- package/lib/storage-async-interface-DhlOVPSp.d.ts +81 -0
- package/lib/{queue-lane-registry-BPKWWgd4.d.cts → types-BzQY45dH.d.cts} +8 -34
- package/lib/{queue-lane-registry-Be6c0ftj.d.ts → types-CF2xUcZW.d.ts} +8 -34
- package/package.json +46 -2
- package/examples/board-local/demo-shell-localstorage.html +0 -843
- package/lib/board-live-cards-public-async-DKZqbJVU.d.ts +0 -256
- package/lib/board-live-cards-public-async-dMWNbWq6.d.cts +0 -256
- package/lib/chunk-KXWT3CY6.cjs +0 -8
- package/lib/chunk-MLVTJASJ.js +0 -2
- package/lib/chunk-OJLA6NLU.js +0 -8
- package/lib/chunk-R5L5WUKN.js +0 -2
- package/lib/chunk-WOALA3V5.cjs +0 -2
- package/lib/chunk-YEB5QHGE.cjs +0 -2
|
@@ -1,23 +1,17 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export { A as Awaitable,
|
|
3
|
-
|
|
4
|
-
export {
|
|
5
|
-
export { A as
|
|
1
|
+
import { b as MultiBoardRuntimeOptions, M as MultiBoardRuntime, c as SingleBoardRuntimeOptions, S as SingleBoardRuntime } from '../types-CF2xUcZW.js';
|
|
2
|
+
export { A as Awaitable, B as BoardContextConfig, d as BoardRuntimePlatformAdapter, e as BoardRuntimePublic, C as ChatHandlerFlowRunner, D as DescribeEnvelope, H as HostedBoardQueueLaneTuning, I as InvocationAdapter, N as NotificationTransport, Q as QueueLaneRuntimeTuning, f as RuntimeLogger, R as RuntimeRequest, a as RuntimeResponse } from '../types-CF2xUcZW.js';
|
|
3
|
+
export { HostedBoardQueueLaneRegistryOptions, createHostedBoardQueueLaneRegistry } from '../server-jobs-queue-runner/index.js';
|
|
4
|
+
export { A as AsyncBoardLiveCardsPublic } from '../board-live-cards-public-async-3hUuHxDx.js';
|
|
5
|
+
export { A as AsyncBoardPlatformAdapter } from '../board-platform-adapter-async-JZPCzZnH.js';
|
|
6
6
|
export { B as BlobStorage, K as KVStorage, a as KindValueRef } from '../storage-interface-BFiD3kyB.js';
|
|
7
|
-
export { c as
|
|
7
|
+
export { B as BoardChangeNotification, c as BoardLiveCardsPublic, d as BoardNonCorePlatformAdapter, e as BoardPlatformAdapter, f as BoardWorkerRequest, C as CommandInput, a as CommandResult } from '../board-live-cards-public-D-DJek3X.js';
|
|
8
|
+
export { C as ChatStorage } from '../chat-storage-lib-DB9iSai2.js';
|
|
8
9
|
export { ExecutionRef } from '../execution-refs.js';
|
|
9
|
-
import '../artifacts-store-lib-
|
|
10
|
+
import '../artifacts-store-lib-DSSMqVL2.js';
|
|
11
|
+
import '../queue-lane-registry-PaZuFpwp.js';
|
|
12
|
+
import '../storage-async-interface-DhlOVPSp.js';
|
|
10
13
|
import '../types-BBhqYGhE.js';
|
|
11
14
|
|
|
12
|
-
interface HostedBoardQueueLaneRegistryOptions {
|
|
13
|
-
boardId: string;
|
|
14
|
-
runtime: Pick<SingleBoardRuntime, 'processAccumulatedLane' | 'handleChatAgentRequest' | 'queueLaneTuning'>;
|
|
15
|
-
boardAdapter: BoardRuntimePlatformAdapter;
|
|
16
|
-
logger?: RuntimeLogger;
|
|
17
|
-
executeTaskExecutorRequest?: (args: Record<string, unknown>, request: BoardWorkerRequest) => Promise<void>;
|
|
18
|
-
}
|
|
19
|
-
declare function createHostedBoardQueueLaneRegistry(opts: HostedBoardQueueLaneRegistryOptions): QueueLaneRegistry;
|
|
20
|
-
|
|
21
15
|
/**
|
|
22
16
|
* server-runtime/index.ts
|
|
23
17
|
*
|
|
@@ -41,4 +35,4 @@ declare function createHostedBoardQueueLaneRegistry(opts: HostedBoardQueueLaneRe
|
|
|
41
35
|
declare function createSingleBoardServerRuntime(options: SingleBoardRuntimeOptions): SingleBoardRuntime;
|
|
42
36
|
declare function createMultiBoardServerRuntime(options: MultiBoardRuntimeOptions): MultiBoardRuntime;
|
|
43
37
|
|
|
44
|
-
export {
|
|
38
|
+
export { MultiBoardRuntime, MultiBoardRuntimeOptions, SingleBoardRuntime, SingleBoardRuntimeOptions, createMultiBoardServerRuntime, createSingleBoardServerRuntime };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export{
|
|
1
|
+
export{c as createMultiBoardServerRuntime,b as createSingleBoardServerRuntime}from'../chunk-ZXQR7GHT.js';import'../chunk-J5J6BG7B.js';import'../chunk-NTICU4OK.js';import'../chunk-O7NOHKVR.js';import'../chunk-WHDEBJLT.js';import'../chunk-SGV7PU4H.js';import'../chunk-XYN5D3GL.js';import'../chunk-ZJ5M5COT.js';export{a as createHostedBoardQueueLaneRegistry}from'../chunk-YGALANRO.js';import'../chunk-6APH25VI.js';import'../chunk-VXJHBWK3.js';import'../chunk-VMW4Z6EF.js';import'../chunk-HEEDJEKM.js';import'../chunk-N6P2JW4W.js';import'../chunk-XQRNDX4Q.js';import'../chunk-BQS3EIEK.js';import'../chunk-VGT3TRQG.js';import'../chunk-WDPOGXTY.js';import'../chunk-PRHQBGPT.js';import'../chunk-JMDHDY6M.js';import'../chunk-VLBB3D6B.js';import'../chunk-MNEOJWPS.js';import'../chunk-KBELAKIY.js';import'../chunk-76ON3V7R.js';import'../chunk-FW4363Y4.js';//# sourceMappingURL=index.js.map
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
'use strict';var chunk7FGPOGRV_cjs=require('../chunk-7FGPOGRV.cjs');require('../chunk-LPXVVMQT.cjs'),require('../chunk-272IYUKT.cjs'),require('../chunk-GNFE24S7.cjs');Object.defineProperty(exports,"createRoutesAgentface",{enumerable:true,get:function(){return chunk7FGPOGRV_cjs.a}});//# sourceMappingURL=index.cjs.map
|
|
2
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { R as RuntimeRequest, a as RuntimeResponse } from '../types-BzQY45dH.cjs';
|
|
2
|
+
import { T as ToolRegistry } from '../mcp-tool-registries-W3TRj6O5.cjs';
|
|
3
|
+
import '../artifacts-store-lib-D9nMkVcE.cjs';
|
|
4
|
+
import '../storage-interface-BFiD3kyB.cjs';
|
|
5
|
+
import '../board-live-cards-public-DQzPe7A9.cjs';
|
|
6
|
+
import '../execution-refs.cjs';
|
|
7
|
+
import '../types-BBhqYGhE.cjs';
|
|
8
|
+
import '../board-platform-adapter-async-DOfEq_HC.cjs';
|
|
9
|
+
import '../storage-async-interface-BRR4eBjx.cjs';
|
|
10
|
+
import '../board-live-cards-public-async-CgMCYYft.cjs';
|
|
11
|
+
import '../chat-storage-lib-B9Q34Dyv.cjs';
|
|
12
|
+
import '../board-live-cards-mcp.cjs';
|
|
13
|
+
import '../chat-store-public.cjs';
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* server-runtime/routes-agentface.ts
|
|
17
|
+
*
|
|
18
|
+
* Agent-facing MCP routes extracted from createSingleBoardServerRuntime.
|
|
19
|
+
* POST /mcp — general MCP tool dispatch (read-only, stateless)
|
|
20
|
+
* POST /mcp-raw — raw file-content streaming (inspect.file-contents only)
|
|
21
|
+
*/
|
|
22
|
+
|
|
23
|
+
interface McpFacadeLike {
|
|
24
|
+
inspectFileContents: (args: {
|
|
25
|
+
cardId: string;
|
|
26
|
+
fileIdx: number;
|
|
27
|
+
}) => unknown;
|
|
28
|
+
}
|
|
29
|
+
interface CardFileRecord {
|
|
30
|
+
name?: unknown;
|
|
31
|
+
stored_name?: unknown;
|
|
32
|
+
mime_type?: unknown;
|
|
33
|
+
}
|
|
34
|
+
interface RoutesAgentfaceDeps {
|
|
35
|
+
apiBasePath: string;
|
|
36
|
+
json: (res: RuntimeResponse, status: number, payload: unknown) => void;
|
|
37
|
+
readJsonBody: (req: RuntimeRequest) => Promise<Record<string, unknown>>;
|
|
38
|
+
bootstrapBoard: () => Promise<void>;
|
|
39
|
+
createMcpFacade: () => McpFacadeLike;
|
|
40
|
+
createMcpToolRegistry: (mcp: McpFacadeLike) => ToolRegistry;
|
|
41
|
+
resolveCardFileDownloadPayload: (cardId: string, idx: number, expectedStoredName: string | null) => Promise<{
|
|
42
|
+
fileRecord: CardFileRecord;
|
|
43
|
+
bytes: Uint8Array;
|
|
44
|
+
}>;
|
|
45
|
+
isLikelyTextMimeType: (mimeType: string) => boolean;
|
|
46
|
+
sliceTextByLines: (text: string, mode: 'head' | 'tail', count: number) => string;
|
|
47
|
+
}
|
|
48
|
+
interface RoutesAgentface {
|
|
49
|
+
handleAgentfaceApi: (req: RuntimeRequest, res: RuntimeResponse, parsedUrl: URL) => Promise<boolean>;
|
|
50
|
+
}
|
|
51
|
+
declare function createRoutesAgentface(deps: RoutesAgentfaceDeps): RoutesAgentface;
|
|
52
|
+
|
|
53
|
+
export { type RoutesAgentface, type RoutesAgentfaceDeps, createRoutesAgentface };
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { R as RuntimeRequest, a as RuntimeResponse } from '../types-CF2xUcZW.js';
|
|
2
|
+
import { T as ToolRegistry } from '../mcp-tool-registries-BBObLYga.js';
|
|
3
|
+
import '../artifacts-store-lib-DSSMqVL2.js';
|
|
4
|
+
import '../storage-interface-BFiD3kyB.js';
|
|
5
|
+
import '../board-live-cards-public-D-DJek3X.js';
|
|
6
|
+
import '../execution-refs.js';
|
|
7
|
+
import '../types-BBhqYGhE.js';
|
|
8
|
+
import '../board-platform-adapter-async-JZPCzZnH.js';
|
|
9
|
+
import '../storage-async-interface-DhlOVPSp.js';
|
|
10
|
+
import '../board-live-cards-public-async-3hUuHxDx.js';
|
|
11
|
+
import '../chat-storage-lib-DB9iSai2.js';
|
|
12
|
+
import '../board-live-cards-mcp.js';
|
|
13
|
+
import '../chat-store-public.js';
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* server-runtime/routes-agentface.ts
|
|
17
|
+
*
|
|
18
|
+
* Agent-facing MCP routes extracted from createSingleBoardServerRuntime.
|
|
19
|
+
* POST /mcp — general MCP tool dispatch (read-only, stateless)
|
|
20
|
+
* POST /mcp-raw — raw file-content streaming (inspect.file-contents only)
|
|
21
|
+
*/
|
|
22
|
+
|
|
23
|
+
interface McpFacadeLike {
|
|
24
|
+
inspectFileContents: (args: {
|
|
25
|
+
cardId: string;
|
|
26
|
+
fileIdx: number;
|
|
27
|
+
}) => unknown;
|
|
28
|
+
}
|
|
29
|
+
interface CardFileRecord {
|
|
30
|
+
name?: unknown;
|
|
31
|
+
stored_name?: unknown;
|
|
32
|
+
mime_type?: unknown;
|
|
33
|
+
}
|
|
34
|
+
interface RoutesAgentfaceDeps {
|
|
35
|
+
apiBasePath: string;
|
|
36
|
+
json: (res: RuntimeResponse, status: number, payload: unknown) => void;
|
|
37
|
+
readJsonBody: (req: RuntimeRequest) => Promise<Record<string, unknown>>;
|
|
38
|
+
bootstrapBoard: () => Promise<void>;
|
|
39
|
+
createMcpFacade: () => McpFacadeLike;
|
|
40
|
+
createMcpToolRegistry: (mcp: McpFacadeLike) => ToolRegistry;
|
|
41
|
+
resolveCardFileDownloadPayload: (cardId: string, idx: number, expectedStoredName: string | null) => Promise<{
|
|
42
|
+
fileRecord: CardFileRecord;
|
|
43
|
+
bytes: Uint8Array;
|
|
44
|
+
}>;
|
|
45
|
+
isLikelyTextMimeType: (mimeType: string) => boolean;
|
|
46
|
+
sliceTextByLines: (text: string, mode: 'head' | 'tail', count: number) => string;
|
|
47
|
+
}
|
|
48
|
+
interface RoutesAgentface {
|
|
49
|
+
handleAgentfaceApi: (req: RuntimeRequest, res: RuntimeResponse, parsedUrl: URL) => Promise<boolean>;
|
|
50
|
+
}
|
|
51
|
+
declare function createRoutesAgentface(deps: RoutesAgentfaceDeps): RoutesAgentface;
|
|
52
|
+
|
|
53
|
+
export { type RoutesAgentface, type RoutesAgentfaceDeps, createRoutesAgentface };
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
'use strict';var chunkDDYSXP2A_cjs=require('../chunk-DDYSXP2A.cjs');require('../chunk-M3OU6IS5.cjs'),require('../chunk-7FGPOGRV.cjs'),require('../chunk-LPXVVMQT.cjs'),require('../chunk-7ICPAABP.cjs'),require('../chunk-KAWQPLIE.cjs'),require('../chunk-NM6O35RY.cjs'),require('../chunk-272IYUKT.cjs'),require('../chunk-CPAXTVBQ.cjs'),require('../chunk-NJJ7WEDT.cjs'),require('../chunk-GL2OHR2E.cjs'),require('../chunk-H5HBXPOI.cjs'),require('../chunk-PBCDDO4V.cjs'),require('../chunk-OEFTOO47.cjs'),require('../chunk-U2N6MCD5.cjs'),require('../chunk-SFVO2LB2.cjs'),require('../chunk-G4XXRHL2.cjs'),require('../chunk-LODXIALE.cjs'),require('../chunk-M6STQR5F.cjs'),require('../chunk-IXZG74EW.cjs'),require('../chunk-NMZ6XNLB.cjs'),require('../chunk-UJ7ZTV4J.cjs'),require('../chunk-YMEIPKLW.cjs'),require('../chunk-GYQXDNNI.cjs'),require('../chunk-GNFE24S7.cjs');Object.defineProperty(exports,"createMultiBoardServerRuntime",{enumerable:true,get:function(){return chunkDDYSXP2A_cjs.c}});Object.defineProperty(exports,"createRoutesRuntimeApi",{enumerable:true,get:function(){return chunkDDYSXP2A_cjs.a}});Object.defineProperty(exports,"createSingleBoardServerRuntime",{enumerable:true,get:function(){return chunkDDYSXP2A_cjs.b}});//# sourceMappingURL=index.cjs.map
|
|
2
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import { R as RuntimeRequest, a as RuntimeResponse } from '../types-BzQY45dH.cjs';
|
|
2
|
+
export { M as MultiBoardRuntime, b as MultiBoardRuntimeOptions, S as SingleBoardRuntime, c as SingleBoardRuntimeOptions } from '../types-BzQY45dH.cjs';
|
|
3
|
+
import { T as ToolRegistry } from '../mcp-tool-registries-W3TRj6O5.cjs';
|
|
4
|
+
import { ChatStorePublic } from '../chat-store-public.cjs';
|
|
5
|
+
export { createMultiBoardServerRuntime, createSingleBoardServerRuntime } from '../server-runtime/index.cjs';
|
|
6
|
+
import '../artifacts-store-lib-D9nMkVcE.cjs';
|
|
7
|
+
import '../storage-interface-BFiD3kyB.cjs';
|
|
8
|
+
import '../board-live-cards-public-DQzPe7A9.cjs';
|
|
9
|
+
import '../execution-refs.cjs';
|
|
10
|
+
import '../types-BBhqYGhE.cjs';
|
|
11
|
+
import '../board-platform-adapter-async-DOfEq_HC.cjs';
|
|
12
|
+
import '../storage-async-interface-BRR4eBjx.cjs';
|
|
13
|
+
import '../board-live-cards-public-async-CgMCYYft.cjs';
|
|
14
|
+
import '../chat-storage-lib-B9Q34Dyv.cjs';
|
|
15
|
+
import '../board-live-cards-mcp.cjs';
|
|
16
|
+
import '../server-jobs-queue-runner/index.cjs';
|
|
17
|
+
import '../queue-lane-registry-PaZuFpwp.cjs';
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* server-runtime/routes-runtime-api.ts (controlface)
|
|
21
|
+
*
|
|
22
|
+
* Control-plane HTTP routes extracted from createSingleBoardServerRuntime.
|
|
23
|
+
* Handles board lifecycle, card CRUD, chats, file upload/download, and
|
|
24
|
+
* the MCP controlplane tool endpoint.
|
|
25
|
+
*
|
|
26
|
+
* The following routes live in sibling modules:
|
|
27
|
+
* routes-agentface.ts — POST /mcp, /mcp-raw
|
|
28
|
+
* routes-webhooks.ts — POST /mcp-webhooks
|
|
29
|
+
* routes-watchers.ts — GET /sse + subscribe/unsubscribe endpoints
|
|
30
|
+
*/
|
|
31
|
+
|
|
32
|
+
interface McpFacadeLike {
|
|
33
|
+
manageAddChatEntryAndAnyAttachments: (args: {
|
|
34
|
+
cardId: string;
|
|
35
|
+
role: string;
|
|
36
|
+
text?: string;
|
|
37
|
+
turn?: string;
|
|
38
|
+
files?: unknown[];
|
|
39
|
+
}) => Promise<{
|
|
40
|
+
status: 'success';
|
|
41
|
+
data: {
|
|
42
|
+
id: string;
|
|
43
|
+
};
|
|
44
|
+
}>;
|
|
45
|
+
setChatProcessing: (args: {
|
|
46
|
+
cardId: string;
|
|
47
|
+
active: boolean;
|
|
48
|
+
}) => {
|
|
49
|
+
cardId: string;
|
|
50
|
+
active: boolean;
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
interface RoutesRuntimeApiDeps {
|
|
54
|
+
apiBasePath: string;
|
|
55
|
+
json: (res: RuntimeResponse, status: number, payload: unknown) => void;
|
|
56
|
+
readJsonBody: (req: RuntimeRequest) => Promise<Record<string, unknown>>;
|
|
57
|
+
readRawBody: (req: RuntimeRequest) => Promise<Uint8Array>;
|
|
58
|
+
initBoardAndSetup: () => Promise<void>;
|
|
59
|
+
bootstrapBoard: () => Promise<void>;
|
|
60
|
+
buildPublishedRuntimePayload: () => Promise<unknown>;
|
|
61
|
+
createMcpControlplaneToolRegistry: () => ToolRegistry;
|
|
62
|
+
readCardFromStore: (cardId: string) => Promise<Record<string, unknown> | null>;
|
|
63
|
+
patchCard: (cardId: string, patch: Record<string, unknown>) => Promise<void>;
|
|
64
|
+
retriggerCard: (cardId: string) => Promise<void>;
|
|
65
|
+
applyCardAction: (cardId: string, actionType: string, payload: Record<string, unknown> | null) => Promise<void>;
|
|
66
|
+
resolveChatHandlerTarget: (cardId: string) => Promise<unknown>;
|
|
67
|
+
createMcpFacade: () => McpFacadeLike;
|
|
68
|
+
chatStorePublic: ChatStorePublic;
|
|
69
|
+
uploadCardFile: (cardId: string, fileName: string, contentType: string, bytes: Uint8Array, opts?: {
|
|
70
|
+
inChat?: boolean;
|
|
71
|
+
turnId?: string;
|
|
72
|
+
}) => Promise<unknown>;
|
|
73
|
+
sendCardFileDownloadResponse: (res: RuntimeResponse, cardId: string, idx: number, expectedStoredName: string | null) => Promise<void>;
|
|
74
|
+
}
|
|
75
|
+
interface RoutesRuntimeApi {
|
|
76
|
+
handleRuntimeApi: (req: RuntimeRequest, res: RuntimeResponse, parsedUrl: URL) => Promise<boolean>;
|
|
77
|
+
}
|
|
78
|
+
declare function createRoutesRuntimeApi(deps: RoutesRuntimeApiDeps): RoutesRuntimeApi;
|
|
79
|
+
|
|
80
|
+
export { type RoutesRuntimeApi, type RoutesRuntimeApiDeps, createRoutesRuntimeApi };
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import { R as RuntimeRequest, a as RuntimeResponse } from '../types-CF2xUcZW.js';
|
|
2
|
+
export { M as MultiBoardRuntime, b as MultiBoardRuntimeOptions, S as SingleBoardRuntime, c as SingleBoardRuntimeOptions } from '../types-CF2xUcZW.js';
|
|
3
|
+
import { T as ToolRegistry } from '../mcp-tool-registries-BBObLYga.js';
|
|
4
|
+
import { ChatStorePublic } from '../chat-store-public.js';
|
|
5
|
+
export { createMultiBoardServerRuntime, createSingleBoardServerRuntime } from '../server-runtime/index.js';
|
|
6
|
+
import '../artifacts-store-lib-DSSMqVL2.js';
|
|
7
|
+
import '../storage-interface-BFiD3kyB.js';
|
|
8
|
+
import '../board-live-cards-public-D-DJek3X.js';
|
|
9
|
+
import '../execution-refs.js';
|
|
10
|
+
import '../types-BBhqYGhE.js';
|
|
11
|
+
import '../board-platform-adapter-async-JZPCzZnH.js';
|
|
12
|
+
import '../storage-async-interface-DhlOVPSp.js';
|
|
13
|
+
import '../board-live-cards-public-async-3hUuHxDx.js';
|
|
14
|
+
import '../chat-storage-lib-DB9iSai2.js';
|
|
15
|
+
import '../board-live-cards-mcp.js';
|
|
16
|
+
import '../server-jobs-queue-runner/index.js';
|
|
17
|
+
import '../queue-lane-registry-PaZuFpwp.js';
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* server-runtime/routes-runtime-api.ts (controlface)
|
|
21
|
+
*
|
|
22
|
+
* Control-plane HTTP routes extracted from createSingleBoardServerRuntime.
|
|
23
|
+
* Handles board lifecycle, card CRUD, chats, file upload/download, and
|
|
24
|
+
* the MCP controlplane tool endpoint.
|
|
25
|
+
*
|
|
26
|
+
* The following routes live in sibling modules:
|
|
27
|
+
* routes-agentface.ts — POST /mcp, /mcp-raw
|
|
28
|
+
* routes-webhooks.ts — POST /mcp-webhooks
|
|
29
|
+
* routes-watchers.ts — GET /sse + subscribe/unsubscribe endpoints
|
|
30
|
+
*/
|
|
31
|
+
|
|
32
|
+
interface McpFacadeLike {
|
|
33
|
+
manageAddChatEntryAndAnyAttachments: (args: {
|
|
34
|
+
cardId: string;
|
|
35
|
+
role: string;
|
|
36
|
+
text?: string;
|
|
37
|
+
turn?: string;
|
|
38
|
+
files?: unknown[];
|
|
39
|
+
}) => Promise<{
|
|
40
|
+
status: 'success';
|
|
41
|
+
data: {
|
|
42
|
+
id: string;
|
|
43
|
+
};
|
|
44
|
+
}>;
|
|
45
|
+
setChatProcessing: (args: {
|
|
46
|
+
cardId: string;
|
|
47
|
+
active: boolean;
|
|
48
|
+
}) => {
|
|
49
|
+
cardId: string;
|
|
50
|
+
active: boolean;
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
interface RoutesRuntimeApiDeps {
|
|
54
|
+
apiBasePath: string;
|
|
55
|
+
json: (res: RuntimeResponse, status: number, payload: unknown) => void;
|
|
56
|
+
readJsonBody: (req: RuntimeRequest) => Promise<Record<string, unknown>>;
|
|
57
|
+
readRawBody: (req: RuntimeRequest) => Promise<Uint8Array>;
|
|
58
|
+
initBoardAndSetup: () => Promise<void>;
|
|
59
|
+
bootstrapBoard: () => Promise<void>;
|
|
60
|
+
buildPublishedRuntimePayload: () => Promise<unknown>;
|
|
61
|
+
createMcpControlplaneToolRegistry: () => ToolRegistry;
|
|
62
|
+
readCardFromStore: (cardId: string) => Promise<Record<string, unknown> | null>;
|
|
63
|
+
patchCard: (cardId: string, patch: Record<string, unknown>) => Promise<void>;
|
|
64
|
+
retriggerCard: (cardId: string) => Promise<void>;
|
|
65
|
+
applyCardAction: (cardId: string, actionType: string, payload: Record<string, unknown> | null) => Promise<void>;
|
|
66
|
+
resolveChatHandlerTarget: (cardId: string) => Promise<unknown>;
|
|
67
|
+
createMcpFacade: () => McpFacadeLike;
|
|
68
|
+
chatStorePublic: ChatStorePublic;
|
|
69
|
+
uploadCardFile: (cardId: string, fileName: string, contentType: string, bytes: Uint8Array, opts?: {
|
|
70
|
+
inChat?: boolean;
|
|
71
|
+
turnId?: string;
|
|
72
|
+
}) => Promise<unknown>;
|
|
73
|
+
sendCardFileDownloadResponse: (res: RuntimeResponse, cardId: string, idx: number, expectedStoredName: string | null) => Promise<void>;
|
|
74
|
+
}
|
|
75
|
+
interface RoutesRuntimeApi {
|
|
76
|
+
handleRuntimeApi: (req: RuntimeRequest, res: RuntimeResponse, parsedUrl: URL) => Promise<boolean>;
|
|
77
|
+
}
|
|
78
|
+
declare function createRoutesRuntimeApi(deps: RoutesRuntimeApiDeps): RoutesRuntimeApi;
|
|
79
|
+
|
|
80
|
+
export { type RoutesRuntimeApi, type RoutesRuntimeApiDeps, createRoutesRuntimeApi };
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export{c as createMultiBoardServerRuntime,a as createRoutesRuntimeApi,b as createSingleBoardServerRuntime}from'../chunk-ZXQR7GHT.js';import'../chunk-J5J6BG7B.js';import'../chunk-NTICU4OK.js';import'../chunk-O7NOHKVR.js';import'../chunk-WHDEBJLT.js';import'../chunk-SGV7PU4H.js';import'../chunk-XYN5D3GL.js';import'../chunk-ZJ5M5COT.js';import'../chunk-YGALANRO.js';import'../chunk-6APH25VI.js';import'../chunk-VXJHBWK3.js';import'../chunk-VMW4Z6EF.js';import'../chunk-HEEDJEKM.js';import'../chunk-N6P2JW4W.js';import'../chunk-XQRNDX4Q.js';import'../chunk-BQS3EIEK.js';import'../chunk-VGT3TRQG.js';import'../chunk-WDPOGXTY.js';import'../chunk-PRHQBGPT.js';import'../chunk-JMDHDY6M.js';import'../chunk-VLBB3D6B.js';import'../chunk-MNEOJWPS.js';import'../chunk-KBELAKIY.js';import'../chunk-76ON3V7R.js';import'../chunk-FW4363Y4.js';//# sourceMappingURL=index.js.map
|
|
2
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
'use strict';var chunkM3OU6IS5_cjs=require('../chunk-M3OU6IS5.cjs'),chunkLPXVVMQT_cjs=require('../chunk-LPXVVMQT.cjs'),chunkKAWQPLIE_cjs=require('../chunk-KAWQPLIE.cjs'),chunk272IYUKT_cjs=require('../chunk-272IYUKT.cjs'),chunkCPAXTVBQ_cjs=require('../chunk-CPAXTVBQ.cjs');require('../chunk-GL2OHR2E.cjs'),require('../chunk-SFVO2LB2.cjs'),require('../chunk-M6STQR5F.cjs'),require('../chunk-IXZG74EW.cjs'),require('../chunk-NMZ6XNLB.cjs'),require('../chunk-UJ7ZTV4J.cjs'),require('../chunk-GNFE24S7.cjs');Object.defineProperty(exports,"appendNotification",{enumerable:true,get:function(){return chunkM3OU6IS5_cjs.c}});Object.defineProperty(exports,"createCardFileOps",{enumerable:true,get:function(){return chunkM3OU6IS5_cjs.j}});Object.defineProperty(exports,"createControlplaneToolHandlers",{enumerable:true,get:function(){return chunkM3OU6IS5_cjs.h}});Object.defineProperty(exports,"createMcpControlplaneToolRegistry",{enumerable:true,get:function(){return chunkM3OU6IS5_cjs.m}});Object.defineProperty(exports,"createMcpFacadeModule",{enumerable:true,get:function(){return chunkM3OU6IS5_cjs.n}});Object.defineProperty(exports,"createMcpToolRegistry",{enumerable:true,get:function(){return chunkM3OU6IS5_cjs.k}});Object.defineProperty(exports,"createMcpWebhookToolRegistry",{enumerable:true,get:function(){return chunkM3OU6IS5_cjs.l}});Object.defineProperty(exports,"createRuntimePayloadModule",{enumerable:true,get:function(){return chunkM3OU6IS5_cjs.i}});Object.defineProperty(exports,"expectControlplaneSuccess",{enumerable:true,get:function(){return chunkM3OU6IS5_cjs.d}});Object.defineProperty(exports,"expectControlplaneSuccessAsync",{enumerable:true,get:function(){return chunkM3OU6IS5_cjs.e}});Object.defineProperty(exports,"getCardMetaKey",{enumerable:true,get:function(){return chunkM3OU6IS5_cjs.f}});Object.defineProperty(exports,"hasNonEmptyCardCountStatus",{enumerable:true,get:function(){return chunkM3OU6IS5_cjs.b}});Object.defineProperty(exports,"makeNotificationState",{enumerable:true,get:function(){return chunkM3OU6IS5_cjs.a}});Object.defineProperty(exports,"readCardMetaValue",{enumerable:true,get:function(){return chunkM3OU6IS5_cjs.g}});Object.defineProperty(exports,"getMcpArgNumber",{enumerable:true,get:function(){return chunkLPXVVMQT_cjs.b}});Object.defineProperty(exports,"getMcpArgRecord",{enumerable:true,get:function(){return chunkLPXVVMQT_cjs.c}});Object.defineProperty(exports,"getMcpArgString",{enumerable:true,get:function(){return chunkLPXVVMQT_cjs.a}});Object.defineProperty(exports,"getRequiredMcpArgNumber",{enumerable:true,get:function(){return chunkLPXVVMQT_cjs.e}});Object.defineProperty(exports,"getRequiredMcpArgRecord",{enumerable:true,get:function(){return chunkLPXVVMQT_cjs.d}});Object.defineProperty(exports,"parseMcpUploadBytes",{enumerable:true,get:function(){return chunkLPXVVMQT_cjs.f}});Object.defineProperty(exports,"concatUint8Arrays",{enumerable:true,get:function(){return chunkKAWQPLIE_cjs.d}});Object.defineProperty(exports,"escapeRegExp",{enumerable:true,get:function(){return chunkKAWQPLIE_cjs.c}});Object.defineProperty(exports,"executionWhatToRunValue",{enumerable:true,get:function(){return chunkKAWQPLIE_cjs.b}});Object.defineProperty(exports,"isAsyncBoardPlatformAdapter",{enumerable:true,get:function(){return chunkKAWQPLIE_cjs.a}});Object.defineProperty(exports,"extractMcpFailureMessage",{enumerable:true,get:function(){return chunk272IYUKT_cjs.b}});Object.defineProperty(exports,"invokeMcpTool",{enumerable:true,get:function(){return chunk272IYUKT_cjs.a}});Object.defineProperty(exports,"createHostedBoardQueueLaneRegistry",{enumerable:true,get:function(){return chunkCPAXTVBQ_cjs.a}});//# sourceMappingURL=index.cjs.map
|
|
2
|
+
//# sourceMappingURL=index.cjs.map
|