@vibesdotdev/kernel-rpc 0.0.0-stage → 1.0.0-rc.3
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 +95 -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 +69 -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 +238 -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 +900 -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 +79 -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 +194 -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 +55 -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,136 @@
|
|
|
1
|
+
import { CapabilityError } from '@vibesdotdev/kernel';
|
|
2
|
+
import { isString } from "../wire/value-kinds.js";
|
|
3
|
+
import { RPC_ERROR, throwRpcError, throwWireError } from "../wire/verbs.js";
|
|
4
|
+
export { RUNTIME_PROJECTION_ROOT_METHODS, RUNTIME_ROOT_METHODS, validateRootMethods } from "./root-methods.js";
|
|
5
|
+
export { RootMethodSchema } from "../../../schemas/contracts/protocol/references/ref-table.js";
|
|
6
|
+
/** Whether each live proxy has been disposed; read through {@link isDisposed}. */
|
|
7
|
+
const proxyDisposed = new WeakMap();
|
|
8
|
+
export /** Keys a proxy never exposes: awaiting or inspecting it must not reach the owner. */ const NEVER_REMOTE_KEYS = new Set(['then', 'catch', 'finally', 'constructor', 'toJSON']);
|
|
9
|
+
/**
|
|
10
|
+
* Build a consumer-side proxy for a `RefId` received on the wire.
|
|
11
|
+
*
|
|
12
|
+
* Every property access that yields a (declared) method returns a function that,
|
|
13
|
+
* when called, sends `invoke(refId, method, args)` and resolves to the decoded
|
|
14
|
+
* result. `Symbol.dispose` releases the ref locally (which drives the wire
|
|
15
|
+
* `release` verb via the L1 table's release sink). A `FinalizationRegistry`
|
|
16
|
+
* (owned by the L1 table) releases the ref if this proxy is GC'd undisposed.
|
|
17
|
+
*
|
|
18
|
+
* @param refId the far-side object id
|
|
19
|
+
* @param kind the L1 RefKind (object | function | stream)
|
|
20
|
+
* @param methods declared callable method names; only these reach the
|
|
21
|
+
* owner (an empty set exposes none).
|
|
22
|
+
* @param unlisted how an unlisted property reads: `absent` (a ref: undefined,
|
|
23
|
+
* like a local object) or `refused` (the root: a function that
|
|
24
|
+
* rejects typed `rpc-root-method-unlisted`, so a caller learns why).
|
|
25
|
+
* `then` and symbol keys are always absent.
|
|
26
|
+
* @param deps transport-supplied send/openStream/decode/table
|
|
27
|
+
* @param streamChannel when set, the ref is stream-capable on this channel
|
|
28
|
+
*/
|
|
29
|
+
export function makeRemoteProxy(refId, kind, methods, deps, streamChannel, unlisted = 'absent', channels = []) {
|
|
30
|
+
let disposed = false;
|
|
31
|
+
const methodSet = new Set(methods);
|
|
32
|
+
const releaseLocal = () => {
|
|
33
|
+
if (disposed)
|
|
34
|
+
return;
|
|
35
|
+
disposed = true;
|
|
36
|
+
// Tell the OWNER to drop the entry it retained for this proxy (the `release`
|
|
37
|
+
// verb). This proxy is not a local table entry — it is a handle to a far-side
|
|
38
|
+
// object — so we must reach across, not just delete locally.
|
|
39
|
+
deps.releaseRef(refId);
|
|
40
|
+
};
|
|
41
|
+
const invokeMethod = async (method, args) => {
|
|
42
|
+
if (disposed) {
|
|
43
|
+
throwRpcError(RPC_ERROR.DISCONNECTED, `Proxy for ref '${refId}' is disposed`);
|
|
44
|
+
}
|
|
45
|
+
const req = {
|
|
46
|
+
verb: 'invoke',
|
|
47
|
+
id: deps.nextId(),
|
|
48
|
+
targetRef: refId,
|
|
49
|
+
method,
|
|
50
|
+
// Args are encoded by the consumer's send (it owns the encoder so a
|
|
51
|
+
// callback arg is retained in the right table). We pass local values here.
|
|
52
|
+
args
|
|
53
|
+
};
|
|
54
|
+
const res = await deps.send(req);
|
|
55
|
+
if (res.error) {
|
|
56
|
+
throwWireError(res.error);
|
|
57
|
+
}
|
|
58
|
+
return deps.decode(res);
|
|
59
|
+
};
|
|
60
|
+
const openStream = (channel) => {
|
|
61
|
+
if (disposed) {
|
|
62
|
+
throwRpcError(RPC_ERROR.DISCONNECTED, `Proxy for ref '${refId}' is disposed`);
|
|
63
|
+
}
|
|
64
|
+
return deps.openStream(refId, channel);
|
|
65
|
+
};
|
|
66
|
+
// For a function ref, the proxy IS callable (a remote callback).
|
|
67
|
+
const target = kind === 'function'
|
|
68
|
+
? Object.assign(function () { }, { __refId: refId })
|
|
69
|
+
: { __refId: refId };
|
|
70
|
+
const handler = {
|
|
71
|
+
get(_t, prop) {
|
|
72
|
+
if (prop === '__refId')
|
|
73
|
+
return refId;
|
|
74
|
+
if (prop === Symbol.dispose)
|
|
75
|
+
return releaseLocal;
|
|
76
|
+
// Intrinsic, not advertised methods (Codex 12:08, limit 2). They are
|
|
77
|
+
// local handles or protocol verbs, never a remote method call:
|
|
78
|
+
// - `__refId` and `Symbol.dispose` read local state only;
|
|
79
|
+
// - `__openStream` sends the `stream` verb. It exists only on an
|
|
80
|
+
// object or stream ref; a function ref has no channels. The owner
|
|
81
|
+
// admits it only for a ref it advertised as such, and its
|
|
82
|
+
// `bindChannel` decides whether the named channel exists;
|
|
83
|
+
// - calling a function ref sends `invoke(…, 'call')` via `apply`
|
|
84
|
+
// below; only a function ref is callable, and the owner admits
|
|
85
|
+
// `call` only on a ref it advertised as a function.
|
|
86
|
+
if (prop === '__openStream') {
|
|
87
|
+
if (kind === 'function')
|
|
88
|
+
return undefined;
|
|
89
|
+
return (channel) => openStream(channel ?? streamChannel ?? 'default');
|
|
90
|
+
}
|
|
91
|
+
if (prop === '__channels')
|
|
92
|
+
return kind === 'function' ? [] : [...channels];
|
|
93
|
+
if (!isString(prop))
|
|
94
|
+
return undefined;
|
|
95
|
+
// Only listed methods reach the owner. A thenable key is never remote,
|
|
96
|
+
// so `await proxy` resolves locally instead of sending a call.
|
|
97
|
+
if (NEVER_REMOTE_KEYS.has(prop))
|
|
98
|
+
return undefined;
|
|
99
|
+
if (!methodSet.has(prop)) {
|
|
100
|
+
// A ref reads like a local object: the property is absent. The root
|
|
101
|
+
// refuses typed, so a call outside its contract says why.
|
|
102
|
+
if (unlisted === 'absent')
|
|
103
|
+
return undefined;
|
|
104
|
+
return () => Promise.reject(new CapabilityError(`The remote root does not serve '${prop}' (not in its method list).`, 'UNAVAILABLE', { reason: 'rpc-root-method-unlisted', retryable: false, details: { method: prop } }));
|
|
105
|
+
}
|
|
106
|
+
return (...args) => invokeMethod(prop, args);
|
|
107
|
+
},
|
|
108
|
+
has(t, prop) {
|
|
109
|
+
// `in` agrees with `get` (the runtime's invoke gate reads a member only
|
|
110
|
+
// after `prop in impl`): a key this proxy answers is present and every
|
|
111
|
+
// other key is absent, except a non-configurable own key of the target
|
|
112
|
+
// (a function ref's `prototype`), which the Proxy invariant keeps present.
|
|
113
|
+
return handler.get?.(t, prop, t) !== undefined || Object.getOwnPropertyDescriptor(t, prop)?.configurable === false;
|
|
114
|
+
},
|
|
115
|
+
apply(_t, _this, args) {
|
|
116
|
+
// A function ref invoked directly: call its canonical 'call' method.
|
|
117
|
+
return invokeMethod('call', args);
|
|
118
|
+
}
|
|
119
|
+
};
|
|
120
|
+
// SAFETY: the get trap above answers `__refId` and `Symbol.dispose` for every
|
|
121
|
+
// ref, and `__openStream` and `__channels` for an object or stream ref: exactly
|
|
122
|
+
// the members of RemoteProxy. The advertised methods are served by name and
|
|
123
|
+
// typed by whoever declared them.
|
|
124
|
+
const proxy = new Proxy(target, handler);
|
|
125
|
+
proxyDisposed.set(proxy, () => disposed);
|
|
126
|
+
return proxy;
|
|
127
|
+
}
|
|
128
|
+
/** Whether a proxy built by {@link makeRemoteProxy} has been disposed. */
|
|
129
|
+
export function isDisposed(proxy) {
|
|
130
|
+
return proxyDisposed.get(proxy)?.() ?? false;
|
|
131
|
+
}
|
|
132
|
+
/** Read the ref id off a proxy built by {@link makeRemoteProxy}. */
|
|
133
|
+
export function refIdOf(proxy) {
|
|
134
|
+
return proxy?.__refId;
|
|
135
|
+
}
|
|
136
|
+
//# sourceMappingURL=ref-table.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ref-table.js","sourceRoot":"","sources":["../../../../src/core/protocol/references/ref-table.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAGtD,OAAO,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAElD,OAAO,EAAE,SAAS,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,kB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EF,8EAA8E;IAC9E,gFAAgF;IAChF,4EAA4E;IAC5E,kCAAkC;IAClC,MAAM,KAAK,GAAG,IAAI,KAAK,CAAC,MAAM,EAAE,OAAO,CAAgB,CAAC;IACxD,aAAa,CAAC,GAAG,CAAC,KAAK,EAAE,GAAG,EAAE,CAAC,QAAQ,CAAC,CAAC;IACzC,OAAO,KAAK,CAAC;AACd,CAAC;AAED,0EAA0E;AAC1E,MAAM,UAAU,UAAU,CAAC,KAAkB;IAC5C,OAAO,aAAa,CAAC,GAAG,CAAC,KAAK,CAAC,EAAE,EAAE,IAAI,KAAK,CAAC;AAC9C,CAAC;AAED,oEAAoE;AACpE,MAAM,UAAU,OAAO,CAAC,KAA4C;IACnE,OAAO,KAAK,EAAE,OAAO,CAAC;AACvB,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The runtime root API (C19): the methods a runtime root serves and a
|
|
3
|
+
* consumer's root proxy exposes when the root it wires is the runtime's own
|
|
4
|
+
* (the runtime daemon's RPC root implements exactly these). It never holds
|
|
5
|
+
* `then` or any thenable or symbol key, so awaiting a root proxy never sends a
|
|
6
|
+
* call. A root of another shape (PM's, a worker's, a projection) declares its
|
|
7
|
+
* own list to `wireConsumer` through `ConsumerTransport.rootMethods`.
|
|
8
|
+
*/
|
|
9
|
+
export declare const RUNTIME_ROOT_METHODS: readonly ["query", "resolve", "read", "write", "invoke", "health", "doctor", "command"];
|
|
10
|
+
/** The runtime projection root's API (`RuntimeProjectionRoot`): its snapshot, then resolve. */
|
|
11
|
+
export declare const RUNTIME_PROJECTION_ROOT_METHODS: readonly ["snapshot", "resolve"];
|
|
12
|
+
/** A root method list, validated: string names only, never a thenable key. */
|
|
13
|
+
export declare function validateRootMethods(methods: readonly string[]): readonly string[];
|
|
14
|
+
//# sourceMappingURL=root-methods.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"root-methods.d.ts","sourceRoot":"","sources":["../../../../src/core/protocol/references/root-methods.ts"],"names":[],"mappings":"AAIA;;;;;;;GAOG;AACH,eAAO,MAAM,oBAAoB,yFASvB,CAAC;AAEX,+FAA+F;AAC/F,eAAO,MAAM,+BAA+B,kCAAmC,CAAC;AAEhF,8EAA8E;AAC9E,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,SAAS,MAAM,EAAE,GAAG,SAAS,MAAM,EAAE,CAWjF"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { CapabilityError } from '@vibesdotdev/kernel';
|
|
2
|
+
import { RootMethodSchema } from "../../../schemas/contracts/protocol/references/ref-table.js";
|
|
3
|
+
import { NEVER_REMOTE_KEYS } from "./ref-table.js";
|
|
4
|
+
/**
|
|
5
|
+
* The runtime root API (C19): the methods a runtime root serves and a
|
|
6
|
+
* consumer's root proxy exposes when the root it wires is the runtime's own
|
|
7
|
+
* (the runtime daemon's RPC root implements exactly these). It never holds
|
|
8
|
+
* `then` or any thenable or symbol key, so awaiting a root proxy never sends a
|
|
9
|
+
* call. A root of another shape (PM's, a worker's, a projection) declares its
|
|
10
|
+
* own list to `wireConsumer` through `ConsumerTransport.rootMethods`.
|
|
11
|
+
*/
|
|
12
|
+
export const RUNTIME_ROOT_METHODS = [
|
|
13
|
+
'query',
|
|
14
|
+
'resolve',
|
|
15
|
+
'read',
|
|
16
|
+
'write',
|
|
17
|
+
'invoke',
|
|
18
|
+
'health',
|
|
19
|
+
'doctor',
|
|
20
|
+
'command'
|
|
21
|
+
];
|
|
22
|
+
/** The runtime projection root's API (`RuntimeProjectionRoot`): its snapshot, then resolve. */
|
|
23
|
+
export const RUNTIME_PROJECTION_ROOT_METHODS = ['snapshot', 'resolve'];
|
|
24
|
+
/** A root method list, validated: string names only, never a thenable key. */
|
|
25
|
+
export function validateRootMethods(methods) {
|
|
26
|
+
for (const method of methods) {
|
|
27
|
+
if (!RootMethodSchema.safeParse(method).success || NEVER_REMOTE_KEYS.has(method)) {
|
|
28
|
+
throw new CapabilityError(`A root method list names '${String(method)}', which a remote root may not expose.`, 'INVALID_INPUT', { reason: 'rpc-root-methods-invalid', retryable: false, details: { method: String(method) } });
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
return methods;
|
|
32
|
+
}
|
|
33
|
+
//# sourceMappingURL=root-methods.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"root-methods.js","sourceRoot":"","sources":["../../../../src/core/protocol/references/root-methods.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AACtD,OAAO,EAAE,gBAAgB,EAAE,MAAM,6DAA6D,CAAC;AAC/F,OAAO,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAEnD;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAAG;IACnC,OAAO;IACP,SAAS;IACT,MAAM;IACN,OAAO;IACP,QAAQ;IACR,QAAQ;IACR,QAAQ;IACR,SAAS;CACA,CAAC;AAEX,+FAA+F;AAC/F,MAAM,CAAC,MAAM,+BAA+B,GAAG,CAAC,UAAU,EAAE,SAAS,CAAU,CAAC;AAEhF,8EAA8E;AAC9E,MAAM,UAAU,mBAAmB,CAAC,OAA0B;IAC7D,KAAK,MAAM,MAAM,IAAI,OAAO,EAAE,CAAC;QAC9B,IAAI,CAAC,gBAAgB,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC,OAAO,IAAI,iBAAiB,CAAC,GAAG,CAAC,MAAM,CAAC,EAAE,CAAC;YAClF,MAAM,IAAI,eAAe,CACxB,6BAA6B,MAAM,CAAC,MAAM,CAAC,wCAAwC,EACnF,eAAe,EACf,EAAE,MAAM,EAAE,0BAA0B,EAAE,SAAS,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE,MAAM,EAAE,MAAM,CAAC,MAAM,CAAC,EAAE,EAAE,CAC7F,CAAC;QACH,CAAC;IACF,CAAC;IACD,OAAO,OAAO,CAAC;AAChB,CAAC"}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import type { DescribedFailure, HostErrorFields } from "../../../schemas/contracts/protocol/failure-describer.ts";
|
|
2
|
+
export { HostErrorFieldsSchema, IdentifierSchema, ReasonSchema } from "../../../schemas/contracts/protocol/failure-describer.ts";
|
|
3
|
+
export type { DescribedFailure, HostErrorFields } from "../../../schemas/contracts/protocol/failure-describer.ts";
|
|
4
|
+
/**
|
|
5
|
+
* The one failure describer (class checklist 2 and 3). Every failure runtime-rpc keeps, reports, returns or ends a
|
|
6
|
+
* channel with (a fetch rejection, a body or stream read error, a `Headers` construction error, a handshake refusal,
|
|
7
|
+
* a server error body, a leg failure, a channel end's cause) passes through {@link FailureDescriber.describe} before
|
|
8
|
+
* it is kept or handed out. A described failure keeps only what is typed: the `code`, `reason`, retryability and
|
|
9
|
+
* `name`, this package's own message and details, and the described cause chain. A host error (a `TypeError` from
|
|
10
|
+
* `fetch`, a stream's read error, anything not typed by runtime-rpc or the kernel) keeps only its `name` and string
|
|
11
|
+
* `code`, never its message: hosts quote request URLs and header values in their messages. Every configured secret
|
|
12
|
+
* value (a relay `sessionToken`, a bearer or connection token, a caller header value) is removed from every text the
|
|
13
|
+
* described failure keeps, wherever it appears.
|
|
14
|
+
*/
|
|
15
|
+
import { type CaughtFailure } from '@vibesdotdev/kernel';
|
|
16
|
+
import { type RpcError } from '../wire/verbs.ts';
|
|
17
|
+
/** The reason a host error (one runtime-rpc did not type) is described with. */
|
|
18
|
+
export declare const RPC_HOST_FAILED = "rpc-host-failed";
|
|
19
|
+
/** What replaces a configured secret in a kept text. */
|
|
20
|
+
export declare const REDACTED = "[redacted]";
|
|
21
|
+
export declare class FailureDescriber {
|
|
22
|
+
#private;
|
|
23
|
+
constructor(secrets?: Iterable<string | undefined>);
|
|
24
|
+
/** `text` with every configured secret removed, bounded. */
|
|
25
|
+
scrub(text: string): string;
|
|
26
|
+
/**
|
|
27
|
+
* A peer's wire error with every configured secret removed from every field: its `code` scrubbed like its message
|
|
28
|
+
* and details, its `reason` kept only when it is a reason identifier holding no configured secret (a lowercase-hex
|
|
29
|
+
* bearer passes the identifier grammar, so the grammar alone is not enough).
|
|
30
|
+
*/
|
|
31
|
+
describeWireError(error: RpcError): RpcError;
|
|
32
|
+
/** `reason` when it is a reason identifier that holds no configured secret; otherwise nothing. */
|
|
33
|
+
reasonOf(reason: string | undefined): string | undefined;
|
|
34
|
+
/**
|
|
35
|
+
* The described failure: typed fields, scrubbed text, described cause; never a raw host error. Never throws: a
|
|
36
|
+
* failure whose fields cannot be read is described by what reading it threw, as a host failure.
|
|
37
|
+
*/
|
|
38
|
+
describe(failure: CaughtFailure, depth?: number): DescribedFailure;
|
|
39
|
+
/** A host error's name and code, when they are short identifiers; nothing else of it. */
|
|
40
|
+
hostFields(failure: CaughtFailure): HostErrorFields;
|
|
41
|
+
private removeSecrets;
|
|
42
|
+
private describeReadable;
|
|
43
|
+
/** A host error: its name and code only. */
|
|
44
|
+
private hostFailure;
|
|
45
|
+
private causeOf;
|
|
46
|
+
/** Details as a JSON object with every configured secret removed; anything else is dropped. */
|
|
47
|
+
private detailsOf;
|
|
48
|
+
/**
|
|
49
|
+
* `value` as JSON with every configured secret removed: serialized once (bounded), scrubbed as text, parsed back
|
|
50
|
+
* by the JSON schema. A value that does not serialize (a cycle, a `bigint`, a throwing getter) is dropped.
|
|
51
|
+
*/
|
|
52
|
+
private json;
|
|
53
|
+
}
|
|
54
|
+
/** The describer for a leg with no configured secret: it still never keeps a host error's text. */
|
|
55
|
+
export declare const HOST_FAILURES: FailureDescriber;
|
|
56
|
+
//# sourceMappingURL=failure-describer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"failure-describer.d.ts","sourceRoot":"","sources":["../../../../src/core/protocol/transport/failure-describer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,eAAe,EAAE,MAAM,0DAA0D,CAAC;AAElH,OAAO,EAAE,qBAAqB,EAAE,gBAAgB,EAAE,YAAY,EAAE,MAAM,0DAA0D,CAAC;AACjI,YAAY,EAAE,gBAAgB,EAAE,eAAe,EAAE,MAAM,0DAA0D,CAAC;AAClH;;;;;;;;;;GAUG;AACH,OAAO,EAAwF,KAAK,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAI/I,OAAO,EAA4B,KAAK,QAAQ,EAAmB,MAAM,kBAAkB,CAAC;AAE5F,gFAAgF;AAChF,eAAO,MAAM,eAAe,oBAAoB,CAAC;AAEjD,wDAAwD;AACxD,eAAO,MAAM,QAAQ,eAAe,CAAC;AAuBrC,qBAAa,gBAAgB;;gBAIhB,OAAO,GAAE,QAAQ,CAAC,MAAM,GAAG,SAAS,CAAM;IAUtD,4DAA4D;IAC5D,KAAK,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM;IAK3B;;;;OAIG;IACH,iBAAiB,CAAC,KAAK,EAAE,QAAQ,GAAG,QAAQ;IAS5C,kGAAkG;IAClG,QAAQ,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,GAAG,MAAM,GAAG,SAAS;IAKxD;;;OAGG;IACH,QAAQ,CAAC,OAAO,EAAE,aAAa,EAAE,KAAK,SAAI,GAAG,gBAAgB;IAK7D,yFAAyF;IACzF,UAAU,CAAC,OAAO,EAAE,aAAa,GAAG,eAAe;IASnD,OAAO,CAAC,aAAa;IAMrB,OAAO,CAAC,gBAAgB;IAyBxB,4CAA4C;IAC5C,OAAO,CAAC,WAAW;IAUnB,OAAO,CAAC,OAAO;IAKf,+FAA+F;IAC/F,OAAO,CAAC,SAAS;IAOjB;;;OAGG;IACH,OAAO,CAAC,IAAI;CAQZ;AAED,mGAAmG;AACnG,eAAO,MAAM,aAAa,kBAAyB,CAAC"}
|
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
import { HostErrorFieldsSchema, ReasonSchema } from "../../../schemas/contracts/protocol/failure-describer.js";
|
|
2
|
+
export { HostErrorFieldsSchema, IdentifierSchema, ReasonSchema } from "../../../schemas/contracts/protocol/failure-describer.js";
|
|
3
|
+
/**
|
|
4
|
+
* The one failure describer (class checklist 2 and 3). Every failure runtime-rpc keeps, reports, returns or ends a
|
|
5
|
+
* channel with (a fetch rejection, a body or stream read error, a `Headers` construction error, a handshake refusal,
|
|
6
|
+
* a server error body, a leg failure, a channel end's cause) passes through {@link FailureDescriber.describe} before
|
|
7
|
+
* it is kept or handed out. A described failure keeps only what is typed: the `code`, `reason`, retryability and
|
|
8
|
+
* `name`, this package's own message and details, and the described cause chain. A host error (a `TypeError` from
|
|
9
|
+
* `fetch`, a stream's read error, anything not typed by runtime-rpc or the kernel) keeps only its `name` and string
|
|
10
|
+
* `code`, never its message: hosts quote request URLs and header values in their messages. Every configured secret
|
|
11
|
+
* value (a relay `sessionToken`, a bearer or connection token, a caller header value) is removed from every text the
|
|
12
|
+
* described failure keeps, wherever it appears.
|
|
13
|
+
*/
|
|
14
|
+
import { CapabilityError, CaughtFailureSchema, isCapabilityError } from '@vibesdotdev/kernel';
|
|
15
|
+
import { JsonObjectSchema, JsonValueSchema } from '@vibesdotdev/kernel/schemas/json';
|
|
16
|
+
import * as z from 'zod/v4';
|
|
17
|
+
import { attempt } from "../lifecycle/attempt.js";
|
|
18
|
+
import { isRpcFailure, rpcFailure } from "../wire/verbs.js";
|
|
19
|
+
/** The reason a host error (one runtime-rpc did not type) is described with. */
|
|
20
|
+
export const RPC_HOST_FAILED = 'rpc-host-failed';
|
|
21
|
+
/** What replaces a configured secret in a kept text. */
|
|
22
|
+
export const REDACTED = '[redacted]';
|
|
23
|
+
/** How deep a cause chain is described; deeper links are dropped. */
|
|
24
|
+
const MAX_DEPTH = 4;
|
|
25
|
+
/** How long a kept text may be, and how much serialized details are kept. */
|
|
26
|
+
const MAX_TEXT = 2048;
|
|
27
|
+
const MAX_DETAILS_JSON = 16_384;
|
|
28
|
+
/** How many errors of an aggregate are described. */
|
|
29
|
+
const MAX_LIST = 64;
|
|
30
|
+
export class FailureDescriber {
|
|
31
|
+
/** Longest first, so a secret containing another is removed whole; each also in its JSON-escaped form. */
|
|
32
|
+
#secrets;
|
|
33
|
+
constructor(secrets = []) {
|
|
34
|
+
const kept = new Set();
|
|
35
|
+
for (const secret of secrets) {
|
|
36
|
+
if (secret === undefined || secret === '')
|
|
37
|
+
continue;
|
|
38
|
+
kept.add(secret);
|
|
39
|
+
kept.add(JSON.stringify(secret).slice(1, -1));
|
|
40
|
+
}
|
|
41
|
+
this.#secrets = [...kept].sort((a, b) => b.length - a.length);
|
|
42
|
+
}
|
|
43
|
+
/** `text` with every configured secret removed, bounded. */
|
|
44
|
+
scrub(text) {
|
|
45
|
+
const out = this.removeSecrets(text);
|
|
46
|
+
return out.length > MAX_TEXT ? `${out.slice(0, MAX_TEXT)}…` : out;
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* A peer's wire error with every configured secret removed from every field: its `code` scrubbed like its message
|
|
50
|
+
* and details, its `reason` kept only when it is a reason identifier holding no configured secret (a lowercase-hex
|
|
51
|
+
* bearer passes the identifier grammar, so the grammar alone is not enough).
|
|
52
|
+
*/
|
|
53
|
+
describeWireError(error) {
|
|
54
|
+
const described = { code: this.scrub(error.code), message: this.scrub(error.message) };
|
|
55
|
+
const details = this.json(error.details);
|
|
56
|
+
if (details !== undefined)
|
|
57
|
+
described.details = details;
|
|
58
|
+
const reason = this.reasonOf(error.reason);
|
|
59
|
+
if (reason !== undefined)
|
|
60
|
+
described.reason = reason;
|
|
61
|
+
return described;
|
|
62
|
+
}
|
|
63
|
+
/** `reason` when it is a reason identifier that holds no configured secret; otherwise nothing. */
|
|
64
|
+
reasonOf(reason) {
|
|
65
|
+
if (reason === undefined || !ReasonSchema.safeParse(reason).success)
|
|
66
|
+
return undefined;
|
|
67
|
+
return this.removeSecrets(reason) === reason ? reason : undefined;
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* The described failure: typed fields, scrubbed text, described cause; never a raw host error. Never throws: a
|
|
71
|
+
* failure whose fields cannot be read is described by what reading it threw, as a host failure.
|
|
72
|
+
*/
|
|
73
|
+
describe(failure, depth = 0) {
|
|
74
|
+
const read = attempt(() => this.describeReadable(failure, depth));
|
|
75
|
+
return read.ok ? read.value : this.hostFailure(read.failure);
|
|
76
|
+
}
|
|
77
|
+
/** A host error's name and code, when they are short identifiers; nothing else of it. */
|
|
78
|
+
hostFields(failure) {
|
|
79
|
+
const read = attempt(() => HostErrorFieldsSchema.safeParse(failure instanceof Error ? failure : undefined));
|
|
80
|
+
if (!read.ok || !read.value.success)
|
|
81
|
+
return {};
|
|
82
|
+
const fields = {};
|
|
83
|
+
if (read.value.data.name !== undefined)
|
|
84
|
+
fields.name = this.scrub(read.value.data.name);
|
|
85
|
+
if (read.value.data.code !== undefined)
|
|
86
|
+
fields.code = this.scrub(read.value.data.code);
|
|
87
|
+
return fields;
|
|
88
|
+
}
|
|
89
|
+
removeSecrets(text) {
|
|
90
|
+
let out = text;
|
|
91
|
+
for (const secret of this.#secrets)
|
|
92
|
+
if (out.includes(secret))
|
|
93
|
+
out = out.split(secret).join(REDACTED);
|
|
94
|
+
return out;
|
|
95
|
+
}
|
|
96
|
+
describeReadable(failure, depth) {
|
|
97
|
+
if (isCapabilityError(failure)) {
|
|
98
|
+
return new CapabilityError(this.scrub(failure.message), failure.code, {
|
|
99
|
+
reason: this.reasonOf(failure.reason),
|
|
100
|
+
retryable: failure.retryable,
|
|
101
|
+
recoveryHint: failure.recoveryHint,
|
|
102
|
+
details: this.detailsOf(failure.details),
|
|
103
|
+
cause: this.causeOf(failure, depth)
|
|
104
|
+
});
|
|
105
|
+
}
|
|
106
|
+
if (isRpcFailure(failure)) {
|
|
107
|
+
const described = rpcFailure(this.scrub(failure.code), this.scrub(failure.message), this.detailsOf(failure.details), this.reasonOf(failure.reason));
|
|
108
|
+
const cause = this.causeOf(failure, depth);
|
|
109
|
+
return cause === undefined ? described : Object.assign(described, { cause });
|
|
110
|
+
}
|
|
111
|
+
if (failure instanceof AggregateError && depth < MAX_DEPTH) {
|
|
112
|
+
const errors = z.array(z.unknown()).catch([]).parse(failure.errors);
|
|
113
|
+
return new AggregateError(errors.slice(0, MAX_LIST).map((error) => this.describe(CaughtFailureSchema.parse(error), depth + 1)), this.scrub(failure.message));
|
|
114
|
+
}
|
|
115
|
+
return this.hostFailure(failure);
|
|
116
|
+
}
|
|
117
|
+
/** A host error: its name and code only. */
|
|
118
|
+
hostFailure(failure) {
|
|
119
|
+
const fields = this.hostFields(failure);
|
|
120
|
+
const label = [fields.name, fields.code].filter((part) => part !== undefined).join(' ');
|
|
121
|
+
return new CapabilityError(`A host operation failed${label ? ` (${label})` : ''}.`, 'UNAVAILABLE', {
|
|
122
|
+
reason: RPC_HOST_FAILED,
|
|
123
|
+
retryable: false,
|
|
124
|
+
details: { ...fields }
|
|
125
|
+
});
|
|
126
|
+
}
|
|
127
|
+
causeOf(failure, depth) {
|
|
128
|
+
if (failure.cause === undefined || depth >= MAX_DEPTH)
|
|
129
|
+
return undefined;
|
|
130
|
+
return this.describe(CaughtFailureSchema.parse(failure.cause), depth + 1);
|
|
131
|
+
}
|
|
132
|
+
/** Details as a JSON object with every configured secret removed; anything else is dropped. */
|
|
133
|
+
detailsOf(details) {
|
|
134
|
+
const json = this.json(details);
|
|
135
|
+
if (json === undefined)
|
|
136
|
+
return undefined;
|
|
137
|
+
const object = JsonObjectSchema.safeParse(json);
|
|
138
|
+
return object.success ? { ...object.data } : undefined;
|
|
139
|
+
}
|
|
140
|
+
/**
|
|
141
|
+
* `value` as JSON with every configured secret removed: serialized once (bounded), scrubbed as text, parsed back
|
|
142
|
+
* by the JSON schema. A value that does not serialize (a cycle, a `bigint`, a throwing getter) is dropped.
|
|
143
|
+
*/
|
|
144
|
+
json(value) {
|
|
145
|
+
if (value === undefined)
|
|
146
|
+
return undefined;
|
|
147
|
+
const text = attempt(() => JSON.stringify(value));
|
|
148
|
+
if (!text.ok || text.value === undefined || text.value.length > MAX_DETAILS_JSON)
|
|
149
|
+
return undefined;
|
|
150
|
+
const scrubbed = this.removeSecrets(text.value);
|
|
151
|
+
const parsed = attempt(() => JsonValueSchema.safeParse(JSON.parse(scrubbed)));
|
|
152
|
+
return parsed.ok && parsed.value.success ? parsed.value.data : undefined;
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
/** The describer for a leg with no configured secret: it still never keeps a host error's text. */
|
|
156
|
+
export const HOST_FAILURES = new FailureDescriber();
|
|
157
|
+
//# sourceMappingURL=failure-describer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"failure-describer.js","sourceRoot":"","sources":["../../../../src/core/protocol/transport/failure-describer.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,qBAAqB,EAAE,YAAY,EAAE,MAAM,0DAA0D,CAAC;AAC/G,OAAO,EAAE,qBAAqB,EAAE,gBAAgB,EAAE,YAAY,EAAE,MAAM,0DAA0D,CAAC;AAEjI;;;;;;;;;;GAUG;AACH,OAAO,EAAE,eAAe,EAAE,mBAAmB,EAAE,iBAAiB,EAAmD,MAAM,qBAAqB,CAAC;AAC/I,OAAO,EAAE,gBAAgB,EAAE,eAAe,EAAkB,MAAM,kCAAkC,CAAC;AACrG,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAC;AAClD,OAAO,EAAE,YAAY,EAAE,UAAU,EAAkC,MAAM,kBAAkB,CAAC;AAE5F,gFAAgF;AAChF,MAAM,CAAC,MAAM,eAAe,GAAG,iBAAiB,CAAC;AAEjD,wDAAwD;AACxD,MAAM,CAAC,MAAM,QAAQ,GAAG,YAAY,CAAC;AAErC,qEAAqE;AACrE,MAAM,SAAS,GAAG,CAAC,CAAC;AACpB,6EAA6E;AAC7E,MAAM,QAAQ,GAAG,IAAI,CAAC;AACtB,MAAM,gBAAgB,GAAG,MAAM,CAAC;AAChC,qDAAqD;AACrD,MAAM,QAAQ,GAAG,EAAE,CAAC;AAepB,MAAM,OAAO,gBAAgB;IAC5B,0GAA0G;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AAS,CAAC;QACnG,MAAM,QAAQ,GAAG,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QAChD,MAAM,MAAM,GAAG,OAAO,CAAC,GAAG,EAAE,CAAC,eAAe,CAAC,SAAS,CAAC,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC;QAC9E,OAAO,MAAM,CAAC,EAAE,IAAI,MAAM,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;IAC1E,CAAC;CACD;AAED,mGAAmG;AACnG,MAAM,CAAC,MAAM,aAAa,GAAG,IAAI,gBAAgB,EAAE,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { GuardedFetch } from "../../../schemas/contracts/protocol/fetch-failure.ts";
|
|
2
|
+
export type { GuardedFetch } from "../../../schemas/contracts/protocol/fetch-failure.ts";
|
|
3
|
+
import { FailureDescriber } from './failure-describer.ts';
|
|
4
|
+
export declare const RPC_FETCH_FAILED = "rpc-fetch-failed";
|
|
5
|
+
/** The URL with userinfo, query and fragment removed: what an output path may show. */
|
|
6
|
+
export declare function scrubbedUrl(input: URL | string): string;
|
|
7
|
+
/** Wrap a fetch so every rejection is {@link RPC_FETCH_FAILED}, value-free. A guarded fetch's own failure passes through. */
|
|
8
|
+
export declare function guardFetch(fetchImpl: GuardedFetch, describer?: FailureDescriber): GuardedFetch;
|
|
9
|
+
//# sourceMappingURL=fetch-failure.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fetch-failure.d.ts","sourceRoot":"","sources":["../../../../src/core/protocol/transport/fetch-failure.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,sDAAsD,CAAC;AACzF,YAAY,EAAE,YAAY,EAAE,MAAM,sDAAsD,CAAC;AAazF,OAAO,EAAE,gBAAgB,EAAiB,MAAM,wBAAwB,CAAC;AAEzE,eAAO,MAAM,gBAAgB,qBAAqB,CAAC;AAEnD,uFAAuF;AACvF,wBAAgB,WAAW,CAAC,KAAK,EAAE,GAAG,GAAG,MAAM,GAAG,MAAM,CAGvD;AAkBD,6HAA6H;AAC7H,wBAAgB,UAAU,CAAC,SAAS,EAAE,YAAY,EAAE,SAAS,GAAE,gBAAgC,GAAG,YAAY,CAO7G"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Credentials never ride a fetch failure out of this package. A host's fetch rejection can echo the request: Bun's
|
|
3
|
+
* carries the full URL as `path` and quotes it in its message, and a `Headers` construction error quotes the header
|
|
4
|
+
* name and value it refused (a bearer with a newline, a header value outside Latin-1). The HTTP and relay legs put
|
|
5
|
+
* credentials in that URL (the relay's `sessionToken` query) and in headers (the bearer, caller headers), so every
|
|
6
|
+
* fetch they make goes through {@link guardFetch}. Every rejection becomes `UNAVAILABLE` `rpc-fetch-failed` naming
|
|
7
|
+
* only the URL's origin and path and the host error's `name` and `code` (through the connection's
|
|
8
|
+
* {@link FailureDescriber}, which also removes every configured secret); the host's message and the raw error are
|
|
9
|
+
* never carried.
|
|
10
|
+
*/
|
|
11
|
+
import { CapabilityError } from '@vibesdotdev/kernel';
|
|
12
|
+
import { attemptAsync, rethrow } from "../lifecycle/attempt.js";
|
|
13
|
+
import { FailureDescriber, HOST_FAILURES } from "./failure-describer.js";
|
|
14
|
+
export const RPC_FETCH_FAILED = 'rpc-fetch-failed';
|
|
15
|
+
/** The URL with userinfo, query and fragment removed: what an output path may show. */
|
|
16
|
+
export function scrubbedUrl(input) {
|
|
17
|
+
const parsed = URL.canParse(String(input)) ? new URL(String(input)) : undefined;
|
|
18
|
+
return parsed ? `${parsed.origin}${parsed.pathname}` : '(unparseable url)';
|
|
19
|
+
}
|
|
20
|
+
function isFetchFailure(failure) {
|
|
21
|
+
return failure instanceof CapabilityError && failure.reason === RPC_FETCH_FAILED;
|
|
22
|
+
}
|
|
23
|
+
/** The typed fetch failure: the scrubbed URL, and the host error's name and code as the describer keeps them. */
|
|
24
|
+
function fetchFailed(input, failure, describer) {
|
|
25
|
+
const url = describer.scrub(scrubbedUrl(input));
|
|
26
|
+
const fields = describer.hostFields(failure);
|
|
27
|
+
const label = [fields.name, fields.code].filter((part) => part !== undefined).join(' ');
|
|
28
|
+
return new CapabilityError(`The fetch to ${url} failed${label ? ` (${label})` : ''}.`, 'UNAVAILABLE', {
|
|
29
|
+
reason: RPC_FETCH_FAILED,
|
|
30
|
+
retryable: true,
|
|
31
|
+
details: { url, ...fields }
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
/** Wrap a fetch so every rejection is {@link RPC_FETCH_FAILED}, value-free. A guarded fetch's own failure passes through. */
|
|
35
|
+
export function guardFetch(fetchImpl, describer = HOST_FAILURES) {
|
|
36
|
+
return async (input, init) => {
|
|
37
|
+
const fetched = await attemptAsync(() => fetchImpl(input, init));
|
|
38
|
+
if (fetched.ok)
|
|
39
|
+
return fetched.value;
|
|
40
|
+
if (isFetchFailure(fetched.failure))
|
|
41
|
+
return rethrow(fetched.failure);
|
|
42
|
+
throw fetchFailed(input, fetched.failure, describer);
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
//# sourceMappingURL=fetch-failure.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fetch-failure.js","sourceRoot":"","sources":["../../../../src/core/protocol/transport/fetch-failure.ts"],"names":[],"mappings":"AAEA;;;;;;;;;GASG;AACH,OAAO,EAAE,eAAe,EAAsB,MAAM,qBAAqB,CAAC;AAC1E,OAAO,EAAE,YAAY,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAC;AAChE,OAAO,EAAE,gBAAgB,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAEzE,MAAM,CAAC,MAAM,gBAAgB,GAAG,kBAAkB,CAAC;AAEnD,uFAAuF;AACvF,MAAM,UAAU,WAAW,CAAC,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E,IAAI,EAAE,EAAE;QAC5B,MAAM,OAAO,GAAG,MAAM,YAAY,CAAC,GAAG,EAAE,CAAC,SAAS,CAAC,KAAK,EAAE,IAAI,CAAC,CAAC,CAAC;QACjE,IAAI,OAAO,CAAC,EAAE;YAAE,OAAO,OAAO,CAAC,KAAK,CAAC;QACrC,IAAI,cAAc,CAAC,OAAO,CAAC,OAAO,CAAC;YAAE,OAAO,OAAO,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;QACrE,MAAM,WAAW,CAAC,KAAK,EAAE,OAAO,CAAC,OAAO,EAAE,SAAS,CAAC,CAAC;IACtD,CAAC,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import type { AttestedCallerCarrier, LocalAttestationPresentation, LocalAttestationVerifier, SocketAttestationEnvelope, SocketAttestationRecord } from "../../../schemas/contracts/protocol/local-attestation.ts";
|
|
2
|
+
export { constantTimeEqual, LOCAL_ATTESTATION_SECRET_PATTERN, LocalAttestationToken, revealLocalAttestation } from '@vibesdotdev/kernel/credentials';
|
|
3
|
+
export { SocketAttestationEnvelopeSchema } from "../../../schemas/contracts/protocol/local-attestation.ts";
|
|
4
|
+
export type { AttestedCallerCarrier, LocalAttestationPresentation, LocalAttestationVerifier, SocketAttestationEnvelope, SocketAttestationRecord } from "../../../schemas/contracts/protocol/local-attestation.ts";
|
|
5
|
+
/**
|
|
6
|
+
* Local attestation (RC08): the one way a same-user local peer proves it was
|
|
7
|
+
* launched by the host that owns a runtime daemon, so the identity that launch
|
|
8
|
+
* established is admitted instead of refused.
|
|
9
|
+
*
|
|
10
|
+
* The trust boundary is the OS user. A daemon writes a fresh random secret to a
|
|
11
|
+
* 0600 claim file each time it starts (`@vibesdotdev/secrets/attestation`); only a
|
|
12
|
+
* process running as that user can read it. A client presents the secret in
|
|
13
|
+
* its transport handshake together with its declared launch identity, and a
|
|
14
|
+
* listen session that verifies the secret sets
|
|
15
|
+
* `remotePeer.verified = { source: 'local-attested', caller }`. Without a
|
|
16
|
+
* verified secret it sets nothing, and the kernel refuses every declared
|
|
17
|
+
* identity field (`caller-identity-unverified`).
|
|
18
|
+
*
|
|
19
|
+
* This module is universal: the verifier contract and the handshake record,
|
|
20
|
+
* with the kernel's token and constant-time compare re-exported (not
|
|
21
|
+
* redefined). The claim file is the secrets package's, on the runtime's
|
|
22
|
+
* filesystem adapter.
|
|
23
|
+
*
|
|
24
|
+
* The secret never appears in a log, an error, argv or env: the token redacts
|
|
25
|
+
* itself from every string, JSON and inspect form, and failures name only the
|
|
26
|
+
* claim path.
|
|
27
|
+
*/
|
|
28
|
+
import { CapabilityError, type CaughtFailure } from '@vibesdotdev/kernel';
|
|
29
|
+
import { type RuntimeInvokeCaller, type VerifiedTransportIdentity } from '@vibesdotdev/kernel/schemas';
|
|
30
|
+
import { type RpcDeclaredCaller } from '../wire/schemas.ts';
|
|
31
|
+
import type { RpcRequest, RpcResponse } from '../wire/verbs.ts';
|
|
32
|
+
/** The `VerifiedTransportIdentity.source` a verified local attestation sets. */
|
|
33
|
+
export declare const LOCAL_ATTESTED_SOURCE = "local-attested";
|
|
34
|
+
/**
|
|
35
|
+
* The identity a listen session admits for a presented attestation: the
|
|
36
|
+
* declared launch identity when the secret verifies, `undefined` otherwise
|
|
37
|
+
* (no verifier, no secret, a wrong or rotated secret).
|
|
38
|
+
*/
|
|
39
|
+
export declare function attestedIdentity(verifier: LocalAttestationVerifier | undefined, presented: string | undefined, declaredCaller: RpcDeclaredCaller | undefined): VerifiedTransportIdentity | undefined;
|
|
40
|
+
/** Build the socket handshake's attestation record. */
|
|
41
|
+
export declare function socketAttestationRecord(presentation: LocalAttestationPresentation): SocketAttestationRecord;
|
|
42
|
+
/** Whether a decoded socket message is the attestation envelope (the codec already parsed it whole). */
|
|
43
|
+
export declare function isSocketAttestationRecord(message: RpcRequest | RpcResponse | SocketAttestationEnvelope): message is SocketAttestationEnvelope;
|
|
44
|
+
/** The HTTP handshake header carrying the declared launch identity (base64url JSON). */
|
|
45
|
+
export declare const LOCAL_ATTESTATION_CALLER_HEADER = "x-rpc-attested-caller";
|
|
46
|
+
/** Encode a declared caller for {@link LOCAL_ATTESTATION_CALLER_HEADER}. */
|
|
47
|
+
export declare function encodeAttestedCaller(caller: RuntimeInvokeCaller): string;
|
|
48
|
+
/** The reason a malformed attested-caller header is refused. */
|
|
49
|
+
export declare const ATTESTED_CALLER_INVALID = "rpc-attested-caller-invalid";
|
|
50
|
+
/**
|
|
51
|
+
* Decode {@link LOCAL_ATTESTATION_CALLER_HEADER}. An absent header declares no
|
|
52
|
+
* identity (`undefined`). A present one that is not base64url JSON naming a
|
|
53
|
+
* caller fails closed: `INVALID_INPUT` `rpc-attested-caller-invalid`, so an
|
|
54
|
+
* attested connection is never admitted with an identity it did not state.
|
|
55
|
+
*/
|
|
56
|
+
export declare function decodeAttestedCaller(header: string | null): RuntimeInvokeCaller | undefined;
|
|
57
|
+
/**
|
|
58
|
+
* The declared launch identity of an attested handshake, validated. A plain
|
|
59
|
+
* object whose fields parse (an empty one declares nothing) is admitted; any
|
|
60
|
+
* other shape fails closed: `INVALID_INPUT` `rpc-attested-caller-invalid`
|
|
61
|
+
* (a caller that is not such an object never reaches here: parse it with
|
|
62
|
+
* `RpcDeclaredCallerSchema` and refuse with {@link attestedCallerInvalid}).
|
|
63
|
+
*/
|
|
64
|
+
export declare function validateAttestedCaller(declared: RpcDeclaredCaller, carrier?: AttestedCallerCarrier): RuntimeInvokeCaller;
|
|
65
|
+
/** The typed refusal of a declared launch identity that is not a plain object of caller fields, naming where it arrived. */
|
|
66
|
+
export declare function attestedCallerInvalid(cause?: CaughtFailure, carrier?: AttestedCallerCarrier): CapabilityError;
|
|
67
|
+
//# sourceMappingURL=local-attestation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"local-attestation.d.ts","sourceRoot":"","sources":["../../../../src/core/protocol/transport/local-attestation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAq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