@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 @@
|
|
|
1
|
+
{"version":3,"file":"worker.js","sourceRoot":"","sources":["../../../src/marshal/schemas/worker.ts"],"names":[],"mappings":"AAAA;;;;GAIG"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* MarshalGuidedSetup
|
|
3
|
+
*
|
|
4
|
+
* Orchestration module that:
|
|
5
|
+
* 1. Runs diagnoseConfig() to get current diagnostic state
|
|
6
|
+
* 2. Creates or finds a Marshal chat room with the Marshal agent
|
|
7
|
+
* 3. Seeds the conversation with diagnostic output
|
|
8
|
+
* 4. Returns the room ID so the caller can navigate to chat
|
|
9
|
+
*
|
|
10
|
+
* This module does NOT render UI — it produces state that the
|
|
11
|
+
* gateway or caller uses to navigate to the chat app.
|
|
12
|
+
*/
|
|
13
|
+
import type { ConfigDiagnostic } from '@vibesdotdev/ai/config';
|
|
14
|
+
import type { GuidedSetupOptions, GuidedSetupResult } from '../schemas/setup.ts';
|
|
15
|
+
/**
|
|
16
|
+
* Format a ConfigDiagnostic into a human-readable seed message.
|
|
17
|
+
*/
|
|
18
|
+
export declare function formatDiagnosticSeed(diagnostic: ConfigDiagnostic): string;
|
|
19
|
+
/**
|
|
20
|
+
* Initialize a guided setup session.
|
|
21
|
+
*
|
|
22
|
+
* Creates a chat room with the Marshal agent and seeds it with
|
|
23
|
+
* diagnostic information. Returns the room ID for navigation.
|
|
24
|
+
*/
|
|
25
|
+
export declare function initGuidedSetup(options: GuidedSetupOptions): Promise<GuidedSetupResult>;
|
|
26
|
+
//# sourceMappingURL=guided.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"guided.d.ts","sourceRoot":"","sources":["../../../src/marshal/setup/guided.ts"],"names":[],"mappings":"AACA;;;;;;;;;;;GAWG;AAEH,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAI/D,OAAO,KAAK,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAWjF;;GAEG;AACH,wBAAgB,oBAAoB,CAAC,UAAU,EAAE,gBAAgB,GAAG,MAAM,CAsBzE;AAED;;;;;GAKG;AACH,wBAAsB,eAAe,CAAC,OAAO,EAAE,kBAAkB,GAAG,OAAO,CAAC,iBAAiB,CAAC,CAqD7F"}
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import { settle, valueFreeFailure } from '@vibesdotdev/kernel';
|
|
2
|
+
import { getLogger } from '@vibesdotdev/logging';
|
|
3
|
+
import { invokeTool } from '@vibesdotdev/tools/execution/invoke';
|
|
4
|
+
import * as z from 'zod/v4';
|
|
5
|
+
const MARSHAL_AGENT_ID = 'marshal';
|
|
6
|
+
const MARSHAL_ROOM_TITLE = 'Marshal Setup';
|
|
7
|
+
const CHAT_ROOM_TOOL_ID = 'chat-room';
|
|
8
|
+
const CHAT_MESSAGE_TOOL_ID = 'chat-message';
|
|
9
|
+
const DEFAULT_GUIDED_SETUP_TIMEOUT_MS = 12_000;
|
|
10
|
+
/** Far-boundary shape of the `chat-room` create output: only the room id is consumed. */
|
|
11
|
+
const CreatedRoomSchema = z.object({ room: z.object({ id: z.string().min(1) }) });
|
|
12
|
+
/**
|
|
13
|
+
* Format a ConfigDiagnostic into a human-readable seed message.
|
|
14
|
+
*/
|
|
15
|
+
export function formatDiagnosticSeed(diagnostic) {
|
|
16
|
+
const lines = [
|
|
17
|
+
'## Configuration Diagnostic',
|
|
18
|
+
'',
|
|
19
|
+
`Status: ${diagnostic.ready ? 'Ready' : 'Needs attention'}`
|
|
20
|
+
];
|
|
21
|
+
if (diagnostic.missing.length > 0) {
|
|
22
|
+
lines.push('', '### Missing configuration:');
|
|
23
|
+
for (const key of diagnostic.missing) {
|
|
24
|
+
lines.push(`- \`${key}\``);
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
if (diagnostic.issues.length > 0) {
|
|
28
|
+
lines.push('', '### Issues:');
|
|
29
|
+
for (const issue of diagnostic.issues) {
|
|
30
|
+
lines.push(`- ${issue}`);
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
return lines.join('\n');
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* Initialize a guided setup session.
|
|
37
|
+
*
|
|
38
|
+
* Creates a chat room with the Marshal agent and seeds it with
|
|
39
|
+
* diagnostic information. Returns the room ID for navigation.
|
|
40
|
+
*/
|
|
41
|
+
export async function initGuidedSetup(options) {
|
|
42
|
+
const { runtime, diagnostic } = options;
|
|
43
|
+
const logger = getLogger('workboard.marshal.guided-setup', runtime);
|
|
44
|
+
const timeoutMs = options.timeoutMs ?? DEFAULT_GUIDED_SETUP_TIMEOUT_MS;
|
|
45
|
+
const diagnosticSummary = formatDiagnosticSeed(diagnostic);
|
|
46
|
+
// Create the room through the real unified `chat-room` tool. invokeTool is the
|
|
47
|
+
// public execution route: it validates against the descriptor, resolves the
|
|
48
|
+
// registered implementation, and calls it with the runtime and call context.
|
|
49
|
+
const created = await runtime.lifecycle.wait(() => invokeTool({
|
|
50
|
+
runtime,
|
|
51
|
+
toolId: CHAT_ROOM_TOOL_ID,
|
|
52
|
+
input: {
|
|
53
|
+
operation: 'create',
|
|
54
|
+
title: MARSHAL_ROOM_TITLE,
|
|
55
|
+
description: 'Configuration setup guided by Marshal',
|
|
56
|
+
agents: [{ agentId: MARSHAL_AGENT_ID, responseMode: 'auto' }],
|
|
57
|
+
visibility: 'private'
|
|
58
|
+
},
|
|
59
|
+
ctx: { callId: `marshal-setup-room-${crypto.randomUUID()}`, logger }
|
|
60
|
+
}), { timeoutMs, reason: 'creating the Marshal setup room' });
|
|
61
|
+
const roomId = CreatedRoomSchema.parse(created).room.id;
|
|
62
|
+
// Seed the room with a system message containing diagnostic output.
|
|
63
|
+
const seeded = await settle(() => runtime.lifecycle.wait(() => invokeTool({
|
|
64
|
+
runtime,
|
|
65
|
+
toolId: CHAT_MESSAGE_TOOL_ID,
|
|
66
|
+
input: {
|
|
67
|
+
action: 'send',
|
|
68
|
+
roomId,
|
|
69
|
+
content: diagnosticSummary,
|
|
70
|
+
senderType: 'system'
|
|
71
|
+
},
|
|
72
|
+
ctx: { callId: `marshal-setup-seed-${crypto.randomUUID()}`, logger }
|
|
73
|
+
}), { timeoutMs, reason: 'seeding the Marshal setup summary' }));
|
|
74
|
+
if (!seeded.ok) {
|
|
75
|
+
// The room remains useful; forward the failed optional seed.
|
|
76
|
+
getLogger('workboard.marshal.guided-setup', runtime).warn('Marshal setup summary was not seeded', {
|
|
77
|
+
roomId,
|
|
78
|
+
failure: valueFreeFailure(seeded.cause)
|
|
79
|
+
});
|
|
80
|
+
}
|
|
81
|
+
return { roomId, diagnosticSummary };
|
|
82
|
+
}
|
|
83
|
+
//# sourceMappingURL=guided.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"guided.js","sourceRoot":"","sources":["../../../src/marshal/setup/guided.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAe/D,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AACjD,OAAO,EAAE,UAAU,EAAE,MAAM,qCAAqC,CAAC;AACjE,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAG5B,MAAM,gBAAgB,GAAG,SAAS,CAAC;AACnC,MAAM,kBAAkB,GAAG,eAAe,CAAC;AAC3C,MAAM,iBAAiB,GAAG,WAAW,CAAC;AACtC,MAAM,oBAAoB,GAAG,cAAc,CAAC;AAC5C,MAAM,+BAA+B,GAAG,MAAM,CAAC;AAE/C,yFAAyF;AACzF,MAAM,iBAAiB,GAAG,CAAC,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC,MAAM,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC;AAElF;;GAEG;AACH,MAAM,UAAU,oBAAoB,CAAC,UAA4B;IAChE,MAAM,KAAK,GAAa;QACvB,6BAA6B;QAC7B,EAAE;QACF,WAAW,UAAU,CAAC,KAAK,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,iBAAiB,EAAE;KAC3D,CAAC;IAEF,IAAI,UAAU,CAAC,OAAO,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;QACnC,KAAK,CAAC,IAAI,CAAC,EAAE,EAAE,4BAA4B,CAAC,CAAC;QAC7C,KAAK,MAAM,GAAG,IAAI,UAAU,CAAC,OAAO,EAAE,CAAC;YACtC,KAAK,CAAC,IAAI,CAAC,OAAO,G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AAiC,EAAE,CACxD,CAAC;IAEF,MAAM,MAAM,GAAG,iBAAiB,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC;IAExD,oEAAoE;IACpE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,GAAG,EAAE,CAAC,OAAO,CAAC,SAAS,CAAC,IAAI,CACtD,GAAG,EAAE,CACJ,UAAU,CAAC;QACV,OAAO;QACP,MAAM,EAAE,oBAAoB;QAC5B,KAAK,EAAE;YACN,MAAM,EAAE,MAAM;YACd,MAAM;YACN,OAAO,EAAE,iBAAiB;YAC1B,UAAU,EAAE,QAAQ;SACpB;QACD,GAAG,EAAE,EAAE,MAAM,EAAE,sBAAsB,MAAM,CAAC,UAAU,EAAE,EAAE,EAAE,MAAM,EAAE;KACpE,CAAC,EACH,EAAE,SAAS,EAAE,MAAM,EAAE,mCAAmC,EAAE,CAC1D,CAAC,CAAC;IACJ,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;QAChB,6DAA6D;QAC7D,SAAS,CAAC,gCAAgC,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,sCAAsC,EAAE;YACjG,MAAM;YACN,OAAO,EAAE,gBAAgB,CAAC,MAAM,CAAC,KAAK,CAAC;SACvC,CAAC,CAAC;IACJ,CAAC;IAED,OAAO,EAAE,MAAM,EAAE,iBAAiB,EAAE,CAAC;AACtC,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Marshal Setup Module
|
|
3
|
+
*
|
|
4
|
+
* Runtime-owned setup contracts. UI surfaces may drive baseline configuration
|
|
5
|
+
* with their native AI settings, then continue conversationally with the
|
|
6
|
+
* ordinary Marshal agent in Chat.
|
|
7
|
+
*/
|
|
8
|
+
export { initGuidedSetup, formatDiagnosticSeed } from './guided.ts';
|
|
9
|
+
export type { GuidedSetupOptions, GuidedSetupResult } from '../schemas/setup.ts';
|
|
10
|
+
export { resolveSetupRoute, type BaselineSetupResult, type BaselineSaveTarget, type BaselinePreset, type SetupRoute } from './types.ts';
|
|
11
|
+
export { saveBaselineConfig } from './save-baseline.ts';
|
|
12
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/marshal/setup/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EACN,eAAe,EACf,oBAAoB,EACpB,MAAM,aAAa,CAAC;AACrB,YAAY,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACjF,OAAO,EACN,iBAAiB,EACjB,KAAK,mBAAmB,EACxB,KAAK,kBAAkB,EACvB,KAAK,cAAc,EACnB,KAAK,UAAU,EACf,MAAM,YAAY,CAAC;AACpB,OAAO,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Marshal Setup Module
|
|
3
|
+
*
|
|
4
|
+
* Runtime-owned setup contracts. UI surfaces may drive baseline configuration
|
|
5
|
+
* with their native AI settings, then continue conversationally with the
|
|
6
|
+
* ordinary Marshal agent in Chat.
|
|
7
|
+
*/
|
|
8
|
+
export { initGuidedSetup, formatDiagnosticSeed } from "./guided.js";
|
|
9
|
+
export { resolveSetupRoute } from "./types.js";
|
|
10
|
+
export { saveBaselineConfig } from "./save-baseline.js";
|
|
11
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/marshal/setup/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EACN,eAAe,EACf,oBAAoB,EACpB,MAAM,aAAa,CAAC;AAErB,OAAO,EACN,iBAAiB,EAKjB,MAAM,YAAY,CAAC;AACpB,OAAO,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { VibesRuntime } from '@vibesdotdev/kernel/api/runtime';
|
|
2
|
+
import { type AIProviderTypeDescriptor } from '@vibesdotdev/ai/providers-runtime/schemas/type-descriptor';
|
|
3
|
+
import { discoverModelsForConfiguredProvider } from './provider-runtime.models.ts';
|
|
4
|
+
import type { ProviderAuthMethodChoice, ProviderChoice, ProviderConfigField } from '../schemas/setup.ts';
|
|
5
|
+
export { discoverModelsForConfiguredProvider };
|
|
6
|
+
export type { DiscoveredModelChoice, ProviderAuthMethodChoice, ProviderChoice, ProviderConfigField } from '../schemas/setup.ts';
|
|
7
|
+
export declare function buildProviderConfigFields(descriptor: AIProviderTypeDescriptor): ProviderConfigField[];
|
|
8
|
+
export declare function validateProviderConfig(descriptor: AIProviderTypeDescriptor, config: Record<string, string | number | boolean>): {
|
|
9
|
+
valid: true;
|
|
10
|
+
} | {
|
|
11
|
+
valid: false;
|
|
12
|
+
message: string;
|
|
13
|
+
};
|
|
14
|
+
export declare function parseProviderFieldValue(field: ProviderConfigField, input: string): {
|
|
15
|
+
ok: true;
|
|
16
|
+
value?: string | number | boolean;
|
|
17
|
+
} | {
|
|
18
|
+
ok: false;
|
|
19
|
+
error: string;
|
|
20
|
+
};
|
|
21
|
+
export declare function buildProviderAuthMethodChoices(descriptor: AIProviderTypeDescriptor): ProviderAuthMethodChoice[];
|
|
22
|
+
export declare function getTextProviderChoices(runtime: VibesRuntime | null | undefined): ProviderChoice[];
|
|
23
|
+
//# sourceMappingURL=provider-runtime.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"provider-runtime.d.ts","sourceRoot":"","sources":["../../../src/marshal/setup/provider-runtime.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAC;AACpE,OAAO,EAEN,KAAK,wBAAwB,EAE7B,MAAM,2DAA2D,CAAC;AACnE,OAAO,EAAE,mCAAmC,EAAE,MAAM,8BAA8B,CAAC;AACnF,OAAO,KAAK,EACX,wBAAwB,EACxB,cAAc,EACd,mBAAmB,EACnB,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EAAE,mCAAmC,EAAE,CAAC;AAC/C,YAAY,EACX,qBAAqB,EACrB,wBAAwB,EACxB,cAAc,EACd,mBAAmB,EACnB,MAAM,qBAAqB,CAAC;AAmB7B,wBAAgB,yBAAyB,CACxC,UAAU,EAAE,wBAAwB,GAClC,mBAAmB,EAAE,CAoBvB;AAED,wBAAgB,sBAAsB,CACrC,UAAU,EAAE,wBAAwB,EACpC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC,GAC/C;IAAE,KAAK,EAAE,IAAI,CAAA;CAAE,GAAG;IAAE,KAAK,EAAE,KAAK,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,CAOrD;AAED,wBAAgB,uBAAuB,CACtC,KAAK,EAAE,mBAAmB,EAC1B,KAAK,EAAE,MAAM,GACX;IAAE,EAAE,EAAE,IAAI,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,CAAA;CAAE,GAAG;IAAE,EAAE,EAAE,KAAK,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,CA+BhF;AAcD,wBAAgB,8BAA8B,CAC7C,UAAU,EAAE,wBAAwB,GAClC,wBAAwB,EAAE,CAE5B;AAMD,wBAAgB,sBAAsB,CAAC,OAAO,EAAE,YAAY,GAAG,IAAI,GAAG,SAAS,GAAG,cAAc,EAAE,CAoBjG"}
|
|
@@ -0,0 +1,239 @@
|
|
|
1
|
+
import { type RuntimeRef } from '@vibesdotdev/kernel';
|
|
2
|
+
/** The configured provider owner owns catalog transport and vendor semantics. */
|
|
3
|
+
export declare function discoverDetectedModels(runtime: RuntimeRef, providerType: string, providerId: string, configuration: Record<string, string | number | boolean>): Promise<{
|
|
4
|
+
id: string;
|
|
5
|
+
kind: "ai/model";
|
|
6
|
+
providerId: string;
|
|
7
|
+
name: string;
|
|
8
|
+
capabilities: ("audio_transcription" | "audio_transcription_realtime" | "text_generation" | "chat_completion" | "function_calling" | "embedding_generation" | "image_generation_text_to_image" | "image_generation_image_to_image" | "image_generation_inpainting" | "image_generation_outpainting" | "image_upscaling" | "image_editing_via_instructions" | "audio_generation_text_to_speech" | "audio_generation_voice_cloning" | "audio_generation_music" | "audio_generation_sound_effects" | "video_generation_text_to_video" | "workflow_execution" | "code_generation" | "image_understanding" | "structured_evaluation")[];
|
|
9
|
+
modalities: ("text" | "audio" | "image" | "video" | "speech" | "embedding" | "transcription" | "ocr" | "evaluation")[];
|
|
10
|
+
configuration: {
|
|
11
|
+
[x: string]: unknown;
|
|
12
|
+
modelId?: string | undefined;
|
|
13
|
+
contextLength?: number | undefined;
|
|
14
|
+
temperature?: number | undefined;
|
|
15
|
+
maxTokens?: number | undefined;
|
|
16
|
+
topP?: number | undefined;
|
|
17
|
+
topK?: number | undefined;
|
|
18
|
+
frequencyPenalty?: number | undefined;
|
|
19
|
+
presencePenalty?: number | undefined;
|
|
20
|
+
stopSequences?: string[] | undefined;
|
|
21
|
+
stream?: boolean | undefined;
|
|
22
|
+
seed?: number | undefined;
|
|
23
|
+
responseFormat?: "text" | "json" | undefined;
|
|
24
|
+
imageDefaults?: {
|
|
25
|
+
steps?: number | undefined;
|
|
26
|
+
cfgScale?: number | undefined;
|
|
27
|
+
sampler?: string | undefined;
|
|
28
|
+
scheduler?: string | undefined;
|
|
29
|
+
negativePrompt?: string | undefined;
|
|
30
|
+
quality?: string | undefined;
|
|
31
|
+
outputFormat?: string | undefined;
|
|
32
|
+
} | undefined;
|
|
33
|
+
};
|
|
34
|
+
enabled: boolean;
|
|
35
|
+
modelType?: "llm_base" | "llm_chat" | "llm_embedding" | "image_diffusion" | "image_gan" | "image_upscaler" | "image_editor" | "audio_transcription" | "audio_transcription_realtime" | "audio_tts" | "audio_voice_cloning" | "audio_music_generation" | "audio_sound_effects" | "video_text_to_video" | "video_image_to_video" | "system_one" | "workflow_engine" | null | undefined;
|
|
36
|
+
displayName?: string | undefined;
|
|
37
|
+
description?: string | undefined;
|
|
38
|
+
tokenLimit?: number | null | undefined;
|
|
39
|
+
zdr?: boolean | undefined;
|
|
40
|
+
staffOnly?: boolean | undefined;
|
|
41
|
+
pricePerToken?: string | null | undefined;
|
|
42
|
+
costBasis?: {
|
|
43
|
+
units: "request" | "image" | "input_tokens" | "output_tokens" | "cached_input_tokens" | "cache_write_5m_tokens" | "cache_write_1h_tokens" | "audio_minute" | "gb_month" | "gb_egress" | "compute_second" | "gpu_second";
|
|
44
|
+
source: "published" | "manual" | "measured" | "heuristic";
|
|
45
|
+
confidence: "low" | "medium" | "high";
|
|
46
|
+
effectiveAt: string;
|
|
47
|
+
usdPerMillionUnits?: number | undefined;
|
|
48
|
+
usdPerUnit?: number | undefined;
|
|
49
|
+
}[] | undefined;
|
|
50
|
+
branding?: {
|
|
51
|
+
[x: string]: unknown;
|
|
52
|
+
logo?: {
|
|
53
|
+
[x: string]: unknown;
|
|
54
|
+
kind: "mark" | "wordmark" | "lockup" | "badge";
|
|
55
|
+
format: "svg";
|
|
56
|
+
path: string;
|
|
57
|
+
sourceUrl: string;
|
|
58
|
+
sourcePageUrl: string;
|
|
59
|
+
source: "official-brand-page" | "official-brand-kit" | "official-homepage-inline" | "official-cdn" | "official-github";
|
|
60
|
+
theme: "any" | "light" | "dark";
|
|
61
|
+
usageNotes?: string | undefined;
|
|
62
|
+
licenseNotes?: string | undefined;
|
|
63
|
+
} | undefined;
|
|
64
|
+
darkLogo?: {
|
|
65
|
+
[x: string]: unknown;
|
|
66
|
+
kind: "mark" | "wordmark" | "lockup" | "badge";
|
|
67
|
+
format: "svg";
|
|
68
|
+
path: string;
|
|
69
|
+
sourceUrl: string;
|
|
70
|
+
sourcePageUrl: string;
|
|
71
|
+
source: "official-brand-page" | "official-brand-kit" | "official-homepage-inline" | "official-cdn" | "official-github";
|
|
72
|
+
theme: "any" | "light" | "dark";
|
|
73
|
+
usageNotes?: string | undefined;
|
|
74
|
+
licenseNotes?: string | undefined;
|
|
75
|
+
} | undefined;
|
|
76
|
+
wordmark?: {
|
|
77
|
+
[x: string]: unknown;
|
|
78
|
+
kind: "mark" | "wordmark" | "lockup" | "badge";
|
|
79
|
+
format: "svg";
|
|
80
|
+
path: string;
|
|
81
|
+
sourceUrl: string;
|
|
82
|
+
sourcePageUrl: string;
|
|
83
|
+
source: "official-brand-page" | "official-brand-kit" | "official-homepage-inline" | "official-cdn" | "official-github";
|
|
84
|
+
theme: "any" | "light" | "dark";
|
|
85
|
+
usageNotes?: string | undefined;
|
|
86
|
+
licenseNotes?: string | undefined;
|
|
87
|
+
} | undefined;
|
|
88
|
+
darkWordmark?: {
|
|
89
|
+
[x: string]: unknown;
|
|
90
|
+
kind: "mark" | "wordmark" | "lockup" | "badge";
|
|
91
|
+
format: "svg";
|
|
92
|
+
path: string;
|
|
93
|
+
sourceUrl: string;
|
|
94
|
+
sourcePageUrl: string;
|
|
95
|
+
source: "official-brand-page" | "official-brand-kit" | "official-homepage-inline" | "official-cdn" | "official-github";
|
|
96
|
+
theme: "any" | "light" | "dark";
|
|
97
|
+
usageNotes?: string | undefined;
|
|
98
|
+
licenseNotes?: string | undefined;
|
|
99
|
+
} | undefined;
|
|
100
|
+
sourcePageUrl?: string | undefined;
|
|
101
|
+
usageNotes?: string | undefined;
|
|
102
|
+
} | undefined;
|
|
103
|
+
catalog?: {
|
|
104
|
+
[x: string]: unknown;
|
|
105
|
+
globalModelId: string;
|
|
106
|
+
providerModelId: string;
|
|
107
|
+
servingProviderId: string;
|
|
108
|
+
sourceProviderId?: string | undefined;
|
|
109
|
+
sourceProviderBranding?: {
|
|
110
|
+
[x: string]: unknown;
|
|
111
|
+
logo?: {
|
|
112
|
+
[x: string]: unknown;
|
|
113
|
+
kind: "mark" | "wordmark" | "lockup" | "badge";
|
|
114
|
+
format: "svg";
|
|
115
|
+
path: string;
|
|
116
|
+
sourceUrl: string;
|
|
117
|
+
sourcePageUrl: string;
|
|
118
|
+
source: "official-brand-page" | "official-brand-kit" | "official-homepage-inline" | "official-cdn" | "official-github";
|
|
119
|
+
theme: "any" | "light" | "dark";
|
|
120
|
+
usageNotes?: string | undefined;
|
|
121
|
+
licenseNotes?: string | undefined;
|
|
122
|
+
} | undefined;
|
|
123
|
+
darkLogo?: {
|
|
124
|
+
[x: string]: unknown;
|
|
125
|
+
kind: "mark" | "wordmark" | "lockup" | "badge";
|
|
126
|
+
format: "svg";
|
|
127
|
+
path: string;
|
|
128
|
+
sourceUrl: string;
|
|
129
|
+
sourcePageUrl: string;
|
|
130
|
+
source: "official-brand-page" | "official-brand-kit" | "official-homepage-inline" | "official-cdn" | "official-github";
|
|
131
|
+
theme: "any" | "light" | "dark";
|
|
132
|
+
usageNotes?: string | undefined;
|
|
133
|
+
licenseNotes?: string | undefined;
|
|
134
|
+
} | undefined;
|
|
135
|
+
wordmark?: {
|
|
136
|
+
[x: string]: unknown;
|
|
137
|
+
kind: "mark" | "wordmark" | "lockup" | "badge";
|
|
138
|
+
format: "svg";
|
|
139
|
+
path: string;
|
|
140
|
+
sourceUrl: string;
|
|
141
|
+
sourcePageUrl: string;
|
|
142
|
+
source: "official-brand-page" | "official-brand-kit" | "official-homepage-inline" | "official-cdn" | "official-github";
|
|
143
|
+
theme: "any" | "light" | "dark";
|
|
144
|
+
usageNotes?: string | undefined;
|
|
145
|
+
licenseNotes?: string | undefined;
|
|
146
|
+
} | undefined;
|
|
147
|
+
darkWordmark?: {
|
|
148
|
+
[x: string]: unknown;
|
|
149
|
+
kind: "mark" | "wordmark" | "lockup" | "badge";
|
|
150
|
+
format: "svg";
|
|
151
|
+
path: string;
|
|
152
|
+
sourceUrl: string;
|
|
153
|
+
sourcePageUrl: string;
|
|
154
|
+
source: "official-brand-page" | "official-brand-kit" | "official-homepage-inline" | "official-cdn" | "official-github";
|
|
155
|
+
theme: "any" | "light" | "dark";
|
|
156
|
+
usageNotes?: string | undefined;
|
|
157
|
+
licenseNotes?: string | undefined;
|
|
158
|
+
} | undefined;
|
|
159
|
+
sourcePageUrl?: string | undefined;
|
|
160
|
+
usageNotes?: string | undefined;
|
|
161
|
+
} | undefined;
|
|
162
|
+
servingProviderBranding?: {
|
|
163
|
+
[x: string]: unknown;
|
|
164
|
+
logo?: {
|
|
165
|
+
[x: string]: unknown;
|
|
166
|
+
kind: "mark" | "wordmark" | "lockup" | "badge";
|
|
167
|
+
format: "svg";
|
|
168
|
+
path: string;
|
|
169
|
+
sourceUrl: string;
|
|
170
|
+
sourcePageUrl: string;
|
|
171
|
+
source: "official-brand-page" | "official-brand-kit" | "official-homepage-inline" | "official-cdn" | "official-github";
|
|
172
|
+
theme: "any" | "light" | "dark";
|
|
173
|
+
usageNotes?: string | undefined;
|
|
174
|
+
licenseNotes?: string | undefined;
|
|
175
|
+
} | undefined;
|
|
176
|
+
darkLogo?: {
|
|
177
|
+
[x: string]: unknown;
|
|
178
|
+
kind: "mark" | "wordmark" | "lockup" | "badge";
|
|
179
|
+
format: "svg";
|
|
180
|
+
path: string;
|
|
181
|
+
sourceUrl: string;
|
|
182
|
+
sourcePageUrl: string;
|
|
183
|
+
source: "official-brand-page" | "official-brand-kit" | "official-homepage-inline" | "official-cdn" | "official-github";
|
|
184
|
+
theme: "any" | "light" | "dark";
|
|
185
|
+
usageNotes?: string | undefined;
|
|
186
|
+
licenseNotes?: string | undefined;
|
|
187
|
+
} | undefined;
|
|
188
|
+
wordmark?: {
|
|
189
|
+
[x: string]: unknown;
|
|
190
|
+
kind: "mark" | "wordmark" | "lockup" | "badge";
|
|
191
|
+
format: "svg";
|
|
192
|
+
path: string;
|
|
193
|
+
sourceUrl: string;
|
|
194
|
+
sourcePageUrl: string;
|
|
195
|
+
source: "official-brand-page" | "official-brand-kit" | "official-homepage-inline" | "official-cdn" | "official-github";
|
|
196
|
+
theme: "any" | "light" | "dark";
|
|
197
|
+
usageNotes?: string | undefined;
|
|
198
|
+
licenseNotes?: string | undefined;
|
|
199
|
+
} | undefined;
|
|
200
|
+
darkWordmark?: {
|
|
201
|
+
[x: string]: unknown;
|
|
202
|
+
kind: "mark" | "wordmark" | "lockup" | "badge";
|
|
203
|
+
format: "svg";
|
|
204
|
+
path: string;
|
|
205
|
+
sourceUrl: string;
|
|
206
|
+
sourcePageUrl: string;
|
|
207
|
+
source: "official-brand-page" | "official-brand-kit" | "official-homepage-inline" | "official-cdn" | "official-github";
|
|
208
|
+
theme: "any" | "light" | "dark";
|
|
209
|
+
usageNotes?: string | undefined;
|
|
210
|
+
licenseNotes?: string | undefined;
|
|
211
|
+
} | undefined;
|
|
212
|
+
sourcePageUrl?: string | undefined;
|
|
213
|
+
usageNotes?: string | undefined;
|
|
214
|
+
} | undefined;
|
|
215
|
+
} | undefined;
|
|
216
|
+
hardware?: ("consumer" | "cloud")[] | undefined;
|
|
217
|
+
tags?: string[] | undefined;
|
|
218
|
+
metadata?: Record<string, unknown> | undefined;
|
|
219
|
+
}[]>;
|
|
220
|
+
/** Compatibility projection for an unclassified provider catalog identifier. */
|
|
221
|
+
export declare function toDetectedModel(providerId: string, modelId: string): {
|
|
222
|
+
id: string;
|
|
223
|
+
providerId: string;
|
|
224
|
+
modelType: null;
|
|
225
|
+
name: string;
|
|
226
|
+
displayName: string;
|
|
227
|
+
capabilities: never[];
|
|
228
|
+
supportedModalities: "text"[];
|
|
229
|
+
configuration: {
|
|
230
|
+
modelId: string;
|
|
231
|
+
};
|
|
232
|
+
tokenLimit: null;
|
|
233
|
+
pricePerToken: null;
|
|
234
|
+
isActive: true;
|
|
235
|
+
useCount: number;
|
|
236
|
+
createdAt: Date;
|
|
237
|
+
updatedAt: Date;
|
|
238
|
+
};
|
|
239
|
+
//# sourceMappingURL=provider-runtime.detected-models.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"provider-runtime.detected-models.d.ts","sourceRoot":"","sources":["../../../src/marshal/setup/provider-runtime.detected-models.ts"],"names":[],"mappings":"AAAA,OAAO,EAA4B,KAAK,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAMhF,iFAAiF;AACjF,wBAAsB,sBAAsB,CAC3C,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,EAC7D,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAgBxD;AAED,gFAAgF;AAChF,wBAAgB,eAAe,CAAC,UAAU,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM;;;;;;;;;;;;;;;;;EAOlE"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { settle, valueFreeFailure } from '@vibesdotdev/kernel';
|
|
2
|
+
import { createAIProviderDescriptor } from '@vibesdotdev/ai/schemas/provider-descriptor';
|
|
3
|
+
import { getLogger } from '@vibesdotdev/logging';
|
|
4
|
+
/** The configured provider owner owns catalog transport and vendor semantics. */
|
|
5
|
+
export async function discoverDetectedModels(runtime, providerType, providerId, configuration) {
|
|
6
|
+
const query = runtime.query('ai/provider').withId(providerType);
|
|
7
|
+
const selected = await query.select();
|
|
8
|
+
if (!selected?.impl.listModels)
|
|
9
|
+
return [];
|
|
10
|
+
const provider = createAIProviderDescriptor({
|
|
11
|
+
id: providerId, name: providerType, description: 'Marshal setup provider',
|
|
12
|
+
providerType, sourceType: 'user', version: '1.0.0', configuration,
|
|
13
|
+
enabled: true, tags: ['marshal', 'setup']
|
|
14
|
+
});
|
|
15
|
+
const discovered = await settle(() => selected.impl.listModels(provider, { modality: 'text', live: true }));
|
|
16
|
+
if (discovered.ok)
|
|
17
|
+
return discovered.value ?? [];
|
|
18
|
+
getLogger('workboard.marshal.setup.detected-models', runtime).warn('Live model discovery failed; using descriptor fallback', { failure: valueFreeFailure(discovered.cause) });
|
|
19
|
+
return [];
|
|
20
|
+
}
|
|
21
|
+
/** Compatibility projection for an unclassified provider catalog identifier. */
|
|
22
|
+
export function toDetectedModel(providerId, modelId) {
|
|
23
|
+
return {
|
|
24
|
+
id: modelId, providerId, modelType: null, name: modelId, displayName: modelId,
|
|
25
|
+
capabilities: [], supportedModalities: ['text'], configuration: { modelId },
|
|
26
|
+
tokenLimit: null, pricePerToken: null, isActive: true, useCount: 0,
|
|
27
|
+
createdAt: new Date(), updatedAt: new Date()
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
//# sourceMappingURL=provider-runtime.detected-models.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"provider-runtime.detected-models.js","sourceRoot":"","sources":["../../../src/marshal/setup/provider-runtime.detected-models.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,gBAAgB,EAAmB,MAAM,qBAAqB,CAAC;AAGhF,OAAO,EAAE,0BAA0B,EAAE,MAAM,6CAA6C,CAAC;AACzF,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAEjD,iFAAiF;AACjF,MAAM,CAAC,KAAK,UAAU,sBAAsB,CAC3C,OAAmB,EAAE,YAAoB,EAAE,UAAkB,EAC7D,aAAwD;IAExD,MAAM,KAAK,GAAG,OAAO,CAAC,KAAK,CAAoD,aAAa,CAAC,CAAC,MAAM,CAAC,YAAY,CAAC,CAAC;IACnH,MAAM,QAAQ,GAAG,MAAM,KAAK,CAAC,MAAM,EAAE,CAAC;IACtC,IAAI,CAAC,QAAQ,EAAE,IAAI,CAAC,UAAU;QAAE,OAAO,EAAE,CAAC;IAC1C,MAAM,QAAQ,GAAG,0BAA0B,CAAC;QAC3C,EAAE,EA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} from '@vibesdotdev/ai/providers-runtime/schemas/type-descriptor';
|
|
3
|
+
import { discoverModelsForConfiguredProvider } from "./provider-runtime.models.js";
|
|
4
|
+
export { discoverModelsForConfiguredProvider };
|
|
5
|
+
function getConnectionSchema(descriptor) {
|
|
6
|
+
return z.instanceof(z.ZodType).parse(descriptor.connectionSchema);
|
|
7
|
+
}
|
|
8
|
+
function getRequiredKeys(descriptor) {
|
|
9
|
+
const parsed = getConnectionSchema(descriptor).safeParse({});
|
|
10
|
+
if (parsed.success)
|
|
11
|
+
return [];
|
|
12
|
+
const required = new Set();
|
|
13
|
+
for (const issue of parsed.error?.issues ?? []) {
|
|
14
|
+
const key = issue.path[0];
|
|
15
|
+
const parsedKey = z.string().safeParse(key);
|
|
16
|
+
if (parsedKey.success)
|
|
17
|
+
required.add(parsedKey.data);
|
|
18
|
+
}
|
|
19
|
+
return [...required];
|
|
20
|
+
}
|
|
21
|
+
export function buildProviderConfigFields(descriptor) {
|
|
22
|
+
const defaults = z.record(z.string(), z.union([z.string(), z.number(), z.boolean()])).parse(descriptor.defaults ?? {});
|
|
23
|
+
const required = getRequiredKeys(descriptor);
|
|
24
|
+
const keys = [...new Set([...required, ...Object.keys(defaults)])];
|
|
25
|
+
const authMethods = buildProviderAuthMethodChoices(descriptor);
|
|
26
|
+
if (keys.length === 0)
|
|
27
|
+
return [];
|
|
28
|
+
return keys.map((key) => {
|
|
29
|
+
const value = defaults[key];
|
|
30
|
+
const authMethodIds = authMethods
|
|
31
|
+
.filter((method) => method.credentialFields.includes(key))
|
|
32
|
+
.map((method) => method.id);
|
|
33
|
+
return {
|
|
34
|
+
key,
|
|
35
|
+
defaultValue: value,
|
|
36
|
+
required: required.includes(key),
|
|
37
|
+
authMethodIds: authMethodIds.length > 0 ? authMethodIds : undefined
|
|
38
|
+
};
|
|
39
|
+
});
|
|
40
|
+
}
|
|
41
|
+
export function validateProviderConfig(descriptor, config) {
|
|
42
|
+
const result = getConnectionSchema(descriptor).safeParse(config);
|
|
43
|
+
if (result.success)
|
|
44
|
+
return { valid: true };
|
|
45
|
+
return {
|
|
46
|
+
valid: false,
|
|
47
|
+
message: result.error?.issues[0]?.message ?? 'Invalid provider configuration.'
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
export function parseProviderFieldValue(field, input) {
|
|
51
|
+
const trimmed = input.trim();
|
|
52
|
+
const defaultValue = field.defaultValue;
|
|
53
|
+
if (!trimmed) {
|
|
54
|
+
if (field.required && (defaultValue === undefined || defaultValue === '')) {
|
|
55
|
+
return { ok: false, error: `${field.key} is required.` };
|
|
56
|
+
}
|
|
57
|
+
return { ok: true, value: defaultValue };
|
|
58
|
+
}
|
|
59
|
+
if (z.number().safeParse(defaultValue).success) {
|
|
60
|
+
const parsed = Number(trimmed);
|
|
61
|
+
if (Number.isNaN(parsed)) {
|
|
62
|
+
return { ok: false, error: `${field.key} must be a number.` };
|
|
63
|
+
}
|
|
64
|
+
return { ok: true, value: parsed };
|
|
65
|
+
}
|
|
66
|
+
if (z.boolean().safeParse(defaultValue).success) {
|
|
67
|
+
const normalized = trimmed.toLowerCase();
|
|
68
|
+
if (normalized === 'true' || normalized === 'yes' || normalized === 'y' || normalized === '1') {
|
|
69
|
+
return { ok: true, value: true };
|
|
70
|
+
}
|
|
71
|
+
if (normalized === 'false' || normalized === 'no' || normalized === 'n' || normalized === '0') {
|
|
72
|
+
return { ok: true, value: false };
|
|
73
|
+
}
|
|
74
|
+
return { ok: false, error: `${field.key} must be true/false.` };
|
|
75
|
+
}
|
|
76
|
+
return { ok: true, value: trimmed };
|
|
77
|
+
}
|
|
78
|
+
function toAuthMethodChoice(method) {
|
|
79
|
+
return {
|
|
80
|
+
id: method.id,
|
|
81
|
+
type: method.type,
|
|
82
|
+
label: method.label,
|
|
83
|
+
description: method.description,
|
|
84
|
+
tokenSource: method.tokenSource,
|
|
85
|
+
credentialFields: method.credentialFields,
|
|
86
|
+
recommended: method.recommended === true
|
|
87
|
+
};
|
|
88
|
+
}
|
|
89
|
+
export function buildProviderAuthMethodChoices(descriptor) {
|
|
90
|
+
return getProviderAuthMethods(descriptor).map(toAuthMethodChoice);
|
|
91
|
+
}
|
|
92
|
+
function requiresApiKey(authMethods) {
|
|
93
|
+
return authMethods.some((method) => method.credentialFields.includes('apiKey'));
|
|
94
|
+
}
|
|
95
|
+
export function getTextProviderChoices(runtime) {
|
|
96
|
+
if (!runtime)
|
|
97
|
+
return [];
|
|
98
|
+
const descriptors = runtime.query('ai/provider').descriptors();
|
|
99
|
+
const providers = descriptors
|
|
100
|
+
.filter((descriptor) => descriptor.enabled !== false)
|
|
101
|
+
.filter((descriptor) => descriptor.capabilities?.modalities?.includes('text') ?? true)
|
|
102
|
+
.map((descriptor) => {
|
|
103
|
+
const authMethods = buildProviderAuthMethodChoices(descriptor);
|
|
104
|
+
return {
|
|
105
|
+
type: descriptor.id,
|
|
106
|
+
label: descriptor.name,
|
|
107
|
+
description: descriptor.description ?? '',
|
|
108
|
+
requiresApiKey: requiresApiKey(authMethods),
|
|
109
|
+
authMethods,
|
|
110
|
+
descriptor
|
|
111
|
+
};
|
|
112
|
+
});
|
|
113
|
+
return providers.sort((a, b) => (b.descriptor.priority ?? 0) - (a.descriptor.priority ?? 0));
|
|
114
|
+
}
|
|
115
|
+
//# sourceMappingURL=provider-runtime.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"provider-runtime.js","sourceRoot":"","sources":["../../../src/marshal/setup/provider-runtime.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,OAAO,EACN,sBAAsB,EAGtB,MAAM,2DAA2D,CAAC;AACnE,OAAO,EAAE,mCAAmC,EAAE,MAAM,8BAA8B,CAAC;AAOnF,OAAO,EAAE,mCAAmC,EAAE,CAAC;AAQ/C,SAAS,mBAAmB,CAAC,UAAoC;IAChE,OAAO,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,KAAK,CAAC,UA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,CAAC;SACrF,GAAG,CAAC,CAAC,UAAU,EAAE,EAAE;QACnB,MAAM,WAAW,GAAG,8BAA8B,CAAC,UAAU,CAAC,CAAC;QAC/D,OAAO;YACN,IAAI,EAAE,UAAU,CAAC,EAAE;YACnB,KAAK,EAAE,UAAU,CAAC,IAAI;YACtB,WAAW,EAAE,UAAU,CAAC,WAAW,IAAI,EAAE;YACzC,cAAc,EAAE,cAAc,CAAC,WAAW,CAAC;YAC3C,WAAW;YACX,UAAU;SACV,CAAC;IACH,CAAC,CAAC,CAAC;IAEJ,OAAO,SAAS,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,UAAU,CAAC,QAAQ,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,UAAU,CAAC,QAAQ,IAAI,CAAC,CAAC,CAAC,CAAC;AAC/F,CAAC"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import type { VibesRuntime } from '@vibesdotdev/kernel/api/runtime';
|
|
2
|
+
export declare function discoverModelsForConfiguredProvider(runtime: VibesRuntime, providerType: string, providerId: string, configuration: Record<string, string | number | boolean>): Promise<{
|
|
3
|
+
id: string;
|
|
4
|
+
name: string;
|
|
5
|
+
description: string;
|
|
6
|
+
recommended: boolean;
|
|
7
|
+
model: {
|
|
8
|
+
id: string;
|
|
9
|
+
providerId: string;
|
|
10
|
+
name: string;
|
|
11
|
+
displayName: string;
|
|
12
|
+
modelType?: "llm_base" | "llm_chat" | "llm_embedding" | "image_diffusion" | "image_gan" | "image_upscaler" | "image_editor" | "audio_transcription" | "audio_transcription_realtime" | "audio_tts" | "audio_voice_cloning" | "audio_music_generation" | "audio_sound_effects" | "video_text_to_video" | "video_image_to_video" | "system_one" | "workflow_engine" | null | undefined;
|
|
13
|
+
description?: string | undefined;
|
|
14
|
+
capabilities?: ("audio_transcription" | "audio_transcription_realtime" | "text_generation" | "chat_completion" | "function_calling" | "embedding_generation" | "image_generation_text_to_image" | "image_generation_image_to_image" | "image_generation_inpainting" | "image_generation_outpainting" | "image_upscaling" | "image_editing_via_instructions" | "audio_generation_text_to_speech" | "audio_generation_voice_cloning" | "audio_generation_music" | "audio_generation_sound_effects" | "video_generation_text_to_video" | "workflow_execution" | "code_generation" | "image_understanding" | "structured_evaluation")[] | undefined;
|
|
15
|
+
supportedModalities?: ("text" | "audio" | "image" | "video" | "speech" | "embedding" | "transcription" | "ocr" | "evaluation")[] | undefined;
|
|
16
|
+
tokenLimit?: number | null | undefined;
|
|
17
|
+
pricePerToken?: string | null | undefined;
|
|
18
|
+
configuration?: {
|
|
19
|
+
modelId?: string | undefined;
|
|
20
|
+
contextLength?: number | undefined;
|
|
21
|
+
temperature?: number | undefined;
|
|
22
|
+
maxTokens?: number | undefined;
|
|
23
|
+
topP?: number | undefined;
|
|
24
|
+
topK?: number | undefined;
|
|
25
|
+
frequencyPenalty?: number | undefined;
|
|
26
|
+
presencePenalty?: number | undefined;
|
|
27
|
+
stopSequences?: string[] | undefined;
|
|
28
|
+
stream?: boolean | undefined;
|
|
29
|
+
seed?: number | undefined;
|
|
30
|
+
responseFormat?: "text" | "json" | undefined;
|
|
31
|
+
} | undefined;
|
|
32
|
+
isActive?: boolean | undefined;
|
|
33
|
+
useCount?: number | undefined;
|
|
34
|
+
createdAt?: Date | undefined;
|
|
35
|
+
updatedAt?: Date | undefined;
|
|
36
|
+
};
|
|
37
|
+
}[]>;
|
|
38
|
+
//# sourceMappingURL=provider-runtime.models.d.ts.map
|