@dsh-plugin/dsh-loader 1.3.1 → 1.3.2-dev.33147555949

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.
@@ -1,6 +1,6 @@
1
1
  import { type DshLoaderUi } from './ui/index.js';
2
2
  export * from './ui/index.js';
3
- export { createClientAPI, installClient, installSettingsFetchInterceptor, ModuleNotFoundError, } from './client.js';
3
+ export { createClientAPI, ensureDshModulesGlobal, installClient, installSettingsFetchInterceptor, ModuleNotFoundError, } from './client.js';
4
4
  /** cordis plugin name (matches the npm package name and the bundle id). */
5
5
  export declare const name = "@dsh-plugin/dsh-loader";
6
6
  /** dshloader consumes no cordis service; it only provides. */
@@ -28,13 +28,26 @@ interface ClientContextLike {
28
28
  get?: (name: string) => unknown;
29
29
  effect?: (fn: () => unknown) => unknown;
30
30
  provide?: (name: string, value: unknown) => unknown;
31
+ /**
32
+ * The cordis plugin-loader service. dsh 0.1.0-rc.8+ carries the client
33
+ * module system here (`ctx.loader.internal`) instead of exposing it as the
34
+ * legacy `window.__DSH_MODULES__` global — see ensureDshModulesGlobal.
35
+ */
36
+ loader?: {
37
+ internal?: {
38
+ import(specifier: string): Promise<unknown>;
39
+ };
40
+ };
31
41
  }
32
42
  /**
33
43
  * cordis client-plugin entry.
34
44
  *
35
- * Mounts the infrastructure first (so the `__ModuleLoader__` wrapper is in place
36
- * before any sibling bundle materialises), then the UI facade, then publishes it
37
- * both as the `dshLoaderUi` cordis service (ordered access) and on
38
- * `window.__dshLoader__.ui` (ad-hoc access from non-cordis code).
45
+ * Mirrors the client module system back onto `window.__DSH_MODULES__` first
46
+ * (legacy plugins' lazy chunks read the global; dsh 0.1.0-rc.8+ stopped
47
+ * installing it), then mounts the infrastructure (so the `__ModuleLoader__`
48
+ * wrapper is in place before any sibling bundle materialises), then the UI
49
+ * facade, then publishes it both as the `dshLoaderUi` cordis service
50
+ * (ordered access) and on `window.__dshLoader__.ui` (ad-hoc access from
51
+ * non-cordis code).
39
52
  */
40
53
  export declare function apply(ctx: ClientContextLike): void;
@@ -1,2 +1,2 @@
1
- export declare const LOADER_VERSION = "1.3.1";
1
+ export declare const LOADER_VERSION = "1.3.2";
2
2
  export declare const LOG_PREFIX = "[dshloader]";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dsh-plugin/dsh-loader",
3
- "version": "1.3.1",
3
+ "version": "1.3.2-dev.33147555949",
4
4
  "description": "Runtime compatibility shim for dsh (DeepSeek Harness) cordis bundle plugins: decouples third-party plugins from real dsh internal service names, module paths, and RPC details via a version-aware adapter registry.",
5
5
  "type": "module",
6
6
  "repository": {