@jeffusion/bungee-core 6.19.3 → 6.19.4
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/access-database.d.ts +22 -0
- package/dist/api/handlers/logs.d.ts +66 -0
- package/dist/api/handlers/stats.d.ts +50 -0
- package/dist/api/logs.d.ts +145 -0
- package/dist/api/types.d.ts +21 -0
- package/dist/{chunk-assets-swq50rh3.js → chunk-assets-vsan7gav.js} +11 -11
- package/dist/{chunk-body-capture-gtta9q26.js → chunk-body-capture-sbk6cdf9.js} +2 -2
- package/dist/{chunk-handler-ehkkxpnq.js → chunk-handler-9k6b95w4.js} +2 -2
- package/dist/{chunk-main-rcw37zhd.js → chunk-main-1p15rgq5.js} +1 -1
- package/dist/{chunk-main-10pgdbgn.js → chunk-main-2efrk1nt.js} +1 -1
- package/dist/{chunk-main-a4eygw79.js → chunk-main-d74e7qxc.js} +1 -1
- package/dist/{chunk-main-p5rpfk7t.js → chunk-main-gwaw6pxp.js} +1 -1
- package/dist/{chunk-main-25kbhd4n.js → chunk-main-mqgkewnx.js} +1 -1
- package/dist/{chunk-main-0w3jk2x4.js → chunk-main-qm1tgaka.js} +2 -2
- package/dist/{chunk-master-276v10xm.js → chunk-master-wtcfwd6g.js} +6 -6
- package/dist/{chunk-plugin-context-manager-nexyp0jb.js → chunk-plugin-context-manager-kabrbg0s.js} +1 -1
- package/dist/{chunk-plugin-manager-dvxc5w6p.js → chunk-plugin-manager-q1bt6xnw.js} +2 -2
- package/dist/{chunk-runtime-upgrade-sjxsa2r6.js → chunk-runtime-upgrade-rvm3d096.js} +3 -3
- package/dist/{chunk-runtime-qbfd9z3p.js → chunk-runtime-xmp308t7.js} +2 -2
- package/dist/{chunk-worker-5mdsmhte.js → chunk-worker-99q8qnj9.js} +9 -9
- package/dist/config-publication/admission-handoff.d.ts +13 -0
- package/dist/config-publication/coordinator-types.d.ts +176 -0
- package/dist/config-publication/current-startup.d.ts +26 -0
- package/dist/config-publication/drain-workers.d.ts +15 -0
- package/dist/config-publication/index.d.ts +6 -0
- package/dist/config-publication/master-coordinator.d.ts +45 -0
- package/dist/config-publication/master-messages.d.ts +2 -0
- package/dist/config-publication/message-fields.d.ts +20 -0
- package/dist/config-publication/messages.d.ts +3 -0
- package/dist/config-publication/process-cleanup.d.ts +30 -0
- package/dist/config-publication/process-identity.d.ts +14 -0
- package/dist/config-publication/process-termination.d.ts +7 -0
- package/dist/config-publication/publication-runner.d.ts +50 -0
- package/dist/config-publication/recovery-disposition.d.ts +17 -0
- package/dist/config-publication/types.d.ts +137 -0
- package/dist/config-publication/waiter-safety.d.ts +2 -0
- package/dist/config-publication/worker-messages.d.ts +2 -0
- package/dist/config-publication/worker-runtime-contract.d.ts +76 -0
- package/dist/config-publication/worker-runtime-plugins.d.ts +8 -0
- package/dist/config-publication/worker-runtime.d.ts +22 -0
- package/dist/config-publication/worker-wait.d.ts +44 -0
- package/dist/config-storage/active-publication.d.ts +37 -0
- package/dist/config-storage/aggregate.d.ts +4 -0
- package/dist/config-storage/async-config-repository.d.ts +125 -0
- package/dist/config-storage/commit-transaction.d.ts +13 -0
- package/dist/config-storage/compiler.d.ts +4 -0
- package/dist/config-storage/config-repository.d.ts +118 -0
- package/dist/config-storage/consistent-read.d.ts +2 -0
- package/dist/config-storage/content-hash.d.ts +17 -0
- package/dist/config-storage/cross-table-audit.d.ts +20 -0
- package/dist/config-storage/current-revision.d.ts +2 -0
- package/dist/config-storage/domain-validation.d.ts +5 -0
- package/dist/config-storage/expression-ast.d.ts +2 -0
- package/dist/config-storage/expression-call-policy.d.ts +2 -0
- package/dist/config-storage/expression-syntax.d.ts +2 -0
- package/dist/config-storage/gateway-target-validation.d.ts +5 -0
- package/dist/config-storage/global-scalars.d.ts +6 -0
- package/dist/config-storage/global-validation.d.ts +2 -0
- package/dist/config-storage/immutable-snapshot.d.ts +4 -0
- package/dist/config-storage/index.d.ts +21 -0
- package/dist/config-storage/json-preflight.d.ts +15 -0
- package/dist/config-storage/management-protection.d.ts +10 -0
- package/dist/config-storage/materialize.d.ts +3 -0
- package/dist/config-storage/menu-store.d.ts +12 -0
- package/dist/config-storage/migrations/baseline.d.ts +8 -0
- package/dist/config-storage/migrations/index.d.ts +8 -0
- package/dist/config-storage/migrations/management-protection.d.ts +2 -0
- package/dist/config-storage/migrations/plan.d.ts +9 -0
- package/dist/config-storage/migrations/prepared-worker-allocation.d.ts +2 -0
- package/dist/config-storage/migrations/publication-retirement.d.ts +3 -0
- package/dist/config-storage/migrations/publication-targets.d.ts +3 -0
- package/dist/config-storage/migrations/request-logs-default.d.ts +2 -0
- package/dist/config-storage/migrations/runtime-cutover.d.ts +2 -0
- package/dist/config-storage/migrations/service-references.d.ts +3 -0
- package/dist/config-storage/migrations/ui-menus.d.ts +2 -0
- package/dist/config-storage/migrations/websocket-connections.d.ts +2 -0
- package/dist/config-storage/migrations/websocket-message-size.d.ts +2 -0
- package/dist/config-storage/migrations/worker-launch-capacity.d.ts +2 -0
- package/dist/config-storage/modification-validation.d.ts +4 -0
- package/dist/config-storage/operation-records.d.ts +42 -0
- package/dist/config-storage/operation-relations.d.ts +6 -0
- package/dist/config-storage/operation-store.d.ts +12 -0
- package/dist/config-storage/persisted-json.d.ts +2 -0
- package/dist/config-storage/persisted-validation.d.ts +7 -0
- package/dist/config-storage/plugin-name.d.ts +2 -0
- package/dist/config-storage/plugin-schema.d.ts +16 -0
- package/dist/config-storage/policy-fields.d.ts +15 -0
- package/dist/config-storage/prepared-command.d.ts +14 -0
- package/dist/config-storage/read-materialization.d.ts +4 -0
- package/dist/config-storage/recovery-store.d.ts +21 -0
- package/dist/config-storage/relation-materialization.d.ts +30 -0
- package/dist/config-storage/repository-snapshot.d.ts +5 -0
- package/dist/config-storage/repository-types.d.ts +216 -0
- package/dist/config-storage/repository-validation.d.ts +6 -0
- package/dist/config-storage/request-logs-default.d.ts +5 -0
- package/dist/config-storage/retirement-store.d.ts +78 -0
- package/dist/config-storage/route-policy-validation.d.ts +2 -0
- package/dist/config-storage/runtime-config.d.ts +14 -0
- package/dist/config-storage/runtime-cutover.d.ts +13 -0
- package/dist/config-storage/runtime-recovery-budget.d.ts +35 -0
- package/dist/config-storage/schema-fingerprint.d.ts +5 -0
- package/dist/config-storage/schema.d.ts +2 -0
- package/dist/config-storage/service-policy-validation.d.ts +4 -0
- package/dist/config-storage/service-reference-upgrade.d.ts +4 -0
- package/dist/config-storage/serving-snapshot.d.ts +9 -0
- package/dist/config-storage/snapshot-validation.d.ts +3 -0
- package/dist/config-storage/sqlite-errors.d.ts +3 -0
- package/dist/config-storage/sqlite-query.d.ts +3 -0
- package/dist/config-storage/sqlite-version.d.ts +10 -0
- package/dist/config-storage/storage-protocol.d.ts +52 -0
- package/dist/config-storage/utf16.d.ts +2 -0
- package/dist/config-storage/validation.d.ts +31 -0
- package/dist/config-storage/worker-launch-store.d.ts +93 -0
- package/dist/config-worker/http-provider.d.ts +6 -0
- package/dist/config-worker/lifecycle.d.ts +84 -0
- package/dist/config-worker/private-transport.d.ts +31 -0
- package/dist/config-worker/process-environment.d.ts +38 -0
- package/dist/config-worker/rate-limit-provider.d.ts +31 -0
- package/dist/config-worker/runtime-dependencies.d.ts +12 -0
- package/dist/config-worker/snapshot-compiler.d.ts +5 -0
- package/dist/config-worker/supervised-process-entry.d.ts +8 -0
- package/dist/core-version.d.ts +1 -0
- package/dist/daemon-control/bootstrap.d.ts +41 -0
- package/dist/daemon-control/index.d.ts +1 -0
- package/dist/daemon-control/launch-identity.d.ts +26 -0
- package/dist/daemon-control/shutdown.d.ts +22 -0
- package/dist/data-admission/errors.d.ts +16 -0
- package/dist/data-admission/host.d.ts +92 -0
- package/dist/data-admission/keyed-state.d.ts +21 -0
- package/dist/data-admission/rpc.d.ts +40 -0
- package/dist/data-admission/worker.d.ts +66 -0
- package/dist/database-schema.d.ts +2 -0
- package/dist/expression-engine.d.ts +33 -0
- package/dist/gateway/admission-plugin.d.ts +7 -0
- package/dist/gateway/auxiliary-request.d.ts +7 -0
- package/dist/gateway/body-contracts.d.ts +39 -0
- package/dist/gateway/body-events.d.ts +58 -0
- package/dist/gateway/body-factory.d.ts +4 -0
- package/dist/gateway/body-observation-stream.d.ts +6 -0
- package/dist/gateway/body-plugin.d.ts +8 -0
- package/dist/gateway/body-resources.d.ts +37 -0
- package/dist/gateway/body-service.d.ts +116 -0
- package/dist/gateway/contracts.d.ts +196 -0
- package/dist/gateway/controlled-views.d.ts +5 -0
- package/dist/gateway/dispatch-plugin.d.ts +11 -0
- package/dist/gateway/dispatch-targets.d.ts +4 -0
- package/dist/gateway/forward-plugin.d.ts +136 -0
- package/dist/gateway/plugin.d.ts +23 -0
- package/dist/gateway/plugin.js +18 -18
- package/dist/gateway/request-log-contracts.d.ts +346 -0
- package/dist/gateway/request-log.d.ts +105 -0
- package/dist/gateway/request-plugin.d.ts +98 -0
- package/dist/gateway/request-rules-plugin.d.ts +61 -0
- package/dist/gateway/response-plugin.d.ts +34 -0
- package/dist/gateway/response-views.d.ts +33 -0
- package/dist/gateway/responses-websocket-session.d.ts +24 -0
- package/dist/gateway/retry-action.d.ts +7 -0
- package/dist/gateway/retry-plugin.d.ts +7 -0
- package/dist/gateway/routing-plugin.d.ts +11 -0
- package/dist/gateway/runtime.d.ts +15 -0
- package/dist/gateway/selection-plugin.d.ts +7 -0
- package/dist/gateway/sse-response.d.ts +6 -0
- package/dist/gateway/websocket-contracts.d.ts +71 -0
- package/dist/gateway/websocket-credential.d.ts +3 -0
- package/dist/gateway/websocket-plugin.d.ts +9 -0
- package/dist/hooks/impl.d.ts +119 -0
- package/dist/hooks/index.d.ts +7 -0
- package/dist/hooks/plugin-hooks.d.ts +308 -0
- package/dist/hooks/types.d.ts +130 -0
- package/dist/ingress/admission-registry.d.ts +56 -0
- package/dist/ingress/admission-set.d.ts +29 -0
- package/dist/ingress/index.d.ts +4 -0
- package/dist/ingress/master-controller.d.ts +278 -0
- package/dist/ingress/runtime.d.ts +29 -0
- package/dist/ingress/supervision-http.d.ts +118 -0
- package/dist/ingress.d.ts +5 -0
- package/dist/instance-lock.d.ts +2 -0
- package/dist/logger/access-log-writer.d.ts +120 -0
- package/dist/logger/body-capture.d.ts +21 -0
- package/dist/logger/body-log-redaction.d.ts +6 -0
- package/dist/logger/body-storage.d.ts +71 -0
- package/dist/logger/content-capture.d.ts +47 -0
- package/dist/logger/dated-log-files.d.ts +5 -0
- package/dist/logger/header-storage.d.ts +54 -0
- package/dist/logger/log-cleanup.d.ts +69 -0
- package/dist/logger/log-url.d.ts +2 -0
- package/dist/logger/request-logger.d.ts +308 -0
- package/dist/logger/transport-outcome.d.ts +25 -0
- package/dist/logger/websocket-body-capture.d.ts +26 -0
- package/dist/logger.d.ts +16 -0
- package/dist/main.d.ts +19 -0
- package/dist/main.js +8 -8
- package/dist/management-listener/index.d.ts +2 -0
- package/dist/management-listener/listener.d.ts +48 -0
- package/dist/management-listener/request-source.d.ts +4 -0
- package/dist/master-runtime/component-recovery.d.ts +40 -0
- package/dist/master-runtime/composition.d.ts +129 -0
- package/dist/master-runtime/configuration-recovery.d.ts +80 -0
- package/dist/master-runtime/control-api-body.d.ts +9 -0
- package/dist/master-runtime/control-api.d.ts +122 -0
- package/dist/master-runtime/error-chain.d.ts +9 -0
- package/dist/master-runtime/initialize-configuration.d.ts +4 -0
- package/dist/master-runtime/instance-lock.d.ts +25 -0
- package/dist/master-runtime/kernel-exit-timer.d.ts +7 -0
- package/dist/master-runtime/kernel-monotonic-clock.d.ts +15 -0
- package/dist/master-runtime/management-auth.d.ts +43 -0
- package/dist/master-runtime/master-plugin-catalog-api.d.ts +18 -0
- package/dist/master-runtime/master-stats.d.ts +52 -0
- package/dist/master-runtime/menu-api.d.ts +19 -0
- package/dist/master-runtime/observability-client.d.ts +49 -0
- package/dist/master-runtime/offline-recovery.d.ts +9 -0
- package/dist/master-runtime/offline-storage-session.d.ts +8 -0
- package/dist/master-runtime/plugin-journal-recovery.d.ts +28 -0
- package/dist/master-runtime/process-identity.d.ts +48 -0
- package/dist/master-runtime/process-options.d.ts +59 -0
- package/dist/master-runtime/publication-task-manager.d.ts +47 -0
- package/dist/master-runtime/reconcile-plugin-dependencies.d.ts +7 -0
- package/dist/master-runtime/recovery-prompt.d.ts +9 -0
- package/dist/master-runtime/route-body-plan.d.ts +31 -0
- package/dist/master-runtime/runtime-cleanup.d.ts +3 -0
- package/dist/master-runtime/runtime-contracts.d.ts +101 -0
- package/dist/master-runtime/runtime-evidence.d.ts +8 -0
- package/dist/master-runtime/runtime-status.d.ts +36 -0
- package/dist/master-runtime/runtime-supervisor.d.ts +30 -0
- package/dist/master-runtime/runtime-upgrade.d.ts +11 -0
- package/dist/master-runtime/runtime-upstreams.d.ts +14 -0
- package/dist/master-runtime/runtime.d.ts +23 -0
- package/dist/master-runtime/shutdown-diagnostics.d.ts +28 -0
- package/dist/master-runtime/signal-handlers.d.ts +18 -0
- package/dist/master-runtime/stopped-instance-lock.d.ts +6 -0
- package/dist/master-runtime/stopped-process.d.ts +2 -0
- package/dist/master-runtime/supervised-worker-client.d.ts +108 -0
- package/dist/master-runtime/supervised-worker-discovery.d.ts +41 -0
- package/dist/master-runtime/supervised-worker-factory.d.ts +298 -0
- package/dist/master-runtime/supervised-worker-process-adapter.d.ts +146 -0
- package/dist/master-runtime/worker-initialization-diagnostics.d.ts +18 -0
- package/dist/master.d.ts +2 -0
- package/dist/oauth-callback.d.ts +8 -0
- package/dist/plugin-artifact-contract.d.ts +4 -0
- package/dist/plugin-artifact-negotiation.d.ts +12 -0
- package/dist/plugin-artifact-types.d.ts +61 -0
- package/dist/plugin-context-manager.d.ts +91 -0
- package/dist/plugin-control/artifact-loader.d.ts +3 -0
- package/dist/plugin-control/contracts.d.ts +180 -0
- package/dist/plugin-control/host.d.ts +90 -0
- package/dist/plugin-control/index.d.ts +3 -0
- package/dist/plugin-control/master-invocation-projector.d.ts +52 -0
- package/dist/plugin-control/request-service-authority.d.ts +33 -0
- package/dist/plugin-control/secret-crypto.d.ts +13 -0
- package/dist/plugin-control/secret-store.d.ts +15 -0
- package/dist/plugin-dependencies.d.ts +30 -0
- package/dist/plugin-durable-state.d.ts +62 -0
- package/dist/plugin-extensions.d.ts +99 -0
- package/dist/plugin-logger.d.ts +17 -0
- package/dist/plugin-manifest-catalog/catalog.d.ts +28 -0
- package/dist/plugin-manifest-catalog/config-constraint-parser.d.ts +3 -0
- package/dist/plugin-manifest-catalog/config-default-validator.d.ts +3 -0
- package/dist/plugin-manifest-catalog/config-field-parser.d.ts +3 -0
- package/dist/plugin-manifest-catalog/config-field-references.d.ts +2 -0
- package/dist/plugin-manifest-catalog/index.d.ts +6 -0
- package/dist/plugin-manifest-catalog/manifest-filesystem.d.ts +9 -0
- package/dist/plugin-manifest-catalog/manifest-json.d.ts +1 -0
- package/dist/plugin-manifest-catalog/manifest-nested-parser.d.ts +11 -0
- package/dist/plugin-manifest-catalog/manifest-parser.d.ts +2 -0
- package/dist/plugin-manifest-catalog/manifest-semver.d.ts +4 -0
- package/dist/plugin-manifest-catalog/manifest-values.d.ts +6 -0
- package/dist/plugin-manifest-catalog/parse-utils.d.ts +19 -0
- package/dist/plugin-manifest-catalog/plugin-field-value.d.ts +3 -0
- package/dist/plugin-manifest-catalog/runtime-identity.d.ts +12 -0
- package/dist/plugin-manifest-catalog/types.d.ts +187 -0
- package/dist/plugin-path-resolver.d.ts +17 -0
- package/dist/plugin-registry.d.ts +165 -0
- package/dist/plugin-runtime-config.d.ts +10 -0
- package/dist/plugin-runtime-diff.d.ts +15 -0
- package/dist/plugin-runtime-orchestrator.d.ts +69 -0
- package/dist/plugin-runtime-state-machine.d.ts +78 -0
- package/dist/plugin-runtime-status.d.ts +29 -0
- package/dist/plugin-services/channels.d.ts +391 -0
- package/dist/plugin-services/command-journal.d.ts +234 -0
- package/dist/plugin-services/contracts.d.ts +23 -0
- package/dist/plugin-services/host-rpc.d.ts +268 -0
- package/dist/plugin-services/peer-broker.d.ts +351 -0
- package/dist/plugin-services/peer-channel-hub.d.ts +457 -0
- package/dist/plugin-services/peer-channel-protocol.d.ts +339 -0
- package/dist/plugin-services/peer-directory.d.ts +163 -0
- package/dist/plugin-services/peer-executor-proof.d.ts +13 -0
- package/dist/plugin-services/peer-frame.d.ts +65 -0
- package/dist/plugin-services/peer-journal.d.ts +25 -0
- package/dist/plugin-services/peer-protocol.d.ts +128 -0
- package/dist/plugin-services/peer-rpc-link.d.ts +218 -0
- package/dist/plugin-services/peer-rpc-mapping.d.ts +133 -0
- package/dist/plugin-services/peer-websocket.d.ts +146 -0
- package/dist/plugin-services/persistence.d.ts +166 -0
- package/dist/plugin-services/rpc-runtime.d.ts +227 -0
- package/dist/plugin-services/snapshot-store.d.ts +77 -0
- package/dist/plugin-services/wire-contract.d.ts +158 -0
- package/dist/plugin-services.d.ts +237 -0
- package/dist/plugin-state/client.d.ts +160 -0
- package/dist/plugin-state/message-size.d.ts +2 -0
- package/dist/plugin-state/operations.d.ts +4 -0
- package/dist/plugin-state/protocol.d.ts +40 -0
- package/dist/plugin-state/storage-rpc.d.ts +7 -0
- package/dist/plugin.types.d.ts +999 -0
- package/dist/plugins/anthropic-request-sanitizer/index.js +17 -17
- package/dist/plugins/anthropic-request-sanitizer/index.js.map +1 -1
- package/dist/plugins/anthropic-tool-name-transformer/index.js +17 -17
- package/dist/plugins/anthropic-tool-name-transformer/index.js.map +1 -1
- package/dist/plugins/chatgpt-oauth/control.js +24 -24
- package/dist/plugins/chatgpt-oauth/control.js.map +1 -1
- package/dist/plugins/chatgpt-oauth/index.js +23 -23
- package/dist/plugins/chatgpt-oauth/index.js.map +1 -1
- package/dist/plugins/codex-router/control.js +19 -19
- package/dist/plugins/codex-router/control.js.map +1 -1
- package/dist/plugins/codex-router/index.js +31 -31
- package/dist/plugins/codex-router/index.js.map +1 -1
- package/dist/plugins/deepseek-reasoning-fix/index.js +17 -17
- package/dist/plugins/deepseek-reasoning-fix/index.js.map +1 -1
- package/dist/plugins/key-access/control.js +18 -18
- package/dist/plugins/key-access/control.js.map +1 -1
- package/dist/plugins/key-access/index.js +19 -19
- package/dist/plugins/key-access/index.js.map +1 -1
- package/dist/plugins/key-access/ingress.js +18 -18
- package/dist/plugins/key-access/ingress.js.map +1 -1
- package/dist/plugins/key-rate-limit/control.js +3 -3
- package/dist/plugins/key-rate-limit/control.js.map +1 -1
- package/dist/plugins/key-rate-limit/index.js +18 -18
- package/dist/plugins/key-rate-limit/index.js.map +1 -1
- package/dist/plugins/key-rate-limit/ingress.js +2 -2
- package/dist/plugins/key-rate-limit/ingress.js.map +1 -1
- package/dist/plugins/llm-protocol-adapter/control.js +48 -48
- package/dist/plugins/llm-protocol-adapter/control.js.map +1 -1
- package/dist/plugins/llm-protocol-adapter/index.js +53 -53
- package/dist/plugins/llm-protocol-adapter/index.js.map +1 -1
- package/dist/plugins/llm-tps/control.js +5 -5
- package/dist/plugins/llm-tps/control.js.map +1 -1
- package/dist/plugins/llm-tps/index.js +20 -20
- package/dist/plugins/llm-tps/index.js.map +1 -1
- package/dist/plugins/model-mapping/control.js +4 -4
- package/dist/plugins/model-mapping/control.js.map +1 -1
- package/dist/plugins/model-mapping/index.js +19 -19
- package/dist/plugins/model-mapping/index.js.map +1 -1
- package/dist/plugins/models-dev/control.js +10 -10
- package/dist/plugins/models-dev/control.js.map +1 -1
- package/dist/plugins/models-dev/index.js +23 -23
- package/dist/plugins/models-dev/index.js.map +1 -1
- package/dist/plugins/request-body-redaction/control.js +2 -2
- package/dist/plugins/request-body-redaction/control.js.map +1 -1
- package/dist/plugins/request-body-redaction/index.js +21 -21
- package/dist/plugins/request-body-redaction/index.js.map +1 -1
- package/dist/plugins/request-logs/index.js +27 -27
- package/dist/plugins/request-logs/index.js.map +1 -1
- package/dist/plugins/request-logs/ingress.js +2 -2
- package/dist/plugins/request-logs/ingress.js.map +1 -1
- package/dist/plugins/signature-repair/index.js +17 -17
- package/dist/plugins/signature-repair/index.js.map +1 -1
- package/dist/plugins/sse-envelope.d.ts +3 -0
- package/dist/plugins/token-budget/control.js +19 -19
- package/dist/plugins/token-budget/control.js.map +1 -1
- package/dist/plugins/token-budget/index.js +19 -19
- package/dist/plugins/token-budget/index.js.map +1 -1
- package/dist/plugins/token-budget/ingress.js +2 -2
- package/dist/plugins/token-budget/ingress.js.map +1 -1
- package/dist/plugins/token-metering/index.js +30 -30
- package/dist/plugins/token-metering/index.js.map +1 -1
- package/dist/plugins/token-stats/control.js +22 -22
- package/dist/plugins/token-stats/control.js.map +1 -1
- package/dist/plugins/token-stats/index.js +22 -22
- package/dist/plugins/token-stats/index.js.map +1 -1
- package/dist/plugins/user-auth/control.js +21 -21
- package/dist/plugins/user-auth/control.js.map +1 -1
- package/dist/plugins/user-auth/index.js +17 -17
- package/dist/plugins/user-auth/index.js.map +1 -1
- package/dist/public-listener/admission-registry.d.ts +15 -0
- package/dist/public-listener/forwarding.d.ts +24 -0
- package/dist/public-listener/headers.d.ts +5 -0
- package/dist/public-listener/index.d.ts +4 -0
- package/dist/public-listener/listener.d.ts +21 -0
- package/dist/public-listener/websocket.d.ts +4 -0
- package/dist/rate-limit/http.d.ts +80 -0
- package/dist/rate-limit/index.d.ts +7 -0
- package/dist/rate-limit/json.d.ts +8 -0
- package/dist/rate-limit/profile.d.ts +46 -0
- package/dist/rate-limit/protocol.d.ts +104 -0
- package/dist/rate-limit/store.d.ts +61 -0
- package/dist/scoped-plugin-registry.d.ts +645 -0
- package/dist/supervision/index.d.ts +12 -0
- package/dist/supervision/process-lifetime-guard.d.ts +54 -0
- package/dist/supervision/protocol.d.ts +173 -0
- package/dist/supervision/state-repository.d.ts +15 -0
- package/dist/supervision/strict-json.d.ts +2 -0
- package/dist/supervision/worker-descriptor.d.ts +77 -0
- package/dist/supervision/worker-http.d.ts +135 -0
- package/dist/supervision/worker-runtime-snapshot.d.ts +64 -0
- package/dist/token-stats-window.d.ts +23 -0
- package/dist/ui/assets.d.ts +8 -0
- package/dist/ui/icon-resources.d.ts +28 -0
- package/dist/ui/menu-icons.d.ts +15 -0
- package/dist/ui/menu-layout.d.ts +10 -0
- package/dist/ui/plugin-sandbox-policy.d.ts +11 -0
- package/dist/ui/server.d.ts +10 -0
- package/dist/updates/archive-installer.d.ts +8 -0
- package/dist/updates/controller.d.ts +50 -0
- package/dist/updates/download.d.ts +8 -0
- package/dist/updates/installation.d.ts +26 -0
- package/dist/updates/names.d.ts +3 -0
- package/dist/updates/release.d.ts +23 -0
- package/dist/updates/restart.d.ts +13 -0
- package/dist/utils/config-validator.d.ts +40 -0
- package/dist/utils/endpoint-resolver.d.ts +20 -0
- package/dist/utils/expression-dependencies.d.ts +10 -0
- package/dist/utils/plugin-helpers.d.ts +46 -0
- package/dist/websocket/headers.d.ts +9 -0
- package/dist/websocket/index.d.ts +3 -0
- package/dist/websocket/message.d.ts +3 -0
- package/dist/websocket/observation.d.ts +36 -0
- package/dist/websocket/transport.d.ts +197 -0
- package/dist/worker/health/checker.d.ts +54 -0
- package/dist/worker/health/scheduler.d.ts +27 -0
- package/dist/worker/request/body-source.d.ts +1 -0
- package/dist/worker/request/context-builder.d.ts +78 -0
- package/dist/worker/request/context.d.ts +55 -0
- package/dist/worker/request/credential.d.ts +10 -0
- package/dist/worker/request/handler.d.ts +3 -0
- package/dist/worker/request/proxy.d.ts +4 -0
- package/dist/worker/request/response-detector.d.ts +9 -0
- package/dist/worker/request/snapshot.d.ts +18 -0
- package/dist/worker/response/attempt-observation.d.ts +24 -0
- package/dist/worker/response/processor.d.ts +4 -0
- package/dist/worker/response/streaming-response.d.ts +1 -0
- package/dist/worker/rules/deep-merge.d.ts +2 -0
- package/dist/worker/rules/modifier.d.ts +3 -0
- package/dist/worker/state/plugin-manager.d.ts +95 -0
- package/dist/worker/state/runtime-state.d.ts +90 -0
- package/dist/worker/types.d.ts +44 -0
- package/dist/worker/upstream/condition-filter.d.ts +31 -0
- package/dist/worker/upstream/failover-coordinator.d.ts +93 -0
- package/dist/worker/upstream/filter.d.ts +37 -0
- package/dist/worker/upstream/priority-group.d.ts +66 -0
- package/dist/worker/upstream/selector.d.ts +10 -0
- package/dist/worker/upstream/service-execution.d.ts +17 -0
- package/dist/worker/utils/jitter.d.ts +81 -0
- package/dist/worker/utils/slow-start.d.ts +67 -0
- package/dist/worker/utils/status-code-matcher.d.ts +10 -0
- package/dist/worker.d.ts +1 -0
- package/package.json +2 -2
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { Database } from 'bun:sqlite';
|
|
2
|
+
import { type SqliteJournalMode } from './config-storage/sqlite-version';
|
|
3
|
+
export type AccessDatabaseSettings = {
|
|
4
|
+
readonly version: string;
|
|
5
|
+
readonly journalMode: SqliteJournalMode;
|
|
6
|
+
readonly synchronous: 'FULL' | 'NORMAL';
|
|
7
|
+
};
|
|
8
|
+
export declare class AccessDatabaseJournalModeError extends Error {
|
|
9
|
+
readonly sqliteVersion: string;
|
|
10
|
+
readonly currentMode: SqliteJournalMode;
|
|
11
|
+
readonly targetMode: SqliteJournalMode;
|
|
12
|
+
readonly name = "AccessDatabaseJournalModeError";
|
|
13
|
+
readonly code = "access_database_journal_mode_conflict";
|
|
14
|
+
readonly action = "stop-all-bungee-processes-and-convert-offline";
|
|
15
|
+
constructor(sqliteVersion: string, currentMode: SqliteJournalMode, targetMode: SqliteJournalMode);
|
|
16
|
+
}
|
|
17
|
+
/** Validate and configure an already selected access-database connection. */
|
|
18
|
+
export declare function initializeAccessDatabaseConnection(db: Database): AccessDatabaseSettings;
|
|
19
|
+
export declare function initializeAccessDatabaseForMasterConnection(db: Database): AccessDatabaseSettings;
|
|
20
|
+
/** Select and persist the access journal mode before migrations or schema writes. */
|
|
21
|
+
export declare function selectAccessDatabaseJournalMode(dbPath: string): AccessDatabaseSettings;
|
|
22
|
+
export declare function initializeAccessDatabaseForMaster(dbPath: string): AccessDatabaseSettings;
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { type LogQueryService } from '../logs';
|
|
2
|
+
import type { Database } from 'bun:sqlite';
|
|
3
|
+
import type { BodyStorageManager } from '../../logger/body-storage';
|
|
4
|
+
import type { HeaderStorageManager } from '../../logger/header-storage';
|
|
5
|
+
export interface LogsHandlerDependencies {
|
|
6
|
+
readonly database?: Database;
|
|
7
|
+
readonly logQueryService: LogQueryService;
|
|
8
|
+
readonly bodyStorage: Pick<BodyStorageManager, 'load' | 'cleanup'> & Partial<Pick<BodyStorageManager, 'openStream'>>;
|
|
9
|
+
readonly headerStorage: Pick<HeaderStorageManager, 'load' | 'cleanup'>;
|
|
10
|
+
readonly shutdownSignal?: AbortSignal;
|
|
11
|
+
}
|
|
12
|
+
export declare class LogsHandler {
|
|
13
|
+
private readonly dependencies;
|
|
14
|
+
constructor(dependencies: LogsHandlerDependencies);
|
|
15
|
+
/** Canonical projection and native evidence remain independently available. */
|
|
16
|
+
getContent(requestId: string, direction: string): Promise<Response>;
|
|
17
|
+
/**
|
|
18
|
+
* GET /api/logs
|
|
19
|
+
* Query logs with pagination, filtering, and sorting
|
|
20
|
+
* Supports `groupBy=chain` for chain-dimension aggregation
|
|
21
|
+
*/
|
|
22
|
+
query(req: Request): Promise<Response>;
|
|
23
|
+
/**
|
|
24
|
+
* GET /api/logs/chain/:chainId
|
|
25
|
+
* Get chain detail: chain meta + all attempts
|
|
26
|
+
*/
|
|
27
|
+
getChainDetail(chainId: string): Promise<Response>;
|
|
28
|
+
/**
|
|
29
|
+
* GET /api/logs/:requestId
|
|
30
|
+
* Get single log entry by request ID
|
|
31
|
+
*/
|
|
32
|
+
getById(requestId: string): Promise<Response>;
|
|
33
|
+
/**
|
|
34
|
+
* GET /api/logs/body/:bodyId
|
|
35
|
+
* Load body content by ID
|
|
36
|
+
*/
|
|
37
|
+
getBodyById(bodyId: string): Promise<Response>;
|
|
38
|
+
/**
|
|
39
|
+
* GET /api/logs/headers/:headerId
|
|
40
|
+
* Load header content by header ID
|
|
41
|
+
*/
|
|
42
|
+
loadHeader(headerId: string): Promise<Response>;
|
|
43
|
+
/**
|
|
44
|
+
* GET /api/logs/stream
|
|
45
|
+
* Server-Sent Events stream for real-time logs
|
|
46
|
+
*/
|
|
47
|
+
stream(req: Request, onFinished?: () => void): Promise<Response>;
|
|
48
|
+
/**
|
|
49
|
+
* GET /api/logs/export
|
|
50
|
+
* Export logs as JSON or CSV
|
|
51
|
+
*/
|
|
52
|
+
export(req: Request): Promise<Response>;
|
|
53
|
+
/**
|
|
54
|
+
* GET /api/logs/stats
|
|
55
|
+
* Get aggregated statistics
|
|
56
|
+
*/
|
|
57
|
+
getStats(req: Request): Promise<Response>;
|
|
58
|
+
/**
|
|
59
|
+
* GET /api/logs/stats/timeseries
|
|
60
|
+
* Get time series statistics for charts
|
|
61
|
+
*/
|
|
62
|
+
getTimeSeriesStats(req: Request): Promise<Response>;
|
|
63
|
+
}
|
|
64
|
+
export declare const LOG_CLEANUP_WAIT_MS = 120000;
|
|
65
|
+
export declare function logCleanupMethod(path: string): 'POST' | 'GET' | undefined;
|
|
66
|
+
export declare function handleLogCleanupRequest(request: Request, method: 'POST' | 'GET', call: () => Promise<unknown>): Promise<Response>;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { type LogQueryService } from '../logs';
|
|
2
|
+
export type StatsQueryService = Pick<LogQueryService, 'getStats' | 'getChainCount' | 'getCumulativeHistory' | 'getTimeSeriesStats' | 'getUpstreamDistribution' | 'getUpstreamFailureStats' | 'getUnifiedUpstreamStats' | 'getUpstreamStatusCodeStats' | 'getDashboardStats'>;
|
|
3
|
+
export type PluginStats = {
|
|
4
|
+
readonly globalInstances: number;
|
|
5
|
+
readonly routeInstances: number;
|
|
6
|
+
readonly serviceInstances: number;
|
|
7
|
+
readonly upstreamInstances: number;
|
|
8
|
+
readonly [key: string]: unknown;
|
|
9
|
+
};
|
|
10
|
+
/** Runtime-only compatibility endpoint; it is not backed by access-log SQL. */
|
|
11
|
+
export declare function getUpstreamLastUsed(states: Iterable<readonly [string, {
|
|
12
|
+
readonly upstreams: readonly {
|
|
13
|
+
readonly upstream_id: string;
|
|
14
|
+
readonly last_used_time?: number;
|
|
15
|
+
}[];
|
|
16
|
+
}]>): Response;
|
|
17
|
+
export declare class StatsHandler {
|
|
18
|
+
private readonly logQueryService;
|
|
19
|
+
private readonly getPluginStats?;
|
|
20
|
+
constructor(logQueryService: StatsQueryService, getPluginStats?: (() => PluginStats | undefined) | undefined);
|
|
21
|
+
getSnapshot(queryTime?: number): Promise<Response>;
|
|
22
|
+
getHistory(req: Request): Promise<Response>;
|
|
23
|
+
private historyDto;
|
|
24
|
+
getDashboard(req: Request): Promise<Response>;
|
|
25
|
+
getHistoryV2(req: Request): Promise<Response>;
|
|
26
|
+
/**
|
|
27
|
+
* 获取 Endpoint 请求分布统计
|
|
28
|
+
*/
|
|
29
|
+
getUpstreamDistribution(req: Request): Promise<Response>;
|
|
30
|
+
/**
|
|
31
|
+
* 获取 Endpoint 失败统计
|
|
32
|
+
*/
|
|
33
|
+
getUpstreamFailures(req: Request): Promise<Response>;
|
|
34
|
+
/**
|
|
35
|
+
* 获取统一的 Endpoint 统计(支持全部/成功/失败过滤)
|
|
36
|
+
*/
|
|
37
|
+
getUnifiedUpstreamStats(req: Request): Promise<Response>;
|
|
38
|
+
/**
|
|
39
|
+
* 获取 Endpoint 状态码统计
|
|
40
|
+
*/
|
|
41
|
+
getUpstreamStatusCodes(req: Request): Promise<Response>;
|
|
42
|
+
/**
|
|
43
|
+
* 根据时间范围计算起始时间
|
|
44
|
+
*/
|
|
45
|
+
private getStartTimeForRange;
|
|
46
|
+
/**
|
|
47
|
+
* 根据时间范围确定数据聚合间隔
|
|
48
|
+
*/
|
|
49
|
+
private getIntervalForRange;
|
|
50
|
+
}
|
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
import type { Database } from 'bun:sqlite';
|
|
2
|
+
import type { AccessLogEntry, AccessLogIdentity } from '../logger/access-log-writer';
|
|
3
|
+
import type { RequestLogRecord, RequestResult, RequestLogScope } from '../gateway/request-log-contracts';
|
|
4
|
+
import { type RequestCounts, type HttpStatusCounts, type TransportCounts, type TransportOutcome, type TransportType } from '../logger/transport-outcome';
|
|
5
|
+
export declare const RESULT_STATES: readonly ["running", "succeeded", "failed", "cancelled", "incomplete", "unconfirmed"];
|
|
6
|
+
export interface LogQueryParams extends Pick<AccessLogIdentity, 'recordKind' | 'accessId' | 'operationId'> {
|
|
7
|
+
scope?: RequestLogScope;
|
|
8
|
+
groupBy?: 'chain';
|
|
9
|
+
page?: number;
|
|
10
|
+
limit?: number;
|
|
11
|
+
startTime?: number;
|
|
12
|
+
endTime?: number;
|
|
13
|
+
method?: string;
|
|
14
|
+
path?: string;
|
|
15
|
+
status?: number | number[];
|
|
16
|
+
routePath?: string;
|
|
17
|
+
upstream?: string;
|
|
18
|
+
transformer?: string;
|
|
19
|
+
resultState?: RequestResult['state'];
|
|
20
|
+
transportOutcome?: TransportOutcome;
|
|
21
|
+
transportType?: TransportType;
|
|
22
|
+
searchTerm?: string;
|
|
23
|
+
requestType?: 'final' | 'retry' | 'recovery';
|
|
24
|
+
sortBy?: 'timestamp' | 'duration' | 'status';
|
|
25
|
+
sortOrder?: 'asc' | 'desc';
|
|
26
|
+
hasRetry?: boolean;
|
|
27
|
+
chainStatusMin?: number;
|
|
28
|
+
chainStatusMax?: number;
|
|
29
|
+
minChainDurationMs?: number;
|
|
30
|
+
maxChainDurationMs?: number;
|
|
31
|
+
}
|
|
32
|
+
export interface LogEntry extends Omit<RequestLogRecord, 'ownerId'>, Omit<AccessLogEntry, keyof RequestLogRecord | 'success' | 'transportOutcome' | 'transportCode' | 'protocolOutcome' | 'protocolCode'> {
|
|
33
|
+
ownerId?: string;
|
|
34
|
+
id: number;
|
|
35
|
+
changeId: number;
|
|
36
|
+
timestamp: number;
|
|
37
|
+
duration: number;
|
|
38
|
+
status: number | null;
|
|
39
|
+
}
|
|
40
|
+
export interface LogDiagnosticEntry extends AccessLogEntry {
|
|
41
|
+
id: number;
|
|
42
|
+
diagnostic: true;
|
|
43
|
+
}
|
|
44
|
+
export interface ChainEntry extends LogEntry {
|
|
45
|
+
chainId: string;
|
|
46
|
+
chainAttempts: number;
|
|
47
|
+
chainDurationMs: number;
|
|
48
|
+
chainStatus: number | null;
|
|
49
|
+
chainStartTs: number;
|
|
50
|
+
chainEndTs: number;
|
|
51
|
+
hasRetry: boolean;
|
|
52
|
+
chainUpstreams?: string[];
|
|
53
|
+
}
|
|
54
|
+
export interface LogQueryResult {
|
|
55
|
+
data: LogEntry[];
|
|
56
|
+
total: number;
|
|
57
|
+
page: number;
|
|
58
|
+
limit: number;
|
|
59
|
+
totalPages: number;
|
|
60
|
+
}
|
|
61
|
+
export interface ChainQueryResult extends Omit<LogQueryResult, 'data'> {
|
|
62
|
+
data: ChainEntry[];
|
|
63
|
+
}
|
|
64
|
+
export interface ChainDetail {
|
|
65
|
+
chain: ChainEntry;
|
|
66
|
+
attempts: LogDiagnosticEntry[];
|
|
67
|
+
}
|
|
68
|
+
export interface TimeSeriesStatsPoint {
|
|
69
|
+
successRate: number | null;
|
|
70
|
+
failureRate: number | null;
|
|
71
|
+
timestamp: number;
|
|
72
|
+
totalRequests: number;
|
|
73
|
+
successRequests: number;
|
|
74
|
+
failedRequests: number;
|
|
75
|
+
avgResponseTime: number;
|
|
76
|
+
requestCounts: RequestCounts;
|
|
77
|
+
httpStatusCounts: HttpStatusCounts;
|
|
78
|
+
transportCounts: TransportCounts;
|
|
79
|
+
}
|
|
80
|
+
export interface UpstreamOutcomeStats extends Omit<TimeSeriesStatsPoint, 'timestamp' | 'avgResponseTime' | 'requestCounts'> {
|
|
81
|
+
scope: RequestLogScope;
|
|
82
|
+
unit: 'attempt';
|
|
83
|
+
upstream: string;
|
|
84
|
+
count: number;
|
|
85
|
+
percentage: number;
|
|
86
|
+
status2xx: number;
|
|
87
|
+
status3xx: number;
|
|
88
|
+
status4xx: number;
|
|
89
|
+
status5xx: number;
|
|
90
|
+
statusOther: number;
|
|
91
|
+
failed2xx: number;
|
|
92
|
+
}
|
|
93
|
+
export interface DashboardStats extends Omit<TimeSeriesStatsPoint, 'timestamp'> {
|
|
94
|
+
timeSeries: TimeSeriesStatsPoint[];
|
|
95
|
+
upstreams: UpstreamOutcomeStats[];
|
|
96
|
+
connectionCounts: RequestCounts;
|
|
97
|
+
totalConnections: number;
|
|
98
|
+
connectionUpstreams: UpstreamOutcomeStats[];
|
|
99
|
+
}
|
|
100
|
+
export type StatsHistoryInterval = '10s' | '1m' | '5m';
|
|
101
|
+
/** Queries consume only the reducer's projection; they never adjudicate a result. */
|
|
102
|
+
export declare class LogQueryService {
|
|
103
|
+
private readonly db;
|
|
104
|
+
constructor(db: Database);
|
|
105
|
+
private where;
|
|
106
|
+
private map;
|
|
107
|
+
private diagnostic;
|
|
108
|
+
query(params?: LogQueryParams): Promise<LogQueryResult>;
|
|
109
|
+
getById(requestId: string): Promise<LogEntry | LogDiagnosticEntry | null>;
|
|
110
|
+
getLatestLogId(): number;
|
|
111
|
+
querySince(id: number): Promise<LogEntry[]>;
|
|
112
|
+
private chain;
|
|
113
|
+
queryChains(params?: LogQueryParams): Promise<ChainQueryResult>;
|
|
114
|
+
getChainDetail(chainId: string): Promise<ChainDetail | null>;
|
|
115
|
+
getChainUpstreams(chainId: string): Promise<Array<{
|
|
116
|
+
target: string;
|
|
117
|
+
firstAttempt: number;
|
|
118
|
+
firstTs: number;
|
|
119
|
+
count: number;
|
|
120
|
+
}>>;
|
|
121
|
+
streamLogs(pollInterval?: number): AsyncGenerator<LogEntry>;
|
|
122
|
+
exportLogs(params?: LogQueryParams, format?: 'json' | 'csv'): Promise<string>;
|
|
123
|
+
private summary;
|
|
124
|
+
getStats(startTime?: number, endTime?: number): Promise<Omit<TimeSeriesStatsPoint, 'timestamp'>>;
|
|
125
|
+
private queryStats;
|
|
126
|
+
getChainCount(startTime: number, endTime: number): Promise<number>;
|
|
127
|
+
getTimeSeriesStats(startTime: number, endTime: number, interval?: 'minute' | '30min' | 'hour' | 'day'): Promise<TimeSeriesStatsPoint[]>;
|
|
128
|
+
private queryTimeSeriesStats;
|
|
129
|
+
getCumulativeHistory(startTime: number, endTime: number, interval: StatsHistoryInterval): Promise<Array<{
|
|
130
|
+
timestamp: number;
|
|
131
|
+
requests: number;
|
|
132
|
+
errors: number;
|
|
133
|
+
responseTime: number;
|
|
134
|
+
}>>;
|
|
135
|
+
private upstreams;
|
|
136
|
+
getDashboardStats(startTime: number, endTime: number, interval: 'minute' | '30min' | 'hour' | 'day'): Promise<DashboardStats>;
|
|
137
|
+
getUpstreamDistribution(startTime: number, endTime: number, limit?: number): Promise<{
|
|
138
|
+
upstream: string;
|
|
139
|
+
count: number;
|
|
140
|
+
percentage: number;
|
|
141
|
+
}[]>;
|
|
142
|
+
getUpstreamFailureStats(startTime: number, endTime: number, limit?: number): Promise<UpstreamOutcomeStats[]>;
|
|
143
|
+
getUnifiedUpstreamStats(startTime: number, endTime: number, type?: 'all' | 'success' | 'failure', limit?: number): Promise<UpstreamOutcomeStats[]>;
|
|
144
|
+
getUpstreamStatusCodeStats(startTime: number, endTime: number, limit?: number): Promise<UpstreamOutcomeStats[]>;
|
|
145
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { HttpStatusCounts, TransportCounts, RequestCounts } from '../logger/transport-outcome';
|
|
2
|
+
export type TimeRange = '1h' | '12h' | '24h';
|
|
3
|
+
export interface StatsHistory {
|
|
4
|
+
timestamps: string[];
|
|
5
|
+
requests: number[];
|
|
6
|
+
errors: number[];
|
|
7
|
+
responseTime: number[];
|
|
8
|
+
}
|
|
9
|
+
export interface StatsHistoryV2 extends StatsHistory {
|
|
10
|
+
requestCounts: {
|
|
11
|
+
[K in keyof RequestCounts]: number[];
|
|
12
|
+
};
|
|
13
|
+
httpStatusCounts: {
|
|
14
|
+
[K in keyof HttpStatusCounts]: number[];
|
|
15
|
+
};
|
|
16
|
+
transportCounts: {
|
|
17
|
+
[K in keyof TransportCounts]: number[];
|
|
18
|
+
};
|
|
19
|
+
successRate: (number | null)[];
|
|
20
|
+
failureRate: (number | null)[];
|
|
21
|
+
}
|