pi-web-ui 0.114.1 → 0.114.2
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/CHANGELOG.md +17 -0
- package/README.md +187 -187
- package/README.zh-CN.md +227 -227
- package/README.zh-TW.md +227 -227
- package/bin/device-hub-cli.mjs +577 -577
- package/bin/frp-manager.mjs +1573 -1573
- package/bin/pi-device-hub.mjs +9 -9
- package/bin/pi-web-ui.mjs +4081 -4081
- package/deploy/nginx-subpath.conf +100 -100
- package/deploy/pi-web-ui.service +36 -36
- package/dist/server/agent-service.js +59 -10
- package/dist/server/attachments.js +6 -6
- package/dist/server/canvas/canvas-orchestrator.js +3 -3
- package/dist/server/communicate-tool.js +37 -11
- package/dist/server/compaction-instructions.js +8 -8
- package/dist/server/device-center/desktop-page.js +228 -228
- package/dist/server/device-center/hub-page.js +64 -64
- package/dist/server/device-center/native-desktop/macos.js +190 -190
- package/dist/server/device-center/native-desktop/windows.js +116 -116
- package/dist/server/dsh/runtime/cordis.yml +1 -1
- package/dist/server/dsh/runtime/custom-prompt.mjs +33 -33
- package/dist/server/dsh/runtime/goal-rpc.mjs +1309 -1309
- package/dist/server/dsh/runtime/launcher.mjs +235 -235
- package/dist/server/dsh/runtime/override.patch.yml +89 -89
- package/dist/server/dsh/runtime/runtime-root.mjs +405 -405
- package/dist/server/durable/durable-event-projector.js +19 -3
- package/dist/server/durable/durable-models.js +134 -65
- package/dist/server/eval-tool.js +135 -135
- package/dist/server/model-resolver.js +4 -1
- package/dist/server/patch-bash-process.js +89 -89
- package/dist/server/patch-tool.js +9 -9
- package/dist/server/patch-turn-end-boundary.js +3 -3
- package/dist/server/persona-chain.js +8 -8
- package/dist/server/remote-ssh-service.js +39 -39
- package/dist/server/schedule-agent-tool.js +11 -6
- package/dist/server/scheduler-tasks.js +84 -2
- package/dist/server/scm-commitmsg.js +10 -10
- package/dist/server/setup-page.js +620 -620
- package/dist/server/universal/universal-session.js +19 -18
- package/dist/server/vision-bridge.js +18 -18
- package/docs/device-center.md +148 -148
- package/docs/device-desktop.md +48 -48
- package/docs/dsh-engine.md +493 -493
- package/extensions/webui.ts +335 -335
- package/package.json +1 -1
- package/plugin-sdk/README.md +174 -174
- package/plugin-sdk/client-utils.mjs +279 -279
- package/plugin-sdk/import-check.mjs +210 -210
- package/plugin-sdk/index.d.ts +698 -698
- package/plugin-sdk/index.mjs +696 -696
- package/plugin-sdk/package.json +13 -13
- package/plugin-sdk/ssh-host-trust.mjs +225 -225
- package/themes/aetheris.css +501 -501
- package/themes/ayu-light.css +116 -116
- package/themes/bases/flow-base.css +1357 -1357
- package/themes/bases/obsidian-base.css +895 -895
- package/themes/bases/statusbar-flat-base.css +112 -112
- package/themes/bases/zhujian-base.css +688 -688
- package/themes/bases/zhupi-base.css +660 -660
- package/themes/catppuccin-latte.css +119 -119
- package/themes/catppuccin.css +116 -116
- package/themes/claude-code-dark.css +147 -147
- package/themes/codex.css +114 -114
- package/themes/cyberpunk.css +50 -50
- package/themes/dark-teal.css +264 -264
- package/themes/dazzle.css +38 -38
- package/themes/everforest-light.css +115 -115
- package/themes/flow-light.css +164 -164
- package/themes/flow.css +161 -161
- package/themes/geist.css +114 -114
- package/themes/gruvbox-light.css +115 -115
- package/themes/kanagawa-lotus.css +115 -115
- package/themes/md-preview.css +24 -24
- package/themes/mist.css +166 -166
- package/themes/nord.css +107 -107
- package/themes/one-dark.css +106 -106
- package/themes/paper.css +174 -174
- package/themes/rose-pine-dawn.css +114 -114
- package/themes/sakura.css +166 -166
- package/themes/solarized-light.css +114 -114
- package/themes/tokyo-night.css +115 -115
- package/themes/translucent.css +85 -85
- package/themes/transparent.css +116 -116
- package/themes/vs-code-dark.css +147 -147
- package/themes/wallpaper-flow.css +382 -382
- package/themes/wallpaper-obsidian.css +74 -74
- package/themes/white.css +164 -164
- package/themes/zhujian-dark.css +115 -115
- package/themes/zhujian.css +114 -114
- package/themes/zhupi-dark.css +115 -115
- package/themes/zhupi.css +114 -114
- package/web/dist/.build-assets.json +1 -1
- package/web/dist/assets/{BgTasksModal-BcXJ20RO.js → BgTasksModal-BIlQ89vr.js} +1 -1
- package/web/dist/assets/{BgTasksModal-DjQmiKnE.js → BgTasksModal-Ck2sjlPM.js} +1 -1
- package/web/dist/assets/{CanvasStudio-PI9pid0Y.js → CanvasStudio-B3W6b_rA.js} +1 -1
- package/web/dist/assets/{CanvasStudio-nf5-HxLM.js → CanvasStudio-Csv1Sj1-.js} +1 -1
- package/web/dist/assets/{DeviceCenter-CYttJw2a.js → DeviceCenter-BQdDcO8A.js} +1 -1
- package/web/dist/assets/{DeviceCenter-DPe4sz74.js → DeviceCenter-CHRKL0Vy.js} +1 -1
- package/web/dist/assets/{FilePreview-C9Ut4Lq6.js → FilePreview-B9xoU6ON.js} +1 -1
- package/web/dist/assets/{FilePreview-CvK3ZzX5.js → FilePreview-DUQpVZkH.js} +1 -1
- package/web/dist/assets/{GlobalSearchModal-C5e-OCw2.js → GlobalSearchModal-BXEGvUZq.js} +1 -1
- package/web/dist/assets/{GlobalSearchModal-H7pFK2UC.js → GlobalSearchModal-CnVPmfOI.js} +1 -1
- package/web/dist/assets/{GroupConversation-C2wNM0dQ.js → GroupConversation-CyIpQzDd.js} +1 -1
- package/web/dist/assets/{GroupConversation-ChN3TWQK.js → GroupConversation-DgYV3uYS.js} +1 -1
- package/web/dist/assets/{SCMPanel-buTGziDB.js → SCMPanel-imYI2Ecw.js} +1 -1
- package/web/dist/assets/{SCMPanel-kx-SCL2s.js → SCMPanel-sVZcV7dR.js} +1 -1
- package/web/dist/assets/{SettingsModal-BsUF8jqr.js → SettingsModal-Xw1Yoi3_.js} +1 -1
- package/web/dist/assets/{SettingsModal-D357Ky7P.js → SettingsModal-mb4e34-0.js} +1 -1
- package/web/dist/assets/{TerminalPanel-BBuM_Sez.js → TerminalPanel-CLkJJvxg.js} +1 -1
- package/web/dist/assets/{TerminalPanel-D6x6xz8Q.js → TerminalPanel-DpcIellm.js} +1 -1
- package/web/dist/assets/{TuiOverlayModal-CdbGV3Za.js → TuiOverlayModal-4-fFAZe7.js} +1 -1
- package/web/dist/assets/{TuiOverlayModal-d6x9u25n.js → TuiOverlayModal-DCu01lks.js} +1 -1
- package/web/dist/assets/{index-D6u8xH0o.js → index-Cdh3sibd.js} +4 -4
- package/web/dist/assets/{index-BPvpea8t.js → index-DWw_SxRq.js} +4 -4
- package/web/dist/index.html +29 -29
- package/web/dist/sw.js +179 -179
- package/web/public/sw.js +179 -179
|
@@ -1,33 +1,33 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* pi-web-ui custom prompt section (host plane).
|
|
3
|
-
*
|
|
4
|
-
* pi-web-ui 的自定义系统提示词在预设时代的载体:官方 preset 的 persona 行会
|
|
5
|
-
* shadow 掉部署人设(standard/ptc/cordis),minimal(complete:true)更压住一切,
|
|
6
|
-
* 所以沿用 system-prompt 行(DSH_PERSONA)已无法让用户的自定义提示词生效。
|
|
7
|
-
* 本行在 host plane 注册一个独立 section(deployment:persona-suffix 之后),
|
|
8
|
-
* standard/ptc/cordis 下随系统提示词下发,minimal 下被 complete 压住(官方语义)。
|
|
9
|
-
*
|
|
10
|
-
* 文本来自环境变量 PI_WEB_DSH_CUSTOM_PROMPT(Node 侧 dsh-agent-service 维护,
|
|
11
|
-
* 变化即重启运行时);为空时不注册任何 section。无 Config export(loader 允许,
|
|
12
|
-
* 与 dsh-tool-ask-user 同形)。
|
|
13
|
-
*/
|
|
14
|
-
|
|
15
|
-
const name = "pi-webui-custom-prompt";
|
|
16
|
-
const inject = ["systemPrompt"];
|
|
17
|
-
|
|
18
|
-
function apply(ctx) {
|
|
19
|
-
const text = (process.env.PI_WEB_DSH_CUSTOM_PROMPT ?? "").trim();
|
|
20
|
-
if (!text) return;
|
|
21
|
-
const order = ctx.systemPrompt.getSectionOrder("DEPLOYMENT_PERSONA_SUFFIX") + 50;
|
|
22
|
-
ctx.effect(
|
|
23
|
-
() =>
|
|
24
|
-
ctx.systemPrompt.section({
|
|
25
|
-
name: "pi-webui:custom-prompt",
|
|
26
|
-
order,
|
|
27
|
-
text,
|
|
28
|
-
}),
|
|
29
|
-
"pi-webui-custom-prompt.section()",
|
|
30
|
-
);
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
export { apply, inject, name };
|
|
1
|
+
/**
|
|
2
|
+
* pi-web-ui custom prompt section (host plane).
|
|
3
|
+
*
|
|
4
|
+
* pi-web-ui 的自定义系统提示词在预设时代的载体:官方 preset 的 persona 行会
|
|
5
|
+
* shadow 掉部署人设(standard/ptc/cordis),minimal(complete:true)更压住一切,
|
|
6
|
+
* 所以沿用 system-prompt 行(DSH_PERSONA)已无法让用户的自定义提示词生效。
|
|
7
|
+
* 本行在 host plane 注册一个独立 section(deployment:persona-suffix 之后),
|
|
8
|
+
* standard/ptc/cordis 下随系统提示词下发,minimal 下被 complete 压住(官方语义)。
|
|
9
|
+
*
|
|
10
|
+
* 文本来自环境变量 PI_WEB_DSH_CUSTOM_PROMPT(Node 侧 dsh-agent-service 维护,
|
|
11
|
+
* 变化即重启运行时);为空时不注册任何 section。无 Config export(loader 允许,
|
|
12
|
+
* 与 dsh-tool-ask-user 同形)。
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
const name = "pi-webui-custom-prompt";
|
|
16
|
+
const inject = ["systemPrompt"];
|
|
17
|
+
|
|
18
|
+
function apply(ctx) {
|
|
19
|
+
const text = (process.env.PI_WEB_DSH_CUSTOM_PROMPT ?? "").trim();
|
|
20
|
+
if (!text) return;
|
|
21
|
+
const order = ctx.systemPrompt.getSectionOrder("DEPLOYMENT_PERSONA_SUFFIX") + 50;
|
|
22
|
+
ctx.effect(
|
|
23
|
+
() =>
|
|
24
|
+
ctx.systemPrompt.section({
|
|
25
|
+
name: "pi-webui:custom-prompt",
|
|
26
|
+
order,
|
|
27
|
+
text,
|
|
28
|
+
}),
|
|
29
|
+
"pi-webui-custom-prompt.section()",
|
|
30
|
+
);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
export { apply, inject, name };
|