@vibesdotdev/kernel-rpc 0.0.0-stage → 1.0.0-rc.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +18 -0
- package/README.md +237 -2
- package/dist/cli/daemon/control/runtime.daemon.restart.descriptor.d.ts +9 -0
- package/dist/cli/daemon/control/runtime.daemon.restart.descriptor.d.ts.map +1 -0
- package/dist/cli/daemon/control/runtime.daemon.restart.descriptor.js +25 -0
- package/dist/cli/daemon/control/runtime.daemon.restart.descriptor.js.map +1 -0
- package/dist/cli/daemon/control/runtime.daemon.restart.impl.consumer.d.ts +13 -0
- package/dist/cli/daemon/control/runtime.daemon.restart.impl.consumer.d.ts.map +1 -0
- package/dist/cli/daemon/control/runtime.daemon.restart.impl.consumer.js +36 -0
- package/dist/cli/daemon/control/runtime.daemon.restart.impl.consumer.js.map +1 -0
- package/dist/cli/daemon/control/runtime.daemon.start.descriptor.d.ts +9 -0
- package/dist/cli/daemon/control/runtime.daemon.start.descriptor.d.ts.map +1 -0
- package/dist/cli/daemon/control/runtime.daemon.start.descriptor.js +22 -0
- package/dist/cli/daemon/control/runtime.daemon.start.descriptor.js.map +1 -0
- package/dist/cli/daemon/control/runtime.daemon.start.impl.consumer.d.ts +13 -0
- package/dist/cli/daemon/control/runtime.daemon.start.impl.consumer.d.ts.map +1 -0
- package/dist/cli/daemon/control/runtime.daemon.start.impl.consumer.js +61 -0
- package/dist/cli/daemon/control/runtime.daemon.start.impl.consumer.js.map +1 -0
- package/dist/cli/daemon/control/runtime.daemon.stop.descriptor.d.ts +9 -0
- package/dist/cli/daemon/control/runtime.daemon.stop.descriptor.d.ts.map +1 -0
- package/dist/cli/daemon/control/runtime.daemon.stop.descriptor.js +24 -0
- package/dist/cli/daemon/control/runtime.daemon.stop.descriptor.js.map +1 -0
- package/dist/cli/daemon/control/runtime.daemon.stop.impl.consumer.d.ts +14 -0
- package/dist/cli/daemon/control/runtime.daemon.stop.impl.consumer.d.ts.map +1 -0
- package/dist/cli/daemon/control/runtime.daemon.stop.impl.consumer.js +41 -0
- package/dist/cli/daemon/control/runtime.daemon.stop.impl.consumer.js.map +1 -0
- package/dist/cli/daemon/runtime.daemon.cli-group.descriptor.d.ts +9 -0
- package/dist/cli/daemon/runtime.daemon.cli-group.descriptor.d.ts.map +1 -0
- package/dist/cli/daemon/runtime.daemon.cli-group.descriptor.js +17 -0
- package/dist/cli/daemon/runtime.daemon.cli-group.descriptor.js.map +1 -0
- package/dist/cli/daemon/runtime.daemon.serve.descriptor.d.ts +10 -0
- package/dist/cli/daemon/runtime.daemon.serve.descriptor.d.ts.map +1 -0
- package/dist/cli/daemon/runtime.daemon.serve.descriptor.js +23 -0
- package/dist/cli/daemon/runtime.daemon.serve.descriptor.js.map +1 -0
- package/dist/cli/daemon/runtime.daemon.serve.impl.consumer.d.ts +22 -0
- package/dist/cli/daemon/runtime.daemon.serve.impl.consumer.d.ts.map +1 -0
- package/dist/cli/daemon/runtime.daemon.serve.impl.consumer.js +68 -0
- package/dist/cli/daemon/runtime.daemon.serve.impl.consumer.js.map +1 -0
- package/dist/cli/daemon/runtime.daemon.status.descriptor.d.ts +9 -0
- package/dist/cli/daemon/runtime.daemon.status.descriptor.d.ts.map +1 -0
- package/dist/cli/daemon/runtime.daemon.status.descriptor.js +24 -0
- package/dist/cli/daemon/runtime.daemon.status.descriptor.js.map +1 -0
- package/dist/cli/daemon/runtime.daemon.status.impl.consumer.d.ts +12 -0
- package/dist/cli/daemon/runtime.daemon.status.impl.consumer.d.ts.map +1 -0
- package/dist/cli/daemon/runtime.daemon.status.impl.consumer.js +110 -0
- package/dist/cli/daemon/runtime.daemon.status.impl.consumer.js.map +1 -0
- package/dist/cli/discovery/runtime.doctor.descriptor.d.ts +10 -0
- package/dist/cli/discovery/runtime.doctor.descriptor.d.ts.map +1 -0
- package/dist/cli/discovery/runtime.doctor.descriptor.js +29 -0
- package/dist/cli/discovery/runtime.doctor.descriptor.js.map +1 -0
- package/dist/cli/discovery/runtime.doctor.impl.consumer.d.ts +18 -0
- package/dist/cli/discovery/runtime.doctor.impl.consumer.d.ts.map +1 -0
- package/dist/cli/discovery/runtime.doctor.impl.consumer.js +129 -0
- package/dist/cli/discovery/runtime.doctor.impl.consumer.js.map +1 -0
- package/dist/cli/discovery/runtime.query.descriptor.d.ts +10 -0
- package/dist/cli/discovery/runtime.query.descriptor.d.ts.map +1 -0
- package/dist/cli/discovery/runtime.query.descriptor.js +39 -0
- package/dist/cli/discovery/runtime.query.descriptor.js.map +1 -0
- package/dist/cli/discovery/runtime.query.impl.consumer.d.ts +7 -0
- package/dist/cli/discovery/runtime.query.impl.consumer.d.ts.map +1 -0
- package/dist/cli/discovery/runtime.query.impl.consumer.js +105 -0
- package/dist/cli/discovery/runtime.query.impl.consumer.js.map +1 -0
- package/dist/cli/discovery/runtime.status.descriptor.d.ts +9 -0
- package/dist/cli/discovery/runtime.status.descriptor.d.ts.map +1 -0
- package/dist/cli/discovery/runtime.status.descriptor.js +24 -0
- package/dist/cli/discovery/runtime.status.descriptor.js.map +1 -0
- package/dist/cli/discovery/runtime.status.impl.consumer.d.ts +7 -0
- package/dist/cli/discovery/runtime.status.impl.consumer.d.ts.map +1 -0
- package/dist/cli/discovery/runtime.status.impl.consumer.js +121 -0
- package/dist/cli/discovery/runtime.status.impl.consumer.js.map +1 -0
- package/dist/cli/discovery/status-format.d.ts +19 -0
- package/dist/cli/discovery/status-format.d.ts.map +1 -0
- package/dist/cli/discovery/status-format.js +54 -0
- package/dist/cli/discovery/status-format.js.map +1 -0
- package/dist/cli/plugin.d.ts +3 -0
- package/dist/cli/plugin.d.ts.map +1 -0
- package/dist/cli/plugin.js +42 -0
- package/dist/cli/plugin.js.map +1 -0
- package/dist/cli/runtime.cli-group.descriptor.d.ts +10 -0
- package/dist/cli/runtime.cli-group.descriptor.d.ts.map +1 -0
- package/dist/cli/runtime.cli-group.descriptor.js +17 -0
- package/dist/cli/runtime.cli-group.descriptor.js.map +1 -0
- package/dist/cli/worker/_logging.d.ts +11 -0
- package/dist/cli/worker/_logging.d.ts.map +1 -0
- package/dist/cli/worker/_logging.js +40 -0
- package/dist/cli/worker/_logging.js.map +1 -0
- package/dist/cli/worker/daemon-execution.worker.entry.d.ts +51 -0
- package/dist/cli/worker/daemon-execution.worker.entry.d.ts.map +1 -0
- package/dist/cli/worker/daemon-execution.worker.entry.js +220 -0
- package/dist/cli/worker/daemon-execution.worker.entry.js.map +1 -0
- package/dist/core/descriptor-wire/serialize.d.ts +9 -0
- package/dist/core/descriptor-wire/serialize.d.ts.map +1 -0
- package/dist/core/descriptor-wire/serialize.js +88 -0
- package/dist/core/descriptor-wire/serialize.js.map +1 -0
- package/dist/core/helper.d.ts +42 -0
- package/dist/core/helper.d.ts.map +1 -0
- package/dist/core/helper.js +125 -0
- package/dist/core/helper.js.map +1 -0
- package/dist/core/kinds/rpc.kind.d.ts +48 -0
- package/dist/core/kinds/rpc.kind.d.ts.map +1 -0
- package/dist/core/kinds/rpc.kind.js +27 -0
- package/dist/core/kinds/rpc.kind.js.map +1 -0
- package/dist/core/lifecycle-repeat.d.ts +11 -0
- package/dist/core/lifecycle-repeat.d.ts.map +1 -0
- package/dist/core/lifecycle-repeat.js +59 -0
- package/dist/core/lifecycle-repeat.js.map +1 -0
- package/dist/core/protocol/lifecycle/attempt.d.ts +23 -0
- package/dist/core/protocol/lifecycle/attempt.d.ts.map +1 -0
- package/dist/core/protocol/lifecycle/attempt.js +41 -0
- package/dist/core/protocol/lifecycle/attempt.js.map +1 -0
- package/dist/core/protocol/lifecycle/binding-close.d.ts +54 -0
- package/dist/core/protocol/lifecycle/binding-close.d.ts.map +1 -0
- package/dist/core/protocol/lifecycle/binding-close.js +137 -0
- package/dist/core/protocol/lifecycle/binding-close.js.map +1 -0
- package/dist/core/protocol/lifecycle/channel-close.d.ts +39 -0
- package/dist/core/protocol/lifecycle/channel-close.d.ts.map +1 -0
- package/dist/core/protocol/lifecycle/channel-close.js +75 -0
- package/dist/core/protocol/lifecycle/channel-close.js.map +1 -0
- package/dist/core/protocol/lifecycle/channel-end.d.ts +53 -0
- package/dist/core/protocol/lifecycle/channel-end.d.ts.map +1 -0
- package/dist/core/protocol/lifecycle/channel-end.js +71 -0
- package/dist/core/protocol/lifecycle/channel-end.js.map +1 -0
- package/dist/core/protocol/lifecycle/connect-attempt.d.ts +12 -0
- package/dist/core/protocol/lifecycle/connect-attempt.d.ts.map +1 -0
- package/dist/core/protocol/lifecycle/connect-attempt.js +31 -0
- package/dist/core/protocol/lifecycle/connect-attempt.js.map +1 -0
- package/dist/core/protocol/lifecycle/connector.d.ts +29 -0
- package/dist/core/protocol/lifecycle/connector.d.ts.map +1 -0
- package/dist/core/protocol/lifecycle/connector.js +168 -0
- package/dist/core/protocol/lifecycle/connector.js.map +1 -0
- package/dist/core/protocol/lifecycle/credited-events.d.ts +11 -0
- package/dist/core/protocol/lifecycle/credited-events.d.ts.map +1 -0
- package/dist/core/protocol/lifecycle/credited-events.js +109 -0
- package/dist/core/protocol/lifecycle/credited-events.js.map +1 -0
- package/dist/core/protocol/lifecycle/leg-failures.d.ts +37 -0
- package/dist/core/protocol/lifecycle/leg-failures.d.ts.map +1 -0
- package/dist/core/protocol/lifecycle/leg-failures.js +115 -0
- package/dist/core/protocol/lifecycle/leg-failures.js.map +1 -0
- package/dist/core/protocol/lifecycle/lifecycle-owned.d.ts +15 -0
- package/dist/core/protocol/lifecycle/lifecycle-owned.d.ts.map +1 -0
- package/dist/core/protocol/lifecycle/lifecycle-owned.js +32 -0
- package/dist/core/protocol/lifecycle/lifecycle-owned.js.map +1 -0
- package/dist/core/protocol/lifecycle/stream-credits.d.ts +41 -0
- package/dist/core/protocol/lifecycle/stream-credits.d.ts.map +1 -0
- package/dist/core/protocol/lifecycle/stream-credits.js +160 -0
- package/dist/core/protocol/lifecycle/stream-credits.js.map +1 -0
- package/dist/core/protocol/references/advertisement.d.ts +22 -0
- package/dist/core/protocol/references/advertisement.d.ts.map +1 -0
- package/dist/core/protocol/references/advertisement.js +76 -0
- package/dist/core/protocol/references/advertisement.js.map +1 -0
- package/dist/core/protocol/references/caller-input.d.ts +44 -0
- package/dist/core/protocol/references/caller-input.d.ts.map +1 -0
- package/dist/core/protocol/references/caller-input.js +67 -0
- package/dist/core/protocol/references/caller-input.js.map +1 -0
- package/dist/core/protocol/references/channel-ids.d.ts +23 -0
- package/dist/core/protocol/references/channel-ids.d.ts.map +1 -0
- package/dist/core/protocol/references/channel-ids.js +35 -0
- package/dist/core/protocol/references/channel-ids.js.map +1 -0
- package/dist/core/protocol/references/consumer.d.ts +11 -0
- package/dist/core/protocol/references/consumer.d.ts.map +1 -0
- package/dist/core/protocol/references/consumer.js +134 -0
- package/dist/core/protocol/references/consumer.js.map +1 -0
- package/dist/core/protocol/references/descriptor-input.d.ts +15 -0
- package/dist/core/protocol/references/descriptor-input.d.ts.map +1 -0
- package/dist/core/protocol/references/descriptor-input.js +25 -0
- package/dist/core/protocol/references/descriptor-input.js.map +1 -0
- package/dist/core/protocol/references/dispatch.d.ts +24 -0
- package/dist/core/protocol/references/dispatch.d.ts.map +1 -0
- package/dist/core/protocol/references/dispatch.js +130 -0
- package/dist/core/protocol/references/dispatch.js.map +1 -0
- package/dist/core/protocol/references/function-callbacks.d.ts +19 -0
- package/dist/core/protocol/references/function-callbacks.d.ts.map +1 -0
- package/dist/core/protocol/references/function-callbacks.js +84 -0
- package/dist/core/protocol/references/function-callbacks.js.map +1 -0
- package/dist/core/protocol/references/projection-consumer.d.ts +12 -0
- package/dist/core/protocol/references/projection-consumer.d.ts.map +1 -0
- package/dist/core/protocol/references/projection-consumer.js +43 -0
- package/dist/core/protocol/references/projection-consumer.js.map +1 -0
- package/dist/core/protocol/references/ref-table.d.ts +33 -0
- package/dist/core/protocol/references/ref-table.d.ts.map +1 -0
- package/dist/core/protocol/references/ref-table.js +136 -0
- package/dist/core/protocol/references/ref-table.js.map +1 -0
- package/dist/core/protocol/references/root-methods.d.ts +14 -0
- package/dist/core/protocol/references/root-methods.d.ts.map +1 -0
- package/dist/core/protocol/references/root-methods.js +33 -0
- package/dist/core/protocol/references/root-methods.js.map +1 -0
- package/dist/core/protocol/transport/failure-describer.d.ts +56 -0
- package/dist/core/protocol/transport/failure-describer.d.ts.map +1 -0
- package/dist/core/protocol/transport/failure-describer.js +157 -0
- package/dist/core/protocol/transport/failure-describer.js.map +1 -0
- package/dist/core/protocol/transport/fetch-failure.d.ts +9 -0
- package/dist/core/protocol/transport/fetch-failure.d.ts.map +1 -0
- package/dist/core/protocol/transport/fetch-failure.js +45 -0
- package/dist/core/protocol/transport/fetch-failure.js.map +1 -0
- package/dist/core/protocol/transport/local-attestation.d.ts +67 -0
- package/dist/core/protocol/transport/local-attestation.d.ts.map +1 -0
- package/dist/core/protocol/transport/local-attestation.js +109 -0
- package/dist/core/protocol/transport/local-attestation.js.map +1 -0
- package/dist/core/protocol/transport/projection-close.d.ts +12 -0
- package/dist/core/protocol/transport/projection-close.d.ts.map +1 -0
- package/dist/core/protocol/transport/projection-close.js +47 -0
- package/dist/core/protocol/transport/projection-close.js.map +1 -0
- package/dist/core/protocol/transport/socket-connect-failure.d.ts +13 -0
- package/dist/core/protocol/transport/socket-connect-failure.d.ts.map +1 -0
- package/dist/core/protocol/transport/socket-connect-failure.js +42 -0
- package/dist/core/protocol/transport/socket-connect-failure.js.map +1 -0
- package/dist/core/protocol/transport/sse.d.ts +26 -0
- package/dist/core/protocol/transport/sse.d.ts.map +1 -0
- package/dist/core/protocol/transport/sse.js +89 -0
- package/dist/core/protocol/transport/sse.js.map +1 -0
- package/dist/core/protocol/wire/frame.d.ts +34 -0
- package/dist/core/protocol/wire/frame.d.ts.map +1 -0
- package/dist/core/protocol/wire/frame.js +131 -0
- package/dist/core/protocol/wire/frame.js.map +1 -0
- package/dist/core/protocol/wire/inline-value.d.ts +27 -0
- package/dist/core/protocol/wire/inline-value.d.ts.map +1 -0
- package/dist/core/protocol/wire/inline-value.js +114 -0
- package/dist/core/protocol/wire/inline-value.js.map +1 -0
- package/dist/core/protocol/wire/json-wire.d.ts +7 -0
- package/dist/core/protocol/wire/json-wire.d.ts.map +1 -0
- package/dist/core/protocol/wire/json-wire.js +58 -0
- package/dist/core/protocol/wire/json-wire.js.map +1 -0
- package/dist/core/protocol/wire/limits.d.ts +23 -0
- package/dist/core/protocol/wire/limits.d.ts.map +1 -0
- package/dist/core/protocol/wire/limits.js +23 -0
- package/dist/core/protocol/wire/limits.js.map +1 -0
- package/dist/core/protocol/wire/rpc-data.d.ts +15 -0
- package/dist/core/protocol/wire/rpc-data.d.ts.map +1 -0
- package/dist/core/protocol/wire/rpc-data.js +66 -0
- package/dist/core/protocol/wire/rpc-data.js.map +1 -0
- package/dist/core/protocol/wire/schemas.d.ts +14 -0
- package/dist/core/protocol/wire/schemas.d.ts.map +1 -0
- package/dist/core/protocol/wire/schemas.js +13 -0
- package/dist/core/protocol/wire/schemas.js.map +1 -0
- package/dist/core/protocol/wire/value-kinds.d.ts +26 -0
- package/dist/core/protocol/wire/value-kinds.d.ts.map +1 -0
- package/dist/core/protocol/wire/value-kinds.js +41 -0
- package/dist/core/protocol/wire/value-kinds.js.map +1 -0
- package/dist/core/protocol/wire/verbs.d.ts +94 -0
- package/dist/core/protocol/wire/verbs.d.ts.map +1 -0
- package/dist/core/protocol/wire/verbs.js +171 -0
- package/dist/core/protocol/wire/verbs.js.map +1 -0
- package/dist/core/protocol/wire/wire-dates.d.ts +8 -0
- package/dist/core/protocol/wire/wire-dates.d.ts.map +1 -0
- package/dist/core/protocol/wire/wire-dates.js +64 -0
- package/dist/core/protocol/wire/wire-dates.js.map +1 -0
- package/dist/core/protocol/wire/wire-value.d.ts +31 -0
- package/dist/core/protocol/wire/wire-value.d.ts.map +1 -0
- package/dist/core/protocol/wire/wire-value.js +72 -0
- package/dist/core/protocol/wire/wire-value.js.map +1 -0
- package/dist/core/runtime-rpc.plugin.d.ts +7 -0
- package/dist/core/runtime-rpc.plugin.d.ts.map +1 -0
- package/dist/core/runtime-rpc.plugin.js +22 -0
- package/dist/core/runtime-rpc.plugin.js.map +1 -0
- package/dist/core/utils/exec.d.ts +2 -0
- package/dist/core/utils/exec.d.ts.map +1 -0
- package/dist/core/utils/exec.js +2 -0
- package/dist/core/utils/exec.js.map +1 -0
- package/dist/core/utils/http-serve.d.ts +13 -0
- package/dist/core/utils/http-serve.d.ts.map +1 -0
- package/dist/core/utils/http-serve.js +46 -0
- package/dist/core/utils/http-serve.js.map +1 -0
- package/dist/daemon/auth/cors.d.ts +7 -0
- package/dist/daemon/auth/cors.d.ts.map +1 -0
- package/dist/daemon/auth/cors.js +12 -0
- package/dist/daemon/auth/cors.js.map +1 -0
- package/dist/daemon/auth/ingress/body.d.ts +6 -0
- package/dist/daemon/auth/ingress/body.d.ts.map +1 -0
- package/dist/daemon/auth/ingress/body.js +19 -0
- package/dist/daemon/auth/ingress/body.js.map +1 -0
- package/dist/daemon/auth/ingress/finalize.d.ts +2 -0
- package/dist/daemon/auth/ingress/finalize.d.ts.map +1 -0
- package/dist/daemon/auth/ingress/finalize.js +40 -0
- package/dist/daemon/auth/ingress/finalize.js.map +1 -0
- package/dist/daemon/auth/ingress/json.d.ts +4 -0
- package/dist/daemon/auth/ingress/json.d.ts.map +1 -0
- package/dist/daemon/auth/ingress/json.js +23 -0
- package/dist/daemon/auth/ingress/json.js.map +1 -0
- package/dist/daemon/auth/ingress/nonce.d.ts +4 -0
- package/dist/daemon/auth/ingress/nonce.d.ts.map +1 -0
- package/dist/daemon/auth/ingress/nonce.js +50 -0
- package/dist/daemon/auth/ingress/nonce.js.map +1 -0
- package/dist/daemon/auth/ingress/pair.d.ts +10 -0
- package/dist/daemon/auth/ingress/pair.d.ts.map +1 -0
- package/dist/daemon/auth/ingress/pair.js +42 -0
- package/dist/daemon/auth/ingress/pair.js.map +1 -0
- package/dist/daemon/auth/ingress/rpc.d.ts +3 -0
- package/dist/daemon/auth/ingress/rpc.d.ts.map +1 -0
- package/dist/daemon/auth/ingress/rpc.js +15 -0
- package/dist/daemon/auth/ingress/rpc.js.map +1 -0
- package/dist/daemon/auth/pairing-binding.d.ts +44 -0
- package/dist/daemon/auth/pairing-binding.d.ts.map +1 -0
- package/dist/daemon/auth/pairing-binding.js +66 -0
- package/dist/daemon/auth/pairing-binding.js.map +1 -0
- package/dist/daemon/auth/redact.d.ts +3 -0
- package/dist/daemon/auth/redact.d.ts.map +1 -0
- package/dist/daemon/auth/redact.js +3 -0
- package/dist/daemon/auth/redact.js.map +1 -0
- package/dist/daemon/auth/tcp-dispatch.d.ts +6 -0
- package/dist/daemon/auth/tcp-dispatch.d.ts.map +1 -0
- package/dist/daemon/auth/tcp-dispatch.js +41 -0
- package/dist/daemon/auth/tcp-dispatch.js.map +1 -0
- package/dist/daemon/auth/tcp-handler.d.ts +22 -0
- package/dist/daemon/auth/tcp-handler.d.ts.map +1 -0
- package/dist/daemon/auth/tcp-handler.js +61 -0
- package/dist/daemon/auth/tcp-handler.js.map +1 -0
- package/dist/daemon/client/contracts1/arguments.d.ts +3 -0
- package/dist/daemon/client/contracts1/arguments.d.ts.map +1 -0
- package/dist/daemon/client/contracts1/arguments.js +17 -0
- package/dist/daemon/client/contracts1/arguments.js.map +1 -0
- package/dist/daemon/client/contracts1/connection.d.ts +51 -0
- package/dist/daemon/client/contracts1/connection.d.ts.map +1 -0
- package/dist/daemon/client/contracts1/connection.js +158 -0
- package/dist/daemon/client/contracts1/connection.js.map +1 -0
- package/dist/daemon/client/contracts1/connectivity.d.ts +28 -0
- package/dist/daemon/client/contracts1/connectivity.d.ts.map +1 -0
- package/dist/daemon/client/contracts1/connectivity.js +72 -0
- package/dist/daemon/client/contracts1/connectivity.js.map +1 -0
- package/dist/daemon/client/contracts1/index.consumer.d.ts +13 -0
- package/dist/daemon/client/contracts1/index.consumer.d.ts.map +1 -0
- package/dist/daemon/client/contracts1/index.consumer.js +10 -0
- package/dist/daemon/client/contracts1/index.consumer.js.map +1 -0
- package/dist/daemon/client/contracts1/paths.d.ts +8 -0
- package/dist/daemon/client/contracts1/paths.d.ts.map +1 -0
- package/dist/daemon/client/contracts1/paths.js +17 -0
- package/dist/daemon/client/contracts1/paths.js.map +1 -0
- package/dist/daemon/client/contracts1/reclaim.d.ts +5 -0
- package/dist/daemon/client/contracts1/reclaim.d.ts.map +1 -0
- package/dist/daemon/client/contracts1/reclaim.js +10 -0
- package/dist/daemon/client/contracts1/reclaim.js.map +1 -0
- package/dist/daemon/client/contracts1/responses.d.ts +10 -0
- package/dist/daemon/client/contracts1/responses.d.ts.map +1 -0
- package/dist/daemon/client/contracts1/responses.js +108 -0
- package/dist/daemon/client/contracts1/responses.js.map +1 -0
- package/dist/daemon/client/contracts1/restart.d.ts +69 -0
- package/dist/daemon/client/contracts1/restart.d.ts.map +1 -0
- package/dist/daemon/client/contracts1/restart.js +181 -0
- package/dist/daemon/client/contracts1/restart.js.map +1 -0
- package/dist/daemon/client/contracts1/supervised-lifecycle.d.ts +28 -0
- package/dist/daemon/client/contracts1/supervised-lifecycle.d.ts.map +1 -0
- package/dist/daemon/client/contracts1/supervised-lifecycle.js +96 -0
- package/dist/daemon/client/contracts1/supervised-lifecycle.js.map +1 -0
- package/dist/daemon/client/contracts2/stop.d.ts +6 -0
- package/dist/daemon/client/contracts2/stop.d.ts.map +1 -0
- package/dist/daemon/client/contracts2/stop.js +41 -0
- package/dist/daemon/client/contracts2/stop.js.map +1 -0
- package/dist/daemon/client/contracts2/unix-client.d.ts +24 -0
- package/dist/daemon/client/contracts2/unix-client.d.ts.map +1 -0
- package/dist/daemon/client/contracts2/unix-client.js +84 -0
- package/dist/daemon/client/contracts2/unix-client.js.map +1 -0
- package/dist/daemon/client/contracts2/wait.d.ts +22 -0
- package/dist/daemon/client/contracts2/wait.d.ts.map +1 -0
- package/dist/daemon/client/contracts2/wait.js +37 -0
- package/dist/daemon/client/contracts2/wait.js.map +1 -0
- package/dist/daemon/commands/argv/options.d.ts +5 -0
- package/dist/daemon/commands/argv/options.d.ts.map +1 -0
- package/dist/daemon/commands/argv/options.js +93 -0
- package/dist/daemon/commands/argv/options.js.map +1 -0
- package/dist/daemon/commands/argv/values.d.ts +8 -0
- package/dist/daemon/commands/argv/values.d.ts.map +1 -0
- package/dist/daemon/commands/argv/values.js +25 -0
- package/dist/daemon/commands/argv/values.js.map +1 -0
- package/dist/daemon/commands/command-argv.d.ts +30 -0
- package/dist/daemon/commands/command-argv.d.ts.map +1 -0
- package/dist/daemon/commands/command-argv.js +115 -0
- package/dist/daemon/commands/command-argv.js.map +1 -0
- package/dist/daemon/commands/data/query.d.ts +12 -0
- package/dist/daemon/commands/data/query.d.ts.map +1 -0
- package/dist/daemon/commands/data/query.js +85 -0
- package/dist/daemon/commands/data/query.js.map +1 -0
- package/dist/daemon/commands/data/read.d.ts +12 -0
- package/dist/daemon/commands/data/read.d.ts.map +1 -0
- package/dist/daemon/commands/data/read.js +156 -0
- package/dist/daemon/commands/data/read.js.map +1 -0
- package/dist/daemon/commands/data/resolve.d.ts +11 -0
- package/dist/daemon/commands/data/resolve.d.ts.map +1 -0
- package/dist/daemon/commands/data/resolve.js +73 -0
- package/dist/daemon/commands/data/resolve.js.map +1 -0
- package/dist/daemon/commands/data/write.d.ts +7 -0
- package/dist/daemon/commands/data/write.d.ts.map +1 -0
- package/dist/daemon/commands/data/write.js +126 -0
- package/dist/daemon/commands/data/write.js.map +1 -0
- package/dist/daemon/commands/doctor.d.ts +11 -0
- package/dist/daemon/commands/doctor.d.ts.map +1 -0
- package/dist/daemon/commands/doctor.js +43 -0
- package/dist/daemon/commands/doctor.js.map +1 -0
- package/dist/daemon/commands/health.d.ts +22 -0
- package/dist/daemon/commands/health.d.ts.map +1 -0
- package/dist/daemon/commands/health.js +28 -0
- package/dist/daemon/commands/health.js.map +1 -0
- package/dist/daemon/commands/invoke/command.d.ts +23 -0
- package/dist/daemon/commands/invoke/command.d.ts.map +1 -0
- package/dist/daemon/commands/invoke/command.js +108 -0
- package/dist/daemon/commands/invoke/command.js.map +1 -0
- package/dist/daemon/commands/invoke/logger.d.ts +12 -0
- package/dist/daemon/commands/invoke/logger.d.ts.map +1 -0
- package/dist/daemon/commands/invoke/logger.js +40 -0
- package/dist/daemon/commands/invoke/logger.js.map +1 -0
- package/dist/daemon/commands/invoke/tool.d.ts +15 -0
- package/dist/daemon/commands/invoke/tool.d.ts.map +1 -0
- package/dist/daemon/commands/invoke/tool.js +95 -0
- package/dist/daemon/commands/invoke/tool.js.map +1 -0
- package/dist/daemon/commands/invoke.d.ts +31 -0
- package/dist/daemon/commands/invoke.d.ts.map +1 -0
- package/dist/daemon/commands/invoke.js +100 -0
- package/dist/daemon/commands/invoke.js.map +1 -0
- package/dist/daemon/commands/subscribe.d.ts +16 -0
- package/dist/daemon/commands/subscribe.d.ts.map +1 -0
- package/dist/daemon/commands/subscribe.js +108 -0
- package/dist/daemon/commands/subscribe.js.map +1 -0
- package/dist/daemon/commands/subscription-cleanup.d.ts +4 -0
- package/dist/daemon/commands/subscription-cleanup.d.ts.map +1 -0
- package/dist/daemon/commands/subscription-cleanup.js +32 -0
- package/dist/daemon/commands/subscription-cleanup.js.map +1 -0
- package/dist/daemon/hosting/config/load.d.ts +5 -0
- package/dist/daemon/hosting/config/load.d.ts.map +1 -0
- package/dist/daemon/hosting/config/load.js +12 -0
- package/dist/daemon/hosting/config/load.js.map +1 -0
- package/dist/daemon/hosting/config/runtime-rpc.config.descriptor.d.ts +45 -0
- package/dist/daemon/hosting/config/runtime-rpc.config.descriptor.d.ts.map +1 -0
- package/dist/daemon/hosting/config/runtime-rpc.config.descriptor.js +33 -0
- package/dist/daemon/hosting/config/runtime-rpc.config.descriptor.js.map +1 -0
- package/dist/daemon/hosting/daemon-host/host-hot-reload.consumer.d.ts +5 -0
- package/dist/daemon/hosting/daemon-host/host-hot-reload.consumer.d.ts.map +1 -0
- package/dist/daemon/hosting/daemon-host/host-hot-reload.consumer.js +15 -0
- package/dist/daemon/hosting/daemon-host/host-hot-reload.consumer.js.map +1 -0
- package/dist/daemon/hosting/daemon-host/hot-plugin-module.consumer.d.ts +19 -0
- package/dist/daemon/hosting/daemon-host/hot-plugin-module.consumer.d.ts.map +1 -0
- package/dist/daemon/hosting/daemon-host/hot-plugin-module.consumer.js +16 -0
- package/dist/daemon/hosting/daemon-host/hot-plugin-module.consumer.js.map +1 -0
- package/dist/daemon/hosting/daemon-host/hot-reload.consumer.d.ts +2 -0
- package/dist/daemon/hosting/daemon-host/hot-reload.consumer.d.ts.map +1 -0
- package/dist/daemon/hosting/daemon-host/hot-reload.consumer.js +2 -0
- package/dist/daemon/hosting/daemon-host/hot-reload.consumer.js.map +1 -0
- package/dist/daemon/hosting/daemon-host/index.d.ts +15 -0
- package/dist/daemon/hosting/daemon-host/index.d.ts.map +1 -0
- package/dist/daemon/hosting/daemon-host/index.js +12 -0
- package/dist/daemon/hosting/daemon-host/index.js.map +1 -0
- package/dist/daemon/hosting/daemon-host/resolve-plugin-host.d.ts +4 -0
- package/dist/daemon/hosting/daemon-host/resolve-plugin-host.d.ts.map +1 -0
- package/dist/daemon/hosting/daemon-host/resolve-plugin-host.js +5 -0
- package/dist/daemon/hosting/daemon-host/resolve-plugin-host.js.map +1 -0
- package/dist/daemon/hosting/execution/daemon-execution-host.consumer.d.ts +14 -0
- package/dist/daemon/hosting/execution/daemon-execution-host.consumer.d.ts.map +1 -0
- package/dist/daemon/hosting/execution/daemon-execution-host.consumer.js +216 -0
- package/dist/daemon/hosting/execution/daemon-execution-host.consumer.js.map +1 -0
- package/dist/daemon/hosting/execution/execution-boot.d.ts +24 -0
- package/dist/daemon/hosting/execution/execution-boot.d.ts.map +1 -0
- package/dist/daemon/hosting/execution/execution-boot.js +130 -0
- package/dist/daemon/hosting/execution/execution-boot.js.map +1 -0
- package/dist/daemon/hosting/execution/execution-failure.d.ts +33 -0
- package/dist/daemon/hosting/execution/execution-failure.d.ts.map +1 -0
- package/dist/daemon/hosting/execution/execution-failure.js +94 -0
- package/dist/daemon/hosting/execution/execution-failure.js.map +1 -0
- package/dist/daemon/hosting/execution/execution-host.schemas.d.ts +7 -0
- package/dist/daemon/hosting/execution/execution-host.schemas.d.ts.map +1 -0
- package/dist/daemon/hosting/execution/execution-host.schemas.js +6 -0
- package/dist/daemon/hosting/execution/execution-host.schemas.js.map +1 -0
- package/dist/daemon/hosting/host/host-hot-reload.consumer.d.ts +3 -0
- package/dist/daemon/hosting/host/host-hot-reload.consumer.d.ts.map +1 -0
- package/dist/daemon/hosting/host/host-hot-reload.consumer.js +3 -0
- package/dist/daemon/hosting/host/host-hot-reload.consumer.js.map +1 -0
- package/dist/daemon/hosting/host/hot-plugin-module.consumer.d.ts +3 -0
- package/dist/daemon/hosting/host/hot-plugin-module.consumer.d.ts.map +1 -0
- package/dist/daemon/hosting/host/hot-plugin-module.consumer.js +3 -0
- package/dist/daemon/hosting/host/hot-plugin-module.consumer.js.map +1 -0
- package/dist/daemon/hosting/host/hot-reload.consumer.d.ts +3 -0
- package/dist/daemon/hosting/host/hot-reload.consumer.d.ts.map +1 -0
- package/dist/daemon/hosting/host/hot-reload.consumer.js +3 -0
- package/dist/daemon/hosting/host/hot-reload.consumer.js.map +1 -0
- package/dist/daemon/hosting/host/index.d.ts +3 -0
- package/dist/daemon/hosting/host/index.d.ts.map +1 -0
- package/dist/daemon/hosting/host/index.js +3 -0
- package/dist/daemon/hosting/host/index.js.map +1 -0
- package/dist/daemon/hosting/host/resolve-plugin-host.d.ts +3 -0
- package/dist/daemon/hosting/host/resolve-plugin-host.d.ts.map +1 -0
- package/dist/daemon/hosting/host/resolve-plugin-host.js +3 -0
- package/dist/daemon/hosting/host/resolve-plugin-host.js.map +1 -0
- package/dist/daemon/hosting/logging/runtime-daemon.logger.descriptor.d.ts +7 -0
- package/dist/daemon/hosting/logging/runtime-daemon.logger.descriptor.d.ts.map +1 -0
- package/dist/daemon/hosting/logging/runtime-daemon.logger.descriptor.js +16 -0
- package/dist/daemon/hosting/logging/runtime-daemon.logger.descriptor.js.map +1 -0
- package/dist/daemon/hosting/logging/runtime-daemon.output.descriptor.d.ts +9 -0
- package/dist/daemon/hosting/logging/runtime-daemon.output.descriptor.d.ts.map +1 -0
- package/dist/daemon/hosting/logging/runtime-daemon.output.descriptor.js +19 -0
- package/dist/daemon/hosting/logging/runtime-daemon.output.descriptor.js.map +1 -0
- package/dist/daemon/hosting/plugin.d.ts +9 -0
- package/dist/daemon/hosting/plugin.d.ts.map +1 -0
- package/dist/daemon/hosting/plugin.js +69 -0
- package/dist/daemon/hosting/plugin.js.map +1 -0
- package/dist/daemon/hosting/process/daemon-role.d.ts +17 -0
- package/dist/daemon/hosting/process/daemon-role.d.ts.map +1 -0
- package/dist/daemon/hosting/process/daemon-role.js +18 -0
- package/dist/daemon/hosting/process/daemon-role.js.map +1 -0
- package/dist/daemon/hosting/process/daemon.consumer.d.ts +10 -0
- package/dist/daemon/hosting/process/daemon.consumer.d.ts.map +1 -0
- package/dist/daemon/hosting/process/daemon.consumer.js +8 -0
- package/dist/daemon/hosting/process/daemon.consumer.js.map +1 -0
- package/dist/daemon/hosting/process/reclaim.consumer.d.ts +12 -0
- package/dist/daemon/hosting/process/reclaim.consumer.d.ts.map +1 -0
- package/dist/daemon/hosting/process/reclaim.consumer.js +34 -0
- package/dist/daemon/hosting/process/reclaim.consumer.js.map +1 -0
- package/dist/daemon/hosting/process/runtime-config.d.ts +22 -0
- package/dist/daemon/hosting/process/runtime-config.d.ts.map +1 -0
- package/dist/daemon/hosting/process/runtime-config.js +37 -0
- package/dist/daemon/hosting/process/runtime-config.js.map +1 -0
- package/dist/daemon/hosting/process/runtime-daemon-supervisor.kind.d.ts +4 -0
- package/dist/daemon/hosting/process/runtime-daemon-supervisor.kind.d.ts.map +1 -0
- package/dist/daemon/hosting/process/runtime-daemon-supervisor.kind.js +40 -0
- package/dist/daemon/hosting/process/runtime-daemon-supervisor.kind.js.map +1 -0
- package/dist/daemon/hosting/process/runtime-daemon.process.descriptor.d.ts +43 -0
- package/dist/daemon/hosting/process/runtime-daemon.process.descriptor.d.ts.map +1 -0
- package/dist/daemon/hosting/process/runtime-daemon.process.descriptor.js +56 -0
- package/dist/daemon/hosting/process/runtime-daemon.process.descriptor.js.map +1 -0
- package/dist/daemon/hosting/process/runtime-process-autostart.descriptor.d.ts +12 -0
- package/dist/daemon/hosting/process/runtime-process-autostart.descriptor.d.ts.map +1 -0
- package/dist/daemon/hosting/process/runtime-process-autostart.descriptor.js +12 -0
- package/dist/daemon/hosting/process/runtime-process-autostart.descriptor.js.map +1 -0
- package/dist/daemon/hosting/process/runtime-process-autostart.impl.consumer.d.ts +6 -0
- package/dist/daemon/hosting/process/runtime-process-autostart.impl.consumer.d.ts.map +1 -0
- package/dist/daemon/hosting/process/runtime-process-autostart.impl.consumer.js +88 -0
- package/dist/daemon/hosting/process/runtime-process-autostart.impl.consumer.js.map +1 -0
- package/dist/daemon/hosting/process/spawn.consumer.d.ts +42 -0
- package/dist/daemon/hosting/process/spawn.consumer.d.ts.map +1 -0
- package/dist/daemon/hosting/process/spawn.consumer.js +69 -0
- package/dist/daemon/hosting/process/spawn.consumer.js.map +1 -0
- package/dist/daemon/hosting/process/start-timeout.d.ts +11 -0
- package/dist/daemon/hosting/process/start-timeout.d.ts.map +1 -0
- package/dist/daemon/hosting/process/start-timeout.js +13 -0
- package/dist/daemon/hosting/process/start-timeout.js.map +1 -0
- package/dist/daemon/hosting/socket/paths.consumer.d.ts +11 -0
- package/dist/daemon/hosting/socket/paths.consumer.d.ts.map +1 -0
- package/dist/daemon/hosting/socket/paths.consumer.js +11 -0
- package/dist/daemon/hosting/socket/paths.consumer.js.map +1 -0
- package/dist/daemon/hosting/socket/runtime-daemon-endpoint.impl.consumer.d.ts +28 -0
- package/dist/daemon/hosting/socket/runtime-daemon-endpoint.impl.consumer.d.ts.map +1 -0
- package/dist/daemon/hosting/socket/runtime-daemon-endpoint.impl.consumer.js +17 -0
- package/dist/daemon/hosting/socket/runtime-daemon-endpoint.impl.consumer.js.map +1 -0
- package/dist/daemon/hosting/socket/runtime-daemon.socket-path.d.ts +59 -0
- package/dist/daemon/hosting/socket/runtime-daemon.socket-path.d.ts.map +1 -0
- package/dist/daemon/hosting/socket/runtime-daemon.socket-path.js +72 -0
- package/dist/daemon/hosting/socket/runtime-daemon.socket-path.js.map +1 -0
- package/dist/daemon/pairing/client.consumer.d.ts +11 -0
- package/dist/daemon/pairing/client.consumer.d.ts.map +1 -0
- package/dist/daemon/pairing/client.consumer.js +73 -0
- package/dist/daemon/pairing/client.consumer.js.map +1 -0
- package/dist/daemon/pairing/contexts/runtime-machine-identity.context.descriptor.d.ts +47 -0
- package/dist/daemon/pairing/contexts/runtime-machine-identity.context.descriptor.d.ts.map +1 -0
- package/dist/daemon/pairing/contexts/runtime-machine-identity.context.descriptor.js +24 -0
- package/dist/daemon/pairing/contexts/runtime-machine-identity.context.descriptor.js.map +1 -0
- package/dist/daemon/pairing/contexts/runtime-machine-identity.context.impl.consumer.d.ts +17 -0
- package/dist/daemon/pairing/contexts/runtime-machine-identity.context.impl.consumer.d.ts.map +1 -0
- package/dist/daemon/pairing/contexts/runtime-machine-identity.context.impl.consumer.js +11 -0
- package/dist/daemon/pairing/contexts/runtime-machine-identity.context.impl.consumer.js.map +1 -0
- package/dist/daemon/pairing/contexts/runtime-machines.context.descriptor.d.ts +38 -0
- package/dist/daemon/pairing/contexts/runtime-machines.context.descriptor.d.ts.map +1 -0
- package/dist/daemon/pairing/contexts/runtime-machines.context.descriptor.js +15 -0
- package/dist/daemon/pairing/contexts/runtime-machines.context.descriptor.js.map +1 -0
- package/dist/daemon/pairing/contexts/runtime-machines.context.impl.consumer.d.ts +17 -0
- package/dist/daemon/pairing/contexts/runtime-machines.context.impl.consumer.d.ts.map +1 -0
- package/dist/daemon/pairing/contexts/runtime-machines.context.impl.consumer.js +11 -0
- package/dist/daemon/pairing/contexts/runtime-machines.context.impl.consumer.js.map +1 -0
- package/dist/daemon/pairing/index.d.ts +10 -0
- package/dist/daemon/pairing/index.d.ts.map +1 -0
- package/dist/daemon/pairing/index.js +6 -0
- package/dist/daemon/pairing/index.js.map +1 -0
- package/dist/daemon/pairing/json-file-store.consumer.d.ts +25 -0
- package/dist/daemon/pairing/json-file-store.consumer.d.ts.map +1 -0
- package/dist/daemon/pairing/json-file-store.consumer.js +139 -0
- package/dist/daemon/pairing/json-file-store.consumer.js.map +1 -0
- package/dist/daemon/pairing/machine-identity.consumer.d.ts +9 -0
- package/dist/daemon/pairing/machine-identity.consumer.d.ts.map +1 -0
- package/dist/daemon/pairing/machine-identity.consumer.js +44 -0
- package/dist/daemon/pairing/machine-identity.consumer.js.map +1 -0
- package/dist/daemon/pairing/machines.consumer.d.ts +36 -0
- package/dist/daemon/pairing/machines.consumer.d.ts.map +1 -0
- package/dist/daemon/pairing/machines.consumer.js +118 -0
- package/dist/daemon/pairing/machines.consumer.js.map +1 -0
- package/dist/daemon/pairing/paired-clients.consumer.d.ts +26 -0
- package/dist/daemon/pairing/paired-clients.consumer.d.ts.map +1 -0
- package/dist/daemon/pairing/paired-clients.consumer.js +72 -0
- package/dist/daemon/pairing/paired-clients.consumer.js.map +1 -0
- package/dist/daemon/pairing/pairing.d.ts +76 -0
- package/dist/daemon/pairing/pairing.d.ts.map +1 -0
- package/dist/daemon/pairing/pairing.js +141 -0
- package/dist/daemon/pairing/pairing.js.map +1 -0
- package/dist/daemon/pairing/types.d.ts +3 -0
- package/dist/daemon/pairing/types.d.ts.map +1 -0
- package/dist/daemon/pairing/types.js +2 -0
- package/dist/daemon/pairing/types.js.map +1 -0
- package/dist/daemon/protocol/schemas.d.ts +3 -0
- package/dist/daemon/protocol/schemas.d.ts.map +1 -0
- package/dist/daemon/protocol/schemas.js +3 -0
- package/dist/daemon/protocol/schemas.js.map +1 -0
- package/dist/daemon/runtime/configuration.d.ts +9 -0
- package/dist/daemon/runtime/configuration.d.ts.map +1 -0
- package/dist/daemon/runtime/configuration.js +49 -0
- package/dist/daemon/runtime/configuration.js.map +1 -0
- package/dist/daemon/runtime/coordinator.d.ts +10 -0
- package/dist/daemon/runtime/coordinator.d.ts.map +1 -0
- package/dist/daemon/runtime/coordinator.js +13 -0
- package/dist/daemon/runtime/coordinator.js.map +1 -0
- package/dist/daemon/runtime/helpers.d.ts +20 -0
- package/dist/daemon/runtime/helpers.d.ts.map +1 -0
- package/dist/daemon/runtime/helpers.js +48 -0
- package/dist/daemon/runtime/helpers.js.map +1 -0
- package/dist/daemon/runtime/io/endpoint.d.ts +12 -0
- package/dist/daemon/runtime/io/endpoint.d.ts.map +1 -0
- package/dist/daemon/runtime/io/endpoint.js +70 -0
- package/dist/daemon/runtime/io/endpoint.js.map +1 -0
- package/dist/daemon/runtime/io/execution.d.ts +4 -0
- package/dist/daemon/runtime/io/execution.d.ts.map +1 -0
- package/dist/daemon/runtime/io/execution.js +118 -0
- package/dist/daemon/runtime/io/execution.js.map +1 -0
- package/dist/daemon/runtime/io/host.d.ts +16 -0
- package/dist/daemon/runtime/io/host.d.ts.map +1 -0
- package/dist/daemon/runtime/io/host.js +70 -0
- package/dist/daemon/runtime/io/host.js.map +1 -0
- package/dist/daemon/runtime/io/http.d.ts +4 -0
- package/dist/daemon/runtime/io/http.d.ts.map +1 -0
- package/dist/daemon/runtime/io/http.js +91 -0
- package/dist/daemon/runtime/io/http.js.map +1 -0
- package/dist/daemon/runtime/io/paths.d.ts +5 -0
- package/dist/daemon/runtime/io/paths.d.ts.map +1 -0
- package/dist/daemon/runtime/io/paths.js +55 -0
- package/dist/daemon/runtime/io/paths.js.map +1 -0
- package/dist/daemon/runtime/io/pid.d.ts +5 -0
- package/dist/daemon/runtime/io/pid.d.ts.map +1 -0
- package/dist/daemon/runtime/io/pid.js +77 -0
- package/dist/daemon/runtime/io/pid.js.map +1 -0
- package/dist/daemon/runtime/lifecycle/reload.d.ts +4 -0
- package/dist/daemon/runtime/lifecycle/reload.d.ts.map +1 -0
- package/dist/daemon/runtime/lifecycle/reload.js +25 -0
- package/dist/daemon/runtime/lifecycle/reload.js.map +1 -0
- package/dist/daemon/runtime/lifecycle/shutdown.d.ts +6 -0
- package/dist/daemon/runtime/lifecycle/shutdown.d.ts.map +1 -0
- package/dist/daemon/runtime/lifecycle/shutdown.js +81 -0
- package/dist/daemon/runtime/lifecycle/shutdown.js.map +1 -0
- package/dist/daemon/runtime/lifecycle/startup.d.ts +3 -0
- package/dist/daemon/runtime/lifecycle/startup.d.ts.map +1 -0
- package/dist/daemon/runtime/lifecycle/startup.js +113 -0
- package/dist/daemon/runtime/lifecycle/startup.js.map +1 -0
- package/dist/daemon/runtime/main.d.ts +3 -0
- package/dist/daemon/runtime/main.d.ts.map +1 -0
- package/dist/daemon/runtime/main.js +97 -0
- package/dist/daemon/runtime/main.js.map +1 -0
- package/dist/daemon/runtime/state.d.ts +55 -0
- package/dist/daemon/runtime/state.d.ts.map +1 -0
- package/dist/daemon/runtime/state.js +83 -0
- package/dist/daemon/runtime/state.js.map +1 -0
- package/dist/daemon/services/api/command-handler.contracts.d.ts +8 -0
- package/dist/daemon/services/api/command-handler.contracts.d.ts.map +1 -0
- package/dist/daemon/services/api/command-handler.contracts.js +8 -0
- package/dist/daemon/services/api/command-handler.contracts.js.map +1 -0
- package/dist/daemon/services/api/command-handler.d.ts +52 -0
- package/dist/daemon/services/api/command-handler.d.ts.map +1 -0
- package/dist/daemon/services/api/command-handler.js +79 -0
- package/dist/daemon/services/api/command-handler.js.map +1 -0
- package/dist/daemon/services/api/errors.d.ts +36 -0
- package/dist/daemon/services/api/errors.d.ts.map +1 -0
- package/dist/daemon/services/api/errors.js +71 -0
- package/dist/daemon/services/api/errors.js.map +1 -0
- package/dist/daemon/services/api/rpc-root.d.ts +41 -0
- package/dist/daemon/services/api/rpc-root.d.ts.map +1 -0
- package/dist/daemon/services/api/rpc-root.js +95 -0
- package/dist/daemon/services/api/rpc-root.js.map +1 -0
- package/dist/daemon/services/contracts.d.ts +6 -0
- package/dist/daemon/services/contracts.d.ts.map +1 -0
- package/dist/daemon/services/contracts.js +3 -0
- package/dist/daemon/services/contracts.js.map +1 -0
- package/dist/daemon/services/health.d.ts +20 -0
- package/dist/daemon/services/health.d.ts.map +1 -0
- package/dist/daemon/services/health.js +56 -0
- package/dist/daemon/services/health.js.map +1 -0
- package/dist/daemon/subscriptions/clients.d.ts +57 -0
- package/dist/daemon/subscriptions/clients.d.ts.map +1 -0
- package/dist/daemon/subscriptions/clients.js +136 -0
- package/dist/daemon/subscriptions/clients.js.map +1 -0
- package/dist/daemon/subscriptions/config-watcher.d.ts +11 -0
- package/dist/daemon/subscriptions/config-watcher.d.ts.map +1 -0
- package/dist/daemon/subscriptions/config-watcher.js +17 -0
- package/dist/daemon/subscriptions/config-watcher.js.map +1 -0
- package/dist/daemon/subscriptions/manager.d.ts +41 -0
- package/dist/daemon/subscriptions/manager.d.ts.map +1 -0
- package/dist/daemon/subscriptions/manager.js +73 -0
- package/dist/daemon/subscriptions/manager.js.map +1 -0
- package/dist/daemon/subscriptions/manifest-watcher.d.ts +30 -0
- package/dist/daemon/subscriptions/manifest-watcher.d.ts.map +1 -0
- package/dist/daemon/subscriptions/manifest-watcher.js +100 -0
- package/dist/daemon/subscriptions/manifest-watcher.js.map +1 -0
- package/dist/daemon/subscriptions/storage-watcher.d.ts +11 -0
- package/dist/daemon/subscriptions/storage-watcher.d.ts.map +1 -0
- package/dist/daemon/subscriptions/storage-watcher.js +16 -0
- package/dist/daemon/subscriptions/storage-watcher.js.map +1 -0
- package/dist/docs/lifecycle.docs.descriptor.d.ts +4 -0
- package/dist/docs/lifecycle.docs.descriptor.d.ts.map +1 -0
- package/dist/docs/lifecycle.docs.descriptor.js +91 -0
- package/dist/docs/lifecycle.docs.descriptor.js.map +1 -0
- package/dist/docs/plugin.d.ts +3 -0
- package/dist/docs/plugin.d.ts.map +1 -0
- package/dist/docs/plugin.js +25 -0
- package/dist/docs/plugin.js.map +1 -0
- package/dist/docs/runtime-rpc.docs.descriptor.d.ts +9 -0
- package/dist/docs/runtime-rpc.docs.descriptor.d.ts.map +1 -0
- package/dist/docs/runtime-rpc.docs.descriptor.js +184 -0
- package/dist/docs/runtime-rpc.docs.descriptor.js.map +1 -0
- package/dist/docs/system.docs.descriptor.d.ts +4 -0
- package/dist/docs/system.docs.descriptor.d.ts.map +1 -0
- package/dist/docs/system.docs.descriptor.js +115 -0
- package/dist/docs/system.docs.descriptor.js.map +1 -0
- package/dist/execution/execution.client.impl.d.ts +8 -0
- package/dist/execution/execution.client.impl.d.ts.map +1 -0
- package/dist/execution/execution.client.impl.js +12 -0
- package/dist/execution/execution.client.impl.js.map +1 -0
- package/dist/execution/execution.plugin.d.ts +4 -0
- package/dist/execution/execution.plugin.d.ts.map +1 -0
- package/dist/execution/execution.plugin.js +20 -0
- package/dist/execution/execution.plugin.js.map +1 -0
- package/dist/execution/index.d.ts +5 -0
- package/dist/execution/index.d.ts.map +1 -0
- package/dist/execution/index.js +4 -0
- package/dist/execution/index.js.map +1 -0
- package/dist/execution/wire-process.d.ts +10 -0
- package/dist/execution/wire-process.d.ts.map +1 -0
- package/dist/execution/wire-process.js +467 -0
- package/dist/execution/wire-process.js.map +1 -0
- package/dist/index.d.ts +34 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +47 -0
- package/dist/index.js.map +1 -0
- package/dist/schemas/contracts/cli/_logging.d.ts +5 -0
- package/dist/schemas/contracts/cli/_logging.d.ts.map +1 -0
- package/dist/schemas/contracts/cli/_logging.js +2 -0
- package/dist/schemas/contracts/cli/_logging.js.map +1 -0
- package/dist/schemas/contracts/cli/daemon-execution.worker.entry.d.ts +238 -0
- package/dist/schemas/contracts/cli/daemon-execution.worker.entry.d.ts.map +1 -0
- package/dist/schemas/contracts/cli/daemon-execution.worker.entry.js +18 -0
- package/dist/schemas/contracts/cli/daemon-execution.worker.entry.js.map +1 -0
- package/dist/schemas/contracts/cli/runtime.daemon.restart.impl.consumer.d.ts +5 -0
- package/dist/schemas/contracts/cli/runtime.daemon.restart.impl.consumer.d.ts.map +1 -0
- package/dist/schemas/contracts/cli/runtime.daemon.restart.impl.consumer.js +5 -0
- package/dist/schemas/contracts/cli/runtime.daemon.restart.impl.consumer.js.map +1 -0
- package/dist/schemas/contracts/cli/runtime.daemon.status.impl.consumer.d.ts +5 -0
- package/dist/schemas/contracts/cli/runtime.daemon.status.impl.consumer.d.ts.map +1 -0
- package/dist/schemas/contracts/cli/runtime.daemon.status.impl.consumer.js +5 -0
- package/dist/schemas/contracts/cli/runtime.daemon.status.impl.consumer.js.map +1 -0
- package/dist/schemas/contracts/cli/runtime.daemon.stop.impl.consumer.d.ts +5 -0
- package/dist/schemas/contracts/cli/runtime.daemon.stop.impl.consumer.d.ts.map +1 -0
- package/dist/schemas/contracts/cli/runtime.daemon.stop.impl.consumer.js +5 -0
- package/dist/schemas/contracts/cli/runtime.daemon.stop.impl.consumer.js.map +1 -0
- package/dist/schemas/contracts/cli/runtime.doctor.impl.consumer.d.ts +6 -0
- package/dist/schemas/contracts/cli/runtime.doctor.impl.consumer.d.ts.map +1 -0
- package/dist/schemas/contracts/cli/runtime.doctor.impl.consumer.js +6 -0
- package/dist/schemas/contracts/cli/runtime.doctor.impl.consumer.js.map +1 -0
- package/dist/schemas/contracts/cli/runtime.query.impl.consumer.d.ts +10 -0
- package/dist/schemas/contracts/cli/runtime.query.impl.consumer.d.ts.map +1 -0
- package/dist/schemas/contracts/cli/runtime.query.impl.consumer.js +10 -0
- package/dist/schemas/contracts/cli/runtime.query.impl.consumer.js.map +1 -0
- package/dist/schemas/contracts/cli/runtime.status.impl.consumer.d.ts +5 -0
- package/dist/schemas/contracts/cli/runtime.status.impl.consumer.d.ts.map +1 -0
- package/dist/schemas/contracts/cli/runtime.status.impl.consumer.js +5 -0
- package/dist/schemas/contracts/cli/runtime.status.impl.consumer.js.map +1 -0
- package/dist/schemas/contracts/core/helper.d.ts +55 -0
- package/dist/schemas/contracts/core/helper.d.ts.map +1 -0
- package/dist/schemas/contracts/core/helper.js +14 -0
- package/dist/schemas/contracts/core/helper.js.map +1 -0
- package/dist/schemas/contracts/core/kinds/rpc.kind.d.ts +138 -0
- package/dist/schemas/contracts/core/kinds/rpc.kind.d.ts.map +1 -0
- package/dist/schemas/contracts/core/kinds/rpc.kind.js +81 -0
- package/dist/schemas/contracts/core/kinds/rpc.kind.js.map +1 -0
- package/dist/schemas/contracts/core/lifecycle-repeat.d.ts +6 -0
- package/dist/schemas/contracts/core/lifecycle-repeat.d.ts.map +1 -0
- package/dist/schemas/contracts/core/lifecycle-repeat.js +2 -0
- package/dist/schemas/contracts/core/lifecycle-repeat.js.map +1 -0
- package/dist/schemas/contracts/core/utils/http-serve.d.ts +16 -0
- package/dist/schemas/contracts/core/utils/http-serve.d.ts.map +1 -0
- package/dist/schemas/contracts/core/utils/http-serve.js +2 -0
- package/dist/schemas/contracts/core/utils/http-serve.js.map +1 -0
- package/dist/schemas/contracts/daemon/auth/capabilities.d.ts +4 -0
- package/dist/schemas/contracts/daemon/auth/capabilities.d.ts.map +1 -0
- package/dist/schemas/contracts/daemon/auth/capabilities.js +2 -0
- package/dist/schemas/contracts/daemon/auth/capabilities.js.map +1 -0
- package/dist/schemas/contracts/daemon/client/connection.d.ts +9 -0
- package/dist/schemas/contracts/daemon/client/connection.d.ts.map +1 -0
- package/dist/schemas/contracts/daemon/client/connection.js +3 -0
- package/dist/schemas/contracts/daemon/client/connection.js.map +1 -0
- package/dist/schemas/contracts/daemon/command-handler.d.ts +23 -0
- package/dist/schemas/contracts/daemon/command-handler.d.ts.map +1 -0
- package/dist/schemas/contracts/daemon/command-handler.js +2 -0
- package/dist/schemas/contracts/daemon/command-handler.js.map +1 -0
- package/dist/schemas/contracts/daemon/commands/argv/options.d.ts +2 -0
- package/dist/schemas/contracts/daemon/commands/argv/options.d.ts.map +1 -0
- package/dist/schemas/contracts/daemon/commands/argv/options.js +3 -0
- package/dist/schemas/contracts/daemon/commands/argv/options.js.map +1 -0
- package/dist/schemas/contracts/daemon/commands/argv/values.d.ts +4 -0
- package/dist/schemas/contracts/daemon/commands/argv/values.d.ts.map +1 -0
- package/dist/schemas/contracts/daemon/commands/argv/values.js +5 -0
- package/dist/schemas/contracts/daemon/commands/argv/values.js.map +1 -0
- package/dist/schemas/contracts/daemon/commands/doctor.d.ts +9 -0
- package/dist/schemas/contracts/daemon/commands/doctor.d.ts.map +1 -0
- package/dist/schemas/contracts/daemon/commands/doctor.js +9 -0
- package/dist/schemas/contracts/daemon/commands/doctor.js.map +1 -0
- package/dist/schemas/contracts/daemon/commands/query.d.ts +5 -0
- package/dist/schemas/contracts/daemon/commands/query.d.ts.map +1 -0
- package/dist/schemas/contracts/daemon/commands/query.js +3 -0
- package/dist/schemas/contracts/daemon/commands/query.js.map +1 -0
- package/dist/schemas/contracts/daemon/commands/read.d.ts +34 -0
- package/dist/schemas/contracts/daemon/commands/read.d.ts.map +1 -0
- package/dist/schemas/contracts/daemon/commands/read.js +23 -0
- package/dist/schemas/contracts/daemon/commands/read.js.map +1 -0
- package/dist/schemas/contracts/daemon/commands/resolve.d.ts +5 -0
- package/dist/schemas/contracts/daemon/commands/resolve.d.ts.map +1 -0
- package/dist/schemas/contracts/daemon/commands/resolve.js +5 -0
- package/dist/schemas/contracts/daemon/commands/resolve.js.map +1 -0
- package/dist/schemas/contracts/daemon/commands/subscribe.d.ts +20 -0
- package/dist/schemas/contracts/daemon/commands/subscribe.d.ts.map +1 -0
- package/dist/schemas/contracts/daemon/commands/subscribe.js +10 -0
- package/dist/schemas/contracts/daemon/commands/subscribe.js.map +1 -0
- package/dist/schemas/contracts/daemon/commands/write.d.ts +44 -0
- package/dist/schemas/contracts/daemon/commands/write.d.ts.map +1 -0
- package/dist/schemas/contracts/daemon/commands/write.js +19 -0
- package/dist/schemas/contracts/daemon/commands/write.js.map +1 -0
- package/dist/schemas/contracts/daemon/hosting/contracts1/config/load.d.ts +3 -0
- package/dist/schemas/contracts/daemon/hosting/contracts1/config/load.d.ts.map +1 -0
- package/dist/schemas/contracts/daemon/hosting/contracts1/config/load.js +2 -0
- package/dist/schemas/contracts/daemon/hosting/contracts1/config/load.js.map +1 -0
- package/dist/schemas/contracts/daemon/hosting/contracts1/config/runtime-rpc.config.descriptor.d.ts +7 -0
- package/dist/schemas/contracts/daemon/hosting/contracts1/config/runtime-rpc.config.descriptor.d.ts.map +1 -0
- package/dist/schemas/contracts/daemon/hosting/contracts1/config/runtime-rpc.config.descriptor.js +6 -0
- package/dist/schemas/contracts/daemon/hosting/contracts1/config/runtime-rpc.config.descriptor.js.map +1 -0
- package/dist/schemas/contracts/daemon/hosting/contracts1/daemon-execution-host.consumer.d.ts +20 -0
- package/dist/schemas/contracts/daemon/hosting/contracts1/daemon-execution-host.consumer.d.ts.map +1 -0
- package/dist/schemas/contracts/daemon/hosting/contracts1/daemon-execution-host.consumer.js +5 -0
- package/dist/schemas/contracts/daemon/hosting/contracts1/daemon-execution-host.consumer.js.map +1 -0
- package/dist/schemas/contracts/daemon/hosting/contracts1/daemon-host/hot-plugin-module.consumer.d.ts +19 -0
- package/dist/schemas/contracts/daemon/hosting/contracts1/daemon-host/hot-plugin-module.consumer.d.ts.map +1 -0
- package/dist/schemas/contracts/daemon/hosting/contracts1/daemon-host/hot-plugin-module.consumer.js +2 -0
- package/dist/schemas/contracts/daemon/hosting/contracts1/daemon-host/hot-plugin-module.consumer.js.map +1 -0
- package/dist/schemas/contracts/daemon/hosting/contracts1/daemon.consumer.d.ts +98 -0
- package/dist/schemas/contracts/daemon/hosting/contracts1/daemon.consumer.d.ts.map +1 -0
- package/dist/schemas/contracts/daemon/hosting/contracts1/daemon.consumer.js +6 -0
- package/dist/schemas/contracts/daemon/hosting/contracts1/daemon.consumer.js.map +1 -0
- package/dist/schemas/contracts/daemon/hosting/contracts1/execution-host.schemas.d.ts +900 -0
- package/dist/schemas/contracts/daemon/hosting/contracts1/execution-host.schemas.d.ts.map +1 -0
- package/dist/schemas/contracts/daemon/hosting/contracts1/execution-host.schemas.js +81 -0
- package/dist/schemas/contracts/daemon/hosting/contracts1/execution-host.schemas.js.map +1 -0
- package/dist/schemas/contracts/daemon/hosting/contracts1/host/hot-plugin-module.consumer.d.ts +19 -0
- package/dist/schemas/contracts/daemon/hosting/contracts1/host/hot-plugin-module.consumer.d.ts.map +1 -0
- package/dist/schemas/contracts/daemon/hosting/contracts1/host/hot-plugin-module.consumer.js +2 -0
- package/dist/schemas/contracts/daemon/hosting/contracts1/host/hot-plugin-module.consumer.js.map +1 -0
- package/dist/schemas/contracts/daemon/hosting/contracts1/reclaim.consumer.d.ts +3 -0
- package/dist/schemas/contracts/daemon/hosting/contracts1/reclaim.consumer.d.ts.map +1 -0
- package/dist/schemas/contracts/daemon/hosting/contracts1/reclaim.consumer.js +2 -0
- package/dist/schemas/contracts/daemon/hosting/contracts1/reclaim.consumer.js.map +1 -0
- package/dist/schemas/contracts/daemon/hosting/contracts1/runtime-config.d.ts +45 -0
- package/dist/schemas/contracts/daemon/hosting/contracts1/runtime-config.d.ts.map +1 -0
- package/dist/schemas/contracts/daemon/hosting/contracts1/runtime-config.js +28 -0
- package/dist/schemas/contracts/daemon/hosting/contracts1/runtime-config.js.map +1 -0
- package/dist/schemas/contracts/daemon/hosting/contracts2/runtime-daemon-endpoint.impl.consumer.d.ts +6 -0
- package/dist/schemas/contracts/daemon/hosting/contracts2/runtime-daemon-endpoint.impl.consumer.d.ts.map +1 -0
- package/dist/schemas/contracts/daemon/hosting/contracts2/runtime-daemon-endpoint.impl.consumer.js +2 -0
- package/dist/schemas/contracts/daemon/hosting/contracts2/runtime-daemon-endpoint.impl.consumer.js.map +1 -0
- package/dist/schemas/contracts/daemon/hosting/contracts2/runtime-daemon.socket-path.d.ts +9 -0
- package/dist/schemas/contracts/daemon/hosting/contracts2/runtime-daemon.socket-path.d.ts.map +1 -0
- package/dist/schemas/contracts/daemon/hosting/contracts2/runtime-daemon.socket-path.js +3 -0
- package/dist/schemas/contracts/daemon/hosting/contracts2/runtime-daemon.socket-path.js.map +1 -0
- package/dist/schemas/contracts/daemon/hosting/contracts2/spawn.consumer.d.ts +3 -0
- package/dist/schemas/contracts/daemon/hosting/contracts2/spawn.consumer.d.ts.map +1 -0
- package/dist/schemas/contracts/daemon/hosting/contracts2/spawn.consumer.js +2 -0
- package/dist/schemas/contracts/daemon/hosting/contracts2/spawn.consumer.js.map +1 -0
- package/dist/schemas/contracts/daemon/rpc-root.d.ts +3 -0
- package/dist/schemas/contracts/daemon/rpc-root.d.ts.map +1 -0
- package/dist/schemas/contracts/daemon/rpc-root.js +4 -0
- package/dist/schemas/contracts/daemon/rpc-root.js.map +1 -0
- package/dist/schemas/contracts/daemon/runtime/helpers.d.ts +12 -0
- package/dist/schemas/contracts/daemon/runtime/helpers.d.ts.map +1 -0
- package/dist/schemas/contracts/daemon/runtime/helpers.js +4 -0
- package/dist/schemas/contracts/daemon/runtime/helpers.js.map +1 -0
- package/dist/schemas/contracts/daemon/services/health.d.ts +17 -0
- package/dist/schemas/contracts/daemon/services/health.d.ts.map +1 -0
- package/dist/schemas/contracts/daemon/services/health.js +2 -0
- package/dist/schemas/contracts/daemon/services/health.js.map +1 -0
- package/dist/schemas/contracts/daemon/subscriptions/manager.d.ts +16 -0
- package/dist/schemas/contracts/daemon/subscriptions/manager.d.ts.map +1 -0
- package/dist/schemas/contracts/daemon/subscriptions/manager.js +2 -0
- package/dist/schemas/contracts/daemon/subscriptions/manager.js.map +1 -0
- package/dist/schemas/contracts/pairing/client.consumer.d.ts +31 -0
- package/dist/schemas/contracts/pairing/client.consumer.d.ts.map +1 -0
- package/dist/schemas/contracts/pairing/client.consumer.js +11 -0
- package/dist/schemas/contracts/pairing/client.consumer.js.map +1 -0
- package/dist/schemas/contracts/pairing/json-file-store.consumer.d.ts +11 -0
- package/dist/schemas/contracts/pairing/json-file-store.consumer.d.ts.map +1 -0
- package/dist/schemas/contracts/pairing/json-file-store.consumer.js +2 -0
- package/dist/schemas/contracts/pairing/json-file-store.consumer.js.map +1 -0
- package/dist/schemas/contracts/pairing/machine-identity.consumer.d.ts +12 -0
- package/dist/schemas/contracts/pairing/machine-identity.consumer.d.ts.map +1 -0
- package/dist/schemas/contracts/pairing/machine-identity.consumer.js +6 -0
- package/dist/schemas/contracts/pairing/machine-identity.consumer.js.map +1 -0
- package/dist/schemas/contracts/pairing/runtime-machine-identity.context.impl.consumer.d.ts +10 -0
- package/dist/schemas/contracts/pairing/runtime-machine-identity.context.impl.consumer.d.ts.map +1 -0
- package/dist/schemas/contracts/pairing/runtime-machine-identity.context.impl.consumer.js +2 -0
- package/dist/schemas/contracts/pairing/runtime-machine-identity.context.impl.consumer.js.map +1 -0
- package/dist/schemas/contracts/pairing/runtime-machines.context.impl.consumer.d.ts +6 -0
- package/dist/schemas/contracts/pairing/runtime-machines.context.impl.consumer.d.ts.map +1 -0
- package/dist/schemas/contracts/pairing/runtime-machines.context.impl.consumer.js +2 -0
- package/dist/schemas/contracts/pairing/runtime-machines.context.impl.consumer.js.map +1 -0
- package/dist/schemas/contracts/protocol/failure-describer.d.ts +12 -0
- package/dist/schemas/contracts/protocol/failure-describer.d.ts.map +1 -0
- package/dist/schemas/contracts/protocol/failure-describer.js +10 -0
- package/dist/schemas/contracts/protocol/failure-describer.js.map +1 -0
- package/dist/schemas/contracts/protocol/fetch-failure.d.ts +2 -0
- package/dist/schemas/contracts/protocol/fetch-failure.d.ts.map +1 -0
- package/dist/schemas/contracts/protocol/fetch-failure.js +2 -0
- package/dist/schemas/contracts/protocol/fetch-failure.js.map +1 -0
- package/dist/schemas/contracts/protocol/lifecycle/attempt.d.ts +9 -0
- package/dist/schemas/contracts/protocol/lifecycle/attempt.d.ts.map +1 -0
- package/dist/schemas/contracts/protocol/lifecycle/attempt.js +2 -0
- package/dist/schemas/contracts/protocol/lifecycle/attempt.js.map +1 -0
- package/dist/schemas/contracts/protocol/lifecycle/binding-close.d.ts +9 -0
- package/dist/schemas/contracts/protocol/lifecycle/binding-close.d.ts.map +1 -0
- package/dist/schemas/contracts/protocol/lifecycle/binding-close.js +4 -0
- package/dist/schemas/contracts/protocol/lifecycle/binding-close.js.map +1 -0
- package/dist/schemas/contracts/protocol/lifecycle/channel-close.d.ts +40 -0
- package/dist/schemas/contracts/protocol/lifecycle/channel-close.d.ts.map +1 -0
- package/dist/schemas/contracts/protocol/lifecycle/channel-close.js +14 -0
- package/dist/schemas/contracts/protocol/lifecycle/channel-close.js.map +1 -0
- package/dist/schemas/contracts/protocol/lifecycle/connector.d.ts +55 -0
- package/dist/schemas/contracts/protocol/lifecycle/connector.d.ts.map +1 -0
- package/dist/schemas/contracts/protocol/lifecycle/connector.js +2 -0
- package/dist/schemas/contracts/protocol/lifecycle/connector.js.map +1 -0
- package/dist/schemas/contracts/protocol/lifecycle/stream-credits.d.ts +18 -0
- package/dist/schemas/contracts/protocol/lifecycle/stream-credits.d.ts.map +1 -0
- package/dist/schemas/contracts/protocol/lifecycle/stream-credits.js +2 -0
- package/dist/schemas/contracts/protocol/lifecycle/stream-credits.js.map +1 -0
- package/dist/schemas/contracts/protocol/local-attestation.d.ts +29 -0
- package/dist/schemas/contracts/protocol/local-attestation.d.ts.map +1 -0
- package/dist/schemas/contracts/protocol/local-attestation.js +9 -0
- package/dist/schemas/contracts/protocol/local-attestation.js.map +1 -0
- package/dist/schemas/contracts/protocol/references/advertisement.d.ts +20 -0
- package/dist/schemas/contracts/protocol/references/advertisement.d.ts.map +1 -0
- package/dist/schemas/contracts/protocol/references/advertisement.js +2 -0
- package/dist/schemas/contracts/protocol/references/advertisement.js.map +1 -0
- package/dist/schemas/contracts/protocol/references/caller-input.d.ts +56 -0
- package/dist/schemas/contracts/protocol/references/caller-input.d.ts.map +1 -0
- package/dist/schemas/contracts/protocol/references/caller-input.js +57 -0
- package/dist/schemas/contracts/protocol/references/caller-input.js.map +1 -0
- package/dist/schemas/contracts/protocol/references/consumer.d.ts +57 -0
- package/dist/schemas/contracts/protocol/references/consumer.d.ts.map +1 -0
- package/dist/schemas/contracts/protocol/references/consumer.js +5 -0
- package/dist/schemas/contracts/protocol/references/consumer.js.map +1 -0
- package/dist/schemas/contracts/protocol/references/descriptor-input.d.ts +7 -0
- package/dist/schemas/contracts/protocol/references/descriptor-input.d.ts.map +1 -0
- package/dist/schemas/contracts/protocol/references/descriptor-input.js +2 -0
- package/dist/schemas/contracts/protocol/references/descriptor-input.js.map +1 -0
- package/dist/schemas/contracts/protocol/references/dispatch.d.ts +72 -0
- package/dist/schemas/contracts/protocol/references/dispatch.d.ts.map +1 -0
- package/dist/schemas/contracts/protocol/references/dispatch.js +5 -0
- package/dist/schemas/contracts/protocol/references/dispatch.js.map +1 -0
- package/dist/schemas/contracts/protocol/references/ref-table.d.ts +66 -0
- package/dist/schemas/contracts/protocol/references/ref-table.d.ts.map +1 -0
- package/dist/schemas/contracts/protocol/references/ref-table.js +3 -0
- package/dist/schemas/contracts/protocol/references/ref-table.js.map +1 -0
- package/dist/schemas/contracts/protocol/wire/frame.d.ts +26 -0
- package/dist/schemas/contracts/protocol/wire/frame.d.ts.map +1 -0
- package/dist/schemas/contracts/protocol/wire/frame.js +8 -0
- package/dist/schemas/contracts/protocol/wire/frame.js.map +1 -0
- package/dist/schemas/contracts/protocol/wire/limits.d.ts +2 -0
- package/dist/schemas/contracts/protocol/wire/limits.d.ts.map +1 -0
- package/dist/schemas/contracts/protocol/wire/limits.js +2 -0
- package/dist/schemas/contracts/protocol/wire/limits.js.map +1 -0
- package/dist/schemas/contracts/protocol/wire/reason.d.ts +5 -0
- package/dist/schemas/contracts/protocol/wire/reason.d.ts.map +1 -0
- package/dist/schemas/contracts/protocol/wire/reason.js +5 -0
- package/dist/schemas/contracts/protocol/wire/reason.js.map +1 -0
- package/dist/schemas/contracts/protocol/wire/rpc-data.d.ts +11 -0
- package/dist/schemas/contracts/protocol/wire/rpc-data.d.ts.map +1 -0
- package/dist/schemas/contracts/protocol/wire/rpc-data.js +2 -0
- package/dist/schemas/contracts/protocol/wire/rpc-data.js.map +1 -0
- package/dist/schemas/contracts/protocol/wire/schemas.d.ts +177 -0
- package/dist/schemas/contracts/protocol/wire/schemas.d.ts.map +1 -0
- package/dist/schemas/contracts/protocol/wire/schemas.js +83 -0
- package/dist/schemas/contracts/protocol/wire/schemas.js.map +1 -0
- package/dist/schemas/contracts/protocol/wire/verbs.d.ts +35 -0
- package/dist/schemas/contracts/protocol/wire/verbs.d.ts.map +1 -0
- package/dist/schemas/contracts/protocol/wire/verbs.js +11 -0
- package/dist/schemas/contracts/protocol/wire/verbs.js.map +1 -0
- package/dist/schemas/contracts/protocol/wire/wire-value.d.ts +27 -0
- package/dist/schemas/contracts/protocol/wire/wire-value.d.ts.map +1 -0
- package/dist/schemas/contracts/protocol/wire/wire-value.js +2 -0
- package/dist/schemas/contracts/protocol/wire/wire-value.js.map +1 -0
- package/dist/schemas/contracts/transports/cef/cef-transport.impl.d.ts +21 -0
- package/dist/schemas/contracts/transports/cef/cef-transport.impl.d.ts.map +1 -0
- package/dist/schemas/contracts/transports/cef/cef-transport.impl.js +10 -0
- package/dist/schemas/contracts/transports/cef/cef-transport.impl.js.map +1 -0
- package/dist/schemas/contracts/transports/cef/cef.rpc.descriptor.d.ts +6 -0
- package/dist/schemas/contracts/transports/cef/cef.rpc.descriptor.d.ts.map +1 -0
- package/dist/schemas/contracts/transports/cef/cef.rpc.descriptor.js +4 -0
- package/dist/schemas/contracts/transports/cef/cef.rpc.descriptor.js.map +1 -0
- package/dist/schemas/contracts/transports/cef/contracts.d.ts +191 -0
- package/dist/schemas/contracts/transports/cef/contracts.d.ts.map +1 -0
- package/dist/schemas/contracts/transports/cef/contracts.js +97 -0
- package/dist/schemas/contracts/transports/cef/contracts.js.map +1 -0
- package/dist/schemas/contracts/transports/cef/global-host.d.ts +3 -0
- package/dist/schemas/contracts/transports/cef/global-host.d.ts.map +1 -0
- package/dist/schemas/contracts/transports/cef/global-host.js +3 -0
- package/dist/schemas/contracts/transports/cef/global-host.js.map +1 -0
- package/dist/schemas/contracts/transports/cef/mount.d.ts +15 -0
- package/dist/schemas/contracts/transports/cef/mount.d.ts.map +1 -0
- package/dist/schemas/contracts/transports/cef/mount.js +2 -0
- package/dist/schemas/contracts/transports/cef/mount.js.map +1 -0
- package/dist/schemas/contracts/transports/cef/runtime-rpc-cef.plugin.d.ts +96 -0
- package/dist/schemas/contracts/transports/cef/runtime-rpc-cef.plugin.d.ts.map +1 -0
- package/dist/schemas/contracts/transports/cef/runtime-rpc-cef.plugin.js +14 -0
- package/dist/schemas/contracts/transports/cef/runtime-rpc-cef.plugin.js.map +1 -0
- package/dist/schemas/contracts/transports/http/auth/cors.d.ts +9 -0
- package/dist/schemas/contracts/transports/http/auth/cors.d.ts.map +1 -0
- package/dist/schemas/contracts/transports/http/auth/cors.js +2 -0
- package/dist/schemas/contracts/transports/http/auth/cors.js.map +1 -0
- package/dist/schemas/contracts/transports/http/auth/credential.d.ts +3 -0
- package/dist/schemas/contracts/transports/http/auth/credential.d.ts.map +1 -0
- package/dist/schemas/contracts/transports/http/auth/credential.js +2 -0
- package/dist/schemas/contracts/transports/http/auth/credential.js.map +1 -0
- package/dist/schemas/contracts/transports/http/auth/nonces.d.ts +20 -0
- package/dist/schemas/contracts/transports/http/auth/nonces.d.ts.map +1 -0
- package/dist/schemas/contracts/transports/http/auth/nonces.js +2 -0
- package/dist/schemas/contracts/transports/http/auth/nonces.js.map +1 -0
- package/dist/schemas/contracts/transports/http/auth/redact.d.ts +5 -0
- package/dist/schemas/contracts/transports/http/auth/redact.d.ts.map +1 -0
- package/dist/schemas/contracts/transports/http/auth/redact.js +2 -0
- package/dist/schemas/contracts/transports/http/auth/redact.js.map +1 -0
- package/dist/schemas/contracts/transports/http/auth/token-registry.d.ts +13 -0
- package/dist/schemas/contracts/transports/http/auth/token-registry.d.ts.map +1 -0
- package/dist/schemas/contracts/transports/http/auth/token-registry.js +2 -0
- package/dist/schemas/contracts/transports/http/auth/token-registry.js.map +1 -0
- package/dist/schemas/contracts/transports/http/descriptors/http.rpc.descriptor.d.ts +12 -0
- package/dist/schemas/contracts/transports/http/descriptors/http.rpc.descriptor.d.ts.map +1 -0
- package/dist/schemas/contracts/transports/http/descriptors/http.rpc.descriptor.js +5 -0
- package/dist/schemas/contracts/transports/http/descriptors/http.rpc.descriptor.js.map +1 -0
- package/dist/schemas/contracts/transports/http/http-connection.d.ts +27 -0
- package/dist/schemas/contracts/transports/http/http-connection.d.ts.map +1 -0
- package/dist/schemas/contracts/transports/http/http-connection.js +2 -0
- package/dist/schemas/contracts/transports/http/http-connection.js.map +1 -0
- package/dist/schemas/contracts/transports/http/http-listen-session.d.ts +47 -0
- package/dist/schemas/contracts/transports/http/http-listen-session.d.ts.map +1 -0
- package/dist/schemas/contracts/transports/http/http-listen-session.js +3 -0
- package/dist/schemas/contracts/transports/http/http-listen-session.js.map +1 -0
- package/dist/schemas/contracts/transports/http/http-listen.d.ts +50 -0
- package/dist/schemas/contracts/transports/http/http-listen.d.ts.map +1 -0
- package/dist/schemas/contracts/transports/http/http-listen.js +14 -0
- package/dist/schemas/contracts/transports/http/http-listen.js.map +1 -0
- package/dist/schemas/contracts/transports/http/http-transport.impl.d.ts +130 -0
- package/dist/schemas/contracts/transports/http/http-transport.impl.d.ts.map +1 -0
- package/dist/schemas/contracts/transports/http/http-transport.impl.js +33 -0
- package/dist/schemas/contracts/transports/http/http-transport.impl.js.map +1 -0
- package/dist/schemas/contracts/transports/http/projection-mount.d.ts +43 -0
- package/dist/schemas/contracts/transports/http/projection-mount.d.ts.map +1 -0
- package/dist/schemas/contracts/transports/http/projection-mount.js +14 -0
- package/dist/schemas/contracts/transports/http/projection-mount.js.map +1 -0
- package/dist/schemas/contracts/transports/http/runtime-rpc-http.plugin.d.ts +79 -0
- package/dist/schemas/contracts/transports/http/runtime-rpc-http.plugin.d.ts.map +1 -0
- package/dist/schemas/contracts/transports/http/runtime-rpc-http.plugin.js +5 -0
- package/dist/schemas/contracts/transports/http/runtime-rpc-http.plugin.js.map +1 -0
- package/dist/schemas/contracts/transports/http/wire.d.ts +29 -0
- package/dist/schemas/contracts/transports/http/wire.d.ts.map +1 -0
- package/dist/schemas/contracts/transports/http/wire.js +23 -0
- package/dist/schemas/contracts/transports/http/wire.js.map +1 -0
- package/dist/schemas/contracts/transports/messageport/contracts.d.ts +88 -0
- package/dist/schemas/contracts/transports/messageport/contracts.d.ts.map +1 -0
- package/dist/schemas/contracts/transports/messageport/contracts.js +9 -0
- package/dist/schemas/contracts/transports/messageport/contracts.js.map +1 -0
- package/dist/schemas/contracts/transports/messageport/descriptors/messageport.rpc.descriptor.d.ts +6 -0
- package/dist/schemas/contracts/transports/messageport/descriptors/messageport.rpc.descriptor.d.ts.map +1 -0
- package/dist/schemas/contracts/transports/messageport/descriptors/messageport.rpc.descriptor.js +4 -0
- package/dist/schemas/contracts/transports/messageport/descriptors/messageport.rpc.descriptor.js.map +1 -0
- package/dist/schemas/contracts/transports/messageport/messageport-listener.d.ts +79 -0
- package/dist/schemas/contracts/transports/messageport/messageport-listener.d.ts.map +1 -0
- package/dist/schemas/contracts/transports/messageport/messageport-listener.js +23 -0
- package/dist/schemas/contracts/transports/messageport/messageport-listener.js.map +1 -0
- package/dist/schemas/contracts/transports/messageport/runtime-rpc-messageport.plugin.d.ts +78 -0
- package/dist/schemas/contracts/transports/messageport/runtime-rpc-messageport.plugin.d.ts.map +1 -0
- package/dist/schemas/contracts/transports/messageport/runtime-rpc-messageport.plugin.js +4 -0
- package/dist/schemas/contracts/transports/messageport/runtime-rpc-messageport.plugin.js.map +1 -0
- package/dist/schemas/contracts/transports/relay/descriptors/relay.rpc.descriptor.d.ts +13 -0
- package/dist/schemas/contracts/transports/relay/descriptors/relay.rpc.descriptor.d.ts.map +1 -0
- package/dist/schemas/contracts/transports/relay/descriptors/relay.rpc.descriptor.js +5 -0
- package/dist/schemas/contracts/transports/relay/descriptors/relay.rpc.descriptor.js.map +1 -0
- package/dist/schemas/contracts/transports/relay/relay-connection.d.ts +45 -0
- package/dist/schemas/contracts/transports/relay/relay-connection.d.ts.map +1 -0
- package/dist/schemas/contracts/transports/relay/relay-connection.js +2 -0
- package/dist/schemas/contracts/transports/relay/relay-connection.js.map +1 -0
- package/dist/schemas/contracts/transports/relay/relay-listen-session.d.ts +29 -0
- package/dist/schemas/contracts/transports/relay/relay-listen-session.d.ts.map +1 -0
- package/dist/schemas/contracts/transports/relay/relay-listen-session.js +3 -0
- package/dist/schemas/contracts/transports/relay/relay-listen-session.js.map +1 -0
- package/dist/schemas/contracts/transports/relay/relay-server.d.ts +41 -0
- package/dist/schemas/contracts/transports/relay/relay-server.d.ts.map +1 -0
- package/dist/schemas/contracts/transports/relay/relay-server.js +5 -0
- package/dist/schemas/contracts/transports/relay/relay-server.js.map +1 -0
- package/dist/schemas/contracts/transports/relay/relay-transport.impl.d.ts +118 -0
- package/dist/schemas/contracts/transports/relay/relay-transport.impl.d.ts.map +1 -0
- package/dist/schemas/contracts/transports/relay/relay-transport.impl.js +24 -0
- package/dist/schemas/contracts/transports/relay/relay-transport.impl.js.map +1 -0
- package/dist/schemas/contracts/transports/relay/testing/fake-broker.d.ts +55 -0
- package/dist/schemas/contracts/transports/relay/testing/fake-broker.d.ts.map +1 -0
- package/dist/schemas/contracts/transports/relay/testing/fake-broker.js +25 -0
- package/dist/schemas/contracts/transports/relay/testing/fake-broker.js.map +1 -0
- package/dist/schemas/contracts/transports/relay/wire.d.ts +450 -0
- package/dist/schemas/contracts/transports/relay/wire.d.ts.map +1 -0
- package/dist/schemas/contracts/transports/relay/wire.js +58 -0
- package/dist/schemas/contracts/transports/relay/wire.js.map +1 -0
- package/dist/schemas/contracts/transports/tauri/contracts.d.ts +162 -0
- package/dist/schemas/contracts/transports/tauri/contracts.d.ts.map +1 -0
- package/dist/schemas/contracts/transports/tauri/contracts.js +74 -0
- package/dist/schemas/contracts/transports/tauri/contracts.js.map +1 -0
- package/dist/schemas/contracts/transports/tauri/runtime-rpc-tauri.plugin.d.ts +13 -0
- package/dist/schemas/contracts/transports/tauri/runtime-rpc-tauri.plugin.d.ts.map +1 -0
- package/dist/schemas/contracts/transports/tauri/runtime-rpc-tauri.plugin.js +4 -0
- package/dist/schemas/contracts/transports/tauri/runtime-rpc-tauri.plugin.js.map +1 -0
- package/dist/schemas/contracts/transports/tauri/tauri-transport.impl.d.ts +24 -0
- package/dist/schemas/contracts/transports/tauri/tauri-transport.impl.d.ts.map +1 -0
- package/dist/schemas/contracts/transports/tauri/tauri-transport.impl.js +15 -0
- package/dist/schemas/contracts/transports/tauri/tauri-transport.impl.js.map +1 -0
- package/dist/schemas/contracts/transports/tauri/tauri.rpc.descriptor.d.ts +14 -0
- package/dist/schemas/contracts/transports/tauri/tauri.rpc.descriptor.d.ts.map +1 -0
- package/dist/schemas/contracts/transports/tauri/tauri.rpc.descriptor.js +4 -0
- package/dist/schemas/contracts/transports/tauri/tauri.rpc.descriptor.js.map +1 -0
- package/dist/schemas/contracts/transports/tcp/descriptors/tcp.rpc.descriptor.d.ts +7 -0
- package/dist/schemas/contracts/transports/tcp/descriptors/tcp.rpc.descriptor.d.ts.map +1 -0
- package/dist/schemas/contracts/transports/tcp/descriptors/tcp.rpc.descriptor.js +4 -0
- package/dist/schemas/contracts/transports/tcp/descriptors/tcp.rpc.descriptor.js.map +1 -0
- package/dist/schemas/contracts/transports/tcp/runtime-rpc-tcp.plugin.d.ts +78 -0
- package/dist/schemas/contracts/transports/tcp/runtime-rpc-tcp.plugin.d.ts.map +1 -0
- package/dist/schemas/contracts/transports/tcp/runtime-rpc-tcp.plugin.js +5 -0
- package/dist/schemas/contracts/transports/tcp/runtime-rpc-tcp.plugin.js.map +1 -0
- package/dist/schemas/contracts/transports/tcp/tcp-transport.impl.d.ts +43 -0
- package/dist/schemas/contracts/transports/tcp/tcp-transport.impl.d.ts.map +1 -0
- package/dist/schemas/contracts/transports/tcp/tcp-transport.impl.js +24 -0
- package/dist/schemas/contracts/transports/tcp/tcp-transport.impl.js.map +1 -0
- package/dist/schemas/contracts/transports/unix/descriptors/unix.rpc.descriptor.d.ts +6 -0
- package/dist/schemas/contracts/transports/unix/descriptors/unix.rpc.descriptor.d.ts.map +1 -0
- package/dist/schemas/contracts/transports/unix/descriptors/unix.rpc.descriptor.js +4 -0
- package/dist/schemas/contracts/transports/unix/descriptors/unix.rpc.descriptor.js.map +1 -0
- package/dist/schemas/contracts/transports/unix/in-process.transport.d.ts +61 -0
- package/dist/schemas/contracts/transports/unix/in-process.transport.d.ts.map +1 -0
- package/dist/schemas/contracts/transports/unix/in-process.transport.js +6 -0
- package/dist/schemas/contracts/transports/unix/in-process.transport.js.map +1 -0
- package/dist/schemas/contracts/transports/unix/runtime-rpc-unix.plugin.d.ts +79 -0
- package/dist/schemas/contracts/transports/unix/runtime-rpc-unix.plugin.d.ts.map +1 -0
- package/dist/schemas/contracts/transports/unix/runtime-rpc-unix.plugin.js +5 -0
- package/dist/schemas/contracts/transports/unix/runtime-rpc-unix.plugin.js.map +1 -0
- package/dist/schemas/contracts/transports/unix/socket-codec.d.ts +109 -0
- package/dist/schemas/contracts/transports/unix/socket-codec.d.ts.map +1 -0
- package/dist/schemas/contracts/transports/unix/socket-codec.js +7 -0
- package/dist/schemas/contracts/transports/unix/socket-codec.js.map +1 -0
- package/dist/schemas/contracts/transports/unix/socket-handshake.d.ts +25 -0
- package/dist/schemas/contracts/transports/unix/socket-handshake.d.ts.map +1 -0
- package/dist/schemas/contracts/transports/unix/socket-handshake.js +10 -0
- package/dist/schemas/contracts/transports/unix/socket-handshake.js.map +1 -0
- package/dist/schemas/contracts/transports/unix/socket-listener.d.ts +41 -0
- package/dist/schemas/contracts/transports/unix/socket-listener.d.ts.map +1 -0
- package/dist/schemas/contracts/transports/unix/socket-listener.js +3 -0
- package/dist/schemas/contracts/transports/unix/socket-listener.js.map +1 -0
- package/dist/schemas/contracts/transports/unix/unix-transport.impl.d.ts +42 -0
- package/dist/schemas/contracts/transports/unix/unix-transport.impl.d.ts.map +1 -0
- package/dist/schemas/contracts/transports/unix/unix-transport.impl.js +23 -0
- package/dist/schemas/contracts/transports/unix/unix-transport.impl.js.map +1 -0
- package/dist/schemas/daemon/daemon-client.d.ts +194 -0
- package/dist/schemas/daemon/daemon-client.d.ts.map +1 -0
- package/dist/schemas/daemon/daemon-client.js +62 -0
- package/dist/schemas/daemon/daemon-client.js.map +1 -0
- package/dist/schemas/daemon/daemon-http.d.ts +34 -0
- package/dist/schemas/daemon/daemon-http.d.ts.map +1 -0
- package/dist/schemas/daemon/daemon-http.js +24 -0
- package/dist/schemas/daemon/daemon-http.js.map +1 -0
- package/dist/schemas/daemon/daemon-protocol.d.ts +78 -0
- package/dist/schemas/daemon/daemon-protocol.d.ts.map +1 -0
- package/dist/schemas/daemon/daemon-protocol.js +72 -0
- package/dist/schemas/daemon/daemon-protocol.js.map +1 -0
- package/dist/schemas/daemon/daemon-response.d.ts +42 -0
- package/dist/schemas/daemon/daemon-response.d.ts.map +1 -0
- package/dist/schemas/daemon/daemon-response.js +30 -0
- package/dist/schemas/daemon/daemon-response.js.map +1 -0
- package/dist/schemas/daemon/daemon-runtime.d.ts +5 -0
- package/dist/schemas/daemon/daemon-runtime.d.ts.map +1 -0
- package/dist/schemas/daemon/daemon-runtime.js +2 -0
- package/dist/schemas/daemon/daemon-runtime.js.map +1 -0
- package/dist/schemas/daemon/daemon-supervisor.d.ts +163 -0
- package/dist/schemas/daemon/daemon-supervisor.d.ts.map +1 -0
- package/dist/schemas/daemon/daemon-supervisor.js +113 -0
- package/dist/schemas/daemon/daemon-supervisor.js.map +1 -0
- package/dist/schemas/daemon/daemon-watchers.d.ts +18 -0
- package/dist/schemas/daemon/daemon-watchers.d.ts.map +1 -0
- package/dist/schemas/daemon/daemon-watchers.js +12 -0
- package/dist/schemas/daemon/daemon-watchers.js.map +1 -0
- package/dist/schemas/descriptor-wire.d.ts +14 -0
- package/dist/schemas/descriptor-wire.d.ts.map +1 -0
- package/dist/schemas/descriptor-wire.js +24 -0
- package/dist/schemas/descriptor-wire.js.map +1 -0
- package/dist/schemas/execution/wire-process.d.ts +17 -0
- package/dist/schemas/execution/wire-process.d.ts.map +1 -0
- package/dist/schemas/execution/wire-process.js +22 -0
- package/dist/schemas/execution/wire-process.js.map +1 -0
- package/dist/schemas/invoke-support.d.ts +16 -0
- package/dist/schemas/invoke-support.d.ts.map +1 -0
- package/dist/schemas/invoke-support.js +16 -0
- package/dist/schemas/invoke-support.js.map +1 -0
- package/dist/schemas/invoke.d.ts +55 -0
- package/dist/schemas/invoke.d.ts.map +1 -0
- package/dist/schemas/invoke.js +23 -0
- package/dist/schemas/invoke.js.map +1 -0
- package/dist/schemas/pairing.d.ts +118 -0
- package/dist/schemas/pairing.d.ts.map +1 -0
- package/dist/schemas/pairing.js +24 -0
- package/dist/schemas/pairing.js.map +1 -0
- package/dist/transports/cef/contracts1/cef-bounds.d.ts +3 -0
- package/dist/transports/cef/contracts1/cef-bounds.d.ts.map +1 -0
- package/dist/transports/cef/contracts1/cef-bounds.js +10 -0
- package/dist/transports/cef/contracts1/cef-bounds.js.map +1 -0
- package/dist/transports/cef/contracts1/cef-channel.d.ts +33 -0
- package/dist/transports/cef/contracts1/cef-channel.d.ts.map +1 -0
- package/dist/transports/cef/contracts1/cef-channel.js +129 -0
- package/dist/transports/cef/contracts1/cef-channel.js.map +1 -0
- package/dist/transports/cef/contracts1/cef-connection.d.ts +23 -0
- package/dist/transports/cef/contracts1/cef-connection.d.ts.map +1 -0
- package/dist/transports/cef/contracts1/cef-connection.js +207 -0
- package/dist/transports/cef/contracts1/cef-connection.js.map +1 -0
- package/dist/transports/cef/contracts1/cef-streams.d.ts +55 -0
- package/dist/transports/cef/contracts1/cef-streams.d.ts.map +1 -0
- package/dist/transports/cef/contracts1/cef-streams.js +160 -0
- package/dist/transports/cef/contracts1/cef-streams.js.map +1 -0
- package/dist/transports/cef/contracts1/cef-transport.impl.d.ts +16 -0
- package/dist/transports/cef/contracts1/cef-transport.impl.d.ts.map +1 -0
- package/dist/transports/cef/contracts1/cef-transport.impl.js +63 -0
- package/dist/transports/cef/contracts1/cef-transport.impl.js.map +1 -0
- package/dist/transports/cef/contracts1/cef.rpc.descriptor.d.ts +5 -0
- package/dist/transports/cef/contracts1/cef.rpc.descriptor.d.ts.map +1 -0
- package/dist/transports/cef/contracts1/cef.rpc.descriptor.js +18 -0
- package/dist/transports/cef/contracts1/cef.rpc.descriptor.js.map +1 -0
- package/dist/transports/cef/contracts1/contracts.d.ts +35 -0
- package/dist/transports/cef/contracts1/contracts.d.ts.map +1 -0
- package/dist/transports/cef/contracts1/contracts.js +29 -0
- package/dist/transports/cef/contracts1/contracts.js.map +1 -0
- package/dist/transports/cef/contracts2/global-host.d.ts +17 -0
- package/dist/transports/cef/contracts2/global-host.d.ts.map +1 -0
- package/dist/transports/cef/contracts2/global-host.js +65 -0
- package/dist/transports/cef/contracts2/global-host.js.map +1 -0
- package/dist/transports/cef/contracts2/index.d.ts +8 -0
- package/dist/transports/cef/contracts2/index.d.ts.map +1 -0
- package/dist/transports/cef/contracts2/index.js +8 -0
- package/dist/transports/cef/contracts2/index.js.map +1 -0
- package/dist/transports/cef/contracts2/mount.d.ts +7 -0
- package/dist/transports/cef/contracts2/mount.d.ts.map +1 -0
- package/dist/transports/cef/contracts2/mount.js +63 -0
- package/dist/transports/cef/contracts2/mount.js.map +1 -0
- package/dist/transports/cef/contracts2/projection-controller.d.ts +39 -0
- package/dist/transports/cef/contracts2/projection-controller.d.ts.map +1 -0
- package/dist/transports/cef/contracts2/projection-controller.js +129 -0
- package/dist/transports/cef/contracts2/projection-controller.js.map +1 -0
- package/dist/transports/cef/contracts2/runtime-rpc-cef.plugin.d.ts +13 -0
- package/dist/transports/cef/contracts2/runtime-rpc-cef.plugin.d.ts.map +1 -0
- package/dist/transports/cef/contracts2/runtime-rpc-cef.plugin.js +79 -0
- package/dist/transports/cef/contracts2/runtime-rpc-cef.plugin.js.map +1 -0
- package/dist/transports/http/auth/cors.d.ts +25 -0
- package/dist/transports/http/auth/cors.d.ts.map +1 -0
- package/dist/transports/http/auth/cors.js +81 -0
- package/dist/transports/http/auth/cors.js.map +1 -0
- package/dist/transports/http/auth/credential.d.ts +11 -0
- package/dist/transports/http/auth/credential.d.ts.map +1 -0
- package/dist/transports/http/auth/credential.js +38 -0
- package/dist/transports/http/auth/credential.js.map +1 -0
- package/dist/transports/http/auth/nonces.d.ts +31 -0
- package/dist/transports/http/auth/nonces.d.ts.map +1 -0
- package/dist/transports/http/auth/nonces.js +70 -0
- package/dist/transports/http/auth/nonces.js.map +1 -0
- package/dist/transports/http/auth/redact.d.ts +17 -0
- package/dist/transports/http/auth/redact.d.ts.map +1 -0
- package/dist/transports/http/auth/redact.js +60 -0
- package/dist/transports/http/auth/redact.js.map +1 -0
- package/dist/transports/http/auth/token-registry.d.ts +22 -0
- package/dist/transports/http/auth/token-registry.d.ts.map +1 -0
- package/dist/transports/http/auth/token-registry.js +30 -0
- package/dist/transports/http/auth/token-registry.js.map +1 -0
- package/dist/transports/http/consumer/connect-http.d.ts +8 -0
- package/dist/transports/http/consumer/connect-http.d.ts.map +1 -0
- package/dist/transports/http/consumer/connect-http.js +137 -0
- package/dist/transports/http/consumer/connect-http.js.map +1 -0
- package/dist/transports/http/consumer/http-channel.d.ts +51 -0
- package/dist/transports/http/consumer/http-channel.d.ts.map +1 -0
- package/dist/transports/http/consumer/http-channel.js +173 -0
- package/dist/transports/http/consumer/http-channel.js.map +1 -0
- package/dist/transports/http/consumer/http-connection.d.ts +57 -0
- package/dist/transports/http/consumer/http-connection.d.ts.map +1 -0
- package/dist/transports/http/consumer/http-connection.js +268 -0
- package/dist/transports/http/consumer/http-connection.js.map +1 -0
- package/dist/transports/http/consumer/http-headers.d.ts +3 -0
- package/dist/transports/http/consumer/http-headers.d.ts.map +1 -0
- package/dist/transports/http/consumer/http-headers.js +5 -0
- package/dist/transports/http/consumer/http-headers.js.map +1 -0
- package/dist/transports/http/daemon-endpoints.consumer.plugin.d.ts +4 -0
- package/dist/transports/http/daemon-endpoints.consumer.plugin.d.ts.map +1 -0
- package/dist/transports/http/daemon-endpoints.consumer.plugin.js +41 -0
- package/dist/transports/http/daemon-endpoints.consumer.plugin.js.map +1 -0
- package/dist/transports/http/descriptors/http.rpc.descriptor.d.ts +6 -0
- package/dist/transports/http/descriptors/http.rpc.descriptor.d.ts.map +1 -0
- package/dist/transports/http/descriptors/http.rpc.descriptor.js +34 -0
- package/dist/transports/http/descriptors/http.rpc.descriptor.js.map +1 -0
- package/dist/transports/http/endpoints/daemon-endpoint.kind.d.ts +6 -0
- package/dist/transports/http/endpoints/daemon-endpoint.kind.d.ts.map +1 -0
- package/dist/transports/http/endpoints/daemon-endpoint.kind.js +26 -0
- package/dist/transports/http/endpoints/daemon-endpoint.kind.js.map +1 -0
- package/dist/transports/http/endpoints/health.descriptor.d.ts +29 -0
- package/dist/transports/http/endpoints/health.descriptor.d.ts.map +1 -0
- package/dist/transports/http/endpoints/health.descriptor.js +13 -0
- package/dist/transports/http/endpoints/health.descriptor.js.map +1 -0
- package/dist/transports/http/endpoints/health.impl.consumer.d.ts +3 -0
- package/dist/transports/http/endpoints/health.impl.consumer.d.ts.map +1 -0
- package/dist/transports/http/endpoints/health.impl.consumer.js +24 -0
- package/dist/transports/http/endpoints/health.impl.consumer.js.map +1 -0
- package/dist/transports/http/endpoints/index.d.ts +5 -0
- package/dist/transports/http/endpoints/index.d.ts.map +1 -0
- package/dist/transports/http/endpoints/index.js +5 -0
- package/dist/transports/http/endpoints/index.js.map +1 -0
- package/dist/transports/http/endpoints/mcp.descriptor.d.ts +29 -0
- package/dist/transports/http/endpoints/mcp.descriptor.d.ts.map +1 -0
- package/dist/transports/http/endpoints/mcp.descriptor.js +13 -0
- package/dist/transports/http/endpoints/mcp.descriptor.js.map +1 -0
- package/dist/transports/http/endpoints/mcp.impl.consumer.d.ts +3 -0
- package/dist/transports/http/endpoints/mcp.impl.consumer.d.ts.map +1 -0
- package/dist/transports/http/endpoints/mcp.impl.consumer.js +16 -0
- package/dist/transports/http/endpoints/mcp.impl.consumer.js.map +1 -0
- package/dist/transports/http/http-implementation.d.ts +14 -0
- package/dist/transports/http/http-implementation.d.ts.map +1 -0
- package/dist/transports/http/http-implementation.js +26 -0
- package/dist/transports/http/http-implementation.js.map +1 -0
- package/dist/transports/http/index.d.ts +34 -0
- package/dist/transports/http/index.d.ts.map +1 -0
- package/dist/transports/http/index.js +39 -0
- package/dist/transports/http/index.js.map +1 -0
- package/dist/transports/http/listener/body.d.ts +8 -0
- package/dist/transports/http/listener/body.d.ts.map +1 -0
- package/dist/transports/http/listener/body.js +52 -0
- package/dist/transports/http/listener/body.js.map +1 -0
- package/dist/transports/http/listener/http-bindings.d.ts +82 -0
- package/dist/transports/http/listener/http-bindings.d.ts.map +1 -0
- package/dist/transports/http/listener/http-bindings.js +234 -0
- package/dist/transports/http/listener/http-bindings.js.map +1 -0
- package/dist/transports/http/listener/http-listen-session.d.ts +43 -0
- package/dist/transports/http/listener/http-listen-session.d.ts.map +1 -0
- package/dist/transports/http/listener/http-listen-session.js +123 -0
- package/dist/transports/http/listener/http-listen-session.js.map +1 -0
- package/dist/transports/http/listener/http-listen.d.ts +8 -0
- package/dist/transports/http/listener/http-listen.d.ts.map +1 -0
- package/dist/transports/http/listener/http-listen.js +62 -0
- package/dist/transports/http/listener/http-listen.js.map +1 -0
- package/dist/transports/http/listener/http-sessions.d.ts +59 -0
- package/dist/transports/http/listener/http-sessions.d.ts.map +1 -0
- package/dist/transports/http/listener/http-sessions.js +186 -0
- package/dist/transports/http/listener/http-sessions.js.map +1 -0
- package/dist/transports/http/listener/http-transport.impl.d.ts +36 -0
- package/dist/transports/http/listener/http-transport.impl.d.ts.map +1 -0
- package/dist/transports/http/listener/http-transport.impl.js +188 -0
- package/dist/transports/http/listener/http-transport.impl.js.map +1 -0
- package/dist/transports/http/listener/projection-mount.d.ts +9 -0
- package/dist/transports/http/listener/projection-mount.d.ts.map +1 -0
- package/dist/transports/http/listener/projection-mount.js +78 -0
- package/dist/transports/http/listener/projection-mount.js.map +1 -0
- package/dist/transports/http/listener/projection-owner.d.ts +6 -0
- package/dist/transports/http/listener/projection-owner.d.ts.map +1 -0
- package/dist/transports/http/listener/projection-owner.js +85 -0
- package/dist/transports/http/listener/projection-owner.js.map +1 -0
- package/dist/transports/http/listener/reverse-response.d.ts +4 -0
- package/dist/transports/http/listener/reverse-response.d.ts.map +1 -0
- package/dist/transports/http/listener/reverse-response.js +27 -0
- package/dist/transports/http/listener/reverse-response.js.map +1 -0
- package/dist/transports/http/listener/stream-response.d.ts +3 -0
- package/dist/transports/http/listener/stream-response.d.ts.map +1 -0
- package/dist/transports/http/listener/stream-response.js +52 -0
- package/dist/transports/http/listener/stream-response.js.map +1 -0
- package/dist/transports/http/runtime-rpc-http.plugin.d.ts +41 -0
- package/dist/transports/http/runtime-rpc-http.plugin.d.ts.map +1 -0
- package/dist/transports/http/runtime-rpc-http.plugin.js +70 -0
- package/dist/transports/http/runtime-rpc-http.plugin.js.map +1 -0
- package/dist/transports/http/schemas/daemon-endpoint.d.ts +83 -0
- package/dist/transports/http/schemas/daemon-endpoint.d.ts.map +1 -0
- package/dist/transports/http/schemas/daemon-endpoint.js +32 -0
- package/dist/transports/http/schemas/daemon-endpoint.js.map +1 -0
- package/dist/transports/http/wire.d.ts +52 -0
- package/dist/transports/http/wire.d.ts.map +1 -0
- package/dist/transports/http/wire.js +62 -0
- package/dist/transports/http/wire.js.map +1 -0
- package/dist/transports/messageport/applet-callbacks.d.ts +10 -0
- package/dist/transports/messageport/applet-callbacks.d.ts.map +1 -0
- package/dist/transports/messageport/applet-callbacks.js +11 -0
- package/dist/transports/messageport/applet-callbacks.js.map +1 -0
- package/dist/transports/messageport/connection/contracts.d.ts +41 -0
- package/dist/transports/messageport/connection/contracts.d.ts.map +1 -0
- package/dist/transports/messageport/connection/contracts.js +46 -0
- package/dist/transports/messageport/connection/contracts.js.map +1 -0
- package/dist/transports/messageport/connection/messageport-inbox.d.ts +37 -0
- package/dist/transports/messageport/connection/messageport-inbox.d.ts.map +1 -0
- package/dist/transports/messageport/connection/messageport-inbox.js +122 -0
- package/dist/transports/messageport/connection/messageport-inbox.js.map +1 -0
- package/dist/transports/messageport/descriptors/messageport.rpc.descriptor.d.ts +12 -0
- package/dist/transports/messageport/descriptors/messageport.rpc.descriptor.d.ts.map +1 -0
- package/dist/transports/messageport/descriptors/messageport.rpc.descriptor.js +25 -0
- package/dist/transports/messageport/descriptors/messageport.rpc.descriptor.js.map +1 -0
- package/dist/transports/messageport/docs/runtime-rpc-messageport.docs.descriptor.d.ts +4 -0
- package/dist/transports/messageport/docs/runtime-rpc-messageport.docs.descriptor.d.ts.map +1 -0
- package/dist/transports/messageport/docs/runtime-rpc-messageport.docs.descriptor.js +63 -0
- package/dist/transports/messageport/docs/runtime-rpc-messageport.docs.descriptor.js.map +1 -0
- package/dist/transports/messageport/index.d.ts +16 -0
- package/dist/transports/messageport/index.d.ts.map +1 -0
- package/dist/transports/messageport/index.js +16 -0
- package/dist/transports/messageport/index.js.map +1 -0
- package/dist/transports/messageport/messageport-connection.d.ts +9 -0
- package/dist/transports/messageport/messageport-connection.d.ts.map +1 -0
- package/dist/transports/messageport/messageport-connection.js +82 -0
- package/dist/transports/messageport/messageport-connection.js.map +1 -0
- package/dist/transports/messageport/messageport-listener.d.ts +14 -0
- package/dist/transports/messageport/messageport-listener.d.ts.map +1 -0
- package/dist/transports/messageport/messageport-listener.js +162 -0
- package/dist/transports/messageport/messageport-listener.js.map +1 -0
- package/dist/transports/messageport/runtime-rpc-messageport.plugin.d.ts +8 -0
- package/dist/transports/messageport/runtime-rpc-messageport.plugin.d.ts.map +1 -0
- package/dist/transports/messageport/runtime-rpc-messageport.plugin.js +38 -0
- package/dist/transports/messageport/runtime-rpc-messageport.plugin.js.map +1 -0
- package/dist/transports/relay/consumer/relay-channel.d.ts +48 -0
- package/dist/transports/relay/consumer/relay-channel.d.ts.map +1 -0
- package/dist/transports/relay/consumer/relay-channel.js +179 -0
- package/dist/transports/relay/consumer/relay-channel.js.map +1 -0
- package/dist/transports/relay/consumer/relay-connection.d.ts +36 -0
- package/dist/transports/relay/consumer/relay-connection.d.ts.map +1 -0
- package/dist/transports/relay/consumer/relay-connection.js +190 -0
- package/dist/transports/relay/consumer/relay-connection.js.map +1 -0
- package/dist/transports/relay/consumer/relay-exchange.d.ts +49 -0
- package/dist/transports/relay/consumer/relay-exchange.d.ts.map +1 -0
- package/dist/transports/relay/consumer/relay-exchange.js +189 -0
- package/dist/transports/relay/consumer/relay-exchange.js.map +1 -0
- package/dist/transports/relay/consumer/relay-headers.d.ts +4 -0
- package/dist/transports/relay/consumer/relay-headers.d.ts.map +1 -0
- package/dist/transports/relay/consumer/relay-headers.js +6 -0
- package/dist/transports/relay/consumer/relay-headers.js.map +1 -0
- package/dist/transports/relay/descriptors/relay.rpc.descriptor.d.ts +6 -0
- package/dist/transports/relay/descriptors/relay.rpc.descriptor.d.ts.map +1 -0
- package/dist/transports/relay/descriptors/relay.rpc.descriptor.js +31 -0
- package/dist/transports/relay/descriptors/relay.rpc.descriptor.js.map +1 -0
- package/dist/transports/relay/index.d.ts +28 -0
- package/dist/transports/relay/index.d.ts.map +1 -0
- package/dist/transports/relay/index.js +38 -0
- package/dist/transports/relay/index.js.map +1 -0
- package/dist/transports/relay/listener/consumer-table.d.ts +17 -0
- package/dist/transports/relay/listener/consumer-table.d.ts.map +1 -0
- package/dist/transports/relay/listener/consumer-table.js +9 -0
- package/dist/transports/relay/listener/consumer-table.js.map +1 -0
- package/dist/transports/relay/listener/relay-adapter.d.ts +15 -0
- package/dist/transports/relay/listener/relay-adapter.d.ts.map +1 -0
- package/dist/transports/relay/listener/relay-adapter.js +81 -0
- package/dist/transports/relay/listener/relay-adapter.js.map +1 -0
- package/dist/transports/relay/listener/relay-consumers.d.ts +72 -0
- package/dist/transports/relay/listener/relay-consumers.d.ts.map +1 -0
- package/dist/transports/relay/listener/relay-consumers.js +193 -0
- package/dist/transports/relay/listener/relay-consumers.js.map +1 -0
- package/dist/transports/relay/listener/relay-listen-session.d.ts +27 -0
- package/dist/transports/relay/listener/relay-listen-session.d.ts.map +1 -0
- package/dist/transports/relay/listener/relay-listen-session.js +207 -0
- package/dist/transports/relay/listener/relay-listen-session.js.map +1 -0
- package/dist/transports/relay/listener/reverse-proxy.d.ts +7 -0
- package/dist/transports/relay/listener/reverse-proxy.d.ts.map +1 -0
- package/dist/transports/relay/listener/reverse-proxy.js +106 -0
- package/dist/transports/relay/listener/reverse-proxy.js.map +1 -0
- package/dist/transports/relay/relay-rpc-loader.d.ts +9 -0
- package/dist/transports/relay/relay-rpc-loader.d.ts.map +1 -0
- package/dist/transports/relay/relay-rpc-loader.js +30 -0
- package/dist/transports/relay/relay-rpc-loader.js.map +1 -0
- package/dist/transports/relay/relay-server.d.ts +58 -0
- package/dist/transports/relay/relay-server.d.ts.map +1 -0
- package/dist/transports/relay/relay-server.js +86 -0
- package/dist/transports/relay/relay-server.js.map +1 -0
- package/dist/transports/relay/relay-transport.impl.d.ts +35 -0
- package/dist/transports/relay/relay-transport.impl.d.ts.map +1 -0
- package/dist/transports/relay/relay-transport.impl.js +177 -0
- package/dist/transports/relay/relay-transport.impl.js.map +1 -0
- package/dist/transports/relay/testing/broker-routing.d.ts +40 -0
- package/dist/transports/relay/testing/broker-routing.d.ts.map +1 -0
- package/dist/transports/relay/testing/broker-routing.js +136 -0
- package/dist/transports/relay/testing/broker-routing.js.map +1 -0
- package/dist/transports/relay/testing/broker-socket.d.ts +41 -0
- package/dist/transports/relay/testing/broker-socket.d.ts.map +1 -0
- package/dist/transports/relay/testing/broker-socket.js +62 -0
- package/dist/transports/relay/testing/broker-socket.js.map +1 -0
- package/dist/transports/relay/testing/fake-broker.d.ts +13 -0
- package/dist/transports/relay/testing/fake-broker.d.ts.map +1 -0
- package/dist/transports/relay/testing/fake-broker.js +197 -0
- package/dist/transports/relay/testing/fake-broker.js.map +1 -0
- package/dist/transports/relay/testing/index.d.ts +16 -0
- package/dist/transports/relay/testing/index.d.ts.map +1 -0
- package/dist/transports/relay/testing/index.js +16 -0
- package/dist/transports/relay/testing/index.js.map +1 -0
- package/dist/transports/relay/wire.d.ts +35 -0
- package/dist/transports/relay/wire.d.ts.map +1 -0
- package/dist/transports/relay/wire.js +84 -0
- package/dist/transports/relay/wire.js.map +1 -0
- package/dist/transports/tauri/contracts1/contracts.d.ts +11 -0
- package/dist/transports/tauri/contracts1/contracts.d.ts.map +1 -0
- package/dist/transports/tauri/contracts1/contracts.js +7 -0
- package/dist/transports/tauri/contracts1/contracts.js.map +1 -0
- package/dist/transports/tauri/contracts1/docs/runtime-rpc-tauri.docs.descriptor.d.ts +4 -0
- package/dist/transports/tauri/contracts1/docs/runtime-rpc-tauri.docs.descriptor.d.ts.map +1 -0
- package/dist/transports/tauri/contracts1/docs/runtime-rpc-tauri.docs.descriptor.js +80 -0
- package/dist/transports/tauri/contracts1/docs/runtime-rpc-tauri.docs.descriptor.js.map +1 -0
- package/dist/transports/tauri/contracts1/index.d.ts +6 -0
- package/dist/transports/tauri/contracts1/index.d.ts.map +1 -0
- package/dist/transports/tauri/contracts1/index.js +6 -0
- package/dist/transports/tauri/contracts1/index.js.map +1 -0
- package/dist/transports/tauri/contracts1/runtime-rpc-tauri.plugin.d.ts +7 -0
- package/dist/transports/tauri/contracts1/runtime-rpc-tauri.plugin.d.ts.map +1 -0
- package/dist/transports/tauri/contracts1/runtime-rpc-tauri.plugin.js +37 -0
- package/dist/transports/tauri/contracts1/runtime-rpc-tauri.plugin.js.map +1 -0
- package/dist/transports/tauri/contracts1/tauri-bounds.d.ts +3 -0
- package/dist/transports/tauri/contracts1/tauri-bounds.d.ts.map +1 -0
- package/dist/transports/tauri/contracts1/tauri-bounds.js +10 -0
- package/dist/transports/tauri/contracts1/tauri-bounds.js.map +1 -0
- package/dist/transports/tauri/contracts1/tauri-channel.d.ts +27 -0
- package/dist/transports/tauri/contracts1/tauri-channel.d.ts.map +1 -0
- package/dist/transports/tauri/contracts1/tauri-channel.js +111 -0
- package/dist/transports/tauri/contracts1/tauri-channel.js.map +1 -0
- package/dist/transports/tauri/contracts1/tauri-connection.d.ts +22 -0
- package/dist/transports/tauri/contracts1/tauri-connection.d.ts.map +1 -0
- package/dist/transports/tauri/contracts1/tauri-connection.js +168 -0
- package/dist/transports/tauri/contracts1/tauri-connection.js.map +1 -0
- package/dist/transports/tauri/contracts2/tauri-streams.d.ts +38 -0
- package/dist/transports/tauri/contracts2/tauri-streams.d.ts.map +1 -0
- package/dist/transports/tauri/contracts2/tauri-streams.js +110 -0
- package/dist/transports/tauri/contracts2/tauri-streams.js.map +1 -0
- package/dist/transports/tauri/contracts2/tauri-transport.impl.d.ts +16 -0
- package/dist/transports/tauri/contracts2/tauri-transport.impl.d.ts.map +1 -0
- package/dist/transports/tauri/contracts2/tauri-transport.impl.js +46 -0
- package/dist/transports/tauri/contracts2/tauri-transport.impl.js.map +1 -0
- package/dist/transports/tauri/contracts2/tauri.rpc.descriptor.d.ts +6 -0
- package/dist/transports/tauri/contracts2/tauri.rpc.descriptor.d.ts.map +1 -0
- package/dist/transports/tauri/contracts2/tauri.rpc.descriptor.js +20 -0
- package/dist/transports/tauri/contracts2/tauri.rpc.descriptor.js.map +1 -0
- package/dist/transports/tcp/connect-tcp.d.ts +12 -0
- package/dist/transports/tcp/connect-tcp.d.ts.map +1 -0
- package/dist/transports/tcp/connect-tcp.js +51 -0
- package/dist/transports/tcp/connect-tcp.js.map +1 -0
- package/dist/transports/tcp/descriptors/tcp.rpc.descriptor.d.ts +10 -0
- package/dist/transports/tcp/descriptors/tcp.rpc.descriptor.d.ts.map +1 -0
- package/dist/transports/tcp/descriptors/tcp.rpc.descriptor.js +24 -0
- package/dist/transports/tcp/descriptors/tcp.rpc.descriptor.js.map +1 -0
- package/dist/transports/tcp/index.d.ts +13 -0
- package/dist/transports/tcp/index.d.ts.map +1 -0
- package/dist/transports/tcp/index.js +13 -0
- package/dist/transports/tcp/index.js.map +1 -0
- package/dist/transports/tcp/runtime-rpc-tcp.plugin.d.ts +8 -0
- package/dist/transports/tcp/runtime-rpc-tcp.plugin.d.ts.map +1 -0
- package/dist/transports/tcp/runtime-rpc-tcp.plugin.js +37 -0
- package/dist/transports/tcp/runtime-rpc-tcp.plugin.js.map +1 -0
- package/dist/transports/tcp/tcp-transport.impl.d.ts +25 -0
- package/dist/transports/tcp/tcp-transport.impl.d.ts.map +1 -0
- package/dist/transports/tcp/tcp-transport.impl.js +103 -0
- package/dist/transports/tcp/tcp-transport.impl.js.map +1 -0
- package/dist/transports/unix/codec/record-parser.d.ts +28 -0
- package/dist/transports/unix/codec/record-parser.d.ts.map +1 -0
- package/dist/transports/unix/codec/record-parser.js +119 -0
- package/dist/transports/unix/codec/record-parser.js.map +1 -0
- package/dist/transports/unix/codec/socket-codec.d.ts +57 -0
- package/dist/transports/unix/codec/socket-codec.d.ts.map +1 -0
- package/dist/transports/unix/codec/socket-codec.js +122 -0
- package/dist/transports/unix/codec/socket-codec.js.map +1 -0
- package/dist/transports/unix/codec/socket-writer.d.ts +16 -0
- package/dist/transports/unix/codec/socket-writer.d.ts.map +1 -0
- package/dist/transports/unix/codec/socket-writer.js +69 -0
- package/dist/transports/unix/codec/socket-writer.js.map +1 -0
- package/dist/transports/unix/consumer/connect-unix.d.ts +12 -0
- package/dist/transports/unix/consumer/connect-unix.d.ts.map +1 -0
- package/dist/transports/unix/consumer/connect-unix.js +51 -0
- package/dist/transports/unix/consumer/connect-unix.js.map +1 -0
- package/dist/transports/unix/consumer/socket-channel.d.ts +45 -0
- package/dist/transports/unix/consumer/socket-channel.d.ts.map +1 -0
- package/dist/transports/unix/consumer/socket-channel.js +125 -0
- package/dist/transports/unix/consumer/socket-channel.js.map +1 -0
- package/dist/transports/unix/consumer/socket-connection.d.ts +42 -0
- package/dist/transports/unix/consumer/socket-connection.d.ts.map +1 -0
- package/dist/transports/unix/consumer/socket-connection.js +221 -0
- package/dist/transports/unix/consumer/socket-connection.js.map +1 -0
- package/dist/transports/unix/descriptors/unix.rpc.descriptor.d.ts +17 -0
- package/dist/transports/unix/descriptors/unix.rpc.descriptor.d.ts.map +1 -0
- package/dist/transports/unix/descriptors/unix.rpc.descriptor.js +31 -0
- package/dist/transports/unix/descriptors/unix.rpc.descriptor.js.map +1 -0
- package/dist/transports/unix/in-process/in-process-channel.d.ts +11 -0
- package/dist/transports/unix/in-process/in-process-channel.d.ts.map +1 -0
- package/dist/transports/unix/in-process/in-process-channel.js +126 -0
- package/dist/transports/unix/in-process/in-process-channel.js.map +1 -0
- package/dist/transports/unix/in-process/in-process.transport.d.ts +13 -0
- package/dist/transports/unix/in-process/in-process.transport.d.ts.map +1 -0
- package/dist/transports/unix/in-process/in-process.transport.js +119 -0
- package/dist/transports/unix/in-process/in-process.transport.js.map +1 -0
- package/dist/transports/unix/index.d.ts +25 -0
- package/dist/transports/unix/index.d.ts.map +1 -0
- package/dist/transports/unix/index.js +29 -0
- package/dist/transports/unix/index.js.map +1 -0
- package/dist/transports/unix/listener/socket-bindings.d.ts +38 -0
- package/dist/transports/unix/listener/socket-bindings.d.ts.map +1 -0
- package/dist/transports/unix/listener/socket-bindings.js +187 -0
- package/dist/transports/unix/listener/socket-bindings.js.map +1 -0
- package/dist/transports/unix/listener/socket-listener.d.ts +21 -0
- package/dist/transports/unix/listener/socket-listener.d.ts.map +1 -0
- package/dist/transports/unix/listener/socket-listener.js +202 -0
- package/dist/transports/unix/listener/socket-listener.js.map +1 -0
- package/dist/transports/unix/listener/socket-state.d.ts +140 -0
- package/dist/transports/unix/listener/socket-state.d.ts.map +1 -0
- package/dist/transports/unix/listener/socket-state.js +102 -0
- package/dist/transports/unix/listener/socket-state.js.map +1 -0
- package/dist/transports/unix/runtime-rpc-unix.plugin.d.ts +8 -0
- package/dist/transports/unix/runtime-rpc-unix.plugin.d.ts.map +1 -0
- package/dist/transports/unix/runtime-rpc-unix.plugin.js +37 -0
- package/dist/transports/unix/runtime-rpc-unix.plugin.js.map +1 -0
- package/dist/transports/unix/socket-handshake.d.ts +23 -0
- package/dist/transports/unix/socket-handshake.d.ts.map +1 -0
- package/dist/transports/unix/socket-handshake.js +156 -0
- package/dist/transports/unix/socket-handshake.js.map +1 -0
- package/dist/transports/unix/unix-transport.impl.d.ts +31 -0
- package/dist/transports/unix/unix-transport.impl.d.ts.map +1 -0
- package/dist/transports/unix/unix-transport.impl.js +103 -0
- package/dist/transports/unix/unix-transport.impl.js.map +1 -0
- package/package.json +315 -4
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
import { composeChildEnv, getRuntimeHostCommands, hostWorkspaceRoot } from '@vibesdotdev/kernel';
|
|
2
|
+
import { ThrownErrorSchema } from "../../../schemas/invoke-support.js";
|
|
3
|
+
import { renderCommandArgv } from "../command-argv.js";
|
|
4
|
+
function isCliCommand(descriptor) {
|
|
5
|
+
return descriptor.kind === 'cli/command';
|
|
6
|
+
}
|
|
7
|
+
// Command Invocation (subprocess isolation)
|
|
8
|
+
/**
|
|
9
|
+
* The argv that runs command `id` in a `vibes` child: the host's declared
|
|
10
|
+
* self-spawn prefix, the workspace (`--workspace-root`, never an env var,
|
|
11
|
+
* rc02-rc03 §2.2), the host's declared profile, then the command's own argv.
|
|
12
|
+
*/
|
|
13
|
+
export async function resolveCommandSpawn(runtime, descriptor, args, opts, workspaceRoot) {
|
|
14
|
+
const commandArgv = renderCommandArgv(runtime, descriptor, args, opts);
|
|
15
|
+
const [command, ...prefix] = (await getRuntimeHostCommands(runtime)).selfSpawnArgv(`runtime daemon command '${descriptor.id}'`);
|
|
16
|
+
const profile = runtime.declaredScope.qualifiers.profile;
|
|
17
|
+
const argv = [...prefix, '--workspace-root', workspaceRoot];
|
|
18
|
+
if (profile)
|
|
19
|
+
argv.push('--profile', profile);
|
|
20
|
+
argv.push(...commandArgv);
|
|
21
|
+
return { command, argv };
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Invoke a CLI command by ID with arguments and options.
|
|
25
|
+
*
|
|
26
|
+
* Spawns `vibes <group…> <name> <args…> <options…>` through the host's
|
|
27
|
+
* declared self-spawn command. The child boots its own host through the entry
|
|
28
|
+
* and runs the command there. stdout carries the command's output, stderr its
|
|
29
|
+
* errors, and the exit code signals success (0) or failure (non-zero).
|
|
30
|
+
*/
|
|
31
|
+
export async function invokeCommand(runtime, id, args, opts, timeoutMs, workspace) {
|
|
32
|
+
const kindId = 'cli/command';
|
|
33
|
+
if (!runtime.hasKind(kindId)) {
|
|
34
|
+
return {
|
|
35
|
+
success: false,
|
|
36
|
+
error: `Kind '${kindId}' is not registered. CLI plugin may not be loaded.`
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
// Check that the command descriptor exists
|
|
40
|
+
const accessor = runtime.assets(kindId);
|
|
41
|
+
const descriptor = accessor.descriptor(id);
|
|
42
|
+
if (!descriptor || !isCliCommand(descriptor)) {
|
|
43
|
+
return {
|
|
44
|
+
success: false,
|
|
45
|
+
error: `Command not found: ${id}`
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
// Check implementation availability
|
|
49
|
+
if (!accessor.has(id)) {
|
|
50
|
+
return {
|
|
51
|
+
success: false,
|
|
52
|
+
error: `No implementation available for command '${id}' in current scope`
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
const startTime = Date.now();
|
|
56
|
+
try {
|
|
57
|
+
// The call's workspace, else this host's own (rc02-rc03 C3).
|
|
58
|
+
const workspaceRoot = workspace?.root ?? hostWorkspaceRoot(runtime);
|
|
59
|
+
const { command, argv } = await resolveCommandSpawn(runtime, descriptor, args, opts, workspaceRoot);
|
|
60
|
+
// VIBES-120 and C15: the command child's environment is the kernel's
|
|
61
|
+
// composition from this daemon's runtime: the host set (base keys,
|
|
62
|
+
// re-entry facts, this runtime's path roots, so a non-default home
|
|
63
|
+
// re-enters its own roots) plus `VIBES_HMR`, which a hot daemon must
|
|
64
|
+
// hand its self-spawned children. No secret, credential manifest or
|
|
65
|
+
// ambient VIBES_* key crosses the plugin trust boundary.
|
|
66
|
+
const { runTimedCapture } = await import("../../../core/utils/exec.js");
|
|
67
|
+
const captured = await runTimedCapture(runtime, command, argv, {
|
|
68
|
+
cwd: workspaceRoot,
|
|
69
|
+
env: composeChildEnv(runtime, { inheritEnv: ['VIBES_HMR'] }),
|
|
70
|
+
envMode: 'replace',
|
|
71
|
+
timeoutMs
|
|
72
|
+
});
|
|
73
|
+
const duration = Date.now() - startTime;
|
|
74
|
+
if (captured.timedOut) {
|
|
75
|
+
return {
|
|
76
|
+
success: false,
|
|
77
|
+
error: `Command '${id}' execution timed out after ${timeoutMs}ms`,
|
|
78
|
+
output: captured.stdout.trim(),
|
|
79
|
+
duration
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
const outcome = {
|
|
83
|
+
success: captured.exitCode === 0,
|
|
84
|
+
output: captured.stdout.trim(),
|
|
85
|
+
exitCode: captured.exitCode,
|
|
86
|
+
duration
|
|
87
|
+
};
|
|
88
|
+
const stderr = captured.stderr.trim();
|
|
89
|
+
if (captured.exitCode !== 0 && stderr)
|
|
90
|
+
outcome.error = stderr;
|
|
91
|
+
return outcome;
|
|
92
|
+
}
|
|
93
|
+
catch (err) {
|
|
94
|
+
const duration = Date.now() - startTime;
|
|
95
|
+
const described = ThrownErrorSchema.safeParse(err);
|
|
96
|
+
const message = described.success && described.data.message !== undefined ? described.data.message : String(err);
|
|
97
|
+
const failure = {
|
|
98
|
+
success: false,
|
|
99
|
+
error: message,
|
|
100
|
+
duration,
|
|
101
|
+
cause: err
|
|
102
|
+
};
|
|
103
|
+
if (described.success && described.data.stack !== undefined)
|
|
104
|
+
failure.stack = described.data.stack;
|
|
105
|
+
return failure;
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
//# sourceMappingURL=command.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"command.js","sourceRoot":"","sources":["../../../../src/daemon/commands/invoke/command.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,sBAAsB,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAGjG,OAAO,EAAE,iBAAiB,EAAE,MAAM,oCAAoC,CAAC;AAGvE,OAAO,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AACvD,SAAS,YAAY,CAAC,UAA6B;IAClD,OA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0 +1,12 @@
|
|
|
1
|
+
import type { ToolCallContext } from '@vibesdotdev/kernel/schemas/tool-call';
|
|
2
|
+
/**
|
|
3
|
+
* Generate a unique call ID for tool invocations.
|
|
4
|
+
*/
|
|
5
|
+
export declare function generateCallId(): string;
|
|
6
|
+
/**
|
|
7
|
+
* Create a no-op logger implementation for daemon-side tool calls.
|
|
8
|
+
* Tools invoked through the daemon don't have a caller-scoped logger,
|
|
9
|
+
* so we provide a silent one.
|
|
10
|
+
*/
|
|
11
|
+
export declare function createNoopLogger(namespace?: string): ToolCallContext['logger'];
|
|
12
|
+
//# sourceMappingURL=logger.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"logger.d.ts","sourceRoot":"","sources":["../../../../src/daemon/commands/invoke/logger.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uCAAuC,CAAC;AAK7E;;GAEG;AACH,wBAAgB,cAAc,IAAI,MAAM,CAIvC;AAED;;;;GAIG;AACH,wBAAgB,gBAAgB,CAAC,SAAS,SAAmB,GAAG,eAAe,CAAC,QAAQ,CAAC,CAExF"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import * as z from 'zod/v4';
|
|
2
|
+
import { ChildLoggerOptionsSchema } from "../../../schemas/invoke-support.js";
|
|
3
|
+
// Helpers
|
|
4
|
+
/**
|
|
5
|
+
* Generate a unique call ID for tool invocations.
|
|
6
|
+
*/
|
|
7
|
+
export function generateCallId() {
|
|
8
|
+
const timestamp = Date.now().toString(36);
|
|
9
|
+
const random = Math.random().toString(36).slice(2, 8);
|
|
10
|
+
return `daemon-${timestamp}-${random}`;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Create a no-op logger implementation for daemon-side tool calls.
|
|
14
|
+
* Tools invoked through the daemon don't have a caller-scoped logger,
|
|
15
|
+
* so we provide a silent one.
|
|
16
|
+
*/
|
|
17
|
+
export function createNoopLogger(namespace = 'runtime-daemon') {
|
|
18
|
+
return createScopedNoopLogger(namespace);
|
|
19
|
+
}
|
|
20
|
+
function createScopedNoopLogger(namespace) {
|
|
21
|
+
const noop = () => { };
|
|
22
|
+
return {
|
|
23
|
+
namespace,
|
|
24
|
+
fullNamespace: namespace,
|
|
25
|
+
debug: noop,
|
|
26
|
+
info: noop,
|
|
27
|
+
warn: noop,
|
|
28
|
+
error: noop,
|
|
29
|
+
child: (options) => {
|
|
30
|
+
const named = z.string().safeParse(options);
|
|
31
|
+
if (named.success)
|
|
32
|
+
return createScopedNoopLogger(`${namespace}:${named.data}`);
|
|
33
|
+
const parsed = ChildLoggerOptionsSchema.safeParse(options);
|
|
34
|
+
const segment = parsed.success ? (parsed.data.namespace ?? parsed.data.context ?? 'child') : 'child';
|
|
35
|
+
return createScopedNoopLogger(`${namespace}:${segment}`);
|
|
36
|
+
},
|
|
37
|
+
withContext: () => createScopedNoopLogger(namespace)
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
//# sourceMappingURL=logger.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"logger.js","sourceRoot":"","sources":["../../../../src/daemon/commands/invoke/logger.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,wBAAwB,EAAE,MAAM,oCAAoC,CAAC;AAC9E,UAAU;AAEV;;GAEG;AACH,MAAM,UAAU,cAAc;IAC7B,MAAM,SAAS,GAAG,IAAI,CAAC,GAAG,EAAE,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC;IAC1C,MAAM,MAAM,GAAG,IAAI,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;IACtD,OAAO,UAAU,SAAS,IAAI,MAAM,EAAE,CAAC;AACxC,CAAC;AAED;;;;GAIG;AACH,MAAM,UAAU,gBAAgB,CAAC,SAAS,GAAG,gBAAgB;IAC5D,OAAO,sBAAsB,CAAC,SAAS,CAAC,CAAC;AAC1C,CAAC;AAED,SAAS,sBAAsB,CAAC,SAAiB;IAChD,MAAM,IAAI,GAAG,GAAS,EAAE,GAAE,CAAC,CAAC;IAE5B,OAAO;QACN,SAAS;QACT,aAAa,EAAE,SAAS;QACxB,KAAK,EAAE,IAAI;QACX,IAAI,EAAE,IAAI;QACV,IAAI,EAAE,IAAI;QACV,KAAK,EAAE,IAAI;QACX,KAAK,EAAE,CAAC,OAAO,EAAE,EAAE;YAClB,MAAM,KAAK,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC;YAC5C,IAAI,KAAK,CAAC,OAAO;gBAAE,OAAO,sBAAsB,CAAC,GAAG,SAAS,IAAI,KAAK,CAAC,IAAI,EAAE,CAAC,CAAC;YAC/E,MAAM,MAAM,GAAG,wBAAwB,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC;YAC3D,MAAM,OAAO,GAAG,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,SAAS,IAAI,MAAM,CAAC,IAAI,CAAC,OAAO,IAAI,OAAO,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC;YACrG,OAAO,sBAAsB,CAAC,GAAG,SAAS,IAAI,OAAO,EAAE,CAAC,CAAC;QAC1D,CAAC;QACD,WAAW,EAAE,GAAG,EAAE,CAAC,sBAAsB,CAAC,SAAS,CAAC;KACpD,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { RuntimeInvokeWorkspace, VibesRuntime } from '@vibesdotdev/kernel';
|
|
2
|
+
import type { RuntimeInvokeCaller } from '@vibesdotdev/kernel/schemas/invoke-caller';
|
|
3
|
+
import type { CommandArgRecord } from '../../../schemas/invoke.ts';
|
|
4
|
+
import type { RuntimeCommandResult } from '../../services/api/command-handler.contracts.ts';
|
|
5
|
+
/**
|
|
6
|
+
* Invoke a tool by ID with parameters.
|
|
7
|
+
*
|
|
8
|
+
* Delegates to `invokeTool()` from `@vibesdotdev/tools/execution/invoke` so the
|
|
9
|
+
* daemon path emits the same hook-bus lifecycle and applies the same timeout
|
|
10
|
+
* semantics as the tools-package invoker. Descriptor resolution, discriminated
|
|
11
|
+
* dispatch, and the four-phase hook emission are handled by the shared
|
|
12
|
+
* implementation.
|
|
13
|
+
*/
|
|
14
|
+
export declare function invokeTool(runtime: VibesRuntime, id: string, params: CommandArgRecord, timeoutMs: number, caller?: RuntimeInvokeCaller, workspace?: RuntimeInvokeWorkspace): Promise<RuntimeCommandResult>;
|
|
15
|
+
//# sourceMappingURL=tool.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tool.d.ts","sourceRoot":"","sources":["../../../../src/daemon/commands/invoke/tool.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,sBAAsB,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAChF,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,2CAA2C,CAAC;AAIrF,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AACnE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,iDAAiD,CAAC;AAI5F;;;;;;;;GAQG;AACH,wBAAsB,UAAU,CAC/B,OAAO,EAAE,YAAY,EACrB,EAAE,EAAE,MAAM,EACV,MAAM,EAAE,gBAAgB,EACxB,SAAS,EAAE,MAAM,EACjB,MAAM,CAAC,EAAE,mBAAmB,EAC5B,SAAS,CAAC,EAAE,sBAAsB,GAChC,OAAO,CAAC,oBAAoB,CAAC,CAsF/B"}
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import { invokeTool as invokeToolFromTools } from '@vibesdotdev/tools/execution/invoke';
|
|
2
|
+
import { ThrownErrorSchema } from "../../../schemas/invoke-support.js";
|
|
3
|
+
import { createNoopLogger, generateCallId } from "./logger.js";
|
|
4
|
+
// Tool Invocation
|
|
5
|
+
/**
|
|
6
|
+
* Invoke a tool by ID with parameters.
|
|
7
|
+
*
|
|
8
|
+
* Delegates to `invokeTool()` from `@vibesdotdev/tools/execution/invoke` so the
|
|
9
|
+
* daemon path emits the same hook-bus lifecycle and applies the same timeout
|
|
10
|
+
* semantics as the tools-package invoker. Descriptor resolution, discriminated
|
|
11
|
+
* dispatch, and the four-phase hook emission are handled by the shared
|
|
12
|
+
* implementation.
|
|
13
|
+
*/
|
|
14
|
+
export async function invokeTool(runtime, id, params, timeoutMs, caller, workspace) {
|
|
15
|
+
const kindId = 'tools/tool';
|
|
16
|
+
if (!runtime.hasKind(kindId)) {
|
|
17
|
+
return {
|
|
18
|
+
success: false,
|
|
19
|
+
error: `Kind '${kindId}' is not registered. Tools plugin may not be loaded.`
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
const accessor = runtime.assets(kindId);
|
|
23
|
+
const isDiscriminated = accessor.isDiscriminated(id);
|
|
24
|
+
if (!isDiscriminated) {
|
|
25
|
+
const descriptor = accessor.descriptor(id);
|
|
26
|
+
if (!descriptor) {
|
|
27
|
+
return {
|
|
28
|
+
success: false,
|
|
29
|
+
error: `Tool not found: ${id}`
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
if (!accessor.has(id)) {
|
|
33
|
+
return {
|
|
34
|
+
success: false,
|
|
35
|
+
error: `No implementation available for tool '${id}' in current scope`
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
let effectiveWorkspace = workspace;
|
|
40
|
+
const targetSessionId = workspace?.sessionId ?? caller?.sessionId;
|
|
41
|
+
if (targetSessionId && targetSessionId !== 'cli' && runtime.hasContext('workspace/bind-caller')) {
|
|
42
|
+
const bindCaller = await runtime.context('workspace/bind-caller');
|
|
43
|
+
const bound = await bindCaller(runtime, targetSessionId, workspace?.root);
|
|
44
|
+
if (bound)
|
|
45
|
+
effectiveWorkspace = workspace ? { ...workspace, ...bound } : bound;
|
|
46
|
+
}
|
|
47
|
+
const ctx = {
|
|
48
|
+
callId: generateCallId(),
|
|
49
|
+
logger: createNoopLogger(),
|
|
50
|
+
caller,
|
|
51
|
+
workspace: effectiveWorkspace,
|
|
52
|
+
// How this caller arrived, as data for caller admission (its instance's transport).
|
|
53
|
+
metadata: { 'invoke.transport': 'unix' }
|
|
54
|
+
};
|
|
55
|
+
const startTime = Date.now();
|
|
56
|
+
try {
|
|
57
|
+
const result = await invokeToolFromTools({ runtime, toolId: id, input: params, ctx, timeoutMs });
|
|
58
|
+
return {
|
|
59
|
+
success: true,
|
|
60
|
+
result,
|
|
61
|
+
duration: Date.now() - startTime
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
catch (err) {
|
|
65
|
+
const duration = Date.now() - startTime;
|
|
66
|
+
const described = ThrownErrorSchema.safeParse(err);
|
|
67
|
+
const message = described.success && described.data.message !== undefined ? described.data.message : String(err);
|
|
68
|
+
const failure = {
|
|
69
|
+
success: false,
|
|
70
|
+
error: message,
|
|
71
|
+
duration,
|
|
72
|
+
cause: err
|
|
73
|
+
};
|
|
74
|
+
if (described.success && described.data.stack !== undefined)
|
|
75
|
+
failure.stack = described.data.stack;
|
|
76
|
+
if (/timed out/i.test(message)) {
|
|
77
|
+
failure.timedOut = true;
|
|
78
|
+
failure.result = {
|
|
79
|
+
timedOut: true,
|
|
80
|
+
exitCode: 137,
|
|
81
|
+
stdout: '',
|
|
82
|
+
stderr: message,
|
|
83
|
+
durationMs: duration
|
|
84
|
+
};
|
|
85
|
+
}
|
|
86
|
+
if (described.success && described.data.recoveryHint !== undefined) {
|
|
87
|
+
failure.recoveryHint = described.data.recoveryHint;
|
|
88
|
+
}
|
|
89
|
+
if (described.success && described.data.retryable !== undefined) {
|
|
90
|
+
failure.retryable = described.data.retryable;
|
|
91
|
+
}
|
|
92
|
+
return failure;
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
//# sourceMappingURL=tool.js.map
|
|
@@ -0,0 +1 @@
|
|
|
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otdev/tools/execution/invoke`
|
|
7
|
+
* so the daemon path stays in lock-step with the tools-package invoker.
|
|
8
|
+
* Descriptor resolution, discriminated dispatch, and four-phase hook emission
|
|
9
|
+
* are handled by the shared implementation.
|
|
10
|
+
* - Commands: run in a `vibes` child the daemon's host re-enters through
|
|
11
|
+
* `runtime/host-command` (rc02-rc03 §2.6, C-01), so process.exit() in the
|
|
12
|
+
* command cannot kill the daemon and the command gets a booted host.
|
|
13
|
+
*
|
|
14
|
+
* Supports configurable timeout (default 60s).
|
|
15
|
+
* Errors during execution are caught and returned as structured responses.
|
|
16
|
+
*/
|
|
17
|
+
import type { RuntimeInvokeCaller } from '@vibesdotdev/kernel/schemas/invoke-caller';
|
|
18
|
+
import { type InvokeRequest } from '../../schemas/invoke.ts';
|
|
19
|
+
import type { RuntimeCommandDeps, RuntimeCommandPayload, RuntimeCommandResult } from '../services/api/command-handler.contracts.ts';
|
|
20
|
+
type InvokeMessage = InvokeRequest;
|
|
21
|
+
/**
|
|
22
|
+
* Handle an `invoke` command.
|
|
23
|
+
*
|
|
24
|
+
* Routes to tool or command invocation based on `message.type`.
|
|
25
|
+
*/
|
|
26
|
+
export declare function handleInvoke(message: RuntimeCommandPayload, deps: RuntimeCommandDeps): Promise<RuntimeCommandResult>;
|
|
27
|
+
/** The invoke request of `message`, acting as `actor` (the admitted caller); exported for its test. */
|
|
28
|
+
export declare function toInvokeMessage(message: RuntimeCommandPayload, actor: RuntimeInvokeCaller | undefined): InvokeMessage;
|
|
29
|
+
export { resolveCommandSpawn } from './invoke/command.ts';
|
|
30
|
+
export default handleInvoke;
|
|
31
|
+
//# sourceMappingURL=invoke.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"invoke.d.ts","sourceRoot":"","sources":["../../../src/daemon/commands/invoke.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAGH,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,2CAA2C,CAAC;AAIrF,OAAO,EAAuB,KAAK,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAClF,OAAO,KAAK,EAAE,kBAAkB,EAAE,qBAAqB,EAAE,oBAAoB,EAAE,MAAM,8CAA8C,CAAC;AAIpI,KAAK,aAAa,GAAG,aAAa,CAAC;AAiBnC;;;;GAIG;AACH,wBAAsB,YAAY,CACjC,OAAO,EAAE,qBAAqB,EAC9B,IAAI,EAAE,kBAAkB,GACtB,OAAO,CAAC,oBAAoB,CAAC,CAmE/B;AAED,uGAAuG;AACvG,wBAAgB,eAAe,CAAC,OAAO,EAAE,qBAAqB,EAAE,KAAK,EAAE,mBAAmB,GAAG,SAAS,GAAG,aAAa,CAWrH;AAED,OAAO,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AAE1D,eAAe,YAAY,CAAC"}
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Invoke Command Handler
|
|
3
|
+
*
|
|
4
|
+
* Executes tools or CLI commands through the runtime.
|
|
5
|
+
*
|
|
6
|
+
* - Tools: delegated to `invokeTool()` from `@vibesdotdev/tools/execution/invoke`
|
|
7
|
+
* so the daemon path stays in lock-step with the tools-package invoker.
|
|
8
|
+
* Descriptor resolution, discriminated dispatch, and four-phase hook emission
|
|
9
|
+
* are handled by the shared implementation.
|
|
10
|
+
* - Commands: run in a `vibes` child the daemon's host re-enters through
|
|
11
|
+
* `runtime/host-command` (rc02-rc03 §2.6, C-01), so process.exit() in the
|
|
12
|
+
* command cannot kill the daemon and the command gets a booted host.
|
|
13
|
+
*
|
|
14
|
+
* Supports configurable timeout (default 60s).
|
|
15
|
+
* Errors during execution are caught and returned as structured responses.
|
|
16
|
+
*/
|
|
17
|
+
import { CapabilityError } from '@vibesdotdev/kernel';
|
|
18
|
+
import * as z from 'zod/v4';
|
|
19
|
+
import { PositiveFieldSchema } from "../../schemas/invoke-support.js";
|
|
20
|
+
import { InvokeRequestSchema } from "../../schemas/invoke.js";
|
|
21
|
+
import { invokeCommand } from "./invoke/command.js";
|
|
22
|
+
import { invokeTool } from "./invoke/tool.js";
|
|
23
|
+
const DEFAULT_TIMEOUT_MS = 60_000;
|
|
24
|
+
/** Extra budget so a tool can return timedOut:true before the wrapper throws. */
|
|
25
|
+
const TOOL_TIMEOUT_GRACE_MS = 5_000;
|
|
26
|
+
function positiveMilliseconds(value) {
|
|
27
|
+
return value !== undefined && value > 0 ? value : undefined;
|
|
28
|
+
}
|
|
29
|
+
function toolParamTimeout(params) {
|
|
30
|
+
const parsed = PositiveFieldSchema.safeParse(params ?? {});
|
|
31
|
+
return parsed.success ? positiveMilliseconds(parsed.data.timeoutMs) : undefined;
|
|
32
|
+
}
|
|
33
|
+
// Handler
|
|
34
|
+
/**
|
|
35
|
+
* Handle an `invoke` command.
|
|
36
|
+
*
|
|
37
|
+
* Routes to tool or command invocation based on `message.type`.
|
|
38
|
+
*/
|
|
39
|
+
export async function handleInvoke(message, deps) {
|
|
40
|
+
const { runtime } = deps;
|
|
41
|
+
// The caller is the ADMITTED actor of this invocation (RC08, D-RC08): the
|
|
42
|
+
// invoke pipeline's `wrap` admitted the RPC frame's declared caller against
|
|
43
|
+
// what the transport verified, before any hook or observer, and dispatched
|
|
44
|
+
// this method as that actor. A `caller` in the params is never read.
|
|
45
|
+
const invokeMessage = toInvokeMessage(message, runtime.scope.actor);
|
|
46
|
+
const { id, timeout, source, emitActivity } = invokeMessage;
|
|
47
|
+
const legacyType = invokeMessage.type === 'tool' || invokeMessage.type === 'command' ? invokeMessage.type : undefined;
|
|
48
|
+
const invokeType = invokeMessage.invokeType ?? legacyType;
|
|
49
|
+
// Validate required fields
|
|
50
|
+
if (!invokeType) {
|
|
51
|
+
return {
|
|
52
|
+
success: false,
|
|
53
|
+
error: `Invalid or missing invokeType: '${invokeType}'. Expected 'tool' or 'command'.`
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
if (!id) {
|
|
57
|
+
return {
|
|
58
|
+
success: false,
|
|
59
|
+
error: 'Missing required field: id'
|
|
60
|
+
};
|
|
61
|
+
}
|
|
62
|
+
const paramTimeout = invokeType === 'tool' ? toolParamTimeout(invokeMessage.params) : undefined;
|
|
63
|
+
const requestedTimeoutMs = positiveMilliseconds(timeout) ?? paramTimeout ?? DEFAULT_TIMEOUT_MS;
|
|
64
|
+
const timeoutMs = invokeType === 'tool' ? requestedTimeoutMs + TOOL_TIMEOUT_GRACE_MS : requestedTimeoutMs;
|
|
65
|
+
const startedAt = Date.now();
|
|
66
|
+
const result = invokeType === 'tool'
|
|
67
|
+
? await invokeTool(runtime, id, invokeMessage.params ?? {}, timeoutMs, invokeMessage.caller, invokeMessage.workspace)
|
|
68
|
+
: await invokeCommand(runtime, id, invokeMessage.args ?? {}, invokeMessage.opts ?? {}, timeoutMs, invokeMessage.workspace);
|
|
69
|
+
if (emitActivity !== false) {
|
|
70
|
+
const parsedDuration = z.number().safeParse(result.duration);
|
|
71
|
+
const activityError = z.string().safeParse(result.error);
|
|
72
|
+
const activityBase = {
|
|
73
|
+
type: 'invoke',
|
|
74
|
+
id,
|
|
75
|
+
invokeType,
|
|
76
|
+
source: source ?? 'runtime-client',
|
|
77
|
+
success: result.success !== false,
|
|
78
|
+
duration: parsedDuration.success ? parsedDuration.data : Date.now() - startedAt,
|
|
79
|
+
timestamp: new Date().toISOString()
|
|
80
|
+
};
|
|
81
|
+
const activity = activityError.success ? { ...activityBase, error: activityError.data } : activityBase;
|
|
82
|
+
deps.subscriptionManager.broadcast?.('activity', activity);
|
|
83
|
+
}
|
|
84
|
+
return result;
|
|
85
|
+
}
|
|
86
|
+
/** The invoke request of `message`, acting as `actor` (the admitted caller); exported for its test. */
|
|
87
|
+
export function toInvokeMessage(message, actor) {
|
|
88
|
+
const parsed = InvokeRequestSchema.safeParse(message);
|
|
89
|
+
if (!parsed.success) {
|
|
90
|
+
const idMissing = !message.id;
|
|
91
|
+
throw new CapabilityError('Invalid invoke request.', 'INVALID_INPUT', {
|
|
92
|
+
reason: idMissing ? 'invoke-id-missing' : 'invoke-request-invalid',
|
|
93
|
+
details: { fields: [...new Set(parsed.error.issues.map(issue => String(issue.path[0] ?? 'request')))] }
|
|
94
|
+
});
|
|
95
|
+
}
|
|
96
|
+
return { ...parsed.data, caller: actor };
|
|
97
|
+
}
|
|
98
|
+
export { resolveCommandSpawn } from "./invoke/command.js";
|
|
99
|
+
export default handleInvoke;
|
|
100
|
+
//# sourceMappingURL=invoke.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"invoke.js","sourceRoot":"","sources":["../../../src/daemon/commands/invoke.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAEtD,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,mBAAmB,EAAE,MAAM,iCAAiC,CAAC;AAEtE,OAAO,EAAE,mBAAmB,EAAsB,MAAM,yBAAyB,CAAC;AAElF,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACpD,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAI9C,MAAM,kBAAkB,GAAG,MAAM,CAAC;AAClC,iFAAiF;AACjF,MAAM,qBAAqB,GAAG,KAAK,CAAC;AAEpC,SAAS,oBAAoB,CAAC,KAAyB;IACtD,OAAO,KAAK,KAAK,SAAS,IAAI,KAAK,GAAG,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC;AAC7D,CAAC;AAED,SAAS,gBAAgB,CAAC,MAAoC;IAC7D,MAAM,MAAM,GAAG,mBAAmB,CAAC,SAAS,CAAC,MAAM,IAAI,EAAE,CAAC,CAAC;IAC3D,OAAO,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,oBAAoB,CAAC,MAAM,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;AACjF,CAAC;AAED,UAAU;AA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AAED,uGAAuG;AACvG,MAAM,UAAU,eAAe,CAAC,OAA8B,EAAE,KAAsC;IACrG,MAAM,MAAM,GAAG,mBAAmB,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC;IACtD,IAAI,CAAC,MAAM,CAAC,OAAO,EAAE,CAAC;QACrB,MAAM,SAAS,GAAG,CAAC,OAAO,CAAC,EAAE,CAAC;QAC9B,MAAM,IAAI,eAAe,CAAC,yBAAyB,EAAE,eAAe,EAAE;YACrE,MAAM,EAAE,SAAS,CAAC,CAAC,CAAC,mBAAmB,CAAC,CAAC,CAAC,wBAAwB;YAClE,OAAO,EAAE,EAAE,MAAM,EAAE,CAAC,GAAG,IAAI,GAAG,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,GAAG,CAAC,KAAK,CAAC,EAAE,CAAC,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,SAAS,CAAC,CAAC,CAAC,CAAC,EAAE;SACvG,CAAC,CAAC;IACJ,CAAC;IACD,OAAO,EAAE,GAAG,MAAM,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC;AAE1C,CAAC;AAED,OAAO,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AAE1D,eAAe,YAAY,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { SubscribeHandlerDeps } from "../../schemas/contracts/daemon/commands/subscribe.ts";
|
|
2
|
+
export { SubscriptionChannelSchema } from "../../schemas/contracts/daemon/commands/subscribe.ts";
|
|
3
|
+
export type { SubscribeHandlerDeps } from "../../schemas/contracts/daemon/commands/subscribe.ts";
|
|
4
|
+
/**
|
|
5
|
+
* Handle a GET /subscribe request.
|
|
6
|
+
*
|
|
7
|
+
* Parses the channel and optional id from query parameters, validates them,
|
|
8
|
+
* creates an SSE stream, and registers the client with the subscription
|
|
9
|
+
* infrastructure.
|
|
10
|
+
*
|
|
11
|
+
* @param request - The incoming HTTP request
|
|
12
|
+
* @param deps - Handler dependencies (subscription manager, watchers)
|
|
13
|
+
* @returns An SSE Response or a JSON error Response
|
|
14
|
+
*/
|
|
15
|
+
export declare function handleSubscribe(request: Request, deps: SubscribeHandlerDeps): Response;
|
|
16
|
+
//# sourceMappingURL=subscribe.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"subscribe.d.ts","sourceRoot":"","sources":["../../../src/daemon/commands/subscribe.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,sDAAsD,CAAC;AAKjG,OAAO,EAAE,yBAAyB,EAAE,MAAM,sDAAsD,CAAC;AAEjG,YAAY,EAAE,oBAAoB,EAAE,MAAM,sDAAsD,CAAC;AAYjG;;;;;;;;;;GAUG;AACH,wBAAgB,eAAe,CAAC,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,oBAAoB,GAAG,QAAQ,CAyFtF"}
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
import { SubscriptionChannelSchema } from "../../schemas/contracts/daemon/commands/subscribe.js";
|
|
2
|
+
import { formatSSE } from "../subscriptions/manager.js";
|
|
3
|
+
import { cleanupClient } from "./subscription-cleanup.js";
|
|
4
|
+
export { SubscriptionChannelSchema } from "../../schemas/contracts/daemon/commands/subscribe.js";
|
|
5
|
+
/** Valid subscription channels */
|
|
6
|
+
/**
|
|
7
|
+
* A unique client ID for an SSE connection: random, so no module-level
|
|
8
|
+
* counter is shared across daemons (or hot-reload generations) in a process.
|
|
9
|
+
*/
|
|
10
|
+
function generateClientId() {
|
|
11
|
+
return `sse-${crypto.randomUUID()}`;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Handle a GET /subscribe request.
|
|
15
|
+
*
|
|
16
|
+
* Parses the channel and optional id from query parameters, validates them,
|
|
17
|
+
* creates an SSE stream, and registers the client with the subscription
|
|
18
|
+
* infrastructure.
|
|
19
|
+
*
|
|
20
|
+
* @param request - The incoming HTTP request
|
|
21
|
+
* @param deps - Handler dependencies (subscription manager, watchers)
|
|
22
|
+
* @returns An SSE Response or a JSON error Response
|
|
23
|
+
*/
|
|
24
|
+
export function handleSubscribe(request, deps) {
|
|
25
|
+
const url = new URL(request.url);
|
|
26
|
+
const rawChannel = url.searchParams.get('channel');
|
|
27
|
+
const filterId = url.searchParams.get('id') || undefined;
|
|
28
|
+
// Validation
|
|
29
|
+
if (!rawChannel) {
|
|
30
|
+
return new Response(JSON.stringify({ success: false, error: 'Missing required query parameter: channel' }), { status: 400, headers: { 'Content-Type': 'application/json' } });
|
|
31
|
+
}
|
|
32
|
+
const parsedChannel = SubscriptionChannelSchema.safeParse(rawChannel);
|
|
33
|
+
if (!parsedChannel.success) {
|
|
34
|
+
return new Response(JSON.stringify({
|
|
35
|
+
success: false,
|
|
36
|
+
error: `Invalid channel '${rawChannel}'. Must be one of: ${SubscriptionChannelSchema.options.join(', ')}`
|
|
37
|
+
}), { status: 400, headers: { 'Content-Type': 'application/json' } });
|
|
38
|
+
}
|
|
39
|
+
const channel = parsedChannel.data;
|
|
40
|
+
// Storage and config channels require an id to know which manifest to watch
|
|
41
|
+
if ((channel === 'storage' || channel === 'config') && !filterId) {
|
|
42
|
+
return new Response(JSON.stringify({
|
|
43
|
+
success: false,
|
|
44
|
+
error: `The '${channel}' channel requires an 'id' query parameter specifying the manifest to watch`
|
|
45
|
+
}), { status: 400, headers: { 'Content-Type': 'application/json' } });
|
|
46
|
+
}
|
|
47
|
+
// Create SSE stream
|
|
48
|
+
const clientId = generateClientId();
|
|
49
|
+
const stream = new ReadableStream({
|
|
50
|
+
start(controller) {
|
|
51
|
+
// Register the client with the subscription manager
|
|
52
|
+
deps.subscriptions.addClient(clientId, controller, channel, filterId);
|
|
53
|
+
// Send an initial connection event so the client knows it's connected
|
|
54
|
+
const encoder = new TextEncoder();
|
|
55
|
+
const welcomeMessage = formatSSE('connected', {
|
|
56
|
+
clientId,
|
|
57
|
+
channel,
|
|
58
|
+
filterId: filterId ?? null,
|
|
59
|
+
timestamp: new Date().toISOString()
|
|
60
|
+
});
|
|
61
|
+
controller.enqueue(encoder.encode(welcomeMessage));
|
|
62
|
+
// Set up watchers based on channel
|
|
63
|
+
setupWatchers(channel, filterId, deps);
|
|
64
|
+
},
|
|
65
|
+
cancel() {
|
|
66
|
+
// Client disconnected - clean up
|
|
67
|
+
cleanupClient(clientId, channel, filterId, deps);
|
|
68
|
+
}
|
|
69
|
+
});
|
|
70
|
+
// Handle client disconnect via AbortSignal
|
|
71
|
+
if (request.signal) {
|
|
72
|
+
request.signal.addEventListener('abort', () => {
|
|
73
|
+
cleanupClient(clientId, channel, filterId, deps);
|
|
74
|
+
}, { once: true });
|
|
75
|
+
}
|
|
76
|
+
// Return SSE Response
|
|
77
|
+
return new Response(stream, {
|
|
78
|
+
status: 200,
|
|
79
|
+
headers: {
|
|
80
|
+
'Content-Type': 'text/event-stream',
|
|
81
|
+
'Cache-Control': 'no-cache',
|
|
82
|
+
Connection: 'keep-alive',
|
|
83
|
+
'X-Client-Id': clientId
|
|
84
|
+
}
|
|
85
|
+
});
|
|
86
|
+
}
|
|
87
|
+
/**
|
|
88
|
+
* Set up storage/config watchers based on the subscription channel.
|
|
89
|
+
*
|
|
90
|
+
* For 'storage' or 'config' channels, starts watching the specific manifest.
|
|
91
|
+
* For 'all', starts watching the specified manifest on both channels if an
|
|
92
|
+
* id is provided.
|
|
93
|
+
*/
|
|
94
|
+
function setupWatchers(channel, filterId, deps) {
|
|
95
|
+
if (channel === 'storage' && filterId) {
|
|
96
|
+
deps.storageWatcher.watch(filterId);
|
|
97
|
+
}
|
|
98
|
+
else if (channel === 'config' && filterId) {
|
|
99
|
+
deps.configWatcher.watch(filterId);
|
|
100
|
+
}
|
|
101
|
+
else if (channel === 'all' && filterId) {
|
|
102
|
+
// When subscribing to 'all' with an id, watch on both channels
|
|
103
|
+
deps.storageWatcher.watch(filterId);
|
|
104
|
+
deps.configWatcher.watch(filterId);
|
|
105
|
+
}
|
|
106
|
+
// 'lifecycle', 'activity', and 'all' without id don't need watcher setup.
|
|
107
|
+
}
|
|
108
|
+
//# sourceMappingURL=subscribe.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"subscribe.js","sourceRoot":"","sources":["../../../src/daemon/commands/subscribe.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,yBAAyB,EAAE,MAAM,sDAAsD,CAAC;AACjG,OAAO,EAA4B,SAAS,EAAE,MAAM,6BAA6B,CAAC;AAClF,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAE1D,OAAO,EAAE,yBAAyB,EAAE,MAAM,sDAAsD,CAAC;AAIjG,kCAAkC;AAElC;;;GAGG;AACH,SAAS,gBAAgB;IACxB,OAAO,OAAO,MAAM,CAAC,UAAU,EAAE,EAAE,CAAC;AACrC,CAAC;AAED;;;;;;;;;;GAUG;AACH,MAAM,UAAU,eAAe,CAAC,OAAgB,EAAE,IAA0B;IAC3E,MAAM,GAAG,GAAG,IAAI,GAAG,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;IACjC,MAAM,UAAU,GAAG,GAAG,CAAC,YAAY,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IACnD,MAAM,QAAQ,GAAG,GAAG,CAAC,YAAY,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,SAAS,CAAC;IAEzD,aAAa;IAEb,IAAI,CAAC,UAAU,EAAE,CAAC;QACjB,OAAO,IAAI,QAAQ,CAClB,IAAI,CAAC,SAAS,CAAC,EAAE,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,2CAA2C,EAAE,CAAC,EACtF,EAAE,MAAM,EAAE,GAAG,EAAE,OAAO,EAAE,EAAE,cAAc,EAAE,kBAAkB,EAAE,EAAE,CAChE,CAAC;IACH,CAAC;IAED,MAAM,aAAa,GAAG,yBAAyB,CAAC,SAAS,CAAC,UAAU,CAAC,CAAC;IACtE,IAAI,CAAC,aAAa,CAAC,OAAO,EAAE,CAAC;QAC5B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AAC,aAAa,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC;IACpC,CAAC;IACD,0EAA0E;AAC3E,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { SubscribeHandlerDeps } from "../../schemas/contracts/daemon/commands/subscribe.ts";
|
|
2
|
+
import { type SubscriptionChannel } from '../subscriptions/manager.ts';
|
|
3
|
+
export declare function cleanupClient(clientId: string, channel: SubscriptionChannel, filterId: string | undefined, deps: SubscribeHandlerDeps): void;
|
|
4
|
+
//# sourceMappingURL=subscription-cleanup.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"subscription-cleanup.d.ts","sourceRoot":"","sources":["../../../src/daemon/commands/subscription-cleanup.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,sDAAsD,CAAC;AACjG,OAAO,EAAE,KAAK,mBAAmB,EAAE,MAAM,6BAA6B,CAAC;AAEvE,wBAMS,aAAa,CACrB,QAAQ,EAAE,MAAM,EAChB,OAAO,EAAE,mBAAmB,EAC5B,QAAQ,EAAE,MAAM,GAAG,SAAS,EAC5B,IAAI,EAAE,oBAAoB,GACxB,IAAI,CAkBN"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import {} from "../subscriptions/manager.js";
|
|
2
|
+
export /**
|
|
3
|
+
* Clean up when a client disconnects.
|
|
4
|
+
*
|
|
5
|
+
* Removes the client from the subscription manager. If no other clients
|
|
6
|
+
* are watching the same manifest, unwatches it to save resources.
|
|
7
|
+
*/ function cleanupClient(clientId, channel, filterId, deps) {
|
|
8
|
+
deps.subscriptions.removeClient(clientId);
|
|
9
|
+
// Check if we should unwatch the manifest
|
|
10
|
+
// Only unwatch if no other client is watching the same manifest on this channel
|
|
11
|
+
if (!filterId)
|
|
12
|
+
return;
|
|
13
|
+
if (channel === 'storage' || channel === 'all') {
|
|
14
|
+
if (!hasOtherSubscribers(deps.subscriptions, 'storage', filterId, clientId)) {
|
|
15
|
+
deps.storageWatcher.unwatch(filterId);
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
if (channel === 'config' || channel === 'all') {
|
|
19
|
+
if (!hasOtherSubscribers(deps.subscriptions, 'config', filterId, clientId)) {
|
|
20
|
+
deps.configWatcher.unwatch(filterId);
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Check if any other clients (besides the given clientId) are subscribed
|
|
26
|
+
* to the same channel+filterId combination.
|
|
27
|
+
*/
|
|
28
|
+
function hasOtherSubscribers(subscriptions, channel, filterId, excludeClientId) {
|
|
29
|
+
const clients = subscriptions.getClientsForChannel(channel);
|
|
30
|
+
return clients.some((c) => c.clientId !== excludeClientId && c.filterId === filterId);
|
|
31
|
+
}
|
|
32
|
+
//# sourceMappingURL=subscription-cleanup.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"subscription-cleanup.js","sourceRoot":"","sources":["../../../src/daemon/commands/subscription-cleanup.ts"],"names":[],"mappings":"AACA,OAAO,EAA4B,MAAM,6BAA6B,CAAC;AAEvE,MAAM,CAAC;;;;;GAKJ,UACM,aAAa,CACrB,QAAgB,EAChB,OAA4B,EAC5B,QAA4B,EAC5B,IAA0B;IAE1B,IAAI,CAAC,aAAa,CAAC,YAAY,CAAC,QAAQ,CAAC,CAAC;IAE1C,0CAA0C;IAC1C,gFAAgF;IAChF,IAAI,CAAC,QAAQ;QAAE,OAAO;IAEtB,IAAI,OAAO,KAAK,SAAS,IAAI,OAAO,KAAK,KAAK,EAAE,CAAC;QAChD,IAAI,CAAC,mBAAmB,CAAC,IAAI,CAAC,aAAa,EAAE,SAAS,EAAE,QAAQ,EAAE,QAAQ,CAAC,EAAE,CAAC;YAC7E,IAAI,CAAC,cAAc,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC;QACvC,CAAC;IACF,CAAC;IAED,IAAI,OAAO,KAAK,QAAQ,IAAI,OAAO,KAAK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