refactor: 项目更名 WeKnora → Academy
Build & Publish (dsh-academy) / End-to-end inside dsh (latest, advisory) (push) Skipped
CLI / test (macos-latest / go 1.26) (push) Canceled after 0s
CLI / test (ubuntu-latest / go 1.26) (push) Canceled after 0s
CLI / test (windows-latest / go 1.26) (push) Canceled after 0s
Build and Push Docker Image / build-ui (push) Canceled after 0s
Build and Push Docker Image / build-docreader (push) Canceled after 0s
Build and Push Docker Image / build-sandbox (push) Canceled after 0s
Build and Push Docker Image / build-app (amd64, linux/amd64, ubuntu-latest) (push) Canceled after 0s
Build and Push Docker Image / build-app (arm64, linux/arm64, ubuntu-24.04-arm) (push) Canceled after 0s
Build and Push Docker Image / merge (push) Canceled after 0s
Frontend / Test, type-check, and build (push) Canceled after 0s
Frontend / Docker multi-stage image (push) Canceled after 0s
Build & Publish (mcp-server) / Test (Python 3.10) (push) Canceled after 0s
Build & Publish (mcp-server) / Test (Python 3.11) (push) Canceled after 0s
Build & Publish (mcp-server) / Test (Python 3.12) (push) Canceled after 0s
Build & Publish (mcp-server) / Test (Python 3.13) (push) Canceled after 0s
Build & Publish (mcp-server) / Build sdist + wheel (push) Canceled after 0s
Build & Publish (mcp-server) / Publish to PyPI (push) Canceled after 0s
Anydoc / anydoc parser engine (push) Canceled after 0s
App / Format, vet, test, and build (push) Canceled after 0s
DocReader / Python tests and Go client tests (push) Canceled after 0s
Build & Publish (dsh-academy) / Typecheck, test, pack (push) Canceled after 0s
Build & Publish (dsh-academy) / End-to-end inside dsh (pinned) (push) Canceled after 0s
Build & Publish (dsh-academy) / Publish to npm (push) Canceled after 0s
Go Lint Cache / warm lint cache (.) (push) Canceled after 0s
Go Lint Cache / warm lint cache (cli) (push) Canceled after 0s
Go Lint Cache / warm lint cache (client) (push) Canceled after 0s
Helm / chart (push) Canceled after 0s
Build & Publish (dsh-academy) / End-to-end inside dsh (latest, advisory) (push) Skipped
CLI / test (macos-latest / go 1.26) (push) Canceled after 0s
CLI / test (ubuntu-latest / go 1.26) (push) Canceled after 0s
CLI / test (windows-latest / go 1.26) (push) Canceled after 0s
Build and Push Docker Image / build-ui (push) Canceled after 0s
Build and Push Docker Image / build-docreader (push) Canceled after 0s
Build and Push Docker Image / build-sandbox (push) Canceled after 0s
Build and Push Docker Image / build-app (amd64, linux/amd64, ubuntu-latest) (push) Canceled after 0s
Build and Push Docker Image / build-app (arm64, linux/arm64, ubuntu-24.04-arm) (push) Canceled after 0s
Build and Push Docker Image / merge (push) Canceled after 0s
Frontend / Test, type-check, and build (push) Canceled after 0s
Frontend / Docker multi-stage image (push) Canceled after 0s
Build & Publish (mcp-server) / Test (Python 3.10) (push) Canceled after 0s
Build & Publish (mcp-server) / Test (Python 3.11) (push) Canceled after 0s
Build & Publish (mcp-server) / Test (Python 3.12) (push) Canceled after 0s
Build & Publish (mcp-server) / Test (Python 3.13) (push) Canceled after 0s
Build & Publish (mcp-server) / Build sdist + wheel (push) Canceled after 0s
Build & Publish (mcp-server) / Publish to PyPI (push) Canceled after 0s
Anydoc / anydoc parser engine (push) Canceled after 0s
App / Format, vet, test, and build (push) Canceled after 0s
DocReader / Python tests and Go client tests (push) Canceled after 0s
Build & Publish (dsh-academy) / Typecheck, test, pack (push) Canceled after 0s
Build & Publish (dsh-academy) / End-to-end inside dsh (pinned) (push) Canceled after 0s
Build & Publish (dsh-academy) / Publish to npm (push) Canceled after 0s
Go Lint Cache / warm lint cache (.) (push) Canceled after 0s
Go Lint Cache / warm lint cache (cli) (push) Canceled after 0s
Go Lint Cache / warm lint cache (client) (push) Canceled after 0s
Helm / chart (push) Canceled after 0s
- 全量替换代码/配置/文档中的项目名(保留上游 GitHub 链接、weixin 文档域名、Docker Hub 镜像名) - 重命名 32 个含项目名的文件/目录;Go module 路径改为 academy(含 client/cli 子模块) - docreader proto 描述符采用等长替换,保持序列化字节布局有效 - Dockerfile.app 构建网络修复: browserskill 离线产物通道、PyPI/apt 国内镜像 - 运行验证: go build ✓ docker compose up ✓ 健康检查 ✓
This commit is contained in:
1 parent
9097ee699d
commit
9058149576
3136 files changed
+18018
-18004
No files matched your search
@@ -491,12 +491,12 @@ const agentImageUploadEnabledEffective = computed(() =>
|
||||
drawerAgent.value?.config?.image_upload_enabled === true,
|
||||
)
|
||||
|
||||
const WEKNORA_BRAND_COLOR = '#07C05F'
|
||||
const ACADEMY_BRAND_COLOR = '#07C05F'
|
||||
|
||||
function getDefaultEmbedPrimaryColor(): string {
|
||||
if (typeof window === 'undefined') return WEKNORA_BRAND_COLOR
|
||||
if (typeof window === 'undefined') return ACADEMY_BRAND_COLOR
|
||||
const css = getComputedStyle(document.documentElement).getPropertyValue('--td-brand-color').trim()
|
||||
return css || WEKNORA_BRAND_COLOR
|
||||
return css || ACADEMY_BRAND_COLOR
|
||||
}
|
||||
|
||||
const defaultPrimaryColor = getDefaultEmbedPrimaryColor()
|
||||
|
||||
@@ -5,7 +5,7 @@ import { useChatAttachmentPreviewDrawer } from '@/composables/useChatAttachmentP
|
||||
|
||||
const drawer = useChatAttachmentPreviewDrawer()
|
||||
|
||||
const MAIN_DRAWER_WIDTH_KEY = 'weknora-chat-attachment-drawer-width'
|
||||
const MAIN_DRAWER_WIDTH_KEY = 'academy-chat-attachment-drawer-width'
|
||||
const MAIN_DRAWER_DEFAULT_WIDTH = 654
|
||||
const MAIN_DRAWER_MIN_WIDTH = 480
|
||||
|
||||
|
||||
@@ -220,7 +220,7 @@ const onViewportResize = () => {
|
||||
onMounted(() => window.addEventListener('resize', onViewportResize))
|
||||
onBeforeUnmount(() => window.removeEventListener('resize', onViewportResize))
|
||||
|
||||
const WIDTH_STORAGE_KEY = 'weknora.references-panel-widths'
|
||||
const WIDTH_STORAGE_KEY = 'academy.references-panel-widths'
|
||||
const preferredWidths = reactive<{ source?: number; list?: number }>({})
|
||||
let resizeStartWidth = 0
|
||||
onMounted(() => {
|
||||
|
||||
@@ -415,7 +415,7 @@ const openChunk = (item: FlatChunkItem) => {
|
||||
// listens for instead; this also avoids reloading the KB list on every click.
|
||||
if (currentKbId === item.file.kbId) {
|
||||
window.dispatchEvent(
|
||||
new CustomEvent('weknora:open-knowledge', {
|
||||
new CustomEvent('academy:open-knowledge', {
|
||||
detail: { kbId: item.file.kbId, knowledgeId: item.file.knowledgeId },
|
||||
}),
|
||||
)
|
||||
|
||||
@@ -42,7 +42,7 @@ export function buildCommands(ctx: CommandContext): CmdkCommand[] {
|
||||
id: 'open-assistant',
|
||||
label: t('commandPalette.quick.assistant', { name: assistantName(t) }),
|
||||
icon: 'compass',
|
||||
keywords: ['assistant', 'help', 'weknora', 'kora', '助手', '帮助', 'ассистент', useAssistantStore().displayName].filter(Boolean),
|
||||
keywords: ['assistant', 'help', 'academy', 'kora', '助手', '帮助', 'ассистент', useAssistantStore().displayName].filter(Boolean),
|
||||
run: () => {
|
||||
close()
|
||||
useAssistantStore().open()
|
||||
|
||||
@@ -87,7 +87,7 @@ const imageUploading = ref(false);
|
||||
// Attachment upload state
|
||||
const attachmentUploadRef = ref<InstanceType<typeof AttachmentUpload>>();
|
||||
const uploadedAttachments = ref<AttachmentFile[]>([]);
|
||||
const CHAT_FILE_DROP_EVENT = 'weknora:chat-file-drop';
|
||||
const CHAT_FILE_DROP_EVENT = 'academy:chat-file-drop';
|
||||
|
||||
const isImageFile = (file: File) => {
|
||||
if (file.type.startsWith('image/')) {
|
||||
@@ -972,7 +972,7 @@ const enabledAgents = computed(() =>
|
||||
// chat input got a 403, and (b) silently overwrote the tenant default
|
||||
// for everyone else. localStorage is per-user-per-browser, which is
|
||||
// what "remember my last pick" actually wants.
|
||||
const LAST_CHAT_MODEL_KEY = 'weknora_last_chat_model_id'
|
||||
const LAST_CHAT_MODEL_KEY = 'academy_last_chat_model_id'
|
||||
|
||||
const readLastChatModelID = (): string => {
|
||||
try {
|
||||
@@ -3374,7 +3374,7 @@ const getImgSrc = (url: string) => {
|
||||
}
|
||||
|
||||
.mention-chip--faq .mention-chip__icon-wrap {
|
||||
color: var(--weknora-faq-color, #0052d9);
|
||||
color: var(--academy-faq-color, #0052d9);
|
||||
}
|
||||
|
||||
.mention-chip--file {
|
||||
|
||||
@@ -796,7 +796,7 @@ const scrollToRow = (index: number) => {
|
||||
}
|
||||
|
||||
.mention-row.active .mention-row__icon.faq-icon {
|
||||
color: var(--weknora-faq-color, #0052d9);
|
||||
color: var(--academy-faq-color, #0052d9);
|
||||
}
|
||||
|
||||
.mention-row__name {
|
||||
@@ -950,7 +950,7 @@ const scrollToRow = (index: number) => {
|
||||
.mention-detail-content .detail-type-badge.faq {
|
||||
border-color: rgba(0, 82, 217, 0.16);
|
||||
background: rgba(0, 82, 217, 0.08);
|
||||
color: var(--weknora-faq-color, #0052d9);
|
||||
color: var(--academy-faq-color, #0052d9);
|
||||
}
|
||||
.mention-detail-content .detail-desc {
|
||||
margin: 0 0 8px;
|
||||
|
||||
@@ -3,12 +3,12 @@
|
||||
:description="getModalDescription()" :icon="modelTypeIcon" :confirm-loading="saving" :cancel-disabled="saving"
|
||||
:confirm-text="$t('model.editor.saveAndClose')"
|
||||
:close-on-overlay-click="!saving" :close-on-esc-keydown="!saving"
|
||||
:confirm-disabled="formData.provider === 'weknoracloud' && wkcCredentialState !== 'configured'"
|
||||
:confirm-disabled="formData.provider === 'academycloud' && wkcCredentialState !== 'configured'"
|
||||
@update:visible="(v: boolean) => dialogVisible = v" @confirm="handleConfirm" @cancel="handleCancel">
|
||||
|
||||
<template v-if="formData.source === 'remote'" #footer-left>
|
||||
<t-button variant="outline" @click="checkRemoteAPI" :loading="checking"
|
||||
:disabled="saving || !formData.modelName || (!formData.baseUrl && formData.provider !== 'weknoracloud') || (formData.provider === 'weknoracloud' && wkcCredentialState !== 'configured')">
|
||||
:disabled="saving || !formData.modelName || (!formData.baseUrl && formData.provider !== 'academycloud') || (formData.provider === 'academycloud' && wkcCredentialState !== 'configured')">
|
||||
<template #icon>
|
||||
<t-icon v-if="!checking && remoteChecked && remoteAvailable" name="check-circle-filled"
|
||||
class="status-icon available" />
|
||||
@@ -208,45 +208,45 @@
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<!-- WeKnoraCloud 提示信息 -->
|
||||
<template v-if="formData.provider === 'weknoracloud'">
|
||||
<!-- AcademyCloud 提示信息 -->
|
||||
<template v-if="formData.provider === 'academycloud'">
|
||||
<!-- 凭证已配置 -->
|
||||
<div v-if="wkcCredentialState === 'configured'" class="weknoracloud-hint weknoracloud-hint--ok">
|
||||
<div v-if="wkcCredentialState === 'configured'" class="academycloud-hint academycloud-hint--ok">
|
||||
<t-icon name="check-circle-filled" class="hint-icon hint-icon--ok" />
|
||||
<div>
|
||||
{{ $t('settings.weknoraCloud.modelHintConfigured') }}
|
||||
{{ $t('settings.academyCloud.modelHintConfigured') }}
|
||||
<a href="https://developers.weixin.qq.com/doc/aispeech/knowledge/atomic_capability/atomic_interface.html"
|
||||
target="_blank" rel="noopener noreferrer" class="doc-link">
|
||||
{{ $t('settings.weknoraCloud.modelHintDocsLink') }}
|
||||
{{ $t('settings.academyCloud.modelHintDocsLink') }}
|
||||
<t-icon name="link" class="link-icon" />
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- 未配置 / 失效 -->
|
||||
<div v-else-if="wkcCredentialState !== 'loading'" class="weknoracloud-hint weknoracloud-hint--warn">
|
||||
<div v-else-if="wkcCredentialState !== 'loading'" class="academycloud-hint academycloud-hint--warn">
|
||||
<t-icon name="error-circle-filled" class="hint-icon hint-icon--warn" />
|
||||
<div style="flex: 1;">
|
||||
<template v-if="wkcCredentialState === 'expired'">
|
||||
{{ $t('settings.weknoraCloud.credentialExpired') }}
|
||||
{{ $t('settings.academyCloud.credentialExpired') }}
|
||||
</template>
|
||||
<template v-else>
|
||||
{{ $t('settings.weknoraCloud.credentialUnconfigured') }}
|
||||
{{ $t('settings.academyCloud.credentialUnconfigured') }}
|
||||
</template>
|
||||
<div style="margin-top: 8px;">
|
||||
<t-button variant="text" size="small" @click="goToWeKnoraCloudSettings"
|
||||
<t-button variant="text" size="small" @click="goToAcademyCloudSettings"
|
||||
style="padding: 0; height: auto;">
|
||||
<template #icon><t-icon name="jump" /></template>
|
||||
{{ $t('settings.weknoraCloud.goToSettings') }}
|
||||
{{ $t('settings.academyCloud.goToSettings') }}
|
||||
</t-button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- 加载中 -->
|
||||
<div v-else class="weknoracloud-hint">
|
||||
<div v-else class="academycloud-hint">
|
||||
<t-icon name="loading" class="spinning hint-icon hint-icon--loading" />
|
||||
<span>{{ $t('settings.weknoraCloud.checkingStatus') }}</span>
|
||||
<span>{{ $t('settings.academyCloud.checkingStatus') }}</span>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
@@ -266,7 +266,7 @@
|
||||
v-if="catalogModelOptions.length === 0"
|
||||
v-model="formData.modelName"
|
||||
:placeholder="getModelNamePlaceholder()"
|
||||
:disabled="formData.provider === 'weknoracloud' && wkcCredentialState !== 'configured'"
|
||||
:disabled="formData.provider === 'academycloud' && wkcCredentialState !== 'configured'"
|
||||
clearable
|
||||
autocomplete="off"
|
||||
spellcheck="false"
|
||||
@@ -278,7 +278,7 @@
|
||||
creatable
|
||||
clearable
|
||||
:placeholder="getModelNamePlaceholder()"
|
||||
:disabled="formData.provider === 'weknoracloud' && wkcCredentialState !== 'configured'"
|
||||
:disabled="formData.provider === 'academycloud' && wkcCredentialState !== 'configured'"
|
||||
:popup-props="{ overlayClassName: 'wk-popover catalog-model-select-popup', overlayInnerStyle: matchTriggerWidth }"
|
||||
@create="handleCatalogModelCreate"
|
||||
@change="handleCatalogModelChange"
|
||||
@@ -306,12 +306,12 @@
|
||||
<p class="form-desc">{{ $t('model.editor.displayNameDesc') }}</p>
|
||||
</div>
|
||||
|
||||
<div v-if="formData.provider !== 'weknoracloud'" class="form-item">
|
||||
<div v-if="formData.provider !== 'academycloud'" class="form-item">
|
||||
<label class="form-label required">{{ $t('model.editor.baseUrlLabel') }}</label>
|
||||
<t-input v-model="formData.baseUrl" :placeholder="getBaseUrlPlaceholder()" />
|
||||
</div>
|
||||
|
||||
<div v-if="formData.provider !== 'weknoracloud'" class="form-item">
|
||||
<div v-if="formData.provider !== 'academycloud'" class="form-item">
|
||||
<label class="form-label" :class="{ required: apiKeyRequired }">{{ apiKeyLabel }}</label>
|
||||
<!--
|
||||
Edit mode: credentials live behind the /credentials subresource
|
||||
@@ -338,7 +338,7 @@
|
||||
厂商声明的 secret 额外字段(LKEAP / 火山引擎 Rerank 的 SecretKey 等):
|
||||
创建模式写入 app_secret;编辑模式由上面的 CredentialResource 卡片管理。
|
||||
-->
|
||||
<div v-if="secretExtraField && !isEdit && formData.provider !== 'weknoracloud'" class="form-item">
|
||||
<div v-if="secretExtraField && !isEdit && formData.provider !== 'academycloud'" class="form-item">
|
||||
<label class="form-label" :class="{ required: secretExtraField.required }">{{ extraFieldDisplayLabel(secretExtraField) }}</label>
|
||||
<t-input v-model="formData.appSecret" type="password"
|
||||
:placeholder="secretExtraField.placeholder || ''" autocomplete="new-password" spellcheck="false">
|
||||
@@ -375,7 +375,7 @@
|
||||
</div>
|
||||
|
||||
<!-- 自定义 HTTP Header(类似 OpenAI Python SDK 的 extra_headers) -->
|
||||
<div v-if="formData.provider !== 'weknoracloud'" class="form-item">
|
||||
<div v-if="formData.provider !== 'academycloud'" class="form-item">
|
||||
<div class="custom-headers-header">
|
||||
<label class="form-label" style="margin-bottom: 0;">{{ $t('model.editor.customHeadersLabel') }}</label>
|
||||
<t-button variant="text" size="small" theme="primary" @click="addCustomHeader">
|
||||
@@ -546,7 +546,7 @@
|
||||
高级:协议覆盖 / 远端模型名 / 目录 compat 覆盖,以及仅旧数据才显示的
|
||||
thinking_control 兼容选择。默认折叠,绝大多数用户无需触碰。
|
||||
-->
|
||||
<template v-if="formData.source === 'remote' && formData.provider !== 'weknoracloud'">
|
||||
<template v-if="formData.source === 'remote' && formData.provider !== 'academycloud'">
|
||||
<button type="button" class="advanced-toggle" :aria-expanded="advancedOpen" @click="advancedOpen = !advancedOpen">
|
||||
<t-icon name="chevron-right" class="toggle-arrow" :class="{ open: advancedOpen }" />
|
||||
<span>{{ $t('model.editor.advanced.toggle') }}</span>
|
||||
@@ -620,7 +620,7 @@ import {
|
||||
type ResolvedModelCatalog,
|
||||
} from '@/api/initialization'
|
||||
import {
|
||||
getWeKnoraCloudStatus,
|
||||
getAcademyCloudStatus,
|
||||
putModelCredentials,
|
||||
deleteModelCredentialField,
|
||||
type ModelCredentialField,
|
||||
@@ -649,7 +649,7 @@ import CredentialResource, {
|
||||
type CredentialResourceApi,
|
||||
} from '@/components/credentials/CredentialResource.vue'
|
||||
import { shouldShowOllamaUnavailableTip } from '@/components/modelEditorSourceState'
|
||||
import { WEKNORA_CLOUD_PROVIDER, WKC_MODEL_KINDS, WKC_MODEL_NAME_BY_KIND } from '@/utils/weknoraCloudModels'
|
||||
import { ACADEMY_CLOUD_PROVIDER, WKC_MODEL_KINDS, WKC_MODEL_NAME_BY_KIND } from '@/utils/academyCloudModels'
|
||||
import { docsUrl } from '@/utils/docsUrl'
|
||||
|
||||
interface CustomHeaderItem {
|
||||
@@ -901,7 +901,7 @@ const catalogEntries = computed<ModelCatalogEntry[]>(() => {
|
||||
// Managed aliases are already used by the cloud setup page. They have no
|
||||
// published limits, so the backend catalog is empty, but they can still be
|
||||
// offered by name without inventing context windows or embedding dimensions.
|
||||
if (formData.value.provider === WEKNORA_CLOUD_PROVIDER && entries.length === 0) {
|
||||
if (formData.value.provider === ACADEMY_CLOUD_PROVIDER && entries.length === 0) {
|
||||
const kind = WKC_MODEL_KINDS.find(kind => kind === activeModelType.value)
|
||||
if (kind) {
|
||||
const name = WKC_MODEL_NAME_BY_KIND[kind]
|
||||
@@ -1044,7 +1044,7 @@ const showResolvedPanel = computed(() =>
|
||||
isChatLike.value
|
||||
&& formData.value.source === 'remote'
|
||||
&& !!formData.value.provider
|
||||
&& formData.value.provider !== 'weknoracloud',
|
||||
&& formData.value.provider !== 'academycloud',
|
||||
)
|
||||
|
||||
const resolvedThinkingLevels = computed(() => supportedLevels(resolved.value?.capabilities))
|
||||
@@ -1171,7 +1171,7 @@ const credentialFields = computed<CredentialFieldDef<ModelCredentialField>[]>(()
|
||||
const fields: CredentialFieldDef<ModelCredentialField>[] = [
|
||||
{ key: 'api_key', label: t('model.editor.apiKeyOptional') as string },
|
||||
]
|
||||
if (formData.value.provider === 'weknoracloud') {
|
||||
if (formData.value.provider === 'academycloud') {
|
||||
fields.push({ key: 'app_secret', label: 'App Secret' })
|
||||
} else if (secretExtraField.value) {
|
||||
fields.push({ key: 'app_secret', label: extraFieldDisplayLabel(secretExtraField.value) })
|
||||
@@ -1277,13 +1277,13 @@ let downloadInterval: any = null
|
||||
const ollamaServiceStatus = ref<boolean | null>(null)
|
||||
const checkingOllamaStatus = ref(false)
|
||||
|
||||
// WeKnoraCloud 凭证状态
|
||||
// AcademyCloud 凭证状态
|
||||
const wkcCredentialState = ref<'loading' | 'unconfigured' | 'configured' | 'expired'>('loading')
|
||||
|
||||
const checkWkcCredentialStatus = async () => {
|
||||
wkcCredentialState.value = 'loading'
|
||||
try {
|
||||
const status = await getWeKnoraCloudStatus()
|
||||
const status = await getAcademyCloudStatus()
|
||||
if (status.needs_reinit) {
|
||||
wkcCredentialState.value = 'expired'
|
||||
} else if (status.has_models) {
|
||||
@@ -1296,13 +1296,13 @@ const checkWkcCredentialStatus = async () => {
|
||||
}
|
||||
}
|
||||
|
||||
const goToWeKnoraCloudSettings = async () => {
|
||||
const goToAcademyCloudSettings = async () => {
|
||||
emit('update:visible', false)
|
||||
if (uiStore.showSettingsModal) {
|
||||
uiStore.closeSettings()
|
||||
await nextTick()
|
||||
}
|
||||
uiStore.openSettings('weknoracloud')
|
||||
uiStore.openSettings('academycloud')
|
||||
}
|
||||
|
||||
const formData = ref<ModelFormData>({
|
||||
@@ -1540,8 +1540,8 @@ const initializeVisibleForm = (val: boolean) => {
|
||||
formData.value.source = 'remote'
|
||||
}
|
||||
|
||||
// 如果当前 provider 是 WeKnoraCloud,检查凭证状态
|
||||
if (formData.value.provider === 'weknoracloud') {
|
||||
// 如果当前 provider 是 AcademyCloud,检查凭证状态
|
||||
if (formData.value.provider === 'academycloud') {
|
||||
checkWkcCredentialStatus()
|
||||
}
|
||||
} finally {
|
||||
@@ -1691,8 +1691,8 @@ const handleProviderChange = (value: string) => {
|
||||
remoteChecked.value = false
|
||||
remoteAvailable.value = false
|
||||
remoteMessage.value = ''
|
||||
// WeKnoraCloud: 检查凭证状态
|
||||
if (value === 'weknoracloud') {
|
||||
// AcademyCloud: 检查凭证状态
|
||||
if (value === 'academycloud') {
|
||||
checkWkcCredentialStatus()
|
||||
}
|
||||
if (hydratingForm.value) return
|
||||
@@ -1867,7 +1867,7 @@ const buildExtraConfig = (): Record<string, string> => {
|
||||
// 检查 Remote API 连接(根据模型类型调用不同的接口)
|
||||
const checkRemoteAPI = async () => {
|
||||
if (checking.value || saving.value) return
|
||||
if (!formData.value.modelName || (!formData.value.baseUrl && formData.value.provider !== 'weknoracloud')) {
|
||||
if (!formData.value.modelName || (!formData.value.baseUrl && formData.value.provider !== 'academycloud')) {
|
||||
MessagePlugin.warning(t('model.editor.fillModelAndUrl'))
|
||||
return
|
||||
}
|
||||
@@ -2025,8 +2025,8 @@ const handleConfirm = async () => {
|
||||
return
|
||||
}
|
||||
|
||||
// 如果是 remote 类型且非 WeKnoraCloud,必须填写 baseUrl
|
||||
if (formData.value.source === 'remote' && formData.value.provider !== 'weknoracloud') {
|
||||
// 如果是 remote 类型且非 AcademyCloud,必须填写 baseUrl
|
||||
if (formData.value.source === 'remote' && formData.value.provider !== 'academycloud') {
|
||||
if (!formData.value.baseUrl || !formData.value.baseUrl.trim()) {
|
||||
MessagePlugin.warning(t('model.editor.remoteBaseUrlRequired'))
|
||||
return
|
||||
@@ -2041,7 +2041,7 @@ const handleConfirm = async () => {
|
||||
}
|
||||
}
|
||||
|
||||
if (formData.value.source === 'remote' && formData.value.provider !== 'weknoracloud') {
|
||||
if (formData.value.source === 'remote' && formData.value.provider !== 'academycloud') {
|
||||
// 厂商声明的必填额外字段
|
||||
for (const field of plainExtraFields.value) {
|
||||
if (field.required && !(formData.value.extraConfig?.[field.key] || '').trim()) {
|
||||
@@ -2490,8 +2490,8 @@ const handleCancel = () => {
|
||||
}
|
||||
}
|
||||
|
||||
// WeKnoraCloud 提示信息
|
||||
.weknoracloud-hint {
|
||||
// AcademyCloud 提示信息
|
||||
.academycloud-hint {
|
||||
display: flex;
|
||||
align-items: flex-start;
|
||||
gap: 10px;
|
||||
|
||||
@@ -25,7 +25,7 @@ test('desktop templates have a sibling create offer like CLI, and listing does n
|
||||
assert.ok(template.includes('canCreateStandard'), 'CLI create offer remains a fallback if ensure failed')
|
||||
assert.ok(template.includes('canCreateDesktop'), 'desktop create offer is opt-in; XFCE images are much heavier')
|
||||
assert.ok(template.includes('createDesktopTemplate'), 'admin must click create to start the desktop Hub build')
|
||||
assert.ok(template.includes('weknoraDesktopTemplate'), 'the offer row names the desktop image')
|
||||
assert.ok(template.includes('academyDesktopTemplate'), 'the offer row names the desktop image')
|
||||
assert.ok(
|
||||
template.includes('item.desktop'),
|
||||
'listed cards still mark the desktop image so picking one can set desktop_enabled',
|
||||
|
||||
@@ -214,14 +214,14 @@
|
||||
|
||||
<section v-if="currentStepKey === 'connection' && !isRemoteBackend" class="setting-drawer__section">
|
||||
<h4 class="setting-drawer__section-title">{{ $t('settings.sandbox.sectionRuntimeEnvironment') }}</h4>
|
||||
<div class="weknora-template-card is-active">
|
||||
<div class="academy-template-card is-active">
|
||||
<SandboxBackendBadge type="docker" />
|
||||
<div class="weknora-template-card__content">
|
||||
<div class="weknora-template-card__title-row">
|
||||
<span class="weknora-template-card__title">{{ $t('settings.sandbox.weknoraDockerImage') }}</span>
|
||||
<div class="academy-template-card__content">
|
||||
<div class="academy-template-card__title-row">
|
||||
<span class="academy-template-card__title">{{ $t('settings.sandbox.academyDockerImage') }}</span>
|
||||
<t-tag theme="primary" variant="light" size="small">{{ $t('settings.sandbox.recommendedTag') }}</t-tag>
|
||||
</div>
|
||||
<p>{{ $t('settings.sandbox.weknoraDockerImageHint') }}</p>
|
||||
<p>{{ $t('settings.sandbox.academyDockerImageHint') }}</p>
|
||||
</div>
|
||||
</div>
|
||||
<t-form-item :label="requiredLabel('dockerImage')" :status="fieldStatus('image')"
|
||||
@@ -240,7 +240,7 @@
|
||||
</t-form-item>
|
||||
<t-form-item :label="$t('settings.sandbox.dockerTlsCertPath')"
|
||||
:help="$t('settings.sandbox.dockerTlsCertPathHelp')">
|
||||
<t-input v-model="docker.tls_cert_path" placeholder="/etc/weknora/docker-certs"
|
||||
<t-input v-model="docker.tls_cert_path" placeholder="/etc/academy/docker-certs"
|
||||
:disabled="retargetFrozen" @input="onFieldInput('tls_cert_path')" />
|
||||
</t-form-item>
|
||||
<t-alert theme="warning" class="compact-alert" :message="$t('settings.sandbox.dockerHostRisk')" />
|
||||
@@ -277,7 +277,7 @@
|
||||
<div v-if="canCreateStandard" class="template-row template-row--offer">
|
||||
<div class="template-row__main">
|
||||
<div class="template-row__head">
|
||||
<span class="template-row__title">{{ $t('settings.sandbox.weknoraStandardTemplate') }}</span>
|
||||
<span class="template-row__title">{{ $t('settings.sandbox.academyStandardTemplate') }}</span>
|
||||
<t-tag theme="primary" variant="outline" size="small">
|
||||
{{ $t('settings.sandbox.recommendedTag') }}
|
||||
</t-tag>
|
||||
@@ -293,7 +293,7 @@
|
||||
<div v-if="canCreateDesktop" class="template-row template-row--offer">
|
||||
<div class="template-row__main">
|
||||
<div class="template-row__head">
|
||||
<span class="template-row__title">{{ $t('settings.sandbox.weknoraDesktopTemplate') }}</span>
|
||||
<span class="template-row__title">{{ $t('settings.sandbox.academyDesktopTemplate') }}</span>
|
||||
<t-tag theme="warning" variant="outline" size="small">
|
||||
{{ $t('settings.sandbox.desktopTemplateTag') }}
|
||||
</t-tag>
|
||||
@@ -412,7 +412,7 @@
|
||||
</template>
|
||||
<!--
|
||||
Docker has no provider-side timeout at all: an abandoned container
|
||||
keeps its memory and CPU share on the daemon host until WeKnora
|
||||
keeps its memory and CPU share on the daemon host until Academy
|
||||
reclaims it, so the idle TTL and the resource caps are the only
|
||||
things bounding what one workspace can hold.
|
||||
-->
|
||||
@@ -1340,7 +1340,7 @@ function canRebuildTemplate(item: SandboxTemplate): boolean {
|
||||
}
|
||||
|
||||
function templateDisplayName(item: SandboxTemplate): string {
|
||||
if (item.standard) return t('settings.sandbox.weknoraStandardTemplate')
|
||||
if (item.standard) return t('settings.sandbox.academyStandardTemplate')
|
||||
const name = item.name?.trim() || ''
|
||||
const id = item.id?.trim() || ''
|
||||
if (!name || name === id) return t('settings.sandbox.templateUnnamed')
|
||||
@@ -2056,7 +2056,7 @@ onUnmounted(stopTemplatePolling)
|
||||
}
|
||||
}
|
||||
|
||||
.weknora-template-card {
|
||||
.academy-template-card {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 12px;
|
||||
@@ -2071,7 +2071,7 @@ onUnmounted(stopTemplatePolling)
|
||||
}
|
||||
}
|
||||
|
||||
.weknora-template-card__content {
|
||||
.academy-template-card__content {
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
|
||||
@@ -2083,13 +2083,13 @@ onUnmounted(stopTemplatePolling)
|
||||
}
|
||||
}
|
||||
|
||||
.weknora-template-card__title-row {
|
||||
.academy-template-card__title-row {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.weknora-template-card__title {
|
||||
.academy-template-card__title {
|
||||
font-size: var(--app-text-md);
|
||||
font-weight: 600;
|
||||
}
|
||||
@@ -2593,7 +2593,7 @@ onUnmounted(stopTemplatePolling)
|
||||
|
||||
@media (max-width: 720px) {
|
||||
.form-grid--two,
|
||||
.weknora-template-card {
|
||||
.academy-template-card {
|
||||
align-items: flex-start;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
@@ -233,8 +233,8 @@ function stop() {
|
||||
// expired and the durable history is the only remaining source.
|
||||
async function follow(run: number): Promise<boolean> {
|
||||
const url = `${getApiBaseUrl()}${configSkillTranscriptUrl(props.configId, props.skillId)}`
|
||||
const token = localStorage.getItem('weknora_token')
|
||||
const tenantId = localStorage.getItem('weknora_selected_tenant_id')
|
||||
const token = localStorage.getItem('academy_token')
|
||||
const tenantId = localStorage.getItem('academy_selected_tenant_id')
|
||||
const ac = new AbortController()
|
||||
controller = ac
|
||||
if (run !== openRun) {
|
||||
|
||||
@@ -56,8 +56,8 @@ async function fixture(
|
||||
'@/utils/request': { get: async () => ({ success: true, data: workspaceConfig }), put: assert.fail },
|
||||
})
|
||||
const sessionStorage = storage()
|
||||
sessionStorage.setItem('weknora:assistant-session:user-a:2', 'workspace-b-session')
|
||||
sessionStorage.setItem('weknora:assistant-session:user-b:1', 'user-b-session')
|
||||
sessionStorage.setItem('academy:assistant-session:user-a:2', 'workspace-b-session')
|
||||
sessionStorage.setItem('academy:assistant-session:user-b:1', 'user-b-session')
|
||||
const localStorage = storage()
|
||||
const stores = evaluate(storeScript, {
|
||||
vue, pinia, './auth': { useAuthStore: () => auth }, '@/api/assistant': assistantApi,
|
||||
@@ -111,7 +111,7 @@ async function fixture(
|
||||
},
|
||||
},
|
||||
'@/components/sessionGrouping': evaluate(groupingScript, {}),
|
||||
'@/api/agent': { BUILTIN_WEKNORA_ASSISTANT_ID: 'builtin-weknora-assistant' },
|
||||
'@/api/agent': { BUILTIN_ACADEMY_ASSISTANT_ID: 'builtin-academy-assistant' },
|
||||
'@/stores/menu': { useMenuStore: () => ({ updataMenuChildren: (entry: unknown) => menuEntries.push(entry) }) },
|
||||
'@/stores/auth': { useAuthStore: () => auth },
|
||||
'@/stores/assistant': stores,
|
||||
@@ -179,12 +179,12 @@ test('layout and width persist, with the width kept within bounds', async () =>
|
||||
try {
|
||||
assert.equal(f.assistant.layout, 'docked')
|
||||
f.assistant.setLayout('floating')
|
||||
assert.equal(f.localStorage.getItem('weknora:assistant-layout'), 'floating')
|
||||
assert.equal(f.localStorage.getItem('academy:assistant-layout'), 'floating')
|
||||
f.assistant.setWidth(10_000)
|
||||
assert.equal(f.assistant.width, 760)
|
||||
f.assistant.setWidth(12)
|
||||
assert.equal(f.assistant.width, 360)
|
||||
assert.equal(f.localStorage.getItem('weknora:assistant-width'), '360')
|
||||
assert.equal(f.localStorage.getItem('academy:assistant-width'), '360')
|
||||
} finally { f.close() }
|
||||
})
|
||||
|
||||
@@ -236,7 +236,7 @@ test('a new conversation still sends its own first message after restoring a ses
|
||||
assert.equal(f.sent.length, 1)
|
||||
assert.equal(f.sent[0].sessionId, 'new-session')
|
||||
assert.equal(f.sent[0].query, 'New request')
|
||||
assert.equal(f.sessionStorage.getItem('weknora:assistant-session:user-a:2'), 'new-session')
|
||||
assert.equal(f.sessionStorage.getItem('academy:assistant-session:user-a:2'), 'new-session')
|
||||
} finally { f.close() }
|
||||
})
|
||||
|
||||
@@ -251,7 +251,7 @@ test('session creation finishing after a workspace switch cannot replace the res
|
||||
resolve({ data: { id: 'old-workspace-session' } })
|
||||
await flush()
|
||||
assert.equal(f.assistant.sessionId, 'workspace-b-session')
|
||||
assert.equal(f.sessionStorage.getItem('weknora:assistant-session:user-a:2'), 'workspace-b-session')
|
||||
assert.equal(f.sessionStorage.getItem('academy:assistant-session:user-a:2'), 'workspace-b-session')
|
||||
assert.equal(f.sent.length, 0)
|
||||
assert.equal(f.menuEntries.length, 0)
|
||||
} finally { f.close() }
|
||||
@@ -318,7 +318,7 @@ test('deleting the current history session requires confirmation and returns to
|
||||
await flush()
|
||||
assert.deepEqual(f.deleted, ['current'])
|
||||
assert.equal(f.assistant.sessionId, '')
|
||||
assert.equal(f.sessionStorage.getItem('weknora:assistant-session:user-a:1'), null)
|
||||
assert.equal(f.sessionStorage.getItem('academy:assistant-session:user-a:1'), null)
|
||||
assert.equal(f.findAll(n => n.props.class === 'assistant-welcome').length, 1)
|
||||
} finally { f.close() }
|
||||
})
|
||||
@@ -346,7 +346,7 @@ test('stored ordinary session is rejected instead of mounting it as assistant hi
|
||||
f.auth.effectiveTenantId = 2
|
||||
await flush()
|
||||
assert.equal(f.assistant.sessionId, '')
|
||||
assert.equal(f.sessionStorage.getItem('weknora:assistant-session:user-a:2'), null)
|
||||
assert.equal(f.sessionStorage.getItem('academy:assistant-session:user-a:2'), null)
|
||||
assert.equal(f.mounted.length, 0)
|
||||
} finally { f.close() }
|
||||
})
|
||||
|
||||
@@ -68,7 +68,7 @@
|
||||
<div v-show="!showHistory" class="assistant-panel__conversation">
|
||||
<ChatView v-if="assistant.sessionId && readySessionId === assistant.sessionId"
|
||||
:key="assistant.sessionId" :session_id="assistant.sessionId"
|
||||
:agent-id="BUILTIN_WEKNORA_ASSISTANT_ID" :embedded-mode="true" :initial-query="initialQuery"
|
||||
:agent-id="BUILTIN_ACADEMY_ASSISTANT_ID" :embedded-mode="true" :initial-query="initialQuery"
|
||||
:host-scope="hostScope" :model-id="assistant.modelId" :default-model-id="defaultModelId"
|
||||
@update:model-id="assistant.setModel">
|
||||
<template v-if="assistant.pageSelection" #composer-chips>
|
||||
@@ -138,7 +138,7 @@ import AssistantSelectionChip from './AssistantSelectionChip.vue'
|
||||
import AssistantAccessPicker from './AssistantAccessPicker.vue'
|
||||
import { createSessions, getSessionsList, getSession, type SessionSummary } from '@/api/chat'
|
||||
import { classifyDateBucket } from '@/components/sessionGrouping'
|
||||
import { BUILTIN_WEKNORA_ASSISTANT_ID } from '@/api/agent'
|
||||
import { BUILTIN_ACADEMY_ASSISTANT_ID } from '@/api/agent'
|
||||
import { useAuthStore } from '@/stores/auth'
|
||||
import { useAssistantDataChange } from '@/utils/assistantDataChange'
|
||||
import {
|
||||
|
||||
@@ -29,7 +29,7 @@
|
||||
<div v-for="field in fields" :key="field.key" class="credential-row">
|
||||
<!--
|
||||
Per-field label, rendered only when there is more than one credential
|
||||
(e.g. WeKnora Cloud's api_key + app_secret) so a single-field card
|
||||
(e.g. Academy Cloud's api_key + app_secret) so a single-field card
|
||||
doesn't double up with the parent's outer .form-label. Single-field
|
||||
consumers (ModelEditorDialog API key, WebSearch provider api_key,
|
||||
McpService api_key) keep showing the parent label only.
|
||||
|
||||
@@ -77,7 +77,7 @@
|
||||
}
|
||||
|
||||
:deep(a.wiki-content-link),
|
||||
:deep(.weknora-entity-link) {
|
||||
:deep(.academy-entity-link) {
|
||||
color: var(--td-brand-color);
|
||||
cursor: pointer;
|
||||
border-bottom: 1px dashed var(--td-brand-color);
|
||||
|
||||
@@ -40,7 +40,7 @@
|
||||
}
|
||||
|
||||
&.faq-tag .tag_icon {
|
||||
color: var(--weknora-faq-color, #0052d9);
|
||||
color: var(--academy-faq-color, #0052d9);
|
||||
}
|
||||
|
||||
&.file-tag .tag_icon {
|
||||
|
||||
@@ -342,7 +342,7 @@ function closeTimeline() {
|
||||
timelineDrawerVisible.value = false;
|
||||
}
|
||||
|
||||
const TRACE_DRAWER_WIDTH_KEY = 'weknora-trace-drawer-width';
|
||||
const TRACE_DRAWER_WIDTH_KEY = 'academy-trace-drawer-width';
|
||||
const TRACE_DRAWER_DEFAULT_WIDTH = 820;
|
||||
const TRACE_DRAWER_MIN_WIDTH = 560;
|
||||
|
||||
@@ -414,7 +414,7 @@ function cleanupTraceDrawerResize() {
|
||||
}
|
||||
|
||||
// ============== 主抽屉(文档详情)宽度可调 ==============
|
||||
const MAIN_DRAWER_WIDTH_KEY = 'weknora-doc-drawer-width';
|
||||
const MAIN_DRAWER_WIDTH_KEY = 'academy-doc-drawer-width';
|
||||
const MAIN_DRAWER_DEFAULT_WIDTH = 654;
|
||||
const MAIN_DRAWER_MIN_WIDTH = 480;
|
||||
|
||||
|
||||
@@ -642,7 +642,7 @@ const TRAINING_TABS: { key: string; title: string }[] = [
|
||||
const TRAINING_GROUP_TITLE = '企业培训';
|
||||
|
||||
// 分组展开状态(记忆用户偏好,默认展开),交互与「更多工具」一致
|
||||
const TRAINING_OPEN_KEY = 'weknora_training_open';
|
||||
const TRAINING_OPEN_KEY = 'academy_training_open';
|
||||
const trainingOpen = ref(localStorage.getItem(TRAINING_OPEN_KEY) !== 'false');
|
||||
const toggleTraining = () => {
|
||||
trainingOpen.value = !trainingOpen.value;
|
||||
@@ -666,7 +666,7 @@ const isTrainingTabActive = (tab: string): boolean => {
|
||||
};
|
||||
|
||||
// 「更多工具」分组展开状态(记忆用户偏好,默认展开)
|
||||
const MORE_TOOLS_OPEN_KEY = 'weknora_moretools_open';
|
||||
const MORE_TOOLS_OPEN_KEY = 'academy_moretools_open';
|
||||
const moreToolsOpen = ref(localStorage.getItem(MORE_TOOLS_OPEN_KEY) !== 'false');
|
||||
const toggleMoreTools = () => {
|
||||
moreToolsOpen.value = !moreToolsOpen.value;
|
||||
|
||||
@@ -98,8 +98,8 @@ async function fixture(options: {
|
||||
} },
|
||||
}
|
||||
if (name === '@/stores/modelProviders') return { useModelProvidersStore: () => providersStore }
|
||||
if (name === '@/api/model') return { getWeKnoraCloudStatus: async () => ({ has_models: true, needs_reinit: false }) }
|
||||
if (name === '@/utils/weknoraCloudModels') return require('../utils/weknoraCloudModels.ts')
|
||||
if (name === '@/api/model') return { getAcademyCloudStatus: async () => ({ has_models: true, needs_reinit: false }) }
|
||||
if (name === '@/utils/academyCloudModels') return require('../utils/academyCloudModels.ts')
|
||||
if (name === '@/utils/docsUrl') return require('../utils/docsUrl.ts')
|
||||
if (name === '@/stores/modelProvidersState') return require('../stores/modelProvidersState.ts')
|
||||
if (name === '@/utils/reasoningEffort') return require('../utils/reasoningEffort.ts')
|
||||
@@ -1074,18 +1074,18 @@ test('the vision picker lists the vendor models the backend scoped to it', async
|
||||
})
|
||||
|
||||
const cloudProvider = {
|
||||
value: 'weknoracloud', label: 'WeKnora Cloud', description: '', order: 1,
|
||||
value: 'academycloud', label: 'Academy Cloud', description: '', order: 1,
|
||||
modelTypes: ['chat', 'embedding', 'rerank', 'vllm'],
|
||||
defaultUrls: Object.fromEntries(['chat', 'embedding', 'rerank', 'vllm'].map(type => [type, 'https://weknora.weixin.qq.com'])),
|
||||
models: [],
|
||||
}
|
||||
|
||||
for (const [type, modelName] of [['chat', 'chat'], ['embedding', 'embedding'], ['rerank', 'rerank'], ['vllm', 'vlm']]) {
|
||||
test(`WeKnora Cloud ${type}: an empty catalog still offers the managed model`, async () => {
|
||||
test(`Academy Cloud ${type}: an empty catalog still offers the managed model`, async () => {
|
||||
const f = await fixture({ type, providers: [cloudProvider] })
|
||||
try {
|
||||
f.vm.formData.provider = 'weknoracloud'
|
||||
f.vm.handleProviderChange('weknoracloud')
|
||||
f.vm.formData.provider = 'academycloud'
|
||||
f.vm.handleProviderChange('academycloud')
|
||||
await nextTick()
|
||||
await f.vm.checkWkcCredentialStatus()
|
||||
assert.equal(f.vm.wkcCredentialState, 'configured')
|
||||
@@ -1096,25 +1096,25 @@ for (const [type, modelName] of [['chat', 'chat'], ['embedding', 'embedding'], [
|
||||
await nextTick()
|
||||
await f.vm.checkRemoteAPI()
|
||||
assert.equal(f.requests[0].modelName, modelName)
|
||||
assert.equal(f.requests[0].provider, 'weknoracloud')
|
||||
assert.equal(f.requests[0].provider, 'academycloud')
|
||||
assert.equal(f.vm.formData.contextWindow, undefined)
|
||||
assert.equal(f.vm.formData.dimension, undefined)
|
||||
} finally { f.close() }
|
||||
})
|
||||
}
|
||||
|
||||
test('reselecting WeKnora Cloud after a type reset offers the new managed choices', async () => {
|
||||
test('reselecting Academy Cloud after a type reset offers the new managed choices', async () => {
|
||||
const f = await fixture({ providers: [cloudProvider] })
|
||||
try {
|
||||
f.vm.formData.provider = 'weknoracloud'
|
||||
f.vm.handleProviderChange('weknoracloud')
|
||||
f.vm.formData.provider = 'academycloud'
|
||||
f.vm.handleProviderChange('academycloud')
|
||||
await nextTick()
|
||||
f.vm.formData.modelName = 'chat'
|
||||
await f.vm.selectModelType('vllm')
|
||||
assert.equal(f.vm.formData.modelName, '')
|
||||
assert.equal(f.vm.formData.provider, 'generic')
|
||||
f.vm.formData.provider = 'weknoracloud'
|
||||
f.vm.handleProviderChange('weknoracloud')
|
||||
f.vm.formData.provider = 'academycloud'
|
||||
f.vm.handleProviderChange('academycloud')
|
||||
assert.deepEqual(Array.from(f.vm.catalogModelOptions, (o: any) => o.value), ['vlm'])
|
||||
} finally { f.close() }
|
||||
})
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
export type SessionGroupMode = 'none' | 'date'
|
||||
|
||||
export const SESSION_GROUP_MODE_STORAGE_KEY = 'weknora:session-group-mode'
|
||||
export const SESSION_GROUP_MODE_STORAGE_KEY = 'academy:session-group-mode'
|
||||
export const DEFAULT_SESSION_GROUP_MODE: SessionGroupMode = 'none'
|
||||
|
||||
/** Mirrors backend types.EmbedSessionMarkerPrefix */
|
||||
|
||||
@@ -6,7 +6,7 @@ import {
|
||||
updateSession,
|
||||
} from '@/api/chat'
|
||||
|
||||
export const SESSION_MUTATION_EVENT = 'weknora:session-mutation'
|
||||
export const SESSION_MUTATION_EVENT = 'academy:session-mutation'
|
||||
|
||||
export interface SessionMutationPatch {
|
||||
title?: string
|
||||
|
||||
@@ -180,7 +180,7 @@ const openItem = (item: UploadItem) => {
|
||||
// Same knowledge base page: vue-router dedupes an identical navigation, so
|
||||
// ask the page to open the document directly (as the command palette does).
|
||||
if (route.params.kbId === kbId) {
|
||||
window.dispatchEvent(new CustomEvent('weknora:open-knowledge', {
|
||||
window.dispatchEvent(new CustomEvent('academy:open-knowledge', {
|
||||
detail: { kbId, knowledgeId: item.knowledgeId },
|
||||
}))
|
||||
return
|
||||
|
||||
Reference in new issue
Block a user