@dsh-workbench/core 1.1.0 → 1.1.1
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 +287 -254
- package/dist/client/client.body.js +287 -254
- package/dist/client/index.js +158 -125
- package/dist/host/index.js +5 -6
- package/dist/types/app/layouts/market/discover-search.d.ts +8 -0
- package/package.json +3 -3
package/dist/host/index.js
CHANGED
|
@@ -556,10 +556,8 @@ function readDeclaration(subject, raw) {
|
|
|
556
556
|
zh: text$2(declaration.title.zh),
|
|
557
557
|
en: text$2(declaration.title.en)
|
|
558
558
|
},
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
order: card.order
|
|
562
|
-
},
|
|
559
|
+
titleKey: unitTitleKey(id),
|
|
560
|
+
card: card === null ? null : { order: card.order },
|
|
563
561
|
tools: declaration.tools.map((tool) => ({
|
|
564
562
|
name: text$2(tool.name),
|
|
565
563
|
writes: tool.writes
|
|
@@ -5601,6 +5599,7 @@ function screenOnlyToolsFor(pageDebug) {
|
|
|
5601
5599
|
}
|
|
5602
5600
|
var panelsUnit = {
|
|
5603
5601
|
id: "panels",
|
|
5602
|
+
titleKey: "panels.title",
|
|
5604
5603
|
card: null,
|
|
5605
5604
|
tools: [...READ_TOOLS.map((name) => ({
|
|
5606
5605
|
name,
|
|
@@ -6128,7 +6127,7 @@ function resolvePanels(manifests, boards, owned = /* @__PURE__ */ new Set()) {
|
|
|
6128
6127
|
const order = hasCard ? rank.get(manifest.id) ?? ordered.length + declared(manifest) : 0;
|
|
6129
6128
|
return {
|
|
6130
6129
|
id: manifest.id,
|
|
6131
|
-
titleKey: manifest.
|
|
6130
|
+
titleKey: manifest.titleKey,
|
|
6132
6131
|
order,
|
|
6133
6132
|
shown: on,
|
|
6134
6133
|
source: overrideOf(boards.workspace, manifest.id) === void 0 ? "default" : "user",
|
|
@@ -12236,7 +12235,7 @@ function createMarketService(options) {
|
|
|
12236
12235
|
const manifest = requireEntry(unit);
|
|
12237
12236
|
return {
|
|
12238
12237
|
unit,
|
|
12239
|
-
titleKey: manifest.
|
|
12238
|
+
titleKey: manifest.titleKey,
|
|
12240
12239
|
needs: needsOf(manifest),
|
|
12241
12240
|
capability: await capabilityOf(unit, force)
|
|
12242
12241
|
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { Translate } from '@dsh-workbench/shared';
|
|
2
|
+
export interface DiscoverSearchProps {
|
|
3
|
+
readonly t: Translate;
|
|
4
|
+
readonly value: string;
|
|
5
|
+
readonly disabled: boolean;
|
|
6
|
+
readonly onChange: (value: string) => void;
|
|
7
|
+
}
|
|
8
|
+
export declare function DiscoverSearch({ t, value, disabled, onChange }: DiscoverSearchProps): JSX.Element;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dsh-workbench/core",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.1",
|
|
4
4
|
"description": "个人工作台:Agent 工作台(左栏 + 常驻对话 + 自研右侧数据面板)。",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"icon": "./icon.svg",
|
|
@@ -100,8 +100,8 @@
|
|
|
100
100
|
"proper-lockfile": "^4.1.2",
|
|
101
101
|
"which": "^7.0.0",
|
|
102
102
|
"write-file-atomic": "^8.0.0",
|
|
103
|
-
"@dsh-workbench/shared": "1.1.
|
|
104
|
-
"@dsh-workbench/adapters-default": "1.1.
|
|
103
|
+
"@dsh-workbench/shared": "1.1.1",
|
|
104
|
+
"@dsh-workbench/adapters-default": "1.1.1"
|
|
105
105
|
},
|
|
106
106
|
"license": "MIT",
|
|
107
107
|
"repository": {
|