@huaqiu/dsh-tool-schematic-gen 0.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/LICENSE +21 -0
- package/README.md +8 -0
- package/cordis.patch.yml +7 -0
- package/lib/client.js +106004 -0
- package/lib/client.js.map +1 -0
- package/lib/index.d.mts +35 -0
- package/lib/index.mjs +1439 -0
- package/package.json +58 -0
- package/src/client/ecad.ts +147 -0
- package/src/client/hit-card.tsx +378 -0
- package/src/client/i18n.ts +148 -0
- package/src/client/index.ts +176 -0
- package/src/client/login-url.ts +91 -0
- package/src/client/parse.ts +153 -0
- package/src/client/progress.ts +161 -0
- package/src/client/stack-frame.tsx +269 -0
- package/src/client/theme.ts +228 -0
- package/src/client/trace-names.ts +308 -0
- package/src/client/trace-tree.ts +185 -0
- package/src/config.ts +203 -0
- package/src/index.ts +130 -0
- package/src/progress.ts +333 -0
- package/src/routes.ts +80 -0
- package/src/sse.ts +448 -0
- package/src/tools.ts +590 -0
- package/src/trace.ts +336 -0
package/lib/index.d.mts
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { Context } from "@deepseek-ai/cordis";
|
|
2
|
+
//#region src/config.d.ts
|
|
3
|
+
/** CopilotKit `agentId` values the two tools drive. */
|
|
4
|
+
declare const agentIds: {
|
|
5
|
+
/** description → final KiCad schematic (`.kicad_sch` files). */
|
|
6
|
+
readonly SCHEMATIC: "schemagen";
|
|
7
|
+
/** description → module graph → KiCad project zip. */
|
|
8
|
+
readonly SYSTEM: "modular_circuit";
|
|
9
|
+
};
|
|
10
|
+
//#endregion
|
|
11
|
+
//#region src/index.d.ts
|
|
12
|
+
/** Plugin id — matches package.json. */
|
|
13
|
+
declare const name = "@huaqiu/dsh-tool-schematic-gen";
|
|
14
|
+
/**
|
|
15
|
+
* Cordis services this half depends on.
|
|
16
|
+
*
|
|
17
|
+
* `webServer` carries the live-progress route that the browser card polls.
|
|
18
|
+
* It is already transitively required, because `@huaqiu/dsh-artifacts`
|
|
19
|
+
* (which we inject as `huaqiuArtifacts) declares it too.
|
|
20
|
+
*/
|
|
21
|
+
declare const inject: readonly ["tools", "huaqiuAuth", "huaqiuArtifacts", "webServer"];
|
|
22
|
+
interface SchematicGenPluginConfig {
|
|
23
|
+
/** Endpoint overrides, env-backed. */
|
|
24
|
+
copilotkitUrl?: string;
|
|
25
|
+
exportZipUrl?: string;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Host plugin body — register the two generation tools.
|
|
29
|
+
*
|
|
30
|
+
* @param ctx - real cordis context (node side).
|
|
31
|
+
* @returns disposer — unregisters both tools on plugin dispose.
|
|
32
|
+
*/
|
|
33
|
+
declare function apply(ctx: Context, config?: SchematicGenPluginConfig): () => void;
|
|
34
|
+
//#endregion
|
|
35
|
+
export { SchematicGenPluginConfig, agentIds, apply, inject, name };
|