@dsh-workbench/core 0.1.14 → 0.1.15
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/bin/dsh-workbench +16 -0
- package/client.js +163 -89
- package/cordis.patch.yml +18 -0
- package/dist/client/client.body.js +163 -89
- package/dist/client/index.js +163 -89
- package/dist/host/index.js +1300 -93
- package/dist/types/app/__tests__/workbench-styles.test.d.ts +1 -0
- package/dist/types/app/client.d.ts +39 -15
- package/dist/types/app/layouts/rightbar/board-columns.d.ts +8 -0
- package/dist/types/app/layouts/rightbar/board-columns.test.d.ts +1 -0
- package/dist/types/app/layouts/rightbar/market-rows.d.ts +2 -0
- package/dist/types/app/layouts/workbench-styles.d.ts +2 -0
- package/dist/types/modules/panels/__tests__/diy-harness.d.ts +51 -0
- package/dist/types/modules/panels/__tests__/diy-tools-status.test.d.ts +1 -0
- package/dist/types/modules/panels/__tests__/diy-tools.test.d.ts +1 -0
- package/dist/types/modules/panels/model/diy-tools.d.ts +4 -0
- package/dist/types/modules/panels/unit.d.ts +1 -0
- package/dist/types/shared/api/bundle-install.d.ts +1 -0
- package/dist/types/shared/api/host/diy-facts.d.ts +9 -0
- package/dist/types/shared/api/host/diy-facts.test.d.ts +1 -0
- package/dist/types/shared/api/host/diy-recon-fs.d.ts +3 -0
- package/dist/types/shared/api/host/diy-recon-fs.test.d.ts +1 -0
- package/dist/types/shared/api/host/diy-recon.d.ts +39 -0
- package/dist/types/shared/api/host/diy-recon.test.d.ts +1 -0
- package/dist/types/shared/api/host/diy-workshop.d.ts +12 -0
- package/dist/types/shared/api/host/diy-workshop.test.d.ts +1 -0
- package/dist/types/shared/api/host/installed-module.d.ts +2 -0
- package/dist/types/shared/api/host/opencli-command.d.ts +10 -0
- package/dist/types/shared/api/host/opencli-command.test.d.ts +1 -0
- package/package.json +2 -3
- package/scripts/seed-profile.sh +4 -113
- package/skills/workbench-module-diy/BUILD.md +36 -66
- package/skills/workbench-module-diy/DATASOURCE.md +80 -12
- package/skills/workbench-module-diy/DESIGN.md +27 -2
- package/skills/workbench-module-diy/LINKAGE.md +49 -19
- package/skills/workbench-module-diy/PANEL.md +78 -4
- package/skills/workbench-module-diy/REVIEW.md +6 -5
- package/skills/workbench-module-diy/SKILL.md +32 -12
- package/skills/workbench-module-diy/STEPS.md +4 -0
- package/skills/workbench-module-diy/TOOLING.md +47 -0
- package/skills/workbench-module-diy/TOOLS.md +147 -5
- package/skills/workbench-module-diy/WIRING.md +88 -0
package/bin/dsh-workbench
CHANGED
|
@@ -222,6 +222,22 @@ mkdir -p "$OPENCLI_ROOT/bin" "$OPENCLI_ROOT/home"
|
|
|
222
222
|
# 只建目录:骨架与依赖是 seed-profile.sh 第 6 步的事。
|
|
223
223
|
mkdir -p "$DSH_HOME/workbench/diy/packages"
|
|
224
224
|
|
|
225
|
+
# 工坊的**稳定入口**:每次启动都重写一遍(幂等、几乎不花时间),挂进 PATH。
|
|
226
|
+
# 于是 agent 在工坊里(或任何目录里)都能直接叫 `dsh-wb-module`,不必记着 `pnpm exec` 前缀 ——
|
|
227
|
+
# 指令里那句"工坊里没有全局 dsh-wb-module"是**旧**状态,现在有一个我们自己的转发脚本。
|
|
228
|
+
bash "$REPO_DIR/scripts/seed-workshop.sh" entry || true
|
|
229
|
+
export PATH="$DSH_HOME/workbench/bin:$PATH"
|
|
230
|
+
|
|
231
|
+
# 骨架不在就**当场建**(不是只提醒):工坊看着"能用",可模块的 build / check 会把
|
|
232
|
+
# "不在 workspace 里"说成"声明写错了"——实测就是在这一步卡住过(干净机器上 seed 第 6 步没跑)。
|
|
233
|
+
# 提醒是对人说的,而先撞上它的是 agent:它读到的报错指着别的地方,于是开始自由发挥。
|
|
234
|
+
if [ ! -f "$DSH_HOME/workbench/diy/package.json" ]; then
|
|
235
|
+
bash "$REPO_DIR/scripts/seed-workshop.sh" || {
|
|
236
|
+
echo "dsh-workbench: 提醒 —— DIY 工坊的骨架没建起来($DSH_HOME/workbench/diy/package.json)。" >&2
|
|
237
|
+
echo " 跑一次 dsh-workbench setup;在那之前工坊里的模块 build / check 都会报错。" >&2
|
|
238
|
+
}
|
|
239
|
+
fi
|
|
240
|
+
|
|
225
241
|
# 工坊**自己带着** DIY 的指引:软链到随包出货的那一份(本包的 `skills/workbench-module-diy/`)。
|
|
226
242
|
# 为什么放在这里、而不是靠 agent preset 的 `customSkillDirs`:DIY 会话的 cwd 就是工坊
|
|
227
243
|
# (会话 cwd 即沙箱边界),而 dsh 的 skill-filesystem 是从 **cwd 下的 `.agents/skills/`**
|