@antelopejs/dms-ai 0.0.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 +190 -0
- package/README.md +46 -0
- package/dist/builder/presence.d.ts +1 -0
- package/dist/builder/presence.js +22 -0
- package/dist/builder/presence.js.map +1 -0
- package/dist/constants/builder.d.ts +7 -0
- package/dist/constants/builder.js +11 -0
- package/dist/constants/builder.js.map +1 -0
- package/dist/constants/frontend-module.d.ts +3 -0
- package/dist/constants/frontend-module.js +7 -0
- package/dist/constants/frontend-module.js.map +1 -0
- package/dist/constants/logs.d.ts +3 -0
- package/dist/constants/logs.js +7 -0
- package/dist/constants/logs.js.map +1 -0
- package/dist/constants/module.d.ts +3 -0
- package/dist/constants/module.js +7 -0
- package/dist/constants/module.js.map +1 -0
- package/dist/constants/pages-registry.d.ts +2 -0
- package/dist/constants/pages-registry.js +6 -0
- package/dist/constants/pages-registry.js.map +1 -0
- package/dist/constants/sidecar.d.ts +24 -0
- package/dist/constants/sidecar.js +32 -0
- package/dist/constants/sidecar.js.map +1 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +41 -0
- package/dist/index.js.map +1 -0
- package/dist/lifecycle/module-roots.d.ts +1 -0
- package/dist/lifecycle/module-roots.js +52 -0
- package/dist/lifecycle/module-roots.js.map +1 -0
- package/dist/lifecycle/respawn-tracker.d.ts +5 -0
- package/dist/lifecycle/respawn-tracker.js +20 -0
- package/dist/lifecycle/respawn-tracker.js.map +1 -0
- package/dist/lifecycle/skill-sources.d.ts +5 -0
- package/dist/lifecycle/skill-sources.js +181 -0
- package/dist/lifecycle/skill-sources.js.map +1 -0
- package/dist/lifecycle/spawn-sidecar.d.ts +17 -0
- package/dist/lifecycle/spawn-sidecar.js +299 -0
- package/dist/lifecycle/spawn-sidecar.js.map +1 -0
- package/dist/logging/log-buffer.d.ts +9 -0
- package/dist/logging/log-buffer.js +76 -0
- package/dist/logging/log-buffer.js.map +1 -0
- package/dist/pages/activity/page.d.ts +10 -0
- package/dist/pages/activity/page.js +62 -0
- package/dist/pages/activity/page.js.map +1 -0
- package/dist/pages/all.d.ts +4 -0
- package/dist/pages/all.js +21 -0
- package/dist/pages/all.js.map +1 -0
- package/dist/pages/index.d.ts +4 -0
- package/dist/pages/index.js +21 -0
- package/dist/pages/index.js.map +1 -0
- package/dist/pages/module.d.ts +1 -0
- package/dist/pages/module.js +11 -0
- package/dist/pages/module.js.map +1 -0
- package/dist/pages/overview/page.d.ts +11 -0
- package/dist/pages/overview/page.js +82 -0
- package/dist/pages/overview/page.js.map +1 -0
- package/dist/pages/settings/page.d.ts +9 -0
- package/dist/pages/settings/page.js +29 -0
- package/dist/pages/settings/page.js.map +1 -0
- package/dist/pages/skills/page.d.ts +9 -0
- package/dist/pages/skills/page.js +29 -0
- package/dist/pages/skills/page.js.map +1 -0
- package/dist/pages-registry.d.ts +2 -0
- package/dist/pages-registry.js +41 -0
- package/dist/pages-registry.js.map +1 -0
- package/dist/routes/builder.d.ts +11 -0
- package/dist/routes/builder.js +135 -0
- package/dist/routes/builder.js.map +1 -0
- package/dist/routes/health.d.ts +8 -0
- package/dist/routes/health.js +27 -0
- package/dist/routes/health.js.map +1 -0
- package/dist/routes/index.d.ts +8 -0
- package/dist/routes/index.js +25 -0
- package/dist/routes/index.js.map +1 -0
- package/dist/routes/logs.d.ts +7 -0
- package/dist/routes/logs.js +51 -0
- package/dist/routes/logs.js.map +1 -0
- package/dist/routes/metrics.d.ts +54 -0
- package/dist/routes/metrics.js +104 -0
- package/dist/routes/metrics.js.map +1 -0
- package/dist/routes/pages-registry.d.ts +7 -0
- package/dist/routes/pages-registry.js +86 -0
- package/dist/routes/pages-registry.js.map +1 -0
- package/dist/routes/proxy.d.ts +4 -0
- package/dist/routes/proxy.js +55 -0
- package/dist/routes/proxy.js.map +1 -0
- package/dist/routes/settings.d.ts +13 -0
- package/dist/routes/settings.js +52 -0
- package/dist/routes/settings.js.map +1 -0
- package/dist/routes/sidecar-auth.d.ts +3 -0
- package/dist/routes/sidecar-auth.js +27 -0
- package/dist/routes/sidecar-auth.js.map +1 -0
- package/dist/routes/sidecar-info.d.ts +6 -0
- package/dist/routes/sidecar-info.js +39 -0
- package/dist/routes/sidecar-info.js.map +1 -0
- package/dist/routes/skills.d.ts +18 -0
- package/dist/routes/skills.js +33 -0
- package/dist/routes/skills.js.map +1 -0
- package/dist/types/index.d.ts +2 -0
- package/dist/types/index.js +19 -0
- package/dist/types/index.js.map +1 -0
- package/dist/types/logs.d.ts +12 -0
- package/dist/types/logs.js +3 -0
- package/dist/types/logs.js.map +1 -0
- package/dist/types/pages-registry.d.ts +6 -0
- package/dist/types/pages-registry.js +3 -0
- package/dist/types/pages-registry.js.map +1 -0
- package/frontend-vue/.editorconfig +12 -0
- package/frontend-vue/app/components/ActivityView.vue +94 -0
- package/frontend-vue/app/components/SettingsView.vue +300 -0
- package/frontend-vue/app/components/SkillsView.vue +228 -0
- package/frontend-vue/app/plugins/ai.client.ts +109 -0
- package/frontend-vue/app/runtime/backoff.ts +30 -0
- package/frontend-vue/app/runtime/constants.ts +66 -0
- package/frontend-vue/app/runtime/current-page.ts +28 -0
- package/frontend-vue/app/runtime/header-action.ts +64 -0
- package/frontend-vue/app/runtime/host-commands.ts +127 -0
- package/frontend-vue/app/runtime/navigation-complete.ts +22 -0
- package/frontend-vue/app/runtime/overlay-prefs.ts +89 -0
- package/frontend-vue/app/runtime/overlay.ts +383 -0
- package/frontend-vue/app/runtime/shortcuts.ts +28 -0
- package/frontend-vue/app/runtime/sidecar-status.ts +163 -0
- package/frontend-vue/app/runtime/theme-bridge.ts +177 -0
- package/frontend-vue/app/runtime/ws-client.ts +196 -0
- package/frontend-vue/dms.frontend.ts +26 -0
- package/frontend-vue/eslint.config.mjs +24 -0
- package/frontend-vue/package.json +33 -0
- package/frontend-vue/pnpm-lock.yaml +2723 -0
- package/frontend-vue/tests/backoff.test.ts +44 -0
- package/frontend-vue/tests/host-commands.test.ts +142 -0
- package/frontend-vue/tests/navigation.test.ts +45 -0
- package/frontend-vue/tests/overlay-prefs.test.ts +91 -0
- package/frontend-vue/tests/sidecar-auth.test.ts +87 -0
- package/frontend-vue/tests/sidecar-guest.test.ts +45 -0
- package/frontend-vue/vitest.config.ts +8 -0
- package/package.json +79 -0
- package/sidecar/chatbox/dist/assets/index-Cy2BwTG0.js +50 -0
- package/sidecar/chatbox/dist/assets/index-pP_KOHIn.css +1 -0
- package/sidecar/chatbox/dist/index.html +13 -0
- package/sidecar/dist/agent/attachments.d.ts +8 -0
- package/sidecar/dist/agent/attachments.js +85 -0
- package/sidecar/dist/agent/attachments.js.map +1 -0
- package/sidecar/dist/agent/claude-runner.d.ts +33 -0
- package/sidecar/dist/agent/claude-runner.js +264 -0
- package/sidecar/dist/agent/claude-runner.js.map +1 -0
- package/sidecar/dist/agent/claude-session.d.ts +18 -0
- package/sidecar/dist/agent/claude-session.js +155 -0
- package/sidecar/dist/agent/claude-session.js.map +1 -0
- package/sidecar/dist/agent/edit-tracker.d.ts +9 -0
- package/sidecar/dist/agent/edit-tracker.js +34 -0
- package/sidecar/dist/agent/edit-tracker.js.map +1 -0
- package/sidecar/dist/agent/host-context.d.ts +4 -0
- package/sidecar/dist/agent/host-context.js +16 -0
- package/sidecar/dist/agent/host-context.js.map +1 -0
- package/sidecar/dist/agent/input-queue.d.ts +7 -0
- package/sidecar/dist/agent/input-queue.js +39 -0
- package/sidecar/dist/agent/input-queue.js.map +1 -0
- package/sidecar/dist/agent/permission-bus.d.ts +26 -0
- package/sidecar/dist/agent/permission-bus.js +138 -0
- package/sidecar/dist/agent/permission-bus.js.map +1 -0
- package/sidecar/dist/agent/question-bus.d.ts +22 -0
- package/sidecar/dist/agent/question-bus.js +91 -0
- package/sidecar/dist/agent/question-bus.js.map +1 -0
- package/sidecar/dist/agent/read-access.d.ts +2 -0
- package/sidecar/dist/agent/read-access.js +33 -0
- package/sidecar/dist/agent/read-access.js.map +1 -0
- package/sidecar/dist/agent/resolve-claude-binary.d.ts +1 -0
- package/sidecar/dist/agent/resolve-claude-binary.js +43 -0
- package/sidecar/dist/agent/resolve-claude-binary.js.map +1 -0
- package/sidecar/dist/agent/runner-events.d.ts +28 -0
- package/sidecar/dist/agent/runner-events.js +2 -0
- package/sidecar/dist/agent/runner-events.js.map +1 -0
- package/sidecar/dist/agent/sdk-adapter.d.ts +3 -0
- package/sidecar/dist/agent/sdk-adapter.js +106 -0
- package/sidecar/dist/agent/sdk-adapter.js.map +1 -0
- package/sidecar/dist/agent/sdk-loader.d.ts +5 -0
- package/sidecar/dist/agent/sdk-loader.js +14 -0
- package/sidecar/dist/agent/sdk-loader.js.map +1 -0
- package/sidecar/dist/agent/system-prompt.d.ts +6 -0
- package/sidecar/dist/agent/system-prompt.js +29 -0
- package/sidecar/dist/agent/system-prompt.js.map +1 -0
- package/sidecar/dist/agent/tool-summary.d.ts +1 -0
- package/sidecar/dist/agent/tool-summary.js +46 -0
- package/sidecar/dist/agent/tool-summary.js.map +1 -0
- package/sidecar/dist/agent/typecheck.d.ts +36 -0
- package/sidecar/dist/agent/typecheck.js +104 -0
- package/sidecar/dist/agent/typecheck.js.map +1 -0
- package/sidecar/dist/builder/builder-client.d.ts +10 -0
- package/sidecar/dist/builder/builder-client.js +52 -0
- package/sidecar/dist/builder/builder-client.js.map +1 -0
- package/sidecar/dist/builder/capability.d.ts +4 -0
- package/sidecar/dist/builder/capability.js +11 -0
- package/sidecar/dist/builder/capability.js.map +1 -0
- package/sidecar/dist/constants/agent.d.ts +25 -0
- package/sidecar/dist/constants/agent.js +25 -0
- package/sidecar/dist/constants/agent.js.map +1 -0
- package/sidecar/dist/constants/attachments.d.ts +7 -0
- package/sidecar/dist/constants/attachments.js +12 -0
- package/sidecar/dist/constants/attachments.js.map +1 -0
- package/sidecar/dist/constants/builder.d.ts +5 -0
- package/sidecar/dist/constants/builder.js +32 -0
- package/sidecar/dist/constants/builder.js.map +1 -0
- package/sidecar/dist/constants/daemon.d.ts +7 -0
- package/sidecar/dist/constants/daemon.js +8 -0
- package/sidecar/dist/constants/daemon.js.map +1 -0
- package/sidecar/dist/constants/env.d.ts +3 -0
- package/sidecar/dist/constants/env.js +4 -0
- package/sidecar/dist/constants/env.js.map +1 -0
- package/sidecar/dist/constants/host-state.d.ts +1 -0
- package/sidecar/dist/constants/host-state.js +2 -0
- package/sidecar/dist/constants/host-state.js.map +1 -0
- package/sidecar/dist/constants/http.d.ts +20 -0
- package/sidecar/dist/constants/http.js +31 -0
- package/sidecar/dist/constants/http.js.map +1 -0
- package/sidecar/dist/constants/logs.d.ts +11 -0
- package/sidecar/dist/constants/logs.js +16 -0
- package/sidecar/dist/constants/logs.js.map +1 -0
- package/sidecar/dist/constants/mcp.d.ts +24 -0
- package/sidecar/dist/constants/mcp.js +38 -0
- package/sidecar/dist/constants/mcp.js.map +1 -0
- package/sidecar/dist/constants/native-binary.d.ts +4 -0
- package/sidecar/dist/constants/native-binary.js +5 -0
- package/sidecar/dist/constants/native-binary.js.map +1 -0
- package/sidecar/dist/constants/pages.d.ts +16 -0
- package/sidecar/dist/constants/pages.js +24 -0
- package/sidecar/dist/constants/pages.js.map +1 -0
- package/sidecar/dist/constants/paths.d.ts +3 -0
- package/sidecar/dist/constants/paths.js +7 -0
- package/sidecar/dist/constants/paths.js.map +1 -0
- package/sidecar/dist/constants/permissions.d.ts +15 -0
- package/sidecar/dist/constants/permissions.js +15 -0
- package/sidecar/dist/constants/permissions.js.map +1 -0
- package/sidecar/dist/constants/ports.d.ts +3 -0
- package/sidecar/dist/constants/ports.js +4 -0
- package/sidecar/dist/constants/ports.js.map +1 -0
- package/sidecar/dist/constants/project.d.ts +8 -0
- package/sidecar/dist/constants/project.js +12 -0
- package/sidecar/dist/constants/project.js.map +1 -0
- package/sidecar/dist/constants/questions.d.ts +4 -0
- package/sidecar/dist/constants/questions.js +5 -0
- package/sidecar/dist/constants/questions.js.map +1 -0
- package/sidecar/dist/constants/read-access.d.ts +1 -0
- package/sidecar/dist/constants/read-access.js +8 -0
- package/sidecar/dist/constants/read-access.js.map +1 -0
- package/sidecar/dist/constants/safety-net.d.ts +5 -0
- package/sidecar/dist/constants/safety-net.js +6 -0
- package/sidecar/dist/constants/safety-net.js.map +1 -0
- package/sidecar/dist/constants/settings.d.ts +9 -0
- package/sidecar/dist/constants/settings.js +29 -0
- package/sidecar/dist/constants/settings.js.map +1 -0
- package/sidecar/dist/constants/state.d.ts +7 -0
- package/sidecar/dist/constants/state.js +7 -0
- package/sidecar/dist/constants/state.js.map +1 -0
- package/sidecar/dist/constants/timing.d.ts +1 -0
- package/sidecar/dist/constants/timing.js +2 -0
- package/sidecar/dist/constants/timing.js.map +1 -0
- package/sidecar/dist/constants/tool-summary.d.ts +20 -0
- package/sidecar/dist/constants/tool-summary.js +21 -0
- package/sidecar/dist/constants/tool-summary.js.map +1 -0
- package/sidecar/dist/constants/typecheck.d.ts +16 -0
- package/sidecar/dist/constants/typecheck.js +23 -0
- package/sidecar/dist/constants/typecheck.js.map +1 -0
- package/sidecar/dist/constants/ws.d.ts +5 -0
- package/sidecar/dist/constants/ws.js +6 -0
- package/sidecar/dist/constants/ws.js.map +1 -0
- package/sidecar/dist/host/project-info.d.ts +6 -0
- package/sidecar/dist/host/project-info.js +51 -0
- package/sidecar/dist/host/project-info.js.map +1 -0
- package/sidecar/dist/index.d.ts +3 -0
- package/sidecar/dist/index.js +280 -0
- package/sidecar/dist/index.js.map +1 -0
- package/sidecar/dist/logs/logs-client.d.ts +11 -0
- package/sidecar/dist/logs/logs-client.js +52 -0
- package/sidecar/dist/logs/logs-client.js.map +1 -0
- package/sidecar/dist/logs/types.d.ts +12 -0
- package/sidecar/dist/logs/types.js +2 -0
- package/sidecar/dist/logs/types.js.map +1 -0
- package/sidecar/dist/mcp/server.d.ts +2 -0
- package/sidecar/dist/mcp/server.js +50 -0
- package/sidecar/dist/mcp/server.js.map +1 -0
- package/sidecar/dist/mcp/tools/ask-user.d.ts +41 -0
- package/sidecar/dist/mcp/tools/ask-user.js +29 -0
- package/sidecar/dist/mcp/tools/ask-user.js.map +1 -0
- package/sidecar/dist/mcp/tools/builder.d.ts +259 -0
- package/sidecar/dist/mcp/tools/builder.js +216 -0
- package/sidecar/dist/mcp/tools/builder.js.map +1 -0
- package/sidecar/dist/mcp/tools/find-pages-using.d.ts +15 -0
- package/sidecar/dist/mcp/tools/find-pages-using.js +108 -0
- package/sidecar/dist/mcp/tools/find-pages-using.js.map +1 -0
- package/sidecar/dist/mcp/tools/get-current-page.d.ts +4 -0
- package/sidecar/dist/mcp/tools/get-current-page.js +12 -0
- package/sidecar/dist/mcp/tools/get-current-page.js.map +1 -0
- package/sidecar/dist/mcp/tools/list-pages.d.ts +8 -0
- package/sidecar/dist/mcp/tools/list-pages.js +29 -0
- package/sidecar/dist/mcp/tools/list-pages.js.map +1 -0
- package/sidecar/dist/mcp/tools/navigate-to-page.d.ts +14 -0
- package/sidecar/dist/mcp/tools/navigate-to-page.js +66 -0
- package/sidecar/dist/mcp/tools/navigate-to-page.js.map +1 -0
- package/sidecar/dist/mcp/tools/query-logs.d.ts +11 -0
- package/sidecar/dist/mcp/tools/query-logs.js +32 -0
- package/sidecar/dist/mcp/tools/query-logs.js.map +1 -0
- package/sidecar/dist/mcp/tools/typecheck.d.ts +9 -0
- package/sidecar/dist/mcp/tools/typecheck.js +20 -0
- package/sidecar/dist/mcp/tools/typecheck.js.map +1 -0
- package/sidecar/dist/mcp/types.d.ts +27 -0
- package/sidecar/dist/mcp/types.js +2 -0
- package/sidecar/dist/mcp/types.js.map +1 -0
- package/sidecar/dist/metrics/aggregate.d.ts +11 -0
- package/sidecar/dist/metrics/aggregate.js +189 -0
- package/sidecar/dist/metrics/aggregate.js.map +1 -0
- package/sidecar/dist/metrics/types.d.ts +53 -0
- package/sidecar/dist/metrics/types.js +8 -0
- package/sidecar/dist/metrics/types.js.map +1 -0
- package/sidecar/dist/pages/imports-scanner.d.ts +9 -0
- package/sidecar/dist/pages/imports-scanner.js +143 -0
- package/sidecar/dist/pages/imports-scanner.js.map +1 -0
- package/sidecar/dist/pages/registry-client.d.ts +15 -0
- package/sidecar/dist/pages/registry-client.js +83 -0
- package/sidecar/dist/pages/registry-client.js.map +1 -0
- package/sidecar/dist/pages/route-match.d.ts +2 -0
- package/sidecar/dist/pages/route-match.js +10 -0
- package/sidecar/dist/pages/route-match.js.map +1 -0
- package/sidecar/dist/pages/types.d.ts +11 -0
- package/sidecar/dist/pages/types.js +2 -0
- package/sidecar/dist/pages/types.js.map +1 -0
- package/sidecar/dist/prompts/agent.d.ts +3 -0
- package/sidecar/dist/prompts/agent.js +40 -0
- package/sidecar/dist/prompts/agent.js.map +1 -0
- package/sidecar/dist/prompts/builder.d.ts +3 -0
- package/sidecar/dist/prompts/builder.js +4 -0
- package/sidecar/dist/prompts/builder.js.map +1 -0
- package/sidecar/dist/protocol/events.d.ts +1050 -0
- package/sidecar/dist/protocol/events.js +154 -0
- package/sidecar/dist/protocol/events.js.map +1 -0
- package/sidecar/dist/protocol/messages.d.ts +644 -0
- package/sidecar/dist/protocol/messages.js +139 -0
- package/sidecar/dist/protocol/messages.js.map +1 -0
- package/sidecar/dist/server/client-auth.d.ts +2 -0
- package/sidecar/dist/server/client-auth.js +25 -0
- package/sidecar/dist/server/client-auth.js.map +1 -0
- package/sidecar/dist/server/host-socket-registry.d.ts +9 -0
- package/sidecar/dist/server/host-socket-registry.js +42 -0
- package/sidecar/dist/server/host-socket-registry.js.map +1 -0
- package/sidecar/dist/server/http.d.ts +25 -0
- package/sidecar/dist/server/http.js +263 -0
- package/sidecar/dist/server/http.js.map +1 -0
- package/sidecar/dist/server/idle-shutdown.d.ts +10 -0
- package/sidecar/dist/server/idle-shutdown.js +35 -0
- package/sidecar/dist/server/idle-shutdown.js.map +1 -0
- package/sidecar/dist/server/iframe-socket-registry.d.ts +10 -0
- package/sidecar/dist/server/iframe-socket-registry.js +57 -0
- package/sidecar/dist/server/iframe-socket-registry.js.map +1 -0
- package/sidecar/dist/server/live-turns.d.ts +8 -0
- package/sidecar/dist/server/live-turns.js +16 -0
- package/sidecar/dist/server/live-turns.js.map +1 -0
- package/sidecar/dist/server/navigation-completer.d.ts +5 -0
- package/sidecar/dist/server/navigation-completer.js +49 -0
- package/sidecar/dist/server/navigation-completer.js.map +1 -0
- package/sidecar/dist/server/pending-queue.d.ts +11 -0
- package/sidecar/dist/server/pending-queue.js +54 -0
- package/sidecar/dist/server/pending-queue.js.map +1 -0
- package/sidecar/dist/server/raw-data.d.ts +2 -0
- package/sidecar/dist/server/raw-data.js +13 -0
- package/sidecar/dist/server/raw-data.js.map +1 -0
- package/sidecar/dist/server/routing.d.ts +64 -0
- package/sidecar/dist/server/routing.js +571 -0
- package/sidecar/dist/server/routing.js.map +1 -0
- package/sidecar/dist/server/safety-net.d.ts +16 -0
- package/sidecar/dist/server/safety-net.js +76 -0
- package/sidecar/dist/server/safety-net.js.map +1 -0
- package/sidecar/dist/server/ws.d.ts +33 -0
- package/sidecar/dist/server/ws.js +182 -0
- package/sidecar/dist/server/ws.js.map +1 -0
- package/sidecar/dist/skills/build-catalog.d.ts +15 -0
- package/sidecar/dist/skills/build-catalog.js +39 -0
- package/sidecar/dist/skills/build-catalog.js.map +1 -0
- package/sidecar/dist/skills/frontmatter.d.ts +9 -0
- package/sidecar/dist/skills/frontmatter.js +50 -0
- package/sidecar/dist/skills/frontmatter.js.map +1 -0
- package/sidecar/dist/skills/plugin-wrapper.d.ts +6 -0
- package/sidecar/dist/skills/plugin-wrapper.js +37 -0
- package/sidecar/dist/skills/plugin-wrapper.js.map +1 -0
- package/sidecar/dist/skills/resolve-sources.d.ts +3 -0
- package/sidecar/dist/skills/resolve-sources.js +14 -0
- package/sidecar/dist/skills/resolve-sources.js.map +1 -0
- package/sidecar/dist/skills/types.d.ts +4 -0
- package/sidecar/dist/skills/types.js +2 -0
- package/sidecar/dist/skills/types.js.map +1 -0
- package/sidecar/dist/state/conversations.d.ts +20 -0
- package/sidecar/dist/state/conversations.js +93 -0
- package/sidecar/dist/state/conversations.js.map +1 -0
- package/sidecar/dist/state/host-state.d.ts +10 -0
- package/sidecar/dist/state/host-state.js +14 -0
- package/sidecar/dist/state/host-state.js.map +1 -0
- package/sidecar/dist/state/lock.d.ts +12 -0
- package/sidecar/dist/state/lock.js +43 -0
- package/sidecar/dist/state/lock.js.map +1 -0
- package/sidecar/dist/state/settings-store.d.ts +12 -0
- package/sidecar/dist/state/settings-store.js +82 -0
- package/sidecar/dist/state/settings-store.js.map +1 -0
- package/sidecar/dist/state/settings-types.d.ts +12 -0
- package/sidecar/dist/state/settings-types.js +4 -0
- package/sidecar/dist/state/settings-types.js.map +1 -0
- package/sidecar/dist/state/sidecar-version.d.ts +1 -0
- package/sidecar/dist/state/sidecar-version.js +14 -0
- package/sidecar/dist/state/sidecar-version.js.map +1 -0
- package/sidecar/dist/state/store.d.ts +11 -0
- package/sidecar/dist/state/store.js +89 -0
- package/sidecar/dist/state/store.js.map +1 -0
- package/sidecar/dist/state/types.d.ts +36 -0
- package/sidecar/dist/state/types.js +10 -0
- package/sidecar/dist/state/types.js.map +1 -0
- package/sidecar/package.json +42 -0
- package/skills/dms-builder-page/SKILL.md +80 -0
- package/skills/dms-builder-safe/REFERENCE.md +111 -0
- package/skills/dms-builder-safe/SKILL.md +118 -0
|
@@ -0,0 +1,644 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const ROLES: readonly ["iframe", "host"];
|
|
3
|
+
export type Role = (typeof ROLES)[number];
|
|
4
|
+
export declare const ROLE: {
|
|
5
|
+
readonly IFRAME: "iframe";
|
|
6
|
+
readonly HOST: "host";
|
|
7
|
+
};
|
|
8
|
+
export declare const MESSAGE_TYPES: {
|
|
9
|
+
readonly HELLO: "hello";
|
|
10
|
+
readonly ECHO: "echo";
|
|
11
|
+
readonly ECHO_REPLY: "echo_reply";
|
|
12
|
+
readonly USER_MESSAGE: "user_message";
|
|
13
|
+
readonly PERMISSION_RESPONSE: "permission_response";
|
|
14
|
+
readonly QUESTION_RESPONSE: "question_response";
|
|
15
|
+
readonly HOST_STATE_UPDATE: "host_state_update";
|
|
16
|
+
readonly HOST_NAVIGATION_COMPLETE: "host_navigation_complete";
|
|
17
|
+
readonly LIST_CONVERSATIONS: "list_conversations";
|
|
18
|
+
readonly DELETE_CONVERSATION: "delete_conversation";
|
|
19
|
+
readonly SET_SETTINGS: "set_settings";
|
|
20
|
+
readonly REQUEST_HOST_NAVIGATE: "request_host_navigate";
|
|
21
|
+
readonly INTERRUPT_TURN: "interrupt_turn";
|
|
22
|
+
readonly QUEUE_ENQUEUE: "queue_enqueue";
|
|
23
|
+
readonly QUEUE_CANCEL: "queue_cancel";
|
|
24
|
+
};
|
|
25
|
+
export declare const MAX_QUEUED_MESSAGES = 100;
|
|
26
|
+
export declare const PERMISSION_DECISION_VALUES: readonly ["allow_once", "allow_session", "deny"];
|
|
27
|
+
export declare const ClientHelloMsg: z.ZodObject<{
|
|
28
|
+
type: z.ZodLiteral<"hello">;
|
|
29
|
+
role: z.ZodEnum<["iframe", "host"]>;
|
|
30
|
+
conversationId: z.ZodOptional<z.ZodString>;
|
|
31
|
+
}, "strip", z.ZodTypeAny, {
|
|
32
|
+
type: "hello";
|
|
33
|
+
role: "iframe" | "host";
|
|
34
|
+
conversationId?: string | undefined;
|
|
35
|
+
}, {
|
|
36
|
+
type: "hello";
|
|
37
|
+
role: "iframe" | "host";
|
|
38
|
+
conversationId?: string | undefined;
|
|
39
|
+
}>;
|
|
40
|
+
export declare const EchoMsg: z.ZodObject<{
|
|
41
|
+
type: z.ZodLiteral<"echo">;
|
|
42
|
+
payload: z.ZodString;
|
|
43
|
+
}, "strip", z.ZodTypeAny, {
|
|
44
|
+
type: "echo";
|
|
45
|
+
payload: string;
|
|
46
|
+
}, {
|
|
47
|
+
type: "echo";
|
|
48
|
+
payload: string;
|
|
49
|
+
}>;
|
|
50
|
+
export declare const ServerEchoReplyMsg: z.ZodObject<{
|
|
51
|
+
type: z.ZodLiteral<"echo_reply">;
|
|
52
|
+
payload: z.ZodString;
|
|
53
|
+
serverTimeMs: z.ZodNumber;
|
|
54
|
+
}, "strip", z.ZodTypeAny, {
|
|
55
|
+
type: "echo_reply";
|
|
56
|
+
payload: string;
|
|
57
|
+
serverTimeMs: number;
|
|
58
|
+
}, {
|
|
59
|
+
type: "echo_reply";
|
|
60
|
+
payload: string;
|
|
61
|
+
serverTimeMs: number;
|
|
62
|
+
}>;
|
|
63
|
+
export declare const AttachmentSchema: z.ZodObject<{
|
|
64
|
+
name: z.ZodString;
|
|
65
|
+
mimeType: z.ZodString;
|
|
66
|
+
size: z.ZodNumber;
|
|
67
|
+
data: z.ZodString;
|
|
68
|
+
}, "strip", z.ZodTypeAny, {
|
|
69
|
+
name: string;
|
|
70
|
+
mimeType: string;
|
|
71
|
+
size: number;
|
|
72
|
+
data: string;
|
|
73
|
+
}, {
|
|
74
|
+
name: string;
|
|
75
|
+
mimeType: string;
|
|
76
|
+
size: number;
|
|
77
|
+
data: string;
|
|
78
|
+
}>;
|
|
79
|
+
export declare const UserMessageMsg: z.ZodObject<{
|
|
80
|
+
type: z.ZodLiteral<"user_message">;
|
|
81
|
+
conversationId: z.ZodString;
|
|
82
|
+
content: z.ZodString;
|
|
83
|
+
attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
84
|
+
name: z.ZodString;
|
|
85
|
+
mimeType: z.ZodString;
|
|
86
|
+
size: z.ZodNumber;
|
|
87
|
+
data: z.ZodString;
|
|
88
|
+
}, "strip", z.ZodTypeAny, {
|
|
89
|
+
name: string;
|
|
90
|
+
mimeType: string;
|
|
91
|
+
size: number;
|
|
92
|
+
data: string;
|
|
93
|
+
}, {
|
|
94
|
+
name: string;
|
|
95
|
+
mimeType: string;
|
|
96
|
+
size: number;
|
|
97
|
+
data: string;
|
|
98
|
+
}>, "many">>;
|
|
99
|
+
}, "strip", z.ZodTypeAny, {
|
|
100
|
+
type: "user_message";
|
|
101
|
+
conversationId: string;
|
|
102
|
+
content: string;
|
|
103
|
+
attachments?: {
|
|
104
|
+
name: string;
|
|
105
|
+
mimeType: string;
|
|
106
|
+
size: number;
|
|
107
|
+
data: string;
|
|
108
|
+
}[] | undefined;
|
|
109
|
+
}, {
|
|
110
|
+
type: "user_message";
|
|
111
|
+
conversationId: string;
|
|
112
|
+
content: string;
|
|
113
|
+
attachments?: {
|
|
114
|
+
name: string;
|
|
115
|
+
mimeType: string;
|
|
116
|
+
size: number;
|
|
117
|
+
data: string;
|
|
118
|
+
}[] | undefined;
|
|
119
|
+
}>;
|
|
120
|
+
export declare const QueuedItemSchema: z.ZodObject<{
|
|
121
|
+
id: z.ZodString;
|
|
122
|
+
content: z.ZodString;
|
|
123
|
+
attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
124
|
+
name: z.ZodString;
|
|
125
|
+
mimeType: z.ZodString;
|
|
126
|
+
size: z.ZodNumber;
|
|
127
|
+
data: z.ZodString;
|
|
128
|
+
}, "strip", z.ZodTypeAny, {
|
|
129
|
+
name: string;
|
|
130
|
+
mimeType: string;
|
|
131
|
+
size: number;
|
|
132
|
+
data: string;
|
|
133
|
+
}, {
|
|
134
|
+
name: string;
|
|
135
|
+
mimeType: string;
|
|
136
|
+
size: number;
|
|
137
|
+
data: string;
|
|
138
|
+
}>, "many">>;
|
|
139
|
+
}, "strip", z.ZodTypeAny, {
|
|
140
|
+
content: string;
|
|
141
|
+
id: string;
|
|
142
|
+
attachments?: {
|
|
143
|
+
name: string;
|
|
144
|
+
mimeType: string;
|
|
145
|
+
size: number;
|
|
146
|
+
data: string;
|
|
147
|
+
}[] | undefined;
|
|
148
|
+
}, {
|
|
149
|
+
content: string;
|
|
150
|
+
id: string;
|
|
151
|
+
attachments?: {
|
|
152
|
+
name: string;
|
|
153
|
+
mimeType: string;
|
|
154
|
+
size: number;
|
|
155
|
+
data: string;
|
|
156
|
+
}[] | undefined;
|
|
157
|
+
}>;
|
|
158
|
+
export declare const QueueEnqueueMsg: z.ZodObject<{
|
|
159
|
+
type: z.ZodLiteral<"queue_enqueue">;
|
|
160
|
+
conversationId: z.ZodString;
|
|
161
|
+
item: z.ZodObject<{
|
|
162
|
+
id: z.ZodString;
|
|
163
|
+
content: z.ZodString;
|
|
164
|
+
attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
165
|
+
name: z.ZodString;
|
|
166
|
+
mimeType: z.ZodString;
|
|
167
|
+
size: z.ZodNumber;
|
|
168
|
+
data: z.ZodString;
|
|
169
|
+
}, "strip", z.ZodTypeAny, {
|
|
170
|
+
name: string;
|
|
171
|
+
mimeType: string;
|
|
172
|
+
size: number;
|
|
173
|
+
data: string;
|
|
174
|
+
}, {
|
|
175
|
+
name: string;
|
|
176
|
+
mimeType: string;
|
|
177
|
+
size: number;
|
|
178
|
+
data: string;
|
|
179
|
+
}>, "many">>;
|
|
180
|
+
}, "strip", z.ZodTypeAny, {
|
|
181
|
+
content: string;
|
|
182
|
+
id: string;
|
|
183
|
+
attachments?: {
|
|
184
|
+
name: string;
|
|
185
|
+
mimeType: string;
|
|
186
|
+
size: number;
|
|
187
|
+
data: string;
|
|
188
|
+
}[] | undefined;
|
|
189
|
+
}, {
|
|
190
|
+
content: string;
|
|
191
|
+
id: string;
|
|
192
|
+
attachments?: {
|
|
193
|
+
name: string;
|
|
194
|
+
mimeType: string;
|
|
195
|
+
size: number;
|
|
196
|
+
data: string;
|
|
197
|
+
}[] | undefined;
|
|
198
|
+
}>;
|
|
199
|
+
}, "strip", z.ZodTypeAny, {
|
|
200
|
+
type: "queue_enqueue";
|
|
201
|
+
conversationId: string;
|
|
202
|
+
item: {
|
|
203
|
+
content: string;
|
|
204
|
+
id: string;
|
|
205
|
+
attachments?: {
|
|
206
|
+
name: string;
|
|
207
|
+
mimeType: string;
|
|
208
|
+
size: number;
|
|
209
|
+
data: string;
|
|
210
|
+
}[] | undefined;
|
|
211
|
+
};
|
|
212
|
+
}, {
|
|
213
|
+
type: "queue_enqueue";
|
|
214
|
+
conversationId: string;
|
|
215
|
+
item: {
|
|
216
|
+
content: string;
|
|
217
|
+
id: string;
|
|
218
|
+
attachments?: {
|
|
219
|
+
name: string;
|
|
220
|
+
mimeType: string;
|
|
221
|
+
size: number;
|
|
222
|
+
data: string;
|
|
223
|
+
}[] | undefined;
|
|
224
|
+
};
|
|
225
|
+
}>;
|
|
226
|
+
export declare const QueueCancelMsg: z.ZodObject<{
|
|
227
|
+
type: z.ZodLiteral<"queue_cancel">;
|
|
228
|
+
conversationId: z.ZodString;
|
|
229
|
+
id: z.ZodString;
|
|
230
|
+
}, "strip", z.ZodTypeAny, {
|
|
231
|
+
type: "queue_cancel";
|
|
232
|
+
conversationId: string;
|
|
233
|
+
id: string;
|
|
234
|
+
}, {
|
|
235
|
+
type: "queue_cancel";
|
|
236
|
+
conversationId: string;
|
|
237
|
+
id: string;
|
|
238
|
+
}>;
|
|
239
|
+
export declare const PermissionResponseMsg: z.ZodObject<{
|
|
240
|
+
type: z.ZodLiteral<"permission_response">;
|
|
241
|
+
conversationId: z.ZodString;
|
|
242
|
+
requestId: z.ZodString;
|
|
243
|
+
decision: z.ZodEnum<["allow_once", "allow_session", "deny"]>;
|
|
244
|
+
}, "strip", z.ZodTypeAny, {
|
|
245
|
+
type: "permission_response";
|
|
246
|
+
conversationId: string;
|
|
247
|
+
requestId: string;
|
|
248
|
+
decision: "allow_once" | "allow_session" | "deny";
|
|
249
|
+
}, {
|
|
250
|
+
type: "permission_response";
|
|
251
|
+
conversationId: string;
|
|
252
|
+
requestId: string;
|
|
253
|
+
decision: "allow_once" | "allow_session" | "deny";
|
|
254
|
+
}>;
|
|
255
|
+
export declare const QuestionResponseMsg: z.ZodObject<{
|
|
256
|
+
type: z.ZodLiteral<"question_response">;
|
|
257
|
+
conversationId: z.ZodString;
|
|
258
|
+
requestId: z.ZodString;
|
|
259
|
+
answers: z.ZodArray<z.ZodString, "many">;
|
|
260
|
+
}, "strip", z.ZodTypeAny, {
|
|
261
|
+
type: "question_response";
|
|
262
|
+
conversationId: string;
|
|
263
|
+
requestId: string;
|
|
264
|
+
answers: string[];
|
|
265
|
+
}, {
|
|
266
|
+
type: "question_response";
|
|
267
|
+
conversationId: string;
|
|
268
|
+
requestId: string;
|
|
269
|
+
answers: string[];
|
|
270
|
+
}>;
|
|
271
|
+
export declare const HostStateUpdateMsg: z.ZodObject<{
|
|
272
|
+
type: z.ZodLiteral<"host_state_update">;
|
|
273
|
+
currentPage: z.ZodObject<{
|
|
274
|
+
path: z.ZodString;
|
|
275
|
+
filepath: z.ZodOptional<z.ZodString>;
|
|
276
|
+
title: z.ZodOptional<z.ZodString>;
|
|
277
|
+
}, "strip", z.ZodTypeAny, {
|
|
278
|
+
path: string;
|
|
279
|
+
filepath?: string | undefined;
|
|
280
|
+
title?: string | undefined;
|
|
281
|
+
}, {
|
|
282
|
+
path: string;
|
|
283
|
+
filepath?: string | undefined;
|
|
284
|
+
title?: string | undefined;
|
|
285
|
+
}>;
|
|
286
|
+
}, "strip", z.ZodTypeAny, {
|
|
287
|
+
type: "host_state_update";
|
|
288
|
+
currentPage: {
|
|
289
|
+
path: string;
|
|
290
|
+
filepath?: string | undefined;
|
|
291
|
+
title?: string | undefined;
|
|
292
|
+
};
|
|
293
|
+
}, {
|
|
294
|
+
type: "host_state_update";
|
|
295
|
+
currentPage: {
|
|
296
|
+
path: string;
|
|
297
|
+
filepath?: string | undefined;
|
|
298
|
+
title?: string | undefined;
|
|
299
|
+
};
|
|
300
|
+
}>;
|
|
301
|
+
export declare const HostNavigationCompleteMsg: z.ZodObject<{
|
|
302
|
+
type: z.ZodLiteral<"host_navigation_complete">;
|
|
303
|
+
path: z.ZodString;
|
|
304
|
+
}, "strip", z.ZodTypeAny, {
|
|
305
|
+
type: "host_navigation_complete";
|
|
306
|
+
path: string;
|
|
307
|
+
}, {
|
|
308
|
+
type: "host_navigation_complete";
|
|
309
|
+
path: string;
|
|
310
|
+
}>;
|
|
311
|
+
export declare const ListConversationsMsg: z.ZodObject<{
|
|
312
|
+
type: z.ZodLiteral<"list_conversations">;
|
|
313
|
+
}, "strip", z.ZodTypeAny, {
|
|
314
|
+
type: "list_conversations";
|
|
315
|
+
}, {
|
|
316
|
+
type: "list_conversations";
|
|
317
|
+
}>;
|
|
318
|
+
export declare const DeleteConversationMsg: z.ZodObject<{
|
|
319
|
+
type: z.ZodLiteral<"delete_conversation">;
|
|
320
|
+
conversationId: z.ZodString;
|
|
321
|
+
}, "strip", z.ZodTypeAny, {
|
|
322
|
+
type: "delete_conversation";
|
|
323
|
+
conversationId: string;
|
|
324
|
+
}, {
|
|
325
|
+
type: "delete_conversation";
|
|
326
|
+
conversationId: string;
|
|
327
|
+
}>;
|
|
328
|
+
export declare const SetSettingsMsg: z.ZodObject<{
|
|
329
|
+
type: z.ZodLiteral<"set_settings">;
|
|
330
|
+
mode: z.ZodEnum<["normal", "acceptEdits", "plan", "auto"]>;
|
|
331
|
+
thinking: z.ZodEnum<["off", "low", "medium", "high"]>;
|
|
332
|
+
generationMode: z.ZodDefault<z.ZodEnum<["safe", "vibe"]>>;
|
|
333
|
+
allowLocalSkills: z.ZodDefault<z.ZodBoolean>;
|
|
334
|
+
}, "strip", z.ZodTypeAny, {
|
|
335
|
+
type: "set_settings";
|
|
336
|
+
mode: "normal" | "acceptEdits" | "plan" | "auto";
|
|
337
|
+
thinking: "off" | "low" | "medium" | "high";
|
|
338
|
+
generationMode: "safe" | "vibe";
|
|
339
|
+
allowLocalSkills: boolean;
|
|
340
|
+
}, {
|
|
341
|
+
type: "set_settings";
|
|
342
|
+
mode: "normal" | "acceptEdits" | "plan" | "auto";
|
|
343
|
+
thinking: "off" | "low" | "medium" | "high";
|
|
344
|
+
generationMode?: "safe" | "vibe" | undefined;
|
|
345
|
+
allowLocalSkills?: boolean | undefined;
|
|
346
|
+
}>;
|
|
347
|
+
export declare const RequestHostNavigateMsg: z.ZodObject<{
|
|
348
|
+
type: z.ZodLiteral<"request_host_navigate">;
|
|
349
|
+
path: z.ZodString;
|
|
350
|
+
}, "strip", z.ZodTypeAny, {
|
|
351
|
+
type: "request_host_navigate";
|
|
352
|
+
path: string;
|
|
353
|
+
}, {
|
|
354
|
+
type: "request_host_navigate";
|
|
355
|
+
path: string;
|
|
356
|
+
}>;
|
|
357
|
+
export declare const InterruptTurnMsg: z.ZodObject<{
|
|
358
|
+
type: z.ZodLiteral<"interrupt_turn">;
|
|
359
|
+
conversationId: z.ZodString;
|
|
360
|
+
}, "strip", z.ZodTypeAny, {
|
|
361
|
+
type: "interrupt_turn";
|
|
362
|
+
conversationId: string;
|
|
363
|
+
}, {
|
|
364
|
+
type: "interrupt_turn";
|
|
365
|
+
conversationId: string;
|
|
366
|
+
}>;
|
|
367
|
+
export declare const AnyClientMessage: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
368
|
+
type: z.ZodLiteral<"hello">;
|
|
369
|
+
role: z.ZodEnum<["iframe", "host"]>;
|
|
370
|
+
conversationId: z.ZodOptional<z.ZodString>;
|
|
371
|
+
}, "strip", z.ZodTypeAny, {
|
|
372
|
+
type: "hello";
|
|
373
|
+
role: "iframe" | "host";
|
|
374
|
+
conversationId?: string | undefined;
|
|
375
|
+
}, {
|
|
376
|
+
type: "hello";
|
|
377
|
+
role: "iframe" | "host";
|
|
378
|
+
conversationId?: string | undefined;
|
|
379
|
+
}>, z.ZodObject<{
|
|
380
|
+
type: z.ZodLiteral<"echo">;
|
|
381
|
+
payload: z.ZodString;
|
|
382
|
+
}, "strip", z.ZodTypeAny, {
|
|
383
|
+
type: "echo";
|
|
384
|
+
payload: string;
|
|
385
|
+
}, {
|
|
386
|
+
type: "echo";
|
|
387
|
+
payload: string;
|
|
388
|
+
}>, z.ZodObject<{
|
|
389
|
+
type: z.ZodLiteral<"user_message">;
|
|
390
|
+
conversationId: z.ZodString;
|
|
391
|
+
content: z.ZodString;
|
|
392
|
+
attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
393
|
+
name: z.ZodString;
|
|
394
|
+
mimeType: z.ZodString;
|
|
395
|
+
size: z.ZodNumber;
|
|
396
|
+
data: z.ZodString;
|
|
397
|
+
}, "strip", z.ZodTypeAny, {
|
|
398
|
+
name: string;
|
|
399
|
+
mimeType: string;
|
|
400
|
+
size: number;
|
|
401
|
+
data: string;
|
|
402
|
+
}, {
|
|
403
|
+
name: string;
|
|
404
|
+
mimeType: string;
|
|
405
|
+
size: number;
|
|
406
|
+
data: string;
|
|
407
|
+
}>, "many">>;
|
|
408
|
+
}, "strip", z.ZodTypeAny, {
|
|
409
|
+
type: "user_message";
|
|
410
|
+
conversationId: string;
|
|
411
|
+
content: string;
|
|
412
|
+
attachments?: {
|
|
413
|
+
name: string;
|
|
414
|
+
mimeType: string;
|
|
415
|
+
size: number;
|
|
416
|
+
data: string;
|
|
417
|
+
}[] | undefined;
|
|
418
|
+
}, {
|
|
419
|
+
type: "user_message";
|
|
420
|
+
conversationId: string;
|
|
421
|
+
content: string;
|
|
422
|
+
attachments?: {
|
|
423
|
+
name: string;
|
|
424
|
+
mimeType: string;
|
|
425
|
+
size: number;
|
|
426
|
+
data: string;
|
|
427
|
+
}[] | undefined;
|
|
428
|
+
}>, z.ZodObject<{
|
|
429
|
+
type: z.ZodLiteral<"permission_response">;
|
|
430
|
+
conversationId: z.ZodString;
|
|
431
|
+
requestId: z.ZodString;
|
|
432
|
+
decision: z.ZodEnum<["allow_once", "allow_session", "deny"]>;
|
|
433
|
+
}, "strip", z.ZodTypeAny, {
|
|
434
|
+
type: "permission_response";
|
|
435
|
+
conversationId: string;
|
|
436
|
+
requestId: string;
|
|
437
|
+
decision: "allow_once" | "allow_session" | "deny";
|
|
438
|
+
}, {
|
|
439
|
+
type: "permission_response";
|
|
440
|
+
conversationId: string;
|
|
441
|
+
requestId: string;
|
|
442
|
+
decision: "allow_once" | "allow_session" | "deny";
|
|
443
|
+
}>, z.ZodObject<{
|
|
444
|
+
type: z.ZodLiteral<"question_response">;
|
|
445
|
+
conversationId: z.ZodString;
|
|
446
|
+
requestId: z.ZodString;
|
|
447
|
+
answers: z.ZodArray<z.ZodString, "many">;
|
|
448
|
+
}, "strip", z.ZodTypeAny, {
|
|
449
|
+
type: "question_response";
|
|
450
|
+
conversationId: string;
|
|
451
|
+
requestId: string;
|
|
452
|
+
answers: string[];
|
|
453
|
+
}, {
|
|
454
|
+
type: "question_response";
|
|
455
|
+
conversationId: string;
|
|
456
|
+
requestId: string;
|
|
457
|
+
answers: string[];
|
|
458
|
+
}>, z.ZodObject<{
|
|
459
|
+
type: z.ZodLiteral<"host_state_update">;
|
|
460
|
+
currentPage: z.ZodObject<{
|
|
461
|
+
path: z.ZodString;
|
|
462
|
+
filepath: z.ZodOptional<z.ZodString>;
|
|
463
|
+
title: z.ZodOptional<z.ZodString>;
|
|
464
|
+
}, "strip", z.ZodTypeAny, {
|
|
465
|
+
path: string;
|
|
466
|
+
filepath?: string | undefined;
|
|
467
|
+
title?: string | undefined;
|
|
468
|
+
}, {
|
|
469
|
+
path: string;
|
|
470
|
+
filepath?: string | undefined;
|
|
471
|
+
title?: string | undefined;
|
|
472
|
+
}>;
|
|
473
|
+
}, "strip", z.ZodTypeAny, {
|
|
474
|
+
type: "host_state_update";
|
|
475
|
+
currentPage: {
|
|
476
|
+
path: string;
|
|
477
|
+
filepath?: string | undefined;
|
|
478
|
+
title?: string | undefined;
|
|
479
|
+
};
|
|
480
|
+
}, {
|
|
481
|
+
type: "host_state_update";
|
|
482
|
+
currentPage: {
|
|
483
|
+
path: string;
|
|
484
|
+
filepath?: string | undefined;
|
|
485
|
+
title?: string | undefined;
|
|
486
|
+
};
|
|
487
|
+
}>, z.ZodObject<{
|
|
488
|
+
type: z.ZodLiteral<"host_navigation_complete">;
|
|
489
|
+
path: z.ZodString;
|
|
490
|
+
}, "strip", z.ZodTypeAny, {
|
|
491
|
+
type: "host_navigation_complete";
|
|
492
|
+
path: string;
|
|
493
|
+
}, {
|
|
494
|
+
type: "host_navigation_complete";
|
|
495
|
+
path: string;
|
|
496
|
+
}>, z.ZodObject<{
|
|
497
|
+
type: z.ZodLiteral<"list_conversations">;
|
|
498
|
+
}, "strip", z.ZodTypeAny, {
|
|
499
|
+
type: "list_conversations";
|
|
500
|
+
}, {
|
|
501
|
+
type: "list_conversations";
|
|
502
|
+
}>, z.ZodObject<{
|
|
503
|
+
type: z.ZodLiteral<"delete_conversation">;
|
|
504
|
+
conversationId: z.ZodString;
|
|
505
|
+
}, "strip", z.ZodTypeAny, {
|
|
506
|
+
type: "delete_conversation";
|
|
507
|
+
conversationId: string;
|
|
508
|
+
}, {
|
|
509
|
+
type: "delete_conversation";
|
|
510
|
+
conversationId: string;
|
|
511
|
+
}>, z.ZodObject<{
|
|
512
|
+
type: z.ZodLiteral<"set_settings">;
|
|
513
|
+
mode: z.ZodEnum<["normal", "acceptEdits", "plan", "auto"]>;
|
|
514
|
+
thinking: z.ZodEnum<["off", "low", "medium", "high"]>;
|
|
515
|
+
generationMode: z.ZodDefault<z.ZodEnum<["safe", "vibe"]>>;
|
|
516
|
+
allowLocalSkills: z.ZodDefault<z.ZodBoolean>;
|
|
517
|
+
}, "strip", z.ZodTypeAny, {
|
|
518
|
+
type: "set_settings";
|
|
519
|
+
mode: "normal" | "acceptEdits" | "plan" | "auto";
|
|
520
|
+
thinking: "off" | "low" | "medium" | "high";
|
|
521
|
+
generationMode: "safe" | "vibe";
|
|
522
|
+
allowLocalSkills: boolean;
|
|
523
|
+
}, {
|
|
524
|
+
type: "set_settings";
|
|
525
|
+
mode: "normal" | "acceptEdits" | "plan" | "auto";
|
|
526
|
+
thinking: "off" | "low" | "medium" | "high";
|
|
527
|
+
generationMode?: "safe" | "vibe" | undefined;
|
|
528
|
+
allowLocalSkills?: boolean | undefined;
|
|
529
|
+
}>, z.ZodObject<{
|
|
530
|
+
type: z.ZodLiteral<"request_host_navigate">;
|
|
531
|
+
path: z.ZodString;
|
|
532
|
+
}, "strip", z.ZodTypeAny, {
|
|
533
|
+
type: "request_host_navigate";
|
|
534
|
+
path: string;
|
|
535
|
+
}, {
|
|
536
|
+
type: "request_host_navigate";
|
|
537
|
+
path: string;
|
|
538
|
+
}>, z.ZodObject<{
|
|
539
|
+
type: z.ZodLiteral<"interrupt_turn">;
|
|
540
|
+
conversationId: z.ZodString;
|
|
541
|
+
}, "strip", z.ZodTypeAny, {
|
|
542
|
+
type: "interrupt_turn";
|
|
543
|
+
conversationId: string;
|
|
544
|
+
}, {
|
|
545
|
+
type: "interrupt_turn";
|
|
546
|
+
conversationId: string;
|
|
547
|
+
}>, z.ZodObject<{
|
|
548
|
+
type: z.ZodLiteral<"queue_enqueue">;
|
|
549
|
+
conversationId: z.ZodString;
|
|
550
|
+
item: z.ZodObject<{
|
|
551
|
+
id: z.ZodString;
|
|
552
|
+
content: z.ZodString;
|
|
553
|
+
attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
554
|
+
name: z.ZodString;
|
|
555
|
+
mimeType: z.ZodString;
|
|
556
|
+
size: z.ZodNumber;
|
|
557
|
+
data: z.ZodString;
|
|
558
|
+
}, "strip", z.ZodTypeAny, {
|
|
559
|
+
name: string;
|
|
560
|
+
mimeType: string;
|
|
561
|
+
size: number;
|
|
562
|
+
data: string;
|
|
563
|
+
}, {
|
|
564
|
+
name: string;
|
|
565
|
+
mimeType: string;
|
|
566
|
+
size: number;
|
|
567
|
+
data: string;
|
|
568
|
+
}>, "many">>;
|
|
569
|
+
}, "strip", z.ZodTypeAny, {
|
|
570
|
+
content: string;
|
|
571
|
+
id: string;
|
|
572
|
+
attachments?: {
|
|
573
|
+
name: string;
|
|
574
|
+
mimeType: string;
|
|
575
|
+
size: number;
|
|
576
|
+
data: string;
|
|
577
|
+
}[] | undefined;
|
|
578
|
+
}, {
|
|
579
|
+
content: string;
|
|
580
|
+
id: string;
|
|
581
|
+
attachments?: {
|
|
582
|
+
name: string;
|
|
583
|
+
mimeType: string;
|
|
584
|
+
size: number;
|
|
585
|
+
data: string;
|
|
586
|
+
}[] | undefined;
|
|
587
|
+
}>;
|
|
588
|
+
}, "strip", z.ZodTypeAny, {
|
|
589
|
+
type: "queue_enqueue";
|
|
590
|
+
conversationId: string;
|
|
591
|
+
item: {
|
|
592
|
+
content: string;
|
|
593
|
+
id: string;
|
|
594
|
+
attachments?: {
|
|
595
|
+
name: string;
|
|
596
|
+
mimeType: string;
|
|
597
|
+
size: number;
|
|
598
|
+
data: string;
|
|
599
|
+
}[] | undefined;
|
|
600
|
+
};
|
|
601
|
+
}, {
|
|
602
|
+
type: "queue_enqueue";
|
|
603
|
+
conversationId: string;
|
|
604
|
+
item: {
|
|
605
|
+
content: string;
|
|
606
|
+
id: string;
|
|
607
|
+
attachments?: {
|
|
608
|
+
name: string;
|
|
609
|
+
mimeType: string;
|
|
610
|
+
size: number;
|
|
611
|
+
data: string;
|
|
612
|
+
}[] | undefined;
|
|
613
|
+
};
|
|
614
|
+
}>, z.ZodObject<{
|
|
615
|
+
type: z.ZodLiteral<"queue_cancel">;
|
|
616
|
+
conversationId: z.ZodString;
|
|
617
|
+
id: z.ZodString;
|
|
618
|
+
}, "strip", z.ZodTypeAny, {
|
|
619
|
+
type: "queue_cancel";
|
|
620
|
+
conversationId: string;
|
|
621
|
+
id: string;
|
|
622
|
+
}, {
|
|
623
|
+
type: "queue_cancel";
|
|
624
|
+
conversationId: string;
|
|
625
|
+
id: string;
|
|
626
|
+
}>]>;
|
|
627
|
+
export type AnyClientMessageType = z.infer<typeof AnyClientMessage>;
|
|
628
|
+
export type ClientHelloMsgType = z.infer<typeof ClientHelloMsg>;
|
|
629
|
+
export type EchoMsgType = z.infer<typeof EchoMsg>;
|
|
630
|
+
export type ServerEchoReplyMsgType = z.infer<typeof ServerEchoReplyMsg>;
|
|
631
|
+
export type UserMessageMsgType = z.infer<typeof UserMessageMsg>;
|
|
632
|
+
export type AttachmentType = z.infer<typeof AttachmentSchema>;
|
|
633
|
+
export type PermissionResponseMsgType = z.infer<typeof PermissionResponseMsg>;
|
|
634
|
+
export type QuestionResponseMsgType = z.infer<typeof QuestionResponseMsg>;
|
|
635
|
+
export type HostStateUpdateMsgType = z.infer<typeof HostStateUpdateMsg>;
|
|
636
|
+
export type HostNavigationCompleteMsgType = z.infer<typeof HostNavigationCompleteMsg>;
|
|
637
|
+
export type ListConversationsMsgType = z.infer<typeof ListConversationsMsg>;
|
|
638
|
+
export type DeleteConversationMsgType = z.infer<typeof DeleteConversationMsg>;
|
|
639
|
+
export type SetSettingsMsgType = z.infer<typeof SetSettingsMsg>;
|
|
640
|
+
export type RequestHostNavigateMsgType = z.infer<typeof RequestHostNavigateMsg>;
|
|
641
|
+
export type InterruptTurnMsgType = z.infer<typeof InterruptTurnMsg>;
|
|
642
|
+
export type QueuedItemType = z.infer<typeof QueuedItemSchema>;
|
|
643
|
+
export type QueueEnqueueMsgType = z.infer<typeof QueueEnqueueMsg>;
|
|
644
|
+
export type QueueCancelMsgType = z.infer<typeof QueueCancelMsg>;
|