@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,54 @@
|
|
|
1
|
+
export declare const PROCESS_LIFETIME_GUARD_ENV = "BUNGEE_PROCESS_LIFETIME_GUARD";
|
|
2
|
+
export declare const PROCESS_LIFETIME_GUARD_DOMAIN = "bungee-local-flock";
|
|
3
|
+
export type ProcessLifetimeGuardFacts = Readonly<{
|
|
4
|
+
schema: 'bungee-process-lifetime-guard-v1';
|
|
5
|
+
identity: string;
|
|
6
|
+
process_instance_id: string;
|
|
7
|
+
path: string;
|
|
8
|
+
device: string;
|
|
9
|
+
inode: string;
|
|
10
|
+
host_boot_id: string;
|
|
11
|
+
domain: typeof PROCESS_LIFETIME_GUARD_DOMAIN;
|
|
12
|
+
}>;
|
|
13
|
+
export type HeldProcessLifetimeGuardFacts = ProcessLifetimeGuardFacts & Readonly<{
|
|
14
|
+
held: true;
|
|
15
|
+
}>;
|
|
16
|
+
export type ProcessLifetimeRetirementFence = {
|
|
17
|
+
readonly facts: ProcessLifetimeGuardFacts;
|
|
18
|
+
isCurrent(): boolean;
|
|
19
|
+
close(): void;
|
|
20
|
+
};
|
|
21
|
+
export type ProcessLifetimeGuardProbe = {
|
|
22
|
+
readonly kind: 'live';
|
|
23
|
+
} | {
|
|
24
|
+
readonly kind: 'confirmed';
|
|
25
|
+
readonly fence: ProcessLifetimeRetirementFence;
|
|
26
|
+
} | {
|
|
27
|
+
readonly kind: 'unknown';
|
|
28
|
+
readonly reason: 'missing' | 'replaced' | 'domain' | 'filesystem' | 'io' | 'malformed';
|
|
29
|
+
};
|
|
30
|
+
export declare function processLifetimeHostBootId(): string;
|
|
31
|
+
export declare function parseProcessLifetimeGuardFacts(value: unknown): ProcessLifetimeGuardFacts;
|
|
32
|
+
export declare function parseHeldProcessLifetimeGuardFacts(value: unknown): HeldProcessLifetimeGuardFacts;
|
|
33
|
+
/** Parent owns this raw native descriptor until the intended child's signed held ACK. */
|
|
34
|
+
export declare function armProcessLifetimeGuard(options: {
|
|
35
|
+
directory: string;
|
|
36
|
+
processInstanceId: string;
|
|
37
|
+
}): {
|
|
38
|
+
readonly fd: number;
|
|
39
|
+
readonly facts: ProcessLifetimeGuardFacts;
|
|
40
|
+
closeAfterHeldAck(held: HeldProcessLifetimeGuardFacts): void;
|
|
41
|
+
closeAfterChildExit(): void;
|
|
42
|
+
};
|
|
43
|
+
/** A directly launched master owns its guard without an FD handoff. It is never closed by ordinary cleanup. */
|
|
44
|
+
export declare function holdCurrentProcessLifetimeGuard(directory: string, processInstanceId: string): HeldProcessLifetimeGuardFacts;
|
|
45
|
+
export declare function holdInheritedProcessLifetimeGuard(environment: Readonly<NodeJS.ProcessEnv>, processInstanceId: string): HeldProcessLifetimeGuardFacts | null;
|
|
46
|
+
/** Existing-only probe. Confirmed keeps the lock until the durable irreversible fence. */
|
|
47
|
+
export declare function probeExistingProcessLifetimeGuard(value: unknown): ProcessLifetimeGuardProbe;
|
|
48
|
+
export type ProcessLifetimeHeldAck = {
|
|
49
|
+
readonly boot_nonce: string;
|
|
50
|
+
readonly guard: HeldProcessLifetimeGuardFacts;
|
|
51
|
+
readonly mac: string;
|
|
52
|
+
};
|
|
53
|
+
export declare function writeProcessLifetimeHeldAck(path: string, guard: HeldProcessLifetimeGuardFacts, bootNonce: string, key: Readonly<Uint8Array>): void;
|
|
54
|
+
export declare function parseProcessLifetimeHeldAck(value: unknown, key: Readonly<Uint8Array>): ProcessLifetimeHeldAck;
|
|
@@ -0,0 +1,173 @@
|
|
|
1
|
+
export declare const SUPERVISION_PROTOCOL = "bungee-supervision-v1";
|
|
2
|
+
export declare const MAX_SUPERVISION_INTEGER: number;
|
|
3
|
+
export type SupervisionRole = 'ingress' | 'worker';
|
|
4
|
+
export type SupervisionDirection = 'controller-to-process' | 'process-to-controller';
|
|
5
|
+
export type SupervisionRootKeyMaterial = Uint8Array;
|
|
6
|
+
export type SupervisionMac = `hmac-sha256:${string}`;
|
|
7
|
+
/** A worker-scoped handoff; unlike a process credential it cannot sign messages. */
|
|
8
|
+
export type WorkerSupervisionSeed = {
|
|
9
|
+
readonly master_generation: string;
|
|
10
|
+
readonly worker_instance_id: string;
|
|
11
|
+
readonly worker_slot: number;
|
|
12
|
+
readonly seed: Readonly<Uint8Array>;
|
|
13
|
+
readonly seed_binding: Readonly<Uint8Array>;
|
|
14
|
+
};
|
|
15
|
+
export type ProcessIdentity = {
|
|
16
|
+
readonly role: SupervisionRole;
|
|
17
|
+
readonly process_instance_id: string;
|
|
18
|
+
readonly boot_nonce: string;
|
|
19
|
+
};
|
|
20
|
+
export type SupervisionProcessCredential = {
|
|
21
|
+
readonly identity: ProcessIdentity;
|
|
22
|
+
readonly process_key: Readonly<Uint8Array>;
|
|
23
|
+
};
|
|
24
|
+
export type ControllerAuthority = {
|
|
25
|
+
readonly controller_epoch: number;
|
|
26
|
+
readonly controller_id: string;
|
|
27
|
+
};
|
|
28
|
+
type MessageBase = ProcessIdentity & ControllerAuthority & {
|
|
29
|
+
readonly protocol: typeof SUPERVISION_PROTOCOL;
|
|
30
|
+
readonly kind: SupervisionMessageKind;
|
|
31
|
+
readonly direction: SupervisionDirection;
|
|
32
|
+
readonly sequence: number;
|
|
33
|
+
readonly request_id: string;
|
|
34
|
+
readonly mac: SupervisionMac;
|
|
35
|
+
};
|
|
36
|
+
export type SupervisionMessageKind = 'challenge' | 'attach' | 'lease' | 'status' | 'command';
|
|
37
|
+
export type ChallengeMessage = MessageBase & {
|
|
38
|
+
readonly kind: 'challenge';
|
|
39
|
+
readonly challenge_nonce: string;
|
|
40
|
+
readonly expires_at: number;
|
|
41
|
+
};
|
|
42
|
+
export type AttachMessage = MessageBase & {
|
|
43
|
+
readonly kind: 'attach';
|
|
44
|
+
readonly challenge_nonce: string;
|
|
45
|
+
};
|
|
46
|
+
export type LeaseMessage = MessageBase & {
|
|
47
|
+
readonly kind: 'lease';
|
|
48
|
+
readonly lease_expires_at: number;
|
|
49
|
+
};
|
|
50
|
+
export type StatusMessage = MessageBase & {
|
|
51
|
+
readonly kind: 'status';
|
|
52
|
+
readonly status: string;
|
|
53
|
+
readonly body_hash: `sha256:${string}`;
|
|
54
|
+
};
|
|
55
|
+
export type CommandEnvelope = MessageBase & {
|
|
56
|
+
readonly kind: 'command';
|
|
57
|
+
readonly method: string;
|
|
58
|
+
readonly path: string;
|
|
59
|
+
readonly body_hash: `sha256:${string}`;
|
|
60
|
+
};
|
|
61
|
+
export type SupervisionMessage = ChallengeMessage | AttachMessage | LeaseMessage | StatusMessage | CommandEnvelope;
|
|
62
|
+
export type UnsignedSupervisionMessage = Omit<ChallengeMessage, 'mac'> | Omit<AttachMessage, 'mac'> | Omit<LeaseMessage, 'mac'> | Omit<StatusMessage, 'mac'> | Omit<CommandEnvelope, 'mac'>;
|
|
63
|
+
export type SupervisionProtocolErrorCode = 'malformed_message' | 'unsupported_protocol' | 'invalid_mac' | 'identity_mismatch' | 'challenge_expired' | 'challenge_replayed' | 'challenge_mismatch' | 'challenge_capacity' | 'stale_controller' | 'split_brain' | 'unattached_controller' | 'sequence_replay' | 'request_replay' | 'request_capacity' | 'ingress_frozen' | 'status_correlation_mismatch' | 'worker_frozen' | 'worker_not_ready' | 'invalid_key_material';
|
|
64
|
+
export declare class SupervisionProtocolError extends Error {
|
|
65
|
+
readonly code: SupervisionProtocolErrorCode;
|
|
66
|
+
readonly name = "SupervisionProtocolError";
|
|
67
|
+
constructor(code: SupervisionProtocolErrorCode, message: string, options?: {
|
|
68
|
+
readonly cause?: unknown;
|
|
69
|
+
});
|
|
70
|
+
}
|
|
71
|
+
export declare function isCanonicalSupervisionPath(path: string): boolean;
|
|
72
|
+
export declare function parseSupervisionMessage(value: unknown): SupervisionMessage;
|
|
73
|
+
/**
|
|
74
|
+
* Derive the sole per-process key from the caller-owned stable root key. The
|
|
75
|
+
* future master composition must pass the 32-byte value parsed from the
|
|
76
|
+
* existing BUNGEE_PLUGIN_SECRETS_KEY source; this layer never persists or
|
|
77
|
+
* forwards that root value to a child.
|
|
78
|
+
*/
|
|
79
|
+
export declare function deriveSupervisionProcessKey(rootKeyMaterial: SupervisionRootKeyMaterial, instanceId: string, role: SupervisionRole, processInstanceId: string, bootNonce: string): SupervisionProcessCredential;
|
|
80
|
+
/** Derives only the seed bound to one future worker identity. The root never leaves this function. */
|
|
81
|
+
export declare function deriveWorkerSupervisionSeed(rootKeyMaterial: SupervisionRootKeyMaterial, masterGeneration: string, workerInstanceId: string, workerSlot: number): WorkerSupervisionSeed;
|
|
82
|
+
export declare function deriveWorkerSupervisionCredential(seed: WorkerSupervisionSeed, bootNonce: string): SupervisionProcessCredential;
|
|
83
|
+
export declare function serializeSupervisionCredential(credential: SupervisionProcessCredential): string;
|
|
84
|
+
export declare function serializeWorkerSupervisionSeed(seed: WorkerSupervisionSeed): string;
|
|
85
|
+
export declare function importWorkerSupervisionSeed(serialized: string): WorkerSupervisionSeed;
|
|
86
|
+
export declare function importSupervisionCredential(serialized: string): SupervisionProcessCredential;
|
|
87
|
+
/** Stable data-plane credential; the root is consumed only by this derivation. */
|
|
88
|
+
export declare function deriveWorkerTransportSecret(rootKeyMaterial: SupervisionRootKeyMaterial, instanceId: string): string;
|
|
89
|
+
export declare function signSupervisionMessage(message: UnsignedSupervisionMessage, credential: SupervisionProcessCredential): SupervisionMessage;
|
|
90
|
+
export declare function verifySupervisionMessage(value: unknown, credential: SupervisionProcessCredential): true;
|
|
91
|
+
export declare function isValidSupervisionMessage(value: unknown, credential: SupervisionProcessCredential): boolean;
|
|
92
|
+
export declare function hashSupervisionBody(body: unknown): `sha256:${string}`;
|
|
93
|
+
export type PendingChallenge = Omit<ChallengeMessage, 'mac'>;
|
|
94
|
+
type ChallengeIssue = Omit<PendingChallenge, 'protocol' | 'kind' | 'direction' | 'challenge_nonce' | 'expires_at'>;
|
|
95
|
+
export type PendingChallengeStoreOptions = {
|
|
96
|
+
readonly clock?: () => number;
|
|
97
|
+
readonly ttlMs?: number;
|
|
98
|
+
readonly capacity?: number;
|
|
99
|
+
};
|
|
100
|
+
export declare class PendingChallengeStore {
|
|
101
|
+
private readonly clock;
|
|
102
|
+
private readonly ttlMs;
|
|
103
|
+
private readonly capacity;
|
|
104
|
+
private readonly pending;
|
|
105
|
+
private readonly retired;
|
|
106
|
+
constructor(options?: PendingChallengeStoreOptions);
|
|
107
|
+
issue(input: ChallengeIssue): PendingChallenge;
|
|
108
|
+
consume(attach: Pick<AttachMessage, 'challenge_nonce' | 'role' | 'process_instance_id' | 'boot_nonce' | 'controller_epoch' | 'controller_id'>): PendingChallenge;
|
|
109
|
+
peek(attach: Pick<AttachMessage, 'challenge_nonce' | 'role' | 'process_instance_id' | 'boot_nonce' | 'controller_epoch' | 'controller_id'>): PendingChallenge;
|
|
110
|
+
/** Commit only a challenge returned by peek; acceptAttach is the public transition. */
|
|
111
|
+
consumePeeked(challenge: PendingChallenge): void;
|
|
112
|
+
get size(): number;
|
|
113
|
+
private expire;
|
|
114
|
+
private remember;
|
|
115
|
+
}
|
|
116
|
+
export declare function validateControllerAuthority(message: ControllerAuthority, current: ControllerAuthority | null): 'accepted' | 'idempotent';
|
|
117
|
+
export type SupervisionGuardSnapshot = {
|
|
118
|
+
readonly authority: ControllerAuthority | null;
|
|
119
|
+
readonly sequences: ReadonlyMap<string, number>;
|
|
120
|
+
};
|
|
121
|
+
/** Verifies status evidence without changing the process authority guard. */
|
|
122
|
+
export declare class SupervisionStatusReplayGuard {
|
|
123
|
+
private authority;
|
|
124
|
+
private sequence;
|
|
125
|
+
accept(message: StatusMessage, expected: ControllerAuthority, requestId: string): void;
|
|
126
|
+
}
|
|
127
|
+
type GuardMessage = Pick<SupervisionMessage, 'kind' | 'role' | 'process_instance_id' | 'boot_nonce' | 'controller_epoch' | 'controller_id' | 'direction' | 'sequence'>;
|
|
128
|
+
/** Accept messages only after MAC verification; authority changes and sequence resets commit together. */
|
|
129
|
+
export declare class SupervisionAuthorityGuard {
|
|
130
|
+
private authority;
|
|
131
|
+
private sequences;
|
|
132
|
+
accept(message: GuardMessage): void;
|
|
133
|
+
private prepareAttach;
|
|
134
|
+
private prepare;
|
|
135
|
+
private commit;
|
|
136
|
+
snapshot(): SupervisionGuardSnapshot;
|
|
137
|
+
assertAuthority(message: ControllerAuthority): void;
|
|
138
|
+
acceptAttach(message: AttachMessage, credential: SupervisionProcessCredential, challenges: PendingChallengeStore): PendingChallenge;
|
|
139
|
+
}
|
|
140
|
+
/** The only attach transition: no await occurs between verification, peek, and commit. */
|
|
141
|
+
export declare function acceptAttach(message: AttachMessage, credential: SupervisionProcessCredential, challenges: PendingChallengeStore, authority: SupervisionAuthorityGuard): PendingChallenge;
|
|
142
|
+
export type CommandExecutionResult<Result> = {
|
|
143
|
+
readonly kind: 'settled';
|
|
144
|
+
readonly result_lookup_key: string;
|
|
145
|
+
readonly result: Result;
|
|
146
|
+
};
|
|
147
|
+
export type SupervisionCommandGuardOptions = {
|
|
148
|
+
readonly capacity?: number;
|
|
149
|
+
};
|
|
150
|
+
export declare class SupervisionCommandGuard {
|
|
151
|
+
private readonly requests;
|
|
152
|
+
private readonly authority;
|
|
153
|
+
private readonly capacity;
|
|
154
|
+
private tail;
|
|
155
|
+
constructor(authority?: SupervisionAuthorityGuard, options?: SupervisionCommandGuardOptions);
|
|
156
|
+
execute<Result>(message: CommandEnvelope, resultLookupKey: string, action: () => Result | PromiseLike<Result>): Promise<CommandExecutionResult<Result>>;
|
|
157
|
+
/** Shutdown is authenticated and replay-guarded, but must not wait for a mutating command. */
|
|
158
|
+
executeShutdown<Result>(message: CommandEnvelope, resultLookupKey: string, action: () => Result | PromiseLike<Result>): Promise<CommandExecutionResult<Result>>;
|
|
159
|
+
private executeInternal;
|
|
160
|
+
executeStatus<Result>(message: StatusMessage, resultLookupKey: string, action: () => Result | PromiseLike<Result>): Promise<CommandExecutionResult<Result>>;
|
|
161
|
+
/**
|
|
162
|
+
* Read-only status work keeps the authority/sequence fence but deliberately
|
|
163
|
+
* retains no replay result. Mutating commands must continue using execute().
|
|
164
|
+
*/
|
|
165
|
+
executeStatusReadOnly<Result>(message: StatusMessage, action: () => Result | PromiseLike<Result>): Promise<Result>;
|
|
166
|
+
private clearOldEpochRequests;
|
|
167
|
+
}
|
|
168
|
+
/** Contract: controller sends for each process and direction are serialized independently. */
|
|
169
|
+
export declare class SupervisionSendQueue {
|
|
170
|
+
private readonly tails;
|
|
171
|
+
enqueue<Result>(identity: ProcessIdentity, direction: SupervisionDirection, send: () => Result | PromiseLike<Result>): Promise<Result>;
|
|
172
|
+
}
|
|
173
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { Database } from 'bun:sqlite';
|
|
2
|
+
export type SupervisionState = {
|
|
3
|
+
readonly instance_id: string;
|
|
4
|
+
readonly controller_epoch: number;
|
|
5
|
+
readonly current_controller_id: string | null;
|
|
6
|
+
readonly updated_at: number;
|
|
7
|
+
};
|
|
8
|
+
export declare class SupervisionStateRepository {
|
|
9
|
+
private readonly db;
|
|
10
|
+
constructor(db: Database);
|
|
11
|
+
get(): SupervisionState;
|
|
12
|
+
/** Caller must hold the master instance locks; lock ownership is outside this repository. */
|
|
13
|
+
claim(controllerId: string, updatedAt: number): SupervisionState;
|
|
14
|
+
}
|
|
15
|
+
export declare function readSupervisionState(db: Database): SupervisionState;
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { type HeldProcessLifetimeGuardFacts } from './process-lifetime-guard';
|
|
2
|
+
import type { ConfigWorkerRuntimeMessage } from '../config-publication/worker-runtime-contract';
|
|
3
|
+
import type { ConfigPublicationIdentity } from '../config-publication/types';
|
|
4
|
+
import type { SupervisionMac, SupervisionProcessCredential } from './protocol';
|
|
5
|
+
export type WorkerDescriptorPhase = 'candidate' | 'serving' | 'draining' | 'stopped';
|
|
6
|
+
/**
|
|
7
|
+
* Signed terminal cleanup record. It is written only after the worker's owned
|
|
8
|
+
* shutdown cleanup settled, so a coordinator must never derive it from a
|
|
9
|
+
* shutdown acknowledgement or from process exit alone. A candidate that never
|
|
10
|
+
* reached `config-ready` has no drain message; this record is its release proof.
|
|
11
|
+
* `revision`/publication are the last start target observed before initialization
|
|
12
|
+
* settled, or null when no start command ever began.
|
|
13
|
+
*/
|
|
14
|
+
export type WorkerCleanupEvidence = {
|
|
15
|
+
readonly cleanup_state: 'success' | 'failed';
|
|
16
|
+
readonly revision: number | null;
|
|
17
|
+
readonly content_hash: string | null;
|
|
18
|
+
readonly plugin_catalog_hash: string | null;
|
|
19
|
+
readonly publication: ConfigPublicationIdentity | null;
|
|
20
|
+
};
|
|
21
|
+
export type WorkerDescriptorEvidence = {
|
|
22
|
+
readonly kind: 'candidate' | 'ready' | 'apply-failed' | 'draining' | 'drained' | 'drain-failed';
|
|
23
|
+
readonly message?: ConfigWorkerRuntimeMessage;
|
|
24
|
+
};
|
|
25
|
+
export type WorkerDescriptorBody = {
|
|
26
|
+
readonly schema: 'bungee-worker-descriptor-v1';
|
|
27
|
+
readonly role: 'worker';
|
|
28
|
+
readonly lifetime_guard?: HeldProcessLifetimeGuardFacts;
|
|
29
|
+
readonly master_generation: string;
|
|
30
|
+
readonly worker_instance_id: string;
|
|
31
|
+
readonly worker_slot: number;
|
|
32
|
+
readonly boot_nonce: string;
|
|
33
|
+
/** Diagnostic only. Discovery requires descriptor PID === online signed status PID, never AdmissionSet PID. */
|
|
34
|
+
readonly pid: number;
|
|
35
|
+
readonly control_port: number;
|
|
36
|
+
readonly master_control_port?: number;
|
|
37
|
+
readonly phase: WorkerDescriptorPhase;
|
|
38
|
+
readonly frozen: boolean;
|
|
39
|
+
readonly private_port: number | null;
|
|
40
|
+
readonly revision: number | null;
|
|
41
|
+
readonly content_hash: string | null;
|
|
42
|
+
readonly plugin_catalog_hash: string | null;
|
|
43
|
+
readonly started_at: number;
|
|
44
|
+
readonly evidence: WorkerDescriptorEvidence;
|
|
45
|
+
readonly cleanup?: WorkerCleanupEvidence;
|
|
46
|
+
};
|
|
47
|
+
export type WorkerDescriptor = WorkerDescriptorBody & {
|
|
48
|
+
readonly descriptor_mac: SupervisionMac;
|
|
49
|
+
};
|
|
50
|
+
export type WorkerDescriptorFile = {
|
|
51
|
+
writeFile(data: string, encoding: 'utf8'): Promise<void>;
|
|
52
|
+
chmod(mode: number): Promise<void>;
|
|
53
|
+
sync(): Promise<void>;
|
|
54
|
+
close(): Promise<void>;
|
|
55
|
+
};
|
|
56
|
+
export type WorkerDescriptorFs = {
|
|
57
|
+
mkdir(path: string, options: {
|
|
58
|
+
readonly recursive: true;
|
|
59
|
+
readonly mode: number;
|
|
60
|
+
}): Promise<unknown>;
|
|
61
|
+
chmod(path: string, mode: number): Promise<void>;
|
|
62
|
+
open(path: string, flags: string, mode?: number): Promise<WorkerDescriptorFile>;
|
|
63
|
+
rename(from: string, to: string): Promise<void>;
|
|
64
|
+
rm(path: string, options: {
|
|
65
|
+
readonly force: true;
|
|
66
|
+
}): Promise<void>;
|
|
67
|
+
};
|
|
68
|
+
export type WorkerDescriptorWriteOptions = {
|
|
69
|
+
readonly fs?: WorkerDescriptorFs;
|
|
70
|
+
readonly platform?: NodeJS.Platform | string;
|
|
71
|
+
};
|
|
72
|
+
export declare function parseWorkerDescriptorEvidence(value: unknown): WorkerDescriptorEvidence;
|
|
73
|
+
export declare function signWorkerDescriptor(body: WorkerDescriptorBody, key: Readonly<Uint8Array>): WorkerDescriptor;
|
|
74
|
+
export declare function parseWorkerDescriptor(value: unknown, credential: SupervisionProcessCredential | Readonly<Uint8Array>): WorkerDescriptor;
|
|
75
|
+
export declare function verifyWorkerDescriptor(value: unknown, credential: SupervisionProcessCredential | Readonly<Uint8Array>): value is WorkerDescriptor;
|
|
76
|
+
export declare function writeWorkerDescriptor(path: string, body: WorkerDescriptorBody, key: Readonly<Uint8Array>, options?: WorkerDescriptorWriteOptions): Promise<WorkerDescriptor>;
|
|
77
|
+
export declare function removeWorkerDescriptor(path: string, options?: WorkerDescriptorWriteOptions): Promise<void>;
|
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
import type { HeldProcessLifetimeGuardFacts } from './process-lifetime-guard';
|
|
2
|
+
import type { ConfigProcessIdentity } from '../config-publication/types';
|
|
3
|
+
import type { ConfigWorkerRuntimeController, ConfigWorkerRuntimeMessage } from '../config-publication/worker-runtime-contract';
|
|
4
|
+
import { PendingChallengeStore, SupervisionAuthorityGuard, SupervisionCommandGuard, type ControllerAuthority, type ProcessIdentity, type SupervisionProcessCredential } from './protocol';
|
|
5
|
+
import { type WorkerRuntimeSnapshotProvider } from './worker-runtime-snapshot';
|
|
6
|
+
import { type WorkerCleanupEvidence, type WorkerDescriptorFs, type WorkerDescriptorPhase } from './worker-descriptor';
|
|
7
|
+
export type WorkerStatusEvidence = {
|
|
8
|
+
readonly kind: 'candidate' | 'ready' | 'apply-failed' | 'draining' | 'drained' | 'drain-failed';
|
|
9
|
+
readonly message?: ConfigWorkerRuntimeMessage;
|
|
10
|
+
};
|
|
11
|
+
export type WorkerStatusPayload = {
|
|
12
|
+
readonly schema: 'bungee-worker-status-v1';
|
|
13
|
+
readonly role: 'worker';
|
|
14
|
+
readonly master_generation: string;
|
|
15
|
+
readonly worker_instance_id: string;
|
|
16
|
+
readonly worker_slot: number;
|
|
17
|
+
readonly boot_nonce: string;
|
|
18
|
+
readonly pid: number;
|
|
19
|
+
readonly control_port: number;
|
|
20
|
+
readonly master_control_port: number;
|
|
21
|
+
readonly phase: WorkerDescriptorPhase;
|
|
22
|
+
readonly frozen: boolean;
|
|
23
|
+
readonly private_port: number | null;
|
|
24
|
+
readonly revision: number | null;
|
|
25
|
+
readonly content_hash: string | null;
|
|
26
|
+
readonly plugin_catalog_hash: string | null;
|
|
27
|
+
readonly started_at: number;
|
|
28
|
+
readonly snapshot_hash: `sha256:${string}`;
|
|
29
|
+
readonly authority: ControllerAuthority;
|
|
30
|
+
readonly request_correlation: string;
|
|
31
|
+
readonly replay: {
|
|
32
|
+
readonly sequence: number;
|
|
33
|
+
readonly request_id: string;
|
|
34
|
+
};
|
|
35
|
+
readonly evidence: WorkerStatusEvidence;
|
|
36
|
+
};
|
|
37
|
+
export type WorkerSupervisionHttpServerOptions = {
|
|
38
|
+
readonly credential: SupervisionProcessCredential;
|
|
39
|
+
readonly identity: ConfigProcessIdentity;
|
|
40
|
+
readonly runtime: ConfigWorkerRuntimeController;
|
|
41
|
+
readonly lifetimeGuard?: HeldProcessLifetimeGuardFacts;
|
|
42
|
+
readonly controlPort?: number;
|
|
43
|
+
readonly masterControlPort: number;
|
|
44
|
+
readonly descriptorPath?: string;
|
|
45
|
+
readonly descriptorFs?: WorkerDescriptorFs;
|
|
46
|
+
readonly descriptorPlatform?: NodeJS.Platform | string;
|
|
47
|
+
readonly clock?: () => number;
|
|
48
|
+
readonly maxBodyBytes?: number;
|
|
49
|
+
readonly bodyTimeoutMs?: number;
|
|
50
|
+
readonly attachGraceMs?: number;
|
|
51
|
+
readonly startupWatchdogMs?: number;
|
|
52
|
+
readonly onStartupTimeout?: () => void | Promise<void>;
|
|
53
|
+
readonly onShutdown?: () => void | Promise<void>;
|
|
54
|
+
/** Injected synchronous provider; runtime state is never read by this transport. */
|
|
55
|
+
readonly runtimeSnapshotProvider?: WorkerRuntimeSnapshotProvider;
|
|
56
|
+
};
|
|
57
|
+
export type WorkerControllerAuthorityListener = (authority: ControllerAuthority | null) => void;
|
|
58
|
+
export declare class WorkerSupervisionHttpServer {
|
|
59
|
+
readonly identity: ProcessIdentity;
|
|
60
|
+
readonly challenges: PendingChallengeStore;
|
|
61
|
+
readonly authority: SupervisionAuthorityGuard;
|
|
62
|
+
readonly commands: SupervisionCommandGuard;
|
|
63
|
+
private readonly credential;
|
|
64
|
+
private readonly lifetimeGuard?;
|
|
65
|
+
private readonly workerIdentity;
|
|
66
|
+
private readonly runtime;
|
|
67
|
+
private readonly clock;
|
|
68
|
+
private readonly maxBodyBytes;
|
|
69
|
+
private readonly bodyTimeoutMs;
|
|
70
|
+
private readonly attachGraceMs;
|
|
71
|
+
private readonly startupWatchdogMs;
|
|
72
|
+
private readonly descriptorPath?;
|
|
73
|
+
private readonly descriptorWriteOptions;
|
|
74
|
+
private readonly onStartupTimeout?;
|
|
75
|
+
private readonly onShutdown?;
|
|
76
|
+
private readonly runtimeSnapshotProvider?;
|
|
77
|
+
private readonly authorityListeners;
|
|
78
|
+
private controlPort;
|
|
79
|
+
private readonly masterControlPort;
|
|
80
|
+
private controlServer;
|
|
81
|
+
private phase;
|
|
82
|
+
private frozen;
|
|
83
|
+
private leaseDeadline;
|
|
84
|
+
private leaseTimer;
|
|
85
|
+
private startupTimer;
|
|
86
|
+
private statusSequence;
|
|
87
|
+
private startedAt;
|
|
88
|
+
private privatePort;
|
|
89
|
+
private revision;
|
|
90
|
+
private contentHash;
|
|
91
|
+
private pluginCatalogHash;
|
|
92
|
+
private evidence;
|
|
93
|
+
private cleanupEvidence;
|
|
94
|
+
private publishedAuthority;
|
|
95
|
+
private terminating;
|
|
96
|
+
constructor(options: WorkerSupervisionHttpServerOptions);
|
|
97
|
+
get port(): number;
|
|
98
|
+
get currentPhase(): WorkerDescriptorPhase;
|
|
99
|
+
isFrozen(): boolean;
|
|
100
|
+
currentControllerAuthorityIfLeased(): ControllerAuthority | null;
|
|
101
|
+
subscribeControllerAuthority(listener: WorkerControllerAuthorityListener): () => void;
|
|
102
|
+
listen(): Promise<number>;
|
|
103
|
+
stop(): Promise<void>;
|
|
104
|
+
persistTerminalEvidence(message: Extract<ConfigWorkerRuntimeMessage, {
|
|
105
|
+
status: 'worker-drained' | 'worker-drain-failed';
|
|
106
|
+
}>): Promise<void>;
|
|
107
|
+
/**
|
|
108
|
+
* Persists the signed terminal cleanup record. The caller must only pass
|
|
109
|
+
* `success` after every owned shutdown cleanup step settled; this record never
|
|
110
|
+
* derives from the pre-cleanup `/shutdown` acknowledgement or the exit code.
|
|
111
|
+
*/
|
|
112
|
+
persistCleanupEvidence(evidence: WorkerCleanupEvidence): Promise<void>;
|
|
113
|
+
fetch(request: Request): Promise<Response>;
|
|
114
|
+
private now;
|
|
115
|
+
private identityResponse;
|
|
116
|
+
private facts;
|
|
117
|
+
private updateDescriptor;
|
|
118
|
+
private refreshDescriptorBestEffort;
|
|
119
|
+
private signedStatus;
|
|
120
|
+
private currentEvidence;
|
|
121
|
+
private statusResponse;
|
|
122
|
+
private statusRequest;
|
|
123
|
+
private runtimeSnapshotInput;
|
|
124
|
+
private runtimeResponse;
|
|
125
|
+
private runtimeRequest;
|
|
126
|
+
private challenge;
|
|
127
|
+
private attach;
|
|
128
|
+
private lease;
|
|
129
|
+
private command;
|
|
130
|
+
private executeCommand;
|
|
131
|
+
private scheduleLease;
|
|
132
|
+
private expireLease;
|
|
133
|
+
private leasedAuthority;
|
|
134
|
+
private publishAuthorityIfChanged;
|
|
135
|
+
}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
export declare const WORKER_RUNTIME_SNAPSHOT_SCHEMA: "bungee-worker-runtime-snapshot-v1";
|
|
2
|
+
export declare const MAX_WORKER_RUNTIME_SNAPSHOT_RECORDS = 1024;
|
|
3
|
+
/** The signed HTTP wrapper has a 256 KiB limit; this reserves space for it. */
|
|
4
|
+
export declare const MAX_WORKER_RUNTIME_SNAPSHOT_BODY_BYTES: number;
|
|
5
|
+
export type WorkerRuntimeCircuitState = 'HEALTHY' | 'UNHEALTHY' | 'HALF_OPEN';
|
|
6
|
+
export interface WorkerRuntimeSnapshotRecord {
|
|
7
|
+
readonly state_key: string;
|
|
8
|
+
readonly upstream_id: string;
|
|
9
|
+
/** Circuit-breaker state only; this is not proof of an active health probe. */
|
|
10
|
+
readonly circuit_state: WorkerRuntimeCircuitState;
|
|
11
|
+
readonly active_request_count: number;
|
|
12
|
+
readonly last_used_time: number | null;
|
|
13
|
+
readonly last_failure_time: number | null;
|
|
14
|
+
readonly consecutive_failures: number;
|
|
15
|
+
readonly consecutive_successes: number;
|
|
16
|
+
readonly health_check_successes: number;
|
|
17
|
+
readonly health_check_failures: number;
|
|
18
|
+
readonly recovery_attempt_count: number;
|
|
19
|
+
}
|
|
20
|
+
export interface WorkerRuntimeSnapshotIdentity {
|
|
21
|
+
readonly master_generation: string;
|
|
22
|
+
readonly worker_instance_id: string;
|
|
23
|
+
readonly worker_slot: number;
|
|
24
|
+
readonly boot_nonce: string;
|
|
25
|
+
readonly pid: number;
|
|
26
|
+
readonly private_port: number;
|
|
27
|
+
readonly revision: number;
|
|
28
|
+
readonly content_hash: string;
|
|
29
|
+
readonly plugin_catalog_hash: string;
|
|
30
|
+
}
|
|
31
|
+
export interface WorkerRuntimeSnapshotComplete {
|
|
32
|
+
readonly kind: 'complete';
|
|
33
|
+
readonly records: readonly WorkerRuntimeSnapshotRecord[];
|
|
34
|
+
}
|
|
35
|
+
export type WorkerRuntimeSnapshotOverflowReason = 'record_count' | 'payload_bytes';
|
|
36
|
+
export interface WorkerRuntimeSnapshotOverflow {
|
|
37
|
+
readonly kind: 'overflow';
|
|
38
|
+
readonly reason: WorkerRuntimeSnapshotOverflowReason;
|
|
39
|
+
readonly upstream_count: number;
|
|
40
|
+
}
|
|
41
|
+
export type WorkerRuntimeSnapshotResult = WorkerRuntimeSnapshotComplete | WorkerRuntimeSnapshotOverflow;
|
|
42
|
+
export interface WorkerRuntimeSnapshot extends WorkerRuntimeSnapshotIdentity {
|
|
43
|
+
readonly schema: typeof WORKER_RUNTIME_SNAPSHOT_SCHEMA;
|
|
44
|
+
readonly captured_at: number;
|
|
45
|
+
readonly result: WorkerRuntimeSnapshotResult;
|
|
46
|
+
}
|
|
47
|
+
export type WorkerRuntimeSnapshotInput = WorkerRuntimeSnapshotIdentity & {
|
|
48
|
+
readonly captured_at: number;
|
|
49
|
+
};
|
|
50
|
+
/** Synchronous state source injected by the worker lifecycle/composition boundary. */
|
|
51
|
+
export type WorkerRuntimeSnapshotProvider = (input: WorkerRuntimeSnapshotInput) => WorkerRuntimeSnapshot;
|
|
52
|
+
export type WorkerRuntimeSnapshotErrorCode = 'invalid_snapshot' | 'runtime_state_invalid';
|
|
53
|
+
export declare class WorkerRuntimeSnapshotError extends Error {
|
|
54
|
+
readonly code: WorkerRuntimeSnapshotErrorCode;
|
|
55
|
+
readonly cause?: unknown | undefined;
|
|
56
|
+
readonly name = "WorkerRuntimeSnapshotError";
|
|
57
|
+
constructor(code: WorkerRuntimeSnapshotErrorCode, message: string, cause?: unknown | undefined);
|
|
58
|
+
}
|
|
59
|
+
/** Normalizes the plain snapshot body; it returns no JSON bytes. */
|
|
60
|
+
export declare function normalizeWorkerRuntimeSnapshotBody(value: unknown): WorkerRuntimeSnapshot;
|
|
61
|
+
/** Creates a bounded, identity-preserving snapshot body from runtime state. */
|
|
62
|
+
export declare function createWorkerRuntimeSnapshotFromState(input: WorkerRuntimeSnapshotInput): WorkerRuntimeSnapshot;
|
|
63
|
+
/** Parses only a strict JSON-body-reader plain object; JSON parsing is external. */
|
|
64
|
+
export declare function parseWorkerRuntimeSnapshot(value: unknown): WorkerRuntimeSnapshot;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { TokenStatsRange } from './plugin.types';
|
|
2
|
+
export declare const TOKEN_STATS_RETENTION_MS: number;
|
|
3
|
+
export declare const TOKEN_STATS_RANGES: readonly ["1h", "12h", "24h", "1d", "7d", "30d", "day", "week", "month"];
|
|
4
|
+
/** Recent page ranges are consecutive elapsed hours; calendar ranges use local dates. */
|
|
5
|
+
export declare function tokenStatsWindow(range: TokenStatsRange, asOfMs: number, timeZone?: string): {
|
|
6
|
+
startMs: number;
|
|
7
|
+
endMs: number;
|
|
8
|
+
bucketMs: number;
|
|
9
|
+
bucketStarts?: undefined;
|
|
10
|
+
bucketEndMs?: undefined;
|
|
11
|
+
} | {
|
|
12
|
+
startMs: number;
|
|
13
|
+
endMs: number;
|
|
14
|
+
bucketMs: number;
|
|
15
|
+
bucketStarts: number[];
|
|
16
|
+
bucketEndMs?: undefined;
|
|
17
|
+
} | {
|
|
18
|
+
startMs: number;
|
|
19
|
+
endMs: number;
|
|
20
|
+
bucketMs: number;
|
|
21
|
+
bucketStarts: number[];
|
|
22
|
+
bucketEndMs: number;
|
|
23
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
export declare const ICON_REVISION = "167d51ba78289f93828f180ea5337af9bd3294b71790b6fac6999e17998b63f7";
|
|
2
|
+
export declare const ICON_RESOURCES: ({
|
|
3
|
+
metadata: {
|
|
4
|
+
id: string;
|
|
5
|
+
title: string;
|
|
6
|
+
version: string;
|
|
7
|
+
total: number;
|
|
8
|
+
license: {
|
|
9
|
+
title: string;
|
|
10
|
+
url: string;
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
names: string[];
|
|
14
|
+
compressed: string;
|
|
15
|
+
} | {
|
|
16
|
+
metadata: {
|
|
17
|
+
id: string;
|
|
18
|
+
title: string;
|
|
19
|
+
version: string;
|
|
20
|
+
total: number;
|
|
21
|
+
license: {
|
|
22
|
+
title: string;
|
|
23
|
+
url?: undefined;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
names: string[];
|
|
27
|
+
compressed: string;
|
|
28
|
+
})[];
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { getIconData } from '@iconify/utils';
|
|
2
|
+
import type { MenuIconData, MenuIconCollections, MenuIconSearch, MenuIcons } from '@jeffusion/bungee-types';
|
|
3
|
+
type IconifyJSON = Parameters<typeof getIconData>[0];
|
|
4
|
+
export declare const menuIconRevision = "167d51ba78289f93828f180ea5337af9bd3294b71790b6fac6999e17998b63f7";
|
|
5
|
+
export declare function isMenuIconId(id: unknown): id is string;
|
|
6
|
+
export declare function hasMenuIconCollection(id: string): boolean;
|
|
7
|
+
/** Resolve aliases and fold all Iconify transforms into the returned SVG geometry. */
|
|
8
|
+
export declare function resolveMenuIcon(data: IconifyJSON, name: string): MenuIconData | null;
|
|
9
|
+
export declare function menuIconCollections(): MenuIconCollections;
|
|
10
|
+
export declare function searchMenuIcons(collection: string, query: string, offset: number, limit: number): MenuIconSearch;
|
|
11
|
+
export declare function menuIcons(ids: readonly string[]): MenuIcons;
|
|
12
|
+
/** Existing manifest Material names are translated explicitly to local resources. */
|
|
13
|
+
export declare const MATERIAL_MENU_ICONS: Readonly<Record<string, string>>;
|
|
14
|
+
export declare function defaultMenuIcon(value?: string): string;
|
|
15
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { MenuLayout } from '@jeffusion/bungee-types';
|
|
2
|
+
export declare const MAX_MENU_PAGES = 512;
|
|
3
|
+
export declare const MAX_MENU_GROUPS = 64;
|
|
4
|
+
export declare const MAX_MENU_LAYOUT_BYTES = 262144;
|
|
5
|
+
export declare class InvalidMenuLayoutError extends Error {
|
|
6
|
+
}
|
|
7
|
+
export declare function isMenuPageId(id: unknown): id is string;
|
|
8
|
+
/** Canonicalize titles while rejecting unknown fields, nested groups and duplicate identities. */
|
|
9
|
+
export declare function validateMenuLayout(value: unknown, allowedPages?: ReadonlySet<string>, requireAvailableIcons?: boolean): MenuLayout;
|
|
10
|
+
export declare function menuPageIds(layout: MenuLayout | null): readonly string[];
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { StrictPluginManifest } from '../plugin-manifest-catalog/types';
|
|
2
|
+
export type PluginSandboxPolicy = Readonly<{
|
|
3
|
+
attributes: 'allow-scripts';
|
|
4
|
+
csp: string;
|
|
5
|
+
allowedHostActions: readonly ('ui-context' | 'copy-styles' | 'open-external' | 'new-service' | 'references' | 'control')[];
|
|
6
|
+
controlAllowlist: readonly Readonly<{
|
|
7
|
+
path: string;
|
|
8
|
+
methods: readonly ('GET' | 'POST' | 'PUT' | 'DELETE')[];
|
|
9
|
+
}>[];
|
|
10
|
+
}>;
|
|
11
|
+
export declare function createPluginSandboxPolicy(manifest: StrictPluginManifest, active?: boolean): PluginSandboxPolicy;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { PluginManifestCatalog } from '../plugin-manifest-catalog';
|
|
2
|
+
import type { RepositorySnapshot } from '../config-storage/repository-types';
|
|
3
|
+
type SnapshotProvider = () => RepositorySnapshot | Promise<RepositorySnapshot>;
|
|
4
|
+
export interface MasterUIHandlerOptions {
|
|
5
|
+
readonly catalog: Pick<PluginManifestCatalog, 'get'>;
|
|
6
|
+
readonly getRepositorySnapshot: SnapshotProvider;
|
|
7
|
+
}
|
|
8
|
+
export type MasterUIHandler = (request: Request) => Promise<Response | null>;
|
|
9
|
+
export declare function createMasterUIHandler(options: MasterUIHandlerOptions): MasterUIHandler;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export type BinaryArchiveInstall = {
|
|
2
|
+
readonly archivePath: string;
|
|
3
|
+
readonly installRoot: string;
|
|
4
|
+
readonly version: string;
|
|
5
|
+
readonly binaryName: string;
|
|
6
|
+
};
|
|
7
|
+
export declare function parseTarListing(listing: string): string[];
|
|
8
|
+
export declare function installBinaryArchive(options: BinaryArchiveInstall): string;
|