@sixb/core 0.2.3 → 0.2.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.
Files changed (122) hide show
  1. package/dist/actions/index.js +12 -12
  2. package/dist/agents/cancel.d.ts +1 -1
  3. package/dist/agents/cancel.d.ts.map +1 -1
  4. package/dist/agents/child-question.d.ts +35 -2
  5. package/dist/agents/child-question.d.ts.map +1 -1
  6. package/dist/agents/execution.d.ts +1 -1
  7. package/dist/agents/ids.d.ts +2 -0
  8. package/dist/agents/ids.d.ts.map +1 -1
  9. package/dist/agents/index.d.ts +3 -3
  10. package/dist/agents/index.d.ts.map +1 -1
  11. package/dist/agents/index.js +23 -15
  12. package/dist/agents/index.js.map +1 -1
  13. package/dist/agents/model-loop.d.ts.map +1 -1
  14. package/dist/agents/run-session-children.d.ts +9 -0
  15. package/dist/agents/run-session-children.d.ts.map +1 -1
  16. package/dist/agents/run-session-http.d.ts.map +1 -1
  17. package/dist/agents/run-session-serve.d.ts.map +1 -1
  18. package/dist/agents/tool-files.d.ts +1 -1
  19. package/dist/agents/tool-files.d.ts.map +1 -1
  20. package/dist/agents/tool-input-coercion.d.ts +20 -0
  21. package/dist/agents/tool-input-coercion.d.ts.map +1 -0
  22. package/dist/agents/validation.d.ts +1 -1
  23. package/dist/agents/validation.d.ts.map +1 -1
  24. package/dist/artifacts/frames/index.js +1 -1
  25. package/dist/artifacts/frames/protocol.d.ts +53 -2
  26. package/dist/artifacts/frames/protocol.d.ts.map +1 -1
  27. package/dist/artifacts/frames/runtime.d.ts +8 -1
  28. package/dist/artifacts/frames/runtime.d.ts.map +1 -1
  29. package/dist/artifacts/index.d.ts +1 -1
  30. package/dist/artifacts/index.d.ts.map +1 -1
  31. package/dist/artifacts/index.js +27 -1
  32. package/dist/artifacts/index.js.map +3 -3
  33. package/dist/artifacts/live/server.js +7 -7
  34. package/dist/artifacts/publish/index.js +6 -6
  35. package/dist/bootstrap/index.js +17 -17
  36. package/dist/{chunk-k66rp2hr.js → chunk-2bn6813a.js} +1 -1
  37. package/dist/{chunk-m7b9q5dk.js → chunk-3z1vxzcm.js} +1 -1
  38. package/dist/{chunk-qafng88v.js → chunk-6ef4esq4.js} +1 -1
  39. package/dist/{chunk-38yvdqzd.js → chunk-7kpqntgw.js} +1 -1
  40. package/dist/{chunk-tqa68kj7.js → chunk-8bns0y68.js} +2 -2
  41. package/dist/chunk-8t2ynwg0.js.map +1 -1
  42. package/dist/chunk-az95tsh3.js.map +2 -2
  43. package/dist/{chunk-4j0sagwv.js → chunk-evj5jxz3.js} +1 -1
  44. package/dist/{chunk-z0t4p2sk.js → chunk-gxwy4c3s.js} +41 -11
  45. package/dist/{chunk-z0t4p2sk.js.map → chunk-gxwy4c3s.js.map} +8 -8
  46. package/dist/{chunk-qds484t8.js → chunk-hvbvq7p4.js} +202 -12
  47. package/dist/chunk-hvbvq7p4.js.map +18 -0
  48. package/dist/{chunk-26qet7wh.js → chunk-msyevpp3.js} +1 -1
  49. package/dist/chunk-n4zzaf6q.js.map +1 -1
  50. package/dist/{chunk-s5n9617r.js → chunk-p8pgnq8d.js} +3 -3
  51. package/dist/{chunk-kv0kvknv.js → chunk-r9rtavg9.js} +2 -2
  52. package/dist/{chunk-bkmnd7zq.js → chunk-rsrc7vtw.js} +9 -9
  53. package/dist/{chunk-8p7bze4c.js → chunk-rsxb14an.js} +1 -1
  54. package/dist/{chunk-e9w4mgdh.js → chunk-rtm1jq00.js} +162 -17
  55. package/dist/{chunk-e9w4mgdh.js.map → chunk-rtm1jq00.js.map} +8 -7
  56. package/dist/{chunk-7z5rkf0m.js → chunk-t0s7b3d1.js} +4 -3
  57. package/dist/{chunk-7z5rkf0m.js.map → chunk-t0s7b3d1.js.map} +3 -3
  58. package/dist/{chunk-hkaa807g.js → chunk-td26wjr5.js} +1 -1
  59. package/dist/{chunk-6gtxshcc.js → chunk-vepea5c3.js} +3 -3
  60. package/dist/{chunk-2by73sm2.js → chunk-w1wq7gfr.js} +1 -1
  61. package/dist/{chunk-w9s23r24.js → chunk-yy914zfr.js} +3 -3
  62. package/dist/execution/agent.js +12 -12
  63. package/dist/execution/primitive.js +12 -12
  64. package/dist/execution/request.js +12 -12
  65. package/dist/index.js +19 -19
  66. package/dist/materializer/index.js +3 -3
  67. package/dist/models/execution/index.js +3 -3
  68. package/dist/models/language-model.d.ts +6 -0
  69. package/dist/models/language-model.d.ts.map +1 -1
  70. package/dist/models/tools.d.ts +2 -0
  71. package/dist/models/tools.d.ts.map +1 -1
  72. package/dist/objects/index.js +12 -12
  73. package/dist/objects/query/index.js +3 -3
  74. package/dist/pipelines/index.js +3 -3
  75. package/dist/projections/internal.js +2 -2
  76. package/dist/runtime/internal.js +7 -7
  77. package/dist/shares/internal.js +2 -2
  78. package/dist/storage/agents/provider.js +1 -1
  79. package/dist/storage/agents/types.d.ts +1 -1
  80. package/dist/storage/agents/types.d.ts.map +1 -1
  81. package/dist/storage/index.js +2 -2
  82. package/dist/syncs/index.js +4 -4
  83. package/dist/testing/index.js +19 -19
  84. package/dist/webhooks/internal.js +2 -2
  85. package/dist/workflows/index.js +15 -15
  86. package/package.json +1 -1
  87. package/src/agents/approval-outcome.ts +2 -2
  88. package/src/agents/cancel.ts +2 -2
  89. package/src/agents/child-question.ts +76 -8
  90. package/src/agents/execution.ts +1 -1
  91. package/src/agents/ids.ts +4 -1
  92. package/src/agents/index.ts +9 -2
  93. package/src/agents/model-loop.ts +3 -1
  94. package/src/agents/run-session-children.ts +33 -0
  95. package/src/agents/run-session-http.ts +1 -0
  96. package/src/agents/run-session-serve.ts +1 -0
  97. package/src/agents/tool-files.ts +1 -1
  98. package/src/agents/tool-input-coercion.ts +140 -0
  99. package/src/agents/validation.ts +11 -3
  100. package/src/artifacts/frames/protocol.ts +84 -2
  101. package/src/artifacts/frames/runtime.ts +296 -13
  102. package/src/artifacts/index.ts +3 -0
  103. package/src/http/api-routes.ts +1 -1
  104. package/src/models/language-model.ts +6 -0
  105. package/src/models/tools.ts +2 -0
  106. package/src/storage/agents/types.ts +1 -1
  107. package/dist/chunk-qds484t8.js.map +0 -18
  108. /package/dist/{chunk-k66rp2hr.js.map → chunk-2bn6813a.js.map} +0 -0
  109. /package/dist/{chunk-m7b9q5dk.js.map → chunk-3z1vxzcm.js.map} +0 -0
  110. /package/dist/{chunk-qafng88v.js.map → chunk-6ef4esq4.js.map} +0 -0
  111. /package/dist/{chunk-38yvdqzd.js.map → chunk-7kpqntgw.js.map} +0 -0
  112. /package/dist/{chunk-tqa68kj7.js.map → chunk-8bns0y68.js.map} +0 -0
  113. /package/dist/{chunk-4j0sagwv.js.map → chunk-evj5jxz3.js.map} +0 -0
  114. /package/dist/{chunk-26qet7wh.js.map → chunk-msyevpp3.js.map} +0 -0
  115. /package/dist/{chunk-s5n9617r.js.map → chunk-p8pgnq8d.js.map} +0 -0
  116. /package/dist/{chunk-kv0kvknv.js.map → chunk-r9rtavg9.js.map} +0 -0
  117. /package/dist/{chunk-bkmnd7zq.js.map → chunk-rsrc7vtw.js.map} +0 -0
  118. /package/dist/{chunk-8p7bze4c.js.map → chunk-rsxb14an.js.map} +0 -0
  119. /package/dist/{chunk-hkaa807g.js.map → chunk-td26wjr5.js.map} +0 -0
  120. /package/dist/{chunk-6gtxshcc.js.map → chunk-vepea5c3.js.map} +0 -0
  121. /package/dist/{chunk-2by73sm2.js.map → chunk-w1wq7gfr.js.map} +0 -0
  122. /package/dist/{chunk-w9s23r24.js.map → chunk-yy914zfr.js.map} +0 -0
