@deepseek-ai/dsh-plugin-manager 0.2.2-rc.5 → 0.2.3-alpha.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.
- package/README.i18n.yaml +8 -8
- package/README.md +5 -4
- package/README.zh.md +5 -4
- package/lib/index.js +39 -7
- package/lib/typert.host.js +28 -28
- package/lib/typert.remote-client.d.ts.map +1 -1
- package/lib/typert.remote-client.js +26 -26
- package/lib/types/catalog.d.ts +14 -0
- package/lib/types/catalog.d.ts.map +1 -0
- package/lib/types/catalog.js +16 -0
- package/lib/types/catalog.js.map +1 -0
- package/lib/types/error.d.ts +25 -0
- package/lib/types/error.d.ts.map +1 -0
- package/lib/types/error.js +38 -0
- package/lib/types/error.js.map +1 -0
- package/lib/types/index.d.ts +5 -0
- package/lib/types/index.d.ts.map +1 -1
- package/lib/types/index.js +15 -5
- package/lib/types/index.js.map +1 -1
- package/lib/types/registry.js +1 -1
- package/lib/types/registry.js.map +1 -1
- package/lib/types/tools.js +8 -8
- package/lib/types/tools.js.map +1 -1
- package/package.json +44 -39
- package/src/catalog.ts +18 -0
- package/src/error.ts +47 -0
- package/src/index.ts +15 -5
- package/src/registry.ts +1 -1
- package/src/tools.ts +8 -8
package/README.i18n.yaml
CHANGED
|
@@ -15,8 +15,8 @@
|
|
|
15
15
|
en: 87679c51aa3693f5
|
|
16
16
|
zh: 11684a48a5806afb
|
|
17
17
|
/deepseek-ai-dsh-plugin-manager/use-this-package:
|
|
18
|
-
en:
|
|
19
|
-
zh:
|
|
18
|
+
en: 6fb033e80e3e6629
|
|
19
|
+
zh: 5403f5ae8650ca1f
|
|
20
20
|
/deepseek-ai-dsh-plugin-manager/use-this-package/version-compatibility-and-exemptions:
|
|
21
21
|
en: 483285658e267dd5
|
|
22
22
|
zh: 846bec2daac59a96
|
|
@@ -30,8 +30,8 @@
|
|
|
30
30
|
en: c224bfcb3eb3dbd2
|
|
31
31
|
zh: 8b9c96970a90dccc
|
|
32
32
|
/deepseek-ai-dsh-plugin-manager/further-exploration:
|
|
33
|
-
en:
|
|
34
|
-
zh:
|
|
33
|
+
en: b151a14acbf93f00
|
|
34
|
+
zh: f304e2ea5c7c7d0f
|
|
35
35
|
/deepseek-ai-dsh-plugin-manager/model-experience:
|
|
36
36
|
en: 215e7ba838619b7b
|
|
37
37
|
zh: a311da3843709f90
|
|
@@ -39,8 +39,8 @@
|
|
|
39
39
|
en: 1815ec6ce56c80d4
|
|
40
40
|
zh: 2d7ac75d3b25eb6b
|
|
41
41
|
/deepseek-ai-dsh-plugin-manager/model-experience/management-tool/what-the-model-sees:
|
|
42
|
-
en:
|
|
43
|
-
zh:
|
|
42
|
+
en: 9bb316cf4b47ba60
|
|
43
|
+
zh: 1c719feedf36e2f3
|
|
44
44
|
/deepseek-ai-dsh-plugin-manager/model-experience/management-tool/token-effect:
|
|
45
45
|
en: bc70208bd361dbcd
|
|
46
46
|
zh: bb651d6066066c6c
|
|
@@ -48,8 +48,8 @@
|
|
|
48
48
|
en: c29f60be7f3edc1a
|
|
49
49
|
zh: d9b9388b96ef95cc
|
|
50
50
|
/deepseek-ai-dsh-plugin-manager/known-limitations-and-deferred-work:
|
|
51
|
-
en:
|
|
52
|
-
zh:
|
|
51
|
+
en: d8ea2d28e9e8c3e7
|
|
52
|
+
zh: 4efd7e073dde1b96
|
|
53
53
|
/deepseek-ai-dsh-plugin-manager/known-limitations-and-deferred-work/failure-behavior:
|
|
54
54
|
en: 3fde425e82bbd0f4
|
|
55
55
|
zh: 531e2365e7d67480
|
package/README.md
CHANGED
|
@@ -28,7 +28,7 @@ Manage the current profile's plugins without editing configuration by hand. Enab
|
|
|
28
28
|
<a id="use-this-package"></a>
|
|
29
29
|
## Use this package
|
|
30
30
|
|
|
31
|
-
Base-backed profiles provide the manager. In Web, the sidebar's **Plugins** page ([ui-plugin-manager](../../client/ui-plugin-manager/README.md)) manages the profile's bundles and their uniquely addressable rows
|
|
31
|
+
Base-backed profiles provide the manager. In Web, the sidebar's **Plugins** page ([ui-plugin-manager](../../client/ui-plugin-manager/README.md)) manages the profile's bundles and their uniquely addressable rows. Agent-preset rows remain read-only. The `plugin_manager` tool exposes the same operations and is enabled in the Standard, PTC, and Creator presets. Other Web presets keep it disabled by default. The full SDK profile enables it at profile scope in native/PTC mode; without HMR, saved changes return `restart-required` with `no-hmr` and apply after the runtime restarts. Every tool action requires `danger-full-access` or approval for that call. Under lower sandbox modes, `ask` requests approval; `never`, rejection, cancellation, or an unavailable approval channel prevents execution. An approval leaves the session permission mode unchanged. Profile changes persist across sessions, and installed Host code executes in-process outside the workspace sandbox. Dependency build-script approval remains separate.
|
|
32
32
|
|
|
33
33
|
For a deployment without agent presets other than the full SDK profile, enable the tool in the profile patch. Package installation/removal requires pnpm on `PATH` or an explicit `pnpmCommand`; a launcher-provided package manager takes precedence. Preset-backed sessions use their preset’s `tool-plugin-manager` entry.
|
|
34
34
|
|
|
@@ -43,6 +43,8 @@ Bundle platform declarations are checked before saving an enabled selection. Uns
|
|
|
43
43
|
|
|
44
44
|
`listBundles` retains default-hidden bundles and derives `listedByDefault` from each package’s visibility declaration and Host platform support. Unsupported bundles are hidden from default GUI lists, including More; explicit profile dependencies and saved selections remain manageable with the platform reason and deselection available. The offline Official catalog carries the same package-owned platform declaration, so uninstalled entries are checked without resolving provider code or querying a registry. These checks do not change selection or activation. A non-boolean declaration returns a metadata diagnostic, because the launcher does not read it. A selected bundle that cannot load remains in `listBundles` with an `error` and no row carrying an `entryId`; `enabled` records the saved selection, not successful loading. The plugin page marks it as not running and allows deselection. A broken bundle cannot be enabled. Management bundles remain protected if their files become unreadable.
|
|
45
45
|
|
|
46
|
+
Use `bundleCatalogEntry(bundle)` from `@deepseek-ai/dsh-plugin-manager/catalog` to project a bundle into an English recommendation catalog. It returns the name, title, description and current `enabled` value. Missing display text falls back to the package name and manifest description.
|
|
47
|
+
|
|
46
48
|
`listBundles` includes optional display `meta` for each bundle and its declared plugin rows, including disabled bundles. The Client selects a language from these values. The separate `description` field is the bundle's raw `package.json.description`; a metadata diagnostic does not block management. `source` gives a profile dependency as a spec `pnpm add` accepts: a git address or URL as recorded without the user information of an http(s) URL (a query string stays as recorded), a `file:` or `link:` path made absolute against the profile or the home directory for `~`, and a registry range, tag, or alias after the package name, as is any spec of a package installed under another name; a bundle the installation supplies has none, even when the profile also depends on it, because the installation's copy is the one that loads. The `plugin_manager` tool omits UI display metadata and update eligibility from list results.
|
|
47
49
|
|
|
48
50
|
`listBundles` marks shipped optional bundles and on-demand catalog entries as `official`, independently of package installation. `availability` identifies a readable installation-provided or profile package, or `missing`; on-demand catalog entries exclude undeclared transitive copies. `installed` only records whether the profile declares the dependency. An absent on-demand entry carries embedded localized metadata and a host-derived `installTarget` containing the running DSH version and install spec, without registry access. Profile-declared packages with unreadable files retain their declaration and expose the normal error.
|
|
@@ -143,7 +145,6 @@ The `@deepseek-ai/dsh-plugin-manager/diagnostic` entry supplies Desktop Host and
|
|
|
143
145
|
- [App boot](../app-boot/README.md) — profile layers and startup policy.
|
|
144
146
|
- [Plugin inventory](../../host/plugin-inventory/README.md) — current Loader and preset observations.
|
|
145
147
|
- [Plugin manager page](../../client/ui-plugin-manager/README.md) — the Web sidebar page over this service.
|
|
146
|
-
- [Plugin settings](../../client/ui-settings-plugin-inventory/README.md) — the read-only Web inventory.
|
|
147
148
|
|
|
148
149
|
<a id="model-experience"></a>
|
|
149
150
|
## Model Experience
|
|
@@ -152,7 +153,7 @@ The `@deepseek-ai/dsh-plugin-manager/diagnostic` entry supplies Desktop Host and
|
|
|
152
153
|
|
|
153
154
|
#### What the model sees
|
|
154
155
|
|
|
155
|
-
The [`plugin_manager` tool](../../../docs/tool-catalog.md#deepseek-aidsh-plugin-manager) lists plugin entries and bundles and performs profile-wide changes. Its results include saved-state changes, application status and package diagnostics. A change result that is not plainly applied adds `nextStep`, a sentence derived from its application status, refusal code, package-manager failure kind or restart reason that says what the model does next or tells the user. Management operations do not inject messages into Agents.
|
|
156
|
+
The [`plugin_manager` tool](../../../docs/tool-catalog.md#deepseek-aidsh-plugin-manager) lists plugin entries and bundles and performs profile-wide changes. Its results include saved-state changes, application status and package diagnostics. A change result that is not plainly applied adds `nextStep`, a sentence derived from its application status, refusal code, package-manager failure kind or restart reason that says what the model does next or tells the user. Management operations do not inject messages into Agents. A missing or unbounded argument fails as `ToolArgsError` with `INVALID_ARGS`. A failure before a change starts or while reading the profile throws `PluginManagerError`: `PLUGIN_MANAGER_PROFILE_READ_FAILED` when a profile or installation manifest or the profile patches cannot be read, and `PLUGIN_MANAGER_UNAVAILABLE` after the manager is disposed; another writer holding the profile lock past `lockWaitMs` fails with the atomic-write `FileLockError` `FILE_LOCK_TIMEOUT`; other operation failures stay in the change result.
|
|
156
157
|
|
|
157
158
|
#### Token effect
|
|
158
159
|
|
|
@@ -178,7 +179,7 @@ Tool results append to the transcript. Enabling or disabling other tools can cha
|
|
|
178
179
|
- Startup-only profiles cannot remove packages used to start the current process; stop it and use `dsh plugin`.
|
|
179
180
|
- The manager cannot disable its own management components, change another profile, or edit an agent preset's composition.
|
|
180
181
|
- A failed removal may leave dependencies partially changed, and a failed or cancelled installation can leave downloaded files under `node_modules` or the pnpm store. Inactive dependencies with missing files remain removable. Diagnostic logs remain under the profile's `.plugin-manager/logs` directory.
|
|
181
|
-
- Management results describe Host activation. Browser synchronization failures appear separately in the
|
|
182
|
+
- Management results describe Host activation. Browser synchronization failures appear separately in the Plugins page's synchronization notice.
|
|
182
183
|
- Desktop package operations remain owned by the Desktop shell.
|
|
183
184
|
|
|
184
185
|
<a id="failure-behavior"></a>
|
package/README.zh.md
CHANGED
|
@@ -28,7 +28,7 @@ kind: "package-reference"
|
|
|
28
28
|
<a id="use-this-package"></a>
|
|
29
29
|
## 使用本包
|
|
30
30
|
|
|
31
|
-
基于 base 的 profile 提供管理服务。在 Web 中,侧边栏的**插件**页([ui-plugin-manager](../../client/ui-plugin-manager/README.zh.md))管理 profile
|
|
31
|
+
基于 base 的 profile 提供管理服务。在 Web 中,侧边栏的**插件**页([ui-plugin-manager](../../client/ui-plugin-manager/README.zh.md))管理 profile 的组合包及其能唯一定位的行。Agent 预设条目保持只读。`plugin_manager` 工具提供相同操作,在标准、PTC 和 Creator 预设中启用。其他 Web 预设仍默认禁用。完整 SDK profile 在 profile 作用域为 native/PTC 模式启用此工具;没有 HMR 时,保存的变更返回 `restart-required` 和 `no-hmr`,在运行时重启后应用。每个工具操作都要求 `danger-full-access` 或本次调用的批准。在较低沙箱模式下,`ask` 会请求审批;`never`、拒绝、取消或审批渠道不可用时均不执行。批准不改变会话的权限模式。profile 变更跨会话持久化,已安装的 Host 代码在宿主进程内运行,不受工作区沙箱限制。依赖构建脚本仍需单独批准。
|
|
32
32
|
|
|
33
33
|
除完整 SDK profile 外,未使用 Agent 预设的部署在 profile patch 中启用工具;安装/移除包要求 PATH 中有 pnpm,或显式配置 `pnpmCommand`,启动器提供的包管理器优先;使用预设的会话由其预设中的 `tool-plugin-manager` 条目控制。
|
|
34
34
|
|
|
@@ -43,6 +43,8 @@ kind: "package-reference"
|
|
|
43
43
|
|
|
44
44
|
`listBundles` 保留默认隐藏的组合包,根据各包的展示声明和 Host 平台支持范围生成 `listedByDefault`。不支持的组合包默认不出现在主列表或“更多”中;profile 显式安装的依赖和已保存的选择仍可管理,显示平台原因并允许关闭。官方离线目录携带同一份包级平台声明,因此无需解析提供方代码或查询注册表,也能检查未安装的条目。这些检查不改变选择或激活状态。声明不是布尔值时返回元数据诊断,因为启动器不读取该声明。已选择但无法加载的组合包仍会出现在 `listBundles` 中,携带 `error`,且没有带 `entryId` 的行;`enabled` 表示保存的选择,不代表加载成功。插件页面将其标记为未运行,并允许取消选择。损坏的组合包无法启用。管理组合包的文件变得不可读后仍受保护。
|
|
45
45
|
|
|
46
|
+
推荐 Skill 使用 `@deepseek-ai/dsh-plugin-manager/catalog` 导出的 `bundleCatalogEntry(bundle)` 生成英文目录条目,包含包名、标题、描述和当前的 `enabled` 值。缺少展示文案时,标题回退到包名,描述回退到清单中的描述。
|
|
47
|
+
|
|
46
48
|
`listBundles` 为各组合包及其声明的插件行提供可选的展示 `meta`,包括已禁用的组合包。Client 从这些值中选择语言。单独的 `description` 字段是该组合包原始的 `package.json.description`;元信息诊断不会阻止管理操作。`source` 以 `pnpm add` 接受的 spec 给出 profile 依赖:git 地址或 URL 按记录给出,但去掉 http(s) URL 的 user information(查询字符串保持原样);`file:` 或 `link:` 路径按 profile 目录解析为绝对路径,`~` 展开为主目录;注册表版本范围、标签或别名接在包名的 `@` 之后,以别名安装的包的 spec 也是如此。安装提供的组合包没有该字段,即使 profile 也依赖它,因为实际加载的是安装中的副本。`plugin_manager` 工具的列表结果不包含 UI 展示元信息和更新资格。
|
|
47
49
|
|
|
48
50
|
`listBundles` 将随附可选组合包和按需目录项标为 `official`,与包的安装状态独立。`availability` 表示可读取的安装随附包、profile 包,或 `missing`;按需目录项不计入未声明的传递依赖副本。`installed` 仅表示 profile 是否声明该依赖。尚未安装的按需条目携带内嵌的本地化元信息,以及 Host 生成、包含当前 DSH 版本与安装 spec 的 `installTarget`,无需访问注册表。profile 已声明但文件不可读的包保留依赖声明,并展示原有错误。
|
|
@@ -143,7 +145,6 @@ service 运行若在 `idleTimeoutMs` 内没有任何捕获输出即被终止,
|
|
|
143
145
|
- [App boot](../app-boot/README.zh.md)——profile 配置层与启动策略。
|
|
144
146
|
- [Plugin inventory](../../host/plugin-inventory/README.zh.md)——当前 Loader 和预设状态。
|
|
145
147
|
- [插件管理页](../../client/ui-plugin-manager/README.zh.md)——基于本服务的 Web 侧边栏页面。
|
|
146
|
-
- [Plugin settings](../../client/ui-settings-plugin-inventory/README.zh.md)——只读的 Web 清单。
|
|
147
148
|
|
|
148
149
|
<a id="model-experience"></a>
|
|
149
150
|
## 模型体验
|
|
@@ -152,7 +153,7 @@ service 运行若在 `idleTimeoutMs` 内没有任何捕获输出即被终止,
|
|
|
152
153
|
|
|
153
154
|
#### 模型看到什么
|
|
154
155
|
|
|
155
|
-
[`plugin_manager` 工具](../../../docs/tool-catalog.zh.md#deepseek-aidsh-plugin-manager) 列出插件条目和组合包,并执行影响整个 profile 的改动。结果包含保存状态变化、应用状态和包管理诊断。未直接应用的变更结果会增加 `nextStep`,这是一句根据应用状态、拒绝代码、包管理器失败类型或重启原因生成的说明,指出模型下一步做什么或告诉用户什么。管理操作不会向 Agent
|
|
156
|
+
[`plugin_manager` 工具](../../../docs/tool-catalog.zh.md#deepseek-aidsh-plugin-manager) 列出插件条目和组合包,并执行影响整个 profile 的改动。结果包含保存状态变化、应用状态和包管理诊断。未直接应用的变更结果会增加 `nextStep`,这是一句根据应用状态、拒绝代码、包管理器失败类型或重启原因生成的说明,指出模型下一步做什么或告诉用户什么。管理操作不会向 Agent 注入消息。缺少参数或参数越界时以带 `INVALID_ARGS` 的 `ToolArgsError` 失败。变更开始前或读取 profile 时的失败抛出 `PluginManagerError`:profile 或安装清单、profile 补丁无法读取时为 `PLUGIN_MANAGER_PROFILE_READ_FAILED`,管理器已卸载时为 `PLUGIN_MANAGER_UNAVAILABLE`;其他写入方持有 profile 锁超过 `lockWaitMs` 时以 atomic-write 的 `FileLockError` `FILE_LOCK_TIMEOUT` 失败;其他操作失败仍记录在变更结果中。
|
|
156
157
|
|
|
157
158
|
#### Token 影响
|
|
158
159
|
|
|
@@ -178,7 +179,7 @@ service 运行若在 `idleTimeoutMs` 内没有任何捕获输出即被终止,
|
|
|
178
179
|
- 仅启动时加载的 profile 不能删除当前进程启动时使用的包;停止进程后使用 `dsh plugin`。
|
|
179
180
|
- 管理器不能关闭自身所需的管理组件、修改其他 profile 或编辑 agent 预设组合。
|
|
180
181
|
- 失败的删除可能留下部分依赖改动,失败或被取消的安装可能在 `node_modules` 或 pnpm 缓存中留下已下载文件。文件缺失的未启用依赖仍可删除。诊断日志保留在 profile 的 `.plugin-manager/logs` 目录中。
|
|
181
|
-
- 管理结果描述 Host
|
|
182
|
+
- 管理结果描述 Host 激活状态。浏览器同步失败会在插件页面的同步提示中单独显示。
|
|
182
183
|
- Desktop 包管理操作仍由 Desktop shell 负责。
|
|
183
184
|
|
|
184
185
|
<a id="failure-behavior"></a>
|
package/lib/index.js
CHANGED
|
@@ -17,6 +17,7 @@ import { execa } from "execa";
|
|
|
17
17
|
import { scrubbedParentEnv } from "@deepseek-ai/dsh-subprocess";
|
|
18
18
|
import { homedir } from "node:os";
|
|
19
19
|
import { isAlias, isMap, isNode, isScalar, isSeq, parseDocument, visit } from "yaml";
|
|
20
|
+
import { HarnessError } from "@deepseek-ai/dsh-error";
|
|
20
21
|
import hostedGitInfo from "hosted-git-info";
|
|
21
22
|
//#region lib/types/bundle-detail.js
|
|
22
23
|
/**
|
|
@@ -1106,7 +1107,7 @@ function normalizeRegistry(url) {
|
|
|
1106
1107
|
let parsed;
|
|
1107
1108
|
try {
|
|
1108
1109
|
parsed = new URL(url);
|
|
1109
|
-
} catch {}
|
|
1110
|
+
} catch (_invalidUrl) {}
|
|
1110
1111
|
if (parsed === void 0 || parsed.protocol !== "http:" && parsed.protocol !== "https:") throw new Error(`a registry must be an http(s) URL: ${url}`);
|
|
1111
1112
|
if (!parsed.pathname.endsWith("/")) parsed.pathname += "/";
|
|
1112
1113
|
return parsed.href;
|
|
@@ -1239,6 +1240,31 @@ async function writePluginEnabled(profile, id, name, enabled) {
|
|
|
1239
1240
|
return true;
|
|
1240
1241
|
}
|
|
1241
1242
|
//#endregion
|
|
1243
|
+
//#region lib/types/error.js
|
|
1244
|
+
/** Typed failures thrown by plugin management calls rather than reported in a change result. */
|
|
1245
|
+
/** Typed plugin management failure; `code` is one of {@link PLUGIN_MANAGER_ERROR_CODES}. */
|
|
1246
|
+
var PluginManagerError = class extends HarnessError {
|
|
1247
|
+
code;
|
|
1248
|
+
constructor(message, code, options) {
|
|
1249
|
+
super(message, code, options);
|
|
1250
|
+
this.name = "PluginManagerError";
|
|
1251
|
+
this.code = code;
|
|
1252
|
+
}
|
|
1253
|
+
};
|
|
1254
|
+
/**
|
|
1255
|
+
* Run one synchronous profile read, converting its failure.
|
|
1256
|
+
* @param read - reads and parses profile files.
|
|
1257
|
+
* @returns the read value.
|
|
1258
|
+
* @throws {PluginManagerError} `PLUGIN_MANAGER_PROFILE_READ_FAILED` with the original error as `cause`.
|
|
1259
|
+
*/
|
|
1260
|
+
function readProfileState(read) {
|
|
1261
|
+
try {
|
|
1262
|
+
return read();
|
|
1263
|
+
} catch (error) {
|
|
1264
|
+
throw new PluginManagerError(`plugin-manager: failed to read the profile: ${error.message}`, "PLUGIN_MANAGER_PROFILE_READ_FAILED", { cause: error });
|
|
1265
|
+
}
|
|
1266
|
+
}
|
|
1267
|
+
//#endregion
|
|
1242
1268
|
//#region lib/types/build-approval.js
|
|
1243
1269
|
/** Approve pnpm's pending dependency scripts in the current profile's workspace settings. */
|
|
1244
1270
|
/** Value pnpm leaves for a build script that still needs a decision. */
|
|
@@ -2167,9 +2193,11 @@ let PluginManager = (() => {
|
|
|
2167
2193
|
}
|
|
2168
2194
|
/** Read current plugins, including why a row cannot be changed through the profile patch.
|
|
2169
2195
|
* @returns Current runtime entries with persistent patch targets.
|
|
2196
|
+
* @throws {PluginManagerError} `PLUGIN_MANAGER_PROFILE_READ_FAILED` to in-process callers when the profile patches
|
|
2197
|
+
* cannot be read; Remote callers receive `gateway/internal`.
|
|
2170
2198
|
*/
|
|
2171
2199
|
async listPlugins() {
|
|
2172
|
-
const rows = flatten(composeEntries([readProfilePatches("dsh", this.profile)]));
|
|
2200
|
+
const rows = readProfileState(() => flatten(composeEntries([readProfilePatches("dsh", this.profile)])));
|
|
2173
2201
|
return (await readPluginInventory(this.ctx)).entries.map((entry) => {
|
|
2174
2202
|
const actual = [...this.ctx.loader.entries()].find((row) => row.id === entry.entryId);
|
|
2175
2203
|
const candidates = rows.filter((row) => row.id === actual?.options.id);
|
|
@@ -2192,6 +2220,8 @@ let PluginManager = (() => {
|
|
|
2192
2220
|
* A dependency without a bundle patch is listed, as a `not-bundle` problem, only while it is selected.
|
|
2193
2221
|
* @returns Package versions, manifest descriptions, the installable spec of profile dependencies, rows, optional
|
|
2194
2222
|
* display metadata, activation selections, whether the installation offers the bundle, and removal availability.
|
|
2223
|
+
* @throws {PluginManagerError} `PLUGIN_MANAGER_PROFILE_READ_FAILED` to in-process callers when a profile or
|
|
2224
|
+
* installation manifest cannot be read; Remote callers receive `gateway/internal`.
|
|
2195
2225
|
*/
|
|
2196
2226
|
listBundles() {
|
|
2197
2227
|
return Promise.resolve(this.readBundles().map((bundle) => {
|
|
@@ -2204,12 +2234,14 @@ let PluginManager = (() => {
|
|
|
2204
2234
|
}
|
|
2205
2235
|
/** The bundle inventory before update eligibility, which is derived from each listed bundle. */
|
|
2206
2236
|
readBundles() {
|
|
2207
|
-
const manifest =
|
|
2208
|
-
|
|
2237
|
+
const { manifest, exemptions, installation } = readProfileState(() => ({
|
|
2238
|
+
manifest: readProfileManifest("dsh", this.profile.dir),
|
|
2239
|
+
exemptions: readProfileVersionExemptions(this.profile.dir),
|
|
2240
|
+
installation: JSON.parse(readFileSync(this.profile.installAnchor, "utf8"))
|
|
2241
|
+
}));
|
|
2209
2242
|
const selected = bundleSelection(manifest);
|
|
2210
2243
|
const recorded = manifest.dependencies ?? {};
|
|
2211
2244
|
const dependencies = Object.keys(recorded);
|
|
2212
|
-
const installation = JSON.parse(readFileSync(this.profile.installAnchor, "utf8"));
|
|
2213
2245
|
const catalog = new Map(OFFICIAL_ON_DEMAND_CATALOG.map((entry) => [entry.packageName, entry]));
|
|
2214
2246
|
const names = [...new Set([
|
|
2215
2247
|
...selected,
|
|
@@ -3346,7 +3378,7 @@ let PluginManager = (() => {
|
|
|
3346
3378
|
let settled;
|
|
3347
3379
|
try {
|
|
3348
3380
|
settled = await withFileLock(join(this.profile.dir, "package.json"), async () => {
|
|
3349
|
-
this.abort.signal.
|
|
3381
|
+
if (this.abort.signal.aborted) throw new PluginManagerError("plugin-manager: the manager is disposed; retry after the Host reloads it", "PLUGIN_MANAGER_UNAVAILABLE");
|
|
3350
3382
|
const before = this.diskState();
|
|
3351
3383
|
const result = {
|
|
3352
3384
|
...request,
|
|
@@ -3439,4 +3471,4 @@ let PluginManager = (() => {
|
|
|
3439
3471
|
};
|
|
3440
3472
|
})();
|
|
3441
3473
|
//#endregion
|
|
3442
|
-
export { InvalidInstallSpecError, PluginManager, PluginManager as default, classifyInstallFailure, parseInstallSpec, pinnedGitOrigin };
|
|
3474
|
+
export { InvalidInstallSpecError, PluginManager, PluginManager as default, PluginManagerError, classifyInstallFailure, parseInstallSpec, pinnedGitOrigin };
|
package/lib/typert.host.js
CHANGED
|
@@ -18,7 +18,7 @@ const _deepseek_ai_dsh_plugin_manager_pluginManager_inspect_parameter_1$schema =
|
|
|
18
18
|
let _deepseek_ai_dsh_plugin_manager_pluginManager_inspect_result$schema$value
|
|
19
19
|
const _deepseek_ai_dsh_plugin_manager_pluginManager_inspect_result$schema = () => (_deepseek_ai_dsh_plugin_manager_pluginManager_inspect_result$schema$value ??= z.union([z.object({
|
|
20
20
|
'status': z.literal("accepted").readonly(),
|
|
21
|
-
'kind': z.union([z.literal("
|
|
21
|
+
'kind': z.union([z.literal("path"), z.literal("registry"), z.literal("git"), z.literal("tarball")]).readonly(),
|
|
22
22
|
'name': z.string().readonly().optional(),
|
|
23
23
|
'version': z.string().readonly().optional(),
|
|
24
24
|
'description': z.string().readonly().optional().describe('`description` of the package manifest.'),
|
|
@@ -48,7 +48,7 @@ const _deepseek_ai_dsh_plugin_manager_pluginManager_installBundle_parameter_1$sc
|
|
|
48
48
|
let _deepseek_ai_dsh_plugin_manager_pluginManager_installBundle_result$schema$value
|
|
49
49
|
const _deepseek_ai_dsh_plugin_manager_pluginManager_installBundle_result$schema = () => (_deepseek_ai_dsh_plugin_manager_pluginManager_installBundle_result$schema$value ??= z.object({
|
|
50
50
|
'changed': z.boolean(),
|
|
51
|
-
'application': z.union([z.literal("failed"), z.literal("
|
|
51
|
+
'application': z.union([z.literal("failed"), z.literal("applied"), z.literal("cancelled"), z.literal("restart-required"), z.literal("overridden")]).describe('`cancelled` is an installation the caller stopped, its files restored.'),
|
|
52
52
|
'restartReason': z.union([z.literal("no-hmr"), z.literal("package-moved"), z.literal("host-module"), z.literal("unmanaged-plugin"), z.literal("module-comparison")]).optional().describe('Present with `restart-required`: why the change takes effect only at the next start.'),
|
|
53
53
|
'stage': z.union([z.literal("remove"), z.literal("install"), z.literal("enable")]).describe('Last attempted step; successful installation can proceed to enablement.'),
|
|
54
54
|
'target': z.string(),
|
|
@@ -90,7 +90,7 @@ let _deepseek_ai_dsh_plugin_manager_pluginManager_listBundles_result$schema$valu
|
|
|
90
90
|
const _deepseek_ai_dsh_plugin_manager_pluginManager_listBundles_result$schema = () => (_deepseek_ai_dsh_plugin_manager_pluginManager_listBundles_result$schema$value ??= z.array(z.object({
|
|
91
91
|
'name': z.string(),
|
|
92
92
|
'official': z.boolean().describe('Project-maintained shipped optional bundle or on-demand catalog entry, independent of installation and selection.'),
|
|
93
|
-
'availability': z.union([z.literal("profile"), z.literal("
|
|
93
|
+
'availability': z.union([z.literal("profile"), z.literal("missing"), z.literal("installation")]).describe('Readable package location; on-demand catalog entries exclude undeclared transitive copies, and declared files may be missing.'),
|
|
94
94
|
'installTarget': z.object({
|
|
95
95
|
'spec': z.string(),
|
|
96
96
|
'version': z.string(),
|
|
@@ -254,7 +254,7 @@ const _deepseek_ai_dsh_plugin_manager_pluginManager_removeBundle_parameter_0$sch
|
|
|
254
254
|
let _deepseek_ai_dsh_plugin_manager_pluginManager_removeBundle_result$schema$value
|
|
255
255
|
const _deepseek_ai_dsh_plugin_manager_pluginManager_removeBundle_result$schema = () => (_deepseek_ai_dsh_plugin_manager_pluginManager_removeBundle_result$schema$value ??= z.object({
|
|
256
256
|
'changed': z.boolean(),
|
|
257
|
-
'application': z.union([z.literal("failed"), z.literal("
|
|
257
|
+
'application': z.union([z.literal("failed"), z.literal("applied"), z.literal("cancelled"), z.literal("restart-required"), z.literal("overridden")]).describe('`cancelled` is an installation the caller stopped, its files restored.'),
|
|
258
258
|
'restartReason': z.union([z.literal("no-hmr"), z.literal("package-moved"), z.literal("host-module"), z.literal("unmanaged-plugin"), z.literal("module-comparison")]).optional().describe('Present with `restart-required`: why the change takes effect only at the next start.'),
|
|
259
259
|
'stage': z.union([z.literal("remove"), z.literal("install"), z.literal("enable")]).describe('Last attempted step; successful installation can proceed to enablement.'),
|
|
260
260
|
'target': z.string(),
|
|
@@ -299,7 +299,7 @@ const _deepseek_ai_dsh_plugin_manager_pluginManager_setBundleEnabled_parameter_1
|
|
|
299
299
|
let _deepseek_ai_dsh_plugin_manager_pluginManager_setBundleEnabled_result$schema$value
|
|
300
300
|
const _deepseek_ai_dsh_plugin_manager_pluginManager_setBundleEnabled_result$schema = () => (_deepseek_ai_dsh_plugin_manager_pluginManager_setBundleEnabled_result$schema$value ??= z.object({
|
|
301
301
|
'changed': z.boolean(),
|
|
302
|
-
'application': z.union([z.literal("failed"), z.literal("
|
|
302
|
+
'application': z.union([z.literal("failed"), z.literal("applied"), z.literal("cancelled"), z.literal("restart-required"), z.literal("overridden")]).describe('`cancelled` is an installation the caller stopped, its files restored.'),
|
|
303
303
|
'restartReason': z.union([z.literal("no-hmr"), z.literal("package-moved"), z.literal("host-module"), z.literal("unmanaged-plugin"), z.literal("module-comparison")]).optional().describe('Present with `restart-required`: why the change takes effect only at the next start.'),
|
|
304
304
|
'stage': z.union([z.literal("remove"), z.literal("install"), z.literal("enable")]).describe('Last attempted step; successful installation can proceed to enablement.'),
|
|
305
305
|
'target': z.string(),
|
|
@@ -344,7 +344,7 @@ const _deepseek_ai_dsh_plugin_manager_pluginManager_setPluginEnabled_parameter_1
|
|
|
344
344
|
let _deepseek_ai_dsh_plugin_manager_pluginManager_setPluginEnabled_result$schema$value
|
|
345
345
|
const _deepseek_ai_dsh_plugin_manager_pluginManager_setPluginEnabled_result$schema = () => (_deepseek_ai_dsh_plugin_manager_pluginManager_setPluginEnabled_result$schema$value ??= z.object({
|
|
346
346
|
'changed': z.boolean(),
|
|
347
|
-
'application': z.union([z.literal("failed"), z.literal("
|
|
347
|
+
'application': z.union([z.literal("failed"), z.literal("applied"), z.literal("cancelled"), z.literal("restart-required"), z.literal("overridden")]).describe('`cancelled` is an installation the caller stopped, its files restored.'),
|
|
348
348
|
'restartReason': z.union([z.literal("no-hmr"), z.literal("package-moved"), z.literal("host-module"), z.literal("unmanaged-plugin"), z.literal("module-comparison")]).optional().describe('Present with `restart-required`: why the change takes effect only at the next start.'),
|
|
349
349
|
'stage': z.union([z.literal("remove"), z.literal("install"), z.literal("enable")]).describe('Last attempted step; successful installation can proceed to enablement.'),
|
|
350
350
|
'target': z.string(),
|
|
@@ -393,7 +393,7 @@ const _deepseek_ai_dsh_plugin_manager_pluginManager_setVersionExemption_paramete
|
|
|
393
393
|
let _deepseek_ai_dsh_plugin_manager_pluginManager_setVersionExemption_result$schema$value
|
|
394
394
|
const _deepseek_ai_dsh_plugin_manager_pluginManager_setVersionExemption_result$schema = () => (_deepseek_ai_dsh_plugin_manager_pluginManager_setVersionExemption_result$schema$value ??= z.object({
|
|
395
395
|
'changed': z.boolean(),
|
|
396
|
-
'application': z.union([z.literal("failed"), z.literal("
|
|
396
|
+
'application': z.union([z.literal("failed"), z.literal("applied"), z.literal("cancelled"), z.literal("restart-required"), z.literal("overridden")]).describe('`cancelled` is an installation the caller stopped, its files restored.'),
|
|
397
397
|
'restartReason': z.union([z.literal("no-hmr"), z.literal("package-moved"), z.literal("host-module"), z.literal("unmanaged-plugin"), z.literal("module-comparison")]).optional().describe('Present with `restart-required`: why the change takes effect only at the next start.'),
|
|
398
398
|
'stage': z.union([z.literal("remove"), z.literal("install"), z.literal("enable")]).describe('Last attempted step; successful installation can proceed to enablement.'),
|
|
399
399
|
'target': z.string(),
|
|
@@ -448,7 +448,7 @@ const _deepseek_ai_dsh_plugin_manager_pluginManager_updateBundle_result$schema =
|
|
|
448
448
|
'step': z.union([z.literal("remove"), z.literal("check"), z.literal("install")]).readonly(),
|
|
449
449
|
'result': z.object({
|
|
450
450
|
'changed': z.boolean(),
|
|
451
|
-
'application': z.union([z.literal("failed"), z.literal("
|
|
451
|
+
'application': z.union([z.literal("failed"), z.literal("applied"), z.literal("cancelled"), z.literal("restart-required"), z.literal("overridden")]).describe('`cancelled` is an installation the caller stopped, its files restored.'),
|
|
452
452
|
'restartReason': z.union([z.literal("no-hmr"), z.literal("package-moved"), z.literal("host-module"), z.literal("unmanaged-plugin"), z.literal("module-comparison")]).optional().describe('Present with `restart-required`: why the change takes effect only at the next start.'),
|
|
453
453
|
'stage': z.union([z.literal("remove"), z.literal("install"), z.literal("enable")]).describe('Last attempted step; successful installation can proceed to enablement.'),
|
|
454
454
|
'target': z.string(),
|
|
@@ -488,7 +488,7 @@ const _deepseek_ai_dsh_plugin_manager_pluginManager_updateBundle_result$schema =
|
|
|
488
488
|
}).readonly(),
|
|
489
489
|
'restore': z.object({
|
|
490
490
|
'changed': z.boolean(),
|
|
491
|
-
'application': z.union([z.literal("failed"), z.literal("
|
|
491
|
+
'application': z.union([z.literal("failed"), z.literal("applied"), z.literal("cancelled"), z.literal("restart-required"), z.literal("overridden")]).describe('`cancelled` is an installation the caller stopped, its files restored.'),
|
|
492
492
|
'restartReason': z.union([z.literal("no-hmr"), z.literal("package-moved"), z.literal("host-module"), z.literal("unmanaged-plugin"), z.literal("module-comparison")]).optional().describe('Present with `restart-required`: why the change takes effect only at the next start.'),
|
|
493
493
|
'stage': z.union([z.literal("remove"), z.literal("install"), z.literal("enable")]).describe('Last attempted step; successful installation can proceed to enablement.'),
|
|
494
494
|
'target': z.string(),
|
|
@@ -532,7 +532,7 @@ const _deepseek_ai_dsh_plugin_manager_pluginManager_waitForInstall_parameter_0$s
|
|
|
532
532
|
let _deepseek_ai_dsh_plugin_manager_pluginManager_waitForInstall_result$schema$value
|
|
533
533
|
const _deepseek_ai_dsh_plugin_manager_pluginManager_waitForInstall_result$schema = () => (_deepseek_ai_dsh_plugin_manager_pluginManager_waitForInstall_result$schema$value ??= z.union([z.literal(null), z.object({
|
|
534
534
|
'changed': z.boolean(),
|
|
535
|
-
'application': z.union([z.literal("failed"), z.literal("
|
|
535
|
+
'application': z.union([z.literal("failed"), z.literal("applied"), z.literal("cancelled"), z.literal("restart-required"), z.literal("overridden")]).describe('`cancelled` is an installation the caller stopped, its files restored.'),
|
|
536
536
|
'restartReason': z.union([z.literal("no-hmr"), z.literal("package-moved"), z.literal("host-module"), z.literal("unmanaged-plugin"), z.literal("module-comparison")]).optional().describe('Present with `restart-required`: why the change takes effect only at the next start.'),
|
|
537
537
|
'stage': z.union([z.literal("remove"), z.literal("install"), z.literal("enable")]).describe('Last attempted step; successful installation can proceed to enablement.'),
|
|
538
538
|
'target': z.string(),
|
|
@@ -670,7 +670,7 @@ const $remote = createTypertRemoteInfo({
|
|
|
670
670
|
description: '`cancelled` once the Git check or pnpm exited and the files are restored, `too-late` once the bundle is being applied, `not-running` for any other id.',
|
|
671
671
|
jsonSchema: {"type":"object","properties":{"status":{"type":"string","enum":["not-running","cancelled","too-late"]}},"required":["status"],"additionalProperties":true},
|
|
672
672
|
},
|
|
673
|
-
sourceLocation: {"file":"packages/boot/plugin-manager/src/index.ts","line":
|
|
673
|
+
sourceLocation: {"file":"packages/boot/plugin-manager/src/index.ts","line":1139,"column":9},
|
|
674
674
|
},
|
|
675
675
|
'pluginManager/inspect': {
|
|
676
676
|
service: 'pluginManager',
|
|
@@ -719,9 +719,9 @@ const $remote = createTypertRemoteInfo({
|
|
|
719
719
|
typeSymbol: '@deepseek-ai/dsh-plugin-manager/types#PluginSpecInspection',
|
|
720
720
|
create: _deepseek_ai_dsh_plugin_manager_pluginManager_inspect_result$schema,
|
|
721
721
|
description: 'The package the spec names, or why it is refused.',
|
|
722
|
-
jsonSchema: {"oneOf":[{"type":"object","properties":{"status":{"type":"string","const":"accepted"},"kind":{"type":"string","enum":["
|
|
722
|
+
jsonSchema: {"oneOf":[{"type":"object","properties":{"status":{"type":"string","const":"accepted"},"kind":{"type":"string","enum":["path","registry","git","tarball"]},"name":{"type":"string"},"version":{"type":"string"},"description":{"type":"string","description":"`description` of the package manifest."},"bundle":{"oneOf":[{"type":"null","const":null},{"type":"boolean","enum":[false,true]}],"description":"Whether the package declares a bundle patch; null when the spec's form does not say."},"registry":{"oneOf":[{"type":"null","const":null},{"type":"string"}],"description":"The registry that answered for a name, and for the other forms the one an install of the spec asks first."},"host":{"type":"string","description":"The host a git spec or a tarball URL is fetched from, which no registry stands in for."}},"required":["status","kind","bundle","registry"],"additionalProperties":true},{"type":"object","properties":{"status":{"type":"string","const":"refused"},"problem":{"type":"string","enum":["unknown","network","not-found","invalid-spec","already-installed","not-a-package","not-a-bundle"]},"reason":{"type":"string","description":"What pnpm, the registry, or the file system said."},"registries":{"type":"array","items":{"oneOf":[{"type":"null","const":null},{"type":"string"}]},"description":"The registries asked, in order, when the refusal came from asking them; `reason` is the last one's."}},"required":["status","problem","reason"],"additionalProperties":true}]},
|
|
723
723
|
},
|
|
724
|
-
sourceLocation: {"file":"packages/boot/plugin-manager/src/index.ts","line":
|
|
724
|
+
sourceLocation: {"file":"packages/boot/plugin-manager/src/index.ts","line":628,"column":9},
|
|
725
725
|
},
|
|
726
726
|
'pluginManager/installBundle': {
|
|
727
727
|
service: 'pluginManager',
|
|
@@ -771,7 +771,7 @@ const $remote = createTypertRemoteInfo({
|
|
|
771
771
|
description: 'Package-manager diagnostics, the registries asked, and the observed activation outcome.',
|
|
772
772
|
jsonSchemaError: 'typert tool schema: selected dictionaries require string keys and unconstrained JSON values',
|
|
773
773
|
},
|
|
774
|
-
sourceLocation: {"file":"packages/boot/plugin-manager/src/index.ts","line":
|
|
774
|
+
sourceLocation: {"file":"packages/boot/plugin-manager/src/index.ts","line":977,"column":3},
|
|
775
775
|
},
|
|
776
776
|
'pluginManager/listBundles': {
|
|
777
777
|
service: 'pluginManager',
|
|
@@ -786,7 +786,7 @@ const $remote = createTypertRemoteInfo({
|
|
|
786
786
|
description: 'Package versions, manifest descriptions, the installable spec of profile dependencies, rows, optional display metadata, activation selections, whether the installation offers the bundle, and removal availability.',
|
|
787
787
|
jsonSchemaError: 'typert tool schema: selected dictionaries require string keys and unconstrained JSON values',
|
|
788
788
|
},
|
|
789
|
-
sourceLocation: {"file":"packages/boot/plugin-manager/src/index.ts","line":
|
|
789
|
+
sourceLocation: {"file":"packages/boot/plugin-manager/src/index.ts","line":506,"column":3},
|
|
790
790
|
},
|
|
791
791
|
'pluginManager/listPlugins': {
|
|
792
792
|
service: 'pluginManager',
|
|
@@ -801,7 +801,7 @@ const $remote = createTypertRemoteInfo({
|
|
|
801
801
|
description: 'Current runtime entries with persistent patch targets.',
|
|
802
802
|
jsonSchemaError: 'typert tool schema: selected dictionaries require string keys and unconstrained JSON values',
|
|
803
803
|
},
|
|
804
|
-
sourceLocation: {"file":"packages/boot/plugin-manager/src/index.ts","line":
|
|
804
|
+
sourceLocation: {"file":"packages/boot/plugin-manager/src/index.ts","line":480,"column":9},
|
|
805
805
|
},
|
|
806
806
|
'pluginManager/listVersionExemptions': {
|
|
807
807
|
service: 'pluginManager',
|
|
@@ -816,7 +816,7 @@ const $remote = createTypertRemoteInfo({
|
|
|
816
816
|
description: 'Accepted package-name@version keys with the runtime versions they may run on, and any record or file problem the reader rejected, which the caller reports instead of failing.',
|
|
817
817
|
jsonSchemaError: 'typert tool schema: selected dictionaries require string keys and unconstrained JSON values',
|
|
818
818
|
},
|
|
819
|
-
sourceLocation: {"file":"packages/boot/plugin-manager/src/index.ts","line":
|
|
819
|
+
sourceLocation: {"file":"packages/boot/plugin-manager/src/index.ts","line":454,"column":3},
|
|
820
820
|
},
|
|
821
821
|
'pluginManager/listVersions': {
|
|
822
822
|
service: 'pluginManager',
|
|
@@ -867,7 +867,7 @@ const $remote = createTypertRemoteInfo({
|
|
|
867
867
|
description: 'At most `versionListLimit` newer versions, newest first, with their tags, deprecation, bundle declaration, and DSH compatibility, and the registry that answered; or why no list could be read, with every registry asked.',
|
|
868
868
|
jsonSchemaError: 'typert tool schema: selected dictionaries require string keys and unconstrained JSON values',
|
|
869
869
|
},
|
|
870
|
-
sourceLocation: {"file":"packages/boot/plugin-manager/src/index.ts","line":
|
|
870
|
+
sourceLocation: {"file":"packages/boot/plugin-manager/src/index.ts","line":688,"column":9},
|
|
871
871
|
},
|
|
872
872
|
'pluginManager/readBundleDetail': {
|
|
873
873
|
service: 'pluginManager',
|
|
@@ -934,7 +934,7 @@ const $remote = createTypertRemoteInfo({
|
|
|
934
934
|
description: 'the document with its origin and path, or `none`.',
|
|
935
935
|
jsonSchema: {"oneOf":[{"type":"object","properties":{"status":{"type":"string","const":"found"},"origin":{"type":"string","enum":["locale","readme"],"description":"`locale` for the file locale `meta.detail` names, `readme` for the package's README."},"path":{"type":"string","description":"`/`-separated path of the document inside the package."},"markdown":{"type":"string","description":"Markdown text without a byte order mark or a leading YAML front matter block."}},"required":["status","origin","path","markdown"],"additionalProperties":true},{"type":"object","properties":{"status":{"type":"string","const":"none"}},"required":["status"],"additionalProperties":true}]},
|
|
936
936
|
},
|
|
937
|
-
sourceLocation: {"file":"packages/boot/plugin-manager/src/index.ts","line":
|
|
937
|
+
sourceLocation: {"file":"packages/boot/plugin-manager/src/index.ts","line":418,"column":9},
|
|
938
938
|
},
|
|
939
939
|
'pluginManager/registries': {
|
|
940
940
|
service: 'pluginManager',
|
|
@@ -949,7 +949,7 @@ const $remote = createTypertRemoteInfo({
|
|
|
949
949
|
description: 'The registries in pnpm\'s comparison form; null is the one pnpm\'s own configuration names, `resolved` as pnpm reads it now.',
|
|
950
950
|
jsonSchema: {"type":"object","properties":{"registry":{"oneOf":[{"type":"null","const":null},{"type":"string"}]},"fallbackRegistries":{"type":"array","items":{"type":"string"}},"resolved":{"oneOf":[{"type":"null","const":null},{"type":"string"}],"description":"The URL pnpm's own configuration names in the profile, read from pnpm; null when it could not be read."}},"required":["registry","fallbackRegistries","resolved"],"additionalProperties":true},
|
|
951
951
|
},
|
|
952
|
-
sourceLocation: {"file":"packages/boot/plugin-manager/src/index.ts","line":
|
|
952
|
+
sourceLocation: {"file":"packages/boot/plugin-manager/src/index.ts","line":612,"column":9},
|
|
953
953
|
},
|
|
954
954
|
'pluginManager/removeBundle': {
|
|
955
955
|
service: 'pluginManager',
|
|
@@ -981,7 +981,7 @@ const $remote = createTypertRemoteInfo({
|
|
|
981
981
|
description: 'Removal diagnostics and the remaining profile state.',
|
|
982
982
|
jsonSchemaError: 'typert tool schema: selected dictionaries require string keys and unconstrained JSON values',
|
|
983
983
|
},
|
|
984
|
-
sourceLocation: {"file":"packages/boot/plugin-manager/src/index.ts","line":
|
|
984
|
+
sourceLocation: {"file":"packages/boot/plugin-manager/src/index.ts","line":1156,"column":3},
|
|
985
985
|
},
|
|
986
986
|
'pluginManager/setBundleEnabled': {
|
|
987
987
|
service: 'pluginManager',
|
|
@@ -1030,7 +1030,7 @@ const $remote = createTypertRemoteInfo({
|
|
|
1030
1030
|
description: 'Persisted and runtime outcomes.',
|
|
1031
1031
|
jsonSchemaError: 'typert tool schema: selected dictionaries require string keys and unconstrained JSON values',
|
|
1032
1032
|
},
|
|
1033
|
-
sourceLocation: {"file":"packages/boot/plugin-manager/src/index.ts","line":
|
|
1033
|
+
sourceLocation: {"file":"packages/boot/plugin-manager/src/index.ts","line":955,"column":3},
|
|
1034
1034
|
},
|
|
1035
1035
|
'pluginManager/setPluginEnabled': {
|
|
1036
1036
|
service: 'pluginManager',
|
|
@@ -1079,7 +1079,7 @@ const $remote = createTypertRemoteInfo({
|
|
|
1079
1079
|
description: 'Saved and runtime outcomes, including higher-priority overrides.',
|
|
1080
1080
|
jsonSchemaError: 'typert tool schema: selected dictionaries require string keys and unconstrained JSON values',
|
|
1081
1081
|
},
|
|
1082
|
-
sourceLocation: {"file":"packages/boot/plugin-manager/src/index.ts","line":
|
|
1082
|
+
sourceLocation: {"file":"packages/boot/plugin-manager/src/index.ts","line":937,"column":3},
|
|
1083
1083
|
},
|
|
1084
1084
|
'pluginManager/setVersionExemption': {
|
|
1085
1085
|
service: 'pluginManager',
|
|
@@ -1163,7 +1163,7 @@ const $remote = createTypertRemoteInfo({
|
|
|
1163
1163
|
description: 'Saved and runtime outcomes. Startup-only profiles require restart.',
|
|
1164
1164
|
jsonSchemaError: 'typert tool schema: selected dictionaries require string keys and unconstrained JSON values',
|
|
1165
1165
|
},
|
|
1166
|
-
sourceLocation: {"file":"packages/boot/plugin-manager/src/index.ts","line":
|
|
1166
|
+
sourceLocation: {"file":"packages/boot/plugin-manager/src/index.ts","line":467,"column":3},
|
|
1167
1167
|
},
|
|
1168
1168
|
'pluginManager/updateBundle': {
|
|
1169
1169
|
service: 'pluginManager',
|
|
@@ -1230,7 +1230,7 @@ const $remote = createTypertRemoteInfo({
|
|
|
1230
1230
|
description: 'The versions, the last step that ran with its result, and the reinstallation when one ran.',
|
|
1231
1231
|
jsonSchemaError: 'typert tool schema: selected dictionaries require string keys and unconstrained JSON values',
|
|
1232
1232
|
},
|
|
1233
|
-
sourceLocation: {"file":"packages/boot/plugin-manager/src/index.ts","line":
|
|
1233
|
+
sourceLocation: {"file":"packages/boot/plugin-manager/src/index.ts","line":746,"column":9},
|
|
1234
1234
|
},
|
|
1235
1235
|
'pluginManager/waitForInstall': {
|
|
1236
1236
|
service: 'pluginManager',
|
|
@@ -1262,7 +1262,7 @@ const $remote = createTypertRemoteInfo({
|
|
|
1262
1262
|
description: 'The installation\'s outcome after it settles, or null if no active request has that id. Completed results are not retained; null establishes neither success nor cancellation.',
|
|
1263
1263
|
jsonSchemaError: 'typert tool schema: selected dictionaries require string keys and unconstrained JSON values',
|
|
1264
1264
|
},
|
|
1265
|
-
sourceLocation: {"file":"packages/boot/plugin-manager/src/index.ts","line":
|
|
1265
|
+
sourceLocation: {"file":"packages/boot/plugin-manager/src/index.ts","line":1129,"column":9},
|
|
1266
1266
|
},
|
|
1267
1267
|
},
|
|
1268
1268
|
}, z)
|
|
@@ -1309,14 +1309,14 @@ export const TYPERT = {
|
|
|
1309
1309
|
"name": "listPlugins",
|
|
1310
1310
|
"signature": "@Remote async listPlugins(): Promise<PluginInfo[]>",
|
|
1311
1311
|
"summary": "Read current plugins, including why a row cannot be changed through the profile patch.",
|
|
1312
|
-
"jsDoc": "/** Read current plugins, including why a row cannot be changed through the profile patch.\n * @returns Current runtime entries with persistent patch targets.\n */"
|
|
1312
|
+
"jsDoc": "/** Read current plugins, including why a row cannot be changed through the profile patch.\n * @returns Current runtime entries with persistent patch targets.\n * @throws {PluginManagerError} `PLUGIN_MANAGER_PROFILE_READ_FAILED` to in-process callers when the profile patches\n * cannot be read; Remote callers receive `gateway/internal`.\n */"
|
|
1313
1313
|
},
|
|
1314
1314
|
{
|
|
1315
1315
|
"kind": "method",
|
|
1316
1316
|
"name": "listBundles",
|
|
1317
1317
|
"signature": "@Remote listBundles(): Promise<BundleInfo[]>",
|
|
1318
1318
|
"summary": "Read installed, installation-provided, and offline Official catalog bundles, plus selected non-bundle names.",
|
|
1319
|
-
"jsDoc": "/** Read installed, installation-provided, and offline Official catalog bundles, plus selected non-bundle names.\n * A dependency without a bundle patch is listed, as a `not-bundle` problem, only while it is selected.\n * @returns Package versions, manifest descriptions, the installable spec of profile dependencies, rows, optional\n * display metadata, activation selections, whether the installation offers the bundle, and removal availability.\n */"
|
|
1319
|
+
"jsDoc": "/** Read installed, installation-provided, and offline Official catalog bundles, plus selected non-bundle names.\n * A dependency without a bundle patch is listed, as a `not-bundle` problem, only while it is selected.\n * @returns Package versions, manifest descriptions, the installable spec of profile dependencies, rows, optional\n * display metadata, activation selections, whether the installation offers the bundle, and removal availability.\n * @throws {PluginManagerError} `PLUGIN_MANAGER_PROFILE_READ_FAILED` to in-process callers when a profile or\n * installation manifest cannot be read; Remote callers receive `gateway/internal`.\n */"
|
|
1320
1320
|
},
|
|
1321
1321
|
{
|
|
1322
1322
|
"kind": "method",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"typert.remote-client.d.ts","names":["cancelInstall","inspect","installBundle","listBundles","listPlugins","listVersionExemptions","listVersions","readBundleDetail","registries","removeBundle","setBundleEnabled","setPluginEnabled","setVersionExemption","updateBundle","waitForInstall"],"sources":["../src/index.ts"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"typert.remote-client.d.ts","names":["cancelInstall","inspect","installBundle","listBundles","listPlugins","listVersionExemptions","listVersions","readBundleDetail","registries","removeBundle","setBundleEnabled","setPluginEnabled","setVersionExemption","updateBundle","waitForInstall"],"sources":["../src/index.ts"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;IAknCQA,a;IA/fAC,O;IA6VNC,a;IAvdAC,W;IA1BMC,W;IA1BNC,qB;IA0OMC,Y;IA9QAC,gB;IAkMAC,U;IAgiBNC,Y;IAzMAC,gB;IAlBAC,gB;IAtdAC,mB;IAuRMC,Y;IA+XAC,c;;;IAUAd,6B;IA/fAC,uB;IA6VNC,6B;IAvdAC,2B;IA1BMC,2B;IA1BNC,qC;IA0OMC,4B;IA9QAC,gC;IAkMAC,0B;IAgiBNC,4B;IAzMAC,gC;IAlBAC,gC;IAtdAC,mC;IAuRMC,4B;IA+XAC,8B","ignoreList":[]}
|