@jayyuen66/dsh-dir-prep-organize 0.1.3 → 0.1.4

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/README.md CHANGED
@@ -39,6 +39,11 @@ dsh plugin --profile web add @jayyuen66/dsh-dir-prep-organize
39
39
  - Every peer is repeated in `devDependencies` at the same exact pin; that is what lets this repository's own typecheck, build and tests resolve them. The remaining `@deepseek-ai/*` entries here are type-only in source and leave no specifier in the declarations either, so they stay in `devDependencies` alone.
40
40
  - What is left in `dependencies` is this package's own runtime code: `@jayyuen66/dsh-plugin-shared`.
41
41
 
42
+
43
+ ## Shared version floor
44
+
45
+ If your profile pins `@jayyuen66/dsh-plugin-shared` with a pnpm `overrides` entry, that pin must be at least the `@jayyuen66/dsh-plugin-shared` version this package declares. A lower pin installs a copy without the names this package imports at runtime, and the host then reports `N entries did not activate` with `does not provide an export named ...` when it boots -- the package installs fine and never loads, and no per-repo CI run can see it.
46
+
42
47
  ## Enabling it in dsh
43
48
 
44
49
  - Installing the package contributes the bundle patch layer (`dsh.bundle.patch` points at `./cordis.patch.yml`), which inserts `- id: dir-prep-organize` with `name` set to the package name.
package/README.zh-CN.md CHANGED
@@ -37,6 +37,11 @@ dsh plugin --profile web add @jayyuen66/dsh-dir-prep-organize
37
37
  - 每枚 peer 都在 `devDependencies` 里以同一枚精确版本再写一份,本仓自己的 typecheck、build 与测试靠它解析。其余 `@deepseek-ai/*` 在源码里是 type-only,在声明产物里也不留说明符,所以只留在 `devDependencies`。
38
38
  - `dependencies` 剩下的确实是本包自己的运行期代码:`@jayyuen66/dsh-plugin-shared`。
39
39
 
40
+
41
+ ## shared 的版本下限
42
+
43
+ 如果你的 profile 用 pnpm `overrides` 把 `@jayyuen66/dsh-plugin-shared` 钉在某个版本,那个钉住的值必须不低于本包声明的 `@jayyuen66/dsh-plugin-shared` 版本。钉得更低就会装到一份缺少本包运行期所导入的名字的产物,宿主起来时报 `N entries did not activate` 加 `does not provide an export named ...`——包装得上、永远不生效,而各仓单仓 CI 看不见这一类。
44
+
40
45
  ## 在 dsh 里启用
41
46
 
42
47
  - 装包即由包内 bundle patch(`dsh.bundle.patch` 指向 `./cordis.patch.yml`)注入 `- id: dir-prep-organize`(`name` 为包名)。
package/client.js CHANGED
@@ -405,6 +405,8 @@ function r(e) {
405
405
  }
406
406
  //#endregion
407
407
  //#region src/remote.ts
408
+ /** Typert Remote 命名空间。**单源**:错误文案与宿主侧注册都用这一枚,
409
+ * 写死两处会让"网关挂的是 A、报错说的是 B"这种漂移没有任何运行期信号。 */
408
410
  const DIR_PREP_NAMESPACE = "dirPrepOrganize";
409
411
  const DIR_PREP_SERVICE_KEY = `remote.${DIR_PREP_NAMESPACE}`;
410
412
  const PACKAGE_NAME = "@jayyuen66/dsh-dir-prep-organize";
@@ -688,7 +690,7 @@ function setDirPrepReader(reader) {
688
690
  dirPrepReader = reader;
689
691
  }
690
692
  function requireReader() {
691
- if (dirPrepReader === void 0) throw new Error("远程读面不可用:宿主网关没有挂上 dirPrepOrganize");
693
+ if (dirPrepReader === void 0) throw new Error(`远程读面不可用:宿主网关没有挂上 ${DIR_PREP_NAMESPACE}`);
692
694
  return dirPrepReader;
693
695
  }
694
696
  /** 客户端超时只影响等待:宿主侧的整理超时仍由它自己的 AbortController 收口。 */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jayyuen66/dsh-dir-prep-organize",
3
- "version": "0.1.3",
3
+ "version": "0.1.4",
4
4
  "description": "dsh 插件:对话输入框「整理」按钮(主键直接整理/▾ 以角色视角整理,结合当前目录 + session 模型整理优化草稿)+「模板」下拉(内置精选角色集生成自插件 agents/ 角色库,可按部门分组;设置卡可增删改/一键导入内置全部/导入本地角色 .md)",
5
5
  "homepage": "https://github.com/JayYuen666/dsh-dir-prep-organize#readme",
6
6
  "bugs": {
@@ -1,4 +1,7 @@
1
1
  import type { InvocationDescriptor } from "@deepseek-ai/dsh-typert-protocol";
2
+ /** Typert Remote 命名空间。**单源**:错误文案与宿主侧注册都用这一枚,
3
+ * 写死两处会让"网关挂的是 A、报错说的是 B"这种漂移没有任何运行期信号。 */
4
+ export declare const DIR_PREP_NAMESPACE = "dirPrepOrganize";
2
5
  export declare const DIR_PREP_DESCRIPTORS: readonly InvocationDescriptor[];
3
6
  export interface DirPrepOrganizeArgs {
4
7
  sessionId: string;