@sixb/core 0.1.26 → 0.2.1
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 +47 -47
- package/dist/actions/request.d.ts.map +1 -1
- package/dist/actions/run/context.d.ts +1 -0
- package/dist/actions/run/context.d.ts.map +1 -1
- package/dist/actions/run/execute.d.ts +3 -0
- package/dist/actions/run/execute.d.ts.map +1 -1
- package/dist/actions/run/executor.d.ts +3 -0
- package/dist/actions/run/executor.d.ts.map +1 -1
- package/dist/actions/run/types.d.ts +5 -0
- package/dist/actions/run/types.d.ts.map +1 -1
- package/dist/actions/types/context.d.ts +11 -0
- package/dist/actions/types/context.d.ts.map +1 -1
- package/dist/agents/adapters.d.ts +30 -4
- package/dist/agents/adapters.d.ts.map +1 -1
- package/dist/agents/approvals.d.ts +8 -0
- package/dist/agents/approvals.d.ts.map +1 -1
- package/dist/agents/context-budget.d.ts +48 -0
- package/dist/agents/context-budget.d.ts.map +1 -0
- package/dist/agents/context-compaction.d.ts +89 -9
- package/dist/agents/context-compaction.d.ts.map +1 -1
- package/dist/agents/context-files.d.ts +12 -0
- package/dist/agents/context-files.d.ts.map +1 -0
- package/dist/agents/context-parts.d.ts +41 -0
- package/dist/agents/context-parts.d.ts.map +1 -0
- package/dist/agents/context-request.d.ts +47 -0
- package/dist/agents/context-request.d.ts.map +1 -0
- package/dist/agents/context-token-rate.d.ts +98 -0
- package/dist/agents/context-token-rate.d.ts.map +1 -0
- package/dist/agents/context-use.d.ts +51 -0
- package/dist/agents/context-use.d.ts.map +1 -0
- package/dist/agents/dispatch.d.ts.map +1 -1
- package/dist/agents/execution.d.ts +13 -1
- package/dist/agents/execution.d.ts.map +1 -1
- package/dist/agents/index.d.ts +21 -7
- package/dist/agents/index.d.ts.map +1 -1
- package/dist/agents/index.js +109 -55
- package/dist/agents/index.js.map +1 -1
- package/dist/agents/inline-images.d.ts +17 -0
- package/dist/agents/inline-images.d.ts.map +1 -0
- package/dist/agents/message.d.ts +55 -0
- package/dist/agents/message.d.ts.map +1 -1
- package/dist/agents/model-loop.d.ts +23 -3
- package/dist/agents/model-loop.d.ts.map +1 -1
- package/dist/agents/request.d.ts +6 -1
- package/dist/agents/request.d.ts.map +1 -1
- package/dist/agents/run-events.d.ts +3 -2
- package/dist/agents/run-events.d.ts.map +1 -1
- package/dist/agents/run-plan.d.ts +12 -2
- package/dist/agents/run-plan.d.ts.map +1 -1
- package/dist/agents/run-session-http.d.ts +6 -3
- package/dist/agents/run-session-http.d.ts.map +1 -1
- package/dist/agents/run-session-serve.d.ts +18 -2
- package/dist/agents/run-session-serve.d.ts.map +1 -1
- package/dist/agents/run-session.d.ts +3 -1
- package/dist/agents/run-session.d.ts.map +1 -1
- package/dist/agents/run-tools.d.ts +7 -0
- package/dist/agents/run-tools.d.ts.map +1 -1
- package/dist/agents/run-turn.d.ts +39 -4
- package/dist/agents/run-turn.d.ts.map +1 -1
- package/dist/agents/skills.d.ts +9 -2
- package/dist/agents/skills.d.ts.map +1 -1
- package/dist/agents/step-limits.d.ts +18 -0
- package/dist/agents/step-limits.d.ts.map +1 -0
- 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 +2 -2
- 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 +7 -3
- package/dist/agents/streams/internal.js.map +1 -1
- package/dist/agents/streams/protocol.d.ts +36 -1
- package/dist/agents/streams/protocol.d.ts.map +1 -1
- package/dist/agents/thread-context-projection.d.ts +10 -0
- package/dist/agents/thread-context-projection.d.ts.map +1 -1
- package/dist/agents/tool-files.d.ts +22 -0
- package/dist/agents/tool-files.d.ts.map +1 -1
- package/dist/artifacts/publish/index.js +26 -26
- package/dist/auth/index.js +12 -12
- package/dist/auth/index.js.map +1 -1
- package/dist/auth/runtime.d.ts +2 -0
- package/dist/auth/runtime.d.ts.map +1 -1
- package/dist/auth/types.d.ts +5 -0
- package/dist/auth/types.d.ts.map +1 -1
- package/dist/authorization/decision.d.ts +2 -0
- package/dist/authorization/decision.d.ts.map +1 -1
- package/dist/authorization/grant-kinds.d.ts +2 -2
- package/dist/authorization/grant-kinds.d.ts.map +1 -1
- package/dist/authorization/index.d.ts +1 -1
- package/dist/authorization/index.d.ts.map +1 -1
- package/dist/authorization/index.js +7 -5
- package/dist/authorization/index.js.map +1 -1
- package/dist/authorization/run-visibility.d.ts +17 -0
- package/dist/authorization/run-visibility.d.ts.map +1 -1
- package/dist/bootstrap/index.js +55 -55
- package/dist/{chunk-t3brw0wd.js → chunk-0g5nyx0k.js} +181 -30
- package/dist/chunk-0g5nyx0k.js.map +14 -0
- package/dist/{chunk-fakrpfy3.js → chunk-0k1h5hmr.js} +2 -1
- package/dist/{chunk-fakrpfy3.js.map → chunk-0k1h5hmr.js.map} +3 -3
- package/dist/{chunk-c0vk1djt.js → chunk-165c9wm6.js} +1 -1
- package/dist/{chunk-8mb7mt8n.js → chunk-21q0j5f2.js} +2 -2
- package/dist/{chunk-hn76sanm.js → chunk-23s66j86.js} +1 -1
- package/dist/{chunk-h1na2cxc.js → chunk-2g0r46hy.js} +2 -2
- package/dist/{chunk-8v6xzwgr.js → chunk-3x3bebz7.js} +95 -19
- package/dist/{chunk-8v6xzwgr.js.map → chunk-3x3bebz7.js.map} +10 -9
- package/dist/{chunk-tdxfsg1c.js → chunk-47e09r7z.js} +2 -2
- package/dist/{chunk-73j0v4qv.js → chunk-4zm1k3xj.js} +14 -2
- package/dist/{chunk-73j0v4qv.js.map → chunk-4zm1k3xj.js.map} +3 -3
- package/dist/{chunk-fntqb7qy.js → chunk-57g0215c.js} +1 -1
- package/dist/{chunk-npcr0228.js → chunk-5kyvrtjh.js} +1 -1
- package/dist/{chunk-zhh1jd89.js → chunk-5taem5aw.js} +1 -1
- package/dist/{chunk-tnhqtfea.js → chunk-6b61s40c.js} +1 -1
- package/dist/{chunk-4ymrcdbm.js → chunk-7hd2ez3q.js} +1 -1
- package/dist/{chunk-315qye3g.js → chunk-80nh73br.js} +1 -1
- package/dist/{chunk-b6ghvap7.js → chunk-8yzhjawq.js} +7 -7
- package/dist/{chunk-2vjnyz1s.js → chunk-9rh8ncs5.js} +2 -2
- package/dist/{chunk-pgrf64hp.js → chunk-agn8d8ys.js} +1 -1
- package/dist/{chunk-6qn7nmd3.js → chunk-aqyjb86c.js} +9 -9
- package/dist/{chunk-4jq2bg8t.js → chunk-ax10ft8d.js} +6 -6
- package/dist/{chunk-mqx25wwh.js → chunk-b7a97n8b.js} +12 -10
- package/dist/{chunk-mqx25wwh.js.map → chunk-b7a97n8b.js.map} +3 -3
- package/dist/{chunk-8v5a54qz.js → chunk-cb21tx14.js} +165 -42
- package/dist/{chunk-8v5a54qz.js.map → chunk-cb21tx14.js.map} +12 -12
- package/dist/{chunk-7ex2p3zp.js → chunk-cgznz22f.js} +2 -2
- package/dist/{chunk-vhbw5sqm.js → chunk-d7v97qxq.js} +7 -1
- package/dist/chunk-d7v97qxq.js.map +10 -0
- package/dist/chunk-de5sfbc3.js +3 -0
- package/dist/{chunk-ratkv4zc.js.map → chunk-de5sfbc3.js.map} +1 -1
- package/dist/{chunk-qgvbxfqv.js → chunk-djs3hw9p.js} +1 -1
- package/dist/{chunk-ye5c8016.js → chunk-dz7a4t3a.js} +26 -5
- package/dist/{chunk-ye5c8016.js.map → chunk-dz7a4t3a.js.map} +4 -4
- package/dist/{chunk-fe8zwt8b.js → chunk-e6xgz4h4.js} +22 -4
- package/dist/{chunk-fe8zwt8b.js.map → chunk-e6xgz4h4.js.map} +5 -3
- package/dist/{chunk-dgtd0836.js → chunk-e7v3trpz.js} +1 -1
- package/dist/{chunk-z9mg7wya.js → chunk-edx8xcsm.js} +111 -11
- package/dist/chunk-edx8xcsm.js.map +13 -0
- package/dist/{chunk-0bc3w0zq.js → chunk-epyfm23v.js} +38 -11
- package/dist/chunk-epyfm23v.js.map +11 -0
- package/dist/{chunk-zbc929zg.js → chunk-escedwyt.js} +9 -1
- package/dist/{chunk-zbc929zg.js.map → chunk-escedwyt.js.map} +3 -3
- package/dist/{chunk-jt3r6thp.js → chunk-fg1db9xx.js} +46 -6
- package/dist/chunk-fg1db9xx.js.map +10 -0
- package/dist/{chunk-73v685wb.js → chunk-frsz8wxd.js} +4 -4
- package/dist/{chunk-73v685wb.js.map → chunk-frsz8wxd.js.map} +3 -3
- package/dist/{chunk-axb4ss9a.js → chunk-h05rg3bx.js} +43 -12
- package/dist/chunk-h05rg3bx.js.map +12 -0
- package/dist/{chunk-06sg8s4z.js → chunk-j1ny5fwh.js} +37 -13
- package/dist/chunk-j1ny5fwh.js.map +15 -0
- package/dist/{chunk-59kf345w.js → chunk-jbw70d6t.js} +2 -2
- package/dist/{chunk-cbcgs9f7.js → chunk-jftd33rc.js} +21 -21
- package/dist/chunk-jftd33rc.js.map +11 -0
- package/dist/{chunk-78ymxrn0.js → chunk-jhbk10wf.js} +1 -1
- package/dist/{chunk-phm3c7b9.js → chunk-jjmggm9a.js} +2 -2
- package/dist/{chunk-18sk89cg.js → chunk-jk97v21j.js} +7 -2
- package/dist/chunk-jk97v21j.js.map +10 -0
- package/dist/chunk-kcqpk9w1.js.map +2 -2
- package/dist/{chunk-xm8qgbqm.js → chunk-ks87m383.js} +55 -45
- package/dist/{chunk-xm8qgbqm.js.map → chunk-ks87m383.js.map} +5 -5
- package/dist/{chunk-ft3w5ahs.js → chunk-m3qe54bb.js} +1 -1
- package/dist/{chunk-y7j6x4h0.js → chunk-neftrg0n.js} +3 -3
- package/dist/{chunk-07kkp2e1.js → chunk-nghc7eq0.js} +2 -2
- package/dist/{chunk-vx4e4zv4.js → chunk-nqnfz3jg.js} +4 -4
- package/dist/{chunk-1xvqgg88.js → chunk-nz7815t3.js} +18 -2
- package/dist/chunk-nz7815t3.js.map +14 -0
- package/dist/{chunk-e24fvw8g.js → chunk-qbrmpgvv.js} +1 -1
- package/dist/{chunk-dp0cdtj2.js → chunk-qsg8rw04.js} +2 -2
- package/dist/{chunk-0kk2wt0h.js → chunk-r1cxq7vv.js} +2 -2
- package/dist/{chunk-yd00vzqr.js → chunk-ratj7t3t.js} +1009 -354
- package/dist/chunk-ratj7t3t.js.map +45 -0
- package/dist/{chunk-yavhtnac.js → chunk-rjeeyssy.js} +89 -43
- package/dist/{chunk-yavhtnac.js.map → chunk-rjeeyssy.js.map} +3 -3
- package/dist/{chunk-kyjcwqz6.js → chunk-rtkqczbr.js} +3 -1
- package/dist/{chunk-kyjcwqz6.js.map → chunk-rtkqczbr.js.map} +3 -3
- package/dist/{chunk-9mab3dvg.js → chunk-s038wa5v.js} +9 -1
- package/dist/{chunk-9mab3dvg.js.map → chunk-s038wa5v.js.map} +3 -3
- package/dist/{chunk-2adz0h75.js → chunk-s7xqfxs9.js} +35 -3
- package/dist/chunk-s7xqfxs9.js.map +11 -0
- package/dist/{chunk-g663fahq.js → chunk-scyq22td.js} +1 -1
- package/dist/{chunk-8xnz9vvp.js → chunk-t5daew4g.js} +23 -19
- package/dist/chunk-t5daew4g.js.map +12 -0
- package/dist/{chunk-7wn5z7mq.js → chunk-t9xyr7y9.js} +5 -5
- package/dist/{chunk-qst145py.js → chunk-tvbmh7tj.js} +24 -14
- package/dist/chunk-tvbmh7tj.js.map +18 -0
- package/dist/{chunk-pdt5cw8z.js → chunk-tvefbgvw.js} +5 -2
- package/dist/{chunk-pdt5cw8z.js.map → chunk-tvefbgvw.js.map} +3 -3
- package/dist/{chunk-45ngkxkp.js → chunk-w122ymx4.js} +2 -2
- package/dist/{chunk-jn3ysaf2.js → chunk-w53trr0c.js} +12 -12
- package/dist/{chunk-jn3ysaf2.js.map → chunk-w53trr0c.js.map} +1 -1
- package/dist/{chunk-48jezz3j.js → chunk-w976a4me.js} +1 -1
- package/dist/{chunk-qtzftvxa.js → chunk-wx7smkn2.js} +1 -1
- package/dist/{chunk-c14ap3s9.js → chunk-y2x2935j.js} +3 -3
- package/dist/{chunk-7hf6tkgs.js → chunk-ytzcxtpt.js} +5 -5
- package/dist/{chunk-7hf6tkgs.js.map → chunk-ytzcxtpt.js.map} +1 -1
- package/dist/{chunk-mdxmt0n3.js → chunk-z3evap21.js} +1074 -122
- package/dist/chunk-z3evap21.js.map +129 -0
- package/dist/datasets/execution.d.ts +26 -1
- package/dist/datasets/execution.d.ts.map +1 -1
- package/dist/datasets/index.d.ts +1 -1
- package/dist/datasets/index.d.ts.map +1 -1
- package/dist/datasets/lineage.d.ts +55 -0
- package/dist/datasets/lineage.d.ts.map +1 -0
- package/dist/datasets/write.js +5 -5
- package/dist/deploy/types.d.ts +8 -1
- package/dist/deploy/types.d.ts.map +1 -1
- package/dist/env/index.d.ts +36 -0
- package/dist/env/index.d.ts.map +1 -0
- package/dist/env/index.js +17 -0
- package/dist/env/index.js.map +10 -0
- package/dist/error-reporting/internal.js +3 -3
- package/dist/errors/catalog.d.ts +8 -0
- package/dist/errors/catalog.d.ts.map +1 -1
- package/dist/errors/internal.js +1 -1
- package/dist/events/index.js +4 -4
- package/dist/events/selectors/index.js +1 -1
- package/dist/events/selectors/predicate.d.ts.map +1 -1
- package/dist/events/types/datasets.d.ts +6 -0
- package/dist/events/types/datasets.d.ts.map +1 -1
- package/dist/execution/agent.js +47 -47
- package/dist/execution/index.d.ts +1 -0
- package/dist/execution/index.d.ts.map +1 -1
- package/dist/execution/primitive.js +47 -47
- package/dist/execution/request-client.d.ts +21 -0
- package/dist/execution/request-client.d.ts.map +1 -0
- package/dist/execution/request.d.ts.map +1 -1
- package/dist/execution/request.js +49 -47
- package/dist/execution/request.js.map +3 -3
- package/dist/http/api-routes.d.ts.map +1 -1
- package/dist/http/index.js +1 -1
- package/dist/index.d.ts +7 -5
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +67 -67
- package/dist/index.js.map +1 -1
- package/dist/lake-storage/in-memory.d.ts.map +1 -1
- package/dist/lake-storage/index.d.ts +2 -2
- package/dist/lake-storage/index.d.ts.map +1 -1
- package/dist/lake-storage/index.js +10 -6
- package/dist/lake-storage/index.js.map +1 -1
- package/dist/lake-storage/source-ordering.d.ts +7 -0
- package/dist/lake-storage/source-ordering.d.ts.map +1 -1
- package/dist/lake-storage/types.d.ts +18 -0
- package/dist/lake-storage/types.d.ts.map +1 -1
- package/dist/lake-storage/version-inputs.d.ts +11 -3
- package/dist/lake-storage/version-inputs.d.ts.map +1 -1
- package/dist/lineage/commits.d.ts +45 -0
- package/dist/lineage/commits.d.ts.map +1 -0
- package/dist/lineage/executors.d.ts +14 -0
- package/dist/lineage/executors.d.ts.map +1 -0
- package/dist/lineage/link.d.ts +10 -0
- package/dist/lineage/link.d.ts.map +1 -0
- package/dist/lineage/object.d.ts +10 -0
- package/dist/lineage/object.d.ts.map +1 -0
- package/dist/lineage/projections.d.ts +34 -0
- package/dist/lineage/projections.d.ts.map +1 -0
- package/dist/lineage/reader.d.ts +34 -0
- package/dist/lineage/reader.d.ts.map +1 -0
- package/dist/lineage/sources.d.ts +62 -0
- package/dist/lineage/sources.d.ts.map +1 -0
- package/dist/lineage/types.d.ts +140 -0
- package/dist/lineage/types.d.ts.map +1 -0
- package/dist/materializer/effective/resolve.d.ts +63 -6
- package/dist/materializer/effective/resolve.d.ts.map +1 -1
- package/dist/materializer/index.js +27 -27
- package/dist/models/errors.d.ts +8 -0
- package/dist/models/errors.d.ts.map +1 -1
- package/dist/models/events.d.ts +10 -0
- package/dist/models/events.d.ts.map +1 -1
- package/dist/models/execution/index.d.ts +1 -0
- package/dist/models/execution/index.d.ts.map +1 -1
- package/dist/models/execution/index.js +34 -31
- package/dist/models/execution/index.js.map +1 -1
- package/dist/models/execution/model-call-recorder.d.ts +2 -0
- package/dist/models/execution/model-call-recorder.d.ts.map +1 -1
- package/dist/models/index.d.ts +2 -1
- package/dist/models/index.d.ts.map +1 -1
- package/dist/models/index.js +3 -3
- package/dist/models/language-model.d.ts +29 -2
- package/dist/models/language-model.d.ts.map +1 -1
- package/dist/objects/execution.d.ts +4 -1
- package/dist/objects/execution.d.ts.map +1 -1
- package/dist/objects/index.js +47 -47
- package/dist/objects/query/executor.d.ts.map +1 -1
- package/dist/objects/query/index.d.ts +1 -0
- package/dist/objects/query/index.d.ts.map +1 -1
- package/dist/objects/query/index.js +30 -28
- package/dist/objects/query/index.js.map +1 -1
- package/dist/objects/query/ir.d.ts +16 -0
- package/dist/objects/query/ir.d.ts.map +1 -1
- package/dist/objects/query/link-endpoints.d.ts +11 -0
- package/dist/objects/query/link-endpoints.d.ts.map +1 -0
- package/dist/objects/query/normalize.d.ts.map +1 -1
- package/dist/objects/query/planner.d.ts +5 -0
- package/dist/objects/query/planner.d.ts.map +1 -1
- package/dist/objects/query/validate.d.ts +2 -0
- package/dist/objects/query/validate.d.ts.map +1 -1
- package/dist/objects/sdk/object-set.d.ts +2 -0
- package/dist/objects/sdk/object-set.d.ts.map +1 -1
- package/dist/ontology/index.js +5 -5
- package/dist/ontology/internal.js +3 -3
- package/dist/pipelines/index.js +33 -33
- package/dist/pipelines/run-dispatch.d.ts +2 -0
- package/dist/pipelines/run-dispatch.d.ts.map +1 -1
- package/dist/projections/internal.js +27 -27
- package/dist/query.js +2 -2
- package/dist/queues/in-memory.d.ts +1 -1
- package/dist/queues/in-memory.d.ts.map +1 -1
- package/dist/runtime/create.d.ts +3 -0
- package/dist/runtime/create.d.ts.map +1 -1
- package/dist/runtime/internal.js +33 -33
- package/dist/runtime/resolve-definitions.d.ts.map +1 -1
- package/dist/runtime/types.d.ts +16 -0
- package/dist/runtime/types.d.ts.map +1 -1
- package/dist/sandboxes/exec.d.ts.map +1 -1
- package/dist/sandboxes/index.js +5 -5
- package/dist/schedules/index.js +2 -2
- package/dist/security/grants.d.ts +1 -1
- package/dist/security/grants.d.ts.map +1 -1
- package/dist/security/internal.js +1 -1
- package/dist/security/project.d.ts.map +1 -1
- package/dist/security/public.js +2 -2
- package/dist/security/types.d.ts +10 -3
- package/dist/security/types.d.ts.map +1 -1
- package/dist/security/validation.d.ts.map +1 -1
- package/dist/shares/execution.d.ts +9 -0
- package/dist/shares/execution.d.ts.map +1 -1
- package/dist/shares/index.d.ts +1 -1
- package/dist/shares/index.d.ts.map +1 -1
- package/dist/shares/internal.js +24 -24
- package/dist/storage/action-runs/failure.js +2 -2
- package/dist/storage/agents/in-memory.d.ts +38 -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 +43 -5
- package/dist/storage/agents/provider.d.ts.map +1 -1
- package/dist/storage/agents/provider.js +30 -6
- package/dist/storage/agents/provider.js.map +1 -1
- package/dist/storage/agents/types.d.ts +132 -10
- package/dist/storage/agents/types.d.ts.map +1 -1
- package/dist/storage/ai-cost/analytics.d.ts +13 -5
- package/dist/storage/ai-cost/analytics.d.ts.map +1 -1
- package/dist/storage/ai-cost/groups.d.ts +19 -2
- package/dist/storage/ai-cost/groups.d.ts.map +1 -1
- package/dist/storage/ai-cost/in-memory.d.ts +6 -1
- package/dist/storage/ai-cost/in-memory.d.ts.map +1 -1
- package/dist/storage/ai-cost/index.d.ts +1 -1
- package/dist/storage/ai-cost/index.d.ts.map +1 -1
- package/dist/storage/ai-cost/provider.d.ts +1 -1
- package/dist/storage/ai-cost/provider.d.ts.map +1 -1
- package/dist/storage/ai-cost/provider.js +7 -5
- package/dist/storage/ai-cost/provider.js.map +1 -1
- package/dist/storage/ai-cost/types.d.ts +65 -9
- package/dist/storage/ai-cost/types.d.ts.map +1 -1
- package/dist/storage/ai-limits/enforcement.js +4 -4
- package/dist/storage/ai-limits/provider.js +2 -2
- package/dist/storage/connector-connections/provider.js +1 -1
- package/dist/storage/file-upload-sessions/provider.js +10 -10
- package/dist/storage/in-memory/index.d.ts.map +1 -1
- package/dist/storage/index.d.ts +3 -3
- package/dist/storage/index.d.ts.map +1 -1
- package/dist/storage/index.js +31 -31
- package/dist/storage/index.js.map +1 -1
- package/dist/storage/internal.d.ts +2 -0
- package/dist/storage/internal.d.ts.map +1 -1
- package/dist/storage/internal.js +11 -7
- package/dist/storage/internal.js.map +1 -1
- package/dist/storage/objects/in-memory/query.d.ts.map +1 -1
- package/dist/storage/objects/query-preparation.d.ts +5 -0
- package/dist/storage/objects/query-preparation.d.ts.map +1 -1
- package/dist/storage/ontology/commits.d.ts +6 -1
- package/dist/storage/ontology/commits.d.ts.map +1 -1
- package/dist/storage/ontology/in-memory/commits.d.ts.map +1 -1
- package/dist/storage/ontology/in-memory/materializations.d.ts +2 -1
- package/dist/storage/ontology/in-memory/materializations.d.ts.map +1 -1
- package/dist/storage/ontology/index.d.ts +1 -1
- package/dist/storage/ontology/index.d.ts.map +1 -1
- package/dist/storage/ontology/materializations.d.ts +16 -0
- package/dist/storage/ontology/materializations.d.ts.map +1 -1
- package/dist/storage/ontology/provider.d.ts +6 -1
- package/dist/storage/ontology/provider.d.ts.map +1 -1
- package/dist/storage/ontology/provider.js +4 -2
- package/dist/storage/ontology/provider.js.map +1 -1
- package/dist/storage/operation-scope.d.ts +10 -0
- package/dist/storage/operation-scope.d.ts.map +1 -1
- package/dist/storage/operation-scope.js +7 -3
- package/dist/storage/operation-scope.js.map +1 -1
- package/dist/storage/pipeline-runs/in-memory.d.ts.map +1 -1
- package/dist/storage/pipeline-runs/transitions.d.ts +7 -0
- package/dist/storage/pipeline-runs/transitions.d.ts.map +1 -0
- package/dist/storage/projection-runs/provider.js +2 -2
- package/dist/storage/sync-runs/in-memory.d.ts.map +1 -1
- package/dist/storage/sync-runs/transitions.d.ts +7 -0
- package/dist/storage/sync-runs/transitions.d.ts.map +1 -0
- package/dist/storage/workflow-runs/provider.js +10 -10
- package/dist/syncs/index.js +34 -34
- package/dist/syncs/run-dispatch.d.ts +2 -0
- package/dist/syncs/run-dispatch.d.ts.map +1 -1
- package/dist/testing/agent-storage-contract.d.ts.map +1 -1
- package/dist/testing/agent-token-rate-storage-contract.d.ts +14 -0
- package/dist/testing/agent-token-rate-storage-contract.d.ts.map +1 -0
- package/dist/testing/ai-model-call-groups-contract.d.ts +1 -1
- package/dist/testing/ai-model-call-groups-contract.d.ts.map +1 -1
- package/dist/testing/dataset-sequence-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 +4514 -3530
- package/dist/testing/index.js.map +13 -12
- package/dist/testing/lake-changes-contract.d.ts.map +1 -1
- package/dist/testing/lake-storage-contract.d.ts.map +1 -1
- package/dist/testing/materializer-storage-contract.d.ts.map +1 -1
- package/dist/testing/object-query-contract.d.ts.map +1 -1
- package/dist/testing/ontology-contract-fixture.d.ts +3 -3
- package/dist/testing/ontology-contract-fixture.d.ts.map +1 -1
- package/dist/testing/ontology-storage-contract.d.ts.map +1 -1
- package/dist/webhooks/internal.js +25 -25
- package/dist/workers/index.d.ts +1 -0
- package/dist/workers/index.d.ts.map +1 -1
- package/dist/workers/index.js +13 -3
- package/dist/workers/index.js.map +5 -4
- package/dist/workers/unstarted-run.d.ts +10 -0
- package/dist/workers/unstarted-run.d.ts.map +1 -0
- package/dist/workflows/builders.d.ts.map +1 -1
- package/dist/workflows/index.js +54 -54
- package/dist/workflows/types.d.ts +6 -0
- package/dist/workflows/types.d.ts.map +1 -1
- package/dist/workflows/validation.d.ts.map +1 -1
- package/package.json +7 -1
- package/src/actions/request.ts +6 -0
- package/src/actions/run/context.ts +6 -0
- package/src/actions/run/execute.ts +8 -2
- package/src/actions/run/executor.ts +4 -0
- package/src/actions/run/types.ts +5 -0
- package/src/actions/types/context.ts +11 -0
- package/src/agents/README.md +11 -3
- package/src/agents/adapters.ts +73 -23
- package/src/agents/approvals.ts +22 -0
- package/src/agents/context-budget.ts +121 -0
- package/src/agents/context-compaction.ts +317 -150
- package/src/agents/context-files.ts +48 -0
- package/src/agents/context-parts.ts +219 -0
- package/src/agents/context-request.ts +100 -0
- package/src/agents/context-token-rate.ts +224 -0
- package/src/agents/context-use.ts +187 -0
- package/src/agents/dispatch.ts +2 -0
- package/src/agents/execution.ts +105 -0
- package/src/agents/index.ts +46 -2
- package/src/agents/inline-images.ts +17 -0
- package/src/agents/message.ts +70 -1
- package/src/agents/model-loop.ts +192 -61
- package/src/agents/request.ts +18 -1
- package/src/agents/run-events.ts +3 -2
- package/src/agents/run-plan.ts +22 -3
- package/src/agents/run-session-http.ts +8 -5
- package/src/agents/run-session-serve.ts +133 -9
- package/src/agents/run-session.ts +30 -4
- package/src/agents/run-tools.ts +10 -2
- package/src/agents/run-turn.ts +116 -26
- package/src/agents/skills.ts +9 -2
- package/src/agents/step-limits.ts +27 -0
- package/src/agents/streams/index.ts +2 -0
- package/src/agents/streams/internal.ts +2 -0
- package/src/agents/streams/protocol.ts +125 -2
- package/src/agents/thread-context-projection.ts +25 -17
- package/src/agents/tool-files.ts +41 -3
- package/src/auth/runtime.ts +30 -1
- package/src/auth/types.ts +5 -0
- package/src/authorization/decision.ts +5 -0
- package/src/authorization/grant-kinds.ts +8 -0
- package/src/authorization/index.ts +2 -0
- package/src/authorization/run-visibility.ts +37 -0
- package/src/datasets/execution.ts +91 -2
- package/src/datasets/index.ts +1 -0
- package/src/datasets/lineage.ts +194 -0
- package/src/deploy/types.ts +8 -1
- package/src/env/index.ts +46 -0
- package/src/errors/catalog.ts +12 -0
- package/src/events/selectors/predicate.ts +15 -0
- package/src/events/types/datasets.ts +6 -0
- package/src/execution/index.ts +1 -0
- package/src/execution/request-client.ts +44 -0
- package/src/execution/request.ts +2 -0
- package/src/http/api-routes.ts +24 -25
- package/src/index.ts +32 -0
- package/src/lake-storage/in-memory.ts +30 -20
- package/src/lake-storage/index.ts +2 -1
- package/src/lake-storage/source-ordering.ts +31 -4
- package/src/lake-storage/types.ts +18 -0
- package/src/lake-storage/version-inputs.ts +21 -5
- package/src/lineage/README.md +107 -0
- package/src/lineage/commits.ts +173 -0
- package/src/lineage/executors.ts +103 -0
- package/src/lineage/link.ts +138 -0
- package/src/lineage/object.ts +218 -0
- package/src/lineage/projections.ts +174 -0
- package/src/lineage/reader.ts +89 -0
- package/src/lineage/sources.ts +156 -0
- package/src/lineage/types.ts +149 -0
- package/src/materializer/effective/resolve.ts +198 -50
- package/src/models/errors.ts +10 -0
- package/src/models/events.ts +13 -1
- package/src/models/execution/index.ts +1 -0
- package/src/models/execution/model-call-recorder.ts +7 -1
- package/src/models/index.ts +3 -0
- package/src/models/language-model.ts +34 -2
- package/src/objects/execution.ts +6 -1
- package/src/objects/query/executor.ts +28 -13
- package/src/objects/query/index.ts +1 -0
- package/src/objects/query/ir.ts +16 -0
- package/src/objects/query/link-endpoints.ts +29 -0
- package/src/objects/query/normalize.ts +3 -0
- package/src/objects/query/planner.ts +5 -0
- package/src/objects/query/validate.ts +73 -3
- package/src/objects/sdk/object-set.ts +33 -1
- package/src/pipelines/run-dispatch.ts +53 -6
- package/src/runtime/create.ts +6 -0
- package/src/runtime/resolve-definitions.ts +7 -0
- package/src/runtime/sixb.ts +4 -1
- package/src/runtime/types.ts +18 -0
- package/src/sandboxes/exec.ts +19 -0
- package/src/security/grants.ts +3 -0
- package/src/security/project.ts +1 -0
- package/src/security/types.ts +8 -3
- package/src/security/validation.ts +5 -4
- package/src/shares/execution.ts +35 -3
- package/src/shares/index.ts +1 -0
- package/src/storage/agents/in-memory.ts +179 -8
- package/src/storage/agents/index.ts +8 -0
- package/src/storage/agents/provider.ts +219 -6
- package/src/storage/agents/types.ts +145 -9
- package/src/storage/ai-cost/analytics.ts +177 -10
- package/src/storage/ai-cost/groups.ts +122 -35
- package/src/storage/ai-cost/in-memory.ts +10 -4
- package/src/storage/ai-cost/index.ts +5 -0
- package/src/storage/ai-cost/provider.ts +5 -1
- package/src/storage/ai-cost/types.ts +65 -9
- package/src/storage/in-memory/index.ts +10 -0
- package/src/storage/index.ts +15 -0
- package/src/storage/internal.ts +2 -0
- package/src/storage/objects/in-memory/query.ts +5 -1
- package/src/storage/objects/query-preparation.ts +10 -0
- package/src/storage/ontology/commits.ts +6 -1
- package/src/storage/ontology/in-memory/commits.ts +7 -0
- package/src/storage/ontology/in-memory/materializations.ts +24 -0
- package/src/storage/ontology/index.ts +2 -0
- package/src/storage/ontology/materializations.ts +21 -0
- package/src/storage/ontology/provider.ts +41 -1
- package/src/storage/operation-scope.ts +41 -0
- package/src/storage/pipeline-runs/in-memory.ts +2 -5
- package/src/storage/pipeline-runs/transitions.ts +14 -0
- package/src/storage/sync-runs/in-memory.ts +2 -5
- package/src/storage/sync-runs/transitions.ts +11 -0
- package/src/syncs/run-dispatch.ts +68 -13
- package/src/testing/agent-storage-contract.ts +426 -20
- package/src/testing/agent-token-rate-storage-contract.ts +171 -0
- package/src/testing/ai-model-call-groups-contract.ts +225 -7
- package/src/testing/dataset-sequence-contract.ts +81 -0
- package/src/testing/index.ts +5 -0
- package/src/testing/lake-changes-contract.ts +2 -1
- package/src/testing/lake-storage-contract.ts +112 -0
- package/src/testing/materializer-storage-contract.ts +294 -10
- package/src/testing/object-query-contract.ts +48 -0
- package/src/testing/ontology-contract-fixture.ts +18 -7
- package/src/testing/ontology-storage-contract.ts +42 -0
- package/src/workers/index.ts +1 -0
- package/src/workers/unstarted-run.ts +18 -0
- package/src/workflows/builders.ts +8 -1
- package/src/workflows/types.ts +6 -0
- package/src/workflows/validation.ts +1 -0
- package/dist/chunk-06sg8s4z.js.map +0 -15
- package/dist/chunk-0bc3w0zq.js.map +0 -11
- package/dist/chunk-18sk89cg.js.map +0 -10
- package/dist/chunk-1xvqgg88.js.map +0 -14
- package/dist/chunk-2adz0h75.js.map +0 -11
- package/dist/chunk-8xnz9vvp.js.map +0 -12
- package/dist/chunk-axb4ss9a.js.map +0 -12
- package/dist/chunk-cbcgs9f7.js.map +0 -11
- package/dist/chunk-jt3r6thp.js.map +0 -10
- package/dist/chunk-mdxmt0n3.js.map +0 -120
- package/dist/chunk-qst145py.js.map +0 -18
- package/dist/chunk-ratkv4zc.js +0 -3
- package/dist/chunk-t3brw0wd.js.map +0 -14
- package/dist/chunk-vhbw5sqm.js.map +0 -10
- package/dist/chunk-yd00vzqr.js.map +0 -37
- package/dist/chunk-z9mg7wya.js.map +0 -13
- /package/dist/{chunk-c0vk1djt.js.map → chunk-165c9wm6.js.map} +0 -0
- /package/dist/{chunk-8mb7mt8n.js.map → chunk-21q0j5f2.js.map} +0 -0
- /package/dist/{chunk-hn76sanm.js.map → chunk-23s66j86.js.map} +0 -0
- /package/dist/{chunk-h1na2cxc.js.map → chunk-2g0r46hy.js.map} +0 -0
- /package/dist/{chunk-tdxfsg1c.js.map → chunk-47e09r7z.js.map} +0 -0
- /package/dist/{chunk-fntqb7qy.js.map → chunk-57g0215c.js.map} +0 -0
- /package/dist/{chunk-npcr0228.js.map → chunk-5kyvrtjh.js.map} +0 -0
- /package/dist/{chunk-zhh1jd89.js.map → chunk-5taem5aw.js.map} +0 -0
- /package/dist/{chunk-tnhqtfea.js.map → chunk-6b61s40c.js.map} +0 -0
- /package/dist/{chunk-4ymrcdbm.js.map → chunk-7hd2ez3q.js.map} +0 -0
- /package/dist/{chunk-315qye3g.js.map → chunk-80nh73br.js.map} +0 -0
- /package/dist/{chunk-b6ghvap7.js.map → chunk-8yzhjawq.js.map} +0 -0
- /package/dist/{chunk-2vjnyz1s.js.map → chunk-9rh8ncs5.js.map} +0 -0
- /package/dist/{chunk-pgrf64hp.js.map → chunk-agn8d8ys.js.map} +0 -0
- /package/dist/{chunk-6qn7nmd3.js.map → chunk-aqyjb86c.js.map} +0 -0
- /package/dist/{chunk-4jq2bg8t.js.map → chunk-ax10ft8d.js.map} +0 -0
- /package/dist/{chunk-7ex2p3zp.js.map → chunk-cgznz22f.js.map} +0 -0
- /package/dist/{chunk-qgvbxfqv.js.map → chunk-djs3hw9p.js.map} +0 -0
- /package/dist/{chunk-dgtd0836.js.map → chunk-e7v3trpz.js.map} +0 -0
- /package/dist/{chunk-59kf345w.js.map → chunk-jbw70d6t.js.map} +0 -0
- /package/dist/{chunk-78ymxrn0.js.map → chunk-jhbk10wf.js.map} +0 -0
- /package/dist/{chunk-phm3c7b9.js.map → chunk-jjmggm9a.js.map} +0 -0
- /package/dist/{chunk-ft3w5ahs.js.map → chunk-m3qe54bb.js.map} +0 -0
- /package/dist/{chunk-y7j6x4h0.js.map → chunk-neftrg0n.js.map} +0 -0
- /package/dist/{chunk-07kkp2e1.js.map → chunk-nghc7eq0.js.map} +0 -0
- /package/dist/{chunk-vx4e4zv4.js.map → chunk-nqnfz3jg.js.map} +0 -0
- /package/dist/{chunk-e24fvw8g.js.map → chunk-qbrmpgvv.js.map} +0 -0
- /package/dist/{chunk-dp0cdtj2.js.map → chunk-qsg8rw04.js.map} +0 -0
- /package/dist/{chunk-0kk2wt0h.js.map → chunk-r1cxq7vv.js.map} +0 -0
- /package/dist/{chunk-g663fahq.js.map → chunk-scyq22td.js.map} +0 -0
- /package/dist/{chunk-7wn5z7mq.js.map → chunk-t9xyr7y9.js.map} +0 -0
- /package/dist/{chunk-45ngkxkp.js.map → chunk-w122ymx4.js.map} +0 -0
- /package/dist/{chunk-48jezz3j.js.map → chunk-w976a4me.js.map} +0 -0
- /package/dist/{chunk-qtzftvxa.js.map → chunk-wx7smkn2.js.map} +0 -0
- /package/dist/{chunk-c14ap3s9.js.map → chunk-y2x2935j.js.map} +0 -0
|
@@ -6,20 +6,22 @@ import {
|
|
|
6
6
|
createSixbError2,
|
|
7
7
|
toSixbFailure2,
|
|
8
8
|
parseSixbFailure2
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-escedwyt.js";
|
|
10
10
|
import {
|
|
11
11
|
vectorSources,
|
|
12
12
|
hasVectorProfile2,
|
|
13
|
+
linkTargetObjectTypeIds,
|
|
14
|
+
linkEndpointObjectTypeIds2,
|
|
13
15
|
paginate,
|
|
14
16
|
InMemoryAuthStorage2,
|
|
15
17
|
principalsEqual2
|
|
16
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-3x3bebz7.js";
|
|
17
19
|
import {
|
|
18
20
|
ObjectReadLimitExceededError2,
|
|
19
21
|
snapshotObjectReadExecutionLimits2,
|
|
20
22
|
assertObjectReadFacetCount2,
|
|
21
23
|
assertObjectReadOutputWithinLimit2
|
|
22
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-dz7a4t3a.js";
|
|
23
25
|
import {
|
|
24
26
|
assertObjectReaderProject2
|
|
25
27
|
} from "./chunk-31khg3g0.js";
|
|
@@ -30,7 +32,7 @@ import {
|
|
|
30
32
|
queryScalarKindForSchema,
|
|
31
33
|
resolvePropertyQueryCapabilities2,
|
|
32
34
|
resolveQuerySchema
|
|
33
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-djs3hw9p.js";
|
|
34
36
|
import {
|
|
35
37
|
createEventId2
|
|
36
38
|
} from "./chunk-zrvhsq7f.js";
|
|
@@ -44,9 +46,15 @@ import {
|
|
|
44
46
|
countsAsThreadMessage2,
|
|
45
47
|
planAgentThreadFork2,
|
|
46
48
|
assertConversationAgentRunSpec2,
|
|
47
|
-
|
|
48
|
-
|
|
49
|
+
assertAgentThreadComputer2,
|
|
50
|
+
assertComputerPlace2,
|
|
51
|
+
assertAgentComputerSession2,
|
|
49
52
|
assertAssignableComputer2,
|
|
53
|
+
assertMovableToCloud2,
|
|
54
|
+
assertTurnInThreadPlace2,
|
|
55
|
+
assertStartsOnComputer2,
|
|
56
|
+
movesComputerPlace2,
|
|
57
|
+
queuedTurnInCloud2,
|
|
50
58
|
assertAgentApprovalModeInput2,
|
|
51
59
|
assertAgentRunExecution2,
|
|
52
60
|
assertCreateSubagentRunInput2,
|
|
@@ -64,6 +72,7 @@ import {
|
|
|
64
72
|
agentMemoryConflicts2,
|
|
65
73
|
compareAgentMemoryPaths2,
|
|
66
74
|
agentMemoryHistoryCutoff2,
|
|
75
|
+
assertAgentTokenRateRecord2,
|
|
67
76
|
LIVE_AGENT_APPROVAL_STATUSES2,
|
|
68
77
|
agentApprovalHoldsRun2,
|
|
69
78
|
assertAwaitingApprovalFinish2,
|
|
@@ -76,7 +85,7 @@ import {
|
|
|
76
85
|
assertAgentApprovalCaller2,
|
|
77
86
|
newAgentApprovalRecord2,
|
|
78
87
|
agentApprovalMatches2
|
|
79
|
-
} from "./chunk-
|
|
88
|
+
} from "./chunk-edx8xcsm.js";
|
|
80
89
|
import {
|
|
81
90
|
InMemoryAiUsageStorage2,
|
|
82
91
|
buildAiAccountingOverview,
|
|
@@ -85,7 +94,7 @@ import {
|
|
|
85
94
|
buildAiModelCallGroups,
|
|
86
95
|
normalizeAiModelCallCostRecord2,
|
|
87
96
|
aiModelCallCostMatchesUsage2
|
|
88
|
-
} from "./chunk-
|
|
97
|
+
} from "./chunk-0g5nyx0k.js";
|
|
89
98
|
import {
|
|
90
99
|
AiLimitStorageError2,
|
|
91
100
|
aiLimitCalendarMonth2,
|
|
@@ -111,14 +120,14 @@ import {
|
|
|
111
120
|
cloneAiLimitPolicy2,
|
|
112
121
|
assertNonBlank2,
|
|
113
122
|
cloneValidDate2
|
|
114
|
-
} from "./chunk-
|
|
123
|
+
} from "./chunk-7hd2ez3q.js";
|
|
115
124
|
import {
|
|
116
125
|
isAbandonedFileUploadSession,
|
|
117
126
|
shouldDeleteFileUploadSession
|
|
118
127
|
} from "./chunk-h89wz928.js";
|
|
119
128
|
import {
|
|
120
129
|
DurableFileUploadSessions2
|
|
121
|
-
} from "./chunk-
|
|
130
|
+
} from "./chunk-23s66j86.js";
|
|
122
131
|
import {
|
|
123
132
|
actionSubjectsEqual,
|
|
124
133
|
normalizeRecordActionRunInput2,
|
|
@@ -135,10 +144,12 @@ import {
|
|
|
135
144
|
artifactStorageErrors2,
|
|
136
145
|
cloneFileDownloadGrantRecord,
|
|
137
146
|
canRequeuePipelineRunAfterEnqueueFailure2,
|
|
147
|
+
canFinishPipelineRun2,
|
|
138
148
|
canRequeueSyncRunAfterEnqueueFailure2,
|
|
149
|
+
canFinishSyncRun2,
|
|
139
150
|
createTransactionStorageProxy2,
|
|
140
151
|
throwNestedStorageTransaction2
|
|
141
|
-
} from "./chunk-
|
|
152
|
+
} from "./chunk-e6xgz4h4.js";
|
|
142
153
|
import {
|
|
143
154
|
ExecutionStorageError2,
|
|
144
155
|
prepareExecutionRecord2,
|
|
@@ -184,6 +195,7 @@ import {
|
|
|
184
195
|
ProviderMaterializationTransactionLifecycle2,
|
|
185
196
|
prepareMaterializationWork2,
|
|
186
197
|
uniqueSorted2,
|
|
198
|
+
prepareMaterializationStateRead2,
|
|
187
199
|
assertExpectedObjectRevision2,
|
|
188
200
|
assertExpectedLinkRevision2,
|
|
189
201
|
assertExpectedLinkScopeRevision2,
|
|
@@ -198,7 +210,7 @@ import {
|
|
|
198
210
|
assertSourceStagedRow2,
|
|
199
211
|
isExactStagingManifest2,
|
|
200
212
|
sourceConflict2
|
|
201
|
-
} from "./chunk-
|
|
213
|
+
} from "./chunk-nz7815t3.js";
|
|
202
214
|
import {
|
|
203
215
|
createStorageOperationScope2,
|
|
204
216
|
createOperationScopedFacade2,
|
|
@@ -207,7 +219,7 @@ import {
|
|
|
207
219
|
createOntologyOperationScope2,
|
|
208
220
|
createObjectOperationScope2,
|
|
209
221
|
createWorkflowRunOperationScope2
|
|
210
|
-
} from "./chunk-
|
|
222
|
+
} from "./chunk-s7xqfxs9.js";
|
|
211
223
|
import {
|
|
212
224
|
PipelineRunError2,
|
|
213
225
|
assertPipelineRunExecution2
|
|
@@ -242,7 +254,7 @@ import {
|
|
|
242
254
|
assertProjectionMissingTarget2,
|
|
243
255
|
requireTelemetryProjectionRun2,
|
|
244
256
|
assertProjectionRunDurableExecution2
|
|
245
|
-
} from "./chunk-
|
|
257
|
+
} from "./chunk-scyq22td.js";
|
|
246
258
|
import {
|
|
247
259
|
SyncRunError2,
|
|
248
260
|
assertSyncRunExecution2
|
|
@@ -255,7 +267,7 @@ import {
|
|
|
255
267
|
WorkflowRunError2,
|
|
256
268
|
assertWorkflowRunExecution2,
|
|
257
269
|
assertWorkflowAgentNodeRunExecution2
|
|
258
|
-
} from "./chunk-
|
|
270
|
+
} from "./chunk-neftrg0n.js";
|
|
259
271
|
import {
|
|
260
272
|
ShareGrantStorageError2,
|
|
261
273
|
normalizeShareGrantCreate2,
|
|
@@ -274,13 +286,13 @@ import {
|
|
|
274
286
|
normalizeRevokeShareSessionInput2,
|
|
275
287
|
cloneShareSessionRecord2
|
|
276
288
|
} from "./chunk-z8fx5cgb.js";
|
|
289
|
+
import {
|
|
290
|
+
ActionRunError2
|
|
291
|
+
} from "./chunk-3gbefjg5.js";
|
|
277
292
|
import {
|
|
278
293
|
ConnectorConnectionStorageError2,
|
|
279
294
|
CONNECTOR_CONNECTION_RUN_FAILURE_CODES2
|
|
280
295
|
} from "./chunk-2c4j899j.js";
|
|
281
|
-
import {
|
|
282
|
-
ActionRunError2
|
|
283
|
-
} from "./chunk-3gbefjg5.js";
|
|
284
296
|
import {
|
|
285
297
|
assertPinnedDatasetWatermark2
|
|
286
298
|
} from "./chunk-n8q5j6y5.js";
|
|
@@ -293,8 +305,9 @@ import {
|
|
|
293
305
|
compareDecimalValues2
|
|
294
306
|
} from "./chunk-3bh94gbw.js";
|
|
295
307
|
import {
|
|
296
|
-
AGENT_RUN_FAILURE_CODES2
|
|
297
|
-
|
|
308
|
+
AGENT_RUN_FAILURE_CODES2,
|
|
309
|
+
AGENT_TOKEN_RATE_SAMPLES2
|
|
310
|
+
} from "./chunk-jk97v21j.js";
|
|
298
311
|
import {
|
|
299
312
|
cloneJsonValue2,
|
|
300
313
|
stableJsonStringify2
|
|
@@ -446,7 +459,7 @@ class InMemoryAgentThreadStore {
|
|
|
446
459
|
return clone(sandboxState);
|
|
447
460
|
}
|
|
448
461
|
async create(input) {
|
|
449
|
-
|
|
462
|
+
assertComputerPlace2(input.runsOn, input.computer);
|
|
450
463
|
const sandboxParams = input.sandboxParams === undefined ? undefined : snapshotAgentThreadSandboxParams2(input.sandboxParams);
|
|
451
464
|
const threadKey = key(input.projectId, input.id);
|
|
452
465
|
if (this.state.threads.has(threadKey)) {
|
|
@@ -461,6 +474,7 @@ class InMemoryAgentThreadStore {
|
|
|
461
474
|
...sandboxParams === undefined ? {} : { sandboxParams },
|
|
462
475
|
...input.title === undefined ? {} : { title: input.title },
|
|
463
476
|
...input.runsOn === undefined ? {} : { runsOn: input.runsOn },
|
|
477
|
+
...input.computer === undefined ? {} : { computer: clone(input.computer) },
|
|
464
478
|
status: input.status ?? "active",
|
|
465
479
|
activeRunId: null,
|
|
466
480
|
messageCount: 0,
|
|
@@ -484,6 +498,7 @@ class InMemoryAgentThreadStore {
|
|
|
484
498
|
const messages = [...this.state.messages.values()].filter((message) => message.projectId === input.projectId).filter((message) => message.threadId === source.id).sort((left, right) => left.seq - right.seq);
|
|
485
499
|
const checkpoints = [...this.state.checkpoints.values()].filter((checkpoint) => checkpoint.projectId === input.projectId).filter((checkpoint) => checkpoint.threadId === source.id).sort(compareLatestCheckpoints);
|
|
486
500
|
const plan = planAgentThreadFork2(input, {
|
|
501
|
+
workspace: source,
|
|
487
502
|
...activeRun?.kind === "conversation" ? { triggerMessageId: activeRun.triggerMessageId } : {},
|
|
488
503
|
messages: messages.map((message) => ({
|
|
489
504
|
...message,
|
|
@@ -523,6 +538,11 @@ class InMemoryAgentThreadStore {
|
|
|
523
538
|
const order = input.order ?? "desc";
|
|
524
539
|
const statuses = input.statuses ? new Set(input.statuses) : null;
|
|
525
540
|
const filtered = [...this.state.threads.values()].filter((thread) => thread.projectId === input.projectId).filter((thread) => thread.kind === "conversation").filter((thread) => statuses ? statuses.has(thread.status) : true).filter((thread) => input.ownerPrincipal ? principalsEqual2(thread.ownerPrincipal, input.ownerPrincipal) : true).filter((thread) => {
|
|
541
|
+
const on = input.activeOnComputer;
|
|
542
|
+
if (!on)
|
|
543
|
+
return true;
|
|
544
|
+
return thread.activeRunId !== null && thread.computer?.id === on.id && thread.computer.folder === on.folder;
|
|
545
|
+
}).filter((thread) => {
|
|
526
546
|
const participant = input.participantPrincipal;
|
|
527
547
|
if (!participant)
|
|
528
548
|
return true;
|
|
@@ -561,16 +581,32 @@ class InMemoryAgentThreadStore {
|
|
|
561
581
|
return true;
|
|
562
582
|
}
|
|
563
583
|
async assignComputer(input) {
|
|
564
|
-
|
|
584
|
+
assertAgentThreadComputer2(input.computer);
|
|
565
585
|
const threadKey = key(input.projectId, input.id);
|
|
566
586
|
const thread = this.state.threads.get(threadKey) ?? null;
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
587
|
+
const active = thread?.activeRunId ? this.state.runs.get(key(input.projectId, thread.activeRunId)) ?? null : null;
|
|
588
|
+
assertAssignableComputer2(thread, active, input.computer, input.id);
|
|
589
|
+
const assigned = {
|
|
590
|
+
...thread,
|
|
591
|
+
computer: clone(input.computer),
|
|
592
|
+
...movesComputerPlace2(thread, input.computer) ? { movedAt: new Date(input.movedAt ?? new Date) } : {}
|
|
593
|
+
};
|
|
571
594
|
this.state.threads.set(threadKey, assigned);
|
|
572
595
|
return clone(assigned);
|
|
573
596
|
}
|
|
597
|
+
async moveToCloud(input) {
|
|
598
|
+
const threadKey = key(input.projectId, input.id);
|
|
599
|
+
const thread = this.state.threads.get(threadKey) ?? null;
|
|
600
|
+
const active = thread?.activeRunId ? this.state.runs.get(key(input.projectId, thread.activeRunId)) ?? null : null;
|
|
601
|
+
assertMovableToCloud2(thread, active, input.id);
|
|
602
|
+
const queued = queuedTurnInCloud2(active);
|
|
603
|
+
if (queued)
|
|
604
|
+
this.state.runs.set(key(input.projectId, queued.id), queued);
|
|
605
|
+
const { runsOn: _runsOn, computer: _computer, ...rest } = thread;
|
|
606
|
+
const moved = { ...rest, movedAt: new Date(input.movedAt ?? new Date) };
|
|
607
|
+
this.state.threads.set(threadKey, moved);
|
|
608
|
+
return { thread: clone(moved), ...queued ? { queued: clone(queued) } : {} };
|
|
609
|
+
}
|
|
574
610
|
async listParticipants(input) {
|
|
575
611
|
return [...new Set(input.threadIds)].flatMap((threadId) => clone(this.participantsOf(input.projectId, threadId))).sort(compareAgentThreadParticipants2);
|
|
576
612
|
}
|
|
@@ -603,6 +639,7 @@ class InMemoryAgentRunStore {
|
|
|
603
639
|
if (thread.activeRunId !== null) {
|
|
604
640
|
throw new AgentStorageError2("active_run_exists", `[Sixb] Agent thread '${input.threadId}' already has an active run '${thread.activeRunId}'.`);
|
|
605
641
|
}
|
|
642
|
+
assertTurnInThreadPlace2(thread.runsOn, input.spec, input.threadId);
|
|
606
643
|
const runKey = key(input.projectId, input.id);
|
|
607
644
|
if (this.state.runs.has(runKey)) {
|
|
608
645
|
throw new AgentStorageError2("duplicate_id", `[Sixb] Agent run '${input.id}' already exists for project '${input.projectId}'.`);
|
|
@@ -726,6 +763,10 @@ class InMemoryAgentRunStore {
|
|
|
726
763
|
}
|
|
727
764
|
async start(input) {
|
|
728
765
|
const run = this.requireStatus(input.projectId, input.id, "queued");
|
|
766
|
+
if (input.onComputer) {
|
|
767
|
+
const thread = this.state.threads.get(key(input.projectId, run.threadId));
|
|
768
|
+
assertStartsOnComputer2(run, thread?.computer, input.onComputer);
|
|
769
|
+
}
|
|
729
770
|
const startedAt = new Date(input.startedAt ?? new Date);
|
|
730
771
|
const next = {
|
|
731
772
|
...run,
|
|
@@ -840,7 +881,7 @@ class InMemoryAgentRunStore {
|
|
|
840
881
|
const order = input.order ?? "desc";
|
|
841
882
|
const statuses = input.statuses ? new Set(input.statuses) : null;
|
|
842
883
|
const kinds = input.kinds ? new Set(input.kinds) : null;
|
|
843
|
-
const filtered = [...this.state.runs.values()].filter((run) => run.projectId === input.projectId).filter((run) => kinds ? kinds.has(run.kind) : true).filter((run) => input.threadId ? run.threadId === input.threadId : true).filter((run) => input.parentRunId ? run.kind === "subagent" && run.parentRunId === input.parentRunId : true).filter((run) => statuses ? statuses.has(run.status) : true).filter((run) => input.startedAfter ? (run.startedAt ?? run.createdAt) >= input.startedAfter : true).filter((run) => input.startedBefore ? (run.startedAt ?? run.createdAt) <= input.startedBefore : true).sort((a, b) => compareByDate(a.startedAt ?? a.createdAt, b.startedAt ?? b.createdAt, a.id, b.id, order));
|
|
884
|
+
const filtered = [...this.state.runs.values()].filter((run) => run.projectId === input.projectId).filter((run) => kinds ? kinds.has(run.kind) : true).filter((run) => input.threadId ? run.threadId === input.threadId : true).filter((run) => input.parentRunId ? run.kind === "subagent" && run.parentRunId === input.parentRunId : true).filter((run) => statuses ? statuses.has(run.status) : true).filter((run) => !input.excludeComputerTurns || run.kind !== "conversation" || run.spec?.runsOn !== "computer").filter((run) => input.startedAfter ? (run.startedAt ?? run.createdAt) >= input.startedAfter : true).filter((run) => input.startedBefore ? (run.startedAt ?? run.createdAt) <= input.startedBefore : true).sort((a, b) => compareByDate(a.startedAt ?? a.createdAt, b.startedAt ?? b.createdAt, a.id, b.id, order));
|
|
844
885
|
const { page, hasMore, total } = applyWindow(filtered, input.offset, input.limit);
|
|
845
886
|
return { runs: page.map(clone), hasMore, total };
|
|
846
887
|
}
|
|
@@ -1273,6 +1314,34 @@ function compareApprovals(left, right) {
|
|
|
1273
1314
|
return compareByDate(left.createdAt, right.createdAt, left.id, right.id, "asc");
|
|
1274
1315
|
}
|
|
1275
1316
|
|
|
1317
|
+
class InMemoryAgentComputerSessionStore {
|
|
1318
|
+
sessions = new Map;
|
|
1319
|
+
async hold(input) {
|
|
1320
|
+
assertAgentComputerSession2(input);
|
|
1321
|
+
this.sessions.set(sessionKey(input), clone(input));
|
|
1322
|
+
}
|
|
1323
|
+
async release(input) {
|
|
1324
|
+
const held = this.sessions.get(sessionKey(input)) ?? null;
|
|
1325
|
+
this.sessions.delete(sessionKey(input));
|
|
1326
|
+
return held && clone(held);
|
|
1327
|
+
}
|
|
1328
|
+
async listLive(input) {
|
|
1329
|
+
return [...this.sessions.values()].filter((session) => session.projectId === input.projectId && principalsEqual2(session.ownerPrincipal, input.ownerPrincipal) && session.expiresAt > input.now).map(clone);
|
|
1330
|
+
}
|
|
1331
|
+
async removeLapsed(input) {
|
|
1332
|
+
const lapsed = [...this.sessions.values()].filter((session) => session.projectId === input.projectId && session.expiresAt <= input.now);
|
|
1333
|
+
for (const session of lapsed)
|
|
1334
|
+
this.sessions.delete(sessionKey(session));
|
|
1335
|
+
return lapsed.map(clone);
|
|
1336
|
+
}
|
|
1337
|
+
}
|
|
1338
|
+
function sessionKey(input) {
|
|
1339
|
+
return JSON.stringify([input.projectId, principalKeyOf(input.ownerPrincipal), input.id]);
|
|
1340
|
+
}
|
|
1341
|
+
function principalKeyOf(principal) {
|
|
1342
|
+
return `${principal.type}:${principal.id}`;
|
|
1343
|
+
}
|
|
1344
|
+
|
|
1276
1345
|
class InMemoryAgentApprovalModeStore {
|
|
1277
1346
|
state;
|
|
1278
1347
|
constructor(state) {
|
|
@@ -1308,6 +1377,27 @@ function threadModeKey(input) {
|
|
|
1308
1377
|
return JSON.stringify([input.projectId, input.threadId, input.principal.type, input.principal.id]);
|
|
1309
1378
|
}
|
|
1310
1379
|
|
|
1380
|
+
class InMemoryAgentTokenRateStore {
|
|
1381
|
+
state;
|
|
1382
|
+
constructor(state) {
|
|
1383
|
+
this.state = state;
|
|
1384
|
+
}
|
|
1385
|
+
async record(input) {
|
|
1386
|
+
assertAgentTokenRateRecord2(input);
|
|
1387
|
+
this.state.tokenRates.set(JSON.stringify([input.projectId, input.runId]), { ...input });
|
|
1388
|
+
const dropped = this.ofModel(input).slice(AGENT_TOKEN_RATE_SAMPLES2);
|
|
1389
|
+
for (const record of dropped) {
|
|
1390
|
+
this.state.tokenRates.delete(JSON.stringify([record.projectId, record.runId]));
|
|
1391
|
+
}
|
|
1392
|
+
}
|
|
1393
|
+
async listLatest(input) {
|
|
1394
|
+
return this.ofModel(input).slice(0, AGENT_TOKEN_RATE_SAMPLES2).map((record) => ({ ...record }));
|
|
1395
|
+
}
|
|
1396
|
+
ofModel(model) {
|
|
1397
|
+
return [...this.state.tokenRates.values()].filter((record) => record.projectId === model.projectId && record.providerId === model.providerId && record.modelId === model.modelId).sort((left, right) => compareByDate(left.measuredAt, right.measuredAt, left.runId, right.runId, "desc"));
|
|
1398
|
+
}
|
|
1399
|
+
}
|
|
1400
|
+
|
|
1311
1401
|
class InMemoryAgentStorage2 {
|
|
1312
1402
|
state = {
|
|
1313
1403
|
threads: new Map,
|
|
@@ -1317,7 +1407,8 @@ class InMemoryAgentStorage2 {
|
|
|
1317
1407
|
checkpoints: new Map,
|
|
1318
1408
|
memory: new Map,
|
|
1319
1409
|
approvals: new Map,
|
|
1320
|
-
approvalModes: new Map
|
|
1410
|
+
approvalModes: new Map,
|
|
1411
|
+
tokenRates: new Map
|
|
1321
1412
|
};
|
|
1322
1413
|
threads;
|
|
1323
1414
|
runs;
|
|
@@ -1326,6 +1417,8 @@ class InMemoryAgentStorage2 {
|
|
|
1326
1417
|
memory;
|
|
1327
1418
|
approvals;
|
|
1328
1419
|
approvalModes;
|
|
1420
|
+
tokenRates;
|
|
1421
|
+
computers = new InMemoryAgentComputerSessionStore;
|
|
1329
1422
|
constructor(executions) {
|
|
1330
1423
|
this.threads = new InMemoryAgentThreadStore(this.state);
|
|
1331
1424
|
this.runs = new InMemoryAgentRunStore(this.state, executions);
|
|
@@ -1334,6 +1427,7 @@ class InMemoryAgentStorage2 {
|
|
|
1334
1427
|
this.memory = new InMemoryAgentMemoryStore(this.state);
|
|
1335
1428
|
this.approvals = new InMemoryAgentApprovalStore(this.state);
|
|
1336
1429
|
this.approvalModes = new InMemoryAgentApprovalModeStore(this.state);
|
|
1430
|
+
this.tokenRates = new InMemoryAgentTokenRateStore(this.state);
|
|
1337
1431
|
}
|
|
1338
1432
|
snapshot() {
|
|
1339
1433
|
return {
|
|
@@ -1344,7 +1438,8 @@ class InMemoryAgentStorage2 {
|
|
|
1344
1438
|
checkpoints: structuredClone(this.state.checkpoints),
|
|
1345
1439
|
memory: structuredClone(this.state.memory),
|
|
1346
1440
|
approvals: structuredClone(this.state.approvals),
|
|
1347
|
-
approvalModes: structuredClone(this.state.approvalModes)
|
|
1441
|
+
approvalModes: structuredClone(this.state.approvalModes),
|
|
1442
|
+
tokenRates: structuredClone(this.state.tokenRates)
|
|
1348
1443
|
};
|
|
1349
1444
|
}
|
|
1350
1445
|
restore(snapshot) {
|
|
@@ -1356,6 +1451,7 @@ class InMemoryAgentStorage2 {
|
|
|
1356
1451
|
replace(this.state.memory, snapshot.memory);
|
|
1357
1452
|
replace(this.state.approvals, snapshot.approvals);
|
|
1358
1453
|
replace(this.state.approvalModes, snapshot.approvalModes);
|
|
1454
|
+
replace(this.state.tokenRates, snapshot.tokenRates);
|
|
1359
1455
|
}
|
|
1360
1456
|
}
|
|
1361
1457
|
function replace(target, source) {
|
|
@@ -1451,14 +1547,14 @@ class InMemoryAiCostStorage2 {
|
|
|
1451
1547
|
async accountingItems() {
|
|
1452
1548
|
return Promise.all([...this.usage.snapshot().records.values()].map(async (usage) => {
|
|
1453
1549
|
const cost = this.recordsByUsage.get(usageRecordKey(usage.projectId, usage.id));
|
|
1454
|
-
const
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
});
|
|
1550
|
+
const execution = { projectId: usage.projectId, executionId: usage.executionId };
|
|
1551
|
+
const attribution = await this.attribution?.resolve(execution);
|
|
1552
|
+
const requester = await this.attribution?.requester?.(execution);
|
|
1458
1553
|
return {
|
|
1459
1554
|
usage,
|
|
1460
1555
|
...attribution ? { attribution } : {},
|
|
1461
|
-
...cost ? { cost } : {}
|
|
1556
|
+
...cost ? { cost } : {},
|
|
1557
|
+
...requester ? { requester } : {}
|
|
1462
1558
|
};
|
|
1463
1559
|
}));
|
|
1464
1560
|
}
|
|
@@ -3798,7 +3894,8 @@ function evaluateObjectQuery(query, source) {
|
|
|
3798
3894
|
case "traverse": {
|
|
3799
3895
|
const input = evaluateObjectQuery(query.input, source);
|
|
3800
3896
|
const entries = query.direction === "outgoing" ? traverseOutgoing(input.entries, query.linkId, source) : traverseIncoming(input.entries, query.linkId, query.sourceObjectTypeId, source);
|
|
3801
|
-
|
|
3897
|
+
const endpoints = linkEndpointObjectTypeIds2(query);
|
|
3898
|
+
return completeEvaluation(endpoints ? entries.filter((entry) => endpoints.includes(entry.row.objectTypeId)) : entries);
|
|
3802
3899
|
}
|
|
3803
3900
|
case "set":
|
|
3804
3901
|
return evaluateSet(query.op, query.inputs, source);
|
|
@@ -5102,8 +5199,11 @@ class InMemoryOntologyCommitStorage {
|
|
|
5102
5199
|
if (!Number.isSafeInteger(offset) || offset < 0 || !Number.isSafeInteger(limit) || limit < 0) {
|
|
5103
5200
|
throw new Error("[Sixb] Ontology commit list limit and offset must be nonnegative integers.");
|
|
5104
5201
|
}
|
|
5202
|
+
if (input.committedAt !== undefined) {
|
|
5203
|
+
assertTimestamp(input.committedAt, "Ontology commit list committedAt");
|
|
5204
|
+
}
|
|
5105
5205
|
const direction = input.order === "desc" ? -1 : 1;
|
|
5106
|
-
const commits = [...this.state.commitsById.values()].filter((commit) => commit.projectId === input.projectId).filter((commit) => input.run ? commitMatchesRun(commit, input.run) : true).sort((left, right) => {
|
|
5206
|
+
const commits = [...this.state.commitsById.values()].filter((commit) => commit.projectId === input.projectId).filter((commit) => input.run ? commitMatchesRun(commit, input.run) : true).filter((commit) => input.committedAt === undefined ? true : commit.committedAt === input.committedAt).sort((left, right) => {
|
|
5107
5207
|
if (input.run?.kind === "projection") {
|
|
5108
5208
|
const byOrdinal = projectionRunOrdinal(left) - projectionRunOrdinal(right);
|
|
5109
5209
|
if (byOrdinal !== 0)
|
|
@@ -6369,6 +6469,19 @@ class InMemoryOntologyMaterializationStorage {
|
|
|
6369
6469
|
}
|
|
6370
6470
|
}
|
|
6371
6471
|
}
|
|
6472
|
+
async readState(input) {
|
|
6473
|
+
const request = prepareMaterializationStateRead2(input);
|
|
6474
|
+
const objects = [];
|
|
6475
|
+
for (const ref of request.objects) {
|
|
6476
|
+
objects.push(await this.reader.objectState(request.projectId, ref));
|
|
6477
|
+
}
|
|
6478
|
+
const links = [];
|
|
6479
|
+
for (const ref of request.links) {
|
|
6480
|
+
links.push(await this.reader.linkState(request.projectId, ref));
|
|
6481
|
+
}
|
|
6482
|
+
const linkScopes = request.linkScopes.map((scope) => this.reader.linkSlotState(request.projectId, scope.source, scope.linkId));
|
|
6483
|
+
return { objects, links, linkScopes };
|
|
6484
|
+
}
|
|
6372
6485
|
async stageWork(input) {
|
|
6373
6486
|
const session = this.requireSession(input.session);
|
|
6374
6487
|
for (const { record, uniqueKey } of prepareMaterializationWork2(session, input)) {
|
|
@@ -7825,8 +7938,7 @@ class InMemoryPipelineRunStorage2 {
|
|
|
7825
7938
|
}
|
|
7826
7939
|
async finish(input) {
|
|
7827
7940
|
const existing = this.requireExistingPipelineRun(input.projectId, input.id);
|
|
7828
|
-
|
|
7829
|
-
if (enqueueFailure && existing.status !== "queued" || !enqueueFailure && existing.status !== "running") {
|
|
7941
|
+
if (!canFinishPipelineRun2(existing.status, input)) {
|
|
7830
7942
|
throw new PipelineRunError2(`[Sixb] Pipeline run '${input.id}' cannot finish from status '${existing.status}'.`);
|
|
7831
7943
|
}
|
|
7832
7944
|
const base = {
|
|
@@ -8556,8 +8668,7 @@ class InMemorySyncRunStorage2 {
|
|
|
8556
8668
|
if (!existing) {
|
|
8557
8669
|
throw new SyncRunError2(`[Sixb] Sync run '${input.id}' not found for project '${input.projectId}'.`);
|
|
8558
8670
|
}
|
|
8559
|
-
|
|
8560
|
-
if (enqueueFailure && existing.status !== "queued" || !enqueueFailure && existing.status !== "running") {
|
|
8671
|
+
if (!canFinishSyncRun2(existing.status, input)) {
|
|
8561
8672
|
throw new SyncRunError2(`[Sixb] Sync run '${input.id}' cannot finish from status '${existing.status}'.`);
|
|
8562
8673
|
}
|
|
8563
8674
|
if (input.status === "succeeded") {
|
|
@@ -9444,6 +9555,14 @@ class InMemoryStorage2 {
|
|
|
9444
9555
|
aiUsageStorage = new InMemoryAiUsageStorage2(this.executionStorage);
|
|
9445
9556
|
aiCostStorage = new InMemoryAiCostStorage2(this.aiUsageStorage, {
|
|
9446
9557
|
resolve: (input) => this.resolveAiAccountingAttribution(input),
|
|
9558
|
+
requester: async (input) => {
|
|
9559
|
+
const execution = await this.executionStorage.getById({
|
|
9560
|
+
projectId: input.projectId,
|
|
9561
|
+
id: input.executionId
|
|
9562
|
+
});
|
|
9563
|
+
const by = execution?.requestedBy;
|
|
9564
|
+
return by?.type === "user" || by?.type === "serviceAccount" ? { type: by.type, id: by.id } : undefined;
|
|
9565
|
+
},
|
|
9447
9566
|
resolveGroup: async (input) => {
|
|
9448
9567
|
const attribution = await this.resolveAiAccountingAttribution(input);
|
|
9449
9568
|
if (attribution?.kind !== "subagent")
|
|
@@ -9778,7 +9897,11 @@ async function prepareObjectQueries2(input) {
|
|
|
9778
9897
|
text: capabilities.text
|
|
9779
9898
|
};
|
|
9780
9899
|
}).filter((property) => property.filterable || property.sortable || property.text),
|
|
9781
|
-
indexes: type.query?.indexes ?? []
|
|
9900
|
+
indexes: type.query?.indexes ?? [],
|
|
9901
|
+
links: type.links.map((link) => ({
|
|
9902
|
+
linkId: link.id,
|
|
9903
|
+
targetObjectTypeIds: linkTargetObjectTypeIds(link.targetObjectTypeId, input.ontology)
|
|
9904
|
+
}))
|
|
9782
9905
|
}));
|
|
9783
9906
|
return input.storage.prepareObjectQueries({ projectId: input.projectId, objectTypes });
|
|
9784
9907
|
}
|
|
@@ -10105,4 +10228,4 @@ var VECTOR_INDEXING_FAILURE_CODES2 = [
|
|
|
10105
10228
|
];
|
|
10106
10229
|
export { InMemoryActionRunStorage2, AGENT_MESSAGE_CONTENT_VERSION2, InMemoryAgentStorage2, AiCostStorageError2, InMemoryAiCostStorage2, InMemoryAiLimitStorage2, InMemoryConnectorConnectionStorage2, InMemoryFileUploadSessions2, objectBatchKey2, linkBatchKey2, objectLinkCursor2, compareQueryScalarValues, matchesPredicate, PIPELINE_RUN_FAILURE_CODES2, InMemoryPipelineRunStorage2, InMemoryProjectionRunStorage2, InMemoryRulesStorage2, InMemoryShareGrantStorage2, InMemoryShareSessionStorage2, SYNC_RUN_FAILURE_CODES2, InMemorySyncRunStorage2, WEBHOOK_RUN_FAILURE_CODES2, canRetryWebhookRun2, InMemoryWebhookRunStorage2, WorkflowInterventionError2, InMemoryWorkflowInterventionStorage2, WORKFLOW_RUN_FAILURE_CODES2, InMemoryWorkflowRunStorage2, InMemoryWorkflowNodeRunStorage2, InMemoryWorkflowAgentNodeRunStorage2, InMemoryStorage2, prepareObjectQueries2, isMigrationCapableStorage2, migrateStorage2, checkStorageSchema2, step2, defineMigrations2, runMigrationSet2, describeMigrationHistory2, VECTOR_INDEXING_FAILURE_CODES2 };
|
|
10107
10230
|
|
|
10108
|
-
//# debugId=
|
|
10231
|
+
//# debugId=6329531EEFE0AEE564756E2164756E21
|