@michengai/dsh-codex-ui 0.2.48 → 0.2.49
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/dist/client.js +25 -3
- package/dist/index.mjs +4 -0
- package/package.json +1 -1
package/dist/client.js
CHANGED
|
@@ -447,6 +447,26 @@ window.__ModuleLoader__.load({
|
|
|
447
447
|
});
|
|
448
448
|
}
|
|
449
449
|
//#endregion
|
|
450
|
+
//#region src/dependencies.ts
|
|
451
|
+
const MANAGED_DEPENDENCIES = [
|
|
452
|
+
{
|
|
453
|
+
id: "ui",
|
|
454
|
+
packageName: "@michengai/dsh-codex-ui"
|
|
455
|
+
},
|
|
456
|
+
{
|
|
457
|
+
id: "experts",
|
|
458
|
+
packageName: "@michengai/dsh-agency-agents"
|
|
459
|
+
},
|
|
460
|
+
{
|
|
461
|
+
id: "skills",
|
|
462
|
+
packageName: "@michengai/dsh-skills-manager"
|
|
463
|
+
},
|
|
464
|
+
{
|
|
465
|
+
id: "archive",
|
|
466
|
+
packageName: "@michengai/dsh-archive-manager"
|
|
467
|
+
}
|
|
468
|
+
];
|
|
469
|
+
//#endregion
|
|
450
470
|
//#region src/client/AboutSection.tsx
|
|
451
471
|
const endpoint = "/api/michengai/codex-ui/dependencies";
|
|
452
472
|
const stylesheet$3 = `
|
|
@@ -455,7 +475,7 @@ window.__ModuleLoader__.load({
|
|
|
455
475
|
function isDependencyStatus(value) {
|
|
456
476
|
if (value === null || typeof value !== "object") return false;
|
|
457
477
|
const status = value;
|
|
458
|
-
return (
|
|
478
|
+
return MANAGED_DEPENDENCIES.some((dependency) => dependency.id === status.id) && typeof status.packageName === "string" && typeof status.installed === "boolean" && typeof status.updateAvailable === "boolean";
|
|
459
479
|
}
|
|
460
480
|
/** Codex UI 的功能说明、配套管理插件状态与受限安装入口。 */
|
|
461
481
|
function AboutSection({ t }) {
|
|
@@ -1576,7 +1596,7 @@ window.__ModuleLoader__.load({
|
|
|
1576
1596
|
"about.feature.conversation": "保留原生消息、工具调用、输入、权限和模型选择,仅调整容器视觉",
|
|
1577
1597
|
"about.feature.navigator": "当前会话提供轮次缩略导航,可快速跳转至每一次用户提问",
|
|
1578
1598
|
"about.dependencies": "配套管理插件",
|
|
1579
|
-
"about.dependenciesDescription": "
|
|
1599
|
+
"about.dependenciesDescription": "可在此检查并更新本插件,以及专家、技能和已归档会话配套插件;点击安装会从 npm 下载并写入当前 Web profile。",
|
|
1580
1600
|
"about.loading": "正在读取依赖安装状态…",
|
|
1581
1601
|
"about.statusFailed": "暂时无法读取依赖安装状态。",
|
|
1582
1602
|
"about.installed": "已安装",
|
|
@@ -1587,6 +1607,7 @@ window.__ModuleLoader__.load({
|
|
|
1587
1607
|
"about.installing": "安装中",
|
|
1588
1608
|
"about.installFailed": "依赖安装失败,请稍后重试。",
|
|
1589
1609
|
"about.restartRequired": "依赖安装完成。请重启 DSH Web 服务以加载新插件。",
|
|
1610
|
+
"about.dependency.ui": "Codex UI",
|
|
1590
1611
|
"about.dependency.experts": "专家管理",
|
|
1591
1612
|
"about.dependency.skills": "技能管理",
|
|
1592
1613
|
"about.dependency.archive": "归档会话管理",
|
|
@@ -1684,7 +1705,7 @@ window.__ModuleLoader__.load({
|
|
|
1684
1705
|
"about.feature.conversation": "Keeps native messages, tool calls, composer, permissions, and model selection while refining the container visuals",
|
|
1685
1706
|
"about.feature.navigator": "Navigate directly to each user prompt with the current conversation turn navigator",
|
|
1686
1707
|
"about.dependencies": "Companion management plugins",
|
|
1687
|
-
"about.dependenciesDescription": "
|
|
1708
|
+
"about.dependenciesDescription": "Check and update this plugin here, along with the expert, skill, and archived-conversation companions. Installation downloads from npm and writes to the current Web profile.",
|
|
1688
1709
|
"about.loading": "Loading dependency status…",
|
|
1689
1710
|
"about.statusFailed": "Dependency status is temporarily unavailable.",
|
|
1690
1711
|
"about.installed": "Installed",
|
|
@@ -1695,6 +1716,7 @@ window.__ModuleLoader__.load({
|
|
|
1695
1716
|
"about.installing": "Installing",
|
|
1696
1717
|
"about.installFailed": "Dependency installation failed. Try again later.",
|
|
1697
1718
|
"about.restartRequired": "Installation is complete. Restart DSH Web to load the new plugin.",
|
|
1719
|
+
"about.dependency.ui": "Codex UI",
|
|
1698
1720
|
"about.dependency.experts": "Expert management",
|
|
1699
1721
|
"about.dependency.skills": "Skill management",
|
|
1700
1722
|
"about.dependency.archive": "Archived conversation management",
|
package/dist/index.mjs
CHANGED
|
@@ -5,6 +5,10 @@ import { resolve } from "node:path";
|
|
|
5
5
|
import { fileURLToPath } from "node:url";
|
|
6
6
|
//#region src/dependencies.ts
|
|
7
7
|
const MANAGED_DEPENDENCIES = [
|
|
8
|
+
{
|
|
9
|
+
id: "ui",
|
|
10
|
+
packageName: "@michengai/dsh-codex-ui"
|
|
11
|
+
},
|
|
8
12
|
{
|
|
9
13
|
id: "experts",
|
|
10
14
|
packageName: "@michengai/dsh-agency-agents"
|