@xemahq/contracts 0.81.0 → 0.83.0
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/.source-stamp.json +2 -2
- package/dist/address/lib/resource-instance-address.d.ts.map +1 -1
- package/dist/address/lib/resource-instance-address.js.map +1 -1
- package/dist/agent-composition/lib/agent-ref-resolution.d.ts.map +1 -1
- package/dist/agent-composition/lib/agent-ref-resolution.js.map +1 -1
- package/dist/agent-composition/lib/agent.d.ts.map +1 -1
- package/dist/agent-composition/lib/agent.js.map +1 -1
- package/dist/agent-session/lib/lifecycle.d.ts +1 -1
- package/dist/agent-workspace/index.d.ts +1 -0
- package/dist/agent-workspace/index.d.ts.map +1 -1
- package/dist/agent-workspace/index.js +1 -0
- package/dist/agent-workspace/index.js.map +1 -1
- package/dist/agent-workspace/lib/interactive-workspace-layout.d.ts +25 -0
- package/dist/agent-workspace/lib/interactive-workspace-layout.d.ts.map +1 -0
- package/dist/agent-workspace/lib/interactive-workspace-layout.js +72 -0
- package/dist/agent-workspace/lib/interactive-workspace-layout.js.map +1 -0
- package/dist/artifact-store/index.d.ts +3 -0
- package/dist/artifact-store/index.d.ts.map +1 -0
- package/dist/artifact-store/index.js +19 -0
- package/dist/artifact-store/index.js.map +1 -0
- package/dist/artifact-store/lib/artifact-store-errors.d.ts +14 -0
- package/dist/artifact-store/lib/artifact-store-errors.d.ts.map +1 -0
- package/dist/artifact-store/lib/artifact-store-errors.js +41 -0
- package/dist/artifact-store/lib/artifact-store-errors.js.map +1 -0
- package/dist/artifact-store/lib/artifact-versioning-mode.d.ts +6 -0
- package/dist/artifact-store/lib/artifact-versioning-mode.d.ts.map +1 -0
- package/dist/artifact-store/lib/artifact-versioning-mode.js +10 -0
- package/dist/artifact-store/lib/artifact-versioning-mode.js.map +1 -0
- package/dist/biome/lib/biome-component-requirements.d.ts.map +1 -1
- package/dist/biome/lib/biome-component-requirements.js.map +1 -1
- package/dist/biome/lib/biome-component.d.ts +24 -0
- package/dist/biome/lib/biome-component.d.ts.map +1 -1
- package/dist/biome/lib/biome-component.js +85 -18
- package/dist/biome/lib/biome-component.js.map +1 -1
- package/dist/biome/lib/biome-generated-index.d.ts +18 -3
- package/dist/biome/lib/biome-generated-index.d.ts.map +1 -1
- package/dist/biome/lib/biome-kind.d.ts.map +1 -1
- package/dist/biome/lib/biome-kind.js.map +1 -1
- package/dist/biome/lib/biome-manifest.d.ts +94 -0
- package/dist/biome/lib/biome-manifest.d.ts.map +1 -1
- package/dist/biome/lib/biome-manifest.js +26 -1
- package/dist/biome/lib/biome-manifest.js.map +1 -1
- package/dist/biome/xema-biome.schema.json +214 -2
- package/dist/biome-catalog/lib/biome-permission-digest.d.ts +18 -0
- package/dist/biome-catalog/lib/biome-permission-digest.d.ts.map +1 -1
- package/dist/biome-catalog/lib/biome-permission-digest.js +14 -0
- package/dist/biome-catalog/lib/biome-permission-digest.js.map +1 -1
- package/dist/biome-dependency/index.d.ts +1 -0
- package/dist/biome-dependency/index.d.ts.map +1 -1
- package/dist/biome-dependency/index.js +1 -0
- package/dist/biome-dependency/index.js.map +1 -1
- package/dist/biome-dependency/lib/biome-dependency-contract.d.ts +13 -2
- package/dist/biome-dependency/lib/biome-dependency-contract.d.ts.map +1 -1
- package/dist/biome-dependency/lib/biome-dependency-contract.js +19 -2
- package/dist/biome-dependency/lib/biome-dependency-contract.js.map +1 -1
- package/dist/biome-dependency/lib/package-peer-facts.d.ts +125 -0
- package/dist/biome-dependency/lib/package-peer-facts.d.ts.map +1 -0
- package/dist/biome-dependency/lib/package-peer-facts.js +77 -0
- package/dist/biome-dependency/lib/package-peer-facts.js.map +1 -0
- package/dist/biome-dependency/lib/peer-seam-table.d.ts +3 -1
- package/dist/biome-dependency/lib/peer-seam-table.d.ts.map +1 -1
- package/dist/biome-dependency/lib/peer-seam-table.js +12 -1
- package/dist/biome-dependency/lib/peer-seam-table.js.map +1 -1
- package/dist/biome-dependency/lib/service-peer-contract.d.ts +1 -1
- package/dist/caller-context/index.d.ts +20 -0
- package/dist/caller-context/index.d.ts.map +1 -0
- package/dist/caller-context/index.js +36 -0
- package/dist/caller-context/index.js.map +1 -0
- package/dist/caller-context/lib/acting-chain.d.ts +20 -0
- package/dist/caller-context/lib/acting-chain.d.ts.map +1 -0
- package/dist/caller-context/lib/acting-chain.js +46 -0
- package/dist/caller-context/lib/acting-chain.js.map +1 -0
- package/dist/caller-context/lib/approval-mode.d.ts +9 -0
- package/dist/caller-context/lib/approval-mode.d.ts.map +1 -0
- package/dist/caller-context/lib/approval-mode.js +27 -0
- package/dist/caller-context/lib/approval-mode.js.map +1 -0
- package/dist/caller-context/lib/boundary-context-brand.d.ts +5 -0
- package/dist/caller-context/lib/boundary-context-brand.d.ts.map +1 -0
- package/dist/caller-context/lib/boundary-context-brand.js +17 -0
- package/dist/caller-context/lib/boundary-context-brand.js.map +1 -0
- package/dist/caller-context/lib/caller-context.d.ts +28 -0
- package/dist/caller-context/lib/caller-context.d.ts.map +1 -0
- package/dist/caller-context/lib/caller-context.js +53 -0
- package/dist/caller-context/lib/caller-context.js.map +1 -0
- package/dist/caller-context/lib/caller-org-scope.d.ts +4 -0
- package/dist/caller-context/lib/caller-org-scope.d.ts.map +1 -0
- package/dist/caller-context/lib/caller-org-scope.js +22 -0
- package/dist/caller-context/lib/caller-org-scope.js.map +1 -0
- package/dist/caller-context/lib/direct-service-actor.d.ts +3 -0
- package/dist/caller-context/lib/direct-service-actor.d.ts.map +1 -0
- package/dist/caller-context/lib/direct-service-actor.js +8 -0
- package/dist/caller-context/lib/direct-service-actor.js.map +1 -0
- package/dist/caller-context/lib/holds-org-authority.d.ts +10 -0
- package/dist/caller-context/lib/holds-org-authority.d.ts.map +1 -0
- package/dist/caller-context/lib/holds-org-authority.js +16 -0
- package/dist/caller-context/lib/holds-org-authority.js.map +1 -0
- package/dist/caller-context/lib/lent-capability.d.ts +11 -0
- package/dist/caller-context/lib/lent-capability.d.ts.map +1 -0
- package/dist/caller-context/lib/lent-capability.js +19 -0
- package/dist/caller-context/lib/lent-capability.js.map +1 -0
- package/dist/caller-context/lib/org-authority.d.ts +29 -0
- package/dist/caller-context/lib/org-authority.d.ts.map +1 -0
- package/dist/caller-context/lib/org-authority.js +84 -0
- package/dist/caller-context/lib/org-authority.js.map +1 -0
- package/dist/caller-context/lib/org-claim.d.ts +15 -0
- package/dist/caller-context/lib/org-claim.d.ts.map +1 -0
- package/dist/caller-context/lib/org-claim.js +29 -0
- package/dist/caller-context/lib/org-claim.js.map +1 -0
- package/dist/caller-context/lib/org-role.d.ts +8 -0
- package/dist/caller-context/lib/org-role.d.ts.map +1 -0
- package/dist/caller-context/lib/org-role.js +59 -0
- package/dist/caller-context/lib/org-role.js.map +1 -0
- package/dist/caller-context/lib/org-scope-mint.d.ts +22 -0
- package/dist/caller-context/lib/org-scope-mint.d.ts.map +1 -0
- package/dist/caller-context/lib/org-scope-mint.js +36 -0
- package/dist/caller-context/lib/org-scope-mint.js.map +1 -0
- package/dist/caller-context/lib/platform-sweep.d.ts +68 -0
- package/dist/caller-context/lib/platform-sweep.d.ts.map +1 -0
- package/dist/caller-context/lib/platform-sweep.js +134 -0
- package/dist/caller-context/lib/platform-sweep.js.map +1 -0
- package/dist/caller-context/lib/receiver-audience.d.ts +13 -0
- package/dist/caller-context/lib/receiver-audience.d.ts.map +1 -0
- package/dist/caller-context/lib/receiver-audience.js +36 -0
- package/dist/caller-context/lib/receiver-audience.js.map +1 -0
- package/dist/caller-context/lib/receiver-operation.d.ts +10 -0
- package/dist/caller-context/lib/receiver-operation.d.ts.map +1 -0
- package/dist/caller-context/lib/receiver-operation.js +22 -0
- package/dist/caller-context/lib/receiver-operation.js.map +1 -0
- package/dist/caller-context/lib/request-context.d.ts +51 -0
- package/dist/caller-context/lib/request-context.d.ts.map +1 -0
- package/dist/caller-context/lib/request-context.js +25 -0
- package/dist/caller-context/lib/request-context.js.map +1 -0
- package/dist/caller-context/lib/resolve-acting-user.d.ts +8 -0
- package/dist/caller-context/lib/resolve-acting-user.d.ts.map +1 -0
- package/dist/caller-context/lib/resolve-acting-user.js +44 -0
- package/dist/caller-context/lib/resolve-acting-user.js.map +1 -0
- package/dist/caller-context/lib/worker-context.d.ts +13 -0
- package/dist/caller-context/lib/worker-context.d.ts.map +1 -0
- package/dist/caller-context/lib/worker-context.js +9 -0
- package/dist/caller-context/lib/worker-context.js.map +1 -0
- package/dist/caller-context/lib/workflow-step-credential.d.ts +120 -0
- package/dist/caller-context/lib/workflow-step-credential.d.ts.map +1 -0
- package/dist/caller-context/lib/workflow-step-credential.js +169 -0
- package/dist/caller-context/lib/workflow-step-credential.js.map +1 -0
- package/dist/capability/index.d.ts +3 -3
- package/dist/capability/index.d.ts.map +1 -1
- package/dist/capability/index.js +3 -3
- package/dist/capability/index.js.map +1 -1
- package/dist/capability/lib/capability-aperture.js +1 -1
- package/dist/capability/lib/capability-aperture.js.map +1 -1
- package/dist/capability/lib/capability-caller-constraint.d.ts +23 -0
- package/dist/capability/lib/capability-caller-constraint.d.ts.map +1 -0
- package/dist/capability/lib/capability-caller-constraint.js +45 -0
- package/dist/capability/lib/capability-caller-constraint.js.map +1 -0
- package/dist/capability/lib/capability-contribution.d.ts +3 -0
- package/dist/capability/lib/capability-contribution.d.ts.map +1 -1
- package/dist/capability/lib/capability-contribution.js +11 -0
- package/dist/capability/lib/capability-contribution.js.map +1 -1
- package/dist/capability/lib/capability-ref-error.d.ts +12 -0
- package/dist/capability/lib/capability-ref-error.d.ts.map +1 -0
- package/dist/capability/lib/capability-ref-error.js +18 -0
- package/dist/capability/lib/capability-ref-error.js.map +1 -0
- package/dist/capability/lib/capability-ref.js +7 -7
- package/dist/capability/lib/capability-ref.js.map +1 -1
- package/dist/capability/lib/connector-capability-ref.js +4 -4
- package/dist/capability/lib/connector-capability-ref.js.map +1 -1
- package/dist/capability-domain/index.d.ts +2 -0
- package/dist/capability-domain/index.d.ts.map +1 -0
- package/dist/capability-domain/index.js +18 -0
- package/dist/capability-domain/index.js.map +1 -0
- package/dist/capability-domain/lib/capability-domain.d.ts.map +1 -0
- package/dist/capability-domain/lib/capability-domain.js.map +1 -0
- package/dist/capability-error/index.d.ts +3 -0
- package/dist/capability-error/index.d.ts.map +1 -0
- package/dist/capability-error/index.js +19 -0
- package/dist/capability-error/index.js.map +1 -0
- package/dist/capability-error/lib/capability-invocation-descriptor.d.ts.map +1 -0
- package/dist/{capability → capability-error}/lib/capability-invocation-descriptor.js +2 -2
- package/dist/capability-error/lib/capability-invocation-descriptor.js.map +1 -0
- package/dist/{capability → capability-error}/lib/errors.d.ts +3 -7
- package/dist/capability-error/lib/errors.d.ts.map +1 -0
- package/dist/{capability → capability-error}/lib/errors.js +4 -12
- package/dist/capability-error/lib/errors.js.map +1 -0
- package/dist/capability-projection/lib/projected-capability.d.ts +1 -0
- package/dist/capability-projection/lib/projected-capability.d.ts.map +1 -1
- package/dist/conformance/customer-edition-definition.vectors.json +987 -0
- package/dist/conformance/edition-source-pins.vectors.json +298 -0
- package/dist/conformance/optional-operation-admission.vectors.json +44 -0
- package/dist/connector/index.d.ts +5 -0
- package/dist/connector/index.d.ts.map +1 -1
- package/dist/connector/index.js +5 -0
- package/dist/connector/index.js.map +1 -1
- package/dist/connector/lib/adapter-key.enum.d.ts +11 -0
- package/dist/connector/lib/adapter-key.enum.d.ts.map +1 -0
- package/dist/connector/lib/adapter-key.enum.js +15 -0
- package/dist/connector/lib/adapter-key.enum.js.map +1 -0
- package/dist/connector/lib/connector-adapter-contribution.d.ts +10 -3
- package/dist/connector/lib/connector-adapter-contribution.d.ts.map +1 -1
- package/dist/connector/lib/connector-adapter-contribution.js +78 -21
- package/dist/connector/lib/connector-adapter-contribution.js.map +1 -1
- package/dist/connector/lib/connector-endpoint-source-declaration.d.ts +19 -0
- package/dist/connector/lib/connector-endpoint-source-declaration.d.ts.map +1 -0
- package/dist/connector/lib/connector-endpoint-source-declaration.js +50 -0
- package/dist/connector/lib/connector-endpoint-source-declaration.js.map +1 -0
- package/dist/connector/lib/connector-endpoint-source.d.ts +5 -0
- package/dist/connector/lib/connector-endpoint-source.d.ts.map +1 -0
- package/dist/connector/lib/connector-endpoint-source.js +9 -0
- package/dist/connector/lib/connector-endpoint-source.js.map +1 -0
- package/dist/connector/lib/provider-descriptor.d.ts.map +1 -1
- package/dist/connector/lib/provider-descriptor.js.map +1 -1
- package/dist/connector/lib/routes.d.ts +3 -0
- package/dist/connector/lib/routes.d.ts.map +1 -0
- package/dist/connector/lib/routes.js +6 -0
- package/dist/connector/lib/routes.js.map +1 -0
- package/dist/connector/lib/webhook-entity-kind.enum.d.ts +13 -0
- package/dist/connector/lib/webhook-entity-kind.enum.d.ts.map +1 -0
- package/dist/connector/lib/webhook-entity-kind.enum.js +17 -0
- package/dist/connector/lib/webhook-entity-kind.enum.js.map +1 -0
- package/dist/contribution/lib/contribution-kind.d.ts.map +1 -1
- package/dist/contribution/lib/contribution-kind.js.map +1 -1
- package/dist/contribution/lib/sync.d.ts +6 -2
- package/dist/contribution/lib/sync.d.ts.map +1 -1
- package/dist/contribution/lib/sync.js +26 -6
- package/dist/contribution/lib/sync.js.map +1 -1
- package/dist/deliverable-validation/index.d.ts +4 -0
- package/dist/deliverable-validation/index.d.ts.map +1 -0
- package/dist/deliverable-validation/index.js +20 -0
- package/dist/deliverable-validation/index.js.map +1 -0
- package/dist/deliverable-validation/lib/outcome.d.ts +30 -0
- package/dist/deliverable-validation/lib/outcome.d.ts.map +1 -0
- package/dist/deliverable-validation/lib/outcome.js +47 -0
- package/dist/deliverable-validation/lib/outcome.js.map +1 -0
- package/dist/deliverable-validation/lib/phase.d.ts +11 -0
- package/dist/deliverable-validation/lib/phase.d.ts.map +1 -0
- package/dist/deliverable-validation/lib/phase.js +29 -0
- package/dist/deliverable-validation/lib/phase.js.map +1 -0
- package/dist/deliverable-validation/lib/validator-declaration.d.ts +19 -0
- package/dist/deliverable-validation/lib/validator-declaration.d.ts.map +1 -0
- package/dist/deliverable-validation/lib/validator-declaration.js +37 -0
- package/dist/deliverable-validation/lib/validator-declaration.js.map +1 -0
- package/dist/deployment/index.d.ts +6 -0
- package/dist/deployment/index.d.ts.map +1 -1
- package/dist/deployment/index.js +6 -0
- package/dist/deployment/index.js.map +1 -1
- package/dist/deployment/lib/artifact-signer-trust.d.ts +72 -9
- package/dist/deployment/lib/artifact-signer-trust.d.ts.map +1 -1
- package/dist/deployment/lib/artifact-signer-trust.js +235 -22
- package/dist/deployment/lib/artifact-signer-trust.js.map +1 -1
- package/dist/deployment/lib/code-unit-order.d.ts +2 -0
- package/dist/deployment/lib/code-unit-order.d.ts.map +1 -0
- package/dist/deployment/lib/code-unit-order.js +7 -0
- package/dist/deployment/lib/code-unit-order.js.map +1 -0
- package/dist/deployment/lib/event-subscription-grant.d.ts +46 -0
- package/dist/deployment/lib/event-subscription-grant.d.ts.map +1 -0
- package/dist/deployment/lib/event-subscription-grant.js +52 -0
- package/dist/deployment/lib/event-subscription-grant.js.map +1 -0
- package/dist/deployment/lib/installed-event-subscription-grant.d.ts +60 -0
- package/dist/deployment/lib/installed-event-subscription-grant.d.ts.map +1 -0
- package/dist/deployment/lib/installed-event-subscription-grant.js +107 -0
- package/dist/deployment/lib/installed-event-subscription-grant.js.map +1 -0
- package/dist/deployment/lib/installed-workload-grant.d.ts +80 -0
- package/dist/deployment/lib/installed-workload-grant.d.ts.map +1 -0
- package/dist/deployment/lib/installed-workload-grant.js +119 -0
- package/dist/deployment/lib/installed-workload-grant.js.map +1 -0
- package/dist/deployment/lib/operation-grant.d.ts +19 -0
- package/dist/deployment/lib/operation-grant.d.ts.map +1 -1
- package/dist/deployment/lib/operation-grant.js +18 -9
- package/dist/deployment/lib/operation-grant.js.map +1 -1
- package/dist/deployment/lib/org-context-relay.d.ts +10 -0
- package/dist/deployment/lib/org-context-relay.d.ts.map +1 -0
- package/dist/deployment/lib/org-context-relay.js +22 -0
- package/dist/deployment/lib/org-context-relay.js.map +1 -0
- package/dist/deployment/lib/organization-sweep-grant.d.ts.map +1 -1
- package/dist/deployment/lib/organization-sweep-grant.js +4 -6
- package/dist/deployment/lib/organization-sweep-grant.js.map +1 -1
- package/dist/deployment/lib/platform-sweep.d.ts +3 -1
- package/dist/deployment/lib/platform-sweep.d.ts.map +1 -1
- package/dist/deployment/lib/platform-sweep.js +17 -1
- package/dist/deployment/lib/platform-sweep.js.map +1 -1
- package/dist/deployment/lib/resolved-deployment.d.ts +121 -2
- package/dist/deployment/lib/resolved-deployment.d.ts.map +1 -1
- package/dist/deployment/lib/resolved-deployment.js +140 -13
- package/dist/deployment/lib/resolved-deployment.js.map +1 -1
- package/dist/deployment/lib/store-event-ceiling.d.ts +43 -0
- package/dist/deployment/lib/store-event-ceiling.d.ts.map +1 -0
- package/dist/deployment/lib/store-event-ceiling.js +80 -0
- package/dist/deployment/lib/store-event-ceiling.js.map +1 -0
- package/dist/deployment/lib/store-workload-grant-ceiling.d.ts +59 -0
- package/dist/deployment/lib/store-workload-grant-ceiling.d.ts.map +1 -0
- package/dist/deployment/lib/store-workload-grant-ceiling.js +102 -0
- package/dist/deployment/lib/store-workload-grant-ceiling.js.map +1 -0
- package/dist/distribution/index.d.ts +10 -0
- package/dist/distribution/index.d.ts.map +1 -1
- package/dist/distribution/index.js +19 -6
- package/dist/distribution/index.js.map +1 -1
- package/dist/distribution/lib/contract-required-service-targets.d.ts +3 -0
- package/dist/distribution/lib/contract-required-service-targets.d.ts.map +1 -0
- package/dist/distribution/lib/contract-required-service-targets.js +16 -0
- package/dist/distribution/lib/contract-required-service-targets.js.map +1 -0
- package/dist/distribution/lib/customer-edition-definition.d.ts +8 -1
- package/dist/distribution/lib/customer-edition-definition.d.ts.map +1 -1
- package/dist/distribution/lib/customer-edition-definition.js +51 -2
- package/dist/distribution/lib/customer-edition-definition.js.map +1 -1
- package/dist/distribution/lib/distribution-lock.d.ts +17 -1
- package/dist/distribution/lib/distribution-lock.d.ts.map +1 -1
- package/dist/distribution/lib/distribution-lock.js +85 -4
- package/dist/distribution/lib/distribution-lock.js.map +1 -1
- package/dist/distribution/lib/distribution.d.ts +16 -0
- package/dist/distribution/lib/distribution.d.ts.map +1 -1
- package/dist/distribution/lib/distribution.js +39 -1
- package/dist/distribution/lib/distribution.js.map +1 -1
- package/dist/distribution/lib/event-subscription-admission.d.ts +22 -0
- package/dist/distribution/lib/event-subscription-admission.d.ts.map +1 -0
- package/dist/distribution/lib/event-subscription-admission.js +72 -0
- package/dist/distribution/lib/event-subscription-admission.js.map +1 -0
- package/dist/distribution/lib/image-lock.d.ts.map +1 -1
- package/dist/distribution/lib/image-lock.js +2 -10
- package/dist/distribution/lib/image-lock.js.map +1 -1
- package/dist/distribution/lib/image-producer-evidence.d.ts +114 -10
- package/dist/distribution/lib/image-producer-evidence.d.ts.map +1 -1
- package/dist/distribution/lib/image-producer-evidence.js +78 -31
- package/dist/distribution/lib/image-producer-evidence.js.map +1 -1
- package/dist/distribution/lib/installed-operation-ceiling-admission.d.ts +21 -0
- package/dist/distribution/lib/installed-operation-ceiling-admission.d.ts.map +1 -0
- package/dist/distribution/lib/installed-operation-ceiling-admission.js +54 -0
- package/dist/distribution/lib/installed-operation-ceiling-admission.js.map +1 -0
- package/dist/distribution/lib/kernel-contract-source-paths.d.ts +1 -1
- package/dist/distribution/lib/kernel-contract-source-paths.d.ts.map +1 -1
- package/dist/distribution/lib/kernel-contract-source-paths.js +31 -3
- package/dist/distribution/lib/kernel-contract-source-paths.js.map +1 -1
- package/dist/distribution/lib/operation-grant-admission.d.ts +29 -2
- package/dist/distribution/lib/operation-grant-admission.d.ts.map +1 -1
- package/dist/distribution/lib/operation-grant-admission.js +97 -19
- package/dist/distribution/lib/operation-grant-admission.js.map +1 -1
- package/dist/distribution/lib/org-context-relay-admission.d.ts +19 -0
- package/dist/distribution/lib/org-context-relay-admission.d.ts.map +1 -0
- package/dist/distribution/lib/org-context-relay-admission.js +50 -0
- package/dist/distribution/lib/org-context-relay-admission.js.map +1 -0
- package/dist/distribution/lib/organization-sweep-admission.d.ts +1 -0
- package/dist/distribution/lib/organization-sweep-admission.d.ts.map +1 -1
- package/dist/distribution/lib/organization-sweep-admission.js +4 -0
- package/dist/distribution/lib/organization-sweep-admission.js.map +1 -1
- package/dist/distribution/lib/package-image-lock.d.ts +99 -0
- package/dist/distribution/lib/package-image-lock.d.ts.map +1 -0
- package/dist/distribution/lib/package-image-lock.js +167 -0
- package/dist/distribution/lib/package-image-lock.js.map +1 -0
- package/dist/distribution/lib/package-image-trust.d.ts +36 -0
- package/dist/distribution/lib/package-image-trust.d.ts.map +1 -0
- package/dist/distribution/lib/package-image-trust.js +112 -0
- package/dist/distribution/lib/package-image-trust.js.map +1 -0
- package/dist/distribution/lib/resolve-unsplit-deployment.d.ts.map +1 -1
- package/dist/distribution/lib/resolve-unsplit-deployment.js +31 -0
- package/dist/distribution/lib/resolve-unsplit-deployment.js.map +1 -1
- package/dist/distribution/lib/store-workload-ceiling-admission.d.ts +17 -0
- package/dist/distribution/lib/store-workload-ceiling-admission.d.ts.map +1 -0
- package/dist/distribution/lib/store-workload-ceiling-admission.js +40 -0
- package/dist/distribution/lib/store-workload-ceiling-admission.js.map +1 -0
- package/dist/distribution/lib/store-workload-ceiling.d.ts +6 -0
- package/dist/distribution/lib/store-workload-ceiling.d.ts.map +1 -0
- package/dist/distribution/lib/store-workload-ceiling.js +13 -0
- package/dist/distribution/lib/store-workload-ceiling.js.map +1 -0
- package/dist/distribution/lib/verify-resolved-deployment.d.ts +12 -0
- package/dist/distribution/lib/verify-resolved-deployment.d.ts.map +1 -1
- package/dist/distribution/lib/verify-resolved-deployment.js +148 -4
- package/dist/distribution/lib/verify-resolved-deployment.js.map +1 -1
- package/dist/distribution/server/index.d.ts +8 -0
- package/dist/distribution/server/index.d.ts.map +1 -1
- package/dist/distribution/server/index.js +10 -0
- package/dist/distribution/server/index.js.map +1 -1
- package/dist/edge-stream/index.d.ts +2 -0
- package/dist/edge-stream/index.d.ts.map +1 -0
- package/dist/edge-stream/index.js +18 -0
- package/dist/edge-stream/index.js.map +1 -0
- package/dist/edge-stream/lib/edge-budget.d.ts +5 -0
- package/dist/edge-stream/lib/edge-budget.d.ts.map +1 -0
- package/dist/edge-stream/lib/edge-budget.js +8 -0
- package/dist/edge-stream/lib/edge-budget.js.map +1 -0
- package/dist/edition-protocol/edition-contract.schema.json +1 -1
- package/dist/edition-protocol/edition-protocol.json +1 -1
- package/dist/edition-protocol/lib/edition-protocol.d.ts +1 -1
- package/dist/edition-protocol/lib/edition-protocol.d.ts.map +1 -1
- package/dist/edition-protocol/lib/edition-protocol.js +3 -2
- package/dist/edition-protocol/lib/edition-protocol.js.map +1 -1
- package/dist/event-subscription/index.d.ts +4 -0
- package/dist/event-subscription/index.d.ts.map +1 -0
- package/dist/event-subscription/index.js +20 -0
- package/dist/event-subscription/index.js.map +1 -0
- package/dist/event-subscription/lib/event-subscription-clause.d.ts +61 -0
- package/dist/event-subscription/lib/event-subscription-clause.d.ts.map +1 -0
- package/dist/event-subscription/lib/event-subscription-clause.js +102 -0
- package/dist/event-subscription/lib/event-subscription-clause.js.map +1 -0
- package/dist/event-subscription/lib/event-type-pattern.d.ts +12 -0
- package/dist/event-subscription/lib/event-type-pattern.d.ts.map +1 -0
- package/dist/event-subscription/lib/event-type-pattern.js +47 -0
- package/dist/event-subscription/lib/event-type-pattern.js.map +1 -0
- package/dist/event-subscription/lib/visibility-tier.d.ts +10 -0
- package/dist/event-subscription/lib/visibility-tier.d.ts.map +1 -0
- package/dist/event-subscription/lib/visibility-tier.js +22 -0
- package/dist/event-subscription/lib/visibility-tier.js.map +1 -0
- package/dist/exact-optional/index.d.ts +2 -0
- package/dist/exact-optional/index.d.ts.map +1 -0
- package/dist/exact-optional/index.js +18 -0
- package/dist/exact-optional/index.js.map +1 -0
- package/dist/exact-optional/lib/omit-undefined.d.ts +2 -0
- package/dist/exact-optional/lib/omit-undefined.d.ts.map +1 -0
- package/dist/exact-optional/lib/omit-undefined.js +9 -0
- package/dist/exact-optional/lib/omit-undefined.js.map +1 -0
- package/dist/execution-environment/lib/execution-environment.d.ts +4 -2
- package/dist/execution-environment/lib/execution-environment.d.ts.map +1 -1
- package/dist/execution-environment/lib/execution-environment.js +5 -6
- package/dist/execution-environment/lib/execution-environment.js.map +1 -1
- package/dist/generated-client/index.d.ts +2 -0
- package/dist/generated-client/index.d.ts.map +1 -0
- package/dist/generated-client/index.js +18 -0
- package/dist/generated-client/index.js.map +1 -0
- package/dist/generated-client/lib/orval-client-config.d.ts +34 -0
- package/dist/generated-client/lib/orval-client-config.d.ts.map +1 -0
- package/dist/generated-client/lib/orval-client-config.js +33 -0
- package/dist/generated-client/lib/orval-client-config.js.map +1 -0
- package/dist/growth/index.d.ts +4 -0
- package/dist/growth/index.d.ts.map +1 -0
- package/dist/growth/index.js +18 -0
- package/dist/growth/index.js.map +1 -0
- package/dist/growth/lib/growth-gate.d.ts +24 -0
- package/dist/growth/lib/growth-gate.d.ts.map +1 -0
- package/dist/growth/lib/growth-gate.js +46 -0
- package/dist/growth/lib/growth-gate.js.map +1 -0
- package/dist/growth/lib/member-shell-mode.d.ts +13 -0
- package/dist/growth/lib/member-shell-mode.d.ts.map +1 -0
- package/dist/growth/lib/member-shell-mode.js +9 -0
- package/dist/growth/lib/member-shell-mode.js.map +1 -0
- package/dist/growth/lib/org-growth-policy.d.ts +17 -0
- package/dist/growth/lib/org-growth-policy.d.ts.map +1 -0
- package/dist/growth/lib/org-growth-policy.js +24 -0
- package/dist/growth/lib/org-growth-policy.js.map +1 -0
- package/dist/http/index.d.ts +1 -0
- package/dist/http/index.d.ts.map +1 -1
- package/dist/http/index.js +1 -0
- package/dist/http/index.js.map +1 -1
- package/dist/http/lib/problem-details.d.ts.map +1 -1
- package/dist/http/lib/problem-details.js.map +1 -1
- package/dist/http/lib/response-envelope.d.ts +2 -0
- package/dist/http/lib/response-envelope.d.ts.map +1 -0
- package/dist/http/lib/response-envelope.js +26 -0
- package/dist/http/lib/response-envelope.js.map +1 -0
- package/dist/http/lib/xema-error.d.ts.map +1 -1
- package/dist/http/lib/xema-error.js.map +1 -1
- package/dist/idempotency/index.d.ts +2 -0
- package/dist/idempotency/index.d.ts.map +1 -1
- package/dist/idempotency/index.js +2 -0
- package/dist/idempotency/index.js.map +1 -1
- package/dist/idempotency/lib/idempotency.service.d.ts +24 -0
- package/dist/idempotency/lib/idempotency.service.d.ts.map +1 -0
- package/dist/idempotency/lib/idempotency.service.js +23 -0
- package/dist/idempotency/lib/idempotency.service.js.map +1 -0
- package/dist/idempotency/lib/idempotency.tokens.d.ts +2 -0
- package/dist/idempotency/lib/idempotency.tokens.d.ts.map +1 -0
- package/dist/idempotency/lib/idempotency.tokens.js +5 -0
- package/dist/idempotency/lib/idempotency.tokens.js.map +1 -0
- package/dist/knowledge-graph/index.d.ts +2 -0
- package/dist/knowledge-graph/index.d.ts.map +1 -0
- package/dist/knowledge-graph/index.js +18 -0
- package/dist/knowledge-graph/index.js.map +1 -0
- package/dist/knowledge-graph/lib/knowledge-graph-errors.d.ts +5 -0
- package/dist/knowledge-graph/lib/knowledge-graph-errors.d.ts.map +1 -0
- package/dist/knowledge-graph/lib/knowledge-graph-errors.js +17 -0
- package/dist/knowledge-graph/lib/knowledge-graph-errors.js.map +1 -0
- package/dist/llm-gateway/index.d.ts +1 -0
- package/dist/llm-gateway/index.d.ts.map +1 -1
- package/dist/llm-gateway/index.js +1 -0
- package/dist/llm-gateway/index.js.map +1 -1
- package/dist/llm-gateway/lib/llm-gateway.d.ts +19 -0
- package/dist/llm-gateway/lib/llm-gateway.d.ts.map +1 -0
- package/dist/llm-gateway/lib/llm-gateway.js +51 -0
- package/dist/llm-gateway/lib/llm-gateway.js.map +1 -0
- package/dist/llm-stream/index.d.ts +6 -0
- package/dist/llm-stream/index.d.ts.map +1 -0
- package/dist/llm-stream/index.js +22 -0
- package/dist/llm-stream/index.js.map +1 -0
- package/dist/llm-stream/lib/consume-stream.d.ts +14 -0
- package/dist/llm-stream/lib/consume-stream.d.ts.map +1 -0
- package/dist/llm-stream/lib/consume-stream.js +57 -0
- package/dist/llm-stream/lib/consume-stream.js.map +1 -0
- package/dist/llm-stream/lib/progress.d.ts +17 -0
- package/dist/llm-stream/lib/progress.d.ts.map +1 -0
- package/dist/llm-stream/lib/progress.js +12 -0
- package/dist/llm-stream/lib/progress.js.map +1 -0
- package/dist/llm-stream/lib/reasoning-field.d.ts +29 -0
- package/dist/llm-stream/lib/reasoning-field.d.ts.map +1 -0
- package/dist/llm-stream/lib/reasoning-field.js +45 -0
- package/dist/llm-stream/lib/reasoning-field.js.map +1 -0
- package/dist/llm-stream/lib/think-tag-stream-parser.d.ts +17 -0
- package/dist/llm-stream/lib/think-tag-stream-parser.d.ts.map +1 -0
- package/dist/llm-stream/lib/think-tag-stream-parser.js +90 -0
- package/dist/llm-stream/lib/think-tag-stream-parser.js.map +1 -0
- package/dist/llm-stream/lib/types.d.ts +56 -0
- package/dist/llm-stream/lib/types.d.ts.map +1 -0
- package/dist/llm-stream/lib/types.js +3 -0
- package/dist/llm-stream/lib/types.js.map +1 -0
- package/dist/mcp-tool/index.d.ts +1 -0
- package/dist/mcp-tool/index.d.ts.map +1 -1
- package/dist/mcp-tool/index.js +1 -0
- package/dist/mcp-tool/index.js.map +1 -1
- package/dist/mcp-tool/lib/mcp-response-projection.d.ts +9 -0
- package/dist/mcp-tool/lib/mcp-response-projection.d.ts.map +1 -0
- package/dist/mcp-tool/lib/mcp-response-projection.js +57 -0
- package/dist/mcp-tool/lib/mcp-response-projection.js.map +1 -0
- package/dist/output/index.d.ts +1 -0
- package/dist/output/index.d.ts.map +1 -1
- package/dist/output/index.js +1 -0
- package/dist/output/index.js.map +1 -1
- package/dist/output/lib/deliverable-output-contract.d.ts +146 -0
- package/dist/output/lib/deliverable-output-contract.d.ts.map +1 -0
- package/dist/output/lib/deliverable-output-contract.js +162 -0
- package/dist/output/lib/deliverable-output-contract.js.map +1 -0
- package/dist/project-manifest/index.d.ts +4 -0
- package/dist/project-manifest/index.d.ts.map +1 -0
- package/dist/project-manifest/index.js +20 -0
- package/dist/project-manifest/index.js.map +1 -0
- package/dist/project-manifest/lib/manifest.enums.d.ts +55 -0
- package/dist/project-manifest/lib/manifest.enums.d.ts.map +1 -0
- package/dist/project-manifest/lib/manifest.enums.js +278 -0
- package/dist/project-manifest/lib/manifest.enums.js.map +1 -0
- package/dist/project-manifest/lib/manifest.types.d.ts +146 -0
- package/dist/project-manifest/lib/manifest.types.d.ts.map +1 -0
- package/dist/project-manifest/lib/manifest.types.js +54 -0
- package/dist/project-manifest/lib/manifest.types.js.map +1 -0
- package/dist/project-manifest/lib/manifest.validation.d.ts +17 -0
- package/dist/project-manifest/lib/manifest.validation.d.ts.map +1 -0
- package/dist/project-manifest/lib/manifest.validation.js +353 -0
- package/dist/project-manifest/lib/manifest.validation.js.map +1 -0
- package/dist/redaction/index.d.ts +4 -0
- package/dist/redaction/index.d.ts.map +1 -0
- package/dist/redaction/index.js +21 -0
- package/dist/redaction/index.js.map +1 -0
- package/dist/redaction/lib/default-rules.d.ts +3 -0
- package/dist/redaction/lib/default-rules.d.ts.map +1 -0
- package/dist/redaction/lib/default-rules.js +78 -0
- package/dist/redaction/lib/default-rules.js.map +1 -0
- package/dist/redaction/lib/problem-extensions.d.ts +24 -0
- package/dist/redaction/lib/problem-extensions.d.ts.map +1 -0
- package/dist/redaction/lib/problem-extensions.js +139 -0
- package/dist/redaction/lib/problem-extensions.js.map +1 -0
- package/dist/redaction/lib/redaction-rule.d.ts +8 -0
- package/dist/redaction/lib/redaction-rule.d.ts.map +1 -0
- package/dist/redaction/lib/redaction-rule.js +3 -0
- package/dist/redaction/lib/redaction-rule.js.map +1 -0
- package/dist/resolved-deployment-fixture/lib/resolved-deployment-fixture.d.ts +21 -1
- package/dist/resolved-deployment-fixture/lib/resolved-deployment-fixture.d.ts.map +1 -1
- package/dist/resolved-deployment-fixture/lib/resolved-deployment-fixture.js +76 -2
- package/dist/resolved-deployment-fixture/lib/resolved-deployment-fixture.js.map +1 -1
- package/dist/resource/lib/resource-kind.d.ts +7 -1
- package/dist/resource/lib/resource-kind.d.ts.map +1 -1
- package/dist/resource/lib/resource-kind.js +6 -0
- package/dist/resource/lib/resource-kind.js.map +1 -1
- package/dist/resource-accounting/index.d.ts +0 -1
- package/dist/resource-accounting/index.d.ts.map +1 -1
- package/dist/resource-accounting/index.js +0 -1
- package/dist/resource-accounting/index.js.map +1 -1
- package/dist/resource-accounting/lib/producer.d.ts +0 -2
- package/dist/resource-accounting/lib/producer.d.ts.map +1 -1
- package/dist/resource-accounting/lib/producer.js +0 -1
- package/dist/resource-accounting/lib/producer.js.map +1 -1
- package/dist/revision-target/lib/revision-target.d.ts +10 -4
- package/dist/revision-target/lib/revision-target.d.ts.map +1 -1
- package/dist/revision-target/lib/revision-target.js +26 -5
- package/dist/revision-target/lib/revision-target.js.map +1 -1
- package/dist/session-events/index.d.ts +4 -0
- package/dist/session-events/index.d.ts.map +1 -0
- package/dist/session-events/index.js +20 -0
- package/dist/session-events/index.js.map +1 -0
- package/dist/session-events/lib/agent-session.types.d.ts +166 -0
- package/dist/session-events/lib/agent-session.types.d.ts.map +1 -0
- package/dist/session-events/lib/agent-session.types.js +146 -0
- package/dist/session-events/lib/agent-session.types.js.map +1 -0
- package/dist/session-events/lib/safe-truncate.d.ts +2 -0
- package/dist/session-events/lib/safe-truncate.d.ts.map +1 -0
- package/dist/session-events/lib/safe-truncate.js +15 -0
- package/dist/session-events/lib/safe-truncate.js.map +1 -0
- package/dist/session-events/lib/session-event-payloads/actor.d.ts +12 -0
- package/dist/session-events/lib/session-event-payloads/actor.d.ts.map +1 -0
- package/dist/session-events/lib/session-event-payloads/actor.js +9 -0
- package/dist/session-events/lib/session-event-payloads/actor.js.map +1 -0
- package/dist/session-events/lib/session-event-payloads/assistant-message-metadata.d.ts +25 -0
- package/dist/session-events/lib/session-event-payloads/assistant-message-metadata.d.ts.map +1 -0
- package/dist/session-events/lib/session-event-payloads/assistant-message-metadata.js +26 -0
- package/dist/session-events/lib/session-event-payloads/assistant-message-metadata.js.map +1 -0
- package/dist/session-events/lib/session-event-payloads/delta-ledger-policy.d.ts +11 -0
- package/dist/session-events/lib/session-event-payloads/delta-ledger-policy.d.ts.map +1 -0
- package/dist/session-events/lib/session-event-payloads/delta-ledger-policy.js +43 -0
- package/dist/session-events/lib/session-event-payloads/delta-ledger-policy.js.map +1 -0
- package/dist/session-events/lib/session-event-payloads/error-codes.d.ts +41 -0
- package/dist/session-events/lib/session-event-payloads/error-codes.d.ts.map +1 -0
- package/dist/session-events/lib/session-event-payloads/error-codes.js +83 -0
- package/dist/session-events/lib/session-event-payloads/error-codes.js.map +1 -0
- package/dist/session-events/lib/session-event-payloads/index.d.ts +8 -0
- package/dist/session-events/lib/session-event-payloads/index.d.ts.map +1 -0
- package/dist/session-events/lib/session-event-payloads/index.js +24 -0
- package/dist/session-events/lib/session-event-payloads/index.js.map +1 -0
- package/dist/session-events/lib/session-event-payloads/payloads.d.ts +140 -0
- package/dist/session-events/lib/session-event-payloads/payloads.d.ts.map +1 -0
- package/dist/session-events/lib/session-event-payloads/payloads.js +148 -0
- package/dist/session-events/lib/session-event-payloads/payloads.js.map +1 -0
- package/dist/session-events/lib/session-event-payloads/tool-call-enums.d.ts +11 -0
- package/dist/session-events/lib/session-event-payloads/tool-call-enums.d.ts.map +1 -0
- package/dist/session-events/lib/session-event-payloads/tool-call-enums.js +16 -0
- package/dist/session-events/lib/session-event-payloads/tool-call-enums.js.map +1 -0
- package/dist/session-events/lib/session-event-payloads/validation.d.ts +86 -0
- package/dist/session-events/lib/session-event-payloads/validation.d.ts.map +1 -0
- package/dist/session-events/lib/session-event-payloads/validation.js +221 -0
- package/dist/session-events/lib/session-event-payloads/validation.js.map +1 -0
- package/dist/setting/index.d.ts +1 -0
- package/dist/setting/index.d.ts.map +1 -1
- package/dist/setting/index.js +1 -0
- package/dist/setting/index.js.map +1 -1
- package/dist/setting/lib/setting-lifecycle.d.ts +33 -0
- package/dist/setting/lib/setting-lifecycle.d.ts.map +1 -0
- package/dist/setting/lib/setting-lifecycle.js +64 -0
- package/dist/setting/lib/setting-lifecycle.js.map +1 -0
- package/dist/untrusted-content/index.d.ts +4 -0
- package/dist/untrusted-content/index.d.ts.map +1 -0
- package/dist/untrusted-content/index.js +20 -0
- package/dist/untrusted-content/index.js.map +1 -0
- package/dist/untrusted-content/lib/fence.d.ts +30 -0
- package/dist/untrusted-content/lib/fence.d.ts.map +1 -0
- package/dist/untrusted-content/lib/fence.js +94 -0
- package/dist/untrusted-content/lib/fence.js.map +1 -0
- package/dist/untrusted-content/lib/notice.d.ts +3 -0
- package/dist/untrusted-content/lib/notice.d.ts.map +1 -0
- package/dist/untrusted-content/lib/notice.js +11 -0
- package/dist/untrusted-content/lib/notice.js.map +1 -0
- package/dist/untrusted-content/lib/origin.d.ts +9 -0
- package/dist/untrusted-content/lib/origin.d.ts.map +1 -0
- package/dist/untrusted-content/lib/origin.js +13 -0
- package/dist/untrusted-content/lib/origin.js.map +1 -0
- package/dist/webapp-studio/index.d.ts +2 -0
- package/dist/webapp-studio/index.d.ts.map +1 -0
- package/dist/webapp-studio/index.js +18 -0
- package/dist/webapp-studio/index.js.map +1 -0
- package/dist/webapp-studio/lib/webapp-studio.d.ts +20 -0
- package/dist/webapp-studio/lib/webapp-studio.d.ts.map +1 -0
- package/dist/webapp-studio/lib/webapp-studio.js +27 -0
- package/dist/webapp-studio/lib/webapp-studio.js.map +1 -0
- package/dist/worker-runtime/lib/enums.d.ts +4 -1
- package/dist/worker-runtime/lib/enums.d.ts.map +1 -1
- package/dist/worker-runtime/lib/enums.js +3 -0
- package/dist/worker-runtime/lib/enums.js.map +1 -1
- package/dist/workflow/lib/compiled-run.d.ts +1 -1
- package/dist/workflow/lib/compiled-run.d.ts.map +1 -1
- package/dist/workflow/lib/enums.d.ts +2 -0
- package/dist/workflow/lib/enums.d.ts.map +1 -1
- package/dist/workflow/lib/enums.js +7 -1
- package/dist/workflow/lib/enums.js.map +1 -1
- package/dist/workflow/lib/errors.d.ts +1 -0
- package/dist/workflow/lib/errors.d.ts.map +1 -1
- package/dist/workflow/lib/errors.js +2 -0
- package/dist/workflow/lib/errors.js.map +1 -1
- package/package.json +4 -3
- package/dist/capability/lib/capability-domain.d.ts.map +0 -1
- package/dist/capability/lib/capability-domain.js.map +0 -1
- package/dist/capability/lib/capability-invocation-descriptor.d.ts.map +0 -1
- package/dist/capability/lib/capability-invocation-descriptor.js.map +0 -1
- package/dist/capability/lib/errors.d.ts.map +0 -1
- package/dist/capability/lib/errors.js.map +0 -1
- package/dist/resource-accounting/lib/reconciliation.d.ts +0 -81
- package/dist/resource-accounting/lib/reconciliation.d.ts.map +0 -1
- package/dist/resource-accounting/lib/reconciliation.js +0 -111
- package/dist/resource-accounting/lib/reconciliation.js.map +0 -1
- /package/dist/{capability → capability-domain}/lib/capability-domain.d.ts +0 -0
- /package/dist/{capability → capability-domain}/lib/capability-domain.js +0 -0
- /package/dist/{capability → capability-error}/lib/capability-invocation-descriptor.d.ts +0 -0
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.parseSseLine = parseSseLine;
|
|
4
|
+
exports.iterateLlmStream = iterateLlmStream;
|
|
5
|
+
const llm_gateway_1 = require("../../llm-gateway");
|
|
6
|
+
const progress_1 = require("./progress");
|
|
7
|
+
function parseSseLine(line) {
|
|
8
|
+
const trimmed = line.trim();
|
|
9
|
+
if (!trimmed.startsWith('data:'))
|
|
10
|
+
return null;
|
|
11
|
+
const payload = trimmed.slice(5).trimStart();
|
|
12
|
+
if (payload === '' || payload === '[DONE]')
|
|
13
|
+
return null;
|
|
14
|
+
return JSON.parse(payload);
|
|
15
|
+
}
|
|
16
|
+
function classifySseLine(line) {
|
|
17
|
+
const parsed = parseSseLine(line);
|
|
18
|
+
if (parsed === null)
|
|
19
|
+
return null;
|
|
20
|
+
if ((0, llm_gateway_1.isLlmGatewayErrorFrame)(parsed)) {
|
|
21
|
+
throw new llm_gateway_1.LlmGatewayStreamError(parsed.error);
|
|
22
|
+
}
|
|
23
|
+
if ((0, progress_1.isLlmProgressFrame)(parsed)) {
|
|
24
|
+
return { kind: 'progress', progress: parsed.progress };
|
|
25
|
+
}
|
|
26
|
+
return { kind: 'delta', delta: parsed };
|
|
27
|
+
}
|
|
28
|
+
async function* iterateLlmStream(stream) {
|
|
29
|
+
const reader = stream.getReader();
|
|
30
|
+
const decoder = new TextDecoder();
|
|
31
|
+
let buffer = '';
|
|
32
|
+
try {
|
|
33
|
+
for (;;) {
|
|
34
|
+
const { done, value } = await reader.read();
|
|
35
|
+
if (done)
|
|
36
|
+
break;
|
|
37
|
+
buffer += decoder.decode(value, { stream: true });
|
|
38
|
+
const lines = buffer.split('\n');
|
|
39
|
+
buffer = lines.pop() ?? '';
|
|
40
|
+
for (const line of lines) {
|
|
41
|
+
const classified = classifySseLine(line);
|
|
42
|
+
if (classified)
|
|
43
|
+
yield classified;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
buffer += decoder.decode();
|
|
47
|
+
if (buffer.length > 0) {
|
|
48
|
+
const classified = classifySseLine(buffer);
|
|
49
|
+
if (classified)
|
|
50
|
+
yield classified;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
finally {
|
|
54
|
+
reader.releaseLock();
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
//# sourceMappingURL=consume-stream.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"consume-stream.js","sourceRoot":"","sources":["../../../src/llm-stream/lib/consume-stream.ts"],"names":[],"mappings":";;AAmDA,oCAQC;AA2CD,4CAkCC;AAlHD,mDAG2B;AAC3B,yCAAyE;AAyBzE,SAAgB,YAAY,CAAC,IAAY;IACvC,MAAM,OAAO,GAAG,IAAI,CAAC,IAAI,EAAE,CAAC;IAC5B,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,OAAO,CAAC;QAAE,OAAO,IAAI,CAAC;IAG9C,MAAM,OAAO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YACjC,MAAM,GAAG,KAAK,CAAC,GAAG,EAAE,IAAI,EAAE,CAAC;YAE3B,KAAK,MAAM,IAAI,IAAI,KAAK,EAAE,CAAC;gBACzB,MAAM,UAAU,GAAG,eAAe,CAAC,IAAI,CAAC,CAAC;gBACzC,IAAI,UAAU;oBAAE,MAAM,UAAU,CAAC;YACnC,CAAC;QACH,CAAC;QAED,MAAM,IAAI,OAAO,CAAC,MAAM,EAAE,CAAC;QAC3B,IAAI,MAAM,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;YACtB,MAAM,UAAU,GAAG,eAAe,CAAC,MAAM,CAAC,CAAC;YAC3C,IAAI,UAAU;gBAAE,MAAM,UAAU,CAAC;QACnC,CAAC;IACH,CAAC;YAAS,CAAC;QACT,MAAM,CAAC,WAAW,EAAE,CAAC;IACvB,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export interface LlmProgressPayload {
|
|
2
|
+
elapsedMs: number;
|
|
3
|
+
reasoningChars: number;
|
|
4
|
+
contentChars: number;
|
|
5
|
+
reasoningTokens: number;
|
|
6
|
+
contentTokens: number;
|
|
7
|
+
phase: 'reasoning' | 'reasoning_then_content' | 'content';
|
|
8
|
+
estimatedCostMicros?: number;
|
|
9
|
+
currency?: string;
|
|
10
|
+
}
|
|
11
|
+
export interface LlmProgressFrame {
|
|
12
|
+
type: 'progress';
|
|
13
|
+
progress: LlmProgressPayload;
|
|
14
|
+
}
|
|
15
|
+
export declare function isLlmProgressFrame(value: unknown): value is LlmProgressFrame;
|
|
16
|
+
export declare const LLM_GATEWAY_PROGRESS_FRAMES_HEADER = "x-emit-progress-frames";
|
|
17
|
+
//# sourceMappingURL=progress.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"progress.d.ts","sourceRoot":"","sources":["../../../src/llm-stream/lib/progress.ts"],"names":[],"mappings":"AAsBA,MAAM,WAAW,kBAAkB;IAEjC,SAAS,EAAE,MAAM,CAAC;IAElB,cAAc,EAAE,MAAM,CAAC;IAEvB,YAAY,EAAE,MAAM,CAAC;IAErB,eAAe,EAAE,MAAM,CAAC;IAExB,aAAa,EAAE,MAAM,CAAC;IAEtB,KAAK,EAAE,WAAW,GAAG,wBAAwB,GAAG,SAAS,CAAC;IAK1D,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAK7B,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAMD,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,UAAU,CAAC;IACjB,QAAQ,EAAE,kBAAkB,CAAC;CAC9B;AAKD,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,gBAAgB,CAI5E;AAcD,eAAO,MAAM,kCAAkC,2BAA2B,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.LLM_GATEWAY_PROGRESS_FRAMES_HEADER = void 0;
|
|
4
|
+
exports.isLlmProgressFrame = isLlmProgressFrame;
|
|
5
|
+
function isLlmProgressFrame(value) {
|
|
6
|
+
if (!value || typeof value !== 'object')
|
|
7
|
+
return false;
|
|
8
|
+
const candidate = value;
|
|
9
|
+
return candidate.type === 'progress' && !!candidate.progress && typeof candidate.progress === 'object';
|
|
10
|
+
}
|
|
11
|
+
exports.LLM_GATEWAY_PROGRESS_FRAMES_HEADER = 'x-emit-progress-frames';
|
|
12
|
+
//# sourceMappingURL=progress.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"progress.js","sourceRoot":"","sources":["../../../src/llm-stream/lib/progress.ts"],"names":[],"mappings":";;;AA2DA,gDAIC;AAJD,SAAgB,kBAAkB,CAAC,KAAc;IAC/C,IAAI,CAAC,KAAK,IAAI,OAAO,KAAK,KAAK,QAAQ;QAAE,OAAO,KAAK,CAAC;IACtD,MAAM,SAAS,GAAG,KAA+C,CAAC;IAClE,OAAO,SAAS,CAAC,IAAI,KAAK,UAAU,IAAI,CAAC,CAAC,SAAS,CAAC,QAAQ,IAAI,OAAO,SAAS,CAAC,QAAQ,KAAK,QAAQ,CAAC;AACzG,CAAC;AAcY,QAAA,kCAAkC,GAAG,wBAAwB,CAAC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
export declare enum ReasoningDetailType {
|
|
2
|
+
Text = "reasoning.text",
|
|
3
|
+
Summary = "reasoning.summary",
|
|
4
|
+
Encrypted = "reasoning.encrypted"
|
|
5
|
+
}
|
|
6
|
+
export declare const REASONING_TEXT_FIELDS: readonly ["reasoning_content", "reasoning", "thinking"];
|
|
7
|
+
export interface ReasoningDetail {
|
|
8
|
+
type?: string | null;
|
|
9
|
+
text?: string | null;
|
|
10
|
+
summary?: string | null;
|
|
11
|
+
data?: string | null;
|
|
12
|
+
signature?: string | null;
|
|
13
|
+
id?: string | null;
|
|
14
|
+
index?: number | null;
|
|
15
|
+
}
|
|
16
|
+
export interface ThinkingBlock {
|
|
17
|
+
type?: string | null;
|
|
18
|
+
thinking?: string | null;
|
|
19
|
+
signature?: string | null;
|
|
20
|
+
}
|
|
21
|
+
export interface ReasoningBearingMessage {
|
|
22
|
+
reasoning_content?: string | null;
|
|
23
|
+
reasoning?: string | null;
|
|
24
|
+
thinking?: string | null;
|
|
25
|
+
reasoning_details?: ReasoningDetail[] | null;
|
|
26
|
+
thinking_blocks?: ThinkingBlock[] | null;
|
|
27
|
+
}
|
|
28
|
+
export declare function readReasoningDelta(body: ReasoningBearingMessage | undefined | null): string;
|
|
29
|
+
//# sourceMappingURL=reasoning-field.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"reasoning-field.d.ts","sourceRoot":"","sources":["../../../src/llm-stream/lib/reasoning-field.ts"],"names":[],"mappings":"AAiCA,oBAAY,mBAAmB;IAE7B,IAAI,mBAAmB;IAEvB,OAAO,sBAAsB;IAE7B,SAAS,wBAAwB;CAClC;AAMD,eAAO,MAAM,qBAAqB,yDAIxB,CAAC;AAGX,MAAM,WAAW,eAAe;IAC9B,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAExB,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,EAAE,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACvB;AAGD,MAAM,WAAW,aAAa;IAC5B,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC3B;AAMD,MAAM,WAAW,uBAAuB;IACtC,iBAAiB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAClC,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,iBAAiB,CAAC,EAAE,eAAe,EAAE,GAAG,IAAI,CAAC;IAC7C,eAAe,CAAC,EAAE,aAAa,EAAE,GAAG,IAAI,CAAC;CAC1C;AA0BD,wBAAgB,kBAAkB,CAChC,IAAI,EAAE,uBAAuB,GAAG,SAAS,GAAG,IAAI,GAC/C,MAAM,CAuBR"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.REASONING_TEXT_FIELDS = exports.ReasoningDetailType = void 0;
|
|
4
|
+
exports.readReasoningDelta = readReasoningDelta;
|
|
5
|
+
var ReasoningDetailType;
|
|
6
|
+
(function (ReasoningDetailType) {
|
|
7
|
+
ReasoningDetailType["Text"] = "reasoning.text";
|
|
8
|
+
ReasoningDetailType["Summary"] = "reasoning.summary";
|
|
9
|
+
ReasoningDetailType["Encrypted"] = "reasoning.encrypted";
|
|
10
|
+
})(ReasoningDetailType || (exports.ReasoningDetailType = ReasoningDetailType = {}));
|
|
11
|
+
exports.REASONING_TEXT_FIELDS = [
|
|
12
|
+
'reasoning_content',
|
|
13
|
+
'reasoning',
|
|
14
|
+
'thinking',
|
|
15
|
+
];
|
|
16
|
+
function detailText(detail) {
|
|
17
|
+
if (detail.type === ReasoningDetailType.Encrypted) {
|
|
18
|
+
return '';
|
|
19
|
+
}
|
|
20
|
+
if (typeof detail.text === 'string') {
|
|
21
|
+
return detail.text;
|
|
22
|
+
}
|
|
23
|
+
return typeof detail.summary === 'string' ? detail.summary : '';
|
|
24
|
+
}
|
|
25
|
+
function readReasoningDelta(body) {
|
|
26
|
+
if (!body) {
|
|
27
|
+
return '';
|
|
28
|
+
}
|
|
29
|
+
if (Array.isArray(body.reasoning_details) && body.reasoning_details.length > 0) {
|
|
30
|
+
return body.reasoning_details.map(detailText).join('');
|
|
31
|
+
}
|
|
32
|
+
if (Array.isArray(body.thinking_blocks) && body.thinking_blocks.length > 0) {
|
|
33
|
+
return body.thinking_blocks
|
|
34
|
+
.map((block) => (typeof block.thinking === 'string' ? block.thinking : ''))
|
|
35
|
+
.join('');
|
|
36
|
+
}
|
|
37
|
+
for (const field of exports.REASONING_TEXT_FIELDS) {
|
|
38
|
+
const value = body[field];
|
|
39
|
+
if (typeof value === 'string') {
|
|
40
|
+
return value;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
return '';
|
|
44
|
+
}
|
|
45
|
+
//# sourceMappingURL=reasoning-field.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"reasoning-field.js","sourceRoot":"","sources":["../../../src/llm-stream/lib/reasoning-field.ts"],"names":[],"mappings":";;;AA2GA,gDAyBC;AAnGD,IAAY,mBAOX;AAPD,WAAY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aAC1E,IAAI,CAAC,EAAE,CAAC,CAAC;IACd,CAAC;IAED,KAAK,MAAM,KAAK,IAAI,6BAAqB,EAAE,CAAC;QAC1C,MAAM,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC;QAC1B,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE,CAAC;YAC9B,OAAO,KAAK,CAAC;QACf,CAAC;IACH,CAAC;IAED,OAAO,EAAE,CAAC;AACZ,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export interface ParsedThinkChunk {
|
|
2
|
+
readonly content: string;
|
|
3
|
+
readonly reasoning: string;
|
|
4
|
+
}
|
|
5
|
+
export declare class UnterminatedThinkBlockError extends Error {
|
|
6
|
+
constructor();
|
|
7
|
+
}
|
|
8
|
+
export declare class ThinkTagStreamParser {
|
|
9
|
+
private mode;
|
|
10
|
+
private pending;
|
|
11
|
+
private finished;
|
|
12
|
+
push(chunk: string): ParsedThinkChunk;
|
|
13
|
+
finish(): ParsedThinkChunk;
|
|
14
|
+
private drain;
|
|
15
|
+
}
|
|
16
|
+
export declare function splitThinkTaggedContent(content: string): ParsedThinkChunk;
|
|
17
|
+
//# sourceMappingURL=think-tag-stream-parser.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"think-tag-stream-parser.d.ts","sourceRoot":"","sources":["../../../src/llm-stream/lib/think-tag-stream-parser.ts"],"names":[],"mappings":"AAGA,MAAM,WAAW,gBAAgB;IAE/B,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IAEzB,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;CAC5B;AASD,qBAAa,2BAA4B,SAAQ,KAAK;;CAKrD;AASD,qBAAa,oBAAoB;IAC/B,OAAO,CAAC,IAAI,CAAsC;IAClD,OAAO,CAAC,OAAO,CAAM;IACrB,OAAO,CAAC,QAAQ,CAAS;IAEzB,IAAI,CAAC,KAAK,EAAE,MAAM,GAAG,gBAAgB;IAcrC,MAAM,IAAI,gBAAgB;IAW1B,OAAO,CAAC,KAAK;CAmCd;AAqBD,wBAAgB,uBAAuB,CAAC,OAAO,EAAE,MAAM,GAAG,gBAAgB,CAQzE"}
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ThinkTagStreamParser = exports.UnterminatedThinkBlockError = void 0;
|
|
4
|
+
exports.splitThinkTaggedContent = splitThinkTaggedContent;
|
|
5
|
+
const OPEN_TAG = '<think>';
|
|
6
|
+
const CLOSE_TAG = '</think>';
|
|
7
|
+
class UnterminatedThinkBlockError extends Error {
|
|
8
|
+
constructor() {
|
|
9
|
+
super('LLM stream ended before the closing </think> tag.');
|
|
10
|
+
this.name = 'UnterminatedThinkBlockError';
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
exports.UnterminatedThinkBlockError = UnterminatedThinkBlockError;
|
|
14
|
+
class ThinkTagStreamParser {
|
|
15
|
+
mode = 'content';
|
|
16
|
+
pending = '';
|
|
17
|
+
finished = false;
|
|
18
|
+
push(chunk) {
|
|
19
|
+
if (this.finished) {
|
|
20
|
+
throw new Error('Cannot push content after ThinkTagStreamParser.finish().');
|
|
21
|
+
}
|
|
22
|
+
this.pending += chunk;
|
|
23
|
+
return this.drain(false);
|
|
24
|
+
}
|
|
25
|
+
finish() {
|
|
26
|
+
if (this.finished) {
|
|
27
|
+
throw new Error('ThinkTagStreamParser.finish() may only be called once.');
|
|
28
|
+
}
|
|
29
|
+
this.finished = true;
|
|
30
|
+
if (this.mode === 'reasoning') {
|
|
31
|
+
throw new UnterminatedThinkBlockError();
|
|
32
|
+
}
|
|
33
|
+
return this.drain(true);
|
|
34
|
+
}
|
|
35
|
+
drain(flushAll) {
|
|
36
|
+
let content = '';
|
|
37
|
+
let reasoning = '';
|
|
38
|
+
while (this.pending.length > 0) {
|
|
39
|
+
const delimiter = this.mode === 'content' ? OPEN_TAG : CLOSE_TAG;
|
|
40
|
+
const delimiterIndex = this.pending.toLowerCase().indexOf(delimiter);
|
|
41
|
+
if (delimiterIndex >= 0) {
|
|
42
|
+
const text = this.pending.slice(0, delimiterIndex);
|
|
43
|
+
if (this.mode === 'content') {
|
|
44
|
+
content += text;
|
|
45
|
+
}
|
|
46
|
+
else {
|
|
47
|
+
reasoning += text;
|
|
48
|
+
}
|
|
49
|
+
this.pending = this.pending.slice(delimiterIndex + delimiter.length);
|
|
50
|
+
this.mode = this.mode === 'content' ? 'reasoning' : 'content';
|
|
51
|
+
continue;
|
|
52
|
+
}
|
|
53
|
+
const retainedLength = flushAll
|
|
54
|
+
? 0
|
|
55
|
+
: longestDelimiterPrefixSuffix(this.pending, delimiter);
|
|
56
|
+
const emittedLength = this.pending.length - retainedLength;
|
|
57
|
+
const text = this.pending.slice(0, emittedLength);
|
|
58
|
+
if (this.mode === 'content') {
|
|
59
|
+
content += text;
|
|
60
|
+
}
|
|
61
|
+
else {
|
|
62
|
+
reasoning += text;
|
|
63
|
+
}
|
|
64
|
+
this.pending = this.pending.slice(emittedLength);
|
|
65
|
+
break;
|
|
66
|
+
}
|
|
67
|
+
return { content, reasoning };
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
exports.ThinkTagStreamParser = ThinkTagStreamParser;
|
|
71
|
+
function longestDelimiterPrefixSuffix(value, delimiter) {
|
|
72
|
+
const lowerValue = value.toLowerCase();
|
|
73
|
+
const max = Math.min(lowerValue.length, delimiter.length - 1);
|
|
74
|
+
for (let length = max; length > 0; length -= 1) {
|
|
75
|
+
if (lowerValue.endsWith(delimiter.slice(0, length))) {
|
|
76
|
+
return length;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
return 0;
|
|
80
|
+
}
|
|
81
|
+
function splitThinkTaggedContent(content) {
|
|
82
|
+
const parser = new ThinkTagStreamParser();
|
|
83
|
+
const first = parser.push(content);
|
|
84
|
+
const final = parser.finish();
|
|
85
|
+
return {
|
|
86
|
+
content: first.content + final.content,
|
|
87
|
+
reasoning: first.reasoning + final.reasoning,
|
|
88
|
+
};
|
|
89
|
+
}
|
|
90
|
+
//# sourceMappingURL=think-tag-stream-parser.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"think-tag-stream-parser.js","sourceRoot":"","sources":["../../../src/llm-stream/lib/think-tag-stream-parser.ts"],"names":[],"mappings":";;;AAqHA,0DAQC;AA7HD,MAAM,QAAQ,GAAG,SAAS,CAAC;AAC3B,MAAM,SAAS,GAAG,UAAU,CAAC;AAgB7B,MAAa,2BAA4B,SAAQ,KAAK;IACpD;QACE,KAAK,CAAC,mDAAmD,CAAC,CAAC;QAC3D,IAAI,CAAC,IAAI,GAAG,6BAA6B,CAAC;IAC5C,CAAC;CACF;AALD,kEAKC;AASD,MAAa,oBAAoB;IACvB,IAAI,GAA4B,SAAS,CAAC;IAC1C,OAAO,GAAG,EAAE,CAAC;IACb,QAAQ,GAAG,KAAK,CAAC;IAEzB,IAAI,CAAC,KAAa;QAChB,IAAI,IAAI,CAAC,QAAQ,EAAE,CAAC;YAClB,MAAM,IAAI,KAAK,CACb,0DAA0D,CAC3D,CAAC;QACJ,CAAC;QACD,IAAI,CAAC,OAAO,IAAI,KAAK,CAAC;QACtB,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;IAC3B,CAAC;IAMD,MAAM;QACJ,IAAI,IAAI,CAAC,QAAQ,EAAE,CAAC;YAClB,MAAM,IAAI,KAAK,CAAC,wDAAwD,CAAC,CAAC;QAC5E,CAAC;QACD,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC;QACrB,IAAI,IAAI,CAAC,IAAI,KAAK,WAAW,EAAE,CAAC;YAC9B,MAAM,IAAI,2BAA2B,EAAE,CAAC;QAC1C,CAAC;QACD,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;IAC1B,CAAC;IAEO,KAAK,CAAC,QAAiB;QAC7B,IAAI,OAAO,GAAG,EAAE,C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' | 'tool';
|
|
3
|
+
export interface ChatMessage extends ReasoningBearingMessage {
|
|
4
|
+
role: ChatMessageRole;
|
|
5
|
+
content: string | null;
|
|
6
|
+
tool_calls?: AssistantToolCall[];
|
|
7
|
+
tool_call_id?: string;
|
|
8
|
+
}
|
|
9
|
+
export interface ToolDefinition {
|
|
10
|
+
type: 'function';
|
|
11
|
+
function: {
|
|
12
|
+
name: string;
|
|
13
|
+
description: string;
|
|
14
|
+
parameters: {
|
|
15
|
+
type: 'object';
|
|
16
|
+
properties: Record<string, unknown>;
|
|
17
|
+
required?: string[];
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
export interface AssistantToolCall {
|
|
22
|
+
id: string;
|
|
23
|
+
type: 'function';
|
|
24
|
+
function: {
|
|
25
|
+
name: string;
|
|
26
|
+
arguments: string;
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
export interface StreamDelta {
|
|
30
|
+
id?: string;
|
|
31
|
+
choices?: Array<{
|
|
32
|
+
index?: number;
|
|
33
|
+
delta?: StreamDeltaBody;
|
|
34
|
+
finish_reason?: string | null;
|
|
35
|
+
}>;
|
|
36
|
+
}
|
|
37
|
+
export interface StreamDeltaBody extends ReasoningBearingMessage {
|
|
38
|
+
role?: ChatMessageRole;
|
|
39
|
+
content?: string;
|
|
40
|
+
tool_calls?: Array<{
|
|
41
|
+
index: number;
|
|
42
|
+
id?: string;
|
|
43
|
+
type?: 'function';
|
|
44
|
+
function?: {
|
|
45
|
+
name?: string;
|
|
46
|
+
arguments?: string;
|
|
47
|
+
};
|
|
48
|
+
}>;
|
|
49
|
+
}
|
|
50
|
+
export interface ConsumedStream {
|
|
51
|
+
content: string;
|
|
52
|
+
reasoning: string;
|
|
53
|
+
toolCalls: AssistantToolCall[];
|
|
54
|
+
finishReason: string | null;
|
|
55
|
+
}
|
|
56
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types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,EAAE,MAAM,CAAC;IACjB,UAAU,CAAC,EAAE,KAAK,CAAC;QACjB,KAAK,EAAE,MAAM,CAAC;QACd,EAAE,CAAC,EAAE,MAAM,CAAC;QACZ,IAAI,CAAC,EAAE,UAAU,CAAC;QAClB,QAAQ,CAAC,EAAE;YAAE,IAAI,CAAC,EAAE,MAAM,CAAC;YAAC,SAAS,CAAC,EAAE,MAAM,CAAA;SAAE,CAAC;KAClD,CAAC,CAAC;CACJ;AAQD,MAAM,WAAW,cAAc;IAE7B,OAAO,EAAE,MAAM,CAAC;IAEhB,SAAS,EAAE,MAAM,CAAC;IAElB,SAAS,EAAE,iBAAiB,EAAE,CAAC;IAE/B,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;CAC7B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/llm-stream/lib/types.ts"],"names":[],"mappings":""}
|
package/dist/mcp-tool/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/mcp-tool/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AACnC,cAAc,yBAAyB,CAAC;AACxC,cAAc,qBAAqB,CAAC;AACpC,cAAc,sBAAsB,CAAC;AACrC,cAAc,qBAAqB,CAAC;AACpC,cAAc,sBAAsB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/mcp-tool/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AACnC,cAAc,yBAAyB,CAAC;AACxC,cAAc,qBAAqB,CAAC;AACpC,cAAc,sBAAsB,CAAC;AACrC,cAAc,qBAAqB,CAAC;AACpC,cAAc,sBAAsB,CAAC;AACrC,cAAc,+BAA+B,CAAC"}
|
package/dist/mcp-tool/index.js
CHANGED
|
@@ -20,4 +20,5 @@ __exportStar(require("./lib/provider-kind"), exports);
|
|
|
20
20
|
__exportStar(require("./lib/resolver-scope"), exports);
|
|
21
21
|
__exportStar(require("./lib/tool-provider"), exports);
|
|
22
22
|
__exportStar(require("./lib/tool-selection"), exports);
|
|
23
|
+
__exportStar(require("./lib/mcp-response-projection"), exports);
|
|
23
24
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/mcp-tool/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,qDAAmC;AACnC,0DAAwC;AACxC,sDAAoC;AACpC,uDAAqC;AACrC,sDAAoC;AACpC,uDAAqC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/mcp-tool/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,qDAAmC;AACnC,0DAAwC;AACxC,sDAAoC;AACpC,uDAAqC;AACrC,sDAAoC;AACpC,uDAAqC;AACrC,gEAA8C"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export interface McpProjectionOptions {
|
|
2
|
+
maxItems?: number;
|
|
3
|
+
maxChars?: number;
|
|
4
|
+
excludeFields?: string[];
|
|
5
|
+
maxDepth?: number;
|
|
6
|
+
maxStringLength?: number;
|
|
7
|
+
}
|
|
8
|
+
export declare function projectMcpResponse(data: unknown, options?: McpProjectionOptions): string;
|
|
9
|
+
//# sourceMappingURL=mcp-response-projection.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mcp-response-projection.d.ts","sourceRoot":"","sources":["../../../src/mcp-tool/lib/mcp-response-projection.ts"],"names":[],"mappings":"AAiBA,MAAM,WAAW,oBAAoB;IAEnC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAGlB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAGlB,aAAa,CAAC,EAAE,MAAM,EAAE,CAAC;IAGzB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAGlB,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B;AAoBD,wBAAgB,kBAAkB,CAChC,IAAI,EAAE,OAAO,EACb,OAAO,CAAC,EAAE,oBAAoB,GAC7B,MAAM,CAgBR"}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.projectMcpResponse = projectMcpResponse;
|
|
4
|
+
const DEFAULT_OPTIONS = {
|
|
5
|
+
maxItems: 50,
|
|
6
|
+
maxChars: 16_000,
|
|
7
|
+
maxDepth: 3,
|
|
8
|
+
maxStringLength: 500,
|
|
9
|
+
excludeFields: [],
|
|
10
|
+
};
|
|
11
|
+
function projectMcpResponse(data, options) {
|
|
12
|
+
const opts = { ...DEFAULT_OPTIONS, ...options };
|
|
13
|
+
const projected = projectValue(data, opts, 0);
|
|
14
|
+
const json = JSON.stringify(projected, null, 2);
|
|
15
|
+
if (json.length <= opts.maxChars) {
|
|
16
|
+
return json;
|
|
17
|
+
}
|
|
18
|
+
const truncated = json.slice(0, opts.maxChars);
|
|
19
|
+
const lastNewline = truncated.lastIndexOf('\n');
|
|
20
|
+
return ((lastNewline > 0 ? truncated.slice(0, lastNewline) : truncated) +
|
|
21
|
+
'\n... [response truncated]');
|
|
22
|
+
}
|
|
23
|
+
function projectValue(value, opts, depth) {
|
|
24
|
+
if (value === null || value === undefined)
|
|
25
|
+
return value;
|
|
26
|
+
if (typeof value === 'string') {
|
|
27
|
+
if (value.length > opts.maxStringLength) {
|
|
28
|
+
return value.slice(0, opts.maxStringLength) + '...';
|
|
29
|
+
}
|
|
30
|
+
return value;
|
|
31
|
+
}
|
|
32
|
+
if (typeof value === 'number' || typeof value === 'boolean')
|
|
33
|
+
return value;
|
|
34
|
+
if (Array.isArray(value)) {
|
|
35
|
+
const items = value.slice(0, opts.maxItems);
|
|
36
|
+
const projected = items.map((item) => projectValue(item, opts, depth + 1));
|
|
37
|
+
if (value.length > opts.maxItems) {
|
|
38
|
+
projected.push(`... and ${value.length - opts.maxItems} more items`);
|
|
39
|
+
}
|
|
40
|
+
return projected;
|
|
41
|
+
}
|
|
42
|
+
if (typeof value === 'object') {
|
|
43
|
+
if (depth >= opts.maxDepth) {
|
|
44
|
+
return '[nested object]';
|
|
45
|
+
}
|
|
46
|
+
const result = {};
|
|
47
|
+
const excludeSet = new Set(opts.excludeFields);
|
|
48
|
+
for (const [key, val] of Object.entries(value)) {
|
|
49
|
+
if (excludeSet.has(key))
|
|
50
|
+
continue;
|
|
51
|
+
result[key] = projectValue(val, opts, depth + 1);
|
|
52
|
+
}
|
|
53
|
+
return result;
|
|
54
|
+
}
|
|
55
|
+
return String(value);
|
|
56
|
+
}
|
|
57
|
+
//# sourceMappingURL=mcp-response-projection.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mcp-response-projection.js","sourceRoot":"","sources":["../../../src/mcp-tool/lib/mcp-response-projection.ts"],"names":[],"mappings":";;AAoDA,gDAmBC;AArCD,MAAM,eAAe,GAAmC;IACtD,QAAQ,EAAE,EAAE;IACZ,QAAQ,EAAE,MAAM;IAChB,QAAQ,EAAE,CAAC;IACX,eAAe,EAAE,GAAG;IACpB,aAAa,EAAE,EAAE;CAClB,CAAC;AAYF,SAAgB,kBAAkB,CAChC,IAAa,EACb,OAA8B;IAE9B,MAAM,IAAI,GAAG,EAAE,GAAG,eAAe,EAAE,GAAG,OAAO,EAAE,CAAC;IAChD,MAAM,SAAS,GAAG,YAAY,CAAC,IAAI,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC;IAC9C,MAAM,IAAI,GAAG,IAAI,CAAC,SAAS,CAAC,SAAS,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC;IAEhD,IAAI,IAAI,CAAC,MAAM,IAAI,IAAI,CAAC,QAAQ,EAAE,CAAC;QACjC,OAAO,IAAI,CAAC;IACd,CAAC;IAGD,MAAM,SAAS,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,EAAE,IAAI,CAAC,QAAQ,CA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C;IACnB,CAAC;IAED,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE,CAAC;QAC9B,IAAI,KAAK,IAAI,IAAI,CAAC,QAAQ,EAAE,CAAC;YAC3B,OAAO,iBAAiB,CAAC;QAC3B,CAAC;QAED,MAAM,MAAM,GAA4B,EAAE,CAAC;QAC3C,MAAM,UAAU,GAAG,IAAI,GAAG,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;QAE/C,KAAK,MAAM,CAAC,GAAG,EAAE,GAAG,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,KAAgC,CAAC,EAAE,CAAC;YAC1E,IAAI,UAAU,CAAC,GAAG,CAAC,GAAG,CAAC;gBAAE,SAAS;YAClC,MAAM,CAAC,GAAG,CAAC,GAAG,YAAY,CAAC,GAAG,EAAE,IAAI,EAAE,KAAK,GAAG,CAAC,CAAC,CAAC;QACnD,CAAC;QACD,OAAO,MAAM,CAAC;IAChB,CAAC;IAED,OAAO,MAAM,CAAC,KAAK,CAAC,CAAC;AACvB,CAAC"}
|
package/dist/output/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/output/index.ts"],"names":[],"mappings":"AAcA,cAAc,mBAAmB,CAAC;AAClC,cAAc,0BAA0B,CAAC;AACzC,cAAc,0BAA0B,CAAC;AACzC,cAAc,sCAAsC,CAAC;AACrD,cAAc,0BAA0B,CAAC;AACzC,cAAc,uBAAuB,CAAC;AACtC,cAAc,uBAAuB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/output/index.ts"],"names":[],"mappings":"AAcA,cAAc,mBAAmB,CAAC;AAClC,cAAc,0BAA0B,CAAC;AACzC,cAAc,0BAA0B,CAAC;AACzC,cAAc,sCAAsC,CAAC;AACrD,cAAc,0BAA0B,CAAC;AACzC,cAAc,uBAAuB,CAAC;AACtC,cAAc,uBAAuB,CAAC;AACtC,cAAc,mCAAmC,CAAC"}
|
package/dist/output/index.js
CHANGED
|
@@ -21,4 +21,5 @@ __exportStar(require("./lib/output-deliverable-expectation"), exports);
|
|
|
21
21
|
__exportStar(require("./lib/output-version-dto"), exports);
|
|
22
22
|
__exportStar(require("./lib/output-item-dto"), exports);
|
|
23
23
|
__exportStar(require("./lib/payload-schemas"), exports);
|
|
24
|
+
__exportStar(require("./lib/deliverable-output-contract"), exports);
|
|
24
25
|
//# sourceMappingURL=index.js.map
|
package/dist/output/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/output/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAcA,oDAAkC;AAClC,2DAAyC;AACzC,2DAAyC;AACzC,uEAAqD;AACrD,2DAAyC;AACzC,wDAAsC;AACtC,wDAAsC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/output/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAcA,oDAAkC;AAClC,2DAAyC;AACzC,2DAAyC;AACzC,uEAAqD;AACrD,2DAAyC;AACzC,wDAAsC;AACtC,wDAAsC;AACtC,oEAAkD"}
|