lceda-connect 0.1.0 → 0.2.0
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/CHANGELOG.md +11 -2
- package/README.md +8 -5
- package/THIRD_PARTY_NOTICES.md +1 -1
- package/assets/skills/cdp-connect/SKILL.md +5 -11
- package/assets/skills/cdp-connect/SOURCE.md +4 -2
- package/assets/skills/cdp-connect/references/restart-and-relaunch.md +3 -3
- package/assets/skills/cdp-connect/references/setup-guide.md +5 -9
- package/assets/skills/easyeda-connect/SOURCE.md +3 -1
- package/assets/skills/easyeda-connect/references/setup-guide.md +2 -2
- package/dist/{cli-DhHRbgp_.mjs → cli-B3GGyoP_.mjs} +148 -4
- package/dist/{cli-DSk_viv1.mjs → cli-BekOvZjB.mjs} +1 -1
- package/dist/cli-bridge-server.mjs +0 -0
- package/dist/cli-bridge.mjs +1 -1
- package/dist/cli-cdp.mjs +1 -1
- package/dist/cli-mcp.mjs +1 -1
- package/dist/cli.mjs +1 -1
- package/dist/index.d.mts +1 -0
- package/dist/index.mjs +3 -3
- package/dist/{main-D4XmxX8M.mjs → main-CzMqMptH.mjs} +12 -12
- package/dist/registry-5K1G1XmC.mjs +1 -0
- package/dist/{registry-D6ReiPB6.mjs → registry-DaqVJuvF.mjs} +30 -5
- package/dist/server-DNMAlzZJ.mjs +1 -0
- package/dist/{server-C7NJHDXj.mjs → server-qYlcXfzp.mjs} +2 -2
- package/dist/{sideEffects-B34zsl2C.mjs → sideEffects-D33hMchc.mjs} +652 -3
- package/dist/{targets-DiGwICXT.mjs → targets-DYfgkrq3.mjs} +1 -1
- package/dist/{verbs-CcrO8f9q.mjs → verbs-CD4ZM9Es.mjs} +1 -1
- package/docs/cdp-input.md +33 -0
- package/docs/publishing.md +1 -2
- package/package.json +2 -1
- package/dist/registry-Bs3kpMhy.mjs +0 -1
- package/dist/server-s5NZcVym.mjs +0 -1
|
@@ -3,17 +3,17 @@ import { a as search, i as getFormatDoc, n as apiDocsAvailable, r as getEntry }
|
|
|
3
3
|
import { a as requireConnected, i as execute, n as bridgeErrorHint, o as selectWindow, r as discover, s as windows, t as BridgeClientError } from "./client-_LVz5Zg0.mjs";
|
|
4
4
|
import { t as packageVersion } from "./version-B39-elun.mjs";
|
|
5
5
|
import { c as BRIDGE_MAX_CODE_BYTES, h as BRIDGE_SERVICE_ID } from "./protocol-B4UcGrGa.mjs";
|
|
6
|
-
import { a as
|
|
6
|
+
import { a as cdpInputActionSchema, c as listDocuments, d as detectState, f as normalizeState, i as screenshotToFile, l as openDocument, o as sendCdpInput, s as activeDocument, t as classifyEval, u as Board } from "./sideEffects-D33hMchc.mjs";
|
|
7
7
|
import { _ as asCdpError, h as versionWebSocketUrl, m as versionBrowser, o as discover$1, p as resolveEndpoint, r as attributionOf, s as endpointUrl, u as parsePortRange } from "./discover-D4ouuCrn.mjs";
|
|
8
|
-
import {
|
|
9
|
-
import { a as routeNets, c as EdaVerbError, d as capabilitySummary, f as lookupCapability, i as readBoardState, l as createDefaultExecContext, n as docInfo, o as routeNetsPreview, r as evalApi, s as runDrc, t as boardDigestState, u as checkEnvironment } from "./verbs-
|
|
8
|
+
import { f as redact, i as listTargets, l as evaluateInContext, u as planEval } from "./targets-DYfgkrq3.mjs";
|
|
9
|
+
import { a as routeNets, c as EdaVerbError, d as capabilitySummary, f as lookupCapability, i as readBoardState, l as createDefaultExecContext, n as docInfo, o as routeNetsPreview, r as evalApi, s as runDrc, t as boardDigestState, u as checkEnvironment } from "./verbs-CD4ZM9Es.mjs";
|
|
10
10
|
import { C as compare, Ct as safeWriteText, D as summarize, St as safeWriteJson, c as runSingle, lt as ProjectError, n as checkConsistency, o as inspectProject, r as collect, s as runDiff, t as analyzeSummary, yt as ensureSafeOutputDir } from "./analyze-DBkWgG82.mjs";
|
|
11
11
|
import { D as documentFiles, F as resolveProjectPath, G as readDocumentFile, M as loadEprj3Project, Y as reduceDocSection, g as netlistProject, i as EPRJ3_GATE_NAMES, j as inspectEprj3Project, m as runEprj3Script, n as EPRJ3_EDIT_OPS, r as EPRJ3_GATES, s as eprj3GateArgs, t as validateEprj3Project, u as isEprj3EditOp } from "./validate-COx5r3o4.mjs";
|
|
12
12
|
import { a as getPrimitive, i as getFormatLog, o as listTypes, r as getExample } from "./knowledge-CX8Hrnoe.mjs";
|
|
13
13
|
import { i as validateLine, r as validateFormat } from "./record-CHXWiMWA.mjs";
|
|
14
14
|
import { A as listSimSidecarScripts, At as generateNetlist, Cn as SimError, D as viaParasitics, Et as validateIr, F as simSidecarDir, I as readNetlistFile, L as runSimulation, Ot as buildPinNetTable, P as runSimSidecar, T as traceParams, bt as loadSimIr, c as touchstoneMetrics, et as parseRawFile, hn as loadSimConfig, j as probePython, m as Stackup, mt as probeNgspice, o as parseTouchstone, rt as computeMetrics, tt as plotsToCsv, vt as fromEpro2File } from "./touchstone-DOhfmSNh.mjs";
|
|
15
15
|
import { i as listAssetFiles, r as assetsDir, s as readAssetText, t as assetExists } from "./assets-D48xh-kr.mjs";
|
|
16
|
-
import "./main-
|
|
16
|
+
import "./main-CzMqMptH.mjs";
|
|
17
17
|
import path from "node:path";
|
|
18
18
|
import { existsSync, readFileSync } from "node:fs";
|
|
19
19
|
import { z } from "zod";
|
|
@@ -1617,6 +1617,30 @@ const cdpUiStateTool = defineTool({
|
|
|
1617
1617
|
}
|
|
1618
1618
|
}
|
|
1619
1619
|
});
|
|
1620
|
+
const cdpInputTool = defineTool({
|
|
1621
|
+
name: "cdp_input",
|
|
1622
|
+
description: "向本机指定 PCB 页面派发一次鼠标点击、有限按键或文本,不启动客户端或拉前台。仅在编辑器 API 不适用时使用;必须确认并指定端口、精确 target 和当前 PCB UUID。结果仅代表 CDP 确认,须另行回读实际效果;结果不确定时不要自动重试。",
|
|
1623
|
+
input: {
|
|
1624
|
+
port: z.number().int().min(1).max(65535),
|
|
1625
|
+
target: z.string().min(1).max(128).describe("cdp_targets 返回的精确页面 target ID"),
|
|
1626
|
+
documentUuid: z.string().min(1).max(128).describe("预期的当前 PCB 文档 UUID"),
|
|
1627
|
+
action: cdpInputActionSchema,
|
|
1628
|
+
confirm: z.boolean().optional()
|
|
1629
|
+
},
|
|
1630
|
+
annotations: {
|
|
1631
|
+
readOnlyHint: false,
|
|
1632
|
+
destructiveHint: true,
|
|
1633
|
+
idempotentHint: false,
|
|
1634
|
+
openWorldHint: false
|
|
1635
|
+
},
|
|
1636
|
+
handler: async (args, ctx) => {
|
|
1637
|
+
try {
|
|
1638
|
+
return await sendCdpInput(args, { signal: ctx.signal });
|
|
1639
|
+
} catch (error) {
|
|
1640
|
+
fail$1(error);
|
|
1641
|
+
}
|
|
1642
|
+
}
|
|
1643
|
+
});
|
|
1620
1644
|
function parseScan(value) {
|
|
1621
1645
|
if (!value) return void 0;
|
|
1622
1646
|
const range = parsePortRange(value);
|
|
@@ -1632,7 +1656,8 @@ const cdpTools = [
|
|
|
1632
1656
|
cdpDocListTool,
|
|
1633
1657
|
cdpDocActiveTool,
|
|
1634
1658
|
cdpDocOpenTool,
|
|
1635
|
-
cdpUiStateTool
|
|
1659
|
+
cdpUiStateTool,
|
|
1660
|
+
cdpInputTool
|
|
1636
1661
|
];
|
|
1637
1662
|
// src/eda/mcpTools.ts
|
|
1638
1663
|
/**
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { i as serveStdio } from "./server-qYlcXfzp.mjs";
|
|
@@ -2,8 +2,8 @@ import { i as listAssetFiles, s as readAssetText } from "./assets-D48xh-kr.mjs";
|
|
|
2
2
|
import { T as loadConfig } from "./discover-D4ouuCrn.mjs";
|
|
3
3
|
import { bt as resolveMcpWritePath } from "./analyze-DBkWgG82.mjs";
|
|
4
4
|
import { t as packageVersion } from "./version-B39-elun.mjs";
|
|
5
|
-
import "./main-
|
|
6
|
-
import { i as toolsetsForTools, r as toolsForEnv } from "./registry-
|
|
5
|
+
import "./main-CzMqMptH.mjs";
|
|
6
|
+
import { i as toolsetsForTools, r as toolsForEnv } from "./registry-DaqVJuvF.mjs";
|
|
7
7
|
import { r as normalizeToolContext, t as ToolError } from "./types-D5d7ZRYF.mjs";
|
|
8
8
|
import os from "node:os";
|
|
9
9
|
import path from "node:path";
|