@antelopejs/dms-assistant 0.1.0 → 0.2.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/README.md +4 -17
- package/dist/builder/config.d.ts +1 -0
- package/dist/builder/config.js +9 -0
- package/dist/builder/config.js.map +1 -1
- package/dist/builder/constants/routes.d.ts +1 -0
- package/dist/builder/constants/routes.js +1 -0
- package/dist/builder/constants/routes.js.map +1 -1
- package/dist/builder/index.js +2 -0
- package/dist/builder/index.js.map +1 -1
- package/dist/builder/reload.d.ts +2 -0
- package/dist/builder/reload.js +24 -0
- package/dist/builder/reload.js.map +1 -0
- package/dist/builder/routes/database.d.ts +3 -0
- package/dist/builder/routes/database.js +11 -0
- package/dist/builder/routes/database.js.map +1 -1
- package/dist/constants/i18n.d.ts +1 -1
- package/dist/constants/i18n.js +1 -1
- package/dist/constants/i18n.js.map +1 -1
- package/dist/constants/project-mcp.d.ts +0 -2
- package/dist/constants/project-mcp.js +1 -3
- package/dist/constants/project-mcp.js.map +1 -1
- package/dist/constants/sidecar.d.ts +6 -6
- package/dist/constants/sidecar.js +6 -6
- package/dist/constants/sidecar.js.map +1 -1
- package/dist/index.js +0 -2
- package/dist/index.js.map +1 -1
- package/dist/lifecycle/project-mcp-json.js +6 -37
- package/dist/lifecycle/project-mcp-json.js.map +1 -1
- package/dist/lifecycle/sidecar-unavailable-error.js +1 -1
- package/dist/lifecycle/sidecar-unavailable-error.js.map +1 -1
- package/dist/pages/activity/page.js +1 -1
- package/dist/pages/activity/page.js.map +1 -1
- package/dist/pages/changes/page.js +1 -1
- package/dist/pages/changes/page.js.map +1 -1
- package/dist/routes/activity.js +1 -1
- package/dist/routes/activity.js.map +1 -1
- package/dist/vocabulary/enumerations.js +0 -1
- package/dist/vocabulary/enumerations.js.map +1 -1
- package/dist/vocabulary/tools.js +1 -1
- package/dist/vocabulary/tools.js.map +1 -1
- package/frontend-vue/app/chat/components/AnswerRecord.vue +3 -3
- package/frontend-vue/app/chat/components/ApprovalDock.vue +15 -11
- package/frontend-vue/app/chat/components/BlockOutline.vue +10 -10
- package/frontend-vue/app/chat/components/BlockPreviewCard.vue +9 -7
- package/frontend-vue/app/chat/components/BlockPreviewModal.vue +15 -14
- package/frontend-vue/app/chat/components/BlockPreviewThumb.vue +1 -1
- package/frontend-vue/app/chat/components/BuildDialog.vue +16 -13
- package/frontend-vue/app/chat/components/ChangeSetCard.vue +15 -13
- package/frontend-vue/app/chat/components/ChatEmpty.vue +4 -4
- package/frontend-vue/app/chat/components/ChatView.vue +45 -101
- package/frontend-vue/app/chat/components/Composer.vue +42 -34
- package/frontend-vue/app/chat/components/ConnectionBanner.vue +6 -5
- package/frontend-vue/app/chat/components/ConversationDrawer.vue +33 -27
- package/frontend-vue/app/chat/components/DiffView.vue +1 -1
- package/frontend-vue/app/chat/components/FoldBar.vue +34 -28
- package/frontend-vue/app/chat/components/MessageList.vue +10 -10
- package/frontend-vue/app/chat/components/NoticeCard.vue +17 -17
- package/frontend-vue/app/chat/components/PanelHeader.vue +16 -15
- package/frontend-vue/app/chat/components/PermissionCard.vue +11 -11
- package/frontend-vue/app/chat/components/PlanCard.vue +5 -5
- package/frontend-vue/app/chat/components/ProviderNotice.vue +6 -4
- package/frontend-vue/app/chat/components/QuestionDock.vue +13 -10
- package/frontend-vue/app/chat/components/QueueDock.vue +17 -15
- package/frontend-vue/app/chat/components/RulesList.vue +9 -5
- package/frontend-vue/app/chat/components/StepsDock.vue +2 -2
- package/frontend-vue/app/chat/components/ToolCluster.vue +3 -3
- package/frontend-vue/app/chat/components/ToolRow.vue +4 -4
- package/frontend-vue/app/chat/components/TurnErrorCard.vue +5 -5
- package/frontend-vue/app/chat/components/UndoConflictModal.vue +4 -4
- package/frontend-vue/app/chat/components/chat-tokens.css +83 -0
- package/frontend-vue/app/chat/composables/useChatI18n.ts +2 -1
- package/frontend-vue/app/chat/composables/useComposerAttachments.ts +3 -3
- package/frontend-vue/app/chat/constants/conversation.ts +4 -4
- package/frontend-vue/app/chat/constants/protocol.ts +2 -1
- package/frontend-vue/app/chat/constants/run-status.ts +6 -6
- package/frontend-vue/app/chat/types/protocol.ts +0 -7
- package/frontend-vue/app/chat/utils/permission-view.ts +44 -36
- package/frontend-vue/app/chat/utils/status-label.ts +7 -5
- package/frontend-vue/app/chat/utils/suggestions.ts +9 -9
- package/frontend-vue/app/chat/utils/tool-lexicon.ts +4 -4
- package/frontend-vue/app/components/ActivityDetail.vue +15 -13
- package/frontend-vue/app/components/ChangesView.vue +20 -20
- package/frontend-vue/app/components/ChatPanel.vue +31 -31
- package/frontend-vue/app/components/LauncherIcon.vue +44 -38
- package/frontend-vue/app/components/Onboarding.vue +3 -3
- package/frontend-vue/app/components/OnboardingWidget.vue +8 -4
- package/frontend-vue/app/components/PaletteAnswer.vue +27 -23
- package/frontend-vue/app/onboarding/analysis-lead.ts +66 -0
- package/frontend-vue/app/onboarding/connect-database.ts +92 -21
- package/frontend-vue/app/onboarding/connect-memory.ts +204 -0
- package/frontend-vue/app/onboarding/controller.ts +44 -6
- package/frontend-vue/app/onboarding/install.ts +7 -2
- package/frontend-vue/app/onboarding/runtime.ts +4 -4
- package/frontend-vue/app/plugins/ai.client.ts +8 -8
- package/frontend-vue/app/plugins/side-panel.ts +1 -1
- package/frontend-vue/app/runtime/assistant-actions.ts +6 -4
- package/frontend-vue/app/runtime/assistant-commands.ts +31 -16
- package/frontend-vue/app/runtime/assistant-notifications.ts +17 -9
- package/frontend-vue/app/runtime/assistant-session.ts +1 -1
- package/frontend-vue/app/runtime/channel-client.ts +1 -1
- package/frontend-vue/app/runtime/constants.ts +11 -11
- package/frontend-vue/app/runtime/sidecar-status.ts +1 -1
- package/frontend-vue/app/views/ChangeSetPanel.vue +20 -20
- package/frontend-vue/app/views/DecisionLabel.vue +1 -1
- package/frontend-vue/app/views/DiffView.vue +6 -6
- package/frontend-vue/app/views/ResultPill.vue +4 -2
- package/frontend-vue/app/views/RowStepper.vue +3 -3
- package/frontend-vue/app/views/UnavailableState.vue +5 -5
- package/frontend-vue/app/views/composables/useAiData.ts +1 -1
- package/frontend-vue/app/views/composables/useChangeSetActions.ts +13 -5
- package/frontend-vue/app/views/composables/useViewFormat.ts +1 -1
- package/frontend-vue/app/views/constants.ts +0 -1
- package/frontend-vue/app/views/onboarding/OnboardingAi.vue +15 -15
- package/frontend-vue/app/views/onboarding/OnboardingAnalysis.vue +13 -13
- package/frontend-vue/app/views/onboarding/OnboardingClaude.vue +14 -14
- package/frontend-vue/app/views/onboarding/OnboardingCodex.vue +11 -11
- package/frontend-vue/app/views/onboarding/OnboardingConnected.vue +4 -4
- package/frontend-vue/app/views/onboarding/OnboardingContinue.vue +18 -18
- package/frontend-vue/app/views/onboarding/OnboardingDatabase.vue +37 -33
- package/frontend-vue/app/views/onboarding/OnboardingDontShow.vue +1 -1
- package/frontend-vue/app/views/onboarding/OnboardingPaths.vue +7 -7
- package/frontend-vue/app/views/onboarding/OnboardingReady.vue +5 -5
- package/frontend-vue/app/views/onboarding/OnboardingScratch.vue +9 -9
- package/frontend-vue/app/views/onboarding/OnboardingWelcome.vue +11 -11
- package/frontend-vue/app/views/onboarding/login-text.ts +6 -6
- package/frontend-vue/app/views/types.ts +0 -1
- package/frontend-vue/app/views/utils/moment.ts +2 -2
- package/frontend-vue/builder/app/runtime/api.ts +2 -0
- package/frontend-vue/builder/app/runtime/database-build.ts +23 -1
- package/frontend-vue/builder/app/runtime/database-connect.ts +5 -0
- package/frontend-vue/builder/tests/database-connect.test.ts +1 -1
- package/frontend-vue/dms.frontend.ts +2 -2
- package/frontend-vue/i18n/locales/builder-en-GB.json +1 -1
- package/frontend-vue/i18n/locales/builder-fr-FR.json +1 -1
- package/frontend-vue/i18n/locales/{dms-ai-pages-en-GB.json → dms-assistant-pages-en-GB.json} +2 -3
- package/frontend-vue/i18n/locales/{dms-ai-pages-fr-FR.json → dms-assistant-pages-fr-FR.json} +2 -3
- package/frontend-vue/i18n/locales/{dms-ai-panel-en-GB.json → dms-assistant-panel-en-GB.json} +1 -2
- package/frontend-vue/i18n/locales/{dms-ai-panel-fr-FR.json → dms-assistant-panel-fr-FR.json} +1 -2
- package/frontend-vue/i18n/locales/{dms-ai-views-en-GB.json → dms-assistant-views-en-GB.json} +2 -3
- package/frontend-vue/i18n/locales/{dms-ai-views-fr-FR.json → dms-assistant-views-fr-FR.json} +2 -3
- package/frontend-vue/package.json +2 -2
- package/frontend-vue/pnpm-lock.yaml +71 -21
- package/frontend-vue/tests/chat/block-target.test.ts +1 -1
- package/frontend-vue/tests/chat/build-view.test.ts +9 -5
- package/frontend-vue/tests/chat/chat-scroll.test.ts +1 -1
- package/frontend-vue/tests/chat/held-card.test.ts +2 -2
- package/frontend-vue/tests/chat/provider-notice.test.ts +1 -1
- package/frontend-vue/tests/chat/tool-lexicon.test.ts +16 -10
- package/frontend-vue/tests/chat-panel.test.ts +10 -10
- package/frontend-vue/tests/chat-transport.test.ts +1 -1
- package/frontend-vue/tests/launcher-icon.test.ts +1 -1
- package/frontend-vue/tests/launcher-label.test.ts +40 -0
- package/frontend-vue/tests/onboarding-connect-memory.test.ts +126 -0
- package/frontend-vue/tests/onboarding-controller-restart.test.ts +134 -0
- package/frontend-vue/tests/onboarding-controller.test.ts +58 -0
- package/frontend-vue/tests/onboarding-database-engines.test.ts +2 -2
- package/frontend-vue/tests/onboarding-database-new-url.test.ts +174 -0
- package/frontend-vue/tests/onboarding-database-reload.test.ts +229 -0
- package/frontend-vue/tests/onboarding-database-tabs.test.ts +184 -0
- package/frontend-vue/tests/onboarding-database.test.ts +13 -118
- package/frontend-vue/tests/palette-assistant.test.ts +8 -8
- package/frontend-vue/tests/panel-approvals.test.ts +1 -1
- package/frontend-vue/tests/panel-closed-conversation.test.ts +53 -0
- package/frontend-vue/tests/panel-mockup-prompt.test.ts +2 -2
- package/frontend-vue/tests/panel-modes.test.ts +1 -16
- package/frontend-vue/tests/panel-questions.test.ts +1 -1
- package/frontend-vue/tests/panel-states.test.ts +1 -1
- package/frontend-vue/tests/panel-tools.test.ts +2 -2
- package/frontend-vue/tests/sidecar-guest.test.ts +1 -1
- package/frontend-vue/tests/support/api-error-presenter.ts +4 -2
- package/frontend-vue/tests/support/database-connect.ts +129 -0
- package/frontend-vue/tests/support/i18n.ts +1 -1
- package/frontend-vue/tests/support/onboarding-host.ts +1 -0
- package/frontend-vue/tests/support/onboarding.ts +29 -1
- package/frontend-vue/tests/views/api-data-reads.test.ts +7 -3
- package/frontend-vue/tests/views/diff-view.test.ts +4 -2
- package/package.json +5 -8
- package/sidecar/dist/agent/permission-bus.d.ts +1 -0
- package/sidecar/dist/agent/permission-bus.js +1 -0
- package/sidecar/dist/agent/permission-bus.js.map +1 -1
- package/sidecar/dist/agent/question-bus.d.ts +1 -0
- package/sidecar/dist/agent/question-bus.js +3 -0
- package/sidecar/dist/agent/question-bus.js.map +1 -1
- package/sidecar/dist/audit/activity-query.js +0 -1
- package/sidecar/dist/audit/activity-query.js.map +1 -1
- package/sidecar/dist/audit/activity.js +11 -3
- package/sidecar/dist/audit/activity.js.map +1 -1
- package/sidecar/dist/constants/audit.d.ts +1 -1
- package/sidecar/dist/constants/audit.js +0 -1
- package/sidecar/dist/constants/audit.js.map +1 -1
- package/sidecar/dist/constants/chatgpt.d.ts +7 -7
- package/sidecar/dist/constants/chatgpt.js +6 -6
- package/sidecar/dist/constants/chatgpt.js.map +1 -1
- package/sidecar/dist/constants/checkpoints.d.ts +2 -2
- package/sidecar/dist/constants/checkpoints.js +2 -2
- package/sidecar/dist/constants/checkpoints.js.map +1 -1
- package/sidecar/dist/constants/codex.d.ts +9 -9
- package/sidecar/dist/constants/codex.js +8 -8
- package/sidecar/dist/constants/codex.js.map +1 -1
- package/sidecar/dist/constants/daemon.d.ts +2 -2
- package/sidecar/dist/constants/daemon.js +2 -2
- package/sidecar/dist/constants/daemon.js.map +1 -1
- package/sidecar/dist/constants/env.d.ts +1 -1
- package/sidecar/dist/constants/env.js +1 -1
- package/sidecar/dist/constants/env.js.map +1 -1
- package/sidecar/dist/constants/mcp.d.ts +4 -4
- package/sidecar/dist/constants/mcp.js +2 -2
- package/sidecar/dist/constants/mcp.js.map +1 -1
- package/sidecar/dist/constants/paths.d.ts +1 -1
- package/sidecar/dist/constants/paths.js +5 -1
- package/sidecar/dist/constants/paths.js.map +1 -1
- package/sidecar/dist/constants/preview.d.ts +2 -2
- package/sidecar/dist/constants/preview.js +2 -17
- package/sidecar/dist/constants/preview.js.map +1 -1
- package/sidecar/dist/constants/providers.d.ts +2 -2
- package/sidecar/dist/constants/providers.js +2 -2
- package/sidecar/dist/constants/providers.js.map +1 -1
- package/sidecar/dist/constants/settings.d.ts +1 -1
- package/sidecar/dist/constants/settings.js +1 -1
- package/sidecar/dist/constants/settings.js.map +1 -1
- package/sidecar/dist/constants/skills.d.ts +1 -1
- package/sidecar/dist/constants/skills.js +1 -1
- package/sidecar/dist/constants/skills.js.map +1 -1
- package/sidecar/dist/constants/state.d.ts +2 -1
- package/sidecar/dist/constants/state.js +2 -1
- package/sidecar/dist/constants/state.js.map +1 -1
- package/sidecar/dist/constants/tool-titles.d.ts +0 -40
- package/sidecar/dist/constants/tool-titles.js +0 -42
- package/sidecar/dist/constants/tool-titles.js.map +1 -1
- package/sidecar/dist/index.js +5 -6
- package/sidecar/dist/index.js.map +1 -1
- package/sidecar/dist/mcp/tools/preview-blocks.js +24 -19
- package/sidecar/dist/mcp/tools/preview-blocks.js.map +1 -1
- package/sidecar/dist/mcp/types.d.ts +1 -1
- package/sidecar/dist/prompts/agent.js +1 -1
- package/sidecar/dist/prompts/agent.js.map +1 -1
- package/sidecar/dist/protocol/events.d.ts +10 -28
- package/sidecar/dist/protocol/events.js +7 -5
- package/sidecar/dist/protocol/events.js.map +1 -1
- package/sidecar/dist/protocol/preview.js +1 -1
- package/sidecar/dist/protocol/preview.js.map +1 -1
- package/sidecar/dist/providers/codex/permission-profiles.d.ts +1 -1
- package/sidecar/dist/providers/codex/permission-profiles.js +1 -1
- package/sidecar/dist/providers/codex/permission-profiles.js.map +1 -1
- package/sidecar/dist/server/chat-socket-registry.d.ts +1 -0
- package/sidecar/dist/server/chat-socket-registry.js +14 -0
- package/sidecar/dist/server/chat-socket-registry.js.map +1 -1
- package/sidecar/dist/server/host-command-router.d.ts +9 -2
- package/sidecar/dist/server/host-command-router.js +5 -2
- package/sidecar/dist/server/host-command-router.js.map +1 -1
- package/sidecar/dist/server/host-page.d.ts +3 -0
- package/sidecar/dist/server/host-page.js +5 -0
- package/sidecar/dist/server/host-page.js.map +1 -0
- package/sidecar/dist/server/host-socket-registry.d.ts +1 -1
- package/sidecar/dist/server/host-socket-registry.js +6 -6
- package/sidecar/dist/server/host-socket-registry.js.map +1 -1
- package/sidecar/dist/server/routing.js +62 -20
- package/sidecar/dist/server/routing.js.map +1 -1
- package/sidecar/dist/server/turns.js +11 -3
- package/sidecar/dist/server/turns.js.map +1 -1
- package/sidecar/dist/server/ws.js +10 -2
- package/sidecar/dist/server/ws.js.map +1 -1
- package/sidecar/dist/skills/plugin-wrapper.js +1 -1
- package/sidecar/dist/skills/plugin-wrapper.js.map +1 -1
- package/sidecar/dist/state/conversations.d.ts +3 -1
- package/sidecar/dist/state/conversations.js +54 -3
- package/sidecar/dist/state/conversations.js.map +1 -1
- package/sidecar/dist/state/host-state.d.ts +2 -2
- package/sidecar/dist/state/host-state.js +6 -6
- package/sidecar/dist/state/host-state.js.map +1 -1
- package/sidecar/dist/state/settings-store.js +1 -14
- package/sidecar/dist/state/settings-store.js.map +1 -1
- package/sidecar/dist/state/store.d.ts +1 -0
- package/sidecar/dist/state/store.js +16 -9
- package/sidecar/dist/state/store.js.map +1 -1
- package/sidecar/dist/state/stored-schemas.js +0 -4
- package/sidecar/dist/state/stored-schemas.js.map +1 -1
- package/sidecar/dist/state/types.d.ts +2 -5
- package/sidecar/dist/state/types.js.map +1 -1
- package/sidecar/package.json +3 -2
- package/skills/{dms-ai → dms-assistant}/SKILL.md +6 -6
- package/skills/{dms-ai → dms-assistant}/cases.json +13 -13
- package/skills/{dms-ai-code-mode → dms-assistant-code-mode}/SKILL.md +7 -7
- package/skills/{dms-ai-code-mode → dms-assistant-code-mode}/cases.json +11 -11
- package/dist/lifecycle/builder-settings-move.d.ts +0 -1
- package/dist/lifecycle/builder-settings-move.js +0 -182
- package/dist/lifecycle/builder-settings-move.js.map +0 -1
- package/dist/lifecycle/builder-settings-plan.d.ts +0 -59
- package/dist/lifecycle/builder-settings-plan.js +0 -176
- package/dist/lifecycle/builder-settings-plan.js.map +0 -1
- package/dist/lifecycle/builder-settings-text.d.ts +0 -19
- package/dist/lifecycle/builder-settings-text.js +0 -82
- package/dist/lifecycle/builder-settings-text.js.map +0 -1
- package/dist/lifecycle/entry-verdict.d.ts +0 -15
- package/dist/lifecycle/entry-verdict.js +0 -30
- package/dist/lifecycle/entry-verdict.js.map +0 -1
- package/dist/lifecycle/environment-bindings.d.ts +0 -8
- package/dist/lifecycle/environment-bindings.js +0 -154
- package/dist/lifecycle/environment-bindings.js.map +0 -1
- package/dist/lifecycle/legacy-entries.d.ts +0 -8
- package/dist/lifecycle/legacy-entries.js +0 -126
- package/dist/lifecycle/legacy-entries.js.map +0 -1
- package/sidecar/dist/mcp/sketch-refusals.d.ts +0 -2
- package/sidecar/dist/mcp/sketch-refusals.js +0 -6
- package/sidecar/dist/mcp/sketch-refusals.js.map +0 -1
- package/sidecar/dist/state/legacy-tool-names.d.ts +0 -3
- package/sidecar/dist/state/legacy-tool-names.js +0 -34
- package/sidecar/dist/state/legacy-tool-names.js.map +0 -1
|
@@ -50,56 +50,59 @@ const TEXT_BY_PREVIEW: Record<PermissionPreview["type"], TextBuilder> = {
|
|
|
50
50
|
diff: (_req, preview: DiffPreview, t) => ({
|
|
51
51
|
title: t(
|
|
52
52
|
preview.isNewFile
|
|
53
|
-
? "
|
|
54
|
-
: "
|
|
53
|
+
? "dms_assistant.panel.approvals.create_file"
|
|
54
|
+
: "dms_assistant.panel.approvals.edit_file",
|
|
55
55
|
{ file: baseName(preview.relativePath || preview.path) },
|
|
56
56
|
),
|
|
57
57
|
sub: preview.relativePath || preview.path,
|
|
58
|
-
onceLabel: t("
|
|
59
|
-
allowLabel: t("
|
|
58
|
+
onceLabel: t("dms_assistant.panel.approvals.once_edit"),
|
|
59
|
+
allowLabel: t("dms_assistant.panel.approvals.allow_edit"),
|
|
60
60
|
why: "",
|
|
61
61
|
}),
|
|
62
62
|
command: (_req, preview: CommandPreview, t) => ({
|
|
63
|
-
title: t("
|
|
63
|
+
title: t("dms_assistant.panel.approvals.run", { command: preview.command }),
|
|
64
64
|
sub: commandSub(preview, t),
|
|
65
|
-
onceLabel: t("
|
|
66
|
-
allowLabel: t("
|
|
65
|
+
onceLabel: t("dms_assistant.panel.approvals.once_command"),
|
|
66
|
+
allowLabel: t("dms_assistant.panel.approvals.allow_command"),
|
|
67
67
|
why: "",
|
|
68
68
|
}),
|
|
69
69
|
destructive: (req, preview: DestructivePreview, t) => ({
|
|
70
70
|
title: destructiveTitle(req, preview, t),
|
|
71
|
-
sub: t(`
|
|
72
|
-
onceLabel: t("
|
|
73
|
-
allowLabel: t("
|
|
74
|
-
why: t(`
|
|
71
|
+
sub: t(`dms_assistant.panel.approvals.consequence_${preview.consequence}`),
|
|
72
|
+
onceLabel: t("dms_assistant.panel.approvals.once_time"),
|
|
73
|
+
allowLabel: t("dms_assistant.panel.approvals.confirm_delete"),
|
|
74
|
+
why: t(`dms_assistant.panel.approvals.why_${preview.consequence}`),
|
|
75
75
|
}),
|
|
76
76
|
web: (_req, preview: WebPreview, t) => ({
|
|
77
|
-
title: t("
|
|
77
|
+
title: t("dms_assistant.panel.approvals.fetch", { host: preview.host }),
|
|
78
78
|
sub: preview.url,
|
|
79
|
-
onceLabel: t("
|
|
80
|
-
allowLabel: t("
|
|
79
|
+
onceLabel: t("dms_assistant.panel.approvals.once_request"),
|
|
80
|
+
allowLabel: t("dms_assistant.panel.approvals.allow_request"),
|
|
81
81
|
why: "",
|
|
82
82
|
}),
|
|
83
83
|
generic: (req, _preview, t) => ({
|
|
84
84
|
title: verbAndTarget(req, t),
|
|
85
85
|
sub: "",
|
|
86
|
-
onceLabel: t("
|
|
87
|
-
allowLabel: t("
|
|
88
|
-
why:
|
|
86
|
+
onceLabel: t("dms_assistant.panel.approvals.once_time"),
|
|
87
|
+
allowLabel: t("dms_assistant.panel.approvals.allow"),
|
|
88
|
+
why:
|
|
89
|
+
req.kind === "builder"
|
|
90
|
+
? t("dms_assistant.panel.approvals.why_builder")
|
|
91
|
+
: "",
|
|
89
92
|
}),
|
|
90
93
|
held: (req, preview: HeldPreview, t) => ({
|
|
91
94
|
title: verbAndTarget(req, t),
|
|
92
95
|
sub: "",
|
|
93
|
-
onceLabel: t("
|
|
94
|
-
allowLabel: t("
|
|
96
|
+
onceLabel: t("dms_assistant.panel.approvals.once_time"),
|
|
97
|
+
allowLabel: t("dms_assistant.panel.approvals.allow"),
|
|
95
98
|
why: heldWhy(preview, t),
|
|
96
99
|
}),
|
|
97
100
|
held_tool: (req, _preview, t) => ({
|
|
98
101
|
title: verbAndTarget(req, t),
|
|
99
102
|
sub: "",
|
|
100
|
-
onceLabel: t("
|
|
101
|
-
allowLabel: t("
|
|
102
|
-
why: t("
|
|
103
|
+
onceLabel: t("dms_assistant.panel.approvals.once_time"),
|
|
104
|
+
allowLabel: t("dms_assistant.panel.approvals.allow"),
|
|
105
|
+
why: t("dms_assistant.panel.approvals.why_held_tool"),
|
|
103
106
|
}),
|
|
104
107
|
};
|
|
105
108
|
|
|
@@ -118,13 +121,13 @@ function pagesToRemove(details: unknown): string[] {
|
|
|
118
121
|
|
|
119
122
|
function heldWhy(preview: HeldPreview, t: Translate): string {
|
|
120
123
|
if (preview.operation === CONFIGURE_PROJECT_TOOL_NAME)
|
|
121
|
-
return t("
|
|
124
|
+
return t("dms_assistant.panel.approvals.why_held_configure");
|
|
122
125
|
const pages = pagesToRemove(preview.details);
|
|
123
126
|
if (preview.operation === MAP_RESOURCES_TOOL_NAME && pages.length > 0)
|
|
124
|
-
return t("
|
|
127
|
+
return t("dms_assistant.panel.approvals.why_held_map", {
|
|
125
128
|
pages: pages.join(", "),
|
|
126
129
|
});
|
|
127
|
-
return t("
|
|
130
|
+
return t("dms_assistant.panel.approvals.why_held");
|
|
128
131
|
}
|
|
129
132
|
|
|
130
133
|
/**
|
|
@@ -165,12 +168,17 @@ export function isStackedRow(row: NamedArgument): boolean {
|
|
|
165
168
|
|
|
166
169
|
/** "Delete the page {target}": the Builder's destructive operations by name. */
|
|
167
170
|
const DESTRUCTIVE_TITLE_KEYS: Record<string, string> = {
|
|
168
|
-
builder_delete_page: "
|
|
169
|
-
builder_delete_resource:
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
171
|
+
builder_delete_page: "dms_assistant.panel.approvals.destructive.delete_page",
|
|
172
|
+
builder_delete_resource:
|
|
173
|
+
"dms_assistant.panel.approvals.destructive.delete_table",
|
|
174
|
+
builder_remove_field:
|
|
175
|
+
"dms_assistant.panel.approvals.destructive.remove_field",
|
|
176
|
+
builder_delete_category:
|
|
177
|
+
"dms_assistant.panel.approvals.destructive.delete_category",
|
|
178
|
+
builder_remove_query:
|
|
179
|
+
"dms_assistant.panel.approvals.destructive.remove_query",
|
|
180
|
+
builder_map_resources:
|
|
181
|
+
"dms_assistant.panel.approvals.destructive.map_resources",
|
|
174
182
|
};
|
|
175
183
|
|
|
176
184
|
function destructiveTitle(
|
|
@@ -188,7 +196,7 @@ function destructiveTitle(
|
|
|
188
196
|
function commandSub(preview: CommandPreview, t: Translate): string {
|
|
189
197
|
const touches = (preview.touches ?? []).join(", ");
|
|
190
198
|
if (preview.effect === undefined) return touches || preview.cwd;
|
|
191
|
-
const effect = t(`
|
|
199
|
+
const effect = t(`dms_assistant.panel.approvals.effect_${preview.effect}`);
|
|
192
200
|
return touches === "" ? effect : `${effect} · ${touches}`;
|
|
193
201
|
}
|
|
194
202
|
|
|
@@ -202,10 +210,10 @@ export function permissionCardText(
|
|
|
202
210
|
}
|
|
203
211
|
|
|
204
212
|
const RULE_LABEL_KEYS: Record<RuleKind, string> = {
|
|
205
|
-
file: "
|
|
206
|
-
directory: "
|
|
207
|
-
command: "
|
|
208
|
-
domain: "
|
|
213
|
+
file: "dms_assistant.panel.approvals.rule_file",
|
|
214
|
+
directory: "dms_assistant.panel.approvals.rule_directory",
|
|
215
|
+
command: "dms_assistant.panel.approvals.rule_command",
|
|
216
|
+
domain: "dms_assistant.panel.approvals.rule_domain",
|
|
209
217
|
};
|
|
210
218
|
|
|
211
219
|
/** A scope as the card offers it: "Every edit under crm/customers/". */
|
|
@@ -21,17 +21,19 @@ const PART_SEPARATOR = " · ";
|
|
|
21
21
|
|
|
22
22
|
function stateLabel(facts: StatusFacts, t: Translate): string {
|
|
23
23
|
const labels: Record<StatusKind, () => string> = {
|
|
24
|
-
ready: () => t("
|
|
24
|
+
ready: () => t("dms_assistant.panel.status.ready"),
|
|
25
25
|
working: () =>
|
|
26
|
-
t("
|
|
26
|
+
t("dms_assistant.panel.status.working", {
|
|
27
|
+
time: formatClock(facts.elapsedMs),
|
|
28
|
+
}),
|
|
27
29
|
waiting: () =>
|
|
28
30
|
t(
|
|
29
|
-
"
|
|
31
|
+
"dms_assistant.panel.status.waiting",
|
|
30
32
|
{ count: facts.pendingCount },
|
|
31
33
|
facts.pendingCount,
|
|
32
34
|
),
|
|
33
|
-
connecting: () => t("
|
|
34
|
-
offline: () => t("
|
|
35
|
+
connecting: () => t("dms_assistant.panel.status.connecting"),
|
|
36
|
+
offline: () => t("dms_assistant.panel.status.offline"),
|
|
35
37
|
};
|
|
36
38
|
return labels[facts.kind]();
|
|
37
39
|
}
|
|
@@ -17,17 +17,17 @@ const MODULE_PAGE = /^\/modules\/[^/]+/;
|
|
|
17
17
|
const PAGE_SUGGESTIONS: readonly PageSuggestion[] = [
|
|
18
18
|
{
|
|
19
19
|
icon: "i-ph-squares-four",
|
|
20
|
-
textKey: "
|
|
20
|
+
textKey: "dms_assistant.panel.empty.suggest.add_chart",
|
|
21
21
|
isReadOnly: false,
|
|
22
22
|
},
|
|
23
23
|
{
|
|
24
24
|
icon: "i-ph-funnel",
|
|
25
|
-
textKey: "
|
|
25
|
+
textKey: "dms_assistant.panel.empty.suggest.add_filter",
|
|
26
26
|
isReadOnly: false,
|
|
27
27
|
},
|
|
28
28
|
{
|
|
29
29
|
icon: "i-ph-question",
|
|
30
|
-
textKey: "
|
|
30
|
+
textKey: "dms_assistant.panel.empty.suggest.explain",
|
|
31
31
|
isReadOnly: true,
|
|
32
32
|
},
|
|
33
33
|
];
|
|
@@ -35,17 +35,17 @@ const PAGE_SUGGESTIONS: readonly PageSuggestion[] = [
|
|
|
35
35
|
const HOME_SUGGESTIONS: readonly PageSuggestion[] = [
|
|
36
36
|
{
|
|
37
37
|
icon: "i-ph-folder-simple-plus",
|
|
38
|
-
textKey: "
|
|
38
|
+
textKey: "dms_assistant.panel.empty.suggest.create_page",
|
|
39
39
|
isReadOnly: false,
|
|
40
40
|
},
|
|
41
41
|
{
|
|
42
42
|
icon: "i-ph-table",
|
|
43
|
-
textKey: "
|
|
43
|
+
textKey: "dms_assistant.panel.empty.suggest.create_table",
|
|
44
44
|
isReadOnly: false,
|
|
45
45
|
},
|
|
46
46
|
{
|
|
47
47
|
icon: "i-ph-question",
|
|
48
|
-
textKey: "
|
|
48
|
+
textKey: "dms_assistant.panel.empty.suggest.explain_project",
|
|
49
49
|
isReadOnly: true,
|
|
50
50
|
},
|
|
51
51
|
];
|
|
@@ -53,17 +53,17 @@ const HOME_SUGGESTIONS: readonly PageSuggestion[] = [
|
|
|
53
53
|
const MODULE_SUGGESTIONS: readonly PageSuggestion[] = [
|
|
54
54
|
{
|
|
55
55
|
icon: "i-ph-squares-four",
|
|
56
|
-
textKey: "
|
|
56
|
+
textKey: "dms_assistant.panel.empty.suggest.add_block",
|
|
57
57
|
isReadOnly: false,
|
|
58
58
|
},
|
|
59
59
|
{
|
|
60
60
|
icon: "i-ph-pencil-simple-line",
|
|
61
|
-
textKey: "
|
|
61
|
+
textKey: "dms_assistant.panel.empty.suggest.rename",
|
|
62
62
|
isReadOnly: false,
|
|
63
63
|
},
|
|
64
64
|
{
|
|
65
65
|
icon: "i-ph-question",
|
|
66
|
-
textKey: "
|
|
66
|
+
textKey: "dms_assistant.panel.empty.suggest.explain",
|
|
67
67
|
isReadOnly: true,
|
|
68
68
|
},
|
|
69
69
|
];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* The chat's tool lexicon: every tool the agents call (Claude built-ins, the
|
|
3
|
-
* Codex items the sidecar maps onto them, dms-
|
|
3
|
+
* Codex items the sidecar maps onto them, dms-assistant's MCP tools and the
|
|
4
4
|
* Builder's) as a translated verb, an icon and a target read from its
|
|
5
5
|
* arguments, so a row reads "Add block · Top customers · TopListCard" rather
|
|
6
6
|
* than a tool name and a JSON blob.
|
|
@@ -19,7 +19,7 @@ const DEFAULT_ICON = "i-ph-wrench";
|
|
|
19
19
|
type TargetReader = (args: Record<string, unknown>) => string;
|
|
20
20
|
|
|
21
21
|
interface ToolLexiconEntry {
|
|
22
|
-
/** Key under `
|
|
22
|
+
/** Key under `dms_assistant.tools.*`. */
|
|
23
23
|
verb: string;
|
|
24
24
|
icon: string;
|
|
25
25
|
target: TargetReader;
|
|
@@ -107,7 +107,7 @@ const none: TargetReader = () => "";
|
|
|
107
107
|
const TOOL_QUERY_PREFIX = /^select:/;
|
|
108
108
|
const TOOL_LIST_SEPARATOR = ",";
|
|
109
109
|
|
|
110
|
-
/** "select:mcp__dms-
|
|
110
|
+
/** "select:mcp__dms-assistant__list_pages,…" → "list_pages, …". */
|
|
111
111
|
const toolQuery: TargetReader = (args) =>
|
|
112
112
|
readString(args, "query")
|
|
113
113
|
.replace(TOOL_QUERY_PREFIX, "")
|
|
@@ -585,7 +585,7 @@ export function toolVerb(
|
|
|
585
585
|
translate: (key: string) => string,
|
|
586
586
|
): string {
|
|
587
587
|
if (description.verbKey === null) return description.fallbackVerb;
|
|
588
|
-
return translate(`
|
|
588
|
+
return translate(`dms_assistant.tools.${description.verbKey}`);
|
|
589
589
|
}
|
|
590
590
|
|
|
591
591
|
/** One argument of a call, as the expanded row lists it. */
|
|
@@ -52,7 +52,7 @@ const row = computed(() => props.rowData);
|
|
|
52
52
|
const eyebrow = computed(() => {
|
|
53
53
|
const current = row.value;
|
|
54
54
|
if (!current) return "";
|
|
55
|
-
const source = t(`
|
|
55
|
+
const source = t(`dms_assistant.views.source.${toolSource(current.tool)}`);
|
|
56
56
|
return `${source} · ${moment(current.timestampMs, true)}`;
|
|
57
57
|
});
|
|
58
58
|
const heading = computed(() => {
|
|
@@ -63,8 +63,8 @@ const heading = computed(() => {
|
|
|
63
63
|
});
|
|
64
64
|
|
|
65
65
|
const facts = computed(() => [
|
|
66
|
-
{ id: "allowed", label: t("
|
|
67
|
-
{ id: "result", label: t("
|
|
66
|
+
{ id: "allowed", label: t("dms_assistant.views.activity.allowed") },
|
|
67
|
+
{ id: "result", label: t("dms_assistant.views.activity.result") },
|
|
68
68
|
]);
|
|
69
69
|
|
|
70
70
|
const args = computed(() => argumentItems(detail.data.value?.args));
|
|
@@ -129,7 +129,7 @@ function openConversation(): void {
|
|
|
129
129
|
v-else-if="!detail.data.value"
|
|
130
130
|
class="flex flex-col gap-3"
|
|
131
131
|
:aria-busy="true"
|
|
132
|
-
:aria-label="t('
|
|
132
|
+
:aria-label="t('dms_assistant.views.common.loading')"
|
|
133
133
|
>
|
|
134
134
|
<USkeleton class="h-3 w-24" />
|
|
135
135
|
<USkeleton class="h-24 w-full" />
|
|
@@ -137,14 +137,16 @@ function openConversation(): void {
|
|
|
137
137
|
</div>
|
|
138
138
|
<template v-else>
|
|
139
139
|
<section v-if="args.length > 0" class="flex flex-col gap-2">
|
|
140
|
-
<DmsEyebrowLabel :label="t('
|
|
140
|
+
<DmsEyebrowLabel :label="t('dms_assistant.views.activity.arguments')" />
|
|
141
141
|
<div class="border-default bg-(--dms-bg-field) rounded-md border px-3">
|
|
142
142
|
<DmsKeyValueList :items="args" dense />
|
|
143
143
|
</div>
|
|
144
144
|
</section>
|
|
145
145
|
|
|
146
146
|
<section v-if="trail.length > 0" class="flex flex-col gap-2">
|
|
147
|
-
<DmsEyebrowLabel
|
|
147
|
+
<DmsEyebrowLabel
|
|
148
|
+
:label="t('dms_assistant.views.activity.decision_trail')"
|
|
149
|
+
/>
|
|
148
150
|
<ol class="flex flex-col">
|
|
149
151
|
<li
|
|
150
152
|
v-for="(step, index) in trail"
|
|
@@ -160,12 +162,12 @@ function openConversation(): void {
|
|
|
160
162
|
</section>
|
|
161
163
|
|
|
162
164
|
<section v-if="diffFiles.length > 0" class="flex flex-col gap-2">
|
|
163
|
-
<DmsEyebrowLabel :label="t('
|
|
165
|
+
<DmsEyebrowLabel :label="t('dms_assistant.views.activity.diff')" />
|
|
164
166
|
<DiffView :files="diffFiles" />
|
|
165
167
|
</section>
|
|
166
168
|
|
|
167
169
|
<section v-if="output" class="flex flex-col gap-2">
|
|
168
|
-
<DmsEyebrowLabel :label="t('
|
|
170
|
+
<DmsEyebrowLabel :label="t('dms_assistant.views.activity.output')" />
|
|
169
171
|
<DmsCodeSnippet
|
|
170
172
|
:code="output"
|
|
171
173
|
language="text"
|
|
@@ -185,8 +187,8 @@ function openConversation(): void {
|
|
|
185
187
|
:label="
|
|
186
188
|
t(
|
|
187
189
|
isRawShown
|
|
188
|
-
? '
|
|
189
|
-
: '
|
|
190
|
+
? 'dms_assistant.views.activity.hide_raw'
|
|
191
|
+
: 'dms_assistant.views.activity.show_raw',
|
|
190
192
|
)
|
|
191
193
|
"
|
|
192
194
|
@click="isRawShown = !isRawShown"
|
|
@@ -209,7 +211,7 @@ function openConversation(): void {
|
|
|
209
211
|
icon="i-ph-chats-circle"
|
|
210
212
|
color="neutral"
|
|
211
213
|
variant="outline"
|
|
212
|
-
:label="t('
|
|
214
|
+
:label="t('dms_assistant.views.activity.open_conversation')"
|
|
213
215
|
@click="openConversation"
|
|
214
216
|
/>
|
|
215
217
|
<UButton
|
|
@@ -218,10 +220,10 @@ function openConversation(): void {
|
|
|
218
220
|
color="secondary"
|
|
219
221
|
:label="
|
|
220
222
|
row.changeSetNumber !== undefined
|
|
221
|
-
? t('
|
|
223
|
+
? t('dms_assistant.views.activity.view_change_set_number', {
|
|
222
224
|
number: row.changeSetNumber,
|
|
223
225
|
})
|
|
224
|
-
: t('
|
|
226
|
+
: t('dms_assistant.views.activity.view_change_set')
|
|
225
227
|
"
|
|
226
228
|
@click="viewChangeSet"
|
|
227
229
|
/>
|
|
@@ -55,7 +55,7 @@ function loadedCount(pages: ChangesPage[]): number {
|
|
|
55
55
|
// page loaded again.
|
|
56
56
|
const status = useAiData<AssistantStatus>(AI_ROUTES.status);
|
|
57
57
|
const list = useAiPagedData<ChangesPage, number>(
|
|
58
|
-
() => `dms-
|
|
58
|
+
() => `dms-assistant:changes:${scope.value}`,
|
|
59
59
|
({ $authFetch, cursor, signal }) =>
|
|
60
60
|
$authFetch<ChangesPage>(AI_ROUTES.changes, {
|
|
61
61
|
query: listQuery(cursor ?? 0),
|
|
@@ -83,9 +83,9 @@ const pickedId = ref<string | undefined>(selectedFromRoute());
|
|
|
83
83
|
const selectedId = computed(() => pickedId.value ?? changeSets.value[0]?.id);
|
|
84
84
|
|
|
85
85
|
const SCOPE_ITEMS = computed(() => [
|
|
86
|
-
{ value: "all", label: t("
|
|
87
|
-
{ value: "safe", label: t("
|
|
88
|
-
{ value: "vibe", label: t("
|
|
86
|
+
{ value: "all", label: t("dms_assistant.views.changes.filter_all") },
|
|
87
|
+
{ value: "safe", label: t("dms_assistant.views.changes.filter_safe") },
|
|
88
|
+
{ value: "vibe", label: t("dms_assistant.views.changes.filter_code") },
|
|
89
89
|
]);
|
|
90
90
|
|
|
91
91
|
function reload(): Promise<void> {
|
|
@@ -109,7 +109,7 @@ function select(id: string | number | undefined): void {
|
|
|
109
109
|
|
|
110
110
|
function sublabel(set: ChangeSetSummary): string {
|
|
111
111
|
if (set.state === "undone") {
|
|
112
|
-
const parts = [`#${set.number}`, t("
|
|
112
|
+
const parts = [`#${set.number}`, t("dms_assistant.views.changes.undone")];
|
|
113
113
|
if (set.stateChangedAtMs) parts.push(moment(set.stateChangedAtMs));
|
|
114
114
|
if (set.stateChangedBy) parts.push(set.stateChangedBy);
|
|
115
115
|
return parts.join(" · ");
|
|
@@ -118,9 +118,9 @@ function sublabel(set: ChangeSetSummary): string {
|
|
|
118
118
|
`#${set.number}`,
|
|
119
119
|
moment(set.createdAtMs),
|
|
120
120
|
`+${set.added} −${set.removed}`,
|
|
121
|
-
t(`
|
|
121
|
+
t(`dms_assistant.views.scope.${set.scope}`),
|
|
122
122
|
];
|
|
123
|
-
if (set.isAutoFix) parts.push(t("
|
|
123
|
+
if (set.isAutoFix) parts.push(t("dms_assistant.views.changes.auto_fix"));
|
|
124
124
|
return parts.join(" · ");
|
|
125
125
|
}
|
|
126
126
|
|
|
@@ -146,13 +146,13 @@ const isFirstLoad = computed(
|
|
|
146
146
|
);
|
|
147
147
|
const hasMore = computed(() => list.hasMore.value);
|
|
148
148
|
const listLabel = computed(() =>
|
|
149
|
-
t("
|
|
149
|
+
t("dms_assistant.views.changes.list_label", { count: total.value }),
|
|
150
150
|
);
|
|
151
151
|
const emptyActions = computed(() =>
|
|
152
152
|
assistant.isAvailable
|
|
153
153
|
? [
|
|
154
154
|
{
|
|
155
|
-
label: t("
|
|
155
|
+
label: t("dms_assistant.views.common.open_assistant"),
|
|
156
156
|
icon: "i-ph-sparkle",
|
|
157
157
|
color: "secondary" as const,
|
|
158
158
|
onClick: () => assistant.openPanel(),
|
|
@@ -170,22 +170,22 @@ const emptyActions = computed(() =>
|
|
|
170
170
|
icon="i-ph-magnifying-glass"
|
|
171
171
|
size="sm"
|
|
172
172
|
class="w-full sm:w-64"
|
|
173
|
-
:placeholder="t('
|
|
174
|
-
:aria-label="t('
|
|
173
|
+
:placeholder="t('dms_assistant.views.changes.search')"
|
|
174
|
+
:aria-label="t('dms_assistant.views.changes.search')"
|
|
175
175
|
/>
|
|
176
176
|
<DmsSegmentedControl
|
|
177
177
|
v-model="scope"
|
|
178
178
|
:items="SCOPE_ITEMS"
|
|
179
179
|
size="sm"
|
|
180
|
-
:aria-label="t('
|
|
180
|
+
:aria-label="t('dms_assistant.views.changes.filter_label')"
|
|
181
181
|
/>
|
|
182
182
|
</div>
|
|
183
183
|
|
|
184
184
|
<DmsCardPanel v-if="isCheckpointOff" :padded="false">
|
|
185
185
|
<DmsEmptyState
|
|
186
186
|
icon="i-ph-git-diff"
|
|
187
|
-
:title="t('
|
|
188
|
-
:description="t('
|
|
187
|
+
:title="t('dms_assistant.views.changes.off_title')"
|
|
188
|
+
:description="t('dms_assistant.views.changes.off_description')"
|
|
189
189
|
/>
|
|
190
190
|
</DmsCardPanel>
|
|
191
191
|
<DmsCardPanel
|
|
@@ -202,7 +202,7 @@ const emptyActions = computed(() =>
|
|
|
202
202
|
v-else-if="isFirstLoad"
|
|
203
203
|
class="grid grid-cols-1 items-start gap-5 lg:grid-cols-[380px_minmax(0,1fr)]"
|
|
204
204
|
:aria-busy="true"
|
|
205
|
-
:aria-label="t('
|
|
205
|
+
:aria-label="t('dms_assistant.views.common.loading')"
|
|
206
206
|
>
|
|
207
207
|
<DmsCardPanel class="flex flex-col gap-4">
|
|
208
208
|
<USkeleton v-for="index in 5" :key="index" class="h-10 w-full" />
|
|
@@ -215,16 +215,16 @@ const emptyActions = computed(() =>
|
|
|
215
215
|
<DmsCardPanel v-else-if="changeSets.length === 0" :padded="false">
|
|
216
216
|
<DmsEmptyState
|
|
217
217
|
icon="i-ph-git-diff"
|
|
218
|
-
:title="t('
|
|
219
|
-
:description="t('
|
|
218
|
+
:title="t('dms_assistant.views.changes.empty_title')"
|
|
219
|
+
:description="t('dms_assistant.views.changes.empty_description')"
|
|
220
220
|
:actions="emptyActions"
|
|
221
221
|
/>
|
|
222
222
|
</DmsCardPanel>
|
|
223
223
|
<DmsCardPanel v-else-if="items.length === 0" :padded="false">
|
|
224
224
|
<DmsEmptyState
|
|
225
225
|
variant="no-result"
|
|
226
|
-
:title="t('
|
|
227
|
-
:description="t('
|
|
226
|
+
:title="t('dms_assistant.views.changes.no_match_title')"
|
|
227
|
+
:description="t('dms_assistant.views.changes.no_match_description')"
|
|
228
228
|
/>
|
|
229
229
|
</DmsCardPanel>
|
|
230
230
|
<template v-else>
|
|
@@ -247,7 +247,7 @@ const emptyActions = computed(() =>
|
|
|
247
247
|
size="sm"
|
|
248
248
|
icon="i-ph-caret-down"
|
|
249
249
|
:loading="list.loadingMore.value"
|
|
250
|
-
:label="t('
|
|
250
|
+
:label="t('dms_assistant.views.common.load_more')"
|
|
251
251
|
@click="loadMore"
|
|
252
252
|
/>
|
|
253
253
|
</div>
|
|
@@ -56,11 +56,11 @@ onMounted(() => {
|
|
|
56
56
|
</script>
|
|
57
57
|
|
|
58
58
|
<template>
|
|
59
|
-
<div class="dms-
|
|
59
|
+
<div class="dms-assistant-panel">
|
|
60
60
|
<template v-if="isMounted">
|
|
61
61
|
<ChatView
|
|
62
62
|
v-if="session"
|
|
63
|
-
class="dms-
|
|
63
|
+
class="dms-assistant-panel-chat"
|
|
64
64
|
:transport="session.chat"
|
|
65
65
|
:intents="session.intents"
|
|
66
66
|
:page="session.currentPage.value"
|
|
@@ -71,7 +71,7 @@ onMounted(() => {
|
|
|
71
71
|
/>
|
|
72
72
|
<div
|
|
73
73
|
v-if="isUnavailable || isFirstConnect"
|
|
74
|
-
class="dms-
|
|
74
|
+
class="dms-assistant-panel-status"
|
|
75
75
|
role="status"
|
|
76
76
|
>
|
|
77
77
|
<UButton
|
|
@@ -81,32 +81,32 @@ onMounted(() => {
|
|
|
81
81
|
variant="ghost"
|
|
82
82
|
square
|
|
83
83
|
icon="i-ph-x"
|
|
84
|
-
class="dms-
|
|
85
|
-
:aria-label="t('
|
|
84
|
+
class="dms-assistant-panel-close"
|
|
85
|
+
:aria-label="t('dms_assistant.panel.header.close')"
|
|
86
86
|
@click="close"
|
|
87
87
|
/>
|
|
88
88
|
<template v-if="isUnavailable">
|
|
89
89
|
<DmsIconWell icon="i-ph-plugs" tone="error" size="lg" />
|
|
90
|
-
<b class="dms-
|
|
91
|
-
{{ t("
|
|
90
|
+
<b class="dms-assistant-panel-status-title">
|
|
91
|
+
{{ t("dms_assistant.panel.unavailable.title") }}
|
|
92
92
|
</b>
|
|
93
|
-
<span class="dms-
|
|
93
|
+
<span class="dms-assistant-panel-status-text">
|
|
94
94
|
{{
|
|
95
95
|
lastError
|
|
96
|
-
? t("
|
|
97
|
-
: t("
|
|
96
|
+
? t("dms_assistant.panel.unavailable.text_error")
|
|
97
|
+
: t("dms_assistant.panel.unavailable.text")
|
|
98
98
|
}}
|
|
99
99
|
</span>
|
|
100
|
-
<code v-if="lastError" class="dms-
|
|
100
|
+
<code v-if="lastError" class="dms-assistant-panel-error">
|
|
101
101
|
{{ lastError }}
|
|
102
102
|
</code>
|
|
103
|
-
<div class="dms-
|
|
103
|
+
<div class="dms-assistant-panel-actions">
|
|
104
104
|
<UButton
|
|
105
105
|
size="sm"
|
|
106
106
|
color="secondary"
|
|
107
107
|
icon="i-ph-arrows-clockwise"
|
|
108
108
|
:loading="isRestarting"
|
|
109
|
-
:label="t('
|
|
109
|
+
:label="t('dms_assistant.panel.unavailable.restart')"
|
|
110
110
|
@click="restart"
|
|
111
111
|
/>
|
|
112
112
|
<UButton
|
|
@@ -114,18 +114,18 @@ onMounted(() => {
|
|
|
114
114
|
color="neutral"
|
|
115
115
|
variant="outline"
|
|
116
116
|
icon="i-ph-gear-six"
|
|
117
|
-
:label="t('
|
|
117
|
+
:label="t('dms_assistant.panel.header.settings')"
|
|
118
118
|
@click="navigate(SETTINGS_PAGE_PATH)"
|
|
119
119
|
/>
|
|
120
120
|
</div>
|
|
121
|
-
<span class="dms-
|
|
122
|
-
{{ t("
|
|
121
|
+
<span class="dms-assistant-panel-note">
|
|
122
|
+
{{ t("dms_assistant.panel.unavailable.kept") }}
|
|
123
123
|
</span>
|
|
124
124
|
</template>
|
|
125
125
|
<template v-else>
|
|
126
|
-
<span class="dms-
|
|
127
|
-
<b class="dms-
|
|
128
|
-
{{ t("
|
|
126
|
+
<span class="dms-assistant-panel-spinner" />
|
|
127
|
+
<b class="dms-assistant-panel-status-title">
|
|
128
|
+
{{ t("dms_assistant.panel.connection.first_connect") }}
|
|
129
129
|
</b>
|
|
130
130
|
</template>
|
|
131
131
|
</div>
|
|
@@ -134,7 +134,7 @@ onMounted(() => {
|
|
|
134
134
|
</template>
|
|
135
135
|
|
|
136
136
|
<style scoped>
|
|
137
|
-
.dms-
|
|
137
|
+
.dms-assistant-panel {
|
|
138
138
|
position: relative;
|
|
139
139
|
display: flex;
|
|
140
140
|
min-width: 0;
|
|
@@ -142,12 +142,12 @@ onMounted(() => {
|
|
|
142
142
|
color: var(--ui-text);
|
|
143
143
|
}
|
|
144
144
|
|
|
145
|
-
.dms-
|
|
145
|
+
.dms-assistant-panel-chat {
|
|
146
146
|
flex: 1 1 auto;
|
|
147
147
|
min-width: 0;
|
|
148
148
|
}
|
|
149
149
|
|
|
150
|
-
.dms-
|
|
150
|
+
.dms-assistant-panel-status {
|
|
151
151
|
position: absolute;
|
|
152
152
|
inset: 0;
|
|
153
153
|
z-index: 2;
|
|
@@ -164,24 +164,24 @@ onMounted(() => {
|
|
|
164
164
|
background: var(--dms-bg-sidebar, var(--ui-bg));
|
|
165
165
|
}
|
|
166
166
|
|
|
167
|
-
.dms-
|
|
167
|
+
.dms-assistant-panel-status-title {
|
|
168
168
|
font-size: 15px;
|
|
169
169
|
font-weight: 600;
|
|
170
170
|
}
|
|
171
171
|
|
|
172
|
-
.dms-
|
|
172
|
+
.dms-assistant-panel-status-text {
|
|
173
173
|
color: var(--ui-text-muted);
|
|
174
174
|
}
|
|
175
175
|
|
|
176
176
|
/* Sits where the panel header's close button does: centred in a header
|
|
177
177
|
as tall as the DMS navbar (28px is the small square button height). */
|
|
178
|
-
.dms-
|
|
178
|
+
.dms-assistant-panel-close {
|
|
179
179
|
position: absolute;
|
|
180
180
|
top: calc((var(--ui-header-height) - 28px) / 2);
|
|
181
181
|
right: 8px;
|
|
182
182
|
}
|
|
183
183
|
|
|
184
|
-
.dms-
|
|
184
|
+
.dms-assistant-panel-error {
|
|
185
185
|
display: block;
|
|
186
186
|
max-width: 320px;
|
|
187
187
|
padding: 8px 10px;
|
|
@@ -194,28 +194,28 @@ onMounted(() => {
|
|
|
194
194
|
overflow-wrap: anywhere;
|
|
195
195
|
}
|
|
196
196
|
|
|
197
|
-
.dms-
|
|
197
|
+
.dms-assistant-panel-actions {
|
|
198
198
|
display: flex;
|
|
199
199
|
flex-wrap: wrap;
|
|
200
200
|
justify-content: center;
|
|
201
201
|
gap: 6px;
|
|
202
202
|
}
|
|
203
203
|
|
|
204
|
-
.dms-
|
|
204
|
+
.dms-assistant-panel-note {
|
|
205
205
|
font-size: 12px;
|
|
206
206
|
color: var(--ui-text-muted);
|
|
207
207
|
}
|
|
208
208
|
|
|
209
|
-
.dms-
|
|
209
|
+
.dms-assistant-panel-spinner {
|
|
210
210
|
width: 22px;
|
|
211
211
|
height: 22px;
|
|
212
212
|
border: 2px solid var(--dms-assistant-line);
|
|
213
213
|
border-top-color: var(--ui-secondary);
|
|
214
214
|
border-radius: 50%;
|
|
215
|
-
animation: dms-
|
|
215
|
+
animation: dms-assistant-spin 0.7s linear infinite;
|
|
216
216
|
}
|
|
217
217
|
|
|
218
|
-
@keyframes dms-
|
|
218
|
+
@keyframes dms-assistant-spin {
|
|
219
219
|
to {
|
|
220
220
|
transform: rotate(360deg);
|
|
221
221
|
}
|