@huaqiu/dsh-engineering-workbench 0.7.27 → 0.7.28
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.md +9 -9
- package/lib/client.js +1172 -879
- package/lib/host.mjs +3 -3
- package/package.json +3 -2
package/lib/host.mjs
CHANGED
|
@@ -7555,6 +7555,7 @@ async function quoteBoard(kind, text, quantity, signal) {
|
|
|
7555
7555
|
const TOOL = "hardware_open_workbench";
|
|
7556
7556
|
const MODES = [
|
|
7557
7557
|
"design",
|
|
7558
|
+
"mechanical",
|
|
7558
7559
|
"review",
|
|
7559
7560
|
"manufacture"
|
|
7560
7561
|
];
|
|
@@ -7562,8 +7563,7 @@ function validRequest(value) {
|
|
|
7562
7563
|
return !!value && MODES.includes(value.view) && (value.designTool === void 0 || value.view === "design" && [
|
|
7563
7564
|
"schematic",
|
|
7564
7565
|
"pcb",
|
|
7565
|
-
"3d"
|
|
7566
|
-
"mechanical"
|
|
7566
|
+
"3d"
|
|
7567
7567
|
].includes(value.designTool)) && (value.action === void 0 || ["open", "suggest"].includes(value.action)) && [
|
|
7568
7568
|
value.path,
|
|
7569
7569
|
value.project,
|
|
@@ -7577,7 +7577,7 @@ const inject = ["tools"];
|
|
|
7577
7577
|
function apply$1(ctx) {
|
|
7578
7578
|
ctx.effect(() => ctx.tools.register({
|
|
7579
7579
|
name: TOOL,
|
|
7580
|
-
description: "Open the engineering workbench in the current conversation’s right pane. Use only when the user asks to open, show, compare or locate an engineering artifact. Choose design for a schematic/PCB, review for side-by-side, manufacture for BOM. Never use for general questions. This is navigation only and does not place orders. Supply the project when multiple KiCad projects exist.",
|
|
7580
|
+
description: "Open the engineering workbench in the current conversation’s right pane. Use only when the user asks to open, show, compare or locate an engineering artifact. Choose design for a schematic/PCB, mechanical for enclosure or part models, review for side-by-side, manufacture for BOM. Never use for general questions. This is navigation only and does not place orders. Supply the project when multiple KiCad projects exist.",
|
|
7581
7581
|
parameters: {
|
|
7582
7582
|
type: "object",
|
|
7583
7583
|
additionalProperties: false,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@huaqiu/dsh-engineering-workbench",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.28",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "华秋工程工作台 · 设计、评审与制造",
|
|
6
6
|
"main": "./lib/host.mjs",
|
|
@@ -19,7 +19,8 @@
|
|
|
19
19
|
"inject": [
|
|
20
20
|
"@deepseek-ai/dsh-client-ui-slots",
|
|
21
21
|
"@deepseek-ai/dsh-client-ui-sidebar-right",
|
|
22
|
-
"@deepseek-ai/dsh-client-ui-conversation"
|
|
22
|
+
"@deepseek-ai/dsh-client-ui-conversation",
|
|
23
|
+
"@deepseek-ai/dsh-api-workspace-files"
|
|
23
24
|
]
|
|
24
25
|
}
|
|
25
26
|
},
|