@sixb/core 0.1.25 → 0.1.26
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 +35 -35
- package/dist/agents/attachment-keys.d.ts +25 -0
- package/dist/agents/attachment-keys.d.ts.map +1 -0
- package/dist/agents/cancel.d.ts +12 -0
- package/dist/agents/cancel.d.ts.map +1 -1
- package/dist/agents/children.d.ts.map +1 -1
- package/dist/agents/dispatch.d.ts +1 -9
- package/dist/agents/dispatch.d.ts.map +1 -1
- package/dist/agents/execution.d.ts +5 -0
- package/dist/agents/execution.d.ts.map +1 -1
- package/dist/agents/index.d.ts +31 -6
- package/dist/agents/index.d.ts.map +1 -1
- package/dist/agents/index.js +154 -66
- package/dist/agents/index.js.map +1 -1
- package/dist/agents/model-loop.d.ts +3 -5
- package/dist/agents/model-loop.d.ts.map +1 -1
- package/dist/agents/model-routing.d.ts +4 -1
- package/dist/agents/model-routing.d.ts.map +1 -1
- package/dist/agents/request.d.ts +9 -1
- package/dist/agents/request.d.ts.map +1 -1
- package/dist/agents/run-after-finish.d.ts +11 -0
- package/dist/agents/run-after-finish.d.ts.map +1 -0
- package/dist/agents/run-artifacts.d.ts +56 -0
- package/dist/agents/run-artifacts.d.ts.map +1 -0
- package/dist/agents/run-events.d.ts +49 -0
- package/dist/agents/run-events.d.ts.map +1 -0
- package/dist/agents/run-fence.d.ts +38 -0
- package/dist/agents/run-fence.d.ts.map +1 -0
- package/dist/agents/run-liveness.d.ts +36 -0
- package/dist/agents/run-liveness.d.ts.map +1 -0
- package/dist/agents/run-plan.d.ts +110 -0
- package/dist/agents/run-plan.d.ts.map +1 -0
- package/dist/agents/run-session-children.d.ts +89 -0
- package/dist/agents/run-session-children.d.ts.map +1 -0
- package/dist/agents/run-session-http.d.ts +37 -0
- package/dist/agents/run-session-http.d.ts.map +1 -0
- package/dist/agents/run-session-serve.d.ts +24 -0
- package/dist/agents/run-session-serve.d.ts.map +1 -0
- package/dist/agents/run-session-wire.d.ts +31 -0
- package/dist/agents/run-session-wire.d.ts.map +1 -0
- package/dist/agents/run-session.d.ts +239 -0
- package/dist/agents/run-session.d.ts.map +1 -0
- package/dist/agents/run-token.d.ts +40 -0
- package/dist/agents/run-token.d.ts.map +1 -0
- package/dist/agents/run-tools.d.ts +68 -0
- package/dist/agents/run-tools.d.ts.map +1 -0
- package/dist/agents/run-turn.d.ts +59 -0
- package/dist/agents/run-turn.d.ts.map +1 -0
- package/dist/agents/streams/index.js +1 -1
- package/dist/agents/streams/internal.d.ts +1 -1
- package/dist/agents/streams/internal.d.ts.map +1 -1
- package/dist/agents/streams/internal.js +2 -4
- package/dist/agents/streams/internal.js.map +1 -1
- package/dist/agents/streams/protocol.d.ts +1 -96
- package/dist/agents/streams/protocol.d.ts.map +1 -1
- package/dist/agents/subagent-runs.d.ts +7 -1
- package/dist/agents/subagent-runs.d.ts.map +1 -1
- package/dist/agents/tool-files.d.ts +34 -0
- package/dist/agents/tool-files.d.ts.map +1 -0
- package/dist/agents/workflow-node-session.d.ts +99 -0
- package/dist/agents/workflow-node-session.d.ts.map +1 -0
- package/dist/artifacts/frames/index.js +1 -1
- package/dist/artifacts/frames/index.js.map +1 -1
- package/dist/artifacts/index.js.map +1 -1
- package/dist/artifacts/publish/index.d.ts +1 -1
- package/dist/artifacts/publish/index.d.ts.map +1 -1
- package/dist/artifacts/publish/index.js +19 -19
- package/dist/auth/index.js +8 -8
- package/dist/authorization/index.js +4 -4
- package/dist/bootstrap/index.js +45 -43
- package/dist/bootstrap/index.js.map +2 -2
- package/dist/{chunk-2fn60nvs.js → chunk-06sg8s4z.js} +2 -2
- package/dist/{chunk-2fn60nvs.js.map → chunk-06sg8s4z.js.map} +1 -1
- package/dist/chunk-07kkp2e1.js.map +1 -1
- package/dist/{chunk-9ntbsnke.js → chunk-0bc3w0zq.js} +7 -7
- package/dist/{chunk-9ntbsnke.js.map → chunk-0bc3w0zq.js.map} +2 -2
- package/dist/{chunk-d2m879s4.js → chunk-0kk2wt0h.js} +27 -27
- package/dist/chunk-0kk2wt0h.js.map +12 -0
- package/dist/chunk-16a9dmfy.js.map +1 -1
- package/dist/chunk-18sk89cg.js.map +2 -2
- package/dist/{chunk-3qms4nax.js → chunk-1vg43g9q.js} +20 -20
- package/dist/{chunk-3qms4nax.js.map → chunk-1vg43g9q.js.map} +4 -4
- package/dist/{chunk-hqsp2sx4.js → chunk-1xvqgg88.js} +31 -33
- package/dist/{chunk-hqsp2sx4.js.map → chunk-1xvqgg88.js.map} +6 -6
- package/dist/chunk-2adz0h75.js.map +1 -1
- package/dist/{chunk-fm62y49k.js → chunk-2pk5hjj9.js} +5 -3
- package/dist/{chunk-fm62y49k.js.map → chunk-2pk5hjj9.js.map} +5 -5
- package/dist/{chunk-vrf90dkv.js → chunk-2vjnyz1s.js} +1 -1
- package/dist/{chunk-vrf90dkv.js.map → chunk-2vjnyz1s.js.map} +1 -1
- package/dist/{chunk-4f3ydv7t.js → chunk-315qye3g.js} +1 -1
- package/dist/{chunk-4f3ydv7t.js.map → chunk-315qye3g.js.map} +1 -1
- package/dist/{chunk-rap5w0x0.js → chunk-31khg3g0.js} +1 -1
- package/dist/{chunk-rap5w0x0.js.map → chunk-31khg3g0.js.map} +1 -1
- package/dist/chunk-45ngkxkp.js.map +1 -1
- package/dist/chunk-48jezz3j.js.map +1 -1
- package/dist/{chunk-vr3j63jq.js → chunk-4jq2bg8t.js} +78 -78
- package/dist/{chunk-vr3j63jq.js.map → chunk-4jq2bg8t.js.map} +4 -4
- package/dist/chunk-4ymrcdbm.js.map +1 -1
- package/dist/chunk-58geavnf.js.map +1 -1
- package/dist/{chunk-6y0mkhex.js → chunk-59kf345w.js} +2 -2
- package/dist/{chunk-6y0mkhex.js.map → chunk-59kf345w.js.map} +1 -1
- package/dist/{chunk-3p93tb91.js → chunk-6qn7nmd3.js} +102 -102
- package/dist/{chunk-3p93tb91.js.map → chunk-6qn7nmd3.js.map} +4 -4
- package/dist/chunk-73j0v4qv.js +355 -0
- package/dist/chunk-73j0v4qv.js.map +13 -0
- package/dist/{chunk-2gjj5dx3.js → chunk-78ymxrn0.js} +1 -1
- package/dist/{chunk-6bkbyer5.js → chunk-7ex2p3zp.js} +3 -3
- package/dist/{chunk-6bkbyer5.js.map → chunk-7ex2p3zp.js.map} +1 -1
- package/dist/{chunk-5tfev0fv.js → chunk-7hf6tkgs.js} +167 -167
- package/dist/{chunk-5tfev0fv.js.map → chunk-7hf6tkgs.js.map} +4 -4
- package/dist/{chunk-8z4726jz.js → chunk-7wn5z7mq.js} +10 -10
- package/dist/{chunk-8z4726jz.js.map → chunk-7wn5z7mq.js.map} +2 -2
- package/dist/{chunk-6n69k945.js → chunk-8mb7mt8n.js} +2 -2
- package/dist/chunk-8ncg20rd.js.map +1 -1
- package/dist/{chunk-68wghpdf.js → chunk-8v5a54qz.js} +50 -11
- package/dist/{chunk-68wghpdf.js.map → chunk-8v5a54qz.js.map} +3 -3
- package/dist/{chunk-gqm0b7vd.js → chunk-8v6xzwgr.js} +92 -76
- package/dist/{chunk-gqm0b7vd.js.map → chunk-8v6xzwgr.js.map} +6 -6
- package/dist/{chunk-m36fw8ft.js → chunk-8wsjr52f.js} +1 -1
- package/dist/{chunk-vd1rk42q.js → chunk-8xnz9vvp.js} +4 -4
- package/dist/{chunk-vd1rk42q.js.map → chunk-8xnz9vvp.js.map} +1 -1
- package/dist/chunk-9mab3dvg.js.map +1 -1
- package/dist/chunk-9tc8dxmn.js.map +1 -1
- package/dist/chunk-9x8dybsb.js.map +2 -2
- package/dist/chunk-a3faa34j.js.map +1 -1
- package/dist/{chunk-62a63pr6.js → chunk-axb4ss9a.js} +7 -7
- package/dist/{chunk-62a63pr6.js.map → chunk-axb4ss9a.js.map} +2 -2
- package/dist/{chunk-z3ryd53f.js → chunk-b6ghvap7.js} +35 -11
- package/dist/{chunk-z3ryd53f.js.map → chunk-b6ghvap7.js.map} +3 -3
- package/dist/{chunk-sqfvnvqj.js → chunk-c14ap3s9.js} +2 -2
- package/dist/{chunk-sqfvnvqj.js.map → chunk-c14ap3s9.js.map} +1 -1
- package/dist/{chunk-661ezhks.js → chunk-cbcgs9f7.js} +87 -8
- package/dist/chunk-cbcgs9f7.js.map +11 -0
- package/dist/chunk-cwdzcv37.js.map +1 -1
- package/dist/{chunk-bab05bhg.js → chunk-dgtd0836.js} +1 -1
- package/dist/{chunk-1j6j0rht.js → chunk-e24fvw8g.js} +1 -1
- package/dist/{chunk-1j6j0rht.js.map → chunk-e24fvw8g.js.map} +1 -1
- package/dist/chunk-e5wf5vz0.js.map +1 -1
- package/dist/chunk-eptrvnby.js.map +1 -1
- package/dist/chunk-ey1nk510.js.map +1 -1
- package/dist/{chunk-j936th07.js → chunk-fakrpfy3.js} +58 -58
- package/dist/{chunk-j936th07.js.map → chunk-fakrpfy3.js.map} +5 -5
- package/dist/chunk-fb3feg1e.js.map +1 -1
- package/dist/chunk-ff5xkv0p.js.map +1 -1
- package/dist/chunk-fntqb7qy.js.map +1 -1
- package/dist/{chunk-7ny9mjgm.js → chunk-ft3w5ahs.js} +1 -1
- package/dist/chunk-g663fahq.js.map +1 -1
- package/dist/{chunk-cdk3egjj.js → chunk-h1na2cxc.js} +1 -1
- package/dist/{chunk-cdk3egjj.js.map → chunk-h1na2cxc.js.map} +1 -1
- package/dist/chunk-hn2r7z41.js.map +1 -1
- package/dist/{chunk-24bqx0dx.js → chunk-hn76sanm.js} +1 -1
- package/dist/{chunk-24bqx0dx.js.map → chunk-hn76sanm.js.map} +1 -1
- package/dist/chunk-jmfet9r4.js.map +1 -1
- package/dist/{chunk-bnr4a734.js → chunk-jn3ysaf2.js} +24 -22
- package/dist/{chunk-bnr4a734.js.map → chunk-jn3ysaf2.js.map} +5 -5
- package/dist/{chunk-4y26vs3v.js → chunk-jspskey0.js} +16 -3
- package/dist/chunk-jspskey0.js.map +10 -0
- package/dist/{chunk-r6szek0x.js → chunk-jt3r6thp.js} +2 -135
- package/dist/chunk-jt3r6thp.js.map +10 -0
- package/dist/chunk-kfee1h52.js.map +1 -1
- package/dist/{chunk-qx00vjrj.js → chunk-kwfhd1g0.js} +23 -23
- package/dist/{chunk-qx00vjrj.js.map → chunk-kwfhd1g0.js.map} +4 -4
- package/dist/chunk-m427qgq0.js.map +1 -1
- package/dist/chunk-mbsbxarb.js.map +1 -1
- package/dist/{chunk-et017krg.js → chunk-mdxmt0n3.js} +8657 -8704
- package/dist/{chunk-et017krg.js.map → chunk-mdxmt0n3.js.map} +37 -37
- package/dist/chunk-mmagke4x.js.map +1 -1
- package/dist/{chunk-2x19q6k6.js → chunk-mqx25wwh.js} +319 -154
- package/dist/chunk-mqx25wwh.js.map +18 -0
- package/dist/chunk-mzx71snp.js.map +1 -1
- package/dist/chunk-n8q5j6y5.js.map +1 -1
- package/dist/chunk-npcr0228.js.map +1 -1
- package/dist/{chunk-m2nevja0.js → chunk-phm3c7b9.js} +1 -1
- package/dist/{chunk-m2nevja0.js.map → chunk-phm3c7b9.js.map} +1 -1
- package/dist/chunk-qf954wje.js.map +1 -1
- package/dist/{chunk-65pyhyas.js → chunk-qgvbxfqv.js} +6 -8
- package/dist/{chunk-65pyhyas.js.map → chunk-qgvbxfqv.js.map} +2 -2
- package/dist/{chunk-hk38wahh.js → chunk-qst145py.js} +4 -4
- package/dist/{chunk-hk38wahh.js.map → chunk-qst145py.js.map} +1 -1
- package/dist/{chunk-c844dkwd.js → chunk-qtzftvxa.js} +4 -5
- package/dist/{chunk-c844dkwd.js.map → chunk-qtzftvxa.js.map} +2 -2
- package/dist/chunk-ratkv4zc.js +3 -0
- package/dist/chunk-ratkv4zc.js.map +9 -0
- package/dist/{chunk-nzapm6p0.js → chunk-s3we74h8.js} +1 -2
- package/dist/chunk-s3we74h8.js.map +12 -0
- package/dist/{chunk-0xmt5p5y.js → chunk-t3brw0wd.js} +1 -2
- package/dist/{chunk-0xmt5p5y.js.map → chunk-t3brw0wd.js.map} +2 -2
- package/dist/chunk-t5608tkq.js.map +1 -1
- package/dist/chunk-tdxfsg1c.js.map +1 -1
- package/dist/{chunk-1t6k1avb.js → chunk-tnhqtfea.js} +1 -1
- package/dist/chunk-vhbw5sqm.js.map +1 -1
- package/dist/{chunk-rp9wwk7b.js → chunk-vx4e4zv4.js} +30 -30
- package/dist/{chunk-rp9wwk7b.js.map → chunk-vx4e4zv4.js.map} +4 -4
- package/dist/chunk-waqk73p1.js.map +1 -1
- package/dist/chunk-x0v3jd47.js.map +1 -1
- package/dist/{chunk-yecwnwpq.js → chunk-xm8qgbqm.js} +58 -29
- package/dist/{chunk-yecwnwpq.js.map → chunk-xm8qgbqm.js.map} +7 -7
- package/dist/{chunk-97wr6p2g.js → chunk-y7j6x4h0.js} +8 -8
- package/dist/{chunk-97wr6p2g.js.map → chunk-y7j6x4h0.js.map} +4 -4
- package/dist/{chunk-xe0732g0.js → chunk-yavhtnac.js} +12 -8
- package/dist/{chunk-xe0732g0.js.map → chunk-yavhtnac.js.map} +4 -4
- package/dist/chunk-yd00vzqr.js +3394 -0
- package/dist/chunk-yd00vzqr.js.map +37 -0
- package/dist/{chunk-n9w3n38q.js → chunk-ye5c8016.js} +54 -8
- package/dist/chunk-ye5c8016.js.map +23 -0
- package/dist/chunk-yw9pyg66.js.map +1 -1
- package/dist/{chunk-nydf3dbe.js → chunk-z9mg7wya.js} +37 -20
- package/dist/chunk-z9mg7wya.js.map +13 -0
- package/dist/chunk-zbc929zg.js.map +1 -1
- package/dist/chunk-zhh1jd89.js +290 -0
- package/dist/chunk-zhh1jd89.js.map +10 -0
- package/dist/connectors/connections/authorizations.d.ts +2 -2
- package/dist/connectors/connections/authorizations.d.ts.map +1 -1
- package/dist/connectors/connections/service.d.ts.map +1 -1
- package/dist/connectors/connections/tokens.d.ts +2 -2
- package/dist/connectors/connections/tokens.d.ts.map +1 -1
- package/dist/connectors/connections/validation.d.ts +5 -0
- package/dist/connectors/connections/validation.d.ts.map +1 -1
- package/dist/connectors/types.d.ts +9 -2
- package/dist/connectors/types.d.ts.map +1 -1
- package/dist/datasets/write.js +3 -3
- package/dist/deploy/internal.js +2 -5
- package/dist/deploy/internal.js.map +3 -3
- package/dist/deploy/types.d.ts +0 -2
- package/dist/deploy/types.d.ts.map +1 -1
- package/dist/execution/agent.d.ts +2 -2
- package/dist/execution/agent.d.ts.map +1 -1
- package/dist/execution/agent.js +38 -38
- package/dist/execution/agent.js.map +1 -1
- package/dist/execution/primitive.js +35 -35
- package/dist/execution/request.js +37 -37
- package/dist/execution/request.js.map +2 -2
- package/dist/http/api-routes.d.ts +12 -11
- package/dist/http/api-routes.d.ts.map +1 -1
- package/dist/http/index.js +1 -1
- package/dist/index.d.ts +3 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +53 -51
- package/dist/index.js.map +1 -1
- package/dist/lake-storage/index.js +3 -3
- package/dist/logging/internal.js +1 -1
- package/dist/materializer/index.js +17 -17
- package/dist/models/execution/errors.d.ts +5 -0
- package/dist/models/execution/errors.d.ts.map +1 -1
- package/dist/models/execution/index.d.ts +2 -1
- package/dist/models/execution/index.d.ts.map +1 -1
- package/dist/models/execution/index.js +55 -50
- package/dist/models/execution/index.js.map +1 -1
- package/dist/models/execution/model-call-recorder.d.ts +7 -2
- package/dist/models/execution/model-call-recorder.d.ts.map +1 -1
- package/dist/models/execution.d.ts.map +1 -1
- package/dist/models/language-call.d.ts +51 -0
- package/dist/models/language-call.d.ts.map +1 -0
- package/dist/objects/index.js +35 -35
- package/dist/objects/query/index.js +17 -17
- package/dist/ontology/docs-markdown.d.ts.map +1 -1
- package/dist/ontology/index.d.ts +1 -1
- package/dist/ontology/index.d.ts.map +1 -1
- package/dist/ontology/index.js +4 -4
- package/dist/ontology/internal.js +8 -275
- package/dist/ontology/internal.js.map +3 -4
- package/dist/ontology/user-ref.d.ts +21 -3
- package/dist/ontology/user-ref.d.ts.map +1 -1
- package/dist/pipelines/index.js +19 -19
- package/dist/projections/builders.d.ts +13 -2
- 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 +17 -17
- package/dist/projections/types.d.ts +7 -0
- package/dist/projections/types.d.ts.map +1 -1
- package/dist/projections/validation.d.ts +2 -0
- package/dist/projections/validation.d.ts.map +1 -1
- package/dist/query.js +2 -2
- package/dist/queues/in-memory.d.ts +0 -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 +0 -8
- package/dist/queues/types.d.ts.map +1 -1
- package/dist/runtime/internal.js +23 -23
- package/dist/runtime/internal.js.map +1 -1
- package/dist/sandboxes/configuration.d.ts +4 -6
- package/dist/sandboxes/configuration.d.ts.map +1 -1
- package/dist/sandboxes/environment.d.ts.map +1 -1
- package/dist/sandboxes/exec.d.ts +5 -3
- package/dist/sandboxes/exec.d.ts.map +1 -1
- package/dist/sandboxes/guest-credentials.d.ts +61 -0
- package/dist/sandboxes/guest-credentials.d.ts.map +1 -0
- package/dist/sandboxes/index.d.ts +2 -0
- package/dist/sandboxes/index.d.ts.map +1 -1
- package/dist/sandboxes/index.js +23 -9
- package/dist/sandboxes/index.js.map +1 -1
- package/dist/sandboxes/sandbox.d.ts +18 -4
- package/dist/sandboxes/sandbox.d.ts.map +1 -1
- package/dist/security/internal.js +1 -1
- package/dist/security/internal.js.map +1 -1
- package/dist/shares/internal.js +17 -17
- package/dist/shares/internal.js.map +1 -1
- package/dist/storage/agents/in-memory.d.ts +3 -1
- 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 +6 -0
- package/dist/storage/agents/provider.d.ts.map +1 -1
- package/dist/storage/agents/provider.js +8 -2
- package/dist/storage/agents/provider.js.map +1 -1
- package/dist/storage/agents/types.d.ts +63 -7
- package/dist/storage/agents/types.d.ts.map +1 -1
- package/dist/storage/ai-cost/provider.js +2 -2
- package/dist/storage/connector-connections/provider.js.map +1 -1
- package/dist/storage/file-upload-sessions/provider.js +9 -9
- package/dist/storage/index.d.ts +1 -1
- package/dist/storage/index.d.ts.map +1 -1
- package/dist/storage/index.js +15 -15
- package/dist/storage/ontology/provider.js +1 -1
- package/dist/storage/share-grants/provider.js +3 -3
- package/dist/storage/types.d.ts +1 -1
- package/dist/storage/types.d.ts.map +1 -1
- package/dist/storage/workflow-runs/provider.js +9 -9
- package/dist/syncs/index.js +20 -20
- package/dist/testing/agent-storage-contract.d.ts.map +1 -1
- package/dist/testing/index.d.ts +2 -0
- package/dist/testing/index.d.ts.map +1 -1
- package/dist/testing/index.js +677 -352
- package/dist/testing/index.js.map +9 -7
- package/dist/testing/queues-contract.d.ts.map +1 -1
- package/dist/testing/sandbox-credentials-contract.d.ts +27 -0
- package/dist/testing/sandbox-credentials-contract.d.ts.map +1 -0
- package/dist/testing/sandboxes-contract.d.ts.map +1 -1
- package/dist/testing/users.d.ts +20 -0
- package/dist/testing/users.d.ts.map +1 -0
- package/dist/users/execution.d.ts +6 -2
- 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/internal.js +17 -17
- package/dist/webhooks/internal.js.map +1 -1
- package/dist/workers/index.js.map +1 -1
- package/dist/workflows/index.js +41 -39
- package/dist/workflows/index.js.map +1 -1
- package/package.json +1 -1
- package/src/agents/README.md +136 -0
- package/src/agents/attachment-keys.ts +83 -0
- package/src/agents/cancel.ts +16 -1
- package/src/agents/children.ts +5 -3
- package/src/agents/dispatch.ts +6 -58
- package/src/agents/execution.ts +18 -0
- package/src/agents/index.ts +127 -21
- package/src/agents/model-loop.ts +23 -73
- package/src/agents/model-routing.ts +7 -2
- package/src/agents/request.ts +69 -20
- package/src/agents/run-after-finish.ts +133 -0
- package/src/agents/run-artifacts.ts +257 -0
- package/src/agents/run-events.ts +302 -0
- package/src/agents/run-fence.ts +71 -0
- package/src/agents/run-liveness.ts +122 -0
- package/src/agents/run-plan.ts +316 -0
- package/src/agents/run-session-children.ts +303 -0
- package/src/agents/run-session-http.ts +397 -0
- package/src/agents/run-session-serve.ts +479 -0
- package/src/agents/run-session-wire.ts +189 -0
- package/src/agents/run-session.ts +802 -0
- package/src/agents/run-token.ts +124 -0
- package/src/agents/run-tools.ts +180 -0
- package/src/agents/run-turn.ts +265 -0
- package/src/agents/streams/internal.ts +0 -1
- package/src/agents/streams/protocol.ts +0 -292
- package/src/agents/subagent-runs.ts +19 -1
- package/src/agents/tool-files.ts +225 -0
- package/src/agents/workflow-node-session.ts +387 -0
- package/src/artifacts/publish/index.ts +1 -0
- package/src/connectors/connections/authorizations.ts +3 -2
- package/src/connectors/connections/service.ts +5 -1
- package/src/connectors/connections/tokens.ts +41 -5
- package/src/connectors/connections/validation.ts +21 -0
- package/src/connectors/types.ts +12 -2
- package/src/deploy/types.ts +0 -2
- package/src/deploy/validation.ts +1 -4
- package/src/execution/agent.ts +2 -2
- package/src/execution/authorized-object-reader.ts +28 -1
- package/src/http/api-routes.ts +114 -27
- package/src/index.ts +3 -1
- package/src/models/execution/README.md +15 -1
- package/src/models/execution/errors.ts +14 -0
- package/src/models/execution/index.ts +2 -1
- package/src/models/execution/model-call-recorder.ts +12 -10
- package/src/models/execution.ts +9 -11
- package/src/models/language-call.ts +247 -0
- package/src/ontology/docs-markdown.ts +14 -0
- package/src/ontology/index.ts +1 -1
- package/src/ontology/user-ref.ts +40 -6
- package/src/projections/builders.ts +48 -4
- package/src/projections/index.ts +1 -0
- package/src/projections/registry.ts +1 -0
- package/src/projections/revision.ts +10 -0
- package/src/projections/types.ts +8 -0
- package/src/projections/validation.ts +52 -6
- package/src/queues/in-memory.ts +0 -5
- package/src/queues/index.ts +0 -2
- package/src/queues/types.ts +0 -13
- package/src/runtime/host.ts +1 -1
- package/src/sandboxes/README.md +17 -6
- package/src/sandboxes/configuration.ts +7 -9
- package/src/sandboxes/environment.ts +1 -0
- package/src/sandboxes/exec.ts +17 -9
- package/src/sandboxes/guest-credentials.ts +262 -0
- package/src/sandboxes/index.ts +14 -0
- package/src/sandboxes/sandbox.ts +19 -4
- package/src/storage/agents/in-memory.ts +53 -0
- package/src/storage/agents/index.ts +2 -0
- package/src/storage/agents/provider.ts +56 -11
- package/src/storage/agents/types.ts +59 -7
- package/src/storage/index.ts +2 -0
- package/src/storage/types.ts +1 -0
- package/src/testing/agent-storage-contract.ts +175 -2
- package/src/testing/ai-model-call-groups-contract.ts +0 -1
- package/src/testing/index.ts +5 -0
- package/src/testing/queues-contract.ts +0 -16
- package/src/testing/sandbox-credentials-contract.ts +284 -0
- package/src/testing/sandboxes-contract.ts +21 -0
- package/src/testing/users.ts +39 -0
- package/src/users/execution.ts +33 -7
- package/src/users/index.ts +7 -1
- package/dist/agents/api-gateway.d.ts +0 -26
- package/dist/agents/api-gateway.d.ts.map +0 -1
- package/dist/chunk-2x19q6k6.js.map +0 -17
- package/dist/chunk-4y26vs3v.js.map +0 -10
- package/dist/chunk-661ezhks.js.map +0 -11
- package/dist/chunk-d2m879s4.js.map +0 -12
- package/dist/chunk-n9w3n38q.js.map +0 -23
- package/dist/chunk-nydf3dbe.js.map +0 -13
- package/dist/chunk-nzapm6p0.js.map +0 -12
- package/dist/chunk-r6szek0x.js.map +0 -10
- package/dist/chunk-vabga7fk.js +0 -176
- package/dist/chunk-vabga7fk.js.map +0 -12
- package/dist/chunk-vpgwq5nf.js +0 -810
- package/dist/chunk-vpgwq5nf.js.map +0 -21
- package/src/agents/api-gateway.ts +0 -68
- /package/dist/{chunk-2gjj5dx3.js.map → chunk-78ymxrn0.js.map} +0 -0
- /package/dist/{chunk-6n69k945.js.map → chunk-8mb7mt8n.js.map} +0 -0
- /package/dist/{chunk-m36fw8ft.js.map → chunk-8wsjr52f.js.map} +0 -0
- /package/dist/{chunk-bab05bhg.js.map → chunk-dgtd0836.js.map} +0 -0
- /package/dist/{chunk-7ny9mjgm.js.map → chunk-ft3w5ahs.js.map} +0 -0
- /package/dist/{chunk-1t6k1avb.js.map → chunk-tnhqtfea.js.map} +0 -0
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import type { FileRef } from "../blob-storage/types"
|
|
2
|
+
import type { AgentMessageRecord } from "../storage/agents"
|
|
3
|
+
import { isAgentToolResult } from "./tool-result"
|
|
4
|
+
|
|
5
|
+
// A run's attachments are keyed by where they sit in its thread: a message's file part, or a file a
|
|
6
|
+
// tool result returned. `$SIXB_ATTACHMENTS` lists them by these keys, and a tool opens one by its
|
|
7
|
+
// key, wherever the tool runs.
|
|
8
|
+
|
|
9
|
+
/** A file a message exposes as an attachment, with its key and where it sits in the message. */
|
|
10
|
+
export interface MessageAttachmentFile {
|
|
11
|
+
readonly fileRef: FileRef
|
|
12
|
+
readonly partIndex: number
|
|
13
|
+
readonly key: string
|
|
14
|
+
readonly contentPath: string
|
|
15
|
+
readonly sandboxName: string
|
|
16
|
+
readonly origin: "message-file" | "tool-result-file"
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export function attachmentKey(messageId: string, partIndex: number): string {
|
|
20
|
+
return `${messageId}:${partIndex}`
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export function toolResultAttachmentKey(
|
|
24
|
+
messageId: string,
|
|
25
|
+
partIndex: number,
|
|
26
|
+
contentIndex: number
|
|
27
|
+
): string {
|
|
28
|
+
return `${messageId}:${partIndex}:tool-result:${contentIndex}`
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
/** The id of the message an attachment key names, or null when the key is malformed. */
|
|
32
|
+
export function attachmentKeyMessageId(key: string): string | null {
|
|
33
|
+
return /^(.+?):\d+(?::tool-result:\d+)?$/.exec(key)?.[1] ?? null
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/** The attachment with this key in a message, as `$SIXB_ATTACHMENTS` would list it, or null. */
|
|
37
|
+
export function findMessageAttachment(message: AgentMessageRecord, key: string): FileRef | null {
|
|
38
|
+
return listMessageAttachments(message).find((file) => file.key === key)?.fileRef ?? null
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* Lists the files a message exposes as attachments: the user's file parts, and the files of real
|
|
43
|
+
* agent tool results, each with its key, its path in the message and its sandbox name. The
|
|
44
|
+
* `$SIXB_ATTACHMENTS` manifest and `ctx.attachments.open` both use it, so a key opens only what the
|
|
45
|
+
* manifest lists.
|
|
46
|
+
*/
|
|
47
|
+
export function listMessageAttachments(message: AgentMessageRecord): MessageAttachmentFile[] {
|
|
48
|
+
return message.parts.flatMap((part, partIndex): MessageAttachmentFile[] => {
|
|
49
|
+
if (part.type === "file") {
|
|
50
|
+
return [
|
|
51
|
+
{
|
|
52
|
+
fileRef: part.fileRef,
|
|
53
|
+
partIndex,
|
|
54
|
+
key: attachmentKey(message.id, partIndex),
|
|
55
|
+
contentPath: `/parts/${partIndex}/fileRef`,
|
|
56
|
+
sandboxName: String(partIndex),
|
|
57
|
+
origin: "message-file",
|
|
58
|
+
},
|
|
59
|
+
]
|
|
60
|
+
}
|
|
61
|
+
if (
|
|
62
|
+
part.type !== "tool-call" ||
|
|
63
|
+
part.state !== "output-available" ||
|
|
64
|
+
!isAgentToolResult(part.output)
|
|
65
|
+
) {
|
|
66
|
+
return []
|
|
67
|
+
}
|
|
68
|
+
return part.output.content.flatMap((contentPart, contentIndex) =>
|
|
69
|
+
contentPart.type === "file"
|
|
70
|
+
? [
|
|
71
|
+
{
|
|
72
|
+
fileRef: contentPart.fileRef,
|
|
73
|
+
partIndex,
|
|
74
|
+
key: toolResultAttachmentKey(message.id, partIndex, contentIndex),
|
|
75
|
+
contentPath: `/parts/${partIndex}/output/content/${contentIndex}/fileRef`,
|
|
76
|
+
sandboxName: `tool-${partIndex}-${contentIndex}`,
|
|
77
|
+
origin: "tool-result-file",
|
|
78
|
+
},
|
|
79
|
+
]
|
|
80
|
+
: []
|
|
81
|
+
)
|
|
82
|
+
})
|
|
83
|
+
}
|
package/src/agents/cancel.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { Broker } from "../broker"
|
|
1
2
|
import type { SixbRuntimeContext } from "../runtime/types"
|
|
2
3
|
import {
|
|
3
4
|
type AgentRunRecord,
|
|
@@ -56,10 +57,24 @@ export async function cancelAgentRun(
|
|
|
56
57
|
)
|
|
57
58
|
}
|
|
58
59
|
|
|
59
|
-
await
|
|
60
|
+
await requestAgentRunCancel({ ...runtime, storage }, current.id)
|
|
60
61
|
return current
|
|
61
62
|
}
|
|
62
63
|
|
|
64
|
+
/**
|
|
65
|
+
* Ask a running turn or child to stop. The cancel is recorded on the run first, so its run token
|
|
66
|
+
* stops working at once, its session over HTTP serves only its end, and a runner that never hears
|
|
67
|
+
* the broker learns of it at its next lease renewal; the broker's cancel then stops a runner that
|
|
68
|
+
* hears it right away.
|
|
69
|
+
*/
|
|
70
|
+
export async function requestAgentRunCancel(
|
|
71
|
+
host: { readonly projectId: string; readonly broker: Broker; readonly storage: AgentStorage },
|
|
72
|
+
runId: string
|
|
73
|
+
): Promise<void> {
|
|
74
|
+
await host.storage.runs.requestCancel({ projectId: host.projectId, id: runId })
|
|
75
|
+
await publishAgentRunCancel(host.broker, { projectId: host.projectId, runId })
|
|
76
|
+
}
|
|
77
|
+
|
|
63
78
|
/**
|
|
64
79
|
* Cancel a queued run before any worker starts it. The worker may have started it after the
|
|
65
80
|
* caller's read but before `finishQueued` locked it: then the run comes back as it is now, for the
|
package/src/agents/children.ts
CHANGED
|
@@ -19,14 +19,13 @@ import type { AiCostSummary } from "../storage/ai-cost"
|
|
|
19
19
|
import type { AiModelCallUsage } from "../storage/ai-usage"
|
|
20
20
|
import { resolveTurnAccounting } from "./accounting"
|
|
21
21
|
import { isPausedSubagentRun, turnResumeReadiness } from "./approvals"
|
|
22
|
-
import { cancelQueuedRun } from "./cancel"
|
|
22
|
+
import { cancelQueuedRun, requestAgentRunCancel } from "./cancel"
|
|
23
23
|
import {
|
|
24
24
|
type AgentChildQuestion,
|
|
25
25
|
deferredChildQuestion,
|
|
26
26
|
isAwaitingAnswerRun,
|
|
27
27
|
} from "./child-question"
|
|
28
28
|
import { AgentRequestError } from "./errors"
|
|
29
|
-
import { publishAgentRunCancel } from "./streams/protocol"
|
|
30
29
|
import { listSubagentThreadRuns } from "./subagent-runs"
|
|
31
30
|
import type { AgentReasoning } from "./types"
|
|
32
31
|
|
|
@@ -174,7 +173,10 @@ export async function cancelAgentChildRun(
|
|
|
174
173
|
`[Sixb] Sub-agent run '${run.id}' is not at work: it is ${current?.status ?? run.status}.`
|
|
175
174
|
)
|
|
176
175
|
}
|
|
177
|
-
await
|
|
176
|
+
await requestAgentRunCancel(
|
|
177
|
+
{ projectId: runtime.projectId, broker: runtime.broker, storage: requireAgents(runtime) },
|
|
178
|
+
run.id
|
|
179
|
+
)
|
|
178
180
|
return current
|
|
179
181
|
}
|
|
180
182
|
|
package/src/agents/dispatch.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { AgentQueueJob, Queue
|
|
1
|
+
import type { AgentQueueJob, Queue } from "../queues"
|
|
2
2
|
import type { AgentStorage } from "../storage/agents"
|
|
3
3
|
|
|
4
4
|
export interface DispatchQueuedAgentRunsInput {
|
|
@@ -31,10 +31,6 @@ export function agentRunQueueJobId(runId: string): string {
|
|
|
31
31
|
return `agt_job_${runId}`
|
|
32
32
|
}
|
|
33
33
|
|
|
34
|
-
export function subagentRunQueueJobId(runId: string): string {
|
|
35
|
-
return `agt_child_job_${runId}`
|
|
36
|
-
}
|
|
37
|
-
|
|
38
34
|
/** Stable queue identity shared by workflow dispatch and agent reconciliation. */
|
|
39
35
|
export function workflowAgentNodeQueueJobId(nodeRunId: string): string {
|
|
40
36
|
return `wfa_job_${nodeRunId}`
|
|
@@ -66,7 +62,11 @@ export async function dispatchQueuedAgentRuns(
|
|
|
66
62
|
})
|
|
67
63
|
).runs
|
|
68
64
|
|
|
69
|
-
|
|
65
|
+
// A computer's turn waits for its owner's computer to claim it: no worker may take it.
|
|
66
|
+
const queued = runs.filter(
|
|
67
|
+
(run) =>
|
|
68
|
+
run.kind === "conversation" && run.status === "queued" && run.spec?.runsOn !== "computer"
|
|
69
|
+
)
|
|
70
70
|
if (queued.length === 0) {
|
|
71
71
|
return { scanned: 0, dispatched: [], failures: [] }
|
|
72
72
|
}
|
|
@@ -98,58 +98,6 @@ export async function dispatchQueuedAgentRuns(
|
|
|
98
98
|
}
|
|
99
99
|
}
|
|
100
100
|
|
|
101
|
-
export async function dispatchQueuedSubagentRuns(input: {
|
|
102
|
-
readonly projectId: string
|
|
103
|
-
readonly storage: AgentStorage
|
|
104
|
-
readonly queue: Queue<SubagentQueueJob>
|
|
105
|
-
readonly runIds?: readonly string[]
|
|
106
|
-
readonly limit?: number
|
|
107
|
-
}): Promise<DispatchQueuedAgentRunsResult> {
|
|
108
|
-
const limit = normalizeLimit(input.limit)
|
|
109
|
-
const runs = input.runIds
|
|
110
|
-
? await input.storage.runs.getByIds({
|
|
111
|
-
projectId: input.projectId,
|
|
112
|
-
ids: [...new Set(input.runIds)].slice(0, limit),
|
|
113
|
-
})
|
|
114
|
-
: (
|
|
115
|
-
await input.storage.runs.list({
|
|
116
|
-
projectId: input.projectId,
|
|
117
|
-
kinds: ["subagent"],
|
|
118
|
-
statuses: ["queued"],
|
|
119
|
-
order: "asc",
|
|
120
|
-
limit,
|
|
121
|
-
})
|
|
122
|
-
).runs
|
|
123
|
-
const queued = runs.filter((run) => run.kind === "subagent" && run.status === "queued")
|
|
124
|
-
if (queued.length === 0) return { scanned: 0, dispatched: [], failures: [] }
|
|
125
|
-
|
|
126
|
-
try {
|
|
127
|
-
const jobs = await input.queue.enqueue({
|
|
128
|
-
projectId: input.projectId,
|
|
129
|
-
jobs: queued.map((run) => ({
|
|
130
|
-
id: subagentRunQueueJobId(run.id),
|
|
131
|
-
type: "agent.subagent-run.requested" as const,
|
|
132
|
-
payload: { runId: run.id },
|
|
133
|
-
})),
|
|
134
|
-
})
|
|
135
|
-
const jobsById = new Set(jobs.map((job) => job.id))
|
|
136
|
-
const dispatched = queued.map((run) => {
|
|
137
|
-
const jobId = subagentRunQueueJobId(run.id)
|
|
138
|
-
if (!jobsById.has(jobId)) {
|
|
139
|
-
throw new Error(`[Sixb] Subagent queue did not return job '${jobId}'.`)
|
|
140
|
-
}
|
|
141
|
-
return { runId: run.id, jobId }
|
|
142
|
-
})
|
|
143
|
-
return { scanned: queued.length, dispatched, failures: [] }
|
|
144
|
-
} catch (error) {
|
|
145
|
-
return {
|
|
146
|
-
scanned: queued.length,
|
|
147
|
-
dispatched: [],
|
|
148
|
-
failures: queued.map((run) => ({ runId: run.id, error })),
|
|
149
|
-
}
|
|
150
|
-
}
|
|
151
|
-
}
|
|
152
|
-
|
|
153
101
|
function normalizeLimit(value: number | undefined): number {
|
|
154
102
|
if (value === undefined) return 100
|
|
155
103
|
if (!Number.isFinite(value) || value < 1) {
|
package/src/agents/execution.ts
CHANGED
|
@@ -97,6 +97,11 @@ export type CreateExecutionAgentThreadInput<
|
|
|
97
97
|
readonly id?: string
|
|
98
98
|
readonly title?: string
|
|
99
99
|
readonly sandbox?: TParams
|
|
100
|
+
/**
|
|
101
|
+
* Run its turns on its owner's computer, which claims them, instead of in the cloud. It works in
|
|
102
|
+
* that computer's folder, so it takes no sandbox, and only its owner can message it.
|
|
103
|
+
*/
|
|
104
|
+
readonly runsOn?: "computer"
|
|
100
105
|
}
|
|
101
106
|
|
|
102
107
|
export type AgentThreadsRuntime<TParams extends Record<string, unknown> = Record<string, unknown>> =
|
|
@@ -748,6 +753,18 @@ export function createAgentRuntime<
|
|
|
748
753
|
"[Sixb] Agent storage is not configured."
|
|
749
754
|
)
|
|
750
755
|
}
|
|
756
|
+
if (input.runsOn !== undefined && input.runsOn !== "computer") {
|
|
757
|
+
throw new AgentRequestError(
|
|
758
|
+
"invalid_message",
|
|
759
|
+
`[Sixb] 'runsOn' must be "computer" or omitted.`
|
|
760
|
+
)
|
|
761
|
+
}
|
|
762
|
+
if (input.runsOn === "computer" && input.sandbox !== undefined) {
|
|
763
|
+
throw new AgentRequestError(
|
|
764
|
+
"invalid_sandbox_params",
|
|
765
|
+
"[Sixb] A thread that runs on a computer works in its folder: it takes no sandbox."
|
|
766
|
+
)
|
|
767
|
+
}
|
|
751
768
|
if (input.sandbox !== undefined && !sandbox?.supportsPersistence) {
|
|
752
769
|
throw new AgentRequestError(
|
|
753
770
|
"sandbox_not_configured",
|
|
@@ -764,6 +781,7 @@ export function createAgentRuntime<
|
|
|
764
781
|
projectId: runtime.projectId,
|
|
765
782
|
ownerPrincipal: principal,
|
|
766
783
|
...(input.title === undefined ? {} : { title: input.title }),
|
|
784
|
+
...(input.runsOn === undefined ? {} : { runsOn: input.runsOn }),
|
|
767
785
|
})
|
|
768
786
|
return { ...created, participants: [] }
|
|
769
787
|
},
|
package/src/agents/index.ts
CHANGED
|
@@ -11,15 +11,6 @@ export type {
|
|
|
11
11
|
ToModelMessagesOptions,
|
|
12
12
|
} from "./adapters"
|
|
13
13
|
export { toModelMessages } from "./adapters"
|
|
14
|
-
export type { AgentApiGatewayCapabilityInput, AgentApiRoute } from "./api-gateway"
|
|
15
|
-
export {
|
|
16
|
-
AGENT_API_GATEWAY_PREFIX,
|
|
17
|
-
AGENT_API_ROUTES,
|
|
18
|
-
createAgentApiGatewayCapability,
|
|
19
|
-
findAgentApiRoute,
|
|
20
|
-
isAllowedAgentApiRequest,
|
|
21
|
-
isValidAgentApiGatewayCapability,
|
|
22
|
-
} from "./api-gateway"
|
|
23
14
|
export type { AgentApprovalResume } from "./approval-continuation"
|
|
24
15
|
export { resumeDecidedAgentTurn } from "./approval-continuation"
|
|
25
16
|
export { getAgentApprovalExecutor } from "./approval-executor"
|
|
@@ -44,6 +35,14 @@ export {
|
|
|
44
35
|
turnPausesOnHeldCalls,
|
|
45
36
|
turnResumeReadiness,
|
|
46
37
|
} from "./approvals"
|
|
38
|
+
export type { MessageAttachmentFile } from "./attachment-keys"
|
|
39
|
+
export {
|
|
40
|
+
attachmentKey,
|
|
41
|
+
attachmentKeyMessageId,
|
|
42
|
+
findMessageAttachment,
|
|
43
|
+
listMessageAttachments,
|
|
44
|
+
toolResultAttachmentKey,
|
|
45
|
+
} from "./attachment-keys"
|
|
47
46
|
export type { AgentExecutionAuthorization, AgentExecutionIdentity } from "./authority"
|
|
48
47
|
export {
|
|
49
48
|
agentServiceAccountId,
|
|
@@ -54,6 +53,7 @@ export {
|
|
|
54
53
|
userCanRunAgent,
|
|
55
54
|
} from "./authority"
|
|
56
55
|
export { defineAgentTool } from "./builders"
|
|
56
|
+
export { requestAgentRunCancel } from "./cancel"
|
|
57
57
|
export type { AgentChildQuestion } from "./child-question"
|
|
58
58
|
export { deferredChildQuestion, isAwaitingAnswerRun } from "./child-question"
|
|
59
59
|
export type {
|
|
@@ -96,8 +96,6 @@ export type {
|
|
|
96
96
|
export {
|
|
97
97
|
agentRunQueueJobId,
|
|
98
98
|
dispatchQueuedAgentRuns,
|
|
99
|
-
dispatchQueuedSubagentRuns,
|
|
100
|
-
subagentRunQueueJobId,
|
|
101
99
|
workflowAgentNodeQueueJobId,
|
|
102
100
|
} from "./dispatch"
|
|
103
101
|
export {
|
|
@@ -153,6 +151,50 @@ export {
|
|
|
153
151
|
requestAgentRun,
|
|
154
152
|
retryAgentRun,
|
|
155
153
|
} from "./request"
|
|
154
|
+
export { afterAgentRunFinished, stopAgentRunChild } from "./run-after-finish"
|
|
155
|
+
export type { AgentRunArtifactPublish, AgentRunArtifacts } from "./run-artifacts"
|
|
156
|
+
export { agentRunArtifacts } from "./run-artifacts"
|
|
157
|
+
export type {
|
|
158
|
+
CompactionCompletedInput,
|
|
159
|
+
CompactionFailedInput,
|
|
160
|
+
CompactionStartedInput,
|
|
161
|
+
StreamSink,
|
|
162
|
+
} from "./run-events"
|
|
163
|
+
export {
|
|
164
|
+
createBrokerStreamSink,
|
|
165
|
+
isolateStreamSink,
|
|
166
|
+
NOOP_STREAM_SINK,
|
|
167
|
+
withAgentActivityStream,
|
|
168
|
+
} from "./run-events"
|
|
169
|
+
export {
|
|
170
|
+
AgentExecutionLostError,
|
|
171
|
+
AgentRunRefusedError,
|
|
172
|
+
isTerminalOrExecutionGone,
|
|
173
|
+
} from "./run-fence"
|
|
174
|
+
export {
|
|
175
|
+
AgentTurnInterruptedError,
|
|
176
|
+
agentRunLeaseLapsed,
|
|
177
|
+
endInterruptedAgentRun,
|
|
178
|
+
endLapsedAgentRuns,
|
|
179
|
+
interruptedError,
|
|
180
|
+
} from "./run-liveness"
|
|
181
|
+
export type {
|
|
182
|
+
AgentRunDelegation,
|
|
183
|
+
AgentRunDelegationModel,
|
|
184
|
+
AgentRunMemory,
|
|
185
|
+
AgentRunPlan,
|
|
186
|
+
AgentRunPlanDefinitions,
|
|
187
|
+
AgentRunView,
|
|
188
|
+
SandboxModel,
|
|
189
|
+
SandboxModelKind,
|
|
190
|
+
} from "./run-plan"
|
|
191
|
+
export {
|
|
192
|
+
listSandboxModels,
|
|
193
|
+
readAgentRunDelegation,
|
|
194
|
+
readAgentRunMemory,
|
|
195
|
+
readAgentRunPlan,
|
|
196
|
+
renderAgentRunOntologyDocs,
|
|
197
|
+
} from "./run-plan"
|
|
156
198
|
export type {
|
|
157
199
|
AgentRunExecutionScope,
|
|
158
200
|
AgentRunScopeAuthority,
|
|
@@ -160,6 +202,64 @@ export type {
|
|
|
160
202
|
AgentRunScopeHost,
|
|
161
203
|
} from "./run-scope"
|
|
162
204
|
export { AgentRunScopeError, resolveAgentRunExecutionScope } from "./run-scope"
|
|
205
|
+
export type {
|
|
206
|
+
AgentRunCheckpoint,
|
|
207
|
+
AgentRunFileStore,
|
|
208
|
+
AgentRunHeldCalls,
|
|
209
|
+
AgentRunModels,
|
|
210
|
+
AgentRunOutcome,
|
|
211
|
+
AgentRunPeople,
|
|
212
|
+
AgentRunSession,
|
|
213
|
+
AgentRunSessionHost,
|
|
214
|
+
AgentRunWorkspace,
|
|
215
|
+
AgentRunWorkspaceTransition,
|
|
216
|
+
ClaimAgentRunInput,
|
|
217
|
+
} from "./run-session"
|
|
218
|
+
export {
|
|
219
|
+
AgentFinalizationError,
|
|
220
|
+
agentRunPeople,
|
|
221
|
+
claimAgentRun,
|
|
222
|
+
openAgentRunSession,
|
|
223
|
+
watchAgentRunCancel,
|
|
224
|
+
} from "./run-session"
|
|
225
|
+
export type {
|
|
226
|
+
AgentChildDraft,
|
|
227
|
+
AgentRunChildren,
|
|
228
|
+
AgentRunThreads,
|
|
229
|
+
} from "./run-session-children"
|
|
230
|
+
export {
|
|
231
|
+
claimAgentRunChildOverHttp,
|
|
232
|
+
claimAgentRunOverHttp,
|
|
233
|
+
createHttpAgentRunSession,
|
|
234
|
+
type HttpAgentRunSessionInput,
|
|
235
|
+
} from "./run-session-http"
|
|
236
|
+
export { claimAgentRunForRunner, serveAgentRunSession } from "./run-session-serve"
|
|
237
|
+
export { decodeWireValue, encodeWireError, encodeWireValue } from "./run-session-wire"
|
|
238
|
+
export type { AgentApiRoute, AgentRunTokenInput } from "./run-token"
|
|
239
|
+
export {
|
|
240
|
+
AGENT_API_ROUTES,
|
|
241
|
+
agentRunTokenRunId,
|
|
242
|
+
createAgentRunnerToken,
|
|
243
|
+
createAgentRunToken,
|
|
244
|
+
findAgentApiRoute,
|
|
245
|
+
isAgentRunnerToken,
|
|
246
|
+
isAgentRunToken,
|
|
247
|
+
isAllowedAgentApiRequest,
|
|
248
|
+
isValidAgentRunToken,
|
|
249
|
+
} from "./run-token"
|
|
250
|
+
export type {
|
|
251
|
+
AgentToolCall,
|
|
252
|
+
AgentToolCallOptions,
|
|
253
|
+
AgentToolCallResult,
|
|
254
|
+
AgentToolSpec,
|
|
255
|
+
} from "./run-tools"
|
|
256
|
+
export { agentToolSpec, runAgentTool, threadToolAttachments } from "./run-tools"
|
|
257
|
+
export type {
|
|
258
|
+
AgentChildContext,
|
|
259
|
+
AgentRunContext,
|
|
260
|
+
AgentTurnContext,
|
|
261
|
+
AgentTurnHistory,
|
|
262
|
+
} from "./run-turn"
|
|
163
263
|
export type {
|
|
164
264
|
AgentDefinitions,
|
|
165
265
|
AgentDefinitionsInput,
|
|
@@ -169,13 +269,11 @@ export type {
|
|
|
169
269
|
} from "./skills"
|
|
170
270
|
export type {
|
|
171
271
|
AgentCompactionFailureCode,
|
|
172
|
-
AgentMail,
|
|
173
272
|
AgentRunControlStreamId,
|
|
174
273
|
AgentRunFailure,
|
|
175
274
|
AgentRunFinishedEvent,
|
|
176
275
|
AgentRunStreamEvent,
|
|
177
276
|
AgentRunStreamId,
|
|
178
|
-
ReceivedAgentMail,
|
|
179
277
|
} from "./streams/protocol"
|
|
180
278
|
export {
|
|
181
279
|
AGENT_COMPACTION_FAILURE_CODES,
|
|
@@ -184,23 +282,16 @@ export {
|
|
|
184
282
|
agentRunControlStreamDefinition,
|
|
185
283
|
agentRunControlStreamId,
|
|
186
284
|
agentRunFinishedEvent,
|
|
187
|
-
agentRunInboxStreamId,
|
|
188
285
|
agentRunStreamDefinition,
|
|
189
286
|
agentRunStreamId,
|
|
190
287
|
agentRunStreamIdempotencyKey,
|
|
191
|
-
agentThreadInboxStreamId,
|
|
192
288
|
DEFAULT_AGENT_RUN_STREAM_RETENTION,
|
|
193
289
|
isAgentRunStreamEvent,
|
|
194
|
-
isKnownAgentMailKind,
|
|
195
|
-
publishAgentMail,
|
|
196
290
|
publishAgentRunCancel,
|
|
197
291
|
publishAgentRunFinished,
|
|
198
|
-
readAgentMail,
|
|
199
|
-
subscribeAgentInbox,
|
|
200
|
-
subscribeAgentMail,
|
|
201
292
|
subscribeAgentRunCancel,
|
|
202
293
|
} from "./streams/protocol"
|
|
203
|
-
export { listSubagentThreadRuns } from "./subagent-runs"
|
|
294
|
+
export { listSubagentThreadRuns, subagentSandboxFiles } from "./subagent-runs"
|
|
204
295
|
export { assertConversationThread, conversationThreadId } from "./thread-access"
|
|
205
296
|
export type {
|
|
206
297
|
AgentThreadModelContextMessage,
|
|
@@ -208,6 +299,12 @@ export type {
|
|
|
208
299
|
} from "./thread-context-projection"
|
|
209
300
|
export { projectAgentThreadModelContext } from "./thread-context-projection"
|
|
210
301
|
export type { AgentToolCatalog } from "./tool-catalog"
|
|
302
|
+
export type { AgentToolCallFile, StoredAgentToolFile } from "./tool-files"
|
|
303
|
+
export {
|
|
304
|
+
AGENT_FILE_MAX_BYTES,
|
|
305
|
+
SANDBOX_CONTEXT_DIRECTORY,
|
|
306
|
+
storeAgentToolFile,
|
|
307
|
+
} from "./tool-files"
|
|
211
308
|
export { isAgentToolResult } from "./tool-result"
|
|
212
309
|
export type {
|
|
213
310
|
AgentDescriptor,
|
|
@@ -244,3 +341,12 @@ export {
|
|
|
244
341
|
isAgentToolDefinition,
|
|
245
342
|
validateAndNormalizeAgentToolInput,
|
|
246
343
|
} from "./validation"
|
|
344
|
+
export type {
|
|
345
|
+
WorkflowAgentNodeSession,
|
|
346
|
+
WorkflowAgentNodeSessionHost,
|
|
347
|
+
} from "./workflow-node-session"
|
|
348
|
+
export {
|
|
349
|
+
claimWorkflowAgentNode,
|
|
350
|
+
enqueueWorkflowAgentNodeResume,
|
|
351
|
+
WorkflowResumeDispatchError,
|
|
352
|
+
} from "./workflow-node-session"
|