@sparkelf/dsh-dataops-managed 0.3.16 → 0.3.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/client.js +34 -34
- package/lib/client.js.map +1 -1
- package/lib/types/client/locales.d.ts +2 -2
- package/package.json +1 -1
package/lib/client.js
CHANGED
|
@@ -241,18 +241,18 @@ window.__ModuleLoader__.load({
|
|
|
241
241
|
document.head.appendChild(tag);
|
|
242
242
|
}
|
|
243
243
|
var ManagedDataOpsSection_module_css_default = {
|
|
244
|
+
"meta": "_2dqzjG_meta",
|
|
244
245
|
"card": "_2dqzjG_card",
|
|
245
|
-
"
|
|
246
|
-
"label": "_2dqzjG_label",
|
|
247
|
-
"title": "_2dqzjG_title",
|
|
248
|
-
"refusal": "_2dqzjG_refusal",
|
|
246
|
+
"fields": "_2dqzjG_fields",
|
|
249
247
|
"row": "_2dqzjG_row",
|
|
248
|
+
"actions": "_2dqzjG_actions",
|
|
250
249
|
"section": "_2dqzjG_section",
|
|
250
|
+
"status": "_2dqzjG_status",
|
|
251
|
+
"label": "_2dqzjG_label",
|
|
251
252
|
"heading": "_2dqzjG_heading",
|
|
252
|
-
"
|
|
253
|
-
"
|
|
254
|
-
"
|
|
255
|
-
"actions": "_2dqzjG_actions"
|
|
253
|
+
"refusal": "_2dqzjG_refusal",
|
|
254
|
+
"title": "_2dqzjG_title",
|
|
255
|
+
"copy": "_2dqzjG_copy"
|
|
256
256
|
};
|
|
257
257
|
//#endregion
|
|
258
258
|
//#region src/client/ManagedDataOpsSection.tsx
|
|
@@ -740,28 +740,28 @@ window.__ModuleLoader__.load({
|
|
|
740
740
|
document.head.appendChild(tag);
|
|
741
741
|
}
|
|
742
742
|
var SkillPlazaSection_module_css_default = {
|
|
743
|
-
"
|
|
744
|
-
"
|
|
745
|
-
"
|
|
746
|
-
"
|
|
743
|
+
"cardMain": "_9FdZvq_cardMain",
|
|
744
|
+
"section": "_9FdZvq_section",
|
|
745
|
+
"toolbar": "_9FdZvq_toolbar",
|
|
746
|
+
"cardMarks": "_9FdZvq_cardMarks",
|
|
747
747
|
"cardEnd": "_9FdZvq_cardEnd",
|
|
748
|
-
"cardHead": "_9FdZvq_cardHead",
|
|
749
|
-
"card": "_9FdZvq_card",
|
|
750
748
|
"emptyIcon": "_9FdZvq_emptyIcon",
|
|
749
|
+
"search": "_9FdZvq_search",
|
|
750
|
+
"cardHead": "_9FdZvq_cardHead",
|
|
751
|
+
"notice": "_9FdZvq_notice",
|
|
751
752
|
"intro": "_9FdZvq_intro",
|
|
752
|
-
"
|
|
753
|
-
"
|
|
754
|
-
"
|
|
753
|
+
"head": "_9FdZvq_head",
|
|
754
|
+
"card": "_9FdZvq_card",
|
|
755
|
+
"cards": "_9FdZvq_cards",
|
|
755
756
|
"titleIcon": "_9FdZvq_titleIcon",
|
|
757
|
+
"title": "_9FdZvq_title",
|
|
758
|
+
"cardTitle": "_9FdZvq_cardTitle",
|
|
759
|
+
"empty": "_9FdZvq_empty",
|
|
760
|
+
"cardDesc": "_9FdZvq_cardDesc",
|
|
756
761
|
"emptyText": "_9FdZvq_emptyText",
|
|
757
762
|
"mine": "_9FdZvq_mine",
|
|
758
763
|
"tagBar": "_9FdZvq_tagBar",
|
|
759
|
-
"
|
|
760
|
-
"cardMarks": "_9FdZvq_cardMarks",
|
|
761
|
-
"cards": "_9FdZvq_cards",
|
|
762
|
-
"cardTitle": "_9FdZvq_cardTitle",
|
|
763
|
-
"title": "_9FdZvq_title",
|
|
764
|
-
"section": "_9FdZvq_section"
|
|
764
|
+
"cardIcon": "_9FdZvq_cardIcon"
|
|
765
765
|
};
|
|
766
766
|
//#endregion
|
|
767
767
|
//#region src/client/SkillPlazaSection.tsx
|
|
@@ -1013,18 +1013,18 @@ window.__ModuleLoader__.load({
|
|
|
1013
1013
|
document.head.appendChild(tag);
|
|
1014
1014
|
}
|
|
1015
1015
|
var WanxiangBrand_module_css_default = {
|
|
1016
|
+
"unitTop": "s0HPxG_unitTop",
|
|
1017
|
+
"unit-core": "s0HPxG_unit-core",
|
|
1016
1018
|
"unitLeft": "s0HPxG_unitLeft",
|
|
1017
|
-
"
|
|
1019
|
+
"unitRight": "s0HPxG_unitRight",
|
|
1018
1020
|
"unitCore": "s0HPxG_unitCore",
|
|
1019
|
-
"unitTop": "s0HPxG_unitTop",
|
|
1020
1021
|
"unit-right": "s0HPxG_unit-right",
|
|
1021
|
-
"unitRight": "s0HPxG_unitRight",
|
|
1022
|
-
"unit-top": "s0HPxG_unit-top",
|
|
1023
|
-
"sidebarName": "s0HPxG_sidebarName",
|
|
1024
1022
|
"mark": "s0HPxG_mark",
|
|
1025
|
-
"
|
|
1023
|
+
"sidebarName": "s0HPxG_sidebarName",
|
|
1024
|
+
"animatedMark": "s0HPxG_animatedMark",
|
|
1025
|
+
"unit-top": "s0HPxG_unit-top",
|
|
1026
1026
|
"harness": "s0HPxG_harness",
|
|
1027
|
-
"unit-
|
|
1027
|
+
"unit-left": "s0HPxG_unit-left"
|
|
1028
1028
|
};
|
|
1029
1029
|
//#endregion
|
|
1030
1030
|
//#region src/client/WanxiangBrand.tsx
|
|
@@ -1311,8 +1311,8 @@ window.__ModuleLoader__.load({
|
|
|
1311
1311
|
limitsInvalid: "Enter a size in MiB.",
|
|
1312
1312
|
limitsSave: "Save",
|
|
1313
1313
|
limitsSaving: "Saving…",
|
|
1314
|
-
timeoutTitle: "
|
|
1315
|
-
timeoutLabel: "Longest single
|
|
1314
|
+
timeoutTitle: "DataOps query timeout",
|
|
1315
|
+
timeoutLabel: "Longest single query (seconds)",
|
|
1316
1316
|
timeoutInvalid: "Enter 1 to 3600 seconds.",
|
|
1317
1317
|
defaultsTitle: "Default configuration",
|
|
1318
1318
|
defaultsPublish: "Publish",
|
|
@@ -1351,8 +1351,8 @@ window.__ModuleLoader__.load({
|
|
|
1351
1351
|
limitsUploadLabel: "最大上传文件(MiB)",
|
|
1352
1352
|
limitsInvalid: "请输入以 MiB 为单位的大小。",
|
|
1353
1353
|
limitsSave: "保存",
|
|
1354
|
-
timeoutTitle: "
|
|
1355
|
-
timeoutLabel: "
|
|
1354
|
+
timeoutTitle: "DataOps 查询超时",
|
|
1355
|
+
timeoutLabel: "单次查询上限(秒)",
|
|
1356
1356
|
timeoutInvalid: "请输入 1 到 3600 秒。",
|
|
1357
1357
|
limitsSaving: "保存中…",
|
|
1358
1358
|
defaultsTitle: "默认配置",
|
package/lib/client.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client.js","names":["asStatus","refusalReason","useSyncExternalStore","styles","StateDot","Switch","useState","useId","useCallback","SettingsValueField","Button","styles","IconSkillOutlineRegular","Tag","Button","IconDownloadOutlineRegular","IconTrashOutlineRegular","useState","useCallback","IconSparkleRegular","IconRefreshOutlineRegular","Pill","IconShareOutlineRegular","css"],"sources":["../src/client/brand-store.ts","../src/client/model-sync-client.ts","../src/client/workspace-limits-client.ts","../src/client/tool-timeout-client.ts","../src/client/ManagedDataOpsSection.tsx","../src/client/skill-plaza-client.ts","../src/client/SkillPlazaSection.tsx","../src/client/WanxiangBrand.tsx","../src/client/install-branding.tsx","../src/client/locales.ts","../src/client/index.ts"],"sourcesContent":["/** Persisted client preference for the managed DataOps shell identity. */\nexport interface WanxiangBrandPreference {\n enabled: boolean\n}\n\n/** Stable local preference key shared by Settings and brand-slot registration. */\nexport const WANXIANG_BRAND_PREFERENCE_KEY = 'dsh.dataops.wanxiangBrand'\n\nfunction initialPreference(): WanxiangBrandPreference {\n if (typeof localStorage === 'undefined') return { enabled: true }\n try {\n const value = JSON.parse(localStorage.getItem(WANXIANG_BRAND_PREFERENCE_KEY) ?? 'null') as unknown\n return typeof value === 'object' && value !== null && 'enabled' in value\n && typeof (value as { enabled?: unknown }).enabled === 'boolean'\n ? { enabled: (value as { enabled: boolean }).enabled }\n : { enabled: true }\n } catch {\n return { enabled: true }\n }\n}\n\nlet preference = initialPreference()\nconst listeners = new Set<() => void>()\n\n/** Observable preference compatible with React's useSyncExternalStore. */\nexport const wanxiangBrandPreference = {\n getSnapshot: (): WanxiangBrandPreference => preference,\n subscribe: (listener: () => void): (() => void) => {\n listeners.add(listener)\n return () => { listeners.delete(listener) }\n },\n}\n\n/** Toggle the Wanxiang shell identity from the DataOps Settings section. */\nexport function setWanxiangBrandEnabled(enabled: boolean): void {\n if (preference.enabled === enabled) return\n preference = { enabled }\n if (typeof localStorage !== 'undefined') {\n try {\n localStorage.setItem(WANXIANG_BRAND_PREFERENCE_KEY, JSON.stringify(preference))\n } catch {\n // Storage failure must not block an in-memory preference change.\n }\n }\n for (const listener of listeners) listener()\n}\n","/** Same-origin model-sync calls from the DataOps settings surface. */\n\n/** Route the plugin's Host half serves for model sharing. */\nexport const MODEL_SYNC_PATH = '/integrations/dataops/model-sync'\n\n/** One model this workspace holds, and whether it is offered to other users. */\nexport interface ModelSyncModel {\n /** Model id as the settings document stores it. */\n id: string\n /** Whether other users may use it. */\n shared: boolean\n}\n\n/** Model sharing as this workspace currently stands. */\nexport interface ModelSyncStatus {\n /** Whether this workspace follows a publisher. */\n followState: 'following' | 'detached'\n /** Whether an administrator currently shares models. */\n publisherSharing: boolean\n /** How many models this workspace adopts from the publisher. */\n adoptedCount: number\n /** Model ids kept private. */\n privateModelIds: string[]\n /** Publication time, when one is sharing. */\n publishedAt: string | null\n /** Whether the current user may change what this workspace shares. */\n canPublish: boolean\n /** Models this workspace holds. */\n models: ModelSyncModel[]\n /**\n * Settings namespaces this deployment distributes.\n *\n * Present with the models in one response, so the two rows describe the same publication.\n */\n sections: DistributedSection[]\n}\n\n/** One settings namespace the deployment distributes. */\nexport interface DistributedSection {\n /** DSH settings namespace, such as `permission`. */\n ns: string\n /** Whether this workspace still takes the publisher's values for it. */\n followState: 'following' | 'detached'\n /** Whether adoption has applied values for it. */\n applied: boolean\n /** Whether a plugin here owns the namespace, so stopping would affect this workspace. */\n mounted: boolean\n}\n\n/** Narrow a response body to the status shape, rejecting anything else. */\nfunction asStatus(value: unknown): ModelSyncStatus | null {\n if (typeof value !== 'object' || value === null || Array.isArray(value)) return null\n const record = value as Record<string, unknown>\n if (record.followState !== 'following' && record.followState !== 'detached') return null\n return {\n followState: record.followState,\n publisherSharing: record.publisherSharing === true,\n adoptedCount: typeof record.adoptedCount === 'number' ? record.adoptedCount : 0,\n privateModelIds: Array.isArray(record.privateModelIds)\n ? record.privateModelIds.filter((id): id is string => typeof id === 'string')\n : [],\n publishedAt: typeof record.publishedAt === 'string' ? record.publishedAt : null,\n canPublish: record.canPublish === true,\n models: Array.isArray(record.models)\n ? record.models.flatMap((entry) => {\n if (typeof entry !== 'object' || entry === null) return []\n const model = entry as Record<string, unknown>\n return typeof model.id === 'string' ? [{ id: model.id, shared: model.shared === true }] : []\n })\n : [],\n sections: Array.isArray(record.sections)\n ? record.sections.flatMap((entry): DistributedSection[] => {\n if (typeof entry !== 'object' || entry === null || Array.isArray(entry)) return []\n const section = entry as Record<string, unknown>\n if (typeof section.ns !== 'string' || section.ns === '') return []\n return [{\n ns: section.ns,\n followState: section.followState === 'detached' ? 'detached' : 'following',\n applied: section.applied === true,\n mounted: section.mounted === true,\n }]\n })\n : [],\n }\n}\n\n/**\n * Read the current model sharing state.\n * @returns The status, or null when this workspace is not connected to DataOps.\n */\nexport async function fetchModelSyncStatus(): Promise<ModelSyncStatus | null> {\n const response = await fetch(MODEL_SYNC_PATH, { headers: { accept: 'application/json' } })\n if (response.status === 503) return null\n if (!response.ok) throw new Error('model sync status failed with HTTP ' + String(response.status))\n return asStatus(await response.json())\n}\n\n/**\n * Change what this workspace shares.\n * @param body - Action and its parameters.\n * @returns The status after the change, or null when the plugin is not active.\n */\nexport async function postModelSyncAction(body: Record<string, unknown>): Promise<ModelSyncStatus | null> {\n const response = await fetch(MODEL_SYNC_PATH, {\n method: 'POST',\n headers: { 'content-type': 'application/json', accept: 'application/json' },\n body: JSON.stringify(body),\n })\n if (response.status === 503) return null\n if (!response.ok) throw new Error('model sync action failed with HTTP ' + String(response.status))\n return asStatus(await response.json())\n}\n","/** Same-origin workspace-limits calls from the DataOps settings surface. */\n\n/** Route the plugin's Host half serves for workspace limits. */\nexport const WORKSPACE_LIMITS_PATH = '/integrations/dataops/workspace-limits'\n\n/** The two byte ceilings, as the panel edits them. */\nexport interface WorkspaceLimits {\n /** Largest file a sidebar download or agent read may carry. */\n fileReadMaxBytes: number\n /** Largest file an upload may carry. */\n uploadMaxBytes: number\n}\n\n/** Limits as this workspace currently holds them. */\nexport interface WorkspaceLimitsStatus {\n limits: WorkspaceLimits\n canWrite: boolean\n readOnlyReason: string | null\n}\n\n/** Narrow a response body to the status, rejecting anything else. */\nfunction asStatus(value: unknown): WorkspaceLimitsStatus | null {\n if (typeof value !== 'object' || value === null || Array.isArray(value)) return null\n const record = value as Record<string, unknown>\n const limits = record.limits as Record<string, unknown> | undefined\n if (typeof limits !== 'object' || limits === null) return null\n const fileReadMaxBytes = limits.fileReadMaxBytes\n const uploadMaxBytes = limits.uploadMaxBytes\n if (typeof fileReadMaxBytes !== 'number' || typeof uploadMaxBytes !== 'number') return null\n return {\n limits: { fileReadMaxBytes, uploadMaxBytes },\n canWrite: record.canWrite === true,\n readOnlyReason: typeof record.readOnlyReason === 'string' ? record.readOnlyReason : null,\n }\n}\n\nfunction readJson(value: unknown): Record<string, unknown> | null {\n return typeof value === 'object' && value !== null && !Array.isArray(value)\n ? value as Record<string, unknown>\n : null\n}\n\n/**\n * A write DataOps refused, carrying the reason it gave.\n *\n * The message is written for the person who set the value, so the panel shows it as-is rather\n * than replacing it with a generic failure notice.\n */\nexport class WorkspaceLimitsRejection extends Error {\n constructor(message: string) {\n super(message)\n this.name = 'WorkspaceLimitsRejection'\n }\n}\n\n/** Read the reason from a refused response, falling back to the status line. */\nasync function refusalReason(response: Response, fallback: string): Promise<string> {\n try {\n const body = readJson(await response.json())\n const error = body?.error\n if (typeof error === 'string' && error.trim() !== '') return error\n } catch {\n // A body that is absent or not JSON leaves the fallback as the only explanation available.\n }\n return `${fallback} with HTTP ${String(response.status)}`\n}\n\n/**\n * Read the workspace limits the panel shows.\n * @returns The status, or null when the workspace is not connected to DataOps.\n */\nexport async function fetchWorkspaceLimits(): Promise<WorkspaceLimitsStatus | null> {\n const response = await fetch(WORKSPACE_LIMITS_PATH, { credentials: 'same-origin' })\n if (response.status === 503) return null\n if (!response.ok) throw new Error(`Workspace limits read failed with HTTP ${String(response.status)}`)\n return asStatus(await response.json())\n}\n\n/**\n * Store new workspace limits.\n * @param limits - The ceilings to store.\n * @returns The stored status.\n */\nexport async function saveWorkspaceLimits(limits: WorkspaceLimits): Promise<WorkspaceLimitsStatus | null> {\n const response = await fetch(WORKSPACE_LIMITS_PATH, {\n method: 'POST',\n credentials: 'same-origin',\n headers: { 'content-type': 'application/json' },\n body: JSON.stringify(limits),\n })\n if (response.status === 503) return null\n // A refusal names a value the user chose, so the card keeps that draft and shows the reason.\n if (response.status === 400) {\n throw new WorkspaceLimitsRejection(await refusalReason(response, 'Workspace limits write refused'))\n }\n if (!response.ok) throw new Error(await refusalReason(response, 'Workspace limits write failed'))\n const body = readJson(await response.json())\n return body === null ? null : asStatus(body)\n}","/** Same-origin tool-call timeout calls from the DataOps settings surface. */\n\n/** Route the plugin's Host half serves for the tool-call timeout. */\nexport const TOOL_TIMEOUT_PATH = '/integrations/dataops/tool-timeout'\n\n/** The two ends a timeout may take, in seconds, matching what the Host enforces. */\nexport const TOOL_TIMEOUT_MIN_SECONDS = 1\nexport const TOOL_TIMEOUT_MAX_SECONDS = 3600\n\n/** The timeout as this workspace currently holds it. */\nexport interface ToolTimeout {\n /** How long one tool call may run before it is abandoned. */\n toolCallTimeoutMs: number\n}\n\n/** Narrow a response body to the timeout, rejecting anything else. */\nfunction asTimeout(value: unknown): ToolTimeout | null {\n if (typeof value !== 'object' || value === null || Array.isArray(value)) return null\n const ms = (value as Record<string, unknown>).toolCallTimeoutMs\n return typeof ms === 'number' && Number.isSafeInteger(ms) && ms > 0 ? { toolCallTimeoutMs: ms } : null\n}\n\n/** Read the reason from a refused response, falling back to the status line. */\nasync function refusalReason(response: Response, fallback: string): Promise<string> {\n try {\n const body = await response.json() as unknown\n if (typeof body === 'object' && body !== null && !Array.isArray(body)) {\n const error = (body as Record<string, unknown>).error\n if (typeof error === 'string' && error.trim() !== '') return error\n }\n } catch {\n // A body that is absent or not JSON leaves the fallback as the only explanation available.\n }\n return fallback + ' with HTTP ' + String(response.status)\n}\n\n/**\n * Read the tool-call timeout the panel shows.\n * @returns The timeout, or null when the workspace is not connected.\n */\nexport async function fetchToolTimeout(): Promise<ToolTimeout | null> {\n const response = await fetch(TOOL_TIMEOUT_PATH, { credentials: 'same-origin' })\n if (response.status === 503) return null\n if (!response.ok) throw new Error('Tool timeout read failed with HTTP ' + String(response.status))\n return asTimeout(await response.json())\n}\n\n/**\n * Store a new tool-call timeout.\n * @param milliseconds - How long one tool call may run.\n * @returns The stored timeout, or null when the workspace is not connected.\n */\nexport async function saveToolTimeout(milliseconds: number): Promise<ToolTimeout | null> {\n const response = await fetch(TOOL_TIMEOUT_PATH, {\n method: 'POST',\n credentials: 'same-origin',\n headers: { 'content-type': 'application/json' },\n body: JSON.stringify({ toolCallTimeoutMs: milliseconds }),\n })\n if (response.status === 503) return null\n // A refusal names a value the user chose, so the card keeps that draft and shows the reason.\n if (response.status === 400) throw new Error(await refusalReason(response, 'Tool timeout write refused'))\n if (!response.ok) throw new Error(await refusalReason(response, 'Tool timeout write failed'))\n return asTimeout(await response.json())\n}\n","import { useCallback, useEffect, useId, useState, useSyncExternalStore } from 'react'\nimport { Button, SettingsValueField, StateDot, Switch } from '@deepseek-ai/dsh-client-ui-primitives'\nimport type { InjectFace } from '@deepseek-ai/dsh-client-ui-slots'\nimport type { en } from './locales.ts'\nimport { setWanxiangBrandEnabled, wanxiangBrandPreference } from './brand-store.ts'\nimport { fetchModelSyncStatus, postModelSyncAction } from './model-sync-client.ts'\nimport type { ModelSyncStatus } from './model-sync-client.ts'\nimport {\n WorkspaceLimitsRejection,\n fetchWorkspaceLimits,\n saveWorkspaceLimits,\n} from './workspace-limits-client.ts'\nimport type { WorkspaceLimits, WorkspaceLimitsStatus } from './workspace-limits-client.ts'\nimport {\n TOOL_TIMEOUT_MAX_SECONDS,\n TOOL_TIMEOUT_MIN_SECONDS,\n fetchToolTimeout,\n saveToolTimeout,\n} from './tool-timeout-client.ts'\nimport styles from './ManagedDataOpsSection.module.css'\n\n/** Values injected by the DSH Settings slot. */\nexport interface ManagedDataOpsSectionInjected {\n /** Translate one managed DataOps Settings message key. */\n t: (key: keyof typeof en) => string\n}\n\n/** Props accepted by the managed DataOps Settings section. */\nexport type ManagedDataOpsSectionProps = Partial<InjectFace<ManagedDataOpsSectionInjected>>\n\n/** The panel's unit, so a stored byte count survives a round trip through the input. */\nconst BYTES_PER_MIB = 1024 * 1024\n\n/** Render a byte ceiling as the whole MiB the input shows. */\nfunction toMib(bytes: number): string {\n return String(Math.round((bytes / BYTES_PER_MIB) * 100) / 100)\n}\n\n/** Parse a MiB draft into a byte ceiling, or null when it is not a positive count. */\nfunction toBytes(text: string): number | null {\n if (text.trim() === '') return null\n const mib = Number(text)\n if (!Number.isFinite(mib) || mib <= 0) return null\n const bytes = Math.round(mib * BYTES_PER_MIB)\n return Number.isSafeInteger(bytes) && bytes > 0 ? bytes : null\n}\n\n/** Format a stored publication time for the row, or nothing when it never published. */\nfunction publishedText(publishedAt: string): string | null {\n const at = new Date(publishedAt)\n return Number.isNaN(at.getTime()) ? null : at.toLocaleString()\n}\n\n/**\n * The DataOps settings this workspace owns: its connection state, its branding, its file ceilings,\n * and the default configuration it publishes to other workspaces.\n * @param props - Settings slot injection values.\n * @returns The localized managed DataOps section, or nothing before injection.\n */\nexport function ManagedDataOpsSection(props: ManagedDataOpsSectionProps) {\n const { t } = props\n const branding = useSyncExternalStore(\n wanxiangBrandPreference.subscribe,\n wanxiangBrandPreference.getSnapshot,\n wanxiangBrandPreference.getSnapshot,\n )\n if (t === undefined) return null\n\n return (\n <section className={styles.section}>\n <h2 className={styles.title}>{t('title')}</h2>\n <div className={styles.status}>\n <StateDot state=\"done\" />\n <span>{t('managed')}</span>\n </div>\n <BrandingRow t={t} enabled={branding.enabled} />\n <LimitsCard t={t} />\n <TimeoutCard t={t} />\n <DefaultsCard t={t} />\n </section>\n )\n}\n\n/** The branding toggle as one settings row. */\nfunction BrandingRow({ t, enabled }: { t: (key: keyof typeof en) => string; enabled: boolean }) {\n return (\n <div className={styles.card}>\n <div className={styles.row}>\n <span className={styles.label}>{t('brandingTitle')}</span>\n <Switch\n checked={enabled}\n label={t('brandingToggle')}\n onChange={(next) => { setWanxiangBrandEnabled(next) }}\n />\n </div>\n </div>\n )\n}\n\n/** What either card knows about its remote document. */\ntype LoadState<T> =\n | { kind: 'loading' }\n | { kind: 'unavailable' }\n | { kind: 'ready'; status: T }\n | { kind: 'failed' }\n\n/** The one row a card renders while it cannot offer its controls. */\nfunction UnavailableCard({ title, t, state }: {\n title: string\n t: (key: keyof typeof en) => string\n state: 'unavailable' | 'failed'\n}) {\n return (\n <section className={styles.card}>\n <h3 className={styles.heading}>{title}</h3>\n <div className={styles.status} role={state === 'failed' ? 'alert' : undefined}>\n <StateDot state={state === 'failed' ? 'error' : 'idle'} />\n <span>{state === 'failed' ? t('loadFailed') : t('unavailable')}</span>\n </div>\n </section>\n )\n}\n\n/**\n * The file ceilings DataOps enforces on this workspace.\n *\n * The values live in DataOps and are read through the plugin, which holds the JWT; the panel only\n * ever holds what the administrator is allowed to see.\n * @param props - Translate function from the section.\n * @returns The limits card.\n */\nfunction LimitsCard({ t }: { t: (key: keyof typeof en) => string }) {\n const [state, setState] = useState<LoadState<WorkspaceLimitsStatus>>({ kind: 'loading' })\n const [fileReadMib, setFileReadMib] = useState('')\n const [uploadMib, setUploadMib] = useState('')\n /** The ceilings the draft started from, so Save stays off until one of them changes. */\n const [saved, setSaved] = useState('')\n /** Why DataOps refused the last save, kept beside the draft it refused. */\n const [refusal, setRefusal] = useState<string | null>(null)\n const [busy, setBusy] = useState(false)\n const fileReadId = useId()\n const uploadId = useId()\n\n const apply = useCallback((status: WorkspaceLimitsStatus) => {\n setState({ kind: 'ready', status })\n const file = toMib(status.limits.fileReadMaxBytes)\n const upload = toMib(status.limits.uploadMaxBytes)\n setFileReadMib(file)\n setUploadMib(upload)\n setSaved(file + '|' + upload)\n setRefusal(null)\n }, [])\n\n const refresh = useCallback(async () => {\n try {\n const status = await fetchWorkspaceLimits()\n if (status === null) setState({ kind: 'unavailable' })\n else apply(status)\n } catch {\n setState({ kind: 'failed' })\n }\n }, [apply])\n\n useEffect(() => { void refresh() }, [refresh])\n\n const fileReadBytes = toBytes(fileReadMib)\n const uploadBytes = toBytes(uploadMib)\n const writable = state.kind === 'ready' && state.status.canWrite\n const dirty = fileReadMib + '|' + uploadMib !== saved\n const ready = fileReadBytes !== null && uploadBytes !== null && dirty\n\n /** Edit one ceiling, dropping a refusal that no longer describes what is in the field. */\n const edit = useCallback((set: (text: string) => void) => (text: string) => {\n set(text)\n setRefusal(null)\n }, [])\n\n const submit = useCallback(async () => {\n if (fileReadBytes === null || uploadBytes === null) return\n setBusy(true)\n setRefusal(null)\n try {\n const limits: WorkspaceLimits = { fileReadMaxBytes: fileReadBytes, uploadMaxBytes: uploadBytes }\n const status = await saveWorkspaceLimits(limits)\n if (status === null) setState({ kind: 'unavailable' })\n else apply(status)\n } catch (error) {\n // A refused value keeps the fields and the draft, so the user can correct it in place.\n // Anything else left the card unable to describe its own state, so it reports the read.\n if (error instanceof WorkspaceLimitsRejection) setRefusal(error.message)\n else setState({ kind: 'failed' })\n } finally {\n setBusy(false)\n }\n }, [fileReadBytes, uploadBytes, apply])\n\n if (state.kind === 'loading') return null\n if (state.kind !== 'ready') {\n return <UnavailableCard title={t('limitsTitle')} t={t} state={state.kind} />\n }\n\n const disabled = busy || !writable\n return (\n <section className={styles.card}>\n <h3 className={styles.heading}>{t('limitsTitle')}</h3>\n <div className={styles.fields}>\n <div>\n <SettingsValueField\n id={fileReadId}\n label={t('limitsFileReadLabel')}\n text={fileReadMib}\n numeric\n invalid={fileReadBytes === null}\n overridden={false}\n overriddenLabel=\"\"\n resetLabel=\"\"\n invalidLabel={t('limitsInvalid')}\n disabled={disabled}\n onEdit={edit(setFileReadMib)}\n onReset={() => undefined}\n />\n </div>\n <div>\n <SettingsValueField\n id={uploadId}\n label={t('limitsUploadLabel')}\n text={uploadMib}\n numeric\n invalid={uploadBytes === null}\n overridden={false}\n overriddenLabel=\"\"\n resetLabel=\"\"\n invalidLabel={t('limitsInvalid')}\n disabled={disabled}\n onEdit={edit(setUploadMib)}\n onReset={() => undefined}\n />\n </div>\n </div>\n <div className={styles.actions}>\n {refusal === null\n ? null\n : (\n <span className={styles.refusal} role=\"alert\">\n <StateDot state=\"error\" />\n <span>{refusal}</span>\n </span>\n )}\n <Button variant=\"primary\" size=\"sm\" disabled={disabled || !ready} onClick={() => { void submit() }}>\n {busy ? t('limitsSaving') : t('limitsSave')}\n </Button>\n </div>\n </section>\n )\n}\n\n/**\n * How long one tool call may run before it is abandoned.\n *\n * The value lives in this plugin's own configuration, so it is per workspace and survives a\n * restart. It is edited in seconds because that is the unit an operator reasons in; the plugin\n * stores milliseconds and converts on the way through.\n * @param props - Translate function from the section.\n * @returns The tool-call timeout card.\n */\nfunction TimeoutCard({ t }: { t: (key: keyof typeof en) => string }) {\n const [state, setState] = useState<LoadState<number>>({ kind: 'loading' })\n const [seconds, setSeconds] = useState('')\n /** The value the draft started from, so Save stays off until it changes. */\n const [saved, setSaved] = useState('')\n const [refusal, setRefusal] = useState<string | null>(null)\n const [busy, setBusy] = useState(false)\n const id = useId()\n\n const apply = useCallback((milliseconds: number) => {\n setState({ kind: 'ready', status: milliseconds })\n const text = String(Math.round(milliseconds / 1000))\n setSeconds(text)\n setSaved(text)\n setRefusal(null)\n }, [])\n\n const refresh = useCallback(async () => {\n try {\n const status = await fetchToolTimeout()\n if (status === null) setState({ kind: 'unavailable' })\n else apply(status.toolCallTimeoutMs)\n } catch {\n setState({ kind: 'failed' })\n }\n }, [apply])\n\n useEffect(() => { void refresh() }, [refresh])\n\n const parsed = Number(seconds)\n const valid = seconds.trim() !== '' && Number.isFinite(parsed)\n && parsed >= TOOL_TIMEOUT_MIN_SECONDS && parsed <= TOOL_TIMEOUT_MAX_SECONDS\n const dirty = seconds !== saved\n const disabled = busy\n\n const submit = useCallback(async () => {\n if (!valid) return\n setBusy(true)\n setRefusal(null)\n try {\n const status = await saveToolTimeout(Math.round(parsed * 1000))\n if (status === null) setState({ kind: 'unavailable' })\n else apply(status.toolCallTimeoutMs)\n } catch (error) {\n // A refused value keeps the field and the draft, so the user can correct it in place.\n if (error instanceof Error) setRefusal(error.message)\n else setState({ kind: 'failed' })\n } finally {\n setBusy(false)\n }\n }, [valid, parsed, apply])\n\n if (state.kind === 'loading') return null\n if (state.kind !== 'ready') {\n return <UnavailableCard title={t('timeoutTitle')} t={t} state={state.kind} />\n }\n\n return (\n <section className={styles.card}>\n <h3 className={styles.heading}>{t('timeoutTitle')}</h3>\n <div className={styles.fields}>\n <div>\n <SettingsValueField\n id={id}\n label={t('timeoutLabel')}\n text={seconds}\n numeric\n invalid={!valid}\n overridden={false}\n overriddenLabel=\"\"\n resetLabel=\"\"\n invalidLabel={t('timeoutInvalid')}\n disabled={disabled}\n onEdit={(text) => { setSeconds(text); setRefusal(null) }}\n onReset={() => undefined}\n />\n </div>\n </div>\n <div className={styles.actions}>\n {refusal === null\n ? null\n : (\n <span className={styles.refusal} role=\"alert\">\n <StateDot state=\"error\" />\n <span>{refusal}</span>\n </span>\n )}\n <Button\n variant=\"primary\"\n size=\"sm\"\n disabled={disabled || !valid || !dirty}\n onClick={() => { void submit() }}\n >\n {busy ? t('limitsSaving') : t('limitsSave')}\n </Button>\n </div>\n </section>\n )\n}\n\n/**\n * Publish this workspace's configuration as the default other users start from.\n\n * One action rather than a set of controls: the configuration is whatever this workspace already\n * holds, and the button copies it to DataOps.\n * @param props - Translate function from the section.\n * @returns The default-configuration card.\n */\nfunction DefaultsCard({ t }: { t: (key: keyof typeof en) => string }) {\n const [state, setState] = useState<LoadState<ModelSyncStatus>>({ kind: 'loading' })\n const [busy, setBusy] = useState(false)\n\n const refresh = useCallback(async () => {\n try {\n const status = await fetchModelSyncStatus()\n setState(status === null ? { kind: 'unavailable' } : { kind: 'ready', status })\n } catch {\n setState({ kind: 'failed' })\n }\n }, [])\n\n useEffect(() => { void refresh() }, [refresh])\n\n const publish = useCallback(async () => {\n setBusy(true)\n try {\n const status = await postModelSyncAction({ action: 'publish-defaults' })\n if (status === null) setState({ kind: 'unavailable' })\n else setState({ kind: 'ready', status })\n } catch {\n setState({ kind: 'failed' })\n } finally {\n setBusy(false)\n }\n }, [])\n\n if (state.kind === 'loading') return null\n if (state.kind !== 'ready') {\n return <UnavailableCard title={t('defaultsTitle')} t={t} state={state.kind} />\n }\n\n const published = state.status.publishedAt === null\n ? null\n : publishedText(state.status.publishedAt)\n\n // A viewer DataOps does not authorize to publish sees the state without the action, because the\n // permission rule lives in DataOps and the browser must not restate it.\n return (\n <section className={styles.card}>\n <div className={styles.row}>\n <div className={styles.copy}>\n <span className={styles.label}>{t('defaultsTitle')}</span>\n <span className={styles.meta}>\n {published === null\n ? t('defaultsNeverPublished')\n : t('defaultsPublishedAt') + ' · ' + published}\n </span>\n </div>\n {state.status.canPublish\n ? (\n <Button variant=\"outline\" size=\"sm\" disabled={busy} onClick={() => { void publish() }}>\n {busy ? t('defaultsPublishing') : t('defaultsPublish')}\n </Button>\n )\n : <span className={styles.meta}>{t('defaultsNotAdmin')}</span>}\n </div>\n </section>\n )\n}\n","/** Same-origin skill plaza calls from the DataOps skill center section. */\n\n/** Route the plugin's Host half serves for the plaza. */\nexport const SKILL_PLAZA_PATH = '/integrations/dataops/skill-plaza'\n\n/** One plaza entry as the section reads it. */\nexport interface PlazaSkill {\n id: number\n name: string\n description?: string\n instruction: string\n tags: string[]\n sharedByMe: boolean\n updatedAt: string\n}\n\n/** The plaza listing and the tags in use. */\nexport interface PlazaListing {\n skills: PlazaSkill[]\n tags: string[]\n}\n\n/** Narrow an unknown value to a plaza entry. */\nfunction asSkill(value: unknown): PlazaSkill | null {\n if (typeof value !== 'object' || value === null || Array.isArray(value)) return null\n const row = value as Record<string, unknown>\n if (typeof row.id !== 'number' || typeof row.name !== 'string') return null\n return {\n id: row.id,\n name: row.name,\n description: typeof row.description === 'string' ? row.description : undefined,\n instruction: typeof row.instruction === 'string' ? row.instruction : '',\n tags: Array.isArray(row.tags) ? row.tags.filter((tag): tag is string => typeof tag === 'string') : [],\n sharedByMe: row.sharedByMe === true,\n updatedAt: typeof row.updatedAt === 'string' ? row.updatedAt : '',\n }\n}\n\n/** Narrow an unknown value to the listing. */\nfunction asListing(value: unknown): PlazaListing | null {\n if (typeof value !== 'object' || value === null || Array.isArray(value)) return null\n const row = value as Record<string, unknown>\n const skills = Array.isArray(row.skills) ? row.skills.flatMap((entry) => asSkill(entry) ?? []) : []\n const tags = Array.isArray(row.tags) ? row.tags.filter((tag): tag is string => typeof tag === 'string') : []\n return { skills, tags }\n}\n\n/**\n * Read the plaza.\n * @param filter - Optional tag and text filters.\n * @returns The listing, or null when this workspace is not connected to DataOps.\n */\nexport async function fetchPlaza(filter: { tag?: string; query?: string } = {}): Promise<PlazaListing | null> {\n const params = new URLSearchParams()\n if (filter.tag !== undefined && filter.tag !== '') params.set('tag', filter.tag)\n if (filter.query !== undefined && filter.query !== '') params.set('q', filter.query)\n const suffix = params.size === 0 ? '' : '?' + params.toString()\n const response = await fetch(SKILL_PLAZA_PATH + suffix, { headers: { accept: 'application/json' } })\n if (response.status === 503) return null\n if (!response.ok) throw new Error('skill plaza read failed with HTTP ' + String(response.status))\n return asListing(await response.json())\n}\n\n/**\n * Change the plaza.\n * @param body - Action and its parameters.\n * @returns The parsed reply, or null when the plugin is not active.\n */\nexport async function postPlazaAction(body: Record<string, unknown>): Promise<unknown> {\n const response = await fetch(SKILL_PLAZA_PATH, {\n method: 'POST',\n headers: { 'content-type': 'application/json', accept: 'application/json' },\n body: JSON.stringify(body),\n })\n if (response.status === 503) return null\n if (!response.ok) throw new Error('skill plaza action failed with HTTP ' + String(response.status))\n return await response.json()\n}\n","import { useCallback, useEffect, useState } from 'react'\nimport type { ReactNode } from 'react'\nimport {\n Button,\n IconDownloadOutlineRegular,\n IconRefreshOutlineRegular,\n IconShareOutlineRegular,\n IconSkillOutlineRegular,\n IconSparkleRegular,\n IconTrashOutlineRegular,\n Pill,\n Tag,\n} from '@deepseek-ai/dsh-client-ui-primitives'\nimport type { InjectFace } from '@deepseek-ai/dsh-client-ui-slots'\nimport type { en } from './locales.ts'\nimport { fetchPlaza, postPlazaAction, type PlazaListing, type PlazaSkill } from './skill-plaza-client.ts'\nimport styles from './SkillPlazaSection.module.css'\n\n/** Values the skill center passes to a contributed section. */\nexport interface SkillPlazaSectionInjected {\n /** Translate one DataOps plaza message key. */\n t: (key: keyof typeof en) => string\n}\n\n/** Props accepted by the plaza section. */\nexport type SkillPlazaSectionProps = Partial<InjectFace<SkillPlazaSectionInjected>>\n\n/** What the section currently knows. */\ntype PlazaState =\n | { kind: 'loading' }\n | { kind: 'unavailable' }\n | { kind: 'ready'; listing: PlazaListing }\n | { kind: 'failed' }\n\n/**\n * One plaza row, laid out like the skill center's own rows so the section reads as part of the\n * page rather than a panel bolted onto it.\n * @param props - the row's skill, its actions, and the dictionary resolver.\n * @returns the rendered row.\n */\nfunction PlazaRow({ skill, busy, onInstall, onUnshare, t }: {\n skill: PlazaSkill\n busy: boolean\n onInstall: () => void\n onUnshare: () => void\n t: (key: keyof typeof en) => string\n}): ReactNode {\n return (\n <li className={styles.card}>\n <div className={styles.cardHead}>\n <span className={styles.cardIcon}><IconSkillOutlineRegular size={22} /></span>\n <div className={styles.cardMain}>\n <div className={styles.cardTitle}>\n {skill.name}\n {skill.sharedByMe ? <Tag tone=\"info\" className={styles.mine}>{t('plazaMine')}</Tag> : null}\n </div>\n {skill.description === undefined ? null : (\n <div className={styles.cardDesc}>{skill.description}</div>\n )}\n {skill.tags.length === 0 ? null : (\n <div className={styles.cardMarks}>\n {skill.tags.map((item) => <Tag tone=\"quiet\" key={item}>{item}</Tag>)}\n </div>\n )}\n </div>\n <div className={styles.cardEnd}>\n <Button\n variant=\"outline\"\n size=\"sm\"\n icon={<IconDownloadOutlineRegular size={16} />}\n disabled={busy}\n onClick={onInstall}\n >\n {t('plazaInstall')}\n </Button>\n {skill.sharedByMe ? (\n <Button\n variant=\"ghost\"\n size=\"sm\"\n icon={<IconTrashOutlineRegular size={16} />}\n disabled={busy}\n onClick={onUnshare}\n >\n {t('plazaUnshare')}\n </Button>\n ) : null}\n </div>\n </div>\n </li>\n )\n}\n\n/**\n * Browse, share, and install skills other users published.\n *\n * The section appears only where this plugin is installed: the skill center renders the slot,\n * and an empty slot renders nothing. Every action goes through this plugin's Host route, so a\n * workspace without DataOps never reaches these calls.\n * @param props - Skill center injection values.\n * @returns The plaza section, or nothing before injection.\n */\nexport function SkillPlazaSection(props: SkillPlazaSectionProps): ReactNode {\n const { t } = props\n const [state, setState] = useState<PlazaState>({ kind: 'loading' })\n const [tag, setTag] = useState('')\n const [query, setQuery] = useState('')\n const [busy, setBusy] = useState(false)\n const [notice, setNotice] = useState<string | null>(null)\n\n const load = useCallback(async (filter: { tag?: string; query?: string }) => {\n try {\n const listing = await fetchPlaza(filter)\n setState(listing === null ? { kind: 'unavailable' } : { kind: 'ready', listing })\n } catch {\n setState({ kind: 'failed' })\n }\n }, [])\n\n useEffect(() => { void load({}) }, [load])\n\n const refresh = useCallback(async (nextTag = tag, nextQuery = query) => {\n await load({ tag: nextTag, query: nextQuery })\n }, [load, tag, query])\n\n const act = useCallback(async (body: Record<string, unknown>, message: string) => {\n setBusy(true)\n setNotice(null)\n try {\n await postPlazaAction(body)\n setNotice(message)\n await refresh()\n } catch {\n setNotice(t === undefined ? null : t('plazaActionFailed'))\n } finally {\n setBusy(false)\n }\n }, [refresh, t])\n\n if (t === undefined) return null\n if (state.kind === 'loading') return null\n\n // The section names itself once; the states below swap only what sits under the heading.\n const head = (\n <div className={styles.head}>\n <h2 className={styles.title}>\n <span className={styles.titleIcon}><IconSparkleRegular size={18} /></span>\n {t('plazaTitle')}\n </h2>\n <p className={styles.intro}>{t('plazaIntro')}</p>\n </div>\n )\n\n if (state.kind === 'unavailable') {\n return <section className={styles.section}>{head}<p className={styles.intro}>{t('plazaUnavailable')}</p></section>\n }\n if (state.kind === 'failed') {\n return (\n <section className={styles.section}>\n {head}\n <div className={styles.empty} role=\"alert\">\n <span className={styles.emptyIcon}><IconSkillOutlineRegular size={28} /></span>\n <p className={styles.emptyText}>{t('plazaLoadFailed')}</p>\n <Button variant=\"outline\" size=\"sm\" icon={<IconRefreshOutlineRegular size={16} />} onClick={() => { void refresh() }}>\n {t('plazaRetry')}\n </Button>\n </div>\n </section>\n )\n }\n\n const { listing } = state\n return (\n <section className={styles.section}>\n {head}\n\n <div className={styles.toolbar}>\n <input\n className={styles.search}\n placeholder={t('plazaSearch')}\n value={query}\n onChange={(event) => {\n const next = event.target.value\n setQuery(next)\n void refresh(tag, next)\n }}\n />\n </div>\n\n {listing.tags.length === 0 ? null : (\n <div className={styles.tagBar}>\n <Pill active={tag === ''} onClick={() => { setTag(''); void refresh('', query) }}>{t('plazaAllTags')}</Pill>\n {listing.tags.map((item) => (\n <Pill key={item} active={tag === item} onClick={() => { setTag(item); void refresh(item, query) }}>\n {item}\n </Pill>\n ))}\n </div>\n )}\n\n {notice === null ? null : <p className={styles.notice}>{notice}</p>}\n\n {listing.skills.length === 0 ? (\n <div className={styles.empty}>\n <span className={styles.emptyIcon}><IconShareOutlineRegular size={28} /></span>\n <p className={styles.emptyText}>{t('plazaEmpty')}</p>\n </div>\n ) : null}\n\n <ul className={styles.cards}>\n {listing.skills.map((skill) => (\n <PlazaRow\n key={skill.id}\n skill={skill}\n busy={busy}\n t={t}\n onInstall={() => { void act({ action: 'install', id: skill.id }, t('plazaInstalled')) }}\n onUnshare={() => { void act({ action: 'unshare', id: skill.id }, t('plazaUnshared')) }}\n />\n ))}\n </ul>\n </section>\n )\n}\n\n/** Re-exported so the registration site reads the route from one place. */\nexport { SKILL_PLAZA_PATH } from './skill-plaza-client.ts'\n","import type { CSSProperties } from 'react'\nimport css from './WanxiangBrand.module.css'\n\nconst WORDMARK_VIEWBOX = \"1.64 115.64 5927.36 933.38\"\nconst WORDMARK_RATIO = 5927.36 / 933.38\nconst WORDMARK_PATHS = [\n {\n \"d\": \"M62 765V691H333C326 434 312 123 34 -24C53 -38 77 -62 89 -82C287 28 361 217 390 414H767C752 147 735 37 705 9C693 -2 681 -4 657 -3C631 -3 558 -3 483 4C498 -17 508 -48 509 -70C578 -74 648 -75 686 -72C724 -70 749 -62 772 -36C811 5 829 126 846 450C847 460 847 487 847 487H399C406 556 409 625 411 691H939V765Z\",\n \"transform\": \"translate(0.00 940.00) scale(0.96000 -0.94000)\"\n },\n {\n \"d\": \"M546 474H850V300H546ZM546 542V710H850V542ZM546 231H850V57H546ZM473 781V-73H546V-12H850V-70H926V781ZM214 840V626H52V554H205C170 416 99 258 29 175C41 157 60 127 68 107C122 176 175 287 214 402V-79H287V378C325 329 370 267 389 234L435 295C413 322 322 429 287 464V554H430V626H287V840Z\",\n \"transform\": \"translate(1002.00 940.00) scale(0.96000 -0.94000)\"\n },\n {\n \"d\": \"M443 821C425 782 393 723 368 688L417 664C443 697 477 747 506 793ZM88 793C114 751 141 696 150 661L207 686C198 722 171 776 143 815ZM410 260C387 208 355 164 317 126C279 145 240 164 203 180C217 204 233 231 247 260ZM110 153C159 134 214 109 264 83C200 37 123 5 41 -14C54 -28 70 -54 77 -72C169 -47 254 -8 326 50C359 30 389 11 412 -6L460 43C437 59 408 77 375 95C428 152 470 222 495 309L454 326L442 323H278L300 375L233 387C226 367 216 345 206 323H70V260H175C154 220 131 183 110 153ZM257 841V654H50V592H234C186 527 109 465 39 435C54 421 71 395 80 378C141 411 207 467 257 526V404H327V540C375 505 436 458 461 435L503 489C479 506 391 562 342 592H531V654H327V841ZM629 832C604 656 559 488 481 383C497 373 526 349 538 337C564 374 586 418 606 467C628 369 657 278 694 199C638 104 560 31 451 -22C465 -37 486 -67 493 -83C595 -28 672 41 731 129C781 44 843 -24 921 -71C933 -52 955 -26 972 -12C888 33 822 106 771 198C824 301 858 426 880 576H948V646H663C677 702 689 761 698 821ZM809 576C793 461 769 361 733 276C695 366 667 468 648 576Z\",\n \"transform\": \"translate(2004.00 940.00) scale(0.96000 -0.94000)\"\n },\n {\n \"d\": \"M484 238V-81H550V-40H858V-77H927V238H734V362H958V427H734V537H923V796H395V494C395 335 386 117 282 -37C299 -45 330 -67 344 -79C427 43 455 213 464 362H663V238ZM468 731H851V603H468ZM468 537H663V427H467L468 494ZM550 22V174H858V22ZM167 839V638H42V568H167V349C115 333 67 319 29 309L49 235L167 273V14C167 0 162 -4 150 -4C138 -5 99 -5 56 -4C65 -24 75 -55 77 -73C140 -74 179 -71 203 -59C228 -48 237 -27 237 14V296L352 334L341 403L237 370V568H350V638H237V839Z\",\n \"transform\": \"translate(3006.00 940.00) scale(0.96000 -0.94000)\"\n },\n {\n \"d\": \"M174 630C213 556 252 459 266 399L337 424C323 482 282 578 242 650ZM755 655C730 582 684 480 646 417L711 396C750 456 797 552 834 633ZM52 348V273H459V-79H537V273H949V348H537V698H893V773H105V698H459V348Z\",\n \"transform\": \"translate(4008.00 940.00) scale(0.96000 -0.94000)\"\n },\n {\n \"d\": \"M179 342V-79H255V-25H741V-77H821V342ZM255 48V270H741V48ZM126 426C165 441 224 443 800 474C825 443 846 414 861 388L925 434C873 518 756 641 658 727L599 687C647 644 699 591 745 540L231 516C320 598 410 701 490 811L415 844C336 720 219 593 183 559C149 526 124 505 101 500C110 480 122 442 126 426Z\",\n \"transform\": \"translate(5010.00 940.00) scale(0.96000 -0.94000)\"\n }\n] as const\nconst HARNESS_PATHS = [\n {\n \"d\": \"M132.848 8.93205H134.08V16.137H132.848V8.93205ZM136.5 8.93205H137.732V16.137H136.5V8.93205ZM133.365 13.024V11.99H137.193V13.024H133.365Z\",\n \"fill\": \"var(--dsw-alias-label-primary-inverted)\"\n },\n {\n \"d\": \"M140.397 14.432L140.672 13.453H143.202L143.532 14.432H140.397ZM140.287 16.137H139.055L141.277 8.93205H142.201L142.146 9.74605L140.947 13.915H140.969L140.287 16.137ZM145.039 16.137H143.741L143.07 13.948L143.081 13.937L141.871 9.74605L141.926 8.93205H142.817L145.039 16.137Z\",\n \"fill\": \"var(--dsw-alias-label-primary-inverted)\"\n },\n {\n \"d\": \"M146.846 8.93205H149.068C149.852 8.93205 150.443 9.11538 150.839 9.48205C151.235 9.84138 151.433 10.3327 151.433 10.956C151.433 11.22 151.396 11.4657 151.323 11.693C151.249 11.9204 151.125 12.1257 150.949 12.309C150.773 12.4924 150.531 12.65 150.223 12.782C149.922 12.9067 149.541 13.0057 149.079 13.079V13.321H146.846V12.639L148.023 12.485C148.631 12.4044 149.09 12.298 149.398 12.166C149.706 12.034 149.915 11.8764 150.025 11.693C150.135 11.5024 150.19 11.2934 150.19 11.066C150.19 10.6994 150.083 10.417 149.871 10.219C149.658 10.021 149.324 9.92205 148.87 9.92205H146.846V8.93205ZM146.395 8.93205H147.627V16.137H146.395V8.93205ZM151.917 16.093V16.137H150.366L149.024 14.322C148.87 14.1094 148.73 13.9407 148.606 13.816C148.481 13.684 148.345 13.5887 148.199 13.53C148.052 13.464 147.872 13.42 147.66 13.398C147.447 13.3687 147.176 13.3504 146.846 13.343V13.145H149.079C149.233 13.211 149.368 13.2844 149.486 13.365C149.61 13.4457 149.735 13.5447 149.86 13.662C149.992 13.7794 150.138 13.937 150.3 14.135L151.917 16.093Z\",\n \"fill\": \"var(--dsw-alias-label-primary-inverted)\"\n },\n {\n \"d\": \"M153.58 9.57005L153.591 8.93205H154.46L157.584 15.51V16.137H156.704L153.58 9.57005ZM158.024 16.137H156.968L156.88 8.93205H158.024V16.137ZM154.24 16.137H153.096V8.93205H154.152L154.24 16.137Z\",\n \"fill\": \"var(--dsw-alias-label-primary-inverted)\"\n },\n {\n \"d\": \"M159.963 8.93205H161.206V16.137H159.963V8.93205ZM160.095 9.96605V8.93205H164.858V9.96605H160.095ZM160.095 16.137V15.103H164.902V16.137H160.095ZM160.095 13.013V11.99H164.374V13.013H160.095Z\",\n \"fill\": \"var(--dsw-alias-label-primary-inverted)\"\n },\n {\n \"d\": \"M169.052 15.257C169.543 15.257 169.895 15.1654 170.108 14.982C170.328 14.7987 170.438 14.5457 170.438 14.223C170.438 14.047 170.405 13.8967 170.339 13.772C170.273 13.6474 170.152 13.5337 169.976 13.431C169.807 13.321 169.558 13.2147 169.228 13.112L168.491 12.881C167.846 12.6757 167.38 12.4044 167.094 12.067C166.808 11.7297 166.665 11.3007 166.665 10.78C166.665 10.428 166.76 10.1017 166.951 9.80105C167.142 9.50038 167.428 9.25838 167.809 9.07505C168.19 8.89172 168.663 8.80005 169.228 8.80005C169.631 8.80005 169.998 8.82938 170.328 8.88805C170.665 8.93938 171.039 9.01638 171.45 9.11905L171.274 10.175C170.834 10.0504 170.442 9.96238 170.097 9.91105C169.76 9.85238 169.463 9.82305 169.206 9.82305C168.737 9.82305 168.403 9.90738 168.205 10.076C168.007 10.2374 167.908 10.439 167.908 10.681C167.908 10.857 167.941 11.0147 168.007 11.154C168.073 11.286 168.19 11.407 168.359 11.517C168.535 11.627 168.784 11.7334 169.107 11.836L169.866 12.078C170.526 12.276 170.995 12.5327 171.274 12.848C171.553 13.156 171.692 13.585 171.692 14.135C171.692 14.5604 171.589 14.9344 171.384 15.257C171.179 15.5797 170.878 15.8327 170.482 16.016C170.093 16.1994 169.609 16.291 169.03 16.291C168.627 16.291 168.212 16.247 167.787 16.159C167.362 16.071 166.9 15.9427 166.401 15.774L166.665 14.718C167.156 14.894 167.6 15.0297 167.996 15.125C168.399 15.213 168.751 15.257 169.052 15.257Z\",\n \"fill\": \"var(--dsw-alias-label-primary-inverted)\"\n },\n {\n \"d\": \"M175.809 15.257C176.3 15.257 176.652 15.1654 176.865 14.982C177.085 14.7987 177.195 14.5457 177.195 14.223C177.195 14.047 177.162 13.8967 177.096 13.772C177.03 13.6474 176.909 13.5337 176.733 13.431C176.564 13.321 176.315 13.2147 175.985 13.112L175.248 12.881C174.603 12.6757 174.137 12.4044 173.851 12.067C173.565 11.7297 173.422 11.3007 173.422 10.78C173.422 10.428 173.517 10.1017 173.708 9.80105C173.899 9.50038 174.185 9.25838 174.566 9.07505C174.947 8.89172 175.42 8.80005 175.985 8.80005C176.388 8.80005 176.755 8.82938 177.085 8.88805C177.422 8.93938 177.796 9.01638 178.207 9.11905L178.031 10.175C177.591 10.0504 177.199 9.96238 176.854 9.91105C176.517 9.85238 176.22 9.82305 175.963 9.82305C175.494 9.82305 175.16 9.90738 174.962 10.076C174.764 10.2374 174.665 10.439 174.665 10.681C174.665 10.857 174.698 11.0147 174.764 11.154C174.83 11.286 174.947 11.407 175.116 11.517C175.292 11.627 175.541 11.7334 175.864 11.836L176.623 12.078C177.283 12.276 177.752 12.5327 178.031 12.848C178.31 13.156 178.449 13.585 178.449 14.135C178.449 14.5604 178.346 14.9344 178.141 15.257C177.936 15.5797 177.635 15.8327 177.239 16.016C176.85 16.1994 176.366 16.291 175.787 16.291C175.384 16.291 174.969 16.247 174.544 16.159C174.119 16.071 173.657 15.9427 173.158 15.774L173.422 14.718C173.913 14.894 174.357 15.0297 174.753 15.125C175.156 15.213 175.508 15.257 175.809 15.257Z\",\n \"fill\": \"var(--dsw-alias-label-primary-inverted)\"\n }\n] as const\n\ninterface MarkProps {\n size: number\n className?: string | undefined\n}\n\nfunction classes(...values: Array<string | undefined>): string {\n return values.filter(Boolean).join(' ')\n}\n\nfunction Cube({ transform, className }: { transform: string; className: string }) {\n return (\n <g transform={transform}>\n <g className={className} stroke=\"currentColor\" strokeWidth=\"1.7\" strokeLinejoin=\"round\">\n <path d=\"M12 0 24 7 12 14 0 7 12 0Z\" fill=\"none\" />\n <path d=\"M0 7 12 14v16L0 23V7Z\" fill=\"currentColor\" />\n <path d=\"M12 14 24 7v16L12 30V14Z\" fill=\"currentColor\" fillOpacity=\".18\" />\n </g>\n </g>\n )\n}\n\n/** Four linked data units; its ink follows the host surface through currentColor. */\nexport function WanxiangMark({ size, className, animated = false }: MarkProps & { animated?: boolean }) {\n return (\n <svg\n width={size}\n height={(size * 58) / 54}\n className={classes(css.mark, animated ? css.animatedMark : undefined, className)}\n viewBox=\"0 0 54 58\"\n fill=\"none\"\n aria-hidden=\"true\"\n >\n <Cube className={css.unitTop} transform=\"translate(15 0)\" />\n <Cube className={css.unitLeft} transform=\"translate(0 16)\" />\n <Cube className={css.unitRight} transform=\"translate(30 16)\" />\n <Cube className={css.unitCore} transform=\"translate(15 27)\" />\n </svg>\n )\n}\n\n/** Approved rounded-Heiti artwork, stored as paths with no runtime font dependency. */\nexport function WanxiangWordmark({ height, accessible = false, className }: {\n height: number\n accessible?: boolean\n className?: string | undefined\n}) {\n const accessibility = accessible\n ? { role: 'img', 'aria-label': '万相数据平台' }\n : { 'aria-hidden': true }\n return (\n <svg\n width={height * WORDMARK_RATIO}\n height={height}\n className={className}\n viewBox={WORDMARK_VIEWBOX}\n {...accessibility}\n >\n <g\n fill=\"currentColor\"\n stroke=\"currentColor\"\n strokeWidth=\"42\"\n strokeLinejoin=\"round\"\n strokeLinecap=\"round\"\n paintOrder=\"stroke fill\"\n >\n {WORDMARK_PATHS.map(path => <path key={path.transform} d={path.d} transform={path.transform} />)}\n </g>\n </svg>\n )\n}\n\n/** Exact HARNESS badge artwork extracted from the current DSH BrandWordmark. */\nexport function HarnessBadge({ height = 14 }: { height?: number }) {\n const style = { '--dsw-alias-label-primary-inverted': 'var(--dsw-alias-bg-base)' } as CSSProperties\n return (\n <svg\n width={(height * 53) / 15.5}\n height={height}\n className={css.harness}\n viewBox=\"129 5 53 15.5\"\n style={style}\n aria-hidden=\"true\"\n >\n <rect x=\"129.348\" y=\"5.5\" width=\"52\" height=\"14\" rx=\"2\" fill=\"currentColor\" />\n {HARNESS_PATHS.map((path, index) => <path key={index} d={path.d} fill={path.fill} />)}\n </svg>\n )\n}\n\n/** Expanded-sidebar brand name plus the unchanged official HARNESS badge. */\nexport function WanxiangSidebarName() {\n return <span className={css.sidebarName}><WanxiangWordmark height={16} /><HarnessBadge height={14} /></span>\n}\n\n/** Welcome-page logo with four-unit hover motion. */\nexport function WanxiangHeroMark({ size, className }: MarkProps) {\n return <WanxiangMark size={size} className={className} animated />\n}\n","import type { Context as ClientContext } from '@deepseek-ai/cordis'\nimport type {} from '@deepseek-ai/dsh-client-ui-conversation/client'\nimport type {} from '@deepseek-ai/dsh-client-ui-renderer/client'\nimport type {} from '@deepseek-ai/dsh-client-ui-sidebar/client'\nimport { wanxiangBrandPreference } from './brand-store.ts'\nimport {\n WanxiangHeroMark,\n WanxiangMark,\n WanxiangSidebarName,\n} from './WanxiangBrand.tsx'\n\nconst BRAND_TITLE = '万相数据平台 Harness'\nconst SLOT_PRIORITY = -100\nconst FAVICON_ID = 'dataops-wanxiang-favicon'\nconst FAVICON_SVG = `<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 54 58\"><style>:root{color:#1b1b1d}@media(prefers-color-scheme:dark){:root{color:#f7f7f8}}</style><g transform=\"translate(15 0)\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linejoin=\"round\"><path d=\"M12 0 24 7 12 14 0 7Z\" fill=\"none\"/><path d=\"M0 7 12 14v16L0 23Z\" fill=\"currentColor\"/><path d=\"M12 14 24 7v16L12 30Z\" fill=\"currentColor\" fill-opacity=\".18\"/></g><g transform=\"translate(0 16)\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linejoin=\"round\"><path d=\"M12 0 24 7 12 14 0 7Z\" fill=\"none\"/><path d=\"M0 7 12 14v16L0 23Z\" fill=\"currentColor\"/><path d=\"M12 14 24 7v16L12 30Z\" fill=\"currentColor\" fill-opacity=\".18\"/></g><g transform=\"translate(30 16)\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linejoin=\"round\"><path d=\"M12 0 24 7 12 14 0 7Z\" fill=\"none\"/><path d=\"M0 7 12 14v16L0 23Z\" fill=\"currentColor\"/><path d=\"M12 14 24 7v16L12 30Z\" fill=\"currentColor\" fill-opacity=\".18\"/></g><g transform=\"translate(15 27)\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linejoin=\"round\"><path d=\"M12 0 24 7 12 14 0 7Z\" fill=\"none\"/><path d=\"M0 7 12 14v16L0 23Z\" fill=\"currentColor\"/><path d=\"M12 14 24 7v16L12 30Z\" fill=\"currentColor\" fill-opacity=\".18\"/></g></svg>`\n\n\nfunction registerWanxiangSlots(ctx: ClientContext): () => void {\n return ctx.slots.inject('sidebar.brand.mark', () =>\n ctx.slots.inject('sidebar.brand.name', () =>\n ctx.slots.inject('conversation.hero.brand.mark', function* () {\n yield ctx.slots.register({\n name: 'sidebar.brand.mark',\n priority: SLOT_PRIORITY,\n registrant: 'dataops-managed',\n }, WanxiangMark)\n yield ctx.slots.register({\n name: 'sidebar.brand.name',\n priority: SLOT_PRIORITY,\n registrant: 'dataops-managed',\n }, WanxiangSidebarName)\n yield ctx.slots.register({\n name: 'conversation.hero.brand.mark',\n priority: SLOT_PRIORITY,\n registrant: 'dataops-managed',\n }, WanxiangHeroMark)\n })))\n}\n\nfunction installFavicon(): HTMLLinkElement {\n const existing = document.getElementById(FAVICON_ID)\n if (existing instanceof HTMLLinkElement) return existing\n const link = document.createElement('link')\n link.id = FAVICON_ID\n link.rel = 'icon'\n link.type = 'image/svg+xml'\n link.href = `data:image/svg+xml,${encodeURIComponent(FAVICON_SVG)}`\n document.head.append(link)\n return link\n}\n\n/** Keep shell slots, browser title, and favicon on the same persisted preference. */\nexport function installWanxiangBranding(ctx: ClientContext): void {\n const originalTitle = document.title\n let disposeSlots: (() => void) | undefined\n let favicon: HTMLLinkElement | undefined\n let titleObserver: MutationObserver | undefined\n\n const stopTitleObserver = (): void => {\n titleObserver?.disconnect()\n titleObserver = undefined\n }\n const keepBrandTitle = (): void => {\n if (document.title !== BRAND_TITLE) document.title = BRAND_TITLE\n if (titleObserver !== undefined) return\n titleObserver = new MutationObserver(() => {\n if (wanxiangBrandPreference.getSnapshot().enabled && document.title !== BRAND_TITLE) {\n document.title = BRAND_TITLE\n }\n })\n titleObserver.observe(document.head, { childList: true, subtree: true, characterData: true })\n }\n\n const synchronize = (): void => {\n const enabled = wanxiangBrandPreference.getSnapshot().enabled\n if (enabled) {\n disposeSlots ??= registerWanxiangSlots(ctx)\n favicon ??= installFavicon()\n keepBrandTitle()\n document.documentElement.dataset.dataopsBrand = 'wanxiang'\n return\n }\n disposeSlots?.()\n disposeSlots = undefined\n favicon?.remove()\n favicon = undefined\n stopTitleObserver()\n document.title = originalTitle\n delete document.documentElement.dataset.dataopsBrand\n }\n\n ctx.effect(() => {\n synchronize()\n const unsubscribe = wanxiangBrandPreference.subscribe(synchronize)\n return () => {\n unsubscribe()\n disposeSlots?.()\n favicon?.remove()\n stopTitleObserver()\n document.title = originalTitle\n delete document.documentElement.dataset.dataopsBrand\n }\n }, 'dataops-managed: Wanxiang shell branding')\n}\n","/** English managed DataOps Settings copy. */\nexport const en = {\n nav: 'DataOps',\n title: 'DataOps',\n managed: 'Connected to DataOps',\n unavailable: 'DataOps is not connected.',\n loadFailed: 'Loading failed. Try again.',\n brandingTitle: 'Wanxiang branding',\n brandingToggle: 'Wanxiang branding',\n limitsTitle: 'File size limits',\n limitsFileReadLabel: 'Largest file to read (MiB)',\n limitsUploadLabel: 'Largest file to upload (MiB)',\n limitsInvalid: 'Enter a size in MiB.',\n limitsSave: 'Save',\n limitsSaving: 'Saving…',\n timeoutTitle: 'Tool call timeout',\n timeoutLabel: 'Longest single call (seconds)',\n timeoutInvalid: 'Enter 1 to 3600 seconds.',\n defaultsTitle: 'Default configuration',\n defaultsPublish: 'Publish',\n defaultsPublishing: 'Publishing…',\n defaultsPublishedAt: 'Last published',\n defaultsNeverPublished: 'Not published yet',\n defaultsNotAdmin: 'Administrators only',\n plazaTitle: 'Skill plaza',\n plazaIntro: 'Skills other users shared. Install one to use it in this workspace, or share a skill of your own.',\n plazaSearch: 'Search skills',\n plazaTagFilter: 'Filter by tag',\n plazaAllTags: 'All tags',\n plazaMine: 'Shared by me',\n plazaInstall: 'Install',\n plazaInstalled: 'Installed. It is now in your skill list.',\n plazaUnshare: 'Stop sharing',\n plazaUnshared: 'Removed from the plaza. Users who installed it keep their copy.',\n plazaEmpty: 'No skills have been shared yet.',\n plazaUnavailable: 'The skill plaza is available once this workspace is connected to DataOps.',\n plazaLoadFailed: 'The skill plaza could not be loaded. Try again.',\n plazaActionFailed: 'The action could not be completed. Try again.',\n plazaRetry: 'Try again',\n plazaRefresh: 'Refresh',\n} as const\n\n/** Stable key set shared by every managed DataOps locale. */\nexport type ManagedDataOpsKey = keyof typeof en\n\n/** Chinese managed DataOps Settings copy. */\nexport const zh: Record<ManagedDataOpsKey, string> = {\n nav: 'DataOps',\n title: 'DataOps',\n managed: '已连接 DataOps',\n unavailable: '未连接 DataOps。',\n loadFailed: '加载失败,请重试。',\n brandingTitle: '应用万相品牌',\n brandingToggle: '应用万相品牌',\n limitsTitle: '文件大小限制',\n limitsFileReadLabel: '最大读取文件(MiB)',\n limitsUploadLabel: '最大上传文件(MiB)',\n limitsInvalid: '请输入以 MiB 为单位的大小。',\n limitsSave: '保存',\n timeoutTitle: '工具调用超时',\n timeoutLabel: '单次调用上限(秒)',\n timeoutInvalid: '请输入 1 到 3600 秒。',\n limitsSaving: '保存中…',\n defaultsTitle: '默认配置',\n defaultsPublish: '发布',\n defaultsPublishing: '发布中…',\n defaultsPublishedAt: '上次发布',\n defaultsNeverPublished: '尚未发布',\n defaultsNotAdmin: '仅管理员可发布',\n plazaTitle: '技能广场',\n plazaIntro: '其他用户共享的技能。装载后即可在本工作区使用,也可以把自己的技能共享出去。',\n plazaSearch: '搜索技能',\n plazaTagFilter: '按标签筛选',\n plazaAllTags: '全部标签',\n plazaMine: '我共享的',\n plazaInstall: '装载',\n plazaInstalled: '已装载,可在技能列表中使用。',\n plazaUnshare: '取消共享',\n plazaUnshared: '已从广场移除;已装载的用户保留其副本。',\n plazaEmpty: '还没有人共享技能。',\n plazaUnavailable: '工作区接入 DataOps 后即可使用技能广场。',\n plazaLoadFailed: '技能广场加载失败,请重试。',\n plazaActionFailed: '操作未完成,请重试。',\n plazaRetry: '重试',\n plazaRefresh: '刷新',\n}\n","import type { Context as ClientContext } from '@deepseek-ai/cordis'\nimport type {} from '@deepseek-ai/dsh-client-ui-renderer/client'\nimport type {} from '@deepseek-ai/dsh-client-ui-settings/client'\nimport type {} from '@deepseek-ai/dsh-client-locale/client'\n// Type-only: pulls the skill center's slot declaration so this plugin can contribute to it.\nimport type {} from '@sparkelf/dsh-client-ui-skill-center/client'\nimport { ManagedDataOpsSection } from './ManagedDataOpsSection.tsx'\nimport { SkillPlazaSection } from './SkillPlazaSection.tsx'\nimport { installWanxiangBranding } from './install-branding.tsx'\nimport type { ManagedDataOpsSectionInjected } from './ManagedDataOpsSection.tsx'\nimport { en, zh, type ManagedDataOpsKey } from './locales.ts'\n\ndeclare module '@deepseek-ai/dsh-client-ui-slots' {\n interface LocaleNamespaceMap {\n 'settings.dataops-managed': ManagedDataOpsKey\n }\n}\n\nconst NS = 'settings.dataops-managed'\nconst AUTH_UPDATED_MESSAGE = 'dataops-auth-updated'\nconst MANAGED_AUTH_PATH = '/integrations/dataops/managed-auth'\n\n/** Required client services for the managed DataOps Settings section. */\nexport const inject = ['slots', 'locale']\n\n/**\n * Register localized managed DataOps Settings navigation and content.\n * @param ctx - DSH client context with locale and settings slots.\n */\nexport function apply(ctx: ClientContext): void {\n ctx.effect(() => ctx.locale.register(NS, { zh, en }), 'dataops-managed: settings copy')\n installWanxiangBranding(ctx)\n const t = ctx.locale.bind(NS) as ManagedDataOpsSectionInjected['t']\n ctx.slots.inject('settings.section', () => ctx.slots.register({\n name: 'settings.section',\n id: 'dataops',\n order: 25,\n label: () => t('nav'),\n inject: () => ({ t }),\n }, ManagedDataOpsSection))\n\n /**\n * The skill plaza, contributed to the skill center page.\n *\n * The skill center declares the slot and renders whatever it holds; a profile without this\n * plugin leaves it empty, which is what keeps the plaza out of a deployment that never\n * installed DataOps.\n */\n ctx.slots.inject('skill-center.section', () => ctx.slots.register({\n name: 'skill-center.section',\n id: 'dataops-plaza',\n order: 10,\n inject: () => ({ t }),\n }, SkillPlazaSection))\n\n const synchronizeJwt = async (): Promise<void> => {\n const response = await fetch(new URL(MANAGED_AUTH_PATH, window.location.origin), {\n method: 'POST',\n credentials: 'same-origin',\n })\n if (!response.ok) throw new Error(`DataOps managed JWT synchronization failed with HTTP ${String(response.status)}`)\n }\n const onMessage = (event: MessageEvent<unknown>): void => {\n if (event.source !== window.parent\n || (event.data as { type?: unknown } | null)?.type !== AUTH_UPDATED_MESSAGE) return\n void synchronizeJwt().catch(error => console.error('dataops-managed.jwt_sync_failed', error))\n }\n ctx.effect(() => {\n window.addEventListener('message', onMessage)\n void synchronizeJwt().catch(error => console.error('dataops-managed.jwt_sync_failed', error))\n return () => window.removeEventListener('message', onMessage)\n }, 'dataops-managed: JWT synchronization')\n}\n"],"mappings":";;;;;;;;;;;EAMA,MAAa,gCAAgC;EAE7C,SAAS,oBAA6C;GACpD,IAAI,OAAO,iBAAiB,aAAa,OAAO,EAAE,SAAS,KAAK;GAChE,IAAI;IACF,MAAM,QAAQ,KAAK,MAAM,aAAa,QAAA,2BAAqC,KAAK,MAAM;IACtF,OAAO,OAAO,UAAU,YAAY,UAAU,QAAQ,aAAa,SAC9D,OAAQ,MAAgC,YAAY,YACrD,EAAE,SAAU,MAA+B,QAAQ,IACnD,EAAE,SAAS,KAAK;GACtB,QAAQ;IACN,OAAO,EAAE,SAAS,KAAK;GACzB;EACF;EAEA,IAAI,aAAa,kBAAkB;EACnC,MAAM,4BAAY,IAAI,IAAgB;;EAGtC,MAAa,0BAA0B;GACrC,mBAA4C;GAC5C,YAAY,aAAuC;IACjD,UAAU,IAAI,QAAQ;IACtB,aAAa;KAAE,UAAU,OAAO,QAAQ;IAAE;G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AAsB;IAC/E,eAAoB,CAAC,CAAC,OAAM,UAAS,QAAQ,MAAM,mCAAmC,KAAK,CAAC;GAC9F;GACA,IAAI,aAAa;IACf,OAAO,iBAAiB,WAAW,SAAS;IAC5C,eAAoB,CAAC,CAAC,OAAM,UAAS,QAAQ,MAAM,mCAAmC,KAAK,CAAC;IAC5F,aAAa,OAAO,oBAAoB,WAAW,SAAS;GAC9D,GAAG,sCAAsC;EAC3C"}
|
|
1
|
+
{"version":3,"file":"client.js","names":["asStatus","refusalReason","useSyncExternalStore","styles","StateDot","Switch","useState","useId","useCallback","SettingsValueField","Button","styles","IconSkillOutlineRegular","Tag","Button","IconDownloadOutlineRegular","IconTrashOutlineRegular","useState","useCallback","IconSparkleRegular","IconRefreshOutlineRegular","Pill","IconShareOutlineRegular","css"],"sources":["../src/client/brand-store.ts","../src/client/model-sync-client.ts","../src/client/workspace-limits-client.ts","../src/client/tool-timeout-client.ts","../src/client/ManagedDataOpsSection.tsx","../src/client/skill-plaza-client.ts","../src/client/SkillPlazaSection.tsx","../src/client/WanxiangBrand.tsx","../src/client/install-branding.tsx","../src/client/locales.ts","../src/client/index.ts"],"sourcesContent":["/** Persisted client preference for the managed DataOps shell identity. */\nexport interface WanxiangBrandPreference {\n enabled: boolean\n}\n\n/** Stable local preference key shared by Settings and brand-slot registration. */\nexport const WANXIANG_BRAND_PREFERENCE_KEY = 'dsh.dataops.wanxiangBrand'\n\nfunction initialPreference(): WanxiangBrandPreference {\n if (typeof localStorage === 'undefined') return { enabled: true }\n try {\n const value = JSON.parse(localStorage.getItem(WANXIANG_BRAND_PREFERENCE_KEY) ?? 'null') as unknown\n return typeof value === 'object' && value !== null && 'enabled' in value\n && typeof (value as { enabled?: unknown }).enabled === 'boolean'\n ? { enabled: (value as { enabled: boolean }).enabled }\n : { enabled: true }\n } catch {\n return { enabled: true }\n }\n}\n\nlet preference = initialPreference()\nconst listeners = new Set<() => void>()\n\n/** Observable preference compatible with React's useSyncExternalStore. */\nexport const wanxiangBrandPreference = {\n getSnapshot: (): WanxiangBrandPreference => preference,\n subscribe: (listener: () => void): (() => void) => {\n listeners.add(listener)\n return () => { listeners.delete(listener) }\n },\n}\n\n/** Toggle the Wanxiang shell identity from the DataOps Settings section. */\nexport function setWanxiangBrandEnabled(enabled: boolean): void {\n if (preference.enabled === enabled) return\n preference = { enabled }\n if (typeof localStorage !== 'undefined') {\n try {\n localStorage.setItem(WANXIANG_BRAND_PREFERENCE_KEY, JSON.stringify(preference))\n } catch {\n // Storage failure must not block an in-memory preference change.\n }\n }\n for (const listener of listeners) listener()\n}\n","/** Same-origin model-sync calls from the DataOps settings surface. */\n\n/** Route the plugin's Host half serves for model sharing. */\nexport const MODEL_SYNC_PATH = '/integrations/dataops/model-sync'\n\n/** One model this workspace holds, and whether it is offered to other users. */\nexport interface ModelSyncModel {\n /** Model id as the settings document stores it. */\n id: string\n /** Whether other users may use it. */\n shared: boolean\n}\n\n/** Model sharing as this workspace currently stands. */\nexport interface ModelSyncStatus {\n /** Whether this workspace follows a publisher. */\n followState: 'following' | 'detached'\n /** Whether an administrator currently shares models. */\n publisherSharing: boolean\n /** How many models this workspace adopts from the publisher. */\n adoptedCount: number\n /** Model ids kept private. */\n privateModelIds: string[]\n /** Publication time, when one is sharing. */\n publishedAt: string | null\n /** Whether the current user may change what this workspace shares. */\n canPublish: boolean\n /** Models this workspace holds. */\n models: ModelSyncModel[]\n /**\n * Settings namespaces this deployment distributes.\n *\n * Present with the models in one response, so the two rows describe the same publication.\n */\n sections: DistributedSection[]\n}\n\n/** One settings namespace the deployment distributes. */\nexport interface DistributedSection {\n /** DSH settings namespace, such as `permission`. */\n ns: string\n /** Whether this workspace still takes the publisher's values for it. */\n followState: 'following' | 'detached'\n /** Whether adoption has applied values for it. */\n applied: boolean\n /** Whether a plugin here owns the namespace, so stopping would affect this workspace. */\n mounted: boolean\n}\n\n/** Narrow a response body to the status shape, rejecting anything else. */\nfunction asStatus(value: unknown): ModelSyncStatus | null {\n if (typeof value !== 'object' || value === null || Array.isArray(value)) return null\n const record = value as Record<string, unknown>\n if (record.followState !== 'following' && record.followState !== 'detached') return null\n return {\n followState: record.followState,\n publisherSharing: record.publisherSharing === true,\n adoptedCount: typeof record.adoptedCount === 'number' ? record.adoptedCount : 0,\n privateModelIds: Array.isArray(record.privateModelIds)\n ? record.privateModelIds.filter((id): id is string => typeof id === 'string')\n : [],\n publishedAt: typeof record.publishedAt === 'string' ? record.publishedAt : null,\n canPublish: record.canPublish === true,\n models: Array.isArray(record.models)\n ? record.models.flatMap((entry) => {\n if (typeof entry !== 'object' || entry === null) return []\n const model = entry as Record<string, unknown>\n return typeof model.id === 'string' ? [{ id: model.id, shared: model.shared === true }] : []\n })\n : [],\n sections: Array.isArray(record.sections)\n ? record.sections.flatMap((entry): DistributedSection[] => {\n if (typeof entry !== 'object' || entry === null || Array.isArray(entry)) return []\n const section = entry as Record<string, unknown>\n if (typeof section.ns !== 'string' || section.ns === '') return []\n return [{\n ns: section.ns,\n followState: section.followState === 'detached' ? 'detached' : 'following',\n applied: section.applied === true,\n mounted: section.mounted === true,\n }]\n })\n : [],\n }\n}\n\n/**\n * Read the current model sharing state.\n * @returns The status, or null when this workspace is not connected to DataOps.\n */\nexport async function fetchModelSyncStatus(): Promise<ModelSyncStatus | null> {\n const response = await fetch(MODEL_SYNC_PATH, { headers: { accept: 'application/json' } })\n if (response.status === 503) return null\n if (!response.ok) throw new Error('model sync status failed with HTTP ' + String(response.status))\n return asStatus(await response.json())\n}\n\n/**\n * Change what this workspace shares.\n * @param body - Action and its parameters.\n * @returns The status after the change, or null when the plugin is not active.\n */\nexport async function postModelSyncAction(body: Record<string, unknown>): Promise<ModelSyncStatus | null> {\n const response = await fetch(MODEL_SYNC_PATH, {\n method: 'POST',\n headers: { 'content-type': 'application/json', accept: 'application/json' },\n body: JSON.stringify(body),\n })\n if (response.status === 503) return null\n if (!response.ok) throw new Error('model sync action failed with HTTP ' + String(response.status))\n return asStatus(await response.json())\n}\n","/** Same-origin workspace-limits calls from the DataOps settings surface. */\n\n/** Route the plugin's Host half serves for workspace limits. */\nexport const WORKSPACE_LIMITS_PATH = '/integrations/dataops/workspace-limits'\n\n/** The two byte ceilings, as the panel edits them. */\nexport interface WorkspaceLimits {\n /** Largest file a sidebar download or agent read may carry. */\n fileReadMaxBytes: number\n /** Largest file an upload may carry. */\n uploadMaxBytes: number\n}\n\n/** Limits as this workspace currently holds them. */\nexport interface WorkspaceLimitsStatus {\n limits: WorkspaceLimits\n canWrite: boolean\n readOnlyReason: string | null\n}\n\n/** Narrow a response body to the status, rejecting anything else. */\nfunction asStatus(value: unknown): WorkspaceLimitsStatus | null {\n if (typeof value !== 'object' || value === null || Array.isArray(value)) return null\n const record = value as Record<string, unknown>\n const limits = record.limits as Record<string, unknown> | undefined\n if (typeof limits !== 'object' || limits === null) return null\n const fileReadMaxBytes = limits.fileReadMaxBytes\n const uploadMaxBytes = limits.uploadMaxBytes\n if (typeof fileReadMaxBytes !== 'number' || typeof uploadMaxBytes !== 'number') return null\n return {\n limits: { fileReadMaxBytes, uploadMaxBytes },\n canWrite: record.canWrite === true,\n readOnlyReason: typeof record.readOnlyReason === 'string' ? record.readOnlyReason : null,\n }\n}\n\nfunction readJson(value: unknown): Record<string, unknown> | null {\n return typeof value === 'object' && value !== null && !Array.isArray(value)\n ? value as Record<string, unknown>\n : null\n}\n\n/**\n * A write DataOps refused, carrying the reason it gave.\n *\n * The message is written for the person who set the value, so the panel shows it as-is rather\n * than replacing it with a generic failure notice.\n */\nexport class WorkspaceLimitsRejection extends Error {\n constructor(message: string) {\n super(message)\n this.name = 'WorkspaceLimitsRejection'\n }\n}\n\n/** Read the reason from a refused response, falling back to the status line. */\nasync function refusalReason(response: Response, fallback: string): Promise<string> {\n try {\n const body = readJson(await response.json())\n const error = body?.error\n if (typeof error === 'string' && error.trim() !== '') return error\n } catch {\n // A body that is absent or not JSON leaves the fallback as the only explanation available.\n }\n return `${fallback} with HTTP ${String(response.status)}`\n}\n\n/**\n * Read the workspace limits the panel shows.\n * @returns The status, or null when the workspace is not connected to DataOps.\n */\nexport async function fetchWorkspaceLimits(): Promise<WorkspaceLimitsStatus | null> {\n const response = await fetch(WORKSPACE_LIMITS_PATH, { credentials: 'same-origin' })\n if (response.status === 503) return null\n if (!response.ok) throw new Error(`Workspace limits read failed with HTTP ${String(response.status)}`)\n return asStatus(await response.json())\n}\n\n/**\n * Store new workspace limits.\n * @param limits - The ceilings to store.\n * @returns The stored status.\n */\nexport async function saveWorkspaceLimits(limits: WorkspaceLimits): Promise<WorkspaceLimitsStatus | null> {\n const response = await fetch(WORKSPACE_LIMITS_PATH, {\n method: 'POST',\n credentials: 'same-origin',\n headers: { 'content-type': 'application/json' },\n body: JSON.stringify(limits),\n })\n if (response.status === 503) return null\n // A refusal names a value the user chose, so the card keeps that draft and shows the reason.\n if (response.status === 400) {\n throw new WorkspaceLimitsRejection(await refusalReason(response, 'Workspace limits write refused'))\n }\n if (!response.ok) throw new Error(await refusalReason(response, 'Workspace limits write failed'))\n const body = readJson(await response.json())\n return body === null ? null : asStatus(body)\n}","/** Same-origin tool-call timeout calls from the DataOps settings surface. */\n\n/** Route the plugin's Host half serves for the tool-call timeout. */\nexport const TOOL_TIMEOUT_PATH = '/integrations/dataops/tool-timeout'\n\n/** The two ends a timeout may take, in seconds, matching what the Host enforces. */\nexport const TOOL_TIMEOUT_MIN_SECONDS = 1\nexport const TOOL_TIMEOUT_MAX_SECONDS = 3600\n\n/** The timeout as this workspace currently holds it. */\nexport interface ToolTimeout {\n /** How long one tool call may run before it is abandoned. */\n toolCallTimeoutMs: number\n}\n\n/** Narrow a response body to the timeout, rejecting anything else. */\nfunction asTimeout(value: unknown): ToolTimeout | null {\n if (typeof value !== 'object' || value === null || Array.isArray(value)) return null\n const ms = (value as Record<string, unknown>).toolCallTimeoutMs\n return typeof ms === 'number' && Number.isSafeInteger(ms) && ms > 0 ? { toolCallTimeoutMs: ms } : null\n}\n\n/** Read the reason from a refused response, falling back to the status line. */\nasync function refusalReason(response: Response, fallback: string): Promise<string> {\n try {\n const body = await response.json() as unknown\n if (typeof body === 'object' && body !== null && !Array.isArray(body)) {\n const error = (body as Record<string, unknown>).error\n if (typeof error === 'string' && error.trim() !== '') return error\n }\n } catch {\n // A body that is absent or not JSON leaves the fallback as the only explanation available.\n }\n return fallback + ' with HTTP ' + String(response.status)\n}\n\n/**\n * Read the tool-call timeout the panel shows.\n * @returns The timeout, or null when the workspace is not connected.\n */\nexport async function fetchToolTimeout(): Promise<ToolTimeout | null> {\n const response = await fetch(TOOL_TIMEOUT_PATH, { credentials: 'same-origin' })\n if (response.status === 503) return null\n if (!response.ok) throw new Error('Tool timeout read failed with HTTP ' + String(response.status))\n return asTimeout(await response.json())\n}\n\n/**\n * Store a new tool-call timeout.\n * @param milliseconds - How long one tool call may run.\n * @returns The stored timeout, or null when the workspace is not connected.\n */\nexport async function saveToolTimeout(milliseconds: number): Promise<ToolTimeout | null> {\n const response = await fetch(TOOL_TIMEOUT_PATH, {\n method: 'POST',\n credentials: 'same-origin',\n headers: { 'content-type': 'application/json' },\n body: JSON.stringify({ toolCallTimeoutMs: milliseconds }),\n })\n if (response.status === 503) return null\n // A refusal names a value the user chose, so the card keeps that draft and shows the reason.\n if (response.status === 400) throw new Error(await refusalReason(response, 'Tool timeout write refused'))\n if (!response.ok) throw new Error(await refusalReason(response, 'Tool timeout write failed'))\n return asTimeout(await response.json())\n}\n","import { useCallback, useEffect, useId, useState, useSyncExternalStore } from 'react'\nimport { Button, SettingsValueField, StateDot, Switch } from '@deepseek-ai/dsh-client-ui-primitives'\nimport type { InjectFace } from '@deepseek-ai/dsh-client-ui-slots'\nimport type { en } from './locales.ts'\nimport { setWanxiangBrandEnabled, wanxiangBrandPreference } from './brand-store.ts'\nimport { fetchModelSyncStatus, postModelSyncAction } from './model-sync-client.ts'\nimport type { ModelSyncStatus } from './model-sync-client.ts'\nimport {\n WorkspaceLimitsRejection,\n fetchWorkspaceLimits,\n saveWorkspaceLimits,\n} from './workspace-limits-client.ts'\nimport type { WorkspaceLimits, WorkspaceLimitsStatus } from './workspace-limits-client.ts'\nimport {\n TOOL_TIMEOUT_MAX_SECONDS,\n TOOL_TIMEOUT_MIN_SECONDS,\n fetchToolTimeout,\n saveToolTimeout,\n} from './tool-timeout-client.ts'\nimport styles from './ManagedDataOpsSection.module.css'\n\n/** Values injected by the DSH Settings slot. */\nexport interface ManagedDataOpsSectionInjected {\n /** Translate one managed DataOps Settings message key. */\n t: (key: keyof typeof en) => string\n}\n\n/** Props accepted by the managed DataOps Settings section. */\nexport type ManagedDataOpsSectionProps = Partial<InjectFace<ManagedDataOpsSectionInjected>>\n\n/** The panel's unit, so a stored byte count survives a round trip through the input. */\nconst BYTES_PER_MIB = 1024 * 1024\n\n/** Render a byte ceiling as the whole MiB the input shows. */\nfunction toMib(bytes: number): string {\n return String(Math.round((bytes / BYTES_PER_MIB) * 100) / 100)\n}\n\n/** Parse a MiB draft into a byte ceiling, or null when it is not a positive count. */\nfunction toBytes(text: string): number | null {\n if (text.trim() === '') return null\n const mib = Number(text)\n if (!Number.isFinite(mib) || mib <= 0) return null\n const bytes = Math.round(mib * BYTES_PER_MIB)\n return Number.isSafeInteger(bytes) && bytes > 0 ? bytes : null\n}\n\n/** Format a stored publication time for the row, or nothing when it never published. */\nfunction publishedText(publishedAt: string): string | null {\n const at = new Date(publishedAt)\n return Number.isNaN(at.getTime()) ? null : at.toLocaleString()\n}\n\n/**\n * The DataOps settings this workspace owns: its connection state, its branding, its file ceilings,\n * and the default configuration it publishes to other workspaces.\n * @param props - Settings slot injection values.\n * @returns The localized managed DataOps section, or nothing before injection.\n */\nexport function ManagedDataOpsSection(props: ManagedDataOpsSectionProps) {\n const { t } = props\n const branding = useSyncExternalStore(\n wanxiangBrandPreference.subscribe,\n wanxiangBrandPreference.getSnapshot,\n wanxiangBrandPreference.getSnapshot,\n )\n if (t === undefined) return null\n\n return (\n <section className={styles.section}>\n <h2 className={styles.title}>{t('title')}</h2>\n <div className={styles.status}>\n <StateDot state=\"done\" />\n <span>{t('managed')}</span>\n </div>\n <BrandingRow t={t} enabled={branding.enabled} />\n <LimitsCard t={t} />\n <TimeoutCard t={t} />\n <DefaultsCard t={t} />\n </section>\n )\n}\n\n/** The branding toggle as one settings row. */\nfunction BrandingRow({ t, enabled }: { t: (key: keyof typeof en) => string; enabled: boolean }) {\n return (\n <div className={styles.card}>\n <div className={styles.row}>\n <span className={styles.label}>{t('brandingTitle')}</span>\n <Switch\n checked={enabled}\n label={t('brandingToggle')}\n onChange={(next) => { setWanxiangBrandEnabled(next) }}\n />\n </div>\n </div>\n )\n}\n\n/** What either card knows about its remote document. */\ntype LoadState<T> =\n | { kind: 'loading' }\n | { kind: 'unavailable' }\n | { kind: 'ready'; status: T }\n | { kind: 'failed' }\n\n/** The one row a card renders while it cannot offer its controls. */\nfunction UnavailableCard({ title, t, state }: {\n title: string\n t: (key: keyof typeof en) => string\n state: 'unavailable' | 'failed'\n}) {\n return (\n <section className={styles.card}>\n <h3 className={styles.heading}>{title}</h3>\n <div className={styles.status} role={state === 'failed' ? 'alert' : undefined}>\n <StateDot state={state === 'failed' ? 'error' : 'idle'} />\n <span>{state === 'failed' ? t('loadFailed') : t('unavailable')}</span>\n </div>\n </section>\n )\n}\n\n/**\n * The file ceilings DataOps enforces on this workspace.\n *\n * The values live in DataOps and are read through the plugin, which holds the JWT; the panel only\n * ever holds what the administrator is allowed to see.\n * @param props - Translate function from the section.\n * @returns The limits card.\n */\nfunction LimitsCard({ t }: { t: (key: keyof typeof en) => string }) {\n const [state, setState] = useState<LoadState<WorkspaceLimitsStatus>>({ kind: 'loading' })\n const [fileReadMib, setFileReadMib] = useState('')\n const [uploadMib, setUploadMib] = useState('')\n /** The ceilings the draft started from, so Save stays off until one of them changes. */\n const [saved, setSaved] = useState('')\n /** Why DataOps refused the last save, kept beside the draft it refused. */\n const [refusal, setRefusal] = useState<string | null>(null)\n const [busy, setBusy] = useState(false)\n const fileReadId = useId()\n const uploadId = useId()\n\n const apply = useCallback((status: WorkspaceLimitsStatus) => {\n setState({ kind: 'ready', status })\n const file = toMib(status.limits.fileReadMaxBytes)\n const upload = toMib(status.limits.uploadMaxBytes)\n setFileReadMib(file)\n setUploadMib(upload)\n setSaved(file + '|' + upload)\n setRefusal(null)\n }, [])\n\n const refresh = useCallback(async () => {\n try {\n const status = await fetchWorkspaceLimits()\n if (status === null) setState({ kind: 'unavailable' })\n else apply(status)\n } catch {\n setState({ kind: 'failed' })\n }\n }, [apply])\n\n useEffect(() => { void refresh() }, [refresh])\n\n const fileReadBytes = toBytes(fileReadMib)\n const uploadBytes = toBytes(uploadMib)\n const writable = state.kind === 'ready' && state.status.canWrite\n const dirty = fileReadMib + '|' + uploadMib !== saved\n const ready = fileReadBytes !== null && uploadBytes !== null && dirty\n\n /** Edit one ceiling, dropping a refusal that no longer describes what is in the field. */\n const edit = useCallback((set: (text: string) => void) => (text: string) => {\n set(text)\n setRefusal(null)\n }, [])\n\n const submit = useCallback(async () => {\n if (fileReadBytes === null || uploadBytes === null) return\n setBusy(true)\n setRefusal(null)\n try {\n const limits: WorkspaceLimits = { fileReadMaxBytes: fileReadBytes, uploadMaxBytes: uploadBytes }\n const status = await saveWorkspaceLimits(limits)\n if (status === null) setState({ kind: 'unavailable' })\n else apply(status)\n } catch (error) {\n // A refused value keeps the fields and the draft, so the user can correct it in place.\n // Anything else left the card unable to describe its own state, so it reports the read.\n if (error instanceof WorkspaceLimitsRejection) setRefusal(error.message)\n else setState({ kind: 'failed' })\n } finally {\n setBusy(false)\n }\n }, [fileReadBytes, uploadBytes, apply])\n\n if (state.kind === 'loading') return null\n if (state.kind !== 'ready') {\n return <UnavailableCard title={t('limitsTitle')} t={t} state={state.kind} />\n }\n\n const disabled = busy || !writable\n return (\n <section className={styles.card}>\n <h3 className={styles.heading}>{t('limitsTitle')}</h3>\n <div className={styles.fields}>\n <div>\n <SettingsValueField\n id={fileReadId}\n label={t('limitsFileReadLabel')}\n text={fileReadMib}\n numeric\n invalid={fileReadBytes === null}\n overridden={false}\n overriddenLabel=\"\"\n resetLabel=\"\"\n invalidLabel={t('limitsInvalid')}\n disabled={disabled}\n onEdit={edit(setFileReadMib)}\n onReset={() => undefined}\n />\n </div>\n <div>\n <SettingsValueField\n id={uploadId}\n label={t('limitsUploadLabel')}\n text={uploadMib}\n numeric\n invalid={uploadBytes === null}\n overridden={false}\n overriddenLabel=\"\"\n resetLabel=\"\"\n invalidLabel={t('limitsInvalid')}\n disabled={disabled}\n onEdit={edit(setUploadMib)}\n onReset={() => undefined}\n />\n </div>\n </div>\n <div className={styles.actions}>\n {refusal === null\n ? null\n : (\n <span className={styles.refusal} role=\"alert\">\n <StateDot state=\"error\" />\n <span>{refusal}</span>\n </span>\n )}\n <Button variant=\"primary\" size=\"sm\" disabled={disabled || !ready} onClick={() => { void submit() }}>\n {busy ? t('limitsSaving') : t('limitsSave')}\n </Button>\n </div>\n </section>\n )\n}\n\n/**\n * How long one tool call may run before it is abandoned.\n *\n * The value lives in this plugin's own configuration, so it is per workspace and survives a\n * restart. It is edited in seconds because that is the unit an operator reasons in; the plugin\n * stores milliseconds and converts on the way through.\n * @param props - Translate function from the section.\n * @returns The tool-call timeout card.\n */\nfunction TimeoutCard({ t }: { t: (key: keyof typeof en) => string }) {\n const [state, setState] = useState<LoadState<number>>({ kind: 'loading' })\n const [seconds, setSeconds] = useState('')\n /** The value the draft started from, so Save stays off until it changes. */\n const [saved, setSaved] = useState('')\n const [refusal, setRefusal] = useState<string | null>(null)\n const [busy, setBusy] = useState(false)\n const id = useId()\n\n const apply = useCallback((milliseconds: number) => {\n setState({ kind: 'ready', status: milliseconds })\n const text = String(Math.round(milliseconds / 1000))\n setSeconds(text)\n setSaved(text)\n setRefusal(null)\n }, [])\n\n const refresh = useCallback(async () => {\n try {\n const status = await fetchToolTimeout()\n if (status === null) setState({ kind: 'unavailable' })\n else apply(status.toolCallTimeoutMs)\n } catch {\n setState({ kind: 'failed' })\n }\n }, [apply])\n\n useEffect(() => { void refresh() }, [refresh])\n\n const parsed = Number(seconds)\n const valid = seconds.trim() !== '' && Number.isFinite(parsed)\n && parsed >= TOOL_TIMEOUT_MIN_SECONDS && parsed <= TOOL_TIMEOUT_MAX_SECONDS\n const dirty = seconds !== saved\n const disabled = busy\n\n const submit = useCallback(async () => {\n if (!valid) return\n setBusy(true)\n setRefusal(null)\n try {\n const status = await saveToolTimeout(Math.round(parsed * 1000))\n if (status === null) setState({ kind: 'unavailable' })\n else apply(status.toolCallTimeoutMs)\n } catch (error) {\n // A refused value keeps the field and the draft, so the user can correct it in place.\n if (error instanceof Error) setRefusal(error.message)\n else setState({ kind: 'failed' })\n } finally {\n setBusy(false)\n }\n }, [valid, parsed, apply])\n\n if (state.kind === 'loading') return null\n if (state.kind !== 'ready') {\n return <UnavailableCard title={t('timeoutTitle')} t={t} state={state.kind} />\n }\n\n return (\n <section className={styles.card}>\n <h3 className={styles.heading}>{t('timeoutTitle')}</h3>\n <div className={styles.fields}>\n <div>\n <SettingsValueField\n id={id}\n label={t('timeoutLabel')}\n text={seconds}\n numeric\n invalid={!valid}\n overridden={false}\n overriddenLabel=\"\"\n resetLabel=\"\"\n invalidLabel={t('timeoutInvalid')}\n disabled={disabled}\n onEdit={(text) => { setSeconds(text); setRefusal(null) }}\n onReset={() => undefined}\n />\n </div>\n </div>\n <div className={styles.actions}>\n {refusal === null\n ? null\n : (\n <span className={styles.refusal} role=\"alert\">\n <StateDot state=\"error\" />\n <span>{refusal}</span>\n </span>\n )}\n <Button\n variant=\"primary\"\n size=\"sm\"\n disabled={disabled || !valid || !dirty}\n onClick={() => { void submit() }}\n >\n {busy ? t('limitsSaving') : t('limitsSave')}\n </Button>\n </div>\n </section>\n )\n}\n\n/**\n * Publish this workspace's configuration as the default other users start from.\n\n * One action rather than a set of controls: the configuration is whatever this workspace already\n * holds, and the button copies it to DataOps.\n * @param props - Translate function from the section.\n * @returns The default-configuration card.\n */\nfunction DefaultsCard({ t }: { t: (key: keyof typeof en) => string }) {\n const [state, setState] = useState<LoadState<ModelSyncStatus>>({ kind: 'loading' })\n const [busy, setBusy] = useState(false)\n\n const refresh = useCallback(async () => {\n try {\n const status = await fetchModelSyncStatus()\n setState(status === null ? { kind: 'unavailable' } : { kind: 'ready', status })\n } catch {\n setState({ kind: 'failed' })\n }\n }, [])\n\n useEffect(() => { void refresh() }, [refresh])\n\n const publish = useCallback(async () => {\n setBusy(true)\n try {\n const status = await postModelSyncAction({ action: 'publish-defaults' })\n if (status === null) setState({ kind: 'unavailable' })\n else setState({ kind: 'ready', status })\n } catch {\n setState({ kind: 'failed' })\n } finally {\n setBusy(false)\n }\n }, [])\n\n if (state.kind === 'loading') return null\n if (state.kind !== 'ready') {\n return <UnavailableCard title={t('defaultsTitle')} t={t} state={state.kind} />\n }\n\n const published = state.status.publishedAt === null\n ? null\n : publishedText(state.status.publishedAt)\n\n // A viewer DataOps does not authorize to publish sees the state without the action, because the\n // permission rule lives in DataOps and the browser must not restate it.\n return (\n <section className={styles.card}>\n <div className={styles.row}>\n <div className={styles.copy}>\n <span className={styles.label}>{t('defaultsTitle')}</span>\n <span className={styles.meta}>\n {published === null\n ? t('defaultsNeverPublished')\n : t('defaultsPublishedAt') + ' · ' + published}\n </span>\n </div>\n {state.status.canPublish\n ? (\n <Button variant=\"outline\" size=\"sm\" disabled={busy} onClick={() => { void publish() }}>\n {busy ? t('defaultsPublishing') : t('defaultsPublish')}\n </Button>\n )\n : <span className={styles.meta}>{t('defaultsNotAdmin')}</span>}\n </div>\n </section>\n )\n}\n","/** Same-origin skill plaza calls from the DataOps skill center section. */\n\n/** Route the plugin's Host half serves for the plaza. */\nexport const SKILL_PLAZA_PATH = '/integrations/dataops/skill-plaza'\n\n/** One plaza entry as the section reads it. */\nexport interface PlazaSkill {\n id: number\n name: string\n description?: string\n instruction: string\n tags: string[]\n sharedByMe: boolean\n updatedAt: string\n}\n\n/** The plaza listing and the tags in use. */\nexport interface PlazaListing {\n skills: PlazaSkill[]\n tags: string[]\n}\n\n/** Narrow an unknown value to a plaza entry. */\nfunction asSkill(value: unknown): PlazaSkill | null {\n if (typeof value !== 'object' || value === null || Array.isArray(value)) return null\n const row = value as Record<string, unknown>\n if (typeof row.id !== 'number' || typeof row.name !== 'string') return null\n return {\n id: row.id,\n name: row.name,\n description: typeof row.description === 'string' ? row.description : undefined,\n instruction: typeof row.instruction === 'string' ? row.instruction : '',\n tags: Array.isArray(row.tags) ? row.tags.filter((tag): tag is string => typeof tag === 'string') : [],\n sharedByMe: row.sharedByMe === true,\n updatedAt: typeof row.updatedAt === 'string' ? row.updatedAt : '',\n }\n}\n\n/** Narrow an unknown value to the listing. */\nfunction asListing(value: unknown): PlazaListing | null {\n if (typeof value !== 'object' || value === null || Array.isArray(value)) return null\n const row = value as Record<string, unknown>\n const skills = Array.isArray(row.skills) ? row.skills.flatMap((entry) => asSkill(entry) ?? []) : []\n const tags = Array.isArray(row.tags) ? row.tags.filter((tag): tag is string => typeof tag === 'string') : []\n return { skills, tags }\n}\n\n/**\n * Read the plaza.\n * @param filter - Optional tag and text filters.\n * @returns The listing, or null when this workspace is not connected to DataOps.\n */\nexport async function fetchPlaza(filter: { tag?: string; query?: string } = {}): Promise<PlazaListing | null> {\n const params = new URLSearchParams()\n if (filter.tag !== undefined && filter.tag !== '') params.set('tag', filter.tag)\n if (filter.query !== undefined && filter.query !== '') params.set('q', filter.query)\n const suffix = params.size === 0 ? '' : '?' + params.toString()\n const response = await fetch(SKILL_PLAZA_PATH + suffix, { headers: { accept: 'application/json' } })\n if (response.status === 503) return null\n if (!response.ok) throw new Error('skill plaza read failed with HTTP ' + String(response.status))\n return asListing(await response.json())\n}\n\n/**\n * Change the plaza.\n * @param body - Action and its parameters.\n * @returns The parsed reply, or null when the plugin is not active.\n */\nexport async function postPlazaAction(body: Record<string, unknown>): Promise<unknown> {\n const response = await fetch(SKILL_PLAZA_PATH, {\n method: 'POST',\n headers: { 'content-type': 'application/json', accept: 'application/json' },\n body: JSON.stringify(body),\n })\n if (response.status === 503) return null\n if (!response.ok) throw new Error('skill plaza action failed with HTTP ' + String(response.status))\n return await response.json()\n}\n","import { useCallback, useEffect, useState } from 'react'\nimport type { ReactNode } from 'react'\nimport {\n Button,\n IconDownloadOutlineRegular,\n IconRefreshOutlineRegular,\n IconShareOutlineRegular,\n IconSkillOutlineRegular,\n IconSparkleRegular,\n IconTrashOutlineRegular,\n Pill,\n Tag,\n} from '@deepseek-ai/dsh-client-ui-primitives'\nimport type { InjectFace } from '@deepseek-ai/dsh-client-ui-slots'\nimport type { en } from './locales.ts'\nimport { fetchPlaza, postPlazaAction, type PlazaListing, type PlazaSkill } from './skill-plaza-client.ts'\nimport styles from './SkillPlazaSection.module.css'\n\n/** Values the skill center passes to a contributed section. */\nexport interface SkillPlazaSectionInjected {\n /** Translate one DataOps plaza message key. */\n t: (key: keyof typeof en) => string\n}\n\n/** Props accepted by the plaza section. */\nexport type SkillPlazaSectionProps = Partial<InjectFace<SkillPlazaSectionInjected>>\n\n/** What the section currently knows. */\ntype PlazaState =\n | { kind: 'loading' }\n | { kind: 'unavailable' }\n | { kind: 'ready'; listing: PlazaListing }\n | { kind: 'failed' }\n\n/**\n * One plaza row, laid out like the skill center's own rows so the section reads as part of the\n * page rather than a panel bolted onto it.\n * @param props - the row's skill, its actions, and the dictionary resolver.\n * @returns the rendered row.\n */\nfunction PlazaRow({ skill, busy, onInstall, onUnshare, t }: {\n skill: PlazaSkill\n busy: boolean\n onInstall: () => void\n onUnshare: () => void\n t: (key: keyof typeof en) => string\n}): ReactNode {\n return (\n <li className={styles.card}>\n <div className={styles.cardHead}>\n <span className={styles.cardIcon}><IconSkillOutlineRegular size={22} /></span>\n <div className={styles.cardMain}>\n <div className={styles.cardTitle}>\n {skill.name}\n {skill.sharedByMe ? <Tag tone=\"info\" className={styles.mine}>{t('plazaMine')}</Tag> : null}\n </div>\n {skill.description === undefined ? null : (\n <div className={styles.cardDesc}>{skill.description}</div>\n )}\n {skill.tags.length === 0 ? null : (\n <div className={styles.cardMarks}>\n {skill.tags.map((item) => <Tag tone=\"quiet\" key={item}>{item}</Tag>)}\n </div>\n )}\n </div>\n <div className={styles.cardEnd}>\n <Button\n variant=\"outline\"\n size=\"sm\"\n icon={<IconDownloadOutlineRegular size={16} />}\n disabled={busy}\n onClick={onInstall}\n >\n {t('plazaInstall')}\n </Button>\n {skill.sharedByMe ? (\n <Button\n variant=\"ghost\"\n size=\"sm\"\n icon={<IconTrashOutlineRegular size={16} />}\n disabled={busy}\n onClick={onUnshare}\n >\n {t('plazaUnshare')}\n </Button>\n ) : null}\n </div>\n </div>\n </li>\n )\n}\n\n/**\n * Browse, share, and install skills other users published.\n *\n * The section appears only where this plugin is installed: the skill center renders the slot,\n * and an empty slot renders nothing. Every action goes through this plugin's Host route, so a\n * workspace without DataOps never reaches these calls.\n * @param props - Skill center injection values.\n * @returns The plaza section, or nothing before injection.\n */\nexport function SkillPlazaSection(props: SkillPlazaSectionProps): ReactNode {\n const { t } = props\n const [state, setState] = useState<PlazaState>({ kind: 'loading' })\n const [tag, setTag] = useState('')\n const [query, setQuery] = useState('')\n const [busy, setBusy] = useState(false)\n const [notice, setNotice] = useState<string | null>(null)\n\n const load = useCallback(async (filter: { tag?: string; query?: string }) => {\n try {\n const listing = await fetchPlaza(filter)\n setState(listing === null ? { kind: 'unavailable' } : { kind: 'ready', listing })\n } catch {\n setState({ kind: 'failed' })\n }\n }, [])\n\n useEffect(() => { void load({}) }, [load])\n\n const refresh = useCallback(async (nextTag = tag, nextQuery = query) => {\n await load({ tag: nextTag, query: nextQuery })\n }, [load, tag, query])\n\n const act = useCallback(async (body: Record<string, unknown>, message: string) => {\n setBusy(true)\n setNotice(null)\n try {\n await postPlazaAction(body)\n setNotice(message)\n await refresh()\n } catch {\n setNotice(t === undefined ? null : t('plazaActionFailed'))\n } finally {\n setBusy(false)\n }\n }, [refresh, t])\n\n if (t === undefined) return null\n if (state.kind === 'loading') return null\n\n // The section names itself once; the states below swap only what sits under the heading.\n const head = (\n <div className={styles.head}>\n <h2 className={styles.title}>\n <span className={styles.titleIcon}><IconSparkleRegular size={18} /></span>\n {t('plazaTitle')}\n </h2>\n <p className={styles.intro}>{t('plazaIntro')}</p>\n </div>\n )\n\n if (state.kind === 'unavailable') {\n return <section className={styles.section}>{head}<p className={styles.intro}>{t('plazaUnavailable')}</p></section>\n }\n if (state.kind === 'failed') {\n return (\n <section className={styles.section}>\n {head}\n <div className={styles.empty} role=\"alert\">\n <span className={styles.emptyIcon}><IconSkillOutlineRegular size={28} /></span>\n <p className={styles.emptyText}>{t('plazaLoadFailed')}</p>\n <Button variant=\"outline\" size=\"sm\" icon={<IconRefreshOutlineRegular size={16} />} onClick={() => { void refresh() }}>\n {t('plazaRetry')}\n </Button>\n </div>\n </section>\n )\n }\n\n const { listing } = state\n return (\n <section className={styles.section}>\n {head}\n\n <div className={styles.toolbar}>\n <input\n className={styles.search}\n placeholder={t('plazaSearch')}\n value={query}\n onChange={(event) => {\n const next = event.target.value\n setQuery(next)\n void refresh(tag, next)\n }}\n />\n </div>\n\n {listing.tags.length === 0 ? null : (\n <div className={styles.tagBar}>\n <Pill active={tag === ''} onClick={() => { setTag(''); void refresh('', query) }}>{t('plazaAllTags')}</Pill>\n {listing.tags.map((item) => (\n <Pill key={item} active={tag === item} onClick={() => { setTag(item); void refresh(item, query) }}>\n {item}\n </Pill>\n ))}\n </div>\n )}\n\n {notice === null ? null : <p className={styles.notice}>{notice}</p>}\n\n {listing.skills.length === 0 ? (\n <div className={styles.empty}>\n <span className={styles.emptyIcon}><IconShareOutlineRegular size={28} /></span>\n <p className={styles.emptyText}>{t('plazaEmpty')}</p>\n </div>\n ) : null}\n\n <ul className={styles.cards}>\n {listing.skills.map((skill) => (\n <PlazaRow\n key={skill.id}\n skill={skill}\n busy={busy}\n t={t}\n onInstall={() => { void act({ action: 'install', id: skill.id }, t('plazaInstalled')) }}\n onUnshare={() => { void act({ action: 'unshare', id: skill.id }, t('plazaUnshared')) }}\n />\n ))}\n </ul>\n </section>\n )\n}\n\n/** Re-exported so the registration site reads the route from one place. */\nexport { SKILL_PLAZA_PATH } from './skill-plaza-client.ts'\n","import type { CSSProperties } from 'react'\nimport css from './WanxiangBrand.module.css'\n\nconst WORDMARK_VIEWBOX = \"1.64 115.64 5927.36 933.38\"\nconst WORDMARK_RATIO = 5927.36 / 933.38\nconst WORDMARK_PATHS = [\n {\n \"d\": \"M62 765V691H333C326 434 312 123 34 -24C53 -38 77 -62 89 -82C287 28 361 217 390 414H767C752 147 735 37 705 9C693 -2 681 -4 657 -3C631 -3 558 -3 483 4C498 -17 508 -48 509 -70C578 -74 648 -75 686 -72C724 -70 749 -62 772 -36C811 5 829 126 846 450C847 460 847 487 847 487H399C406 556 409 625 411 691H939V765Z\",\n \"transform\": \"translate(0.00 940.00) scale(0.96000 -0.94000)\"\n },\n {\n \"d\": \"M546 474H850V300H546ZM546 542V710H850V542ZM546 231H850V57H546ZM473 781V-73H546V-12H850V-70H926V781ZM214 840V626H52V554H205C170 416 99 258 29 175C41 157 60 127 68 107C122 176 175 287 214 402V-79H287V378C325 329 370 267 389 234L435 295C413 322 322 429 287 464V554H430V626H287V840Z\",\n \"transform\": \"translate(1002.00 940.00) scale(0.96000 -0.94000)\"\n },\n {\n \"d\": \"M443 821C425 782 393 723 368 688L417 664C443 697 477 747 506 793ZM88 793C114 751 141 696 150 661L207 686C198 722 171 776 143 815ZM410 260C387 208 355 164 317 126C279 145 240 164 203 180C217 204 233 231 247 260ZM110 153C159 134 214 109 264 83C200 37 123 5 41 -14C54 -28 70 -54 77 -72C169 -47 254 -8 326 50C359 30 389 11 412 -6L460 43C437 59 408 77 375 95C428 152 470 222 495 309L454 326L442 323H278L300 375L233 387C226 367 216 345 206 323H70V260H175C154 220 131 183 110 153ZM257 841V654H50V592H234C186 527 109 465 39 435C54 421 71 395 80 378C141 411 207 467 257 526V404H327V540C375 505 436 458 461 435L503 489C479 506 391 562 342 592H531V654H327V841ZM629 832C604 656 559 488 481 383C497 373 526 349 538 337C564 374 586 418 606 467C628 369 657 278 694 199C638 104 560 31 451 -22C465 -37 486 -67 493 -83C595 -28 672 41 731 129C781 44 843 -24 921 -71C933 -52 955 -26 972 -12C888 33 822 106 771 198C824 301 858 426 880 576H948V646H663C677 702 689 761 698 821ZM809 576C793 461 769 361 733 276C695 366 667 468 648 576Z\",\n \"transform\": \"translate(2004.00 940.00) scale(0.96000 -0.94000)\"\n },\n {\n \"d\": \"M484 238V-81H550V-40H858V-77H927V238H734V362H958V427H734V537H923V796H395V494C395 335 386 117 282 -37C299 -45 330 -67 344 -79C427 43 455 213 464 362H663V238ZM468 731H851V603H468ZM468 537H663V427H467L468 494ZM550 22V174H858V22ZM167 839V638H42V568H167V349C115 333 67 319 29 309L49 235L167 273V14C167 0 162 -4 150 -4C138 -5 99 -5 56 -4C65 -24 75 -55 77 -73C140 -74 179 -71 203 -59C228 -48 237 -27 237 14V296L352 334L341 403L237 370V568H350V638H237V839Z\",\n \"transform\": \"translate(3006.00 940.00) scale(0.96000 -0.94000)\"\n },\n {\n \"d\": \"M174 630C213 556 252 459 266 399L337 424C323 482 282 578 242 650ZM755 655C730 582 684 480 646 417L711 396C750 456 797 552 834 633ZM52 348V273H459V-79H537V273H949V348H537V698H893V773H105V698H459V348Z\",\n \"transform\": \"translate(4008.00 940.00) scale(0.96000 -0.94000)\"\n },\n {\n \"d\": \"M179 342V-79H255V-25H741V-77H821V342ZM255 48V270H741V48ZM126 426C165 441 224 443 800 474C825 443 846 414 861 388L925 434C873 518 756 641 658 727L599 687C647 644 699 591 745 540L231 516C320 598 410 701 490 811L415 844C336 720 219 593 183 559C149 526 124 505 101 500C110 480 122 442 126 426Z\",\n \"transform\": \"translate(5010.00 940.00) scale(0.96000 -0.94000)\"\n }\n] as const\nconst HARNESS_PATHS = [\n {\n \"d\": \"M132.848 8.93205H134.08V16.137H132.848V8.93205ZM136.5 8.93205H137.732V16.137H136.5V8.93205ZM133.365 13.024V11.99H137.193V13.024H133.365Z\",\n \"fill\": \"var(--dsw-alias-label-primary-inverted)\"\n },\n {\n \"d\": \"M140.397 14.432L140.672 13.453H143.202L143.532 14.432H140.397ZM140.287 16.137H139.055L141.277 8.93205H142.201L142.146 9.74605L140.947 13.915H140.969L140.287 16.137ZM145.039 16.137H143.741L143.07 13.948L143.081 13.937L141.871 9.74605L141.926 8.93205H142.817L145.039 16.137Z\",\n \"fill\": \"var(--dsw-alias-label-primary-inverted)\"\n },\n {\n \"d\": \"M146.846 8.93205H149.068C149.852 8.93205 150.443 9.11538 150.839 9.48205C151.235 9.84138 151.433 10.3327 151.433 10.956C151.433 11.22 151.396 11.4657 151.323 11.693C151.249 11.9204 151.125 12.1257 150.949 12.309C150.773 12.4924 150.531 12.65 150.223 12.782C149.922 12.9067 149.541 13.0057 149.079 13.079V13.321H146.846V12.639L148.023 12.485C148.631 12.4044 149.09 12.298 149.398 12.166C149.706 12.034 149.915 11.8764 150.025 11.693C150.135 11.5024 150.19 11.2934 150.19 11.066C150.19 10.6994 150.083 10.417 149.871 10.219C149.658 10.021 149.324 9.92205 148.87 9.92205H146.846V8.93205ZM146.395 8.93205H147.627V16.137H146.395V8.93205ZM151.917 16.093V16.137H150.366L149.024 14.322C148.87 14.1094 148.73 13.9407 148.606 13.816C148.481 13.684 148.345 13.5887 148.199 13.53C148.052 13.464 147.872 13.42 147.66 13.398C147.447 13.3687 147.176 13.3504 146.846 13.343V13.145H149.079C149.233 13.211 149.368 13.2844 149.486 13.365C149.61 13.4457 149.735 13.5447 149.86 13.662C149.992 13.7794 150.138 13.937 150.3 14.135L151.917 16.093Z\",\n \"fill\": \"var(--dsw-alias-label-primary-inverted)\"\n },\n {\n \"d\": \"M153.58 9.57005L153.591 8.93205H154.46L157.584 15.51V16.137H156.704L153.58 9.57005ZM158.024 16.137H156.968L156.88 8.93205H158.024V16.137ZM154.24 16.137H153.096V8.93205H154.152L154.24 16.137Z\",\n \"fill\": \"var(--dsw-alias-label-primary-inverted)\"\n },\n {\n \"d\": \"M159.963 8.93205H161.206V16.137H159.963V8.93205ZM160.095 9.96605V8.93205H164.858V9.96605H160.095ZM160.095 16.137V15.103H164.902V16.137H160.095ZM160.095 13.013V11.99H164.374V13.013H160.095Z\",\n \"fill\": \"var(--dsw-alias-label-primary-inverted)\"\n },\n {\n \"d\": \"M169.052 15.257C169.543 15.257 169.895 15.1654 170.108 14.982C170.328 14.7987 170.438 14.5457 170.438 14.223C170.438 14.047 170.405 13.8967 170.339 13.772C170.273 13.6474 170.152 13.5337 169.976 13.431C169.807 13.321 169.558 13.2147 169.228 13.112L168.491 12.881C167.846 12.6757 167.38 12.4044 167.094 12.067C166.808 11.7297 166.665 11.3007 166.665 10.78C166.665 10.428 166.76 10.1017 166.951 9.80105C167.142 9.50038 167.428 9.25838 167.809 9.07505C168.19 8.89172 168.663 8.80005 169.228 8.80005C169.631 8.80005 169.998 8.82938 170.328 8.88805C170.665 8.93938 171.039 9.01638 171.45 9.11905L171.274 10.175C170.834 10.0504 170.442 9.96238 170.097 9.91105C169.76 9.85238 169.463 9.82305 169.206 9.82305C168.737 9.82305 168.403 9.90738 168.205 10.076C168.007 10.2374 167.908 10.439 167.908 10.681C167.908 10.857 167.941 11.0147 168.007 11.154C168.073 11.286 168.19 11.407 168.359 11.517C168.535 11.627 168.784 11.7334 169.107 11.836L169.866 12.078C170.526 12.276 170.995 12.5327 171.274 12.848C171.553 13.156 171.692 13.585 171.692 14.135C171.692 14.5604 171.589 14.9344 171.384 15.257C171.179 15.5797 170.878 15.8327 170.482 16.016C170.093 16.1994 169.609 16.291 169.03 16.291C168.627 16.291 168.212 16.247 167.787 16.159C167.362 16.071 166.9 15.9427 166.401 15.774L166.665 14.718C167.156 14.894 167.6 15.0297 167.996 15.125C168.399 15.213 168.751 15.257 169.052 15.257Z\",\n \"fill\": \"var(--dsw-alias-label-primary-inverted)\"\n },\n {\n \"d\": \"M175.809 15.257C176.3 15.257 176.652 15.1654 176.865 14.982C177.085 14.7987 177.195 14.5457 177.195 14.223C177.195 14.047 177.162 13.8967 177.096 13.772C177.03 13.6474 176.909 13.5337 176.733 13.431C176.564 13.321 176.315 13.2147 175.985 13.112L175.248 12.881C174.603 12.6757 174.137 12.4044 173.851 12.067C173.565 11.7297 173.422 11.3007 173.422 10.78C173.422 10.428 173.517 10.1017 173.708 9.80105C173.899 9.50038 174.185 9.25838 174.566 9.07505C174.947 8.89172 175.42 8.80005 175.985 8.80005C176.388 8.80005 176.755 8.82938 177.085 8.88805C177.422 8.93938 177.796 9.01638 178.207 9.11905L178.031 10.175C177.591 10.0504 177.199 9.96238 176.854 9.91105C176.517 9.85238 176.22 9.82305 175.963 9.82305C175.494 9.82305 175.16 9.90738 174.962 10.076C174.764 10.2374 174.665 10.439 174.665 10.681C174.665 10.857 174.698 11.0147 174.764 11.154C174.83 11.286 174.947 11.407 175.116 11.517C175.292 11.627 175.541 11.7334 175.864 11.836L176.623 12.078C177.283 12.276 177.752 12.5327 178.031 12.848C178.31 13.156 178.449 13.585 178.449 14.135C178.449 14.5604 178.346 14.9344 178.141 15.257C177.936 15.5797 177.635 15.8327 177.239 16.016C176.85 16.1994 176.366 16.291 175.787 16.291C175.384 16.291 174.969 16.247 174.544 16.159C174.119 16.071 173.657 15.9427 173.158 15.774L173.422 14.718C173.913 14.894 174.357 15.0297 174.753 15.125C175.156 15.213 175.508 15.257 175.809 15.257Z\",\n \"fill\": \"var(--dsw-alias-label-primary-inverted)\"\n }\n] as const\n\ninterface MarkProps {\n size: number\n className?: string | undefined\n}\n\nfunction classes(...values: Array<string | undefined>): string {\n return values.filter(Boolean).join(' ')\n}\n\nfunction Cube({ transform, className }: { transform: string; className: string }) {\n return (\n <g transform={transform}>\n <g className={className} stroke=\"currentColor\" strokeWidth=\"1.7\" strokeLinejoin=\"round\">\n <path d=\"M12 0 24 7 12 14 0 7 12 0Z\" fill=\"none\" />\n <path d=\"M0 7 12 14v16L0 23V7Z\" fill=\"currentColor\" />\n <path d=\"M12 14 24 7v16L12 30V14Z\" fill=\"currentColor\" fillOpacity=\".18\" />\n </g>\n </g>\n )\n}\n\n/** Four linked data units; its ink follows the host surface through currentColor. */\nexport function WanxiangMark({ size, className, animated = false }: MarkProps & { animated?: boolean }) {\n return (\n <svg\n width={size}\n height={(size * 58) / 54}\n className={classes(css.mark, animated ? css.animatedMark : undefined, className)}\n viewBox=\"0 0 54 58\"\n fill=\"none\"\n aria-hidden=\"true\"\n >\n <Cube className={css.unitTop} transform=\"translate(15 0)\" />\n <Cube className={css.unitLeft} transform=\"translate(0 16)\" />\n <Cube className={css.unitRight} transform=\"translate(30 16)\" />\n <Cube className={css.unitCore} transform=\"translate(15 27)\" />\n </svg>\n )\n}\n\n/** Approved rounded-Heiti artwork, stored as paths with no runtime font dependency. */\nexport function WanxiangWordmark({ height, accessible = false, className }: {\n height: number\n accessible?: boolean\n className?: string | undefined\n}) {\n const accessibility = accessible\n ? { role: 'img', 'aria-label': '万相数据平台' }\n : { 'aria-hidden': true }\n return (\n <svg\n width={height * WORDMARK_RATIO}\n height={height}\n className={className}\n viewBox={WORDMARK_VIEWBOX}\n {...accessibility}\n >\n <g\n fill=\"currentColor\"\n stroke=\"currentColor\"\n strokeWidth=\"42\"\n strokeLinejoin=\"round\"\n strokeLinecap=\"round\"\n paintOrder=\"stroke fill\"\n >\n {WORDMARK_PATHS.map(path => <path key={path.transform} d={path.d} transform={path.transform} />)}\n </g>\n </svg>\n )\n}\n\n/** Exact HARNESS badge artwork extracted from the current DSH BrandWordmark. */\nexport function HarnessBadge({ height = 14 }: { height?: number }) {\n const style = { '--dsw-alias-label-primary-inverted': 'var(--dsw-alias-bg-base)' } as CSSProperties\n return (\n <svg\n width={(height * 53) / 15.5}\n height={height}\n className={css.harness}\n viewBox=\"129 5 53 15.5\"\n style={style}\n aria-hidden=\"true\"\n >\n <rect x=\"129.348\" y=\"5.5\" width=\"52\" height=\"14\" rx=\"2\" fill=\"currentColor\" />\n {HARNESS_PATHS.map((path, index) => <path key={index} d={path.d} fill={path.fill} />)}\n </svg>\n )\n}\n\n/** Expanded-sidebar brand name plus the unchanged official HARNESS badge. */\nexport function WanxiangSidebarName() {\n return <span className={css.sidebarName}><WanxiangWordmark height={16} /><HarnessBadge height={14} /></span>\n}\n\n/** Welcome-page logo with four-unit hover motion. */\nexport function WanxiangHeroMark({ size, className }: MarkProps) {\n return <WanxiangMark size={size} className={className} animated />\n}\n","import type { Context as ClientContext } from '@deepseek-ai/cordis'\nimport type {} from '@deepseek-ai/dsh-client-ui-conversation/client'\nimport type {} from '@deepseek-ai/dsh-client-ui-renderer/client'\nimport type {} from '@deepseek-ai/dsh-client-ui-sidebar/client'\nimport { wanxiangBrandPreference } from './brand-store.ts'\nimport {\n WanxiangHeroMark,\n WanxiangMark,\n WanxiangSidebarName,\n} from './WanxiangBrand.tsx'\n\nconst BRAND_TITLE = '万相数据平台 Harness'\nconst SLOT_PRIORITY = -100\nconst FAVICON_ID = 'dataops-wanxiang-favicon'\nconst FAVICON_SVG = `<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 54 58\"><style>:root{color:#1b1b1d}@media(prefers-color-scheme:dark){:root{color:#f7f7f8}}</style><g transform=\"translate(15 0)\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linejoin=\"round\"><path d=\"M12 0 24 7 12 14 0 7Z\" fill=\"none\"/><path d=\"M0 7 12 14v16L0 23Z\" fill=\"currentColor\"/><path d=\"M12 14 24 7v16L12 30Z\" fill=\"currentColor\" fill-opacity=\".18\"/></g><g transform=\"translate(0 16)\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linejoin=\"round\"><path d=\"M12 0 24 7 12 14 0 7Z\" fill=\"none\"/><path d=\"M0 7 12 14v16L0 23Z\" fill=\"currentColor\"/><path d=\"M12 14 24 7v16L12 30Z\" fill=\"currentColor\" fill-opacity=\".18\"/></g><g transform=\"translate(30 16)\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linejoin=\"round\"><path d=\"M12 0 24 7 12 14 0 7Z\" fill=\"none\"/><path d=\"M0 7 12 14v16L0 23Z\" fill=\"currentColor\"/><path d=\"M12 14 24 7v16L12 30Z\" fill=\"currentColor\" fill-opacity=\".18\"/></g><g transform=\"translate(15 27)\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linejoin=\"round\"><path d=\"M12 0 24 7 12 14 0 7Z\" fill=\"none\"/><path d=\"M0 7 12 14v16L0 23Z\" fill=\"currentColor\"/><path d=\"M12 14 24 7v16L12 30Z\" fill=\"currentColor\" fill-opacity=\".18\"/></g></svg>`\n\n\nfunction registerWanxiangSlots(ctx: ClientContext): () => void {\n return ctx.slots.inject('sidebar.brand.mark', () =>\n ctx.slots.inject('sidebar.brand.name', () =>\n ctx.slots.inject('conversation.hero.brand.mark', function* () {\n yield ctx.slots.register({\n name: 'sidebar.brand.mark',\n priority: SLOT_PRIORITY,\n registrant: 'dataops-managed',\n }, WanxiangMark)\n yield ctx.slots.register({\n name: 'sidebar.brand.name',\n priority: SLOT_PRIORITY,\n registrant: 'dataops-managed',\n }, WanxiangSidebarName)\n yield ctx.slots.register({\n name: 'conversation.hero.brand.mark',\n priority: SLOT_PRIORITY,\n registrant: 'dataops-managed',\n }, WanxiangHeroMark)\n })))\n}\n\nfunction installFavicon(): HTMLLinkElement {\n const existing = document.getElementById(FAVICON_ID)\n if (existing instanceof HTMLLinkElement) return existing\n const link = document.createElement('link')\n link.id = FAVICON_ID\n link.rel = 'icon'\n link.type = 'image/svg+xml'\n link.href = `data:image/svg+xml,${encodeURIComponent(FAVICON_SVG)}`\n document.head.append(link)\n return link\n}\n\n/** Keep shell slots, browser title, and favicon on the same persisted preference. */\nexport function installWanxiangBranding(ctx: ClientContext): void {\n const originalTitle = document.title\n let disposeSlots: (() => void) | undefined\n let favicon: HTMLLinkElement | undefined\n let titleObserver: MutationObserver | undefined\n\n const stopTitleObserver = (): void => {\n titleObserver?.disconnect()\n titleObserver = undefined\n }\n const keepBrandTitle = (): void => {\n if (document.title !== BRAND_TITLE) document.title = BRAND_TITLE\n if (titleObserver !== undefined) return\n titleObserver = new MutationObserver(() => {\n if (wanxiangBrandPreference.getSnapshot().enabled && document.title !== BRAND_TITLE) {\n document.title = BRAND_TITLE\n }\n })\n titleObserver.observe(document.head, { childList: true, subtree: true, characterData: true })\n }\n\n const synchronize = (): void => {\n const enabled = wanxiangBrandPreference.getSnapshot().enabled\n if (enabled) {\n disposeSlots ??= registerWanxiangSlots(ctx)\n favicon ??= installFavicon()\n keepBrandTitle()\n document.documentElement.dataset.dataopsBrand = 'wanxiang'\n return\n }\n disposeSlots?.()\n disposeSlots = undefined\n favicon?.remove()\n favicon = undefined\n stopTitleObserver()\n document.title = originalTitle\n delete document.documentElement.dataset.dataopsBrand\n }\n\n ctx.effect(() => {\n synchronize()\n const unsubscribe = wanxiangBrandPreference.subscribe(synchronize)\n return () => {\n unsubscribe()\n disposeSlots?.()\n favicon?.remove()\n stopTitleObserver()\n document.title = originalTitle\n delete document.documentElement.dataset.dataopsBrand\n }\n }, 'dataops-managed: Wanxiang shell branding')\n}\n","/** English managed DataOps Settings copy. */\nexport const en = {\n nav: 'DataOps',\n title: 'DataOps',\n managed: 'Connected to DataOps',\n unavailable: 'DataOps is not connected.',\n loadFailed: 'Loading failed. Try again.',\n brandingTitle: 'Wanxiang branding',\n brandingToggle: 'Wanxiang branding',\n limitsTitle: 'File size limits',\n limitsFileReadLabel: 'Largest file to read (MiB)',\n limitsUploadLabel: 'Largest file to upload (MiB)',\n limitsInvalid: 'Enter a size in MiB.',\n limitsSave: 'Save',\n limitsSaving: 'Saving…',\n timeoutTitle: 'DataOps query timeout',\n timeoutLabel: 'Longest single query (seconds)',\n timeoutInvalid: 'Enter 1 to 3600 seconds.',\n defaultsTitle: 'Default configuration',\n defaultsPublish: 'Publish',\n defaultsPublishing: 'Publishing…',\n defaultsPublishedAt: 'Last published',\n defaultsNeverPublished: 'Not published yet',\n defaultsNotAdmin: 'Administrators only',\n plazaTitle: 'Skill plaza',\n plazaIntro: 'Skills other users shared. Install one to use it in this workspace, or share a skill of your own.',\n plazaSearch: 'Search skills',\n plazaTagFilter: 'Filter by tag',\n plazaAllTags: 'All tags',\n plazaMine: 'Shared by me',\n plazaInstall: 'Install',\n plazaInstalled: 'Installed. It is now in your skill list.',\n plazaUnshare: 'Stop sharing',\n plazaUnshared: 'Removed from the plaza. Users who installed it keep their copy.',\n plazaEmpty: 'No skills have been shared yet.',\n plazaUnavailable: 'The skill plaza is available once this workspace is connected to DataOps.',\n plazaLoadFailed: 'The skill plaza could not be loaded. Try again.',\n plazaActionFailed: 'The action could not be completed. Try again.',\n plazaRetry: 'Try again',\n plazaRefresh: 'Refresh',\n} as const\n\n/** Stable key set shared by every managed DataOps locale. */\nexport type ManagedDataOpsKey = keyof typeof en\n\n/** Chinese managed DataOps Settings copy. */\nexport const zh: Record<ManagedDataOpsKey, string> = {\n nav: 'DataOps',\n title: 'DataOps',\n managed: '已连接 DataOps',\n unavailable: '未连接 DataOps。',\n loadFailed: '加载失败,请重试。',\n brandingTitle: '应用万相品牌',\n brandingToggle: '应用万相品牌',\n limitsTitle: '文件大小限制',\n limitsFileReadLabel: '最大读取文件(MiB)',\n limitsUploadLabel: '最大上传文件(MiB)',\n limitsInvalid: '请输入以 MiB 为单位的大小。',\n limitsSave: '保存',\n timeoutTitle: 'DataOps 查询超时',\n timeoutLabel: '单次查询上限(秒)',\n timeoutInvalid: '请输入 1 到 3600 秒。',\n limitsSaving: '保存中…',\n defaultsTitle: '默认配置',\n defaultsPublish: '发布',\n defaultsPublishing: '发布中…',\n defaultsPublishedAt: '上次发布',\n defaultsNeverPublished: '尚未发布',\n defaultsNotAdmin: '仅管理员可发布',\n plazaTitle: '技能广场',\n plazaIntro: '其他用户共享的技能。装载后即可在本工作区使用,也可以把自己的技能共享出去。',\n plazaSearch: '搜索技能',\n plazaTagFilter: '按标签筛选',\n plazaAllTags: '全部标签',\n plazaMine: '我共享的',\n plazaInstall: '装载',\n plazaInstalled: '已装载,可在技能列表中使用。',\n plazaUnshare: '取消共享',\n plazaUnshared: '已从广场移除;已装载的用户保留其副本。',\n plazaEmpty: '还没有人共享技能。',\n plazaUnavailable: '工作区接入 DataOps 后即可使用技能广场。',\n plazaLoadFailed: '技能广场加载失败,请重试。',\n plazaActionFailed: '操作未完成,请重试。',\n plazaRetry: '重试',\n plazaRefresh: '刷新',\n}\n","import type { Context as ClientContext } from '@deepseek-ai/cordis'\nimport type {} from '@deepseek-ai/dsh-client-ui-renderer/client'\nimport type {} from '@deepseek-ai/dsh-client-ui-settings/client'\nimport type {} from '@deepseek-ai/dsh-client-locale/client'\n// Type-only: pulls the skill center's slot declaration so this plugin can contribute to it.\nimport type {} from '@sparkelf/dsh-client-ui-skill-center/client'\nimport { ManagedDataOpsSection } from './ManagedDataOpsSection.tsx'\nimport { SkillPlazaSection } from './SkillPlazaSection.tsx'\nimport { installWanxiangBranding } from './install-branding.tsx'\nimport type { ManagedDataOpsSectionInjected } from './ManagedDataOpsSection.tsx'\nimport { en, zh, type ManagedDataOpsKey } from './locales.ts'\n\ndeclare module '@deepseek-ai/dsh-client-ui-slots' {\n interface LocaleNamespaceMap {\n 'settings.dataops-managed': ManagedDataOpsKey\n }\n}\n\nconst NS = 'settings.dataops-managed'\nconst AUTH_UPDATED_MESSAGE = 'dataops-auth-updated'\nconst MANAGED_AUTH_PATH = '/integrations/dataops/managed-auth'\n\n/** Required client services for the managed DataOps Settings section. */\nexport const inject = ['slots', 'locale']\n\n/**\n * Register localized managed DataOps Settings navigation and content.\n * @param ctx - DSH client context with locale and settings slots.\n */\nexport function apply(ctx: ClientContext): void {\n ctx.effect(() => ctx.locale.register(NS, { zh, en }), 'dataops-managed: settings copy')\n installWanxiangBranding(ctx)\n const t = ctx.locale.bind(NS) as ManagedDataOpsSectionInjected['t']\n ctx.slots.inject('settings.section', () => ctx.slots.register({\n name: 'settings.section',\n id: 'dataops',\n order: 25,\n label: () => t('nav'),\n inject: () => ({ t }),\n }, ManagedDataOpsSection))\n\n /**\n * The skill plaza, contributed to the skill center page.\n *\n * The skill center declares the slot and renders whatever it holds; a profile without this\n * plugin leaves it empty, which is what keeps the plaza out of a deployment that never\n * installed DataOps.\n */\n ctx.slots.inject('skill-center.section', () => ctx.slots.register({\n name: 'skill-center.section',\n id: 'dataops-plaza',\n order: 10,\n inject: () => ({ t }),\n }, SkillPlazaSection))\n\n const synchronizeJwt = async (): Promise<void> => {\n const response = await fetch(new URL(MANAGED_AUTH_PATH, window.location.origin), {\n method: 'POST',\n credentials: 'same-origin',\n })\n if (!response.ok) throw new Error(`DataOps managed JWT synchronization failed with HTTP ${String(response.status)}`)\n }\n const onMessage = (event: MessageEvent<unknown>): void => {\n if (event.source !== window.parent\n || (event.data as { type?: unknown } | null)?.type !== AUTH_UPDATED_MESSAGE) return\n void synchronizeJwt().catch(error => console.error('dataops-managed.jwt_sync_failed', error))\n }\n ctx.effect(() => {\n window.addEventListener('message', onMessage)\n void synchronizeJwt().catch(error => console.error('dataops-managed.jwt_sync_failed', error))\n return () => window.removeEventListener('message', onMessage)\n }, 'dataops-managed: JWT synchronization')\n}\n"],"mappings":";;;;;;;;;;;EAMA,MAAa,gCAAgC;EAE7C,SAAS,oBAA6C;GACpD,IAAI,OAAO,iBAAiB,aAAa,OAAO,EAAE,SAAS,KAAK;GAChE,IAAI;IACF,MAAM,QAAQ,KAAK,MAAM,aAAa,QAAA,2BAAqC,KAAK,MAAM;IACtF,OAAO,OAAO,UAAU,YAAY,UAAU,QAAQ,aAAa,SAC9D,OAAQ,MAAgC,YAAY,YACrD,EAAE,SAAU,MAA+B,QAAQ,IACnD,EAAE,SAAS,KAAK;GACtB,QAAQ;IACN,OAAO,EAAE,SAAS,KAAK;GACzB;EACF;EAEA,IAAI,aAAa,kBAAkB;EACnC,MAAM,4BAAY,IAAI,IAAgB;;EAGtC,MAAa,0BAA0B;GACrC,mBAA4C;GAC5C,YAAY,aAAuC;IACjD,UAAU,IAAI,QAAQ;IACtB,aAAa;KAAE,UAAU,OAAO,QAAQ;IAAE;GAC5C;EACF;;EAGA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oB,CAAC,CAAC,OAAM,UAAS,QAAQ,MAAM,mCAAmC,KAAK,CAAC;GAC9F;GACA,IAAI,aAAa;IACf,OAAO,iBAAiB,WAAW,SAAS;IAC5C,eAAoB,CAAC,CAAC,OAAM,UAAS,QAAQ,MAAM,mCAAmC,KAAK,CAAC;IAC5F,aAAa,OAAO,oBAAoB,WAAW,SAAS;GAC9D,GAAG,sCAAsC;EAC3C"}
|
|
@@ -13,8 +13,8 @@ export declare const en: {
|
|
|
13
13
|
readonly limitsInvalid: "Enter a size in MiB.";
|
|
14
14
|
readonly limitsSave: "Save";
|
|
15
15
|
readonly limitsSaving: "Saving…";
|
|
16
|
-
readonly timeoutTitle: "
|
|
17
|
-
readonly timeoutLabel: "Longest single
|
|
16
|
+
readonly timeoutTitle: "DataOps query timeout";
|
|
17
|
+
readonly timeoutLabel: "Longest single query (seconds)";
|
|
18
18
|
readonly timeoutInvalid: "Enter 1 to 3600 seconds.";
|
|
19
19
|
readonly defaultsTitle: "Default configuration";
|
|
20
20
|
readonly defaultsPublish: "Publish";
|
package/package.json
CHANGED