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.
Files changed (146) hide show
  1. package/browser/adapters/firebase-storage.js +3 -0
  2. package/browser/adapters/firestore-storage.js +3 -0
  3. package/browser/adapters/localstorage-storage.js +4 -0
  4. package/browser/asset-integrity.json +20 -4
  5. package/browser/server-runtime-controlface.js +8 -0
  6. package/examples/ARCHITECTURE.md +5 -32
  7. package/examples/board/demo-shell-with-server.html +2 -2
  8. package/examples/board/doc.html +2 -2
  9. package/examples/board/server/board-server.js +4 -2
  10. package/examples/board-firestore/README.md +81 -0
  11. package/examples/board-firestore/browser/board-runtime.js +263 -0
  12. package/examples/board-firestore/firestore.indexes.json +29 -0
  13. package/examples/board-firestore/package.json +14 -0
  14. package/examples/board-firestore/server/adapters/firestore-archive-factory.js +59 -0
  15. package/examples/board-firestore/server/adapters/firestore-blob-storage.js +82 -0
  16. package/examples/board-firestore/server/adapters/firestore-board-adapter.js +127 -0
  17. package/examples/board-firestore/server/adapters/firestore-journal-storage.js +54 -0
  18. package/examples/board-firestore/server/adapters/firestore-kv-storage.js +47 -0
  19. package/examples/board-firestore/server/adapters/firestore-lock.js +62 -0
  20. package/examples/board-firestore/server/adapters/firestore-queue-storage.js +186 -0
  21. package/examples/board-firestore/server/adapters/firestore-scratch-storage.js +50 -0
  22. package/examples/board-firestore/server/worker.js +146 -0
  23. package/lib/{artifacts-store-lib-BR-Samty.d.cts → artifacts-store-lib-D9nMkVcE.d.cts} +1 -1
  24. package/lib/{artifacts-store-lib-DT7XlWUL.d.ts → artifacts-store-lib-DSSMqVL2.d.ts} +1 -1
  25. package/lib/artifacts-store-public.d.cts +2 -2
  26. package/lib/artifacts-store-public.d.ts +2 -2
  27. package/lib/board-live-cards-mcp.cjs +1 -1
  28. package/lib/board-live-cards-mcp.d.cts +50 -3
  29. package/lib/board-live-cards-mcp.d.ts +50 -3
  30. package/lib/board-live-cards-mcp.js +1 -1
  31. package/lib/board-live-cards-node.cjs +8 -8
  32. package/lib/board-live-cards-node.d.cts +13 -9
  33. package/lib/board-live-cards-node.d.ts +13 -9
  34. package/lib/board-live-cards-node.js +8 -8
  35. package/lib/{board-live-cards-public-BMUIPOrc.d.ts → board-live-cards-public-D-DJek3X.d.ts} +1 -1
  36. package/lib/{board-live-cards-public-wkNmBIRC.d.cts → board-live-cards-public-DQzPe7A9.d.cts} +1 -1
  37. package/lib/board-live-cards-public-async-3hUuHxDx.d.ts +55 -0
  38. package/lib/board-live-cards-public-async-CgMCYYft.d.cts +55 -0
  39. package/lib/board-live-cards-public.d.cts +1 -1
  40. package/lib/board-live-cards-public.d.ts +1 -1
  41. package/lib/board-live-cards-server-runtime.cjs +1 -1
  42. package/lib/board-live-cards-server-runtime.d.cts +10 -6
  43. package/lib/board-live-cards-server-runtime.d.ts +10 -6
  44. package/lib/board-live-cards-server-runtime.js +1 -1
  45. package/lib/board-platform-adapter-async-DOfEq_HC.d.cts +129 -0
  46. package/lib/board-platform-adapter-async-JZPCzZnH.d.ts +129 -0
  47. package/lib/board-worker-adapter.cjs +3 -3
  48. package/lib/board-worker-adapter.js +3 -3
  49. package/lib/card-store-public.d.cts +1 -1
  50. package/lib/card-store-public.d.ts +1 -1
  51. package/lib/{chat-storage-lib-BIUbE-fM.d.cts → chat-storage-lib-B9Q34Dyv.d.cts} +1 -1
  52. package/lib/{chat-storage-lib-BlG-sobS.d.ts → chat-storage-lib-DB9iSai2.d.ts} +1 -1
  53. package/lib/chat-store-public.d.cts +2 -2
  54. package/lib/chat-store-public.d.ts +2 -2
  55. package/lib/chunk-272IYUKT.cjs +2 -0
  56. package/lib/chunk-5XHOHTLZ.cjs +2 -0
  57. package/lib/chunk-6APH25VI.js +2 -0
  58. package/lib/chunk-7FGPOGRV.cjs +2 -0
  59. package/lib/chunk-7ICPAABP.cjs +7 -0
  60. package/lib/chunk-CPAXTVBQ.cjs +2 -0
  61. package/lib/chunk-DDYSXP2A.cjs +3 -0
  62. package/lib/chunk-EGRHWZRV.js +2 -0
  63. package/lib/chunk-GL2OHR2E.cjs +2 -0
  64. package/lib/chunk-IPLSRN6P.cjs +4 -0
  65. package/lib/chunk-J5J6BG7B.js +2 -0
  66. package/lib/chunk-KAWQPLIE.cjs +2 -0
  67. package/lib/chunk-LPXVVMQT.cjs +2 -0
  68. package/lib/chunk-M3OU6IS5.cjs +2 -0
  69. package/lib/chunk-M6STQR5F.cjs +2 -0
  70. package/lib/chunk-NJJ7WEDT.cjs +2 -0
  71. package/lib/chunk-NKIQRCOM.cjs +2 -0
  72. package/lib/chunk-NM6O35RY.cjs +2 -0
  73. package/lib/chunk-NTICU4OK.js +2 -0
  74. package/lib/chunk-O7NOHKVR.js +2 -0
  75. package/lib/chunk-PRHQBGPT.js +2 -0
  76. package/lib/chunk-S44QZUDX.js +2 -0
  77. package/lib/chunk-SGV7PU4H.js +2 -0
  78. package/lib/chunk-TSN3RTXT.js +4 -0
  79. package/lib/chunk-VXJHBWK3.js +2 -0
  80. package/lib/chunk-WHDEBJLT.js +7 -0
  81. package/lib/chunk-XYN5D3GL.js +2 -0
  82. package/lib/chunk-YGALANRO.js +2 -0
  83. package/lib/chunk-ZJ5M5COT.js +2 -0
  84. package/lib/chunk-ZXQR7GHT.js +3 -0
  85. package/lib/cloud-storage.cjs +1 -1
  86. package/lib/cloud-storage.d.cts +5 -3
  87. package/lib/cloud-storage.d.ts +5 -3
  88. package/lib/cloud-storage.js +1 -1
  89. package/lib/firebase-storage/index.cjs +3 -0
  90. package/lib/firebase-storage/index.d.cts +57 -0
  91. package/lib/firebase-storage/index.d.ts +57 -0
  92. package/lib/firebase-storage/index.js +3 -0
  93. package/lib/firestore-storage/index.cjs +3 -0
  94. package/lib/firestore-storage/index.d.cts +98 -0
  95. package/lib/firestore-storage/index.d.ts +98 -0
  96. package/lib/firestore-storage/index.js +3 -0
  97. package/lib/localstorage-storage/index.cjs +2 -0
  98. package/lib/localstorage-storage/index.d.cts +39 -0
  99. package/lib/localstorage-storage/index.d.ts +39 -0
  100. package/lib/localstorage-storage/index.js +2 -0
  101. package/lib/mcp-tool-registries-BBObLYga.d.ts +41 -0
  102. package/lib/mcp-tool-registries-W3TRj6O5.d.cts +41 -0
  103. package/lib/queue-lane-registry-PaZuFpwp.d.cts +30 -0
  104. package/lib/queue-lane-registry-PaZuFpwp.d.ts +30 -0
  105. package/lib/server-jobs-queue-runner/index.cjs +2 -0
  106. package/lib/server-jobs-queue-runner/index.d.cts +22 -0
  107. package/lib/server-jobs-queue-runner/index.d.ts +22 -0
  108. package/lib/server-jobs-queue-runner/index.js +2 -0
  109. package/lib/server-runtime/index.cjs +1 -1
  110. package/lib/server-runtime/index.d.cts +11 -17
  111. package/lib/server-runtime/index.d.ts +11 -17
  112. package/lib/server-runtime/index.js +1 -1
  113. package/lib/server-runtime-agentface/index.cjs +2 -0
  114. package/lib/server-runtime-agentface/index.d.cts +53 -0
  115. package/lib/server-runtime-agentface/index.d.ts +53 -0
  116. package/lib/server-runtime-agentface/index.js +2 -0
  117. package/lib/server-runtime-controlface/index.cjs +2 -0
  118. package/lib/server-runtime-controlface/index.d.cts +80 -0
  119. package/lib/server-runtime-controlface/index.d.ts +80 -0
  120. package/lib/server-runtime-controlface/index.js +2 -0
  121. package/lib/server-runtime-core/index.cjs +2 -0
  122. package/lib/server-runtime-core/index.d.cts +376 -0
  123. package/lib/server-runtime-core/index.d.ts +376 -0
  124. package/lib/server-runtime-core/index.js +2 -0
  125. package/lib/server-runtime-watchers/index.cjs +2 -0
  126. package/lib/server-runtime-watchers/index.d.cts +127 -0
  127. package/lib/server-runtime-watchers/index.d.ts +127 -0
  128. package/lib/server-runtime-watchers/index.js +2 -0
  129. package/lib/server-runtime-webhooks/index.cjs +2 -0
  130. package/lib/server-runtime-webhooks/index.d.cts +34 -0
  131. package/lib/server-runtime-webhooks/index.d.ts +34 -0
  132. package/lib/server-runtime-webhooks/index.js +2 -0
  133. package/lib/storage-async-interface-BRR4eBjx.d.cts +81 -0
  134. package/lib/storage-async-interface-DhlOVPSp.d.ts +81 -0
  135. package/lib/{queue-lane-registry-BPKWWgd4.d.cts → types-BzQY45dH.d.cts} +8 -34
  136. package/lib/{queue-lane-registry-Be6c0ftj.d.ts → types-CF2xUcZW.d.ts} +8 -34
  137. package/package.json +46 -2
  138. package/examples/board-local/demo-shell-localstorage.html +0 -843
  139. package/lib/board-live-cards-public-async-DKZqbJVU.d.ts +0 -256
  140. package/lib/board-live-cards-public-async-dMWNbWq6.d.cts +0 -256
  141. package/lib/chunk-KXWT3CY6.cjs +0 -8
  142. package/lib/chunk-MLVTJASJ.js +0 -2
  143. package/lib/chunk-OJLA6NLU.js +0 -8
  144. package/lib/chunk-R5L5WUKN.js +0 -2
  145. package/lib/chunk-WOALA3V5.cjs +0 -2
  146. package/lib/chunk-YEB5QHGE.cjs +0 -2
