bambu-printer-mcp 1.1.93 → 1.1.95
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 +6 -3
- package/dist/3mf_parser.js +3 -2
- package/dist/cad/contracts.d.ts +10 -0
- package/dist/cad/contracts.js +41 -1
- package/dist/cad-engine.d.ts +5 -0
- package/dist/cad-engine.js +74 -3
- package/dist/counterpart/diagnostics.d.ts +163 -0
- package/dist/counterpart/diagnostics.js +816 -0
- package/dist/counterpart/flight-tools.d.ts +2 -2
- package/dist/counterpart/info.js +1 -0
- package/dist/counterpart/make-3mf.d.ts +10 -0
- package/dist/counterpart/make-3mf.js +472 -65
- package/dist/counterpart/model-plates.d.ts +8 -1
- package/dist/counterpart/model-plates.js +9 -4
- package/dist/counterpart/plate-filaments.d.ts +19 -0
- package/dist/counterpart/plate-filaments.js +72 -10
- package/dist/counterpart/remote.js +1 -0
- package/dist/counterpart/schemas.d.ts +8 -2
- package/dist/counterpart/schemas.js +1 -0
- package/dist/index.js +100 -2
- package/dist/tool-annotations.js +1 -0
- package/package.json +2 -2
- package/src/3mf_parser.ts +3 -2
- package/src/cad/contracts.ts +46 -1
- package/src/cad/examples/desk_clamp_hook.py +32 -0
- package/src/cad/examples/desk_edge_cable_holder.py +24 -0
- package/src/cad/examples/phone_stand.py +26 -0
- package/src/cad/geometry.py +52 -2
- package/src/cad/project3mf.py +426 -0
- package/src/cad/purpose.py +492 -0
- package/src/cad/worker.py +17 -2
- package/src/cad-engine.ts +73 -3
- package/src/counterpart/diagnostics.ts +775 -0
- package/src/counterpart/info.ts +1 -0
- package/src/counterpart/make-3mf.ts +446 -61
- package/src/counterpart/model-plates.ts +17 -5
- package/src/counterpart/plate-filaments.ts +75 -7
- package/src/counterpart/remote.ts +1 -0
- package/src/counterpart/schemas.ts +3 -0
- package/src/index.ts +83 -2
- package/src/tool-annotations.ts +1 -0
|
@@ -179,7 +179,7 @@ export declare const FLIGHT_ASSESS_PROPERTIES: {
|
|
|
179
179
|
};
|
|
180
180
|
visibility: {
|
|
181
181
|
type: string;
|
|
182
|
-
enum: ("dark" | "
|
|
182
|
+
enum: ("dark" | "unknown" | "clear" | "occluded" | "out_of_view")[];
|
|
183
183
|
description: string;
|
|
184
184
|
};
|
|
185
185
|
footprint_visible: {
|
|
@@ -201,7 +201,7 @@ export declare const FLIGHT_ASSESS_PROPERTIES: {
|
|
|
201
201
|
};
|
|
202
202
|
reference_visibility: {
|
|
203
203
|
type: string;
|
|
204
|
-
enum: ("dark" | "
|
|
204
|
+
enum: ("dark" | "unknown" | "clear" | "occluded" | "out_of_view")[];
|
|
205
205
|
description: string;
|
|
206
206
|
};
|
|
207
207
|
reference_empty: {
|
package/dist/counterpart/info.js
CHANGED
|
@@ -43,6 +43,7 @@ export function bambuPrinterInfo(options) {
|
|
|
43
43
|
// camera_snapshot needs the model to choose its transport.
|
|
44
44
|
camera: model && TCP_CAMERA_MODELS.has(model) ? "bambu-tcp" : model && RTSP_CAMERA_MODELS.has(model) ? "rtsp" : "none",
|
|
45
45
|
cameraStream: !!model && (TCP_CAMERA_MODELS.has(model) || RTSP_CAMERA_MODELS.has(model)),
|
|
46
|
+
diagnostics: true,
|
|
46
47
|
filaments: "ams",
|
|
47
48
|
pause: true,
|
|
48
49
|
resume: true,
|
|
@@ -14,3 +14,13 @@ export type Make3mfResult = {
|
|
|
14
14
|
}[];
|
|
15
15
|
};
|
|
16
16
|
export declare function makeCounterpart3mf(args: Record<string, unknown>): Promise<Make3mfResult>;
|
|
17
|
+
/**
|
|
18
|
+
* Write the 3MF a cad_run design script returned as project_3mf() (src/cad/project3mf.py): `manifest` is the
|
|
19
|
+
* sandbox's <name>.project.json, `partsDir` its STL parts, `inputs` the run's input snapshots by alias. A new project
|
|
20
|
+
* is written as counterpart_make_3mf writes one, an object per assembly on its plate. An edit copies the base 3MF and
|
|
21
|
+
* changes only what the script changed, so its print settings, painting, plates and other parts stay as they were.
|
|
22
|
+
*/
|
|
23
|
+
export declare function writeCadProject3mf(manifest: unknown, partsDir: string, inputs: Record<string, string>, outPath: string): Promise<{
|
|
24
|
+
base: string | null;
|
|
25
|
+
changed: string[];
|
|
26
|
+
}>;
|