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
@@ -111,9 +111,9 @@ const persistOIDCLoginResponse = async (response: any) => {
|
||||
await syncOIDCUserContext()
|
||||
|
||||
// OIDC 跳转前暂存的邀请 token:拿到会话后兑换并进入对应空间。
|
||||
const pendingInviteToken = sessionStorage.getItem('weknora_pending_invite_token')
|
||||
const pendingInviteToken = sessionStorage.getItem('academy_pending_invite_token')
|
||||
if (pendingInviteToken) {
|
||||
sessionStorage.removeItem('weknora_pending_invite_token')
|
||||
sessionStorage.removeItem('academy_pending_invite_token')
|
||||
const result = await authStore.acceptInvitationByTokenAndRefresh(pendingInviteToken)
|
||||
await nextTick()
|
||||
if (result.ok) MessagePlugin.success(t('inviteRegister.joined'))
|
||||
|
||||
@@ -94,9 +94,9 @@ export interface CustomAgentConfig {
|
||||
asr_model_id?: string; // ASR模型ID(音频转录用)
|
||||
// 附件图片理解 / 扫描件 OCR 开关(默认: false,开启会增加解析耗时)
|
||||
attachment_image_understanding?: boolean;
|
||||
// 扫描件 OCR 最大页数(0 = 使用全局默认 WEKNORA_CHAT_ATTACHMENT_OCR_MAX_PAGES)
|
||||
// 扫描件 OCR 最大页数(0 = 使用全局默认 ACADEMY_CHAT_ATTACHMENT_OCR_MAX_PAGES)
|
||||
attachment_ocr_max_pages?: number;
|
||||
// 单轮问答等待附件解析完成的最长时间(秒,0 = 使用全局默认 WEKNORA_CHAT_ATTACHMENT_WAIT_TIMEOUT_SEC)
|
||||
// 单轮问答等待附件解析完成的最长时间(秒,0 = 使用全局默认 ACADEMY_CHAT_ATTACHMENT_WAIT_TIMEOUT_SEC)
|
||||
attachment_parse_wait_timeout_sec?: number;
|
||||
|
||||
// ===== 聊天附件解析引擎策略 =====
|
||||
@@ -182,7 +182,7 @@ export interface UpdateAgentRequest {
|
||||
export const BUILTIN_QUICK_ANSWER_ID = 'builtin-quick-answer';
|
||||
export const BUILTIN_SMART_REASONING_ID = 'builtin-smart-reasoning';
|
||||
export const BUILTIN_TRAINING_COACH_ID = 'builtin-training-coach';
|
||||
export const BUILTIN_WEKNORA_ASSISTANT_ID = 'builtin-weknora-assistant';
|
||||
export const BUILTIN_ACADEMY_ASSISTANT_ID = 'builtin-academy-assistant';
|
||||
|
||||
// AgentMode 常量
|
||||
export const AGENT_MODE_QUICK_ANSWER = 'quick-answer';
|
||||
|
||||
@@ -333,7 +333,7 @@ export function autoSetup(): Promise<LoginResponse> {
|
||||
if (!nativeApp?.GetAutoSetupToken) return { success: false, message: 'Desktop authentication required' }
|
||||
const token = await nativeApp.GetAutoSetupToken()
|
||||
const response = await post('/api/v1/auth/auto-setup', {}, {
|
||||
headers: { 'X-WeKnora-Desktop-Token': token },
|
||||
headers: { 'X-Academy-Desktop-Token': token },
|
||||
})
|
||||
return response as unknown as LoginResponse
|
||||
} catch (error: any) {
|
||||
|
||||
@@ -11,7 +11,7 @@ let transport: { requests: Array<{ url: string; options: { body: string } }> }
|
||||
const originalStorage = Object.getOwnPropertyDescriptor(globalThis, 'localStorage')
|
||||
before(async () => {
|
||||
Object.defineProperty(globalThis, 'localStorage', { configurable: true, value: {
|
||||
getItem: (key: string) => key === 'weknora_token' ? 'test-token' : null,
|
||||
getItem: (key: string) => key === 'academy_token' ? 'test-token' : null,
|
||||
} })
|
||||
const mocks: Record<string, string> = {
|
||||
'@microsoft/fetch-event-source': `export const requests = []; export async function fetchEventSource(url, options) { requests.push({url, options}); }`,
|
||||
|
||||
@@ -17,7 +17,7 @@ import {
|
||||
runStreamWithAuthRetry,
|
||||
} from '@/utils/authRefresh';
|
||||
|
||||
/** The WeKnora page the user has open; agent-chat only. */
|
||||
/** The Academy page the user has open; agent-chat only. */
|
||||
export interface PageContextPayload {
|
||||
page?: string
|
||||
section?: string
|
||||
@@ -84,7 +84,7 @@ export function useStream() {
|
||||
const apiUrl = getApiBaseUrl();
|
||||
|
||||
const embedToken = params.embed_token;
|
||||
const token = embedToken || localStorage.getItem('weknora_token');
|
||||
const token = embedToken || localStorage.getItem('academy_token');
|
||||
if (!token) {
|
||||
error.value = i18n.global.t('error.tokenNotFound');
|
||||
stopStream();
|
||||
@@ -93,12 +93,12 @@ export function useStream() {
|
||||
|
||||
// 跨空间访问请求头:只要 setSelectedTenant 写过激活空间,就附
|
||||
// X-Tenant-ID。早期版本会 short-circuit "selectedTenantId ===
|
||||
// defaultTenantId 时不附" 来减少 header 体积,但任何把 weknora_tenant
|
||||
// defaultTenantId 时不附" 来减少 header 体积,但任何把 academy_tenant
|
||||
// 写成激活空间的代码(OIDC 同步 / UserMenu loadUserInfo / router
|
||||
// hydrate)都会让两者相等,使得后续流式请求悄悄丢 header、落到
|
||||
// home 空间上,导致 SSE 接口返回 404。直接附即可——后端
|
||||
// IsTenantAccessible 也允许 header 指向自家空间。
|
||||
const selectedTenantId = localStorage.getItem('weknora_selected_tenant_id');
|
||||
const selectedTenantId = localStorage.getItem('academy_selected_tenant_id');
|
||||
const tenantIdHeader: string | null = selectedTenantId || null;
|
||||
|
||||
// TTFB instrumentation: record the moment we kick off the request so
|
||||
|
||||
@@ -21,7 +21,7 @@ let transport: { calls: Call[] }
|
||||
const originalStorage = Object.getOwnPropertyDescriptor(globalThis, 'localStorage')
|
||||
before(async () => {
|
||||
Object.defineProperty(globalThis, 'localStorage', { configurable: true, value: {
|
||||
getItem: (key: string) => key === 'weknora_token' ? 'test-token' : null,
|
||||
getItem: (key: string) => key === 'academy_token' ? 'test-token' : null,
|
||||
} })
|
||||
// Each request stays pending until the test closes or fails it.
|
||||
const mocks: Record<string, string> = {
|
||||
|
||||
@@ -60,10 +60,10 @@ export type WidgetPosition = 'bottom-right' | 'bottom-left' | 'top-right' | 'top
|
||||
export const EMBED_SESSION_TOKEN_PREFIX = 'ems_'
|
||||
|
||||
/** localStorage key prefix for persisted embed chat sessions (per channel). */
|
||||
export const EMBED_CHAT_SESSION_STORAGE_PREFIX = 'weknora-embed-session:'
|
||||
export const EMBED_CHAT_SESSION_STORAGE_PREFIX = 'academy-embed-session:'
|
||||
|
||||
/** localStorage key prefix for anonymous embed visitor ids (per channel). */
|
||||
export const EMBED_VISITOR_STORAGE_PREFIX = 'weknora-embed-visitor:'
|
||||
export const EMBED_VISITOR_STORAGE_PREFIX = 'academy-embed-visitor:'
|
||||
|
||||
export function embedVisitorStorageKey(channelId: string): string {
|
||||
return `${EMBED_VISITOR_STORAGE_PREFIX}${channelId}`
|
||||
@@ -455,8 +455,8 @@ export async function getEmbedMessageList(
|
||||
)
|
||||
}
|
||||
|
||||
const EMBED_MSG_SOURCE = 'weknora-embed'
|
||||
const EMBED_HOST_SOURCE = 'weknora-host'
|
||||
const EMBED_MSG_SOURCE = 'academy-embed'
|
||||
const EMBED_HOST_SOURCE = 'academy-host'
|
||||
|
||||
// The exact parent origin, learned from the first trusted host message
|
||||
// (trust-on-first-use). Once known, every inbound/outbound message is pinned to
|
||||
@@ -632,7 +632,7 @@ export function buildWidgetSnippet(
|
||||
const base = safeBaseUrl(opts?.baseUrl)
|
||||
const position = opts?.position || 'bottom-right'
|
||||
const attrs = [
|
||||
`src="${escapeHtmlAttr(`${base}/weknora-widget.js`)}"`,
|
||||
`src="${escapeHtmlAttr(`${base}/academy-widget.js`)}"`,
|
||||
`data-channel="${escapeHtmlAttr(channelId)}"`,
|
||||
`data-token="${escapeHtmlAttr(token)}"`,
|
||||
`data-position="${escapeHtmlAttr(position)}"`,
|
||||
@@ -644,7 +644,7 @@ export function buildWidgetSnippet(
|
||||
}
|
||||
|
||||
/** Default placeholder for the integrator's own token-minting endpoint. */
|
||||
export const SECURE_TOKEN_ENDPOINT_PLACEHOLDER = 'https://your-backend.example.com/weknora/embed-token'
|
||||
export const SECURE_TOKEN_ENDPOINT_PLACEHOLDER = 'https://your-backend.example.com/academy/embed-token'
|
||||
|
||||
/**
|
||||
* Secure-mode widget snippet: the page references an endpoint on the
|
||||
@@ -659,7 +659,7 @@ export function buildSecureWidgetSnippet(
|
||||
const position = opts?.position || 'bottom-right'
|
||||
const endpoint = opts?.tokenEndpoint || SECURE_TOKEN_ENDPOINT_PLACEHOLDER
|
||||
const attrs = [
|
||||
`src="${escapeHtmlAttr(`${base}/weknora-widget.js`)}"`,
|
||||
`src="${escapeHtmlAttr(`${base}/academy-widget.js`)}"`,
|
||||
`data-channel="${escapeHtmlAttr(channelId)}"`,
|
||||
`data-token-endpoint="${escapeHtmlAttr(endpoint)}"`,
|
||||
`data-position="${escapeHtmlAttr(position)}"`,
|
||||
@@ -678,8 +678,8 @@ export function buildSecureServerNodeExample(channelId: string, opts?: { baseUrl
|
||||
const base = safeBaseUrl(opts?.baseUrl)
|
||||
const exchangeUrl = `${base}/api/v1/embed/${channelId}/exchange`
|
||||
return [
|
||||
`// Node/Express — keep WEKNORA_PUBLISH_TOKEN only on the server (env var).`,
|
||||
`app.get('/weknora/embed-token', async (req, res) => {`,
|
||||
`// Node/Express — keep ACADEMY_PUBLISH_TOKEN only on the server (env var).`,
|
||||
`app.get('/academy/embed-token', async (req, res) => {`,
|
||||
` // Only mint for logged-in visitors — e.g. session cookie or Bearer token.`,
|
||||
` const auth = req.headers.authorization || ''`,
|
||||
` const hasSession = Boolean(req.cookies?.session_id)`,
|
||||
@@ -689,7 +689,7 @@ export function buildSecureServerNodeExample(channelId: string, opts?: { baseUrl
|
||||
` const r = await fetch('${exchangeUrl}', {`,
|
||||
` method: 'POST',`,
|
||||
` headers: {`,
|
||||
` Authorization: 'Embed ' + process.env.WEKNORA_PUBLISH_TOKEN,`,
|
||||
` Authorization: 'Embed ' + process.env.ACADEMY_PUBLISH_TOKEN,`,
|
||||
` Origin: 'https://your-site.example.com', // must match channel allowed_origins`,
|
||||
` },`,
|
||||
` })`,
|
||||
@@ -704,14 +704,14 @@ export function buildSecureServerGoExample(channelId: string, opts?: { baseUrl?:
|
||||
const base = safeBaseUrl(opts?.baseUrl)
|
||||
const exchangeUrl = `${base}/api/v1/embed/${channelId}/exchange`
|
||||
return [
|
||||
`// Go net/http — keep WEKNORA_PUBLISH_TOKEN only on the server (env var).`,
|
||||
`// Go net/http — keep ACADEMY_PUBLISH_TOKEN only on the server (env var).`,
|
||||
`func embedTokenHandler(w http.ResponseWriter, r *http.Request) {`,
|
||||
` if r.Header.Get("Authorization") == "" && r.Header.Get("Cookie") == "" {`,
|
||||
` http.Error(w, \`{"error":"unauthorized"}\`, http.StatusUnauthorized)`,
|
||||
` return`,
|
||||
` }`,
|
||||
` req, _ := http.NewRequest(http.MethodPost, "${exchangeUrl}", nil)`,
|
||||
` req.Header.Set("Authorization", "Embed "+os.Getenv("WEKNORA_PUBLISH_TOKEN"))`,
|
||||
` req.Header.Set("Authorization", "Embed "+os.Getenv("ACADEMY_PUBLISH_TOKEN"))`,
|
||||
` req.Header.Set("Origin", "https://your-site.example.com") // must match channel allowed_origins`,
|
||||
` resp, err := http.DefaultClient.Do(req)`,
|
||||
` if err != nil || resp.StatusCode >= 300 {`,
|
||||
|
||||
@@ -465,7 +465,7 @@ export function testMultimodalFunction(testData: {
|
||||
formData.append('separators', JSON.stringify(testData.separators));
|
||||
|
||||
// 获取鉴权Token
|
||||
const token = localStorage.getItem('weknora_token');
|
||||
const token = localStorage.getItem('academy_token');
|
||||
const headers: Record<string, string> = {};
|
||||
if (token) {
|
||||
headers['Authorization'] = `Bearer ${token}`;
|
||||
@@ -474,7 +474,7 @@ export function testMultimodalFunction(testData: {
|
||||
// 跨空间访问请求头:直接附,避免 short-circuit "selectedTenantId
|
||||
// === defaultTenantId 时不附" 在某些边角下让 header 静默丢失。
|
||||
// 与 utils/request.ts、api/chat/streame.ts 行为一致。
|
||||
const selectedTenantId = localStorage.getItem('weknora_selected_tenant_id');
|
||||
const selectedTenantId = localStorage.getItem('academy_selected_tenant_id');
|
||||
if (selectedTenantId) {
|
||||
headers['X-Tenant-ID'] = selectedTenantId;
|
||||
}
|
||||
|
||||
@@ -298,15 +298,15 @@ export async function deleteModelCredentialField(
|
||||
await del(`/api/v1/models/${id}/credentials/${field}`)
|
||||
}
|
||||
|
||||
export interface InitializeWeKnoraCloudRequest {
|
||||
export interface InitializeAcademyCloudRequest {
|
||||
app_id: string
|
||||
app_secret: string
|
||||
}
|
||||
|
||||
// 仅保存 WeKnoraCloud 凭证,不自动创建模型
|
||||
export function saveWeKnoraCloudCredentials(data: InitializeWeKnoraCloudRequest): Promise<{ success: boolean; message: string }> {
|
||||
// 仅保存 AcademyCloud 凭证,不自动创建模型
|
||||
export function saveAcademyCloudCredentials(data: InitializeAcademyCloudRequest): Promise<{ success: boolean; message: string }> {
|
||||
return new Promise((resolve, reject) => {
|
||||
post('/api/v1/weknoracloud/credentials', data)
|
||||
post('/api/v1/academycloud/credentials', data)
|
||||
.then((response: any) => {
|
||||
if (response.success) {
|
||||
resolve(response)
|
||||
@@ -315,21 +315,21 @@ export function saveWeKnoraCloudCredentials(data: InitializeWeKnoraCloudRequest)
|
||||
}
|
||||
})
|
||||
.catch((error: any) => {
|
||||
console.error('Failed to save WeKnoraCloud credentials:', error)
|
||||
console.error('Failed to save AcademyCloud credentials:', error)
|
||||
reject(error)
|
||||
})
|
||||
})
|
||||
}
|
||||
|
||||
export interface WeKnoraCloudStatusResult {
|
||||
export interface AcademyCloudStatusResult {
|
||||
has_models: boolean
|
||||
needs_reinit: boolean
|
||||
reason?: string
|
||||
}
|
||||
|
||||
export function getWeKnoraCloudStatus(): Promise<WeKnoraCloudStatusResult> {
|
||||
export function getAcademyCloudStatus(): Promise<AcademyCloudStatusResult> {
|
||||
return new Promise((resolve, reject) => {
|
||||
get('/api/v1/models/weknoracloud/status')
|
||||
get('/api/v1/models/academycloud/status')
|
||||
.then((response: any) => {
|
||||
// status 接口直接返回对象,不包在 success/data 中
|
||||
if (response && typeof response.has_models === 'boolean') {
|
||||
|
||||
@@ -1015,7 +1015,7 @@ export function releaseUserSandbox(configId: string, digest: string) {
|
||||
|
||||
/**
|
||||
* Fetch templates using the connection currently entered in the drawer.
|
||||
* `ensure_standard` starts a provider-side CLI build when that WeKnora
|
||||
* `ensure_standard` starts a provider-side CLI build when that Academy
|
||||
* template is missing. `ensure_desktop` does the same for the XFCE image, but
|
||||
* the settings UI only sends it when the admin clicks Create — listing must
|
||||
* not provision a desktop template as a side effect. `replace_standard` /
|
||||
|
||||
File renamed without changes.
|
Before Width: | Height: | Size: 7.1 KiB After Width: | Height: | Size: 7.1 KiB |
@@ -28,7 +28,7 @@
|
||||
<circle cx="90" cy="172" r="5" fill="#34D399"/>
|
||||
<circle cx="108" cy="172" r="5" fill="#6EE7B7"/>
|
||||
<circle cx="126" cy="172" r="5" fill="#A7F3D0"/>
|
||||
<text x="400" y="177" font-family="Arial, sans-serif" font-size="12" fill="#10B981" text-anchor="middle">WeKnora · Knowledge Search</text>
|
||||
<text x="400" y="177" font-family="Arial, sans-serif" font-size="12" fill="#10B981" text-anchor="middle">Academy · Knowledge Search</text>
|
||||
|
||||
<g transform="translate(96, 224)">
|
||||
<rect width="608" height="52" rx="12" fill="#F0FDF4" stroke="#A7F3D0" stroke-width="1.5"/>
|
||||
|
||||
|
Before Width: | Height: | Size: 4.9 KiB After Width: | Height: | Size: 4.9 KiB |
@@ -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
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
/**
|
||||
* Shared localStorage utilities for per-user UI preferences (theme, fonts).
|
||||
*
|
||||
* Storage layout: WeKnora_${userId}_${suffix}, where userId is the active
|
||||
* Storage layout: Academy_${userId}_${suffix}, where userId is the active
|
||||
* user's id or "anon" before login. Read paths are intentionally narrow —
|
||||
* no cross-namespace fallbacks — so one user's preferences cannot bleed
|
||||
* into another user's session.
|
||||
*
|
||||
* One-shot migration adopts pre-existing values into the current user's
|
||||
* namespace at login time:
|
||||
* - Legacy un-namespaced keys (WeKnora_${suffix}) from earlier branch
|
||||
* - Legacy un-namespaced keys (Academy_${suffix}) from earlier branch
|
||||
* versions are inherited and removed.
|
||||
* - The "anon" namespace (used while no user is logged in) is also
|
||||
* adopted and cleared, so the next user to log in cannot inherit it.
|
||||
@@ -23,7 +23,7 @@ const PREFERENCE_SUFFIXES = [
|
||||
|
||||
export function readUserId(): string {
|
||||
try {
|
||||
const raw = localStorage.getItem('weknora_user')
|
||||
const raw = localStorage.getItem('academy_user')
|
||||
if (!raw) return 'anon'
|
||||
const parsed = JSON.parse(raw)
|
||||
return parsed?.id ? String(parsed.id) : 'anon'
|
||||
@@ -46,7 +46,7 @@ export function safeSetItem(key: string, value: string): void {
|
||||
} catch (err) {
|
||||
// Quota exceeded, disabled storage, private mode — surface in DevTools
|
||||
// so the issue is at least diagnosable, but don't break the UI.
|
||||
console.warn(`[WeKnora] failed to persist preference "${key}":`, err)
|
||||
console.warn(`[Academy] failed to persist preference "${key}":`, err)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -59,7 +59,7 @@ export function safeRemoveItem(key: string): void {
|
||||
}
|
||||
|
||||
export function userKey(suffix: string): string {
|
||||
return `WeKnora_${readUserId()}_${suffix}`
|
||||
return `Academy_${readUserId()}_${suffix}`
|
||||
}
|
||||
|
||||
export function loadPreference(suffix: string): string | null {
|
||||
@@ -85,11 +85,11 @@ export function migratePreferencesIntoUser(): void {
|
||||
migratedForUser = userId
|
||||
|
||||
for (const suffix of PREFERENCE_SUFFIXES) {
|
||||
const target = `WeKnora_${userId}_${suffix}`
|
||||
const target = `Academy_${userId}_${suffix}`
|
||||
const targetExists = safeGetItem(target) !== null
|
||||
|
||||
const anonKey = `WeKnora_anon_${suffix}`
|
||||
const legacyKey = `WeKnora_${suffix}`
|
||||
const anonKey = `Academy_anon_${suffix}`
|
||||
const legacyKey = `Academy_${suffix}`
|
||||
|
||||
if (!targetExists) {
|
||||
const anonValue = safeGetItem(anonKey)
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import { computed, onMounted, ref } from 'vue'
|
||||
import { getApiBaseUrl } from '@/utils/api-base'
|
||||
|
||||
type WeKnoraDesktopWindow = Window & {
|
||||
__WEKNORA_API_BASE__?: string
|
||||
type AcademyDesktopWindow = Window & {
|
||||
__ACADEMY_API_BASE__?: string
|
||||
go?: {
|
||||
main?: {
|
||||
App?: {
|
||||
@@ -29,9 +29,9 @@ export function useApiBaseUrlDisplay() {
|
||||
})
|
||||
|
||||
async function loadApiBaseUrl() {
|
||||
const win = window as WeKnoraDesktopWindow
|
||||
const win = window as AcademyDesktopWindow
|
||||
for (let i = 0; i < 40; i++) {
|
||||
const injected = win.__WEKNORA_API_BASE__
|
||||
const injected = win.__ACADEMY_API_BASE__
|
||||
if (typeof injected === 'string' && injected.trim()) {
|
||||
wailsApiBaseURL.value = injected.trim().replace(/\/$/, '')
|
||||
return
|
||||
|
||||
@@ -2,7 +2,7 @@ import { onBeforeUnmount, watch } from 'vue'
|
||||
import { useAssistantStore, type AssistantPageContext } from '@/stores/assistant'
|
||||
|
||||
/**
|
||||
* Publishes what this page has open to the WeKnora assistant for as long as
|
||||
* Publishes what this page has open to the Academy assistant for as long as
|
||||
* the component is mounted. Return null while nothing is open. A component
|
||||
* mounted inside another publisher refines it: fields it sets win.
|
||||
*/
|
||||
|
||||
@@ -25,7 +25,7 @@ function fixture() {
|
||||
const exports: { useConfigSkillInstallProgress?: typeof useConfigSkillInstallProgress } = {}
|
||||
runInNewContext(compiled, {
|
||||
exports, AbortController,
|
||||
localStorage: { getItem: (key: string) => ({ weknora_token: 'token', weknora_selected_tenant_id: 'tenant' })[key] },
|
||||
localStorage: { getItem: (key: string) => ({ academy_token: 'token', academy_selected_tenant_id: 'tenant' })[key] },
|
||||
require(name: string) {
|
||||
if (name === 'vue') return vue
|
||||
if (name === './skillInstallProgress') return progress
|
||||
|
||||
@@ -84,8 +84,8 @@ export function useConfigSkillInstallProgress(options?: {
|
||||
const isCurrent = () => abortByKey.get(key) === controller
|
||||
const stopCurrent = () => { if (isCurrent()) stop(key) }
|
||||
|
||||
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 url = `${getApiBaseUrl()}${configSkillInstallEventsUrl(configId, skillId)}`
|
||||
|
||||
void fetchEventSource(url, {
|
||||
|
||||
@@ -14,7 +14,7 @@ function attributes() {
|
||||
function fakeDocument() {
|
||||
const nodes: any[] = []
|
||||
return {
|
||||
baseURI: 'https://weknora.test/chat', title: '', nodes,
|
||||
baseURI: 'https://academy.test/chat', title: '', nodes,
|
||||
documentElement: attributes(), body: attributes(),
|
||||
head: { append: (node: any) => nodes.push(node) },
|
||||
styleSheets: [{ href: '/assets/app.css', disabled: false, media: { mediaText: '' } }],
|
||||
|
||||
@@ -59,7 +59,7 @@ function tenantSegmentForKey(): string {
|
||||
}
|
||||
|
||||
function recentsKey(): string {
|
||||
return `WeKnora_${readUserId()}_${tenantSegmentForKey()}${RECENTS_SUFFIX}`
|
||||
return `Academy_${readUserId()}_${tenantSegmentForKey()}${RECENTS_SUFFIX}`
|
||||
}
|
||||
|
||||
function readRecents(): PinEntry[] {
|
||||
|
||||
@@ -74,7 +74,7 @@ test('missing, empty and failed agent loads fall back to the last chat model wit
|
||||
const f = fixture({ load, readStorage: key => { keys.push(key); return 'last-chat' } })
|
||||
await f.model.loadInstallerModel()
|
||||
assert.equal(f.model.installerModelId.value, 'last-chat')
|
||||
assert.deepEqual(keys, ['weknora_last_chat_model_id'])
|
||||
assert.deepEqual(keys, ['academy_last_chat_model_id'])
|
||||
assert.equal(f.writes.length, 0)
|
||||
assert.deepEqual(f.errors, [])
|
||||
}
|
||||
|
||||
@@ -4,7 +4,7 @@ import { MessagePlugin } from 'tdesign-vue-next'
|
||||
import { getAgentById, updateAgent, type CustomAgent } from '@/api/agent'
|
||||
|
||||
const INSTALLER_AGENT_ID = 'builtin-skill-installer'
|
||||
const LAST_CHAT_MODEL_KEY = 'weknora_last_chat_model_id'
|
||||
const LAST_CHAT_MODEL_KEY = 'academy_last_chat_model_id'
|
||||
|
||||
function readLastChatModelID(): string {
|
||||
try {
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
import type { SpotlightGuideStep } from '@/types/spotlightGuide'
|
||||
|
||||
export const GLOBAL_USER_GUIDE_KEY = 'weknora:new-user-guide-done:v1'
|
||||
export const OPEN_NEW_USER_GUIDE_EVENT = 'weknora:open-new-user-guide'
|
||||
export const GLOBAL_USER_GUIDE_KEY = 'academy:new-user-guide-done:v1'
|
||||
export const OPEN_NEW_USER_GUIDE_EVENT = 'academy:open-new-user-guide'
|
||||
|
||||
export function openNewUserGuide() {
|
||||
window.dispatchEvent(new CustomEvent(OPEN_NEW_USER_GUIDE_EVENT))
|
||||
}
|
||||
|
||||
export const KB_EDITOR_FOCUS_SECTION_EVENT = 'weknora:kb-editor-focus-section'
|
||||
export const AGENT_EDITOR_FOCUS_SECTION_EVENT = 'weknora:agent-editor-focus-section'
|
||||
export const KB_EDITOR_FOCUS_SECTION_EVENT = 'academy:kb-editor-focus-section'
|
||||
export const AGENT_EDITOR_FOCUS_SECTION_EVENT = 'academy:agent-editor-focus-section'
|
||||
|
||||
export type ContextualGuideTourId =
|
||||
| 'kbList'
|
||||
@@ -45,7 +45,7 @@ export interface ContextualGuideTourConfig {
|
||||
|
||||
export const CONTEXTUAL_GUIDE_TOURS: Record<ContextualGuideTourId, ContextualGuideTourConfig> = {
|
||||
kbList: {
|
||||
storageKey: 'weknora:contextual-guide-kb-list:v2',
|
||||
storageKey: 'academy:contextual-guide-kb-list:v2',
|
||||
stepI18nPrefix: 'contextualGuide.kbList.steps',
|
||||
openDelayMs: 500,
|
||||
steps: [
|
||||
@@ -60,20 +60,20 @@ export const CONTEXTUAL_GUIDE_TOURS: Record<ContextualGuideTourId, ContextualGui
|
||||
},
|
||||
// 步骤由 KbCreateContextualGuide.vue 按文档库/FAQ 动态组装
|
||||
kbCreate: {
|
||||
storageKey: 'weknora:contextual-guide-kb-create:v3',
|
||||
storageKey: 'academy:contextual-guide-kb-create:v3',
|
||||
stepI18nPrefix: 'contextualGuide.kbCreate.steps',
|
||||
openDelayMs: 450,
|
||||
alsoCompleteTours: ['kbList'],
|
||||
steps: [],
|
||||
},
|
||||
tenantModels: {
|
||||
storageKey: 'weknora:contextual-guide-tenant-models:v1',
|
||||
storageKey: 'academy:contextual-guide-tenant-models:v1',
|
||||
stepI18nPrefix: 'contextualGuide.tenantModels.steps',
|
||||
openDelayMs: 500,
|
||||
steps: [],
|
||||
},
|
||||
kbDetail: {
|
||||
storageKey: 'weknora:contextual-guide-kb-detail:v1',
|
||||
storageKey: 'academy:contextual-guide-kb-detail:v1',
|
||||
stepI18nPrefix: 'contextualGuide.kbDetail.steps',
|
||||
openDelayMs: 600,
|
||||
steps: [
|
||||
@@ -89,7 +89,7 @@ export const CONTEXTUAL_GUIDE_TOURS: Record<ContextualGuideTourId, ContextualGui
|
||||
],
|
||||
},
|
||||
chat: {
|
||||
storageKey: 'weknora:contextual-guide-chat:v1',
|
||||
storageKey: 'academy:contextual-guide-chat:v1',
|
||||
stepI18nPrefix: 'contextualGuide.chat.steps',
|
||||
openDelayMs: 800,
|
||||
steps: [
|
||||
@@ -113,7 +113,7 @@ export const CONTEXTUAL_GUIDE_TOURS: Record<ContextualGuideTourId, ContextualGui
|
||||
],
|
||||
},
|
||||
agentList: {
|
||||
storageKey: 'weknora:contextual-guide-agent-list:v1',
|
||||
storageKey: 'academy:contextual-guide-agent-list:v1',
|
||||
stepI18nPrefix: 'contextualGuide.agentList.steps',
|
||||
openDelayMs: 500,
|
||||
steps: [
|
||||
@@ -126,7 +126,7 @@ export const CONTEXTUAL_GUIDE_TOURS: Record<ContextualGuideTourId, ContextualGui
|
||||
],
|
||||
},
|
||||
agentCreate: {
|
||||
storageKey: 'weknora:contextual-guide-agent-create:v1',
|
||||
storageKey: 'academy:contextual-guide-agent-create:v1',
|
||||
stepI18nPrefix: 'contextualGuide.agentCreate.steps',
|
||||
openDelayMs: 450,
|
||||
alsoCompleteTours: ['agentList'],
|
||||
|
||||
@@ -10,7 +10,7 @@ export type SettingsRoleKey = 'viewer' | 'contributor' | 'admin' | 'owner'
|
||||
export const SETTINGS_SECTION_MIN_ROLE: Record<string, SettingsRoleKey> = {
|
||||
general: 'viewer',
|
||||
ollama: 'admin',
|
||||
weknoracloud: 'admin',
|
||||
academycloud: 'admin',
|
||||
models: 'viewer',
|
||||
websearch: 'admin',
|
||||
chathistory: 'admin',
|
||||
|
||||
@@ -2660,7 +2660,7 @@ export const SUPPORTED_LOCALES = ['zh-CN', 'zh-TW', 'en-US', 'ko-KR', 'ja-JP', '
|
||||
export type EmbedLocale = (typeof SUPPORTED_LOCALES)[number]
|
||||
|
||||
/** Isolated from the main app `locale` key so embed preview never hijacks admin UI language. */
|
||||
export const EMBED_LOCALE_STORAGE_KEY = 'weknora-embed-locale'
|
||||
export const EMBED_LOCALE_STORAGE_KEY = 'academy-embed-locale'
|
||||
|
||||
/** Map host-provided locale strings to a supported embed locale tag. */
|
||||
export function normalizeEmbedLocale(raw: string): EmbedLocale {
|
||||
|
||||
@@ -78,7 +78,7 @@ const PARSER_ENGINE_NAMES = [
|
||||
'mineru_cloud',
|
||||
'paddleocr_vl',
|
||||
'paddleocr_vl_cloud',
|
||||
'weknoracloud',
|
||||
'academycloud',
|
||||
'markitdown',
|
||||
'opendataloader',
|
||||
] as const
|
||||
|
||||
@@ -723,7 +723,7 @@ export async function loadLocaleBundlesFromDisk(
|
||||
export async function loadFullLocaleBundlesFromGit(
|
||||
ref = 'HEAD',
|
||||
): Promise<Record<LocaleName, LocaleTree>> {
|
||||
const tempDir = mkdtempSync(join(tmpdir(), 'weknora-locales-'))
|
||||
const tempDir = mkdtempSync(join(tmpdir(), 'academy-locales-'))
|
||||
try {
|
||||
const bundles = {} as Record<LocaleName, LocaleTree>
|
||||
for (const localeName of LOCALE_ORDER) {
|
||||
|
||||
@@ -127,9 +127,9 @@ export default {
|
||||
automation: {
|
||||
conversationNotice: "This conversation is run by an automation. Manual messages are unavailable; handle pending requests above.",
|
||||
title: 'Automations',
|
||||
description: 'Have the WeKnora assistant run tasks on a schedule as you. You are notified of results and pending approvals.',
|
||||
description: 'Have the Academy assistant run tasks on a schedule as you. You are notified of results and pending approvals.',
|
||||
add: 'New automation',
|
||||
addHint: 'Or ask the WeKnora assistant to set one up',
|
||||
addHint: 'Or ask the Academy assistant to set one up',
|
||||
paused: 'Paused',
|
||||
scheduleEnded: 'Ended',
|
||||
scheduleEndedHint: 'This one-time schedule has ended. Run it now, or edit the run time before resuming.',
|
||||
@@ -181,7 +181,7 @@ export default {
|
||||
sections: {
|
||||
basic: {
|
||||
title: 'Basics',
|
||||
desc: 'The WeKnora assistant runs each task. To delegate work, name the agents and their assignments in the task.',
|
||||
desc: 'The Academy assistant runs each task. To delegate work, name the agents and their assignments in the task.',
|
||||
},
|
||||
schedule: {
|
||||
title: 'Schedule',
|
||||
@@ -642,12 +642,12 @@ export default {
|
||||
reopen: 'Product tour',
|
||||
steps: {
|
||||
welcome: {
|
||||
title: 'Welcome to WeKnora',
|
||||
title: 'Welcome to Academy',
|
||||
desc: 'A few quick steps to get you familiar with knowledge bases, chat and agents. Click "Next" to begin.'
|
||||
},
|
||||
knowledge: {
|
||||
title: 'Create your knowledge base',
|
||||
desc: 'Everything starts here: upload documents, web pages or FAQs and WeKnora parses and indexes them automatically. Click here to open knowledge bases.'
|
||||
desc: 'Everything starts here: upload documents, web pages or FAQs and Academy parses and indexes them automatically. Click here to open knowledge bases.'
|
||||
},
|
||||
chat: {
|
||||
title: 'Start an AI chat',
|
||||
@@ -1770,12 +1770,12 @@ export default {
|
||||
backendDescriptions: {
|
||||
cube: 'Self-hosted MicroVM cluster for private or on-premises deployments',
|
||||
e2b: 'Managed MicroVM service or an E2B-compatible deployment',
|
||||
docker: 'Keep a long-lived container per session on this WeKnora host; scripts and files stay in that container',
|
||||
docker: 'Keep a long-lived container per session on this Academy host; scripts and files stay in that container',
|
||||
},
|
||||
dockerDisabledAlert: 'Docker sandbox is not enabled on this deployment',
|
||||
dockerDisabledHint: 'A local docker.sock is equivalent to root on the host. For a single-machine private install, a system admin can enable it under Settings → System settings → Network security.',
|
||||
dockerDisabledCard: 'Docker sandbox is disabled on this deployment; this config will not create containers',
|
||||
dockerHostRisk: 'Empty or unix:// uses the Docker daemon on the WeKnora host, which is equivalent to root on that machine. Use this only for a private single-node install. Prefer Cube or E2B when multiple workspaces share a host. Remote tcp:// endpoints require a TLS certificate directory.',
|
||||
dockerHostRisk: 'Empty or unix:// uses the Docker daemon on the Academy host, which is equivalent to root on that machine. Use this only for a private single-node install. Prefer Cube or E2B when multiple workspaces share a host. Remote tcp:// endpoints require a TLS certificate directory.',
|
||||
addConfig: 'Add sandbox',
|
||||
viewClusterGuide: 'Cluster setup guide',
|
||||
configName: 'Config name',
|
||||
@@ -1868,11 +1868,11 @@ export default {
|
||||
policySaveFailed: 'Failed to update sandbox execution policy',
|
||||
legacyConfig: 'Deprecated',
|
||||
namedBackendHint: 'Workspace configuration is the only runtime source. Agents without one cannot execute skill scripts.',
|
||||
weknoraTemplateTitle: 'WeKnora standard template',
|
||||
weknoraDockerImage: 'WeKnora standard image',
|
||||
weknoraDockerImageHint: 'Each session gets its own long-lived container. Scripts, shell commands and files all share it until the session ends or the idle timeout reclaims it.',
|
||||
weknoraTemplateOverview: 'WeKnora provides the standard runtime. Templates are discovered after connecting and the standard one is created when missing.',
|
||||
weknoraTemplateDescription: 'Includes the Python, Node.js, CLI tools, workspace path, and non-root execution user expected by WeKnora skills.',
|
||||
academyTemplateTitle: 'Academy standard template',
|
||||
academyDockerImage: 'Academy standard image',
|
||||
academyDockerImageHint: 'Each session gets its own long-lived container. Scripts, shell commands and files all share it until the session ends or the idle timeout reclaims it.',
|
||||
academyTemplateOverview: 'Academy provides the standard runtime. Templates are discovered after connecting and the standard one is created when missing.',
|
||||
academyTemplateDescription: 'Includes the Python, Node.js, CLI tools, workspace path, and non-root execution user expected by Academy skills.',
|
||||
recommendedTag: 'Recommended',
|
||||
cardTemplateConfigured: 'Template configured',
|
||||
cardCredentialMissing: 'API key missing',
|
||||
@@ -1887,9 +1887,9 @@ export default {
|
||||
refreshTemplates: 'Refresh templates',
|
||||
templateSelectHelp: 'Templates are loaded from this cluster. The saved configuration stores the ID automatically.',
|
||||
templateSelectPlaceholder: 'Connect to the cluster to load templates',
|
||||
templateLoadHint: 'Enter the cluster connection and refresh. Missing WeKnora CLI templates are built from the official Hub image. Desktop templates are larger; create them from the row below. After changing DNS or the image, rebuild from that card.',
|
||||
templateLoadHint: 'Enter the cluster connection and refresh. Missing Academy CLI templates are built from the official Hub image. Desktop templates are larger; create them from the row below. After changing DNS or the image, rebuild from that card.',
|
||||
templateLoadFailed: 'Failed to load templates',
|
||||
standardTemplateProvisioning: 'The WeKnora standard template is being created. Refresh shortly to see its status.',
|
||||
standardTemplateProvisioning: 'The Academy standard template is being created. Refresh shortly to see its status.',
|
||||
standardTemplateReplaced: 'The previous standard template was deleted and a rebuild has started. Wait until it is ready.',
|
||||
templateNotReady: 'The selected template is not ready. Refresh and wait for the build to finish.',
|
||||
connectionPassed: 'Connection verified. Templates below are loaded from this cluster.',
|
||||
@@ -1897,21 +1897,21 @@ export default {
|
||||
templateStepHint: 'This step lists cluster templates and builds the official CLI image if it is missing. Desktop (XFCE) templates are heavier and are created only when you click Create. After changing DNS or the image, rebuild that card. You can continue after a template is ready.',
|
||||
loadingTemplates: 'Loading templates from the cluster...',
|
||||
templateBuildingHint: 'This template is being built. The list will refresh.',
|
||||
templateUntaggedHint: 'The builds finished but none carries the default tag, so sandbox creation cannot resolve this template. Delete it in E2B and refresh; WeKnora will rebuild it.',
|
||||
templateUntaggedHint: 'The builds finished but none carries the default tag, so sandbox creation cannot resolve this template. Delete it in E2B and refresh; Academy will rebuild it.',
|
||||
templateFailedReason: 'Build failed: {reason}',
|
||||
noTemplates: 'No templates were returned by this cluster.',
|
||||
weknoraStandardTemplate: 'WeKnora standard template',
|
||||
academyStandardTemplate: 'Academy standard template',
|
||||
createStandardTemplate: 'Create',
|
||||
createStandardTemplateHint: 'Built with the current connection settings, including DNS. After changing those settings, rebuild from the card.',
|
||||
weknoraDesktopTemplate: 'WeKnora desktop template',
|
||||
academyDesktopTemplate: 'Academy desktop template',
|
||||
createDesktopTemplate: 'Create',
|
||||
createDesktopTemplateHint: 'Builds an XFCE graphical desktop from the official desktop image. It is much larger than the CLI template; create it only when you need a GUI.',
|
||||
replaceStandardTemplate: 'Rebuild',
|
||||
replaceStandardTemplateConfirm: 'Rebuild the WeKnora standard template with the current settings, including DNS. The previous spawnable template is not deleted until the replacement is ready.',
|
||||
desktopTemplateProvisioning: 'The WeKnora desktop template is being created. Refresh shortly to see its status.',
|
||||
replaceStandardTemplateConfirm: 'Rebuild the Academy standard template with the current settings, including DNS. The previous spawnable template is not deleted until the replacement is ready.',
|
||||
desktopTemplateProvisioning: 'The Academy desktop template is being created. Refresh shortly to see its status.',
|
||||
desktopTemplateReplaced: 'The previous desktop template was deleted and a rebuild has started. Wait until it is ready. The CLI template is left untouched.',
|
||||
desktopTemplateTag: 'Desktop',
|
||||
replaceDesktopTemplateConfirm: 'Rebuild the WeKnora desktop template with the current settings, including DNS. The previous spawnable desktop template is not deleted until the replacement is ready. The CLI template is left untouched.',
|
||||
replaceDesktopTemplateConfirm: 'Rebuild the Academy desktop template with the current settings, including DNS. The previous spawnable desktop template is not deleted until the replacement is ready. The CLI template is left untouched.',
|
||||
templateLockedBySkills: 'This sandbox already has skills. The skill environment is bound to the current snapshot, so the runtime template cannot be changed or rebuilt. Create a new sandbox and install skills from the new template.',
|
||||
templateLockedByInFlight: 'A skill is still installing or being removed. The runtime template cannot be changed or rebuilt until that finishes.',
|
||||
templateUnnamed: 'Unnamed template',
|
||||
@@ -1941,7 +1941,7 @@ export default {
|
||||
cubeApiKeyOptional: 'Optional — leave empty for an unauthenticated self-hosted CubeSandbox',
|
||||
cubeApiKeyWhere: 'How to enable auth on a self-hosted cluster',
|
||||
cubeDnsServers: 'DNS servers',
|
||||
cubeDnsServersHelp: 'Optional. Nameserver IPs written into the WeKnora standard template. Leave empty to use the cluster default (commonly 119.29.29.29). If UDP/53 to public resolvers is blocked, use reachable addresses from the Cube host\'s /etc/resolv.conf, excluding 10/8, 172.16/12, and 192.168/16. Existing standard templates take effect only after Rebuild on the template card.',
|
||||
cubeDnsServersHelp: 'Optional. Nameserver IPs written into the Academy standard template. Leave empty to use the cluster default (commonly 119.29.29.29). If UDP/53 to public resolvers is blocked, use reachable addresses from the Cube host\'s /etc/resolv.conf, excluding 10/8, 172.16/12, and 192.168/16. Existing standard templates take effect only after Rebuild on the template card.',
|
||||
cubeDnsServersPlaceholder: 'e.g. 8.8.8.8, press Enter to add',
|
||||
e2bApiKeyHelp: 'Create one on the API Keys page of the E2B dashboard; it usually starts with e2b_.',
|
||||
e2bApiKeyWhere: 'Get an API key from the E2B dashboard',
|
||||
@@ -1971,9 +1971,9 @@ export default {
|
||||
dockerHost: 'Docker daemon endpoint',
|
||||
dockerHostHelp: 'Empty follows the local docker CLI (DOCKER_HOST or the current docker context), so you do not have to type /var/run/docker.sock. For a remote daemon use tcp://host:2376, fill in the TLS certificate directory, and turn on "allow private endpoints" for RFC1918 addresses.',
|
||||
dockerTlsCertPath: 'TLS certificate directory',
|
||||
dockerTlsCertPathHelp: 'Directory on the WeKnora host holding ca.pem, cert.pem and key.pem. Required for a remote daemon; certificates are mounted by the deployment, never stored here.',
|
||||
dockerTlsCertPathHelp: 'Directory on the Academy host holding ca.pem, cert.pem and key.pem. Required for a remote daemon; certificates are mounted by the deployment, never stored here.',
|
||||
dockerIdleTtl: 'Idle reclaim (seconds)',
|
||||
dockerIdleTtlHelp: 'The Docker daemon has no idle timeout of its own. A container that runs no command for this long is reclaimed by WeKnora and rebuilt when the session continues. Empty means 1800 seconds.',
|
||||
dockerIdleTtlHelp: 'The Docker daemon has no idle timeout of its own. A container that runs no command for this long is reclaimed by Academy and rebuilt when the session continues. Empty means 1800 seconds.',
|
||||
dockerCpuLimit: 'CPU cores',
|
||||
dockerCpuLimitHelp: 'CPU cores available to one sandbox; 0 uses the built-in default.',
|
||||
dockerMemoryLimit: 'Memory limit (MB)',
|
||||
@@ -2040,7 +2040,7 @@ export default {
|
||||
allocationModeHint: 'Only affects sessions that have not used a sandbox yet; existing sessions keep their placement and files are never moved.',
|
||||
allocationModeSession: 'One sandbox per session (default)',
|
||||
allocationModeUser: "Share one sandbox across a user's sessions",
|
||||
allocationModeUnavailable: 'Shared sandboxes are not enabled on this deployment (set WEKNORA_SANDBOX_USER_ALLOCATION=enabled on every replica; Redis is required).',
|
||||
allocationModeUnavailable: 'Shared sandboxes are not enabled on this deployment (set ACADEMY_SANDBOX_USER_ALLOCATION=enabled on every replica; Redis is required).',
|
||||
userSandboxRetentionDays: 'Keep an empty shared sandbox for (days)',
|
||||
userSandboxRetentionHint: 'After every session on a shared sandbox is deleted, it is removed once it has been empty this long (1–90 days). This is not a minimum file retention: Docker idle cleanup or provider failures may remove it sooner.',
|
||||
userSandboxesInInventory: "{count} of them are shared user sandboxes; each affects all of that user's sessions on this config.",
|
||||
@@ -2275,38 +2275,38 @@ export default {
|
||||
desc: 'Your role can\'t access this settings page. Ask an admin of this workspace to grant the required role.'
|
||||
},
|
||||
capabilityUnavailable: 'This feature is not supported by the current deployment. You have been returned to an available page.',
|
||||
weknoraCloud: {
|
||||
title: 'WeKnora Cloud',
|
||||
description: 'Configure WeKnora Cloud APPID and APPSECRET credentials. Credentials are used for model services and document parsing engine.',
|
||||
academyCloud: {
|
||||
title: 'Academy Cloud',
|
||||
description: 'Configure Academy Cloud APPID and APPSECRET credentials. Credentials are used for model services and document parsing engine.',
|
||||
viewDocs: 'View Docs',
|
||||
unconfigured: 'Credentials not configured. Please fill in APPID and APPSECRET.',
|
||||
configured: 'Credentials configured and working.',
|
||||
expired: 'WeKnora Cloud credentials expired',
|
||||
expired: 'Academy Cloud credentials expired',
|
||||
expiredDefault: 'Encryption key changed after service restart. Saved credentials cannot be decrypted. Please re-enter credentials.',
|
||||
reconfigure: 'Reconfigure',
|
||||
appIdLabel: 'APPID',
|
||||
appIdDesc: 'WeKnora Cloud application ID',
|
||||
appIdDesc: 'Academy Cloud application ID',
|
||||
appIdPlaceholder: 'Enter APPID',
|
||||
appSecretLabel: 'APPSECRET',
|
||||
appSecretDesc: 'WeKnora Cloud application secret',
|
||||
appSecretDesc: 'Academy Cloud application secret',
|
||||
appSecretPlaceholder: 'Enter APPSECRET',
|
||||
saveHint: 'Credentials will be validated and encrypted before saving.',
|
||||
saveBtn: 'Save Credentials',
|
||||
usageTitle: 'Usage Guide',
|
||||
usageSteps: '1. Save APPID and APPSECRET\n2. Register chat, embedding, rerank, and vlm in Cloud Models below\n3. Parser: Knowledge Base Settings → Parser Engine → WeKnora Cloud',
|
||||
usageSteps: '1. Save APPID and APPSECRET\n2. Register chat, embedding, rerank, and vlm in Cloud Models below\n3. Parser: Knowledge Base Settings → Parser Engine → Academy Cloud',
|
||||
fillRequired: 'Please fill in APPID and APPSECRET',
|
||||
saveSuccess: 'Credentials saved successfully',
|
||||
saveFailed: 'Failed to save credentials',
|
||||
credentialConfigured: 'WeKnoraCloud credentials configured.',
|
||||
credentialConfigured: 'AcademyCloud credentials configured.',
|
||||
credentialExpired: 'Credentials expired. Please reconfigure.',
|
||||
credentialUnconfigured: 'WeKnoraCloud credentials not configured. Please set up APPID and APPSECRET first.',
|
||||
credentialUnconfigured: 'AcademyCloud credentials not configured. Please set up APPID and APPSECRET first.',
|
||||
checkingStatus: 'Checking credential status...',
|
||||
goToSettings: 'Go to Settings',
|
||||
modelHintConfigured: 'WeKnoraCloud credentials configured. See supported models in',
|
||||
modelHintConfigured: 'AcademyCloud credentials configured. See supported models in',
|
||||
modelHintDocsLink: 'API docs',
|
||||
modelsSection: {
|
||||
title: 'Cloud Models',
|
||||
descReady: 'Register the four standard WeKnora Cloud models for chat, retrieval, reranking, and vision.',
|
||||
descReady: 'Register the four standard Academy Cloud models for chat, retrieval, reranking, and vision.',
|
||||
descPending: 'Save credentials above before adding cloud models here.',
|
||||
statusAdded: 'Added',
|
||||
statusPending: 'Credentials required',
|
||||
@@ -2322,10 +2322,10 @@ export default {
|
||||
addModelsFailed: 'Failed to add models',
|
||||
addModelsEmbeddingFailed: 'Embedding connection test failed; could not detect vector dimension',
|
||||
addModelsDisplayName: {
|
||||
chat: 'WeKnoraCloud Chat',
|
||||
embedding: 'WeKnoraCloud Embedding',
|
||||
rerank: 'WeKnoraCloud ReRank',
|
||||
vllm: 'WeKnoraCloud Vision'
|
||||
chat: 'AcademyCloud Chat',
|
||||
embedding: 'AcademyCloud Embedding',
|
||||
rerank: 'AcademyCloud ReRank',
|
||||
vllm: 'AcademyCloud Vision'
|
||||
}
|
||||
},
|
||||
system: 'System Settings',
|
||||
@@ -2456,8 +2456,8 @@ export default {
|
||||
needsConfig: 'Needs Configuration',
|
||||
configurable: 'Configurable',
|
||||
pathPrefix: 'Path Prefix (optional)',
|
||||
pathPrefixPlaceholder: 'e.g. weknora/images',
|
||||
prefixPlaceholder: 'e.g. weknora',
|
||||
pathPrefixPlaceholder: 'e.g. academy/images',
|
||||
prefixPlaceholder: 'e.g. academy',
|
||||
bucketName: 'Bucket Name',
|
||||
bucketPlaceholder: 'Bucket name',
|
||||
minioDesc: 'S3-compatible self-hosted object storage, suitable for private networks and private cloud deployment.',
|
||||
@@ -2725,16 +2725,16 @@ export default {
|
||||
title: 'Sandbox secrets',
|
||||
host: {
|
||||
title: 'Environment variables',
|
||||
description: 'Personal keys for skills on this computer, not WeKnora system or deployment settings.',
|
||||
description: 'Personal keys for skills on this computer, not Academy system or deployment settings.',
|
||||
helpAria: 'About environment variables',
|
||||
introRuntimeBody: 'Injected when a skill runs on this computer. You can also provide a value in chat. Saved values are not shown again.',
|
||||
loadFailed: 'Could not load environment variables.',
|
||||
sandboxTitle: 'Always included on this computer',
|
||||
sandboxHint: 'Sent only with commands that run on this computer. Leave this empty unless you need it. You can also provide a value in chat.',
|
||||
nameInvalid: 'This name cannot be used. Reserved names (for example PATH, or names starting with WEKNORA_) are rejected.',
|
||||
nameInvalid: 'This name cannot be used. Reserved names (for example PATH, or names starting with ACADEMY_) are rejected.',
|
||||
deleteConfirm: 'Delete {name}? Later runs on this computer will no longer include it.',
|
||||
},
|
||||
description: 'Personal keys for skills and sandboxes, not WeKnora system or deployment settings.',
|
||||
description: 'Personal keys for skills and sandboxes, not Academy system or deployment settings.',
|
||||
helpAria: 'About sandbox secrets',
|
||||
introPersonalTitle: 'Yours only',
|
||||
introPersonalBody: 'Injected into your own chats and runs. Other members cannot see them, and theirs will not replace yours.',
|
||||
@@ -2765,7 +2765,7 @@ export default {
|
||||
addRow: 'Add',
|
||||
namePlaceholder: 'VARIABLE_NAME',
|
||||
nameRule: 'Upper-case letters, digits and underscores, starting with a letter or an underscore.',
|
||||
nameInvalid: 'That name cannot be used. Names the sandbox reserves, such as PATH or anything starting with WEKNORA_, are not accepted.',
|
||||
nameInvalid: 'That name cannot be used. Names the sandbox reserves, such as PATH or anything starting with ACADEMY_, are not accepted.',
|
||||
nameDuplicate: 'You already have a variable with that name here.',
|
||||
valuePlaceholder: 'Enter a value',
|
||||
storedPlaceholder: 'Stored, type to replace',
|
||||
@@ -2974,7 +2974,7 @@ export default {
|
||||
registerSuccess: 'Registration successful. Please sign in',
|
||||
registerFailed: 'Registration failed',
|
||||
subtitle: 'AI assistant, ReAct agents and Wiki knowledge base — an AI-driven enterprise architecture upgrade',
|
||||
registerSubtitle: 'Create your account and start using WeKnora',
|
||||
registerSubtitle: 'Create your account and start using Academy',
|
||||
emailPlaceholder: 'Enter email address',
|
||||
passwordPlaceholder: 'Enter password',
|
||||
confirmPasswordPlaceholder: 'Enter password again',
|
||||
@@ -3292,7 +3292,7 @@ export default {
|
||||
goToAgentSettings: 'Go to agent settings'
|
||||
},
|
||||
createChat: {
|
||||
title: 'Hi, I am WeKnora — your knowledge, within reach',
|
||||
title: 'Hi, I am Academy — your knowledge, within reach',
|
||||
newSessionTitle: 'New Session',
|
||||
openProject: 'Select project',
|
||||
clearProject: 'Clear',
|
||||
@@ -3404,7 +3404,7 @@ export default {
|
||||
welcomeMessageDesc: 'Shown in the embed chat before the visitor sends their first message; leave blank to hide',
|
||||
showSuggestedQuestions: 'Suggested questions',
|
||||
showSuggestedQuestionsDesc: 'Show starter prompts before the first visitor message, from agent config and linked knowledge bases',
|
||||
originsHint: 'Enter the host websites allowed to embed this channel (A), not the WeKnora address (B). One full origin per line, e.g. https://shop.example.com; at least one required. Supports *.example.com.',
|
||||
originsHint: 'Enter the host websites allowed to embed this channel (A), not the Academy address (B). One full origin per line, e.g. https://shop.example.com; at least one required. Supports *.example.com.',
|
||||
originsRequired: 'At least one allowed origin is required',
|
||||
originsInvalid: 'Invalid origin: {origin}',
|
||||
originsWildcardProd: 'Wildcard origin \'*\' is not allowed in production',
|
||||
@@ -3462,10 +3462,10 @@ export default {
|
||||
allowFileUpload: 'Show file upload',
|
||||
allowFileUploadDesc: 'When enabled, visitors can upload images and document attachments. Requires the bound agent to support image upload.',
|
||||
webhookUrl: 'Webhook URL',
|
||||
webhookUrlPlaceholder: 'https://your-server.example.com/weknora/embed-events',
|
||||
webhookUrlDesc: 'Optional. WeKnora POSTs message_sent / message_received events to this HTTPS endpoint.',
|
||||
webhookUrlPlaceholder: 'https://your-server.example.com/academy/embed-events',
|
||||
webhookUrlDesc: 'Optional. Academy POSTs message_sent / message_received events to this HTTPS endpoint.',
|
||||
webhookSecret: 'Webhook secret',
|
||||
webhookSecretPlaceholder: 'HMAC-SHA256 secret (X-WeKnora-Signature header)',
|
||||
webhookSecretPlaceholder: 'HMAC-SHA256 secret (X-Academy-Signature header)',
|
||||
webhookSecretKeep: 'Leave blank to keep the saved secret',
|
||||
webhookSecretDesc: 'Optional. When set, request bodies are signed for verification on your server.',
|
||||
agentWebSearchDisabledHint: 'This agent does not have web search enabled. Visitors will not see the web search button until you enable it in agent settings.',
|
||||
@@ -3537,7 +3537,7 @@ export default {
|
||||
systemActor: 'System',
|
||||
actorWithAPIKey: '{actor} · API Key · {name}',
|
||||
actorAPIKey: 'API Key · {name}',
|
||||
viaAssistant: 'Via WeKnora Assistant',
|
||||
viaAssistant: 'Via Academy Assistant',
|
||||
knowledgeBase: 'Knowledge base',
|
||||
countItems: '{count} items',
|
||||
titleWithCount: '{title} and {count} more',
|
||||
@@ -4689,9 +4689,9 @@ export default {
|
||||
loadingInfo: 'Loading information...',
|
||||
retry: 'Retry',
|
||||
versionLabel: 'App Version',
|
||||
versionDescription: 'Version of the application service (weknora-app)',
|
||||
versionDescription: 'Version of the application service (academy-app)',
|
||||
frontendVersionLabel: 'UI Version',
|
||||
frontendVersionDescription: 'Build version of the UI (weknora-ui)',
|
||||
frontendVersionDescription: 'Build version of the UI (academy-ui)',
|
||||
versionMismatch: 'Mismatch with app version',
|
||||
buildTimeLabel: 'Build Time',
|
||||
buildTimeDescription: 'Time when the system was built',
|
||||
@@ -6427,7 +6427,7 @@ export default {
|
||||
videoNotSupported: 'Your browser does not support video playback'
|
||||
},
|
||||
assistant: {
|
||||
title: 'WeKnora Assistant',
|
||||
title: 'Academy Assistant',
|
||||
newConversation: 'New conversation',
|
||||
history: 'Conversation history',
|
||||
untitledConversation: 'Untitled conversation',
|
||||
@@ -6441,7 +6441,7 @@ export default {
|
||||
},
|
||||
welcomeTitle: 'How can I help?',
|
||||
agentWelcomeDesc: 'Check this agent’s configuration, change its model or see which knowledge bases it can search.',
|
||||
welcomeDesc: 'Ask how WeKnora works, or have me check and handle document parsing, knowledge base activity and Wiki issues in your workspace, or create and configure agents. Whether I ask before a change depends on the access level below the input box.',
|
||||
welcomeDesc: 'Ask how Academy works, or have me check and handle document parsing, knowledge base activity and Wiki issues in your workspace, or create and configure agents. Whether I ask before a change depends on the access level below the input box.',
|
||||
startFailed: 'Failed to start the assistant. Please try again.',
|
||||
askAboutDocument: 'Ask {name}',
|
||||
askAboutAnswer: 'Ask {name} about this answer',
|
||||
@@ -6519,7 +6519,7 @@ export default {
|
||||
documentSummary: 'Summarize this document',
|
||||
failedDocuments: 'Which documents in this knowledge base failed to parse?',
|
||||
recentActivity: 'What changed in this knowledge base recently?',
|
||||
formats: 'Which document formats does WeKnora support?',
|
||||
formats: 'Which document formats does Academy support?',
|
||||
createWiki: 'How do I create a Wiki knowledge base?',
|
||||
agents: 'Which agents do I have, and which models do they use?',
|
||||
messageSources: 'What is this answer based on?',
|
||||
@@ -6704,9 +6704,9 @@ export default {
|
||||
name: 'PaddleOCR-VL Cloud',
|
||||
desc: 'PaddleOCR-VL Cloud API'
|
||||
},
|
||||
weknoracloud: {
|
||||
name: 'WeKnora Cloud',
|
||||
desc: 'Document parsing via WeKnora Cloud'
|
||||
academycloud: {
|
||||
name: 'Academy Cloud',
|
||||
desc: 'Document parsing via Academy Cloud'
|
||||
},
|
||||
markitdown: {
|
||||
name: 'MarkItDown',
|
||||
@@ -6895,8 +6895,8 @@ export default {
|
||||
wait_agent: 'Wait for agent',
|
||||
openPage: 'Open page',
|
||||
viewPage: 'View page',
|
||||
searchWeKnoraDocs: 'Search product docs',
|
||||
readWeKnoraDoc: 'Read product doc',
|
||||
searchAcademyDocs: 'Search product docs',
|
||||
readAcademyDoc: 'Read product doc',
|
||||
readPage: 'View page',
|
||||
selectTab: 'Select tab',
|
||||
fillPage: 'Fill page'
|
||||
@@ -7171,7 +7171,7 @@ export default {
|
||||
failed: 'Operation failed',
|
||||
meta: 'Details'
|
||||
},
|
||||
weknoraDocs: {
|
||||
academyDocs: {
|
||||
pages: '{count} pages',
|
||||
hits: '{count} matching sections',
|
||||
empty: 'No matching documentation',
|
||||
@@ -8045,7 +8045,7 @@ export default {
|
||||
},
|
||||
integrations: {
|
||||
cli: {
|
||||
title: 'WeKnora CLI',
|
||||
title: 'Academy CLI',
|
||||
subtitle: 'Manage knowledge bases and documents, search content, and ask questions from your terminal. Connect scripts and AI tools through the CLI or MCP.',
|
||||
docs: 'CLI documentation',
|
||||
docsHint: 'Installation and complete command reference',
|
||||
@@ -8053,13 +8053,13 @@ export default {
|
||||
installTitle: 'Install the CLI',
|
||||
installDesc: 'Build from source with Git and Go 1.26+. This macOS / Linux example updates PATH for the current terminal only. For regular use, place the binary in a directory on PATH.',
|
||||
connectTitle: 'Connect to this server',
|
||||
connectDesc: 'Create and activate a profile named weknora, then sign in with your email and password. If that profile already exists, choose another name and update the MCP example to match.',
|
||||
connectDesc: 'Create and activate a profile named academy, then sign in with your email and password. If that profile already exists, choose another name and update the MCP example to match.',
|
||||
verifyTitle: 'Verify the connection',
|
||||
verifyDesc: 'Check server and authentication status, then list the knowledge bases your account can access.',
|
||||
commandsTitle: 'Common commands',
|
||||
commandsDesc: 'Replace KB_ID with a knowledge base ID and adapt the file path, query, and question. Uploaded documents must finish processing before they can be searched.',
|
||||
mcpTitle: 'Connect an MCP client',
|
||||
mcpDesc: 'After signing in, add this configuration to an MCP client that supports stdio. If the client cannot find weknora, set command to the absolute path of the binary.',
|
||||
mcpDesc: 'After signing in, add this configuration to an MCP client that supports stdio. If the client cannot find academy, set command to the absolute path of the binary.',
|
||||
copy: 'Copy',
|
||||
copied: 'Copied',
|
||||
},
|
||||
@@ -8224,7 +8224,7 @@ export default {
|
||||
capabilityMessageHistory: 'Message history',
|
||||
capabilityMessageHistoryHint: 'Let this key search workspace chat history and read chat-history stats. It does not grant workspace configuration access.',
|
||||
capabilityManageModels: 'Manage models',
|
||||
capabilityManageModelsHint: 'Manage model definitions, credentials, connectivity checks, and WeKnoraCloud credentials.',
|
||||
capabilityManageModelsHint: 'Manage model definitions, credentials, connectivity checks, and AcademyCloud credentials.',
|
||||
capabilityManageMcpServices: 'Manage MCP services',
|
||||
capabilityManageMcpServicesHint: 'Manage MCP services, credentials, tool approval policies, and OAuth state for this principal.',
|
||||
capabilityManageDatasources: 'Manage data sources',
|
||||
@@ -8271,14 +8271,14 @@ export default {
|
||||
directWarning: 'Direct user ID trusts the caller-supplied header. Use only for trusted server-to-server calls.',
|
||||
directWarningDetail: 'Anyone with the API key can change the user ID header to impersonate another external user and reuse or hijack that user\'s MCP OAuth authorization. Do not use this from browsers or untrusted clients; use Signed token for end-user apps.',
|
||||
signedRecommended: 'Recommended for user-facing apps: your backend signs a short-lived HS256 JWT for the external user.',
|
||||
signedFlowDetail: 'Keep the HMAC secret only on WeKnora and your trusted backend—never put it in requests or ship it to browsers. The request header carries the JWT string signed with that secret (it changes on each issuance or after expiry), not the secret itself. JWT must include sub (external user ID), tenant_id, aud=weknora, and exp (max 24h lifetime).',
|
||||
signedFlowDetail: 'Keep the HMAC secret only on Academy and your trusted backend—never put it in requests or ship it to browsers. The request header carries the JWT string signed with that secret (it changes on each issuance or after expiry), not the secret itself. JWT must include sub (external user ID), tenant_id, aud=academy, and exp (max 24h lifetime).',
|
||||
directHeader: 'User ID header',
|
||||
requireDirectHeader: 'Require user ID header',
|
||||
requireDirectHeaderDesc: 'When enabled, API Key requests without the user ID header are rejected; when disabled, all requests are treated as the whole workspace with no per-user distinction.',
|
||||
tokenHeader: 'Token header',
|
||||
tokenHeaderDesc: 'Clients send the backend-signed JWT in this fixed header.',
|
||||
hmacSecret: 'HMAC secret',
|
||||
hmacSecretDesc: 'Same secret stored in WeKnora; used only on your backend to sign JWTs—never send it as a request header.',
|
||||
hmacSecretDesc: 'Same secret stored in Academy; used only on your backend to sign JWTs—never send it as a request header.',
|
||||
secretConfigured: 'Secret configured (not shown again); enter a new value to rotate',
|
||||
secretSavedCopyHint: 'Secret saved. Copy it to your backend now — you will not be able to view it again after leaving this page.',
|
||||
generateSecret: 'Generate secret',
|
||||
@@ -8287,7 +8287,7 @@ export default {
|
||||
hmacSecretResetConfirmOk: 'Reset',
|
||||
hmacSecretResetConfirmCancel: 'Cancel',
|
||||
tokenSignExample: 'Backend JWT signing example (Go)',
|
||||
signedRequestStep0: '# 0. Sign JWT on your backend (HS256, aud=weknora, sub=user id, tenant_id={tenantId}, exp<=24h)',
|
||||
signedRequestStep0: '# 0. Sign JWT on your backend (HS256, aud=academy, sub=user id, tenant_id={tenantId}, exp<=24h)',
|
||||
signedRequestStep0Hint: '# Put the JWT in {headerName} — not the HMAC secret',
|
||||
requestExampleCreateSession: '# 1. Create a session',
|
||||
requestExampleAgentChat: '# 2. Agent chat (SSE; replace <session_id> with the id from step 1)',
|
||||
@@ -8352,7 +8352,7 @@ export default {
|
||||
},
|
||||
chrome: {
|
||||
title: 'Knowledge Assistant',
|
||||
subtitle: 'For self-hosted WeKnora: ask questions in a sidebar, clip web pages, and save Markdown notes into your knowledge bases while you browse.',
|
||||
subtitle: 'For self-hosted Academy: ask questions in a sidebar, clip web pages, and save Markdown notes into your knowledge bases while you browse.',
|
||||
capabilitiesTitle: 'Core capabilities',
|
||||
capabilities: {
|
||||
qa: {
|
||||
@@ -8386,7 +8386,7 @@ export default {
|
||||
},
|
||||
port: {
|
||||
title: 'Desktop: fixed port (recommended)',
|
||||
desc: 'On WeKnora Desktop, set a fixed API port (e.g. 37841) in API Info so the URL stays stable across restarts.'
|
||||
desc: 'On Academy Desktop, set a fixed API port (e.g. 37841) in API Info so the URL stays stable across restarts.'
|
||||
},
|
||||
install: {
|
||||
title: 'Install the extension',
|
||||
@@ -8405,8 +8405,8 @@ export default {
|
||||
storeMeta: 'Chrome Web Store · v1.0.0'
|
||||
},
|
||||
claw: {
|
||||
title: 'WeKnora Skill',
|
||||
subtitle: 'Import documents and run hybrid retrieval (vector + keyword) via the WeKnora REST API—for uploads, URL imports, Markdown entries, and cross-KB search.',
|
||||
title: 'Academy Skill',
|
||||
subtitle: 'Import documents and run hybrid retrieval (vector + keyword) via the Academy REST API—for uploads, URL imports, Markdown entries, and cross-KB search.',
|
||||
capabilitiesTitle: 'Skill capabilities',
|
||||
capabilities: {
|
||||
upload: {
|
||||
@@ -8438,7 +8438,7 @@ export default {
|
||||
},
|
||||
env: {
|
||||
title: 'Configure environment',
|
||||
desc: 'Set WEKNORA_BASE_URL and WEKNORA_API_KEY in your shell or ~/.zshrc / ~/.bashrc. The example below uses your current API base URL—replace the API Key with your actual value.'
|
||||
desc: 'Set ACADEMY_BASE_URL and ACADEMY_API_KEY in your shell or ~/.zshrc / ~/.bashrc. The example below uses your current API base URL—replace the API Key with your actual value.'
|
||||
},
|
||||
install: {
|
||||
title: 'Install the skill',
|
||||
@@ -8455,7 +8455,7 @@ export default {
|
||||
copyCmdSuccess: 'Install command copied',
|
||||
ecosystemNote: 'Skill hosted on ClawHub ({\'@\'}lyingbug/weknora). See the ClawHub page for full API docs and version history.',
|
||||
installCta: 'Open ClawHub',
|
||||
installCtaHint: 'Install WeKnora Skill · opens in a new tab',
|
||||
installCtaHint: 'Install Academy Skill · opens in a new tab',
|
||||
hubMeta: 'ClawHub · {\'@\'}lyingbug/weknora · MIT-0'
|
||||
}
|
||||
},
|
||||
|
||||
@@ -127,9 +127,9 @@ export default {
|
||||
automation: {
|
||||
conversationNotice: "この会話は自動化タスクが実行します。手動でメッセージは送信できません。保留中のリクエストは上で対応してください。",
|
||||
title: 'オートメーション',
|
||||
description: 'WeKnora アシスタントがあなたに代わって定期的にタスクを実行します。結果と承認待ちの操作を通知します。',
|
||||
description: 'Academy アシスタントがあなたに代わって定期的にタスクを実行します。結果と承認待ちの操作を通知します。',
|
||||
add: '新規オートメーション',
|
||||
addHint: 'WeKnora アシスタントに作成を頼むこともできます',
|
||||
addHint: 'Academy アシスタントに作成を頼むこともできます',
|
||||
paused: '一時停止中',
|
||||
scheduleEnded: '終了',
|
||||
scheduleEndedHint: 'この一回限りのスケジュールは終了しました。今すぐ実行するか、実行日時を変更してから再開してください。',
|
||||
@@ -181,7 +181,7 @@ export default {
|
||||
sections: {
|
||||
basic: {
|
||||
title: '基本情報',
|
||||
desc: 'WeKnora アシスタントがタスクを実行します。他のエージェントに委任する場合は、タスクに委任先と作業内容を記載してください。',
|
||||
desc: 'Academy アシスタントがタスクを実行します。他のエージェントに委任する場合は、タスクに委任先と作業内容を記載してください。',
|
||||
},
|
||||
schedule: {
|
||||
title: '実行スケジュール',
|
||||
@@ -642,12 +642,12 @@ export default {
|
||||
reopen: 'プロダクトツアー',
|
||||
steps: {
|
||||
welcome: {
|
||||
title: 'WeKnoraへようこそ',
|
||||
title: 'Academyへようこそ',
|
||||
desc: '数ステップでナレッジベース、チャット、エージェントの使い方をご紹介します。「次へ」をクリックして開始してください。'
|
||||
},
|
||||
knowledge: {
|
||||
title: 'ナレッジベースを作成',
|
||||
desc: 'すべてはここから始まります。ドキュメント、Webページ、FAQをアップロードすると、WeKnoraが自動で解析してインデックスを作成します。ここをクリックしてナレッジベースを開いてください。'
|
||||
desc: 'すべてはここから始まります。ドキュメント、Webページ、FAQをアップロードすると、Academyが自動で解析してインデックスを作成します。ここをクリックしてナレッジベースを開いてください。'
|
||||
},
|
||||
chat: {
|
||||
title: 'AIチャットを開始',
|
||||
@@ -1770,12 +1770,12 @@ export default {
|
||||
backendDescriptions: {
|
||||
cube: 'プライベート環境やオンプレミス向けのセルフホストMicroVMクラスタ',
|
||||
e2b: 'マネージドMicroVMサービス、またはE2B互換のデプロイ',
|
||||
docker: 'このWeKnoraホスト上でセッションごとに長時間稼働するコンテナを保持します。スクリプトとファイルはそのコンテナ内に残ります',
|
||||
docker: 'このAcademyホスト上でセッションごとに長時間稼働するコンテナを保持します。スクリプトとファイルはそのコンテナ内に残ります',
|
||||
},
|
||||
dockerDisabledAlert: 'このデプロイではDockerサンドボックスが有効になっていません',
|
||||
dockerDisabledHint: 'ローカルのdocker.sockはホスト上のroot権限に相当します。単一マシンのプライベート環境では、システム管理者が「設定 → システム設定 → ネットワークセキュリティ」から有効化できます。',
|
||||
dockerDisabledCard: 'このデプロイではDockerサンドボックスが無効です。この設定ではコンテナは作成されません',
|
||||
dockerHostRisk: '空欄またはunix://を指定するとWeKnoraホストのDockerデーモンを使用します。これはそのマシンのroot権限に相当します。単一ノードのプライベート環境でのみ使用してください。複数のワークスペースがホストを共有する場合はCubeまたはE2Bを推奨します。リモートのtcp://エンドポイントにはTLS証明書ディレクトリが必要です。',
|
||||
dockerHostRisk: '空欄またはunix://を指定するとAcademyホストのDockerデーモンを使用します。これはそのマシンのroot権限に相当します。単一ノードのプライベート環境でのみ使用してください。複数のワークスペースがホストを共有する場合はCubeまたはE2Bを推奨します。リモートのtcp://エンドポイントにはTLS証明書ディレクトリが必要です。',
|
||||
addConfig: 'サンドボックスを追加',
|
||||
viewClusterGuide: 'クラスタ構築ガイド',
|
||||
configName: '設定名',
|
||||
@@ -1868,11 +1868,11 @@ export default {
|
||||
policySaveFailed: 'サンドボックス実行ポリシーの更新に失敗しました',
|
||||
legacyConfig: '非推奨',
|
||||
namedBackendHint: 'ワークスペース設定が唯一のランタイムの供給元です。設定のないエージェントはスキルスクリプトを実行できません。',
|
||||
weknoraTemplateTitle: 'WeKnora標準テンプレート',
|
||||
weknoraDockerImage: 'WeKnora標準イメージ',
|
||||
weknoraDockerImageHint: 'セッションごとに専用の長時間稼働コンテナが割り当てられます。スクリプト、シェルコマンド、ファイルはすべてこのコンテナを共有し、セッション終了またはアイドルタイムアウトによる回収まで保持されます。',
|
||||
weknoraTemplateOverview: 'WeKnoraが標準ランタイムを提供します。テンプレートは接続後に検出され、存在しない場合は標準テンプレートが作成されます。',
|
||||
weknoraTemplateDescription: 'WeKnoraのスキルが必要とするPython、Node.js、CLIツール、ワークスペースパス、非root実行ユーザが含まれます。',
|
||||
academyTemplateTitle: 'Academy標準テンプレート',
|
||||
academyDockerImage: 'Academy標準イメージ',
|
||||
academyDockerImageHint: 'セッションごとに専用の長時間稼働コンテナが割り当てられます。スクリプト、シェルコマンド、ファイルはすべてこのコンテナを共有し、セッション終了またはアイドルタイムアウトによる回収まで保持されます。',
|
||||
academyTemplateOverview: 'Academyが標準ランタイムを提供します。テンプレートは接続後に検出され、存在しない場合は標準テンプレートが作成されます。',
|
||||
academyTemplateDescription: 'Academyのスキルが必要とするPython、Node.js、CLIツール、ワークスペースパス、非root実行ユーザが含まれます。',
|
||||
recommendedTag: '推奨',
|
||||
cardTemplateConfigured: 'テンプレート設定済み',
|
||||
cardCredentialMissing: 'APIキー未設定',
|
||||
@@ -1889,7 +1889,7 @@ export default {
|
||||
templateSelectPlaceholder: 'クラスタに接続してテンプレートを読み込んでください',
|
||||
templateLoadHint: 'クラスタの接続情報を入力して更新してください。公式のCLIテンプレートがない場合はHubイメージから自動構築します。デスクトップテンプレートはサイズが大きいため、下の行から個別に作成してください。DNSやイメージを変更した場合は、該当カードから再構築してください。',
|
||||
templateLoadFailed: 'テンプレートの読み込みに失敗しました',
|
||||
standardTemplateProvisioning: 'WeKnora標準テンプレートを作成しています。しばらくしてから更新してステータスを確認してください。',
|
||||
standardTemplateProvisioning: 'Academy標準テンプレートを作成しています。しばらくしてから更新してステータスを確認してください。',
|
||||
standardTemplateReplaced: '以前の標準テンプレートを削除し、再構築を開始しました。完了までお待ちください。',
|
||||
templateNotReady: '選択したテンプレートは準備ができていません。更新してビルドの完了をお待ちください。',
|
||||
connectionPassed: '接続を確認しました。以下のテンプレートはこのクラスタから読み込まれています。',
|
||||
@@ -1897,21 +1897,21 @@ export default {
|
||||
templateStepHint: 'このステップではクラスタのテンプレートを表示し、公式のCLIイメージがなければHubから構築します。デスクトップ(XFCE)テンプレートはサイズが大きいため、「作成」を押したときだけ構築します。DNSやイメージを変更した場合は該当カードから「再構築」してください。テンプレートの準備ができたら次へ進めます。',
|
||||
loadingTemplates: 'クラスタからテンプレートを読み込み中...',
|
||||
templateBuildingHint: 'テンプレートをビルド中です。このリストは自動的に更新されます。',
|
||||
templateUntaggedHint: 'ビルドは完了しましたが、デフォルトタグが付いたものがないため、サンドボックス作成時にこのテンプレートを解決できません。E2Bで削除して更新すると、WeKnoraが再構築します。',
|
||||
templateUntaggedHint: 'ビルドは完了しましたが、デフォルトタグが付いたものがないため、サンドボックス作成時にこのテンプレートを解決できません。E2Bで削除して更新すると、Academyが再構築します。',
|
||||
templateFailedReason: 'ビルドに失敗しました: {reason}',
|
||||
noTemplates: 'このクラスタからテンプレートが返されませんでした。',
|
||||
weknoraStandardTemplate: 'WeKnora標準テンプレート',
|
||||
academyStandardTemplate: 'Academy標準テンプレート',
|
||||
createStandardTemplate: '作成',
|
||||
createStandardTemplateHint: 'DNSを含む現在の接続設定でビルドされます。設定を変更した場合は、カードから再構築してください。',
|
||||
weknoraDesktopTemplate: 'WeKnoraデスクトップテンプレート',
|
||||
academyDesktopTemplate: 'Academyデスクトップテンプレート',
|
||||
createDesktopTemplate: '作成',
|
||||
createDesktopTemplateHint: '公式デスクトップイメージからXFCEグラフィカルデスクトップを構築します。CLIテンプレートよりはるかに大きいため、GUIが必要なときだけ作成してください。',
|
||||
replaceStandardTemplate: '再構築',
|
||||
replaceStandardTemplateConfirm: 'DNSを含む現在の設定でWeKnora標準テンプレートを再構築します。既存の起動可能なテンプレートは、新しいテンプレートの準備が整うまで削除されません。',
|
||||
desktopTemplateProvisioning: 'WeKnoraデスクトップテンプレートを作成しています。しばらくしてから更新してステータスを確認してください。',
|
||||
replaceStandardTemplateConfirm: 'DNSを含む現在の設定でAcademy標準テンプレートを再構築します。既存の起動可能なテンプレートは、新しいテンプレートの準備が整うまで削除されません。',
|
||||
desktopTemplateProvisioning: 'Academyデスクトップテンプレートを作成しています。しばらくしてから更新してステータスを確認してください。',
|
||||
desktopTemplateReplaced: '以前のデスクトップテンプレートを削除し、再構築を開始しました。完了までお待ちください。CLIテンプレートは変更しません。',
|
||||
desktopTemplateTag: 'デスクトップ',
|
||||
replaceDesktopTemplateConfirm: 'DNSを含む現在の設定でWeKnoraデスクトップテンプレートを再構築します。既存の起動可能なデスクトップテンプレートは、新しいテンプレートの準備が整うまで削除されません。CLIテンプレートは変更しません。',
|
||||
replaceDesktopTemplateConfirm: 'DNSを含む現在の設定でAcademyデスクトップテンプレートを再構築します。既存の起動可能なデスクトップテンプレートは、新しいテンプレートの準備が整うまで削除されません。CLIテンプレートは変更しません。',
|
||||
templateLockedBySkills: 'このサンドボックスにはすでにスキルがあります。スキル環境は現在のスナップショットに紐づいているため、ランタイムテンプレートの変更や再構築はできません。新しいサンドボックスを作成し、新しいテンプレートからスキルをインストールしてください。',
|
||||
templateLockedByInFlight: 'スキルのインストールまたは削除が進行中です。完了するまでランタイムテンプレートの変更や再構築はできません。',
|
||||
templateUnnamed: '無題のテンプレート',
|
||||
@@ -1941,7 +1941,7 @@ export default {
|
||||
cubeApiKeyOptional: '任意。認証なしのセルフホストCubeSandboxでは空欄のままにしてください',
|
||||
cubeApiKeyWhere: 'セルフホストクラスタで認証を有効にする方法',
|
||||
cubeDnsServers: 'DNSサーバ',
|
||||
cubeDnsServersHelp: '任意。WeKnora標準テンプレートに書き込まれるネームサーバのIPです。空欄の場合はクラスタのデフォルト(通常は119.29.29.29)を使用します。パブリックリゾルバへのUDP/53がブロックされている場合は、Cubeホストの/etc/resolv.confから到達可能なアドレス(10/8、172.16/12、192.168/16を除く)を指定してください。既存の標準テンプレートには、テンプレートカードで「再構築」を実行した後にのみ反映されます。',
|
||||
cubeDnsServersHelp: '任意。Academy標準テンプレートに書き込まれるネームサーバのIPです。空欄の場合はクラスタのデフォルト(通常は119.29.29.29)を使用します。パブリックリゾルバへのUDP/53がブロックされている場合は、Cubeホストの/etc/resolv.confから到達可能なアドレス(10/8、172.16/12、192.168/16を除く)を指定してください。既存の標準テンプレートには、テンプレートカードで「再構築」を実行した後にのみ反映されます。',
|
||||
cubeDnsServersPlaceholder: '例: 8.8.8.8(Enterで追加)',
|
||||
e2bApiKeyHelp: 'E2BダッシュボードのAPI Keysページで作成します。通常はe2b_で始まります。',
|
||||
e2bApiKeyWhere: 'E2BダッシュボードでAPIキーを取得',
|
||||
@@ -1971,9 +1971,9 @@ export default {
|
||||
dockerHost: 'Dockerデーモンのエンドポイント',
|
||||
dockerHostHelp: '空欄の場合はローカルのdocker CLI(DOCKER_HOSTまたは現在のdockerコンテキスト)に従うため、/var/run/docker.sockを入力する必要はありません。リモートデーモンを使う場合はtcp://host:2376を指定してTLS証明書ディレクトリを入力し、RFC1918アドレスでは「プライベートエンドポイントを許可」を有効にしてください。',
|
||||
dockerTlsCertPath: 'TLS証明書ディレクトリ',
|
||||
dockerTlsCertPathHelp: 'WeKnoraホスト上でca.pem、cert.pem、key.pemを格納しているディレクトリです。リモートデーモンでは必須です。証明書はデプロイ側でマウントされ、ここには保存されません。',
|
||||
dockerTlsCertPathHelp: 'Academyホスト上でca.pem、cert.pem、key.pemを格納しているディレクトリです。リモートデーモンでは必須です。証明書はデプロイ側でマウントされ、ここには保存されません。',
|
||||
dockerIdleTtl: 'アイドル回収(秒)',
|
||||
dockerIdleTtlHelp: 'Dockerデーモン自体にはアイドルタイムアウトがありません。この時間コマンドが実行されなかったコンテナはWeKnoraが回収し、セッションが続く場合は再作成します。空欄の場合は1800秒です。',
|
||||
dockerIdleTtlHelp: 'Dockerデーモン自体にはアイドルタイムアウトがありません。この時間コマンドが実行されなかったコンテナはAcademyが回収し、セッションが続く場合は再作成します。空欄の場合は1800秒です。',
|
||||
dockerCpuLimit: 'CPUコア数の上限',
|
||||
dockerCpuLimitHelp: 'サンドボックス1つが使用できるCPUコア数です。0の場合は組み込みのデフォルトを使用します。',
|
||||
dockerMemoryLimit: 'メモリ上限(MB)',
|
||||
@@ -2040,7 +2040,7 @@ export default {
|
||||
allocationModeHint: 'Only affects sessions that have not used a sandbox yet; existing sessions keep their placement and files are never moved.',
|
||||
allocationModeSession: 'One sandbox per session (default)',
|
||||
allocationModeUser: "Share one sandbox across a user's sessions",
|
||||
allocationModeUnavailable: 'Shared sandboxes are not enabled on this deployment (set WEKNORA_SANDBOX_USER_ALLOCATION=enabled on every replica; Redis is required).',
|
||||
allocationModeUnavailable: 'Shared sandboxes are not enabled on this deployment (set ACADEMY_SANDBOX_USER_ALLOCATION=enabled on every replica; Redis is required).',
|
||||
userSandboxRetentionDays: 'Keep an empty shared sandbox for (days)',
|
||||
userSandboxRetentionHint: 'After every session on a shared sandbox is deleted, it is removed once it has been empty this long (1–90 days). This is not a minimum file retention: Docker idle cleanup or provider failures may remove it sooner.',
|
||||
userSandboxesInInventory: "{count} of them are shared user sandboxes; each affects all of that user's sessions on this config.",
|
||||
@@ -2275,38 +2275,38 @@ export default {
|
||||
desc: '現在のロールではこの設定ページにアクセスできません。このワークスペースの管理者に必要なロールの付与を依頼してください。'
|
||||
},
|
||||
capabilityUnavailable: 'この機能は現在のデプロイでは利用できません。利用可能なページに戻りました。',
|
||||
weknoraCloud: {
|
||||
title: 'WeKnora Cloud',
|
||||
description: 'WeKnora CloudのAPPIDとAPPSECRETを設定します。この認証情報はモデルサービスとドキュメント解析エンジンで使用されます。',
|
||||
academyCloud: {
|
||||
title: 'Academy Cloud',
|
||||
description: 'Academy CloudのAPPIDとAPPSECRETを設定します。この認証情報はモデルサービスとドキュメント解析エンジンで使用されます。',
|
||||
viewDocs: 'ドキュメントを表示',
|
||||
unconfigured: '認証情報が未設定です。APPIDとAPPSECRETを入力してください。',
|
||||
configured: '認証情報は設定済みで、正常に動作しています。',
|
||||
expired: 'WeKnora Cloudの認証情報が無効になりました',
|
||||
expired: 'Academy Cloudの認証情報が無効になりました',
|
||||
expiredDefault: 'サービス再起動後に暗号化キーが変更されました。保存済みの認証情報を復号できません。認証情報を再入力してください。',
|
||||
reconfigure: '再設定',
|
||||
appIdLabel: 'APPID',
|
||||
appIdDesc: 'WeKnora CloudのアプリケーションID',
|
||||
appIdDesc: 'Academy CloudのアプリケーションID',
|
||||
appIdPlaceholder: 'APPIDを入力',
|
||||
appSecretLabel: 'APPSECRET',
|
||||
appSecretDesc: 'WeKnora Cloudのアプリケーションシークレット',
|
||||
appSecretDesc: 'Academy Cloudのアプリケーションシークレット',
|
||||
appSecretPlaceholder: 'APPSECRETを入力',
|
||||
saveHint: '認証情報は検証・暗号化されたうえで保存されます。',
|
||||
saveBtn: '認証情報を保存',
|
||||
usageTitle: '利用ガイド',
|
||||
usageSteps: '1. APPIDとAPPSECRETを保存\\\n2. 下の「クラウドモデル」でチャット、埋め込み、リランク、vlmを登録\\\n3. 解析エンジン: ナレッジベース設定 → 解析エンジン → WeKnora Cloud',
|
||||
usageSteps: '1. APPIDとAPPSECRETを保存\\\n2. 下の「クラウドモデル」でチャット、埋め込み、リランク、vlmを登録\\\n3. 解析エンジン: ナレッジベース設定 → 解析エンジン → Academy Cloud',
|
||||
fillRequired: 'APPIDとAPPSECRETを入力してください',
|
||||
saveSuccess: '認証情報を保存しました',
|
||||
saveFailed: '認証情報の保存に失敗しました',
|
||||
credentialConfigured: 'WeKnoraCloudの認証情報は設定済みです。',
|
||||
credentialConfigured: 'AcademyCloudの認証情報は設定済みです。',
|
||||
credentialExpired: '認証情報が無効になりました。再設定してください。',
|
||||
credentialUnconfigured: 'WeKnoraCloudの認証情報が未設定です。先にAPPIDとAPPSECRETを設定してください。',
|
||||
credentialUnconfigured: 'AcademyCloudの認証情報が未設定です。先にAPPIDとAPPSECRETを設定してください。',
|
||||
checkingStatus: '認証情報のステータスを確認中...',
|
||||
goToSettings: '設定へ移動',
|
||||
modelHintConfigured: 'WeKnoraCloudの認証情報は設定済みです。対応モデルは以下を参照してください:',
|
||||
modelHintConfigured: 'AcademyCloudの認証情報は設定済みです。対応モデルは以下を参照してください:',
|
||||
modelHintDocsLink: 'APIドキュメント',
|
||||
modelsSection: {
|
||||
title: 'クラウドモデル',
|
||||
descReady: 'チャット、検索、リランク、画像理解(VLM)の4種類のWeKnora Cloud標準モデルを登録します。',
|
||||
descReady: 'チャット、検索、リランク、画像理解(VLM)の4種類のAcademy Cloud標準モデルを登録します。',
|
||||
descPending: 'クラウドモデルを追加する前に、上の認証情報を保存してください。',
|
||||
statusAdded: '追加済み',
|
||||
statusPending: '認証情報が必要',
|
||||
@@ -2322,10 +2322,10 @@ export default {
|
||||
addModelsFailed: 'モデルの追加に失敗しました',
|
||||
addModelsEmbeddingFailed: '埋め込みモデルの接続テストに失敗し、ベクトルの次元数を検出できませんでした',
|
||||
addModelsDisplayName: {
|
||||
chat: 'WeKnoraCloud Chat',
|
||||
embedding: 'WeKnoraCloud Embedding',
|
||||
rerank: 'WeKnoraCloud ReRank',
|
||||
vllm: 'WeKnoraCloud Vision'
|
||||
chat: 'AcademyCloud Chat',
|
||||
embedding: 'AcademyCloud Embedding',
|
||||
rerank: 'AcademyCloud ReRank',
|
||||
vllm: 'AcademyCloud Vision'
|
||||
}
|
||||
},
|
||||
system: 'システム設定',
|
||||
@@ -2456,8 +2456,8 @@ export default {
|
||||
needsConfig: '設定が必要',
|
||||
configurable: '設定可能',
|
||||
pathPrefix: 'パスのプレフィックス(任意)',
|
||||
pathPrefixPlaceholder: '例: weknora/images',
|
||||
prefixPlaceholder: '例: weknora',
|
||||
pathPrefixPlaceholder: '例: academy/images',
|
||||
prefixPlaceholder: '例: academy',
|
||||
bucketName: 'バケット名',
|
||||
bucketPlaceholder: 'バケット名',
|
||||
minioDesc: 'S3互換のセルフホスト型オブジェクトストレージです。プライベートネットワークやプライベートクラウドでのデプロイに適しています。',
|
||||
@@ -2725,16 +2725,16 @@ export default {
|
||||
title: 'サンドボックスのシークレット',
|
||||
host: {
|
||||
title: '環境変数',
|
||||
description: 'このコンピューター上のスキルで使う個人用のキーです。WeKnoraのシステム設定やデプロイ設定ではありません。',
|
||||
description: 'このコンピューター上のスキルで使う個人用のキーです。Academyのシステム設定やデプロイ設定ではありません。',
|
||||
helpAria: '環境変数について',
|
||||
introRuntimeBody: 'スキルがこのコンピューターで動くときに注入されます。対話中にその場で渡すこともできます。保存後は平文を再表示しません。',
|
||||
loadFailed: '環境変数を読み込めませんでした。',
|
||||
sandboxTitle: 'このコンピューターで常に渡す値',
|
||||
sandboxHint: 'このコンピューターで実行するコマンドにだけ付きます。必要になったときだけ追加してください。対話中にその場で渡すこともできます。',
|
||||
nameInvalid: 'この名前は使えません。予約名(PATH や WEKNORA_ で始まる名前)は受け付けません。',
|
||||
nameInvalid: 'この名前は使えません。予約名(PATH や ACADEMY_ で始まる名前)は受け付けません。',
|
||||
deleteConfirm: '{name} を削除しますか?これ以降、このコンピューターでの実行には含まれません。',
|
||||
},
|
||||
description: 'スキルとサンドボックスで使う個人用のキーです。WeKnoraのシステム設定やデプロイ設定ではありません。',
|
||||
description: 'スキルとサンドボックスで使う個人用のキーです。Academyのシステム設定やデプロイ設定ではありません。',
|
||||
helpAria: 'サンドボックスのシークレットについて',
|
||||
introPersonalTitle: 'あなただけのもの',
|
||||
introPersonalBody: 'あなた自身のチャットや実行にのみ注入されます。他のメンバーからは見えず、他のメンバーの値があなたの値を上書きすることもありません。',
|
||||
@@ -2765,7 +2765,7 @@ export default {
|
||||
addRow: '追加',
|
||||
namePlaceholder: 'VARIABLE_NAME',
|
||||
nameRule: '英大文字、数字、アンダースコアが使用できます。先頭は英字またはアンダースコアにしてください。',
|
||||
nameInvalid: 'この名前は使用できません。PATHやWEKNORA_で始まる名前など、サンドボックスが予約している名前は指定できません。',
|
||||
nameInvalid: 'この名前は使用できません。PATHやACADEMY_で始まる名前など、サンドボックスが予約している名前は指定できません。',
|
||||
nameDuplicate: 'この名前の変数はすでにここに登録されています。',
|
||||
valuePlaceholder: '値を入力',
|
||||
storedPlaceholder: '保存済み。入力すると置き換わります',
|
||||
@@ -2974,7 +2974,7 @@ export default {
|
||||
registerSuccess: '登録が完了しました。ログインしてください',
|
||||
registerFailed: '登録に失敗しました',
|
||||
subtitle: 'AIアシスタント、ReActエージェント、Wikiナレッジベース — AI駆動のエンタープライズアーキテクチャアップグレード',
|
||||
registerSubtitle: 'アカウントを作成してWeKnoraを使い始めましょう',
|
||||
registerSubtitle: 'アカウントを作成してAcademyを使い始めましょう',
|
||||
emailPlaceholder: 'メールアドレスを入力',
|
||||
passwordPlaceholder: 'パスワードを入力',
|
||||
confirmPasswordPlaceholder: 'パスワードを再入力',
|
||||
@@ -3292,7 +3292,7 @@ export default {
|
||||
goToAgentSettings: 'エージェント設定に移動'
|
||||
},
|
||||
createChat: {
|
||||
title: 'こんにちは、WeKnoraです。あなたのナレッジを、すぐそばに',
|
||||
title: 'こんにちは、Academyです。あなたのナレッジを、すぐそばに',
|
||||
newSessionTitle: '新しいセッション',
|
||||
openProject: 'プロジェクトを選択',
|
||||
clearProject: '解除',
|
||||
@@ -3404,7 +3404,7 @@ export default {
|
||||
welcomeMessageDesc: '訪問者が最初のメッセージを送る前に埋め込みチャットに表示されます。空欄にすると非表示になります',
|
||||
showSuggestedQuestions: '質問候補',
|
||||
showSuggestedQuestionsDesc: '訪問者の最初のメッセージの前に、エージェント設定と連携ナレッジベースをもとにした質問候補を表示します',
|
||||
originsHint: 'WeKnora の URL(B)ではなく、埋め込みを許可するホストサイト(A)を入力します。1 行に 1 つの Origin(例: https://shop.example.com)。1 件以上必須。*.example.com に対応。',
|
||||
originsHint: 'Academy の URL(B)ではなく、埋め込みを許可するホストサイト(A)を入力します。1 行に 1 つの Origin(例: https://shop.example.com)。1 件以上必須。*.example.com に対応。',
|
||||
originsRequired: '許可オリジンを1件以上入力してください',
|
||||
originsInvalid: '無効なオリジン: {origin}',
|
||||
originsWildcardProd: '本番環境ではワイルドカードのオリジン「*」は使用できません',
|
||||
@@ -3462,10 +3462,10 @@ export default {
|
||||
allowFileUpload: 'ファイルアップロードを表示',
|
||||
allowFileUploadDesc: '有効にすると、訪問者は画像やドキュメントの添付をアップロードできます。紐付けたエージェントが画像アップロードに対応している必要があります。',
|
||||
webhookUrl: 'Webhook URL',
|
||||
webhookUrlPlaceholder: 'https://your-server.example.com/weknora/embed-events',
|
||||
webhookUrlDesc: '任意。WeKnoraがmessage_sent / message_receivedイベントをこのHTTPSエンドポイントにPOSTします。',
|
||||
webhookUrlPlaceholder: 'https://your-server.example.com/academy/embed-events',
|
||||
webhookUrlDesc: '任意。Academyがmessage_sent / message_receivedイベントをこのHTTPSエンドポイントにPOSTします。',
|
||||
webhookSecret: 'Webhookシークレット',
|
||||
webhookSecretPlaceholder: 'HMAC-SHA256シークレット(X-WeKnora-Signatureヘッダー)',
|
||||
webhookSecretPlaceholder: 'HMAC-SHA256シークレット(X-Academy-Signatureヘッダー)',
|
||||
webhookSecretKeep: '空欄のままにすると保存済みのシークレットを維持します',
|
||||
webhookSecretDesc: '任意。設定すると、リクエストボディに署名が付与され、サーバ側で検証できます。',
|
||||
agentWebSearchDisabledHint: 'このエージェントではWeb検索が有効になっていません。エージェント設定で有効にするまで、訪問者にWeb検索ボタンは表示されません。',
|
||||
@@ -3537,7 +3537,7 @@ export default {
|
||||
systemActor: 'システム',
|
||||
actorWithAPIKey: '{actor} · API Key · {name}',
|
||||
actorAPIKey: 'API Key · {name}',
|
||||
viaAssistant: 'WeKnora アシスタント経由',
|
||||
viaAssistant: 'Academy アシスタント経由',
|
||||
knowledgeBase: 'ナレッジベース',
|
||||
countItems: '{count}件',
|
||||
titleWithCount: '{title}ほか{count}件',
|
||||
@@ -4689,9 +4689,9 @@ export default {
|
||||
loadingInfo: '情報を読み込み中...',
|
||||
retry: '再試行',
|
||||
versionLabel: 'アプリバージョン',
|
||||
versionDescription: 'アプリケーションサービス(weknora-app)のバージョン',
|
||||
versionDescription: 'アプリケーションサービス(academy-app)のバージョン',
|
||||
frontendVersionLabel: 'UIバージョン',
|
||||
frontendVersionDescription: 'UI(weknora-ui)のビルドバージョン',
|
||||
frontendVersionDescription: 'UI(academy-ui)のビルドバージョン',
|
||||
versionMismatch: 'アプリバージョンと不一致',
|
||||
buildTimeLabel: 'ビルド日時',
|
||||
buildTimeDescription: 'システムがビルドされた日時',
|
||||
@@ -6427,7 +6427,7 @@ export default {
|
||||
videoNotSupported: 'お使いのブラウザは動画再生に対応していません'
|
||||
},
|
||||
assistant: {
|
||||
title: 'WeKnora アシスタント',
|
||||
title: 'Academy アシスタント',
|
||||
newConversation: '新しい会話',
|
||||
history: '会話履歴',
|
||||
untitledConversation: '無題の会話',
|
||||
@@ -6441,7 +6441,7 @@ export default {
|
||||
},
|
||||
welcomeTitle: '何をお手伝いしましょうか?',
|
||||
agentWelcomeDesc: 'このエージェントの設定を確認したり、モデルを変更したり、検索可能なナレッジベースを確認できます。',
|
||||
welcomeDesc: 'WeKnora の使い方にお答えするほか、ワークスペースのドキュメント解析、ナレッジベースの履歴、Wiki の問題を確認・対応し、エージェントの作成や設定もお手伝いできます。変更の前に確認するかどうかは、入力欄の下の権限レベルで決まります。',
|
||||
welcomeDesc: 'Academy の使い方にお答えするほか、ワークスペースのドキュメント解析、ナレッジベースの履歴、Wiki の問題を確認・対応し、エージェントの作成や設定もお手伝いできます。変更の前に確認するかどうかは、入力欄の下の権限レベルで決まります。',
|
||||
startFailed: 'アシスタントを起動できませんでした。もう一度お試しください。',
|
||||
askAboutDocument: '{name}に聞く',
|
||||
askAboutAnswer: 'この回答について{name}に聞く',
|
||||
@@ -6519,7 +6519,7 @@ export default {
|
||||
documentSummary: 'このドキュメントを要約して',
|
||||
failedDocuments: 'このナレッジベースで解析に失敗したドキュメントは?',
|
||||
recentActivity: 'このナレッジベースの最近の変更は?',
|
||||
formats: 'WeKnora はどのドキュメント形式に対応していますか?',
|
||||
formats: 'Academy はどのドキュメント形式に対応していますか?',
|
||||
createWiki: 'Wiki ナレッジベースの作り方は?',
|
||||
agents: 'どんなエージェントがあり、それぞれどのモデルを使っていますか?',
|
||||
messageSources: 'この回答の根拠は何ですか?',
|
||||
@@ -6704,9 +6704,9 @@ export default {
|
||||
name: 'PaddleOCR-VL Cloud',
|
||||
desc: 'PaddleOCR-VL Cloud API'
|
||||
},
|
||||
weknoracloud: {
|
||||
name: 'WeKnora Cloud',
|
||||
desc: 'WeKnora Cloudによるドキュメント解析'
|
||||
academycloud: {
|
||||
name: 'Academy Cloud',
|
||||
desc: 'Academy Cloudによるドキュメント解析'
|
||||
},
|
||||
markitdown: {
|
||||
name: 'MarkItDown',
|
||||
@@ -6895,8 +6895,8 @@ export default {
|
||||
wait_agent: 'エージェントを待機',
|
||||
openPage: 'ページを開く',
|
||||
viewPage: 'ページを確認',
|
||||
searchWeKnoraDocs: '製品ドキュメントを検索',
|
||||
readWeKnoraDoc: '製品ドキュメントを読む',
|
||||
searchAcademyDocs: '製品ドキュメントを検索',
|
||||
readAcademyDoc: '製品ドキュメントを読む',
|
||||
readPage: 'ページを確認',
|
||||
selectTab: 'タブを選択',
|
||||
fillPage: 'ページに入力'
|
||||
@@ -7171,7 +7171,7 @@ export default {
|
||||
failed: '操作に失敗しました',
|
||||
meta: '補足'
|
||||
},
|
||||
weknoraDocs: {
|
||||
academyDocs: {
|
||||
pages: 'ドキュメント {count} 件',
|
||||
hits: '一致した節 {count} 件',
|
||||
empty: '一致するドキュメントはありません',
|
||||
@@ -8045,7 +8045,7 @@ export default {
|
||||
},
|
||||
integrations: {
|
||||
cli: {
|
||||
title: 'WeKnora CLI',
|
||||
title: 'Academy CLI',
|
||||
subtitle: 'ターミナルからナレッジベースとドキュメントの管理、コンテンツの検索、質問ができます。CLIやMCPを通じてスクリプトやAIツールと連携できます。',
|
||||
docs: 'CLIドキュメント',
|
||||
docsHint: 'インストール手順と完全なコマンドリファレンス',
|
||||
@@ -8053,13 +8053,13 @@ export default {
|
||||
installTitle: 'CLIをインストール',
|
||||
installDesc: 'GitとGo 1.26以上を使ってソースからビルドします。このmacOS / Linuxの例ではPATHの設定は現在のターミナルでのみ有効です。継続的に使う場合は、バイナリをPATH上のディレクトリに配置してください。',
|
||||
connectTitle: 'このサーバに接続',
|
||||
connectDesc: 'weknoraという名前のプロファイルを作成して有効化し、メールアドレスとパスワードでサインインします。同名のプロファイルが既にある場合は別の名前を選び、MCPの例もそれに合わせて変更してください。',
|
||||
connectDesc: 'academyという名前のプロファイルを作成して有効化し、メールアドレスとパスワードでサインインします。同名のプロファイルが既にある場合は別の名前を選び、MCPの例もそれに合わせて変更してください。',
|
||||
verifyTitle: '接続を確認',
|
||||
verifyDesc: 'サーバと認証の状態を確認し、アカウントがアクセスできるナレッジベースを一覧表示します。',
|
||||
commandsTitle: 'よく使うコマンド',
|
||||
commandsDesc: 'KB_IDをナレッジベースIDに置き換え、ファイルパス・検索語・質問を必要に応じて変更してください。アップロードしたドキュメントは解析が完了するまで検索できません。',
|
||||
mcpTitle: 'MCPクライアントに接続',
|
||||
mcpDesc: 'サインイン後、この設定をstdio対応のMCPクライアントに追加してください。クライアントがweknoraを見つけられない場合は、commandをバイナリの絶対パスに変更してください。',
|
||||
mcpDesc: 'サインイン後、この設定をstdio対応のMCPクライアントに追加してください。クライアントがacademyを見つけられない場合は、commandをバイナリの絶対パスに変更してください。',
|
||||
copy: 'コピー',
|
||||
copied: 'コピーしました',
|
||||
},
|
||||
@@ -8224,7 +8224,7 @@ export default {
|
||||
capabilityMessageHistory: 'メッセージ履歴',
|
||||
capabilityMessageHistoryHint: 'ワークスペースのチャット履歴の検索と、チャット履歴の統計の読み取りができます。ワークスペース設定へのアクセス権は付与されません。',
|
||||
capabilityManageModels: 'モデルの管理',
|
||||
capabilityManageModelsHint: 'モデル定義、認証情報、接続確認、WeKnoraCloudの認証情報を管理します。',
|
||||
capabilityManageModelsHint: 'モデル定義、認証情報、接続確認、AcademyCloudの認証情報を管理します。',
|
||||
capabilityManageMcpServices: 'MCPサービスの管理',
|
||||
capabilityManageMcpServicesHint: 'このプリンシパルのMCPサービス、認証情報、ツール承認ポリシー、OAuth状態を管理します。',
|
||||
capabilityManageDatasources: 'データソースの管理',
|
||||
@@ -8271,14 +8271,14 @@ export default {
|
||||
directWarning: 'ユーザIDの直接指定は、呼び出し元が渡すヘッダーを信頼します。信頼できるサーバ間通信でのみ使用してください。',
|
||||
directWarningDetail: 'APIキーを持つ人であれば誰でもユーザIDヘッダーを書き換えて他の外部ユーザになりすまし、そのユーザのMCP OAuth認可を再利用・乗っ取ることができます。ブラウザや信頼できないクライアントからは使用せず、エンドユーザ向けアプリでは署名付きトークンを使用してください。',
|
||||
signedRecommended: 'ユーザ向けアプリに推奨: 自社バックエンドで外部ユーザ用に有効期間の短いHS256 JWTを発行します。',
|
||||
signedFlowDetail: 'HMACシークレットはWeKnoraと信頼できる自社バックエンドにのみ保存し、リクエストに含めたりブラウザに配布したりしないでください。リクエストヘッダーで送るのは、そのシークレットで署名したJWT文字列(発行ごと、または有効期限切れ後に変わります)であり、シークレット自体ではありません。JWTにはsub(外部ユーザID)、tenant_id、aud=weknora、exp(有効期間は最大24時間)を含める必要があります。',
|
||||
signedFlowDetail: 'HMACシークレットはAcademyと信頼できる自社バックエンドにのみ保存し、リクエストに含めたりブラウザに配布したりしないでください。リクエストヘッダーで送るのは、そのシークレットで署名したJWT文字列(発行ごと、または有効期限切れ後に変わります)であり、シークレット自体ではありません。JWTにはsub(外部ユーザID)、tenant_id、aud=academy、exp(有効期間は最大24時間)を含める必要があります。',
|
||||
directHeader: 'ユーザIDヘッダー',
|
||||
requireDirectHeader: 'ユーザIDヘッダーを必須にする',
|
||||
requireDirectHeaderDesc: '有効にすると、ユーザIDヘッダーのないAPIキーリクエストは拒否されます。無効の場合、すべてのリクエストはユーザを区別せずワークスペース全体として扱われます。',
|
||||
tokenHeader: 'トークンヘッダー',
|
||||
tokenHeaderDesc: 'クライアントはバックエンドで署名したJWTをこの固定ヘッダーで送信します。',
|
||||
hmacSecret: 'HMACシークレット',
|
||||
hmacSecretDesc: 'WeKnoraに保存されているものと同じシークレットです。JWTの署名のためバックエンドでのみ使用し、リクエストヘッダーとして送信しないでください。',
|
||||
hmacSecretDesc: 'Academyに保存されているものと同じシークレットです。JWTの署名のためバックエンドでのみ使用し、リクエストヘッダーとして送信しないでください。',
|
||||
secretConfigured: 'シークレットは設定済みです(再表示されません)。ローテーションするには新しい値を入力してください',
|
||||
secretSavedCopyHint: 'シークレットを保存しました。このページを離れると再表示できないため、今すぐバックエンドにコピーしてください。',
|
||||
generateSecret: 'シークレットを生成',
|
||||
@@ -8287,7 +8287,7 @@ export default {
|
||||
hmacSecretResetConfirmOk: 'リセット',
|
||||
hmacSecretResetConfirmCancel: 'キャンセル',
|
||||
tokenSignExample: 'バックエンドでのJWT署名サンプル(Go)',
|
||||
signedRequestStep0: '# 0.バックエンドでJWTに署名(HS256、aud=weknora、sub=ユーザID、tenant_id={tenantId}、exp<=24h)',
|
||||
signedRequestStep0: '# 0.バックエンドでJWTに署名(HS256、aud=academy、sub=ユーザID、tenant_id={tenantId}、exp<=24h)',
|
||||
signedRequestStep0Hint: '# HMACシークレットではなくJWTを{headerName}に設定します',
|
||||
requestExampleCreateSession: '# 1.セッションを作成',
|
||||
requestExampleAgentChat: '# 2.エージェントチャット(SSE。<session_id>はステップ1で取得したIDに置き換えてください)',
|
||||
@@ -8352,7 +8352,7 @@ export default {
|
||||
},
|
||||
chrome: {
|
||||
title: 'ナレッジアシスタント',
|
||||
subtitle: 'セルフホスト版WeKnora向け: ブラウジング中にサイドバーで質問したり、Webページをクリップしたり、Markdownメモをナレッジベースに保存したりできます。',
|
||||
subtitle: 'セルフホスト版Academy向け: ブラウジング中にサイドバーで質問したり、Webページをクリップしたり、Markdownメモをナレッジベースに保存したりできます。',
|
||||
capabilitiesTitle: '主な機能',
|
||||
capabilities: {
|
||||
qa: {
|
||||
@@ -8386,7 +8386,7 @@ export default {
|
||||
},
|
||||
port: {
|
||||
title: 'デスクトップ版: 固定ポートの設定(推奨)',
|
||||
desc: 'WeKnoraデスクトップ版では、API情報で固定ポート(例: 37841)を設定すると、再起動してもURLが変わりません。'
|
||||
desc: 'Academyデスクトップ版では、API情報で固定ポート(例: 37841)を設定すると、再起動してもURLが変わりません。'
|
||||
},
|
||||
install: {
|
||||
title: '拡張機能をインストール',
|
||||
@@ -8405,8 +8405,8 @@ export default {
|
||||
storeMeta: 'Chromeウェブストア · v1.0.0'
|
||||
},
|
||||
claw: {
|
||||
title: 'WeKnora Skill',
|
||||
subtitle: 'WeKnora REST API経由でドキュメントをインポートし、ハイブリッド検索(ベクトル+キーワード)を実行します。ファイルのアップロード、URLインポート、Markdownでの登録、ナレッジベース横断検索に対応します。',
|
||||
title: 'Academy Skill',
|
||||
subtitle: 'Academy REST API経由でドキュメントをインポートし、ハイブリッド検索(ベクトル+キーワード)を実行します。ファイルのアップロード、URLインポート、Markdownでの登録、ナレッジベース横断検索に対応します。',
|
||||
capabilitiesTitle: 'スキルの機能',
|
||||
capabilities: {
|
||||
upload: {
|
||||
@@ -8438,7 +8438,7 @@ export default {
|
||||
},
|
||||
env: {
|
||||
title: '環境変数を設定',
|
||||
desc: 'シェルまたは~/.zshrc / ~/.bashrcでWEKNORA_BASE_URLとWEKNORA_API_KEYを設定します。下記の例では現在のAPIベースURLを使用しています。APIキーは実際の値に置き換えてください。'
|
||||
desc: 'シェルまたは~/.zshrc / ~/.bashrcでACADEMY_BASE_URLとACADEMY_API_KEYを設定します。下記の例では現在のAPIベースURLを使用しています。APIキーは実際の値に置き換えてください。'
|
||||
},
|
||||
install: {
|
||||
title: 'スキルをインストール',
|
||||
@@ -8455,7 +8455,7 @@ export default {
|
||||
copyCmdSuccess: 'インストールコマンドをコピーしました',
|
||||
ecosystemNote: 'スキルはClawHub({\'@\'}lyingbug/weknora)でホストされています。完全なAPIドキュメントとバージョン履歴はClawHubページをご覧ください。',
|
||||
installCta: 'ClawHubを開く',
|
||||
installCtaHint: 'WeKnora Skillをインストール · 新しいタブで開きます',
|
||||
installCtaHint: 'Academy Skillをインストール · 新しいタブで開きます',
|
||||
hubMeta: 'ClawHub · {\'@\'}lyingbug/weknora · MIT-0'
|
||||
}
|
||||
},
|
||||
|
||||
@@ -127,9 +127,9 @@ export default {
|
||||
automation: {
|
||||
conversationNotice: "자동화 작업이 실행하는 대화입니다. 메시지를 직접 보낼 수 없습니다. 대기 중인 요청은 위에서 처리하세요.",
|
||||
title: '자동화',
|
||||
description: 'WeKnora 도우미가 예약된 시간에 사용자를 대신해 작업을 실행합니다. 결과와 승인 대기 항목을 알려드립니다.',
|
||||
description: 'Academy 도우미가 예약된 시간에 사용자를 대신해 작업을 실행합니다. 결과와 승인 대기 항목을 알려드립니다.',
|
||||
add: '새 자동화',
|
||||
addHint: 'WeKnora 어시스턴트에게 만들어 달라고 할 수도 있습니다',
|
||||
addHint: 'Academy 어시스턴트에게 만들어 달라고 할 수도 있습니다',
|
||||
paused: '일시 중지됨',
|
||||
scheduleEnded: '종료됨',
|
||||
scheduleEndedHint: '일회성 일정이 종료되었습니다. 지금 실행하거나 실행 시간을 변경한 후 재개하세요.',
|
||||
@@ -181,7 +181,7 @@ export default {
|
||||
sections: {
|
||||
basic: {
|
||||
title: '기본 정보',
|
||||
desc: 'WeKnora 도우미가 작업을 실행합니다. 다른 에이전트에 위임하려면 작업에 에이전트와 맡길 일을 명시하세요.',
|
||||
desc: 'Academy 도우미가 작업을 실행합니다. 다른 에이전트에 위임하려면 작업에 에이전트와 맡길 일을 명시하세요.',
|
||||
},
|
||||
schedule: {
|
||||
title: '실행 시간',
|
||||
@@ -754,7 +754,7 @@ export default {
|
||||
},
|
||||
integrations: {
|
||||
cli: {
|
||||
title: 'WeKnora CLI',
|
||||
title: 'Academy CLI',
|
||||
subtitle: '터미널에서 지식 베이스와 문서를 관리하고, 콘텐츠를 검색하고, 질문하세요. CLI 또는 MCP로 스크립트와 AI 도구를 연결할 수 있습니다.',
|
||||
docs: 'CLI 문서 보기',
|
||||
docsHint: '설치 안내 및 전체 명령어 참조',
|
||||
@@ -762,13 +762,13 @@ export default {
|
||||
installTitle: 'CLI 설치',
|
||||
installDesc: 'Git과 Go 1.26+로 소스에서 빌드합니다. 아래 macOS / Linux 예제의 PATH 설정은 현재 터미널에만 적용됩니다. 계속 사용하려면 바이너리를 PATH에 포함된 디렉터리에 배치하세요.',
|
||||
connectTitle: '현재 서버에 연결',
|
||||
connectDesc: 'weknora 프로필을 생성하고 활성화한 후 이메일과 비밀번호로 로그인하세요. 같은 이름의 프로필이 있다면 다른 이름을 사용하고 MCP 예제의 프로필 이름도 변경하세요.',
|
||||
connectDesc: 'academy 프로필을 생성하고 활성화한 후 이메일과 비밀번호로 로그인하세요. 같은 이름의 프로필이 있다면 다른 이름을 사용하고 MCP 예제의 프로필 이름도 변경하세요.',
|
||||
verifyTitle: '연결 확인',
|
||||
verifyDesc: '서버 및 인증 상태를 확인하고 현재 계정으로 접근할 수 있는 지식 베이스를 조회합니다.',
|
||||
commandsTitle: '주요 명령어',
|
||||
commandsDesc: 'KB_ID를 지식 베이스 ID로 바꾸고 파일 경로, 검색어, 질문을 수정하세요. 업로드한 문서는 처리가 완료되어야 검색할 수 있습니다.',
|
||||
mcpTitle: 'MCP 클라이언트 연결',
|
||||
mcpDesc: '로그인 후 stdio를 지원하는 MCP 클라이언트에 아래 설정을 추가하세요. 클라이언트가 weknora를 찾지 못하면 command를 바이너리의 절대 경로로 변경하세요.',
|
||||
mcpDesc: '로그인 후 stdio를 지원하는 MCP 클라이언트에 아래 설정을 추가하세요. 클라이언트가 academy를 찾지 못하면 command를 바이너리의 절대 경로로 변경하세요.',
|
||||
copy: '복사',
|
||||
copied: '복사됨',
|
||||
},
|
||||
@@ -780,8 +780,8 @@ export default {
|
||||
filterByAgentWithName: '에이전트별 필터: {name}',
|
||||
filterAllAgents: '전체 에이전트',
|
||||
claw: {
|
||||
title: 'WeKnora Skill',
|
||||
subtitle: 'WeKnora REST API로 문서를 가져오고 하이브리드 검색(벡터+키워드)을 수행합니다. 파일/URL/Markdown 업로드 및 검색에 사용.',
|
||||
title: 'Academy Skill',
|
||||
subtitle: 'Academy REST API로 문서를 가져오고 하이브리드 검색(벡터+키워드)을 수행합니다. 파일/URL/Markdown 업로드 및 검색에 사용.',
|
||||
capabilitiesTitle: 'Skill 기능',
|
||||
stepsTitle: '구성 단계',
|
||||
openApiSettings: 'API 정보 열기',
|
||||
@@ -790,7 +790,7 @@ export default {
|
||||
copyCmdSuccess: '설치 명령이 복사되었습니다',
|
||||
ecosystemNote: 'Skill은 ClawHub({\'@\'}lyingbug/weknora)에 호스팅됩니다. 전체 API 문서는 ClawHub 페이지를 참고하세요.',
|
||||
installCta: 'ClawHub 열기',
|
||||
installCtaHint: 'WeKnora Skill 설치 · 새 탭에서 열림',
|
||||
installCtaHint: 'Academy Skill 설치 · 새 탭에서 열림',
|
||||
hubMeta: 'ClawHub · {\'@\'}lyingbug/weknora · MIT-0',
|
||||
steps: {
|
||||
verify: {
|
||||
@@ -803,7 +803,7 @@ export default {
|
||||
},
|
||||
env: {
|
||||
title: '환경 변수 설정',
|
||||
desc: '셸 또는 ~/.zshrc, ~/.bashrc에 WEKNORA_BASE_URL과 WEKNORA_API_KEY를 설정하세요. 아래 예시는 현재 API 주소를 사용하며, API Key는 실제 값으로 바꾸세요.'
|
||||
desc: '셸 또는 ~/.zshrc, ~/.bashrc에 ACADEMY_BASE_URL과 ACADEMY_API_KEY를 설정하세요. 아래 예시는 현재 API 주소를 사용하며, API Key는 실제 값으로 바꾸세요.'
|
||||
},
|
||||
api: {
|
||||
title: 'API 자격 증명',
|
||||
@@ -835,7 +835,7 @@ export default {
|
||||
},
|
||||
chrome: {
|
||||
title: '지식 관리 어시스턴트',
|
||||
subtitle: '자체 호스팅 WeKnora와 함께: 사이드바에서 질문하고, 웹 페이지를 클리핑하며, Markdown 메모를 지식베이스에 저장하세요.',
|
||||
subtitle: '자체 호스팅 Academy와 함께: 사이드바에서 질문하고, 웹 페이지를 클리핑하며, Markdown 메모를 지식베이스에 저장하세요.',
|
||||
capabilitiesTitle: '핵심 기능',
|
||||
stepsTitle: '구성 단계',
|
||||
openApiSettings: 'API 정보 열기',
|
||||
@@ -855,7 +855,7 @@ export default {
|
||||
},
|
||||
port: {
|
||||
title: '데스크톱: 고정 포트(권장)',
|
||||
desc: 'WeKnora 데스크톱에서는 API 정보에서 고정 포트(예: 37841)를 설정하세요.'
|
||||
desc: 'Academy 데스크톱에서는 API 정보에서 고정 포트(예: 37841)를 설정하세요.'
|
||||
},
|
||||
api: {
|
||||
title: 'API 자격 증명',
|
||||
@@ -944,7 +944,7 @@ export default {
|
||||
capabilityMessageHistory: '메시지 기록',
|
||||
capabilityMessageHistoryHint: '워크스페이스 채팅 기록 검색과 채팅 기록 통계 조회를 허용합니다. 워크스페이스 설정 권한은 부여하지 않습니다.',
|
||||
capabilityManageModels: '모델 관리',
|
||||
capabilityManageModelsHint: '모델 설정, 자격 증명, 연결 테스트 및 WeKnoraCloud 자격 증명을 관리합니다.',
|
||||
capabilityManageModelsHint: '모델 설정, 자격 증명, 연결 테스트 및 AcademyCloud 자격 증명을 관리합니다.',
|
||||
capabilityManageMcpServices: 'MCP 서비스 관리',
|
||||
capabilityManageMcpServicesHint: 'MCP 서비스, 자격 증명, 도구 승인 정책 및 이 주체의 OAuth 상태를 관리합니다.',
|
||||
capabilityManageDatasources: '데이터 소스 관리',
|
||||
@@ -991,14 +991,14 @@ export default {
|
||||
directWarning: '직접 사용자 ID 모드는 요청 헤더를 신뢰합니다. 신뢰된 서버 간 호출에만 사용하세요.',
|
||||
directWarningDetail: 'API Key를 가진 호출자는 사용자 ID 헤더를 바꿔 다른 외부 사용자를 가장하고 해당 사용자의 MCP OAuth 인증을 공유하거나 탈취할 수 있습니다. 브라우저나 신뢰할 수 없는 클라이언트에는 사용하지 마세요. 최종 사용자 앱에는 서명 토큰을 사용하세요.',
|
||||
signedRecommended: '사용자 대상 앱에 권장: 비즈니스 백엔드가 외부 사용자용 단기 HS256 JWT를 서명합니다.',
|
||||
signedFlowDetail: 'HMAC secret은 WeKnora와 신뢰할 수 있는 백엔드에만 보관하세요. 요청에 넣거나 브라우저에 배포하지 마세요. 요청 헤더에는 secret이 아니라 해당 secret으로 서명한 JWT 문자열을 넣습니다(발급마다 또는 만료 후 변경). JWT에는 sub(외부 사용자 ID), tenant_id, aud=weknora, exp(최대 24시간)가 필요합니다.',
|
||||
signedFlowDetail: 'HMAC secret은 Academy와 신뢰할 수 있는 백엔드에만 보관하세요. 요청에 넣거나 브라우저에 배포하지 마세요. 요청 헤더에는 secret이 아니라 해당 secret으로 서명한 JWT 문자열을 넣습니다(발급마다 또는 만료 후 변경). JWT에는 sub(외부 사용자 ID), tenant_id, aud=academy, exp(최대 24시간)가 필요합니다.',
|
||||
directHeader: '사용자 ID 헤더',
|
||||
requireDirectHeader: '사용자 ID 헤더 필수',
|
||||
requireDirectHeaderDesc: '켜면 사용자 ID 헤더가 없는 API Key 요청을 거부하고, 끄면 워크스페이스 전체로 통일 처리하며 개별 사용자를 구분하지 않습니다.',
|
||||
tokenHeader: '토큰 헤더',
|
||||
tokenHeaderDesc: '클라이언트는 이 고정 헤더에 백엔드가 서명한 JWT를 전달합니다.',
|
||||
hmacSecret: 'HMAC secret',
|
||||
hmacSecretDesc: 'WeKnora에 저장된 것과 동일한 secret. 백엔드에서 JWT 서명에만 사용하며 요청 헤더로 보내지 않습니다.',
|
||||
hmacSecretDesc: 'Academy에 저장된 것과 동일한 secret. 백엔드에서 JWT 서명에만 사용하며 요청 헤더로 보내지 않습니다.',
|
||||
secretConfigured: 'Secret configured (not shown again); enter a new value to rotate',
|
||||
secretSavedCopyHint: 'Secret saved. Copy it to your backend now — you will not be able to view it again after leaving this page.',
|
||||
generateSecret: 'Secret 생성',
|
||||
@@ -1007,7 +1007,7 @@ export default {
|
||||
hmacSecretResetConfirmOk: '재설정',
|
||||
hmacSecretResetConfirmCancel: '취소',
|
||||
tokenSignExample: '백엔드 JWT 서명 예시 (Go)',
|
||||
signedRequestStep0: '# 0. 백엔드에서 JWT 서명 (HS256, aud=weknora, sub=사용자 ID, tenant_id={tenantId}, exp 최대 24시간)',
|
||||
signedRequestStep0: '# 0. 백엔드에서 JWT 서명 (HS256, aud=academy, sub=사용자 ID, tenant_id={tenantId}, exp 최대 24시간)',
|
||||
signedRequestStep0Hint: '# JWT를 {headerName} 헤더에 넣고 HMAC secret은 보내지 마세요',
|
||||
requestExampleCreateSession: '# 1. 세션 생성',
|
||||
requestExampleAgentChat: '# 2. Agent 대화 (SSE; <session_id>를 1단계 id로 교체)',
|
||||
@@ -2071,8 +2071,8 @@ export default {
|
||||
wait_agent: '에이전트 대기',
|
||||
openPage: '페이지 열기',
|
||||
viewPage: '페이지 확인',
|
||||
searchWeKnoraDocs: '제품 문서 검색',
|
||||
readWeKnoraDoc: '제품 문서 읽기',
|
||||
searchAcademyDocs: '제품 문서 검색',
|
||||
readAcademyDoc: '제품 문서 읽기',
|
||||
readPage: '페이지 보기',
|
||||
selectTab: '탭 선택',
|
||||
fillPage: '페이지 입력'
|
||||
@@ -2347,7 +2347,7 @@ export default {
|
||||
failed: '작업 실패',
|
||||
meta: '추가 정보'
|
||||
},
|
||||
weknoraDocs: {
|
||||
academyDocs: {
|
||||
pages: '문서 {count}편',
|
||||
hits: '일치하는 섹션 {count}개',
|
||||
empty: '일치하는 문서가 없습니다',
|
||||
@@ -2522,9 +2522,9 @@ export default {
|
||||
name: 'MarkItDown',
|
||||
desc: 'Microsoft MarkItDown 변환기 (PDF/Office/HTML 등)'
|
||||
},
|
||||
weknoracloud: {
|
||||
name: 'WeKnora Cloud',
|
||||
desc: 'WeKnora Cloud를 통한 문서 파싱'
|
||||
academycloud: {
|
||||
name: 'Academy Cloud',
|
||||
desc: 'Academy Cloud를 통한 문서 파싱'
|
||||
},
|
||||
paddleocr_vl_cloud: {
|
||||
name: 'PaddleOCR-VL Cloud',
|
||||
@@ -2604,7 +2604,7 @@ export default {
|
||||
askUser: '사용자에게 질문'
|
||||
},
|
||||
assistant: {
|
||||
title: 'WeKnora 어시스턴트',
|
||||
title: 'Academy 어시스턴트',
|
||||
newConversation: '새 대화',
|
||||
history: '대화 기록',
|
||||
untitledConversation: '제목 없는 대화',
|
||||
@@ -2618,7 +2618,7 @@ export default {
|
||||
},
|
||||
welcomeTitle: '무엇을 도와드릴까요?',
|
||||
agentWelcomeDesc: '이 에이전트의 설정을 확인하고, 모델을 변경하거나 검색할 수 있는 지식 베이스를 확인할 수 있습니다.',
|
||||
welcomeDesc: 'WeKnora 사용법을 안내하고, 워크스페이스의 문서 파싱, 지식 베이스 활동, Wiki 문제를 확인하고 처리하며, 에이전트를 만들고 설정할 수도 있습니다. 변경 전에 확인을 요청할지는 입력창 아래의 권한 수준에 따라 정해집니다.',
|
||||
welcomeDesc: 'Academy 사용법을 안내하고, 워크스페이스의 문서 파싱, 지식 베이스 활동, Wiki 문제를 확인하고 처리하며, 에이전트를 만들고 설정할 수도 있습니다. 변경 전에 확인을 요청할지는 입력창 아래의 권한 수준에 따라 정해집니다.',
|
||||
startFailed: '어시스턴트를 시작하지 못했습니다. 다시 시도해 주세요.',
|
||||
askAboutDocument: '{name}에게 묻기',
|
||||
askAboutAnswer: '이 답변에 대해 {name}에게 묻기',
|
||||
@@ -2696,7 +2696,7 @@ export default {
|
||||
documentSummary: '이 문서를 요약해 줘',
|
||||
failedDocuments: '이 지식 베이스에서 파싱에 실패한 문서는?',
|
||||
recentActivity: '이 지식 베이스에 최근 어떤 변경이 있었나요?',
|
||||
formats: 'WeKnora는 어떤 문서 형식을 지원하나요?',
|
||||
formats: 'Academy는 어떤 문서 형식을 지원하나요?',
|
||||
createWiki: 'Wiki 지식 베이스는 어떻게 만드나요?',
|
||||
agents: '어떤 에이전트가 있고, 각각 어떤 모델을 쓰나요?',
|
||||
messageSources: '이 답변의 근거는 무엇인가요?',
|
||||
@@ -3971,9 +3971,9 @@ export default {
|
||||
loadingInfo: '정보 로딩 중...',
|
||||
retry: '재시도',
|
||||
versionLabel: '앱 버전',
|
||||
versionDescription: '애플리케이션 서비스(weknora-app)의 버전 번호',
|
||||
versionDescription: '애플리케이션 서비스(academy-app)의 버전 번호',
|
||||
frontendVersionLabel: 'UI 버전',
|
||||
frontendVersionDescription: 'UI(weknora-ui) 빌드 버전 번호',
|
||||
frontendVersionDescription: 'UI(academy-ui) 빌드 버전 번호',
|
||||
versionMismatch: '앱 버전과 일치하지 않음',
|
||||
buildTimeLabel: '빌드 시간',
|
||||
buildTimeDescription: '시스템이 빌드된 시간',
|
||||
@@ -5595,7 +5595,7 @@ export default {
|
||||
systemActor: '시스템',
|
||||
actorWithAPIKey: '{actor} · API Key · {name}',
|
||||
actorAPIKey: 'API Key · {name}',
|
||||
viaAssistant: 'WeKnora 어시스턴트 경유',
|
||||
viaAssistant: 'Academy 어시스턴트 경유',
|
||||
knowledgeBase: '지식 베이스',
|
||||
countItems: '{count}개 항목',
|
||||
titleWithCount: '{title} 외 {count}개',
|
||||
@@ -5748,7 +5748,7 @@ export default {
|
||||
welcomeMessageDesc: '방문자가 임베드 채팅을 열고 첫 메시지를 보내기 전에 표시됩니다. 비우면 표시하지 않습니다',
|
||||
showSuggestedQuestions: '추천 질문',
|
||||
showSuggestedQuestionsDesc: '방문자 첫 메시지 전에 빠른 질문을 표시합니다(에이전트 설정 및 연결된 지식베이스에서 가져옴)',
|
||||
originsHint: 'WeKnora 주소(B)가 아닌 임베드를 허용할 호스트 웹사이트(A)를 입력하세요. 한 줄에 하나의 Origin(예: https://shop.example.com), 최소 1개. *.example.com 지원.',
|
||||
originsHint: 'Academy 주소(B)가 아닌 임베드를 허용할 호스트 웹사이트(A)를 입력하세요. 한 줄에 하나의 Origin(예: https://shop.example.com), 최소 1개. *.example.com 지원.',
|
||||
originsRequired: '허용 도메인을 최소 1개 입력하세요',
|
||||
originsInvalid: '잘못된 도메인: {origin}',
|
||||
originsWildcardProd: '프로덕션에서는 와일드카드 \'*\'를 사용할 수 없습니다',
|
||||
@@ -5806,10 +5806,10 @@ export default {
|
||||
allowFileUpload: '이미지 업로드 버튼 표시',
|
||||
allowFileUploadDesc: '활성화하면 방문자 입력창에 이미지 업로드 버튼이 표시됩니다. 연결된 에이전트에서 이미지 업로드가 활성화된 경우에만 버튼이 나타납니다.',
|
||||
webhookUrl: 'Webhook URL',
|
||||
webhookUrlPlaceholder: 'https://your-server.example.com/weknora/embed-events',
|
||||
webhookUrlDesc: 'Optional. WeKnora POSTs message_sent / message_received events to this HTTPS endpoint.',
|
||||
webhookUrlPlaceholder: 'https://your-server.example.com/academy/embed-events',
|
||||
webhookUrlDesc: 'Optional. Academy POSTs message_sent / message_received events to this HTTPS endpoint.',
|
||||
webhookSecret: 'Webhook secret',
|
||||
webhookSecretPlaceholder: 'HMAC-SHA256 secret (X-WeKnora-Signature header)',
|
||||
webhookSecretPlaceholder: 'HMAC-SHA256 secret (X-Academy-Signature header)',
|
||||
webhookSecretKeep: 'Leave blank to keep the saved secret',
|
||||
webhookSecretDesc: 'Optional. When set, request bodies are signed for verification on your server.',
|
||||
agentWebSearchDisabledHint: '현재 에이전트에서 웹 검색이 활성화되지 않았습니다. 방문자에게 웹 검색 버튼이 표시되지 않습니다. 에이전트 설정에서 웹 검색을 먼저 활성화하세요.',
|
||||
@@ -5910,7 +5910,7 @@ export default {
|
||||
}
|
||||
},
|
||||
createChat: {
|
||||
title: '안녕하세요, WeKnora입니다 — 당신의 지식을 손끝에',
|
||||
title: '안녕하세요, Academy입니다 — 당신의 지식을 손끝에',
|
||||
newSessionTitle: '새 세션',
|
||||
openProject: '프로젝트 선택',
|
||||
clearProject: '바인딩 해제',
|
||||
@@ -6228,7 +6228,7 @@ export default {
|
||||
registerSuccess: '가입이 완료되었습니다. 로그인해주세요',
|
||||
registerFailed: '가입 실패',
|
||||
subtitle: 'AI 어시스턴트, ReAct 에이전트, Wiki 지식베이스 — AI 기반 엔터프라이즈 아키텍처 업그레이드',
|
||||
registerSubtitle: '계정을 만들고 WeKnora를 시작하세요',
|
||||
registerSubtitle: '계정을 만들고 Academy를 시작하세요',
|
||||
emailPlaceholder: '이메일 주소 입력',
|
||||
passwordPlaceholder: '비밀번호 입력',
|
||||
confirmPasswordPlaceholder: '비밀번호 다시 입력',
|
||||
@@ -6517,16 +6517,16 @@ export default {
|
||||
title: '샌드박스 키',
|
||||
host: {
|
||||
title: '환경 변수',
|
||||
description: '이 컴퓨터의 스킬에 쓰는 개인 키이며, WeKnora 시스템이나 배포 설정이 아닙니다.',
|
||||
description: '이 컴퓨터의 스킬에 쓰는 개인 키이며, Academy 시스템이나 배포 설정이 아닙니다.',
|
||||
helpAria: '환경 변수 설명',
|
||||
introRuntimeBody: '스킬이 이 컴퓨터에서 실행될 때 주입됩니다. 대화 중에 바로 제공할 수도 있습니다. 저장 후에는 평문을 다시 보여 주지 않습니다.',
|
||||
loadFailed: '환경 변수를 불러오지 못했습니다.',
|
||||
sandboxTitle: '이 컴퓨터에서 항상 포함하는 값',
|
||||
sandboxHint: '이 컴퓨터에서 실행하는 명령에만 전달됩니다. 필요할 때만 추가하세요. 대화 중에 바로 제공할 수도 있습니다.',
|
||||
nameInvalid: '이 이름은 사용할 수 없습니다. 예약된 이름(예: PATH, WEKNORA_로 시작하는 이름)은 거부됩니다.',
|
||||
nameInvalid: '이 이름은 사용할 수 없습니다. 예약된 이름(예: PATH, ACADEMY_로 시작하는 이름)은 거부됩니다.',
|
||||
deleteConfirm: '{name}을(를) 삭제할까요? 이후 이 컴퓨터에서 실행할 때 더 이상 포함되지 않습니다.',
|
||||
},
|
||||
description: '스킬과 샌드박스에 쓰는 개인 키이며, WeKnora 시스템이나 배포 설정이 아닙니다.',
|
||||
description: '스킬과 샌드박스에 쓰는 개인 키이며, Academy 시스템이나 배포 설정이 아닙니다.',
|
||||
helpAria: '샌드박스 키 설명',
|
||||
introPersonalTitle: '나만의 값',
|
||||
introPersonalBody: '내 대화와 실행에만 주입됩니다. 다른 구성원은 볼 수 없고, 그들의 값이 내 값을 대체하지도 않습니다.',
|
||||
@@ -6557,7 +6557,7 @@ export default {
|
||||
addRow: '추가',
|
||||
namePlaceholder: 'VARIABLE_NAME',
|
||||
nameRule: '대문자, 숫자, 밑줄만 사용하며 문자 또는 밑줄로 시작해야 합니다.',
|
||||
nameInvalid: '이 이름은 사용할 수 없습니다. PATH처럼 샌드박스가 예약한 이름이나 WEKNORA_로 시작하는 이름은 허용되지 않습니다.',
|
||||
nameInvalid: '이 이름은 사용할 수 없습니다. PATH처럼 샌드박스가 예약한 이름이나 ACADEMY_로 시작하는 이름은 허용되지 않습니다.',
|
||||
nameDuplicate: '같은 이름의 변수가 이미 있습니다.',
|
||||
valuePlaceholder: '값 입력',
|
||||
storedPlaceholder: '저장됨, 입력하면 교체됩니다',
|
||||
@@ -6740,12 +6740,12 @@ export default {
|
||||
backendDescriptions: {
|
||||
cube: 'Self-hosted MicroVM cluster for private or on-premises deployments',
|
||||
e2b: 'Managed MicroVM service or an E2B-compatible deployment',
|
||||
docker: '이 WeKnora 호스트의 Docker에서 세션마다 장수명 컨테이너를 유지합니다. 스크립트와 파일이 같은 컨테이너에 남습니다',
|
||||
docker: '이 Academy 호스트의 Docker에서 세션마다 장수명 컨테이너를 유지합니다. 스크립트와 파일이 같은 컨테이너에 남습니다',
|
||||
},
|
||||
dockerDisabledAlert: '이 배포에서는 Docker 샌드박스가 켜져 있지 않습니다',
|
||||
dockerDisabledHint: '로컬 docker.sock은 호스트 root와 같습니다. 단일 머신 프라이빗 설치에서는 시스템 관리자가 설정 → 시스템 설정 → 네트워크 보안에서 켤 수 있습니다.',
|
||||
dockerDisabledCard: '이 배포에서 Docker 샌드박스가 꺼져 있어 이 구성은 컨테이너를 만들지 않습니다',
|
||||
dockerHostRisk: '비우거나 unix:// 를 쓰면 WeKnora가 있는 머신의 Docker 데몬을 사용하며, 그 권한은 해당 머신의 root와 같습니다. 프라이빗 단일 노드에만 쓰세요. 여러 워크스페이스가 같은 호스트를 쓰는 경우에는 Cube 또는 E2B를 쓰세요. 원격 tcp:// 는 TLS 인증서 디렉터리가 필요합니다.',
|
||||
dockerHostRisk: '비우거나 unix:// 를 쓰면 Academy가 있는 머신의 Docker 데몬을 사용하며, 그 권한은 해당 머신의 root와 같습니다. 프라이빗 단일 노드에만 쓰세요. 여러 워크스페이스가 같은 호스트를 쓰는 경우에는 Cube 또는 E2B를 쓰세요. 원격 tcp:// 는 TLS 인증서 디렉터리가 필요합니다.',
|
||||
addConfig: '샌드박스 추가',
|
||||
viewClusterGuide: 'Cluster setup guide',
|
||||
configName: 'Config name',
|
||||
@@ -6838,11 +6838,11 @@ export default {
|
||||
policySaveFailed: 'Failed to update sandbox execution policy',
|
||||
legacyConfig: 'Deprecated',
|
||||
namedBackendHint: 'Workspace configuration is the only runtime source. Agents without one cannot execute skill scripts.',
|
||||
weknoraTemplateTitle: 'WeKnora standard template',
|
||||
weknoraDockerImage: 'WeKnora standard image',
|
||||
weknoraDockerImageHint: 'Each session gets its own long-lived container. Scripts, shell commands and files all share it until the session ends or the idle timeout reclaims it.',
|
||||
weknoraTemplateOverview: 'WeKnora provides the standard runtime. Templates are discovered after connecting and the standard one is created when missing.',
|
||||
weknoraTemplateDescription: 'Includes the Python, Node.js, CLI tools, workspace path, and non-root execution user expected by WeKnora skills.',
|
||||
academyTemplateTitle: 'Academy standard template',
|
||||
academyDockerImage: 'Academy standard image',
|
||||
academyDockerImageHint: 'Each session gets its own long-lived container. Scripts, shell commands and files all share it until the session ends or the idle timeout reclaims it.',
|
||||
academyTemplateOverview: 'Academy provides the standard runtime. Templates are discovered after connecting and the standard one is created when missing.',
|
||||
academyTemplateDescription: 'Includes the Python, Node.js, CLI tools, workspace path, and non-root execution user expected by Academy skills.',
|
||||
recommendedTag: 'Recommended',
|
||||
templateNotConfigured: 'Template not configured',
|
||||
cardTemplateConfigured: '템플릿 설정됨',
|
||||
@@ -6859,7 +6859,7 @@ export default {
|
||||
templateSelectPlaceholder: 'Connect to the cluster to load templates',
|
||||
templateLoadHint: '클러스터 연결을 입력한 뒤 새로고침하세요. 공식 CLI 템플릿이 없으면 Hub 이미지로 자동 구축합니다. 데스크톱 템플릿은 용량이 커서 아래 행에서 따로 만들어야 합니다. DNS나 이미지를 바꾼 뒤에는 해당 카드에서 재구축하세요.',
|
||||
templateLoadFailed: 'Failed to load templates',
|
||||
standardTemplateProvisioning: 'The WeKnora standard template is being created. Refresh shortly to see its status.',
|
||||
standardTemplateProvisioning: 'The Academy standard template is being created. Refresh shortly to see its status.',
|
||||
standardTemplateReplaced: '기존 표준 템플릿을 삭제했고 재구축을 시작했습니다. 준비될 때까지 기다리세요.',
|
||||
templateNotReady: 'The selected template is not ready. Refresh and wait for the build to finish.',
|
||||
connectionPassed: 'Connection verified. Templates below are loaded from this cluster.',
|
||||
@@ -6867,21 +6867,21 @@ export default {
|
||||
templateStepHint: '이 단계에서는 클러스터 템플릿을 나열하고, 공식 CLI 이미지가 없으면 Hub에서 구축합니다. 데스크톱(XFCE) 템플릿은 용량이 커서 「만들기」를 눌렀을 때만 구축합니다. DNS나 이미지를 바꾼 뒤에는 해당 카드에서 「재구축」을 누르세요. 템플릿이 준비된 뒤에 계속할 수 있습니다.',
|
||||
loadingTemplates: 'Loading templates from the cluster...',
|
||||
templateBuildingHint: '템플릿을 구축하는 중입니다. 목록이 자동으로 새로고침됩니다.',
|
||||
templateUntaggedHint: '빌드는 끝났지만 default 태그가 붙은 빌드가 없어 샌드박스 생성 시 이 템플릿을 찾을 수 없습니다. E2B에서 템플릿을 삭제하고 새로고침하면 WeKnora가 다시 빌드합니다.',
|
||||
templateUntaggedHint: '빌드는 끝났지만 default 태그가 붙은 빌드가 없어 샌드박스 생성 시 이 템플릿을 찾을 수 없습니다. E2B에서 템플릿을 삭제하고 새로고침하면 Academy가 다시 빌드합니다.',
|
||||
templateFailedReason: '빌드 실패: {reason}',
|
||||
noTemplates: 'No templates were returned by this cluster.',
|
||||
weknoraStandardTemplate: 'WeKnora 표준 템플릿',
|
||||
academyStandardTemplate: 'Academy 표준 템플릿',
|
||||
createStandardTemplate: '만들기',
|
||||
createStandardTemplateHint: '현재 연결 설정(DNS 포함)으로 구축합니다. 설정을 바꾼 뒤에는 카드에서 재구축하세요.',
|
||||
weknoraDesktopTemplate: 'WeKnora 데스크톱 템플릿',
|
||||
academyDesktopTemplate: 'Academy 데스크톱 템플릿',
|
||||
createDesktopTemplate: '만들기',
|
||||
createDesktopTemplateHint: '공식 데스크톱 이미지로 XFCE 그래픽 데스크톱을 구축합니다. CLI 템플릿보다 훨씬 크니 GUI가 필요할 때만 만드세요.',
|
||||
replaceStandardTemplate: '재구축',
|
||||
replaceStandardTemplateConfirm: '현재 설정(DNS 포함)으로 WeKnora 표준 템플릿을 다시 만듭니다. 새 템플릿이 준비되기 전에는 기존에 쓸 수 있는 템플릿을 삭제하지 않습니다.',
|
||||
desktopTemplateProvisioning: 'WeKnora 데스크톱 템플릿을 만들고 있습니다. 잠시 후 새로고침해 상태를 확인하세요.',
|
||||
replaceStandardTemplateConfirm: '현재 설정(DNS 포함)으로 Academy 표준 템플릿을 다시 만듭니다. 새 템플릿이 준비되기 전에는 기존에 쓸 수 있는 템플릿을 삭제하지 않습니다.',
|
||||
desktopTemplateProvisioning: 'Academy 데스크톱 템플릿을 만들고 있습니다. 잠시 후 새로고침해 상태를 확인하세요.',
|
||||
desktopTemplateReplaced: '기존 데스크톱 템플릿을 삭제했고 재구축을 시작했습니다. 준비될 때까지 기다리세요. CLI 템플릿은 그대로 둡니다.',
|
||||
desktopTemplateTag: '데스크톱',
|
||||
replaceDesktopTemplateConfirm: '현재 설정(DNS 포함)으로 WeKnora 데스크톱 템플릿을 다시 만듭니다. 새 템플릿이 준비되기 전에는 기존에 쓸 수 있는 데스크톱 템플릿을 삭제하지 않으며, CLI 템플릿은 그대로 둡니다.',
|
||||
replaceDesktopTemplateConfirm: '현재 설정(DNS 포함)으로 Academy 데스크톱 템플릿을 다시 만듭니다. 새 템플릿이 준비되기 전에는 기존에 쓸 수 있는 데스크톱 템플릿을 삭제하지 않으며, CLI 템플릿은 그대로 둡니다.',
|
||||
templateLockedBySkills: '이 샌드박스에는 이미 Skill이 설치되어 있습니다. 스킬 환경이 현재 스냅샷에 묶여 있어 런타임 템플릿을 바꾸거나 재구축할 수 없습니다. 새 샌드박스를 만들고 새 템플릿에서 Skill을 다시 설치하세요.',
|
||||
templateLockedByInFlight: 'Skill을 설치하거나 제거하는 중입니다. 끝날 때까지 런타임 템플릿을 바꾸거나 재구축할 수 없습니다.',
|
||||
templateUnnamed: '이름 없는 템플릿',
|
||||
@@ -6911,7 +6911,7 @@ export default {
|
||||
cubeApiKeyOptional: 'Optional — leave empty for an unauthenticated self-hosted CubeSandbox',
|
||||
cubeApiKeyWhere: '자체 호스팅 클러스터에서 인증을 켜는 방법',
|
||||
cubeDnsServers: 'DNS 서버',
|
||||
cubeDnsServersHelp: '선택 사항입니다. WeKnora 표준 템플릿에 기록되는 nameserver IP입니다. 비워 두면 클러스터 기본값(보통 119.29.29.29)을 사용합니다. 공용 DNS로 UDP/53이 나가지 않으면 Cube 호스트 /etc/resolv.conf에서 도달 가능한 주소를 넣고, 10/8, 172.16/12, 192.168/16은 피하세요. 이미 있는 표준 템플릿은 카드에서 「재구축」을 눌러야 변경이 적용됩니다.',
|
||||
cubeDnsServersHelp: '선택 사항입니다. Academy 표준 템플릿에 기록되는 nameserver IP입니다. 비워 두면 클러스터 기본값(보통 119.29.29.29)을 사용합니다. 공용 DNS로 UDP/53이 나가지 않으면 Cube 호스트 /etc/resolv.conf에서 도달 가능한 주소를 넣고, 10/8, 172.16/12, 192.168/16은 피하세요. 이미 있는 표준 템플릿은 카드에서 「재구축」을 눌러야 변경이 적용됩니다.',
|
||||
cubeDnsServersPlaceholder: '예: 8.8.8.8, Enter로 추가',
|
||||
e2bApiKeyHelp: 'E2B 대시보드의 API Keys 페이지에서 생성하며 보통 e2b_ 로 시작합니다.',
|
||||
e2bApiKeyWhere: 'E2B 대시보드에서 API 키 발급받기',
|
||||
@@ -6941,9 +6941,9 @@ export default {
|
||||
dockerHost: 'Docker daemon endpoint',
|
||||
dockerHostHelp: 'Empty follows the local docker CLI (DOCKER_HOST or the current docker context), so you do not have to type /var/run/docker.sock. For a remote daemon use tcp://host:2376, fill in the TLS certificate directory, and turn on "allow private endpoints" for RFC1918 addresses.',
|
||||
dockerTlsCertPath: 'TLS certificate directory',
|
||||
dockerTlsCertPathHelp: 'Directory on the WeKnora host holding ca.pem, cert.pem and key.pem. Required for a remote daemon; certificates are mounted by the deployment, never stored here.',
|
||||
dockerTlsCertPathHelp: 'Directory on the Academy host holding ca.pem, cert.pem and key.pem. Required for a remote daemon; certificates are mounted by the deployment, never stored here.',
|
||||
dockerIdleTtl: 'Idle reclaim (seconds)',
|
||||
dockerIdleTtlHelp: 'The Docker daemon has no idle timeout of its own. A container that runs no command for this long is reclaimed by WeKnora and rebuilt when the session continues. Empty means 1800 seconds.',
|
||||
dockerIdleTtlHelp: 'The Docker daemon has no idle timeout of its own. A container that runs no command for this long is reclaimed by Academy and rebuilt when the session continues. Empty means 1800 seconds.',
|
||||
dockerCpuLimit: 'CPU cores',
|
||||
dockerCpuLimitHelp: 'CPU cores available to one sandbox; 0 uses the built-in default.',
|
||||
dockerMemoryLimit: 'Memory limit (MB)',
|
||||
@@ -7010,7 +7010,7 @@ export default {
|
||||
allocationModeHint: 'Only affects sessions that have not used a sandbox yet; existing sessions keep their placement and files are never moved.',
|
||||
allocationModeSession: 'One sandbox per session (default)',
|
||||
allocationModeUser: "Share one sandbox across a user's sessions",
|
||||
allocationModeUnavailable: 'Shared sandboxes are not enabled on this deployment (set WEKNORA_SANDBOX_USER_ALLOCATION=enabled on every replica; Redis is required).',
|
||||
allocationModeUnavailable: 'Shared sandboxes are not enabled on this deployment (set ACADEMY_SANDBOX_USER_ALLOCATION=enabled on every replica; Redis is required).',
|
||||
userSandboxRetentionDays: 'Keep an empty shared sandbox for (days)',
|
||||
userSandboxRetentionHint: 'After every session on a shared sandbox is deleted, it is removed once it has been empty this long (1–90 days). This is not a minimum file retention: Docker idle cleanup or provider failures may remove it sooner.',
|
||||
userSandboxesInInventory: "{count} of them are shared user sandboxes; each affects all of that user's sessions on this config.",
|
||||
@@ -7255,8 +7255,8 @@ export default {
|
||||
needsConfig: '구성 필요',
|
||||
configurable: '구성 가능',
|
||||
pathPrefix: '경로 접두사 (선택)',
|
||||
pathPrefixPlaceholder: '예: weknora/images',
|
||||
prefixPlaceholder: '예: weknora',
|
||||
pathPrefixPlaceholder: '예: academy/images',
|
||||
prefixPlaceholder: '예: academy',
|
||||
bucketName: 'Bucket 이름',
|
||||
bucketPlaceholder: '버킷 이름',
|
||||
minioDesc: 'S3 호환 자체 호스팅 오브젝트 스토리지, 내부 네트워크 및 프라이빗 클라우드 배포에 적합합니다.',
|
||||
@@ -7412,48 +7412,48 @@ export default {
|
||||
paddleocrVlEndpointHint: 'PaddleOCR-VL 전체 서비스(pipeline) 주소를 입력하세요. /layout-parsing 접미사는 불필요합니다',
|
||||
paddleocrVlCloudTokenPlaceholder: 'PaddleOCR-VL AI Studio Token'
|
||||
},
|
||||
weknoraCloud: {
|
||||
title: 'WeKnora Cloud',
|
||||
description: 'WeKnora Cloud APPID 및 APPSECRET 자격 증명을 설정합니다. 자격 증명은 모델 서비스와 문서 파싱 엔진에 사용됩니다.',
|
||||
academyCloud: {
|
||||
title: 'Academy Cloud',
|
||||
description: 'Academy Cloud APPID 및 APPSECRET 자격 증명을 설정합니다. 자격 증명은 모델 서비스와 문서 파싱 엔진에 사용됩니다.',
|
||||
viewDocs: '문서 보기',
|
||||
unconfigured: '자격 증명이 설정되지 않았습니다. APPID와 APPSECRET을 입력하세요.',
|
||||
configured: '자격 증명이 설정되었으며 정상 작동 중입니다.',
|
||||
expired: 'WeKnora Cloud 자격 증명 만료',
|
||||
expired: 'Academy Cloud 자격 증명 만료',
|
||||
expiredDefault: '서비스 재시작 후 암호화 키가 변경되어 저장된 자격 증명을 복호화할 수 없습니다. 다시 입력하세요.',
|
||||
reconfigure: '재설정',
|
||||
appIdLabel: 'APPID',
|
||||
appIdDesc: 'WeKnora Cloud 애플리케이션 ID',
|
||||
appIdDesc: 'Academy Cloud 애플리케이션 ID',
|
||||
appIdPlaceholder: 'APPID 입력',
|
||||
appSecretLabel: 'APPSECRET',
|
||||
appSecretDesc: 'WeKnora Cloud 애플리케이션 비밀키',
|
||||
appSecretDesc: 'Academy Cloud 애플리케이션 비밀키',
|
||||
appSecretPlaceholder: 'APPSECRET 입력',
|
||||
saveHint: '저장 전 서비스 연결 가능 여부를 확인하고 암호화하여 저장합니다.',
|
||||
saveBtn: '자격 증명 저장',
|
||||
usageTitle: '사용 가이드',
|
||||
usageSteps: '1. APPID / APPSECRET 저장\n2. 아래 「클라우드 모델」에서 chat, embedding, rerank, vlm 추가\n3. 문서 파싱: 지식 베이스 설정 → 파싱 엔진 → WeKnora Cloud',
|
||||
usageSteps: '1. APPID / APPSECRET 저장\n2. 아래 「클라우드 모델」에서 chat, embedding, rerank, vlm 추가\n3. 문서 파싱: 지식 베이스 설정 → 파싱 엔진 → Academy Cloud',
|
||||
fillRequired: 'APPID와 APPSECRET을 입력하세요',
|
||||
saveSuccess: '자격 증명 저장 완료',
|
||||
saveFailed: '자격 증명 저장 실패',
|
||||
credentialConfigured: 'WeKnoraCloud 자격 증명이 설정되었습니다.',
|
||||
credentialConfigured: 'AcademyCloud 자격 증명이 설정되었습니다.',
|
||||
credentialExpired: '자격 증명이 만료되었습니다. 재설정하세요.',
|
||||
credentialUnconfigured: 'WeKnoraCloud 자격 증명이 설정되지 않았습니다. APPID와 APPSECRET을 먼저 설정하세요.',
|
||||
credentialUnconfigured: 'AcademyCloud 자격 증명이 설정되지 않았습니다. APPID와 APPSECRET을 먼저 설정하세요.',
|
||||
checkingStatus: '자격 증명 상태 확인 중...',
|
||||
goToSettings: '설정으로 이동',
|
||||
modelHintConfigured: 'WeKnoraCloud 자격 증명이 설정되었습니다. 지원 모델은',
|
||||
modelHintConfigured: 'AcademyCloud 자격 증명이 설정되었습니다. 지원 모델은',
|
||||
modelHintDocsLink: 'API 문서',
|
||||
addModelsSuccess: '{count}개 모델이 추가되었습니다',
|
||||
addModelsPartial: '{success}개 추가, {failed}개 실패',
|
||||
addModelsFailed: '모델 추가 실패',
|
||||
addModelsEmbeddingFailed: 'Embedding 연결 테스트 실패, 벡터 차원을 가져올 수 없습니다',
|
||||
addModelsDisplayName: {
|
||||
chat: 'WeKnoraCloud 대화',
|
||||
embedding: 'WeKnoraCloud Embedding',
|
||||
rerank: 'WeKnoraCloud ReRank',
|
||||
vllm: 'WeKnoraCloud 비전'
|
||||
chat: 'AcademyCloud 대화',
|
||||
embedding: 'AcademyCloud Embedding',
|
||||
rerank: 'AcademyCloud ReRank',
|
||||
vllm: 'AcademyCloud 비전'
|
||||
},
|
||||
modelsSection: {
|
||||
title: '클라우드 모델',
|
||||
descReady: 'WeKnora Cloud의 네 가지 표준 모델을 등록하여 대화, 검색, 재정렬, 비전에 사용합니다.',
|
||||
descReady: 'Academy Cloud의 네 가지 표준 모델을 등록하여 대화, 검색, 재정렬, 비전에 사용합니다.',
|
||||
descPending: '위에서 자격 증명을 먼저 저장한 후 여기서 모델을 추가하세요.',
|
||||
statusAdded: '추가됨',
|
||||
statusPending: '자격 증명 필요',
|
||||
@@ -8570,10 +8570,10 @@ export default {
|
||||
},
|
||||
knowledge: {
|
||||
title: '지식 베이스 만들기',
|
||||
desc: '모든 것의 시작점입니다. 문서, 웹페이지, FAQ를 업로드하면 WeKnora가 자동으로 분석하고 색인합니다. 여기를 클릭해 지식 베이스로 이동하세요.'
|
||||
desc: '모든 것의 시작점입니다. 문서, 웹페이지, FAQ를 업로드하면 Academy가 자동으로 분석하고 색인합니다. 여기를 클릭해 지식 베이스로 이동하세요.'
|
||||
},
|
||||
welcome: {
|
||||
title: 'WeKnora에 오신 것을 환영합니다',
|
||||
title: 'Academy에 오신 것을 환영합니다',
|
||||
desc: '몇 단계만으로 지식 베이스, 대화, 에이전트의 핵심 사용법을 안내합니다. \'다음\'을 눌러 시작하세요.'
|
||||
}
|
||||
}
|
||||
|
||||
@@ -127,9 +127,9 @@ export default {
|
||||
automation: {
|
||||
conversationNotice: "Этот диалог выполняется автоматизацией. Отправка сообщений вручную недоступна. Обработайте ожидающие запросы выше.",
|
||||
title: 'Автоматизации',
|
||||
description: 'Помощник WeKnora выполняет задачи по расписанию от вашего имени. О результатах и ожидающих подтверждениях вы получите уведомление.',
|
||||
description: 'Помощник Academy выполняет задачи по расписанию от вашего имени. О результатах и ожидающих подтверждениях вы получите уведомление.',
|
||||
add: 'Новая автоматизация',
|
||||
addHint: 'Или попросите ассистента WeKnora создать её',
|
||||
addHint: 'Или попросите ассистента Academy создать её',
|
||||
paused: 'Приостановлена',
|
||||
scheduleEnded: 'Завершено',
|
||||
scheduleEndedHint: 'Время однократного запуска прошло. Запустите сейчас или измените время перед возобновлением.',
|
||||
@@ -181,7 +181,7 @@ export default {
|
||||
sections: {
|
||||
basic: {
|
||||
title: 'Основное',
|
||||
desc: 'Задачи выполняет помощник WeKnora. Для делегирования укажите в задаче агентов и порученную им работу.',
|
||||
desc: 'Задачи выполняет помощник Academy. Для делегирования укажите в задаче агентов и порученную им работу.',
|
||||
},
|
||||
schedule: {
|
||||
title: 'Расписание',
|
||||
@@ -754,7 +754,7 @@ export default {
|
||||
},
|
||||
integrations: {
|
||||
cli: {
|
||||
title: 'WeKnora CLI',
|
||||
title: 'Academy CLI',
|
||||
subtitle: 'Управляйте базами знаний и документами, ищите информацию и задавайте вопросы из терминала. Подключайте скрипты и инструменты ИИ через CLI или MCP.',
|
||||
docs: 'Документация CLI',
|
||||
docsHint: 'Установка и полный справочник команд',
|
||||
@@ -762,13 +762,13 @@ export default {
|
||||
installTitle: 'Установка CLI',
|
||||
installDesc: 'Соберите из исходного кода с помощью Git и Go 1.26+. В этом примере для macOS / Linux PATH меняется только для текущего терминала. Для постоянного использования поместите бинарный файл в каталог из PATH.',
|
||||
connectTitle: 'Подключение к этому серверу',
|
||||
connectDesc: 'Создайте и активируйте профиль weknora, затем войдите с электронной почтой и паролем. Если такой профиль уже существует, выберите другое имя и измените имя профиля в примере MCP.',
|
||||
connectDesc: 'Создайте и активируйте профиль academy, затем войдите с электронной почтой и паролем. Если такой профиль уже существует, выберите другое имя и измените имя профиля в примере MCP.',
|
||||
verifyTitle: 'Проверка подключения',
|
||||
verifyDesc: 'Проверьте состояние сервера и авторизации, затем выведите базы знаний, доступные вашей учётной записи.',
|
||||
commandsTitle: 'Основные команды',
|
||||
commandsDesc: 'Замените KB_ID на ID базы знаний и измените путь к файлу, поисковый запрос и вопрос. Загруженные документы доступны для поиска после завершения обработки.',
|
||||
mcpTitle: 'Подключение клиента MCP',
|
||||
mcpDesc: 'После входа добавьте эту конфигурацию в клиент MCP с поддержкой stdio. Если клиент не находит weknora, укажите в command абсолютный путь к бинарному файлу.',
|
||||
mcpDesc: 'После входа добавьте эту конфигурацию в клиент MCP с поддержкой stdio. Если клиент не находит academy, укажите в command абсолютный путь к бинарному файлу.',
|
||||
copy: 'Копировать',
|
||||
copied: 'Скопировано',
|
||||
},
|
||||
@@ -780,8 +780,8 @@ export default {
|
||||
filterByAgentWithName: 'Фильтр по агенту: {name}',
|
||||
filterAllAgents: 'Все агенты',
|
||||
claw: {
|
||||
title: 'WeKnora Skill',
|
||||
subtitle: 'Импорт документов и гибридный поиск (вектор + ключевые слова) через REST API WeKnora — загрузки, URL, Markdown и поиск.',
|
||||
title: 'Academy Skill',
|
||||
subtitle: 'Импорт документов и гибридный поиск (вектор + ключевые слова) через REST API Academy — загрузки, URL, Markdown и поиск.',
|
||||
capabilitiesTitle: 'Возможности Skill',
|
||||
stepsTitle: 'Шаги настройки',
|
||||
openApiSettings: 'Открыть API-информацию',
|
||||
@@ -790,7 +790,7 @@ export default {
|
||||
copyCmdSuccess: 'Команда установки скопирована',
|
||||
ecosystemNote: 'Skill размещён на ClawHub ({\'@\'}lyingbug/weknora). Полная документация API — на странице ClawHub.',
|
||||
installCta: 'Открыть ClawHub',
|
||||
installCtaHint: 'Установка WeKnora Skill · откроется в новой вкладке',
|
||||
installCtaHint: 'Установка Academy Skill · откроется в новой вкладке',
|
||||
hubMeta: 'ClawHub · {\'@\'}lyingbug/weknora · MIT-0',
|
||||
steps: {
|
||||
verify: {
|
||||
@@ -803,7 +803,7 @@ export default {
|
||||
},
|
||||
env: {
|
||||
title: 'Переменные окружения',
|
||||
desc: 'Задайте WEKNORA_BASE_URL и WEKNORA_API_KEY в shell или ~/.zshrc / ~/.bashrc. Пример ниже использует текущий API URL — замените API Key на фактическое значение.'
|
||||
desc: 'Задайте ACADEMY_BASE_URL и ACADEMY_API_KEY в shell или ~/.zshrc / ~/.bashrc. Пример ниже использует текущий API URL — замените API Key на фактическое значение.'
|
||||
},
|
||||
api: {
|
||||
title: 'API-учётные данные',
|
||||
@@ -835,7 +835,7 @@ export default {
|
||||
},
|
||||
chrome: {
|
||||
title: 'Помощник по знаниям',
|
||||
subtitle: 'Для self-hosted WeKnora: вопросы в боковой панели, клиппинг страниц и Markdown-заметки в базы знаний прямо при просмотре.',
|
||||
subtitle: 'Для self-hosted Academy: вопросы в боковой панели, клиппинг страниц и Markdown-заметки в базы знаний прямо при просмотре.',
|
||||
capabilitiesTitle: 'Возможности',
|
||||
stepsTitle: 'Шаги настройки',
|
||||
openApiSettings: 'Открыть API-информацию',
|
||||
@@ -855,7 +855,7 @@ export default {
|
||||
},
|
||||
port: {
|
||||
title: 'Десктоп: фиксированный порт',
|
||||
desc: 'В WeKnora Desktop задайте фиксированный порт API (например 37841) в API-информации.'
|
||||
desc: 'В Academy Desktop задайте фиксированный порт API (например 37841) в API-информации.'
|
||||
},
|
||||
api: {
|
||||
title: 'Получите API-учётные данные',
|
||||
@@ -944,7 +944,7 @@ export default {
|
||||
capabilityMessageHistory: 'История сообщений',
|
||||
capabilityMessageHistoryHint: 'Позволяет искать историю чатов пространства и читать статистику истории. Не даёт доступ к настройкам пространства.',
|
||||
capabilityManageModels: 'Управление моделями',
|
||||
capabilityManageModelsHint: 'Управление конфигурациями моделей, учётными данными, проверками подключения и данными WeKnoraCloud.',
|
||||
capabilityManageModelsHint: 'Управление конфигурациями моделей, учётными данными, проверками подключения и данными AcademyCloud.',
|
||||
capabilityManageMcpServices: 'Управление MCP-сервисами',
|
||||
capabilityManageMcpServicesHint: 'Управление MCP-сервисами, учётными данными, политиками подтверждения инструментов и OAuth-состоянием этого субъекта.',
|
||||
capabilityManageDatasources: 'Управление источниками данных',
|
||||
@@ -991,14 +991,14 @@ export default {
|
||||
directWarning: 'Прямой ID доверяет заголовку вызывающей стороны. Используйте только для доверенных server-to-server вызовов.',
|
||||
directWarningDetail: 'Любой, у кого есть API key, может подменить заголовок ID пользователя, выдать себя за другого внешнего пользователя и переиспользовать или перехватить его авторизацию MCP OAuth. Не используйте в браузере или ненадёжных клиентах; для пользовательских приложений выбирайте подписанный token.',
|
||||
signedRecommended: 'Рекомендуется для пользовательских приложений: ваш backend подписывает краткоживущий HS256 JWT для внешнего пользователя.',
|
||||
signedFlowDetail: 'HMAC secret храните только в WeKnora и на доверенном backend — не передавайте в запросах и не отдавайте браузеру. В заголовке запроса передаётся JWT, подписанный этим secret (меняется при каждой выдаче или после истечения), а не сам secret. JWT должен содержать sub (ID внешнего пользователя), tenant_id, aud=weknora и exp (не более 24 ч).',
|
||||
signedFlowDetail: 'HMAC secret храните только в Academy и на доверенном backend — не передавайте в запросах и не отдавайте браузеру. В заголовке запроса передаётся JWT, подписанный этим secret (меняется при каждой выдаче или после истечения), а не сам secret. JWT должен содержать sub (ID внешнего пользователя), tenant_id, aud=academy и exp (не более 24 ч).',
|
||||
directHeader: 'Заголовок ID пользователя',
|
||||
requireDirectHeader: 'Требовать заголовок ID пользователя',
|
||||
requireDirectHeaderDesc: 'Если включено, запросы без заголовка ID пользователя отклоняются; иначе все запросы обрабатываются как единое пространство без различия конечных пользователей.',
|
||||
tokenHeader: 'Заголовок token',
|
||||
tokenHeaderDesc: 'Клиент передаёт JWT, подписанный backend, в этом фиксированном заголовке.',
|
||||
hmacSecret: 'HMAC secret',
|
||||
hmacSecretDesc: 'Тот же secret, что в WeKnora; только для подписи JWT на backend — не отправляйте его в заголовке запроса.',
|
||||
hmacSecretDesc: 'Тот же secret, что в Academy; только для подписи JWT на backend — не отправляйте его в заголовке запроса.',
|
||||
secretConfigured: 'Secret настроен (повторно не показывается); введите новое значение для ротации',
|
||||
secretSavedCopyHint: 'Secret сохранён. Скопируйте его в backend сейчас — после ухода со страницы просмотреть его будет нельзя.',
|
||||
generateSecret: 'Сгенерировать secret',
|
||||
@@ -1007,7 +1007,7 @@ export default {
|
||||
hmacSecretResetConfirmOk: 'Сбросить',
|
||||
hmacSecretResetConfirmCancel: 'Отмена',
|
||||
tokenSignExample: 'Пример подписи JWT на backend (Go)',
|
||||
signedRequestStep0: '# 0. Подпишите JWT на backend (HS256, aud=weknora, sub=ID пользователя, tenant_id={tenantId}, exp не более 24 ч)',
|
||||
signedRequestStep0: '# 0. Подпишите JWT на backend (HS256, aud=academy, sub=ID пользователя, tenant_id={tenantId}, exp не более 24 ч)',
|
||||
signedRequestStep0Hint: '# Передайте JWT в заголовке {headerName}, не отправляйте HMAC secret',
|
||||
requestExampleCreateSession: '# 1. Создать session',
|
||||
requestExampleAgentChat: '# 2. Agent-чат (SSE; замените <session_id> на id из шага 1)',
|
||||
@@ -2071,8 +2071,8 @@ export default {
|
||||
wait_agent: 'Ожидать агента',
|
||||
openPage: 'Открыть страницу',
|
||||
viewPage: 'Просмотр страницы',
|
||||
searchWeKnoraDocs: 'Поиск в документации',
|
||||
readWeKnoraDoc: 'Чтение документации',
|
||||
searchAcademyDocs: 'Поиск в документации',
|
||||
readAcademyDoc: 'Чтение документации',
|
||||
readPage: 'Просмотр страницы',
|
||||
selectTab: 'Выбор вкладки',
|
||||
fillPage: 'Заполнение страницы'
|
||||
@@ -2347,7 +2347,7 @@ export default {
|
||||
failed: 'Операция не выполнена',
|
||||
meta: 'Дополнительно'
|
||||
},
|
||||
weknoraDocs: {
|
||||
academyDocs: {
|
||||
pages: 'Страниц: {count}',
|
||||
hits: 'Совпавших разделов: {count}',
|
||||
empty: 'Подходящей документации нет',
|
||||
@@ -2522,9 +2522,9 @@ export default {
|
||||
name: 'MarkItDown',
|
||||
desc: 'Конвертер Microsoft MarkItDown (PDF/Office/HTML и др.)'
|
||||
},
|
||||
weknoracloud: {
|
||||
name: 'WeKnora Cloud',
|
||||
desc: 'Парсинг документов через WeKnora Cloud'
|
||||
academycloud: {
|
||||
name: 'Academy Cloud',
|
||||
desc: 'Парсинг документов через Academy Cloud'
|
||||
},
|
||||
paddleocr_vl_cloud: {
|
||||
name: 'PaddleOCR-VL Cloud',
|
||||
@@ -2604,7 +2604,7 @@ export default {
|
||||
askUser: 'Вопрос пользователю'
|
||||
},
|
||||
assistant: {
|
||||
title: 'Ассистент WeKnora',
|
||||
title: 'Ассистент Academy',
|
||||
newConversation: 'Новый диалог',
|
||||
history: 'История диалогов',
|
||||
untitledConversation: 'Диалог без названия',
|
||||
@@ -2618,7 +2618,7 @@ export default {
|
||||
},
|
||||
welcomeTitle: 'Чем помочь?',
|
||||
agentWelcomeDesc: 'Проверьте настройки этого агента, смените модель или узнайте, в каких базах знаний он может искать.',
|
||||
welcomeDesc: 'Я отвечаю на вопросы о WeKnora, а также проверяю и обрабатываю разбор документов, активность баз знаний и проблемы Wiki в вашем пространстве, а также создаю и настраиваю агентов. Спрашивать ли подтверждение перед изменением, зависит от уровня доступа под полем ввода.',
|
||||
welcomeDesc: 'Я отвечаю на вопросы о Academy, а также проверяю и обрабатываю разбор документов, активность баз знаний и проблемы Wiki в вашем пространстве, а также создаю и настраиваю агентов. Спрашивать ли подтверждение перед изменением, зависит от уровня доступа под полем ввода.',
|
||||
startFailed: 'Не удалось запустить ассистента. Попробуйте ещё раз.',
|
||||
askAboutDocument: 'Спросить: {name}',
|
||||
askAboutAnswer: 'Спросить {name} об этом ответе',
|
||||
@@ -2696,7 +2696,7 @@ export default {
|
||||
documentSummary: 'Кратко изложи этот документ',
|
||||
failedDocuments: 'Какие документы этой базы знаний не удалось разобрать?',
|
||||
recentActivity: 'Что недавно менялось в этой базе знаний?',
|
||||
formats: 'Какие форматы документов поддерживает WeKnora?',
|
||||
formats: 'Какие форматы документов поддерживает Academy?',
|
||||
createWiki: 'Как создать базу знаний Wiki?',
|
||||
agents: 'Какие у меня есть агенты и какие модели они используют?',
|
||||
messageSources: 'На чём основан этот ответ?',
|
||||
@@ -3971,9 +3971,9 @@ export default {
|
||||
loadingInfo: 'Загрузка данных...',
|
||||
retry: 'Повторить',
|
||||
versionLabel: 'Версия приложения',
|
||||
versionDescription: 'Версия сервиса приложения (weknora-app)',
|
||||
versionDescription: 'Версия сервиса приложения (academy-app)',
|
||||
frontendVersionLabel: 'Версия UI',
|
||||
frontendVersionDescription: 'Версия сборки UI (weknora-ui)',
|
||||
frontendVersionDescription: 'Версия сборки UI (academy-ui)',
|
||||
versionMismatch: 'Не совпадает с версией приложения',
|
||||
buildTimeLabel: 'Время сборки',
|
||||
buildTimeDescription: 'Время, когда система была собрана',
|
||||
@@ -5595,7 +5595,7 @@ export default {
|
||||
systemActor: 'Система',
|
||||
actorWithAPIKey: '{actor} · API Key · {name}',
|
||||
actorAPIKey: 'API Key · {name}',
|
||||
viaAssistant: 'Через ассистента WeKnora',
|
||||
viaAssistant: 'Через ассистента Academy',
|
||||
knowledgeBase: 'База знаний',
|
||||
countItems: '{count} элем.',
|
||||
titleWithCount: '{title} и ещё {count}',
|
||||
@@ -5748,7 +5748,7 @@ export default {
|
||||
welcomeMessageDesc: 'Показывается во встроенном чате до первого сообщения посетителя; оставьте пустым, чтобы скрыть',
|
||||
showSuggestedQuestions: 'Рекомендуемые вопросы',
|
||||
showSuggestedQuestionsDesc: 'Показывать быстрые вопросы до первого сообщения посетителя — из настроек агента и связанных баз знаний',
|
||||
originsHint: 'Укажите сайты, которым разрешено встраивание (A), а не адрес WeKnora (B). Один полный Origin на строку, например https://shop.example.com; минимум один. Поддерживается *.example.com.',
|
||||
originsHint: 'Укажите сайты, которым разрешено встраивание (A), а не адрес Academy (B). Один полный Origin на строку, например https://shop.example.com; минимум один. Поддерживается *.example.com.',
|
||||
originsRequired: 'Укажите хотя бы один разрешённый домен',
|
||||
originsInvalid: 'Неверный домен: {origin}',
|
||||
originsWildcardProd: 'В production запрещён wildcard \'*\'',
|
||||
@@ -5806,10 +5806,10 @@ export default {
|
||||
allowFileUpload: 'Показывать кнопку загрузки изображений',
|
||||
allowFileUploadDesc: 'При включении посетители видят кнопку загрузки изображений в поле ввода. Кнопка появляется только если у привязанного агента включена загрузка изображений.',
|
||||
webhookUrl: 'Webhook URL',
|
||||
webhookUrlPlaceholder: 'https://your-server.example.com/weknora/embed-events',
|
||||
webhookUrlDesc: 'Optional. WeKnora POSTs message_sent / message_received events to this HTTPS endpoint.',
|
||||
webhookUrlPlaceholder: 'https://your-server.example.com/academy/embed-events',
|
||||
webhookUrlDesc: 'Optional. Academy POSTs message_sent / message_received events to this HTTPS endpoint.',
|
||||
webhookSecret: 'Webhook secret',
|
||||
webhookSecretPlaceholder: 'HMAC-SHA256 secret (X-WeKnora-Signature header)',
|
||||
webhookSecretPlaceholder: 'HMAC-SHA256 secret (X-Academy-Signature header)',
|
||||
webhookSecretKeep: 'Leave blank to keep the saved secret',
|
||||
webhookSecretDesc: 'Optional. When set, request bodies are signed for verification on your server.',
|
||||
agentWebSearchDisabledHint: 'У этого агента не включён веб-поиск. Посетители не увидят кнопку веб-поиска, пока вы не включите его в настройках агента.',
|
||||
@@ -5910,7 +5910,7 @@ export default {
|
||||
}
|
||||
},
|
||||
createChat: {
|
||||
title: 'Привет, я WeKnora — ваши знания всегда под рукой',
|
||||
title: 'Привет, я Academy — ваши знания всегда под рукой',
|
||||
newSessionTitle: 'Новая сессия',
|
||||
openProject: 'Выбрать проект',
|
||||
clearProject: 'Снять привязку',
|
||||
@@ -6228,7 +6228,7 @@ export default {
|
||||
registerSuccess: 'Регистрация завершена. Войдите в систему',
|
||||
registerFailed: 'Ошибка регистрации',
|
||||
subtitle: 'ИИ-ассистент, ReAct-агенты и Wiki-база знаний — корпоративная архитектура нового уровня на базе ИИ',
|
||||
registerSubtitle: 'Создайте аккаунт и начните работу с WeKnora',
|
||||
registerSubtitle: 'Создайте аккаунт и начните работу с Academy',
|
||||
emailPlaceholder: 'Введите адрес электронной почты',
|
||||
passwordPlaceholder: 'Введите пароль',
|
||||
confirmPasswordPlaceholder: 'Введите пароль ещё раз',
|
||||
@@ -6517,16 +6517,16 @@ export default {
|
||||
title: 'Ключи песочницы',
|
||||
host: {
|
||||
title: 'Переменные среды',
|
||||
description: 'Личные ключи для навыков на этом компьютере, а не системные или деплой-настройки WeKnora.',
|
||||
description: 'Личные ключи для навыков на этом компьютере, а не системные или деплой-настройки Academy.',
|
||||
helpAria: 'Справка по переменным среды',
|
||||
introRuntimeBody: 'Подставляются, когда навык выполняется на этом компьютере. Значение можно передать и прямо в диалоге. После сохранения открытый текст больше не показывается.',
|
||||
loadFailed: 'Не удалось загрузить переменные среды.',
|
||||
sandboxTitle: 'Всегда передавать на этом компьютере',
|
||||
sandboxHint: 'Добавляется только к командам на этом компьютере. Оставьте пустым, если не нужно. Значение можно передать и в диалоге.',
|
||||
nameInvalid: 'Это имя нельзя использовать. Зарезервированные имена (например PATH или начинающиеся с WEKNORA_) отклоняются.',
|
||||
nameInvalid: 'Это имя нельзя использовать. Зарезервированные имена (например PATH или начинающиеся с ACADEMY_) отклоняются.',
|
||||
deleteConfirm: 'Удалить {name}? Дальнейшие запуски на этом компьютере больше не будут его получать.',
|
||||
},
|
||||
description: 'Личные ключи для навыков и песочниц, а не системные или деплой-настройки WeKnora.',
|
||||
description: 'Личные ключи для навыков и песочниц, а не системные или деплой-настройки Academy.',
|
||||
helpAria: 'Справка по ключам песочницы',
|
||||
introPersonalTitle: 'Только ваши',
|
||||
introPersonalBody: 'Подставляются только в ваши диалоги и запуски. Другие участники их не видят, и их значения не заменяют ваши.',
|
||||
@@ -6557,7 +6557,7 @@ export default {
|
||||
addRow: 'Добавить',
|
||||
namePlaceholder: 'VARIABLE_NAME',
|
||||
nameRule: 'Только заглавные латинские буквы, цифры и подчёркивания; первым символом должна быть буква или подчёркивание.',
|
||||
nameInvalid: 'Это имя использовать нельзя. Имена, зарезервированные песочницей, например PATH или начинающиеся с WEKNORA_, не принимаются.',
|
||||
nameInvalid: 'Это имя использовать нельзя. Имена, зарезервированные песочницей, например PATH или начинающиеся с ACADEMY_, не принимаются.',
|
||||
nameDuplicate: 'Переменная с таким именем здесь уже есть.',
|
||||
valuePlaceholder: 'Введите значение',
|
||||
storedPlaceholder: 'Сохранено, введите новое значение для замены',
|
||||
@@ -6740,12 +6740,12 @@ export default {
|
||||
backendDescriptions: {
|
||||
cube: 'Self-hosted MicroVM cluster for private or on-premises deployments',
|
||||
e2b: 'Managed MicroVM service or an E2B-compatible deployment',
|
||||
docker: 'Держит долгоживущий контейнер на каждую сессию на этом хосте WeKnora; скрипты и файлы остаются в том же контейнере',
|
||||
docker: 'Держит долгоживущий контейнер на каждую сессию на этом хосте Academy; скрипты и файлы остаются в том же контейнере',
|
||||
},
|
||||
dockerDisabledAlert: 'Песочница Docker на этом развёртывании не включена',
|
||||
dockerDisabledHint: 'Локальный docker.sock равносилен root на хосте. Для частной одноузловой установки системный администратор может включить это в «Настройки → Системные настройки → Сетевая безопасность».',
|
||||
dockerDisabledCard: 'Песочница Docker отключена на этом развёртывании; эта конфигурация больше не создаёт контейнеры',
|
||||
dockerHostRisk: 'Пустое значение или unix:// использует демон Docker на машине WeKnora — это равносильно root на этой машине. Только для частной одноузловой установки. Если несколько пространств делят один хост, используйте Cube или E2B. Удалённый tcp:// требует каталог TLS-сертификатов.',
|
||||
dockerHostRisk: 'Пустое значение или unix:// использует демон Docker на машине Academy — это равносильно root на этой машине. Только для частной одноузловой установки. Если несколько пространств делят один хост, используйте Cube или E2B. Удалённый tcp:// требует каталог TLS-сертификатов.',
|
||||
addConfig: 'Добавить песочницу',
|
||||
viewClusterGuide: 'Cluster setup guide',
|
||||
configName: 'Config name',
|
||||
@@ -6838,11 +6838,11 @@ export default {
|
||||
policySaveFailed: 'Failed to update sandbox execution policy',
|
||||
legacyConfig: 'Deprecated',
|
||||
namedBackendHint: 'Workspace configuration is the only runtime source. Agents without one cannot execute skill scripts.',
|
||||
weknoraTemplateTitle: 'WeKnora standard template',
|
||||
weknoraDockerImage: 'WeKnora standard image',
|
||||
weknoraDockerImageHint: 'Each session gets its own long-lived container. Scripts, shell commands and files all share it until the session ends or the idle timeout reclaims it.',
|
||||
weknoraTemplateOverview: 'WeKnora provides the standard runtime. Templates are discovered after connecting and the standard one is created when missing.',
|
||||
weknoraTemplateDescription: 'Includes the Python, Node.js, CLI tools, workspace path, and non-root execution user expected by WeKnora skills.',
|
||||
academyTemplateTitle: 'Academy standard template',
|
||||
academyDockerImage: 'Academy standard image',
|
||||
academyDockerImageHint: 'Each session gets its own long-lived container. Scripts, shell commands and files all share it until the session ends or the idle timeout reclaims it.',
|
||||
academyTemplateOverview: 'Academy provides the standard runtime. Templates are discovered after connecting and the standard one is created when missing.',
|
||||
academyTemplateDescription: 'Includes the Python, Node.js, CLI tools, workspace path, and non-root execution user expected by Academy skills.',
|
||||
recommendedTag: 'Recommended',
|
||||
templateNotConfigured: 'Template not configured',
|
||||
cardTemplateConfigured: 'Шаблон настроен',
|
||||
@@ -6859,7 +6859,7 @@ export default {
|
||||
templateSelectPlaceholder: 'Connect to the cluster to load templates',
|
||||
templateLoadHint: 'Введите подключение к кластеру и обновите список. Отсутствующий официальный шаблон CLI собирается из образа Hub. Шаблоны рабочего стола больше по размеру — создайте их отдельной строкой ниже. После смены DNS или образа пересоберите шаблон на соответствующей карточке.',
|
||||
templateLoadFailed: 'Failed to load templates',
|
||||
standardTemplateProvisioning: 'The WeKnora standard template is being created. Refresh shortly to see its status.',
|
||||
standardTemplateProvisioning: 'The Academy standard template is being created. Refresh shortly to see its status.',
|
||||
standardTemplateReplaced: 'Предыдущий стандартный шаблон удалён, начата пересборка. Дождитесь готовности.',
|
||||
templateNotReady: 'The selected template is not ready. Refresh and wait for the build to finish.',
|
||||
connectionPassed: 'Connection verified. Templates below are loaded from this cluster.',
|
||||
@@ -6867,21 +6867,21 @@ export default {
|
||||
templateStepHint: 'На этом шаге перечисляются шаблоны кластера; официальный образ CLI собирается из Hub, если его ещё нет. Шаблоны рабочего стола (XFCE) тяжелее и создаются только по кнопке «Создать». После смены DNS или образа пересоберите шаблон на соответствующей карточке. Продолжить можно, когда шаблон готов.',
|
||||
loadingTemplates: 'Loading templates from the cluster...',
|
||||
templateBuildingHint: 'Шаблон собирается. Список обновится автоматически.',
|
||||
templateUntaggedHint: 'Сборки завершены, но ни одна не имеет тега default, поэтому при создании песочницы шаблон не находится. Удалите его в E2B и обновите список — WeKnora пересоберёт шаблон.',
|
||||
templateUntaggedHint: 'Сборки завершены, но ни одна не имеет тега default, поэтому при создании песочницы шаблон не находится. Удалите его в E2B и обновите список — Academy пересоберёт шаблон.',
|
||||
templateFailedReason: 'Сборка не удалась: {reason}',
|
||||
noTemplates: 'No templates were returned by this cluster.',
|
||||
weknoraStandardTemplate: 'Стандартный шаблон WeKnora',
|
||||
academyStandardTemplate: 'Стандартный шаблон Academy',
|
||||
createStandardTemplate: 'Создать',
|
||||
createStandardTemplateHint: 'Собирается с текущими настройками подключения, включая DNS. После их изменения пересоберите шаблон на карточке.',
|
||||
weknoraDesktopTemplate: 'Шаблон рабочего стола WeKnora',
|
||||
academyDesktopTemplate: 'Шаблон рабочего стола Academy',
|
||||
createDesktopTemplate: 'Создать',
|
||||
createDesktopTemplateHint: 'Собирает графический рабочий стол XFCE из официального образа. Он заметно больше шаблона CLI — создавайте его, только если нужен графический интерфейс.',
|
||||
replaceStandardTemplate: 'Пересобрать',
|
||||
replaceStandardTemplateConfirm: 'Стандартный шаблон WeKnora будет собран заново с текущими настройками, включая DNS. Предыдущий готовый шаблон не удаляется, пока замена не станет готовой к запуску.',
|
||||
desktopTemplateProvisioning: 'Шаблон рабочего стола WeKnora создаётся. Обновите список чуть позже, чтобы увидеть статус.',
|
||||
replaceStandardTemplateConfirm: 'Стандартный шаблон Academy будет собран заново с текущими настройками, включая DNS. Предыдущий готовый шаблон не удаляется, пока замена не станет готовой к запуску.',
|
||||
desktopTemplateProvisioning: 'Шаблон рабочего стола Academy создаётся. Обновите список чуть позже, чтобы увидеть статус.',
|
||||
desktopTemplateReplaced: 'Предыдущий шаблон рабочего стола удалён, начата пересборка. Дождитесь готовности. Шаблон CLI не затрагивается.',
|
||||
desktopTemplateTag: 'Рабочий стол',
|
||||
replaceDesktopTemplateConfirm: 'Шаблон рабочего стола WeKnora будет собран заново с текущими настройками, включая DNS. Предыдущий готовый шаблон рабочего стола не удаляется, пока замена не станет готовой к запуску. Шаблон CLI не затрагивается.',
|
||||
replaceDesktopTemplateConfirm: 'Шаблон рабочего стола Academy будет собран заново с текущими настройками, включая DNS. Предыдущий готовый шаблон рабочего стола не удаляется, пока замена не станет готовой к запуску. Шаблон CLI не затрагивается.',
|
||||
templateLockedBySkills: 'В этой песочнице уже установлены навыки. Среда навыков привязана к текущему снимку, поэтому шаблон нельзя сменить или пересобрать. Создайте новую песочницу и установите навыки с нового шаблона.',
|
||||
templateLockedByInFlight: 'Навык ещё устанавливается или удаляется. Шаблон нельзя сменить или пересобрать, пока это не закончится.',
|
||||
templateUnnamed: 'Шаблон без имени',
|
||||
@@ -6911,7 +6911,7 @@ export default {
|
||||
cubeApiKeyOptional: 'Optional — leave empty for an unauthenticated self-hosted CubeSandbox',
|
||||
cubeApiKeyWhere: 'Как включить аутентификацию в собственном кластере',
|
||||
cubeDnsServers: 'DNS-серверы',
|
||||
cubeDnsServersHelp: 'Необязательно. IP nameserver, которые записываются в стандартный шаблон WeKnora. Пустое значение оставляет значение кластера по умолчанию (обычно 119.29.29.29). Если UDP/53 до публичных резолверов недоступен, укажите достижимые адреса из /etc/resolv.conf хоста Cube, исключая 10/8, 172.16/12 и 192.168/16. Чтобы изменение вступило в силу, на карточке шаблона нажмите «Пересобрать».',
|
||||
cubeDnsServersHelp: 'Необязательно. IP nameserver, которые записываются в стандартный шаблон Academy. Пустое значение оставляет значение кластера по умолчанию (обычно 119.29.29.29). Если UDP/53 до публичных резолверов недоступен, укажите достижимые адреса из /etc/resolv.conf хоста Cube, исключая 10/8, 172.16/12 и 192.168/16. Чтобы изменение вступило в силу, на карточке шаблона нажмите «Пересобрать».',
|
||||
cubeDnsServersPlaceholder: 'например 8.8.8.8, Enter чтобы добавить',
|
||||
e2bApiKeyHelp: 'Создайте ключ на странице API Keys в консоли E2B; обычно он начинается с e2b_.',
|
||||
e2bApiKeyWhere: 'Получить API-ключ в консоли E2B',
|
||||
@@ -6941,9 +6941,9 @@ export default {
|
||||
dockerHost: 'Docker daemon endpoint',
|
||||
dockerHostHelp: 'Empty follows the local docker CLI (DOCKER_HOST or the current docker context), so you do not have to type /var/run/docker.sock. For a remote daemon use tcp://host:2376, fill in the TLS certificate directory, and turn on "allow private endpoints" for RFC1918 addresses.',
|
||||
dockerTlsCertPath: 'TLS certificate directory',
|
||||
dockerTlsCertPathHelp: 'Directory on the WeKnora host holding ca.pem, cert.pem and key.pem. Required for a remote daemon; certificates are mounted by the deployment, never stored here.',
|
||||
dockerTlsCertPathHelp: 'Directory on the Academy host holding ca.pem, cert.pem and key.pem. Required for a remote daemon; certificates are mounted by the deployment, never stored here.',
|
||||
dockerIdleTtl: 'Idle reclaim (seconds)',
|
||||
dockerIdleTtlHelp: 'The Docker daemon has no idle timeout of its own. A container that runs no command for this long is reclaimed by WeKnora and rebuilt when the session continues. Empty means 1800 seconds.',
|
||||
dockerIdleTtlHelp: 'The Docker daemon has no idle timeout of its own. A container that runs no command for this long is reclaimed by Academy and rebuilt when the session continues. Empty means 1800 seconds.',
|
||||
dockerCpuLimit: 'CPU cores',
|
||||
dockerCpuLimitHelp: 'CPU cores available to one sandbox; 0 uses the built-in default.',
|
||||
dockerMemoryLimit: 'Memory limit (MB)',
|
||||
@@ -7010,7 +7010,7 @@ export default {
|
||||
allocationModeHint: 'Only affects sessions that have not used a sandbox yet; existing sessions keep their placement and files are never moved.',
|
||||
allocationModeSession: 'One sandbox per session (default)',
|
||||
allocationModeUser: "Share one sandbox across a user's sessions",
|
||||
allocationModeUnavailable: 'Shared sandboxes are not enabled on this deployment (set WEKNORA_SANDBOX_USER_ALLOCATION=enabled on every replica; Redis is required).',
|
||||
allocationModeUnavailable: 'Shared sandboxes are not enabled on this deployment (set ACADEMY_SANDBOX_USER_ALLOCATION=enabled on every replica; Redis is required).',
|
||||
userSandboxRetentionDays: 'Keep an empty shared sandbox for (days)',
|
||||
userSandboxRetentionHint: 'After every session on a shared sandbox is deleted, it is removed once it has been empty this long (1–90 days). This is not a minimum file retention: Docker idle cleanup or provider failures may remove it sooner.',
|
||||
userSandboxesInInventory: "{count} of them are shared user sandboxes; each affects all of that user's sessions on this config.",
|
||||
@@ -7255,8 +7255,8 @@ export default {
|
||||
needsConfig: 'Требует настройки',
|
||||
configurable: 'Настраиваемое',
|
||||
pathPrefix: 'Префикс пути (необязательно)',
|
||||
pathPrefixPlaceholder: 'напр. weknora/images',
|
||||
prefixPlaceholder: 'напр. weknora',
|
||||
pathPrefixPlaceholder: 'напр. academy/images',
|
||||
prefixPlaceholder: 'напр. academy',
|
||||
bucketName: 'Имя бакета',
|
||||
bucketPlaceholder: 'Имя бакета',
|
||||
minioDesc: 'S3-совместимое самостоятельно размещаемое объектное хранилище для внутренних сетей и частного облака.',
|
||||
@@ -7412,48 +7412,48 @@ export default {
|
||||
paddleocrVlEndpointHint: 'Адрес полного сервиса PaddleOCR-VL (pipeline); суффикс /layout-parsing не требуется',
|
||||
paddleocrVlCloudTokenPlaceholder: 'Токен PaddleOCR-VL AI Studio'
|
||||
},
|
||||
weknoraCloud: {
|
||||
title: 'WeKnora Cloud',
|
||||
description: 'Настройте учётные данные APPID и APPSECRET для WeKnora Cloud. Данные используются для модельных сервисов и движка парсинга документов.',
|
||||
academyCloud: {
|
||||
title: 'Academy Cloud',
|
||||
description: 'Настройте учётные данные APPID и APPSECRET для Academy Cloud. Данные используются для модельных сервисов и движка парсинга документов.',
|
||||
viewDocs: 'Документация',
|
||||
unconfigured: 'Учётные данные не настроены. Заполните APPID и APPSECRET.',
|
||||
configured: 'Учётные данные настроены, статус в норме.',
|
||||
expired: 'Учётные данные WeKnora Cloud истекли',
|
||||
expired: 'Учётные данные Academy Cloud истекли',
|
||||
expiredDefault: 'Ключ шифрования изменился после перезапуска. Сохранённые данные не могут быть расшифрованы. Введите данные заново.',
|
||||
reconfigure: 'Перенастроить',
|
||||
appIdLabel: 'APPID',
|
||||
appIdDesc: 'ID приложения WeKnora Cloud',
|
||||
appIdDesc: 'ID приложения Academy Cloud',
|
||||
appIdPlaceholder: 'Введите APPID',
|
||||
appSecretLabel: 'APPSECRET',
|
||||
appSecretDesc: 'Секрет приложения WeKnora Cloud',
|
||||
appSecretDesc: 'Секрет приложения Academy Cloud',
|
||||
appSecretPlaceholder: 'Введите APPSECRET',
|
||||
saveHint: 'Данные будут проверены и зашифрованы перед сохранением.',
|
||||
saveBtn: 'Сохранить',
|
||||
usageTitle: 'Инструкция',
|
||||
usageSteps: '1. Сохраните APPID и APPSECRET\n2. Добавьте chat, embedding, rerank и vlm в разделе «Облачные модели» ниже\n3. Парсинг: Настройки БЗ → Движок парсинга → WeKnora Cloud',
|
||||
usageSteps: '1. Сохраните APPID и APPSECRET\n2. Добавьте chat, embedding, rerank и vlm в разделе «Облачные модели» ниже\n3. Парсинг: Настройки БЗ → Движок парсинга → Academy Cloud',
|
||||
fillRequired: 'Заполните APPID и APPSECRET',
|
||||
saveSuccess: 'Учётные данные сохранены',
|
||||
saveFailed: 'Не удалось сохранить данные',
|
||||
credentialConfigured: 'Учётные данные WeKnoraCloud настроены.',
|
||||
credentialConfigured: 'Учётные данные AcademyCloud настроены.',
|
||||
credentialExpired: 'Данные истекли. Перенастройте.',
|
||||
credentialUnconfigured: 'Учётные данные WeKnoraCloud не настроены. Заполните APPID и APPSECRET.',
|
||||
credentialUnconfigured: 'Учётные данные AcademyCloud не настроены. Заполните APPID и APPSECRET.',
|
||||
checkingStatus: 'Проверка статуса...',
|
||||
goToSettings: 'Перейти в настройки',
|
||||
modelHintConfigured: 'Учётные данные WeKnoraCloud настроены. Поддерживаемые модели см. в',
|
||||
modelHintConfigured: 'Учётные данные AcademyCloud настроены. Поддерживаемые модели см. в',
|
||||
modelHintDocsLink: 'документации API',
|
||||
addModelsSuccess: 'Успешно добавлено моделей: {count}',
|
||||
addModelsPartial: 'Добавлено: {success}, ошибок: {failed}',
|
||||
addModelsFailed: 'Не удалось добавить модели',
|
||||
addModelsEmbeddingFailed: 'Тест подключения Embedding не пройден; не удалось определить размерность вектора',
|
||||
addModelsDisplayName: {
|
||||
chat: 'WeKnoraCloud Chat',
|
||||
embedding: 'WeKnoraCloud Embedding',
|
||||
rerank: 'WeKnoraCloud ReRank',
|
||||
vllm: 'WeKnoraCloud Vision'
|
||||
chat: 'AcademyCloud Chat',
|
||||
embedding: 'AcademyCloud Embedding',
|
||||
rerank: 'AcademyCloud ReRank',
|
||||
vllm: 'AcademyCloud Vision'
|
||||
},
|
||||
modelsSection: {
|
||||
title: 'Облачные модели',
|
||||
descReady: 'Зарегистрируйте четыре стандартные модели WeKnora Cloud для чата, поиска, реранкинга и зрения.',
|
||||
descReady: 'Зарегистрируйте четыре стандартные модели Academy Cloud для чата, поиска, реранкинга и зрения.',
|
||||
descPending: 'Сначала сохраните учётные данные выше, затем добавьте модели здесь.',
|
||||
statusAdded: 'Добавлена',
|
||||
statusPending: 'Нужны учётные данные',
|
||||
@@ -8570,10 +8570,10 @@ export default {
|
||||
},
|
||||
knowledge: {
|
||||
title: 'Создайте базу знаний',
|
||||
desc: 'С этого всё начинается: загружайте документы, веб-страницы или FAQ, и WeKnora автоматически разберёт и проиндексирует их. Нажмите здесь, чтобы открыть базы знаний.'
|
||||
desc: 'С этого всё начинается: загружайте документы, веб-страницы или FAQ, и Academy автоматически разберёт и проиндексирует их. Нажмите здесь, чтобы открыть базы знаний.'
|
||||
},
|
||||
welcome: {
|
||||
title: 'Добро пожаловать в WeKnora',
|
||||
title: 'Добро пожаловать в Academy',
|
||||
desc: 'Несколько простых шагов познакомят вас с базами знаний, чатом и агентами. Нажмите «Далее», чтобы начать.'
|
||||
}
|
||||
}
|
||||
|
||||
@@ -127,9 +127,9 @@ export default {
|
||||
automation: {
|
||||
conversationNotice: "此会话由自动化任务运行,不能手动发送消息。请在上方处理待审批事项。",
|
||||
title: '自动化',
|
||||
description: '让 WeKnora 助手按计划以你的身份执行任务,结果和待审批事项会通知你。',
|
||||
description: '让 Academy 助手按计划以你的身份执行任务,结果和待审批事项会通知你。',
|
||||
add: '新建自动化',
|
||||
addHint: '也可以直接让 WeKnora 助手帮你创建',
|
||||
addHint: '也可以直接让 Academy 助手帮你创建',
|
||||
paused: '已暂停',
|
||||
scheduleEnded: '已结束',
|
||||
scheduleEndedHint: '一次性计划已结束。可立即运行,或修改运行时间后恢复。',
|
||||
@@ -181,7 +181,7 @@ export default {
|
||||
sections: {
|
||||
basic: {
|
||||
title: '基本信息',
|
||||
desc: '任务由 WeKnora 助手执行。需要其他智能体时,请在任务中写明委派对象和工作。',
|
||||
desc: '任务由 Academy 助手执行。需要其他智能体时,请在任务中写明委派对象和工作。',
|
||||
},
|
||||
schedule: {
|
||||
title: '运行时间',
|
||||
@@ -754,7 +754,7 @@ export default {
|
||||
},
|
||||
integrations: {
|
||||
cli: {
|
||||
title: 'WeKnora CLI',
|
||||
title: 'Academy CLI',
|
||||
subtitle: '在终端中管理知识库和文档、检索内容并发起问答,也可通过脚本或 MCP 接入 AI 工具。',
|
||||
docs: '查看 CLI 文档',
|
||||
docsHint: '安装说明与完整命令参考',
|
||||
@@ -762,13 +762,13 @@ export default {
|
||||
installTitle: '安装 CLI',
|
||||
installDesc: '目前支持源码构建,需要 Git 和 Go 1.26+。以下示例适用于 macOS / Linux,PATH 设置仅在当前终端生效;长期使用请将二进制放入 PATH 目录。',
|
||||
connectTitle: '连接当前服务',
|
||||
connectDesc: '创建并启用名为 weknora 的连接配置,然后使用邮箱和密码登录。如果已有同名配置,请更换名称,并同步修改 MCP 示例中的配置名。',
|
||||
connectDesc: '创建并启用名为 academy 的连接配置,然后使用邮箱和密码登录。如果已有同名配置,请更换名称,并同步修改 MCP 示例中的配置名。',
|
||||
verifyTitle: '验证连接',
|
||||
verifyDesc: '检查服务与认证状态,并列出当前账号可访问的知识库。',
|
||||
commandsTitle: '常用命令',
|
||||
commandsDesc: '将 KB_ID 替换为知识库 ID,按需替换文件路径、检索词和问题。上传后的文档需解析完成才能检索。',
|
||||
mcpTitle: '接入 MCP 客户端',
|
||||
mcpDesc: '完成登录后,将以下配置添加到支持 stdio 的 MCP 客户端。若客户端无法找到 weknora,请将 command 改为二进制的绝对路径。',
|
||||
mcpDesc: '完成登录后,将以下配置添加到支持 stdio 的 MCP 客户端。若客户端无法找到 academy,请将 command 改为二进制的绝对路径。',
|
||||
copy: '复制',
|
||||
copied: '已复制',
|
||||
},
|
||||
@@ -780,8 +780,8 @@ export default {
|
||||
filterByAgentWithName: '按智能体筛选:{name}',
|
||||
filterAllAgents: '全部智能体',
|
||||
claw: {
|
||||
title: 'WeKnora Skill',
|
||||
subtitle: '通过 WeKnora REST API 导入文档并执行混合检索(向量 + 关键词)。适用于上传文件/URL/Markdown 到知识库、跨库检索与浏览知识内容。',
|
||||
title: 'Academy Skill',
|
||||
subtitle: '通过 Academy REST API 导入文档并执行混合检索(向量 + 关键词)。适用于上传文件/URL/Markdown 到知识库、跨库检索与浏览知识内容。',
|
||||
capabilitiesTitle: 'Skill 能力',
|
||||
stepsTitle: '配置步骤',
|
||||
openApiSettings: '打开 API 信息',
|
||||
@@ -790,7 +790,7 @@ export default {
|
||||
copyCmdSuccess: '已复制安装命令',
|
||||
ecosystemNote: 'Skill 托管于 ClawHub({\'@\'}lyingbug/weknora),完整 API 说明与版本历史请参见 ClawHub 页面。',
|
||||
installCta: '前往 ClawHub',
|
||||
installCtaHint: '安装 WeKnora Skill · 将在新标签页打开',
|
||||
installCtaHint: '安装 Academy Skill · 将在新标签页打开',
|
||||
hubMeta: 'ClawHub · {\'@\'}lyingbug/weknora · MIT-0',
|
||||
steps: {
|
||||
verify: {
|
||||
@@ -803,7 +803,7 @@ export default {
|
||||
},
|
||||
env: {
|
||||
title: '配置环境变量',
|
||||
desc: '在终端或 ~/.zshrc、~/.bashrc 中设置 WEKNORA_BASE_URL 与 WEKNORA_API_KEY。下方示例已填入当前 API 地址,请将 API Key 替换为实际值。'
|
||||
desc: '在终端或 ~/.zshrc、~/.bashrc 中设置 ACADEMY_BASE_URL 与 ACADEMY_API_KEY。下方示例已填入当前 API 地址,请将 API Key 替换为实际值。'
|
||||
},
|
||||
api: {
|
||||
title: '获取 API 凭证',
|
||||
@@ -835,7 +835,7 @@ export default {
|
||||
},
|
||||
chrome: {
|
||||
title: '知识管理助手',
|
||||
subtitle: '配合 WeKnora 自建服务使用:在任意网页侧边栏提问、剪藏内容、Markdown 速记,将浏览中的知识沉淀到你的知识库。',
|
||||
subtitle: '配合 Academy 自建服务使用:在任意网页侧边栏提问、剪藏内容、Markdown 速记,将浏览中的知识沉淀到你的知识库。',
|
||||
capabilitiesTitle: '核心能力',
|
||||
stepsTitle: '配置步骤',
|
||||
openApiSettings: '打开 API 信息',
|
||||
@@ -855,7 +855,7 @@ export default {
|
||||
},
|
||||
port: {
|
||||
title: '桌面版配置固定端口(推荐)',
|
||||
desc: '使用 WeKnora 桌面版时,在 API 信息中设置固定端口(如 37841),避免每次启动后地址变化导致插件断连。'
|
||||
desc: '使用 Academy 桌面版时,在 API 信息中设置固定端口(如 37841),避免每次启动后地址变化导致插件断连。'
|
||||
},
|
||||
api: {
|
||||
title: '获取 API 凭证',
|
||||
@@ -944,7 +944,7 @@ export default {
|
||||
capabilityMessageHistory: '消息历史',
|
||||
capabilityMessageHistoryHint: '允许检索空间聊天历史并读取聊天历史统计;不授予空间配置权限。',
|
||||
capabilityManageModels: '管理模型',
|
||||
capabilityManageModelsHint: '允许管理模型配置、模型凭据、模型连通性测试和 WeKnoraCloud 凭据。',
|
||||
capabilityManageModelsHint: '允许管理模型配置、模型凭据、模型连通性测试和 AcademyCloud 凭据。',
|
||||
capabilityManageMcpServices: '管理 MCP 服务',
|
||||
capabilityManageMcpServicesHint: '允许管理 MCP 服务、凭据、工具审批策略和该主体的 OAuth 授权状态。',
|
||||
capabilityManageDatasources: '管理数据源',
|
||||
@@ -991,14 +991,14 @@ export default {
|
||||
directWarning: '直接传用户 ID 会信任调用方请求头,仅适用于可信服务端到服务端调用。',
|
||||
directWarningDetail: '任何持有 API Key 的调用方都可以通过修改用户 ID 请求头冒充其他外部用户,从而共用或劫持其 MCP OAuth 授权。请勿用于浏览器或不可信客户端;面向终端用户请使用「签名 Token」。',
|
||||
signedRecommended: '推荐给面向用户的应用:由你的业务后端为外部用户签发短期 HS256 JWT。',
|
||||
signedFlowDetail: 'HMAC 密钥仅保存在 WeKnora 与你的可信后端,切勿放入请求或下发给浏览器。请求头里传的是用该密钥签出的 JWT 字符串(每次签发或过期后会变),不是密钥本身。JWT 须包含 sub(外部用户 ID)、tenant_id、aud=weknora、exp(有效期不超过 24 小时)。',
|
||||
signedFlowDetail: 'HMAC 密钥仅保存在 Academy 与你的可信后端,切勿放入请求或下发给浏览器。请求头里传的是用该密钥签出的 JWT 字符串(每次签发或过期后会变),不是密钥本身。JWT 须包含 sub(外部用户 ID)、tenant_id、aud=academy、exp(有效期不超过 24 小时)。',
|
||||
directHeader: '用户 ID 请求头',
|
||||
requireDirectHeader: '必须携带用户 ID',
|
||||
requireDirectHeaderDesc: '开启后,缺少用户 ID 请求头的 API Key 请求将被拒绝;关闭则按整个空间统一处理,不区分具体终端用户。',
|
||||
tokenHeader: 'Token 请求头',
|
||||
tokenHeaderDesc: '客户端在该固定请求头中携带后端签发的 JWT。',
|
||||
hmacSecret: 'HMAC 密钥',
|
||||
hmacSecretDesc: '与 WeKnora 保存的同一份密钥;仅用于后端签发 JWT,不要作为请求头发送。',
|
||||
hmacSecretDesc: '与 Academy 保存的同一份密钥;仅用于后端签发 JWT,不要作为请求头发送。',
|
||||
secretConfigured: '已配置密钥(不可回看);输入新值可轮换',
|
||||
secretSavedCopyHint: '密钥已保存,请立即复制到后端配置。离开本页后将无法再次查看。',
|
||||
generateSecret: '生成密钥',
|
||||
@@ -1007,7 +1007,7 @@ export default {
|
||||
hmacSecretResetConfirmOk: '确认重置',
|
||||
hmacSecretResetConfirmCancel: '取消',
|
||||
tokenSignExample: '后端签发 JWT 示例(Go)',
|
||||
signedRequestStep0: '# 0. 在你的后端签发 JWT(HS256,aud=weknora,sub=用户 ID,tenant_id={tenantId},exp 不超过 24 小时)',
|
||||
signedRequestStep0: '# 0. 在你的后端签发 JWT(HS256,aud=academy,sub=用户 ID,tenant_id={tenantId},exp 不超过 24 小时)',
|
||||
signedRequestStep0Hint: '# 将 JWT 放入 {headerName} 请求头,不要传 HMAC 密钥',
|
||||
requestExampleCreateSession: '# 1. 创建会话',
|
||||
requestExampleAgentChat: '# 2. Agent 对话(SSE;将 <session_id> 替换为第 1 步返回的 id)',
|
||||
@@ -2073,8 +2073,8 @@ export default {
|
||||
wait_agent: '等待智能体',
|
||||
openPage: '打开页面',
|
||||
viewPage: '查看页面',
|
||||
searchWeKnoraDocs: '搜索产品文档',
|
||||
readWeKnoraDoc: '阅读产品文档',
|
||||
searchAcademyDocs: '搜索产品文档',
|
||||
readAcademyDoc: '阅读产品文档',
|
||||
readPage: '查看当前页面',
|
||||
selectTab: '切换标签',
|
||||
fillPage: '填写页面'
|
||||
@@ -2349,7 +2349,7 @@ export default {
|
||||
failed: '操作失败',
|
||||
meta: '附加信息'
|
||||
},
|
||||
weknoraDocs: {
|
||||
academyDocs: {
|
||||
pages: '{count} 篇文档',
|
||||
hits: '匹配 {count} 个章节',
|
||||
empty: '没有匹配的文档',
|
||||
@@ -2524,9 +2524,9 @@ export default {
|
||||
name: 'MarkItDown',
|
||||
desc: 'Microsoft MarkItDown 文档转换工具(支持 PDF/Office/HTML 等)'
|
||||
},
|
||||
weknoracloud: {
|
||||
name: 'WeKnora Cloud',
|
||||
desc: '使用 WeKnora Cloud 进行文档解析'
|
||||
academycloud: {
|
||||
name: 'Academy Cloud',
|
||||
desc: '使用 Academy Cloud 进行文档解析'
|
||||
},
|
||||
paddleocr_vl_cloud: {
|
||||
name: 'PaddleOCR-VL Cloud',
|
||||
@@ -2606,7 +2606,7 @@ export default {
|
||||
askUser: '向用户提问'
|
||||
},
|
||||
assistant: {
|
||||
title: 'WeKnora 助手',
|
||||
title: 'Academy 助手',
|
||||
newConversation: '新对话',
|
||||
history: '历史对话',
|
||||
untitledConversation: '未命名对话',
|
||||
@@ -2620,7 +2620,7 @@ export default {
|
||||
},
|
||||
welcomeTitle: '有什么可以帮你?',
|
||||
agentWelcomeDesc: '可以检查这个智能体的配置、调整模型或查看它能检索的知识库。',
|
||||
welcomeDesc: '我可以解答 WeKnora 的用法,也可以查看和处理你空间里的文档解析、知识库动态和 Wiki 问题,还能帮你创建和配置智能体。改动前是否先请你确认,由输入框下方的权限等级决定。',
|
||||
welcomeDesc: '我可以解答 Academy 的用法,也可以查看和处理你空间里的文档解析、知识库动态和 Wiki 问题,还能帮你创建和配置智能体。改动前是否先请你确认,由输入框下方的权限等级决定。',
|
||||
startFailed: '启动助手失败,请重试',
|
||||
askAboutDocument: '问 {name}',
|
||||
askAboutAnswer: '就这条回答问 {name}',
|
||||
@@ -2698,7 +2698,7 @@ export default {
|
||||
documentSummary: '总结一下这个文档',
|
||||
failedDocuments: '这个知识库有哪些解析失败的文档?',
|
||||
recentActivity: '这个知识库最近有哪些变动?',
|
||||
formats: 'WeKnora 支持哪些文档格式?',
|
||||
formats: 'Academy 支持哪些文档格式?',
|
||||
createWiki: '怎样创建 Wiki 知识库?',
|
||||
agents: '我有哪些智能体?分别用的什么模型?',
|
||||
messageSources: '这个回答的依据是什么?',
|
||||
@@ -3973,9 +3973,9 @@ export default {
|
||||
loadingInfo: '正在加载信息...',
|
||||
retry: '重试',
|
||||
versionLabel: '应用版本',
|
||||
versionDescription: '当前应用服务(weknora-app)的版本号',
|
||||
versionDescription: '当前应用服务(academy-app)的版本号',
|
||||
frontendVersionLabel: 'UI 版本',
|
||||
frontendVersionDescription: '当前 UI 界面(weknora-ui)的构建版本号',
|
||||
frontendVersionDescription: '当前 UI 界面(academy-ui)的构建版本号',
|
||||
versionMismatch: '与应用版本不一致',
|
||||
buildTimeLabel: '构建时间',
|
||||
buildTimeDescription: '系统构建的时间',
|
||||
@@ -5596,7 +5596,7 @@ export default {
|
||||
systemActor: '系统触发',
|
||||
actorWithAPIKey: '{actor} · API Key · {name}',
|
||||
actorAPIKey: 'API Key · {name}',
|
||||
viaAssistant: '经 WeKnora 助手',
|
||||
viaAssistant: '经 Academy 助手',
|
||||
knowledgeBase: '知识库',
|
||||
countItems: '共 {count} 项',
|
||||
titleWithCount: '{title} 等 {count} 项',
|
||||
@@ -5749,7 +5749,7 @@ export default {
|
||||
welcomeMessageDesc: '访客打开嵌入聊天后、尚未发言时展示;留空则不显示',
|
||||
showSuggestedQuestions: '推荐问题',
|
||||
showSuggestedQuestionsDesc: '访客未发言前展示快捷提问,内容来自智能体配置与关联知识库',
|
||||
originsHint: '填写允许嵌入的宿主网站来源(A),不是 WeKnora 地址(B)。每行一个完整 Origin,如 https://shop.example.com;至少一项,支持 *.example.com 子域通配',
|
||||
originsHint: '填写允许嵌入的宿主网站来源(A),不是 Academy 地址(B)。每行一个完整 Origin,如 https://shop.example.com;至少一项,支持 *.example.com 子域通配',
|
||||
originsRequired: '请至少填写一个域名白名单',
|
||||
originsInvalid: '域名格式无效:{origin}',
|
||||
originsWildcardProd: '生产环境不允许使用通配符 *',
|
||||
@@ -5807,10 +5807,10 @@ export default {
|
||||
allowFileUpload: '显示文件上传',
|
||||
allowFileUploadDesc: '开启后,访客可上传图片与文档附件。仅当绑定的智能体已启用图片上传时才会生效。',
|
||||
webhookUrl: 'Webhook 地址',
|
||||
webhookUrlPlaceholder: 'https://your-server.example.com/weknora/embed-events',
|
||||
webhookUrlDesc: '可选。访客发消息与助手回复完成时,WeKnora 会向该 HTTPS 地址 POST 事件(message_sent / message_received)。',
|
||||
webhookUrlPlaceholder: 'https://your-server.example.com/academy/embed-events',
|
||||
webhookUrlDesc: '可选。访客发消息与助手回复完成时,Academy 会向该 HTTPS 地址 POST 事件(message_sent / message_received)。',
|
||||
webhookSecret: 'Webhook 签名密钥',
|
||||
webhookSecretPlaceholder: '用于 HMAC-SHA256 签名(X-WeKnora-Signature)',
|
||||
webhookSecretPlaceholder: '用于 HMAC-SHA256 签名(X-Academy-Signature)',
|
||||
webhookSecretKeep: '留空表示不修改已保存的密钥',
|
||||
webhookSecretDesc: '可选。配置后请求体会带 sha256 签名头,便于你的服务端校验来源。',
|
||||
agentWebSearchDisabledHint: '当前智能体未启用联网搜索,访客端不会显示联网按钮。请先在智能体设置中开启联网搜索。',
|
||||
@@ -5911,7 +5911,7 @@ export default {
|
||||
}
|
||||
},
|
||||
createChat: {
|
||||
title: 'Hi,我是 WeKnora,让你的知识触手可及',
|
||||
title: 'Hi,我是 Academy,让你的知识触手可及',
|
||||
newSessionTitle: '新会话',
|
||||
openProject: '选择项目',
|
||||
clearProject: '取消绑定',
|
||||
@@ -6229,7 +6229,7 @@ export default {
|
||||
registerSuccess: '注册成功,请登录',
|
||||
registerFailed: '注册失败',
|
||||
subtitle: 'AI智能助手、ReAct 智能体与 Wiki 知识库,AI驱动的企业架构升级',
|
||||
registerSubtitle: '创建账户并开始使用 WeKnora',
|
||||
registerSubtitle: '创建账户并开始使用 Academy',
|
||||
emailPlaceholder: '输入邮箱地址',
|
||||
passwordPlaceholder: '输入密码',
|
||||
confirmPasswordPlaceholder: '再次输入密码',
|
||||
@@ -6518,16 +6518,16 @@ export default {
|
||||
title: '沙箱密钥',
|
||||
host: {
|
||||
title: '环境变量',
|
||||
description: '给本机技能用的个人密钥,不是 WeKnora 的系统或部署配置。',
|
||||
description: '给本机技能用的个人密钥,不是 Academy 的系统或部署配置。',
|
||||
helpAria: '环境变量说明',
|
||||
introRuntimeBody: '技能在这台电脑上运行时才会注入;对话里也可以当场提供。保存后不再显示明文。',
|
||||
loadFailed: '环境变量加载失败。',
|
||||
sandboxTitle: '在这台电脑上始终带上的值',
|
||||
sandboxHint: '只带给你在这台电脑上跑的命令。多数情况用不到;需要时再加,对话里也可以当场提供。',
|
||||
nameInvalid: '这个名字不能用。保留名(例如 PATH,或以 WEKNORA_ 开头的名字)不接受。',
|
||||
nameInvalid: '这个名字不能用。保留名(例如 PATH,或以 ACADEMY_ 开头的名字)不接受。',
|
||||
deleteConfirm: '删除 {name}?之后在这台电脑上运行的东西都不会再带上它。',
|
||||
},
|
||||
description: '给技能和沙箱用的个人密钥,不是 WeKnora 的系统或部署配置。',
|
||||
description: '给技能和沙箱用的个人密钥,不是 Academy 的系统或部署配置。',
|
||||
helpAria: '沙箱密钥说明',
|
||||
introPersonalTitle: '只属于你',
|
||||
introPersonalBody: '只注入到你自己的对话和执行里,空间里的其他人看不到,也不会改成他们的值。',
|
||||
@@ -6558,7 +6558,7 @@ export default {
|
||||
addRow: '添加',
|
||||
namePlaceholder: 'VARIABLE_NAME',
|
||||
nameRule: '只能用大写字母、数字和下划线,且以字母或下划线开头。',
|
||||
nameInvalid: '这个名字不能用。沙箱保留的名字(例如 PATH,或以 WEKNORA_ 开头的名字)不接受。',
|
||||
nameInvalid: '这个名字不能用。沙箱保留的名字(例如 PATH,或以 ACADEMY_ 开头的名字)不接受。',
|
||||
nameDuplicate: '这里已经有同名变量了。',
|
||||
valuePlaceholder: '填入值',
|
||||
storedPlaceholder: '已存值,填入新值即替换',
|
||||
@@ -6746,7 +6746,7 @@ export default {
|
||||
dockerDisabledAlert: '当前部署未启用 Docker 沙箱',
|
||||
dockerDisabledHint: '本机 docker.sock 等同宿主机 root。仅私有化单机需要时,由系统管理员在「设置 → 系统设置 → 网络安全」中打开。',
|
||||
dockerDisabledCard: '部署未启用 Docker 沙箱,此配置不会再创建容器',
|
||||
dockerHostRisk: '留空或 unix:// 会使用 WeKnora 所在机器的 Docker 守护进程,权限等同该机 root,只适合私有化单机。多套空间共用同一主机时请改用 Cube 或 E2B。远程 tcp:// 必须填写 TLS 证书目录。',
|
||||
dockerHostRisk: '留空或 unix:// 会使用 Academy 所在机器的 Docker 守护进程,权限等同该机 root,只适合私有化单机。多套空间共用同一主机时请改用 Cube 或 E2B。远程 tcp:// 必须填写 TLS 证书目录。',
|
||||
addConfig: '添加沙箱',
|
||||
viewClusterGuide: '集群搭建指南',
|
||||
configName: '配置名称',
|
||||
@@ -6839,11 +6839,11 @@ export default {
|
||||
policySaveFailed: '更新沙箱执行策略失败',
|
||||
legacyConfig: '已废弃',
|
||||
namedBackendHint: '空间配置是唯一运行时来源;智能体没有选择配置时不会执行技能脚本。',
|
||||
weknoraTemplateTitle: 'WeKnora 标准模板',
|
||||
weknoraDockerImage: 'WeKnora 标准镜像',
|
||||
weknoraDockerImageHint: '每次会话独占一个长驻容器,脚本、shell 命令与文件都在同一个容器内,会话结束或空闲超时后回收。',
|
||||
weknoraTemplateOverview: 'WeKnora 负责提供标准运行环境。连接集群后会自动发现模板,缺少标准模板时自动创建。',
|
||||
weknoraTemplateDescription: '包含 WeKnora 技能所需的 Python、Node.js、CLI 工具、工作目录和非 root 执行用户。',
|
||||
academyTemplateTitle: 'Academy 标准模板',
|
||||
academyDockerImage: 'Academy 标准镜像',
|
||||
academyDockerImageHint: '每次会话独占一个长驻容器,脚本、shell 命令与文件都在同一个容器内,会话结束或空闲超时后回收。',
|
||||
academyTemplateOverview: 'Academy 负责提供标准运行环境。连接集群后会自动发现模板,缺少标准模板时自动创建。',
|
||||
academyTemplateDescription: '包含 Academy 技能所需的 Python、Node.js、CLI 工具、工作目录和非 root 执行用户。',
|
||||
recommendedTag: '推荐',
|
||||
templateNotConfigured: '未配置模板',
|
||||
cardTemplateConfigured: '模板已配置',
|
||||
@@ -6860,7 +6860,7 @@ export default {
|
||||
templateSelectPlaceholder: '先连接集群并加载模板',
|
||||
templateLoadHint: '填写集群连接后刷新模板。没有官方标准模板时,会从 Docker Hub 镜像自动构建。桌面模板体积更大,需在下方单独点「创建」。改 DNS 或镜像后在对应卡片上点「重建」。',
|
||||
templateLoadFailed: '模板列表加载失败',
|
||||
standardTemplateProvisioning: '已开始在集群中创建 WeKnora 标准模板,请稍后刷新查看状态',
|
||||
standardTemplateProvisioning: '已开始在集群中创建 Academy 标准模板,请稍后刷新查看状态',
|
||||
standardTemplateReplaced: '已删除原标准模板并开始重建,请等待状态就绪',
|
||||
templateNotReady: '所选模板尚未构建完成,请刷新并等待状态就绪',
|
||||
connectionPassed: '连接验证通过,以下模板均从当前集群实时加载。',
|
||||
@@ -6868,21 +6868,21 @@ export default {
|
||||
templateStepHint: '进入此步会列出集群模板;若还没有官方标准模板,会从 Docker Hub 镜像自动构建。桌面模板(XFCE)体积较大,需单独点「创建」。改 DNS 或镜像后在对应卡片上点「重建」。选好并就绪后才能继续。',
|
||||
loadingTemplates: '正在从集群加载模板…',
|
||||
templateBuildingHint: '模板正在构建,列表会自动刷新。',
|
||||
templateUntaggedHint: '构建已完成,但没有构建带 default 标签,创建沙箱时无法解析。请在 E2B 删除该模板,刷新后 WeKnora 会重新构建。',
|
||||
templateUntaggedHint: '构建已完成,但没有构建带 default 标签,创建沙箱时无法解析。请在 E2B 删除该模板,刷新后 Academy 会重新构建。',
|
||||
templateFailedReason: '构建失败:{reason}',
|
||||
noTemplates: '当前集群未返回可用模板。',
|
||||
weknoraStandardTemplate: 'WeKnora 标准模板',
|
||||
academyStandardTemplate: 'Academy 标准模板',
|
||||
createStandardTemplate: '创建',
|
||||
createStandardTemplateHint: '按当前连接配置构建,包含 DNS。之后改配置可在卡片上重建。',
|
||||
weknoraDesktopTemplate: 'WeKnora 桌面模板',
|
||||
academyDesktopTemplate: 'Academy 桌面模板',
|
||||
createDesktopTemplate: '创建',
|
||||
createDesktopTemplateHint: '从官方桌面镜像构建 XFCE 图形桌面。体积明显大于标准模板,仅在需要图形界面时创建。',
|
||||
replaceStandardTemplate: '重建',
|
||||
replaceStandardTemplateConfirm: '将用当前配置(含 DNS)重建 WeKnora 标准模板。新模板就绪前不会删除仍可启动的旧模板。',
|
||||
desktopTemplateProvisioning: '已开始在集群中创建 WeKnora 桌面模板,请稍后刷新查看状态',
|
||||
replaceStandardTemplateConfirm: '将用当前配置(含 DNS)重建 Academy 标准模板。新模板就绪前不会删除仍可启动的旧模板。',
|
||||
desktopTemplateProvisioning: '已开始在集群中创建 Academy 桌面模板,请稍后刷新查看状态',
|
||||
desktopTemplateReplaced: '已删除原桌面模板并开始重建,请等待状态就绪。标准(CLI)模板不受影响。',
|
||||
desktopTemplateTag: '桌面',
|
||||
replaceDesktopTemplateConfirm: '将用当前配置(含 DNS)重建 WeKnora 桌面模板。新模板就绪前不会删除仍可启动的旧桌面模板,也不会删除标准(CLI)模板。',
|
||||
replaceDesktopTemplateConfirm: '将用当前配置(含 DNS)重建 Academy 桌面模板。新模板就绪前不会删除仍可启动的旧桌面模板,也不会删除标准(CLI)模板。',
|
||||
templateLockedBySkills: '该沙箱已安装 Skill,技能环境绑在当前快照上,不能更换或重建运行模板。请新建一份沙箱,从新模板再装 Skill。',
|
||||
templateLockedByInFlight: '该沙箱正在安装或移除 Skill,完成前不能更换或重建运行模板。',
|
||||
templateUnnamed: '未命名模板',
|
||||
@@ -6912,7 +6912,7 @@ export default {
|
||||
cubeApiKeyOptional: '可留空 —— 自建 CubeSandbox 通常无鉴权',
|
||||
cubeApiKeyWhere: '自建集群如何开启鉴权',
|
||||
cubeDnsServers: 'DNS 服务器',
|
||||
cubeDnsServersHelp: '可选。写入 WeKnora 标准模板的 nameserver(须为 IP)。留空则使用集群默认(常见 119.29.29.29)。私网或云上 UDP 53 出不去时,填 Cube 宿主机 /etc/resolv.conf 里能用的地址,并避开 10/8、172.16/12、192.168/16。已有标准模板需在模板卡片上点「重建」才会生效。',
|
||||
cubeDnsServersHelp: '可选。写入 Academy 标准模板的 nameserver(须为 IP)。留空则使用集群默认(常见 119.29.29.29)。私网或云上 UDP 53 出不去时,填 Cube 宿主机 /etc/resolv.conf 里能用的地址,并避开 10/8、172.16/12、192.168/16。已有标准模板需在模板卡片上点「重建」才会生效。',
|
||||
cubeDnsServersPlaceholder: '例如 8.8.8.8,回车添加',
|
||||
e2bApiKeyHelp: '在 E2B 控制台的 API Keys 页面创建,通常以 e2b_ 开头。',
|
||||
e2bApiKeyWhere: '前往 E2B 控制台获取 API Key',
|
||||
@@ -6942,9 +6942,9 @@ export default {
|
||||
dockerHost: 'Docker 守护进程地址',
|
||||
dockerHostHelp: '留空跟随本机 docker CLI(DOCKER_HOST 或当前 docker context),不必手填 /var/run/docker.sock。远程守护进程填 tcp://host:2376,必须同时填写 TLS 证书目录,私网地址还要开启「允许访问私网地址」。',
|
||||
dockerTlsCertPath: 'TLS 证书目录',
|
||||
dockerTlsCertPathHelp: 'WeKnora 所在主机上包含 ca.pem、cert.pem、key.pem 的目录。远程守护进程必填,证书不入库,由部署方挂载。',
|
||||
dockerTlsCertPathHelp: 'Academy 所在主机上包含 ca.pem、cert.pem、key.pem 的目录。远程守护进程必填,证书不入库,由部署方挂载。',
|
||||
dockerIdleTtl: '空闲回收(秒)',
|
||||
dockerIdleTtlHelp: 'Docker 守护进程本身没有空闲超时。容器多久没有执行任何命令就会被 WeKnora 回收,会话继续时重建。留空按 1800 秒。',
|
||||
dockerIdleTtlHelp: 'Docker 守护进程本身没有空闲超时。容器多久没有执行任何命令就会被 Academy 回收,会话继续时重建。留空按 1800 秒。',
|
||||
dockerCpuLimit: 'CPU 核数上限',
|
||||
dockerCpuLimitHelp: '单个沙箱可用的 CPU 核数,0 使用内置默认。',
|
||||
dockerMemoryLimit: '内存上限(MB)',
|
||||
@@ -7011,7 +7011,7 @@ export default {
|
||||
allocationModeHint: '只影响还没有用过沙箱的会话;已有会话保持原来的分配,不会搬迁文件。',
|
||||
allocationModeSession: '每个会话一台沙箱(默认)',
|
||||
allocationModeUser: '同一用户的会话共用一台沙箱',
|
||||
allocationModeUnavailable: '当前部署未开启共用沙箱(需在所有实例设置 WEKNORA_SANDBOX_USER_ALLOCATION=enabled,并配置 Redis)。',
|
||||
allocationModeUnavailable: '当前部署未开启共用沙箱(需在所有实例设置 ACADEMY_SANDBOX_USER_ALLOCATION=enabled,并配置 Redis)。',
|
||||
userSandboxRetentionDays: '空置沙箱保留天数',
|
||||
userSandboxRetentionHint: '某台共用沙箱上的会话全部删除后,空置满这个天数会被自动删除(1–90 天)。这不是文件最少保留时间:Docker 空闲回收或服务商故障可能更早删除。',
|
||||
userSandboxesInInventory: '其中 {count} 台是用户共用沙箱,影响该用户在此配置下的全部会话。',
|
||||
@@ -7256,8 +7256,8 @@ export default {
|
||||
needsConfig: '需要配置',
|
||||
configurable: '可配置',
|
||||
pathPrefix: '路径前缀(可选)',
|
||||
pathPrefixPlaceholder: '如 weknora/images',
|
||||
prefixPlaceholder: '如 weknora',
|
||||
pathPrefixPlaceholder: '如 academy/images',
|
||||
prefixPlaceholder: '如 academy',
|
||||
bucketName: 'Bucket 名称',
|
||||
bucketPlaceholder: '存储桶名称',
|
||||
minioDesc: 'S3 兼容的自托管对象存储,适合内网和私有云部署。',
|
||||
@@ -7413,48 +7413,48 @@ export default {
|
||||
paddleocrVlEndpointHint: '填写 PaddleOCR-VL 完整服务(pipeline)地址,无需 /layout-parsing 后缀',
|
||||
paddleocrVlCloudTokenPlaceholder: 'PaddleOCR-VL 飞桨星河社区 Token'
|
||||
},
|
||||
weknoraCloud: {
|
||||
title: 'WeKnora Cloud',
|
||||
description: '配置 WeKnora Cloud 的 APPID 和 APPSECRET 凭证。凭证用于模型服务和文档解析引擎。',
|
||||
academyCloud: {
|
||||
title: 'Academy Cloud',
|
||||
description: '配置 Academy Cloud 的 APPID 和 APPSECRET 凭证。凭证用于模型服务和文档解析引擎。',
|
||||
viewDocs: '查看文档',
|
||||
unconfigured: '尚未配置凭证,请填写 APPID 和 APPSECRET',
|
||||
configured: '凭证已配置,状态正常',
|
||||
expired: 'WeKnora Cloud 凭证已失效',
|
||||
expired: 'Academy Cloud 凭证已失效',
|
||||
expiredDefault: '服务重启后加密密钥已变更,已保存的凭证无法解密。请重新填写凭证。',
|
||||
reconfigure: '重新配置',
|
||||
appIdLabel: 'APPID',
|
||||
appIdDesc: 'WeKnora Cloud 的应用 ID',
|
||||
appIdDesc: 'Academy Cloud 的应用 ID',
|
||||
appIdPlaceholder: '请输入 APPID',
|
||||
appSecretLabel: 'APPSECRET',
|
||||
appSecretDesc: 'WeKnora Cloud 的应用密钥',
|
||||
appSecretDesc: 'Academy Cloud 的应用密钥',
|
||||
appSecretPlaceholder: '请输入 APPSECRET',
|
||||
saveHint: '保存后将验证服务可达性并加密存储凭证',
|
||||
saveBtn: '保存凭证',
|
||||
usageTitle: '使用说明',
|
||||
usageSteps: '1. 填写并保存 APPID / APPSECRET\n2. 在下方「云模型接入」中按行添加 chat、embedding、rerank、vlm\n3. 文档解析:知识库设置 → 解析引擎,选择 WeKnora Cloud 引擎',
|
||||
usageSteps: '1. 填写并保存 APPID / APPSECRET\n2. 在下方「云模型接入」中按行添加 chat、embedding、rerank、vlm\n3. 文档解析:知识库设置 → 解析引擎,选择 Academy Cloud 引擎',
|
||||
fillRequired: '请填写 APPID 和 APPSECRET',
|
||||
saveSuccess: '凭证已保存',
|
||||
saveFailed: '凭证保存失败',
|
||||
credentialConfigured: 'WeKnoraCloud 凭证已配置',
|
||||
credentialConfigured: 'AcademyCloud 凭证已配置',
|
||||
credentialExpired: '凭证已失效,请重新配置。',
|
||||
credentialUnconfigured: '尚未配置 WeKnoraCloud 凭证,请先填写 APPID 和 APPSECRET。',
|
||||
credentialUnconfigured: '尚未配置 AcademyCloud 凭证,请先填写 APPID 和 APPSECRET。',
|
||||
checkingStatus: '正在检查凭证状态...',
|
||||
goToSettings: '前往设置中配置',
|
||||
modelHintConfigured: 'WeKnoraCloud 凭证已配置。支持的模型可参考',
|
||||
modelHintConfigured: 'AcademyCloud 凭证已配置。支持的模型可参考',
|
||||
modelHintDocsLink: '接口文档',
|
||||
addModelsSuccess: '已成功添加 {count} 个模型',
|
||||
addModelsPartial: '已添加 {success} 个,{failed} 个失败',
|
||||
addModelsFailed: '添加模型失败',
|
||||
addModelsEmbeddingFailed: 'Embedding 模型连接测试失败,无法获取向量维度',
|
||||
addModelsDisplayName: {
|
||||
chat: 'WeKnoraCloud 对话',
|
||||
embedding: 'WeKnoraCloud Embedding',
|
||||
rerank: 'WeKnoraCloud ReRank',
|
||||
vllm: 'WeKnoraCloud 视觉'
|
||||
chat: 'AcademyCloud 对话',
|
||||
embedding: 'AcademyCloud Embedding',
|
||||
rerank: 'AcademyCloud ReRank',
|
||||
vllm: 'AcademyCloud 视觉'
|
||||
},
|
||||
modelsSection: {
|
||||
title: '云模型接入',
|
||||
descReady: '将 WeKnora Cloud 提供的四类标准模型注册到当前空间,用于对话、向量检索、重排序与多模态理解。',
|
||||
descReady: '将 Academy Cloud 提供的四类标准模型注册到当前空间,用于对话、向量检索、重排序与多模态理解。',
|
||||
descPending: '请先保存上方凭证,再在此添加云模型。',
|
||||
statusAdded: '已添加',
|
||||
statusPending: '待配置凭证',
|
||||
@@ -8571,10 +8571,10 @@ export default {
|
||||
},
|
||||
knowledge: {
|
||||
title: '创建你的知识库',
|
||||
desc: '知识库是一切的起点:上传文档、网页或 FAQ,WeKnora 会自动解析并建立索引。点击这里进入知识库。'
|
||||
desc: '知识库是一切的起点:上传文档、网页或 FAQ,Academy 会自动解析并建立索引。点击这里进入知识库。'
|
||||
},
|
||||
welcome: {
|
||||
title: '欢迎使用 WeKnora',
|
||||
title: '欢迎使用 Academy',
|
||||
desc: '只需几步,带你快速了解知识库、对话与智能体的核心用法。点击「下一步」开始。'
|
||||
}
|
||||
}
|
||||
|
||||
@@ -127,9 +127,9 @@ export default {
|
||||
automation: {
|
||||
conversationNotice: "此對話由自動化任務執行,無法手動傳送訊息。請在上方處理待審批事項。",
|
||||
title: '自動化',
|
||||
description: '讓 WeKnora 助手按排程以你的身分執行任務,結果與待審批事項會通知你。',
|
||||
description: '讓 Academy 助手按排程以你的身分執行任務,結果與待審批事項會通知你。',
|
||||
add: '新增自動化',
|
||||
addHint: '也可以直接請 WeKnora 助手幫你建立',
|
||||
addHint: '也可以直接請 Academy 助手幫你建立',
|
||||
paused: '已暫停',
|
||||
scheduleEnded: '已結束',
|
||||
scheduleEndedHint: '一次性排程已結束。可立即執行,或修改執行時間後恢復。',
|
||||
@@ -181,7 +181,7 @@ export default {
|
||||
sections: {
|
||||
basic: {
|
||||
title: '基本資訊',
|
||||
desc: '任務由 WeKnora 助手執行。需要其他智慧代理時,請在任務中寫明委派對象與工作。',
|
||||
desc: '任務由 Academy 助手執行。需要其他智慧代理時,請在任務中寫明委派對象與工作。',
|
||||
},
|
||||
schedule: {
|
||||
title: '執行時間',
|
||||
@@ -754,7 +754,7 @@ export default {
|
||||
},
|
||||
integrations: {
|
||||
cli: {
|
||||
title: 'WeKnora CLI',
|
||||
title: 'Academy CLI',
|
||||
subtitle: '在終端中管理知識庫和文件、檢索內容併發起問答,也可透過指令碼或 MCP 接入 AI 工具。',
|
||||
docs: '查看 CLI 文件',
|
||||
docsHint: '安裝說明與完整命令參考',
|
||||
@@ -762,13 +762,13 @@ export default {
|
||||
installTitle: '安裝 CLI',
|
||||
installDesc: '目前支持源碼建構,需要 Git 和 Go 1.26+。以下示例適用於 macOS / Linux,PATH 設定僅在當前終端生效;長期使用請將二進位放入 PATH 目錄。',
|
||||
connectTitle: '連結當前服務',
|
||||
connectDesc: '建立並啟用名為 weknora 的連結設定,然後使用電子信箱和密碼登入。如果已有同名設定,請更換名稱,並同步修改 MCP 示例中的設定名。',
|
||||
connectDesc: '建立並啟用名為 academy 的連結設定,然後使用電子信箱和密碼登入。如果已有同名設定,請更換名稱,並同步修改 MCP 示例中的設定名。',
|
||||
verifyTitle: '驗證連結',
|
||||
verifyDesc: '檢查服務與認證狀態,並列出當前帳號可存取的知識庫。',
|
||||
commandsTitle: '常用命令',
|
||||
commandsDesc: '將 KB_ID 取代為知識庫 ID,按需取代檔案路徑、檢索詞和問題。上傳後的文件需解析完成才能檢索。',
|
||||
mcpTitle: '接入 MCP 用戶端',
|
||||
mcpDesc: '完成登入後,將以下設定新增到支持 stdio 的 MCP 用戶端。若用戶端無法找到 weknora,請將 command 改為二進位的絕對路徑。',
|
||||
mcpDesc: '完成登入後,將以下設定新增到支持 stdio 的 MCP 用戶端。若用戶端無法找到 academy,請將 command 改為二進位的絕對路徑。',
|
||||
copy: '複製',
|
||||
copied: '已複製',
|
||||
},
|
||||
@@ -780,8 +780,8 @@ export default {
|
||||
filterByAgentWithName: '按智慧代理篩選:{name}',
|
||||
filterAllAgents: '全部智慧代理',
|
||||
claw: {
|
||||
title: 'WeKnora Skill',
|
||||
subtitle: '透過 WeKnora REST API 匯入文件並執行混合檢索(向量 + 關鍵字)。適用於上傳檔案/URL/Markdown 到知識庫、跨庫檢索與瀏覽知識內容。',
|
||||
title: 'Academy Skill',
|
||||
subtitle: '透過 Academy REST API 匯入文件並執行混合檢索(向量 + 關鍵字)。適用於上傳檔案/URL/Markdown 到知識庫、跨庫檢索與瀏覽知識內容。',
|
||||
capabilitiesTitle: 'Skill 能力',
|
||||
stepsTitle: '設定步驟',
|
||||
openApiSettings: '打開 API 資訊',
|
||||
@@ -790,7 +790,7 @@ export default {
|
||||
copyCmdSuccess: '已複製安裝命令',
|
||||
ecosystemNote: 'Skill 託管於 ClawHub({\'@\'}lyingbug/weknora),完整 API 說明與版本歷史請參見 ClawHub 頁面。',
|
||||
installCta: '前往 ClawHub',
|
||||
installCtaHint: '安裝 WeKnora Skill · 將在新分頁打開',
|
||||
installCtaHint: '安裝 Academy Skill · 將在新分頁打開',
|
||||
hubMeta: 'ClawHub · {\'@\'}lyingbug/weknora · MIT-0',
|
||||
steps: {
|
||||
verify: {
|
||||
@@ -803,7 +803,7 @@ export default {
|
||||
},
|
||||
env: {
|
||||
title: '設定環境變數',
|
||||
desc: '在終端或 ~/.zshrc、~/.bashrc 中設定 WEKNORA_BASE_URL 與 WEKNORA_API_KEY。下方示例已填入當前 API 地址,請將 API Key 取代為實際值。'
|
||||
desc: '在終端或 ~/.zshrc、~/.bashrc 中設定 ACADEMY_BASE_URL 與 ACADEMY_API_KEY。下方示例已填入當前 API 地址,請將 API Key 取代為實際值。'
|
||||
},
|
||||
api: {
|
||||
title: '獲取 API 憑證',
|
||||
@@ -835,7 +835,7 @@ export default {
|
||||
},
|
||||
chrome: {
|
||||
title: '知識管理助手',
|
||||
subtitle: '配合 WeKnora 自建服務使用:在任意網頁側邊欄提問、剪藏內容、Markdown 速記,將瀏覽中的知識沉澱到你的知識庫。',
|
||||
subtitle: '配合 Academy 自建服務使用:在任意網頁側邊欄提問、剪藏內容、Markdown 速記,將瀏覽中的知識沉澱到你的知識庫。',
|
||||
capabilitiesTitle: '核心能力',
|
||||
stepsTitle: '設定步驟',
|
||||
openApiSettings: '打開 API 資訊',
|
||||
@@ -855,7 +855,7 @@ export default {
|
||||
},
|
||||
port: {
|
||||
title: '桌面版設定固定連接埠(推薦)',
|
||||
desc: '使用 WeKnora 桌面版時,在 API 資訊中設定固定連接埠(如 37841),避免每次啟動後地址變化導致外掛斷連。'
|
||||
desc: '使用 Academy 桌面版時,在 API 資訊中設定固定連接埠(如 37841),避免每次啟動後地址變化導致外掛斷連。'
|
||||
},
|
||||
api: {
|
||||
title: '獲取 API 憑證',
|
||||
@@ -944,7 +944,7 @@ export default {
|
||||
capabilityMessageHistory: '訊息歷史',
|
||||
capabilityMessageHistoryHint: '允許檢索空間聊天歷史並讀取聊天歷史統計;不授予空間設定權限。',
|
||||
capabilityManageModels: '管理模型',
|
||||
capabilityManageModelsHint: '允許管理模型設定、模型憑據、模型連通性測試和 WeKnoraCloud 憑據。',
|
||||
capabilityManageModelsHint: '允許管理模型設定、模型憑據、模型連通性測試和 AcademyCloud 憑據。',
|
||||
capabilityManageMcpServices: '管理 MCP 服務',
|
||||
capabilityManageMcpServicesHint: '允許管理 MCP 服務、憑據、工具審批策略和該主體的 OAuth 授權狀態。',
|
||||
capabilityManageDatasources: '管理資料源',
|
||||
@@ -991,14 +991,14 @@ export default {
|
||||
directWarning: '直接傳使用者 ID 會信任呼叫方請求頭,僅適用於可信伺服器端到伺服器端呼叫。',
|
||||
directWarningDetail: '任何持有 API Key 的呼叫方都可以透過修改使用者 ID 請求頭冒充其他外部使用者,從而共用或劫持其 MCP OAuth 授權。請勿用於瀏覽器或不可信用戶端;面向終端使用者請使用「簽章 Token」。',
|
||||
signedRecommended: '推薦給面向使用者的應用:由你的業務後端為外部使用者籤發短期 HS256 JWT。',
|
||||
signedFlowDetail: 'HMAC 金鑰僅儲存在 WeKnora 與你的可信後端,切勿放入請求或下發給瀏覽器。請求頭裡傳的是用該金鑰籤出的 JWT 字符串(每次籤發或過期後會變),不是金鑰本身。JWT 須包含 sub(外部使用者 ID)、tenant_id、aud=weknora、exp(有效期不超過 24 小時)。',
|
||||
signedFlowDetail: 'HMAC 金鑰僅儲存在 Academy 與你的可信後端,切勿放入請求或下發給瀏覽器。請求頭裡傳的是用該金鑰籤出的 JWT 字符串(每次籤發或過期後會變),不是金鑰本身。JWT 須包含 sub(外部使用者 ID)、tenant_id、aud=academy、exp(有效期不超過 24 小時)。',
|
||||
directHeader: '使用者 ID 請求頭',
|
||||
requireDirectHeader: '必須攜帶使用者 ID',
|
||||
requireDirectHeaderDesc: '開啟後,缺少使用者 ID 請求頭的 API Key 請求將被拒絕;關閉則按整個空間統一處理,不區分具體終端使用者。',
|
||||
tokenHeader: 'Token 請求頭',
|
||||
tokenHeaderDesc: '用戶端在該固定請求頭中攜帶後端籤發的 JWT。',
|
||||
hmacSecret: 'HMAC 金鑰',
|
||||
hmacSecretDesc: '與 WeKnora 儲存的同一份金鑰;僅用於後端籤發 JWT,不要作為請求頭髮送。',
|
||||
hmacSecretDesc: '與 Academy 儲存的同一份金鑰;僅用於後端籤發 JWT,不要作為請求頭髮送。',
|
||||
secretConfigured: '已設定金鑰(不可回看);輸入新值可輪換',
|
||||
secretSavedCopyHint: '金鑰已儲存,請立即複製到後端設定。離開本頁後將無法再次查看。',
|
||||
generateSecret: '生成金鑰',
|
||||
@@ -1007,7 +1007,7 @@ export default {
|
||||
hmacSecretResetConfirmOk: '確認重設',
|
||||
hmacSecretResetConfirmCancel: '取消',
|
||||
tokenSignExample: '後端籤發 JWT 示例(Go)',
|
||||
signedRequestStep0: '# 0. 在你的後端籤發 JWT(HS256,aud=weknora,sub=使用者 ID,tenant_id={tenantId},exp 不超過 24 小時)',
|
||||
signedRequestStep0: '# 0. 在你的後端籤發 JWT(HS256,aud=academy,sub=使用者 ID,tenant_id={tenantId},exp 不超過 24 小時)',
|
||||
signedRequestStep0Hint: '# 將 JWT 放入 {headerName} 請求頭,不要傳 HMAC 金鑰',
|
||||
requestExampleCreateSession: '# 1. 建立會話',
|
||||
requestExampleAgentChat: '# 2. Agent 對話(SSE;將 <session_id> 取代為第 1 步返回的 id)',
|
||||
@@ -2073,8 +2073,8 @@ export default {
|
||||
wait_agent: '等待智慧體',
|
||||
openPage: '開啟頁面',
|
||||
viewPage: '查看頁面',
|
||||
searchWeKnoraDocs: '搜尋產品文件',
|
||||
readWeKnoraDoc: '閱讀產品文件',
|
||||
searchAcademyDocs: '搜尋產品文件',
|
||||
readAcademyDoc: '閱讀產品文件',
|
||||
readPage: '查看目前頁面',
|
||||
selectTab: '切換標籤',
|
||||
fillPage: '填寫頁面'
|
||||
@@ -2349,7 +2349,7 @@ export default {
|
||||
failed: '操作失敗',
|
||||
meta: '附加資訊'
|
||||
},
|
||||
weknoraDocs: {
|
||||
academyDocs: {
|
||||
pages: '{count} 篇文件',
|
||||
hits: '符合 {count} 個章節',
|
||||
empty: '沒有符合的文件',
|
||||
@@ -2524,9 +2524,9 @@ export default {
|
||||
name: 'MarkItDown',
|
||||
desc: 'Microsoft MarkItDown 文件轉換工具(支持 PDF/Office/HTML 等)'
|
||||
},
|
||||
weknoracloud: {
|
||||
name: 'WeKnora Cloud',
|
||||
desc: '使用 WeKnora Cloud 進行文件解析'
|
||||
academycloud: {
|
||||
name: 'Academy Cloud',
|
||||
desc: '使用 Academy Cloud 進行文件解析'
|
||||
},
|
||||
paddleocr_vl_cloud: {
|
||||
name: 'PaddleOCR-VL Cloud',
|
||||
@@ -2606,7 +2606,7 @@ export default {
|
||||
askUser: '向使用者提問'
|
||||
},
|
||||
assistant: {
|
||||
title: 'WeKnora 助手',
|
||||
title: 'Academy 助手',
|
||||
newConversation: '新對話',
|
||||
history: '歷史對話',
|
||||
untitledConversation: '未命名對話',
|
||||
@@ -2620,7 +2620,7 @@ export default {
|
||||
},
|
||||
welcomeTitle: '有什麼可以幫你?',
|
||||
agentWelcomeDesc: '可以檢查這個智慧代理的設定、調整模型或查看它能檢索的知識庫。',
|
||||
welcomeDesc: '我可以解答 WeKnora 的用法,也可以檢視和處理你空間裡的文件解析、知識庫動態和 Wiki 問題,還能幫你建立和設定智慧代理。變更前是否先請你確認,由輸入框下方的權限等級決定。',
|
||||
welcomeDesc: '我可以解答 Academy 的用法,也可以檢視和處理你空間裡的文件解析、知識庫動態和 Wiki 問題,還能幫你建立和設定智慧代理。變更前是否先請你確認,由輸入框下方的權限等級決定。',
|
||||
startFailed: '啟動助手失敗,請重試',
|
||||
askAboutDocument: '問 {name}',
|
||||
askAboutAnswer: '就這則回答問 {name}',
|
||||
@@ -2698,7 +2698,7 @@ export default {
|
||||
documentSummary: '總結一下這個文件',
|
||||
failedDocuments: '這個知識庫有哪些解析失敗的文件?',
|
||||
recentActivity: '這個知識庫最近有哪些變動?',
|
||||
formats: 'WeKnora 支援哪些文件格式?',
|
||||
formats: 'Academy 支援哪些文件格式?',
|
||||
createWiki: '怎樣建立 Wiki 知識庫?',
|
||||
agents: '我有哪些智慧代理?分別用的什麼模型?',
|
||||
messageSources: '這則回答的依據是什麼?',
|
||||
@@ -3973,9 +3973,9 @@ export default {
|
||||
loadingInfo: '正在載入資訊...',
|
||||
retry: '重試',
|
||||
versionLabel: '應用版本',
|
||||
versionDescription: '當前應用服務(weknora-app)的版本號',
|
||||
versionDescription: '當前應用服務(academy-app)的版本號',
|
||||
frontendVersionLabel: 'UI 版本',
|
||||
frontendVersionDescription: '當前 UI 界面(weknora-ui)的建構版本號',
|
||||
frontendVersionDescription: '當前 UI 界面(academy-ui)的建構版本號',
|
||||
versionMismatch: '與應用版本不一致',
|
||||
buildTimeLabel: '建構時間',
|
||||
buildTimeDescription: '系統建構的時間',
|
||||
@@ -5596,7 +5596,7 @@ export default {
|
||||
systemActor: '系統觸發',
|
||||
actorWithAPIKey: '{actor} · API Key · {name}',
|
||||
actorAPIKey: 'API Key · {name}',
|
||||
viaAssistant: '經 WeKnora 助手',
|
||||
viaAssistant: '經 Academy 助手',
|
||||
knowledgeBase: '知識庫',
|
||||
countItems: '共 {count} 項',
|
||||
titleWithCount: '{title} 等 {count} 項',
|
||||
@@ -5749,7 +5749,7 @@ export default {
|
||||
welcomeMessageDesc: '訪客打開內嵌聊天後、尚未發言時展示;留空則不顯示',
|
||||
showSuggestedQuestions: '推薦問題',
|
||||
showSuggestedQuestionsDesc: '訪客未發言前展示快捷提問,內容來自智慧代理設定與關聯知識庫',
|
||||
originsHint: '填寫允許內嵌的宿主網站來源(A),不是 WeKnora 地址(B)。每行一個完整 Origin,如 https://shop.example.com;至少一項,支持 *.example.com 子域通配',
|
||||
originsHint: '填寫允許內嵌的宿主網站來源(A),不是 Academy 地址(B)。每行一個完整 Origin,如 https://shop.example.com;至少一項,支持 *.example.com 子域通配',
|
||||
originsRequired: '請至少填寫一個域名白名單',
|
||||
originsInvalid: '域名格式無效:{origin}',
|
||||
originsWildcardProd: '生產環境不允許使用萬用字元 *',
|
||||
@@ -5807,10 +5807,10 @@ export default {
|
||||
allowFileUpload: '顯示檔案上傳',
|
||||
allowFileUploadDesc: '開啟後,訪客可上傳圖片與文件附件。僅當綁定的智慧代理已啟用圖片上傳時才會生效。',
|
||||
webhookUrl: 'Webhook 地址',
|
||||
webhookUrlPlaceholder: 'https://your-server.example.com/weknora/embed-events',
|
||||
webhookUrlDesc: '可選。訪客發訊息與助手回覆完成時,WeKnora 會向該 HTTPS 地址 POST 事件(message_sent / message_received)。',
|
||||
webhookUrlPlaceholder: 'https://your-server.example.com/academy/embed-events',
|
||||
webhookUrlDesc: '可選。訪客發訊息與助手回覆完成時,Academy 會向該 HTTPS 地址 POST 事件(message_sent / message_received)。',
|
||||
webhookSecret: 'Webhook 簽章金鑰',
|
||||
webhookSecretPlaceholder: '用於 HMAC-SHA256 簽章(X-WeKnora-Signature)',
|
||||
webhookSecretPlaceholder: '用於 HMAC-SHA256 簽章(X-Academy-Signature)',
|
||||
webhookSecretKeep: '留空表示不修改已儲存的金鑰',
|
||||
webhookSecretDesc: '可選。設定後請求體會帶 sha256 簽章頭,便於你的伺服器端驗證來源。',
|
||||
agentWebSearchDisabledHint: '當前智慧代理未啟用聯網搜尋,訪客端不會顯示聯網按鈕。請先在智慧代理設定中開啟聯網搜尋。',
|
||||
@@ -5911,7 +5911,7 @@ export default {
|
||||
}
|
||||
},
|
||||
createChat: {
|
||||
title: 'Hi,我是 WeKnora,讓你的知識觸手可及',
|
||||
title: 'Hi,我是 Academy,讓你的知識觸手可及',
|
||||
newSessionTitle: '新會話',
|
||||
openProject: '選擇專案',
|
||||
clearProject: '取消綁定',
|
||||
@@ -6229,7 +6229,7 @@ export default {
|
||||
registerSuccess: '註冊成功,請登入',
|
||||
registerFailed: '註冊失敗',
|
||||
subtitle: 'AI智能助理、ReAct 智能體與 Wiki 知識庫,AI驅動的企業架構升級',
|
||||
registerSubtitle: '建立帳戶並開始使用 WeKnora',
|
||||
registerSubtitle: '建立帳戶並開始使用 Academy',
|
||||
emailPlaceholder: '輸入電子信箱地址',
|
||||
passwordPlaceholder: '輸入密碼',
|
||||
confirmPasswordPlaceholder: '再次輸入密碼',
|
||||
@@ -6518,16 +6518,16 @@ export default {
|
||||
title: '沙箱金鑰',
|
||||
host: {
|
||||
title: '環境變數',
|
||||
description: '給本機技能用的個人金鑰,不是 WeKnora 的系統或部署設定。',
|
||||
description: '給本機技能用的個人金鑰,不是 Academy 的系統或部署設定。',
|
||||
helpAria: '環境變數說明',
|
||||
introRuntimeBody: '技能在這台電腦上運行時才會注入;對話裡也可以當場提供。儲存後不再顯示明文。',
|
||||
loadFailed: '環境變數載入失敗。',
|
||||
sandboxTitle: '在這台電腦上始終帶上的值',
|
||||
sandboxHint: '只帶給你在這台電腦上跑的命令。多數情況用不到;需要時再加,對話裡也可以當場提供。',
|
||||
nameInvalid: '這個名字不能用。保留名(例如 PATH,或以 WEKNORA_ 開頭的名字)不接受。',
|
||||
nameInvalid: '這個名字不能用。保留名(例如 PATH,或以 ACADEMY_ 開頭的名字)不接受。',
|
||||
deleteConfirm: '刪除 {name}?之後在這台電腦上運行的東西都不會再帶上它。',
|
||||
},
|
||||
description: '給技能和沙箱用的個人金鑰,不是 WeKnora 的系統或部署設定。',
|
||||
description: '給技能和沙箱用的個人金鑰,不是 Academy 的系統或部署設定。',
|
||||
helpAria: '沙箱金鑰說明',
|
||||
introPersonalTitle: '只屬於你',
|
||||
introPersonalBody: '只注入到你自己的對話和執行裡,空間裡的其他人看不到,也不會改成他們的值。',
|
||||
@@ -6558,7 +6558,7 @@ export default {
|
||||
addRow: '新增',
|
||||
namePlaceholder: 'VARIABLE_NAME',
|
||||
nameRule: '只能用大寫字母、數字和底線,且以字母或底線開頭。',
|
||||
nameInvalid: '這個名字不能用。沙箱保留的名字(例如 PATH,或以 WEKNORA_ 開頭的名字)不接受。',
|
||||
nameInvalid: '這個名字不能用。沙箱保留的名字(例如 PATH,或以 ACADEMY_ 開頭的名字)不接受。',
|
||||
nameDuplicate: '這裡已經有同名變數了。',
|
||||
valuePlaceholder: '填入值',
|
||||
storedPlaceholder: '已存值,填入新值即取代',
|
||||
@@ -6746,7 +6746,7 @@ export default {
|
||||
dockerDisabledAlert: '當前部署未啟用 Docker 沙箱',
|
||||
dockerDisabledHint: '本機 docker.sock 等同宿主機 root。僅私有化單機需要時,由系統管理員在「設定 → 系統設定 → 網路安全」中打開。',
|
||||
dockerDisabledCard: '部署未啟用 Docker 沙箱,此設定不會再建立容器',
|
||||
dockerHostRisk: '留空或 unix:// 會使用 WeKnora 所在機器的 Docker 守護行程,權限等同該機 root,只適合私有化單機。多套空間共用同一主機時請改用 Cube 或 E2B。遠程 tcp:// 必須填寫 TLS 證書目錄。',
|
||||
dockerHostRisk: '留空或 unix:// 會使用 Academy 所在機器的 Docker 守護行程,權限等同該機 root,只適合私有化單機。多套空間共用同一主機時請改用 Cube 或 E2B。遠程 tcp:// 必須填寫 TLS 證書目錄。',
|
||||
addConfig: '新增沙箱',
|
||||
viewClusterGuide: '叢集搭建指南',
|
||||
configName: '設定名稱',
|
||||
@@ -6839,11 +6839,11 @@ export default {
|
||||
policySaveFailed: '更新沙箱執行策略失敗',
|
||||
legacyConfig: '已廢棄',
|
||||
namedBackendHint: '空間設定是唯一運行時來源;智慧代理沒有選擇設定時不會執行技能指令碼。',
|
||||
weknoraTemplateTitle: 'WeKnora 標準模板',
|
||||
weknoraDockerImage: 'WeKnora 標準映像',
|
||||
weknoraDockerImageHint: '每次會話獨佔一個長駐容器,指令碼、shell 命令與檔案都在同一個容器內,會話結束或空閒超時後回收。',
|
||||
weknoraTemplateOverview: 'WeKnora 負責提供標準運行環境。連結叢集後會自動發現模板,缺少標準模板時自動建立。',
|
||||
weknoraTemplateDescription: '包含 WeKnora 技能所需的 Python、Node.js、CLI 工具、工作目錄和非 root 執行使用者。',
|
||||
academyTemplateTitle: 'Academy 標準模板',
|
||||
academyDockerImage: 'Academy 標準映像',
|
||||
academyDockerImageHint: '每次會話獨佔一個長駐容器,指令碼、shell 命令與檔案都在同一個容器內,會話結束或空閒超時後回收。',
|
||||
academyTemplateOverview: 'Academy 負責提供標準運行環境。連結叢集後會自動發現模板,缺少標準模板時自動建立。',
|
||||
academyTemplateDescription: '包含 Academy 技能所需的 Python、Node.js、CLI 工具、工作目錄和非 root 執行使用者。',
|
||||
recommendedTag: '推薦',
|
||||
templateNotConfigured: '未設定模板',
|
||||
cardTemplateConfigured: '模板已設定',
|
||||
@@ -6860,7 +6860,7 @@ export default {
|
||||
templateSelectPlaceholder: '先連結叢集並載入模板',
|
||||
templateLoadHint: '填寫叢集連結後重新整理模板。沒有官方標準模板時,會從 Docker Hub 映像自動建構。桌面模板體積更大,需在下方單獨點「建立」。改 DNS 或映像後在對應卡片上點「重建」。',
|
||||
templateLoadFailed: '模板清單載入失敗',
|
||||
standardTemplateProvisioning: '已開始在叢集中建立 WeKnora 標準模板,請稍後重新整理查看狀態',
|
||||
standardTemplateProvisioning: '已開始在叢集中建立 Academy 標準模板,請稍後重新整理查看狀態',
|
||||
standardTemplateReplaced: '已刪除原標準模板並開始重建,請等待狀態就緒',
|
||||
templateNotReady: '所選模板尚未建構完成,請重新整理並等待狀態就緒',
|
||||
connectionPassed: '連結驗證透過,以下模板均從當前叢集實時載入。',
|
||||
@@ -6868,21 +6868,21 @@ export default {
|
||||
templateStepHint: '進入此步會列出叢集模板;若還沒有官方標準模板,會從 Docker Hub 映像自動建構。桌面模板(XFCE)體積較大,需單獨點「建立」。改 DNS 或映像後在對應卡片上點「重建」。選好並就緒後才能繼續。',
|
||||
loadingTemplates: '正在從叢集載入模板…',
|
||||
templateBuildingHint: '模板正在建構,清單會自動重新整理。',
|
||||
templateUntaggedHint: '建構已完成,但沒有建構帶 default 標籤,建立沙箱時無法解析。請在 E2B 刪除該模板,重新整理後 WeKnora 會重新建構。',
|
||||
templateUntaggedHint: '建構已完成,但沒有建構帶 default 標籤,建立沙箱時無法解析。請在 E2B 刪除該模板,重新整理後 Academy 會重新建構。',
|
||||
templateFailedReason: '建構失敗:{reason}',
|
||||
noTemplates: '當前叢集未返回可用模板。',
|
||||
weknoraStandardTemplate: 'WeKnora 標準模板',
|
||||
academyStandardTemplate: 'Academy 標準模板',
|
||||
createStandardTemplate: '建立',
|
||||
createStandardTemplateHint: '按當前連結設定建構,包含 DNS。之後改設定可在卡片上重建。',
|
||||
weknoraDesktopTemplate: 'WeKnora 桌面模板',
|
||||
academyDesktopTemplate: 'Academy 桌面模板',
|
||||
createDesktopTemplate: '建立',
|
||||
createDesktopTemplateHint: '從官方桌面映像建構 XFCE 圖形桌面。體積明顯大於標準模板,僅在需要圖形界面時建立。',
|
||||
replaceStandardTemplate: '重建',
|
||||
replaceStandardTemplateConfirm: '將用當前設定(含 DNS)重建 WeKnora 標準模板。新模板就緒前不會刪除仍可啟動的舊模板。',
|
||||
desktopTemplateProvisioning: '已開始在叢集中建立 WeKnora 桌面模板,請稍後重新整理查看狀態',
|
||||
replaceStandardTemplateConfirm: '將用當前設定(含 DNS)重建 Academy 標準模板。新模板就緒前不會刪除仍可啟動的舊模板。',
|
||||
desktopTemplateProvisioning: '已開始在叢集中建立 Academy 桌面模板,請稍後重新整理查看狀態',
|
||||
desktopTemplateReplaced: '已刪除原桌面模板並開始重建,請等待狀態就緒。標準(CLI)模板不受影響。',
|
||||
desktopTemplateTag: '桌面',
|
||||
replaceDesktopTemplateConfirm: '將用當前設定(含 DNS)重建 WeKnora 桌面模板。新模板就緒前不會刪除仍可啟動的舊桌面模板,也不會刪除標準(CLI)模板。',
|
||||
replaceDesktopTemplateConfirm: '將用當前設定(含 DNS)重建 Academy 桌面模板。新模板就緒前不會刪除仍可啟動的舊桌面模板,也不會刪除標準(CLI)模板。',
|
||||
templateLockedBySkills: '該沙箱已安裝 Skill,技能環境綁在當前快照上,不能更換或重建運行模板。請新建一份沙箱,從新模板再裝 Skill。',
|
||||
templateLockedByInFlight: '該沙箱正在安裝或移除 Skill,完成前不能更換或重建運行模板。',
|
||||
templateUnnamed: '未命名模板',
|
||||
@@ -6912,7 +6912,7 @@ export default {
|
||||
cubeApiKeyOptional: '可留空 ── 自建 CubeSandbox 通常無鑑權',
|
||||
cubeApiKeyWhere: '自建叢集如何開啟鑑權',
|
||||
cubeDnsServers: 'DNS 伺服器',
|
||||
cubeDnsServersHelp: '可選。寫入 WeKnora 標準模板的 nameserver(須為 IP)。留空則使用叢集預設(常見 119.29.29.29)。私網或雲上 UDP 53 出不去時,填 Cube 宿主機 /etc/resolv.conf 裡能用的地址,並避開 10/8、172.16/12、192.168/16。已有標準模板需在模板卡片上點「重建」才會生效。',
|
||||
cubeDnsServersHelp: '可選。寫入 Academy 標準模板的 nameserver(須為 IP)。留空則使用叢集預設(常見 119.29.29.29)。私網或雲上 UDP 53 出不去時,填 Cube 宿主機 /etc/resolv.conf 裡能用的地址,並避開 10/8、172.16/12、192.168/16。已有標準模板需在模板卡片上點「重建」才會生效。',
|
||||
cubeDnsServersPlaceholder: '例如 8.8.8.8,Enter新增',
|
||||
e2bApiKeyHelp: '在 E2B 控制台的 API Keys 頁面建立,通常以 e2b_ 開頭。',
|
||||
e2bApiKeyWhere: '前往 E2B 控制台獲取 API Key',
|
||||
@@ -6942,9 +6942,9 @@ export default {
|
||||
dockerHost: 'Docker 守護行程地址',
|
||||
dockerHostHelp: '留空跟隨本機 docker CLI(DOCKER_HOST 或當前 docker context),不必手填 /var/run/docker.sock。遠程守護行程填 tcp://host:2376,必須同時填寫 TLS 證書目錄,私網地址還要開啟「允許存取私網地址」。',
|
||||
dockerTlsCertPath: 'TLS 證書目錄',
|
||||
dockerTlsCertPathHelp: 'WeKnora 所在主機上包含 ca.pem、cert.pem、key.pem 的目錄。遠程守護行程必填,證書不入庫,由部署方掛載。',
|
||||
dockerTlsCertPathHelp: 'Academy 所在主機上包含 ca.pem、cert.pem、key.pem 的目錄。遠程守護行程必填,證書不入庫,由部署方掛載。',
|
||||
dockerIdleTtl: '空閒回收(秒)',
|
||||
dockerIdleTtlHelp: 'Docker 守護行程本身沒有空閒超時。容器多久沒有執行任何命令就會被 WeKnora 回收,會話繼續時重建。留空按 1800 秒。',
|
||||
dockerIdleTtlHelp: 'Docker 守護行程本身沒有空閒超時。容器多久沒有執行任何命令就會被 Academy 回收,會話繼續時重建。留空按 1800 秒。',
|
||||
dockerCpuLimit: 'CPU 核數上限',
|
||||
dockerCpuLimitHelp: '單個沙箱可用的 CPU 核數,0 使用內建預設。',
|
||||
dockerMemoryLimit: '記憶體上限(MB)',
|
||||
@@ -7011,7 +7011,7 @@ export default {
|
||||
allocationModeHint: '只影響還沒有用過沙箱的會話;已有會話保持原來的分配,不會搬遷檔案。',
|
||||
allocationModeSession: '每個會話一台沙箱(預設)',
|
||||
allocationModeUser: '同一使用者的會話共用一台沙箱',
|
||||
allocationModeUnavailable: '目前部署未開啟共用沙箱(需在所有實例設定 WEKNORA_SANDBOX_USER_ALLOCATION=enabled,並設定 Redis)。',
|
||||
allocationModeUnavailable: '目前部署未開啟共用沙箱(需在所有實例設定 ACADEMY_SANDBOX_USER_ALLOCATION=enabled,並設定 Redis)。',
|
||||
userSandboxRetentionDays: '空置沙箱保留天數',
|
||||
userSandboxRetentionHint: '某台共用沙箱上的會話全部刪除後,空置滿這個天數會被自動刪除(1–90 天)。這不是檔案最少保留時間:Docker 空閒回收或服務商故障可能更早刪除。',
|
||||
userSandboxesInInventory: '其中 {count} 台是使用者共用沙箱,影響該使用者在此設定下的全部會話。',
|
||||
@@ -7256,8 +7256,8 @@ export default {
|
||||
needsConfig: '需要設定',
|
||||
configurable: '可設定',
|
||||
pathPrefix: '路徑前綴(可選)',
|
||||
pathPrefixPlaceholder: '如 weknora/images',
|
||||
prefixPlaceholder: '如 weknora',
|
||||
pathPrefixPlaceholder: '如 academy/images',
|
||||
prefixPlaceholder: '如 academy',
|
||||
bucketName: 'Bucket 名稱',
|
||||
bucketPlaceholder: '存儲桶名稱',
|
||||
minioDesc: 'S3 相容的自託管物件存儲,適合內網和私有雲部署。',
|
||||
@@ -7413,48 +7413,48 @@ export default {
|
||||
paddleocrVlEndpointHint: '填寫 PaddleOCR-VL 完整服務(pipeline)地址,無需 /layout-parsing 後綴',
|
||||
paddleocrVlCloudTokenPlaceholder: 'PaddleOCR-VL 飛槳星河社區 Token'
|
||||
},
|
||||
weknoraCloud: {
|
||||
title: 'WeKnora Cloud',
|
||||
description: '設定 WeKnora Cloud 的 APPID 和 APPSECRET 憑證。憑證用於模型服務和文件解析引擎。',
|
||||
academyCloud: {
|
||||
title: 'Academy Cloud',
|
||||
description: '設定 Academy Cloud 的 APPID 和 APPSECRET 憑證。憑證用於模型服務和文件解析引擎。',
|
||||
viewDocs: '查看文件',
|
||||
unconfigured: '尚未設定憑證,請填寫 APPID 和 APPSECRET',
|
||||
configured: '憑證已設定,狀態正常',
|
||||
expired: 'WeKnora Cloud 憑證已失效',
|
||||
expired: 'Academy Cloud 憑證已失效',
|
||||
expiredDefault: '服務重啟後加密金鑰已變更,已儲存的憑證無法解密。請重新填寫憑證。',
|
||||
reconfigure: '重新設定',
|
||||
appIdLabel: 'APPID',
|
||||
appIdDesc: 'WeKnora Cloud 的應用 ID',
|
||||
appIdDesc: 'Academy Cloud 的應用 ID',
|
||||
appIdPlaceholder: '請輸入 APPID',
|
||||
appSecretLabel: 'APPSECRET',
|
||||
appSecretDesc: 'WeKnora Cloud 的應用金鑰',
|
||||
appSecretDesc: 'Academy Cloud 的應用金鑰',
|
||||
appSecretPlaceholder: '請輸入 APPSECRET',
|
||||
saveHint: '儲存後將驗證服務可達性並加密存儲憑證',
|
||||
saveBtn: '儲存憑證',
|
||||
usageTitle: '使用說明',
|
||||
usageSteps: '1. 填寫並儲存 APPID / APPSECRET\n2. 在下方「雲模型接入」中按行新增 chat、embedding、rerank、vlm\n3. 文件解析:知識庫設定 → 解析引擎,選擇 WeKnora Cloud 引擎',
|
||||
usageSteps: '1. 填寫並儲存 APPID / APPSECRET\n2. 在下方「雲模型接入」中按行新增 chat、embedding、rerank、vlm\n3. 文件解析:知識庫設定 → 解析引擎,選擇 Academy Cloud 引擎',
|
||||
fillRequired: '請填寫 APPID 和 APPSECRET',
|
||||
saveSuccess: '憑證已儲存',
|
||||
saveFailed: '憑證儲存失敗',
|
||||
credentialConfigured: 'WeKnoraCloud 憑證已設定',
|
||||
credentialConfigured: 'AcademyCloud 憑證已設定',
|
||||
credentialExpired: '憑證已失效,請重新設定。',
|
||||
credentialUnconfigured: '尚未設定 WeKnoraCloud 憑證,請先填寫 APPID 和 APPSECRET。',
|
||||
credentialUnconfigured: '尚未設定 AcademyCloud 憑證,請先填寫 APPID 和 APPSECRET。',
|
||||
checkingStatus: '正在檢查憑證狀態...',
|
||||
goToSettings: '前往設定中設定',
|
||||
modelHintConfigured: 'WeKnoraCloud 憑證已設定。支持的模型可參考',
|
||||
modelHintConfigured: 'AcademyCloud 憑證已設定。支持的模型可參考',
|
||||
modelHintDocsLink: '介面文件',
|
||||
addModelsSuccess: '已成功新增 {count} 個模型',
|
||||
addModelsPartial: '已新增 {success} 個,{failed} 個失敗',
|
||||
addModelsFailed: '新增模型失敗',
|
||||
addModelsEmbeddingFailed: 'Embedding 模型連結測試失敗,無法獲取向量維度',
|
||||
addModelsDisplayName: {
|
||||
chat: 'WeKnoraCloud 對話',
|
||||
embedding: 'WeKnoraCloud Embedding',
|
||||
rerank: 'WeKnoraCloud ReRank',
|
||||
vllm: 'WeKnoraCloud 視覺'
|
||||
chat: 'AcademyCloud 對話',
|
||||
embedding: 'AcademyCloud Embedding',
|
||||
rerank: 'AcademyCloud ReRank',
|
||||
vllm: 'AcademyCloud 視覺'
|
||||
},
|
||||
modelsSection: {
|
||||
title: '雲模型接入',
|
||||
descReady: '將 WeKnora Cloud 提供的四類標準模型註冊到當前空間,用於對話、向量檢索、重排序與多模態理解。',
|
||||
descReady: '將 Academy Cloud 提供的四類標準模型註冊到當前空間,用於對話、向量檢索、重排序與多模態理解。',
|
||||
descPending: '請先儲存上方憑證,再在此新增雲模型。',
|
||||
statusAdded: '已新增',
|
||||
statusPending: '待設定憑證',
|
||||
@@ -8571,10 +8571,10 @@ export default {
|
||||
},
|
||||
knowledge: {
|
||||
title: '建立你的知識庫',
|
||||
desc: '知識庫是一切的起點:上傳文件、網頁或 FAQ,WeKnora 會自動解析並建立索引。點擊這裡進入知識庫。'
|
||||
desc: '知識庫是一切的起點:上傳文件、網頁或 FAQ,Academy 會自動解析並建立索引。點擊這裡進入知識庫。'
|
||||
},
|
||||
welcome: {
|
||||
title: '歡迎使用 WeKnora',
|
||||
title: '歡迎使用 Academy',
|
||||
desc: '只需幾步,帶你快速了解知識庫、對話與智慧代理的核心用法。點擊「下一步」開始。'
|
||||
}
|
||||
}
|
||||
|
||||
@@ -33,7 +33,7 @@ async function bootstrap() {
|
||||
|
||||
// 全局错误处理:捕获未处理的组件错误,防止白屏
|
||||
app.config.errorHandler = (err, instance, info) => {
|
||||
console.error("[WeKnora] Unhandled Vue error:", err, "\nComponent:", instance, "\nInfo:", info);
|
||||
console.error("[Academy] Unhandled Vue error:", err, "\nComponent:", instance, "\nInfo:", info);
|
||||
};
|
||||
|
||||
app.use(TDesign);
|
||||
@@ -43,7 +43,7 @@ async function bootstrap() {
|
||||
// Capabilities (can_create_tenant, auto_accept_invitation) are not cached
|
||||
// in localStorage — reconcile once before first paint when a session exists.
|
||||
const authStore = useAuthStore();
|
||||
if (localStorage.getItem("weknora_token")) {
|
||||
if (localStorage.getItem("academy_token")) {
|
||||
try {
|
||||
await authStore.refreshFromAuthMe();
|
||||
} catch {
|
||||
|
||||
@@ -11,7 +11,7 @@ import { normalizeSettingsSection } from '@/config/settingsRoute'
|
||||
import { isToolboxSection, toolboxLocation } from '@/config/toolbox'
|
||||
|
||||
/** Lite /桌面 WebView 硬刷新时可能只打开 `/`,用 session 记住上次页面以便恢复 */
|
||||
const LITE_LAST_PATH_KEY = 'weknora_lite_last_path'
|
||||
const LITE_LAST_PATH_KEY = 'academy_lite_last_path'
|
||||
|
||||
// views/platform/index.vue always mounts the settings modal and opens it when
|
||||
// the path is /platform/settings, so this route only has to own the URL.
|
||||
@@ -19,7 +19,7 @@ const LITE_LAST_PATH_KEY = 'weknora_lite_last_path'
|
||||
const SettingsRouteOutlet = defineComponent({ name: 'SettingsRouteOutlet', render: () => null })
|
||||
|
||||
function isLiteEdition(authStore: ReturnType<typeof useAuthStore>) {
|
||||
return authStore.isLiteMode || localStorage.getItem('weknora_lite_mode') === 'true'
|
||||
return authStore.isLiteMode || localStorage.getItem('academy_lite_mode') === 'true'
|
||||
}
|
||||
|
||||
function isLiteSpaDefaultEntry(to: RouteLocationNormalized) {
|
||||
@@ -298,14 +298,14 @@ function persistLoginResponse(authStore: ReturnType<typeof useAuthStore>, respon
|
||||
}
|
||||
|
||||
async function hydrateSessionFromToken(authStore: ReturnType<typeof useAuthStore>) {
|
||||
const token = localStorage.getItem('weknora_token')
|
||||
const token = localStorage.getItem('academy_token')
|
||||
if (!token) return false
|
||||
|
||||
if (!authStore.token) {
|
||||
authStore.setToken(token)
|
||||
}
|
||||
|
||||
const storedRefreshToken = localStorage.getItem('weknora_refresh_token')
|
||||
const storedRefreshToken = localStorage.getItem('academy_refresh_token')
|
||||
if (storedRefreshToken && !authStore.refreshToken) {
|
||||
authStore.setRefreshToken(storedRefreshToken)
|
||||
}
|
||||
@@ -394,7 +394,7 @@ router.beforeEach(async (to, from, next) => {
|
||||
|
||||
if (!autoSetupAttempted) {
|
||||
autoSetupAttempted = true
|
||||
localStorage.removeItem('weknora_auto_setup_failed')
|
||||
localStorage.removeItem('academy_auto_setup_failed')
|
||||
try {
|
||||
const response = await autoSetup()
|
||||
if (response.success) {
|
||||
|
||||
@@ -97,14 +97,14 @@ export interface AssistantOpenRequest {
|
||||
focus?: Pick<AssistantPageContext, 'wikiIssueIds'>
|
||||
}
|
||||
|
||||
const SESSION_KEY_PREFIX = 'weknora:assistant-session'
|
||||
const VISIBLE_KEY_PREFIX = 'weknora:assistant-visible'
|
||||
const MODEL_KEY_PREFIX = 'weknora:assistant-model'
|
||||
const ACCESS_KEY_PREFIX = 'weknora:assistant-access'
|
||||
const PAGE_ACCESS_KEY_PREFIX = 'weknora:assistant-page-access'
|
||||
const LAYOUT_KEY = 'weknora:assistant-layout'
|
||||
const WIDTH_KEY = 'weknora:assistant-width'
|
||||
const ENTRY_KEY = 'weknora:assistant-entry'
|
||||
const SESSION_KEY_PREFIX = 'academy:assistant-session'
|
||||
const VISIBLE_KEY_PREFIX = 'academy:assistant-visible'
|
||||
const MODEL_KEY_PREFIX = 'academy:assistant-model'
|
||||
const ACCESS_KEY_PREFIX = 'academy:assistant-access'
|
||||
const PAGE_ACCESS_KEY_PREFIX = 'academy:assistant-page-access'
|
||||
const LAYOUT_KEY = 'academy:assistant-layout'
|
||||
const WIDTH_KEY = 'academy:assistant-width'
|
||||
const ENTRY_KEY = 'academy:assistant-entry'
|
||||
|
||||
/** Docked pushes the page aside; floating hovers over it. Neither blocks it. */
|
||||
export type AssistantLayout = 'docked' | 'floating'
|
||||
@@ -179,7 +179,7 @@ function hasPageContext(context: Partial<AssistantPageContext>): boolean {
|
||||
}
|
||||
|
||||
/**
|
||||
* Pinia store behind the global WeKnora assistant panel (rendered once in
|
||||
* Pinia store behind the global Academy assistant panel (rendered once in
|
||||
* platform/index.vue). Pages publish what is open through
|
||||
* useAssistantPageContext; anything can open the panel with open().
|
||||
*/
|
||||
|
||||
+41
-41
@@ -135,7 +135,7 @@ export const useAuthStore = defineStore('auth', () => {
|
||||
// UI to a Viewer who switched into a tenant where they were a Viewer
|
||||
// — every gate above (`hasRole(...)`) returned the home-tenant role.
|
||||
//
|
||||
// SECURITY: This value is read from localStorage (`weknora_memberships`)
|
||||
// SECURITY: This value is read from localStorage (`academy_memberships`)
|
||||
// and therefore MUST be treated as UI-rendering-only — any user can
|
||||
// tamper with localStorage and grant themselves "owner" here. All real
|
||||
// authorisation decisions live on the server (auth middleware resolves
|
||||
@@ -191,7 +191,7 @@ export const useAuthStore = defineStore('auth', () => {
|
||||
const previousId = user.value?.id
|
||||
user.value = userData
|
||||
// 保存到localStorage
|
||||
localStorage.setItem('weknora_user', JSON.stringify(userData))
|
||||
localStorage.setItem('academy_user', JSON.stringify(userData))
|
||||
if (previousId !== userData.id) {
|
||||
reloadUserPreferences()
|
||||
}
|
||||
@@ -200,35 +200,35 @@ export const useAuthStore = defineStore('auth', () => {
|
||||
const setTenant = (tenantData: TenantInfo | null) => {
|
||||
tenant.value = tenantData
|
||||
if (tenantData) {
|
||||
localStorage.setItem('weknora_tenant', JSON.stringify(tenantData))
|
||||
localStorage.setItem('academy_tenant', JSON.stringify(tenantData))
|
||||
} else {
|
||||
localStorage.removeItem('weknora_tenant')
|
||||
localStorage.removeItem('academy_tenant')
|
||||
setSelectedTenant(null, null)
|
||||
}
|
||||
}
|
||||
|
||||
const setToken = (tokenValue: string) => {
|
||||
token.value = tokenValue
|
||||
localStorage.setItem('weknora_token', tokenValue)
|
||||
localStorage.setItem('academy_token', tokenValue)
|
||||
}
|
||||
|
||||
const setRefreshToken = (refreshTokenValue: string) => {
|
||||
refreshToken.value = refreshTokenValue
|
||||
localStorage.setItem('weknora_refresh_token', refreshTokenValue)
|
||||
localStorage.setItem('academy_refresh_token', refreshTokenValue)
|
||||
}
|
||||
|
||||
const setKnowledgeBases = (kbList: KnowledgeBaseInfo[]) => {
|
||||
// 确保输入是数组
|
||||
knowledgeBases.value = Array.isArray(kbList) ? kbList : []
|
||||
localStorage.setItem('weknora_knowledge_bases', JSON.stringify(knowledgeBases.value))
|
||||
localStorage.setItem('academy_knowledge_bases', JSON.stringify(knowledgeBases.value))
|
||||
}
|
||||
|
||||
const setCurrentKnowledgeBase = (kb: KnowledgeBaseInfo | null) => {
|
||||
currentKnowledgeBase.value = kb
|
||||
if (kb) {
|
||||
localStorage.setItem('weknora_current_kb', JSON.stringify(kb))
|
||||
localStorage.setItem('academy_current_kb', JSON.stringify(kb))
|
||||
} else {
|
||||
localStorage.removeItem('weknora_current_kb')
|
||||
localStorage.removeItem('academy_current_kb')
|
||||
}
|
||||
}
|
||||
|
||||
@@ -240,9 +240,9 @@ export const useAuthStore = defineStore('auth', () => {
|
||||
// only on an actual tenant change, so logout / init paths are not touched.
|
||||
const clearTenantScopedClientState = () => {
|
||||
try {
|
||||
localStorage.removeItem('weknora_last_chat_model_id')
|
||||
localStorage.removeItem('weknora_current_kb')
|
||||
const raw = localStorage.getItem('WeKnora_settings')
|
||||
localStorage.removeItem('academy_last_chat_model_id')
|
||||
localStorage.removeItem('academy_current_kb')
|
||||
const raw = localStorage.getItem('Academy_settings')
|
||||
if (raw) {
|
||||
const parsed = JSON.parse(raw)
|
||||
if (parsed && typeof parsed === 'object') {
|
||||
@@ -258,7 +258,7 @@ export const useAuthStore = defineStore('auth', () => {
|
||||
parsed.selectedFiles = []
|
||||
parsed.selectedFileKbMap = {}
|
||||
parsed.knowledgeBaseId = ''
|
||||
localStorage.setItem('WeKnora_settings', JSON.stringify(parsed))
|
||||
localStorage.setItem('Academy_settings', JSON.stringify(parsed))
|
||||
}
|
||||
}
|
||||
} catch (e) {
|
||||
@@ -273,13 +273,13 @@ export const useAuthStore = defineStore('auth', () => {
|
||||
selectedTenantId.value = tenantId
|
||||
selectedTenantName.value = tenantName
|
||||
if (tenantId !== null) {
|
||||
localStorage.setItem('weknora_selected_tenant_id', String(tenantId))
|
||||
localStorage.setItem('academy_selected_tenant_id', String(tenantId))
|
||||
if (tenantName) {
|
||||
localStorage.setItem('weknora_selected_tenant_name', tenantName)
|
||||
localStorage.setItem('academy_selected_tenant_name', tenantName)
|
||||
}
|
||||
} else {
|
||||
localStorage.removeItem('weknora_selected_tenant_id')
|
||||
localStorage.removeItem('weknora_selected_tenant_name')
|
||||
localStorage.removeItem('academy_selected_tenant_id')
|
||||
localStorage.removeItem('academy_selected_tenant_name')
|
||||
}
|
||||
if (tenantChanged) {
|
||||
clearTenantScopedClientState()
|
||||
@@ -294,7 +294,7 @@ export const useAuthStore = defineStore('auth', () => {
|
||||
list: Array<{ tenant_id: number; tenant_name?: string; role: string }>
|
||||
) => {
|
||||
memberships.value = Array.isArray(list) ? list : []
|
||||
localStorage.setItem('weknora_memberships', JSON.stringify(memberships.value))
|
||||
localStorage.setItem('academy_memberships', JSON.stringify(memberships.value))
|
||||
}
|
||||
|
||||
// setPendingInvitationCount is the explicit setter used by the
|
||||
@@ -436,9 +436,9 @@ export const useAuthStore = defineStore('auth', () => {
|
||||
const setLiteMode = (value: boolean) => {
|
||||
isLiteMode.value = value
|
||||
if (value) {
|
||||
localStorage.setItem('weknora_lite_mode', 'true')
|
||||
localStorage.setItem('academy_lite_mode', 'true')
|
||||
} else {
|
||||
localStorage.removeItem('weknora_lite_mode')
|
||||
localStorage.removeItem('academy_lite_mode')
|
||||
}
|
||||
}
|
||||
|
||||
@@ -463,19 +463,19 @@ export const useAuthStore = defineStore('auth', () => {
|
||||
clearSessionResourceCaches()
|
||||
|
||||
// 清空localStorage
|
||||
localStorage.removeItem('weknora_user')
|
||||
localStorage.removeItem('weknora_tenant')
|
||||
localStorage.removeItem('weknora_token')
|
||||
localStorage.removeItem('weknora_refresh_token')
|
||||
localStorage.removeItem('weknora_knowledge_bases')
|
||||
localStorage.removeItem('weknora_current_kb')
|
||||
localStorage.removeItem('weknora_selected_tenant_id')
|
||||
localStorage.removeItem('weknora_selected_tenant_name')
|
||||
localStorage.removeItem('weknora_memberships')
|
||||
localStorage.removeItem('weknora_lite_mode')
|
||||
localStorage.removeItem('academy_user')
|
||||
localStorage.removeItem('academy_tenant')
|
||||
localStorage.removeItem('academy_token')
|
||||
localStorage.removeItem('academy_refresh_token')
|
||||
localStorage.removeItem('academy_knowledge_bases')
|
||||
localStorage.removeItem('academy_current_kb')
|
||||
localStorage.removeItem('academy_selected_tenant_id')
|
||||
localStorage.removeItem('academy_selected_tenant_name')
|
||||
localStorage.removeItem('academy_memberships')
|
||||
localStorage.removeItem('academy_lite_mode')
|
||||
isLiteMode.value = false
|
||||
try {
|
||||
sessionStorage.removeItem('weknora_lite_last_path')
|
||||
sessionStorage.removeItem('academy_lite_last_path')
|
||||
} catch {
|
||||
/* ignore */
|
||||
}
|
||||
@@ -484,14 +484,14 @@ export const useAuthStore = defineStore('auth', () => {
|
||||
|
||||
const initFromStorage = () => {
|
||||
// 从localStorage恢复状态
|
||||
const storedUser = localStorage.getItem('weknora_user')
|
||||
const storedTenant = localStorage.getItem('weknora_tenant')
|
||||
const storedToken = localStorage.getItem('weknora_token')
|
||||
const storedRefreshToken = localStorage.getItem('weknora_refresh_token')
|
||||
const storedKnowledgeBases = localStorage.getItem('weknora_knowledge_bases')
|
||||
const storedCurrentKb = localStorage.getItem('weknora_current_kb')
|
||||
const storedSelectedTenantId = localStorage.getItem('weknora_selected_tenant_id')
|
||||
const storedSelectedTenantName = localStorage.getItem('weknora_selected_tenant_name')
|
||||
const storedUser = localStorage.getItem('academy_user')
|
||||
const storedTenant = localStorage.getItem('academy_tenant')
|
||||
const storedToken = localStorage.getItem('academy_token')
|
||||
const storedRefreshToken = localStorage.getItem('academy_refresh_token')
|
||||
const storedKnowledgeBases = localStorage.getItem('academy_knowledge_bases')
|
||||
const storedCurrentKb = localStorage.getItem('academy_current_kb')
|
||||
const storedSelectedTenantId = localStorage.getItem('academy_selected_tenant_id')
|
||||
const storedSelectedTenantName = localStorage.getItem('academy_selected_tenant_name')
|
||||
|
||||
if (storedUser) {
|
||||
try {
|
||||
@@ -552,7 +552,7 @@ export const useAuthStore = defineStore('auth', () => {
|
||||
}
|
||||
}
|
||||
|
||||
const storedMemberships = localStorage.getItem('weknora_memberships')
|
||||
const storedMemberships = localStorage.getItem('academy_memberships')
|
||||
if (storedMemberships) {
|
||||
try {
|
||||
const parsed = JSON.parse(storedMemberships)
|
||||
@@ -563,7 +563,7 @@ export const useAuthStore = defineStore('auth', () => {
|
||||
}
|
||||
}
|
||||
|
||||
isLiteMode.value = localStorage.getItem('weknora_lite_mode') === 'true'
|
||||
isLiteMode.value = localStorage.getItem('academy_lite_mode') === 'true'
|
||||
}
|
||||
|
||||
// 初始化时从localStorage恢复状态
|
||||
|
||||
@@ -37,7 +37,7 @@ test('browser and web search selections are independent and persisted', () => {
|
||||
store.toggleLocalBrowser(true)
|
||||
assert.equal(store.isLocalBrowserEnabled, true)
|
||||
assert.equal(store.settings.webSearchEnabled, true)
|
||||
assert.equal(JSON.parse(items.get('WeKnora_settings')!).localBrowserEnabled, true)
|
||||
assert.equal(JSON.parse(items.get('Academy_settings')!).localBrowserEnabled, true)
|
||||
store.toggleWebSearch(false)
|
||||
assert.equal(store.isLocalBrowserEnabled, true)
|
||||
store.toggleWebSearch(true)
|
||||
@@ -53,7 +53,7 @@ test('reasoning overrides belong to the session, restore on reload and never bec
|
||||
assert.equal(store.reasoningEffortOverride, '')
|
||||
store.reasoningEffortOverride = 'high'
|
||||
store.toggleWebSearch(true)
|
||||
assert.equal(JSON.stringify(JSON.parse(items.get('WeKnora_settings')!)).includes('high'), false)
|
||||
assert.equal(JSON.stringify(JSON.parse(items.get('Academy_settings')!)).includes('high'), false)
|
||||
store.hydrateSessionInputState({}, true)
|
||||
assert.equal(store.reasoningEffortOverride, 'high', 'first send keeps the createChat choice')
|
||||
store.restoreDefaultsIfSnapshotted()
|
||||
|
||||
@@ -2,7 +2,7 @@ import { defineStore } from 'pinia'
|
||||
import { ref, watch } from 'vue'
|
||||
import { useAuthStore } from './auth'
|
||||
|
||||
const RECENT_KEY_PREFIX = 'weknora_cmdk_recent'
|
||||
const RECENT_KEY_PREFIX = 'academy_cmdk_recent'
|
||||
const RECENT_LIMIT = 4
|
||||
|
||||
// recentKey scopes "recent searches" to the active (user, tenant) pair.
|
||||
|
||||
@@ -9,7 +9,7 @@ import {
|
||||
type SessionActivity,
|
||||
} from './sessionActivityState'
|
||||
|
||||
const STORAGE_PREFIX = 'weknora:session-activity'
|
||||
const STORAGE_PREFIX = 'academy:session-activity'
|
||||
|
||||
export const useSessionActivityStore = defineStore('sessionActivity', () => {
|
||||
const entries = reactive<Record<string, SessionActivity>>({})
|
||||
|
||||
@@ -54,7 +54,7 @@ for (const state of [{ agent_enabled: true, knowledge_base_ids: [] }, emptySelec
|
||||
test(`session hydration clears stale file, tag, and tool selections when saved lists are ${'knowledge_ids' in state ? 'empty' : 'omitted'}`, () => {
|
||||
const store = useSettingsStore(createPinia())
|
||||
selectDefaults(store)
|
||||
const storedDefaults = items.get('WeKnora_settings')
|
||||
const storedDefaults = items.get('Academy_settings')
|
||||
|
||||
store.hydrateSessionInputState(state)
|
||||
|
||||
@@ -67,7 +67,7 @@ for (const state of [{ agent_enabled: true, knowledge_base_ids: [] }, emptySelec
|
||||
assert.deepEqual(store.getSuggestedQuestionsParams(), {
|
||||
knowledge_base_ids: undefined, knowledge_ids: undefined, tag_scopes: undefined, limit: undefined,
|
||||
})
|
||||
assert.equal(items.get('WeKnora_settings'), storedDefaults, 'hydration must not overwrite browser defaults')
|
||||
assert.equal(items.get('Academy_settings'), storedDefaults, 'hydration must not overwrite browser defaults')
|
||||
store.restoreDefaultsIfSnapshotted()
|
||||
assert.deepEqual(JSON.parse(JSON.stringify(store.settings)), JSON.parse(storedDefaults!))
|
||||
})
|
||||
|
||||
@@ -187,7 +187,7 @@ export const useSettingsStore = defineStore("settings", {
|
||||
saveSettings(settings: Settings) {
|
||||
this.settings = { ...settings };
|
||||
// 保存到localStorage
|
||||
localStorage.setItem("WeKnora_settings", JSON.stringify(this.settings));
|
||||
localStorage.setItem("Academy_settings", JSON.stringify(this.settings));
|
||||
},
|
||||
|
||||
// 获取设置
|
||||
@@ -213,25 +213,25 @@ export const useSettingsStore = defineStore("settings", {
|
||||
// 启用/禁用 Agent
|
||||
toggleAgent(enabled: boolean) {
|
||||
this.settings.isAgentEnabled = enabled;
|
||||
localStorage.setItem("WeKnora_settings", JSON.stringify(this.settings));
|
||||
localStorage.setItem("Academy_settings", JSON.stringify(this.settings));
|
||||
},
|
||||
|
||||
// 更新 Agent 配置
|
||||
updateAgentConfig(config: Partial<AgentConfig>) {
|
||||
this.settings.agentConfig = { ...this.settings.agentConfig, ...config };
|
||||
localStorage.setItem("WeKnora_settings", JSON.stringify(this.settings));
|
||||
localStorage.setItem("Academy_settings", JSON.stringify(this.settings));
|
||||
},
|
||||
|
||||
updateConversationModels(models: Partial<ConversationModels>) {
|
||||
const current = this.settings.conversationModels || defaultSettings.conversationModels;
|
||||
this.settings.conversationModels = { ...current, ...models };
|
||||
localStorage.setItem("WeKnora_settings", JSON.stringify(this.settings));
|
||||
localStorage.setItem("Academy_settings", JSON.stringify(this.settings));
|
||||
},
|
||||
|
||||
// 更新模型配置
|
||||
updateModelConfig(config: Partial<ModelConfig>) {
|
||||
this.settings.modelConfig = { ...this.settings.modelConfig, ...config };
|
||||
localStorage.setItem("WeKnora_settings", JSON.stringify(this.settings));
|
||||
localStorage.setItem("Academy_settings", JSON.stringify(this.settings));
|
||||
},
|
||||
|
||||
// 添加模型
|
||||
@@ -248,7 +248,7 @@ export const useSettingsStore = defineStore("settings", {
|
||||
}
|
||||
models.push(model);
|
||||
this.settings.modelConfig[key] = models as any;
|
||||
localStorage.setItem("WeKnora_settings", JSON.stringify(this.settings));
|
||||
localStorage.setItem("Academy_settings", JSON.stringify(this.settings));
|
||||
},
|
||||
|
||||
// 更新模型
|
||||
@@ -263,7 +263,7 @@ export const useSettingsStore = defineStore("settings", {
|
||||
}
|
||||
models[index] = { ...models[index], ...updates };
|
||||
this.settings.modelConfig[key] = models as any;
|
||||
localStorage.setItem("WeKnora_settings", JSON.stringify(this.settings));
|
||||
localStorage.setItem("Academy_settings", JSON.stringify(this.settings));
|
||||
}
|
||||
},
|
||||
|
||||
@@ -278,7 +278,7 @@ export const useSettingsStore = defineStore("settings", {
|
||||
models[0].isDefault = true;
|
||||
}
|
||||
this.settings.modelConfig[key] = models as any;
|
||||
localStorage.setItem("WeKnora_settings", JSON.stringify(this.settings));
|
||||
localStorage.setItem("Academy_settings", JSON.stringify(this.settings));
|
||||
},
|
||||
|
||||
// 设置默认模型
|
||||
@@ -287,26 +287,26 @@ export const useSettingsStore = defineStore("settings", {
|
||||
const models = [...this.settings.modelConfig[key]] as ModelItem[];
|
||||
models.forEach(m => m.isDefault = (m.id === modelId));
|
||||
this.settings.modelConfig[key] = models as any;
|
||||
localStorage.setItem("WeKnora_settings", JSON.stringify(this.settings));
|
||||
localStorage.setItem("Academy_settings", JSON.stringify(this.settings));
|
||||
},
|
||||
|
||||
// 更新 Ollama 配置
|
||||
updateOllamaConfig(config: Partial<OllamaConfig>) {
|
||||
this.settings.ollamaConfig = { ...this.settings.ollamaConfig, ...config };
|
||||
localStorage.setItem("WeKnora_settings", JSON.stringify(this.settings));
|
||||
localStorage.setItem("Academy_settings", JSON.stringify(this.settings));
|
||||
},
|
||||
|
||||
// 选择知识库(替换整个列表)
|
||||
selectKnowledgeBases(kbIds: string[]) {
|
||||
this.settings.selectedKnowledgeBases = kbIds;
|
||||
localStorage.setItem("WeKnora_settings", JSON.stringify(this.settings));
|
||||
localStorage.setItem("Academy_settings", JSON.stringify(this.settings));
|
||||
},
|
||||
|
||||
// 添加单个知识库
|
||||
addKnowledgeBase(kbId: string) {
|
||||
if (!this.settings.selectedKnowledgeBases.includes(kbId)) {
|
||||
this.settings.selectedKnowledgeBases.push(kbId);
|
||||
localStorage.setItem("WeKnora_settings", JSON.stringify(this.settings));
|
||||
localStorage.setItem("Academy_settings", JSON.stringify(this.settings));
|
||||
}
|
||||
},
|
||||
|
||||
@@ -314,13 +314,13 @@ export const useSettingsStore = defineStore("settings", {
|
||||
removeKnowledgeBase(kbId: string) {
|
||||
this.settings.selectedKnowledgeBases =
|
||||
this.settings.selectedKnowledgeBases.filter((id: string) => id !== kbId);
|
||||
localStorage.setItem("WeKnora_settings", JSON.stringify(this.settings));
|
||||
localStorage.setItem("Academy_settings", JSON.stringify(this.settings));
|
||||
},
|
||||
|
||||
// 清空知识库选择
|
||||
clearKnowledgeBases() {
|
||||
this.settings.selectedKnowledgeBases = [];
|
||||
localStorage.setItem("WeKnora_settings", JSON.stringify(this.settings));
|
||||
localStorage.setItem("Academy_settings", JSON.stringify(this.settings));
|
||||
},
|
||||
|
||||
// 获取选中的知识库列表
|
||||
@@ -331,18 +331,18 @@ export const useSettingsStore = defineStore("settings", {
|
||||
// 本机浏览器与联网搜索可独立选择。
|
||||
toggleLocalBrowser(enabled: boolean) {
|
||||
this.settings.localBrowserEnabled = enabled;
|
||||
localStorage.setItem("WeKnora_settings", JSON.stringify(this.settings));
|
||||
localStorage.setItem("Academy_settings", JSON.stringify(this.settings));
|
||||
},
|
||||
|
||||
toggleWebSearch(enabled: boolean) {
|
||||
this.settings.webSearchEnabled = enabled;
|
||||
localStorage.setItem("WeKnora_settings", JSON.stringify(this.settings));
|
||||
localStorage.setItem("Academy_settings", JSON.stringify(this.settings));
|
||||
},
|
||||
|
||||
// 启用/禁用自动检查更新
|
||||
toggleAutoCheckUpdate(enabled: boolean) {
|
||||
this.settings.autoCheckUpdate = enabled;
|
||||
localStorage.setItem("WeKnora_settings", JSON.stringify(this.settings));
|
||||
localStorage.setItem("Academy_settings", JSON.stringify(this.settings));
|
||||
},
|
||||
|
||||
// File selection actions
|
||||
@@ -350,7 +350,7 @@ export const useSettingsStore = defineStore("settings", {
|
||||
if (!this.settings.selectedFiles) this.settings.selectedFiles = [];
|
||||
if (!this.settings.selectedFiles.includes(fileId)) {
|
||||
this.settings.selectedFiles.push(fileId);
|
||||
localStorage.setItem("WeKnora_settings", JSON.stringify(this.settings));
|
||||
localStorage.setItem("Academy_settings", JSON.stringify(this.settings));
|
||||
}
|
||||
},
|
||||
|
||||
@@ -358,71 +358,71 @@ export const useSettingsStore = defineStore("settings", {
|
||||
if (!this.settings.selectedFiles) return;
|
||||
this.settings.selectedFiles = this.settings.selectedFiles.filter((id: string) => id !== fileId);
|
||||
if (this.settings.selectedFileKbMap) delete this.settings.selectedFileKbMap[fileId];
|
||||
localStorage.setItem("WeKnora_settings", JSON.stringify(this.settings));
|
||||
localStorage.setItem("Academy_settings", JSON.stringify(this.settings));
|
||||
},
|
||||
|
||||
clearFiles() {
|
||||
this.settings.selectedFiles = [];
|
||||
this.settings.selectedFileKbMap = {};
|
||||
localStorage.setItem("WeKnora_settings", JSON.stringify(this.settings));
|
||||
localStorage.setItem("Academy_settings", JSON.stringify(this.settings));
|
||||
},
|
||||
|
||||
addTag(tag: { id: string; name: string; kbId: string; kbName?: string }) {
|
||||
if (!this.settings.selectedTags) this.settings.selectedTags = [];
|
||||
if (!this.settings.selectedTags.some(t => t.id === tag.id && t.kbId === tag.kbId)) {
|
||||
this.settings.selectedTags.push(tag);
|
||||
localStorage.setItem("WeKnora_settings", JSON.stringify(this.settings));
|
||||
localStorage.setItem("Academy_settings", JSON.stringify(this.settings));
|
||||
}
|
||||
},
|
||||
|
||||
removeTag(tagId: string, kbId?: string) {
|
||||
if (!this.settings.selectedTags) return;
|
||||
this.settings.selectedTags = this.settings.selectedTags.filter(t => !(t.id === tagId && (!kbId || t.kbId === kbId)));
|
||||
localStorage.setItem("WeKnora_settings", JSON.stringify(this.settings));
|
||||
localStorage.setItem("Academy_settings", JSON.stringify(this.settings));
|
||||
},
|
||||
|
||||
clearTags() {
|
||||
this.settings.selectedTags = [];
|
||||
localStorage.setItem("WeKnora_settings", JSON.stringify(this.settings));
|
||||
localStorage.setItem("Academy_settings", JSON.stringify(this.settings));
|
||||
},
|
||||
|
||||
addMCPService(serviceId: string) {
|
||||
if (!this.settings.selectedMCPServices) this.settings.selectedMCPServices = [];
|
||||
if (!this.settings.selectedMCPServices.includes(serviceId)) {
|
||||
this.settings.selectedMCPServices.push(serviceId);
|
||||
localStorage.setItem("WeKnora_settings", JSON.stringify(this.settings));
|
||||
localStorage.setItem("Academy_settings", JSON.stringify(this.settings));
|
||||
}
|
||||
},
|
||||
|
||||
removeMCPService(serviceId: string) {
|
||||
if (!this.settings.selectedMCPServices) return;
|
||||
this.settings.selectedMCPServices = this.settings.selectedMCPServices.filter(id => id !== serviceId);
|
||||
localStorage.setItem("WeKnora_settings", JSON.stringify(this.settings));
|
||||
localStorage.setItem("Academy_settings", JSON.stringify(this.settings));
|
||||
},
|
||||
|
||||
addSkill(skillName: string) {
|
||||
if (!this.settings.selectedSkills) this.settings.selectedSkills = [];
|
||||
if (!this.settings.selectedSkills.includes(skillName)) {
|
||||
this.settings.selectedSkills.push(skillName);
|
||||
localStorage.setItem("WeKnora_settings", JSON.stringify(this.settings));
|
||||
localStorage.setItem("Academy_settings", JSON.stringify(this.settings));
|
||||
}
|
||||
},
|
||||
|
||||
removeSkill(skillName: string) {
|
||||
if (!this.settings.selectedSkills) return;
|
||||
this.settings.selectedSkills = this.settings.selectedSkills.filter(name => name !== skillName);
|
||||
localStorage.setItem("WeKnora_settings", JSON.stringify(this.settings));
|
||||
localStorage.setItem("Academy_settings", JSON.stringify(this.settings));
|
||||
},
|
||||
|
||||
setFileKbMap(updates: Record<string, string>) {
|
||||
if (!this.settings.selectedFileKbMap) this.settings.selectedFileKbMap = {};
|
||||
Object.assign(this.settings.selectedFileKbMap, updates);
|
||||
localStorage.setItem("WeKnora_settings", JSON.stringify(this.settings));
|
||||
localStorage.setItem("Academy_settings", JSON.stringify(this.settings));
|
||||
},
|
||||
|
||||
removeFileKbId(fileId: string) {
|
||||
if (this.settings.selectedFileKbMap) delete this.settings.selectedFileKbMap[fileId];
|
||||
localStorage.setItem("WeKnora_settings", JSON.stringify(this.settings));
|
||||
localStorage.setItem("Academy_settings", JSON.stringify(this.settings));
|
||||
},
|
||||
|
||||
getSelectedFiles(): string[] {
|
||||
@@ -482,7 +482,7 @@ export const useSettingsStore = defineStore("settings", {
|
||||
this.settings.selectedTags = [];
|
||||
this.settings.selectedMCPServices = [];
|
||||
this.settings.selectedSkills = [];
|
||||
localStorage.setItem("WeKnora_settings", JSON.stringify(this.settings));
|
||||
localStorage.setItem("Academy_settings", JSON.stringify(this.settings));
|
||||
},
|
||||
|
||||
// 获取选中的智能体ID
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import assert from "node:assert/strict";
|
||||
import test from "node:test";
|
||||
|
||||
const SETTINGS_STORAGE_KEY = "WeKnora_settings";
|
||||
const SETTINGS_STORAGE_KEY = "Academy_settings";
|
||||
const BUILTIN_QUICK_ANSWER_ID = "builtin-quick-answer";
|
||||
const BUILTIN_SMART_REASONING_ID = "builtin-smart-reasoning";
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { safeRemoveItem, safeSetItem } from "@/composables/preferenceStorage";
|
||||
import { reconcileBuiltinAgentMode } from "@/utils/agent-mode";
|
||||
|
||||
export const SETTINGS_STORAGE_KEY = "WeKnora_settings";
|
||||
export const SETTINGS_STORAGE_KEY = "Academy_settings";
|
||||
|
||||
/** Deep-clone settings so nested arrays/objects are not shared with defaults. */
|
||||
export function cloneSettings<T>(settings: T): T {
|
||||
@@ -46,7 +46,7 @@ function resetStoredSettings<T extends ReconcilableSettings>(
|
||||
reason: unknown,
|
||||
): T {
|
||||
console.error(
|
||||
"[settings] Failed to parse WeKnora_settings from localStorage, resetting to defaults:",
|
||||
"[settings] Failed to parse Academy_settings from localStorage, resetting to defaults:",
|
||||
reason,
|
||||
);
|
||||
safeRemoveItem(SETTINGS_STORAGE_KEY);
|
||||
|
||||
Vendored
+1
-1
@@ -17,7 +17,7 @@ declare module '@novnc/novnc' {
|
||||
|
||||
export interface RFBOptions {
|
||||
/**
|
||||
* Not used by WeKnora: the desktop authenticates one hop out, on
|
||||
* Not used by Academy: the desktop authenticates one hop out, on
|
||||
* websockify, and the RFB security type is None. Declared so a future
|
||||
* reader can see that leaving it out is a decision, not an omission.
|
||||
*/
|
||||
|
||||
@@ -36,8 +36,8 @@ export type DisplayType =
|
||||
| 'mcp_call'
|
||||
| 'find_operations'
|
||||
| 'run_operation'
|
||||
| 'search_weknora_docs'
|
||||
| 'read_weknora_doc'
|
||||
| 'search_academy_docs'
|
||||
| 'read_academy_doc'
|
||||
| 'work_wait';
|
||||
|
||||
// Search result item
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import type { ModelConfig } from '@/api/model'
|
||||
|
||||
export const WEKNORA_CLOUD_BASE_URL = 'https://weknora.weixin.qq.com'
|
||||
export const WEKNORA_CLOUD_PROVIDER = 'weknoracloud'
|
||||
export const ACADEMY_CLOUD_BASE_URL = 'https://weknora.weixin.qq.com'
|
||||
export const ACADEMY_CLOUD_PROVIDER = 'academycloud'
|
||||
|
||||
export type WkcModelKind = 'chat' | 'embedding' | 'rerank' | 'vllm'
|
||||
|
||||
@@ -21,15 +21,15 @@ export const WKC_MODEL_NAME_BY_KIND: Record<WkcModelKind, string> = {
|
||||
|
||||
export const WKC_MODEL_KINDS: WkcModelKind[] = ['chat', 'embedding', 'rerank', 'vllm']
|
||||
|
||||
export function isWeKnoraCloudModel(model: ModelConfig): boolean {
|
||||
return model.parameters?.provider === WEKNORA_CLOUD_PROVIDER
|
||||
export function isAcademyCloudModel(model: ModelConfig): boolean {
|
||||
return model.parameters?.provider === ACADEMY_CLOUD_PROVIDER
|
||||
}
|
||||
|
||||
/** Returns kinds that already have a WeKnoraCloud model of the matching backend type. */
|
||||
/** Returns kinds that already have a AcademyCloud model of the matching backend type. */
|
||||
export function existingWkcKinds(models: ModelConfig[]): Set<WkcModelKind> {
|
||||
const found = new Set<WkcModelKind>()
|
||||
for (const model of models) {
|
||||
if (!isWeKnoraCloudModel(model)) continue
|
||||
if (!isAcademyCloudModel(model)) continue
|
||||
for (const kind of WKC_MODEL_KINDS) {
|
||||
if (model.type === BACKEND_TYPE_BY_KIND[kind]) {
|
||||
found.add(kind)
|
||||
@@ -47,8 +47,8 @@ export function buildWkcModelConfig(
|
||||
const name = WKC_MODEL_NAME_BY_KIND[kind]
|
||||
const type = BACKEND_TYPE_BY_KIND[kind]
|
||||
const parameters: ModelConfig['parameters'] = {
|
||||
base_url: WEKNORA_CLOUD_BASE_URL,
|
||||
provider: WEKNORA_CLOUD_PROVIDER,
|
||||
base_url: ACADEMY_CLOUD_BASE_URL,
|
||||
provider: ACADEMY_CLOUD_PROVIDER,
|
||||
}
|
||||
|
||||
if (kind === 'embedding' && dimension) {
|
||||
@@ -0,0 +1,62 @@
|
||||
import assert from 'node:assert/strict'
|
||||
import test from 'node:test'
|
||||
|
||||
import { marked } from 'marked'
|
||||
|
||||
import { renderChatMarkdown } from './chatMarkdownRenderer.ts'
|
||||
import { parseAcademyEntityURI, renderAcademyEntityLinks } from './academyEntityLinks.ts'
|
||||
|
||||
const LABELS = { kb: '知识库', doc: '文档', chunk: '片段' }
|
||||
const KB_ID = 'kb-0001'
|
||||
const DOC_ID = '00000001-0000-4000-8000-000000000001'
|
||||
|
||||
test('parseAcademyEntityURI accepts only whole durable URIs', () => {
|
||||
assert.deepEqual(parseAcademyEntityURI(`academy://kb/${KB_ID}`), { kind: 'kb', id: KB_ID })
|
||||
assert.deepEqual(parseAcademyEntityURI(`Academy://DOC/${DOC_ID}`), { kind: 'doc', id: DOC_ID })
|
||||
assert.equal(parseAcademyEntityURI('academy://kb/'), null)
|
||||
assert.equal(parseAcademyEntityURI('academy://user/1'), null)
|
||||
assert.equal(parseAcademyEntityURI(`see academy://kb/${KB_ID}`), null)
|
||||
assert.equal(parseAcademyEntityURI('javascript:alert(1)'), null)
|
||||
})
|
||||
|
||||
test('markdown links to academy URIs keep their text and become entity links', () => {
|
||||
const html = renderAcademyEntityLinks(
|
||||
`<p>存入 <a href="academy://kb/${KB_ID}">每日热榜</a> 即可</p>`,
|
||||
LABELS,
|
||||
)
|
||||
assert.equal(
|
||||
html,
|
||||
'<p>存入 <span class="academy-entity-link" role="link" tabindex="0" title="知识库" ' +
|
||||
`data-entity-kind="kb" data-entity-id="${KB_ID}">每日热榜</span> 即可</p>`,
|
||||
)
|
||||
})
|
||||
|
||||
test('bare academy URIs in prose show the real ID with the kind as tooltip', () => {
|
||||
const html = renderAcademyEntityLinks(`<p>参考 academy://doc/${DOC_ID}。</p>`, LABELS)
|
||||
assert.match(html, new RegExp(`title="文档" data-entity-kind="doc" data-entity-id="${DOC_ID}">${DOC_ID}</span>。`))
|
||||
assert.doesNotMatch(html, /academy:\/\//)
|
||||
})
|
||||
|
||||
test('academy URIs inside code, pre and ordinary links are left alone', () => {
|
||||
const input =
|
||||
`<p><code>academy://kb/${KB_ID}</code></p>` +
|
||||
`<pre><code>academy://kb/${KB_ID}</code></pre>` +
|
||||
`<p><a href="https://example.com">academy://kb/${KB_ID}</a></p>`
|
||||
assert.equal(renderAcademyEntityLinks(input, LABELS), input)
|
||||
})
|
||||
|
||||
test('renderChatMarkdown renders academy links only when labels are supplied', () => {
|
||||
const markdown = `把结果写入 [热榜知识库](academy://kb/${KB_ID}),并参考 academy://doc/${DOC_ID}`
|
||||
const options = {
|
||||
renderer: new marked.Renderer(),
|
||||
escapeMarkdown: (text: string) => text,
|
||||
sanitizeHtml: (html: string) => html,
|
||||
}
|
||||
const plain = renderChatMarkdown(markdown, options)
|
||||
assert.doesNotMatch(plain, /academy-entity-link/)
|
||||
|
||||
const linked = renderChatMarkdown(markdown, { ...options, entityLinkLabels: LABELS })
|
||||
assert.match(linked, new RegExp(`data-entity-kind="kb" data-entity-id="${KB_ID}">热榜知识库</span>`))
|
||||
assert.match(linked, new RegExp(`data-entity-kind="doc" data-entity-id="${DOC_ID}">${DOC_ID}</span>`))
|
||||
assert.doesNotMatch(linked, /href="academy:/)
|
||||
})
|
||||
+18
-18
@@ -1,45 +1,45 @@
|
||||
export type WeKnoraEntityKind = 'kb' | 'doc' | 'chunk'
|
||||
export type AcademyEntityKind = 'kb' | 'doc' | 'chunk'
|
||||
|
||||
export interface WeKnoraEntityRef {
|
||||
kind: WeKnoraEntityKind
|
||||
export interface AcademyEntityRef {
|
||||
kind: AcademyEntityKind
|
||||
id: string
|
||||
}
|
||||
|
||||
export type WeKnoraEntityLinkLabels = Record<WeKnoraEntityKind, string>
|
||||
export type AcademyEntityLinkLabels = Record<AcademyEntityKind, string>
|
||||
|
||||
export const WEKNORA_ENTITY_LINK_CLASS = 'weknora-entity-link'
|
||||
export const ACADEMY_ENTITY_LINK_CLASS = 'academy-entity-link'
|
||||
|
||||
const URI_BODY = '(kb|doc|chunk)/([0-9A-Za-z][0-9A-Za-z_-]*)'
|
||||
const URI_EXACT_RE = new RegExp(`^weknora://${URI_BODY}$`, 'i')
|
||||
const URI_IN_TEXT_RE = new RegExp(`weknora://${URI_BODY}`, 'gi')
|
||||
const URI_EXACT_RE = new RegExp(`^academy://${URI_BODY}$`, 'i')
|
||||
const URI_IN_TEXT_RE = new RegExp(`academy://${URI_BODY}`, 'gi')
|
||||
const HREF_RE = /\bhref\s*=\s*(?:"([^"]*)"|'([^']*)')/i
|
||||
const SKIPPED_TAGS = new Set(['code', 'pre', 'a', 'button', 'svg', 'math'])
|
||||
|
||||
/** Parses a `weknora://kb|doc|chunk/<id>` durable URI emitted by the model-context codec. */
|
||||
export function parseWeKnoraEntityURI(value: string | null | undefined): WeKnoraEntityRef | null {
|
||||
/** Parses a `academy://kb|doc|chunk/<id>` durable URI emitted by the model-context codec. */
|
||||
export function parseAcademyEntityURI(value: string | null | undefined): AcademyEntityRef | null {
|
||||
const match = URI_EXACT_RE.exec((value || '').trim())
|
||||
if (!match) return null
|
||||
return { kind: match[1].toLowerCase() as WeKnoraEntityKind, id: match[2] }
|
||||
return { kind: match[1].toLowerCase() as AcademyEntityKind, id: match[2] }
|
||||
}
|
||||
|
||||
function escapeHtml(text: string): string {
|
||||
return text.replace(/&/g, '&').replace(/</g, '<').replace(/>/g, '>').replace(/"/g, '"')
|
||||
}
|
||||
|
||||
function entityOpenTag(ref: WeKnoraEntityRef, labels: WeKnoraEntityLinkLabels): string {
|
||||
return `<span class="${WEKNORA_ENTITY_LINK_CLASS}" role="link" tabindex="0" ` +
|
||||
function entityOpenTag(ref: AcademyEntityRef, labels: AcademyEntityLinkLabels): string {
|
||||
return `<span class="${ACADEMY_ENTITY_LINK_CLASS}" role="link" tabindex="0" ` +
|
||||
`title="${escapeHtml(labels[ref.kind])}" data-entity-kind="${ref.kind}" data-entity-id="${ref.id}">`
|
||||
}
|
||||
|
||||
/**
|
||||
* Turns `weknora://` URIs in rendered chat HTML into clickable entity chips.
|
||||
* Turns `academy://` URIs in rendered chat HTML into clickable entity chips.
|
||||
* Markdown links keep their text; bare URIs in prose show the real ID, since
|
||||
* the model writes them where an ID is meant. The kind label is the tooltip.
|
||||
* Text inside code, pre and ordinary links is left alone. Must run before
|
||||
* DOMPurify, whose URI allowlist would otherwise strip the `weknora:` scheme.
|
||||
* DOMPurify, whose URI allowlist would otherwise strip the `academy:` scheme.
|
||||
*/
|
||||
export function renderWeKnoraEntityLinks(html: string, labels: WeKnoraEntityLinkLabels): string {
|
||||
if (!html || !/weknora:\/\//i.test(html)) return html
|
||||
export function renderAcademyEntityLinks(html: string, labels: AcademyEntityLinkLabels): string {
|
||||
if (!html || !/academy:\/\//i.test(html)) return html
|
||||
const parts = html.split(/(<[^>]*>)/)
|
||||
const skipDepth = new Map<string, number>()
|
||||
let skipping = 0
|
||||
@@ -60,7 +60,7 @@ export function renderWeKnoraEntityLinks(html: string, labels: WeKnoraEntityLink
|
||||
}
|
||||
if (name === 'a' && !closing && skipping === 0) {
|
||||
const hrefMatch = HREF_RE.exec(part)
|
||||
const ref = parseWeKnoraEntityURI(hrefMatch?.[1] ?? hrefMatch?.[2])
|
||||
const ref = parseAcademyEntityURI(hrefMatch?.[1] ?? hrefMatch?.[2])
|
||||
if (ref) {
|
||||
parts[i] = entityOpenTag(ref, labels)
|
||||
entityAnchorOpen = true
|
||||
@@ -82,7 +82,7 @@ export function renderWeKnoraEntityLinks(html: string, labels: WeKnoraEntityLink
|
||||
}
|
||||
if (skipping > 0 || entityAnchorOpen) continue
|
||||
parts[i] = part.replace(URI_IN_TEXT_RE, (_m, kind: string, id: string) => {
|
||||
const ref = { kind: kind.toLowerCase() as WeKnoraEntityKind, id }
|
||||
const ref = { kind: kind.toLowerCase() as AcademyEntityKind, id }
|
||||
return `${entityOpenTag(ref, labels)}${id}</span>`
|
||||
})
|
||||
}
|
||||
@@ -50,8 +50,8 @@ test('getAgentToolIconName maps skill and sandbox file tools', () => {
|
||||
test('getAgentToolIconName maps operation and product-doc tools', () => {
|
||||
assert.equal(getAgentToolIconName('find_operations'), 'task')
|
||||
assert.equal(getAgentToolIconName('run_operation'), 'terminal')
|
||||
assert.equal(getAgentToolIconName('search_weknora_docs'), 'search')
|
||||
assert.equal(getAgentToolIconName('read_weknora_doc'), 'file')
|
||||
assert.equal(getAgentToolIconName('search_academy_docs'), 'search')
|
||||
assert.equal(getAgentToolIconName('read_academy_doc'), 'file')
|
||||
})
|
||||
|
||||
test('getAgentToolIconName maps Wiki tools to semantic search and reading icons', () => {
|
||||
|
||||
@@ -81,10 +81,10 @@ export function getAgentToolIconName(
|
||||
if (toolName === 'open_page' || toolName === 'view_page') {
|
||||
return 'jump'
|
||||
}
|
||||
if (toolName === 'search_weknora_docs') {
|
||||
if (toolName === 'search_academy_docs') {
|
||||
return 'search'
|
||||
}
|
||||
if (toolName === 'read_weknora_doc') {
|
||||
if (toolName === 'read_academy_doc') {
|
||||
return 'file'
|
||||
}
|
||||
return 'file-paste'
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
export function getApiBaseUrl(): string {
|
||||
// LocalHub plugin patch (2026-04-29): respect vite's BASE_URL so that
|
||||
// axios calls work at `/app/weknora/` (LocalHub reverse proxy). Without
|
||||
// axios calls work at `/app/academy/` (LocalHub reverse proxy). Without
|
||||
// this · axios hits `/api/v1/...` at LocalHub root · gets 404 "Cannot
|
||||
// POST". Strip trailing slash so axios doesn't produce `/app/weknora//api/v1/...`.
|
||||
// See: plugins/weknora/patches/api-base-baseurl.patch
|
||||
// POST". Strip trailing slash so axios doesn't produce `/app/academy//api/v1/...`.
|
||||
// See: plugins/academy/patches/api-base-baseurl.patch
|
||||
const base = (import.meta.env.BASE_URL || '/').replace(/\/+$/, '');
|
||||
return base;
|
||||
}
|
||||
@@ -1,6 +1,6 @@
|
||||
import { onMounted, onUnmounted } from 'vue'
|
||||
|
||||
export const ASSISTANT_DATA_CHANGE_EVENT = 'weknora:assistant-data-change'
|
||||
export const ASSISTANT_DATA_CHANGE_EVENT = 'academy:assistant-data-change'
|
||||
|
||||
export interface AssistantDataChange {
|
||||
operation: string
|
||||
|
||||
@@ -50,7 +50,7 @@ test('isStreamAuthError matches the class and name-only wrappers', () => {
|
||||
|
||||
test('concurrent 401s share a single refresh call', async () => {
|
||||
const { store } = installBrowser()
|
||||
store.weknora_refresh_token = 'rt-1'
|
||||
store.academy_refresh_token = 'rt-1'
|
||||
let calls = 0
|
||||
let release!: (value: { success: true; data: { token: string; refreshToken: string } }) => void
|
||||
const pending = new Promise<{ success: true; data: { token: string; refreshToken: string } }>(
|
||||
@@ -70,16 +70,16 @@ test('concurrent 401s share a single refresh call', async () => {
|
||||
|
||||
release({ success: true, data: { token: 'access-2', refreshToken: 'rt-2' } })
|
||||
assert.deepEqual(await Promise.all([first, second]), ['access-2', 'access-2'])
|
||||
assert.equal(store.weknora_token, 'access-2')
|
||||
assert.equal(store.weknora_refresh_token, 'rt-2')
|
||||
assert.equal(store.academy_token, 'access-2')
|
||||
assert.equal(store.academy_refresh_token, 'rt-2')
|
||||
assert.equal(calls, 1)
|
||||
})
|
||||
|
||||
test('missing refresh token clears credentials, redirects, and throws an Error', async () => {
|
||||
const { store, location } = installBrowser()
|
||||
store.weknora_token = 'expired'
|
||||
store.weknora_user = '{}'
|
||||
store.weknora_selected_tenant_id = '9'
|
||||
store.academy_token = 'expired'
|
||||
store.academy_user = '{}'
|
||||
store.academy_selected_tenant_id = '9'
|
||||
|
||||
await assert.rejects(
|
||||
() => refreshAccessTokenShared({
|
||||
@@ -90,16 +90,16 @@ test('missing refresh token clears credentials, redirects, and throws an Error',
|
||||
}),
|
||||
(err: unknown) => err instanceof Error && err.message === 'please-relogin',
|
||||
)
|
||||
assert.equal(store.weknora_token, undefined)
|
||||
assert.equal(store.weknora_selected_tenant_id, undefined)
|
||||
assert.equal(store.academy_token, undefined)
|
||||
assert.equal(store.academy_selected_tenant_id, undefined)
|
||||
assert.equal(location.href, '/login')
|
||||
})
|
||||
|
||||
test('a failed refresh clears the newly irrelevant session and redirects', async () => {
|
||||
const { store, location } = installBrowser()
|
||||
store.weknora_refresh_token = 'rt-dead'
|
||||
store.weknora_token = 'expired'
|
||||
store.weknora_selected_tenant_id = '9'
|
||||
store.academy_refresh_token = 'rt-dead'
|
||||
store.academy_token = 'expired'
|
||||
store.academy_selected_tenant_id = '9'
|
||||
|
||||
await assert.rejects(
|
||||
() => refreshAccessTokenShared({
|
||||
@@ -107,8 +107,8 @@ test('a failed refresh clears the newly irrelevant session and redirects', async
|
||||
}),
|
||||
/revoked/,
|
||||
)
|
||||
assert.equal(store.weknora_refresh_token, undefined)
|
||||
assert.equal(store.weknora_selected_tenant_id, undefined)
|
||||
assert.equal(store.academy_refresh_token, undefined)
|
||||
assert.equal(store.academy_selected_tenant_id, undefined)
|
||||
assert.equal(location.href, '/login')
|
||||
})
|
||||
|
||||
@@ -154,8 +154,8 @@ test('embed visitors are not refreshed or redirected', async () => {
|
||||
|
||||
test('a second handshake 401 after a successful refresh does not wipe tokens', async () => {
|
||||
const { store, location } = installBrowser()
|
||||
store.weknora_token = 'expired'
|
||||
store.weknora_refresh_token = 'rt-1'
|
||||
store.academy_token = 'expired'
|
||||
store.academy_refresh_token = 'rt-1'
|
||||
location.href = 'http://localhost/chat'
|
||||
|
||||
await assert.rejects(
|
||||
@@ -179,8 +179,8 @@ test('a second handshake 401 after a successful refresh does not wipe tokens', a
|
||||
}),
|
||||
(err: unknown) => err instanceof Error && err.message === 'please-relogin',
|
||||
)
|
||||
assert.equal(store.weknora_token, 'fresh')
|
||||
assert.equal(store.weknora_refresh_token, 'rt-2')
|
||||
assert.equal(store.academy_token, 'fresh')
|
||||
assert.equal(store.academy_refresh_token, 'rt-2')
|
||||
assert.equal(location.href, 'http://localhost/chat')
|
||||
})
|
||||
|
||||
@@ -203,9 +203,9 @@ test('a superseded send skips the replay', async () => {
|
||||
|
||||
test('forceReloginRedirect does not bounce embed visitors to /login', () => {
|
||||
const { store, location } = installBrowser('/embed/ch-1')
|
||||
store.weknora_token = 'jwt'
|
||||
store.academy_token = 'jwt'
|
||||
forceReloginRedirect()
|
||||
assert.equal(store.weknora_token, undefined)
|
||||
assert.equal(store.academy_token, undefined)
|
||||
assert.equal(location.href, 'http://localhost/embed/ch-1')
|
||||
})
|
||||
|
||||
|
||||
@@ -7,15 +7,15 @@
|
||||
*/
|
||||
|
||||
const AUTH_STORAGE_KEYS = [
|
||||
'weknora_token',
|
||||
'weknora_refresh_token',
|
||||
'weknora_user',
|
||||
'weknora_tenant',
|
||||
'weknora_knowledge_bases',
|
||||
'weknora_current_kb',
|
||||
'weknora_selected_tenant_id',
|
||||
'weknora_selected_tenant_name',
|
||||
'weknora_memberships',
|
||||
'academy_token',
|
||||
'academy_refresh_token',
|
||||
'academy_user',
|
||||
'academy_tenant',
|
||||
'academy_knowledge_bases',
|
||||
'academy_current_kb',
|
||||
'academy_selected_tenant_id',
|
||||
'academy_selected_tenant_name',
|
||||
'academy_memberships',
|
||||
] as const
|
||||
|
||||
let isRefreshing = false
|
||||
@@ -114,7 +114,7 @@ export async function refreshAccessTokenShared(
|
||||
}
|
||||
|
||||
isRefreshing = true
|
||||
const storedRefreshToken = localStorage.getItem('weknora_refresh_token')
|
||||
const storedRefreshToken = localStorage.getItem('academy_refresh_token')
|
||||
|
||||
if (!storedRefreshToken) {
|
||||
clearAuthStorage()
|
||||
@@ -133,9 +133,9 @@ export async function refreshAccessTokenShared(
|
||||
}
|
||||
|
||||
const { token, refreshToken: newRefreshToken } = response.data
|
||||
localStorage.setItem('weknora_token', token)
|
||||
localStorage.setItem('academy_token', token)
|
||||
if (newRefreshToken) {
|
||||
localStorage.setItem('weknora_refresh_token', newRefreshToken)
|
||||
localStorage.setItem('academy_refresh_token', newRefreshToken)
|
||||
}
|
||||
processQueue(null, token)
|
||||
return token
|
||||
|
||||
@@ -4,7 +4,7 @@ import test from 'node:test'
|
||||
import { pairingPageOrigin, preferredDesktopAPIBase } from './browserPairingOrigin.ts'
|
||||
|
||||
test('pairingPageOrigin keeps an http or https page', () => {
|
||||
assert.equal(pairingPageOrigin('https://weknora.example'), 'https://weknora.example')
|
||||
assert.equal(pairingPageOrigin('https://academy.example'), 'https://academy.example')
|
||||
assert.equal(pairingPageOrigin('http://127.0.0.1:8080'), 'http://127.0.0.1:8080')
|
||||
})
|
||||
|
||||
|
||||
@@ -63,8 +63,8 @@ test('every backend catalog operation has a label in every UI locale', () => {
|
||||
test('operation and product-doc tools have dedicated display types', () => {
|
||||
assert.equal(getCatalogToolDisplayType('find_operations'), 'find_operations')
|
||||
assert.equal(getCatalogToolDisplayType('run_operation'), 'run_operation')
|
||||
assert.equal(getCatalogToolDisplayType('search_weknora_docs'), 'search_weknora_docs')
|
||||
assert.equal(getCatalogToolDisplayType('read_weknora_doc'), 'read_weknora_doc')
|
||||
assert.equal(getCatalogToolDisplayType('search_academy_docs'), 'search_academy_docs')
|
||||
assert.equal(getCatalogToolDisplayType('read_academy_doc'), 'read_academy_doc')
|
||||
assert.equal(getCatalogToolDisplayType('web_search'), undefined)
|
||||
})
|
||||
|
||||
@@ -83,14 +83,14 @@ test('titles name the operation, query, or page instead of the raw tool id', ()
|
||||
'agentStream.tools.runOperation:knowledge.get',
|
||||
)
|
||||
assert.equal(
|
||||
getCatalogToolTitle(t, { tool_name: 'search_weknora_docs', arguments: { query: 'Wiki' }, pending: true }),
|
||||
'agentStream.toolStatus.calling agentStream.tools.searchWeKnoraDocs:「Wiki」',
|
||||
getCatalogToolTitle(t, { tool_name: 'search_academy_docs', arguments: { query: 'Wiki' }, pending: true }),
|
||||
'agentStream.toolStatus.calling agentStream.tools.searchAcademyDocs:「Wiki」',
|
||||
)
|
||||
assert.equal(
|
||||
getCatalogToolTitle(t, {
|
||||
tool_name: 'read_weknora_doc', success: false, arguments: { path: '03-features/14-wiki' },
|
||||
tool_name: 'read_academy_doc', success: false, arguments: { path: '03-features/14-wiki' },
|
||||
}),
|
||||
'agentStream.toolStatus.calledFailed agentStream.tools.readWeKnoraDoc:「03-features/14-wiki」',
|
||||
'agentStream.toolStatus.calledFailed agentStream.tools.readAcademyDoc:「03-features/14-wiki」',
|
||||
)
|
||||
assert.equal(getCatalogToolTitle(t, { tool_name: 'web_search' }), '')
|
||||
})
|
||||
|
||||
@@ -3,8 +3,8 @@ import type { ComposerTranslation } from 'vue-i18n'
|
||||
export type CatalogDisplayType =
|
||||
| 'find_operations'
|
||||
| 'run_operation'
|
||||
| 'search_weknora_docs'
|
||||
| 'read_weknora_doc'
|
||||
| 'search_academy_docs'
|
||||
| 'read_academy_doc'
|
||||
|
||||
const PAYLOAD_KEYS = [
|
||||
'operations', 'unavailable',
|
||||
@@ -115,7 +115,7 @@ function numberOrNull(value: unknown): number | null {
|
||||
|
||||
export function getCatalogToolDisplayType(toolName?: string): CatalogDisplayType | undefined {
|
||||
if (toolName === 'find_operations' || toolName === 'run_operation' ||
|
||||
toolName === 'search_weknora_docs' || toolName === 'read_weknora_doc') {
|
||||
toolName === 'search_academy_docs' || toolName === 'read_academy_doc') {
|
||||
return toolName
|
||||
}
|
||||
return undefined
|
||||
@@ -300,12 +300,12 @@ export function getCatalogToolTitle(t: ComposerTranslation, event: ToolEventLike
|
||||
const base = t('agentStream.tools.runOperation')
|
||||
const operation = stringField(args, 'operation') || stringField(data, 'operation')
|
||||
title = operation ? `${base}:${getOperationLabel(t, operation)}` : base
|
||||
} else if (type === 'search_weknora_docs') {
|
||||
const base = t('agentStream.tools.searchWeKnoraDocs')
|
||||
} else if (type === 'search_academy_docs') {
|
||||
const base = t('agentStream.tools.searchAcademyDocs')
|
||||
const detail = stringField(args, 'query') || stringField(args, 'category')
|
||||
title = detail ? `${base}:「${detail}」` : base
|
||||
} else {
|
||||
const base = t('agentStream.tools.readWeKnoraDoc')
|
||||
const base = t('agentStream.tools.readAcademyDoc')
|
||||
const detail = stringField(data, 'section') || stringField(data, 'title') || stringField(args, 'path')
|
||||
title = detail ? `${base}:「${detail}」` : base
|
||||
}
|
||||
|
||||
@@ -15,7 +15,7 @@ import {
|
||||
stripIncompleteCitationTag,
|
||||
type CitationKnowledgeRef,
|
||||
} from './citationMarkdown.ts'
|
||||
import { renderWeKnoraEntityLinks, type WeKnoraEntityLinkLabels } from './weknoraEntityLinks.ts'
|
||||
import { renderAcademyEntityLinks, type AcademyEntityLinkLabels } from './academyEntityLinks.ts'
|
||||
|
||||
const STREAMING_IMAGE_PLACEHOLDER =
|
||||
'<span class="streaming-image-loading"><span class="streaming-image-loading__skeleton"></span></span>'
|
||||
@@ -46,8 +46,8 @@ export type RenderChatMarkdownOptions = {
|
||||
cachedMermaidSvgHtml?: CachedMermaidSvgHtml
|
||||
injectCachedMermaidSvg?: (html: string, cachedSvgHtml?: CachedMermaidSvgHtml) => string
|
||||
prepareMarkdown?: (markdown: string, cachedSvgHtml?: CachedMermaidSvgHtml) => string
|
||||
/** Render `weknora://` URIs as clickable entity links with these labels. */
|
||||
entityLinkLabels?: WeKnoraEntityLinkLabels
|
||||
/** Render `academy://` URIs as clickable entity links with these labels. */
|
||||
entityLinkLabels?: AcademyEntityLinkLabels
|
||||
}
|
||||
|
||||
export function configureMarkedForChatMarkdown(): void {
|
||||
@@ -507,7 +507,7 @@ export function renderChatMarkdown(rawMarkdown: unknown, options: RenderChatMark
|
||||
? restoredHtml
|
||||
: collapseStandaloneCitationParagraphs(restoredHtml)
|
||||
const entityHtml = options.entityLinkLabels
|
||||
? renderWeKnoraEntityLinks(citationHtml, options.entityLinkLabels)
|
||||
? renderAcademyEntityLinks(citationHtml, options.entityLinkLabels)
|
||||
: citationHtml
|
||||
const tableWrappedHtml = wrapChatMarkdownTables(entityHtml)
|
||||
const strongTitleHtml = markStandaloneStrongParagraphs(tableWrappedHtml)
|
||||
|
||||
@@ -199,7 +199,7 @@ export function preprocessCitationTags(
|
||||
})
|
||||
}
|
||||
|
||||
const HTML_PLACEHOLDER_RE = /@@WEKNORA_HTML_PLACEHOLDER_(\d+)@@/g
|
||||
const HTML_PLACEHOLDER_RE = /@@ACADEMY_HTML_PLACEHOLDER_(\d+)@@/g
|
||||
|
||||
/** Protect citation HTML from markdown parser; restore after marked.parse. */
|
||||
export function extractCitationHtmlPlaceholders(
|
||||
@@ -210,7 +210,7 @@ export function extractCitationHtmlPlaceholders(
|
||||
const storeHtml = (html: string): string => {
|
||||
const idx = htmlSnippets.length
|
||||
htmlSnippets.push(html)
|
||||
return `@@WEKNORA_HTML_PLACEHOLDER_${idx}@@`
|
||||
return `@@ACADEMY_HTML_PLACEHOLDER_${idx}@@`
|
||||
}
|
||||
|
||||
const content = contentStr
|
||||
|
||||
@@ -81,7 +81,7 @@ async function navigate(
|
||||
return { ...snapshotPage(), return_path: returnPath }
|
||||
}
|
||||
|
||||
const HANDLED_KEY = 'weknora:assistant-page-actions'
|
||||
const HANDLED_KEY = 'academy:assistant-page-actions'
|
||||
// A replayed stream can repeat a prompt long after it ended; the server
|
||||
// rejects the late answer anyway, this only spares the page the work.
|
||||
const STALE_AFTER_SECONDS = 600
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/**
|
||||
* Types into the WeKnora page beside the assistant the way the user would:
|
||||
* Types into the Academy page beside the assistant the way the user would:
|
||||
* native setters plus input events for text, clicks for checkboxes, switches
|
||||
* and TDesign selects. Nothing is saved. A fill applies all its changes or
|
||||
* none, and can be undone from the chat while the fields keep its values.
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/**
|
||||
* Reads the WeKnora page beside the assistant the way a screen reader would:
|
||||
* Reads the Academy page beside the assistant the way a screen reader would:
|
||||
* an indented outline of headings, text, tables, buttons and form fields with
|
||||
* their current values. Fields the assistant may fill get a ref (e12) that
|
||||
* stays with the element while it lives. Credentials are never read.
|
||||
|
||||
@@ -50,10 +50,10 @@ const accessState: ProtectedFileAccessState = (() => {
|
||||
const fresh = (): ProtectedFileAccessState => ({ current: TENANT_ACCESS });
|
||||
if (typeof window === 'undefined') return fresh();
|
||||
const scope = window as typeof window & {
|
||||
__weknoraProtectedFileAccessV1__?: ProtectedFileAccessState;
|
||||
__academyProtectedFileAccessV1__?: ProtectedFileAccessState;
|
||||
};
|
||||
scope.__weknoraProtectedFileAccessV1__ ||= fresh();
|
||||
return scope.__weknoraProtectedFileAccessV1__;
|
||||
scope.__academyProtectedFileAccessV1__ ||= fresh();
|
||||
return scope.__academyProtectedFileAccessV1__;
|
||||
})();
|
||||
|
||||
/**
|
||||
@@ -109,18 +109,18 @@ export function isProtectedFileProxyPath(pathname: string): boolean {
|
||||
function tenantRequestHeaders(): Record<string, string> {
|
||||
const headers: Record<string, string> = {};
|
||||
try {
|
||||
const token = (localStorage.getItem('weknora_token') || '').trim();
|
||||
const token = (localStorage.getItem('academy_token') || '').trim();
|
||||
if (token) {
|
||||
headers['Authorization'] = `Bearer ${token}`;
|
||||
}
|
||||
|
||||
const selectedTenantId = (localStorage.getItem('weknora_selected_tenant_id') || '').trim();
|
||||
const selectedTenantId = (localStorage.getItem('academy_selected_tenant_id') || '').trim();
|
||||
if (selectedTenantId) {
|
||||
// Always attach when a selected tenant is set. Same rationale as
|
||||
// utils/request.ts / api/chat/streame.ts: the
|
||||
// "selectedTenantId === defaultTenantId → skip" short-circuit
|
||||
// silently drops the header whenever any code path writes the
|
||||
// active tenant into weknora_tenant, leaving authenticated file
|
||||
// active tenant into academy_tenant, leaving authenticated file
|
||||
// fetches landing on the home tenant.
|
||||
headers['X-Tenant-ID'] = selectedTenantId;
|
||||
}
|
||||
|
||||
@@ -4,7 +4,7 @@ export interface LoadedProtectedFile {
|
||||
fileName: string;
|
||||
}
|
||||
|
||||
export const RESOURCE_PREVIEW_EVENT = 'weknora:resource-preview';
|
||||
export const RESOURCE_PREVIEW_EVENT = 'academy:resource-preview';
|
||||
|
||||
export function responseFileName(disposition: string | null, source: string): string {
|
||||
const encoded = disposition?.match(/(?:^|;)\s*filename\*\s*=\s*UTF-8'[^']*'([^;]+)/i)?.[1]?.trim();
|
||||
|
||||
@@ -77,7 +77,7 @@ instance.interceptors.request.use(
|
||||
|
||||
// 嵌入渠道使用 Embed token;勿用本地 JWT 覆盖(否则调试页会 401)
|
||||
if (!isEmbedAuth) {
|
||||
const token = localStorage.getItem('weknora_token');
|
||||
const token = localStorage.getItem('academy_token');
|
||||
if (token) {
|
||||
config.headers["Authorization"] = `Bearer ${token}`;
|
||||
}
|
||||
@@ -89,14 +89,14 @@ instance.interceptors.request.use(
|
||||
// 添加跨空间访问请求头:只要 setSelectedTenant 写过激活空间,
|
||||
// 每个请求都要附 X-Tenant-ID。早期版本会 short-circuit
|
||||
// "selectedTenantId === defaultTenantId 时不附"以减少 header 体积,
|
||||
// 但这条优化会被任何把 weknora_tenant 写成激活空间的代码(OIDC
|
||||
// 但这条优化会被任何把 academy_tenant 写成激活空间的代码(OIDC
|
||||
// 回调、UserMenu loadUserInfo、router hydrate)触发,导致后续请求
|
||||
// 静默丢失 header,前端"切换了"但实际仍跑在 home 空间里——把"切
|
||||
// 换之后只有第一批请求带 X-Tenant-ID"调成永久状态。
|
||||
// 后端 IsTenantAccessible 已经允许 header 指向 home 空间(自家),
|
||||
// 所以无脑附不会引入新风险。
|
||||
if (!isEmbedAuth && !isEmbedPath) {
|
||||
const selectedTenantId = localStorage.getItem('weknora_selected_tenant_id');
|
||||
const selectedTenantId = localStorage.getItem('academy_selected_tenant_id');
|
||||
if (selectedTenantId) {
|
||||
config.headers["X-Tenant-ID"] = selectedTenantId;
|
||||
}
|
||||
|
||||
@@ -240,9 +240,9 @@ type ArtifactBlobState = { blobByKey: Map<string, string>; inflight: Map<string,
|
||||
const artifactBlobState: ArtifactBlobState = (() => {
|
||||
const fresh = (): ArtifactBlobState => ({ blobByKey: new Map(), inflight: new Map() });
|
||||
if (typeof window === 'undefined') return fresh();
|
||||
const scope = window as typeof window & { __weknoraArtifactBlobCacheV1__?: ArtifactBlobState };
|
||||
scope.__weknoraArtifactBlobCacheV1__ ||= fresh();
|
||||
return scope.__weknoraArtifactBlobCacheV1__;
|
||||
const scope = window as typeof window & { __academyArtifactBlobCacheV1__?: ArtifactBlobState };
|
||||
scope.__academyArtifactBlobCacheV1__ ||= fresh();
|
||||
return scope.__academyArtifactBlobCacheV1__;
|
||||
})();
|
||||
|
||||
function blobCacheKey(ctx: ArtifactRefContext, index: number): string {
|
||||
|
||||
@@ -28,7 +28,7 @@ test('round-trips a pid keyed by session', () => {
|
||||
writeStoredPtyId('sess-a', 4321)
|
||||
assert.equal(readStoredPtyId('sess-a'), 4321)
|
||||
assert.equal(readStoredPtyId('sess-b'), null)
|
||||
assert.equal(sandboxPtyStorageKey('sess-a'), 'weknora_sandbox_pty:sess-a')
|
||||
assert.equal(sandboxPtyStorageKey('sess-a'), 'academy_sandbox_pty:sess-a')
|
||||
})
|
||||
|
||||
test('forgets the pid when cleared or invalid', () => {
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
* tab's F5 does not.
|
||||
*/
|
||||
|
||||
const KEY_PREFIX = 'weknora_sandbox_pty:'
|
||||
const KEY_PREFIX = 'academy_sandbox_pty:'
|
||||
|
||||
export function sandboxPtyStorageKey(sessionId: string): string {
|
||||
return `${KEY_PREFIX}${sessionId.trim()}`
|
||||
|
||||
@@ -468,10 +468,10 @@ const protectedFileCacheState = (() => {
|
||||
});
|
||||
if (typeof window === 'undefined') return fresh();
|
||||
const scope = window as typeof window & {
|
||||
__weknoraProtectedFileCacheV4__?: ProtectedFileCacheState;
|
||||
__academyProtectedFileCacheV4__?: ProtectedFileCacheState;
|
||||
};
|
||||
scope.__weknoraProtectedFileCacheV4__ ||= fresh();
|
||||
return scope.__weknoraProtectedFileCacheV4__;
|
||||
scope.__academyProtectedFileCacheV4__ ||= fresh();
|
||||
return scope.__academyProtectedFileCacheV4__;
|
||||
})();
|
||||
|
||||
const protectedFileBlobCache = protectedFileCacheState.blobByRequest;
|
||||
@@ -575,9 +575,9 @@ function applyHydratedProtectedImage(root: ParentNode, sourceURL: string, file:
|
||||
|
||||
function ensureProtectedResourceCardClicks(): void {
|
||||
if (typeof window === 'undefined') return;
|
||||
const scope = window as typeof window & { __weknoraProtectedCardClicks__?: boolean };
|
||||
if (scope.__weknoraProtectedCardClicks__) return;
|
||||
scope.__weknoraProtectedCardClicks__ = true;
|
||||
const scope = window as typeof window & { __academyProtectedCardClicks__?: boolean };
|
||||
if (scope.__academyProtectedCardClicks__) return;
|
||||
scope.__academyProtectedCardClicks__ = true;
|
||||
window.addEventListener('click', (event) => {
|
||||
const target = event.target as Element | null;
|
||||
const link = target?.closest?.('a.protected-resource-card');
|
||||
|
||||
@@ -72,11 +72,11 @@ test('artifacts after a live inject use the persisted assistant ID regardless of
|
||||
const assistant = { id: 'assistant', request_id: 'request', role: 'assistant' }
|
||||
const list = [assistant]
|
||||
const continuation = forkAfterInjectedUser(list, assistant, { id: 'user', role: 'user' }, 'steer')
|
||||
continuation.artifacts = [{ file_name: 'WeKnora-示例文档.docx', index: 3 }]
|
||||
continuation.artifacts = [{ file_name: 'Academy-示例文档.docx', index: 3 }]
|
||||
const items = collectSessionArtifacts(list)
|
||||
assert.equal(items[0]?.messageId, 'assistant')
|
||||
assert.equal(items[0]?.index, 3)
|
||||
assert.equal(items[0]?.file_name, 'WeKnora-示例文档.docx')
|
||||
assert.equal(items[0]?.file_name, 'Academy-示例文档.docx')
|
||||
})
|
||||
|
||||
test('history-split artifacts keep their persisted download address after refresh', () => {
|
||||
|
||||
@@ -61,7 +61,7 @@ export function installTDesignIconOfflineGuard(): void {
|
||||
stub.setAttribute("src", src);
|
||||
// 非标准 MIME 类型会让浏览器跳过脚本的 fetch/执行阶段
|
||||
stub.setAttribute("type", "text/no-load");
|
||||
stub.setAttribute("data-weknora-blocked-cdn", "tdesign-icons");
|
||||
stub.setAttribute("data-academy-blocked-cdn", "tdesign-icons");
|
||||
body.appendChild(stub);
|
||||
});
|
||||
|
||||
@@ -75,7 +75,7 @@ export function installTDesignIconOfflineGuard(): void {
|
||||
stub.setAttribute("href", href);
|
||||
// 不声明 rel="stylesheet",浏览器不会发起样式表请求
|
||||
stub.setAttribute("rel", "preload-blocked");
|
||||
stub.setAttribute("data-weknora-blocked-cdn", "tdesign-icons");
|
||||
stub.setAttribute("data-academy-blocked-cdn", "tdesign-icons");
|
||||
document.head.appendChild(stub);
|
||||
});
|
||||
}
|
||||
@@ -28,7 +28,7 @@ export function navigateAfterTenantSwitch(): void {
|
||||
// 切换成功后的 toast 跨 hard reload 传递:调用方在 reload 前把信息塞进
|
||||
// sessionStorage,App.vue 启动时 consume 一次再弹出。直接在 reload 前调
|
||||
// NotifyPlugin 会被刷掉,根本来不及看清。
|
||||
const PENDING_TOAST_KEY = 'weknora_pending_tenant_switch_toast'
|
||||
const PENDING_TOAST_KEY = 'academy_pending_tenant_switch_toast'
|
||||
|
||||
export interface PendingTenantSwitchToast {
|
||||
name: string
|
||||
|
||||
@@ -1,62 +0,0 @@
|
||||
import assert from 'node:assert/strict'
|
||||
import test from 'node:test'
|
||||
|
||||
import { marked } from 'marked'
|
||||
|
||||
import { renderChatMarkdown } from './chatMarkdownRenderer.ts'
|
||||
import { parseWeKnoraEntityURI, renderWeKnoraEntityLinks } from './weknoraEntityLinks.ts'
|
||||
|
||||
const LABELS = { kb: '知识库', doc: '文档', chunk: '片段' }
|
||||
const KB_ID = 'kb-0001'
|
||||
const DOC_ID = '00000001-0000-4000-8000-000000000001'
|
||||
|
||||
test('parseWeKnoraEntityURI accepts only whole durable URIs', () => {
|
||||
assert.deepEqual(parseWeKnoraEntityURI(`weknora://kb/${KB_ID}`), { kind: 'kb', id: KB_ID })
|
||||
assert.deepEqual(parseWeKnoraEntityURI(`WeKnora://DOC/${DOC_ID}`), { kind: 'doc', id: DOC_ID })
|
||||
assert.equal(parseWeKnoraEntityURI('weknora://kb/'), null)
|
||||
assert.equal(parseWeKnoraEntityURI('weknora://user/1'), null)
|
||||
assert.equal(parseWeKnoraEntityURI(`see weknora://kb/${KB_ID}`), null)
|
||||
assert.equal(parseWeKnoraEntityURI('javascript:alert(1)'), null)
|
||||
})
|
||||
|
||||
test('markdown links to weknora URIs keep their text and become entity links', () => {
|
||||
const html = renderWeKnoraEntityLinks(
|
||||
`<p>存入 <a href="weknora://kb/${KB_ID}">每日热榜</a> 即可</p>`,
|
||||
LABELS,
|
||||
)
|
||||
assert.equal(
|
||||
html,
|
||||
'<p>存入 <span class="weknora-entity-link" role="link" tabindex="0" title="知识库" ' +
|
||||
`data-entity-kind="kb" data-entity-id="${KB_ID}">每日热榜</span> 即可</p>`,
|
||||
)
|
||||
})
|
||||
|
||||
test('bare weknora URIs in prose show the real ID with the kind as tooltip', () => {
|
||||
const html = renderWeKnoraEntityLinks(`<p>参考 weknora://doc/${DOC_ID}。</p>`, LABELS)
|
||||
assert.match(html, new RegExp(`title="文档" data-entity-kind="doc" data-entity-id="${DOC_ID}">${DOC_ID}</span>。`))
|
||||
assert.doesNotMatch(html, /weknora:\/\//)
|
||||
})
|
||||
|
||||
test('weknora URIs inside code, pre and ordinary links are left alone', () => {
|
||||
const input =
|
||||
`<p><code>weknora://kb/${KB_ID}</code></p>` +
|
||||
`<pre><code>weknora://kb/${KB_ID}</code></pre>` +
|
||||
`<p><a href="https://example.com">weknora://kb/${KB_ID}</a></p>`
|
||||
assert.equal(renderWeKnoraEntityLinks(input, LABELS), input)
|
||||
})
|
||||
|
||||
test('renderChatMarkdown renders weknora links only when labels are supplied', () => {
|
||||
const markdown = `把结果写入 [热榜知识库](weknora://kb/${KB_ID}),并参考 weknora://doc/${DOC_ID}`
|
||||
const options = {
|
||||
renderer: new marked.Renderer(),
|
||||
escapeMarkdown: (text: string) => text,
|
||||
sanitizeHtml: (html: string) => html,
|
||||
}
|
||||
const plain = renderChatMarkdown(markdown, options)
|
||||
assert.doesNotMatch(plain, /weknora-entity-link/)
|
||||
|
||||
const linked = renderChatMarkdown(markdown, { ...options, entityLinkLabels: LABELS })
|
||||
assert.match(linked, new RegExp(`data-entity-kind="kb" data-entity-id="${KB_ID}">热榜知识库</span>`))
|
||||
assert.match(linked, new RegExp(`data-entity-kind="doc" data-entity-id="${DOC_ID}">${DOC_ID}</span>`))
|
||||
assert.doesNotMatch(linked, /href="weknora:/)
|
||||
})
|
||||
@@ -668,7 +668,7 @@ const handleOIDCLogin = async () => {
|
||||
|
||||
// 跳转 IdP 会丢失 URL 中的 token,暂存到 sessionStorage,回调后由 App.vue 兑换。
|
||||
if (inviteToken.value) {
|
||||
sessionStorage.setItem('weknora_pending_invite_token', inviteToken.value)
|
||||
sessionStorage.setItem('academy_pending_invite_token', inviteToken.value)
|
||||
}
|
||||
window.location.href = authorizationURL
|
||||
} catch (error: any) {
|
||||
@@ -856,7 +856,7 @@ onMounted(async () => {
|
||||
return
|
||||
}
|
||||
|
||||
localStorage.removeItem('weknora_auto_setup_failed')
|
||||
localStorage.removeItem('academy_auto_setup_failed')
|
||||
try {
|
||||
const response = await autoSetup()
|
||||
if (response.success) {
|
||||
|
||||
@@ -826,7 +826,7 @@ import {
|
||||
wrapChatMarkdownTables,
|
||||
} from '@/utils/chatMarkdownRenderer';
|
||||
import { getChunkByIdOnly, getKnowledgeDetails } from '@/api/knowledge-base';
|
||||
import { WEKNORA_ENTITY_LINK_CLASS, type WeKnoraEntityKind } from '@/utils/weknoraEntityLinks';
|
||||
import { ACADEMY_ENTITY_LINK_CLASS, type AcademyEntityKind } from '@/utils/academyEntityLinks';
|
||||
import {
|
||||
appendMermaidSvgCache,
|
||||
createMermaidCodeRenderer,
|
||||
@@ -910,8 +910,8 @@ const TOOL_NAME_KEYS: Record<string, string> = {
|
||||
read_page: 'agentStream.tools.readPage',
|
||||
select_tab: 'agentStream.tools.selectTab',
|
||||
fill_page: 'agentStream.tools.fillPage',
|
||||
search_weknora_docs: 'agentStream.tools.searchWeKnoraDocs',
|
||||
read_weknora_doc: 'agentStream.tools.readWeKnoraDoc',
|
||||
search_academy_docs: 'agentStream.tools.searchAcademyDocs',
|
||||
read_academy_doc: 'agentStream.tools.readAcademyDoc',
|
||||
};
|
||||
|
||||
const getLocalizedToolName = (toolName?: string | null): string => {
|
||||
@@ -1081,7 +1081,7 @@ const openRouteInNewTab = (path: string) => {
|
||||
window.open(href, '_blank', 'noopener,noreferrer');
|
||||
};
|
||||
|
||||
const resolveEntityRoute = async (kind: WeKnoraEntityKind, id: string) => {
|
||||
const resolveEntityRoute = async (kind: AcademyEntityKind, id: string) => {
|
||||
if (kind === 'kb') return { path: `/platform/knowledge-bases/${encodeURIComponent(id)}` };
|
||||
const res: any = kind === 'doc' ? await getKnowledgeDetails(id) : await getChunkByIdOnly(id);
|
||||
const data = res?.data;
|
||||
@@ -1097,8 +1097,8 @@ const resolveEntityRoute = async (kind: WeKnoraEntityKind, id: string) => {
|
||||
// Documents and chunks need a lookup to find their knowledge base, so the tab
|
||||
// is opened synchronously (keeping the click's popup permission) and pointed
|
||||
// at the route once it resolves. Access is still checked by the target page.
|
||||
const openWeKnoraEntity = async (el: HTMLElement) => {
|
||||
const kind = el.getAttribute('data-entity-kind') as WeKnoraEntityKind | null;
|
||||
const openAcademyEntity = async (el: HTMLElement) => {
|
||||
const kind = el.getAttribute('data-entity-kind') as AcademyEntityKind | null;
|
||||
const id = el.getAttribute('data-entity-id') || '';
|
||||
if (!kind || !id || props.embedToken) return;
|
||||
const win = kind === 'kb' ? null : window.open('about:blank', '_blank');
|
||||
@@ -1114,7 +1114,7 @@ const openWeKnoraEntity = async (el: HTMLElement) => {
|
||||
}
|
||||
} catch (error) {
|
||||
win?.close();
|
||||
console.error('Failed to open WeKnora entity link:', error);
|
||||
console.error('Failed to open Academy entity link:', error);
|
||||
MessagePlugin.warning(t('agentStream.citation.loadFailed'));
|
||||
}
|
||||
};
|
||||
@@ -2653,11 +2653,11 @@ const onRootClick = (e: Event) => {
|
||||
return;
|
||||
}
|
||||
|
||||
const entityEl = target.closest?.(`.${WEKNORA_ENTITY_LINK_CLASS}`) as HTMLElement | null;
|
||||
const entityEl = target.closest?.(`.${ACADEMY_ENTITY_LINK_CLASS}`) as HTMLElement | null;
|
||||
if (entityEl) {
|
||||
e.preventDefault();
|
||||
e.stopPropagation();
|
||||
void openWeKnoraEntity(entityEl);
|
||||
void openAcademyEntity(entityEl);
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -2749,11 +2749,11 @@ const onRootKeydown = (e: KeyboardEvent) => {
|
||||
return;
|
||||
}
|
||||
|
||||
const entityEl = target.closest?.(`.${WEKNORA_ENTITY_LINK_CLASS}`) as HTMLElement | null;
|
||||
const entityEl = target.closest?.(`.${ACADEMY_ENTITY_LINK_CLASS}`) as HTMLElement | null;
|
||||
if (entityEl) {
|
||||
if (e.key === 'Enter' || e.key === ' ') {
|
||||
e.preventDefault();
|
||||
void openWeKnoraEntity(entityEl);
|
||||
void openAcademyEntity(entityEl);
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -12,7 +12,7 @@ import zh from '../../../i18n/locales/zh-CN'
|
||||
const REAL_COMPONENTS = [
|
||||
'ToolResultRenderer.vue',
|
||||
'OperationsResult.vue',
|
||||
'WeKnoraDocResult.vue',
|
||||
'AcademyDocResult.vue',
|
||||
'CatalogValue.vue',
|
||||
'DocMarkdown.vue',
|
||||
]
|
||||
@@ -110,7 +110,7 @@ test('operation results show localized names and retain IDs as tooltips', async
|
||||
|
||||
test('product docs render pages, sections, and markdown instead of raw JSON', async () => {
|
||||
const search = await render({
|
||||
displayType: 'search_weknora_docs',
|
||||
displayType: 'search_academy_docs',
|
||||
success: true,
|
||||
output: JSON.stringify({
|
||||
results: [{
|
||||
@@ -125,7 +125,7 @@ test('product docs render pages, sections, and markdown instead of raw JSON', as
|
||||
assert.doesNotMatch(search, /javascript:|fallback-output|<script>/)
|
||||
|
||||
const read = await render({
|
||||
displayType: 'read_weknora_doc',
|
||||
displayType: 'read_academy_doc',
|
||||
success: true,
|
||||
output: JSON.stringify({
|
||||
title: 'Wiki',
|
||||
|
||||
@@ -185,7 +185,7 @@ import { resolveFilePreviewExt } from '@/utils/filePreview'
|
||||
import DocumentPreview from '@/components/document-preview.vue'
|
||||
|
||||
const LIST_WIDTH = 440
|
||||
const PREVIEW_WIDTH_KEY = 'weknora-chat-artifact-preview-width'
|
||||
const PREVIEW_WIDTH_KEY = 'academy-chat-artifact-preview-width'
|
||||
const PREVIEW_DEFAULT_WIDTH = 760
|
||||
const PREVIEW_MIN_WIDTH = 520
|
||||
|
||||
|
||||
@@ -73,7 +73,7 @@ const onSystemThemeChange = (event: MediaQueryListEvent) => {
|
||||
prefersDark?.addEventListener('change', onSystemThemeChange);
|
||||
|
||||
// ANSI palette: ls --color uses the usual dircolors mapping (dir=blue,
|
||||
// exec=green, link=cyan). Only the green slots stay WeKnora brand so
|
||||
// exec=green, link=cyan). Only the green slots stay Academy brand so
|
||||
// user@host (01;32) matches the product color; path (01;34) stays blue
|
||||
// like directories.
|
||||
function xtermTheme(dark: boolean) {
|
||||
|
||||
Loaded 100 of 3136 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user