@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,144 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* HQ Client — Runtime client for @vibesdotdev/hq
|
|
3
|
+
*
|
|
4
|
+
* Provides channels, surface, services, and apps sub-clients
|
|
5
|
+
* for cross-module access without deep-imports.
|
|
6
|
+
*/
|
|
7
|
+
import { BaseRuntimeClient, getVibesClient } from '@vibesdotdev/kernel/client';
|
|
8
|
+
// Re-export base for consumers
|
|
9
|
+
export { BaseRuntimeClient } from '@vibesdotdev/kernel/client';
|
|
10
|
+
/**
|
|
11
|
+
* HQ Client — Single entry point for HQ primitives
|
|
12
|
+
*
|
|
13
|
+
* This client exposes:
|
|
14
|
+
* - channels: CRUD for scheduled channels
|
|
15
|
+
* - surface: notification dispatch and resolution
|
|
16
|
+
* - services: service registration and control
|
|
17
|
+
* - apps: app token and pairing management
|
|
18
|
+
*
|
|
19
|
+
* Consumed by presence, pm, and sibling modules
|
|
20
|
+
* to avoid deep-imports into @vibesdotdev/hq/channels, etc.
|
|
21
|
+
*
|
|
22
|
+
* Runtime port `VibesRuntime` (Runtime SPEC `./client`): service control
|
|
23
|
+
* selects the OS service manager through `assets` and `declaredScope`, which
|
|
24
|
+
* `RuntimeRef` does not carry.
|
|
25
|
+
*/
|
|
26
|
+
export class HqClient extends BaseRuntimeClient {
|
|
27
|
+
/**
|
|
28
|
+
* Channel operations — scheduled invocation slots
|
|
29
|
+
*
|
|
30
|
+
* All methods resolve the OS semantic client and act on this
|
|
31
|
+
* client's runtime (its channel state and channel record).
|
|
32
|
+
*/
|
|
33
|
+
channels = {
|
|
34
|
+
create: async (input) => {
|
|
35
|
+
return (await this.os()).channels.create(input);
|
|
36
|
+
},
|
|
37
|
+
list: async (filter) => {
|
|
38
|
+
return (await this.os()).channels.list(filter);
|
|
39
|
+
},
|
|
40
|
+
get: async (id) => {
|
|
41
|
+
return (await this.os()).channels.get(id);
|
|
42
|
+
},
|
|
43
|
+
enable: async (id) => {
|
|
44
|
+
return (await this.os()).channels.enable(id);
|
|
45
|
+
},
|
|
46
|
+
disable: async (id) => {
|
|
47
|
+
return (await this.os()).channels.disable(id);
|
|
48
|
+
},
|
|
49
|
+
fire: async (id) => {
|
|
50
|
+
return (await this.os()).channels.fire(id);
|
|
51
|
+
},
|
|
52
|
+
history: async (id, limit) => {
|
|
53
|
+
return (await this.os()).channels.history(id, limit);
|
|
54
|
+
},
|
|
55
|
+
delete: async (id) => {
|
|
56
|
+
return (await this.os()).channels.delete(id);
|
|
57
|
+
}
|
|
58
|
+
};
|
|
59
|
+
/** Resolve OS on the runtime handed to this client. */
|
|
60
|
+
os() {
|
|
61
|
+
return getVibesClient('os', this.runtime);
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* Surface operations — agent notifications
|
|
65
|
+
*
|
|
66
|
+
* All methods resolve the OS semantic client and take an explicit, server-
|
|
67
|
+
* derived `owner` as the first argument (the single tenancy gate). The consumer
|
|
68
|
+
* (PM daemon / CLI) acts as the local vibes-internal Marshal operator — it has
|
|
69
|
+
* no request `locals`, so it passes `SYSTEM_OWNER`, exactly the workboard
|
|
70
|
+
* "non-request bridge → SYSTEM_OWNER" pattern.
|
|
71
|
+
*/
|
|
72
|
+
surface = {
|
|
73
|
+
create: async (owner, notification) => {
|
|
74
|
+
return (await this.os()).surface.create(owner, notification);
|
|
75
|
+
},
|
|
76
|
+
list: async (owner, status) => {
|
|
77
|
+
return (await this.os()).surface.list(owner, status);
|
|
78
|
+
},
|
|
79
|
+
get: async (owner, id) => {
|
|
80
|
+
return (await this.os()).surface.get(owner, id);
|
|
81
|
+
},
|
|
82
|
+
resolve: async (owner, id, resolution) => {
|
|
83
|
+
return (await this.os()).surface.resolve(owner, id, resolution);
|
|
84
|
+
},
|
|
85
|
+
delete: async (owner, id) => {
|
|
86
|
+
return (await this.os()).surface.delete(owner, id);
|
|
87
|
+
}
|
|
88
|
+
};
|
|
89
|
+
/**
|
|
90
|
+
* Service operations through the runtime's OS service manager
|
|
91
|
+
*/
|
|
92
|
+
services = {
|
|
93
|
+
register: async (descriptor) => {
|
|
94
|
+
const { registerService } = await import('../services/registry.js');
|
|
95
|
+
return registerService(this.runtime, descriptor);
|
|
96
|
+
},
|
|
97
|
+
start: async (id) => {
|
|
98
|
+
const { startService } = await import('../services/registry.js');
|
|
99
|
+
await startService(this.runtime, id);
|
|
100
|
+
return true;
|
|
101
|
+
},
|
|
102
|
+
stop: async (id) => {
|
|
103
|
+
const { stopService } = await import('../services/registry.js');
|
|
104
|
+
await stopService(this.runtime, id);
|
|
105
|
+
return true;
|
|
106
|
+
},
|
|
107
|
+
status: async (id) => {
|
|
108
|
+
const { getServiceStatus } = await import('../services/registry.js');
|
|
109
|
+
return getServiceStatus(this.runtime, id);
|
|
110
|
+
},
|
|
111
|
+
logs: async (id, lines = 100) => {
|
|
112
|
+
const { getServiceLogs } = await import('../services/registry.js');
|
|
113
|
+
const logOutput = await getServiceLogs(this.runtime, id, lines);
|
|
114
|
+
return logOutput.split('\n');
|
|
115
|
+
}
|
|
116
|
+
};
|
|
117
|
+
/**
|
|
118
|
+
* App operations — token and pairing management
|
|
119
|
+
*/
|
|
120
|
+
apps = {
|
|
121
|
+
createToken: async (input) => {
|
|
122
|
+
const { createAppToken } = await import('../app/auth/service.consumer.js');
|
|
123
|
+
return createAppToken(this.runtime, input);
|
|
124
|
+
},
|
|
125
|
+
listTokens: async (includeRevoked = false) => {
|
|
126
|
+
const { listAppTokens } = await import('../app/auth/service.consumer.js');
|
|
127
|
+
return listAppTokens(this.runtime, includeRevoked);
|
|
128
|
+
},
|
|
129
|
+
revokeToken: async (tokenId) => {
|
|
130
|
+
const { revokeAppToken } = await import('../app/auth/service.consumer.js');
|
|
131
|
+
return revokeAppToken(this.runtime, tokenId);
|
|
132
|
+
},
|
|
133
|
+
createOrUpdatePairing: async (input) => {
|
|
134
|
+
const { createOrUpdatePairing } = await import('../app/auth/service.consumer.js');
|
|
135
|
+
return createOrUpdatePairing(this.runtime, input);
|
|
136
|
+
},
|
|
137
|
+
listPairings: async (appId) => {
|
|
138
|
+
const { listAppPairings } = await import('../app/auth/service.consumer.js');
|
|
139
|
+
return listAppPairings(this.runtime, appId);
|
|
140
|
+
}
|
|
141
|
+
};
|
|
142
|
+
}
|
|
143
|
+
export default HqClient;
|
|
144
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/client/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,iBAAiB,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAe/E,+BAA+B;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e,QAAQ,CAAC"}
|
|
@@ -0,0 +1,227 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `hq.friction` — the friction intake, upstream, promotion and code-session
|
|
3
|
+
* settings of an HQ deployment (PROPOSAL bug-report-flow §2.4).
|
|
4
|
+
*
|
|
5
|
+
* The package owns these, so a user's HQ gets the same settings as ours.
|
|
6
|
+
* `frictionProjectId` and `orgId` moved here from hq-web's app manifest;
|
|
7
|
+
* `orgId` is now `upstreamOrgId`. Overlay through composition
|
|
8
|
+
* `config['hq.friction']`. Per-org and per-app overrides arrive with config's
|
|
9
|
+
* `org`/`app` layers (P2); slice 1 runs on these defaults.
|
|
10
|
+
*/
|
|
11
|
+
import * as z from 'zod/v4';
|
|
12
|
+
import { type RuntimeRef } from '@vibesdotdev/kernel';
|
|
13
|
+
export declare const HQ_FRICTION_CONFIG_MANIFEST_ID = "hq.friction";
|
|
14
|
+
export declare const HqFrictionRateLimitSchema: z.ZodObject<{
|
|
15
|
+
signedInPerHour: z.ZodDefault<z.ZodNumber>;
|
|
16
|
+
publicPerHour: z.ZodDefault<z.ZodNumber>;
|
|
17
|
+
perOriginPerHour: z.ZodDefault<z.ZodNumber>;
|
|
18
|
+
}, z.core.$strip>;
|
|
19
|
+
export declare const HqFrictionIntakeSchema: z.ZodObject<{
|
|
20
|
+
publicOnError: z.ZodDefault<z.ZodBoolean>;
|
|
21
|
+
screenshots: z.ZodDefault<z.ZodBoolean>;
|
|
22
|
+
errors: z.ZodDefault<z.ZodBoolean>;
|
|
23
|
+
rateLimit: z.ZodPrefault<z.ZodObject<{
|
|
24
|
+
signedInPerHour: z.ZodDefault<z.ZodNumber>;
|
|
25
|
+
publicPerHour: z.ZodDefault<z.ZodNumber>;
|
|
26
|
+
perOriginPerHour: z.ZodDefault<z.ZodNumber>;
|
|
27
|
+
}, z.core.$strip>>;
|
|
28
|
+
}, z.core.$strip>;
|
|
29
|
+
export declare const HqFrictionUpstreamSchema: z.ZodObject<{
|
|
30
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
31
|
+
}, z.core.$strip>;
|
|
32
|
+
export declare const HqFrictionPromotionTargetSchema: z.ZodEnum<{
|
|
33
|
+
"work-item": "work-item";
|
|
34
|
+
issue: "issue";
|
|
35
|
+
}>;
|
|
36
|
+
export declare const HqFrictionPromoteSchema: z.ZodObject<{
|
|
37
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
38
|
+
minSeverity: z.ZodDefault<z.ZodEnum<{
|
|
39
|
+
blocker: "blocker";
|
|
40
|
+
annoyance: "annoyance";
|
|
41
|
+
"nice-to-have": "nice-to-have";
|
|
42
|
+
confusion: "confusion";
|
|
43
|
+
}>>;
|
|
44
|
+
minOccurrences: z.ZodDefault<z.ZodNumber>;
|
|
45
|
+
windowHours: z.ZodDefault<z.ZodNumber>;
|
|
46
|
+
targets: z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
47
|
+
"work-item": "work-item";
|
|
48
|
+
issue: "issue";
|
|
49
|
+
}>>>;
|
|
50
|
+
}, z.core.$strip>;
|
|
51
|
+
export declare const HqFrictionCodeSessionSchema: z.ZodObject<{
|
|
52
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
53
|
+
minSeverity: z.ZodDefault<z.ZodEnum<{
|
|
54
|
+
blocker: "blocker";
|
|
55
|
+
annoyance: "annoyance";
|
|
56
|
+
"nice-to-have": "nice-to-have";
|
|
57
|
+
confusion: "confusion";
|
|
58
|
+
}>>;
|
|
59
|
+
profile: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string | undefined, string>>>;
|
|
60
|
+
maxConcurrent: z.ZodDefault<z.ZodNumber>;
|
|
61
|
+
maxPerDay: z.ZodDefault<z.ZodNumber>;
|
|
62
|
+
wallClockMinutes: z.ZodDefault<z.ZodNumber>;
|
|
63
|
+
approval: z.ZodOptional<z.ZodObject<{
|
|
64
|
+
channel: z.ZodOptional<z.ZodString>;
|
|
65
|
+
wait: z.ZodDefault<z.ZodEnum<{
|
|
66
|
+
run: "run";
|
|
67
|
+
branch: "branch";
|
|
68
|
+
linked: "linked";
|
|
69
|
+
}>>;
|
|
70
|
+
changes: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodEnum<{
|
|
71
|
+
never: "never";
|
|
72
|
+
auto: "auto";
|
|
73
|
+
ask: "ask";
|
|
74
|
+
}>>>;
|
|
75
|
+
}, z.core.$strip>>;
|
|
76
|
+
}, z.core.$strip>;
|
|
77
|
+
export declare const HqFrictionConfigSchema: z.ZodObject<{
|
|
78
|
+
frictionProjectId: z.ZodOptional<z.ZodUUID>;
|
|
79
|
+
upstreamOrgId: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string | undefined, string>>>;
|
|
80
|
+
upstream: z.ZodPrefault<z.ZodObject<{
|
|
81
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
82
|
+
}, z.core.$strip>>;
|
|
83
|
+
intake: z.ZodPrefault<z.ZodObject<{
|
|
84
|
+
publicOnError: z.ZodDefault<z.ZodBoolean>;
|
|
85
|
+
screenshots: z.ZodDefault<z.ZodBoolean>;
|
|
86
|
+
errors: z.ZodDefault<z.ZodBoolean>;
|
|
87
|
+
rateLimit: z.ZodPrefault<z.ZodObject<{
|
|
88
|
+
signedInPerHour: z.ZodDefault<z.ZodNumber>;
|
|
89
|
+
publicPerHour: z.ZodDefault<z.ZodNumber>;
|
|
90
|
+
perOriginPerHour: z.ZodDefault<z.ZodNumber>;
|
|
91
|
+
}, z.core.$strip>>;
|
|
92
|
+
}, z.core.$strip>>;
|
|
93
|
+
promote: z.ZodPrefault<z.ZodObject<{
|
|
94
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
95
|
+
minSeverity: z.ZodDefault<z.ZodEnum<{
|
|
96
|
+
blocker: "blocker";
|
|
97
|
+
annoyance: "annoyance";
|
|
98
|
+
"nice-to-have": "nice-to-have";
|
|
99
|
+
confusion: "confusion";
|
|
100
|
+
}>>;
|
|
101
|
+
minOccurrences: z.ZodDefault<z.ZodNumber>;
|
|
102
|
+
windowHours: z.ZodDefault<z.ZodNumber>;
|
|
103
|
+
targets: z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
104
|
+
"work-item": "work-item";
|
|
105
|
+
issue: "issue";
|
|
106
|
+
}>>>;
|
|
107
|
+
}, z.core.$strip>>;
|
|
108
|
+
codeSession: z.ZodPrefault<z.ZodObject<{
|
|
109
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
110
|
+
minSeverity: z.ZodDefault<z.ZodEnum<{
|
|
111
|
+
blocker: "blocker";
|
|
112
|
+
annoyance: "annoyance";
|
|
113
|
+
"nice-to-have": "nice-to-have";
|
|
114
|
+
confusion: "confusion";
|
|
115
|
+
}>>;
|
|
116
|
+
profile: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string | undefined, string>>>;
|
|
117
|
+
maxConcurrent: z.ZodDefault<z.ZodNumber>;
|
|
118
|
+
maxPerDay: z.ZodDefault<z.ZodNumber>;
|
|
119
|
+
wallClockMinutes: z.ZodDefault<z.ZodNumber>;
|
|
120
|
+
approval: z.ZodOptional<z.ZodObject<{
|
|
121
|
+
channel: z.ZodOptional<z.ZodString>;
|
|
122
|
+
wait: z.ZodDefault<z.ZodEnum<{
|
|
123
|
+
run: "run";
|
|
124
|
+
branch: "branch";
|
|
125
|
+
linked: "linked";
|
|
126
|
+
}>>;
|
|
127
|
+
changes: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodEnum<{
|
|
128
|
+
never: "never";
|
|
129
|
+
auto: "auto";
|
|
130
|
+
ask: "ask";
|
|
131
|
+
}>>>;
|
|
132
|
+
}, z.core.$strip>>;
|
|
133
|
+
}, z.core.$strip>>;
|
|
134
|
+
}, z.core.$strip>;
|
|
135
|
+
export type HqFrictionConfig = z.output<typeof HqFrictionConfigSchema>;
|
|
136
|
+
export type HqFrictionConfigInput = z.input<typeof HqFrictionConfigSchema>;
|
|
137
|
+
declare const descriptor: {
|
|
138
|
+
kind: "config/manifest";
|
|
139
|
+
id: string;
|
|
140
|
+
name: string;
|
|
141
|
+
namespace: string;
|
|
142
|
+
description: string;
|
|
143
|
+
schema: z.ZodObject<{
|
|
144
|
+
frictionProjectId: z.ZodOptional<z.ZodUUID>;
|
|
145
|
+
upstreamOrgId: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string | undefined, string>>>;
|
|
146
|
+
upstream: z.ZodPrefault<z.ZodObject<{
|
|
147
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
148
|
+
}, z.core.$strip>>;
|
|
149
|
+
intake: z.ZodPrefault<z.ZodObject<{
|
|
150
|
+
publicOnError: z.ZodDefault<z.ZodBoolean>;
|
|
151
|
+
screenshots: z.ZodDefault<z.ZodBoolean>;
|
|
152
|
+
errors: z.ZodDefault<z.ZodBoolean>;
|
|
153
|
+
rateLimit: z.ZodPrefault<z.ZodObject<{
|
|
154
|
+
signedInPerHour: z.ZodDefault<z.ZodNumber>;
|
|
155
|
+
publicPerHour: z.ZodDefault<z.ZodNumber>;
|
|
156
|
+
perOriginPerHour: z.ZodDefault<z.ZodNumber>;
|
|
157
|
+
}, z.core.$strip>>;
|
|
158
|
+
}, z.core.$strip>>;
|
|
159
|
+
promote: z.ZodPrefault<z.ZodObject<{
|
|
160
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
161
|
+
minSeverity: z.ZodDefault<z.ZodEnum<{
|
|
162
|
+
blocker: "blocker";
|
|
163
|
+
annoyance: "annoyance";
|
|
164
|
+
"nice-to-have": "nice-to-have";
|
|
165
|
+
confusion: "confusion";
|
|
166
|
+
}>>;
|
|
167
|
+
minOccurrences: z.ZodDefault<z.ZodNumber>;
|
|
168
|
+
windowHours: z.ZodDefault<z.ZodNumber>;
|
|
169
|
+
targets: z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
170
|
+
"work-item": "work-item";
|
|
171
|
+
issue: "issue";
|
|
172
|
+
}>>>;
|
|
173
|
+
}, z.core.$strip>>;
|
|
174
|
+
codeSession: z.ZodPrefault<z.ZodObject<{
|
|
175
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
176
|
+
minSeverity: z.ZodDefault<z.ZodEnum<{
|
|
177
|
+
blocker: "blocker";
|
|
178
|
+
annoyance: "annoyance";
|
|
179
|
+
"nice-to-have": "nice-to-have";
|
|
180
|
+
confusion: "confusion";
|
|
181
|
+
}>>;
|
|
182
|
+
profile: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string | undefined, string>>>;
|
|
183
|
+
maxConcurrent: z.ZodDefault<z.ZodNumber>;
|
|
184
|
+
maxPerDay: z.ZodDefault<z.ZodNumber>;
|
|
185
|
+
wallClockMinutes: z.ZodDefault<z.ZodNumber>;
|
|
186
|
+
approval: z.ZodOptional<z.ZodObject<{
|
|
187
|
+
channel: z.ZodOptional<z.ZodString>;
|
|
188
|
+
wait: z.ZodDefault<z.ZodEnum<{
|
|
189
|
+
run: "run";
|
|
190
|
+
branch: "branch";
|
|
191
|
+
linked: "linked";
|
|
192
|
+
}>>;
|
|
193
|
+
changes: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodEnum<{
|
|
194
|
+
never: "never";
|
|
195
|
+
auto: "auto";
|
|
196
|
+
ask: "ask";
|
|
197
|
+
}>>>;
|
|
198
|
+
}, z.core.$strip>>;
|
|
199
|
+
}, z.core.$strip>>;
|
|
200
|
+
}, z.core.$strip>;
|
|
201
|
+
storedLayer: "none";
|
|
202
|
+
allowedAdapters: string[];
|
|
203
|
+
scope: "global";
|
|
204
|
+
customTables: false;
|
|
205
|
+
version: number;
|
|
206
|
+
internal: false;
|
|
207
|
+
tier: "system";
|
|
208
|
+
category: string;
|
|
209
|
+
fields: {
|
|
210
|
+
frictionProjectId: {
|
|
211
|
+
ui: {
|
|
212
|
+
label: string;
|
|
213
|
+
};
|
|
214
|
+
};
|
|
215
|
+
upstreamOrgId: {
|
|
216
|
+
ui: {
|
|
217
|
+
label: string;
|
|
218
|
+
};
|
|
219
|
+
};
|
|
220
|
+
};
|
|
221
|
+
enabled: true;
|
|
222
|
+
};
|
|
223
|
+
export default descriptor;
|
|
224
|
+
export declare function hqFrictionConfigDefaults(): HqFrictionConfig;
|
|
225
|
+
/** Read per call, so a changed overlay applies to the next report. */
|
|
226
|
+
export declare function loadHqFrictionConfig(runtime: RuntimeRef): Promise<HqFrictionConfig>;
|
|
227
|
+
//# sourceMappingURL=hq-friction.config.descriptor.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hq-friction.config.descriptor.d.ts","sourceRoot":"","sources":["../../src/config/hq-friction.config.descriptor.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAI5B,OAAO,EAAmB,KAAK,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAGvE,eAAO,MAAM,8BAA8B,gBAAgB,CAAC;AAQ5D,eAAO,MAAM,yBAAyB;;;;iBAOpC,CAAC;AAEH,eAAO,MAAM,sBAAsB;;;;;;;;;iBAQjC,CAAC;AAEH,eAAO,MAAM,wBAAwB;;iBAMnC,CAAC;AAEH,eAAO,MAAM,+BAA+B;;;EAAiC,CAAC;AAE9E,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;iBAMlC,CAAC;AAEH,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;iBAUtC,CAAC;AAEH,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAYjC,CAAC;AAEH,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,sBAAsB,CAAC,CAAC;AACvE,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAE3E,QAAA,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoBoB,CAAC;AAErC,eAAe,UAAU,CAAC;AAE1B,wBAAgB,wBAAwB,IAAI,gBAAgB,CAE3D;AAED,sEAAsE;AACtE,wBAAsB,oBAAoB,CAAC,OAAO,EAAE,UAAU,GAAG,OAAO,CAAC,gBAAgB,CAAC,CAQzF"}
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `hq.friction` — the friction intake, upstream, promotion and code-session
|
|
3
|
+
* settings of an HQ deployment (PROPOSAL bug-report-flow §2.4).
|
|
4
|
+
*
|
|
5
|
+
* The package owns these, so a user's HQ gets the same settings as ours.
|
|
6
|
+
* `frictionProjectId` and `orgId` moved here from hq-web's app manifest;
|
|
7
|
+
* `orgId` is now `upstreamOrgId`. Overlay through composition
|
|
8
|
+
* `config['hq.friction']`. Per-org and per-app overrides arrive with config's
|
|
9
|
+
* `org`/`app` layers (P2); slice 1 runs on these defaults.
|
|
10
|
+
*/
|
|
11
|
+
import * as z from 'zod/v4';
|
|
12
|
+
import { ConfigManifest } from '@vibesdotdev/config/manifest/config-manifest';
|
|
13
|
+
import { ApprovalPolicySchema } from '@vibesdotdev/ai-schemas/agents/schemas/approval-policy';
|
|
14
|
+
import { CapabilityError } from '@vibesdotdev/kernel';
|
|
15
|
+
import { FrictionSeveritySchema } from "../friction/schemas/signal.js";
|
|
16
|
+
export const HQ_FRICTION_CONFIG_MANIFEST_ID = 'hq.friction';
|
|
17
|
+
const optionalId = z
|
|
18
|
+
.string()
|
|
19
|
+
.trim()
|
|
20
|
+
.transform((value) => value || undefined)
|
|
21
|
+
.optional();
|
|
22
|
+
export const HqFrictionRateLimitSchema = z.object({
|
|
23
|
+
/** Reports one signed-in user may file per hour. */
|
|
24
|
+
signedInPerHour: z.number().int().positive().default(20),
|
|
25
|
+
/** Reports one signed-out visitor (by hashed address) may file per hour. */
|
|
26
|
+
publicPerHour: z.number().int().positive().default(5),
|
|
27
|
+
/** Reports one registered origin may file per hour, all reporters together. */
|
|
28
|
+
perOriginPerHour: z.number().int().positive().default(200)
|
|
29
|
+
});
|
|
30
|
+
export const HqFrictionIntakeSchema = z.object({
|
|
31
|
+
/** Signed-out visitors may report, but only with a captured error. */
|
|
32
|
+
publicOnError: z.boolean().default(true),
|
|
33
|
+
/** Keep screenshot attachments on stored reports. Public reports never keep them. */
|
|
34
|
+
screenshots: z.boolean().default(true),
|
|
35
|
+
/** Keep captured browser errors on stored reports. */
|
|
36
|
+
errors: z.boolean().default(true),
|
|
37
|
+
rateLimit: HqFrictionRateLimitSchema.prefault({})
|
|
38
|
+
});
|
|
39
|
+
export const HqFrictionUpstreamSchema = z.object({
|
|
40
|
+
/**
|
|
41
|
+
* Send a redacted copy (no screenshot, no reporter identity) to
|
|
42
|
+
* `upstreamOrgId` when a captured stack points into `@vibesdotdev/*`.
|
|
43
|
+
*/
|
|
44
|
+
enabled: z.boolean().default(true)
|
|
45
|
+
});
|
|
46
|
+
export const HqFrictionPromotionTargetSchema = z.enum(['work-item', 'issue']);
|
|
47
|
+
export const HqFrictionPromoteSchema = z.object({
|
|
48
|
+
enabled: z.boolean().default(false),
|
|
49
|
+
minSeverity: FrictionSeveritySchema.default('blocker'),
|
|
50
|
+
minOccurrences: z.number().int().positive().default(1),
|
|
51
|
+
windowHours: z.number().int().positive().default(24),
|
|
52
|
+
targets: z.array(HqFrictionPromotionTargetSchema).min(1).default(['work-item'])
|
|
53
|
+
});
|
|
54
|
+
export const HqFrictionCodeSessionSchema = z.object({
|
|
55
|
+
enabled: z.boolean().default(false),
|
|
56
|
+
minSeverity: FrictionSeveritySchema.default('blocker'),
|
|
57
|
+
/** The `agents.execution` profile id that runs the session. */
|
|
58
|
+
profile: optionalId,
|
|
59
|
+
maxConcurrent: z.number().int().positive().default(1),
|
|
60
|
+
maxPerDay: z.number().int().positive().default(3),
|
|
61
|
+
wallClockMinutes: z.number().int().positive().default(60),
|
|
62
|
+
/** Run-level override of `tools.approval` for friction code sessions (§2.6). */
|
|
63
|
+
approval: ApprovalPolicySchema.optional()
|
|
64
|
+
});
|
|
65
|
+
export const HqFrictionConfigSchema = z.object({
|
|
66
|
+
/** Canonical Platform project for promotions whose caller names none (moved from `hq-web`). */
|
|
67
|
+
frictionProjectId: z.uuid().optional(),
|
|
68
|
+
/**
|
|
69
|
+
* The Vibes org: it receives upstream copies, reports from apps with no
|
|
70
|
+
* owning org, and internal intake reports that name none (was `hq-web.orgId`).
|
|
71
|
+
*/
|
|
72
|
+
upstreamOrgId: optionalId,
|
|
73
|
+
upstream: HqFrictionUpstreamSchema.prefault({}),
|
|
74
|
+
intake: HqFrictionIntakeSchema.prefault({}),
|
|
75
|
+
promote: HqFrictionPromoteSchema.prefault({}),
|
|
76
|
+
codeSession: HqFrictionCodeSessionSchema.prefault({})
|
|
77
|
+
});
|
|
78
|
+
const descriptor = {
|
|
79
|
+
kind: 'config/manifest',
|
|
80
|
+
id: HQ_FRICTION_CONFIG_MANIFEST_ID,
|
|
81
|
+
name: 'HQ friction',
|
|
82
|
+
namespace: HQ_FRICTION_CONFIG_MANIFEST_ID,
|
|
83
|
+
description: 'Friction report intake, rate limits, the upstream Vibes copy, promotion thresholds and code-session caps.',
|
|
84
|
+
schema: HqFrictionConfigSchema,
|
|
85
|
+
storedLayer: 'none',
|
|
86
|
+
allowedAdapters: ['storage.json', 'storage.localdb'],
|
|
87
|
+
scope: 'global',
|
|
88
|
+
customTables: false,
|
|
89
|
+
version: 1,
|
|
90
|
+
internal: false,
|
|
91
|
+
tier: 'system',
|
|
92
|
+
category: 'hq',
|
|
93
|
+
fields: {
|
|
94
|
+
frictionProjectId: { ui: { label: 'Friction promotion project id' } },
|
|
95
|
+
upstreamOrgId: { ui: { label: 'Upstream (Vibes) organization id' } }
|
|
96
|
+
},
|
|
97
|
+
enabled: true
|
|
98
|
+
};
|
|
99
|
+
export default descriptor;
|
|
100
|
+
export function hqFrictionConfigDefaults() {
|
|
101
|
+
return HqFrictionConfigSchema.parse({});
|
|
102
|
+
}
|
|
103
|
+
/** Read per call, so a changed overlay applies to the next report. */
|
|
104
|
+
export async function loadHqFrictionConfig(runtime) {
|
|
105
|
+
if (!runtime.hasKind('config/manifest'))
|
|
106
|
+
return hqFrictionConfigDefaults();
|
|
107
|
+
try {
|
|
108
|
+
return HqFrictionConfigSchema.parse(await ConfigManifest.forRuntime(runtime, HQ_FRICTION_CONFIG_MANIFEST_ID).load());
|
|
109
|
+
}
|
|
110
|
+
catch (error) {
|
|
111
|
+
if (error instanceof CapabilityError && error.reason === 'config-manifest-unregistered')
|
|
112
|
+
return hqFrictionConfigDefaults();
|
|
113
|
+
throw error;
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
//# sourceMappingURL=hq-friction.config.descriptor.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hq-friction.config.descriptor.js","sourceRoot":"","sources":["../../src/config/hq-friction.config.descriptor.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,cAAc,EAAE,MAAM,8CAA8C,CAAC;AAE9E,OAAO,EAAE,oBAAoB,EAAE,MAAM,wDAAwD,CAAC;AAC9F,OAAO,EAAE,eAAe,EAAmB,MAAM,qBAAqB,CAAC;AACvE,OAAO,EAAE,sBAAsB,EAAE,MAAM,+BAA+B,CAAC;AAEvE,MAAM,CAAC,MAAM,8BAA8B,GAAG,aAAa,CAAC;AAE5D,MAAM,UAAU,GAAG,CAAC;KAClB,MAAM,EAAE;KACR,IAAI,EAAE;KACN,SAAS,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,IAAI,SAAS,CAAC;KACxC,QAAQ,EAAE,CAAC;AAEb,MAAM,CAAC,MAAM,yBAAyB,GAAG,CAAC,CAAC,MAAM,CAAC;IACjD,oDAAoD;IACpD,eAAe,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,G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K,EAAE,CAAC;QAChB,IAAI,KAAK,YAAY,eAAe,IAAI,KAAK,CAAC,MAAM,KAAK,8BAA8B;YAAE,OAAO,wBAAwB,EAAE,CAAC;QAC3H,MAAM,KAAK,CAAC;IACb,CAAC;AACF,CAAC"}
|
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* OS Dashboard Projections
|
|
3
|
+
*
|
|
4
|
+
* Dashboard helpers for rendering surface artifacts and machine info.
|
|
5
|
+
* Originally from vibesos-system, migrated to os.
|
|
6
|
+
*/
|
|
7
|
+
type SurfaceOwner = import('@vibesdotdev/os/surface').SurfaceOwner;
|
|
8
|
+
/** The runtime whose surface store the dashboard reads. */
|
|
9
|
+
type SurfaceStoreRuntime = import('@vibesdotdev/os/surface').SurfaceStoreRuntime;
|
|
10
|
+
type SurfaceNotification = import('@vibesdotdev/os/surface').SurfaceNotification;
|
|
11
|
+
type SurfaceArtifact = import('@vibesdotdev/os/surface').SurfaceArtifact;
|
|
12
|
+
import type { JsonObject } from '@vibesdotdev/kernel/schemas/json';
|
|
13
|
+
import * as z from 'zod/v4';
|
|
14
|
+
export declare const DashboardArtifactStatusSchema: z.ZodEnum<{
|
|
15
|
+
error: "error";
|
|
16
|
+
pending: "pending";
|
|
17
|
+
approved: "approved";
|
|
18
|
+
discarded: "discarded";
|
|
19
|
+
complete: "complete";
|
|
20
|
+
}>;
|
|
21
|
+
export type DashboardArtifactStatus = z.infer<typeof DashboardArtifactStatusSchema>;
|
|
22
|
+
export interface DashboardActionSummary {
|
|
23
|
+
label: string;
|
|
24
|
+
command: string;
|
|
25
|
+
args: string[];
|
|
26
|
+
}
|
|
27
|
+
export interface DashboardArtifactSummary {
|
|
28
|
+
id: string;
|
|
29
|
+
artifactType: string;
|
|
30
|
+
status: DashboardArtifactStatus;
|
|
31
|
+
agentId: string;
|
|
32
|
+
/** Owner provenance (server-stamped). Lets consumers retire the client `agentId` query filter in favor of owner-scoping. */
|
|
33
|
+
ownerType?: 'user' | 'organization' | 'system';
|
|
34
|
+
ownerId?: string;
|
|
35
|
+
summary: string;
|
|
36
|
+
createdAt: string;
|
|
37
|
+
sessionId: string | null;
|
|
38
|
+
componentRef: string | null;
|
|
39
|
+
source: string | null;
|
|
40
|
+
sourceFormat: SurfaceArtifact['sourceFormat'] | null;
|
|
41
|
+
browserRuntime: boolean;
|
|
42
|
+
content: NonNullable<SurfaceArtifact['content']>;
|
|
43
|
+
actions: DashboardActionSummary[];
|
|
44
|
+
scope?: string;
|
|
45
|
+
}
|
|
46
|
+
export type DashboardStimulusPolicyStatus = 'live' | 'needs_agent' | 'agent_offline' | 'paused' | 'disconnected' | 'error';
|
|
47
|
+
export interface DashboardStimulusSourceFact {
|
|
48
|
+
id: string;
|
|
49
|
+
name: string;
|
|
50
|
+
sourceType: string;
|
|
51
|
+
status: 'active' | 'paused' | 'error' | 'disconnected' | string;
|
|
52
|
+
agentIds: readonly string[];
|
|
53
|
+
lastEvent?: string | null;
|
|
54
|
+
eventCount?: number;
|
|
55
|
+
}
|
|
56
|
+
export interface DashboardStimulusAgentFact {
|
|
57
|
+
id: string;
|
|
58
|
+
name: string;
|
|
59
|
+
status?: string;
|
|
60
|
+
agentId?: string;
|
|
61
|
+
deploymentId?: string;
|
|
62
|
+
mode?: string;
|
|
63
|
+
desiredStatus?: string;
|
|
64
|
+
eventSourceIds?: readonly string[];
|
|
65
|
+
}
|
|
66
|
+
export interface ResolveDashboardStimulusPoliciesInput {
|
|
67
|
+
sources: readonly DashboardStimulusSourceFact[];
|
|
68
|
+
agents: readonly DashboardStimulusAgentFact[];
|
|
69
|
+
defaultAgentId?: string;
|
|
70
|
+
defaultAgentName?: string;
|
|
71
|
+
hasUserMessageSurface?: boolean;
|
|
72
|
+
hasPlanConfirmationSurface?: boolean;
|
|
73
|
+
}
|
|
74
|
+
export type DashboardStimulusBindingAction = 'bind_default_agent' | 'start_agent' | 'resume_source' | 'repair_source' | 'review_live_route';
|
|
75
|
+
export interface DashboardStimulusBindingIntent {
|
|
76
|
+
sourceId: string;
|
|
77
|
+
sourceName: string;
|
|
78
|
+
sourceType: string;
|
|
79
|
+
action: DashboardStimulusBindingAction;
|
|
80
|
+
title: string;
|
|
81
|
+
description: string;
|
|
82
|
+
ctaLabel: string;
|
|
83
|
+
requestedBy: string;
|
|
84
|
+
targetAgentId: string;
|
|
85
|
+
targetAgentName: string;
|
|
86
|
+
plan: JsonObject;
|
|
87
|
+
evidence: string[];
|
|
88
|
+
}
|
|
89
|
+
export interface DashboardStimulusPolicy {
|
|
90
|
+
sourceId: string;
|
|
91
|
+
sourceName: string;
|
|
92
|
+
sourceType: string;
|
|
93
|
+
status: DashboardStimulusPolicyStatus;
|
|
94
|
+
statusLabel: string;
|
|
95
|
+
headline: string;
|
|
96
|
+
detail: string;
|
|
97
|
+
primaryAgentId: string | null;
|
|
98
|
+
primaryAgentName: string | null;
|
|
99
|
+
agentCount: number;
|
|
100
|
+
eventCount: number;
|
|
101
|
+
lastEvent: string | null;
|
|
102
|
+
outcomes: string[];
|
|
103
|
+
guardrails: string[];
|
|
104
|
+
nextAction: string;
|
|
105
|
+
evidence: string[];
|
|
106
|
+
bindingIntent: DashboardStimulusBindingIntent;
|
|
107
|
+
}
|
|
108
|
+
/**
|
|
109
|
+
* Map a surface notification to a dashboard artifact summary
|
|
110
|
+
*/
|
|
111
|
+
export declare function mapDashboardArtifact(notification: SurfaceNotification): DashboardArtifactSummary;
|
|
112
|
+
export declare function resolveDashboardStimulusPolicies(input: ResolveDashboardStimulusPoliciesInput): DashboardStimulusPolicy[];
|
|
113
|
+
/**
|
|
114
|
+
* Load the owner's dashboard artifacts from surface notifications. `owner` is the
|
|
115
|
+
* server-derived tenancy gate (from `actingScopeFromLocals` at the endpoint, or
|
|
116
|
+
* `SYSTEM_OWNER` for the vibes-internal Marshal surface) — only that owner's rows
|
|
117
|
+
* are returned, so the previous client-supplied `agentId` query filter is no longer
|
|
118
|
+
* an authz control.
|
|
119
|
+
*/
|
|
120
|
+
export declare function loadDashboardArtifacts(runtime: SurfaceStoreRuntime, owner: SurfaceOwner, limit?: number): Promise<DashboardArtifactSummary[]>;
|
|
121
|
+
/**
|
|
122
|
+
* Load one of the owner's dashboard artifacts by id from its owning surface
|
|
123
|
+
* notification. A foreign-owner artifact is invisible (`null`) → 404 upstream.
|
|
124
|
+
*/
|
|
125
|
+
export declare function getDashboardArtifactById(runtime: SurfaceStoreRuntime, owner: SurfaceOwner, id: string): Promise<DashboardArtifactSummary | null>;
|
|
126
|
+
/**
|
|
127
|
+
* Update the status of one of the owner's dashboard artifacts (resolves the surface
|
|
128
|
+
* notification). Owner-scoped end-to-end: a foreign-owner artifact resolves to
|
|
129
|
+
* `null` → 404 upstream, never mutating another owner's row.
|
|
130
|
+
*/
|
|
131
|
+
export declare function updateDashboardArtifactStatus(runtime: SurfaceStoreRuntime, owner: SurfaceOwner, id: string, status: 'approved' | 'discarded'): Promise<DashboardArtifactSummary | null>;
|
|
132
|
+
export {};
|
|
133
|
+
//# sourceMappingURL=dashboard.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dashboard.d.ts","sourceRoot":"","sources":["../src/dashboard.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,KAAK,YAAY,GAAG,OAAO,yBAAyB,EAAE,YAAY,CAAC;AACnE,2DAA2D;AAC3D,KAAK,mBAAmB,GAAG,OAAO,yBAAyB,EAAE,mBAAmB,CAAC;AAejF,KAAK,mBAAmB,GAAG,OAAO,yBAAyB,EAAE,mBAAmB,CAAC;AACjF,KAAK,eAAe,GAAG,OAAO,yBAAyB,EAAE,eAAe,CAAC;AAGzE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAC;AACnE,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,eAAO,MAAM,6BAA6B;;;;;;EAMxC,CAAC;AACH,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,6BAA6B,C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