@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
|
@@ -0,0 +1,767 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Resource Manager
|
|
3
|
+
* Manages resource lifecycle using pluggable providers
|
|
4
|
+
*/
|
|
5
|
+
import * as z from 'zod/v4';
|
|
6
|
+
import { CapabilityError, CaughtFailureSchema, isCapabilityError, valueFreeFailure } from '@vibesdotdev/kernel';
|
|
7
|
+
import { getLogger } from '@vibesdotdev/logging';
|
|
8
|
+
import { composeHookEnv } from "../helpers/process-credentials.js";
|
|
9
|
+
import { redactedExcerpt } from '@vibesdotdev/shared/utils';
|
|
10
|
+
import { isWaitTimeout } from "../utils/bounded-wait.js";
|
|
11
|
+
import { attempt, failureText } from "../utils/attempt.js";
|
|
12
|
+
import { getRuntimeHostCommands, requireRuntimeCwd } from '@vibesdotdev/kernel';
|
|
13
|
+
import { runCapture } from '@vibesdotdev/kernel/execution';
|
|
14
|
+
import { resolveHookCommand } from "../services/process-command.js";
|
|
15
|
+
/** The reason of the deadline a bounded status probe raises. */
|
|
16
|
+
const STATUS_TIMEOUT_REASON = 'pm-resource-status-timeout';
|
|
17
|
+
/** A caller's probe bound ran out (the shared probe keeps running for other callers). */
|
|
18
|
+
export function statusProbeTimeout(timeoutMs) {
|
|
19
|
+
return new CapabilityError(`Resource status probe timed out after ${timeoutMs}ms`, 'TIMEOUT', {
|
|
20
|
+
reason: STATUS_TIMEOUT_REASON,
|
|
21
|
+
details: { timeoutMs }
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
const StatusTimeoutDetailsSchema = z.object({ timeoutMs: z.number() });
|
|
25
|
+
/** The bound a failure ran out of when it is the status probe deadline; otherwise none. */
|
|
26
|
+
function readStatusTimeoutMs(failure) {
|
|
27
|
+
if (!isCapabilityError(failure) || failure.reason !== STATUS_TIMEOUT_REASON)
|
|
28
|
+
return undefined;
|
|
29
|
+
const details = StatusTimeoutDetailsSchema.safeParse(failure.details);
|
|
30
|
+
return details.success ? details.data.timeoutMs : undefined;
|
|
31
|
+
}
|
|
32
|
+
const StatusTimeoutOptionSchema = z.number().positive();
|
|
33
|
+
function normalizeStatusTimeoutMs(options) {
|
|
34
|
+
const timeoutMs = StatusTimeoutOptionSchema.safeParse(options.timeoutMs);
|
|
35
|
+
return timeoutMs.success ? timeoutMs.data : undefined;
|
|
36
|
+
}
|
|
37
|
+
const SourceHashSchema = z.string();
|
|
38
|
+
/** The most of a hook's output a failure message carries. */
|
|
39
|
+
const HOOK_OUTPUT_EXCERPT_CHARS = 4_000;
|
|
40
|
+
/**
|
|
41
|
+
* Statuses that mean "a setup/teardown-shaped operation (which may include
|
|
42
|
+
* a lifecycle hook) is currently in flight for this resource". `reload()`
|
|
43
|
+
* uses this as the "no hook running" gate from the config-watcher hot-reload
|
|
44
|
+
* contract: a config-only edit must never race a running hook.
|
|
45
|
+
*/
|
|
46
|
+
const RESOURCE_BUSY_STATUSES = new Set([
|
|
47
|
+
'creating',
|
|
48
|
+
'updating',
|
|
49
|
+
'stopping',
|
|
50
|
+
'deleting'
|
|
51
|
+
]);
|
|
52
|
+
export class ResourceManager {
|
|
53
|
+
store;
|
|
54
|
+
providers;
|
|
55
|
+
getRuntime;
|
|
56
|
+
inFlightStatusChecks = new Map();
|
|
57
|
+
cachedConfigs;
|
|
58
|
+
invalidateConfigCache() {
|
|
59
|
+
this.cachedConfigs = undefined;
|
|
60
|
+
}
|
|
61
|
+
async getOrLoadResourceConfigs() {
|
|
62
|
+
const now = Date.now();
|
|
63
|
+
if (this.cachedConfigs && now - this.cachedConfigs.timestamp < 30_000) {
|
|
64
|
+
return this.cachedConfigs.configs;
|
|
65
|
+
}
|
|
66
|
+
const { readPMGraph } = await import("../graph.js");
|
|
67
|
+
const configs = (await readPMGraph(this.getRuntime())).resources;
|
|
68
|
+
this.cachedConfigs = { configs, timestamp: now };
|
|
69
|
+
return configs;
|
|
70
|
+
}
|
|
71
|
+
/** The handed runtime's Logging, read per entry so it follows hot-reload generations (C083a). */
|
|
72
|
+
get log() {
|
|
73
|
+
return getLogger('pm:resource-manager', this.getRuntime());
|
|
74
|
+
}
|
|
75
|
+
constructor(store, providers,
|
|
76
|
+
/** The daemon's serve host runtime; a getter, so it follows hot-reload generations. */
|
|
77
|
+
getRuntime) {
|
|
78
|
+
this.store = store;
|
|
79
|
+
this.providers = providers;
|
|
80
|
+
this.getRuntime = getRuntime;
|
|
81
|
+
}
|
|
82
|
+
/**
|
|
83
|
+
* The config each resource was last set up with by THIS manager (its
|
|
84
|
+
* daemon's state, never a provider module's singleton map): what
|
|
85
|
+
* status/stop/resume/teardown act on. Cleared on teardown.
|
|
86
|
+
*/
|
|
87
|
+
appliedConfigs = new Map();
|
|
88
|
+
/** What every provider call runs against: the current generation of the handed runtime, and the resource's config. */
|
|
89
|
+
providerContext(config) {
|
|
90
|
+
const context = { runtime: this.getRuntime() };
|
|
91
|
+
if (config)
|
|
92
|
+
return { ...context, config };
|
|
93
|
+
return context;
|
|
94
|
+
}
|
|
95
|
+
/**
|
|
96
|
+
* The context for a call that names a resource by id: the config this
|
|
97
|
+
* manager applied, else the caller's explicit config, else (a resource set
|
|
98
|
+
* up before this daemon started) its declared config from the graph; none
|
|
99
|
+
* when it is none of these.
|
|
100
|
+
*/
|
|
101
|
+
async providerContextFor(id, explicit) {
|
|
102
|
+
const applied = this.appliedConfigs.get(id) ?? explicit;
|
|
103
|
+
if (applied)
|
|
104
|
+
return this.providerContext(applied);
|
|
105
|
+
const declared = (await this.getOrLoadResourceConfigs()).find((config) => config.id === id);
|
|
106
|
+
return this.providerContext(declared);
|
|
107
|
+
}
|
|
108
|
+
getOrStartProviderStatus(id, provider, explicit) {
|
|
109
|
+
const existing = this.inFlightStatusChecks.get(id);
|
|
110
|
+
if (existing) {
|
|
111
|
+
return existing;
|
|
112
|
+
}
|
|
113
|
+
const status = this.providerContextFor(id, explicit)
|
|
114
|
+
.then((context) => provider.status(id, context))
|
|
115
|
+
.finally(() => {
|
|
116
|
+
this.inFlightStatusChecks.delete(id);
|
|
117
|
+
});
|
|
118
|
+
this.inFlightStatusChecks.set(id, status);
|
|
119
|
+
return status;
|
|
120
|
+
}
|
|
121
|
+
async providerStatus(id, provider, options, explicit) {
|
|
122
|
+
const status = this.getOrStartProviderStatus(id, provider, explicit);
|
|
123
|
+
const timeoutMs = normalizeStatusTimeoutMs(options);
|
|
124
|
+
if (!timeoutMs) {
|
|
125
|
+
return status;
|
|
126
|
+
}
|
|
127
|
+
// The shared in-flight probe keeps running for other callers; this
|
|
128
|
+
// caller's bound is a lifecycle wait (RC07).
|
|
129
|
+
const bounded = await attempt(() => this.getRuntime().lifecycle.wait(() => status, { timeoutMs, reason: 'pm-resource-status' }));
|
|
130
|
+
if (bounded.ok)
|
|
131
|
+
return bounded.value;
|
|
132
|
+
if (isWaitTimeout(bounded.failure))
|
|
133
|
+
throw statusProbeTimeout(timeoutMs);
|
|
134
|
+
throw bounded.failure;
|
|
135
|
+
}
|
|
136
|
+
timeoutFallbackState(state, timeoutMs) {
|
|
137
|
+
const now = new Date();
|
|
138
|
+
return {
|
|
139
|
+
...state,
|
|
140
|
+
error: state.error ?? statusProbeTimeout(timeoutMs).message,
|
|
141
|
+
lastChecked: now,
|
|
142
|
+
metadata: {
|
|
143
|
+
...state.metadata,
|
|
144
|
+
statusProbe: {
|
|
145
|
+
timedOut: true,
|
|
146
|
+
timeoutMs,
|
|
147
|
+
checkedAt: now.toISOString()
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
};
|
|
151
|
+
}
|
|
152
|
+
/** The stored state, marked with the probe failure that stopped it being refreshed (nothing is persisted). */
|
|
153
|
+
probeFailedState(state, failure) {
|
|
154
|
+
const now = new Date();
|
|
155
|
+
return {
|
|
156
|
+
...state,
|
|
157
|
+
error: state.error ?? failureText(failure),
|
|
158
|
+
lastChecked: now,
|
|
159
|
+
metadata: {
|
|
160
|
+
...state.metadata,
|
|
161
|
+
statusProbe: {
|
|
162
|
+
failed: true,
|
|
163
|
+
failure: failureText(failure),
|
|
164
|
+
checkedAt: now.toISOString()
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
};
|
|
168
|
+
}
|
|
169
|
+
/**
|
|
170
|
+
* Setup (create or ensure) a resource.
|
|
171
|
+
*
|
|
172
|
+
* When the provider implements `computeSourceHash` and a stored
|
|
173
|
+
* state is already `ready` with a matching hash, setup short-circuits
|
|
174
|
+
* with `result.skipped = true` and does not re-invoke the provider.
|
|
175
|
+
* Pass `{ force: true }` to bypass the drift check and always apply.
|
|
176
|
+
*/
|
|
177
|
+
async setup(config, options = {}) {
|
|
178
|
+
// Get provider for this resource type
|
|
179
|
+
const provider = await this.providers.get(config.type);
|
|
180
|
+
// Drift detection: if the provider supports source hashing and we
|
|
181
|
+
// have a prior ready state with a matching hash, skip the re-apply.
|
|
182
|
+
let freshHash = null;
|
|
183
|
+
if (provider.computeSourceHash) {
|
|
184
|
+
const computeSourceHash = provider.computeSourceHash.bind(provider);
|
|
185
|
+
const hashed = await attempt(() => computeSourceHash(config, this.providerContext(config)));
|
|
186
|
+
if (hashed.ok) {
|
|
187
|
+
freshHash = hashed.value;
|
|
188
|
+
}
|
|
189
|
+
else {
|
|
190
|
+
this.log.warn('computeSourceHash failed', {
|
|
191
|
+
resourceId: config.id,
|
|
192
|
+
failure: valueFreeFailure(hashed.failure)
|
|
193
|
+
});
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
if (!options.force && freshHash) {
|
|
197
|
+
const prior = await this.store.getResource(config.id);
|
|
198
|
+
const storedHash = SourceHashSchema.safeParse(prior?.metadata?.sourceHash);
|
|
199
|
+
const priorHash = storedHash.success ? storedHash.data : undefined;
|
|
200
|
+
if (prior && prior.status === 'ready' && priorHash && priorHash === freshHash) {
|
|
201
|
+
const refreshed = {
|
|
202
|
+
...prior,
|
|
203
|
+
lastChecked: new Date()
|
|
204
|
+
};
|
|
205
|
+
await this.store.setResource(refreshed);
|
|
206
|
+
return {
|
|
207
|
+
state: refreshed,
|
|
208
|
+
skipped: true,
|
|
209
|
+
skipReason: 'source unchanged'
|
|
210
|
+
};
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
// Update state to 'creating'
|
|
214
|
+
const now = new Date();
|
|
215
|
+
const existingForCreate = await this.store.getResource(config.id);
|
|
216
|
+
const creatingState = {
|
|
217
|
+
id: config.id,
|
|
218
|
+
type: config.type,
|
|
219
|
+
status: 'creating',
|
|
220
|
+
createdAt: existingForCreate?.createdAt ?? now,
|
|
221
|
+
lastChecked: now
|
|
222
|
+
};
|
|
223
|
+
await this.store.setResource(creatingState);
|
|
224
|
+
try {
|
|
225
|
+
// Call provider setup
|
|
226
|
+
this.appliedConfigs.set(config.id, config);
|
|
227
|
+
const result = await provider.setup(config, this.providerContext(config));
|
|
228
|
+
// Merge the fresh source hash into the state metadata so the
|
|
229
|
+
// next setup() call can detect drift without re-invoking the
|
|
230
|
+
// provider. Providers are free to write their own metadata
|
|
231
|
+
// too — the manager only owns `sourceHash`.
|
|
232
|
+
if (freshHash) {
|
|
233
|
+
result.state = {
|
|
234
|
+
...result.state,
|
|
235
|
+
metadata: {
|
|
236
|
+
...result.state.metadata,
|
|
237
|
+
sourceHash: freshHash
|
|
238
|
+
}
|
|
239
|
+
};
|
|
240
|
+
}
|
|
241
|
+
const appliedAt = new Date();
|
|
242
|
+
result.state = {
|
|
243
|
+
...result.state,
|
|
244
|
+
createdAt: result.state.createdAt ?? appliedAt,
|
|
245
|
+
updatedAt: appliedAt
|
|
246
|
+
};
|
|
247
|
+
// Save successful state
|
|
248
|
+
await this.store.setResource(result.state);
|
|
249
|
+
// Run onCreate hook if specified
|
|
250
|
+
if (config.onCreate) {
|
|
251
|
+
await this.runHook(config.onCreate, config.id);
|
|
252
|
+
}
|
|
253
|
+
// Wait for ready if configured
|
|
254
|
+
if (config.waitForReady && provider.checkReady) {
|
|
255
|
+
await this.waitForReady(config, result.state, {
|
|
256
|
+
timeout: config.readyTimeout
|
|
257
|
+
});
|
|
258
|
+
}
|
|
259
|
+
return result;
|
|
260
|
+
}
|
|
261
|
+
catch (error) {
|
|
262
|
+
// CRITICAL FIX (Issue 2.6): Preserve previous state context when saving error
|
|
263
|
+
const existingState = await this.store.getResource(config.id);
|
|
264
|
+
const errorMessage = failureText(CaughtFailureSchema.parse(error));
|
|
265
|
+
const errorState = {
|
|
266
|
+
// Preserve all existing fields
|
|
267
|
+
...(existingState ?? {
|
|
268
|
+
id: config.id,
|
|
269
|
+
type: config.type
|
|
270
|
+
}),
|
|
271
|
+
// Update error fields with history
|
|
272
|
+
status: 'error',
|
|
273
|
+
error: errorMessage,
|
|
274
|
+
// Append to error history if available
|
|
275
|
+
lastError: existingState?.lastError
|
|
276
|
+
? `${existingState.lastError} | New error: ${errorMessage}`
|
|
277
|
+
: errorMessage,
|
|
278
|
+
lastChecked: new Date()
|
|
279
|
+
};
|
|
280
|
+
await this.store.setResource(errorState);
|
|
281
|
+
throw error;
|
|
282
|
+
}
|
|
283
|
+
}
|
|
284
|
+
/**
|
|
285
|
+
* Hot-reload a resource's config without a daemon restart.
|
|
286
|
+
*
|
|
287
|
+
* Mirrors process hot-reload (`ProcessManager.register`): the caller
|
|
288
|
+
* (ConfigWatcher) diffs discovered configs against what it last saw and
|
|
289
|
+
* only calls `reload()` for ids whose config actually changed.
|
|
290
|
+
*
|
|
291
|
+
* - Idle resource (no setup/teardown operation in flight): the new
|
|
292
|
+
* config is applied via `setup(config, { force: true })` — this
|
|
293
|
+
* bypasses the source-hash short-circuit (the on-disk config changed
|
|
294
|
+
* by definition, e.g. a hook path fix) and re-runs the provider's
|
|
295
|
+
* setup + onCreate hook + readiness check against the new config, the
|
|
296
|
+
* same path a `pm resource apply` would take.
|
|
297
|
+
* - Busy resource (status is creating/updating/stopping/deleting — a
|
|
298
|
+
* hook is presumed in flight): returns `{ status: 'deferred' }` and
|
|
299
|
+
* does nothing, so the swap can never race a running hook. The caller
|
|
300
|
+
* is responsible for retrying once the resource is idle again.
|
|
301
|
+
*/
|
|
302
|
+
async reload(config) {
|
|
303
|
+
const existing = await this.store.getResource(config.id);
|
|
304
|
+
if (existing && RESOURCE_BUSY_STATUSES.has(existing.status)) {
|
|
305
|
+
return { status: 'deferred' };
|
|
306
|
+
}
|
|
307
|
+
const result = await this.setup(config, { force: true });
|
|
308
|
+
// A declared `onUpdate` hook runs when an existing resource took a new config.
|
|
309
|
+
if (existing && config.onUpdate) {
|
|
310
|
+
await this.runHook(config.onUpdate, config.id);
|
|
311
|
+
}
|
|
312
|
+
return { status: 'applied', state: result.state };
|
|
313
|
+
}
|
|
314
|
+
/**
|
|
315
|
+
* Stop a resource (non-destructive)
|
|
316
|
+
* Scales down deployments to 0 replicas without deleting resources
|
|
317
|
+
*/
|
|
318
|
+
async stop(id, state) {
|
|
319
|
+
// Get current state if not provided
|
|
320
|
+
const resolvedState = state ?? (await this.store.getResource(id));
|
|
321
|
+
if (!resolvedState) {
|
|
322
|
+
// Resource doesn't exist in state
|
|
323
|
+
return;
|
|
324
|
+
}
|
|
325
|
+
// Get provider
|
|
326
|
+
const provider = await this.providers.get(resolvedState.type);
|
|
327
|
+
// Check if provider supports stop
|
|
328
|
+
if (!provider.stop) {
|
|
329
|
+
// Provider doesn't support stop - this is a no-op
|
|
330
|
+
// Resource stays running (e.g., for resources that can't be "stopped")
|
|
331
|
+
this.log.info('Provider does not support stop, skipping', {
|
|
332
|
+
resourceId: id,
|
|
333
|
+
resourceType: resolvedState.type
|
|
334
|
+
});
|
|
335
|
+
return;
|
|
336
|
+
}
|
|
337
|
+
// Update state to 'stopping'
|
|
338
|
+
await this.store.updateResource(id, {
|
|
339
|
+
status: 'stopping',
|
|
340
|
+
lastChecked: new Date()
|
|
341
|
+
});
|
|
342
|
+
const providerStop = provider.stop.bind(provider);
|
|
343
|
+
const stopped = await attempt(async () => {
|
|
344
|
+
await providerStop(id, resolvedState, await this.providerContextFor(id));
|
|
345
|
+
// Update state to 'stopped'
|
|
346
|
+
await this.store.updateResource(id, {
|
|
347
|
+
status: 'stopped',
|
|
348
|
+
lastChecked: new Date()
|
|
349
|
+
});
|
|
350
|
+
});
|
|
351
|
+
if (!stopped.ok) {
|
|
352
|
+
// CRITICAL FIX (Issue 2.6): Get existing state to preserve error context
|
|
353
|
+
const existingState = await this.store.getResource(id);
|
|
354
|
+
const errorMessage = failureText(stopped.failure);
|
|
355
|
+
// Save error state but don't throw - stop failures shouldn't block other stops
|
|
356
|
+
await this.store.updateResource(id, {
|
|
357
|
+
status: 'error',
|
|
358
|
+
error: errorMessage,
|
|
359
|
+
lastError: existingState?.lastError
|
|
360
|
+
? `${existingState.lastError} | Stop error: ${errorMessage}`
|
|
361
|
+
: errorMessage,
|
|
362
|
+
lastChecked: new Date()
|
|
363
|
+
});
|
|
364
|
+
// Log but don't throw - allows other resources to continue stopping
|
|
365
|
+
this.log.error('Failed to stop resource', {
|
|
366
|
+
resourceId: id,
|
|
367
|
+
failure: valueFreeFailure(stopped.failure)
|
|
368
|
+
});
|
|
369
|
+
}
|
|
370
|
+
}
|
|
371
|
+
/**
|
|
372
|
+
* Resume a stopped resource
|
|
373
|
+
*/
|
|
374
|
+
async resume(id, state) {
|
|
375
|
+
// Get current state if not provided
|
|
376
|
+
const resolvedState = state ?? (await this.store.getResource(id));
|
|
377
|
+
if (!resolvedState) {
|
|
378
|
+
// Resource doesn't exist in state
|
|
379
|
+
return;
|
|
380
|
+
}
|
|
381
|
+
// Get provider
|
|
382
|
+
const provider = await this.providers.get(resolvedState.type);
|
|
383
|
+
// Check if provider supports resume
|
|
384
|
+
if (!provider.resume) {
|
|
385
|
+
// Provider doesn't support resume - this is a no-op
|
|
386
|
+
this.log.info('Provider does not support resume, skipping', {
|
|
387
|
+
resourceId: id,
|
|
388
|
+
resourceType: resolvedState.type
|
|
389
|
+
});
|
|
390
|
+
return;
|
|
391
|
+
}
|
|
392
|
+
// Update state to 'resuming'
|
|
393
|
+
await this.store.updateResource(id, {
|
|
394
|
+
status: 'creating', // Reuse 'creating' status for resuming
|
|
395
|
+
lastChecked: new Date()
|
|
396
|
+
});
|
|
397
|
+
try {
|
|
398
|
+
await provider.resume(id, resolvedState, await this.providerContextFor(id));
|
|
399
|
+
// Update state to 'ready'
|
|
400
|
+
await this.store.updateResource(id, {
|
|
401
|
+
status: 'ready',
|
|
402
|
+
lastChecked: new Date()
|
|
403
|
+
});
|
|
404
|
+
}
|
|
405
|
+
catch (error) {
|
|
406
|
+
// CRITICAL FIX (Issue 2.6): Get existing state to preserve error context
|
|
407
|
+
const existingState = await this.store.getResource(id);
|
|
408
|
+
const errorMessage = failureText(CaughtFailureSchema.parse(error));
|
|
409
|
+
await this.store.updateResource(id, {
|
|
410
|
+
status: 'error',
|
|
411
|
+
error: errorMessage,
|
|
412
|
+
lastError: existingState?.lastError
|
|
413
|
+
? `${existingState.lastError} | Resume error: ${errorMessage}`
|
|
414
|
+
: errorMessage,
|
|
415
|
+
lastChecked: new Date()
|
|
416
|
+
});
|
|
417
|
+
throw error;
|
|
418
|
+
}
|
|
419
|
+
}
|
|
420
|
+
/**
|
|
421
|
+
* Teardown (delete) a resource
|
|
422
|
+
*/
|
|
423
|
+
async teardown(id, state) {
|
|
424
|
+
// Get current state if not provided
|
|
425
|
+
const resolvedState = state ?? (await this.store.getResource(id));
|
|
426
|
+
if (!resolvedState) {
|
|
427
|
+
// Resource doesn't exist in state, but try to clean it up anyway
|
|
428
|
+
return;
|
|
429
|
+
}
|
|
430
|
+
// Get provider
|
|
431
|
+
const provider = await this.providers.get(resolvedState.type);
|
|
432
|
+
// Update state to 'deleting'
|
|
433
|
+
await this.store.updateResource(id, {
|
|
434
|
+
status: 'deleting',
|
|
435
|
+
lastChecked: new Date()
|
|
436
|
+
});
|
|
437
|
+
try {
|
|
438
|
+
// A declared `onDelete` hook runs before the provider tears down.
|
|
439
|
+
const context = await this.providerContextFor(id);
|
|
440
|
+
if (context.config?.onDelete) {
|
|
441
|
+
await this.runHook(context.config.onDelete, id);
|
|
442
|
+
}
|
|
443
|
+
await provider.teardown(id, resolvedState, context);
|
|
444
|
+
this.appliedConfigs.delete(id);
|
|
445
|
+
// Remove from state
|
|
446
|
+
await this.store.deleteResource(id);
|
|
447
|
+
}
|
|
448
|
+
catch (error) {
|
|
449
|
+
// CRITICAL FIX (Issue 2.6): Get existing state to preserve error context
|
|
450
|
+
const existingState = await this.store.getResource(id);
|
|
451
|
+
const errorMessage = failureText(CaughtFailureSchema.parse(error));
|
|
452
|
+
// Save error state
|
|
453
|
+
await this.store.updateResource(id, {
|
|
454
|
+
status: 'error',
|
|
455
|
+
error: errorMessage,
|
|
456
|
+
lastError: existingState?.lastError
|
|
457
|
+
? `${existingState.lastError} | Teardown error: ${errorMessage}`
|
|
458
|
+
: errorMessage,
|
|
459
|
+
lastChecked: new Date()
|
|
460
|
+
});
|
|
461
|
+
throw error;
|
|
462
|
+
}
|
|
463
|
+
}
|
|
464
|
+
/**
|
|
465
|
+
* Get resource status
|
|
466
|
+
*/
|
|
467
|
+
async status(id, options = {}, explicitConfig) {
|
|
468
|
+
// Try to get from state
|
|
469
|
+
const state = await this.store.getResource(id);
|
|
470
|
+
// Strengthen probe (per 019ea542 "Fleet resources ready + shaped" tranche):
|
|
471
|
+
// Previously only on !state (complete absence). But awareness resources (fleet/*)
|
|
472
|
+
// can have persisted 'missing' states (e.g. from prior provider.setup which returns 'missing'
|
|
473
|
+
// for read-only, or early runs before reg). Per pm/fleet/wire.ts + pm/SPEC.md §"Resource provider registry":
|
|
474
|
+
// providers always emit 'ready' + exact FleetDeploymentRecord[] / FleetCloudDevSlice[] shapes.
|
|
475
|
+
// list.impl (pm/src/cli/pm.list.impl.ts) + resource status impl collect via client.getResourceStatus
|
|
476
|
+
// and forward metadata for "fleet" section / json.
|
|
477
|
+
// The !state probe reads the declared resources through readPMGraph (the kernel-discovered
|
|
478
|
+
// 'pm/resource' descriptors plus config.plugins.pm; graph.ts).
|
|
479
|
+
// Extend condition to also probe on stored 'missing' or fleet/ types: always prefer provider 'ready'+shaped metadata
|
|
480
|
+
// over stale 'missing'. Persist from probe so getAll etc see shaped, and clears stale for future.
|
|
481
|
+
// This ensures BOTH `pm resource status <fleet-id> --json` and `pm list --env=... --json` "fleet" reliably have ready + records/slices.
|
|
482
|
+
// Reusable for awareness; runtime-first (fleet details+providers in pm/; manager/list/client in pm).
|
|
483
|
+
// No mutation (infra-deploy sole owner of real deploys).
|
|
484
|
+
if (!state || state.status === 'missing' || state.type.startsWith('fleet/')) {
|
|
485
|
+
// Resource not in state, or has stale 'missing', or is fleet awareness (per wire.ts).
|
|
486
|
+
// Probe provider directly (using loaded config) so shaped data (Fleet* per pm/fleet/wire.ts)
|
|
487
|
+
// is surfaced. readPMGraph reads the declared pm/resource descriptors (kernel discovery plus config.plugins.pm)
|
|
488
|
+
// and triggers co-located *.pm.process.ts imports (side-effect reg of instance fleet providers in this process,
|
|
489
|
+
// critical for daemon since fleet reg not in builtin).
|
|
490
|
+
let probeTimedOutMs;
|
|
491
|
+
const probed = await attempt(async () => {
|
|
492
|
+
const config = explicitConfig ||
|
|
493
|
+
(await this.getOrLoadResourceConfigs()).find((candidate) => candidate.id === id);
|
|
494
|
+
if (!config)
|
|
495
|
+
return undefined;
|
|
496
|
+
const provider = await this.providers.get(config.type);
|
|
497
|
+
if (!provider)
|
|
498
|
+
return undefined;
|
|
499
|
+
const statusResult = await this.providerStatus(id, provider, options, config);
|
|
500
|
+
const probedState = {
|
|
501
|
+
id,
|
|
502
|
+
type: config.type,
|
|
503
|
+
status: statusResult.status,
|
|
504
|
+
metadata: {
|
|
505
|
+
...config.config,
|
|
506
|
+
...statusResult.metadata
|
|
507
|
+
},
|
|
508
|
+
error: statusResult.error,
|
|
509
|
+
lastChecked: new Date()
|
|
510
|
+
};
|
|
511
|
+
// Persist so subsequent getState/getAllResourceStates see 'ready' + shaped metadata (records/slices),
|
|
512
|
+
// and future status hits present-path refresh. Clears any prior 'missing' from store.
|
|
513
|
+
await this.store.setResource(probedState);
|
|
514
|
+
return probedState;
|
|
515
|
+
});
|
|
516
|
+
if (probed.ok) {
|
|
517
|
+
if (probed.value)
|
|
518
|
+
return probed.value;
|
|
519
|
+
}
|
|
520
|
+
else {
|
|
521
|
+
// A probe that timed out falls through to the synthetic missing (or
|
|
522
|
+
// the existing state below). Any other failure is the provider's and
|
|
523
|
+
// propagates typed; it is never read as "missing".
|
|
524
|
+
const timedOutMs = readStatusTimeoutMs(probed.failure);
|
|
525
|
+
if (timedOutMs === undefined)
|
|
526
|
+
throw probed.failure;
|
|
527
|
+
if (options.staleOnTimeout && state) {
|
|
528
|
+
return this.timeoutFallbackState(state, timedOutMs);
|
|
529
|
+
}
|
|
530
|
+
probeTimedOutMs = timedOutMs;
|
|
531
|
+
}
|
|
532
|
+
if (!state) {
|
|
533
|
+
// Default: resource not in state - return missing
|
|
534
|
+
return {
|
|
535
|
+
id,
|
|
536
|
+
type: 'unknown',
|
|
537
|
+
status: 'missing',
|
|
538
|
+
error: probeTimedOutMs
|
|
539
|
+
? `Resource status probe timed out after ${probeTimedOutMs}ms`
|
|
540
|
+
: undefined,
|
|
541
|
+
lastChecked: new Date()
|
|
542
|
+
};
|
|
543
|
+
}
|
|
544
|
+
// Had state (e.g. missing) but probe didn't yield provider/config this time; fall through to return it (with possible later refresh).
|
|
545
|
+
}
|
|
546
|
+
// Get provider and check current status
|
|
547
|
+
const refreshed = await attempt(async () => {
|
|
548
|
+
const provider = await this.providers.get(state.type);
|
|
549
|
+
const statusResult = await this.providerStatus(id, provider, options);
|
|
550
|
+
// If provider returns 'missing' but we have a stored 'ready' state,
|
|
551
|
+
// the provider's in-memory cache was likely cleared (daemon restart).
|
|
552
|
+
// Don't overwrite the valid stored state - just return it with updated lastChecked.
|
|
553
|
+
// The state will be properly refreshed on next setup() call.
|
|
554
|
+
if (statusResult.status === 'missing' && state.status === 'ready') {
|
|
555
|
+
const preservedState = {
|
|
556
|
+
...state,
|
|
557
|
+
lastChecked: new Date()
|
|
558
|
+
};
|
|
559
|
+
await this.store.setResource(preservedState);
|
|
560
|
+
return preservedState;
|
|
561
|
+
}
|
|
562
|
+
// Update state with fresh status
|
|
563
|
+
const updatedState = {
|
|
564
|
+
...state,
|
|
565
|
+
status: statusResult.status,
|
|
566
|
+
metadata: { ...state.metadata, ...statusResult.metadata },
|
|
567
|
+
error: statusResult.error,
|
|
568
|
+
lastChecked: new Date()
|
|
569
|
+
};
|
|
570
|
+
await this.store.setResource(updatedState);
|
|
571
|
+
return updatedState;
|
|
572
|
+
});
|
|
573
|
+
if (refreshed.ok)
|
|
574
|
+
return refreshed.value;
|
|
575
|
+
const timedOutMs = readStatusTimeoutMs(refreshed.failure);
|
|
576
|
+
if (timedOutMs !== undefined && options.staleOnTimeout) {
|
|
577
|
+
return this.timeoutFallbackState(state, timedOutMs);
|
|
578
|
+
}
|
|
579
|
+
// The status check failed: the stored state is returned, marked with the
|
|
580
|
+
// failure (never as if it had been refreshed) and the failure is reported.
|
|
581
|
+
this.log.warn('Resource status probe failed; returning the stored state', {
|
|
582
|
+
resourceId: id,
|
|
583
|
+
failure: valueFreeFailure(refreshed.failure)
|
|
584
|
+
});
|
|
585
|
+
return this.probeFailedState(state, refreshed.failure);
|
|
586
|
+
}
|
|
587
|
+
/**
|
|
588
|
+
* Get resource state (from store only, no provider check)
|
|
589
|
+
*/
|
|
590
|
+
getState(id) {
|
|
591
|
+
return this.store.getResource(id);
|
|
592
|
+
}
|
|
593
|
+
/**
|
|
594
|
+
* Check if a resource's source config has drifted from what was last applied.
|
|
595
|
+
*
|
|
596
|
+
* Returns { stale: true } when the provider's computeSourceHash produces
|
|
597
|
+
* a different value than the one stored in state metadata.
|
|
598
|
+
*/
|
|
599
|
+
async checkStaleness(config) {
|
|
600
|
+
const provider = await this.providers.get(config.type);
|
|
601
|
+
if (!provider.computeSourceHash) {
|
|
602
|
+
return { stale: false };
|
|
603
|
+
}
|
|
604
|
+
const state = await this.store.getResource(config.id);
|
|
605
|
+
if (!state || state.status !== 'ready') {
|
|
606
|
+
return { stale: false };
|
|
607
|
+
}
|
|
608
|
+
const stored = SourceHashSchema.safeParse(state.metadata?.sourceHash);
|
|
609
|
+
const storedHash = stored.success ? stored.data : undefined;
|
|
610
|
+
if (!storedHash) {
|
|
611
|
+
return { stale: false };
|
|
612
|
+
}
|
|
613
|
+
// A source hash that cannot be computed is not "not stale": the
|
|
614
|
+
// provider's failure propagates typed to the staleness caller.
|
|
615
|
+
const currentHash = await provider.computeSourceHash(config, this.providerContext(config));
|
|
616
|
+
if (!currentHash) {
|
|
617
|
+
return { stale: false, storedHash };
|
|
618
|
+
}
|
|
619
|
+
return {
|
|
620
|
+
stale: storedHash !== currentHash,
|
|
621
|
+
storedHash,
|
|
622
|
+
currentHash
|
|
623
|
+
};
|
|
624
|
+
}
|
|
625
|
+
/**
|
|
626
|
+
* Get all resource states
|
|
627
|
+
*/
|
|
628
|
+
async getAllStates() {
|
|
629
|
+
const states = await this.store.getAllResources();
|
|
630
|
+
return new Map(states.map((s) => [s.id, s]));
|
|
631
|
+
}
|
|
632
|
+
/**
|
|
633
|
+
* Wait for resource to be ready
|
|
634
|
+
*/
|
|
635
|
+
async waitForReady(config, state, options = {}) {
|
|
636
|
+
const timeout = options.timeout || config.readyTimeout || 60000;
|
|
637
|
+
const pollInterval = options.pollInterval || 1000;
|
|
638
|
+
const provider = await this.providers.get(config.type);
|
|
639
|
+
if (!provider.checkReady) {
|
|
640
|
+
// Provider doesn't support ready checks - assume ready after setup
|
|
641
|
+
return;
|
|
642
|
+
}
|
|
643
|
+
// Bounded by the runtime lifecycle (RC07). Poll: a provider (owner)
|
|
644
|
+
// answers readiness only when asked (`checkReady`), and may say when to
|
|
645
|
+
// ask again (`retryAfter`); it publishes no readiness event.
|
|
646
|
+
const runtime = this.getRuntime();
|
|
647
|
+
let lastReason;
|
|
648
|
+
const waitOptions = options.signal
|
|
649
|
+
? { timeoutMs: timeout, reason: 'pm-resource-ready', signal: options.signal }
|
|
650
|
+
: { timeoutMs: timeout, reason: 'pm-resource-ready' };
|
|
651
|
+
const checkReady = provider.checkReady.bind(provider);
|
|
652
|
+
const ready = await attempt(() => runtime.lifecycle.wait(async (signal) => {
|
|
653
|
+
for (;;) {
|
|
654
|
+
const result = await checkReady(config, state, this.providerContext(config));
|
|
655
|
+
if (result.ready) {
|
|
656
|
+
await this.store.updateResource(config.id, { status: 'ready', lastChecked: new Date() });
|
|
657
|
+
return;
|
|
658
|
+
}
|
|
659
|
+
lastReason = result.reason;
|
|
660
|
+
await runtime.lifecycle.delay(result.retryAfter || pollInterval, signal);
|
|
661
|
+
}
|
|
662
|
+
}, waitOptions));
|
|
663
|
+
if (ready.ok)
|
|
664
|
+
return;
|
|
665
|
+
if (isWaitTimeout(ready.failure)) {
|
|
666
|
+
throw new CapabilityError(`Resource ${config.id} did not become ready within ${timeout}ms. Reason: ${lastReason || 'unknown'}`, 'TIMEOUT', {
|
|
667
|
+
reason: 'pm-resource-ready-timeout',
|
|
668
|
+
details: { resourceId: config.id, timeoutMs: timeout },
|
|
669
|
+
cause: ready.failure
|
|
670
|
+
});
|
|
671
|
+
}
|
|
672
|
+
throw ready.failure;
|
|
673
|
+
}
|
|
674
|
+
/**
|
|
675
|
+
* Setup multiple resources in batch
|
|
676
|
+
*/
|
|
677
|
+
async setupAll(configs) {
|
|
678
|
+
const results = new Map();
|
|
679
|
+
// Sequential execution for now - could optimize with dependency-aware parallel execution
|
|
680
|
+
for (const config of configs) {
|
|
681
|
+
const setUp = await attempt(() => this.setup(config));
|
|
682
|
+
if (setUp.ok) {
|
|
683
|
+
results.set(config.id, setUp.value);
|
|
684
|
+
continue;
|
|
685
|
+
}
|
|
686
|
+
// Continue with other resources even if one fails, but record
|
|
687
|
+
// the failure in the result map — a silently missing id made
|
|
688
|
+
// a broken resource indistinguishable from an absent one.
|
|
689
|
+
this.log.error('Failed to setup resource', {
|
|
690
|
+
resourceId: config.id,
|
|
691
|
+
failure: valueFreeFailure(setUp.failure)
|
|
692
|
+
});
|
|
693
|
+
results.set(config.id, {
|
|
694
|
+
state: {
|
|
695
|
+
id: config.id,
|
|
696
|
+
type: config.type,
|
|
697
|
+
status: 'error',
|
|
698
|
+
lastChecked: new Date(),
|
|
699
|
+
error: failureText(setUp.failure)
|
|
700
|
+
}
|
|
701
|
+
});
|
|
702
|
+
}
|
|
703
|
+
return results;
|
|
704
|
+
}
|
|
705
|
+
/**
|
|
706
|
+
* Teardown multiple resources in batch
|
|
707
|
+
*/
|
|
708
|
+
async teardownAll(ids) {
|
|
709
|
+
// Sequential execution in reverse order; iterate a copy so the
|
|
710
|
+
// caller's array keeps its order.
|
|
711
|
+
for (const id of [...ids].reverse()) {
|
|
712
|
+
const torn = await attempt(() => this.teardown(id));
|
|
713
|
+
// Continue with other resources even if one fails
|
|
714
|
+
if (!torn.ok) {
|
|
715
|
+
this.log.error('Failed to teardown resource', {
|
|
716
|
+
resourceId: id,
|
|
717
|
+
failure: valueFreeFailure(torn.failure)
|
|
718
|
+
});
|
|
719
|
+
}
|
|
720
|
+
}
|
|
721
|
+
}
|
|
722
|
+
/**
|
|
723
|
+
* Run a lifecycle hook
|
|
724
|
+
*/
|
|
725
|
+
async runHook(hook, resourceId) {
|
|
726
|
+
// A resource hook is a PM child (C15): the base set, the host's re-entry
|
|
727
|
+
// facts and roots, the names it inherits, its declared env, and its
|
|
728
|
+
// declared credentials resolved at spawn (D-RC05), never argv.
|
|
729
|
+
const runtime = this.getRuntime();
|
|
730
|
+
const cwd = hook.cwd ?? requireRuntimeCwd(runtime);
|
|
731
|
+
const hookEnv = await composeHookEnv(runtime, hook, cwd, `${resourceId}:hook`);
|
|
732
|
+
const hostCommands = hook.selfSpawn ? await getRuntimeHostCommands(runtime) : undefined;
|
|
733
|
+
const resolved = resolveHookCommand(hook, hostCommands, `PM resource '${resourceId}' hook`);
|
|
734
|
+
// The hook's whole environment is the one composed above.
|
|
735
|
+
const ran = await attempt(() => runCapture(runtime, resolved.command, resolved.args, {
|
|
736
|
+
env: hookEnv.env,
|
|
737
|
+
envMode: 'replace',
|
|
738
|
+
cwd
|
|
739
|
+
}));
|
|
740
|
+
if (!ran.ok) {
|
|
741
|
+
hookEnv.audit('failure');
|
|
742
|
+
throw ran.failure;
|
|
743
|
+
}
|
|
744
|
+
const { exitCode } = ran.value;
|
|
745
|
+
hookEnv.audit(exitCode === 0 ? 'success' : 'failure');
|
|
746
|
+
// A credential the hook printed never reaches the failure message: its
|
|
747
|
+
// output is a bounded, credential-free excerpt.
|
|
748
|
+
const excerpt = (text) => redactedExcerpt(text, { secrets: hookEnv.redact, maxChars: HOOK_OUTPUT_EXCERPT_CHARS });
|
|
749
|
+
const stdout = excerpt(ran.value.stdout);
|
|
750
|
+
const stderr = excerpt(ran.value.stderr);
|
|
751
|
+
if (exitCode !== 0) {
|
|
752
|
+
const message = `Hook failed for resource ${resourceId}: ${stderr || stdout}`;
|
|
753
|
+
if (!hook.ignoreFailure) {
|
|
754
|
+
throw new CapabilityError(message, 'UNAVAILABLE', {
|
|
755
|
+
reason: 'pm-resource-hook-failed',
|
|
756
|
+
details: { resourceId, exitCode }
|
|
757
|
+
});
|
|
758
|
+
}
|
|
759
|
+
this.log.warn('Hook failed but ignoreFailure=true', {
|
|
760
|
+
resourceId,
|
|
761
|
+
exitCode,
|
|
762
|
+
error: message
|
|
763
|
+
});
|
|
764
|
+
}
|
|
765
|
+
}
|
|
766
|
+
}
|
|
767
|
+
//# sourceMappingURL=resource-manager.js.map
|