@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,965 +1,24 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import
|
|
3
|
-
isArtifactAddress2,
|
|
4
|
-
parseArtifactAddress2
|
|
5
|
-
} from "../../chunk-3fqxbn31.js";
|
|
2
|
+
import"../../chunk-kr6dx38r.js";
|
|
6
3
|
import {
|
|
7
4
|
ArtifactRequestError2,
|
|
8
|
-
decodeHtmlEntities,
|
|
9
5
|
HTML_ENTRY2,
|
|
10
|
-
|
|
11
|
-
|
|
6
|
+
FRAME_DEFAULT_THEMES2,
|
|
7
|
+
FRAME_CDN_ALLOWLIST2,
|
|
8
|
+
FRAME_ASSETS2,
|
|
9
|
+
injectFrameAssets2,
|
|
10
|
+
FRAME_REFERENCE_PREFIX2,
|
|
11
|
+
FRAME_REFERENCE_PATH2,
|
|
12
|
+
rewriteFrameReferences2,
|
|
13
|
+
serializeArtifactQueryResult2
|
|
14
|
+
} from "../../chunk-qds484t8.js";
|
|
12
15
|
import"../../chunk-wkv3h3q7.js";
|
|
13
|
-
import"../../chunk-
|
|
16
|
+
import"../../chunk-9vsc919v.js";
|
|
14
17
|
import {
|
|
15
|
-
|
|
16
|
-
|
|
18
|
+
parseArtifactAddress2,
|
|
19
|
+
CANVAS_FILE2
|
|
20
|
+
} from "../../chunk-bz5bnjjt.js";
|
|
17
21
|
import"../../chunk-a3faa34j.js";
|
|
18
|
-
// src/artifacts/serialize-query.ts
|
|
19
|
-
function serializeArtifactQueryResult(result) {
|
|
20
|
-
return result.kind === "objects" ? { ...result, objects: result.objects.map(serializeExpandedObject2) } : result;
|
|
21
|
-
}
|
|
22
|
-
// src/artifacts/frames/kit.ts
|
|
23
|
-
var FONTS = {
|
|
24
|
-
"--font-sans": '"SF Pro Text", "SF Pro Display", "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif',
|
|
25
|
-
"--font-serif": 'ui-serif, Georgia, Cambria, "Times New Roman", Times, serif',
|
|
26
|
-
"--font-mono": '"SF Mono", "Geist Mono", "JetBrains Mono", ui-monospace, monospace'
|
|
27
|
-
};
|
|
28
|
-
var FRAME_DEFAULT_THEMES = {
|
|
29
|
-
light: {
|
|
30
|
-
dark: false,
|
|
31
|
-
tokens: {
|
|
32
|
-
"--background": "#fafafa",
|
|
33
|
-
"--foreground": "#101010",
|
|
34
|
-
"--card": "#ffffff",
|
|
35
|
-
"--card-foreground": "#101010",
|
|
36
|
-
"--muted": "#f4f4f4",
|
|
37
|
-
"--muted-foreground": "#5f5f5f",
|
|
38
|
-
"--primary": "#0a0a0a",
|
|
39
|
-
"--primary-foreground": "#ffffff",
|
|
40
|
-
"--accent": "#f0f0f0",
|
|
41
|
-
"--accent-foreground": "#202020",
|
|
42
|
-
"--border": "#e2e2e2",
|
|
43
|
-
"--chart-1": "#101010",
|
|
44
|
-
"--chart-2": "#404040",
|
|
45
|
-
"--chart-3": "#737373",
|
|
46
|
-
"--chart-4": "#a3a3a3",
|
|
47
|
-
"--chart-5": "#d4d4d4",
|
|
48
|
-
...FONTS,
|
|
49
|
-
"--radius": "0.5rem"
|
|
50
|
-
}
|
|
51
|
-
},
|
|
52
|
-
dark: {
|
|
53
|
-
dark: true,
|
|
54
|
-
tokens: {
|
|
55
|
-
"--background": "#0a0a0a",
|
|
56
|
-
"--foreground": "#f4f4f4",
|
|
57
|
-
"--card": "#141414",
|
|
58
|
-
"--card-foreground": "#f4f4f4",
|
|
59
|
-
"--muted": "#1c1c1c",
|
|
60
|
-
"--muted-foreground": "#8a8a8a",
|
|
61
|
-
"--primary": "#f4f4f4",
|
|
62
|
-
"--primary-foreground": "#0a0a0a",
|
|
63
|
-
"--accent": "#1c1c1c",
|
|
64
|
-
"--accent-foreground": "#f4f4f4",
|
|
65
|
-
"--border": "#262626",
|
|
66
|
-
"--chart-1": "#f4f4f4",
|
|
67
|
-
"--chart-2": "#c4c4c4",
|
|
68
|
-
"--chart-3": "#8a8a8a",
|
|
69
|
-
"--chart-4": "#5f5f5f",
|
|
70
|
-
"--chart-5": "#404040",
|
|
71
|
-
...FONTS,
|
|
72
|
-
"--radius": "0.5rem"
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
};
|
|
76
|
-
var LIGHT = FRAME_DEFAULT_THEMES.light.tokens;
|
|
77
|
-
function kit(rules) {
|
|
78
|
-
return `
|
|
79
|
-
@layer sixb-kit, sixb-theme;
|
|
80
|
-
|
|
81
|
-
@layer sixb-kit {
|
|
82
|
-
:root {
|
|
83
|
-
${Object.entries(LIGHT).map(([name, value]) => ` ${name}: ${value};`).join(`
|
|
84
|
-
`)}
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
*, *::before, *::after { box-sizing: border-box; }
|
|
88
|
-
html, body { margin: 0; padding: 0; }
|
|
89
|
-
body {
|
|
90
|
-
color: var(--foreground);
|
|
91
|
-
font-family: var(--font-sans);
|
|
92
|
-
-webkit-font-smoothing: antialiased;
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
${rules}}
|
|
96
|
-
`;
|
|
97
|
-
}
|
|
98
|
-
var FRAME_DECK_CSS = kit(` :root {
|
|
99
|
-
--sixb-scale: 1;
|
|
100
|
-
--sixb-overview-scale: 0.25;
|
|
101
|
-
--sixb-columns: 4;
|
|
102
|
-
--sixb-stage: ${LIGHT["--muted"]};
|
|
103
|
-
--sixb-stage-border: ${LIGHT["--border"]};
|
|
104
|
-
--sixb-stage-foreground: ${LIGHT["--foreground"]};
|
|
105
|
-
}
|
|
106
|
-
body { background: var(--muted); }
|
|
107
|
-
|
|
108
|
-
/*
|
|
109
|
-
* The stage: a slide's size and scale, which slides show, and the stage around them, in the
|
|
110
|
-
* app's colors (--sixb-stage and its kin, which only the app's theme sets). A deck's own CSS, unlayered,
|
|
111
|
-
* wins over everything else in the kit, so these alone are important: an important declaration
|
|
112
|
-
* in a layer wins over every unlayered one, a deck's own important ones included. Otherwise a
|
|
113
|
-
* deck that sets display on its closing slide shows it under every other, and one that sets its
|
|
114
|
-
* body's background repaints the stage.
|
|
115
|
-
*/
|
|
116
|
-
html.sixb-deck section.slide { width: 1280px !important; height: 720px !important; flex: none !important; }
|
|
117
|
-
|
|
118
|
-
/* One slide at a time, scaled to fit and centered on the stage. */
|
|
119
|
-
html.sixb-deck:not([data-mode="overview"]),
|
|
120
|
-
html.sixb-deck:not([data-mode="overview"]) body { height: 100% !important; overflow: hidden !important; }
|
|
121
|
-
html.sixb-deck:not([data-mode="overview"]) body {
|
|
122
|
-
margin: 0 !important;
|
|
123
|
-
padding: 0 !important;
|
|
124
|
-
display: grid !important;
|
|
125
|
-
place-items: center !important;
|
|
126
|
-
background: var(--sixb-stage) !important;
|
|
127
|
-
}
|
|
128
|
-
html.sixb-deck:not([data-mode="overview"]) section.slide { zoom: var(--sixb-scale) !important; }
|
|
129
|
-
html.sixb-deck:not([data-mode="overview"]) section.slide:not([data-current]) { display: none !important; }
|
|
130
|
-
html.sixb-deck[data-mode="slide"] section.slide {
|
|
131
|
-
border-radius: calc(10px / var(--sixb-scale)) !important;
|
|
132
|
-
box-shadow: 0 0 0 calc(1px / var(--sixb-scale)) var(--sixb-stage-border) !important;
|
|
133
|
-
}
|
|
134
|
-
/* Filled, the slide is the whole frame, as a thumbnail or an embed shows it; presented, it
|
|
135
|
-
fills the page on black. */
|
|
136
|
-
html.sixb-deck:is([data-mode="fill"], [data-mode="present"]) section.slide {
|
|
137
|
-
border-radius: 0 !important;
|
|
138
|
-
box-shadow: none !important;
|
|
139
|
-
}
|
|
140
|
-
html.sixb-deck[data-mode="present"] body { background: #000 !important; }
|
|
141
|
-
|
|
142
|
-
/* Every slide in a grid. */
|
|
143
|
-
html.sixb-deck[data-mode="overview"],
|
|
144
|
-
html.sixb-deck[data-mode="overview"] body { height: 100% !important; overflow: auto !important; }
|
|
145
|
-
html.sixb-deck[data-mode="overview"] body {
|
|
146
|
-
margin: 0 !important;
|
|
147
|
-
display: grid !important;
|
|
148
|
-
grid-template-columns: repeat(var(--sixb-columns), max-content) !important;
|
|
149
|
-
justify-content: center !important;
|
|
150
|
-
align-content: start !important;
|
|
151
|
-
gap: 16px !important;
|
|
152
|
-
padding: 16px !important;
|
|
153
|
-
background: var(--sixb-stage) !important;
|
|
154
|
-
}
|
|
155
|
-
html.sixb-deck[data-mode="overview"] section.slide {
|
|
156
|
-
zoom: var(--sixb-overview-scale) !important;
|
|
157
|
-
cursor: pointer;
|
|
158
|
-
border-radius: calc(6px / var(--sixb-overview-scale)) !important;
|
|
159
|
-
box-shadow: 0 0 0 calc(1px / var(--sixb-overview-scale)) var(--sixb-stage-border) !important;
|
|
160
|
-
}
|
|
161
|
-
html.sixb-deck[data-mode="overview"] section.slide[data-current] {
|
|
162
|
-
box-shadow: 0 0 0 calc(1px / var(--sixb-overview-scale)) var(--sixb-stage-foreground) !important;
|
|
163
|
-
outline: calc(2px / var(--sixb-overview-scale)) solid var(--sixb-stage-foreground) !important;
|
|
164
|
-
outline-offset: calc(2px / var(--sixb-overview-scale)) !important;
|
|
165
|
-
}
|
|
166
|
-
|
|
167
|
-
/*
|
|
168
|
-
* A slide: 1280\xD7720. Its footer, a rule with the source and the slide's number, sits in the
|
|
169
|
-
* bottom padding, so content never runs into it.
|
|
170
|
-
*/
|
|
171
|
-
section.slide {
|
|
172
|
-
position: relative;
|
|
173
|
-
display: flex;
|
|
174
|
-
flex-direction: column;
|
|
175
|
-
gap: 28px;
|
|
176
|
-
width: 1280px;
|
|
177
|
-
height: 720px;
|
|
178
|
-
flex: none;
|
|
179
|
-
padding: 72px 96px 140px;
|
|
180
|
-
overflow: hidden;
|
|
181
|
-
background: var(--background);
|
|
182
|
-
color: var(--foreground);
|
|
183
|
-
font-size: 28px;
|
|
184
|
-
line-height: 1.4;
|
|
185
|
-
}
|
|
186
|
-
|
|
187
|
-
/* Type: nothing on a slide is smaller than 18px. */
|
|
188
|
-
section.slide :is(h1, h2, h3) { margin: 0; text-wrap: balance; }
|
|
189
|
-
section.slide h1 { font-size: 72px; line-height: 1; font-weight: 650; letter-spacing: -0.035em; }
|
|
190
|
-
section.slide h2 { max-width: 1000px; font-size: 46px; line-height: 1.08; font-weight: 600; letter-spacing: -0.025em; }
|
|
191
|
-
section.slide h3 { font-size: 30px; line-height: 1.2; font-weight: 600; letter-spacing: -0.01em; }
|
|
192
|
-
section.slide p { margin: 0; max-width: 34em; }
|
|
193
|
-
section.slide :is(ul, ol) {
|
|
194
|
-
margin: 0;
|
|
195
|
-
padding-left: 30px;
|
|
196
|
-
display: flex;
|
|
197
|
-
flex-direction: column;
|
|
198
|
-
gap: 22px;
|
|
199
|
-
font-size: 30px;
|
|
200
|
-
line-height: 1.35;
|
|
201
|
-
letter-spacing: -0.01em;
|
|
202
|
-
}
|
|
203
|
-
section.slide li { padding-left: 6px; }
|
|
204
|
-
section.slide li::marker { color: var(--muted-foreground); }
|
|
205
|
-
section.slide strong { font-weight: 600; }
|
|
206
|
-
section.slide a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: 5px; }
|
|
207
|
-
section.slide small, section.slide .note { font-size: 20px; color: var(--muted-foreground); }
|
|
208
|
-
section.slide img, section.slide svg, section.slide video { max-width: 100%; max-height: 100%; }
|
|
209
|
-
/* A figure's default 40px margins would squeeze a chart and its labels below the type floor. */
|
|
210
|
-
section.slide figure { margin: 0; }
|
|
211
|
-
section.slide code { font-family: var(--font-mono); font-size: 0.85em; }
|
|
212
|
-
|
|
213
|
-
/* Chrome: a label above the heading (two spans sit at either end), and the footer. */
|
|
214
|
-
section.slide .eyebrow {
|
|
215
|
-
display: flex;
|
|
216
|
-
justify-content: space-between;
|
|
217
|
-
gap: 24px;
|
|
218
|
-
margin: 0;
|
|
219
|
-
max-width: none;
|
|
220
|
-
font-size: 20px;
|
|
221
|
-
line-height: 1.3;
|
|
222
|
-
letter-spacing: 0.01em;
|
|
223
|
-
color: var(--muted-foreground);
|
|
224
|
-
}
|
|
225
|
-
section.slide .eyebrow + :is(h1, h2) { margin-top: -12px; }
|
|
226
|
-
section.slide::after {
|
|
227
|
-
content: attr(data-number);
|
|
228
|
-
position: absolute;
|
|
229
|
-
left: 96px;
|
|
230
|
-
right: 96px;
|
|
231
|
-
bottom: 64px;
|
|
232
|
-
padding-top: 22px;
|
|
233
|
-
border-top: 1px solid var(--border);
|
|
234
|
-
text-align: right;
|
|
235
|
-
font-size: 18px;
|
|
236
|
-
line-height: 1.4;
|
|
237
|
-
font-variant-numeric: tabular-nums;
|
|
238
|
-
color: var(--muted-foreground);
|
|
239
|
-
}
|
|
240
|
-
section.slide.no-number::after { content: ""; }
|
|
241
|
-
section.slide.no-number:not(:has(.source))::after { display: none; }
|
|
242
|
-
section.slide .source {
|
|
243
|
-
position: absolute;
|
|
244
|
-
left: 96px;
|
|
245
|
-
right: calc(96px + 3em);
|
|
246
|
-
bottom: 64px;
|
|
247
|
-
z-index: 1;
|
|
248
|
-
max-width: none;
|
|
249
|
-
overflow: hidden;
|
|
250
|
-
white-space: nowrap;
|
|
251
|
-
text-overflow: ellipsis;
|
|
252
|
-
font-size: 18px;
|
|
253
|
-
line-height: 1.4;
|
|
254
|
-
font-variant-numeric: tabular-nums;
|
|
255
|
-
color: var(--muted-foreground);
|
|
256
|
-
}
|
|
257
|
-
|
|
258
|
-
/* Layouts. */
|
|
259
|
-
section.slide.title > .eyebrow { margin-bottom: auto; }
|
|
260
|
-
section.slide.title h1 { margin-top: 0; font-size: 132px; line-height: 0.92; letter-spacing: -0.04em; max-width: 9em; }
|
|
261
|
-
section.slide.title > p:not(.eyebrow, .source) { font-size: 36px; line-height: 1.25; letter-spacing: -0.01em; color: var(--muted-foreground); max-width: 24em; text-wrap: balance; }
|
|
262
|
-
|
|
263
|
-
section.slide.section { justify-content: flex-end; }
|
|
264
|
-
section.slide.section h2 { font-size: 72px; line-height: 1; letter-spacing: -0.035em; max-width: 13em; }
|
|
265
|
-
|
|
266
|
-
section.slide.split {
|
|
267
|
-
display: grid;
|
|
268
|
-
grid-template-columns: 5fr 6fr;
|
|
269
|
-
grid-template-rows: auto 1fr;
|
|
270
|
-
column-gap: 80px;
|
|
271
|
-
row-gap: 28px;
|
|
272
|
-
}
|
|
273
|
-
section.slide.split:has(> .eyebrow) { grid-template-rows: auto auto 1fr; }
|
|
274
|
-
section.slide.split > :is(h1, h2, .eyebrow) { grid-column: 1 / -1; }
|
|
275
|
-
section.slide.split > * { min-width: 0; min-height: 0; }
|
|
276
|
-
section.slide.split > :not(h1, h2, .eyebrow) { align-self: center; }
|
|
277
|
-
|
|
278
|
-
section.slide.stat > .value { margin-top: auto; }
|
|
279
|
-
section.slide.stat .value {
|
|
280
|
-
font-size: 144px;
|
|
281
|
-
line-height: 0.9;
|
|
282
|
-
font-weight: 600;
|
|
283
|
-
letter-spacing: -0.045em;
|
|
284
|
-
font-variant-numeric: tabular-nums;
|
|
285
|
-
color: var(--primary);
|
|
286
|
-
}
|
|
287
|
-
section.slide.stat .label { font-size: 26px; line-height: 1.35; color: var(--muted-foreground); }
|
|
288
|
-
section.slide.stat .stats {
|
|
289
|
-
margin-top: auto;
|
|
290
|
-
display: grid;
|
|
291
|
-
grid-auto-flow: column;
|
|
292
|
-
grid-auto-columns: minmax(0, 1fr);
|
|
293
|
-
gap: 64px;
|
|
294
|
-
padding-bottom: 16px;
|
|
295
|
-
}
|
|
296
|
-
section.slide.stat .stats > * {
|
|
297
|
-
display: flex;
|
|
298
|
-
flex-direction: column;
|
|
299
|
-
gap: 14px;
|
|
300
|
-
padding-top: 28px;
|
|
301
|
-
border-top: 2px solid var(--foreground);
|
|
302
|
-
}
|
|
303
|
-
section.slide.stat .stats:has(> :nth-child(3)) .value { font-size: 96px; }
|
|
304
|
-
section.slide.stat .stats:has(> :nth-child(4)) .value { font-size: 80px; }
|
|
305
|
-
|
|
306
|
-
section.slide.quote { justify-content: center; }
|
|
307
|
-
section.slide.quote blockquote {
|
|
308
|
-
margin: 0;
|
|
309
|
-
font-family: var(--font-serif);
|
|
310
|
-
font-size: 52px;
|
|
311
|
-
line-height: 1.2;
|
|
312
|
-
letter-spacing: -0.01em;
|
|
313
|
-
max-width: 22em;
|
|
314
|
-
text-wrap: balance;
|
|
315
|
-
}
|
|
316
|
-
section.slide.quote cite { font-style: normal; font-size: 24px; color: var(--muted-foreground); }
|
|
317
|
-
|
|
318
|
-
section.slide.image > :is(img, figure) { flex: 1; min-height: 0; margin: 0; object-fit: contain; }
|
|
319
|
-
section.slide.image.bleed { padding: 0; }
|
|
320
|
-
section.slide.image.bleed > img { width: 100%; height: 100%; object-fit: cover; }
|
|
321
|
-
section.slide.image.bleed::after, section.slide.image.bleed .source { display: none; }
|
|
322
|
-
|
|
323
|
-
section.slide.chart > :is(figure, svg, img, .chart) { flex: 1; min-height: 0; margin: 0; }
|
|
324
|
-
section.slide.chart figure { display: flex; flex-direction: column; gap: 20px; }
|
|
325
|
-
section.slide.chart figure > :is(svg, img) { flex: 1; min-height: 0; width: 100%; }
|
|
326
|
-
section.slide figcaption { font-size: 20px; color: var(--muted-foreground); }
|
|
327
|
-
|
|
328
|
-
section.slide.table table { width: 100%; border-collapse: collapse; font-size: 26px; font-variant-numeric: tabular-nums; }
|
|
329
|
-
section.slide.table :is(th, td) { padding: 14px 16px; border-bottom: 1px solid var(--border); text-align: left; }
|
|
330
|
-
section.slide.table :is(th, td):first-child { padding-left: 0; }
|
|
331
|
-
section.slide.table :is(th, td):last-child { padding-right: 0; }
|
|
332
|
-
section.slide.table th { font-size: 20px; font-weight: 500; color: var(--muted-foreground); }
|
|
333
|
-
section.slide.table :is(th, td).num, section.slide.table :is(th, td)[data-numeric] { text-align: right; }
|
|
334
|
-
|
|
335
|
-
/*
|
|
336
|
-
* Another artifact on the slide: the app draws it over this box, sized by the deck's CSS like
|
|
337
|
-
* any block. Until it does, and in a thumbnail, the box shows where it goes.
|
|
338
|
-
*/
|
|
339
|
-
sixb-embed {
|
|
340
|
-
display: block;
|
|
341
|
-
position: relative;
|
|
342
|
-
width: 100%;
|
|
343
|
-
min-width: 0;
|
|
344
|
-
aspect-ratio: 16 / 9;
|
|
345
|
-
border-radius: 12px;
|
|
346
|
-
background: color-mix(in oklab, var(--muted) 80%, transparent);
|
|
347
|
-
}
|
|
348
|
-
sixb-embed[title]::after {
|
|
349
|
-
content: attr(title);
|
|
350
|
-
position: absolute;
|
|
351
|
-
inset: auto 24px 20px;
|
|
352
|
-
font-size: 20px;
|
|
353
|
-
color: var(--muted-foreground);
|
|
354
|
-
}
|
|
355
|
-
section.slide.chart > sixb-embed,
|
|
356
|
-
section.slide.chart figure > sixb-embed { flex: 1; min-height: 0; aspect-ratio: auto; }
|
|
357
|
-
/* An image from another artifact its reader cannot see. */
|
|
358
|
-
section.slide img[data-sixb-ref="unavailable"] {
|
|
359
|
-
display: block;
|
|
360
|
-
min-width: 160px;
|
|
361
|
-
min-height: 90px;
|
|
362
|
-
border-radius: 12px;
|
|
363
|
-
background: var(--muted);
|
|
364
|
-
}
|
|
365
|
-
|
|
366
|
-
/* Components. */
|
|
367
|
-
section.slide .legend {
|
|
368
|
-
display: flex;
|
|
369
|
-
flex-direction: row;
|
|
370
|
-
flex-wrap: wrap;
|
|
371
|
-
gap: 8px 24px;
|
|
372
|
-
margin: 0;
|
|
373
|
-
padding: 0;
|
|
374
|
-
list-style: none;
|
|
375
|
-
font-size: 20px;
|
|
376
|
-
line-height: 1.3;
|
|
377
|
-
letter-spacing: 0;
|
|
378
|
-
color: var(--muted-foreground);
|
|
379
|
-
}
|
|
380
|
-
section.slide .legend > * { display: flex; align-items: center; gap: 8px; padding: 0; }
|
|
381
|
-
section.slide .legend > *::before {
|
|
382
|
-
content: "";
|
|
383
|
-
width: 0.8em;
|
|
384
|
-
height: 0.8em;
|
|
385
|
-
border-radius: 2px;
|
|
386
|
-
background: var(--swatch, var(--chart-1));
|
|
387
|
-
}
|
|
388
|
-
section.slide .callout {
|
|
389
|
-
padding: 24px 28px;
|
|
390
|
-
border-radius: var(--radius);
|
|
391
|
-
background: var(--muted);
|
|
392
|
-
font-size: 26px;
|
|
393
|
-
}
|
|
394
|
-
section.slide .tag {
|
|
395
|
-
display: inline-block;
|
|
396
|
-
padding: 4px 12px;
|
|
397
|
-
border-radius: 999px;
|
|
398
|
-
background: var(--muted);
|
|
399
|
-
font-size: 18px;
|
|
400
|
-
font-weight: 600;
|
|
401
|
-
}
|
|
402
|
-
`);
|
|
403
|
-
var FRAME_PAGE_CSS = kit(` html { color-scheme: light; }
|
|
404
|
-
html.dark { color-scheme: dark; }
|
|
405
|
-
body {
|
|
406
|
-
background: var(--background);
|
|
407
|
-
font-size: 15px;
|
|
408
|
-
line-height: 1.6;
|
|
409
|
-
text-rendering: optimizeLegibility;
|
|
410
|
-
}
|
|
411
|
-
|
|
412
|
-
/* A page reads in a centered column with room around it, narrower on a phone. */
|
|
413
|
-
main { display: block; max-width: 1120px; margin: 0 auto; padding: 40px 32px 56px; }
|
|
414
|
-
@media (max-width: 640px) { main { padding: 24px 16px 40px; } }
|
|
415
|
-
|
|
416
|
-
/* Type. */
|
|
417
|
-
:is(h1, h2, h3, h4) { margin: 0 0 0.5em; color: var(--foreground); text-wrap: balance; }
|
|
418
|
-
h1 { font-size: 32px; line-height: 1.15; font-weight: 650; letter-spacing: -0.025em; }
|
|
419
|
-
h2 { margin-top: 1.6em; font-size: 21px; line-height: 1.25; font-weight: 620; letter-spacing: -0.015em; }
|
|
420
|
-
h3 { margin-top: 1.4em; font-size: 16px; line-height: 1.35; font-weight: 600; }
|
|
421
|
-
h4 { font-size: 14px; font-weight: 600; }
|
|
422
|
-
:is(h1, h2, h3, h4):first-child { margin-top: 0; }
|
|
423
|
-
@media (max-width: 640px) { h1 { font-size: 26px; } h2 { font-size: 19px; } }
|
|
424
|
-
p { margin: 0 0 1em; text-wrap: pretty; }
|
|
425
|
-
.lede { max-width: 42em; margin-bottom: 1.6em; font-size: 17px; line-height: 1.55; color: var(--muted-foreground); }
|
|
426
|
-
.eyebrow {
|
|
427
|
-
margin: 0 0 8px;
|
|
428
|
-
font-size: 12px;
|
|
429
|
-
font-weight: 600;
|
|
430
|
-
letter-spacing: 0.06em;
|
|
431
|
-
text-transform: uppercase;
|
|
432
|
-
color: var(--muted-foreground);
|
|
433
|
-
}
|
|
434
|
-
small, .muted, .note { color: var(--muted-foreground); }
|
|
435
|
-
small, .note { font-size: 13px; }
|
|
436
|
-
a { color: var(--foreground); text-decoration-color: color-mix(in oklab, var(--foreground) 35%, transparent); text-underline-offset: 3px; }
|
|
437
|
-
a:hover { text-decoration-color: currentColor; }
|
|
438
|
-
strong { font-weight: 600; }
|
|
439
|
-
hr { margin: 32px 0; border: 0; border-top: 1px solid var(--border); }
|
|
440
|
-
:is(ul, ol) { margin: 0 0 1em; padding-left: 1.25em; }
|
|
441
|
-
li + li { margin-top: 0.25em; }
|
|
442
|
-
code { font-family: var(--font-mono); font-size: 0.88em; padding: 0.1em 0.35em; border-radius: 5px; background: var(--muted); }
|
|
443
|
-
pre { margin: 0 0 1em; padding: 14px 16px; overflow-x: auto; border-radius: var(--radius); background: var(--muted); font-size: 13px; line-height: 1.5; }
|
|
444
|
-
pre code { padding: 0; background: none; }
|
|
445
|
-
img, svg, video, canvas { max-width: 100%; }
|
|
446
|
-
img, video { height: auto; }
|
|
447
|
-
|
|
448
|
-
/* Tables: hairline rows, quiet headers, numbers aligned. Wide ones scroll in their box. */
|
|
449
|
-
table { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
|
|
450
|
-
:is(th, td) { padding: 10px 12px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
|
|
451
|
-
th { font-size: 12px; font-weight: 600; letter-spacing: 0.02em; color: var(--muted-foreground); white-space: nowrap; }
|
|
452
|
-
:is(th, td):first-child { padding-left: 0; }
|
|
453
|
-
:is(th, td):last-child { padding-right: 0; }
|
|
454
|
-
:is(th, td).num, :is(th, td)[data-numeric] { text-align: right; white-space: nowrap; }
|
|
455
|
-
.table-scroll { overflow-x: auto; }
|
|
456
|
-
|
|
457
|
-
/* Forms and buttons, drawn like the app's. */
|
|
458
|
-
label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 550; }
|
|
459
|
-
:is(input:not([type="checkbox"], [type="radio"], [type="range"], [type="color"]), select, textarea) {
|
|
460
|
-
width: 100%;
|
|
461
|
-
min-height: 36px;
|
|
462
|
-
padding: 7px 10px;
|
|
463
|
-
border: 1px solid var(--border);
|
|
464
|
-
border-radius: calc(var(--radius) - 2px);
|
|
465
|
-
background: var(--card);
|
|
466
|
-
color: var(--foreground);
|
|
467
|
-
font: inherit;
|
|
468
|
-
font-size: 14px;
|
|
469
|
-
line-height: 1.4;
|
|
470
|
-
box-shadow: 0 1px 1px rgb(0 0 0 / 0.03);
|
|
471
|
-
transition: border-color 0.12s, box-shadow 0.12s;
|
|
472
|
-
}
|
|
473
|
-
:is(input, select, textarea):focus-visible {
|
|
474
|
-
outline: none;
|
|
475
|
-
border-color: color-mix(in oklab, var(--foreground) 45%, var(--border));
|
|
476
|
-
box-shadow: 0 0 0 3px color-mix(in oklab, var(--foreground) 12%, transparent);
|
|
477
|
-
}
|
|
478
|
-
input[type="range"], input[type="checkbox"], input[type="radio"] { accent-color: var(--primary); }
|
|
479
|
-
textarea { min-height: 88px; resize: vertical; }
|
|
480
|
-
button, .button {
|
|
481
|
-
display: inline-flex;
|
|
482
|
-
align-items: center;
|
|
483
|
-
justify-content: center;
|
|
484
|
-
gap: 6px;
|
|
485
|
-
min-height: 36px;
|
|
486
|
-
padding: 0 14px;
|
|
487
|
-
border: 1px solid transparent;
|
|
488
|
-
border-radius: calc(var(--radius) - 2px);
|
|
489
|
-
background: var(--primary);
|
|
490
|
-
color: var(--primary-foreground);
|
|
491
|
-
font: inherit;
|
|
492
|
-
font-size: 14px;
|
|
493
|
-
font-weight: 550;
|
|
494
|
-
text-decoration: none;
|
|
495
|
-
cursor: pointer;
|
|
496
|
-
transition: background-color 0.12s, border-color 0.12s, opacity 0.12s;
|
|
497
|
-
}
|
|
498
|
-
:is(button, .button):hover { background: color-mix(in oklab, var(--primary) 88%, var(--background)); }
|
|
499
|
-
:is(button, .button):focus-visible { outline: 2px solid var(--ring, var(--foreground)); outline-offset: 2px; }
|
|
500
|
-
:is(button, .button):disabled { opacity: 0.5; cursor: default; }
|
|
501
|
-
:is(button, .button).secondary { border-color: var(--border); background: var(--card); color: var(--foreground); }
|
|
502
|
-
:is(button, .button).secondary:hover { background: var(--muted); }
|
|
503
|
-
:is(button, .button).ghost { background: transparent; color: var(--foreground); }
|
|
504
|
-
:is(button, .button).ghost:hover { background: var(--muted); }
|
|
505
|
-
fieldset { margin: 0 0 16px; padding: 0; border: 0; }
|
|
506
|
-
.field { margin-bottom: 16px; }
|
|
507
|
-
|
|
508
|
-
/* Components. */
|
|
509
|
-
.card {
|
|
510
|
-
padding: 20px;
|
|
511
|
-
border: 1px solid var(--border);
|
|
512
|
-
border-radius: var(--radius);
|
|
513
|
-
background: var(--card);
|
|
514
|
-
color: var(--card-foreground);
|
|
515
|
-
box-shadow: 0 1px 2px rgb(0 0 0 / 0.04);
|
|
516
|
-
}
|
|
517
|
-
.card > :last-child { margin-bottom: 0; }
|
|
518
|
-
/* Cards stack with room between them; in a grid or a row, its gap spaces them. */
|
|
519
|
-
.card { margin-bottom: 16px; }
|
|
520
|
-
:is(.grid, .row) > .card { margin-bottom: 0; }
|
|
521
|
-
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 16px; margin-bottom: 24px; }
|
|
522
|
-
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
|
|
523
|
-
.stat .label { font-size: 13px; color: var(--muted-foreground); }
|
|
524
|
-
.stat .value { margin-top: 4px; font-size: 30px; line-height: 1.1; font-weight: 650; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
|
|
525
|
-
.stat .delta { margin-top: 6px; font-size: 13px; color: var(--muted-foreground); font-variant-numeric: tabular-nums; }
|
|
526
|
-
.tag {
|
|
527
|
-
display: inline-flex;
|
|
528
|
-
align-items: center;
|
|
529
|
-
gap: 6px;
|
|
530
|
-
padding: 2px 9px;
|
|
531
|
-
border-radius: 999px;
|
|
532
|
-
background: var(--muted);
|
|
533
|
-
font-size: 12px;
|
|
534
|
-
font-weight: 600;
|
|
535
|
-
line-height: 1.6;
|
|
536
|
-
white-space: nowrap;
|
|
537
|
-
}
|
|
538
|
-
.callout { margin: 0 0 1em; padding: 14px 16px; border-radius: var(--radius); background: var(--muted); }
|
|
539
|
-
.callout > :last-child { margin-bottom: 0; }
|
|
540
|
-
|
|
541
|
-
/*
|
|
542
|
-
* Another artifact on the page: the app draws it over this box, sized by the page's CSS like any
|
|
543
|
-
* block. Until it does, the box shows where it goes.
|
|
544
|
-
*/
|
|
545
|
-
sixb-embed {
|
|
546
|
-
display: block;
|
|
547
|
-
position: relative;
|
|
548
|
-
width: 100%;
|
|
549
|
-
aspect-ratio: 16 / 9;
|
|
550
|
-
margin-bottom: 1em;
|
|
551
|
-
border-radius: var(--radius);
|
|
552
|
-
background: var(--muted);
|
|
553
|
-
}
|
|
554
|
-
sixb-embed[title]::after {
|
|
555
|
-
content: attr(title);
|
|
556
|
-
position: absolute;
|
|
557
|
-
inset: auto 16px 12px;
|
|
558
|
-
font-size: 13px;
|
|
559
|
-
color: var(--muted-foreground);
|
|
560
|
-
}
|
|
561
|
-
img[data-sixb-ref="unavailable"] { display: block; min-width: 120px; min-height: 68px; border-radius: var(--radius); background: var(--muted); }
|
|
562
|
-
`);
|
|
563
|
-
|
|
564
|
-
// src/artifacts/frames/runtime.ts
|
|
565
|
-
function frameRuntime() {
|
|
566
|
-
const PROTOCOL = "sixb-frame/1";
|
|
567
|
-
const WIDTH = 1280;
|
|
568
|
-
const HEIGHT = 720;
|
|
569
|
-
const KEYS = [
|
|
570
|
-
"ArrowLeft",
|
|
571
|
-
"ArrowRight",
|
|
572
|
-
"ArrowUp",
|
|
573
|
-
"ArrowDown",
|
|
574
|
-
"PageUp",
|
|
575
|
-
"PageDown",
|
|
576
|
-
"Home",
|
|
577
|
-
"End",
|
|
578
|
-
" ",
|
|
579
|
-
"Escape"
|
|
580
|
-
];
|
|
581
|
-
const MAX_KEY_LENGTH = 128;
|
|
582
|
-
const MAX_VALUE_BYTES = 65536;
|
|
583
|
-
const QUERY_NAME = /^[a-z0-9][a-z0-9-]{0,63}$/;
|
|
584
|
-
const root = document.documentElement;
|
|
585
|
-
const script = document.currentScript;
|
|
586
|
-
const deck = script?.getAttribute("data-sixb-layout") !== "page";
|
|
587
|
-
const start = new URLSearchParams(window.location.hash.slice(1));
|
|
588
|
-
if (deck) {
|
|
589
|
-
root.classList.add("sixb-deck");
|
|
590
|
-
root.dataset.mode = start.has("sixb-fill") ? "fill" : "slide";
|
|
591
|
-
}
|
|
592
|
-
let current = Number(start.get("sixb-slide")) || 1;
|
|
593
|
-
const slides = () => Array.from(document.querySelectorAll("section.slide"));
|
|
594
|
-
const post = (message) => window.parent.postMessage({ protocol: PROTOCOL, ...message }, "*");
|
|
595
|
-
const webAddress = (href) => {
|
|
596
|
-
try {
|
|
597
|
-
const url = new URL(href, document.baseURI);
|
|
598
|
-
return url.protocol === "http:" || url.protocol === "https:" ? url.href : null;
|
|
599
|
-
} catch {
|
|
600
|
-
return null;
|
|
601
|
-
}
|
|
602
|
-
};
|
|
603
|
-
const fit = () => {
|
|
604
|
-
const columns = window.innerWidth < 720 ? 2 : window.innerWidth < 1100 ? 3 : 4;
|
|
605
|
-
const gap = 16;
|
|
606
|
-
const margin = root.dataset.mode === "fill" || root.dataset.mode === "present" ? 0 : Math.min(32, window.innerWidth * 0.04);
|
|
607
|
-
root.style.setProperty("--sixb-scale", String(Math.min((window.innerWidth - margin * 2) / WIDTH, (window.innerHeight - margin * 2) / HEIGHT)));
|
|
608
|
-
root.style.setProperty("--sixb-columns", String(columns));
|
|
609
|
-
root.style.setProperty("--sixb-overview-scale", String((window.innerWidth - gap * (columns + 1)) / columns / WIDTH));
|
|
610
|
-
};
|
|
611
|
-
let reported = "";
|
|
612
|
-
let reporting = false;
|
|
613
|
-
const ids = new WeakMap;
|
|
614
|
-
let lastId = 0;
|
|
615
|
-
const idOf = (element) => {
|
|
616
|
-
const known = ids.get(element);
|
|
617
|
-
if (known !== undefined)
|
|
618
|
-
return known;
|
|
619
|
-
lastId += 1;
|
|
620
|
-
ids.set(element, lastId);
|
|
621
|
-
return lastId;
|
|
622
|
-
};
|
|
623
|
-
const reportEmbeds = () => {
|
|
624
|
-
if (reporting || root.dataset.mode === "fill")
|
|
625
|
-
return;
|
|
626
|
-
reporting = true;
|
|
627
|
-
requestAnimationFrame(() => {
|
|
628
|
-
reporting = false;
|
|
629
|
-
const scale = deck ? Number(root.style.getPropertyValue("--sixb-scale")) || 1 : 1;
|
|
630
|
-
const scope = deck ? root.dataset.mode === "overview" ? undefined : slides()[current - 1] : document;
|
|
631
|
-
const near = (rect) => deck || rect.bottom > -window.innerHeight && rect.top < window.innerHeight * 2;
|
|
632
|
-
const embeds = Array.from(scope?.querySelectorAll("sixb-embed[src]") ?? []).flatMap((element) => {
|
|
633
|
-
const id = idOf(element);
|
|
634
|
-
const rect = element.getBoundingClientRect();
|
|
635
|
-
return near(rect) ? [
|
|
636
|
-
{
|
|
637
|
-
id,
|
|
638
|
-
address: (element.getAttribute("src") ?? "").trim(),
|
|
639
|
-
rect: { x: rect.left, y: rect.top, width: rect.width, height: rect.height },
|
|
640
|
-
scale
|
|
641
|
-
}
|
|
642
|
-
] : [];
|
|
643
|
-
});
|
|
644
|
-
const next = JSON.stringify(embeds);
|
|
645
|
-
if (next === reported)
|
|
646
|
-
return;
|
|
647
|
-
reported = next;
|
|
648
|
-
post({ event: "embeds", params: { embeds } });
|
|
649
|
-
});
|
|
650
|
-
};
|
|
651
|
-
let height = -1;
|
|
652
|
-
const reportSize = () => {
|
|
653
|
-
const body = document.body;
|
|
654
|
-
if (deck || !body)
|
|
655
|
-
return;
|
|
656
|
-
const style = getComputedStyle(body);
|
|
657
|
-
const next = Math.ceil(Math.max(body.scrollHeight, body.getBoundingClientRect().height) + (Number.parseFloat(style.marginTop) || 0) + (Number.parseFloat(style.marginBottom) || 0));
|
|
658
|
-
if (next === height)
|
|
659
|
-
return;
|
|
660
|
-
height = next;
|
|
661
|
-
post({ event: "size", params: { height } });
|
|
662
|
-
};
|
|
663
|
-
const show = (slide) => {
|
|
664
|
-
const all = slides();
|
|
665
|
-
current = Math.min(Math.max(1, Math.round(slide) || 1), Math.max(1, all.length));
|
|
666
|
-
all.forEach((element, index) => {
|
|
667
|
-
element.toggleAttribute("data-current", index + 1 === current);
|
|
668
|
-
});
|
|
669
|
-
if (root.dataset.mode === "overview") {
|
|
670
|
-
all[current - 1]?.scrollIntoView({ block: "nearest" });
|
|
671
|
-
}
|
|
672
|
-
reportEmbeds();
|
|
673
|
-
};
|
|
674
|
-
const handle = (method, params) => {
|
|
675
|
-
switch (method) {
|
|
676
|
-
case "theme": {
|
|
677
|
-
const tokens = params.tokens ?? {};
|
|
678
|
-
const declarations = Object.entries(tokens).filter(([name, value]) => /^--[a-z0-9-]+$/.test(name) && typeof value === "string" && !/[;{}<]/.test(value)).map(([name, value]) => `${name}: ${value};`);
|
|
679
|
-
for (const [stage, token] of [
|
|
680
|
-
["--sixb-stage", "--muted"],
|
|
681
|
-
["--sixb-stage-border", "--border"],
|
|
682
|
-
["--sixb-stage-foreground", "--foreground"]
|
|
683
|
-
]) {
|
|
684
|
-
const value = declarations.find((declaration) => declaration.startsWith(`${token}:`));
|
|
685
|
-
if (value)
|
|
686
|
-
declarations.push(`${stage}${value.slice(token.length)}`);
|
|
687
|
-
}
|
|
688
|
-
let style = document.getElementById("sixb-theme");
|
|
689
|
-
if (!style) {
|
|
690
|
-
style = document.createElement("style");
|
|
691
|
-
style.id = "sixb-theme";
|
|
692
|
-
document.head.append(style);
|
|
693
|
-
}
|
|
694
|
-
style.textContent = `@layer sixb-theme { :root { ${declarations.join(" ")} color-scheme: ${params.dark === true ? "dark" : "light"}; } }`;
|
|
695
|
-
root.classList.toggle("dark", params.dark === true);
|
|
696
|
-
window.dispatchEvent(new CustomEvent("sixb:theme", { detail: { dark: params.dark === true } }));
|
|
697
|
-
return;
|
|
698
|
-
}
|
|
699
|
-
case "goto":
|
|
700
|
-
if (!deck)
|
|
701
|
-
throw new Error("Only a deck has slides.");
|
|
702
|
-
show(Number(params.slide));
|
|
703
|
-
return;
|
|
704
|
-
case "reload":
|
|
705
|
-
setTimeout(() => window.location.reload());
|
|
706
|
-
return;
|
|
707
|
-
case "query.changed": {
|
|
708
|
-
const name = String(params.name);
|
|
709
|
-
if (!QUERY_NAME.test(name))
|
|
710
|
-
throw new Error(`Unknown query '${name}'.`);
|
|
711
|
-
window.dispatchEvent(new CustomEvent("sixb:query", { detail: { name } }));
|
|
712
|
-
return;
|
|
713
|
-
}
|
|
714
|
-
case "scroll":
|
|
715
|
-
if (deck)
|
|
716
|
-
throw new Error("Only a page scrolls.");
|
|
717
|
-
window.scrollBy({ left: Number(params.x) || 0, top: Number(params.y) || 0 });
|
|
718
|
-
return;
|
|
719
|
-
case "mode":
|
|
720
|
-
if (!deck)
|
|
721
|
-
throw new Error("Only a deck has modes.");
|
|
722
|
-
if (root.dataset.mode === "fill")
|
|
723
|
-
return;
|
|
724
|
-
root.dataset.mode = params.mode === "overview" || params.mode === "present" ? params.mode : "slide";
|
|
725
|
-
fit();
|
|
726
|
-
show(current);
|
|
727
|
-
return;
|
|
728
|
-
default:
|
|
729
|
-
throw new Error(`Unknown method '${method}'.`);
|
|
730
|
-
}
|
|
731
|
-
};
|
|
732
|
-
const calls = new Map;
|
|
733
|
-
let called = 0;
|
|
734
|
-
const alone = window.parent === window;
|
|
735
|
-
const memory = new Map;
|
|
736
|
-
const call = (method, params) => {
|
|
737
|
-
if (alone) {
|
|
738
|
-
const key = String(params.key);
|
|
739
|
-
const kept = memory.get(key);
|
|
740
|
-
switch (method) {
|
|
741
|
-
case "state.get":
|
|
742
|
-
return Promise.resolve(kept === undefined ? undefined : JSON.parse(kept));
|
|
743
|
-
case "state.set":
|
|
744
|
-
memory.set(key, JSON.stringify(params.value));
|
|
745
|
-
return Promise.resolve(undefined);
|
|
746
|
-
case "state.delete":
|
|
747
|
-
return Promise.resolve(memory.delete(key));
|
|
748
|
-
default:
|
|
749
|
-
return Promise.resolve([...memory.keys()].sort());
|
|
750
|
-
}
|
|
751
|
-
}
|
|
752
|
-
called += 1;
|
|
753
|
-
const id = called;
|
|
754
|
-
return new Promise((resolve, reject) => {
|
|
755
|
-
calls.set(id, { resolve, reject });
|
|
756
|
-
post({ call: id, method, params });
|
|
757
|
-
});
|
|
758
|
-
};
|
|
759
|
-
const checkKey = (key) => {
|
|
760
|
-
if (typeof key !== "string" || key.length === 0 || key.length > MAX_KEY_LENGTH || key === "." || key === "..") {
|
|
761
|
-
throw new TypeError(`sixb.state: a key is text of 1 to ${MAX_KEY_LENGTH} characters.`);
|
|
762
|
-
}
|
|
763
|
-
return key;
|
|
764
|
-
};
|
|
765
|
-
const state = {
|
|
766
|
-
get: (key) => Promise.resolve().then(() => call("state.get", { key: checkKey(key) })),
|
|
767
|
-
set: (key, value) => Promise.resolve().then(() => {
|
|
768
|
-
const json = JSON.stringify(value);
|
|
769
|
-
if (json === undefined) {
|
|
770
|
-
throw new TypeError("sixb.state: a value is JSON: text, a number, true or false, null, a list, or an object.");
|
|
771
|
-
}
|
|
772
|
-
if (new TextEncoder().encode(json).byteLength > MAX_VALUE_BYTES) {
|
|
773
|
-
throw new RangeError(`sixb.state: a value is at most ${MAX_VALUE_BYTES / 1024} KB as JSON.`);
|
|
774
|
-
}
|
|
775
|
-
return call("state.set", { key: checkKey(key), value: JSON.parse(json) }).then(() => {});
|
|
776
|
-
}),
|
|
777
|
-
delete: (key) => Promise.resolve().then(() => call("state.delete", { key: checkKey(key) })),
|
|
778
|
-
keys: () => call("state.keys", {})
|
|
779
|
-
};
|
|
780
|
-
const readQueryFile = async (name) => {
|
|
781
|
-
const base = script?.src || new URL("__sixb/runtime.js", window.location.href).href;
|
|
782
|
-
const response = await fetch(new URL(`queries/${name}.json`, base));
|
|
783
|
-
if (response.ok)
|
|
784
|
-
return response.json();
|
|
785
|
-
if (response.status === 404) {
|
|
786
|
-
throw new Error(`[Sixb] No query '${name}' in this page's version.`);
|
|
787
|
-
}
|
|
788
|
-
const body = await response.json().catch(() => null);
|
|
789
|
-
throw new Error(typeof body?.error === "string" ? body.error : `[Sixb] Query '${name}' could not be read.`);
|
|
790
|
-
};
|
|
791
|
-
const query = (name) => Promise.resolve().then(() => {
|
|
792
|
-
if (typeof name !== "string" || !QUERY_NAME.test(name)) {
|
|
793
|
-
throw new TypeError("sixb.query: a query's name is that of its file, queries/<name>.json: lowercase letters, digits and hyphens.");
|
|
794
|
-
}
|
|
795
|
-
return alone ? readQueryFile(name) : call("query.run", { name });
|
|
796
|
-
});
|
|
797
|
-
Object.defineProperty(window, "sixb", {
|
|
798
|
-
value: Object.freeze({ state: Object.freeze(state), query }),
|
|
799
|
-
enumerable: true
|
|
800
|
-
});
|
|
801
|
-
window.addEventListener("message", (event) => {
|
|
802
|
-
if (event.source !== window.parent)
|
|
803
|
-
return;
|
|
804
|
-
const data = event.data;
|
|
805
|
-
if (data && data.protocol === PROTOCOL && typeof data.result === "number") {
|
|
806
|
-
const pending = calls.get(data.result);
|
|
807
|
-
calls.delete(data.result);
|
|
808
|
-
if (typeof data.error === "string")
|
|
809
|
-
pending?.reject(new Error(data.error));
|
|
810
|
-
else
|
|
811
|
-
pending?.resolve(data.value);
|
|
812
|
-
return;
|
|
813
|
-
}
|
|
814
|
-
if (!data || data.protocol !== PROTOCOL || typeof data.id !== "number")
|
|
815
|
-
return;
|
|
816
|
-
if (typeof data.method !== "string")
|
|
817
|
-
return;
|
|
818
|
-
try {
|
|
819
|
-
handle(String(data.method), data.params ?? {});
|
|
820
|
-
post({ id: data.id });
|
|
821
|
-
} catch (error) {
|
|
822
|
-
post({ id: data.id, error: error instanceof Error ? error.message : String(error) });
|
|
823
|
-
}
|
|
824
|
-
});
|
|
825
|
-
window.addEventListener("keydown", (event) => {
|
|
826
|
-
if (!deck || event.metaKey || event.ctrlKey || event.altKey)
|
|
827
|
-
return;
|
|
828
|
-
const target = event.target;
|
|
829
|
-
if (target?.closest("input, textarea, select, [contenteditable]"))
|
|
830
|
-
return;
|
|
831
|
-
if (!KEYS.includes(event.key))
|
|
832
|
-
return;
|
|
833
|
-
event.preventDefault();
|
|
834
|
-
post({ event: "key", params: { key: event.key } });
|
|
835
|
-
});
|
|
836
|
-
document.addEventListener("click", (event) => {
|
|
837
|
-
const target = event.target;
|
|
838
|
-
const link = target?.closest("a[href]");
|
|
839
|
-
if (link) {
|
|
840
|
-
const href = link.getAttribute("href") ?? "";
|
|
841
|
-
if (href.startsWith("#") || event.defaultPrevented)
|
|
842
|
-
return;
|
|
843
|
-
event.preventDefault();
|
|
844
|
-
if (/^artifact:/i.test(href.trim())) {
|
|
845
|
-
post({ event: "open", params: { address: href.trim() } });
|
|
846
|
-
return;
|
|
847
|
-
}
|
|
848
|
-
const url = webAddress(href);
|
|
849
|
-
if (url)
|
|
850
|
-
post({ event: "link", params: { url } });
|
|
851
|
-
return;
|
|
852
|
-
}
|
|
853
|
-
if (!deck || root.dataset.mode !== "overview")
|
|
854
|
-
return;
|
|
855
|
-
const slide = target?.closest("section.slide");
|
|
856
|
-
if (!slide)
|
|
857
|
-
return;
|
|
858
|
-
post({ event: "select", params: { slide: slides().indexOf(slide) + 1 } });
|
|
859
|
-
});
|
|
860
|
-
window.addEventListener("resize", () => {
|
|
861
|
-
if (deck)
|
|
862
|
-
fit();
|
|
863
|
-
reportEmbeds();
|
|
864
|
-
});
|
|
865
|
-
const ready = () => {
|
|
866
|
-
if (!deck) {
|
|
867
|
-
post({ event: "ready", params: {} });
|
|
868
|
-
window.addEventListener("scroll", reportEmbeds, { passive: true });
|
|
869
|
-
const resized = new ResizeObserver(() => {
|
|
870
|
-
reportSize();
|
|
871
|
-
reportEmbeds();
|
|
872
|
-
});
|
|
873
|
-
resized.observe(document.documentElement);
|
|
874
|
-
if (document.body)
|
|
875
|
-
resized.observe(document.body);
|
|
876
|
-
window.addEventListener("load", () => {
|
|
877
|
-
reportSize();
|
|
878
|
-
reportEmbeds();
|
|
879
|
-
});
|
|
880
|
-
reportSize();
|
|
881
|
-
reportEmbeds();
|
|
882
|
-
return;
|
|
883
|
-
}
|
|
884
|
-
slides().forEach((element, index) => {
|
|
885
|
-
element.dataset.number = String(index + 1);
|
|
886
|
-
});
|
|
887
|
-
fit();
|
|
888
|
-
show(current);
|
|
889
|
-
post({ event: "ready", params: { slides: slides().length } });
|
|
890
|
-
const resized = new ResizeObserver(reportEmbeds);
|
|
891
|
-
for (const element of Array.from(document.querySelectorAll("section.slide > *, sixb-embed"))) {
|
|
892
|
-
resized.observe(element);
|
|
893
|
-
}
|
|
894
|
-
window.addEventListener("load", reportEmbeds);
|
|
895
|
-
document.fonts?.ready.then(reportEmbeds);
|
|
896
|
-
};
|
|
897
|
-
if (document.readyState === "loading")
|
|
898
|
-
document.addEventListener("DOMContentLoaded", ready);
|
|
899
|
-
else
|
|
900
|
-
ready();
|
|
901
|
-
}
|
|
902
|
-
|
|
903
|
-
// src/artifacts/frames/assets.ts
|
|
904
|
-
var FRAME_ASSETS = {
|
|
905
|
-
[`${FRAME_ASSET_PREFIX}deck.css`]: { body: FRAME_DECK_CSS, type: "text/css; charset=utf-8" },
|
|
906
|
-
[`${FRAME_ASSET_PREFIX}page.css`]: { body: FRAME_PAGE_CSS, type: "text/css; charset=utf-8" },
|
|
907
|
-
[`${FRAME_ASSET_PREFIX}runtime.js`]: {
|
|
908
|
-
body: `(${frameRuntime.toString()})()
|
|
909
|
-
`,
|
|
910
|
-
type: "text/javascript; charset=utf-8"
|
|
911
|
-
}
|
|
912
|
-
};
|
|
913
|
-
function injected(layout, base) {
|
|
914
|
-
return `<link rel="stylesheet" href="${base}${FRAME_ASSET_PREFIX}${layout}.css"><script src="${base}${FRAME_ASSET_PREFIX}runtime.js" data-sixb-layout="${layout}"></script>`;
|
|
915
|
-
}
|
|
916
|
-
function rootOf(entry) {
|
|
917
|
-
return "../".repeat(entry.split("/").length - 1);
|
|
918
|
-
}
|
|
919
|
-
function injectFrameAssets(html, layout, entry = "index.html") {
|
|
920
|
-
const assets = injected(layout, rootOf(entry));
|
|
921
|
-
for (const selector of ["head", "html"]) {
|
|
922
|
-
let injected = false;
|
|
923
|
-
const rewritten = new HTMLRewriter().on(selector, {
|
|
924
|
-
element(element) {
|
|
925
|
-
if (injected)
|
|
926
|
-
return;
|
|
927
|
-
injected = true;
|
|
928
|
-
element.prepend(assets, { html: true });
|
|
929
|
-
}
|
|
930
|
-
}).transform(html);
|
|
931
|
-
if (injected)
|
|
932
|
-
return rewritten;
|
|
933
|
-
}
|
|
934
|
-
const doctype = /^\s*<!doctype[^>]*>/i.exec(html)?.[0] ?? "";
|
|
935
|
-
return `${doctype}${assets}${html.slice(doctype.length)}`;
|
|
936
|
-
}
|
|
937
|
-
var FRAME_REFERENCE_PREFIX = `${FRAME_ASSET_PREFIX}ref/`;
|
|
938
|
-
function frameReferencePath(target, entry) {
|
|
939
|
-
const file = parseArtifactAddress2(target.address)?.path;
|
|
940
|
-
if (!file)
|
|
941
|
-
return null;
|
|
942
|
-
const path = file.split("/").map(encodeURIComponent).join("/");
|
|
943
|
-
return `${rootOf(entry)}${FRAME_REFERENCE_PREFIX}${target.artifactId}@${target.version}/${path}`;
|
|
944
|
-
}
|
|
945
|
-
function rewriteFrameReferences(html, targets, entry = "index.html") {
|
|
946
|
-
return new HTMLRewriter().on("img[src]", {
|
|
947
|
-
element(element) {
|
|
948
|
-
const source = decodeHtmlEntities(element.getAttribute("src") ?? "").trim();
|
|
949
|
-
if (!isArtifactAddress2(source))
|
|
950
|
-
return;
|
|
951
|
-
const target = targets.find((candidate) => candidate.address === source);
|
|
952
|
-
const path = target ? frameReferencePath(target, entry) : null;
|
|
953
|
-
if (path) {
|
|
954
|
-
element.setAttribute("src", path);
|
|
955
|
-
element.setAttribute("data-sixb-ref", "");
|
|
956
|
-
} else {
|
|
957
|
-
element.removeAttribute("src");
|
|
958
|
-
element.setAttribute("data-sixb-ref", "unavailable");
|
|
959
|
-
}
|
|
960
|
-
}
|
|
961
|
-
}).transform(html);
|
|
962
|
-
}
|
|
963
22
|
// src/artifacts/frames/entries.ts
|
|
964
23
|
var FRAME_LAYOUTS = {
|
|
965
24
|
slides: "deck",
|
|
@@ -993,6 +52,7 @@ async function createArtifactFrame(input) {
|
|
|
993
52
|
tokenHash: hashToken(token),
|
|
994
53
|
artifactId: version.artifactId,
|
|
995
54
|
version: version.version,
|
|
55
|
+
filesDigest: frameFilesDigest(version),
|
|
996
56
|
targets: input.read ? await frameTargets(version, input.read) : [],
|
|
997
57
|
createdAt,
|
|
998
58
|
expiresAt
|
|
@@ -1014,7 +74,7 @@ async function frameTargets(version, read) {
|
|
|
1014
74
|
targets.push({
|
|
1015
75
|
address: reference.address,
|
|
1016
76
|
artifactId: target.artifactId,
|
|
1017
|
-
version:
|
|
77
|
+
version: address.version ?? "latest"
|
|
1018
78
|
});
|
|
1019
79
|
}
|
|
1020
80
|
return targets;
|
|
@@ -1033,7 +93,13 @@ async function resolveArtifactFrame(input) {
|
|
|
1033
93
|
artifactId: grant.artifactId,
|
|
1034
94
|
version: grant.version
|
|
1035
95
|
});
|
|
1036
|
-
|
|
96
|
+
if (!version || frameFilesDigest(version) !== grant.filesDigest)
|
|
97
|
+
return null;
|
|
98
|
+
return frameLayout(version.outline.kind) ? { version, targets: grant.targets } : null;
|
|
99
|
+
}
|
|
100
|
+
function frameFilesDigest(version) {
|
|
101
|
+
const served = version.files.filter((entry) => version.outline.kind !== "canvas" || entry.path !== CANVAS_FILE2).map((entry) => [entry.path, entry.file.digest]).sort(([left], [right]) => left < right ? -1 : left > right ? 1 : 0);
|
|
102
|
+
return createHash("sha256").update(JSON.stringify(served)).digest("hex");
|
|
1037
103
|
}
|
|
1038
104
|
function hashToken(token) {
|
|
1039
105
|
return createHash("sha256").update(token).digest("hex");
|
|
@@ -1271,18 +337,20 @@ function layoutProbe(scope) {
|
|
|
1271
337
|
}
|
|
1272
338
|
export {
|
|
1273
339
|
ARTIFACT_FRAME_ROUTE_PREFIX,
|
|
1274
|
-
FRAME_ASSETS,
|
|
1275
|
-
|
|
1276
|
-
|
|
340
|
+
FRAME_ASSETS2 as FRAME_ASSETS,
|
|
341
|
+
FRAME_CDN_ALLOWLIST2 as FRAME_CDN_ALLOWLIST,
|
|
342
|
+
FRAME_DEFAULT_THEMES2 as FRAME_DEFAULT_THEMES,
|
|
343
|
+
FRAME_REFERENCE_PATH2 as FRAME_REFERENCE_PATH,
|
|
344
|
+
FRAME_REFERENCE_PREFIX2 as FRAME_REFERENCE_PREFIX,
|
|
1277
345
|
HTML_ENTRY2 as HTML_ENTRY,
|
|
1278
346
|
createArtifactFrame,
|
|
1279
347
|
frameEntries,
|
|
1280
348
|
frameLayout,
|
|
1281
|
-
injectFrameAssets,
|
|
349
|
+
injectFrameAssets2 as injectFrameAssets,
|
|
1282
350
|
layoutProbe,
|
|
1283
351
|
resolveArtifactFrame,
|
|
1284
|
-
rewriteFrameReferences,
|
|
1285
|
-
serializeArtifactQueryResult
|
|
352
|
+
rewriteFrameReferences2 as rewriteFrameReferences,
|
|
353
|
+
serializeArtifactQueryResult2 as serializeArtifactQueryResult
|
|
1286
354
|
};
|
|
1287
355
|
|
|
1288
|
-
//# debugId=
|
|
356
|
+
//# debugId=27233186053A451964756E2164756E21
|