dsh-seework 0.1.2 → 0.1.3

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 (3) hide show
  1. package/lib/client.js +123 -123
  2. package/lib/index.js +46 -9
  3. package/package.json +1 -1
package/lib/client.js CHANGED
@@ -351,12 +351,12 @@ if (typeof document !== "undefined" && document.querySelector("style[data-plugin
351
351
  document.head.appendChild(tag);
352
352
  }
353
353
  var controls_module_css_default = {
354
- "toggle": "thCGja_toggle",
355
- "button": "thCGja_button",
354
+ "pill": "thCGja_pill",
355
+ "input": "thCGja_input",
356
356
  "buttonOutline": "thCGja_buttonOutline",
357
357
  "buttonPrimary": "thCGja_buttonPrimary",
358
- "input": "thCGja_input",
359
- "pill": "thCGja_pill"
358
+ "button": "thCGja_button",
359
+ "toggle": "thCGja_toggle"
360
360
  };
361
361
 
362
362
  //#endregion
@@ -446,28 +446,28 @@ if (typeof document !== "undefined" && document.querySelector("style[data-plugin
446
446
  document.head.appendChild(tag);
447
447
  }
448
448
  var settings_card_module_css_default = {
449
+ "hint": "-qAsGW_hint",
450
+ "grid": "-qAsGW_grid",
451
+ "section": "-qAsGW_section",
449
452
  "select": "-qAsGW_select",
450
453
  "label": "-qAsGW_label",
451
- "field": "-qAsGW_field",
452
- "modelId": "-qAsGW_modelId",
453
- "row": "-qAsGW_row",
454
- "grid": "-qAsGW_grid",
455
- "muted": "-qAsGW_muted",
456
454
  "modelMain": "-qAsGW_modelMain",
457
- "modelList": "-qAsGW_modelList",
458
- "switches": "-qAsGW_switches",
459
- "ok": "-qAsGW_ok",
460
- "modelName": "-qAsGW_modelName",
461
- "section": "-qAsGW_section",
462
- "hint": "-qAsGW_hint",
463
- "dirRow": "-qAsGW_dirRow",
464
455
  "modelCapability": "-qAsGW_modelCapability",
456
+ "dirRow": "-qAsGW_dirRow",
457
+ "muted": "-qAsGW_muted",
458
+ "sectionTitle": "-qAsGW_sectionTitle",
459
+ "modelRow": "-qAsGW_modelRow",
460
+ "modelId": "-qAsGW_modelId",
465
461
  "card": "-qAsGW_card",
466
- "fixedValue": "-qAsGW_fixedValue",
462
+ "row": "-qAsGW_row",
463
+ "modelName": "-qAsGW_modelName",
464
+ "ok": "-qAsGW_ok",
467
465
  "warn": "-qAsGW_warn",
468
- "modelRow": "-qAsGW_modelRow",
469
- "sectionTitle": "-qAsGW_sectionTitle",
470
- "error": "-qAsGW_error"
466
+ "modelList": "-qAsGW_modelList",
467
+ "switches": "-qAsGW_switches",
468
+ "error": "-qAsGW_error",
469
+ "field": "-qAsGW_field",
470
+ "fixedValue": "-qAsGW_fixedValue"
471
471
  };
472
472
 
473
473
  //#endregion
@@ -1738,18 +1738,18 @@ if (typeof document !== "undefined" && document.querySelector("style[data-plugin
1738
1738
  document.head.appendChild(tag);
1739
1739
  }
1740
1740
  var annotation_editor_module_css_default = {
1741
+ "overlay": "_2rIzNq_overlay",
1741
1742
  "frame": "_2rIzNq_frame",
1742
- "stage": "_2rIzNq_stage",
1743
- "swatch": "_2rIzNq_swatch",
1744
- "textEntry": "_2rIzNq_textEntry",
1745
1743
  "hint": "_2rIzNq_hint",
1744
+ "gap": "_2rIzNq_gap",
1746
1745
  "panel": "_2rIzNq_panel",
1747
- "tool": "_2rIzNq_tool",
1748
1746
  "picture": "_2rIzNq_picture",
1749
- "surface": "_2rIzNq_surface",
1750
- "overlay": "_2rIzNq_overlay",
1751
1747
  "toolbar": "_2rIzNq_toolbar",
1752
- "gap": "_2rIzNq_gap"
1748
+ "swatch": "_2rIzNq_swatch",
1749
+ "stage": "_2rIzNq_stage",
1750
+ "surface": "_2rIzNq_surface",
1751
+ "textEntry": "_2rIzNq_textEntry",
1752
+ "tool": "_2rIzNq_tool"
1753
1753
  };
1754
1754
 
1755
1755
  //#endregion
@@ -2490,13 +2490,13 @@ if (typeof document !== "undefined" && document.querySelector("style[data-plugin
2490
2490
  document.head.appendChild(tag);
2491
2491
  }
2492
2492
  var crop_overlay_module_css_default = {
2493
- "size": "XFdWdq_size",
2493
+ "box": "XFdWdq_box",
2494
+ "handle": "XFdWdq_handle",
2494
2495
  "thirdH": "XFdWdq_thirdH",
2495
2496
  "thirdV": "XFdWdq_thirdV",
2496
- "handle": "XFdWdq_handle",
2497
- "box": "XFdWdq_box",
2498
2497
  "toolbar": "XFdWdq_toolbar",
2499
- "select": "XFdWdq_select"
2498
+ "select": "XFdWdq_select",
2499
+ "size": "XFdWdq_size"
2500
2500
  };
2501
2501
 
2502
2502
  //#endregion
@@ -2751,8 +2751,8 @@ if (typeof document !== "undefined" && document.querySelector("style[data-plugin
2751
2751
  document.head.appendChild(tag);
2752
2752
  }
2753
2753
  var node_floating_bar_module_css_default = {
2754
- "button": "f48Z3q_button",
2755
- "bar": "f48Z3q_bar"
2754
+ "bar": "f48Z3q_bar",
2755
+ "button": "f48Z3q_button"
2756
2756
  };
2757
2757
 
2758
2758
  //#endregion
@@ -3161,51 +3161,51 @@ if (typeof document !== "undefined" && document.querySelector("style[data-plugin
3161
3161
  document.head.appendChild(tag);
3162
3162
  }
3163
3163
  var canvas_module_css_default = {
3164
- "surface": "ozm_ga_surface",
3165
- "pickerGrid": "ozm_ga_pickerGrid",
3166
- "cardText": "ozm_ga_cardText",
3167
- "boardMeta": "ozm_ga_boardMeta",
3168
- "zoomLabel": "ozm_ga_zoomLabel",
3169
- "boardRowActive": "ozm_ga_boardRowActive",
3170
- "boardName": "ozm_ga_boardName",
3171
- "saveState": "ozm_ga_saveState",
3172
- "saveWarn": "ozm_ga_saveWarn",
3173
- "notice": "ozm_ga_notice",
3174
- "picker": "ozm_ga_picker",
3175
- "listFooter": "ozm_ga_listFooter",
3164
+ "cardBar": "ozm_ga_cardBar",
3165
+ "grid": "ozm_ga_grid",
3166
+ "boardTitle": "ozm_ga_boardTitle",
3176
3167
  "resizeHandle": "ozm_ga_resizeHandle",
3177
- "toolbarGap": "ozm_ga_toolbarGap",
3168
+ "layers": "ozm_ga_layers",
3169
+ "list": "ozm_ga_list",
3170
+ "layersHead": "ozm_ga_layersHead",
3171
+ "zoomLabel": "ozm_ga_zoomLabel",
3172
+ "card": "ozm_ga_card",
3173
+ "cardBody": "ozm_ga_cardBody",
3174
+ "layerName": "ozm_ga_layerName",
3178
3175
  "layerRowActive": "ozm_ga_layerRowActive",
3179
- "boardDelete": "ozm_ga_boardDelete",
3176
+ "notice": "ozm_ga_notice",
3180
3177
  "saveOk": "ozm_ga_saveOk",
3181
- "cardBody": "ozm_ga_cardBody",
3182
- "layerBadge": "ozm_ga_layerBadge",
3183
3178
  "pickerHeader": "ozm_ga_pickerHeader",
3184
- "workspace": "ozm_ga_workspace",
3185
- "grid": "ozm_ga_grid",
3186
- "listHeader": "ozm_ga_listHeader",
3179
+ "boardRow": "ozm_ga_boardRow",
3180
+ "saveState": "ozm_ga_saveState",
3187
3181
  "boardList": "ozm_ga_boardList",
3188
- "world": "ozm_ga_world",
3189
- "cardBar": "ozm_ga_cardBar",
3190
- "list": "ozm_ga_list",
3191
- "card": "ozm_ga_card",
3192
- "layerRow": "ozm_ga_layerRow",
3193
- "saveError": "ozm_ga_saveError",
3194
- "boardTitle": "ozm_ga_boardTitle",
3195
- "saveIdle": "ozm_ga_saveIdle",
3196
- "layerIndex": "ozm_ga_layerIndex",
3197
- "layers": "ozm_ga_layers",
3182
+ "boardName": "ozm_ga_boardName",
3183
+ "boardDelete": "ozm_ga_boardDelete",
3184
+ "cardSelected": "ozm_ga_cardSelected",
3185
+ "boardRowActive": "ozm_ga_boardRowActive",
3186
+ "listFooter": "ozm_ga_listFooter",
3198
3187
  "pickerItem": "ozm_ga_pickerItem",
3199
- "boardRow": "ozm_ga_boardRow",
3188
+ "boardMeta": "ozm_ga_boardMeta",
3189
+ "toolbarGap": "ozm_ga_toolbarGap",
3190
+ "listHeader": "ozm_ga_listHeader",
3191
+ "saveError": "ozm_ga_saveError",
3200
3192
  "muted": "ozm_ga_muted",
3201
- "layersHead": "ozm_ga_layersHead",
3193
+ "workspace": "ozm_ga_workspace",
3194
+ "toolbar": "ozm_ga_toolbar",
3202
3195
  "cardClose": "ozm_ga_cardClose",
3196
+ "saveWarn": "ozm_ga_saveWarn",
3197
+ "layerRow": "ozm_ga_layerRow",
3198
+ "layerBadge": "ozm_ga_layerBadge",
3203
3199
  "pickerBackdrop": "ozm_ga_pickerBackdrop",
3204
- "cardSelected": "ozm_ga_cardSelected",
3205
- "layerName": "ozm_ga_layerName",
3206
- "toolbar": "ozm_ga_toolbar",
3207
3200
  "cardKind": "ozm_ga_cardKind",
3208
- "cardImage": "ozm_ga_cardImage"
3201
+ "saveIdle": "ozm_ga_saveIdle",
3202
+ "picker": "ozm_ga_picker",
3203
+ "pickerGrid": "ozm_ga_pickerGrid",
3204
+ "cardImage": "ozm_ga_cardImage",
3205
+ "surface": "ozm_ga_surface",
3206
+ "world": "ozm_ga_world",
3207
+ "layerIndex": "ozm_ga_layerIndex",
3208
+ "cardText": "ozm_ga_cardText"
3209
3209
  };
3210
3210
 
3211
3211
  //#endregion
@@ -4207,8 +4207,8 @@ if (typeof document !== "undefined" && document.querySelector("style[data-plugin
4207
4207
  document.head.appendChild(tag);
4208
4208
  }
4209
4209
  var surfaces_module_css_default = {
4210
- "launcherCount": "Ba4yDq_launcherCount",
4211
4210
  "launcher": "Ba4yDq_launcher",
4211
+ "launcherCount": "Ba4yDq_launcherCount",
4212
4212
  "dock": "Ba4yDq_dock"
4213
4213
  };
4214
4214
 
@@ -4533,14 +4533,14 @@ if (typeof document !== "undefined" && document.querySelector("style[data-plugin
4533
4533
  document.head.appendChild(tag);
4534
4534
  }
4535
4535
  var canvas_shell_module_css_default = {
4536
- "body": "UxbmzW_body",
4536
+ "overlay": "UxbmzW_overlay",
4537
+ "tabHeader": "UxbmzW_tabHeader",
4538
+ "close": "UxbmzW_close",
4537
4539
  "tabList": "UxbmzW_tabList",
4538
4540
  "headerHint": "UxbmzW_headerHint",
4539
4541
  "header": "UxbmzW_header",
4540
- "tabOverlay": "UxbmzW_tabOverlay",
4541
- "close": "UxbmzW_close",
4542
- "overlay": "UxbmzW_overlay",
4543
- "tabHeader": "UxbmzW_tabHeader"
4542
+ "body": "UxbmzW_body",
4543
+ "tabOverlay": "UxbmzW_tabOverlay"
4544
4544
  };
4545
4545
 
4546
4546
  //#endregion
@@ -4987,30 +4987,30 @@ if (typeof document !== "undefined" && document.querySelector("style[data-plugin
4987
4987
  document.head.appendChild(tag);
4988
4988
  }
4989
4989
  var library_detail_module_css_default = {
4990
+ "badgePanel": "_3Sls3q_badgePanel",
4990
4991
  "files": "_3Sls3q_files",
4992
+ "pagerText": "_3Sls3q_pagerText",
4993
+ "badgeCanvas": "_3Sls3q_badgeCanvas",
4991
4994
  "stage": "_3Sls3q_stage",
4992
- "blockHead": "_3Sls3q_blockHead",
4995
+ "fileLink": "_3Sls3q_fileLink",
4996
+ "facts": "_3Sls3q_facts",
4997
+ "blockTitle": "_3Sls3q_blockTitle",
4998
+ "sideHeader": "_3Sls3q_sideHeader",
4999
+ "side": "_3Sls3q_side",
5000
+ "copyButton": "_3Sls3q_copyButton",
4993
5001
  "confirm": "_3Sls3q_confirm",
5002
+ "blockHead": "_3Sls3q_blockHead",
5003
+ "prompt": "_3Sls3q_prompt",
4994
5004
  "sheet": "_3Sls3q_sheet",
5005
+ "image": "_3Sls3q_image",
4995
5006
  "block": "_3Sls3q_block",
4996
- "side": "_3Sls3q_side",
4997
- "confirmActions": "_3Sls3q_confirmActions",
4998
- "sideHeader": "_3Sls3q_sideHeader",
4999
5007
  "badge": "_3Sls3q_badge",
5000
5008
  "muted": "_3Sls3q_muted",
5001
- "prompt": "_3Sls3q_prompt",
5002
- "badgePanel": "_3Sls3q_badgePanel",
5003
- "blockTitle": "_3Sls3q_blockTitle",
5004
- "copyButton": "_3Sls3q_copyButton",
5005
- "fileLink": "_3Sls3q_fileLink",
5006
- "pager": "_3Sls3q_pager",
5007
5009
  "stageActions": "_3Sls3q_stageActions",
5008
5010
  "overlay": "_3Sls3q_overlay",
5009
- "pagerText": "_3Sls3q_pagerText",
5010
- "image": "_3Sls3q_image",
5011
- "facts": "_3Sls3q_facts",
5012
- "badgeAgent": "_3Sls3q_badgeAgent",
5013
- "badgeCanvas": "_3Sls3q_badgeCanvas"
5011
+ "pager": "_3Sls3q_pager",
5012
+ "confirmActions": "_3Sls3q_confirmActions",
5013
+ "badgeAgent": "_3Sls3q_badgeAgent"
5014
5014
  };
5015
5015
 
5016
5016
  //#endregion
@@ -5289,39 +5289,39 @@ if (typeof document !== "undefined" && document.querySelector("style[data-plugin
5289
5289
  document.head.appendChild(tag);
5290
5290
  }
5291
5291
  var library_panel_module_css_default = {
5292
- "title": "KrCZHW_title",
5293
- "thumb": "KrCZHW_thumb",
5294
- "linkButton": "KrCZHW_linkButton",
5292
+ "meta": "KrCZHW_meta",
5295
5293
  "headerActions": "KrCZHW_headerActions",
5294
+ "chip": "KrCZHW_chip",
5295
+ "filters": "KrCZHW_filters",
5296
+ "emptyTitle": "KrCZHW_emptyTitle",
5296
5297
  "cardBody": "KrCZHW_cardBody",
5297
- "panel": "KrCZHW_panel",
5298
- "metaText": "KrCZHW_metaText",
5299
- "meta": "KrCZHW_meta",
5300
- "card": "KrCZHW_card",
5301
- "addButton": "KrCZHW_addButton",
5302
- "muted": "KrCZHW_muted",
5303
- "header": "KrCZHW_header",
5304
- "thumbButton": "KrCZHW_thumbButton",
5305
5298
  "footerPath": "KrCZHW_footerPath",
5306
- "filters": "KrCZHW_filters",
5307
- "titleRow": "KrCZHW_titleRow",
5308
- "body": "KrCZHW_body",
5299
+ "muted": "KrCZHW_muted",
5309
5300
  "day": "KrCZHW_day",
5310
- "tabPanel": "KrCZHW_tabPanel",
5311
- "filterLabel": "KrCZHW_filterLabel",
5312
- "filter": "KrCZHW_filter",
5313
- "dayCount": "KrCZHW_dayCount",
5314
- "chip": "KrCZHW_chip",
5315
- "list": "KrCZHW_list",
5316
- "footer": "KrCZHW_footer",
5317
- "empty": "KrCZHW_empty",
5318
5301
  "error": "KrCZHW_error",
5319
- "dayHeader": "KrCZHW_dayHeader",
5302
+ "panel": "KrCZHW_panel",
5303
+ "titleRow": "KrCZHW_titleRow",
5304
+ "thumb": "KrCZHW_thumb",
5305
+ "header": "KrCZHW_header",
5306
+ "list": "KrCZHW_list",
5320
5307
  "imageCount": "KrCZHW_imageCount",
5308
+ "title": "KrCZHW_title",
5321
5309
  "activeFilters": "KrCZHW_activeFilters",
5310
+ "dayHeader": "KrCZHW_dayHeader",
5311
+ "tabPanel": "KrCZHW_tabPanel",
5312
+ "promptButton": "KrCZHW_promptButton",
5313
+ "empty": "KrCZHW_empty",
5314
+ "filterLabel": "KrCZHW_filterLabel",
5315
+ "thumbButton": "KrCZHW_thumbButton",
5322
5316
  "select": "KrCZHW_select",
5323
- "emptyTitle": "KrCZHW_emptyTitle",
5324
- "promptButton": "KrCZHW_promptButton"
5317
+ "addButton": "KrCZHW_addButton",
5318
+ "footer": "KrCZHW_footer",
5319
+ "filter": "KrCZHW_filter",
5320
+ "dayCount": "KrCZHW_dayCount",
5321
+ "body": "KrCZHW_body",
5322
+ "metaText": "KrCZHW_metaText",
5323
+ "linkButton": "KrCZHW_linkButton",
5324
+ "card": "KrCZHW_card"
5325
5325
  };
5326
5326
 
5327
5327
  //#endregion
@@ -5889,9 +5889,9 @@ if (typeof document !== "undefined" && document.querySelector("style[data-plugin
5889
5889
  document.head.appendChild(tag);
5890
5890
  }
5891
5891
  var chat_images_module_css_default = {
5892
- "actions": "J_jP7q_actions",
5893
5892
  "backdrop": "J_jP7q_backdrop",
5894
5893
  "full": "J_jP7q_full",
5894
+ "actions": "J_jP7q_actions",
5895
5895
  "action": "J_jP7q_action"
5896
5896
  };
5897
5897
 
@@ -6053,17 +6053,17 @@ if (typeof document !== "undefined" && document.querySelector("style[data-plugin
6053
6053
  document.head.appendChild(tag);
6054
6054
  }
6055
6055
  var tool_card_module_css_default = {
6056
+ "header": "jG4yBG_header",
6057
+ "missing": "jG4yBG_missing",
6058
+ "image": "jG4yBG_image",
6056
6059
  "thumb": "jG4yBG_thumb",
6057
- "action": "jG4yBG_action",
6058
- "message": "jG4yBG_message",
6059
- "imageLink": "jG4yBG_imageLink",
6060
+ "root": "jG4yBG_root",
6061
+ "status": "jG4yBG_status",
6060
6062
  "title": "jG4yBG_title",
6061
- "image": "jG4yBG_image",
6062
- "missing": "jG4yBG_missing",
6063
+ "message": "jG4yBG_message",
6063
6064
  "images": "jG4yBG_images",
6064
- "header": "jG4yBG_header",
6065
- "status": "jG4yBG_status",
6066
- "root": "jG4yBG_root"
6065
+ "action": "jG4yBG_action",
6066
+ "imageLink": "jG4yBG_imageLink"
6067
6067
  };
6068
6068
 
6069
6069
  //#endregion
package/lib/index.js CHANGED
@@ -3017,6 +3017,8 @@ function isNewer(candidate, current) {
3017
3017
  //#region src/update.ts
3018
3018
  /** The package name this plugin is published under. */
3019
3019
  const PACKAGE_NAME = "dsh-seework";
3020
+ /** Where to ask when the host names no registry. */
3021
+ const DEFAULT_REGISTRY = "https://registry.npmjs.org";
3020
3022
  /** The spec an update installs. */
3021
3023
  const UPDATE_SPEC = `${PACKAGE_NAME}@latest`;
3022
3024
  /**
@@ -3068,13 +3070,48 @@ function readInstallKind(profileDir, packageName = PACKAGE_NAME) {
3068
3070
  }
3069
3071
  }
3070
3072
  /**
3073
+ * The registry to ask, out of the host's configuration.
3074
+ *
3075
+ * `resolved` is what pnpm itself reads now; `registry` is the configured one,
3076
+ * and `null` there means "pnpm's own configuration decides" — in which case the
3077
+ * public registry is the honest guess rather than an error.
3078
+ *
3079
+ * @param registries - the host's answer.
3080
+ * @returns a registry base URL.
3081
+ */
3082
+ function registryOf(registries) {
3083
+ return registries.resolved ?? registries.registry ?? DEFAULT_REGISTRY;
3084
+ }
3085
+ /**
3086
+ * Read the newest published version out of a registry's `latest` document.
3087
+ *
3088
+ * `/<name>/latest` is the one endpoint that answers "what is the newest
3089
+ * release" without pulling the whole packument, and it is what `npm view
3090
+ * <name> version` reads.
3091
+ *
3092
+ * @param query - the registry, the package, and an optional fetch stub.
3093
+ * @returns the version string.
3094
+ * @throws when the registry refuses, answers with a non-JSON body, or carries no
3095
+ * version — each of which must surface as an error rather than as "up to date".
3096
+ */
3097
+ async function latestVersionFrom(query) {
3098
+ const base = query.registry.replace(/\/+$/, "");
3099
+ const path$1 = query.packageName.replace("/", "%2F");
3100
+ const response = await (query.fetchFn ?? fetch)(`${base}/${path$1}/latest`, { headers: { accept: "application/json" } });
3101
+ if (!response.ok) throw new Error(`注册表返回 HTTP ${response.status}`);
3102
+ const version = (await response.json()).version;
3103
+ if (typeof version !== "string" || version === "") throw new Error("注册表返回的文档里没有版本号");
3104
+ return version;
3105
+ }
3106
+ /**
3071
3107
  * Ask the registry what the newest version is, and compare it with ours.
3072
3108
  *
3073
3109
  * Never throws: the settings card has to keep rendering when the registry is
3074
3110
  * unreachable, when the host has no plugin manager, and when this is a local
3075
3111
  * install that has no update to offer.
3076
3112
  *
3077
- * @param deps - the host seam, the running version, and how it was installed.
3113
+ * @param deps - the host seam, the running version, how it was installed, and an
3114
+ * optional fetch stub.
3078
3115
  * @returns the status the card renders.
3079
3116
  */
3080
3117
  async function checkForUpdate(deps) {
@@ -3089,15 +3126,15 @@ async function checkForUpdate(deps) {
3089
3126
  error: "宿主没有提供插件管理服务。"
3090
3127
  };
3091
3128
  try {
3092
- const inspection = await deps.host.inspect(PACKAGE_NAME);
3093
- if (inspection.status !== "accepted" || inspection.version === void 0) return {
3094
- ...base,
3095
- error: inspection.reason ?? "注册表上没有这个包。"
3096
- };
3129
+ const latest = await latestVersionFrom({
3130
+ registry: registryOf(await deps.host.registries()),
3131
+ packageName: PACKAGE_NAME,
3132
+ ...deps.fetchFn === void 0 ? {} : { fetchFn: deps.fetchFn }
3133
+ });
3097
3134
  return {
3098
3135
  ...base,
3099
- latest: inspection.version,
3100
- updateAvailable: isNewer(inspection.version, deps.current)
3136
+ latest,
3137
+ updateAvailable: isNewer(latest, deps.current)
3101
3138
  };
3102
3139
  } catch (error) {
3103
3140
  return {
@@ -3894,7 +3931,7 @@ function probeUpdateHost(ctx) {
3894
3931
  const service = ctx.get("pluginManager");
3895
3932
  if (service === null || service === void 0) return void 0;
3896
3933
  const candidate = service;
3897
- if (typeof candidate.inspect !== "function" || typeof candidate.installBundle !== "function") return void 0;
3934
+ if (typeof candidate.registries !== "function" || typeof candidate.installBundle !== "function") return void 0;
3898
3935
  return candidate;
3899
3936
  }
3900
3937
  /**
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "dsh-seework",
3
3
  "description": "SeeWork — DeepSeek Harness plugin for SeeAI Hub: generate images inside the agent conversation with your own SeeAI Hub API key (OpenAI-compatible /v1/images/generations), browse everything you generated in the sidebar material library, and arrange it on a canvas.",
4
- "version": "0.1.2",
4
+ "version": "0.1.3",
5
5
  "license": "MIT",
6
6
  "repository": {
7
7
  "type": "git",