@vibesdotdev/hq 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 +49 -2
- package/dist/agent-events/descriptors.d.ts +33 -0
- package/dist/agent-events/descriptors.d.ts.map +1 -0
- package/dist/agent-events/descriptors.js +34 -0
- package/dist/agent-events/descriptors.js.map +1 -0
- package/dist/app/auth/cloud-sync.consumer.d.ts +12 -0
- package/dist/app/auth/cloud-sync.consumer.d.ts.map +1 -0
- package/dist/app/auth/cloud-sync.consumer.js +31 -0
- package/dist/app/auth/cloud-sync.consumer.js.map +1 -0
- package/dist/app/auth/hq.app-auth-machine.record.descriptor.d.ts +5 -0
- package/dist/app/auth/hq.app-auth-machine.record.descriptor.d.ts.map +1 -0
- package/dist/app/auth/hq.app-auth-machine.record.descriptor.js +39 -0
- package/dist/app/auth/hq.app-auth-machine.record.descriptor.js.map +1 -0
- package/dist/app/auth/hq.app-auth-pairings.record.descriptor.d.ts +5 -0
- package/dist/app/auth/hq.app-auth-pairings.record.descriptor.d.ts.map +1 -0
- package/dist/app/auth/hq.app-auth-pairings.record.descriptor.js +43 -0
- package/dist/app/auth/hq.app-auth-pairings.record.descriptor.js.map +1 -0
- package/dist/app/auth/hq.app-auth-tokens.record.descriptor.d.ts +5 -0
- package/dist/app/auth/hq.app-auth-tokens.record.descriptor.d.ts.map +1 -0
- package/dist/app/auth/hq.app-auth-tokens.record.descriptor.js +42 -0
- package/dist/app/auth/hq.app-auth-tokens.record.descriptor.js.map +1 -0
- package/dist/app/auth/schemas/auth.d.ts +146 -0
- package/dist/app/auth/schemas/auth.d.ts.map +1 -0
- package/dist/app/auth/schemas/auth.js +53 -0
- package/dist/app/auth/schemas/auth.js.map +1 -0
- package/dist/app/auth/service.consumer.d.ts +17 -0
- package/dist/app/auth/service.consumer.d.ts.map +1 -0
- package/dist/app/auth/service.consumer.js +79 -0
- package/dist/app/auth/service.consumer.js.map +1 -0
- package/dist/app/auth/sync.consumer.d.ts +2 -0
- package/dist/app/auth/sync.consumer.d.ts.map +1 -0
- package/dist/app/auth/sync.consumer.js +2 -0
- package/dist/app/auth/sync.consumer.js.map +1 -0
- package/dist/app/auth/sync.d.ts +23 -0
- package/dist/app/auth/sync.d.ts.map +1 -0
- package/dist/app/auth/sync.js +290 -0
- package/dist/app/auth/sync.js.map +1 -0
- package/dist/app/auth/types.d.ts +20 -0
- package/dist/app/auth/types.d.ts.map +1 -0
- package/dist/app/auth/types.js +7 -0
- package/dist/app/auth/types.js.map +1 -0
- package/dist/app/sync/hq.app-auth.sync-bridge.descriptor.d.ts +9 -0
- package/dist/app/sync/hq.app-auth.sync-bridge.descriptor.d.ts.map +1 -0
- package/dist/app/sync/hq.app-auth.sync-bridge.descriptor.js +45 -0
- package/dist/app/sync/hq.app-auth.sync-bridge.descriptor.js.map +1 -0
- package/dist/applets/component-ref.d.ts +6 -0
- package/dist/applets/component-ref.d.ts.map +1 -0
- package/dist/applets/component-ref.js +6 -0
- package/dist/applets/component-ref.js.map +1 -0
- package/dist/applets/index.d.ts +3 -0
- package/dist/applets/index.d.ts.map +1 -0
- package/dist/applets/index.js +3 -0
- package/dist/applets/index.js.map +1 -0
- package/dist/approval/approval-resolved.event.descriptor.d.ts +11 -0
- package/dist/approval/approval-resolved.event.descriptor.d.ts.map +1 -0
- package/dist/approval/approval-resolved.event.descriptor.js +11 -0
- package/dist/approval/approval-resolved.event.descriptor.js.map +1 -0
- package/dist/approval/approval-resolved.job.descriptor.d.ts +36 -0
- package/dist/approval/approval-resolved.job.descriptor.d.ts.map +1 -0
- package/dist/approval/approval-resolved.job.descriptor.js +24 -0
- package/dist/approval/approval-resolved.job.descriptor.js.map +1 -0
- package/dist/approval/approval-resolved.job.impl.d.ts +19 -0
- package/dist/approval/approval-resolved.job.impl.d.ts.map +1 -0
- package/dist/approval/approval-resolved.job.impl.js +26 -0
- package/dist/approval/approval-resolved.job.impl.js.map +1 -0
- package/dist/approval/approval-resolved.subscription.descriptor.d.ts +21 -0
- package/dist/approval/approval-resolved.subscription.descriptor.d.ts.map +1 -0
- package/dist/approval/approval-resolved.subscription.descriptor.js +20 -0
- package/dist/approval/approval-resolved.subscription.descriptor.js.map +1 -0
- package/dist/approval/schemas.d.ts +45 -0
- package/dist/approval/schemas.d.ts.map +1 -0
- package/dist/approval/schemas.js +27 -0
- package/dist/approval/schemas.js.map +1 -0
- package/dist/approval/surface-approval-channel.descriptor.d.ts +14 -0
- package/dist/approval/surface-approval-channel.descriptor.d.ts.map +1 -0
- package/dist/approval/surface-approval-channel.descriptor.js +16 -0
- package/dist/approval/surface-approval-channel.descriptor.js.map +1 -0
- package/dist/approval/surface-approval-channel.impl.d.ts +19 -0
- package/dist/approval/surface-approval-channel.impl.d.ts.map +1 -0
- package/dist/approval/surface-approval-channel.impl.js +101 -0
- package/dist/approval/surface-approval-channel.impl.js.map +1 -0
- package/dist/cli/app/handoff/hq.app.handoff.descriptor.d.ts +40 -0
- package/dist/cli/app/handoff/hq.app.handoff.descriptor.d.ts.map +1 -0
- package/dist/cli/app/handoff/hq.app.handoff.descriptor.js +23 -0
- package/dist/cli/app/handoff/hq.app.handoff.descriptor.js.map +1 -0
- package/dist/cli/app/handoff/hq.app.handoff.impl.consumer.d.ts +7 -0
- package/dist/cli/app/handoff/hq.app.handoff.impl.consumer.d.ts.map +1 -0
- package/dist/cli/app/handoff/hq.app.handoff.impl.consumer.js +107 -0
- package/dist/cli/app/handoff/hq.app.handoff.impl.consumer.js.map +1 -0
- package/dist/cli/app/hq.app.cli-group.descriptor.d.ts +12 -0
- package/dist/cli/app/hq.app.cli-group.descriptor.d.ts.map +1 -0
- package/dist/cli/app/hq.app.cli-group.descriptor.js +12 -0
- package/dist/cli/app/hq.app.cli-group.descriptor.js.map +1 -0
- package/dist/cli/app/pair/hq.app.pair.descriptor.d.ts +43 -0
- package/dist/cli/app/pair/hq.app.pair.descriptor.d.ts.map +1 -0
- package/dist/cli/app/pair/hq.app.pair.descriptor.js +27 -0
- package/dist/cli/app/pair/hq.app.pair.descriptor.js.map +1 -0
- package/dist/cli/app/pair/hq.app.pair.impl.consumer.d.ts +7 -0
- package/dist/cli/app/pair/hq.app.pair.impl.consumer.d.ts.map +1 -0
- package/dist/cli/app/pair/hq.app.pair.impl.consumer.js +89 -0
- package/dist/cli/app/pair/hq.app.pair.impl.consumer.js.map +1 -0
- package/dist/cli/app/shared/options.d.ts +70 -0
- package/dist/cli/app/shared/options.d.ts.map +1 -0
- package/dist/cli/app/shared/options.js +7 -0
- package/dist/cli/app/shared/options.js.map +1 -0
- package/dist/cli/app/token/hq.app.token.descriptor.d.ts +40 -0
- package/dist/cli/app/token/hq.app.token.descriptor.d.ts.map +1 -0
- package/dist/cli/app/token/hq.app.token.descriptor.js +23 -0
- package/dist/cli/app/token/hq.app.token.descriptor.js.map +1 -0
- package/dist/cli/app/token/hq.app.token.impl.consumer.d.ts +7 -0
- package/dist/cli/app/token/hq.app.token.impl.consumer.d.ts.map +1 -0
- package/dist/cli/app/token/hq.app.token.impl.consumer.js +89 -0
- package/dist/cli/app/token/hq.app.token.impl.consumer.js.map +1 -0
- package/dist/cli/channel/hq.channel.cli-group.descriptor.d.ts +12 -0
- package/dist/cli/channel/hq.channel.cli-group.descriptor.d.ts.map +1 -0
- package/dist/cli/channel/hq.channel.cli-group.descriptor.js +12 -0
- package/dist/cli/channel/hq.channel.cli-group.descriptor.js.map +1 -0
- package/dist/cli/channel/hq.channel.enable.descriptor.d.ts +21 -0
- package/dist/cli/channel/hq.channel.enable.descriptor.d.ts.map +1 -0
- package/dist/cli/channel/hq.channel.enable.descriptor.js +16 -0
- package/dist/cli/channel/hq.channel.enable.descriptor.js.map +1 -0
- package/dist/cli/channel/hq.channel.enable.impl.d.ts +7 -0
- package/dist/cli/channel/hq.channel.enable.impl.d.ts.map +1 -0
- package/dist/cli/channel/hq.channel.enable.impl.js +23 -0
- package/dist/cli/channel/hq.channel.enable.impl.js.map +1 -0
- package/dist/cli/channel/hq.channel.fire.descriptor.d.ts +17 -0
- package/dist/cli/channel/hq.channel.fire.descriptor.d.ts.map +1 -0
- package/dist/cli/channel/hq.channel.fire.descriptor.js +13 -0
- package/dist/cli/channel/hq.channel.fire.descriptor.js.map +1 -0
- package/dist/cli/channel/hq.channel.fire.impl.d.ts +7 -0
- package/dist/cli/channel/hq.channel.fire.impl.d.ts.map +1 -0
- package/dist/cli/channel/hq.channel.fire.impl.js +26 -0
- package/dist/cli/channel/hq.channel.fire.impl.js.map +1 -0
- package/dist/cli/channel/hq.channel.list.descriptor.d.ts +16 -0
- package/dist/cli/channel/hq.channel.list.descriptor.d.ts.map +1 -0
- package/dist/cli/channel/hq.channel.list.descriptor.js +13 -0
- package/dist/cli/channel/hq.channel.list.descriptor.js.map +1 -0
- package/dist/cli/channel/hq.channel.list.impl.d.ts +7 -0
- package/dist/cli/channel/hq.channel.list.impl.d.ts.map +1 -0
- package/dist/cli/channel/hq.channel.list.impl.js +30 -0
- package/dist/cli/channel/hq.channel.list.impl.js.map +1 -0
- package/dist/cli/channel/hq.channel.logs.descriptor.d.ts +24 -0
- package/dist/cli/channel/hq.channel.logs.descriptor.d.ts.map +1 -0
- package/dist/cli/channel/hq.channel.logs.descriptor.js +17 -0
- package/dist/cli/channel/hq.channel.logs.descriptor.js.map +1 -0
- package/dist/cli/channel/hq.channel.logs.impl.d.ts +9 -0
- package/dist/cli/channel/hq.channel.logs.impl.d.ts.map +1 -0
- package/dist/cli/channel/hq.channel.logs.impl.js +74 -0
- package/dist/cli/channel/hq.channel.logs.impl.js.map +1 -0
- package/dist/cli/friction/_store-hint.d.ts +7 -0
- package/dist/cli/friction/_store-hint.d.ts.map +1 -0
- package/dist/cli/friction/_store-hint.js +13 -0
- package/dist/cli/friction/_store-hint.js.map +1 -0
- package/dist/cli/friction/hq.friction.cli-group.descriptor.d.ts +11 -0
- package/dist/cli/friction/hq.friction.cli-group.descriptor.d.ts.map +1 -0
- package/dist/cli/friction/hq.friction.cli-group.descriptor.js +15 -0
- package/dist/cli/friction/hq.friction.cli-group.descriptor.js.map +1 -0
- package/dist/cli/friction/hq.friction.disposition.d.ts +5 -0
- package/dist/cli/friction/hq.friction.disposition.d.ts.map +1 -0
- package/dist/cli/friction/hq.friction.disposition.js +64 -0
- package/dist/cli/friction/hq.friction.disposition.js.map +1 -0
- package/dist/cli/friction/hq.friction.emit.descriptor.d.ts +65 -0
- package/dist/cli/friction/hq.friction.emit.descriptor.d.ts.map +1 -0
- package/dist/cli/friction/hq.friction.emit.descriptor.js +70 -0
- package/dist/cli/friction/hq.friction.emit.descriptor.js.map +1 -0
- package/dist/cli/friction/hq.friction.emit.impl.d.ts +7 -0
- package/dist/cli/friction/hq.friction.emit.impl.d.ts.map +1 -0
- package/dist/cli/friction/hq.friction.emit.impl.js +85 -0
- package/dist/cli/friction/hq.friction.emit.impl.js.map +1 -0
- package/dist/cli/friction/hq.friction.list.descriptor.d.ts +37 -0
- package/dist/cli/friction/hq.friction.list.descriptor.d.ts.map +1 -0
- package/dist/cli/friction/hq.friction.list.descriptor.js +22 -0
- package/dist/cli/friction/hq.friction.list.descriptor.js.map +1 -0
- package/dist/cli/friction/hq.friction.list.impl.d.ts +7 -0
- package/dist/cli/friction/hq.friction.list.impl.d.ts.map +1 -0
- package/dist/cli/friction/hq.friction.list.impl.js +73 -0
- package/dist/cli/friction/hq.friction.list.impl.js.map +1 -0
- package/dist/cli/friction/hq.friction.promote.descriptor.d.ts +21 -0
- package/dist/cli/friction/hq.friction.promote.descriptor.d.ts.map +1 -0
- package/dist/cli/friction/hq.friction.promote.descriptor.js +14 -0
- package/dist/cli/friction/hq.friction.promote.descriptor.js.map +1 -0
- package/dist/cli/friction/hq.friction.promote.impl.d.ts +7 -0
- package/dist/cli/friction/hq.friction.promote.impl.d.ts.map +1 -0
- package/dist/cli/friction/hq.friction.promote.impl.js +47 -0
- package/dist/cli/friction/hq.friction.promote.impl.js.map +1 -0
- package/dist/cli/friction/hq.friction.reassign-org.descriptor.d.ts +25 -0
- package/dist/cli/friction/hq.friction.reassign-org.descriptor.d.ts.map +1 -0
- package/dist/cli/friction/hq.friction.reassign-org.descriptor.js +18 -0
- package/dist/cli/friction/hq.friction.reassign-org.descriptor.js.map +1 -0
- package/dist/cli/friction/hq.friction.reassign-org.impl.d.ts +6 -0
- package/dist/cli/friction/hq.friction.reassign-org.impl.d.ts.map +1 -0
- package/dist/cli/friction/hq.friction.reassign-org.impl.js +27 -0
- package/dist/cli/friction/hq.friction.reassign-org.impl.js.map +1 -0
- package/dist/cli/friction/hq.friction.reject.descriptor.d.ts +24 -0
- package/dist/cli/friction/hq.friction.reject.descriptor.d.ts.map +1 -0
- package/dist/cli/friction/hq.friction.reject.descriptor.js +17 -0
- package/dist/cli/friction/hq.friction.reject.descriptor.js.map +1 -0
- package/dist/cli/friction/hq.friction.reject.impl.d.ts +6 -0
- package/dist/cli/friction/hq.friction.reject.impl.d.ts.map +1 -0
- package/dist/cli/friction/hq.friction.reject.impl.js +7 -0
- package/dist/cli/friction/hq.friction.reject.impl.js.map +1 -0
- package/dist/cli/friction/hq.friction.resolve.descriptor.d.ts +27 -0
- package/dist/cli/friction/hq.friction.resolve.descriptor.d.ts.map +1 -0
- package/dist/cli/friction/hq.friction.resolve.descriptor.js +18 -0
- package/dist/cli/friction/hq.friction.resolve.descriptor.js.map +1 -0
- package/dist/cli/friction/hq.friction.resolve.impl.d.ts +6 -0
- package/dist/cli/friction/hq.friction.resolve.impl.d.ts.map +1 -0
- package/dist/cli/friction/hq.friction.resolve.impl.js +7 -0
- package/dist/cli/friction/hq.friction.resolve.impl.js.map +1 -0
- package/dist/cli/friction/hq.friction.show.descriptor.d.ts +24 -0
- package/dist/cli/friction/hq.friction.show.descriptor.d.ts.map +1 -0
- package/dist/cli/friction/hq.friction.show.descriptor.js +17 -0
- package/dist/cli/friction/hq.friction.show.descriptor.js.map +1 -0
- package/dist/cli/friction/hq.friction.show.impl.d.ts +7 -0
- package/dist/cli/friction/hq.friction.show.impl.d.ts.map +1 -0
- package/dist/cli/friction/hq.friction.show.impl.js +64 -0
- package/dist/cli/friction/hq.friction.show.impl.js.map +1 -0
- package/dist/cli/friction/hq.friction.sync.descriptor.d.ts +16 -0
- package/dist/cli/friction/hq.friction.sync.descriptor.d.ts.map +1 -0
- package/dist/cli/friction/hq.friction.sync.descriptor.js +13 -0
- package/dist/cli/friction/hq.friction.sync.descriptor.js.map +1 -0
- package/dist/cli/friction/hq.friction.sync.impl.d.ts +7 -0
- package/dist/cli/friction/hq.friction.sync.impl.d.ts.map +1 -0
- package/dist/cli/friction/hq.friction.sync.impl.js +29 -0
- package/dist/cli/friction/hq.friction.sync.impl.js.map +1 -0
- package/dist/cli/friction/hq.friction.triage.descriptor.d.ts +27 -0
- package/dist/cli/friction/hq.friction.triage.descriptor.d.ts.map +1 -0
- package/dist/cli/friction/hq.friction.triage.descriptor.js +18 -0
- package/dist/cli/friction/hq.friction.triage.descriptor.js.map +1 -0
- package/dist/cli/friction/hq.friction.triage.impl.d.ts +6 -0
- package/dist/cli/friction/hq.friction.triage.impl.d.ts.map +1 -0
- package/dist/cli/friction/hq.friction.triage.impl.js +7 -0
- package/dist/cli/friction/hq.friction.triage.impl.js.map +1 -0
- package/dist/cli/friction/invocation.d.ts +17 -0
- package/dist/cli/friction/invocation.d.ts.map +1 -0
- package/dist/cli/friction/invocation.js +76 -0
- package/dist/cli/friction/invocation.js.map +1 -0
- package/dist/cli/health/hq.health.descriptor.d.ts +19 -0
- package/dist/cli/health/hq.health.descriptor.d.ts.map +1 -0
- package/dist/cli/health/hq.health.descriptor.js +16 -0
- package/dist/cli/health/hq.health.descriptor.js.map +1 -0
- package/dist/cli/health/hq.health.impl.d.ts +3 -0
- package/dist/cli/health/hq.health.impl.d.ts.map +1 -0
- package/dist/cli/health/hq.health.impl.js +151 -0
- package/dist/cli/health/hq.health.impl.js.map +1 -0
- package/dist/cli/host-platform.d.ts +14 -0
- package/dist/cli/host-platform.d.ts.map +1 -0
- package/dist/cli/host-platform.js +30 -0
- package/dist/cli/host-platform.js.map +1 -0
- package/dist/cli/hq.cli-group.descriptor.d.ts +11 -0
- package/dist/cli/hq.cli-group.descriptor.d.ts.map +1 -0
- package/dist/cli/hq.cli-group.descriptor.js +11 -0
- package/dist/cli/hq.cli-group.descriptor.js.map +1 -0
- package/dist/cli/init/hq.init.descriptor.d.ts +7 -0
- package/dist/cli/init/hq.init.descriptor.d.ts.map +1 -0
- package/dist/cli/init/hq.init.descriptor.js +36 -0
- package/dist/cli/init/hq.init.descriptor.js.map +1 -0
- package/dist/cli/init/hq.init.impl.d.ts +7 -0
- package/dist/cli/init/hq.init.impl.d.ts.map +1 -0
- package/dist/cli/init/hq.init.impl.js +163 -0
- package/dist/cli/init/hq.init.impl.js.map +1 -0
- package/dist/cli/install/hq.install.descriptor.d.ts +9 -0
- package/dist/cli/install/hq.install.descriptor.d.ts.map +1 -0
- package/dist/cli/install/hq.install.descriptor.js +34 -0
- package/dist/cli/install/hq.install.descriptor.js.map +1 -0
- package/dist/cli/install/hq.install.impl.d.ts +6 -0
- package/dist/cli/install/hq.install.impl.d.ts.map +1 -0
- package/dist/cli/install/hq.install.impl.js +110 -0
- package/dist/cli/install/hq.install.impl.js.map +1 -0
- package/dist/cli/permissions/hq.permissions.descriptor.d.ts +9 -0
- package/dist/cli/permissions/hq.permissions.descriptor.d.ts.map +1 -0
- package/dist/cli/permissions/hq.permissions.descriptor.js +25 -0
- package/dist/cli/permissions/hq.permissions.descriptor.js.map +1 -0
- package/dist/cli/permissions/hq.permissions.impl.d.ts +3 -0
- package/dist/cli/permissions/hq.permissions.impl.d.ts.map +1 -0
- package/dist/cli/permissions/hq.permissions.impl.js +113 -0
- package/dist/cli/permissions/hq.permissions.impl.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 +79 -0
- package/dist/cli/plugin.js.map +1 -0
- package/dist/cli/schemas/input.d.ts +119 -0
- package/dist/cli/schemas/input.d.ts.map +1 -0
- package/dist/cli/schemas/input.js +67 -0
- package/dist/cli/schemas/input.js.map +1 -0
- package/dist/cli/service/hq.service.cli-group.descriptor.d.ts +12 -0
- package/dist/cli/service/hq.service.cli-group.descriptor.d.ts.map +1 -0
- package/dist/cli/service/hq.service.cli-group.descriptor.js +12 -0
- package/dist/cli/service/hq.service.cli-group.descriptor.js.map +1 -0
- package/dist/cli/service/hq.service.list.descriptor.d.ts +16 -0
- package/dist/cli/service/hq.service.list.descriptor.d.ts.map +1 -0
- package/dist/cli/service/hq.service.list.descriptor.js +13 -0
- package/dist/cli/service/hq.service.list.descriptor.js.map +1 -0
- package/dist/cli/service/hq.service.list.impl.d.ts +7 -0
- package/dist/cli/service/hq.service.list.impl.d.ts.map +1 -0
- package/dist/cli/service/hq.service.list.impl.js +31 -0
- package/dist/cli/service/hq.service.list.impl.js.map +1 -0
- package/dist/cli/service/hq.service.manage.descriptor.d.ts +25 -0
- package/dist/cli/service/hq.service.manage.descriptor.d.ts.map +1 -0
- package/dist/cli/service/hq.service.manage.descriptor.js +23 -0
- package/dist/cli/service/hq.service.manage.descriptor.js.map +1 -0
- package/dist/cli/service/hq.service.manage.impl.d.ts +7 -0
- package/dist/cli/service/hq.service.manage.impl.d.ts.map +1 -0
- package/dist/cli/service/hq.service.manage.impl.js +64 -0
- package/dist/cli/service/hq.service.manage.impl.js.map +1 -0
- package/dist/cli/service/hq.service.register.descriptor.d.ts +21 -0
- package/dist/cli/service/hq.service.register.descriptor.d.ts.map +1 -0
- package/dist/cli/service/hq.service.register.descriptor.js +20 -0
- package/dist/cli/service/hq.service.register.descriptor.js.map +1 -0
- package/dist/cli/service/hq.service.register.impl.d.ts +7 -0
- package/dist/cli/service/hq.service.register.impl.d.ts.map +1 -0
- package/dist/cli/service/hq.service.register.impl.js +35 -0
- package/dist/cli/service/hq.service.register.impl.js.map +1 -0
- package/dist/cli/setup/hq.setup.descriptor.d.ts +9 -0
- package/dist/cli/setup/hq.setup.descriptor.d.ts.map +1 -0
- package/dist/cli/setup/hq.setup.descriptor.js +22 -0
- package/dist/cli/setup/hq.setup.descriptor.js.map +1 -0
- package/dist/cli/setup/hq.setup.impl.d.ts +7 -0
- package/dist/cli/setup/hq.setup.impl.d.ts.map +1 -0
- package/dist/cli/setup/hq.setup.impl.js +57 -0
- package/dist/cli/setup/hq.setup.impl.js.map +1 -0
- package/dist/cli/setup/index.d.ts +2 -0
- package/dist/cli/setup/index.d.ts.map +1 -0
- package/dist/cli/setup/index.js +2 -0
- package/dist/cli/setup/index.js.map +1 -0
- package/dist/cli/surface/hq.surface.cli-group.descriptor.d.ts +12 -0
- package/dist/cli/surface/hq.surface.cli-group.descriptor.d.ts.map +1 -0
- package/dist/cli/surface/hq.surface.cli-group.descriptor.js +12 -0
- package/dist/cli/surface/hq.surface.cli-group.descriptor.js.map +1 -0
- package/dist/cli/surface/hq.surface.list.descriptor.d.ts +20 -0
- package/dist/cli/surface/hq.surface.list.descriptor.d.ts.map +1 -0
- package/dist/cli/surface/hq.surface.list.descriptor.js +20 -0
- package/dist/cli/surface/hq.surface.list.descriptor.js.map +1 -0
- package/dist/cli/surface/hq.surface.list.impl.d.ts +7 -0
- package/dist/cli/surface/hq.surface.list.impl.d.ts.map +1 -0
- package/dist/cli/surface/hq.surface.list.impl.js +35 -0
- package/dist/cli/surface/hq.surface.list.impl.js.map +1 -0
- package/dist/cli/surface/hq.surface.resolve.descriptor.d.ts +22 -0
- package/dist/cli/surface/hq.surface.resolve.descriptor.d.ts.map +1 -0
- package/dist/cli/surface/hq.surface.resolve.descriptor.js +20 -0
- package/dist/cli/surface/hq.surface.resolve.descriptor.js.map +1 -0
- package/dist/cli/surface/hq.surface.resolve.impl.d.ts +7 -0
- package/dist/cli/surface/hq.surface.resolve.impl.d.ts.map +1 -0
- package/dist/cli/surface/hq.surface.resolve.impl.js +29 -0
- package/dist/cli/surface/hq.surface.resolve.impl.js.map +1 -0
- package/dist/client/friction/index.d.ts +58 -0
- package/dist/client/friction/index.d.ts.map +1 -0
- package/dist/client/friction/index.js +146 -0
- package/dist/client/friction/index.js.map +1 -0
- package/dist/client/friction.client.descriptor.d.ts +14 -0
- package/dist/client/friction.client.descriptor.d.ts.map +1 -0
- package/dist/client/friction.client.descriptor.js +14 -0
- package/dist/client/friction.client.descriptor.js.map +1 -0
- package/dist/client/hq.client.descriptor.d.ts +14 -0
- package/dist/client/hq.client.descriptor.d.ts.map +1 -0
- package/dist/client/hq.client.descriptor.js +14 -0
- package/dist/client/hq.client.descriptor.js.map +1 -0
- package/dist/client/index.d.ts +95 -0
- package/dist/client/index.d.ts.map +1 -0
- package/dist/client/index.js +144 -0
- package/dist/client/index.js.map +1 -0
- package/dist/config/hq-friction.config.descriptor.d.ts +227 -0
- package/dist/config/hq-friction.config.descriptor.d.ts.map +1 -0
- package/dist/config/hq-friction.config.descriptor.js +116 -0
- package/dist/config/hq-friction.config.descriptor.js.map +1 -0
- package/dist/dashboard.d.ts +133 -0
- package/dist/dashboard.d.ts.map +1 -0
- package/dist/dashboard.js +371 -0
- package/dist/dashboard.js.map +1 -0
- package/dist/docs/hq.machines.docs.descriptor.d.ts +22 -0
- package/dist/docs/hq.machines.docs.descriptor.d.ts.map +1 -0
- package/dist/docs/hq.machines.docs.descriptor.js +65 -0
- package/dist/docs/hq.machines.docs.descriptor.js.map +1 -0
- package/dist/docs/hq.sessions.docs.descriptor.d.ts +22 -0
- package/dist/docs/hq.sessions.docs.descriptor.d.ts.map +1 -0
- package/dist/docs/hq.sessions.docs.descriptor.js +74 -0
- package/dist/docs/hq.sessions.docs.descriptor.js.map +1 -0
- package/dist/docs/hq.surfaces.docs.descriptor.d.ts +38 -0
- package/dist/docs/hq.surfaces.docs.descriptor.d.ts.map +1 -0
- package/dist/docs/hq.surfaces.docs.descriptor.js +161 -0
- package/dist/docs/hq.surfaces.docs.descriptor.js.map +1 -0
- package/dist/docs/hq.terminal.docs.descriptor.d.ts +22 -0
- package/dist/docs/hq.terminal.docs.descriptor.d.ts.map +1 -0
- package/dist/docs/hq.terminal.docs.descriptor.js +86 -0
- package/dist/docs/hq.terminal.docs.descriptor.js.map +1 -0
- package/dist/friction/clusters.d.ts +23 -0
- package/dist/friction/clusters.d.ts.map +1 -0
- package/dist/friction/clusters.js +56 -0
- package/dist/friction/clusters.js.map +1 -0
- package/dist/friction/fingerprint.d.ts +56 -0
- package/dist/friction/fingerprint.d.ts.map +1 -0
- package/dist/friction/fingerprint.js +113 -0
- package/dist/friction/fingerprint.js.map +1 -0
- package/dist/friction/friction-dispositions.record.descriptor.d.ts +4 -0
- package/dist/friction/friction-dispositions.record.descriptor.d.ts.map +1 -0
- package/dist/friction/friction-dispositions.record.descriptor.js +36 -0
- package/dist/friction/friction-dispositions.record.descriptor.js.map +1 -0
- package/dist/friction/friction-signals.record.descriptor.d.ts +12 -0
- package/dist/friction/friction-signals.record.descriptor.d.ts.map +1 -0
- package/dist/friction/friction-signals.record.descriptor.js +52 -0
- package/dist/friction/friction-signals.record.descriptor.js.map +1 -0
- package/dist/friction/intake.d.ts +79 -0
- package/dist/friction/intake.d.ts.map +1 -0
- package/dist/friction/intake.js +459 -0
- package/dist/friction/intake.js.map +1 -0
- package/dist/friction/jobs/friction-clusters.job.descriptor.d.ts +71 -0
- package/dist/friction/jobs/friction-clusters.job.descriptor.d.ts.map +1 -0
- package/dist/friction/jobs/friction-clusters.job.descriptor.js +34 -0
- package/dist/friction/jobs/friction-clusters.job.descriptor.js.map +1 -0
- package/dist/friction/jobs/friction-clusters.job.impl.d.ts +22 -0
- package/dist/friction/jobs/friction-clusters.job.impl.d.ts.map +1 -0
- package/dist/friction/jobs/friction-clusters.job.impl.js +33 -0
- package/dist/friction/jobs/friction-clusters.job.impl.js.map +1 -0
- package/dist/friction/promote-input.d.ts +37 -0
- package/dist/friction/promote-input.d.ts.map +1 -0
- package/dist/friction/promote-input.js +58 -0
- package/dist/friction/promote-input.js.map +1 -0
- package/dist/friction/promotion-visibility.d.ts +34 -0
- package/dist/friction/promotion-visibility.d.ts.map +1 -0
- package/dist/friction/promotion-visibility.js +57 -0
- package/dist/friction/promotion-visibility.js.map +1 -0
- package/dist/friction/read.d.ts +21 -0
- package/dist/friction/read.d.ts.map +1 -0
- package/dist/friction/read.js +23 -0
- package/dist/friction/read.js.map +1 -0
- package/dist/friction/reassign-org.d.ts +21 -0
- package/dist/friction/reassign-org.d.ts.map +1 -0
- package/dist/friction/reassign-org.js +121 -0
- package/dist/friction/reassign-org.js.map +1 -0
- package/dist/friction/schemas/disposition.d.ts +42 -0
- package/dist/friction/schemas/disposition.d.ts.map +1 -0
- package/dist/friction/schemas/disposition.js +22 -0
- package/dist/friction/schemas/disposition.js.map +1 -0
- package/dist/friction/schemas/intake.d.ts +167 -0
- package/dist/friction/schemas/intake.d.ts.map +1 -0
- package/dist/friction/schemas/intake.js +69 -0
- package/dist/friction/schemas/intake.js.map +1 -0
- package/dist/friction/schemas/report.d.ts +138 -0
- package/dist/friction/schemas/report.d.ts.map +1 -0
- package/dist/friction/schemas/report.js +63 -0
- package/dist/friction/schemas/report.js.map +1 -0
- package/dist/friction/schemas/signal.d.ts +170 -0
- package/dist/friction/schemas/signal.d.ts.map +1 -0
- package/dist/friction/schemas/signal.js +77 -0
- package/dist/friction/schemas/signal.js.map +1 -0
- package/dist/friction/signal-recorded.event.descriptor.d.ts +53 -0
- package/dist/friction/signal-recorded.event.descriptor.d.ts.map +1 -0
- package/dist/friction/signal-recorded.event.descriptor.js +38 -0
- package/dist/friction/signal-recorded.event.descriptor.js.map +1 -0
- package/dist/friction/store.d.ts +109 -0
- package/dist/friction/store.d.ts.map +1 -0
- package/dist/friction/store.js +466 -0
- package/dist/friction/store.js.map +1 -0
- package/dist/host-guidance/descriptors/accessibility.host-permission-guidance.descriptor.d.ts +8 -0
- package/dist/host-guidance/descriptors/accessibility.host-permission-guidance.descriptor.d.ts.map +1 -0
- package/dist/host-guidance/descriptors/accessibility.host-permission-guidance.descriptor.js +18 -0
- package/dist/host-guidance/descriptors/accessibility.host-permission-guidance.descriptor.js.map +1 -0
- package/dist/host-guidance/descriptors/disk.host-permission-guidance.descriptor.d.ts +8 -0
- package/dist/host-guidance/descriptors/disk.host-permission-guidance.descriptor.d.ts.map +1 -0
- package/dist/host-guidance/descriptors/disk.host-permission-guidance.descriptor.js +18 -0
- package/dist/host-guidance/descriptors/disk.host-permission-guidance.descriptor.js.map +1 -0
- package/dist/host-guidance/descriptors/homebrew.host-health-check.descriptor.d.ts +8 -0
- package/dist/host-guidance/descriptors/homebrew.host-health-check.descriptor.d.ts.map +1 -0
- package/dist/host-guidance/descriptors/homebrew.host-health-check.descriptor.js +14 -0
- package/dist/host-guidance/descriptors/homebrew.host-health-check.descriptor.js.map +1 -0
- package/dist/host-guidance/descriptors/microphone.host-permission-guidance.descriptor.d.ts +8 -0
- package/dist/host-guidance/descriptors/microphone.host-permission-guidance.descriptor.d.ts.map +1 -0
- package/dist/host-guidance/descriptors/microphone.host-permission-guidance.descriptor.js +18 -0
- package/dist/host-guidance/descriptors/microphone.host-permission-guidance.descriptor.js.map +1 -0
- package/dist/host-guidance/kinds/host-health-check.kind.d.ts +17 -0
- package/dist/host-guidance/kinds/host-health-check.kind.d.ts.map +1 -0
- package/dist/host-guidance/kinds/host-health-check.kind.js +22 -0
- package/dist/host-guidance/kinds/host-health-check.kind.js.map +1 -0
- package/dist/host-guidance/kinds/host-permission-guidance.kind.d.ts +17 -0
- package/dist/host-guidance/kinds/host-permission-guidance.kind.d.ts.map +1 -0
- package/dist/host-guidance/kinds/host-permission-guidance.kind.js +22 -0
- package/dist/host-guidance/kinds/host-permission-guidance.kind.js.map +1 -0
- package/dist/host-guidance/registry.d.ts +16 -0
- package/dist/host-guidance/registry.d.ts.map +1 -0
- package/dist/host-guidance/registry.js +24 -0
- package/dist/host-guidance/registry.js.map +1 -0
- package/dist/hq.cloud.plugin.d.ts +3 -0
- package/dist/hq.cloud.plugin.d.ts.map +1 -0
- package/dist/hq.cloud.plugin.js +40 -0
- package/dist/hq.cloud.plugin.js.map +1 -0
- package/dist/hq.consumer.plugin.d.ts +3 -0
- package/dist/hq.consumer.plugin.d.ts.map +1 -0
- package/dist/hq.consumer.plugin.js +15 -0
- package/dist/hq.consumer.plugin.js.map +1 -0
- package/dist/hq.plugin.d.ts +9 -0
- package/dist/hq.plugin.d.ts.map +1 -0
- package/dist/hq.plugin.js +99 -0
- package/dist/hq.plugin.js.map +1 -0
- package/dist/installers/builtin/ai-runtimes/installer.d.ts +21 -0
- package/dist/installers/builtin/ai-runtimes/installer.d.ts.map +1 -0
- package/dist/installers/builtin/ai-runtimes/installer.js +244 -0
- package/dist/installers/builtin/ai-runtimes/installer.js.map +1 -0
- package/dist/installers/builtin/index.d.ts +9 -0
- package/dist/installers/builtin/index.d.ts.map +1 -0
- package/dist/installers/builtin/index.js +15 -0
- package/dist/installers/builtin/index.js.map +1 -0
- package/dist/installers/builtin/language-servers/installer.d.ts +18 -0
- package/dist/installers/builtin/language-servers/installer.d.ts.map +1 -0
- package/dist/installers/builtin/language-servers/installer.js +139 -0
- package/dist/installers/builtin/language-servers/installer.js.map +1 -0
- package/dist/installers/builtin/system-deps/installer.d.ts +8 -0
- package/dist/installers/builtin/system-deps/installer.d.ts.map +1 -0
- package/dist/installers/builtin/system-deps/installer.js +78 -0
- package/dist/installers/builtin/system-deps/installer.js.map +1 -0
- package/dist/installers/compatibility.consumer.plugin.d.ts +3 -0
- package/dist/installers/compatibility.consumer.plugin.d.ts.map +1 -0
- package/dist/installers/compatibility.consumer.plugin.js +26 -0
- package/dist/installers/compatibility.consumer.plugin.js.map +1 -0
- package/dist/installers/core/index.d.ts +3 -0
- package/dist/installers/core/index.d.ts.map +1 -0
- package/dist/installers/core/index.js +3 -0
- package/dist/installers/core/index.js.map +1 -0
- package/dist/installers/core/installer-result.d.ts +10 -0
- package/dist/installers/core/installer-result.d.ts.map +1 -0
- package/dist/installers/core/installer-result.js +14 -0
- package/dist/installers/core/installer-result.js.map +1 -0
- package/dist/installers/core/installer-runtime.d.ts +18 -0
- package/dist/installers/core/installer-runtime.d.ts.map +1 -0
- package/dist/installers/core/installer-runtime.js +5 -0
- package/dist/installers/core/installer-runtime.js.map +1 -0
- package/dist/installers/core/platform.d.ts +6 -0
- package/dist/installers/core/platform.d.ts.map +1 -0
- package/dist/installers/core/platform.js +19 -0
- package/dist/installers/core/platform.js.map +1 -0
- package/dist/installers/core/workspace.d.ts +4 -0
- package/dist/installers/core/workspace.d.ts.map +1 -0
- package/dist/installers/core/workspace.js +11 -0
- package/dist/installers/core/workspace.js.map +1 -0
- package/dist/installers/index.d.ts +6 -0
- package/dist/installers/index.d.ts.map +1 -0
- package/dist/installers/index.js +6 -0
- package/dist/installers/index.js.map +1 -0
- package/dist/installers/schemas/index.d.ts +2 -0
- package/dist/installers/schemas/index.d.ts.map +1 -0
- package/dist/installers/schemas/index.js +2 -0
- package/dist/installers/schemas/index.js.map +1 -0
- package/dist/installers/schemas/platform.d.ts +10 -0
- package/dist/installers/schemas/platform.d.ts.map +1 -0
- package/dist/installers/schemas/platform.js +9 -0
- package/dist/installers/schemas/platform.js.map +1 -0
- package/dist/installers/schemas/types.d.ts +4 -0
- package/dist/installers/schemas/types.d.ts.map +1 -0
- package/dist/installers/schemas/types.js +4 -0
- package/dist/installers/schemas/types.js.map +1 -0
- package/dist/os-wall/channels.wall.d.ts +9 -0
- package/dist/os-wall/channels.wall.d.ts.map +1 -0
- package/dist/os-wall/channels.wall.js +9 -0
- package/dist/os-wall/channels.wall.js.map +1 -0
- package/dist/os-wall/surface-store.wall.d.ts +3 -0
- package/dist/os-wall/surface-store.wall.d.ts.map +1 -0
- package/dist/os-wall/surface-store.wall.js +3 -0
- package/dist/os-wall/surface-store.wall.js.map +1 -0
- package/dist/runtime-path.d.ts +7 -0
- package/dist/runtime-path.d.ts.map +1 -0
- package/dist/runtime-path.js +7 -0
- package/dist/runtime-path.js.map +1 -0
- package/dist/schemas/host-guidance.d.ts +48 -0
- package/dist/schemas/host-guidance.d.ts.map +1 -0
- package/dist/schemas/host-guidance.js +48 -0
- package/dist/schemas/host-guidance.js.map +1 -0
- package/dist/services/backends/index.d.ts +24 -0
- package/dist/services/backends/index.d.ts.map +1 -0
- package/dist/services/backends/index.js +17 -0
- package/dist/services/backends/index.js.map +1 -0
- package/dist/services/builtin/index.d.ts +78 -0
- package/dist/services/builtin/index.d.ts.map +1 -0
- package/dist/services/builtin/index.js +44 -0
- package/dist/services/builtin/index.js.map +1 -0
- package/dist/services/descriptors/vibes-bridge.os-service.descriptor.d.ts +8 -0
- package/dist/services/descriptors/vibes-bridge.os-service.descriptor.d.ts.map +1 -0
- package/dist/services/descriptors/vibes-bridge.os-service.descriptor.js +21 -0
- package/dist/services/descriptors/vibes-bridge.os-service.descriptor.js.map +1 -0
- package/dist/services/descriptors/vibes-mcp.os-service.descriptor.d.ts +8 -0
- package/dist/services/descriptors/vibes-mcp.os-service.descriptor.d.ts.map +1 -0
- package/dist/services/descriptors/vibes-mcp.os-service.descriptor.js +20 -0
- package/dist/services/descriptors/vibes-mcp.os-service.descriptor.js.map +1 -0
- package/dist/services/descriptors/vibes-pm.os-service.descriptor.d.ts +8 -0
- package/dist/services/descriptors/vibes-pm.os-service.descriptor.d.ts.map +1 -0
- package/dist/services/descriptors/vibes-pm.os-service.descriptor.js +20 -0
- package/dist/services/descriptors/vibes-pm.os-service.descriptor.js.map +1 -0
- package/dist/services/index.d.ts +14 -0
- package/dist/services/index.d.ts.map +1 -0
- package/dist/services/index.js +12 -0
- package/dist/services/index.js.map +1 -0
- package/dist/services/kinds/os-service.kind.d.ts +19 -0
- package/dist/services/kinds/os-service.kind.d.ts.map +1 -0
- package/dist/services/kinds/os-service.kind.js +24 -0
- package/dist/services/kinds/os-service.kind.js.map +1 -0
- package/dist/services/registry.d.ts +45 -0
- package/dist/services/registry.d.ts.map +1 -0
- package/dist/services/registry.js +141 -0
- package/dist/services/registry.js.map +1 -0
- package/dist/services/schemas/service.d.ts +79 -0
- package/dist/services/schemas/service.d.ts.map +1 -0
- package/dist/services/schemas/service.js +82 -0
- package/dist/services/schemas/service.js.map +1 -0
- package/dist/svelte/report/ReportProblemDialog.svelte +205 -0
- package/dist/svelte/report/ReportProblemDialog.svelte.d.ts +5 -0
- package/dist/svelte/report/ReportProblemDialog.svelte.d.ts.map +1 -0
- package/dist/svelte/report/capture-context.d.ts +61 -0
- package/dist/svelte/report/capture-context.d.ts.map +1 -0
- package/dist/svelte/report/capture-context.js +100 -0
- package/dist/svelte/report/report.plugin.d.ts +68 -0
- package/dist/svelte/report/report.plugin.d.ts.map +1 -0
- package/dist/svelte/report/report.plugin.js +109 -0
- package/dist/svelte/report/severity.d.ts +32 -0
- package/dist/svelte/report/severity.d.ts.map +1 -0
- package/dist/svelte/report/severity.js +13 -0
- package/dist/tools/applet/applet.schemas.d.ts +6 -0
- package/dist/tools/applet/applet.schemas.d.ts.map +1 -0
- package/dist/tools/applet/applet.schemas.js +6 -0
- package/dist/tools/applet/applet.schemas.js.map +1 -0
- package/dist/utils/exec.d.ts +22 -0
- package/dist/utils/exec.d.ts.map +1 -0
- package/dist/utils/exec.js +38 -0
- package/dist/utils/exec.js.map +1 -0
- package/dist/utils/fs.d.ts +10 -0
- package/dist/utils/fs.d.ts.map +1 -0
- package/dist/utils/fs.js +25 -0
- package/dist/utils/fs.js.map +1 -0
- package/package.json +268 -4
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
import { getLogger } from '@vibesdotdev/logging';
|
|
2
|
+
import { detectPlatform } from "../../installers/core/platform.js";
|
|
3
|
+
/**
|
|
4
|
+
* OS Health Command Implementation
|
|
5
|
+
*
|
|
6
|
+
* Checks basic host readiness and builtin installer availability.
|
|
7
|
+
*/
|
|
8
|
+
import * as z from 'zod/v4';
|
|
9
|
+
import { writeJson } from '@vibesdotdev/cli/output';
|
|
10
|
+
import { defineCommandImplementation } from '@vibesdotdev/cli';
|
|
11
|
+
import { getPathRoots } from '@vibesdotdev/paths';
|
|
12
|
+
import { whichCommand } from '@vibesdotdev/kernel/execution';
|
|
13
|
+
import { CapabilityError, settle, valueFreeFailure } from '@vibesdotdev/kernel';
|
|
14
|
+
import { resolveFileSystemAdapter } from '@vibesdotdev/filesystem';
|
|
15
|
+
import { get as getSetupInstaller, installerOptionsSchema, list as listSetupInstallers } from '@vibesdotdev/config/setup/installers';
|
|
16
|
+
import { requireHostPlatform } from "../host-platform.js";
|
|
17
|
+
import { listHostHealthChecks } from "../../host-guidance/registry.js";
|
|
18
|
+
const HealthOptionsSchema = z.object({
|
|
19
|
+
json: z.union([z.boolean(), z.string()]).optional(),
|
|
20
|
+
fix: z.union([z.boolean(), z.string()]).optional(),
|
|
21
|
+
verbose: z.union([z.boolean(), z.string()]).optional(),
|
|
22
|
+
});
|
|
23
|
+
function readBoolean(value) {
|
|
24
|
+
return value === true || value === 'true';
|
|
25
|
+
}
|
|
26
|
+
async function commandExists(runtime, command) {
|
|
27
|
+
return (await whichCommand(runtime, command)) !== null;
|
|
28
|
+
}
|
|
29
|
+
export default defineCommandImplementation({
|
|
30
|
+
options: HealthOptionsSchema,
|
|
31
|
+
async execute(_args, options, commandContext) {
|
|
32
|
+
const { runtime } = commandContext;
|
|
33
|
+
const ui = await runtime.context('cli/ui');
|
|
34
|
+
const asJson = readBoolean(options.json);
|
|
35
|
+
const fix = readBoolean(options.fix);
|
|
36
|
+
const verbose = readBoolean(options.verbose);
|
|
37
|
+
const hostPlatform = requireHostPlatform(runtime);
|
|
38
|
+
const platform = detectPlatform(runtime);
|
|
39
|
+
const checks = [];
|
|
40
|
+
const vibesHome = getPathRoots(runtime).vibesHome;
|
|
41
|
+
// The OS home is a directory under the host home: stat it through the
|
|
42
|
+
// runtime's unbound filesystem adapter, never node:fs directly. Only a
|
|
43
|
+
// confirmed absence answers false; every other failure propagates whole.
|
|
44
|
+
const fs = await resolveFileSystemAdapter(runtime, { binding: false });
|
|
45
|
+
const stated = await settle(() => fs.stat(vibesHome));
|
|
46
|
+
let vibesHomeExists = false;
|
|
47
|
+
if (stated.ok)
|
|
48
|
+
vibesHomeExists = stated.value.kind === 'directory';
|
|
49
|
+
else {
|
|
50
|
+
const code = valueFreeFailure(stated.cause).code;
|
|
51
|
+
if (code !== 'ENOENT')
|
|
52
|
+
throw stated.cause;
|
|
53
|
+
}
|
|
54
|
+
if (!vibesHomeExists && fix) {
|
|
55
|
+
await fs.mkdir(vibesHome, { recursive: true });
|
|
56
|
+
}
|
|
57
|
+
checks.push({
|
|
58
|
+
id: 'vibes-home',
|
|
59
|
+
status: vibesHomeExists || fix ? 'ok' : 'warning',
|
|
60
|
+
message: vibesHomeExists || fix ? `Found ${vibesHome}` : `Missing ${vibesHome}`
|
|
61
|
+
});
|
|
62
|
+
const pythonExists = await commandExists(runtime, 'python3');
|
|
63
|
+
checks.push({
|
|
64
|
+
id: 'python3',
|
|
65
|
+
status: pythonExists ? 'ok' : 'warning',
|
|
66
|
+
message: pythonExists ? 'python3 is available' : 'python3 is not available in PATH'
|
|
67
|
+
});
|
|
68
|
+
// Host probes are `hq/host-health-check` descriptors whose platforms
|
|
69
|
+
// include the selected host — no platform-string branches here.
|
|
70
|
+
const hostProbes = listHostHealthChecks(runtime).filter((probe) => probe.platforms.includes(hostPlatform));
|
|
71
|
+
for (const probe of hostProbes) {
|
|
72
|
+
const probeExists = await commandExists(runtime, probe.command);
|
|
73
|
+
checks.push({
|
|
74
|
+
id: probe.id,
|
|
75
|
+
status: probeExists ? 'ok' : 'warning',
|
|
76
|
+
message: probeExists
|
|
77
|
+
? (probe.foundMessage ?? `${probe.id} is available`)
|
|
78
|
+
: (probe.missingMessage ?? `${probe.id} is not available`)
|
|
79
|
+
});
|
|
80
|
+
}
|
|
81
|
+
const installers = listSetupInstallers(runtime, { includeDisabled: true })
|
|
82
|
+
.filter((installer) => installer.tags.includes(`platform:${platform}`));
|
|
83
|
+
let installedCount = 0;
|
|
84
|
+
const context = {
|
|
85
|
+
runtime: { runtime, ui },
|
|
86
|
+
ui,
|
|
87
|
+
options: installerOptionsSchema.parse({
|
|
88
|
+
interactive: false,
|
|
89
|
+
dryRun: true,
|
|
90
|
+
force: false,
|
|
91
|
+
scope: 'global',
|
|
92
|
+
skipDependencies: false,
|
|
93
|
+
verbose
|
|
94
|
+
}),
|
|
95
|
+
workspacePath: await runtime.context('runtime/workspace-path'),
|
|
96
|
+
vibesHome,
|
|
97
|
+
logger: getLogger('hq.health', runtime)
|
|
98
|
+
};
|
|
99
|
+
const probeFailures = [];
|
|
100
|
+
for (const installer of installers) {
|
|
101
|
+
const impl = await getSetupInstaller(runtime, installer.id);
|
|
102
|
+
if (!impl)
|
|
103
|
+
continue;
|
|
104
|
+
// Settle each probe on its own: one installer's failure never aborts
|
|
105
|
+
// its siblings, and the report carries only value-free failure facts.
|
|
106
|
+
const probed = await settle(() => impl.isInstalled(context));
|
|
107
|
+
if (probed.ok) {
|
|
108
|
+
if (probed.value)
|
|
109
|
+
installedCount += 1;
|
|
110
|
+
}
|
|
111
|
+
else {
|
|
112
|
+
const failure = valueFreeFailure(probed.cause);
|
|
113
|
+
probeFailures.push(`${installer.id}: probe failed (${failure.code ?? failure.name})`);
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
checks.push({
|
|
117
|
+
id: 'installers',
|
|
118
|
+
status: installedCount > 0 ? 'ok' : 'warning',
|
|
119
|
+
message: `${installedCount}/${installers.length} platform installers detected as installed`
|
|
120
|
+
});
|
|
121
|
+
if (probeFailures.length > 0) {
|
|
122
|
+
checks.push({
|
|
123
|
+
id: 'installer-probes',
|
|
124
|
+
status: 'warning',
|
|
125
|
+
message: `Could not probe ${probeFailures.length} installer(s): ${probeFailures.join('; ')}`
|
|
126
|
+
});
|
|
127
|
+
}
|
|
128
|
+
const failed = checks.filter((check) => check.status === 'error').length;
|
|
129
|
+
const warnings = checks.filter((check) => check.status === 'warning').length;
|
|
130
|
+
if (asJson) {
|
|
131
|
+
await writeJson(runtime, { platform, checks, summary: { failed, warnings } });
|
|
132
|
+
}
|
|
133
|
+
else {
|
|
134
|
+
ui.info(`Platform: ${platform}`);
|
|
135
|
+
for (const check of checks) {
|
|
136
|
+
const marker = check.status === 'ok' ? 'OK' : check.status === 'warning' ? 'WARN' : 'ERROR';
|
|
137
|
+
ui.info(`[${marker}] ${check.id}: ${check.message}`);
|
|
138
|
+
}
|
|
139
|
+
if (failed === 0 && warnings === 0)
|
|
140
|
+
ui.success('System health checks passed.');
|
|
141
|
+
else if (failed === 0)
|
|
142
|
+
ui.warn('System health check found warnings.');
|
|
143
|
+
}
|
|
144
|
+
// A blocking issue is a failure on every output path — raise it after the
|
|
145
|
+
// report is rendered so `--json` can't report failures and still exit 0.
|
|
146
|
+
if (failed > 0) {
|
|
147
|
+
throw new CapabilityError(`System health check found ${failed} blocking issue${failed === 1 ? '' : 's'}.`, 'UNAVAILABLE');
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
});
|
|
151
|
+
//# sourceMappingURL=hq.health.impl.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hq.health.impl.js","sourceRoot":"","sources":["../../../src/cli/health/hq.health.impl.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AACjD,OAAO,EAAE,cAAc,EAAE,MAAM,mCAAmC,CAAC;AACnE;;;;GAIG;AACH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AACpD,OAAO,EAAE,2BAA2B,EAAE,MAAM,kBAAkB,CAAC;AAG/D,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAClD,OAAO,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAC7D,OAAO,EAAE,eAAe,EAAE,MAAM,EAAE,gBAAgB,EAAqB,MAAM,qBAAqB,CAAC;AACnG,OAAO,EAAE,wBAAwB,EAAE,MAAM,yBAAyB,CAAC;AACnE,OAAO,EACN,GAAG,IAAI,iBA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AK,KAAK,CAAC,OAAO,EAAE,CAAC,CAAC;YACtD,CAAC;YAED,IAAI,MAAM,KAAK,CAAC,IAAI,QAAQ,KAAK,CAAC;gBAAE,EAAE,CAAC,OAAO,CAAC,8BAA8B,CAAC,CAAC;iBAC1E,IAAI,MAAM,KAAK,CAAC;gBAAE,EAAE,CAAC,IAAI,CAAC,qCAAqC,CAAC,CAAC;QACvE,CAAC;QAED,0EAA0E;QAC1E,yEAAyE;QACzE,IAAI,MAAM,GAAG,CAAC,EAAE,CAAC;YAChB,MAAM,IAAI,eAAe,CACxB,6BAA6B,MAAM,kBAAkB,MAAM,KAAK,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,GAAG,GAAG,EAC/E,aAAa,CACb,CAAC;QACH,CAAC;IACF,CAAC;CACD,CAAC,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Selected-host platform facts for CLI commands.
|
|
3
|
+
*
|
|
4
|
+
* Commands read the platform and architecture off the handed runtime's
|
|
5
|
+
* `localEnvironment` host facts — never `process.platform`/`process.arch`,
|
|
6
|
+
* which describe this process instead of the selected host. A host that
|
|
7
|
+
* declares no fact refuses typed; there is no ambient fallback.
|
|
8
|
+
*/
|
|
9
|
+
import { type RuntimeRef } from '@vibesdotdev/kernel';
|
|
10
|
+
/** The selected host's platform (`process.platform` spelling), or a typed refusal. */
|
|
11
|
+
export declare function requireHostPlatform(runtime: Pick<RuntimeRef, 'localEnvironment'>): string;
|
|
12
|
+
/** The selected host's architecture (`process.arch` spelling), or a typed refusal. */
|
|
13
|
+
export declare function requireHostArch(runtime: Pick<RuntimeRef, 'localEnvironment'>): string;
|
|
14
|
+
//# sourceMappingURL=host-platform.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"host-platform.d.ts","sourceRoot":"","sources":["../../src/cli/host-platform.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,OAAO,EAAmB,KAAK,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAEvE,sFAAsF;AACtF,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,IAAI,CAAC,UAAU,EAAE,kBAAkB,CAAC,GAAG,MAAM,CAQzF;AAED,sFAAsF;AACtF,wBAAgB,eAAe,CAAC,OAAO,EAAE,IAAI,CAAC,UAAU,EAAE,kBAAkB,CAAC,GAAG,MAAM,CAQrF"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Selected-host platform facts for CLI commands.
|
|
3
|
+
*
|
|
4
|
+
* Commands read the platform and architecture off the handed runtime's
|
|
5
|
+
* `localEnvironment` host facts — never `process.platform`/`process.arch`,
|
|
6
|
+
* which describe this process instead of the selected host. A host that
|
|
7
|
+
* declares no fact refuses typed; there is no ambient fallback.
|
|
8
|
+
*/
|
|
9
|
+
import { CapabilityError } from '@vibesdotdev/kernel';
|
|
10
|
+
/** The selected host's platform (`process.platform` spelling), or a typed refusal. */
|
|
11
|
+
export function requireHostPlatform(runtime) {
|
|
12
|
+
const platform = runtime.localEnvironment.getPlatform?.();
|
|
13
|
+
if (platform === undefined) {
|
|
14
|
+
throw new CapabilityError('The selected host declares no platform fact', 'UNAVAILABLE', {
|
|
15
|
+
reason: 'host-platform-unavailable'
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
return platform;
|
|
19
|
+
}
|
|
20
|
+
/** The selected host's architecture (`process.arch` spelling), or a typed refusal. */
|
|
21
|
+
export function requireHostArch(runtime) {
|
|
22
|
+
const arch = runtime.localEnvironment.getArch?.();
|
|
23
|
+
if (arch === undefined) {
|
|
24
|
+
throw new CapabilityError('The selected host declares no architecture fact', 'UNAVAILABLE', {
|
|
25
|
+
reason: 'host-arch-unavailable'
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
return arch;
|
|
29
|
+
}
|
|
30
|
+
//# sourceMappingURL=host-platform.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"host-platform.js","sourceRoot":"","sources":["../../src/cli/host-platform.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,OAAO,EAAE,eAAe,EAAmB,MAAM,qBAAqB,CAAC;AAEvE,sFAAsF;AACtF,MAAM,UAAU,mBAAmB,CAAC,OAA6C;IAChF,MAAM,QAAQ,GAAG,OAAO,CAAC,gBAAgB,CAAC,WAAW,EAAE,EAAE,CAAC;IAC1D,IAAI,QAAQ,KAAK,SAAS,EAAE,CAAC;QAC5B,MAAM,IAAI,eAAe,CAAC,6CAA6C,EAAE,aAAa,EAAE;YACvF,MAAM,EAAE,2BAA2B;SACnC,CAAC,CAAC;IACJ,CAAC;IACD,OAAO,QAAQ,CAAC;AACjB,CAAC;AAED,sFAAsF;AACtF,MAAM,UAAU,eAAe,CAAC,OAA6C;IAC5E,MAAM,IAAI,GAAG,OAAO,CAAC,gBAAgB,CAAC,OAAO,EAAE,EAAE,CAAC;IAClD,IAAI,IAAI,KAAK,SAAS,EAAE,CAAC;QACxB,MAAM,IAAI,eAAe,CAAC,iDAAiD,EAAE,aAAa,EAAE;YAC3F,MAAM,EAAE,uBAAuB;SAC/B,CAAC,CAAC;IACJ,CAAC;IACD,OAAO,IAAI,CAAC;AACb,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
readonly id: "hq";
|
|
3
|
+
readonly kind: "cli/group";
|
|
4
|
+
readonly name: "hq";
|
|
5
|
+
readonly description: "Agent HQ: setup, runtime health, permissions, app pairing, channels, surface";
|
|
6
|
+
readonly surfaces: ["cli"];
|
|
7
|
+
readonly hardware: readonly ["consumer"];
|
|
8
|
+
readonly enabled: true;
|
|
9
|
+
};
|
|
10
|
+
export default _default;
|
|
11
|
+
//# sourceMappingURL=hq.cli-group.descriptor.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hq.cli-group.descriptor.d.ts","sourceRoot":"","sources":["../../src/cli/hq.cli-group.descriptor.ts"],"names":[],"mappings":";;;;;;;;;AAEA,wBAQG"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { createRuntimeAsset } from '@vibesdotdev/kernel';
|
|
2
|
+
export default createRuntimeAsset({
|
|
3
|
+
id: 'hq',
|
|
4
|
+
kind: 'cli/group',
|
|
5
|
+
name: 'hq',
|
|
6
|
+
description: 'Agent HQ: setup, runtime health, permissions, app pairing, channels, surface',
|
|
7
|
+
surfaces: ['cli'],
|
|
8
|
+
hardware: ['consumer'],
|
|
9
|
+
enabled: true
|
|
10
|
+
});
|
|
11
|
+
//# sourceMappingURL=hq.cli-group.descriptor.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hq.cli-group.descriptor.js","sourceRoot":"","sources":["../../src/cli/hq.cli-group.descriptor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAEzD,eAAe,kBAAkB,CAAC;IACjC,EAAE,EAAE,IAAI;IACR,IAAI,EAAE,WAAW;IACjB,IAAI,EAAE,IAAI;IACV,WAAW,EAAE,8EAA8E;IAC3F,QAAQ,EAAE,CAAC,KAAK,CAAC;IACjB,QAAQ,EAAE,CAAC,UAAU,CAAC;IACtB,OAAO,EAAE,IAAI;CACb,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hq.init.descriptor.d.ts","sourceRoot":"","sources":["../../../src/cli/init/hq.init.descriptor.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,sCAAsC,CAAC;AAEtF,QAAA,MAAM,UAAU,EAAE,yBA8BjB,CAAC;AAEF,eAAe,UAAU,CAAC"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* OS Init Command Descriptor
|
|
3
|
+
*/
|
|
4
|
+
const descriptor = {
|
|
5
|
+
kind: 'cli/command',
|
|
6
|
+
id: 'hq.init',
|
|
7
|
+
name: 'init',
|
|
8
|
+
description: 'Initialize system for first-time use',
|
|
9
|
+
group: 'hq',
|
|
10
|
+
options: [
|
|
11
|
+
{
|
|
12
|
+
flags: '--preset <name>',
|
|
13
|
+
description: 'Installer preset (minimal, recommended, full)',
|
|
14
|
+
default: 'recommended'
|
|
15
|
+
},
|
|
16
|
+
{ flags: '--dry-run', description: 'Show what would run without applying changes' },
|
|
17
|
+
{ flags: '--force', description: 'Force reinstall even when installers are already present' },
|
|
18
|
+
{ flags: '--skip-health', description: 'Skip final health check' },
|
|
19
|
+
{ flags: '--skip-permissions', description: 'Skip permissions guidance' },
|
|
20
|
+
{ flags: '-v, --verbose', description: 'Verbose output' },
|
|
21
|
+
{ flags: '--no-auth', description: 'Skip the auth login prompt even when no credential is stored' },
|
|
22
|
+
{
|
|
23
|
+
flags: '--enroll-fleet',
|
|
24
|
+
description: 'Configure the fleet platform origin (PUBLIC_VIBES_PLATFORM_ORIGIN); enroll separately with `vibes fleet install`'
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
flags: '--platform-origin <url>',
|
|
28
|
+
description: 'Platform origin URL for the fleet (defaults to active environment platform origin)'
|
|
29
|
+
}
|
|
30
|
+
],
|
|
31
|
+
surfaces: ['cli'],
|
|
32
|
+
hardware: ['consumer'],
|
|
33
|
+
enabled: true
|
|
34
|
+
};
|
|
35
|
+
export default descriptor;
|
|
36
|
+
//# sourceMappingURL=hq.init.descriptor.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hq.init.descriptor.js","sourceRoot":"","sources":["../../../src/cli/init/hq.init.descriptor.ts"],"names":[],"mappings":"AAAA;;GAEG;AAIH,MAAM,UAAU,GAA8B;IAC7C,IAAI,EAAE,aAAa;IACnB,EAAE,EAAE,SAAS;IACb,IAAI,EAAE,MAAM;IACZ,WAAW,EAAE,sCAAsC;IACnD,KAAK,EAAE,IAAI;IACX,OAAO,EAAE;QACR;YACC,KAAK,EAAE,iBAAiB;YACxB,WAAW,EAAE,+CAA+C;YAC5D,OAAO,EAAE,aAAa;SACtB;QACD,EAAE,KAAK,EAAE,WAAW,EAAE,WAAW,EAAE,8CAA8C,EAAE;QACnF,EAAE,KAAK,EAAE,SAAS,EAAE,WAAW,EAAE,0DAA0D,EAAE;QAC7F,EAAE,KAAK,EAAE,eAAe,EAAE,WAAW,EAAE,yBAAyB,EAAE;QAClE,EAAE,KAAK,EAAE,oBAAoB,EAAE,WAAW,EAAE,2BAA2B,EAAE;QACzE,EAAE,KAAK,EAAE,eAAe,EAAE,WAAW,EAAE,gBAAgB,EAAE;QACzD,EAAE,KAAK,EAAE,WAAW,EAAE,WAAW,EAAE,8DAA8D,EAAE;QACnG;YACC,KAAK,EAAE,gBAAgB;YACvB,WAAW,EAAE,kHAAkH;SAC/H;QACD;YACC,KAAK,EAAE,yBAAyB;YAChC,WAAW,EAAE,oFAAoF;SACjG;KACD;IACD,QAAQ,EAAE,CAAC,KAAK,CAAC;IACjB,QAAQ,EAAE,CAAC,UAAU,CAAC;IACtB,OAAO,EAAE,IAAI;CACb,CAAC;AAEF,eAAe,UAAU,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { CommandOptions } from '@vibesdotdev/cli';
|
|
2
|
+
import type { CommandContext } from '@vibesdotdev/cli';
|
|
3
|
+
declare const _default: import("@vibesdotdev/kernel").RuntimeImplementationWrapper<{
|
|
4
|
+
execute(inputArgs: CommandOptions, inputOptions: CommandOptions, context: CommandContext): Promise<void>;
|
|
5
|
+
}>;
|
|
6
|
+
export default _default;
|
|
7
|
+
//# sourceMappingURL=hq.init.impl.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hq.init.impl.d.ts","sourceRoot":"","sources":["../../../src/cli/init/hq.init.impl.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAEvD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;;uBA6C5B,cAAc,gBAAgB,cAAc,WAAW,cAAc,GAAG,OAAO,CAAC,IAAI,CAAC;;AAJhH,wBA0IG"}
|
|
@@ -0,0 +1,163 @@
|
|
|
1
|
+
import { resolveFileSystemAdapter } from '@vibesdotdev/filesystem';
|
|
2
|
+
import { getRuntimePath } from "../../runtime-path.js";
|
|
3
|
+
import { valueFreeFailure, CaughtFailureSchema } from '@vibesdotdev/kernel';
|
|
4
|
+
import { parseCliArguments, parseCliOptions } from "../schemas/input.js";
|
|
5
|
+
import { createRuntimeImplementation, CapabilityError } from '@vibesdotdev/kernel';
|
|
6
|
+
import { serviceOrigin } from '@vibesdotdev/infra-core/service';
|
|
7
|
+
import { getPathRoots } from '@vibesdotdev/paths';
|
|
8
|
+
import { ensureMachineProfile } from "../../app/auth/sync.consumer.js";
|
|
9
|
+
/** Remove the retired `os/app-auth.json`; an absent file is the expected state. */
|
|
10
|
+
async function removeLegacyAppAuth(runtime, path) {
|
|
11
|
+
const fs = await resolveFileSystemAdapter(runtime, { binding: false });
|
|
12
|
+
try {
|
|
13
|
+
await fs.remove(path);
|
|
14
|
+
}
|
|
15
|
+
catch (error) {
|
|
16
|
+
if (valueFreeFailure(CaughtFailureSchema.parse(error)).code !== 'ENOENT')
|
|
17
|
+
throw error;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
/** The registered command, or undefined when none is registered; a load failure propagates. */
|
|
21
|
+
async function resolveCommand(runtime, id) {
|
|
22
|
+
const selected = await runtime.query('cli/command').withId(id).select();
|
|
23
|
+
return selected?.impl;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check whether a credential is stored for the active environment.
|
|
27
|
+
* Returns true if a token/apiKey is present, false otherwise.
|
|
28
|
+
*
|
|
29
|
+
* Uses a dynamic import of the auth credential-store so the hq package does not
|
|
30
|
+
* take a hard dependency on @vibesdotdev/auth. Falls back to false (no credential)
|
|
31
|
+
* when the auth package is unavailable — this errs on the side of prompting the user,
|
|
32
|
+
* which is the safer default.
|
|
33
|
+
*/
|
|
34
|
+
async function hasStoredCredential(runtime) {
|
|
35
|
+
// The auth package is optional here: its absence is the one confirmed
|
|
36
|
+
// "no credential" answer. A store that fails to read propagates.
|
|
37
|
+
const credStore = await import('@vibesdotdev/auth/features/services/credential-store');
|
|
38
|
+
return credStore.hasCredentials(runtime);
|
|
39
|
+
}
|
|
40
|
+
export default createRuntimeImplementation({
|
|
41
|
+
id: 'hq.init',
|
|
42
|
+
kind: 'cli/command',
|
|
43
|
+
implementation: {
|
|
44
|
+
async execute(inputArgs, inputOptions, context) {
|
|
45
|
+
const _args = parseCliArguments(inputArgs);
|
|
46
|
+
const opts = parseCliOptions(inputOptions);
|
|
47
|
+
const { runtime } = context;
|
|
48
|
+
const ui = await runtime.context('cli/ui');
|
|
49
|
+
const fs = await resolveFileSystemAdapter(runtime, { binding: false });
|
|
50
|
+
const path = await getRuntimePath(runtime);
|
|
51
|
+
const join = path.join.bind(path);
|
|
52
|
+
const preset = opts.preset ?? 'recommended';
|
|
53
|
+
const dryRun = opts.dryRun;
|
|
54
|
+
const force = opts.force;
|
|
55
|
+
const verbose = opts.verbose;
|
|
56
|
+
const skipHealth = opts.skipHealth;
|
|
57
|
+
const skipPermissions = opts.skipPermissions;
|
|
58
|
+
// --no-auth skips the credential prompt; default is to prompt when no cred is stored.
|
|
59
|
+
const noAuth = opts.noAuth;
|
|
60
|
+
// --enroll-fleet triggers the PUBLIC_VIBES_PLATFORM_ORIGIN prompt.
|
|
61
|
+
const enrollFleet = opts.enrollFleet;
|
|
62
|
+
// --platform-origin <url> skips the fleet prompt and uses this value directly.
|
|
63
|
+
const platformOriginFlag = opts.platformOrigin;
|
|
64
|
+
const vibesHome = getPathRoots(runtime).vibesHome;
|
|
65
|
+
const osHome = join(vibesHome, 'os');
|
|
66
|
+
if (dryRun)
|
|
67
|
+
ui.info(`[dry-run] Would ensure directories: ${vibesHome}, ${osHome}`);
|
|
68
|
+
else {
|
|
69
|
+
await fs.mkdir(vibesHome, { recursive: true });
|
|
70
|
+
await fs.mkdir(osHome, { recursive: true });
|
|
71
|
+
await ensureMachineProfile(runtime);
|
|
72
|
+
await removeLegacyAppAuth(runtime, join(osHome, 'app-auth.json'));
|
|
73
|
+
}
|
|
74
|
+
// --- Auth step: prompt when no credential is stored (unless --no-auth) ---
|
|
75
|
+
if (!noAuth && !dryRun) {
|
|
76
|
+
const credentialPresent = await hasStoredCredential(runtime);
|
|
77
|
+
if (!credentialPresent) {
|
|
78
|
+
ui.info('No stored credential found. Running auth login...');
|
|
79
|
+
const authLogin = await resolveCommand(runtime, 'auth.login');
|
|
80
|
+
if (authLogin) {
|
|
81
|
+
try {
|
|
82
|
+
await authLogin.execute({}, { interactive: true }, context);
|
|
83
|
+
}
|
|
84
|
+
catch (err) {
|
|
85
|
+
ui.warn(`Auth login failed: ${err instanceof Error ? err.message : String(err)}. ` +
|
|
86
|
+
`You can run 'vibes auth login' manually and then re-run 'vibes hq init'.`);
|
|
87
|
+
throw err;
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
else {
|
|
91
|
+
ui.warn("'auth.login' command is not available. " +
|
|
92
|
+
"Run 'vibes auth login' manually before using platform-authenticated commands.");
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
else if (noAuth && verbose) {
|
|
97
|
+
ui.info('Skipping auth login (--no-auth).');
|
|
98
|
+
}
|
|
99
|
+
const install = await resolveCommand(runtime, 'hq.install');
|
|
100
|
+
if (!install) {
|
|
101
|
+
throw new CapabilityError('Required command hq.install is not available.', 'UNAVAILABLE');
|
|
102
|
+
}
|
|
103
|
+
await install.execute({}, { preset, dryRun, force, verbose }, context);
|
|
104
|
+
if (!skipPermissions) {
|
|
105
|
+
const permissions = await resolveCommand(runtime, 'hq.permissions');
|
|
106
|
+
if (permissions)
|
|
107
|
+
await permissions.execute({}, {}, context);
|
|
108
|
+
else
|
|
109
|
+
ui.warn('hq.permissions command is not available.');
|
|
110
|
+
}
|
|
111
|
+
if (!skipHealth) {
|
|
112
|
+
const health = await resolveCommand(runtime, 'hq.health');
|
|
113
|
+
if (health)
|
|
114
|
+
await health.execute({}, { verbose }, context);
|
|
115
|
+
else
|
|
116
|
+
ui.warn('hq.health command is not available.');
|
|
117
|
+
}
|
|
118
|
+
// --- Fleet enrollment step: persist PUBLIC_VIBES_PLATFORM_ORIGIN ---
|
|
119
|
+
// Triggers when: (a) --enroll-fleet flag passed, (b) --platform-origin value given,
|
|
120
|
+
// OR (c) user confirms interactively on a TTY (the brief's interactive-confirm path).
|
|
121
|
+
const interactiveEnroll = !enrollFleet && !platformOriginFlag
|
|
122
|
+
? await ui.confirm('Configure this machine to join a fleet (set the platform origin)?')
|
|
123
|
+
: false;
|
|
124
|
+
if (!dryRun && (enrollFleet || platformOriginFlag || interactiveEnroll)) {
|
|
125
|
+
let platformOrigin;
|
|
126
|
+
if (platformOriginFlag) {
|
|
127
|
+
platformOrigin = platformOriginFlag;
|
|
128
|
+
}
|
|
129
|
+
else {
|
|
130
|
+
// Interactive prompt; its default is the declared `platform` service
|
|
131
|
+
// in the configured service environment (rc04 §2.4). With none
|
|
132
|
+
// declared this fails `service-undeclared`: pass --platform-origin.
|
|
133
|
+
platformOrigin = (await ui.prompt('Platform origin URL (for fleet enrollment)', { default: await serviceOrigin(runtime, 'platform') })) ?? '';
|
|
134
|
+
}
|
|
135
|
+
// Persist to <vibesHome>/hq-env so the L3 service wrapper .cmd / launchd plist
|
|
136
|
+
// can read PUBLIC_VIBES_PLATFORM_ORIGIN at service start time.
|
|
137
|
+
const hqEnvPath = join(vibesHome, 'hq-env');
|
|
138
|
+
const envLine = `PUBLIC_VIBES_PLATFORM_ORIGIN=${platformOrigin}\n`;
|
|
139
|
+
try {
|
|
140
|
+
await fs.mkdir(vibesHome, { recursive: true });
|
|
141
|
+
// Overwrite or create the file — simple key=value format readable by both
|
|
142
|
+
// shell `export $(cat hq-env)` and the Windows .cmd wrapper `for /f ... set`.
|
|
143
|
+
await fs.writeFile(hqEnvPath, envLine, 'utf8');
|
|
144
|
+
ui.success(`Fleet platform origin configured: PUBLIC_VIBES_PLATFORM_ORIGIN=${platformOrigin}`);
|
|
145
|
+
ui.info(` Persisted to: ${hqEnvPath}`);
|
|
146
|
+
ui.info(' This sets WHERE the fleet lives — it does not enroll this machine yet.');
|
|
147
|
+
ui.info(' To actually bring this machine online, enroll + install the daemon:');
|
|
148
|
+
ui.info(' vibes fleet enroll-token create --host-id <name>');
|
|
149
|
+
ui.info(' vibes fleet install --host-id <name> --enroll-token <token>');
|
|
150
|
+
}
|
|
151
|
+
catch (err) {
|
|
152
|
+
ui.warn(`Could not write ${hqEnvPath}: ${err instanceof Error ? err.message : String(err)}`);
|
|
153
|
+
throw err;
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
else if (dryRun && (enrollFleet || platformOriginFlag)) {
|
|
157
|
+
ui.info(`[dry-run] Would persist PUBLIC_VIBES_PLATFORM_ORIGIN=${platformOriginFlag ?? '<prompt>'} to ${join(getPathRoots(runtime).vibesHome, 'hq-env')}`);
|
|
158
|
+
}
|
|
159
|
+
ui.success('System initialization flow completed.');
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
});
|
|
163
|
+
//# sourceMappingURL=hq.init.impl.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hq.init.impl.js","sourceRoot":"","sources":["../../../src/cli/init/hq.init.impl.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,MAAM,yBAAyB,CAAC;AACnE,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AACvD,OAAO,EAAE,gBAAgB,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AAG5E,OAAO,EAAE,iBAAiB,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAEzE,OAAO,EAAE,2BAA2B,EAAE,eAAe,EAAqB,M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F,CAAC;iBAAM,IAAI,MAAM,IAAI,CAAC,WAAW,IAAI,kBAAkB,CAAC,EAAE,CAAC;gBAC1D,EAAE,CAAC,IAAI,CACN,wDAAwD,kBAAkB,IAAI,UAAU,OAAO,IAAI,CAAC,YAAY,CAAC,OAAO,CAAC,CAAC,SAAS,EAAE,QAAQ,CAAC,EAAE,CAChJ,CAAC;YACH,CAAC;YAED,EAAE,CAAC,OAAO,CAAC,uCAAuC,CAAC,CAAC;QACrD,CAAC;KACD;CACD,CAAC,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* OS Install Command Descriptor
|
|
3
|
+
*
|
|
4
|
+
* Install native runtimes and language servers.
|
|
5
|
+
*/
|
|
6
|
+
import type { CLICommandAssetDescriptor } from '@vibesdotdev/cli/schemas/descriptors';
|
|
7
|
+
declare const descriptor: CLICommandAssetDescriptor;
|
|
8
|
+
export default descriptor;
|
|
9
|
+
//# sourceMappingURL=hq.install.descriptor.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hq.install.descriptor.d.ts","sourceRoot":"","sources":["../../../src/cli/install/hq.install.descriptor.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,sCAAsC,CAAC;AAEtF,QAAA,MAAM,UAAU,EAAE,yBA2BjB,CAAC;AAEF,eAAe,UAAU,CAAC"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* OS Install Command Descriptor
|
|
3
|
+
*
|
|
4
|
+
* Install native runtimes and language servers.
|
|
5
|
+
*/
|
|
6
|
+
const descriptor = {
|
|
7
|
+
kind: 'cli/command',
|
|
8
|
+
id: 'hq.install',
|
|
9
|
+
name: 'install',
|
|
10
|
+
description: 'Install native runtimes (MLX, faster-whisper, llama-cpp) and language servers',
|
|
11
|
+
group: 'hq',
|
|
12
|
+
arguments: [
|
|
13
|
+
{
|
|
14
|
+
name: 'runtime',
|
|
15
|
+
description: 'Installer id or short runtime name (for example: mlx, ai-runtime-mlx, lsp-typescript)',
|
|
16
|
+
required: false
|
|
17
|
+
}
|
|
18
|
+
],
|
|
19
|
+
options: [
|
|
20
|
+
{ flags: '--list', description: 'List available installers for this platform' },
|
|
21
|
+
{
|
|
22
|
+
flags: '--preset <name>',
|
|
23
|
+
description: 'Install preset (minimal, recommended, full, llm, audio, image)'
|
|
24
|
+
},
|
|
25
|
+
{ flags: '--dry-run', description: 'Show what would be installed without installing' },
|
|
26
|
+
{ flags: '--force', description: 'Force reinstall even if already installed' },
|
|
27
|
+
{ flags: '-v, --verbose', description: 'Verbose output' }
|
|
28
|
+
],
|
|
29
|
+
surfaces: ['cli'],
|
|
30
|
+
hardware: ['consumer'],
|
|
31
|
+
enabled: true
|
|
32
|
+
};
|
|
33
|
+
export default descriptor;
|
|
34
|
+
//# sourceMappingURL=hq.install.descriptor.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hq.install.descriptor.js","sourceRoot":"","sources":["../../../src/cli/install/hq.install.descriptor.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAIH,MAAM,UAAU,GAA8B;IAC7C,IAAI,EAAE,aAAa;IACnB,EAAE,EAAE,YAAY;IAChB,IAAI,EAAE,SAAS;IACf,WAAW,EAAE,+EAA+E;IAC5F,KAAK,EAAE,IAAI;IACX,SAAS,EAAE;QACV;YACC,IAAI,EAAE,SAAS;YACf,WAAW,EACV,uFAAuF;YACxF,QAAQ,EAAE,KAAK;SACf;KACD;IACD,OAAO,EAAE;QACR,EAAE,KAAK,EAAE,QAAQ,EAAE,WAAW,EAAE,6CAA6C,EAAE;QAC/E;YACC,KAAK,EAAE,iBAAiB;YACxB,WAAW,EAAE,gEAAgE;SAC7E;QACD,EAAE,KAAK,EAAE,WAAW,EAAE,WAAW,EAAE,iDAAiD,EAAE;QACtF,EAAE,KAAK,EAAE,SAAS,EAAE,WAAW,EAAE,2CAA2C,EAAE;QAC9E,EAAE,KAAK,EAAE,eAAe,EAAE,WAAW,EAAE,gBAAgB,EAAE;KACzD;IACD,QAAQ,EAAE,CAAC,KAAK,CAAC;IACjB,QAAQ,EAAE,CAAC,UAAU,CAAC;IACtB,OAAO,EAAE,IAAI;CACb,CAAC;AAEF,eAAe,UAAU,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { CommandOptions, CommandContext } from '@vibesdotdev/cli';
|
|
2
|
+
declare const _default: {
|
|
3
|
+
execute(inputArgs: CommandOptions, inputOptions: CommandOptions, context: CommandContext): Promise<void>;
|
|
4
|
+
};
|
|
5
|
+
export default _default;
|
|
6
|
+
//# sourceMappingURL=hq.install.impl.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hq.install.impl.d.ts","sourceRoot":"","sources":["../../../src/cli/install/hq.install.impl.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;;uBA4C7C,cAAc,gBAAgB,cAAc,WAAW,cAAc,GAAG,OAAO,CAAC,IAAI,CAAC;;AAD/G,wBAyFE"}
|