@vibesdotdev/pm 0.0.0-stage → 1.0.0-rc.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +18 -0
- package/README.md +227 -2
- package/dist/admission-store.d.ts +43 -0
- package/dist/admission-store.d.ts.map +1 -0
- package/dist/admission-store.js +108 -0
- package/dist/admission-store.js.map +1 -0
- package/dist/admission.d.ts +46 -0
- package/dist/admission.d.ts.map +1 -0
- package/dist/admission.js +81 -0
- package/dist/admission.js.map +1 -0
- package/dist/admitted-workspace.context.descriptor.d.ts +39 -0
- package/dist/admitted-workspace.context.descriptor.d.ts.map +1 -0
- package/dist/admitted-workspace.context.descriptor.js +18 -0
- package/dist/admitted-workspace.context.descriptor.js.map +1 -0
- package/dist/admitted-workspace.context.impl.consumer.d.ts +16 -0
- package/dist/admitted-workspace.context.impl.consumer.d.ts.map +1 -0
- package/dist/admitted-workspace.context.impl.consumer.js +7 -0
- package/dist/admitted-workspace.context.impl.consumer.js.map +1 -0
- package/dist/cli/admission-read.d.ts +12 -0
- package/dist/cli/admission-read.d.ts.map +1 -0
- package/dist/cli/admission-read.js +42 -0
- package/dist/cli/admission-read.js.map +1 -0
- package/dist/cli/command-input.d.ts +37 -0
- package/dist/cli/command-input.d.ts.map +1 -0
- package/dist/cli/command-input.js +34 -0
- package/dist/cli/command-input.js.map +1 -0
- package/dist/cli/consumer-components/startup-progress.d.ts +107 -0
- package/dist/cli/consumer-components/startup-progress.d.ts.map +1 -0
- package/dist/cli/consumer-components/startup-progress.js +392 -0
- package/dist/cli/consumer-components/startup-progress.js.map +1 -0
- package/dist/cli/consumer-services/control.d.ts +147 -0
- package/dist/cli/consumer-services/control.d.ts.map +1 -0
- package/dist/cli/consumer-services/control.js +209 -0
- package/dist/cli/consumer-services/control.js.map +1 -0
- package/dist/cli/daemon-launch-child.d.ts +35 -0
- package/dist/cli/daemon-launch-child.d.ts.map +1 -0
- package/dist/cli/daemon-launch-child.js +25 -0
- package/dist/cli/daemon-launch-child.js.map +1 -0
- package/dist/cli/docs/pm.cli.docs.descriptor.d.ts +4 -0
- package/dist/cli/docs/pm.cli.docs.descriptor.d.ts.map +1 -0
- package/dist/cli/docs/pm.cli.docs.descriptor.js +93 -0
- package/dist/cli/docs/pm.cli.docs.descriptor.js.map +1 -0
- package/dist/cli/filter-process-states.d.ts +12 -0
- package/dist/cli/filter-process-states.d.ts.map +1 -0
- package/dist/cli/filter-process-states.js +12 -0
- package/dist/cli/filter-process-states.js.map +1 -0
- package/dist/cli/output.d.ts +21 -0
- package/dist/cli/output.d.ts.map +1 -0
- package/dist/cli/output.js +19 -0
- package/dist/cli/output.js.map +1 -0
- package/dist/cli/plugin.d.ts +3 -0
- package/dist/cli/plugin.d.ts.map +1 -0
- package/dist/cli/plugin.js +12 -0
- package/dist/cli/plugin.js.map +1 -0
- package/dist/cli/pm.cli-group.descriptor.d.ts +10 -0
- package/dist/cli/pm.cli-group.descriptor.d.ts.map +1 -0
- package/dist/cli/pm.cli-group.descriptor.js +18 -0
- package/dist/cli/pm.cli-group.descriptor.js.map +1 -0
- package/dist/cli/pm.completion.cli-group.descriptor.d.ts +9 -0
- package/dist/cli/pm.completion.cli-group.descriptor.d.ts.map +1 -0
- package/dist/cli/pm.completion.cli-group.descriptor.js +17 -0
- package/dist/cli/pm.completion.cli-group.descriptor.js.map +1 -0
- package/dist/cli/pm.completion.install.descriptor.d.ts +9 -0
- package/dist/cli/pm.completion.install.descriptor.d.ts.map +1 -0
- package/dist/cli/pm.completion.install.descriptor.js +24 -0
- package/dist/cli/pm.completion.install.descriptor.js.map +1 -0
- package/dist/cli/pm.completion.install.impl.d.ts +11 -0
- package/dist/cli/pm.completion.install.impl.d.ts.map +1 -0
- package/dist/cli/pm.completion.install.impl.js +207 -0
- package/dist/cli/pm.completion.install.impl.js.map +1 -0
- package/dist/cli/pm.config.cli.descriptor.d.ts +10 -0
- package/dist/cli/pm.config.cli.descriptor.d.ts.map +1 -0
- package/dist/cli/pm.config.cli.descriptor.js +25 -0
- package/dist/cli/pm.config.cli.descriptor.js.map +1 -0
- package/dist/cli/pm.config.impl.d.ts +12 -0
- package/dist/cli/pm.config.impl.d.ts.map +1 -0
- package/dist/cli/pm.config.impl.js +117 -0
- package/dist/cli/pm.config.impl.js.map +1 -0
- package/dist/cli/pm.daemon.cli-group.descriptor.d.ts +9 -0
- package/dist/cli/pm.daemon.cli-group.descriptor.d.ts.map +1 -0
- package/dist/cli/pm.daemon.cli-group.descriptor.js +17 -0
- package/dist/cli/pm.daemon.cli-group.descriptor.js.map +1 -0
- package/dist/cli/pm.daemon.logs.descriptor.d.ts +9 -0
- package/dist/cli/pm.daemon.logs.descriptor.d.ts.map +1 -0
- package/dist/cli/pm.daemon.logs.descriptor.js +29 -0
- package/dist/cli/pm.daemon.logs.descriptor.js.map +1 -0
- package/dist/cli/pm.daemon.logs.impl.d.ts +11 -0
- package/dist/cli/pm.daemon.logs.impl.d.ts.map +1 -0
- package/dist/cli/pm.daemon.logs.impl.js +53 -0
- package/dist/cli/pm.daemon.logs.impl.js.map +1 -0
- package/dist/cli/pm.daemon.reconcile.descriptor.d.ts +9 -0
- package/dist/cli/pm.daemon.reconcile.descriptor.d.ts.map +1 -0
- package/dist/cli/pm.daemon.reconcile.descriptor.js +24 -0
- package/dist/cli/pm.daemon.reconcile.descriptor.js.map +1 -0
- package/dist/cli/pm.daemon.reconcile.impl.d.ts +16 -0
- package/dist/cli/pm.daemon.reconcile.impl.d.ts.map +1 -0
- package/dist/cli/pm.daemon.reconcile.impl.js +51 -0
- package/dist/cli/pm.daemon.reconcile.impl.js.map +1 -0
- package/dist/cli/pm.daemon.recover.descriptor.d.ts +9 -0
- package/dist/cli/pm.daemon.recover.descriptor.d.ts.map +1 -0
- package/dist/cli/pm.daemon.recover.descriptor.js +24 -0
- package/dist/cli/pm.daemon.recover.descriptor.js.map +1 -0
- package/dist/cli/pm.daemon.recover.impl.d.ts +16 -0
- package/dist/cli/pm.daemon.recover.impl.d.ts.map +1 -0
- package/dist/cli/pm.daemon.recover.impl.js +66 -0
- package/dist/cli/pm.daemon.recover.impl.js.map +1 -0
- package/dist/cli/pm.daemon.restart.descriptor.d.ts +9 -0
- package/dist/cli/pm.daemon.restart.descriptor.d.ts.map +1 -0
- package/dist/cli/pm.daemon.restart.descriptor.js +25 -0
- package/dist/cli/pm.daemon.restart.descriptor.js.map +1 -0
- package/dist/cli/pm.daemon.restart.impl.d.ts +28 -0
- package/dist/cli/pm.daemon.restart.impl.d.ts.map +1 -0
- package/dist/cli/pm.daemon.restart.impl.js +174 -0
- package/dist/cli/pm.daemon.restart.impl.js.map +1 -0
- package/dist/cli/pm.daemon.serve.descriptor.d.ts +10 -0
- package/dist/cli/pm.daemon.serve.descriptor.d.ts.map +1 -0
- package/dist/cli/pm.daemon.serve.descriptor.js +28 -0
- package/dist/cli/pm.daemon.serve.descriptor.js.map +1 -0
- package/dist/cli/pm.daemon.serve.impl.d.ts +37 -0
- package/dist/cli/pm.daemon.serve.impl.d.ts.map +1 -0
- package/dist/cli/pm.daemon.serve.impl.js +257 -0
- package/dist/cli/pm.daemon.serve.impl.js.map +1 -0
- package/dist/cli/pm.daemon.start.descriptor.d.ts +9 -0
- package/dist/cli/pm.daemon.start.descriptor.d.ts.map +1 -0
- package/dist/cli/pm.daemon.start.descriptor.js +28 -0
- package/dist/cli/pm.daemon.start.descriptor.js.map +1 -0
- package/dist/cli/pm.daemon.start.impl.d.ts +40 -0
- package/dist/cli/pm.daemon.start.impl.d.ts.map +1 -0
- package/dist/cli/pm.daemon.start.impl.js +341 -0
- package/dist/cli/pm.daemon.start.impl.js.map +1 -0
- package/dist/cli/pm.daemon.status.descriptor.d.ts +9 -0
- package/dist/cli/pm.daemon.status.descriptor.d.ts.map +1 -0
- package/dist/cli/pm.daemon.status.descriptor.js +24 -0
- package/dist/cli/pm.daemon.status.descriptor.js.map +1 -0
- package/dist/cli/pm.daemon.status.impl.d.ts +11 -0
- package/dist/cli/pm.daemon.status.impl.d.ts.map +1 -0
- package/dist/cli/pm.daemon.status.impl.js +123 -0
- package/dist/cli/pm.daemon.status.impl.js.map +1 -0
- package/dist/cli/pm.daemon.stop.descriptor.d.ts +9 -0
- package/dist/cli/pm.daemon.stop.descriptor.d.ts.map +1 -0
- package/dist/cli/pm.daemon.stop.descriptor.js +24 -0
- package/dist/cli/pm.daemon.stop.descriptor.js.map +1 -0
- package/dist/cli/pm.daemon.stop.impl.d.ts +21 -0
- package/dist/cli/pm.daemon.stop.impl.d.ts.map +1 -0
- package/dist/cli/pm.daemon.stop.impl.js +108 -0
- package/dist/cli/pm.daemon.stop.impl.js.map +1 -0
- package/dist/cli/pm.dashboard.descriptor.d.ts +10 -0
- package/dist/cli/pm.dashboard.descriptor.d.ts.map +1 -0
- package/dist/cli/pm.dashboard.descriptor.js +30 -0
- package/dist/cli/pm.dashboard.descriptor.js.map +1 -0
- package/dist/cli/pm.dashboard.impl.d.ts +16 -0
- package/dist/cli/pm.dashboard.impl.d.ts.map +1 -0
- package/dist/cli/pm.dashboard.impl.js +134 -0
- package/dist/cli/pm.dashboard.impl.js.map +1 -0
- package/dist/cli/pm.init.descriptor.d.ts +9 -0
- package/dist/cli/pm.init.descriptor.d.ts.map +1 -0
- package/dist/cli/pm.init.descriptor.js +28 -0
- package/dist/cli/pm.init.descriptor.js.map +1 -0
- package/dist/cli/pm.init.impl.d.ts +11 -0
- package/dist/cli/pm.init.impl.d.ts.map +1 -0
- package/dist/cli/pm.init.impl.js +112 -0
- package/dist/cli/pm.init.impl.js.map +1 -0
- package/dist/cli/pm.list.descriptor.d.ts +9 -0
- package/dist/cli/pm.list.descriptor.d.ts.map +1 -0
- package/dist/cli/pm.list.descriptor.js +44 -0
- package/dist/cli/pm.list.descriptor.js.map +1 -0
- package/dist/cli/pm.list.impl.d.ts +24 -0
- package/dist/cli/pm.list.impl.d.ts.map +1 -0
- package/dist/cli/pm.list.impl.js +204 -0
- package/dist/cli/pm.list.impl.js.map +1 -0
- package/dist/cli/pm.liveness.cli-group.descriptor.d.ts +25 -0
- package/dist/cli/pm.liveness.cli-group.descriptor.d.ts.map +1 -0
- package/dist/cli/pm.liveness.cli-group.descriptor.js +33 -0
- package/dist/cli/pm.liveness.cli-group.descriptor.js.map +1 -0
- package/dist/cli/pm.liveness.set.descriptor.d.ts +18 -0
- package/dist/cli/pm.liveness.set.descriptor.d.ts.map +1 -0
- package/dist/cli/pm.liveness.set.descriptor.js +65 -0
- package/dist/cli/pm.liveness.set.descriptor.js.map +1 -0
- package/dist/cli/pm.liveness.set.impl.d.ts +6 -0
- package/dist/cli/pm.liveness.set.impl.d.ts.map +1 -0
- package/dist/cli/pm.liveness.set.impl.js +61 -0
- package/dist/cli/pm.liveness.set.impl.js.map +1 -0
- package/dist/cli/pm.logs.descriptor.d.ts +9 -0
- package/dist/cli/pm.logs.descriptor.d.ts.map +1 -0
- package/dist/cli/pm.logs.descriptor.js +39 -0
- package/dist/cli/pm.logs.descriptor.js.map +1 -0
- package/dist/cli/pm.logs.impl.d.ts +11 -0
- package/dist/cli/pm.logs.impl.d.ts.map +1 -0
- package/dist/cli/pm.logs.impl.js +208 -0
- package/dist/cli/pm.logs.impl.js.map +1 -0
- package/dist/cli/pm.preset.cli-group.descriptor.d.ts +9 -0
- package/dist/cli/pm.preset.cli-group.descriptor.d.ts.map +1 -0
- package/dist/cli/pm.preset.cli-group.descriptor.js +17 -0
- package/dist/cli/pm.preset.cli-group.descriptor.js.map +1 -0
- package/dist/cli/pm.preset.list.descriptor.d.ts +9 -0
- package/dist/cli/pm.preset.list.descriptor.d.ts.map +1 -0
- package/dist/cli/pm.preset.list.descriptor.js +24 -0
- package/dist/cli/pm.preset.list.descriptor.js.map +1 -0
- package/dist/cli/pm.preset.list.impl.d.ts +6 -0
- package/dist/cli/pm.preset.list.impl.d.ts.map +1 -0
- package/dist/cli/pm.preset.list.impl.js +67 -0
- package/dist/cli/pm.preset.list.impl.js.map +1 -0
- package/dist/cli/pm.preset.restart.descriptor.d.ts +9 -0
- package/dist/cli/pm.preset.restart.descriptor.d.ts.map +1 -0
- package/dist/cli/pm.preset.restart.descriptor.js +39 -0
- package/dist/cli/pm.preset.restart.descriptor.js.map +1 -0
- package/dist/cli/pm.preset.restart.impl.d.ts +11 -0
- package/dist/cli/pm.preset.restart.impl.d.ts.map +1 -0
- package/dist/cli/pm.preset.restart.impl.js +85 -0
- package/dist/cli/pm.preset.restart.impl.js.map +1 -0
- package/dist/cli/pm.preset.show.descriptor.d.ts +9 -0
- package/dist/cli/pm.preset.show.descriptor.d.ts.map +1 -0
- package/dist/cli/pm.preset.show.descriptor.js +30 -0
- package/dist/cli/pm.preset.show.descriptor.js.map +1 -0
- package/dist/cli/pm.preset.show.impl.d.ts +6 -0
- package/dist/cli/pm.preset.show.impl.d.ts.map +1 -0
- package/dist/cli/pm.preset.show.impl.js +92 -0
- package/dist/cli/pm.preset.show.impl.js.map +1 -0
- package/dist/cli/pm.preset.start.descriptor.d.ts +9 -0
- package/dist/cli/pm.preset.start.descriptor.d.ts.map +1 -0
- package/dist/cli/pm.preset.start.descriptor.js +39 -0
- package/dist/cli/pm.preset.start.descriptor.js.map +1 -0
- package/dist/cli/pm.preset.start.impl.d.ts +11 -0
- package/dist/cli/pm.preset.start.impl.d.ts.map +1 -0
- package/dist/cli/pm.preset.start.impl.js +88 -0
- package/dist/cli/pm.preset.start.impl.js.map +1 -0
- package/dist/cli/pm.preset.status.descriptor.d.ts +9 -0
- package/dist/cli/pm.preset.status.descriptor.d.ts.map +1 -0
- package/dist/cli/pm.preset.status.descriptor.js +30 -0
- package/dist/cli/pm.preset.status.descriptor.js.map +1 -0
- package/dist/cli/pm.preset.status.impl.d.ts +11 -0
- package/dist/cli/pm.preset.status.impl.d.ts.map +1 -0
- package/dist/cli/pm.preset.status.impl.js +166 -0
- package/dist/cli/pm.preset.status.impl.js.map +1 -0
- package/dist/cli/pm.preset.stop.descriptor.d.ts +9 -0
- package/dist/cli/pm.preset.stop.descriptor.d.ts.map +1 -0
- package/dist/cli/pm.preset.stop.descriptor.js +39 -0
- package/dist/cli/pm.preset.stop.descriptor.js.map +1 -0
- package/dist/cli/pm.preset.stop.impl.d.ts +11 -0
- package/dist/cli/pm.preset.stop.impl.d.ts.map +1 -0
- package/dist/cli/pm.preset.stop.impl.js +68 -0
- package/dist/cli/pm.preset.stop.impl.js.map +1 -0
- package/dist/cli/pm.preset.teardown.descriptor.d.ts +9 -0
- package/dist/cli/pm.preset.teardown.descriptor.d.ts.map +1 -0
- package/dist/cli/pm.preset.teardown.descriptor.js +43 -0
- package/dist/cli/pm.preset.teardown.descriptor.js.map +1 -0
- package/dist/cli/pm.preset.teardown.impl.d.ts +12 -0
- package/dist/cli/pm.preset.teardown.impl.d.ts.map +1 -0
- package/dist/cli/pm.preset.teardown.impl.js +91 -0
- package/dist/cli/pm.preset.teardown.impl.js.map +1 -0
- package/dist/cli/pm.presets.descriptor.d.ts +9 -0
- package/dist/cli/pm.presets.descriptor.d.ts.map +1 -0
- package/dist/cli/pm.presets.descriptor.js +24 -0
- package/dist/cli/pm.presets.descriptor.js.map +1 -0
- package/dist/cli/pm.presets.impl.d.ts +11 -0
- package/dist/cli/pm.presets.impl.d.ts.map +1 -0
- package/dist/cli/pm.presets.impl.js +13 -0
- package/dist/cli/pm.presets.impl.js.map +1 -0
- package/dist/cli/pm.register.descriptor.d.ts +11 -0
- package/dist/cli/pm.register.descriptor.d.ts.map +1 -0
- package/dist/cli/pm.register.descriptor.js +32 -0
- package/dist/cli/pm.register.descriptor.js.map +1 -0
- package/dist/cli/pm.register.impl.d.ts +15 -0
- package/dist/cli/pm.register.impl.d.ts.map +1 -0
- package/dist/cli/pm.register.impl.js +81 -0
- package/dist/cli/pm.register.impl.js.map +1 -0
- package/dist/cli/pm.resource.apply.descriptor.d.ts +15 -0
- package/dist/cli/pm.resource.apply.descriptor.d.ts.map +1 -0
- package/dist/cli/pm.resource.apply.descriptor.js +41 -0
- package/dist/cli/pm.resource.apply.descriptor.js.map +1 -0
- package/dist/cli/pm.resource.apply.impl.d.ts +14 -0
- package/dist/cli/pm.resource.apply.impl.d.ts.map +1 -0
- package/dist/cli/pm.resource.apply.impl.js +91 -0
- package/dist/cli/pm.resource.apply.impl.js.map +1 -0
- package/dist/cli/pm.resource.cli-group.descriptor.d.ts +9 -0
- package/dist/cli/pm.resource.cli-group.descriptor.d.ts.map +1 -0
- package/dist/cli/pm.resource.cli-group.descriptor.js +17 -0
- package/dist/cli/pm.resource.cli-group.descriptor.js.map +1 -0
- package/dist/cli/pm.resource.list.descriptor.d.ts +9 -0
- package/dist/cli/pm.resource.list.descriptor.d.ts.map +1 -0
- package/dist/cli/pm.resource.list.descriptor.js +25 -0
- package/dist/cli/pm.resource.list.descriptor.js.map +1 -0
- package/dist/cli/pm.resource.list.impl.d.ts +11 -0
- package/dist/cli/pm.resource.list.impl.d.ts.map +1 -0
- package/dist/cli/pm.resource.list.impl.js +141 -0
- package/dist/cli/pm.resource.list.impl.js.map +1 -0
- package/dist/cli/pm.resource.recreate.descriptor.d.ts +4 -0
- package/dist/cli/pm.resource.recreate.descriptor.d.ts.map +1 -0
- package/dist/cli/pm.resource.recreate.descriptor.js +29 -0
- package/dist/cli/pm.resource.recreate.descriptor.js.map +1 -0
- package/dist/cli/pm.resource.recreate.impl.d.ts +6 -0
- package/dist/cli/pm.resource.recreate.impl.d.ts.map +1 -0
- package/dist/cli/pm.resource.recreate.impl.js +123 -0
- package/dist/cli/pm.resource.recreate.impl.js.map +1 -0
- package/dist/cli/pm.resource.status.descriptor.d.ts +9 -0
- package/dist/cli/pm.resource.status.descriptor.d.ts.map +1 -0
- package/dist/cli/pm.resource.status.descriptor.js +31 -0
- package/dist/cli/pm.resource.status.descriptor.js.map +1 -0
- package/dist/cli/pm.resource.status.impl.d.ts +11 -0
- package/dist/cli/pm.resource.status.impl.d.ts.map +1 -0
- package/dist/cli/pm.resource.status.impl.js +230 -0
- package/dist/cli/pm.resource.status.impl.js.map +1 -0
- package/dist/cli/pm.restart.descriptor.d.ts +9 -0
- package/dist/cli/pm.restart.descriptor.d.ts.map +1 -0
- package/dist/cli/pm.restart.descriptor.js +40 -0
- package/dist/cli/pm.restart.descriptor.js.map +1 -0
- package/dist/cli/pm.restart.impl.d.ts +12 -0
- package/dist/cli/pm.restart.impl.d.ts.map +1 -0
- package/dist/cli/pm.restart.impl.js +109 -0
- package/dist/cli/pm.restart.impl.js.map +1 -0
- package/dist/cli/pm.show.descriptor.d.ts +9 -0
- package/dist/cli/pm.show.descriptor.d.ts.map +1 -0
- package/dist/cli/pm.show.descriptor.js +30 -0
- package/dist/cli/pm.show.descriptor.js.map +1 -0
- package/dist/cli/pm.show.impl.d.ts +25 -0
- package/dist/cli/pm.show.impl.d.ts.map +1 -0
- package/dist/cli/pm.show.impl.js +175 -0
- package/dist/cli/pm.show.impl.js.map +1 -0
- package/dist/cli/pm.start-all.descriptor.d.ts +9 -0
- package/dist/cli/pm.start-all.descriptor.d.ts.map +1 -0
- package/dist/cli/pm.start-all.descriptor.js +34 -0
- package/dist/cli/pm.start-all.descriptor.js.map +1 -0
- package/dist/cli/pm.start-all.impl.d.ts +12 -0
- package/dist/cli/pm.start-all.impl.d.ts.map +1 -0
- package/dist/cli/pm.start-all.impl.js +91 -0
- package/dist/cli/pm.start-all.impl.js.map +1 -0
- package/dist/cli/pm.start.descriptor.d.ts +9 -0
- package/dist/cli/pm.start.descriptor.d.ts.map +1 -0
- package/dist/cli/pm.start.descriptor.js +40 -0
- package/dist/cli/pm.start.descriptor.js.map +1 -0
- package/dist/cli/pm.start.impl.d.ts +19 -0
- package/dist/cli/pm.start.impl.d.ts.map +1 -0
- package/dist/cli/pm.start.impl.js +170 -0
- package/dist/cli/pm.start.impl.js.map +1 -0
- package/dist/cli/pm.status.descriptor.d.ts +10 -0
- package/dist/cli/pm.status.descriptor.d.ts.map +1 -0
- package/dist/cli/pm.status.descriptor.js +31 -0
- package/dist/cli/pm.status.descriptor.js.map +1 -0
- package/dist/cli/pm.status.impl.d.ts +96 -0
- package/dist/cli/pm.status.impl.d.ts.map +1 -0
- package/dist/cli/pm.status.impl.js +425 -0
- package/dist/cli/pm.status.impl.js.map +1 -0
- package/dist/cli/pm.stop-all.descriptor.d.ts +9 -0
- package/dist/cli/pm.stop-all.descriptor.d.ts.map +1 -0
- package/dist/cli/pm.stop-all.descriptor.js +41 -0
- package/dist/cli/pm.stop-all.descriptor.js.map +1 -0
- package/dist/cli/pm.stop-all.impl.d.ts +14 -0
- package/dist/cli/pm.stop-all.impl.d.ts.map +1 -0
- package/dist/cli/pm.stop-all.impl.js +138 -0
- package/dist/cli/pm.stop-all.impl.js.map +1 -0
- package/dist/cli/pm.stop.descriptor.d.ts +9 -0
- package/dist/cli/pm.stop.descriptor.d.ts.map +1 -0
- package/dist/cli/pm.stop.descriptor.js +40 -0
- package/dist/cli/pm.stop.descriptor.js.map +1 -0
- package/dist/cli/pm.stop.impl.d.ts +13 -0
- package/dist/cli/pm.stop.impl.d.ts.map +1 -0
- package/dist/cli/pm.stop.impl.js +120 -0
- package/dist/cli/pm.stop.impl.js.map +1 -0
- package/dist/cli/pm.unregister-all.descriptor.d.ts +9 -0
- package/dist/cli/pm.unregister-all.descriptor.d.ts.map +1 -0
- package/dist/cli/pm.unregister-all.descriptor.js +28 -0
- package/dist/cli/pm.unregister-all.descriptor.js.map +1 -0
- package/dist/cli/pm.unregister-all.impl.d.ts +11 -0
- package/dist/cli/pm.unregister-all.impl.d.ts.map +1 -0
- package/dist/cli/pm.unregister-all.impl.js +106 -0
- package/dist/cli/pm.unregister-all.impl.js.map +1 -0
- package/dist/cli/pm.unregister.descriptor.d.ts +9 -0
- package/dist/cli/pm.unregister.descriptor.d.ts.map +1 -0
- package/dist/cli/pm.unregister.descriptor.js +34 -0
- package/dist/cli/pm.unregister.descriptor.js.map +1 -0
- package/dist/cli/pm.unregister.impl.d.ts +11 -0
- package/dist/cli/pm.unregister.impl.d.ts.map +1 -0
- package/dist/cli/pm.unregister.impl.js +77 -0
- package/dist/cli/pm.unregister.impl.js.map +1 -0
- package/dist/cli/pm.validate.descriptor.d.ts +9 -0
- package/dist/cli/pm.validate.descriptor.d.ts.map +1 -0
- package/dist/cli/pm.validate.descriptor.js +24 -0
- package/dist/cli/pm.validate.descriptor.js.map +1 -0
- package/dist/cli/pm.validate.impl.d.ts +6 -0
- package/dist/cli/pm.validate.impl.d.ts.map +1 -0
- package/dist/cli/pm.validate.impl.js +235 -0
- package/dist/cli/pm.validate.impl.js.map +1 -0
- package/dist/cli/preset-execution-options.d.ts +8 -0
- package/dist/cli/preset-execution-options.d.ts.map +1 -0
- package/dist/cli/preset-execution-options.js +22 -0
- package/dist/cli/preset-execution-options.js.map +1 -0
- package/dist/cli/register-manifest.d.ts +23 -0
- package/dist/cli/register-manifest.d.ts.map +1 -0
- package/dist/cli/register-manifest.js +80 -0
- package/dist/cli/register-manifest.js.map +1 -0
- package/dist/cli/runtime.d.ts +3 -0
- package/dist/cli/runtime.d.ts.map +1 -0
- package/dist/cli/runtime.js +134 -0
- package/dist/cli/runtime.js.map +1 -0
- package/dist/cli/table-columns.d.ts +22 -0
- package/dist/cli/table-columns.d.ts.map +1 -0
- package/dist/cli/table-columns.js +61 -0
- package/dist/cli/table-columns.js.map +1 -0
- package/dist/client-replies.d.ts +1188 -0
- package/dist/client-replies.d.ts.map +1 -0
- package/dist/client-replies.js +145 -0
- package/dist/client-replies.js.map +1 -0
- package/dist/client.d.ts +345 -0
- package/dist/client.d.ts.map +1 -0
- package/dist/client.js +1005 -0
- package/dist/client.js.map +1 -0
- package/dist/config/pm.config.config.descriptor.d.ts +10 -0
- package/dist/config/pm.config.config.descriptor.d.ts.map +1 -0
- package/dist/config/pm.config.config.descriptor.js +37 -0
- package/dist/config/pm.config.config.descriptor.js.map +1 -0
- package/dist/context.d.ts +121 -0
- package/dist/context.d.ts.map +1 -0
- package/dist/context.js +6 -0
- package/dist/context.js.map +1 -0
- package/dist/daemon/command-handler.d.ts +74 -0
- package/dist/daemon/command-handler.d.ts.map +1 -0
- package/dist/daemon/command-handler.js +220 -0
- package/dist/daemon/command-handler.js.map +1 -0
- package/dist/daemon/command-ids.d.ts +10 -0
- package/dist/daemon/command-ids.d.ts.map +1 -0
- package/dist/daemon/command-ids.js +51 -0
- package/dist/daemon/command-ids.js.map +1 -0
- package/dist/daemon/command-implementations.d.ts +30 -0
- package/dist/daemon/command-implementations.d.ts.map +1 -0
- package/dist/daemon/command-implementations.js +340 -0
- package/dist/daemon/command-implementations.js.map +1 -0
- package/dist/daemon/command-payload.d.ts +803 -0
- package/dist/daemon/command-payload.d.ts.map +1 -0
- package/dist/daemon/command-payload.js +128 -0
- package/dist/daemon/command-payload.js.map +1 -0
- package/dist/daemon/commands.plugin.d.ts +6 -0
- package/dist/daemon/commands.plugin.d.ts.map +1 -0
- package/dist/daemon/commands.plugin.js +22 -0
- package/dist/daemon/commands.plugin.js.map +1 -0
- package/dist/daemon/config-watcher.d.ts +125 -0
- package/dist/daemon/config-watcher.d.ts.map +1 -0
- package/dist/daemon/config-watcher.js +541 -0
- package/dist/daemon/config-watcher.js.map +1 -0
- package/dist/daemon/daemon-module-context.d.ts +16 -0
- package/dist/daemon/daemon-module-context.d.ts.map +1 -0
- package/dist/daemon/daemon-module-context.js +25 -0
- package/dist/daemon/daemon-module-context.js.map +1 -0
- package/dist/daemon/declared-commands.d.ts +39 -0
- package/dist/daemon/declared-commands.d.ts.map +1 -0
- package/dist/daemon/declared-commands.js +200 -0
- package/dist/daemon/declared-commands.js.map +1 -0
- package/dist/daemon/executable-freshness-reconciler.d.ts +99 -0
- package/dist/daemon/executable-freshness-reconciler.d.ts.map +1 -0
- package/dist/daemon/executable-freshness-reconciler.js +396 -0
- package/dist/daemon/executable-freshness-reconciler.js.map +1 -0
- package/dist/daemon/fleet-attach-state.d.ts +22 -0
- package/dist/daemon/fleet-attach-state.d.ts.map +1 -0
- package/dist/daemon/fleet-attach-state.js +39 -0
- package/dist/daemon/fleet-attach-state.js.map +1 -0
- package/dist/daemon/health-monitor.d.ts +105 -0
- package/dist/daemon/health-monitor.d.ts.map +1 -0
- package/dist/daemon/health-monitor.js +453 -0
- package/dist/daemon/health-monitor.js.map +1 -0
- package/dist/daemon/liveness-checker.d.ts +49 -0
- package/dist/daemon/liveness-checker.d.ts.map +1 -0
- package/dist/daemon/liveness-checker.js +330 -0
- package/dist/daemon/liveness-checker.js.map +1 -0
- package/dist/daemon/orphan-scanner.d.ts +114 -0
- package/dist/daemon/orphan-scanner.d.ts.map +1 -0
- package/dist/daemon/orphan-scanner.js +684 -0
- package/dist/daemon/orphan-scanner.js.map +1 -0
- package/dist/daemon/resource-health-monitor.d.ts +65 -0
- package/dist/daemon/resource-health-monitor.d.ts.map +1 -0
- package/dist/daemon/resource-health-monitor.js +247 -0
- package/dist/daemon/resource-health-monitor.js.map +1 -0
- package/dist/daemon/role.context.impl.d.ts +13 -0
- package/dist/daemon/role.context.impl.d.ts.map +1 -0
- package/dist/daemon/role.context.impl.js +7 -0
- package/dist/daemon/role.context.impl.js.map +1 -0
- package/dist/daemon/role.d.ts +56 -0
- package/dist/daemon/role.d.ts.map +1 -0
- package/dist/daemon/role.js +18 -0
- package/dist/daemon/role.js.map +1 -0
- package/dist/daemon/rpc-result.d.ts +9 -0
- package/dist/daemon/rpc-result.d.ts.map +1 -0
- package/dist/daemon/rpc-result.js +28 -0
- package/dist/daemon/rpc-result.js.map +1 -0
- package/dist/daemon/stray-daemons.d.ts +52 -0
- package/dist/daemon/stray-daemons.d.ts.map +1 -0
- package/dist/daemon/stray-daemons.js +101 -0
- package/dist/daemon/stray-daemons.js.map +1 -0
- package/dist/daemon/supervised-commands.d.ts +3 -0
- package/dist/daemon/supervised-commands.d.ts.map +1 -0
- package/dist/daemon/supervised-commands.js +51 -0
- package/dist/daemon/supervised-commands.js.map +1 -0
- package/dist/daemon.d.ts +329 -0
- package/dist/daemon.d.ts.map +1 -0
- package/dist/daemon.js +1654 -0
- package/dist/daemon.js.map +1 -0
- package/dist/definitions.d.ts +2 -0
- package/dist/definitions.d.ts.map +1 -0
- package/dist/definitions.js +2 -0
- package/dist/definitions.js.map +1 -0
- package/dist/dev/command.d.ts +39 -0
- package/dist/dev/command.d.ts.map +1 -0
- package/dist/dev/command.js +79 -0
- package/dist/dev/command.js.map +1 -0
- package/dist/dev/defaults.d.ts +34 -0
- package/dist/dev/defaults.d.ts.map +1 -0
- package/dist/dev/defaults.js +58 -0
- package/dist/dev/defaults.js.map +1 -0
- package/dist/dev/env.d.ts +31 -0
- package/dist/dev/env.d.ts.map +1 -0
- package/dist/dev/env.js +56 -0
- package/dist/dev/env.js.map +1 -0
- package/dist/dev/index.d.ts +26 -0
- package/dist/dev/index.d.ts.map +1 -0
- package/dist/dev/index.js +28 -0
- package/dist/dev/index.js.map +1 -0
- package/dist/dev/sveltekit.d.ts +41 -0
- package/dist/dev/sveltekit.d.ts.map +1 -0
- package/dist/dev/sveltekit.js +93 -0
- package/dist/dev/sveltekit.js.map +1 -0
- package/dist/dev/workspace-shape.d.ts +64 -0
- package/dist/dev/workspace-shape.d.ts.map +1 -0
- package/dist/dev/workspace-shape.js +19 -0
- package/dist/dev/workspace-shape.js.map +1 -0
- package/dist/docs/pm.daemon.docs.descriptor.d.ts +4 -0
- package/dist/docs/pm.daemon.docs.descriptor.d.ts.map +1 -0
- package/dist/docs/pm.daemon.docs.descriptor.js +48 -0
- package/dist/docs/pm.daemon.docs.descriptor.js.map +1 -0
- package/dist/docs/pm.docs.descriptor.d.ts +4 -0
- package/dist/docs/pm.docs.descriptor.d.ts.map +1 -0
- package/dist/docs/pm.docs.descriptor.js +45 -0
- package/dist/docs/pm.docs.descriptor.js.map +1 -0
- package/dist/docs/pm.preset.docs.descriptor.d.ts +4 -0
- package/dist/docs/pm.preset.docs.descriptor.d.ts.map +1 -0
- package/dist/docs/pm.preset.docs.descriptor.js +37 -0
- package/dist/docs/pm.preset.docs.descriptor.js.map +1 -0
- package/dist/docs/pm.queues.docs.descriptor.d.ts +4 -0
- package/dist/docs/pm.queues.docs.descriptor.d.ts.map +1 -0
- package/dist/docs/pm.queues.docs.descriptor.js +157 -0
- package/dist/docs/pm.queues.docs.descriptor.js.map +1 -0
- package/dist/docs/pm.resource.docs.descriptor.d.ts +4 -0
- package/dist/docs/pm.resource.docs.descriptor.d.ts.map +1 -0
- package/dist/docs/pm.resource.docs.descriptor.js +38 -0
- package/dist/docs/pm.resource.docs.descriptor.js.map +1 -0
- package/dist/docs/pm.tasks.docs.descriptor.d.ts +4 -0
- package/dist/docs/pm.tasks.docs.descriptor.d.ts.map +1 -0
- package/dist/docs/pm.tasks.docs.descriptor.js +242 -0
- package/dist/docs/pm.tasks.docs.descriptor.js.map +1 -0
- package/dist/docs/pm.workers.docs.descriptor.d.ts +4 -0
- package/dist/docs/pm.workers.docs.descriptor.d.ts.map +1 -0
- package/dist/docs/pm.workers.docs.descriptor.js +427 -0
- package/dist/docs/pm.workers.docs.descriptor.js.map +1 -0
- package/dist/errors.d.ts +262 -0
- package/dist/errors.d.ts.map +1 -0
- package/dist/errors.js +479 -0
- package/dist/errors.js.map +1 -0
- package/dist/graph.d.ts +82 -0
- package/dist/graph.d.ts.map +1 -0
- package/dist/graph.js +247 -0
- package/dist/graph.js.map +1 -0
- package/dist/helpers/failure.d.ts +10 -0
- package/dist/helpers/failure.d.ts.map +1 -0
- package/dist/helpers/failure.js +10 -0
- package/dist/helpers/failure.js.map +1 -0
- package/dist/helpers/launch-custody.d.ts +16 -0
- package/dist/helpers/launch-custody.d.ts.map +1 -0
- package/dist/helpers/launch-custody.js +117 -0
- package/dist/helpers/launch-custody.js.map +1 -0
- package/dist/helpers/launch-identity.d.ts +20 -0
- package/dist/helpers/launch-identity.d.ts.map +1 -0
- package/dist/helpers/launch-identity.js +70 -0
- package/dist/helpers/launch-identity.js.map +1 -0
- package/dist/helpers/managed-http-origin.d.ts +4 -0
- package/dist/helpers/managed-http-origin.d.ts.map +1 -0
- package/dist/helpers/managed-http-origin.js +9 -0
- package/dist/helpers/managed-http-origin.js.map +1 -0
- package/dist/helpers/managed-process-admission.d.ts +55 -0
- package/dist/helpers/managed-process-admission.d.ts.map +1 -0
- package/dist/helpers/managed-process-admission.js +102 -0
- package/dist/helpers/managed-process-admission.js.map +1 -0
- package/dist/helpers/managed-process-id.d.ts +13 -0
- package/dist/helpers/managed-process-id.d.ts.map +1 -0
- package/dist/helpers/managed-process-id.js +16 -0
- package/dist/helpers/managed-process-id.js.map +1 -0
- package/dist/helpers/node-path.d.ts +16 -0
- package/dist/helpers/node-path.d.ts.map +1 -0
- package/dist/helpers/node-path.js +67 -0
- package/dist/helpers/node-path.js.map +1 -0
- package/dist/helpers/output-redaction.d.ts +36 -0
- package/dist/helpers/output-redaction.d.ts.map +1 -0
- package/dist/helpers/output-redaction.js +120 -0
- package/dist/helpers/output-redaction.js.map +1 -0
- package/dist/helpers/process-credentials.d.ts +62 -0
- package/dist/helpers/process-credentials.d.ts.map +1 -0
- package/dist/helpers/process-credentials.js +107 -0
- package/dist/helpers/process-credentials.js.map +1 -0
- package/dist/helpers/process-env.d.ts +72 -0
- package/dist/helpers/process-env.d.ts.map +1 -0
- package/dist/helpers/process-env.js +265 -0
- package/dist/helpers/process-env.js.map +1 -0
- package/dist/helpers/process-watch.d.ts +7 -0
- package/dist/helpers/process-watch.d.ts.map +1 -0
- package/dist/helpers/process-watch.js +27 -0
- package/dist/helpers/process-watch.js.map +1 -0
- package/dist/helpers/rlimits.d.ts +10 -0
- package/dist/helpers/rlimits.d.ts.map +1 -0
- package/dist/helpers/rlimits.js +14 -0
- package/dist/helpers/rlimits.js.map +1 -0
- package/dist/helpers/runtime-files.d.ts +42 -0
- package/dist/helpers/runtime-files.d.ts.map +1 -0
- package/dist/helpers/runtime-files.js +155 -0
- package/dist/helpers/runtime-files.js.map +1 -0
- package/dist/helpers/worker-routing.d.ts +35 -0
- package/dist/helpers/worker-routing.d.ts.map +1 -0
- package/dist/helpers/worker-routing.js +70 -0
- package/dist/helpers/worker-routing.js.map +1 -0
- package/dist/index.d.ts +10 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +11 -0
- package/dist/index.js.map +1 -0
- package/dist/interface.d.ts +150 -0
- package/dist/interface.d.ts.map +1 -0
- package/dist/interface.js +6 -0
- package/dist/interface.js.map +1 -0
- package/dist/kinds/daemon-module.kind.d.ts +103 -0
- package/dist/kinds/daemon-module.kind.d.ts.map +1 -0
- package/dist/kinds/daemon-module.kind.js +38 -0
- package/dist/kinds/daemon-module.kind.js.map +1 -0
- package/dist/kinds/launch-preparation.kind.d.ts +24 -0
- package/dist/kinds/launch-preparation.kind.d.ts.map +1 -0
- package/dist/kinds/launch-preparation.kind.js +7 -0
- package/dist/kinds/launch-preparation.kind.js.map +1 -0
- package/dist/kinds/liveness-profile.kind.d.ts +33 -0
- package/dist/kinds/liveness-profile.kind.d.ts.map +1 -0
- package/dist/kinds/liveness-profile.kind.js +27 -0
- package/dist/kinds/liveness-profile.kind.js.map +1 -0
- package/dist/kinds/preset.kind.d.ts +59 -0
- package/dist/kinds/preset.kind.d.ts.map +1 -0
- package/dist/kinds/preset.kind.js +35 -0
- package/dist/kinds/preset.kind.js.map +1 -0
- package/dist/kinds/process-source.kind.d.ts +6 -0
- package/dist/kinds/process-source.kind.d.ts.map +1 -0
- package/dist/kinds/process-source.kind.js +24 -0
- package/dist/kinds/process-source.kind.js.map +1 -0
- package/dist/kinds/process.kind.d.ts +237 -0
- package/dist/kinds/process.kind.d.ts.map +1 -0
- package/dist/kinds/process.kind.js +36 -0
- package/dist/kinds/process.kind.js.map +1 -0
- package/dist/kinds/resource-provider.kind.d.ts +41 -0
- package/dist/kinds/resource-provider.kind.d.ts.map +1 -0
- package/dist/kinds/resource-provider.kind.js +56 -0
- package/dist/kinds/resource-provider.kind.js.map +1 -0
- package/dist/kinds/resource.kind.d.ts +73 -0
- package/dist/kinds/resource.kind.d.ts.map +1 -0
- package/dist/kinds/resource.kind.js +35 -0
- package/dist/kinds/resource.kind.js.map +1 -0
- package/dist/kinds/runtime-daemon-endpoint.d.ts +34 -0
- package/dist/kinds/runtime-daemon-endpoint.d.ts.map +1 -0
- package/dist/kinds/runtime-daemon-endpoint.js +83 -0
- package/dist/kinds/runtime-daemon-endpoint.js.map +1 -0
- package/dist/kinds/runtime-daemon-endpoint.kind.d.ts +144 -0
- package/dist/kinds/runtime-daemon-endpoint.kind.d.ts.map +1 -0
- package/dist/kinds/runtime-daemon-endpoint.kind.js +104 -0
- package/dist/kinds/runtime-daemon-endpoint.kind.js.map +1 -0
- package/dist/launch-preparation.d.ts +12 -0
- package/dist/launch-preparation.d.ts.map +1 -0
- package/dist/launch-preparation.js +42 -0
- package/dist/launch-preparation.js.map +1 -0
- package/dist/logging/pm-daemon.logger.descriptor.d.ts +7 -0
- package/dist/logging/pm-daemon.logger.descriptor.d.ts.map +1 -0
- package/dist/logging/pm-daemon.logger.descriptor.js +16 -0
- package/dist/logging/pm-daemon.logger.descriptor.js.map +1 -0
- package/dist/logging/pm-daemon.output.descriptor.d.ts +9 -0
- package/dist/logging/pm-daemon.output.descriptor.d.ts.map +1 -0
- package/dist/logging/pm-daemon.output.descriptor.js +22 -0
- package/dist/logging/pm-daemon.output.descriptor.js.map +1 -0
- package/dist/manager.d.ts +206 -0
- package/dist/manager.d.ts.map +1 -0
- package/dist/manager.js +682 -0
- package/dist/manager.js.map +1 -0
- package/dist/managers/dependency-resolver.d.ts +85 -0
- package/dist/managers/dependency-resolver.d.ts.map +1 -0
- package/dist/managers/dependency-resolver.js +237 -0
- package/dist/managers/dependency-resolver.js.map +1 -0
- package/dist/managers/preset-executor.d.ts +138 -0
- package/dist/managers/preset-executor.d.ts.map +1 -0
- package/dist/managers/preset-executor.js +763 -0
- package/dist/managers/preset-executor.js.map +1 -0
- package/dist/managers/resource-manager.d.ts +142 -0
- package/dist/managers/resource-manager.d.ts.map +1 -0
- package/dist/managers/resource-manager.js +767 -0
- package/dist/managers/resource-manager.js.map +1 -0
- package/dist/migrations.generated.d.ts +14 -0
- package/dist/migrations.generated.d.ts.map +1 -0
- package/dist/migrations.generated.js +27 -0
- package/dist/migrations.generated.js.map +1 -0
- package/dist/pm.assets.runtime.d.ts +151 -0
- package/dist/pm.assets.runtime.d.ts.map +1 -0
- package/dist/pm.assets.runtime.js +30 -0
- package/dist/pm.assets.runtime.js.map +1 -0
- package/dist/pm.client.descriptor.d.ts +4 -0
- package/dist/pm.client.descriptor.d.ts.map +1 -0
- package/dist/pm.client.descriptor.js +8 -0
- package/dist/pm.client.descriptor.js.map +1 -0
- package/dist/pm.client.impl.consumer.d.ts +9 -0
- package/dist/pm.client.impl.consumer.d.ts.map +1 -0
- package/dist/pm.client.impl.consumer.js +13 -0
- package/dist/pm.client.impl.consumer.js.map +1 -0
- package/dist/pm.cloud.plugin.d.ts +29 -0
- package/dist/pm.cloud.plugin.d.ts.map +1 -0
- package/dist/pm.cloud.plugin.js +57 -0
- package/dist/pm.cloud.plugin.js.map +1 -0
- package/dist/pm.consumer.plugin.d.ts +3 -0
- package/dist/pm.consumer.plugin.d.ts.map +1 -0
- package/dist/pm.consumer.plugin.js +70 -0
- package/dist/pm.consumer.plugin.js.map +1 -0
- package/dist/pm.context.descriptor.d.ts +35 -0
- package/dist/pm.context.descriptor.d.ts.map +1 -0
- package/dist/pm.context.descriptor.js +12 -0
- package/dist/pm.context.descriptor.js.map +1 -0
- package/dist/pm.context.impl.consumer.d.ts +8 -0
- package/dist/pm.context.impl.consumer.d.ts.map +1 -0
- package/dist/pm.context.impl.consumer.js +6 -0
- package/dist/pm.context.impl.consumer.js.map +1 -0
- package/dist/pm.plugin.d.ts +6 -0
- package/dist/pm.plugin.d.ts.map +1 -0
- package/dist/pm.plugin.js +6 -0
- package/dist/pm.plugin.js.map +1 -0
- package/dist/presets/index.d.ts +5 -0
- package/dist/presets/index.d.ts.map +1 -0
- package/dist/presets/index.js +5 -0
- package/dist/presets/index.js.map +1 -0
- package/dist/presets/preset/index.d.ts +2 -0
- package/dist/presets/preset/index.d.ts.map +1 -0
- package/dist/presets/preset/index.js +2 -0
- package/dist/presets/preset/index.js.map +1 -0
- package/dist/presets/preset/web-dev.d.ts +39 -0
- package/dist/presets/preset/web-dev.d.ts.map +1 -0
- package/dist/presets/preset/web-dev.js +69 -0
- package/dist/presets/preset/web-dev.js.map +1 -0
- package/dist/presets/process/index.d.ts +3 -0
- package/dist/presets/process/index.d.ts.map +1 -0
- package/dist/presets/process/index.js +3 -0
- package/dist/presets/process/index.js.map +1 -0
- package/dist/presets/process/sveltekit.d.ts +125 -0
- package/dist/presets/process/sveltekit.d.ts.map +1 -0
- package/dist/presets/process/sveltekit.js +52 -0
- package/dist/presets/process/sveltekit.js.map +1 -0
- package/dist/presets/process/web.d.ts +34 -0
- package/dist/presets/process/web.d.ts.map +1 -0
- package/dist/presets/process/web.js +52 -0
- package/dist/presets/process/web.js.map +1 -0
- package/dist/presets/resource/database.d.ts +39 -0
- package/dist/presets/resource/database.d.ts.map +1 -0
- package/dist/presets/resource/database.js +60 -0
- package/dist/presets/resource/database.js.map +1 -0
- package/dist/presets/resource/index.d.ts +2 -0
- package/dist/presets/resource/index.d.ts.map +1 -0
- package/dist/presets/resource/index.js +2 -0
- package/dist/presets/resource/index.js.map +1 -0
- package/dist/presets/types.d.ts +101 -0
- package/dist/presets/types.d.ts.map +1 -0
- package/dist/presets/types.js +53 -0
- package/dist/presets/types.js.map +1 -0
- package/dist/register-migrations.impl.consumer.d.ts +8 -0
- package/dist/register-migrations.impl.consumer.d.ts.map +1 -0
- package/dist/register-migrations.impl.consumer.js +145 -0
- package/dist/register-migrations.impl.consumer.js.map +1 -0
- package/dist/resources/index.d.ts +7 -0
- package/dist/resources/index.d.ts.map +1 -0
- package/dist/resources/index.js +7 -0
- package/dist/resources/index.js.map +1 -0
- package/dist/resources/provider.d.ts +216 -0
- package/dist/resources/provider.d.ts.map +1 -0
- package/dist/resources/provider.js +54 -0
- package/dist/resources/provider.js.map +1 -0
- package/dist/resources/providers/builtin.assets.d.ts +8 -0
- package/dist/resources/providers/builtin.assets.d.ts.map +1 -0
- package/dist/resources/providers/builtin.assets.js +26 -0
- package/dist/resources/providers/builtin.assets.js.map +1 -0
- package/dist/resources/providers/index.d.ts +14 -0
- package/dist/resources/providers/index.d.ts.map +1 -0
- package/dist/resources/providers/index.js +14 -0
- package/dist/resources/providers/index.js.map +1 -0
- package/dist/resources/providers/local-mkcert.d.ts +31 -0
- package/dist/resources/providers/local-mkcert.d.ts.map +1 -0
- package/dist/resources/providers/local-mkcert.js +169 -0
- package/dist/resources/providers/local-mkcert.js.map +1 -0
- package/dist/resources/providers/shell-setup.d.ts +17 -0
- package/dist/resources/providers/shell-setup.d.ts.map +1 -0
- package/dist/resources/providers/shell-setup.js +41 -0
- package/dist/resources/providers/shell-setup.js.map +1 -0
- package/dist/resources/providers/tool-env.d.ts +63 -0
- package/dist/resources/providers/tool-env.d.ts.map +1 -0
- package/dist/resources/providers/tool-env.js +99 -0
- package/dist/resources/providers/tool-env.js.map +1 -0
- package/dist/resources/resource-state-summary.d.ts +3 -0
- package/dist/resources/resource-state-summary.d.ts.map +1 -0
- package/dist/resources/resource-state-summary.js +82 -0
- package/dist/resources/resource-state-summary.js.map +1 -0
- package/dist/resources/status-options.d.ts +4 -0
- package/dist/resources/status-options.d.ts.map +1 -0
- package/dist/resources/status-options.js +6 -0
- package/dist/resources/status-options.js.map +1 -0
- package/dist/runnable/executor.d.ts +11 -0
- package/dist/runnable/executor.d.ts.map +1 -0
- package/dist/runnable/executor.js +41 -0
- package/dist/runnable/executor.js.map +1 -0
- package/dist/runnable/plugin.d.ts +3 -0
- package/dist/runnable/plugin.d.ts.map +1 -0
- package/dist/runnable/plugin.js +12 -0
- package/dist/runnable/plugin.js.map +1 -0
- package/dist/runnable/schemas.d.ts +28 -0
- package/dist/runnable/schemas.d.ts.map +1 -0
- package/dist/runnable/schemas.js +10 -0
- package/dist/runnable/schemas.js.map +1 -0
- package/dist/runtime-daemon-supervisor.descriptor.d.ts +16 -0
- package/dist/runtime-daemon-supervisor.descriptor.d.ts.map +1 -0
- package/dist/runtime-daemon-supervisor.descriptor.js +17 -0
- package/dist/runtime-daemon-supervisor.descriptor.js.map +1 -0
- package/dist/runtime-daemon-supervisor.impl.consumer.d.ts +22 -0
- package/dist/runtime-daemon-supervisor.impl.consumer.d.ts.map +1 -0
- package/dist/runtime-daemon-supervisor.impl.consumer.js +66 -0
- package/dist/runtime-daemon-supervisor.impl.consumer.js.map +1 -0
- package/dist/schemas/action-error.d.ts +8 -0
- package/dist/schemas/action-error.d.ts.map +1 -0
- package/dist/schemas/action-error.js +8 -0
- package/dist/schemas/action-error.js.map +1 -0
- package/dist/schemas/admission.d.ts +36 -0
- package/dist/schemas/admission.d.ts.map +1 -0
- package/dist/schemas/admission.js +22 -0
- package/dist/schemas/admission.js.map +1 -0
- package/dist/schemas/builder.d.ts +402 -0
- package/dist/schemas/builder.d.ts.map +1 -0
- package/dist/schemas/builder.js +410 -0
- package/dist/schemas/builder.js.map +1 -0
- package/dist/schemas/client.d.ts +18 -0
- package/dist/schemas/client.d.ts.map +1 -0
- package/dist/schemas/client.js +2 -0
- package/dist/schemas/client.js.map +1 -0
- package/dist/schemas/commands.d.ts +315 -0
- package/dist/schemas/commands.d.ts.map +1 -0
- package/dist/schemas/commands.js +268 -0
- package/dist/schemas/commands.js.map +1 -0
- package/dist/schemas/common.d.ts +35 -0
- package/dist/schemas/common.d.ts.map +1 -0
- package/dist/schemas/common.js +43 -0
- package/dist/schemas/common.js.map +1 -0
- package/dist/schemas/daemon-command.d.ts +61 -0
- package/dist/schemas/daemon-command.d.ts.map +1 -0
- package/dist/schemas/daemon-command.js +2 -0
- package/dist/schemas/daemon-command.js.map +1 -0
- package/dist/schemas/daemon-host.d.ts +70 -0
- package/dist/schemas/daemon-host.d.ts.map +1 -0
- package/dist/schemas/daemon-host.js +2 -0
- package/dist/schemas/daemon-host.js.map +1 -0
- package/dist/schemas/daemon-launch.d.ts +43 -0
- package/dist/schemas/daemon-launch.d.ts.map +1 -0
- package/dist/schemas/daemon-launch.js +3 -0
- package/dist/schemas/daemon-launch.js.map +1 -0
- package/dist/schemas/daemon.d.ts +98 -0
- package/dist/schemas/daemon.d.ts.map +1 -0
- package/dist/schemas/daemon.js +88 -0
- package/dist/schemas/daemon.js.map +1 -0
- package/dist/schemas/dev.d.ts +169 -0
- package/dist/schemas/dev.d.ts.map +1 -0
- package/dist/schemas/dev.js +8 -0
- package/dist/schemas/dev.js.map +1 -0
- package/dist/schemas/executable-freshness.d.ts +88 -0
- package/dist/schemas/executable-freshness.d.ts.map +1 -0
- package/dist/schemas/executable-freshness.js +2 -0
- package/dist/schemas/executable-freshness.js.map +1 -0
- package/dist/schemas/forward-config.d.ts +11 -0
- package/dist/schemas/forward-config.d.ts.map +1 -0
- package/dist/schemas/forward-config.js +15 -0
- package/dist/schemas/forward-config.js.map +1 -0
- package/dist/schemas/graph.d.ts +444 -0
- package/dist/schemas/graph.d.ts.map +1 -0
- package/dist/schemas/graph.js +59 -0
- package/dist/schemas/graph.js.map +1 -0
- package/dist/schemas/health.d.ts +43 -0
- package/dist/schemas/health.d.ts.map +1 -0
- package/dist/schemas/health.js +6 -0
- package/dist/schemas/health.js.map +1 -0
- package/dist/schemas/launch-preparation.d.ts +106 -0
- package/dist/schemas/launch-preparation.d.ts.map +1 -0
- package/dist/schemas/launch-preparation.js +50 -0
- package/dist/schemas/launch-preparation.js.map +1 -0
- package/dist/schemas/liveness-profile.d.ts +108 -0
- package/dist/schemas/liveness-profile.d.ts.map +1 -0
- package/dist/schemas/liveness-profile.js +33 -0
- package/dist/schemas/liveness-profile.js.map +1 -0
- package/dist/schemas/liveness.d.ts +37 -0
- package/dist/schemas/liveness.d.ts.map +1 -0
- package/dist/schemas/liveness.js +41 -0
- package/dist/schemas/liveness.js.map +1 -0
- package/dist/schemas/manager.d.ts +46 -0
- package/dist/schemas/manager.d.ts.map +1 -0
- package/dist/schemas/manager.js +5 -0
- package/dist/schemas/manager.js.map +1 -0
- package/dist/schemas/port-forward.d.ts +47 -0
- package/dist/schemas/port-forward.d.ts.map +1 -0
- package/dist/schemas/port-forward.js +27 -0
- package/dist/schemas/port-forward.js.map +1 -0
- package/dist/schemas/process-source.d.ts +354 -0
- package/dist/schemas/process-source.d.ts.map +1 -0
- package/dist/schemas/process-source.js +19 -0
- package/dist/schemas/process-source.js.map +1 -0
- package/dist/schemas/process-tree.d.ts +12 -0
- package/dist/schemas/process-tree.d.ts.map +1 -0
- package/dist/schemas/process-tree.js +2 -0
- package/dist/schemas/process-tree.js.map +1 -0
- package/dist/schemas/process.d.ts +944 -0
- package/dist/schemas/process.d.ts.map +1 -0
- package/dist/schemas/process.js +429 -0
- package/dist/schemas/process.js.map +1 -0
- package/dist/schemas/resource.d.ts +223 -0
- package/dist/schemas/resource.d.ts.map +1 -0
- package/dist/schemas/resource.js +92 -0
- package/dist/schemas/resource.js.map +1 -0
- package/dist/schemas/store.d.ts +97 -0
- package/dist/schemas/store.d.ts.map +1 -0
- package/dist/schemas/store.js +2 -0
- package/dist/schemas/store.js.map +1 -0
- package/dist/schemas/task-supervision.d.ts +16 -0
- package/dist/schemas/task-supervision.d.ts.map +1 -0
- package/dist/schemas/task-supervision.js +10 -0
- package/dist/schemas/task-supervision.js.map +1 -0
- package/dist/schemas/tui-state.d.ts +777 -0
- package/dist/schemas/tui-state.d.ts.map +1 -0
- package/dist/schemas/tui-state.js +119 -0
- package/dist/schemas/tui-state.js.map +1 -0
- package/dist/schemas/worker-manager.d.ts +19 -0
- package/dist/schemas/worker-manager.d.ts.map +1 -0
- package/dist/schemas/worker-manager.js +2 -0
- package/dist/schemas/worker-manager.js.map +1 -0
- package/dist/services/cleanup.d.ts +78 -0
- package/dist/services/cleanup.d.ts.map +1 -0
- package/dist/services/cleanup.js +329 -0
- package/dist/services/cleanup.js.map +1 -0
- package/dist/services/health.d.ts +81 -0
- package/dist/services/health.d.ts.map +1 -0
- package/dist/services/health.js +435 -0
- package/dist/services/health.js.map +1 -0
- package/dist/services/index.d.ts +11 -0
- package/dist/services/index.d.ts.map +1 -0
- package/dist/services/index.js +10 -0
- package/dist/services/index.js.map +1 -0
- package/dist/services/lifecycle.d.ts +238 -0
- package/dist/services/lifecycle.d.ts.map +1 -0
- package/dist/services/lifecycle.js +1391 -0
- package/dist/services/lifecycle.js.map +1 -0
- package/dist/services/liveness-state.d.ts +95 -0
- package/dist/services/liveness-state.d.ts.map +1 -0
- package/dist/services/liveness-state.js +239 -0
- package/dist/services/liveness-state.js.map +1 -0
- package/dist/services/orphans.d.ts +72 -0
- package/dist/services/orphans.d.ts.map +1 -0
- package/dist/services/orphans.js +185 -0
- package/dist/services/orphans.js.map +1 -0
- package/dist/services/process-command.d.ts +25 -0
- package/dist/services/process-command.d.ts.map +1 -0
- package/dist/services/process-command.js +36 -0
- package/dist/services/process-command.js.map +1 -0
- package/dist/services/process-log-archive.d.ts +62 -0
- package/dist/services/process-log-archive.d.ts.map +1 -0
- package/dist/services/process-log-archive.js +150 -0
- package/dist/services/process-log-archive.js.map +1 -0
- package/dist/services/run-log-frames.d.ts +26 -0
- package/dist/services/run-log-frames.d.ts.map +1 -0
- package/dist/services/run-log-frames.js +45 -0
- package/dist/services/run-log-frames.js.map +1 -0
- package/dist/services/startup-warmup.d.ts +23 -0
- package/dist/services/startup-warmup.d.ts.map +1 -0
- package/dist/services/startup-warmup.js +21 -0
- package/dist/services/startup-warmup.js.map +1 -0
- package/dist/services/state-wait.d.ts +28 -0
- package/dist/services/state-wait.d.ts.map +1 -0
- package/dist/services/state-wait.js +57 -0
- package/dist/services/state-wait.js.map +1 -0
- package/dist/services/supervision-policy.d.ts +40 -0
- package/dist/services/supervision-policy.d.ts.map +1 -0
- package/dist/services/supervision-policy.js +48 -0
- package/dist/services/supervision-policy.js.map +1 -0
- package/dist/services/task-supervision.d.ts +14 -0
- package/dist/services/task-supervision.d.ts.map +1 -0
- package/dist/services/task-supervision.js +112 -0
- package/dist/services/task-supervision.js.map +1 -0
- package/dist/services/types/index.d.ts +74 -0
- package/dist/services/types/index.d.ts.map +1 -0
- package/dist/services/types/index.js +11 -0
- package/dist/services/types/index.js.map +1 -0
- package/dist/services/workers.d.ts +75 -0
- package/dist/services/workers.d.ts.map +1 -0
- package/dist/services/workers.js +212 -0
- package/dist/services/workers.js.map +1 -0
- package/dist/storage/workspaces.descriptor.d.ts +12 -0
- package/dist/storage/workspaces.descriptor.d.ts.map +1 -0
- package/dist/storage/workspaces.descriptor.js +33 -0
- package/dist/storage/workspaces.descriptor.js.map +1 -0
- package/dist/store/process-admission.d.ts +11 -0
- package/dist/store/process-admission.d.ts.map +1 -0
- package/dist/store/process-admission.js +46 -0
- package/dist/store/process-admission.js.map +1 -0
- package/dist/store/process-config.impl.consumer.d.ts +22 -0
- package/dist/store/process-config.impl.consumer.d.ts.map +1 -0
- package/dist/store/process-config.impl.consumer.js +84 -0
- package/dist/store/process-config.impl.consumer.js.map +1 -0
- package/dist/store/process-state.impl.consumer.d.ts +25 -0
- package/dist/store/process-state.impl.consumer.d.ts.map +1 -0
- package/dist/store/process-state.impl.consumer.js +140 -0
- package/dist/store/process-state.impl.consumer.js.map +1 -0
- package/dist/store/resource-state.impl.consumer.d.ts +9 -0
- package/dist/store/resource-state.impl.consumer.d.ts.map +1 -0
- package/dist/store/resource-state.impl.consumer.js +48 -0
- package/dist/store/resource-state.impl.consumer.js.map +1 -0
- package/dist/store.impl.consumer.d.ts +121 -0
- package/dist/store.impl.consumer.d.ts.map +1 -0
- package/dist/store.impl.consumer.js +436 -0
- package/dist/store.impl.consumer.js.map +1 -0
- package/dist/surface.d.ts +93 -0
- package/dist/surface.d.ts.map +1 -0
- package/dist/surface.js +153 -0
- package/dist/surface.js.map +1 -0
- package/dist/svelte/components/PMOverview.svelte +527 -0
- package/dist/svelte/components/PMOverview.svelte.d.ts +12 -0
- package/dist/svelte/components/PMOverview.svelte.d.ts.map +1 -0
- package/dist/svelte/index.d.ts +4 -0
- package/dist/svelte/index.d.ts.map +1 -0
- package/dist/svelte/index.js +2 -0
- package/dist/svelte/runtime.d.ts +33 -0
- package/dist/svelte/runtime.d.ts.map +1 -0
- package/dist/svelte/runtime.js +148 -0
- package/dist/svelte/styles.css +2 -0
- package/dist/tasks/completion.d.ts +6 -0
- package/dist/tasks/completion.d.ts.map +1 -0
- package/dist/tasks/completion.js +105 -0
- package/dist/tasks/completion.js.map +1 -0
- package/dist/tasks/index.d.ts +11 -0
- package/dist/tasks/index.d.ts.map +1 -0
- package/dist/tasks/index.js +11 -0
- package/dist/tasks/index.js.map +1 -0
- package/dist/tasks/launch.d.ts +196 -0
- package/dist/tasks/launch.d.ts.map +1 -0
- package/dist/tasks/launch.js +10 -0
- package/dist/tasks/launch.js.map +1 -0
- package/dist/tasks/run-task.d.ts +11 -0
- package/dist/tasks/run-task.d.ts.map +1 -0
- package/dist/tasks/run-task.js +144 -0
- package/dist/tasks/run-task.js.map +1 -0
- package/dist/tasks/schemas.d.ts +83 -0
- package/dist/tasks/schemas.d.ts.map +1 -0
- package/dist/tasks/schemas.js +67 -0
- package/dist/tasks/schemas.js.map +1 -0
- package/dist/testing/daemon.d.ts +64 -0
- package/dist/testing/daemon.d.ts.map +1 -0
- package/dist/testing/daemon.js +125 -0
- package/dist/testing/daemon.js.map +1 -0
- package/dist/tui/components/DaemonHealthCard.d.ts +22 -0
- package/dist/tui/components/DaemonHealthCard.d.ts.map +1 -0
- package/dist/tui/components/DaemonHealthCard.js +30 -0
- package/dist/tui/components/DaemonHealthCard.js.map +1 -0
- package/dist/tui/components/ErrorDetailsPanel.d.ts +16 -0
- package/dist/tui/components/ErrorDetailsPanel.d.ts.map +1 -0
- package/dist/tui/components/ErrorDetailsPanel.js +22 -0
- package/dist/tui/components/ErrorDetailsPanel.js.map +1 -0
- package/dist/tui/components/FilterBar.d.ts +21 -0
- package/dist/tui/components/FilterBar.d.ts.map +1 -0
- package/dist/tui/components/FilterBar.js +31 -0
- package/dist/tui/components/FilterBar.js.map +1 -0
- package/dist/tui/components/StatsBar.d.ts +17 -0
- package/dist/tui/components/StatsBar.d.ts.map +1 -0
- package/dist/tui/components/StatsBar.js +28 -0
- package/dist/tui/components/StatsBar.js.map +1 -0
- package/dist/tui/components/index.d.ts +5 -0
- package/dist/tui/components/index.d.ts.map +1 -0
- package/dist/tui/components/index.js +5 -0
- package/dist/tui/components/index.js.map +1 -0
- package/dist/tui/index.d.ts +7 -0
- package/dist/tui/index.d.ts.map +1 -0
- package/dist/tui/index.js +7 -0
- package/dist/tui/index.js.map +1 -0
- package/dist/tui/pm-dashboard.descriptor.d.ts +11 -0
- package/dist/tui/pm-dashboard.descriptor.d.ts.map +1 -0
- package/dist/tui/pm-dashboard.descriptor.js +26 -0
- package/dist/tui/pm-dashboard.descriptor.js.map +1 -0
- package/dist/tui/pm-dashboard.impl.consumer.d.ts +19 -0
- package/dist/tui/pm-dashboard.impl.consumer.d.ts.map +1 -0
- package/dist/tui/pm-dashboard.impl.consumer.js +839 -0
- package/dist/tui/pm-dashboard.impl.consumer.js.map +1 -0
- package/dist/tui/pm-open.descriptor.d.ts +10 -0
- package/dist/tui/pm-open.descriptor.d.ts.map +1 -0
- package/dist/tui/pm-open.descriptor.js +21 -0
- package/dist/tui/pm-open.descriptor.js.map +1 -0
- package/dist/tui/pm-open.impl.consumer.d.ts +9 -0
- package/dist/tui/pm-open.impl.consumer.d.ts.map +1 -0
- package/dist/tui/pm-open.impl.consumer.js +13 -0
- package/dist/tui/pm-open.impl.consumer.js.map +1 -0
- package/dist/tui/pm-processes.descriptor.d.ts +12 -0
- package/dist/tui/pm-processes.descriptor.d.ts.map +1 -0
- package/dist/tui/pm-processes.descriptor.js +30 -0
- package/dist/tui/pm-processes.descriptor.js.map +1 -0
- package/dist/tui/pm-processes.impl.consumer.d.ts +14 -0
- package/dist/tui/pm-processes.impl.consumer.d.ts.map +1 -0
- package/dist/tui/pm-processes.impl.consumer.js +214 -0
- package/dist/tui/pm-processes.impl.consumer.js.map +1 -0
- package/dist/tui/pm-state-keys.d.ts +316 -0
- package/dist/tui/pm-state-keys.d.ts.map +1 -0
- package/dist/tui/pm-state-keys.js +10 -0
- package/dist/tui/pm-state-keys.js.map +1 -0
- package/dist/tui/pm-status.descriptor.d.ts +11 -0
- package/dist/tui/pm-status.descriptor.d.ts.map +1 -0
- package/dist/tui/pm-status.descriptor.js +29 -0
- package/dist/tui/pm-status.descriptor.js.map +1 -0
- package/dist/tui/pm-status.impl.consumer.d.ts +11 -0
- package/dist/tui/pm-status.impl.consumer.d.ts.map +1 -0
- package/dist/tui/pm-status.impl.consumer.js +75 -0
- package/dist/tui/pm-status.impl.consumer.js.map +1 -0
- package/dist/tui/pm-tui.plugin.d.ts +13 -0
- package/dist/tui/pm-tui.plugin.d.ts.map +1 -0
- package/dist/tui/pm-tui.plugin.js +34 -0
- package/dist/tui/pm-tui.plugin.js.map +1 -0
- package/dist/utils/attempt.d.ts +31 -0
- package/dist/utils/attempt.d.ts.map +1 -0
- package/dist/utils/attempt.js +43 -0
- package/dist/utils/attempt.js.map +1 -0
- package/dist/utils/bounded-wait.d.ts +31 -0
- package/dist/utils/bounded-wait.d.ts.map +1 -0
- package/dist/utils/bounded-wait.js +35 -0
- package/dist/utils/bounded-wait.js.map +1 -0
- package/dist/utils/command-exists.d.ts +5 -0
- package/dist/utils/command-exists.d.ts.map +1 -0
- package/dist/utils/command-exists.js +8 -0
- package/dist/utils/command-exists.js.map +1 -0
- package/dist/utils/daemon-launch-lock.d.ts +143 -0
- package/dist/utils/daemon-launch-lock.d.ts.map +1 -0
- package/dist/utils/daemon-launch-lock.js +420 -0
- package/dist/utils/daemon-launch-lock.js.map +1 -0
- package/dist/utils/daemon-launch-recovery.d.ts +82 -0
- package/dist/utils/daemon-launch-recovery.d.ts.map +1 -0
- package/dist/utils/daemon-launch-recovery.js +173 -0
- package/dist/utils/daemon-launch-recovery.js.map +1 -0
- package/dist/utils/daemon-log-follower.d.ts +41 -0
- package/dist/utils/daemon-log-follower.d.ts.map +1 -0
- package/dist/utils/daemon-log-follower.js +124 -0
- package/dist/utils/daemon-log-follower.js.map +1 -0
- package/dist/utils/daemon-pid.d.ts +42 -0
- package/dist/utils/daemon-pid.d.ts.map +1 -0
- package/dist/utils/daemon-pid.js +80 -0
- package/dist/utils/daemon-pid.js.map +1 -0
- package/dist/utils/daemon-reachability.d.ts +87 -0
- package/dist/utils/daemon-reachability.d.ts.map +1 -0
- package/dist/utils/daemon-reachability.js +131 -0
- package/dist/utils/daemon-reachability.js.map +1 -0
- package/dist/utils/daemon-stdio-timestamps.d.ts +24 -0
- package/dist/utils/daemon-stdio-timestamps.d.ts.map +1 -0
- package/dist/utils/daemon-stdio-timestamps.js +59 -0
- package/dist/utils/daemon-stdio-timestamps.js.map +1 -0
- package/dist/utils/daemon-stop.d.ts +66 -0
- package/dist/utils/daemon-stop.d.ts.map +1 -0
- package/dist/utils/daemon-stop.js +100 -0
- package/dist/utils/daemon-stop.js.map +1 -0
- package/dist/utils/errno-failure.d.ts +16 -0
- package/dist/utils/errno-failure.d.ts.map +1 -0
- package/dist/utils/errno-failure.js +15 -0
- package/dist/utils/errno-failure.js.map +1 -0
- package/dist/utils/exec.d.ts +27 -0
- package/dist/utils/exec.d.ts.map +1 -0
- package/dist/utils/exec.js +36 -0
- package/dist/utils/exec.js.map +1 -0
- package/dist/utils/index.d.ts +5 -0
- package/dist/utils/index.d.ts.map +1 -0
- package/dist/utils/index.js +5 -0
- package/dist/utils/index.js.map +1 -0
- package/dist/utils/liveness.d.ts +100 -0
- package/dist/utils/liveness.d.ts.map +1 -0
- package/dist/utils/liveness.js +225 -0
- package/dist/utils/liveness.js.map +1 -0
- package/dist/utils/logging.d.ts +60 -0
- package/dist/utils/logging.d.ts.map +1 -0
- package/dist/utils/logging.js +169 -0
- package/dist/utils/logging.js.map +1 -0
- package/dist/utils/path-under.d.ts +15 -0
- package/dist/utils/path-under.d.ts.map +1 -0
- package/dist/utils/path-under.js +16 -0
- package/dist/utils/path-under.js.map +1 -0
- package/dist/utils/port-ownership.d.ts +160 -0
- package/dist/utils/port-ownership.d.ts.map +1 -0
- package/dist/utils/port-ownership.js +176 -0
- package/dist/utils/port-ownership.js.map +1 -0
- package/dist/utils/ports.d.ts +43 -0
- package/dist/utils/ports.d.ts.map +1 -0
- package/dist/utils/ports.js +200 -0
- package/dist/utils/ports.js.map +1 -0
- package/dist/utils/process-tree.d.ts +33 -0
- package/dist/utils/process-tree.d.ts.map +1 -0
- package/dist/utils/process-tree.js +197 -0
- package/dist/utils/process-tree.js.map +1 -0
- package/dist/utils/semaphore.d.ts +16 -0
- package/dist/utils/semaphore.d.ts.map +1 -0
- package/dist/utils/semaphore.js +30 -0
- package/dist/utils/semaphore.js.map +1 -0
- package/dist/utils/socket-inode.impl.consumer.d.ts +26 -0
- package/dist/utils/socket-inode.impl.consumer.d.ts.map +1 -0
- package/dist/utils/socket-inode.impl.consumer.js +30 -0
- package/dist/utils/socket-inode.impl.consumer.js.map +1 -0
- package/dist/utils/socket-paths.d.ts +121 -0
- package/dist/utils/socket-paths.d.ts.map +1 -0
- package/dist/utils/socket-paths.js +167 -0
- package/dist/utils/socket-paths.js.map +1 -0
- package/dist/utils/socket.d.ts +65 -0
- package/dist/utils/socket.d.ts.map +1 -0
- package/dist/utils/socket.js +87 -0
- package/dist/utils/socket.js.map +1 -0
- package/dist/utils/version.d.ts +40 -0
- package/dist/utils/version.d.ts.map +1 -0
- package/dist/utils/version.js +65 -0
- package/dist/utils/version.js.map +1 -0
- package/dist/utils/vibes-home.d.ts +34 -0
- package/dist/utils/vibes-home.d.ts.map +1 -0
- package/dist/utils/vibes-home.js +27 -0
- package/dist/utils/vibes-home.js.map +1 -0
- package/dist/workspace-runtime.d.ts +38 -0
- package/dist/workspace-runtime.d.ts.map +1 -0
- package/dist/workspace-runtime.js +176 -0
- package/dist/workspace-runtime.js.map +1 -0
- package/package.json +465 -4
package/dist/manager.js
ADDED
|
@@ -0,0 +1,682 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Process Manager
|
|
3
|
+
* Thin orchestrator composing lifecycle, health, cleanup, and workers services
|
|
4
|
+
*/
|
|
5
|
+
import { AWAIT_EXIT_MAX_MS, AwaitExitOptionsSchema, isLaterRun, isProcessExited, isSameRun, processExitOf } from "./schemas/process.js";
|
|
6
|
+
import { waitForProcessState } from "./services/state-wait.js";
|
|
7
|
+
import { TaskSupervision } from "./services/task-supervision.js";
|
|
8
|
+
import { ProcessStore } from "./store.impl.consumer.js";
|
|
9
|
+
import { getWorkspaceProcessLogDir } from "./utils/vibes-home.js";
|
|
10
|
+
import { getLogger } from '@vibesdotdev/logging';
|
|
11
|
+
import { checkProcessLiveness, isProcessAlive, ownsLivePid } from "./utils/liveness.js";
|
|
12
|
+
// isProcessRunning imported in liveness.ts
|
|
13
|
+
import { resolveWorkerSocketPath } from "./utils/socket-paths.js";
|
|
14
|
+
import { getSocketInfo, removeSocket, testSocketConnectivity } from "./utils/socket.js";
|
|
15
|
+
import { LifecycleService } from "./services/lifecycle.js";
|
|
16
|
+
import { HealthMonitor } from "./services/health.js";
|
|
17
|
+
import { CleanupService } from "./services/cleanup.js";
|
|
18
|
+
import { bindWorkerRuntimeProcessConfig, ensureWorkerRuntime } from "./services/workers.js";
|
|
19
|
+
import { bindProcessLaunchCustody } from "./helpers/launch-custody.js";
|
|
20
|
+
import { processLaunchIdentity } from "./helpers/launch-identity.js";
|
|
21
|
+
import { CapabilityError, getRuntimeHostIdentity } from '@vibesdotdev/kernel';
|
|
22
|
+
import { attempt, failureLabel } from "./utils/attempt.js";
|
|
23
|
+
import { hasErrno, rethrowFailure } from "./helpers/failure.js";
|
|
24
|
+
import { pmFileSystem, readByteRange, readBytesFile, statSizeIfPresent } from "./helpers/runtime-files.js";
|
|
25
|
+
import { getPathRoots, getRuntimePath } from '@vibesdotdev/paths';
|
|
26
|
+
import { resolveBoundWorkerWorkspaceRoot } from "./helpers/worker-routing.js";
|
|
27
|
+
import { admittedWorkspaceIdentity } from "./admission.js";
|
|
28
|
+
import { isWaitTimeout } from "./utils/bounded-wait.js";
|
|
29
|
+
import { readPMBudget } from "./graph.js";
|
|
30
|
+
import { redactCredentials } from '@vibesdotdev/shared/utils';
|
|
31
|
+
/**
|
|
32
|
+
* The complete lines `path` gained since `offset` and the offset after them.
|
|
33
|
+
* A log not written yet (`ENOENT`) has gained nothing; a log that shrank is
|
|
34
|
+
* read again from 0. Any other failure propagates.
|
|
35
|
+
*/
|
|
36
|
+
export async function readCompleteLinesSince(files, path, offset) {
|
|
37
|
+
const size = await statSizeIfPresent(files, path);
|
|
38
|
+
if (size === undefined)
|
|
39
|
+
return { text: '', next: 0 };
|
|
40
|
+
const from = size < offset ? 0 : offset;
|
|
41
|
+
if (size === from)
|
|
42
|
+
return { text: '', next: from };
|
|
43
|
+
// Only the bytes gained are read, through the ranged read.
|
|
44
|
+
const gained = await readByteRange(files, path, from, size);
|
|
45
|
+
const end = gained.lastIndexOf(0x0a);
|
|
46
|
+
if (end < 0)
|
|
47
|
+
return { text: '', next: from };
|
|
48
|
+
return { text: new TextDecoder().decode(gained.subarray(0, end + 1)), next: from + end + 1 };
|
|
49
|
+
}
|
|
50
|
+
export async function readProcessLogFile(files, path, lines) {
|
|
51
|
+
if (!lines) {
|
|
52
|
+
return new TextDecoder().decode(await readBytesFile(files, path));
|
|
53
|
+
}
|
|
54
|
+
return readProcessLogTail(files, path, lines);
|
|
55
|
+
}
|
|
56
|
+
/** How far back one step of the tail read goes. */
|
|
57
|
+
const TAIL_READ_STEP_BYTES = 64 * 1024;
|
|
58
|
+
/** The run `state` names, when it has started one. */
|
|
59
|
+
function runOf(state) {
|
|
60
|
+
return state.startedAt ? { startedAt: state.startedAt } : undefined;
|
|
61
|
+
}
|
|
62
|
+
export async function readProcessLogTail(files, path, lines) {
|
|
63
|
+
const size = await statSizeIfPresent(files, path);
|
|
64
|
+
// A log that is not there is a failed read, as it was when the whole file was read.
|
|
65
|
+
if (size === undefined)
|
|
66
|
+
return new TextDecoder().decode(await readBytesFile(files, path));
|
|
67
|
+
if (size === 0)
|
|
68
|
+
return '';
|
|
69
|
+
// Walk back from the end in steps until `lines` + 1 newlines have been seen: everything after
|
|
70
|
+
// the last of them is the `lines` complete lines (and the trailing partial one). Only the
|
|
71
|
+
// steps walked are read, through the ranged read.
|
|
72
|
+
let from = size;
|
|
73
|
+
let newlineCount = 0;
|
|
74
|
+
let tail = new Uint8Array(0);
|
|
75
|
+
let start = 0;
|
|
76
|
+
while (from > 0) {
|
|
77
|
+
const stepFrom = Math.max(0, from - TAIL_READ_STEP_BYTES);
|
|
78
|
+
const step = await readByteRange(files, path, stepFrom, from);
|
|
79
|
+
const joined = new Uint8Array(step.length + tail.length);
|
|
80
|
+
joined.set(step);
|
|
81
|
+
joined.set(tail, step.length);
|
|
82
|
+
tail = joined;
|
|
83
|
+
from = stepFrom;
|
|
84
|
+
let found = false;
|
|
85
|
+
for (let index = step.length - 1; index >= 0; index--) {
|
|
86
|
+
if (step[index] !== 10)
|
|
87
|
+
continue;
|
|
88
|
+
newlineCount++;
|
|
89
|
+
if (newlineCount > lines) {
|
|
90
|
+
start = index + 1;
|
|
91
|
+
found = true;
|
|
92
|
+
break;
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
if (found)
|
|
96
|
+
break;
|
|
97
|
+
}
|
|
98
|
+
const content = new TextDecoder().decode(tail.subarray(start));
|
|
99
|
+
const normalized = content.endsWith('\n') ? content.slice(0, -1) : content;
|
|
100
|
+
return normalized.split('\n').slice(-lines).join('\n');
|
|
101
|
+
}
|
|
102
|
+
/** The deadline of one serialized start or restart before it refuses `pm-start-restart-timeout`. */
|
|
103
|
+
export const START_OR_RESTART_TIMEOUT_MS = 120_000;
|
|
104
|
+
export class ProcessManager {
|
|
105
|
+
store;
|
|
106
|
+
lifecycle;
|
|
107
|
+
healthMonitor;
|
|
108
|
+
taskSupervision;
|
|
109
|
+
cleanup;
|
|
110
|
+
logDir;
|
|
111
|
+
startOrRestartTimeoutMs;
|
|
112
|
+
scope;
|
|
113
|
+
workspaceIdentity;
|
|
114
|
+
inFlightStartOrRestart = new Map();
|
|
115
|
+
/** Operator-initiated ends in flight, so the run-end archive can name them. */
|
|
116
|
+
pendingRunEndInitiators = new Map();
|
|
117
|
+
/** Path mechanics from the constructing caller's runtime (required for 'global'). */
|
|
118
|
+
runtimePath;
|
|
119
|
+
/** The runtime the constructing caller was handed (a getter; see ProcessManagerOptions). */
|
|
120
|
+
getRuntime;
|
|
121
|
+
/** `getPathRoots(runtime)`, captured at construction. */
|
|
122
|
+
roots;
|
|
123
|
+
/** The handed runtime's Logging, read per entry so it follows hot-reload generations (C083a). */
|
|
124
|
+
get logger() {
|
|
125
|
+
return getLogger('pm:manager', this.getRuntime());
|
|
126
|
+
}
|
|
127
|
+
constructor(scope, resourceManager, options) {
|
|
128
|
+
this.scope = scope;
|
|
129
|
+
this.startOrRestartTimeoutMs = options.startOrRestartTimeoutMs ?? START_OR_RESTART_TIMEOUT_MS;
|
|
130
|
+
this.getRuntime = options.getRuntime;
|
|
131
|
+
this.roots = getPathRoots(options.getRuntime());
|
|
132
|
+
this.runtimePath = options.runtimePath;
|
|
133
|
+
this.workspaceIdentity = admittedWorkspaceIdentity(options.workspaceRoot);
|
|
134
|
+
// Thread the admitted identity through explicitly: without it both stores
|
|
135
|
+
// re-derive workspace identity ambiently (cwd/env at first access), which
|
|
136
|
+
// can disagree with this manager's admitted workspaceRoot and make two
|
|
137
|
+
// managers for two different workspaces collide on one 'global'-scope
|
|
138
|
+
// partition — clobbering each other's process config/state, including a
|
|
139
|
+
// worker's persisted socketPath that a health probe reads back verbatim.
|
|
140
|
+
this.store =
|
|
141
|
+
options.store ??
|
|
142
|
+
new ProcessStore(scope === 'global'
|
|
143
|
+
? { scope, roots: this.roots, workspaceToolingId: this.workspaceIdentity.toolingId }
|
|
144
|
+
: { scope, workspaceRoot: this.workspaceIdentity.workspacePath }, options.getRuntime());
|
|
145
|
+
this.taskSupervision = new TaskSupervision(this.store, {
|
|
146
|
+
workspacePath: this.workspaceIdentity.workspacePath, toolingId: this.workspaceIdentity.toolingId
|
|
147
|
+
});
|
|
148
|
+
this.logDir = this.getLogDir(scope);
|
|
149
|
+
const lifecycleConfig = {
|
|
150
|
+
logDir: this.logDir,
|
|
151
|
+
resourceManager,
|
|
152
|
+
// An environment without the capability has no graph identity (null);
|
|
153
|
+
// one that has it and fails propagates.
|
|
154
|
+
graphIdentity: (root) => options.getRuntime().localEnvironment.graphIdentity?.(root) ?? null,
|
|
155
|
+
getRuntime: options.getRuntime
|
|
156
|
+
};
|
|
157
|
+
if (options.daemonScope)
|
|
158
|
+
lifecycleConfig.daemonScope = options.daemonScope;
|
|
159
|
+
if (options.livenessProfile)
|
|
160
|
+
lifecycleConfig.livenessProfile = options.livenessProfile;
|
|
161
|
+
this.lifecycle = new LifecycleService(this.store, lifecycleConfig);
|
|
162
|
+
this.healthMonitor = new HealthMonitor(this.store, options.getRuntime);
|
|
163
|
+
this.cleanup = new CleanupService(this.store, this.logDir, options.getRuntime, {
|
|
164
|
+
ephemeralTimeoutMs: options?.ephemeralCleanupTimeoutMs
|
|
165
|
+
}, this.store);
|
|
166
|
+
}
|
|
167
|
+
getLogDir(scope) {
|
|
168
|
+
switch (scope) {
|
|
169
|
+
case 'global':
|
|
170
|
+
if (!this.runtimePath) {
|
|
171
|
+
throw new CapabilityError("ProcessManager 'global' scope requires options.runtimePath (resolve it with getRuntimePath(runtime)).", 'INVALID_INPUT', { reason: 'pm-manager-runtime-path-required', details: { scope } });
|
|
172
|
+
}
|
|
173
|
+
return getWorkspaceProcessLogDir(this.workspaceIdentity.toolingId, {
|
|
174
|
+
roots: this.roots,
|
|
175
|
+
runtimePath: this.runtimePath
|
|
176
|
+
});
|
|
177
|
+
case 'project':
|
|
178
|
+
case 'local':
|
|
179
|
+
// `workspacePath` is absolute, and every host accepts `/` between path segments.
|
|
180
|
+
return this.runtimePath
|
|
181
|
+
? this.runtimePath.join(this.workspaceIdentity.workspacePath, '.vibes', 'logs')
|
|
182
|
+
: `${this.workspaceIdentity.workspacePath}/.vibes/logs`;
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
/** Directory holding this manager's `<id>.stdout` / `<id>.stderr`. */
|
|
186
|
+
get processLogDir() {
|
|
187
|
+
return this.logDir;
|
|
188
|
+
}
|
|
189
|
+
async getLogPaths(processId) {
|
|
190
|
+
const path = await this.pathService();
|
|
191
|
+
return {
|
|
192
|
+
stdout: path.join(this.logDir, `${processId}.stdout`),
|
|
193
|
+
stderr: path.join(this.logDir, `${processId}.stderr`)
|
|
194
|
+
};
|
|
195
|
+
}
|
|
196
|
+
async runStartOrRestartLocked(processId, config, operation, deduplicate = true) {
|
|
197
|
+
// A supervised daemon command already owns this process admission. Waiting
|
|
198
|
+
// on a separate launch caller queued behind it would deadlock the owner.
|
|
199
|
+
if (await this.store.currentTaskAdmission(processId))
|
|
200
|
+
return operation();
|
|
201
|
+
// A concurrent request shares the in-flight result only when it would
|
|
202
|
+
// launch the same process (its full launch identity, env included);
|
|
203
|
+
// any other request runs next with its own config.
|
|
204
|
+
const launchIdentity = processLaunchIdentity(config);
|
|
205
|
+
const existing = this.inFlightStartOrRestart.get(processId);
|
|
206
|
+
if (existing) {
|
|
207
|
+
if (!deduplicate) {
|
|
208
|
+
await existing.promise;
|
|
209
|
+
return this.runStartOrRestartLocked(processId, config, operation, false);
|
|
210
|
+
}
|
|
211
|
+
if (existing.launchIdentity !== launchIdentity) {
|
|
212
|
+
// The identity carries env values: log the process id only (RC05).
|
|
213
|
+
this.logger.warn('Concurrent start with a different launch identity, serializing', { processId });
|
|
214
|
+
// The earlier request's own caller receives its failure; this request runs next regardless.
|
|
215
|
+
const earlier = await attempt(() => existing.promise);
|
|
216
|
+
if (!earlier.ok) {
|
|
217
|
+
this.logger.debug('existing promise rejected during restart serialization', { failure: failureLabel(earlier.failure) });
|
|
218
|
+
}
|
|
219
|
+
return this.runStartOrRestartLocked(processId, config, operation);
|
|
220
|
+
}
|
|
221
|
+
return existing.promise;
|
|
222
|
+
}
|
|
223
|
+
// The serialized operation is bounded by the runtime lifecycle (RC07).
|
|
224
|
+
const promise = (async () => {
|
|
225
|
+
const waited = await attempt(() => this.getRuntime().lifecycle.wait(() => operation(), { timeoutMs: this.startOrRestartTimeoutMs, reason: 'pm-start-or-restart' }));
|
|
226
|
+
if (waited.ok)
|
|
227
|
+
return waited.value;
|
|
228
|
+
if (isWaitTimeout(waited.failure)) {
|
|
229
|
+
throw new CapabilityError(`Process ${processId} start/restart timed out after ${this.startOrRestartTimeoutMs}ms`, 'TIMEOUT', {
|
|
230
|
+
reason: 'pm-start-restart-timeout',
|
|
231
|
+
details: { processId, timeoutMs: this.startOrRestartTimeoutMs },
|
|
232
|
+
cause: waited.failure
|
|
233
|
+
});
|
|
234
|
+
}
|
|
235
|
+
return rethrowFailure(waited.failure);
|
|
236
|
+
})();
|
|
237
|
+
this.inFlightStartOrRestart.set(processId, { promise, launchIdentity });
|
|
238
|
+
try {
|
|
239
|
+
return await promise;
|
|
240
|
+
}
|
|
241
|
+
finally {
|
|
242
|
+
const current = this.inFlightStartOrRestart.get(processId);
|
|
243
|
+
if (current?.promise === promise) {
|
|
244
|
+
this.inFlightStartOrRestart.delete(processId);
|
|
245
|
+
}
|
|
246
|
+
}
|
|
247
|
+
}
|
|
248
|
+
// Process Lifecycle (delegated to LifecycleService)
|
|
249
|
+
/** The injected path service, or the one the handed runtime registers. Never cached here. */
|
|
250
|
+
async pathService() {
|
|
251
|
+
return this.runtimePath ?? (await getRuntimePath(this.getRuntime()));
|
|
252
|
+
}
|
|
253
|
+
bindAdmittedProcessConfig(config, runtimePath) {
|
|
254
|
+
return bindProcessLaunchCustody(bindWorkerRuntimeProcessConfig(config, this.workspaceIdentity.workspacePath, {
|
|
255
|
+
roots: this.roots,
|
|
256
|
+
runtimePath
|
|
257
|
+
}), this.workspaceIdentity.workspacePath);
|
|
258
|
+
}
|
|
259
|
+
/**
|
|
260
|
+
* Enforce the declared budget (H1) on a NEW start: with
|
|
261
|
+
* `maxManagedProcesses` managed processes already running or starting, a
|
|
262
|
+
* start of another is refused `RATE_LIMITED` `pm-budget-max-processes`.
|
|
263
|
+
* (Re)starting a process already counted adds nothing; nothing running is
|
|
264
|
+
* ever stopped to honour a tightened budget.
|
|
265
|
+
*/
|
|
266
|
+
async admitWithinBudget(processId) {
|
|
267
|
+
const { maxManagedProcesses } = await readPMBudget(this.getRuntime());
|
|
268
|
+
if (maxManagedProcesses === undefined)
|
|
269
|
+
return;
|
|
270
|
+
const live = (await this.getAllStatus()).filter((state) => (state.status === 'running' || state.status === 'starting') && state.id !== processId);
|
|
271
|
+
if (live.length < maxManagedProcesses)
|
|
272
|
+
return;
|
|
273
|
+
throw new CapabilityError(`Starting '${processId}' would exceed the declared budget of ${maxManagedProcesses} managed processes.`, 'RATE_LIMITED', {
|
|
274
|
+
reason: 'pm-budget-max-processes',
|
|
275
|
+
retryable: true,
|
|
276
|
+
recoveryHint: "Stop a process, or raise config.plugins.pm.budget.maxManagedProcesses.",
|
|
277
|
+
details: { processId, maxManagedProcesses, live: live.length }
|
|
278
|
+
});
|
|
279
|
+
}
|
|
280
|
+
async start(input, options) {
|
|
281
|
+
await this.admitWithinBudget(input.id);
|
|
282
|
+
const config = this.bindAdmittedProcessConfig(input, await this.pathService());
|
|
283
|
+
if (!(await this.store.currentTaskAdmission(input.id)))
|
|
284
|
+
await this.cleanup.cleanupStale();
|
|
285
|
+
return this.runStartOrRestartLocked(config.id, config, async () => {
|
|
286
|
+
const state = await this.lifecycle.start(config, options);
|
|
287
|
+
if (config.healthCheck) {
|
|
288
|
+
this.healthMonitor.start(config.id, config);
|
|
289
|
+
if (options?.wait) {
|
|
290
|
+
await this.healthMonitor.waitForHealthy(config.id, config, options.timeout ?? 30_000, runOf(state));
|
|
291
|
+
return (await this.store.get(config.id)) ?? state;
|
|
292
|
+
}
|
|
293
|
+
}
|
|
294
|
+
return state;
|
|
295
|
+
});
|
|
296
|
+
}
|
|
297
|
+
/**
|
|
298
|
+
* The operator command currently ending `processId`'s run, if any. The
|
|
299
|
+
* daemon's previous-run log archive (services/process-log-archive.ts) names
|
|
300
|
+
* the exit banner's initiator from it.
|
|
301
|
+
*/
|
|
302
|
+
pendingRunEndInitiator(processId) {
|
|
303
|
+
return this.pendingRunEndInitiators.get(processId);
|
|
304
|
+
}
|
|
305
|
+
async stop(processId, options) {
|
|
306
|
+
if (options?.run) {
|
|
307
|
+
const state = await this.store.get(processId);
|
|
308
|
+
if (!state || !isSameRun(state, options.run))
|
|
309
|
+
throw new CapabilityError('The requested process run was superseded.', 'CONFLICT', {
|
|
310
|
+
reason: 'pm-stop-run-superseded', details: { processId }
|
|
311
|
+
});
|
|
312
|
+
}
|
|
313
|
+
this.healthMonitor.stop(processId);
|
|
314
|
+
this.pendingRunEndInitiators.set(processId, 'stop-rpc');
|
|
315
|
+
try {
|
|
316
|
+
await this.lifecycle.stop(processId, options);
|
|
317
|
+
}
|
|
318
|
+
finally {
|
|
319
|
+
this.pendingRunEndInitiators.delete(processId);
|
|
320
|
+
}
|
|
321
|
+
}
|
|
322
|
+
restart(processId, options, guard) {
|
|
323
|
+
// Fetch config first for the lock signature check
|
|
324
|
+
return this.store.getConfig(processId).then((config) => {
|
|
325
|
+
if (!config) {
|
|
326
|
+
throw new CapabilityError(`Process config not found: ${processId}`, 'NOT_FOUND', {
|
|
327
|
+
reason: 'pm-process-config-not-found',
|
|
328
|
+
details: { processId }
|
|
329
|
+
});
|
|
330
|
+
}
|
|
331
|
+
return this.runStartOrRestartLocked(processId, config, () => this.store.withProcessAdmission(processId, async () => {
|
|
332
|
+
await this.store.assertTaskReleaseAvailable(processId);
|
|
333
|
+
if (guard?.expectedPid !== undefined) {
|
|
334
|
+
const tracked = await this.store.get(processId);
|
|
335
|
+
if (tracked?.pid !== guard.expectedPid) {
|
|
336
|
+
throw new CapabilityError(`restart refused: '${processId}' is tracked as pid ${tracked?.pid ?? 'none'}; the requester expected pid ${guard.expectedPid}`, 'CONFLICT', {
|
|
337
|
+
reason: 'pm-restart-pid-mismatch',
|
|
338
|
+
details: { processId, expectedPid: guard.expectedPid, trackedPid: tracked?.pid }
|
|
339
|
+
});
|
|
340
|
+
}
|
|
341
|
+
}
|
|
342
|
+
this.healthMonitor.stop(processId);
|
|
343
|
+
this.pendingRunEndInitiators.set(processId, 'restart-rpc');
|
|
344
|
+
let state;
|
|
345
|
+
try {
|
|
346
|
+
state = await this.lifecycle.restart(processId, options);
|
|
347
|
+
}
|
|
348
|
+
finally {
|
|
349
|
+
this.pendingRunEndInitiators.delete(processId);
|
|
350
|
+
}
|
|
351
|
+
if (config?.healthCheck) {
|
|
352
|
+
this.healthMonitor.start(processId, config);
|
|
353
|
+
if (options?.wait) {
|
|
354
|
+
await this.healthMonitor.waitForHealthy(processId, config, options.timeout ?? 30_000, runOf(state));
|
|
355
|
+
return (await this.store.get(processId)) ?? state;
|
|
356
|
+
}
|
|
357
|
+
}
|
|
358
|
+
return state;
|
|
359
|
+
}), guard?.expectedPid === undefined);
|
|
360
|
+
});
|
|
361
|
+
}
|
|
362
|
+
// Status and Queries
|
|
363
|
+
async getStatus(processId) {
|
|
364
|
+
await this.cleanup.cleanupStale();
|
|
365
|
+
let state = await this.store.get(processId);
|
|
366
|
+
if (!state)
|
|
367
|
+
return undefined;
|
|
368
|
+
if (state.status === 'running') {
|
|
369
|
+
const observed = state;
|
|
370
|
+
const livenessResult = await checkProcessLiveness(this.getRuntime(), state);
|
|
371
|
+
const unresponsive = livenessResult.details.socketExists === false || livenessResult.details.socketConnectable === false;
|
|
372
|
+
if (!livenessResult.alive &&
|
|
373
|
+
unresponsive &&
|
|
374
|
+
(await ownsLivePid(this.getRuntime(), state, await this.store.getConfig(processId)))) {
|
|
375
|
+
// Its socket is not answering yet, but the process is alive and ours:
|
|
376
|
+
// still booting or busy. It stays `running`; the liveness checker
|
|
377
|
+
// owns escalation for one that never answers.
|
|
378
|
+
return state;
|
|
379
|
+
}
|
|
380
|
+
if (!livenessResult.alive) {
|
|
381
|
+
const updates = livenessResult.details.socketExists && !livenessResult.details.socketConnectable
|
|
382
|
+
? {
|
|
383
|
+
status: 'crashed',
|
|
384
|
+
stoppedAt: new Date(),
|
|
385
|
+
staleSocket: true,
|
|
386
|
+
lastError: `Crashed: ${livenessResult.details.reason}`
|
|
387
|
+
}
|
|
388
|
+
: {
|
|
389
|
+
status: 'stopped',
|
|
390
|
+
stoppedAt: new Date(),
|
|
391
|
+
lastError: livenessResult.details.reason
|
|
392
|
+
};
|
|
393
|
+
// Liveness describes the row read before its awaits, never a terminal
|
|
394
|
+
// record or replacement generation committed while the probe ran.
|
|
395
|
+
const changed = await this.store.updateWhen(processId, updates, current => current.status === 'running' && current.pid === observed.pid &&
|
|
396
|
+
current.startedAt?.getTime() === observed.startedAt?.getTime());
|
|
397
|
+
if (changed)
|
|
398
|
+
this.logger.warn(`Process ${processId} not alive: ${livenessResult.details.reason}`);
|
|
399
|
+
state = await this.store.get(processId);
|
|
400
|
+
}
|
|
401
|
+
}
|
|
402
|
+
return state;
|
|
403
|
+
}
|
|
404
|
+
async getAllStatus() {
|
|
405
|
+
await this.cleanup.cleanupStale();
|
|
406
|
+
return this.store.getAll();
|
|
407
|
+
}
|
|
408
|
+
/**
|
|
409
|
+
* Whether `processId` is running. A live child of ours whose socket does not
|
|
410
|
+
* answer yet is booting or busy: running, and its record stays as it is
|
|
411
|
+
* (getStatus already left it `running`). Only a dead or foreign pid is
|
|
412
|
+
* recorded stopped. Recording a booting child `stopped` with its pid kept
|
|
413
|
+
* made the next start kill it as an orphan (2026-10-11 workers loop).
|
|
414
|
+
*/
|
|
415
|
+
async isRunning(processId) {
|
|
416
|
+
const state = await this.getStatus(processId);
|
|
417
|
+
if (state?.status !== 'running')
|
|
418
|
+
return false;
|
|
419
|
+
if (await isProcessAlive(this.getRuntime(), state))
|
|
420
|
+
return true;
|
|
421
|
+
if (await ownsLivePid(this.getRuntime(), state, await this.store.getConfig(processId)))
|
|
422
|
+
return true;
|
|
423
|
+
const changed = await this.store.updateWhen(processId, { status: 'stopped', stoppedAt: new Date(), pid: undefined }, current => current.status === 'running' && current.pid === state.pid &&
|
|
424
|
+
current.startedAt?.getTime() === state.startedAt?.getTime());
|
|
425
|
+
if (!changed)
|
|
426
|
+
return (await this.store.get(processId))?.status === 'running';
|
|
427
|
+
this.lifecycle.removeProcess(processId);
|
|
428
|
+
return false;
|
|
429
|
+
}
|
|
430
|
+
async health() {
|
|
431
|
+
const pid = (await getRuntimeHostIdentity(this.getRuntime())).currentPid();
|
|
432
|
+
if (!Number.isSafeInteger(pid) || pid <= 0) {
|
|
433
|
+
throw new CapabilityError('The selected host supplied an invalid process identity.', 'INVALID_INPUT', {
|
|
434
|
+
reason: 'pm-host-pid-invalid', retryable: false
|
|
435
|
+
});
|
|
436
|
+
}
|
|
437
|
+
const states = await this.getAllStatus();
|
|
438
|
+
const running = states.filter((s) => s.status === 'running');
|
|
439
|
+
return {
|
|
440
|
+
healthy: true,
|
|
441
|
+
uptime: 0,
|
|
442
|
+
version: '1.0.0',
|
|
443
|
+
processCount: states.length,
|
|
444
|
+
runningCount: running.length,
|
|
445
|
+
timestamp: new Date(),
|
|
446
|
+
pid
|
|
447
|
+
};
|
|
448
|
+
}
|
|
449
|
+
// Activity Tracking
|
|
450
|
+
async touch(processId, timestamp) {
|
|
451
|
+
const state = await this.store.get(processId);
|
|
452
|
+
if (!state)
|
|
453
|
+
return;
|
|
454
|
+
const time = timestamp instanceof Date ? timestamp : new Date(timestamp ?? Date.now());
|
|
455
|
+
await this.store.update(processId, { lastActivity: time });
|
|
456
|
+
}
|
|
457
|
+
// Cleanup (delegated to CleanupService)
|
|
458
|
+
async cleanupIdleProcesses(_now = Date.now()) {
|
|
459
|
+
const result = await this.cleanup.cleanupIdle((id) => this.stop(id));
|
|
460
|
+
return result.cleaned;
|
|
461
|
+
}
|
|
462
|
+
async cleanupEphemeralProcesses(_now = Date.now()) {
|
|
463
|
+
const result = await this.cleanup.cleanupEphemeral();
|
|
464
|
+
return result.cleaned;
|
|
465
|
+
}
|
|
466
|
+
/** Remove the process logs older than `maxAgeMs` (see `CleanupService.cleanupExpiredLogs`). */
|
|
467
|
+
cleanupExpiredLogs(maxAgeMs) {
|
|
468
|
+
return this.cleanup.cleanupExpiredLogs(maxAgeMs);
|
|
469
|
+
}
|
|
470
|
+
getEphemeralCleanupTimeoutMs() {
|
|
471
|
+
return this.cleanup.getEphemeralTimeout();
|
|
472
|
+
}
|
|
473
|
+
setEphemeralCleanupTimeoutMs(timeoutMs) {
|
|
474
|
+
this.cleanup.setEphemeralTimeout(timeoutMs);
|
|
475
|
+
}
|
|
476
|
+
// Logs
|
|
477
|
+
async getLogs(processId, options = {}) {
|
|
478
|
+
const logPaths = await this.getLogPaths(processId);
|
|
479
|
+
const files = await pmFileSystem(this.getRuntime());
|
|
480
|
+
const streams = [];
|
|
481
|
+
const streamOption = options.stream ?? 'both';
|
|
482
|
+
if (streamOption === 'stdout' || streamOption === 'both')
|
|
483
|
+
streams.push('stdout');
|
|
484
|
+
if (streamOption === 'stderr' || streamOption === 'both')
|
|
485
|
+
streams.push('stderr');
|
|
486
|
+
const logs = [];
|
|
487
|
+
for (const stream of streams) {
|
|
488
|
+
const path = stream === 'stdout' ? logPaths.stdout : logPaths.stderr;
|
|
489
|
+
const read = await attempt(() => readProcessLogFile(files, path, options.lines));
|
|
490
|
+
if (read.ok) {
|
|
491
|
+
logs.push(`=== ${stream.toUpperCase()} ===\n${read.value}`);
|
|
492
|
+
}
|
|
493
|
+
else if (!hasErrno(read.failure, 'ENOENT')) {
|
|
494
|
+
return rethrowFailure(read.failure);
|
|
495
|
+
}
|
|
496
|
+
}
|
|
497
|
+
if (logs.length === 0)
|
|
498
|
+
return '';
|
|
499
|
+
// RC05: a credential the process printed never reaches a read surface.
|
|
500
|
+
return redactCredentials(logs.join('\n\n'), await this.lifecycle.logRedactions(processId));
|
|
501
|
+
}
|
|
502
|
+
/**
|
|
503
|
+
* What each stream gained since `offsets`, redacted (RC05), for `pm logs
|
|
504
|
+
* --follow`. Only complete lines are returned, so a value never straddles
|
|
505
|
+
* two reads unredacted; the partial tail waits for its newline. A stream
|
|
506
|
+
* that shrank was rotated or truncated and is read again from 0.
|
|
507
|
+
*/
|
|
508
|
+
async readLogsSince(processId, offsets) {
|
|
509
|
+
const paths = await this.getLogPaths(processId);
|
|
510
|
+
const files = await pmFileSystem(this.getRuntime());
|
|
511
|
+
const redactions = await this.lifecycle.logRedactions(processId);
|
|
512
|
+
const stdout = await readCompleteLinesSince(files, paths.stdout, offsets.stdout);
|
|
513
|
+
const stderr = await readCompleteLinesSince(files, paths.stderr, offsets.stderr);
|
|
514
|
+
return {
|
|
515
|
+
stdout: redactCredentials(stdout.text, redactions),
|
|
516
|
+
stderr: redactCredentials(stderr.text, redactions),
|
|
517
|
+
offsets: { stdout: stdout.next, stderr: stderr.next }
|
|
518
|
+
};
|
|
519
|
+
}
|
|
520
|
+
// Health Checking (delegated to HealthMonitor)
|
|
521
|
+
async waitForHealthy(processId, timeout = 30000) {
|
|
522
|
+
const config = await this.store.getConfig(processId);
|
|
523
|
+
if (!config?.healthCheck)
|
|
524
|
+
return;
|
|
525
|
+
await this.healthMonitor.waitForHealthy(processId, config, timeout);
|
|
526
|
+
}
|
|
527
|
+
// Config records (pm-state.db `process_configs`; pm.md K8)
|
|
528
|
+
async register(config) {
|
|
529
|
+
await this.cleanup.cleanupStale();
|
|
530
|
+
await this.store.setConfig(this.bindAdmittedProcessConfig(config, await this.pathService()));
|
|
531
|
+
}
|
|
532
|
+
async registerMany(configs) {
|
|
533
|
+
await this.cleanup.cleanupStale();
|
|
534
|
+
const runtimePath = await this.pathService();
|
|
535
|
+
await this.store.setConfigs(configs.map((config) => this.bindAdmittedProcessConfig(config, runtimePath)));
|
|
536
|
+
}
|
|
537
|
+
async unregister(processId) {
|
|
538
|
+
if (await this.isRunning(processId)) {
|
|
539
|
+
throw new CapabilityError(`Cannot unregister ${processId}: process is running`, 'CONFLICT', {
|
|
540
|
+
reason: 'pm-process-running',
|
|
541
|
+
details: { processId }
|
|
542
|
+
});
|
|
543
|
+
}
|
|
544
|
+
return this.removeCompletely(processId);
|
|
545
|
+
}
|
|
546
|
+
admitSupervisedTask(identity, config, release, launch, signal) {
|
|
547
|
+
return this.taskSupervision.admit(identity, config, release, launch, signal);
|
|
548
|
+
}
|
|
549
|
+
supervisedAdmission(identity) {
|
|
550
|
+
return this.taskSupervision.lookup(identity);
|
|
551
|
+
}
|
|
552
|
+
acknowledgeSupervised(receipt) {
|
|
553
|
+
return this.taskSupervision.acknowledge(receipt, () => this.removeCompletely(receipt.processId));
|
|
554
|
+
}
|
|
555
|
+
/**
|
|
556
|
+
* Remove a process through cleanup's one removal path (state, stored
|
|
557
|
+
* config, socket and logs). Returns whether a stored config existed.
|
|
558
|
+
*/
|
|
559
|
+
async removeCompletely(processId) {
|
|
560
|
+
const state = await this.store.get(processId);
|
|
561
|
+
const unregistered = await this.cleanup.removeProcess(processId, state?.socketPath);
|
|
562
|
+
this.lifecycle.removeProcess(processId);
|
|
563
|
+
return unregistered;
|
|
564
|
+
}
|
|
565
|
+
/** Observe this manager's committed process state writes (see ProcessStore.onStateChange). */
|
|
566
|
+
onStateChange(listener) {
|
|
567
|
+
return this.store.onStateChange(listener);
|
|
568
|
+
}
|
|
569
|
+
/**
|
|
570
|
+
* How `processId`'s run exits: its committed terminal record, awaited on
|
|
571
|
+
* the store's state writes (RC07; nothing polls). `run` names the run to
|
|
572
|
+
* await (absent: the run current now); a stale terminal record of an
|
|
573
|
+
* earlier run never answers it, and a later run refuses `CONFLICT`
|
|
574
|
+
* `pm-await-exit-run-superseded`. The deadline refuses `TIMEOUT`
|
|
575
|
+
* `pm-await-exit-timeout`; the caller's signal and the runtime's disposal
|
|
576
|
+
* end it with the lifecycle's `CANCELLED` `wait-aborted`. Refusals carry
|
|
577
|
+
* the process id only.
|
|
578
|
+
*/
|
|
579
|
+
async awaitExit(processId, options = {}) {
|
|
580
|
+
const parsed = AwaitExitOptionsSchema.safeParse({ run: options.run, timeoutMs: options.timeoutMs });
|
|
581
|
+
if (!parsed.success) {
|
|
582
|
+
throw new CapabilityError('awaitExit received invalid options.', 'INVALID_INPUT', {
|
|
583
|
+
reason: 'pm-await-exit-options-invalid',
|
|
584
|
+
details: { processId, fields: [...new Set(parsed.error.issues.map((issue) => issue.path.join('.') || '(options)'))] }
|
|
585
|
+
});
|
|
586
|
+
}
|
|
587
|
+
const current = await this.store.get(processId);
|
|
588
|
+
if (!current) {
|
|
589
|
+
throw new CapabilityError(`Process '${processId}' has no state to await.`, 'NOT_FOUND', {
|
|
590
|
+
reason: 'pm-process-state-not-found',
|
|
591
|
+
details: { processId }
|
|
592
|
+
});
|
|
593
|
+
}
|
|
594
|
+
const timeoutMs = parsed.data.timeoutMs ?? AWAIT_EXIT_MAX_MS;
|
|
595
|
+
const run = parsed.data.run ?? (current.startedAt ? { startedAt: current.startedAt } : undefined);
|
|
596
|
+
const settled = await waitForProcessState(this.getRuntime(), this, processId, (state) => (isProcessExited(state) && (!run || isSameRun(state, run))) || (run !== undefined && isLaterRun(state, run)), { timeoutMs, reason: 'pm-await-exit', signal: options.signal });
|
|
597
|
+
if (!settled) {
|
|
598
|
+
throw new CapabilityError(`Process '${processId}' did not exit within ${timeoutMs}ms.`, 'TIMEOUT', {
|
|
599
|
+
reason: 'pm-await-exit-timeout',
|
|
600
|
+
retryable: true,
|
|
601
|
+
details: { processId, timeoutMs }
|
|
602
|
+
});
|
|
603
|
+
}
|
|
604
|
+
const exit = run && isLaterRun(settled, run) ? undefined : processExitOf(settled);
|
|
605
|
+
if (!exit) {
|
|
606
|
+
throw new CapabilityError(`Process '${processId}' started a later run before the awaited one exited.`, 'CONFLICT', {
|
|
607
|
+
reason: 'pm-await-exit-run-superseded',
|
|
608
|
+
details: { processId }
|
|
609
|
+
});
|
|
610
|
+
}
|
|
611
|
+
return exit;
|
|
612
|
+
}
|
|
613
|
+
getConfig(processId) {
|
|
614
|
+
return this.store.getConfig(processId);
|
|
615
|
+
}
|
|
616
|
+
getAllConfigs() {
|
|
617
|
+
return this.store.getAllConfigs();
|
|
618
|
+
}
|
|
619
|
+
isRegistered(processId) {
|
|
620
|
+
return this.store.hasConfig(processId);
|
|
621
|
+
}
|
|
622
|
+
async upsert(config) {
|
|
623
|
+
await this.store.setConfig(this.bindAdmittedProcessConfig(config, await this.pathService()));
|
|
624
|
+
}
|
|
625
|
+
async remove(processId, options = {}) {
|
|
626
|
+
if (await this.isRunning(processId)) {
|
|
627
|
+
await this.stop(processId, options);
|
|
628
|
+
}
|
|
629
|
+
await this.removeCompletely(processId);
|
|
630
|
+
}
|
|
631
|
+
// Config Cache
|
|
632
|
+
async isConfiguredProcess(processId) {
|
|
633
|
+
const configured = await this.lifecycle.loadConfiguredProcessIds();
|
|
634
|
+
return configured.has(processId);
|
|
635
|
+
}
|
|
636
|
+
invalidateConfigCache() {
|
|
637
|
+
this.lifecycle.invalidateConfigCache();
|
|
638
|
+
}
|
|
639
|
+
// Socket Status
|
|
640
|
+
async getSocketStatus(processId) {
|
|
641
|
+
const state = await this.store.get(processId);
|
|
642
|
+
if (!state?.socketPath) {
|
|
643
|
+
return { exists: false, connectable: false };
|
|
644
|
+
}
|
|
645
|
+
const info = await getSocketInfo(this.getRuntime(), state.socketPath);
|
|
646
|
+
return {
|
|
647
|
+
exists: info.exists,
|
|
648
|
+
connectable: info.connectable,
|
|
649
|
+
path: state.socketPath
|
|
650
|
+
};
|
|
651
|
+
}
|
|
652
|
+
async cleanupSocket(processId) {
|
|
653
|
+
const state = await this.store.get(processId);
|
|
654
|
+
if (state?.socketPath) {
|
|
655
|
+
await removeSocket(this.getRuntime(), state.socketPath);
|
|
656
|
+
}
|
|
657
|
+
}
|
|
658
|
+
// Workers API — enqueue / streaming / status moved to @vibesdotdev/workers
|
|
659
|
+
// `WorkersClient`. Only the low-level lifecycle helpers used by the
|
|
660
|
+
// IPC adapter's `LocalWorkerManager` remain on the manager.
|
|
661
|
+
resolveWorkerWorkspaceRoot(context) {
|
|
662
|
+
return resolveBoundWorkerWorkspaceRoot(this.workspaceIdentity.workspacePath, context);
|
|
663
|
+
}
|
|
664
|
+
async ensureWorkerRuntime(target, context) {
|
|
665
|
+
await ensureWorkerRuntime(this, target, this.resolveWorkerWorkspaceRoot(context), this.getRuntime());
|
|
666
|
+
}
|
|
667
|
+
async checkWorkersReady(timeout = 5000, target, context) {
|
|
668
|
+
const runtime = this.getRuntime();
|
|
669
|
+
const resolvedTarget = target ?? (runtime.scope.hardware === 'cloud' ? 'cloud' : 'consumer');
|
|
670
|
+
const workspaceRoot = this.resolveWorkerWorkspaceRoot(context);
|
|
671
|
+
const socketPath = await resolveWorkerSocketPath(undefined, {
|
|
672
|
+
runtime,
|
|
673
|
+
ensure: false,
|
|
674
|
+
hardware: resolvedTarget,
|
|
675
|
+
workspace: workspaceRoot
|
|
676
|
+
});
|
|
677
|
+
// The socket owner answers reachability (absent or refused is `false`);
|
|
678
|
+
// anything it throws is a real failure and propagates typed.
|
|
679
|
+
return testSocketConnectivity(runtime, socketPath, timeout);
|
|
680
|
+
}
|
|
681
|
+
}
|
|
682
|
+
//# sourceMappingURL=manager.js.map
|