@sixb/core 0.2.3 → 0.2.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/actions/index.js +28 -28
- package/dist/agents/cancel.d.ts +1 -1
- package/dist/agents/cancel.d.ts.map +1 -1
- package/dist/agents/child-question.d.ts +35 -2
- package/dist/agents/child-question.d.ts.map +1 -1
- package/dist/agents/execution.d.ts +35 -3
- package/dist/agents/execution.d.ts.map +1 -1
- package/dist/agents/ids.d.ts +4 -0
- package/dist/agents/ids.d.ts.map +1 -1
- package/dist/agents/index.d.ts +9 -7
- package/dist/agents/index.d.ts.map +1 -1
- package/dist/agents/index.js +59 -33
- package/dist/agents/index.js.map +1 -1
- package/dist/agents/model-loop.d.ts.map +1 -1
- package/dist/agents/queued-turn.d.ts +16 -0
- package/dist/agents/queued-turn.d.ts.map +1 -0
- package/dist/agents/request.d.ts +79 -1
- package/dist/agents/request.d.ts.map +1 -1
- package/dist/agents/run-after-finish.d.ts +10 -0
- package/dist/agents/run-after-finish.d.ts.map +1 -1
- package/dist/agents/run-artifacts.d.ts +0 -38
- package/dist/agents/run-artifacts.d.ts.map +1 -1
- package/dist/agents/run-events.d.ts +6 -1
- package/dist/agents/run-events.d.ts.map +1 -1
- package/dist/agents/run-session-children.d.ts +9 -0
- package/dist/agents/run-session-children.d.ts.map +1 -1
- package/dist/agents/run-session-http.d.ts.map +1 -1
- package/dist/agents/run-session-serve.d.ts.map +1 -1
- package/dist/agents/run-session.d.ts +14 -1
- package/dist/agents/run-session.d.ts.map +1 -1
- package/dist/agents/run-turn.d.ts.map +1 -1
- package/dist/agents/streams/index.d.ts +1 -1
- package/dist/agents/streams/index.d.ts.map +1 -1
- package/dist/agents/streams/index.js +1 -1
- package/dist/agents/streams/internal.js +1 -1
- package/dist/agents/streams/protocol.d.ts +16 -0
- package/dist/agents/streams/protocol.d.ts.map +1 -1
- package/dist/agents/tool-files.d.ts +1 -1
- package/dist/agents/tool-files.d.ts.map +1 -1
- package/dist/agents/tool-input-coercion.d.ts +20 -0
- package/dist/agents/tool-input-coercion.d.ts.map +1 -0
- package/dist/agents/turn-answered.d.ts +7 -0
- package/dist/agents/turn-answered.d.ts.map +1 -0
- package/dist/agents/validation.d.ts +1 -1
- package/dist/agents/validation.d.ts.map +1 -1
- package/dist/artifacts/canvas-display.d.ts +3 -5
- package/dist/artifacts/canvas-display.d.ts.map +1 -1
- package/dist/artifacts/comments.d.ts +14 -3
- package/dist/artifacts/comments.d.ts.map +1 -1
- package/dist/artifacts/document-fill.d.ts +18 -0
- package/dist/artifacts/document-fill.d.ts.map +1 -0
- package/dist/artifacts/errors.d.ts +1 -1
- package/dist/artifacts/errors.d.ts.map +1 -1
- package/dist/artifacts/events.d.ts +3 -2
- package/dist/artifacts/events.d.ts.map +1 -1
- package/dist/artifacts/execution.d.ts +40 -4
- package/dist/artifacts/execution.d.ts.map +1 -1
- package/dist/artifacts/frames/assets.d.ts +8 -1
- package/dist/artifacts/frames/assets.d.ts.map +1 -1
- package/dist/artifacts/frames/document-data.d.ts +98 -0
- package/dist/artifacts/frames/document-data.d.ts.map +1 -0
- package/dist/artifacts/frames/entries.d.ts +12 -7
- package/dist/artifacts/frames/entries.d.ts.map +1 -1
- package/dist/artifacts/frames/index.d.ts +2 -1
- package/dist/artifacts/frames/index.d.ts.map +1 -1
- package/dist/artifacts/frames/index.js +22 -13
- package/dist/artifacts/frames/index.js.map +4 -4
- package/dist/artifacts/frames/kit.d.ts +15 -0
- package/dist/artifacts/frames/kit.d.ts.map +1 -1
- package/dist/artifacts/frames/protocol.d.ts +65 -3
- package/dist/artifacts/frames/protocol.d.ts.map +1 -1
- package/dist/artifacts/frames/runtime.d.ts +32 -5
- package/dist/artifacts/frames/runtime.d.ts.map +1 -1
- package/dist/artifacts/index.d.ts +4 -2
- package/dist/artifacts/index.d.ts.map +1 -1
- package/dist/artifacts/index.js +35 -3
- package/dist/artifacts/index.js.map +3 -3
- package/dist/artifacts/live/blocks.d.ts +62 -0
- package/dist/artifacts/live/blocks.d.ts.map +1 -0
- package/dist/artifacts/live/board.d.ts +6 -0
- package/dist/artifacts/live/board.d.ts.map +1 -1
- package/dist/artifacts/live/document.d.ts +12 -0
- package/dist/artifacts/live/document.d.ts.map +1 -1
- package/dist/artifacts/live/index.d.ts +2 -0
- package/dist/artifacts/live/index.d.ts.map +1 -1
- package/dist/artifacts/live/index.js +148 -44
- package/dist/artifacts/live/index.js.map +3 -3
- package/dist/artifacts/live/page.d.ts +49 -0
- package/dist/artifacts/live/page.d.ts.map +1 -0
- package/dist/artifacts/live/protocol.d.ts +5 -0
- package/dist/artifacts/live/protocol.d.ts.map +1 -1
- package/dist/artifacts/live/server.d.ts +2 -2
- package/dist/artifacts/live/server.d.ts.map +1 -1
- package/dist/artifacts/live/server.js +23 -19
- package/dist/artifacts/live/server.js.map +1 -1
- package/dist/artifacts/live/state.d.ts +4 -1
- package/dist/artifacts/live/state.d.ts.map +1 -1
- package/dist/artifacts/outline.d.ts +16 -0
- package/dist/artifacts/outline.d.ts.map +1 -1
- package/dist/artifacts/paper.d.ts +22 -0
- package/dist/artifacts/paper.d.ts.map +1 -0
- package/dist/artifacts/pdf-job.d.ts +9 -0
- package/dist/artifacts/pdf-job.d.ts.map +1 -0
- package/dist/artifacts/publish/fields.d.ts +25 -0
- package/dist/artifacts/publish/fields.d.ts.map +1 -0
- package/dist/artifacts/publish/index.d.ts +2 -1
- package/dist/artifacts/publish/index.d.ts.map +1 -1
- package/dist/artifacts/publish/index.js +26 -18
- package/dist/artifacts/publish/index.js.map +1 -1
- package/dist/artifacts/publish/merge.d.ts +5 -5
- package/dist/artifacts/publish/merge.d.ts.map +1 -1
- package/dist/artifacts/publish/pdf.d.ts +28 -0
- package/dist/artifacts/publish/pdf.d.ts.map +1 -0
- package/dist/artifacts/publish/previews.d.ts +12 -20
- package/dist/artifacts/publish/previews.d.ts.map +1 -1
- package/dist/artifacts/publish/publish.d.ts.map +1 -1
- package/dist/artifacts/publish/queries.d.ts +6 -1
- package/dist/artifacts/publish/queries.d.ts.map +1 -1
- package/dist/artifacts/publish/query-answers.d.ts +5 -2
- package/dist/artifacts/publish/query-answers.d.ts.map +1 -1
- package/dist/artifacts/publish/validate/document-html.d.ts +24 -0
- package/dist/artifacts/publish/validate/document-html.d.ts.map +1 -0
- package/dist/artifacts/publish/validate/document.d.ts +5 -3
- package/dist/artifacts/publish/validate/document.d.ts.map +1 -1
- package/dist/artifacts/queries.d.ts +16 -2
- package/dist/artifacts/queries.d.ts.map +1 -1
- package/dist/auth/index.js +2 -2
- package/dist/authorization/event-visibility.d.ts.map +1 -1
- package/dist/authorization/index.js +1 -1
- package/dist/blob-storage/index.js +1 -1
- package/dist/bootstrap/index.js +38 -38
- package/dist/{chunk-tqa68kj7.js → chunk-0hkdtwqk.js} +5 -5
- package/dist/{chunk-s5n9617r.js → chunk-0mvjpgvm.js} +5 -5
- package/dist/{chunk-k66rp2hr.js → chunk-1yh6jgtz.js} +1 -1
- package/dist/{chunk-26qet7wh.js → chunk-5t9gm5tt.js} +4 -4
- package/dist/{chunk-a6fjkcne.js → chunk-60662fyv.js} +54 -28
- package/dist/{chunk-a6fjkcne.js.map → chunk-60662fyv.js.map} +7 -6
- package/dist/{chunk-e0hnbb1m.js → chunk-61zptves.js} +1 -1
- package/dist/{chunk-hkaa807g.js → chunk-68hm50qh.js} +3 -3
- package/dist/{chunk-9nsjjd44.js → chunk-8tv3qd65.js} +2 -1
- package/dist/chunk-8tv3qd65.js.map +12 -0
- package/dist/{chunk-fe6r7yhg.js → chunk-92wrka15.js} +1 -1
- package/dist/{chunk-m7b9q5dk.js → chunk-aw1z0gre.js} +4 -4
- package/dist/chunk-az95tsh3.js.map +2 -2
- package/dist/{chunk-4j0sagwv.js → chunk-b4escq4c.js} +62 -14
- package/dist/{chunk-4j0sagwv.js.map → chunk-b4escq4c.js.map} +7 -7
- package/dist/chunk-bqr703h4.js +1799 -0
- package/dist/chunk-bqr703h4.js.map +13 -0
- package/dist/{chunk-eptrvnby.js → chunk-c29729me.js} +42 -3
- package/dist/chunk-c29729me.js.map +12 -0
- package/dist/{chunk-t24yktqr.js → chunk-dvgc56n2.js} +20 -4
- package/dist/{chunk-t24yktqr.js.map → chunk-dvgc56n2.js.map} +5 -5
- package/dist/{chunk-3014rfjz.js → chunk-ewqn51gr.js} +25 -7
- package/dist/{chunk-3014rfjz.js.map → chunk-ewqn51gr.js.map} +3 -3
- package/dist/{chunk-7z5rkf0m.js → chunk-ey1p8w68.js} +175 -5
- package/dist/chunk-ey1p8w68.js.map +13 -0
- package/dist/{chunk-z0t4p2sk.js → chunk-fpf57gca.js} +350 -61
- package/dist/chunk-fpf57gca.js.map +47 -0
- package/dist/{chunk-kv0kvknv.js → chunk-fzae1jpq.js} +7 -7
- package/dist/{chunk-b9qfh2ya.js → chunk-fzbhybya.js} +29 -2
- package/dist/chunk-fzbhybya.js.map +11 -0
- package/dist/{chunk-2by73sm2.js → chunk-gjhrz66x.js} +225 -17
- package/dist/{chunk-2by73sm2.js.map → chunk-gjhrz66x.js.map} +5 -5
- package/dist/chunk-hn2r7z41.js.map +1 -1
- package/dist/{chunk-6gtxshcc.js → chunk-k29n4176.js} +6 -6
- package/dist/{chunk-48c1z8nj.js → chunk-k3jh8gsg.js} +10 -2
- package/dist/chunk-k3jh8gsg.js.map +10 -0
- package/dist/{chunk-w9s23r24.js → chunk-m3qx2pns.js} +751 -93
- package/dist/chunk-m3qx2pns.js.map +34 -0
- package/dist/{chunk-smnt672s.js → chunk-m9ketb51.js} +20 -4
- package/dist/chunk-m9ketb51.js.map +10 -0
- package/dist/chunk-mbwsgjn7.js +40 -0
- package/dist/chunk-mbwsgjn7.js.map +11 -0
- package/dist/{chunk-sysnvjce.js → chunk-naxjka9v.js} +2 -2
- package/dist/{chunk-n4zzaf6q.js → chunk-nxysqbt0.js} +4 -2
- package/dist/chunk-nxysqbt0.js.map +10 -0
- package/dist/{chunk-vzkxqf8h.js → chunk-paxabbqd.js} +49 -5
- package/dist/chunk-paxabbqd.js.map +23 -0
- package/dist/{chunk-8tqnsx3q.js → chunk-pc7kra3k.js} +5 -3
- package/dist/{chunk-8tqnsx3q.js.map → chunk-pc7kra3k.js.map} +3 -3
- package/dist/{chunk-qafng88v.js → chunk-pqvvqc65.js} +4 -4
- package/dist/chunk-pvpq483h.js.map +2 -2
- package/dist/{chunk-mzx71snp.js → chunk-q7g9cqwt.js} +7 -2
- package/dist/{chunk-mzx71snp.js.map → chunk-q7g9cqwt.js.map} +3 -3
- package/dist/{chunk-8t2ynwg0.js → chunk-q8d9p0tb.js} +24 -1
- package/dist/{chunk-8t2ynwg0.js.map → chunk-q8d9p0tb.js.map} +3 -3
- package/dist/{chunk-wa05txmk.js → chunk-qavwr628.js} +49 -5
- package/dist/chunk-qavwr628.js.map +12 -0
- package/dist/{chunk-bkmnd7zq.js → chunk-rg725hry.js} +174 -30
- package/dist/{chunk-bkmnd7zq.js.map → chunk-rg725hry.js.map} +9 -8
- package/dist/{chunk-8p7bze4c.js → chunk-s1mqyqmm.js} +3 -3
- package/dist/{chunk-p351afzm.js → chunk-s5pj68fa.js} +2 -2
- package/dist/{chunk-855w9nvw.js → chunk-vehcr9eb.js} +1 -1
- package/dist/{chunk-qds484t8.js → chunk-vs2s3p8n.js} +932 -21
- package/dist/chunk-vs2s3p8n.js.map +20 -0
- package/dist/chunk-vtjzwymr.js.map +2 -2
- package/dist/{chunk-n68vz95m.js → chunk-wqe9shx2.js} +1 -1
- package/dist/{chunk-0k3r5kb3.js → chunk-xcrnrpfh.js} +1 -1
- package/dist/{chunk-cwdzcv37.js → chunk-xrmbhap8.js} +2 -2
- package/dist/{chunk-cwdzcv37.js.map → chunk-xrmbhap8.js.map} +2 -2
- package/dist/{chunk-f6ahf5gf.js → chunk-xxfj0rr2.js} +20 -5
- package/dist/chunk-xxfj0rr2.js.map +13 -0
- package/dist/{chunk-3hzhcfsv.js → chunk-y8fwm3z2.js} +2 -2
- package/dist/{chunk-3hzhcfsv.js.map → chunk-y8fwm3z2.js.map} +3 -3
- package/dist/{chunk-e9w4mgdh.js → chunk-z1njfqqs.js} +589 -53
- package/dist/{chunk-e9w4mgdh.js.map → chunk-z1njfqqs.js.map} +14 -11
- package/dist/{chunk-yv8hv4wq.js → chunk-z4jqb44a.js} +3 -1
- package/dist/chunk-z4jqb44a.js.map +10 -0
- package/dist/{chunk-s7xqfxs9.js → chunk-zft9bzbc.js} +2 -1
- package/dist/{chunk-s7xqfxs9.js.map → chunk-zft9bzbc.js.map} +3 -3
- package/dist/{chunk-38yvdqzd.js → chunk-zxhym8tr.js} +1 -1
- package/dist/connectors/connection-handles.d.ts +9 -0
- package/dist/connectors/connection-handles.d.ts.map +1 -0
- package/dist/connectors/connections/authorizations.d.ts +9 -0
- package/dist/connectors/connections/authorizations.d.ts.map +1 -1
- package/dist/connectors/connections/events.d.ts +17 -0
- package/dist/connectors/connections/events.d.ts.map +1 -0
- package/dist/connectors/connections/runs.d.ts +3 -0
- package/dist/connectors/connections/runs.d.ts.map +1 -1
- package/dist/connectors/connections/service.d.ts +4 -0
- package/dist/connectors/connections/service.d.ts.map +1 -1
- package/dist/connectors/execution.d.ts +7 -1
- package/dist/connectors/execution.d.ts.map +1 -1
- package/dist/connectors/index.d.ts +1 -1
- package/dist/connectors/index.d.ts.map +1 -1
- package/dist/connectors/types.d.ts +22 -1
- package/dist/connectors/types.d.ts.map +1 -1
- package/dist/datasets/write.js +1 -1
- package/dist/deploy/index.d.ts +1 -1
- package/dist/deploy/index.d.ts.map +1 -1
- package/dist/deploy/internal.js +3 -2
- package/dist/deploy/internal.js.map +3 -3
- package/dist/deploy/services.d.ts.map +1 -1
- package/dist/deploy/types.d.ts +18 -1
- package/dist/deploy/types.d.ts.map +1 -1
- package/dist/events/definitions.d.ts +4 -0
- package/dist/events/definitions.d.ts.map +1 -1
- package/dist/events/execution.d.ts.map +1 -1
- package/dist/events/index.d.ts +2 -2
- package/dist/events/index.d.ts.map +1 -1
- package/dist/events/index.js +3 -3
- package/dist/events/outbox-dispatcher.d.ts +7 -0
- package/dist/events/outbox-dispatcher.d.ts.map +1 -1
- package/dist/events/scope.d.ts +1 -0
- package/dist/events/scope.d.ts.map +1 -1
- package/dist/events/scope.js +1 -1
- package/dist/events/selectors/builder.d.ts +9 -1
- package/dist/events/selectors/builder.d.ts.map +1 -1
- package/dist/events/selectors/index.d.ts +2 -2
- package/dist/events/selectors/index.d.ts.map +1 -1
- package/dist/events/selectors/index.js +2 -2
- package/dist/events/selectors/predicate.d.ts.map +1 -1
- package/dist/events/selectors/types.d.ts +18 -3
- package/dist/events/selectors/types.d.ts.map +1 -1
- package/dist/events/types/artifacts.d.ts +7 -1
- package/dist/events/types/artifacts.d.ts.map +1 -1
- package/dist/events/types/connectors.d.ts +32 -0
- package/dist/events/types/connectors.d.ts.map +1 -0
- package/dist/events/types/index.d.ts +3 -1
- package/dist/events/types/index.d.ts.map +1 -1
- package/dist/execution/agent.js +28 -28
- package/dist/execution/authorization.d.ts +5 -0
- package/dist/execution/authorization.d.ts.map +1 -1
- package/dist/execution/primitive.js +28 -28
- package/dist/execution/request.js +29 -29
- package/dist/execution/scopes.d.ts +8 -0
- package/dist/execution/scopes.d.ts.map +1 -1
- package/dist/execution/script.d.ts +7 -0
- package/dist/execution/script.d.ts.map +1 -0
- package/dist/execution/types.d.ts +16 -1
- package/dist/execution/types.d.ts.map +1 -1
- package/dist/http/api-routes.d.ts.map +1 -1
- package/dist/http/index.js +1 -1
- package/dist/index.d.ts +9 -8
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +46 -44
- package/dist/index.js.map +1 -1
- package/dist/lake-storage/index.js +1 -1
- package/dist/lineage/executors.d.ts +1 -1
- package/dist/lineage/executors.d.ts.map +1 -1
- package/dist/maintenance/index.js +1 -1
- package/dist/materialization/event-envelopes.d.ts +3 -3
- package/dist/materialization/event-envelopes.d.ts.map +1 -1
- package/dist/materialization/events.d.ts +6 -0
- package/dist/materialization/events.d.ts.map +1 -1
- package/dist/materialization/index.js +1 -1
- package/dist/materialization/model.d.ts +6 -0
- package/dist/materialization/model.d.ts.map +1 -1
- package/dist/materializer/index.js +13 -13
- package/dist/materializer/projections/replace.d.ts.map +1 -1
- package/dist/materializer/projections/replacement-plan.d.ts +2 -0
- package/dist/materializer/projections/replacement-plan.d.ts.map +1 -1
- package/dist/materializer/shared/normalize.d.ts +1 -0
- package/dist/materializer/shared/normalize.d.ts.map +1 -1
- package/dist/models/execution/index.js +12 -12
- package/dist/models/language-model.d.ts +6 -0
- package/dist/models/language-model.d.ts.map +1 -1
- package/dist/models/tools.d.ts +2 -0
- package/dist/models/tools.d.ts.map +1 -1
- package/dist/objects/index.js +28 -28
- package/dist/objects/query/index.js +12 -12
- package/dist/pipelines/index.js +18 -18
- package/dist/projections/builders.d.ts +7 -1
- package/dist/projections/builders.d.ts.map +1 -1
- package/dist/projections/index.d.ts +1 -1
- package/dist/projections/index.d.ts.map +1 -1
- package/dist/projections/internal.js +13 -13
- package/dist/projections/types.d.ts +10 -0
- package/dist/projections/types.d.ts.map +1 -1
- package/dist/projections/validation.d.ts.map +1 -1
- package/dist/queues/in-memory.d.ts +2 -1
- package/dist/queues/in-memory.d.ts.map +1 -1
- package/dist/queues/index.d.ts +1 -1
- package/dist/queues/index.d.ts.map +1 -1
- package/dist/queues/index.js +1 -1
- package/dist/queues/types.d.ts +40 -13
- package/dist/queues/types.d.ts.map +1 -1
- package/dist/runtime/host.d.ts +13 -0
- package/dist/runtime/host.d.ts.map +1 -1
- package/dist/runtime/internal.d.ts +1 -0
- package/dist/runtime/internal.d.ts.map +1 -1
- package/dist/runtime/internal.js +39 -18
- package/dist/runtime/internal.js.map +4 -3
- package/dist/runtime/resolve-definitions.d.ts +1 -1
- package/dist/runtime/resolve-definitions.d.ts.map +1 -1
- package/dist/runtime/script.d.ts +39 -0
- package/dist/runtime/script.d.ts.map +1 -0
- package/dist/runtime/sixb.d.ts +2 -2
- package/dist/runtime/sixb.d.ts.map +1 -1
- package/dist/schedules/builders.d.ts.map +1 -1
- package/dist/schedules/index.js +3 -3
- package/dist/schedules/runtime.d.ts.map +1 -1
- package/dist/schedules/validation.d.ts +2 -0
- package/dist/schedules/validation.d.ts.map +1 -1
- package/dist/shares/internal.js +12 -12
- package/dist/storage/agents/errors.d.ts +1 -1
- package/dist/storage/agents/errors.d.ts.map +1 -1
- package/dist/storage/agents/in-memory.d.ts +26 -1
- package/dist/storage/agents/in-memory.d.ts.map +1 -1
- package/dist/storage/agents/index.d.ts +2 -2
- package/dist/storage/agents/index.d.ts.map +1 -1
- package/dist/storage/agents/provider.d.ts +12 -3
- package/dist/storage/agents/provider.d.ts.map +1 -1
- package/dist/storage/agents/provider.js +25 -5
- package/dist/storage/agents/provider.js.map +1 -1
- package/dist/storage/agents/types.d.ts +156 -1
- package/dist/storage/agents/types.d.ts.map +1 -1
- package/dist/storage/artifacts/in-memory.d.ts +7 -1
- package/dist/storage/artifacts/in-memory.d.ts.map +1 -1
- package/dist/storage/artifacts/index.d.ts +1 -1
- package/dist/storage/artifacts/index.d.ts.map +1 -1
- package/dist/storage/artifacts/record.d.ts +2 -1
- package/dist/storage/artifacts/record.d.ts.map +1 -1
- package/dist/storage/artifacts/types.d.ts +34 -0
- package/dist/storage/artifacts/types.d.ts.map +1 -1
- package/dist/storage/executions/provider.d.ts +3 -3
- package/dist/storage/executions/provider.d.ts.map +1 -1
- package/dist/storage/executions/provider.js +1 -1
- package/dist/storage/executions/types.d.ts +6 -0
- package/dist/storage/executions/types.d.ts.map +1 -1
- package/dist/storage/executions/validation.d.ts.map +1 -1
- package/dist/storage/file-upload-sessions/provider.js +3 -3
- package/dist/storage/index.d.ts +3 -3
- package/dist/storage/index.d.ts.map +1 -1
- package/dist/storage/index.js +18 -14
- package/dist/storage/index.js.map +1 -1
- package/dist/storage/internal.d.ts +1 -1
- package/dist/storage/internal.d.ts.map +1 -1
- package/dist/storage/internal.js +8 -6
- package/dist/storage/internal.js.map +2 -2
- package/dist/storage/ontology/in-memory/replacement-plans.d.ts +2 -0
- package/dist/storage/ontology/in-memory/replacement-plans.d.ts.map +1 -1
- package/dist/storage/ontology/provider.js +1 -1
- package/dist/storage/ontology/replacement-plans.d.ts +8 -0
- package/dist/storage/ontology/replacement-plans.d.ts.map +1 -1
- package/dist/storage/operation-scope.d.ts.map +1 -1
- package/dist/storage/operation-scope.js +1 -1
- package/dist/storage/workflow-runs/provider.js +3 -3
- package/dist/syncs/index.js +19 -19
- package/dist/testing/agent-execution.d.ts +3 -0
- package/dist/testing/agent-execution.d.ts.map +1 -1
- package/dist/testing/agent-inbox-storage-contract.d.ts +15 -0
- package/dist/testing/agent-inbox-storage-contract.d.ts.map +1 -0
- package/dist/testing/agent-storage-contract.d.ts.map +1 -1
- package/dist/testing/artifact-storage-contract.d.ts.map +1 -1
- package/dist/testing/execution-storage-contract.d.ts.map +1 -1
- package/dist/testing/index.d.ts +1 -0
- package/dist/testing/index.d.ts.map +1 -1
- package/dist/testing/index.js +5524 -4555
- package/dist/testing/index.js.map +10 -9
- package/dist/testing/materializer-storage-contract.d.ts.map +1 -1
- package/dist/testing/queues-contract.d.ts.map +1 -1
- package/dist/webhooks/connections.d.ts +3 -4
- package/dist/webhooks/connections.d.ts.map +1 -1
- package/dist/webhooks/index.d.ts +1 -1
- package/dist/webhooks/index.d.ts.map +1 -1
- package/dist/webhooks/internal.js +16 -49
- package/dist/webhooks/internal.js.map +3 -3
- package/dist/webhooks/types.d.ts +2 -11
- package/dist/webhooks/types.d.ts.map +1 -1
- package/dist/workers/queued-run-dispatch.d.ts.map +1 -1
- package/dist/workflows/index.js +35 -35
- package/package.json +6 -1
- package/src/agents/README.md +6 -2
- package/src/agents/approval-outcome.ts +2 -2
- package/src/agents/cancel.ts +2 -2
- package/src/agents/child-question.ts +76 -8
- package/src/agents/execution.ts +168 -30
- package/src/agents/ids.ts +9 -1
- package/src/agents/index.ts +27 -6
- package/src/agents/model-loop.ts +3 -1
- package/src/agents/queued-turn.ts +46 -0
- package/src/agents/request.ts +517 -2
- package/src/agents/run-after-finish.ts +259 -2
- package/src/agents/run-artifacts.ts +3 -93
- package/src/agents/run-events.ts +26 -1
- package/src/agents/run-session-children.ts +33 -0
- package/src/agents/run-session-http.ts +10 -2
- package/src/agents/run-session-serve.ts +3 -8
- package/src/agents/run-session.ts +142 -3
- package/src/agents/run-turn.ts +8 -0
- package/src/agents/streams/index.ts +1 -0
- package/src/agents/streams/protocol.ts +41 -1
- package/src/agents/tool-files.ts +1 -1
- package/src/agents/tool-input-coercion.ts +140 -0
- package/src/agents/turn-answered.ts +31 -0
- package/src/agents/validation.ts +13 -3
- package/src/artifacts/canvas-display.ts +4 -6
- package/src/artifacts/comments.ts +70 -17
- package/src/artifacts/document-fill.ts +103 -0
- package/src/artifacts/errors.ts +2 -0
- package/src/artifacts/events.ts +4 -1
- package/src/artifacts/execution.ts +265 -31
- package/src/artifacts/frames/assets.ts +42 -7
- package/src/artifacts/frames/document-data.ts +353 -0
- package/src/artifacts/frames/entries.ts +22 -16
- package/src/artifacts/frames/grants.ts +2 -2
- package/src/artifacts/frames/index.ts +3 -0
- package/src/artifacts/frames/kit.ts +102 -0
- package/src/artifacts/frames/protocol.ts +96 -3
- package/src/artifacts/frames/runtime.ts +709 -19
- package/src/artifacts/index.ts +6 -0
- package/src/artifacts/live/blocks.ts +889 -0
- package/src/artifacts/live/board.ts +195 -42
- package/src/artifacts/live/document.ts +170 -5
- package/src/artifacts/live/index.ts +7 -0
- package/src/artifacts/live/page.ts +807 -0
- package/src/artifacts/live/protocol.ts +5 -0
- package/src/artifacts/live/server.ts +2 -2
- package/src/artifacts/live/state.ts +9 -4
- package/src/artifacts/outline.ts +17 -0
- package/src/artifacts/paper.ts +173 -0
- package/src/artifacts/pdf-job.ts +11 -0
- package/src/artifacts/publish/fields.ts +177 -0
- package/src/artifacts/publish/index.ts +6 -1
- package/src/artifacts/publish/merge.ts +14 -12
- package/src/artifacts/publish/pdf.ts +82 -0
- package/src/artifacts/publish/previews.ts +24 -34
- package/src/artifacts/publish/publish.ts +26 -3
- package/src/artifacts/publish/queries.ts +20 -4
- package/src/artifacts/publish/query-answers.ts +14 -3
- package/src/artifacts/publish/validate/document-html.ts +245 -0
- package/src/artifacts/publish/validate/document.ts +34 -3
- package/src/artifacts/queries.ts +59 -13
- package/src/authorization/event-visibility.ts +13 -0
- package/src/connectors/connection-handles.ts +71 -0
- package/src/connectors/connections/authorizations.ts +50 -2
- package/src/connectors/connections/events.ts +57 -0
- package/src/connectors/connections/runs.ts +5 -0
- package/src/connectors/connections/service.ts +19 -1
- package/src/connectors/execution.ts +30 -2
- package/src/connectors/index.ts +3 -0
- package/src/connectors/types.ts +29 -1
- package/src/deploy/index.ts +1 -0
- package/src/deploy/services.ts +1 -0
- package/src/deploy/types.ts +26 -1
- package/src/events/definitions.ts +14 -0
- package/src/events/execution.ts +9 -2
- package/src/events/index.ts +8 -0
- package/src/events/outbox-dispatcher.ts +12 -2
- package/src/events/scope.ts +3 -0
- package/src/events/selectors/builder.ts +49 -0
- package/src/events/selectors/index.ts +5 -0
- package/src/events/selectors/predicate.ts +2 -0
- package/src/events/selectors/types.ts +30 -1
- package/src/events/types/artifacts.ts +7 -1
- package/src/events/types/connectors.ts +36 -0
- package/src/events/types/index.ts +7 -0
- package/src/execution/authorization.ts +45 -0
- package/src/execution/durable.ts +2 -0
- package/src/execution/scopes.ts +24 -0
- package/src/execution/script.ts +27 -0
- package/src/execution/types.ts +7 -1
- package/src/http/api-routes.ts +26 -1
- package/src/index.ts +21 -2
- package/src/lineage/executors.ts +3 -1
- package/src/materialization/event-envelopes.ts +10 -5
- package/src/materialization/events.ts +2 -0
- package/src/materialization/model.ts +6 -0
- package/src/materializer/README.md +10 -0
- package/src/materializer/projections/replace.ts +42 -1
- package/src/materializer/projections/replacement-plan.ts +44 -4
- package/src/materializer/shared/normalize.ts +4 -0
- package/src/models/language-model.ts +6 -0
- package/src/models/tools.ts +2 -0
- package/src/projections/builders.ts +20 -0
- package/src/projections/index.ts +1 -0
- package/src/projections/registry.ts +1 -0
- package/src/projections/revision.ts +2 -0
- package/src/projections/types.ts +11 -0
- package/src/projections/validation.ts +6 -0
- package/src/queues/in-memory.ts +5 -0
- package/src/queues/index.ts +3 -1
- package/src/queues/types.ts +45 -14
- package/src/runtime/host.ts +112 -4
- package/src/runtime/internal.ts +1 -0
- package/src/runtime/resolve-definitions.ts +4 -1
- package/src/runtime/script.ts +62 -0
- package/src/runtime/sixb.ts +3 -3
- package/src/schedules/builders.ts +4 -1
- package/src/schedules/runtime.ts +3 -0
- package/src/schedules/validation.ts +20 -2
- package/src/storage/agents/errors.ts +1 -0
- package/src/storage/agents/in-memory.ts +229 -1
- package/src/storage/agents/index.ts +16 -0
- package/src/storage/agents/provider.ts +284 -2
- package/src/storage/agents/types.ts +168 -1
- package/src/storage/artifacts/in-memory.ts +32 -1
- package/src/storage/artifacts/index.ts +2 -0
- package/src/storage/artifacts/record.ts +25 -2
- package/src/storage/artifacts/types.ts +37 -0
- package/src/storage/executions/provider.ts +22 -2
- package/src/storage/executions/types.ts +2 -0
- package/src/storage/executions/validation.ts +27 -0
- package/src/storage/index.ts +18 -0
- package/src/storage/internal.ts +1 -0
- package/src/storage/ontology/in-memory/replacement-plans.ts +22 -0
- package/src/storage/ontology/replacement-plans.ts +6 -0
- package/src/storage/operation-scope.ts +1 -0
- package/src/testing/agent-execution.ts +45 -2
- package/src/testing/agent-inbox-storage-contract.ts +815 -0
- package/src/testing/agent-storage-contract.ts +103 -0
- package/src/testing/artifact-storage-contract.ts +72 -4
- package/src/testing/execution-storage-contract.ts +31 -0
- package/src/testing/index.ts +5 -0
- package/src/testing/materializer-storage-contract.ts +139 -1
- package/src/testing/queues-contract.ts +22 -0
- package/src/webhooks/connections.ts +9 -50
- package/src/webhooks/index.ts +0 -2
- package/src/webhooks/types.ts +2 -13
- package/src/workers/queued-run-dispatch.ts +8 -1
- package/dist/chunk-48c1z8nj.js.map +0 -10
- package/dist/chunk-58geavnf.js +0 -29
- package/dist/chunk-58geavnf.js.map +0 -10
- package/dist/chunk-7z5rkf0m.js.map +0 -13
- package/dist/chunk-9nsjjd44.js.map +0 -12
- package/dist/chunk-b9qfh2ya.js.map +0 -11
- package/dist/chunk-eptrvnby.js.map +0 -12
- package/dist/chunk-f6ahf5gf.js.map +0 -13
- package/dist/chunk-m2jerfef.js +0 -474
- package/dist/chunk-m2jerfef.js.map +0 -11
- package/dist/chunk-n4zzaf6q.js.map +0 -10
- package/dist/chunk-qds484t8.js.map +0 -18
- package/dist/chunk-smnt672s.js.map +0 -10
- package/dist/chunk-vzkxqf8h.js.map +0 -23
- package/dist/chunk-w9s23r24.js.map +0 -30
- package/dist/chunk-wa05txmk.js.map +0 -11
- package/dist/chunk-yv8hv4wq.js.map +0 -10
- package/dist/chunk-z0t4p2sk.js.map +0 -47
- /package/dist/{chunk-tqa68kj7.js.map → chunk-0hkdtwqk.js.map} +0 -0
- /package/dist/{chunk-s5n9617r.js.map → chunk-0mvjpgvm.js.map} +0 -0
- /package/dist/{chunk-k66rp2hr.js.map → chunk-1yh6jgtz.js.map} +0 -0
- /package/dist/{chunk-26qet7wh.js.map → chunk-5t9gm5tt.js.map} +0 -0
- /package/dist/{chunk-e0hnbb1m.js.map → chunk-61zptves.js.map} +0 -0
- /package/dist/{chunk-hkaa807g.js.map → chunk-68hm50qh.js.map} +0 -0
- /package/dist/{chunk-fe6r7yhg.js.map → chunk-92wrka15.js.map} +0 -0
- /package/dist/{chunk-m7b9q5dk.js.map → chunk-aw1z0gre.js.map} +0 -0
- /package/dist/{chunk-kv0kvknv.js.map → chunk-fzae1jpq.js.map} +0 -0
- /package/dist/{chunk-6gtxshcc.js.map → chunk-k29n4176.js.map} +0 -0
- /package/dist/{chunk-sysnvjce.js.map → chunk-naxjka9v.js.map} +0 -0
- /package/dist/{chunk-qafng88v.js.map → chunk-pqvvqc65.js.map} +0 -0
- /package/dist/{chunk-8p7bze4c.js.map → chunk-s1mqyqmm.js.map} +0 -0
- /package/dist/{chunk-p351afzm.js.map → chunk-s5pj68fa.js.map} +0 -0
- /package/dist/{chunk-855w9nvw.js.map → chunk-vehcr9eb.js.map} +0 -0
- /package/dist/{chunk-n68vz95m.js.map → chunk-wqe9shx2.js.map} +0 -0
- /package/dist/{chunk-0k3r5kb3.js.map → chunk-xcrnrpfh.js.map} +0 -0
- /package/dist/{chunk-38yvdqzd.js.map → chunk-zxhym8tr.js.map} +0 -0
|
@@ -60,7 +60,7 @@ import {
|
|
|
60
60
|
createUsersRuntime,
|
|
61
61
|
SYSTEM_PRINCIPAL2,
|
|
62
62
|
principalsEqual2
|
|
63
|
-
} from "./chunk-
|
|
63
|
+
} from "./chunk-xcrnrpfh.js";
|
|
64
64
|
import {
|
|
65
65
|
ActionValidationError2,
|
|
66
66
|
SIXB_ERROR_CODES2,
|
|
@@ -97,7 +97,7 @@ import {
|
|
|
97
97
|
canViewProjectionRun2,
|
|
98
98
|
canViewPrimitiveRun2,
|
|
99
99
|
canViewProjection2
|
|
100
|
-
} from "./chunk-
|
|
100
|
+
} from "./chunk-paxabbqd.js";
|
|
101
101
|
import {
|
|
102
102
|
compileSelectedObjectReadScope2
|
|
103
103
|
} from "./chunk-rt9deb92.js";
|
|
@@ -107,7 +107,7 @@ import {
|
|
|
107
107
|
resolveAgentExecutionAuthorization2,
|
|
108
108
|
userCanRunAgent2,
|
|
109
109
|
resolveInheritedAgentExecutionAuthorization2
|
|
110
|
-
} from "./chunk-
|
|
110
|
+
} from "./chunk-s5pj68fa.js";
|
|
111
111
|
import {
|
|
112
112
|
ACTION_RUN_FAILURE_CODES2,
|
|
113
113
|
parseActionRunFailure2
|
|
@@ -143,19 +143,20 @@ import {
|
|
|
143
143
|
createAgentThreadSandboxName2,
|
|
144
144
|
createAgentRunId2,
|
|
145
145
|
createAgentMessageId2,
|
|
146
|
+
createAgentInboxItemId,
|
|
146
147
|
AGENT_REASONING_LEVELS2,
|
|
147
148
|
movesComputerPlace2,
|
|
148
149
|
isAgentApprovalMode2,
|
|
149
150
|
agentApprovalHoldsRun2
|
|
150
|
-
} from "./chunk-
|
|
151
|
+
} from "./chunk-ey1p8w68.js";
|
|
151
152
|
import {
|
|
152
153
|
actionRunRequestsEqual,
|
|
153
154
|
ObjectNotFoundError2,
|
|
154
155
|
ArtifactStorageError
|
|
155
|
-
} from "./chunk-
|
|
156
|
+
} from "./chunk-ewqn51gr.js";
|
|
156
157
|
import {
|
|
157
158
|
ExecutionStorageError2
|
|
158
|
-
} from "./chunk-
|
|
159
|
+
} from "./chunk-c29729me.js";
|
|
159
160
|
import {
|
|
160
161
|
objectRefKey2,
|
|
161
162
|
linkRefKey2,
|
|
@@ -166,10 +167,10 @@ import {
|
|
|
166
167
|
objectBatchKey2,
|
|
167
168
|
matchesPredicate,
|
|
168
169
|
WORKFLOW_RUN_FAILURE_CODES2
|
|
169
|
-
} from "./chunk-
|
|
170
|
+
} from "./chunk-gjhrz66x.js";
|
|
170
171
|
import {
|
|
171
172
|
explainObjectQuery2
|
|
172
|
-
} from "./chunk-
|
|
173
|
+
} from "./chunk-s1mqyqmm.js";
|
|
173
174
|
import {
|
|
174
175
|
redactDomainEvent,
|
|
175
176
|
uniqueLookupKeyOf,
|
|
@@ -178,7 +179,7 @@ import {
|
|
|
178
179
|
readerClearance,
|
|
179
180
|
readerEventClearance,
|
|
180
181
|
readerViewConditions
|
|
181
|
-
} from "./chunk-
|
|
182
|
+
} from "./chunk-5t9gm5tt.js";
|
|
182
183
|
import {
|
|
183
184
|
createAgentThreadAccessRule,
|
|
184
185
|
assertConversationThread2,
|
|
@@ -190,7 +191,7 @@ import {
|
|
|
190
191
|
transactionArtifactAccessRules,
|
|
191
192
|
updatableArtifactIds,
|
|
192
193
|
createArtifactsRuntime
|
|
193
|
-
} from "./chunk-
|
|
194
|
+
} from "./chunk-m3qx2pns.js";
|
|
194
195
|
import {
|
|
195
196
|
shareSixbErrorReporter2,
|
|
196
197
|
reportActionPhaseFailure2,
|
|
@@ -212,14 +213,14 @@ import {
|
|
|
212
213
|
createActivityCaptureRuntime,
|
|
213
214
|
registerActivityCaptureRuntime,
|
|
214
215
|
ModelExecutionSession
|
|
215
|
-
} from "./chunk-
|
|
216
|
+
} from "./chunk-k29n4176.js";
|
|
216
217
|
import {
|
|
217
218
|
publishAgentThreadMoved2,
|
|
218
219
|
publishAgentApprovalActivity,
|
|
219
220
|
publishAgentRunActivity2,
|
|
220
221
|
publishAgentRunCancel2,
|
|
221
222
|
publishAgentRunFinished2
|
|
222
|
-
} from "./chunk-
|
|
223
|
+
} from "./chunk-k3jh8gsg.js";
|
|
223
224
|
import {
|
|
224
225
|
aiLimitSubjectsFromAttribution2,
|
|
225
226
|
applicableAiLimitPolicyStatuses2,
|
|
@@ -238,7 +239,7 @@ import {
|
|
|
238
239
|
} from "./chunk-5a4a52tq.js";
|
|
239
240
|
import {
|
|
240
241
|
createConnectorRuntime
|
|
241
|
-
} from "./chunk-
|
|
242
|
+
} from "./chunk-qavwr628.js";
|
|
242
243
|
import {
|
|
243
244
|
DatasetValidationError2
|
|
244
245
|
} from "./chunk-wx7smkn2.js";
|
|
@@ -255,7 +256,7 @@ import {
|
|
|
255
256
|
aiModelCallOutputTokenAllowance,
|
|
256
257
|
ModelUsageRecordingError2,
|
|
257
258
|
LanguageModelCallMeter
|
|
258
|
-
} from "./chunk-
|
|
259
|
+
} from "./chunk-1yh6jgtz.js";
|
|
259
260
|
import {
|
|
260
261
|
createLinkScopeFingerprint2,
|
|
261
262
|
normalizeJsonProperties2,
|
|
@@ -265,7 +266,7 @@ import {
|
|
|
265
266
|
resolveEffectiveLink,
|
|
266
267
|
resolveEffectiveLinkSlotMember,
|
|
267
268
|
linkCardinality
|
|
268
|
-
} from "./chunk-
|
|
269
|
+
} from "./chunk-b4escq4c.js";
|
|
269
270
|
import {
|
|
270
271
|
resolveLoggingService2
|
|
271
272
|
} from "./chunk-1vg43g9q.js";
|
|
@@ -276,10 +277,10 @@ import {
|
|
|
276
277
|
import {
|
|
277
278
|
SyncValidationError2,
|
|
278
279
|
requestSyncRun2
|
|
279
|
-
} from "./chunk-
|
|
280
|
+
} from "./chunk-aw1z0gre.js";
|
|
280
281
|
import {
|
|
281
282
|
compileShareAccessPlan
|
|
282
|
-
} from "./chunk-
|
|
283
|
+
} from "./chunk-wqe9shx2.js";
|
|
283
284
|
import {
|
|
284
285
|
createObjectQueryBuilder2,
|
|
285
286
|
decorateObjectQueryExecutor
|
|
@@ -297,7 +298,7 @@ import {
|
|
|
297
298
|
} from "./chunk-0kgrghqx.js";
|
|
298
299
|
import {
|
|
299
300
|
requestPipelineRun2
|
|
300
|
-
} from "./chunk-
|
|
301
|
+
} from "./chunk-pqvvqc65.js";
|
|
301
302
|
import {
|
|
302
303
|
PipelineError2
|
|
303
304
|
} from "./chunk-hke9aeen.js";
|
|
@@ -306,7 +307,7 @@ import {
|
|
|
306
307
|
ensureExecutionRecord2,
|
|
307
308
|
createPrimitiveExecutionRecord,
|
|
308
309
|
restoreTrustedPrimitiveExecutionScope
|
|
309
|
-
} from "./chunk-
|
|
310
|
+
} from "./chunk-pc7kra3k.js";
|
|
310
311
|
import {
|
|
311
312
|
lineageColumn,
|
|
312
313
|
isUnknownLineage,
|
|
@@ -338,7 +339,7 @@ import {
|
|
|
338
339
|
} from "./chunk-m4ehq95f.js";
|
|
339
340
|
import {
|
|
340
341
|
eventAttribution2
|
|
341
|
-
} from "./chunk-
|
|
342
|
+
} from "./chunk-q7g9cqwt.js";
|
|
342
343
|
import {
|
|
343
344
|
ObjectQueryPlanningError2
|
|
344
345
|
} from "./chunk-0k1h5hmr.js";
|
|
@@ -368,7 +369,7 @@ import {
|
|
|
368
369
|
} from "./chunk-9wr3yajk.js";
|
|
369
370
|
import {
|
|
370
371
|
AGENT_APPROVAL_MODES2
|
|
371
|
-
} from "./chunk-
|
|
372
|
+
} from "./chunk-nxysqbt0.js";
|
|
372
373
|
import {
|
|
373
374
|
resolveFileRefAtPath2,
|
|
374
375
|
openFileRef2,
|
|
@@ -1723,16 +1724,49 @@ async function publishQueuedRunCancellation(runtime, run) {
|
|
|
1723
1724
|
}
|
|
1724
1725
|
|
|
1725
1726
|
// src/agents/child-question.ts
|
|
1727
|
+
var AGENT_QUESTION_LIMITS2 = { questions: 4, choices: 4 };
|
|
1728
|
+
function agentQuestionsText2(questions) {
|
|
1729
|
+
const lines = questions.map((question) => {
|
|
1730
|
+
const choices = question.choices?.length ? ` (${question.multiple ? "any of: " : ""}${question.choices.join(" / ")})` : "";
|
|
1731
|
+
return `${question.question}${choices}`;
|
|
1732
|
+
});
|
|
1733
|
+
return lines.length === 1 ? lines[0] ?? "" : lines.map((line, i) => `${i + 1}. ${line}`).join(`
|
|
1734
|
+
`);
|
|
1735
|
+
}
|
|
1736
|
+
function agentQuestionsOf(input) {
|
|
1737
|
+
if (!isJsonObject2(input))
|
|
1738
|
+
return;
|
|
1739
|
+
if (typeof input.question === "string")
|
|
1740
|
+
return [{ question: input.question.trim() }];
|
|
1741
|
+
if (!Array.isArray(input.questions))
|
|
1742
|
+
return;
|
|
1743
|
+
const questions = input.questions.flatMap((value) => {
|
|
1744
|
+
if (!isJsonObject2(value) || typeof value.question !== "string")
|
|
1745
|
+
return [];
|
|
1746
|
+
const choices = Array.isArray(value.choices) ? value.choices.filter((choice) => typeof choice === "string") : [];
|
|
1747
|
+
return [
|
|
1748
|
+
{
|
|
1749
|
+
question: value.question.trim(),
|
|
1750
|
+
...choices.length > 0 ? { choices } : {},
|
|
1751
|
+
...value.multiple === true ? { multiple: true } : {}
|
|
1752
|
+
}
|
|
1753
|
+
];
|
|
1754
|
+
});
|
|
1755
|
+
return questions.length > 0 ? questions : undefined;
|
|
1756
|
+
}
|
|
1757
|
+
function isChildAskTool2(toolName) {
|
|
1758
|
+
return toolName === "ask" || toolName === "ask_parent";
|
|
1759
|
+
}
|
|
1726
1760
|
function isAwaitingAnswerRun2(run) {
|
|
1727
1761
|
return run?.kind === "subagent" && run.status === "succeeded" && run.finishReason === "awaiting_answer";
|
|
1728
1762
|
}
|
|
1729
1763
|
function deferredChildQuestion2(messages) {
|
|
1730
|
-
const asked = messages.flatMap((message) => message.parts).flatMap((part) => part.type === "tool-call" && part.toolName
|
|
1764
|
+
const asked = messages.flatMap((message) => message.parts).flatMap((part) => part.type === "tool-call" && isChildAskTool2(part.toolName) && part.state === "output-available" && isJsonObject2(part.output) && part.output.status === "deferred" ? [{ input: part.input, output: part.output }] : []).at(-1);
|
|
1731
1765
|
if (!asked)
|
|
1732
1766
|
return;
|
|
1733
|
-
const
|
|
1767
|
+
const questions = agentQuestionsOf(asked.input);
|
|
1734
1768
|
const { question: id } = asked.output;
|
|
1735
|
-
return
|
|
1769
|
+
return questions && typeof id === "string" ? { id, text: agentQuestionsText2(questions) } : undefined;
|
|
1736
1770
|
}
|
|
1737
1771
|
|
|
1738
1772
|
// src/agents/subagent-runs.ts
|
|
@@ -2483,6 +2517,24 @@ function invalidParticipant(message) {
|
|
|
2483
2517
|
return new AgentRequestError2("invalid_participant", `[Sixb] ${message}`);
|
|
2484
2518
|
}
|
|
2485
2519
|
|
|
2520
|
+
// src/agents/queued-turn.ts
|
|
2521
|
+
var queuedTurnKey = Symbol("sixb.agentQueuedTurn");
|
|
2522
|
+
function registerAgentQueuedTurn2(agent, start) {
|
|
2523
|
+
Object.defineProperty(agent, queuedTurnKey, {
|
|
2524
|
+
configurable: false,
|
|
2525
|
+
enumerable: false,
|
|
2526
|
+
value: start,
|
|
2527
|
+
writable: false
|
|
2528
|
+
});
|
|
2529
|
+
}
|
|
2530
|
+
function startQueuedAgentTurn2(sixb, runId, options) {
|
|
2531
|
+
const start = sixb.agent[queuedTurnKey];
|
|
2532
|
+
if (!start) {
|
|
2533
|
+
throw new Error("[Sixb] Queued Agent messages cannot start: Sixb did not bind this SDK.");
|
|
2534
|
+
}
|
|
2535
|
+
return start(runId, options);
|
|
2536
|
+
}
|
|
2537
|
+
|
|
2486
2538
|
// src/agents/request.ts
|
|
2487
2539
|
import { randomUUID as randomUUID5 } from "crypto";
|
|
2488
2540
|
|
|
@@ -2606,6 +2658,23 @@ function assertNoAgentSelector(input) {
|
|
|
2606
2658
|
}
|
|
2607
2659
|
}
|
|
2608
2660
|
|
|
2661
|
+
// src/agents/turn-answered.ts
|
|
2662
|
+
async function turnAnsweredEveryMessage(agents, run) {
|
|
2663
|
+
if (run.status !== "succeeded")
|
|
2664
|
+
return false;
|
|
2665
|
+
const { messages } = await agents.messages.list({
|
|
2666
|
+
projectId: run.projectId,
|
|
2667
|
+
threadId: run.threadId,
|
|
2668
|
+
roles: ["assistant"],
|
|
2669
|
+
order: "desc",
|
|
2670
|
+
limit: 1
|
|
2671
|
+
});
|
|
2672
|
+
const answer = messages[0];
|
|
2673
|
+
if (!answer || answer.runId !== run.id)
|
|
2674
|
+
return true;
|
|
2675
|
+
return !answer.parts.some((part) => part.type === "tool-call" && part.state === "output-available" && isJsonObject2(part.output) && part.output.status === "asked");
|
|
2676
|
+
}
|
|
2677
|
+
|
|
2609
2678
|
// src/agents/request.ts
|
|
2610
2679
|
async function requestAgentRun2(runtime, execution, models, input) {
|
|
2611
2680
|
const authority = resolveExecutionScopeAuthorization(runtime.projectId, {
|
|
@@ -2783,6 +2852,298 @@ async function retryAgentRun2(runtime, execution, models, failedRun, blobStorage
|
|
|
2783
2852
|
const jobId = await dispatchAgentRun(runtime, agents, runId);
|
|
2784
2853
|
return { run, ...jobId ? { jobId } : {}, createdThread: false };
|
|
2785
2854
|
}
|
|
2855
|
+
var AGENT_MESSAGE_DELIVERIES2 = ["auto", "steer", "queue", "send_now"];
|
|
2856
|
+
async function sendAgentMessage2(runtime, execution, models, input) {
|
|
2857
|
+
const delivery = input.delivery ?? "auto";
|
|
2858
|
+
const agents = requireAgentStorage(runtime);
|
|
2859
|
+
const projectId = runtime.projectId;
|
|
2860
|
+
const thread = await agents.threads.getById({ projectId, id: input.threadId });
|
|
2861
|
+
if (!thread) {
|
|
2862
|
+
throw new AgentRequestError2("thread_not_found", `[Sixb] Agent thread '${input.threadId}' was not found.`);
|
|
2863
|
+
}
|
|
2864
|
+
assertConversationThread2(thread);
|
|
2865
|
+
const startTurn = async () => {
|
|
2866
|
+
const { delivery: _delivery, ...request } = input;
|
|
2867
|
+
const result = await requestAgentRun2(runtime, execution, models, request);
|
|
2868
|
+
return { kind: "turn", run: result.run, createdThread: result.createdThread };
|
|
2869
|
+
};
|
|
2870
|
+
const activeId = thread.activeRunId;
|
|
2871
|
+
if (delivery === "auto" || activeId === null)
|
|
2872
|
+
return startTurn();
|
|
2873
|
+
const active = await agents.runs.getById({ projectId, id: activeId });
|
|
2874
|
+
const requester = active ? (await runtime.storage.executions.getById({ projectId, id: active.executionId }))?.requestedBy : undefined;
|
|
2875
|
+
const principal = messageAuthor(runtime, execution);
|
|
2876
|
+
const requesterOfTurn = requester !== undefined && principalsEqual2(requester, principal);
|
|
2877
|
+
if (!requesterOfTurn && delivery !== "queue") {
|
|
2878
|
+
throw new AgentRequestError2("not_run_requester", `[Sixb] Agent thread '${thread.id}' runs a turn someone else asked for: only they can steer it or send now. Queue the message for your own turn.`);
|
|
2879
|
+
}
|
|
2880
|
+
const settings = requesterSettings(input);
|
|
2881
|
+
const contextParts = await resolveAgentContextParts2(runtime, input.context);
|
|
2882
|
+
const trigger = deliveredParts(input, delivery);
|
|
2883
|
+
const spec = {
|
|
2884
|
+
...input.model === undefined ? {} : { model: input.model },
|
|
2885
|
+
...input.reasoning === undefined ? {} : { reasoning: input.reasoning },
|
|
2886
|
+
...input.approvalMode === undefined ? {} : { approvalMode: input.approvalMode }
|
|
2887
|
+
};
|
|
2888
|
+
assertRequestAuthorityCanRunAgent(runtime);
|
|
2889
|
+
const request = await ensureExecutionRecord2(runtime.storage.executions, executionRecordInputFromRuntime({
|
|
2890
|
+
execution,
|
|
2891
|
+
runtimeAuthorization: runtime.runtimeAuthorization
|
|
2892
|
+
}));
|
|
2893
|
+
const { item } = await agents.inbox.enqueue({
|
|
2894
|
+
id: createAgentInboxItemId(),
|
|
2895
|
+
projectId,
|
|
2896
|
+
threadId: thread.id,
|
|
2897
|
+
messageId: input.messageId ?? createAgentMessageId2(),
|
|
2898
|
+
authorPrincipal: principal,
|
|
2899
|
+
mode: delivery === "steer" ? "steer" : "queue",
|
|
2900
|
+
parts: [...contextParts, ...trigger],
|
|
2901
|
+
...Object.keys(spec).length === 0 ? {} : { spec },
|
|
2902
|
+
...settings,
|
|
2903
|
+
...delivery === "send_now" ? { immediate: true } : {},
|
|
2904
|
+
executionId: request.id
|
|
2905
|
+
});
|
|
2906
|
+
if (delivery === "send_now") {
|
|
2907
|
+
await stopTurnBefore(runtime, execution, active);
|
|
2908
|
+
}
|
|
2909
|
+
await startIfThreadIdle(runtime, execution, thread.id);
|
|
2910
|
+
return { kind: "inbox", item };
|
|
2911
|
+
}
|
|
2912
|
+
async function promoteAgentInboxItem2(runtime, execution, input) {
|
|
2913
|
+
const agents = requireAgentStorage(runtime);
|
|
2914
|
+
const projectId = runtime.projectId;
|
|
2915
|
+
const thread = await agents.threads.getById({ projectId, id: input.threadId });
|
|
2916
|
+
if (!thread) {
|
|
2917
|
+
throw new AgentRequestError2("thread_not_found", `[Sixb] Agent thread '${input.threadId}' was not found.`);
|
|
2918
|
+
}
|
|
2919
|
+
assertConversationThread2(thread);
|
|
2920
|
+
const item = await agents.inbox.getById({ projectId, id: input.itemId });
|
|
2921
|
+
if (!item || item.threadId !== thread.id) {
|
|
2922
|
+
throw new AgentRequestError2("invalid_message", `[Sixb] Agent inbox item '${input.itemId}' is not waiting in thread '${thread.id}'.`);
|
|
2923
|
+
}
|
|
2924
|
+
const principal = messageAuthor(runtime, execution);
|
|
2925
|
+
if (!principalsEqual2(item.authorPrincipal, principal)) {
|
|
2926
|
+
throw new AgentRequestError2("not_run_requester", `[Sixb] Agent inbox item '${item.id}' was sent by someone else: only they can change it.`);
|
|
2927
|
+
}
|
|
2928
|
+
const active = thread.activeRunId ? await agents.runs.getById({ projectId, id: thread.activeRunId }) : null;
|
|
2929
|
+
const delivery = input.delivery ?? item.mode;
|
|
2930
|
+
const turn = active?.kind === "conversation" ? active : null;
|
|
2931
|
+
if ((delivery === "steer" || input.immediate === true) && turn) {
|
|
2932
|
+
if (!await askedForTurn(runtime, turn, principal)) {
|
|
2933
|
+
throw new AgentRequestError2("not_run_requester", `[Sixb] Agent thread '${thread.id}' runs a turn someone else asked for: only they can steer it or send now. Keep the message queued for your own turn.`);
|
|
2934
|
+
}
|
|
2935
|
+
}
|
|
2936
|
+
const spec = {
|
|
2937
|
+
...input.model === undefined ? {} : { model: input.model },
|
|
2938
|
+
...input.reasoning === undefined ? {} : { reasoning: input.reasoning },
|
|
2939
|
+
...input.approvalMode === undefined ? {} : { approvalMode: input.approvalMode }
|
|
2940
|
+
};
|
|
2941
|
+
const updated = await agents.inbox.update({
|
|
2942
|
+
projectId,
|
|
2943
|
+
threadId: thread.id,
|
|
2944
|
+
id: item.id,
|
|
2945
|
+
...input.delivery === undefined ? {} : { mode: input.delivery },
|
|
2946
|
+
...input.text === undefined ? {} : {
|
|
2947
|
+
parts: [
|
|
2948
|
+
{ type: "text", text: input.text },
|
|
2949
|
+
...item.parts.filter((part) => part.type !== "text")
|
|
2950
|
+
]
|
|
2951
|
+
},
|
|
2952
|
+
...Object.keys(spec).length === 0 ? {} : { spec: { ...item.spec, ...spec } },
|
|
2953
|
+
...input.immediate === true ? { immediate: true } : {}
|
|
2954
|
+
});
|
|
2955
|
+
if (!updated) {
|
|
2956
|
+
throw new AgentRequestError2("invalid_message", `[Sixb] Agent inbox item '${item.id}' is no longer waiting in thread '${thread.id}'.`);
|
|
2957
|
+
}
|
|
2958
|
+
if (input.immediate === true && turn) {
|
|
2959
|
+
await stopTurnBefore(runtime, execution, turn);
|
|
2960
|
+
}
|
|
2961
|
+
await startIfThreadIdle(runtime, execution, thread.id);
|
|
2962
|
+
return updated;
|
|
2963
|
+
}
|
|
2964
|
+
async function withdrawAgentInboxItem2(runtime, execution, input) {
|
|
2965
|
+
const agents = requireAgentStorage(runtime);
|
|
2966
|
+
const projectId = runtime.projectId;
|
|
2967
|
+
const thread = await agents.threads.getById({ projectId, id: input.threadId });
|
|
2968
|
+
if (!thread) {
|
|
2969
|
+
throw new AgentRequestError2("thread_not_found", `[Sixb] Agent thread '${input.threadId}' was not found.`);
|
|
2970
|
+
}
|
|
2971
|
+
assertConversationThread2(thread);
|
|
2972
|
+
const item = await agents.inbox.getById({ projectId, id: input.itemId });
|
|
2973
|
+
if (!item || item.threadId !== thread.id) {
|
|
2974
|
+
throw new AgentRequestError2("invalid_message", `[Sixb] Agent inbox item '${input.itemId}' is not waiting in thread '${thread.id}'.`);
|
|
2975
|
+
}
|
|
2976
|
+
if (!principalsEqual2(item.authorPrincipal, messageAuthor(runtime, execution))) {
|
|
2977
|
+
throw new AgentRequestError2("not_run_requester", `[Sixb] Agent inbox item '${item.id}' was sent by someone else: only they can withdraw it.`);
|
|
2978
|
+
}
|
|
2979
|
+
const removed = await agents.inbox.remove({ projectId, threadId: thread.id, id: item.id });
|
|
2980
|
+
if (!removed) {
|
|
2981
|
+
throw new AgentRequestError2("invalid_message", `[Sixb] Agent inbox item '${item.id}' is no longer waiting in thread '${thread.id}': a turn read it.`);
|
|
2982
|
+
}
|
|
2983
|
+
}
|
|
2984
|
+
function messageAuthor(runtime, execution) {
|
|
2985
|
+
const authority = resolveExecutionScopeAuthorization(runtime.projectId, {
|
|
2986
|
+
execution,
|
|
2987
|
+
authorization: runtime.runtimeAuthorization
|
|
2988
|
+
});
|
|
2989
|
+
return authority.type === "principal" ? authority.context.principal : SYSTEM_PRINCIPAL2;
|
|
2990
|
+
}
|
|
2991
|
+
async function askedForTurn(runtime, run, principal) {
|
|
2992
|
+
const requester = (await runtime.storage.executions.getById({ projectId: runtime.projectId, id: run.executionId }))?.requestedBy;
|
|
2993
|
+
return requester !== undefined && principalsEqual2(requester, principal);
|
|
2994
|
+
}
|
|
2995
|
+
async function stopTurnBefore(runtime, execution, active) {
|
|
2996
|
+
if (active.status === "running") {
|
|
2997
|
+
await cancelAgentRun(runtime, active);
|
|
2998
|
+
return;
|
|
2999
|
+
}
|
|
3000
|
+
await cancelAgentRun(runtime, active).catch(() => {
|
|
3001
|
+
return;
|
|
3002
|
+
});
|
|
3003
|
+
await startQueuedAgentTurnFromInbox2(runtime, execution, active, { onlyImmediate: true });
|
|
3004
|
+
}
|
|
3005
|
+
async function startIfThreadIdle(runtime, execution, threadId) {
|
|
3006
|
+
const agents = requireAgentStorage(runtime);
|
|
3007
|
+
const projectId = runtime.projectId;
|
|
3008
|
+
try {
|
|
3009
|
+
const thread = await agents.threads.getById({ projectId, id: threadId });
|
|
3010
|
+
if (!thread || thread.activeRunId !== null)
|
|
3011
|
+
return;
|
|
3012
|
+
const {
|
|
3013
|
+
runs: [last]
|
|
3014
|
+
} = await agents.runs.list({
|
|
3015
|
+
projectId,
|
|
3016
|
+
threadId,
|
|
3017
|
+
kinds: ["conversation"],
|
|
3018
|
+
order: "desc",
|
|
3019
|
+
limit: 1
|
|
3020
|
+
});
|
|
3021
|
+
if (last?.kind !== "conversation")
|
|
3022
|
+
return;
|
|
3023
|
+
const onlyImmediate = isAwaitingApprovalRun2(last) || !await turnAnsweredEveryMessage(agents, last);
|
|
3024
|
+
await startQueuedAgentTurnFromInbox2(runtime, execution, last, { onlyImmediate });
|
|
3025
|
+
} catch (error) {
|
|
3026
|
+
console.error(`[Sixb] Could not start what waits in Agent thread '${threadId}'; the repair pass retries.`, error);
|
|
3027
|
+
}
|
|
3028
|
+
}
|
|
3029
|
+
function deliveredParts(input, delivery) {
|
|
3030
|
+
if (delivery === "steer" && (input.attachments?.length ?? 0) > 0) {
|
|
3031
|
+
throw new AgentRequestError2("invalid_attachment", "[Sixb] A message that steers a running turn carries no file: queue it for the next turn instead.");
|
|
3032
|
+
}
|
|
3033
|
+
assertAttachments(input.attachments);
|
|
3034
|
+
const text = typeof input.text === "string" && input.text.trim().length > 0 ? [{ type: "text", text: input.text }] : [];
|
|
3035
|
+
const files = (input.attachments ?? []).map((fileRef) => ({ type: "file", fileRef }));
|
|
3036
|
+
if (text.length === 0 && files.length === 0) {
|
|
3037
|
+
throw new AgentRequestError2("invalid_message", "[Sixb] An Agent message needs text or attachments.");
|
|
3038
|
+
}
|
|
3039
|
+
return [...text, ...files];
|
|
3040
|
+
}
|
|
3041
|
+
async function startQueuedAgentTurnFromInbox2(runtime, execution, finishedRun, input) {
|
|
3042
|
+
resolveExecutionScopeAuthorization(runtime.projectId, {
|
|
3043
|
+
execution,
|
|
3044
|
+
authorization: runtime.runtimeAuthorization
|
|
3045
|
+
});
|
|
3046
|
+
assertAuthorized2(runtime, { kind: "agent.run" });
|
|
3047
|
+
assertRequestAuthorityCanRunAgent(runtime);
|
|
3048
|
+
const agents = requireAgentStorage(runtime);
|
|
3049
|
+
const projectId = runtime.projectId;
|
|
3050
|
+
const kept = finishedRun.spec;
|
|
3051
|
+
if (!kept)
|
|
3052
|
+
return { status: "closed" };
|
|
3053
|
+
const thread = await agents.threads.getById({ projectId, id: finishedRun.threadId });
|
|
3054
|
+
if (!thread)
|
|
3055
|
+
return { status: "closed" };
|
|
3056
|
+
assertSandboxExecutionAvailable(thread);
|
|
3057
|
+
const principal = execution.requestedBy;
|
|
3058
|
+
if (!principal)
|
|
3059
|
+
return { status: "closed" };
|
|
3060
|
+
if (thread.runsOn === "computer" && !principalsEqual2(principal, thread.ownerPrincipal)) {
|
|
3061
|
+
return { status: "closed" };
|
|
3062
|
+
}
|
|
3063
|
+
const runId = createAgentRunId2();
|
|
3064
|
+
const durableExecution = await prepareResumedExecution(runtime, execution, runId);
|
|
3065
|
+
await assertAiLimitPreflight(runtime, durableExecution);
|
|
3066
|
+
let started;
|
|
3067
|
+
let superseded = [];
|
|
3068
|
+
try {
|
|
3069
|
+
started = await runtime.storage.transaction(async (tx) => {
|
|
3070
|
+
const agents = tx.agents;
|
|
3071
|
+
if (!agents) {
|
|
3072
|
+
throw new AgentRequestError2("storage_unavailable", "[Sixb] Agent storage is not configured.");
|
|
3073
|
+
}
|
|
3074
|
+
const item = await agents.inbox.takeNextQueued({
|
|
3075
|
+
projectId,
|
|
3076
|
+
threadId: thread.id,
|
|
3077
|
+
onlyImmediate: input.onlyImmediate,
|
|
3078
|
+
authorPrincipal: principal
|
|
3079
|
+
});
|
|
3080
|
+
if (!item)
|
|
3081
|
+
return null;
|
|
3082
|
+
const inherited = await resolveAgentApprovalMode(agents, {
|
|
3083
|
+
projectId,
|
|
3084
|
+
principal,
|
|
3085
|
+
threadId: thread.id
|
|
3086
|
+
});
|
|
3087
|
+
const approvalMode = item.spec?.approvalMode ?? inherited.approvalMode;
|
|
3088
|
+
const spec = queuedConversationRunSpec(thread, kept, item, approvalMode);
|
|
3089
|
+
await tx.executions.create(durableExecution);
|
|
3090
|
+
const reported = await reportAgentApprovals(agents, {
|
|
3091
|
+
projectId,
|
|
3092
|
+
threadId: thread.id,
|
|
3093
|
+
messageId: item.messageId
|
|
3094
|
+
});
|
|
3095
|
+
superseded = reported.superseded;
|
|
3096
|
+
await agents.messages.append({
|
|
3097
|
+
id: item.messageId,
|
|
3098
|
+
projectId,
|
|
3099
|
+
threadId: thread.id,
|
|
3100
|
+
runId: null,
|
|
3101
|
+
role: "user",
|
|
3102
|
+
parts: [...reported.parts, ...item.parts],
|
|
3103
|
+
authorPrincipal: item.authorPrincipal,
|
|
3104
|
+
createdAt: item.createdAt,
|
|
3105
|
+
...item.timeZone === undefined && item.locale === undefined ? {} : {
|
|
3106
|
+
metadata: {
|
|
3107
|
+
...item.timeZone === undefined ? {} : { timeZone: item.timeZone },
|
|
3108
|
+
...item.locale === undefined ? {} : { locale: item.locale }
|
|
3109
|
+
}
|
|
3110
|
+
}
|
|
3111
|
+
});
|
|
3112
|
+
return agents.runs.create({
|
|
3113
|
+
id: runId,
|
|
3114
|
+
projectId,
|
|
3115
|
+
executionId: durableExecution.id,
|
|
3116
|
+
threadId: thread.id,
|
|
3117
|
+
triggerMessageId: item.messageId,
|
|
3118
|
+
spec
|
|
3119
|
+
});
|
|
3120
|
+
});
|
|
3121
|
+
} catch (error) {
|
|
3122
|
+
if (error instanceof AgentStorageError2 && error.code === "active_run_exists") {
|
|
3123
|
+
return { status: "closed" };
|
|
3124
|
+
}
|
|
3125
|
+
throw error;
|
|
3126
|
+
}
|
|
3127
|
+
if (!started)
|
|
3128
|
+
return { status: "nothing" };
|
|
3129
|
+
await announceAgentApprovals2(runtime.broker, superseded);
|
|
3130
|
+
await publishRunActivity(runtime, started);
|
|
3131
|
+
await dispatchAgentRun(runtime, agents, runId);
|
|
3132
|
+
return { status: "started", run: started };
|
|
3133
|
+
}
|
|
3134
|
+
function queuedConversationRunSpec(thread, kept, item, approvalMode) {
|
|
3135
|
+
const model = item.spec?.model ?? kept.model;
|
|
3136
|
+
const reasoning = item.spec?.reasoning ?? kept.reasoning;
|
|
3137
|
+
const timeZone = item.timeZone ?? kept.timeZone;
|
|
3138
|
+
const locale = item.locale ?? kept.locale;
|
|
3139
|
+
return inPlace(thread, {
|
|
3140
|
+
model,
|
|
3141
|
+
...reasoning === undefined ? {} : { reasoning },
|
|
3142
|
+
...timeZone === undefined ? {} : { timeZone },
|
|
3143
|
+
...locale === undefined ? {} : { locale },
|
|
3144
|
+
approvalMode
|
|
3145
|
+
});
|
|
3146
|
+
}
|
|
2786
3147
|
async function resumeAgentTurn(runtime, execution, models, pausedRun, input) {
|
|
2787
3148
|
const authority = resolveExecutionScopeAuthorization(runtime.projectId, {
|
|
2788
3149
|
execution,
|
|
@@ -2973,7 +3334,7 @@ function assertThreadAcceptsRun(thread, principal) {
|
|
|
2973
3334
|
}
|
|
2974
3335
|
function assertSandboxExecutionAvailable(thread) {
|
|
2975
3336
|
if (thread.sandboxState && !["new", "ready"].includes(thread.sandboxState.status)) {
|
|
2976
|
-
throw new AgentRequestError2("sandbox_execution_unavailable", "[Sixb] Sandbox recovery is required before another run. Reload the thread
|
|
3337
|
+
throw new AgentRequestError2("sandbox_execution_unavailable", "[Sixb] Sandbox recovery is required before another run. Reload the thread, then resume its previous sandbox or recreate it to start fresh.");
|
|
2977
3338
|
}
|
|
2978
3339
|
}
|
|
2979
3340
|
async function assertAiLimitPreflight(runtime, execution) {
|
|
@@ -3365,6 +3726,20 @@ function createAgentRuntime(runtime, execution, models, decision, sandbox, secur
|
|
|
3365
3726
|
return refused;
|
|
3366
3727
|
}
|
|
3367
3728
|
};
|
|
3729
|
+
const startQueuedTurn = async (runId, options) => {
|
|
3730
|
+
const agents = requireAgents();
|
|
3731
|
+
const run = await agents.runs.getById({ projectId: runtime.projectId, id: runId });
|
|
3732
|
+
if (run?.kind !== "conversation")
|
|
3733
|
+
return { status: "closed" };
|
|
3734
|
+
try {
|
|
3735
|
+
if (!await rule.read(run.threadId))
|
|
3736
|
+
return { status: "closed" };
|
|
3737
|
+
return await startQueuedAgentTurnFromInbox2(runtime, execution, run, options);
|
|
3738
|
+
} catch (error) {
|
|
3739
|
+
console.error(`[Sixb] Could not start a queued message of Agent run '${run.id}'.`, error);
|
|
3740
|
+
return { status: "closed" };
|
|
3741
|
+
}
|
|
3742
|
+
};
|
|
3368
3743
|
const preferences = {
|
|
3369
3744
|
get: async () => {
|
|
3370
3745
|
const { approvalMode, approvalModeSource } = await defaultAgentApprovalMode(requireAgents(), {
|
|
@@ -3387,6 +3762,23 @@ function createAgentRuntime(runtime, execution, models, decision, sandbox, secur
|
|
|
3387
3762
|
return preferences.get();
|
|
3388
3763
|
}
|
|
3389
3764
|
};
|
|
3765
|
+
const recoverSandbox = async (threadId, choice, transition) => {
|
|
3766
|
+
const readable = await rule.read(threadId);
|
|
3767
|
+
if (!readable)
|
|
3768
|
+
throw new AgentRequestError2("thread_not_found", "[Sixb] Agent thread not found.");
|
|
3769
|
+
assertConversationThread2(readable.thread);
|
|
3770
|
+
if (readable.access !== "owner") {
|
|
3771
|
+
throw new AgentRequestError2("not_thread_owner", `[Sixb] Only the owner of Agent thread '${threadId}' can ${choice} its sandbox.`);
|
|
3772
|
+
}
|
|
3773
|
+
const storage = runtime.storage.agents;
|
|
3774
|
+
if (!storage) {
|
|
3775
|
+
throw new AgentRequestError2("storage_unavailable", "[Sixb] Agent storage is not configured.");
|
|
3776
|
+
}
|
|
3777
|
+
const thread = readable.thread;
|
|
3778
|
+
const sandboxState = await transition(storage);
|
|
3779
|
+
const [view] = await agentThreadViews(runtime, [{ ...thread, sandboxState }]);
|
|
3780
|
+
return view ?? thread;
|
|
3781
|
+
};
|
|
3390
3782
|
const ownedComputerThread = async (threadId) => {
|
|
3391
3783
|
const readable = await rule.read(threadId);
|
|
3392
3784
|
if (!readable)
|
|
@@ -3427,28 +3819,19 @@ function createAgentRuntime(runtime, execution, models, decision, sandbox, secur
|
|
|
3427
3819
|
approvals,
|
|
3428
3820
|
preferences,
|
|
3429
3821
|
threads: {
|
|
3430
|
-
recreateSandbox:
|
|
3431
|
-
|
|
3432
|
-
|
|
3433
|
-
|
|
3434
|
-
|
|
3435
|
-
|
|
3436
|
-
|
|
3437
|
-
|
|
3438
|
-
|
|
3439
|
-
|
|
3440
|
-
|
|
3441
|
-
|
|
3442
|
-
|
|
3443
|
-
projectId: runtime.projectId,
|
|
3444
|
-
id: threadId,
|
|
3445
|
-
action: "recreate",
|
|
3446
|
-
expectedSandboxName: input.expectedSandboxName,
|
|
3447
|
-
name: createAgentThreadSandboxName2(runtime.projectId, threadId)
|
|
3448
|
-
});
|
|
3449
|
-
const [view] = await agentThreadViews(runtime, [{ ...thread, sandboxState }]);
|
|
3450
|
-
return view ?? thread;
|
|
3451
|
-
},
|
|
3822
|
+
recreateSandbox: (threadId, input) => recoverSandbox(threadId, "recreate", (storage) => storage.threads.transitionSandbox({
|
|
3823
|
+
projectId: runtime.projectId,
|
|
3824
|
+
id: threadId,
|
|
3825
|
+
action: "recreate",
|
|
3826
|
+
expectedSandboxName: input.expectedSandboxName,
|
|
3827
|
+
name: createAgentThreadSandboxName2(runtime.projectId, threadId)
|
|
3828
|
+
})),
|
|
3829
|
+
restoreSandbox: (threadId, input) => recoverSandbox(threadId, "restore", (storage) => storage.threads.transitionSandbox({
|
|
3830
|
+
projectId: runtime.projectId,
|
|
3831
|
+
id: threadId,
|
|
3832
|
+
action: "restore",
|
|
3833
|
+
name: input.expectedSandboxName
|
|
3834
|
+
})),
|
|
3452
3835
|
moveToComputer: async (threadId, computer) => {
|
|
3453
3836
|
const thread = await ownedComputerThread(threadId);
|
|
3454
3837
|
const moves = movesComputerPlace2(thread, computer);
|
|
@@ -3557,7 +3940,44 @@ function createAgentRuntime(runtime, execution, models, decision, sandbox, secur
|
|
|
3557
3940
|
getApprovalMode: getThreadApprovalMode,
|
|
3558
3941
|
setApprovalMode: setThreadApprovalMode
|
|
3559
3942
|
},
|
|
3943
|
+
inbox: {
|
|
3944
|
+
list: async (threadId) => {
|
|
3945
|
+
const thread = await getVisibleThreadRecord(threadId);
|
|
3946
|
+
if (!thread) {
|
|
3947
|
+
throw new AgentRequestError2("thread_not_found", `[Sixb] Agent thread '${threadId}' not found.`);
|
|
3948
|
+
}
|
|
3949
|
+
return requireAgents().inbox.list({
|
|
3950
|
+
projectId: runtime.projectId,
|
|
3951
|
+
threadId: thread.id,
|
|
3952
|
+
includeClaimed: false
|
|
3953
|
+
});
|
|
3954
|
+
},
|
|
3955
|
+
update: async (threadId, itemId, input) => {
|
|
3956
|
+
if (!await getVisibleThreadRecord(threadId)) {
|
|
3957
|
+
throw new AgentRequestError2("thread_not_found", `[Sixb] Agent thread '${threadId}' not found.`);
|
|
3958
|
+
}
|
|
3959
|
+
return promoteAgentInboxItem2(runtime, execution, { ...input, threadId, itemId });
|
|
3960
|
+
},
|
|
3961
|
+
remove: async (threadId, itemId) => {
|
|
3962
|
+
if (!await getVisibleThreadRecord(threadId)) {
|
|
3963
|
+
throw new AgentRequestError2("thread_not_found", `[Sixb] Agent thread '${threadId}' not found.`);
|
|
3964
|
+
}
|
|
3965
|
+
await withdrawAgentInboxItem2(runtime, execution, { threadId, itemId });
|
|
3966
|
+
}
|
|
3967
|
+
},
|
|
3560
3968
|
runs: {
|
|
3969
|
+
send: async (input) => {
|
|
3970
|
+
assertNoAgentSelector(input);
|
|
3971
|
+
if (!getAgent()) {
|
|
3972
|
+
throw new AgentRequestError2("agent_not_found", "[Sixb] The project Agent is unavailable.");
|
|
3973
|
+
}
|
|
3974
|
+
assertAuthorized2(runtime, { kind: "agent.run" });
|
|
3975
|
+
if (!await getVisibleThreadRecord(input.threadId)) {
|
|
3976
|
+
throw new AgentRequestError2("thread_not_found", `[Sixb] Agent thread '${input.threadId}' not found.`);
|
|
3977
|
+
}
|
|
3978
|
+
const result = await sendAgentMessage2(runtime, execution, turnModels, input);
|
|
3979
|
+
return result.kind === "turn" ? { ...result, run: await attachRunView(runtime, result.run) } : result;
|
|
3980
|
+
},
|
|
3561
3981
|
request: async (input) => {
|
|
3562
3982
|
assertNoAgentSelector(input);
|
|
3563
3983
|
const agent = getAgent();
|
|
@@ -3604,6 +4024,7 @@ function createAgentRuntime(runtime, execution, models, decision, sandbox, secur
|
|
|
3604
4024
|
observed: createObservedAgentThreadsRuntime(runtime)
|
|
3605
4025
|
};
|
|
3606
4026
|
registerAgentTurnResume(agentRuntime, resumeDecidedTurn);
|
|
4027
|
+
registerAgentQueuedTurn2(agentRuntime, startQueuedTurn);
|
|
3607
4028
|
return agentRuntime;
|
|
3608
4029
|
}
|
|
3609
4030
|
function createObservedAgentThreadsRuntime(runtime) {
|
|
@@ -4293,7 +4714,8 @@ function createEventsRuntime(runtime) {
|
|
|
4293
4714
|
return [];
|
|
4294
4715
|
case "delegated": {
|
|
4295
4716
|
const readable = await readableArtifactEvents(runtime, events);
|
|
4296
|
-
|
|
4717
|
+
const link = authority.delegation?.grantId;
|
|
4718
|
+
return events.filter((event) => readable.has(event) && (event.type !== "artifact.commented" || link !== undefined && event.payload.shareGrantId === link));
|
|
4297
4719
|
}
|
|
4298
4720
|
case "unrestricted":
|
|
4299
4721
|
return events;
|
|
@@ -5595,6 +6017,117 @@ import { randomUUID as randomUUID13 } from "crypto";
|
|
|
5595
6017
|
|
|
5596
6018
|
// src/agents/model-loop.ts
|
|
5597
6019
|
import { randomUUID as randomUUID9 } from "crypto";
|
|
6020
|
+
|
|
6021
|
+
// src/agents/tool-input-coercion.ts
|
|
6022
|
+
function coerceToolInput(schema, input) {
|
|
6023
|
+
return coerce(schema, input);
|
|
6024
|
+
}
|
|
6025
|
+
function coerce(schema, value) {
|
|
6026
|
+
if (!isObject(schema))
|
|
6027
|
+
return value;
|
|
6028
|
+
const types = schemaTypes(schema);
|
|
6029
|
+
if (types.length === 0 || types.some((type) => hasType(value, type))) {
|
|
6030
|
+
return coerceInside(schema, value);
|
|
6031
|
+
}
|
|
6032
|
+
if (typeof value === "string") {
|
|
6033
|
+
const text = value.trim();
|
|
6034
|
+
if (types.includes("integer") && /^-?\d+$/.test(text) && Number.isSafeInteger(Number(text))) {
|
|
6035
|
+
return Number(text);
|
|
6036
|
+
}
|
|
6037
|
+
if (types.includes("number") && /^-?\d+(\.\d+)?([eE][+-]?\d+)?$/.test(text) && Number.isFinite(Number(text))) {
|
|
6038
|
+
return Number(text);
|
|
6039
|
+
}
|
|
6040
|
+
if (types.includes("boolean") && (text === "true" || text === "false"))
|
|
6041
|
+
return text === "true";
|
|
6042
|
+
if (types.includes("array") && text.startsWith("[")) {
|
|
6043
|
+
const parsed = parseJson(text);
|
|
6044
|
+
if (Array.isArray(parsed))
|
|
6045
|
+
return coerceInside(schema, parsed);
|
|
6046
|
+
}
|
|
6047
|
+
}
|
|
6048
|
+
if (types.includes("array") && value !== null && value !== undefined && !Array.isArray(value)) {
|
|
6049
|
+
return [coerce(schema.items, value)];
|
|
6050
|
+
}
|
|
6051
|
+
return value;
|
|
6052
|
+
}
|
|
6053
|
+
function parseJson(text) {
|
|
6054
|
+
try {
|
|
6055
|
+
return JSON.parse(text);
|
|
6056
|
+
} catch {
|
|
6057
|
+
return;
|
|
6058
|
+
}
|
|
6059
|
+
}
|
|
6060
|
+
function coerceInside(schema, value) {
|
|
6061
|
+
if (Array.isArray(value)) {
|
|
6062
|
+
return isObject(schema.items) ? value.map((item) => coerce(schema.items, item)) : value;
|
|
6063
|
+
}
|
|
6064
|
+
if (!isPlainObject(value) || !isObject(schema.properties))
|
|
6065
|
+
return value;
|
|
6066
|
+
const properties = schema.properties;
|
|
6067
|
+
const required = new Set(Array.isArray(schema.required) ? schema.required : []);
|
|
6068
|
+
const result = {};
|
|
6069
|
+
for (const [key, item] of Object.entries(value)) {
|
|
6070
|
+
const property = Object.hasOwn(properties, key) ? properties[key] : undefined;
|
|
6071
|
+
if (item === null && property !== undefined && !required.has(key) && !allowsNull(property)) {
|
|
6072
|
+
continue;
|
|
6073
|
+
}
|
|
6074
|
+
result[key] = property === undefined ? item : coerce(property, item);
|
|
6075
|
+
}
|
|
6076
|
+
return result;
|
|
6077
|
+
}
|
|
6078
|
+
function schemaTypes(schema) {
|
|
6079
|
+
if (typeof schema.type === "string")
|
|
6080
|
+
return [schema.type];
|
|
6081
|
+
if (Array.isArray(schema.type)) {
|
|
6082
|
+
return schema.type.filter((type) => typeof type === "string");
|
|
6083
|
+
}
|
|
6084
|
+
return [];
|
|
6085
|
+
}
|
|
6086
|
+
function allowsNull(schema) {
|
|
6087
|
+
if (schema === true)
|
|
6088
|
+
return true;
|
|
6089
|
+
if (!isObject(schema))
|
|
6090
|
+
return false;
|
|
6091
|
+
if (schemaTypes(schema).includes("null"))
|
|
6092
|
+
return true;
|
|
6093
|
+
if (schema.const === null || Array.isArray(schema.enum) && schema.enum.includes(null)) {
|
|
6094
|
+
return true;
|
|
6095
|
+
}
|
|
6096
|
+
for (const key of ["anyOf", "oneOf"]) {
|
|
6097
|
+
const variants = schema[key];
|
|
6098
|
+
if (Array.isArray(variants) && variants.some(allowsNull))
|
|
6099
|
+
return true;
|
|
6100
|
+
}
|
|
6101
|
+
return schemaTypes(schema).length === 0 && schema.anyOf === undefined && schema.oneOf === undefined && schema.enum === undefined && schema.const === undefined;
|
|
6102
|
+
}
|
|
6103
|
+
function hasType(value, type) {
|
|
6104
|
+
switch (type) {
|
|
6105
|
+
case "null":
|
|
6106
|
+
return value === null;
|
|
6107
|
+
case "string":
|
|
6108
|
+
return typeof value === "string";
|
|
6109
|
+
case "boolean":
|
|
6110
|
+
return typeof value === "boolean";
|
|
6111
|
+
case "number":
|
|
6112
|
+
return typeof value === "number";
|
|
6113
|
+
case "integer":
|
|
6114
|
+
return Number.isInteger(value);
|
|
6115
|
+
case "array":
|
|
6116
|
+
return Array.isArray(value);
|
|
6117
|
+
case "object":
|
|
6118
|
+
return isPlainObject(value);
|
|
6119
|
+
default:
|
|
6120
|
+
return true;
|
|
6121
|
+
}
|
|
6122
|
+
}
|
|
6123
|
+
function isObject(value) {
|
|
6124
|
+
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
6125
|
+
}
|
|
6126
|
+
function isPlainObject(value) {
|
|
6127
|
+
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
6128
|
+
}
|
|
6129
|
+
|
|
6130
|
+
// src/agents/model-loop.ts
|
|
5598
6131
|
var MAX_PROVIDER_DATA_BYTES = 256 * 1024;
|
|
5599
6132
|
async function runModelLoop2(input) {
|
|
5600
6133
|
assertLoopInput(input);
|
|
@@ -5602,7 +6135,8 @@ async function runModelLoop2(input) {
|
|
|
5602
6135
|
const toolSpecifications = [...tools.values()].map((tool) => ({
|
|
5603
6136
|
name: tool.name,
|
|
5604
6137
|
description: tool.description,
|
|
5605
|
-
inputSchema: tool.inputSchema
|
|
6138
|
+
inputSchema: tool.inputSchema,
|
|
6139
|
+
...tool.strict ? { strict: true } : {}
|
|
5606
6140
|
}));
|
|
5607
6141
|
let messages = [...input.messages];
|
|
5608
6142
|
const steps = [];
|
|
@@ -5945,7 +6479,7 @@ async function executeToolCall(call, tools, callId, signal, onEvent) {
|
|
|
5945
6479
|
}
|
|
5946
6480
|
let parsed;
|
|
5947
6481
|
try {
|
|
5948
|
-
parsed = tool.parseInput(part.input);
|
|
6482
|
+
parsed = tool.parseInput(coerceToolInput(tool.inputSchema, part.input));
|
|
5949
6483
|
} catch (error) {
|
|
5950
6484
|
const errorText = error instanceof Error ? error.message : "Tool input validation failed.";
|
|
5951
6485
|
await onEvent?.({
|
|
@@ -8297,6 +8831,7 @@ function executorRunKey(executor) {
|
|
|
8297
8831
|
return `agent-run:${executor.runId}`;
|
|
8298
8832
|
case "request":
|
|
8299
8833
|
case "kernel":
|
|
8834
|
+
case "script":
|
|
8300
8835
|
return;
|
|
8301
8836
|
}
|
|
8302
8837
|
}
|
|
@@ -8319,6 +8854,7 @@ async function canViewExecutorRun(reader, projections, executor) {
|
|
|
8319
8854
|
switch (executor.type) {
|
|
8320
8855
|
case "request":
|
|
8321
8856
|
case "kernel":
|
|
8857
|
+
case "script":
|
|
8322
8858
|
return true;
|
|
8323
8859
|
case "agent":
|
|
8324
8860
|
return canViewAgentRun(reader, executor.runId);
|
|
@@ -10062,7 +10598,7 @@ function createExecutionFacades(runtime, execution, dependencies) {
|
|
|
10062
10598
|
rules: createRulesRuntime(runtime, dependencies.definitions.rules),
|
|
10063
10599
|
agent,
|
|
10064
10600
|
artifacts: createArtifactsRuntime(runtime, dependencies.blobStorage, {
|
|
10065
|
-
|
|
10601
|
+
rendersInSandboxes: dependencies.rendersInSandboxes
|
|
10066
10602
|
}),
|
|
10067
10603
|
models: createModelsRuntime(runtime, execution, dependencies.definitions.models, session, {
|
|
10068
10604
|
canViewActionRun: async (id) => await actions.runs.getById(id) !== null,
|
|
@@ -11788,6 +12324,6 @@ function snapshotActionRequest(input) {
|
|
|
11788
12324
|
...onRequested === undefined ? {} : { onRequested }
|
|
11789
12325
|
};
|
|
11790
12326
|
}
|
|
11791
|
-
export { defineAction2, param2, optional2, ActionRegistry2, bindRequestClient, bindModelExecutionAttempt, canInheritAgentRequestAuthorization2, createAgentExecutionRecord2, createInheritedAgentExecutionRecord2, bindDurableAgentExecution2, bindAgentRunRequestExecution2, bindAgentModelExecution2, restoreAgentExecutionScope2, assertAgentExecutionRecord2, resumeDecidedAgentTurn2, agentRunApprovalMode2, holdAgentApprovalCall2, approvalCallSummary2, listChildApprovalsAwaiting2, isAwaitingApprovalRun2, isPausedSubagentRun2, AGENT_APPROVAL_EXECUTION_LEASE_MS2, turnResumeReadiness2, turnPausesOnHeldCalls2, hasActiveChildren2, listTurnApprovals2, stopAgentTurn2, announceAgentApprovals2, agentApprovalCallers2, AgentRunScopeError2, resolveAgentRunExecutionScope2, createAgentApprovalExecutor, registerAgentApprovalExecutor, getAgentApprovalExecutor2, requestAgentRunCancel2, isAwaitingAnswerRun2, deferredChildQuestion2, listSubagentThreadRuns2, subagentSandboxFiles2, assertTurnModelRouting, DEFAULT_PROJECT_LOCALE, DEFAULT_PROJECT_TIME_ZONE, canonicalLocale, canonicalTimeZone, resolveAgentContextParts2, agentRunQueueJobId2, workflowAgentNodeQueueJobId2, dispatchQueuedAgentRuns2, assertNoAgentDefinitions, requestAgentRun2, isRetryableAgentRun2, retryAgentRun2, WorkflowDefinitionError2, WorkflowValidationError2, assertNonEmpty, isStepDefinition2, isAgentStepDefinition2, isInterventionDefinition2, isWorkflowDefinition2, validateWorkflowDefinition2, validateWorkflowsAtStartup2, validateWorkflowAgentStepGroupReferences2, validateWorkflowInput2, validateWorkflowStepInput2, validateWorkflowStepOutput2, validateWorkflowInterventionInput2, validateWorkflowInterventionResponse2, validateWorkflowInterventionDefaultResponse2, assertAgentStepSandbox, validateWorkflowAgentStepInput2, validateWorkflowAgentStepOutput2, snapshotWorkflowAgentStepInput2, snapshotWorkflowAgentStepOutput2, snapshotWorkflowInput2, snapshotWorkflowStepInput2, snapshotWorkflowStepOutput2, snapshotWorkflowInterventionInput2, snapshotWorkflowInterventionResponse2, snapshotWorkflowInterventionDefaultResponse2, snapshotWorkflowActionInput2, WorkflowRunDispatcher2, requestWorkflowRun2, prepareBoundActionRequest2, prepareBoundWorkflowRequest2, runModelLoop2, requestAction2, ObjectError2, removeLink2, upsertLink2, upsertLinkBatch2, deleteObject2, restoreObject2, upsertObject2, upsertObjectBatch2, writeTelemetryBatch2, appendTelemetryBatch2, getTelemetryHistoryBatch2, requireLinkDefinition2, resolveObjectContext2, resolveLinkContext2, createObjectSet2, exports_service, ShareError2, createBoundSixb, isBoundSixb, bindDurablePrimitiveExecution2, ACTION_RUN_DRAIN_TIMEOUT_MS2, ActionRunExecutor, registerActionRunExecutor, drainActionRuns2, requestAction3 };
|
|
12327
|
+
export { defineAction2, param2, optional2, ActionRegistry2, bindRequestClient, bindModelExecutionAttempt, canInheritAgentRequestAuthorization2, createAgentExecutionRecord2, createInheritedAgentExecutionRecord2, bindDurableAgentExecution2, bindAgentRunRequestExecution2, bindAgentModelExecution2, restoreAgentExecutionScope2, assertAgentExecutionRecord2, resumeDecidedAgentTurn2, agentRunApprovalMode2, holdAgentApprovalCall2, approvalCallSummary2, listChildApprovalsAwaiting2, isAwaitingApprovalRun2, isPausedSubagentRun2, AGENT_APPROVAL_EXECUTION_LEASE_MS2, turnResumeReadiness2, turnPausesOnHeldCalls2, hasActiveChildren2, listTurnApprovals2, stopAgentTurn2, announceAgentApprovals2, agentApprovalCallers2, AgentRunScopeError2, resolveAgentRunExecutionScope2, createAgentApprovalExecutor, registerAgentApprovalExecutor, getAgentApprovalExecutor2, requestAgentRunCancel2, cancelQueuedRun, AGENT_QUESTION_LIMITS2, agentQuestionsText2, isChildAskTool2, isAwaitingAnswerRun2, deferredChildQuestion2, listSubagentThreadRuns2, subagentSandboxFiles2, assertTurnModelRouting, registerAgentQueuedTurn2, startQueuedAgentTurn2, DEFAULT_PROJECT_LOCALE, DEFAULT_PROJECT_TIME_ZONE, canonicalLocale, canonicalTimeZone, resolveAgentContextParts2, agentRunQueueJobId2, workflowAgentNodeQueueJobId2, dispatchQueuedAgentRuns2, assertNoAgentDefinitions, turnAnsweredEveryMessage, requestAgentRun2, isRetryableAgentRun2, retryAgentRun2, AGENT_MESSAGE_DELIVERIES2, sendAgentMessage2, promoteAgentInboxItem2, withdrawAgentInboxItem2, startQueuedAgentTurnFromInbox2, WorkflowDefinitionError2, WorkflowValidationError2, assertNonEmpty, isStepDefinition2, isAgentStepDefinition2, isInterventionDefinition2, isWorkflowDefinition2, validateWorkflowDefinition2, validateWorkflowsAtStartup2, validateWorkflowAgentStepGroupReferences2, validateWorkflowInput2, validateWorkflowStepInput2, validateWorkflowStepOutput2, validateWorkflowInterventionInput2, validateWorkflowInterventionResponse2, validateWorkflowInterventionDefaultResponse2, assertAgentStepSandbox, validateWorkflowAgentStepInput2, validateWorkflowAgentStepOutput2, snapshotWorkflowAgentStepInput2, snapshotWorkflowAgentStepOutput2, snapshotWorkflowInput2, snapshotWorkflowStepInput2, snapshotWorkflowStepOutput2, snapshotWorkflowInterventionInput2, snapshotWorkflowInterventionResponse2, snapshotWorkflowInterventionDefaultResponse2, snapshotWorkflowActionInput2, WorkflowRunDispatcher2, requestWorkflowRun2, prepareBoundActionRequest2, prepareBoundWorkflowRequest2, runModelLoop2, requestAction2, ObjectError2, removeLink2, upsertLink2, upsertLinkBatch2, deleteObject2, restoreObject2, upsertObject2, upsertObjectBatch2, writeTelemetryBatch2, appendTelemetryBatch2, getTelemetryHistoryBatch2, requireLinkDefinition2, resolveObjectContext2, resolveLinkContext2, createObjectSet2, exports_service, ShareError2, createBoundSixb, isBoundSixb, bindDurablePrimitiveExecution2, ACTION_RUN_DRAIN_TIMEOUT_MS2, ActionRunExecutor, registerActionRunExecutor, drainActionRuns2, requestAction3 };
|
|
11792
12328
|
|
|
11793
|
-
//# debugId=
|
|
12329
|
+
//# debugId=769CBCF3562DBFDA64756E2164756E21
|