@deepseek-ai/dsh-plugin-manager 0.2.1-rc.4 → 0.2.2-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.
@@ -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