@sixb/core 0.2.3 → 0.2.5
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 +28 -28
- package/dist/agents/cancel.d.ts +1 -1
- package/dist/agents/cancel.d.ts.map +1 -1
- package/dist/agents/child-question.d.ts +35 -2
- package/dist/agents/child-question.d.ts.map +1 -1
- package/dist/agents/execution.d.ts +35 -3
- package/dist/agents/execution.d.ts.map +1 -1
- package/dist/agents/ids.d.ts +4 -0
- package/dist/agents/ids.d.ts.map +1 -1
- package/dist/agents/index.d.ts +9 -7
- package/dist/agents/index.d.ts.map +1 -1
- package/dist/agents/index.js +59 -33
- package/dist/agents/index.js.map +1 -1
- package/dist/agents/model-loop.d.ts.map +1 -1
- package/dist/agents/queued-turn.d.ts +16 -0
- package/dist/agents/queued-turn.d.ts.map +1 -0
- package/dist/agents/request.d.ts +79 -1
- package/dist/agents/request.d.ts.map +1 -1
- package/dist/agents/run-after-finish.d.ts +10 -0
- package/dist/agents/run-after-finish.d.ts.map +1 -1
- package/dist/agents/run-artifacts.d.ts +0 -38
- package/dist/agents/run-artifacts.d.ts.map +1 -1
- package/dist/agents/run-events.d.ts +6 -1
- package/dist/agents/run-events.d.ts.map +1 -1
- package/dist/agents/run-session-children.d.ts +9 -0
- package/dist/agents/run-session-children.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 +14 -1
- package/dist/agents/run-session.d.ts.map +1 -1
- package/dist/agents/run-turn.d.ts.map +1 -1
- package/dist/agents/streams/index.d.ts +1 -1
- package/dist/agents/streams/index.d.ts.map +1 -1
- package/dist/agents/streams/index.js +1 -1
- package/dist/agents/streams/internal.js +1 -1
- package/dist/agents/streams/protocol.d.ts +16 -0
- package/dist/agents/streams/protocol.d.ts.map +1 -1
- package/dist/agents/tool-files.d.ts +1 -1
- package/dist/agents/tool-files.d.ts.map +1 -1
- package/dist/agents/tool-input-coercion.d.ts +20 -0
- package/dist/agents/tool-input-coercion.d.ts.map +1 -0
- package/dist/agents/turn-answered.d.ts +7 -0
- package/dist/agents/turn-answered.d.ts.map +1 -0
- package/dist/agents/validation.d.ts +1 -1
- package/dist/agents/validation.d.ts.map +1 -1
- package/dist/artifacts/canvas-display.d.ts +3 -5
- package/dist/artifacts/canvas-display.d.ts.map +1 -1
- package/dist/artifacts/comments.d.ts +14 -3
- package/dist/artifacts/comments.d.ts.map +1 -1
- package/dist/artifacts/document-fill.d.ts +18 -0
- package/dist/artifacts/document-fill.d.ts.map +1 -0
- package/dist/artifacts/errors.d.ts +1 -1
- package/dist/artifacts/errors.d.ts.map +1 -1
- package/dist/artifacts/events.d.ts +3 -2
- package/dist/artifacts/events.d.ts.map +1 -1
- package/dist/artifacts/execution.d.ts +40 -4
- package/dist/artifacts/execution.d.ts.map +1 -1
- package/dist/artifacts/frames/assets.d.ts +8 -1
- package/dist/artifacts/frames/assets.d.ts.map +1 -1
- package/dist/artifacts/frames/document-data.d.ts +98 -0
- package/dist/artifacts/frames/document-data.d.ts.map +1 -0
- package/dist/artifacts/frames/entries.d.ts +12 -7
- package/dist/artifacts/frames/entries.d.ts.map +1 -1
- package/dist/artifacts/frames/index.d.ts +2 -1
- package/dist/artifacts/frames/index.d.ts.map +1 -1
- package/dist/artifacts/frames/index.js +22 -13
- package/dist/artifacts/frames/index.js.map +4 -4
- package/dist/artifacts/frames/kit.d.ts +15 -0
- package/dist/artifacts/frames/kit.d.ts.map +1 -1
- package/dist/artifacts/frames/protocol.d.ts +65 -3
- package/dist/artifacts/frames/protocol.d.ts.map +1 -1
- package/dist/artifacts/frames/runtime.d.ts +32 -5
- package/dist/artifacts/frames/runtime.d.ts.map +1 -1
- package/dist/artifacts/index.d.ts +4 -2
- package/dist/artifacts/index.d.ts.map +1 -1
- package/dist/artifacts/index.js +35 -3
- package/dist/artifacts/index.js.map +3 -3
- package/dist/artifacts/live/blocks.d.ts +62 -0
- package/dist/artifacts/live/blocks.d.ts.map +1 -0
- package/dist/artifacts/live/board.d.ts +6 -0
- package/dist/artifacts/live/board.d.ts.map +1 -1
- package/dist/artifacts/live/document.d.ts +12 -0
- package/dist/artifacts/live/document.d.ts.map +1 -1
- package/dist/artifacts/live/index.d.ts +2 -0
- package/dist/artifacts/live/index.d.ts.map +1 -1
- package/dist/artifacts/live/index.js +148 -44
- package/dist/artifacts/live/index.js.map +3 -3
- package/dist/artifacts/live/page.d.ts +49 -0
- package/dist/artifacts/live/page.d.ts.map +1 -0
- package/dist/artifacts/live/protocol.d.ts +5 -0
- package/dist/artifacts/live/protocol.d.ts.map +1 -1
- package/dist/artifacts/live/server.d.ts +2 -2
- package/dist/artifacts/live/server.d.ts.map +1 -1
- package/dist/artifacts/live/server.js +23 -19
- package/dist/artifacts/live/server.js.map +1 -1
- package/dist/artifacts/live/state.d.ts +4 -1
- package/dist/artifacts/live/state.d.ts.map +1 -1
- package/dist/artifacts/outline.d.ts +16 -0
- package/dist/artifacts/outline.d.ts.map +1 -1
- package/dist/artifacts/paper.d.ts +22 -0
- package/dist/artifacts/paper.d.ts.map +1 -0
- package/dist/artifacts/pdf-job.d.ts +9 -0
- package/dist/artifacts/pdf-job.d.ts.map +1 -0
- package/dist/artifacts/publish/fields.d.ts +25 -0
- package/dist/artifacts/publish/fields.d.ts.map +1 -0
- package/dist/artifacts/publish/index.d.ts +2 -1
- package/dist/artifacts/publish/index.d.ts.map +1 -1
- package/dist/artifacts/publish/index.js +26 -18
- package/dist/artifacts/publish/index.js.map +1 -1
- package/dist/artifacts/publish/merge.d.ts +5 -5
- package/dist/artifacts/publish/merge.d.ts.map +1 -1
- package/dist/artifacts/publish/pdf.d.ts +28 -0
- package/dist/artifacts/publish/pdf.d.ts.map +1 -0
- package/dist/artifacts/publish/previews.d.ts +12 -20
- package/dist/artifacts/publish/previews.d.ts.map +1 -1
- package/dist/artifacts/publish/publish.d.ts.map +1 -1
- package/dist/artifacts/publish/queries.d.ts +6 -1
- package/dist/artifacts/publish/queries.d.ts.map +1 -1
- package/dist/artifacts/publish/query-answers.d.ts +5 -2
- package/dist/artifacts/publish/query-answers.d.ts.map +1 -1
- package/dist/artifacts/publish/validate/document-html.d.ts +24 -0
- package/dist/artifacts/publish/validate/document-html.d.ts.map +1 -0
- package/dist/artifacts/publish/validate/document.d.ts +5 -3
- package/dist/artifacts/publish/validate/document.d.ts.map +1 -1
- package/dist/artifacts/queries.d.ts +16 -2
- package/dist/artifacts/queries.d.ts.map +1 -1
- package/dist/auth/index.js +2 -2
- package/dist/authorization/event-visibility.d.ts.map +1 -1
- package/dist/authorization/index.js +1 -1
- package/dist/blob-storage/index.js +1 -1
- package/dist/bootstrap/index.js +38 -38
- package/dist/{chunk-tqa68kj7.js → chunk-0hkdtwqk.js} +5 -5
- package/dist/{chunk-s5n9617r.js → chunk-0mvjpgvm.js} +5 -5
- package/dist/{chunk-k66rp2hr.js → chunk-1yh6jgtz.js} +1 -1
- package/dist/{chunk-26qet7wh.js → chunk-5t9gm5tt.js} +4 -4
- package/dist/{chunk-a6fjkcne.js → chunk-60662fyv.js} +54 -28
- package/dist/{chunk-a6fjkcne.js.map → chunk-60662fyv.js.map} +7 -6
- package/dist/{chunk-e0hnbb1m.js → chunk-61zptves.js} +1 -1
- package/dist/{chunk-hkaa807g.js → chunk-68hm50qh.js} +3 -3
- package/dist/{chunk-9nsjjd44.js → chunk-8tv3qd65.js} +2 -1
- package/dist/chunk-8tv3qd65.js.map +12 -0
- package/dist/{chunk-fe6r7yhg.js → chunk-92wrka15.js} +1 -1
- package/dist/{chunk-m7b9q5dk.js → chunk-aw1z0gre.js} +4 -4
- package/dist/chunk-az95tsh3.js.map +2 -2
- package/dist/{chunk-4j0sagwv.js → chunk-b4escq4c.js} +62 -14
- package/dist/{chunk-4j0sagwv.js.map → chunk-b4escq4c.js.map} +7 -7
- package/dist/chunk-bqr703h4.js +1799 -0
- package/dist/chunk-bqr703h4.js.map +13 -0
- package/dist/{chunk-eptrvnby.js → chunk-c29729me.js} +42 -3
- package/dist/chunk-c29729me.js.map +12 -0
- package/dist/{chunk-t24yktqr.js → chunk-dvgc56n2.js} +20 -4
- package/dist/{chunk-t24yktqr.js.map → chunk-dvgc56n2.js.map} +5 -5
- package/dist/{chunk-3014rfjz.js → chunk-ewqn51gr.js} +25 -7
- package/dist/{chunk-3014rfjz.js.map → chunk-ewqn51gr.js.map} +3 -3
- package/dist/{chunk-7z5rkf0m.js → chunk-ey1p8w68.js} +175 -5
- package/dist/chunk-ey1p8w68.js.map +13 -0
- package/dist/{chunk-z0t4p2sk.js → chunk-fpf57gca.js} +350 -61
- package/dist/chunk-fpf57gca.js.map +47 -0
- package/dist/{chunk-kv0kvknv.js → chunk-fzae1jpq.js} +7 -7
- package/dist/{chunk-b9qfh2ya.js → chunk-fzbhybya.js} +29 -2
- package/dist/chunk-fzbhybya.js.map +11 -0
- package/dist/{chunk-2by73sm2.js → chunk-gjhrz66x.js} +225 -17
- package/dist/{chunk-2by73sm2.js.map → chunk-gjhrz66x.js.map} +5 -5
- package/dist/chunk-hn2r7z41.js.map +1 -1
- package/dist/{chunk-6gtxshcc.js → chunk-k29n4176.js} +6 -6
- package/dist/{chunk-48c1z8nj.js → chunk-k3jh8gsg.js} +10 -2
- package/dist/chunk-k3jh8gsg.js.map +10 -0
- package/dist/{chunk-w9s23r24.js → chunk-m3qx2pns.js} +751 -93
- package/dist/chunk-m3qx2pns.js.map +34 -0
- package/dist/{chunk-smnt672s.js → chunk-m9ketb51.js} +20 -4
- package/dist/chunk-m9ketb51.js.map +10 -0
- package/dist/chunk-mbwsgjn7.js +40 -0
- package/dist/chunk-mbwsgjn7.js.map +11 -0
- package/dist/{chunk-sysnvjce.js → chunk-naxjka9v.js} +2 -2
- package/dist/{chunk-n4zzaf6q.js → chunk-nxysqbt0.js} +4 -2
- package/dist/chunk-nxysqbt0.js.map +10 -0
- package/dist/{chunk-vzkxqf8h.js → chunk-paxabbqd.js} +49 -5
- package/dist/chunk-paxabbqd.js.map +23 -0
- package/dist/{chunk-8tqnsx3q.js → chunk-pc7kra3k.js} +5 -3
- package/dist/{chunk-8tqnsx3q.js.map → chunk-pc7kra3k.js.map} +3 -3
- package/dist/{chunk-qafng88v.js → chunk-pqvvqc65.js} +4 -4
- package/dist/chunk-pvpq483h.js.map +2 -2
- package/dist/{chunk-mzx71snp.js → chunk-q7g9cqwt.js} +7 -2
- package/dist/{chunk-mzx71snp.js.map → chunk-q7g9cqwt.js.map} +3 -3
- package/dist/{chunk-8t2ynwg0.js → chunk-q8d9p0tb.js} +24 -1
- package/dist/{chunk-8t2ynwg0.js.map → chunk-q8d9p0tb.js.map} +3 -3
- package/dist/{chunk-wa05txmk.js → chunk-qavwr628.js} +49 -5
- package/dist/chunk-qavwr628.js.map +12 -0
- package/dist/{chunk-bkmnd7zq.js → chunk-rg725hry.js} +174 -30
- package/dist/{chunk-bkmnd7zq.js.map → chunk-rg725hry.js.map} +9 -8
- package/dist/{chunk-8p7bze4c.js → chunk-s1mqyqmm.js} +3 -3
- package/dist/{chunk-p351afzm.js → chunk-s5pj68fa.js} +2 -2
- package/dist/{chunk-855w9nvw.js → chunk-vehcr9eb.js} +1 -1
- package/dist/{chunk-qds484t8.js → chunk-vs2s3p8n.js} +932 -21
- package/dist/chunk-vs2s3p8n.js.map +20 -0
- package/dist/chunk-vtjzwymr.js.map +2 -2
- package/dist/{chunk-n68vz95m.js → chunk-wqe9shx2.js} +1 -1
- package/dist/{chunk-0k3r5kb3.js → chunk-xcrnrpfh.js} +1 -1
- package/dist/{chunk-cwdzcv37.js → chunk-xrmbhap8.js} +2 -2
- package/dist/{chunk-cwdzcv37.js.map → chunk-xrmbhap8.js.map} +2 -2
- package/dist/{chunk-f6ahf5gf.js → chunk-xxfj0rr2.js} +20 -5
- package/dist/chunk-xxfj0rr2.js.map +13 -0
- package/dist/{chunk-3hzhcfsv.js → chunk-y8fwm3z2.js} +2 -2
- package/dist/{chunk-3hzhcfsv.js.map → chunk-y8fwm3z2.js.map} +3 -3
- package/dist/{chunk-e9w4mgdh.js → chunk-z1njfqqs.js} +589 -53
- package/dist/{chunk-e9w4mgdh.js.map → chunk-z1njfqqs.js.map} +14 -11
- package/dist/{chunk-yv8hv4wq.js → chunk-z4jqb44a.js} +3 -1
- package/dist/chunk-z4jqb44a.js.map +10 -0
- package/dist/{chunk-s7xqfxs9.js → chunk-zft9bzbc.js} +2 -1
- package/dist/{chunk-s7xqfxs9.js.map → chunk-zft9bzbc.js.map} +3 -3
- package/dist/{chunk-38yvdqzd.js → chunk-zxhym8tr.js} +1 -1
- package/dist/connectors/connection-handles.d.ts +9 -0
- package/dist/connectors/connection-handles.d.ts.map +1 -0
- package/dist/connectors/connections/authorizations.d.ts +9 -0
- package/dist/connectors/connections/authorizations.d.ts.map +1 -1
- package/dist/connectors/connections/events.d.ts +17 -0
- package/dist/connectors/connections/events.d.ts.map +1 -0
- package/dist/connectors/connections/runs.d.ts +3 -0
- package/dist/connectors/connections/runs.d.ts.map +1 -1
- package/dist/connectors/connections/service.d.ts +4 -0
- package/dist/connectors/connections/service.d.ts.map +1 -1
- package/dist/connectors/execution.d.ts +7 -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/types.d.ts +22 -1
- package/dist/connectors/types.d.ts.map +1 -1
- package/dist/datasets/write.js +1 -1
- package/dist/deploy/index.d.ts +1 -1
- package/dist/deploy/index.d.ts.map +1 -1
- package/dist/deploy/internal.js +3 -2
- package/dist/deploy/internal.js.map +3 -3
- package/dist/deploy/services.d.ts.map +1 -1
- package/dist/deploy/types.d.ts +18 -1
- package/dist/deploy/types.d.ts.map +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.map +1 -1
- package/dist/events/index.d.ts +2 -2
- package/dist/events/index.d.ts.map +1 -1
- package/dist/events/index.js +3 -3
- package/dist/events/outbox-dispatcher.d.ts +7 -0
- package/dist/events/outbox-dispatcher.d.ts.map +1 -1
- package/dist/events/scope.d.ts +1 -0
- package/dist/events/scope.d.ts.map +1 -1
- package/dist/events/scope.js +1 -1
- package/dist/events/selectors/builder.d.ts +9 -1
- package/dist/events/selectors/builder.d.ts.map +1 -1
- package/dist/events/selectors/index.d.ts +2 -2
- package/dist/events/selectors/index.d.ts.map +1 -1
- package/dist/events/selectors/index.js +2 -2
- package/dist/events/selectors/predicate.d.ts.map +1 -1
- package/dist/events/selectors/types.d.ts +18 -3
- package/dist/events/selectors/types.d.ts.map +1 -1
- package/dist/events/types/artifacts.d.ts +7 -1
- package/dist/events/types/artifacts.d.ts.map +1 -1
- package/dist/events/types/connectors.d.ts +32 -0
- package/dist/events/types/connectors.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/execution/agent.js +28 -28
- package/dist/execution/authorization.d.ts +5 -0
- package/dist/execution/authorization.d.ts.map +1 -1
- package/dist/execution/primitive.js +28 -28
- package/dist/execution/request.js +29 -29
- package/dist/execution/scopes.d.ts +8 -0
- package/dist/execution/scopes.d.ts.map +1 -1
- package/dist/execution/script.d.ts +7 -0
- package/dist/execution/script.d.ts.map +1 -0
- package/dist/execution/types.d.ts +16 -1
- package/dist/execution/types.d.ts.map +1 -1
- package/dist/http/api-routes.d.ts.map +1 -1
- package/dist/http/index.js +1 -1
- package/dist/index.d.ts +9 -8
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +46 -44
- package/dist/index.js.map +1 -1
- package/dist/lake-storage/index.js +1 -1
- package/dist/lineage/executors.d.ts +1 -1
- package/dist/lineage/executors.d.ts.map +1 -1
- package/dist/maintenance/index.js +1 -1
- package/dist/materialization/event-envelopes.d.ts +3 -3
- package/dist/materialization/event-envelopes.d.ts.map +1 -1
- package/dist/materialization/events.d.ts +6 -0
- package/dist/materialization/events.d.ts.map +1 -1
- package/dist/materialization/index.js +1 -1
- package/dist/materialization/model.d.ts +6 -0
- package/dist/materialization/model.d.ts.map +1 -1
- package/dist/materializer/index.js +13 -13
- package/dist/materializer/projections/replace.d.ts.map +1 -1
- package/dist/materializer/projections/replacement-plan.d.ts +2 -0
- package/dist/materializer/projections/replacement-plan.d.ts.map +1 -1
- package/dist/materializer/shared/normalize.d.ts +1 -0
- package/dist/materializer/shared/normalize.d.ts.map +1 -1
- package/dist/models/execution/index.js +12 -12
- package/dist/models/language-model.d.ts +6 -0
- package/dist/models/language-model.d.ts.map +1 -1
- package/dist/models/tools.d.ts +2 -0
- package/dist/models/tools.d.ts.map +1 -1
- package/dist/objects/index.js +28 -28
- package/dist/objects/query/index.js +12 -12
- package/dist/pipelines/index.js +18 -18
- package/dist/projections/builders.d.ts +7 -1
- package/dist/projections/builders.d.ts.map +1 -1
- package/dist/projections/index.d.ts +1 -1
- package/dist/projections/index.d.ts.map +1 -1
- package/dist/projections/internal.js +13 -13
- package/dist/projections/types.d.ts +10 -0
- package/dist/projections/types.d.ts.map +1 -1
- package/dist/projections/validation.d.ts.map +1 -1
- package/dist/queues/in-memory.d.ts +2 -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 +40 -13
- package/dist/queues/types.d.ts.map +1 -1
- package/dist/runtime/host.d.ts +13 -0
- package/dist/runtime/host.d.ts.map +1 -1
- package/dist/runtime/internal.d.ts +1 -0
- package/dist/runtime/internal.d.ts.map +1 -1
- package/dist/runtime/internal.js +39 -18
- package/dist/runtime/internal.js.map +4 -3
- package/dist/runtime/resolve-definitions.d.ts +1 -1
- package/dist/runtime/resolve-definitions.d.ts.map +1 -1
- package/dist/runtime/script.d.ts +39 -0
- package/dist/runtime/script.d.ts.map +1 -0
- package/dist/runtime/sixb.d.ts +2 -2
- package/dist/runtime/sixb.d.ts.map +1 -1
- package/dist/schedules/builders.d.ts.map +1 -1
- package/dist/schedules/index.js +3 -3
- package/dist/schedules/runtime.d.ts.map +1 -1
- package/dist/schedules/validation.d.ts +2 -0
- package/dist/schedules/validation.d.ts.map +1 -1
- package/dist/shares/internal.js +12 -12
- package/dist/storage/agents/errors.d.ts +1 -1
- package/dist/storage/agents/errors.d.ts.map +1 -1
- package/dist/storage/agents/in-memory.d.ts +26 -1
- package/dist/storage/agents/in-memory.d.ts.map +1 -1
- package/dist/storage/agents/index.d.ts +2 -2
- package/dist/storage/agents/index.d.ts.map +1 -1
- package/dist/storage/agents/provider.d.ts +12 -3
- package/dist/storage/agents/provider.d.ts.map +1 -1
- package/dist/storage/agents/provider.js +25 -5
- package/dist/storage/agents/provider.js.map +1 -1
- package/dist/storage/agents/types.d.ts +156 -1
- package/dist/storage/agents/types.d.ts.map +1 -1
- package/dist/storage/artifacts/in-memory.d.ts +7 -1
- 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 +2 -1
- package/dist/storage/artifacts/record.d.ts.map +1 -1
- package/dist/storage/artifacts/types.d.ts +34 -0
- package/dist/storage/artifacts/types.d.ts.map +1 -1
- package/dist/storage/executions/provider.d.ts +3 -3
- package/dist/storage/executions/provider.d.ts.map +1 -1
- package/dist/storage/executions/provider.js +1 -1
- package/dist/storage/executions/types.d.ts +6 -0
- package/dist/storage/executions/types.d.ts.map +1 -1
- package/dist/storage/executions/validation.d.ts.map +1 -1
- package/dist/storage/file-upload-sessions/provider.js +3 -3
- package/dist/storage/index.d.ts +3 -3
- package/dist/storage/index.d.ts.map +1 -1
- package/dist/storage/index.js +18 -14
- package/dist/storage/index.js.map +1 -1
- package/dist/storage/internal.d.ts +1 -1
- package/dist/storage/internal.d.ts.map +1 -1
- package/dist/storage/internal.js +8 -6
- package/dist/storage/internal.js.map +2 -2
- package/dist/storage/ontology/in-memory/replacement-plans.d.ts +2 -0
- package/dist/storage/ontology/in-memory/replacement-plans.d.ts.map +1 -1
- package/dist/storage/ontology/provider.js +1 -1
- package/dist/storage/ontology/replacement-plans.d.ts +8 -0
- package/dist/storage/ontology/replacement-plans.d.ts.map +1 -1
- package/dist/storage/operation-scope.d.ts.map +1 -1
- package/dist/storage/operation-scope.js +1 -1
- package/dist/storage/workflow-runs/provider.js +3 -3
- package/dist/syncs/index.js +19 -19
- package/dist/testing/agent-execution.d.ts +3 -0
- package/dist/testing/agent-execution.d.ts.map +1 -1
- package/dist/testing/agent-inbox-storage-contract.d.ts +15 -0
- package/dist/testing/agent-inbox-storage-contract.d.ts.map +1 -0
- package/dist/testing/agent-storage-contract.d.ts.map +1 -1
- package/dist/testing/artifact-storage-contract.d.ts.map +1 -1
- package/dist/testing/execution-storage-contract.d.ts.map +1 -1
- package/dist/testing/index.d.ts +1 -0
- package/dist/testing/index.d.ts.map +1 -1
- package/dist/testing/index.js +5524 -4555
- package/dist/testing/index.js.map +10 -9
- package/dist/testing/materializer-storage-contract.d.ts.map +1 -1
- package/dist/testing/queues-contract.d.ts.map +1 -1
- package/dist/webhooks/connections.d.ts +3 -4
- package/dist/webhooks/connections.d.ts.map +1 -1
- package/dist/webhooks/index.d.ts +1 -1
- package/dist/webhooks/index.d.ts.map +1 -1
- package/dist/webhooks/internal.js +16 -49
- package/dist/webhooks/internal.js.map +3 -3
- package/dist/webhooks/types.d.ts +2 -11
- package/dist/webhooks/types.d.ts.map +1 -1
- package/dist/workers/queued-run-dispatch.d.ts.map +1 -1
- package/dist/workflows/index.js +35 -35
- package/package.json +6 -1
- package/src/agents/README.md +6 -2
- package/src/agents/approval-outcome.ts +2 -2
- package/src/agents/cancel.ts +2 -2
- package/src/agents/child-question.ts +76 -8
- package/src/agents/execution.ts +168 -30
- package/src/agents/ids.ts +9 -1
- package/src/agents/index.ts +27 -6
- package/src/agents/model-loop.ts +3 -1
- package/src/agents/queued-turn.ts +46 -0
- package/src/agents/request.ts +517 -2
- package/src/agents/run-after-finish.ts +259 -2
- package/src/agents/run-artifacts.ts +3 -93
- package/src/agents/run-events.ts +26 -1
- package/src/agents/run-session-children.ts +33 -0
- package/src/agents/run-session-http.ts +10 -2
- package/src/agents/run-session-serve.ts +3 -8
- package/src/agents/run-session.ts +142 -3
- package/src/agents/run-turn.ts +8 -0
- package/src/agents/streams/index.ts +1 -0
- package/src/agents/streams/protocol.ts +41 -1
- package/src/agents/tool-files.ts +1 -1
- package/src/agents/tool-input-coercion.ts +140 -0
- package/src/agents/turn-answered.ts +31 -0
- package/src/agents/validation.ts +13 -3
- package/src/artifacts/canvas-display.ts +4 -6
- package/src/artifacts/comments.ts +70 -17
- package/src/artifacts/document-fill.ts +103 -0
- package/src/artifacts/errors.ts +2 -0
- package/src/artifacts/events.ts +4 -1
- package/src/artifacts/execution.ts +265 -31
- package/src/artifacts/frames/assets.ts +42 -7
- package/src/artifacts/frames/document-data.ts +353 -0
- package/src/artifacts/frames/entries.ts +22 -16
- package/src/artifacts/frames/grants.ts +2 -2
- package/src/artifacts/frames/index.ts +3 -0
- package/src/artifacts/frames/kit.ts +102 -0
- package/src/artifacts/frames/protocol.ts +96 -3
- package/src/artifacts/frames/runtime.ts +709 -19
- package/src/artifacts/index.ts +6 -0
- package/src/artifacts/live/blocks.ts +889 -0
- package/src/artifacts/live/board.ts +195 -42
- package/src/artifacts/live/document.ts +170 -5
- package/src/artifacts/live/index.ts +7 -0
- package/src/artifacts/live/page.ts +807 -0
- package/src/artifacts/live/protocol.ts +5 -0
- package/src/artifacts/live/server.ts +2 -2
- package/src/artifacts/live/state.ts +9 -4
- package/src/artifacts/outline.ts +17 -0
- package/src/artifacts/paper.ts +173 -0
- package/src/artifacts/pdf-job.ts +11 -0
- package/src/artifacts/publish/fields.ts +177 -0
- package/src/artifacts/publish/index.ts +6 -1
- package/src/artifacts/publish/merge.ts +14 -12
- package/src/artifacts/publish/pdf.ts +82 -0
- package/src/artifacts/publish/previews.ts +24 -34
- package/src/artifacts/publish/publish.ts +26 -3
- package/src/artifacts/publish/queries.ts +20 -4
- package/src/artifacts/publish/query-answers.ts +14 -3
- package/src/artifacts/publish/validate/document-html.ts +245 -0
- package/src/artifacts/publish/validate/document.ts +34 -3
- package/src/artifacts/queries.ts +59 -13
- package/src/authorization/event-visibility.ts +13 -0
- package/src/connectors/connection-handles.ts +71 -0
- package/src/connectors/connections/authorizations.ts +50 -2
- package/src/connectors/connections/events.ts +57 -0
- package/src/connectors/connections/runs.ts +5 -0
- package/src/connectors/connections/service.ts +19 -1
- package/src/connectors/execution.ts +30 -2
- package/src/connectors/index.ts +3 -0
- package/src/connectors/types.ts +29 -1
- package/src/deploy/index.ts +1 -0
- package/src/deploy/services.ts +1 -0
- package/src/deploy/types.ts +26 -1
- package/src/events/definitions.ts +14 -0
- package/src/events/execution.ts +9 -2
- package/src/events/index.ts +8 -0
- package/src/events/outbox-dispatcher.ts +12 -2
- package/src/events/scope.ts +3 -0
- package/src/events/selectors/builder.ts +49 -0
- package/src/events/selectors/index.ts +5 -0
- package/src/events/selectors/predicate.ts +2 -0
- package/src/events/selectors/types.ts +30 -1
- package/src/events/types/artifacts.ts +7 -1
- package/src/events/types/connectors.ts +36 -0
- package/src/events/types/index.ts +7 -0
- package/src/execution/authorization.ts +45 -0
- package/src/execution/durable.ts +2 -0
- package/src/execution/scopes.ts +24 -0
- package/src/execution/script.ts +27 -0
- package/src/execution/types.ts +7 -1
- package/src/http/api-routes.ts +26 -1
- package/src/index.ts +21 -2
- package/src/lineage/executors.ts +3 -1
- package/src/materialization/event-envelopes.ts +10 -5
- package/src/materialization/events.ts +2 -0
- package/src/materialization/model.ts +6 -0
- package/src/materializer/README.md +10 -0
- package/src/materializer/projections/replace.ts +42 -1
- package/src/materializer/projections/replacement-plan.ts +44 -4
- package/src/materializer/shared/normalize.ts +4 -0
- package/src/models/language-model.ts +6 -0
- package/src/models/tools.ts +2 -0
- package/src/projections/builders.ts +20 -0
- package/src/projections/index.ts +1 -0
- package/src/projections/registry.ts +1 -0
- package/src/projections/revision.ts +2 -0
- package/src/projections/types.ts +11 -0
- package/src/projections/validation.ts +6 -0
- package/src/queues/in-memory.ts +5 -0
- package/src/queues/index.ts +3 -1
- package/src/queues/types.ts +45 -14
- package/src/runtime/host.ts +112 -4
- package/src/runtime/internal.ts +1 -0
- package/src/runtime/resolve-definitions.ts +4 -1
- package/src/runtime/script.ts +62 -0
- package/src/runtime/sixb.ts +3 -3
- package/src/schedules/builders.ts +4 -1
- package/src/schedules/runtime.ts +3 -0
- package/src/schedules/validation.ts +20 -2
- package/src/storage/agents/errors.ts +1 -0
- package/src/storage/agents/in-memory.ts +229 -1
- package/src/storage/agents/index.ts +16 -0
- package/src/storage/agents/provider.ts +284 -2
- package/src/storage/agents/types.ts +168 -1
- package/src/storage/artifacts/in-memory.ts +32 -1
- package/src/storage/artifacts/index.ts +2 -0
- package/src/storage/artifacts/record.ts +25 -2
- package/src/storage/artifacts/types.ts +37 -0
- package/src/storage/executions/provider.ts +22 -2
- package/src/storage/executions/types.ts +2 -0
- package/src/storage/executions/validation.ts +27 -0
- package/src/storage/index.ts +18 -0
- package/src/storage/internal.ts +1 -0
- package/src/storage/ontology/in-memory/replacement-plans.ts +22 -0
- package/src/storage/ontology/replacement-plans.ts +6 -0
- package/src/storage/operation-scope.ts +1 -0
- package/src/testing/agent-execution.ts +45 -2
- package/src/testing/agent-inbox-storage-contract.ts +815 -0
- package/src/testing/agent-storage-contract.ts +103 -0
- package/src/testing/artifact-storage-contract.ts +72 -4
- package/src/testing/execution-storage-contract.ts +31 -0
- package/src/testing/index.ts +5 -0
- package/src/testing/materializer-storage-contract.ts +139 -1
- package/src/testing/queues-contract.ts +22 -0
- package/src/webhooks/connections.ts +9 -50
- package/src/webhooks/index.ts +0 -2
- package/src/webhooks/types.ts +2 -13
- package/src/workers/queued-run-dispatch.ts +8 -1
- package/dist/chunk-48c1z8nj.js.map +0 -10
- package/dist/chunk-58geavnf.js +0 -29
- package/dist/chunk-58geavnf.js.map +0 -10
- package/dist/chunk-7z5rkf0m.js.map +0 -13
- package/dist/chunk-9nsjjd44.js.map +0 -12
- package/dist/chunk-b9qfh2ya.js.map +0 -11
- package/dist/chunk-eptrvnby.js.map +0 -12
- package/dist/chunk-f6ahf5gf.js.map +0 -13
- package/dist/chunk-m2jerfef.js +0 -474
- package/dist/chunk-m2jerfef.js.map +0 -11
- package/dist/chunk-n4zzaf6q.js.map +0 -10
- package/dist/chunk-qds484t8.js.map +0 -18
- package/dist/chunk-smnt672s.js.map +0 -10
- package/dist/chunk-vzkxqf8h.js.map +0 -23
- package/dist/chunk-w9s23r24.js.map +0 -30
- package/dist/chunk-wa05txmk.js.map +0 -11
- package/dist/chunk-yv8hv4wq.js.map +0 -10
- package/dist/chunk-z0t4p2sk.js.map +0 -47
- /package/dist/{chunk-tqa68kj7.js.map → chunk-0hkdtwqk.js.map} +0 -0
- /package/dist/{chunk-s5n9617r.js.map → chunk-0mvjpgvm.js.map} +0 -0
- /package/dist/{chunk-k66rp2hr.js.map → chunk-1yh6jgtz.js.map} +0 -0
- /package/dist/{chunk-26qet7wh.js.map → chunk-5t9gm5tt.js.map} +0 -0
- /package/dist/{chunk-e0hnbb1m.js.map → chunk-61zptves.js.map} +0 -0
- /package/dist/{chunk-hkaa807g.js.map → chunk-68hm50qh.js.map} +0 -0
- /package/dist/{chunk-fe6r7yhg.js.map → chunk-92wrka15.js.map} +0 -0
- /package/dist/{chunk-m7b9q5dk.js.map → chunk-aw1z0gre.js.map} +0 -0
- /package/dist/{chunk-kv0kvknv.js.map → chunk-fzae1jpq.js.map} +0 -0
- /package/dist/{chunk-6gtxshcc.js.map → chunk-k29n4176.js.map} +0 -0
- /package/dist/{chunk-sysnvjce.js.map → chunk-naxjka9v.js.map} +0 -0
- /package/dist/{chunk-qafng88v.js.map → chunk-pqvvqc65.js.map} +0 -0
- /package/dist/{chunk-8p7bze4c.js.map → chunk-s1mqyqmm.js.map} +0 -0
- /package/dist/{chunk-p351afzm.js.map → chunk-s5pj68fa.js.map} +0 -0
- /package/dist/{chunk-855w9nvw.js.map → chunk-vehcr9eb.js.map} +0 -0
- /package/dist/{chunk-n68vz95m.js.map → chunk-wqe9shx2.js.map} +0 -0
- /package/dist/{chunk-0k3r5kb3.js.map → chunk-xcrnrpfh.js.map} +0 -0
- /package/dist/{chunk-38yvdqzd.js.map → chunk-zxhym8tr.js.map} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../../../src/artifacts/live/server.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,KAAK,iBAAiB,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAA;AACxE,OAAO,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAA;
|
|
1
|
+
{"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../../../src/artifacts/live/server.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,KAAK,iBAAiB,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAA;AACxE,OAAO,EAAE,iBAAiB,EAAE,UAAU,EAAE,MAAM,YAAY,CAAA;AAC1D,OAAO,EAAE,aAAa,EAAE,iBAAiB,EAAE,cAAc,EAAE,MAAM,SAAS,CAAA;AAC1E,OAAO,EACL,iBAAiB,EACjB,kBAAkB,EAClB,kBAAkB,EAClB,sBAAsB,EACtB,uBAAuB,GACxB,MAAM,YAAY,CAAA;AACnB,OAAO,EAAE,aAAa,EAAE,oBAAoB,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAA"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import"../../chunk-
|
|
2
|
+
import"../../chunk-xcrnrpfh.js";
|
|
3
3
|
import"../../chunk-d7v97qxq.js";
|
|
4
4
|
import"../../chunk-mvz89age.js";
|
|
5
5
|
import"../../chunk-6eqsgvxk.js";
|
|
6
|
-
import"../../chunk-
|
|
6
|
+
import"../../chunk-paxabbqd.js";
|
|
7
7
|
import"../../chunk-7j4yydm2.js";
|
|
8
8
|
import"../../chunk-rt9deb92.js";
|
|
9
9
|
import"../../chunk-kr6dx38r.js";
|
|
@@ -15,55 +15,57 @@ import"../../chunk-dhkc9b23.js";
|
|
|
15
15
|
import"../../chunk-zrvhsq7f.js";
|
|
16
16
|
import"../../chunk-5grk14e5.js";
|
|
17
17
|
import"../../chunk-x0v3jd47.js";
|
|
18
|
-
import"../../chunk-
|
|
18
|
+
import"../../chunk-s5pj68fa.js";
|
|
19
19
|
import"../../chunk-mbsbxarb.js";
|
|
20
20
|
import"../../chunk-g2ph4873.js";
|
|
21
21
|
import"../../chunk-az95tsh3.js";
|
|
22
22
|
import"../../chunk-qttqe1ah.js";
|
|
23
|
-
import"../../chunk-
|
|
23
|
+
import"../../chunk-ey1p8w68.js";
|
|
24
24
|
import"../../chunk-zeykm8my.js";
|
|
25
25
|
import"../../chunk-c4nrycdy.js";
|
|
26
26
|
import"../../chunk-pk539cwv.js";
|
|
27
27
|
import"../../chunk-h89wz928.js";
|
|
28
|
-
import"../../chunk-
|
|
29
|
-
import"../../chunk-
|
|
28
|
+
import"../../chunk-vehcr9eb.js";
|
|
29
|
+
import"../../chunk-ewqn51gr.js";
|
|
30
30
|
import"../../chunk-9vsc919v.js";
|
|
31
31
|
import"../../chunk-gfdh9kqa.js";
|
|
32
|
-
import"../../chunk-
|
|
33
|
-
import"../../chunk-
|
|
32
|
+
import"../../chunk-xrmbhap8.js";
|
|
33
|
+
import"../../chunk-c29729me.js";
|
|
34
34
|
import"../../chunk-cswhawa2.js";
|
|
35
|
-
import"../../chunk-
|
|
36
|
-
import"../../chunk-
|
|
37
|
-
import"../../chunk-
|
|
35
|
+
import"../../chunk-gjhrz66x.js";
|
|
36
|
+
import"../../chunk-61zptves.js";
|
|
37
|
+
import"../../chunk-zft9bzbc.js";
|
|
38
38
|
import"../../chunk-3sgvd10b.js";
|
|
39
39
|
import"../../chunk-22d3qg4x.js";
|
|
40
40
|
import"../../chunk-hn2r7z41.js";
|
|
41
41
|
import"../../chunk-5rqqp8cr.js";
|
|
42
42
|
import"../../chunk-jmfet9r4.js";
|
|
43
43
|
import"../../chunk-qf954wje.js";
|
|
44
|
-
import"../../chunk-
|
|
45
|
-
import"../../chunk-
|
|
44
|
+
import"../../chunk-s1mqyqmm.js";
|
|
45
|
+
import"../../chunk-5t9gm5tt.js";
|
|
46
|
+
import"../../chunk-vs2s3p8n.js";
|
|
46
47
|
import"../../chunk-bz5bnjjt.js";
|
|
47
48
|
import {
|
|
49
|
+
readChange2,
|
|
48
50
|
mergeIntoDocument2
|
|
49
|
-
} from "../../chunk-
|
|
51
|
+
} from "../../chunk-bqr703h4.js";
|
|
50
52
|
import {
|
|
51
53
|
readLiveFiles2,
|
|
52
54
|
storeLiveFiles2,
|
|
53
55
|
sameArtifactFiles2,
|
|
56
|
+
keepsDocument2,
|
|
54
57
|
loadArtifactDocument2,
|
|
55
58
|
readDocumentState2,
|
|
56
59
|
writeLiveArtifact2
|
|
57
|
-
} from "../../chunk-
|
|
58
|
-
import"../../chunk-
|
|
59
|
-
import"../../chunk-qds484t8.js";
|
|
60
|
+
} from "../../chunk-m3qx2pns.js";
|
|
61
|
+
import"../../chunk-60662fyv.js";
|
|
60
62
|
import {
|
|
61
63
|
AGENT_PRESENCE_MS2,
|
|
62
64
|
artifactLiveStream2,
|
|
63
65
|
artifactPresenceStream2,
|
|
64
66
|
parseArtifactLiveRecord2,
|
|
65
67
|
appendArtifactLive2
|
|
66
|
-
} from "../../chunk-
|
|
68
|
+
} from "../../chunk-zxhym8tr.js";
|
|
67
69
|
import"../../chunk-186k5yz3.js";
|
|
68
70
|
import"../../chunk-xtztwpkh.js";
|
|
69
71
|
import"../../chunk-stmxh0hv.js";
|
|
@@ -73,9 +75,11 @@ export {
|
|
|
73
75
|
appendArtifactLive2 as appendArtifactLive,
|
|
74
76
|
artifactLiveStream2 as artifactLiveStream,
|
|
75
77
|
artifactPresenceStream2 as artifactPresenceStream,
|
|
78
|
+
keepsDocument2 as keepsDocument,
|
|
76
79
|
loadArtifactDocument2 as loadArtifactDocument,
|
|
77
80
|
mergeIntoDocument2 as mergeIntoDocument,
|
|
78
81
|
parseArtifactLiveRecord2 as parseArtifactLiveRecord,
|
|
82
|
+
readChange2 as readChange,
|
|
79
83
|
readDocumentState2 as readDocumentState,
|
|
80
84
|
readLiveFiles2 as readLiveFiles,
|
|
81
85
|
sameArtifactFiles2 as sameArtifactFiles,
|
|
@@ -83,4 +87,4 @@ export {
|
|
|
83
87
|
writeLiveArtifact2 as writeLiveArtifact
|
|
84
88
|
};
|
|
85
89
|
|
|
86
|
-
//# debugId=
|
|
90
|
+
//# debugId=CEC559F43BF467A164756E2164756E21
|
|
@@ -2,7 +2,10 @@ import * as Y from "yjs";
|
|
|
2
2
|
import type { BlobStorage, FileRef } from "../../blob-storage/types";
|
|
3
3
|
import type { ArtifactFile, ArtifactRecord } from "../../storage/artifacts/types";
|
|
4
4
|
import type { ArtifactKind } from "../kinds";
|
|
5
|
-
/**
|
|
5
|
+
/**
|
|
6
|
+
* Whether an artifact is edited live, and so keeps its content as a document: a canvas, and a
|
|
7
|
+
* document, Markdown or designed, which people edit in place.
|
|
8
|
+
*/
|
|
6
9
|
export declare function keepsDocument(kind: ArtifactKind): boolean;
|
|
7
10
|
/**
|
|
8
11
|
* The artifact's document, holding `files`, its latest version's.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"state.d.ts","sourceRoot":"","sources":["../../../src/artifacts/live/state.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAA;AACxB,OAAO,KAAK,EAAE,WAAW,EAAE,OAAO,EAAE,MAAM,0BAA0B,CAAA;AACpE,OAAO,KAAK,EAAoB,YAAY,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAA;AACnG,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,UAAU,CAAA;AAQ5C
|
|
1
|
+
{"version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type { DocumentPaper } from "./paper";
|
|
1
2
|
import type { ArtifactThemeMode } from "./theme";
|
|
2
3
|
/**
|
|
3
4
|
* What a version contains, read from its files when it is published. Addresses resolve against
|
|
@@ -7,6 +8,21 @@ export type ArtifactOutline = DocumentOutline | SheetOutline | SlidesOutline | P
|
|
|
7
8
|
export interface DocumentOutline {
|
|
8
9
|
readonly kind: "document";
|
|
9
10
|
readonly headings: readonly DocumentHeading[];
|
|
11
|
+
/** `html` for a designed document, `document.html` with its own stylesheets; absent for Markdown. */
|
|
12
|
+
readonly format?: "html";
|
|
13
|
+
/** The sheet a designed document's `@page` rule sets, which gives it pages; absent without one. */
|
|
14
|
+
readonly paper?: DocumentPaper;
|
|
15
|
+
/**
|
|
16
|
+
* The object a designed document shows live data of, as `<meta name="sixb:object-type">` names
|
|
17
|
+
* its type: the one object of that type that holds the document. Absent without the tag.
|
|
18
|
+
*/
|
|
19
|
+
readonly holder?: DocumentHolder;
|
|
20
|
+
}
|
|
21
|
+
/** What a designed document reads of the object that holds it. */
|
|
22
|
+
export interface DocumentHolder {
|
|
23
|
+
readonly objectTypeId: string;
|
|
24
|
+
/** The links of the holder its fields read through, which reading the holder expands. */
|
|
25
|
+
readonly links: readonly string[];
|
|
10
26
|
}
|
|
11
27
|
export interface DocumentHeading {
|
|
12
28
|
readonly depth: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"outline.d.ts","sourceRoot":"","sources":["../../src/artifacts/outline.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAA;AAEhD;;;GAGG;AACH,MAAM,MAAM,eAAe,GACvB,eAAe,GACf,YAAY,GACZ,aAAa,GACb,WAAW,GACX,aAAa,GACb,WAAW,CAAA;AAEf,MAAM,WAAW,eAAe;IAC9B,QAAQ,CAAC,IAAI,EAAE,UAAU,CAAA;IACzB,QAAQ,CAAC,QAAQ,EAAE,SAAS,eAAe,EAAE,CAAA;
|
|
1
|
+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AAE,MAAM,CAAA;CAAE,CAAA;AAE9E,MAAM,WAAW,WAAW;IAC1B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;IACrB,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAA;CAC3B;AAED;;;;GAIG;AACH,wBAAgB,oBAAoB,IAAI,CAAC,IAAI,EAAE,MAAM,KAAK,MAAM,CAc/D"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The sheet a designed document prints on, as its stylesheets' `@page` rule sets it, in CSS pixels
|
|
3
|
+
* (96 to the inch): the page's size, and its margins. The app lays the document's pages out on it,
|
|
4
|
+
* and the PDF prints on it.
|
|
5
|
+
*/
|
|
6
|
+
export interface DocumentPaper {
|
|
7
|
+
readonly width: number;
|
|
8
|
+
readonly height: number;
|
|
9
|
+
readonly margin: {
|
|
10
|
+
readonly top: number;
|
|
11
|
+
readonly right: number;
|
|
12
|
+
readonly bottom: number;
|
|
13
|
+
readonly left: number;
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* The paper the stylesheets ask for, read in the order the document applies them: the `size` and
|
|
18
|
+
* margins of every unnamed, unqualified `@page` rule, a later one over an earlier one. Null when
|
|
19
|
+
* none sets a size, or sets one Sixb can't measure (`auto`, or a length in `em`).
|
|
20
|
+
*/
|
|
21
|
+
export declare function readDocumentPaper(stylesheets: readonly string[]): DocumentPaper | null;
|
|
22
|
+
//# sourceMappingURL=paper.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"paper.d.ts","sourceRoot":"","sources":["../../src/artifacts/paper.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,MAAM,WAAW,aAAa;IAC5B,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;IACtB,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAA;IACvB,QAAQ,CAAC,MAAM,EAAE;QACf,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAA;QACpB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;QACtB,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAA;QACvB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;KACtB,CAAA;CACF;AA0BD;;;;GAIG;AACH,wBAAgB,iBAAiB,CAAC,WAAW,EAAE,SAAS,MAAM,EAAE,GAAG,aAAa,GAAG,IAAI,CAqCtF"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/** How long the render worker gives one PDF, how many times it tries, and how long it waits between. */
|
|
2
|
+
export declare const DOCUMENT_PDF_JOB: {
|
|
3
|
+
readonly timeoutMs: number;
|
|
4
|
+
readonly attempts: 2;
|
|
5
|
+
readonly backoffMs: 15000;
|
|
6
|
+
};
|
|
7
|
+
/** How long a PDF asked for is worth waiting for: every attempt, and the waits between them. */
|
|
8
|
+
export declare const DOCUMENT_PDF_WAIT_MS: number;
|
|
9
|
+
//# sourceMappingURL=pdf-job.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pdf-job.d.ts","sourceRoot":"","sources":["../../src/artifacts/pdf-job.ts"],"names":[],"mappings":"AAAA,wGAAwG;AACxG,eAAO,MAAM,gBAAgB;;;;CAInB,CAAA;AAEV,gGAAgG;AAChG,eAAO,MAAM,oBAAoB,QAE6B,CAAA"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { type DocumentMark } from "../frames/document-data";
|
|
2
|
+
import type { DocumentHolder } from "../outline";
|
|
3
|
+
import type { CheckedArtifactQuery } from "../queries";
|
|
4
|
+
import type { ArtifactWarning } from "../warnings";
|
|
5
|
+
import type { ArtifactQueryChecker } from "./queries";
|
|
6
|
+
/**
|
|
7
|
+
* Checks a designed document's fields and repeated elements against what they read, as its author
|
|
8
|
+
* reads it: the object that holds it, of the type it names, and its queries. A path that reads
|
|
9
|
+
* nothing they hold is a `field_unknown` warning, never a refusal, so a document that names a
|
|
10
|
+
* property its author cannot see still publishes. One that reads a list item, or a value deeper
|
|
11
|
+
* than a property, is not checked past it.
|
|
12
|
+
*
|
|
13
|
+
* Returns the holder, with the links its fields read through, which reading the holder expands.
|
|
14
|
+
* A holder its author cannot read refuses the version, as a query they could not run does.
|
|
15
|
+
*/
|
|
16
|
+
export declare function checkDocumentFields(input: {
|
|
17
|
+
readonly marks: readonly DocumentMark[];
|
|
18
|
+
readonly holder?: string;
|
|
19
|
+
readonly queries: ReadonlyMap<string, CheckedArtifactQuery>;
|
|
20
|
+
readonly checker?: ArtifactQueryChecker;
|
|
21
|
+
}): Promise<{
|
|
22
|
+
readonly holder?: DocumentHolder;
|
|
23
|
+
readonly warnings: readonly ArtifactWarning[];
|
|
24
|
+
}>;
|
|
25
|
+
//# sourceMappingURL=fields.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fields.d.ts","sourceRoot":"","sources":["../../../src/artifacts/publish/fields.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,YAAY,EAAmC,MAAM,yBAAyB,CAAA;AAC5F,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,YAAY,CAAA;AAChD,OAAO,KAAK,EAAyB,oBAAoB,EAAE,MAAM,YAAY,CAAA;AAC7E,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,aAAa,CAAA;AAElD,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,WAAW,CAAA;AAcrD;;;;;;;;;GASG;AACH,wBAAsB,mBAAmB,CAAC,KAAK,EAAE;IAC/C,QAAQ,CAAC,KAAK,EAAE,SAAS,YAAY,EAAE,CAAA;IACvC,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAA;IACxB,QAAQ,CAAC,OAAO,EAAE,WAAW,CAAC,MAAM,EAAE,oBAAoB,CAAC,CAAA;IAC3D,QAAQ,CAAC,OAAO,CAAC,EAAE,oBAAoB,CAAA;CACxC,GAAG,OAAO,CAAC;IAAE,QAAQ,CAAC,MAAM,CAAC,EAAE,cAAc,CAAC;IAAC,QAAQ,CAAC,QAAQ,EAAE,SAAS,eAAe,EAAE,CAAA;CAAE,CAAC,CA8I/F"}
|
|
@@ -6,8 +6,9 @@ export { BOARD_PREVIEW_JOB } from "../canvas-display";
|
|
|
6
6
|
export { artifactAccessRule, artifactQueryChecker } from "../execution";
|
|
7
7
|
export { isArtifactId } from "../ids";
|
|
8
8
|
export { ARTIFACT_LIMITS } from "../limits";
|
|
9
|
-
export { artifactQueryName } from "../queries";
|
|
9
|
+
export { artifactQueryName, DOCUMENT_HOLDER_QUERY } from "../queries";
|
|
10
10
|
export { artifactThemeModes } from "../theme";
|
|
11
|
+
export { DOCUMENT_PDF_JOB, documentPdfKey, MAX_DOCUMENT_PDF_BYTES, } from "./pdf";
|
|
11
12
|
export { BOARD_PREVIEW_MEDIA_TYPES, type BoardPreviewInput, type BoardPreviewStatus, boardPreview, boardPreviewStatuses, boardPreviews, boardsReadLiveData, MAX_BOARD_PREVIEW_BYTES, type MissingBoardPreview, missingBoardPreviews, type RefusedBoardPreview, storeBoardPreviews, } from "./previews";
|
|
12
13
|
export { artifactVersionWarnings, type PreparedArtifactVersion, type PublishArtifactInput, type PublishedArtifact, prepareArtifactVersion, publishArtifact, storeArtifactVersion, } from "./publish";
|
|
13
14
|
export { type ArtifactQueryAnswer, type ArtifactQueryAnswers, answerArtifactQueries, parseArtifactQueryAnswers, } from "./query-answers";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/artifacts/publish/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAA;AACrD,OAAO,EAAE,kBAAkB,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAA;AACvE,OAAO,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAA;AACrC,OAAO,EAAE,eAAe,EAAE,MAAM,WAAW,CAAA;AAC3C,OAAO,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAA;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/artifacts/publish/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAA;AACrD,OAAO,EAAE,kBAAkB,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAA;AACvE,OAAO,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAA;AACrC,OAAO,EAAE,eAAe,EAAE,MAAM,WAAW,CAAA;AAC3C,OAAO,EAAE,iBAAiB,EAAE,qBAAqB,EAAE,MAAM,YAAY,CAAA;AACrE,OAAO,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAA;AAC7C,OAAO,EACL,gBAAgB,EAChB,cAAc,EACd,sBAAsB,GACvB,MAAM,OAAO,CAAA;AACd,OAAO,EACL,yBAAyB,EACzB,KAAK,iBAAiB,EACtB,KAAK,kBAAkB,EACvB,YAAY,EACZ,oBAAoB,EACpB,aAAa,EACb,kBAAkB,EAClB,uBAAuB,EACvB,KAAK,mBAAmB,EACxB,oBAAoB,EACpB,KAAK,mBAAmB,EACxB,kBAAkB,GACnB,MAAM,YAAY,CAAA;AACnB,OAAO,EACL,uBAAuB,EACvB,KAAK,uBAAuB,EAC5B,KAAK,oBAAoB,EACzB,KAAK,iBAAiB,EACtB,sBAAsB,EACtB,eAAe,EACf,oBAAoB,GACrB,MAAM,WAAW,CAAA;AAClB,OAAO,EACL,KAAK,mBAAmB,EACxB,KAAK,oBAAoB,EACzB,qBAAqB,EACrB,yBAAyB,GAC1B,MAAM,iBAAiB,CAAA"}
|
|
@@ -1,14 +1,16 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
BOARD_PREVIEW_JOB2,
|
|
4
|
+
DOCUMENT_HOLDER_QUERY2,
|
|
4
5
|
artifactQueryName2,
|
|
6
|
+
DOCUMENT_PDF_JOB2,
|
|
5
7
|
artifactThemeModes2
|
|
6
|
-
} from "../../chunk-
|
|
7
|
-
import"../../chunk-
|
|
8
|
+
} from "../../chunk-60662fyv.js";
|
|
9
|
+
import"../../chunk-xcrnrpfh.js";
|
|
8
10
|
import"../../chunk-d7v97qxq.js";
|
|
9
11
|
import"../../chunk-mvz89age.js";
|
|
10
12
|
import"../../chunk-6eqsgvxk.js";
|
|
11
|
-
import"../../chunk-
|
|
13
|
+
import"../../chunk-paxabbqd.js";
|
|
12
14
|
import"../../chunk-7j4yydm2.js";
|
|
13
15
|
import"../../chunk-rt9deb92.js";
|
|
14
16
|
import {
|
|
@@ -22,38 +24,39 @@ import"../../chunk-dhkc9b23.js";
|
|
|
22
24
|
import"../../chunk-zrvhsq7f.js";
|
|
23
25
|
import"../../chunk-5grk14e5.js";
|
|
24
26
|
import"../../chunk-x0v3jd47.js";
|
|
25
|
-
import"../../chunk-
|
|
27
|
+
import"../../chunk-s5pj68fa.js";
|
|
26
28
|
import"../../chunk-mbsbxarb.js";
|
|
27
29
|
import"../../chunk-g2ph4873.js";
|
|
28
30
|
import"../../chunk-az95tsh3.js";
|
|
29
31
|
import"../../chunk-qttqe1ah.js";
|
|
30
|
-
import"../../chunk-
|
|
32
|
+
import"../../chunk-ey1p8w68.js";
|
|
31
33
|
import"../../chunk-zeykm8my.js";
|
|
32
34
|
import"../../chunk-c4nrycdy.js";
|
|
33
35
|
import"../../chunk-pk539cwv.js";
|
|
34
36
|
import"../../chunk-h89wz928.js";
|
|
35
|
-
import"../../chunk-
|
|
36
|
-
import"../../chunk-
|
|
37
|
+
import"../../chunk-vehcr9eb.js";
|
|
38
|
+
import"../../chunk-ewqn51gr.js";
|
|
37
39
|
import {
|
|
38
40
|
ARTIFACT_LIMITS2
|
|
39
41
|
} from "../../chunk-9vsc919v.js";
|
|
40
42
|
import"../../chunk-gfdh9kqa.js";
|
|
41
|
-
import"../../chunk-
|
|
42
|
-
import"../../chunk-
|
|
43
|
+
import"../../chunk-xrmbhap8.js";
|
|
44
|
+
import"../../chunk-c29729me.js";
|
|
43
45
|
import"../../chunk-cswhawa2.js";
|
|
44
|
-
import"../../chunk-
|
|
45
|
-
import"../../chunk-
|
|
46
|
-
import"../../chunk-
|
|
46
|
+
import"../../chunk-gjhrz66x.js";
|
|
47
|
+
import"../../chunk-61zptves.js";
|
|
48
|
+
import"../../chunk-zft9bzbc.js";
|
|
47
49
|
import"../../chunk-3sgvd10b.js";
|
|
48
50
|
import"../../chunk-22d3qg4x.js";
|
|
49
51
|
import"../../chunk-hn2r7z41.js";
|
|
50
52
|
import"../../chunk-5rqqp8cr.js";
|
|
51
53
|
import"../../chunk-jmfet9r4.js";
|
|
52
54
|
import"../../chunk-qf954wje.js";
|
|
53
|
-
import"../../chunk-
|
|
54
|
-
import"../../chunk-
|
|
55
|
+
import"../../chunk-s1mqyqmm.js";
|
|
56
|
+
import"../../chunk-5t9gm5tt.js";
|
|
57
|
+
import"../../chunk-vs2s3p8n.js";
|
|
55
58
|
import"../../chunk-bz5bnjjt.js";
|
|
56
|
-
import"../../chunk-
|
|
59
|
+
import"../../chunk-bqr703h4.js";
|
|
57
60
|
import {
|
|
58
61
|
answerArtifactQueries2,
|
|
59
62
|
parseArtifactQueryAnswers2,
|
|
@@ -65,14 +68,15 @@ import {
|
|
|
65
68
|
missingBoardPreviews2,
|
|
66
69
|
boardPreviewStatuses2,
|
|
67
70
|
storeBoardPreviews2,
|
|
71
|
+
MAX_DOCUMENT_PDF_BYTES2,
|
|
72
|
+
documentPdfKey2,
|
|
68
73
|
publishArtifact2,
|
|
69
74
|
prepareArtifactVersion2,
|
|
70
75
|
storeArtifactVersion2,
|
|
71
76
|
artifactVersionWarnings2,
|
|
72
77
|
artifactAccessRule2,
|
|
73
78
|
artifactQueryChecker2
|
|
74
|
-
} from "../../chunk-
|
|
75
|
-
import"../../chunk-qds484t8.js";
|
|
79
|
+
} from "../../chunk-m3qx2pns.js";
|
|
76
80
|
import"../../chunk-186k5yz3.js";
|
|
77
81
|
import"../../chunk-xtztwpkh.js";
|
|
78
82
|
import"../../chunk-stmxh0hv.js";
|
|
@@ -81,7 +85,10 @@ export {
|
|
|
81
85
|
ARTIFACT_LIMITS2 as ARTIFACT_LIMITS,
|
|
82
86
|
BOARD_PREVIEW_JOB2 as BOARD_PREVIEW_JOB,
|
|
83
87
|
BOARD_PREVIEW_MEDIA_TYPES2 as BOARD_PREVIEW_MEDIA_TYPES,
|
|
88
|
+
DOCUMENT_HOLDER_QUERY2 as DOCUMENT_HOLDER_QUERY,
|
|
89
|
+
DOCUMENT_PDF_JOB2 as DOCUMENT_PDF_JOB,
|
|
84
90
|
MAX_BOARD_PREVIEW_BYTES2 as MAX_BOARD_PREVIEW_BYTES,
|
|
91
|
+
MAX_DOCUMENT_PDF_BYTES2 as MAX_DOCUMENT_PDF_BYTES,
|
|
85
92
|
answerArtifactQueries2 as answerArtifactQueries,
|
|
86
93
|
artifactAccessRule2 as artifactAccessRule,
|
|
87
94
|
artifactQueryChecker2 as artifactQueryChecker,
|
|
@@ -92,6 +99,7 @@ export {
|
|
|
92
99
|
boardPreviewStatuses2 as boardPreviewStatuses,
|
|
93
100
|
boardPreviews2 as boardPreviews,
|
|
94
101
|
boardsReadLiveData2 as boardsReadLiveData,
|
|
102
|
+
documentPdfKey2 as documentPdfKey,
|
|
95
103
|
isArtifactId2 as isArtifactId,
|
|
96
104
|
missingBoardPreviews2 as missingBoardPreviews,
|
|
97
105
|
parseArtifactQueryAnswers2 as parseArtifactQueryAnswers,
|
|
@@ -101,4 +109,4 @@ export {
|
|
|
101
109
|
storeBoardPreviews2 as storeBoardPreviews
|
|
102
110
|
};
|
|
103
111
|
|
|
104
|
-
//# debugId=
|
|
112
|
+
//# debugId=24452ABB098D15CD64756E2164756E21
|
|
@@ -30,10 +30,10 @@ export interface MergedArtifactWrite {
|
|
|
30
30
|
readonly title?: string;
|
|
31
31
|
}
|
|
32
32
|
/**
|
|
33
|
-
* The write to store. One to a
|
|
34
|
-
* it, and is based on the latest revision; one that moved past its base is merged
|
|
35
|
-
* latest version holds now. A write whose base files are not known is left as it is,
|
|
36
|
-
* conflict check to refuse.
|
|
33
|
+
* The write to store. One to an artifact that keeps a document is made into that document, which
|
|
34
|
+
* is stored with it, and is based on the latest revision; one that moved past its base is merged
|
|
35
|
+
* into what the latest version holds now. A write whose base files are not known is left as it is,
|
|
36
|
+
* for the conflict check to refuse.
|
|
37
37
|
*/
|
|
38
38
|
export declare function mergeArtifactWrite(context: {
|
|
39
39
|
readonly projectId: string;
|
|
@@ -66,7 +66,7 @@ export declare function withDocumentHolding<T>(context: MergeContext, artifactId
|
|
|
66
66
|
readonly baseRevision?: number;
|
|
67
67
|
}) => Promise<T>): Promise<T>;
|
|
68
68
|
/**
|
|
69
|
-
* The documents of the
|
|
69
|
+
* The documents of the artifacts a retry of a turn puts back, by id: each one the undo will put
|
|
70
70
|
* back, as the turn's restore point holds it. Made before the undo, at the revision it requires,
|
|
71
71
|
* so the undo can store them: one written meanwhile is not undone, and its document goes unused.
|
|
72
72
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"merge.d.ts","sourceRoot":"","sources":["../../../src/artifacts/publish/merge.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,OAAO,EAAE,MAAM,0BAA0B,CAAA;AAGpE,OAAO,KAAK,EAAE,YAAY,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAA;AAElF,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,UAAU,CAAA;AAc5C,qEAAqE;AACrE,MAAM,WAAW,aAAa;IAC5B,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAA;IAC3B,QAAQ,CAAC,IAAI,EAAE,YAAY,CAAA;IAC3B,QAAQ,CAAC,KAAK,EAAE,SAAS,YAAY,EAAE,CAAA;IACvC,QAAQ,CAAC,YAAY,CAAC,EAAE,MAAM,CAAA;IAC9B,oFAAoF;IACpF,QAAQ,CAAC,SAAS,CAAC,EAAE,SAAS,YAAY,EAAE,CAAA;IAC5C,0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Ae,CAAC,CAAC,EACrC,OAAO,EAAE,YAAY,EACrB,KAAK,EAAE,aAAa,EACpB,KAAK,EAAE,CAAC,MAAM,EAAE,mBAAmB,KAAK,OAAO,CAAC,CAAC,CAAC,GACjD,OAAO,CAAC,CAAC,CAAC,CAWZ;AAED,KAAK,YAAY,GAAG,UAAU,CAAC,OAAO,kBAAkB,CAAC,CAAC,CAAC,CAAC,CAAA;AAE5D;;;;GAIG;AACH,wBAAsB,eAAe,CACnC,OAAO,EAAE,YAAY,EACrB,UAAU,EAAE,MAAM,EAClB,KAAK,EAAE,SAAS,YAAY,EAAE,GAC7B,OAAO,CAAC;IAAE,QAAQ,CAAC,QAAQ,EAAE,OAAO,CAAC;IAAC,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAA;CAAE,GAAG,IAAI,CAAC,CAqB/E;AAED;;;;GAIG;AACH,wBAAsB,mBAAmB,CAAC,CAAC,EACzC,OAAO,EAAE,YAAY,EACrB,UAAU,EAAE,MAAM,EAClB,KAAK,EAAE,SAAS,YAAY,EAAE,GAAG,IAAI,EACrC,YAAY,EAAE,MAAM,GAAG,SAAS,EAChC,KAAK,EAAE,CAAC,IAAI,EAAE;IAAE,QAAQ,CAAC,QAAQ,CAAC,EAAE,OAAO,CAAC;IAAC,QAAQ,CAAC,YAAY,CAAC,EAAE,MAAM,CAAA;CAAE,KAAK,OAAO,CAAC,CAAC,CAAC,GAC3F,OAAO,CAAC,CAAC,CAAC,CAgBZ;AAED;;;;GAIG;AACH,wBAAsB,mBAAmB,CACvC,OAAO,EAAE,YAAY,EACrB,SAAS,EAAE,MAAM,GAChB,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CA2BlC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type { FileRef } from "../../blob-storage/types";
|
|
2
|
+
import type { Queue, RenderQueueJob } from "../../queues";
|
|
3
|
+
import type { ArtifactStorage, ArtifactVersionRecord } from "../../storage/artifacts/types";
|
|
4
|
+
export { DOCUMENT_PDF_JOB } from "../pdf-job";
|
|
5
|
+
/** The largest PDF the worker reads back from its sandbox: past it, the document has none. */
|
|
6
|
+
export declare const MAX_DOCUMENT_PDF_BYTES: number;
|
|
7
|
+
/**
|
|
8
|
+
* What a designed document's PDF is of, as a SHA-256: every file of its version, the frame's kit
|
|
9
|
+
* and runtime it prints with, and its artifact, whose other artifacts' pictures it may show. Null
|
|
10
|
+
* for a version that is not a designed document. `document` is the `document.html` it prints
|
|
11
|
+
* instead of its own, with the values its fields read written in.
|
|
12
|
+
*/
|
|
13
|
+
export declare function documentPdfKey(version: Pick<ArtifactVersionRecord, "artifactId" | "files" | "outline">, document?: {
|
|
14
|
+
readonly digest: string;
|
|
15
|
+
}): string | null;
|
|
16
|
+
/**
|
|
17
|
+
* Asks the render worker to print a designed document's version to PDF, with `document` for its
|
|
18
|
+
* `document.html` when given. Asking again while it is asked for asks nothing more; `retry`
|
|
19
|
+
* forgets why it could not be printed before, and asks again.
|
|
20
|
+
*/
|
|
21
|
+
export declare function requestDocumentPdf(context: {
|
|
22
|
+
readonly storage: Pick<ArtifactStorage, "clearPdfFailure">;
|
|
23
|
+
readonly queue: Pick<Queue<RenderQueueJob>, "enqueue">;
|
|
24
|
+
}, version: ArtifactVersionRecord, options?: {
|
|
25
|
+
readonly document?: FileRef;
|
|
26
|
+
readonly retry?: boolean;
|
|
27
|
+
}): Promise<void>;
|
|
28
|
+
//# sourceMappingURL=pdf.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pdf.d.ts","sourceRoot":"","sources":["../../../src/artifacts/publish/pdf.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,0BAA0B,CAAA;AACvD,OAAO,KAAK,EAAE,KAAK,EAAE,cAAc,EAAE,MAAM,cAAc,CAAA;AACzD,OAAO,KAAK,EAAE,eAAe,EAAE,qBAAqB,EAAE,MAAM,+BAA+B,CAAA;AAS3F,OAAO,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAA;AAE7C,8FAA8F;AAC9F,eAAO,MAAM,sBAAsB,QAAmB,CAAA;AAItD;;;;;GAKG;AACH,wBAAgB,cAAc,CAC5B,OAAO,EAAE,IAAI,CAAC,qBAAqB,EAAE,YAAY,GAAG,OAAO,GAAG,SAAS,CAAC,EACxE,QAAQ,CAAC,EAAE;IAAE,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAA;CAAE,GACrC,MAAM,GAAG,IAAI,CAef;AAED;;;;GAIG;AACH,wBAAsB,kBAAkB,CACtC,OAAO,EAAE;IACP,QAAQ,CAAC,OAAO,EAAE,IAAI,CAAC,eAAe,EAAE,iBAAiB,CAAC,CAAA;IAC1D,QAAQ,CAAC,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,EAAE,SAAS,CAAC,CAAA;CACvD,EACD,OAAO,EAAE,qBAAqB,EAC9B,OAAO,GAAE;IAAE,QAAQ,CAAC,QAAQ,CAAC,EAAE,OAAO,CAAC;IAAC,QAAQ,CAAC,KAAK,CAAC,EAAE,OAAO,CAAA;CAAO,GACtE,OAAO,CAAC,IAAI,CAAC,CAwBf"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Principal } from "../../auth";
|
|
2
2
|
import type { BlobStorage, FileRef } from "../../blob-storage/types";
|
|
3
|
-
import type {
|
|
3
|
+
import type { Queue, RenderQueueJob } from "../../queues";
|
|
4
4
|
import type { ArtifactBoardPreviewRecord, ArtifactBoardPreviewSize, ArtifactFile, ArtifactStorage, ArtifactVersionRecord } from "../../storage/artifacts/types";
|
|
5
5
|
import type { ArtifactOutline, CanvasOutline, CanvasOutlineItem } from "../outline";
|
|
6
6
|
import { type ArtifactQueryResult } from "../queries";
|
|
@@ -30,12 +30,6 @@ export type CanvasOutlineBoard = Extract<CanvasOutlineItem, {
|
|
|
30
30
|
/** Asks for what is missing of a stored version's pictures; see {@link requestBoardPreviews}. */
|
|
31
31
|
export type BoardPreviewRequester = (version: ArtifactVersionRecord, options?: BoardPreviewRequestOptions) => Promise<void>;
|
|
32
32
|
export interface BoardPreviewRequestOptions {
|
|
33
|
-
/**
|
|
34
|
-
* How long the worker waits before it renders: by default `BOARD_PREVIEW_JOB.settleMs`, so a
|
|
35
|
-
* canvas being edited is rendered once it rests. Longer when the publisher renders the pictures
|
|
36
|
-
* itself, as the Agent's layout check does.
|
|
37
|
-
*/
|
|
38
|
-
readonly delayMs?: number;
|
|
39
33
|
/**
|
|
40
34
|
* Leaves the version's queries unanswered: the worker then pictures only the boards that read
|
|
41
35
|
* none, and a board that reads one keeps its outline.
|
|
@@ -114,16 +108,12 @@ export interface RefusedBoardPreview {
|
|
|
114
108
|
readonly reason: string;
|
|
115
109
|
}
|
|
116
110
|
/**
|
|
117
|
-
* Keeps pictures of a stored version's boards, each under its board's render key
|
|
118
|
-
* them
|
|
119
|
-
* picture
|
|
120
|
-
*
|
|
121
|
-
* others are kept.
|
|
111
|
+
* Keeps pictures of a stored version's boards, each under its board's render key, as the render
|
|
112
|
+
* worker stored them. Each picture stands alone: one for a board or a mode the version has no
|
|
113
|
+
* picture for, in another format than its size's, or past the size limit, is left out and
|
|
114
|
+
* returned, and the others are kept.
|
|
122
115
|
*/
|
|
123
|
-
export declare function storeBoardPreviews(
|
|
124
|
-
readonly storage: Pick<ArtifactStorage, "putBoardPreviews">;
|
|
125
|
-
readonly blobStorage: Pick<BlobStorage, "stat">;
|
|
126
|
-
}, version: ArtifactVersionRecord, previews: readonly BoardPreviewInput[]): Promise<readonly RefusedBoardPreview[]>;
|
|
116
|
+
export declare function storeBoardPreviews(storage: Pick<ArtifactStorage, "putBoardPreviews">, version: ArtifactVersionRecord, previews: readonly BoardPreviewInput[]): Promise<readonly RefusedBoardPreview[]>;
|
|
127
117
|
/**
|
|
128
118
|
* One job per artifact. Each write that asks replaces the job still waiting, so a canvas edited
|
|
129
119
|
* live, written back every few seconds, waits for one job, which renders its latest revision once
|
|
@@ -131,9 +121,9 @@ export declare function storeBoardPreviews(context: {
|
|
|
131
121
|
*/
|
|
132
122
|
export declare function boardPreviewsJobId(artifactId: string): string;
|
|
133
123
|
/**
|
|
134
|
-
* Asks the
|
|
135
|
-
* in the artifact's one job: it takes the place of
|
|
136
|
-
* asked when nothing is missing.
|
|
124
|
+
* Asks the render worker to render what a stored version's boards still miss, once the canvas
|
|
125
|
+
* rests, `BOARD_PREVIEW_JOB.settleMs` from now, in the artifact's one job: it takes the place of
|
|
126
|
+
* any asked for an earlier revision. Nothing is asked when nothing is missing.
|
|
137
127
|
*
|
|
138
128
|
* Boards that read queries show their author's data, so the version's queries are answered now,
|
|
139
129
|
* by `query`, as whoever just published it, and the job carries the answers: kept as a blob only
|
|
@@ -145,9 +135,11 @@ export declare function boardPreviewsJobId(artifactId: string): string;
|
|
|
145
135
|
*/
|
|
146
136
|
export declare function requestBoardPreviews(input: {
|
|
147
137
|
readonly storage: Pick<ArtifactStorage, "listBoardPreviews">;
|
|
148
|
-
readonly queue: Pick<Queue<
|
|
138
|
+
readonly queue: Pick<Queue<RenderQueueJob>, "enqueue">;
|
|
149
139
|
readonly blobStorage: Pick<BlobStorage, "put">;
|
|
150
140
|
/** Runs one of the version's queries as its publisher. */
|
|
151
141
|
readonly query: (name: string) => Promise<ArtifactQueryResult | null>;
|
|
152
142
|
}, version: ArtifactVersionRecord, options?: BoardPreviewRequestOptions): Promise<void>;
|
|
143
|
+
/** What a page runs with besides its own files: a new kit renders it anew. */
|
|
144
|
+
export declare function frameKitDigest(): string;
|
|
153
145
|
//# sourceMappingURL=previews.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"previews.d.ts","sourceRoot":"","sources":["../../../src/artifacts/publish/previews.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,YAAY,CAAA;
|
|
1
|
+
{"version":3,"file":"previews.d.ts","sourceRoot":"","sources":["../../../src/artifacts/publish/previews.ts"],"names":[],"mappings":"A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,CAAC,IAAI,EAAE,YAAY,CAAA;IAC3B,sDAAsD;IACtD,QAAQ,CAAC,KAAK,EAAE,SAAS,CAAA;IACzB,QAAQ,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE,cAAc,KAAK,OAAO,CAAC,OAAO,CAAC,CAAA;IACjE,QAAQ,CAAC,OAAO,EAAE,oBAAoB,CAAA;IACtC,wEAAwE;IACxE,QAAQ,CAAC,QAAQ,EAAE,SAAS,eAAe,EAAE,CAAA;CAC9C;AAED;;;GAGG;AACH,wBAAsB,eAAe,CACnC,OAAO,EAAE,sBAAsB,EAC/B,KAAK,EAAE,oBAAoB,EAC3B,MAAM,EAAE,aAAa,GACpB,OAAO,CAAC,iBAAiB,CAAC,CAI5B;AAED;;;;;GAKG;AACH,wBAAsB,sBAAsB,CAC1C,OAAO,EAAE,sBAAsB,EAC/B,KAAK,EAAE,oBAAoB,GAC1B,OAAO,CAAC,uBAAuB,CAAC,CAuElC;AAED;;;;;GAKG;AACH,wBAAsB,oBAAoB,CACxC,OAAO,EAAE,sBAAsB,EAC/B,QAAQ,EAAE,uBAAuB,EACjC,MAAM,EAAE,aAAa,GACpB,OAAO,CAAC,wBAAwB,CAAC,CASnC;AAED;;;;GAIG;AACH,wBAAsB,uBAAuB,CAC3C,OAAO,EAAE,sBAAsB,EAC/B,QAAQ,EAAE,uBAAuB,EACjC,MAAM,EAAE,wBAAwB,GAC/B,OAAO,CAAC,SAAS,eAAe,EAAE,CAAC,CAkBrC;AA4FD;;;GAGG;AACH,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,OAAO,GAAG,OAAO,CAa5D"}
|
|
@@ -28,6 +28,11 @@ export declare function createArtifactQueryChecker(runtime: Pick<SixbRuntimeCont
|
|
|
28
28
|
* its author through `checker`, and returns what each check learned by query name, for the kind's
|
|
29
29
|
* own check. Fails closed: a version that holds a query is refused without one. A file artifact is
|
|
30
30
|
* delivered as it is, so its one file is never read as a query.
|
|
31
|
+
*
|
|
32
|
+
* A designed document's query may start from the object that holds it, `holder`, an object of
|
|
33
|
+
* the type it names: it is checked from every object of that type its author reads.
|
|
31
34
|
*/
|
|
32
|
-
export declare function checkArtifactQueries(blobStorage: ArtifactBlobStorage, kind: ArtifactKind, files: readonly ArtifactFile[], checker: ArtifactQueryChecker | undefined
|
|
35
|
+
export declare function checkArtifactQueries(blobStorage: ArtifactBlobStorage, kind: ArtifactKind, files: readonly ArtifactFile[], checker: ArtifactQueryChecker | undefined, options?: {
|
|
36
|
+
readonly holder?: string;
|
|
37
|
+
}): Promise<ReadonlyMap<string, CheckedArtifactQuery>>;
|
|
33
38
|
//# sourceMappingURL=queries.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"queries.d.ts","sourceRoot":"","sources":["../../../src/artifacts/publish/queries.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAA;AAC7D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAA;AACjE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,UAAU,CAAA;AAE5C,OAAO,EAGL,KAAK,aAAa,EAElB,KAAK,oBAAoB,
|
|
1
|
+
{"version":3,"file":"queries.d.ts","sourceRoot":"","sources":["../../../src/artifacts/publish/queries.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAA;AAC7D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAA;AACjE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,UAAU,CAAA;AAE5C,OAAO,EAGL,KAAK,aAAa,EAElB,KAAK,oBAAoB,EAG1B,MAAM,YAAY,CAAA;AAEnB,OAAO,EAAE,KAAK,mBAAmB,EAAqC,MAAM,SAAS,CAAA;AAGrF;;;;;;GAMG;AACH,MAAM,MAAM,oBAAoB,GAAG,CAAC,KAAK,EAAE,aAAa,KAAK,OAAO,CAAC,oBAAoB,CAAC,CAAA;AAE1F;;;;;;;;;;GAUG;AACH,wBAAgB,0BAA0B,CACxC,OAAO,EAAE,IAAI,CACX,kBAAkB,EAClB,cAAc,GAAG,UAAU,GAAG,WAAW,GAAG,sBAAsB,GAAG,eAAe,CACrF,GACA,oBAAoB,CAmBtB;AAyKD;;;;;;;;GAQG;AACH,wBAAsB,oBAAoB,CACxC,WAAW,EAAE,mBAAmB,EAChC,IAAI,EAAE,YAAY,EAClB,KAAK,EAAE,SAAS,YAAY,EAAE,EAC9B,OAAO,EAAE,oBAAoB,GAAG,SAAS,EACzC,OAAO,GAAE;IAAE,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAA;CAAO,GACzC,OAAO,CAAC,WAAW,CAAC,MAAM,EAAE,oBAAoB,CAAC,CAAC,CAyDpD"}
|
|
@@ -13,8 +13,11 @@ export type ArtifactQueryAnswers = Readonly<Record<string, ArtifactQueryAnswer>>
|
|
|
13
13
|
* refusal in the words the API gives a reader. Any other failure stays internal.
|
|
14
14
|
*/
|
|
15
15
|
export declare function answerArtifactQuery(read: () => Promise<ArtifactQueryResult | null>): Promise<ArtifactQueryAnswer>;
|
|
16
|
-
/**
|
|
17
|
-
|
|
16
|
+
/**
|
|
17
|
+
* Every query a version holds, each answered by `read`: as whoever it reads as. A designed
|
|
18
|
+
* document's holder, which its fields read, is answered too.
|
|
19
|
+
*/
|
|
20
|
+
export declare function answerArtifactQueries(version: Pick<ArtifactVersionRecord, "files" | "outline">, read: (name: string) => Promise<ArtifactQueryResult | null>): Promise<ArtifactQueryAnswers>;
|
|
18
21
|
/** Answers kept as JSON, or `null` when the text holds none. */
|
|
19
22
|
export declare function parseArtifactQueryAnswers(text: string): ArtifactQueryAnswers | null;
|
|
20
23
|
//# sourceMappingURL=query-answers.d.ts.map
|