@sixb/core 0.1.7 → 0.1.8
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/delegated-admission.d.ts +24 -0
- package/dist/actions/delegated-admission.d.ts.map +1 -0
- package/dist/actions/descriptor.d.ts +29 -0
- package/dist/actions/descriptor.d.ts.map +1 -0
- package/dist/actions/execution.d.ts +5 -5
- package/dist/actions/execution.d.ts.map +1 -1
- package/dist/actions/index.js +36 -30
- package/dist/actions/index.js.map +1 -1
- package/dist/actions/request.d.ts.map +1 -1
- package/dist/actions/run-authorization.d.ts +20 -0
- package/dist/actions/run-authorization.d.ts.map +1 -0
- package/dist/actions/run-dispatch.d.ts +3 -1
- package/dist/actions/run-dispatch.d.ts.map +1 -1
- package/dist/actions/worker.js +3 -3
- package/dist/actions/worker.js.map +1 -1
- package/dist/agents/adapters.d.ts +5 -122
- package/dist/agents/adapters.d.ts.map +1 -1
- package/dist/agents/authority.d.ts +1 -1
- package/dist/agents/authority.d.ts.map +1 -1
- package/dist/agents/context-resolution.d.ts.map +1 -1
- package/dist/agents/context.js +1 -1
- package/dist/agents/errors.d.ts +0 -9
- package/dist/agents/errors.d.ts.map +1 -1
- package/dist/agents/execution.d.ts.map +1 -1
- package/dist/agents/identity.d.ts +3 -0
- package/dist/agents/identity.d.ts.map +1 -0
- package/dist/agents/index.d.ts +3 -3
- package/dist/agents/index.d.ts.map +1 -1
- package/dist/agents/index.js +43 -43
- package/dist/agents/index.js.map +1 -1
- package/dist/agents/message.d.ts +4 -5
- package/dist/agents/message.d.ts.map +1 -1
- package/dist/agents/model-loop.d.ts +2 -0
- package/dist/agents/model-loop.d.ts.map +1 -1
- package/dist/agents/request.d.ts.map +1 -1
- package/dist/agents/tool-definition.d.ts +0 -1
- package/dist/agents/tool-definition.d.ts.map +1 -1
- package/dist/agents/validation.d.ts +0 -4
- package/dist/agents/validation.d.ts.map +1 -1
- package/dist/ai-usage/execution.d.ts.map +1 -1
- package/dist/auth/index.js +8 -5
- package/dist/auth/index.js.map +1 -1
- package/dist/authorization/decision.d.ts +10 -2
- package/dist/authorization/decision.d.ts.map +1 -1
- package/dist/authorization/grant-kinds.d.ts +2 -1
- 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 -4
- package/dist/authorization/index.js.map +1 -1
- package/dist/bootstrap/discovery.d.ts +7 -1
- package/dist/bootstrap/discovery.d.ts.map +1 -1
- package/dist/bootstrap/index.js +46 -39
- package/dist/bootstrap/index.js.map +1 -1
- package/dist/bootstrap/ontology-type-manifest.d.ts.map +1 -1
- package/dist/chunk-19jp6g9d.js +131 -0
- package/dist/chunk-19jp6g9d.js.map +11 -0
- package/dist/{chunk-x0qhkqje.js → chunk-2dw777qw.js} +50 -5
- package/dist/{chunk-x0qhkqje.js.map → chunk-2dw777qw.js.map} +4 -3
- package/dist/chunk-359jm1jw.js +147 -0
- package/dist/chunk-359jm1jw.js.map +10 -0
- package/dist/{chunk-2b5qtban.js → chunk-3xep5cjx.js} +56 -21
- package/dist/chunk-3xep5cjx.js.map +15 -0
- package/dist/{chunk-qjycjdj6.js → chunk-3z1qec12.js} +6 -8
- package/dist/{chunk-qjycjdj6.js.map → chunk-3z1qec12.js.map} +2 -2
- package/dist/{chunk-5jcdmjam.js → chunk-4jjp5k14.js} +1 -1
- package/dist/{chunk-n2arzn6e.js → chunk-4qfkag59.js} +44 -221
- package/dist/chunk-4qfkag59.js.map +20 -0
- package/dist/{chunk-rre42skh.js → chunk-4sm0aznx.js} +515 -80
- package/dist/{chunk-rre42skh.js.map → chunk-4sm0aznx.js.map} +11 -7
- package/dist/chunk-4yqmp43v.js +159 -0
- package/dist/chunk-4yqmp43v.js.map +11 -0
- package/dist/{chunk-atmkaf60.js → chunk-5e3pq99w.js} +2 -6
- package/dist/{chunk-atmkaf60.js.map → chunk-5e3pq99w.js.map} +3 -3
- package/dist/{chunk-agsvg9ar.js → chunk-5ntny1qx.js} +1 -1
- package/dist/{chunk-z2sery1b.js → chunk-9nbmsvn5.js} +60 -20
- package/dist/chunk-9nbmsvn5.js.map +11 -0
- package/dist/{chunk-e4rvtvpw.js → chunk-aa2pen2v.js} +250 -78
- package/dist/chunk-aa2pen2v.js.map +34 -0
- package/dist/{chunk-64sr682n.js → chunk-ajnan18g.js} +11 -8
- package/dist/chunk-ajnan18g.js.map +12 -0
- package/dist/{chunk-9aehf39w.js → chunk-f26bck4t.js} +4 -4
- package/dist/{chunk-7ds9620f.js → chunk-fvt9rjsa.js} +23 -7
- package/dist/chunk-fvt9rjsa.js.map +10 -0
- package/dist/{chunk-kt81c11h.js → chunk-gbejpkex.js} +5 -5
- package/dist/{chunk-kt81c11h.js.map → chunk-gbejpkex.js.map} +1 -1
- package/dist/{chunk-vjjv9mrb.js → chunk-gzasd5b6.js} +5 -5
- package/dist/{chunk-vjjv9mrb.js.map → chunk-gzasd5b6.js.map} +3 -3
- package/dist/{chunk-d63tybny.js → chunk-h0k55pc7.js} +4 -4
- package/dist/{chunk-d63tybny.js.map → chunk-h0k55pc7.js.map} +1 -1
- package/dist/chunk-h5vqbfmd.js +1537 -0
- package/dist/chunk-h5vqbfmd.js.map +19 -0
- package/dist/{chunk-3kv70xwp.js → chunk-j1sbhm7p.js} +18 -2
- package/dist/chunk-j1sbhm7p.js.map +10 -0
- package/dist/{chunk-hdz94br2.js → chunk-k522z7v6.js} +10 -5
- package/dist/chunk-k522z7v6.js.map +10 -0
- package/dist/{chunk-wjgm6jjt.js → chunk-mth82m8t.js} +128 -94
- package/dist/chunk-mth82m8t.js.map +14 -0
- package/dist/{chunk-qv38twt8.js → chunk-mwsxn98e.js} +46 -25
- package/dist/{chunk-qv38twt8.js.map → chunk-mwsxn98e.js.map} +6 -6
- package/dist/chunk-n4khvw9n.js +111 -0
- package/dist/chunk-n4khvw9n.js.map +11 -0
- package/dist/{chunk-qjzp9xyb.js → chunk-nn0tekr1.js} +6 -8
- package/dist/chunk-nn0tekr1.js.map +12 -0
- package/dist/chunk-nx7k8tpr.js +436 -0
- package/dist/chunk-nx7k8tpr.js.map +12 -0
- package/dist/{chunk-08twe8m6.js → chunk-p1rzczbt.js} +1 -1
- package/dist/{chunk-37wk412q.js → chunk-p1x242ad.js} +587 -70
- package/dist/chunk-p1x242ad.js.map +25 -0
- package/dist/{chunk-tn7xcs2n.js → chunk-pc7ys28c.js} +68 -5
- package/dist/chunk-pc7ys28c.js.map +14 -0
- package/dist/{chunk-3fqt22c4.js → chunk-q0k9nc5a.js} +280 -88
- package/dist/chunk-q0k9nc5a.js.map +14 -0
- package/dist/chunk-r8jrnexe.js +403 -0
- package/dist/chunk-r8jrnexe.js.map +10 -0
- package/dist/{chunk-gbrpsx4m.js → chunk-rafagrwr.js} +30 -2
- package/dist/chunk-rafagrwr.js.map +11 -0
- package/dist/{chunk-xdpwpkha.js → chunk-rv2hkwwa.js} +1 -1
- package/dist/{chunk-6ed5bwnd.js → chunk-sbzzr4kx.js} +1203 -691
- package/dist/{chunk-6ed5bwnd.js.map → chunk-sbzzr4kx.js.map} +15 -9
- package/dist/{chunk-d2ndstdf.js → chunk-v1xppd0y.js} +13 -11
- package/dist/{chunk-d2ndstdf.js.map → chunk-v1xppd0y.js.map} +2 -2
- package/dist/chunk-v4en4jc2.js +252 -0
- package/dist/chunk-v4en4jc2.js.map +10 -0
- package/dist/{chunk-1kamz6j0.js → chunk-w1tvjszy.js} +1 -1
- package/dist/{chunk-rp1mvzb4.js → chunk-w9tg6yyb.js} +11 -6
- package/dist/{chunk-rp1mvzb4.js.map → chunk-w9tg6yyb.js.map} +3 -3
- package/dist/{chunk-4nxeacx7.js → chunk-wdage1eb.js} +1 -1
- package/dist/{chunk-ha58tjtt.js → chunk-wtf06et8.js} +9 -5
- package/dist/{chunk-ha58tjtt.js.map → chunk-wtf06et8.js.map} +3 -3
- package/dist/{chunk-h0knpbz5.js → chunk-xajtptbw.js} +782 -211
- package/dist/chunk-xajtptbw.js.map +40 -0
- package/dist/{chunk-xc7hq65b.js → chunk-yp8ee62z.js} +49 -2
- package/dist/chunk-yp8ee62z.js.map +11 -0
- package/dist/chunk-z4ccwbkz.js +139 -0
- package/dist/chunk-z4ccwbkz.js.map +10 -0
- package/dist/datasets/builders.d.ts +11 -2
- package/dist/datasets/builders.d.ts.map +1 -1
- package/dist/datasets/changes.d.ts +14 -4
- package/dist/datasets/changes.d.ts.map +1 -1
- package/dist/datasets/execution.d.ts +15 -1
- package/dist/datasets/execution.d.ts.map +1 -1
- package/dist/datasets/index.d.ts +1 -0
- package/dist/datasets/index.d.ts.map +1 -1
- package/dist/datasets/sequence.d.ts +7 -0
- package/dist/datasets/sequence.d.ts.map +1 -0
- package/dist/datasets/types.d.ts +1 -0
- package/dist/datasets/types.d.ts.map +1 -1
- package/dist/datasets/validation.d.ts.map +1 -1
- package/dist/datasets/write.d.ts +37 -0
- package/dist/datasets/write.d.ts.map +1 -0
- package/dist/datasets/write.js +17 -0
- package/dist/datasets/write.js.map +9 -0
- package/dist/events/execution.d.ts.map +1 -1
- package/dist/events/types/datasets.d.ts +2 -6
- package/dist/events/types/datasets.d.ts.map +1 -1
- package/dist/execution/agent.d.ts.map +1 -1
- package/dist/execution/agent.js +39 -32
- package/dist/execution/agent.js.map +1 -1
- package/dist/execution/authorization.d.ts +58 -20
- package/dist/execution/authorization.d.ts.map +1 -1
- package/dist/execution/authorized-object-reader.d.ts +69 -0
- package/dist/execution/authorized-object-reader.d.ts.map +1 -0
- package/dist/execution/durable.d.ts.map +1 -1
- package/dist/execution/index.d.ts +1 -1
- package/dist/execution/index.d.ts.map +1 -1
- package/dist/execution/primitive.js +39 -32
- package/dist/execution/primitive.js.map +2 -2
- package/dist/execution/request.d.ts +11 -0
- package/dist/execution/request.d.ts.map +1 -1
- package/dist/execution/request.js +76 -40
- package/dist/execution/request.js.map +3 -3
- package/dist/execution/scopes.d.ts +16 -0
- package/dist/execution/scopes.d.ts.map +1 -1
- package/dist/execution/types.d.ts +9 -0
- package/dist/execution/types.d.ts.map +1 -1
- package/dist/http/api-routes.d.ts +2 -0
- package/dist/http/api-routes.d.ts.map +1 -1
- package/dist/http/index.js +1 -1
- package/dist/index.d.ts +8 -5
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +92 -78
- package/dist/index.js.map +1 -1
- package/dist/lake-storage/definition-updates.d.ts.map +1 -1
- package/dist/lake-storage/errors.d.ts +5 -1
- package/dist/lake-storage/errors.d.ts.map +1 -1
- package/dist/lake-storage/in-memory.d.ts +1 -0
- package/dist/lake-storage/in-memory.d.ts.map +1 -1
- package/dist/lake-storage/index.d.ts +6 -1
- package/dist/lake-storage/index.d.ts.map +1 -1
- package/dist/lake-storage/index.js +24 -7
- package/dist/lake-storage/index.js.map +1 -1
- package/dist/lake-storage/merge-validation.d.ts.map +1 -1
- package/dist/lake-storage/merge.d.ts +13 -2
- package/dist/lake-storage/merge.d.ts.map +1 -1
- package/dist/lake-storage/source-ordering.d.ts +19 -0
- package/dist/lake-storage/source-ordering.d.ts.map +1 -0
- package/dist/lake-storage/sql-transforms.d.ts +2 -1
- package/dist/lake-storage/sql-transforms.d.ts.map +1 -1
- package/dist/lake-storage/types.d.ts +10 -5
- package/dist/lake-storage/types.d.ts.map +1 -1
- package/dist/lake-storage/version-inputs.d.ts +4 -0
- package/dist/lake-storage/version-inputs.d.ts.map +1 -0
- package/dist/materializer/index.js +25 -22
- package/dist/materializer/index.js.map +1 -1
- package/dist/objects/authorized-ontology-view.d.ts +25 -0
- package/dist/objects/authorized-ontology-view.d.ts.map +1 -0
- package/dist/objects/execution.d.ts +1 -1
- package/dist/objects/execution.d.ts.map +1 -1
- package/dist/objects/index.js +29 -26
- package/dist/objects/index.js.map +1 -1
- package/dist/objects/link/authorization.d.ts +2 -7
- package/dist/objects/link/authorization.d.ts.map +1 -1
- package/dist/objects/query/executor.d.ts +4 -2
- package/dist/objects/query/executor.d.ts.map +1 -1
- package/dist/objects/query/index.js +24 -21
- package/dist/objects/query/index.js.map +1 -1
- package/dist/objects/query/links.d.ts +22 -1
- package/dist/objects/query/links.d.ts.map +1 -1
- package/dist/objects/query/selected-read-admission.d.ts +27 -0
- package/dist/objects/query/selected-read-admission.d.ts.map +1 -0
- package/dist/objects/query/validate.d.ts +60 -2
- package/dist/objects/query/validate.d.ts.map +1 -1
- package/dist/objects/sdk/object-handle.d.ts.map +1 -1
- package/dist/objects/sdk/object-set.d.ts.map +1 -1
- package/dist/objects/sdk/runtime-query-executor.d.ts +2 -7
- package/dist/objects/sdk/runtime-query-executor.d.ts.map +1 -1
- package/dist/objects/sdk/telemetry-channel.d.ts.map +1 -1
- package/dist/objects/service/list-service.d.ts +2 -3
- package/dist/objects/service/list-service.d.ts.map +1 -1
- package/dist/objects/telemetry/history.d.ts +8 -6
- package/dist/objects/telemetry/history.d.ts.map +1 -1
- package/dist/objects/telemetry/index.d.ts +2 -2
- package/dist/objects/telemetry/index.d.ts.map +1 -1
- package/dist/objects/telemetry/workload.d.ts +11 -0
- package/dist/objects/telemetry/workload.d.ts.map +1 -0
- package/dist/ontology/index.d.ts +2 -1
- package/dist/ontology/index.d.ts.map +1 -1
- package/dist/ontology/index.js +13 -12
- package/dist/ontology/index.js.map +1 -1
- package/dist/ontology/inference/index.d.ts +2 -1
- package/dist/ontology/inference/index.d.ts.map +1 -1
- package/dist/ontology/internal.d.ts +0 -1
- package/dist/ontology/internal.d.ts.map +1 -1
- package/dist/ontology/internal.js +5 -10
- package/dist/ontology/internal.js.map +3 -3
- package/dist/ontology/json-schema.d.ts +10 -6
- package/dist/ontology/json-schema.d.ts.map +1 -1
- package/dist/ontology/link-path-selection.d.ts +35 -0
- package/dist/ontology/link-path-selection.d.ts.map +1 -0
- package/dist/ontology/refs.d.ts +2 -0
- package/dist/ontology/refs.d.ts.map +1 -1
- package/dist/ontology/tokens.d.ts +2 -1
- package/dist/ontology/tokens.d.ts.map +1 -1
- package/dist/pipelines/execution.d.ts.map +1 -1
- package/dist/pipelines/index.js +27 -24
- package/dist/pipelines/index.js.map +1 -1
- package/dist/pipelines/request.d.ts.map +1 -1
- package/dist/projections/execution.d.ts.map +1 -1
- package/dist/projections/internal.js +25 -22
- package/dist/projections/internal.js.map +1 -1
- package/dist/projections/run-dispatch.d.ts.map +1 -1
- package/dist/rules/execution.d.ts.map +1 -1
- package/dist/runtime/create.d.ts +4 -1
- package/dist/runtime/create.d.ts.map +1 -1
- package/dist/runtime/definitions.d.ts +2 -0
- package/dist/runtime/definitions.d.ts.map +1 -1
- package/dist/runtime/host.d.ts +2 -0
- package/dist/runtime/host.d.ts.map +1 -1
- package/dist/runtime/internal.d.ts +1 -0
- package/dist/runtime/internal.d.ts.map +1 -1
- package/dist/runtime/resolve-definitions.d.ts +2 -0
- package/dist/runtime/resolve-definitions.d.ts.map +1 -1
- package/dist/runtime/sixb.d.ts +4 -0
- package/dist/runtime/sixb.d.ts.map +1 -1
- package/dist/runtime/types.d.ts +3 -0
- package/dist/runtime/types.d.ts.map +1 -1
- package/dist/schedules/execution.d.ts +2 -1
- package/dist/schedules/execution.d.ts.map +1 -1
- package/dist/security/every.d.ts +4 -1
- package/dist/security/every.d.ts.map +1 -1
- package/dist/security/grants.d.ts +7 -2
- package/dist/security/grants.d.ts.map +1 -1
- package/dist/security/index.d.ts +1 -1
- package/dist/security/index.d.ts.map +1 -1
- package/dist/security/registry.d.ts +1 -0
- package/dist/security/registry.d.ts.map +1 -1
- package/dist/security/types.d.ts +7 -1
- package/dist/security/types.d.ts.map +1 -1
- package/dist/security/validation.d.ts +2 -0
- package/dist/security/validation.d.ts.map +1 -1
- package/dist/shares/access-plan.d.ts +22 -0
- package/dist/shares/access-plan.d.ts.map +1 -0
- package/dist/shares/builders.d.ts +14 -0
- package/dist/shares/builders.d.ts.map +1 -0
- package/dist/shares/compiler.d.ts +14 -0
- package/dist/shares/compiler.d.ts.map +1 -0
- package/dist/shares/errors.d.ts +4 -0
- package/dist/shares/errors.d.ts.map +1 -0
- package/dist/shares/execution.d.ts +57 -0
- package/dist/shares/execution.d.ts.map +1 -0
- package/dist/shares/index.d.ts +10 -0
- package/dist/shares/index.d.ts.map +1 -0
- package/dist/shares/internal.d.ts +3 -0
- package/dist/shares/internal.d.ts.map +1 -0
- package/dist/shares/internal.js +239 -0
- package/dist/shares/internal.js.map +10 -0
- package/dist/shares/intersection.d.ts +9 -0
- package/dist/shares/intersection.d.ts.map +1 -0
- package/dist/shares/session-protocol.d.ts +41 -0
- package/dist/shares/session-protocol.d.ts.map +1 -0
- package/dist/shares/types.d.ts +51 -0
- package/dist/shares/types.d.ts.map +1 -0
- package/dist/shares/validation.d.ts +11 -0
- package/dist/shares/validation.d.ts.map +1 -0
- package/dist/storage/action-runs/provider.js +2 -2
- package/dist/storage/agents/provider.js +2 -2
- package/dist/storage/executions/in-memory.d.ts +3 -0
- package/dist/storage/executions/in-memory.d.ts.map +1 -1
- package/dist/storage/executions/provider.d.ts +4 -1
- package/dist/storage/executions/provider.d.ts.map +1 -1
- package/dist/storage/executions/provider.js +23 -3
- package/dist/storage/executions/provider.js.map +3 -3
- package/dist/storage/executions/run-link.d.ts +7 -0
- package/dist/storage/executions/run-link.d.ts.map +1 -1
- package/dist/storage/executions/validation.d.ts +6 -0
- package/dist/storage/executions/validation.d.ts.map +1 -1
- package/dist/storage/in-memory/index.d.ts +8 -0
- package/dist/storage/in-memory/index.d.ts.map +1 -1
- package/dist/storage/index.d.ts +8 -2
- package/dist/storage/index.d.ts.map +1 -1
- package/dist/storage/index.js +65 -36
- package/dist/storage/index.js.map +1 -1
- package/dist/storage/objects/execution-limits.d.ts +25 -0
- package/dist/storage/objects/execution-limits.d.ts.map +1 -0
- package/dist/storage/objects/guard.d.ts +16 -0
- package/dist/storage/objects/guard.d.ts.map +1 -0
- package/dist/storage/objects/in-memory/index.d.ts +3 -0
- package/dist/storage/objects/in-memory/index.d.ts.map +1 -0
- package/dist/storage/objects/in-memory/keys.d.ts +10 -0
- package/dist/storage/objects/in-memory/keys.d.ts.map +1 -0
- package/dist/storage/objects/in-memory/query.d.ts +31 -0
- package/dist/storage/objects/in-memory/query.d.ts.map +1 -0
- package/dist/storage/objects/in-memory/read-scope.d.ts +18 -0
- package/dist/storage/objects/in-memory/read-scope.d.ts.map +1 -0
- package/dist/storage/objects/in-memory/read-source.d.ts +10 -0
- package/dist/storage/objects/in-memory/read-source.d.ts.map +1 -0
- package/dist/storage/objects/in-memory/selected-reader.d.ts +9 -0
- package/dist/storage/objects/in-memory/selected-reader.d.ts.map +1 -0
- package/dist/storage/objects/{in-memory.d.ts → in-memory/storage.d.ts} +13 -10
- package/dist/storage/objects/in-memory/storage.d.ts.map +1 -0
- package/dist/storage/objects/index.d.ts +4 -1
- package/dist/storage/objects/index.d.ts.map +1 -1
- package/dist/storage/objects/keys.d.ts +1 -1
- package/dist/storage/objects/keys.d.ts.map +1 -1
- package/dist/storage/objects/read-scope.d.ts +25 -0
- package/dist/storage/objects/read-scope.d.ts.map +1 -0
- package/dist/storage/objects/types.d.ts +114 -22
- package/dist/storage/objects/types.d.ts.map +1 -1
- package/dist/storage/operation-scope.d.ts +3 -0
- package/dist/storage/operation-scope.d.ts.map +1 -1
- package/dist/storage/operation-scope.js +4 -2
- package/dist/storage/operation-scope.js.map +1 -1
- package/dist/storage/pipeline-runs/provider.js +2 -2
- package/dist/storage/projection-runs/provider.js +2 -2
- package/dist/storage/share-grants/errors.d.ts +8 -0
- package/dist/storage/share-grants/errors.d.ts.map +1 -0
- package/dist/storage/share-grants/in-memory.d.ts +11 -0
- package/dist/storage/share-grants/in-memory.d.ts.map +1 -0
- package/dist/storage/share-grants/index.d.ts +5 -0
- package/dist/storage/share-grants/index.d.ts.map +1 -0
- package/dist/storage/share-grants/provider.d.ts +4 -0
- package/dist/storage/share-grants/provider.d.ts.map +1 -0
- package/dist/storage/share-grants/provider.js +24 -0
- package/dist/storage/share-grants/provider.js.map +9 -0
- package/dist/storage/share-grants/record.d.ts +11 -0
- package/dist/storage/share-grants/record.d.ts.map +1 -0
- package/dist/storage/share-grants/types.d.ts +97 -0
- package/dist/storage/share-grants/types.d.ts.map +1 -0
- package/dist/storage/share-sessions/errors.d.ts +8 -0
- package/dist/storage/share-sessions/errors.d.ts.map +1 -0
- package/dist/storage/share-sessions/in-memory.d.ts +14 -0
- package/dist/storage/share-sessions/in-memory.d.ts.map +1 -0
- package/dist/storage/share-sessions/index.d.ts +5 -0
- package/dist/storage/share-sessions/index.d.ts.map +1 -0
- package/dist/storage/share-sessions/provider.d.ts +3 -0
- package/dist/storage/share-sessions/provider.d.ts.map +1 -0
- package/dist/storage/share-sessions/provider.js +20 -0
- package/dist/storage/share-sessions/provider.js.map +9 -0
- package/dist/storage/share-sessions/record.d.ts +8 -0
- package/dist/storage/share-sessions/record.d.ts.map +1 -0
- package/dist/storage/share-sessions/types.d.ts +50 -0
- package/dist/storage/share-sessions/types.d.ts.map +1 -0
- package/dist/storage/sync-runs/provider.js +2 -2
- package/dist/storage/transaction.d.ts +2 -1
- package/dist/storage/transaction.d.ts.map +1 -1
- package/dist/storage/types.d.ts +8 -0
- package/dist/storage/types.d.ts.map +1 -1
- package/dist/storage/webhook-runs/provider.js +2 -2
- package/dist/storage/workflow-runs/provider.js +10 -7
- package/dist/storage/workflow-runs/provider.js.map +1 -1
- package/dist/syncs/execution.d.ts.map +1 -1
- package/dist/syncs/index.js +27 -24
- package/dist/syncs/index.js.map +1 -1
- package/dist/syncs/request.d.ts.map +1 -1
- package/dist/testing/dataset-sequence-contract.d.ts +4 -0
- package/dist/testing/dataset-sequence-contract.d.ts.map +1 -0
- package/dist/testing/effective-storage-contract.d.ts.map +1 -1
- package/dist/testing/execution-storage-contract.d.ts +4 -0
- package/dist/testing/execution-storage-contract.d.ts.map +1 -1
- package/dist/testing/index.d.ts +3 -0
- package/dist/testing/index.d.ts.map +1 -1
- package/dist/testing/index.js +2555 -908
- package/dist/testing/index.js.map +11 -7
- package/dist/testing/lake-merge-storage-contract.d.ts +1 -0
- package/dist/testing/lake-merge-storage-contract.d.ts.map +1 -1
- package/dist/testing/lake-storage-contract.d.ts.map +1 -1
- package/dist/testing/object-read-scope-contract.d.ts +22 -0
- package/dist/testing/object-read-scope-contract.d.ts.map +1 -0
- package/dist/testing/share-grant-storage-contract.d.ts +10 -0
- package/dist/testing/share-grant-storage-contract.d.ts.map +1 -0
- package/dist/testing/share-session-storage-contract.d.ts +9 -0
- package/dist/testing/share-session-storage-contract.d.ts.map +1 -0
- package/dist/webhooks/internal.js +24 -21
- package/dist/webhooks/internal.js.map +2 -2
- package/dist/workflows/execution.d.ts.map +1 -1
- package/dist/workflows/index.js +42 -35
- package/dist/workflows/index.js.map +1 -1
- package/dist/workflows/request.d.ts.map +1 -1
- package/package.json +25 -1
- package/src/actions/delegated-admission.ts +72 -0
- package/src/actions/descriptor.ts +58 -0
- package/src/actions/execution.ts +99 -24
- package/src/actions/request.ts +136 -19
- package/src/actions/run-authorization.ts +53 -0
- package/src/actions/run-dispatch.ts +8 -1
- package/src/agents/adapters.ts +30 -420
- package/src/agents/authority.ts +3 -4
- package/src/agents/context-resolution.ts +1 -4
- package/src/agents/errors.ts +0 -10
- package/src/agents/execution.ts +13 -5
- package/src/agents/identity.ts +4 -0
- package/src/agents/index.ts +1 -20
- package/src/agents/message.ts +4 -5
- package/src/agents/model-loop.ts +54 -6
- package/src/agents/request.ts +16 -3
- package/src/agents/tool-definition.ts +0 -19
- package/src/agents/validation.ts +6 -65
- package/src/ai-usage/execution.ts +4 -11
- package/src/authorization/decision.ts +29 -14
- package/src/authorization/grant-kinds.ts +10 -0
- package/src/authorization/index.ts +1 -0
- package/src/bootstrap/discovery.ts +3 -0
- package/src/bootstrap/ontology-type-manifest.ts +12 -6
- package/src/datasets/builders.ts +23 -2
- package/src/datasets/changes.ts +16 -4
- package/src/datasets/execution.ts +76 -5
- package/src/datasets/index.ts +1 -0
- package/src/datasets/sequence.ts +77 -0
- package/src/datasets/types.ts +1 -0
- package/src/datasets/validation.ts +26 -0
- package/src/datasets/write.ts +240 -0
- package/src/events/execution.ts +57 -7
- package/src/events/types/datasets.ts +2 -6
- package/src/execution/agent.ts +1 -4
- package/src/execution/authorization.ts +470 -90
- package/src/execution/authorized-object-reader.ts +695 -0
- package/src/execution/durable.ts +10 -2
- package/src/execution/index.ts +1 -0
- package/src/execution/request.ts +63 -13
- package/src/execution/scopes.ts +36 -6
- package/src/execution/types.ts +8 -0
- package/src/http/api-routes.ts +45 -0
- package/src/index.ts +36 -15
- package/src/lake-storage/definition-updates.ts +9 -0
- package/src/lake-storage/errors.ts +6 -1
- package/src/lake-storage/in-memory.ts +53 -17
- package/src/lake-storage/index.ts +10 -1
- package/src/lake-storage/merge-validation.ts +12 -2
- package/src/lake-storage/merge.ts +40 -2
- package/src/lake-storage/source-ordering.ts +95 -0
- package/src/lake-storage/sql-transforms.ts +2 -1
- package/src/lake-storage/types.ts +10 -5
- package/src/lake-storage/version-inputs.ts +14 -0
- package/src/objects/authorized-ontology-view.ts +512 -0
- package/src/objects/execution.ts +98 -143
- package/src/objects/link/authorization.ts +3 -2
- package/src/objects/query/executor.ts +45 -34
- package/src/objects/query/links.ts +84 -25
- package/src/objects/query/selected-read-admission.ts +310 -0
- package/src/objects/query/validate.ts +353 -36
- package/src/objects/sdk/object-handle.ts +2 -8
- package/src/objects/sdk/object-set.ts +10 -11
- package/src/objects/sdk/runtime-query-executor.ts +8 -28
- package/src/objects/sdk/telemetry-channel.ts +11 -7
- package/src/objects/service/list-service.ts +15 -29
- package/src/objects/telemetry/history.ts +297 -17
- package/src/objects/telemetry/index.ts +2 -2
- package/src/objects/telemetry/workload.ts +79 -0
- package/src/ontology/index.ts +7 -1
- package/src/ontology/inference/index.ts +4 -1
- package/src/ontology/internal.ts +0 -1
- package/src/ontology/json-schema.ts +13 -12
- package/src/ontology/link-path-selection.ts +193 -0
- package/src/ontology/refs.ts +19 -0
- package/src/ontology/tokens.ts +15 -8
- package/src/pipelines/execution.ts +30 -7
- package/src/pipelines/request.ts +5 -0
- package/src/projections/execution.ts +72 -11
- package/src/projections/run-dispatch.ts +6 -12
- package/src/rules/execution.ts +20 -8
- package/src/runtime/create.ts +5 -1
- package/src/runtime/definitions.ts +2 -0
- package/src/runtime/host.ts +25 -6
- package/src/runtime/internal.ts +1 -0
- package/src/runtime/resolve-definitions.ts +9 -0
- package/src/runtime/sixb.ts +23 -2
- package/src/runtime/types.ts +3 -0
- package/src/schedules/execution.ts +24 -2
- package/src/security/every.ts +4 -0
- package/src/security/grants.ts +45 -3
- package/src/security/index.ts +1 -0
- package/src/security/registry.ts +3 -0
- package/src/security/types.ts +8 -0
- package/src/security/validation.ts +3 -0
- package/src/shares/access-plan.ts +225 -0
- package/src/shares/builders.ts +381 -0
- package/src/shares/compiler.ts +359 -0
- package/src/shares/errors.ts +3 -0
- package/src/shares/execution.ts +394 -0
- package/src/shares/index.ts +28 -0
- package/src/shares/internal.ts +9 -0
- package/src/shares/intersection.ts +178 -0
- package/src/shares/session-protocol.ts +258 -0
- package/src/shares/types.ts +76 -0
- package/src/shares/validation.ts +40 -0
- package/src/storage/executions/in-memory.ts +9 -1
- package/src/storage/executions/provider.ts +30 -1
- package/src/storage/executions/run-link.ts +29 -0
- package/src/storage/executions/validation.ts +46 -1
- package/src/storage/in-memory/index.ts +21 -2
- package/src/storage/index.ts +51 -0
- package/src/storage/objects/execution-limits.ts +283 -0
- package/src/storage/objects/guard.ts +55 -0
- package/src/storage/objects/in-memory/index.ts +2 -0
- package/src/storage/objects/in-memory/keys.ts +46 -0
- package/src/storage/objects/in-memory/query.ts +754 -0
- package/src/storage/objects/in-memory/read-scope.ts +211 -0
- package/src/storage/objects/in-memory/read-source.ts +10 -0
- package/src/storage/objects/in-memory/selected-reader.ts +252 -0
- package/src/storage/objects/in-memory/storage.ts +589 -0
- package/src/storage/objects/index.ts +21 -0
- package/src/storage/objects/keys.ts +1 -1
- package/src/storage/objects/read-scope.ts +672 -0
- package/src/storage/objects/types.ts +123 -19
- package/src/storage/operation-scope.ts +16 -0
- package/src/storage/share-grants/errors.ts +14 -0
- package/src/storage/share-grants/in-memory.ts +107 -0
- package/src/storage/share-grants/index.ts +14 -0
- package/src/storage/share-grants/provider.ts +11 -0
- package/src/storage/share-grants/record.ts +347 -0
- package/src/storage/share-grants/types.ts +112 -0
- package/src/storage/share-sessions/errors.ts +14 -0
- package/src/storage/share-sessions/in-memory.ts +105 -0
- package/src/storage/share-sessions/index.ts +11 -0
- package/src/storage/share-sessions/provider.ts +9 -0
- package/src/storage/share-sessions/record.ts +176 -0
- package/src/storage/share-sessions/types.ts +57 -0
- package/src/storage/transaction.ts +14 -2
- package/src/storage/types.ts +27 -0
- package/src/syncs/execution.ts +25 -5
- package/src/syncs/request.ts +5 -0
- package/src/testing/dataset-sequence-contract.ts +373 -0
- package/src/testing/effective-storage-contract.ts +34 -0
- package/src/testing/execution-storage-contract.ts +79 -0
- package/src/testing/index.ts +16 -0
- package/src/testing/lake-merge-storage-contract.ts +3 -0
- package/src/testing/lake-storage-contract.ts +58 -0
- package/src/testing/object-read-scope-contract.ts +939 -0
- package/src/testing/share-grant-storage-contract.ts +325 -0
- package/src/testing/share-session-storage-contract.ts +235 -0
- package/src/workflows/execution.ts +53 -14
- package/src/workflows/request.ts +5 -0
- package/dist/chunk-2b5qtban.js.map +0 -14
- package/dist/chunk-37wk412q.js.map +0 -23
- package/dist/chunk-3fqt22c4.js.map +0 -14
- package/dist/chunk-3kv70xwp.js.map +0 -10
- package/dist/chunk-64sr682n.js.map +0 -12
- package/dist/chunk-7ds9620f.js.map +0 -10
- package/dist/chunk-dqn23610.js +0 -72
- package/dist/chunk-dqn23610.js.map +0 -11
- package/dist/chunk-e4rvtvpw.js.map +0 -34
- package/dist/chunk-gbrpsx4m.js.map +0 -11
- package/dist/chunk-h0knpbz5.js.map +0 -38
- package/dist/chunk-hdz94br2.js.map +0 -10
- package/dist/chunk-n2arzn6e.js.map +0 -20
- package/dist/chunk-qjzp9xyb.js.map +0 -12
- package/dist/chunk-tn7xcs2n.js.map +0 -13
- package/dist/chunk-wjgm6jjt.js.map +0 -13
- package/dist/chunk-xc7hq65b.js.map +0 -10
- package/dist/chunk-y35ma3mj.js +0 -551
- package/dist/chunk-y35ma3mj.js.map +0 -15
- package/dist/chunk-z2sery1b.js.map +0 -11
- package/dist/storage/objects/in-memory.d.ts.map +0 -1
- package/src/storage/objects/in-memory.ts +0 -1241
- /package/dist/{chunk-5jcdmjam.js.map → chunk-4jjp5k14.js.map} +0 -0
- /package/dist/{chunk-agsvg9ar.js.map → chunk-5ntny1qx.js.map} +0 -0
- /package/dist/{chunk-9aehf39w.js.map → chunk-f26bck4t.js.map} +0 -0
- /package/dist/{chunk-08twe8m6.js.map → chunk-p1rzczbt.js.map} +0 -0
- /package/dist/{chunk-xdpwpkha.js.map → chunk-rv2hkwwa.js.map} +0 -0
- /package/dist/{chunk-1kamz6j0.js.map → chunk-w1tvjszy.js.map} +0 -0
- /package/dist/{chunk-4nxeacx7.js.map → chunk-wdage1eb.js.map} +0 -0
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { ResolvedRuntimeAuthorization } from "../execution/authorization";
|
|
2
|
+
import { type AuthorizedObjectReader } from "../execution/authorized-object-reader";
|
|
3
|
+
import type { ExecutionContext, RuntimeAuthorization } from "../execution/types";
|
|
4
|
+
import type { ActionDefinition, ActionObjectSubject, ActionSubject } from "./types";
|
|
5
|
+
type DelegatedAuthorization = Extract<ResolvedRuntimeAuthorization, {
|
|
6
|
+
readonly type: "delegated";
|
|
7
|
+
}>;
|
|
8
|
+
/** Reject ungranted tuples before Action lookup can become a metadata oracle. */
|
|
9
|
+
export declare function assertDelegatedActionTarget(input: {
|
|
10
|
+
readonly authorization: DelegatedAuthorization;
|
|
11
|
+
readonly actionId: string;
|
|
12
|
+
readonly subject: ActionSubject;
|
|
13
|
+
}): ActionObjectSubject;
|
|
14
|
+
/** Admit an exact tuple against its definition and current selected-read visibility. */
|
|
15
|
+
export declare function admitDelegatedObjectAction(input: {
|
|
16
|
+
readonly objectReader: AuthorizedObjectReader;
|
|
17
|
+
readonly runtimeAuthorization: RuntimeAuthorization;
|
|
18
|
+
readonly execution: ExecutionContext;
|
|
19
|
+
readonly authorization: DelegatedAuthorization;
|
|
20
|
+
readonly action: ActionDefinition;
|
|
21
|
+
readonly subject: ActionObjectSubject;
|
|
22
|
+
}): Promise<void>;
|
|
23
|
+
export {};
|
|
24
|
+
//# sourceMappingURL=delegated-admission.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"delegated-admission.d.ts","sourceRoot":"","sources":["../../src/actions/delegated-admission.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,4BAA4B,CAAA;AAC9E,OAAO,EACL,KAAK,sBAAsB,EAE5B,MAAM,uCAAuC,CAAA;AAC9C,OAAO,KAAK,EAAE,gBAAgB,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAA;AAChF,OAAO,KAAK,EAAE,gBAAgB,EAAE,mBAAmB,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AAEnF,KAAK,sBAAsB,GAAG,OAAO,CAAC,4BAA4B,EAAE;IAAE,QAAQ,CAAC,IAAI,EAAE,WAAW,CAAA;CAAE,CAAC,CAAA;AAEnG,iFAAiF;AACjF,wBAAgB,2BAA2B,CAAC,KAAK,EAAE;IACjD,QAAQ,CAAC,aAAa,EAAE,sBAAsB,CAAA;IAC9C,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAA;IACzB,QAAQ,CAAC,OAAO,EAAE,aAAa,CAAA;CAChC,GAAG,mBAAmB,CActB;AAED,wFAAwF;AACxF,wBAAsB,0BAA0B,CAAC,KAAK,EAAE;IACtD,QAAQ,CAAC,YAAY,EAAE,sBAAsB,CAAA;IAC7C,QAAQ,CAAC,oBAAoB,EAAE,oBAAoB,CAAA;IACnD,QAAQ,CAAC,SAAS,EAAE,gBAAgB,CAAA;IACpC,QAAQ,CAAC,aAAa,EAAE,sBAAsB,CAAA;IAC9C,QAAQ,CAAC,MAAM,EAAE,gBAAgB,CAAA;IACjC,QAAQ,CAAC,OAAO,EAAE,mBAAmB,CAAA;CACtC,GAAG,OAAO,CAAC,IAAI,CAAC,CAsBhB"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type { ActionDefinition, ActionParamsConfig } from "./types";
|
|
2
|
+
type DeepReadonly<T> = T extends object ? {
|
|
3
|
+
readonly [TKey in keyof T]: DeepReadonly<T[TKey]>;
|
|
4
|
+
} : T;
|
|
5
|
+
export type ActionDescriptorBinding = {
|
|
6
|
+
readonly kind: "global";
|
|
7
|
+
} | {
|
|
8
|
+
readonly kind: "object";
|
|
9
|
+
readonly objectTypeId: string;
|
|
10
|
+
};
|
|
11
|
+
export type ActionParamDescriptor = DeepReadonly<ActionParamsConfig[string]>;
|
|
12
|
+
export interface ActionPhaseDescriptor {
|
|
13
|
+
readonly validate: boolean;
|
|
14
|
+
readonly writeback: boolean;
|
|
15
|
+
readonly edits: boolean;
|
|
16
|
+
readonly effects: boolean;
|
|
17
|
+
}
|
|
18
|
+
/** Immutable metadata exposed by the execution-bound Actions catalog. */
|
|
19
|
+
export interface ActionDescriptor<TId extends string = string> {
|
|
20
|
+
readonly id: TId;
|
|
21
|
+
readonly description?: string;
|
|
22
|
+
readonly binding: ActionDescriptorBinding;
|
|
23
|
+
readonly params: Readonly<Record<string, ActionParamDescriptor>>;
|
|
24
|
+
readonly phases: ActionPhaseDescriptor;
|
|
25
|
+
}
|
|
26
|
+
/** Project an executable definition into inert, detached public metadata. */
|
|
27
|
+
export declare function snapshotActionDescriptor(action: ActionDefinition): ActionDescriptor;
|
|
28
|
+
export {};
|
|
29
|
+
//# sourceMappingURL=descriptor.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"descriptor.d.ts","sourceRoot":"","sources":["../../src/actions/descriptor.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,MAAM,S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imeContext } from "../runtime/types";
|
|
4
4
|
import type { ActionRunRecord, ListActionRunsInput, ListActionRunsResult } from "../storage/action-runs";
|
|
5
|
+
import { type ActionDescriptor } from "./descriptor";
|
|
5
6
|
import { type RequestActionAndWaitInput, type RequestActionInput, type RequestActionResult } from "./request";
|
|
6
|
-
import type { ActionDefinition } from "./types";
|
|
7
7
|
export interface ActionRunsRuntime {
|
|
8
8
|
getById(runId: string): Promise<ActionRunRecord | null>;
|
|
9
9
|
list(input?: Omit<ListActionRunsInput, "projectId" | "actionIds" | "objectTypeIds">): Promise<ListActionRunsResult>;
|
|
10
10
|
}
|
|
11
11
|
export interface ActionsRuntime {
|
|
12
|
-
list(): readonly
|
|
13
|
-
getById(actionId: string):
|
|
14
|
-
listGlobal(): readonly
|
|
15
|
-
listForType(objectType: ObjectType): readonly
|
|
12
|
+
list(): readonly ActionDescriptor[];
|
|
13
|
+
getById(actionId: string): ActionDescriptor | null;
|
|
14
|
+
listGlobal(): readonly ActionDescriptor[];
|
|
15
|
+
listForType(objectType: ObjectType): readonly ActionDescriptor[];
|
|
16
16
|
request(input: RequestActionInput): Promise<RequestActionResult>;
|
|
17
17
|
requestAndWait(input: RequestActionAndWaitInput): Promise<ActionRunRecord>;
|
|
18
18
|
readonly runs: ActionRunsRuntime;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"execution.d.ts","sourceRoot":"","sources":["../../src/actions/execution.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAA;
|
|
1
|
+
{"version":3,"file":"execution.d.ts","sourceRoot":"","sources":["../../src/actions/execution.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAA;AAMpD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAA;AAC7C,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAA;AAC1D,OAAO,KAAK,EACV,eAAe,EACf,mBAAmB,EACnB,oBAAoB,EACrB,MAAM,wBAAwB,CAAA;AAE/B,OAAO,EAAE,KAAK,gBAAgB,EAA4B,MAAM,cAAc,CAAA;AAC9E,OAAO,EACL,KAAK,yBAAyB,EAC9B,KAAK,kBAAkB,EACvB,KAAK,mBAAmB,EAGzB,MAAM,WAAW,CAAA;AAIlB,MAAM,WAAW,iBAAiB;IAChC,OAAO,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,eAAe,GAAG,IAAI,CAAC,CAAA;IACvD,IAAI,CACF,KAAK,CAAC,EAAE,IAAI,CAAC,mBAAmB,EAAE,WAAW,GAAG,WAAW,GAAG,eAAe,CAAC,GAC7E,OAAO,CAAC,oBAAoB,CAAC,CAAA;CACjC;AAED,MAAM,WAAW,cAAc;IAC7B,IAAI,IAAI,SAAS,gBAAgB,EAAE,CAAA;IACnC,OAAO,CAAC,QAAQ,EAAE,MAAM,GAAG,gBAAgB,GAAG,IAAI,CAAA;IAClD,UAAU,IAAI,SAAS,gBAAgB,EAAE,CAAA;IACzC,WAAW,CAAC,UAAU,EAAE,UAAU,GAAG,SAAS,gBAAgB,EAAE,CAAA;IAChE,OAAO,CAAC,KAAK,EAAE,kBAAkB,GAAG,OAAO,CAAC,mBAAmB,CAAC,CAAA;IAChE,cAAc,CAAC,KAAK,EAAE,yBAAyB,GAAG,OAAO,CAAC,eAAe,CAAC,CAAA;IAC1E,QAAQ,CAAC,IAAI,EAAE,iBAAiB,CAAA;CACjC;AAED,wBAAgB,oBAAoB,CAClC,OAAO,EAAE,kBAAkB,EAC3B,SAAS,EAAE,gBAAgB,GAC1B,cAAc,CA+GhB"}
|
package/dist/actions/index.js
CHANGED
|
@@ -9,39 +9,35 @@ import {
|
|
|
9
9
|
optional,
|
|
10
10
|
param,
|
|
11
11
|
runActionValidators
|
|
12
|
-
} from "../chunk-
|
|
12
|
+
} from "../chunk-v1xppd0y.js";
|
|
13
13
|
import {
|
|
14
|
-
ActionDefinitionError,
|
|
15
|
-
ActionEditCommitError,
|
|
16
|
-
coerceActionParamsToTyped,
|
|
17
|
-
isActionDefinition,
|
|
18
|
-
isGlobalActionDefinition,
|
|
19
|
-
isObjectActionDefinition,
|
|
20
14
|
requestAction,
|
|
21
15
|
requestActionAndWait,
|
|
22
16
|
waitForActionRun
|
|
23
|
-
} from "../chunk-
|
|
24
|
-
import"../chunk-
|
|
17
|
+
} from "../chunk-h5vqbfmd.js";
|
|
18
|
+
import"../chunk-q0k9nc5a.js";
|
|
19
|
+
import"../chunk-rte5sm3z.js";
|
|
20
|
+
import"../chunk-f26bck4t.js";
|
|
25
21
|
import"../chunk-96swp2wd.js";
|
|
26
|
-
import"../chunk-
|
|
27
|
-
import"../chunk-
|
|
28
|
-
import"../chunk-
|
|
29
|
-
import"../chunk-
|
|
30
|
-
import"../chunk-
|
|
22
|
+
import"../chunk-k522z7v6.js";
|
|
23
|
+
import"../chunk-sbzzr4kx.js";
|
|
24
|
+
import"../chunk-4jjp5k14.js";
|
|
25
|
+
import"../chunk-rv2hkwwa.js";
|
|
26
|
+
import"../chunk-nx7k8tpr.js";
|
|
27
|
+
import"../chunk-4yqmp43v.js";
|
|
28
|
+
import"../chunk-wdage1eb.js";
|
|
29
|
+
import"../chunk-5ntny1qx.js";
|
|
30
|
+
import"../chunk-nn0tekr1.js";
|
|
31
|
+
import"../chunk-p03r0h5s.js";
|
|
32
|
+
import"../chunk-jecn6t54.js";
|
|
31
33
|
import"../chunk-5gd7tpv6.js";
|
|
32
|
-
import"../chunk-
|
|
34
|
+
import"../chunk-rafagrwr.js";
|
|
33
35
|
import"../chunk-8tsf6dmc.js";
|
|
34
|
-
import"../chunk-
|
|
35
|
-
import"../chunk-5jcdmjam.js";
|
|
36
|
-
import"../chunk-xdpwpkha.js";
|
|
36
|
+
import"../chunk-yp8ee62z.js";
|
|
37
37
|
import"../chunk-ka3a2ft3.js";
|
|
38
|
-
import"../chunk-
|
|
39
|
-
import"../chunk-
|
|
40
|
-
import"../chunk-
|
|
41
|
-
import"../chunk-p03r0h5s.js";
|
|
42
|
-
import"../chunk-jecn6t54.js";
|
|
43
|
-
import"../chunk-x0qhkqje.js";
|
|
44
|
-
import"../chunk-dqn23610.js";
|
|
38
|
+
import"../chunk-w1tvjszy.js";
|
|
39
|
+
import"../chunk-p1rzczbt.js";
|
|
40
|
+
import"../chunk-j1sbhm7p.js";
|
|
45
41
|
import"../chunk-9dzba0f2.js";
|
|
46
42
|
import"../chunk-dbc80ad7.js";
|
|
47
43
|
import"../chunk-ry24jbr1.js";
|
|
@@ -55,13 +51,23 @@ import"../chunk-jq43kdvk.js";
|
|
|
55
51
|
import"../chunk-qw9gvjv5.js";
|
|
56
52
|
import"../chunk-yt8wphsx.js";
|
|
57
53
|
import"../chunk-d8qkxt2v.js";
|
|
58
|
-
import
|
|
54
|
+
import {
|
|
55
|
+
ActionDefinitionError,
|
|
56
|
+
ActionEditCommitError,
|
|
57
|
+
coerceActionParamsToTyped,
|
|
58
|
+
isActionDefinition,
|
|
59
|
+
isGlobalActionDefinition,
|
|
60
|
+
isObjectActionDefinition
|
|
61
|
+
} from "../chunk-4sm0aznx.js";
|
|
59
62
|
import"../chunk-4a849fr1.js";
|
|
63
|
+
import"../chunk-2dw777qw.js";
|
|
64
|
+
import"../chunk-19jp6g9d.js";
|
|
60
65
|
import"../chunk-xwnf87e1.js";
|
|
61
|
-
import"../chunk-
|
|
62
|
-
import"../chunk-
|
|
63
|
-
import"../chunk-
|
|
66
|
+
import"../chunk-p1x242ad.js";
|
|
67
|
+
import"../chunk-r8jrnexe.js";
|
|
68
|
+
import"../chunk-h0k55pc7.js";
|
|
64
69
|
import"../chunk-dktq02ne.js";
|
|
70
|
+
import"../chunk-04b07a9q.js";
|
|
65
71
|
import"../chunk-08m3b6w8.js";
|
|
66
72
|
import"../chunk-2xns679x.js";
|
|
67
73
|
import"../chunk-n6jxh8sw.js";
|
|
@@ -87,4 +93,4 @@ export {
|
|
|
87
93
|
ActionDefinitionError
|
|
88
94
|
};
|
|
89
95
|
|
|
90
|
-
//# debugId=
|
|
96
|
+
//# debugId=046D22D7DAD9D94564756E2164756E21
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"request.d.ts","sourceRoot":"","sources":["../../src/actions/request.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"request.d.ts","sourceRoot":"","sources":["../../src/actions/request.ts"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAA;AAI1D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAA;AAC1D,OAAO,EAEL,KAAK,eAAe,EAGrB,MAAM,YAAY,CAAA;AAMnB,OAAO,KAAK,EAAoB,aAAa,EAAE,MAAM,SAAS,CAAA;AAQ9D,MAAM,WAAW,mBAAmB;IAClC,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;IACtB,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAA;IACzB,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAA;IACvB,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAA;CAC1B;AAED,MAAM,WAAW,oBAAoB;IACnC,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAA;IACvB,QAAQ,CAAC,MAAM,CAAC,EAAE,WAAW,CAAA;CAC9B;AAED,MAAM,WAAW,2BAA4B,SAAQ,oBAAoB;IACvE,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAA;IAC3B,QAAQ,CAAC,WAAW,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAA;CAC/D;AAED,MAAM,WAAW,kBAAkB;IACjC,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAA;IACzB,QAAQ,CAAC,OAAO,CAAC,EAAE,aAAa,CAAA;IAChC,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IACzC,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAA;IACvB,QAAQ,CAAC,MAAM,CAAC,EAAE,WAAW,CAAA;CAC9B;AAED,MAAM,WAAW,yBAA0B,SAAQ,kBAAkB;IACnE,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAA;IAC3B,QAAQ,CAAC,WAAW,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAA;CAC/D;AAED,MAAM,WAAW,qBAAqB;IACpC,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;IACtB,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAA;IAC3B,QAAQ,CAAC,MAAM,CAAC,EAAE,WAAW,CAAA;CAC9B;AAmBD,wBAAsB,aAAa,CACjC,OAAO,EAAE,kBAAkB,EAC3B,SAAS,EAAE,gBAAgB,EAC3B,KAAK,EAAE,kBAAkB,GACxB,OAAO,CAAC,mBAAmB,CAAC,CA2G9B;AAoBD,wBAAsB,oBAAoB,CACxC,OAAO,EAAE,kBAAkB,EAC3B,SAAS,EAAE,gBAAgB,EAC3B,KAAK,EAAE,yBAAyB,GAC/B,OAAO,CAAC,eAAe,CAAC,CAc1B;AAED,wBAAsB,gBAAgB,CACpC,OAAO,EAAE,kBAAkB,EAC3B,KAAK,EAAE,qBAAqB,GAC3B,OAAO,CAAC,eAAe,CAAC,CAuJ1B"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { ResolvedRuntimeAuthorization } from "../execution/authorization";
|
|
2
|
+
import type { Storage } from "../storage";
|
|
3
|
+
import type { ActionRunRecord } from "../storage/action-runs";
|
|
4
|
+
/** Check both current grant scope and immutable request provenance for a delegated Action run. */
|
|
5
|
+
export declare function canDelegationAccessActionRun(input: {
|
|
6
|
+
readonly storage: Storage;
|
|
7
|
+
readonly projectId: string;
|
|
8
|
+
readonly authority: Extract<ResolvedRuntimeAuthorization, {
|
|
9
|
+
readonly type: "delegated";
|
|
10
|
+
}>;
|
|
11
|
+
readonly run: ActionRunRecord;
|
|
12
|
+
}): Promise<boolean>;
|
|
13
|
+
/** Session ids remain audit provenance; the issued grant is the durable capability identity. */
|
|
14
|
+
export declare function actionRunBelongsToShareGrant(input: {
|
|
15
|
+
readonly storage: Storage;
|
|
16
|
+
readonly projectId: string;
|
|
17
|
+
readonly run: ActionRunRecord;
|
|
18
|
+
readonly grantId: string;
|
|
19
|
+
}): Promise<boolean>;
|
|
20
|
+
//# sourceMappingURL=run-authorization.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"run-authorization.d.ts","sourceRoot":"","sources":["../../src/actions/run-authorization.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,4BAA4B,CAAA;AAC9E,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,YAAY,CAAA;AACzC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAA;AAG7D,kGAAkG;AAClG,wBAAsB,4BAA4B,CAAC,KAAK,EAAE;IACxD,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAA;IACzB,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAA;IAC1B,QAAQ,CAAC,SAAS,EAAE,OAAO,CAAC,4BAA4B,EAAE;QAAE,QAAQ,CAAC,IAAI,EAAE,WAAW,CAAA;KAAE,CAAC,CAAA;IACzF,QAAQ,CAAC,GAAG,EAAE,eAAe,CAAA;CAC9B,GAAG,OAAO,CAAC,OAAO,CAAC,CAoBnB;AAED,gGAAgG;AAChG,wBAAsB,4BAA4B,CAAC,KAAK,EAAE;IACxD,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAA;IACzB,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAA;IAC1B,QAAQ,CAAC,GAAG,EAAE,eAAe,CAAA;IAC7B,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAA;CACzB,GAAG,OAAO,CAAC,OAAO,CAAC,CAanB"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { DomainEventLog } from "../events";
|
|
2
2
|
import type { Queues } from "../queues";
|
|
3
|
-
import type { ActionRunParams, CreateExecutionInput, Storage } from "../storage";
|
|
3
|
+
import type { ActionRunParams, ActionRunRecord, CreateExecutionInput, Storage } from "../storage";
|
|
4
4
|
import type { RequestActionResult } from "./request";
|
|
5
5
|
import type { ActionSubject } from "./types";
|
|
6
6
|
interface DispatchActionRunInput {
|
|
@@ -14,6 +14,8 @@ interface DispatchActionRunInput {
|
|
|
14
14
|
readonly params: ActionRunParams;
|
|
15
15
|
readonly runId?: string;
|
|
16
16
|
readonly createExecution: (executionId: string, runId: string) => Promise<CreateExecutionInput>;
|
|
17
|
+
/** Runs before payload comparison or retry so an existing run cannot cross authority owners. */
|
|
18
|
+
readonly assertCanReuseExisting?: (storage: Storage, run: ActionRunRecord) => void | Promise<void>;
|
|
17
19
|
}
|
|
18
20
|
/** Persist an Action execution and run before publishing its queue job. */
|
|
19
21
|
export declare function dispatchActionRun(input: DispatchActionRunInput): Promise<RequestActionResult>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"run-dispatch.d.ts","sourceRoot":"","sources":["../../src/actions/run-dispatch.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,WAAW,CAAA;AAC/C,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,WAAW,CAAA;AACvC,OAAO,KAAK,EAEV,eAAe,
|
|
1
|
+
{"version":3,"file":"run-dispatch.d.ts","sourceRoot":"","sources":["../../src/actions/run-dispatch.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,WAAW,CAAA;AAC/C,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,WAAW,CAAA;AACvC,OAAO,KAAK,EAEV,eAAe,EACf,eAAe,EACf,oBAAoB,EACpB,OAAO,EACR,MAAM,YAAY,CAAA;AAQnB,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,WAAW,CAAA;AAEpD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AAE5C,UAAU,sBAAsB;IAC9B,QAAQ,CAAC,iBAAiB,EAAE,MAAM,CAAA;IAClC,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAA;IAC1B,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAA;IACzB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC,SAAS,CAAC,CAAA;IACjC,QAAQ,CAAC,MAAM,EAAE,cAAc,CAAA;IAC/B,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAA;IACzB,QAAQ,CAAC,OAAO,EAAE,aAAa,CAAA;IAC/B,QAAQ,CAAC,MAAM,EAAE,eAAe,CAAA;IAChC,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAA;IACvB,QAAQ,CAAC,eAAe,EAAE,CAAC,WAAW,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,KAAK,OAAO,CAAC,oBAAoB,CAAC,CAAA;IAC/F,gGAAgG;IAChG,QAAQ,CAAC,sBAAsB,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,EAAE,GAAG,EAAE,eAAe,KAAK,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAA;CACnG;AAiBD,2EAA2E;AAC3E,wBAAsB,iBAAiB,CACrC,KAAK,EAAE,sBAAsB,GAC5B,OAAO,CAAC,mBAAmB,CAAC,CAK9B"}
|
package/dist/actions/worker.js
CHANGED
|
@@ -8,11 +8,11 @@ import {
|
|
|
8
8
|
normalizeObjectProperties,
|
|
9
9
|
validateObjectProperties,
|
|
10
10
|
validatePropertyValue
|
|
11
|
-
} from "../chunk-
|
|
12
|
-
import"../chunk-04b07a9q.js";
|
|
11
|
+
} from "../chunk-h0k55pc7.js";
|
|
13
12
|
import {
|
|
14
13
|
OntologyValidationError
|
|
15
14
|
} from "../chunk-dktq02ne.js";
|
|
15
|
+
import"../chunk-04b07a9q.js";
|
|
16
16
|
import"../chunk-08m3b6w8.js";
|
|
17
17
|
import"../chunk-n6jxh8sw.js";
|
|
18
18
|
import"../chunk-y64skrwp.js";
|
|
@@ -321,4 +321,4 @@ export {
|
|
|
321
321
|
recordEdits
|
|
322
322
|
};
|
|
323
323
|
|
|
324
|
-
//# debugId=
|
|
324
|
+
//# debugId=0E514FA89BDA49D264756E2164756E21
|
|
@@ -6,6 +6,6 @@
|
|
|
6
6
|
"import type { ObjectLink, Property, ValueType } from \"../ontology\"\nimport { OntologyValidationError } from \"../ontology/errors\"\nimport type { ObjectTypeWithPropertyTokens } from \"../ontology/tokens\"\nimport {\n assertKnownProperties,\n normalizeObjectProperties,\n validateObjectProperties,\n validatePropertyValue,\n} from \"../ontology/validation\"\nimport { EditBatchError } from \"./errors\"\nimport type { EditObjectProperties } from \"./types\"\n\nexport function normalizeObjectEditProperties(params: {\n readonly objectType: ObjectTypeWithPropertyTokens\n readonly properties: Record<string, unknown>\n readonly valueTypesById: ReadonlyMap<string, ValueType>\n readonly path: string\n}): EditObjectProperties {\n const { objectType, properties, valueTypesById, path } = params\n assertKnownProperties(objectType, properties)\n assertNoTelemetryProperties(objectType.properties, properties, path)\n validateObjectProperties(objectType, properties, valueTypesById)\n return normalizeObjectProperties(objectType.properties, properties, valueTypesById, path)\n}\n\nexport function normalizeLinkEditProperties(params: {\n readonly sourceObjectTypeId: string\n readonly linkId: string\n readonly linkDefinition: ObjectLink\n readonly properties: Readonly<Record<string, unknown>>\n readonly valueTypesById: ReadonlyMap<string, ValueType>\n}): EditObjectProperties {\n const { sourceObjectTypeId, linkId, linkDefinition, properties, valueTypesById } = params\n const linkProperties = linkDefinition.properties ?? []\n\n if (linkProperties.length === 0 && Object.keys(properties).length > 0) {\n throw new OntologyValidationError(\n `[Sixb] Link ${sourceObjectTypeId}.${linkId} does not define link properties`\n )\n }\n\n const knownPropertyIds = new Set(linkProperties.map((property) => property.id))\n for (const propertyId of Object.keys(properties)) {\n if (!knownPropertyIds.has(propertyId)) {\n throw new OntologyValidationError(\n `[Sixb] Unknown link property '${propertyId}' for link '${sourceObjectTypeId}.${linkId}'`\n )\n }\n }\n\n assertNoTelemetryProperties(linkProperties, properties, `${sourceObjectTypeId}.${linkId}`)\n\n for (const [propertyId, value] of Object.entries(properties)) {\n const property = linkProperties.find((candidate) => candidate.id === propertyId)\n if (!property) continue\n validatePropertyValue(\n property,\n value,\n `${sourceObjectTypeId}.${linkId}.${propertyId}`,\n valueTypesById\n )\n }\n\n return normalizeObjectProperties(\n linkProperties,\n properties,\n valueTypesById,\n `${sourceObjectTypeId}.${linkId}`\n )\n}\n\nexport function getPrimaryProperty(objectType: ObjectTypeWithPropertyTokens): Property {\n const primaryProperty = objectType.properties.find((property) => property.primary)\n if (!primaryProperty) {\n throw new OntologyValidationError(\n `[Sixb] Object type '${objectType.id}' has no primary property`\n )\n }\n return primaryProperty\n}\n\nexport function assertPrimaryPropertyNotUpdated(\n objectType: ObjectTypeWithPropertyTokens,\n properties: EditObjectProperties\n): void {\n const primaryProperty = getPrimaryProperty(objectType)\n if (Object.hasOwn(properties, primaryProperty.id)) {\n throw new EditBatchError(\n `[Sixb] EditBatch cannot update primary property '${objectType.id}.${primaryProperty.id}'.`\n )\n }\n}\n\n/** Validates `unset`/`reset` targets: known, non-primary, and not telemetry-backed. */\nexport function normalizeEditablePropertyIds(params: {\n readonly objectType: ObjectTypeWithPropertyTokens\n readonly propertyIds: readonly unknown[]\n readonly operation: \"unset\" | \"reset\"\n}): readonly string[] {\n const { objectType, propertyIds, operation } = params\n const primaryProperty = getPrimaryProperty(objectType)\n const normalized: string[] = []\n const seen = new Set<string>()\n\n for (const propertyId of propertyIds) {\n if (typeof propertyId !== \"string\" || !propertyId.trim()) {\n throw new EditBatchError(\n `[Sixb] EditBatch ${objectType.id}.${operation} property id must be a non-empty string.`\n )\n }\n const property = objectType.properties.find((candidate) => candidate.id === propertyId)\n if (!property) {\n throw new EditBatchError(\n `[Sixb] EditBatch ${operation} references unknown property '${objectType.id}.${propertyId}'.`\n )\n }\n if (property.id === primaryProperty.id) {\n throw new EditBatchError(\n `[Sixb] EditBatch cannot ${operation} primary property '${objectType.id}.${propertyId}'.`\n )\n }\n if (property.mode === \"telemetry\") {\n throw new EditBatchError(\n `[Sixb] EditBatch cannot ${operation} telemetry property '${objectType.id}.${propertyId}'.`\n )\n }\n if (seen.has(propertyId)) continue\n seen.add(propertyId)\n normalized.push(propertyId)\n }\n\n if (normalized.length === 0) {\n throw new EditBatchError(\n `[Sixb] EditBatch ${objectType.id}.${operation} requires at least one property id.`\n )\n }\n return normalized\n}\n\nfunction assertNoTelemetryProperties(\n definitions: readonly Property[],\n properties: Readonly<Record<string, unknown>>,\n path: string\n): void {\n for (const propertyId of Object.keys(properties)) {\n const property = definitions.find((candidate) => candidate.id === propertyId)\n if (property?.mode === \"telemetry\") {\n throw new EditBatchError(\n `[Sixb] EditBatch cannot edit telemetry property '${path}.${propertyId}' in the MVP.`\n )\n }\n }\n}\n"
|
|
7
7
|
],
|
|
8
8
|
"mappings": ";;;;;;;;;;;;;;;;;;;;AAAA;;;ACYO,SAAS,6BAA6B,CAAC,QAKrB;AAAA,EACvB,QAAQ,YAAY,YAAY,gBAAgB,SAAS;AAAA,EACzD,sBAAsB,YAAY,UAAU;AAAA,EAC5C,4BAA4B,WAAW,YAAY,YAAY,IAAI;AAAA,EACnE,yBAAyB,YAAY,YAAY,cAAc;AAAA,EAC/D,OAAO,0BAA0B,WAAW,YAAY,YAAY,gBAAgB,IAAI;AAAA;AAGnF,SAAS,2BAA2B,CAAC,QAMnB;AAAA,EACvB,QAAQ,oBAAoB,QAAQ,gBAAgB,YAAY,mBAAmB;AAAA,EACnF,MAAM,iBAAiB,eAAe,cAAc,CAAC;AAAA,EAErD,IAAI,eAAe,WAAW,KAAK,OAAO,KAAK,UAAU,EAAE,SAAS,GAAG;AAAA,IACrE,MAAM,IAAI,wBACR,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AAGT,SAAS,oBAAoB,CAAC,OAAgB,OAAuB;AAAA,EACnE,IAAI,OAAO,UAAU,YAAY,CAAC,MAAM,KAAK,GAAG;AAAA,IAC9C,MAAM,IAAI,eAAe,oBAAoB,mCAAmC;AAAA,EAClF;AAAA,EACA,OAAO;AAAA;AAGT,SAAS,UAAU,CAAC,KAAmC;AAAA,EACrD,OAAO;AAAA,IACL,cAAc,IAAI;AAAA,IAClB,WAAW,IAAI;AAAA,EACjB;AAAA;",
|
|
9
|
-
"debugId": "
|
|
9
|
+
"debugId": "0E514FA89BDA49D264756E2164756E21",
|
|
10
10
|
"names": []
|
|
11
11
|
}
|
|
@@ -1,103 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import type { ModelAssistantPart, ModelFilePart, ModelMessage, ModelReasoningPart, ModelTextPart, ModelToolCallPart, ModelToolOutput, ModelToolResultPart, ProviderData } from "../models";
|
|
4
|
-
import { type AgentContextInput, type AgentContextOrigin } from "./context";
|
|
5
|
-
import type { AgentMessage, AgentMessagePart, AgentMessageRole } from "./message";
|
|
1
|
+
import type { ModelMessage } from "../models";
|
|
2
|
+
import type { AgentFilePart, AgentMessage, AgentToolCallPart } from "./message";
|
|
6
3
|
import type { AgentToolFileContent } from "./types";
|
|
7
|
-
export interface AgentInboundUiMessagePart {
|
|
8
|
-
readonly type: string;
|
|
9
|
-
readonly text?: string;
|
|
10
|
-
readonly state?: string;
|
|
11
|
-
readonly providerMetadata?: unknown;
|
|
12
|
-
readonly toolName?: string;
|
|
13
|
-
readonly toolCallId?: string;
|
|
14
|
-
readonly providerExecuted?: boolean;
|
|
15
|
-
readonly input?: unknown;
|
|
16
|
-
readonly rawInput?: unknown;
|
|
17
|
-
readonly output?: unknown;
|
|
18
|
-
readonly errorText?: string;
|
|
19
|
-
readonly callProviderMetadata?: unknown;
|
|
20
|
-
readonly fileRef?: unknown;
|
|
21
|
-
readonly context?: unknown;
|
|
22
|
-
readonly origin?: unknown;
|
|
23
|
-
readonly providerId?: string;
|
|
24
|
-
readonly data?: unknown;
|
|
25
|
-
}
|
|
26
|
-
export interface AgentInboundUiMessage {
|
|
27
|
-
readonly role: string;
|
|
28
|
-
readonly id?: string;
|
|
29
|
-
readonly metadata?: unknown;
|
|
30
|
-
readonly parts: readonly AgentInboundUiMessagePart[];
|
|
31
|
-
}
|
|
32
|
-
interface AgentUiToolPartBody {
|
|
33
|
-
readonly toolCallId: string;
|
|
34
|
-
readonly providerExecuted?: boolean;
|
|
35
|
-
readonly callProviderMetadata?: ProviderData;
|
|
36
|
-
}
|
|
37
|
-
export type AgentUiToolPart = ({
|
|
38
|
-
readonly type: `tool-${string}`;
|
|
39
|
-
} & AgentUiToolPartBody & ({
|
|
40
|
-
readonly state: "output-available";
|
|
41
|
-
readonly input: JsonValue;
|
|
42
|
-
readonly output: JsonValue;
|
|
43
|
-
} | {
|
|
44
|
-
readonly state: "output-error";
|
|
45
|
-
readonly input: JsonValue;
|
|
46
|
-
readonly errorText: string;
|
|
47
|
-
})) | ({
|
|
48
|
-
readonly type: "dynamic-tool";
|
|
49
|
-
readonly toolName: string;
|
|
50
|
-
} & AgentUiToolPartBody & ({
|
|
51
|
-
readonly state: "output-available";
|
|
52
|
-
readonly input: JsonValue;
|
|
53
|
-
readonly output: JsonValue;
|
|
54
|
-
} | {
|
|
55
|
-
readonly state: "output-error";
|
|
56
|
-
readonly input: JsonValue;
|
|
57
|
-
readonly errorText: string;
|
|
58
|
-
}));
|
|
59
|
-
export type AgentUiMessagePart = {
|
|
60
|
-
readonly type: "text";
|
|
61
|
-
readonly text: string;
|
|
62
|
-
readonly providerMetadata?: ProviderData;
|
|
63
|
-
} | {
|
|
64
|
-
readonly type: "reasoning";
|
|
65
|
-
readonly text: string;
|
|
66
|
-
readonly providerMetadata?: ProviderData;
|
|
67
|
-
} | {
|
|
68
|
-
readonly type: "step-start";
|
|
69
|
-
} | {
|
|
70
|
-
readonly type: "file";
|
|
71
|
-
readonly fileRef: FileRef;
|
|
72
|
-
readonly providerMetadata?: ProviderData;
|
|
73
|
-
} | {
|
|
74
|
-
readonly type: "provider-state";
|
|
75
|
-
readonly providerId: string;
|
|
76
|
-
readonly data: JsonValue;
|
|
77
|
-
} | {
|
|
78
|
-
readonly type: "context";
|
|
79
|
-
readonly context: AgentContextInput;
|
|
80
|
-
readonly origin: AgentContextOrigin;
|
|
81
|
-
} | AgentUiToolPart;
|
|
82
|
-
export interface AgentUiMessage {
|
|
83
|
-
readonly role: AgentMessageRole;
|
|
84
|
-
readonly id?: string;
|
|
85
|
-
readonly metadata?: JsonValue;
|
|
86
|
-
readonly parts: readonly AgentUiMessagePart[];
|
|
87
|
-
}
|
|
88
|
-
export type AgentModelToolOutput = ModelToolOutput;
|
|
89
|
-
export type AgentModelTextPart = ModelTextPart;
|
|
90
|
-
export type AgentModelFilePart = ModelFilePart;
|
|
91
|
-
export type AgentModelReasoningPart = ModelReasoningPart;
|
|
92
|
-
export type AgentModelToolCallPart = ModelToolCallPart;
|
|
93
|
-
export type AgentModelToolResultPart = ModelToolResultPart;
|
|
94
|
-
export type AgentModelAssistantPart = ModelAssistantPart;
|
|
95
|
-
export type AgentModelMessage = ModelMessage;
|
|
96
4
|
export interface AgentFileDataResolverInput<TMessage extends AgentMessage = AgentMessage> {
|
|
97
5
|
readonly message: TMessage;
|
|
98
|
-
readonly part:
|
|
99
|
-
type: "file";
|
|
100
|
-
}>;
|
|
6
|
+
readonly part: AgentFilePart;
|
|
101
7
|
readonly partIndex: number;
|
|
102
8
|
}
|
|
103
9
|
export interface AgentFileDataProjection {
|
|
@@ -107,7 +13,7 @@ export interface AgentFileDataProjection {
|
|
|
107
13
|
}
|
|
108
14
|
export interface AgentToolResultFileResolverInput<TMessage extends AgentMessage = AgentMessage> {
|
|
109
15
|
readonly message: TMessage;
|
|
110
|
-
readonly part:
|
|
16
|
+
readonly part: AgentToolCallPart;
|
|
111
17
|
readonly partIndex: number;
|
|
112
18
|
readonly contentPart: AgentToolFileContent;
|
|
113
19
|
readonly contentIndex: number;
|
|
@@ -127,28 +33,6 @@ export interface ToModelMessagesOptions<TMessage extends AgentMessage = AgentMes
|
|
|
127
33
|
/** Add current metadata, sandbox paths, and projection notes for a tool-result file. */
|
|
128
34
|
readonly toolResultFileText?: (input: AgentToolResultFileResolverInput<TMessage>) => string | undefined;
|
|
129
35
|
}
|
|
130
|
-
/**
|
|
131
|
-
* Provider metadata is opaque provider-owned data that can contain optional object keys with
|
|
132
|
-
* `undefined` values. `undefined` is not JSON, but on an object property it means the same thing as
|
|
133
|
-
* "field absent", so omit those properties before validating/persisting the metadata.
|
|
134
|
-
*
|
|
135
|
-
* Keep the scope deliberately narrow: arrays, tool inputs/outputs, Dates, functions, bigint, cycles,
|
|
136
|
-
* and every other non-JSON shape are left for `requireJson` to accept or reject. This helper only
|
|
137
|
-
* turns `{ key: undefined }` into `{}` for compatibility with provider output.
|
|
138
|
-
*/
|
|
139
|
-
export declare function omitUndefinedObjectProperties(value: unknown): unknown;
|
|
140
|
-
/**
|
|
141
|
-
* Convert a UI message into a durable {@link AgentMessage}. Total: throws
|
|
142
|
-
* {@link AgentMessageAdapterError} on any part kind, tool state, or text/reasoning state the durable
|
|
143
|
-
* contract does not model, and on a role outside `system | user | assistant`. Transient states are rejected
|
|
144
|
-
* because messages are only ever persisted once a run has finished.
|
|
145
|
-
*/
|
|
146
|
-
export declare function fromUiMessage(message: AgentInboundUiMessage): AgentMessage;
|
|
147
|
-
type AgentToolCallPartResult = Extract<AgentMessagePart, {
|
|
148
|
-
type: "tool-call";
|
|
149
|
-
}>;
|
|
150
|
-
/** Reconstruct a UI message from a stored message. Exact inverse of {@link fromUiMessage}. */
|
|
151
|
-
export declare function toUiMessage(message: AgentMessage): AgentUiMessage;
|
|
152
36
|
/**
|
|
153
37
|
* Project durable messages into Sixb model messages. Assistant parts are grouped
|
|
154
38
|
* into blocks at each `step-start`; each block yields one `assistant` message plus, for any
|
|
@@ -157,6 +41,5 @@ export declare function toUiMessage(message: AgentMessage): AgentUiMessage;
|
|
|
157
41
|
* else to `json`; this is the documented fidelity scope (a tool's custom `toModelOutput` is not
|
|
158
42
|
* reproduced).
|
|
159
43
|
*/
|
|
160
|
-
export declare function toModelMessages<TMessage extends AgentMessage>(messages: readonly TMessage[], options?: ToModelMessagesOptions<TMessage>):
|
|
161
|
-
export {};
|
|
44
|
+
export declare function toModelMessages<TMessage extends AgentMessage>(messages: readonly TMessage[], options?: ToModelMessagesOptions<TMessage>): ModelMessage[];
|
|
162
45
|
//# sourceMappingURL=adapters.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"adapters.d.ts","sourceRoot":"","sources":["../../src/agents/adapters.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"adapters.d.ts","sourceRoot":"","sources":["../../src/agents/adapters.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAGV,YAAY,EAMb,MAAM,WAAW,CAAA;AAElB,OAAO,KAAK,EACV,aAAa,EACb,YAAY,EAGZ,iBAAiB,EAClB,MAAM,WAAW,CAAA;AAElB,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAA;AAEnD,MAAM,WAAW,0BAA0B,CAAC,QAAQ,SAAS,YAAY,GAAG,YAAY;IACtF,QAAQ,CAAC,OAAO,EAAE,QAAQ,CAAA;IAC1B,QAAQ,CAAC,IAAI,EAAE,aAAa,CAAA;IAC5B,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAA;CAC3B;AAED,MAAM,WAAW,uBAAuB;IACtC,QAAQ,CAAC,IAAI,EAAE,GAAG,CAAA;IAClB,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAA;IAC3B,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAA;CAC3B;AAED,MAAM,WAAW,gCAAgC,CAAC,QAAQ,SAAS,YAAY,GAAG,YAAY;IAC5F,QAAQ,CAAC,OAAO,EAAE,QAAQ,CAAA;IAC1B,QAAQ,CAAC,IAAI,EAAE,iBAAiB,CAAA;IAChC,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAA;IAC1B,QAAQ,CAAC,WAAW,EAAE,oBAAoB,CAAA;IAC1C,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAA;CAC9B;AAED,MAAM,WAAW,sBAAsB,CAAC,QAAQ,SAAS,YAAY,GAAG,YAAY;IAClF;;;OAGG;IACH,QAAQ,CAAC,QAAQ,CAAC,EACd,CAAC,CAAC,KAAK,EAAE,0BAA0B,CAAC,QAAQ,CAAC,KAAK,GAAG,GAAG,uBAAuB,GAAG,SAAS,CAAC,GAC5F,SAAS,CAAA;IACb;;;;OAIG;IACH,QAAQ,CAAC,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,0BAA0B,CAAC,QAAQ,CAAC,KAAK,MAAM,GAAG,SAAS,CAAA;IACvF,wFAAwF;IACxF,QAAQ,CAAC,kBAAkB,CAAC,EAAE,CAC5B,KAAK,EAAE,gCAAgC,CAAC,QAAQ,CAAC,KAC9C,MAAM,GAAG,SAAS,CAAA;CACxB;AAED;;;;;;;GAOG;AACH,wBAAgB,eAAe,CAAC,QAAQ,SAAS,YAAY,EAC3D,QAAQ,EAAE,SAAS,QAAQ,EAAE,EAC7B,OAAO,GAAE,sBAAsB,CAAC,QAAQ,CAAM,GAC7C,YAAY,EAAE,CAgBhB"}
|
|
@@ -8,6 +8,7 @@ export type AgentExecutionAuthorization = {
|
|
|
8
8
|
} | {
|
|
9
9
|
readonly type: "disabled";
|
|
10
10
|
};
|
|
11
|
+
export { agentServiceAccountId } from "./identity";
|
|
11
12
|
export interface AgentExecutionIdentity {
|
|
12
13
|
readonly serviceAccount: ServiceAccountRecord;
|
|
13
14
|
readonly principal: Extract<AuthorizablePrincipal, {
|
|
@@ -15,7 +16,6 @@ export interface AgentExecutionIdentity {
|
|
|
15
16
|
}>;
|
|
16
17
|
readonly groupMemberships: readonly ServiceAccountGroupMembershipRecord[];
|
|
17
18
|
}
|
|
18
|
-
export declare function agentServiceAccountId(actorId: string): string;
|
|
19
19
|
/** Ensure a framework-managed Agent actor exists with exactly its declared group memberships. */
|
|
20
20
|
export declare function ensureManagedAgentExecutionIdentity(input: {
|
|
21
21
|
readonly auth: AuthStorage | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"authority.d.ts","sourceRoot":"","sources":["../../src/agents/authority.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAA;AAG5D,OAAO,KAAK,EAAE,qBAAqB,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAA;AAC3E,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,aAAa,CAAA;AAC5D,OAAO,KAAK,EAEV,WAAW,EACX,mCAAmC,EACnC,oBAAoB,EAGrB,MAAM,iBAAiB,CAAA;
|
|
1
|
+
{"version":3,"file":"authority.d.ts","sourceRoot":"","sources":["../../src/agents/authority.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAA;AAG5D,OAAO,KAAK,EAAE,qBAAqB,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAA;AAC3E,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,aAAa,CAAA;AAC5D,OAAO,KAAK,EAEV,WAAW,EACX,mCAAmC,EACnC,oBAAoB,EAGrB,MAAM,iBAAiB,CAAA;AAIxB,MAAM,MAAM,2BAA2B,GACnC;IAAE,QAAQ,CAAC,IAAI,EAAE,WAAW,CAAC;IAAC,QAAQ,CAAC,OAAO,EAAE,oBAAoB,CAAA;CAAE,GACtE;IAAE,QAAQ,CAAC,IAAI,EAAE,UAAU,CAAA;CAAE,CAAA;AAYjC,OAAO,EAAE,qBAAqB,EAAE,MAAM,YAAY,CAAA;AAElD,MAAM,WAAW,sBAAsB;IACrC,QAAQ,CAAC,cAAc,EAAE,oBAAoB,CAAA;IAC7C,QAAQ,CAAC,SAAS,EAAE,OA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IAC5C,QAAQ,CAAC,GAAG,CAAC,EAAE,IAAI,CAAA;CACpB,GAAG,OAAO,CAAC,2BAA2B,CAAC,CA6BvC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"context-resolution.d.ts","sourceRoot":"","sources":["../../src/agents/context-resolution.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"context-resolution.d.ts","sourceRoot":"","sources":["../../src/agents/context-resolution.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAA;AAC1D,OAAO,EACL,KAAK,sBAAsB,EAC3B,KAAK,gBAAgB,EAEtB,MAAM,WAAW,CAAA;AAGlB,+FAA+F;AAC/F,wBAAsB,wBAAwB,CAC5C,OAAO,EAAE,kBAAkB,EAC3B,KAAK,EAAE,SAAS,sBAAsB,EAAE,GAAG,SAAS,GACnD,OAAO,CAAC,SAAS,gBAAgB,EAAE,CAAC,CAuBtC"}
|
package/dist/agents/context.js
CHANGED
package/dist/agents/errors.d.ts
CHANGED
|
@@ -5,15 +5,6 @@
|
|
|
5
5
|
export declare class AgentDefinitionError extends Error {
|
|
6
6
|
readonly name: string;
|
|
7
7
|
}
|
|
8
|
-
/**
|
|
9
|
-
* Raised by the message adapters. `fromUiMessage` is **total**: rather than silently dropping a part it
|
|
10
|
-
* cannot model, it throws this — which both prevents data loss and pinpoints exactly when the
|
|
11
|
-
* {@link AgentMessage} part union must be extended. It also fires on transient/streaming parts that
|
|
12
|
-
* must never be persisted, and on out-of-contract (non-JSON) payloads.
|
|
13
|
-
*/
|
|
14
|
-
export declare class AgentMessageAdapterError extends Error {
|
|
15
|
-
readonly name = "AgentMessageAdapterError";
|
|
16
|
-
}
|
|
17
8
|
/**
|
|
18
9
|
* An agent-tool failure whose message is intentionally safe to expose to the model and persist in
|
|
19
10
|
* the durable trace. Tool authors must keep the message free of credentials and internal details;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../src/agents/errors.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,qBAAa,oBAAqB,SAAQ,KAAK;IAC7C,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAyB;CAC/C;AAED
|
|
1
|
+
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../src/agents/errors.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,qBAAa,oBAAqB,SAAQ,KAAK;IAC7C,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAyB;CAC/C;AAED;;;;GAIG;AACH,qBAAa,oBAAqB,SAAQ,KAAK;IAC7C,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAyB;CAC/C;AAED,kFAAkF;AAClF,qBAAa,8BAA+B,SAAQ,KAAK;IAIrD,QAAQ,CAAC,QAAQ,EAAE,MAAM;IACzB,QAAQ,CAAC,MAAM,EAAE,MAAM;IAJzB,QAAQ,CAAC,IAAI,oCAAmC;gBAGrC,QAAQ,EAAE,MAAM,EAChB,MAAM,EAAE,MAAM,EACvB,OAAO,CAAC,EAAE,YAAY;CAIzB;AAED,MAAM,MAAM,qBAAqB,GAC7B,wBAAwB,GACxB,iBAAiB,GACjB,iBAAiB,GACjB,yBAAyB,GACzB,eAAe,GACf,mBAAmB,GACnB,kBAAkB,GAClB,mBAAmB,GACnB,2BAA2B,GAC3B,iBAAiB,GACjB,qBAAqB,CAAA;AAEzB;;;GAGG;AACH,qBAAa,iBAAkB,SAAQ,KAAK;IAIxC,QAAQ,CAAC,IAAI,EAAE,qBAAqB;IAHtC,QAAQ,CAAC,IAAI,uBAAsB;gBAGxB,IAAI,EAAE,qBAAqB,EACpC,OAAO,EAAE,MAAM;CAIlB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"execution.d.ts","sourceRoot":"","sources":["../../src/agents/execution.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,qBAAqB,EAAE,gBAAgB,EAAE,MAAM,cAAc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B,YAAY,CAuId"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"identity.d.ts","sourceRoot":"","sources":["../../src/agents/identity.ts"],"names":[],"mappings":"AAAA,mFAAmF;AACnF,wBAAgB,qBAAqB,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAE7D"}
|
package/dist/agents/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export type { AgentFileDataProjection, AgentFileDataResolverInput,
|
|
2
|
-
export {
|
|
1
|
+
export type { AgentFileDataProjection, AgentFileDataResolverInput, AgentToolResultFileResolverInput, ToModelMessagesOptions, } from "./adapters";
|
|
2
|
+
export { toModelMessages } from "./adapters";
|
|
3
3
|
export type { AgentApiGatewayCapabilityInput, AgentApiRoute } from "./api-gateway";
|
|
4
4
|
export { AGENT_API_GATEWAY_PREFIX, AGENT_API_ROUTES, createAgentApiGatewayCapability, isAllowedAgentApiRequest, isValidAgentApiGatewayCapability, } from "./api-gateway";
|
|
5
5
|
export type { AgentExecutionAuthorization, AgentExecutionIdentity } from "./authority";
|
|
@@ -13,7 +13,7 @@ export { serializeAgentContextForModel } from "./context-model";
|
|
|
13
13
|
export { resolveAgentContextParts } from "./context-resolution";
|
|
14
14
|
export type { AgentRunDispatchFailure, DispatchedAgentRun, DispatchQueuedAgentRunsInput, DispatchQueuedAgentRunsResult, } from "./dispatch";
|
|
15
15
|
export { agentRunQueueJobId, dispatchQueuedAgentRuns, dispatchQueuedSubagentRuns, subagentRunQueueJobId, workflowAgentNodeQueueJobId, } from "./dispatch";
|
|
16
|
-
export { AgentDefinitionError,
|
|
16
|
+
export { AgentDefinitionError, AgentRequestError, type AgentRequestErrorCode, AgentToolPublicError, AgentToolResultValidationError, } from "./errors";
|
|
17
17
|
export { agentContextCheckpointId, createAgentMessageId, createAgentRunExecutionToken, createAgentRunId, createAgentThreadId, createSubagentExecutionId, createSubagentRunId, } from "./ids";
|
|
18
18
|
export { AGENT_MESSAGE_CONTENT_VERSION, type AgentFilePart, type AgentMessage, type AgentMessagePart, type AgentMessagePartType, type AgentMessageRole, type AgentProviderStatePart, type AgentReasoningPart, type AgentStepStartPart, type AgentTextPart, type AgentToolCallPart, type AgentToolCallState, } from "./message";
|
|
19
19
|
export type { ModelLoopResult, PrepareModelStepInput, PrepareModelStepResult, RunModelLoopInput, } from "./model-loop";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/agents/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,uBAAuB,EACvB,0BAA0B,EAC1B,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/agents/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,uBAAuB,EACvB,0BAA0B,EAC1B,gCAAgC,EAChC,sBAAsB,GACvB,MAAM,YAAY,CAAA;AACnB,OAAO,EAAE,eAAe,EAAE,MAAM,YAAY,CAAA;AAC5C,YAAY,EAAE,8BAA8B,EAAE,aAAa,EAAE,MAAM,eAAe,CAAA;AAClF,OAAO,EACL,wBAAwB,EACxB,gBAAgB,EAChB,+BAA+B,EAC/B,wBAAwB,EACxB,gCAAgC,GACjC,MAAM,eAAe,CAAA;AACtB,YAAY,EAAE,2BAA2B,EAAE,sBAAsB,EAAE,MAAM,aAAa,CAAA;AACtF,OAAO,EACL,qBAAqB,EACrB,mCAAmC,EACnC,kCAAkC,EAClC,2CAA2C,GAC5C,MAAM,aAAa,CAAA;AACpB,OAAO,EAAE,eAAe,EAAE,MAAM,YAAY,CAAA;AAC5C,YAAY,EACV,sBAAsB,EACtB,iBAAiB,EACjB,kBAAkB,EAClB,gBAAgB,GACjB,MAAM,WAAW,CAAA;AAClB,OAAO,EACL,YAAY,EACZ,uBAAuB,EACvB,oBAAoB,EACpB,+BAA+B,EAC/B,+BAA+B,EAC/B,yBAAyB,EACzB,4BAA4B,GAC7B,MAAM,WAAW,CAAA;AAClB,YAAY,EACV,8BAA8B,EAC9B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