@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
|
+
import { definePromptManifestDescriptor } from '@vibesdotdev/ai-schemas';
|
|
2
|
+
export default definePromptManifestDescriptor({
|
|
3
|
+
id: 'workboard.marshal.system',
|
|
4
|
+
version: '1.0.0',
|
|
5
|
+
name: 'Marshal (setup concierge)',
|
|
6
|
+
description: 'Base Marshal system prompt for first-run setup on consumer surfaces.',
|
|
7
|
+
type: 'system',
|
|
8
|
+
category: 'chat',
|
|
9
|
+
tags: ['workboard', 'marshal'],
|
|
10
|
+
scope: 'builtin',
|
|
11
|
+
isPublic: false,
|
|
12
|
+
generator: 'static',
|
|
13
|
+
content: `You are Marshal, a friendly and knowledgeable platform concierge for the Vibes platform.
|
|
14
|
+
|
|
15
|
+
## Your Role
|
|
16
|
+
|
|
17
|
+
You help users:
|
|
18
|
+
- Set up and configure their account
|
|
19
|
+
- Navigate the platform
|
|
20
|
+
- Understand features and capabilities
|
|
21
|
+
- Complete onboarding requirements
|
|
22
|
+
- Troubleshoot configuration issues
|
|
23
|
+
|
|
24
|
+
## Personality
|
|
25
|
+
|
|
26
|
+
You are:
|
|
27
|
+
- Friendly and approachable, but professional
|
|
28
|
+
- Patient and helpful
|
|
29
|
+
- Concise - respect the user's time
|
|
30
|
+
- Proactive - suggest next steps
|
|
31
|
+
- Encouraging - celebrate progress
|
|
32
|
+
|
|
33
|
+
## Guidelines
|
|
34
|
+
|
|
35
|
+
1. **Be Conversational**: Use natural language, not technical jargon
|
|
36
|
+
2. **Use Tools**: Use the runtime tool API for actions that need data or side effects
|
|
37
|
+
3. **Track Progress**: Update users on what's complete and what's next
|
|
38
|
+
4. **Stay Focused**: Guide users toward completing setup, don't get sidetracked
|
|
39
|
+
5. **Explain Why**: When asking for configuration, explain why it matters
|
|
40
|
+
|
|
41
|
+
## Available Tools
|
|
42
|
+
|
|
43
|
+
- **marshal**: Owner-backed delegation tool. Use \`action\` with one of:
|
|
44
|
+
- \`status\`: report whether authenticated delegation is available
|
|
45
|
+
- \`delegate\`: send a task to a named agent; pass \`context.agentId\`
|
|
46
|
+
- \`ask\`: send a question to a named agent; pass \`context.agentId\`
|
|
47
|
+
- **knowledge**: Unified knowledge base operations (search/read/update)
|
|
48
|
+
- **agent**: manage agent records via \`action\` (\`list\` / \`get\` / \`create\` / \`update\` / \`delete\`)
|
|
49
|
+
- **workspace-fs** (actions read, list, search, edit, write, delete) and **workspace-lock**: workspace filesystem operations
|
|
50
|
+
- **file-read / file-write / run-command / git / preview-url**: operate on the bound code-session workspace only. Never invent or override a session id; the execution context binds it and rejects mismatches.
|
|
51
|
+
- **session-scratchpad / session-todo**: capture working context and tasks
|
|
52
|
+
- **tool-help**: discover tool schemas and examples
|
|
53
|
+
|
|
54
|
+
## Important
|
|
55
|
+
|
|
56
|
+
- Never make configuration changes without user confirmation
|
|
57
|
+
- Always explain what you're about to do before doing it
|
|
58
|
+
- If unsure, ask clarifying questions
|
|
59
|
+
- Respect user preferences for detail level
|
|
60
|
+
- Never emit fake tool markup like \`[TOOL_CALL]\` in plain text; invoke real tools directly
|
|
61
|
+
`
|
|
62
|
+
}, { owner: 'workboard' });
|
|
63
|
+
//# sourceMappingURL=system.prompt.descriptor.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"system.prompt.descriptor.js","sourceRoot":"","sources":["../../../../src/marshal/agent/prompts/system.prompt.descriptor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,8BAA8B,EAAE,MAAM,yBAAyB,CAAC;AAEzE,eAAe,8BAA8B,CAAC;IAC7C,EAAE,EAAE,0BAA0B;IAC9B,OAAO,EAAE,OAAO;IAChB,IAAI,EAAE,2BAA2B;IACjC,WAAW,EAAE,sEAAsE;IACnF,IAAI,EAAE,QAAQ;IACd,QAAQ,EAAE,MAAM;IAChB,IAAI,EAAE,CAAC,WAAW,EAAE,SAAS,CAAC;IAC9B,KAAK,EAAE,SAAS;IAChB,QAAQ,EAAE,KAAK;IACf,SAAS,EAAE,QAAQ;IACnB,OAAO,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgDT;CACA,EAAE,EAAE,KAAK,EAAE,WAAW,EAAE,CAAC,CAAC"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Marshal System Prompt
|
|
3
|
+
*
|
|
4
|
+
* The system prompt that defines Marshal's personality and behavior.
|
|
5
|
+
*/
|
|
6
|
+
import type { MarshalContext, MarshalSetupContext } from '../types.ts';
|
|
7
|
+
/**
|
|
8
|
+
* Base Marshal system prompt (the `workboard.marshal.system` prompts/manifest descriptor).
|
|
9
|
+
*/
|
|
10
|
+
export declare const marshalSystemPrompt: string;
|
|
11
|
+
/**
|
|
12
|
+
* Canonical cloud/web Marshal system prompt.
|
|
13
|
+
*
|
|
14
|
+
* This is the prompt used by the runtime-discovered Marshal agent on Chat and
|
|
15
|
+
* the universal messenger dock. Unlike {@link marshalSystemPrompt}
|
|
16
|
+
* (which is oriented toward first-run setup on consumer surfaces), this prompt
|
|
17
|
+
* frames Marshal as a general-purpose assistant available on every page that can
|
|
18
|
+
* manage the user's data across the vibes apps, navigate the platform, and
|
|
19
|
+
* explain features.
|
|
20
|
+
*
|
|
21
|
+
* Wired through the Marshal `tools/agent/instance` descriptor's `promptTemplate`,
|
|
22
|
+
* which the native agent loop prepends as a trusted system message.
|
|
23
|
+
* Which tools actually resolve is decided by the runtime scope: in the cloud the
|
|
24
|
+
* `api-request` tool is registered (cross-app CRUD) while the consumer-only
|
|
25
|
+
* `fs-*` tools are not; on a consumer surface the reverse holds. Marshal is told
|
|
26
|
+
* to use whatever is available, so a single prompt adapts to both surfaces.
|
|
27
|
+
*/
|
|
28
|
+
export declare const marshalCloudSystemPrompt: string;
|
|
29
|
+
/**
|
|
30
|
+
* Build a contextual prompt for Marshal from its prompts/manifest sections.
|
|
31
|
+
* Synchronous and runtime-free, so each section renders its own manifest.
|
|
32
|
+
*/
|
|
33
|
+
export declare function buildMarshalPrompt(context: MarshalContext, setupContext?: MarshalSetupContext): string;
|
|
34
|
+
//# sourceMappingURL=system-prompt.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"system-prompt.d.ts","sourceRoot":"","sources":["../../../src/marshal/agent/system-prompt.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,OAAO,KAAK,EAAE,cAAc,EAAiB,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAQtF;;GAEG;AACH,eAAO,MAAM,mBAAmB,QAAiD,CAAC;AAElF;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,wBAAwB,QAAsD,CAAC;AAE5F;;;GAGG;AACH,wBAAgB,kBAAkB,CACjC,OAAO,EAAE,cAAc,EACvB,YAAY,CAAC,EAAE,mBAAmB,GAChC,MAAM,CAoBR"}
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Marshal System Prompt
|
|
3
|
+
*
|
|
4
|
+
* The system prompt that defines Marshal's personality and behavior.
|
|
5
|
+
*/
|
|
6
|
+
import { renderPromptManifest } from '@vibesdotdev/ai-schemas';
|
|
7
|
+
import marshalSystemPromptDescriptor from "./prompts/system.prompt.descriptor.js";
|
|
8
|
+
import marshalCloudSystemPromptDescriptor from "./prompts/cloud-system.prompt.descriptor.js";
|
|
9
|
+
import personalityPrompt from "./prompts/personality.prompt.descriptor.js";
|
|
10
|
+
import setupIssuePrompt from "./prompts/setup-issue.prompt.descriptor.js";
|
|
11
|
+
import setupWizardPrompt from "./prompts/setup-wizard.prompt.descriptor.js";
|
|
12
|
+
import surfacePrompt from "./prompts/surface.prompt.descriptor.js";
|
|
13
|
+
/**
|
|
14
|
+
* Base Marshal system prompt (the `workboard.marshal.system` prompts/manifest descriptor).
|
|
15
|
+
*/
|
|
16
|
+
export const marshalSystemPrompt = marshalSystemPromptDescriptor.manifest.content;
|
|
17
|
+
/**
|
|
18
|
+
* Canonical cloud/web Marshal system prompt.
|
|
19
|
+
*
|
|
20
|
+
* This is the prompt used by the runtime-discovered Marshal agent on Chat and
|
|
21
|
+
* the universal messenger dock. Unlike {@link marshalSystemPrompt}
|
|
22
|
+
* (which is oriented toward first-run setup on consumer surfaces), this prompt
|
|
23
|
+
* frames Marshal as a general-purpose assistant available on every page that can
|
|
24
|
+
* manage the user's data across the vibes apps, navigate the platform, and
|
|
25
|
+
* explain features.
|
|
26
|
+
*
|
|
27
|
+
* Wired through the Marshal `tools/agent/instance` descriptor's `promptTemplate`,
|
|
28
|
+
* which the native agent loop prepends as a trusted system message.
|
|
29
|
+
* Which tools actually resolve is decided by the runtime scope: in the cloud the
|
|
30
|
+
* `api-request` tool is registered (cross-app CRUD) while the consumer-only
|
|
31
|
+
* `fs-*` tools are not; on a consumer surface the reverse holds. Marshal is told
|
|
32
|
+
* to use whatever is available, so a single prompt adapts to both surfaces.
|
|
33
|
+
*/
|
|
34
|
+
export const marshalCloudSystemPrompt = marshalCloudSystemPromptDescriptor.manifest.content;
|
|
35
|
+
/**
|
|
36
|
+
* Build a contextual prompt for Marshal from its prompts/manifest sections.
|
|
37
|
+
* Synchronous and runtime-free, so each section renders its own manifest.
|
|
38
|
+
*/
|
|
39
|
+
export function buildMarshalPrompt(context, setupContext) {
|
|
40
|
+
const sections = [marshalSystemPrompt];
|
|
41
|
+
// Add personality customization
|
|
42
|
+
if (context.marshalConfig) {
|
|
43
|
+
sections.push(buildPersonalitySection(context.marshalConfig));
|
|
44
|
+
}
|
|
45
|
+
// Add setup issue mode context (takes precedence over general setup wizard)
|
|
46
|
+
if (setupContext?.isSetupMode && setupContext.issue) {
|
|
47
|
+
sections.push(buildSetupIssueModeSection(setupContext));
|
|
48
|
+
}
|
|
49
|
+
else if (context.isSetupWizard) {
|
|
50
|
+
// Add general setup wizard context
|
|
51
|
+
sections.push(buildSetupWizardSection(context));
|
|
52
|
+
}
|
|
53
|
+
// Add surface-specific guidance
|
|
54
|
+
sections.push(buildSurfaceSection(context.surface, context.capabilities));
|
|
55
|
+
return sections.join('\n\n');
|
|
56
|
+
}
|
|
57
|
+
function buildPersonalitySection(config) {
|
|
58
|
+
return renderPromptManifest(personalityPrompt.manifest, {
|
|
59
|
+
name: config.name,
|
|
60
|
+
concise: config.personality === 'concise',
|
|
61
|
+
conversational: config.personality === 'conversational',
|
|
62
|
+
detailed: config.personality === 'detailed',
|
|
63
|
+
professional: config.voiceTone === 'professional',
|
|
64
|
+
friendly: config.voiceTone === 'friendly',
|
|
65
|
+
casual: config.voiceTone === 'casual',
|
|
66
|
+
customInstructions: config.customInstructions ?? ''
|
|
67
|
+
});
|
|
68
|
+
}
|
|
69
|
+
/** Setup issue mode (triggered from SetupBanner). */
|
|
70
|
+
function buildSetupIssueModeSection(setupContext) {
|
|
71
|
+
const { issue, pendingRequirements, progress } = setupContext;
|
|
72
|
+
const otherPending = pendingRequirements.filter((r) => r.requirementId !== issue?.requirementId);
|
|
73
|
+
const otherPendingLines = otherPending
|
|
74
|
+
.slice(0, 5)
|
|
75
|
+
.map((req) => `- ${req.severity === 'blocking' ? '[Required]' : '[Optional]'} ${req.label}`);
|
|
76
|
+
if (otherPending.length > 5)
|
|
77
|
+
otherPendingLines.push(`- ... and ${otherPending.length - 5} more`);
|
|
78
|
+
return renderPromptManifest(setupIssuePrompt.manifest, {
|
|
79
|
+
hasIssue: Boolean(issue),
|
|
80
|
+
issueId: issue?.requirementId ?? '',
|
|
81
|
+
issueLabel: issue?.label ?? '',
|
|
82
|
+
issueStatus: issue?.status ?? '',
|
|
83
|
+
issueSeverity: issue?.severity ?? '',
|
|
84
|
+
issueReason: issue?.reason ?? '',
|
|
85
|
+
issueManualRoute: issue?.manualRoute ?? '',
|
|
86
|
+
issueCliCommand: issue?.cliCommand ?? '',
|
|
87
|
+
otherPendingCount: otherPending.length,
|
|
88
|
+
otherPendingLines: otherPendingLines.join('\n'),
|
|
89
|
+
progress: Math.round(progress)
|
|
90
|
+
});
|
|
91
|
+
}
|
|
92
|
+
function buildSetupWizardSection(context) {
|
|
93
|
+
const { setupStatus } = context;
|
|
94
|
+
const incomplete = setupStatus.requirements.filter((r) => r.status !== 'complete');
|
|
95
|
+
const { counts } = setupStatus;
|
|
96
|
+
return renderPromptManifest(setupWizardPrompt.manifest, {
|
|
97
|
+
hasBlockingIssues: setupStatus.hasBlockingIssues,
|
|
98
|
+
remainingLines: incomplete
|
|
99
|
+
.map((req) => `- ${req.severity === 'blocking' ? '[REQUIRED]' : '[Optional]'} ${req.label}: ${req.reason}`)
|
|
100
|
+
.join('\n'),
|
|
101
|
+
hasNextStep: Boolean(setupStatus.nextStep),
|
|
102
|
+
nextStepLabel: setupStatus.nextStep?.label ?? '',
|
|
103
|
+
nextStepReason: setupStatus.nextStep?.reason ?? '',
|
|
104
|
+
complete: counts.complete,
|
|
105
|
+
incomplete: counts.incomplete,
|
|
106
|
+
missing: counts.missing
|
|
107
|
+
});
|
|
108
|
+
}
|
|
109
|
+
function buildSurfaceSection(surface, capabilities) {
|
|
110
|
+
const caps = [];
|
|
111
|
+
if (capabilities.canNavigate)
|
|
112
|
+
caps.push('navigation');
|
|
113
|
+
if (capabilities.canShowWidgets)
|
|
114
|
+
caps.push('widgets');
|
|
115
|
+
if (capabilities.canModifyConfig)
|
|
116
|
+
caps.push('configuration');
|
|
117
|
+
if (capabilities.canShowProgress)
|
|
118
|
+
caps.push('progress tracking');
|
|
119
|
+
if (capabilities.canAskQuestions)
|
|
120
|
+
caps.push('interactive questions');
|
|
121
|
+
return renderPromptManifest(surfacePrompt.manifest, {
|
|
122
|
+
surfaceName: surface.toUpperCase(),
|
|
123
|
+
web: surface === 'web',
|
|
124
|
+
tui: surface === 'tui',
|
|
125
|
+
cli: surface === 'cli',
|
|
126
|
+
bridge: surface === 'bridge',
|
|
127
|
+
capabilities: caps.join(', ')
|
|
128
|
+
});
|
|
129
|
+
}
|
|
130
|
+
//# sourceMappingURL=system-prompt.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"system-prompt.js","sourceRoot":"","sources":["../../../src/marshal/agent/system-prompt.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAE/D,OAAO,6BAA6B,MAAM,uCAAuC,CAAC;AAClF,OAAO,kCAAkC,MAAM,6CAA6C,CAAC;AAC7F,OAAO,iBAAiB,MAAM,4CAA4C,CAAC;AAC3E,OAAO,gBAAgB,MAAM,4CAA4C,CAAC;AAC1E,OAAO,iBAAiB,MAAM,6CAA6C,CAAC;AAC5E,OAAO,aAAa,MAAM,wCAAwC,CAAC;AAEnE;;GAEG;AACH,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AAI,GAAa,EAAE,CAAC;IAC1B,IAAI,YAAY,CAAC,WAAW;QAAE,IAAI,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;IACtD,IAAI,YAAY,CAAC,cAAc;QAAE,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;IACtD,IAAI,YAAY,CAAC,eAAe;QAAE,IAAI,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC;IAC7D,IAAI,YAAY,CAAC,eAAe;QAAE,IAAI,CAAC,IAAI,CAAC,mBAAmB,CAAC,CAAC;IACjE,IAAI,YAAY,CAAC,eAAe;QAAE,IAAI,CAAC,IAAI,CAAC,uBAAuB,CAAC,CAAC;IACrE,OAAO,oBAAoB,CAAC,aAAa,CAAC,QAAQ,EAAE;QACnD,WAAW,EAAE,OAAO,CAAC,WAAW,EAAE;QAClC,GAAG,EAAE,OAAO,KAAK,KAAK;QACtB,GAAG,EAAE,OAAO,KAAK,KAAK;QACtB,GAAG,EAAE,OAAO,KAAK,KAAK;QACtB,MAAM,EAAE,OAAO,KAAK,QAAQ;QAC5B,YAAY,EAAE,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC;KAC7B,CAAC,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import type { MarshalSurface } from './types.ts';
|
|
2
|
+
export declare const MARSHAL_LIVE_CAPABILITY_IDS: readonly ["user_messages", "plan_confirmations", "stimulus_routing", "svelte_applets", "code_sessions", "internal_operations"];
|
|
3
|
+
export type MarshalLiveCapabilityId = (typeof MARSHAL_LIVE_CAPABILITY_IDS)[number];
|
|
4
|
+
export type MarshalLiveCapabilityStatus = 'live' | 'partial' | 'contract' | 'gap';
|
|
5
|
+
export interface MarshalLiveCapabilityRoutes {
|
|
6
|
+
user_messages?: string;
|
|
7
|
+
plan_confirmations?: string;
|
|
8
|
+
stimulus_routing?: string;
|
|
9
|
+
svelte_applets?: string;
|
|
10
|
+
code_sessions?: string;
|
|
11
|
+
internal_operations?: string;
|
|
12
|
+
}
|
|
13
|
+
export interface MarshalLiveCapabilityFacts {
|
|
14
|
+
surface?: MarshalSurface;
|
|
15
|
+
routes?: MarshalLiveCapabilityRoutes;
|
|
16
|
+
hasWorkboardNotifications?: boolean;
|
|
17
|
+
hasWorkboardRequests?: boolean;
|
|
18
|
+
hasWorkboardTasks?: boolean;
|
|
19
|
+
hasRequestReview?: boolean;
|
|
20
|
+
hasArtifactSurface?: boolean;
|
|
21
|
+
hasCodeSessionSurface?: boolean;
|
|
22
|
+
/** agent/event-source descriptors + webhook ingress present */
|
|
23
|
+
hasStimulusRouter?: boolean;
|
|
24
|
+
/**
|
|
25
|
+
* True when inbound can wake a live agent (source-message → CHAT_GENERATION)
|
|
26
|
+
* and deployments can bind eventSources. Without this, stimulus is log-only.
|
|
27
|
+
*/
|
|
28
|
+
hasStimulusLiveWake?: boolean;
|
|
29
|
+
/**
|
|
30
|
+
* True when agents can send on message sources (message-send tool and/or
|
|
31
|
+
* email tool on allowLists / registered).
|
|
32
|
+
*/
|
|
33
|
+
hasStimulusOutboundTool?: boolean;
|
|
34
|
+
notificationCount?: number;
|
|
35
|
+
pendingRequestCount?: number;
|
|
36
|
+
activeTaskCount?: number;
|
|
37
|
+
artifactCount?: number;
|
|
38
|
+
componentArtifactCount?: number;
|
|
39
|
+
codeSessionCount?: number;
|
|
40
|
+
activeStimulusCount?: number;
|
|
41
|
+
configuredStimulusCount?: number;
|
|
42
|
+
internalScope?: boolean;
|
|
43
|
+
}
|
|
44
|
+
export interface MarshalLiveCapability {
|
|
45
|
+
id: MarshalLiveCapabilityId;
|
|
46
|
+
title: string;
|
|
47
|
+
status: MarshalLiveCapabilityStatus;
|
|
48
|
+
ownerPackage: string;
|
|
49
|
+
detail: string;
|
|
50
|
+
evidence: string[];
|
|
51
|
+
href?: string;
|
|
52
|
+
actionLabel: string;
|
|
53
|
+
}
|
|
54
|
+
export declare function resolveMarshalLiveCapabilities(facts: MarshalLiveCapabilityFacts): MarshalLiveCapability[];
|
|
55
|
+
//# sourceMappingURL=capabilities.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"capabilities.d.ts","sourceRoot":"","sources":["../../src/marshal/capabilities.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAEjD,eAAO,MAAM,2BAA2B,gIAO9B,CAAC;AAEX,MAAM,MAAM,uBAAuB,GAAG,CAAC,OAAO,2BAA2B,CAAC,CAAC,MAAM,CAAC,CAAC;AACnF,MAAM,MAAM,2BAA2B,GAAG,MAAM,GAAG,SAAS,GAAG,UAAU,GAAG,KAAK,CAAC;AAElF,MAAM,WAAW,2BAA2B;IAC3C,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,mBAAmB,CAAC,EAAE,MAAM,CAAC;CAC7B;AAED,MAAM,WAAW,0BAA0B;IAC1C,OAAO,CAAC,EAAE,cAAc,CAAC;IACzB,MAAM,CAAC,EAAE,2BAA2B,CAAC;IACrC,yBAAyB,CAAC,EAAE,OAAO,CAAC;IACpC,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAChC,+DAA+D;IAC/D,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B;;;OAGG;IACH,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B;;;OAGG;IACH,uBAAuB,CAAC,EAAE,OAAO,CAAC;IAClC,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAChC,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,uBAAuB,CAAC,EAAE,MAAM,CAAC;IACjC,aAAa,CAAC,EAAE,OAAO,CAAC;CACxB;AAED,MAAM,WAAW,qBAAqB;IACrC,EAAE,EAAE,uBAAuB,CAAC;IAC5B,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,2BAA2B,CAAC;IACpC,YAAY,EAAE,MAAM,CAAC;IACrB,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,EAAE,CAAC;IACnB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;CACpB;AAiBD,wBAAgB,8BAA8B,CAC7C,KAAK,EAAE,0BAA0B,GAC/B,qBAAqB,EAAE,CAoIzB"}
|
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
export const MARSHAL_LIVE_CAPABILITY_IDS = [
|
|
2
|
+
'user_messages',
|
|
3
|
+
'plan_confirmations',
|
|
4
|
+
'stimulus_routing',
|
|
5
|
+
'svelte_applets',
|
|
6
|
+
'code_sessions',
|
|
7
|
+
'internal_operations'
|
|
8
|
+
];
|
|
9
|
+
function countLabel(count, singular, plural = `${singular}s`) {
|
|
10
|
+
return `${count} ${count === 1 ? singular : plural}`;
|
|
11
|
+
}
|
|
12
|
+
function route(routes, id) {
|
|
13
|
+
return routes?.[id];
|
|
14
|
+
}
|
|
15
|
+
function nonNegative(value) {
|
|
16
|
+
return Math.max(0, value ?? 0);
|
|
17
|
+
}
|
|
18
|
+
export function resolveMarshalLiveCapabilities(facts) {
|
|
19
|
+
const routes = facts.routes;
|
|
20
|
+
const notificationCount = nonNegative(facts.notificationCount);
|
|
21
|
+
const pendingRequestCount = nonNegative(facts.pendingRequestCount);
|
|
22
|
+
const activeTaskCount = nonNegative(facts.activeTaskCount);
|
|
23
|
+
const artifactCount = nonNegative(facts.artifactCount);
|
|
24
|
+
const componentArtifactCount = nonNegative(facts.componentArtifactCount);
|
|
25
|
+
const codeSessionCount = nonNegative(facts.codeSessionCount);
|
|
26
|
+
const activeStimulusCount = nonNegative(facts.activeStimulusCount);
|
|
27
|
+
const configuredStimulusCount = nonNegative(facts.configuredStimulusCount);
|
|
28
|
+
const hasRequests = facts.hasWorkboardRequests === true;
|
|
29
|
+
const hasRequestReview = facts.hasRequestReview === true;
|
|
30
|
+
const hasNotifications = facts.hasWorkboardNotifications === true;
|
|
31
|
+
const hasStimulusRouter = facts.hasStimulusRouter === true;
|
|
32
|
+
const hasStimulusLiveWake = facts.hasStimulusLiveWake === true;
|
|
33
|
+
const hasStimulusOutboundTool = facts.hasStimulusOutboundTool === true;
|
|
34
|
+
const hasArtifactSurface = facts.hasArtifactSurface === true;
|
|
35
|
+
const hasCodeSessionSurface = facts.hasCodeSessionSurface === true;
|
|
36
|
+
return [
|
|
37
|
+
{
|
|
38
|
+
id: 'user_messages',
|
|
39
|
+
title: 'User messages',
|
|
40
|
+
status: hasNotifications ? 'live' : 'gap',
|
|
41
|
+
ownerPackage: '@vibesdotdev/workboard + @vibesdotdev/hq',
|
|
42
|
+
detail: hasNotifications
|
|
43
|
+
? `Agents can post workboard notifications and surface artifacts; ${countLabel(notificationCount, 'message')} visible now.`
|
|
44
|
+
: 'No agent-to-user notification surface is registered for this Marshal scope.',
|
|
45
|
+
evidence: hasNotifications
|
|
46
|
+
? ['workboard.notification endpoint', 'hq.surface notification schema']
|
|
47
|
+
: [],
|
|
48
|
+
href: route(routes, 'user_messages'),
|
|
49
|
+
actionLabel: 'Open messages'
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
id: 'plan_confirmations',
|
|
53
|
+
title: 'Plan confirmations',
|
|
54
|
+
status: hasRequests && hasRequestReview ? 'live' : hasRequests ? 'partial' : 'gap',
|
|
55
|
+
ownerPackage: '@vibesdotdev/workboard',
|
|
56
|
+
detail: hasRequests && hasRequestReview
|
|
57
|
+
? `Structured approvals are reviewable; ${countLabel(pendingRequestCount, 'pending request')} waiting.`
|
|
58
|
+
: hasRequests
|
|
59
|
+
? 'Requests can be created, but the review action is not wired for this surface.'
|
|
60
|
+
: 'No workboard request queue is registered for this Marshal scope.',
|
|
61
|
+
evidence: [
|
|
62
|
+
...(hasRequests ? ['workboard.request endpoint'] : []),
|
|
63
|
+
...(hasRequestReview ? ['workboard.request review action'] : [])
|
|
64
|
+
],
|
|
65
|
+
href: route(routes, 'plan_confirmations'),
|
|
66
|
+
actionLabel: 'Review approvals'
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
id: 'stimulus_routing',
|
|
70
|
+
title: 'Event routing',
|
|
71
|
+
status: hasStimulusRouter &&
|
|
72
|
+
hasStimulusLiveWake &&
|
|
73
|
+
hasStimulusOutboundTool &&
|
|
74
|
+
configuredStimulusCount > 0
|
|
75
|
+
? 'live'
|
|
76
|
+
: hasStimulusRouter && (hasStimulusLiveWake || hasStimulusOutboundTool)
|
|
77
|
+
? 'partial'
|
|
78
|
+
: hasStimulusRouter
|
|
79
|
+
? 'contract'
|
|
80
|
+
: 'gap',
|
|
81
|
+
ownerPackage: '@vibesdotdev/agents + tools + integrations',
|
|
82
|
+
detail: !hasStimulusRouter
|
|
83
|
+
? 'No message, webhook, schedule, or integration router is registered for this scope.'
|
|
84
|
+
: hasStimulusLiveWake && hasStimulusOutboundTool
|
|
85
|
+
? `${countLabel(activeStimulusCount, 'active source')} feeding ${countLabel(configuredStimulusCount, 'configured source')}; inbound can wake agents and message-send is registered.`
|
|
86
|
+
: hasStimulusLiveWake
|
|
87
|
+
? `${countLabel(configuredStimulusCount, 'configured source')}; inbound wake wired, outbound message-send tool not yet evidenced.`
|
|
88
|
+
: hasStimulusOutboundTool
|
|
89
|
+
? `${countLabel(configuredStimulusCount, 'configured source')}; outbound tool present, inbound live wake not evidenced.`
|
|
90
|
+
: `${countLabel(configuredStimulusCount, 'configured source')} catalog-only — no live wake or outbound tool evidence.`,
|
|
91
|
+
evidence: [
|
|
92
|
+
...(hasStimulusRouter ? ['agent/event-source descriptors', 'webhook ingress'] : []),
|
|
93
|
+
...(hasStimulusLiveWake
|
|
94
|
+
? ['agents/stimulus match', 'source-message wake → chat.generation.run']
|
|
95
|
+
: []),
|
|
96
|
+
...(hasStimulusOutboundTool ? ['tools/tool message-send'] : [])
|
|
97
|
+
],
|
|
98
|
+
href: route(routes, 'stimulus_routing'),
|
|
99
|
+
actionLabel: 'Manage sources'
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
id: 'svelte_applets',
|
|
103
|
+
title: 'Svelte applets',
|
|
104
|
+
status: componentArtifactCount > 0 ? 'live' : hasArtifactSurface ? 'contract' : 'gap',
|
|
105
|
+
ownerPackage: '@vibesdotdev/hq + @vibesdotdev/platform',
|
|
106
|
+
detail: componentArtifactCount > 0
|
|
107
|
+
? `${countLabel(componentArtifactCount, 'component-backed artifact')} visible from ${countLabel(artifactCount, 'artifact')}; HQ can render registry-backed or inline browser-runtime applets.`
|
|
108
|
+
: hasArtifactSurface
|
|
109
|
+
? 'Surface artifacts can now carry component/app references; no component-backed output is visible yet.'
|
|
110
|
+
: 'No HQ artifact surface is registered for applets.',
|
|
111
|
+
evidence: [
|
|
112
|
+
...(hasArtifactSurface ? ['hq surface artifact schema'] : []),
|
|
113
|
+
...(componentArtifactCount > 0
|
|
114
|
+
? ['componentRef artifact projection', 'platform component registry']
|
|
115
|
+
: [])
|
|
116
|
+
],
|
|
117
|
+
href: route(routes, 'svelte_applets'),
|
|
118
|
+
actionLabel: 'Review applets'
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
id: 'code_sessions',
|
|
122
|
+
title: 'Code sessions',
|
|
123
|
+
status: codeSessionCount > 0 ? 'live' : hasCodeSessionSurface ? 'partial' : 'gap',
|
|
124
|
+
ownerPackage: '@vibesdotdev/agent-execution/code-session',
|
|
125
|
+
detail: hasCodeSessionSurface
|
|
126
|
+
? `${countLabel(codeSessionCount, 'code workspace')} linked to live agents; ${countLabel(activeTaskCount, 'active task')} in the queue.`
|
|
127
|
+
: 'No code-session surface is registered for this Marshal scope.',
|
|
128
|
+
evidence: hasCodeSessionSurface ? ['agent-code-session route', 'fleet runtime target'] : [],
|
|
129
|
+
href: route(routes, 'code_sessions'),
|
|
130
|
+
actionLabel: 'Open sessions'
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
id: 'internal_operations',
|
|
134
|
+
title: 'Internal Marshal powers',
|
|
135
|
+
status: facts.internalScope ? 'live' : 'partial',
|
|
136
|
+
ownerPackage: 'vibes org scope',
|
|
137
|
+
detail: facts.internalScope
|
|
138
|
+
? 'Vibes org scope can expose admin-only Marshal operations and internal fleet controls.'
|
|
139
|
+
: 'Internal operations are hidden until the current user is in the vibes org scope.',
|
|
140
|
+
evidence: facts.internalScope ? ['internal scope gate'] : ['public scope gate'],
|
|
141
|
+
href: route(routes, 'internal_operations'),
|
|
142
|
+
actionLabel: 'Open internal'
|
|
143
|
+
}
|
|
144
|
+
];
|
|
145
|
+
}
|
|
146
|
+
//# sourceMappingURL=capabilities.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"capabilities.js","sourceRoot":"","sources":["../../src/marshal/capabilities.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,2BAA2B,GAAG;IAC1C,eAAe;IACf,oBAAoB;IACpB,kBAAkB;IAClB,gBAAgB;IAChB,eAAe;IACf,qBAAqB;CACZ,CAAC;AAyDX,SAAS,UAAU,CAAC,KAAa,EAAE,QAAgB,EAAE,MAAM,GAAG,GAAG,QAAQ,GAAG;IAC3E,OAAO,GAAG,KAAK,IAAI,KAAK,KAAK,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;AACtD,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EAAE,qBAAqB;gBAC5B,CAAC,CAAC,GAAG,UAAU,CAAC,gBAAgB,EAAE,gBAAgB,CAAC,2BAA2B,UAAU,CAAC,eAAe,EAAE,aAAa,CAAC,gBAAgB;gBACxI,CAAC,CAAC,+DAA+D;YAClE,QAAQ,EAAE,qBAAqB,CAAC,CAAC,CAAC,CAAC,0BAA0B,EAAE,sBAAsB,CAAC,CAAC,CAAC,CAAC,EAAE;YAC3F,IAAI,EAAE,KAAK,CAAC,MAAM,EAAE,eAAe,CAAC;YACpC,WAAW,EAAE,eAAe;SAC5B;QACD;YACC,EAAE,EAAE,qBAAqB;YACzB,KAAK,EAAE,yBAAyB;YAChC,MAAM,EAAE,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS;YAChD,YAAY,EAAE,iBAAiB;YAC/B,MAAM,EAAE,KAAK,CAAC,aAAa;gBAC1B,CAAC,CAAC,uFAAuF;gBACzF,CAAC,CAAC,kFAAkF;YACrF,QAAQ,EAAE,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC,qBAAqB,CAAC,CAAC,CAAC,CAAC,CAAC,mBAAmB,CAAC;YAC/E,IAAI,EAAE,KAAK,CAAC,MAAM,EAAE,qBAAqB,CAAC;YAC1C,WAAW,EAAE,eAAe;SAC5B;KACD,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fleet.marshal-presence.heartbeat.command.descriptor.d.ts","sourceRoot":"","sources":["../../../src/marshal/cli/fleet.marshal-presence.heartbeat.command.descriptor.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,mCAAmC,CAAC;AAEnF,QAAA,MAAM,UAAU,EAAE,yBAejB,CAAC;AAEF,eAAe,UAAU,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
const descriptor = {
|
|
2
|
+
kind: 'cli/command',
|
|
3
|
+
id: 'fleet.marshal-presence.heartbeat',
|
|
4
|
+
name: 'heartbeat',
|
|
5
|
+
description: 'Publish one authenticated Marshal presence heartbeat to HQ',
|
|
6
|
+
group: 'fleet.marshal-presence',
|
|
7
|
+
arguments: [],
|
|
8
|
+
options: [
|
|
9
|
+
{ flags: '--agent-id <id>', description: 'Presence agent id (default: marshal.live)' },
|
|
10
|
+
{ flags: '--machine-id <id>', description: 'Stable machine id' },
|
|
11
|
+
{ flags: '--machine-name <name>', description: 'Machine display name (default: Marshal)' }
|
|
12
|
+
],
|
|
13
|
+
surfaces: ['cli'],
|
|
14
|
+
hardware: ['consumer'],
|
|
15
|
+
enabled: true
|
|
16
|
+
};
|
|
17
|
+
export default descriptor;
|
|
18
|
+
//# sourceMappingURL=fleet.marshal-presence.heartbeat.command.descriptor.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fleet.marshal-presence.heartbeat.command.descriptor.js","sourceRoot":"","sources":["../../../src/marshal/cli/fleet.marshal-presence.heartbeat.command.descriptor.ts"],"names":[],"mappings":"AAEA,MAAM,UAAU,GAA8B;IAC7C,IAAI,EAAE,aAAa;IACnB,EAAE,EAAE,kCAAkC;IACtC,IAAI,EAAE,WAAW;IACjB,WAAW,EAAE,4DAA4D;IACzE,KAAK,EAAE,wBAAwB;IAC/B,SAAS,EAAE,EAAE;IACb,OAAO,EAAE;QACR,EAAE,KAAK,EAAE,iBAAiB,EAAE,WAAW,EAAE,2CAA2C,EAAE;QACtF,EAAE,KAAK,EAAE,mBAAmB,EAAE,WAAW,EAAE,mBAAmB,EAAE;QAChE,EAAE,KAAK,EAAE,uBAAuB,EAAE,WAAW,EAAE,yCAAyC,EAAE;KAC1F;IACD,QAAQ,EAAE,CAAC,KAAK,CAAC;IACjB,QAAQ,EAAE,CAAC,UAAU,CAAC;IACtB,OAAO,EAAE,IAAI;CACb,CAAC;AAEF,eAAe,UAAU,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import * as z from 'zod/v4';
|
|
2
|
+
import type { CommandContext } from '@vibesdotdev/cli';
|
|
3
|
+
declare const MarshalPresenceHeartbeatArgsSchema: z.ZodObject<{}, z.core.$loose>;
|
|
4
|
+
export type MarshalPresenceHeartbeatArgs = z.infer<typeof MarshalPresenceHeartbeatArgsSchema>;
|
|
5
|
+
declare const MarshalPresenceHeartbeatOptionsSchema: z.ZodObject<{
|
|
6
|
+
agentId: z.ZodOptional<z.ZodString>;
|
|
7
|
+
machineId: z.ZodOptional<z.ZodString>;
|
|
8
|
+
machineName: z.ZodOptional<z.ZodString>;
|
|
9
|
+
}, z.core.$loose>;
|
|
10
|
+
export type MarshalPresenceHeartbeatOptions = z.infer<typeof MarshalPresenceHeartbeatOptionsSchema>;
|
|
11
|
+
export declare class MarshalPresenceHeartbeatCommand {
|
|
12
|
+
execute(_args: MarshalPresenceHeartbeatArgs, rawOptions: MarshalPresenceHeartbeatOptions, context: CommandContext): Promise<void>;
|
|
13
|
+
}
|
|
14
|
+
declare const _default: import("@vibesdotdev/kernel").RuntimeImplementationWrapper<typeof MarshalPresenceHeartbeatCommand>;
|
|
15
|
+
export default _default;
|
|
16
|
+
//# sourceMappingURL=fleet.marshal-presence.heartbeat.command.impl.consumer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fleet.marshal-presence.heartbeat.command.impl.consumer.d.ts","sourceRoot":"","sources":["../../../src/marshal/cli/fleet.marshal-presence.heartbeat.command.impl.consumer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAIvD,QAAA,MAAM,kCAAkC,gCAA6B,CAAC;AACtE,MAAM,MAAM,4BAA4B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kCAAkC,CAAC,CAAC;AAE9F,QAAA,MAAM,qCAAqC;;;;iBAI3B,CAAC;AAEjB,MAAM,MAAM,+BAA+B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qCAAqC,CAAC,CAAC;AAcpG,qBAAa,+BAA+B;IACrC,OAAO,CACZ,KAAK,EAAE,4BAA4B,EACnC,UAAU,EAAE,+BAA+B,EAC3C,OAAO,EAAE,cAAc,GACrB,OAAO,CAAC,IAAI,CAAC;CAmBhB;;AAED,wBAIG"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import * as z from 'zod/v4';
|
|
2
|
+
import { getPathRoots } from '@vibesdotdev/paths';
|
|
3
|
+
import { createRuntimeImplementation } from '@vibesdotdev/kernel';
|
|
4
|
+
const MarshalPresenceHeartbeatArgsSchema = z.object({}).passthrough();
|
|
5
|
+
const MarshalPresenceHeartbeatOptionsSchema = z.object({
|
|
6
|
+
agentId: z.string().trim().min(1).optional(),
|
|
7
|
+
machineId: z.string().trim().min(1).optional(),
|
|
8
|
+
machineName: z.string().trim().min(1).optional()
|
|
9
|
+
}).passthrough();
|
|
10
|
+
function resolvedOption(runtime, optionValue, envKey, fallback) {
|
|
11
|
+
if (optionValue !== undefined && optionValue.length > 0)
|
|
12
|
+
return optionValue;
|
|
13
|
+
const envValue = runtime.getEnv(envKey)?.trim();
|
|
14
|
+
if (envValue !== undefined && envValue.length > 0)
|
|
15
|
+
return envValue;
|
|
16
|
+
return fallback;
|
|
17
|
+
}
|
|
18
|
+
export class MarshalPresenceHeartbeatCommand {
|
|
19
|
+
async execute(_args, rawOptions, context) {
|
|
20
|
+
const options = MarshalPresenceHeartbeatOptionsSchema.parse(rawOptions ?? {});
|
|
21
|
+
// Dynamic import: marshal depends on agents/presence which cycle back to
|
|
22
|
+
// platform through chat/ai-svelte. fleets/cli plugin loads marshal only
|
|
23
|
+
// when this command runs — isolated optional surface, no package edge.
|
|
24
|
+
const { marshalPresenceHeartbeatDependencies, publishMarshalPresenceHeartbeat } = await import("../presence/index.js");
|
|
25
|
+
const receipt = await publishMarshalPresenceHeartbeat({
|
|
26
|
+
agentId: resolvedOption(context.runtime, options.agentId, 'VIBES_AGENT_ID', 'marshal.live'),
|
|
27
|
+
machineId: resolvedOption(context.runtime, options.machineId, 'VIBES_MACHINE_ID', 'marshal-live'),
|
|
28
|
+
machineName: resolvedOption(context.runtime, options.machineName, 'VIBES_MACHINE_NAME', 'Marshal'),
|
|
29
|
+
vibesHome: getPathRoots(context.runtime).vibesHome
|
|
30
|
+
}, marshalPresenceHeartbeatDependencies(context.runtime));
|
|
31
|
+
process.stdout.write(`Marshal presence heartbeat OK (HTTP ${receipt.status}, expires ${receipt.body.expiresInSeconds}s)\n`);
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
export default createRuntimeImplementation({
|
|
35
|
+
kind: 'cli/command',
|
|
36
|
+
id: 'fleet.marshal-presence.heartbeat',
|
|
37
|
+
implementation: MarshalPresenceHeartbeatCommand
|
|
38
|
+
});
|
|
39
|
+
//# sourceMappingURL=fleet.marshal-presence.heartbeat.command.impl.consumer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fleet.marshal-presence.heartbeat.command.impl.consumer.js","sourceRoot":"","sources":["../../../src/marshal/cli/fleet.marshal-presence.heartbeat.command.impl.consumer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAGlD,OAAO,EAAE,2BAA2B,EAAE,MAAM,qBAAqB,CAAC;AAElE,MAAM,kCAAkC,GAAG,CAAC,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,WAAW,EAAE,CAAC;AAGtE,MAAM,qCAAqC,GAAG,CAAC,CAAC,MAAM,CAAC;IACtD,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE;IAC5C,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,GAAG,CAAC,CAAC,CA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AE,YAAY,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,SAAS;SAClD,EACD,oCAAoC,CAAC,OAAO,CAAC,OAAO,CAAC,CACrD,CAAC;QACF,OAAO,CAAC,MAAM,CAAC,KAAK,CACnB,uCAAuC,OAAO,CAAC,MAAM,aAAa,OAAO,CAAC,IAAI,CAAC,gBAAgB,MAAM,CACrG,CAAC;IACH,CAAC;CACD;AAED,eAAe,2BAA2B,CAAC;IAC1C,IAAI,EAAE,aAAa;IACnB,EAAE,EAAE,kCAAkC;IACtC,cAAc,EAAE,+BAA+B;CAC/C,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../../../src/marshal/cli/plugin.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,wBAAwB,6CAInC,CAAC;AACH,eAAe,wBAAwB,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { createRuntimePlugin, loader } from '@vibesdotdev/kernel';
|
|
2
|
+
import heartbeat from "./fleet.marshal-presence.heartbeat.command.descriptor.js";
|
|
3
|
+
export const marshalPresenceCliPlugin = createRuntimePlugin({
|
|
4
|
+
id: '@vibesdotdev/workboard/marshal/cli', name: 'Marshal Presence CLI',
|
|
5
|
+
dependencies: ['cli'], descriptors: [heartbeat],
|
|
6
|
+
loaders: [loader(heartbeat.id, { kind: 'cli/command', scope: { hardware: ['consumer'] } }, () => import("./fleet.marshal-presence.heartbeat.command.impl.consumer.js"))]
|
|
7
|
+
});
|
|
8
|
+
export default marshalPresenceCliPlugin;
|
|
9
|
+
//# sourceMappingURL=plugin.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plugin.js","sourceRoot":"","sources":["../../../src/marshal/cli/plugin.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAClE,OAAO,SAAS,MAAM,0DAA0D,CAAC;AACjF,MAAM,CAAC,MAAM,wBAAwB,GAAG,mBAAmB,CAAC;IAC3D,EAAE,EAAE,oCAAoC,EAAE,IAAI,EAAE,sBAAsB;IACtE,YAAY,EAAE,CAAC,KAAK,CAAC,EAAE,WAAW,EAAE,CAAC,SAAS,CAAC;IAC/C,OAAO,EAAE,CAAC,MAAM,CAAC,SAAS,CAAC,EAAE,EAAE,EAAE,IAAI,EAAE,aAAa,EAAE,KAAK,EAAE,EAAE,QAAQ,EAAE,CAAC,UAAU,CAAC,EAAE,EAAE,EAAE,GAAG,EAAE,CAAC,MAAM,CAAC,6DAA6D,CAAC,CAAC,CAAC;CACxK,CAAC,CAAC;AACH,eAAe,wBAAwB,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Marshal Client Helper
|
|
3
|
+
*
|
|
4
|
+
* Provides the handed-runtime accessor for the canonical Marshal runtime client.
|
|
5
|
+
*/
|
|
6
|
+
import type { RuntimeRef } from '@vibesdotdev/kernel';
|
|
7
|
+
import type { MarshalClient, MarshalRuntimeClient } from './marshal-client.runtime.ts';
|
|
8
|
+
/**
|
|
9
|
+
* Get the canonical Marshal runtime client.
|
|
10
|
+
*
|
|
11
|
+
* This is the preferred way to access Marshal functionality from consumers.
|
|
12
|
+
* The client is lazily loaded and cached by the runtime.
|
|
13
|
+
*
|
|
14
|
+
* @example
|
|
15
|
+
* const marshal = await getVibesMarshalClient(runtime);
|
|
16
|
+
* const config = await marshal.config.get();
|
|
17
|
+
* const progress = await marshal.progress.get();
|
|
18
|
+
*/
|
|
19
|
+
export declare function getVibesMarshalClient(runtime: RuntimeRef): Promise<MarshalClient>;
|
|
20
|
+
/**
|
|
21
|
+
* Type guard for MarshalRuntimeClient interface.
|
|
22
|
+
*/
|
|
23
|
+
export declare function isMarshalClient<T>(client: T): client is T & MarshalRuntimeClient;
|
|
24
|
+
//# sourceMappingURL=helper.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"helper.d.ts","sourceRoot":"","sources":["../../../src/marshal/client/helper.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAEtD,OAAO,KAAK,EAAE,aAAa,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AAEvF;;;;;;;;;;GAUG;AACH,wBAAsB,qBAAqB,CAAC,OAAO,EAAE,UAAU,GAAG,OAAO,CAAC,aAAa,CAAC,CAEvF;AAED;;GAEG;AACH,wBAAgB,eAAe,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,GAAG,MAAM,IAAI,CAAC,GAAG,oBAAoB,CAUhF"}
|