@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,23 @@
|
|
|
1
|
+
import { writeStdoutLine } from '@vibesdotdev/cli/output';
|
|
2
|
+
import { parseCliArguments, parseCliOptions } from "../schemas/input.js";
|
|
3
|
+
import { CapabilityError } from '@vibesdotdev/kernel';
|
|
4
|
+
import { getChannel, persistChannel } from "../../os-wall/channels.wall.js";
|
|
5
|
+
export default {
|
|
6
|
+
async execute(inputArgs, inputOptions, context) {
|
|
7
|
+
const args = parseCliArguments(inputArgs);
|
|
8
|
+
const _opts = parseCliOptions(inputOptions);
|
|
9
|
+
const { runtime } = context;
|
|
10
|
+
const id = String(args.id ?? '');
|
|
11
|
+
const state = String(args.state ?? '');
|
|
12
|
+
if (!id || !['on', 'off'].includes(state)) {
|
|
13
|
+
throw new CapabilityError('A channel id and <on|off> state are required.', 'INVALID_INPUT', { recoveryHint: 'Usage: os channel enable <id> <on|off>' });
|
|
14
|
+
}
|
|
15
|
+
const channel = await getChannel(runtime, id);
|
|
16
|
+
if (!channel) {
|
|
17
|
+
throw new CapabilityError(`channel "${id}" not found`, 'NOT_FOUND');
|
|
18
|
+
}
|
|
19
|
+
await persistChannel(runtime, { ...channel, enabled: state === 'on' });
|
|
20
|
+
await writeStdoutLine(context.runtime, `Channel "${id}" ${state === 'on' ? 'enabled' : 'disabled'}.`);
|
|
21
|
+
}
|
|
22
|
+
};
|
|
23
|
+
//# sourceMappingURL=hq.channel.enable.impl.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hq.channel.enable.impl.js","sourceRoot":"","sources":["../../../src/cli/channel/hq.channel.enable.impl.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAAE,iBAAiB,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAGzE,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AACtD,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAA;AAE3E,eAAe;IACd,KAAK,CAAC,OAAO,CAAC,SAAyB,EAAE,YAA4B,EAAE,OAAuB;QAC7F,MAAM,IAAI,GAAG,iBAAiB,CAAC,SAAS,CAAC,CAAC;QAC1C,MAAM,KAAK,GAAG,eAAe,CAAC,YAAY,CAAC,CAAC;QAC5C,MAAM,EAAE,OAAO,EAAE,GAAG,OAAO,CAAC;QAC5B,MAAM,EAAE,GAAG,MAAM,CAAC,IAAI,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC;QACjC,MAAM,KAAK,GAAG,MAAM,CAAC,IAAI,CAAC,KAAK,IAAI,EAAE,CAAC,CAAC;QAEvC,IAAI,CAAC,EAAE,IAAI,CAAC,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC,QAAQ,CAAC,KAAK,CAAC,EAAE,CAAC;YAC3C,MAAM,IAAI,eAAe,CACxB,+CAA+C,EAC/C,eAAe,EACf,EAAE,YAAY,EAAE,wCAAwC,EAAE,CAC1D,CAAC;QACH,CAAC;QAED,MAAM,OAAO,GAAG,MAAM,UAAU,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC;QAC9C,IAAI,CAAC,OAAO,EAAE,CAAC;YACd,MAAM,IAAI,eAAe,CAAC,YAAY,EAAE,aAAa,EAAE,WAAW,CAAC,CAAC;QACrE,CAAC;QAED,MAAM,cAAc,CAAC,OAAO,EAAE,EAAE,GAAG,OAAO,EAAE,OAAO,EAAE,KAAK,KAAK,IAAI,EAAE,CAAC,CAAC;QACvE,MAAM,eAAe,CAAC,OAAO,CAAC,OAAO,EAAE,YAAY,EAAE,KAAK,KAAK,KAAK,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,UAAU,GAAG,CAAC,CAAC;IACvG,CAAC;CACD,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
readonly id: "hq.channel.fire";
|
|
3
|
+
readonly kind: "cli/command";
|
|
4
|
+
readonly name: "fire";
|
|
5
|
+
readonly description: "Manually trigger a channel immediately (ignores schedule)";
|
|
6
|
+
readonly group: "hq.channel";
|
|
7
|
+
readonly arguments: [{
|
|
8
|
+
readonly name: "id";
|
|
9
|
+
readonly description: "Channel ID to fire";
|
|
10
|
+
readonly required: true;
|
|
11
|
+
}];
|
|
12
|
+
readonly surfaces: ["cli"];
|
|
13
|
+
readonly hardware: readonly ["consumer"];
|
|
14
|
+
readonly enabled: true;
|
|
15
|
+
};
|
|
16
|
+
export default _default;
|
|
17
|
+
//# sourceMappingURL=hq.channel.fire.descriptor.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hq.channel.fire.descriptor.d.ts","sourceRoot":"","sources":["../../../src/cli/channel/hq.channel.fire.descriptor.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAEA,wBAUG"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { createRuntimeAsset } from '@vibesdotdev/kernel';
|
|
2
|
+
export default createRuntimeAsset({
|
|
3
|
+
id: 'hq.channel.fire',
|
|
4
|
+
kind: 'cli/command',
|
|
5
|
+
name: 'fire',
|
|
6
|
+
description: 'Manually trigger a channel immediately (ignores schedule)',
|
|
7
|
+
group: 'hq.channel',
|
|
8
|
+
arguments: [{ name: 'id', description: 'Channel ID to fire', required: true }],
|
|
9
|
+
surfaces: ['cli'],
|
|
10
|
+
hardware: ['consumer'],
|
|
11
|
+
enabled: true
|
|
12
|
+
});
|
|
13
|
+
//# sourceMappingURL=hq.channel.fire.descriptor.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hq.channel.fire.descriptor.js","sourceRoot":"","sources":["../../../src/cli/channel/hq.channel.fire.descriptor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAEzD,eAAe,kBAAkB,CAAC;IACjC,EAAE,EAAE,iBAAiB;IACrB,IAAI,EAAE,aAAa;IACnB,IAAI,EAAE,MAAM;IACZ,WAAW,EAAE,2DAA2D;IACxE,KAAK,EAAE,YAAY;IACnB,SAAS,EAAE,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,WAAW,EAAE,oBAAoB,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IAC9E,QAAQ,EAAE,CAAC,KAAK,CAAC;IACjB,QAAQ,EAAE,CAAC,UAAU,CAAC;IACtB,OAAO,EAAE,IAAI;CACb,CAAC,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { CommandOptions } from '@vibesdotdev/cli';
|
|
2
|
+
import type { CommandContext } from '@vibesdotdev/cli';
|
|
3
|
+
declare const _default: {
|
|
4
|
+
execute(inputArgs: CommandOptions, inputOptions: CommandOptions, context: CommandContext): Promise<void>;
|
|
5
|
+
};
|
|
6
|
+
export default _default;
|
|
7
|
+
//# sourceMappingURL=hq.channel.fire.impl.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hq.channel.fire.impl.d.ts","sourceRoot":"","sources":["../../../src/cli/channel/hq.channel.fire.impl.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;;uBAK7B,cAAc,gBAAgB,cAAc,WAAW,cAAc,GAAG,OAAO,CAAC,IAAI,CAAC;;AAD/G,wBA0BE"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { writeStdoutLine } from '@vibesdotdev/cli/output';
|
|
2
|
+
import { parseCliArguments, parseCliOptions } from "../schemas/input.js";
|
|
3
|
+
import { CapabilityError } from '@vibesdotdev/kernel';
|
|
4
|
+
import { getChannel, dispatchHandler } from "../../os-wall/channels.wall.js";
|
|
5
|
+
export default {
|
|
6
|
+
async execute(inputArgs, inputOptions, context) {
|
|
7
|
+
const args = parseCliArguments(inputArgs);
|
|
8
|
+
const _opts = parseCliOptions(inputOptions);
|
|
9
|
+
const { runtime } = context;
|
|
10
|
+
const id = String(args.id ?? '');
|
|
11
|
+
if (!id) {
|
|
12
|
+
throw new CapabilityError('channel id is required', 'INVALID_INPUT');
|
|
13
|
+
}
|
|
14
|
+
const channel = await getChannel(runtime, id);
|
|
15
|
+
if (!channel) {
|
|
16
|
+
throw new CapabilityError(`channel "${id}" not found`, 'NOT_FOUND');
|
|
17
|
+
}
|
|
18
|
+
await writeStdoutLine(context.runtime, `Firing channel: ${id} (scope: ${channel.scope})`);
|
|
19
|
+
const result = await dispatchHandler(runtime, channel);
|
|
20
|
+
if (!result.success) {
|
|
21
|
+
throw new CapabilityError(`Channel "${id}" failed to fire: ${result.error}`, 'INTERNAL');
|
|
22
|
+
}
|
|
23
|
+
await writeStdoutLine(context.runtime, `Done in ${result.durationMs}ms`);
|
|
24
|
+
}
|
|
25
|
+
};
|
|
26
|
+
//# sourceMappingURL=hq.channel.fire.impl.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hq.channel.fire.impl.js","sourceRoot":"","sources":["../../../src/cli/channel/hq.channel.fire.impl.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAAE,iBAAiB,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAGzE,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AACtD,OAAO,EAAE,UAAU,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAC;AAE7E,eAAe;IACd,KAAK,CAAC,OAAO,CAAC,SAAyB,EAAE,YAA4B,EAAE,OAAuB;QAC7F,MAAM,IAAI,GAAG,iBAAiB,CAAC,SAAS,CAAC,CAAC;QAC1C,MAAM,KAAK,GAAG,eAAe,CAAC,YAAY,CAAC,CAAC;QAC5C,MAAM,EAAE,OAAO,EAAE,GAAG,OAAO,CAAC;QAC5B,MAAM,EAAE,GAAG,MAAM,CAAC,IAAI,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC;QACjC,IAAI,CAAC,EAAE,EAAE,CAAC;YACT,MAAM,IAAI,eAAe,CAAC,wBAAwB,EAAE,eAAe,CAAC,CAAC;QACtE,CAAC;QAED,MAAM,OAAO,GAAG,MAAM,UAAU,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC;QAC9C,IAAI,CAAC,OAAO,EAAE,CAAC;YACd,MAAM,IAAI,eAAe,CAAC,YAAY,EAAE,aAAa,EAAE,WAAW,CAAC,CAAC;QACrE,CAAC;QAED,MAAM,eAAe,CAAC,OAAO,CAAC,OAAO,EAAE,mBAAmB,EAAE,YAAY,OAAO,CAAC,KAAK,GAAG,CAAC,CAAC;QAC1F,MAAM,MAAM,GAAG,MAAM,eAAe,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;QAEvD,IAAI,CAAC,MAAM,CAAC,OAAO,EAAE,CAAC;YACrB,MAAM,IAAI,eAAe,CACxB,YAAY,EAAE,qBAAqB,MAAM,CAAC,KAAK,EAAE,EACjD,UAAU,CACV,CAAC;QACH,CAAC;QACD,MAAM,eAAe,CAAC,OAAO,CAAC,OAAO,EAAE,WAAW,MAAM,CAAC,UAAU,IAAI,CAAC,CAAC;IAC1E,CAAC;CACD,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
readonly id: "hq.channel.list";
|
|
3
|
+
readonly kind: "cli/command";
|
|
4
|
+
readonly name: "list";
|
|
5
|
+
readonly description: "List all registered channels with schedule and status";
|
|
6
|
+
readonly group: "hq.channel";
|
|
7
|
+
readonly options: [{
|
|
8
|
+
readonly flags: "--json";
|
|
9
|
+
readonly description: "Output JSON";
|
|
10
|
+
}];
|
|
11
|
+
readonly surfaces: ["cli"];
|
|
12
|
+
readonly hardware: readonly ["consumer"];
|
|
13
|
+
readonly enabled: true;
|
|
14
|
+
};
|
|
15
|
+
export default _default;
|
|
16
|
+
//# sourceMappingURL=hq.channel.list.descriptor.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hq.channel.list.descriptor.d.ts","sourceRoot":"","sources":["../../../src/cli/channel/hq.channel.list.descriptor.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAEA,wBAUG"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { createRuntimeAsset } from '@vibesdotdev/kernel';
|
|
2
|
+
export default createRuntimeAsset({
|
|
3
|
+
id: 'hq.channel.list',
|
|
4
|
+
kind: 'cli/command',
|
|
5
|
+
name: 'list',
|
|
6
|
+
description: 'List all registered channels with schedule and status',
|
|
7
|
+
group: 'hq.channel',
|
|
8
|
+
options: [{ flags: '--json', description: 'Output JSON' }],
|
|
9
|
+
surfaces: ['cli'],
|
|
10
|
+
hardware: ['consumer'],
|
|
11
|
+
enabled: true
|
|
12
|
+
});
|
|
13
|
+
//# sourceMappingURL=hq.channel.list.descriptor.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hq.channel.list.descriptor.js","sourceRoot":"","sources":["../../../src/cli/channel/hq.channel.list.descriptor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAEzD,eAAe,kBAAkB,CAAC;IACjC,EAAE,EAAE,iBAAiB;IACrB,IAAI,EAAE,aAAa;IACnB,IAAI,EAAE,MAAM;IACZ,WAAW,EAAE,uDAAuD;IACpE,KAAK,EAAE,YAAY;IACnB,OAAO,EAAE,CAAC,EAAE,KAAK,EAAE,QAAQ,EAAE,WAAW,EAAE,aAAa,EAAE,CAAC;IAC1D,QAAQ,EAAE,CAAC,KAAK,CAAC;IACjB,QAAQ,EAAE,CAAC,UAAU,CAAC;IACtB,OAAO,EAAE,IAAI;CACb,CAAC,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { CommandOptions } from '@vibesdotdev/cli';
|
|
2
|
+
import type { CommandContext } from '@vibesdotdev/cli';
|
|
3
|
+
declare const _default: {
|
|
4
|
+
execute(inputArgs: CommandOptions, inputOptions: CommandOptions, context: CommandContext): Promise<void>;
|
|
5
|
+
};
|
|
6
|
+
export default _default;
|
|
7
|
+
//# sourceMappingURL=hq.channel.list.impl.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hq.channel.list.impl.d.ts","sourceRoot":"","sources":["../../../src/cli/channel/hq.channel.list.impl.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;;uBAI7B,cAAc,gBAAgB,cAAc,WAAW,cAAc,GAAG,OAAO,CAAC,IAAI,CAAC;;AAD/G,wBA4BE"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { writeStdoutLine } from '@vibesdotdev/cli/output';
|
|
2
|
+
import { writeJson } from '@vibesdotdev/cli/output';
|
|
3
|
+
import { parseCliArguments, parseCliOptions } from "../schemas/input.js";
|
|
4
|
+
import { listChannels } from "../../os-wall/channels.wall.js";
|
|
5
|
+
export default {
|
|
6
|
+
async execute(inputArgs, inputOptions, context) {
|
|
7
|
+
const _args = parseCliArguments(inputArgs);
|
|
8
|
+
const opts = parseCliOptions(inputOptions);
|
|
9
|
+
const channels = await listChannels(context.runtime);
|
|
10
|
+
if (opts.json) {
|
|
11
|
+
await writeJson(context.runtime, channels);
|
|
12
|
+
return;
|
|
13
|
+
}
|
|
14
|
+
if (channels.length === 0) {
|
|
15
|
+
await writeStdoutLine(context.runtime, 'No channels registered.');
|
|
16
|
+
return;
|
|
17
|
+
}
|
|
18
|
+
for (const ch of channels) {
|
|
19
|
+
const status = ch.enabled ? 'enabled' : 'disabled';
|
|
20
|
+
const schedule = ch.schedule.type === 'interval'
|
|
21
|
+
? `every ${Math.round(ch.schedule.ms / 60000)}m`
|
|
22
|
+
: ch.schedule.type === 'cron'
|
|
23
|
+
? `cron: ${ch.schedule.expression}`
|
|
24
|
+
: `rrule: ${ch.schedule.rrule}`;
|
|
25
|
+
const next = ch.nextScheduled ? new Date(ch.nextScheduled).toLocaleString() : 'not scheduled';
|
|
26
|
+
await writeStdoutLine(context.runtime, `${ch.id} [${status}] — ${schedule} — next: ${next} — scope: ${ch.scope}`);
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
};
|
|
30
|
+
//# sourceMappingURL=hq.channel.list.impl.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hq.channel.list.impl.js","sourceRoot":"","sources":["../../../src/cli/channel/hq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AE;oBACnC,CAAC,CAAC,UAAU,EAAE,CAAC,QAAQ,CAAC,KAAK,EAAE,CAAC;YACnC,MAAM,IAAI,GAAG,EAAE,CAAC,aAAa,CAAC,CAAC,CAAC,IAAI,IAAI,CAAC,EAAE,CAAC,aAAa,CAAC,CAAC,cAAc,EAAE,CAAC,CAAC,CAAC,eAAe,CAAC;YAC9F,MAAM,eAAe,CAAC,OAAO,CAAC,OAAO,EAAE,GAAG,EAAE,CAAC,EAAE,KAAK,MAAM,OAAO,QAAQ,YAAY,IAAI,aAAa,EAAE,CAAC,KAAK,EAAE,CAAC,CAAC;QACnH,CAAC;IACF,CAAC;CACD,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
readonly id: "hq.channel.logs";
|
|
3
|
+
readonly kind: "cli/command";
|
|
4
|
+
readonly name: "logs";
|
|
5
|
+
readonly description: "Stream or print recent logs for a channel";
|
|
6
|
+
readonly group: "hq.channel";
|
|
7
|
+
readonly arguments: [{
|
|
8
|
+
readonly name: "id";
|
|
9
|
+
readonly description: "Channel ID";
|
|
10
|
+
readonly required: true;
|
|
11
|
+
}];
|
|
12
|
+
readonly options: [{
|
|
13
|
+
readonly flags: "--lines <n>";
|
|
14
|
+
readonly description: "Number of tail lines to show (default: 50)";
|
|
15
|
+
}, {
|
|
16
|
+
readonly flags: "--follow";
|
|
17
|
+
readonly description: "Stream log output (like tail -f)";
|
|
18
|
+
}];
|
|
19
|
+
readonly surfaces: ["cli"];
|
|
20
|
+
readonly hardware: readonly ["consumer"];
|
|
21
|
+
readonly enabled: true;
|
|
22
|
+
};
|
|
23
|
+
export default _default;
|
|
24
|
+
//# sourceMappingURL=hq.channel.logs.descriptor.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hq.channel.logs.descriptor.d.ts","sourceRoot":"","sources":["../../../src/cli/channel/hq.channel.logs.descriptor.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAEA,wBAcG"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { createRuntimeAsset } from '@vibesdotdev/kernel';
|
|
2
|
+
export default createRuntimeAsset({
|
|
3
|
+
id: 'hq.channel.logs',
|
|
4
|
+
kind: 'cli/command',
|
|
5
|
+
name: 'logs',
|
|
6
|
+
description: 'Stream or print recent logs for a channel',
|
|
7
|
+
group: 'hq.channel',
|
|
8
|
+
arguments: [{ name: 'id', description: 'Channel ID', required: true }],
|
|
9
|
+
options: [
|
|
10
|
+
{ flags: '--lines <n>', description: 'Number of tail lines to show (default: 50)' },
|
|
11
|
+
{ flags: '--follow', description: 'Stream log output (like tail -f)' }
|
|
12
|
+
],
|
|
13
|
+
surfaces: ['cli'],
|
|
14
|
+
hardware: ['consumer'],
|
|
15
|
+
enabled: true
|
|
16
|
+
});
|
|
17
|
+
//# sourceMappingURL=hq.channel.logs.descriptor.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hq.channel.logs.descriptor.js","sourceRoot":"","sources":["../../../src/cli/channel/hq.channel.logs.descriptor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAEzD,eAAe,kBAAkB,CAAC;IACjC,EAAE,EAAE,iBAAiB;IACrB,IAAI,EAAE,aAAa;IACnB,IAAI,EAAE,MAAM;IACZ,WAAW,EAAE,2CAA2C;IACxD,KAAK,EAAE,YAAY;IACnB,SAAS,EAAE,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,WAAW,EAAE,YAAY,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IACtE,OAAO,EAAE;QACR,EAAE,KAAK,EAAE,aAAa,EAAE,WAAW,EAAE,4CAA4C,EAAE;QACnF,EAAE,KAAK,EAAE,UAAU,EAAE,WAAW,EAAE,kCAAkC,EAAE;KACtE;IACD,QAAQ,EAAE,CAAC,KAAK,CAAC;IACjB,QAAQ,EAAE,CAAC,UAAU,CAAC;IACtB,OAAO,EAAE,IAAI;CACb,CAAC,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { CommandContext, CommandOptions } from '@vibesdotdev/cli';
|
|
2
|
+
import type { QueryOptions } from '@vibesdotdev/storage/interfaces/record';
|
|
3
|
+
import { type OsChannelExecutionLogEntry } from '@vibesdotdev/os/channels/hq.channel-execution-logs.record.descriptor';
|
|
4
|
+
export declare function channelLogListOptions(channelId: string): QueryOptions<OsChannelExecutionLogEntry>;
|
|
5
|
+
declare const _default: {
|
|
6
|
+
execute(inputArgs: CommandOptions, inputOptions: CommandOptions, context: CommandContext): Promise<void>;
|
|
7
|
+
};
|
|
8
|
+
export default _default;
|
|
9
|
+
//# sourceMappingURL=hq.channel.logs.impl.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hq.channel.logs.impl.d.ts","sourceRoot":"","sources":["../../../src/cli/channel/hq.channel.logs.impl.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAEvE,OAAO,KAAK,EAA0B,YAAY,EAAE,MAAM,wCAAwC,CAAC;AAEnG,OAAO,EAAoC,KAAK,0BAA0B,EAAE,MAAM,sEAAsE,CAAC;AAMzJ,wBAAgB,qBAAqB,CAAC,SAAS,EAAE,MAAM,GAAG,YAAY,CAAC,0BAA0B,CAAC,CAEjG;;uBAEyB,cAAc,gBAAgB,cAAc,WAAW,cAAc,GAAG,OAAO,CAAC,IAAI,CAAC;;AAD/G,wBA+CE"}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { writeStdoutLine } from '@vibesdotdev/cli/output';
|
|
2
|
+
import { CapabilityError, getRuntimeHostSignals, settle } from '@vibesdotdev/kernel';
|
|
3
|
+
import { OsChannelExecutionLogEntrySchema } from '@vibesdotdev/os/channels/hq.channel-execution-logs.record.descriptor';
|
|
4
|
+
import { parseCliArguments, parseCliOptions } from "../schemas/input.js";
|
|
5
|
+
import { JsonObjectSchema } from '@vibesdotdev/kernel/schemas/json';
|
|
6
|
+
import * as z from 'zod/v4';
|
|
7
|
+
const RecordEventSchema = z.object({ recordKind: z.string(), data: JsonObjectSchema });
|
|
8
|
+
export function channelLogListOptions(channelId) {
|
|
9
|
+
return { where: { channelId }, orderBy: { timestamp: 'asc' } };
|
|
10
|
+
}
|
|
11
|
+
export default {
|
|
12
|
+
async execute(inputArgs, inputOptions, context) {
|
|
13
|
+
const { id } = parseCliArguments(inputArgs);
|
|
14
|
+
const { lines = 50, follow } = parseCliOptions(inputOptions);
|
|
15
|
+
if (!id)
|
|
16
|
+
throw new CapabilityError('channel id is required', 'INVALID_INPUT');
|
|
17
|
+
const { runtime } = context;
|
|
18
|
+
const record = await runtime.query('storage/record')
|
|
19
|
+
.withId('os.channel-execution-logs').enabled().resolve();
|
|
20
|
+
const seen = new Set();
|
|
21
|
+
const print = async (entry) => {
|
|
22
|
+
if (entry.channelId !== id || seen.has(entry.id))
|
|
23
|
+
return;
|
|
24
|
+
seen.add(entry.id);
|
|
25
|
+
await writeStdoutLine(runtime, `[${entry.timestamp}] ${entry.message}`);
|
|
26
|
+
};
|
|
27
|
+
const stop = Promise.withResolvers();
|
|
28
|
+
const detach = [];
|
|
29
|
+
const outcome = await settle(async () => {
|
|
30
|
+
if (follow) {
|
|
31
|
+
const signals = await getRuntimeHostSignals(runtime);
|
|
32
|
+
const ended = () => stop.resolve();
|
|
33
|
+
runtime.lifecycle.signal.addEventListener('abort', ended, { once: true });
|
|
34
|
+
detach.push(() => runtime.lifecycle.signal.removeEventListener('abort', ended));
|
|
35
|
+
if (runtime.lifecycle.signal.aborted)
|
|
36
|
+
stop.resolve();
|
|
37
|
+
for (const signal of ['SIGINT', 'SIGTERM'])
|
|
38
|
+
detach.push(signals.subscribe(signal, ended));
|
|
39
|
+
// The record owner emits committed rows on this bus. Subscribe before the
|
|
40
|
+
// snapshot and deduplicate by owner ids, so a concurrent create is not lost.
|
|
41
|
+
detach.push(runtime.hooks('storage/record').on('afterCreate', async (event) => {
|
|
42
|
+
try {
|
|
43
|
+
const parsed = RecordEventSchema.parse(event);
|
|
44
|
+
if (parsed.recordKind === 'os.channel-execution-logs')
|
|
45
|
+
await print(OsChannelExecutionLogEntrySchema.parse(parsed.data));
|
|
46
|
+
}
|
|
47
|
+
catch (cause) {
|
|
48
|
+
stop.reject(cause);
|
|
49
|
+
}
|
|
50
|
+
}));
|
|
51
|
+
}
|
|
52
|
+
const entries = (await record.list(channelLogListOptions(id))).items.map(entry => OsChannelExecutionLogEntrySchema.parse(entry));
|
|
53
|
+
// Snapshot rows outside the requested tail are seen too: they must not replay.
|
|
54
|
+
const tail = lines === 0 ? [] : entries.slice(-lines);
|
|
55
|
+
for (const entry of entries.slice(0, entries.length - tail.length))
|
|
56
|
+
seen.add(entry.id);
|
|
57
|
+
if (!entries.length && !follow)
|
|
58
|
+
throw new CapabilityError(`No logs found for channel "${id}"`, 'NOT_FOUND');
|
|
59
|
+
for (const entry of tail)
|
|
60
|
+
await print(entry);
|
|
61
|
+
if (follow)
|
|
62
|
+
await stop.promise;
|
|
63
|
+
});
|
|
64
|
+
const released = await Promise.all(detach.reverse().map(release => settle(release)));
|
|
65
|
+
const failures = released.flatMap(result => result.ok ? [] : [result.cause]);
|
|
66
|
+
if (!outcome.ok)
|
|
67
|
+
failures.unshift(outcome.cause);
|
|
68
|
+
if (failures.length === 1)
|
|
69
|
+
throw failures[0];
|
|
70
|
+
if (failures.length > 1)
|
|
71
|
+
throw new AggregateError(failures, 'Channel log read/follow or cleanup failed');
|
|
72
|
+
}
|
|
73
|
+
};
|
|
74
|
+
//# sourceMappingURL=hq.channel.logs.impl.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hq.channel.logs.impl.js","sourceRoot":"","sources":["../../../src/cli/channel/hq.channel.logs.impl.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB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AC;QACH,MAAM,QAAQ,GAAG,MAAM,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,OAAO,EAAE,CAAC,GAAG,CAAC,OAAO,CAAC,EAAE,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;QACrF,MAAM,QAAQ,GAAG,QAAQ,CAAC,OAAO,CAAC,MAAM,CAAC,EAAE,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC;QAC7E,IAAI,CAAC,OAAO,CAAC,EAAE;YAAE,QAAQ,CAAC,OAAO,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;QACjD,IAAI,QAAQ,CAAC,MAAM,KAAK,CAAC;YAAE,MAAM,QAAQ,CAAC,CAAC,CAAC,CAAC;QAC7C,IAAI,QAAQ,CAAC,MAAM,GAAG,CAAC;YAAE,MAAM,IAAI,cAAc,CAAC,QAAQ,EAAE,2CAA2C,CAAC,CAAC;IAC1G,CAAC;CACD,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Announce this invocation's resolved friction backend on the handed output.
|
|
3
|
+
* No process-global flag can suppress a different runtime's backend hint.
|
|
4
|
+
*/
|
|
5
|
+
import { type FrictionRuntime } from '../../friction/store.ts';
|
|
6
|
+
export declare function printFrictionStoreHintOnce(runtime: FrictionRuntime): Promise<void>;
|
|
7
|
+
//# sourceMappingURL=_store-hint.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"_store-hint.d.ts","sourceRoot":"","sources":["../../../src/cli/friction/_store-hint.ts"],"names":[],"mappings":"AACA;;;GAGG;AAEH,OAAO,EAAkB,KAAK,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAI/E,wBAAsB,0BAA0B,CAAC,OAAO,EAAE,eAAe,GAAG,OAAO,CAAC,IAAI,CAAC,CAKxF"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { commandWriters } from '@vibesdotdev/cli/output';
|
|
2
|
+
/**
|
|
3
|
+
* Announce this invocation's resolved friction backend on the handed output.
|
|
4
|
+
* No process-global flag can suppress a different runtime's backend hint.
|
|
5
|
+
*/
|
|
6
|
+
import { getFrictionDir } from "../../friction/store.js";
|
|
7
|
+
export async function printFrictionStoreHintOnce(runtime) {
|
|
8
|
+
// A store directory that cannot be resolved fails here, typed by its
|
|
9
|
+
// owner, before the operation that needs it.
|
|
10
|
+
const dir = await getFrictionDir(runtime);
|
|
11
|
+
(await commandWriters(runtime)).log(`friction store: ${dir} (override with VIBES_FRICTION_DIR)`);
|
|
12
|
+
}
|
|
13
|
+
//# sourceMappingURL=_store-hint.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"_store-hint.js","sourceRoot":"","sources":["../../../src/cli/friction/_store-hint.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AACzD;;;GAGG;AAEH,OAAO,EAAE,cAAc,EAAwB,MAAM,yBAAyB,CAAC;AAI/E,MAAM,CAAC,KAAK,UAAU,0BAA0B,CAAC,OAAwB;IACxE,qEAAqE;IACrE,6CAA6C;IAC7C,MAAM,GAAG,GAAG,MAAM,cAAc,CAAC,OAAO,CAAC,CAAC;IAC1C,CAAC,MAAM,cAAc,CAAC,OAAO,CAAC,CAAC,CAAC,GAAG,CAAC,mBAAmB,GAAG,qCAAqC,CAAC,CAAC;AAClG,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
readonly id: "friction";
|
|
3
|
+
readonly kind: "cli/group";
|
|
4
|
+
readonly name: "friction";
|
|
5
|
+
readonly description: "Emit, list, and inspect friction signals — the agent/user-friction intake feeding the discovery loop";
|
|
6
|
+
readonly surfaces: ["cli"];
|
|
7
|
+
readonly hardware: readonly ["consumer"];
|
|
8
|
+
readonly enabled: true;
|
|
9
|
+
};
|
|
10
|
+
export default _default;
|
|
11
|
+
//# sourceMappingURL=hq.friction.cli-group.descriptor.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hq.friction.cli-group.descriptor.d.ts","sourceRoot":"","sources":["../../../src/cli/friction/hq.friction.cli-group.descriptor.ts"],"names":[],"mappings":";;;;;;;;;AAEA,wBAaG"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { createRuntimeAsset } from '@vibesdotdev/kernel';
|
|
2
|
+
export default createRuntimeAsset({
|
|
3
|
+
// Top-level on purpose (no `parent: 'hq'`, unlike the channel/surface siblings):
|
|
4
|
+
// `vibes friction emit` is the org-wide work-intake verb documented across
|
|
5
|
+
// runbooks, routines, and docs-generated/commands/friction — same pattern as
|
|
6
|
+
// the top-level `work` group it feeds. Nesting it under `hq` would break them.
|
|
7
|
+
id: 'friction',
|
|
8
|
+
kind: 'cli/group',
|
|
9
|
+
name: 'friction',
|
|
10
|
+
description: 'Emit, list, and inspect friction signals — the agent/user-friction intake feeding the discovery loop',
|
|
11
|
+
surfaces: ['cli'],
|
|
12
|
+
hardware: ['consumer'],
|
|
13
|
+
enabled: true
|
|
14
|
+
});
|
|
15
|
+
//# sourceMappingURL=hq.friction.cli-group.descriptor.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hq.friction.cli-group.descriptor.js","sourceRoot":"","sources":["../../../src/cli/friction/hq.friction.cli-group.descriptor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAEzD,eAAe,kBAAkB,CAAC;IACjC,iFAAiF;IACjF,2EAA2E;IAC3E,6EAA6E;IAC7E,+EAA+E;IAC/E,EAAE,EAAE,UAAU;IACd,IAAI,EAAE,WAAW;IACjB,IAAI,EAAE,UAAU;IAChB,WAAW,EACV,sGAAsG;IACvG,QAAQ,EAAE,CAAC,KAAK,CAAC;IACjB,QAAQ,EAAE,CAAC,UAAU,CAAC;IACtB,OAAO,EAAE,IAAI;CACb,CAAC,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { CommandOptions } from '@vibesdotdev/cli';
|
|
2
|
+
import { type VibesRuntime } from '@vibesdotdev/kernel';
|
|
3
|
+
import type { FrictionDispositionKind } from '../../friction/schemas/disposition.ts';
|
|
4
|
+
export declare function executeFrictionDisposition(runtime: VibesRuntime, inputArgs: CommandOptions, inputOptions: CommandOptions, disposition: FrictionDispositionKind): Promise<void>;
|
|
5
|
+
//# sourceMappingURL=hq.friction.disposition.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hq.friction.disposition.d.ts","sourceRoot":"","sources":["../../../src/cli/friction/hq.friction.disposition.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAGvD,OAAO,EAAmB,KAAK,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAOzE,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,uCAAuC,CAAC;AAmBrF,wBAAsB,0BAA0B,CAC/C,OAAO,EAAE,YAAY,EACrB,SAAS,EAAE,cAAc,EACzB,YAAY,EAAE,cAAc,EAC5B,WAAW,EAAE,uBAAuB,GAClC,OAAO,CAAC,IAAI,CAAC,CA4Cf"}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { parseCliArguments, parseCliOptions } from "../schemas/input.js";
|
|
2
|
+
import { writeStdoutLine, commandWriters } from '@vibesdotdev/cli/output';
|
|
3
|
+
import { writeJson } from '@vibesdotdev/cli/output';
|
|
4
|
+
import { CapabilityError } from '@vibesdotdev/kernel';
|
|
5
|
+
import { vibesLink } from '@vibesdotdev/shared/schemas';
|
|
6
|
+
import * as z from 'zod/v4';
|
|
7
|
+
import { appendDisposition, getFrictionSignal } from "../../friction/store.js";
|
|
8
|
+
import { frictionActorId } from "./invocation.js";
|
|
9
|
+
function requiredId(args) {
|
|
10
|
+
const id = args.id ?? '';
|
|
11
|
+
if (!id)
|
|
12
|
+
throw new CapabilityError('friction signal id is required', 'INVALID_INPUT');
|
|
13
|
+
return id;
|
|
14
|
+
}
|
|
15
|
+
function optionalNote(opts) {
|
|
16
|
+
const note = opts.note ?? '';
|
|
17
|
+
return note || undefined;
|
|
18
|
+
}
|
|
19
|
+
function workItemIds(opts) {
|
|
20
|
+
const raw = opts.workItem;
|
|
21
|
+
return raw.map((value) => z.uuid().parse(value));
|
|
22
|
+
}
|
|
23
|
+
export async function executeFrictionDisposition(runtime, inputArgs, inputOptions, disposition) {
|
|
24
|
+
const args = parseCliArguments(inputArgs);
|
|
25
|
+
const opts = parseCliOptions(inputOptions);
|
|
26
|
+
try {
|
|
27
|
+
const signalId = requiredId(args);
|
|
28
|
+
if (!(await getFrictionSignal(runtime, signalId))) {
|
|
29
|
+
throw new CapabilityError(`No friction signal found for "${signalId}"`, 'NOT_FOUND');
|
|
30
|
+
}
|
|
31
|
+
const duplicateOf = opts.duplicateOf ?? '';
|
|
32
|
+
if (duplicateOf && !(await getFrictionSignal(runtime, duplicateOf))) {
|
|
33
|
+
throw new CapabilityError(`No friction signal found for duplicate target "${duplicateOf}"`, 'NOT_FOUND');
|
|
34
|
+
}
|
|
35
|
+
const workItems = workItemIds(opts);
|
|
36
|
+
const actualDisposition = duplicateOf ? 'duplicate' : disposition;
|
|
37
|
+
const links = [
|
|
38
|
+
...(duplicateOf
|
|
39
|
+
? [vibesLink('friction-signal', duplicateOf, 'friction', 'relates')]
|
|
40
|
+
: []),
|
|
41
|
+
...workItems.map((workItemId) => vibesLink('work-item', workItemId, 'friction', 'tracks'))
|
|
42
|
+
];
|
|
43
|
+
const row = await appendDisposition(runtime, {
|
|
44
|
+
signalId,
|
|
45
|
+
disposition: actualDisposition,
|
|
46
|
+
triagedBy: await frictionActorId(runtime),
|
|
47
|
+
note: optionalNote(opts),
|
|
48
|
+
workItemIds: workItems,
|
|
49
|
+
links
|
|
50
|
+
});
|
|
51
|
+
if (opts.json) {
|
|
52
|
+
await writeJson(runtime, row);
|
|
53
|
+
return;
|
|
54
|
+
}
|
|
55
|
+
await writeStdoutLine(runtime, `${row.signalId} ${row.disposition}`);
|
|
56
|
+
(await commandWriters(runtime)).log(` disposition ${row.id} recorded by ${row.triagedBy}`);
|
|
57
|
+
}
|
|
58
|
+
catch (err) {
|
|
59
|
+
if (err instanceof CapabilityError)
|
|
60
|
+
throw err;
|
|
61
|
+
throw new CapabilityError(`Failed to record friction disposition: ${err instanceof Error ? err.message : String(err)}`, 'INTERNAL', { cause: err });
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
//# sourceMappingURL=hq.friction.disposition.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hq.friction.disposition.js","sourceRoot":"","sources":["../../../src/cli/friction/hq.friction.disposition.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,eAAe,EAAsC,MAAM,qBAAqB,CAAC;AAE7G,OAAO,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAC1E,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AACpD,OAAO,EAAE,eAAe,EAAqB,MAAM,qBAAqB,CAAC;AACzE,OAAO,EAAE,SAAS,EAAE,MAAM,6BAA6B,CAAC;AACxD,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EACN,iBAAiB,EACjB,iBAAiB,EACjB,MAAM,yBAAyB,CAAC;AAEjC,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAElD,SAAS,UAAU,CAAC,IAAkB;IACrC,MAAM,EAAE,GAAG,IAAI,CAAC,EAAE,IAAI,EAAE,CAAC;IACzB,IAAI,CAAC,EAAE;QAAE,MAAM,IAAI,eAAe,CAAC,gCAAgC,EAAE,eAAe,CAAC,CAAC;IACtF,OAAO,EAAE,CAAC;AACX,CAAC;AAED,SAAS,YAA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
+
declare const _default: {
|
|
2
|
+
readonly id: "hq.friction.emit";
|
|
3
|
+
readonly kind: "cli/command";
|
|
4
|
+
readonly name: "emit";
|
|
5
|
+
readonly description: "Emit a friction signal — write one row to the friction_signals store";
|
|
6
|
+
readonly group: "friction";
|
|
7
|
+
readonly options: [{
|
|
8
|
+
readonly flags: "--org-id <id>";
|
|
9
|
+
readonly description: "Organization id (default: the signed-in organization)";
|
|
10
|
+
}, {
|
|
11
|
+
readonly flags: "--source <source>";
|
|
12
|
+
readonly description: "agent-self-observed | agent-watched-user | rum-error | chat-confusion | incomplete-marker | user-explicit | support-ticket | telemetry-signal";
|
|
13
|
+
readonly choices: ["agent-self-observed", "agent-watched-user", "rum-error", "chat-confusion", "incomplete-marker", "user-explicit", "support-ticket", "telemetry-signal"];
|
|
14
|
+
}, {
|
|
15
|
+
readonly flags: "--audience <audience>";
|
|
16
|
+
readonly description: "agent | user | both";
|
|
17
|
+
readonly choices: ["agent", "user", "both"];
|
|
18
|
+
}, {
|
|
19
|
+
readonly flags: "--surface <surface>";
|
|
20
|
+
readonly description: "The CLI subcommand, route, or API path the friction was observed on";
|
|
21
|
+
}, {
|
|
22
|
+
readonly flags: "--severity <severity>";
|
|
23
|
+
readonly description: "blocker | annoyance | nice-to-have | confusion";
|
|
24
|
+
readonly choices: ["blocker", "annoyance", "nice-to-have", "confusion"];
|
|
25
|
+
}, {
|
|
26
|
+
readonly flags: "--observed <observed>";
|
|
27
|
+
readonly description: "What actually happened";
|
|
28
|
+
}, {
|
|
29
|
+
readonly flags: "--expected <expected>";
|
|
30
|
+
readonly description: "What should have happened (optional)";
|
|
31
|
+
}, {
|
|
32
|
+
readonly flags: "--repro <repro>";
|
|
33
|
+
readonly description: "Reproduction command or steps (optional)";
|
|
34
|
+
}, {
|
|
35
|
+
readonly flags: "--workaround <workaround>";
|
|
36
|
+
readonly description: "What the agent/user did instead (optional)";
|
|
37
|
+
}, {
|
|
38
|
+
readonly flags: "--evidence <evidence...>";
|
|
39
|
+
readonly description: "Repeatable. Format: kind:ref (kinds: session-id, run-id, file-line, ticket-id, error-event-id, url, commit-sha, other)";
|
|
40
|
+
}, {
|
|
41
|
+
readonly flags: "--agent-run-id <id>";
|
|
42
|
+
readonly description: "Originating agent run id (optional)";
|
|
43
|
+
}, {
|
|
44
|
+
readonly flags: "--user-session-id <id>";
|
|
45
|
+
readonly description: "Originating user session id (optional)";
|
|
46
|
+
}, {
|
|
47
|
+
readonly flags: "--occurrence-id <id>";
|
|
48
|
+
readonly description: "Stable tenant-scoped id for replay-safe emission (optional)";
|
|
49
|
+
}, {
|
|
50
|
+
readonly flags: "--created-by <id>";
|
|
51
|
+
readonly description: "Actor id (default: the agent this invocation acts as)";
|
|
52
|
+
}, {
|
|
53
|
+
readonly flags: "--personal-data-level <level>";
|
|
54
|
+
readonly description: "none | redacted | identified (default: redacted)";
|
|
55
|
+
readonly choices: ["none", "redacted", "identified"];
|
|
56
|
+
}, {
|
|
57
|
+
readonly flags: "--json";
|
|
58
|
+
readonly description: "Output the full row as JSON";
|
|
59
|
+
}];
|
|
60
|
+
readonly surfaces: ["cli"];
|
|
61
|
+
readonly hardware: readonly ["consumer"];
|
|
62
|
+
readonly enabled: true;
|
|
63
|
+
};
|
|
64
|
+
export default _default;
|
|
65
|
+
//# sourceMappingURL=hq.friction.emit.descriptor.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hq.friction.emit.descriptor.d.ts","sourceRoot":"","sources":["../../../src/cli/friction/hq.friction.emit.descriptor.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,wBAqEG"}
|