@vibesdotdev/kernel-rpc 0.0.0-stage → 1.0.0-rc.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +18 -0
- package/README.md +237 -2
- package/dist/cli/daemon/control/runtime.daemon.restart.descriptor.d.ts +9 -0
- package/dist/cli/daemon/control/runtime.daemon.restart.descriptor.d.ts.map +1 -0
- package/dist/cli/daemon/control/runtime.daemon.restart.descriptor.js +25 -0
- package/dist/cli/daemon/control/runtime.daemon.restart.descriptor.js.map +1 -0
- package/dist/cli/daemon/control/runtime.daemon.restart.impl.consumer.d.ts +13 -0
- package/dist/cli/daemon/control/runtime.daemon.restart.impl.consumer.d.ts.map +1 -0
- package/dist/cli/daemon/control/runtime.daemon.restart.impl.consumer.js +36 -0
- package/dist/cli/daemon/control/runtime.daemon.restart.impl.consumer.js.map +1 -0
- package/dist/cli/daemon/control/runtime.daemon.start.descriptor.d.ts +9 -0
- package/dist/cli/daemon/control/runtime.daemon.start.descriptor.d.ts.map +1 -0
- package/dist/cli/daemon/control/runtime.daemon.start.descriptor.js +22 -0
- package/dist/cli/daemon/control/runtime.daemon.start.descriptor.js.map +1 -0
- package/dist/cli/daemon/control/runtime.daemon.start.impl.consumer.d.ts +13 -0
- package/dist/cli/daemon/control/runtime.daemon.start.impl.consumer.d.ts.map +1 -0
- package/dist/cli/daemon/control/runtime.daemon.start.impl.consumer.js +61 -0
- package/dist/cli/daemon/control/runtime.daemon.start.impl.consumer.js.map +1 -0
- package/dist/cli/daemon/control/runtime.daemon.stop.descriptor.d.ts +9 -0
- package/dist/cli/daemon/control/runtime.daemon.stop.descriptor.d.ts.map +1 -0
- package/dist/cli/daemon/control/runtime.daemon.stop.descriptor.js +24 -0
- package/dist/cli/daemon/control/runtime.daemon.stop.descriptor.js.map +1 -0
- package/dist/cli/daemon/control/runtime.daemon.stop.impl.consumer.d.ts +14 -0
- package/dist/cli/daemon/control/runtime.daemon.stop.impl.consumer.d.ts.map +1 -0
- package/dist/cli/daemon/control/runtime.daemon.stop.impl.consumer.js +41 -0
- package/dist/cli/daemon/control/runtime.daemon.stop.impl.consumer.js.map +1 -0
- package/dist/cli/daemon/runtime.daemon.cli-group.descriptor.d.ts +9 -0
- package/dist/cli/daemon/runtime.daemon.cli-group.descriptor.d.ts.map +1 -0
- package/dist/cli/daemon/runtime.daemon.cli-group.descriptor.js +17 -0
- package/dist/cli/daemon/runtime.daemon.cli-group.descriptor.js.map +1 -0
- package/dist/cli/daemon/runtime.daemon.serve.descriptor.d.ts +10 -0
- package/dist/cli/daemon/runtime.daemon.serve.descriptor.d.ts.map +1 -0
- package/dist/cli/daemon/runtime.daemon.serve.descriptor.js +23 -0
- package/dist/cli/daemon/runtime.daemon.serve.descriptor.js.map +1 -0
- package/dist/cli/daemon/runtime.daemon.serve.impl.consumer.d.ts +22 -0
- package/dist/cli/daemon/runtime.daemon.serve.impl.consumer.d.ts.map +1 -0
- package/dist/cli/daemon/runtime.daemon.serve.impl.consumer.js +68 -0
- package/dist/cli/daemon/runtime.daemon.serve.impl.consumer.js.map +1 -0
- package/dist/cli/daemon/runtime.daemon.status.descriptor.d.ts +9 -0
- package/dist/cli/daemon/runtime.daemon.status.descriptor.d.ts.map +1 -0
- package/dist/cli/daemon/runtime.daemon.status.descriptor.js +24 -0
- package/dist/cli/daemon/runtime.daemon.status.descriptor.js.map +1 -0
- package/dist/cli/daemon/runtime.daemon.status.impl.consumer.d.ts +12 -0
- package/dist/cli/daemon/runtime.daemon.status.impl.consumer.d.ts.map +1 -0
- package/dist/cli/daemon/runtime.daemon.status.impl.consumer.js +110 -0
- package/dist/cli/daemon/runtime.daemon.status.impl.consumer.js.map +1 -0
- package/dist/cli/discovery/runtime.doctor.descriptor.d.ts +10 -0
- package/dist/cli/discovery/runtime.doctor.descriptor.d.ts.map +1 -0
- package/dist/cli/discovery/runtime.doctor.descriptor.js +29 -0
- package/dist/cli/discovery/runtime.doctor.descriptor.js.map +1 -0
- package/dist/cli/discovery/runtime.doctor.impl.consumer.d.ts +18 -0
- package/dist/cli/discovery/runtime.doctor.impl.consumer.d.ts.map +1 -0
- package/dist/cli/discovery/runtime.doctor.impl.consumer.js +129 -0
- package/dist/cli/discovery/runtime.doctor.impl.consumer.js.map +1 -0
- package/dist/cli/discovery/runtime.query.descriptor.d.ts +10 -0
- package/dist/cli/discovery/runtime.query.descriptor.d.ts.map +1 -0
- package/dist/cli/discovery/runtime.query.descriptor.js +39 -0
- package/dist/cli/discovery/runtime.query.descriptor.js.map +1 -0
- package/dist/cli/discovery/runtime.query.impl.consumer.d.ts +7 -0
- package/dist/cli/discovery/runtime.query.impl.consumer.d.ts.map +1 -0
- package/dist/cli/discovery/runtime.query.impl.consumer.js +105 -0
- package/dist/cli/discovery/runtime.query.impl.consumer.js.map +1 -0
- package/dist/cli/discovery/runtime.status.descriptor.d.ts +9 -0
- package/dist/cli/discovery/runtime.status.descriptor.d.ts.map +1 -0
- package/dist/cli/discovery/runtime.status.descriptor.js +24 -0
- package/dist/cli/discovery/runtime.status.descriptor.js.map +1 -0
- package/dist/cli/discovery/runtime.status.impl.consumer.d.ts +7 -0
- package/dist/cli/discovery/runtime.status.impl.consumer.d.ts.map +1 -0
- package/dist/cli/discovery/runtime.status.impl.consumer.js +121 -0
- package/dist/cli/discovery/runtime.status.impl.consumer.js.map +1 -0
- package/dist/cli/discovery/status-format.d.ts +19 -0
- package/dist/cli/discovery/status-format.d.ts.map +1 -0
- package/dist/cli/discovery/status-format.js +54 -0
- package/dist/cli/discovery/status-format.js.map +1 -0
- package/dist/cli/plugin.d.ts +3 -0
- package/dist/cli/plugin.d.ts.map +1 -0
- package/dist/cli/plugin.js +42 -0
- package/dist/cli/plugin.js.map +1 -0
- package/dist/cli/runtime.cli-group.descriptor.d.ts +10 -0
- package/dist/cli/runtime.cli-group.descriptor.d.ts.map +1 -0
- package/dist/cli/runtime.cli-group.descriptor.js +17 -0
- package/dist/cli/runtime.cli-group.descriptor.js.map +1 -0
- package/dist/cli/worker/_logging.d.ts +11 -0
- package/dist/cli/worker/_logging.d.ts.map +1 -0
- package/dist/cli/worker/_logging.js +40 -0
- package/dist/cli/worker/_logging.js.map +1 -0
- package/dist/cli/worker/daemon-execution.worker.entry.d.ts +51 -0
- package/dist/cli/worker/daemon-execution.worker.entry.d.ts.map +1 -0
- package/dist/cli/worker/daemon-execution.worker.entry.js +220 -0
- package/dist/cli/worker/daemon-execution.worker.entry.js.map +1 -0
- package/dist/core/descriptor-wire/serialize.d.ts +9 -0
- package/dist/core/descriptor-wire/serialize.d.ts.map +1 -0
- package/dist/core/descriptor-wire/serialize.js +88 -0
- package/dist/core/descriptor-wire/serialize.js.map +1 -0
- package/dist/core/helper.d.ts +42 -0
- package/dist/core/helper.d.ts.map +1 -0
- package/dist/core/helper.js +125 -0
- package/dist/core/helper.js.map +1 -0
- package/dist/core/kinds/rpc.kind.d.ts +48 -0
- package/dist/core/kinds/rpc.kind.d.ts.map +1 -0
- package/dist/core/kinds/rpc.kind.js +27 -0
- package/dist/core/kinds/rpc.kind.js.map +1 -0
- package/dist/core/lifecycle-repeat.d.ts +11 -0
- package/dist/core/lifecycle-repeat.d.ts.map +1 -0
- package/dist/core/lifecycle-repeat.js +59 -0
- package/dist/core/lifecycle-repeat.js.map +1 -0
- package/dist/core/protocol/lifecycle/attempt.d.ts +23 -0
- package/dist/core/protocol/lifecycle/attempt.d.ts.map +1 -0
- package/dist/core/protocol/lifecycle/attempt.js +41 -0
- package/dist/core/protocol/lifecycle/attempt.js.map +1 -0
- package/dist/core/protocol/lifecycle/binding-close.d.ts +54 -0
- package/dist/core/protocol/lifecycle/binding-close.d.ts.map +1 -0
- package/dist/core/protocol/lifecycle/binding-close.js +137 -0
- package/dist/core/protocol/lifecycle/binding-close.js.map +1 -0
- package/dist/core/protocol/lifecycle/channel-close.d.ts +39 -0
- package/dist/core/protocol/lifecycle/channel-close.d.ts.map +1 -0
- package/dist/core/protocol/lifecycle/channel-close.js +75 -0
- package/dist/core/protocol/lifecycle/channel-close.js.map +1 -0
- package/dist/core/protocol/lifecycle/channel-end.d.ts +53 -0
- package/dist/core/protocol/lifecycle/channel-end.d.ts.map +1 -0
- package/dist/core/protocol/lifecycle/channel-end.js +71 -0
- package/dist/core/protocol/lifecycle/channel-end.js.map +1 -0
- package/dist/core/protocol/lifecycle/connect-attempt.d.ts +12 -0
- package/dist/core/protocol/lifecycle/connect-attempt.d.ts.map +1 -0
- package/dist/core/protocol/lifecycle/connect-attempt.js +31 -0
- package/dist/core/protocol/lifecycle/connect-attempt.js.map +1 -0
- package/dist/core/protocol/lifecycle/connector.d.ts +29 -0
- package/dist/core/protocol/lifecycle/connector.d.ts.map +1 -0
- package/dist/core/protocol/lifecycle/connector.js +168 -0
- package/dist/core/protocol/lifecycle/connector.js.map +1 -0
- package/dist/core/protocol/lifecycle/credited-events.d.ts +11 -0
- package/dist/core/protocol/lifecycle/credited-events.d.ts.map +1 -0
- package/dist/core/protocol/lifecycle/credited-events.js +109 -0
- package/dist/core/protocol/lifecycle/credited-events.js.map +1 -0
- package/dist/core/protocol/lifecycle/leg-failures.d.ts +37 -0
- package/dist/core/protocol/lifecycle/leg-failures.d.ts.map +1 -0
- package/dist/core/protocol/lifecycle/leg-failures.js +115 -0
- package/dist/core/protocol/lifecycle/leg-failures.js.map +1 -0
- package/dist/core/protocol/lifecycle/lifecycle-owned.d.ts +15 -0
- package/dist/core/protocol/lifecycle/lifecycle-owned.d.ts.map +1 -0
- package/dist/core/protocol/lifecycle/lifecycle-owned.js +32 -0
- package/dist/core/protocol/lifecycle/lifecycle-owned.js.map +1 -0
- package/dist/core/protocol/lifecycle/stream-credits.d.ts +41 -0
- package/dist/core/protocol/lifecycle/stream-credits.d.ts.map +1 -0
- package/dist/core/protocol/lifecycle/stream-credits.js +160 -0
- package/dist/core/protocol/lifecycle/stream-credits.js.map +1 -0
- package/dist/core/protocol/references/advertisement.d.ts +22 -0
- package/dist/core/protocol/references/advertisement.d.ts.map +1 -0
- package/dist/core/protocol/references/advertisement.js +76 -0
- package/dist/core/protocol/references/advertisement.js.map +1 -0
- package/dist/core/protocol/references/caller-input.d.ts +44 -0
- package/dist/core/protocol/references/caller-input.d.ts.map +1 -0
- package/dist/core/protocol/references/caller-input.js +67 -0
- package/dist/core/protocol/references/caller-input.js.map +1 -0
- package/dist/core/protocol/references/channel-ids.d.ts +23 -0
- package/dist/core/protocol/references/channel-ids.d.ts.map +1 -0
- package/dist/core/protocol/references/channel-ids.js +35 -0
- package/dist/core/protocol/references/channel-ids.js.map +1 -0
- package/dist/core/protocol/references/consumer.d.ts +11 -0
- package/dist/core/protocol/references/consumer.d.ts.map +1 -0
- package/dist/core/protocol/references/consumer.js +134 -0
- package/dist/core/protocol/references/consumer.js.map +1 -0
- package/dist/core/protocol/references/descriptor-input.d.ts +15 -0
- package/dist/core/protocol/references/descriptor-input.d.ts.map +1 -0
- package/dist/core/protocol/references/descriptor-input.js +25 -0
- package/dist/core/protocol/references/descriptor-input.js.map +1 -0
- package/dist/core/protocol/references/dispatch.d.ts +24 -0
- package/dist/core/protocol/references/dispatch.d.ts.map +1 -0
- package/dist/core/protocol/references/dispatch.js +130 -0
- package/dist/core/protocol/references/dispatch.js.map +1 -0
- package/dist/core/protocol/references/function-callbacks.d.ts +19 -0
- package/dist/core/protocol/references/function-callbacks.d.ts.map +1 -0
- package/dist/core/protocol/references/function-callbacks.js +84 -0
- package/dist/core/protocol/references/function-callbacks.js.map +1 -0
- package/dist/core/protocol/references/projection-consumer.d.ts +12 -0
- package/dist/core/protocol/references/projection-consumer.d.ts.map +1 -0
- package/dist/core/protocol/references/projection-consumer.js +43 -0
- package/dist/core/protocol/references/projection-consumer.js.map +1 -0
- package/dist/core/protocol/references/ref-table.d.ts +33 -0
- package/dist/core/protocol/references/ref-table.d.ts.map +1 -0
- package/dist/core/protocol/references/ref-table.js +136 -0
- package/dist/core/protocol/references/ref-table.js.map +1 -0
- package/dist/core/protocol/references/root-methods.d.ts +14 -0
- package/dist/core/protocol/references/root-methods.d.ts.map +1 -0
- package/dist/core/protocol/references/root-methods.js +33 -0
- package/dist/core/protocol/references/root-methods.js.map +1 -0
- package/dist/core/protocol/transport/failure-describer.d.ts +56 -0
- package/dist/core/protocol/transport/failure-describer.d.ts.map +1 -0
- package/dist/core/protocol/transport/failure-describer.js +157 -0
- package/dist/core/protocol/transport/failure-describer.js.map +1 -0
- package/dist/core/protocol/transport/fetch-failure.d.ts +9 -0
- package/dist/core/protocol/transport/fetch-failure.d.ts.map +1 -0
- package/dist/core/protocol/transport/fetch-failure.js +45 -0
- package/dist/core/protocol/transport/fetch-failure.js.map +1 -0
- package/dist/core/protocol/transport/local-attestation.d.ts +67 -0
- package/dist/core/protocol/transport/local-attestation.d.ts.map +1 -0
- package/dist/core/protocol/transport/local-attestation.js +109 -0
- package/dist/core/protocol/transport/local-attestation.js.map +1 -0
- package/dist/core/protocol/transport/projection-close.d.ts +12 -0
- package/dist/core/protocol/transport/projection-close.d.ts.map +1 -0
- package/dist/core/protocol/transport/projection-close.js +47 -0
- package/dist/core/protocol/transport/projection-close.js.map +1 -0
- package/dist/core/protocol/transport/socket-connect-failure.d.ts +13 -0
- package/dist/core/protocol/transport/socket-connect-failure.d.ts.map +1 -0
- package/dist/core/protocol/transport/socket-connect-failure.js +42 -0
- package/dist/core/protocol/transport/socket-connect-failure.js.map +1 -0
- package/dist/core/protocol/transport/sse.d.ts +26 -0
- package/dist/core/protocol/transport/sse.d.ts.map +1 -0
- package/dist/core/protocol/transport/sse.js +89 -0
- package/dist/core/protocol/transport/sse.js.map +1 -0
- package/dist/core/protocol/wire/frame.d.ts +34 -0
- package/dist/core/protocol/wire/frame.d.ts.map +1 -0
- package/dist/core/protocol/wire/frame.js +131 -0
- package/dist/core/protocol/wire/frame.js.map +1 -0
- package/dist/core/protocol/wire/inline-value.d.ts +27 -0
- package/dist/core/protocol/wire/inline-value.d.ts.map +1 -0
- package/dist/core/protocol/wire/inline-value.js +114 -0
- package/dist/core/protocol/wire/inline-value.js.map +1 -0
- package/dist/core/protocol/wire/json-wire.d.ts +7 -0
- package/dist/core/protocol/wire/json-wire.d.ts.map +1 -0
- package/dist/core/protocol/wire/json-wire.js +58 -0
- package/dist/core/protocol/wire/json-wire.js.map +1 -0
- package/dist/core/protocol/wire/limits.d.ts +23 -0
- package/dist/core/protocol/wire/limits.d.ts.map +1 -0
- package/dist/core/protocol/wire/limits.js +23 -0
- package/dist/core/protocol/wire/limits.js.map +1 -0
- package/dist/core/protocol/wire/rpc-data.d.ts +15 -0
- package/dist/core/protocol/wire/rpc-data.d.ts.map +1 -0
- package/dist/core/protocol/wire/rpc-data.js +66 -0
- package/dist/core/protocol/wire/rpc-data.js.map +1 -0
- package/dist/core/protocol/wire/schemas.d.ts +14 -0
- package/dist/core/protocol/wire/schemas.d.ts.map +1 -0
- package/dist/core/protocol/wire/schemas.js +13 -0
- package/dist/core/protocol/wire/schemas.js.map +1 -0
- package/dist/core/protocol/wire/value-kinds.d.ts +26 -0
- package/dist/core/protocol/wire/value-kinds.d.ts.map +1 -0
- package/dist/core/protocol/wire/value-kinds.js +41 -0
- package/dist/core/protocol/wire/value-kinds.js.map +1 -0
- package/dist/core/protocol/wire/verbs.d.ts +94 -0
- package/dist/core/protocol/wire/verbs.d.ts.map +1 -0
- package/dist/core/protocol/wire/verbs.js +171 -0
- package/dist/core/protocol/wire/verbs.js.map +1 -0
- package/dist/core/protocol/wire/wire-dates.d.ts +8 -0
- package/dist/core/protocol/wire/wire-dates.d.ts.map +1 -0
- package/dist/core/protocol/wire/wire-dates.js +64 -0
- package/dist/core/protocol/wire/wire-dates.js.map +1 -0
- package/dist/core/protocol/wire/wire-value.d.ts +31 -0
- package/dist/core/protocol/wire/wire-value.d.ts.map +1 -0
- package/dist/core/protocol/wire/wire-value.js +72 -0
- package/dist/core/protocol/wire/wire-value.js.map +1 -0
- package/dist/core/runtime-rpc.plugin.d.ts +7 -0
- package/dist/core/runtime-rpc.plugin.d.ts.map +1 -0
- package/dist/core/runtime-rpc.plugin.js +22 -0
- package/dist/core/runtime-rpc.plugin.js.map +1 -0
- package/dist/core/utils/exec.d.ts +2 -0
- package/dist/core/utils/exec.d.ts.map +1 -0
- package/dist/core/utils/exec.js +2 -0
- package/dist/core/utils/exec.js.map +1 -0
- package/dist/core/utils/http-serve.d.ts +13 -0
- package/dist/core/utils/http-serve.d.ts.map +1 -0
- package/dist/core/utils/http-serve.js +46 -0
- package/dist/core/utils/http-serve.js.map +1 -0
- package/dist/daemon/auth/cors.d.ts +7 -0
- package/dist/daemon/auth/cors.d.ts.map +1 -0
- package/dist/daemon/auth/cors.js +12 -0
- package/dist/daemon/auth/cors.js.map +1 -0
- package/dist/daemon/auth/ingress/body.d.ts +6 -0
- package/dist/daemon/auth/ingress/body.d.ts.map +1 -0
- package/dist/daemon/auth/ingress/body.js +19 -0
- package/dist/daemon/auth/ingress/body.js.map +1 -0
- package/dist/daemon/auth/ingress/finalize.d.ts +2 -0
- package/dist/daemon/auth/ingress/finalize.d.ts.map +1 -0
- package/dist/daemon/auth/ingress/finalize.js +40 -0
- package/dist/daemon/auth/ingress/finalize.js.map +1 -0
- package/dist/daemon/auth/ingress/json.d.ts +4 -0
- package/dist/daemon/auth/ingress/json.d.ts.map +1 -0
- package/dist/daemon/auth/ingress/json.js +23 -0
- package/dist/daemon/auth/ingress/json.js.map +1 -0
- package/dist/daemon/auth/ingress/nonce.d.ts +4 -0
- package/dist/daemon/auth/ingress/nonce.d.ts.map +1 -0
- package/dist/daemon/auth/ingress/nonce.js +50 -0
- package/dist/daemon/auth/ingress/nonce.js.map +1 -0
- package/dist/daemon/auth/ingress/pair.d.ts +10 -0
- package/dist/daemon/auth/ingress/pair.d.ts.map +1 -0
- package/dist/daemon/auth/ingress/pair.js +42 -0
- package/dist/daemon/auth/ingress/pair.js.map +1 -0
- package/dist/daemon/auth/ingress/rpc.d.ts +3 -0
- package/dist/daemon/auth/ingress/rpc.d.ts.map +1 -0
- package/dist/daemon/auth/ingress/rpc.js +15 -0
- package/dist/daemon/auth/ingress/rpc.js.map +1 -0
- package/dist/daemon/auth/pairing-binding.d.ts +44 -0
- package/dist/daemon/auth/pairing-binding.d.ts.map +1 -0
- package/dist/daemon/auth/pairing-binding.js +66 -0
- package/dist/daemon/auth/pairing-binding.js.map +1 -0
- package/dist/daemon/auth/redact.d.ts +3 -0
- package/dist/daemon/auth/redact.d.ts.map +1 -0
- package/dist/daemon/auth/redact.js +3 -0
- package/dist/daemon/auth/redact.js.map +1 -0
- package/dist/daemon/auth/tcp-dispatch.d.ts +6 -0
- package/dist/daemon/auth/tcp-dispatch.d.ts.map +1 -0
- package/dist/daemon/auth/tcp-dispatch.js +41 -0
- package/dist/daemon/auth/tcp-dispatch.js.map +1 -0
- package/dist/daemon/auth/tcp-handler.d.ts +22 -0
- package/dist/daemon/auth/tcp-handler.d.ts.map +1 -0
- package/dist/daemon/auth/tcp-handler.js +61 -0
- package/dist/daemon/auth/tcp-handler.js.map +1 -0
- package/dist/daemon/client/contracts1/arguments.d.ts +3 -0
- package/dist/daemon/client/contracts1/arguments.d.ts.map +1 -0
- package/dist/daemon/client/contracts1/arguments.js +17 -0
- package/dist/daemon/client/contracts1/arguments.js.map +1 -0
- package/dist/daemon/client/contracts1/connection.d.ts +51 -0
- package/dist/daemon/client/contracts1/connection.d.ts.map +1 -0
- package/dist/daemon/client/contracts1/connection.js +158 -0
- package/dist/daemon/client/contracts1/connection.js.map +1 -0
- package/dist/daemon/client/contracts1/connectivity.d.ts +28 -0
- package/dist/daemon/client/contracts1/connectivity.d.ts.map +1 -0
- package/dist/daemon/client/contracts1/connectivity.js +72 -0
- package/dist/daemon/client/contracts1/connectivity.js.map +1 -0
- package/dist/daemon/client/contracts1/index.consumer.d.ts +13 -0
- package/dist/daemon/client/contracts1/index.consumer.d.ts.map +1 -0
- package/dist/daemon/client/contracts1/index.consumer.js +10 -0
- package/dist/daemon/client/contracts1/index.consumer.js.map +1 -0
- package/dist/daemon/client/contracts1/paths.d.ts +8 -0
- package/dist/daemon/client/contracts1/paths.d.ts.map +1 -0
- package/dist/daemon/client/contracts1/paths.js +17 -0
- package/dist/daemon/client/contracts1/paths.js.map +1 -0
- package/dist/daemon/client/contracts1/reclaim.d.ts +5 -0
- package/dist/daemon/client/contracts1/reclaim.d.ts.map +1 -0
- package/dist/daemon/client/contracts1/reclaim.js +10 -0
- package/dist/daemon/client/contracts1/reclaim.js.map +1 -0
- package/dist/daemon/client/contracts1/responses.d.ts +10 -0
- package/dist/daemon/client/contracts1/responses.d.ts.map +1 -0
- package/dist/daemon/client/contracts1/responses.js +108 -0
- package/dist/daemon/client/contracts1/responses.js.map +1 -0
- package/dist/daemon/client/contracts1/restart.d.ts +69 -0
- package/dist/daemon/client/contracts1/restart.d.ts.map +1 -0
- package/dist/daemon/client/contracts1/restart.js +181 -0
- package/dist/daemon/client/contracts1/restart.js.map +1 -0
- package/dist/daemon/client/contracts1/supervised-lifecycle.d.ts +28 -0
- package/dist/daemon/client/contracts1/supervised-lifecycle.d.ts.map +1 -0
- package/dist/daemon/client/contracts1/supervised-lifecycle.js +96 -0
- package/dist/daemon/client/contracts1/supervised-lifecycle.js.map +1 -0
- package/dist/daemon/client/contracts2/stop.d.ts +6 -0
- package/dist/daemon/client/contracts2/stop.d.ts.map +1 -0
- package/dist/daemon/client/contracts2/stop.js +41 -0
- package/dist/daemon/client/contracts2/stop.js.map +1 -0
- package/dist/daemon/client/contracts2/unix-client.d.ts +24 -0
- package/dist/daemon/client/contracts2/unix-client.d.ts.map +1 -0
- package/dist/daemon/client/contracts2/unix-client.js +84 -0
- package/dist/daemon/client/contracts2/unix-client.js.map +1 -0
- package/dist/daemon/client/contracts2/wait.d.ts +22 -0
- package/dist/daemon/client/contracts2/wait.d.ts.map +1 -0
- package/dist/daemon/client/contracts2/wait.js +37 -0
- package/dist/daemon/client/contracts2/wait.js.map +1 -0
- package/dist/daemon/commands/argv/options.d.ts +5 -0
- package/dist/daemon/commands/argv/options.d.ts.map +1 -0
- package/dist/daemon/commands/argv/options.js +93 -0
- package/dist/daemon/commands/argv/options.js.map +1 -0
- package/dist/daemon/commands/argv/values.d.ts +8 -0
- package/dist/daemon/commands/argv/values.d.ts.map +1 -0
- package/dist/daemon/commands/argv/values.js +25 -0
- package/dist/daemon/commands/argv/values.js.map +1 -0
- package/dist/daemon/commands/command-argv.d.ts +30 -0
- package/dist/daemon/commands/command-argv.d.ts.map +1 -0
- package/dist/daemon/commands/command-argv.js +115 -0
- package/dist/daemon/commands/command-argv.js.map +1 -0
- package/dist/daemon/commands/data/query.d.ts +12 -0
- package/dist/daemon/commands/data/query.d.ts.map +1 -0
- package/dist/daemon/commands/data/query.js +85 -0
- package/dist/daemon/commands/data/query.js.map +1 -0
- package/dist/daemon/commands/data/read.d.ts +12 -0
- package/dist/daemon/commands/data/read.d.ts.map +1 -0
- package/dist/daemon/commands/data/read.js +156 -0
- package/dist/daemon/commands/data/read.js.map +1 -0
- package/dist/daemon/commands/data/resolve.d.ts +11 -0
- package/dist/daemon/commands/data/resolve.d.ts.map +1 -0
- package/dist/daemon/commands/data/resolve.js +73 -0
- package/dist/daemon/commands/data/resolve.js.map +1 -0
- package/dist/daemon/commands/data/write.d.ts +7 -0
- package/dist/daemon/commands/data/write.d.ts.map +1 -0
- package/dist/daemon/commands/data/write.js +126 -0
- package/dist/daemon/commands/data/write.js.map +1 -0
- package/dist/daemon/commands/doctor.d.ts +11 -0
- package/dist/daemon/commands/doctor.d.ts.map +1 -0
- package/dist/daemon/commands/doctor.js +43 -0
- package/dist/daemon/commands/doctor.js.map +1 -0
- package/dist/daemon/commands/health.d.ts +22 -0
- package/dist/daemon/commands/health.d.ts.map +1 -0
- package/dist/daemon/commands/health.js +28 -0
- package/dist/daemon/commands/health.js.map +1 -0
- package/dist/daemon/commands/invoke/command.d.ts +23 -0
- package/dist/daemon/commands/invoke/command.d.ts.map +1 -0
- package/dist/daemon/commands/invoke/command.js +108 -0
- package/dist/daemon/commands/invoke/command.js.map +1 -0
- package/dist/daemon/commands/invoke/logger.d.ts +12 -0
- package/dist/daemon/commands/invoke/logger.d.ts.map +1 -0
- package/dist/daemon/commands/invoke/logger.js +40 -0
- package/dist/daemon/commands/invoke/logger.js.map +1 -0
- package/dist/daemon/commands/invoke/tool.d.ts +15 -0
- package/dist/daemon/commands/invoke/tool.d.ts.map +1 -0
- package/dist/daemon/commands/invoke/tool.js +93 -0
- package/dist/daemon/commands/invoke/tool.js.map +1 -0
- package/dist/daemon/commands/invoke.d.ts +31 -0
- package/dist/daemon/commands/invoke.d.ts.map +1 -0
- package/dist/daemon/commands/invoke.js +100 -0
- package/dist/daemon/commands/invoke.js.map +1 -0
- package/dist/daemon/commands/subscribe.d.ts +16 -0
- package/dist/daemon/commands/subscribe.d.ts.map +1 -0
- package/dist/daemon/commands/subscribe.js +108 -0
- package/dist/daemon/commands/subscribe.js.map +1 -0
- package/dist/daemon/commands/subscription-cleanup.d.ts +4 -0
- package/dist/daemon/commands/subscription-cleanup.d.ts.map +1 -0
- package/dist/daemon/commands/subscription-cleanup.js +32 -0
- package/dist/daemon/commands/subscription-cleanup.js.map +1 -0
- package/dist/daemon/hosting/config/load.d.ts +5 -0
- package/dist/daemon/hosting/config/load.d.ts.map +1 -0
- package/dist/daemon/hosting/config/load.js +12 -0
- package/dist/daemon/hosting/config/load.js.map +1 -0
- package/dist/daemon/hosting/config/runtime-rpc.config.descriptor.d.ts +45 -0
- package/dist/daemon/hosting/config/runtime-rpc.config.descriptor.d.ts.map +1 -0
- package/dist/daemon/hosting/config/runtime-rpc.config.descriptor.js +33 -0
- package/dist/daemon/hosting/config/runtime-rpc.config.descriptor.js.map +1 -0
- package/dist/daemon/hosting/daemon-host/host-hot-reload.consumer.d.ts +5 -0
- package/dist/daemon/hosting/daemon-host/host-hot-reload.consumer.d.ts.map +1 -0
- package/dist/daemon/hosting/daemon-host/host-hot-reload.consumer.js +15 -0
- package/dist/daemon/hosting/daemon-host/host-hot-reload.consumer.js.map +1 -0
- package/dist/daemon/hosting/daemon-host/hot-plugin-module.consumer.d.ts +19 -0
- package/dist/daemon/hosting/daemon-host/hot-plugin-module.consumer.d.ts.map +1 -0
- package/dist/daemon/hosting/daemon-host/hot-plugin-module.consumer.js +16 -0
- package/dist/daemon/hosting/daemon-host/hot-plugin-module.consumer.js.map +1 -0
- package/dist/daemon/hosting/daemon-host/hot-reload.consumer.d.ts +2 -0
- package/dist/daemon/hosting/daemon-host/hot-reload.consumer.d.ts.map +1 -0
- package/dist/daemon/hosting/daemon-host/hot-reload.consumer.js +2 -0
- package/dist/daemon/hosting/daemon-host/hot-reload.consumer.js.map +1 -0
- package/dist/daemon/hosting/daemon-host/index.d.ts +15 -0
- package/dist/daemon/hosting/daemon-host/index.d.ts.map +1 -0
- package/dist/daemon/hosting/daemon-host/index.js +12 -0
- package/dist/daemon/hosting/daemon-host/index.js.map +1 -0
- package/dist/daemon/hosting/daemon-host/resolve-plugin-host.d.ts +4 -0
- package/dist/daemon/hosting/daemon-host/resolve-plugin-host.d.ts.map +1 -0
- package/dist/daemon/hosting/daemon-host/resolve-plugin-host.js +5 -0
- package/dist/daemon/hosting/daemon-host/resolve-plugin-host.js.map +1 -0
- package/dist/daemon/hosting/execution/daemon-execution-host.consumer.d.ts +14 -0
- package/dist/daemon/hosting/execution/daemon-execution-host.consumer.d.ts.map +1 -0
- package/dist/daemon/hosting/execution/daemon-execution-host.consumer.js +216 -0
- package/dist/daemon/hosting/execution/daemon-execution-host.consumer.js.map +1 -0
- package/dist/daemon/hosting/execution/execution-boot.d.ts +24 -0
- package/dist/daemon/hosting/execution/execution-boot.d.ts.map +1 -0
- package/dist/daemon/hosting/execution/execution-boot.js +130 -0
- package/dist/daemon/hosting/execution/execution-boot.js.map +1 -0
- package/dist/daemon/hosting/execution/execution-failure.d.ts +33 -0
- package/dist/daemon/hosting/execution/execution-failure.d.ts.map +1 -0
- package/dist/daemon/hosting/execution/execution-failure.js +94 -0
- package/dist/daemon/hosting/execution/execution-failure.js.map +1 -0
- package/dist/daemon/hosting/execution/execution-host.schemas.d.ts +7 -0
- package/dist/daemon/hosting/execution/execution-host.schemas.d.ts.map +1 -0
- package/dist/daemon/hosting/execution/execution-host.schemas.js +6 -0
- package/dist/daemon/hosting/execution/execution-host.schemas.js.map +1 -0
- package/dist/daemon/hosting/host/host-hot-reload.consumer.d.ts +3 -0
- package/dist/daemon/hosting/host/host-hot-reload.consumer.d.ts.map +1 -0
- package/dist/daemon/hosting/host/host-hot-reload.consumer.js +3 -0
- package/dist/daemon/hosting/host/host-hot-reload.consumer.js.map +1 -0
- package/dist/daemon/hosting/host/hot-plugin-module.consumer.d.ts +3 -0
- package/dist/daemon/hosting/host/hot-plugin-module.consumer.d.ts.map +1 -0
- package/dist/daemon/hosting/host/hot-plugin-module.consumer.js +3 -0
- package/dist/daemon/hosting/host/hot-plugin-module.consumer.js.map +1 -0
- package/dist/daemon/hosting/host/hot-reload.consumer.d.ts +3 -0
- package/dist/daemon/hosting/host/hot-reload.consumer.d.ts.map +1 -0
- package/dist/daemon/hosting/host/hot-reload.consumer.js +3 -0
- package/dist/daemon/hosting/host/hot-reload.consumer.js.map +1 -0
- package/dist/daemon/hosting/host/index.d.ts +3 -0
- package/dist/daemon/hosting/host/index.d.ts.map +1 -0
- package/dist/daemon/hosting/host/index.js +3 -0
- package/dist/daemon/hosting/host/index.js.map +1 -0
- package/dist/daemon/hosting/host/resolve-plugin-host.d.ts +3 -0
- package/dist/daemon/hosting/host/resolve-plugin-host.d.ts.map +1 -0
- package/dist/daemon/hosting/host/resolve-plugin-host.js +3 -0
- package/dist/daemon/hosting/host/resolve-plugin-host.js.map +1 -0
- package/dist/daemon/hosting/logging/runtime-daemon.logger.descriptor.d.ts +7 -0
- package/dist/daemon/hosting/logging/runtime-daemon.logger.descriptor.d.ts.map +1 -0
- package/dist/daemon/hosting/logging/runtime-daemon.logger.descriptor.js +16 -0
- package/dist/daemon/hosting/logging/runtime-daemon.logger.descriptor.js.map +1 -0
- package/dist/daemon/hosting/logging/runtime-daemon.output.descriptor.d.ts +9 -0
- package/dist/daemon/hosting/logging/runtime-daemon.output.descriptor.d.ts.map +1 -0
- package/dist/daemon/hosting/logging/runtime-daemon.output.descriptor.js +19 -0
- package/dist/daemon/hosting/logging/runtime-daemon.output.descriptor.js.map +1 -0
- package/dist/daemon/hosting/plugin.d.ts +9 -0
- package/dist/daemon/hosting/plugin.d.ts.map +1 -0
- package/dist/daemon/hosting/plugin.js +63 -0
- package/dist/daemon/hosting/plugin.js.map +1 -0
- package/dist/daemon/hosting/process/daemon-role.d.ts +17 -0
- package/dist/daemon/hosting/process/daemon-role.d.ts.map +1 -0
- package/dist/daemon/hosting/process/daemon-role.js +18 -0
- package/dist/daemon/hosting/process/daemon-role.js.map +1 -0
- package/dist/daemon/hosting/process/daemon.consumer.d.ts +10 -0
- package/dist/daemon/hosting/process/daemon.consumer.d.ts.map +1 -0
- package/dist/daemon/hosting/process/daemon.consumer.js +8 -0
- package/dist/daemon/hosting/process/daemon.consumer.js.map +1 -0
- package/dist/daemon/hosting/process/reclaim.consumer.d.ts +12 -0
- package/dist/daemon/hosting/process/reclaim.consumer.d.ts.map +1 -0
- package/dist/daemon/hosting/process/reclaim.consumer.js +34 -0
- package/dist/daemon/hosting/process/reclaim.consumer.js.map +1 -0
- package/dist/daemon/hosting/process/runtime-config.d.ts +22 -0
- package/dist/daemon/hosting/process/runtime-config.d.ts.map +1 -0
- package/dist/daemon/hosting/process/runtime-config.js +37 -0
- package/dist/daemon/hosting/process/runtime-config.js.map +1 -0
- package/dist/daemon/hosting/process/runtime-daemon-supervisor.kind.d.ts +4 -0
- package/dist/daemon/hosting/process/runtime-daemon-supervisor.kind.d.ts.map +1 -0
- package/dist/daemon/hosting/process/runtime-daemon-supervisor.kind.js +40 -0
- package/dist/daemon/hosting/process/runtime-daemon-supervisor.kind.js.map +1 -0
- package/dist/daemon/hosting/process/runtime-daemon.process.descriptor.d.ts +43 -0
- package/dist/daemon/hosting/process/runtime-daemon.process.descriptor.d.ts.map +1 -0
- package/dist/daemon/hosting/process/runtime-daemon.process.descriptor.js +56 -0
- package/dist/daemon/hosting/process/runtime-daemon.process.descriptor.js.map +1 -0
- package/dist/daemon/hosting/process/runtime-process-autostart.descriptor.d.ts +12 -0
- package/dist/daemon/hosting/process/runtime-process-autostart.descriptor.d.ts.map +1 -0
- package/dist/daemon/hosting/process/runtime-process-autostart.descriptor.js +12 -0
- package/dist/daemon/hosting/process/runtime-process-autostart.descriptor.js.map +1 -0
- package/dist/daemon/hosting/process/runtime-process-autostart.impl.consumer.d.ts +6 -0
- package/dist/daemon/hosting/process/runtime-process-autostart.impl.consumer.d.ts.map +1 -0
- package/dist/daemon/hosting/process/runtime-process-autostart.impl.consumer.js +88 -0
- package/dist/daemon/hosting/process/runtime-process-autostart.impl.consumer.js.map +1 -0
- package/dist/daemon/hosting/process/spawn.consumer.d.ts +42 -0
- package/dist/daemon/hosting/process/spawn.consumer.d.ts.map +1 -0
- package/dist/daemon/hosting/process/spawn.consumer.js +69 -0
- package/dist/daemon/hosting/process/spawn.consumer.js.map +1 -0
- package/dist/daemon/hosting/process/start-timeout.d.ts +11 -0
- package/dist/daemon/hosting/process/start-timeout.d.ts.map +1 -0
- package/dist/daemon/hosting/process/start-timeout.js +13 -0
- package/dist/daemon/hosting/process/start-timeout.js.map +1 -0
- package/dist/daemon/hosting/socket/paths.consumer.d.ts +11 -0
- package/dist/daemon/hosting/socket/paths.consumer.d.ts.map +1 -0
- package/dist/daemon/hosting/socket/paths.consumer.js +11 -0
- package/dist/daemon/hosting/socket/paths.consumer.js.map +1 -0
- package/dist/daemon/hosting/socket/runtime-daemon-endpoint.impl.consumer.d.ts +28 -0
- package/dist/daemon/hosting/socket/runtime-daemon-endpoint.impl.consumer.d.ts.map +1 -0
- package/dist/daemon/hosting/socket/runtime-daemon-endpoint.impl.consumer.js +17 -0
- package/dist/daemon/hosting/socket/runtime-daemon-endpoint.impl.consumer.js.map +1 -0
- package/dist/daemon/hosting/socket/runtime-daemon.socket-path.d.ts +59 -0
- package/dist/daemon/hosting/socket/runtime-daemon.socket-path.d.ts.map +1 -0
- package/dist/daemon/hosting/socket/runtime-daemon.socket-path.js +72 -0
- package/dist/daemon/hosting/socket/runtime-daemon.socket-path.js.map +1 -0
- package/dist/daemon/pairing/client.consumer.d.ts +11 -0
- package/dist/daemon/pairing/client.consumer.d.ts.map +1 -0
- package/dist/daemon/pairing/client.consumer.js +73 -0
- package/dist/daemon/pairing/client.consumer.js.map +1 -0
- package/dist/daemon/pairing/contexts/runtime-machine-identity.context.descriptor.d.ts +47 -0
- package/dist/daemon/pairing/contexts/runtime-machine-identity.context.descriptor.d.ts.map +1 -0
- package/dist/daemon/pairing/contexts/runtime-machine-identity.context.descriptor.js +24 -0
- package/dist/daemon/pairing/contexts/runtime-machine-identity.context.descriptor.js.map +1 -0
- package/dist/daemon/pairing/contexts/runtime-machine-identity.context.impl.consumer.d.ts +17 -0
- package/dist/daemon/pairing/contexts/runtime-machine-identity.context.impl.consumer.d.ts.map +1 -0
- package/dist/daemon/pairing/contexts/runtime-machine-identity.context.impl.consumer.js +11 -0
- package/dist/daemon/pairing/contexts/runtime-machine-identity.context.impl.consumer.js.map +1 -0
- package/dist/daemon/pairing/contexts/runtime-machines.context.descriptor.d.ts +38 -0
- package/dist/daemon/pairing/contexts/runtime-machines.context.descriptor.d.ts.map +1 -0
- package/dist/daemon/pairing/contexts/runtime-machines.context.descriptor.js +15 -0
- package/dist/daemon/pairing/contexts/runtime-machines.context.descriptor.js.map +1 -0
- package/dist/daemon/pairing/contexts/runtime-machines.context.impl.consumer.d.ts +17 -0
- package/dist/daemon/pairing/contexts/runtime-machines.context.impl.consumer.d.ts.map +1 -0
- package/dist/daemon/pairing/contexts/runtime-machines.context.impl.consumer.js +11 -0
- package/dist/daemon/pairing/contexts/runtime-machines.context.impl.consumer.js.map +1 -0
- package/dist/daemon/pairing/index.d.ts +10 -0
- package/dist/daemon/pairing/index.d.ts.map +1 -0
- package/dist/daemon/pairing/index.js +6 -0
- package/dist/daemon/pairing/index.js.map +1 -0
- package/dist/daemon/pairing/json-file-store.consumer.d.ts +25 -0
- package/dist/daemon/pairing/json-file-store.consumer.d.ts.map +1 -0
- package/dist/daemon/pairing/json-file-store.consumer.js +139 -0
- package/dist/daemon/pairing/json-file-store.consumer.js.map +1 -0
- package/dist/daemon/pairing/machine-identity.consumer.d.ts +9 -0
- package/dist/daemon/pairing/machine-identity.consumer.d.ts.map +1 -0
- package/dist/daemon/pairing/machine-identity.consumer.js +44 -0
- package/dist/daemon/pairing/machine-identity.consumer.js.map +1 -0
- package/dist/daemon/pairing/machines.consumer.d.ts +36 -0
- package/dist/daemon/pairing/machines.consumer.d.ts.map +1 -0
- package/dist/daemon/pairing/machines.consumer.js +118 -0
- package/dist/daemon/pairing/machines.consumer.js.map +1 -0
- package/dist/daemon/pairing/paired-clients.consumer.d.ts +26 -0
- package/dist/daemon/pairing/paired-clients.consumer.d.ts.map +1 -0
- package/dist/daemon/pairing/paired-clients.consumer.js +72 -0
- package/dist/daemon/pairing/paired-clients.consumer.js.map +1 -0
- package/dist/daemon/pairing/pairing.d.ts +76 -0
- package/dist/daemon/pairing/pairing.d.ts.map +1 -0
- package/dist/daemon/pairing/pairing.js +141 -0
- package/dist/daemon/pairing/pairing.js.map +1 -0
- package/dist/daemon/pairing/types.d.ts +3 -0
- package/dist/daemon/pairing/types.d.ts.map +1 -0
- package/dist/daemon/pairing/types.js +2 -0
- package/dist/daemon/pairing/types.js.map +1 -0
- package/dist/daemon/protocol/schemas.d.ts +3 -0
- package/dist/daemon/protocol/schemas.d.ts.map +1 -0
- package/dist/daemon/protocol/schemas.js +3 -0
- package/dist/daemon/protocol/schemas.js.map +1 -0
- package/dist/daemon/runtime/configuration.d.ts +9 -0
- package/dist/daemon/runtime/configuration.d.ts.map +1 -0
- package/dist/daemon/runtime/configuration.js +49 -0
- package/dist/daemon/runtime/configuration.js.map +1 -0
- package/dist/daemon/runtime/coordinator.d.ts +10 -0
- package/dist/daemon/runtime/coordinator.d.ts.map +1 -0
- package/dist/daemon/runtime/coordinator.js +13 -0
- package/dist/daemon/runtime/coordinator.js.map +1 -0
- package/dist/daemon/runtime/helpers.d.ts +20 -0
- package/dist/daemon/runtime/helpers.d.ts.map +1 -0
- package/dist/daemon/runtime/helpers.js +48 -0
- package/dist/daemon/runtime/helpers.js.map +1 -0
- package/dist/daemon/runtime/io/endpoint.d.ts +12 -0
- package/dist/daemon/runtime/io/endpoint.d.ts.map +1 -0
- package/dist/daemon/runtime/io/endpoint.js +70 -0
- package/dist/daemon/runtime/io/endpoint.js.map +1 -0
- package/dist/daemon/runtime/io/execution.d.ts +4 -0
- package/dist/daemon/runtime/io/execution.d.ts.map +1 -0
- package/dist/daemon/runtime/io/execution.js +118 -0
- package/dist/daemon/runtime/io/execution.js.map +1 -0
- package/dist/daemon/runtime/io/host.d.ts +16 -0
- package/dist/daemon/runtime/io/host.d.ts.map +1 -0
- package/dist/daemon/runtime/io/host.js +70 -0
- package/dist/daemon/runtime/io/host.js.map +1 -0
- package/dist/daemon/runtime/io/http.d.ts +4 -0
- package/dist/daemon/runtime/io/http.d.ts.map +1 -0
- package/dist/daemon/runtime/io/http.js +91 -0
- package/dist/daemon/runtime/io/http.js.map +1 -0
- package/dist/daemon/runtime/io/paths.d.ts +5 -0
- package/dist/daemon/runtime/io/paths.d.ts.map +1 -0
- package/dist/daemon/runtime/io/paths.js +55 -0
- package/dist/daemon/runtime/io/paths.js.map +1 -0
- package/dist/daemon/runtime/io/pid.d.ts +5 -0
- package/dist/daemon/runtime/io/pid.d.ts.map +1 -0
- package/dist/daemon/runtime/io/pid.js +77 -0
- package/dist/daemon/runtime/io/pid.js.map +1 -0
- package/dist/daemon/runtime/lifecycle/reload.d.ts +4 -0
- package/dist/daemon/runtime/lifecycle/reload.d.ts.map +1 -0
- package/dist/daemon/runtime/lifecycle/reload.js +25 -0
- package/dist/daemon/runtime/lifecycle/reload.js.map +1 -0
- package/dist/daemon/runtime/lifecycle/shutdown.d.ts +6 -0
- package/dist/daemon/runtime/lifecycle/shutdown.d.ts.map +1 -0
- package/dist/daemon/runtime/lifecycle/shutdown.js +81 -0
- package/dist/daemon/runtime/lifecycle/shutdown.js.map +1 -0
- package/dist/daemon/runtime/lifecycle/startup.d.ts +3 -0
- package/dist/daemon/runtime/lifecycle/startup.d.ts.map +1 -0
- package/dist/daemon/runtime/lifecycle/startup.js +113 -0
- package/dist/daemon/runtime/lifecycle/startup.js.map +1 -0
- package/dist/daemon/runtime/main.d.ts +3 -0
- package/dist/daemon/runtime/main.d.ts.map +1 -0
- package/dist/daemon/runtime/main.js +97 -0
- package/dist/daemon/runtime/main.js.map +1 -0
- package/dist/daemon/runtime/state.d.ts +55 -0
- package/dist/daemon/runtime/state.d.ts.map +1 -0
- package/dist/daemon/runtime/state.js +83 -0
- package/dist/daemon/runtime/state.js.map +1 -0
- package/dist/daemon/services/api/command-handler.contracts.d.ts +8 -0
- package/dist/daemon/services/api/command-handler.contracts.d.ts.map +1 -0
- package/dist/daemon/services/api/command-handler.contracts.js +8 -0
- package/dist/daemon/services/api/command-handler.contracts.js.map +1 -0
- package/dist/daemon/services/api/command-handler.d.ts +52 -0
- package/dist/daemon/services/api/command-handler.d.ts.map +1 -0
- package/dist/daemon/services/api/command-handler.js +79 -0
- package/dist/daemon/services/api/command-handler.js.map +1 -0
- package/dist/daemon/services/api/errors.d.ts +36 -0
- package/dist/daemon/services/api/errors.d.ts.map +1 -0
- package/dist/daemon/services/api/errors.js +71 -0
- package/dist/daemon/services/api/errors.js.map +1 -0
- package/dist/daemon/services/api/rpc-root.d.ts +41 -0
- package/dist/daemon/services/api/rpc-root.d.ts.map +1 -0
- package/dist/daemon/services/api/rpc-root.js +95 -0
- package/dist/daemon/services/api/rpc-root.js.map +1 -0
- package/dist/daemon/services/contracts.d.ts +6 -0
- package/dist/daemon/services/contracts.d.ts.map +1 -0
- package/dist/daemon/services/contracts.js +3 -0
- package/dist/daemon/services/contracts.js.map +1 -0
- package/dist/daemon/services/health.d.ts +20 -0
- package/dist/daemon/services/health.d.ts.map +1 -0
- package/dist/daemon/services/health.js +56 -0
- package/dist/daemon/services/health.js.map +1 -0
- package/dist/daemon/subscriptions/clients.d.ts +57 -0
- package/dist/daemon/subscriptions/clients.d.ts.map +1 -0
- package/dist/daemon/subscriptions/clients.js +136 -0
- package/dist/daemon/subscriptions/clients.js.map +1 -0
- package/dist/daemon/subscriptions/config-watcher.d.ts +11 -0
- package/dist/daemon/subscriptions/config-watcher.d.ts.map +1 -0
- package/dist/daemon/subscriptions/config-watcher.js +17 -0
- package/dist/daemon/subscriptions/config-watcher.js.map +1 -0
- package/dist/daemon/subscriptions/manager.d.ts +41 -0
- package/dist/daemon/subscriptions/manager.d.ts.map +1 -0
- package/dist/daemon/subscriptions/manager.js +73 -0
- package/dist/daemon/subscriptions/manager.js.map +1 -0
- package/dist/daemon/subscriptions/manifest-watcher.d.ts +30 -0
- package/dist/daemon/subscriptions/manifest-watcher.d.ts.map +1 -0
- package/dist/daemon/subscriptions/manifest-watcher.js +100 -0
- package/dist/daemon/subscriptions/manifest-watcher.js.map +1 -0
- package/dist/daemon/subscriptions/storage-watcher.d.ts +11 -0
- package/dist/daemon/subscriptions/storage-watcher.d.ts.map +1 -0
- package/dist/daemon/subscriptions/storage-watcher.js +16 -0
- package/dist/daemon/subscriptions/storage-watcher.js.map +1 -0
- package/dist/docs/lifecycle.docs.descriptor.d.ts +4 -0
- package/dist/docs/lifecycle.docs.descriptor.d.ts.map +1 -0
- package/dist/docs/lifecycle.docs.descriptor.js +91 -0
- package/dist/docs/lifecycle.docs.descriptor.js.map +1 -0
- package/dist/docs/plugin.d.ts +3 -0
- package/dist/docs/plugin.d.ts.map +1 -0
- package/dist/docs/plugin.js +25 -0
- package/dist/docs/plugin.js.map +1 -0
- package/dist/docs/runtime-rpc.docs.descriptor.d.ts +9 -0
- package/dist/docs/runtime-rpc.docs.descriptor.d.ts.map +1 -0
- package/dist/docs/runtime-rpc.docs.descriptor.js +184 -0
- package/dist/docs/runtime-rpc.docs.descriptor.js.map +1 -0
- package/dist/docs/system.docs.descriptor.d.ts +4 -0
- package/dist/docs/system.docs.descriptor.d.ts.map +1 -0
- package/dist/docs/system.docs.descriptor.js +115 -0
- package/dist/docs/system.docs.descriptor.js.map +1 -0
- package/dist/execution/execution.client.impl.d.ts +8 -0
- package/dist/execution/execution.client.impl.d.ts.map +1 -0
- package/dist/execution/execution.client.impl.js +12 -0
- package/dist/execution/execution.client.impl.js.map +1 -0
- package/dist/execution/execution.plugin.d.ts +4 -0
- package/dist/execution/execution.plugin.d.ts.map +1 -0
- package/dist/execution/execution.plugin.js +20 -0
- package/dist/execution/execution.plugin.js.map +1 -0
- package/dist/execution/index.d.ts +5 -0
- package/dist/execution/index.d.ts.map +1 -0
- package/dist/execution/index.js +4 -0
- package/dist/execution/index.js.map +1 -0
- package/dist/execution/wire-process.d.ts +10 -0
- package/dist/execution/wire-process.d.ts.map +1 -0
- package/dist/execution/wire-process.js +467 -0
- package/dist/execution/wire-process.js.map +1 -0
- package/dist/index.d.ts +34 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +47 -0
- package/dist/index.js.map +1 -0
- package/dist/schemas/contracts/cli/_logging.d.ts +5 -0
- package/dist/schemas/contracts/cli/_logging.d.ts.map +1 -0
- package/dist/schemas/contracts/cli/_logging.js +2 -0
- package/dist/schemas/contracts/cli/_logging.js.map +1 -0
- package/dist/schemas/contracts/cli/daemon-execution.worker.entry.d.ts +236 -0
- package/dist/schemas/contracts/cli/daemon-execution.worker.entry.d.ts.map +1 -0
- package/dist/schemas/contracts/cli/daemon-execution.worker.entry.js +18 -0
- package/dist/schemas/contracts/cli/daemon-execution.worker.entry.js.map +1 -0
- package/dist/schemas/contracts/cli/runtime.daemon.restart.impl.consumer.d.ts +5 -0
- package/dist/schemas/contracts/cli/runtime.daemon.restart.impl.consumer.d.ts.map +1 -0
- package/dist/schemas/contracts/cli/runtime.daemon.restart.impl.consumer.js +5 -0
- package/dist/schemas/contracts/cli/runtime.daemon.restart.impl.consumer.js.map +1 -0
- package/dist/schemas/contracts/cli/runtime.daemon.status.impl.consumer.d.ts +5 -0
- package/dist/schemas/contracts/cli/runtime.daemon.status.impl.consumer.d.ts.map +1 -0
- package/dist/schemas/contracts/cli/runtime.daemon.status.impl.consumer.js +5 -0
- package/dist/schemas/contracts/cli/runtime.daemon.status.impl.consumer.js.map +1 -0
- package/dist/schemas/contracts/cli/runtime.daemon.stop.impl.consumer.d.ts +5 -0
- package/dist/schemas/contracts/cli/runtime.daemon.stop.impl.consumer.d.ts.map +1 -0
- package/dist/schemas/contracts/cli/runtime.daemon.stop.impl.consumer.js +5 -0
- package/dist/schemas/contracts/cli/runtime.daemon.stop.impl.consumer.js.map +1 -0
- package/dist/schemas/contracts/cli/runtime.doctor.impl.consumer.d.ts +6 -0
- package/dist/schemas/contracts/cli/runtime.doctor.impl.consumer.d.ts.map +1 -0
- package/dist/schemas/contracts/cli/runtime.doctor.impl.consumer.js +6 -0
- package/dist/schemas/contracts/cli/runtime.doctor.impl.consumer.js.map +1 -0
- package/dist/schemas/contracts/cli/runtime.query.impl.consumer.d.ts +10 -0
- package/dist/schemas/contracts/cli/runtime.query.impl.consumer.d.ts.map +1 -0
- package/dist/schemas/contracts/cli/runtime.query.impl.consumer.js +10 -0
- package/dist/schemas/contracts/cli/runtime.query.impl.consumer.js.map +1 -0
- package/dist/schemas/contracts/cli/runtime.status.impl.consumer.d.ts +5 -0
- package/dist/schemas/contracts/cli/runtime.status.impl.consumer.d.ts.map +1 -0
- package/dist/schemas/contracts/cli/runtime.status.impl.consumer.js +5 -0
- package/dist/schemas/contracts/cli/runtime.status.impl.consumer.js.map +1 -0
- package/dist/schemas/contracts/core/helper.d.ts +55 -0
- package/dist/schemas/contracts/core/helper.d.ts.map +1 -0
- package/dist/schemas/contracts/core/helper.js +14 -0
- package/dist/schemas/contracts/core/helper.js.map +1 -0
- package/dist/schemas/contracts/core/kinds/rpc.kind.d.ts +138 -0
- package/dist/schemas/contracts/core/kinds/rpc.kind.d.ts.map +1 -0
- package/dist/schemas/contracts/core/kinds/rpc.kind.js +81 -0
- package/dist/schemas/contracts/core/kinds/rpc.kind.js.map +1 -0
- package/dist/schemas/contracts/core/lifecycle-repeat.d.ts +6 -0
- package/dist/schemas/contracts/core/lifecycle-repeat.d.ts.map +1 -0
- package/dist/schemas/contracts/core/lifecycle-repeat.js +2 -0
- package/dist/schemas/contracts/core/lifecycle-repeat.js.map +1 -0
- package/dist/schemas/contracts/core/utils/http-serve.d.ts +16 -0
- package/dist/schemas/contracts/core/utils/http-serve.d.ts.map +1 -0
- package/dist/schemas/contracts/core/utils/http-serve.js +2 -0
- package/dist/schemas/contracts/core/utils/http-serve.js.map +1 -0
- package/dist/schemas/contracts/daemon/auth/capabilities.d.ts +4 -0
- package/dist/schemas/contracts/daemon/auth/capabilities.d.ts.map +1 -0
- package/dist/schemas/contracts/daemon/auth/capabilities.js +2 -0
- package/dist/schemas/contracts/daemon/auth/capabilities.js.map +1 -0
- package/dist/schemas/contracts/daemon/client/connection.d.ts +9 -0
- package/dist/schemas/contracts/daemon/client/connection.d.ts.map +1 -0
- package/dist/schemas/contracts/daemon/client/connection.js +3 -0
- package/dist/schemas/contracts/daemon/client/connection.js.map +1 -0
- package/dist/schemas/contracts/daemon/command-handler.d.ts +23 -0
- package/dist/schemas/contracts/daemon/command-handler.d.ts.map +1 -0
- package/dist/schemas/contracts/daemon/command-handler.js +2 -0
- package/dist/schemas/contracts/daemon/command-handler.js.map +1 -0
- package/dist/schemas/contracts/daemon/commands/argv/options.d.ts +2 -0
- package/dist/schemas/contracts/daemon/commands/argv/options.d.ts.map +1 -0
- package/dist/schemas/contracts/daemon/commands/argv/options.js +3 -0
- package/dist/schemas/contracts/daemon/commands/argv/options.js.map +1 -0
- package/dist/schemas/contracts/daemon/commands/argv/values.d.ts +4 -0
- package/dist/schemas/contracts/daemon/commands/argv/values.d.ts.map +1 -0
- package/dist/schemas/contracts/daemon/commands/argv/values.js +5 -0
- package/dist/schemas/contracts/daemon/commands/argv/values.js.map +1 -0
- package/dist/schemas/contracts/daemon/commands/doctor.d.ts +9 -0
- package/dist/schemas/contracts/daemon/commands/doctor.d.ts.map +1 -0
- package/dist/schemas/contracts/daemon/commands/doctor.js +9 -0
- package/dist/schemas/contracts/daemon/commands/doctor.js.map +1 -0
- package/dist/schemas/contracts/daemon/commands/query.d.ts +5 -0
- package/dist/schemas/contracts/daemon/commands/query.d.ts.map +1 -0
- package/dist/schemas/contracts/daemon/commands/query.js +3 -0
- package/dist/schemas/contracts/daemon/commands/query.js.map +1 -0
- package/dist/schemas/contracts/daemon/commands/read.d.ts +34 -0
- package/dist/schemas/contracts/daemon/commands/read.d.ts.map +1 -0
- package/dist/schemas/contracts/daemon/commands/read.js +23 -0
- package/dist/schemas/contracts/daemon/commands/read.js.map +1 -0
- package/dist/schemas/contracts/daemon/commands/resolve.d.ts +5 -0
- package/dist/schemas/contracts/daemon/commands/resolve.d.ts.map +1 -0
- package/dist/schemas/contracts/daemon/commands/resolve.js +5 -0
- package/dist/schemas/contracts/daemon/commands/resolve.js.map +1 -0
- package/dist/schemas/contracts/daemon/commands/subscribe.d.ts +20 -0
- package/dist/schemas/contracts/daemon/commands/subscribe.d.ts.map +1 -0
- package/dist/schemas/contracts/daemon/commands/subscribe.js +10 -0
- package/dist/schemas/contracts/daemon/commands/subscribe.js.map +1 -0
- package/dist/schemas/contracts/daemon/commands/write.d.ts +44 -0
- package/dist/schemas/contracts/daemon/commands/write.d.ts.map +1 -0
- package/dist/schemas/contracts/daemon/commands/write.js +19 -0
- package/dist/schemas/contracts/daemon/commands/write.js.map +1 -0
- package/dist/schemas/contracts/daemon/hosting/contracts1/config/load.d.ts +3 -0
- package/dist/schemas/contracts/daemon/hosting/contracts1/config/load.d.ts.map +1 -0
- package/dist/schemas/contracts/daemon/hosting/contracts1/config/load.js +2 -0
- package/dist/schemas/contracts/daemon/hosting/contracts1/config/load.js.map +1 -0
- package/dist/schemas/contracts/daemon/hosting/contracts1/config/runtime-rpc.config.descriptor.d.ts +7 -0
- package/dist/schemas/contracts/daemon/hosting/contracts1/config/runtime-rpc.config.descriptor.d.ts.map +1 -0
- package/dist/schemas/contracts/daemon/hosting/contracts1/config/runtime-rpc.config.descriptor.js +6 -0
- package/dist/schemas/contracts/daemon/hosting/contracts1/config/runtime-rpc.config.descriptor.js.map +1 -0
- package/dist/schemas/contracts/daemon/hosting/contracts1/daemon-execution-host.consumer.d.ts +20 -0
- package/dist/schemas/contracts/daemon/hosting/contracts1/daemon-execution-host.consumer.d.ts.map +1 -0
- package/dist/schemas/contracts/daemon/hosting/contracts1/daemon-execution-host.consumer.js +5 -0
- package/dist/schemas/contracts/daemon/hosting/contracts1/daemon-execution-host.consumer.js.map +1 -0
- package/dist/schemas/contracts/daemon/hosting/contracts1/daemon-host/hot-plugin-module.consumer.d.ts +19 -0
- package/dist/schemas/contracts/daemon/hosting/contracts1/daemon-host/hot-plugin-module.consumer.d.ts.map +1 -0
- package/dist/schemas/contracts/daemon/hosting/contracts1/daemon-host/hot-plugin-module.consumer.js +2 -0
- package/dist/schemas/contracts/daemon/hosting/contracts1/daemon-host/hot-plugin-module.consumer.js.map +1 -0
- package/dist/schemas/contracts/daemon/hosting/contracts1/daemon.consumer.d.ts +98 -0
- package/dist/schemas/contracts/daemon/hosting/contracts1/daemon.consumer.d.ts.map +1 -0
- package/dist/schemas/contracts/daemon/hosting/contracts1/daemon.consumer.js +6 -0
- package/dist/schemas/contracts/daemon/hosting/contracts1/daemon.consumer.js.map +1 -0
- package/dist/schemas/contracts/daemon/hosting/contracts1/execution-host.schemas.d.ts +894 -0
- package/dist/schemas/contracts/daemon/hosting/contracts1/execution-host.schemas.d.ts.map +1 -0
- package/dist/schemas/contracts/daemon/hosting/contracts1/execution-host.schemas.js +81 -0
- package/dist/schemas/contracts/daemon/hosting/contracts1/execution-host.schemas.js.map +1 -0
- package/dist/schemas/contracts/daemon/hosting/contracts1/host/hot-plugin-module.consumer.d.ts +19 -0
- package/dist/schemas/contracts/daemon/hosting/contracts1/host/hot-plugin-module.consumer.d.ts.map +1 -0
- package/dist/schemas/contracts/daemon/hosting/contracts1/host/hot-plugin-module.consumer.js +2 -0
- package/dist/schemas/contracts/daemon/hosting/contracts1/host/hot-plugin-module.consumer.js.map +1 -0
- package/dist/schemas/contracts/daemon/hosting/contracts1/reclaim.consumer.d.ts +3 -0
- package/dist/schemas/contracts/daemon/hosting/contracts1/reclaim.consumer.d.ts.map +1 -0
- package/dist/schemas/contracts/daemon/hosting/contracts1/reclaim.consumer.js +2 -0
- package/dist/schemas/contracts/daemon/hosting/contracts1/reclaim.consumer.js.map +1 -0
- package/dist/schemas/contracts/daemon/hosting/contracts1/runtime-config.d.ts +45 -0
- package/dist/schemas/contracts/daemon/hosting/contracts1/runtime-config.d.ts.map +1 -0
- package/dist/schemas/contracts/daemon/hosting/contracts1/runtime-config.js +28 -0
- package/dist/schemas/contracts/daemon/hosting/contracts1/runtime-config.js.map +1 -0
- package/dist/schemas/contracts/daemon/hosting/contracts2/runtime-daemon-endpoint.impl.consumer.d.ts +6 -0
- package/dist/schemas/contracts/daemon/hosting/contracts2/runtime-daemon-endpoint.impl.consumer.d.ts.map +1 -0
- package/dist/schemas/contracts/daemon/hosting/contracts2/runtime-daemon-endpoint.impl.consumer.js +2 -0
- package/dist/schemas/contracts/daemon/hosting/contracts2/runtime-daemon-endpoint.impl.consumer.js.map +1 -0
- package/dist/schemas/contracts/daemon/hosting/contracts2/runtime-daemon.socket-path.d.ts +9 -0
- package/dist/schemas/contracts/daemon/hosting/contracts2/runtime-daemon.socket-path.d.ts.map +1 -0
- package/dist/schemas/contracts/daemon/hosting/contracts2/runtime-daemon.socket-path.js +3 -0
- package/dist/schemas/contracts/daemon/hosting/contracts2/runtime-daemon.socket-path.js.map +1 -0
- package/dist/schemas/contracts/daemon/hosting/contracts2/spawn.consumer.d.ts +3 -0
- package/dist/schemas/contracts/daemon/hosting/contracts2/spawn.consumer.d.ts.map +1 -0
- package/dist/schemas/contracts/daemon/hosting/contracts2/spawn.consumer.js +2 -0
- package/dist/schemas/contracts/daemon/hosting/contracts2/spawn.consumer.js.map +1 -0
- package/dist/schemas/contracts/daemon/rpc-root.d.ts +3 -0
- package/dist/schemas/contracts/daemon/rpc-root.d.ts.map +1 -0
- package/dist/schemas/contracts/daemon/rpc-root.js +4 -0
- package/dist/schemas/contracts/daemon/rpc-root.js.map +1 -0
- package/dist/schemas/contracts/daemon/runtime/helpers.d.ts +12 -0
- package/dist/schemas/contracts/daemon/runtime/helpers.d.ts.map +1 -0
- package/dist/schemas/contracts/daemon/runtime/helpers.js +4 -0
- package/dist/schemas/contracts/daemon/runtime/helpers.js.map +1 -0
- package/dist/schemas/contracts/daemon/services/health.d.ts +17 -0
- package/dist/schemas/contracts/daemon/services/health.d.ts.map +1 -0
- package/dist/schemas/contracts/daemon/services/health.js +2 -0
- package/dist/schemas/contracts/daemon/services/health.js.map +1 -0
- package/dist/schemas/contracts/daemon/subscriptions/manager.d.ts +16 -0
- package/dist/schemas/contracts/daemon/subscriptions/manager.d.ts.map +1 -0
- package/dist/schemas/contracts/daemon/subscriptions/manager.js +2 -0
- package/dist/schemas/contracts/daemon/subscriptions/manager.js.map +1 -0
- package/dist/schemas/contracts/pairing/client.consumer.d.ts +31 -0
- package/dist/schemas/contracts/pairing/client.consumer.d.ts.map +1 -0
- package/dist/schemas/contracts/pairing/client.consumer.js +11 -0
- package/dist/schemas/contracts/pairing/client.consumer.js.map +1 -0
- package/dist/schemas/contracts/pairing/json-file-store.consumer.d.ts +11 -0
- package/dist/schemas/contracts/pairing/json-file-store.consumer.d.ts.map +1 -0
- package/dist/schemas/contracts/pairing/json-file-store.consumer.js +2 -0
- package/dist/schemas/contracts/pairing/json-file-store.consumer.js.map +1 -0
- package/dist/schemas/contracts/pairing/machine-identity.consumer.d.ts +12 -0
- package/dist/schemas/contracts/pairing/machine-identity.consumer.d.ts.map +1 -0
- package/dist/schemas/contracts/pairing/machine-identity.consumer.js +6 -0
- package/dist/schemas/contracts/pairing/machine-identity.consumer.js.map +1 -0
- package/dist/schemas/contracts/pairing/runtime-machine-identity.context.impl.consumer.d.ts +10 -0
- package/dist/schemas/contracts/pairing/runtime-machine-identity.context.impl.consumer.d.ts.map +1 -0
- package/dist/schemas/contracts/pairing/runtime-machine-identity.context.impl.consumer.js +2 -0
- package/dist/schemas/contracts/pairing/runtime-machine-identity.context.impl.consumer.js.map +1 -0
- package/dist/schemas/contracts/pairing/runtime-machines.context.impl.consumer.d.ts +6 -0
- package/dist/schemas/contracts/pairing/runtime-machines.context.impl.consumer.d.ts.map +1 -0
- package/dist/schemas/contracts/pairing/runtime-machines.context.impl.consumer.js +2 -0
- package/dist/schemas/contracts/pairing/runtime-machines.context.impl.consumer.js.map +1 -0
- package/dist/schemas/contracts/protocol/failure-describer.d.ts +12 -0
- package/dist/schemas/contracts/protocol/failure-describer.d.ts.map +1 -0
- package/dist/schemas/contracts/protocol/failure-describer.js +10 -0
- package/dist/schemas/contracts/protocol/failure-describer.js.map +1 -0
- package/dist/schemas/contracts/protocol/fetch-failure.d.ts +2 -0
- package/dist/schemas/contracts/protocol/fetch-failure.d.ts.map +1 -0
- package/dist/schemas/contracts/protocol/fetch-failure.js +2 -0
- package/dist/schemas/contracts/protocol/fetch-failure.js.map +1 -0
- package/dist/schemas/contracts/protocol/lifecycle/attempt.d.ts +9 -0
- package/dist/schemas/contracts/protocol/lifecycle/attempt.d.ts.map +1 -0
- package/dist/schemas/contracts/protocol/lifecycle/attempt.js +2 -0
- package/dist/schemas/contracts/protocol/lifecycle/attempt.js.map +1 -0
- package/dist/schemas/contracts/protocol/lifecycle/binding-close.d.ts +9 -0
- package/dist/schemas/contracts/protocol/lifecycle/binding-close.d.ts.map +1 -0
- package/dist/schemas/contracts/protocol/lifecycle/binding-close.js +4 -0
- package/dist/schemas/contracts/protocol/lifecycle/binding-close.js.map +1 -0
- package/dist/schemas/contracts/protocol/lifecycle/channel-close.d.ts +40 -0
- package/dist/schemas/contracts/protocol/lifecycle/channel-close.d.ts.map +1 -0
- package/dist/schemas/contracts/protocol/lifecycle/channel-close.js +14 -0
- package/dist/schemas/contracts/protocol/lifecycle/channel-close.js.map +1 -0
- package/dist/schemas/contracts/protocol/lifecycle/connector.d.ts +55 -0
- package/dist/schemas/contracts/protocol/lifecycle/connector.d.ts.map +1 -0
- package/dist/schemas/contracts/protocol/lifecycle/connector.js +2 -0
- package/dist/schemas/contracts/protocol/lifecycle/connector.js.map +1 -0
- package/dist/schemas/contracts/protocol/lifecycle/stream-credits.d.ts +18 -0
- package/dist/schemas/contracts/protocol/lifecycle/stream-credits.d.ts.map +1 -0
- package/dist/schemas/contracts/protocol/lifecycle/stream-credits.js +2 -0
- package/dist/schemas/contracts/protocol/lifecycle/stream-credits.js.map +1 -0
- package/dist/schemas/contracts/protocol/local-attestation.d.ts +29 -0
- package/dist/schemas/contracts/protocol/local-attestation.d.ts.map +1 -0
- package/dist/schemas/contracts/protocol/local-attestation.js +9 -0
- package/dist/schemas/contracts/protocol/local-attestation.js.map +1 -0
- package/dist/schemas/contracts/protocol/references/advertisement.d.ts +20 -0
- package/dist/schemas/contracts/protocol/references/advertisement.d.ts.map +1 -0
- package/dist/schemas/contracts/protocol/references/advertisement.js +2 -0
- package/dist/schemas/contracts/protocol/references/advertisement.js.map +1 -0
- package/dist/schemas/contracts/protocol/references/caller-input.d.ts +56 -0
- package/dist/schemas/contracts/protocol/references/caller-input.d.ts.map +1 -0
- package/dist/schemas/contracts/protocol/references/caller-input.js +57 -0
- package/dist/schemas/contracts/protocol/references/caller-input.js.map +1 -0
- package/dist/schemas/contracts/protocol/references/consumer.d.ts +57 -0
- package/dist/schemas/contracts/protocol/references/consumer.d.ts.map +1 -0
- package/dist/schemas/contracts/protocol/references/consumer.js +5 -0
- package/dist/schemas/contracts/protocol/references/consumer.js.map +1 -0
- package/dist/schemas/contracts/protocol/references/descriptor-input.d.ts +7 -0
- package/dist/schemas/contracts/protocol/references/descriptor-input.d.ts.map +1 -0
- package/dist/schemas/contracts/protocol/references/descriptor-input.js +2 -0
- package/dist/schemas/contracts/protocol/references/descriptor-input.js.map +1 -0
- package/dist/schemas/contracts/protocol/references/dispatch.d.ts +72 -0
- package/dist/schemas/contracts/protocol/references/dispatch.d.ts.map +1 -0
- package/dist/schemas/contracts/protocol/references/dispatch.js +5 -0
- package/dist/schemas/contracts/protocol/references/dispatch.js.map +1 -0
- package/dist/schemas/contracts/protocol/references/ref-table.d.ts +66 -0
- package/dist/schemas/contracts/protocol/references/ref-table.d.ts.map +1 -0
- package/dist/schemas/contracts/protocol/references/ref-table.js +3 -0
- package/dist/schemas/contracts/protocol/references/ref-table.js.map +1 -0
- package/dist/schemas/contracts/protocol/wire/frame.d.ts +26 -0
- package/dist/schemas/contracts/protocol/wire/frame.d.ts.map +1 -0
- package/dist/schemas/contracts/protocol/wire/frame.js +8 -0
- package/dist/schemas/contracts/protocol/wire/frame.js.map +1 -0
- package/dist/schemas/contracts/protocol/wire/limits.d.ts +2 -0
- package/dist/schemas/contracts/protocol/wire/limits.d.ts.map +1 -0
- package/dist/schemas/contracts/protocol/wire/limits.js +2 -0
- package/dist/schemas/contracts/protocol/wire/limits.js.map +1 -0
- package/dist/schemas/contracts/protocol/wire/reason.d.ts +5 -0
- package/dist/schemas/contracts/protocol/wire/reason.d.ts.map +1 -0
- package/dist/schemas/contracts/protocol/wire/reason.js +5 -0
- package/dist/schemas/contracts/protocol/wire/reason.js.map +1 -0
- package/dist/schemas/contracts/protocol/wire/rpc-data.d.ts +11 -0
- package/dist/schemas/contracts/protocol/wire/rpc-data.d.ts.map +1 -0
- package/dist/schemas/contracts/protocol/wire/rpc-data.js +2 -0
- package/dist/schemas/contracts/protocol/wire/rpc-data.js.map +1 -0
- package/dist/schemas/contracts/protocol/wire/schemas.d.ts +177 -0
- package/dist/schemas/contracts/protocol/wire/schemas.d.ts.map +1 -0
- package/dist/schemas/contracts/protocol/wire/schemas.js +83 -0
- package/dist/schemas/contracts/protocol/wire/schemas.js.map +1 -0
- package/dist/schemas/contracts/protocol/wire/verbs.d.ts +35 -0
- package/dist/schemas/contracts/protocol/wire/verbs.d.ts.map +1 -0
- package/dist/schemas/contracts/protocol/wire/verbs.js +11 -0
- package/dist/schemas/contracts/protocol/wire/verbs.js.map +1 -0
- package/dist/schemas/contracts/protocol/wire/wire-value.d.ts +27 -0
- package/dist/schemas/contracts/protocol/wire/wire-value.d.ts.map +1 -0
- package/dist/schemas/contracts/protocol/wire/wire-value.js +2 -0
- package/dist/schemas/contracts/protocol/wire/wire-value.js.map +1 -0
- package/dist/schemas/contracts/transports/cef/cef-transport.impl.d.ts +21 -0
- package/dist/schemas/contracts/transports/cef/cef-transport.impl.d.ts.map +1 -0
- package/dist/schemas/contracts/transports/cef/cef-transport.impl.js +10 -0
- package/dist/schemas/contracts/transports/cef/cef-transport.impl.js.map +1 -0
- package/dist/schemas/contracts/transports/cef/cef.rpc.descriptor.d.ts +6 -0
- package/dist/schemas/contracts/transports/cef/cef.rpc.descriptor.d.ts.map +1 -0
- package/dist/schemas/contracts/transports/cef/cef.rpc.descriptor.js +4 -0
- package/dist/schemas/contracts/transports/cef/cef.rpc.descriptor.js.map +1 -0
- package/dist/schemas/contracts/transports/cef/contracts.d.ts +191 -0
- package/dist/schemas/contracts/transports/cef/contracts.d.ts.map +1 -0
- package/dist/schemas/contracts/transports/cef/contracts.js +97 -0
- package/dist/schemas/contracts/transports/cef/contracts.js.map +1 -0
- package/dist/schemas/contracts/transports/cef/global-host.d.ts +3 -0
- package/dist/schemas/contracts/transports/cef/global-host.d.ts.map +1 -0
- package/dist/schemas/contracts/transports/cef/global-host.js +3 -0
- package/dist/schemas/contracts/transports/cef/global-host.js.map +1 -0
- package/dist/schemas/contracts/transports/cef/mount.d.ts +15 -0
- package/dist/schemas/contracts/transports/cef/mount.d.ts.map +1 -0
- package/dist/schemas/contracts/transports/cef/mount.js +2 -0
- package/dist/schemas/contracts/transports/cef/mount.js.map +1 -0
- package/dist/schemas/contracts/transports/cef/runtime-rpc-cef.plugin.d.ts +96 -0
- package/dist/schemas/contracts/transports/cef/runtime-rpc-cef.plugin.d.ts.map +1 -0
- package/dist/schemas/contracts/transports/cef/runtime-rpc-cef.plugin.js +14 -0
- package/dist/schemas/contracts/transports/cef/runtime-rpc-cef.plugin.js.map +1 -0
- package/dist/schemas/contracts/transports/http/auth/cors.d.ts +9 -0
- package/dist/schemas/contracts/transports/http/auth/cors.d.ts.map +1 -0
- package/dist/schemas/contracts/transports/http/auth/cors.js +2 -0
- package/dist/schemas/contracts/transports/http/auth/cors.js.map +1 -0
- package/dist/schemas/contracts/transports/http/auth/credential.d.ts +3 -0
- package/dist/schemas/contracts/transports/http/auth/credential.d.ts.map +1 -0
- package/dist/schemas/contracts/transports/http/auth/credential.js +2 -0
- package/dist/schemas/contracts/transports/http/auth/credential.js.map +1 -0
- package/dist/schemas/contracts/transports/http/auth/nonces.d.ts +20 -0
- package/dist/schemas/contracts/transports/http/auth/nonces.d.ts.map +1 -0
- package/dist/schemas/contracts/transports/http/auth/nonces.js +2 -0
- package/dist/schemas/contracts/transports/http/auth/nonces.js.map +1 -0
- package/dist/schemas/contracts/transports/http/auth/redact.d.ts +5 -0
- package/dist/schemas/contracts/transports/http/auth/redact.d.ts.map +1 -0
- package/dist/schemas/contracts/transports/http/auth/redact.js +2 -0
- package/dist/schemas/contracts/transports/http/auth/redact.js.map +1 -0
- package/dist/schemas/contracts/transports/http/auth/token-registry.d.ts +13 -0
- package/dist/schemas/contracts/transports/http/auth/token-registry.d.ts.map +1 -0
- package/dist/schemas/contracts/transports/http/auth/token-registry.js +2 -0
- package/dist/schemas/contracts/transports/http/auth/token-registry.js.map +1 -0
- package/dist/schemas/contracts/transports/http/descriptors/http.rpc.descriptor.d.ts +12 -0
- package/dist/schemas/contracts/transports/http/descriptors/http.rpc.descriptor.d.ts.map +1 -0
- package/dist/schemas/contracts/transports/http/descriptors/http.rpc.descriptor.js +5 -0
- package/dist/schemas/contracts/transports/http/descriptors/http.rpc.descriptor.js.map +1 -0
- package/dist/schemas/contracts/transports/http/http-connection.d.ts +27 -0
- package/dist/schemas/contracts/transports/http/http-connection.d.ts.map +1 -0
- package/dist/schemas/contracts/transports/http/http-connection.js +2 -0
- package/dist/schemas/contracts/transports/http/http-connection.js.map +1 -0
- package/dist/schemas/contracts/transports/http/http-listen-session.d.ts +47 -0
- package/dist/schemas/contracts/transports/http/http-listen-session.d.ts.map +1 -0
- package/dist/schemas/contracts/transports/http/http-listen-session.js +3 -0
- package/dist/schemas/contracts/transports/http/http-listen-session.js.map +1 -0
- package/dist/schemas/contracts/transports/http/http-listen.d.ts +50 -0
- package/dist/schemas/contracts/transports/http/http-listen.d.ts.map +1 -0
- package/dist/schemas/contracts/transports/http/http-listen.js +14 -0
- package/dist/schemas/contracts/transports/http/http-listen.js.map +1 -0
- package/dist/schemas/contracts/transports/http/http-transport.impl.d.ts +130 -0
- package/dist/schemas/contracts/transports/http/http-transport.impl.d.ts.map +1 -0
- package/dist/schemas/contracts/transports/http/http-transport.impl.js +33 -0
- package/dist/schemas/contracts/transports/http/http-transport.impl.js.map +1 -0
- package/dist/schemas/contracts/transports/http/projection-mount.d.ts +43 -0
- package/dist/schemas/contracts/transports/http/projection-mount.d.ts.map +1 -0
- package/dist/schemas/contracts/transports/http/projection-mount.js +14 -0
- package/dist/schemas/contracts/transports/http/projection-mount.js.map +1 -0
- package/dist/schemas/contracts/transports/http/runtime-rpc-http.plugin.d.ts +79 -0
- package/dist/schemas/contracts/transports/http/runtime-rpc-http.plugin.d.ts.map +1 -0
- package/dist/schemas/contracts/transports/http/runtime-rpc-http.plugin.js +5 -0
- package/dist/schemas/contracts/transports/http/runtime-rpc-http.plugin.js.map +1 -0
- package/dist/schemas/contracts/transports/http/wire.d.ts +29 -0
- package/dist/schemas/contracts/transports/http/wire.d.ts.map +1 -0
- package/dist/schemas/contracts/transports/http/wire.js +23 -0
- package/dist/schemas/contracts/transports/http/wire.js.map +1 -0
- package/dist/schemas/contracts/transports/messageport/contracts.d.ts +88 -0
- package/dist/schemas/contracts/transports/messageport/contracts.d.ts.map +1 -0
- package/dist/schemas/contracts/transports/messageport/contracts.js +9 -0
- package/dist/schemas/contracts/transports/messageport/contracts.js.map +1 -0
- package/dist/schemas/contracts/transports/messageport/descriptors/messageport.rpc.descriptor.d.ts +6 -0
- package/dist/schemas/contracts/transports/messageport/descriptors/messageport.rpc.descriptor.d.ts.map +1 -0
- package/dist/schemas/contracts/transports/messageport/descriptors/messageport.rpc.descriptor.js +4 -0
- package/dist/schemas/contracts/transports/messageport/descriptors/messageport.rpc.descriptor.js.map +1 -0
- package/dist/schemas/contracts/transports/messageport/messageport-listener.d.ts +78 -0
- package/dist/schemas/contracts/transports/messageport/messageport-listener.d.ts.map +1 -0
- package/dist/schemas/contracts/transports/messageport/messageport-listener.js +23 -0
- package/dist/schemas/contracts/transports/messageport/messageport-listener.js.map +1 -0
- package/dist/schemas/contracts/transports/messageport/runtime-rpc-messageport.plugin.d.ts +78 -0
- package/dist/schemas/contracts/transports/messageport/runtime-rpc-messageport.plugin.d.ts.map +1 -0
- package/dist/schemas/contracts/transports/messageport/runtime-rpc-messageport.plugin.js +4 -0
- package/dist/schemas/contracts/transports/messageport/runtime-rpc-messageport.plugin.js.map +1 -0
- package/dist/schemas/contracts/transports/relay/descriptors/relay.rpc.descriptor.d.ts +13 -0
- package/dist/schemas/contracts/transports/relay/descriptors/relay.rpc.descriptor.d.ts.map +1 -0
- package/dist/schemas/contracts/transports/relay/descriptors/relay.rpc.descriptor.js +5 -0
- package/dist/schemas/contracts/transports/relay/descriptors/relay.rpc.descriptor.js.map +1 -0
- package/dist/schemas/contracts/transports/relay/relay-connection.d.ts +45 -0
- package/dist/schemas/contracts/transports/relay/relay-connection.d.ts.map +1 -0
- package/dist/schemas/contracts/transports/relay/relay-connection.js +2 -0
- package/dist/schemas/contracts/transports/relay/relay-connection.js.map +1 -0
- package/dist/schemas/contracts/transports/relay/relay-listen-session.d.ts +29 -0
- package/dist/schemas/contracts/transports/relay/relay-listen-session.d.ts.map +1 -0
- package/dist/schemas/contracts/transports/relay/relay-listen-session.js +3 -0
- package/dist/schemas/contracts/transports/relay/relay-listen-session.js.map +1 -0
- package/dist/schemas/contracts/transports/relay/relay-server.d.ts +41 -0
- package/dist/schemas/contracts/transports/relay/relay-server.d.ts.map +1 -0
- package/dist/schemas/contracts/transports/relay/relay-server.js +5 -0
- package/dist/schemas/contracts/transports/relay/relay-server.js.map +1 -0
- package/dist/schemas/contracts/transports/relay/relay-transport.impl.d.ts +118 -0
- package/dist/schemas/contracts/transports/relay/relay-transport.impl.d.ts.map +1 -0
- package/dist/schemas/contracts/transports/relay/relay-transport.impl.js +24 -0
- package/dist/schemas/contracts/transports/relay/relay-transport.impl.js.map +1 -0
- package/dist/schemas/contracts/transports/relay/testing/fake-broker.d.ts +55 -0
- package/dist/schemas/contracts/transports/relay/testing/fake-broker.d.ts.map +1 -0
- package/dist/schemas/contracts/transports/relay/testing/fake-broker.js +25 -0
- package/dist/schemas/contracts/transports/relay/testing/fake-broker.js.map +1 -0
- package/dist/schemas/contracts/transports/relay/wire.d.ts +450 -0
- package/dist/schemas/contracts/transports/relay/wire.d.ts.map +1 -0
- package/dist/schemas/contracts/transports/relay/wire.js +58 -0
- package/dist/schemas/contracts/transports/relay/wire.js.map +1 -0
- package/dist/schemas/contracts/transports/tauri/contracts.d.ts +162 -0
- package/dist/schemas/contracts/transports/tauri/contracts.d.ts.map +1 -0
- package/dist/schemas/contracts/transports/tauri/contracts.js +74 -0
- package/dist/schemas/contracts/transports/tauri/contracts.js.map +1 -0
- package/dist/schemas/contracts/transports/tauri/runtime-rpc-tauri.plugin.d.ts +13 -0
- package/dist/schemas/contracts/transports/tauri/runtime-rpc-tauri.plugin.d.ts.map +1 -0
- package/dist/schemas/contracts/transports/tauri/runtime-rpc-tauri.plugin.js +4 -0
- package/dist/schemas/contracts/transports/tauri/runtime-rpc-tauri.plugin.js.map +1 -0
- package/dist/schemas/contracts/transports/tauri/tauri-transport.impl.d.ts +24 -0
- package/dist/schemas/contracts/transports/tauri/tauri-transport.impl.d.ts.map +1 -0
- package/dist/schemas/contracts/transports/tauri/tauri-transport.impl.js +15 -0
- package/dist/schemas/contracts/transports/tauri/tauri-transport.impl.js.map +1 -0
- package/dist/schemas/contracts/transports/tauri/tauri.rpc.descriptor.d.ts +14 -0
- package/dist/schemas/contracts/transports/tauri/tauri.rpc.descriptor.d.ts.map +1 -0
- package/dist/schemas/contracts/transports/tauri/tauri.rpc.descriptor.js +4 -0
- package/dist/schemas/contracts/transports/tauri/tauri.rpc.descriptor.js.map +1 -0
- package/dist/schemas/contracts/transports/tcp/descriptors/tcp.rpc.descriptor.d.ts +7 -0
- package/dist/schemas/contracts/transports/tcp/descriptors/tcp.rpc.descriptor.d.ts.map +1 -0
- package/dist/schemas/contracts/transports/tcp/descriptors/tcp.rpc.descriptor.js +4 -0
- package/dist/schemas/contracts/transports/tcp/descriptors/tcp.rpc.descriptor.js.map +1 -0
- package/dist/schemas/contracts/transports/tcp/runtime-rpc-tcp.plugin.d.ts +78 -0
- package/dist/schemas/contracts/transports/tcp/runtime-rpc-tcp.plugin.d.ts.map +1 -0
- package/dist/schemas/contracts/transports/tcp/runtime-rpc-tcp.plugin.js +5 -0
- package/dist/schemas/contracts/transports/tcp/runtime-rpc-tcp.plugin.js.map +1 -0
- package/dist/schemas/contracts/transports/tcp/tcp-transport.impl.d.ts +43 -0
- package/dist/schemas/contracts/transports/tcp/tcp-transport.impl.d.ts.map +1 -0
- package/dist/schemas/contracts/transports/tcp/tcp-transport.impl.js +24 -0
- package/dist/schemas/contracts/transports/tcp/tcp-transport.impl.js.map +1 -0
- package/dist/schemas/contracts/transports/unix/descriptors/unix.rpc.descriptor.d.ts +6 -0
- package/dist/schemas/contracts/transports/unix/descriptors/unix.rpc.descriptor.d.ts.map +1 -0
- package/dist/schemas/contracts/transports/unix/descriptors/unix.rpc.descriptor.js +4 -0
- package/dist/schemas/contracts/transports/unix/descriptors/unix.rpc.descriptor.js.map +1 -0
- package/dist/schemas/contracts/transports/unix/in-process.transport.d.ts +61 -0
- package/dist/schemas/contracts/transports/unix/in-process.transport.d.ts.map +1 -0
- package/dist/schemas/contracts/transports/unix/in-process.transport.js +6 -0
- package/dist/schemas/contracts/transports/unix/in-process.transport.js.map +1 -0
- package/dist/schemas/contracts/transports/unix/runtime-rpc-unix.plugin.d.ts +79 -0
- package/dist/schemas/contracts/transports/unix/runtime-rpc-unix.plugin.d.ts.map +1 -0
- package/dist/schemas/contracts/transports/unix/runtime-rpc-unix.plugin.js +5 -0
- package/dist/schemas/contracts/transports/unix/runtime-rpc-unix.plugin.js.map +1 -0
- package/dist/schemas/contracts/transports/unix/socket-codec.d.ts +109 -0
- package/dist/schemas/contracts/transports/unix/socket-codec.d.ts.map +1 -0
- package/dist/schemas/contracts/transports/unix/socket-codec.js +7 -0
- package/dist/schemas/contracts/transports/unix/socket-codec.js.map +1 -0
- package/dist/schemas/contracts/transports/unix/socket-handshake.d.ts +25 -0
- package/dist/schemas/contracts/transports/unix/socket-handshake.d.ts.map +1 -0
- package/dist/schemas/contracts/transports/unix/socket-handshake.js +10 -0
- package/dist/schemas/contracts/transports/unix/socket-handshake.js.map +1 -0
- package/dist/schemas/contracts/transports/unix/socket-listener.d.ts +41 -0
- package/dist/schemas/contracts/transports/unix/socket-listener.d.ts.map +1 -0
- package/dist/schemas/contracts/transports/unix/socket-listener.js +3 -0
- package/dist/schemas/contracts/transports/unix/socket-listener.js.map +1 -0
- package/dist/schemas/contracts/transports/unix/unix-transport.impl.d.ts +42 -0
- package/dist/schemas/contracts/transports/unix/unix-transport.impl.d.ts.map +1 -0
- package/dist/schemas/contracts/transports/unix/unix-transport.impl.js +23 -0
- package/dist/schemas/contracts/transports/unix/unix-transport.impl.js.map +1 -0
- package/dist/schemas/daemon/daemon-client.d.ts +193 -0
- package/dist/schemas/daemon/daemon-client.d.ts.map +1 -0
- package/dist/schemas/daemon/daemon-client.js +62 -0
- package/dist/schemas/daemon/daemon-client.js.map +1 -0
- package/dist/schemas/daemon/daemon-http.d.ts +34 -0
- package/dist/schemas/daemon/daemon-http.d.ts.map +1 -0
- package/dist/schemas/daemon/daemon-http.js +24 -0
- package/dist/schemas/daemon/daemon-http.js.map +1 -0
- package/dist/schemas/daemon/daemon-protocol.d.ts +78 -0
- package/dist/schemas/daemon/daemon-protocol.d.ts.map +1 -0
- package/dist/schemas/daemon/daemon-protocol.js +72 -0
- package/dist/schemas/daemon/daemon-protocol.js.map +1 -0
- package/dist/schemas/daemon/daemon-response.d.ts +42 -0
- package/dist/schemas/daemon/daemon-response.d.ts.map +1 -0
- package/dist/schemas/daemon/daemon-response.js +30 -0
- package/dist/schemas/daemon/daemon-response.js.map +1 -0
- package/dist/schemas/daemon/daemon-runtime.d.ts +5 -0
- package/dist/schemas/daemon/daemon-runtime.d.ts.map +1 -0
- package/dist/schemas/daemon/daemon-runtime.js +2 -0
- package/dist/schemas/daemon/daemon-runtime.js.map +1 -0
- package/dist/schemas/daemon/daemon-supervisor.d.ts +163 -0
- package/dist/schemas/daemon/daemon-supervisor.d.ts.map +1 -0
- package/dist/schemas/daemon/daemon-supervisor.js +113 -0
- package/dist/schemas/daemon/daemon-supervisor.js.map +1 -0
- package/dist/schemas/daemon/daemon-watchers.d.ts +18 -0
- package/dist/schemas/daemon/daemon-watchers.d.ts.map +1 -0
- package/dist/schemas/daemon/daemon-watchers.js +12 -0
- package/dist/schemas/daemon/daemon-watchers.js.map +1 -0
- package/dist/schemas/descriptor-wire.d.ts +14 -0
- package/dist/schemas/descriptor-wire.d.ts.map +1 -0
- package/dist/schemas/descriptor-wire.js +24 -0
- package/dist/schemas/descriptor-wire.js.map +1 -0
- package/dist/schemas/execution/wire-process.d.ts +17 -0
- package/dist/schemas/execution/wire-process.d.ts.map +1 -0
- package/dist/schemas/execution/wire-process.js +22 -0
- package/dist/schemas/execution/wire-process.js.map +1 -0
- package/dist/schemas/invoke-support.d.ts +16 -0
- package/dist/schemas/invoke-support.d.ts.map +1 -0
- package/dist/schemas/invoke-support.js +16 -0
- package/dist/schemas/invoke-support.js.map +1 -0
- package/dist/schemas/invoke.d.ts +54 -0
- package/dist/schemas/invoke.d.ts.map +1 -0
- package/dist/schemas/invoke.js +23 -0
- package/dist/schemas/invoke.js.map +1 -0
- package/dist/schemas/pairing.d.ts +118 -0
- package/dist/schemas/pairing.d.ts.map +1 -0
- package/dist/schemas/pairing.js +24 -0
- package/dist/schemas/pairing.js.map +1 -0
- package/dist/transports/cef/contracts1/cef-bounds.d.ts +3 -0
- package/dist/transports/cef/contracts1/cef-bounds.d.ts.map +1 -0
- package/dist/transports/cef/contracts1/cef-bounds.js +10 -0
- package/dist/transports/cef/contracts1/cef-bounds.js.map +1 -0
- package/dist/transports/cef/contracts1/cef-channel.d.ts +33 -0
- package/dist/transports/cef/contracts1/cef-channel.d.ts.map +1 -0
- package/dist/transports/cef/contracts1/cef-channel.js +129 -0
- package/dist/transports/cef/contracts1/cef-channel.js.map +1 -0
- package/dist/transports/cef/contracts1/cef-connection.d.ts +23 -0
- package/dist/transports/cef/contracts1/cef-connection.d.ts.map +1 -0
- package/dist/transports/cef/contracts1/cef-connection.js +207 -0
- package/dist/transports/cef/contracts1/cef-connection.js.map +1 -0
- package/dist/transports/cef/contracts1/cef-streams.d.ts +55 -0
- package/dist/transports/cef/contracts1/cef-streams.d.ts.map +1 -0
- package/dist/transports/cef/contracts1/cef-streams.js +160 -0
- package/dist/transports/cef/contracts1/cef-streams.js.map +1 -0
- package/dist/transports/cef/contracts1/cef-transport.impl.d.ts +16 -0
- package/dist/transports/cef/contracts1/cef-transport.impl.d.ts.map +1 -0
- package/dist/transports/cef/contracts1/cef-transport.impl.js +63 -0
- package/dist/transports/cef/contracts1/cef-transport.impl.js.map +1 -0
- package/dist/transports/cef/contracts1/cef.rpc.descriptor.d.ts +5 -0
- package/dist/transports/cef/contracts1/cef.rpc.descriptor.d.ts.map +1 -0
- package/dist/transports/cef/contracts1/cef.rpc.descriptor.js +18 -0
- package/dist/transports/cef/contracts1/cef.rpc.descriptor.js.map +1 -0
- package/dist/transports/cef/contracts1/contracts.d.ts +35 -0
- package/dist/transports/cef/contracts1/contracts.d.ts.map +1 -0
- package/dist/transports/cef/contracts1/contracts.js +29 -0
- package/dist/transports/cef/contracts1/contracts.js.map +1 -0
- package/dist/transports/cef/contracts2/global-host.d.ts +17 -0
- package/dist/transports/cef/contracts2/global-host.d.ts.map +1 -0
- package/dist/transports/cef/contracts2/global-host.js +65 -0
- package/dist/transports/cef/contracts2/global-host.js.map +1 -0
- package/dist/transports/cef/contracts2/index.d.ts +8 -0
- package/dist/transports/cef/contracts2/index.d.ts.map +1 -0
- package/dist/transports/cef/contracts2/index.js +8 -0
- package/dist/transports/cef/contracts2/index.js.map +1 -0
- package/dist/transports/cef/contracts2/mount.d.ts +7 -0
- package/dist/transports/cef/contracts2/mount.d.ts.map +1 -0
- package/dist/transports/cef/contracts2/mount.js +63 -0
- package/dist/transports/cef/contracts2/mount.js.map +1 -0
- package/dist/transports/cef/contracts2/projection-controller.d.ts +39 -0
- package/dist/transports/cef/contracts2/projection-controller.d.ts.map +1 -0
- package/dist/transports/cef/contracts2/projection-controller.js +129 -0
- package/dist/transports/cef/contracts2/projection-controller.js.map +1 -0
- package/dist/transports/cef/contracts2/runtime-rpc-cef.plugin.d.ts +13 -0
- package/dist/transports/cef/contracts2/runtime-rpc-cef.plugin.d.ts.map +1 -0
- package/dist/transports/cef/contracts2/runtime-rpc-cef.plugin.js +79 -0
- package/dist/transports/cef/contracts2/runtime-rpc-cef.plugin.js.map +1 -0
- package/dist/transports/http/auth/cors.d.ts +25 -0
- package/dist/transports/http/auth/cors.d.ts.map +1 -0
- package/dist/transports/http/auth/cors.js +81 -0
- package/dist/transports/http/auth/cors.js.map +1 -0
- package/dist/transports/http/auth/credential.d.ts +11 -0
- package/dist/transports/http/auth/credential.d.ts.map +1 -0
- package/dist/transports/http/auth/credential.js +38 -0
- package/dist/transports/http/auth/credential.js.map +1 -0
- package/dist/transports/http/auth/nonces.d.ts +31 -0
- package/dist/transports/http/auth/nonces.d.ts.map +1 -0
- package/dist/transports/http/auth/nonces.js +70 -0
- package/dist/transports/http/auth/nonces.js.map +1 -0
- package/dist/transports/http/auth/redact.d.ts +17 -0
- package/dist/transports/http/auth/redact.d.ts.map +1 -0
- package/dist/transports/http/auth/redact.js +60 -0
- package/dist/transports/http/auth/redact.js.map +1 -0
- package/dist/transports/http/auth/token-registry.d.ts +22 -0
- package/dist/transports/http/auth/token-registry.d.ts.map +1 -0
- package/dist/transports/http/auth/token-registry.js +30 -0
- package/dist/transports/http/auth/token-registry.js.map +1 -0
- package/dist/transports/http/consumer/connect-http.d.ts +8 -0
- package/dist/transports/http/consumer/connect-http.d.ts.map +1 -0
- package/dist/transports/http/consumer/connect-http.js +137 -0
- package/dist/transports/http/consumer/connect-http.js.map +1 -0
- package/dist/transports/http/consumer/http-channel.d.ts +51 -0
- package/dist/transports/http/consumer/http-channel.d.ts.map +1 -0
- package/dist/transports/http/consumer/http-channel.js +173 -0
- package/dist/transports/http/consumer/http-channel.js.map +1 -0
- package/dist/transports/http/consumer/http-connection.d.ts +57 -0
- package/dist/transports/http/consumer/http-connection.d.ts.map +1 -0
- package/dist/transports/http/consumer/http-connection.js +268 -0
- package/dist/transports/http/consumer/http-connection.js.map +1 -0
- package/dist/transports/http/consumer/http-headers.d.ts +3 -0
- package/dist/transports/http/consumer/http-headers.d.ts.map +1 -0
- package/dist/transports/http/consumer/http-headers.js +5 -0
- package/dist/transports/http/consumer/http-headers.js.map +1 -0
- package/dist/transports/http/daemon-endpoints.consumer.plugin.d.ts +4 -0
- package/dist/transports/http/daemon-endpoints.consumer.plugin.d.ts.map +1 -0
- package/dist/transports/http/daemon-endpoints.consumer.plugin.js +41 -0
- package/dist/transports/http/daemon-endpoints.consumer.plugin.js.map +1 -0
- package/dist/transports/http/descriptors/http.rpc.descriptor.d.ts +6 -0
- package/dist/transports/http/descriptors/http.rpc.descriptor.d.ts.map +1 -0
- package/dist/transports/http/descriptors/http.rpc.descriptor.js +34 -0
- package/dist/transports/http/descriptors/http.rpc.descriptor.js.map +1 -0
- package/dist/transports/http/endpoints/daemon-endpoint.kind.d.ts +6 -0
- package/dist/transports/http/endpoints/daemon-endpoint.kind.d.ts.map +1 -0
- package/dist/transports/http/endpoints/daemon-endpoint.kind.js +26 -0
- package/dist/transports/http/endpoints/daemon-endpoint.kind.js.map +1 -0
- package/dist/transports/http/endpoints/health.descriptor.d.ts +29 -0
- package/dist/transports/http/endpoints/health.descriptor.d.ts.map +1 -0
- package/dist/transports/http/endpoints/health.descriptor.js +13 -0
- package/dist/transports/http/endpoints/health.descriptor.js.map +1 -0
- package/dist/transports/http/endpoints/health.impl.consumer.d.ts +3 -0
- package/dist/transports/http/endpoints/health.impl.consumer.d.ts.map +1 -0
- package/dist/transports/http/endpoints/health.impl.consumer.js +24 -0
- package/dist/transports/http/endpoints/health.impl.consumer.js.map +1 -0
- package/dist/transports/http/endpoints/index.d.ts +5 -0
- package/dist/transports/http/endpoints/index.d.ts.map +1 -0
- package/dist/transports/http/endpoints/index.js +5 -0
- package/dist/transports/http/endpoints/index.js.map +1 -0
- package/dist/transports/http/endpoints/mcp.descriptor.d.ts +29 -0
- package/dist/transports/http/endpoints/mcp.descriptor.d.ts.map +1 -0
- package/dist/transports/http/endpoints/mcp.descriptor.js +13 -0
- package/dist/transports/http/endpoints/mcp.descriptor.js.map +1 -0
- package/dist/transports/http/endpoints/mcp.impl.consumer.d.ts +3 -0
- package/dist/transports/http/endpoints/mcp.impl.consumer.d.ts.map +1 -0
- package/dist/transports/http/endpoints/mcp.impl.consumer.js +16 -0
- package/dist/transports/http/endpoints/mcp.impl.consumer.js.map +1 -0
- package/dist/transports/http/http-implementation.d.ts +14 -0
- package/dist/transports/http/http-implementation.d.ts.map +1 -0
- package/dist/transports/http/http-implementation.js +26 -0
- package/dist/transports/http/http-implementation.js.map +1 -0
- package/dist/transports/http/index.d.ts +34 -0
- package/dist/transports/http/index.d.ts.map +1 -0
- package/dist/transports/http/index.js +39 -0
- package/dist/transports/http/index.js.map +1 -0
- package/dist/transports/http/listener/body.d.ts +8 -0
- package/dist/transports/http/listener/body.d.ts.map +1 -0
- package/dist/transports/http/listener/body.js +52 -0
- package/dist/transports/http/listener/body.js.map +1 -0
- package/dist/transports/http/listener/http-bindings.d.ts +82 -0
- package/dist/transports/http/listener/http-bindings.d.ts.map +1 -0
- package/dist/transports/http/listener/http-bindings.js +234 -0
- package/dist/transports/http/listener/http-bindings.js.map +1 -0
- package/dist/transports/http/listener/http-listen-session.d.ts +43 -0
- package/dist/transports/http/listener/http-listen-session.d.ts.map +1 -0
- package/dist/transports/http/listener/http-listen-session.js +123 -0
- package/dist/transports/http/listener/http-listen-session.js.map +1 -0
- package/dist/transports/http/listener/http-listen.d.ts +8 -0
- package/dist/transports/http/listener/http-listen.d.ts.map +1 -0
- package/dist/transports/http/listener/http-listen.js +62 -0
- package/dist/transports/http/listener/http-listen.js.map +1 -0
- package/dist/transports/http/listener/http-sessions.d.ts +59 -0
- package/dist/transports/http/listener/http-sessions.d.ts.map +1 -0
- package/dist/transports/http/listener/http-sessions.js +186 -0
- package/dist/transports/http/listener/http-sessions.js.map +1 -0
- package/dist/transports/http/listener/http-transport.impl.d.ts +36 -0
- package/dist/transports/http/listener/http-transport.impl.d.ts.map +1 -0
- package/dist/transports/http/listener/http-transport.impl.js +188 -0
- package/dist/transports/http/listener/http-transport.impl.js.map +1 -0
- package/dist/transports/http/listener/projection-mount.d.ts +9 -0
- package/dist/transports/http/listener/projection-mount.d.ts.map +1 -0
- package/dist/transports/http/listener/projection-mount.js +78 -0
- package/dist/transports/http/listener/projection-mount.js.map +1 -0
- package/dist/transports/http/listener/projection-owner.d.ts +6 -0
- package/dist/transports/http/listener/projection-owner.d.ts.map +1 -0
- package/dist/transports/http/listener/projection-owner.js +85 -0
- package/dist/transports/http/listener/projection-owner.js.map +1 -0
- package/dist/transports/http/listener/reverse-response.d.ts +4 -0
- package/dist/transports/http/listener/reverse-response.d.ts.map +1 -0
- package/dist/transports/http/listener/reverse-response.js +27 -0
- package/dist/transports/http/listener/reverse-response.js.map +1 -0
- package/dist/transports/http/listener/stream-response.d.ts +3 -0
- package/dist/transports/http/listener/stream-response.d.ts.map +1 -0
- package/dist/transports/http/listener/stream-response.js +52 -0
- package/dist/transports/http/listener/stream-response.js.map +1 -0
- package/dist/transports/http/runtime-rpc-http.plugin.d.ts +41 -0
- package/dist/transports/http/runtime-rpc-http.plugin.d.ts.map +1 -0
- package/dist/transports/http/runtime-rpc-http.plugin.js +70 -0
- package/dist/transports/http/runtime-rpc-http.plugin.js.map +1 -0
- package/dist/transports/http/schemas/daemon-endpoint.d.ts +83 -0
- package/dist/transports/http/schemas/daemon-endpoint.d.ts.map +1 -0
- package/dist/transports/http/schemas/daemon-endpoint.js +32 -0
- package/dist/transports/http/schemas/daemon-endpoint.js.map +1 -0
- package/dist/transports/http/wire.d.ts +52 -0
- package/dist/transports/http/wire.d.ts.map +1 -0
- package/dist/transports/http/wire.js +62 -0
- package/dist/transports/http/wire.js.map +1 -0
- package/dist/transports/messageport/applet-callbacks.d.ts +10 -0
- package/dist/transports/messageport/applet-callbacks.d.ts.map +1 -0
- package/dist/transports/messageport/applet-callbacks.js +11 -0
- package/dist/transports/messageport/applet-callbacks.js.map +1 -0
- package/dist/transports/messageport/connection/contracts.d.ts +41 -0
- package/dist/transports/messageport/connection/contracts.d.ts.map +1 -0
- package/dist/transports/messageport/connection/contracts.js +46 -0
- package/dist/transports/messageport/connection/contracts.js.map +1 -0
- package/dist/transports/messageport/connection/messageport-inbox.d.ts +37 -0
- package/dist/transports/messageport/connection/messageport-inbox.d.ts.map +1 -0
- package/dist/transports/messageport/connection/messageport-inbox.js +122 -0
- package/dist/transports/messageport/connection/messageport-inbox.js.map +1 -0
- package/dist/transports/messageport/descriptors/messageport.rpc.descriptor.d.ts +12 -0
- package/dist/transports/messageport/descriptors/messageport.rpc.descriptor.d.ts.map +1 -0
- package/dist/transports/messageport/descriptors/messageport.rpc.descriptor.js +25 -0
- package/dist/transports/messageport/descriptors/messageport.rpc.descriptor.js.map +1 -0
- package/dist/transports/messageport/docs/runtime-rpc-messageport.docs.descriptor.d.ts +4 -0
- package/dist/transports/messageport/docs/runtime-rpc-messageport.docs.descriptor.d.ts.map +1 -0
- package/dist/transports/messageport/docs/runtime-rpc-messageport.docs.descriptor.js +63 -0
- package/dist/transports/messageport/docs/runtime-rpc-messageport.docs.descriptor.js.map +1 -0
- package/dist/transports/messageport/index.d.ts +16 -0
- package/dist/transports/messageport/index.d.ts.map +1 -0
- package/dist/transports/messageport/index.js +16 -0
- package/dist/transports/messageport/index.js.map +1 -0
- package/dist/transports/messageport/messageport-connection.d.ts +9 -0
- package/dist/transports/messageport/messageport-connection.d.ts.map +1 -0
- package/dist/transports/messageport/messageport-connection.js +82 -0
- package/dist/transports/messageport/messageport-connection.js.map +1 -0
- package/dist/transports/messageport/messageport-listener.d.ts +14 -0
- package/dist/transports/messageport/messageport-listener.d.ts.map +1 -0
- package/dist/transports/messageport/messageport-listener.js +162 -0
- package/dist/transports/messageport/messageport-listener.js.map +1 -0
- package/dist/transports/messageport/runtime-rpc-messageport.plugin.d.ts +8 -0
- package/dist/transports/messageport/runtime-rpc-messageport.plugin.d.ts.map +1 -0
- package/dist/transports/messageport/runtime-rpc-messageport.plugin.js +38 -0
- package/dist/transports/messageport/runtime-rpc-messageport.plugin.js.map +1 -0
- package/dist/transports/relay/consumer/relay-channel.d.ts +48 -0
- package/dist/transports/relay/consumer/relay-channel.d.ts.map +1 -0
- package/dist/transports/relay/consumer/relay-channel.js +179 -0
- package/dist/transports/relay/consumer/relay-channel.js.map +1 -0
- package/dist/transports/relay/consumer/relay-connection.d.ts +36 -0
- package/dist/transports/relay/consumer/relay-connection.d.ts.map +1 -0
- package/dist/transports/relay/consumer/relay-connection.js +190 -0
- package/dist/transports/relay/consumer/relay-connection.js.map +1 -0
- package/dist/transports/relay/consumer/relay-exchange.d.ts +49 -0
- package/dist/transports/relay/consumer/relay-exchange.d.ts.map +1 -0
- package/dist/transports/relay/consumer/relay-exchange.js +189 -0
- package/dist/transports/relay/consumer/relay-exchange.js.map +1 -0
- package/dist/transports/relay/consumer/relay-headers.d.ts +4 -0
- package/dist/transports/relay/consumer/relay-headers.d.ts.map +1 -0
- package/dist/transports/relay/consumer/relay-headers.js +6 -0
- package/dist/transports/relay/consumer/relay-headers.js.map +1 -0
- package/dist/transports/relay/descriptors/relay.rpc.descriptor.d.ts +6 -0
- package/dist/transports/relay/descriptors/relay.rpc.descriptor.d.ts.map +1 -0
- package/dist/transports/relay/descriptors/relay.rpc.descriptor.js +31 -0
- package/dist/transports/relay/descriptors/relay.rpc.descriptor.js.map +1 -0
- package/dist/transports/relay/index.d.ts +28 -0
- package/dist/transports/relay/index.d.ts.map +1 -0
- package/dist/transports/relay/index.js +38 -0
- package/dist/transports/relay/index.js.map +1 -0
- package/dist/transports/relay/listener/consumer-table.d.ts +17 -0
- package/dist/transports/relay/listener/consumer-table.d.ts.map +1 -0
- package/dist/transports/relay/listener/consumer-table.js +9 -0
- package/dist/transports/relay/listener/consumer-table.js.map +1 -0
- package/dist/transports/relay/listener/relay-adapter.d.ts +15 -0
- package/dist/transports/relay/listener/relay-adapter.d.ts.map +1 -0
- package/dist/transports/relay/listener/relay-adapter.js +81 -0
- package/dist/transports/relay/listener/relay-adapter.js.map +1 -0
- package/dist/transports/relay/listener/relay-consumers.d.ts +72 -0
- package/dist/transports/relay/listener/relay-consumers.d.ts.map +1 -0
- package/dist/transports/relay/listener/relay-consumers.js +193 -0
- package/dist/transports/relay/listener/relay-consumers.js.map +1 -0
- package/dist/transports/relay/listener/relay-listen-session.d.ts +27 -0
- package/dist/transports/relay/listener/relay-listen-session.d.ts.map +1 -0
- package/dist/transports/relay/listener/relay-listen-session.js +207 -0
- package/dist/transports/relay/listener/relay-listen-session.js.map +1 -0
- package/dist/transports/relay/listener/reverse-proxy.d.ts +7 -0
- package/dist/transports/relay/listener/reverse-proxy.d.ts.map +1 -0
- package/dist/transports/relay/listener/reverse-proxy.js +106 -0
- package/dist/transports/relay/listener/reverse-proxy.js.map +1 -0
- package/dist/transports/relay/relay-rpc-loader.d.ts +9 -0
- package/dist/transports/relay/relay-rpc-loader.d.ts.map +1 -0
- package/dist/transports/relay/relay-rpc-loader.js +30 -0
- package/dist/transports/relay/relay-rpc-loader.js.map +1 -0
- package/dist/transports/relay/relay-server.d.ts +58 -0
- package/dist/transports/relay/relay-server.d.ts.map +1 -0
- package/dist/transports/relay/relay-server.js +86 -0
- package/dist/transports/relay/relay-server.js.map +1 -0
- package/dist/transports/relay/relay-transport.impl.d.ts +35 -0
- package/dist/transports/relay/relay-transport.impl.d.ts.map +1 -0
- package/dist/transports/relay/relay-transport.impl.js +177 -0
- package/dist/transports/relay/relay-transport.impl.js.map +1 -0
- package/dist/transports/relay/testing/broker-routing.d.ts +40 -0
- package/dist/transports/relay/testing/broker-routing.d.ts.map +1 -0
- package/dist/transports/relay/testing/broker-routing.js +136 -0
- package/dist/transports/relay/testing/broker-routing.js.map +1 -0
- package/dist/transports/relay/testing/broker-socket.d.ts +41 -0
- package/dist/transports/relay/testing/broker-socket.d.ts.map +1 -0
- package/dist/transports/relay/testing/broker-socket.js +62 -0
- package/dist/transports/relay/testing/broker-socket.js.map +1 -0
- package/dist/transports/relay/testing/fake-broker.d.ts +13 -0
- package/dist/transports/relay/testing/fake-broker.d.ts.map +1 -0
- package/dist/transports/relay/testing/fake-broker.js +197 -0
- package/dist/transports/relay/testing/fake-broker.js.map +1 -0
- package/dist/transports/relay/testing/index.d.ts +16 -0
- package/dist/transports/relay/testing/index.d.ts.map +1 -0
- package/dist/transports/relay/testing/index.js +16 -0
- package/dist/transports/relay/testing/index.js.map +1 -0
- package/dist/transports/relay/wire.d.ts +35 -0
- package/dist/transports/relay/wire.d.ts.map +1 -0
- package/dist/transports/relay/wire.js +84 -0
- package/dist/transports/relay/wire.js.map +1 -0
- package/dist/transports/tauri/contracts1/contracts.d.ts +11 -0
- package/dist/transports/tauri/contracts1/contracts.d.ts.map +1 -0
- package/dist/transports/tauri/contracts1/contracts.js +7 -0
- package/dist/transports/tauri/contracts1/contracts.js.map +1 -0
- package/dist/transports/tauri/contracts1/docs/runtime-rpc-tauri.docs.descriptor.d.ts +4 -0
- package/dist/transports/tauri/contracts1/docs/runtime-rpc-tauri.docs.descriptor.d.ts.map +1 -0
- package/dist/transports/tauri/contracts1/docs/runtime-rpc-tauri.docs.descriptor.js +80 -0
- package/dist/transports/tauri/contracts1/docs/runtime-rpc-tauri.docs.descriptor.js.map +1 -0
- package/dist/transports/tauri/contracts1/index.d.ts +6 -0
- package/dist/transports/tauri/contracts1/index.d.ts.map +1 -0
- package/dist/transports/tauri/contracts1/index.js +6 -0
- package/dist/transports/tauri/contracts1/index.js.map +1 -0
- package/dist/transports/tauri/contracts1/runtime-rpc-tauri.plugin.d.ts +7 -0
- package/dist/transports/tauri/contracts1/runtime-rpc-tauri.plugin.d.ts.map +1 -0
- package/dist/transports/tauri/contracts1/runtime-rpc-tauri.plugin.js +37 -0
- package/dist/transports/tauri/contracts1/runtime-rpc-tauri.plugin.js.map +1 -0
- package/dist/transports/tauri/contracts1/tauri-bounds.d.ts +3 -0
- package/dist/transports/tauri/contracts1/tauri-bounds.d.ts.map +1 -0
- package/dist/transports/tauri/contracts1/tauri-bounds.js +10 -0
- package/dist/transports/tauri/contracts1/tauri-bounds.js.map +1 -0
- package/dist/transports/tauri/contracts1/tauri-channel.d.ts +27 -0
- package/dist/transports/tauri/contracts1/tauri-channel.d.ts.map +1 -0
- package/dist/transports/tauri/contracts1/tauri-channel.js +111 -0
- package/dist/transports/tauri/contracts1/tauri-channel.js.map +1 -0
- package/dist/transports/tauri/contracts1/tauri-connection.d.ts +22 -0
- package/dist/transports/tauri/contracts1/tauri-connection.d.ts.map +1 -0
- package/dist/transports/tauri/contracts1/tauri-connection.js +168 -0
- package/dist/transports/tauri/contracts1/tauri-connection.js.map +1 -0
- package/dist/transports/tauri/contracts2/tauri-streams.d.ts +38 -0
- package/dist/transports/tauri/contracts2/tauri-streams.d.ts.map +1 -0
- package/dist/transports/tauri/contracts2/tauri-streams.js +110 -0
- package/dist/transports/tauri/contracts2/tauri-streams.js.map +1 -0
- package/dist/transports/tauri/contracts2/tauri-transport.impl.d.ts +16 -0
- package/dist/transports/tauri/contracts2/tauri-transport.impl.d.ts.map +1 -0
- package/dist/transports/tauri/contracts2/tauri-transport.impl.js +46 -0
- package/dist/transports/tauri/contracts2/tauri-transport.impl.js.map +1 -0
- package/dist/transports/tauri/contracts2/tauri.rpc.descriptor.d.ts +6 -0
- package/dist/transports/tauri/contracts2/tauri.rpc.descriptor.d.ts.map +1 -0
- package/dist/transports/tauri/contracts2/tauri.rpc.descriptor.js +20 -0
- package/dist/transports/tauri/contracts2/tauri.rpc.descriptor.js.map +1 -0
- package/dist/transports/tcp/connect-tcp.d.ts +12 -0
- package/dist/transports/tcp/connect-tcp.d.ts.map +1 -0
- package/dist/transports/tcp/connect-tcp.js +51 -0
- package/dist/transports/tcp/connect-tcp.js.map +1 -0
- package/dist/transports/tcp/descriptors/tcp.rpc.descriptor.d.ts +10 -0
- package/dist/transports/tcp/descriptors/tcp.rpc.descriptor.d.ts.map +1 -0
- package/dist/transports/tcp/descriptors/tcp.rpc.descriptor.js +24 -0
- package/dist/transports/tcp/descriptors/tcp.rpc.descriptor.js.map +1 -0
- package/dist/transports/tcp/index.d.ts +13 -0
- package/dist/transports/tcp/index.d.ts.map +1 -0
- package/dist/transports/tcp/index.js +13 -0
- package/dist/transports/tcp/index.js.map +1 -0
- package/dist/transports/tcp/runtime-rpc-tcp.plugin.d.ts +8 -0
- package/dist/transports/tcp/runtime-rpc-tcp.plugin.d.ts.map +1 -0
- package/dist/transports/tcp/runtime-rpc-tcp.plugin.js +37 -0
- package/dist/transports/tcp/runtime-rpc-tcp.plugin.js.map +1 -0
- package/dist/transports/tcp/tcp-transport.impl.d.ts +25 -0
- package/dist/transports/tcp/tcp-transport.impl.d.ts.map +1 -0
- package/dist/transports/tcp/tcp-transport.impl.js +103 -0
- package/dist/transports/tcp/tcp-transport.impl.js.map +1 -0
- package/dist/transports/unix/codec/record-parser.d.ts +28 -0
- package/dist/transports/unix/codec/record-parser.d.ts.map +1 -0
- package/dist/transports/unix/codec/record-parser.js +119 -0
- package/dist/transports/unix/codec/record-parser.js.map +1 -0
- package/dist/transports/unix/codec/socket-codec.d.ts +57 -0
- package/dist/transports/unix/codec/socket-codec.d.ts.map +1 -0
- package/dist/transports/unix/codec/socket-codec.js +122 -0
- package/dist/transports/unix/codec/socket-codec.js.map +1 -0
- package/dist/transports/unix/codec/socket-writer.d.ts +16 -0
- package/dist/transports/unix/codec/socket-writer.d.ts.map +1 -0
- package/dist/transports/unix/codec/socket-writer.js +69 -0
- package/dist/transports/unix/codec/socket-writer.js.map +1 -0
- package/dist/transports/unix/consumer/connect-unix.d.ts +12 -0
- package/dist/transports/unix/consumer/connect-unix.d.ts.map +1 -0
- package/dist/transports/unix/consumer/connect-unix.js +51 -0
- package/dist/transports/unix/consumer/connect-unix.js.map +1 -0
- package/dist/transports/unix/consumer/socket-channel.d.ts +45 -0
- package/dist/transports/unix/consumer/socket-channel.d.ts.map +1 -0
- package/dist/transports/unix/consumer/socket-channel.js +125 -0
- package/dist/transports/unix/consumer/socket-channel.js.map +1 -0
- package/dist/transports/unix/consumer/socket-connection.d.ts +42 -0
- package/dist/transports/unix/consumer/socket-connection.d.ts.map +1 -0
- package/dist/transports/unix/consumer/socket-connection.js +221 -0
- package/dist/transports/unix/consumer/socket-connection.js.map +1 -0
- package/dist/transports/unix/descriptors/unix.rpc.descriptor.d.ts +17 -0
- package/dist/transports/unix/descriptors/unix.rpc.descriptor.d.ts.map +1 -0
- package/dist/transports/unix/descriptors/unix.rpc.descriptor.js +31 -0
- package/dist/transports/unix/descriptors/unix.rpc.descriptor.js.map +1 -0
- package/dist/transports/unix/in-process/in-process-channel.d.ts +11 -0
- package/dist/transports/unix/in-process/in-process-channel.d.ts.map +1 -0
- package/dist/transports/unix/in-process/in-process-channel.js +126 -0
- package/dist/transports/unix/in-process/in-process-channel.js.map +1 -0
- package/dist/transports/unix/in-process/in-process.transport.d.ts +13 -0
- package/dist/transports/unix/in-process/in-process.transport.d.ts.map +1 -0
- package/dist/transports/unix/in-process/in-process.transport.js +119 -0
- package/dist/transports/unix/in-process/in-process.transport.js.map +1 -0
- package/dist/transports/unix/index.d.ts +25 -0
- package/dist/transports/unix/index.d.ts.map +1 -0
- package/dist/transports/unix/index.js +29 -0
- package/dist/transports/unix/index.js.map +1 -0
- package/dist/transports/unix/listener/socket-bindings.d.ts +38 -0
- package/dist/transports/unix/listener/socket-bindings.d.ts.map +1 -0
- package/dist/transports/unix/listener/socket-bindings.js +187 -0
- package/dist/transports/unix/listener/socket-bindings.js.map +1 -0
- package/dist/transports/unix/listener/socket-listener.d.ts +21 -0
- package/dist/transports/unix/listener/socket-listener.d.ts.map +1 -0
- package/dist/transports/unix/listener/socket-listener.js +202 -0
- package/dist/transports/unix/listener/socket-listener.js.map +1 -0
- package/dist/transports/unix/listener/socket-state.d.ts +140 -0
- package/dist/transports/unix/listener/socket-state.d.ts.map +1 -0
- package/dist/transports/unix/listener/socket-state.js +102 -0
- package/dist/transports/unix/listener/socket-state.js.map +1 -0
- package/dist/transports/unix/runtime-rpc-unix.plugin.d.ts +8 -0
- package/dist/transports/unix/runtime-rpc-unix.plugin.d.ts.map +1 -0
- package/dist/transports/unix/runtime-rpc-unix.plugin.js +37 -0
- package/dist/transports/unix/runtime-rpc-unix.plugin.js.map +1 -0
- package/dist/transports/unix/socket-handshake.d.ts +23 -0
- package/dist/transports/unix/socket-handshake.d.ts.map +1 -0
- package/dist/transports/unix/socket-handshake.js +156 -0
- package/dist/transports/unix/socket-handshake.js.map +1 -0
- package/dist/transports/unix/unix-transport.impl.d.ts +31 -0
- package/dist/transports/unix/unix-transport.impl.d.ts.map +1 -0
- package/dist/transports/unix/unix-transport.impl.js +103 -0
- package/dist/transports/unix/unix-transport.impl.js.map +1 -0
- package/package.json +315 -4
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { JsonFileReadResult } from "../../schemas/contracts/pairing/json-file-store.consumer.ts";
|
|
2
|
+
export type { JsonFileReadResult, PairingStoreRuntime } from "../../schemas/contracts/pairing/json-file-store.consumer.ts";
|
|
3
|
+
import type { RuntimeRef } from '@vibesdotdev/kernel';
|
|
4
|
+
import { type JsonValue } from '@vibesdotdev/kernel/schemas/json';
|
|
5
|
+
/**
|
|
6
|
+
* Serialize an async operation against a file path. Operations on the same
|
|
7
|
+
* path run strictly one-after-another (in call order); different paths do not
|
|
8
|
+
* block each other. Errors from one operation do not poison the chain.
|
|
9
|
+
*/
|
|
10
|
+
export declare function withFileLock<T>(path: string, operation: () => Promise<T>): Promise<T>;
|
|
11
|
+
export declare function readJsonFile<T>(runtime: RuntimeRef, path: string, validate: (parsed: JsonValue) => T | null): Promise<JsonFileReadResult<T>>;
|
|
12
|
+
/**
|
|
13
|
+
* Atomically write a JSON store file with owner-only permissions.
|
|
14
|
+
*
|
|
15
|
+
* The temp file is created in the same directory with mode `0o600` (applied
|
|
16
|
+
* at creation, before any byte is written) and then renamed over the target.
|
|
17
|
+
*/
|
|
18
|
+
export declare function writeJsonFileAtomic(runtime: RuntimeRef, path: string, data: JsonValue): Promise<void>;
|
|
19
|
+
/**
|
|
20
|
+
* Move a corrupt store file aside to `<path>.corrupt-<timestamp>` so a
|
|
21
|
+
* subsequent rewrite cannot destroy its (potentially recoverable) contents.
|
|
22
|
+
* Returns the backup path, or null when the file vanished in the meantime.
|
|
23
|
+
*/
|
|
24
|
+
export declare function backupCorruptFile(runtime: RuntimeRef, path: string): Promise<string | null>;
|
|
25
|
+
//# sourceMappingURL=json-file-store.consumer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"json-file-store.consumer.d.ts","sourceRoot":"","sources":["../../../src/daemon/pairing/json-file-store.consumer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,6DAA6D,CAAC;AACtG,YAAY,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,MAAM,6DAA6D,CAAC;AAkC3H,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACtD,OAAO,EAAmB,KAAK,SAAS,EAAE,MAAM,kCAAkC,CAAC;AAWnF;;;;GAIG;AACH,wBAAsB,YAAY,CAAC,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC,CAgB3F;AAiBD,wBAAsB,YAAY,CAAC,CAAC,EACnC,OAAO,EAAE,UAAU,EACnB,IAAI,EAAE,MAAM,EACZ,QAAQ,EAAE,CAAC,MAAM,EAAE,SAAS,KAAK,CAAC,GAAG,IAAI,GACvC,OAAO,CAAC,kBAAkB,CAAC,CAAC,CAAC,CAAC,CAuBhC;AAED;;;;;GAKG;AACH,wBAAsB,mBAAmB,CAAC,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,SAAS,GAAG,OAAO,CAAC,IAAI,CAAC,CAmB3G;AAED;;;;GAIG;AACH,wBAAsB,iBAAiB,CAAC,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CASjG"}
|
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Hardened JSON file persistence shared by the pairing stores
|
|
3
|
+
* (`machines.json`, `paired-clients.json`).
|
|
4
|
+
*
|
|
5
|
+
* Guarantees:
|
|
6
|
+
* - **No world-readable window.** The temp file is created with mode `0o600`
|
|
7
|
+
* BEFORE any secret byte is written. (The old `Bun.write(...); chmod(...)`
|
|
8
|
+
* sequence created the file with default-umask perms first, then chmodded —
|
|
9
|
+
* a window in which tokens were world-readable, and a crash between the two
|
|
10
|
+
* calls left them that way permanently.)
|
|
11
|
+
* - **Atomic writes.** Content is written to a same-directory temp file and
|
|
12
|
+
* `rename()`d over the target, so a crash mid-write never leaves a
|
|
13
|
+
* truncated/partial JSON file behind.
|
|
14
|
+
* - **Corruption is not destruction.** Reads distinguish "file absent" from
|
|
15
|
+
* "file corrupt". Writers must never treat a corrupt file as an empty list
|
|
16
|
+
* and clobber it — {@link backupCorruptFile} moves the unparseable file to a
|
|
17
|
+
* sibling `<name>.corrupt-<timestamp>` so its contents (tokens included)
|
|
18
|
+
* stay recoverable.
|
|
19
|
+
* - **Serialized writers.** {@link withFileLock} serializes read-modify-write
|
|
20
|
+
* cycles per path within the process so concurrent mutators cannot lose
|
|
21
|
+
* each other's updates.
|
|
22
|
+
*/
|
|
23
|
+
import { attempt, attemptAsync, basename, dirname, join, resolveFileSystemAdapter, rethrow, statChecked } from '@vibesdotdev/filesystem';
|
|
24
|
+
import { JsonValueSchema } from '@vibesdotdev/kernel/schemas/json';
|
|
25
|
+
/**
|
|
26
|
+
* Per-path in-process write lock chain. Genuinely process-global: it guards a
|
|
27
|
+
* file, and a file is shared by every runtime in this process (two runtimes
|
|
28
|
+
* with the same home write the same `paired-clients.json`), so a lock scoped
|
|
29
|
+
* to one runtime would not serialize them. It does not guard other processes;
|
|
30
|
+
* the atomic rename below keeps each write whole for them.
|
|
31
|
+
*/
|
|
32
|
+
const fileLocks = new Map();
|
|
33
|
+
/**
|
|
34
|
+
* Serialize an async operation against a file path. Operations on the same
|
|
35
|
+
* path run strictly one-after-another (in call order); different paths do not
|
|
36
|
+
* block each other. Errors from one operation do not poison the chain.
|
|
37
|
+
*/
|
|
38
|
+
export async function withFileLock(path, operation) {
|
|
39
|
+
const previous = fileLocks.get(path) ?? Promise.resolve();
|
|
40
|
+
let release;
|
|
41
|
+
const current = new Promise((resolve) => {
|
|
42
|
+
release = resolve;
|
|
43
|
+
});
|
|
44
|
+
fileLocks.set(path, current);
|
|
45
|
+
await previous;
|
|
46
|
+
try {
|
|
47
|
+
return await operation();
|
|
48
|
+
}
|
|
49
|
+
finally {
|
|
50
|
+
release();
|
|
51
|
+
if (fileLocks.get(path) === current) {
|
|
52
|
+
fileLocks.delete(path);
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* Read and validate a JSON store file.
|
|
58
|
+
*
|
|
59
|
+
* - missing file → `{ state: 'absent' }`
|
|
60
|
+
* - unreadable / unparseable / schema-invalid → `{ state: 'corrupt' }`
|
|
61
|
+
* - otherwise → `{ state: 'ok', data }`
|
|
62
|
+
*
|
|
63
|
+
* `validate` returns the typed data or `null` when the parsed value does not
|
|
64
|
+
* match the expected schema (schema mismatch is treated as corruption so a
|
|
65
|
+
* file written by a future version is never silently clobbered).
|
|
66
|
+
*/
|
|
67
|
+
function isStringValue(value) {
|
|
68
|
+
return typeof value === 'string';
|
|
69
|
+
}
|
|
70
|
+
export async function readJsonFile(runtime, path, validate) {
|
|
71
|
+
const fs = await resolveFileSystemAdapter(runtime, { binding: false });
|
|
72
|
+
const stat = await statChecked(fs, path);
|
|
73
|
+
if (!stat.found)
|
|
74
|
+
return { state: 'absent' };
|
|
75
|
+
const read = await attemptAsync(() => fs.readFile(path, 'utf-8'));
|
|
76
|
+
if (!read.ok) {
|
|
77
|
+
// Vanished between stat and read reads absent (as before); anything
|
|
78
|
+
// else is unreadable, which is the store's typed `corrupt` answer.
|
|
79
|
+
const restat = await statChecked(fs, path);
|
|
80
|
+
if (!restat.found)
|
|
81
|
+
return { state: 'absent' };
|
|
82
|
+
return { state: 'corrupt' };
|
|
83
|
+
}
|
|
84
|
+
const text = read.value;
|
|
85
|
+
if (!isStringValue(text))
|
|
86
|
+
return { state: 'corrupt' };
|
|
87
|
+
// JSON.parse without a reviver throws only SyntaxError; unparseable
|
|
88
|
+
// content is the store's typed `corrupt` answer.
|
|
89
|
+
const parsed = attempt(() => JSON.parse(text));
|
|
90
|
+
if (!parsed.ok)
|
|
91
|
+
return { state: 'corrupt' };
|
|
92
|
+
const document = JsonValueSchema.safeParse(parsed.value);
|
|
93
|
+
if (!document.success)
|
|
94
|
+
return { state: 'corrupt' };
|
|
95
|
+
const data = validate(document.data);
|
|
96
|
+
if (data === null)
|
|
97
|
+
return { state: 'corrupt' };
|
|
98
|
+
return { state: 'ok', data };
|
|
99
|
+
}
|
|
100
|
+
/**
|
|
101
|
+
* Atomically write a JSON store file with owner-only permissions.
|
|
102
|
+
*
|
|
103
|
+
* The temp file is created in the same directory with mode `0o600` (applied
|
|
104
|
+
* at creation, before any byte is written) and then renamed over the target.
|
|
105
|
+
*/
|
|
106
|
+
export async function writeJsonFileAtomic(runtime, path, data) {
|
|
107
|
+
const fs = await resolveFileSystemAdapter(runtime, { binding: false });
|
|
108
|
+
const dir = dirname(path);
|
|
109
|
+
await fs.mkdir(dir, { recursive: true });
|
|
110
|
+
const tempPath = join(dir, `.${basename(path)}.${crypto.randomUUID()}.tmp`);
|
|
111
|
+
const written = await attemptAsync(() => fs.writeFile(tempPath, JSON.stringify(data, null, '\t'), { mode: 0o600 }).then(() => fs.rename(tempPath, path)));
|
|
112
|
+
if (written.ok)
|
|
113
|
+
return;
|
|
114
|
+
// Teardown of the temp file; the write's own failure is what surfaces.
|
|
115
|
+
// A temp file that also cannot be removed is attached as its cause.
|
|
116
|
+
const cleanup = await attemptAsync(() => fs.remove(tempPath));
|
|
117
|
+
if (!cleanup.ok) {
|
|
118
|
+
throw new AggregateError([cleanup.failure, written.failure], 'atomic JSON write failed and its temp file could not be removed');
|
|
119
|
+
}
|
|
120
|
+
rethrow(written.failure);
|
|
121
|
+
}
|
|
122
|
+
/**
|
|
123
|
+
* Move a corrupt store file aside to `<path>.corrupt-<timestamp>` so a
|
|
124
|
+
* subsequent rewrite cannot destroy its (potentially recoverable) contents.
|
|
125
|
+
* Returns the backup path, or null when the file vanished in the meantime.
|
|
126
|
+
*/
|
|
127
|
+
export async function backupCorruptFile(runtime, path) {
|
|
128
|
+
const fs = await resolveFileSystemAdapter(runtime, { binding: false });
|
|
129
|
+
const backupPath = `${path}.corrupt-${Date.now()}`;
|
|
130
|
+
const moved = await attemptAsync(() => fs.rename(path, backupPath));
|
|
131
|
+
if (moved.ok)
|
|
132
|
+
return backupPath;
|
|
133
|
+
// The file vanished in the meantime; anything else is real.
|
|
134
|
+
const restat = await statChecked(fs, path);
|
|
135
|
+
if (!restat.found)
|
|
136
|
+
return null;
|
|
137
|
+
rethrow(moved.failure);
|
|
138
|
+
}
|
|
139
|
+
//# sourceMappingURL=json-file-store.consumer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"json-file-store.consumer.js","sourceRoot":"","sources":["../../../src/daemon/pairing/json-file-store.consumer.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAEH,OAAO,EACP,OAAO,EACP,YAAY,EACZ,QAAQ,EACR,OAAO,EACP,IAAI,EACJ,wBAAwB,EACxB,OAAO,EACP,WAAW,EACV,MAAM,yBAAyB,CAAC;AAEjC,OAAO,EAAE,eAAe,EAAkB,MAAM,kCAAkC,CAAC;AAEnF;;;;;;GAMG;AACH,MAAM,SAAS,GAAG,IAAI,GAAG,EAAyB,CAAC;AAEnD;;;;GAIG;AACH,MAAM,CAAC,KAAK,UAAU,YAAY,CAAI,IAAY,EAAE,SAA2B;IAC9E,MAAM,QAAQ,GAAG,SAAS,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,OAAO,CAAC,OAAO,EAAE,CAAC;IAC1D,IAAI,OAAoB,CAAC;IACzB,MAAM,OAAO,GAAG,IAAI,OAAO,CAAO,CAAC,OAAO,EAAE,EAAE;QAC7C,OAAO,GAAG,OAAO,CAAC;IACnB,CAAC,CAAC,CAAC;IACH,SAAS,CAAC,GAAG,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;IAC7B,MAAM,QAAQ,CAAC;IACf,I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
|
1
|
+
import type { LocalMachineIdentity } from "../../schemas/contracts/pairing/machine-identity.consumer.ts";
|
|
2
|
+
export { MachineIdFileSchema } from "../../schemas/contracts/pairing/machine-identity.consumer.ts";
|
|
3
|
+
export type { LocalMachineIdentity } from "../../schemas/contracts/pairing/machine-identity.consumer.ts";
|
|
4
|
+
import { type RuntimeRef } from '@vibesdotdev/kernel';
|
|
5
|
+
/**
|
|
6
|
+
* Resolve (minting + persisting on first use) this machine's pairing identity.
|
|
7
|
+
*/
|
|
8
|
+
export declare function getLocalMachineIdentity(runtime: RuntimeRef): Promise<LocalMachineIdentity>;
|
|
9
|
+
//# sourceMappingURL=machine-identity.consumer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"machine-identity.consumer.d.ts","sourceRoot":"","sources":["../../../src/daemon/pairing/machine-identity.consumer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,8DAA8D,CAAC;AAEzG,OAAO,EAAE,mBAAmB,EAAE,MAAM,8DAA8D,CAAC;AACnG,YAAY,EAAE,oBAAoB,EAAE,MAAM,8DAA8D,CAAC;AAazG,OAAO,EAAmB,KAAK,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAqBvE;;GAEG;AACH,wBAAsB,uBAAuB,CAAC,OAAO,EAAE,UAAU,GAAG,OAAO,CAAC,oBAAoB,CAAC,CAkBhG"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { MachineIdFileSchema } from "../../schemas/contracts/pairing/machine-identity.consumer.js";
|
|
2
|
+
export { MachineIdFileSchema } from "../../schemas/contracts/pairing/machine-identity.consumer.js";
|
|
3
|
+
/**
|
|
4
|
+
* Local machine identity for the pairing handshake.
|
|
5
|
+
*
|
|
6
|
+
* The pairing protocol needs a stable machine id on both sides (the granting
|
|
7
|
+
* daemon stamps its id into pairing codes and responses; the requester sends
|
|
8
|
+
* its id in the PairingRequest). The id is a UUID minted on first use and
|
|
9
|
+
* persisted at `<activeHome>/machine-id.json` under the handed runtime's path
|
|
10
|
+
* roots; the display name is the environment's hostname (recomputed per call
|
|
11
|
+
* so renames are reflected).
|
|
12
|
+
*/
|
|
13
|
+
import { join } from '@vibesdotdev/filesystem';
|
|
14
|
+
import { CapabilityError } from '@vibesdotdev/kernel';
|
|
15
|
+
import { JsonValueSchema } from '@vibesdotdev/kernel/schemas/json';
|
|
16
|
+
import { getPathRoots } from '@vibesdotdev/paths';
|
|
17
|
+
import { readJsonFile, withFileLock, writeJsonFileAtomic } from "./json-file-store.consumer.js";
|
|
18
|
+
function validateMachineIdFile(parsed) {
|
|
19
|
+
const result = MachineIdFileSchema.safeParse(parsed);
|
|
20
|
+
return result.success ? result.data : null;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Resolve (minting + persisting on first use) this machine's pairing identity.
|
|
24
|
+
*/
|
|
25
|
+
export async function getLocalMachineIdentity(runtime) {
|
|
26
|
+
const path = join(getPathRoots(runtime).activeHome, 'machine-id.json');
|
|
27
|
+
const name = runtime.localEnvironment.getHostname?.();
|
|
28
|
+
if (name === undefined) {
|
|
29
|
+
throw new CapabilityError('This host does not expose a machine hostname.', 'UNAVAILABLE', {
|
|
30
|
+
reason: 'host-hostname-unavailable',
|
|
31
|
+
retryable: false
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
return withFileLock(path, async () => {
|
|
35
|
+
const existing = await readJsonFile(runtime, path, validateMachineIdFile);
|
|
36
|
+
if (existing.state === 'ok') {
|
|
37
|
+
return { id: existing.data.machineId, name };
|
|
38
|
+
}
|
|
39
|
+
const id = crypto.randomUUID();
|
|
40
|
+
await writeJsonFileAtomic(runtime, path, JsonValueSchema.parse({ version: 1, machineId: id }));
|
|
41
|
+
return { id, name };
|
|
42
|
+
});
|
|
43
|
+
}
|
|
44
|
+
//# sourceMappingURL=machine-identity.consumer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"machine-identity.consumer.js","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CAAC;QAC1E,IAAI,QAAQ,CAAC,KAAK,KAAK,IAAI,EAAE,CAAC;YAC7B,OAAO,EAAE,EAAE,EAAE,QAAQ,CAAC,IAAI,CAAC,SAAS,EAAE,IAAI,EAAE,CAAC;QAC9C,CAAC;QACD,MAAM,EAAE,GAAG,MAAM,CAAC,UAAU,EAAE,CAAC;QAC/B,MAAM,mBAAmB,CAAC,OAAO,EAAE,IAAI,EAAE,eAAe,CAAC,KAAK,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,SAAS,EAAE,EAAE,EAA0B,CAAC,CAAC,CAAC;QACvH,OAAO,EAAE,EAAE,EAAE,IAAI,EAAE,CAAC;IACrB,CAAC,CAAC,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Machine storage — read/write paired machines from `<vibesHome>/machines.json`.
|
|
3
|
+
*
|
|
4
|
+
* The file contains bearer tokens, so persistence goes through the hardened
|
|
5
|
+
* JSON store (`json-file-store.consumer.ts`): atomic temp-file+rename writes
|
|
6
|
+
* created with mode 0o600 (no world-readable window), corrupt files backed up
|
|
7
|
+
* instead of clobbered, and read-modify-write cycles serialized per path.
|
|
8
|
+
*
|
|
9
|
+
* The file lives under the handed runtime's `activeHome` (its path roots,
|
|
10
|
+
* profile selection included); every function takes that runtime.
|
|
11
|
+
*/
|
|
12
|
+
import type { RuntimeRef } from '@vibesdotdev/kernel';
|
|
13
|
+
import type { MachineCapability, PairedMachine } from './types.ts';
|
|
14
|
+
import { type PairingStoreRuntime } from './json-file-store.consumer.ts';
|
|
15
|
+
/**
|
|
16
|
+
* Read the machines file, returning an empty list if absent.
|
|
17
|
+
*
|
|
18
|
+
* A corrupt (unparseable or schema-mismatched) file also reads as an empty
|
|
19
|
+
* list — but it is NOT rewritten here; the mutators below back it up to a
|
|
20
|
+
* sibling `machines.json.corrupt-<timestamp>` before writing anything, so a
|
|
21
|
+
* parse failure can never silently destroy the stored tokens.
|
|
22
|
+
*/
|
|
23
|
+
export declare function readMachines(runtime: RuntimeRef): Promise<PairedMachine[]>;
|
|
24
|
+
/** Add a paired machine. Replaces existing entry with the same id. */
|
|
25
|
+
export declare function addMachine(runtime: RuntimeRef, machine: PairedMachine): Promise<void>;
|
|
26
|
+
/** Remove a paired machine by id. Returns true if found and removed. */
|
|
27
|
+
export declare function removeMachine(runtime: RuntimeRef, machineId: string): Promise<boolean>;
|
|
28
|
+
/** Get a paired machine by id */
|
|
29
|
+
export declare function getMachine(runtime: RuntimeRef, machineId: string): Promise<PairedMachine | null>;
|
|
30
|
+
/** Update a machine's status and lastSeen timestamp */
|
|
31
|
+
export declare function updateMachineStatus(runtime: RuntimeRef, machineId: string, status: PairedMachine['status'], lastSeen?: string): Promise<void>;
|
|
32
|
+
/** Update capabilities for a paired machine */
|
|
33
|
+
export declare function updateMachineCapabilities(runtime: RuntimeRef, machineId: string, capabilities: MachineCapability[]): Promise<void>;
|
|
34
|
+
/** Get the path to the machines file (for display/debugging) */
|
|
35
|
+
export declare function getMachinesFilePath(runtime: PairingStoreRuntime): string;
|
|
36
|
+
//# sourceMappingURL=machines.consumer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"machines.consumer.d.ts","sourceRoot":"","sources":["../../../src/daemon/pairing/machines.consumer.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAGtD,OAAO,KAAK,EAAE,iBAAiB,EAAgB,aAAa,EAAE,MAAM,YAAY,CAAC;AAGjF,OAAO,EAKP,KAAK,mBAAmB,EACvB,MAAM,+BAA+B,CAAC;AAYvC;;;;;;;GAOG;AACH,wBAAsB,YAAY,CAAC,OAAO,EAAE,UAAU,GAAG,OAAO,CAAC,aAAa,EAAE,CAAC,CAGhF;AAsBD,sEAAsE;AACtE,wBAAsB,UAAU,CAAC,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE,aAAa,GAAG,OAAO,CAAC,IAAI,CAAC,CAY3F;AAED,wEAAwE;AACxE,wBAAsB,aAAa,CAAC,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAS5F;AAED,iCAAiC;AACjC,wBAAsB,UAAU,CAAC,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,aAAa,GAAG,IAAI,CAAC,CAGtG;AAED,uDAAuD;AACvD,wBAAsB,mBAAmB,CACxC,OAAO,EAAE,UAAU,EACnB,SAAS,EAAE,MAAM,EACjB,MAAM,EAAE,aAAa,CAAC,QAAQ,CAAC,EAC/B,QAAQ,CAAC,EAAE,MAAM,GACf,OAAO,CAAC,IAAI,CAAC,CAUf;AAED,+CAA+C;AAC/C,wBAAsB,yBAAyB,CAC9C,OAAO,EAAE,UAAU,EACnB,SAAS,EAAE,MAAM,EACjB,YAAY,EAAE,iBAAiB,EAAE,GAC/B,OAAO,CAAC,IAAI,CAAC,CASf;AAED,gEAAgE;AAChE,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,mBAAmB,GAAG,MAAM,CAExE"}
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Machine storage — read/write paired machines from `<vibesHome>/machines.json`.
|
|
3
|
+
*
|
|
4
|
+
* The file contains bearer tokens, so persistence goes through the hardened
|
|
5
|
+
* JSON store (`json-file-store.consumer.ts`): atomic temp-file+rename writes
|
|
6
|
+
* created with mode 0o600 (no world-readable window), corrupt files backed up
|
|
7
|
+
* instead of clobbered, and read-modify-write cycles serialized per path.
|
|
8
|
+
*
|
|
9
|
+
* The file lives under the handed runtime's `activeHome` (its path roots,
|
|
10
|
+
* profile selection included); every function takes that runtime.
|
|
11
|
+
*/
|
|
12
|
+
import { join } from '@vibesdotdev/filesystem';
|
|
13
|
+
import { JsonValueSchema } from '@vibesdotdev/kernel/schemas/json';
|
|
14
|
+
import { getPathRoots } from '@vibesdotdev/paths';
|
|
15
|
+
import { MachinesFileSchema } from "../../schemas/pairing.js";
|
|
16
|
+
import { backupCorruptFile, readJsonFile, withFileLock, writeJsonFileAtomic } from "./json-file-store.consumer.js";
|
|
17
|
+
function getMachinesFile(runtime) {
|
|
18
|
+
return join(getPathRoots(runtime).activeHome, 'machines.json');
|
|
19
|
+
}
|
|
20
|
+
/** Validate the parsed file content; null = schema mismatch (treated as corrupt). */
|
|
21
|
+
function validateMachinesFile(parsed) {
|
|
22
|
+
const result = MachinesFileSchema.safeParse(parsed);
|
|
23
|
+
return result.success ? result.data : null;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Read the machines file, returning an empty list if absent.
|
|
27
|
+
*
|
|
28
|
+
* A corrupt (unparseable or schema-mismatched) file also reads as an empty
|
|
29
|
+
* list — but it is NOT rewritten here; the mutators below back it up to a
|
|
30
|
+
* sibling `machines.json.corrupt-<timestamp>` before writing anything, so a
|
|
31
|
+
* parse failure can never silently destroy the stored tokens.
|
|
32
|
+
*/
|
|
33
|
+
export async function readMachines(runtime) {
|
|
34
|
+
const result = await readJsonFile(runtime, getMachinesFile(runtime), validateMachinesFile);
|
|
35
|
+
return result.state === 'ok' ? result.data.machines : [];
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Read the current machine list for a read-modify-write cycle. When the file
|
|
39
|
+
* is corrupt, moves it aside (backup) so the upcoming write starts from a
|
|
40
|
+
* clean slate without destroying the unreadable content.
|
|
41
|
+
*/
|
|
42
|
+
async function readMachinesForUpdate(runtime, path) {
|
|
43
|
+
const result = await readJsonFile(runtime, path, validateMachinesFile);
|
|
44
|
+
if (result.state === 'ok')
|
|
45
|
+
return result.data.machines;
|
|
46
|
+
if (result.state === 'corrupt') {
|
|
47
|
+
await backupCorruptFile(runtime, path);
|
|
48
|
+
}
|
|
49
|
+
return [];
|
|
50
|
+
}
|
|
51
|
+
/** Atomically write the machines file with owner-only permissions. */
|
|
52
|
+
async function writeMachines(runtime, path, machines) {
|
|
53
|
+
const data = { version: 1, machines };
|
|
54
|
+
await writeJsonFileAtomic(runtime, path, JsonValueSchema.parse(data));
|
|
55
|
+
}
|
|
56
|
+
/** Add a paired machine. Replaces existing entry with the same id. */
|
|
57
|
+
export async function addMachine(runtime, machine) {
|
|
58
|
+
const path = getMachinesFile(runtime);
|
|
59
|
+
await withFileLock(path, async () => {
|
|
60
|
+
const machines = await readMachinesForUpdate(runtime, path);
|
|
61
|
+
const idx = machines.findIndex((m) => m.id === machine.id);
|
|
62
|
+
if (idx >= 0) {
|
|
63
|
+
machines[idx] = machine;
|
|
64
|
+
}
|
|
65
|
+
else {
|
|
66
|
+
machines.push(machine);
|
|
67
|
+
}
|
|
68
|
+
await writeMachines(runtime, path, machines);
|
|
69
|
+
});
|
|
70
|
+
}
|
|
71
|
+
/** Remove a paired machine by id. Returns true if found and removed. */
|
|
72
|
+
export async function removeMachine(runtime, machineId) {
|
|
73
|
+
const path = getMachinesFile(runtime);
|
|
74
|
+
return withFileLock(path, async () => {
|
|
75
|
+
const machines = await readMachinesForUpdate(runtime, path);
|
|
76
|
+
const filtered = machines.filter((m) => m.id !== machineId);
|
|
77
|
+
if (filtered.length === machines.length)
|
|
78
|
+
return false;
|
|
79
|
+
await writeMachines(runtime, path, filtered);
|
|
80
|
+
return true;
|
|
81
|
+
});
|
|
82
|
+
}
|
|
83
|
+
/** Get a paired machine by id */
|
|
84
|
+
export async function getMachine(runtime, machineId) {
|
|
85
|
+
const machines = await readMachines(runtime);
|
|
86
|
+
return machines.find((m) => m.id === machineId) ?? null;
|
|
87
|
+
}
|
|
88
|
+
/** Update a machine's status and lastSeen timestamp */
|
|
89
|
+
export async function updateMachineStatus(runtime, machineId, status, lastSeen) {
|
|
90
|
+
const path = getMachinesFile(runtime);
|
|
91
|
+
await withFileLock(path, async () => {
|
|
92
|
+
const machines = await readMachinesForUpdate(runtime, path);
|
|
93
|
+
const machine = machines.find((m) => m.id === machineId);
|
|
94
|
+
if (!machine)
|
|
95
|
+
return;
|
|
96
|
+
machine.status = status;
|
|
97
|
+
if (lastSeen)
|
|
98
|
+
machine.lastSeen = lastSeen;
|
|
99
|
+
await writeMachines(runtime, path, machines);
|
|
100
|
+
});
|
|
101
|
+
}
|
|
102
|
+
/** Update capabilities for a paired machine */
|
|
103
|
+
export async function updateMachineCapabilities(runtime, machineId, capabilities) {
|
|
104
|
+
const path = getMachinesFile(runtime);
|
|
105
|
+
await withFileLock(path, async () => {
|
|
106
|
+
const machines = await readMachinesForUpdate(runtime, path);
|
|
107
|
+
const machine = machines.find((m) => m.id === machineId);
|
|
108
|
+
if (!machine)
|
|
109
|
+
return;
|
|
110
|
+
machine.capabilities = capabilities;
|
|
111
|
+
await writeMachines(runtime, path, machines);
|
|
112
|
+
});
|
|
113
|
+
}
|
|
114
|
+
/** Get the path to the machines file (for display/debugging) */
|
|
115
|
+
export function getMachinesFilePath(runtime) {
|
|
116
|
+
return getMachinesFile(runtime);
|
|
117
|
+
}
|
|
118
|
+
//# sourceMappingURL=machines.consumer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"machines.consumer.js","sourceRoot":"","sources":["../../../src/daemon/pairing/machines.consumer.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,IAAI,EAAE,MAAM,yBAAyB,CAAC;AAE/C,OAAO,EAAE,eAAe,EAAkB,MAAM,kCAAkC,CAAC;AACnF,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAGlD,OAAO,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AAC9D,OAAO,EACP,iBAAiB,EACjB,YAAY,EACZ,YAAY,EACZ,mBAAmB,EAElB,MAAM,+BAA+B,CAAC;AAEvC,SAAS,eAAe,CAAC,OAA4B;IACpD,OAAO,IAAI,CAAC,YAAY,CAAC,OAAO,CAAC,CAAC,UAAU,EAAE,eAAe,CAAC,CAAC;AAChE,CAAC;AAED,qFAAqF;AACr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IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,KAAK,SAAS,CAAC,CAAC;QACzD,IAAI,CAAC,OAAO;YAAE,OAAO;QACrB,OAAO,CAAC,YAAY,GAAG,YAAY,CAAC;QACpC,MAAM,aAAa,CAAC,OAAO,EAAE,IAAI,EAAE,QAAQ,CAAC,CAAC;IAC9C,CAAC,CAAC,CAAC;AACJ,CAAC;AAED,gEAAgE;AAChE,MAAM,UAAU,mBAAmB,CAAC,OAA4B;IAC/D,OAAO,eAAe,CAAC,OAAO,CAAC,CAAC;AACjC,CAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Paired-client storage — the GRANTING side of the pairing handshake.
|
|
3
|
+
*
|
|
4
|
+
* `machines.json` records remote daemons THIS machine can call (outbound).
|
|
5
|
+
* `paired-clients.json` is the inverse: the bearer tokens this daemon has
|
|
6
|
+
* ISSUED to remote machines via the `/pair` handshake (inbound). The daemon
|
|
7
|
+
* loads this file at startup and registers every stored token into its
|
|
8
|
+
* TokenRegistry so pairing survives a restart
|
|
9
|
+
* (`daemon/auth/pairing-binding.ts#registerPersistedPairedClientTokens`).
|
|
10
|
+
*
|
|
11
|
+
* Persistence goes through the same hardened JSON store as machines.json:
|
|
12
|
+
* atomic 0o600 writes, corrupt-file backup, serialized writers.
|
|
13
|
+
*/
|
|
14
|
+
import type { RuntimeRef } from '@vibesdotdev/kernel';
|
|
15
|
+
import { type PairedClient } from '../../schemas/pairing.ts';
|
|
16
|
+
import { type PairingStoreRuntime } from './json-file-store.consumer.ts';
|
|
17
|
+
export type { PairedClient, PairedClientsFile } from '../../schemas/pairing.ts';
|
|
18
|
+
/** Read all paired clients; empty list when the file is absent (or corrupt). */
|
|
19
|
+
export declare function readPairedClients(runtime: RuntimeRef): Promise<PairedClient[]>;
|
|
20
|
+
/** Add a paired client. Replaces an existing entry with the same machineId. */
|
|
21
|
+
export declare function addPairedClient(runtime: RuntimeRef, client: PairedClient): Promise<void>;
|
|
22
|
+
/** Remove a paired client by machineId. Returns true if found and removed. */
|
|
23
|
+
export declare function removePairedClient(runtime: RuntimeRef, machineId: string): Promise<boolean>;
|
|
24
|
+
/** Get the path to the paired-clients file (for display/debugging). */
|
|
25
|
+
export declare function getPairedClientsFilePath(runtime: PairingStoreRuntime): string;
|
|
26
|
+
//# sourceMappingURL=paired-clients.consumer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"paired-clients.consumer.d.ts","sourceRoot":"","sources":["../../../src/daemon/pairing/paired-clients.consumer.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAGH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAItD,OAAO,EAA2B,KAAK,YAAY,EAA0B,MAAM,0BAA0B,CAAC;AAC9G,OAAO,EAKP,KAAK,mBAAmB,EACvB,MAAM,+BAA+B,CAAC;AACvC,YAAY,EAAE,YAAY,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAYhF,gFAAgF;AAChF,wBAAsB,iBAAiB,CAAC,OAAO,EAAE,UAAU,GAAG,OAAO,CAAC,YAAY,EAAE,CAAC,CAGpF;AAWD,+EAA+E;AAC/E,wBAAsB,eAAe,CAAC,OAAO,EAAE,UAAU,EAAE,MAAM,EAAE,YAAY,GAAG,OAAO,CAAC,IAAI,CAAC,CAY9F;AAED,8EAA8E;AAC9E,wBAAsB,kBAAkB,CAAC,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CASjG;AAED,uEAAuE;AACvE,wBAAgB,wBAAwB,CAAC,OAAO,EAAE,mBAAmB,GAAG,MAAM,CAE7E"}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Paired-client storage — the GRANTING side of the pairing handshake.
|
|
3
|
+
*
|
|
4
|
+
* `machines.json` records remote daemons THIS machine can call (outbound).
|
|
5
|
+
* `paired-clients.json` is the inverse: the bearer tokens this daemon has
|
|
6
|
+
* ISSUED to remote machines via the `/pair` handshake (inbound). The daemon
|
|
7
|
+
* loads this file at startup and registers every stored token into its
|
|
8
|
+
* TokenRegistry so pairing survives a restart
|
|
9
|
+
* (`daemon/auth/pairing-binding.ts#registerPersistedPairedClientTokens`).
|
|
10
|
+
*
|
|
11
|
+
* Persistence goes through the same hardened JSON store as machines.json:
|
|
12
|
+
* atomic 0o600 writes, corrupt-file backup, serialized writers.
|
|
13
|
+
*/
|
|
14
|
+
import { join } from '@vibesdotdev/filesystem';
|
|
15
|
+
import { JsonValueSchema } from '@vibesdotdev/kernel/schemas/json';
|
|
16
|
+
import { getPathRoots } from '@vibesdotdev/paths';
|
|
17
|
+
import { PairedClientsFileSchema } from "../../schemas/pairing.js";
|
|
18
|
+
import { backupCorruptFile, readJsonFile, withFileLock, writeJsonFileAtomic } from "./json-file-store.consumer.js";
|
|
19
|
+
/** Under the handed runtime's `activeHome`, beside `machines.json`. */
|
|
20
|
+
function getPairedClientsFile(runtime) {
|
|
21
|
+
return join(getPathRoots(runtime).activeHome, 'paired-clients.json');
|
|
22
|
+
}
|
|
23
|
+
function validatePairedClientsFile(parsed) {
|
|
24
|
+
const result = PairedClientsFileSchema.safeParse(parsed);
|
|
25
|
+
return result.success ? result.data : null;
|
|
26
|
+
}
|
|
27
|
+
/** Read all paired clients; empty list when the file is absent (or corrupt). */
|
|
28
|
+
export async function readPairedClients(runtime) {
|
|
29
|
+
const result = await readJsonFile(runtime, getPairedClientsFile(runtime), validatePairedClientsFile);
|
|
30
|
+
return result.state === 'ok' ? result.data.clients : [];
|
|
31
|
+
}
|
|
32
|
+
async function readPairedClientsForUpdate(runtime, path) {
|
|
33
|
+
const result = await readJsonFile(runtime, path, validatePairedClientsFile);
|
|
34
|
+
if (result.state === 'ok')
|
|
35
|
+
return result.data.clients;
|
|
36
|
+
if (result.state === 'corrupt') {
|
|
37
|
+
await backupCorruptFile(runtime, path);
|
|
38
|
+
}
|
|
39
|
+
return [];
|
|
40
|
+
}
|
|
41
|
+
/** Add a paired client. Replaces an existing entry with the same machineId. */
|
|
42
|
+
export async function addPairedClient(runtime, client) {
|
|
43
|
+
const path = getPairedClientsFile(runtime);
|
|
44
|
+
await withFileLock(path, async () => {
|
|
45
|
+
const clients = await readPairedClientsForUpdate(runtime, path);
|
|
46
|
+
const idx = clients.findIndex((c) => c.machineId === client.machineId);
|
|
47
|
+
if (idx >= 0) {
|
|
48
|
+
clients[idx] = client;
|
|
49
|
+
}
|
|
50
|
+
else {
|
|
51
|
+
clients.push(client);
|
|
52
|
+
}
|
|
53
|
+
await writeJsonFileAtomic(runtime, path, JsonValueSchema.parse({ version: 1, clients }));
|
|
54
|
+
});
|
|
55
|
+
}
|
|
56
|
+
/** Remove a paired client by machineId. Returns true if found and removed. */
|
|
57
|
+
export async function removePairedClient(runtime, machineId) {
|
|
58
|
+
const path = getPairedClientsFile(runtime);
|
|
59
|
+
return withFileLock(path, async () => {
|
|
60
|
+
const clients = await readPairedClientsForUpdate(runtime, path);
|
|
61
|
+
const filtered = clients.filter((c) => c.machineId !== machineId);
|
|
62
|
+
if (filtered.length === clients.length)
|
|
63
|
+
return false;
|
|
64
|
+
await writeJsonFileAtomic(runtime, path, JsonValueSchema.parse({ version: 1, clients: filtered }));
|
|
65
|
+
return true;
|
|
66
|
+
});
|
|
67
|
+
}
|
|
68
|
+
/** Get the path to the paired-clients file (for display/debugging). */
|
|
69
|
+
export function getPairedClientsFilePath(runtime) {
|
|
70
|
+
return getPairedClientsFile(runtime);
|
|
71
|
+
}
|
|
72
|
+
//# sourceMappingURL=paired-clients.consumer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"paired-clients.consumer.js","sourceRoot":"","sources":["../../../src/daemon/pairing/paired-clients.consumer.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,EAAE,IAAI,EAAE,MAAM,yBAAyB,C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KAAK,OAAO,CAAC,MAAM;YAAE,OAAO,KAAK,CAAC;QACrD,MAAM,mBAAmB,CAAC,OAAO,EAAE,IAAI,EAAE,eAAe,CAAC,KAAK,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,OAAO,EAAE,QAAQ,EAA8B,CAAC,CAAC,CAAC;QAC/H,OAAO,IAAI,CAAC;IACb,CAAC,CAAC,CAAC;AACJ,CAAC;AAED,uEAAuE;AACvE,MAAM,UAAU,wBAAwB,CAAC,OAA4B;IACpE,OAAO,oBAAoB,CAAC,OAAO,CAAC,CAAC;AACtC,CAAC"}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Pairing protocol — generate codes, validate requests, complete pairing.
|
|
3
|
+
*
|
|
4
|
+
* Flow (wired end-to-end through the runtime daemon):
|
|
5
|
+
* 1. Granting daemon generates a pairing code — `pairing-generate-code` RPC
|
|
6
|
+
* command, reachable only over the Unix socket (the TCP capability gate
|
|
7
|
+
* rejects it), so minting a code requires local access to the machine.
|
|
8
|
+
* 2. User enters the code on the requesting machine (CLI or Bridge UI).
|
|
9
|
+
* 3. Requesting machine POSTs a PairingRequest to the granting daemon's
|
|
10
|
+
* `/pair` endpoint (`pairWithRemoteDaemon` in `client.consumer.ts`).
|
|
11
|
+
* 4. Granting daemon validates the code (this module), persists the issued
|
|
12
|
+
* token + requester identity in `paired-clients.json`, registers the token
|
|
13
|
+
* into its TokenRegistry (`daemon/auth/pairing-binding.ts`), and returns a
|
|
14
|
+
* PairingResponse.
|
|
15
|
+
* 5. Requesting machine stores the machine entry in `machines.json`.
|
|
16
|
+
*
|
|
17
|
+
* Brute-force guard: codes are 6-digit and single-use; on top of the 5-minute
|
|
18
|
+
* TTL, validation is rate-limited — after {@link MAX_FAILED_PAIRING_ATTEMPTS}
|
|
19
|
+
* failed attempts within the sliding window, ALL validation is refused until
|
|
20
|
+
* the window drains.
|
|
21
|
+
*
|
|
22
|
+
* The codes and the failed-attempt window are one daemon's state
|
|
23
|
+
* ({@link PairingCodes}, owned by the runtime daemon like its token
|
|
24
|
+
* registry), never module-level: two daemons, or a daemon and a test, in one
|
|
25
|
+
* process never share codes or a lockout.
|
|
26
|
+
*/
|
|
27
|
+
import type { MachineCapability, PairingCode, PairingRequest, PairingResponse } from './types.ts';
|
|
28
|
+
/** Failed validation attempts allowed within the sliding window. */
|
|
29
|
+
export declare const MAX_FAILED_PAIRING_ATTEMPTS = 10;
|
|
30
|
+
/** Sliding window for the failed-attempt rate limit. */
|
|
31
|
+
export declare const FAILED_PAIRING_ATTEMPT_WINDOW_MS = 60000;
|
|
32
|
+
/** One daemon's pairing codes and its failed-attempt rate limit. */
|
|
33
|
+
export declare class PairingCodes {
|
|
34
|
+
/** Timestamps of recent failed validation attempts. */
|
|
35
|
+
private failedAttempts;
|
|
36
|
+
/** Active pairing codes, in memory only. */
|
|
37
|
+
private readonly activeCodes;
|
|
38
|
+
private pruneFailedAttempts;
|
|
39
|
+
/** Whether pairing validation is currently locked out by failed attempts. */
|
|
40
|
+
isRateLimited(): boolean;
|
|
41
|
+
/** Reset the failed-attempt rate limiter (operator reset). */
|
|
42
|
+
resetRateLimit(): void;
|
|
43
|
+
/**
|
|
44
|
+
* Generate a pairing code for this daemon.
|
|
45
|
+
* The code is stored in memory and expires after 5 minutes.
|
|
46
|
+
*/
|
|
47
|
+
generate(machineId: string, capabilities?: MachineCapability[]): PairingCode;
|
|
48
|
+
/**
|
|
49
|
+
* Validate a pairing request against active codes.
|
|
50
|
+
* Returns a PairingResponse with a permanent token if valid, null otherwise.
|
|
51
|
+
*
|
|
52
|
+
* Rate-limited: after {@link MAX_FAILED_PAIRING_ATTEMPTS} failures within
|
|
53
|
+
* {@link FAILED_PAIRING_ATTEMPT_WINDOW_MS}, every request (including one with
|
|
54
|
+
* a valid code) is refused until the window drains — a 6-digit code space
|
|
55
|
+
* must not be brute-forceable within the code TTL.
|
|
56
|
+
*/
|
|
57
|
+
validate(request: PairingRequest, localMachineId: string, localMachineName: string): PairingResponse | null;
|
|
58
|
+
/** The number of active (non-expired) pairing codes. */
|
|
59
|
+
activeCount(): number;
|
|
60
|
+
/** Revoke all active pairing codes. */
|
|
61
|
+
revokeAll(): void;
|
|
62
|
+
private cleanupExpiredCodes;
|
|
63
|
+
}
|
|
64
|
+
/** Generate a pairing code in `codes` (the daemon's {@link PairingCodes}). */
|
|
65
|
+
export declare function generatePairingCode(codes: PairingCodes, machineId: string, capabilities?: MachineCapability[]): PairingCode;
|
|
66
|
+
/** Validate a pairing request against `codes` (see {@link PairingCodes.validate}). */
|
|
67
|
+
export declare function validatePairingRequest(codes: PairingCodes, request: PairingRequest, localMachineId: string, localMachineName: string): PairingResponse | null;
|
|
68
|
+
/** The number of active pairing codes in `codes`. */
|
|
69
|
+
export declare function getActivePairingCodeCount(codes: PairingCodes): number;
|
|
70
|
+
/** Revoke every active pairing code in `codes`. */
|
|
71
|
+
export declare function revokeAllPairingCodes(codes: PairingCodes): void;
|
|
72
|
+
/** Whether `codes` is locked out by failed attempts. */
|
|
73
|
+
export declare function isPairingRateLimited(codes: PairingCodes): boolean;
|
|
74
|
+
/** Reset `codes`' failed-attempt rate limiter (operator reset). */
|
|
75
|
+
export declare function resetPairingRateLimit(codes: PairingCodes): void;
|
|
76
|
+
//# sourceMappingURL=pairing.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pairing.d.ts","sourceRoot":"","sources":["../../../src/daemon/pairing/pairing.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AAEH,OAAO,KAAK,EAAE,iBAAiB,EAAE,WAAW,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAQlG,oEAAoE;AACpE,eAAO,MAAM,2BAA2B,KAAK,CAAC;AAE9C,wDAAwD;AACxD,eAAO,MAAM,gCAAgC,QAAS,CAAC;AAEvD,oEAAoE;AACpE,qBAAa,YAAY;IACxB,uDAAuD;IACvD,OAAO,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