@vibesdotdev/workboard 0.0.0-stage → 1.0.0-rc.1
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 +31 -2
- package/dist/agent-actions.d.ts +19 -0
- package/dist/agent-actions.d.ts.map +1 -0
- package/dist/agent-actions.js +93 -0
- package/dist/agent-actions.js.map +1 -0
- package/dist/attention/headless-attention.host.d.ts +78 -0
- package/dist/attention/headless-attention.host.d.ts.map +1 -0
- package/dist/attention/headless-attention.host.js +42 -0
- package/dist/attention/headless-attention.host.js.map +1 -0
- package/dist/attention/index.d.ts +2 -0
- package/dist/attention/index.d.ts.map +1 -0
- package/dist/attention/index.js +2 -0
- package/dist/attention/index.js.map +1 -0
- package/dist/cli/marshal/components/index.d.ts +12 -0
- package/dist/cli/marshal/components/index.d.ts.map +1 -0
- package/dist/cli/marshal/components/index.js +12 -0
- package/dist/cli/marshal/components/index.js.map +1 -0
- package/dist/cli/marshal/components/marshal-progress.d.ts +52 -0
- package/dist/cli/marshal/components/marshal-progress.d.ts.map +1 -0
- package/dist/cli/marshal/components/marshal-progress.js +182 -0
- package/dist/cli/marshal/components/marshal-progress.js.map +1 -0
- package/dist/cli/marshal/components/marshal-prompt.d.ts +72 -0
- package/dist/cli/marshal/components/marshal-prompt.d.ts.map +1 -0
- package/dist/cli/marshal/components/marshal-prompt.js +256 -0
- package/dist/cli/marshal/components/marshal-prompt.js.map +1 -0
- package/dist/cli/marshal/components/marshal-widgets.d.ts +73 -0
- package/dist/cli/marshal/components/marshal-widgets.d.ts.map +1 -0
- package/dist/cli/marshal/components/marshal-widgets.js +283 -0
- package/dist/cli/marshal/components/marshal-widgets.js.map +1 -0
- package/dist/cli/marshal/index.d.ts +2 -0
- package/dist/cli/marshal/index.d.ts.map +1 -0
- package/dist/cli/marshal/index.js +2 -0
- package/dist/cli/marshal/index.js.map +1 -0
- package/dist/client/helper.d.ts +12 -0
- package/dist/client/helper.d.ts.map +1 -0
- package/dist/client/helper.js +13 -0
- package/dist/client/helper.js.map +1 -0
- package/dist/client/index.d.ts +3 -0
- package/dist/client/index.d.ts.map +1 -0
- package/dist/client/index.js +3 -0
- package/dist/client/index.js.map +1 -0
- package/dist/client/workboard-client.d.ts +283 -0
- package/dist/client/workboard-client.d.ts.map +1 -0
- package/dist/client/workboard-client.js +550 -0
- package/dist/client/workboard-client.js.map +1 -0
- package/dist/config/workboard.config.descriptor.d.ts +38 -0
- package/dist/config/workboard.config.descriptor.d.ts.map +1 -0
- package/dist/config/workboard.config.descriptor.js +30 -0
- package/dist/config/workboard.config.descriptor.js.map +1 -0
- package/dist/docs/workboard.docs.descriptor.d.ts +4 -0
- package/dist/docs/workboard.docs.descriptor.d.ts.map +1 -0
- package/dist/docs/workboard.docs.descriptor.js +85 -0
- package/dist/docs/workboard.docs.descriptor.js.map +1 -0
- package/dist/index.d.ts +12 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +15 -0
- package/dist/index.js.map +1 -0
- package/dist/marshal/agent/descriptor.d.ts +66 -0
- package/dist/marshal/agent/descriptor.d.ts.map +1 -0
- package/dist/marshal/agent/descriptor.js +144 -0
- package/dist/marshal/agent/descriptor.js.map +1 -0
- package/dist/marshal/agent/index.d.ts +10 -0
- package/dist/marshal/agent/index.d.ts.map +1 -0
- package/dist/marshal/agent/index.js +10 -0
- package/dist/marshal/agent/index.js.map +1 -0
- package/dist/marshal/agent/marshal-agent.d.ts +42 -0
- package/dist/marshal/agent/marshal-agent.d.ts.map +1 -0
- package/dist/marshal/agent/marshal-agent.js +121 -0
- package/dist/marshal/agent/marshal-agent.js.map +1 -0
- package/dist/marshal/agent/marshal.agent.descriptor.d.ts +9 -0
- package/dist/marshal/agent/marshal.agent.descriptor.d.ts.map +1 -0
- package/dist/marshal/agent/marshal.agent.descriptor.js +9 -0
- package/dist/marshal/agent/marshal.agent.descriptor.js.map +1 -0
- package/dist/marshal/agent/profile.d.ts +16 -0
- package/dist/marshal/agent/profile.d.ts.map +1 -0
- package/dist/marshal/agent/profile.js +55 -0
- package/dist/marshal/agent/profile.js.map +1 -0
- package/dist/marshal/agent/prompts/cloud-system.prompt.descriptor.d.ts +113 -0
- package/dist/marshal/agent/prompts/cloud-system.prompt.descriptor.d.ts.map +1 -0
- package/dist/marshal/agent/prompts/cloud-system.prompt.descriptor.js +85 -0
- package/dist/marshal/agent/prompts/cloud-system.prompt.descriptor.js.map +1 -0
- package/dist/marshal/agent/prompts/index.d.ts +113 -0
- package/dist/marshal/agent/prompts/index.d.ts.map +1 -0
- package/dist/marshal/agent/prompts/index.js +16 -0
- package/dist/marshal/agent/prompts/index.js.map +1 -0
- package/dist/marshal/agent/prompts/personality.prompt.descriptor.d.ts +113 -0
- package/dist/marshal/agent/prompts/personality.prompt.descriptor.d.ts.map +1 -0
- package/dist/marshal/agent/prompts/personality.prompt.descriptor.js +34 -0
- package/dist/marshal/agent/prompts/personality.prompt.descriptor.js.map +1 -0
- package/dist/marshal/agent/prompts/setup-issue.prompt.descriptor.d.ts +113 -0
- package/dist/marshal/agent/prompts/setup-issue.prompt.descriptor.d.ts.map +1 -0
- package/dist/marshal/agent/prompts/setup-issue.prompt.descriptor.js +68 -0
- package/dist/marshal/agent/prompts/setup-issue.prompt.descriptor.js.map +1 -0
- package/dist/marshal/agent/prompts/setup-wizard.prompt.descriptor.d.ts +113 -0
- package/dist/marshal/agent/prompts/setup-wizard.prompt.descriptor.d.ts.map +1 -0
- package/dist/marshal/agent/prompts/setup-wizard.prompt.descriptor.js +38 -0
- package/dist/marshal/agent/prompts/setup-wizard.prompt.descriptor.js.map +1 -0
- package/dist/marshal/agent/prompts/surface.prompt.descriptor.d.ts +113 -0
- package/dist/marshal/agent/prompts/surface.prompt.descriptor.d.ts.map +1 -0
- package/dist/marshal/agent/prompts/surface.prompt.descriptor.js +39 -0
- package/dist/marshal/agent/prompts/surface.prompt.descriptor.js.map +1 -0
- package/dist/marshal/agent/prompts/system.prompt.descriptor.d.ts +113 -0
- package/dist/marshal/agent/prompts/system.prompt.descriptor.d.ts.map +1 -0
- package/dist/marshal/agent/prompts/system.prompt.descriptor.js +63 -0
- package/dist/marshal/agent/prompts/system.prompt.descriptor.js.map +1 -0
- package/dist/marshal/agent/system-prompt.d.ts +34 -0
- package/dist/marshal/agent/system-prompt.d.ts.map +1 -0
- package/dist/marshal/agent/system-prompt.js +130 -0
- package/dist/marshal/agent/system-prompt.js.map +1 -0
- package/dist/marshal/capabilities.d.ts +55 -0
- package/dist/marshal/capabilities.d.ts.map +1 -0
- package/dist/marshal/capabilities.js +146 -0
- package/dist/marshal/capabilities.js.map +1 -0
- package/dist/marshal/cli/fleet.marshal-presence.heartbeat.command.descriptor.d.ts +4 -0
- package/dist/marshal/cli/fleet.marshal-presence.heartbeat.command.descriptor.d.ts.map +1 -0
- package/dist/marshal/cli/fleet.marshal-presence.heartbeat.command.descriptor.js +18 -0
- package/dist/marshal/cli/fleet.marshal-presence.heartbeat.command.descriptor.js.map +1 -0
- package/dist/marshal/cli/fleet.marshal-presence.heartbeat.command.impl.consumer.d.ts +16 -0
- package/dist/marshal/cli/fleet.marshal-presence.heartbeat.command.impl.consumer.d.ts.map +1 -0
- package/dist/marshal/cli/fleet.marshal-presence.heartbeat.command.impl.consumer.js +39 -0
- package/dist/marshal/cli/fleet.marshal-presence.heartbeat.command.impl.consumer.js.map +1 -0
- package/dist/marshal/cli/plugin.d.ts +3 -0
- package/dist/marshal/cli/plugin.d.ts.map +1 -0
- package/dist/marshal/cli/plugin.js +9 -0
- package/dist/marshal/cli/plugin.js.map +1 -0
- package/dist/marshal/client/helper.d.ts +24 -0
- package/dist/marshal/client/helper.d.ts.map +1 -0
- package/dist/marshal/client/helper.js +36 -0
- package/dist/marshal/client/helper.js.map +1 -0
- package/dist/marshal/client/index.d.ts +7 -0
- package/dist/marshal/client/index.d.ts.map +1 -0
- package/dist/marshal/client/index.js +6 -0
- package/dist/marshal/client/index.js.map +1 -0
- package/dist/marshal/client/marshal-api-client.impl.d.ts +22 -0
- package/dist/marshal/client/marshal-api-client.impl.d.ts.map +1 -0
- package/dist/marshal/client/marshal-api-client.impl.js +47 -0
- package/dist/marshal/client/marshal-api-client.impl.js.map +1 -0
- package/dist/marshal/client/marshal-client.runtime.d.ts +124 -0
- package/dist/marshal/client/marshal-client.runtime.d.ts.map +1 -0
- package/dist/marshal/client/marshal-client.runtime.js +216 -0
- package/dist/marshal/client/marshal-client.runtime.js.map +1 -0
- package/dist/marshal/cloud.plugin.d.ts +2 -0
- package/dist/marshal/cloud.plugin.d.ts.map +1 -0
- package/dist/marshal/cloud.plugin.js +2 -0
- package/dist/marshal/cloud.plugin.js.map +1 -0
- package/dist/marshal/components/index.d.ts +8 -0
- package/dist/marshal/components/index.d.ts.map +1 -0
- package/dist/marshal/components/index.js +15 -0
- package/dist/marshal/components/index.js.map +1 -0
- package/dist/marshal/config/manifest.d.ts +8608 -0
- package/dist/marshal/config/manifest.d.ts.map +1 -0
- package/dist/marshal/config/manifest.js +115 -0
- package/dist/marshal/config/manifest.js.map +1 -0
- package/dist/marshal/consumer.d.ts +7 -0
- package/dist/marshal/consumer.d.ts.map +1 -0
- package/dist/marshal/consumer.js +9 -0
- package/dist/marshal/consumer.js.map +1 -0
- package/dist/marshal/consumer.plugin.d.ts +2 -0
- package/dist/marshal/consumer.plugin.d.ts.map +1 -0
- package/dist/marshal/consumer.plugin.js +2 -0
- package/dist/marshal/consumer.plugin.js.map +1 -0
- package/dist/marshal/context/agents-context-kind.d.ts +9 -0
- package/dist/marshal/context/agents-context-kind.d.ts.map +1 -0
- package/dist/marshal/context/agents-context-kind.js +17 -0
- package/dist/marshal/context/agents-context-kind.js.map +1 -0
- package/dist/marshal/context/marshal.context-provider.descriptor.d.ts +26 -0
- package/dist/marshal/context/marshal.context-provider.descriptor.d.ts.map +1 -0
- package/dist/marshal/context/marshal.context-provider.descriptor.js +10 -0
- package/dist/marshal/context/marshal.context-provider.descriptor.js.map +1 -0
- package/dist/marshal/context/marshal.context-provider.impl.d.ts +4 -0
- package/dist/marshal/context/marshal.context-provider.impl.d.ts.map +1 -0
- package/dist/marshal/context/marshal.context-provider.impl.js +42 -0
- package/dist/marshal/context/marshal.context-provider.impl.js.map +1 -0
- package/dist/marshal/index.d.ts +29 -0
- package/dist/marshal/index.d.ts.map +1 -0
- package/dist/marshal/index.js +34 -0
- package/dist/marshal/index.js.map +1 -0
- package/dist/marshal/marshal.api-client.descriptor.d.ts +9 -0
- package/dist/marshal/marshal.api-client.descriptor.d.ts.map +1 -0
- package/dist/marshal/marshal.api-client.descriptor.js +19 -0
- package/dist/marshal/marshal.api-client.descriptor.js.map +1 -0
- package/dist/marshal/marshal.consumer.plugin.d.ts +4 -0
- package/dist/marshal/marshal.consumer.plugin.d.ts.map +1 -0
- package/dist/marshal/marshal.consumer.plugin.js +18 -0
- package/dist/marshal/marshal.consumer.plugin.js.map +1 -0
- package/dist/marshal/marshal.plugin.d.ts +10 -0
- package/dist/marshal/marshal.plugin.d.ts.map +1 -0
- package/dist/marshal/marshal.plugin.js +55 -0
- package/dist/marshal/marshal.plugin.js.map +1 -0
- package/dist/marshal/marshal.runtime-client.descriptor.d.ts +9 -0
- package/dist/marshal/marshal.runtime-client.descriptor.d.ts.map +1 -0
- package/dist/marshal/marshal.runtime-client.descriptor.js +19 -0
- package/dist/marshal/marshal.runtime-client.descriptor.js.map +1 -0
- package/dist/marshal/plugin.d.ts +2 -0
- package/dist/marshal/plugin.d.ts.map +1 -0
- package/dist/marshal/plugin.js +2 -0
- package/dist/marshal/plugin.js.map +1 -0
- package/dist/marshal/presence/heartbeat.d.ts +64 -0
- package/dist/marshal/presence/heartbeat.d.ts.map +1 -0
- package/dist/marshal/presence/heartbeat.js +169 -0
- package/dist/marshal/presence/heartbeat.js.map +1 -0
- package/dist/marshal/presence/index.d.ts +2 -0
- package/dist/marshal/presence/index.d.ts.map +1 -0
- package/dist/marshal/presence/index.js +2 -0
- package/dist/marshal/presence/index.js.map +1 -0
- package/dist/marshal/schemas/agent.d.ts +27 -0
- package/dist/marshal/schemas/agent.d.ts.map +1 -0
- package/dist/marshal/schemas/agent.js +2 -0
- package/dist/marshal/schemas/agent.js.map +1 -0
- package/dist/marshal/schemas/baseline.d.ts +73 -0
- package/dist/marshal/schemas/baseline.d.ts.map +1 -0
- package/dist/marshal/schemas/baseline.js +28 -0
- package/dist/marshal/schemas/baseline.js.map +1 -0
- package/dist/marshal/schemas/client.d.ts +50 -0
- package/dist/marshal/schemas/client.d.ts.map +1 -0
- package/dist/marshal/schemas/client.js +27 -0
- package/dist/marshal/schemas/client.js.map +1 -0
- package/dist/marshal/schemas/common.d.ts +252 -0
- package/dist/marshal/schemas/common.d.ts.map +1 -0
- package/dist/marshal/schemas/common.js +119 -0
- package/dist/marshal/schemas/common.js.map +1 -0
- package/dist/marshal/schemas/components.d.ts +95 -0
- package/dist/marshal/schemas/components.d.ts.map +1 -0
- package/dist/marshal/schemas/components.js +10 -0
- package/dist/marshal/schemas/components.js.map +1 -0
- package/dist/marshal/schemas/config.d.ts +20 -0
- package/dist/marshal/schemas/config.d.ts.map +1 -0
- package/dist/marshal/schemas/config.js +11 -0
- package/dist/marshal/schemas/config.js.map +1 -0
- package/dist/marshal/schemas/index.d.ts +18 -0
- package/dist/marshal/schemas/index.d.ts.map +1 -0
- package/dist/marshal/schemas/index.js +11 -0
- package/dist/marshal/schemas/index.js.map +1 -0
- package/dist/marshal/schemas/interactive.d.ts +315 -0
- package/dist/marshal/schemas/interactive.d.ts.map +1 -0
- package/dist/marshal/schemas/interactive.js +201 -0
- package/dist/marshal/schemas/interactive.js.map +1 -0
- package/dist/marshal/schemas/presence.d.ts +29 -0
- package/dist/marshal/schemas/presence.d.ts.map +1 -0
- package/dist/marshal/schemas/presence.js +14 -0
- package/dist/marshal/schemas/presence.js.map +1 -0
- package/dist/marshal/schemas/progress.d.ts +100 -0
- package/dist/marshal/schemas/progress.d.ts.map +1 -0
- package/dist/marshal/schemas/progress.js +55 -0
- package/dist/marshal/schemas/progress.js.map +1 -0
- package/dist/marshal/schemas/server.d.ts +70 -0
- package/dist/marshal/schemas/server.d.ts.map +1 -0
- package/dist/marshal/schemas/server.js +39 -0
- package/dist/marshal/schemas/server.js.map +1 -0
- package/dist/marshal/schemas/setup.d.ts +78 -0
- package/dist/marshal/schemas/setup.d.ts.map +1 -0
- package/dist/marshal/schemas/setup.js +2 -0
- package/dist/marshal/schemas/setup.js.map +1 -0
- package/dist/marshal/schemas/tools.d.ts +124 -0
- package/dist/marshal/schemas/tools.d.ts.map +1 -0
- package/dist/marshal/schemas/tools.js +75 -0
- package/dist/marshal/schemas/tools.js.map +1 -0
- package/dist/marshal/schemas/types.d.ts +33 -0
- package/dist/marshal/schemas/types.d.ts.map +1 -0
- package/dist/marshal/schemas/types.js +2 -0
- package/dist/marshal/schemas/types.js.map +1 -0
- package/dist/marshal/schemas/worker.d.ts +8 -0
- package/dist/marshal/schemas/worker.d.ts.map +1 -0
- package/dist/marshal/schemas/worker.js +7 -0
- package/dist/marshal/schemas/worker.js.map +1 -0
- package/dist/marshal/setup/guided.d.ts +26 -0
- package/dist/marshal/setup/guided.d.ts.map +1 -0
- package/dist/marshal/setup/guided.js +83 -0
- package/dist/marshal/setup/guided.js.map +1 -0
- package/dist/marshal/setup/index.d.ts +12 -0
- package/dist/marshal/setup/index.d.ts.map +1 -0
- package/dist/marshal/setup/index.js +11 -0
- package/dist/marshal/setup/index.js.map +1 -0
- package/dist/marshal/setup/provider-runtime.d.ts +23 -0
- package/dist/marshal/setup/provider-runtime.d.ts.map +1 -0
- package/dist/marshal/setup/provider-runtime.detected-models.d.ts +239 -0
- package/dist/marshal/setup/provider-runtime.detected-models.d.ts.map +1 -0
- package/dist/marshal/setup/provider-runtime.detected-models.js +30 -0
- package/dist/marshal/setup/provider-runtime.detected-models.js.map +1 -0
- package/dist/marshal/setup/provider-runtime.js +115 -0
- package/dist/marshal/setup/provider-runtime.js.map +1 -0
- package/dist/marshal/setup/provider-runtime.models.d.ts +38 -0
- package/dist/marshal/setup/provider-runtime.models.d.ts.map +1 -0
- package/dist/marshal/setup/provider-runtime.models.js +38 -0
- package/dist/marshal/setup/provider-runtime.models.js.map +1 -0
- package/dist/marshal/setup/save-baseline.d.ts +12 -0
- package/dist/marshal/setup/save-baseline.d.ts.map +1 -0
- package/dist/marshal/setup/save-baseline.js +89 -0
- package/dist/marshal/setup/save-baseline.js.map +1 -0
- package/dist/marshal/setup/save-baseline.normalizers.d.ts +20 -0
- package/dist/marshal/setup/save-baseline.normalizers.d.ts.map +1 -0
- package/dist/marshal/setup/save-baseline.normalizers.js +72 -0
- package/dist/marshal/setup/save-baseline.normalizers.js.map +1 -0
- package/dist/marshal/setup/types.d.ts +17 -0
- package/dist/marshal/setup/types.d.ts.map +1 -0
- package/dist/marshal/setup/types.js +26 -0
- package/dist/marshal/setup/types.js.map +1 -0
- package/dist/marshal/tools/index.d.ts +9 -0
- package/dist/marshal/tools/index.d.ts.map +1 -0
- package/dist/marshal/tools/index.js +9 -0
- package/dist/marshal/tools/index.js.map +1 -0
- package/dist/marshal/tools/unified/descriptor.d.ts +130 -0
- package/dist/marshal/tools/unified/descriptor.d.ts.map +1 -0
- package/dist/marshal/tools/unified/descriptor.js +53 -0
- package/dist/marshal/tools/unified/descriptor.js.map +1 -0
- package/dist/marshal/tools/unified/index.d.ts +10 -0
- package/dist/marshal/tools/unified/index.d.ts.map +1 -0
- package/dist/marshal/tools/unified/index.js +9 -0
- package/dist/marshal/tools/unified/index.js.map +1 -0
- package/dist/marshal/tools/unified/marshal.execution.d.ts +12 -0
- package/dist/marshal/tools/unified/marshal.execution.d.ts.map +1 -0
- package/dist/marshal/tools/unified/marshal.execution.js +104 -0
- package/dist/marshal/tools/unified/marshal.execution.js.map +1 -0
- package/dist/marshal/tools/unified/marshal.impl.cloud.d.ts +13 -0
- package/dist/marshal/tools/unified/marshal.impl.cloud.d.ts.map +1 -0
- package/dist/marshal/tools/unified/marshal.impl.cloud.js +15 -0
- package/dist/marshal/tools/unified/marshal.impl.cloud.js.map +1 -0
- package/dist/marshal/tools/unified/marshal.impl.consumer.d.ts +13 -0
- package/dist/marshal/tools/unified/marshal.impl.consumer.d.ts.map +1 -0
- package/dist/marshal/tools/unified/marshal.impl.consumer.js +15 -0
- package/dist/marshal/tools/unified/marshal.impl.consumer.js.map +1 -0
- package/dist/marshal/tools/unified/marshal.unified.descriptor.d.ts +140 -0
- package/dist/marshal/tools/unified/marshal.unified.descriptor.d.ts.map +1 -0
- package/dist/marshal/tools/unified/marshal.unified.descriptor.js +57 -0
- package/dist/marshal/tools/unified/marshal.unified.descriptor.js.map +1 -0
- package/dist/marshal/tools/unified/schemas.d.ts +8 -0
- package/dist/marshal/tools/unified/schemas.d.ts.map +1 -0
- package/dist/marshal/tools/unified/schemas.js +7 -0
- package/dist/marshal/tools/unified/schemas.js.map +1 -0
- package/dist/marshal/types.d.ts +2 -0
- package/dist/marshal/types.d.ts.map +1 -0
- package/dist/marshal/types.js +2 -0
- package/dist/marshal/types.js.map +1 -0
- package/dist/marshal/worker/index.d.ts +6 -0
- package/dist/marshal/worker/index.d.ts.map +1 -0
- package/dist/marshal/worker/index.js +5 -0
- package/dist/marshal/worker/index.js.map +1 -0
- package/dist/marshal/worker/jobs/assistance-job.d.ts +34 -0
- package/dist/marshal/worker/jobs/assistance-job.d.ts.map +1 -0
- package/dist/marshal/worker/jobs/assistance-job.js +43 -0
- package/dist/marshal/worker/jobs/assistance-job.js.map +1 -0
- package/dist/marshal/worker/jobs/configure-job.d.ts +48 -0
- package/dist/marshal/worker/jobs/configure-job.d.ts.map +1 -0
- package/dist/marshal/worker/jobs/configure-job.js +52 -0
- package/dist/marshal/worker/jobs/configure-job.js.map +1 -0
- package/dist/marshal/worker/jobs/index.d.ts +7 -0
- package/dist/marshal/worker/jobs/index.d.ts.map +1 -0
- package/dist/marshal/worker/jobs/index.js +7 -0
- package/dist/marshal/worker/jobs/index.js.map +1 -0
- package/dist/marshal/worker/jobs/onboarding-progress-job.d.ts +47 -0
- package/dist/marshal/worker/jobs/onboarding-progress-job.d.ts.map +1 -0
- package/dist/marshal/worker/jobs/onboarding-progress-job.js +51 -0
- package/dist/marshal/worker/jobs/onboarding-progress-job.js.map +1 -0
- package/dist/marshal/worker/marshal.assistance.job.impl.d.ts +3 -0
- package/dist/marshal/worker/marshal.assistance.job.impl.d.ts.map +1 -0
- package/dist/marshal/worker/marshal.assistance.job.impl.js +3 -0
- package/dist/marshal/worker/marshal.assistance.job.impl.js.map +1 -0
- package/dist/marshal/worker/marshal.concierge.descriptor.d.ts +3 -0
- package/dist/marshal/worker/marshal.concierge.descriptor.d.ts.map +1 -0
- package/dist/marshal/worker/marshal.concierge.descriptor.js +14 -0
- package/dist/marshal/worker/marshal.concierge.descriptor.js.map +1 -0
- package/dist/marshal/worker/marshal.concierge.impl.consumer.d.ts +12 -0
- package/dist/marshal/worker/marshal.concierge.impl.consumer.d.ts.map +1 -0
- package/dist/marshal/worker/marshal.concierge.impl.consumer.js +23 -0
- package/dist/marshal/worker/marshal.concierge.impl.consumer.js.map +1 -0
- package/dist/marshal/worker/marshal.configure.job.impl.d.ts +3 -0
- package/dist/marshal/worker/marshal.configure.job.impl.d.ts.map +1 -0
- package/dist/marshal/worker/marshal.configure.job.impl.js +3 -0
- package/dist/marshal/worker/marshal.configure.job.impl.js.map +1 -0
- package/dist/marshal/worker/marshal.jobs.descriptor.d.ts +6 -0
- package/dist/marshal/worker/marshal.jobs.descriptor.d.ts.map +1 -0
- package/dist/marshal/worker/marshal.jobs.descriptor.js +50 -0
- package/dist/marshal/worker/marshal.jobs.descriptor.js.map +1 -0
- package/dist/marshal/worker/marshal.onboarding-progress.job.impl.d.ts +3 -0
- package/dist/marshal/worker/marshal.onboarding-progress.job.impl.d.ts.map +1 -0
- package/dist/marshal/worker/marshal.onboarding-progress.job.impl.js +3 -0
- package/dist/marshal/worker/marshal.onboarding-progress.job.impl.js.map +1 -0
- package/dist/plugin/agent-tools.d.ts +15 -0
- package/dist/plugin/agent-tools.d.ts.map +1 -0
- package/dist/plugin/agent-tools.js +27 -0
- package/dist/plugin/agent-tools.js.map +1 -0
- package/dist/records/index.d.ts +7 -0
- package/dist/records/index.d.ts.map +1 -0
- package/dist/records/index.js +7 -0
- package/dist/records/index.js.map +1 -0
- package/dist/records/lane.record.descriptor.d.ts +11 -0
- package/dist/records/lane.record.descriptor.d.ts.map +1 -0
- package/dist/records/lane.record.descriptor.js +47 -0
- package/dist/records/lane.record.descriptor.js.map +1 -0
- package/dist/records/note.record.descriptor.d.ts +10 -0
- package/dist/records/note.record.descriptor.d.ts.map +1 -0
- package/dist/records/note.record.descriptor.js +46 -0
- package/dist/records/note.record.descriptor.js.map +1 -0
- package/dist/records/notification.record.descriptor.d.ts +11 -0
- package/dist/records/notification.record.descriptor.d.ts.map +1 -0
- package/dist/records/notification.record.descriptor.js +50 -0
- package/dist/records/notification.record.descriptor.js.map +1 -0
- package/dist/records/request.record.descriptor.d.ts +10 -0
- package/dist/records/request.record.descriptor.d.ts.map +1 -0
- package/dist/records/request.record.descriptor.js +50 -0
- package/dist/records/request.record.descriptor.js.map +1 -0
- package/dist/records/task.record.descriptor.d.ts +10 -0
- package/dist/records/task.record.descriptor.d.ts.map +1 -0
- package/dist/records/task.record.descriptor.js +65 -0
- package/dist/records/task.record.descriptor.js.map +1 -0
- package/dist/records/watch.record.descriptor.d.ts +10 -0
- package/dist/records/watch.record.descriptor.d.ts.map +1 -0
- package/dist/records/watch.record.descriptor.js +48 -0
- package/dist/records/watch.record.descriptor.js.map +1 -0
- package/dist/schemas/agent-action.d.ts +31 -0
- package/dist/schemas/agent-action.d.ts.map +1 -0
- package/dist/schemas/agent-action.js +24 -0
- package/dist/schemas/agent-action.js.map +1 -0
- package/dist/schemas/card-projection.d.ts +193 -0
- package/dist/schemas/card-projection.d.ts.map +1 -0
- package/dist/schemas/card-projection.js +30 -0
- package/dist/schemas/card-projection.js.map +1 -0
- package/dist/schemas/contracts.d.ts +1117 -0
- package/dist/schemas/contracts.d.ts.map +1 -0
- package/dist/schemas/contracts.js +38 -0
- package/dist/schemas/contracts.js.map +1 -0
- package/dist/schemas/headless-attention.d.ts +189 -0
- package/dist/schemas/headless-attention.d.ts.map +1 -0
- package/dist/schemas/headless-attention.js +136 -0
- package/dist/schemas/headless-attention.js.map +1 -0
- package/dist/schemas/index.d.ts +15 -0
- package/dist/schemas/index.d.ts.map +1 -0
- package/dist/schemas/index.js +15 -0
- package/dist/schemas/index.js.map +1 -0
- package/dist/schemas/lane.d.ts +17 -0
- package/dist/schemas/lane.d.ts.map +1 -0
- package/dist/schemas/lane.js +14 -0
- package/dist/schemas/lane.js.map +1 -0
- package/dist/schemas/note.d.ts +14 -0
- package/dist/schemas/note.d.ts.map +1 -0
- package/dist/schemas/note.js +11 -0
- package/dist/schemas/note.js.map +1 -0
- package/dist/schemas/notification.d.ts +33 -0
- package/dist/schemas/notification.d.ts.map +1 -0
- package/dist/schemas/notification.js +19 -0
- package/dist/schemas/notification.js.map +1 -0
- package/dist/schemas/owner.d.ts +27 -0
- package/dist/schemas/owner.d.ts.map +1 -0
- package/dist/schemas/owner.js +18 -0
- package/dist/schemas/owner.js.map +1 -0
- package/dist/schemas/request.d.ts +69 -0
- package/dist/schemas/request.d.ts.map +1 -0
- package/dist/schemas/request.js +53 -0
- package/dist/schemas/request.js.map +1 -0
- package/dist/schemas/state.d.ts +170 -0
- package/dist/schemas/state.d.ts.map +1 -0
- package/dist/schemas/state.js +19 -0
- package/dist/schemas/state.js.map +1 -0
- package/dist/schemas/support-escalate.d.ts +54 -0
- package/dist/schemas/support-escalate.d.ts.map +1 -0
- package/dist/schemas/support-escalate.js +39 -0
- package/dist/schemas/support-escalate.js.map +1 -0
- package/dist/schemas/surface.d.ts +19 -0
- package/dist/schemas/surface.d.ts.map +1 -0
- package/dist/schemas/surface.js +8 -0
- package/dist/schemas/surface.js.map +1 -0
- package/dist/schemas/task.d.ts +70 -0
- package/dist/schemas/task.d.ts.map +1 -0
- package/dist/schemas/task.js +48 -0
- package/dist/schemas/task.js.map +1 -0
- package/dist/schemas/watch.d.ts +44 -0
- package/dist/schemas/watch.d.ts.map +1 -0
- package/dist/schemas/watch.js +19 -0
- package/dist/schemas/watch.js.map +1 -0
- package/dist/schemas/workboard-status-category.d.ts +35 -0
- package/dist/schemas/workboard-status-category.d.ts.map +1 -0
- package/dist/schemas/workboard-status-category.js +45 -0
- package/dist/schemas/workboard-status-category.js.map +1 -0
- package/dist/storage/owner-transforms.d.ts +228 -0
- package/dist/storage/owner-transforms.d.ts.map +1 -0
- package/dist/storage/owner-transforms.js +132 -0
- package/dist/storage/owner-transforms.js.map +1 -0
- package/dist/svelte/components/LaneBoard.svelte +250 -0
- package/dist/svelte/components/LaneBoard.svelte.d.ts +20 -0
- package/dist/svelte/components/LaneBoard.svelte.d.ts.map +1 -0
- package/dist/svelte/components/LaneBoardComposer.svelte +78 -0
- package/dist/svelte/components/LaneBoardComposer.svelte.d.ts +24 -0
- package/dist/svelte/components/LaneBoardComposer.svelte.d.ts.map +1 -0
- package/dist/svelte/components/LaneBoardFilters.svelte +34 -0
- package/dist/svelte/components/LaneBoardFilters.svelte.d.ts +12 -0
- package/dist/svelte/components/LaneBoardFilters.svelte.d.ts.map +1 -0
- package/dist/svelte/components/LaneBoardLane.svelte +46 -0
- package/dist/svelte/components/LaneBoardLane.svelte.d.ts +18 -0
- package/dist/svelte/components/LaneBoardLane.svelte.d.ts.map +1 -0
- package/dist/svelte/components/LaneBoardSummary.svelte +38 -0
- package/dist/svelte/components/LaneBoardSummary.svelte.d.ts +12 -0
- package/dist/svelte/components/LaneBoardSummary.svelte.d.ts.map +1 -0
- package/dist/svelte/components/LaneBoardTaskRow.svelte +158 -0
- package/dist/svelte/components/LaneBoardTaskRow.svelte.d.ts +31 -0
- package/dist/svelte/components/LaneBoardTaskRow.svelte.d.ts.map +1 -0
- package/dist/svelte/components/PriorityBadge.svelte +21 -0
- package/dist/svelte/components/PriorityBadge.svelte.d.ts +7 -0
- package/dist/svelte/components/PriorityBadge.svelte.d.ts.map +1 -0
- package/dist/svelte/components/RequestsQueue.svelte +613 -0
- package/dist/svelte/components/RequestsQueue.svelte.d.ts +21 -0
- package/dist/svelte/components/RequestsQueue.svelte.d.ts.map +1 -0
- package/dist/svelte/components/StatCard.svelte +27 -0
- package/dist/svelte/components/StatCard.svelte.d.ts +12 -0
- package/dist/svelte/components/StatCard.svelte.d.ts.map +1 -0
- package/dist/svelte/components/StatusBadge.svelte +25 -0
- package/dist/svelte/components/StatusBadge.svelte.d.ts +7 -0
- package/dist/svelte/components/StatusBadge.svelte.d.ts.map +1 -0
- package/dist/svelte/components/WorkboardBoard.svelte +467 -0
- package/dist/svelte/components/WorkboardBoard.svelte.d.ts +26 -0
- package/dist/svelte/components/WorkboardBoard.svelte.d.ts.map +1 -0
- package/dist/svelte/index.d.ts +22 -0
- package/dist/svelte/index.d.ts.map +1 -0
- package/dist/svelte/index.js +24 -0
- package/dist/svelte/lane-board-client.d.ts +3 -0
- package/dist/svelte/lane-board-client.d.ts.map +1 -0
- package/dist/svelte/lane-board-client.js +2 -0
- package/dist/svelte/lane-board.d.ts +120 -0
- package/dist/svelte/lane-board.d.ts.map +1 -0
- package/dist/svelte/lane-board.js +221 -0
- package/dist/svelte/rest-workboard-client.d.ts +235 -0
- package/dist/svelte/rest-workboard-client.d.ts.map +1 -0
- package/dist/svelte/rest-workboard-client.js +52 -0
- package/dist/svelte/styles.css +10 -0
- package/dist/svelte/tool-widgets/MarshalToolCard.svelte +67 -0
- package/dist/svelte/tool-widgets/MarshalToolCard.svelte.d.ts +5 -0
- package/dist/svelte/tool-widgets/MarshalToolCard.svelte.d.ts.map +1 -0
- package/dist/svelte/tool-widgets/SupportEscalateToolCard.svelte +42 -0
- package/dist/svelte/tool-widgets/SupportEscalateToolCard.svelte.d.ts +5 -0
- package/dist/svelte/tool-widgets/SupportEscalateToolCard.svelte.d.ts.map +1 -0
- package/dist/svelte/tool-widgets/index.d.ts +7 -0
- package/dist/svelte/tool-widgets/index.d.ts.map +1 -0
- package/dist/svelte/tool-widgets/index.js +6 -0
- package/dist/svelte/types.d.ts +24 -0
- package/dist/svelte/types.d.ts.map +1 -0
- package/dist/svelte/types.js +1 -0
- package/dist/svelte/workboard-svelte.plugin.d.ts +10 -0
- package/dist/svelte/workboard-svelte.plugin.d.ts.map +1 -0
- package/dist/svelte/workboard-svelte.plugin.js +31 -0
- package/dist/svelte/workboard-utils.d.ts +33 -0
- package/dist/svelte/workboard-utils.d.ts.map +1 -0
- package/dist/svelte/workboard-utils.js +85 -0
- package/dist/tools/card-projections.d.ts +7 -0
- package/dist/tools/card-projections.d.ts.map +1 -0
- package/dist/tools/card-projections.js +64 -0
- package/dist/tools/card-projections.js.map +1 -0
- package/dist/tools/support-escalate/schemas.d.ts +2 -0
- package/dist/tools/support-escalate/schemas.d.ts.map +1 -0
- package/dist/tools/support-escalate/schemas.js +2 -0
- package/dist/tools/support-escalate/schemas.js.map +1 -0
- package/dist/tools/support-escalate/support-escalate.descriptor.d.ts +49 -0
- package/dist/tools/support-escalate/support-escalate.descriptor.d.ts.map +1 -0
- package/dist/tools/support-escalate/support-escalate.descriptor.js +42 -0
- package/dist/tools/support-escalate/support-escalate.descriptor.js.map +1 -0
- package/dist/tools/support-escalate/support-escalate.impl.cloud.d.ts +17 -0
- package/dist/tools/support-escalate/support-escalate.impl.cloud.d.ts.map +1 -0
- package/dist/tools/support-escalate/support-escalate.impl.cloud.js +63 -0
- package/dist/tools/support-escalate/support-escalate.impl.cloud.js.map +1 -0
- package/dist/tui/index.d.ts +2 -0
- package/dist/tui/index.d.ts.map +1 -0
- package/dist/tui/index.js +2 -0
- package/dist/tui/index.js.map +1 -0
- package/dist/tui/tool-widgets/MarshalToolWidget.impl.consumer.d.ts +4 -0
- package/dist/tui/tool-widgets/MarshalToolWidget.impl.consumer.d.ts.map +1 -0
- package/dist/tui/tool-widgets/MarshalToolWidget.impl.consumer.js +17 -0
- package/dist/tui/tool-widgets/MarshalToolWidget.impl.consumer.js.map +1 -0
- package/dist/tui/tool-widgets/SupportEscalateToolWidget.impl.consumer.d.ts +4 -0
- package/dist/tui/tool-widgets/SupportEscalateToolWidget.impl.consumer.d.ts.map +1 -0
- package/dist/tui/tool-widgets/SupportEscalateToolWidget.impl.consumer.js +11 -0
- package/dist/tui/tool-widgets/SupportEscalateToolWidget.impl.consumer.js.map +1 -0
- package/dist/tui/workboard-tui.plugin.d.ts +7 -0
- package/dist/tui/workboard-tui.plugin.d.ts.map +1 -0
- package/dist/tui/workboard-tui.plugin.js +32 -0
- package/dist/tui/workboard-tui.plugin.js.map +1 -0
- package/dist/types.d.ts +2 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/types.js +2 -0
- package/dist/types.js.map +1 -0
- package/dist/utils/exec.d.ts +35 -0
- package/dist/utils/exec.d.ts.map +1 -0
- package/dist/utils/exec.js +31 -0
- package/dist/utils/exec.js.map +1 -0
- package/dist/workboard.plugin.d.ts +8 -0
- package/dist/workboard.plugin.d.ts.map +1 -0
- package/dist/workboard.plugin.js +46 -0
- package/dist/workboard.plugin.js.map +1 -0
- package/dist/workboard.runtime-client.descriptor.d.ts +4 -0
- package/dist/workboard.runtime-client.descriptor.d.ts.map +1 -0
- package/dist/workboard.runtime-client.descriptor.js +13 -0
- package/dist/workboard.runtime-client.descriptor.js.map +1 -0
- package/package.json +409 -4
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* support.escalate implementation (cloud/workerd-safe, pure HTTP).
|
|
3
|
+
*
|
|
4
|
+
* Creates an `escalation` workboard request via hq-web's authenticated
|
|
5
|
+
* `POST /api/workboard/requests` (vibesCrudCollection over the
|
|
6
|
+
* `workboard.request` record). The caller's cookie is forwarded from the tool
|
|
7
|
+
* context (set by the native-tools loop), so the request lands owner-scoped
|
|
8
|
+
* to the authenticated user/org — provenance is stamped server-side, never
|
|
9
|
+
* trusted from the model.
|
|
10
|
+
*/
|
|
11
|
+
import { CapabilityError } from '@vibesdotdev/kernel';
|
|
12
|
+
import { SupportEscalateCallerMetadataSchema, SupportEscalateResponseSchema } from "../../schemas/support-escalate.js";
|
|
13
|
+
import { WorkboardRequestDraftSchema } from "../../schemas/contracts.js";
|
|
14
|
+
import { serviceOrigin } from '@vibesdotdev/infra-core/service';
|
|
15
|
+
import { SupportEscalateInputSchema } from "./schemas.js";
|
|
16
|
+
/**
|
|
17
|
+
* hq-web's origin: the declared `hq` `infra/service` in the handed runtime's
|
|
18
|
+
* configured service environment (rc04 §2.4). No origin env and no production
|
|
19
|
+
* default; an undeclared service fails `NOT_FOUND` `service-undeclared`.
|
|
20
|
+
*/
|
|
21
|
+
async function resolveHqOrigin(runtime) {
|
|
22
|
+
return (await serviceOrigin(runtime, 'hq')).replace(/\/$/, '');
|
|
23
|
+
}
|
|
24
|
+
export default {
|
|
25
|
+
async execute(input, runtime, ctx) {
|
|
26
|
+
const parsed = SupportEscalateInputSchema.parse(input);
|
|
27
|
+
const metadata = SupportEscalateCallerMetadataSchema.parse(ctx.metadata ?? {});
|
|
28
|
+
const cookie = metadata.cookie;
|
|
29
|
+
if (!cookie)
|
|
30
|
+
throw new CapabilityError('support.escalate requires an authenticated caller cookie.', 'UNAVAILABLE', { reason: 'support-escalate-auth-required' });
|
|
31
|
+
const sessionId = runtime.scope.actor?.sessionId?.trim() || metadata.sessionId || metadata.codeSessionId;
|
|
32
|
+
const origin = await resolveHqOrigin(runtime);
|
|
33
|
+
const draft = WorkboardRequestDraftSchema.parse({
|
|
34
|
+
title: parsed.title,
|
|
35
|
+
type: 'escalation',
|
|
36
|
+
description: parsed.summary,
|
|
37
|
+
details: { severity: parsed.severity, context: parsed.context }
|
|
38
|
+
});
|
|
39
|
+
if (sessionId)
|
|
40
|
+
draft.links = [{ kind: 'session', id: sessionId, source: 'workboard', role: 'executed-by' }];
|
|
41
|
+
const response = await fetch(new URL('/api/workboard/requests', `${origin}/`), {
|
|
42
|
+
method: 'POST',
|
|
43
|
+
headers: { accept: 'application/json', 'content-type': 'application/json', cookie },
|
|
44
|
+
body: JSON.stringify(draft)
|
|
45
|
+
});
|
|
46
|
+
if (!response.ok) {
|
|
47
|
+
throw new CapabilityError(`Escalation could not be filed: workboard requests endpoint returned ${response.status}`, 'UNAVAILABLE', { reason: 'support-escalate-http-failed' });
|
|
48
|
+
}
|
|
49
|
+
const payload = await response.json().catch((cause) => {
|
|
50
|
+
throw new CapabilityError('Escalation response is not JSON', 'UNAVAILABLE', {
|
|
51
|
+
reason: 'support-escalate-response-invalid', cause
|
|
52
|
+
});
|
|
53
|
+
});
|
|
54
|
+
const record = SupportEscalateResponseSchema.safeParse(payload);
|
|
55
|
+
if (!record.success)
|
|
56
|
+
throw new CapabilityError('support-escalate-response-invalid', 'UNAVAILABLE', { reason: 'support-escalate-response-invalid' });
|
|
57
|
+
return {
|
|
58
|
+
requestId: record.data.id,
|
|
59
|
+
message: 'Escalation filed with the platform team. They can see the error details; the user does not need to do anything else.'
|
|
60
|
+
};
|
|
61
|
+
}
|
|
62
|
+
};
|
|
63
|
+
//# sourceMappingURL=support-escalate.impl.cloud.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"support-escalate.impl.cloud.js","sourceRoot":"","sources":["../../../src/tools/support-escalate/support-escalate.impl.cloud.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAGH,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AACtD,OAAO,EAAE,mCAAmC,EAAC,6BAA6B,EAAE,MAAM,mCAAmC,CAAC;AACtH,OAAO,EAAE,2BAA2B,EAAE,MAAM,4BAA4B,CAAC;AACzE,OAAO,EAAE,aAAa,EAAE,MAAM,iCAAiC,CAAC;AAChE,OAAO,EACN,0BAA0B,EAG1B,MAAM,cAAc,CAAC;AAEtB;;;;GAIG;AACH,KAAK,UAAU,eAAe,CAAC,OAAqB;IACnD,OAAO,CAAC,MAAM,aAAa,CAAC,OAAO,EAAC,IAAI,CAAC,CAAC,CAAC,OAAO,CA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YACd,OAAO,EAAE,EAAE,MAAM,EAAE,kBAAkB,EAAC,cAAc,EAAE,kBAAkB,EAAC,MAAM,EAAE;YACjF,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC;SAC3B,CAAC,CAAC;QAEH,IAAG,CAAC,QAAQ,CAAC,EAAE,EAAE,CAAC;YACjB,MAAM,IAAI,eAAe,CAAC,uEAAuE,QAAQ,CAAC,MAAM,EAAE,EAAC,aAAa,EAAC,EAAE,MAAM,EAAE,8BAA8B,EAAE,CAAC,CAAC;QAC9K,CAAC;QACD,MAAM,OAAO,GAAC,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAC,KAAK,CAAC,CAAC,KAAK,EAAE,EAAE;YACnD,MAAM,IAAI,eAAe,CAAC,iCAAiC,EAAC,aAAa,EAAC;gBACzE,MAAM,EAAE,mCAAmC,EAAC,KAAK;aACjD,CAAC,CAAC;QACJ,CAAC,CAAC,CAAC;QACH,MAAM,MAAM,GAAC,6BAA6B,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC;QAC9D,IAAG,CAAC,MAAM,CAAC,OAAO;YAAE,MAAM,IAAI,eAAe,CAAC,mCAAmC,EAAC,aAAa,EAAC,EAAE,MAAM,EAAE,mCAAmC,EAAE,CAAC,CAAC;QACjJ,OAAO;YACN,SAAS,EAAE,MAAM,CAAC,IAAI,CAAC,EAAE;YACzB,OAAO,EAAE,sHAAsH;SAC/H,CAAC;IACH,CAAC;CACD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/tui/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,IAAI,OAAO,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/tui/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,IAAI,OAAO,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MarshalToolWidget.impl.consumer.d.ts","sourceRoot":"","sources":["../../../src/tui/tool-widgets/MarshalToolWidget.impl.consumer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAGvC,OAAO,EAAkB,KAAK,kBAAkB,EAAE,MAAM,qCAAqC,CAAC;AAG9F,MAAM,CAAC,OAAO,UAAU,iBAAiB,CAAC,IAAI,EAAE,kBAAkB,GAAG,SAAS,CAuC7E"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "@opentui/react/jsx-runtime";
|
|
2
|
+
import { VStack } from '@vibesdotdev/tui/components/layout';
|
|
3
|
+
import { dsBase, dsColors, dsSpace } from '@vibesdotdev/tui/theme';
|
|
4
|
+
import { ToolWidgetCard } from '@vibesdotdev/tools/tui/tool-widgets';
|
|
5
|
+
import { marshalCardView } from "../../tools/card-projections.js";
|
|
6
|
+
export default function MarshalToolWidget(tool) {
|
|
7
|
+
const view = marshalCardView(tool.args, tool.output);
|
|
8
|
+
const meta = [
|
|
9
|
+
view.action === 'unknown' ? '' : view.action,
|
|
10
|
+
view.agentId,
|
|
11
|
+
view.available === true ? 'available' : view.available === false ? 'unavailable' : '',
|
|
12
|
+
view.authenticated === true ? 'signed in' : view.authenticated === false ? 'unsigned' : '',
|
|
13
|
+
view.receipt?.state
|
|
14
|
+
].filter(Boolean);
|
|
15
|
+
return (_jsx(ToolWidgetCard, { tool: tool, title: view.title, defaultOpen: tool.status !== 'done' || view.success === false, children: _jsxs(VStack, { gap: dsSpace.xs, children: [meta.length > 0 ? (_jsx("text", { style: { fg: dsBase.mutedForeground }, children: meta.join(' | ') })) : null, view.query ? _jsx("text", { style: { fg: dsBase.foreground }, children: view.query }) : null, view.message && view.message !== view.query ? (_jsx("text", { style: { fg: dsBase.mutedForeground }, children: view.message })) : null, view.receipt?.runId ? (_jsxs("text", { style: { fg: dsBase.mutedForeground }, children: ["run ", view.receipt.runId] })) : null, view.receipt?.session ? (_jsxs("text", { style: { fg: dsBase.mutedForeground }, children: ["session ", view.receipt.session] })) : null, view.receipt?.error ? (_jsx("text", { style: { fg: dsColors.danger.solid }, children: view.receipt.error })) : null, view.executorId && view.action === 'status' ? (_jsx("text", { style: { fg: dsBase.mutedForeground }, children: view.executorId })) : null] }) }));
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=MarshalToolWidget.impl.consumer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MarshalToolWidget.impl.consumer.js","sourceRoot":"","sources":["../../../src/tui/tool-widgets/MarshalToolWidget.impl.consumer.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,MAAM,EAAE,MAAM,oCAAoC,CAAC;AAC5D,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;AACnE,OAAO,EAAE,cAAc,EAA2B,MAAM,qCAAqC,CAAC;AAC9F,OAAO,EAAE,eAAe,EAAE,MAAM,iCAAiC,CAAC;AAElE,MAAM,CAAC,OAAO,UAAU,iBAAiB,CAAC,IAAwB;IACjE,MAAM,IAAI,GAAG,eAAe,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,MAAM,CAAC,CAAC;IACrD,MAAM,IAAI,GAAG;QACZ,IAAI,CAAC,MAAM,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM;QAC5C,IAAI,CAAC,OAAO;QACZ,IAAI,CAAC,SAAS,KAAK,IAAI,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,KAAK,KAAK,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,EAAE;QACrF,IAAI,CAAC,aAAa,KAAK,IAAI,C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CAAC,CAAC,CAAC,CACxB,gBAAM,KAAK,EAAE,EAAE,EAAE,EAAE,MAAM,CAAC,eAAe,EAAE,yBAAW,IAAI,CAAC,OAAO,CAAC,OAAO,IAAQ,CAClF,CAAC,CAAC,CAAC,IAAI,EACP,IAAI,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC,CAAC,CACtB,eAAM,KAAK,EAAE,EAAE,EAAE,EAAE,QAAQ,CAAC,MAAM,CAAC,KAAK,EAAE,YAAG,IAAI,CAAC,OAAO,CAAC,KAAK,GAAQ,CACvE,CAAC,CAAC,CAAC,IAAI,EACP,IAAI,CAAC,UAAU,IAAI,IAAI,CAAC,MAAM,KAAK,QAAQ,CAAC,CAAC,CAAC,CAC9C,eAAM,KAAK,EAAE,EAAE,EAAE,EAAE,MAAM,CAAC,eAAe,EAAE,YAAG,IAAI,CAAC,UAAU,GAAQ,CACrE,CAAC,CAAC,CAAC,IAAI,IACA,GACO,CACjB,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
import { type TuiToolWidgetProps } from '@vibesdotdev/tools/tui/tool-widgets';
|
|
3
|
+
export default function SupportEscalateToolWidget(tool: TuiToolWidgetProps): ReactNode;
|
|
4
|
+
//# sourceMappingURL=SupportEscalateToolWidget.impl.consumer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SupportEscalateToolWidget.impl.consumer.d.ts","sourceRoot":"","sources":["../../../src/tui/tool-widgets/SupportEscalateToolWidget.impl.consumer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAGvC,OAAO,EAAkB,KAAK,kBAAkB,EAAE,MAAM,qCAAqC,CAAC;AAG9F,MAAM,CAAC,OAAO,UAAU,yBAAyB,CAAC,IAAI,EAAE,kBAAkB,GAAG,SAAS,CAoBrF"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "@opentui/react/jsx-runtime";
|
|
2
|
+
import { VStack } from '@vibesdotdev/tui/components/layout';
|
|
3
|
+
import { dsBase, dsColors, dsSpace } from '@vibesdotdev/tui/theme';
|
|
4
|
+
import { ToolWidgetCard } from '@vibesdotdev/tools/tui/tool-widgets';
|
|
5
|
+
import { supportEscalateCardView } from "../../tools/card-projections.js";
|
|
6
|
+
export default function SupportEscalateToolWidget(tool) {
|
|
7
|
+
const view = supportEscalateCardView(tool.args, tool.output);
|
|
8
|
+
const meta = [view.severity, view.requestId, ...view.contextKeys].filter(Boolean);
|
|
9
|
+
return (_jsx(ToolWidgetCard, { tool: tool, title: view.title, defaultOpen: tool.status !== 'done' || !view.requestId, children: _jsxs(VStack, { gap: dsSpace.xs, children: [meta.length > 0 ? (_jsx("text", { style: { fg: dsBase.mutedForeground }, children: meta.join(' | ') })) : null, view.summary ? _jsx("text", { style: { fg: dsBase.foreground }, children: view.summary }) : null, view.message ? _jsx("text", { style: { fg: dsBase.mutedForeground }, children: view.message }) : null, tool.error ? _jsx("text", { style: { fg: dsColors.danger.solid }, children: tool.error }) : null] }) }));
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=SupportEscalateToolWidget.impl.consumer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SupportEscalateToolWidget.impl.consumer.js","sourceRoot":"","sources":["../../../src/tui/tool-widgets/SupportEscalateToolWidget.impl.consumer.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,MAAM,EAAE,MAAM,oCAAoC,CAAC;AAC5D,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;AACnE,OAAO,EAAE,cAAc,EAA2B,MAAM,qCAAqC,CAAC;AAC9F,OAAO,EAAE,uBAAuB,EAAE,MAAM,iCAAiC,CAAC;AAE1E,MAAM,CAAC,OAAO,UAAU,yBAAyB,CAAC,IAAwB;IACzE,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terminal tool-result cards for workboard-owned agent tools.
|
|
3
|
+
* Registers `tools/ui` widgets only — not tui/app or tui/command.
|
|
4
|
+
*/
|
|
5
|
+
export declare const workboardTuiPlugin: import("@vibesdotdev/kernel").RuntimePlugin;
|
|
6
|
+
export default workboardTuiPlugin;
|
|
7
|
+
//# sourceMappingURL=workboard-tui.plugin.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"workboard-tui.plugin.d.ts","sourceRoot":"","sources":["../../src/tui/workboard-tui.plugin.ts"],"names":[],"mappings":"AAGA;;;GAGG;AACH,eAAO,MAAM,kBAAkB,6CAwB7B,CAAC;AAEH,eAAe,kBAAkB,CAAC"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { createRuntimePlugin } from '@vibesdotdev/kernel';
|
|
2
|
+
import { registerTuiToolWidget } from '@vibesdotdev/tools/tui/tool-widgets';
|
|
3
|
+
/**
|
|
4
|
+
* Terminal tool-result cards for workboard-owned agent tools.
|
|
5
|
+
* Registers `tools/ui` widgets only — not tui/app or tui/command.
|
|
6
|
+
*/
|
|
7
|
+
export const workboardTuiPlugin = createRuntimePlugin({
|
|
8
|
+
id: 'workboard.tui',
|
|
9
|
+
name: 'Workboard TUI Surface',
|
|
10
|
+
description: 'Terminal tool-result cards for marshal and support.escalate.',
|
|
11
|
+
dependencies: ['tools'],
|
|
12
|
+
onActivate(runtime) {
|
|
13
|
+
registerTuiToolWidget(runtime, {
|
|
14
|
+
toolId: 'marshal',
|
|
15
|
+
id: 'marshal.tui-widget',
|
|
16
|
+
name: 'Marshal TUI Widget',
|
|
17
|
+
description: 'Renders marshal status, delegate, and ask results in terminal chat.',
|
|
18
|
+
tags: ['marshal', 'delegation', 'tui'],
|
|
19
|
+
load: () => import("./tool-widgets/MarshalToolWidget.impl.consumer.js")
|
|
20
|
+
});
|
|
21
|
+
registerTuiToolWidget(runtime, {
|
|
22
|
+
toolId: 'support.escalate',
|
|
23
|
+
id: 'support.escalate.tui-widget',
|
|
24
|
+
name: 'Support Escalate TUI Widget',
|
|
25
|
+
description: 'Renders support.escalate filings in terminal chat.',
|
|
26
|
+
tags: ['support', 'escalation', 'workboard', 'tui'],
|
|
27
|
+
load: () => import("./tool-widgets/SupportEscalateToolWidget.impl.consumer.js")
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
export default workboardTuiPlugin;
|
|
32
|
+
//# sourceMappingURL=workboard-tui.plugin.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"workboard-tui.plugin.js","sourceRoot":"","sources":["../../src/tui/workboard-tui.plugin.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AAC1D,OAAO,EAAE,qBAAqB,EAAE,MAAM,qCAAqC,CAAC;AAE5E;;;GAGG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG,mBAAmB,CAAC;IACrD,EAAE,EAAE,eAAe;IACnB,IAAI,EAAE,uBAAuB;IAC7B,WAAW,EAAE,8DAA8D;IAC3E,YAAY,EAAE,CAAC,OAAO,CAAC;IAEvB,UAAU,CAAC,OAAO;QACjB,qBAAqB,CAAC,OAAO,EAAE;YAC9B,MAAM,EAAE,SAAS;YACjB,EAAE,EAAE,oBAAoB;YACxB,IAAI,EAAE,oBAAoB;YAC1B,WAAW,EAAE,qEAAqE;YAClF,IAAI,EAAE,CAAC,SAAS,EAAE,YAAY,EAAE,KAAK,CAAC;YACtC,IAAI,EAAE,GAAG,EAAE,CAAC,MAAM,CAAC,mDAAoD,CAAC;SACxE,CAAC,CAAC;QACH,qBAAqB,CAAC,OAAO,EAAE;YAC9B,MAAM,EAAE,kBAAkB;YAC1B,EAAE,EAAE,6BAA6B;YACjC,IAAI,EAAE,6BAA6B;YACnC,WAAW,EAAE,oDAAoD;YACjE,IAAI,EAAE,CAAC,SAAS,EAAE,YAAY,EAAE,WAAW,EAAE,KAAK,CAAC;YACnD,IAAI,EAAE,GAAG,EAAE,CAAC,MAAM,CAAC,2DAA4D,CAAC;SAChF,CAAC,CAAC;IACJ,CAAC;CACD,CAAC,CAAC;AAEH,eAAe,kBAAkB,CAAC"}
|
package/dist/types.d.ts
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export type { WorkboardLane, TaskNote, TaskStatus, TaskPriority, WorkboardTask, WatchType, WatchAlert, WorkboardWatchItem, NotificationSeverity, WorkboardNotification, WorkboardNote, RequestType, RequestStatus, WorkboardRequest, WorkboardHeadlessAttentionDraft, WorkboardHeadlessAttentionOpenInput, WorkboardHeadlessAttentionDetails, WorkboardHeadlessAttentionRequestDraft, WorkboardHeadlessAttentionDecision, WorkboardHeadlessAttentionDecisionInput, WorkboardHeadlessAttentionDecisionReceipt, WorkboardAgentMessageInput, WorkboardAgentMessage, WorkboardPlanConfirmationInput, WorkboardPlanConfirmation, WorkboardState } from './schemas/index.ts';
|
|
2
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,YAAY,EACX,aAAa,EACb,QAAQ,EACR,UAAU,EACV,YAAY,EACZ,aAAa,EACb,SAAS,EACT,UAAU,EACV,kBAAkB,EAClB,oBAAoB,EACpB,qBAAqB,EACrB,aAAa,EACb,WAAW,EACX,aAAa,EACb,gBAAgB,EAChB,+BAA+B,EAC/B,mCAAmC,EACnC,iCAAiC,EACjC,sCAAsC,EACtC,kCAAkC,EAClC,uCAAuC,EACvC,yCAAyC,EACzC,0BAA0B,EAC1B,qBAAqB,EACrB,8BAA8B,EAC9B,yBAAyB,EACzB,cAAc,EACd,MAAM,oBAAoB,CAAC"}
|
package/dist/types.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/** Buffered execution resolves the handed runtime owner; stream failures propagate. */
|
|
2
|
+
import type { RuntimeRef } from '@vibesdotdev/kernel';
|
|
3
|
+
/** Structural compatibility with an already-owned process; execution remains runtime-owned. */
|
|
4
|
+
interface Child {
|
|
5
|
+
exitCode: number | null;
|
|
6
|
+
once(event: 'close', callback: (code: number | null) => void): Child;
|
|
7
|
+
once(event: 'error', callback: (error: Error) => void): Child;
|
|
8
|
+
stdout: ChildStream | null;
|
|
9
|
+
stderr: ChildStream | null;
|
|
10
|
+
}
|
|
11
|
+
interface ChildStream {
|
|
12
|
+
on(event: 'data', callback: (chunk: Uint8Array | string) => void): ChildStream;
|
|
13
|
+
on(event: 'end', callback: () => void): ChildStream;
|
|
14
|
+
on(event: 'error', callback: (error: Error) => void): ChildStream;
|
|
15
|
+
}
|
|
16
|
+
export type RunCaptureResult = {
|
|
17
|
+
exitCode: number;
|
|
18
|
+
stdout: string;
|
|
19
|
+
stderr: string;
|
|
20
|
+
};
|
|
21
|
+
export type RunCaptureOptions = {
|
|
22
|
+
runtime: RuntimeRef;
|
|
23
|
+
cwd?: string;
|
|
24
|
+
env?: Record<string, string | undefined>;
|
|
25
|
+
stdin?: string;
|
|
26
|
+
signal?: AbortSignal;
|
|
27
|
+
};
|
|
28
|
+
/** Compatibility observer for callers holding an existing child handle. */
|
|
29
|
+
export declare function exitedCode(proc: Child): Promise<number>;
|
|
30
|
+
/** Collect an existing child stream; reject failed reads. */
|
|
31
|
+
export declare function readStreamText(stream: Child['stdout'] | Child['stderr']): Promise<string>;
|
|
32
|
+
/** Spawn a command, capture stdout/stderr as text, and await its exit. */
|
|
33
|
+
export declare function runCapture(cmd: string, args: readonly string[], options: RunCaptureOptions): Promise<RunCaptureResult>;
|
|
34
|
+
export {};
|
|
35
|
+
//# sourceMappingURL=exec.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"exec.d.ts","sourceRoot":"","sources":["../../src/utils/exec.ts"],"names":[],"mappings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,wBAAgB,UAAU,CAAC,IAAI,EAAE,KAAK,GAAG,OAAO,CAAC,MAAM,CAAC,CAKvD;AAED,6DAA6D;AAC7D,wBAAgB,cAAc,CAAC,MAAM,EAAE,KAAK,CAAC,QAAQ,CAAC,GAAG,KAAK,CAAC,QAAQ,CAAC,GAAG,OAAO,CAAC,MAAM,CAAC,CASzF;AAED,0EAA0E;AAC1E,wBAAsB,UAAU,CAC/B,GAAG,EAAE,MAAM,EACX,IAAI,EAAE,SAAS,MAAM,EAAE,EACvB,OAAO,EAAE,iBAAiB,GACxB,OAAO,CAAC,gBAAgB,CAAC,CAQ3B"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/** Buffered execution resolves the handed runtime owner; stream failures propagate. */
|
|
2
|
+
/** Compatibility observer for callers holding an existing child handle. */
|
|
3
|
+
export function exitedCode(proc) {
|
|
4
|
+
return new Promise((resolve, reject) => {
|
|
5
|
+
proc.once('close', (code) => resolve(code ?? proc.exitCode ?? -1));
|
|
6
|
+
proc.once('error', reject);
|
|
7
|
+
});
|
|
8
|
+
}
|
|
9
|
+
/** Collect an existing child stream; reject failed reads. */
|
|
10
|
+
export function readStreamText(stream) {
|
|
11
|
+
return new Promise((resolve, reject) => {
|
|
12
|
+
if (!stream)
|
|
13
|
+
return resolve('');
|
|
14
|
+
const decoder = new TextDecoder();
|
|
15
|
+
let text = '';
|
|
16
|
+
stream.on('data', chunk => { text += chunk instanceof Uint8Array ? decoder.decode(chunk, { stream: true }) : chunk; });
|
|
17
|
+
stream.on('end', () => resolve(text + decoder.decode()));
|
|
18
|
+
stream.on('error', reject);
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
/** Spawn a command, capture stdout/stderr as text, and await its exit. */
|
|
22
|
+
export async function runCapture(cmd, args, options) {
|
|
23
|
+
const execution = await options.runtime.query('runtime/execution').resolve();
|
|
24
|
+
const env = Object.fromEntries(Object.entries(options.env ?? {}).filter((entry) => entry[1] !== undefined));
|
|
25
|
+
const result = await execution.execute({
|
|
26
|
+
command: cmd, args: [...args], cwd: options.cwd, env, envMode: 'replace',
|
|
27
|
+
stdin: options.stdin, signal: options.signal
|
|
28
|
+
});
|
|
29
|
+
return { exitCode: result.exitCode ?? -1, stdout: result.stdout, stderr: result.stderr };
|
|
30
|
+
}
|
|
31
|
+
//# sourceMappingURL=exec.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"exec.js","sourceRoot":"","sources":["../../src/utils/exec.ts"],"names":[],"mappings":"AAAA,uFAAuF;AAiCvF,2EAA2E;AAC3E,MAAM,UAAU,UAAU,CAAC,IAAW;IACrC,OAAO,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE;QACtC,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,OAAO,CAAC,IAAI,IAAI,IAAI,CAAC,QAAQ,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC;QACnE,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC;IAC5B,CAAC,CAAC,CAAC;AACJ,CAAC;AAED,6DAA6D;AAC7D,MAAM,UAAU,cAAc,CAAC,MAAyC;IACvE,OAAO,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE;QACtC,IAAI,CAAC,MAAM;YAAE,OAAO,OAAO,CAAC,EAAE,CAAC,CAAC;QAChC,MAAM,OAAO,GAAG,IAAI,WAAW,EAAE,CAAC;QAClC,IAAI,IAAI,GAAG,EAAE,CAAC;QACd,MAAM,CAAC,EAAE,CAAC,MAAM,EAAE,KAAK,CAAC,EAAE,GAAG,IAAI,IAAI,KAAK,YAAY,UAAU,CAAC,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC,KAAK,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;QACvH,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,IAAI,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC;QACzD,MAAM,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC;IAC5B,CAAC,CAAC,CAAC;AACJ,CAAC;AAED,0EAA0E;AAC1E,MAAM,CAAC,KAAK,UAAU,UAAU,CAC/B,GAAW,EACX,IAAuB,EACvB,OAA0B;IAE1B,MAAM,SAAS,GAAG,MAAM,OAAO,CAAC,OAAO,CAAC,KAAK,CAAsC,mBAAmB,CAAC,CAAC,OAAO,EAAE,CAAC;IAClH,MAAM,GAAG,GAAG,MAAM,CAAC,WAAW,CAAC,MAAM,CAAC,OAAO,CAAC,OAAO,CAAC,GAAG,IAAI,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,KAAK,EAA6B,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC,KAAK,SAAS,CAAC,CAAC,CAAC;IACvI,MAAM,MAAM,GAAG,MAAM,SAAS,CAAC,OAAO,CAAC;QACtC,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,CAAC,GAAG,IAAI,CAAC,EAAE,GAAG,EAAE,OAAO,CAAC,GAAG,EAAE,GAAG,EAAE,OAAO,EAAE,SAAS;QACxE,KAAK,EAAE,OAAO,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,CAAC,MAAM;KAC5C,CAAC,CAAC;IACH,OAAO,EAAE,QAAQ,EAAE,MAAM,CAAC,QAAQ,IAAI,CAAC,CAAC,EAAE,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,CAAC;AAC1F,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Portable workboard composition: six storage records, owner transforms,
|
|
3
|
+
* attention contexts and the semantic workboard client. Hosts compose the
|
|
4
|
+
* storage adapter and service bindings appropriate to their environment.
|
|
5
|
+
*/
|
|
6
|
+
export declare const workboardPlugin: import("@vibesdotdev/kernel").RuntimePlugin;
|
|
7
|
+
export default workboardPlugin;
|
|
8
|
+
//# sourceMappingURL=workboard.plugin.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"workboard.plugin.d.ts","sourceRoot":"","sources":["../src/workboard.plugin.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAqBH,eAAO,MAAM,eAAe,6CA0C1B,CAAC;AAEH,eAAe,eAAe,CAAC"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Portable workboard composition: six storage records, owner transforms,
|
|
3
|
+
* attention contexts and the semantic workboard client. Hosts compose the
|
|
4
|
+
* storage adapter and service bindings appropriate to their environment.
|
|
5
|
+
*/
|
|
6
|
+
import { createRuntimePlugin, loader } from '@vibesdotdev/kernel';
|
|
7
|
+
import workboardRuntimeClientDescriptor from "./workboard.runtime-client.descriptor.js";
|
|
8
|
+
import workboardDocsDescriptor from "./docs/workboard.docs.descriptor.js";
|
|
9
|
+
import { workboardLaneRecordDescriptor, workboardTaskRecordDescriptor, workboardWatchRecordDescriptor, workboardNotificationRecordDescriptor, workboardNoteRecordDescriptor, workboardRequestRecordDescriptor } from "./records/index.js";
|
|
10
|
+
import { workboardOwnerStorageTransforms } from "./storage/owner-transforms.js";
|
|
11
|
+
import { workboardAttentionDecisionHostContextDescriptor, workboardAttentionRequestHostContextDescriptor } from "./attention/headless-attention.host.js";
|
|
12
|
+
import workboardConfigDescriptor from "./config/workboard.config.descriptor.js";
|
|
13
|
+
export const workboardPlugin = createRuntimePlugin({
|
|
14
|
+
id: 'workboard',
|
|
15
|
+
name: 'Workboard',
|
|
16
|
+
description: 'Generic agent workboard (lanes, tasks, requests, notifications, watches, notes)',
|
|
17
|
+
dependencies: ['runtime-client', 'storage'],
|
|
18
|
+
descriptors: [
|
|
19
|
+
workboardLaneRecordDescriptor,
|
|
20
|
+
workboardTaskRecordDescriptor,
|
|
21
|
+
workboardWatchRecordDescriptor,
|
|
22
|
+
workboardNotificationRecordDescriptor,
|
|
23
|
+
workboardNoteRecordDescriptor,
|
|
24
|
+
workboardRequestRecordDescriptor,
|
|
25
|
+
workboardAttentionRequestHostContextDescriptor,
|
|
26
|
+
workboardAttentionDecisionHostContextDescriptor,
|
|
27
|
+
workboardRuntimeClientDescriptor,
|
|
28
|
+
workboardDocsDescriptor,
|
|
29
|
+
workboardConfigDescriptor,
|
|
30
|
+
...workboardOwnerStorageTransforms.map((transform) => transform.descriptor)
|
|
31
|
+
],
|
|
32
|
+
loaders: [
|
|
33
|
+
loader('workboard', { kind: 'runtime/client' }, () => import("./client/workboard-client.js"))
|
|
34
|
+
],
|
|
35
|
+
onActivate(runtime) {
|
|
36
|
+
const [lane, task, watch, notification, note, request] = workboardOwnerStorageTransforms;
|
|
37
|
+
runtime.registerLoader('storage/transform', lane.descriptor.id, async () => lane.implementation);
|
|
38
|
+
runtime.registerLoader('storage/transform', task.descriptor.id, async () => task.implementation);
|
|
39
|
+
runtime.registerLoader('storage/transform', watch.descriptor.id, async () => watch.implementation);
|
|
40
|
+
runtime.registerLoader('storage/transform', notification.descriptor.id, async () => notification.implementation);
|
|
41
|
+
runtime.registerLoader('storage/transform', note.descriptor.id, async () => note.implementation);
|
|
42
|
+
runtime.registerLoader('storage/transform', request.descriptor.id, async () => request.implementation);
|
|
43
|
+
}
|
|
44
|
+
});
|
|
45
|
+
export default workboardPlugin;
|
|
46
|
+
//# sourceMappingURL=workboard.plugin.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"workboard.plugin.js","sourceRoot":"","sources":["../src/workboard.plugin.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,mBAAmB,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAElE,OAAO,gCAAgC,MAAM,0CAA0C,CAAC;AACxF,OAAO,uBAAuB,MAAM,qCAAqC,CAAC;AAC1E,OAAO,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,KAAK,IAAI,EAAE,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC;QACjG,OAAO,CAAC,cAAc,CAAC,mBAAmB,EAAE,KAAK,CAAC,UAAU,CAAC,EAAE,EAAE,KAAK,IAAI,EAAE,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC;QACnG,OAAO,CAAC,cAAc,CACrB,mBAAmB,EACnB,YAAY,CAAC,UAAU,CAAC,EAAE,EAC1B,KAAK,IAAI,EAAE,CAAC,YAAY,CAAC,cAAc,CACvC,CAAC;QACF,OAAO,CAAC,cAAc,CAAC,mBAAmB,EAAE,IAAI,CAAC,UAAU,CAAC,EAAE,EAAE,KAAK,IAAI,EAAE,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC;QACjG,OAAO,CAAC,cAAc,CACrB,mBAAmB,EACnB,OAAO,CAAC,UAAU,CAAC,EAAE,EACrB,KAAK,IAAI,EAAE,CAAC,OAAO,CAAC,cAAc,CAClC,CAAC;IACH,CAAC;CACD,CAAC,CAAC;AAEH,eAAe,eAAe,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"workboard.runtime-client.descriptor.d.ts","sourceRoot":"","sources":["../src/workboard.runtime-client.descriptor.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,4BAA4B,CAAC;AAE1E,QAAA,MAAM,UAAU,EAAE,uBAUhB,CAAC;AAEH,eAAe,UAAU,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { RuntimeClientDescriptorSchema } from '@vibesdotdev/kernel/client';
|
|
2
|
+
const descriptor = RuntimeClientDescriptorSchema.parse({
|
|
3
|
+
id: 'workboard',
|
|
4
|
+
kind: 'runtime/client',
|
|
5
|
+
name: 'Workboard Client',
|
|
6
|
+
description: 'Runtime client for the generic agent workboard (lanes, tasks, requests, notifications, watches, notes)',
|
|
7
|
+
enabled: true,
|
|
8
|
+
hardware: ['consumer', 'cloud'],
|
|
9
|
+
requiredContext: [],
|
|
10
|
+
optionalContext: ['user', 'surface', 'session']
|
|
11
|
+
});
|
|
12
|
+
export default descriptor;
|
|
13
|
+
//# sourceMappingURL=workboard.runtime-client.descriptor.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"workboard.runtime-client.descriptor.js","sourceRoot":"","sources":["../src/workboard.runtime-client.descriptor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,6BAA6B,EAAE,MAAM,4BAA4B,CAAC;AAG3E,MAAM,UAAU,GAA4B,6BAA6B,CAAC,KAAK,CAAC;IAC/E,EAAE,EAAE,WAAW;IACf,IAAI,EAAE,gBAAgB;IACtB,IAAI,EAAE,kBAAkB;IACxB,WAAW,EACV,wGAAwG;IACzG,OAAO,EAAE,IAAI;IACb,QAAQ,EAAE,CAAC,UAAU,EAAE,OAAO,CAAC;IAC/B,eAAe,EAAE,EAAE;IACnB,eAAe,EAAE,CAAC,MAAM,EAAE,SAAS,EAAE,SAAS,CAAC;CAC/C,CAAC,CAAC;AAEH,eAAe,UAAU,CAAC"}
|