@vibesdotdev/pm 0.0.0-stage → 1.0.0-rc.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +18 -0
- package/README.md +227 -2
- package/dist/admission-store.d.ts +43 -0
- package/dist/admission-store.d.ts.map +1 -0
- package/dist/admission-store.js +108 -0
- package/dist/admission-store.js.map +1 -0
- package/dist/admission.d.ts +46 -0
- package/dist/admission.d.ts.map +1 -0
- package/dist/admission.js +81 -0
- package/dist/admission.js.map +1 -0
- package/dist/admitted-workspace.context.descriptor.d.ts +39 -0
- package/dist/admitted-workspace.context.descriptor.d.ts.map +1 -0
- package/dist/admitted-workspace.context.descriptor.js +18 -0
- package/dist/admitted-workspace.context.descriptor.js.map +1 -0
- package/dist/admitted-workspace.context.impl.consumer.d.ts +16 -0
- package/dist/admitted-workspace.context.impl.consumer.d.ts.map +1 -0
- package/dist/admitted-workspace.context.impl.consumer.js +7 -0
- package/dist/admitted-workspace.context.impl.consumer.js.map +1 -0
- package/dist/cli/admission-read.d.ts +12 -0
- package/dist/cli/admission-read.d.ts.map +1 -0
- package/dist/cli/admission-read.js +42 -0
- package/dist/cli/admission-read.js.map +1 -0
- package/dist/cli/command-input.d.ts +37 -0
- package/dist/cli/command-input.d.ts.map +1 -0
- package/dist/cli/command-input.js +34 -0
- package/dist/cli/command-input.js.map +1 -0
- package/dist/cli/consumer-components/startup-progress.d.ts +107 -0
- package/dist/cli/consumer-components/startup-progress.d.ts.map +1 -0
- package/dist/cli/consumer-components/startup-progress.js +392 -0
- package/dist/cli/consumer-components/startup-progress.js.map +1 -0
- package/dist/cli/consumer-services/control.d.ts +147 -0
- package/dist/cli/consumer-services/control.d.ts.map +1 -0
- package/dist/cli/consumer-services/control.js +209 -0
- package/dist/cli/consumer-services/control.js.map +1 -0
- package/dist/cli/daemon-launch-child.d.ts +35 -0
- package/dist/cli/daemon-launch-child.d.ts.map +1 -0
- package/dist/cli/daemon-launch-child.js +25 -0
- package/dist/cli/daemon-launch-child.js.map +1 -0
- package/dist/cli/docs/pm.cli.docs.descriptor.d.ts +4 -0
- package/dist/cli/docs/pm.cli.docs.descriptor.d.ts.map +1 -0
- package/dist/cli/docs/pm.cli.docs.descriptor.js +93 -0
- package/dist/cli/docs/pm.cli.docs.descriptor.js.map +1 -0
- package/dist/cli/filter-process-states.d.ts +12 -0
- package/dist/cli/filter-process-states.d.ts.map +1 -0
- package/dist/cli/filter-process-states.js +12 -0
- package/dist/cli/filter-process-states.js.map +1 -0
- package/dist/cli/output.d.ts +21 -0
- package/dist/cli/output.d.ts.map +1 -0
- package/dist/cli/output.js +19 -0
- package/dist/cli/output.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 +12 -0
- package/dist/cli/plugin.js.map +1 -0
- package/dist/cli/pm.cli-group.descriptor.d.ts +10 -0
- package/dist/cli/pm.cli-group.descriptor.d.ts.map +1 -0
- package/dist/cli/pm.cli-group.descriptor.js +18 -0
- package/dist/cli/pm.cli-group.descriptor.js.map +1 -0
- package/dist/cli/pm.completion.cli-group.descriptor.d.ts +9 -0
- package/dist/cli/pm.completion.cli-group.descriptor.d.ts.map +1 -0
- package/dist/cli/pm.completion.cli-group.descriptor.js +17 -0
- package/dist/cli/pm.completion.cli-group.descriptor.js.map +1 -0
- package/dist/cli/pm.completion.install.descriptor.d.ts +9 -0
- package/dist/cli/pm.completion.install.descriptor.d.ts.map +1 -0
- package/dist/cli/pm.completion.install.descriptor.js +24 -0
- package/dist/cli/pm.completion.install.descriptor.js.map +1 -0
- package/dist/cli/pm.completion.install.impl.d.ts +11 -0
- package/dist/cli/pm.completion.install.impl.d.ts.map +1 -0
- package/dist/cli/pm.completion.install.impl.js +207 -0
- package/dist/cli/pm.completion.install.impl.js.map +1 -0
- package/dist/cli/pm.config.cli.descriptor.d.ts +10 -0
- package/dist/cli/pm.config.cli.descriptor.d.ts.map +1 -0
- package/dist/cli/pm.config.cli.descriptor.js +25 -0
- package/dist/cli/pm.config.cli.descriptor.js.map +1 -0
- package/dist/cli/pm.config.impl.d.ts +12 -0
- package/dist/cli/pm.config.impl.d.ts.map +1 -0
- package/dist/cli/pm.config.impl.js +117 -0
- package/dist/cli/pm.config.impl.js.map +1 -0
- package/dist/cli/pm.daemon.cli-group.descriptor.d.ts +9 -0
- package/dist/cli/pm.daemon.cli-group.descriptor.d.ts.map +1 -0
- package/dist/cli/pm.daemon.cli-group.descriptor.js +17 -0
- package/dist/cli/pm.daemon.cli-group.descriptor.js.map +1 -0
- package/dist/cli/pm.daemon.logs.descriptor.d.ts +9 -0
- package/dist/cli/pm.daemon.logs.descriptor.d.ts.map +1 -0
- package/dist/cli/pm.daemon.logs.descriptor.js +29 -0
- package/dist/cli/pm.daemon.logs.descriptor.js.map +1 -0
- package/dist/cli/pm.daemon.logs.impl.d.ts +11 -0
- package/dist/cli/pm.daemon.logs.impl.d.ts.map +1 -0
- package/dist/cli/pm.daemon.logs.impl.js +53 -0
- package/dist/cli/pm.daemon.logs.impl.js.map +1 -0
- package/dist/cli/pm.daemon.reconcile.descriptor.d.ts +9 -0
- package/dist/cli/pm.daemon.reconcile.descriptor.d.ts.map +1 -0
- package/dist/cli/pm.daemon.reconcile.descriptor.js +24 -0
- package/dist/cli/pm.daemon.reconcile.descriptor.js.map +1 -0
- package/dist/cli/pm.daemon.reconcile.impl.d.ts +16 -0
- package/dist/cli/pm.daemon.reconcile.impl.d.ts.map +1 -0
- package/dist/cli/pm.daemon.reconcile.impl.js +51 -0
- package/dist/cli/pm.daemon.reconcile.impl.js.map +1 -0
- package/dist/cli/pm.daemon.recover.descriptor.d.ts +9 -0
- package/dist/cli/pm.daemon.recover.descriptor.d.ts.map +1 -0
- package/dist/cli/pm.daemon.recover.descriptor.js +24 -0
- package/dist/cli/pm.daemon.recover.descriptor.js.map +1 -0
- package/dist/cli/pm.daemon.recover.impl.d.ts +16 -0
- package/dist/cli/pm.daemon.recover.impl.d.ts.map +1 -0
- package/dist/cli/pm.daemon.recover.impl.js +66 -0
- package/dist/cli/pm.daemon.recover.impl.js.map +1 -0
- package/dist/cli/pm.daemon.restart.descriptor.d.ts +9 -0
- package/dist/cli/pm.daemon.restart.descriptor.d.ts.map +1 -0
- package/dist/cli/pm.daemon.restart.descriptor.js +25 -0
- package/dist/cli/pm.daemon.restart.descriptor.js.map +1 -0
- package/dist/cli/pm.daemon.restart.impl.d.ts +28 -0
- package/dist/cli/pm.daemon.restart.impl.d.ts.map +1 -0
- package/dist/cli/pm.daemon.restart.impl.js +174 -0
- package/dist/cli/pm.daemon.restart.impl.js.map +1 -0
- package/dist/cli/pm.daemon.serve.descriptor.d.ts +10 -0
- package/dist/cli/pm.daemon.serve.descriptor.d.ts.map +1 -0
- package/dist/cli/pm.daemon.serve.descriptor.js +28 -0
- package/dist/cli/pm.daemon.serve.descriptor.js.map +1 -0
- package/dist/cli/pm.daemon.serve.impl.d.ts +37 -0
- package/dist/cli/pm.daemon.serve.impl.d.ts.map +1 -0
- package/dist/cli/pm.daemon.serve.impl.js +257 -0
- package/dist/cli/pm.daemon.serve.impl.js.map +1 -0
- package/dist/cli/pm.daemon.start.descriptor.d.ts +9 -0
- package/dist/cli/pm.daemon.start.descriptor.d.ts.map +1 -0
- package/dist/cli/pm.daemon.start.descriptor.js +28 -0
- package/dist/cli/pm.daemon.start.descriptor.js.map +1 -0
- package/dist/cli/pm.daemon.start.impl.d.ts +40 -0
- package/dist/cli/pm.daemon.start.impl.d.ts.map +1 -0
- package/dist/cli/pm.daemon.start.impl.js +341 -0
- package/dist/cli/pm.daemon.start.impl.js.map +1 -0
- package/dist/cli/pm.daemon.status.descriptor.d.ts +9 -0
- package/dist/cli/pm.daemon.status.descriptor.d.ts.map +1 -0
- package/dist/cli/pm.daemon.status.descriptor.js +24 -0
- package/dist/cli/pm.daemon.status.descriptor.js.map +1 -0
- package/dist/cli/pm.daemon.status.impl.d.ts +11 -0
- package/dist/cli/pm.daemon.status.impl.d.ts.map +1 -0
- package/dist/cli/pm.daemon.status.impl.js +123 -0
- package/dist/cli/pm.daemon.status.impl.js.map +1 -0
- package/dist/cli/pm.daemon.stop.descriptor.d.ts +9 -0
- package/dist/cli/pm.daemon.stop.descriptor.d.ts.map +1 -0
- package/dist/cli/pm.daemon.stop.descriptor.js +24 -0
- package/dist/cli/pm.daemon.stop.descriptor.js.map +1 -0
- package/dist/cli/pm.daemon.stop.impl.d.ts +21 -0
- package/dist/cli/pm.daemon.stop.impl.d.ts.map +1 -0
- package/dist/cli/pm.daemon.stop.impl.js +108 -0
- package/dist/cli/pm.daemon.stop.impl.js.map +1 -0
- package/dist/cli/pm.dashboard.descriptor.d.ts +10 -0
- package/dist/cli/pm.dashboard.descriptor.d.ts.map +1 -0
- package/dist/cli/pm.dashboard.descriptor.js +30 -0
- package/dist/cli/pm.dashboard.descriptor.js.map +1 -0
- package/dist/cli/pm.dashboard.impl.d.ts +16 -0
- package/dist/cli/pm.dashboard.impl.d.ts.map +1 -0
- package/dist/cli/pm.dashboard.impl.js +134 -0
- package/dist/cli/pm.dashboard.impl.js.map +1 -0
- package/dist/cli/pm.init.descriptor.d.ts +9 -0
- package/dist/cli/pm.init.descriptor.d.ts.map +1 -0
- package/dist/cli/pm.init.descriptor.js +28 -0
- package/dist/cli/pm.init.descriptor.js.map +1 -0
- package/dist/cli/pm.init.impl.d.ts +11 -0
- package/dist/cli/pm.init.impl.d.ts.map +1 -0
- package/dist/cli/pm.init.impl.js +112 -0
- package/dist/cli/pm.init.impl.js.map +1 -0
- package/dist/cli/pm.list.descriptor.d.ts +9 -0
- package/dist/cli/pm.list.descriptor.d.ts.map +1 -0
- package/dist/cli/pm.list.descriptor.js +44 -0
- package/dist/cli/pm.list.descriptor.js.map +1 -0
- package/dist/cli/pm.list.impl.d.ts +24 -0
- package/dist/cli/pm.list.impl.d.ts.map +1 -0
- package/dist/cli/pm.list.impl.js +204 -0
- package/dist/cli/pm.list.impl.js.map +1 -0
- package/dist/cli/pm.liveness.cli-group.descriptor.d.ts +25 -0
- package/dist/cli/pm.liveness.cli-group.descriptor.d.ts.map +1 -0
- package/dist/cli/pm.liveness.cli-group.descriptor.js +33 -0
- package/dist/cli/pm.liveness.cli-group.descriptor.js.map +1 -0
- package/dist/cli/pm.liveness.set.descriptor.d.ts +18 -0
- package/dist/cli/pm.liveness.set.descriptor.d.ts.map +1 -0
- package/dist/cli/pm.liveness.set.descriptor.js +65 -0
- package/dist/cli/pm.liveness.set.descriptor.js.map +1 -0
- package/dist/cli/pm.liveness.set.impl.d.ts +6 -0
- package/dist/cli/pm.liveness.set.impl.d.ts.map +1 -0
- package/dist/cli/pm.liveness.set.impl.js +61 -0
- package/dist/cli/pm.liveness.set.impl.js.map +1 -0
- package/dist/cli/pm.logs.descriptor.d.ts +9 -0
- package/dist/cli/pm.logs.descriptor.d.ts.map +1 -0
- package/dist/cli/pm.logs.descriptor.js +39 -0
- package/dist/cli/pm.logs.descriptor.js.map +1 -0
- package/dist/cli/pm.logs.impl.d.ts +11 -0
- package/dist/cli/pm.logs.impl.d.ts.map +1 -0
- package/dist/cli/pm.logs.impl.js +208 -0
- package/dist/cli/pm.logs.impl.js.map +1 -0
- package/dist/cli/pm.preset.cli-group.descriptor.d.ts +9 -0
- package/dist/cli/pm.preset.cli-group.descriptor.d.ts.map +1 -0
- package/dist/cli/pm.preset.cli-group.descriptor.js +17 -0
- package/dist/cli/pm.preset.cli-group.descriptor.js.map +1 -0
- package/dist/cli/pm.preset.list.descriptor.d.ts +9 -0
- package/dist/cli/pm.preset.list.descriptor.d.ts.map +1 -0
- package/dist/cli/pm.preset.list.descriptor.js +24 -0
- package/dist/cli/pm.preset.list.descriptor.js.map +1 -0
- package/dist/cli/pm.preset.list.impl.d.ts +6 -0
- package/dist/cli/pm.preset.list.impl.d.ts.map +1 -0
- package/dist/cli/pm.preset.list.impl.js +67 -0
- package/dist/cli/pm.preset.list.impl.js.map +1 -0
- package/dist/cli/pm.preset.restart.descriptor.d.ts +9 -0
- package/dist/cli/pm.preset.restart.descriptor.d.ts.map +1 -0
- package/dist/cli/pm.preset.restart.descriptor.js +39 -0
- package/dist/cli/pm.preset.restart.descriptor.js.map +1 -0
- package/dist/cli/pm.preset.restart.impl.d.ts +11 -0
- package/dist/cli/pm.preset.restart.impl.d.ts.map +1 -0
- package/dist/cli/pm.preset.restart.impl.js +85 -0
- package/dist/cli/pm.preset.restart.impl.js.map +1 -0
- package/dist/cli/pm.preset.show.descriptor.d.ts +9 -0
- package/dist/cli/pm.preset.show.descriptor.d.ts.map +1 -0
- package/dist/cli/pm.preset.show.descriptor.js +30 -0
- package/dist/cli/pm.preset.show.descriptor.js.map +1 -0
- package/dist/cli/pm.preset.show.impl.d.ts +6 -0
- package/dist/cli/pm.preset.show.impl.d.ts.map +1 -0
- package/dist/cli/pm.preset.show.impl.js +92 -0
- package/dist/cli/pm.preset.show.impl.js.map +1 -0
- package/dist/cli/pm.preset.start.descriptor.d.ts +9 -0
- package/dist/cli/pm.preset.start.descriptor.d.ts.map +1 -0
- package/dist/cli/pm.preset.start.descriptor.js +39 -0
- package/dist/cli/pm.preset.start.descriptor.js.map +1 -0
- package/dist/cli/pm.preset.start.impl.d.ts +11 -0
- package/dist/cli/pm.preset.start.impl.d.ts.map +1 -0
- package/dist/cli/pm.preset.start.impl.js +88 -0
- package/dist/cli/pm.preset.start.impl.js.map +1 -0
- package/dist/cli/pm.preset.status.descriptor.d.ts +9 -0
- package/dist/cli/pm.preset.status.descriptor.d.ts.map +1 -0
- package/dist/cli/pm.preset.status.descriptor.js +30 -0
- package/dist/cli/pm.preset.status.descriptor.js.map +1 -0
- package/dist/cli/pm.preset.status.impl.d.ts +11 -0
- package/dist/cli/pm.preset.status.impl.d.ts.map +1 -0
- package/dist/cli/pm.preset.status.impl.js +166 -0
- package/dist/cli/pm.preset.status.impl.js.map +1 -0
- package/dist/cli/pm.preset.stop.descriptor.d.ts +9 -0
- package/dist/cli/pm.preset.stop.descriptor.d.ts.map +1 -0
- package/dist/cli/pm.preset.stop.descriptor.js +39 -0
- package/dist/cli/pm.preset.stop.descriptor.js.map +1 -0
- package/dist/cli/pm.preset.stop.impl.d.ts +11 -0
- package/dist/cli/pm.preset.stop.impl.d.ts.map +1 -0
- package/dist/cli/pm.preset.stop.impl.js +68 -0
- package/dist/cli/pm.preset.stop.impl.js.map +1 -0
- package/dist/cli/pm.preset.teardown.descriptor.d.ts +9 -0
- package/dist/cli/pm.preset.teardown.descriptor.d.ts.map +1 -0
- package/dist/cli/pm.preset.teardown.descriptor.js +43 -0
- package/dist/cli/pm.preset.teardown.descriptor.js.map +1 -0
- package/dist/cli/pm.preset.teardown.impl.d.ts +12 -0
- package/dist/cli/pm.preset.teardown.impl.d.ts.map +1 -0
- package/dist/cli/pm.preset.teardown.impl.js +91 -0
- package/dist/cli/pm.preset.teardown.impl.js.map +1 -0
- package/dist/cli/pm.presets.descriptor.d.ts +9 -0
- package/dist/cli/pm.presets.descriptor.d.ts.map +1 -0
- package/dist/cli/pm.presets.descriptor.js +24 -0
- package/dist/cli/pm.presets.descriptor.js.map +1 -0
- package/dist/cli/pm.presets.impl.d.ts +11 -0
- package/dist/cli/pm.presets.impl.d.ts.map +1 -0
- package/dist/cli/pm.presets.impl.js +13 -0
- package/dist/cli/pm.presets.impl.js.map +1 -0
- package/dist/cli/pm.register.descriptor.d.ts +11 -0
- package/dist/cli/pm.register.descriptor.d.ts.map +1 -0
- package/dist/cli/pm.register.descriptor.js +32 -0
- package/dist/cli/pm.register.descriptor.js.map +1 -0
- package/dist/cli/pm.register.impl.d.ts +15 -0
- package/dist/cli/pm.register.impl.d.ts.map +1 -0
- package/dist/cli/pm.register.impl.js +81 -0
- package/dist/cli/pm.register.impl.js.map +1 -0
- package/dist/cli/pm.resource.apply.descriptor.d.ts +15 -0
- package/dist/cli/pm.resource.apply.descriptor.d.ts.map +1 -0
- package/dist/cli/pm.resource.apply.descriptor.js +41 -0
- package/dist/cli/pm.resource.apply.descriptor.js.map +1 -0
- package/dist/cli/pm.resource.apply.impl.d.ts +14 -0
- package/dist/cli/pm.resource.apply.impl.d.ts.map +1 -0
- package/dist/cli/pm.resource.apply.impl.js +91 -0
- package/dist/cli/pm.resource.apply.impl.js.map +1 -0
- package/dist/cli/pm.resource.cli-group.descriptor.d.ts +9 -0
- package/dist/cli/pm.resource.cli-group.descriptor.d.ts.map +1 -0
- package/dist/cli/pm.resource.cli-group.descriptor.js +17 -0
- package/dist/cli/pm.resource.cli-group.descriptor.js.map +1 -0
- package/dist/cli/pm.resource.list.descriptor.d.ts +9 -0
- package/dist/cli/pm.resource.list.descriptor.d.ts.map +1 -0
- package/dist/cli/pm.resource.list.descriptor.js +25 -0
- package/dist/cli/pm.resource.list.descriptor.js.map +1 -0
- package/dist/cli/pm.resource.list.impl.d.ts +11 -0
- package/dist/cli/pm.resource.list.impl.d.ts.map +1 -0
- package/dist/cli/pm.resource.list.impl.js +141 -0
- package/dist/cli/pm.resource.list.impl.js.map +1 -0
- package/dist/cli/pm.resource.recreate.descriptor.d.ts +4 -0
- package/dist/cli/pm.resource.recreate.descriptor.d.ts.map +1 -0
- package/dist/cli/pm.resource.recreate.descriptor.js +29 -0
- package/dist/cli/pm.resource.recreate.descriptor.js.map +1 -0
- package/dist/cli/pm.resource.recreate.impl.d.ts +6 -0
- package/dist/cli/pm.resource.recreate.impl.d.ts.map +1 -0
- package/dist/cli/pm.resource.recreate.impl.js +123 -0
- package/dist/cli/pm.resource.recreate.impl.js.map +1 -0
- package/dist/cli/pm.resource.status.descriptor.d.ts +9 -0
- package/dist/cli/pm.resource.status.descriptor.d.ts.map +1 -0
- package/dist/cli/pm.resource.status.descriptor.js +31 -0
- package/dist/cli/pm.resource.status.descriptor.js.map +1 -0
- package/dist/cli/pm.resource.status.impl.d.ts +11 -0
- package/dist/cli/pm.resource.status.impl.d.ts.map +1 -0
- package/dist/cli/pm.resource.status.impl.js +230 -0
- package/dist/cli/pm.resource.status.impl.js.map +1 -0
- package/dist/cli/pm.restart.descriptor.d.ts +9 -0
- package/dist/cli/pm.restart.descriptor.d.ts.map +1 -0
- package/dist/cli/pm.restart.descriptor.js +40 -0
- package/dist/cli/pm.restart.descriptor.js.map +1 -0
- package/dist/cli/pm.restart.impl.d.ts +12 -0
- package/dist/cli/pm.restart.impl.d.ts.map +1 -0
- package/dist/cli/pm.restart.impl.js +109 -0
- package/dist/cli/pm.restart.impl.js.map +1 -0
- package/dist/cli/pm.show.descriptor.d.ts +9 -0
- package/dist/cli/pm.show.descriptor.d.ts.map +1 -0
- package/dist/cli/pm.show.descriptor.js +30 -0
- package/dist/cli/pm.show.descriptor.js.map +1 -0
- package/dist/cli/pm.show.impl.d.ts +25 -0
- package/dist/cli/pm.show.impl.d.ts.map +1 -0
- package/dist/cli/pm.show.impl.js +175 -0
- package/dist/cli/pm.show.impl.js.map +1 -0
- package/dist/cli/pm.start-all.descriptor.d.ts +9 -0
- package/dist/cli/pm.start-all.descriptor.d.ts.map +1 -0
- package/dist/cli/pm.start-all.descriptor.js +34 -0
- package/dist/cli/pm.start-all.descriptor.js.map +1 -0
- package/dist/cli/pm.start-all.impl.d.ts +12 -0
- package/dist/cli/pm.start-all.impl.d.ts.map +1 -0
- package/dist/cli/pm.start-all.impl.js +91 -0
- package/dist/cli/pm.start-all.impl.js.map +1 -0
- package/dist/cli/pm.start.descriptor.d.ts +9 -0
- package/dist/cli/pm.start.descriptor.d.ts.map +1 -0
- package/dist/cli/pm.start.descriptor.js +40 -0
- package/dist/cli/pm.start.descriptor.js.map +1 -0
- package/dist/cli/pm.start.impl.d.ts +19 -0
- package/dist/cli/pm.start.impl.d.ts.map +1 -0
- package/dist/cli/pm.start.impl.js +170 -0
- package/dist/cli/pm.start.impl.js.map +1 -0
- package/dist/cli/pm.status.descriptor.d.ts +10 -0
- package/dist/cli/pm.status.descriptor.d.ts.map +1 -0
- package/dist/cli/pm.status.descriptor.js +31 -0
- package/dist/cli/pm.status.descriptor.js.map +1 -0
- package/dist/cli/pm.status.impl.d.ts +96 -0
- package/dist/cli/pm.status.impl.d.ts.map +1 -0
- package/dist/cli/pm.status.impl.js +425 -0
- package/dist/cli/pm.status.impl.js.map +1 -0
- package/dist/cli/pm.stop-all.descriptor.d.ts +9 -0
- package/dist/cli/pm.stop-all.descriptor.d.ts.map +1 -0
- package/dist/cli/pm.stop-all.descriptor.js +41 -0
- package/dist/cli/pm.stop-all.descriptor.js.map +1 -0
- package/dist/cli/pm.stop-all.impl.d.ts +14 -0
- package/dist/cli/pm.stop-all.impl.d.ts.map +1 -0
- package/dist/cli/pm.stop-all.impl.js +138 -0
- package/dist/cli/pm.stop-all.impl.js.map +1 -0
- package/dist/cli/pm.stop.descriptor.d.ts +9 -0
- package/dist/cli/pm.stop.descriptor.d.ts.map +1 -0
- package/dist/cli/pm.stop.descriptor.js +40 -0
- package/dist/cli/pm.stop.descriptor.js.map +1 -0
- package/dist/cli/pm.stop.impl.d.ts +13 -0
- package/dist/cli/pm.stop.impl.d.ts.map +1 -0
- package/dist/cli/pm.stop.impl.js +120 -0
- package/dist/cli/pm.stop.impl.js.map +1 -0
- package/dist/cli/pm.unregister-all.descriptor.d.ts +9 -0
- package/dist/cli/pm.unregister-all.descriptor.d.ts.map +1 -0
- package/dist/cli/pm.unregister-all.descriptor.js +28 -0
- package/dist/cli/pm.unregister-all.descriptor.js.map +1 -0
- package/dist/cli/pm.unregister-all.impl.d.ts +11 -0
- package/dist/cli/pm.unregister-all.impl.d.ts.map +1 -0
- package/dist/cli/pm.unregister-all.impl.js +106 -0
- package/dist/cli/pm.unregister-all.impl.js.map +1 -0
- package/dist/cli/pm.unregister.descriptor.d.ts +9 -0
- package/dist/cli/pm.unregister.descriptor.d.ts.map +1 -0
- package/dist/cli/pm.unregister.descriptor.js +34 -0
- package/dist/cli/pm.unregister.descriptor.js.map +1 -0
- package/dist/cli/pm.unregister.impl.d.ts +11 -0
- package/dist/cli/pm.unregister.impl.d.ts.map +1 -0
- package/dist/cli/pm.unregister.impl.js +77 -0
- package/dist/cli/pm.unregister.impl.js.map +1 -0
- package/dist/cli/pm.validate.descriptor.d.ts +9 -0
- package/dist/cli/pm.validate.descriptor.d.ts.map +1 -0
- package/dist/cli/pm.validate.descriptor.js +24 -0
- package/dist/cli/pm.validate.descriptor.js.map +1 -0
- package/dist/cli/pm.validate.impl.d.ts +6 -0
- package/dist/cli/pm.validate.impl.d.ts.map +1 -0
- package/dist/cli/pm.validate.impl.js +235 -0
- package/dist/cli/pm.validate.impl.js.map +1 -0
- package/dist/cli/preset-execution-options.d.ts +8 -0
- package/dist/cli/preset-execution-options.d.ts.map +1 -0
- package/dist/cli/preset-execution-options.js +22 -0
- package/dist/cli/preset-execution-options.js.map +1 -0
- package/dist/cli/register-manifest.d.ts +23 -0
- package/dist/cli/register-manifest.d.ts.map +1 -0
- package/dist/cli/register-manifest.js +80 -0
- package/dist/cli/register-manifest.js.map +1 -0
- package/dist/cli/runtime.d.ts +3 -0
- package/dist/cli/runtime.d.ts.map +1 -0
- package/dist/cli/runtime.js +134 -0
- package/dist/cli/runtime.js.map +1 -0
- package/dist/cli/table-columns.d.ts +22 -0
- package/dist/cli/table-columns.d.ts.map +1 -0
- package/dist/cli/table-columns.js +61 -0
- package/dist/cli/table-columns.js.map +1 -0
- package/dist/client-replies.d.ts +1188 -0
- package/dist/client-replies.d.ts.map +1 -0
- package/dist/client-replies.js +145 -0
- package/dist/client-replies.js.map +1 -0
- package/dist/client.d.ts +345 -0
- package/dist/client.d.ts.map +1 -0
- package/dist/client.js +1005 -0
- package/dist/client.js.map +1 -0
- package/dist/config/pm.config.config.descriptor.d.ts +10 -0
- package/dist/config/pm.config.config.descriptor.d.ts.map +1 -0
- package/dist/config/pm.config.config.descriptor.js +37 -0
- package/dist/config/pm.config.config.descriptor.js.map +1 -0
- package/dist/context.d.ts +121 -0
- package/dist/context.d.ts.map +1 -0
- package/dist/context.js +6 -0
- package/dist/context.js.map +1 -0
- package/dist/daemon/command-handler.d.ts +74 -0
- package/dist/daemon/command-handler.d.ts.map +1 -0
- package/dist/daemon/command-handler.js +220 -0
- package/dist/daemon/command-handler.js.map +1 -0
- package/dist/daemon/command-ids.d.ts +10 -0
- package/dist/daemon/command-ids.d.ts.map +1 -0
- package/dist/daemon/command-ids.js +51 -0
- package/dist/daemon/command-ids.js.map +1 -0
- package/dist/daemon/command-implementations.d.ts +30 -0
- package/dist/daemon/command-implementations.d.ts.map +1 -0
- package/dist/daemon/command-implementations.js +340 -0
- package/dist/daemon/command-implementations.js.map +1 -0
- package/dist/daemon/command-payload.d.ts +803 -0
- package/dist/daemon/command-payload.d.ts.map +1 -0
- package/dist/daemon/command-payload.js +128 -0
- package/dist/daemon/command-payload.js.map +1 -0
- package/dist/daemon/commands.plugin.d.ts +6 -0
- package/dist/daemon/commands.plugin.d.ts.map +1 -0
- package/dist/daemon/commands.plugin.js +22 -0
- package/dist/daemon/commands.plugin.js.map +1 -0
- package/dist/daemon/config-watcher.d.ts +125 -0
- package/dist/daemon/config-watcher.d.ts.map +1 -0
- package/dist/daemon/config-watcher.js +541 -0
- package/dist/daemon/config-watcher.js.map +1 -0
- package/dist/daemon/daemon-module-context.d.ts +16 -0
- package/dist/daemon/daemon-module-context.d.ts.map +1 -0
- package/dist/daemon/daemon-module-context.js +25 -0
- package/dist/daemon/daemon-module-context.js.map +1 -0
- package/dist/daemon/declared-commands.d.ts +39 -0
- package/dist/daemon/declared-commands.d.ts.map +1 -0
- package/dist/daemon/declared-commands.js +200 -0
- package/dist/daemon/declared-commands.js.map +1 -0
- package/dist/daemon/executable-freshness-reconciler.d.ts +99 -0
- package/dist/daemon/executable-freshness-reconciler.d.ts.map +1 -0
- package/dist/daemon/executable-freshness-reconciler.js +396 -0
- package/dist/daemon/executable-freshness-reconciler.js.map +1 -0
- package/dist/daemon/fleet-attach-state.d.ts +22 -0
- package/dist/daemon/fleet-attach-state.d.ts.map +1 -0
- package/dist/daemon/fleet-attach-state.js +39 -0
- package/dist/daemon/fleet-attach-state.js.map +1 -0
- package/dist/daemon/health-monitor.d.ts +105 -0
- package/dist/daemon/health-monitor.d.ts.map +1 -0
- package/dist/daemon/health-monitor.js +453 -0
- package/dist/daemon/health-monitor.js.map +1 -0
- package/dist/daemon/liveness-checker.d.ts +49 -0
- package/dist/daemon/liveness-checker.d.ts.map +1 -0
- package/dist/daemon/liveness-checker.js +330 -0
- package/dist/daemon/liveness-checker.js.map +1 -0
- package/dist/daemon/orphan-scanner.d.ts +114 -0
- package/dist/daemon/orphan-scanner.d.ts.map +1 -0
- package/dist/daemon/orphan-scanner.js +684 -0
- package/dist/daemon/orphan-scanner.js.map +1 -0
- package/dist/daemon/resource-health-monitor.d.ts +65 -0
- package/dist/daemon/resource-health-monitor.d.ts.map +1 -0
- package/dist/daemon/resource-health-monitor.js +247 -0
- package/dist/daemon/resource-health-monitor.js.map +1 -0
- package/dist/daemon/role.context.impl.d.ts +13 -0
- package/dist/daemon/role.context.impl.d.ts.map +1 -0
- package/dist/daemon/role.context.impl.js +7 -0
- package/dist/daemon/role.context.impl.js.map +1 -0
- package/dist/daemon/role.d.ts +56 -0
- package/dist/daemon/role.d.ts.map +1 -0
- package/dist/daemon/role.js +18 -0
- package/dist/daemon/role.js.map +1 -0
- package/dist/daemon/rpc-result.d.ts +9 -0
- package/dist/daemon/rpc-result.d.ts.map +1 -0
- package/dist/daemon/rpc-result.js +28 -0
- package/dist/daemon/rpc-result.js.map +1 -0
- package/dist/daemon/stray-daemons.d.ts +52 -0
- package/dist/daemon/stray-daemons.d.ts.map +1 -0
- package/dist/daemon/stray-daemons.js +101 -0
- package/dist/daemon/stray-daemons.js.map +1 -0
- package/dist/daemon/supervised-commands.d.ts +3 -0
- package/dist/daemon/supervised-commands.d.ts.map +1 -0
- package/dist/daemon/supervised-commands.js +51 -0
- package/dist/daemon/supervised-commands.js.map +1 -0
- package/dist/daemon.d.ts +329 -0
- package/dist/daemon.d.ts.map +1 -0
- package/dist/daemon.js +1654 -0
- package/dist/daemon.js.map +1 -0
- package/dist/definitions.d.ts +2 -0
- package/dist/definitions.d.ts.map +1 -0
- package/dist/definitions.js +2 -0
- package/dist/definitions.js.map +1 -0
- package/dist/dev/command.d.ts +39 -0
- package/dist/dev/command.d.ts.map +1 -0
- package/dist/dev/command.js +79 -0
- package/dist/dev/command.js.map +1 -0
- package/dist/dev/defaults.d.ts +34 -0
- package/dist/dev/defaults.d.ts.map +1 -0
- package/dist/dev/defaults.js +58 -0
- package/dist/dev/defaults.js.map +1 -0
- package/dist/dev/env.d.ts +31 -0
- package/dist/dev/env.d.ts.map +1 -0
- package/dist/dev/env.js +56 -0
- package/dist/dev/env.js.map +1 -0
- package/dist/dev/index.d.ts +26 -0
- package/dist/dev/index.d.ts.map +1 -0
- package/dist/dev/index.js +28 -0
- package/dist/dev/index.js.map +1 -0
- package/dist/dev/sveltekit.d.ts +41 -0
- package/dist/dev/sveltekit.d.ts.map +1 -0
- package/dist/dev/sveltekit.js +93 -0
- package/dist/dev/sveltekit.js.map +1 -0
- package/dist/dev/workspace-shape.d.ts +64 -0
- package/dist/dev/workspace-shape.d.ts.map +1 -0
- package/dist/dev/workspace-shape.js +19 -0
- package/dist/dev/workspace-shape.js.map +1 -0
- package/dist/docs/pm.daemon.docs.descriptor.d.ts +4 -0
- package/dist/docs/pm.daemon.docs.descriptor.d.ts.map +1 -0
- package/dist/docs/pm.daemon.docs.descriptor.js +48 -0
- package/dist/docs/pm.daemon.docs.descriptor.js.map +1 -0
- package/dist/docs/pm.docs.descriptor.d.ts +4 -0
- package/dist/docs/pm.docs.descriptor.d.ts.map +1 -0
- package/dist/docs/pm.docs.descriptor.js +45 -0
- package/dist/docs/pm.docs.descriptor.js.map +1 -0
- package/dist/docs/pm.preset.docs.descriptor.d.ts +4 -0
- package/dist/docs/pm.preset.docs.descriptor.d.ts.map +1 -0
- package/dist/docs/pm.preset.docs.descriptor.js +37 -0
- package/dist/docs/pm.preset.docs.descriptor.js.map +1 -0
- package/dist/docs/pm.queues.docs.descriptor.d.ts +4 -0
- package/dist/docs/pm.queues.docs.descriptor.d.ts.map +1 -0
- package/dist/docs/pm.queues.docs.descriptor.js +157 -0
- package/dist/docs/pm.queues.docs.descriptor.js.map +1 -0
- package/dist/docs/pm.resource.docs.descriptor.d.ts +4 -0
- package/dist/docs/pm.resource.docs.descriptor.d.ts.map +1 -0
- package/dist/docs/pm.resource.docs.descriptor.js +38 -0
- package/dist/docs/pm.resource.docs.descriptor.js.map +1 -0
- package/dist/docs/pm.tasks.docs.descriptor.d.ts +4 -0
- package/dist/docs/pm.tasks.docs.descriptor.d.ts.map +1 -0
- package/dist/docs/pm.tasks.docs.descriptor.js +242 -0
- package/dist/docs/pm.tasks.docs.descriptor.js.map +1 -0
- package/dist/docs/pm.workers.docs.descriptor.d.ts +4 -0
- package/dist/docs/pm.workers.docs.descriptor.d.ts.map +1 -0
- package/dist/docs/pm.workers.docs.descriptor.js +427 -0
- package/dist/docs/pm.workers.docs.descriptor.js.map +1 -0
- package/dist/errors.d.ts +262 -0
- package/dist/errors.d.ts.map +1 -0
- package/dist/errors.js +479 -0
- package/dist/errors.js.map +1 -0
- package/dist/graph.d.ts +82 -0
- package/dist/graph.d.ts.map +1 -0
- package/dist/graph.js +247 -0
- package/dist/graph.js.map +1 -0
- package/dist/helpers/failure.d.ts +10 -0
- package/dist/helpers/failure.d.ts.map +1 -0
- package/dist/helpers/failure.js +10 -0
- package/dist/helpers/failure.js.map +1 -0
- package/dist/helpers/launch-custody.d.ts +16 -0
- package/dist/helpers/launch-custody.d.ts.map +1 -0
- package/dist/helpers/launch-custody.js +117 -0
- package/dist/helpers/launch-custody.js.map +1 -0
- package/dist/helpers/launch-identity.d.ts +20 -0
- package/dist/helpers/launch-identity.d.ts.map +1 -0
- package/dist/helpers/launch-identity.js +70 -0
- package/dist/helpers/launch-identity.js.map +1 -0
- package/dist/helpers/managed-http-origin.d.ts +4 -0
- package/dist/helpers/managed-http-origin.d.ts.map +1 -0
- package/dist/helpers/managed-http-origin.js +9 -0
- package/dist/helpers/managed-http-origin.js.map +1 -0
- package/dist/helpers/managed-process-admission.d.ts +55 -0
- package/dist/helpers/managed-process-admission.d.ts.map +1 -0
- package/dist/helpers/managed-process-admission.js +102 -0
- package/dist/helpers/managed-process-admission.js.map +1 -0
- package/dist/helpers/managed-process-id.d.ts +13 -0
- package/dist/helpers/managed-process-id.d.ts.map +1 -0
- package/dist/helpers/managed-process-id.js +16 -0
- package/dist/helpers/managed-process-id.js.map +1 -0
- package/dist/helpers/node-path.d.ts +16 -0
- package/dist/helpers/node-path.d.ts.map +1 -0
- package/dist/helpers/node-path.js +67 -0
- package/dist/helpers/node-path.js.map +1 -0
- package/dist/helpers/output-redaction.d.ts +36 -0
- package/dist/helpers/output-redaction.d.ts.map +1 -0
- package/dist/helpers/output-redaction.js +120 -0
- package/dist/helpers/output-redaction.js.map +1 -0
- package/dist/helpers/process-credentials.d.ts +62 -0
- package/dist/helpers/process-credentials.d.ts.map +1 -0
- package/dist/helpers/process-credentials.js +107 -0
- package/dist/helpers/process-credentials.js.map +1 -0
- package/dist/helpers/process-env.d.ts +72 -0
- package/dist/helpers/process-env.d.ts.map +1 -0
- package/dist/helpers/process-env.js +265 -0
- package/dist/helpers/process-env.js.map +1 -0
- package/dist/helpers/process-watch.d.ts +7 -0
- package/dist/helpers/process-watch.d.ts.map +1 -0
- package/dist/helpers/process-watch.js +27 -0
- package/dist/helpers/process-watch.js.map +1 -0
- package/dist/helpers/rlimits.d.ts +10 -0
- package/dist/helpers/rlimits.d.ts.map +1 -0
- package/dist/helpers/rlimits.js +14 -0
- package/dist/helpers/rlimits.js.map +1 -0
- package/dist/helpers/runtime-files.d.ts +42 -0
- package/dist/helpers/runtime-files.d.ts.map +1 -0
- package/dist/helpers/runtime-files.js +155 -0
- package/dist/helpers/runtime-files.js.map +1 -0
- package/dist/helpers/worker-routing.d.ts +35 -0
- package/dist/helpers/worker-routing.d.ts.map +1 -0
- package/dist/helpers/worker-routing.js +70 -0
- package/dist/helpers/worker-routing.js.map +1 -0
- package/dist/index.d.ts +10 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +11 -0
- package/dist/index.js.map +1 -0
- package/dist/interface.d.ts +150 -0
- package/dist/interface.d.ts.map +1 -0
- package/dist/interface.js +6 -0
- package/dist/interface.js.map +1 -0
- package/dist/kinds/daemon-module.kind.d.ts +103 -0
- package/dist/kinds/daemon-module.kind.d.ts.map +1 -0
- package/dist/kinds/daemon-module.kind.js +38 -0
- package/dist/kinds/daemon-module.kind.js.map +1 -0
- package/dist/kinds/launch-preparation.kind.d.ts +24 -0
- package/dist/kinds/launch-preparation.kind.d.ts.map +1 -0
- package/dist/kinds/launch-preparation.kind.js +7 -0
- package/dist/kinds/launch-preparation.kind.js.map +1 -0
- package/dist/kinds/liveness-profile.kind.d.ts +33 -0
- package/dist/kinds/liveness-profile.kind.d.ts.map +1 -0
- package/dist/kinds/liveness-profile.kind.js +27 -0
- package/dist/kinds/liveness-profile.kind.js.map +1 -0
- package/dist/kinds/preset.kind.d.ts +59 -0
- package/dist/kinds/preset.kind.d.ts.map +1 -0
- package/dist/kinds/preset.kind.js +35 -0
- package/dist/kinds/preset.kind.js.map +1 -0
- package/dist/kinds/process-source.kind.d.ts +6 -0
- package/dist/kinds/process-source.kind.d.ts.map +1 -0
- package/dist/kinds/process-source.kind.js +24 -0
- package/dist/kinds/process-source.kind.js.map +1 -0
- package/dist/kinds/process.kind.d.ts +237 -0
- package/dist/kinds/process.kind.d.ts.map +1 -0
- package/dist/kinds/process.kind.js +36 -0
- package/dist/kinds/process.kind.js.map +1 -0
- package/dist/kinds/resource-provider.kind.d.ts +41 -0
- package/dist/kinds/resource-provider.kind.d.ts.map +1 -0
- package/dist/kinds/resource-provider.kind.js +56 -0
- package/dist/kinds/resource-provider.kind.js.map +1 -0
- package/dist/kinds/resource.kind.d.ts +73 -0
- package/dist/kinds/resource.kind.d.ts.map +1 -0
- package/dist/kinds/resource.kind.js +35 -0
- package/dist/kinds/resource.kind.js.map +1 -0
- package/dist/kinds/runtime-daemon-endpoint.d.ts +34 -0
- package/dist/kinds/runtime-daemon-endpoint.d.ts.map +1 -0
- package/dist/kinds/runtime-daemon-endpoint.js +83 -0
- package/dist/kinds/runtime-daemon-endpoint.js.map +1 -0
- package/dist/kinds/runtime-daemon-endpoint.kind.d.ts +144 -0
- package/dist/kinds/runtime-daemon-endpoint.kind.d.ts.map +1 -0
- package/dist/kinds/runtime-daemon-endpoint.kind.js +104 -0
- package/dist/kinds/runtime-daemon-endpoint.kind.js.map +1 -0
- package/dist/launch-preparation.d.ts +12 -0
- package/dist/launch-preparation.d.ts.map +1 -0
- package/dist/launch-preparation.js +42 -0
- package/dist/launch-preparation.js.map +1 -0
- package/dist/logging/pm-daemon.logger.descriptor.d.ts +7 -0
- package/dist/logging/pm-daemon.logger.descriptor.d.ts.map +1 -0
- package/dist/logging/pm-daemon.logger.descriptor.js +16 -0
- package/dist/logging/pm-daemon.logger.descriptor.js.map +1 -0
- package/dist/logging/pm-daemon.output.descriptor.d.ts +9 -0
- package/dist/logging/pm-daemon.output.descriptor.d.ts.map +1 -0
- package/dist/logging/pm-daemon.output.descriptor.js +22 -0
- package/dist/logging/pm-daemon.output.descriptor.js.map +1 -0
- package/dist/manager.d.ts +206 -0
- package/dist/manager.d.ts.map +1 -0
- package/dist/manager.js +682 -0
- package/dist/manager.js.map +1 -0
- package/dist/managers/dependency-resolver.d.ts +85 -0
- package/dist/managers/dependency-resolver.d.ts.map +1 -0
- package/dist/managers/dependency-resolver.js +237 -0
- package/dist/managers/dependency-resolver.js.map +1 -0
- package/dist/managers/preset-executor.d.ts +138 -0
- package/dist/managers/preset-executor.d.ts.map +1 -0
- package/dist/managers/preset-executor.js +763 -0
- package/dist/managers/preset-executor.js.map +1 -0
- package/dist/managers/resource-manager.d.ts +142 -0
- package/dist/managers/resource-manager.d.ts.map +1 -0
- package/dist/managers/resource-manager.js +767 -0
- package/dist/managers/resource-manager.js.map +1 -0
- package/dist/migrations.generated.d.ts +14 -0
- package/dist/migrations.generated.d.ts.map +1 -0
- package/dist/migrations.generated.js +27 -0
- package/dist/migrations.generated.js.map +1 -0
- package/dist/pm.assets.runtime.d.ts +151 -0
- package/dist/pm.assets.runtime.d.ts.map +1 -0
- package/dist/pm.assets.runtime.js +30 -0
- package/dist/pm.assets.runtime.js.map +1 -0
- package/dist/pm.client.descriptor.d.ts +4 -0
- package/dist/pm.client.descriptor.d.ts.map +1 -0
- package/dist/pm.client.descriptor.js +8 -0
- package/dist/pm.client.descriptor.js.map +1 -0
- package/dist/pm.client.impl.consumer.d.ts +9 -0
- package/dist/pm.client.impl.consumer.d.ts.map +1 -0
- package/dist/pm.client.impl.consumer.js +13 -0
- package/dist/pm.client.impl.consumer.js.map +1 -0
- package/dist/pm.cloud.plugin.d.ts +29 -0
- package/dist/pm.cloud.plugin.d.ts.map +1 -0
- package/dist/pm.cloud.plugin.js +57 -0
- package/dist/pm.cloud.plugin.js.map +1 -0
- package/dist/pm.consumer.plugin.d.ts +3 -0
- package/dist/pm.consumer.plugin.d.ts.map +1 -0
- package/dist/pm.consumer.plugin.js +70 -0
- package/dist/pm.consumer.plugin.js.map +1 -0
- package/dist/pm.context.descriptor.d.ts +35 -0
- package/dist/pm.context.descriptor.d.ts.map +1 -0
- package/dist/pm.context.descriptor.js +12 -0
- package/dist/pm.context.descriptor.js.map +1 -0
- package/dist/pm.context.impl.consumer.d.ts +8 -0
- package/dist/pm.context.impl.consumer.d.ts.map +1 -0
- package/dist/pm.context.impl.consumer.js +6 -0
- package/dist/pm.context.impl.consumer.js.map +1 -0
- package/dist/pm.plugin.d.ts +6 -0
- package/dist/pm.plugin.d.ts.map +1 -0
- package/dist/pm.plugin.js +6 -0
- package/dist/pm.plugin.js.map +1 -0
- package/dist/presets/index.d.ts +5 -0
- package/dist/presets/index.d.ts.map +1 -0
- package/dist/presets/index.js +5 -0
- package/dist/presets/index.js.map +1 -0
- package/dist/presets/preset/index.d.ts +2 -0
- package/dist/presets/preset/index.d.ts.map +1 -0
- package/dist/presets/preset/index.js +2 -0
- package/dist/presets/preset/index.js.map +1 -0
- package/dist/presets/preset/web-dev.d.ts +39 -0
- package/dist/presets/preset/web-dev.d.ts.map +1 -0
- package/dist/presets/preset/web-dev.js +69 -0
- package/dist/presets/preset/web-dev.js.map +1 -0
- package/dist/presets/process/index.d.ts +3 -0
- package/dist/presets/process/index.d.ts.map +1 -0
- package/dist/presets/process/index.js +3 -0
- package/dist/presets/process/index.js.map +1 -0
- package/dist/presets/process/sveltekit.d.ts +125 -0
- package/dist/presets/process/sveltekit.d.ts.map +1 -0
- package/dist/presets/process/sveltekit.js +52 -0
- package/dist/presets/process/sveltekit.js.map +1 -0
- package/dist/presets/process/web.d.ts +34 -0
- package/dist/presets/process/web.d.ts.map +1 -0
- package/dist/presets/process/web.js +52 -0
- package/dist/presets/process/web.js.map +1 -0
- package/dist/presets/resource/database.d.ts +39 -0
- package/dist/presets/resource/database.d.ts.map +1 -0
- package/dist/presets/resource/database.js +60 -0
- package/dist/presets/resource/database.js.map +1 -0
- package/dist/presets/resource/index.d.ts +2 -0
- package/dist/presets/resource/index.d.ts.map +1 -0
- package/dist/presets/resource/index.js +2 -0
- package/dist/presets/resource/index.js.map +1 -0
- package/dist/presets/types.d.ts +101 -0
- package/dist/presets/types.d.ts.map +1 -0
- package/dist/presets/types.js +53 -0
- package/dist/presets/types.js.map +1 -0
- package/dist/register-migrations.impl.consumer.d.ts +8 -0
- package/dist/register-migrations.impl.consumer.d.ts.map +1 -0
- package/dist/register-migrations.impl.consumer.js +145 -0
- package/dist/register-migrations.impl.consumer.js.map +1 -0
- package/dist/resources/index.d.ts +7 -0
- package/dist/resources/index.d.ts.map +1 -0
- package/dist/resources/index.js +7 -0
- package/dist/resources/index.js.map +1 -0
- package/dist/resources/provider.d.ts +216 -0
- package/dist/resources/provider.d.ts.map +1 -0
- package/dist/resources/provider.js +54 -0
- package/dist/resources/provider.js.map +1 -0
- package/dist/resources/providers/builtin.assets.d.ts +8 -0
- package/dist/resources/providers/builtin.assets.d.ts.map +1 -0
- package/dist/resources/providers/builtin.assets.js +26 -0
- package/dist/resources/providers/builtin.assets.js.map +1 -0
- package/dist/resources/providers/index.d.ts +14 -0
- package/dist/resources/providers/index.d.ts.map +1 -0
- package/dist/resources/providers/index.js +14 -0
- package/dist/resources/providers/index.js.map +1 -0
- package/dist/resources/providers/local-mkcert.d.ts +31 -0
- package/dist/resources/providers/local-mkcert.d.ts.map +1 -0
- package/dist/resources/providers/local-mkcert.js +169 -0
- package/dist/resources/providers/local-mkcert.js.map +1 -0
- package/dist/resources/providers/shell-setup.d.ts +17 -0
- package/dist/resources/providers/shell-setup.d.ts.map +1 -0
- package/dist/resources/providers/shell-setup.js +41 -0
- package/dist/resources/providers/shell-setup.js.map +1 -0
- package/dist/resources/providers/tool-env.d.ts +63 -0
- package/dist/resources/providers/tool-env.d.ts.map +1 -0
- package/dist/resources/providers/tool-env.js +99 -0
- package/dist/resources/providers/tool-env.js.map +1 -0
- package/dist/resources/resource-state-summary.d.ts +3 -0
- package/dist/resources/resource-state-summary.d.ts.map +1 -0
- package/dist/resources/resource-state-summary.js +82 -0
- package/dist/resources/resource-state-summary.js.map +1 -0
- package/dist/resources/status-options.d.ts +4 -0
- package/dist/resources/status-options.d.ts.map +1 -0
- package/dist/resources/status-options.js +6 -0
- package/dist/resources/status-options.js.map +1 -0
- package/dist/runnable/executor.d.ts +11 -0
- package/dist/runnable/executor.d.ts.map +1 -0
- package/dist/runnable/executor.js +41 -0
- package/dist/runnable/executor.js.map +1 -0
- package/dist/runnable/plugin.d.ts +3 -0
- package/dist/runnable/plugin.d.ts.map +1 -0
- package/dist/runnable/plugin.js +12 -0
- package/dist/runnable/plugin.js.map +1 -0
- package/dist/runnable/schemas.d.ts +28 -0
- package/dist/runnable/schemas.d.ts.map +1 -0
- package/dist/runnable/schemas.js +10 -0
- package/dist/runnable/schemas.js.map +1 -0
- package/dist/runtime-daemon-supervisor.descriptor.d.ts +16 -0
- package/dist/runtime-daemon-supervisor.descriptor.d.ts.map +1 -0
- package/dist/runtime-daemon-supervisor.descriptor.js +17 -0
- package/dist/runtime-daemon-supervisor.descriptor.js.map +1 -0
- package/dist/runtime-daemon-supervisor.impl.consumer.d.ts +22 -0
- package/dist/runtime-daemon-supervisor.impl.consumer.d.ts.map +1 -0
- package/dist/runtime-daemon-supervisor.impl.consumer.js +66 -0
- package/dist/runtime-daemon-supervisor.impl.consumer.js.map +1 -0
- package/dist/schemas/action-error.d.ts +8 -0
- package/dist/schemas/action-error.d.ts.map +1 -0
- package/dist/schemas/action-error.js +8 -0
- package/dist/schemas/action-error.js.map +1 -0
- package/dist/schemas/admission.d.ts +36 -0
- package/dist/schemas/admission.d.ts.map +1 -0
- package/dist/schemas/admission.js +22 -0
- package/dist/schemas/admission.js.map +1 -0
- package/dist/schemas/builder.d.ts +402 -0
- package/dist/schemas/builder.d.ts.map +1 -0
- package/dist/schemas/builder.js +410 -0
- package/dist/schemas/builder.js.map +1 -0
- package/dist/schemas/client.d.ts +18 -0
- package/dist/schemas/client.d.ts.map +1 -0
- package/dist/schemas/client.js +2 -0
- package/dist/schemas/client.js.map +1 -0
- package/dist/schemas/commands.d.ts +315 -0
- package/dist/schemas/commands.d.ts.map +1 -0
- package/dist/schemas/commands.js +268 -0
- package/dist/schemas/commands.js.map +1 -0
- package/dist/schemas/common.d.ts +35 -0
- package/dist/schemas/common.d.ts.map +1 -0
- package/dist/schemas/common.js +43 -0
- package/dist/schemas/common.js.map +1 -0
- package/dist/schemas/daemon-command.d.ts +61 -0
- package/dist/schemas/daemon-command.d.ts.map +1 -0
- package/dist/schemas/daemon-command.js +2 -0
- package/dist/schemas/daemon-command.js.map +1 -0
- package/dist/schemas/daemon-host.d.ts +70 -0
- package/dist/schemas/daemon-host.d.ts.map +1 -0
- package/dist/schemas/daemon-host.js +2 -0
- package/dist/schemas/daemon-host.js.map +1 -0
- package/dist/schemas/daemon-launch.d.ts +43 -0
- package/dist/schemas/daemon-launch.d.ts.map +1 -0
- package/dist/schemas/daemon-launch.js +3 -0
- package/dist/schemas/daemon-launch.js.map +1 -0
- package/dist/schemas/daemon.d.ts +98 -0
- package/dist/schemas/daemon.d.ts.map +1 -0
- package/dist/schemas/daemon.js +88 -0
- package/dist/schemas/daemon.js.map +1 -0
- package/dist/schemas/dev.d.ts +169 -0
- package/dist/schemas/dev.d.ts.map +1 -0
- package/dist/schemas/dev.js +8 -0
- package/dist/schemas/dev.js.map +1 -0
- package/dist/schemas/executable-freshness.d.ts +88 -0
- package/dist/schemas/executable-freshness.d.ts.map +1 -0
- package/dist/schemas/executable-freshness.js +2 -0
- package/dist/schemas/executable-freshness.js.map +1 -0
- package/dist/schemas/forward-config.d.ts +11 -0
- package/dist/schemas/forward-config.d.ts.map +1 -0
- package/dist/schemas/forward-config.js +15 -0
- package/dist/schemas/forward-config.js.map +1 -0
- package/dist/schemas/graph.d.ts +444 -0
- package/dist/schemas/graph.d.ts.map +1 -0
- package/dist/schemas/graph.js +59 -0
- package/dist/schemas/graph.js.map +1 -0
- package/dist/schemas/health.d.ts +43 -0
- package/dist/schemas/health.d.ts.map +1 -0
- package/dist/schemas/health.js +6 -0
- package/dist/schemas/health.js.map +1 -0
- package/dist/schemas/launch-preparation.d.ts +106 -0
- package/dist/schemas/launch-preparation.d.ts.map +1 -0
- package/dist/schemas/launch-preparation.js +50 -0
- package/dist/schemas/launch-preparation.js.map +1 -0
- package/dist/schemas/liveness-profile.d.ts +108 -0
- package/dist/schemas/liveness-profile.d.ts.map +1 -0
- package/dist/schemas/liveness-profile.js +33 -0
- package/dist/schemas/liveness-profile.js.map +1 -0
- package/dist/schemas/liveness.d.ts +37 -0
- package/dist/schemas/liveness.d.ts.map +1 -0
- package/dist/schemas/liveness.js +41 -0
- package/dist/schemas/liveness.js.map +1 -0
- package/dist/schemas/manager.d.ts +46 -0
- package/dist/schemas/manager.d.ts.map +1 -0
- package/dist/schemas/manager.js +5 -0
- package/dist/schemas/manager.js.map +1 -0
- package/dist/schemas/port-forward.d.ts +47 -0
- package/dist/schemas/port-forward.d.ts.map +1 -0
- package/dist/schemas/port-forward.js +27 -0
- package/dist/schemas/port-forward.js.map +1 -0
- package/dist/schemas/process-source.d.ts +354 -0
- package/dist/schemas/process-source.d.ts.map +1 -0
- package/dist/schemas/process-source.js +19 -0
- package/dist/schemas/process-source.js.map +1 -0
- package/dist/schemas/process-tree.d.ts +12 -0
- package/dist/schemas/process-tree.d.ts.map +1 -0
- package/dist/schemas/process-tree.js +2 -0
- package/dist/schemas/process-tree.js.map +1 -0
- package/dist/schemas/process.d.ts +944 -0
- package/dist/schemas/process.d.ts.map +1 -0
- package/dist/schemas/process.js +429 -0
- package/dist/schemas/process.js.map +1 -0
- package/dist/schemas/resource.d.ts +223 -0
- package/dist/schemas/resource.d.ts.map +1 -0
- package/dist/schemas/resource.js +92 -0
- package/dist/schemas/resource.js.map +1 -0
- package/dist/schemas/store.d.ts +97 -0
- package/dist/schemas/store.d.ts.map +1 -0
- package/dist/schemas/store.js +2 -0
- package/dist/schemas/store.js.map +1 -0
- package/dist/schemas/task-supervision.d.ts +16 -0
- package/dist/schemas/task-supervision.d.ts.map +1 -0
- package/dist/schemas/task-supervision.js +10 -0
- package/dist/schemas/task-supervision.js.map +1 -0
- package/dist/schemas/tui-state.d.ts +777 -0
- package/dist/schemas/tui-state.d.ts.map +1 -0
- package/dist/schemas/tui-state.js +119 -0
- package/dist/schemas/tui-state.js.map +1 -0
- package/dist/schemas/worker-manager.d.ts +19 -0
- package/dist/schemas/worker-manager.d.ts.map +1 -0
- package/dist/schemas/worker-manager.js +2 -0
- package/dist/schemas/worker-manager.js.map +1 -0
- package/dist/services/cleanup.d.ts +78 -0
- package/dist/services/cleanup.d.ts.map +1 -0
- package/dist/services/cleanup.js +329 -0
- package/dist/services/cleanup.js.map +1 -0
- package/dist/services/health.d.ts +81 -0
- package/dist/services/health.d.ts.map +1 -0
- package/dist/services/health.js +435 -0
- package/dist/services/health.js.map +1 -0
- package/dist/services/index.d.ts +11 -0
- package/dist/services/index.d.ts.map +1 -0
- package/dist/services/index.js +10 -0
- package/dist/services/index.js.map +1 -0
- package/dist/services/lifecycle.d.ts +238 -0
- package/dist/services/lifecycle.d.ts.map +1 -0
- package/dist/services/lifecycle.js +1391 -0
- package/dist/services/lifecycle.js.map +1 -0
- package/dist/services/liveness-state.d.ts +95 -0
- package/dist/services/liveness-state.d.ts.map +1 -0
- package/dist/services/liveness-state.js +239 -0
- package/dist/services/liveness-state.js.map +1 -0
- package/dist/services/orphans.d.ts +72 -0
- package/dist/services/orphans.d.ts.map +1 -0
- package/dist/services/orphans.js +185 -0
- package/dist/services/orphans.js.map +1 -0
- package/dist/services/process-command.d.ts +25 -0
- package/dist/services/process-command.d.ts.map +1 -0
- package/dist/services/process-command.js +36 -0
- package/dist/services/process-command.js.map +1 -0
- package/dist/services/process-log-archive.d.ts +62 -0
- package/dist/services/process-log-archive.d.ts.map +1 -0
- package/dist/services/process-log-archive.js +150 -0
- package/dist/services/process-log-archive.js.map +1 -0
- package/dist/services/run-log-frames.d.ts +26 -0
- package/dist/services/run-log-frames.d.ts.map +1 -0
- package/dist/services/run-log-frames.js +45 -0
- package/dist/services/run-log-frames.js.map +1 -0
- package/dist/services/startup-warmup.d.ts +23 -0
- package/dist/services/startup-warmup.d.ts.map +1 -0
- package/dist/services/startup-warmup.js +21 -0
- package/dist/services/startup-warmup.js.map +1 -0
- package/dist/services/state-wait.d.ts +28 -0
- package/dist/services/state-wait.d.ts.map +1 -0
- package/dist/services/state-wait.js +57 -0
- package/dist/services/state-wait.js.map +1 -0
- package/dist/services/supervision-policy.d.ts +40 -0
- package/dist/services/supervision-policy.d.ts.map +1 -0
- package/dist/services/supervision-policy.js +48 -0
- package/dist/services/supervision-policy.js.map +1 -0
- package/dist/services/task-supervision.d.ts +14 -0
- package/dist/services/task-supervision.d.ts.map +1 -0
- package/dist/services/task-supervision.js +112 -0
- package/dist/services/task-supervision.js.map +1 -0
- package/dist/services/types/index.d.ts +74 -0
- package/dist/services/types/index.d.ts.map +1 -0
- package/dist/services/types/index.js +11 -0
- package/dist/services/types/index.js.map +1 -0
- package/dist/services/workers.d.ts +75 -0
- package/dist/services/workers.d.ts.map +1 -0
- package/dist/services/workers.js +212 -0
- package/dist/services/workers.js.map +1 -0
- package/dist/storage/workspaces.descriptor.d.ts +12 -0
- package/dist/storage/workspaces.descriptor.d.ts.map +1 -0
- package/dist/storage/workspaces.descriptor.js +33 -0
- package/dist/storage/workspaces.descriptor.js.map +1 -0
- package/dist/store/process-admission.d.ts +11 -0
- package/dist/store/process-admission.d.ts.map +1 -0
- package/dist/store/process-admission.js +46 -0
- package/dist/store/process-admission.js.map +1 -0
- package/dist/store/process-config.impl.consumer.d.ts +22 -0
- package/dist/store/process-config.impl.consumer.d.ts.map +1 -0
- package/dist/store/process-config.impl.consumer.js +84 -0
- package/dist/store/process-config.impl.consumer.js.map +1 -0
- package/dist/store/process-state.impl.consumer.d.ts +25 -0
- package/dist/store/process-state.impl.consumer.d.ts.map +1 -0
- package/dist/store/process-state.impl.consumer.js +140 -0
- package/dist/store/process-state.impl.consumer.js.map +1 -0
- package/dist/store/resource-state.impl.consumer.d.ts +9 -0
- package/dist/store/resource-state.impl.consumer.d.ts.map +1 -0
- package/dist/store/resource-state.impl.consumer.js +48 -0
- package/dist/store/resource-state.impl.consumer.js.map +1 -0
- package/dist/store.impl.consumer.d.ts +121 -0
- package/dist/store.impl.consumer.d.ts.map +1 -0
- package/dist/store.impl.consumer.js +436 -0
- package/dist/store.impl.consumer.js.map +1 -0
- package/dist/surface.d.ts +93 -0
- package/dist/surface.d.ts.map +1 -0
- package/dist/surface.js +153 -0
- package/dist/surface.js.map +1 -0
- package/dist/svelte/components/PMOverview.svelte +527 -0
- package/dist/svelte/components/PMOverview.svelte.d.ts +12 -0
- package/dist/svelte/components/PMOverview.svelte.d.ts.map +1 -0
- package/dist/svelte/index.d.ts +4 -0
- package/dist/svelte/index.d.ts.map +1 -0
- package/dist/svelte/index.js +2 -0
- package/dist/svelte/runtime.d.ts +33 -0
- package/dist/svelte/runtime.d.ts.map +1 -0
- package/dist/svelte/runtime.js +148 -0
- package/dist/svelte/styles.css +2 -0
- package/dist/tasks/completion.d.ts +6 -0
- package/dist/tasks/completion.d.ts.map +1 -0
- package/dist/tasks/completion.js +105 -0
- package/dist/tasks/completion.js.map +1 -0
- package/dist/tasks/index.d.ts +11 -0
- package/dist/tasks/index.d.ts.map +1 -0
- package/dist/tasks/index.js +11 -0
- package/dist/tasks/index.js.map +1 -0
- package/dist/tasks/launch.d.ts +196 -0
- package/dist/tasks/launch.d.ts.map +1 -0
- package/dist/tasks/launch.js +10 -0
- package/dist/tasks/launch.js.map +1 -0
- package/dist/tasks/run-task.d.ts +11 -0
- package/dist/tasks/run-task.d.ts.map +1 -0
- package/dist/tasks/run-task.js +144 -0
- package/dist/tasks/run-task.js.map +1 -0
- package/dist/tasks/schemas.d.ts +83 -0
- package/dist/tasks/schemas.d.ts.map +1 -0
- package/dist/tasks/schemas.js +67 -0
- package/dist/tasks/schemas.js.map +1 -0
- package/dist/testing/daemon.d.ts +64 -0
- package/dist/testing/daemon.d.ts.map +1 -0
- package/dist/testing/daemon.js +125 -0
- package/dist/testing/daemon.js.map +1 -0
- package/dist/tui/components/DaemonHealthCard.d.ts +22 -0
- package/dist/tui/components/DaemonHealthCard.d.ts.map +1 -0
- package/dist/tui/components/DaemonHealthCard.js +30 -0
- package/dist/tui/components/DaemonHealthCard.js.map +1 -0
- package/dist/tui/components/ErrorDetailsPanel.d.ts +16 -0
- package/dist/tui/components/ErrorDetailsPanel.d.ts.map +1 -0
- package/dist/tui/components/ErrorDetailsPanel.js +22 -0
- package/dist/tui/components/ErrorDetailsPanel.js.map +1 -0
- package/dist/tui/components/FilterBar.d.ts +21 -0
- package/dist/tui/components/FilterBar.d.ts.map +1 -0
- package/dist/tui/components/FilterBar.js +31 -0
- package/dist/tui/components/FilterBar.js.map +1 -0
- package/dist/tui/components/StatsBar.d.ts +17 -0
- package/dist/tui/components/StatsBar.d.ts.map +1 -0
- package/dist/tui/components/StatsBar.js +28 -0
- package/dist/tui/components/StatsBar.js.map +1 -0
- package/dist/tui/components/index.d.ts +5 -0
- package/dist/tui/components/index.d.ts.map +1 -0
- package/dist/tui/components/index.js +5 -0
- package/dist/tui/components/index.js.map +1 -0
- package/dist/tui/index.d.ts +7 -0
- package/dist/tui/index.d.ts.map +1 -0
- package/dist/tui/index.js +7 -0
- package/dist/tui/index.js.map +1 -0
- package/dist/tui/pm-dashboard.descriptor.d.ts +11 -0
- package/dist/tui/pm-dashboard.descriptor.d.ts.map +1 -0
- package/dist/tui/pm-dashboard.descriptor.js +26 -0
- package/dist/tui/pm-dashboard.descriptor.js.map +1 -0
- package/dist/tui/pm-dashboard.impl.consumer.d.ts +19 -0
- package/dist/tui/pm-dashboard.impl.consumer.d.ts.map +1 -0
- package/dist/tui/pm-dashboard.impl.consumer.js +839 -0
- package/dist/tui/pm-dashboard.impl.consumer.js.map +1 -0
- package/dist/tui/pm-open.descriptor.d.ts +10 -0
- package/dist/tui/pm-open.descriptor.d.ts.map +1 -0
- package/dist/tui/pm-open.descriptor.js +21 -0
- package/dist/tui/pm-open.descriptor.js.map +1 -0
- package/dist/tui/pm-open.impl.consumer.d.ts +9 -0
- package/dist/tui/pm-open.impl.consumer.d.ts.map +1 -0
- package/dist/tui/pm-open.impl.consumer.js +13 -0
- package/dist/tui/pm-open.impl.consumer.js.map +1 -0
- package/dist/tui/pm-processes.descriptor.d.ts +12 -0
- package/dist/tui/pm-processes.descriptor.d.ts.map +1 -0
- package/dist/tui/pm-processes.descriptor.js +30 -0
- package/dist/tui/pm-processes.descriptor.js.map +1 -0
- package/dist/tui/pm-processes.impl.consumer.d.ts +14 -0
- package/dist/tui/pm-processes.impl.consumer.d.ts.map +1 -0
- package/dist/tui/pm-processes.impl.consumer.js +214 -0
- package/dist/tui/pm-processes.impl.consumer.js.map +1 -0
- package/dist/tui/pm-state-keys.d.ts +316 -0
- package/dist/tui/pm-state-keys.d.ts.map +1 -0
- package/dist/tui/pm-state-keys.js +10 -0
- package/dist/tui/pm-state-keys.js.map +1 -0
- package/dist/tui/pm-status.descriptor.d.ts +11 -0
- package/dist/tui/pm-status.descriptor.d.ts.map +1 -0
- package/dist/tui/pm-status.descriptor.js +29 -0
- package/dist/tui/pm-status.descriptor.js.map +1 -0
- package/dist/tui/pm-status.impl.consumer.d.ts +11 -0
- package/dist/tui/pm-status.impl.consumer.d.ts.map +1 -0
- package/dist/tui/pm-status.impl.consumer.js +75 -0
- package/dist/tui/pm-status.impl.consumer.js.map +1 -0
- package/dist/tui/pm-tui.plugin.d.ts +13 -0
- package/dist/tui/pm-tui.plugin.d.ts.map +1 -0
- package/dist/tui/pm-tui.plugin.js +34 -0
- package/dist/tui/pm-tui.plugin.js.map +1 -0
- package/dist/utils/attempt.d.ts +31 -0
- package/dist/utils/attempt.d.ts.map +1 -0
- package/dist/utils/attempt.js +43 -0
- package/dist/utils/attempt.js.map +1 -0
- package/dist/utils/bounded-wait.d.ts +31 -0
- package/dist/utils/bounded-wait.d.ts.map +1 -0
- package/dist/utils/bounded-wait.js +35 -0
- package/dist/utils/bounded-wait.js.map +1 -0
- package/dist/utils/command-exists.d.ts +5 -0
- package/dist/utils/command-exists.d.ts.map +1 -0
- package/dist/utils/command-exists.js +8 -0
- package/dist/utils/command-exists.js.map +1 -0
- package/dist/utils/daemon-launch-lock.d.ts +143 -0
- package/dist/utils/daemon-launch-lock.d.ts.map +1 -0
- package/dist/utils/daemon-launch-lock.js +420 -0
- package/dist/utils/daemon-launch-lock.js.map +1 -0
- package/dist/utils/daemon-launch-recovery.d.ts +82 -0
- package/dist/utils/daemon-launch-recovery.d.ts.map +1 -0
- package/dist/utils/daemon-launch-recovery.js +173 -0
- package/dist/utils/daemon-launch-recovery.js.map +1 -0
- package/dist/utils/daemon-log-follower.d.ts +41 -0
- package/dist/utils/daemon-log-follower.d.ts.map +1 -0
- package/dist/utils/daemon-log-follower.js +124 -0
- package/dist/utils/daemon-log-follower.js.map +1 -0
- package/dist/utils/daemon-pid.d.ts +42 -0
- package/dist/utils/daemon-pid.d.ts.map +1 -0
- package/dist/utils/daemon-pid.js +80 -0
- package/dist/utils/daemon-pid.js.map +1 -0
- package/dist/utils/daemon-reachability.d.ts +87 -0
- package/dist/utils/daemon-reachability.d.ts.map +1 -0
- package/dist/utils/daemon-reachability.js +131 -0
- package/dist/utils/daemon-reachability.js.map +1 -0
- package/dist/utils/daemon-stdio-timestamps.d.ts +24 -0
- package/dist/utils/daemon-stdio-timestamps.d.ts.map +1 -0
- package/dist/utils/daemon-stdio-timestamps.js +59 -0
- package/dist/utils/daemon-stdio-timestamps.js.map +1 -0
- package/dist/utils/daemon-stop.d.ts +66 -0
- package/dist/utils/daemon-stop.d.ts.map +1 -0
- package/dist/utils/daemon-stop.js +100 -0
- package/dist/utils/daemon-stop.js.map +1 -0
- package/dist/utils/errno-failure.d.ts +16 -0
- package/dist/utils/errno-failure.d.ts.map +1 -0
- package/dist/utils/errno-failure.js +15 -0
- package/dist/utils/errno-failure.js.map +1 -0
- package/dist/utils/exec.d.ts +27 -0
- package/dist/utils/exec.d.ts.map +1 -0
- package/dist/utils/exec.js +36 -0
- package/dist/utils/exec.js.map +1 -0
- package/dist/utils/index.d.ts +5 -0
- package/dist/utils/index.d.ts.map +1 -0
- package/dist/utils/index.js +5 -0
- package/dist/utils/index.js.map +1 -0
- package/dist/utils/liveness.d.ts +100 -0
- package/dist/utils/liveness.d.ts.map +1 -0
- package/dist/utils/liveness.js +225 -0
- package/dist/utils/liveness.js.map +1 -0
- package/dist/utils/logging.d.ts +60 -0
- package/dist/utils/logging.d.ts.map +1 -0
- package/dist/utils/logging.js +169 -0
- package/dist/utils/logging.js.map +1 -0
- package/dist/utils/path-under.d.ts +15 -0
- package/dist/utils/path-under.d.ts.map +1 -0
- package/dist/utils/path-under.js +16 -0
- package/dist/utils/path-under.js.map +1 -0
- package/dist/utils/port-ownership.d.ts +160 -0
- package/dist/utils/port-ownership.d.ts.map +1 -0
- package/dist/utils/port-ownership.js +176 -0
- package/dist/utils/port-ownership.js.map +1 -0
- package/dist/utils/ports.d.ts +43 -0
- package/dist/utils/ports.d.ts.map +1 -0
- package/dist/utils/ports.js +200 -0
- package/dist/utils/ports.js.map +1 -0
- package/dist/utils/process-tree.d.ts +33 -0
- package/dist/utils/process-tree.d.ts.map +1 -0
- package/dist/utils/process-tree.js +197 -0
- package/dist/utils/process-tree.js.map +1 -0
- package/dist/utils/semaphore.d.ts +16 -0
- package/dist/utils/semaphore.d.ts.map +1 -0
- package/dist/utils/semaphore.js +30 -0
- package/dist/utils/semaphore.js.map +1 -0
- package/dist/utils/socket-inode.impl.consumer.d.ts +26 -0
- package/dist/utils/socket-inode.impl.consumer.d.ts.map +1 -0
- package/dist/utils/socket-inode.impl.consumer.js +30 -0
- package/dist/utils/socket-inode.impl.consumer.js.map +1 -0
- package/dist/utils/socket-paths.d.ts +121 -0
- package/dist/utils/socket-paths.d.ts.map +1 -0
- package/dist/utils/socket-paths.js +167 -0
- package/dist/utils/socket-paths.js.map +1 -0
- package/dist/utils/socket.d.ts +65 -0
- package/dist/utils/socket.d.ts.map +1 -0
- package/dist/utils/socket.js +87 -0
- package/dist/utils/socket.js.map +1 -0
- package/dist/utils/version.d.ts +40 -0
- package/dist/utils/version.d.ts.map +1 -0
- package/dist/utils/version.js +65 -0
- package/dist/utils/version.js.map +1 -0
- package/dist/utils/vibes-home.d.ts +34 -0
- package/dist/utils/vibes-home.d.ts.map +1 -0
- package/dist/utils/vibes-home.js +27 -0
- package/dist/utils/vibes-home.js.map +1 -0
- package/dist/workspace-runtime.d.ts +38 -0
- package/dist/workspace-runtime.d.ts.map +1 -0
- package/dist/workspace-runtime.js +176 -0
- package/dist/workspace-runtime.js.map +1 -0
- package/package.json +465 -4
package/LICENSE
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 VIBES DEV LLC
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and
|
|
6
|
+
associated documentation files (the "Software"), to deal in the Software without restriction, including
|
|
7
|
+
without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
8
|
+
copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the
|
|
9
|
+
following conditions:
|
|
10
|
+
|
|
11
|
+
The above copyright notice and this permission notice shall be included in all copies or substantial
|
|
12
|
+
portions of the Software.
|
|
13
|
+
|
|
14
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT
|
|
15
|
+
LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO
|
|
16
|
+
EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
|
17
|
+
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
|
|
18
|
+
USE OR OTHER DEALINGS IN THE SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,3 +1,228 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @vibesdotdev/pm
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Process manager engine: runtime kinds, daemon, client, manager, registry, state store, CLI commands, TUI dashboard, and the `./dev` builders for co-located dev process descriptors. Powers `vibes pm`.
|
|
4
|
+
|
|
5
|
+
Concrete `pm/process` descriptors live next to the thing they run — `apps/<app>/<app>.pm.process.ts`, `<pkg>/<pkg>.pm.process.ts`, etc. — and are picked up by runtime filesystem discovery. The repo-root `pm/` directory holds workspace-scoped composition: presets, workspace-shared resources, the workspace dev environment data (`pm/dev.workspace.ts`), and any genuinely orphan workspace processes.
|
|
6
|
+
|
|
7
|
+
## Quickstart
|
|
8
|
+
|
|
9
|
+
### Register the plugin
|
|
10
|
+
|
|
11
|
+
```ts
|
|
12
|
+
// vibes.config.ts (or app bootstrap)
|
|
13
|
+
export default {
|
|
14
|
+
plugins: [
|
|
15
|
+
() => import('@vibesdotdev/pm/plugin'),
|
|
16
|
+
// …
|
|
17
|
+
],
|
|
18
|
+
};
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
Compose `@vibesdotdev/pm/consumer.plugin` for the daemon, built-in providers, storage and runtime-owned PM client. The existing `./plugin` entrypoint is its compatibility alias. Cloud and universal hosts use `./cloud.plugin`, which registers only host-free kinds/config. CLI and TUI composition remain explicit at `./cli/plugin` and `./tui/plugin`.
|
|
22
|
+
|
|
23
|
+
### Port-forwards and launch preparation
|
|
24
|
+
|
|
25
|
+
PM does not compose a port-forward integration. Hosts must explicitly register
|
|
26
|
+
a `pm/launch-preparation` provider; process declarations select its descriptor
|
|
27
|
+
with `launchPreparation: { adapter, config }`. The synchronous port-forward
|
|
28
|
+
builders retain validated requests and supervision defaults, with a deferred
|
|
29
|
+
`command: 'port-forward', args: []` preview. Existing tagged persisted argv
|
|
30
|
+
declarations remain supported through the host's protocol adapter.
|
|
31
|
+
Saved configs retain actual executable argv and optional schema-validated
|
|
32
|
+
`launchProvenance` for declaration and prepared inputs. Unchanged declarations
|
|
33
|
+
reuse their managed run; preparation inputs participate in concurrent request
|
|
34
|
+
identity. Restarts prepare the declaration again, and older records without
|
|
35
|
+
provenance remain supported.
|
|
36
|
+
See [the composition guide](./docs/launch-preparation.md) for the Kubernetes
|
|
37
|
+
bridge, legacy declarations, typed refusals and external host follow-up.
|
|
38
|
+
|
|
39
|
+
### Declare a SvelteKit dev app (co-located)
|
|
40
|
+
|
|
41
|
+
```ts
|
|
42
|
+
// apps/auth-web/auth.pm.process.ts
|
|
43
|
+
import { defineSvelteKitDev } from '@vibesdotdev/pm/dev';
|
|
44
|
+
|
|
45
|
+
export default defineSvelteKitDev({
|
|
46
|
+
id: 'auth-dev',
|
|
47
|
+
name: 'Auth Dev',
|
|
48
|
+
description: 'Auth app — session management, OAuth, gateway.',
|
|
49
|
+
// No appDir: the app is this file's directory. PM anchors the descriptor's
|
|
50
|
+
// relative paths at the file discovery found it in; the descriptor never
|
|
51
|
+
// computes its own location (no import.meta.dir), so it imports under any host.
|
|
52
|
+
port: 5173,
|
|
53
|
+
// Relative to the process cwd, the app directory.
|
|
54
|
+
env: { AUTH_DATABASE_URL: 'file:.vibes/data/auth.sqlite' },
|
|
55
|
+
presets: ['dev', 'core'],
|
|
56
|
+
tags: ['core', 'app'],
|
|
57
|
+
// pm-infra-liveness-fleet (Phase 1 foundation): declare supported liveness/presence profiles
|
|
58
|
+
// in a *single* declarative site. This is the key to less consumer code (no more duplicated
|
|
59
|
+
// full descriptors for local-hmr vs fleet-mutable vs cloud-preview). `vibes pm liveness set`
|
|
60
|
+
// (and --env / --target on list/start) selects the active mode at runtime.
|
|
61
|
+
// Descriptors without the field continue to work unchanged.
|
|
62
|
+
livenessProfiles: ['local-hmr', 'fleet-mutable'],
|
|
63
|
+
});
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
**New world (Phase 4 polish):** One descriptor declares support; `vibes pm liveness set full [--env=dev]` (power command) or explicit profile flips the "lens" (local full-HMR vs fleet-mutable delta-sync etc). TUI dashboard (pm-tui) now shows live active profile + fleet resources (shaped slices/records) + 'f' hotkey action. Less code + more power: no dupe files/ids for presence modes.
|
|
67
|
+
|
|
68
|
+
The builder fills in the vite command, the SvelteKit pre-build hook, and the standard TCP health check. An optional app-owned workspace projection can fan shared origins out to `PUBLIC_VIBES_<APP>_ORIGIN` environment variables. It wraps in `createRuntimeAsset` so runtime discovery picks it up. `livenessProfiles` (and `livenessConfig`) are forwarded into the resulting `ProcessConfig` so the rest of the PM system (client, daemon, CLI, TUI, future sync) can treat liveness/presence as a first-class property of the process.
|
|
69
|
+
|
|
70
|
+
### Declare a generic command process (workspace-authored)
|
|
71
|
+
|
|
72
|
+
A workspace declares its own processes in `*.pm.process.ts` files that the
|
|
73
|
+
kernel's discovery pass finds under the bound workspace. A published package
|
|
74
|
+
does not: it registers its process descriptors through its plugin (the workers
|
|
75
|
+
consumer is `workers/src/cli/vibes-workers-consumer.process.descriptor.ts`,
|
|
76
|
+
registered by the workers CLI plugin; applet serving is
|
|
77
|
+
`applets/src/cli/applet-serve.process.descriptor.ts`, registered by the applets
|
|
78
|
+
CLI plugin).
|
|
79
|
+
|
|
80
|
+
```ts
|
|
81
|
+
// pm/processes/my-worker.pm.process.ts (in the workspace)
|
|
82
|
+
import { defineCommandProcess } from '@vibesdotdev/pm/dev';
|
|
83
|
+
|
|
84
|
+
export default defineCommandProcess({
|
|
85
|
+
id: 'my-worker',
|
|
86
|
+
name: 'My Worker Runtime (consumer)',
|
|
87
|
+
command: '/path/to/host-owned/vibes',
|
|
88
|
+
args: ['workers', 'serve', 'consumer'],
|
|
89
|
+
// PM binds cwd, env and the canonical consumer socket at admission.
|
|
90
|
+
workerRuntimeTarget: 'consumer',
|
|
91
|
+
healthCheck: { type: 'socket', interval: 10_000, timeout: 5_000, retries: 3, warmupMs: 30_000, gracePeriodMultiplier: 6 },
|
|
92
|
+
presets: ['dev', 'full'],
|
|
93
|
+
tags: ['workers', 'local', 'ipc', 'consumer'],
|
|
94
|
+
// Phase 4: livenessProfiles make this command process remote/fleet capable with one decl (see "vibes pm liveness set full")
|
|
95
|
+
livenessProfiles: ['local-hmr', 'fleet-mutable']
|
|
96
|
+
});
|
|
97
|
+
```
|
|
98
|
+
|
|
99
|
+
### Declare a preset (workspace-scoped)
|
|
100
|
+
|
|
101
|
+
```ts
|
|
102
|
+
// pm/presets/dev.pm.preset.ts
|
|
103
|
+
export default {
|
|
104
|
+
id: 'dev',
|
|
105
|
+
kind: 'pm/preset',
|
|
106
|
+
name: 'Local development',
|
|
107
|
+
default: true,
|
|
108
|
+
// No `processes:` array — it's derived from descriptor `presets: ['dev']` membership.
|
|
109
|
+
resources: ['kind-vibes-local', 'nginx-reverse-proxy'],
|
|
110
|
+
maxProcessConcurrency: 2,
|
|
111
|
+
};
|
|
112
|
+
```
|
|
113
|
+
|
|
114
|
+
### Drive PM from code
|
|
115
|
+
|
|
116
|
+
```ts
|
|
117
|
+
import { getVibesClient } from '@vibesdotdev/kernel/client';
|
|
118
|
+
import type { PMClient } from '@vibesdotdev/pm/client';
|
|
119
|
+
|
|
120
|
+
// runtime is the host runtime handed to this code.
|
|
121
|
+
const pm = await getVibesClient<PMClient>('pm', runtime);
|
|
122
|
+
// The legacy runtime.context('pm/client') projects this same kernel-owned client.
|
|
123
|
+
|
|
124
|
+
await pm.start({ id: 'web', command: 'bun', args: ['run', 'dev'], cwd: 'apps/app-web' });
|
|
125
|
+
const status = await pm.getStatus('web');
|
|
126
|
+
const logs = await pm.getLogs('web', { lines: 200, stream: 'both' });
|
|
127
|
+
|
|
128
|
+
// A task: start it, then await that run's exit (one call that ends on the exit; no polling).
|
|
129
|
+
const started = await pm.start({ id: 'seed', command: 'bun', args: ['run', 'seed'], task: true, runOnce: true });
|
|
130
|
+
const exit = await pm.awaitExit('seed', { run: { startedAt: started.startedAt } });
|
|
131
|
+
if (!exit.succeeded) console.error(`seed ${exit.status} with exit ${exit.exitCode}`);
|
|
132
|
+
```
|
|
133
|
+
|
|
134
|
+
`awaitExit` answers PM's one terminal record of the run (`ProcessExit`). If the
|
|
135
|
+
daemon restarts or hot-reloads mid-wait, the client re-issues for the same run;
|
|
136
|
+
a caller's `signal` aborts the wait and closes its connection.
|
|
137
|
+
|
|
138
|
+
`PMClient` auto-launches the daemon on first call. Recursion is guarded by the `VIBES_PM_DAEMON` env var and a launch lock at `~/.vibes/pm/daemon-launch-<tooling-id>.lock`.
|
|
139
|
+
|
|
140
|
+
### Run on the CLI
|
|
141
|
+
|
|
142
|
+
```bash
|
|
143
|
+
vibes pm start web # start a registered process
|
|
144
|
+
vibes pm status # all process status
|
|
145
|
+
vibes pm logs web --lines 200
|
|
146
|
+
vibes pm preset start dev # start the dev preset
|
|
147
|
+
vibes pm daemon status
|
|
148
|
+
vibes pm dashboard # launch the TUI dashboard
|
|
149
|
+
```
|
|
150
|
+
|
|
151
|
+
### Implement a resource provider
|
|
152
|
+
|
|
153
|
+
A provider is a `pm/resource-provider` runtime asset whose id is the resource
|
|
154
|
+
type. Register it through your plugin (or author `my-thing.pm.resource-provider.ts`
|
|
155
|
+
for kernel discovery); the daemon resolves it from its runtime.
|
|
156
|
+
|
|
157
|
+
```ts
|
|
158
|
+
import { createRuntimeAsset, createRuntimePlugin, loader } from '@vibesdotdev/kernel';
|
|
159
|
+
import { RESOURCE_PROVIDER_KIND, type ResourceProvider } from '@vibesdotdev/pm';
|
|
160
|
+
|
|
161
|
+
const myProvider: ResourceProvider = {
|
|
162
|
+
type: 'my/thing',
|
|
163
|
+
async setup(config) {
|
|
164
|
+
return {
|
|
165
|
+
state: { id: config.id, type: 'my/thing', status: 'ready', lastChecked: new Date() },
|
|
166
|
+
};
|
|
167
|
+
},
|
|
168
|
+
async teardown(id, state, { config }) { /* delete; report a failure by throwing */ },
|
|
169
|
+
async status(id, { config }) { return { status: 'ready' }; },
|
|
170
|
+
validateConfig(c) { return c; },
|
|
171
|
+
};
|
|
172
|
+
|
|
173
|
+
export default createRuntimePlugin({
|
|
174
|
+
id: 'my-thing',
|
|
175
|
+
dependencies: ['pm'],
|
|
176
|
+
descriptors: [createRuntimeAsset({ kind: RESOURCE_PROVIDER_KIND, id: 'my/thing', name: 'My thing', description: '…' })],
|
|
177
|
+
loaders: [loader('my/thing', { kind: RESOURCE_PROVIDER_KIND }, async () => ({ impl: myProvider }))],
|
|
178
|
+
});
|
|
179
|
+
```
|
|
180
|
+
|
|
181
|
+
Built-in providers (`shell/setup`, `local/mkcert`) are registered the same way by the pm plugin. Vendor providers (k8s, helm, kind) register their own `pm/resource-provider` descriptors through `@vibesdotdev/integrations-kubernetes/resource-providers.consumer.plugin`.
|
|
182
|
+
|
|
183
|
+
## Port-forward execution
|
|
184
|
+
|
|
185
|
+
Port-forward execution belongs to `@vibesdotdev/integrations-kubernetes`
|
|
186
|
+
(`./port-forward`, `./port-forward.consumer.plugin`): kubectl token grammar,
|
|
187
|
+
legacy argv interpretation, synchronous plan building, readiness commands, and
|
|
188
|
+
argv construction. PM owns only the open `pm/launch-preparation` kind
|
|
189
|
+
(`./launch-preparation`) plus the optional `monitoredPorts` /
|
|
190
|
+
`matchesProcessCommand` identity hooks its port tooling resolves at call time.
|
|
191
|
+
Hosts explicitly compose the integration's narrow consumer slice and the
|
|
192
|
+
`pm/launch-preparation` bridge shown in the
|
|
193
|
+
[composition guide](./docs/launch-preparation.md).
|
|
194
|
+
A missing adapter refuses `pm-launch-preparation-unavailable`; an invalid
|
|
195
|
+
implementation or plan refuses `pm-launch-preparation-invalid` (`UNAVAILABLE`
|
|
196
|
+
and `INTERNAL`, respectively). Persisted declarations remain supported through
|
|
197
|
+
the host bridge and the integration's compatibility adapter. Readiness failure prevents spawn and
|
|
198
|
+
retains `pm-resource-tool-failed`; execution refusals propagate unchanged.
|
|
199
|
+
Selection and execution stay bound to the handed runtime.
|
|
200
|
+
|
|
201
|
+
## State and config locations
|
|
202
|
+
|
|
203
|
+
- Daemon socket: `~/.vibes/pm/sock/pm-daemon-<tooling-id>.sock`
|
|
204
|
+
- Daemon PID: `~/.vibes/pm/pm-daemon-<tooling-id>.pid`
|
|
205
|
+
- Process state DB: `~/.vibes/pm-state.db` (global) or `<workspace>/.vibes/pm-state.db` (local)
|
|
206
|
+
- Registered / launched process configs: the `process_configs` table of the workspace's `pm-state.db` (the `pm-registry.json` side file is gone)
|
|
207
|
+
- Liveness profiles: the `pm_kv` table of the workspace's `pm-state.db` (the `.vibes/pm-liveness.json` file is gone)
|
|
208
|
+
- Daemon stdio logs: `<logDir>/pm-daemon-<tooling-id>.stdout.log` / `.stderr.log`, one pair per admitted workspace; the structured daemon log is `<logDir>/pm-daemon.log`
|
|
209
|
+
- Previous run of a process: `<id>.stdout.previous` / `<id>.stderr.previous` in its process log directory (`.1`..`.3` are size rotation)
|
|
210
|
+
- Process descriptors: discovered by the kernel from the bound workspace's declared `package.json#workspaces` packages (any `*.pm.{process,resource,preset}.ts` at a package root, and the root package's `pm/{processes,resources,presets}/`); a host's `config.plugins.pm` in `vibes.config.*` adds inline declarations. One explicit file is registered with `vibes pm register <path>`; the old `--config <path>` flags are gone.
|
|
211
|
+
|
|
212
|
+
## Verification
|
|
213
|
+
|
|
214
|
+
Run from this package directory. `check` checks all TypeScript and TSX sources,
|
|
215
|
+
including tests, without emitting, then checks Svelte components. `build` emits
|
|
216
|
+
production core code and packages the supported Svelte exports separately;
|
|
217
|
+
tests and fixtures stay out of `dist`.
|
|
218
|
+
|
|
219
|
+
```bash
|
|
220
|
+
bun run check
|
|
221
|
+
bun run test
|
|
222
|
+
bun run build
|
|
223
|
+
```
|
|
224
|
+
|
|
225
|
+
## Docs
|
|
226
|
+
|
|
227
|
+
- [SPEC.md](./SPEC.md) — package contract, owned surfaces, hard rules, migration debt
|
|
228
|
+
- [cli](../cli/SPEC.md), [cli-bin](../../../apps/cli-bin/SPEC.md), [tui](../tui/SPEC.md), [workers](../workers/SPEC.md), [workspace](../workspace/SPEC.md), [runtime](../runtime/SPEC.md)
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The `pm.workspaces` admission store (framework-M8, rc02-rc03 §2.4): reads
|
|
3
|
+
* and writes the one admission document through its storage manifest, which
|
|
4
|
+
* the runtime resolves (`storage/manifest` → `storage.json` under
|
|
5
|
+
* `{vibesHome}/pm`). The rule itself is pure and lives in `./admission.ts`.
|
|
6
|
+
*/
|
|
7
|
+
import { type RuntimeRef } from '@vibesdotdev/kernel';
|
|
8
|
+
import { type AdmittedBy, type AdmittedWorkspace } from './schemas/admission.ts';
|
|
9
|
+
export { admittedWorkspacesManifestDescriptor } from './storage/workspaces.descriptor.ts';
|
|
10
|
+
type AdmissionRuntime = RuntimeRef;
|
|
11
|
+
/** Admitting also reads the host's captured workspace binding (its source) from its environment facts. */
|
|
12
|
+
type AdmittingRuntime = AdmissionRuntime & Partial<Pick<RuntimeRef, 'localEnvironment'>>;
|
|
13
|
+
/**
|
|
14
|
+
* Every admitted workspace on this machine. The JSON adapter answers `null`
|
|
15
|
+
* only when the document does not exist, which is "nothing admitted yet";
|
|
16
|
+
* every other read failure propagates.
|
|
17
|
+
*/
|
|
18
|
+
export declare function readAdmittedWorkspaces(runtime: AdmissionRuntime): Promise<AdmittedWorkspace[]>;
|
|
19
|
+
/**
|
|
20
|
+
* The innermost admitted workspace containing `path`, or null when none does.
|
|
21
|
+
* For a caller that answers for a path other than its runtime's binding (a
|
|
22
|
+
* doctor run's `--root`); a runtime's own binding reads `pm/admitted-workspace`.
|
|
23
|
+
*/
|
|
24
|
+
export declare function findAdmittedWorkspace(runtime: AdmissionRuntime, path: string): Promise<AdmittedWorkspace | null>;
|
|
25
|
+
/**
|
|
26
|
+
* The value of `pm/admitted-workspace`: the innermost admitted record
|
|
27
|
+
* containing the runtime's binding, else `workspace-not-admitted`.
|
|
28
|
+
*/
|
|
29
|
+
export declare function resolveAdmittedWorkspace(runtime: AdmissionRuntime): Promise<AdmittedWorkspace>;
|
|
30
|
+
export interface AdmissionResult {
|
|
31
|
+
workspace: AdmittedWorkspace;
|
|
32
|
+
/** True when this call wrote the record; false when a record already contained the binding. */
|
|
33
|
+
admitted: boolean;
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* Admit the runtime's bound workspace. A binding already inside an admitted
|
|
37
|
+
* workspace keeps that record (a nested checkout reaches its workspace's
|
|
38
|
+
* daemon); otherwise the binding itself is recorded. The re-check and the
|
|
39
|
+
* write share the manifest's document lock, so two concurrent admissions of
|
|
40
|
+
* one root write one record.
|
|
41
|
+
*/
|
|
42
|
+
export declare function admitWorkspace(runtime: AdmittingRuntime, admittedBy: AdmittedBy, now?: () => Date): Promise<AdmissionResult>;
|
|
43
|
+
//# sourceMappingURL=admission-store.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"admission-store.d.ts","sourceRoot":"","sources":["../src/admission-store.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAmB,KAAK,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAOvE,OAAO,EAEN,KAAK,UAAU,EACf,KAAK,iBAAiB,EAEtB,MAAM,wBAAwB,CAAC;AAGhC,OAAO,EAAE,oCAAoC,EAAE,MAAM,oCAAoC,CAAC;AAE1F,KAAK,gBAAgB,GAAG,UAAU,CAAC;AACnC,0GAA0G;AAC1G,KAAK,gBAAgB,GAAG,gBAAgB,GAAG,OAAO,CAAC,IAAI,CAAC,UAAU,EAAE,kBAAkB,CAAC,CAAC,CAAC;AA6BzF;;;;GAIG;AACH,wBAAsB,sBAAsB,CAAC,OAAO,EAAE,gBAAgB,GAAG,OAAO,CAAC,iBAAiB,EAAE,CAAC,CAGpG;AAED;;;;GAIG;AACH,wBAAsB,qBAAqB,CAC1C,OAAO,EAAE,gBAAgB,EACzB,IAAI,EAAE,MAAM,GACV,OAAO,CAAC,iBAAiB,GAAG,IAAI,CAAC,CAEnC;AAOD;;;GAGG;AACH,wBAAsB,wBAAwB,CAAC,OAAO,EAAE,gBAAgB,GAAG,OAAO,CAAC,iBAAiB,CAAC,CAKpG;AAED,MAAM,WAAW,eAAe;IAC/B,SAAS,EAAE,iBAAiB,CAAC;IAC7B,+FAA+F;IAC/F,QAAQ,EAAE,OAAO,CAAC;CAClB;AAED;;;;;;GAMG;AACH,wBAAsB,cAAc,CACnC,OAAO,EAAE,gBAAgB,EACzB,UAAU,EAAE,UAAU,EACtB,GAAG,GAAE,MAAM,IAAuB,GAChC,OAAO,CAAC,eAAe,CAAC,CA4B1B"}
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The `pm.workspaces` admission store (framework-M8, rc02-rc03 §2.4): reads
|
|
3
|
+
* and writes the one admission document through its storage manifest, which
|
|
4
|
+
* the runtime resolves (`storage/manifest` → `storage.json` under
|
|
5
|
+
* `{vibesHome}/pm`). The rule itself is pure and lives in `./admission.ts`.
|
|
6
|
+
*/
|
|
7
|
+
import { CapabilityError } from '@vibesdotdev/kernel';
|
|
8
|
+
import { StorageManifest } from '@vibesdotdev/storage/manifest';
|
|
9
|
+
import { innermostAdmittedWorkspace, normalizeWorkspaceRoot, workspaceNotAdmitted } from "./admission.js";
|
|
10
|
+
import { AdmittedWorkspacesSchema } from "./schemas/admission.js";
|
|
11
|
+
import { PM_WORKSPACES_MANIFEST_ID } from "./storage/workspaces.descriptor.js";
|
|
12
|
+
export { admittedWorkspacesManifestDescriptor } from "./storage/workspaces.descriptor.js";
|
|
13
|
+
/**
|
|
14
|
+
* Refuse a binding that is not a workspace (START.md agreed plan): the host's
|
|
15
|
+
* environment bound it only because no workspace marker (`.git`, a
|
|
16
|
+
* `package.json` with `workspaces`) was found above the cwd (the policy's C5
|
|
17
|
+
* `source: 'cwd'`). Recording it would make PM supervise an arbitrary
|
|
18
|
+
* directory and, as an ancestor, capture every checkout beneath it (measured:
|
|
19
|
+
* an admitted `/Users/aewing/Projects`). An explicit `--workspace-root` or a
|
|
20
|
+
* declared root, and a marked nearest root, are workspaces. A binding that is
|
|
21
|
+
* not the host's capture (a call's own workspace) is judged by its caller.
|
|
22
|
+
*/
|
|
23
|
+
function refuseUnmarkedBinding(runtime, binding) {
|
|
24
|
+
const captured = runtime.localEnvironment?.workspaceBinding?.();
|
|
25
|
+
if (!captured || captured.source !== 'cwd')
|
|
26
|
+
return;
|
|
27
|
+
if (normalizeWorkspaceRoot(captured.root) !== binding)
|
|
28
|
+
return;
|
|
29
|
+
throw new CapabilityError(`'${binding}' is not a workspace, so PM will not admit it.`, 'INVALID_INPUT', {
|
|
30
|
+
reason: 'pm-admission-not-a-workspace',
|
|
31
|
+
retryable: false,
|
|
32
|
+
details: { workspace: binding },
|
|
33
|
+
recoveryHint: 'Run it inside a workspace (a git checkout, or a package.json that declares workspaces), or name one with --workspace-root.'
|
|
34
|
+
});
|
|
35
|
+
}
|
|
36
|
+
/** A fresh handle on the `pm.workspaces` manifest of `runtime`: no cached read outlives a call. */
|
|
37
|
+
function admissionManifest(runtime) {
|
|
38
|
+
return StorageManifest.fromId(PM_WORKSPACES_MANIFEST_ID, runtime);
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Every admitted workspace on this machine. The JSON adapter answers `null`
|
|
42
|
+
* only when the document does not exist, which is "nothing admitted yet";
|
|
43
|
+
* every other read failure propagates.
|
|
44
|
+
*/
|
|
45
|
+
export async function readAdmittedWorkspaces(runtime) {
|
|
46
|
+
const document = await admissionManifest(runtime).load();
|
|
47
|
+
return document ? AdmittedWorkspacesSchema.parse(document).workspaces : [];
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* The innermost admitted workspace containing `path`, or null when none does.
|
|
51
|
+
* For a caller that answers for a path other than its runtime's binding (a
|
|
52
|
+
* doctor run's `--root`); a runtime's own binding reads `pm/admitted-workspace`.
|
|
53
|
+
*/
|
|
54
|
+
export async function findAdmittedWorkspace(runtime, path) {
|
|
55
|
+
return innermostAdmittedWorkspace(await readAdmittedWorkspaces(runtime), normalizeWorkspaceRoot(path));
|
|
56
|
+
}
|
|
57
|
+
/** The runtime's workspace binding: the invocation's, else the host's; `workspace-unbound` otherwise. */
|
|
58
|
+
function workspaceBinding(runtime) {
|
|
59
|
+
return runtime.context('runtime/workspace-path');
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* The value of `pm/admitted-workspace`: the innermost admitted record
|
|
63
|
+
* containing the runtime's binding, else `workspace-not-admitted`.
|
|
64
|
+
*/
|
|
65
|
+
export async function resolveAdmittedWorkspace(runtime) {
|
|
66
|
+
const binding = normalizeWorkspaceRoot(await workspaceBinding(runtime));
|
|
67
|
+
const admitted = await findAdmittedWorkspace(runtime, binding);
|
|
68
|
+
if (!admitted)
|
|
69
|
+
throw workspaceNotAdmitted(binding);
|
|
70
|
+
return admitted;
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* Admit the runtime's bound workspace. A binding already inside an admitted
|
|
74
|
+
* workspace keeps that record (a nested checkout reaches its workspace's
|
|
75
|
+
* daemon); otherwise the binding itself is recorded. The re-check and the
|
|
76
|
+
* write share the manifest's document lock, so two concurrent admissions of
|
|
77
|
+
* one root write one record.
|
|
78
|
+
*/
|
|
79
|
+
export async function admitWorkspace(runtime, admittedBy, now = () => new Date()) {
|
|
80
|
+
const binding = normalizeWorkspaceRoot(await workspaceBinding(runtime));
|
|
81
|
+
const known = innermostAdmittedWorkspace(await readAdmittedWorkspaces(runtime), binding);
|
|
82
|
+
if (known)
|
|
83
|
+
return { workspace: known, admitted: false };
|
|
84
|
+
refuseUnmarkedBinding(runtime, binding);
|
|
85
|
+
let result;
|
|
86
|
+
await admissionManifest(runtime).update((current) => {
|
|
87
|
+
const workspaces = current ? AdmittedWorkspacesSchema.parse(current).workspaces : [];
|
|
88
|
+
const existing = innermostAdmittedWorkspace(workspaces, binding);
|
|
89
|
+
if (existing) {
|
|
90
|
+
result = { workspace: existing, admitted: false };
|
|
91
|
+
return { workspaces };
|
|
92
|
+
}
|
|
93
|
+
const record = {
|
|
94
|
+
root: binding,
|
|
95
|
+
admittedAt: now().toISOString(),
|
|
96
|
+
admittedBy
|
|
97
|
+
};
|
|
98
|
+
result = { workspace: record, admitted: true };
|
|
99
|
+
return { workspaces: [...workspaces, record] };
|
|
100
|
+
});
|
|
101
|
+
if (!result) {
|
|
102
|
+
throw new CapabilityError('The pm.workspaces update ran no transform.', 'INTERNAL', {
|
|
103
|
+
reason: 'admission-unrecorded'
|
|
104
|
+
});
|
|
105
|
+
}
|
|
106
|
+
return result;
|
|
107
|
+
}
|
|
108
|
+
//# sourceMappingURL=admission-store.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"admission-store.js","sourceRoot":"","sources":["../src/admission-store.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,eAAe,EAAmB,MAAM,qBAAqB,CAAC;AACvE,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAChE,OAAO,EACN,0BAA0B,EAC1B,sBAAsB,EACtB,oBAAoB,EACpB,MAAM,gBAAgB,CAAC;AACxB,OAAO,EACN,wBAAwB,EAIxB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,yBAAyB,EAAE,MAAM,oCAAoC,CAAC;AAE/E,OAAO,EAAE,oCAAoC,EAAE,MAAM,oCAAoC,CAAC;AAM1F;;;;;;;;;GASG;AACH,SAAS,qBAAqB,CAAC,OAAyB,EAAE,OAAe;IACxE,MAAM,QAAQ,GAAG,OAAO,CAAC,gBAAgB,EAAE,gBAAgB,EAAE,EAAE,CAAC;IAChE,IAAI,CAAC,QAAQ,IAAI,QAAQ,CAAC,MAAM,KAAK,KAAK;QAAE,OAAO;IACnD,IAAI,sBAAsB,CAAC,QAAQ,CAAC,IAAI,CAAC,KAAK,OAAO;QAAE,OAAO;IAC9D,MAAM,IAAI,eAAe,CAAC,IAAI,OAAO,gDAAgD,EAAE,eAAe,EAAE;QACvG,MAAM,EAAE,8BAA8B;QACtC,SAAS,EAAE,KAAK;QAChB,OAAO,EAAE,EAAE,SAAS,EAAE,OAAO,EAAE;QAC/B,YAAY,EAAE,4HAA4H;KAC1I,CAAC,CAAC;AACJ,CAAC;AAED,mGAAmG;AACnG,SAAS,iBAAiB,CAAC,OAAyB;IACnD,OAAO,eAAe,CAAC,MAAM,CAAqB,yBAAyB,EAAE,OAAO,CAAC,CAAC;AACvF,CAAC;AAED;;;;GAIG;AACH,MAAM,CAAC,KAAK,UAAU,sBAAsB,CAAC,OAAyB;IACrE,MAAM,QAAQ,GAAG,MAAM,iBAAiB,CAAC,OAAO,CAAC,CAAC,IAAI,EAAE,CAAC;IACzD,OAAO,QAAQ,CAAC,CAAC,CAAC,wBAAwB,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,EAAE,CAAC;AAC5E,CAAC;AAED;;;;GAIG;AACH,MAAM,CAAC,KAAK,UAAU,qBAAqB,CAC1C,OAAyB,EACzB,IAAY;IAEZ,OAAO,0BAA0B,CAAC,MAAM,sBAAsB,CAAC,OAAO,CAAC,EAAE,sBAAsB,CAAC,IAAI,CAAC,CAAC,CAAC;AACxG,CAAC;AAED,yGAAyG;AACzG,SAAS,gBAAgB,CAAC,OAAyB;IAClD,OAAO,OAAO,CAAC,OAAO,CAAS,wBAAwB,CAAC,CAAC;AAC1D,CAAC;AAED;;;GAGG;AACH,MAAM,CAAC,KAAK,UAAU,wBAAwB,CAAC,OAAyB;IACvE,MAAM,OAAO,GAAG,sBAAsB,CAAC,MAAM,gBAAgB,CAAC,OAAO,CAAC,CAAC,CAAC;IACxE,MAAM,QAAQ,GAAG,MAAM,qBAAqB,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;IAC/D,IAAI,CAAC,QAAQ;QAAE,MAAM,oBAAoB,CAAC,OAAO,CAAC,CAAC;IACnD,OAAO,QAAQ,CAAC;AACjB,CAAC;AAQD;;;;;;GAMG;AACH,MAAM,CAAC,KAAK,UAAU,cAAc,CACnC,OAAyB,EACzB,UAAsB,EACtB,MAAkB,GAAG,EAAE,CAAC,IAAI,IAAI,EAAE;IAElC,MAAM,OAAO,GAAG,sBAAsB,CAAC,MAAM,gBAAgB,CAAC,OAAO,CAAC,CAAC,CAAC;IACxE,MAAM,KAAK,GAAG,0BAA0B,CAAC,MAAM,sBAAsB,CAAC,OAAO,CAAC,EAAE,OAAO,CAAC,CAAC;IACzF,IAAI,KAAK;QAAE,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;IACxD,qBAAqB,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;IAExC,IAAI,MAAmC,CAAC;IACxC,MAAM,iBAAiB,CAAC,OAAO,CAAC,CAAC,MAAM,CAAC,CAAC,OAAO,EAAE,EAAE;QACnD,MAAM,UAAU,GAAG,OAAO,CAAC,CAAC,CAAC,wBAAwB,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,EAAE,CAAC;QACrF,MAAM,QAAQ,GAAG,0BAA0B,CAAC,UAAU,EAAE,OAAO,CAAC,CAAC;QACjE,IAAI,QAAQ,EAAE,CAAC;YACd,MAAM,GAAG,EAAE,SAAS,EAAE,QAAQ,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;YAClD,OAAO,EAAE,UAAU,EAAE,CAAC;QACvB,CAAC;QACD,MAAM,MAAM,GAAsB;YACjC,IAAI,EAAE,OAAO;YACb,UAAU,EAAE,GAAG,EAAE,CAAC,WAAW,EAAE;YAC/B,UAAU;SACV,CAAC;QACF,MAAM,GAAG,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;QAC/C,OAAO,EAAE,UAAU,EAAE,CAAC,GAAG,UAAU,EAAE,MAAM,CAAC,EAAE,CAAC;IAChD,CAAC,CAAC,CAAC;IACH,IAAI,CAAC,MAAM,EAAE,CAAC;QACb,MAAM,IAAI,eAAe,CAAC,4CAA4C,EAAE,UAAU,EAAE;YACnF,MAAM,EAAE,sBAAsB;SAC9B,CAAC,CAAC;IACJ,CAAC;IACD,OAAO,MAAM,CAAC;AACf,CAAC"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Workspace admission (framework-M8, D15; rc02-rc03 §2.4).
|
|
3
|
+
*
|
|
4
|
+
* PM supervises only admitted workspaces. The admission record lives in the
|
|
5
|
+
* `pm.workspaces` storage manifest under `vibesHome` (`./admission-store.ts`).
|
|
6
|
+
* Action commands that need the workspace runtime (`vibes pm start`, editor /
|
|
7
|
+
* vessel launch via `ensureWorkspaceRuntime`) write a `user` admission.
|
|
8
|
+
*
|
|
9
|
+
* The `pm/admitted-workspace` context answers, for the runtime's workspace
|
|
10
|
+
* binding (`runtime/workspace-path`), the innermost admitted record whose root
|
|
11
|
+
* is a segment-wise prefix of that binding. With none it throws
|
|
12
|
+
* `PERMISSION_DENIED` `workspace-not-admitted`. `toolingId(admitted.root)`
|
|
13
|
+
* names the PM socket, pid, lock, state and logs, the runtime daemon's
|
|
14
|
+
* sockets and pid, and the workers socket, so every nested checkout of an
|
|
15
|
+
* admitted workspace reaches that workspace's one daemon.
|
|
16
|
+
*
|
|
17
|
+
* This module is pure (no store): the context id, the rule and the error.
|
|
18
|
+
*/
|
|
19
|
+
import { type WorkspaceIdentity } from '@vibesdotdev/identity';
|
|
20
|
+
import { CapabilityError, type CaughtFailure, type RuntimeRef } from '@vibesdotdev/kernel';
|
|
21
|
+
import type { AdmittedWorkspace } from './schemas/admission.ts';
|
|
22
|
+
export { AdmittedBySchema, AdmittedWorkspaceSchema, AdmittedWorkspacesSchema, type AdmittedBy, type AdmittedWorkspace, type AdmittedWorkspaces } from './schemas/admission.ts';
|
|
23
|
+
export { PM_WORKSPACES_MANIFEST_ID } from './storage/workspaces.descriptor.ts';
|
|
24
|
+
export declare const PM_ADMITTED_WORKSPACE_CONTEXT_ID = "pm/admitted-workspace";
|
|
25
|
+
export declare const WORKSPACE_NOT_ADMITTED = "workspace-not-admitted";
|
|
26
|
+
/**
|
|
27
|
+
* The identity (normalized path, slug, hash, tooling id) of an admitted root:
|
|
28
|
+
* PM's one call into `@vibesdotdev/identity`. The caller holds the root: an
|
|
29
|
+
* `AdmittedWorkspace.root`, or a root the daemon was admitted with. Nothing
|
|
30
|
+
* here decides which workspace a process is in. A blank root is refused.
|
|
31
|
+
*/
|
|
32
|
+
export declare function admittedWorkspaceIdentity(root: string): WorkspaceIdentity;
|
|
33
|
+
/** A workspace path in the one normalized form its identity uses. */
|
|
34
|
+
export declare function normalizeWorkspaceRoot(path: string): string;
|
|
35
|
+
/** Whether `root` is `path` or one of its ancestors, compared segment by segment. */
|
|
36
|
+
export declare function isSegmentPrefix(root: string, path: string): boolean;
|
|
37
|
+
/**
|
|
38
|
+
* The innermost admitted record whose root contains `binding`, or null. Pure:
|
|
39
|
+
* the caller hands it the records it read.
|
|
40
|
+
*/
|
|
41
|
+
export declare function innermostAdmittedWorkspace(records: readonly AdmittedWorkspace[], binding: string): AdmittedWorkspace | null;
|
|
42
|
+
export declare function workspaceNotAdmitted(binding: string): CapabilityError;
|
|
43
|
+
export declare function isWorkspaceNotAdmitted(error: CaughtFailure): error is CapabilityError;
|
|
44
|
+
/** The admitted workspace of `runtime`'s binding, through its `pm/admitted-workspace` context. */
|
|
45
|
+
export declare function requireAdmittedWorkspace(runtime: Pick<RuntimeRef, 'context'>): Promise<AdmittedWorkspace>;
|
|
46
|
+
//# sourceMappingURL=admission.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"admission.d.ts","sourceRoot":"","sources":["../src/admission.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAEH,OAAO,EAA4B,KAAK,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AACzF,OAAO,EAAE,eAAe,EAAqB,KAAK,aAAa,EAAE,KAAK,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAC9G,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAEhE,OAAO,EACN,gBAAgB,EAChB,uBAAuB,EACvB,wBAAwB,EACxB,KAAK,UAAU,EACf,KAAK,iBAAiB,EACtB,KAAK,kBAAkB,EACvB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,yBAAyB,EAAE,MAAM,oCAAoC,CAAC;AAE/E,eAAO,MAAM,gCAAgC,0BAA0B,CAAC;AACxE,eAAO,MAAM,sBAAsB,2BAA2B,CAAC;AAE/D;;;;;GAKG;AACH,wBAAgB,yBAAyB,CAAC,IAAI,EAAE,MAAM,GAAG,iBAAiB,CAOzE;AAED,qEAAqE;AACrE,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAE3D;AAED,qFAAqF;AACrF,wBAAgB,eAAe,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,OAAO,CAMnE;AAED;;;GAGG;AACH,wBAAgB,0BAA0B,CACzC,OAAO,EAAE,SAAS,iBAAiB,EAAE,EACrC,OAAO,EAAE,MAAM,GACb,iBAAiB,GAAG,IAAI,CAQ1B;AAED,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,MAAM,GAAG,eAAe,CAMrE;AAED,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,aAAa,GAAG,KAAK,IAAI,eAAe,CAErF;AAED,kGAAkG;AAClG,wBAAgB,wBAAwB,CACvC,OAAO,EAAE,IAAI,CAAC,UAAU,EAAE,SAAS,CAAC,GAClC,OAAO,CAAC,iBAAiB,CAAC,CAE5B"}
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Workspace admission (framework-M8, D15; rc02-rc03 §2.4).
|
|
3
|
+
*
|
|
4
|
+
* PM supervises only admitted workspaces. The admission record lives in the
|
|
5
|
+
* `pm.workspaces` storage manifest under `vibesHome` (`./admission-store.ts`).
|
|
6
|
+
* Action commands that need the workspace runtime (`vibes pm start`, editor /
|
|
7
|
+
* vessel launch via `ensureWorkspaceRuntime`) write a `user` admission.
|
|
8
|
+
*
|
|
9
|
+
* The `pm/admitted-workspace` context answers, for the runtime's workspace
|
|
10
|
+
* binding (`runtime/workspace-path`), the innermost admitted record whose root
|
|
11
|
+
* is a segment-wise prefix of that binding. With none it throws
|
|
12
|
+
* `PERMISSION_DENIED` `workspace-not-admitted`. `toolingId(admitted.root)`
|
|
13
|
+
* names the PM socket, pid, lock, state and logs, the runtime daemon's
|
|
14
|
+
* sockets and pid, and the workers socket, so every nested checkout of an
|
|
15
|
+
* admitted workspace reaches that workspace's one daemon.
|
|
16
|
+
*
|
|
17
|
+
* This module is pure (no store): the context id, the rule and the error.
|
|
18
|
+
*/
|
|
19
|
+
import { resolveWorkspaceIdentity } from '@vibesdotdev/identity';
|
|
20
|
+
import { CapabilityError, isCapabilityError } from '@vibesdotdev/kernel';
|
|
21
|
+
export { AdmittedBySchema, AdmittedWorkspaceSchema, AdmittedWorkspacesSchema } from "./schemas/admission.js";
|
|
22
|
+
export { PM_WORKSPACES_MANIFEST_ID } from "./storage/workspaces.descriptor.js";
|
|
23
|
+
export const PM_ADMITTED_WORKSPACE_CONTEXT_ID = 'pm/admitted-workspace';
|
|
24
|
+
export const WORKSPACE_NOT_ADMITTED = 'workspace-not-admitted';
|
|
25
|
+
/**
|
|
26
|
+
* The identity (normalized path, slug, hash, tooling id) of an admitted root:
|
|
27
|
+
* PM's one call into `@vibesdotdev/identity`. The caller holds the root: an
|
|
28
|
+
* `AdmittedWorkspace.root`, or a root the daemon was admitted with. Nothing
|
|
29
|
+
* here decides which workspace a process is in. A blank root is refused.
|
|
30
|
+
*/
|
|
31
|
+
export function admittedWorkspaceIdentity(root) {
|
|
32
|
+
if (!root.trim()) {
|
|
33
|
+
throw new CapabilityError('A PM workspace identity needs a non-empty admitted root.', 'INVALID_INPUT', {
|
|
34
|
+
reason: 'workspace-root-empty'
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
|
+
return resolveWorkspaceIdentity(root);
|
|
38
|
+
}
|
|
39
|
+
/** A workspace path in the one normalized form its identity uses. */
|
|
40
|
+
export function normalizeWorkspaceRoot(path) {
|
|
41
|
+
return admittedWorkspaceIdentity(path).workspacePath;
|
|
42
|
+
}
|
|
43
|
+
/** Whether `root` is `path` or one of its ancestors, compared segment by segment. */
|
|
44
|
+
export function isSegmentPrefix(root, path) {
|
|
45
|
+
const normalizedRoot = normalizeWorkspaceRoot(root);
|
|
46
|
+
const normalizedPath = normalizeWorkspaceRoot(path);
|
|
47
|
+
if (normalizedRoot === normalizedPath)
|
|
48
|
+
return true;
|
|
49
|
+
const withSeparator = normalizedRoot.endsWith('/') ? normalizedRoot : `${normalizedRoot}/`;
|
|
50
|
+
return normalizedPath.startsWith(withSeparator);
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* The innermost admitted record whose root contains `binding`, or null. Pure:
|
|
54
|
+
* the caller hands it the records it read.
|
|
55
|
+
*/
|
|
56
|
+
export function innermostAdmittedWorkspace(records, binding) {
|
|
57
|
+
let innermost = null;
|
|
58
|
+
for (const record of records) {
|
|
59
|
+
if (!isSegmentPrefix(record.root, binding))
|
|
60
|
+
continue;
|
|
61
|
+
const depth = normalizeWorkspaceRoot(record.root).split('/').filter(Boolean).length;
|
|
62
|
+
if (!innermost || depth > innermost.depth)
|
|
63
|
+
innermost = { record, depth };
|
|
64
|
+
}
|
|
65
|
+
return innermost?.record ?? null;
|
|
66
|
+
}
|
|
67
|
+
export function workspaceNotAdmitted(binding) {
|
|
68
|
+
return new CapabilityError(`The workspace '${binding}' is not admitted to PM.`, 'PERMISSION_DENIED', {
|
|
69
|
+
reason: WORKSPACE_NOT_ADMITTED,
|
|
70
|
+
recoveryHint: "Run 'vibes pm start' inside the workspace to admit it.",
|
|
71
|
+
details: { workspace: binding }
|
|
72
|
+
});
|
|
73
|
+
}
|
|
74
|
+
export function isWorkspaceNotAdmitted(error) {
|
|
75
|
+
return error instanceof Error && isCapabilityError(error) && error.reason === WORKSPACE_NOT_ADMITTED;
|
|
76
|
+
}
|
|
77
|
+
/** The admitted workspace of `runtime`'s binding, through its `pm/admitted-workspace` context. */
|
|
78
|
+
export function requireAdmittedWorkspace(runtime) {
|
|
79
|
+
return runtime.context(PM_ADMITTED_WORKSPACE_CONTEXT_ID);
|
|
80
|
+
}
|
|
81
|
+
//# sourceMappingURL=admission.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"admission.js","sourceRoot":"","sources":["../src/admission.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAEH,OAAO,EAAE,wBAAwB,EAA0B,MAAM,uBAAuB,CAAC;AACzF,OAAO,EAAE,eAAe,EAAE,iBAAiB,EAAuC,MAAM,qBAAqB,CAAC;AAG9G,OAAO,EACN,gBAAgB,EAChB,uBAAuB,EACvB,wBAAwB,EAIxB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,yBAAyB,EAAE,MAAM,oCAAoC,CAAC;AAE/E,MAAM,CAAC,MAAM,gCAAgC,GAAG,uBAAuB,CAAC;AACxE,MAAM,CAAC,MAAM,sBAAsB,GAAG,wBAAwB,CAAC;AAE/D;;;;;GAKG;AACH,MAAM,UAAU,yBAAyB,CAAC,IAAY;IACrD,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE,EAAE,CAAC;QAClB,MAAM,IAAI,eAAe,CAAC,0DAA0D,EAAE,eAAe,EAAE;YACtG,MAAM,EAAE,sBAAsB;SAC9B,CAAC,CAAC;IACJ,CAAC;IACD,OAAO,wBAAwB,CAAC,IAAI,CAAC,CAAC;AACvC,CAAC;AAED,qEAAqE;AACrE,MAAM,UAAU,sBAAsB,CAAC,IAAY;IAClD,OAAO,yBAAyB,CAAC,IAAI,CAAC,CAAC,aAAa,CAAC;AACtD,CAAC;AAED,qFAAqF;AACrF,MAAM,UAAU,eAAe,CAAC,IAAY,EAAE,IAAY;IACzD,MAAM,cAAc,GAAG,sBAAsB,CAAC,IAAI,CAAC,CAAC;IACpD,MAAM,cAAc,GAAG,sBAAsB,CAAC,IAAI,CAAC,CAAC;IACpD,IAAI,cAAc,KAAK,cAAc;QAAE,OAAO,IAAI,CAAC;IACnD,MAAM,aAAa,GAAG,cAAc,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,GAAG,cAAc,GAAG,CAAC;IAC3F,OAAO,cAAc,CAAC,UAAU,CAAC,aAAa,CAAC,CAAC;AACjD,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,0BAA0B,CACzC,OAAqC,EACrC,OAAe;IAEf,IAAI,SAAS,GAAwD,IAAI,CAAC;IAC1E,KAAK,MAAM,MAAM,IAAI,OAAO,EAAE,CAAC;QAC9B,IAAI,CAAC,eAAe,CAAC,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC;YAAE,SAAS;QACrD,MAAM,KAAK,GAAG,sBAAsB,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,MAAM,CAAC;QACpF,IAAI,CAAC,SAAS,IAAI,KAAK,GAAG,SAAS,CAAC,KAAK;YAAE,SAAS,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC;IAC1E,CAAC;IACD,OAAO,SAAS,EAAE,MAAM,IAAI,IAAI,CAAC;AAClC,CAAC;AAED,MAAM,UAAU,oBAAoB,CAAC,OAAe;IACnD,OAAO,IAAI,eAAe,CAAC,kBAAkB,OAAO,0BAA0B,EAAE,mBAAmB,EAAE;QACpG,MAAM,EAAE,sBAAsB;QAC9B,YAAY,EAAE,wDAAwD;QACtE,OAAO,EAAE,EAAE,SAAS,EAAE,OAAO,EAAE;KAC/B,CAAC,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,sBAAsB,CAAC,KAAoB;IAC1D,OAAO,KAAK,YAAY,KAAK,IAAI,iBAAiB,CAAC,KAAK,CAAC,IAAI,KAAK,CAAC,MAAM,KAAK,sBAAsB,CAAC;AACtG,CAAC;AAED,kGAAkG;AAClG,MAAM,UAAU,wBAAwB,CACvC,OAAoC;IAEpC,OAAO,OAAO,CAAC,OAAO,CAAoB,gCAAgC,CAAC,CAAC;AAC7E,CAAC"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* PM Admitted Workspace Context Descriptor
|
|
3
|
+
*
|
|
4
|
+
* `pm/admitted-workspace`: the innermost admitted workspace containing the
|
|
5
|
+
* runtime's workspace binding (framework-M8, rc02-rc03 §2.4); `PERMISSION_DENIED`
|
|
6
|
+
* `workspace-not-admitted` when none does. Its `toolingId(root)` names the PM
|
|
7
|
+
* socket, pid, lock, state and logs, the runtime daemon's sockets and pid, and
|
|
8
|
+
* the workers socket.
|
|
9
|
+
*/
|
|
10
|
+
declare const _default: {
|
|
11
|
+
id: string;
|
|
12
|
+
kind: "context";
|
|
13
|
+
name?: string | undefined;
|
|
14
|
+
description?: string | undefined;
|
|
15
|
+
tags?: string[] | undefined;
|
|
16
|
+
hardware?: string[] | undefined;
|
|
17
|
+
enabled?: boolean | undefined;
|
|
18
|
+
priority?: number | undefined;
|
|
19
|
+
capabilityId?: string | undefined;
|
|
20
|
+
requiredContext?: string[] | undefined;
|
|
21
|
+
optionalContext?: string[] | undefined;
|
|
22
|
+
retention?: string | {
|
|
23
|
+
reason: string;
|
|
24
|
+
maxAgeDays?: number | undefined;
|
|
25
|
+
maxEntries?: number | undefined;
|
|
26
|
+
maxBytes?: number | undefined;
|
|
27
|
+
cascadeFrom?: string | undefined;
|
|
28
|
+
ageField?: string | undefined;
|
|
29
|
+
enforcedBy?: string | undefined;
|
|
30
|
+
} | undefined;
|
|
31
|
+
valueKind?: "data" | "service" | undefined;
|
|
32
|
+
valueSchema?: unknown;
|
|
33
|
+
config?: {
|
|
34
|
+
sources: ("literal" | "workspace" | "floor")[];
|
|
35
|
+
subset?: true | undefined;
|
|
36
|
+
} | undefined;
|
|
37
|
+
};
|
|
38
|
+
export default _default;
|
|
39
|
+
//# sourceMappingURL=admitted-workspace.context.descriptor.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"admitted-workspace.context.descriptor.d.ts","sourceRoot":"","sources":["../src/admitted-workspace.context.descriptor.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAKH,wBAMG"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* PM Admitted Workspace Context Descriptor
|
|
3
|
+
*
|
|
4
|
+
* `pm/admitted-workspace`: the innermost admitted workspace containing the
|
|
5
|
+
* runtime's workspace binding (framework-M8, rc02-rc03 §2.4); `PERMISSION_DENIED`
|
|
6
|
+
* `workspace-not-admitted` when none does. Its `toolingId(root)` names the PM
|
|
7
|
+
* socket, pid, lock, state and logs, the runtime daemon's sockets and pid, and
|
|
8
|
+
* the workers socket.
|
|
9
|
+
*/
|
|
10
|
+
import { createContextDescriptor } from '@vibesdotdev/kernel/factory/context';
|
|
11
|
+
import { PM_ADMITTED_WORKSPACE_CONTEXT_ID } from "./admission.js";
|
|
12
|
+
export default createContextDescriptor({
|
|
13
|
+
id: PM_ADMITTED_WORKSPACE_CONTEXT_ID,
|
|
14
|
+
name: 'PM admitted workspace',
|
|
15
|
+
description: "The innermost admitted workspace containing this runtime's workspace binding; PERMISSION_DENIED workspace-not-admitted otherwise.",
|
|
16
|
+
hardware: ['consumer']
|
|
17
|
+
});
|
|
18
|
+
//# sourceMappingURL=admitted-workspace.context.descriptor.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"admitted-workspace.context.descriptor.js","sourceRoot":"","sources":["../src/admitted-workspace.context.descriptor.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,EAAE,uBAAuB,EAAE,MAAM,qCAAqC,CAAC;AAC9E,OAAO,EAAE,gCAAgC,EAAE,MAAM,gBAAgB,CAAC;AAElE,eAAe,uBAAuB,CAAC;IACtC,EAAE,EAAE,gCAAgC;IACpC,IAAI,EAAE,uBAAuB;IAC7B,WAAW,EACV,mIAAmI;IACpI,QAAQ,EAAE,CAAC,UAAU,CAAC;CACtB,CAAC,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `pm/admitted-workspace` provider (framework-M8, rc02-rc03 §2.4): the
|
|
3
|
+
* innermost admitted record containing the resolving runtime's
|
|
4
|
+
* `runtime/workspace-path`, read from the `pm.workspaces` manifest on every
|
|
5
|
+
* resolution; `workspace-not-admitted` when none contains it.
|
|
6
|
+
*/
|
|
7
|
+
import type { RuntimeRef } from '@vibesdotdev/kernel';
|
|
8
|
+
declare const defaultExport: {
|
|
9
|
+
provide: (runtime: RuntimeRef) => Promise<{
|
|
10
|
+
root: string;
|
|
11
|
+
admittedAt: string;
|
|
12
|
+
admittedBy: "user" | "install";
|
|
13
|
+
}>;
|
|
14
|
+
};
|
|
15
|
+
export default defaultExport;
|
|
16
|
+
//# sourceMappingURL=admitted-workspace.context.impl.consumer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"admitted-workspace.context.impl.consumer.d.ts","sourceRoot":"","sources":["../src/admitted-workspace.context.impl.consumer.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAItD,QAAA,MAAM,aAAa;uBACC,UAAU;;;;;CAC7B,CAAC;AAEF,eAAe,aAAa,CAAC"}
|