@antelopejs/dms-assistant 0.0.0 → 0.1.0
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 +169 -0
- package/dist/builder/config.d.ts +8 -0
- package/dist/builder/config.js +21 -0
- package/dist/builder/config.js.map +1 -0
- package/dist/builder/constants/routes.d.ts +17 -0
- package/dist/builder/constants/routes.js +21 -0
- package/dist/builder/constants/routes.js.map +1 -0
- package/dist/builder/dms-answer.d.ts +1 -0
- package/dist/builder/dms-answer.js +13 -0
- package/dist/builder/dms-answer.js.map +1 -0
- package/dist/builder/frontend-module.d.ts +4 -0
- package/dist/builder/frontend-module.js +15 -0
- package/dist/builder/frontend-module.js.map +1 -0
- package/dist/builder/index.d.ts +3 -0
- package/dist/builder/index.js +44 -0
- package/dist/builder/index.js.map +1 -0
- package/dist/builder/refusal.d.ts +2 -0
- package/dist/builder/refusal.js +10 -0
- package/dist/builder/refusal.js.map +1 -0
- package/dist/builder/routes/database.d.ts +39 -0
- package/dist/builder/routes/database.js +251 -0
- package/dist/builder/routes/database.js.map +1 -0
- package/dist/builder/routes/index.d.ts +1 -0
- package/dist/builder/routes/index.js +18 -0
- package/dist/builder/routes/index.js.map +1 -0
- package/dist/channels/bridge.d.ts +21 -0
- package/dist/channels/bridge.js +101 -0
- package/dist/channels/bridge.js.map +1 -0
- package/dist/channels/channel-service.d.ts +6 -0
- package/dist/channels/channel-service.js +50 -0
- package/dist/channels/channel-service.js.map +1 -0
- package/dist/channels/message-budget.d.ts +3 -0
- package/dist/channels/message-budget.js +29 -0
- package/dist/channels/message-budget.js.map +1 -0
- package/dist/channels/registry.d.ts +7 -0
- package/dist/channels/registry.js +47 -0
- package/dist/channels/registry.js.map +1 -0
- package/dist/channels/sse-stream.d.ts +20 -0
- package/dist/channels/sse-stream.js +59 -0
- package/dist/channels/sse-stream.js.map +1 -0
- package/dist/config.d.ts +15 -0
- package/dist/config.js +36 -0
- package/dist/config.js.map +1 -0
- package/dist/constants/channels.d.ts +29 -0
- package/dist/constants/channels.js +34 -0
- package/dist/constants/channels.js.map +1 -0
- package/dist/constants/frontend-module.d.ts +5 -0
- package/dist/constants/frontend-module.js +12 -0
- package/dist/constants/frontend-module.js.map +1 -0
- package/dist/constants/http.d.ts +10 -0
- package/dist/constants/http.js +15 -0
- package/dist/constants/http.js.map +1 -0
- package/dist/constants/i18n.d.ts +10 -0
- package/dist/constants/i18n.js +14 -0
- package/dist/constants/i18n.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/pages.d.ts +31 -0
- package/dist/constants/pages.js +38 -0
- package/dist/constants/pages.js.map +1 -0
- package/dist/constants/project-mcp.d.ts +12 -0
- package/dist/constants/project-mcp.js +16 -0
- package/dist/constants/project-mcp.js.map +1 -0
- package/dist/constants/sidecar.d.ts +33 -0
- package/dist/constants/sidecar.js +39 -0
- package/dist/constants/sidecar.js.map +1 -0
- package/dist/frontend-module.d.ts +7 -0
- package/dist/frontend-module.js +20 -0
- package/dist/frontend-module.js.map +1 -0
- package/dist/index.d.ts +8 -0
- package/dist/index.js +57 -0
- package/dist/index.js.map +1 -0
- package/dist/lifecycle/build-id.d.ts +1 -0
- package/dist/lifecycle/build-id.js +32 -0
- package/dist/lifecycle/build-id.js.map +1 -0
- package/dist/lifecycle/builder-settings-move.d.ts +1 -0
- package/dist/lifecycle/builder-settings-move.js +182 -0
- package/dist/lifecycle/builder-settings-move.js.map +1 -0
- package/dist/lifecycle/builder-settings-plan.d.ts +59 -0
- package/dist/lifecycle/builder-settings-plan.js +176 -0
- package/dist/lifecycle/builder-settings-plan.js.map +1 -0
- package/dist/lifecycle/builder-settings-text.d.ts +19 -0
- package/dist/lifecycle/builder-settings-text.js +82 -0
- package/dist/lifecycle/builder-settings-text.js.map +1 -0
- package/dist/lifecycle/entry-verdict.d.ts +15 -0
- package/dist/lifecycle/entry-verdict.js +30 -0
- package/dist/lifecycle/entry-verdict.js.map +1 -0
- package/dist/lifecycle/environment-bindings.d.ts +8 -0
- package/dist/lifecycle/environment-bindings.js +154 -0
- package/dist/lifecycle/environment-bindings.js.map +1 -0
- package/dist/lifecycle/legacy-entries.d.ts +8 -0
- package/dist/lifecycle/legacy-entries.js +126 -0
- package/dist/lifecycle/legacy-entries.js.map +1 -0
- package/dist/lifecycle/module-roots.d.ts +1 -0
- package/dist/lifecycle/module-roots.js +50 -0
- package/dist/lifecycle/module-roots.js.map +1 -0
- package/dist/lifecycle/project-mcp-json.d.ts +1 -0
- package/dist/lifecycle/project-mcp-json.js +177 -0
- package/dist/lifecycle/project-mcp-json.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/sidecar-owner.d.ts +14 -0
- package/dist/lifecycle/sidecar-owner.js +102 -0
- package/dist/lifecycle/sidecar-owner.js.map +1 -0
- package/dist/lifecycle/sidecar-socket.d.ts +2 -0
- package/dist/lifecycle/sidecar-socket.js +37 -0
- package/dist/lifecycle/sidecar-socket.js.map +1 -0
- package/dist/lifecycle/sidecar-unavailable-error.d.ts +3 -0
- package/dist/lifecycle/sidecar-unavailable-error.js +10 -0
- package/dist/lifecycle/sidecar-unavailable-error.js.map +1 -0
- package/dist/lifecycle/skill-sources.d.ts +5 -0
- package/dist/lifecycle/skill-sources.js +87 -0
- package/dist/lifecycle/skill-sources.js.map +1 -0
- package/dist/lifecycle/spawn-sidecar.d.ts +18 -0
- package/dist/lifecycle/spawn-sidecar.js +213 -0
- package/dist/lifecycle/spawn-sidecar.js.map +1 -0
- package/dist/lifecycle/terminate-process.d.ts +2 -0
- package/dist/lifecycle/terminate-process.js +38 -0
- package/dist/lifecycle/terminate-process.js.map +1 -0
- package/dist/logging/log-buffer.d.ts +3 -0
- package/dist/logging/log-buffer.js +87 -0
- package/dist/logging/log-buffer.js.map +1 -0
- package/dist/pages/activity/columns.d.ts +66 -0
- package/dist/pages/activity/columns.js +103 -0
- package/dist/pages/activity/columns.js.map +1 -0
- package/dist/pages/activity/page.d.ts +10 -0
- package/dist/pages/activity/page.js +110 -0
- package/dist/pages/activity/page.js.map +1 -0
- package/dist/pages/all.d.ts +3 -0
- package/dist/pages/all.js +20 -0
- package/dist/pages/all.js.map +1 -0
- package/dist/pages/changes/page.d.ts +9 -0
- package/dist/pages/changes/page.js +22 -0
- package/dist/pages/changes/page.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/meta.d.ts +11 -0
- package/dist/pages/meta.js +33 -0
- package/dist/pages/meta.js.map +1 -0
- package/dist/pages/module.d.ts +1 -0
- package/dist/pages/module.js +15 -0
- package/dist/pages/module.js.map +1 -0
- package/dist/pages/settings/availability.d.ts +2 -0
- package/dist/pages/settings/availability.js +103 -0
- package/dist/pages/settings/availability.js.map +1 -0
- package/dist/pages/settings/options.d.ts +9 -0
- package/dist/pages/settings/options.js +74 -0
- package/dist/pages/settings/options.js.map +1 -0
- package/dist/pages/settings/page.d.ts +12 -0
- package/dist/pages/settings/page.js +57 -0
- package/dist/pages/settings/page.js.map +1 -0
- package/dist/pages/settings/sections.d.ts +2 -0
- package/dist/pages/settings/sections.js +157 -0
- package/dist/pages/settings/sections.js.map +1 -0
- package/dist/pages-registry.d.ts +2 -0
- package/dist/pages-registry.js +36 -0
- package/dist/pages-registry.js.map +1 -0
- package/dist/routes/activity-csv.d.ts +2 -0
- package/dist/routes/activity-csv.js +42 -0
- package/dist/routes/activity-csv.js.map +1 -0
- package/dist/routes/activity.d.ts +9 -0
- package/dist/routes/activity.js +103 -0
- package/dist/routes/activity.js.map +1 -0
- package/dist/routes/actor.d.ts +2 -0
- package/dist/routes/actor.js +8 -0
- package/dist/routes/actor.js.map +1 -0
- package/dist/routes/banner.d.ts +4 -0
- package/dist/routes/banner.js +12 -0
- package/dist/routes/banner.js.map +1 -0
- package/dist/routes/changes.d.ts +19 -0
- package/dist/routes/changes.js +133 -0
- package/dist/routes/changes.js.map +1 -0
- package/dist/routes/channels.d.ts +8 -0
- package/dist/routes/channels.js +52 -0
- package/dist/routes/channels.js.map +1 -0
- package/dist/routes/codex-account.d.ts +13 -0
- package/dist/routes/codex-account.js +168 -0
- package/dist/routes/codex-account.js.map +1 -0
- package/dist/routes/content-json.d.ts +6 -0
- package/dist/routes/content-json.js +12 -0
- package/dist/routes/content-json.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 +12 -0
- package/dist/routes/index.js +29 -0
- package/dist/routes/index.js.map +1 -0
- package/dist/routes/list-query.d.ts +9 -0
- package/dist/routes/list-query.js +39 -0
- package/dist/routes/list-query.js.map +1 -0
- package/dist/routes/logs.d.ts +8 -0
- package/dist/routes/logs.js +52 -0
- package/dist/routes/logs.js.map +1 -0
- package/dist/routes/metric-shapes.d.ts +5 -0
- package/dist/routes/metric-shapes.js +47 -0
- package/dist/routes/metric-shapes.js.map +1 -0
- package/dist/routes/metrics.d.ts +10 -0
- package/dist/routes/metrics.js +52 -0
- package/dist/routes/metrics.js.map +1 -0
- package/dist/routes/onboarding.d.ts +8 -0
- package/dist/routes/onboarding.js +110 -0
- package/dist/routes/onboarding.js.map +1 -0
- package/dist/routes/pages-registry.d.ts +7 -0
- package/dist/routes/pages-registry.js +83 -0
- package/dist/routes/pages-registry.js.map +1 -0
- package/dist/routes/query-text.d.ts +2 -0
- package/dist/routes/query-text.js +9 -0
- package/dist/routes/query-text.js.map +1 -0
- package/dist/routes/settings.d.ts +8 -0
- package/dist/routes/settings.js +70 -0
- package/dist/routes/settings.js.map +1 -0
- package/dist/routes/sidecar-answers.d.ts +9 -0
- package/dist/routes/sidecar-answers.js +71 -0
- package/dist/routes/sidecar-answers.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 +37 -0
- package/dist/routes/sidecar-info.js.map +1 -0
- package/dist/routes/sidecar-results.d.ts +7 -0
- package/dist/routes/sidecar-results.js +50 -0
- package/dist/routes/sidecar-results.js.map +1 -0
- package/dist/routes/status-shapes.d.ts +4 -0
- package/dist/routes/status-shapes.js +85 -0
- package/dist/routes/status-shapes.js.map +1 -0
- package/dist/routes/status.d.ts +8 -0
- package/dist/routes/status.js +101 -0
- package/dist/routes/status.js.map +1 -0
- package/dist/routes/undo-confirm.d.ts +3 -0
- package/dist/routes/undo-confirm.js +51 -0
- package/dist/routes/undo-confirm.js.map +1 -0
- package/dist/sidecar/answer-schemas.d.ts +3 -0
- package/dist/sidecar/answer-schemas.js +17 -0
- package/dist/sidecar/answer-schemas.js.map +1 -0
- package/dist/sidecar/http-client.d.ts +18 -0
- package/dist/sidecar/http-client.js +107 -0
- package/dist/sidecar/http-client.js.map +1 -0
- package/dist/sidecar/index.d.ts +5 -0
- package/dist/sidecar/index.js +22 -0
- package/dist/sidecar/index.js.map +1 -0
- package/dist/sidecar/json-body.d.ts +4 -0
- package/dist/sidecar/json-body.js +33 -0
- package/dist/sidecar/json-body.js.map +1 -0
- package/dist/sidecar/query.d.ts +3 -0
- package/dist/sidecar/query.js +25 -0
- package/dist/sidecar/query.js.map +1 -0
- package/dist/sidecar/settings-values.d.ts +10 -0
- package/dist/sidecar/settings-values.js +76 -0
- package/dist/sidecar/settings-values.js.map +1 -0
- package/dist/types/activity.d.ts +31 -0
- package/dist/types/activity.js +3 -0
- package/dist/types/activity.js.map +1 -0
- package/dist/types/changes.d.ts +45 -0
- package/dist/types/changes.js +3 -0
- package/dist/types/changes.js.map +1 -0
- package/dist/types/index.d.ts +6 -0
- package/dist/types/index.js +23 -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/metrics.d.ts +39 -0
- package/dist/types/metrics.js +3 -0
- package/dist/types/metrics.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/dist/types/status.d.ts +16 -0
- package/dist/types/status.js +3 -0
- package/dist/types/status.js.map +1 -0
- package/dist/vocabulary/enumerations.d.ts +5 -0
- package/dist/vocabulary/enumerations.js +37 -0
- package/dist/vocabulary/enumerations.js.map +1 -0
- package/dist/vocabulary/index.d.ts +5 -0
- package/dist/vocabulary/index.js +22 -0
- package/dist/vocabulary/index.js.map +1 -0
- package/dist/vocabulary/keys.d.ts +1 -0
- package/dist/vocabulary/keys.js +8 -0
- package/dist/vocabulary/keys.js.map +1 -0
- package/dist/vocabulary/options.d.ts +7 -0
- package/dist/vocabulary/options.js +33 -0
- package/dist/vocabulary/options.js.map +1 -0
- package/dist/vocabulary/tools.d.ts +7 -0
- package/dist/vocabulary/tools.js +104 -0
- package/dist/vocabulary/tools.js.map +1 -0
- package/dist/vocabulary/types.d.ts +20 -0
- package/dist/vocabulary/types.js +3 -0
- package/dist/vocabulary/types.js.map +1 -0
- package/frontend-vue/.editorconfig +12 -0
- package/frontend-vue/.prettierignore +4 -0
- package/frontend-vue/.prettierrc +10 -0
- package/frontend-vue/app/chat/components/AnswerRecord.vue +95 -0
- package/frontend-vue/app/chat/components/ApprovalDock.vue +371 -0
- package/frontend-vue/app/chat/components/BlockOutline.vue +110 -0
- package/frontend-vue/app/chat/components/BlockPreviewCard.vue +172 -0
- package/frontend-vue/app/chat/components/BlockPreviewModal.vue +340 -0
- package/frontend-vue/app/chat/components/BlockPreviewThumb.vue +152 -0
- package/frontend-vue/app/chat/components/BuildDialog.vue +220 -0
- package/frontend-vue/app/chat/components/ChangeSetCard.vue +307 -0
- package/frontend-vue/app/chat/components/ChatEmpty.vue +142 -0
- package/frontend-vue/app/chat/components/ChatView.vue +753 -0
- package/frontend-vue/app/chat/components/Composer.vue +602 -0
- package/frontend-vue/app/chat/components/ConnectionBanner.vue +81 -0
- package/frontend-vue/app/chat/components/ConversationDrawer.vue +496 -0
- package/frontend-vue/app/chat/components/DiffView.vue +131 -0
- package/frontend-vue/app/chat/components/FoldBar.vue +158 -0
- package/frontend-vue/app/chat/components/MarkdownBlock.vue +19 -0
- package/frontend-vue/app/chat/components/MarkdownContent.vue +197 -0
- package/frontend-vue/app/chat/components/MessageList.vue +589 -0
- package/frontend-vue/app/chat/components/NoticeCard.vue +218 -0
- package/frontend-vue/app/chat/components/PanelHeader.vue +240 -0
- package/frontend-vue/app/chat/components/PermissionCard.vue +480 -0
- package/frontend-vue/app/chat/components/PlanCard.vue +115 -0
- package/frontend-vue/app/chat/components/ProviderNotice.vue +88 -0
- package/frontend-vue/app/chat/components/QuestionDock.vue +407 -0
- package/frontend-vue/app/chat/components/QueueDock.vue +310 -0
- package/frontend-vue/app/chat/components/RulesList.vue +97 -0
- package/frontend-vue/app/chat/components/StepsDock.vue +181 -0
- package/frontend-vue/app/chat/components/ToolCluster.vue +293 -0
- package/frontend-vue/app/chat/components/ToolRow.vue +253 -0
- package/frontend-vue/app/chat/components/TurnErrorCard.vue +135 -0
- package/frontend-vue/app/chat/components/UndoConflictModal.vue +98 -0
- package/frontend-vue/app/chat/composables/conversation-events.ts +427 -0
- package/frontend-vue/app/chat/composables/useBlockPreviewComponent.ts +15 -0
- package/frontend-vue/app/chat/composables/useChangeSetActions.ts +135 -0
- package/frontend-vue/app/chat/composables/useChatChannel.ts +124 -0
- package/frontend-vue/app/chat/composables/useChatI18n.ts +35 -0
- package/frontend-vue/app/chat/composables/useComposerAttachments.ts +111 -0
- package/frontend-vue/app/chat/composables/useConversation.ts +343 -0
- package/frontend-vue/app/chat/composables/useConversationId.ts +26 -0
- package/frontend-vue/app/chat/composables/useConversationList.ts +112 -0
- package/frontend-vue/app/chat/composables/useConversationMode.ts +70 -0
- package/frontend-vue/app/chat/composables/useFollowScroll.ts +77 -0
- package/frontend-vue/app/chat/composables/useMockupIntents.ts +92 -0
- package/frontend-vue/app/chat/composables/usePaletteTurn.ts +124 -0
- package/frontend-vue/app/chat/composables/usePermissionQueue.ts +235 -0
- package/frontend-vue/app/chat/composables/useQuestionQueue.ts +132 -0
- package/frontend-vue/app/chat/composables/useQueueActions.ts +55 -0
- package/frontend-vue/app/chat/composables/useRunClock.ts +28 -0
- package/frontend-vue/app/chat/composables/useSettings.ts +50 -0
- package/frontend-vue/app/chat/constants/attachments.ts +17 -0
- package/frontend-vue/app/chat/constants/block-preview.ts +38 -0
- package/frontend-vue/app/chat/constants/conversation.ts +62 -0
- package/frontend-vue/app/chat/constants/modes.ts +15 -0
- package/frontend-vue/app/chat/constants/protocol.ts +71 -0
- package/frontend-vue/app/chat/constants/run-status.ts +44 -0
- package/frontend-vue/app/chat/constants/settings.ts +18 -0
- package/frontend-vue/app/chat/types/conversation.ts +168 -0
- package/frontend-vue/app/chat/types/permission.ts +37 -0
- package/frontend-vue/app/chat/types/protocol.ts +319 -0
- package/frontend-vue/app/chat/types/question.ts +26 -0
- package/frontend-vue/app/chat/types/settings.ts +36 -0
- package/frontend-vue/app/chat/utils/approval-keyboard.ts +49 -0
- package/frontend-vue/app/chat/utils/arrays.ts +10 -0
- package/frontend-vue/app/chat/utils/attachments.ts +62 -0
- package/frontend-vue/app/chat/utils/block-outline.ts +46 -0
- package/frontend-vue/app/chat/utils/block-preview.ts +164 -0
- package/frontend-vue/app/chat/utils/block-target.ts +105 -0
- package/frontend-vue/app/chat/utils/build-view.ts +173 -0
- package/frontend-vue/app/chat/utils/conversation-groups.ts +96 -0
- package/frontend-vue/app/chat/utils/conversation-messages.ts +274 -0
- package/frontend-vue/app/chat/utils/diff.ts +78 -0
- package/frontend-vue/app/chat/utils/format.ts +57 -0
- package/frontend-vue/app/chat/utils/ids.ts +34 -0
- package/frontend-vue/app/chat/utils/markdown.ts +216 -0
- package/frontend-vue/app/chat/utils/page-verify-report.ts +79 -0
- package/frontend-vue/app/chat/utils/permission-view.ts +240 -0
- package/frontend-vue/app/chat/utils/platform.ts +34 -0
- package/frontend-vue/app/chat/utils/queue.ts +18 -0
- package/frontend-vue/app/chat/utils/render-items.ts +142 -0
- package/frontend-vue/app/chat/utils/run-status.ts +86 -0
- package/frontend-vue/app/chat/utils/status-label.ts +50 -0
- package/frontend-vue/app/chat/utils/suggestions.ts +101 -0
- package/frontend-vue/app/chat/utils/todos.ts +64 -0
- package/frontend-vue/app/chat/utils/tool-lexicon.ts +620 -0
- package/frontend-vue/app/chat/utils/tool-state.ts +60 -0
- package/frontend-vue/app/components/ActivityDetail.vue +230 -0
- package/frontend-vue/app/components/ChangesView.vue +256 -0
- package/frontend-vue/app/components/ChatPanel.vue +223 -0
- package/frontend-vue/app/components/LauncherIcon.vue +197 -0
- package/frontend-vue/app/components/Onboarding.vue +97 -0
- package/frontend-vue/app/components/OnboardingWidget.vue +55 -0
- package/frontend-vue/app/components/PaletteAnswer.vue +185 -0
- package/frontend-vue/app/onboarding/analysis.ts +68 -0
- package/frontend-vue/app/onboarding/api.ts +134 -0
- package/frontend-vue/app/onboarding/connect-database.ts +401 -0
- package/frontend-vue/app/onboarding/content.ts +98 -0
- package/frontend-vue/app/onboarding/contract.ts +43 -0
- package/frontend-vue/app/onboarding/controller.ts +320 -0
- package/frontend-vue/app/onboarding/database-checks.ts +137 -0
- package/frontend-vue/app/onboarding/deep-link.ts +36 -0
- package/frontend-vue/app/onboarding/flow.ts +203 -0
- package/frontend-vue/app/onboarding/install.ts +201 -0
- package/frontend-vue/app/onboarding/mockups.ts +82 -0
- package/frontend-vue/app/onboarding/preferences.ts +52 -0
- package/frontend-vue/app/onboarding/prompts.ts +25 -0
- package/frontend-vue/app/onboarding/public.ts +32 -0
- package/frontend-vue/app/onboarding/runtime.ts +65 -0
- package/frontend-vue/app/plugins/ai.client.ts +633 -0
- package/frontend-vue/app/plugins/side-panel.ts +13 -0
- package/frontend-vue/app/runtime/assistant-actions.ts +43 -0
- package/frontend-vue/app/runtime/assistant-activity.ts +182 -0
- package/frontend-vue/app/runtime/assistant-commands.ts +234 -0
- package/frontend-vue/app/runtime/assistant-notifications.ts +181 -0
- package/frontend-vue/app/runtime/assistant-prompt.ts +71 -0
- package/frontend-vue/app/runtime/assistant-session.ts +77 -0
- package/frontend-vue/app/runtime/backoff.ts +27 -0
- package/frontend-vue/app/runtime/block-health.ts +141 -0
- package/frontend-vue/app/runtime/channel-client.ts +251 -0
- package/frontend-vue/app/runtime/chat-transport.ts +52 -0
- package/frontend-vue/app/runtime/constants.ts +98 -0
- package/frontend-vue/app/runtime/current-page.ts +68 -0
- package/frontend-vue/app/runtime/embedding.ts +10 -0
- package/frontend-vue/app/runtime/event-stream.ts +75 -0
- package/frontend-vue/app/runtime/fold-bar.ts +28 -0
- package/frontend-vue/app/runtime/frame-router.ts +30 -0
- package/frontend-vue/app/runtime/host-commands.ts +128 -0
- package/frontend-vue/app/runtime/launcher-state.ts +139 -0
- package/frontend-vue/app/runtime/listeners.ts +31 -0
- package/frontend-vue/app/runtime/mockup-fold.ts +64 -0
- package/frontend-vue/app/runtime/navigation-complete.ts +63 -0
- package/frontend-vue/app/runtime/panel-intents.ts +84 -0
- package/frontend-vue/app/runtime/session-gate.ts +28 -0
- package/frontend-vue/app/runtime/shortcuts.ts +30 -0
- package/frontend-vue/app/runtime/sidecar-status.ts +178 -0
- package/frontend-vue/app/runtime/stream-holds.ts +24 -0
- package/frontend-vue/app/runtime/typed-message.ts +11 -0
- package/frontend-vue/app/views/ChangeSetPanel.vue +217 -0
- package/frontend-vue/app/views/DecisionLabel.vue +30 -0
- package/frontend-vue/app/views/DiffView.vue +215 -0
- package/frontend-vue/app/views/ResultPill.vue +32 -0
- package/frontend-vue/app/views/RowStepper.vue +48 -0
- package/frontend-vue/app/views/UnavailableState.vue +66 -0
- package/frontend-vue/app/views/composables/useAiData.ts +108 -0
- package/frontend-vue/app/views/composables/useAssistant.ts +39 -0
- package/frontend-vue/app/views/composables/useChangeSetActions.ts +93 -0
- package/frontend-vue/app/views/composables/useViewFormat.ts +55 -0
- package/frontend-vue/app/views/constants.ts +46 -0
- package/frontend-vue/app/views/onboarding/OnboardingAi.vue +170 -0
- package/frontend-vue/app/views/onboarding/OnboardingAnalysis.vue +221 -0
- package/frontend-vue/app/views/onboarding/OnboardingClaude.vue +243 -0
- package/frontend-vue/app/views/onboarding/OnboardingCodex.vue +150 -0
- package/frontend-vue/app/views/onboarding/OnboardingConnected.vue +66 -0
- package/frontend-vue/app/views/onboarding/OnboardingContinue.vue +202 -0
- package/frontend-vue/app/views/onboarding/OnboardingDatabase.vue +344 -0
- package/frontend-vue/app/views/onboarding/OnboardingDontShow.vue +17 -0
- package/frontend-vue/app/views/onboarding/OnboardingFrame.vue +40 -0
- package/frontend-vue/app/views/onboarding/OnboardingPaths.vue +83 -0
- package/frontend-vue/app/views/onboarding/OnboardingReady.vue +85 -0
- package/frontend-vue/app/views/onboarding/OnboardingScratch.vue +96 -0
- package/frontend-vue/app/views/onboarding/OnboardingWelcome.vue +75 -0
- package/frontend-vue/app/views/onboarding/ProviderMark.vue +22 -0
- package/frontend-vue/app/views/onboarding/login-text.ts +74 -0
- package/frontend-vue/app/views/onboarding/when.ts +27 -0
- package/frontend-vue/app/views/types.ts +164 -0
- package/frontend-vue/app/views/utils/activity.ts +78 -0
- package/frontend-vue/app/views/utils/change-sets.ts +37 -0
- package/frontend-vue/app/views/utils/diff.ts +98 -0
- package/frontend-vue/app/views/utils/moment.ts +92 -0
- package/frontend-vue/app/views/utils/tools.ts +73 -0
- package/frontend-vue/build/backend-boundary.ts +127 -0
- package/frontend-vue/builder/app/runtime/api.ts +106 -0
- package/frontend-vue/builder/app/runtime/constants.ts +8 -0
- package/frontend-vue/builder/app/runtime/database-build.ts +281 -0
- package/frontend-vue/builder/app/runtime/database-connect.ts +342 -0
- package/frontend-vue/builder/app/runtime/database-display.ts +24 -0
- package/frontend-vue/builder/app/runtime/database-engines.ts +41 -0
- package/frontend-vue/builder/app/runtime/database-server-text.ts +27 -0
- package/frontend-vue/builder/app/runtime/database-types.ts +303 -0
- package/frontend-vue/builder/app/runtime/database.ts +207 -0
- package/frontend-vue/builder/app/runtime/enabled.ts +23 -0
- package/frontend-vue/builder/app/runtime/i18n.ts +29 -0
- package/frontend-vue/builder/app/runtime/types.ts +39 -0
- package/frontend-vue/builder/tests/database-build.test.ts +232 -0
- package/frontend-vue/builder/tests/database-connect.test.ts +348 -0
- package/frontend-vue/builder/tests/database-display.test.ts +112 -0
- package/frontend-vue/builder/tests/database.test.ts +138 -0
- package/frontend-vue/builder/tests/enabled.test.ts +17 -0
- package/frontend-vue/builder/tests/stubs/frontend-module.ts +63 -0
- package/frontend-vue/builder/vitest.config.ts +21 -0
- package/frontend-vue/dms.frontend.build.ts +6 -0
- package/frontend-vue/dms.frontend.ts +44 -0
- package/frontend-vue/eslint.config.mjs +11 -0
- package/frontend-vue/i18n/locales/builder-en-GB.json +61 -0
- package/frontend-vue/i18n/locales/builder-fr-FR.json +61 -0
- package/frontend-vue/i18n/locales/dms-ai-pages-en-GB.json +404 -0
- package/frontend-vue/i18n/locales/dms-ai-pages-fr-FR.json +404 -0
- package/frontend-vue/i18n/locales/dms-ai-panel-en-GB.json +477 -0
- package/frontend-vue/i18n/locales/dms-ai-panel-fr-FR.json +477 -0
- package/frontend-vue/i18n/locales/dms-ai-views-en-GB.json +303 -0
- package/frontend-vue/i18n/locales/dms-ai-views-fr-FR.json +303 -0
- package/frontend-vue/package.json +54 -0
- package/frontend-vue/pnpm-lock.yaml +5811 -0
- package/frontend-vue/tests/assistant-actions.test.ts +109 -0
- package/frontend-vue/tests/assistant-activity.test.ts +281 -0
- package/frontend-vue/tests/backend-boundary.test.ts +130 -0
- package/frontend-vue/tests/backoff.test.ts +40 -0
- package/frontend-vue/tests/block-health.test.ts +142 -0
- package/frontend-vue/tests/channel-client.test.ts +246 -0
- package/frontend-vue/tests/chat/block-preview.test.ts +367 -0
- package/frontend-vue/tests/chat/block-target.test.ts +133 -0
- package/frontend-vue/tests/chat/build-view.test.ts +167 -0
- package/frontend-vue/tests/chat/chat-scroll.test.ts +251 -0
- package/frontend-vue/tests/chat/conversation-events.test.ts +622 -0
- package/frontend-vue/tests/chat/diff-and-keys.test.ts +178 -0
- package/frontend-vue/tests/chat/held-card.test.ts +133 -0
- package/frontend-vue/tests/chat/markdown-content.test.ts +86 -0
- package/frontend-vue/tests/chat/markdown.test.ts +352 -0
- package/frontend-vue/tests/chat/provider-notice.test.ts +33 -0
- package/frontend-vue/tests/chat/tool-lexicon.test.ts +206 -0
- package/frontend-vue/tests/chat/useChatChannel.test.ts +124 -0
- package/frontend-vue/tests/chat/useConversation.test.ts +288 -0
- package/frontend-vue/tests/chat-panel.test.ts +300 -0
- package/frontend-vue/tests/chat-transport.test.ts +94 -0
- package/frontend-vue/tests/embedding.test.ts +10 -0
- package/frontend-vue/tests/host-commands.test.ts +182 -0
- package/frontend-vue/tests/launcher-icon.test.ts +62 -0
- package/frontend-vue/tests/launcher-state.test.ts +215 -0
- package/frontend-vue/tests/mockup-fold.test.ts +95 -0
- package/frontend-vue/tests/navigation.test.ts +142 -0
- package/frontend-vue/tests/onboarding-api.test.ts +29 -0
- package/frontend-vue/tests/onboarding-claude.test.ts +144 -0
- package/frontend-vue/tests/onboarding-controller.test.ts +249 -0
- package/frontend-vue/tests/onboarding-database-engines.test.ts +142 -0
- package/frontend-vue/tests/onboarding-database.test.ts +645 -0
- package/frontend-vue/tests/onboarding-deep-link.test.ts +51 -0
- package/frontend-vue/tests/onboarding-flow.test.ts +204 -0
- package/frontend-vue/tests/onboarding-install.test.ts +62 -0
- package/frontend-vue/tests/onboarding-mockups.test.ts +86 -0
- package/frontend-vue/tests/onboarding-scratch.test.ts +70 -0
- package/frontend-vue/tests/onboarding-widget.test.ts +97 -0
- package/frontend-vue/tests/palette-assistant.test.ts +241 -0
- package/frontend-vue/tests/panel-approvals.test.ts +226 -0
- package/frontend-vue/tests/panel-mockup-prompt.test.ts +238 -0
- package/frontend-vue/tests/panel-modes.test.ts +146 -0
- package/frontend-vue/tests/panel-questions.test.ts +151 -0
- package/frontend-vue/tests/panel-states.test.ts +252 -0
- package/frontend-vue/tests/panel-tools.test.ts +219 -0
- package/frontend-vue/tests/session-gate.test.ts +66 -0
- package/frontend-vue/tests/sidecar-guest.test.ts +81 -0
- package/frontend-vue/tests/sidecar-status.test.ts +117 -0
- package/frontend-vue/tests/support/api-error-presenter.ts +28 -0
- package/frontend-vue/tests/support/dms-frontend-module.ts +9 -0
- package/frontend-vue/tests/support/dms-state.ts +12 -0
- package/frontend-vue/tests/support/fake-layout.ts +119 -0
- package/frontend-vue/tests/support/i18n.ts +49 -0
- package/frontend-vue/tests/support/onboarding-host.ts +103 -0
- package/frontend-vue/tests/support/onboarding.ts +148 -0
- package/frontend-vue/tests/support/panel-fixtures.ts +155 -0
- package/frontend-vue/tests/support/panel-harness.ts +211 -0
- package/frontend-vue/tests/support/setup-layout.ts +3 -0
- package/frontend-vue/tests/support/stand-ins/DmsBlockPreview.ts +18 -0
- package/frontend-vue/tests/support/stand-ins/DmsEmptyState.ts +17 -0
- package/frontend-vue/tests/support/stand-ins/DmsSegmentedControl.ts +35 -0
- package/frontend-vue/tests/support/stand-ins/DmsStatusPill.ts +7 -0
- package/frontend-vue/tests/support/stand-ins/OnboardingModal.ts +13 -0
- package/frontend-vue/tests/support/stand-ins/UBadge.ts +7 -0
- package/frontend-vue/tests/support/stand-ins/UButton.ts +27 -0
- package/frontend-vue/tests/support/stand-ins/UCheckbox.ts +25 -0
- package/frontend-vue/tests/support/stand-ins/UDropdownMenu.ts +34 -0
- package/frontend-vue/tests/support/stand-ins/UFormField.ts +9 -0
- package/frontend-vue/tests/support/stand-ins/UInput.ts +16 -0
- package/frontend-vue/tests/support/stand-ins/UKbd.ts +7 -0
- package/frontend-vue/tests/support/stand-ins/UModal.ts +20 -0
- package/frontend-vue/tests/support/stand-ins/UPopover.ts +9 -0
- package/frontend-vue/tests/support/stand-ins/UTabs.ts +31 -0
- package/frontend-vue/tests/support/stand-ins/UTextarea.ts +19 -0
- package/frontend-vue/tests/support/stubs.ts +28 -0
- package/frontend-vue/tests/views/api-data-reads.test.ts +447 -0
- package/frontend-vue/tests/views/api-error-presentation.test.ts +89 -0
- package/frontend-vue/tests/views/diff-view.test.ts +165 -0
- package/frontend-vue/tests/views/use-assistant.test.ts +53 -0
- package/frontend-vue/tests/views/view-format.test.ts +59 -0
- package/frontend-vue/tsconfig.chat.json +16 -0
- package/frontend-vue/vitest.config.ts +33 -0
- package/package.json +140 -3
- package/sidecar/dist/agent/always-ask-files.d.ts +2 -0
- package/sidecar/dist/agent/always-ask-files.js +34 -0
- package/sidecar/dist/agent/always-ask-files.js.map +1 -0
- package/sidecar/dist/agent/attachment-files.d.ts +4 -0
- package/sidecar/dist/agent/attachment-files.js +29 -0
- package/sidecar/dist/agent/attachment-files.js.map +1 -0
- package/sidecar/dist/agent/call-ledger.d.ts +7 -0
- package/sidecar/dist/agent/call-ledger.js +41 -0
- package/sidecar/dist/agent/call-ledger.js.map +1 -0
- package/sidecar/dist/agent/command-analysis.d.ts +9 -0
- package/sidecar/dist/agent/command-analysis.js +103 -0
- package/sidecar/dist/agent/command-analysis.js.map +1 -0
- package/sidecar/dist/agent/conversation-modes.d.ts +23 -0
- package/sidecar/dist/agent/conversation-modes.js +69 -0
- package/sidecar/dist/agent/conversation-modes.js.map +1 -0
- package/sidecar/dist/agent/disposals.d.ts +5 -0
- package/sidecar/dist/agent/disposals.js +17 -0
- package/sidecar/dist/agent/disposals.js.map +1 -0
- package/sidecar/dist/agent/edit-targets.d.ts +9 -0
- package/sidecar/dist/agent/edit-targets.js +45 -0
- package/sidecar/dist/agent/edit-targets.js.map +1 -0
- package/sidecar/dist/agent/edit-tracker.d.ts +9 -0
- package/sidecar/dist/agent/edit-tracker.js +27 -0
- package/sidecar/dist/agent/edit-tracker.js.map +1 -0
- package/sidecar/dist/agent/effective-mode.d.ts +6 -0
- package/sidecar/dist/agent/effective-mode.js +4 -0
- package/sidecar/dist/agent/effective-mode.js.map +1 -0
- package/sidecar/dist/agent/held-calls.d.ts +31 -0
- package/sidecar/dist/agent/held-calls.js +125 -0
- package/sidecar/dist/agent/held-calls.js.map +1 -0
- package/sidecar/dist/agent/host-context.d.ts +5 -0
- package/sidecar/dist/agent/host-context.js +26 -0
- package/sidecar/dist/agent/host-context.js.map +1 -0
- package/sidecar/dist/agent/line-diff.d.ts +8 -0
- package/sidecar/dist/agent/line-diff.js +206 -0
- package/sidecar/dist/agent/line-diff.js.map +1 -0
- package/sidecar/dist/agent/permission-bus.d.ts +70 -0
- package/sidecar/dist/agent/permission-bus.js +178 -0
- package/sidecar/dist/agent/permission-bus.js.map +1 -0
- package/sidecar/dist/agent/permission-preview.d.ts +28 -0
- package/sidecar/dist/agent/permission-preview.js +234 -0
- package/sidecar/dist/agent/permission-preview.js.map +1 -0
- package/sidecar/dist/agent/permission-rules.d.ts +17 -0
- package/sidecar/dist/agent/permission-rules.js +93 -0
- package/sidecar/dist/agent/permission-rules.js.map +1 -0
- package/sidecar/dist/agent/project-secrets.d.ts +7 -0
- package/sidecar/dist/agent/project-secrets.js +61 -0
- package/sidecar/dist/agent/project-secrets.js.map +1 -0
- package/sidecar/dist/agent/provider.d.ts +57 -0
- package/sidecar/dist/agent/provider.js +2 -0
- package/sidecar/dist/agent/provider.js.map +1 -0
- package/sidecar/dist/agent/question-bus.d.ts +34 -0
- package/sidecar/dist/agent/question-bus.js +109 -0
- package/sidecar/dist/agent/question-bus.js.map +1 -0
- package/sidecar/dist/agent/read-access.d.ts +3 -0
- package/sidecar/dist/agent/read-access.js +30 -0
- package/sidecar/dist/agent/read-access.js.map +1 -0
- package/sidecar/dist/agent/runner-events.d.ts +38 -0
- package/sidecar/dist/agent/runner-events.js +2 -0
- package/sidecar/dist/agent/runner-events.js.map +1 -0
- package/sidecar/dist/agent/runner.d.ts +39 -0
- package/sidecar/dist/agent/runner.js +119 -0
- package/sidecar/dist/agent/runner.js.map +1 -0
- package/sidecar/dist/agent/session.d.ts +22 -0
- package/sidecar/dist/agent/session.js +203 -0
- package/sidecar/dist/agent/session.js.map +1 -0
- package/sidecar/dist/agent/switching-runner.d.ts +6 -0
- package/sidecar/dist/agent/switching-runner.js +66 -0
- package/sidecar/dist/agent/switching-runner.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-kinds.d.ts +16 -0
- package/sidecar/dist/agent/tool-kinds.js +62 -0
- package/sidecar/dist/agent/tool-kinds.js.map +1 -0
- package/sidecar/dist/agent/tool-summary.d.ts +2 -0
- package/sidecar/dist/agent/tool-summary.js +59 -0
- package/sidecar/dist/agent/tool-summary.js.map +1 -0
- package/sidecar/dist/agent/turn-end-reasons.d.ts +5 -0
- package/sidecar/dist/agent/turn-end-reasons.js +29 -0
- package/sidecar/dist/agent/turn-end-reasons.js.map +1 -0
- package/sidecar/dist/agent/typecheck.d.ts +24 -0
- package/sidecar/dist/agent/typecheck.js +99 -0
- package/sidecar/dist/agent/typecheck.js.map +1 -0
- package/sidecar/dist/audit/activity-query.d.ts +37 -0
- package/sidecar/dist/audit/activity-query.js +110 -0
- package/sidecar/dist/audit/activity-query.js.map +1 -0
- package/sidecar/dist/audit/activity-target.d.ts +4 -0
- package/sidecar/dist/audit/activity-target.js +47 -0
- package/sidecar/dist/audit/activity-target.js.map +1 -0
- package/sidecar/dist/audit/activity.d.ts +45 -0
- package/sidecar/dist/audit/activity.js +266 -0
- package/sidecar/dist/audit/activity.js.map +1 -0
- package/sidecar/dist/audit/call-audit.d.ts +11 -0
- package/sidecar/dist/audit/call-audit.js +23 -0
- package/sidecar/dist/audit/call-audit.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/checkpoints/checkpoints.d.ts +69 -0
- package/sidecar/dist/checkpoints/checkpoints.js +244 -0
- package/sidecar/dist/checkpoints/checkpoints.js.map +1 -0
- package/sidecar/dist/checkpoints/shadow-git.d.ts +23 -0
- package/sidecar/dist/checkpoints/shadow-git.js +177 -0
- package/sidecar/dist/checkpoints/shadow-git.js.map +1 -0
- package/sidecar/dist/constants/agent.d.ts +26 -0
- package/sidecar/dist/constants/agent.js +36 -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/audit.d.ts +20 -0
- package/sidecar/dist/constants/audit.js +52 -0
- package/sidecar/dist/constants/audit.js.map +1 -0
- package/sidecar/dist/constants/builder.d.ts +4 -0
- package/sidecar/dist/constants/builder.js +47 -0
- package/sidecar/dist/constants/builder.js.map +1 -0
- package/sidecar/dist/constants/chatgpt.d.ts +38 -0
- package/sidecar/dist/constants/chatgpt.js +54 -0
- package/sidecar/dist/constants/chatgpt.js.map +1 -0
- package/sidecar/dist/constants/checkpoints.d.ts +15 -0
- package/sidecar/dist/constants/checkpoints.js +26 -0
- package/sidecar/dist/constants/checkpoints.js.map +1 -0
- package/sidecar/dist/constants/claude.d.ts +44 -0
- package/sidecar/dist/constants/claude.js +68 -0
- package/sidecar/dist/constants/claude.js.map +1 -0
- package/sidecar/dist/constants/cli.d.ts +1 -0
- package/sidecar/dist/constants/cli.js +2 -0
- package/sidecar/dist/constants/cli.js.map +1 -0
- package/sidecar/dist/constants/codex.d.ts +99 -0
- package/sidecar/dist/constants/codex.js +129 -0
- package/sidecar/dist/constants/codex.js.map +1 -0
- package/sidecar/dist/constants/daemon.d.ts +8 -0
- package/sidecar/dist/constants/daemon.js +9 -0
- package/sidecar/dist/constants/daemon.js.map +1 -0
- package/sidecar/dist/constants/database.d.ts +1 -0
- package/sidecar/dist/constants/database.js +7 -0
- package/sidecar/dist/constants/database.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 +18 -0
- package/sidecar/dist/constants/http.js +19 -0
- package/sidecar/dist/constants/http.js.map +1 -0
- package/sidecar/dist/constants/logs.d.ts +8 -0
- package/sidecar/dist/constants/logs.js +13 -0
- package/sidecar/dist/constants/logs.js.map +1 -0
- package/sidecar/dist/constants/mcp.d.ts +44 -0
- package/sidecar/dist/constants/mcp.js +89 -0
- package/sidecar/dist/constants/mcp.js.map +1 -0
- package/sidecar/dist/constants/native-binary.d.ts +7 -0
- package/sidecar/dist/constants/native-binary.js +8 -0
- package/sidecar/dist/constants/native-binary.js.map +1 -0
- package/sidecar/dist/constants/onboarding.d.ts +17 -0
- package/sidecar/dist/constants/onboarding.js +23 -0
- package/sidecar/dist/constants/onboarding.js.map +1 -0
- package/sidecar/dist/constants/pages.d.ts +12 -0
- package/sidecar/dist/constants/pages.js +20 -0
- package/sidecar/dist/constants/pages.js.map +1 -0
- package/sidecar/dist/constants/paths.d.ts +7 -0
- package/sidecar/dist/constants/paths.js +11 -0
- package/sidecar/dist/constants/paths.js.map +1 -0
- package/sidecar/dist/constants/permissions.d.ts +23 -0
- package/sidecar/dist/constants/permissions.js +45 -0
- package/sidecar/dist/constants/permissions.js.map +1 -0
- package/sidecar/dist/constants/ports.d.ts +2 -0
- package/sidecar/dist/constants/ports.js +3 -0
- package/sidecar/dist/constants/ports.js.map +1 -0
- package/sidecar/dist/constants/preview.d.ts +39 -0
- package/sidecar/dist/constants/preview.js +55 -0
- package/sidecar/dist/constants/preview.js.map +1 -0
- package/sidecar/dist/constants/project-secrets.d.ts +5 -0
- package/sidecar/dist/constants/project-secrets.js +20 -0
- package/sidecar/dist/constants/project-secrets.js.map +1 -0
- package/sidecar/dist/constants/project.d.ts +8 -0
- package/sidecar/dist/constants/project.js +9 -0
- package/sidecar/dist/constants/project.js.map +1 -0
- package/sidecar/dist/constants/providers.d.ts +18 -0
- package/sidecar/dist/constants/providers.js +18 -0
- package/sidecar/dist/constants/providers.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 +7 -0
- package/sidecar/dist/constants/settings.js +20 -0
- package/sidecar/dist/constants/settings.js.map +1 -0
- package/sidecar/dist/constants/skills.d.ts +1 -0
- package/sidecar/dist/constants/skills.js +2 -0
- package/sidecar/dist/constants/skills.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 +4 -0
- package/sidecar/dist/constants/timing.js +5 -0
- package/sidecar/dist/constants/timing.js.map +1 -0
- package/sidecar/dist/constants/tool-kinds.d.ts +77 -0
- package/sidecar/dist/constants/tool-kinds.js +159 -0
- package/sidecar/dist/constants/tool-kinds.js.map +1 -0
- package/sidecar/dist/constants/tool-lexicon.d.ts +7 -0
- package/sidecar/dist/constants/tool-lexicon.js +8 -0
- package/sidecar/dist/constants/tool-lexicon.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/tool-titles.d.ts +48 -0
- package/sidecar/dist/constants/tool-titles.js +50 -0
- package/sidecar/dist/constants/tool-titles.js.map +1 -0
- package/sidecar/dist/constants/typecheck.d.ts +13 -0
- package/sidecar/dist/constants/typecheck.js +20 -0
- package/sidecar/dist/constants/typecheck.js.map +1 -0
- package/sidecar/dist/constants/ws.d.ts +4 -0
- package/sidecar/dist/constants/ws.js +5 -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 +57 -0
- package/sidecar/dist/host/project-info.js.map +1 -0
- package/sidecar/dist/index.d.ts +17 -0
- package/sidecar/dist/index.js +349 -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 +63 -0
- package/sidecar/dist/logs/logs-client.js.map +1 -0
- package/sidecar/dist/logs/types.d.ts +13 -0
- package/sidecar/dist/logs/types.js +2 -0
- package/sidecar/dist/logs/types.js.map +1 -0
- package/sidecar/dist/mcp/define-tool.d.ts +27 -0
- package/sidecar/dist/mcp/define-tool.js +5 -0
- package/sidecar/dist/mcp/define-tool.js.map +1 -0
- package/sidecar/dist/mcp/dms-server.d.ts +5 -0
- package/sidecar/dist/mcp/dms-server.js +12 -0
- package/sidecar/dist/mcp/dms-server.js.map +1 -0
- package/sidecar/dist/mcp/http-binding.d.ts +12 -0
- package/sidecar/dist/mcp/http-binding.js +127 -0
- package/sidecar/dist/mcp/http-binding.js.map +1 -0
- package/sidecar/dist/mcp/sdk-binding.d.ts +2 -0
- package/sidecar/dist/mcp/sdk-binding.js +14 -0
- package/sidecar/dist/mcp/sdk-binding.js.map +1 -0
- package/sidecar/dist/mcp/sketch-refusals.d.ts +2 -0
- package/sidecar/dist/mcp/sketch-refusals.js +6 -0
- package/sidecar/dist/mcp/sketch-refusals.js.map +1 -0
- package/sidecar/dist/mcp/tool-definitions.d.ts +3 -0
- package/sidecar/dist/mcp/tool-definitions.js +31 -0
- package/sidecar/dist/mcp/tool-definitions.js.map +1 -0
- package/sidecar/dist/mcp/tools/ask-user.d.ts +17 -0
- package/sidecar/dist/mcp/tools/ask-user.js +32 -0
- package/sidecar/dist/mcp/tools/ask-user.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 +103 -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/navigate-to-page.d.ts +14 -0
- package/sidecar/dist/mcp/tools/navigate-to-page.js +74 -0
- package/sidecar/dist/mcp/tools/navigate-to-page.js.map +1 -0
- package/sidecar/dist/mcp/tools/preview-blocks.d.ts +65 -0
- package/sidecar/dist/mcp/tools/preview-blocks.js +180 -0
- package/sidecar/dist/mcp/tools/preview-blocks.js.map +1 -0
- package/sidecar/dist/mcp/types.d.ts +28 -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 +14 -0
- package/sidecar/dist/metrics/aggregate.js +214 -0
- package/sidecar/dist/metrics/aggregate.js.map +1 -0
- package/sidecar/dist/metrics/types.d.ts +68 -0
- package/sidecar/dist/metrics/types.js +10 -0
- package/sidecar/dist/metrics/types.js.map +1 -0
- package/sidecar/dist/pages/block-health.d.ts +14 -0
- package/sidecar/dist/pages/block-health.js +60 -0
- package/sidecar/dist/pages/block-health.js.map +1 -0
- package/sidecar/dist/pages/imports-scanner.d.ts +9 -0
- package/sidecar/dist/pages/imports-scanner.js +140 -0
- package/sidecar/dist/pages/imports-scanner.js.map +1 -0
- package/sidecar/dist/pages/page-filepath.d.ts +4 -0
- package/sidecar/dist/pages/page-filepath.js +28 -0
- package/sidecar/dist/pages/page-filepath.js.map +1 -0
- package/sidecar/dist/pages/registry-client.d.ts +15 -0
- package/sidecar/dist/pages/registry-client.js +92 -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 +1 -0
- package/sidecar/dist/prompts/agent.js +56 -0
- package/sidecar/dist/prompts/agent.js.map +1 -0
- package/sidecar/dist/protocol/events.d.ts +1928 -0
- package/sidecar/dist/protocol/events.js +446 -0
- package/sidecar/dist/protocol/events.js.map +1 -0
- package/sidecar/dist/protocol/json.d.ts +9 -0
- package/sidecar/dist/protocol/json.js +32 -0
- package/sidecar/dist/protocol/json.js.map +1 -0
- package/sidecar/dist/protocol/messages.d.ts +610 -0
- package/sidecar/dist/protocol/messages.js +259 -0
- package/sidecar/dist/protocol/messages.js.map +1 -0
- package/sidecar/dist/protocol/preview.d.ts +130 -0
- package/sidecar/dist/protocol/preview.js +91 -0
- package/sidecar/dist/protocol/preview.js.map +1 -0
- package/sidecar/dist/providers/claude/activity.d.ts +7 -0
- package/sidecar/dist/providers/claude/activity.js +54 -0
- package/sidecar/dist/providers/claude/activity.js.map +1 -0
- package/sidecar/dist/providers/claude/adapter.d.ts +5 -0
- package/sidecar/dist/providers/claude/adapter.js +104 -0
- package/sidecar/dist/providers/claude/adapter.js.map +1 -0
- package/sidecar/dist/providers/claude/attachments.d.ts +8 -0
- package/sidecar/dist/providers/claude/attachments.js +61 -0
- package/sidecar/dist/providers/claude/attachments.js.map +1 -0
- package/sidecar/dist/providers/claude/config.d.ts +25 -0
- package/sidecar/dist/providers/claude/config.js +50 -0
- package/sidecar/dist/providers/claude/config.js.map +1 -0
- package/sidecar/dist/providers/claude/credentials.d.ts +11 -0
- package/sidecar/dist/providers/claude/credentials.js +52 -0
- package/sidecar/dist/providers/claude/credentials.js.map +1 -0
- package/sidecar/dist/providers/claude/input-queue.d.ts +7 -0
- package/sidecar/dist/providers/claude/input-queue.js +39 -0
- package/sidecar/dist/providers/claude/input-queue.js.map +1 -0
- package/sidecar/dist/providers/claude/login.d.ts +23 -0
- package/sidecar/dist/providers/claude/login.js +97 -0
- package/sidecar/dist/providers/claude/login.js.map +1 -0
- package/sidecar/dist/providers/claude/model-fallback.d.ts +9 -0
- package/sidecar/dist/providers/claude/model-fallback.js +37 -0
- package/sidecar/dist/providers/claude/model-fallback.js.map +1 -0
- package/sidecar/dist/providers/claude/module.d.ts +2 -0
- package/sidecar/dist/providers/claude/module.js +25 -0
- package/sidecar/dist/providers/claude/module.js.map +1 -0
- package/sidecar/dist/providers/claude/provider.d.ts +7 -0
- package/sidecar/dist/providers/claude/provider.js +299 -0
- package/sidecar/dist/providers/claude/provider.js.map +1 -0
- package/sidecar/dist/providers/claude/resolve-binary.d.ts +1 -0
- package/sidecar/dist/providers/claude/resolve-binary.js +50 -0
- package/sidecar/dist/providers/claude/resolve-binary.js.map +1 -0
- package/sidecar/dist/providers/claude/result.d.ts +3 -0
- package/sidecar/dist/providers/claude/result.js +61 -0
- package/sidecar/dist/providers/claude/result.js.map +1 -0
- package/sidecar/dist/providers/claude/safe-mode.d.ts +9 -0
- package/sidecar/dist/providers/claude/safe-mode.js +72 -0
- package/sidecar/dist/providers/claude/safe-mode.js.map +1 -0
- package/sidecar/dist/providers/claude/sdk-loader.d.ts +5 -0
- package/sidecar/dist/providers/claude/sdk-loader.js +13 -0
- package/sidecar/dist/providers/claude/sdk-loader.js.map +1 -0
- package/sidecar/dist/providers/claude/secret-files.d.ts +2 -0
- package/sidecar/dist/providers/claude/secret-files.js +50 -0
- package/sidecar/dist/providers/claude/secret-files.js.map +1 -0
- package/sidecar/dist/providers/claude/session-stream.d.ts +18 -0
- package/sidecar/dist/providers/claude/session-stream.js +80 -0
- package/sidecar/dist/providers/claude/session-stream.js.map +1 -0
- package/sidecar/dist/providers/claude/token-check.d.ts +27 -0
- package/sidecar/dist/providers/claude/token-check.js +63 -0
- package/sidecar/dist/providers/claude/token-check.js.map +1 -0
- package/sidecar/dist/providers/claude/tool-guard.d.ts +14 -0
- package/sidecar/dist/providers/claude/tool-guard.js +112 -0
- package/sidecar/dist/providers/claude/tool-guard.js.map +1 -0
- package/sidecar/dist/providers/codex/adapter.d.ts +23 -0
- package/sidecar/dist/providers/codex/adapter.js +256 -0
- package/sidecar/dist/providers/codex/adapter.js.map +1 -0
- package/sidecar/dist/providers/codex/attachments.d.ts +7 -0
- package/sidecar/dist/providers/codex/attachments.js +73 -0
- package/sidecar/dist/providers/codex/attachments.js.map +1 -0
- package/sidecar/dist/providers/codex/chatgpt/credentials.d.ts +10 -0
- package/sidecar/dist/providers/codex/chatgpt/credentials.js +63 -0
- package/sidecar/dist/providers/codex/chatgpt/credentials.js.map +1 -0
- package/sidecar/dist/providers/codex/chatgpt/http.d.ts +3 -0
- package/sidecar/dist/providers/codex/chatgpt/http.js +69 -0
- package/sidecar/dist/providers/codex/chatgpt/http.js.map +1 -0
- package/sidecar/dist/providers/codex/chatgpt/lock.d.ts +1 -0
- package/sidecar/dist/providers/codex/chatgpt/lock.js +58 -0
- package/sidecar/dist/providers/codex/chatgpt/lock.js.map +1 -0
- package/sidecar/dist/providers/codex/chatgpt/login.d.ts +8 -0
- package/sidecar/dist/providers/codex/chatgpt/login.js +138 -0
- package/sidecar/dist/providers/codex/chatgpt/login.js.map +1 -0
- package/sidecar/dist/providers/codex/chatgpt/oauth.d.ts +38 -0
- package/sidecar/dist/providers/codex/chatgpt/oauth.js +210 -0
- package/sidecar/dist/providers/codex/chatgpt/oauth.js.map +1 -0
- package/sidecar/dist/providers/codex/chatgpt/store.d.ts +21 -0
- package/sidecar/dist/providers/codex/chatgpt/store.js +65 -0
- package/sidecar/dist/providers/codex/chatgpt/store.js.map +1 -0
- package/sidecar/dist/providers/codex/client.d.ts +27 -0
- package/sidecar/dist/providers/codex/client.js +148 -0
- package/sidecar/dist/providers/codex/client.js.map +1 -0
- package/sidecar/dist/providers/codex/config.d.ts +18 -0
- package/sidecar/dist/providers/codex/config.js +95 -0
- package/sidecar/dist/providers/codex/config.js.map +1 -0
- package/sidecar/dist/providers/codex/event-stream.d.ts +8 -0
- package/sidecar/dist/providers/codex/event-stream.js +53 -0
- package/sidecar/dist/providers/codex/event-stream.js.map +1 -0
- package/sidecar/dist/providers/codex/mcp-elicitation.d.ts +21 -0
- package/sidecar/dist/providers/codex/mcp-elicitation.js +66 -0
- package/sidecar/dist/providers/codex/mcp-elicitation.js.map +1 -0
- package/sidecar/dist/providers/codex/module.d.ts +2 -0
- package/sidecar/dist/providers/codex/module.js +61 -0
- package/sidecar/dist/providers/codex/module.js.map +1 -0
- package/sidecar/dist/providers/codex/patch-directories.d.ts +6 -0
- package/sidecar/dist/providers/codex/patch-directories.js +53 -0
- package/sidecar/dist/providers/codex/patch-directories.js.map +1 -0
- package/sidecar/dist/providers/codex/permission-profiles.d.ts +11 -0
- package/sidecar/dist/providers/codex/permission-profiles.js +37 -0
- package/sidecar/dist/providers/codex/permission-profiles.js.map +1 -0
- package/sidecar/dist/providers/codex/permissions.d.ts +35 -0
- package/sidecar/dist/providers/codex/permissions.js +178 -0
- package/sidecar/dist/providers/codex/permissions.js.map +1 -0
- package/sidecar/dist/providers/codex/process.d.ts +26 -0
- package/sidecar/dist/providers/codex/process.js +326 -0
- package/sidecar/dist/providers/codex/process.js.map +1 -0
- package/sidecar/dist/providers/codex/protocol/common.d.ts +71 -0
- package/sidecar/dist/providers/codex/protocol/common.js +2 -0
- package/sidecar/dist/providers/codex/protocol/common.js.map +1 -0
- package/sidecar/dist/providers/codex/protocol/index.d.ts +3 -0
- package/sidecar/dist/providers/codex/protocol/index.js +3 -0
- package/sidecar/dist/providers/codex/protocol/index.js.map +1 -0
- package/sidecar/dist/providers/codex/protocol/serde_json.d.ts +3 -0
- package/sidecar/dist/providers/codex/protocol/serde_json.js +2 -0
- package/sidecar/dist/providers/codex/protocol/serde_json.js.map +1 -0
- package/sidecar/dist/providers/codex/protocol/v2.d.ts +472 -0
- package/sidecar/dist/providers/codex/protocol/v2.js +2 -0
- package/sidecar/dist/providers/codex/protocol/v2.js.map +1 -0
- package/sidecar/dist/providers/codex/provider.d.ts +15 -0
- package/sidecar/dist/providers/codex/provider.js +295 -0
- package/sidecar/dist/providers/codex/provider.js.map +1 -0
- package/sidecar/dist/providers/codex/resolve-binary.d.ts +10 -0
- package/sidecar/dist/providers/codex/resolve-binary.js +80 -0
- package/sidecar/dist/providers/codex/resolve-binary.js.map +1 -0
- package/sidecar/dist/providers/codex/secret-file-globs.d.ts +2 -0
- package/sidecar/dist/providers/codex/secret-file-globs.js +45 -0
- package/sidecar/dist/providers/codex/secret-file-globs.js.map +1 -0
- package/sidecar/dist/providers/codex/skills.d.ts +43 -0
- package/sidecar/dist/providers/codex/skills.js +80 -0
- package/sidecar/dist/providers/codex/skills.js.map +1 -0
- package/sidecar/dist/providers/codex/stop.d.ts +9 -0
- package/sidecar/dist/providers/codex/stop.js +69 -0
- package/sidecar/dist/providers/codex/stop.js.map +1 -0
- package/sidecar/dist/providers/login.d.ts +13 -0
- package/sidecar/dist/providers/login.js +2 -0
- package/sidecar/dist/providers/login.js.map +1 -0
- package/sidecar/dist/providers/registry.d.ts +7 -0
- package/sidecar/dist/providers/registry.js +30 -0
- package/sidecar/dist/providers/registry.js.map +1 -0
- package/sidecar/dist/providers/types.d.ts +27 -0
- package/sidecar/dist/providers/types.js +5 -0
- package/sidecar/dist/providers/types.js.map +1 -0
- package/sidecar/dist/server/change-set-actions.d.ts +10 -0
- package/sidecar/dist/server/change-set-actions.js +14 -0
- package/sidecar/dist/server/change-set-actions.js.map +1 -0
- package/sidecar/dist/server/chat-events.d.ts +30 -0
- package/sidecar/dist/server/chat-events.js +145 -0
- package/sidecar/dist/server/chat-events.js.map +1 -0
- package/sidecar/dist/server/chat-socket-registry.d.ts +15 -0
- package/sidecar/dist/server/chat-socket-registry.js +74 -0
- package/sidecar/dist/server/chat-socket-registry.js.map +1 -0
- package/sidecar/dist/server/client-auth.d.ts +2 -0
- package/sidecar/dist/server/client-auth.js +13 -0
- package/sidecar/dist/server/client-auth.js.map +1 -0
- package/sidecar/dist/server/conversation-runs.d.ts +13 -0
- package/sidecar/dist/server/conversation-runs.js +116 -0
- package/sidecar/dist/server/conversation-runs.js.map +1 -0
- package/sidecar/dist/server/host-command-router.d.ts +5 -0
- package/sidecar/dist/server/host-command-router.js +4 -0
- package/sidecar/dist/server/host-command-router.js.map +1 -0
- package/sidecar/dist/server/host-socket-registry.d.ts +13 -0
- package/sidecar/dist/server/host-socket-registry.js +56 -0
- package/sidecar/dist/server/host-socket-registry.js.map +1 -0
- package/sidecar/dist/server/http-io.d.ts +5 -0
- package/sidecar/dist/server/http-io.js +30 -0
- package/sidecar/dist/server/http-io.js.map +1 -0
- package/sidecar/dist/server/http-params.d.ts +10 -0
- package/sidecar/dist/server/http-params.js +83 -0
- package/sidecar/dist/server/http-params.js.map +1 -0
- package/sidecar/dist/server/http-routes.d.ts +34 -0
- package/sidecar/dist/server/http-routes.js +294 -0
- package/sidecar/dist/server/http-routes.js.map +1 -0
- package/sidecar/dist/server/http.d.ts +31 -0
- package/sidecar/dist/server/http.js +200 -0
- package/sidecar/dist/server/http.js.map +1 -0
- package/sidecar/dist/server/idle-shutdown.d.ts +11 -0
- package/sidecar/dist/server/idle-shutdown.js +44 -0
- package/sidecar/dist/server/idle-shutdown.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 +18 -0
- package/sidecar/dist/server/navigation-completer.js +50 -0
- package/sidecar/dist/server/navigation-completer.js.map +1 -0
- package/sidecar/dist/server/onboarding.d.ts +2 -0
- package/sidecar/dist/server/onboarding.js +89 -0
- package/sidecar/dist/server/onboarding.js.map +1 -0
- package/sidecar/dist/server/pending-queue.d.ts +13 -0
- package/sidecar/dist/server/pending-queue.js +73 -0
- package/sidecar/dist/server/pending-queue.js.map +1 -0
- package/sidecar/dist/server/permission-events.d.ts +17 -0
- package/sidecar/dist/server/permission-events.js +136 -0
- package/sidecar/dist/server/permission-events.js.map +1 -0
- package/sidecar/dist/server/raw-data.d.ts +2 -0
- package/sidecar/dist/server/raw-data.js +14 -0
- package/sidecar/dist/server/raw-data.js.map +1 -0
- package/sidecar/dist/server/routing.d.ts +15 -0
- package/sidecar/dist/server/routing.js +314 -0
- package/sidecar/dist/server/routing.js.map +1 -0
- package/sidecar/dist/server/safety-net.d.ts +23 -0
- package/sidecar/dist/server/safety-net.js +113 -0
- package/sidecar/dist/server/safety-net.js.map +1 -0
- package/sidecar/dist/server/services.d.ts +58 -0
- package/sidecar/dist/server/services.js +2 -0
- package/sidecar/dist/server/services.js.map +1 -0
- package/sidecar/dist/server/tool-calls.d.ts +15 -0
- package/sidecar/dist/server/tool-calls.js +128 -0
- package/sidecar/dist/server/tool-calls.js.map +1 -0
- package/sidecar/dist/server/turn-progress.d.ts +13 -0
- package/sidecar/dist/server/turn-progress.js +72 -0
- package/sidecar/dist/server/turn-progress.js.map +1 -0
- package/sidecar/dist/server/turn-registry.d.ts +43 -0
- package/sidecar/dist/server/turn-registry.js +39 -0
- package/sidecar/dist/server/turn-registry.js.map +1 -0
- package/sidecar/dist/server/turns.d.ts +32 -0
- package/sidecar/dist/server/turns.js +354 -0
- package/sidecar/dist/server/turns.js.map +1 -0
- package/sidecar/dist/server/ws.d.ts +40 -0
- package/sidecar/dist/server/ws.js +243 -0
- package/sidecar/dist/server/ws.js.map +1 -0
- package/sidecar/dist/skills/build-catalog.d.ts +19 -0
- package/sidecar/dist/skills/build-catalog.js +72 -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/skill-usage.d.ts +22 -0
- package/sidecar/dist/skills/skill-usage.js +100 -0
- package/sidecar/dist/skills/skill-usage.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/change-sets.d.ts +12 -0
- package/sidecar/dist/state/change-sets.js +98 -0
- package/sidecar/dist/state/change-sets.js.map +1 -0
- package/sidecar/dist/state/conversations.d.ts +37 -0
- package/sidecar/dist/state/conversations.js +177 -0
- package/sidecar/dist/state/conversations.js.map +1 -0
- package/sidecar/dist/state/host-state.d.ts +19 -0
- package/sidecar/dist/state/host-state.js +24 -0
- package/sidecar/dist/state/host-state.js.map +1 -0
- package/sidecar/dist/state/legacy-tool-names.d.ts +3 -0
- package/sidecar/dist/state/legacy-tool-names.js +34 -0
- package/sidecar/dist/state/legacy-tool-names.js.map +1 -0
- package/sidecar/dist/state/lock.d.ts +12 -0
- package/sidecar/dist/state/lock.js +32 -0
- package/sidecar/dist/state/lock.js.map +1 -0
- package/sidecar/dist/state/private-file.d.ts +1 -0
- package/sidecar/dist/state/private-file.js +68 -0
- package/sidecar/dist/state/private-file.js.map +1 -0
- package/sidecar/dist/state/safe-segment.d.ts +1 -0
- package/sidecar/dist/state/safe-segment.js +17 -0
- package/sidecar/dist/state/safe-segment.js.map +1 -0
- package/sidecar/dist/state/settings-store.d.ts +52 -0
- package/sidecar/dist/state/settings-store.js +115 -0
- package/sidecar/dist/state/settings-store.js.map +1 -0
- package/sidecar/dist/state/settings-types.d.ts +38 -0
- package/sidecar/dist/state/settings-types.js +19 -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 +16 -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 +114 -0
- package/sidecar/dist/state/store.js.map +1 -0
- package/sidecar/dist/state/stored-schemas.d.ts +4 -0
- package/sidecar/dist/state/stored-schemas.js +137 -0
- package/sidecar/dist/state/stored-schemas.js.map +1 -0
- package/sidecar/dist/state/types.d.ts +165 -0
- package/sidecar/dist/state/types.js +22 -0
- package/sidecar/dist/state/types.js.map +1 -0
- package/sidecar/package.json +39 -0
- package/skills/dms-ai/SKILL.md +32 -0
- package/skills/dms-ai/cases.json +47 -0
- package/skills/dms-ai-code-mode/SKILL.md +53 -0
- package/skills/dms-ai-code-mode/cases.json +38 -0
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
// @vitest-environment jsdom
|
|
2
|
+
import { flushPromises } from "@vue/test-utils";
|
|
3
|
+
import { afterEach, describe, expect, it } from "vitest";
|
|
4
|
+
import { shallowRef } from "vue";
|
|
5
|
+
import { publicAssistantActions } from "../app/runtime/assistant-actions";
|
|
6
|
+
import {
|
|
7
|
+
createHarness,
|
|
8
|
+
openPanel,
|
|
9
|
+
sentOfType,
|
|
10
|
+
unmountPanel,
|
|
11
|
+
} from "./support/panel-harness";
|
|
12
|
+
|
|
13
|
+
afterEach(() => {
|
|
14
|
+
unmountPanel();
|
|
15
|
+
});
|
|
16
|
+
|
|
17
|
+
const PROMPT =
|
|
18
|
+
"Use dms-external-database on connection roaster, module builder-db-roaster-tables.";
|
|
19
|
+
|
|
20
|
+
describe("the assistant actions another module's layer injects", () => {
|
|
21
|
+
it("start a new conversation with the composer prefilled and nothing sent", async () => {
|
|
22
|
+
const harness = createHarness();
|
|
23
|
+
const panel = await openPanel(harness);
|
|
24
|
+
const actions = publicAssistantActions(shallowRef(harness.session));
|
|
25
|
+
expect(actions.isAvailable).toBe(true);
|
|
26
|
+
actions.startConversation(PROMPT);
|
|
27
|
+
await flushPromises();
|
|
28
|
+
expect((panel.find("textarea").element as HTMLTextAreaElement).value).toBe(
|
|
29
|
+
PROMPT,
|
|
30
|
+
);
|
|
31
|
+
expect(sentOfType(harness, "user_message")).toEqual([]);
|
|
32
|
+
expect(sentOfType(harness, "set_conversation_mode")).toEqual([]);
|
|
33
|
+
});
|
|
34
|
+
|
|
35
|
+
it("set the new conversation to plan mode before prefilling it, when asked", async () => {
|
|
36
|
+
const harness = createHarness();
|
|
37
|
+
const panel = await openPanel(harness);
|
|
38
|
+
const actions = publicAssistantActions(shallowRef(harness.session));
|
|
39
|
+
actions.startConversation(PROMPT, { mode: "plan" });
|
|
40
|
+
await flushPromises();
|
|
41
|
+
const started = sentOfType(harness, "hello").at(-1)?.conversationId;
|
|
42
|
+
expect(sentOfType(harness, "set_conversation_mode")).toEqual([
|
|
43
|
+
expect.objectContaining({ conversationId: started, mode: "plan" }),
|
|
44
|
+
]);
|
|
45
|
+
expect((panel.find("textarea").element as HTMLTextAreaElement).value).toBe(
|
|
46
|
+
PROMPT,
|
|
47
|
+
);
|
|
48
|
+
});
|
|
49
|
+
|
|
50
|
+
it("set plan mode once the stream is up, when the panel opens before it", async () => {
|
|
51
|
+
const harness = createHarness();
|
|
52
|
+
await openPanel(harness);
|
|
53
|
+
harness.setChannelStatus("disconnected");
|
|
54
|
+
publicAssistantActions(shallowRef(harness.session)).startConversation(
|
|
55
|
+
PROMPT,
|
|
56
|
+
{ mode: "plan" },
|
|
57
|
+
);
|
|
58
|
+
await flushPromises();
|
|
59
|
+
expect(sentOfType(harness, "set_conversation_mode")).toEqual([]);
|
|
60
|
+
harness.setChannelStatus("connected");
|
|
61
|
+
await flushPromises();
|
|
62
|
+
expect(sentOfType(harness, "set_conversation_mode")).toEqual([
|
|
63
|
+
expect.objectContaining({ mode: "plan" }),
|
|
64
|
+
]);
|
|
65
|
+
});
|
|
66
|
+
|
|
67
|
+
it("send the prompt as the first message, in plan mode, when asked to", async () => {
|
|
68
|
+
const harness = createHarness();
|
|
69
|
+
const panel = await openPanel(harness);
|
|
70
|
+
publicAssistantActions(shallowRef(harness.session)).startConversation(
|
|
71
|
+
PROMPT,
|
|
72
|
+
{ mode: "plan", send: true },
|
|
73
|
+
);
|
|
74
|
+
await flushPromises();
|
|
75
|
+
const started = sentOfType(harness, "hello").at(-1)?.conversationId;
|
|
76
|
+
expect(sentOfType(harness, "set_conversation_mode")).toEqual([
|
|
77
|
+
expect.objectContaining({ conversationId: started, mode: "plan" }),
|
|
78
|
+
]);
|
|
79
|
+
expect(sentOfType(harness, "user_message")).toEqual([
|
|
80
|
+
expect.objectContaining({ content: PROMPT }),
|
|
81
|
+
]);
|
|
82
|
+
expect((panel.find("textarea").element as HTMLTextAreaElement).value).toBe(
|
|
83
|
+
"",
|
|
84
|
+
);
|
|
85
|
+
});
|
|
86
|
+
|
|
87
|
+
it("send the prompt once the stream is up, when the panel opens before it", async () => {
|
|
88
|
+
const harness = createHarness();
|
|
89
|
+
await openPanel(harness);
|
|
90
|
+
harness.setChannelStatus("disconnected");
|
|
91
|
+
publicAssistantActions(shallowRef(harness.session)).startConversation(
|
|
92
|
+
PROMPT,
|
|
93
|
+
{ send: true },
|
|
94
|
+
);
|
|
95
|
+
await flushPromises();
|
|
96
|
+
expect(sentOfType(harness, "user_message")).toEqual([]);
|
|
97
|
+
harness.setChannelStatus("connected");
|
|
98
|
+
await flushPromises();
|
|
99
|
+
expect(sentOfType(harness, "user_message")).toEqual([
|
|
100
|
+
expect.objectContaining({ content: PROMPT }),
|
|
101
|
+
]);
|
|
102
|
+
});
|
|
103
|
+
|
|
104
|
+
it("are unavailable without a session, and starting then does nothing", () => {
|
|
105
|
+
const actions = publicAssistantActions(shallowRef(null));
|
|
106
|
+
expect(actions.isAvailable).toBe(false);
|
|
107
|
+
expect(() => actions.startConversation(PROMPT)).not.toThrow();
|
|
108
|
+
});
|
|
109
|
+
});
|
|
@@ -0,0 +1,281 @@
|
|
|
1
|
+
import { describe, expect, it } from "vitest";
|
|
2
|
+
import { nextTick, ref } from "vue";
|
|
3
|
+
import {
|
|
4
|
+
type AssistantStatusPayload,
|
|
5
|
+
createAssistantActivity,
|
|
6
|
+
} from "../app/runtime/assistant-activity";
|
|
7
|
+
import type { ChannelStatus } from "../app/runtime/channel-client";
|
|
8
|
+
import type { ChatTransport } from "../app/runtime/chat-transport";
|
|
9
|
+
|
|
10
|
+
type Listener = (msg: object) => void;
|
|
11
|
+
type StatusListener = (status: ChannelStatus) => void;
|
|
12
|
+
|
|
13
|
+
function fakeChat(initial: ChannelStatus = "connected") {
|
|
14
|
+
const listeners = new Set<Listener>();
|
|
15
|
+
const statusListeners = new Set<StatusListener>();
|
|
16
|
+
let status = initial;
|
|
17
|
+
const chat = {
|
|
18
|
+
onMessage: (listener: Listener) => {
|
|
19
|
+
listeners.add(listener);
|
|
20
|
+
return () => listeners.delete(listener);
|
|
21
|
+
},
|
|
22
|
+
onStatus: (listener: StatusListener) => {
|
|
23
|
+
statusListeners.add(listener);
|
|
24
|
+
return () => statusListeners.delete(listener);
|
|
25
|
+
},
|
|
26
|
+
getStatus: () => status,
|
|
27
|
+
} as unknown as ChatTransport;
|
|
28
|
+
return {
|
|
29
|
+
chat,
|
|
30
|
+
emit: (msg: object) => listeners.forEach((l) => l(msg)),
|
|
31
|
+
announce: (next: ChannelStatus) => {
|
|
32
|
+
status = next;
|
|
33
|
+
statusListeners.forEach((l) => l(next));
|
|
34
|
+
},
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
function activityOver(chat: ChatTransport) {
|
|
39
|
+
const data = ref<AssistantStatusPayload | null>(null);
|
|
40
|
+
const activity = createAssistantActivity({
|
|
41
|
+
readStatus: () => ({ data, refresh: async () => undefined }),
|
|
42
|
+
chat,
|
|
43
|
+
shouldPoll: () => true,
|
|
44
|
+
});
|
|
45
|
+
return { data, activity };
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
function activityOverHeldRefresh(chat: ChatTransport) {
|
|
49
|
+
const data = ref<AssistantStatusPayload | null>(null);
|
|
50
|
+
const refreshes: { resolve: () => void; reject: (reason: Error) => void }[] =
|
|
51
|
+
[];
|
|
52
|
+
const activity = createAssistantActivity({
|
|
53
|
+
readStatus: () => ({
|
|
54
|
+
data,
|
|
55
|
+
refresh: () =>
|
|
56
|
+
new Promise<void>((resolve, reject) => {
|
|
57
|
+
refreshes.push({ resolve, reject });
|
|
58
|
+
}),
|
|
59
|
+
}),
|
|
60
|
+
chat,
|
|
61
|
+
shouldPoll: () => true,
|
|
62
|
+
});
|
|
63
|
+
return { data, activity, refreshes };
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
function finishTurnThenLoseStream(
|
|
67
|
+
emit: (msg: object) => void,
|
|
68
|
+
announce: (next: ChannelStatus) => void,
|
|
69
|
+
): void {
|
|
70
|
+
emit({ type: "conversation_list", conversations: [{ isRunning: true }] });
|
|
71
|
+
emit({ type: "conversation_list", conversations: [{ isRunning: false }] });
|
|
72
|
+
announce("disconnected");
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
describe("assistant activity", () => {
|
|
76
|
+
it("polls the status through the read's interval while it is useful, and stops on teardown", async () => {
|
|
77
|
+
const data = ref<AssistantStatusPayload | null>(null);
|
|
78
|
+
let interval: () => number = () => -1;
|
|
79
|
+
const isPanelOpen = ref(false);
|
|
80
|
+
const { chat } = fakeChat();
|
|
81
|
+
const activity = createAssistantActivity({
|
|
82
|
+
readStatus: (given) => {
|
|
83
|
+
interval = given;
|
|
84
|
+
return { data, refresh: async () => undefined };
|
|
85
|
+
},
|
|
86
|
+
chat,
|
|
87
|
+
shouldPoll: () => !isPanelOpen.value,
|
|
88
|
+
});
|
|
89
|
+
expect(interval()).toBe(15_000);
|
|
90
|
+
isPanelOpen.value = true;
|
|
91
|
+
expect(interval()).toBe(0);
|
|
92
|
+
isPanelOpen.value = false;
|
|
93
|
+
activity.stop();
|
|
94
|
+
expect(interval()).toBe(0);
|
|
95
|
+
});
|
|
96
|
+
|
|
97
|
+
it("takes its counts from each status answer and from the stream's lists, and from the status again once the stream drops", async () => {
|
|
98
|
+
const { chat, emit, announce } = fakeChat();
|
|
99
|
+
const { data, activity } = activityOver(chat);
|
|
100
|
+
data.value = { pendingApprovals: 2, workingConversations: 0 };
|
|
101
|
+
await nextTick();
|
|
102
|
+
expect(activity.pendingApprovals.value).toBe(2);
|
|
103
|
+
expect(activity.isBusy.value).toBe(true);
|
|
104
|
+
emit({ type: "conversation_list", conversations: [{ isRunning: true }] });
|
|
105
|
+
expect(activity.pendingApprovals.value).toBe(0);
|
|
106
|
+
expect(activity.workingConversations.value).toBe(1);
|
|
107
|
+
announce("reconnecting");
|
|
108
|
+
data.value = {
|
|
109
|
+
pendingApprovals: 0,
|
|
110
|
+
workingConversations: 0,
|
|
111
|
+
lastError: "boom",
|
|
112
|
+
};
|
|
113
|
+
await nextTick();
|
|
114
|
+
expect(activity.workingConversations.value).toBe(0);
|
|
115
|
+
expect(activity.lastError.value).toBe("boom");
|
|
116
|
+
activity.stop();
|
|
117
|
+
});
|
|
118
|
+
|
|
119
|
+
it("keeps the stream open while a question waits, from the status and from a list", async () => {
|
|
120
|
+
const data = ref<AssistantStatusPayload | null>(null);
|
|
121
|
+
const { chat, emit } = fakeChat();
|
|
122
|
+
const activity = createAssistantActivity({
|
|
123
|
+
readStatus: () => ({ data, refresh: async () => undefined }),
|
|
124
|
+
chat,
|
|
125
|
+
shouldPoll: () => true,
|
|
126
|
+
});
|
|
127
|
+
data.value = { pendingQuestions: 1 };
|
|
128
|
+
await nextTick();
|
|
129
|
+
expect(activity.pendingQuestions.value).toBe(1);
|
|
130
|
+
expect(activity.pendingApprovals.value).toBe(0);
|
|
131
|
+
expect(activity.isBusy.value).toBe(true);
|
|
132
|
+
emit({ type: "conversation_list", conversations: [{}] });
|
|
133
|
+
expect(activity.pendingQuestions.value).toBe(0);
|
|
134
|
+
expect(activity.isBusy.value).toBe(false);
|
|
135
|
+
emit({
|
|
136
|
+
type: "conversation_list",
|
|
137
|
+
conversations: [{ pendingQuestions: 1 }, { pendingQuestions: 2 }],
|
|
138
|
+
});
|
|
139
|
+
expect(activity.pendingQuestions.value).toBe(3);
|
|
140
|
+
expect(activity.pendingApprovals.value).toBe(0);
|
|
141
|
+
expect(activity.isBusy.value).toBe(true);
|
|
142
|
+
activity.stop();
|
|
143
|
+
});
|
|
144
|
+
|
|
145
|
+
it("keeps a finished turn when a status answer from before the turn ended lands after the list (fails if the poll rewinds the list's counts)", async () => {
|
|
146
|
+
const { chat, emit } = fakeChat();
|
|
147
|
+
const { data, activity } = activityOver(chat);
|
|
148
|
+
emit({ type: "conversation_list", conversations: [{ isRunning: true }] });
|
|
149
|
+
emit({ type: "conversation_list", conversations: [{ isRunning: false }] });
|
|
150
|
+
data.value = { workingConversations: 1, lastError: "late" };
|
|
151
|
+
await nextTick();
|
|
152
|
+
expect(activity.workingConversations.value).toBe(0);
|
|
153
|
+
expect(activity.isBusy.value).toBe(false);
|
|
154
|
+
expect(activity.lastError.value).toBe("late");
|
|
155
|
+
activity.stop();
|
|
156
|
+
});
|
|
157
|
+
|
|
158
|
+
it("keeps a running turn when a stale status answer says all is idle (fails if the poll overwrites the list's counts)", async () => {
|
|
159
|
+
const { chat, emit } = fakeChat();
|
|
160
|
+
const { data, activity } = activityOver(chat);
|
|
161
|
+
emit({
|
|
162
|
+
type: "conversation_list",
|
|
163
|
+
conversations: [{ isRunning: true, pendingQuestions: 1 }],
|
|
164
|
+
});
|
|
165
|
+
data.value = { workingConversations: 0, pendingQuestions: 0 };
|
|
166
|
+
await nextTick();
|
|
167
|
+
expect(activity.workingConversations.value).toBe(1);
|
|
168
|
+
expect(activity.pendingQuestions.value).toBe(1);
|
|
169
|
+
activity.stop();
|
|
170
|
+
});
|
|
171
|
+
|
|
172
|
+
it("takes the counts from the status while a connected stream has sent no list (fails if a bare connection silences the poll)", async () => {
|
|
173
|
+
const { chat, emit, announce } = fakeChat();
|
|
174
|
+
const { data, activity } = activityOver(chat);
|
|
175
|
+
data.value = { workingConversations: 1 };
|
|
176
|
+
await nextTick();
|
|
177
|
+
expect(activity.workingConversations.value).toBe(1);
|
|
178
|
+
emit({ type: "conversation_list", conversations: [] });
|
|
179
|
+
announce("reconnecting");
|
|
180
|
+
announce("connected");
|
|
181
|
+
data.value = { workingConversations: 2 };
|
|
182
|
+
await nextTick();
|
|
183
|
+
expect(activity.workingConversations.value).toBe(2);
|
|
184
|
+
activity.stop();
|
|
185
|
+
});
|
|
186
|
+
|
|
187
|
+
it("keeps a finished turn when a status answer sent during the turn lands after the stream let go (fails if the release reopens the counts to any answer)", async () => {
|
|
188
|
+
const { chat, emit, announce } = fakeChat();
|
|
189
|
+
const { data, activity } = activityOverHeldRefresh(chat);
|
|
190
|
+
finishTurnThenLoseStream(emit, announce);
|
|
191
|
+
data.value = { workingConversations: 1 };
|
|
192
|
+
await nextTick();
|
|
193
|
+
expect(activity.workingConversations.value).toBe(0);
|
|
194
|
+
expect(activity.isBusy.value).toBe(false);
|
|
195
|
+
activity.stop();
|
|
196
|
+
});
|
|
197
|
+
|
|
198
|
+
it("reads the status again when the lists let go (fails if the release leaves the stale answer in flight)", async () => {
|
|
199
|
+
const { chat, emit, announce } = fakeChat();
|
|
200
|
+
const { activity, refreshes } = activityOverHeldRefresh(chat);
|
|
201
|
+
emit({ type: "conversation_list", conversations: [] });
|
|
202
|
+
announce("reconnecting");
|
|
203
|
+
announce("disconnected");
|
|
204
|
+
expect(refreshes).toHaveLength(1);
|
|
205
|
+
activity.stop();
|
|
206
|
+
});
|
|
207
|
+
|
|
208
|
+
it("takes the counts of the fresh read once it answers (fails if the counts stay shut after a release)", async () => {
|
|
209
|
+
const { chat, emit, announce } = fakeChat();
|
|
210
|
+
const { data, activity, refreshes } = activityOverHeldRefresh(chat);
|
|
211
|
+
finishTurnThenLoseStream(emit, announce);
|
|
212
|
+
data.value = { workingConversations: 1 };
|
|
213
|
+
await nextTick();
|
|
214
|
+
data.value = { pendingApprovals: 2, lastError: "fresh" };
|
|
215
|
+
refreshes[0]?.resolve();
|
|
216
|
+
await nextTick();
|
|
217
|
+
expect(activity.pendingApprovals.value).toBe(2);
|
|
218
|
+
expect(activity.workingConversations.value).toBe(0);
|
|
219
|
+
expect(activity.lastError.value).toBe("fresh");
|
|
220
|
+
data.value = { workingConversations: 1 };
|
|
221
|
+
await nextTick();
|
|
222
|
+
expect(activity.workingConversations.value).toBe(1);
|
|
223
|
+
activity.stop();
|
|
224
|
+
});
|
|
225
|
+
|
|
226
|
+
it("keeps the counts when the fresh read resolves with no new answer (fails if it applies the answer it replaced)", async () => {
|
|
227
|
+
const { chat, emit, announce } = fakeChat();
|
|
228
|
+
const { data, activity, refreshes } = activityOverHeldRefresh(chat);
|
|
229
|
+
data.value = { workingConversations: 1 };
|
|
230
|
+
await nextTick();
|
|
231
|
+
finishTurnThenLoseStream(emit, announce);
|
|
232
|
+
refreshes[0]?.resolve();
|
|
233
|
+
await nextTick();
|
|
234
|
+
expect(activity.workingConversations.value).toBe(0);
|
|
235
|
+
activity.stop();
|
|
236
|
+
});
|
|
237
|
+
|
|
238
|
+
it("takes the next answer after a fresh read that fails (fails if a rejected refresh freezes the counts)", async () => {
|
|
239
|
+
const { chat, emit, announce } = fakeChat();
|
|
240
|
+
const { data, activity, refreshes } = activityOverHeldRefresh(chat);
|
|
241
|
+
finishTurnThenLoseStream(emit, announce);
|
|
242
|
+
refreshes[0]?.reject(new Error("offline"));
|
|
243
|
+
await nextTick();
|
|
244
|
+
data.value = { workingConversations: 1 };
|
|
245
|
+
await nextTick();
|
|
246
|
+
expect(activity.workingConversations.value).toBe(1);
|
|
247
|
+
activity.stop();
|
|
248
|
+
});
|
|
249
|
+
|
|
250
|
+
it("keeps a list's counts when the stream is back before the fresh read lands (fails if the read is applied over a newer list)", async () => {
|
|
251
|
+
const { chat, emit, announce } = fakeChat();
|
|
252
|
+
const { data, activity, refreshes } = activityOverHeldRefresh(chat);
|
|
253
|
+
finishTurnThenLoseStream(emit, announce);
|
|
254
|
+
announce("connected");
|
|
255
|
+
emit({ type: "conversation_list", conversations: [{ isRunning: true }] });
|
|
256
|
+
data.value = { workingConversations: 0 };
|
|
257
|
+
refreshes[0]?.resolve();
|
|
258
|
+
await nextTick();
|
|
259
|
+
expect(activity.workingConversations.value).toBe(1);
|
|
260
|
+
activity.stop();
|
|
261
|
+
});
|
|
262
|
+
|
|
263
|
+
it("takes only the latest release's read (fails if an earlier read's answer lifts the later release's gate)", async () => {
|
|
264
|
+
const { chat, emit, announce } = fakeChat();
|
|
265
|
+
const { data, activity, refreshes } = activityOverHeldRefresh(chat);
|
|
266
|
+
finishTurnThenLoseStream(emit, announce);
|
|
267
|
+
announce("connected");
|
|
268
|
+
emit({ type: "conversation_list", conversations: [{ isRunning: true }] });
|
|
269
|
+
announce("disconnected");
|
|
270
|
+
expect(refreshes).toHaveLength(2);
|
|
271
|
+
refreshes[0]?.resolve();
|
|
272
|
+
await nextTick();
|
|
273
|
+
data.value = { workingConversations: 0 };
|
|
274
|
+
await nextTick();
|
|
275
|
+
expect(activity.workingConversations.value).toBe(1);
|
|
276
|
+
refreshes[1]?.resolve();
|
|
277
|
+
await nextTick();
|
|
278
|
+
expect(activity.workingConversations.value).toBe(0);
|
|
279
|
+
activity.stop();
|
|
280
|
+
});
|
|
281
|
+
});
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
import {
|
|
2
|
+
mkdirSync,
|
|
3
|
+
mkdtempSync,
|
|
4
|
+
realpathSync,
|
|
5
|
+
rmSync,
|
|
6
|
+
symlinkSync,
|
|
7
|
+
writeFileSync,
|
|
8
|
+
} from "node:fs";
|
|
9
|
+
import { tmpdir } from "node:os";
|
|
10
|
+
import { join } from "node:path";
|
|
11
|
+
import { build, type Plugin } from "vite";
|
|
12
|
+
import { afterEach, beforeEach, describe, expect, it } from "vitest";
|
|
13
|
+
import { backendBoundary } from "../build/backend-boundary.ts";
|
|
14
|
+
|
|
15
|
+
let root: string;
|
|
16
|
+
|
|
17
|
+
function write(file: string, text: string): void {
|
|
18
|
+
const path = join(root, file);
|
|
19
|
+
mkdirSync(join(path, ".."), { recursive: true });
|
|
20
|
+
writeFileSync(path, text);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
function manifest(directory: string, name: string): void {
|
|
24
|
+
write(`${directory}/package.json`, JSON.stringify({ name }));
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
/** A frontend entry with `source` as its only import, built for real. */
|
|
28
|
+
async function buildEntry(source: string, extra: Plugin[] = []): Promise<void> {
|
|
29
|
+
write(
|
|
30
|
+
"frontend/entry.ts",
|
|
31
|
+
`import "${source}";\nexport const frontend = 1;\n`,
|
|
32
|
+
);
|
|
33
|
+
await build({
|
|
34
|
+
root: join(root, "frontend"),
|
|
35
|
+
configFile: false,
|
|
36
|
+
logLevel: "silent",
|
|
37
|
+
plugins: [backendBoundary(), ...extra],
|
|
38
|
+
build: {
|
|
39
|
+
write: false,
|
|
40
|
+
lib: { entry: join(root, "frontend/entry.ts"), formats: ["es"] },
|
|
41
|
+
},
|
|
42
|
+
});
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
beforeEach(() => {
|
|
46
|
+
root = realpathSync(mkdtempSync(join(tmpdir(), "dms-assistant-boundary-")));
|
|
47
|
+
manifest("backend", "@antelopejs/dms-assistant");
|
|
48
|
+
write("backend/src/routes/status.ts", "export const status = 1;\n");
|
|
49
|
+
write("backend/dist/index.js", "export const built = 1;\n");
|
|
50
|
+
write("backend/srcfoo/index.ts", "export const sibling = 1;\n");
|
|
51
|
+
manifest("other", "another-package");
|
|
52
|
+
write("other/src/index.ts", "export const other = 1;\n");
|
|
53
|
+
manifest("frontend", "@antelopejs/dms-assistant-frontend-vue");
|
|
54
|
+
});
|
|
55
|
+
|
|
56
|
+
afterEach(() => {
|
|
57
|
+
rmSync(root, { recursive: true, force: true });
|
|
58
|
+
});
|
|
59
|
+
|
|
60
|
+
describe("the backend boundary of a real build", () => {
|
|
61
|
+
it("fails when the frontend imports a file under the backend's src", async () => {
|
|
62
|
+
await expect(buildEntry("../backend/src/routes/status.ts")).rejects.toThrow(
|
|
63
|
+
/frontend\/entry\.ts imports .*backend\/src\/routes\/status\.ts/,
|
|
64
|
+
);
|
|
65
|
+
});
|
|
66
|
+
|
|
67
|
+
it("fails when the import carries a query", async () => {
|
|
68
|
+
await expect(
|
|
69
|
+
buildEntry("../backend/src/routes/status.ts?raw"),
|
|
70
|
+
).rejects.toThrow(/Backend boundary/);
|
|
71
|
+
});
|
|
72
|
+
|
|
73
|
+
it("follows a symlink a resolver returns to the file it points at", async () => {
|
|
74
|
+
symlinkSync(
|
|
75
|
+
join(root, "backend/src/routes"),
|
|
76
|
+
join(root, "frontend/routes"),
|
|
77
|
+
);
|
|
78
|
+
const linked: Plugin = {
|
|
79
|
+
name: "test:linked",
|
|
80
|
+
enforce: "pre",
|
|
81
|
+
resolveId: (source) =>
|
|
82
|
+
source === "@linked/status"
|
|
83
|
+
? join(root, "frontend/routes/status.ts")
|
|
84
|
+
: null,
|
|
85
|
+
};
|
|
86
|
+
await expect(buildEntry("@linked/status", [linked])).rejects.toThrow(
|
|
87
|
+
/backend\/src\/routes\/status\.ts/,
|
|
88
|
+
);
|
|
89
|
+
});
|
|
90
|
+
|
|
91
|
+
it("sees through an alias another plugin resolves", async () => {
|
|
92
|
+
const alias: Plugin = {
|
|
93
|
+
name: "test:alias",
|
|
94
|
+
enforce: "pre",
|
|
95
|
+
resolveId: (source) =>
|
|
96
|
+
source === "@backend/status"
|
|
97
|
+
? join(root, "backend/src/routes/status.ts")
|
|
98
|
+
: null,
|
|
99
|
+
};
|
|
100
|
+
await expect(buildEntry("@backend/status", [alias])).rejects.toThrow(
|
|
101
|
+
/Backend boundary/,
|
|
102
|
+
);
|
|
103
|
+
});
|
|
104
|
+
|
|
105
|
+
it("lets the backend's built output through", async () => {
|
|
106
|
+
await expect(
|
|
107
|
+
buildEntry("../backend/dist/index.js"),
|
|
108
|
+
).resolves.toBeUndefined();
|
|
109
|
+
});
|
|
110
|
+
|
|
111
|
+
it("lets a sibling directory whose name starts with src through", async () => {
|
|
112
|
+
await expect(
|
|
113
|
+
buildEntry("../backend/srcfoo/index.ts"),
|
|
114
|
+
).resolves.toBeUndefined();
|
|
115
|
+
});
|
|
116
|
+
|
|
117
|
+
it("lets the src of another package through", async () => {
|
|
118
|
+
await expect(buildEntry("../other/src/index.ts")).resolves.toBeUndefined();
|
|
119
|
+
});
|
|
120
|
+
|
|
121
|
+
it("ignores a virtual module", async () => {
|
|
122
|
+
const virtual: Plugin = {
|
|
123
|
+
name: "test:virtual",
|
|
124
|
+
enforce: "pre",
|
|
125
|
+
resolveId: (source) => (source === "virtual:ok" ? "\0virtual:ok" : null),
|
|
126
|
+
load: (id) => (id === "\0virtual:ok" ? "export const v = 1;" : null),
|
|
127
|
+
};
|
|
128
|
+
await expect(buildEntry("virtual:ok", [virtual])).resolves.toBeUndefined();
|
|
129
|
+
});
|
|
130
|
+
});
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { describe, expect, it } from "vitest";
|
|
2
|
+
import { createBackoff, nextDelay, resetBackoff } from "../app/runtime/backoff";
|
|
3
|
+
import { CHANNEL_RECONNECT_DELAYS_MS } from "../app/runtime/constants";
|
|
4
|
+
|
|
5
|
+
describe("backoff helper", () => {
|
|
6
|
+
it("returns each schedule entry in order then caps at the last value", () => {
|
|
7
|
+
const state = createBackoff();
|
|
8
|
+
const observed: number[] = [];
|
|
9
|
+
for (let i = 0; i < CHANNEL_RECONNECT_DELAYS_MS.length + 3; i += 1) {
|
|
10
|
+
observed.push(nextDelay(state, CHANNEL_RECONNECT_DELAYS_MS));
|
|
11
|
+
}
|
|
12
|
+
const expected = [
|
|
13
|
+
...CHANNEL_RECONNECT_DELAYS_MS,
|
|
14
|
+
CHANNEL_RECONNECT_DELAYS_MS[CHANNEL_RECONNECT_DELAYS_MS.length - 1],
|
|
15
|
+
CHANNEL_RECONNECT_DELAYS_MS[CHANNEL_RECONNECT_DELAYS_MS.length - 1],
|
|
16
|
+
CHANNEL_RECONNECT_DELAYS_MS[CHANNEL_RECONNECT_DELAYS_MS.length - 1],
|
|
17
|
+
];
|
|
18
|
+
expect(observed).toEqual(expected);
|
|
19
|
+
});
|
|
20
|
+
|
|
21
|
+
it("resetBackoff returns the schedule to schedule[0]", () => {
|
|
22
|
+
const state = createBackoff();
|
|
23
|
+
nextDelay(state, CHANNEL_RECONNECT_DELAYS_MS);
|
|
24
|
+
nextDelay(state, CHANNEL_RECONNECT_DELAYS_MS);
|
|
25
|
+
resetBackoff(state);
|
|
26
|
+
expect(nextDelay(state, CHANNEL_RECONNECT_DELAYS_MS)).toBe(
|
|
27
|
+
CHANNEL_RECONNECT_DELAYS_MS[0],
|
|
28
|
+
);
|
|
29
|
+
});
|
|
30
|
+
|
|
31
|
+
it("uses the configured 30s ceiling on the last delay", () => {
|
|
32
|
+
const state = createBackoff();
|
|
33
|
+
const lastIndex = CHANNEL_RECONNECT_DELAYS_MS.length - 1;
|
|
34
|
+
for (let i = 0; i < lastIndex; i += 1) {
|
|
35
|
+
nextDelay(state, CHANNEL_RECONNECT_DELAYS_MS);
|
|
36
|
+
}
|
|
37
|
+
expect(nextDelay(state, CHANNEL_RECONNECT_DELAYS_MS)).toBe(30_000);
|
|
38
|
+
expect(nextDelay(state, CHANNEL_RECONNECT_DELAYS_MS)).toBe(30_000);
|
|
39
|
+
});
|
|
40
|
+
});
|