@deepseek-ai/dsh-plugin-manager 0.2.1-rc.3 → 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.
- package/README.i18n.yaml +13 -10
- package/README.md +40 -5
- package/README.zh.md +40 -5
- package/lib/index.js +943 -128
- package/lib/typert.host.js +498 -40
- package/lib/typert.remote-client.d.ts +11 -1
- package/lib/typert.remote-client.js +399 -36
- package/lib/types/build-approval.d.ts +5 -5
- package/lib/types/build-approval.js +23 -10
- package/lib/types/bundle-detail.d.ts +40 -0
- package/lib/types/bundle-detail.js +85 -0
- package/lib/types/diagnostic.d.ts +17 -0
- package/lib/types/diagnostic.js +72 -0
- package/lib/types/git-transport.d.ts +27 -0
- package/lib/types/git-transport.js +65 -0
- package/lib/types/index.d.ts +90 -2
- package/lib/types/index.js +517 -100
- package/lib/types/install-failure.js +1 -1
- package/lib/types/operations.d.ts +5 -1
- package/lib/types/operations.js +29 -6
- package/lib/types/tools.js +5 -1
- package/lib/types/types.d.ts +159 -2
- package/lib/types/versions.d.ts +40 -0
- package/lib/types/versions.js +61 -0
- package/locale/de.json +6 -0
- package/locale/es.json +6 -0
- package/locale/fr.json +6 -0
- package/locale/ja.json +6 -0
- package/locale/pt.json +6 -0
- package/locale/ru.json +6 -0
- package/locale/tools/de.json +5 -0
- package/locale/tools/es.json +5 -0
- package/locale/tools/fr.json +5 -0
- package/locale/tools/ja.json +5 -0
- package/locale/tools/pt.json +5 -0
- package/locale/tools/ru.json +5 -0
- 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 {
|
|
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
|