@dsh-electron/dsh-plugin-multi-root-workspace 0.1.8 → 0.1.10
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.en.md +22 -1
- package/CHANGELOG.md +22 -1
- package/README.en.md +39 -16
- package/README.md +47 -24
- package/cordis.patch.yml +10 -0
- package/lib/auto-review-packages-nRjnb4pU.js +15 -0
- package/lib/auto-review.js +166 -0
- package/lib/client.js +573 -131
- package/lib/client.js.map +1 -1
- package/lib/{command-CESuwlVt.js → command-BGdz7VBH.js} +68 -8
- package/lib/command.js +1 -1
- package/lib/{compat-DR2LvmYZ.js → compat-D-MljsPV.js} +13 -2
- package/lib/compat.js +1 -1
- package/lib/{contract-DZ4zczDT.js → contract-CStSEOcK.js} +44 -1
- package/lib/fork-CzbeWxHp.js +670 -0
- package/lib/fs.js +1 -1
- package/lib/index.js +9 -8
- package/lib/{instructions-D19jRxN0.js → instructions-MePoRigy.js} +213 -263
- package/lib/instructions.js +1 -1
- package/lib/llm-message-fYORacvh.js +206 -0
- package/lib/lsp.js +1 -1
- package/lib/metadata-DgqSdVX_.js +35 -0
- package/lib/{registry-DCxC5Lay.js → registry-KSsmU393.js} +66 -13
- package/lib/registry.js +1 -1
- package/lib/review-context-AH-SXHmj.js +98 -0
- package/lib/review-context.js +2 -0
- package/lib/{roots-B-0l8mNG.js → roots-Ca_W1S9n.js} +1 -1
- package/lib/{sandbox-CVAcT_gy.js → sandbox-CXk5h-ct.js} +3 -3
- package/lib/sandbox.js +1 -1
- package/lib/scope.js +15 -6
- package/lib/skills.js +790 -0
- package/lib/types/auto-review/entry.d.ts +5 -0
- package/lib/types/client/WorkspaceFoldersAction.d.ts +1 -1
- package/lib/types/client/locales.d.ts +26 -16
- package/lib/types/client/skills-client.d.ts +23 -0
- package/lib/types/client/skills-settings.d.ts +10 -0
- package/lib/types/client/skills.d.ts +36 -0
- package/lib/types/client/styles.d.ts +1 -1
- package/lib/types/command.d.ts +1 -1
- package/lib/types/compat/auto-review-contract.d.ts +3 -0
- package/lib/types/compat/auto-review-loader.d.ts +33 -0
- package/lib/types/compat/auto-review-packages.d.ts +1 -0
- package/lib/types/compat/client-session.d.ts +2 -0
- package/lib/types/compat/dsh-version.d.ts +5 -5
- package/lib/types/compat/instruction-activity.d.ts +17 -0
- package/lib/types/compat/review-session.d.ts +2 -0
- package/lib/types/compat/skill-content.d.ts +3 -0
- package/lib/types/compat/skills-client.d.ts +33 -0
- package/lib/types/compat/skills-settings.d.ts +8 -0
- package/lib/types/compat/skills.d.ts +13 -0
- package/lib/types/compat/storage-zod.d.ts +1 -0
- package/lib/types/contract.d.ts +12 -1
- package/lib/types/instructions.d.ts +18 -1
- package/lib/types/registry.d.ts +7 -0
- package/lib/types/review-context.d.ts +49 -0
- package/lib/types/roots.d.ts +4 -1
- package/lib/types/scope.d.ts +5 -0
- package/lib/types/skills/catalog.d.ts +34 -0
- package/lib/types/skills/invocation.d.ts +7 -0
- package/lib/types/skills/metadata.d.ts +13 -0
- package/lib/types/skills/pool.d.ts +19 -0
- package/lib/types/skills/reader.d.ts +3 -0
- package/lib/types/skills/routing.d.ts +2 -0
- package/lib/types/skills-contract.d.ts +39 -0
- package/lib/types/skills.d.ts +43 -0
- package/lib/windows-runner.js +2 -2
- package/lib/workspace-files.js +2 -2
- package/package.json +121 -68
- package/src/auto-review/FORK.md +26 -0
- package/src/auto-review/LICENSE +21 -0
- package/src/auto-review/README.en.md +22 -0
- package/src/auto-review/README.md +22 -0
- package/lib/{fs-Nlp2AiRX.js → fs-BTXySwSG.js} +1 -1
- package/lib/{registry-lease-win32-DTO6QpT9.js → registry-lease-win32-DVTq9d4D.js} +1 -1
- package/lib/{windows-runner-contract-CEfmZzu0.js → windows-runner-contract-B5R2K3mM.js} +1 -1
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# 可选 Auto Review
|
|
2
|
+
|
|
3
|
+
English: [README.en.md](./README.en.md)
|
|
4
|
+
|
|
5
|
+
Auto Review 已内置于 `@dsh-electron/dsh-plugin-multi-root-workspace/auto-review`,仅支持 DSH `0.2.1-rc.2`。安装主包后,在插件管理器中展开 Multi-root Workspace 的行列表,打开 `@dsh-electron/dsh-plugin-multi-root-workspace/auto-review` 行(`cordis.patch.yml` 中的行 id 为 `multi-root-auto-review`)。该行出厂关闭;关闭时不挂载 reviewer 或 review context,也不注册 Auto preset。无热重载的 profile 需要按管理器提示重启。
|
|
6
|
+
|
|
7
|
+
启用后,同一个开关挂载当前多根 context 与 reviewer,并在运行时停止同组官方 `@deepseek-ai/dsh-experimental-auto-review` 行。官方 bundle 位于主包前后均可;后续 reload 仍保持单一 owner。接管不修改官方的持久配置。关闭后,官方仅在仍被选择且原配置允许启用时随 reload/restart 恢复;官方未被选择时不会自动安装或启用。官方 bundle 未被选择时,该行仍独立提供同一份 reviewer(自带注册 Auto preset),只是没有可接管的官方 owner。
|
|
8
|
+
|
|
9
|
+
也可在 profile 的 `cordis.patch.yml` 中显式设置:
|
|
10
|
+
|
|
11
|
+
```yaml
|
|
12
|
+
- id: multi-root-auto-review
|
|
13
|
+
disabled: false
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
卸载任何存活的 Auto owner 都保留官方语义:Auto Session 迁移为 Full access;新 owner 不会自动把它们切回 Auto。需要继续使用 Auto 时,在 Session 中重新选择。Multi-root 的写围栏继续执行。
|
|
17
|
+
|
|
18
|
+
从旧 companion 迁移时,先停止目标 profile,移除其 bundle 选择和 `@dsh-electron/dsh-plugin-multi-root-auto-review` 依赖,再安装/更新主包并打开上述行。可使用现有 `dsh plugin --profile <name> remove @dsh-electron/dsh-plugin-multi-root-auto-review` 清理旧包;保留官方 bundle 的原有选择。旧版 configure 不再使用。残留旧 companion 与内置入口共存时会明确拒绝启动,不会自动重写用户 manifest。
|
|
19
|
+
|
|
20
|
+
约束、预算、混合 native 帧与 freshness 语义沿用原 fork:当前拓扑和指令进入 reviewer 数据分区,项目文本仅为 constraint;预算、I/O、取消或快照变化使本次调用失败。bash/pwsh 只收集已知目录链,不能推断任意脚本的全部目标;普通源码自动读取不在范围内。
|
|
21
|
+
|
|
22
|
+
Fork 基线、允许差异与同步规则见 [FORK.md](./FORK.md)。
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { brandMultiRootProvider } from "./providers.js";
|
|
2
2
|
import { dirname, sep } from "node:path";
|
|
3
3
|
import { writableRoots } from "@deepseek-ai/dsh-sandbox";
|
|
4
|
+
import { stat } from "node:fs/promises";
|
|
4
5
|
import { FsError } from "@deepseek-ai/dsh-fs";
|
|
5
6
|
import { LocalFileSystem } from "@deepseek-ai/dsh-fs-local";
|
|
6
|
-
import { stat } from "node:fs/promises";
|
|
7
7
|
//#region src/containment.ts
|
|
8
8
|
const MISSING_CODES = /* @__PURE__ */ new Set(["ENOENT", "ENOTDIR"]);
|
|
9
9
|
function isMissing(error) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { realpathSync } from "node:fs";
|
|
2
|
-
import { basename, dirname, join, resolve } from "node:path";
|
|
3
2
|
import { createHash } from "node:crypto";
|
|
3
|
+
import { basename, dirname, join, resolve } from "node:path";
|
|
4
4
|
//#region src/registry-lease-win32.ts
|
|
5
5
|
/**
|
|
6
6
|
* Windows named-kernel-semaphore adapter for the registry authority lease.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { existsSync, realpathSync, statSync } from "node:fs";
|
|
2
|
-
import { isAbsolute, win32 } from "node:path";
|
|
3
2
|
import { createHash } from "node:crypto";
|
|
3
|
+
import { isAbsolute, win32 } from "node:path";
|
|
4
4
|
function assertWindowsDenyCapacity(count) {
|
|
5
5
|
if (!Number.isInteger(count) || count < 1 || count > 256) throw new DialectUnrecognizedError(`Windows ambient restriction requires 1–256 deny roots including the protected DSH home; got ${count}. Reduce the registered restrictions before launching; no deny roots were dropped`);
|
|
6
6
|
}
|