diff --git a/.gitignore b/.gitignore index 19fb729..a172db7 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,18 @@ +# Agent-only local instructions and state +AGENTS.md +.dsh/ +.agents/ +.codex/ + +# Dependencies and generated output node_modules/ lib/ +coverage/ +*.tsbuildinfo +*.tgz +_tmp_* + +# Logs and operating-system files *.log +.DS_Store +Thumbs.db diff --git a/AGENTS.md b/AGENTS.md deleted file mode 100644 index 207edd8..0000000 --- a/AGENTS.md +++ /dev/null @@ -1,18 +0,0 @@ -# Agent guide - -Treat this repository as a small plugin with clear seams. Read `CONTRIBUTING.md` before editing. - -## Non-negotiable constraints - -- Preserve the host/client split. Browser code may use only `src/client/api.ts` to reach host operations. -- Keep the Function Plugin contract explicit: export `name`, `inject`, `Config`, and `apply` from the Host entry; publish `./invariant` from `src/invariant.ts`. -- Every host route stays session-scoped. Validate request fields in `src/wire.ts`; never trust a browser path without resolving it through the session workspace. -- Keep process and filesystem details inside `src/git.ts` and `src/fs.ts`, respectively. Do not duplicate shell commands or path traversal logic in route handlers. -- Keep workspace and Git path hierarchy construction inside `src/client/tree.ts`; render both views from that shared tree model so folders and nested entries remain aligned. -- Refresh Git review on initial load, explicit user action, session/ref changes, and visible-window return events. Keep a fixed polling timer out of the review lifecycle. -- Keep `en` as the i18n key source of truth. Typecheck after any string change. -- Do not add build outputs or credentials to source control. - -## Required checks - -Run `pnpm check` after code or package changes. Use `pnpm pack:check` to inspect exactly what npm will publish. diff --git a/README.en.md b/README.en.md index a618d8d..bac9d43 100644 --- a/README.en.md +++ b/README.en.md @@ -46,10 +46,10 @@ The Browser entry uses a global runtime owner for the React root, slot contribut Requires Node.js 22.19+ and DeepSeek Harness with the `web` profile. ```sh -npx -y --package @deepseek-ai/dsh dsh plugin --profile web add github:LoftyTao/dsh-ui-workbench#v0.1.0 +npx -y --package @deepseek-ai/dsh dsh plugin --profile web add github:LoftyTao/dsh-ui-workbench#v0.2.0 ``` -GitHub installs build from source; allow the `prepare` script when DSH prompts. After adding the package to the `web` profile, source builds are claimed by HMR in the same Web process; the theme integration adds no restart step, and one page load creates the initial Browser aggregate. +Use the `v0.2.0` tag to install the hot-reload, Git review, and light/dark theme features from this release. GitHub installs build from source; allow the `prepare` script when DSH prompts. After adding the package to the `web` profile, source builds are claimed by HMR in the same Web process; the theme integration adds no restart step, and one page load creates the initial Browser aggregate. ## License diff --git a/README.md b/README.md index 1092621..47e3caf 100644 --- a/README.md +++ b/README.md @@ -69,10 +69,10 @@ dsh --profile web --dump-config 需要 Node.js 22.19+ 与带 `web` profile 的 DeepSeek Harness。 ```sh -npx -y --package @deepseek-ai/dsh dsh plugin --profile web add github:LoftyTao/dsh-ui-workbench#v0.1.0 +npx -y --package @deepseek-ai/dsh dsh plugin --profile web add github:LoftyTao/dsh-ui-workbench#v0.2.0 ``` -GitHub 安装会从源码构建,请在 DSH 提示时允许 `prepare` 脚本。将包加入 `web` profile 后,源码构建由 HMR 在同一 Web 进程接管;主题适配不增加重启步骤,页面加载一次即可完成初始 Browser aggregate。 +使用 `v0.2.0` tag 安装本轮热重载、Git 审查和亮暗主题特性。GitHub 安装会从源码构建,请在 DSH 提示时允许 `prepare` 脚本。将包加入 `web` profile 后,源码构建由 HMR 在同一 Web 进程接管;主题适配不增加重启步骤,页面加载一次即可完成初始 Browser aggregate。 ## 许可证 diff --git a/dsh.plugin.json b/dsh.plugin.json index cb0cf4a..169ce3c 100644 --- a/dsh.plugin.json +++ b/dsh.plugin.json @@ -1,6 +1,6 @@ { "id": "dsh-external/dsh-ui-workbench", - "version": "0.1.0", + "version": "0.2.0", "main": "./lib/index.js", "description": "DSH web plugin: right-side workbench panel (file tree / file viewer / git review) with draggable width, coexisting with the official tool-details panel.", "engines": { diff --git a/package.json b/package.json index c6c275b..540a4ed 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "dsh-ui-workbench", - "version": "0.1.0", + "version": "0.2.0", "description": "DSH web plugin: a right-side workbench panel (file tree / file viewer / git review) with a draggable-width side panel that coexists with the official tool-details panel.", "repository": { "type": "git",