@deepseek-ai/dsh-cmdline 0.1.2-alpha.2 → 0.1.2-alpha.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.i18n.yaml CHANGED
@@ -2,5 +2,5 @@
2
2
  # side as of the last confirmed-consistent state. Both languages carry equal authority;
3
3
  # after editing either side, bring the other along and re-record with:
4
4
  # pnpm run verify-translation-pairing --write packages/boot/cmdline/README.md
5
- README.md: 7ea825d8ef309cc295e3334bf5ae220e3e0524e5
6
- README.zh.md: 9f5f876ec6d1b408e2156dc3075499885032a141
5
+ README.md: da23d16fac10790d549ab839adce2f3578bf5400
6
+ README.zh.md: ed5ec93b20d5bd357b1cf19618fa36aaa555c41b
package/README.md CHANGED
@@ -97,7 +97,7 @@ The parse path is one small family with two owners: `provideCmdline` freezes the
97
97
  | File | Role |
98
98
  |---|---|
99
99
  | [`src/index.ts`](src/index.ts) | `CmdlineArgs`/`AppExit` types, `provideCmdline`, `parseCmdline`, commander exit/output routing |
100
- | [`src/invariant.ts`](src/invariant.ts) | Invariant companion (no runtime invariant; Loader settlement reports missing services) |
100
+ | — | No runtime invariant companion is published; `cmdlineArgs` is an immutable launcher fact that any number of ordinary plugins may read. App-owned providers and consumers use normal Cordis service injection, whose missing dependencies are already reported by Loader settlement. |
101
101
 
102
102
  </details>
103
103
 
package/README.zh.md CHANGED
@@ -97,7 +97,7 @@ kind: "package-library"
97
97
  | 文件 | 职责 |
98
98
  |---|---|
99
99
  | [`src/index.ts`](src/index.ts) | `CmdlineArgs`/`AppExit` 类型、`provideCmdline`、`parseCmdline`、commander 退出/输出路由 |
100
- | [`src/invariant.ts`](src/invariant.ts) | 不变式伴生插件(无运行时不变式;Loader 结算会报告缺失的服务) |
100
+ | — | 不发布运行时不变式伴生入口;Loader 结算会报告缺失的服务。 |
101
101
 
102
102
  </details>
103
103
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@deepseek-ai/dsh-cmdline",
3
3
  "description": "Immutable command-line handoff from a dsh launcher to any app plugin that injects cmdlineArgs",
4
- "version": "0.1.2-alpha.2",
4
+ "version": "0.1.2-alpha.4",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
@@ -18,29 +18,22 @@
18
18
  "types": "./lib/types/index.d.ts",
19
19
  "default": "./lib/index.js"
20
20
  },
21
- "./invariant": {
22
- "types": "./lib/types/invariant.d.ts",
23
- "default": "./lib/invariant.js"
24
- },
25
21
  "./src/*": "./src/*",
26
22
  "./package.json": "./package.json"
27
23
  },
28
24
  "files": [
29
25
  "lib/index.js",
30
- "lib/invariant.js",
31
26
  "lib/types/**/*.d.ts"
32
27
  ],
33
28
  "license": "MIT",
34
29
  "peerDependencies": {
35
30
  "@deepseek-ai/cordis-plugin-loader": "^1.0.3",
36
- "@deepseek-ai/dsh-invariants": "^0.1.2-alpha.2",
37
31
  "@deepseek-ai/cordis": "^4.0.2"
38
32
  },
39
33
  "devDependencies": {
40
34
  "commander": "^15.0.0",
41
35
  "@deepseek-ai/cordis-plugin-include": "^1.0.7",
42
36
  "@deepseek-ai/cordis-plugin-loader": "^1.0.3",
43
- "@deepseek-ai/dsh-invariants": "^0.1.2-alpha.2",
44
37
  "@deepseek-ai/cordis": "^4.0.2"
45
38
  }
46
39
  }
package/lib/invariant.js DELETED
@@ -1,25 +0,0 @@
1
- //#region lib/types/invariant.js
2
- /**
3
- * Package-owned invariant companion for `@deepseek-ai/dsh-cmdline`.
4
- * @module @deepseek-ai/dsh-cmdline/invariant
5
- */
6
- const PACKAGE_NAME = "@deepseek-ai/dsh-cmdline";
7
- /** Cordis companion plugin name. */
8
- const name = "cmdline-invariant";
9
- /** Service required before the companion can register. */
10
- const inject = ["invariants"];
11
- /**
12
- * No runtime invariant: `cmdlineArgs` is an immutable launcher fact that any
13
- * number of ordinary plugins may read. App-owned providers and consumers use
14
- * normal Cordis service injection, whose missing dependencies are already
15
- * reported by Loader settlement.
16
- */
17
- const install = () => {};
18
- /**
19
- * Register this package's invariant companion.
20
- * @param ctx - Cordis context carrying the invariant service.
21
- * @returns the installed registration's disposer after setup succeeds.
22
- */
23
- const apply = (ctx) => Promise.resolve(ctx.invariants.register(PACKAGE_NAME, install));
24
- //#endregion
25
- export { apply, inject, name };
@@ -1,16 +0,0 @@
1
- /**
2
- * Package-owned invariant companion for `@deepseek-ai/dsh-cmdline`.
3
- * @module @deepseek-ai/dsh-cmdline/invariant
4
- */
5
- import type { Context } from '@deepseek-ai/cordis';
6
- /** Cordis companion plugin name. */
7
- export declare const name = "cmdline-invariant";
8
- /** Service required before the companion can register. */
9
- export declare const inject: string[];
10
- /**
11
- * Register this package's invariant companion.
12
- * @param ctx - Cordis context carrying the invariant service.
13
- * @returns the installed registration's disposer after setup succeeds.
14
- */
15
- export declare const apply: (ctx: Context) => Promise<() => void>;
16
- //# sourceMappingURL=invariant.d.ts.map