@huanlin/dsh-plugin-aigc-canvas 0.1.6 → 0.1.7

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.
@@ -10,7 +10,6 @@
10
10
  * - webServer: @deepseek-ai/dsh-host-webserver
11
11
  * - sessions: @deepseek-ai/dsh-session (host side)
12
12
  * - loader: @cordisjs/plugin-loader (entry options)
13
- * - invariants: @deepseek-ai/dsh-invariants
14
13
  * - effect: the DSH-vendored cordis lifecycle helper
15
14
  *
16
15
  * Drift from upstream is contained to this file.
@@ -85,12 +84,8 @@ export interface AigcLoaderEntry {
85
84
  export interface AigcLoader {
86
85
  entries(): Iterable<AigcLoaderEntry>;
87
86
  }
88
- /** The invariants service face (mirror of @deepseek-ai/dsh-invariants). */
89
- export interface AigcInvariantsService {
90
- register(packageName: string, installer: (ctx: Context, fail: (message: string) => never) => void | Promise<void>): () => void;
91
- }
92
87
  /**
93
- * The invariant service face restated (mirror of @deepseek-ai/dsh-invariants).
88
+ * The tools service face restated.
94
89
  * Mirrored here exactly like better-sidebar does — the dual-cordis-instance
95
90
  * resolution otherwise hides the upstream augmentation. The `tools` service
96
91
  * face is declared in `./types.d.ts` (the ambient cordis module augmentation)
@@ -106,7 +101,6 @@ declare module 'cordis' {
106
101
  sessions: AigcSessionStore;
107
102
  agents: AigcAgentRegistry;
108
103
  loader: AigcLoader;
109
- invariants: AigcInvariantsService;
110
104
  /**
111
105
  * The host-side AIGC canvas registry: holds the per-session element
112
106
  * table (prompts + generated assets) and edges. Provided by the host
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@huanlin/dsh-plugin-aigc-canvas",
3
- "version": "0.1.6",
3
+ "version": "0.1.7",
4
4
  "description": "DSH plugin: an infinite free canvas for the better-sidebar plus provider-agnostic generation. Exposes aigc_get_provider_info / aigc_http_request (endpoint + apiKey auto-attached) / aigc_provider_set_instructions / aigc_canvas_place / aigc_canvas_link / aigc_canvas_unlink / aigc_canvas_list_elements tools; generated files are placed at arbitrary canvas positions and can be double-clicked for prompt + params.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -11,10 +11,6 @@
11
11
  "types": "./lib/index.d.ts",
12
12
  "import": "./lib/index.js"
13
13
  },
14
- "./invariant": {
15
- "types": "./lib/invariant.d.ts",
16
- "import": "./lib/invariant.js"
17
- },
18
14
  "./client": {
19
15
  "types": "./lib/client.d.ts",
20
16
  "default": "./lib/client.js"
@@ -39,9 +35,9 @@
39
35
  },
40
36
  "client": {
41
37
  "inject": [
42
- "@deepseek-ai/dsh-client-runtime",
43
38
  "@deepseek-ai/dsh-client-locale",
44
39
  "@deepseek-ai/dsh-client-ui-conversation",
40
+ "@deepseek-ai/dsh-client-ui-renderer",
45
41
  "@deepseek-ai/dsh-client-ui-slots",
46
42
  "@deepseek-ai/dsh-client-ui-settings",
47
43
  "@deepseek-ai/dsh-client-ui-primitives"
@@ -54,14 +50,14 @@
54
50
  "ws": "^8.18.0"
55
51
  },
56
52
  "peerDependencies": {
53
+ "@deepseek-ai/cordis": "^4.0.1",
57
54
  "@deepseek-ai/dsh-client-locale": "^0.0.1",
58
- "@deepseek-ai/dsh-client-runtime": "^0.0.1",
59
55
  "@deepseek-ai/dsh-client-ui-primitives": "^0.0.1",
60
56
  "@deepseek-ai/dsh-client-ui-settings": "^0.0.1",
61
57
  "@deepseek-ai/dsh-client-ui-conversation": "^0.0.1",
58
+ "@deepseek-ai/dsh-client-ui-renderer": "^0.0.1",
62
59
  "@deepseek-ai/dsh-client-ui-slots": "^0.0.1",
63
60
  "@deepseek-ai/dsh-host-webserver": "^0.0.1",
64
- "@deepseek-ai/dsh-invariants": "^0.0.1",
65
61
  "@deepseek-ai/dsh-session": "^0.0.1",
66
62
  "@deepseek-ai/dsh-tools": "^0.0.1",
67
63
  "cordis": "^4.0.0-rc.7",
@@ -70,10 +66,10 @@
70
66
  "react-dom": "^18.2.0"
71
67
  },
72
68
  "peerDependenciesMeta": {
73
- "@deepseek-ai/dsh-client-locale": {
69
+ "@deepseek-ai/cordis": {
74
70
  "optional": true
75
71
  },
76
- "@deepseek-ai/dsh-client-runtime": {
72
+ "@deepseek-ai/dsh-client-locale": {
77
73
  "optional": true
78
74
  },
79
75
  "@deepseek-ai/dsh-client-ui-primitives": {
@@ -85,13 +81,13 @@
85
81
  "@deepseek-ai/dsh-client-ui-conversation": {
86
82
  "optional": true
87
83
  },
88
- "@deepseek-ai/dsh-client-ui-slots": {
84
+ "@deepseek-ai/dsh-client-ui-renderer": {
89
85
  "optional": true
90
86
  },
91
- "@deepseek-ai/dsh-host-webserver": {
87
+ "@deepseek-ai/dsh-client-ui-slots": {
92
88
  "optional": true
93
89
  },
94
- "@deepseek-ai/dsh-invariants": {
90
+ "@deepseek-ai/dsh-host-webserver": {
95
91
  "optional": true
96
92
  },
97
93
  "@deepseek-ai/dsh-session": {
@@ -114,14 +110,14 @@
114
110
  }
115
111
  },
116
112
  "devDependencies": {
113
+ "@deepseek-ai/cordis": "link:C:/Users/Administrator/.dsh/source/current/vendor/cordis",
117
114
  "@deepseek-ai/dsh-client-locale": "link:C:/Users/Administrator/.dsh/source/current/packages/client/locale",
118
- "@deepseek-ai/dsh-client-runtime": "link:C:/Users/Administrator/.dsh/source/current/packages/client/runtime",
119
115
  "@deepseek-ai/dsh-client-ui-primitives": "link:C:/Users/Administrator/.dsh/source/current/packages/client/ui-primitives",
120
116
  "@deepseek-ai/dsh-client-ui-settings": "link:C:/Users/Administrator/.dsh/source/current/packages/client/ui-settings",
121
117
  "@deepseek-ai/dsh-client-ui-conversation": "link:C:/Users/Administrator/.dsh/source/current/packages/client/ui-conversation",
118
+ "@deepseek-ai/dsh-client-ui-renderer": "link:C:/Users/Administrator/.dsh/source/current/packages/client/ui-renderer",
122
119
  "@deepseek-ai/dsh-client-ui-slots": "link:C:/Users/Administrator/.dsh/source/current/packages/client/ui-slots",
123
120
  "@deepseek-ai/dsh-host-webserver": "link:C:/Users/Administrator/.dsh/source/current/packages/host/webserver",
124
- "@deepseek-ai/dsh-invariants": "link:C:/Users/Administrator/.dsh/source/current/packages/support/invariants",
125
121
  "@deepseek-ai/dsh-session": "link:C:/Users/Administrator/.dsh/source/current/packages/core/session",
126
122
  "@deepseek-ai/dsh-tools": "link:C:/Users/Administrator/.dsh/source/current/packages/core/tools",
127
123
  "@types/node": "^24.0.0",
@@ -1,15 +0,0 @@
1
- /**
2
- * Package-owned invariant companion for `@huanlin/dsh-plugin-aigc-canvas`.
3
- * @module @huanlin/dsh-plugin-aigc-canvas/invariant
4
- */
5
- import type { Context } from './context-types.js';
6
- /** Cordis companion plugin name. */
7
- export declare const name = "dsh-aigc-canvas-invariant";
8
- /** Service required before the companion can reserve package ownership. */
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>;
package/lib/invariant.js DELETED
@@ -1,22 +0,0 @@
1
- //#region src/invariant.ts
2
- const PACKAGE_NAME = "@huanlin/dsh-plugin-aigc-canvas";
3
- /** Cordis companion plugin name. */
4
- const name = "dsh-aigc-canvas-invariant";
5
- /** Service required before the companion can reserve package ownership. */
6
- const inject = ["invariants"];
7
- /**
8
- * No runtime invariant: the canvas owns no service state or event protocol
9
- * of its own beyond the registry's own assertions (uuid existence, kind
10
- * checks) — every route is mounted under the host's webServer fence, the
11
- * element table is exercised by the smoke spec, and the client view is a
12
- * pure projection of the host state.
13
- */
14
- const install = () => {};
15
- /**
16
- * Register this package's invariant companion.
17
- * @param ctx - Cordis context carrying the invariant service.
18
- * @returns the installed registration's disposer after setup succeeds.
19
- */
20
- const apply = (ctx) => Promise.resolve(ctx.invariants.register(PACKAGE_NAME, install));
21
- //#endregion
22
- export { apply, inject, name };