@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,38 @@
|
|
|
1
|
+
import { BUILDER_TOOL_NAMES } from "./builder.js";
|
|
2
|
+
import { QUERY_LOGS_TOOL_NAME } from "./logs.js";
|
|
3
|
+
import { FIND_PAGES_TOOL_NAME, LIST_PAGES_TOOL_NAME } from "./pages.js";
|
|
4
|
+
import { TYPECHECK_TOOL_NAME } from "./typecheck.js";
|
|
5
|
+
export const MCP_SERVER_NAME = "dms-ai-mcp";
|
|
6
|
+
export const MCP_SERVER_VERSION = "0.0.1";
|
|
7
|
+
export const MCP_SERVER_KEY = "dms-ai";
|
|
8
|
+
export const MCP_SERVER_TYPE_SDK = "sdk";
|
|
9
|
+
export const MCP_TOOL_NAME_PREFIX = `mcp__${MCP_SERVER_KEY}__`;
|
|
10
|
+
export const GET_CURRENT_PAGE_TOOL_NAME = "GetCurrentPage";
|
|
11
|
+
export const GET_CURRENT_PAGE_TOOL_DESCRIPTION = "Returns the path/filepath of the page currently displayed in the host browser.";
|
|
12
|
+
export const NAVIGATE_TOOL_NAME = "NavigateToPage";
|
|
13
|
+
export const NAVIGATE_TOOL_DESCRIPTION = "Navigates the host browser to the given path using the host router. Awaits a host navigation-complete confirmation (with a short timeout fallback). Call GetCurrentPage to verify if needed.";
|
|
14
|
+
export const NAVIGATE_RESULT_PREFIX = "Navigation requested to ";
|
|
15
|
+
export const NAVIGATE_RESULT_COMPLETED_SUFFIX = " (completed)";
|
|
16
|
+
export const NAVIGATE_RESULT_TIMEOUT_SUFFIX = " (timed out waiting for confirmation)";
|
|
17
|
+
export const NAVIGATE_RESULT_LANDED_PREFIX = ". Host is now displaying ";
|
|
18
|
+
export const NAVIGATE_UNKNOWN_ROUTE_PREFIX = "Did not navigate: ";
|
|
19
|
+
export const NAVIGATE_UNKNOWN_ROUTE_SUFFIX = " is not a registered page route. Closest known routes: ";
|
|
20
|
+
export const NAVIGATE_UNKNOWN_ROUTE_HINT = ". Call ListPages for the full list and use a real route.";
|
|
21
|
+
export const NAVIGATE_SUGGESTION_LIMIT = 20;
|
|
22
|
+
export const ASK_USER_TOOL_NAME = "AskUser";
|
|
23
|
+
export const ASK_USER_TOOL_DESCRIPTION = "Ask the user one or more multiple-choice questions and wait for their answer. Use this whenever you need a decision or clarification instead of asking in prose. Provide 1-4 questions, each with 2-4 distinct options ({label, description}); the user may also type a custom answer. Returns the user's chosen answer for each question.";
|
|
24
|
+
export const ASK_USER_RESULT_PREFIX = "User answered:";
|
|
25
|
+
export const ASK_USER_RESULT_NO_ANSWER = "The user did not answer (the question timed out or was dismissed).";
|
|
26
|
+
export const ASK_USER_QUESTION_BUILTIN_TOOL_NAME = "AskUserQuestion";
|
|
27
|
+
export const ASK_USER_QUESTION_REDIRECT_MESSAGE = `AskUserQuestion is not available here. Use the ${MCP_TOOL_NAME_PREFIX}${ASK_USER_TOOL_NAME} tool instead to ask the user multiple-choice questions.`;
|
|
28
|
+
export const FIRST_PARTY_AUTO_ALLOW_TOOL_NAMES = new Set([
|
|
29
|
+
GET_CURRENT_PAGE_TOOL_NAME,
|
|
30
|
+
NAVIGATE_TOOL_NAME,
|
|
31
|
+
FIND_PAGES_TOOL_NAME,
|
|
32
|
+
LIST_PAGES_TOOL_NAME,
|
|
33
|
+
ASK_USER_TOOL_NAME,
|
|
34
|
+
TYPECHECK_TOOL_NAME,
|
|
35
|
+
QUERY_LOGS_TOOL_NAME,
|
|
36
|
+
...BUILDER_TOOL_NAMES,
|
|
37
|
+
].map((name) => `${MCP_TOOL_NAME_PREFIX}${name}`));
|
|
38
|
+
//# sourceMappingURL=mcp.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mcp.js","sourceRoot":"","sources":["../../src/constants/mcp.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;AAClD,OAAO,EAAE,oBAAoB,EAAE,MAAM,WAAW,CAAC;AACjD,OAAO,EAAE,oBAAoB,EAAE,oBAAoB,EAAE,MAAM,YAAY,CAAC;AACxE,OAAO,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAC;AAErD,MAAM,CAAC,MAAM,eAAe,GAAG,YAAY,CAAC;AAC5C,MAAM,CAAC,MAAM,kBAAkB,GAAG,OAAO,CAAC;AAC1C,MAAM,CAAC,MAAM,cAAc,GAAG,QAAQ,CAAC;AACvC,MAAM,CAAC,MAAM,mBAAmB,GAAG,KAAc,CAAC;AAGlD,MAAM,CAAC,MAAM,oBAAoB,GAAG,QAAQ,cAAc,IAAI,CAAC;AAE/D,MAAM,CAAC,MAAM,0BAA0B,GAAG,gBAAgB,CAAC;AAC3D,MAAM,CAAC,MAAM,iCAAiC,GAC5C,gFAAgF,CAAC;AAEnF,MAAM,CAAC,MAAM,kBAAkB,GAAG,gBAAgB,CAAC;AACnD,MAAM,CAAC,MAAM,yBAAyB,GACpC,8LAA8L,CAAC;AACjM,MAAM,CAAC,MAAM,sBAAsB,GAAG,0BAA0B,CAAC;AACjE,MAAM,CAAC,MAAM,gCAAgC,GAAG,cAAc,CAAC;AAC/D,MAAM,CAAC,MAAM,8BAA8B,GACzC,uCAAuC,CAAC;AAG1C,MAAM,CAAC,MAAM,6BAA6B,GAAG,2BAA2B,CAAC;AAIzE,MAAM,CAAC,MAAM,6BAA6B,GAAG,oBAAoB,CAAC;AAClE,MAAM,CAAC,MAAM,6BAA6B,GACxC,yDAAyD,CAAC;AAC5D,MAAM,CAAC,MAAM,2BAA2B,GACtC,0DAA0D,CAAC;AAE7D,MAAM,CAAC,MAAM,yBAAyB,GAAG,EAAE,CAAC;AAE5C,MAAM,CAAC,MAAM,kBAAkB,GAAG,SAAS,CAAC;AAC5C,MAAM,CAAC,MAAM,yBAAyB,GACpC,4UAA4U,CAAC;AAC/U,MAAM,CAAC,MAAM,sBAAsB,GAAG,gBAAgB,CAAC;AACvD,MAAM,CAAC,MAAM,yBAAyB,GACpC,oEAAoE,CAAC;AAMvE,MAAM,CAAC,MAAM,mCAAmC,GAAG,iBAAiB,CAAC;AACrE,MAAM,CAAC,MAAM,kCAAkC,GAAG,kDAAkD,oBAAoB,GAAG,kBAAkB,0DAA0D,CAAC;AAQxM,MAAM,CAAC,MAAM,iCAAiC,GAAwB,IAAI,GAAG,CAC3E;IACE,0BAA0B;IAC1B,kBAAkB;IAClB,oBAAoB;IACpB,oBAAoB;IACpB,kBAAkB;IAClB,mBAAmB;IACnB,oBAAoB;IACpB,GAAG,kBAAkB;CACtB,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,GAAG,oBAAoB,GAAG,IAAI,EAAE,CAAC,CAClD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"native-binary.js","sourceRoot":"","sources":["../../src/constants/native-binary.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,cAAc,GAAG,OAAO,CAAC;AACtC,MAAM,CAAC,MAAM,uBAAuB,GAAG,uCAAuC,CAAC;AAC/E,MAAM,CAAC,MAAM,sBAAsB,GAAG,OAAO,CAAC;AAC9C,MAAM,CAAC,MAAM,qBAAqB,GAAG,SAAS,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export declare const REGISTRY_CACHE_TTL_MS = 30000;
|
|
2
|
+
export declare const REGISTRY_PATH = "/ai/pages-registry";
|
|
3
|
+
export declare const SCAN_EXTENSIONS: readonly [".vue", ".ts", ".js"];
|
|
4
|
+
export declare const SCAN_IGNORE_DIRS: readonly ["node_modules", "dist", ".nuxt", ".antelope", "build", ".output"];
|
|
5
|
+
export declare const IMPORT_REGEX_GLOBAL: RegExp;
|
|
6
|
+
export declare const FIND_PAGES_TOOL_NAME = "FindPagesUsing";
|
|
7
|
+
export declare const FIND_PAGES_TOOL_DESCRIPTION = "Given a source filepath, returns the list of pages that import it (transitively via the local source tree).";
|
|
8
|
+
export declare const LIST_PAGES_TOOL_NAME = "ListPages";
|
|
9
|
+
export declare const LIST_PAGES_TOOL_DESCRIPTION = "Returns all registered DMS pages as {id, path, moduleId}, where `path` is the real route the page is served at. Use this to find a page's actual URL before navigating \u2014 never guess a route from a filename. Pass refresh:true after you create or edit a page so newly-registered pages appear.";
|
|
10
|
+
export declare const LIST_PAGES_EMPTY_MESSAGE = "No pages are currently registered (the backend may still be starting or reloading).";
|
|
11
|
+
export declare const LIST_PAGES_ERROR_MESSAGE = "Could not fetch the pages registry from the backend.";
|
|
12
|
+
export declare const MAX_BFS_DEPTH = 4;
|
|
13
|
+
export declare const REGISTRY_FETCH_TIMEOUT_MS = 5000;
|
|
14
|
+
export declare const DEFAULT_BACKEND_BASE_URL = "http://localhost:5010";
|
|
15
|
+
export declare const PAGES_LOG_PREFIX = "[pages]";
|
|
16
|
+
export declare const REGISTRY_STALE_FALLBACK_MESSAGE = "backend unreachable, serving stale registry cache";
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export const REGISTRY_CACHE_TTL_MS = 30_000;
|
|
2
|
+
export const REGISTRY_PATH = "/ai/pages-registry";
|
|
3
|
+
export const SCAN_EXTENSIONS = [".vue", ".ts", ".js"];
|
|
4
|
+
export const SCAN_IGNORE_DIRS = [
|
|
5
|
+
"node_modules",
|
|
6
|
+
"dist",
|
|
7
|
+
".nuxt",
|
|
8
|
+
".antelope",
|
|
9
|
+
"build",
|
|
10
|
+
".output",
|
|
11
|
+
];
|
|
12
|
+
export const IMPORT_REGEX_GLOBAL = /import\s+[^"']*?from\s+["']([^"']+)["']/g;
|
|
13
|
+
export const FIND_PAGES_TOOL_NAME = "FindPagesUsing";
|
|
14
|
+
export const FIND_PAGES_TOOL_DESCRIPTION = "Given a source filepath, returns the list of pages that import it (transitively via the local source tree).";
|
|
15
|
+
export const LIST_PAGES_TOOL_NAME = "ListPages";
|
|
16
|
+
export const LIST_PAGES_TOOL_DESCRIPTION = "Returns all registered DMS pages as {id, path, moduleId}, where `path` is the real route the page is served at. Use this to find a page's actual URL before navigating — never guess a route from a filename. Pass refresh:true after you create or edit a page so newly-registered pages appear.";
|
|
17
|
+
export const LIST_PAGES_EMPTY_MESSAGE = "No pages are currently registered (the backend may still be starting or reloading).";
|
|
18
|
+
export const LIST_PAGES_ERROR_MESSAGE = "Could not fetch the pages registry from the backend.";
|
|
19
|
+
export const MAX_BFS_DEPTH = 4;
|
|
20
|
+
export const REGISTRY_FETCH_TIMEOUT_MS = 5_000;
|
|
21
|
+
export const DEFAULT_BACKEND_BASE_URL = "http://localhost:5010";
|
|
22
|
+
export const PAGES_LOG_PREFIX = "[pages]";
|
|
23
|
+
export const REGISTRY_STALE_FALLBACK_MESSAGE = "backend unreachable, serving stale registry cache";
|
|
24
|
+
//# sourceMappingURL=pages.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pages.js","sourceRoot":"","sources":["../../src/constants/pages.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,qBAAqB,GAAG,MAAM,CAAC;AAC5C,MAAM,CAAC,MAAM,aAAa,GAAG,oBAAoB,CAAC;AAElD,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,MAAM,EAAE,KAAK,EAAE,KAAK,CAAU,CAAC;AAC/D,MAAM,CAAC,MAAM,gBAAgB,GAAG;IAC9B,cAAc;IACd,MAAM;IACN,OAAO;IACP,WAAW;IACX,OAAO;IACP,SAAS;CACD,CAAC;AAEX,MAAM,CAAC,MAAM,mBAAmB,GAAG,0CAA0C,CAAC;AAE9E,MAAM,CAAC,MAAM,oBAAoB,GAAG,gBAAgB,CAAC;AACrD,MAAM,CAAC,MAAM,2BAA2B,GACtC,6GAA6G,CAAC;AAEhH,MAAM,CAAC,MAAM,oBAAoB,GAAG,WAAW,CAAC;AAChD,MAAM,CAAC,MAAM,2BAA2B,GACtC,mSAAmS,CAAC;AACtS,MAAM,CAAC,MAAM,wBAAwB,GACnC,qFAAqF,CAAC;AACxF,MAAM,CAAC,MAAM,wBAAwB,GACnC,sDAAsD,CAAC;AAEzD,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,CAAC;AAE/B,MAAM,CAAC,MAAM,yBAAyB,GAAG,KAAK,CAAC;AAC/C,MAAM,CAAC,MAAM,wBAAwB,GAAG,uBAAuB,CAAC;AAEhE,MAAM,CAAC,MAAM,gBAAgB,GAAG,SAAS,CAAC;AAC1C,MAAM,CAAC,MAAM,+BAA+B,GAC1C,mDAAmD,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { dirname, resolve } from "node:path";
|
|
2
|
+
import { fileURLToPath } from "node:url";
|
|
3
|
+
const here = dirname(fileURLToPath(import.meta.url));
|
|
4
|
+
export const CHATBOX_DIST_DIR = resolve(here, "../../chatbox/dist");
|
|
5
|
+
export const SIDECAR_PACKAGE_JSON = resolve(here, "../../package.json");
|
|
6
|
+
export const STATE_DIR_SEGMENTS = ["node_modules", ".cache", "dms-ai"];
|
|
7
|
+
//# sourceMappingURL=paths.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"paths.js","sourceRoot":"","sources":["../../src/constants/paths.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAC7C,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAEzC,MAAM,IAAI,GAAG,OAAO,CAAC,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC;AAErD,MAAM,CAAC,MAAM,gBAAgB,GAAG,OAAO,CAAC,IAAI,EAAE,oBAAoB,CAAC,CAAC;AACpE,MAAM,CAAC,MAAM,oBAAoB,GAAG,OAAO,CAAC,IAAI,EAAE,oBAAoB,CAAC,CAAC;AACxE,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,cAAc,EAAE,QAAQ,EAAE,QAAQ,CAAU,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export declare const PERMISSION_TIMEOUT_MS: number;
|
|
2
|
+
export declare const PERMISSION_DECISIONS: {
|
|
3
|
+
readonly ALLOW_ONCE: "allow_once";
|
|
4
|
+
readonly ALLOW_SESSION: "allow_session";
|
|
5
|
+
readonly DENY: "deny";
|
|
6
|
+
};
|
|
7
|
+
export type PermissionDecision = (typeof PERMISSION_DECISIONS)[keyof typeof PERMISSION_DECISIONS];
|
|
8
|
+
export declare const PERMISSION_LOG_PREFIX = "[permission]";
|
|
9
|
+
export declare const PERMISSION_TIMEOUT_REASON = "permission request timed out";
|
|
10
|
+
export declare const PERMISSION_UNKNOWN_REQUEST_REASON = "unknown request id";
|
|
11
|
+
export declare const PERMISSION_DENIED_MESSAGE = "Permission denied by user.";
|
|
12
|
+
export declare const SDK_PERMISSION_BEHAVIOR: {
|
|
13
|
+
readonly ALLOW: "allow";
|
|
14
|
+
readonly DENY: "deny";
|
|
15
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export const PERMISSION_TIMEOUT_MS = 5 * 60_000;
|
|
2
|
+
export const PERMISSION_DECISIONS = {
|
|
3
|
+
ALLOW_ONCE: "allow_once",
|
|
4
|
+
ALLOW_SESSION: "allow_session",
|
|
5
|
+
DENY: "deny",
|
|
6
|
+
};
|
|
7
|
+
export const PERMISSION_LOG_PREFIX = "[permission]";
|
|
8
|
+
export const PERMISSION_TIMEOUT_REASON = "permission request timed out";
|
|
9
|
+
export const PERMISSION_UNKNOWN_REQUEST_REASON = "unknown request id";
|
|
10
|
+
export const PERMISSION_DENIED_MESSAGE = "Permission denied by user.";
|
|
11
|
+
export const SDK_PERMISSION_BEHAVIOR = {
|
|
12
|
+
ALLOW: "allow",
|
|
13
|
+
DENY: "deny",
|
|
14
|
+
};
|
|
15
|
+
//# sourceMappingURL=permissions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"permissions.js","sourceRoot":"","sources":["../../src/constants/permissions.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAAC,GAAG,MAAM,CAAC;AAEhD,MAAM,CAAC,MAAM,oBAAoB,GAAG;IAClC,UAAU,EAAE,YAAY;IACxB,aAAa,EAAE,eAAe;IAC9B,IAAI,EAAE,MAAM;CACJ,CAAC;AAKX,MAAM,CAAC,MAAM,qBAAqB,GAAG,cAAc,CAAC;AACpD,MAAM,CAAC,MAAM,yBAAyB,GAAG,8BAA8B,CAAC;AACxE,MAAM,CAAC,MAAM,iCAAiC,GAAG,oBAAoB,CAAC;AAEtE,MAAM,CAAC,MAAM,yBAAyB,GAAG,4BAA4B,CAAC;AAEtE,MAAM,CAAC,MAAM,uBAAuB,GAAG;IACrC,KAAK,EAAE,OAAO;IACd,IAAI,EAAE,MAAM;CACJ,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ports.js","sourceRoot":"","sources":["../../src/constants/ports.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,mBAAmB,GAAG,uBAAuB,CAAC;AAC3D,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,CAAC;AAC7B,MAAM,CAAC,MAAM,aAAa,GAAG,WAAW,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export declare const PACKAGE_JSON_FILENAME = "package.json";
|
|
2
|
+
export declare const ANTELOPE_PREFIXES: readonly ["@antelopejs/", "@antelopejs-private/"];
|
|
3
|
+
export declare const PROJECT_INFO_FALLBACK: {
|
|
4
|
+
readonly name: "unknown";
|
|
5
|
+
readonly version: "0.0.0";
|
|
6
|
+
readonly antelopeModules: string[];
|
|
7
|
+
};
|
|
8
|
+
export declare const PACKAGE_JSON_ENCODING: "utf8";
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export const PACKAGE_JSON_FILENAME = "package.json";
|
|
2
|
+
export const ANTELOPE_PREFIXES = [
|
|
3
|
+
"@antelopejs/",
|
|
4
|
+
"@antelopejs-private/",
|
|
5
|
+
];
|
|
6
|
+
export const PROJECT_INFO_FALLBACK = {
|
|
7
|
+
name: "unknown",
|
|
8
|
+
version: "0.0.0",
|
|
9
|
+
antelopeModules: [],
|
|
10
|
+
};
|
|
11
|
+
export const PACKAGE_JSON_ENCODING = "utf8";
|
|
12
|
+
//# sourceMappingURL=project.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"project.js","sourceRoot":"","sources":["../../src/constants/project.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,qBAAqB,GAAG,cAAc,CAAC;AACpD,MAAM,CAAC,MAAM,iBAAiB,GAAG;IAC/B,cAAc;IACd,sBAAsB;CACd,CAAC;AACX,MAAM,CAAC,MAAM,qBAAqB,GAAG;IACnC,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,OAAO;IAChB,eAAe,EAAE,EAAc;CACvB,CAAC;AACX,MAAM,CAAC,MAAM,qBAAqB,GAAG,MAAe,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export const QUESTION_TIMEOUT_MS = 10 * 60_000;
|
|
2
|
+
export const QUESTION_LOG_PREFIX = "[question]";
|
|
3
|
+
export const QUESTION_TIMEOUT_REASON = "question timed out";
|
|
4
|
+
export const QUESTION_UNKNOWN_REQUEST_REASON = "unknown request id";
|
|
5
|
+
//# sourceMappingURL=questions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"questions.js","sourceRoot":"","sources":["../../src/constants/questions.ts"],"names":[],"mappings":"AAIA,MAAM,CAAC,MAAM,mBAAmB,GAAG,EAAE,GAAG,MAAM,CAAC;AAE/C,MAAM,CAAC,MAAM,mBAAmB,GAAG,YAAY,CAAC;AAChD,MAAM,CAAC,MAAM,uBAAuB,GAAG,oBAAoB,CAAC;AAC5D,MAAM,CAAC,MAAM,+BAA+B,GAAG,oBAAoB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const READ_ONLY_TOOL_PATH_KEYS: Record<string, string>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"read-access.js","sourceRoot":"","sources":["../../src/constants/read-access.ts"],"names":[],"mappings":"AAKA,MAAM,CAAC,MAAM,wBAAwB,GAA2B;IAC9D,IAAI,EAAE,WAAW;IACjB,EAAE,EAAE,MAAM;IACV,IAAI,EAAE,MAAM;IACZ,IAAI,EAAE,MAAM;IACZ,YAAY,EAAE,eAAe;CAC9B,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export declare const MAX_AUTO_HEAL_ATTEMPTS = 2;
|
|
2
|
+
export declare const HEAL_PROMPT_INTRO = "Your last edits broke the build. The page will 404 until this compiles. Fix these errors, then re-run Typecheck to confirm it is clean:";
|
|
3
|
+
export declare const HEAL_PROMPT_TYPECHECK_HEADING = "Type check errors:";
|
|
4
|
+
export declare const HEAL_PROMPT_HOSTLOG_HEADING = "Host reload/build errors:";
|
|
5
|
+
export declare const HEAL_MAX_LOG_LINES = 20;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export const MAX_AUTO_HEAL_ATTEMPTS = 2;
|
|
2
|
+
export const HEAL_PROMPT_INTRO = "Your last edits broke the build. The page will 404 until this compiles. Fix these errors, then re-run Typecheck to confirm it is clean:";
|
|
3
|
+
export const HEAL_PROMPT_TYPECHECK_HEADING = "Type check errors:";
|
|
4
|
+
export const HEAL_PROMPT_HOSTLOG_HEADING = "Host reload/build errors:";
|
|
5
|
+
export const HEAL_MAX_LOG_LINES = 20;
|
|
6
|
+
//# sourceMappingURL=safety-net.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"safety-net.js","sourceRoot":"","sources":["../../src/constants/safety-net.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAC,CAAC;AAExC,MAAM,CAAC,MAAM,iBAAiB,GAC5B,yIAAyI,CAAC;AAC5I,MAAM,CAAC,MAAM,6BAA6B,GAAG,oBAAoB,CAAC;AAClE,MAAM,CAAC,MAAM,2BAA2B,GAAG,2BAA2B,CAAC;AAEvE,MAAM,CAAC,MAAM,kBAAkB,GAAG,EAAE,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { PermissionMode } from "@anthropic-ai/claude-agent-sdk";
|
|
2
|
+
import type { AppSettings, ChatboxMode, ThinkingLevel } from "../state/settings-types.js";
|
|
3
|
+
export declare const SETTINGS_FILE_NAME = "settings.json";
|
|
4
|
+
export declare const SETTINGS_LOG_PREFIX = "[dms-ai sidecar settings]";
|
|
5
|
+
export declare const DEFAULT_SETTINGS: AppSettings;
|
|
6
|
+
export declare const SAFE_MODE_DISALLOWED_TOOLS: string[];
|
|
7
|
+
export declare const SAFE_MODE_DENIED_MESSAGE = "Safe generation mode is active: raw file edits are blocked. Use the Builder (\"Builder\u2026\") MCP tools instead. If the change genuinely can't be done through the Builder, ask the user to switch to Vibe mode for this step.";
|
|
8
|
+
export declare const THINKING_TOKENS: Record<ThinkingLevel, number>;
|
|
9
|
+
export declare const PERMISSION_MODE_BY_MODE: Record<ChatboxMode, PermissionMode>;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
export const SETTINGS_FILE_NAME = "settings.json";
|
|
2
|
+
export const SETTINGS_LOG_PREFIX = "[dms-ai sidecar settings]";
|
|
3
|
+
export const DEFAULT_SETTINGS = {
|
|
4
|
+
mode: "normal",
|
|
5
|
+
thinking: "medium",
|
|
6
|
+
generationMode: "safe",
|
|
7
|
+
allowLocalSkills: false,
|
|
8
|
+
};
|
|
9
|
+
export const SAFE_MODE_DISALLOWED_TOOLS = [
|
|
10
|
+
"Write",
|
|
11
|
+
"Edit",
|
|
12
|
+
"MultiEdit",
|
|
13
|
+
"NotebookEdit",
|
|
14
|
+
"Bash",
|
|
15
|
+
];
|
|
16
|
+
export const SAFE_MODE_DENIED_MESSAGE = 'Safe generation mode is active: raw file edits are blocked. Use the Builder ("Builder…") MCP tools instead. If the change genuinely can\'t be done through the Builder, ask the user to switch to Vibe mode for this step.';
|
|
17
|
+
export const THINKING_TOKENS = {
|
|
18
|
+
off: 0,
|
|
19
|
+
low: 4096,
|
|
20
|
+
medium: 12288,
|
|
21
|
+
high: 24576,
|
|
22
|
+
};
|
|
23
|
+
export const PERMISSION_MODE_BY_MODE = {
|
|
24
|
+
normal: "default",
|
|
25
|
+
acceptEdits: "acceptEdits",
|
|
26
|
+
plan: "plan",
|
|
27
|
+
auto: "bypassPermissions",
|
|
28
|
+
};
|
|
29
|
+
//# sourceMappingURL=settings.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"settings.js","sourceRoot":"","sources":["../../src/constants/settings.ts"],"names":[],"mappings":"AAOA,MAAM,CAAC,MAAM,kBAAkB,GAAG,eAAe,CAAC;AAClD,MAAM,CAAC,MAAM,mBAAmB,GAAG,2BAA2B,CAAC;AAE/D,MAAM,CAAC,MAAM,gBAAgB,GAAgB;IAC3C,IAAI,EAAE,QAAQ;IACd,QAAQ,EAAE,QAAQ;IAClB,cAAc,EAAE,MAAM;IACtB,gBAAgB,EAAE,KAAK;CACxB,CAAC;AAMF,MAAM,CAAC,MAAM,0BAA0B,GAAG;IACxC,OAAO;IACP,MAAM;IACN,WAAW;IACX,cAAc;IACd,MAAM;CACP,CAAC;AAEF,MAAM,CAAC,MAAM,wBAAwB,GACnC,4NAA4N,CAAC;AAK/N,MAAM,CAAC,MAAM,eAAe,GAAkC;IAC5D,GAAG,EAAE,CAAC;IACN,GAAG,EAAE,IAAI;IACT,MAAM,EAAE,KAAK;IACb,IAAI,EAAE,KAAK;CACZ,CAAC;AAEF,MAAM,CAAC,MAAM,uBAAuB,GAAwC;IAC1E,MAAM,EAAE,SAAS;IACjB,WAAW,EAAE,aAAa;IAC1B,IAAI,EAAE,MAAM;IACZ,IAAI,EAAE,mBAAmB;CAC1B,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { StoredState } from "../state/types.js";
|
|
2
|
+
export declare const STATE_DEBOUNCE_MS = 500;
|
|
3
|
+
export declare const STATE_FILE_NAME = "state.json";
|
|
4
|
+
export declare const STATE_LOG_PREFIX = "[dms-ai sidecar state]";
|
|
5
|
+
export declare const STATE_INITIAL: StoredState;
|
|
6
|
+
export declare const STATE_FILE_ENCODING: "utf8";
|
|
7
|
+
export declare const STATE_JSON_INDENT = 2;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export const STATE_DEBOUNCE_MS = 500;
|
|
2
|
+
export const STATE_FILE_NAME = "state.json";
|
|
3
|
+
export const STATE_LOG_PREFIX = "[dms-ai sidecar state]";
|
|
4
|
+
export const STATE_INITIAL = { conversations: {} };
|
|
5
|
+
export const STATE_FILE_ENCODING = "utf8";
|
|
6
|
+
export const STATE_JSON_INDENT = 2;
|
|
7
|
+
//# sourceMappingURL=state.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"state.js","sourceRoot":"","sources":["../../src/constants/state.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,iBAAiB,GAAG,GAAG,CAAC;AACrC,MAAM,CAAC,MAAM,eAAe,GAAG,YAAY,CAAC;AAC5C,MAAM,CAAC,MAAM,gBAAgB,GAAG,wBAAwB,CAAC;AAEzD,MAAM,CAAC,MAAM,aAAa,GAAgB,EAAE,aAAa,EAAE,EAAE,EAAE,CAAC;AAEhE,MAAM,CAAC,MAAM,mBAAmB,GAAG,MAAe,CAAC;AACnD,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const NAVIGATE_TIMEOUT_MS = 18000;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"timing.js","sourceRoot":"","sources":["../../src/constants/timing.ts"],"names":[],"mappings":"AAGA,MAAM,CAAC,MAAM,mBAAmB,GAAG,MAAM,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export declare const SUMMARY_MAX_DETAIL_CHARS = 80;
|
|
2
|
+
export declare const SUMMARY_TRUNCATE_SUFFIX = "...";
|
|
3
|
+
export declare const SUMMARY_LABELS: {
|
|
4
|
+
readonly BASH: "Run shell command";
|
|
5
|
+
readonly EDIT: "Edit file";
|
|
6
|
+
readonly WRITE: "Write file";
|
|
7
|
+
readonly READ: "Read file";
|
|
8
|
+
readonly GLOB: "Glob pattern";
|
|
9
|
+
readonly GREP: "Grep pattern";
|
|
10
|
+
readonly UNKNOWN_PATH: "unknown";
|
|
11
|
+
readonly GENERIC_PREFIX: "Use tool";
|
|
12
|
+
};
|
|
13
|
+
export declare const SUMMARY_TOOL_NAMES: {
|
|
14
|
+
readonly BASH: "Bash";
|
|
15
|
+
readonly EDIT: "Edit";
|
|
16
|
+
readonly WRITE: "Write";
|
|
17
|
+
readonly READ: "Read";
|
|
18
|
+
readonly GLOB: "Glob";
|
|
19
|
+
readonly GREP: "Grep";
|
|
20
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export const SUMMARY_MAX_DETAIL_CHARS = 80;
|
|
2
|
+
export const SUMMARY_TRUNCATE_SUFFIX = "...";
|
|
3
|
+
export const SUMMARY_LABELS = {
|
|
4
|
+
BASH: "Run shell command",
|
|
5
|
+
EDIT: "Edit file",
|
|
6
|
+
WRITE: "Write file",
|
|
7
|
+
READ: "Read file",
|
|
8
|
+
GLOB: "Glob pattern",
|
|
9
|
+
GREP: "Grep pattern",
|
|
10
|
+
UNKNOWN_PATH: "unknown",
|
|
11
|
+
GENERIC_PREFIX: "Use tool",
|
|
12
|
+
};
|
|
13
|
+
export const SUMMARY_TOOL_NAMES = {
|
|
14
|
+
BASH: "Bash",
|
|
15
|
+
EDIT: "Edit",
|
|
16
|
+
WRITE: "Write",
|
|
17
|
+
READ: "Read",
|
|
18
|
+
GLOB: "Glob",
|
|
19
|
+
GREP: "Grep",
|
|
20
|
+
};
|
|
21
|
+
//# sourceMappingURL=tool-summary.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tool-summary.js","sourceRoot":"","sources":["../../src/constants/tool-summary.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,wBAAwB,GAAG,EAAE,CAAC;AAC3C,MAAM,CAAC,MAAM,uBAAuB,GAAG,KAAK,CAAC;AAE7C,MAAM,CAAC,MAAM,cAAc,GAAG;IAC5B,IAAI,EAAE,mBAAmB;IACzB,IAAI,EAAE,WAAW;IACjB,KAAK,EAAE,YAAY;IACnB,IAAI,EAAE,WAAW;IACjB,IAAI,EAAE,cAAc;IACpB,IAAI,EAAE,cAAc;IACpB,YAAY,EAAE,SAAS;IACvB,cAAc,EAAE,UAAU;CAClB,CAAC;AAEX,MAAM,CAAC,MAAM,kBAAkB,GAAG;IAChC,IAAI,EAAE,MAAM;IACZ,IAAI,EAAE,MAAM;IACZ,KAAK,EAAE,OAAO;IACd,IAAI,EAAE,MAAM;IACZ,IAAI,EAAE,MAAM;IACZ,IAAI,EAAE,MAAM;CACJ,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export declare const TYPECHECK_COMMAND = "pnpm";
|
|
2
|
+
export declare const TYPECHECK_ARGS: readonly string[];
|
|
3
|
+
export declare const TYPECHECK_TSCONFIG_FILENAME = "tsconfig.json";
|
|
4
|
+
export declare const TYPECHECK_TIMEOUT_MS = 60000;
|
|
5
|
+
export declare const TYPECHECK_MAX_BUFFER_BYTES: number;
|
|
6
|
+
export declare const TYPECHECK_MAX_SUMMARY_LINES = 30;
|
|
7
|
+
export declare const TYPECHECK_ERROR_LINE_REGEX: RegExp;
|
|
8
|
+
export declare const TYPECHECK_LOG_PREFIX = "[typecheck]";
|
|
9
|
+
export declare const TYPECHECK_CLEAN_MESSAGE = "No type errors.";
|
|
10
|
+
export declare const TYPECHECK_NO_TSCONFIG_MESSAGE = "No tsconfig.json in the target module \u2014 skipped type check.";
|
|
11
|
+
export declare const TYPECHECK_UNAVAILABLE_MESSAGE = "Could not run tsc (compiler unavailable or misconfigured) \u2014 skipped type check.";
|
|
12
|
+
export declare const TYPECHECK_ERRORS_PREFIX = "Type errors found:";
|
|
13
|
+
export declare const TYPECHECK_TOOL_NAME = "Typecheck";
|
|
14
|
+
export declare const TYPECHECK_TOOL_DESCRIPTION = "Runs `tsc --noEmit` on a loaded module to catch type errors BEFORE the host hot-reload rebuilds it. Optional `target` selects a module by name (its directory basename) or by an absolute root path; it must be one of the known module/project roots. Defaults to the module owning your most recently edited file, else the host project. Run this after editing a module's source and fix any errors before considering the page done.";
|
|
15
|
+
export declare const TYPECHECK_UNKNOWN_TARGET_PREFIX = "Unknown target: ";
|
|
16
|
+
export declare const TYPECHECK_UNKNOWN_TARGET_SUFFIX = " is not a known module/project root. Known targets: ";
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export const TYPECHECK_COMMAND = "pnpm";
|
|
2
|
+
export const TYPECHECK_ARGS = [
|
|
3
|
+
"exec",
|
|
4
|
+
"tsc",
|
|
5
|
+
"--noEmit",
|
|
6
|
+
"-p",
|
|
7
|
+
"tsconfig.json",
|
|
8
|
+
];
|
|
9
|
+
export const TYPECHECK_TSCONFIG_FILENAME = "tsconfig.json";
|
|
10
|
+
export const TYPECHECK_TIMEOUT_MS = 60_000;
|
|
11
|
+
export const TYPECHECK_MAX_BUFFER_BYTES = 8 * 1024 * 1024;
|
|
12
|
+
export const TYPECHECK_MAX_SUMMARY_LINES = 30;
|
|
13
|
+
export const TYPECHECK_ERROR_LINE_REGEX = /error TS\d+/;
|
|
14
|
+
export const TYPECHECK_LOG_PREFIX = "[typecheck]";
|
|
15
|
+
export const TYPECHECK_CLEAN_MESSAGE = "No type errors.";
|
|
16
|
+
export const TYPECHECK_NO_TSCONFIG_MESSAGE = "No tsconfig.json in the target module — skipped type check.";
|
|
17
|
+
export const TYPECHECK_UNAVAILABLE_MESSAGE = "Could not run tsc (compiler unavailable or misconfigured) — skipped type check.";
|
|
18
|
+
export const TYPECHECK_ERRORS_PREFIX = "Type errors found:";
|
|
19
|
+
export const TYPECHECK_TOOL_NAME = "Typecheck";
|
|
20
|
+
export const TYPECHECK_TOOL_DESCRIPTION = "Runs `tsc --noEmit` on a loaded module to catch type errors BEFORE the host hot-reload rebuilds it. Optional `target` selects a module by name (its directory basename) or by an absolute root path; it must be one of the known module/project roots. Defaults to the module owning your most recently edited file, else the host project. Run this after editing a module's source and fix any errors before considering the page done.";
|
|
21
|
+
export const TYPECHECK_UNKNOWN_TARGET_PREFIX = "Unknown target: ";
|
|
22
|
+
export const TYPECHECK_UNKNOWN_TARGET_SUFFIX = " is not a known module/project root. Known targets: ";
|
|
23
|
+
//# sourceMappingURL=typecheck.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"typecheck.js","sourceRoot":"","sources":["../../src/constants/typecheck.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,iBAAiB,GAAG,MAAM,CAAC;AACxC,MAAM,CAAC,MAAM,cAAc,GAAsB;IAC/C,MAAM;IACN,KAAK;IACL,UAAU;IACV,IAAI;IACJ,eAAe;CAChB,CAAC;AACF,MAAM,CAAC,MAAM,2BAA2B,GAAG,eAAe,CAAC;AAC3D,MAAM,CAAC,MAAM,oBAAoB,GAAG,MAAM,CAAC;AAC3C,MAAM,CAAC,MAAM,0BAA0B,GAAG,CAAC,GAAG,IAAI,GAAG,IAAI,CAAC;AAC1D,MAAM,CAAC,MAAM,2BAA2B,GAAG,EAAE,CAAC;AAE9C,MAAM,CAAC,MAAM,0BAA0B,GAAG,aAAa,CAAC;AAExD,MAAM,CAAC,MAAM,oBAAoB,GAAG,aAAa,CAAC;AAClD,MAAM,CAAC,MAAM,uBAAuB,GAAG,iBAAiB,CAAC;AACzD,MAAM,CAAC,MAAM,6BAA6B,GACxC,6DAA6D,CAAC;AAChE,MAAM,CAAC,MAAM,6BAA6B,GACxC,iFAAiF,CAAC;AACpF,MAAM,CAAC,MAAM,uBAAuB,GAAG,oBAAoB,CAAC;AAE5D,MAAM,CAAC,MAAM,mBAAmB,GAAG,WAAW,CAAC;AAC/C,MAAM,CAAC,MAAM,0BAA0B,GACrC,2aAA2a,CAAC;AAC9a,MAAM,CAAC,MAAM,+BAA+B,GAAG,kBAAkB,CAAC;AAClE,MAAM,CAAC,MAAM,+BAA+B,GAC1C,sDAAsD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ws.js","sourceRoot":"","sources":["../../src/constants/ws.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,QAAQ,GAAG;IACtB,MAAM,EAAE,YAAY;IACpB,IAAI,EAAE,UAAU;CACR,CAAC;AAEX,MAAM,CAAC,MAAM,aAAa,GAAG,MAAM,CAAC"}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { readFile } from "node:fs/promises";
|
|
2
|
+
import { join } from "node:path";
|
|
3
|
+
import { ANTELOPE_PREFIXES, PACKAGE_JSON_ENCODING, PACKAGE_JSON_FILENAME, PROJECT_INFO_FALLBACK, } from "../constants/project.js";
|
|
4
|
+
async function readPackageJson(filePath) {
|
|
5
|
+
try {
|
|
6
|
+
const raw = await readFile(filePath, PACKAGE_JSON_ENCODING);
|
|
7
|
+
const parsed = JSON.parse(raw);
|
|
8
|
+
if (parsed === null || typeof parsed !== "object")
|
|
9
|
+
return null;
|
|
10
|
+
return parsed;
|
|
11
|
+
}
|
|
12
|
+
catch {
|
|
13
|
+
return null;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
function hasAntelopePrefix(name) {
|
|
17
|
+
return ANTELOPE_PREFIXES.some((prefix) => name.startsWith(prefix));
|
|
18
|
+
}
|
|
19
|
+
function collectDependencyNames(pkg) {
|
|
20
|
+
const deps = pkg.dependencies ?? {};
|
|
21
|
+
const devDeps = pkg.devDependencies ?? {};
|
|
22
|
+
return [...Object.keys(deps), ...Object.keys(devDeps)];
|
|
23
|
+
}
|
|
24
|
+
function extractAntelopeModules(pkg) {
|
|
25
|
+
const all = collectDependencyNames(pkg);
|
|
26
|
+
const matching = all.filter(hasAntelopePrefix);
|
|
27
|
+
const unique = Array.from(new Set(matching));
|
|
28
|
+
return unique.sort();
|
|
29
|
+
}
|
|
30
|
+
function buildFallback() {
|
|
31
|
+
return {
|
|
32
|
+
name: PROJECT_INFO_FALLBACK.name,
|
|
33
|
+
version: PROJECT_INFO_FALLBACK.version,
|
|
34
|
+
antelopeModules: [...PROJECT_INFO_FALLBACK.antelopeModules],
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
function toProjectInfo(pkg) {
|
|
38
|
+
return {
|
|
39
|
+
name: pkg.name ?? PROJECT_INFO_FALLBACK.name,
|
|
40
|
+
version: pkg.version ?? PROJECT_INFO_FALLBACK.version,
|
|
41
|
+
antelopeModules: extractAntelopeModules(pkg),
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
export async function readProjectInfo(hostProjectRoot) {
|
|
45
|
+
const filePath = join(hostProjectRoot, PACKAGE_JSON_FILENAME);
|
|
46
|
+
const pkg = await readPackageJson(filePath);
|
|
47
|
+
if (pkg === null)
|
|
48
|
+
return buildFallback();
|
|
49
|
+
return toProjectInfo(pkg);
|
|
50
|
+
}
|
|
51
|
+
//# sourceMappingURL=project-info.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"project-info.js","sourceRoot":"","sources":["../../src/host/project-info.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC5C,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,EACL,iBAAiB,EACjB,qBAAqB,EACrB,qBAAqB,EACrB,qBAAqB,GACtB,MAAM,yBAAyB,CAAC;AAejC,KAAK,UAAU,eAAe,CAC5B,QAAgB;IAEhB,IAAI,CAAC;QACH,MAAM,GAAG,GAAG,MAAM,QAAQ,CAAC,QAAQ,EAAE,qBAAqB,CAAC,CAAC;QAC5D,MAAM,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,GAAG,CAAY,CAAC;QAC1C,IAAI,MAAM,KAAK,IAAI,IAAI,OAAO,MAAM,KAAK,QAAQ;YAAE,OAAO,IAAI,CAAC;QAC/D,OAAO,MAA0B,CAAC;IACpC,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,IAAI,CAAC;IACd,CAAC;AACH,CAAC;AAED,SAAS,iBAAiB,CAAC,IAAY;IACrC,OAAO,iBAAiB,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,IAAI,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC,CAAC;AACrE,CAAC;AAED,SAAS,sBAAsB,CAAC,GAAqB;IACnD,MAAM,IAAI,GAAG,GAAG,CAAC,YAAY,IAAI,EAAE,CAAC;IACpC,MAAM,OAAO,GAAG,GAAG,CAAC,eAAe,IAAI,EAAE,CAAC;IAC1C,OAAO,CAAC,GAAG,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,GAAG,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC;AACzD,CAAC;AAED,SAAS,sBAAsB,CAAC,GAAqB;IACnD,MAAM,GAAG,GAAG,sBAAsB,CAAC,GAAG,CAAC,CAAC;IACxC,MAAM,QAAQ,GAAG,GAAG,CAAC,MAAM,CAAC,iBAAiB,CAAC,CAAC;IAC/C,MAAM,MAAM,GAAG,KAAK,CAAC,IAAI,CAAC,IAAI,GAAG,CAAC,QAAQ,CAAC,CAAC,CAAC;IAC7C,OAAO,MAAM,CAAC,IAAI,EAAE,CAAC;AACvB,CAAC;AAED,SAAS,aAAa;IACpB,OAAO;QACL,IAAI,EAAE,qBAAqB,CAAC,IAAI;QAChC,OAAO,EAAE,qBAAqB,CAAC,OAAO;QACtC,eAAe,EAAE,CAAC,GAAG,qBAAqB,CAAC,eAAe,CAAC;KAC5D,CAAC;AACJ,CAAC;AAED,SAAS,aAAa,CAAC,GAAqB;IAC1C,OAAO;QACL,IAAI,EAAE,GAAG,CAAC,IAAI,IAAI,qBAAqB,CAAC,IAAI;QAC5C,OAAO,EAAE,GAAG,CAAC,OAAO,IAAI,qBAAqB,CAAC,OAAO;QACrD,eAAe,EAAE,sBAAsB,CAAC,GAAG,CAAC;KAC7C,CAAC;AACJ,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,eAAe,CACnC,eAAuB;IAEvB,MAAM,QAAQ,GAAG,IAAI,CAAC,eAAe,EAAE,qBAAqB,CAAC,CAAC;IAC9D,MAAM,GAAG,GAAG,MAAM,eAAe,CAAC,QAAQ,CAAC,CAAC;IAC5C,IAAI,GAAG,KAAK,IAAI;QAAE,OAAO,aAAa,EAAE,CAAC;IACzC,OAAO,aAAa,CAAC,GAAG,CAAC,CAAC;AAC5B,CAAC"}
|