@dsh-workbench/core 0.1.12 → 0.1.14
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/client.js +172 -52
- package/dist/client/client.body.js +172 -52
- package/dist/client/index.js +172 -52
- package/dist/types/app/client.d.ts +3 -3
- package/dist/types/app/layouts/market/use-module-versions.d.ts +15 -0
- package/dist/types/app/layouts/rightbar/__tests__/market-hint-visible.test.d.ts +1 -0
- package/dist/types/app/layouts/rightbar/market-rows.d.ts +3 -0
- package/package.json +2 -2
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { ModuleVersion } from '../../../shared/api/bundle-install';
|
|
1
2
|
import type { UnitManifest } from '@dsh-workbench/shared';
|
|
2
3
|
export type MarketRowAction = 'install' | 'update' | 'update-bundle' | 'remove-bundle' | 'uninstall' | 'update-dependency';
|
|
3
4
|
import type { CapabilityMap } from '../../../shared/hooks/use-capabilities';
|
|
@@ -41,6 +42,8 @@ export declare function installedRows(modules: readonly InstalledWorkbenchModule
|
|
|
41
42
|
export declare function marketActions(row: MarketRow): MarketRowAction[];
|
|
42
43
|
export declare function liveManifests(manifests: readonly UnitManifest[], capabilities: CapabilityMap | null, installed: ReadonlySet<string> | null): readonly UnitManifest[];
|
|
43
44
|
export declare function marketHasUpdates(rows: readonly MarketRow[], shared?: readonly SharedRow[]): boolean;
|
|
45
|
+
export declare function marketUpdatesOf(modules: readonly ModuleVersion[] | null): ModuleUpdateMap;
|
|
46
|
+
export declare function marketHintVisible(manifests: readonly UnitManifest[], capabilities: CapabilityMap | null, modules: readonly ModuleVersion[] | null): boolean;
|
|
44
47
|
export interface MarketSection {
|
|
45
48
|
readonly id: 'installed' | 'not-installed';
|
|
46
49
|
readonly titleKey: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dsh-workbench/core",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.14",
|
|
4
4
|
"description": "个人工作台:Agent 工作台外壳(左栏 + 常驻对话 + 自研右侧数据面板)。",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"icon": "./icon.svg",
|
|
@@ -86,7 +86,7 @@
|
|
|
86
86
|
"access": "public"
|
|
87
87
|
},
|
|
88
88
|
"dependencies": {
|
|
89
|
-
"@dsh-workbench/shared": "0.1.
|
|
89
|
+
"@dsh-workbench/shared": "0.1.14"
|
|
90
90
|
},
|
|
91
91
|
"scripts": {
|
|
92
92
|
"build": "node scripts/build.mjs && node scripts/build-types.mjs",
|