@vibesdotdev/kernel-rpc 0.0.0-stage → 1.0.0-rc.2
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/LICENSE +18 -0
- package/README.md +237 -2
- package/dist/cli/daemon/control/runtime.daemon.restart.descriptor.d.ts +9 -0
- package/dist/cli/daemon/control/runtime.daemon.restart.descriptor.d.ts.map +1 -0
- package/dist/cli/daemon/control/runtime.daemon.restart.descriptor.js +25 -0
- package/dist/cli/daemon/control/runtime.daemon.restart.descriptor.js.map +1 -0
- package/dist/cli/daemon/control/runtime.daemon.restart.impl.consumer.d.ts +13 -0
- package/dist/cli/daemon/control/runtime.daemon.restart.impl.consumer.d.ts.map +1 -0
- package/dist/cli/daemon/control/runtime.daemon.restart.impl.consumer.js +36 -0
- package/dist/cli/daemon/control/runtime.daemon.restart.impl.consumer.js.map +1 -0
- package/dist/cli/daemon/control/runtime.daemon.start.descriptor.d.ts +9 -0
- package/dist/cli/daemon/control/runtime.daemon.start.descriptor.d.ts.map +1 -0
- package/dist/cli/daemon/control/runtime.daemon.start.descriptor.js +22 -0
- package/dist/cli/daemon/control/runtime.daemon.start.descriptor.js.map +1 -0
- package/dist/cli/daemon/control/runtime.daemon.start.impl.consumer.d.ts +13 -0
- package/dist/cli/daemon/control/runtime.daemon.start.impl.consumer.d.ts.map +1 -0
- package/dist/cli/daemon/control/runtime.daemon.start.impl.consumer.js +61 -0
- package/dist/cli/daemon/control/runtime.daemon.start.impl.consumer.js.map +1 -0
- package/dist/cli/daemon/control/runtime.daemon.stop.descriptor.d.ts +9 -0
- package/dist/cli/daemon/control/runtime.daemon.stop.descriptor.d.ts.map +1 -0
- package/dist/cli/daemon/control/runtime.daemon.stop.descriptor.js +24 -0
- package/dist/cli/daemon/control/runtime.daemon.stop.descriptor.js.map +1 -0
- package/dist/cli/daemon/control/runtime.daemon.stop.impl.consumer.d.ts +14 -0
- package/dist/cli/daemon/control/runtime.daemon.stop.impl.consumer.d.ts.map +1 -0
- package/dist/cli/daemon/control/runtime.daemon.stop.impl.consumer.js +41 -0
- package/dist/cli/daemon/control/runtime.daemon.stop.impl.consumer.js.map +1 -0
- package/dist/cli/daemon/runtime.daemon.cli-group.descriptor.d.ts +9 -0
- package/dist/cli/daemon/runtime.daemon.cli-group.descriptor.d.ts.map +1 -0
- package/dist/cli/daemon/runtime.daemon.cli-group.descriptor.js +17 -0
- package/dist/cli/daemon/runtime.daemon.cli-group.descriptor.js.map +1 -0
- package/dist/cli/daemon/runtime.daemon.serve.descriptor.d.ts +10 -0
- package/dist/cli/daemon/runtime.daemon.serve.descriptor.d.ts.map +1 -0
- package/dist/cli/daemon/runtime.daemon.serve.descriptor.js +23 -0
- package/dist/cli/daemon/runtime.daemon.serve.descriptor.js.map +1 -0
- package/dist/cli/daemon/runtime.daemon.serve.impl.consumer.d.ts +22 -0
- package/dist/cli/daemon/runtime.daemon.serve.impl.consumer.d.ts.map +1 -0
- package/dist/cli/daemon/runtime.daemon.serve.impl.consumer.js +68 -0
- package/dist/cli/daemon/runtime.daemon.serve.impl.consumer.js.map +1 -0
- package/dist/cli/daemon/runtime.daemon.status.descriptor.d.ts +9 -0
- package/dist/cli/daemon/runtime.daemon.status.descriptor.d.ts.map +1 -0
- package/dist/cli/daemon/runtime.daemon.status.descriptor.js +24 -0
- package/dist/cli/daemon/runtime.daemon.status.descriptor.js.map +1 -0
- package/dist/cli/daemon/runtime.daemon.status.impl.consumer.d.ts +12 -0
- package/dist/cli/daemon/runtime.daemon.status.impl.consumer.d.ts.map +1 -0
- package/dist/cli/daemon/runtime.daemon.status.impl.consumer.js +110 -0
- package/dist/cli/daemon/runtime.daemon.status.impl.consumer.js.map +1 -0
- package/dist/cli/discovery/runtime.doctor.descriptor.d.ts +10 -0
- package/dist/cli/discovery/runtime.doctor.descriptor.d.ts.map +1 -0
- package/dist/cli/discovery/runtime.doctor.descriptor.js +29 -0
- package/dist/cli/discovery/runtime.doctor.descriptor.js.map +1 -0
- package/dist/cli/discovery/runtime.doctor.impl.consumer.d.ts +18 -0
- package/dist/cli/discovery/runtime.doctor.impl.consumer.d.ts.map +1 -0
- package/dist/cli/discovery/runtime.doctor.impl.consumer.js +129 -0
- package/dist/cli/discovery/runtime.doctor.impl.consumer.js.map +1 -0
- package/dist/cli/discovery/runtime.query.descriptor.d.ts +10 -0
- package/dist/cli/discovery/runtime.query.descriptor.d.ts.map +1 -0
- package/dist/cli/discovery/runtime.query.descriptor.js +39 -0
- package/dist/cli/discovery/runtime.query.descriptor.js.map +1 -0
- package/dist/cli/discovery/runtime.query.impl.consumer.d.ts +7 -0
- package/dist/cli/discovery/runtime.query.impl.consumer.d.ts.map +1 -0
- package/dist/cli/discovery/runtime.query.impl.consumer.js +105 -0
- package/dist/cli/discovery/runtime.query.impl.consumer.js.map +1 -0
- package/dist/cli/discovery/runtime.status.descriptor.d.ts +9 -0
- package/dist/cli/discovery/runtime.status.descriptor.d.ts.map +1 -0
- package/dist/cli/discovery/runtime.status.descriptor.js +24 -0
- package/dist/cli/discovery/runtime.status.descriptor.js.map +1 -0
- package/dist/cli/discovery/runtime.status.impl.consumer.d.ts +7 -0
- package/dist/cli/discovery/runtime.status.impl.consumer.d.ts.map +1 -0
- package/dist/cli/discovery/runtime.status.impl.consumer.js +121 -0
- package/dist/cli/discovery/runtime.status.impl.consumer.js.map +1 -0
- package/dist/cli/discovery/status-format.d.ts +19 -0
- package/dist/cli/discovery/status-format.d.ts.map +1 -0
- package/dist/cli/discovery/status-format.js +54 -0
- package/dist/cli/discovery/status-format.js.map +1 -0
- package/dist/cli/plugin.d.ts +3 -0
- package/dist/cli/plugin.d.ts.map +1 -0
- package/dist/cli/plugin.js +42 -0
- package/dist/cli/plugin.js.map +1 -0
- package/dist/cli/runtime.cli-group.descriptor.d.ts +10 -0
- package/dist/cli/runtime.cli-group.descriptor.d.ts.map +1 -0
- package/dist/cli/runtime.cli-group.descriptor.js +17 -0
- package/dist/cli/runtime.cli-group.descriptor.js.map +1 -0
- package/dist/cli/worker/_logging.d.ts +11 -0
- package/dist/cli/worker/_logging.d.ts.map +1 -0
- package/dist/cli/worker/_logging.js +40 -0
- package/dist/cli/worker/_logging.js.map +1 -0
- package/dist/cli/worker/daemon-execution.worker.entry.d.ts +51 -0
- package/dist/cli/worker/daemon-execution.worker.entry.d.ts.map +1 -0
- package/dist/cli/worker/daemon-execution.worker.entry.js +220 -0
- package/dist/cli/worker/daemon-execution.worker.entry.js.map +1 -0
- package/dist/core/descriptor-wire/serialize.d.ts +9 -0
- package/dist/core/descriptor-wire/serialize.d.ts.map +1 -0
- package/dist/core/descriptor-wire/serialize.js +88 -0
- package/dist/core/descriptor-wire/serialize.js.map +1 -0
- package/dist/core/helper.d.ts +42 -0
- package/dist/core/helper.d.ts.map +1 -0
- package/dist/core/helper.js +125 -0
- package/dist/core/helper.js.map +1 -0
- package/dist/core/kinds/rpc.kind.d.ts +48 -0
- package/dist/core/kinds/rpc.kind.d.ts.map +1 -0
- package/dist/core/kinds/rpc.kind.js +27 -0
- package/dist/core/kinds/rpc.kind.js.map +1 -0
- package/dist/core/lifecycle-repeat.d.ts +11 -0
- package/dist/core/lifecycle-repeat.d.ts.map +1 -0
- package/dist/core/lifecycle-repeat.js +59 -0
- package/dist/core/lifecycle-repeat.js.map +1 -0
- package/dist/core/protocol/lifecycle/attempt.d.ts +23 -0
- package/dist/core/protocol/lifecycle/attempt.d.ts.map +1 -0
- package/dist/core/protocol/lifecycle/attempt.js +41 -0
- package/dist/core/protocol/lifecycle/attempt.js.map +1 -0
- package/dist/core/protocol/lifecycle/binding-close.d.ts +54 -0
- package/dist/core/protocol/lifecycle/binding-close.d.ts.map +1 -0
- package/dist/core/protocol/lifecycle/binding-close.js +137 -0
- package/dist/core/protocol/lifecycle/binding-close.js.map +1 -0
- package/dist/core/protocol/lifecycle/channel-close.d.ts +39 -0
- package/dist/core/protocol/lifecycle/channel-close.d.ts.map +1 -0
- package/dist/core/protocol/lifecycle/channel-close.js +75 -0
- package/dist/core/protocol/lifecycle/channel-close.js.map +1 -0
- package/dist/core/protocol/lifecycle/channel-end.d.ts +53 -0
- package/dist/core/protocol/lifecycle/channel-end.d.ts.map +1 -0
- package/dist/core/protocol/lifecycle/channel-end.js +71 -0
- package/dist/core/protocol/lifecycle/channel-end.js.map +1 -0
- package/dist/core/protocol/lifecycle/connect-attempt.d.ts +12 -0
- package/dist/core/protocol/lifecycle/connect-attempt.d.ts.map +1 -0
- package/dist/core/protocol/lifecycle/connect-attempt.js +31 -0
- package/dist/core/protocol/lifecycle/connect-attempt.js.map +1 -0
- package/dist/core/protocol/lifecycle/connector.d.ts +29 -0
- package/dist/core/protocol/lifecycle/connector.d.ts.map +1 -0
- package/dist/core/protocol/lifecycle/connector.js +168 -0
- package/dist/core/protocol/lifecycle/connector.js.map +1 -0
- package/dist/core/protocol/lifecycle/credited-events.d.ts +11 -0
- package/dist/core/protocol/lifecycle/credited-events.d.ts.map +1 -0
- package/dist/core/protocol/lifecycle/credited-events.js +109 -0
- package/dist/core/protocol/lifecycle/credited-events.js.map +1 -0
- package/dist/core/protocol/lifecycle/leg-failures.d.ts +37 -0
- package/dist/core/protocol/lifecycle/leg-failures.d.ts.map +1 -0
- package/dist/core/protocol/lifecycle/leg-failures.js +115 -0
- package/dist/core/protocol/lifecycle/leg-failures.js.map +1 -0
- package/dist/core/protocol/lifecycle/lifecycle-owned.d.ts +15 -0
- package/dist/core/protocol/lifecycle/lifecycle-owned.d.ts.map +1 -0
- package/dist/core/protocol/lifecycle/lifecycle-owned.js +32 -0
- package/dist/core/protocol/lifecycle/lifecycle-owned.js.map +1 -0
- package/dist/core/protocol/lifecycle/stream-credits.d.ts +41 -0
- package/dist/core/protocol/lifecycle/stream-credits.d.ts.map +1 -0
- package/dist/core/protocol/lifecycle/stream-credits.js +160 -0
- package/dist/core/protocol/lifecycle/stream-credits.js.map +1 -0
- package/dist/core/protocol/references/advertisement.d.ts +22 -0
- package/dist/core/protocol/references/advertisement.d.ts.map +1 -0
- package/dist/core/protocol/references/advertisement.js +76 -0
- package/dist/core/protocol/references/advertisement.js.map +1 -0
- package/dist/core/protocol/references/caller-input.d.ts +44 -0
- package/dist/core/protocol/references/caller-input.d.ts.map +1 -0
- package/dist/core/protocol/references/caller-input.js +67 -0
- package/dist/core/protocol/references/caller-input.js.map +1 -0
- package/dist/core/protocol/references/channel-ids.d.ts +23 -0
- package/dist/core/protocol/references/channel-ids.d.ts.map +1 -0
- package/dist/core/protocol/references/channel-ids.js +35 -0
- package/dist/core/protocol/references/channel-ids.js.map +1 -0
- package/dist/core/protocol/references/consumer.d.ts +11 -0
- package/dist/core/protocol/references/consumer.d.ts.map +1 -0
- package/dist/core/protocol/references/consumer.js +134 -0
- package/dist/core/protocol/references/consumer.js.map +1 -0
- package/dist/core/protocol/references/descriptor-input.d.ts +15 -0
- package/dist/core/protocol/references/descriptor-input.d.ts.map +1 -0
- package/dist/core/protocol/references/descriptor-input.js +25 -0
- package/dist/core/protocol/references/descriptor-input.js.map +1 -0
- package/dist/core/protocol/references/dispatch.d.ts +24 -0
- package/dist/core/protocol/references/dispatch.d.ts.map +1 -0
- package/dist/core/protocol/references/dispatch.js +130 -0
- package/dist/core/protocol/references/dispatch.js.map +1 -0
- package/dist/core/protocol/references/function-callbacks.d.ts +19 -0
- package/dist/core/protocol/references/function-callbacks.d.ts.map +1 -0
- package/dist/core/protocol/references/function-callbacks.js +84 -0
- package/dist/core/protocol/references/function-callbacks.js.map +1 -0
- package/dist/core/protocol/references/projection-consumer.d.ts +12 -0
- package/dist/core/protocol/references/projection-consumer.d.ts.map +1 -0
- package/dist/core/protocol/references/projection-consumer.js +43 -0
- package/dist/core/protocol/references/projection-consumer.js.map +1 -0
- package/dist/core/protocol/references/ref-table.d.ts +33 -0
- package/dist/core/protocol/references/ref-table.d.ts.map +1 -0
- package/dist/core/protocol/references/ref-table.js +136 -0
- package/dist/core/protocol/references/ref-table.js.map +1 -0
- package/dist/core/protocol/references/root-methods.d.ts +14 -0
- package/dist/core/protocol/references/root-methods.d.ts.map +1 -0
- package/dist/core/protocol/references/root-methods.js +33 -0
- package/dist/core/protocol/references/root-methods.js.map +1 -0
- package/dist/core/protocol/transport/failure-describer.d.ts +56 -0
- package/dist/core/protocol/transport/failure-describer.d.ts.map +1 -0
- package/dist/core/protocol/transport/failure-describer.js +157 -0
- package/dist/core/protocol/transport/failure-describer.js.map +1 -0
- package/dist/core/protocol/transport/fetch-failure.d.ts +9 -0
- package/dist/core/protocol/transport/fetch-failure.d.ts.map +1 -0
- package/dist/core/protocol/transport/fetch-failure.js +45 -0
- package/dist/core/protocol/transport/fetch-failure.js.map +1 -0
- package/dist/core/protocol/transport/local-attestation.d.ts +67 -0
- package/dist/core/protocol/transport/local-attestation.d.ts.map +1 -0
- package/dist/core/protocol/transport/local-attestation.js +109 -0
- package/dist/core/protocol/transport/local-attestation.js.map +1 -0
- package/dist/core/protocol/transport/projection-close.d.ts +12 -0
- package/dist/core/protocol/transport/projection-close.d.ts.map +1 -0
- package/dist/core/protocol/transport/projection-close.js +47 -0
- package/dist/core/protocol/transport/projection-close.js.map +1 -0
- package/dist/core/protocol/transport/socket-connect-failure.d.ts +13 -0
- package/dist/core/protocol/transport/socket-connect-failure.d.ts.map +1 -0
- package/dist/core/protocol/transport/socket-connect-failure.js +42 -0
- package/dist/core/protocol/transport/socket-connect-failure.js.map +1 -0
- package/dist/core/protocol/transport/sse.d.ts +26 -0
- package/dist/core/protocol/transport/sse.d.ts.map +1 -0
- package/dist/core/protocol/transport/sse.js +89 -0
- package/dist/core/protocol/transport/sse.js.map +1 -0
- package/dist/core/protocol/wire/frame.d.ts +34 -0
- package/dist/core/protocol/wire/frame.d.ts.map +1 -0
- package/dist/core/protocol/wire/frame.js +131 -0
- package/dist/core/protocol/wire/frame.js.map +1 -0
- package/dist/core/protocol/wire/inline-value.d.ts +27 -0
- package/dist/core/protocol/wire/inline-value.d.ts.map +1 -0
- package/dist/core/protocol/wire/inline-value.js +114 -0
- package/dist/core/protocol/wire/inline-value.js.map +1 -0
- package/dist/core/protocol/wire/json-wire.d.ts +7 -0
- package/dist/core/protocol/wire/json-wire.d.ts.map +1 -0
- package/dist/core/protocol/wire/json-wire.js +58 -0
- package/dist/core/protocol/wire/json-wire.js.map +1 -0
- package/dist/core/protocol/wire/limits.d.ts +23 -0
- package/dist/core/protocol/wire/limits.d.ts.map +1 -0
- package/dist/core/protocol/wire/limits.js +23 -0
- package/dist/core/protocol/wire/limits.js.map +1 -0
- package/dist/core/protocol/wire/rpc-data.d.ts +15 -0
- package/dist/core/protocol/wire/rpc-data.d.ts.map +1 -0
- package/dist/core/protocol/wire/rpc-data.js +66 -0
- package/dist/core/protocol/wire/rpc-data.js.map +1 -0
- package/dist/core/protocol/wire/schemas.d.ts +14 -0
- package/dist/core/protocol/wire/schemas.d.ts.map +1 -0
- package/dist/core/protocol/wire/schemas.js +13 -0
- package/dist/core/protocol/wire/schemas.js.map +1 -0
- package/dist/core/protocol/wire/value-kinds.d.ts +26 -0
- package/dist/core/protocol/wire/value-kinds.d.ts.map +1 -0
- package/dist/core/protocol/wire/value-kinds.js +41 -0
- package/dist/core/protocol/wire/value-kinds.js.map +1 -0
- package/dist/core/protocol/wire/verbs.d.ts +94 -0
- package/dist/core/protocol/wire/verbs.d.ts.map +1 -0
- package/dist/core/protocol/wire/verbs.js +171 -0
- package/dist/core/protocol/wire/verbs.js.map +1 -0
- package/dist/core/protocol/wire/wire-dates.d.ts +8 -0
- package/dist/core/protocol/wire/wire-dates.d.ts.map +1 -0
- package/dist/core/protocol/wire/wire-dates.js +64 -0
- package/dist/core/protocol/wire/wire-dates.js.map +1 -0
- package/dist/core/protocol/wire/wire-value.d.ts +31 -0
- package/dist/core/protocol/wire/wire-value.d.ts.map +1 -0
- package/dist/core/protocol/wire/wire-value.js +72 -0
- package/dist/core/protocol/wire/wire-value.js.map +1 -0
- package/dist/core/runtime-rpc.plugin.d.ts +7 -0
- package/dist/core/runtime-rpc.plugin.d.ts.map +1 -0
- package/dist/core/runtime-rpc.plugin.js +22 -0
- package/dist/core/runtime-rpc.plugin.js.map +1 -0
- package/dist/core/utils/exec.d.ts +2 -0
- package/dist/core/utils/exec.d.ts.map +1 -0
- package/dist/core/utils/exec.js +2 -0
- package/dist/core/utils/exec.js.map +1 -0
- package/dist/core/utils/http-serve.d.ts +13 -0
- package/dist/core/utils/http-serve.d.ts.map +1 -0
- package/dist/core/utils/http-serve.js +46 -0
- package/dist/core/utils/http-serve.js.map +1 -0
- package/dist/daemon/auth/cors.d.ts +7 -0
- package/dist/daemon/auth/cors.d.ts.map +1 -0
- package/dist/daemon/auth/cors.js +12 -0
- package/dist/daemon/auth/cors.js.map +1 -0
- package/dist/daemon/auth/ingress/body.d.ts +6 -0
- package/dist/daemon/auth/ingress/body.d.ts.map +1 -0
- package/dist/daemon/auth/ingress/body.js +19 -0
- package/dist/daemon/auth/ingress/body.js.map +1 -0
- package/dist/daemon/auth/ingress/finalize.d.ts +2 -0
- package/dist/daemon/auth/ingress/finalize.d.ts.map +1 -0
- package/dist/daemon/auth/ingress/finalize.js +40 -0
- package/dist/daemon/auth/ingress/finalize.js.map +1 -0
- package/dist/daemon/auth/ingress/json.d.ts +4 -0
- package/dist/daemon/auth/ingress/json.d.ts.map +1 -0
- package/dist/daemon/auth/ingress/json.js +23 -0
- package/dist/daemon/auth/ingress/json.js.map +1 -0
- package/dist/daemon/auth/ingress/nonce.d.ts +4 -0
- package/dist/daemon/auth/ingress/nonce.d.ts.map +1 -0
- package/dist/daemon/auth/ingress/nonce.js +50 -0
- package/dist/daemon/auth/ingress/nonce.js.map +1 -0
- package/dist/daemon/auth/ingress/pair.d.ts +10 -0
- package/dist/daemon/auth/ingress/pair.d.ts.map +1 -0
- package/dist/daemon/auth/ingress/pair.js +42 -0
- package/dist/daemon/auth/ingress/pair.js.map +1 -0
- package/dist/daemon/auth/ingress/rpc.d.ts +3 -0
- package/dist/daemon/auth/ingress/rpc.d.ts.map +1 -0
- package/dist/daemon/auth/ingress/rpc.js +15 -0
- package/dist/daemon/auth/ingress/rpc.js.map +1 -0
- package/dist/daemon/auth/pairing-binding.d.ts +44 -0
- package/dist/daemon/auth/pairing-binding.d.ts.map +1 -0
- package/dist/daemon/auth/pairing-binding.js +66 -0
- package/dist/daemon/auth/pairing-binding.js.map +1 -0
- package/dist/daemon/auth/redact.d.ts +3 -0
- package/dist/daemon/auth/redact.d.ts.map +1 -0
- package/dist/daemon/auth/redact.js +3 -0
- package/dist/daemon/auth/redact.js.map +1 -0
- package/dist/daemon/auth/tcp-dispatch.d.ts +6 -0
- package/dist/daemon/auth/tcp-dispatch.d.ts.map +1 -0
- package/dist/daemon/auth/tcp-dispatch.js +41 -0
- package/dist/daemon/auth/tcp-dispatch.js.map +1 -0
- package/dist/daemon/auth/tcp-handler.d.ts +22 -0
- package/dist/daemon/auth/tcp-handler.d.ts.map +1 -0
- package/dist/daemon/auth/tcp-handler.js +61 -0
- package/dist/daemon/auth/tcp-handler.js.map +1 -0
- package/dist/daemon/client/contracts1/arguments.d.ts +3 -0
- package/dist/daemon/client/contracts1/arguments.d.ts.map +1 -0
- package/dist/daemon/client/contracts1/arguments.js +17 -0
- package/dist/daemon/client/contracts1/arguments.js.map +1 -0
- package/dist/daemon/client/contracts1/connection.d.ts +51 -0
- package/dist/daemon/client/contracts1/connection.d.ts.map +1 -0
- package/dist/daemon/client/contracts1/connection.js +158 -0
- package/dist/daemon/client/contracts1/connection.js.map +1 -0
- package/dist/daemon/client/contracts1/connectivity.d.ts +28 -0
- package/dist/daemon/client/contracts1/connectivity.d.ts.map +1 -0
- package/dist/daemon/client/contracts1/connectivity.js +72 -0
- package/dist/daemon/client/contracts1/connectivity.js.map +1 -0
- package/dist/daemon/client/contracts1/index.consumer.d.ts +13 -0
- package/dist/daemon/client/contracts1/index.consumer.d.ts.map +1 -0
- package/dist/daemon/client/contracts1/index.consumer.js +10 -0
- package/dist/daemon/client/contracts1/index.consumer.js.map +1 -0
- package/dist/daemon/client/contracts1/paths.d.ts +8 -0
- package/dist/daemon/client/contracts1/paths.d.ts.map +1 -0
- package/dist/daemon/client/contracts1/paths.js +17 -0
- package/dist/daemon/client/contracts1/paths.js.map +1 -0
- package/dist/daemon/client/contracts1/reclaim.d.ts +5 -0
- package/dist/daemon/client/contracts1/reclaim.d.ts.map +1 -0
- package/dist/daemon/client/contracts1/reclaim.js +10 -0
- package/dist/daemon/client/contracts1/reclaim.js.map +1 -0
- package/dist/daemon/client/contracts1/responses.d.ts +10 -0
- package/dist/daemon/client/contracts1/responses.d.ts.map +1 -0
- package/dist/daemon/client/contracts1/responses.js +108 -0
- package/dist/daemon/client/contracts1/responses.js.map +1 -0
- package/dist/daemon/client/contracts1/restart.d.ts +69 -0
- package/dist/daemon/client/contracts1/restart.d.ts.map +1 -0
- package/dist/daemon/client/contracts1/restart.js +181 -0
- package/dist/daemon/client/contracts1/restart.js.map +1 -0
- package/dist/daemon/client/contracts1/supervised-lifecycle.d.ts +28 -0
- package/dist/daemon/client/contracts1/supervised-lifecycle.d.ts.map +1 -0
- package/dist/daemon/client/contracts1/supervised-lifecycle.js +96 -0
- package/dist/daemon/client/contracts1/supervised-lifecycle.js.map +1 -0
- package/dist/daemon/client/contracts2/stop.d.ts +6 -0
- package/dist/daemon/client/contracts2/stop.d.ts.map +1 -0
- package/dist/daemon/client/contracts2/stop.js +41 -0
- package/dist/daemon/client/contracts2/stop.js.map +1 -0
- package/dist/daemon/client/contracts2/unix-client.d.ts +24 -0
- package/dist/daemon/client/contracts2/unix-client.d.ts.map +1 -0
- package/dist/daemon/client/contracts2/unix-client.js +84 -0
- package/dist/daemon/client/contracts2/unix-client.js.map +1 -0
- package/dist/daemon/client/contracts2/wait.d.ts +22 -0
- package/dist/daemon/client/contracts2/wait.d.ts.map +1 -0
- package/dist/daemon/client/contracts2/wait.js +37 -0
- package/dist/daemon/client/contracts2/wait.js.map +1 -0
- package/dist/daemon/commands/argv/options.d.ts +5 -0
- package/dist/daemon/commands/argv/options.d.ts.map +1 -0
- package/dist/daemon/commands/argv/options.js +93 -0
- package/dist/daemon/commands/argv/options.js.map +1 -0
- package/dist/daemon/commands/argv/values.d.ts +8 -0
- package/dist/daemon/commands/argv/values.d.ts.map +1 -0
- package/dist/daemon/commands/argv/values.js +25 -0
- package/dist/daemon/commands/argv/values.js.map +1 -0
- package/dist/daemon/commands/command-argv.d.ts +30 -0
- package/dist/daemon/commands/command-argv.d.ts.map +1 -0
- package/dist/daemon/commands/command-argv.js +115 -0
- package/dist/daemon/commands/command-argv.js.map +1 -0
- package/dist/daemon/commands/data/query.d.ts +12 -0
- package/dist/daemon/commands/data/query.d.ts.map +1 -0
- package/dist/daemon/commands/data/query.js +85 -0
- package/dist/daemon/commands/data/query.js.map +1 -0
- package/dist/daemon/commands/data/read.d.ts +12 -0
- package/dist/daemon/commands/data/read.d.ts.map +1 -0
- package/dist/daemon/commands/data/read.js +156 -0
- package/dist/daemon/commands/data/read.js.map +1 -0
- package/dist/daemon/commands/data/resolve.d.ts +11 -0
- package/dist/daemon/commands/data/resolve.d.ts.map +1 -0
- package/dist/daemon/commands/data/resolve.js +73 -0
- package/dist/daemon/commands/data/resolve.js.map +1 -0
- package/dist/daemon/commands/data/write.d.ts +7 -0
- package/dist/daemon/commands/data/write.d.ts.map +1 -0
- package/dist/daemon/commands/data/write.js +126 -0
- package/dist/daemon/commands/data/write.js.map +1 -0
- package/dist/daemon/commands/doctor.d.ts +11 -0
- package/dist/daemon/commands/doctor.d.ts.map +1 -0
- package/dist/daemon/commands/doctor.js +43 -0
- package/dist/daemon/commands/doctor.js.map +1 -0
- package/dist/daemon/commands/health.d.ts +22 -0
- package/dist/daemon/commands/health.d.ts.map +1 -0
- package/dist/daemon/commands/health.js +28 -0
- package/dist/daemon/commands/health.js.map +1 -0
- package/dist/daemon/commands/invoke/command.d.ts +23 -0
- package/dist/daemon/commands/invoke/command.d.ts.map +1 -0
- package/dist/daemon/commands/invoke/command.js +108 -0
- package/dist/daemon/commands/invoke/command.js.map +1 -0
- package/dist/daemon/commands/invoke/logger.d.ts +12 -0
- package/dist/daemon/commands/invoke/logger.d.ts.map +1 -0
- package/dist/daemon/commands/invoke/logger.js +40 -0
- package/dist/daemon/commands/invoke/logger.js.map +1 -0
- package/dist/daemon/commands/invoke/tool.d.ts +15 -0
- package/dist/daemon/commands/invoke/tool.d.ts.map +1 -0
- package/dist/daemon/commands/invoke/tool.js +93 -0
- package/dist/daemon/commands/invoke/tool.js.map +1 -0
- package/dist/daemon/commands/invoke.d.ts +31 -0
- package/dist/daemon/commands/invoke.d.ts.map +1 -0
- package/dist/daemon/commands/invoke.js +100 -0
- package/dist/daemon/commands/invoke.js.map +1 -0
- package/dist/daemon/commands/subscribe.d.ts +16 -0
- package/dist/daemon/commands/subscribe.d.ts.map +1 -0
- package/dist/daemon/commands/subscribe.js +108 -0
- package/dist/daemon/commands/subscribe.js.map +1 -0
- package/dist/daemon/commands/subscription-cleanup.d.ts +4 -0
- package/dist/daemon/commands/subscription-cleanup.d.ts.map +1 -0
- package/dist/daemon/commands/subscription-cleanup.js +32 -0
- package/dist/daemon/commands/subscription-cleanup.js.map +1 -0
- package/dist/daemon/hosting/config/load.d.ts +5 -0
- package/dist/daemon/hosting/config/load.d.ts.map +1 -0
- package/dist/daemon/hosting/config/load.js +12 -0
- package/dist/daemon/hosting/config/load.js.map +1 -0
- package/dist/daemon/hosting/config/runtime-rpc.config.descriptor.d.ts +45 -0
- package/dist/daemon/hosting/config/runtime-rpc.config.descriptor.d.ts.map +1 -0
- package/dist/daemon/hosting/config/runtime-rpc.config.descriptor.js +33 -0
- package/dist/daemon/hosting/config/runtime-rpc.config.descriptor.js.map +1 -0
- package/dist/daemon/hosting/daemon-host/host-hot-reload.consumer.d.ts +5 -0
- package/dist/daemon/hosting/daemon-host/host-hot-reload.consumer.d.ts.map +1 -0
- package/dist/daemon/hosting/daemon-host/host-hot-reload.consumer.js +15 -0
- package/dist/daemon/hosting/daemon-host/host-hot-reload.consumer.js.map +1 -0
- package/dist/daemon/hosting/daemon-host/hot-plugin-module.consumer.d.ts +19 -0
- package/dist/daemon/hosting/daemon-host/hot-plugin-module.consumer.d.ts.map +1 -0
- package/dist/daemon/hosting/daemon-host/hot-plugin-module.consumer.js +16 -0
- package/dist/daemon/hosting/daemon-host/hot-plugin-module.consumer.js.map +1 -0
- package/dist/daemon/hosting/daemon-host/hot-reload.consumer.d.ts +2 -0
- package/dist/daemon/hosting/daemon-host/hot-reload.consumer.d.ts.map +1 -0
- package/dist/daemon/hosting/daemon-host/hot-reload.consumer.js +2 -0
- package/dist/daemon/hosting/daemon-host/hot-reload.consumer.js.map +1 -0
- package/dist/daemon/hosting/daemon-host/index.d.ts +15 -0
- package/dist/daemon/hosting/daemon-host/index.d.ts.map +1 -0
- package/dist/daemon/hosting/daemon-host/index.js +12 -0
- package/dist/daemon/hosting/daemon-host/index.js.map +1 -0
- package/dist/daemon/hosting/daemon-host/resolve-plugin-host.d.ts +4 -0
- package/dist/daemon/hosting/daemon-host/resolve-plugin-host.d.ts.map +1 -0
- package/dist/daemon/hosting/daemon-host/resolve-plugin-host.js +5 -0
- package/dist/daemon/hosting/daemon-host/resolve-plugin-host.js.map +1 -0
- package/dist/daemon/hosting/execution/daemon-execution-host.consumer.d.ts +14 -0
- package/dist/daemon/hosting/execution/daemon-execution-host.consumer.d.ts.map +1 -0
- package/dist/daemon/hosting/execution/daemon-execution-host.consumer.js +216 -0
- package/dist/daemon/hosting/execution/daemon-execution-host.consumer.js.map +1 -0
- package/dist/daemon/hosting/execution/execution-boot.d.ts +24 -0
- package/dist/daemon/hosting/execution/execution-boot.d.ts.map +1 -0
- package/dist/daemon/hosting/execution/execution-boot.js +130 -0
- package/dist/daemon/hosting/execution/execution-boot.js.map +1 -0
- package/dist/daemon/hosting/execution/execution-failure.d.ts +33 -0
- package/dist/daemon/hosting/execution/execution-failure.d.ts.map +1 -0
- package/dist/daemon/hosting/execution/execution-failure.js +94 -0
- package/dist/daemon/hosting/execution/execution-failure.js.map +1 -0
- package/dist/daemon/hosting/execution/execution-host.schemas.d.ts +7 -0
- package/dist/daemon/hosting/execution/execution-host.schemas.d.ts.map +1 -0
- package/dist/daemon/hosting/execution/execution-host.schemas.js +6 -0
- package/dist/daemon/hosting/execution/execution-host.schemas.js.map +1 -0
- package/dist/daemon/hosting/host/host-hot-reload.consumer.d.ts +3 -0
- package/dist/daemon/hosting/host/host-hot-reload.consumer.d.ts.map +1 -0
- package/dist/daemon/hosting/host/host-hot-reload.consumer.js +3 -0
- package/dist/daemon/hosting/host/host-hot-reload.consumer.js.map +1 -0
- package/dist/daemon/hosting/host/hot-plugin-module.consumer.d.ts +3 -0
- package/dist/daemon/hosting/host/hot-plugin-module.consumer.d.ts.map +1 -0
- package/dist/daemon/hosting/host/hot-plugin-module.consumer.js +3 -0
- package/dist/daemon/hosting/host/hot-plugin-module.consumer.js.map +1 -0
- package/dist/daemon/hosting/host/hot-reload.consumer.d.ts +3 -0
- package/dist/daemon/hosting/host/hot-reload.consumer.d.ts.map +1 -0
- package/dist/daemon/hosting/host/hot-reload.consumer.js +3 -0
- package/dist/daemon/hosting/host/hot-reload.consumer.js.map +1 -0
- package/dist/daemon/hosting/host/index.d.ts +3 -0
- package/dist/daemon/hosting/host/index.d.ts.map +1 -0
- package/dist/daemon/hosting/host/index.js +3 -0
- package/dist/daemon/hosting/host/index.js.map +1 -0
- package/dist/daemon/hosting/host/resolve-plugin-host.d.ts +3 -0
- package/dist/daemon/hosting/host/resolve-plugin-host.d.ts.map +1 -0
- package/dist/daemon/hosting/host/resolve-plugin-host.js +3 -0
- package/dist/daemon/hosting/host/resolve-plugin-host.js.map +1 -0
- package/dist/daemon/hosting/logging/runtime-daemon.logger.descriptor.d.ts +7 -0
- package/dist/daemon/hosting/logging/runtime-daemon.logger.descriptor.d.ts.map +1 -0
- package/dist/daemon/hosting/logging/runtime-daemon.logger.descriptor.js +16 -0
- package/dist/daemon/hosting/logging/runtime-daemon.logger.descriptor.js.map +1 -0
- package/dist/daemon/hosting/logging/runtime-daemon.output.descriptor.d.ts +9 -0
- package/dist/daemon/hosting/logging/runtime-daemon.output.descriptor.d.ts.map +1 -0
- package/dist/daemon/hosting/logging/runtime-daemon.output.descriptor.js +19 -0
- package/dist/daemon/hosting/logging/runtime-daemon.output.descriptor.js.map +1 -0
- package/dist/daemon/hosting/plugin.d.ts +9 -0
- package/dist/daemon/hosting/plugin.d.ts.map +1 -0
- package/dist/daemon/hosting/plugin.js +63 -0
- package/dist/daemon/hosting/plugin.js.map +1 -0
- package/dist/daemon/hosting/process/daemon-role.d.ts +17 -0
- package/dist/daemon/hosting/process/daemon-role.d.ts.map +1 -0
- package/dist/daemon/hosting/process/daemon-role.js +18 -0
- package/dist/daemon/hosting/process/daemon-role.js.map +1 -0
- package/dist/daemon/hosting/process/daemon.consumer.d.ts +10 -0
- package/dist/daemon/hosting/process/daemon.consumer.d.ts.map +1 -0
- package/dist/daemon/hosting/process/daemon.consumer.js +8 -0
- package/dist/daemon/hosting/process/daemon.consumer.js.map +1 -0
- package/dist/daemon/hosting/process/reclaim.consumer.d.ts +12 -0
- package/dist/daemon/hosting/process/reclaim.consumer.d.ts.map +1 -0
- package/dist/daemon/hosting/process/reclaim.consumer.js +34 -0
- package/dist/daemon/hosting/process/reclaim.consumer.js.map +1 -0
- package/dist/daemon/hosting/process/runtime-config.d.ts +22 -0
- package/dist/daemon/hosting/process/runtime-config.d.ts.map +1 -0
- package/dist/daemon/hosting/process/runtime-config.js +37 -0
- package/dist/daemon/hosting/process/runtime-config.js.map +1 -0
- package/dist/daemon/hosting/process/runtime-daemon-supervisor.kind.d.ts +4 -0
- package/dist/daemon/hosting/process/runtime-daemon-supervisor.kind.d.ts.map +1 -0
- package/dist/daemon/hosting/process/runtime-daemon-supervisor.kind.js +40 -0
- package/dist/daemon/hosting/process/runtime-daemon-supervisor.kind.js.map +1 -0
- package/dist/daemon/hosting/process/runtime-daemon.process.descriptor.d.ts +43 -0
- package/dist/daemon/hosting/process/runtime-daemon.process.descriptor.d.ts.map +1 -0
- package/dist/daemon/hosting/process/runtime-daemon.process.descriptor.js +56 -0
- package/dist/daemon/hosting/process/runtime-daemon.process.descriptor.js.map +1 -0
- package/dist/daemon/hosting/process/runtime-process-autostart.descriptor.d.ts +12 -0
- package/dist/daemon/hosting/process/runtime-process-autostart.descriptor.d.ts.map +1 -0
- package/dist/daemon/hosting/process/runtime-process-autostart.descriptor.js +12 -0
- package/dist/daemon/hosting/process/runtime-process-autostart.descriptor.js.map +1 -0
- package/dist/daemon/hosting/process/runtime-process-autostart.impl.consumer.d.ts +6 -0
- package/dist/daemon/hosting/process/runtime-process-autostart.impl.consumer.d.ts.map +1 -0
- package/dist/daemon/hosting/process/runtime-process-autostart.impl.consumer.js +88 -0
- package/dist/daemon/hosting/process/runtime-process-autostart.impl.consumer.js.map +1 -0
- package/dist/daemon/hosting/process/spawn.consumer.d.ts +42 -0
- package/dist/daemon/hosting/process/spawn.consumer.d.ts.map +1 -0
- package/dist/daemon/hosting/process/spawn.consumer.js +69 -0
- package/dist/daemon/hosting/process/spawn.consumer.js.map +1 -0
- package/dist/daemon/hosting/process/start-timeout.d.ts +11 -0
- package/dist/daemon/hosting/process/start-timeout.d.ts.map +1 -0
- package/dist/daemon/hosting/process/start-timeout.js +13 -0
- package/dist/daemon/hosting/process/start-timeout.js.map +1 -0
- package/dist/daemon/hosting/socket/paths.consumer.d.ts +11 -0
- package/dist/daemon/hosting/socket/paths.consumer.d.ts.map +1 -0
- package/dist/daemon/hosting/socket/paths.consumer.js +11 -0
- package/dist/daemon/hosting/socket/paths.consumer.js.map +1 -0
- package/dist/daemon/hosting/socket/runtime-daemon-endpoint.impl.consumer.d.ts +28 -0
- package/dist/daemon/hosting/socket/runtime-daemon-endpoint.impl.consumer.d.ts.map +1 -0
- package/dist/daemon/hosting/socket/runtime-daemon-endpoint.impl.consumer.js +17 -0
- package/dist/daemon/hosting/socket/runtime-daemon-endpoint.impl.consumer.js.map +1 -0
- package/dist/daemon/hosting/socket/runtime-daemon.socket-path.d.ts +59 -0
- package/dist/daemon/hosting/socket/runtime-daemon.socket-path.d.ts.map +1 -0
- package/dist/daemon/hosting/socket/runtime-daemon.socket-path.js +72 -0
- package/dist/daemon/hosting/socket/runtime-daemon.socket-path.js.map +1 -0
- package/dist/daemon/pairing/client.consumer.d.ts +11 -0
- package/dist/daemon/pairing/client.consumer.d.ts.map +1 -0
- package/dist/daemon/pairing/client.consumer.js +73 -0
- package/dist/daemon/pairing/client.consumer.js.map +1 -0
- package/dist/daemon/pairing/contexts/runtime-machine-identity.context.descriptor.d.ts +47 -0
- package/dist/daemon/pairing/contexts/runtime-machine-identity.context.descriptor.d.ts.map +1 -0
- package/dist/daemon/pairing/contexts/runtime-machine-identity.context.descriptor.js +24 -0
- package/dist/daemon/pairing/contexts/runtime-machine-identity.context.descriptor.js.map +1 -0
- package/dist/daemon/pairing/contexts/runtime-machine-identity.context.impl.consumer.d.ts +17 -0
- package/dist/daemon/pairing/contexts/runtime-machine-identity.context.impl.consumer.d.ts.map +1 -0
- package/dist/daemon/pairing/contexts/runtime-machine-identity.context.impl.consumer.js +11 -0
- package/dist/daemon/pairing/contexts/runtime-machine-identity.context.impl.consumer.js.map +1 -0
- package/dist/daemon/pairing/contexts/runtime-machines.context.descriptor.d.ts +38 -0
- package/dist/daemon/pairing/contexts/runtime-machines.context.descriptor.d.ts.map +1 -0
- package/dist/daemon/pairing/contexts/runtime-machines.context.descriptor.js +15 -0
- package/dist/daemon/pairing/contexts/runtime-machines.context.descriptor.js.map +1 -0
- package/dist/daemon/pairing/contexts/runtime-machines.context.impl.consumer.d.ts +17 -0
- package/dist/daemon/pairing/contexts/runtime-machines.context.impl.consumer.d.ts.map +1 -0
- package/dist/daemon/pairing/contexts/runtime-machines.context.impl.consumer.js +11 -0
- package/dist/daemon/pairing/contexts/runtime-machines.context.impl.consumer.js.map +1 -0
- package/dist/daemon/pairing/index.d.ts +10 -0
- package/dist/daemon/pairing/index.d.ts.map +1 -0
- package/dist/daemon/pairing/index.js +6 -0
- package/dist/daemon/pairing/index.js.map +1 -0
- package/dist/daemon/pairing/json-file-store.consumer.d.ts +25 -0
- package/dist/daemon/pairing/json-file-store.consumer.d.ts.map +1 -0
- package/dist/daemon/pairing/json-file-store.consumer.js +139 -0
- package/dist/daemon/pairing/json-file-store.consumer.js.map +1 -0
- package/dist/daemon/pairing/machine-identity.consumer.d.ts +9 -0
- package/dist/daemon/pairing/machine-identity.consumer.d.ts.map +1 -0
- package/dist/daemon/pairing/machine-identity.consumer.js +44 -0
- package/dist/daemon/pairing/machine-identity.consumer.js.map +1 -0
- package/dist/daemon/pairing/machines.consumer.d.ts +36 -0
- package/dist/daemon/pairing/machines.consumer.d.ts.map +1 -0
- package/dist/daemon/pairing/machines.consumer.js +118 -0
- package/dist/daemon/pairing/machines.consumer.js.map +1 -0
- package/dist/daemon/pairing/paired-clients.consumer.d.ts +26 -0
- package/dist/daemon/pairing/paired-clients.consumer.d.ts.map +1 -0
- package/dist/daemon/pairing/paired-clients.consumer.js +72 -0
- package/dist/daemon/pairing/paired-clients.consumer.js.map +1 -0
- package/dist/daemon/pairing/pairing.d.ts +76 -0
- package/dist/daemon/pairing/pairing.d.ts.map +1 -0
- package/dist/daemon/pairing/pairing.js +141 -0
- package/dist/daemon/pairing/pairing.js.map +1 -0
- package/dist/daemon/pairing/types.d.ts +3 -0
- package/dist/daemon/pairing/types.d.ts.map +1 -0
- package/dist/daemon/pairing/types.js +2 -0
- package/dist/daemon/pairing/types.js.map +1 -0
- package/dist/daemon/protocol/schemas.d.ts +3 -0
- package/dist/daemon/protocol/schemas.d.ts.map +1 -0
- package/dist/daemon/protocol/schemas.js +3 -0
- package/dist/daemon/protocol/schemas.js.map +1 -0
- package/dist/daemon/runtime/configuration.d.ts +9 -0
- package/dist/daemon/runtime/configuration.d.ts.map +1 -0
- package/dist/daemon/runtime/configuration.js +49 -0
- package/dist/daemon/runtime/configuration.js.map +1 -0
- package/dist/daemon/runtime/coordinator.d.ts +10 -0
- package/dist/daemon/runtime/coordinator.d.ts.map +1 -0
- package/dist/daemon/runtime/coordinator.js +13 -0
- package/dist/daemon/runtime/coordinator.js.map +1 -0
- package/dist/daemon/runtime/helpers.d.ts +20 -0
- package/dist/daemon/runtime/helpers.d.ts.map +1 -0
- package/dist/daemon/runtime/helpers.js +48 -0
- package/dist/daemon/runtime/helpers.js.map +1 -0
- package/dist/daemon/runtime/io/endpoint.d.ts +12 -0
- package/dist/daemon/runtime/io/endpoint.d.ts.map +1 -0
- package/dist/daemon/runtime/io/endpoint.js +70 -0
- package/dist/daemon/runtime/io/endpoint.js.map +1 -0
- package/dist/daemon/runtime/io/execution.d.ts +4 -0
- package/dist/daemon/runtime/io/execution.d.ts.map +1 -0
- package/dist/daemon/runtime/io/execution.js +118 -0
- package/dist/daemon/runtime/io/execution.js.map +1 -0
- package/dist/daemon/runtime/io/host.d.ts +16 -0
- package/dist/daemon/runtime/io/host.d.ts.map +1 -0
- package/dist/daemon/runtime/io/host.js +70 -0
- package/dist/daemon/runtime/io/host.js.map +1 -0
- package/dist/daemon/runtime/io/http.d.ts +4 -0
- package/dist/daemon/runtime/io/http.d.ts.map +1 -0
- package/dist/daemon/runtime/io/http.js +91 -0
- package/dist/daemon/runtime/io/http.js.map +1 -0
- package/dist/daemon/runtime/io/paths.d.ts +5 -0
- package/dist/daemon/runtime/io/paths.d.ts.map +1 -0
- package/dist/daemon/runtime/io/paths.js +55 -0
- package/dist/daemon/runtime/io/paths.js.map +1 -0
- package/dist/daemon/runtime/io/pid.d.ts +5 -0
- package/dist/daemon/runtime/io/pid.d.ts.map +1 -0
- package/dist/daemon/runtime/io/pid.js +77 -0
- package/dist/daemon/runtime/io/pid.js.map +1 -0
- package/dist/daemon/runtime/lifecycle/reload.d.ts +4 -0
- package/dist/daemon/runtime/lifecycle/reload.d.ts.map +1 -0
- package/dist/daemon/runtime/lifecycle/reload.js +25 -0
- package/dist/daemon/runtime/lifecycle/reload.js.map +1 -0
- package/dist/daemon/runtime/lifecycle/shutdown.d.ts +6 -0
- package/dist/daemon/runtime/lifecycle/shutdown.d.ts.map +1 -0
- package/dist/daemon/runtime/lifecycle/shutdown.js +81 -0
- package/dist/daemon/runtime/lifecycle/shutdown.js.map +1 -0
- package/dist/daemon/runtime/lifecycle/startup.d.ts +3 -0
- package/dist/daemon/runtime/lifecycle/startup.d.ts.map +1 -0
- package/dist/daemon/runtime/lifecycle/startup.js +113 -0
- package/dist/daemon/runtime/lifecycle/startup.js.map +1 -0
- package/dist/daemon/runtime/main.d.ts +3 -0
- package/dist/daemon/runtime/main.d.ts.map +1 -0
- package/dist/daemon/runtime/main.js +97 -0
- package/dist/daemon/runtime/main.js.map +1 -0
- package/dist/daemon/runtime/state.d.ts +55 -0
- package/dist/daemon/runtime/state.d.ts.map +1 -0
- package/dist/daemon/runtime/state.js +83 -0
- package/dist/daemon/runtime/state.js.map +1 -0
- package/dist/daemon/services/api/command-handler.contracts.d.ts +8 -0
- package/dist/daemon/services/api/command-handler.contracts.d.ts.map +1 -0
- package/dist/daemon/services/api/command-handler.contracts.js +8 -0
- package/dist/daemon/services/api/command-handler.contracts.js.map +1 -0
- package/dist/daemon/services/api/command-handler.d.ts +52 -0
- package/dist/daemon/services/api/command-handler.d.ts.map +1 -0
- package/dist/daemon/services/api/command-handler.js +79 -0
- package/dist/daemon/services/api/command-handler.js.map +1 -0
- package/dist/daemon/services/api/errors.d.ts +36 -0
- package/dist/daemon/services/api/errors.d.ts.map +1 -0
- package/dist/daemon/services/api/errors.js +71 -0
- package/dist/daemon/services/api/errors.js.map +1 -0
- package/dist/daemon/services/api/rpc-root.d.ts +41 -0
- package/dist/daemon/services/api/rpc-root.d.ts.map +1 -0
- package/dist/daemon/services/api/rpc-root.js +95 -0
- package/dist/daemon/services/api/rpc-root.js.map +1 -0
- package/dist/daemon/services/contracts.d.ts +6 -0
- package/dist/daemon/services/contracts.d.ts.map +1 -0
- package/dist/daemon/services/contracts.js +3 -0
- package/dist/daemon/services/contracts.js.map +1 -0
- package/dist/daemon/services/health.d.ts +20 -0
- package/dist/daemon/services/health.d.ts.map +1 -0
- package/dist/daemon/services/health.js +56 -0
- package/dist/daemon/services/health.js.map +1 -0
- package/dist/daemon/subscriptions/clients.d.ts +57 -0
- package/dist/daemon/subscriptions/clients.d.ts.map +1 -0
- package/dist/daemon/subscriptions/clients.js +136 -0
- package/dist/daemon/subscriptions/clients.js.map +1 -0
- package/dist/daemon/subscriptions/config-watcher.d.ts +11 -0
- package/dist/daemon/subscriptions/config-watcher.d.ts.map +1 -0
- package/dist/daemon/subscriptions/config-watcher.js +17 -0
- package/dist/daemon/subscriptions/config-watcher.js.map +1 -0
- package/dist/daemon/subscriptions/manager.d.ts +41 -0
- package/dist/daemon/subscriptions/manager.d.ts.map +1 -0
- package/dist/daemon/subscriptions/manager.js +73 -0
- package/dist/daemon/subscriptions/manager.js.map +1 -0
- package/dist/daemon/subscriptions/manifest-watcher.d.ts +30 -0
- package/dist/daemon/subscriptions/manifest-watcher.d.ts.map +1 -0
- package/dist/daemon/subscriptions/manifest-watcher.js +100 -0
- package/dist/daemon/subscriptions/manifest-watcher.js.map +1 -0
- package/dist/daemon/subscriptions/storage-watcher.d.ts +11 -0
- package/dist/daemon/subscriptions/storage-watcher.d.ts.map +1 -0
- package/dist/daemon/subscriptions/storage-watcher.js +16 -0
- package/dist/daemon/subscriptions/storage-watcher.js.map +1 -0
- package/dist/docs/lifecycle.docs.descriptor.d.ts +4 -0
- package/dist/docs/lifecycle.docs.descriptor.d.ts.map +1 -0
- package/dist/docs/lifecycle.docs.descriptor.js +91 -0
- package/dist/docs/lifecycle.docs.descriptor.js.map +1 -0
- package/dist/docs/plugin.d.ts +3 -0
- package/dist/docs/plugin.d.ts.map +1 -0
- package/dist/docs/plugin.js +25 -0
- package/dist/docs/plugin.js.map +1 -0
- package/dist/docs/runtime-rpc.docs.descriptor.d.ts +9 -0
- package/dist/docs/runtime-rpc.docs.descriptor.d.ts.map +1 -0
- package/dist/docs/runtime-rpc.docs.descriptor.js +184 -0
- package/dist/docs/runtime-rpc.docs.descriptor.js.map +1 -0
- package/dist/docs/system.docs.descriptor.d.ts +4 -0
- package/dist/docs/system.docs.descriptor.d.ts.map +1 -0
- package/dist/docs/system.docs.descriptor.js +115 -0
- package/dist/docs/system.docs.descriptor.js.map +1 -0
- package/dist/execution/execution.client.impl.d.ts +8 -0
- package/dist/execution/execution.client.impl.d.ts.map +1 -0
- package/dist/execution/execution.client.impl.js +12 -0
- package/dist/execution/execution.client.impl.js.map +1 -0
- package/dist/execution/execution.plugin.d.ts +4 -0
- package/dist/execution/execution.plugin.d.ts.map +1 -0
- package/dist/execution/execution.plugin.js +20 -0
- package/dist/execution/execution.plugin.js.map +1 -0
- package/dist/execution/index.d.ts +5 -0
- package/dist/execution/index.d.ts.map +1 -0
- package/dist/execution/index.js +4 -0
- package/dist/execution/index.js.map +1 -0
- package/dist/execution/wire-process.d.ts +10 -0
- package/dist/execution/wire-process.d.ts.map +1 -0
- package/dist/execution/wire-process.js +467 -0
- package/dist/execution/wire-process.js.map +1 -0
- package/dist/index.d.ts +34 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +47 -0
- package/dist/index.js.map +1 -0
- package/dist/schemas/contracts/cli/_logging.d.ts +5 -0
- package/dist/schemas/contracts/cli/_logging.d.ts.map +1 -0
- package/dist/schemas/contracts/cli/_logging.js +2 -0
- package/dist/schemas/contracts/cli/_logging.js.map +1 -0
- package/dist/schemas/contracts/cli/daemon-execution.worker.entry.d.ts +236 -0
- package/dist/schemas/contracts/cli/daemon-execution.worker.entry.d.ts.map +1 -0
- package/dist/schemas/contracts/cli/daemon-execution.worker.entry.js +18 -0
- package/dist/schemas/contracts/cli/daemon-execution.worker.entry.js.map +1 -0
- package/dist/schemas/contracts/cli/runtime.daemon.restart.impl.consumer.d.ts +5 -0
- package/dist/schemas/contracts/cli/runtime.daemon.restart.impl.consumer.d.ts.map +1 -0
- package/dist/schemas/contracts/cli/runtime.daemon.restart.impl.consumer.js +5 -0
- package/dist/schemas/contracts/cli/runtime.daemon.restart.impl.consumer.js.map +1 -0
- package/dist/schemas/contracts/cli/runtime.daemon.status.impl.consumer.d.ts +5 -0
- package/dist/schemas/contracts/cli/runtime.daemon.status.impl.consumer.d.ts.map +1 -0
- package/dist/schemas/contracts/cli/runtime.daemon.status.impl.consumer.js +5 -0
- package/dist/schemas/contracts/cli/runtime.daemon.status.impl.consumer.js.map +1 -0
- package/dist/schemas/contracts/cli/runtime.daemon.stop.impl.consumer.d.ts +5 -0
- package/dist/schemas/contracts/cli/runtime.daemon.stop.impl.consumer.d.ts.map +1 -0
- package/dist/schemas/contracts/cli/runtime.daemon.stop.impl.consumer.js +5 -0
- package/dist/schemas/contracts/cli/runtime.daemon.stop.impl.consumer.js.map +1 -0
- package/dist/schemas/contracts/cli/runtime.doctor.impl.consumer.d.ts +6 -0
- package/dist/schemas/contracts/cli/runtime.doctor.impl.consumer.d.ts.map +1 -0
- package/dist/schemas/contracts/cli/runtime.doctor.impl.consumer.js +6 -0
- package/dist/schemas/contracts/cli/runtime.doctor.impl.consumer.js.map +1 -0
- package/dist/schemas/contracts/cli/runtime.query.impl.consumer.d.ts +10 -0
- package/dist/schemas/contracts/cli/runtime.query.impl.consumer.d.ts.map +1 -0
- package/dist/schemas/contracts/cli/runtime.query.impl.consumer.js +10 -0
- package/dist/schemas/contracts/cli/runtime.query.impl.consumer.js.map +1 -0
- package/dist/schemas/contracts/cli/runtime.status.impl.consumer.d.ts +5 -0
- package/dist/schemas/contracts/cli/runtime.status.impl.consumer.d.ts.map +1 -0
- package/dist/schemas/contracts/cli/runtime.status.impl.consumer.js +5 -0
- package/dist/schemas/contracts/cli/runtime.status.impl.consumer.js.map +1 -0
- package/dist/schemas/contracts/core/helper.d.ts +55 -0
- package/dist/schemas/contracts/core/helper.d.ts.map +1 -0
- package/dist/schemas/contracts/core/helper.js +14 -0
- package/dist/schemas/contracts/core/helper.js.map +1 -0
- package/dist/schemas/contracts/core/kinds/rpc.kind.d.ts +138 -0
- package/dist/schemas/contracts/core/kinds/rpc.kind.d.ts.map +1 -0
- package/dist/schemas/contracts/core/kinds/rpc.kind.js +81 -0
- package/dist/schemas/contracts/core/kinds/rpc.kind.js.map +1 -0
- package/dist/schemas/contracts/core/lifecycle-repeat.d.ts +6 -0
- package/dist/schemas/contracts/core/lifecycle-repeat.d.ts.map +1 -0
- package/dist/schemas/contracts/core/lifecycle-repeat.js +2 -0
- package/dist/schemas/contracts/core/lifecycle-repeat.js.map +1 -0
- package/dist/schemas/contracts/core/utils/http-serve.d.ts +16 -0
- package/dist/schemas/contracts/core/utils/http-serve.d.ts.map +1 -0
- package/dist/schemas/contracts/core/utils/http-serve.js +2 -0
- package/dist/schemas/contracts/core/utils/http-serve.js.map +1 -0
- package/dist/schemas/contracts/daemon/auth/capabilities.d.ts +4 -0
- package/dist/schemas/contracts/daemon/auth/capabilities.d.ts.map +1 -0
- package/dist/schemas/contracts/daemon/auth/capabilities.js +2 -0
- package/dist/schemas/contracts/daemon/auth/capabilities.js.map +1 -0
- package/dist/schemas/contracts/daemon/client/connection.d.ts +9 -0
- package/dist/schemas/contracts/daemon/client/connection.d.ts.map +1 -0
- package/dist/schemas/contracts/daemon/client/connection.js +3 -0
- package/dist/schemas/contracts/daemon/client/connection.js.map +1 -0
- package/dist/schemas/contracts/daemon/command-handler.d.ts +23 -0
- package/dist/schemas/contracts/daemon/command-handler.d.ts.map +1 -0
- package/dist/schemas/contracts/daemon/command-handler.js +2 -0
- package/dist/schemas/contracts/daemon/command-handler.js.map +1 -0
- package/dist/schemas/contracts/daemon/commands/argv/options.d.ts +2 -0
- package/dist/schemas/contracts/daemon/commands/argv/options.d.ts.map +1 -0
- package/dist/schemas/contracts/daemon/commands/argv/options.js +3 -0
- package/dist/schemas/contracts/daemon/commands/argv/options.js.map +1 -0
- package/dist/schemas/contracts/daemon/commands/argv/values.d.ts +4 -0
- package/dist/schemas/contracts/daemon/commands/argv/values.d.ts.map +1 -0
- package/dist/schemas/contracts/daemon/commands/argv/values.js +5 -0
- package/dist/schemas/contracts/daemon/commands/argv/values.js.map +1 -0
- package/dist/schemas/contracts/daemon/commands/doctor.d.ts +9 -0
- package/dist/schemas/contracts/daemon/commands/doctor.d.ts.map +1 -0
- package/dist/schemas/contracts/daemon/commands/doctor.js +9 -0
- package/dist/schemas/contracts/daemon/commands/doctor.js.map +1 -0
- package/dist/schemas/contracts/daemon/commands/query.d.ts +5 -0
- package/dist/schemas/contracts/daemon/commands/query.d.ts.map +1 -0
- package/dist/schemas/contracts/daemon/commands/query.js +3 -0
- package/dist/schemas/contracts/daemon/commands/query.js.map +1 -0
- package/dist/schemas/contracts/daemon/commands/read.d.ts +34 -0
- package/dist/schemas/contracts/daemon/commands/read.d.ts.map +1 -0
- package/dist/schemas/contracts/daemon/commands/read.js +23 -0
- package/dist/schemas/contracts/daemon/commands/read.js.map +1 -0
- package/dist/schemas/contracts/daemon/commands/resolve.d.ts +5 -0
- package/dist/schemas/contracts/daemon/commands/resolve.d.ts.map +1 -0
- package/dist/schemas/contracts/daemon/commands/resolve.js +5 -0
- package/dist/schemas/contracts/daemon/commands/resolve.js.map +1 -0
- package/dist/schemas/contracts/daemon/commands/subscribe.d.ts +20 -0
- package/dist/schemas/contracts/daemon/commands/subscribe.d.ts.map +1 -0
- package/dist/schemas/contracts/daemon/commands/subscribe.js +10 -0
- package/dist/schemas/contracts/daemon/commands/subscribe.js.map +1 -0
- package/dist/schemas/contracts/daemon/commands/write.d.ts +44 -0
- package/dist/schemas/contracts/daemon/commands/write.d.ts.map +1 -0
- package/dist/schemas/contracts/daemon/commands/write.js +19 -0
- package/dist/schemas/contracts/daemon/commands/write.js.map +1 -0
- package/dist/schemas/contracts/daemon/hosting/contracts1/config/load.d.ts +3 -0
- package/dist/schemas/contracts/daemon/hosting/contracts1/config/load.d.ts.map +1 -0
- package/dist/schemas/contracts/daemon/hosting/contracts1/config/load.js +2 -0
- package/dist/schemas/contracts/daemon/hosting/contracts1/config/load.js.map +1 -0
- package/dist/schemas/contracts/daemon/hosting/contracts1/config/runtime-rpc.config.descriptor.d.ts +7 -0
- package/dist/schemas/contracts/daemon/hosting/contracts1/config/runtime-rpc.config.descriptor.d.ts.map +1 -0
- package/dist/schemas/contracts/daemon/hosting/contracts1/config/runtime-rpc.config.descriptor.js +6 -0
- package/dist/schemas/contracts/daemon/hosting/contracts1/config/runtime-rpc.config.descriptor.js.map +1 -0
- package/dist/schemas/contracts/daemon/hosting/contracts1/daemon-execution-host.consumer.d.ts +20 -0
- package/dist/schemas/contracts/daemon/hosting/contracts1/daemon-execution-host.consumer.d.ts.map +1 -0
- package/dist/schemas/contracts/daemon/hosting/contracts1/daemon-execution-host.consumer.js +5 -0
- package/dist/schemas/contracts/daemon/hosting/contracts1/daemon-execution-host.consumer.js.map +1 -0
- package/dist/schemas/contracts/daemon/hosting/contracts1/daemon-host/hot-plugin-module.consumer.d.ts +19 -0
- package/dist/schemas/contracts/daemon/hosting/contracts1/daemon-host/hot-plugin-module.consumer.d.ts.map +1 -0
- package/dist/schemas/contracts/daemon/hosting/contracts1/daemon-host/hot-plugin-module.consumer.js +2 -0
- package/dist/schemas/contracts/daemon/hosting/contracts1/daemon-host/hot-plugin-module.consumer.js.map +1 -0
- package/dist/schemas/contracts/daemon/hosting/contracts1/daemon.consumer.d.ts +98 -0
- package/dist/schemas/contracts/daemon/hosting/contracts1/daemon.consumer.d.ts.map +1 -0
- package/dist/schemas/contracts/daemon/hosting/contracts1/daemon.consumer.js +6 -0
- package/dist/schemas/contracts/daemon/hosting/contracts1/daemon.consumer.js.map +1 -0
- package/dist/schemas/contracts/daemon/hosting/contracts1/execution-host.schemas.d.ts +894 -0
- package/dist/schemas/contracts/daemon/hosting/contracts1/execution-host.schemas.d.ts.map +1 -0
- package/dist/schemas/contracts/daemon/hosting/contracts1/execution-host.schemas.js +81 -0
- package/dist/schemas/contracts/daemon/hosting/contracts1/execution-host.schemas.js.map +1 -0
- package/dist/schemas/contracts/daemon/hosting/contracts1/host/hot-plugin-module.consumer.d.ts +19 -0
- package/dist/schemas/contracts/daemon/hosting/contracts1/host/hot-plugin-module.consumer.d.ts.map +1 -0
- package/dist/schemas/contracts/daemon/hosting/contracts1/host/hot-plugin-module.consumer.js +2 -0
- package/dist/schemas/contracts/daemon/hosting/contracts1/host/hot-plugin-module.consumer.js.map +1 -0
- package/dist/schemas/contracts/daemon/hosting/contracts1/reclaim.consumer.d.ts +3 -0
- package/dist/schemas/contracts/daemon/hosting/contracts1/reclaim.consumer.d.ts.map +1 -0
- package/dist/schemas/contracts/daemon/hosting/contracts1/reclaim.consumer.js +2 -0
- package/dist/schemas/contracts/daemon/hosting/contracts1/reclaim.consumer.js.map +1 -0
- package/dist/schemas/contracts/daemon/hosting/contracts1/runtime-config.d.ts +45 -0
- package/dist/schemas/contracts/daemon/hosting/contracts1/runtime-config.d.ts.map +1 -0
- package/dist/schemas/contracts/daemon/hosting/contracts1/runtime-config.js +28 -0
- package/dist/schemas/contracts/daemon/hosting/contracts1/runtime-config.js.map +1 -0
- package/dist/schemas/contracts/daemon/hosting/contracts2/runtime-daemon-endpoint.impl.consumer.d.ts +6 -0
- package/dist/schemas/contracts/daemon/hosting/contracts2/runtime-daemon-endpoint.impl.consumer.d.ts.map +1 -0
- package/dist/schemas/contracts/daemon/hosting/contracts2/runtime-daemon-endpoint.impl.consumer.js +2 -0
- package/dist/schemas/contracts/daemon/hosting/contracts2/runtime-daemon-endpoint.impl.consumer.js.map +1 -0
- package/dist/schemas/contracts/daemon/hosting/contracts2/runtime-daemon.socket-path.d.ts +9 -0
- package/dist/schemas/contracts/daemon/hosting/contracts2/runtime-daemon.socket-path.d.ts.map +1 -0
- package/dist/schemas/contracts/daemon/hosting/contracts2/runtime-daemon.socket-path.js +3 -0
- package/dist/schemas/contracts/daemon/hosting/contracts2/runtime-daemon.socket-path.js.map +1 -0
- package/dist/schemas/contracts/daemon/hosting/contracts2/spawn.consumer.d.ts +3 -0
- package/dist/schemas/contracts/daemon/hosting/contracts2/spawn.consumer.d.ts.map +1 -0
- package/dist/schemas/contracts/daemon/hosting/contracts2/spawn.consumer.js +2 -0
- package/dist/schemas/contracts/daemon/hosting/contracts2/spawn.consumer.js.map +1 -0
- package/dist/schemas/contracts/daemon/rpc-root.d.ts +3 -0
- package/dist/schemas/contracts/daemon/rpc-root.d.ts.map +1 -0
- package/dist/schemas/contracts/daemon/rpc-root.js +4 -0
- package/dist/schemas/contracts/daemon/rpc-root.js.map +1 -0
- package/dist/schemas/contracts/daemon/runtime/helpers.d.ts +12 -0
- package/dist/schemas/contracts/daemon/runtime/helpers.d.ts.map +1 -0
- package/dist/schemas/contracts/daemon/runtime/helpers.js +4 -0
- package/dist/schemas/contracts/daemon/runtime/helpers.js.map +1 -0
- package/dist/schemas/contracts/daemon/services/health.d.ts +17 -0
- package/dist/schemas/contracts/daemon/services/health.d.ts.map +1 -0
- package/dist/schemas/contracts/daemon/services/health.js +2 -0
- package/dist/schemas/contracts/daemon/services/health.js.map +1 -0
- package/dist/schemas/contracts/daemon/subscriptions/manager.d.ts +16 -0
- package/dist/schemas/contracts/daemon/subscriptions/manager.d.ts.map +1 -0
- package/dist/schemas/contracts/daemon/subscriptions/manager.js +2 -0
- package/dist/schemas/contracts/daemon/subscriptions/manager.js.map +1 -0
- package/dist/schemas/contracts/pairing/client.consumer.d.ts +31 -0
- package/dist/schemas/contracts/pairing/client.consumer.d.ts.map +1 -0
- package/dist/schemas/contracts/pairing/client.consumer.js +11 -0
- package/dist/schemas/contracts/pairing/client.consumer.js.map +1 -0
- package/dist/schemas/contracts/pairing/json-file-store.consumer.d.ts +11 -0
- package/dist/schemas/contracts/pairing/json-file-store.consumer.d.ts.map +1 -0
- package/dist/schemas/contracts/pairing/json-file-store.consumer.js +2 -0
- package/dist/schemas/contracts/pairing/json-file-store.consumer.js.map +1 -0
- package/dist/schemas/contracts/pairing/machine-identity.consumer.d.ts +12 -0
- package/dist/schemas/contracts/pairing/machine-identity.consumer.d.ts.map +1 -0
- package/dist/schemas/contracts/pairing/machine-identity.consumer.js +6 -0
- package/dist/schemas/contracts/pairing/machine-identity.consumer.js.map +1 -0
- package/dist/schemas/contracts/pairing/runtime-machine-identity.context.impl.consumer.d.ts +10 -0
- package/dist/schemas/contracts/pairing/runtime-machine-identity.context.impl.consumer.d.ts.map +1 -0
- package/dist/schemas/contracts/pairing/runtime-machine-identity.context.impl.consumer.js +2 -0
- package/dist/schemas/contracts/pairing/runtime-machine-identity.context.impl.consumer.js.map +1 -0
- package/dist/schemas/contracts/pairing/runtime-machines.context.impl.consumer.d.ts +6 -0
- package/dist/schemas/contracts/pairing/runtime-machines.context.impl.consumer.d.ts.map +1 -0
- package/dist/schemas/contracts/pairing/runtime-machines.context.impl.consumer.js +2 -0
- package/dist/schemas/contracts/pairing/runtime-machines.context.impl.consumer.js.map +1 -0
- package/dist/schemas/contracts/protocol/failure-describer.d.ts +12 -0
- package/dist/schemas/contracts/protocol/failure-describer.d.ts.map +1 -0
- package/dist/schemas/contracts/protocol/failure-describer.js +10 -0
- package/dist/schemas/contracts/protocol/failure-describer.js.map +1 -0
- package/dist/schemas/contracts/protocol/fetch-failure.d.ts +2 -0
- package/dist/schemas/contracts/protocol/fetch-failure.d.ts.map +1 -0
- package/dist/schemas/contracts/protocol/fetch-failure.js +2 -0
- package/dist/schemas/contracts/protocol/fetch-failure.js.map +1 -0
- package/dist/schemas/contracts/protocol/lifecycle/attempt.d.ts +9 -0
- package/dist/schemas/contracts/protocol/lifecycle/attempt.d.ts.map +1 -0
- package/dist/schemas/contracts/protocol/lifecycle/attempt.js +2 -0
- package/dist/schemas/contracts/protocol/lifecycle/attempt.js.map +1 -0
- package/dist/schemas/contracts/protocol/lifecycle/binding-close.d.ts +9 -0
- package/dist/schemas/contracts/protocol/lifecycle/binding-close.d.ts.map +1 -0
- package/dist/schemas/contracts/protocol/lifecycle/binding-close.js +4 -0
- package/dist/schemas/contracts/protocol/lifecycle/binding-close.js.map +1 -0
- package/dist/schemas/contracts/protocol/lifecycle/channel-close.d.ts +40 -0
- package/dist/schemas/contracts/protocol/lifecycle/channel-close.d.ts.map +1 -0
- package/dist/schemas/contracts/protocol/lifecycle/channel-close.js +14 -0
- package/dist/schemas/contracts/protocol/lifecycle/channel-close.js.map +1 -0
- package/dist/schemas/contracts/protocol/lifecycle/connector.d.ts +55 -0
- package/dist/schemas/contracts/protocol/lifecycle/connector.d.ts.map +1 -0
- package/dist/schemas/contracts/protocol/lifecycle/connector.js +2 -0
- package/dist/schemas/contracts/protocol/lifecycle/connector.js.map +1 -0
- package/dist/schemas/contracts/protocol/lifecycle/stream-credits.d.ts +18 -0
- package/dist/schemas/contracts/protocol/lifecycle/stream-credits.d.ts.map +1 -0
- package/dist/schemas/contracts/protocol/lifecycle/stream-credits.js +2 -0
- package/dist/schemas/contracts/protocol/lifecycle/stream-credits.js.map +1 -0
- package/dist/schemas/contracts/protocol/local-attestation.d.ts +29 -0
- package/dist/schemas/contracts/protocol/local-attestation.d.ts.map +1 -0
- package/dist/schemas/contracts/protocol/local-attestation.js +9 -0
- package/dist/schemas/contracts/protocol/local-attestation.js.map +1 -0
- package/dist/schemas/contracts/protocol/references/advertisement.d.ts +20 -0
- package/dist/schemas/contracts/protocol/references/advertisement.d.ts.map +1 -0
- package/dist/schemas/contracts/protocol/references/advertisement.js +2 -0
- package/dist/schemas/contracts/protocol/references/advertisement.js.map +1 -0
- package/dist/schemas/contracts/protocol/references/caller-input.d.ts +56 -0
- package/dist/schemas/contracts/protocol/references/caller-input.d.ts.map +1 -0
- package/dist/schemas/contracts/protocol/references/caller-input.js +57 -0
- package/dist/schemas/contracts/protocol/references/caller-input.js.map +1 -0
- package/dist/schemas/contracts/protocol/references/consumer.d.ts +57 -0
- package/dist/schemas/contracts/protocol/references/consumer.d.ts.map +1 -0
- package/dist/schemas/contracts/protocol/references/consumer.js +5 -0
- package/dist/schemas/contracts/protocol/references/consumer.js.map +1 -0
- package/dist/schemas/contracts/protocol/references/descriptor-input.d.ts +7 -0
- package/dist/schemas/contracts/protocol/references/descriptor-input.d.ts.map +1 -0
- package/dist/schemas/contracts/protocol/references/descriptor-input.js +2 -0
- package/dist/schemas/contracts/protocol/references/descriptor-input.js.map +1 -0
- package/dist/schemas/contracts/protocol/references/dispatch.d.ts +72 -0
- package/dist/schemas/contracts/protocol/references/dispatch.d.ts.map +1 -0
- package/dist/schemas/contracts/protocol/references/dispatch.js +5 -0
- package/dist/schemas/contracts/protocol/references/dispatch.js.map +1 -0
- package/dist/schemas/contracts/protocol/references/ref-table.d.ts +66 -0
- package/dist/schemas/contracts/protocol/references/ref-table.d.ts.map +1 -0
- package/dist/schemas/contracts/protocol/references/ref-table.js +3 -0
- package/dist/schemas/contracts/protocol/references/ref-table.js.map +1 -0
- package/dist/schemas/contracts/protocol/wire/frame.d.ts +26 -0
- package/dist/schemas/contracts/protocol/wire/frame.d.ts.map +1 -0
- package/dist/schemas/contracts/protocol/wire/frame.js +8 -0
- package/dist/schemas/contracts/protocol/wire/frame.js.map +1 -0
- package/dist/schemas/contracts/protocol/wire/limits.d.ts +2 -0
- package/dist/schemas/contracts/protocol/wire/limits.d.ts.map +1 -0
- package/dist/schemas/contracts/protocol/wire/limits.js +2 -0
- package/dist/schemas/contracts/protocol/wire/limits.js.map +1 -0
- package/dist/schemas/contracts/protocol/wire/reason.d.ts +5 -0
- package/dist/schemas/contracts/protocol/wire/reason.d.ts.map +1 -0
- package/dist/schemas/contracts/protocol/wire/reason.js +5 -0
- package/dist/schemas/contracts/protocol/wire/reason.js.map +1 -0
- package/dist/schemas/contracts/protocol/wire/rpc-data.d.ts +11 -0
- package/dist/schemas/contracts/protocol/wire/rpc-data.d.ts.map +1 -0
- package/dist/schemas/contracts/protocol/wire/rpc-data.js +2 -0
- package/dist/schemas/contracts/protocol/wire/rpc-data.js.map +1 -0
- package/dist/schemas/contracts/protocol/wire/schemas.d.ts +177 -0
- package/dist/schemas/contracts/protocol/wire/schemas.d.ts.map +1 -0
- package/dist/schemas/contracts/protocol/wire/schemas.js +83 -0
- package/dist/schemas/contracts/protocol/wire/schemas.js.map +1 -0
- package/dist/schemas/contracts/protocol/wire/verbs.d.ts +35 -0
- package/dist/schemas/contracts/protocol/wire/verbs.d.ts.map +1 -0
- package/dist/schemas/contracts/protocol/wire/verbs.js +11 -0
- package/dist/schemas/contracts/protocol/wire/verbs.js.map +1 -0
- package/dist/schemas/contracts/protocol/wire/wire-value.d.ts +27 -0
- package/dist/schemas/contracts/protocol/wire/wire-value.d.ts.map +1 -0
- package/dist/schemas/contracts/protocol/wire/wire-value.js +2 -0
- package/dist/schemas/contracts/protocol/wire/wire-value.js.map +1 -0
- package/dist/schemas/contracts/transports/cef/cef-transport.impl.d.ts +21 -0
- package/dist/schemas/contracts/transports/cef/cef-transport.impl.d.ts.map +1 -0
- package/dist/schemas/contracts/transports/cef/cef-transport.impl.js +10 -0
- package/dist/schemas/contracts/transports/cef/cef-transport.impl.js.map +1 -0
- package/dist/schemas/contracts/transports/cef/cef.rpc.descriptor.d.ts +6 -0
- package/dist/schemas/contracts/transports/cef/cef.rpc.descriptor.d.ts.map +1 -0
- package/dist/schemas/contracts/transports/cef/cef.rpc.descriptor.js +4 -0
- package/dist/schemas/contracts/transports/cef/cef.rpc.descriptor.js.map +1 -0
- package/dist/schemas/contracts/transports/cef/contracts.d.ts +191 -0
- package/dist/schemas/contracts/transports/cef/contracts.d.ts.map +1 -0
- package/dist/schemas/contracts/transports/cef/contracts.js +97 -0
- package/dist/schemas/contracts/transports/cef/contracts.js.map +1 -0
- package/dist/schemas/contracts/transports/cef/global-host.d.ts +3 -0
- package/dist/schemas/contracts/transports/cef/global-host.d.ts.map +1 -0
- package/dist/schemas/contracts/transports/cef/global-host.js +3 -0
- package/dist/schemas/contracts/transports/cef/global-host.js.map +1 -0
- package/dist/schemas/contracts/transports/cef/mount.d.ts +15 -0
- package/dist/schemas/contracts/transports/cef/mount.d.ts.map +1 -0
- package/dist/schemas/contracts/transports/cef/mount.js +2 -0
- package/dist/schemas/contracts/transports/cef/mount.js.map +1 -0
- package/dist/schemas/contracts/transports/cef/runtime-rpc-cef.plugin.d.ts +96 -0
- package/dist/schemas/contracts/transports/cef/runtime-rpc-cef.plugin.d.ts.map +1 -0
- package/dist/schemas/contracts/transports/cef/runtime-rpc-cef.plugin.js +14 -0
- package/dist/schemas/contracts/transports/cef/runtime-rpc-cef.plugin.js.map +1 -0
- package/dist/schemas/contracts/transports/http/auth/cors.d.ts +9 -0
- package/dist/schemas/contracts/transports/http/auth/cors.d.ts.map +1 -0
- package/dist/schemas/contracts/transports/http/auth/cors.js +2 -0
- package/dist/schemas/contracts/transports/http/auth/cors.js.map +1 -0
- package/dist/schemas/contracts/transports/http/auth/credential.d.ts +3 -0
- package/dist/schemas/contracts/transports/http/auth/credential.d.ts.map +1 -0
- package/dist/schemas/contracts/transports/http/auth/credential.js +2 -0
- package/dist/schemas/contracts/transports/http/auth/credential.js.map +1 -0
- package/dist/schemas/contracts/transports/http/auth/nonces.d.ts +20 -0
- package/dist/schemas/contracts/transports/http/auth/nonces.d.ts.map +1 -0
- package/dist/schemas/contracts/transports/http/auth/nonces.js +2 -0
- package/dist/schemas/contracts/transports/http/auth/nonces.js.map +1 -0
- package/dist/schemas/contracts/transports/http/auth/redact.d.ts +5 -0
- package/dist/schemas/contracts/transports/http/auth/redact.d.ts.map +1 -0
- package/dist/schemas/contracts/transports/http/auth/redact.js +2 -0
- package/dist/schemas/contracts/transports/http/auth/redact.js.map +1 -0
- package/dist/schemas/contracts/transports/http/auth/token-registry.d.ts +13 -0
- package/dist/schemas/contracts/transports/http/auth/token-registry.d.ts.map +1 -0
- package/dist/schemas/contracts/transports/http/auth/token-registry.js +2 -0
- package/dist/schemas/contracts/transports/http/auth/token-registry.js.map +1 -0
- package/dist/schemas/contracts/transports/http/descriptors/http.rpc.descriptor.d.ts +12 -0
- package/dist/schemas/contracts/transports/http/descriptors/http.rpc.descriptor.d.ts.map +1 -0
- package/dist/schemas/contracts/transports/http/descriptors/http.rpc.descriptor.js +5 -0
- package/dist/schemas/contracts/transports/http/descriptors/http.rpc.descriptor.js.map +1 -0
- package/dist/schemas/contracts/transports/http/http-connection.d.ts +27 -0
- package/dist/schemas/contracts/transports/http/http-connection.d.ts.map +1 -0
- package/dist/schemas/contracts/transports/http/http-connection.js +2 -0
- package/dist/schemas/contracts/transports/http/http-connection.js.map +1 -0
- package/dist/schemas/contracts/transports/http/http-listen-session.d.ts +47 -0
- package/dist/schemas/contracts/transports/http/http-listen-session.d.ts.map +1 -0
- package/dist/schemas/contracts/transports/http/http-listen-session.js +3 -0
- package/dist/schemas/contracts/transports/http/http-listen-session.js.map +1 -0
- package/dist/schemas/contracts/transports/http/http-listen.d.ts +50 -0
- package/dist/schemas/contracts/transports/http/http-listen.d.ts.map +1 -0
- package/dist/schemas/contracts/transports/http/http-listen.js +14 -0
- package/dist/schemas/contracts/transports/http/http-listen.js.map +1 -0
- package/dist/schemas/contracts/transports/http/http-transport.impl.d.ts +130 -0
- package/dist/schemas/contracts/transports/http/http-transport.impl.d.ts.map +1 -0
- package/dist/schemas/contracts/transports/http/http-transport.impl.js +33 -0
- package/dist/schemas/contracts/transports/http/http-transport.impl.js.map +1 -0
- package/dist/schemas/contracts/transports/http/projection-mount.d.ts +43 -0
- package/dist/schemas/contracts/transports/http/projection-mount.d.ts.map +1 -0
- package/dist/schemas/contracts/transports/http/projection-mount.js +14 -0
- package/dist/schemas/contracts/transports/http/projection-mount.js.map +1 -0
- package/dist/schemas/contracts/transports/http/runtime-rpc-http.plugin.d.ts +79 -0
- package/dist/schemas/contracts/transports/http/runtime-rpc-http.plugin.d.ts.map +1 -0
- package/dist/schemas/contracts/transports/http/runtime-rpc-http.plugin.js +5 -0
- package/dist/schemas/contracts/transports/http/runtime-rpc-http.plugin.js.map +1 -0
- package/dist/schemas/contracts/transports/http/wire.d.ts +29 -0
- package/dist/schemas/contracts/transports/http/wire.d.ts.map +1 -0
- package/dist/schemas/contracts/transports/http/wire.js +23 -0
- package/dist/schemas/contracts/transports/http/wire.js.map +1 -0
- package/dist/schemas/contracts/transports/messageport/contracts.d.ts +88 -0
- package/dist/schemas/contracts/transports/messageport/contracts.d.ts.map +1 -0
- package/dist/schemas/contracts/transports/messageport/contracts.js +9 -0
- package/dist/schemas/contracts/transports/messageport/contracts.js.map +1 -0
- package/dist/schemas/contracts/transports/messageport/descriptors/messageport.rpc.descriptor.d.ts +6 -0
- package/dist/schemas/contracts/transports/messageport/descriptors/messageport.rpc.descriptor.d.ts.map +1 -0
- package/dist/schemas/contracts/transports/messageport/descriptors/messageport.rpc.descriptor.js +4 -0
- package/dist/schemas/contracts/transports/messageport/descriptors/messageport.rpc.descriptor.js.map +1 -0
- package/dist/schemas/contracts/transports/messageport/messageport-listener.d.ts +78 -0
- package/dist/schemas/contracts/transports/messageport/messageport-listener.d.ts.map +1 -0
- package/dist/schemas/contracts/transports/messageport/messageport-listener.js +23 -0
- package/dist/schemas/contracts/transports/messageport/messageport-listener.js.map +1 -0
- package/dist/schemas/contracts/transports/messageport/runtime-rpc-messageport.plugin.d.ts +78 -0
- package/dist/schemas/contracts/transports/messageport/runtime-rpc-messageport.plugin.d.ts.map +1 -0
- package/dist/schemas/contracts/transports/messageport/runtime-rpc-messageport.plugin.js +4 -0
- package/dist/schemas/contracts/transports/messageport/runtime-rpc-messageport.plugin.js.map +1 -0
- package/dist/schemas/contracts/transports/relay/descriptors/relay.rpc.descriptor.d.ts +13 -0
- package/dist/schemas/contracts/transports/relay/descriptors/relay.rpc.descriptor.d.ts.map +1 -0
- package/dist/schemas/contracts/transports/relay/descriptors/relay.rpc.descriptor.js +5 -0
- package/dist/schemas/contracts/transports/relay/descriptors/relay.rpc.descriptor.js.map +1 -0
- package/dist/schemas/contracts/transports/relay/relay-connection.d.ts +45 -0
- package/dist/schemas/contracts/transports/relay/relay-connection.d.ts.map +1 -0
- package/dist/schemas/contracts/transports/relay/relay-connection.js +2 -0
- package/dist/schemas/contracts/transports/relay/relay-connection.js.map +1 -0
- package/dist/schemas/contracts/transports/relay/relay-listen-session.d.ts +29 -0
- package/dist/schemas/contracts/transports/relay/relay-listen-session.d.ts.map +1 -0
- package/dist/schemas/contracts/transports/relay/relay-listen-session.js +3 -0
- package/dist/schemas/contracts/transports/relay/relay-listen-session.js.map +1 -0
- package/dist/schemas/contracts/transports/relay/relay-server.d.ts +41 -0
- package/dist/schemas/contracts/transports/relay/relay-server.d.ts.map +1 -0
- package/dist/schemas/contracts/transports/relay/relay-server.js +5 -0
- package/dist/schemas/contracts/transports/relay/relay-server.js.map +1 -0
- package/dist/schemas/contracts/transports/relay/relay-transport.impl.d.ts +118 -0
- package/dist/schemas/contracts/transports/relay/relay-transport.impl.d.ts.map +1 -0
- package/dist/schemas/contracts/transports/relay/relay-transport.impl.js +24 -0
- package/dist/schemas/contracts/transports/relay/relay-transport.impl.js.map +1 -0
- package/dist/schemas/contracts/transports/relay/testing/fake-broker.d.ts +55 -0
- package/dist/schemas/contracts/transports/relay/testing/fake-broker.d.ts.map +1 -0
- package/dist/schemas/contracts/transports/relay/testing/fake-broker.js +25 -0
- package/dist/schemas/contracts/transports/relay/testing/fake-broker.js.map +1 -0
- package/dist/schemas/contracts/transports/relay/wire.d.ts +450 -0
- package/dist/schemas/contracts/transports/relay/wire.d.ts.map +1 -0
- package/dist/schemas/contracts/transports/relay/wire.js +58 -0
- package/dist/schemas/contracts/transports/relay/wire.js.map +1 -0
- package/dist/schemas/contracts/transports/tauri/contracts.d.ts +162 -0
- package/dist/schemas/contracts/transports/tauri/contracts.d.ts.map +1 -0
- package/dist/schemas/contracts/transports/tauri/contracts.js +74 -0
- package/dist/schemas/contracts/transports/tauri/contracts.js.map +1 -0
- package/dist/schemas/contracts/transports/tauri/runtime-rpc-tauri.plugin.d.ts +13 -0
- package/dist/schemas/contracts/transports/tauri/runtime-rpc-tauri.plugin.d.ts.map +1 -0
- package/dist/schemas/contracts/transports/tauri/runtime-rpc-tauri.plugin.js +4 -0
- package/dist/schemas/contracts/transports/tauri/runtime-rpc-tauri.plugin.js.map +1 -0
- package/dist/schemas/contracts/transports/tauri/tauri-transport.impl.d.ts +24 -0
- package/dist/schemas/contracts/transports/tauri/tauri-transport.impl.d.ts.map +1 -0
- package/dist/schemas/contracts/transports/tauri/tauri-transport.impl.js +15 -0
- package/dist/schemas/contracts/transports/tauri/tauri-transport.impl.js.map +1 -0
- package/dist/schemas/contracts/transports/tauri/tauri.rpc.descriptor.d.ts +14 -0
- package/dist/schemas/contracts/transports/tauri/tauri.rpc.descriptor.d.ts.map +1 -0
- package/dist/schemas/contracts/transports/tauri/tauri.rpc.descriptor.js +4 -0
- package/dist/schemas/contracts/transports/tauri/tauri.rpc.descriptor.js.map +1 -0
- package/dist/schemas/contracts/transports/tcp/descriptors/tcp.rpc.descriptor.d.ts +7 -0
- package/dist/schemas/contracts/transports/tcp/descriptors/tcp.rpc.descriptor.d.ts.map +1 -0
- package/dist/schemas/contracts/transports/tcp/descriptors/tcp.rpc.descriptor.js +4 -0
- package/dist/schemas/contracts/transports/tcp/descriptors/tcp.rpc.descriptor.js.map +1 -0
- package/dist/schemas/contracts/transports/tcp/runtime-rpc-tcp.plugin.d.ts +78 -0
- package/dist/schemas/contracts/transports/tcp/runtime-rpc-tcp.plugin.d.ts.map +1 -0
- package/dist/schemas/contracts/transports/tcp/runtime-rpc-tcp.plugin.js +5 -0
- package/dist/schemas/contracts/transports/tcp/runtime-rpc-tcp.plugin.js.map +1 -0
- package/dist/schemas/contracts/transports/tcp/tcp-transport.impl.d.ts +43 -0
- package/dist/schemas/contracts/transports/tcp/tcp-transport.impl.d.ts.map +1 -0
- package/dist/schemas/contracts/transports/tcp/tcp-transport.impl.js +24 -0
- package/dist/schemas/contracts/transports/tcp/tcp-transport.impl.js.map +1 -0
- package/dist/schemas/contracts/transports/unix/descriptors/unix.rpc.descriptor.d.ts +6 -0
- package/dist/schemas/contracts/transports/unix/descriptors/unix.rpc.descriptor.d.ts.map +1 -0
- package/dist/schemas/contracts/transports/unix/descriptors/unix.rpc.descriptor.js +4 -0
- package/dist/schemas/contracts/transports/unix/descriptors/unix.rpc.descriptor.js.map +1 -0
- package/dist/schemas/contracts/transports/unix/in-process.transport.d.ts +61 -0
- package/dist/schemas/contracts/transports/unix/in-process.transport.d.ts.map +1 -0
- package/dist/schemas/contracts/transports/unix/in-process.transport.js +6 -0
- package/dist/schemas/contracts/transports/unix/in-process.transport.js.map +1 -0
- package/dist/schemas/contracts/transports/unix/runtime-rpc-unix.plugin.d.ts +79 -0
- package/dist/schemas/contracts/transports/unix/runtime-rpc-unix.plugin.d.ts.map +1 -0
- package/dist/schemas/contracts/transports/unix/runtime-rpc-unix.plugin.js +5 -0
- package/dist/schemas/contracts/transports/unix/runtime-rpc-unix.plugin.js.map +1 -0
- package/dist/schemas/contracts/transports/unix/socket-codec.d.ts +109 -0
- package/dist/schemas/contracts/transports/unix/socket-codec.d.ts.map +1 -0
- package/dist/schemas/contracts/transports/unix/socket-codec.js +7 -0
- package/dist/schemas/contracts/transports/unix/socket-codec.js.map +1 -0
- package/dist/schemas/contracts/transports/unix/socket-handshake.d.ts +25 -0
- package/dist/schemas/contracts/transports/unix/socket-handshake.d.ts.map +1 -0
- package/dist/schemas/contracts/transports/unix/socket-handshake.js +10 -0
- package/dist/schemas/contracts/transports/unix/socket-handshake.js.map +1 -0
- package/dist/schemas/contracts/transports/unix/socket-listener.d.ts +41 -0
- package/dist/schemas/contracts/transports/unix/socket-listener.d.ts.map +1 -0
- package/dist/schemas/contracts/transports/unix/socket-listener.js +3 -0
- package/dist/schemas/contracts/transports/unix/socket-listener.js.map +1 -0
- package/dist/schemas/contracts/transports/unix/unix-transport.impl.d.ts +42 -0
- package/dist/schemas/contracts/transports/unix/unix-transport.impl.d.ts.map +1 -0
- package/dist/schemas/contracts/transports/unix/unix-transport.impl.js +23 -0
- package/dist/schemas/contracts/transports/unix/unix-transport.impl.js.map +1 -0
- package/dist/schemas/daemon/daemon-client.d.ts +193 -0
- package/dist/schemas/daemon/daemon-client.d.ts.map +1 -0
- package/dist/schemas/daemon/daemon-client.js +62 -0
- package/dist/schemas/daemon/daemon-client.js.map +1 -0
- package/dist/schemas/daemon/daemon-http.d.ts +34 -0
- package/dist/schemas/daemon/daemon-http.d.ts.map +1 -0
- package/dist/schemas/daemon/daemon-http.js +24 -0
- package/dist/schemas/daemon/daemon-http.js.map +1 -0
- package/dist/schemas/daemon/daemon-protocol.d.ts +78 -0
- package/dist/schemas/daemon/daemon-protocol.d.ts.map +1 -0
- package/dist/schemas/daemon/daemon-protocol.js +72 -0
- package/dist/schemas/daemon/daemon-protocol.js.map +1 -0
- package/dist/schemas/daemon/daemon-response.d.ts +42 -0
- package/dist/schemas/daemon/daemon-response.d.ts.map +1 -0
- package/dist/schemas/daemon/daemon-response.js +30 -0
- package/dist/schemas/daemon/daemon-response.js.map +1 -0
- package/dist/schemas/daemon/daemon-runtime.d.ts +5 -0
- package/dist/schemas/daemon/daemon-runtime.d.ts.map +1 -0
- package/dist/schemas/daemon/daemon-runtime.js +2 -0
- package/dist/schemas/daemon/daemon-runtime.js.map +1 -0
- package/dist/schemas/daemon/daemon-supervisor.d.ts +163 -0
- package/dist/schemas/daemon/daemon-supervisor.d.ts.map +1 -0
- package/dist/schemas/daemon/daemon-supervisor.js +113 -0
- package/dist/schemas/daemon/daemon-supervisor.js.map +1 -0
- package/dist/schemas/daemon/daemon-watchers.d.ts +18 -0
- package/dist/schemas/daemon/daemon-watchers.d.ts.map +1 -0
- package/dist/schemas/daemon/daemon-watchers.js +12 -0
- package/dist/schemas/daemon/daemon-watchers.js.map +1 -0
- package/dist/schemas/descriptor-wire.d.ts +14 -0
- package/dist/schemas/descriptor-wire.d.ts.map +1 -0
- package/dist/schemas/descriptor-wire.js +24 -0
- package/dist/schemas/descriptor-wire.js.map +1 -0
- package/dist/schemas/execution/wire-process.d.ts +17 -0
- package/dist/schemas/execution/wire-process.d.ts.map +1 -0
- package/dist/schemas/execution/wire-process.js +22 -0
- package/dist/schemas/execution/wire-process.js.map +1 -0
- package/dist/schemas/invoke-support.d.ts +16 -0
- package/dist/schemas/invoke-support.d.ts.map +1 -0
- package/dist/schemas/invoke-support.js +16 -0
- package/dist/schemas/invoke-support.js.map +1 -0
- package/dist/schemas/invoke.d.ts +54 -0
- package/dist/schemas/invoke.d.ts.map +1 -0
- package/dist/schemas/invoke.js +23 -0
- package/dist/schemas/invoke.js.map +1 -0
- package/dist/schemas/pairing.d.ts +118 -0
- package/dist/schemas/pairing.d.ts.map +1 -0
- package/dist/schemas/pairing.js +24 -0
- package/dist/schemas/pairing.js.map +1 -0
- package/dist/transports/cef/contracts1/cef-bounds.d.ts +3 -0
- package/dist/transports/cef/contracts1/cef-bounds.d.ts.map +1 -0
- package/dist/transports/cef/contracts1/cef-bounds.js +10 -0
- package/dist/transports/cef/contracts1/cef-bounds.js.map +1 -0
- package/dist/transports/cef/contracts1/cef-channel.d.ts +33 -0
- package/dist/transports/cef/contracts1/cef-channel.d.ts.map +1 -0
- package/dist/transports/cef/contracts1/cef-channel.js +129 -0
- package/dist/transports/cef/contracts1/cef-channel.js.map +1 -0
- package/dist/transports/cef/contracts1/cef-connection.d.ts +23 -0
- package/dist/transports/cef/contracts1/cef-connection.d.ts.map +1 -0
- package/dist/transports/cef/contracts1/cef-connection.js +207 -0
- package/dist/transports/cef/contracts1/cef-connection.js.map +1 -0
- package/dist/transports/cef/contracts1/cef-streams.d.ts +55 -0
- package/dist/transports/cef/contracts1/cef-streams.d.ts.map +1 -0
- package/dist/transports/cef/contracts1/cef-streams.js +160 -0
- package/dist/transports/cef/contracts1/cef-streams.js.map +1 -0
- package/dist/transports/cef/contracts1/cef-transport.impl.d.ts +16 -0
- package/dist/transports/cef/contracts1/cef-transport.impl.d.ts.map +1 -0
- package/dist/transports/cef/contracts1/cef-transport.impl.js +63 -0
- package/dist/transports/cef/contracts1/cef-transport.impl.js.map +1 -0
- package/dist/transports/cef/contracts1/cef.rpc.descriptor.d.ts +5 -0
- package/dist/transports/cef/contracts1/cef.rpc.descriptor.d.ts.map +1 -0
- package/dist/transports/cef/contracts1/cef.rpc.descriptor.js +18 -0
- package/dist/transports/cef/contracts1/cef.rpc.descriptor.js.map +1 -0
- package/dist/transports/cef/contracts1/contracts.d.ts +35 -0
- package/dist/transports/cef/contracts1/contracts.d.ts.map +1 -0
- package/dist/transports/cef/contracts1/contracts.js +29 -0
- package/dist/transports/cef/contracts1/contracts.js.map +1 -0
- package/dist/transports/cef/contracts2/global-host.d.ts +17 -0
- package/dist/transports/cef/contracts2/global-host.d.ts.map +1 -0
- package/dist/transports/cef/contracts2/global-host.js +65 -0
- package/dist/transports/cef/contracts2/global-host.js.map +1 -0
- package/dist/transports/cef/contracts2/index.d.ts +8 -0
- package/dist/transports/cef/contracts2/index.d.ts.map +1 -0
- package/dist/transports/cef/contracts2/index.js +8 -0
- package/dist/transports/cef/contracts2/index.js.map +1 -0
- package/dist/transports/cef/contracts2/mount.d.ts +7 -0
- package/dist/transports/cef/contracts2/mount.d.ts.map +1 -0
- package/dist/transports/cef/contracts2/mount.js +63 -0
- package/dist/transports/cef/contracts2/mount.js.map +1 -0
- package/dist/transports/cef/contracts2/projection-controller.d.ts +39 -0
- package/dist/transports/cef/contracts2/projection-controller.d.ts.map +1 -0
- package/dist/transports/cef/contracts2/projection-controller.js +129 -0
- package/dist/transports/cef/contracts2/projection-controller.js.map +1 -0
- package/dist/transports/cef/contracts2/runtime-rpc-cef.plugin.d.ts +13 -0
- package/dist/transports/cef/contracts2/runtime-rpc-cef.plugin.d.ts.map +1 -0
- package/dist/transports/cef/contracts2/runtime-rpc-cef.plugin.js +79 -0
- package/dist/transports/cef/contracts2/runtime-rpc-cef.plugin.js.map +1 -0
- package/dist/transports/http/auth/cors.d.ts +25 -0
- package/dist/transports/http/auth/cors.d.ts.map +1 -0
- package/dist/transports/http/auth/cors.js +81 -0
- package/dist/transports/http/auth/cors.js.map +1 -0
- package/dist/transports/http/auth/credential.d.ts +11 -0
- package/dist/transports/http/auth/credential.d.ts.map +1 -0
- package/dist/transports/http/auth/credential.js +38 -0
- package/dist/transports/http/auth/credential.js.map +1 -0
- package/dist/transports/http/auth/nonces.d.ts +31 -0
- package/dist/transports/http/auth/nonces.d.ts.map +1 -0
- package/dist/transports/http/auth/nonces.js +70 -0
- package/dist/transports/http/auth/nonces.js.map +1 -0
- package/dist/transports/http/auth/redact.d.ts +17 -0
- package/dist/transports/http/auth/redact.d.ts.map +1 -0
- package/dist/transports/http/auth/redact.js +60 -0
- package/dist/transports/http/auth/redact.js.map +1 -0
- package/dist/transports/http/auth/token-registry.d.ts +22 -0
- package/dist/transports/http/auth/token-registry.d.ts.map +1 -0
- package/dist/transports/http/auth/token-registry.js +30 -0
- package/dist/transports/http/auth/token-registry.js.map +1 -0
- package/dist/transports/http/consumer/connect-http.d.ts +8 -0
- package/dist/transports/http/consumer/connect-http.d.ts.map +1 -0
- package/dist/transports/http/consumer/connect-http.js +137 -0
- package/dist/transports/http/consumer/connect-http.js.map +1 -0
- package/dist/transports/http/consumer/http-channel.d.ts +51 -0
- package/dist/transports/http/consumer/http-channel.d.ts.map +1 -0
- package/dist/transports/http/consumer/http-channel.js +173 -0
- package/dist/transports/http/consumer/http-channel.js.map +1 -0
- package/dist/transports/http/consumer/http-connection.d.ts +57 -0
- package/dist/transports/http/consumer/http-connection.d.ts.map +1 -0
- package/dist/transports/http/consumer/http-connection.js +268 -0
- package/dist/transports/http/consumer/http-connection.js.map +1 -0
- package/dist/transports/http/consumer/http-headers.d.ts +3 -0
- package/dist/transports/http/consumer/http-headers.d.ts.map +1 -0
- package/dist/transports/http/consumer/http-headers.js +5 -0
- package/dist/transports/http/consumer/http-headers.js.map +1 -0
- package/dist/transports/http/daemon-endpoints.consumer.plugin.d.ts +4 -0
- package/dist/transports/http/daemon-endpoints.consumer.plugin.d.ts.map +1 -0
- package/dist/transports/http/daemon-endpoints.consumer.plugin.js +41 -0
- package/dist/transports/http/daemon-endpoints.consumer.plugin.js.map +1 -0
- package/dist/transports/http/descriptors/http.rpc.descriptor.d.ts +6 -0
- package/dist/transports/http/descriptors/http.rpc.descriptor.d.ts.map +1 -0
- package/dist/transports/http/descriptors/http.rpc.descriptor.js +34 -0
- package/dist/transports/http/descriptors/http.rpc.descriptor.js.map +1 -0
- package/dist/transports/http/endpoints/daemon-endpoint.kind.d.ts +6 -0
- package/dist/transports/http/endpoints/daemon-endpoint.kind.d.ts.map +1 -0
- package/dist/transports/http/endpoints/daemon-endpoint.kind.js +26 -0
- package/dist/transports/http/endpoints/daemon-endpoint.kind.js.map +1 -0
- package/dist/transports/http/endpoints/health.descriptor.d.ts +29 -0
- package/dist/transports/http/endpoints/health.descriptor.d.ts.map +1 -0
- package/dist/transports/http/endpoints/health.descriptor.js +13 -0
- package/dist/transports/http/endpoints/health.descriptor.js.map +1 -0
- package/dist/transports/http/endpoints/health.impl.consumer.d.ts +3 -0
- package/dist/transports/http/endpoints/health.impl.consumer.d.ts.map +1 -0
- package/dist/transports/http/endpoints/health.impl.consumer.js +24 -0
- package/dist/transports/http/endpoints/health.impl.consumer.js.map +1 -0
- package/dist/transports/http/endpoints/index.d.ts +5 -0
- package/dist/transports/http/endpoints/index.d.ts.map +1 -0
- package/dist/transports/http/endpoints/index.js +5 -0
- package/dist/transports/http/endpoints/index.js.map +1 -0
- package/dist/transports/http/endpoints/mcp.descriptor.d.ts +29 -0
- package/dist/transports/http/endpoints/mcp.descriptor.d.ts.map +1 -0
- package/dist/transports/http/endpoints/mcp.descriptor.js +13 -0
- package/dist/transports/http/endpoints/mcp.descriptor.js.map +1 -0
- package/dist/transports/http/endpoints/mcp.impl.consumer.d.ts +3 -0
- package/dist/transports/http/endpoints/mcp.impl.consumer.d.ts.map +1 -0
- package/dist/transports/http/endpoints/mcp.impl.consumer.js +16 -0
- package/dist/transports/http/endpoints/mcp.impl.consumer.js.map +1 -0
- package/dist/transports/http/http-implementation.d.ts +14 -0
- package/dist/transports/http/http-implementation.d.ts.map +1 -0
- package/dist/transports/http/http-implementation.js +26 -0
- package/dist/transports/http/http-implementation.js.map +1 -0
- package/dist/transports/http/index.d.ts +34 -0
- package/dist/transports/http/index.d.ts.map +1 -0
- package/dist/transports/http/index.js +39 -0
- package/dist/transports/http/index.js.map +1 -0
- package/dist/transports/http/listener/body.d.ts +8 -0
- package/dist/transports/http/listener/body.d.ts.map +1 -0
- package/dist/transports/http/listener/body.js +52 -0
- package/dist/transports/http/listener/body.js.map +1 -0
- package/dist/transports/http/listener/http-bindings.d.ts +82 -0
- package/dist/transports/http/listener/http-bindings.d.ts.map +1 -0
- package/dist/transports/http/listener/http-bindings.js +234 -0
- package/dist/transports/http/listener/http-bindings.js.map +1 -0
- package/dist/transports/http/listener/http-listen-session.d.ts +43 -0
- package/dist/transports/http/listener/http-listen-session.d.ts.map +1 -0
- package/dist/transports/http/listener/http-listen-session.js +123 -0
- package/dist/transports/http/listener/http-listen-session.js.map +1 -0
- package/dist/transports/http/listener/http-listen.d.ts +8 -0
- package/dist/transports/http/listener/http-listen.d.ts.map +1 -0
- package/dist/transports/http/listener/http-listen.js +62 -0
- package/dist/transports/http/listener/http-listen.js.map +1 -0
- package/dist/transports/http/listener/http-sessions.d.ts +59 -0
- package/dist/transports/http/listener/http-sessions.d.ts.map +1 -0
- package/dist/transports/http/listener/http-sessions.js +186 -0
- package/dist/transports/http/listener/http-sessions.js.map +1 -0
- package/dist/transports/http/listener/http-transport.impl.d.ts +36 -0
- package/dist/transports/http/listener/http-transport.impl.d.ts.map +1 -0
- package/dist/transports/http/listener/http-transport.impl.js +188 -0
- package/dist/transports/http/listener/http-transport.impl.js.map +1 -0
- package/dist/transports/http/listener/projection-mount.d.ts +9 -0
- package/dist/transports/http/listener/projection-mount.d.ts.map +1 -0
- package/dist/transports/http/listener/projection-mount.js +78 -0
- package/dist/transports/http/listener/projection-mount.js.map +1 -0
- package/dist/transports/http/listener/projection-owner.d.ts +6 -0
- package/dist/transports/http/listener/projection-owner.d.ts.map +1 -0
- package/dist/transports/http/listener/projection-owner.js +85 -0
- package/dist/transports/http/listener/projection-owner.js.map +1 -0
- package/dist/transports/http/listener/reverse-response.d.ts +4 -0
- package/dist/transports/http/listener/reverse-response.d.ts.map +1 -0
- package/dist/transports/http/listener/reverse-response.js +27 -0
- package/dist/transports/http/listener/reverse-response.js.map +1 -0
- package/dist/transports/http/listener/stream-response.d.ts +3 -0
- package/dist/transports/http/listener/stream-response.d.ts.map +1 -0
- package/dist/transports/http/listener/stream-response.js +52 -0
- package/dist/transports/http/listener/stream-response.js.map +1 -0
- package/dist/transports/http/runtime-rpc-http.plugin.d.ts +41 -0
- package/dist/transports/http/runtime-rpc-http.plugin.d.ts.map +1 -0
- package/dist/transports/http/runtime-rpc-http.plugin.js +70 -0
- package/dist/transports/http/runtime-rpc-http.plugin.js.map +1 -0
- package/dist/transports/http/schemas/daemon-endpoint.d.ts +83 -0
- package/dist/transports/http/schemas/daemon-endpoint.d.ts.map +1 -0
- package/dist/transports/http/schemas/daemon-endpoint.js +32 -0
- package/dist/transports/http/schemas/daemon-endpoint.js.map +1 -0
- package/dist/transports/http/wire.d.ts +52 -0
- package/dist/transports/http/wire.d.ts.map +1 -0
- package/dist/transports/http/wire.js +62 -0
- package/dist/transports/http/wire.js.map +1 -0
- package/dist/transports/messageport/applet-callbacks.d.ts +10 -0
- package/dist/transports/messageport/applet-callbacks.d.ts.map +1 -0
- package/dist/transports/messageport/applet-callbacks.js +11 -0
- package/dist/transports/messageport/applet-callbacks.js.map +1 -0
- package/dist/transports/messageport/connection/contracts.d.ts +41 -0
- package/dist/transports/messageport/connection/contracts.d.ts.map +1 -0
- package/dist/transports/messageport/connection/contracts.js +46 -0
- package/dist/transports/messageport/connection/contracts.js.map +1 -0
- package/dist/transports/messageport/connection/messageport-inbox.d.ts +37 -0
- package/dist/transports/messageport/connection/messageport-inbox.d.ts.map +1 -0
- package/dist/transports/messageport/connection/messageport-inbox.js +122 -0
- package/dist/transports/messageport/connection/messageport-inbox.js.map +1 -0
- package/dist/transports/messageport/descriptors/messageport.rpc.descriptor.d.ts +12 -0
- package/dist/transports/messageport/descriptors/messageport.rpc.descriptor.d.ts.map +1 -0
- package/dist/transports/messageport/descriptors/messageport.rpc.descriptor.js +25 -0
- package/dist/transports/messageport/descriptors/messageport.rpc.descriptor.js.map +1 -0
- package/dist/transports/messageport/docs/runtime-rpc-messageport.docs.descriptor.d.ts +4 -0
- package/dist/transports/messageport/docs/runtime-rpc-messageport.docs.descriptor.d.ts.map +1 -0
- package/dist/transports/messageport/docs/runtime-rpc-messageport.docs.descriptor.js +63 -0
- package/dist/transports/messageport/docs/runtime-rpc-messageport.docs.descriptor.js.map +1 -0
- package/dist/transports/messageport/index.d.ts +16 -0
- package/dist/transports/messageport/index.d.ts.map +1 -0
- package/dist/transports/messageport/index.js +16 -0
- package/dist/transports/messageport/index.js.map +1 -0
- package/dist/transports/messageport/messageport-connection.d.ts +9 -0
- package/dist/transports/messageport/messageport-connection.d.ts.map +1 -0
- package/dist/transports/messageport/messageport-connection.js +82 -0
- package/dist/transports/messageport/messageport-connection.js.map +1 -0
- package/dist/transports/messageport/messageport-listener.d.ts +14 -0
- package/dist/transports/messageport/messageport-listener.d.ts.map +1 -0
- package/dist/transports/messageport/messageport-listener.js +162 -0
- package/dist/transports/messageport/messageport-listener.js.map +1 -0
- package/dist/transports/messageport/runtime-rpc-messageport.plugin.d.ts +8 -0
- package/dist/transports/messageport/runtime-rpc-messageport.plugin.d.ts.map +1 -0
- package/dist/transports/messageport/runtime-rpc-messageport.plugin.js +38 -0
- package/dist/transports/messageport/runtime-rpc-messageport.plugin.js.map +1 -0
- package/dist/transports/relay/consumer/relay-channel.d.ts +48 -0
- package/dist/transports/relay/consumer/relay-channel.d.ts.map +1 -0
- package/dist/transports/relay/consumer/relay-channel.js +179 -0
- package/dist/transports/relay/consumer/relay-channel.js.map +1 -0
- package/dist/transports/relay/consumer/relay-connection.d.ts +36 -0
- package/dist/transports/relay/consumer/relay-connection.d.ts.map +1 -0
- package/dist/transports/relay/consumer/relay-connection.js +190 -0
- package/dist/transports/relay/consumer/relay-connection.js.map +1 -0
- package/dist/transports/relay/consumer/relay-exchange.d.ts +49 -0
- package/dist/transports/relay/consumer/relay-exchange.d.ts.map +1 -0
- package/dist/transports/relay/consumer/relay-exchange.js +189 -0
- package/dist/transports/relay/consumer/relay-exchange.js.map +1 -0
- package/dist/transports/relay/consumer/relay-headers.d.ts +4 -0
- package/dist/transports/relay/consumer/relay-headers.d.ts.map +1 -0
- package/dist/transports/relay/consumer/relay-headers.js +6 -0
- package/dist/transports/relay/consumer/relay-headers.js.map +1 -0
- package/dist/transports/relay/descriptors/relay.rpc.descriptor.d.ts +6 -0
- package/dist/transports/relay/descriptors/relay.rpc.descriptor.d.ts.map +1 -0
- package/dist/transports/relay/descriptors/relay.rpc.descriptor.js +31 -0
- package/dist/transports/relay/descriptors/relay.rpc.descriptor.js.map +1 -0
- package/dist/transports/relay/index.d.ts +28 -0
- package/dist/transports/relay/index.d.ts.map +1 -0
- package/dist/transports/relay/index.js +38 -0
- package/dist/transports/relay/index.js.map +1 -0
- package/dist/transports/relay/listener/consumer-table.d.ts +17 -0
- package/dist/transports/relay/listener/consumer-table.d.ts.map +1 -0
- package/dist/transports/relay/listener/consumer-table.js +9 -0
- package/dist/transports/relay/listener/consumer-table.js.map +1 -0
- package/dist/transports/relay/listener/relay-adapter.d.ts +15 -0
- package/dist/transports/relay/listener/relay-adapter.d.ts.map +1 -0
- package/dist/transports/relay/listener/relay-adapter.js +81 -0
- package/dist/transports/relay/listener/relay-adapter.js.map +1 -0
- package/dist/transports/relay/listener/relay-consumers.d.ts +72 -0
- package/dist/transports/relay/listener/relay-consumers.d.ts.map +1 -0
- package/dist/transports/relay/listener/relay-consumers.js +193 -0
- package/dist/transports/relay/listener/relay-consumers.js.map +1 -0
- package/dist/transports/relay/listener/relay-listen-session.d.ts +27 -0
- package/dist/transports/relay/listener/relay-listen-session.d.ts.map +1 -0
- package/dist/transports/relay/listener/relay-listen-session.js +207 -0
- package/dist/transports/relay/listener/relay-listen-session.js.map +1 -0
- package/dist/transports/relay/listener/reverse-proxy.d.ts +7 -0
- package/dist/transports/relay/listener/reverse-proxy.d.ts.map +1 -0
- package/dist/transports/relay/listener/reverse-proxy.js +106 -0
- package/dist/transports/relay/listener/reverse-proxy.js.map +1 -0
- package/dist/transports/relay/relay-rpc-loader.d.ts +9 -0
- package/dist/transports/relay/relay-rpc-loader.d.ts.map +1 -0
- package/dist/transports/relay/relay-rpc-loader.js +30 -0
- package/dist/transports/relay/relay-rpc-loader.js.map +1 -0
- package/dist/transports/relay/relay-server.d.ts +58 -0
- package/dist/transports/relay/relay-server.d.ts.map +1 -0
- package/dist/transports/relay/relay-server.js +86 -0
- package/dist/transports/relay/relay-server.js.map +1 -0
- package/dist/transports/relay/relay-transport.impl.d.ts +35 -0
- package/dist/transports/relay/relay-transport.impl.d.ts.map +1 -0
- package/dist/transports/relay/relay-transport.impl.js +177 -0
- package/dist/transports/relay/relay-transport.impl.js.map +1 -0
- package/dist/transports/relay/testing/broker-routing.d.ts +40 -0
- package/dist/transports/relay/testing/broker-routing.d.ts.map +1 -0
- package/dist/transports/relay/testing/broker-routing.js +136 -0
- package/dist/transports/relay/testing/broker-routing.js.map +1 -0
- package/dist/transports/relay/testing/broker-socket.d.ts +41 -0
- package/dist/transports/relay/testing/broker-socket.d.ts.map +1 -0
- package/dist/transports/relay/testing/broker-socket.js +62 -0
- package/dist/transports/relay/testing/broker-socket.js.map +1 -0
- package/dist/transports/relay/testing/fake-broker.d.ts +13 -0
- package/dist/transports/relay/testing/fake-broker.d.ts.map +1 -0
- package/dist/transports/relay/testing/fake-broker.js +197 -0
- package/dist/transports/relay/testing/fake-broker.js.map +1 -0
- package/dist/transports/relay/testing/index.d.ts +16 -0
- package/dist/transports/relay/testing/index.d.ts.map +1 -0
- package/dist/transports/relay/testing/index.js +16 -0
- package/dist/transports/relay/testing/index.js.map +1 -0
- package/dist/transports/relay/wire.d.ts +35 -0
- package/dist/transports/relay/wire.d.ts.map +1 -0
- package/dist/transports/relay/wire.js +84 -0
- package/dist/transports/relay/wire.js.map +1 -0
- package/dist/transports/tauri/contracts1/contracts.d.ts +11 -0
- package/dist/transports/tauri/contracts1/contracts.d.ts.map +1 -0
- package/dist/transports/tauri/contracts1/contracts.js +7 -0
- package/dist/transports/tauri/contracts1/contracts.js.map +1 -0
- package/dist/transports/tauri/contracts1/docs/runtime-rpc-tauri.docs.descriptor.d.ts +4 -0
- package/dist/transports/tauri/contracts1/docs/runtime-rpc-tauri.docs.descriptor.d.ts.map +1 -0
- package/dist/transports/tauri/contracts1/docs/runtime-rpc-tauri.docs.descriptor.js +80 -0
- package/dist/transports/tauri/contracts1/docs/runtime-rpc-tauri.docs.descriptor.js.map +1 -0
- package/dist/transports/tauri/contracts1/index.d.ts +6 -0
- package/dist/transports/tauri/contracts1/index.d.ts.map +1 -0
- package/dist/transports/tauri/contracts1/index.js +6 -0
- package/dist/transports/tauri/contracts1/index.js.map +1 -0
- package/dist/transports/tauri/contracts1/runtime-rpc-tauri.plugin.d.ts +7 -0
- package/dist/transports/tauri/contracts1/runtime-rpc-tauri.plugin.d.ts.map +1 -0
- package/dist/transports/tauri/contracts1/runtime-rpc-tauri.plugin.js +37 -0
- package/dist/transports/tauri/contracts1/runtime-rpc-tauri.plugin.js.map +1 -0
- package/dist/transports/tauri/contracts1/tauri-bounds.d.ts +3 -0
- package/dist/transports/tauri/contracts1/tauri-bounds.d.ts.map +1 -0
- package/dist/transports/tauri/contracts1/tauri-bounds.js +10 -0
- package/dist/transports/tauri/contracts1/tauri-bounds.js.map +1 -0
- package/dist/transports/tauri/contracts1/tauri-channel.d.ts +27 -0
- package/dist/transports/tauri/contracts1/tauri-channel.d.ts.map +1 -0
- package/dist/transports/tauri/contracts1/tauri-channel.js +111 -0
- package/dist/transports/tauri/contracts1/tauri-channel.js.map +1 -0
- package/dist/transports/tauri/contracts1/tauri-connection.d.ts +22 -0
- package/dist/transports/tauri/contracts1/tauri-connection.d.ts.map +1 -0
- package/dist/transports/tauri/contracts1/tauri-connection.js +168 -0
- package/dist/transports/tauri/contracts1/tauri-connection.js.map +1 -0
- package/dist/transports/tauri/contracts2/tauri-streams.d.ts +38 -0
- package/dist/transports/tauri/contracts2/tauri-streams.d.ts.map +1 -0
- package/dist/transports/tauri/contracts2/tauri-streams.js +110 -0
- package/dist/transports/tauri/contracts2/tauri-streams.js.map +1 -0
- package/dist/transports/tauri/contracts2/tauri-transport.impl.d.ts +16 -0
- package/dist/transports/tauri/contracts2/tauri-transport.impl.d.ts.map +1 -0
- package/dist/transports/tauri/contracts2/tauri-transport.impl.js +46 -0
- package/dist/transports/tauri/contracts2/tauri-transport.impl.js.map +1 -0
- package/dist/transports/tauri/contracts2/tauri.rpc.descriptor.d.ts +6 -0
- package/dist/transports/tauri/contracts2/tauri.rpc.descriptor.d.ts.map +1 -0
- package/dist/transports/tauri/contracts2/tauri.rpc.descriptor.js +20 -0
- package/dist/transports/tauri/contracts2/tauri.rpc.descriptor.js.map +1 -0
- package/dist/transports/tcp/connect-tcp.d.ts +12 -0
- package/dist/transports/tcp/connect-tcp.d.ts.map +1 -0
- package/dist/transports/tcp/connect-tcp.js +51 -0
- package/dist/transports/tcp/connect-tcp.js.map +1 -0
- package/dist/transports/tcp/descriptors/tcp.rpc.descriptor.d.ts +10 -0
- package/dist/transports/tcp/descriptors/tcp.rpc.descriptor.d.ts.map +1 -0
- package/dist/transports/tcp/descriptors/tcp.rpc.descriptor.js +24 -0
- package/dist/transports/tcp/descriptors/tcp.rpc.descriptor.js.map +1 -0
- package/dist/transports/tcp/index.d.ts +13 -0
- package/dist/transports/tcp/index.d.ts.map +1 -0
- package/dist/transports/tcp/index.js +13 -0
- package/dist/transports/tcp/index.js.map +1 -0
- package/dist/transports/tcp/runtime-rpc-tcp.plugin.d.ts +8 -0
- package/dist/transports/tcp/runtime-rpc-tcp.plugin.d.ts.map +1 -0
- package/dist/transports/tcp/runtime-rpc-tcp.plugin.js +37 -0
- package/dist/transports/tcp/runtime-rpc-tcp.plugin.js.map +1 -0
- package/dist/transports/tcp/tcp-transport.impl.d.ts +25 -0
- package/dist/transports/tcp/tcp-transport.impl.d.ts.map +1 -0
- package/dist/transports/tcp/tcp-transport.impl.js +103 -0
- package/dist/transports/tcp/tcp-transport.impl.js.map +1 -0
- package/dist/transports/unix/codec/record-parser.d.ts +28 -0
- package/dist/transports/unix/codec/record-parser.d.ts.map +1 -0
- package/dist/transports/unix/codec/record-parser.js +119 -0
- package/dist/transports/unix/codec/record-parser.js.map +1 -0
- package/dist/transports/unix/codec/socket-codec.d.ts +57 -0
- package/dist/transports/unix/codec/socket-codec.d.ts.map +1 -0
- package/dist/transports/unix/codec/socket-codec.js +122 -0
- package/dist/transports/unix/codec/socket-codec.js.map +1 -0
- package/dist/transports/unix/codec/socket-writer.d.ts +16 -0
- package/dist/transports/unix/codec/socket-writer.d.ts.map +1 -0
- package/dist/transports/unix/codec/socket-writer.js +69 -0
- package/dist/transports/unix/codec/socket-writer.js.map +1 -0
- package/dist/transports/unix/consumer/connect-unix.d.ts +12 -0
- package/dist/transports/unix/consumer/connect-unix.d.ts.map +1 -0
- package/dist/transports/unix/consumer/connect-unix.js +51 -0
- package/dist/transports/unix/consumer/connect-unix.js.map +1 -0
- package/dist/transports/unix/consumer/socket-channel.d.ts +45 -0
- package/dist/transports/unix/consumer/socket-channel.d.ts.map +1 -0
- package/dist/transports/unix/consumer/socket-channel.js +125 -0
- package/dist/transports/unix/consumer/socket-channel.js.map +1 -0
- package/dist/transports/unix/consumer/socket-connection.d.ts +42 -0
- package/dist/transports/unix/consumer/socket-connection.d.ts.map +1 -0
- package/dist/transports/unix/consumer/socket-connection.js +221 -0
- package/dist/transports/unix/consumer/socket-connection.js.map +1 -0
- package/dist/transports/unix/descriptors/unix.rpc.descriptor.d.ts +17 -0
- package/dist/transports/unix/descriptors/unix.rpc.descriptor.d.ts.map +1 -0
- package/dist/transports/unix/descriptors/unix.rpc.descriptor.js +31 -0
- package/dist/transports/unix/descriptors/unix.rpc.descriptor.js.map +1 -0
- package/dist/transports/unix/in-process/in-process-channel.d.ts +11 -0
- package/dist/transports/unix/in-process/in-process-channel.d.ts.map +1 -0
- package/dist/transports/unix/in-process/in-process-channel.js +126 -0
- package/dist/transports/unix/in-process/in-process-channel.js.map +1 -0
- package/dist/transports/unix/in-process/in-process.transport.d.ts +13 -0
- package/dist/transports/unix/in-process/in-process.transport.d.ts.map +1 -0
- package/dist/transports/unix/in-process/in-process.transport.js +119 -0
- package/dist/transports/unix/in-process/in-process.transport.js.map +1 -0
- package/dist/transports/unix/index.d.ts +25 -0
- package/dist/transports/unix/index.d.ts.map +1 -0
- package/dist/transports/unix/index.js +29 -0
- package/dist/transports/unix/index.js.map +1 -0
- package/dist/transports/unix/listener/socket-bindings.d.ts +38 -0
- package/dist/transports/unix/listener/socket-bindings.d.ts.map +1 -0
- package/dist/transports/unix/listener/socket-bindings.js +187 -0
- package/dist/transports/unix/listener/socket-bindings.js.map +1 -0
- package/dist/transports/unix/listener/socket-listener.d.ts +21 -0
- package/dist/transports/unix/listener/socket-listener.d.ts.map +1 -0
- package/dist/transports/unix/listener/socket-listener.js +202 -0
- package/dist/transports/unix/listener/socket-listener.js.map +1 -0
- package/dist/transports/unix/listener/socket-state.d.ts +140 -0
- package/dist/transports/unix/listener/socket-state.d.ts.map +1 -0
- package/dist/transports/unix/listener/socket-state.js +102 -0
- package/dist/transports/unix/listener/socket-state.js.map +1 -0
- package/dist/transports/unix/runtime-rpc-unix.plugin.d.ts +8 -0
- package/dist/transports/unix/runtime-rpc-unix.plugin.d.ts.map +1 -0
- package/dist/transports/unix/runtime-rpc-unix.plugin.js +37 -0
- package/dist/transports/unix/runtime-rpc-unix.plugin.js.map +1 -0
- package/dist/transports/unix/socket-handshake.d.ts +23 -0
- package/dist/transports/unix/socket-handshake.d.ts.map +1 -0
- package/dist/transports/unix/socket-handshake.js +156 -0
- package/dist/transports/unix/socket-handshake.js.map +1 -0
- package/dist/transports/unix/unix-transport.impl.d.ts +31 -0
- package/dist/transports/unix/unix-transport.impl.d.ts.map +1 -0
- package/dist/transports/unix/unix-transport.impl.js +103 -0
- package/dist/transports/unix/unix-transport.impl.js.map +1 -0
- package/package.json +315 -4
|
@@ -0,0 +1,234 @@
|
|
|
1
|
+
import { CapabilityError, DefaultReferenceTable } from '@vibesdotdev/kernel';
|
|
2
|
+
import { dispatchRequest, RPC_ERROR, rpcError } from '@vibesdotdev/kernel-rpc';
|
|
3
|
+
import { createFunctionCallbacks } from "../../../core/protocol/references/function-callbacks.js";
|
|
4
|
+
import { attempt } from "../../../core/protocol/lifecycle/attempt.js";
|
|
5
|
+
import { BindingCloses, LegFailures } from "../../../core/protocol/lifecycle/binding-close.js";
|
|
6
|
+
import { recordRootAdvertisement } from "../../../core/protocol/references/advertisement.js";
|
|
7
|
+
import { CHANNEL_ID_IN_USE, ChannelIdClaims } from "../../../core/protocol/references/channel-ids.js";
|
|
8
|
+
import { HTTP_BEARER_IDENTITY_SOURCE } from "./http-listen-session.js";
|
|
9
|
+
export class HttpBindings {
|
|
10
|
+
target;
|
|
11
|
+
connectionId;
|
|
12
|
+
wireDates;
|
|
13
|
+
reverseCalls;
|
|
14
|
+
table = new DefaultReferenceTable('owner');
|
|
15
|
+
rootRef;
|
|
16
|
+
remotePeer;
|
|
17
|
+
/** Stream channels keyed by the consumer-minted channelId. */
|
|
18
|
+
channels = new Map();
|
|
19
|
+
channelClaims = new ChannelIdClaims(this.channels);
|
|
20
|
+
/** Every binding close this connection started; failures kept typed until reported. */
|
|
21
|
+
closes = new BindingCloses();
|
|
22
|
+
/** What became of each channel no longer live: the owner ended it, or its binding close (typed failure or `null`). */
|
|
23
|
+
settled = new Map();
|
|
24
|
+
/** The connection's close outcome, once it began closing (never rejects). */
|
|
25
|
+
closing = null;
|
|
26
|
+
closedFlag = false;
|
|
27
|
+
connection = new AbortController();
|
|
28
|
+
received;
|
|
29
|
+
callbacks;
|
|
30
|
+
reverseWrite;
|
|
31
|
+
reverseEnd;
|
|
32
|
+
/** @param auth the registry entry the connection's bearer resolved to, if any. */
|
|
33
|
+
constructor(target, connectionId = crypto.randomUUID(), auth,
|
|
34
|
+
/** A verified local attestation's identity (RC08); it takes precedence over `auth.caller`. */
|
|
35
|
+
attested,
|
|
36
|
+
/** Both peers explicitly admitted Date metadata before session allocation. */
|
|
37
|
+
wireDates = false, reverseCalls = false) {
|
|
38
|
+
this.target = target;
|
|
39
|
+
this.connectionId = connectionId;
|
|
40
|
+
this.wireDates = wireDates;
|
|
41
|
+
this.reverseCalls = reverseCalls;
|
|
42
|
+
this.received = new LegFailures(connectionId);
|
|
43
|
+
this.rootRef = this.table.retain(target.root, 'object').id;
|
|
44
|
+
recordRootAdvertisement(this.table, this.rootRef, target.rootMethods);
|
|
45
|
+
const verified = attested ?? (auth?.caller ? { source: HTTP_BEARER_IDENTITY_SOURCE, caller: auth.caller } : undefined);
|
|
46
|
+
const peer = { runtimeId: auth?.label ?? connectionId, transport: 'http', connectionId };
|
|
47
|
+
this.remotePeer = verified ? { ...peer, verified } : peer;
|
|
48
|
+
if (reverseCalls && target.callbacks) {
|
|
49
|
+
this.callbacks = createFunctionCallbacks(this.table, {
|
|
50
|
+
lifecycle: target.callbacks.lifecycle,
|
|
51
|
+
deadlineMs: target.callbacks.deadlineMs ?? 15_000,
|
|
52
|
+
maxRefs: target.callbacks.maxRefs ?? 64
|
|
53
|
+
}, request => {
|
|
54
|
+
if (!this.reverseWrite)
|
|
55
|
+
throw rpcError(RPC_ERROR.NO_REVERSE_CHANNEL, 'The callback delivery leg is not attached.');
|
|
56
|
+
this.reverseWrite(request);
|
|
57
|
+
}, () => this.closedFlag);
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
/** A consumer-owned ref (callback) the OWNER would have to invoke back. */
|
|
61
|
+
proxyFactory = (id, kind, methods) => {
|
|
62
|
+
if (this.callbacks && this.reverseWrite && kind === 'function' && methods.includes('call')) {
|
|
63
|
+
return this.callbacks.callbackFor(id);
|
|
64
|
+
}
|
|
65
|
+
throw rpcError(RPC_ERROR.NO_REVERSE_CHANNEL, `Ref arg '${id}' cannot be decoded: the http transport has no owner→consumer reverse leg`);
|
|
66
|
+
};
|
|
67
|
+
get reverseAttached() { return this.reverseWrite !== undefined; }
|
|
68
|
+
attachReverse(write, end) {
|
|
69
|
+
if (this.closedFlag || !this.callbacks || this.reverseWrite)
|
|
70
|
+
return false;
|
|
71
|
+
this.reverseWrite = write;
|
|
72
|
+
this.reverseEnd = end;
|
|
73
|
+
return true;
|
|
74
|
+
}
|
|
75
|
+
answerReverse(response) {
|
|
76
|
+
const answer = this.callbacks?.callbackAnswers.get(response.id);
|
|
77
|
+
if (!answer)
|
|
78
|
+
return false;
|
|
79
|
+
this.callbacks?.callbackAnswers.delete(response.id);
|
|
80
|
+
answer(response);
|
|
81
|
+
return true;
|
|
82
|
+
}
|
|
83
|
+
closeReverse() {
|
|
84
|
+
this.connection.abort(new CapabilityError('The RPC connection closed.', 'CANCELLED', {
|
|
85
|
+
reason: 'rpc-connection-closed', details: { connectionId: this.connectionId }
|
|
86
|
+
}));
|
|
87
|
+
for (const [id, answer] of this.callbacks?.callbackAnswers ?? []) {
|
|
88
|
+
answer({ id, error: rpcError(RPC_ERROR.DISCONNECTED, 'The HTTP connection closed.') });
|
|
89
|
+
}
|
|
90
|
+
this.callbacks?.callbackAnswers.clear();
|
|
91
|
+
this.reverseWrite = undefined;
|
|
92
|
+
this.reverseEnd?.();
|
|
93
|
+
this.reverseEnd = undefined;
|
|
94
|
+
}
|
|
95
|
+
/** Open a stream channel for a `stream` request that arrived as the SSE GET. */
|
|
96
|
+
async openChannel(channelId, ref, channel) {
|
|
97
|
+
if (this.closedFlag)
|
|
98
|
+
return { ok: false, code: RPC_ERROR.DISCONNECTED };
|
|
99
|
+
if (!this.channelClaims.claim(channelId))
|
|
100
|
+
return { ok: false, code: RPC_ERROR.CHANNEL_IN_USE, reason: CHANNEL_ID_IN_USE };
|
|
101
|
+
try {
|
|
102
|
+
return await this.openClaimedChannel(channelId, ref, channel);
|
|
103
|
+
}
|
|
104
|
+
finally {
|
|
105
|
+
this.channelClaims.release(channelId);
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
async openClaimedChannel(channelId, ref, channel) {
|
|
109
|
+
const { response, binding } = await dispatchRequest({ verb: 'stream', id: channelId, ref, channel }, {
|
|
110
|
+
table: this.table,
|
|
111
|
+
pipeline: this.target.pipeline,
|
|
112
|
+
remotePeer: this.remotePeer,
|
|
113
|
+
decodeArgs: () => [],
|
|
114
|
+
classifyResult: this.target.classifyResult,
|
|
115
|
+
bindChannel: this.target.bindChannel,
|
|
116
|
+
kindOf: this.target.kindOf ?? (() => 'runtime/rpc')
|
|
117
|
+
});
|
|
118
|
+
if (response.error || !binding) {
|
|
119
|
+
// A refused binding (credit-governed, no stream credits here) is closed, its failure kept.
|
|
120
|
+
if (binding)
|
|
121
|
+
this.closes.keep(binding, channelId);
|
|
122
|
+
return { ok: false, code: response.error?.code ?? RPC_ERROR.NO_CHANNEL };
|
|
123
|
+
}
|
|
124
|
+
// The connection closed while the binding was being made: close it (kept for close()) and refuse the channel.
|
|
125
|
+
if (this.closedFlag) {
|
|
126
|
+
this.closes.keep(binding, channelId);
|
|
127
|
+
return { ok: false, code: RPC_ERROR.DISCONNECTED };
|
|
128
|
+
}
|
|
129
|
+
// Subscribe owner→consumer bytes. Until the SSE GET attaches a writer, frames
|
|
130
|
+
// buffer in `pending` so the consumer never drops the session's first bytes.
|
|
131
|
+
const channelEntry = {
|
|
132
|
+
binding,
|
|
133
|
+
unsub: () => { },
|
|
134
|
+
pending: [],
|
|
135
|
+
write: null,
|
|
136
|
+
end: null,
|
|
137
|
+
endedEarly: false
|
|
138
|
+
};
|
|
139
|
+
const unsub = binding.onData((data) => {
|
|
140
|
+
if (channelEntry.write)
|
|
141
|
+
channelEntry.write(data);
|
|
142
|
+
else
|
|
143
|
+
channelEntry.pending.push(data);
|
|
144
|
+
});
|
|
145
|
+
channelEntry.unsub = unsub;
|
|
146
|
+
this.channels.set(channelId, channelEntry);
|
|
147
|
+
// The owner's end follows its last bytes: sent now on a live SSE leg, or
|
|
148
|
+
// after the buffered bytes when the leg attaches.
|
|
149
|
+
binding.onEnd?.(() => {
|
|
150
|
+
if (channelEntry.end)
|
|
151
|
+
this.endChannel(channelId);
|
|
152
|
+
else
|
|
153
|
+
channelEntry.endedEarly = true;
|
|
154
|
+
});
|
|
155
|
+
return { ok: true };
|
|
156
|
+
}
|
|
157
|
+
/** Attach the SSE writer for a channel: flushes whatever buffered before the SSE GET arrived, then routes every owner→consumer frame straight to the SSE leg. */
|
|
158
|
+
attachSse(channelId, write, end) {
|
|
159
|
+
const channel = this.channels.get(channelId);
|
|
160
|
+
if (!channel)
|
|
161
|
+
return;
|
|
162
|
+
channel.write = write;
|
|
163
|
+
channel.end = end;
|
|
164
|
+
// Drain frames captured before the writer attached, in order.
|
|
165
|
+
for (const frame of channel.pending.splice(0))
|
|
166
|
+
write(frame);
|
|
167
|
+
if (channel.endedEarly)
|
|
168
|
+
this.endChannel(channelId);
|
|
169
|
+
}
|
|
170
|
+
/** The owner ended the channel: its CLOSE frame follows its last bytes, and the owner is not torn down. */
|
|
171
|
+
endChannel(channelId) {
|
|
172
|
+
const channel = this.channels.get(channelId);
|
|
173
|
+
if (!channel)
|
|
174
|
+
return;
|
|
175
|
+
this.channels.delete(channelId);
|
|
176
|
+
this.settled.set(channelId, { ended: true });
|
|
177
|
+
this.unsubscribe(channelId, channel);
|
|
178
|
+
channel.end?.();
|
|
179
|
+
}
|
|
180
|
+
/** Consumer→owner bytes for a channel (PTY stdin). */
|
|
181
|
+
writeChannel(channelId, data) {
|
|
182
|
+
const channel = this.channels.get(channelId);
|
|
183
|
+
if (channel && data.length > 0)
|
|
184
|
+
channel.binding.write(data);
|
|
185
|
+
}
|
|
186
|
+
/** Forget a channel and stop its bytes; the caller closes its binding. */
|
|
187
|
+
detachChannel(channelId) {
|
|
188
|
+
const channel = this.channels.get(channelId);
|
|
189
|
+
if (!channel)
|
|
190
|
+
return undefined;
|
|
191
|
+
this.channels.delete(channelId);
|
|
192
|
+
this.unsubscribe(channelId, channel);
|
|
193
|
+
return channel;
|
|
194
|
+
}
|
|
195
|
+
/** Keep a failure of this channel's SSE leg, typed, for the connection's close. */
|
|
196
|
+
keepChannelFailure(channelId, failure) {
|
|
197
|
+
this.closes.keepFailure(channelId, failure);
|
|
198
|
+
}
|
|
199
|
+
/** Stop a channel's bytes; a binding whose unsubscribe failed is kept typed for the connection's close. */
|
|
200
|
+
unsubscribe(channelId, channel) {
|
|
201
|
+
const released = attempt(() => channel.unsub());
|
|
202
|
+
if (!released.ok)
|
|
203
|
+
this.closes.keepFailure(channelId, released.failure);
|
|
204
|
+
}
|
|
205
|
+
/** Close a channel the consumer asked to close and answer what became of it, once that settled: `closed` when its binding closed (now, or earlier when its SSE leg dropped — joined, never answered before it settles), */
|
|
206
|
+
async closeChannel(channelId) {
|
|
207
|
+
const channel = this.detachChannel(channelId);
|
|
208
|
+
const prior = this.settled.get(channelId);
|
|
209
|
+
const outcome = channel
|
|
210
|
+
? this.closeBinding(channel, channelId)
|
|
211
|
+
: prior && !prior.ended
|
|
212
|
+
? prior.outcome
|
|
213
|
+
: undefined;
|
|
214
|
+
if (!outcome)
|
|
215
|
+
return prior?.ended ? 'already-ended' : 'unknown';
|
|
216
|
+
const failure = await outcome;
|
|
217
|
+
if (failure)
|
|
218
|
+
throw failure;
|
|
219
|
+
return 'closed';
|
|
220
|
+
}
|
|
221
|
+
/** The consumer dropped a channel's SSE leg: close it; a failure is kept for {@link close}. */
|
|
222
|
+
dropChannel(channelId) {
|
|
223
|
+
const channel = this.detachChannel(channelId);
|
|
224
|
+
if (channel)
|
|
225
|
+
void this.closeBinding(channel, channelId);
|
|
226
|
+
}
|
|
227
|
+
/** Start a binding's close and record its outcome for a later consumer close (and {@link close}). */
|
|
228
|
+
closeBinding(channel, channelId) {
|
|
229
|
+
const outcome = this.closes.close(channel.binding, channelId);
|
|
230
|
+
this.settled.set(channelId, { ended: false, outcome });
|
|
231
|
+
return outcome;
|
|
232
|
+
}
|
|
233
|
+
}
|
|
234
|
+
//# sourceMappingURL=http-bindings.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"http-bindings.js","sourceRoot":"","sources":["../../../../src/transports/http/listener/http-bindings.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,eAAe,EAAE,qBAAqB,EAAuB,MAAM,qBAAqB,CAAC;AAClG,OAAO,EAAE,eAAe,EAAE,SAAS,EAAE,QAAQ,EAAmE,MAAM,yBAAyB,CAAC;AAChJ,OAAO,EAAE,uBAAuB,EAAE,MAAM,yDAAyD,CAAC;AAElG,OAAO,EAAE,OAAO,EAAE,MAAM,6CAA6C,CAAC;AACtE,OAAO,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,mDAAmD,CAAC;AAC/F,OAAO,EAAE,uBAAuB,EAAE,MAAM,oDAAoD,CAAC;AAC7F,OAAO,EAAE,iBAAiB,EAAE,eAAe,EAAE,MAAM,kDAAkD,CAAC;AAGtG,OAAO,EAAE,2BAA2B,EAAE,MAAM,0BAA0B,CAAC;AAEvE,MAAM,OAAgB,YAAY;IA8Bb;IACV;IAKA;IACA;IApCQ,KAAK,GAAG,IAAI,qBAAqB,CAAC,OAAO,CAAC,CAAC;IAE3C,OAAO,CAAS;IAEhB,UAAU,CAAiB;IAE9C,8DAA8D;IAC1C,QAAQ,GAAG,IAAI,GAAG,EAAwB,CAAC;IAE5C,aAAa,GAAG,IAAI,eAAe,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;IAEtE,uFAAuF;IACnE,MAAM,GAAG,IAAI,aAAa,EAAE,CAAC;IAEjD,sHAAsH;IAClG,OAAO,GAAG,IAAI,GAAG,EAAwF,CAAC;IAE9H,6EAA6E;IAClE,OAAO,GAA2C,IAAI,CAAC;IAExD,UAAU,GAAG,KAAK,CAAC;IACV,UAAU,GAAG,IAAI,eAAe,EAAE,CAAC;IACnC,QAAQ,CAAc;IACtB,SAAS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;YAAE,KAAK,IAAI,CAAC,YAAY,CAAC,OAAO,EAAE,SAAS,CAAC,CAAC;IACzD,CAAC;IAEF,qGAAqG;IAC1F,YAAY,CAAC,OAAqB,EAAE,SAAiB;QAC9D,MAAM,OAAO,GAAG,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,OAAO,CAAC,OAAO,EAAE,SAAS,CAAC,CAAC;QAC9D,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,SAAS,EAAE,EAAE,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,CAAC,CAAC;QACvD,OAAO,OAAO,CAAC;IAChB,CAAC;CACD"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { HttpBindings } from "./http-bindings.ts";
|
|
2
|
+
export type { HttpListenTarget } from "../../../schemas/contracts/transports/http/http-listen-session.ts";
|
|
3
|
+
/**
|
|
4
|
+
* One accepted http connection's owner-side handler — the http peer of unix's
|
|
5
|
+
* `SocketListenerSession`. It holds the per-connection owner reference table and
|
|
6
|
+
* the live stream channels, and it runs EVERY arriving request through the SAME
|
|
7
|
+
* {@link dispatchRequest} the unix transport uses.
|
|
8
|
+
*
|
|
9
|
+
* THE HARD SECURITY GATE (doc 11 §L5, acceptance #7/#8): an http-arrived `invoke`
|
|
10
|
+
* is dispatched through `dispatchRequest`, which wraps the target with L1's
|
|
11
|
+
* `InvokePipeline` (authz → friction) before applying the method. There is NO
|
|
12
|
+
* second code path: a remote peer with a valid connection token is still DENIED
|
|
13
|
+
* an out-of-policy command (e.g. `git push --force`) by friction, identically to
|
|
14
|
+
* a local invoke. Connection auth (the bearer) is checked at the listener BEFORE
|
|
15
|
+
* a request reaches this session; this session never re-implements a verb-level
|
|
16
|
+
* read/write split — that conflation is the bug the spec deletes.
|
|
17
|
+
*
|
|
18
|
+
* Per-connection state mirrors the socket session: a fresh `DefaultReferenceTable`
|
|
19
|
+
* (so two peers never collide on ref ids), and the live stream channels (torn
|
|
20
|
+
* down on disconnect — the no-leak guarantee, acceptance #3).
|
|
21
|
+
*/
|
|
22
|
+
import type { CapabilityError } from '@vibesdotdev/kernel';
|
|
23
|
+
import { type RpcRequest, type RpcResponse } from '@vibesdotdev/kernel-rpc';
|
|
24
|
+
/** The `VerifiedTransportIdentity.source` of a caller verified through a registered bearer. */
|
|
25
|
+
export declare const HTTP_BEARER_IDENTITY_SOURCE = "http-bearer";
|
|
26
|
+
export declare class HttpListenSession extends HttpBindings {
|
|
27
|
+
/** The root ref id the consumer targets (returned at the handshake). */
|
|
28
|
+
get root(): string;
|
|
29
|
+
/** Owner-side ref-table size — the leak assertion reads this. */
|
|
30
|
+
get tableSize(): number;
|
|
31
|
+
/** Handle a decoded `invoke`/`release` request. The SAME path the socket session runs. */
|
|
32
|
+
handleMessage(req: RpcRequest): Promise<RpcResponse>;
|
|
33
|
+
private dispatchMessage;
|
|
34
|
+
/**
|
|
35
|
+
* Tear down the connection: free every retained ref + stream channel (no leak),
|
|
36
|
+
* then wait for every binding close this connection started. Rejects with the
|
|
37
|
+
* typed close failures; the teardown itself is synchronous and complete first.
|
|
38
|
+
*/
|
|
39
|
+
close(): Promise<void>;
|
|
40
|
+
/** {@link close}, resolving to the typed failure instead of rejecting. */
|
|
41
|
+
shutdown(): Promise<CapabilityError | null>;
|
|
42
|
+
}
|
|
43
|
+
//# sourceMappingURL=http-listen-session.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"http-listen-session.d.ts","sourceRoot":"","sources":["../../../../src/transports/http/listener/http-listen-session.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAClD,YAAY,EAAE,gBAAgB,EAAE,MAAM,mEAAmE,CAAC;AAC1G;;;;;;;;;;;;;;;;;;GAkBG;AAEH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAE3D,OAAO,EAKP,KAAK,UAAU,EACf,KAAK,WAAW,EAEf,MAAM,yBAAyB,CAAC;AAUjC,+FAA+F;AAC/F,eAAO,MAAM,2BAA2B,gBAAgB,CAAC;AAEzD,qBAAa,iBAAkB,SAAQ,YAAY;IACnD,wEAAwE;IACvE,IAAI,IAAI,IAAI,MAAM,CAEjB;IAEF,iEAAiE;IAChE,IAAI,SAAS,IAAI,MAAM,CAEtB;IAEF,0FAA0F;IACzF,aAAa,CAAC,GAAG,EAAE,UAAU,GAAG,OAAO,CAAC,WAAW,CAAC;YAYtC,eAAe;IAqD9B;;;;WAII;IACH,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;IAMvB,0EAA0E;IACzE,QAAQ,IAAI,OAAO,CAAC,eAAe,GAAG,IAAI,CAAC;CAsB3C"}
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
import { HttpBindings } from "./http-bindings.js";
|
|
2
|
+
import { isCapabilityError } from '@vibesdotdev/kernel';
|
|
3
|
+
import { decodeValue, dispatchRequest, RPC_ERROR, rpcError } from '@vibesdotdev/kernel-rpc';
|
|
4
|
+
import { attempt, attemptAsync, rethrow, settled } from "../../../core/protocol/lifecycle/attempt.js";
|
|
5
|
+
import { jsonResponse } from "../../../core/protocol/wire/json-wire.js";
|
|
6
|
+
import { RpcErrorSchema } from "../../../core/protocol/wire/schemas.js";
|
|
7
|
+
import { toRpcError } from "../../../core/protocol/wire/verbs.js";
|
|
8
|
+
import { snapshotInline } from "../../../core/protocol/wire/wire-value.js";
|
|
9
|
+
import { isFunction } from "../../../core/protocol/wire/value-kinds.js";
|
|
10
|
+
import { connectionCloseFailure } from "../../../core/protocol/lifecycle/binding-close.js";
|
|
11
|
+
import { redactStackTraces } from "../auth/redact.js";
|
|
12
|
+
/** The `VerifiedTransportIdentity.source` of a caller verified through a registered bearer. */
|
|
13
|
+
export const HTTP_BEARER_IDENTITY_SOURCE = 'http-bearer';
|
|
14
|
+
export class HttpListenSession extends HttpBindings {
|
|
15
|
+
/** The root ref id the consumer targets (returned at the handshake). */
|
|
16
|
+
get root() {
|
|
17
|
+
return this.rootRef;
|
|
18
|
+
}
|
|
19
|
+
/** Owner-side ref-table size — the leak assertion reads this. */
|
|
20
|
+
get tableSize() {
|
|
21
|
+
return this.table.size;
|
|
22
|
+
}
|
|
23
|
+
/** Handle a decoded `invoke`/`release` request. The SAME path the socket session runs. */
|
|
24
|
+
handleMessage(req) {
|
|
25
|
+
if (this.closedFlag)
|
|
26
|
+
return Promise.resolve({ id: req.id, error: rpcError(RPC_ERROR.DISCONNECTED, 'connection closed') });
|
|
27
|
+
// Publish custody before invoking owner code, which may close synchronously.
|
|
28
|
+
const receiving = Promise.withResolvers();
|
|
29
|
+
this.received.track('receive', receiving.promise);
|
|
30
|
+
void settled(this.dispatchMessage(req)).then(handled => {
|
|
31
|
+
if (handled.ok)
|
|
32
|
+
receiving.resolve(handled.value);
|
|
33
|
+
else
|
|
34
|
+
receiving.reject(handled.failure);
|
|
35
|
+
});
|
|
36
|
+
return receiving.promise;
|
|
37
|
+
}
|
|
38
|
+
async dispatchMessage(req) {
|
|
39
|
+
if (this.closedFlag) {
|
|
40
|
+
return { id: req.id, error: rpcError(RPC_ERROR.DISCONNECTED, 'connection closed') };
|
|
41
|
+
}
|
|
42
|
+
// A function ref requires the negotiated, attached reverse leg. Refuse
|
|
43
|
+
// unsupported arguments before dispatch can perform any side effect.
|
|
44
|
+
if (req.verb === 'invoke') {
|
|
45
|
+
const refArg = req.args.find((a) => a.t === 'stream' || (a.t === 'ref' && (!this.reverseAttached || a.kind !== 'function')));
|
|
46
|
+
if (refArg) {
|
|
47
|
+
return {
|
|
48
|
+
id: req.id,
|
|
49
|
+
error: rpcError(RPC_ERROR.NO_REVERSE_CHANNEL, `Method '${req.method}' was passed a ${refArg.t === 'ref' ? 'callback/ref' : 'stream'} argument, ` +
|
|
50
|
+
`but the http transport has no owner→consumer reverse leg to invoke it back on. ` +
|
|
51
|
+
`Use a duplex transport (unix/tcp) for callback args, or a stream channel for byte flows.`)
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
const dispatch = () => dispatchRequest(req, {
|
|
56
|
+
table: this.table,
|
|
57
|
+
pipeline: this.target.pipeline,
|
|
58
|
+
remotePeer: this.remotePeer,
|
|
59
|
+
decodeArgs: (wire) => wire.map((w) => decodeValue(w, this.proxyFactory)),
|
|
60
|
+
classifyResult: value => this.callbacks && isFunction(value)
|
|
61
|
+
? this.callbacks.classifyCallbackResult(value) : this.target.classifyResult(value),
|
|
62
|
+
bindChannel: this.target.bindChannel,
|
|
63
|
+
kindOf: this.target.kindOf ?? (() => 'runtime/rpc')
|
|
64
|
+
});
|
|
65
|
+
const { response } = await (this.target.runInvocation
|
|
66
|
+
? this.target.runInvocation(dispatch, { id: this.connectionId, signal: this.connection.signal })
|
|
67
|
+
: dispatch());
|
|
68
|
+
if (!response.error)
|
|
69
|
+
return jsonResponse(response, this.wireDates);
|
|
70
|
+
// Snapshot debug responses too: the error envelope has the same inline boundary.
|
|
71
|
+
const redacted = attempt(() => RpcErrorSchema.safeParse(redactStackTraces(snapshotInline(response.error), { debug: this.target.debug ?? false })));
|
|
72
|
+
if (!redacted.ok) {
|
|
73
|
+
// A non-carriable error envelope is refused with its fixed diagnostic; any other failure is surfaced.
|
|
74
|
+
const failure = redacted.failure;
|
|
75
|
+
if (isCapabilityError(failure) && (failure.reason === 'rpc-value-unserializable' || failure.reason === 'rpc-cancellation-unsupported'))
|
|
76
|
+
return { id: response.id, error: toRpcError(failure) };
|
|
77
|
+
return rethrow(failure);
|
|
78
|
+
}
|
|
79
|
+
const error = redacted.value;
|
|
80
|
+
return error.success ? { id: response.id, error: error.data } : {
|
|
81
|
+
id: response.id,
|
|
82
|
+
error: rpcError('INVALID_INPUT', 'Invalid RPC error.', undefined, 'rpc-error-invalid')
|
|
83
|
+
};
|
|
84
|
+
}
|
|
85
|
+
/**
|
|
86
|
+
* Tear down the connection: free every retained ref + stream channel (no leak),
|
|
87
|
+
* then wait for every binding close this connection started. Rejects with the
|
|
88
|
+
* typed close failures; the teardown itself is synchronous and complete first.
|
|
89
|
+
*/
|
|
90
|
+
close() {
|
|
91
|
+
return this.shutdown().then((failure) => {
|
|
92
|
+
if (failure)
|
|
93
|
+
throw failure;
|
|
94
|
+
});
|
|
95
|
+
}
|
|
96
|
+
/** {@link close}, resolving to the typed failure instead of rejecting. */
|
|
97
|
+
shutdown() {
|
|
98
|
+
if (this.closing)
|
|
99
|
+
return this.closing;
|
|
100
|
+
const outcome = Promise.withResolvers();
|
|
101
|
+
this.closing = outcome.promise;
|
|
102
|
+
this.closedFlag = true;
|
|
103
|
+
this.closeReverse();
|
|
104
|
+
for (const channelId of this.channels.keys())
|
|
105
|
+
this.dropChannel(channelId);
|
|
106
|
+
// Hard-disconnect teardown: clear the WHOLE table — the root AND every
|
|
107
|
+
// entry the consumer never got to `release` (returned sessions/handles) —
|
|
108
|
+
// so nothing the connection retained leaks past it (acceptance #3).
|
|
109
|
+
this.table.seal();
|
|
110
|
+
void (async () => {
|
|
111
|
+
const receiveFailure = await this.received.settle();
|
|
112
|
+
const references = await attemptAsync(() => this.table.drain());
|
|
113
|
+
if (!references.ok)
|
|
114
|
+
this.closes.keepError(connectionCloseFailure(this.connectionId, references.failure));
|
|
115
|
+
const closeFailure = await this.closes.settle();
|
|
116
|
+
outcome.resolve(receiveFailure && closeFailure
|
|
117
|
+
? connectionCloseFailure(this.connectionId, new AggregateError([receiveFailure, closeFailure], 'The receive operation and connection cleanup failed.'))
|
|
118
|
+
: receiveFailure ?? closeFailure);
|
|
119
|
+
})();
|
|
120
|
+
return this.closing;
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
//# sourceMappingURL=http-listen-session.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"http-listen-session.js","sourceRoot":"","sources":["../../../../src/transports/http/listener/http-listen-session.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAuBlD,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,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AAI,CAAC,UAAU,GAAG,IAAI,CAAC;QACvB,IAAI,CAAC,YAAY,EAAE,CAAC;QACpB,KAAK,MAAM,SAAS,IAAI,IAAI,CAAC,QAAQ,CAAC,IAAI,EAAE;YAAE,IAAI,CAAC,WAAW,CAAC,SAAS,CAAC,CAAC;QAC1E,uEAAuE;QACvE,0EAA0E;QAC1E,oEAAoE;QACpE,IAAI,CAAC,KAAK,CAAC,IAAI,EAAE,CAAC;QAClB,KAAK,CAAC,KAAK,IAAI,EAAE;YAChB,MAAM,cAAc,GAAG,MAAM,IAAI,CAAC,QAAQ,CAAC,MAAM,EAAE,CAAC;YACpD,MAAM,UAAU,GAAG,MAAM,YAAY,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,KAAK,CAAC,KAAK,EAAE,CAAC,CAAC;YAChE,IAAI,CAAC,UAAU,CAAC,EAAE;gBAAE,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,sBAAsB,CAAC,IAAI,CAAC,YAAY,EAAE,UAAU,CAAC,OAAO,CAAC,CAAC,CAAC;YACzG,MAAM,YAAY,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC;YAChD,OAAO,CAAC,OAAO,CAAC,cAAc,IAAI,YAAY;gBAC7C,CAAC,CAAC,sBAAsB,CAAC,IAAI,CAAC,YAAY,EAAE,IAAI,cAAc,CAAC,CAAC,cAAc,EAAE,YAAY,CAAC,EAAE,sDAAsD,CAAC,CAAC;gBACvJ,CAAC,CAAC,cAAc,IAAI,YAAY,CAAC,CAAC;QACpC,CAAC,CAAC,EAAE,CAAC;QACL,OAAO,IAAI,CAAC,OAAO,CAAC;IACrB,CAAC;CACD"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { HttpListenBindOptions } from "../../../schemas/contracts/transports/http/http-listen.ts";
|
|
2
|
+
export { ListenHttpInput } from "../../../schemas/contracts/transports/http/http-listen.ts";
|
|
3
|
+
export type { HttpListenBindOptions } from "../../../schemas/contracts/transports/http/http-listen.ts";
|
|
4
|
+
import { type HttpListener, type HttpListenOptions } from './http-transport.impl.ts';
|
|
5
|
+
/** `listenHttp` input, read once (protocol/caller-input.ts). */
|
|
6
|
+
/** Bind a standalone RPC listener; the selected host owns its native transport. */
|
|
7
|
+
export declare function listenHttp(portInput: number, targetInput: HttpListenOptions, optionsInput: HttpListenBindOptions): Promise<HttpListener>;
|
|
8
|
+
//# sourceMappingURL=http-listen.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"http-listen.d.ts","sourceRoot":"","sources":["../../../../src/transports/http/listener/http-listen.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,2DAA2D,CAAC;AAEvG,OAAO,EAAE,eAAe,EAAE,MAAM,2DAA2D,CAAC;AAC5F,YAAY,EAAE,qBAAqB,EAAE,MAAM,2DAA2D,CAAC;AAQvG,OAAO,EAAkB,KAAK,YAAY,EAAE,KAAK,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAErG,gEAAgE;AAEhE,mFAAmF;AACnF,wBAAsB,UAAU,CAC/B,SAAS,EAAE,MAAM,EACjB,WAAW,EAAE,iBAAiB,EAC9B,YAAY,EAAE,qBAAqB,GACjC,OAAO,CAAC,YAAY,CAAC,CA6CvB"}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { ListenHttpInput } from "../../../schemas/contracts/transports/http/http-listen.js";
|
|
2
|
+
export { ListenHttpInput } from "../../../schemas/contracts/transports/http/http-listen.js";
|
|
3
|
+
/** Standalone HTTP binding through the supplied runtime's selected host. */
|
|
4
|
+
import { getRuntimeHttpListener } from '@vibesdotdev/kernel';
|
|
5
|
+
import { settled } from "../../../core/protocol/lifecycle/attempt.js";
|
|
6
|
+
import { ownedByLifecycle } from "../../../core/protocol/lifecycle/lifecycle-owned.js";
|
|
7
|
+
import { readInput } from "../../../core/protocol/references/caller-input.js";
|
|
8
|
+
import { HOST_FAILURES } from "../../../core/protocol/transport/failure-describer.js";
|
|
9
|
+
import { loadRuntimeRpcConfig } from "../../../daemon/hosting/config/load.js";
|
|
10
|
+
import { RpcHttpHandler } from "./http-transport.impl.js";
|
|
11
|
+
/** `listenHttp` input, read once (protocol/caller-input.ts). */
|
|
12
|
+
/** Bind a standalone RPC listener; the selected host owns its native transport. */
|
|
13
|
+
export async function listenHttp(portInput, targetInput, optionsInput) {
|
|
14
|
+
const { port, target, options } = readInput('listenHttp', ListenHttpInput, { port: portInput, target: targetInput, options: optionsInput });
|
|
15
|
+
const host = options.host ?? (await loadRuntimeRpcConfig(options.runtime)).httpHost;
|
|
16
|
+
const runtime = options.runtime;
|
|
17
|
+
const handler = new RpcHttpHandler({
|
|
18
|
+
...target,
|
|
19
|
+
reportFailure: target.reportFailure ?? ((failure) => runtime.diagnostics.error('HTTP RPC route failed', { scope: 'runtime-rpc', plugin: 'listen-http', error: failure }))
|
|
20
|
+
});
|
|
21
|
+
const selected = await getRuntimeHttpListener(options.runtime);
|
|
22
|
+
let stopped;
|
|
23
|
+
const binding = await selected.listen({
|
|
24
|
+
port,
|
|
25
|
+
hostname: host,
|
|
26
|
+
// A stopping listener admits nothing more: a request that still arrives is refused typed, never served.
|
|
27
|
+
fetch: async (request) => stopped
|
|
28
|
+
? Response.json({ error: { code: 'RPC_DISCONNECTED', reason: 'rpc-listener-stopped' } }, { status: 503 })
|
|
29
|
+
: await handler.handle(request) ?? new Response('not found', { status: 404 })
|
|
30
|
+
});
|
|
31
|
+
let unown = () => { };
|
|
32
|
+
const listener = {
|
|
33
|
+
origin: binding.origin,
|
|
34
|
+
port: binding.port,
|
|
35
|
+
handler,
|
|
36
|
+
stop() {
|
|
37
|
+
unown();
|
|
38
|
+
stopped ??= Promise.resolve().then(async () => {
|
|
39
|
+
// Native admission and every RPC binding end even when either cleanup refuses.
|
|
40
|
+
const outcomes = await Promise.allSettled([
|
|
41
|
+
// The native host's stop refusal is a host error: kept described (typed, its text never), like every other.
|
|
42
|
+
settled(Promise.resolve().then(() => binding.stop())).then((stoppedNative) => {
|
|
43
|
+
if (!stoppedNative.ok)
|
|
44
|
+
throw HOST_FAILURES.describe(stoppedNative.failure);
|
|
45
|
+
}),
|
|
46
|
+
Promise.resolve().then(() => handler.closeAll())
|
|
47
|
+
]);
|
|
48
|
+
const failures = outcomes.flatMap(outcome => outcome.status === 'rejected' ? [outcome.reason] : []);
|
|
49
|
+
if (failures.length === 1)
|
|
50
|
+
throw failures[0];
|
|
51
|
+
if (failures.length > 1)
|
|
52
|
+
throw new AggregateError(failures, 'The HTTP listener did not close cleanly.');
|
|
53
|
+
});
|
|
54
|
+
return stopped;
|
|
55
|
+
}
|
|
56
|
+
};
|
|
57
|
+
// Owned by the runtime it listens for: its disposal stops admission and closes every session and binding; the
|
|
58
|
+
// outcome is kept for the holder's stop().
|
|
59
|
+
unown = ownedByLifecycle(runtime.lifecycle.signal, () => void settled(listener.stop()));
|
|
60
|
+
return listener;
|
|
61
|
+
}
|
|
62
|
+
//# sourceMappingURL=http-listen.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"http-listen.js","sourceRoot":"","sources":["../../../../src/transports/http/listener/http-listen.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,2DAA2D,CAAC;AAC5F,OAAO,EAAE,eAAe,EAAE,MAAM,2DAA2D,CAAC;AAE5F,4EAA4E;AAC5E,OAAO,EAAE,sBAAsB,EAAE,MAAM,qBAAqB,CAAC;AAC7D,OAAO,EAAE,OAAO,EAAE,MAAM,6CAA6C,CAAC;AACtE,OAAO,EAAE,gBAAgB,EAAE,MAAM,qDAAqD,CAAC;AACvF,OAAO,EAAE,SAAS,EAAE,MAAM,mDAAmD,CAAC;AAC9E,OAAO,EAAE,aAAa,EAAE,MAAM,uDAAuD,CAAC;AACtF,OAAO,EAAE,oBAAoB,EAAE,MAAM,wCAAwC,CAAC;AAC9E,OAAO,EAAE,cAAc,EAA6C,MAAM,0BAA0B,CA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AAI,cAAc,CAAC,QAAQ,EAAE,0CAA0C,CAAC,CAAC;YACzG,CAAC,CAAC,CAAC;YACH,OAAO,OAAO,CAAC;QAChB,CAAC;KACD,CAAC;IACF,8GAA8G;IAC9G,2CAA2C;IAC3C,KAAK,GAAG,gBAAgB,CAAC,OAAO,CAAC,SAAS,CAAC,MAAM,EAAE,GAAG,EAAE,CAAC,KAAK,OAAO,CAAC,QAAQ,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC;IACxF,OAAO,QAAQ,CAAC;AACjB,CAAC"}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { CapabilityError, type CaughtFailure } from '@vibesdotdev/kernel';
|
|
2
|
+
import type * as z from 'zod/v4';
|
|
3
|
+
import { ConnectionCloses } from '../../../core/protocol/lifecycle/binding-close.ts';
|
|
4
|
+
import { type RpcChannelCloseAck } from '../../../core/protocol/lifecycle/channel-close.ts';
|
|
5
|
+
import type { HttpListenOptions } from "../../../schemas/contracts/transports/http/http-transport.impl.ts";
|
|
6
|
+
import { HttpListenSession } from './http-listen-session.ts';
|
|
7
|
+
export declare abstract class HttpSessions {
|
|
8
|
+
protected readonly options: HttpListenOptions;
|
|
9
|
+
protected readonly sessions: Map<string, HttpListenSession>;
|
|
10
|
+
protected readonly sessionTokens: Map<string, string | null>;
|
|
11
|
+
/**
|
|
12
|
+
* What each session counts against for the session cap: the bearer, only when the registry or the attestation
|
|
13
|
+
* verifier accepted it; otherwise `null`, the anonymous caller. Unverified bearer strings are free to mint, so
|
|
14
|
+
* they never open a cap of their own.
|
|
15
|
+
*/
|
|
16
|
+
protected readonly sessionCapKeys: Map<string, string | null>;
|
|
17
|
+
/** Connections the consumer disconnected: their binding close failures, kept for {@link closeAll}. */
|
|
18
|
+
protected readonly closedConnections: ConnectionCloses;
|
|
19
|
+
constructor(options: HttpListenOptions);
|
|
20
|
+
/** Active connection count (diagnostic + teardown). */
|
|
21
|
+
get connectionCount(): number;
|
|
22
|
+
/** A session by id (tests assert the owner ref-table size through it). */
|
|
23
|
+
session(connectionId: string): HttpListenSession | undefined;
|
|
24
|
+
/** Live connection ids (diagnostic + tests). */
|
|
25
|
+
liveConnectionIds(): string[];
|
|
26
|
+
/**
|
|
27
|
+
* Tear down every connection (free all refs + channels — no leak), then wait
|
|
28
|
+
* for their binding closes. Rejects with the typed close failures; every
|
|
29
|
+
* connection is torn down first either way.
|
|
30
|
+
*/
|
|
31
|
+
closeAll(): Promise<void>;
|
|
32
|
+
/** A close failure answers the request that asked for the close, typed. */
|
|
33
|
+
protected closeFailed(failure: CaughtFailure): Response;
|
|
34
|
+
protected connectionId(req: Request): string | null;
|
|
35
|
+
protected onConnect(req: Request): Response;
|
|
36
|
+
protected onDisconnect(req: Request): Promise<Response>;
|
|
37
|
+
/** A transport leg can end without a final disconnect POST. Release its session capacity too. */
|
|
38
|
+
protected dropSession(session: HttpListenSession): Promise<CapabilityError | null>;
|
|
39
|
+
protected invalidRequest(): Response;
|
|
40
|
+
/** Parse the bounded body using the route's owning schema. */
|
|
41
|
+
protected readBody<T>(req: Request, schema: z.ZodType<T>): Promise<T | Response>;
|
|
42
|
+
protected closeAnswer(ack: RpcChannelCloseAck): Response;
|
|
43
|
+
protected sessionFor(req: Request): HttpListenSession | undefined;
|
|
44
|
+
protected noSession(): Response;
|
|
45
|
+
}
|
|
46
|
+
/** The reason a route failure is reported and answered with. */
|
|
47
|
+
export declare const RPC_ROUTE_FAILED = "rpc-route-failed";
|
|
48
|
+
/**
|
|
49
|
+
* How many live sessions one accepted bearer (one the token registry or the attestation verifier accepted; every
|
|
50
|
+
* other bearer, and none, is the anonymous caller) may hold on a handler. A handshake past
|
|
51
|
+
* it is answered 503 `UNAVAILABLE` `rpc-session-limit` and allocates nothing: a caller cannot make the owner keep an
|
|
52
|
+
* unbounded number of sessions it never disconnects.
|
|
53
|
+
*/
|
|
54
|
+
export declare const RPC_HTTP_MAX_SESSIONS_PER_BEARER = 1024;
|
|
55
|
+
export declare const RPC_SESSION_LIMIT = "rpc-session-limit";
|
|
56
|
+
export declare function routeFailed(path: string, cause: CaughtFailure): CapabilityError;
|
|
57
|
+
export declare function bearer(req: Request): string | null;
|
|
58
|
+
export declare function decodeBase64ToBytes(b64: string): Uint8Array;
|
|
59
|
+
//# sourceMappingURL=http-sessions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"http-sessions.d.ts","sourceRoot":"","sources":["../../../../src/transports/http/listener/http-sessions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,KAAK,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAG1E,OAAO,KAAK,KAAK,CAAC,MAAM,QAAQ,CAAC;AAEjC,OAAO,EAAE,gBAAgB,EAAE,MAAM,mDAAmD,CAAC;AACrF,OAAO,EAAE,KAAK,kBAAkB,EAAE,MAAM,mDAAmD,CAAC;AAG5F,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,mEAAmE,CAAC;AAG3G,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAE7D,8BAAsB,YAAY;IAetB,SAAS,CAAC,QAAQ,CAAC,OAAO,EAAE,iBAAiB;IAdzD,SAAS,CAAC,QAAQ,CAAC,QAAQ,iCAAwC;IAEnE,SAAS,CAAC,QAAQ,CAAC,aAAa,6BAAoC;IAEpE;;;;WAII;IACH,SAAS,CAAC,QAAQ,CAAC,cAAc,6BAAoC;IAEtE,sGAAsG;IACrG,SAAS,CAAC,QAAQ,CAAC,iBAAiB,mBAA0B;gBAEhC,OAAO,EAAE,iBAAiB;IAEzD,uDAAuD;IACtD,IAAI,eAAe,IAAI,MAAM,CAE5B;IAEF,0EAA0E;IACzE,OAAO,CAAC,YAAY,EAAE,MAAM,GAAG,iBAAiB,GAAG,SAAS;IAI7D,gDAAgD;IAC/C,iBAAiB,IAAI,MAAM,EAAE;IAI9B;;;;WAII;IACH,QAAQ,IAAI,OAAO,CAAC,IAAI,CAAC;IAQ1B,2EAA2E;IAC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