Просмотр исходного кода

chore(docs): regenerate the Cordis catalog for the manager's add verb

Yichen Jiang 1 месяц назад
Родитель
Сommit
eb818f9c92

+ 2 - 2
docs/subsystems/core.i18n.yaml

@@ -2,5 +2,5 @@
 # side as of the last confirmed-consistent state. Both languages carry equal authority;
 # after editing either side, bring the other along and re-record with:
 #   pnpm run verify-translation-pairing --write docs/subsystems/core.md
-core.md: 2bf9d2e21d162523471cb2ac92ac25ccd650fda3
-core.zh.md: 37ef25348ddcb1e4d9fe32c17c10fdafc9e9ff39
+core.md: b71337c5386f7a5cf4484a7a9a393fcd5db48296
+core.zh.md: 665072b80527ded6df0e2d19cf7ffdf25768b5ad

+ 1 - 1
docs/subsystems/core.md

@@ -888,7 +888,7 @@ Every method that changes the profile reads the manifest afresh and writes it th
  * or the run times out, `plugins/enable-failed` when enabling was asked
  * for and the tree rejected the bundle.
  */
-@Remote('install') async install(spec: string, options?: { enable?: boolean }): Promise<PluginInstallResult>
+@Remote('add') async add(spec: string, options?: { enable?: boolean }): Promise<PluginInstallResult>
 
 /**
  * Remove a package from the profile: disable it when enabled, drop every

+ 1 - 1
docs/subsystems/core.zh.md

@@ -898,7 +898,7 @@ Every method that changes the profile reads the manifest afresh and writes it th
  * or the run times out, `plugins/enable-failed` when enabling was asked
  * for and the tree rejected the bundle.
  */
-@Remote('install') async install(spec: string, options?: { enable?: boolean }): Promise<PluginInstallResult>
+@Remote('add') async add(spec: string, options?: { enable?: boolean }): Promise<PluginInstallResult>
 
 /**
  * Remove a package from the profile: disable it when enabled, drop every

+ 1 - 1
packages/extensions/tool-cordis/src/api-catalog.ts

@@ -1412,7 +1412,7 @@ export const SERVICE_API: readonly ServiceApiEntry[] = [
         returns: 'one view per package, bundles first in layer order.',
       },
       {
-        signature: '@Remote(\'install\') async install(spec: string, options?: { enable?: boolean }): Promise<PluginInstallResult>',
+        signature: '@Remote(\'add\') async add(spec: string, options?: { enable?: boolean }): Promise<PluginInstallResult>',
         description: 'Install a package into the profile with pnpm, probe it, and leave it disabled unless asked otherwise. The run\'s output streams as `plugins/install-log` chunks carrying the returned `jobId`.',
         parameters: [{ name: 'spec', description: 'what to install, in pnpm\'s own vocabulary: a registry name, a `github:` or git URL, a tarball, or an absolute path.' }, { name: 'options', description: '`enable` puts every newly installed bundle into the layer list at once.' }],
         returns: 'what the run installed and enabled.',