@deepseek-ai/dsh-plugin-manager 0.2.1-rc.5 → 0.2.2-alpha.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 (41) hide show
  1. package/README.i18n.yaml +13 -10
  2. package/README.md +43 -8
  3. package/README.zh.md +43 -8
  4. package/lib/index.js +974 -139
  5. package/lib/typert.host.js +513 -55
  6. package/lib/typert.remote-client.d.ts +11 -1
  7. package/lib/typert.remote-client.js +411 -48
  8. package/lib/types/build-approval.d.ts +5 -5
  9. package/lib/types/build-approval.js +23 -10
  10. package/lib/types/bundle-detail.d.ts +40 -0
  11. package/lib/types/bundle-detail.js +85 -0
  12. package/lib/types/diagnostic.d.ts +17 -0
  13. package/lib/types/diagnostic.js +72 -0
  14. package/lib/types/git-transport.d.ts +27 -0
  15. package/lib/types/git-transport.js +65 -0
  16. package/lib/types/github-connection.d.ts +15 -3
  17. package/lib/types/github-connection.js +13 -3
  18. package/lib/types/index.d.ts +91 -2
  19. package/lib/types/index.js +530 -101
  20. package/lib/types/install-failure.js +1 -1
  21. package/lib/types/install-spec.d.ts +2 -0
  22. package/lib/types/install-spec.js +1 -1
  23. package/lib/types/operations.d.ts +5 -1
  24. package/lib/types/operations.js +31 -6
  25. package/lib/types/tools.js +5 -1
  26. package/lib/types/types.d.ts +169 -7
  27. package/lib/types/versions.d.ts +40 -0
  28. package/lib/types/versions.js +61 -0
  29. package/locale/de.json +6 -0
  30. package/locale/es.json +6 -0
  31. package/locale/fr.json +6 -0
  32. package/locale/ja.json +6 -0
  33. package/locale/pt.json +6 -0
  34. package/locale/ru.json +6 -0
  35. package/locale/tools/de.json +5 -0
  36. package/locale/tools/es.json +5 -0
  37. package/locale/tools/fr.json +5 -0
  38. package/locale/tools/ja.json +5 -0
  39. package/locale/tools/pt.json +5 -0
  40. package/locale/tools/ru.json +5 -0
  41. package/package.json +48 -34
@@ -5,7 +5,8 @@ import type {
5
5
  TypertRemoteMethod,
6
6
  } from '@deepseek-ai/dsh-typert-protocol'
7
7
  import type { PluginEntryId } from '@deepseek-ai/dsh-host-plugin-inventory/types'
8
- import type { BundleInfo, ChangeResult, InspectOptions, InstallBundleOptions, PluginInfo, PluginInstallCancellation, PluginInstallRequestId, PluginRegistries, PluginSpecInspection } from '@deepseek-ai/dsh-plugin-manager/types'
8
+ import type { NpmFileSource } from '@deepseek-ai/dsh-plugin-detail/types'
9
+ import type { BundleDetail, BundleInfo, ChangeResult, InspectOptions, InstallBundleOptions, ListVersionsOptions, PluginInfo, PluginInstallCancellation, PluginInstallRequestId, PluginRegistries, PluginSpecInspection, PluginUpdateResult, PluginVersionList, UpdateBundleOptions } from '@deepseek-ai/dsh-plugin-manager/types'
9
10
 
