@sixb/core 0.2.1 → 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 +60 -54
- 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/cancel.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 +6 -4
- package/dist/agents/index.d.ts.map +1 -1
- package/dist/agents/index.js +95 -82
- 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-plan.d.ts +15 -1
- package/dist/agents/run-plan.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 +17 -2
- package/dist/agents/run-session.d.ts.map +1 -1
- package/dist/agents/skills.d.ts +3 -0
- package/dist/agents/skills.d.ts.map +1 -1
- package/dist/agents/step-limits.d.ts +6 -0
- package/dist/agents/step-limits.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 +8 -2
- package/dist/agents/streams/protocol.d.ts.map +1 -1
- package/dist/agents/tool-files.d.ts +3 -1
- package/dist/agents/tool-files.d.ts.map +1 -1
- package/dist/agents/validation.d.ts +1 -1
- package/dist/agents/validation.d.ts.map +1 -1
- package/dist/agents/web.d.ts +47 -0
- package/dist/agents/web.d.ts.map +1 -0
- 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 +67 -39
- 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/authorization/resolve.d.ts +4 -3
- package/dist/authorization/resolve.d.ts.map +1 -1
- package/dist/authorization/types.d.ts +5 -5
- package/dist/authorization/types.d.ts.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 +70 -64
- 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-3x3bebz7.js → chunk-0k3r5kb3.js} +414 -101
- package/dist/chunk-0k3r5kb3.js.map +51 -0
- package/dist/{chunk-e5wf5vz0.js → chunk-0kgrghqx.js} +13 -1
- package/dist/chunk-0kgrghqx.js.map +10 -0
- package/dist/{chunk-2pk5hjj9.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-8yzhjawq.js → chunk-26qet7wh.js} +64 -23
- package/dist/{chunk-8yzhjawq.js.map → chunk-26qet7wh.js.map} +5 -5
- package/dist/{chunk-cb21tx14.js → chunk-2by73sm2.js} +1055 -201
- 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-nghc7eq0.js → chunk-3723kgba.js} +1 -1
- 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-fg1db9xx.js → chunk-48c1z8nj.js} +10 -10
- package/dist/chunk-48c1z8nj.js.map +10 -0
- package/dist/{chunk-rjeeyssy.js → chunk-4j0sagwv.js} +134 -19
- package/dist/{chunk-rjeeyssy.js.map → chunk-4j0sagwv.js.map} +11 -10
- package/dist/{chunk-qsg8rw04.js → chunk-5qqmndhm.js} +2 -2
- package/dist/{chunk-scyq22td.js → chunk-5rqqp8cr.js} +19 -4
- package/dist/chunk-5rqqp8cr.js.map +12 -0
- package/dist/{chunk-ax10ft8d.js → chunk-6gtxshcc.js} +6 -6
- package/dist/{chunk-ax10ft8d.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-8wsjr52f.js → chunk-7qe46788.js} +1 -1
- package/dist/{chunk-edx8xcsm.js → chunk-7z5rkf0m.js} +29 -6
- package/dist/chunk-7z5rkf0m.js.map +13 -0
- package/dist/{chunk-23s66j86.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-tvbmh7tj.js → chunk-8p7bze4c.js} +14 -10
- package/dist/chunk-8p7bze4c.js.map +18 -0
- package/dist/{chunk-jftd33rc.js → chunk-8t2ynwg0.js} +105 -9
- package/dist/chunk-8t2ynwg0.js.map +11 -0
- package/dist/{chunk-qbrmpgvv.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-tvefbgvw.js → chunk-az95tsh3.js} +4 -2
- package/dist/chunk-az95tsh3.js.map +11 -0
- 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-ks87m383.js → chunk-bkmnd7zq.js} +556 -262
- 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-7hd2ez3q.js → chunk-c4nrycdy.js} +1 -1
- 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-z3evap21.js → chunk-e9w4mgdh.js} +314 -225
- package/dist/{chunk-z3evap21.js.map → chunk-e9w4mgdh.js.map} +22 -20
- 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-nqnfz3jg.js → chunk-hkaa807g.js} +18 -7
- package/dist/{chunk-nqnfz3jg.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-b7a97n8b.js → chunk-k66rp2hr.js} +7 -7
- package/dist/{chunk-b7a97n8b.js.map → chunk-k66rp2hr.js.map} +2 -2
- package/dist/chunk-kr6dx38r.js +25 -0
- package/dist/chunk-kr6dx38r.js.map +10 -0
- package/dist/{chunk-w53trr0c.js → chunk-kv0kvknv.js} +14 -14
- package/dist/{chunk-w53trr0c.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-jk97v21j.js → chunk-n4zzaf6q.js} +3 -2
- package/dist/chunk-n4zzaf6q.js.map +10 -0
- package/dist/{chunk-cgznz22f.js → chunk-n68vz95m.js} +5 -5
- package/dist/{chunk-cgznz22f.js.map → chunk-n68vz95m.js.map} +3 -3
- package/dist/{chunk-neftrg0n.js → chunk-p351afzm.js} +14 -14
- package/dist/{chunk-neftrg0n.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-jhbk10wf.js → chunk-q9nkpr8k.js} +1 -1
- 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-47e09r7z.js → chunk-qttqe1ah.js} +86 -6
- package/dist/{chunk-47e09r7z.js.map → chunk-qttqe1ah.js.map} +5 -4
- package/dist/{chunk-4zm1k3xj.js → chunk-r2psmn42.js} +1 -1
- package/dist/{chunk-31khg3g0.js → chunk-rt9deb92.js} +76 -4
- package/dist/{chunk-31khg3g0.js.map → chunk-rt9deb92.js.map} +3 -3
- package/dist/{chunk-r1cxq7vv.js → chunk-rtdrm592.js} +2 -2
- package/dist/{chunk-t5daew4g.js → chunk-s5n9617r.js} +18 -18
- package/dist/{chunk-t5daew4g.js.map → chunk-s5n9617r.js.map} +1 -1
- package/dist/{chunk-m3qe54bb.js → chunk-smnt672s.js} +1 -1
- package/dist/{chunk-21q0j5f2.js → chunk-stmxh0hv.js} +2 -2
- package/dist/{chunk-y2x2935j.js → chunk-sysnvjce.js} +5 -5
- package/dist/{chunk-y2x2935j.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-dz7a4t3a.js → chunk-vzkxqf8h.js} +26 -21
- package/dist/{chunk-dz7a4t3a.js.map → chunk-vzkxqf8h.js.map} +8 -8
- package/dist/{chunk-6b61s40c.js → chunk-w3t94hm6.js} +1 -1
- package/dist/{chunk-t9xyr7y9.js → chunk-w9s23r24.js} +1218 -101
- package/dist/chunk-w9s23r24.js.map +30 -0
- package/dist/{chunk-9rh8ncs5.js → chunk-wa05txmk.js} +20 -7
- package/dist/{chunk-9rh8ncs5.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-agn8d8ys.js → chunk-xtztwpkh.js} +1 -1
- 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-ratj7t3t.js → chunk-z0t4p2sk.js} +465 -76
- package/dist/chunk-z0t4p2sk.js.map +47 -0
- package/dist/{chunk-0g5nyx0k.js → chunk-zeykm8my.js} +2 -2
- 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 +13 -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 +61 -55
- 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 +60 -54
- package/dist/execution/primitive.js.map +1 -1
- package/dist/execution/request.js +57 -51
- 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 +12 -10
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +101 -93
- 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 +33 -30
- 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/catalog.d.ts +16 -0
- package/dist/models/catalog.d.ts.map +1 -1
- package/dist/models/definitions.d.ts +1 -1
- package/dist/models/definitions.d.ts.map +1 -1
- package/dist/models/execution/index.js +36 -33
- package/dist/models/execution/index.js.map +1 -1
- package/dist/models/execution/model-call-recorder.d.ts +1 -1
- package/dist/models/execution/model-call-recorder.d.ts.map +1 -1
- package/dist/models/execution/web-search.d.ts +7 -0
- package/dist/models/execution/web-search.d.ts.map +1 -0
- package/dist/models/index.d.ts +3 -1
- package/dist/models/index.d.ts.map +1 -1
- package/dist/models/index.js +5 -3
- package/dist/models/index.js.map +1 -1
- package/dist/models/language-model.d.ts +12 -0
- package/dist/models/language-model.d.ts.map +1 -1
- package/dist/models/web-search-model.d.ts +66 -0
- package/dist/models/web-search-model.d.ts.map +1 -0
- package/dist/objects/artifact-refs.d.ts +5 -0
- package/dist/objects/artifact-refs.d.ts.map +1 -0
- package/dist/objects/index.js +63 -58
- 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/executor.d.ts.map +1 -1
- package/dist/objects/query/index.d.ts +1 -0
- package/dist/objects/query/index.d.ts.map +1 -1
- package/dist/objects/query/index.js +35 -29
- 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/query/sort-ties.d.ts +11 -0
- package/dist/objects/query/sort-ties.d.ts.map +1 -0
- 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 +40 -37
- 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 +33 -30
- 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 +4 -1
- 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 +57 -36
- package/dist/runtime/internal.js.map +1 -1
- package/dist/runtime/resolve-definitions.d.ts.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/index.d.ts +1 -0
- package/dist/security/index.d.ts.map +1 -1
- package/dist/security/internal.js +1 -1
- package/dist/security/registry.d.ts +2 -0
- package/dist/security/registry.d.ts.map +1 -1
- package/dist/security/view-conditions.d.ts.map +1 -1
- package/dist/security/visibility-keys.d.ts +19 -0
- package/dist/security/visibility-keys.d.ts.map +1 -0
- 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 +74 -33
- 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/agents/in-memory.d.ts +8 -2
- package/dist/storage/agents/in-memory.d.ts.map +1 -1
- package/dist/storage/agents/index.d.ts +1 -1
- package/dist/storage/agents/index.d.ts.map +1 -1
- package/dist/storage/agents/provider.d.ts +8 -2
- package/dist/storage/agents/provider.d.ts.map +1 -1
- package/dist/storage/agents/provider.js +12 -6
- package/dist/storage/agents/provider.js.map +1 -1
- package/dist/storage/agents/types.d.ts +42 -2
- package/dist/storage/agents/types.d.ts.map +1 -1
- package/dist/storage/ai-cost/provider.js +4 -4
- package/dist/storage/ai-limits/enforcement.js +4 -4
- package/dist/storage/ai-limits/provider.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 +23 -7
- package/dist/storage/connector-connections/provider.js.map +6 -6
- 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 +20 -13
- package/dist/storage/index.d.ts.map +1 -1
- package/dist/storage/index.js +61 -51
- 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 +83 -7
- 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/migrations/types.d.ts +6 -0
- package/dist/storage/migrations/types.d.ts.map +1 -1
- 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/index.d.ts +1 -1
- package/dist/storage/objects/index.d.ts.map +1 -1
- package/dist/storage/objects/query-preparation.d.ts +13 -0
- package/dist/storage/objects/query-preparation.d.ts.map +1 -1
- package/dist/storage/objects/read-scope.d.ts.map +1 -1
- package/dist/storage/objects/types.d.ts +70 -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 +41 -38
- 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/agent-storage-contract.d.ts.map +1 -1
- package/dist/testing/ai-limit-storage-contract.d.ts.map +1 -1
- package/dist/testing/ai-model-call-groups-contract.d.ts.map +1 -1
- package/dist/testing/ai-usage-storage-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 +6497 -3090
- package/dist/testing/index.js.map +32 -23
- 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-conditional-read-scope-contract.d.ts.map +1 -1
- 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 +72 -40
- 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 +68 -62
- 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/README.md +2 -1
- package/src/agents/cancel.ts +7 -1
- package/src/agents/execution.ts +10 -2
- package/src/agents/fork.ts +12 -4
- package/src/agents/index.ts +16 -2
- package/src/agents/request.ts +42 -31
- package/src/agents/run-artifacts.ts +290 -46
- package/src/agents/run-plan.ts +31 -0
- package/src/agents/run-session-http.ts +19 -12
- package/src/agents/run-session-serve.ts +18 -2
- package/src/agents/run-session.ts +39 -12
- package/src/agents/skills.ts +3 -0
- package/src/agents/step-limits.ts +6 -0
- package/src/agents/streams/protocol.ts +14 -14
- package/src/agents/tool-files.ts +11 -3
- package/src/agents/validation.ts +12 -0
- package/src/agents/web.ts +218 -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/authorization/resolve.ts +9 -11
- package/src/authorization/types.ts +5 -5
- 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 +93 -7
- 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 +37 -22
- package/src/http/api-routes.ts +105 -4
- package/src/index.ts +24 -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/models/catalog.ts +52 -3
- package/src/models/definitions.ts +2 -0
- package/src/models/execution/README.md +22 -2
- package/src/models/execution/model-call-recorder.ts +1 -1
- package/src/models/execution/web-search.ts +186 -0
- package/src/models/index.ts +12 -0
- package/src/models/language-model.ts +12 -0
- package/src/models/web-search-model.ts +152 -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/executor.ts +7 -3
- package/src/objects/query/index.ts +1 -0
- package/src/objects/query/ir.ts +2 -0
- package/src/objects/query/scalar-values.ts +5 -3
- package/src/objects/query/sort-ties.ts +16 -0
- 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 +7 -2
- 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/resolve-definitions.ts +4 -0
- package/src/runtime/sixb.ts +14 -5
- package/src/scheduler/index.ts +0 -2
- package/src/security/index.ts +1 -0
- package/src/security/registry.ts +2 -0
- package/src/security/view-conditions.ts +4 -3
- package/src/security/visibility-keys.ts +144 -0
- 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/agents/in-memory.ts +29 -2
- package/src/storage/agents/index.ts +2 -0
- package/src/storage/agents/provider.ts +57 -1
- package/src/storage/agents/types.ts +45 -2
- 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 +6 -3
- package/src/storage/connector-connections/index.ts +1 -0
- package/src/storage/connector-connections/provider/connections.ts +2 -2
- 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 +69 -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/migrations/types.ts +6 -0
- package/src/storage/objects/in-memory/query.ts +6 -2
- package/src/storage/objects/in-memory/storage.ts +81 -0
- package/src/storage/objects/index.ts +2 -0
- package/src/storage/objects/query-preparation.ts +59 -1
- package/src/storage/objects/read-scope.ts +109 -2
- package/src/storage/objects/types.ts +59 -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/agent-storage-contract.ts +70 -0
- package/src/testing/ai-limit-storage-contract.ts +11 -1
- package/src/testing/ai-model-call-groups-contract.ts +2 -1
- package/src/testing/ai-usage-storage-contract.ts +15 -2
- 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 +117 -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-conditional-read-scope-contract.ts +267 -5
- package/src/testing/object-query-contract.ts +168 -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-3x3bebz7.js.map +0 -49
- 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-aqyjb86c.js +0 -587
- package/dist/chunk-aqyjb86c.js.map +0 -18
- package/dist/chunk-az47zep4.js +0 -41
- package/dist/chunk-az47zep4.js.map +0 -10
- package/dist/chunk-cb21tx14.js.map +0 -71
- 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-edx8xcsm.js.map +0 -13
- package/dist/chunk-epyfm23v.js +0 -299
- package/dist/chunk-epyfm23v.js.map +0 -11
- package/dist/chunk-fb3feg1e.js +0 -298
- package/dist/chunk-fb3feg1e.js.map +0 -12
- package/dist/chunk-fg1db9xx.js.map +0 -10
- package/dist/chunk-h05rg3bx.js +0 -314
- package/dist/chunk-h05rg3bx.js.map +0 -12
- package/dist/chunk-hz5d43gn.js.map +0 -10
- package/dist/chunk-jbw70d6t.js.map +0 -10
- package/dist/chunk-jftd33rc.js.map +0 -11
- package/dist/chunk-jk97v21j.js.map +0 -10
- package/dist/chunk-jspskey0.js.map +0 -10
- package/dist/chunk-kfee1h52.js.map +0 -13
- package/dist/chunk-ks87m383.js.map +0 -44
- 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-ratj7t3t.js.map +0 -45
- package/dist/chunk-s3we74h8.js.map +0 -12
- package/dist/chunk-scyq22td.js.map +0 -12
- package/dist/chunk-t9xyr7y9.js.map +0 -22
- package/dist/chunk-tvbmh7tj.js.map +0 -18
- package/dist/chunk-tvefbgvw.js.map +0 -11
- package/dist/chunk-w976a4me.js.map +0 -10
- 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-2pk5hjj9.js.map → chunk-186k5yz3.js.map} +0 -0
- /package/dist/{chunk-nghc7eq0.js.map → chunk-3723kgba.js.map} +0 -0
- /package/dist/{chunk-ytzcxtpt.js.map → chunk-3ba89vm7.js.map} +0 -0
- /package/dist/{chunk-qsg8rw04.js.map → chunk-5qqmndhm.js.map} +0 -0
- /package/dist/{chunk-8wsjr52f.js.map → chunk-7qe46788.js.map} +0 -0
- /package/dist/{chunk-23s66j86.js.map → chunk-855w9nvw.js.map} +0 -0
- /package/dist/{chunk-qbrmpgvv.js.map → chunk-8tqnsx3q.js.map} +0 -0
- /package/dist/{chunk-s038wa5v.js.map → chunk-b9qfh2ya.js.map} +0 -0
- /package/dist/{chunk-7hd2ez3q.js.map → chunk-c4nrycdy.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-jhbk10wf.js.map → chunk-q9nkpr8k.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-m3qe54bb.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
- /package/dist/{chunk-agn8d8ys.js.map → chunk-xtztwpkh.js.map} +0 -0
- /package/dist/{chunk-0g5nyx0k.js.map → chunk-zeykm8my.js.map} +0 -0
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import {
|
|
3
3
|
validateSchemaValue2,
|
|
4
4
|
normalizeSchemaValue2
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-3zagkr6w.js";
|
|
6
6
|
import {
|
|
7
7
|
sniffFileMediaType2,
|
|
8
8
|
isFileRef2
|
|
@@ -23,31 +23,60 @@ import {
|
|
|
23
23
|
requestAgentRunCancel2,
|
|
24
24
|
listSubagentThreadRuns2,
|
|
25
25
|
subagentSandboxFiles2
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-e9w4mgdh.js";
|
|
27
27
|
import {
|
|
28
28
|
createSixbError2,
|
|
29
29
|
captureSixbFailure2,
|
|
30
30
|
isSixbError2
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-mvz89age.js";
|
|
32
32
|
import {
|
|
33
33
|
principalsEqual2
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-0k3r5kb3.js";
|
|
35
35
|
import {
|
|
36
36
|
resolveAgentPropertyClearance2,
|
|
37
37
|
resolveAgentExecutionAuthorization2,
|
|
38
38
|
userCanRunAgent2,
|
|
39
39
|
resolveInheritedAgentExecutionAuthorization2
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-p351afzm.js";
|
|
41
|
+
import {
|
|
42
|
+
indexModelBindings,
|
|
43
|
+
WebSearchModelResponseError2,
|
|
44
|
+
MAX_WEB_SEARCH_RESULTS,
|
|
45
|
+
assertWebSearchModel,
|
|
46
|
+
validateWebSearchHits,
|
|
47
|
+
estimateModelCall
|
|
48
|
+
} from "./chunk-qttqe1ah.js";
|
|
41
49
|
import {
|
|
42
50
|
AgentStorageError2,
|
|
43
51
|
createSubagentRunId2,
|
|
44
52
|
createSubagentThreadId2,
|
|
45
53
|
createSubagentExecutionId2,
|
|
46
54
|
createAgentRunExecutionToken2
|
|
47
|
-
} from "./chunk-
|
|
55
|
+
} from "./chunk-7z5rkf0m.js";
|
|
48
56
|
import {
|
|
49
57
|
ARTIFACT_LIMITS2
|
|
50
|
-
} from "./chunk-
|
|
58
|
+
} from "./chunk-9vsc919v.js";
|
|
59
|
+
import {
|
|
60
|
+
conversationThreadId2,
|
|
61
|
+
announceArtifactUpdates,
|
|
62
|
+
firstArtifactDocument,
|
|
63
|
+
withMergedWrite,
|
|
64
|
+
missingBoardPreviews2,
|
|
65
|
+
storeBoardPreviews2,
|
|
66
|
+
prepareArtifactVersion2,
|
|
67
|
+
storeArtifactVersion2,
|
|
68
|
+
artifactVersionWarnings2,
|
|
69
|
+
artifactAccessRule2,
|
|
70
|
+
artifactTransactionRules,
|
|
71
|
+
artifactQueryChecker2,
|
|
72
|
+
artifactPreviewRequester
|
|
73
|
+
} from "./chunk-w9s23r24.js";
|
|
74
|
+
import {
|
|
75
|
+
BOARD_PREVIEW_JOB2
|
|
76
|
+
} from "./chunk-a6fjkcne.js";
|
|
77
|
+
import {
|
|
78
|
+
ArtifactRequestError2
|
|
79
|
+
} from "./chunk-qds484t8.js";
|
|
51
80
|
import {
|
|
52
81
|
resolveLoggingService2
|
|
53
82
|
} from "./chunk-1vg43g9q.js";
|
|
@@ -59,43 +88,36 @@ import {
|
|
|
59
88
|
agentRunFinishedEvent2,
|
|
60
89
|
agentRunStreamEventBase2,
|
|
61
90
|
agentRunStreamIdempotencyKey2
|
|
62
|
-
} from "./chunk-
|
|
63
|
-
import {
|
|
64
|
-
ArtifactRequestError2
|
|
65
|
-
} from "./chunk-kwfhd1g0.js";
|
|
66
|
-
import {
|
|
67
|
-
conversationThreadId2,
|
|
68
|
-
prepareArtifactVersion2,
|
|
69
|
-
storeArtifactVersion2,
|
|
70
|
-
artifactVersionWarnings2,
|
|
71
|
-
artifactAccessRule2,
|
|
72
|
-
artifactQueryChecker2
|
|
73
|
-
} from "./chunk-t9xyr7y9.js";
|
|
91
|
+
} from "./chunk-48c1z8nj.js";
|
|
74
92
|
import {
|
|
75
93
|
ModelUsageRecordingError2,
|
|
76
94
|
createAiModelCallLimitController2,
|
|
77
95
|
AiModelCallRecorder2
|
|
78
|
-
} from "./chunk-
|
|
96
|
+
} from "./chunk-k66rp2hr.js";
|
|
97
|
+
import {
|
|
98
|
+
appendArtifactLive2,
|
|
99
|
+
changedBoards
|
|
100
|
+
} from "./chunk-38yvdqzd.js";
|
|
79
101
|
import {
|
|
80
102
|
renderOntologyDocs2
|
|
81
|
-
} from "./chunk-
|
|
103
|
+
} from "./chunk-bc3y6gff.js";
|
|
82
104
|
import {
|
|
83
105
|
SIXB_API_ROUTES2,
|
|
84
106
|
matchesPathPattern2,
|
|
85
107
|
normalizeRoutePath2
|
|
86
|
-
} from "./chunk-
|
|
108
|
+
} from "./chunk-8t2ynwg0.js";
|
|
87
109
|
import {
|
|
88
110
|
assertValidSchema
|
|
89
|
-
} from "./chunk-
|
|
111
|
+
} from "./chunk-rtdrm592.js";
|
|
112
|
+
import {
|
|
113
|
+
resolveLanguageModel2
|
|
114
|
+
} from "./chunk-3723kgba.js";
|
|
90
115
|
import {
|
|
91
116
|
schemaRecordToJsonSchema2
|
|
92
|
-
} from "./chunk-
|
|
117
|
+
} from "./chunk-0kgrghqx.js";
|
|
93
118
|
import {
|
|
94
119
|
ensureExecutionRecord2
|
|
95
|
-
} from "./chunk-
|
|
96
|
-
import {
|
|
97
|
-
resolveLanguageModel2
|
|
98
|
-
} from "./chunk-nghc7eq0.js";
|
|
120
|
+
} from "./chunk-8tqnsx3q.js";
|
|
99
121
|
import {
|
|
100
122
|
RuntimeError2
|
|
101
123
|
} from "./chunk-m4ehq95f.js";
|
|
@@ -113,7 +135,7 @@ import {
|
|
|
113
135
|
AGENT_TOKEN_RATE_SAMPLES2,
|
|
114
136
|
AGENT_TOKEN_RATE_MIN_BYTES_PER_TOKEN2,
|
|
115
137
|
AGENT_TOKEN_RATE_MAX_BYTES_PER_TOKEN
|
|
116
|
-
} from "./chunk-
|
|
138
|
+
} from "./chunk-n4zzaf6q.js";
|
|
117
139
|
import {
|
|
118
140
|
openFileRef2
|
|
119
141
|
} from "./chunk-a3faa34j.js";
|
|
@@ -505,10 +527,248 @@ function listMessageAttachments2(message) {
|
|
|
505
527
|
] : []);
|
|
506
528
|
});
|
|
507
529
|
}
|
|
530
|
+
// src/models/execution/web-search.ts
|
|
531
|
+
import { randomUUID } from "crypto";
|
|
532
|
+
function bindWebSearchModels(catalog, session) {
|
|
533
|
+
if (!catalog)
|
|
534
|
+
return;
|
|
535
|
+
const index = indexModelBindings(catalog.list().map(({ model }) => Object.freeze({
|
|
536
|
+
providerId: model.providerId,
|
|
537
|
+
modelId: model.modelId,
|
|
538
|
+
definition: model.definition,
|
|
539
|
+
search: (input) => executeWebSearch(session, model, input)
|
|
540
|
+
})), "webSearch", assertWebSearchModel);
|
|
541
|
+
const defaultEntry = index.getByRef(catalog.default);
|
|
542
|
+
if (!defaultEntry)
|
|
543
|
+
throw new Error("[SixbModels] The default web search model is not listed.");
|
|
544
|
+
return Object.freeze({ ...index, default: defaultEntry });
|
|
545
|
+
}
|
|
546
|
+
async function executeWebSearch(session, binding, input) {
|
|
547
|
+
const request = prepareRequest(input);
|
|
548
|
+
const signal = AbortSignal.any([session.signal(input.signal), AbortSignal.timeout(30000)]);
|
|
549
|
+
signal.throwIfAborted();
|
|
550
|
+
const accounting = await session.accounting();
|
|
551
|
+
accounting.assertHealthy();
|
|
552
|
+
const model = await binding.resolve?.() ?? binding;
|
|
553
|
+
assertWebSearchModel(model);
|
|
554
|
+
if (model.providerId !== binding.providerId || model.modelId !== binding.modelId) {
|
|
555
|
+
throw new TypeError("[SixbModels] Resolved web search model identity does not match its binding.");
|
|
556
|
+
}
|
|
557
|
+
signal.throwIfAborted();
|
|
558
|
+
const callId = `call_${randomUUID()}`;
|
|
559
|
+
await accounting.admitCall({
|
|
560
|
+
callId,
|
|
561
|
+
providerId: model.providerId,
|
|
562
|
+
modelId: model.modelId,
|
|
563
|
+
modelKind: "web-search",
|
|
564
|
+
inputTokens: {
|
|
565
|
+
status: "estimated",
|
|
566
|
+
tokens: Math.ceil(new TextEncoder().encode(request.query).byteLength / 4),
|
|
567
|
+
method: "utf8BytesDividedByFour"
|
|
568
|
+
},
|
|
569
|
+
outputTokenAllowance: 0,
|
|
570
|
+
reservationCost: estimateReservationCost(model, request.maxResults)
|
|
571
|
+
});
|
|
572
|
+
let result;
|
|
573
|
+
try {
|
|
574
|
+
signal.throwIfAborted();
|
|
575
|
+
result = await model.search({ ...request, signal });
|
|
576
|
+
} catch (error) {
|
|
577
|
+
if (error instanceof WebSearchModelResponseError2) {
|
|
578
|
+
await recordWebSearch(accounting, model, callId, error.metadata);
|
|
579
|
+
} else {
|
|
580
|
+
await accounting.markCallUnknown(callId);
|
|
581
|
+
}
|
|
582
|
+
throw error;
|
|
583
|
+
}
|
|
584
|
+
await recordWebSearch(accounting, model, callId, result ?? {});
|
|
585
|
+
signal.throwIfAborted();
|
|
586
|
+
try {
|
|
587
|
+
return { ...result, results: validateWebSearchHits(result?.results, request.maxResults) };
|
|
588
|
+
} catch (cause) {
|
|
589
|
+
throw new WebSearchModelResponseError2("[SixbModels] Invalid web search response.", model.providerId, model.modelId, result ?? {}, { cause });
|
|
590
|
+
}
|
|
591
|
+
}
|
|
592
|
+
function prepareRequest(input) {
|
|
593
|
+
const query = input?.query;
|
|
594
|
+
if (typeof query !== "string" || !query.trim()) {
|
|
595
|
+
throw new TypeError("[SixbModels] Web search requires a nonempty query.");
|
|
596
|
+
}
|
|
597
|
+
const maxResults = input.maxResults;
|
|
598
|
+
if (typeof maxResults !== "number" || !Number.isSafeInteger(maxResults)) {
|
|
599
|
+
throw new TypeError("[SixbModels] Web search maxResults must be an integer.");
|
|
600
|
+
}
|
|
601
|
+
const allowedDomains = domains(input.allowedDomains, "allowedDomains");
|
|
602
|
+
const blockedDomains = domains(input.blockedDomains, "blockedDomains");
|
|
603
|
+
return {
|
|
604
|
+
query: query.trim(),
|
|
605
|
+
maxResults: Math.min(Math.max(maxResults, 1), MAX_WEB_SEARCH_RESULTS),
|
|
606
|
+
...allowedDomains === undefined ? {} : { allowedDomains },
|
|
607
|
+
...blockedDomains === undefined ? {} : { blockedDomains }
|
|
608
|
+
};
|
|
609
|
+
}
|
|
610
|
+
function domains(value, field) {
|
|
611
|
+
if (value === undefined)
|
|
612
|
+
return;
|
|
613
|
+
if (!Array.isArray(value) || value.some((entry) => typeof entry !== "string" || !entry.trim())) {
|
|
614
|
+
throw new TypeError(`[SixbModels] Web search ${field} must contain nonempty strings.`);
|
|
615
|
+
}
|
|
616
|
+
return Object.freeze([...value]);
|
|
617
|
+
}
|
|
618
|
+
function estimateReservationCost(model, maxResults) {
|
|
619
|
+
try {
|
|
620
|
+
return model.costEstimator?.estimateReservation?.({ maxResults });
|
|
621
|
+
} catch {
|
|
622
|
+
return;
|
|
623
|
+
}
|
|
624
|
+
}
|
|
625
|
+
async function recordWebSearch(accounting, model, callId, metadata) {
|
|
626
|
+
const usage = metadata.usage ?? {};
|
|
627
|
+
const estimate = estimateModelCall(model, {
|
|
628
|
+
usage,
|
|
629
|
+
route: metadata.route,
|
|
630
|
+
responseModelId: metadata.responseModelId
|
|
631
|
+
});
|
|
632
|
+
await accounting.onModelCallEnd({
|
|
633
|
+
callId,
|
|
634
|
+
modelKind: "web-search",
|
|
635
|
+
providerId: model.providerId,
|
|
636
|
+
modelId: model.modelId,
|
|
637
|
+
responseId: metadata.providerIds?.responseId ?? callId,
|
|
638
|
+
responseModelId: metadata.responseModelId,
|
|
639
|
+
providerIds: metadata.providerIds,
|
|
640
|
+
usage,
|
|
641
|
+
cost: metadata.reportedCost ? { status: "reported", ...metadata.reportedCost } : estimate,
|
|
642
|
+
...metadata.reportedCost ? { estimate } : {},
|
|
643
|
+
route: metadata.route
|
|
644
|
+
});
|
|
645
|
+
}
|
|
646
|
+
|
|
647
|
+
// src/agents/web.ts
|
|
648
|
+
var AGENT_WEB_TOOL_NAMES = ["web_search", "web_fetch"];
|
|
649
|
+
var MAX_DOMAINS = 1200;
|
|
650
|
+
var MAX_RULE_CHARACTERS = 4096;
|
|
651
|
+
function resolveAgentWebOptions(value) {
|
|
652
|
+
if (value === undefined || value === false)
|
|
653
|
+
return value;
|
|
654
|
+
if (typeof value !== "object" || value === null || Array.isArray(value)) {
|
|
655
|
+
throw new RuntimeError2("[Sixb] agent.web must be false, or { allowedDomains?, blockedDomains? }.");
|
|
656
|
+
}
|
|
657
|
+
for (const key of Object.keys(value)) {
|
|
658
|
+
if (key !== "allowedDomains" && key !== "blockedDomains") {
|
|
659
|
+
throw new RuntimeError2(`[Sixb] agent.web has an unknown option '${key}': use allowedDomains or blockedDomains.`);
|
|
660
|
+
}
|
|
661
|
+
}
|
|
662
|
+
const options = value;
|
|
663
|
+
const allowedDomains = canonicalRules(options.allowedDomains, "allowedDomains");
|
|
664
|
+
const blockedDomains = canonicalRules(options.blockedDomains, "blockedDomains");
|
|
665
|
+
return Object.freeze({
|
|
666
|
+
...allowedDomains ? { allowedDomains } : {},
|
|
667
|
+
...blockedDomains ? { blockedDomains } : {}
|
|
668
|
+
});
|
|
669
|
+
}
|
|
670
|
+
function assertNoProviderWebTools(models) {
|
|
671
|
+
const offered = models?.webSearch ? AGENT_WEB_TOOL_NAMES : ["web_fetch"];
|
|
672
|
+
for (const { provider, modelId, model } of models?.language?.list() ?? []) {
|
|
673
|
+
const name = model.providerToolNames?.find((tool) => offered.includes(tool));
|
|
674
|
+
if (name === undefined)
|
|
675
|
+
continue;
|
|
676
|
+
throw new RuntimeError2(`[Sixb] Language model '${provider}/${modelId}' declares the provider tool '${name}', a name Sixb gives the Agent's own web tool. Remove it from providerTools, or set agent.web: false to keep the provider's.`);
|
|
677
|
+
}
|
|
678
|
+
}
|
|
679
|
+
function webDomainPolicy2(options) {
|
|
680
|
+
const allowed = options.allowedDomains?.map((rule) => parseRule(rule, "allowedDomains"));
|
|
681
|
+
const blocked = options.blockedDomains?.map((rule) => parseRule(rule, "blockedDomains"));
|
|
682
|
+
return {
|
|
683
|
+
refuses(url) {
|
|
684
|
+
if (blocked?.some((rule) => matchesRule(url, rule)))
|
|
685
|
+
return "blocked";
|
|
686
|
+
if (allowed && !allowed.some((rule) => matchesRule(url, rule)))
|
|
687
|
+
return "not-allowed";
|
|
688
|
+
return;
|
|
689
|
+
}
|
|
690
|
+
};
|
|
691
|
+
}
|
|
692
|
+
function bindAgentWebSearch2(definitions, execution) {
|
|
693
|
+
const bound = bindWebSearchModels(definitions.models?.webSearch, {
|
|
694
|
+
signal: (signal) => signal ? AbortSignal.any([execution.signal, signal]) : execution.signal,
|
|
695
|
+
accounting: execution.accounting
|
|
696
|
+
});
|
|
697
|
+
return async (request, signal) => {
|
|
698
|
+
if (definitions.agent.web === false) {
|
|
699
|
+
throw createSixbError2("agent.execution_failed", "[Sixb] The Agent's web tools are off: agent.web is false.");
|
|
700
|
+
}
|
|
701
|
+
if (!bound) {
|
|
702
|
+
throw createSixbError2("agent.execution_failed", "[Sixb] The project has no web search model: set models.webSearch, or use a language model that offers one.");
|
|
703
|
+
}
|
|
704
|
+
return bound.default.model.search({ ...request, signal });
|
|
705
|
+
};
|
|
706
|
+
}
|
|
707
|
+
function canonicalRules(value, field) {
|
|
708
|
+
if (value === undefined)
|
|
709
|
+
return;
|
|
710
|
+
if (!Array.isArray(value) || value.length < 1 || value.length > MAX_DOMAINS) {
|
|
711
|
+
throw new RuntimeError2(`[Sixb] agent.web.${field} must list from 1 to ${MAX_DOMAINS} domains.`);
|
|
712
|
+
}
|
|
713
|
+
const rules = new Set;
|
|
714
|
+
for (const entry of value)
|
|
715
|
+
rules.add(canonicalRule(parseRule(entry, field)));
|
|
716
|
+
return Object.freeze([...rules]);
|
|
717
|
+
}
|
|
718
|
+
function parseRule(value, field) {
|
|
719
|
+
if (typeof value !== "string")
|
|
720
|
+
throw invalidRule(field, value);
|
|
721
|
+
const trimmed = value.trim();
|
|
722
|
+
if (!trimmed || trimmed.length > MAX_RULE_CHARACTERS || /[\\?#]/.test(trimmed)) {
|
|
723
|
+
throw invalidRule(field, value);
|
|
724
|
+
}
|
|
725
|
+
const wildcard = trimmed.startsWith("*.");
|
|
726
|
+
const filter = wildcard ? trimmed.slice(2) : trimmed;
|
|
727
|
+
const authority = filter.split("/", 1)[0] ?? "";
|
|
728
|
+
if (!authority || /[*:@]/.test(authority))
|
|
729
|
+
throw invalidRule(field, value);
|
|
730
|
+
let parsed;
|
|
731
|
+
try {
|
|
732
|
+
parsed = new URL(`https://${filter}`);
|
|
733
|
+
} catch {
|
|
734
|
+
throw invalidRule(field, value);
|
|
735
|
+
}
|
|
736
|
+
const hostname = canonicalHostname(parsed.hostname);
|
|
737
|
+
if (!isValidHostname(hostname))
|
|
738
|
+
throw invalidRule(field, value);
|
|
739
|
+
const pathPrefix = parsed.pathname.replace(/\/+$/, "");
|
|
740
|
+
return { hostname, wildcard, ...pathPrefix ? { pathPrefix } : {} };
|
|
741
|
+
}
|
|
742
|
+
function canonicalRule(rule) {
|
|
743
|
+
return `${rule.wildcard ? "*." : ""}${rule.hostname}${rule.pathPrefix ?? ""}`;
|
|
744
|
+
}
|
|
745
|
+
function matchesRule(url, rule) {
|
|
746
|
+
const hostname = canonicalHostname(url.hostname);
|
|
747
|
+
const hostnameMatches = rule.wildcard ? hostname !== rule.hostname && hostname.endsWith(`.${rule.hostname}`) : hostname === rule.hostname;
|
|
748
|
+
if (!hostnameMatches)
|
|
749
|
+
return false;
|
|
750
|
+
if (!rule.pathPrefix)
|
|
751
|
+
return true;
|
|
752
|
+
return url.pathname === rule.pathPrefix || url.pathname.startsWith(`${rule.pathPrefix}/`);
|
|
753
|
+
}
|
|
754
|
+
function canonicalHostname(value) {
|
|
755
|
+
return value.toLowerCase().replace(/\.$/, "");
|
|
756
|
+
}
|
|
757
|
+
function isValidHostname(hostname) {
|
|
758
|
+
if (!hostname || hostname.length > 253)
|
|
759
|
+
return false;
|
|
760
|
+
return hostname.split(".").every((label) => label.length >= 1 && label.length <= 63 && /^[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/.test(label));
|
|
761
|
+
}
|
|
762
|
+
function invalidRule(field, value) {
|
|
763
|
+
return new RuntimeError2(`[Sixb] agent.web.${field} has an invalid entry ${JSON.stringify(value)}: write a domain such as 'example.com', '*.example.com' or 'example.com/docs', without a scheme, port, query or credentials.`);
|
|
764
|
+
}
|
|
765
|
+
|
|
508
766
|
// src/agents/validation.ts
|
|
509
767
|
var AGENT_TOOL_NAME_PATTERN = /^[A-Za-z_][A-Za-z0-9_-]{0,63}$/;
|
|
510
768
|
var AGENT_RESERVED_TOOL_NAMES2 = [
|
|
511
769
|
"bash",
|
|
770
|
+
"bash_output",
|
|
771
|
+
"bash_stop",
|
|
512
772
|
"read",
|
|
513
773
|
"view_file",
|
|
514
774
|
"spawn_agent",
|
|
@@ -516,7 +776,10 @@ var AGENT_RESERVED_TOOL_NAMES2 = [
|
|
|
516
776
|
"message_agent",
|
|
517
777
|
"ask_parent",
|
|
518
778
|
"publish_artifact",
|
|
519
|
-
"
|
|
779
|
+
"update_artifact",
|
|
780
|
+
"open_artifact",
|
|
781
|
+
"publish_artifact_version",
|
|
782
|
+
...AGENT_WEB_TOOL_NAMES
|
|
520
783
|
];
|
|
521
784
|
function isAgentToolDefinition2(value) {
|
|
522
785
|
return isRecord(value) && value.kind === "agentTool" && typeof value.name === "string" && typeof value.description === "string" && isPlainRecord(value.input) && typeof value.handler === "function";
|
|
@@ -525,6 +788,9 @@ function assertValidAgentToolName(name) {
|
|
|
525
788
|
if (typeof name !== "string" || !AGENT_TOOL_NAME_PATTERN.test(name)) {
|
|
526
789
|
throw new AgentDefinitionError2("[Sixb] Agent tool name must be 1-64 characters, start with a letter or underscore, and contain only letters, numbers, underscores, or hyphens.");
|
|
527
790
|
}
|
|
791
|
+
if (AGENT_WEB_TOOL_NAMES.includes(name)) {
|
|
792
|
+
throw new AgentDefinitionError2(`[Sixb] Agent tool name '${name}' is reserved: Sixb gives the Agent its own ${name} tool. To search with Exa, set models.webSearch: [exaSearch(...)].`);
|
|
793
|
+
}
|
|
528
794
|
if (AGENT_RESERVED_TOOL_NAMES2.includes(name)) {
|
|
529
795
|
throw new AgentDefinitionError2(`[Sixb] Agent tool name '${name}' is reserved by the framework.`);
|
|
530
796
|
}
|
|
@@ -1713,12 +1979,13 @@ function agentRunArtifacts2(host, run, executionToken, sdk) {
|
|
|
1713
1979
|
return publisher;
|
|
1714
1980
|
};
|
|
1715
1981
|
const fence = { projectId, id: run.id, executionToken };
|
|
1982
|
+
const turnRunId = run.kind === "subagent" ? run.parentRunId : run.id;
|
|
1716
1983
|
const updatable = async (artifactId) => {
|
|
1717
1984
|
const [{ threadId }, { artifacts: reader }] = await Promise.all([publisherOf(), sdk()]);
|
|
1718
1985
|
const artifact = await requireArtifacts(storage).get({ projectId, id: artifactId });
|
|
1719
1986
|
if (!artifact)
|
|
1720
1987
|
return null;
|
|
1721
|
-
const access = await artifactAccessRule2(reader
|
|
1988
|
+
const access = await artifactAccessRule2(reader).publishAccess(artifact, threadId);
|
|
1722
1989
|
return access === "owner" || access === "update" ? artifact : null;
|
|
1723
1990
|
};
|
|
1724
1991
|
return {
|
|
@@ -1726,6 +1993,7 @@ function agentRunArtifacts2(host, run, executionToken, sdk) {
|
|
|
1726
1993
|
const [{ threadId }, { artifacts }] = await Promise.all([publisherOf(), sdk()]);
|
|
1727
1994
|
return (await artifacts.list({ threadId, limit })).artifacts;
|
|
1728
1995
|
},
|
|
1996
|
+
get: async (...args) => (await sdk()).artifacts.get(...args),
|
|
1729
1997
|
getVersion: async (...args) => (await sdk()).artifacts.getVersion(...args),
|
|
1730
1998
|
listVersions: async (...args) => (await sdk()).artifacts.listVersions(...args),
|
|
1731
1999
|
query: async (...args) => (await sdk()).artifacts.query(...args),
|
|
@@ -1748,33 +2016,120 @@ function agentRunArtifacts2(host, run, executionToken, sdk) {
|
|
|
1748
2016
|
if (!kind)
|
|
1749
2017
|
throw new Error("[Sixb] A new artifact needs a kind.");
|
|
1750
2018
|
const context = { projectId, storage: requireArtifacts(storage), blobStorage: blobs };
|
|
1751
|
-
const reading = artifactAccessRule2(reader
|
|
1752
|
-
const
|
|
1753
|
-
|
|
1754
|
-
artifactId
|
|
1755
|
-
|
|
1756
|
-
|
|
2019
|
+
const reading = artifactAccessRule2(reader);
|
|
2020
|
+
const write = async (files, baseRevision, document) => {
|
|
2021
|
+
const prepared = await prepareArtifactVersion2(context, {
|
|
2022
|
+
..."artifactId" in input ? {
|
|
2023
|
+
artifactId: input.artifactId,
|
|
2024
|
+
...baseRevision === undefined ? {} : { baseRevision }
|
|
2025
|
+
} : {},
|
|
2026
|
+
kind,
|
|
2027
|
+
title: input.title,
|
|
2028
|
+
files,
|
|
2029
|
+
author,
|
|
2030
|
+
owner,
|
|
2031
|
+
readable: async (artifact) => await reading.accessTo(artifact) !== "none",
|
|
2032
|
+
checkQuery: artifactQueryChecker2(reader),
|
|
2033
|
+
origin: { threadId, runId: run.id },
|
|
2034
|
+
turnRunId,
|
|
2035
|
+
...document ? { document } : {}
|
|
2036
|
+
});
|
|
2037
|
+
const ruleIn = await artifactTransactionRules(reader);
|
|
2038
|
+
const stored = await storage.transaction(async (tx) => {
|
|
2039
|
+
await assertAgentRunOwned(requireAgents(tx), fence);
|
|
2040
|
+
if (run.kind === "subagent")
|
|
2041
|
+
await assertParentActive(requireAgents(tx), run);
|
|
2042
|
+
if (execution.requestedBy) {
|
|
2043
|
+
await assertTakesPart(requireAgents(tx), { projectId, threadId, owner }, execution.requestedBy);
|
|
2044
|
+
}
|
|
2045
|
+
return storeArtifactVersion2({ ...context, storage: requireArtifacts(tx) }, prepared, (each) => ruleIn(tx).publishAccess(each, threadId));
|
|
2046
|
+
});
|
|
2047
|
+
return { prepared, stored };
|
|
2048
|
+
};
|
|
2049
|
+
const before = kind === "canvas" && "artifactId" in input ? await latestVersionOf(requireArtifacts(storage), projectId, input.artifactId) : null;
|
|
2050
|
+
const { prepared, stored, merged } = "artifactId" in input ? await withMergedWrite(context, {
|
|
2051
|
+
artifactId: input.artifactId,
|
|
1757
2052
|
kind,
|
|
1758
|
-
title: input.title,
|
|
1759
2053
|
files: input.files,
|
|
1760
|
-
|
|
1761
|
-
|
|
1762
|
-
|
|
1763
|
-
|
|
1764
|
-
|
|
1765
|
-
})
|
|
1766
|
-
|
|
1767
|
-
|
|
1768
|
-
|
|
1769
|
-
|
|
1770
|
-
|
|
1771
|
-
|
|
1772
|
-
|
|
1773
|
-
|
|
1774
|
-
|
|
1775
|
-
|
|
2054
|
+
...input.baseRevision === undefined ? {} : { baseRevision: input.baseRevision },
|
|
2055
|
+
...input.baseFiles === undefined ? {} : { baseFiles: input.baseFiles }
|
|
2056
|
+
}, async (each) => ({
|
|
2057
|
+
...await write(each.files, each.baseRevision, each.document),
|
|
2058
|
+
merged: each.merged
|
|
2059
|
+
})) : {
|
|
2060
|
+
...await write(input.files, undefined, await firstArtifactDocument(blobs, kind, input.files)),
|
|
2061
|
+
merged: false
|
|
2062
|
+
};
|
|
2063
|
+
if ("artifactId" in input)
|
|
2064
|
+
await announceArtifactUpdates(host.domainEvents, [stored.version]);
|
|
2065
|
+
if (kind === "canvas")
|
|
2066
|
+
await announceAgentBoards(host, turnRunId, before, stored.version);
|
|
2067
|
+
await artifactPreviewRequester(reader)(stored.version, input.rendersPreviews ? { delayMs: BOARD_PREVIEW_JOB2.graceMs, withoutAnswers: true } : {});
|
|
2068
|
+
return {
|
|
2069
|
+
...stored,
|
|
2070
|
+
warnings: await artifactVersionWarnings2(context, prepared, stored),
|
|
2071
|
+
...merged ? { merged: true } : {}
|
|
2072
|
+
};
|
|
2073
|
+
},
|
|
2074
|
+
async turnWrites() {
|
|
2075
|
+
return requireArtifacts(storage).listTurnWrites({ projectId, turnRunId });
|
|
2076
|
+
},
|
|
2077
|
+
async storePreviews({ previews, ...at }) {
|
|
2078
|
+
const [{ blobs }, version] = await Promise.all([sdk(), publishedVersion(at)]);
|
|
2079
|
+
return storeBoardPreviews2({ storage: requireArtifacts(storage), blobStorage: blobs }, version, previews);
|
|
2080
|
+
},
|
|
2081
|
+
async missingPreviews(at) {
|
|
2082
|
+
const missing = await missingBoardPreviews2(requireArtifacts(storage), await publishedVersion(at));
|
|
2083
|
+
return missing.map(({ board, themes }) => ({ board: board.id, themes }));
|
|
1776
2084
|
}
|
|
1777
2085
|
};
|
|
2086
|
+
async function publishedVersion(at) {
|
|
2087
|
+
const version = await requireArtifacts(storage).getVersion({
|
|
2088
|
+
projectId,
|
|
2089
|
+
artifactId: at.artifactId,
|
|
2090
|
+
version: at.version
|
|
2091
|
+
});
|
|
2092
|
+
const written = at.updatedAt.getTime();
|
|
2093
|
+
if (!version || version.origin?.runId !== run.id || version.updatedAt.getTime() !== written) {
|
|
2094
|
+
throw new ArtifactRequestError2("not_allowed", `[Sixb] Version ${at.version} of artifact '${at.artifactId}' does not hold what this run wrote at ${at.updatedAt.toISOString()}.`);
|
|
2095
|
+
}
|
|
2096
|
+
return version;
|
|
2097
|
+
}
|
|
2098
|
+
}
|
|
2099
|
+
async function latestVersionOf(storage, projectId, artifactId) {
|
|
2100
|
+
const artifact = await storage.get({ projectId, id: artifactId });
|
|
2101
|
+
if (!artifact)
|
|
2102
|
+
return null;
|
|
2103
|
+
return storage.getVersion({ projectId, artifactId, version: artifact.latestVersion });
|
|
2104
|
+
}
|
|
2105
|
+
async function announceAgentBoards(host, turnRunId, before, after) {
|
|
2106
|
+
const boards = changedBoards(before, after);
|
|
2107
|
+
if (boards.length === 0)
|
|
2108
|
+
return;
|
|
2109
|
+
try {
|
|
2110
|
+
await appendArtifactLive2(host.broker, host.projectId, after.artifactId, {
|
|
2111
|
+
name: "agent",
|
|
2112
|
+
payload: { runId: turnRunId, boards, at: new Date().toISOString() }
|
|
2113
|
+
});
|
|
2114
|
+
} catch (error) {
|
|
2115
|
+
console.warn(`[Sixb] Could not tell the viewers of '${after.artifactId}' what the Agent changes:`, error);
|
|
2116
|
+
}
|
|
2117
|
+
}
|
|
2118
|
+
async function announceAgentTurnEnded(host, turnRunId) {
|
|
2119
|
+
try {
|
|
2120
|
+
const writes = await requireArtifacts(host.storage).listTurnWrites({
|
|
2121
|
+
projectId: host.projectId,
|
|
2122
|
+
turnRunId
|
|
2123
|
+
});
|
|
2124
|
+
for (const { artifactId } of writes) {
|
|
2125
|
+
await appendArtifactLive2(host.broker, host.projectId, artifactId, {
|
|
2126
|
+
name: "agent-ended",
|
|
2127
|
+
payload: { runId: turnRunId }
|
|
2128
|
+
});
|
|
2129
|
+
}
|
|
2130
|
+
} catch (error) {
|
|
2131
|
+
console.warn(`[Sixb] Could not tell the viewers of turn '${turnRunId}' that it ended:`, error);
|
|
2132
|
+
}
|
|
1778
2133
|
}
|
|
1779
2134
|
async function readPublisher(host, run) {
|
|
1780
2135
|
const { projectId } = host;
|
|
@@ -2136,13 +2491,13 @@ function agentToolFilePath2(toolCallId, fileRef, fileName) {
|
|
|
2136
2491
|
const digestKey = fileRef.digest.slice("sha256:".length, "sha256:".length + 12);
|
|
2137
2492
|
return posix2.join("tool-files", callKey, `${digestKey}-${fileName}`);
|
|
2138
2493
|
}
|
|
2139
|
-
function agentToolOutputPath2(toolCallId, sha256) {
|
|
2494
|
+
function agentToolOutputPath2(toolCallId, sha256, extension = "txt") {
|
|
2140
2495
|
const call = SAFE_CALL_ID.test(toolCallId) ? toolCallId : createHash("sha256").update(toolCallId).digest("hex").slice(0, 16);
|
|
2141
|
-
return `${AGENT_TOOL_OUTPUTS_DIRECTORY2}/${call}-${sha256.slice(0, 12)}
|
|
2496
|
+
return `${AGENT_TOOL_OUTPUTS_DIRECTORY2}/${call}-${sha256.slice(0, 12)}.${extension}`;
|
|
2142
2497
|
}
|
|
2143
2498
|
var AGENT_TOOL_OUTPUTS_DIRECTORY2 = "tool-outputs";
|
|
2144
2499
|
var SAFE_CALL_ID = /^[A-Za-z0-9_-]{1,128}$/;
|
|
2145
|
-
var TOOL_OUTPUT_PATH = /^tool-outputs\/[A-Za-z0-9_-]{1,128}-([0-9a-f]{12})\.txt$/;
|
|
2500
|
+
var TOOL_OUTPUT_PATH = /^tool-outputs\/[A-Za-z0-9_-]{1,128}-([0-9a-f]{12})\.(?:txt|md|pdf|png|jpg|gif|webp)$/;
|
|
2146
2501
|
function isAgentToolOutputFile2(value) {
|
|
2147
2502
|
if (typeof value !== "object" || value === null)
|
|
2148
2503
|
return false;
|
|
@@ -2245,11 +2600,13 @@ function assertMaxSteps(value, name) {
|
|
|
2245
2600
|
// src/agents/run-plan.ts
|
|
2246
2601
|
function readAgentRunPlan2(definitions, run, view) {
|
|
2247
2602
|
const { agent, models, tools } = definitions;
|
|
2603
|
+
const web = readAgentRunWebPlan2(definitions);
|
|
2248
2604
|
const shared = {
|
|
2249
2605
|
...agent.instructions === undefined ? {} : { instructions: agent.instructions },
|
|
2250
2606
|
skills: agent.skills.list(),
|
|
2251
2607
|
sandboxModels: listSandboxModels2(models),
|
|
2252
|
-
ontologyDocs: renderAgentRunOntologyDocs2({ ...view, catalog: agent.ontologyDocs })
|
|
2608
|
+
ontologyDocs: renderAgentRunOntologyDocs2({ ...view, catalog: agent.ontologyDocs }),
|
|
2609
|
+
...web === undefined ? {} : { web }
|
|
2253
2610
|
};
|
|
2254
2611
|
const subagentMaxSteps = agent.subagentMaxSteps ?? UNATTENDED_AGENT_MAX_STEPS2;
|
|
2255
2612
|
if (run.kind === "subagent") {
|
|
@@ -2286,6 +2643,17 @@ function readAgentRunPlan2(definitions, run, view) {
|
|
|
2286
2643
|
...spec?.locale === undefined ? {} : { locale: spec.locale }
|
|
2287
2644
|
});
|
|
2288
2645
|
}
|
|
2646
|
+
function readAgentRunWebPlan2(definitions) {
|
|
2647
|
+
const { web } = definitions.agent;
|
|
2648
|
+
if (web === false)
|
|
2649
|
+
return;
|
|
2650
|
+
const search = definitions.models?.webSearch?.default;
|
|
2651
|
+
return Object.freeze({
|
|
2652
|
+
...search ? { search: { provider: search.provider, modelId: search.modelId } } : {},
|
|
2653
|
+
...web?.allowedDomains ? { allowedDomains: web.allowedDomains } : {},
|
|
2654
|
+
...web?.blockedDomains ? { blockedDomains: web.blockedDomains } : {}
|
|
2655
|
+
});
|
|
2656
|
+
}
|
|
2289
2657
|
function listSandboxModels2(models) {
|
|
2290
2658
|
const language = (models?.language?.list() ?? []).map((entry) => {
|
|
2291
2659
|
const { name, description } = entry.model.definition;
|
|
@@ -2596,6 +2964,10 @@ async function openAgentRunSession2(host, run, cancelWith = [], stop) {
|
|
|
2596
2964
|
});
|
|
2597
2965
|
return toolsBound;
|
|
2598
2966
|
};
|
|
2967
|
+
const webSearch = bindAgentWebSearch2(host.definitions, {
|
|
2968
|
+
signal: AbortSignal.any([cancelled, ended.signal, ...stop ? [stop] : []]),
|
|
2969
|
+
accounting: openedModelCalls
|
|
2970
|
+
});
|
|
2599
2971
|
let logs;
|
|
2600
2972
|
let toolLabels;
|
|
2601
2973
|
const toolLogger = async () => {
|
|
@@ -2645,7 +3017,7 @@ async function openAgentRunSession2(host, run, cancelWith = [], stop) {
|
|
|
2645
3017
|
pausesAfterStep: () => turnPausesOnHeldCalls2(host.storage.agents, run)
|
|
2646
3018
|
},
|
|
2647
3019
|
models: {
|
|
2648
|
-
async language(ref) {
|
|
3020
|
+
async language(ref, options) {
|
|
2649
3021
|
const key = `${ref.provider}/${ref.modelId}`;
|
|
2650
3022
|
let resolved = languageModels.get(key);
|
|
2651
3023
|
if (!resolved) {
|
|
@@ -2657,12 +3029,16 @@ async function openAgentRunSession2(host, run, cancelWith = [], stop) {
|
|
|
2657
3029
|
languageModels.set(key, resolved);
|
|
2658
3030
|
resolved.catch(() => languageModels.delete(key));
|
|
2659
3031
|
}
|
|
2660
|
-
|
|
3032
|
+
const recorded = (await openedModelCalls()).wrapModel(await resolved);
|
|
3033
|
+
if (options?.measures === false)
|
|
3034
|
+
return recorded;
|
|
3035
|
+
return measuringAgentContextTokenRates2(recorded, {
|
|
2661
3036
|
tokenRates: agents.tokenRates,
|
|
2662
3037
|
projectId: host.projectId,
|
|
2663
3038
|
runId: run.id
|
|
2664
3039
|
});
|
|
2665
|
-
}
|
|
3040
|
+
},
|
|
3041
|
+
webSearch
|
|
2666
3042
|
},
|
|
2667
3043
|
async renewLease(leaseExpiresAt) {
|
|
2668
3044
|
try {
|
|
@@ -2686,6 +3062,9 @@ async function openAgentRunSession2(host, run, cancelWith = [], stop) {
|
|
|
2686
3062
|
await host.afterFinish?.(finished).catch((error) => {
|
|
2687
3063
|
console.error(`[Sixb] What follows agent run '${run.id}' failed; repair retries it.`, error);
|
|
2688
3064
|
});
|
|
3065
|
+
if (run.kind === "conversation" && host.storage.artifacts) {
|
|
3066
|
+
await announceAgentTurnEnded(host, run.id);
|
|
3067
|
+
}
|
|
2689
3068
|
return finished;
|
|
2690
3069
|
},
|
|
2691
3070
|
assertOwned: () => assertAgentRunOwned(agents, fence),
|
|
@@ -3172,16 +3551,17 @@ function createHttpAgentRunSession2(input) {
|
|
|
3172
3551
|
executionToken,
|
|
3173
3552
|
cancelled: cancelled.signal,
|
|
3174
3553
|
models: {
|
|
3175
|
-
language(ref) {
|
|
3554
|
+
async language(ref, options) {
|
|
3176
3555
|
const key = `${ref.provider}/${ref.modelId}`;
|
|
3177
|
-
let
|
|
3178
|
-
if (!
|
|
3179
|
-
|
|
3180
|
-
|
|
3181
|
-
models.set(key,
|
|
3556
|
+
let described = models.get(key);
|
|
3557
|
+
if (!described) {
|
|
3558
|
+
described = call("models.describe", [ref]);
|
|
3559
|
+
described.catch(() => models.delete(key));
|
|
3560
|
+
models.set(key, described);
|
|
3182
3561
|
}
|
|
3183
|
-
return
|
|
3184
|
-
}
|
|
3562
|
+
return httpModel(await described, ref, request, options?.measures !== false);
|
|
3563
|
+
},
|
|
3564
|
+
webSearch: (request, signal) => call("models.webSearch", [request], signal)
|
|
3185
3565
|
},
|
|
3186
3566
|
events: sink.sink,
|
|
3187
3567
|
heldCalls: {
|
|
@@ -3234,11 +3614,15 @@ function createHttpAgentRunSession2(input) {
|
|
|
3234
3614
|
callTool: (toolCall, { signal, ...options }) => call("callTool", [toolCall, options], signal),
|
|
3235
3615
|
artifacts: {
|
|
3236
3616
|
list: (query) => call("artifacts.list", [query]),
|
|
3617
|
+
get: (artifactId) => call("artifacts.get", [artifactId]),
|
|
3237
3618
|
getVersion: (...args) => call("artifacts.getVersion", args),
|
|
3238
3619
|
listVersions: (...args) => call("artifacts.listVersions", args),
|
|
3239
3620
|
query: (...args) => call("artifacts.query", args),
|
|
3240
3621
|
updatable: (artifactId) => call("artifacts.updatable", [artifactId]),
|
|
3241
|
-
publish: (publish) => call("artifacts.publish", [publish])
|
|
3622
|
+
publish: (publish) => call("artifacts.publish", [publish]),
|
|
3623
|
+
turnWrites: () => call("artifacts.turnWrites", []),
|
|
3624
|
+
storePreviews: (previews) => call("artifacts.storePreviews", [previews]),
|
|
3625
|
+
missingPreviews: (version) => call("artifacts.missingPreviews", [version])
|
|
3242
3626
|
},
|
|
3243
3627
|
files: {
|
|
3244
3628
|
async put(file) {
|
|
@@ -3321,14 +3705,14 @@ async function result(response) {
|
|
|
3321
3705
|
throw decodeWireError(body.error);
|
|
3322
3706
|
return body.result;
|
|
3323
3707
|
}
|
|
3324
|
-
function httpModel(described, ref, request) {
|
|
3708
|
+
function httpModel(described, ref, request, measures) {
|
|
3325
3709
|
return {
|
|
3326
3710
|
...described,
|
|
3327
3711
|
async stream({ signal, ...call }) {
|
|
3328
3712
|
const response = await request("models.stream", {
|
|
3329
3713
|
method: "POST",
|
|
3330
3714
|
headers: { "content-type": "application/json" },
|
|
3331
|
-
body: encodeWireValue2({ ref, call }),
|
|
3715
|
+
body: encodeWireValue2({ ref, call, ...measures ? {} : { measures: false } }),
|
|
3332
3716
|
signal
|
|
3333
3717
|
});
|
|
3334
3718
|
if (!response.ok || !response.body)
|
|
@@ -3493,11 +3877,15 @@ var OPERATIONS = {
|
|
|
3493
3877
|
"threads.message": (session, [messageId]) => session.threads.message(messageId),
|
|
3494
3878
|
"threads.messages": (session, [input]) => session.threads.messages(input),
|
|
3495
3879
|
"artifacts.list": (session, [input]) => session.artifacts.list(input),
|
|
3880
|
+
"artifacts.get": (session, [artifactId]) => session.artifacts.get(artifactId),
|
|
3496
3881
|
"artifacts.getVersion": (session, args) => session.artifacts.getVersion(...args),
|
|
3497
3882
|
"artifacts.listVersions": (session, args) => session.artifacts.listVersions(...args),
|
|
3498
3883
|
"artifacts.query": (session, args) => session.artifacts.query(...args),
|
|
3499
3884
|
"artifacts.updatable": (session, [artifactId]) => session.artifacts.updatable(artifactId),
|
|
3500
3885
|
"artifacts.publish": (session, [input]) => session.artifacts.publish(input),
|
|
3886
|
+
"artifacts.turnWrites": (session) => session.artifacts.turnWrites(),
|
|
3887
|
+
"artifacts.storePreviews": (session, [input]) => session.artifacts.storePreviews(input),
|
|
3888
|
+
"artifacts.missingPreviews": (session, [input]) => session.artifacts.missingPreviews(input),
|
|
3501
3889
|
callTool: (session, [call, options], signal) => session.callTool(call, {
|
|
3502
3890
|
...options ?? {},
|
|
3503
3891
|
signal
|
|
@@ -3507,6 +3895,7 @@ var OPERATIONS = {
|
|
|
3507
3895
|
const { providerId, modelId, definition, rateCard, defaultReasoning, maxOutputTokens } = model;
|
|
3508
3896
|
return { providerId, modelId, definition, rateCard, defaultReasoning, maxOutputTokens };
|
|
3509
3897
|
},
|
|
3898
|
+
"models.webSearch": (session, [request], signal) => session.models.webSearch(request, signal),
|
|
3510
3899
|
"files.stat": (session, [blobId]) => session.files.stat(blobId)
|
|
3511
3900
|
};
|
|
3512
3901
|
async function serveAgentRunSession2(host, request, options = {}) {
|
|
@@ -3680,8 +4069,8 @@ function withSavedOutputChecked(part) {
|
|
|
3680
4069
|
return rest;
|
|
3681
4070
|
}
|
|
3682
4071
|
async function streamModelCall(session, request) {
|
|
3683
|
-
const { ref, call } = decodeWireValue2(await readBodyText(request));
|
|
3684
|
-
const model = await session.models.language(ref);
|
|
4072
|
+
const { ref, call, measures } = decodeWireValue2(await readBodyText(request));
|
|
4073
|
+
const model = await session.models.language(ref, { measures: measures !== false });
|
|
3685
4074
|
const opened = await model.stream({ ...call, signal: request.signal });
|
|
3686
4075
|
const encoder = new TextEncoder;
|
|
3687
4076
|
const iterator = opened.events[Symbol.asyncIterator]();
|
|
@@ -4044,6 +4433,6 @@ function requireFinishedAt(record) {
|
|
|
4044
4433
|
}
|
|
4045
4434
|
return record.finishedAt;
|
|
4046
4435
|
}
|
|
4047
|
-
export { serializeAgentContextForModel2, isAgentToolResult2, toModelMessages2, agentMessageSteps2, attachmentKey2, toolResultAttachmentKey2, attachmentKeyMessageId2, findMessageAttachment2, listMessageAttachments2, AGENT_RESERVED_TOOL_NAMES2, isAgentToolDefinition2, validateAndNormalizeAgentToolInput2, toolsFromProjectConfig, defineAgentTool2, AGENT_INLINE_IMAGE_LIMITS2, AGENT_IMAGE_INPUT_TOKENS2, projectAgentThreadModelContext2, AGENT_CONTEXT_ESTIMATOR_VERSION2, shouldCompactAgentContext2, estimateAgentContextRequestTokens2, estimateAgentContextMessagesTokens2, agentContextSizeTokens2, measureAgentModelRequest2, measureModelRequest2, selectAgentContextCompactionBoundary2, measureAgentContextTokenRate2, calibrateAgentContextBytesPerToken2, learnedAgentContextBytesPerToken2, readAgentContextTokenRates2, measuringAgentContextTokenRates2, DEFAULT_AGENT_CONTEXT_WINDOW_TOKENS2, AGENT_CONTEXT_COMPACTED_SHARE2, AGENT_IDLE_COMPACTION_TOKENS2, agentOutputCapTokens2, resolveAgentContextBudget2, contextSummaryOutputTokens2, measureAgentStepRequest2, estimateAgentThreadRequest2, readAgentThreadContextUse2, agent2, afterAgentRunFinished2, stopAgentRunChild2, AgentExecutionLostError2, AgentRunRefusedError2, isTerminalOrExecutionGone2, agentRunArtifacts2, NOOP_STREAM_SINK2, createBrokerStreamSink2, isolateStreamSink2, withAgentActivityStream2, SANDBOX_CONTEXT_DIRECTORY2, AGENT_FILE_MAX_BYTES2, storeAgentToolFile2, agentToolFilePath2, agentToolOutputPath2, AGENT_TOOL_OUTPUTS_DIRECTORY2, isAgentToolOutputFile2, agentToolSpec2, runAgentTool2, threadToolAttachments2, UNATTENDED_AGENT_MAX_STEPS2, assertMaxSteps, readAgentRunPlan2, listSandboxModels2, readAgentRunMemory2, renderAgentRunOntologyDocs2, readAgentRunDelegation2, claimAgentRun2, openAgentRunSession2, agentRunPeople2, watchAgentRunCancel2, AgentFinalizationError2, AgentTurnInterruptedError2, interruptedError2, agentRunLeaseLapsed2, endInterruptedAgentRun2, endLapsedAgentRuns2, encodeWireValue2, decodeWireValue2, encodeWireError2, createHttpAgentRunSession2, claimAgentRunOverHttp2, claimAgentRunChildOverHttp2, AGENT_API_ROUTES2, createAgentRunToken2, isAgentRunToken2, agentRunTokenRunId2, isValidAgentRunToken2, createAgentRunnerToken2, isAgentRunnerToken2, isAllowedAgentApiRequest2, findAgentApiRoute2, serveAgentRunSession2, claimAgentRunForRunner2, WorkflowResumeDispatchError2, claimWorkflowAgentNode2, enqueueWorkflowAgentNodeResume2 };
|
|
4436
|
+
export { serializeAgentContextForModel2, isAgentToolResult2, toModelMessages2, agentMessageSteps2, attachmentKey2, toolResultAttachmentKey2, attachmentKeyMessageId2, findMessageAttachment2, listMessageAttachments2, resolveAgentWebOptions, assertNoProviderWebTools, webDomainPolicy2, bindAgentWebSearch2, AGENT_RESERVED_TOOL_NAMES2, isAgentToolDefinition2, validateAndNormalizeAgentToolInput2, toolsFromProjectConfig, defineAgentTool2, AGENT_INLINE_IMAGE_LIMITS2, AGENT_IMAGE_INPUT_TOKENS2, projectAgentThreadModelContext2, AGENT_CONTEXT_ESTIMATOR_VERSION2, shouldCompactAgentContext2, estimateAgentContextRequestTokens2, estimateAgentContextMessagesTokens2, agentContextSizeTokens2, measureAgentModelRequest2, measureModelRequest2, selectAgentContextCompactionBoundary2, measureAgentContextTokenRate2, calibrateAgentContextBytesPerToken2, learnedAgentContextBytesPerToken2, readAgentContextTokenRates2, measuringAgentContextTokenRates2, DEFAULT_AGENT_CONTEXT_WINDOW_TOKENS2, AGENT_CONTEXT_COMPACTED_SHARE2, AGENT_IDLE_COMPACTION_TOKENS2, agentOutputCapTokens2, resolveAgentContextBudget2, contextSummaryOutputTokens2, measureAgentStepRequest2, estimateAgentThreadRequest2, readAgentThreadContextUse2, agent2, afterAgentRunFinished2, stopAgentRunChild2, AgentExecutionLostError2, AgentRunRefusedError2, isTerminalOrExecutionGone2, agentRunArtifacts2, NOOP_STREAM_SINK2, createBrokerStreamSink2, isolateStreamSink2, withAgentActivityStream2, SANDBOX_CONTEXT_DIRECTORY2, AGENT_FILE_MAX_BYTES2, storeAgentToolFile2, agentToolFilePath2, agentToolOutputPath2, AGENT_TOOL_OUTPUTS_DIRECTORY2, isAgentToolOutputFile2, agentToolSpec2, runAgentTool2, threadToolAttachments2, UNATTENDED_AGENT_MAX_STEPS2, assertMaxSteps, readAgentRunPlan2, readAgentRunWebPlan2, listSandboxModels2, readAgentRunMemory2, renderAgentRunOntologyDocs2, readAgentRunDelegation2, claimAgentRun2, openAgentRunSession2, agentRunPeople2, watchAgentRunCancel2, AgentFinalizationError2, AgentTurnInterruptedError2, interruptedError2, agentRunLeaseLapsed2, endInterruptedAgentRun2, endLapsedAgentRuns2, encodeWireValue2, decodeWireValue2, encodeWireError2, createHttpAgentRunSession2, claimAgentRunOverHttp2, claimAgentRunChildOverHttp2, AGENT_API_ROUTES2, createAgentRunToken2, isAgentRunToken2, agentRunTokenRunId2, isValidAgentRunToken2, createAgentRunnerToken2, isAgentRunnerToken2, isAllowedAgentApiRequest2, findAgentApiRoute2, serveAgentRunSession2, claimAgentRunForRunner2, WorkflowResumeDispatchError2, claimWorkflowAgentNode2, enqueueWorkflowAgentNodeResume2 };
|
|
4048
4437
|
|
|
4049
|
-
//# debugId=
|
|
4438
|
+
//# debugId=D6C80203AED0AECA64756E2164756E21
|