@@ -1 +1 @@
1
- {"version":3,"file":"protocol.d.ts","sourceRoot":"","sources":["../../../src/artifacts/frames/protocol.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gBAAgB,EAAE,eAAe,EAAE,MAAM,eAAe,CAAA;AAItE;;;;GAIG;AACH,eAAO,MAAM,cAAc,iBAAiB,CAAA;AAE5C;;;GAGG;AACH,MAAM,MAAM,QAAQ,GAAG,OAAO,GAAG,UAAU,GAAG,SAAS,CAAA;AAEvD;;;GA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BAAwB,CAAA;AAEvD;;;;GAIG;AACH,wBAAgB,eAAe,CAAC,IAAI,EAAE,OAAO,GAAG,UAAU,GAAG,IAAI,CAoGhE"}
@@ -35,7 +35,14 @@
35
35
  * a script rewrote, is reported as scripted and takes nothing. What others change arrives as
36
36
  * patches, element by element; the one the reader is typing in takes its own once they leave it,
37
37
  * so their caret stays. What editing reports goes through the port the app hands over with its
38
- * first `edit` request, taken before the page's scripts run: they cannot post on it.
38
+ * first `edit` request, taken before the page's scripts run: they cannot post on it. Once it holds
39
+ * that port, the frame also sends the reader's pinches, ⌘-wheel turns and ⌘ +, − and 0 through
40
+ * it, for the app to zoom the opened board instead of the browser zooming everything.
41
+ *
42
+ * A board running on the canvas is handed its port with `canvas` instead: the reader uses its page
43
+ * in place, and the frame sends through the port what moves the canvas, their wheel turns unless
44
+ * the page scrolls them, a finger's drag, Space held to drag, and the zooming above, and the words
45
+ * of what they press, for the canvas to follow the arrow they label.
39
46
  */
40
47
  export declare function frameRuntime(): void;
41
48
  //# sourceMappingURL=runtime.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"runtime.d.ts","sourceRoot":"","sources":["../../../src/artifacts/frames/runtime.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsCG;AACH,wBAAgB,YAAY,IAAI,IAAI,CAksBnC"}
1
+ {"version":3,"file":"runtime.d.ts","sourceRoot":"","sources":["../../../src/artifacts/frames/runtime.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6CG;AACH,wBAAgB,YAAY,IAAI,IAAI,CAs9BnC"}
@@ -10,7 +10,7 @@ export { BOARD_PREVIEW_WAIT_MS, CANVAS_FIT_PADDING, CANVAS_TEXT_PIXELS, type Can
10
10
  export { quoteArtifactComment } from "./comment-text";
11
11
  export { CsvParseError, type CsvTable, formatCsv, parseCsv } from "./csv";
12
12
  export { checkFormula, columnFormulaType, evaluateComputedColumns, FORMULA_ERRORS, FormulaCycleError, type FormulaErrorCode, type FormulaNode, type FormulaOperator, type FormulaType, formulaDependencies, formulaFitsColumn, formulaReferences, parseFormula, renameColumnReferences, } from "./formula";
13
- export { type DeckMode, FRAME_PROTOCOL, FRAME_THEME_TOKENS, type FrameCall, type FrameCallResult, type FrameEditTarget, type FrameEmbed, type FrameEvent, type FramePoint, type FrameRect, type FrameRequest, type FrameResponse, type FrameStart, frameStartHash, parseFrameCall, parseFrameEvent, } from "./frames/protocol";
13
+ export { type DeckMode, FRAME_PROTOCOL, FRAME_THEME_TOKENS, type FrameCall, type FrameCallResult, type FrameEditTarget, type FrameEmbed, type FrameEvent, type FramePan, type FramePoint, type FrameRect, type FrameRequest, type FrameResponse, type FrameStart, type FrameZoom, type FrameZoomStep, frameStartHash, parseFrameCall, parseFrameEvent, } from "./frames/protocol";
14
14
  export { ARTIFACT_KINDS, type ArtifactKind } from "./kinds";
15
15
  export { ARTIFACT_COMMENT_LIMITS, ARTIFACT_HOLDERS_LIMIT, ARTIFACT_LIMITS, ARTIFACT_STATE_LIMITS, } from "./limits";
16
16
  export { type LiveSheetColumn, type LiveSheetLayout, type LiveSheetRow, type LiveSheetTable, liveSheetColumns, liveSheetTable, } from "./live-sheet";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/artifacts/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EACL,KAAK,eAAe,EACpB,KAAK,SAAS,EACd,qBAAqB,EACrB,iBAAiB,EACjB,oBAAoB,EACpB,cAAc,EACd,KAAK,SAAS,GACf,MAAM,WAAW,CAAA;AAClB,OAAO,EACL,WAAW,EACX,KAAK,MAAM,EACX,KAAK,WAAW,EAChB,KAAK,WAAW,EAChB,KAAK,WAAW,EAChB,KAAK,SAAS,EACd,KAAK,UAAU,EACf,KAAK,UAAU,EACf,KAAK,aAAa,EAClB,KAAK,WAAW,EAChB,KAAK,eAAe,EAC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EACL,KAAK,eAAe,EACpB,KAAK,aAAa,EAClB,KAAK,iBAAiB,EACtB,oBAAoB,EACpB,KAAK,eAAe,EACpB,KAAK,eAAe,EACpB,KAAK,WAAW,EAChB,KAAK,YAAY,EACjB,KAAK,YAAY,EACjB,KAAK,aAAa,GACnB,MAAM,WAAW,CAAA;AAClB,OAAO,EACL,KAAK,yBAAyB,EAC9B,KAAK,0BAA0B,EAC/B,KAAK,qBAAqB,EAC1B,KAAK,yBAAyB,EAC9B,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,EACxB,iBAAiB,GAClB,MAAM,WAAW,CAAA;AAClB,OAAO,EACL,KAAK,qBAAqB,EAC1B,KAAK,oBAAoB,EACzB,sBAAsB,GACvB,MAAM,WAAW,CAAA;AAClB,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAA;AAC1C,OAAO,EACL,mBAAmB,EACnB,KAAK,aAAa,EAClB,KAAK,iBAAiB,EACtB,kBAAkB,GACnB,MAAM,SAAS,CAAA;AAChB,OAAO,EAAE,cAAc,EAAE,KAAK,YAAY,EAAE,MAAM,SAAS,CAAA;AAC3D,OAAO,EACL,KAAK,qBAAqB,EAC1B,KAAK,eAAe,EACpB,oBAAoB,EACpB,cAAc,EACd,gBAAgB,EAChB,aAAa,EACb,kBAAkB,EAClB,gBAAgB,EAChB,YAAY,EACZ,KAAK,mBAAmB,EACxB,KAAK,cAAc,EACnB,KAAK,iBAAiB,EACtB,KAAK,eAAe,EACpB,KAAK,cAAc,EACnB,KAAK,UAAU,EACf,aAAa,EACb,aAAa,EACb,KAAK,QAAQ,EACb,KAAK,aAAa,EAClB,KAAK,aAAa,GACnB,MAAM,YAAY,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/artifacts/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EACL,KAAK,eAAe,EACpB,KAAK,SAAS,EACd,qBAAqB,EACrB,iBAAiB,EACjB,oBAAoB,EACpB,cA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K,UAAU,EACf,aAAa,EACb,aAAa,EACb,KAAK,QAAQ,EACb,KAAK,aAAa,EAClB,KAAK,aAAa,GACnB,MAAM,YAAY,CAAA"}
@@ -205,6 +205,29 @@ function parseFrameEvent(data) {
205
205
  }
206
206
  case "edit.text":
207
207
  return isEditAddress(params.address) && typeof params.text === "string" && params.text.length <= MAX_EDIT_TEXT_LENGTH && typeof params.base === "string" && params.base.length <= MAX_EDIT_TEXT_LENGTH ? event("edit.text", { address: params.address, base: params.base, text: params.text }) : null;
208
+ case "zoom": {
209
+ if (params.step !== undefined) {
210
+ return ZOOM_STEPS.includes(String(params.step)) ? event("zoom", { step: params.step }) : null;
211
+ }
212
+ const at = parsePoint(params.at);
213
+ const factor = Number(params.factor);
214
+ if (!at || !Number.isFinite(params.factor) || factor <= 0)
215
+ return null;
216
+ return event("zoom", {
217
+ factor: Math.min(MAX_ZOOM_FACTOR, Math.max(1 / MAX_ZOOM_FACTOR, factor)),
218
+ at
219
+ });
220
+ }
221
+ case "pan": {
222
+ const { x, y, by } = params;
223
+ if (!Number.isFinite(x) || !Number.isFinite(y) || by !== "wheel" && by !== "touch") {
224
+ return null;
225
+ }
226
+ const bounded = (delta) => Math.min(MAX_PAN, Math.max(-MAX_PAN, delta));
227
+ return event("pan", { x: bounded(Number(x)), y: bounded(Number(y)), by });
228
+ }
229
+ case "space":
230
+ return typeof params.down === "boolean" ? event("space", { down: params.down }) : null;
208
231
  case "press":
209
232
  return typeof params.text === "string" && params.text.length > 0 && params.text.length <= ARTIFACT_LIMITS2.maxCanvasLabelLength ? event("press", { text: params.text }) : null;
210
233
  default:
@@ -213,6 +236,9 @@ function parseFrameEvent(data) {
213
236
  }
214
237
  var MAX_EDIT_TEXT_LENGTH = ARTIFACT_LIMITS2.maxBoardBytes;
215
238
  var EDIT_KINDS = ["text", "image", "whole", "box"];
239
+ var ZOOM_STEPS = ["in", "out", "actual"];
240
+ var MAX_ZOOM_FACTOR = 4;
241
+ var MAX_PAN = 4000;
216
242
  var MAX_EDIT_LABEL_LENGTH = 200;
217
243
  function isEditAddress(value) {
218
244
  return typeof value === "string" && value.length <= 2048 && /^body(>[a-z][a-z0-9-]*:\d+)*$/.test(value);
@@ -339,4 +365,4 @@ export {
339
365
  sheetFilePath2 as sheetFilePath
340
366
  };
341
367
 
342
- //# debugId=46C20B556B3B584064756E2164756E21
368
+ //# debugId=FA17282EC9D00B9564756E2164756E21
@@ -3,9 +3,9 @@
3
3
  "sources": ["../src/artifacts/comment-text.ts", "../src/artifacts/frames/protocol.ts"],
4
4
  "sourcesContent": [
5
5
  "import type { ArtifactCommentAnchor } from \"../storage/artifacts/types\"\n\n/**\n * A comment as a message to the Agent quotes it: where it is, then its words, as the\n * `sixb-artifacts` skill tells the Agent to read it. `[welcome · body>main:0>h1:0 · \"Welcome\n * back\" · revision 12 · comment cmt_4k2a9c0d1e · from Ava Martin] Make the title warmer.` A\n * comment on a whole board names no element, and one on the artifact no board; the comment's id\n * lets the Agent resolve it, or reply to it, and its author's name says whose request it is: `from\n * guest Ava Martin` for a shared link's visitor, whose name nobody vouches for. Browser-safe, for\n * the app to draft the message with.\n */\nexport function quoteArtifactComment(comment: {\n readonly id?: string\n readonly authorName?: string | null\n /** Its author opened a shared link: a guest, without an account. */\n readonly guest?: boolean\n readonly anchor: ArtifactCommentAnchor\n readonly body: string\n}): string {\n const { anchor } = comment\n const where = [\n anchor.board,\n anchor.element,\n anchor.label ? JSON.stringify(anchor.label) : undefined,\n `revision ${anchor.revision}`,\n comment.id ? `comment ${comment.id}` : undefined,\n comment.authorName\n ? `from ${comment.guest ? \"guest \" : \"\"}${comment.authorName.replace(/\\s+/g, \" \").trim()}`\n : undefined,\n ].filter((part): part is string => part !== undefined)\n return `[${where.join(\" · \")}] ${comment.body.replace(/\\s+/g, \" \").trim()}`\n}\n",
6
- "import { ARTIFACT_LIMITS, ARTIFACT_STATE_LIMITS } from \"../limits\"\nimport type { BoardElementKind, BoardFramePatch } from \"../live/board\"\nimport { isArtifactQueryName } from \"../queries\"\nimport { ARTIFACT_THEME_TOKENS } from \"../theme\"\n\n/**\n * Messages between the app and an artifact in its sandboxed frame: a deck, or a page. The app\n * asks; the frame answers each request by its id, and tells the app what happened inside it as\n * events. Later abilities are new methods and events, not a new protocol.\n */\nexport const FRAME_PROTOCOL = \"sixb-frame/1\"\n\n/**\n * A deck shows one slide scaled to fit on its stage, every slide in a grid, or one slide filling\n * the page to present it.\n */\nexport type DeckMode = \"slide\" | \"overview\" | \"present\"\n\n/**\n * How a frame opens, set in its URL so the first paint is right: at a slide, and with `fill`, that\n * slide alone filling the frame with no stage around it, as a thumbnail or an embed shows it.\n */\nexport interface FrameStart {\n readonly slide?: number\n readonly fill?: boolean\n}\n\n/** The fragment that carries a frame's start: `#sixb-slide=3&sixb-fill`. */\nexport function frameStartHash(start: FrameStart): string {\n const params: string[] = []\n if (start.slide !== undefined && start.slide > 1)\n params.push(`sixb-slide=${Math.round(start.slide)}`)\n if (start.fill) params.push(\"sixb-fill\")\n return params.length > 0 ? `#${params.join(\"&\")}` : \"\"\n}\n\n/** What the app asks of the frame. */\nexport type FrameRequest =\n | FrameRequestOf<\n \"theme\",\n { readonly tokens: Readonly<Record<string, string>>; readonly dark: boolean }\n >\n | FrameRequestOf<\"goto\", { readonly slide: number }>\n | FrameRequestOf<\"mode\", { readonly mode: DeckMode }>\n /** Scrolls a page by a wheel turned over what the app draws on it. */\n | FrameRequestOf<\"scroll\", { readonly x: number; readonly y: number }>\n /** Loads the entry again, as a page whose data was reset starts over. */\n | FrameRequestOf<\"reload\", Record<string, never>>\n /**\n * A query the page read has new rows: the objects it reads changed. The page reads them with\n * `sixb.query(name)` again; the app sends it only for the queries that frame has read.\n */\n | FrameRequestOf<\"query.changed\", { readonly name: string }>\n /**\n * Starts or stops editing a canvas's board, served for editing (`?sixb-edit`): the frame then\n * reports what the reader points at and picks, by address, and lets them type into text. With\n * `typing: false`, a text the reader picks takes no typing, as when they pick what to comment on.\n * The first request after the frame loads transfers a `MessagePort`: the frame reports editing\n * (`edit.hover`, `edit.select`, `edit.text`) through it alone, never through the window.\n */\n | FrameRequestOf<\"edit\", { readonly on: boolean; readonly typing?: boolean }>\n /**\n * What someone else changed in the board, element by element, as `boardFramePatches` says. The\n * element the reader is typing in takes its patch once they leave it.\n */\n | FrameRequestOf<\"edit.patch\", { readonly patches: readonly BoardFramePatch[] }>\n\ninterface FrameRequestOf<Method extends string, Params> {\n readonly protocol: typeof FRAME_PROTOCOL\n readonly id: number\n readonly method: Method\n readonly params: Params\n}\n\n/** The frame's answer to one request. */\nexport interface FrameResponse {\n readonly protocol: typeof FRAME_PROTOCOL\n readonly id: number\n readonly error?: string\n}\n\n/** What happened inside the frame. */\nexport type FrameEvent =\n /** The frame has laid out its entry: a deck says how many slides it has. */\n | FrameEventOf<\"ready\", { readonly slides?: number }>\n /** The reader picked a slide in the overview. */\n | FrameEventOf<\"select\", { readonly slide: number }>\n /** A key the app handles, pressed while the frame had focus. */\n | FrameEventOf<\"key\", { readonly key: string }>\n /** A link to another artifact, which opens where the reader is. */\n | FrameEventOf<\"open\", { readonly address: string }>\n /**\n * A link to a web page, which the app opens in a new tab: the frame cannot open windows itself.\n * Only `http:` and `https:` addresses.\n */\n | FrameEventOf<\"link\", { readonly url: string }>\n /**\n * Where the `<sixb-embed>` boxes in view are, for the app to draw each over the frame: in the\n * frame's pixels, with the scale they are drawn at. A deck reports the shown slide's, and none in\n * the overview, where an embed stays a placeholder, as it does in a filled frame, which never\n * reports; a page reports those near its view as it scrolls, at its own scale.\n */\n | FrameEventOf<\"embeds\", { readonly embeds: readonly FrameEmbed[] }>\n /** A page's height as laid out at the frame's width, so a document can size the frame to it. */\n | FrameEventOf<\"size\", { readonly height: number }>\n /**\n * The reader pressed a button, or a link within the page, that reads `text`: a canvas's opened\n * board follows the arrow that leaves it with that label. At most a label's length.\n */\n | FrameEventOf<\"press\", { readonly text: string }>\n /** Editing, the reader points at an element, or at none. */\n | FrameEventOf<\"edit.hover\", { readonly target: FrameEditTarget | null }>\n /** Editing, the reader picked an element, or none, clicking `at` that point of the frame. */\n | FrameEventOf<\n \"edit.select\",\n { readonly target: FrameEditTarget | null; readonly at?: FramePoint }\n >\n /**\n * Editing, the reader typed in a text element: all its words now, as plain text, and `base`,\n * its words as the frame last posted them, or as they were when the reader started typing. The\n * app makes it with `mergeBoardText`, so what others changed in the element since stays.\n *\n * The runtime takes the port before the board's scripts run, and stops the request that hands\n * it over before they hear it, so they cannot post on it; it reports only the reader's own\n * clicks and keys. What it posts is what the element holds, which the board's scripts can still\n * rewrite. The app takes `edit.text` only for the element the reader picked, the last\n * `edit.select` it heard, and nothing once the board's elements changed under the frame.\n */\n | FrameEventOf<\n \"edit.text\",\n { readonly address: string; readonly base: string; readonly text: string }\n >\n\n/**\n * An element of a board being edited. One a script built, or whose words a script rewrote, is\n * `scripted`: it has no address of its own, and `within` names the element it sits in.\n */\nexport type FrameEditTarget =\n | {\n readonly address: string\n readonly kind: BoardElementKind\n readonly label: string\n readonly rect: FrameRect\n }\n | {\n readonly address: null\n readonly kind: \"scripted\"\n readonly within: string | null\n /** The words the reader pointed at, as the page shows them now. */\n readonly label?: string\n readonly rect: FrameRect\n }\n\nexport interface FramePoint {\n readonly x: number\n readonly y: number\n}\n\nexport interface FrameRect {\n readonly x: number\n readonly y: number\n readonly width: number\n readonly height: number\n}\n\n/** One `<sixb-embed>` the frame shows. */\nexport interface FrameEmbed {\n /** The element's own id while the page is loaded: the same as it scrolls out and back. */\n readonly id: number\n readonly address: string\n readonly rect: {\n readonly x: number\n readonly y: number\n readonly width: number\n readonly height: number\n }\n /**\n * The scale it is drawn at: a slide's, where the embed is laid out at `rect / scale` and scaled\n * with the slide; 1 on a page.\n */\n readonly scale: number\n}\n\ninterface FrameEventOf<Event extends string, Params> {\n readonly protocol: typeof FRAME_PROTOCOL\n readonly event: Event\n readonly params: Params\n}\n\n/**\n * What the frame asks of the app, numbered so the app's `result` answers it: a page keeping data\n * with `sixb.state`, or reading one of its version's queries with `sixb.query`. The app answers\n * only its own frame, for the artifact and the version it shows.\n */\nexport type FrameCall =\n | FrameCallOf<\"state.get\", { readonly key: string }>\n | FrameCallOf<\"state.set\", { readonly key: string; readonly value: unknown }>\n | FrameCallOf<\"state.delete\", { readonly key: string }>\n | FrameCallOf<\"state.keys\", Record<string, never>>\n /** Runs `queries/<name>.json` as the reader; the value is the query route's JSON. */\n | FrameCallOf<\"query.run\", { readonly name: string }>\n\ninterface FrameCallOf<Method extends string, Params> {\n readonly protocol: typeof FRAME_PROTOCOL\n readonly call: number\n readonly method: Method\n readonly params: Params\n}\n\n/** The app's answer to one call: its value, or why it failed. */\nexport interface FrameCallResult {\n readonly protocol: typeof FRAME_PROTOCOL\n readonly result: number\n readonly value?: unknown\n readonly error?: string\n}\n\n/**\n * A message from a frame as a call, or null when it is not one. A page's scripts write what it\n * posts, so the shapes are checked here, and a value is checked for size as JSON, as storage will\n * count it, before the app sends it anywhere.\n */\nexport function parseFrameCall(data: unknown): FrameCall | null {\n if (!isRecord(data) || data.protocol !== FRAME_PROTOCOL || !isRecord(data.params)) return null\n if (!Number.isSafeInteger(data.call) || Number(data.call) < 0) return null\n const call = Number(data.call)\n const { params } = data\n const key = params.key\n const keyed = isStateKey(key)\n switch (data.method) {\n case \"state.get\":\n case \"state.delete\":\n return keyed\n ? ({ protocol: FRAME_PROTOCOL, call, method: data.method, params: { key } } as FrameCall)\n : null\n case \"state.set\": {\n if (!keyed || !(\"value\" in params)) return null\n const json = jsonText(params.value)\n if (json === undefined || utf8Bytes(json) > ARTIFACT_STATE_LIMITS.maxValueBytes) return null\n return {\n protocol: FRAME_PROTOCOL,\n call,\n method: \"state.set\",\n params: { key, value: params.value },\n }\n }\n case \"state.keys\":\n return { protocol: FRAME_PROTOCOL, call, method: \"state.keys\", params: {} }\n case \"query.run\": {\n // The client puts the name in the URL's path, as it does a key.\n const { name } = params\n if (typeof name !== \"string\" || !isArtifactQueryName(name)) return null\n\n return { protocol: FRAME_PROTOCOL, call, method: \"query.run\", params: { name } }\n }\n default:\n return null\n }\n}\n\n/**\n * A key the app can send: the client puts it in the URL's path, where `.` and `..` would name\n * another route, `..` the artifact itself.\n */\nfunction isStateKey(value: unknown): value is string {\n return (\n typeof value === \"string\" &&\n value.length > 0 &&\n value.length <= ARTIFACT_STATE_LIMITS.maxKeyLength &&\n !/\\p{Cc}/u.test(value) &&\n value !== \".\" &&\n value !== \"..\"\n )\n}\n\nfunction jsonText(value: unknown): string | undefined {\n try {\n return JSON.stringify(value)\n } catch {\n return undefined\n }\n}\n\nfunction utf8Bytes(text: string): number {\n return new TextEncoder().encode(text).byteLength\n}\n\n/** Keys the frame passes to the app, so a deck navigates the same with focus in it or not. */\nexport const DECK_KEYS = [\n \"ArrowLeft\",\n \"ArrowRight\",\n \"ArrowUp\",\n \"ArrowDown\",\n \"PageUp\",\n \"PageDown\",\n \"Home\",\n \"End\",\n \" \",\n \"Escape\",\n] as const\n\n/**\n * The theme tokens the app sends into a frame, read from the viewer as it is themed: the ones an\n * artifact's theme may set.\n */\nexport const FRAME_THEME_TOKENS = ARTIFACT_THEME_TOKENS\n\n/**\n * A message from a frame as an event, or null when it is not one this protocol sends. A deck runs\n * its own scripts, so anything it posts is checked for the shape the app relies on: whole slide\n * numbers, a key the app handles, finite boxes, and no more embeds than a version may record.\n */\nexport function parseFrameEvent(data: unknown): FrameEvent | null {\n if (!isRecord(data) || data.protocol !== FRAME_PROTOCOL || !isRecord(data.params)) return null\n const { params } = data\n switch (data.event) {\n case \"ready\":\n if (params.slides === undefined) return event(\"ready\", {})\n return isCount(params.slides) ? event(\"ready\", { slides: params.slides }) : null\n case \"select\":\n return isCount(params.slide) && params.slide > 0\n ? event(\"select\", { slide: params.slide })\n : null\n case \"key\":\n return typeof params.key === \"string\" && (DECK_KEYS as readonly string[]).includes(params.key)\n ? event(\"key\", { key: params.key })\n : null\n case \"open\":\n return isAddress(params.address) ? event(\"open\", { address: params.address }) : null\n case \"link\":\n return isWebAddress(params.url) ? event(\"link\", { url: params.url }) : null\n case \"embeds\": {\n const { embeds } = params\n if (!Array.isArray(embeds) || embeds.length > ARTIFACT_LIMITS.maxReferences) return null\n const parsed: FrameEmbed[] = []\n const ids = new Set<number>()\n for (const embed of embeds) {\n if (!isRecord(embed) || !isAddress(embed.address) || !isRecord(embed.rect)) return null\n\n // Two embeds with one id would be one element drawn twice.\n if (!isCount(embed.id) || ids.has(embed.id)) return null\n ids.add(embed.id)\n\n const { x, y, width, height } = embed.rect\n if (![x, y, width, height, embed.scale].every(Number.isFinite)) return null\n if (Number(width) < 0 || Number(height) < 0 || Number(embed.scale) <= 0) return null\n parsed.push({\n id: embed.id,\n address: embed.address,\n rect: { x: Number(x), y: Number(y), width: Number(width), height: Number(height) },\n scale: Number(embed.scale),\n })\n }\n return event(\"embeds\", { embeds: parsed })\n }\n case \"size\":\n return Number.isFinite(params.height) && Number(params.height) >= 0\n ? event(\"size\", { height: Math.min(Number(params.height), MAX_HEIGHT) })\n : null\n case \"edit.hover\":\n case \"edit.select\": {\n const at = data.event === \"edit.select\" ? parsePoint(params.at) : undefined\n if (at === null) return null\n const point = at ? { at } : {}\n if (params.target === null) return event(data.event, { target: null, ...point })\n const target = parseEditTarget(params.target)\n return target ? event(data.event, { target, ...point }) : null\n }\n case \"edit.text\":\n return isEditAddress(params.address) &&\n typeof params.text === \"string\" &&\n params.text.length <= MAX_EDIT_TEXT_LENGTH &&\n typeof params.base === \"string\" &&\n params.base.length <= MAX_EDIT_TEXT_LENGTH\n ? event(\"edit.text\", { address: params.address, base: params.base, text: params.text })\n : null\n case \"press\":\n return typeof params.text === \"string\" &&\n params.text.length > 0 &&\n params.text.length <= ARTIFACT_LIMITS.maxCanvasLabelLength\n ? event(\"press\", { text: params.text })\n : null\n default:\n return null\n }\n}\n\n/** The most words a text element of a board takes from one edit: a board's own size. */\nconst MAX_EDIT_TEXT_LENGTH = ARTIFACT_LIMITS.maxBoardBytes\n\nconst EDIT_KINDS: readonly string[] = [\"text\", \"image\", \"whole\", \"box\"]\n\n/** The longest label a frame reports for an element: the runtime cuts its own at 80. */\nconst MAX_EDIT_LABEL_LENGTH = 200\n\n/** An address as `boardElements` writes one: steps of a tag and an index, from the body. */\nfunction isEditAddress(value: unknown): value is string {\n return (\n typeof value === \"string\" && value.length <= 2048 && /^body(>[a-z][a-z0-9-]*:\\d+)*$/.test(value)\n )\n}\n\n/** A point the frame reports: undefined for none, null for one that does not read. */\nfunction parsePoint(value: unknown): FramePoint | null | undefined {\n if (value === undefined) return undefined\n if (!isRecord(value) || !Number.isFinite(value.x) || !Number.isFinite(value.y)) return null\n return { x: Number(value.x), y: Number(value.y) }\n}\n\nfunction parseEditTarget(value: unknown): FrameEditTarget | null {\n if (!isRecord(value) || !isRecord(value.rect)) return null\n const { x, y, width, height } = value.rect\n if (![x, y, width, height].every(Number.isFinite)) return null\n const rect = { x: Number(x), y: Number(y), width: Number(width), height: Number(height) }\n\n if (value.kind === \"scripted\") {\n if (value.address !== null) return null\n if (value.within !== null && !isEditAddress(value.within)) return null\n const label =\n typeof value.label === \"string\" && value.label.length <= MAX_EDIT_LABEL_LENGTH\n ? { label: value.label }\n : {}\n return {\n address: null,\n kind: \"scripted\",\n within: value.within as string | null,\n ...label,\n rect,\n }\n }\n if (!isEditAddress(value.address) || !EDIT_KINDS.includes(String(value.kind))) return null\n if (typeof value.label !== \"string\" || value.label.length > MAX_EDIT_LABEL_LENGTH) return null\n return {\n address: value.address,\n kind: value.kind as BoardElementKind,\n label: value.label,\n rect,\n }\n}\n\n/** The most a page reports as its height: more is a page that grows with its frame. */\nconst MAX_HEIGHT = 100_000\n\nfunction event<Name extends FrameEvent[\"event\"]>(\n name: Name,\n params: Extract<FrameEvent, { event: Name }>[\"params\"]\n): FrameEvent {\n return { protocol: FRAME_PROTOCOL, event: name, params } as FrameEvent\n}\n\nfunction isRecord(value: unknown): value is Record<string, unknown> {\n return typeof value === \"object\" && value !== null\n}\n\nfunction isCount(value: unknown): value is number {\n return Number.isSafeInteger(value) && Number(value) >= 0\n}\n\n/** Long enough for any address a version can record; the app resolves it before using it. */\nfunction isAddress(value: unknown): value is string {\n return typeof value === \"string\" && value.length <= 2048\n}\n\n/** The longest web address the app opens: longer than any link a page needs. */\nconst MAX_URL_LENGTH = 8192\n\n/** An absolute `http:` or `https:` address, as the frame resolves a link's. */\nfunction isWebAddress(value: unknown): value is string {\n if (typeof value !== \"string\" || value.length > MAX_URL_LENGTH) return false\n\n try {\n const { protocol } = new URL(value)\n return protocol === \"http:\" || protocol === \"https:\"\n } catch {\n return false\n }\n}\n"
6
+ "import { ARTIFACT_LIMITS, ARTIFACT_STATE_LIMITS } from \"../limits\"\nimport type { BoardElementKind, BoardFramePatch } from \"../live/board\"\nimport { isArtifactQueryName } from \"../queries\"\nimport { ARTIFACT_THEME_TOKENS } from \"../theme\"\n\n/**\n * Messages between the app and an artifact in its sandboxed frame: a deck, or a page. The app\n * asks; the frame answers each request by its id, and tells the app what happened inside it as\n * events. Later abilities are new methods and events, not a new protocol.\n */\nexport const FRAME_PROTOCOL = \"sixb-frame/1\"\n\n/**\n * A deck shows one slide scaled to fit on its stage, every slide in a grid, or one slide filling\n * the page to present it.\n */\nexport type DeckMode = \"slide\" | \"overview\" | \"present\"\n\n/**\n * How a frame opens, set in its URL so the first paint is right: at a slide, and with `fill`, that\n * slide alone filling the frame with no stage around it, as a thumbnail or an embed shows it.\n */\nexport interface FrameStart {\n readonly slide?: number\n readonly fill?: boolean\n}\n\n/** The fragment that carries a frame's start: `#sixb-slide=3&sixb-fill`. */\nexport function frameStartHash(start: FrameStart): string {\n const params: string[] = []\n if (start.slide !== undefined && start.slide > 1)\n params.push(`sixb-slide=${Math.round(start.slide)}`)\n if (start.fill) params.push(\"sixb-fill\")\n return params.length > 0 ? `#${params.join(\"&\")}` : \"\"\n}\n\n/** What the app asks of the frame. */\nexport type FrameRequest =\n | FrameRequestOf<\n \"theme\",\n { readonly tokens: Readonly<Record<string, string>>; readonly dark: boolean }\n >\n | FrameRequestOf<\"goto\", { readonly slide: number }>\n | FrameRequestOf<\"mode\", { readonly mode: DeckMode }>\n /** Scrolls a page by a wheel turned over what the app draws on it. */\n | FrameRequestOf<\"scroll\", { readonly x: number; readonly y: number }>\n /** Loads the entry again, as a page whose data was reset starts over. */\n | FrameRequestOf<\"reload\", Record<string, never>>\n /**\n * A query the page read has new rows: the objects it reads changed. The page reads them with\n * `sixb.query(name)` again; the app sends it only for the queries that frame has read.\n */\n | FrameRequestOf<\"query.changed\", { readonly name: string }>\n /**\n * Starts or stops editing a canvas's board, served for editing (`?sixb-edit`): the frame then\n * reports what the reader points at and picks, by address, and lets them type into text. With\n * `typing: false`, a text the reader picks takes no typing, as when they pick what to comment on.\n * The first request after the frame loads transfers a `MessagePort`: the frame reports editing\n * (`edit.hover`, `edit.select`, `edit.text`) through it alone, never through the window.\n */\n | FrameRequestOf<\"edit\", { readonly on: boolean; readonly typing?: boolean }>\n /**\n * What someone else changed in the board, element by element, as `boardFramePatches` says. The\n * element the reader is typing in takes its patch once they leave it.\n */\n | FrameRequestOf<\"edit.patch\", { readonly patches: readonly BoardFramePatch[] }>\n /**\n * A canvas's board running on the canvas, where the reader uses its page in place. The first\n * request after the frame loads transfers a `MessagePort`: the frame then sends through it alone\n * the reader's gestures the canvas takes (`zoom`, `pan`, `space`) and the words of what they\n * press. `moving` says the canvas is panning by the wheel: a page coming under a still pointer\n * then keeps panning the canvas rather than scrolling itself.\n */\n | FrameRequestOf<\"canvas\", { readonly moving: boolean }>\n\ninterface FrameRequestOf<Method extends string, Params> {\n readonly protocol: typeof FRAME_PROTOCOL\n readonly id: number\n readonly method: Method\n readonly params: Params\n}\n\n/** The frame's answer to one request. */\nexport interface FrameResponse {\n readonly protocol: typeof FRAME_PROTOCOL\n readonly id: number\n readonly error?: string\n}\n\n/** What happened inside the frame. */\nexport type FrameEvent =\n /** The frame has laid out its entry: a deck says how many slides it has. */\n | FrameEventOf<\"ready\", { readonly slides?: number }>\n /** The reader picked a slide in the overview. */\n | FrameEventOf<\"select\", { readonly slide: number }>\n /** A key the app handles, pressed while the frame had focus. */\n | FrameEventOf<\"key\", { readonly key: string }>\n /** A link to another artifact, which opens where the reader is. */\n | FrameEventOf<\"open\", { readonly address: string }>\n /**\n * A link to a web page, which the app opens in a new tab: the frame cannot open windows itself.\n * Only `http:` and `https:` addresses.\n */\n | FrameEventOf<\"link\", { readonly url: string }>\n /**\n * Where the `<sixb-embed>` boxes in view are, for the app to draw each over the frame: in the\n * frame's pixels, with the scale they are drawn at. A deck reports the shown slide's, and none in\n * the overview, where an embed stays a placeholder, as it does in a filled frame, which never\n * reports; a page reports those near its view as it scrolls, at its own scale.\n */\n | FrameEventOf<\"embeds\", { readonly embeds: readonly FrameEmbed[] }>\n /** A page's height as laid out at the frame's width, so a document can size the frame to it. */\n | FrameEventOf<\"size\", { readonly height: number }>\n /**\n * The reader pressed a button, or a link within the page, that reads `text`: a canvas's board\n * follows the arrow that leaves it with that label. At most a label's length. A board running on\n * the canvas also sends it through its port, for the reader's own presses alone.\n */\n | FrameEventOf<\"press\", { readonly text: string }>\n /** Editing, the reader points at an element, or at none. */\n | FrameEventOf<\"edit.hover\", { readonly target: FrameEditTarget | null }>\n /** Editing, the reader picked an element, or none, clicking `at` that point of the frame. */\n | FrameEventOf<\n \"edit.select\",\n { readonly target: FrameEditTarget | null; readonly at?: FramePoint }\n >\n /**\n * Editing, the reader typed in a text element: all its words now, as plain text, and `base`,\n * its words as the frame last posted them, or as they were when the reader started typing. The\n * app makes it with `mergeBoardText`, so what others changed in the element since stays.\n *\n * The runtime takes the port before the board's scripts run, and stops the request that hands\n * it over before they hear it, so they cannot post on it; it reports only the reader's own\n * clicks and keys. What it posts is what the element holds, which the board's scripts can still\n * rewrite. The app takes `edit.text` only for the element the reader picked, the last\n * `edit.select` it heard, and nothing once the board's elements changed under the frame.\n */\n | FrameEventOf<\n \"edit.text\",\n { readonly address: string; readonly base: string; readonly text: string }\n >\n /**\n * The reader zoomed over a canvas's board, opened or running on the canvas, which the app zooms\n * instead of the browser: a pinch or the wheel with ⌘ or Ctrl, `factor` times around `at`, in\n * the frame's pixels; or ⌘ or Ctrl with +, − or 0, a `step`. Only a frame handed a port with\n * `edit` or `canvas` reports it, through that port, and only for the reader's own gestures and\n * keys; any other leaves them to the browser.\n */\n | FrameEventOf<\"zoom\", FrameZoom>\n /**\n * The reader turned the wheel or dragged a finger over a board running on the canvas, which pans\n * the canvas instead of scrolling the page. Only a frame handed a port with `canvas` reports it,\n * through that port, for the reader's own gestures.\n */\n | FrameEventOf<\"pan\", FramePan>\n /**\n * The reader pressed or let go of Space over a board running on the canvas, outside a field:\n * while it is held, dragging pans the canvas. Through the port, as `pan` is.\n */\n | FrameEventOf<\"space\", { readonly down: boolean }>\n\n/**\n * How far the reader scrolled, as a wheel's deltas say it: `x` right and `y` down, in pixels. A\n * finger dragging scrolls the opposite way it moves, as it would scroll a page; the wheel's turns\n * pan the canvas at its own speed for them, as React Flow's do.\n */\nexport interface FramePan {\n readonly x: number\n readonly y: number\n readonly by: \"wheel\" | \"touch\"\n}\n\n/** How the reader zoomed: by a gesture, or by a key. */\nexport type FrameZoom =\n | { readonly factor: number; readonly at: FramePoint }\n | { readonly step: FrameZoomStep }\n\n/** ⌘ or Ctrl with +, − or 0: in, out, or the page at its own size. */\nexport type FrameZoomStep = \"in\" | \"out\" | \"actual\"\n\n/**\n * An element of a board being edited. One a script built, or whose words a script rewrote, is\n * `scripted`: it has no address of its own, and `within` names the element it sits in.\n */\nexport type FrameEditTarget =\n | {\n readonly address: string\n readonly kind: BoardElementKind\n readonly label: string\n readonly rect: FrameRect\n }\n | {\n readonly address: null\n readonly kind: \"scripted\"\n readonly within: string | null\n /** The words the reader pointed at, as the page shows them now. */\n readonly label?: string\n readonly rect: FrameRect\n }\n\nexport interface FramePoint {\n readonly x: number\n readonly y: number\n}\n\nexport interface FrameRect {\n readonly x: number\n readonly y: number\n readonly width: number\n readonly height: number\n}\n\n/** One `<sixb-embed>` the frame shows. */\nexport interface FrameEmbed {\n /** The element's own id while the page is loaded: the same as it scrolls out and back. */\n readonly id: number\n readonly address: string\n readonly rect: {\n readonly x: number\n readonly y: number\n readonly width: number\n readonly height: number\n }\n /**\n * The scale it is drawn at: a slide's, where the embed is laid out at `rect / scale` and scaled\n * with the slide; 1 on a page.\n */\n readonly scale: number\n}\n\ninterface FrameEventOf<Event extends string, Params> {\n readonly protocol: typeof FRAME_PROTOCOL\n readonly event: Event\n readonly params: Params\n}\n\n/**\n * What the frame asks of the app, numbered so the app's `result` answers it: a page keeping data\n * with `sixb.state`, or reading one of its version's queries with `sixb.query`. The app answers\n * only its own frame, for the artifact and the version it shows.\n */\nexport type FrameCall =\n | FrameCallOf<\"state.get\", { readonly key: string }>\n | FrameCallOf<\"state.set\", { readonly key: string; readonly value: unknown }>\n | FrameCallOf<\"state.delete\", { readonly key: string }>\n | FrameCallOf<\"state.keys\", Record<string, never>>\n /** Runs `queries/<name>.json` as the reader; the value is the query route's JSON. */\n | FrameCallOf<\"query.run\", { readonly name: string }>\n\ninterface FrameCallOf<Method extends string, Params> {\n readonly protocol: typeof FRAME_PROTOCOL\n readonly call: number\n readonly method: Method\n readonly params: Params\n}\n\n/** The app's answer to one call: its value, or why it failed. */\nexport interface FrameCallResult {\n readonly protocol: typeof FRAME_PROTOCOL\n readonly result: number\n readonly value?: unknown\n readonly error?: string\n}\n\n/**\n * A message from a frame as a call, or null when it is not one. A page's scripts write what it\n * posts, so the shapes are checked here, and a value is checked for size as JSON, as storage will\n * count it, before the app sends it anywhere.\n */\nexport function parseFrameCall(data: unknown): FrameCall | null {\n if (!isRecord(data) || data.protocol !== FRAME_PROTOCOL || !isRecord(data.params)) return null\n if (!Number.isSafeInteger(data.call) || Number(data.call) < 0) return null\n const call = Number(data.call)\n const { params } = data\n const key = params.key\n const keyed = isStateKey(key)\n switch (data.method) {\n case \"state.get\":\n case \"state.delete\":\n return keyed\n ? ({ protocol: FRAME_PROTOCOL, call, method: data.method, params: { key } } as FrameCall)\n : null\n case \"state.set\": {\n if (!keyed || !(\"value\" in params)) return null\n const json = jsonText(params.value)\n if (json === undefined || utf8Bytes(json) > ARTIFACT_STATE_LIMITS.maxValueBytes) return null\n return {\n protocol: FRAME_PROTOCOL,\n call,\n method: \"state.set\",\n params: { key, value: params.value },\n }\n }\n case \"state.keys\":\n return { protocol: FRAME_PROTOCOL, call, method: \"state.keys\", params: {} }\n case \"query.run\": {\n // The client puts the name in the URL's path, as it does a key.\n const { name } = params\n if (typeof name !== \"string\" || !isArtifactQueryName(name)) return null\n\n return { protocol: FRAME_PROTOCOL, call, method: \"query.run\", params: { name } }\n }\n default:\n return null\n }\n}\n\n/**\n * A key the app can send: the client puts it in the URL's path, where `.` and `..` would name\n * another route, `..` the artifact itself.\n */\nfunction isStateKey(value: unknown): value is string {\n return (\n typeof value === \"string\" &&\n value.length > 0 &&\n value.length <= ARTIFACT_STATE_LIMITS.maxKeyLength &&\n !/\\p{Cc}/u.test(value) &&\n value !== \".\" &&\n value !== \"..\"\n )\n}\n\nfunction jsonText(value: unknown): string | undefined {\n try {\n return JSON.stringify(value)\n } catch {\n return undefined\n }\n}\n\nfunction utf8Bytes(text: string): number {\n return new TextEncoder().encode(text).byteLength\n}\n\n/** Keys the frame passes to the app, so a deck navigates the same with focus in it or not. */\nexport const DECK_KEYS = [\n \"ArrowLeft\",\n \"ArrowRight\",\n \"ArrowUp\",\n \"ArrowDown\",\n \"PageUp\",\n \"PageDown\",\n \"Home\",\n \"End\",\n \" \",\n \"Escape\",\n] as const\n\n/**\n * The theme tokens the app sends into a frame, read from the viewer as it is themed: the ones an\n * artifact's theme may set.\n */\nexport const FRAME_THEME_TOKENS = ARTIFACT_THEME_TOKENS\n\n/**\n * A message from a frame as an event, or null when it is not one this protocol sends. A deck runs\n * its own scripts, so anything it posts is checked for the shape the app relies on: whole slide\n * numbers, a key the app handles, finite boxes, and no more embeds than a version may record.\n */\nexport function parseFrameEvent(data: unknown): FrameEvent | null {\n if (!isRecord(data) || data.protocol !== FRAME_PROTOCOL || !isRecord(data.params)) return null\n const { params } = data\n switch (data.event) {\n case \"ready\":\n if (params.slides === undefined) return event(\"ready\", {})\n return isCount(params.slides) ? event(\"ready\", { slides: params.slides }) : null\n case \"select\":\n return isCount(params.slide) && params.slide > 0\n ? event(\"select\", { slide: params.slide })\n : null\n case \"key\":\n return typeof params.key === \"string\" && (DECK_KEYS as readonly string[]).includes(params.key)\n ? event(\"key\", { key: params.key })\n : null\n case \"open\":\n return isAddress(params.address) ? event(\"open\", { address: params.address }) : null\n case \"link\":\n return isWebAddress(params.url) ? event(\"link\", { url: params.url }) : null\n case \"embeds\": {\n const { embeds } = params\n if (!Array.isArray(embeds) || embeds.length > ARTIFACT_LIMITS.maxReferences) return null\n const parsed: FrameEmbed[] = []\n const ids = new Set<number>()\n for (const embed of embeds) {\n if (!isRecord(embed) || !isAddress(embed.address) || !isRecord(embed.rect)) return null\n\n // Two embeds with one id would be one element drawn twice.\n if (!isCount(embed.id) || ids.has(embed.id)) return null\n ids.add(embed.id)\n\n const { x, y, width, height } = embed.rect\n if (![x, y, width, height, embed.scale].every(Number.isFinite)) return null\n if (Number(width) < 0 || Number(height) < 0 || Number(embed.scale) <= 0) return null\n parsed.push({\n id: embed.id,\n address: embed.address,\n rect: { x: Number(x), y: Number(y), width: Number(width), height: Number(height) },\n scale: Number(embed.scale),\n })\n }\n return event(\"embeds\", { embeds: parsed })\n }\n case \"size\":\n return Number.isFinite(params.height) && Number(params.height) >= 0\n ? event(\"size\", { height: Math.min(Number(params.height), MAX_HEIGHT) })\n : null\n case \"edit.hover\":\n case \"edit.select\": {\n const at = data.event === \"edit.select\" ? parsePoint(params.at) : undefined\n if (at === null) return null\n const point = at ? { at } : {}\n if (params.target === null) return event(data.event, { target: null, ...point })\n const target = parseEditTarget(params.target)\n return target ? event(data.event, { target, ...point }) : null\n }\n case \"edit.text\":\n return isEditAddress(params.address) &&\n typeof params.text === \"string\" &&\n params.text.length <= MAX_EDIT_TEXT_LENGTH &&\n typeof params.base === \"string\" &&\n params.base.length <= MAX_EDIT_TEXT_LENGTH\n ? event(\"edit.text\", { address: params.address, base: params.base, text: params.text })\n : null\n case \"zoom\": {\n if (params.step !== undefined) {\n return ZOOM_STEPS.includes(String(params.step))\n ? event(\"zoom\", { step: params.step as FrameZoomStep })\n : null\n }\n\n const at = parsePoint(params.at)\n const factor = Number(params.factor)\n if (!at || !Number.isFinite(params.factor) || factor <= 0) return null\n\n return event(\"zoom\", {\n factor: Math.min(MAX_ZOOM_FACTOR, Math.max(1 / MAX_ZOOM_FACTOR, factor)),\n at,\n })\n }\n case \"pan\": {\n const { x, y, by } = params\n if (!Number.isFinite(x) || !Number.isFinite(y) || (by !== \"wheel\" && by !== \"touch\")) {\n return null\n }\n\n const bounded = (delta: number) => Math.min(MAX_PAN, Math.max(-MAX_PAN, delta))\n return event(\"pan\", { x: bounded(Number(x)), y: bounded(Number(y)), by })\n }\n case \"space\":\n return typeof params.down === \"boolean\" ? event(\"space\", { down: params.down }) : null\n case \"press\":\n return typeof params.text === \"string\" &&\n params.text.length > 0 &&\n params.text.length <= ARTIFACT_LIMITS.maxCanvasLabelLength\n ? event(\"press\", { text: params.text })\n : null\n default:\n return null\n }\n}\n\n/** The most words a text element of a board takes from one edit: a board's own size. */\nconst MAX_EDIT_TEXT_LENGTH = ARTIFACT_LIMITS.maxBoardBytes\n\nconst EDIT_KINDS: readonly string[] = [\"text\", \"image\", \"whole\", \"box\"]\n\nconst ZOOM_STEPS: readonly string[] = [\"in\", \"out\", \"actual\"] satisfies FrameZoomStep[]\n\n/** The most one gesture zooms by, either way: a wheel's notch is far less. */\nconst MAX_ZOOM_FACTOR = 4\n\n/** The most one wheel's turn or one finger's move pans by, either way: a screen's width. */\nconst MAX_PAN = 4000\n\n/** The longest label a frame reports for an element: the runtime cuts its own at 80. */\nconst MAX_EDIT_LABEL_LENGTH = 200\n\n/** An address as `boardElements` writes one: steps of a tag and an index, from the body. */\nfunction isEditAddress(value: unknown): value is string {\n return (\n typeof value === \"string\" && value.length <= 2048 && /^body(>[a-z][a-z0-9-]*:\\d+)*$/.test(value)\n )\n}\n\n/** A point the frame reports: undefined for none, null for one that does not read. */\nfunction parsePoint(value: unknown): FramePoint | null | undefined {\n if (value === undefined) return undefined\n if (!isRecord(value) || !Number.isFinite(value.x) || !Number.isFinite(value.y)) return null\n return { x: Number(value.x), y: Number(value.y) }\n}\n\nfunction parseEditTarget(value: unknown): FrameEditTarget | null {\n if (!isRecord(value) || !isRecord(value.rect)) return null\n const { x, y, width, height } = value.rect\n if (![x, y, width, height].every(Number.isFinite)) return null\n const rect = { x: Number(x), y: Number(y), width: Number(width), height: Number(height) }\n\n if (value.kind === \"scripted\") {\n if (value.address !== null) return null\n if (value.within !== null && !isEditAddress(value.within)) return null\n const label =\n typeof value.label === \"string\" && value.label.length <= MAX_EDIT_LABEL_LENGTH\n ? { label: value.label }\n : {}\n return {\n address: null,\n kind: \"scripted\",\n within: value.within as string | null,\n ...label,\n rect,\n }\n }\n if (!isEditAddress(value.address) || !EDIT_KINDS.includes(String(value.kind))) return null\n if (typeof value.label !== \"string\" || value.label.length > MAX_EDIT_LABEL_LENGTH) return null\n return {\n address: value.address,\n kind: value.kind as BoardElementKind,\n label: value.label,\n rect,\n }\n}\n\n/** The most a page reports as its height: more is a page that grows with its frame. */\nconst MAX_HEIGHT = 100_000\n\nfunction event<Name extends FrameEvent[\"event\"]>(\n name: Name,\n params: Extract<FrameEvent, { event: Name }>[\"params\"]\n): FrameEvent {\n return { protocol: FRAME_PROTOCOL, event: name, params } as FrameEvent\n}\n\nfunction isRecord(value: unknown): value is Record<string, unknown> {\n return typeof value === \"object\" && value !== null\n}\n\nfunction isCount(value: unknown): value is number {\n return Number.isSafeInteger(value) && Number(value) >= 0\n}\n\n/** Long enough for any address a version can record; the app resolves it before using it. */\nfunction isAddress(value: unknown): value is string {\n return typeof value === \"string\" && value.length <= 2048\n}\n\n/** The longest web address the app opens: longer than any link a page needs. */\nconst MAX_URL_LENGTH = 8192\n\n/** An absolute `http:` or `https:` address, as the frame resolves a link's. */\nfunction isWebAddress(value: unknown): value is string {\n if (typeof value !== \"string\" || value.length > MAX_URL_LENGTH) return false\n\n try {\n const { protocol } = new URL(value)\n return protocol === \"http:\" || protocol === \"https:\"\n } catch {\n return false\n }\n}\n"
7
7
  ],
8
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAWO,SAAS,oBAAoB,CAAC,SAO1B;AAAA,EACT,QAAQ,WAAW;AAAA,EACnB,MAAM,QAAQ;AAAA,IACZ,OAAO;AAAA,IACP,OAAO;AAAA,IACP,OAAO,QAAQ,KAAK,UAAU,OAAO,KAAK,IAAI;AAAA,IAC9C,YAAY,OAAO;AAAA,IACnB,QAAQ,KAAK,WAAW,QAAQ,OAAO;AAAA,IACvC,QAAQ,aACJ,QAAQ,QAAQ,QAAQ,WAAW,KAAK,QAAQ,WAAW,QAAQ,QAAQ,GAAG,EAAE,KAAK,MACrF;AAAA,EACN,EAAE,OAAO,CAAC,SAAyB,SAAS,SAAS;AAAA,EACrD,OAAO,IAAI,MAAM,KAAK,QAAK,MAAM,QAAQ,KAAK,QAAQ,QAAQ,GAAG,EAAE,KAAK;AAAA;;ACpBnE,IAAM,iBAAiB;AAkBvB,SAAS,cAAc,CAAC,OAA2B;AAAA,EACxD,MAAM,SAAmB,CAAC;AAAA,EAC1B,IAAI,MAAM,UAAU,aAAa,MAAM,QAAQ;AAAA,IAC7C,OAAO,KAAK,cAAc,KAAK,MAAM,MAAM,KAAK,GAAG;AAAA,EACrD,IAAI,MAAM;AAAA,IAAM,OAAO,KAAK,WAAW;AAAA,EACvC,OAAO,OAAO,SAAS,IAAI,IAAI,OAAO,KAAK,GAAG,MAAM;AAAA;AA6L/C,SAAS,cAAc,CAAC,MAAiC;AAAA,EAC9D,IAAI,CAAC,SAAS,IAAI,KAAK,KAAK,aAAa,kBAAkB,CAAC,SAAS,KAAK,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mbsbxarb.js";
20
20
  import"../../chunk-g2ph4873.js";
21
21
  import"../../chunk-az95tsh3.js";
22
22
  import"../../chunk-qttqe1ah.js";
23
- import"../../chunk-7z5rkf0m.js";
23
+ import"../../chunk-t0s7b3d1.js";
24
24
  import"../../chunk-zeykm8my.js";
25
25
  import"../../chunk-c4nrycdy.js";
26
26
  import"../../chunk-pk539cwv.js";
@@ -32,7 +32,7 @@ import"../../chunk-gfdh9kqa.js";
32
32
  import"../../chunk-cwdzcv37.js";
33
33
  import"../../chunk-eptrvnby.js";
34
34
  import"../../chunk-cswhawa2.js";
35
- import"../../chunk-2by73sm2.js";
35
+ import"../../chunk-w1wq7gfr.js";
36
36
  import"../../chunk-e0hnbb1m.js";
37
37
  import"../../chunk-s7xqfxs9.js";
38
38
  import"../../chunk-3sgvd10b.js";
@@ -41,8 +41,8 @@ import"../../chunk-hn2r7z41.js";
41
41
  import"../../chunk-5rqqp8cr.js";
42
42
  import"../../chunk-jmfet9r4.js";
43
43
  import"../../chunk-qf954wje.js";
44
- import"../../chunk-8p7bze4c.js";
45
- import"../../chunk-26qet7wh.js";
44
+ import"../../chunk-rsxb14an.js";
45
+ import"../../chunk-msyevpp3.js";
46
46
  import"../../chunk-bz5bnjjt.js";
47
47
  import {
48
48
  mergeIntoDocument2
@@ -54,16 +54,16 @@ import {
54
54
  loadArtifactDocument2,
55
55
  readDocumentState2,
56
56
  writeLiveArtifact2
57
- } from "../../chunk-w9s23r24.js";
57
+ } from "../../chunk-yy914zfr.js";
58
58
  import"../../chunk-a6fjkcne.js";
59
- import"../../chunk-qds484t8.js";
59
+ import"../../chunk-hvbvq7p4.js";
60
60
  import {
61
61
  AGENT_PRESENCE_MS2,
62
62
  artifactLiveStream2,
63
63
  artifactPresenceStream2,
64
64
  parseArtifactLiveRecord2,
65
65
  appendArtifactLive2
66
- } from "../../chunk-38yvdqzd.js";
66
+ } from "../../chunk-7kpqntgw.js";
67
67
  import"../../chunk-186k5yz3.js";
68
68
  import"../../chunk-xtztwpkh.js";
69
69
  import"../../chunk-stmxh0hv.js";
@@ -27,7 +27,7 @@ import"../../chunk-mbsbxarb.js";
27
27
  import"../../chunk-g2ph4873.js";
28
28
  import"../../chunk-az95tsh3.js";
29
29
  import"../../chunk-qttqe1ah.js";
30
- import"../../chunk-7z5rkf0m.js";
30
+ import"../../chunk-t0s7b3d1.js";
31
31
  import"../../chunk-zeykm8my.js";
32
32
  import"../../chunk-c4nrycdy.js";
33
33
  import"../../chunk-pk539cwv.js";
@@ -41,7 +41,7 @@ import"../../chunk-gfdh9kqa.js";
41
41
  import"../../chunk-cwdzcv37.js";
42
42
  import"../../chunk-eptrvnby.js";
43
43
  import"../../chunk-cswhawa2.js";
44
- import"../../chunk-2by73sm2.js";
44
+ import"../../chunk-w1wq7gfr.js";
45
45
  import"../../chunk-e0hnbb1m.js";
46
46
  import"../../chunk-s7xqfxs9.js";
47
47
  import"../../chunk-3sgvd10b.js";
@@ -50,8 +50,8 @@ import"../../chunk-hn2r7z41.js";
50
50
  import"../../chunk-5rqqp8cr.js";
51
51
  import"../../chunk-jmfet9r4.js";
52
52
  import"../../chunk-qf954wje.js";
53
- import"../../chunk-8p7bze4c.js";
54
- import"../../chunk-26qet7wh.js";
53
+ import"../../chunk-rsxb14an.js";
54
+ import"../../chunk-msyevpp3.js";
55
55
  import"../../chunk-bz5bnjjt.js";
56
56
  import"../../chunk-m2jerfef.js";
57
57
  import {
@@ -71,8 +71,8 @@ import {
71
71
  artifactVersionWarnings2,
72
72
  artifactAccessRule2,
73
73
  artifactQueryChecker2
74
- } from "../../chunk-w9s23r24.js";
75
- import"../../chunk-qds484t8.js";
74
+ } from "../../chunk-yy914zfr.js";
75
+ import"../../chunk-hvbvq7p4.js";
76
76
  import"../../chunk-186k5yz3.js";
77
77
  import"../../chunk-xtztwpkh.js";
78
78
  import"../../chunk-stmxh0hv.js";
@@ -5,7 +5,7 @@ import {
5
5
  listProjectModules2,
6
6
  discoverProjectDefinitions2,
7
7
  listOntologyModuleFiles
8
- } from "../chunk-kv0kvknv.js";
8
+ } from "../chunk-r9rtavg9.js";
9
9
  import"../chunk-kr6dx38r.js";
10
10
  import"../chunk-7j4yydm2.js";
11
11
  import"../chunk-wkv3h3q7.js";
@@ -27,7 +27,7 @@ import"../chunk-mbsbxarb.js";
27
27
  import"../chunk-g2ph4873.js";
28
28
  import"../chunk-az95tsh3.js";
29
29
  import"../chunk-qttqe1ah.js";
30
- import"../chunk-7z5rkf0m.js";
30
+ import"../chunk-t0s7b3d1.js";
31
31
  import"../chunk-zeykm8my.js";
32
32
  import"../chunk-c4nrycdy.js";
33
33
  import"../chunk-pk539cwv.js";
@@ -39,7 +39,7 @@ import"../chunk-gfdh9kqa.js";
39
39
  import"../chunk-cwdzcv37.js";
40
40
  import"../chunk-eptrvnby.js";
41
41
  import"../chunk-cswhawa2.js";
42
- import"../chunk-2by73sm2.js";
42
+ import"../chunk-w1wq7gfr.js";
43
43
  import"../chunk-e0hnbb1m.js";
44
44
  import"../chunk-s7xqfxs9.js";
45
45
  import"../chunk-3sgvd10b.js";
@@ -48,16 +48,16 @@ import"../chunk-hn2r7z41.js";
48
48
  import"../chunk-5rqqp8cr.js";
49
49
  import"../chunk-jmfet9r4.js";
50
50
  import"../chunk-qf954wje.js";
51
- import"../chunk-8p7bze4c.js";
52
- import"../chunk-26qet7wh.js";
51
+ import"../chunk-rsxb14an.js";
52
+ import"../chunk-msyevpp3.js";
53
53
  import"../chunk-bz5bnjjt.js";
54
54
  import"../chunk-m2jerfef.js";
55
- import"../chunk-w9s23r24.js";
55
+ import"../chunk-yy914zfr.js";
56
56
  import"../chunk-a6fjkcne.js";
57
- import"../chunk-qds484t8.js";
58
- import"../chunk-e9w4mgdh.js";
57
+ import"../chunk-hvbvq7p4.js";
58
+ import"../chunk-rtm1jq00.js";
59
59
  import"../chunk-czct88ht.js";
60
- import"../chunk-6gtxshcc.js";
60
+ import"../chunk-vepea5c3.js";
61
61
  import"../chunk-48c1z8nj.js";
62
62
  import"../chunk-5qqmndhm.js";
63
63
  import"../chunk-sgx82nnt.js";
@@ -67,28 +67,28 @@ import"../chunk-wa05txmk.js";
67
67
  import"../chunk-wx7smkn2.js";
68
68
  import"../chunk-ppxf7gw2.js";
69
69
  import"../chunk-191jz8a6.js";
70
- import"../chunk-k66rp2hr.js";
70
+ import"../chunk-2bn6813a.js";
71
71
  import"../chunk-q9nkpr8k.js";
72
- import"../chunk-4j0sagwv.js";
72
+ import"../chunk-evj5jxz3.js";
73
73
  import"../chunk-1vg43g9q.js";
74
74
  import"../chunk-m427qgq0.js";
75
75
  import"../chunk-fe6r7yhg.js";
76
76
  import"../chunk-yv8hv4wq.js";
77
77
  import"../chunk-b9qfh2ya.js";
78
78
  import"../chunk-t24yktqr.js";
79
- import"../chunk-hkaa807g.js";
80
- import"../chunk-z0t4p2sk.js";
81
- import"../chunk-38yvdqzd.js";
79
+ import"../chunk-td26wjr5.js";
80
+ import"../chunk-gxwy4c3s.js";
81
+ import"../chunk-7kpqntgw.js";
82
82
  import"../chunk-de5sfbc3.js";
83
83
  import"../chunk-bc3y6gff.js";
84
84
  import"../chunk-8t2ynwg0.js";
85
- import"../chunk-s5n9617r.js";
85
+ import"../chunk-p8pgnq8d.js";
86
86
  import"../chunk-7qe46788.js";
87
- import"../chunk-m7b9q5dk.js";
87
+ import"../chunk-3z1vxzcm.js";
88
88
  import"../chunk-n68vz95m.js";
89
89
  import"../chunk-rtdrm592.js";
90
90
  import"../chunk-3723kgba.js";
91
- import"../chunk-qafng88v.js";
91
+ import"../chunk-6ef4esq4.js";
92
92
  import"../chunk-3hzhcfsv.js";
93
93
  import"../chunk-8tqnsx3q.js";
94
94
  import"../chunk-d9xbwh3h.js";
@@ -23,7 +23,7 @@ import {
23
23
  } from "./chunk-qttqe1ah.js";
24
24
  import {
25
25
  AiCostStorageError2
26
- } from "./chunk-2by73sm2.js";
26
+ } from "./chunk-w1wq7gfr.js";
27
27
  import {
28
28
  AiUsageStorageError2,
29
29
  normalizeAiModelCallRecord2
@@ -11,7 +11,7 @@ import {
11
11
  } from "./chunk-czct88ht.js";
12
12
  import {
13
13
  SYNC_RUN_FAILURE_CODES2
14
- } from "./chunk-2by73sm2.js";
14
+ } from "./chunk-w1wq7gfr.js";
15
15
  import {
16
16
  SyncRunError2
17
17
  } from "./chunk-jmfet9r4.js";
@@ -11,7 +11,7 @@ import {
11
11
  } from "./chunk-czct88ht.js";
12
12
  import {
13
13
  PIPELINE_RUN_FAILURE_CODES2
14
- } from "./chunk-2by73sm2.js";
14
+ } from "./chunk-w1wq7gfr.js";
15
15
  import {
16
16
  PipelineRunError2
17
17
  } from "./chunk-22d3qg4x.js";
@@ -1,7 +1,7 @@
1
1
  // @bun
2
2
  import {
3
3
  boardRenderKey
4
- } from "./chunk-w9s23r24.js";
4
+ } from "./chunk-yy914zfr.js";
5
5
 
6
6
  // src/artifacts/live/presence.ts
7
7
  var ARTIFACT_LIVE_RETENTION = { maxAgeMs: 10 * 60000, maxRecords: 5000 };
@@ -37,7 +37,7 @@ import {
37
37
  } from "./chunk-qttqe1ah.js";
38
38
  import {
39
39
  VECTOR_INDEXING_FAILURE_CODES2
40
- } from "./chunk-2by73sm2.js";
40
+ } from "./chunk-w1wq7gfr.js";
41
41
  import {
42
42
  waitUnlessAborted2
43
43
  } from "./chunk-mwcqz3e3.js";
@@ -47,7 +47,7 @@ import {
47
47
  } from "./chunk-dmnd9ea6.js";
48
48
  import {
49
49
  ModelExecutionSession
50
- } from "./chunk-6gtxshcc.js";
50
+ } from "./chunk-vepea5c3.js";
51
51
  import {
52
52
  executionRecordInputFromRuntime,
53
53
  ensureExecutionRecord2