10
11
  declare module '@deepseek-ai/dsh-typert-protocol' {
11
12
  interface TypertRemoteNamespace$706c7567696e4d616e61676572 {
@@ -15,11 +16,14 @@ declare module '@deepseek-ai/dsh-typert-protocol' {
15
16
  listBundles: () => Promise<RemoteResult<BundleInfo[]>>
16
17
  listPlugins: () => Promise<RemoteResult<PluginInfo[]>>
17
18
  listVersionExemptions: () => Promise<RemoteResult<{ exemptions: Record<string, string[]>; warnings: string[]; }>>
19
+ listVersions: (name: string, options?: ListVersionsOptions, signal?: AbortSignal) => Promise<RemoteResult<PluginVersionList>>
20
+ readBundleDetail: (name: string, language: string, options?: { npmFileSources?: NpmFileSource[]; }) => Promise<RemoteResult<BundleDetail>>
18
21
  registries: () => Promise<RemoteResult<PluginRegistries>>
19
22
  removeBundle: (name: string) => Promise<RemoteResult<ChangeResult>>
20
23
  setBundleEnabled: (name: string, enabled: boolean) => Promise<RemoteResult<ChangeResult>>
21
24
  setPluginEnabled: (id: PluginEntryId, enabled: boolean) => Promise<RemoteResult<ChangeResult>>
22
25
  setVersionExemption: (packageVersion: string, runtimeVersion: string, enabled: boolean, acceptRisk?: boolean) => Promise<RemoteResult<ChangeResult>>
26
+ updateBundle: (name: string, version: string, options?: UpdateBundleOptions) => Promise<RemoteResult<PluginUpdateResult>>
23
27
  waitForInstall: (requestId: PluginInstallRequestId) => Promise<RemoteResult<ChangeResult | null>>
24
28
  }
25
29
  interface TypertRemoteMap {
@@ -29,11 +33,14 @@ declare module '@deepseek-ai/dsh-typert-protocol' {
29
33
  'pluginManager/listBundles': () => Promise<RemoteResult<BundleInfo[]>>
30
34
  'pluginManager/listPlugins': () => Promise<RemoteResult<PluginInfo[]>>
31
35
  'pluginManager/listVersionExemptions': () => Promise<RemoteResult<{ exemptions: Record<string, string[]>; warnings: string[]; }>>
36
+ 'pluginManager/listVersions': (name: string, options?: ListVersionsOptions, signal?: AbortSignal) => Promise<RemoteResult<PluginVersionList>>
37
+ 'pluginManager/readBundleDetail': (name: string, language: string, options?: { npmFileSources?: NpmFileSource[]; }) => Promise<RemoteResult<BundleDetail>>
32
38
  'pluginManager/registries': () => Promise<RemoteResult<PluginRegistries>>
33
39
  'pluginManager/removeBundle': (name: string) => Promise<RemoteResult<ChangeResult>>
34
40
  'pluginManager/setBundleEnabled': (name: string, enabled: boolean) => Promise<RemoteResult<ChangeResult>>
35
41
  'pluginManager/setPluginEnabled': (id: PluginEntryId, enabled: boolean) => Promise<RemoteResult<ChangeResult>>
36
42
  'pluginManager/setVersionExemption': (packageVersion: string, runtimeVersion: string, enabled: boolean, acceptRisk?: boolean) => Promise<RemoteResult<ChangeResult>>
43
+ 'pluginManager/updateBundle': (name: string, version: string, options?: UpdateBundleOptions) => Promise<RemoteResult<PluginUpdateResult>>
37
44
  'pluginManager/waitForInstall': (requestId: PluginInstallRequestId) => Promise<RemoteResult<ChangeResult | null>>
38
45
  }
39
46
  interface TypertRemoteNamespaceMap {
@@ -48,11 +55,14 @@ export declare const TYPERT_REMOTE: TypertRemoteInfo<{
48
55
  readonly 'pluginManager/listBundles': TypertRemoteMethod<{ }, BundleInfo[]>
49
56
  readonly 'pluginManager/listPlugins': TypertRemoteMethod<{ }, PluginInfo[]>
50
57
  readonly 'pluginManager/listVersionExemptions': TypertRemoteMethod<{ }, { exemptions: Record<string, string[]>; warnings: string[]; }>
58
+ readonly 'pluginManager/listVersions': TypertRemoteMethod<{ readonly 'name': string; readonly 'options'?: ListVersionsOptions }, PluginVersionList>
59
+ readonly 'pluginManager/readBundleDetail': TypertRemoteMethod<{ readonly 'name': string; readonly 'language': string; readonly 'options'?: { npmFileSources?: NpmFileSource[]; } }, BundleDetail>
51
60
  readonly 'pluginManager/registries': TypertRemoteMethod<{ }, PluginRegistries>
52
61
  readonly 'pluginManager/removeBundle': TypertRemoteMethod<{ readonly 'name': string }, ChangeResult>
53
62
  readonly 'pluginManager/setBundleEnabled': TypertRemoteMethod<{ readonly 'name': string; readonly 'enabled': boolean }, ChangeResult>
54
63
  readonly 'pluginManager/setPluginEnabled': TypertRemoteMethod<{ readonly 'id': PluginEntryId; readonly 'enabled': boolean }, ChangeResult>
55
64
  readonly 'pluginManager/setVersionExemption': TypertRemoteMethod<{ readonly 'packageVersion': string; readonly 'runtimeVersion': string; readonly 'enabled': boolean; readonly 'acceptRisk'?: boolean }, ChangeResult>
65
+ readonly 'pluginManager/updateBundle': TypertRemoteMethod<{ readonly 'name': string; readonly 'version': string; readonly 'options'?: UpdateBundleOptions }, PluginUpdateResult>
56
66
  readonly 'pluginManager/waitForInstall': TypertRemoteMethod<{ readonly 'requestId': PluginInstallRequestId }, ChangeResult | null>
57
67
  }>
58
68
  export default TYPERT_REMOTE