dsh-plugin-codegraph-panel 0.5.0 → 0.5.2

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.
Files changed (2) hide show
  1. package/lib/host.js +21 -0
  2. package/package.json +5 -2
package/lib/host.js ADDED
@@ -0,0 +1,21 @@
1
+ /**
2
+ * dsh-plugin-codegraph-panel · 宿主端入口(空实现)
3
+ *
4
+ * 为什么需要它:cordis loader 按包的宿主入口加载一行插件,插件列表里那颗「运行中 / 未运行」
5
+ * 的指示灯就是这一步的结论。本包只有浏览器半边——`lib/client.js` 是给
6
+ * `window.__ModuleLoader__` 的 CJS factory,在 Node 里一 import 就碰 `window` 直接抛错——
7
+ * 所以宿主入口必须是一个能 import、什么都不做的空模块。没有它,整行就是「未运行」。
8
+ *
9
+ * 浏览器半边不靠这个入口:它由 package.json 的 `dsh.client` 声明发现,宿主把客户端模块
10
+ * 下发给浏览器,和这里无关。宿主侧真正提供数据的是 `packages/tool/src/panel.ts` 注册的
11
+ * `/dsh-plugin-codegraph/api/*` 路由。
12
+ * @module dsh-plugin-codegraph-panel/host
13
+ */
14
+
15
+ /**
16
+ * Host plugin body — this package has no host-side behavior.
17
+ */
18
+ export function apply() {
19
+ // Intentionally empty. The package exists for its browser half; this function only makes the
20
+ // package loadable so the loader can report it as running.
21
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-plugin-codegraph-panel",
3
- "version": "0.5.0",
3
+ "version": "0.5.2",
4
4
  "description": "Settings-page panel for dsh-plugin-codegraph: a 代码图谱 tab that shows one workspace's index status and can rebuild it. Browser half only — every number comes from the host's /dsh-plugin-codegraph/api/* routes.",
5
5
  "keywords": [
6
6
  "dsh",
@@ -23,8 +23,11 @@
23
23
  "homepage": "https://github.com/CC19990113/dsh-plugin-codegraph#readme",
24
24
  "bugs": "https://github.com/CC19990113/dsh-plugin-codegraph/issues",
25
25
  "type": "module",
26
- "main": "lib/client.js",
26
+ "main": "lib/host.js",
27
27
  "exports": {
28
+ ".": {
29
+ "default": "./lib/host.js"
30
+ },
28
31
  "./client": {
29
32
  "default": "./lib/client.js"
30
33
  },