@@ -1,23 +1,17 @@
1
- import { S as SingleBoardRuntime, B as BoardRuntimePlatformAdapter, R as RuntimeLogger, Q as QueueLaneRegistry, M as MultiBoardRuntimeOptions, a as MultiBoardRuntime, b as SingleBoardRuntimeOptions } from '../queue-lane-registry-Be6c0ftj.js';
2
- export { A as Awaitable, c as BoardContextConfig, d as BoardRuntimePublic, C as ChatHandlerFlowRunner, D as DescribeEnvelope, H as HostedBoardQueueLaneTuning, I as InvocationAdapter, N as NotificationTransport, e as QueueLaneRuntimeTuning, f as RuntimeRequest, g as RuntimeResponse } from '../queue-lane-registry-Be6c0ftj.js';
3
- import { B as BoardWorkerRequest } from '../board-live-cards-public-BMUIPOrc.js';
4
- export { c as BoardChangeNotification, d as BoardLiveCardsPublic, e as BoardNonCorePlatformAdapter, f as BoardPlatformAdapter, a as CommandInput, C as CommandResult } from '../board-live-cards-public-BMUIPOrc.js';
5
- export { A as AsyncBoardLiveCardsPublic, a as AsyncBoardPlatformAdapter } from '../board-live-cards-public-async-DKZqbJVU.js';
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 ChatStorage } from '../chat-storage-lib-BlG-sobS.js';
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-DT7XlWUL.js';
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 { BoardRuntimePlatformAdapter, BoardWorkerRequest, type HostedBoardQueueLaneRegistryOptions, MultiBoardRuntime, MultiBoardRuntimeOptions, RuntimeLogger, SingleBoardRuntime, SingleBoardRuntimeOptions, createHostedBoardQueueLaneRegistry, createMultiBoardServerRuntime, createSingleBoardServerRuntime };
38
+ export { MultiBoardRuntime, MultiBoardRuntimeOptions, SingleBoardRuntime, SingleBoardRuntimeOptions, createMultiBoardServerRuntime, createSingleBoardServerRuntime };
@@ -1,2 +1,2 @@
1
- export{a as createHostedBoardQueueLaneRegistry,c as createMultiBoardServerRuntime,b as createSingleBoardServerRuntime}from'../chunk-OJLA6NLU.js';import'../chunk-MLVTJASJ.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-R5L5WUKN.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
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
+ export{a as createRoutesAgentface}from'../chunk-NTICU4OK.js';import'../chunk-O7NOHKVR.js';import'../chunk-ZJ5M5COT.js';import'../chunk-FW4363Y4.js';//# sourceMappingURL=index.js.map
2
+ //# sourceMappingURL=index.js.map
@@ -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