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.
Files changed (41) hide show
  1. package/README.md +6 -3
  2. package/dist/3mf_parser.js +3 -2
  3. package/dist/cad/contracts.d.ts +10 -0
  4. package/dist/cad/contracts.js +41 -1
  5. package/dist/cad-engine.d.ts +5 -0
  6. package/dist/cad-engine.js +74 -3
  7. package/dist/counterpart/diagnostics.d.ts +163 -0
  8. package/dist/counterpart/diagnostics.js +816 -0
  9. package/dist/counterpart/flight-tools.d.ts +2 -2
  10. package/dist/counterpart/info.js +1 -0
  11. package/dist/counterpart/make-3mf.d.ts +10 -0
  12. package/dist/counterpart/make-3mf.js +472 -65
  13. package/dist/counterpart/model-plates.d.ts +8 -1
  14. package/dist/counterpart/model-plates.js +9 -4
  15. package/dist/counterpart/plate-filaments.d.ts +19 -0
  16. package/dist/counterpart/plate-filaments.js +72 -10
  17. package/dist/counterpart/remote.js +1 -0
  18. package/dist/counterpart/schemas.d.ts +8 -2
  19. package/dist/counterpart/schemas.js +1 -0
  20. package/dist/index.js +100 -2
  21. package/dist/tool-annotations.js +1 -0
  22. package/package.json +2 -2
  23. package/src/3mf_parser.ts +3 -2
  24. package/src/cad/contracts.ts +46 -1
  25. package/src/cad/examples/desk_clamp_hook.py +32 -0
  26. package/src/cad/examples/desk_edge_cable_holder.py +24 -0
  27. package/src/cad/examples/phone_stand.py +26 -0
  28. package/src/cad/geometry.py +52 -2
  29. package/src/cad/project3mf.py +426 -0
  30. package/src/cad/purpose.py +492 -0
  31. package/src/cad/worker.py +17 -2
  32. package/src/cad-engine.ts +73 -3
  33. package/src/counterpart/diagnostics.ts +775 -0
  34. package/src/counterpart/info.ts +1 -0
  35. package/src/counterpart/make-3mf.ts +446 -61
  36. package/src/counterpart/model-plates.ts +17 -5
  37. package/src/counterpart/plate-filaments.ts +75 -7
  38. package/src/counterpart/remote.ts +1 -0
  39. package/src/counterpart/schemas.ts +3 -0
  40. package/src/index.ts +83 -2
  41. 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" | "clear" | "unknown" | "occluded" | "out_of_view")[];
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" | "clear" | "unknown" | "occluded" | "out_of_view")[];
204
+ enum: ("dark" | "unknown" | "clear" | "occluded" | "out_of_view")[];
205
205
  description: string;
206
206
  };
207
207
  reference_empty: {
@@ -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
+ }>;