@sixb/core 0.2.2 → 0.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/actions/index.js +55 -49
- package/dist/actions/index.js.map +1 -1
- package/dist/actions/request.d.ts.map +1 -1
- package/dist/actions/run/executor.d.ts +0 -2
- package/dist/actions/run/executor.d.ts.map +1 -1
- package/dist/actions/types/context.d.ts +5 -1
- package/dist/actions/types/context.d.ts.map +1 -1
- package/dist/agents/execution.d.ts +2 -1
- package/dist/agents/execution.d.ts.map +1 -1
- package/dist/agents/fork.d.ts.map +1 -1
- package/dist/agents/index.d.ts +1 -1
- package/dist/agents/index.d.ts.map +1 -1
- package/dist/agents/index.js +82 -75
- package/dist/agents/index.js.map +1 -1
- package/dist/agents/request.d.ts +7 -1
- package/dist/agents/request.d.ts.map +1 -1
- package/dist/agents/run-artifacts.d.ts +73 -10
- package/dist/agents/run-artifacts.d.ts.map +1 -1
- package/dist/agents/run-session-http.d.ts.map +1 -1
- package/dist/agents/run-session-serve.d.ts.map +1 -1
- package/dist/agents/run-session.d.ts +3 -0
- package/dist/agents/run-session.d.ts.map +1 -1
- package/dist/agents/streams/index.js +2 -2
- package/dist/agents/streams/internal.js +2 -2
- package/dist/agents/streams/protocol.d.ts.map +1 -1
- package/dist/agents/validation.d.ts +1 -1
- package/dist/agents/validation.d.ts.map +1 -1
- package/dist/artifacts/access.d.ts +37 -17
- package/dist/artifacts/access.d.ts.map +1 -1
- package/dist/artifacts/canvas-display.d.ts +65 -0
- package/dist/artifacts/canvas-display.d.ts.map +1 -0
- package/dist/artifacts/canvas.d.ts +6 -1
- package/dist/artifacts/canvas.d.ts.map +1 -1
- package/dist/artifacts/comment-text.d.ts +19 -0
- package/dist/artifacts/comment-text.d.ts.map +1 -0
- package/dist/artifacts/comments.d.ts +52 -0
- package/dist/artifacts/comments.d.ts.map +1 -0
- package/dist/artifacts/errors.d.ts +3 -3
- package/dist/artifacts/errors.d.ts.map +1 -1
- package/dist/artifacts/events.d.ts +14 -0
- package/dist/artifacts/events.d.ts.map +1 -0
- package/dist/artifacts/execution.d.ts +129 -22
- package/dist/artifacts/execution.d.ts.map +1 -1
- package/dist/artifacts/frames/assets.d.ts +12 -1
- package/dist/artifacts/frames/assets.d.ts.map +1 -1
- package/dist/artifacts/frames/grants.d.ts +8 -5
- package/dist/artifacts/frames/grants.d.ts.map +1 -1
- package/dist/artifacts/frames/index.d.ts +1 -1
- package/dist/artifacts/frames/index.d.ts.map +1 -1
- package/dist/artifacts/frames/index.js +32 -964
- package/dist/artifacts/frames/index.js.map +4 -8
- package/dist/artifacts/frames/kit.d.ts.map +1 -1
- package/dist/artifacts/frames/protocol.d.ts +78 -0
- package/dist/artifacts/frames/protocol.d.ts.map +1 -1
- package/dist/artifacts/frames/runtime.d.ts +17 -7
- package/dist/artifacts/frames/runtime.d.ts.map +1 -1
- package/dist/artifacts/holders.d.ts +23 -0
- package/dist/artifacts/holders.d.ts.map +1 -0
- package/dist/artifacts/ids.d.ts +2 -0
- package/dist/artifacts/ids.d.ts.map +1 -1
- package/dist/artifacts/index.d.ts +6 -4
- package/dist/artifacts/index.d.ts.map +1 -1
- package/dist/artifacts/index.js +108 -13
- package/dist/artifacts/index.js.map +5 -4
- package/dist/artifacts/limits.d.ts +24 -3
- package/dist/artifacts/limits.d.ts.map +1 -1
- package/dist/artifacts/live/board.d.ts +103 -0
- package/dist/artifacts/live/board.d.ts.map +1 -0
- package/dist/artifacts/live/diff.d.ts +43 -0
- package/dist/artifacts/live/diff.d.ts.map +1 -0
- package/dist/artifacts/live/document.d.ts +55 -0
- package/dist/artifacts/live/document.d.ts.map +1 -0
- package/dist/artifacts/live/files.d.ts +16 -0
- package/dist/artifacts/live/files.d.ts.map +1 -0
- package/dist/artifacts/live/index.d.ts +9 -0
- package/dist/artifacts/live/index.d.ts.map +1 -0
- package/dist/artifacts/live/index.js +593 -0
- package/dist/artifacts/live/index.js.map +10 -0
- package/dist/artifacts/live/presence.d.ts +55 -0
- package/dist/artifacts/live/presence.d.ts.map +1 -0
- package/dist/artifacts/live/protocol.d.ts +109 -0
- package/dist/artifacts/live/protocol.d.ts.map +1 -0
- package/dist/artifacts/live/protocol.js +21 -0
- package/dist/artifacts/live/protocol.js.map +9 -0
- package/dist/artifacts/live/server.d.ts +10 -0
- package/dist/artifacts/live/server.d.ts.map +1 -0
- package/dist/artifacts/live/server.js +86 -0
- package/dist/artifacts/live/server.js.map +9 -0
- package/dist/artifacts/live/state.d.ts +26 -0
- package/dist/artifacts/live/state.d.ts.map +1 -0
- package/dist/artifacts/outline.d.ts +11 -0
- package/dist/artifacts/outline.d.ts.map +1 -1
- package/dist/artifacts/publish/index.d.ts +8 -1
- package/dist/artifacts/publish/index.d.ts.map +1 -1
- package/dist/artifacts/publish/index.js +61 -33
- package/dist/artifacts/publish/index.js.map +1 -1
- package/dist/artifacts/publish/merge.d.ts +75 -0
- package/dist/artifacts/publish/merge.d.ts.map +1 -0
- package/dist/artifacts/publish/previews.d.ts +153 -0
- package/dist/artifacts/publish/previews.d.ts.map +1 -0
- package/dist/artifacts/publish/publish.d.ts +29 -8
- package/dist/artifacts/publish/publish.d.ts.map +1 -1
- package/dist/artifacts/publish/query-answers.d.ts +20 -0
- package/dist/artifacts/publish/query-answers.d.ts.map +1 -0
- package/dist/artifacts/publish/references.d.ts +4 -3
- package/dist/artifacts/publish/references.d.ts.map +1 -1
- package/dist/artifacts/publish/validate/canvas.d.ts.map +1 -1
- package/dist/artifacts/theme.d.ts +5 -1
- package/dist/artifacts/theme.d.ts.map +1 -1
- package/dist/auth/directory.d.ts +33 -0
- package/dist/auth/directory.d.ts.map +1 -0
- package/dist/auth/index.js +13 -12
- package/dist/auth/index.js.map +1 -1
- package/dist/auth/member-events.d.ts +5 -1
- package/dist/auth/member-events.d.ts.map +1 -1
- package/dist/auth/runtime.d.ts +22 -1
- package/dist/auth/runtime.d.ts.map +1 -1
- package/dist/auth/strategy.d.ts +2 -2
- package/dist/auth/strategy.d.ts.map +1 -1
- package/dist/auth/types.d.ts +42 -1
- package/dist/auth/types.d.ts.map +1 -1
- package/dist/authorization/decision.d.ts +6 -5
- package/dist/authorization/decision.d.ts.map +1 -1
- package/dist/authorization/event-visibility.d.ts.map +1 -1
- package/dist/authorization/index.js +7 -6
- package/dist/authorization/index.js.map +1 -1
- package/dist/blob-storage/index.js +4 -4
- package/dist/blob-storage/index.js.map +1 -1
- package/dist/bootstrap/index.js +62 -56
- package/dist/bootstrap/index.js.map +2 -2
- package/dist/broker/in-memory.d.ts.map +1 -1
- package/dist/broker/index.js +1 -1
- package/dist/broker/types.d.ts +4 -0
- package/dist/broker/types.d.ts.map +1 -1
- package/dist/{chunk-s7j8ewqv.js → chunk-0k3r5kb3.js} +257 -43
- package/dist/{chunk-s7j8ewqv.js.map → chunk-0k3r5kb3.js.map} +14 -13
- package/dist/{chunk-e5wf5vz0.js → chunk-0kgrghqx.js} +13 -1
- package/dist/chunk-0kgrghqx.js.map +10 -0
- package/dist/{chunk-80gym75n.js → chunk-186k5yz3.js} +1 -1
- package/dist/chunk-191jz8a6.js +61 -0
- package/dist/chunk-191jz8a6.js.map +10 -0
- package/dist/{chunk-mmagke4x.js → chunk-22d3qg4x.js} +2 -2
- package/dist/{chunk-mmagke4x.js.map → chunk-22d3qg4x.js.map} +3 -3
- package/dist/{chunk-m2vh8gh0.js → chunk-26qet7wh.js} +62 -15
- package/dist/{chunk-m2vh8gh0.js.map → chunk-26qet7wh.js.map} +5 -5
- package/dist/{chunk-eqgr6nsa.js → chunk-2by73sm2.js} +982 -184
- package/dist/chunk-2by73sm2.js.map +75 -0
- package/dist/chunk-2c4j899j.js.map +2 -2
- package/dist/{chunk-e6xgz4h4.js → chunk-3014rfjz.js} +197 -18
- package/dist/chunk-3014rfjz.js.map +21 -0
- package/dist/chunk-38yvdqzd.js +70 -0
- package/dist/chunk-38yvdqzd.js.map +10 -0
- package/dist/{chunk-ytzcxtpt.js → chunk-3ba89vm7.js} +1 -1
- package/dist/chunk-3hzhcfsv.js +139 -0
- package/dist/chunk-3hzhcfsv.js.map +10 -0
- package/dist/chunk-3sgvd10b.js +69 -0
- package/dist/chunk-3sgvd10b.js.map +10 -0
- package/dist/{chunk-djs3hw9p.js → chunk-3zagkr6w.js} +73 -6
- package/dist/chunk-3zagkr6w.js.map +21 -0
- package/dist/{chunk-wkq3kvzd.js → chunk-48c1z8nj.js} +6 -6
- package/dist/chunk-48c1z8nj.js.map +10 -0
- package/dist/{chunk-3sqqhpr7.js → chunk-4j0sagwv.js} +134 -19
- package/dist/{chunk-3sqqhpr7.js.map → chunk-4j0sagwv.js.map} +11 -10
- package/dist/{chunk-d04g36fw.js → chunk-5qqmndhm.js} +1 -1
- package/dist/{chunk-scyq22td.js → chunk-5rqqp8cr.js} +19 -4
- package/dist/chunk-5rqqp8cr.js.map +12 -0
- package/dist/{chunk-f1h34y3r.js → chunk-6gtxshcc.js} +6 -6
- package/dist/{chunk-f1h34y3r.js.map → chunk-6gtxshcc.js.map} +1 -1
- package/dist/{chunk-jspskey0.js → chunk-7j4yydm2.js} +67 -45
- package/dist/chunk-7j4yydm2.js.map +11 -0
- package/dist/{chunk-5wtnmpze.js → chunk-7qe46788.js} +1 -1
- package/dist/{chunk-31kcqmhf.js → chunk-855w9nvw.js} +1 -1
- package/dist/{chunk-e7v3trpz.js → chunk-8a8k38tz.js} +4 -3
- package/dist/chunk-8a8k38tz.js.map +10 -0
- package/dist/{chunk-2ajw5rz0.js → chunk-8p7bze4c.js} +3 -3
- package/dist/{chunk-jftd33rc.js → chunk-8t2ynwg0.js} +105 -9
- package/dist/chunk-8t2ynwg0.js.map +11 -0
- package/dist/{chunk-9whfmsfk.js → chunk-8tqnsx3q.js} +1 -1
- package/dist/{chunk-s3we74h8.js → chunk-9nsjjd44.js} +38 -5
- package/dist/chunk-9nsjjd44.js.map +12 -0
- package/dist/{chunk-hz5d43gn.js → chunk-9vsc919v.js} +14 -6
- package/dist/chunk-9vsc919v.js.map +10 -0
- package/dist/{chunk-waqk73p1.js → chunk-a6fjkcne.js} +185 -341
- package/dist/{chunk-waqk73p1.js.map → chunk-a6fjkcne.js.map} +6 -7
- package/dist/{chunk-s038wa5v.js → chunk-b9qfh2ya.js} +1 -1
- package/dist/{chunk-5taem5aw.js → chunk-bc3y6gff.js} +13 -4
- package/dist/chunk-bc3y6gff.js.map +10 -0
- package/dist/{chunk-w1btn96n.js → chunk-bkmnd7zq.js} +523 -254
- package/dist/chunk-bkmnd7zq.js.map +49 -0
- package/dist/chunk-bz5bnjjt.js +358 -0
- package/dist/chunk-bz5bnjjt.js.map +12 -0
- package/dist/{chunk-w976a4me.js → chunk-czct88ht.js} +28 -4
- package/dist/chunk-czct88ht.js.map +10 -0
- package/dist/{chunk-5kyvrtjh.js → chunk-d9xbwh3h.js} +131 -32
- package/dist/chunk-d9xbwh3h.js.map +13 -0
- package/dist/{chunk-kfee1h52.js → chunk-dfveegqq.js} +28 -8
- package/dist/chunk-dfveegqq.js.map +13 -0
- package/dist/{chunk-2g0r46hy.js → chunk-dhkc9b23.js} +15 -2
- package/dist/chunk-dhkc9b23.js.map +12 -0
- package/dist/chunk-dmnd9ea6.js +106 -0
- package/dist/chunk-dmnd9ea6.js.map +10 -0
- package/dist/{chunk-nz7815t3.js → chunk-e0hnbb1m.js} +27 -2
- package/dist/chunk-e0hnbb1m.js.map +14 -0
- package/dist/chunk-e91fmg6t.js +288 -0
- package/dist/chunk-e91fmg6t.js.map +11 -0
- package/dist/{chunk-a5v4gjdx.js → chunk-e9w4mgdh.js} +308 -220
- package/dist/{chunk-a5v4gjdx.js.map → chunk-e9w4mgdh.js.map} +21 -19
- package/dist/{chunk-w122ymx4.js → chunk-f6ahf5gf.js} +15 -4
- package/dist/{chunk-w122ymx4.js.map → chunk-f6ahf5gf.js.map} +3 -3
- package/dist/{chunk-jjmggm9a.js → chunk-fe6r7yhg.js} +1 -1
- package/dist/{chunk-165c9wm6.js → chunk-g2ph4873.js} +1 -1
- package/dist/chunk-hgj98cbb.js +22 -0
- package/dist/chunk-hgj98cbb.js.map +10 -0
- package/dist/{chunk-mbc5hvnj.js → chunk-hkaa807g.js} +18 -7
- package/dist/{chunk-mbc5hvnj.js.map → chunk-hkaa807g.js.map} +3 -3
- package/dist/chunk-hn2r7z41.js.map +3 -3
- package/dist/chunk-j0wgh8gv.js +250 -0
- package/dist/chunk-j0wgh8gv.js.map +10 -0
- package/dist/{chunk-z8fx5cgb.js → chunk-j2zm215x.js} +37 -3
- package/dist/chunk-j2zm215x.js.map +12 -0
- package/dist/{chunk-j1ny5fwh.js → chunk-k1g14kk3.js} +11 -83
- package/dist/{chunk-j1ny5fwh.js.map → chunk-k1g14kk3.js.map} +4 -5
- package/dist/{chunk-ga63a3dz.js → chunk-k66rp2hr.js} +3 -3
- package/dist/chunk-kr6dx38r.js +25 -0
- package/dist/chunk-kr6dx38r.js.map +10 -0
- package/dist/{chunk-a7aa0nzj.js → chunk-kv0kvknv.js} +14 -14
- package/dist/{chunk-a7aa0nzj.js.map → chunk-kv0kvknv.js.map} +1 -1
- package/dist/chunk-m2jerfef.js +474 -0
- package/dist/chunk-m2jerfef.js.map +11 -0
- package/dist/chunk-m7b9q5dk.js +234 -0
- package/dist/chunk-m7b9q5dk.js.map +12 -0
- package/dist/{chunk-escedwyt.js → chunk-mvz89age.js} +6 -1
- package/dist/{chunk-escedwyt.js.map → chunk-mvz89age.js.map} +3 -3
- package/dist/chunk-mwcqz3e3.js +30 -0
- package/dist/chunk-mwcqz3e3.js.map +10 -0
- package/dist/chunk-n2ay51px.js +21 -0
- package/dist/chunk-n2ay51px.js.map +10 -0
- package/dist/{chunk-gkv8r794.js → chunk-n68vz95m.js} +5 -5
- package/dist/{chunk-gkv8r794.js.map → chunk-n68vz95m.js.map} +3 -3
- package/dist/{chunk-0j3crh1w.js → chunk-p351afzm.js} +14 -14
- package/dist/{chunk-0j3crh1w.js.map → chunk-p351afzm.js.map} +4 -4
- package/dist/chunk-pk539cwv.js +370 -0
- package/dist/chunk-pk539cwv.js.map +11 -0
- package/dist/{chunk-jbw70d6t.js → chunk-ppxf7gw2.js} +52 -10
- package/dist/chunk-ppxf7gw2.js.map +11 -0
- package/dist/{chunk-9x8dybsb.js → chunk-pvpq483h.js} +10 -2
- package/dist/chunk-pvpq483h.js.map +10 -0
- package/dist/chunk-qafng88v.js +225 -0
- package/dist/chunk-qafng88v.js.map +11 -0
- package/dist/chunk-qds484t8.js +1363 -0
- package/dist/chunk-qds484t8.js.map +18 -0
- package/dist/{chunk-4zm1k3xj.js → chunk-r2psmn42.js} +1 -1
- package/dist/{chunk-kkjfve0t.js → chunk-rt9deb92.js} +4 -3
- package/dist/{chunk-kkjfve0t.js.map → chunk-rt9deb92.js.map} +3 -3
- package/dist/{chunk-r1cxq7vv.js → chunk-rtdrm592.js} +2 -2
- package/dist/{chunk-c7cfe31p.js → chunk-s5n9617r.js} +15 -15
- package/dist/{chunk-c7cfe31p.js.map → chunk-s5n9617r.js.map} +1 -1
- package/dist/{chunk-4bm0caep.js → chunk-smnt672s.js} +1 -1
- package/dist/{chunk-21q0j5f2.js → chunk-stmxh0hv.js} +2 -2
- package/dist/{chunk-nh26e7c5.js → chunk-sysnvjce.js} +5 -5
- package/dist/{chunk-nh26e7c5.js.map → chunk-sysnvjce.js.map} +3 -3
- package/dist/{chunk-57g0215c.js → chunk-t24yktqr.js} +296 -7
- package/dist/{chunk-57g0215c.js.map → chunk-t24yktqr.js.map} +6 -3
- package/dist/{chunk-ff5xkv0p.js → chunk-tfzvjdms.js} +1 -1
- package/dist/chunk-tqa68kj7.js +1322 -0
- package/dist/chunk-tqa68kj7.js.map +25 -0
- package/dist/chunk-vtjzwymr.js +37 -0
- package/dist/chunk-vtjzwymr.js.map +10 -0
- package/dist/{chunk-twfreyxr.js → chunk-vzkxqf8h.js} +23 -13
- package/dist/{chunk-twfreyxr.js.map → chunk-vzkxqf8h.js.map} +6 -6
- package/dist/{chunk-6b61s40c.js → chunk-w3t94hm6.js} +1 -1
- package/dist/{chunk-j8thxj7w.js → chunk-w9s23r24.js} +1218 -101
- package/dist/chunk-w9s23r24.js.map +30 -0
- package/dist/{chunk-fwsvshr5.js → chunk-wa05txmk.js} +20 -7
- package/dist/{chunk-fwsvshr5.js.map → chunk-wa05txmk.js.map} +3 -3
- package/dist/chunk-whbwf3np.js +12 -0
- package/dist/chunk-whbwf3np.js.map +10 -0
- package/dist/{chunk-t5608tkq.js → chunk-yv8hv4wq.js} +3 -1
- package/dist/{chunk-t5608tkq.js.map → chunk-yv8hv4wq.js.map} +3 -3
- package/dist/{chunk-dsv783c3.js → chunk-z0t4p2sk.js} +169 -53
- package/dist/{chunk-dsv783c3.js.map → chunk-z0t4p2sk.js.map} +7 -7
- package/dist/connectors/builders.d.ts +2 -2
- package/dist/connectors/builders.d.ts.map +1 -1
- package/dist/connectors/connections/access.d.ts +11 -0
- package/dist/connectors/connections/access.d.ts.map +1 -0
- package/dist/connectors/connections/contracts.d.ts +6 -1
- package/dist/connectors/connections/contracts.d.ts.map +1 -1
- package/dist/connectors/connections/internal.js +1 -1
- package/dist/connectors/connections/runs.d.ts +6 -0
- package/dist/connectors/connections/runs.d.ts.map +1 -1
- package/dist/connectors/connections/service.d.ts +25 -0
- package/dist/connectors/connections/service.d.ts.map +1 -1
- package/dist/connectors/connections/views.d.ts +1 -1
- package/dist/connectors/connections/views.d.ts.map +1 -1
- package/dist/connectors/execution.d.ts.map +1 -1
- package/dist/connectors/index.d.ts +1 -1
- package/dist/connectors/index.d.ts.map +1 -1
- package/dist/connectors/service.d.ts +3 -0
- package/dist/connectors/service.d.ts.map +1 -1
- package/dist/connectors/types.d.ts +21 -2
- package/dist/connectors/types.d.ts.map +1 -1
- package/dist/datasets/execution.d.ts +12 -6
- package/dist/datasets/execution.d.ts.map +1 -1
- package/dist/datasets/ingest-flush-batch.d.ts +59 -0
- package/dist/datasets/ingest-flush-batch.d.ts.map +1 -0
- package/dist/datasets/ingest-flush-job.d.ts +33 -0
- package/dist/datasets/ingest-flush-job.d.ts.map +1 -0
- package/dist/datasets/ingest-flush.d.ts +66 -0
- package/dist/datasets/ingest-flush.d.ts.map +1 -0
- package/dist/datasets/produced-version.d.ts +21 -0
- package/dist/datasets/produced-version.d.ts.map +1 -0
- package/dist/datasets/write.d.ts +22 -1
- package/dist/datasets/write.d.ts.map +1 -1
- package/dist/datasets/write.js +8 -4
- package/dist/datasets/write.js.map +1 -1
- package/dist/deploy/internal.js +5 -4
- package/dist/deploy/internal.js.map +4 -4
- package/dist/deploy/types.d.ts +2 -3
- package/dist/deploy/types.d.ts.map +1 -1
- package/dist/error-reporting/capability.d.ts +8 -2
- package/dist/error-reporting/capability.d.ts.map +1 -1
- package/dist/error-reporting/internal.d.ts +1 -1
- package/dist/error-reporting/internal.d.ts.map +1 -1
- package/dist/error-reporting/internal.js +17 -5
- package/dist/error-reporting/internal.js.map +1 -1
- package/dist/error-reporting/reporter.d.ts.map +1 -1
- package/dist/error-reporting/reports.d.ts +55 -0
- package/dist/error-reporting/reports.d.ts.map +1 -1
- package/dist/error-reporting/types.d.ts +82 -1
- package/dist/error-reporting/types.d.ts.map +1 -1
- package/dist/errors/catalog.d.ts +5 -0
- package/dist/errors/catalog.d.ts.map +1 -1
- package/dist/errors/internal.js +1 -1
- package/dist/events/definitions.d.ts +4 -0
- package/dist/events/definitions.d.ts.map +1 -1
- package/dist/events/execution.d.ts +1 -0
- package/dist/events/execution.d.ts.map +1 -1
- package/dist/events/index.d.ts +1 -1
- package/dist/events/index.d.ts.map +1 -1
- package/dist/events/index.js +5 -5
- package/dist/events/scope.d.ts.map +1 -1
- package/dist/events/scope.js +1 -1
- package/dist/events/selectors/index.js +2 -2
- package/dist/events/types/artifacts.d.ts +38 -0
- package/dist/events/types/artifacts.d.ts.map +1 -0
- package/dist/events/types/index.d.ts +3 -1
- package/dist/events/types/index.d.ts.map +1 -1
- package/dist/events/types/users.d.ts +5 -2
- package/dist/events/types/users.d.ts.map +1 -1
- package/dist/execution/agent.js +57 -51
- package/dist/execution/agent.js.map +1 -1
- package/dist/execution/authorized-object-reader.d.ts +10 -0
- package/dist/execution/authorized-object-reader.d.ts.map +1 -1
- package/dist/execution/object-reader-clearance.d.ts +6 -0
- package/dist/execution/object-reader-clearance.d.ts.map +1 -1
- package/dist/execution/object-reader-security.d.ts +9 -2
- package/dist/execution/object-reader-security.d.ts.map +1 -1
- package/dist/execution/primitive.js +55 -49
- package/dist/execution/primitive.js.map +1 -1
- package/dist/execution/request.js +49 -43
- package/dist/execution/request.js.map +2 -2
- package/dist/http/api-routes.d.ts +1 -1
- package/dist/http/api-routes.d.ts.map +1 -1
- package/dist/http/index.js +1 -1
- package/dist/index.d.ts +10 -8
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +95 -87
- package/dist/index.js.map +1 -1
- package/dist/lake-storage/errors.d.ts +15 -0
- package/dist/lake-storage/errors.d.ts.map +1 -1
- package/dist/lake-storage/index.d.ts +3 -2
- package/dist/lake-storage/index.d.ts.map +1 -1
- package/dist/lake-storage/index.js +16 -10
- package/dist/lake-storage/index.js.map +1 -1
- package/dist/lake-storage/maintenance.d.ts +88 -0
- package/dist/lake-storage/maintenance.d.ts.map +1 -0
- package/dist/lake-storage/merge.d.ts +3 -1
- package/dist/lake-storage/merge.d.ts.map +1 -1
- package/dist/lake-storage/source-ordering.d.ts +23 -0
- package/dist/lake-storage/source-ordering.d.ts.map +1 -1
- package/dist/lake-storage/types.d.ts +10 -0
- package/dist/lake-storage/types.d.ts.map +1 -1
- package/dist/maintenance/heartbeat.d.ts +5 -0
- package/dist/maintenance/heartbeat.d.ts.map +1 -0
- package/dist/maintenance/index.d.ts +4 -2
- package/dist/maintenance/index.d.ts.map +1 -1
- package/dist/maintenance/index.js +515 -0
- package/dist/maintenance/index.js.map +16 -0
- package/dist/maintenance/lake-retention-status.d.ts +36 -0
- package/dist/maintenance/lake-retention-status.d.ts.map +1 -0
- package/dist/maintenance/lake-retention.d.ts +84 -0
- package/dist/maintenance/lake-retention.d.ts.map +1 -0
- package/dist/maintenance/loop.d.ts +95 -0
- package/dist/maintenance/loop.d.ts.map +1 -0
- package/dist/maintenance/ontology-maintenance.d.ts +17 -16
- package/dist/maintenance/ontology-maintenance.d.ts.map +1 -1
- package/dist/maintenance/passes/cron-pass.d.ts +21 -0
- package/dist/maintenance/passes/cron-pass.d.ts.map +1 -0
- package/dist/maintenance/passes/directory-pass.d.ts +12 -0
- package/dist/maintenance/passes/directory-pass.d.ts.map +1 -0
- package/dist/maintenance/passes/ingest-pass.d.ts +26 -0
- package/dist/maintenance/passes/ingest-pass.d.ts.map +1 -0
- package/dist/maintenance/passes/lake-change-feed.d.ts +38 -0
- package/dist/maintenance/passes/lake-change-feed.d.ts.map +1 -0
- package/dist/maintenance/passes/lake-retention-pass.d.ts +20 -0
- package/dist/maintenance/passes/lake-retention-pass.d.ts.map +1 -0
- package/dist/maintenance/passes/ontology-pass.d.ts +8 -0
- package/dist/maintenance/passes/ontology-pass.d.ts.map +1 -0
- package/dist/maintenance/passes/projections-pass.d.ts +26 -0
- package/dist/maintenance/passes/projections-pass.d.ts.map +1 -0
- package/dist/maintenance/passes/recovery-pass.d.ts +6 -0
- package/dist/maintenance/passes/recovery-pass.d.ts.map +1 -0
- package/dist/maintenance/passes/recovery-passes.d.ts +24 -0
- package/dist/maintenance/passes/recovery-passes.d.ts.map +1 -0
- package/dist/maintenance/passes/runs-pass.d.ts +6 -0
- package/dist/maintenance/passes/runs-pass.d.ts.map +1 -0
- package/dist/maintenance/passes/triggers-pass.d.ts +41 -0
- package/dist/maintenance/passes/triggers-pass.d.ts.map +1 -0
- package/dist/maintenance/status.d.ts +19 -0
- package/dist/maintenance/status.d.ts.map +1 -0
- package/dist/maintenance/types.d.ts +25 -24
- package/dist/maintenance/types.d.ts.map +1 -1
- package/dist/materialization/model.d.ts +11 -2
- package/dist/materialization/model.d.ts.map +1 -1
- package/dist/materializer/edits/artifact-refs.d.ts +33 -0
- package/dist/materializer/edits/artifact-refs.d.ts.map +1 -0
- package/dist/materializer/edits/commit.d.ts.map +1 -1
- package/dist/materializer/edits/operations.d.ts +7 -1
- package/dist/materializer/edits/operations.d.ts.map +1 -1
- package/dist/materializer/edits/plan.d.ts.map +1 -1
- package/dist/materializer/execution/work-records.d.ts +6 -0
- package/dist/materializer/execution/work-records.d.ts.map +1 -1
- package/dist/materializer/index.js +30 -27
- package/dist/materializer/index.js.map +1 -1
- package/dist/materializer/projections/replacement-plan.d.ts.map +1 -1
- package/dist/materializer/shared/normalize.d.ts.map +1 -1
- package/dist/materializer/telemetry/plan.d.ts.map +1 -1
- package/dist/models/execution/index.js +29 -26
- package/dist/models/execution/index.js.map +1 -1
- package/dist/objects/artifact-refs.d.ts +5 -0
- package/dist/objects/artifact-refs.d.ts.map +1 -0
- package/dist/objects/index.js +58 -53
- package/dist/objects/index.js.map +1 -1
- package/dist/objects/materializer-adapter.d.ts +4 -3
- package/dist/objects/materializer-adapter.d.ts.map +1 -1
- package/dist/objects/object/upsert-batch.d.ts.map +1 -1
- package/dist/objects/object/upsert.d.ts.map +1 -1
- package/dist/objects/query/index.js +28 -25
- package/dist/objects/query/index.js.map +1 -1
- package/dist/objects/query/ir.d.ts +3 -1
- package/dist/objects/query/ir.d.ts.map +1 -1
- package/dist/objects/query/scalar-values.d.ts.map +1 -1
- package/dist/objects/runtime-batch.d.ts +2 -0
- package/dist/objects/runtime-batch.d.ts.map +1 -1
- package/dist/ontology/artifact-ref.d.ts +36 -0
- package/dist/ontology/artifact-ref.d.ts.map +1 -0
- package/dist/ontology/docs-markdown.d.ts.map +1 -1
- package/dist/ontology/index.d.ts +3 -1
- package/dist/ontology/index.d.ts.map +1 -1
- package/dist/ontology/index.js +8 -5
- package/dist/ontology/index.js.map +1 -1
- package/dist/ontology/inference/index.d.ts +2 -0
- package/dist/ontology/inference/index.d.ts.map +1 -1
- package/dist/ontology/internal.js +7 -6
- package/dist/ontology/internal.js.map +1 -1
- package/dist/ontology/json-schema.d.ts.map +1 -1
- package/dist/ontology/primitives.d.ts.map +1 -1
- package/dist/ontology/reference-values.d.ts +10 -0
- package/dist/ontology/reference-values.d.ts.map +1 -0
- package/dist/ontology/refs.d.ts +6 -1
- package/dist/ontology/refs.d.ts.map +1 -1
- package/dist/ontology/registry.d.ts +9 -1
- package/dist/ontology/registry.d.ts.map +1 -1
- package/dist/ontology/types.d.ts +2 -1
- package/dist/ontology/types.d.ts.map +1 -1
- package/dist/ontology/user-ref.d.ts +16 -0
- package/dist/ontology/user-ref.d.ts.map +1 -1
- package/dist/ontology/validation/normalize.d.ts.map +1 -1
- package/dist/ontology/validation/properties.d.ts.map +1 -1
- package/dist/ontology/validation/schema.d.ts.map +1 -1
- package/dist/pending-tasks.d.ts +17 -0
- package/dist/pending-tasks.d.ts.map +1 -0
- package/dist/pipelines/index.js +36 -33
- package/dist/pipelines/index.js.map +1 -1
- package/dist/pipelines/run-dispatch.d.ts +6 -0
- package/dist/pipelines/run-dispatch.d.ts.map +1 -1
- package/dist/predicates/types.d.ts +4 -0
- package/dist/predicates/types.d.ts.map +1 -1
- package/dist/projections/builders.d.ts +13 -11
- package/dist/projections/builders.d.ts.map +1 -1
- package/dist/projections/internal.js +29 -26
- package/dist/projections/internal.js.map +1 -1
- package/dist/projections/types.d.ts +1 -1
- package/dist/projections/types.d.ts.map +1 -1
- package/dist/projections/validation.d.ts +2 -2
- package/dist/projections/validation.d.ts.map +1 -1
- package/dist/queues/in-memory.d.ts +6 -1
- package/dist/queues/in-memory.d.ts.map +1 -1
- package/dist/queues/index.d.ts +1 -1
- package/dist/queues/index.d.ts.map +1 -1
- package/dist/queues/index.js +1 -1
- package/dist/queues/types.d.ts +55 -2
- package/dist/queues/types.d.ts.map +1 -1
- package/dist/runtime/create.d.ts +3 -0
- package/dist/runtime/create.d.ts.map +1 -1
- package/dist/runtime/host.d.ts +22 -5
- package/dist/runtime/host.d.ts.map +1 -1
- package/dist/runtime/index.d.ts +0 -1
- package/dist/runtime/index.d.ts.map +1 -1
- package/dist/runtime/internal.d.ts +6 -0
- package/dist/runtime/internal.d.ts.map +1 -1
- package/dist/runtime/internal.js +51 -30
- package/dist/runtime/internal.js.map +1 -1
- package/dist/runtime/sixb.d.ts +6 -1
- package/dist/runtime/sixb.d.ts.map +1 -1
- package/dist/sandboxes/index.js +8 -7
- package/dist/sandboxes/index.js.map +1 -1
- package/dist/scheduler/index.d.ts +0 -2
- package/dist/scheduler/index.d.ts.map +1 -1
- package/dist/scheduler/index.js +3 -6
- package/dist/scheduler/index.js.map +1 -1
- package/dist/schedules/index.js +9 -11
- package/dist/schedules/index.js.map +1 -1
- package/dist/security/internal.js +1 -1
- package/dist/shared/backoff.d.ts +12 -0
- package/dist/shared/backoff.d.ts.map +1 -0
- package/dist/shared/duration.d.ts +3 -0
- package/dist/shared/duration.d.ts.map +1 -0
- package/dist/shared/params/artifact-refs.d.ts +19 -0
- package/dist/shared/params/artifact-refs.d.ts.map +1 -0
- package/dist/shares/guest-name.d.ts +8 -0
- package/dist/shares/guest-name.d.ts.map +1 -0
- package/dist/shares/internal.d.ts +1 -0
- package/dist/shares/internal.d.ts.map +1 -1
- package/dist/shares/internal.js +68 -27
- package/dist/shares/internal.js.map +3 -3
- package/dist/shares/session-protocol.d.ts +13 -0
- package/dist/shares/session-protocol.d.ts.map +1 -1
- package/dist/storage/action-runs/failure.js +2 -2
- package/dist/storage/ai-limits/enforcement.js +2 -2
- package/dist/storage/artifacts/errors.d.ts +9 -4
- package/dist/storage/artifacts/errors.d.ts.map +1 -1
- package/dist/storage/artifacts/in-memory.d.ts +27 -4
- package/dist/storage/artifacts/in-memory.d.ts.map +1 -1
- package/dist/storage/artifacts/index.d.ts +1 -1
- package/dist/storage/artifacts/index.d.ts.map +1 -1
- package/dist/storage/artifacts/record.d.ts +39 -2
- package/dist/storage/artifacts/record.d.ts.map +1 -1
- package/dist/storage/artifacts/types.d.ts +328 -39
- package/dist/storage/artifacts/types.d.ts.map +1 -1
- package/dist/storage/auth/in-memory/auth-storage.d.ts +2 -1
- package/dist/storage/auth/in-memory/auth-storage.d.ts.map +1 -1
- package/dist/storage/auth/in-memory/identities.d.ts +4 -0
- package/dist/storage/auth/in-memory/identities.d.ts.map +1 -1
- package/dist/storage/auth/in-memory/shared.d.ts +3 -1
- package/dist/storage/auth/in-memory/shared.d.ts.map +1 -1
- package/dist/storage/auth/in-memory/users.d.ts.map +1 -1
- package/dist/storage/auth/index.d.ts +1 -1
- package/dist/storage/auth/index.d.ts.map +1 -1
- package/dist/storage/auth/types.d.ts +39 -0
- package/dist/storage/auth/types.d.ts.map +1 -1
- package/dist/storage/connector-connections/in-memory.d.ts +1 -1
- package/dist/storage/connector-connections/in-memory.d.ts.map +1 -1
- package/dist/storage/connector-connections/index.d.ts +1 -1
- package/dist/storage/connector-connections/index.d.ts.map +1 -1
- package/dist/storage/connector-connections/provider/runs.d.ts.map +1 -1
- package/dist/storage/connector-connections/provider/shared.d.ts +12 -2
- package/dist/storage/connector-connections/provider/shared.d.ts.map +1 -1
- package/dist/storage/connector-connections/provider.d.ts +1 -0
- package/dist/storage/connector-connections/provider.d.ts.map +1 -1
- package/dist/storage/connector-connections/provider.js +21 -5
- package/dist/storage/connector-connections/provider.js.map +5 -5
- package/dist/storage/connector-connections/types.d.ts +1 -1
- package/dist/storage/connector-connections/types.d.ts.map +1 -1
- package/dist/storage/dataset-ingest/codec.d.ts +6 -0
- package/dist/storage/dataset-ingest/codec.d.ts.map +1 -0
- package/dist/storage/dataset-ingest/in-memory.d.ts +28 -0
- package/dist/storage/dataset-ingest/in-memory.d.ts.map +1 -0
- package/dist/storage/dataset-ingest/index.d.ts +4 -0
- package/dist/storage/dataset-ingest/index.d.ts.map +1 -0
- package/dist/storage/dataset-ingest/provider.d.ts +157 -0
- package/dist/storage/dataset-ingest/provider.d.ts.map +1 -0
- package/dist/storage/dataset-ingest/provider.js +17 -0
- package/dist/storage/dataset-ingest/provider.js.map +9 -0
- package/dist/storage/dataset-ingest/types.d.ts +188 -0
- package/dist/storage/dataset-ingest/types.d.ts.map +1 -0
- package/dist/storage/file-upload-sessions/provider.js +12 -11
- package/dist/storage/file-upload-sessions/provider.js.map +1 -1
- package/dist/storage/in-memory/index.d.ts +12 -0
- package/dist/storage/in-memory/index.d.ts.map +1 -1
- package/dist/storage/index.d.ts +18 -11
- package/dist/storage/index.d.ts.map +1 -1
- package/dist/storage/index.js +55 -45
- package/dist/storage/index.js.map +1 -1
- package/dist/storage/internal.d.ts +4 -1
- package/dist/storage/internal.d.ts.map +1 -1
- package/dist/storage/internal.js +81 -5
- package/dist/storage/internal.js.map +4 -3
- package/dist/storage/lake-retention-runs/in-memory.d.ts +11 -0
- package/dist/storage/lake-retention-runs/in-memory.d.ts.map +1 -0
- package/dist/storage/lake-retention-runs/index.d.ts +3 -0
- package/dist/storage/lake-retention-runs/index.d.ts.map +1 -0
- package/dist/storage/lake-retention-runs/types.d.ts +21 -0
- package/dist/storage/lake-retention-runs/types.d.ts.map +1 -0
- package/dist/storage/maintenance-heartbeats/in-memory.d.ts +11 -0
- package/dist/storage/maintenance-heartbeats/in-memory.d.ts.map +1 -0
- package/dist/storage/maintenance-heartbeats/index.d.ts +3 -0
- package/dist/storage/maintenance-heartbeats/index.d.ts.map +1 -0
- package/dist/storage/maintenance-heartbeats/record.d.ts +11 -0
- package/dist/storage/maintenance-heartbeats/record.d.ts.map +1 -0
- package/dist/storage/maintenance-heartbeats/types.d.ts +30 -0
- package/dist/storage/maintenance-heartbeats/types.d.ts.map +1 -0
- package/dist/storage/objects/in-memory/query.d.ts.map +1 -1
- package/dist/storage/objects/in-memory/storage.d.ts +15 -1
- package/dist/storage/objects/in-memory/storage.d.ts.map +1 -1
- package/dist/storage/objects/read-scope.d.ts.map +1 -1
- package/dist/storage/objects/types.d.ts +18 -1
- package/dist/storage/objects/types.d.ts.map +1 -1
- package/dist/storage/ontology/in-memory/materializations.d.ts.map +1 -1
- package/dist/storage/ontology/in-memory/replacement-plans.d.ts.map +1 -1
- package/dist/storage/ontology/index.d.ts +1 -1
- package/dist/storage/ontology/index.d.ts.map +1 -1
- package/dist/storage/ontology/materializations.d.ts +20 -0
- package/dist/storage/ontology/materializations.d.ts.map +1 -1
- package/dist/storage/ontology/provider-work.d.ts +7 -1
- package/dist/storage/ontology/provider-work.d.ts.map +1 -1
- package/dist/storage/ontology/provider.js +1 -1
- package/dist/storage/pipeline-runs/in-memory.d.ts +8 -2
- package/dist/storage/pipeline-runs/in-memory.d.ts.map +1 -1
- package/dist/storage/pipeline-runs/index.d.ts +1 -1
- package/dist/storage/pipeline-runs/index.d.ts.map +1 -1
- package/dist/storage/pipeline-runs/provider.js +1 -1
- package/dist/storage/pipeline-runs/transitions.d.ts +2 -2
- package/dist/storage/pipeline-runs/transitions.d.ts.map +1 -1
- package/dist/storage/pipeline-runs/types.d.ts +26 -6
- package/dist/storage/pipeline-runs/types.d.ts.map +1 -1
- package/dist/storage/projection-runs/errors.d.ts +6 -0
- package/dist/storage/projection-runs/errors.d.ts.map +1 -1
- package/dist/storage/projection-runs/in-memory.d.ts +5 -1
- package/dist/storage/projection-runs/in-memory.d.ts.map +1 -1
- package/dist/storage/projection-runs/index.d.ts +2 -2
- package/dist/storage/projection-runs/index.d.ts.map +1 -1
- package/dist/storage/projection-runs/lifecycle.d.ts +1 -0
- package/dist/storage/projection-runs/lifecycle.d.ts.map +1 -1
- package/dist/storage/projection-runs/provider.js +2 -2
- package/dist/storage/projection-runs/types.d.ts +16 -0
- package/dist/storage/projection-runs/types.d.ts.map +1 -1
- package/dist/storage/run-claim.d.ts +132 -0
- package/dist/storage/run-claim.d.ts.map +1 -0
- package/dist/storage/share-grants/provider.js +3 -3
- package/dist/storage/share-sessions/in-memory.d.ts +2 -1
- package/dist/storage/share-sessions/in-memory.d.ts.map +1 -1
- package/dist/storage/share-sessions/index.d.ts +1 -1
- package/dist/storage/share-sessions/index.d.ts.map +1 -1
- package/dist/storage/share-sessions/provider.d.ts +1 -1
- package/dist/storage/share-sessions/provider.d.ts.map +1 -1
- package/dist/storage/share-sessions/provider.js +4 -2
- package/dist/storage/share-sessions/provider.js.map +1 -1
- package/dist/storage/share-sessions/record.d.ts +2 -1
- package/dist/storage/share-sessions/record.d.ts.map +1 -1
- package/dist/storage/share-sessions/types.d.ts +17 -1
- package/dist/storage/share-sessions/types.d.ts.map +1 -1
- package/dist/storage/sync-runs/in-memory.d.ts +10 -2
- package/dist/storage/sync-runs/in-memory.d.ts.map +1 -1
- package/dist/storage/sync-runs/index.d.ts +1 -1
- package/dist/storage/sync-runs/index.d.ts.map +1 -1
- package/dist/storage/sync-runs/transitions.d.ts +2 -2
- package/dist/storage/sync-runs/transitions.d.ts.map +1 -1
- package/dist/storage/sync-runs/types.d.ts +29 -3
- package/dist/storage/sync-runs/types.d.ts.map +1 -1
- package/dist/storage/types.d.ts +12 -6
- package/dist/storage/types.d.ts.map +1 -1
- package/dist/storage/webhook-runs/in-memory.d.ts +2 -1
- package/dist/storage/webhook-runs/in-memory.d.ts.map +1 -1
- package/dist/storage/webhook-runs/index.d.ts +2 -2
- package/dist/storage/webhook-runs/index.d.ts.map +1 -1
- package/dist/storage/webhook-runs/types.d.ts +33 -2
- package/dist/storage/webhook-runs/types.d.ts.map +1 -1
- package/dist/storage/workflow-runs/in-memory.d.ts +6 -3
- package/dist/storage/workflow-runs/in-memory.d.ts.map +1 -1
- package/dist/storage/workflow-runs/index.d.ts +1 -1
- package/dist/storage/workflow-runs/index.d.ts.map +1 -1
- package/dist/storage/workflow-runs/provider.js +12 -11
- package/dist/storage/workflow-runs/provider.js.map +1 -1
- package/dist/storage/workflow-runs/types.d.ts +11 -28
- package/dist/storage/workflow-runs/types.d.ts.map +1 -1
- package/dist/syncs/index.js +37 -34
- package/dist/syncs/index.js.map +1 -1
- package/dist/syncs/run-dispatch.d.ts +2 -0
- package/dist/syncs/run-dispatch.d.ts.map +1 -1
- package/dist/testing/ai-model-call-groups-contract.d.ts.map +1 -1
- package/dist/testing/artifact-holders-contract.d.ts +15 -0
- package/dist/testing/artifact-holders-contract.d.ts.map +1 -0
- package/dist/testing/artifact-storage-contract.d.ts.map +1 -1
- package/dist/testing/auth-storage-contract.d.ts.map +1 -1
- package/dist/testing/broker-contract.d.ts.map +1 -1
- package/dist/testing/connector-connection-storage-contract.d.ts +1 -1
- package/dist/testing/connector-connection-storage-contract.d.ts.map +1 -1
- package/dist/testing/dataset-ingest-storage-contract.d.ts +11 -0
- package/dist/testing/dataset-ingest-storage-contract.d.ts.map +1 -0
- package/dist/testing/dataset-sequence-contract.d.ts +1 -1
- package/dist/testing/dataset-sequence-contract.d.ts.map +1 -1
- package/dist/testing/execution.d.ts.map +1 -1
- package/dist/testing/index.d.ts +8 -0
- package/dist/testing/index.d.ts.map +1 -1
- package/dist/testing/index.js +6244 -3191
- package/dist/testing/index.js.map +28 -19
- package/dist/testing/lake-retention-run-storage-contract.d.ts +9 -0
- package/dist/testing/lake-retention-run-storage-contract.d.ts.map +1 -0
- package/dist/testing/maintenance-heartbeat-storage-contract.d.ts +9 -0
- package/dist/testing/maintenance-heartbeat-storage-contract.d.ts.map +1 -0
- package/dist/testing/object-query-contract.d.ts.map +1 -1
- package/dist/testing/pipeline-execution.d.ts.map +1 -1
- package/dist/testing/pipeline-run-read-contract.d.ts +13 -0
- package/dist/testing/pipeline-run-read-contract.d.ts.map +1 -0
- package/dist/testing/projection-run-storage-contract.d.ts.map +1 -1
- package/dist/testing/queues-contract.d.ts.map +1 -1
- package/dist/testing/run-claim-storage-contract.d.ts +12 -0
- package/dist/testing/run-claim-storage-contract.d.ts.map +1 -0
- package/dist/testing/run-claim.d.ts +30 -0
- package/dist/testing/run-claim.d.ts.map +1 -0
- package/dist/testing/run-recovery-contract.d.ts +49 -0
- package/dist/testing/run-recovery-contract.d.ts.map +1 -0
- package/dist/testing/share-session-storage-contract.d.ts.map +1 -1
- package/dist/testing/stored-artifacts.d.ts +10 -0
- package/dist/testing/stored-artifacts.d.ts.map +1 -0
- package/dist/testing/sync-execution.d.ts.map +1 -1
- package/dist/testing/webhook-execution.d.ts +1 -1
- package/dist/testing/webhook-execution.d.ts.map +1 -1
- package/dist/testing/webhook-run-storage-contract.d.ts.map +1 -1
- package/dist/users/execution.d.ts +18 -1
- package/dist/users/execution.d.ts.map +1 -1
- package/dist/users/index.d.ts +1 -1
- package/dist/users/index.d.ts.map +1 -1
- package/dist/webhooks/delivery-lease.d.ts +13 -0
- package/dist/webhooks/delivery-lease.d.ts.map +1 -0
- package/dist/webhooks/internal.d.ts +2 -0
- package/dist/webhooks/internal.d.ts.map +1 -1
- package/dist/webhooks/internal.js +67 -35
- package/dist/webhooks/internal.js.map +5 -4
- package/dist/webhooks/run-admission.d.ts.map +1 -1
- package/dist/workers/index.d.ts +5 -1
- package/dist/workers/index.d.ts.map +1 -1
- package/dist/workers/index.js +193 -58
- package/dist/workers/index.js.map +8 -7
- package/dist/workers/job-ids.d.ts +17 -0
- package/dist/workers/job-ids.d.ts.map +1 -0
- package/dist/workers/lost-projection-runs.d.ts +26 -0
- package/dist/workers/lost-projection-runs.d.ts.map +1 -0
- package/dist/workers/lost-runs.d.ts +51 -0
- package/dist/workers/lost-runs.d.ts.map +1 -0
- package/dist/workers/queue-delivery.d.ts.map +1 -1
- package/dist/workers/queue-worker.d.ts +1 -2
- package/dist/workers/queue-worker.d.ts.map +1 -1
- package/dist/workers/queued-run-dispatch.d.ts +90 -0
- package/dist/workers/queued-run-dispatch.d.ts.map +1 -0
- package/dist/workers/run-lease.d.ts +25 -0
- package/dist/workers/run-lease.d.ts.map +1 -0
- package/dist/workers/run-worker.d.ts +95 -0
- package/dist/workers/run-worker.d.ts.map +1 -0
- package/dist/workflows/index.js +63 -57
- package/dist/workflows/index.js.map +1 -1
- package/dist/workflows/request.d.ts.map +1 -1
- package/dist/workflows/run-dispatch.d.ts +6 -1
- package/dist/workflows/run-dispatch.d.ts.map +1 -1
- package/package.json +41 -3
- package/src/actions/request.ts +24 -7
- package/src/actions/run/executor.ts +9 -42
- package/src/actions/types/context.ts +8 -3
- package/src/agents/execution.ts +10 -2
- package/src/agents/fork.ts +12 -4
- package/src/agents/index.ts +7 -1
- package/src/agents/request.ts +42 -31
- package/src/agents/run-artifacts.ts +290 -46
- package/src/agents/run-session-http.ts +4 -0
- package/src/agents/run-session-serve.ts +10 -0
- package/src/agents/run-session.ts +8 -1
- package/src/agents/streams/protocol.ts +5 -10
- package/src/agents/validation.ts +3 -0
- package/src/artifacts/access.ts +71 -28
- package/src/artifacts/canvas-display.ts +160 -0
- package/src/artifacts/canvas.ts +26 -1
- package/src/artifacts/comment-text.ts +32 -0
- package/src/artifacts/comments.ts +275 -0
- package/src/artifacts/errors.ts +6 -1
- package/src/artifacts/events.ts +58 -0
- package/src/artifacts/execution.ts +496 -53
- package/src/artifacts/frames/assets.ts +20 -1
- package/src/artifacts/frames/grants.ts +31 -10
- package/src/artifacts/frames/index.ts +2 -0
- package/src/artifacts/frames/kit.ts +8 -5
- package/src/artifacts/frames/protocol.ts +149 -0
- package/src/artifacts/frames/runtime.ts +317 -29
- package/src/artifacts/holders.ts +120 -0
- package/src/artifacts/ids.ts +8 -0
- package/src/artifacts/index.ts +28 -2
- package/src/artifacts/limits.ts +28 -4
- package/src/artifacts/live/board.ts +759 -0
- package/src/artifacts/live/diff.ts +297 -0
- package/src/artifacts/live/document.ts +354 -0
- package/src/artifacts/live/files.ts +82 -0
- package/src/artifacts/live/index.ts +50 -0
- package/src/artifacts/live/presence.ts +144 -0
- package/src/artifacts/live/protocol.ts +134 -0
- package/src/artifacts/live/server.ts +16 -0
- package/src/artifacts/live/state.ts +115 -0
- package/src/artifacts/outline.ts +12 -0
- package/src/artifacts/publish/index.ts +26 -1
- package/src/artifacts/publish/merge.ts +271 -0
- package/src/artifacts/publish/previews.ts +485 -0
- package/src/artifacts/publish/publish.ts +92 -39
- package/src/artifacts/publish/query-answers.ts +85 -0
- package/src/artifacts/publish/references.ts +10 -4
- package/src/artifacts/publish/validate/canvas.ts +133 -1
- package/src/artifacts/theme.ts +9 -1
- package/src/auth/directory.ts +166 -0
- package/src/auth/member-events.ts +10 -3
- package/src/auth/runtime.ts +108 -8
- package/src/auth/strategy.ts +3 -1
- package/src/auth/types.ts +44 -0
- package/src/authorization/decision.ts +6 -5
- package/src/authorization/event-visibility.ts +4 -0
- package/src/broker/in-memory.ts +33 -6
- package/src/broker/types.ts +4 -0
- package/src/connectors/builders.ts +34 -2
- package/src/connectors/connections/access.ts +83 -0
- package/src/connectors/connections/contracts.ts +6 -1
- package/src/connectors/connections/execution.ts +2 -2
- package/src/connectors/connections/runs.ts +51 -2
- package/src/connectors/connections/service.ts +208 -41
- package/src/connectors/connections/views.ts +11 -4
- package/src/connectors/execution.ts +27 -3
- package/src/connectors/index.ts +2 -0
- package/src/connectors/service.ts +12 -0
- package/src/connectors/types.ts +37 -2
- package/src/datasets/execution.ts +74 -37
- package/src/datasets/ingest-flush-batch.ts +289 -0
- package/src/datasets/ingest-flush-job.ts +112 -0
- package/src/datasets/ingest-flush.ts +377 -0
- package/src/datasets/produced-version.ts +55 -0
- package/src/datasets/write.ts +65 -11
- package/src/deploy/services.ts +1 -1
- package/src/deploy/types.ts +2 -3
- package/src/deploy/validation.ts +1 -0
- package/src/error-reporting/capability.ts +66 -0
- package/src/error-reporting/internal.ts +12 -0
- package/src/error-reporting/reporter.ts +11 -35
- package/src/error-reporting/reports.ts +167 -0
- package/src/error-reporting/types.ts +99 -0
- package/src/errors/catalog.ts +6 -0
- package/src/events/definitions.ts +14 -0
- package/src/events/execution.ts +77 -28
- package/src/events/index.ts +3 -0
- package/src/events/scope.ts +2 -0
- package/src/events/types/artifacts.ts +40 -0
- package/src/events/types/index.ts +3 -0
- package/src/events/types/users.ts +5 -2
- package/src/execution/authorized-object-reader.ts +34 -0
- package/src/execution/object-reader-clearance.ts +31 -0
- package/src/execution/object-reader-security.ts +33 -13
- package/src/http/api-routes.ts +105 -4
- package/src/index.ts +22 -4
- package/src/lake-storage/errors.ts +21 -0
- package/src/lake-storage/index.ts +9 -1
- package/src/lake-storage/maintenance.ts +93 -0
- package/src/lake-storage/merge.ts +3 -1
- package/src/lake-storage/source-ordering.ts +28 -2
- package/src/lake-storage/types.ts +14 -0
- package/src/maintenance/heartbeat.ts +14 -0
- package/src/maintenance/index.ts +5 -3
- package/src/maintenance/lake-retention-status.ts +81 -0
- package/src/maintenance/lake-retention.ts +347 -0
- package/src/maintenance/loop.ts +365 -0
- package/src/maintenance/ontology-maintenance.ts +76 -229
- package/src/maintenance/passes/cron-pass.ts +217 -0
- package/src/maintenance/passes/directory-pass.ts +22 -0
- package/src/maintenance/passes/ingest-pass.ts +94 -0
- package/src/maintenance/passes/lake-change-feed.ts +112 -0
- package/src/maintenance/passes/lake-retention-pass.ts +71 -0
- package/src/maintenance/passes/ontology-pass.ts +19 -0
- package/src/maintenance/passes/projections-pass.ts +238 -0
- package/src/maintenance/passes/recovery-pass.ts +17 -0
- package/src/maintenance/passes/recovery-passes.ts +39 -0
- package/src/maintenance/passes/runs-pass.ts +12 -0
- package/src/maintenance/passes/triggers-pass.ts +332 -0
- package/src/maintenance/status.ts +75 -0
- package/src/maintenance/types.ts +27 -25
- package/src/materialization/model.ts +33 -21
- package/src/materializer/README.md +13 -2
- package/src/materializer/edits/artifact-refs.ts +140 -0
- package/src/materializer/edits/commit.ts +20 -7
- package/src/materializer/edits/operations.ts +23 -7
- package/src/materializer/edits/plan.ts +2 -0
- package/src/materializer/execution/work-records.ts +61 -0
- package/src/materializer/projections/replacement-plan.ts +2 -0
- package/src/materializer/shared/normalize.ts +14 -0
- package/src/materializer/telemetry/plan.ts +2 -0
- package/src/objects/artifact-refs.ts +34 -0
- package/src/objects/materializer-adapter.ts +8 -3
- package/src/objects/object/upsert-batch.ts +7 -0
- package/src/objects/object/upsert.ts +11 -2
- package/src/objects/query/ir.ts +2 -0
- package/src/objects/query/scalar-values.ts +5 -3
- package/src/objects/runtime-batch.ts +8 -1
- package/src/objects/vectors/README.md +4 -4
- package/src/ontology/artifact-ref.ts +83 -0
- package/src/ontology/docs-markdown.ts +17 -0
- package/src/ontology/index.ts +3 -1
- package/src/ontology/inference/index.ts +2 -0
- package/src/ontology/json-schema.ts +13 -0
- package/src/ontology/primitives.ts +14 -0
- package/src/ontology/reference-values.ts +62 -0
- package/src/ontology/refs.ts +7 -1
- package/src/ontology/registry.ts +26 -1
- package/src/ontology/types.ts +2 -0
- package/src/ontology/user-ref.ts +35 -45
- package/src/ontology/validation/normalize.ts +13 -0
- package/src/ontology/validation/properties.ts +9 -0
- package/src/ontology/validation/schema.ts +12 -0
- package/src/pending-tasks.ts +51 -0
- package/src/pipelines/run-dispatch.ts +120 -238
- package/src/predicates/types.ts +2 -1
- package/src/projections/builders.ts +28 -13
- package/src/projections/run-dispatch.ts +1 -1
- package/src/projections/types.ts +1 -1
- package/src/projections/validation.ts +22 -8
- package/src/queues/in-memory.ts +50 -3
- package/src/queues/index.ts +4 -0
- package/src/queues/types.ts +68 -1
- package/src/runtime/create.ts +4 -0
- package/src/runtime/host.ts +118 -13
- package/src/runtime/index.ts +0 -1
- package/src/runtime/internal.ts +13 -0
- package/src/runtime/ontology-mutations.ts +1 -1
- package/src/runtime/sixb.ts +14 -5
- package/src/scheduler/index.ts +0 -2
- package/src/shared/backoff.ts +34 -0
- package/src/shared/duration.ts +15 -0
- package/src/shared/params/artifact-refs.ts +42 -0
- package/src/shares/compiler.ts +1 -1
- package/src/shares/guest-name.ts +20 -0
- package/src/shares/internal.ts +1 -0
- package/src/shares/session-protocol.ts +63 -0
- package/src/storage/artifacts/errors.ts +10 -2
- package/src/storage/artifacts/in-memory.ts +579 -96
- package/src/storage/artifacts/index.ts +22 -1
- package/src/storage/artifacts/record.ts +255 -11
- package/src/storage/artifacts/types.ts +343 -40
- package/src/storage/auth/in-memory/auth-storage.ts +42 -5
- package/src/storage/auth/in-memory/identities.ts +16 -0
- package/src/storage/auth/in-memory/shared.ts +15 -0
- package/src/storage/auth/in-memory/users.ts +17 -16
- package/src/storage/auth/index.ts +3 -0
- package/src/storage/auth/types.ts +38 -0
- package/src/storage/connector-connections/in-memory.ts +4 -1
- package/src/storage/connector-connections/index.ts +1 -0
- package/src/storage/connector-connections/provider/runs.ts +3 -0
- package/src/storage/connector-connections/provider/shared.ts +30 -0
- package/src/storage/connector-connections/provider.ts +4 -0
- package/src/storage/connector-connections/types.ts +1 -0
- package/src/storage/dataset-ingest/codec.ts +90 -0
- package/src/storage/dataset-ingest/in-memory.ts +277 -0
- package/src/storage/dataset-ingest/index.ts +16 -0
- package/src/storage/dataset-ingest/provider.ts +592 -0
- package/src/storage/dataset-ingest/types.ts +191 -0
- package/src/storage/in-memory/index.ts +33 -0
- package/src/storage/index.ts +65 -5
- package/src/storage/internal.ts +20 -0
- package/src/storage/lake-retention-runs/in-memory.ts +22 -0
- package/src/storage/lake-retention-runs/index.ts +2 -0
- package/src/storage/lake-retention-runs/types.ts +19 -0
- package/src/storage/maintenance-heartbeats/in-memory.ts +24 -0
- package/src/storage/maintenance-heartbeats/index.ts +7 -0
- package/src/storage/maintenance-heartbeats/record.ts +50 -0
- package/src/storage/maintenance-heartbeats/types.ts +30 -0
- package/src/storage/objects/in-memory/query.ts +1 -0
- package/src/storage/objects/in-memory/storage.ts +81 -0
- package/src/storage/objects/read-scope.ts +1 -0
- package/src/storage/objects/types.ts +16 -1
- package/src/storage/ontology/in-memory/materializations.ts +8 -0
- package/src/storage/ontology/in-memory/replacement-plans.ts +4 -1
- package/src/storage/ontology/index.ts +2 -0
- package/src/storage/ontology/materializations.ts +18 -0
- package/src/storage/ontology/provider-work.ts +39 -0
- package/src/storage/pipeline-runs/in-memory.ts +97 -24
- package/src/storage/pipeline-runs/index.ts +0 -1
- package/src/storage/pipeline-runs/provider.ts +1 -1
- package/src/storage/pipeline-runs/transitions.ts +7 -4
- package/src/storage/pipeline-runs/types.ts +33 -7
- package/src/storage/projection-runs/errors.ts +10 -0
- package/src/storage/projection-runs/in-memory.ts +56 -1
- package/src/storage/projection-runs/index.ts +2 -1
- package/src/storage/projection-runs/lifecycle.ts +9 -1
- package/src/storage/projection-runs/types.ts +20 -1
- package/src/storage/run-claim.ts +224 -0
- package/src/storage/share-sessions/in-memory.ts +21 -0
- package/src/storage/share-sessions/index.ts +1 -0
- package/src/storage/share-sessions/provider.ts +1 -0
- package/src/storage/share-sessions/record.ts +28 -0
- package/src/storage/share-sessions/types.ts +19 -1
- package/src/storage/sync-runs/in-memory.ts +109 -29
- package/src/storage/sync-runs/index.ts +1 -1
- package/src/storage/sync-runs/transitions.ts +7 -4
- package/src/storage/sync-runs/types.ts +36 -3
- package/src/storage/types.ts +15 -5
- package/src/storage/webhook-runs/in-memory.ts +26 -2
- package/src/storage/webhook-runs/index.ts +3 -1
- package/src/storage/webhook-runs/types.ts +44 -3
- package/src/storage/workflow-runs/in-memory.ts +50 -36
- package/src/storage/workflow-runs/index.ts +0 -2
- package/src/storage/workflow-runs/types.ts +18 -30
- package/src/syncs/run-dispatch.ts +118 -239
- package/src/testing/ai-model-call-groups-contract.ts +2 -1
- package/src/testing/artifact-holders-contract.ts +392 -0
- package/src/testing/artifact-storage-contract.ts +1205 -151
- package/src/testing/auth-storage-contract.ts +228 -1
- package/src/testing/broker-contract.ts +56 -0
- package/src/testing/connector-connection-storage-contract.ts +94 -5
- package/src/testing/dataset-ingest-storage-contract.ts +480 -0
- package/src/testing/dataset-sequence-contract.ts +97 -12
- package/src/testing/execution.ts +23 -0
- package/src/testing/index.ts +31 -0
- package/src/testing/lake-retention-run-storage-contract.ts +75 -0
- package/src/testing/maintenance-heartbeat-storage-contract.ts +99 -0
- package/src/testing/object-query-contract.ts +93 -0
- package/src/testing/pipeline-execution.ts +3 -1
- package/src/testing/pipeline-run-read-contract.ts +123 -0
- package/src/testing/projection-run-storage-contract.ts +113 -0
- package/src/testing/queues-contract.ts +112 -0
- package/src/testing/run-claim-storage-contract.ts +736 -0
- package/src/testing/run-claim.ts +69 -0
- package/src/testing/run-recovery-contract.ts +176 -0
- package/src/testing/share-session-storage-contract.ts +43 -0
- package/src/testing/stored-artifacts.ts +43 -0
- package/src/testing/sync-execution.ts +3 -1
- package/src/testing/webhook-execution.ts +7 -2
- package/src/testing/webhook-run-storage-contract.ts +102 -5
- package/src/users/execution.ts +50 -2
- package/src/users/index.ts +1 -0
- package/src/webhooks/delivery-lease.ts +40 -0
- package/src/webhooks/internal.ts +2 -0
- package/src/webhooks/run-admission.ts +22 -9
- package/src/workers/README.md +169 -0
- package/src/workers/index.ts +9 -1
- package/src/workers/job-ids.ts +31 -0
- package/src/workers/lost-projection-runs.ts +114 -0
- package/src/workers/lost-runs.ts +397 -0
- package/src/workers/queue-delivery.ts +2 -14
- package/src/workers/queue-worker.ts +9 -17
- package/src/workers/queued-run-dispatch.ts +308 -0
- package/src/workers/run-lease.ts +46 -0
- package/src/workers/run-worker.ts +312 -0
- package/src/workers/worker.ts +4 -17
- package/src/workflows/request.ts +2 -0
- package/src/workflows/run-dispatch.ts +22 -4
- package/src/workflows/snapshot.ts +1 -0
- package/dist/chunk-2g0r46hy.js.map +0 -12
- package/dist/chunk-3fqxbn31.js +0 -107
- package/dist/chunk-3fqxbn31.js.map +0 -11
- package/dist/chunk-4s753g3k.js +0 -314
- package/dist/chunk-4s753g3k.js.map +0 -12
- package/dist/chunk-5kyvrtjh.js.map +0 -12
- package/dist/chunk-5taem5aw.js.map +0 -10
- package/dist/chunk-65abf64x.js +0 -13
- package/dist/chunk-65abf64x.js.map +0 -10
- package/dist/chunk-9x8dybsb.js.map +0 -10
- package/dist/chunk-az47zep4.js +0 -41
- package/dist/chunk-az47zep4.js.map +0 -10
- package/dist/chunk-c706qvyc.js +0 -299
- package/dist/chunk-c706qvyc.js.map +0 -11
- package/dist/chunk-djs3hw9p.js.map +0 -20
- package/dist/chunk-e5wf5vz0.js.map +0 -10
- package/dist/chunk-e6xgz4h4.js.map +0 -21
- package/dist/chunk-e7v3trpz.js.map +0 -10
- package/dist/chunk-eqgr6nsa.js.map +0 -72
- package/dist/chunk-fb3feg1e.js +0 -298
- package/dist/chunk-fb3feg1e.js.map +0 -12
- package/dist/chunk-hz5d43gn.js.map +0 -10
- package/dist/chunk-j8thxj7w.js.map +0 -22
- package/dist/chunk-jbw70d6t.js.map +0 -10
- package/dist/chunk-jftd33rc.js.map +0 -11
- package/dist/chunk-jspskey0.js.map +0 -10
- package/dist/chunk-kfee1h52.js.map +0 -13
- package/dist/chunk-kwfhd1g0.js +0 -144
- package/dist/chunk-kwfhd1g0.js.map +0 -13
- package/dist/chunk-nz7815t3.js.map +0 -14
- package/dist/chunk-s3we74h8.js.map +0 -12
- package/dist/chunk-scyq22td.js.map +0 -12
- package/dist/chunk-w1btn96n.js.map +0 -44
- package/dist/chunk-w976a4me.js.map +0 -10
- package/dist/chunk-wkq3kvzd.js.map +0 -10
- package/dist/chunk-wrjx1fqz.js +0 -587
- package/dist/chunk-wrjx1fqz.js.map +0 -18
- package/dist/chunk-yw9pyg66.js +0 -143
- package/dist/chunk-yw9pyg66.js.map +0 -11
- package/dist/chunk-z8fx5cgb.js.map +0 -11
- package/dist/scheduler/runtime.d.ts +0 -40
- package/dist/scheduler/runtime.d.ts.map +0 -1
- package/dist/workers/unstarted-run.d.ts +0 -10
- package/dist/workers/unstarted-run.d.ts.map +0 -1
- package/src/scheduler/runtime.ts +0 -214
- package/src/workers/unstarted-run.ts +0 -18
- /package/dist/{chunk-80gym75n.js.map → chunk-186k5yz3.js.map} +0 -0
- /package/dist/{chunk-ytzcxtpt.js.map → chunk-3ba89vm7.js.map} +0 -0
- /package/dist/{chunk-d04g36fw.js.map → chunk-5qqmndhm.js.map} +0 -0
- /package/dist/{chunk-5wtnmpze.js.map → chunk-7qe46788.js.map} +0 -0
- /package/dist/{chunk-31kcqmhf.js.map → chunk-855w9nvw.js.map} +0 -0
- /package/dist/{chunk-2ajw5rz0.js.map → chunk-8p7bze4c.js.map} +0 -0
- /package/dist/{chunk-9whfmsfk.js.map → chunk-8tqnsx3q.js.map} +0 -0
- /package/dist/{chunk-s038wa5v.js.map → chunk-b9qfh2ya.js.map} +0 -0
- /package/dist/{chunk-jjmggm9a.js.map → chunk-fe6r7yhg.js.map} +0 -0
- /package/dist/{chunk-165c9wm6.js.map → chunk-g2ph4873.js.map} +0 -0
- /package/dist/{chunk-ga63a3dz.js.map → chunk-k66rp2hr.js.map} +0 -0
- /package/dist/{chunk-4zm1k3xj.js.map → chunk-r2psmn42.js.map} +0 -0
- /package/dist/{chunk-r1cxq7vv.js.map → chunk-rtdrm592.js.map} +0 -0
- /package/dist/{chunk-4bm0caep.js.map → chunk-smnt672s.js.map} +0 -0
- /package/dist/{chunk-21q0j5f2.js.map → chunk-stmxh0hv.js.map} +0 -0
- /package/dist/{chunk-ff5xkv0p.js.map → chunk-tfzvjdms.js.map} +0 -0
- /package/dist/{chunk-6b61s40c.js.map → chunk-w3t94hm6.js.map} +0 -0
|
@@ -1,103 +1,90 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import {
|
|
3
|
-
isArtifactAddress2,
|
|
4
|
-
parseSheetPart2
|
|
5
|
-
} from "./chunk-3fqxbn31.js";
|
|
6
2
|
import {
|
|
7
3
|
ARTIFACT_LIMITS2
|
|
8
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-9vsc919v.js";
|
|
5
|
+
import {
|
|
6
|
+
parseSheetPart2,
|
|
7
|
+
ARTIFACT_TONES2,
|
|
8
|
+
isArtifactTone
|
|
9
|
+
} from "./chunk-bz5bnjjt.js";
|
|
9
10
|
|
|
10
|
-
// src/artifacts/
|
|
11
|
-
var
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
return { error: `${ARTIFACT_THEME_FILE2} must be a JSON object.` };
|
|
49
|
-
const unknownKey = Object.keys(value).find((key) => key !== "mode" && key !== "tokens");
|
|
50
|
-
if (unknownKey) {
|
|
51
|
-
return {
|
|
52
|
-
error: `${ARTIFACT_THEME_FILE2} has '${unknownKey}'; it takes only "mode" and "tokens".`
|
|
53
|
-
};
|
|
54
|
-
}
|
|
55
|
-
if (value.mode !== undefined && value.mode !== "light" && value.mode !== "dark") {
|
|
56
|
-
return { error: `${ARTIFACT_THEME_FILE2} "mode" must be "light" or "dark".` };
|
|
57
|
-
}
|
|
58
|
-
if (value.tokens !== undefined && !isObject(value.tokens)) {
|
|
59
|
-
return { error: `${ARTIFACT_THEME_FILE2} "tokens" must be an object of token names to values.` };
|
|
60
|
-
}
|
|
61
|
-
const tokens = {};
|
|
62
|
-
for (const [name, tokenValue] of Object.entries(value.tokens ?? {})) {
|
|
63
|
-
if (!ARTIFACT_THEME_TOKENS.includes(name)) {
|
|
11
|
+
// src/artifacts/canvas-display.ts
|
|
12
|
+
var CANVAS_TEXT_PIXELS2 = {
|
|
13
|
+
s: 14,
|
|
14
|
+
m: 18,
|
|
15
|
+
l: 28,
|
|
16
|
+
xl: 44,
|
|
17
|
+
xxl: 120
|
|
18
|
+
};
|
|
19
|
+
var CANVAS_FIT_PADDING2 = 0.12;
|
|
20
|
+
function canvasNoteFontSize2(width) {
|
|
21
|
+
return Math.round(Math.min(22, Math.max(15, width / 13)));
|
|
22
|
+
}
|
|
23
|
+
function canvasShapeFontSize2(width, height) {
|
|
24
|
+
return Math.round(Math.min(22, Math.max(15, Math.min(width, height * 2) / 12)));
|
|
25
|
+
}
|
|
26
|
+
var SMALL_BOARD_PREVIEW_WIDTH2 = 480;
|
|
27
|
+
var BOARD_PREVIEW_JOB2 = {
|
|
28
|
+
settleMs: 15000,
|
|
29
|
+
graceMs: 180000,
|
|
30
|
+
timeoutMs: 5 * 60000,
|
|
31
|
+
attempts: 3,
|
|
32
|
+
backoffMs: 60000
|
|
33
|
+
};
|
|
34
|
+
var BOARD_PREVIEW_WAIT_MS2 = BOARD_PREVIEW_JOB2.graceMs + BOARD_PREVIEW_JOB2.attempts * BOARD_PREVIEW_JOB2.timeoutMs + (BOARD_PREVIEW_JOB2.attempts - 1) * BOARD_PREVIEW_JOB2.backoffMs;
|
|
35
|
+
var ARROW_GAP = 10;
|
|
36
|
+
function canvasArrowLine2(from, to) {
|
|
37
|
+
return { start: exitPoint(from, center(to)), end: exitPoint(to, center(from)) };
|
|
38
|
+
}
|
|
39
|
+
function canvasItemBox(item) {
|
|
40
|
+
switch (item.type) {
|
|
41
|
+
case "arrow":
|
|
42
|
+
return null;
|
|
43
|
+
case "text": {
|
|
44
|
+
const size = CANVAS_TEXT_PIXELS2[item.size];
|
|
45
|
+
const lineHeight = item.size === "s" || item.size === "m" ? 1.45 : 1.15;
|
|
46
|
+
const longest = Math.max(...item.text.split(`
|
|
47
|
+
`).map((line) => line.length));
|
|
48
|
+
const width = item.w ?? Math.min(longest * size * LETTER_WIDTH, 1600);
|
|
64
49
|
return {
|
|
65
|
-
|
|
50
|
+
x: item.x,
|
|
51
|
+
y: item.y,
|
|
52
|
+
width,
|
|
53
|
+
height: size * lineHeight * wrappedLines(item.text, width, size)
|
|
66
54
|
};
|
|
67
55
|
}
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
56
|
+
case "note": {
|
|
57
|
+
const size = canvasNoteFontSize2(item.w);
|
|
58
|
+
const written = size * 1.4 * wrappedLines(item.text, item.w - size * 2, size) + size * 1.7;
|
|
59
|
+
const height = item.h ?? Math.max(Math.min(item.w, 112), written);
|
|
60
|
+
return { x: item.x, y: item.y, width: item.w, height };
|
|
72
61
|
}
|
|
73
|
-
|
|
62
|
+
default:
|
|
63
|
+
return { x: item.x, y: item.y, width: item.w, height: item.h };
|
|
74
64
|
}
|
|
75
|
-
return {
|
|
76
|
-
theme: {
|
|
77
|
-
...value.mode === undefined ? {} : { mode: value.mode },
|
|
78
|
-
...Object.keys(tokens).length === 0 ? {} : { tokens }
|
|
79
|
-
}
|
|
80
|
-
};
|
|
81
65
|
}
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
return trimmed.length <= 200 && FONT_FAMILY.test(trimmed);
|
|
88
|
-
}
|
|
89
|
-
return HEX_COLOR.test(trimmed) || FUNCTION_COLOR.test(trimmed);
|
|
66
|
+
var LETTER_WIDTH = 0.55;
|
|
67
|
+
function wrappedLines(text, width, size) {
|
|
68
|
+
const perLine = Math.max(1, Math.floor(width / (size * LETTER_WIDTH)));
|
|
69
|
+
return text.split(`
|
|
70
|
+
`).reduce((total, line) => total + Math.max(1, Math.ceil(line.length / perLine)), 0);
|
|
90
71
|
}
|
|
91
|
-
function
|
|
92
|
-
|
|
93
|
-
return "a length such as 8px or 0.5rem";
|
|
94
|
-
if (FONT_TOKENS.includes(name)) {
|
|
95
|
-
return 'a font list such as "Inter Tight", system-ui, sans-serif';
|
|
96
|
-
}
|
|
97
|
-
return "a color such as #2f7280 or oklch(0.62 0.1 210)";
|
|
72
|
+
function canvasEndBox(end, boxes) {
|
|
73
|
+
return typeof end === "string" ? boxes.get(end) : { x: end.x, y: end.y, width: 1, height: 1 };
|
|
98
74
|
}
|
|
99
|
-
function
|
|
100
|
-
return
|
|
75
|
+
function center(box) {
|
|
76
|
+
return { x: box.x + box.width / 2, y: box.y + box.height / 2 };
|
|
77
|
+
}
|
|
78
|
+
function exitPoint(box, toward) {
|
|
79
|
+
const { x: cx, y: cy } = center(box);
|
|
80
|
+
const dx = toward.x - cx;
|
|
81
|
+
const dy = toward.y - cy;
|
|
82
|
+
if (dx === 0 && dy === 0 || box.width <= 1)
|
|
83
|
+
return { x: cx, y: cy };
|
|
84
|
+
const scale = Math.min(dx === 0 ? Number.POSITIVE_INFINITY : box.width / 2 / Math.abs(dx), dy === 0 ? Number.POSITIVE_INFINITY : box.height / 2 / Math.abs(dy));
|
|
85
|
+
const length = Math.hypot(dx, dy);
|
|
86
|
+
const reach = scale * length + ARROW_GAP;
|
|
87
|
+
return { x: cx + dx / length * reach, y: cy + dy / length * reach };
|
|
101
88
|
}
|
|
102
89
|
|
|
103
90
|
// src/artifacts/queries.ts
|
|
@@ -408,6 +395,102 @@ function oneOf(value, key, path, values) {
|
|
|
408
395
|
return found;
|
|
409
396
|
}
|
|
410
397
|
|
|
398
|
+
// src/artifacts/theme.ts
|
|
399
|
+
var ARTIFACT_THEME_FILE2 = "theme.json";
|
|
400
|
+
var COLOR_TOKENS = [
|
|
401
|
+
"--background",
|
|
402
|
+
"--foreground",
|
|
403
|
+
"--card",
|
|
404
|
+
"--card-foreground",
|
|
405
|
+
"--muted",
|
|
406
|
+
"--muted-foreground",
|
|
407
|
+
"--primary",
|
|
408
|
+
"--primary-foreground",
|
|
409
|
+
"--accent",
|
|
410
|
+
"--accent-foreground",
|
|
411
|
+
"--border",
|
|
412
|
+
"--chart-1",
|
|
413
|
+
"--chart-2",
|
|
414
|
+
"--chart-3",
|
|
415
|
+
"--chart-4",
|
|
416
|
+
"--chart-5"
|
|
417
|
+
];
|
|
418
|
+
var FONT_TOKENS = ["--font-sans", "--font-serif", "--font-mono"];
|
|
419
|
+
var ARTIFACT_THEME_TOKENS = [
|
|
420
|
+
...COLOR_TOKENS,
|
|
421
|
+
...FONT_TOKENS,
|
|
422
|
+
"--radius"
|
|
423
|
+
];
|
|
424
|
+
var HEX_COLOR = /^#(?:[0-9a-f]{3,4}|[0-9a-f]{6}|[0-9a-f]{8})$/i;
|
|
425
|
+
var FUNCTION_COLOR = /^(?:rgba?|hsla?|oklch|oklab|lab|lch)\((?:[\d.%\s,/+-]|deg|turn|rad|none)*\)$/i;
|
|
426
|
+
var FONT_FAMILY = /^\s*(?:"[\w -]+"|'[\w -]+'|[\w-]+)(?:\s*,\s*(?:"[\w -]+"|'[\w -]+'|[\w-]+))*\s*$/;
|
|
427
|
+
var LENGTH = /^(?:0|\d{1,3}(?:\.\d+)?(?:px|rem|em))$/;
|
|
428
|
+
function parseArtifactTheme2(text) {
|
|
429
|
+
let value;
|
|
430
|
+
try {
|
|
431
|
+
value = JSON.parse(text);
|
|
432
|
+
} catch {
|
|
433
|
+
return { error: `${ARTIFACT_THEME_FILE2} is not valid JSON.` };
|
|
434
|
+
}
|
|
435
|
+
if (!isObject(value))
|
|
436
|
+
return { error: `${ARTIFACT_THEME_FILE2} must be a JSON object.` };
|
|
437
|
+
const unknownKey = Object.keys(value).find((key) => key !== "mode" && key !== "tokens");
|
|
438
|
+
if (unknownKey) {
|
|
439
|
+
return {
|
|
440
|
+
error: `${ARTIFACT_THEME_FILE2} has '${unknownKey}'; it takes only "mode" and "tokens".`
|
|
441
|
+
};
|
|
442
|
+
}
|
|
443
|
+
if (value.mode !== undefined && value.mode !== "light" && value.mode !== "dark") {
|
|
444
|
+
return { error: `${ARTIFACT_THEME_FILE2} "mode" must be "light" or "dark".` };
|
|
445
|
+
}
|
|
446
|
+
if (value.tokens !== undefined && !isObject(value.tokens)) {
|
|
447
|
+
return { error: `${ARTIFACT_THEME_FILE2} "tokens" must be an object of token names to values.` };
|
|
448
|
+
}
|
|
449
|
+
const tokens = {};
|
|
450
|
+
for (const [name, tokenValue] of Object.entries(value.tokens ?? {})) {
|
|
451
|
+
if (!ARTIFACT_THEME_TOKENS.includes(name)) {
|
|
452
|
+
return {
|
|
453
|
+
error: `${ARTIFACT_THEME_FILE2} sets '${name}'. A theme can set ${ARTIFACT_THEME_TOKENS.join(", ")}.`
|
|
454
|
+
};
|
|
455
|
+
}
|
|
456
|
+
if (typeof tokenValue !== "string" || !tokenValueFits(name, tokenValue)) {
|
|
457
|
+
return {
|
|
458
|
+
error: `${ARTIFACT_THEME_FILE2} gives '${name}' a value it cannot use: ${expected(name)}.`
|
|
459
|
+
};
|
|
460
|
+
}
|
|
461
|
+
tokens[name] = tokenValue.trim();
|
|
462
|
+
}
|
|
463
|
+
return {
|
|
464
|
+
theme: {
|
|
465
|
+
...value.mode === undefined ? {} : { mode: value.mode },
|
|
466
|
+
...Object.keys(tokens).length === 0 ? {} : { tokens }
|
|
467
|
+
}
|
|
468
|
+
};
|
|
469
|
+
}
|
|
470
|
+
function artifactThemeModes2(theme) {
|
|
471
|
+
return theme?.mode ? [theme.mode] : ["light", "dark"];
|
|
472
|
+
}
|
|
473
|
+
function tokenValueFits(name, value) {
|
|
474
|
+
const trimmed = value.trim();
|
|
475
|
+
if (name === "--radius")
|
|
476
|
+
return LENGTH.test(trimmed);
|
|
477
|
+
if (FONT_TOKENS.includes(name)) {
|
|
478
|
+
return trimmed.length <= 200 && FONT_FAMILY.test(trimmed);
|
|
479
|
+
}
|
|
480
|
+
return HEX_COLOR.test(trimmed) || FUNCTION_COLOR.test(trimmed);
|
|
481
|
+
}
|
|
482
|
+
function expected(name) {
|
|
483
|
+
if (name === "--radius")
|
|
484
|
+
return "a length such as 8px or 0.5rem";
|
|
485
|
+
if (FONT_TOKENS.includes(name)) {
|
|
486
|
+
return 'a font list such as "Inter Tight", system-ui, sans-serif';
|
|
487
|
+
}
|
|
488
|
+
return "a color such as #2f7280 or oklch(0.62 0.1 210)";
|
|
489
|
+
}
|
|
490
|
+
function isObject(value) {
|
|
491
|
+
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
492
|
+
}
|
|
493
|
+
|
|
411
494
|
// src/artifacts/resolve.ts
|
|
412
495
|
function resolveArtifactAddress2(address, target) {
|
|
413
496
|
if (address.path !== undefined) {
|
|
@@ -474,245 +557,6 @@ function listed(label, names) {
|
|
|
474
557
|
return `; ${label} are ${shown.join(", ")}${names.length > shown.length ? ", \u2026" : ""}`;
|
|
475
558
|
}
|
|
476
559
|
|
|
477
|
-
// src/artifacts/tones.ts
|
|
478
|
-
var ARTIFACT_TONES2 = [
|
|
479
|
-
"neutral",
|
|
480
|
-
"positive",
|
|
481
|
-
"warning",
|
|
482
|
-
"negative",
|
|
483
|
-
"chart-1",
|
|
484
|
-
"chart-2",
|
|
485
|
-
"chart-3",
|
|
486
|
-
"chart-4",
|
|
487
|
-
"chart-5"
|
|
488
|
-
];
|
|
489
|
-
function isArtifactTone(value) {
|
|
490
|
-
return ARTIFACT_TONES2.includes(value);
|
|
491
|
-
}
|
|
492
|
-
|
|
493
|
-
// src/artifacts/canvas.ts
|
|
494
|
-
var CANVAS_FILE2 = "canvas.json";
|
|
495
|
-
var CANVAS_ITEM_TYPES = [
|
|
496
|
-
"board",
|
|
497
|
-
"section",
|
|
498
|
-
"note",
|
|
499
|
-
"text",
|
|
500
|
-
"shape",
|
|
501
|
-
"arrow",
|
|
502
|
-
"embed"
|
|
503
|
-
];
|
|
504
|
-
var CANVAS_SHAPES = ["rect", "ellipse", "diamond"];
|
|
505
|
-
var CANVAS_TEXT_SIZES = ["s", "m", "l", "xl"];
|
|
506
|
-
|
|
507
|
-
class CanvasError extends Error {
|
|
508
|
-
}
|
|
509
|
-
function parseCanvas2(text) {
|
|
510
|
-
let value;
|
|
511
|
-
try {
|
|
512
|
-
value = JSON.parse(text);
|
|
513
|
-
} catch {
|
|
514
|
-
return { error: `${CANVAS_FILE2} is not valid JSON.` };
|
|
515
|
-
}
|
|
516
|
-
try {
|
|
517
|
-
return { canvas: readCanvas(value) };
|
|
518
|
-
} catch (error) {
|
|
519
|
-
if (error instanceof CanvasError)
|
|
520
|
-
return { error: `${CANVAS_FILE2}: ${error.message}` };
|
|
521
|
-
throw error;
|
|
522
|
-
}
|
|
523
|
-
}
|
|
524
|
-
var ITEM_ID = /^[a-z0-9][a-z0-9-]{0,39}$/;
|
|
525
|
-
var TEXT_MAX = ARTIFACT_LIMITS2.maxCanvasTextLength;
|
|
526
|
-
var LABEL_MAX = ARTIFACT_LIMITS2.maxCanvasLabelLength;
|
|
527
|
-
function readCanvas(value) {
|
|
528
|
-
const input = record2(value, "the canvas", ["items"]);
|
|
529
|
-
if (!Array.isArray(input.items) || input.items.length === 0) {
|
|
530
|
-
throw new CanvasError('"items" must list at least one item.');
|
|
531
|
-
}
|
|
532
|
-
if (input.items.length > ARTIFACT_LIMITS2.maxCanvasItems) {
|
|
533
|
-
throw new CanvasError(`a canvas holds at most ${ARTIFACT_LIMITS2.maxCanvasItems} items; this one has ${input.items.length}.`);
|
|
534
|
-
}
|
|
535
|
-
const items = input.items.map((item, index) => readItem(item, index));
|
|
536
|
-
const ids = new Set;
|
|
537
|
-
for (const item of items) {
|
|
538
|
-
if (ids.has(item.id))
|
|
539
|
-
throw new CanvasError(`two items have the id '${item.id}'.`);
|
|
540
|
-
ids.add(item.id);
|
|
541
|
-
}
|
|
542
|
-
const boards = items.filter((item) => item.type === "board").length;
|
|
543
|
-
if (boards > ARTIFACT_LIMITS2.maxCanvasBoards) {
|
|
544
|
-
throw new CanvasError(`a canvas holds at most ${ARTIFACT_LIMITS2.maxCanvasBoards} boards; this one has ${boards}.`);
|
|
545
|
-
}
|
|
546
|
-
for (const item of items) {
|
|
547
|
-
if (item.type !== "arrow")
|
|
548
|
-
continue;
|
|
549
|
-
for (const [key, end] of [
|
|
550
|
-
["from", item.from],
|
|
551
|
-
["to", item.to]
|
|
552
|
-
]) {
|
|
553
|
-
if (typeof end !== "string")
|
|
554
|
-
continue;
|
|
555
|
-
const target = items.find((candidate) => candidate.id === end);
|
|
556
|
-
if (!target) {
|
|
557
|
-
throw new CanvasError(`arrow '${item.id}' "${key}" names '${end}', which the canvas does not have.`);
|
|
558
|
-
}
|
|
559
|
-
if (target.type === "arrow") {
|
|
560
|
-
throw new CanvasError(`arrow '${item.id}' "${key}" names arrow '${end}'; an arrow joins items, not arrows.`);
|
|
561
|
-
}
|
|
562
|
-
}
|
|
563
|
-
if (item.from === item.to) {
|
|
564
|
-
throw new CanvasError(`arrow '${item.id}' starts and ends at '${String(item.from)}'.`);
|
|
565
|
-
}
|
|
566
|
-
}
|
|
567
|
-
return { items };
|
|
568
|
-
}
|
|
569
|
-
var KEYS = {
|
|
570
|
-
board: ["file", "x", "y", "w", "h", "title"],
|
|
571
|
-
section: ["x", "y", "w", "h", "title"],
|
|
572
|
-
note: ["x", "y", "w", "h", "text", "tone"],
|
|
573
|
-
text: ["x", "y", "w", "text", "size"],
|
|
574
|
-
shape: ["shape", "x", "y", "w", "h", "text", "tone"],
|
|
575
|
-
arrow: ["from", "to", "label", "dashed"],
|
|
576
|
-
embed: ["src", "x", "y", "w", "h", "title"]
|
|
577
|
-
};
|
|
578
|
-
function readItem(value, index) {
|
|
579
|
-
const loose = record2(value, `item ${index + 1}`, null);
|
|
580
|
-
if (typeof loose.id !== "string" || !ITEM_ID.test(loose.id)) {
|
|
581
|
-
throw new CanvasError(`item ${index + 1} needs an "id" of lowercase letters, digits, and hyphens, such as "pricing".`);
|
|
582
|
-
}
|
|
583
|
-
const id = loose.id;
|
|
584
|
-
if (!CANVAS_ITEM_TYPES.includes(loose.type)) {
|
|
585
|
-
throw new CanvasError(`item '${id}' has type ${JSON.stringify(loose.type)}; use one of ${CANVAS_ITEM_TYPES.join(", ")}.`);
|
|
586
|
-
}
|
|
587
|
-
const type = loose.type;
|
|
588
|
-
const at = `${type} '${id}'`;
|
|
589
|
-
const input = record2(value, at, ["id", "type", ...KEYS[type]]);
|
|
590
|
-
const place = () => ({ id, x: position(input.x, at, "x"), y: position(input.y, at, "y") });
|
|
591
|
-
const size = (key) => dimension(input[key], at, key);
|
|
592
|
-
const title = () => optionalText(input.title, at, "title", LABEL_MAX);
|
|
593
|
-
const tone = () => {
|
|
594
|
-
if (input.tone === undefined)
|
|
595
|
-
return {};
|
|
596
|
-
if (!isArtifactTone(input.tone)) {
|
|
597
|
-
throw new CanvasError(`${at} has the tone ${JSON.stringify(input.tone)}; use one of ${ARTIFACT_TONES2.join(", ")}.`);
|
|
598
|
-
}
|
|
599
|
-
return { tone: input.tone };
|
|
600
|
-
};
|
|
601
|
-
switch (type) {
|
|
602
|
-
case "board": {
|
|
603
|
-
if (typeof input.file !== "string" || !/\.html?$/i.test(input.file)) {
|
|
604
|
-
throw new CanvasError(`${at} needs a "file", the HTML it shows, such as "boards/${id}.html".`);
|
|
605
|
-
}
|
|
606
|
-
return { type, ...place(), w: size("w"), h: size("h"), file: input.file, ...title() };
|
|
607
|
-
}
|
|
608
|
-
case "section":
|
|
609
|
-
return { type, ...place(), w: size("w"), h: size("h"), ...title() };
|
|
610
|
-
case "note":
|
|
611
|
-
return {
|
|
612
|
-
type,
|
|
613
|
-
...place(),
|
|
614
|
-
w: size("w"),
|
|
615
|
-
...input.h === undefined ? {} : { h: size("h") },
|
|
616
|
-
text: requiredText(input.text, at, "text", TEXT_MAX),
|
|
617
|
-
...tone()
|
|
618
|
-
};
|
|
619
|
-
case "text": {
|
|
620
|
-
if (input.size !== undefined && !CANVAS_TEXT_SIZES.includes(input.size)) {
|
|
621
|
-
throw new CanvasError(`${at} "size" is ${JSON.stringify(input.size)}; use one of ${CANVAS_TEXT_SIZES.join(", ")}.`);
|
|
622
|
-
}
|
|
623
|
-
return {
|
|
624
|
-
type,
|
|
625
|
-
...place(),
|
|
626
|
-
text: requiredText(input.text, at, "text", TEXT_MAX),
|
|
627
|
-
size: input.size ?? "m",
|
|
628
|
-
...input.w === undefined ? {} : { w: size("w") }
|
|
629
|
-
};
|
|
630
|
-
}
|
|
631
|
-
case "shape": {
|
|
632
|
-
if (!CANVAS_SHAPES.includes(input.shape)) {
|
|
633
|
-
throw new CanvasError(`${at} "shape" is ${JSON.stringify(input.shape)}; use one of ${CANVAS_SHAPES.join(", ")}.`);
|
|
634
|
-
}
|
|
635
|
-
return {
|
|
636
|
-
type,
|
|
637
|
-
...place(),
|
|
638
|
-
w: size("w"),
|
|
639
|
-
h: size("h"),
|
|
640
|
-
shape: input.shape,
|
|
641
|
-
...optionalText(input.text, at, "text", LABEL_MAX, "text"),
|
|
642
|
-
...tone()
|
|
643
|
-
};
|
|
644
|
-
}
|
|
645
|
-
case "embed": {
|
|
646
|
-
if (typeof input.src !== "string" || !isArtifactAddress2(input.src)) {
|
|
647
|
-
throw new CanvasError(`${at} needs a "src", another artifact's address, such as "artifact:art_k3m9q2x7tp#chart=revenue".`);
|
|
648
|
-
}
|
|
649
|
-
return { type, ...place(), w: size("w"), h: size("h"), src: input.src.trim(), ...title() };
|
|
650
|
-
}
|
|
651
|
-
case "arrow": {
|
|
652
|
-
if (input.dashed !== undefined && typeof input.dashed !== "boolean") {
|
|
653
|
-
throw new CanvasError(`${at} "dashed" must be true or false.`);
|
|
654
|
-
}
|
|
655
|
-
return {
|
|
656
|
-
type,
|
|
657
|
-
id,
|
|
658
|
-
from: end(input.from, at, "from"),
|
|
659
|
-
to: end(input.to, at, "to"),
|
|
660
|
-
...optionalText(input.label, at, "label", LABEL_MAX, "label"),
|
|
661
|
-
dashed: input.dashed === true
|
|
662
|
-
};
|
|
663
|
-
}
|
|
664
|
-
}
|
|
665
|
-
}
|
|
666
|
-
function end(value, at, key) {
|
|
667
|
-
if (typeof value === "string" && value)
|
|
668
|
-
return value;
|
|
669
|
-
if (typeof value === "object" && value !== null && !Array.isArray(value)) {
|
|
670
|
-
const point = record2(value, `${at} "${key}"`, ["x", "y"]);
|
|
671
|
-
return { x: position(point.x, at, `${key}.x`), y: position(point.y, at, `${key}.y`) };
|
|
672
|
-
}
|
|
673
|
-
throw new CanvasError(`${at} needs "${key}": an item's id, or a point such as { "x": 0, "y": 0 }.`);
|
|
674
|
-
}
|
|
675
|
-
function position(value, at, key) {
|
|
676
|
-
const max = ARTIFACT_LIMITS2.maxCanvasPosition;
|
|
677
|
-
if (typeof value !== "number" || !Number.isFinite(value) || Math.abs(value) > max) {
|
|
678
|
-
throw new CanvasError(`${at} needs "${key}", a number of pixels within \xB1${max.toLocaleString("en-US")}.`);
|
|
679
|
-
}
|
|
680
|
-
return value;
|
|
681
|
-
}
|
|
682
|
-
function dimension(value, at, key) {
|
|
683
|
-
const { minCanvasItemSize: min, maxCanvasItemSize: max } = ARTIFACT_LIMITS2;
|
|
684
|
-
if (typeof value !== "number" || !Number.isFinite(value) || value < min || value > max) {
|
|
685
|
-
throw new CanvasError(`${at} needs "${key}", a size of ${min} to ${max} pixels.`);
|
|
686
|
-
}
|
|
687
|
-
return value;
|
|
688
|
-
}
|
|
689
|
-
function requiredText(value, at, key, max) {
|
|
690
|
-
if (typeof value !== "string" || !value.trim())
|
|
691
|
-
throw new CanvasError(`${at} needs "${key}", its text.`);
|
|
692
|
-
if (value.length > max)
|
|
693
|
-
throw new CanvasError(`${at} "${key}" is ${value.length} characters; at most ${max}.`);
|
|
694
|
-
return value.trim();
|
|
695
|
-
}
|
|
696
|
-
function optionalText(value, at, key, max, as = key) {
|
|
697
|
-
if (value === undefined)
|
|
698
|
-
return {};
|
|
699
|
-
if (typeof value !== "string" || value.length > max) {
|
|
700
|
-
throw new CanvasError(`${at} "${key}" must be text of at most ${max} characters.`);
|
|
701
|
-
}
|
|
702
|
-
return value.trim() ? { [as]: value.trim() } : {};
|
|
703
|
-
}
|
|
704
|
-
function record2(value, at, keys) {
|
|
705
|
-
if (typeof value !== "object" || value === null || Array.isArray(value)) {
|
|
706
|
-
throw new CanvasError(`${at} must be an object.`);
|
|
707
|
-
}
|
|
708
|
-
const input = value;
|
|
709
|
-
const unknownKey = keys && Object.keys(input).find((key) => !keys.includes(key));
|
|
710
|
-
if (unknownKey) {
|
|
711
|
-
throw new CanvasError(`${at} has '${unknownKey}'; it takes ${keys.map((key) => `"${key}"`).join(", ")}.`);
|
|
712
|
-
}
|
|
713
|
-
return input;
|
|
714
|
-
}
|
|
715
|
-
|
|
716
560
|
// src/artifacts/outline.ts
|
|
717
561
|
function createHeadingSlugger2() {
|
|
718
562
|
const used = new Set;
|
|
@@ -1168,7 +1012,7 @@ var COMPUTED_MAX = 20;
|
|
|
1168
1012
|
var CHART_NAME = /^[a-z0-9][a-z0-9-]{0,39}$/;
|
|
1169
1013
|
var CONTROL = /[\u0000-\u001f\u007f]/;
|
|
1170
1014
|
function readWorkbook(value) {
|
|
1171
|
-
const input =
|
|
1015
|
+
const input = record2(value, "the workbook", ["sheets", "charts"]);
|
|
1172
1016
|
if (!Array.isArray(input.sheets) || input.sheets.length === 0) {
|
|
1173
1017
|
throw new WorkbookError('"sheets" must list at least one sheet.');
|
|
1174
1018
|
}
|
|
@@ -1200,7 +1044,7 @@ function readWorkbook(value) {
|
|
|
1200
1044
|
}
|
|
1201
1045
|
function readSheet(value, index) {
|
|
1202
1046
|
const at = `sheet ${index + 1}`;
|
|
1203
|
-
const input =
|
|
1047
|
+
const input = record2(value, at, [
|
|
1204
1048
|
"name",
|
|
1205
1049
|
"frozenRows",
|
|
1206
1050
|
"frozenColumns",
|
|
@@ -1217,7 +1061,7 @@ function readSheet(value, index) {
|
|
|
1217
1061
|
const sheetAt = `sheet '${name}'`;
|
|
1218
1062
|
const live = input.query === undefined ? undefined : readLiveSheet(input, sheetAt);
|
|
1219
1063
|
const columns = {};
|
|
1220
|
-
for (const [column, format] of Object.entries(
|
|
1064
|
+
for (const [column, format] of Object.entries(record2(input.columns ?? {}, `${sheetAt} "columns"`, null))) {
|
|
1221
1065
|
const at = `${sheetAt} column '${column}'`;
|
|
1222
1066
|
if (!live) {
|
|
1223
1067
|
columns[column] = readColumnFormat(format, at);
|
|
@@ -1233,21 +1077,21 @@ function readSheet(value, index) {
|
|
|
1233
1077
|
throw new WorkbookError(`${sheetAt} computes ${computed} columns; a sheet computes at most ${COMPUTED_MAX}.`);
|
|
1234
1078
|
}
|
|
1235
1079
|
const widths = {};
|
|
1236
|
-
for (const [column, width] of Object.entries(
|
|
1080
|
+
for (const [column, width] of Object.entries(record2(input.widths ?? {}, `${sheetAt} "widths"`, null))) {
|
|
1237
1081
|
if (typeof width !== "number" || !Number.isInteger(width) || width < 40 || width > 800) {
|
|
1238
1082
|
throw new WorkbookError(`${sheetAt} gives column '${column}' a width of ${String(width)}; use 40 to 800 pixels.`);
|
|
1239
1083
|
}
|
|
1240
1084
|
widths[column] = width;
|
|
1241
1085
|
}
|
|
1242
1086
|
const descriptions = {};
|
|
1243
|
-
for (const [column, description] of Object.entries(
|
|
1087
|
+
for (const [column, description] of Object.entries(record2(input.descriptions ?? {}, `${sheetAt} "descriptions"`, null))) {
|
|
1244
1088
|
if (typeof description !== "string" || !description.trim() || description.length > DESCRIPTION_MAX) {
|
|
1245
1089
|
throw new WorkbookError(`${sheetAt} describes column '${column}' with ${JSON.stringify(description)}; a description is text of at most ${DESCRIPTION_MAX} characters.`);
|
|
1246
1090
|
}
|
|
1247
1091
|
descriptions[column] = description.trim();
|
|
1248
1092
|
}
|
|
1249
1093
|
const totals = {};
|
|
1250
|
-
for (const [column, total] of Object.entries(
|
|
1094
|
+
for (const [column, total] of Object.entries(record2(input.totals ?? {}, `${sheetAt} "totals"`, null))) {
|
|
1251
1095
|
if (!SHEET_TOTALS2.includes(total)) {
|
|
1252
1096
|
throw new WorkbookError(`${sheetAt} totals column '${column}' with ${JSON.stringify(total)}; use one of ${SHEET_TOTALS2.join(", ")}.`);
|
|
1253
1097
|
}
|
|
@@ -1278,7 +1122,7 @@ function readLiveSheet(input, sheetAt) {
|
|
|
1278
1122
|
if (typeof input.query !== "string" || !isArtifactQueryName(input.query)) {
|
|
1279
1123
|
throw new WorkbookError(`${sheetAt} "query" must name one of the version's queries, as queries/<name>.json names it: lowercase letters, digits and hyphens.`);
|
|
1280
1124
|
}
|
|
1281
|
-
const entries = Object.entries(
|
|
1125
|
+
const entries = Object.entries(record2(input.columns ?? {}, `${sheetAt} "columns"`, null));
|
|
1282
1126
|
if (entries.length === 0) {
|
|
1283
1127
|
throw new WorkbookError(`${sheetAt} reads query '${input.query}': list its columns in "columns", each with the property it shows in "from".`);
|
|
1284
1128
|
}
|
|
@@ -1290,7 +1134,7 @@ function readLiveSheet(input, sheetAt) {
|
|
|
1290
1134
|
if (typeof value === "string") {
|
|
1291
1135
|
throw new WorkbookError(`${at} is ${JSON.stringify(value)}; a live sheet's column is an object, such as { "from": "amount", "type": "${value}" }.`);
|
|
1292
1136
|
}
|
|
1293
|
-
const column =
|
|
1137
|
+
const column = record2(value, at, [
|
|
1294
1138
|
"from",
|
|
1295
1139
|
"type",
|
|
1296
1140
|
"currency",
|
|
@@ -1334,7 +1178,7 @@ function readSheetColumnFormat(value, at, type) {
|
|
|
1334
1178
|
function readColumnFormat(value, at) {
|
|
1335
1179
|
if (typeof value === "string")
|
|
1336
1180
|
return { type: columnType(value, at) };
|
|
1337
|
-
const input =
|
|
1181
|
+
const input = record2(value, at, [
|
|
1338
1182
|
"type",
|
|
1339
1183
|
"currency",
|
|
1340
1184
|
"decimals",
|
|
@@ -1373,7 +1217,7 @@ function readColumnFormat(value, at) {
|
|
|
1373
1217
|
if (type !== "tag")
|
|
1374
1218
|
throw new WorkbookError(`${at} sets "tones" but is not a tag column.`);
|
|
1375
1219
|
tones = {};
|
|
1376
|
-
const entries = Object.entries(
|
|
1220
|
+
const entries = Object.entries(record2(input.tones, `${at} "tones"`, null));
|
|
1377
1221
|
if (entries.length > TONES_MAX) {
|
|
1378
1222
|
throw new WorkbookError(`${at} "tones" names ${entries.length} values; it takes at most ${TONES_MAX}.`);
|
|
1379
1223
|
}
|
|
@@ -1434,7 +1278,7 @@ function columnType(value, at) {
|
|
|
1434
1278
|
throw new WorkbookError(`${at} has type ${JSON.stringify(value)}; use one of ${SHEET_COLUMN_TYPES2.join(", ")}.`);
|
|
1435
1279
|
}
|
|
1436
1280
|
function readChart(value, index, sheets) {
|
|
1437
|
-
const input =
|
|
1281
|
+
const input = record2(value, `chart ${index + 1}`, [
|
|
1438
1282
|
"name",
|
|
1439
1283
|
"type",
|
|
1440
1284
|
"sheet",
|
|
@@ -1511,7 +1355,7 @@ function readChart(value, index, sheets) {
|
|
|
1511
1355
|
stacked: input.stacked === true
|
|
1512
1356
|
};
|
|
1513
1357
|
}
|
|
1514
|
-
function
|
|
1358
|
+
function record2(value, at, keys) {
|
|
1515
1359
|
if (typeof value !== "object" || value === null || Array.isArray(value)) {
|
|
1516
1360
|
throw new WorkbookError(`${at} must be an object.`);
|
|
1517
1361
|
}
|
|
@@ -2375,6 +2219,6 @@ function sheetChartsProblem(workbook, tables) {
|
|
|
2375
2219
|
return null;
|
|
2376
2220
|
}
|
|
2377
2221
|
|
|
2378
|
-
export {
|
|
2222
|
+
export { CANVAS_TEXT_PIXELS2, CANVAS_FIT_PADDING2, canvasNoteFontSize2, canvasShapeFontSize2, SMALL_BOARD_PREVIEW_WIDTH2, BOARD_PREVIEW_JOB2, BOARD_PREVIEW_WAIT_MS2, canvasArrowLine2, canvasItemBox, canvasEndBox, ARTIFACT_QUERIES_DIRECTORY, ARTIFACT_QUERY_KINDS, isArtifactQueryName, artifactQueryPath, artifactQueryName2, parseArtifactQuery, ARTIFACT_THEME_FILE2, ARTIFACT_THEME_TOKENS, parseArtifactTheme2, artifactThemeModes2, resolveArtifactAddress2, createHeadingSlugger2, CsvParseError2, parseCsv2, formatCsv2, parseFormula2, formulaDependencies2, formulaReferences2, renameColumnReferences2, WORKBOOK_FILE2, SHEET_COLUMN_TYPES2, NUMERIC_COLUMN_TYPES2, SHEET_HIGHLIGHTS2, SHEET_TOTALS2, sheetFilePath2, parseWorkbook2, parseSheetNumber2, parseSheetDate2, checkFormula2, FORMULA_ERRORS2, columnFormulaType2, formulaFitsColumn2, FormulaCycleError2, evaluateComputedColumns2, liveSheetColumns2, liveSheetTable2, checkSheet2, sheetColumnsProblem, sheetFormulasProblem, sheetChartsProblem };
|
|
2379
2223
|
|
|
2380
|
-
//# debugId=
|
|
2224
|
+
//# debugId=5CDF748C8F6687C064756E2164756E21
|