bambu-printer-mcp 1.1.38 → 1.1.39
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/dist/index.js +5 -2
- package/package.json +1 -1
- package/src/index.ts +5 -2
package/dist/index.js
CHANGED
|
@@ -103,11 +103,11 @@ function assertUniformCliNozzles(args) {
|
|
|
103
103
|
throw new Error("Mixed nozzle diameters require a pre-sliced 3MF with complete per-nozzle metadata. Export it from the slicer GUI before printing.");
|
|
104
104
|
}
|
|
105
105
|
}
|
|
106
|
-
const VALID_BAMBU_MODELS = ["p1s", "p1p", "p2s", "x1c", "x1e", "a1", "a1mini", "h2d", "h2s", "h2c", "x2d"];
|
|
106
|
+
const VALID_BAMBU_MODELS = ["p1s", "p1p", "p2s", "x1c", "x1e", "a1", "a1mini", "h2d", "h2dpro", "h2s", "h2c", "x2d"];
|
|
107
107
|
// X2D uses the same project_file/ams_mapping2 family of LAN print fields as
|
|
108
108
|
// the dual-nozzle H2 path. Keep it in this gate so pre-sliced multi-filament
|
|
109
109
|
// jobs take the correct branch instead of the legacy 5-slot mapping.
|
|
110
|
-
const H2_BAMBU_MODELS = new Set(["h2d", "h2s", "h2c", "x2d"]);
|
|
110
|
+
const H2_BAMBU_MODELS = new Set(["h2d", "h2dpro", "h2s", "h2c", "x2d"]);
|
|
111
111
|
const VALID_BED_TYPES = ["textured_plate", "cool_plate", "engineering_plate", "hot_plate", "supertack_plate"];
|
|
112
112
|
const VALID_NOZZLE_TYPES = ["stainless_steel", "hardened_steel", "tungsten_carbide", "brass"];
|
|
113
113
|
/** The installed hotend material. Bambu machine presets assume the stock nozzle; the print gate compares this with the printer. */
|
|
@@ -146,6 +146,7 @@ const BAMBU_MODEL_PRESETS = {
|
|
|
146
146
|
a1: (n) => `Bambu Lab A1 ${n} nozzle`,
|
|
147
147
|
a1mini: (n) => `Bambu Lab A1 mini ${n} nozzle`,
|
|
148
148
|
h2d: (n) => `Bambu Lab H2D ${n} nozzle`,
|
|
149
|
+
h2dpro: (n) => `Bambu Lab H2D Pro ${n} nozzle`,
|
|
149
150
|
h2s: (n) => `Bambu Lab H2S ${n} nozzle`,
|
|
150
151
|
h2c: (n) => `Bambu Lab H2C ${n} nozzle`,
|
|
151
152
|
x2d: (n) => `Bambu Lab X2D ${n} nozzle`,
|
|
@@ -159,6 +160,7 @@ const FILAMENT_MODEL_CODES = {
|
|
|
159
160
|
a1: "A1",
|
|
160
161
|
a1mini: "A1M",
|
|
161
162
|
h2d: "H2D",
|
|
163
|
+
h2dpro: "H2DP",
|
|
162
164
|
h2s: "H2S",
|
|
163
165
|
h2c: "H2C",
|
|
164
166
|
x2d: "X2D",
|
|
@@ -991,6 +993,7 @@ class BambuPrinterMCPServer {
|
|
|
991
993
|
{ const: "a1", title: "A1" },
|
|
992
994
|
{ const: "a1mini", title: "A1 Mini" },
|
|
993
995
|
{ const: "h2d", title: "H2D" },
|
|
996
|
+
{ const: "h2dpro", title: "H2D Pro" },
|
|
994
997
|
{ const: "h2s", title: "H2S" },
|
|
995
998
|
{ const: "h2c", title: "H2C" },
|
|
996
999
|
{ const: "x2d", title: "X2D" },
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -138,12 +138,12 @@ function assertUniformCliNozzles(args: Record<string, any>): void {
|
|
|
138
138
|
}
|
|
139
139
|
}
|
|
140
140
|
|
|
141
|
-
const VALID_BAMBU_MODELS = ["p1s", "p1p", "p2s", "x1c", "x1e", "a1", "a1mini", "h2d", "h2s", "h2c", "x2d"] as const;
|
|
141
|
+
const VALID_BAMBU_MODELS = ["p1s", "p1p", "p2s", "x1c", "x1e", "a1", "a1mini", "h2d", "h2dpro", "h2s", "h2c", "x2d"] as const;
|
|
142
142
|
type BambuModel = typeof VALID_BAMBU_MODELS[number];
|
|
143
143
|
// X2D uses the same project_file/ams_mapping2 family of LAN print fields as
|
|
144
144
|
// the dual-nozzle H2 path. Keep it in this gate so pre-sliced multi-filament
|
|
145
145
|
// jobs take the correct branch instead of the legacy 5-slot mapping.
|
|
146
|
-
const H2_BAMBU_MODELS = new Set<string>(["h2d", "h2s", "h2c", "x2d"]);
|
|
146
|
+
const H2_BAMBU_MODELS = new Set<string>(["h2d", "h2dpro", "h2s", "h2c", "x2d"]);
|
|
147
147
|
|
|
148
148
|
const VALID_BED_TYPES = ["textured_plate", "cool_plate", "engineering_plate", "hot_plate", "supertack_plate"] as const;
|
|
149
149
|
const VALID_NOZZLE_TYPES = ["stainless_steel", "hardened_steel", "tungsten_carbide", "brass"] as const;
|
|
@@ -185,6 +185,7 @@ const BAMBU_MODEL_PRESETS: Record<string, (nozzle: string) => string> = {
|
|
|
185
185
|
a1: (n) => `Bambu Lab A1 ${n} nozzle`,
|
|
186
186
|
a1mini: (n) => `Bambu Lab A1 mini ${n} nozzle`,
|
|
187
187
|
h2d: (n) => `Bambu Lab H2D ${n} nozzle`,
|
|
188
|
+
h2dpro: (n) => `Bambu Lab H2D Pro ${n} nozzle`,
|
|
188
189
|
h2s: (n) => `Bambu Lab H2S ${n} nozzle`,
|
|
189
190
|
h2c: (n) => `Bambu Lab H2C ${n} nozzle`,
|
|
190
191
|
x2d: (n) => `Bambu Lab X2D ${n} nozzle`,
|
|
@@ -199,6 +200,7 @@ const FILAMENT_MODEL_CODES: Record<string, string> = {
|
|
|
199
200
|
a1: "A1",
|
|
200
201
|
a1mini: "A1M",
|
|
201
202
|
h2d: "H2D",
|
|
203
|
+
h2dpro: "H2DP",
|
|
202
204
|
h2s: "H2S",
|
|
203
205
|
h2c: "H2C",
|
|
204
206
|
x2d: "X2D",
|
|
@@ -1294,6 +1296,7 @@ class BambuPrinterMCPServer {
|
|
|
1294
1296
|
{ const: "a1", title: "A1" },
|
|
1295
1297
|
{ const: "a1mini", title: "A1 Mini" },
|
|
1296
1298
|
{ const: "h2d", title: "H2D" },
|
|
1299
|
+
{ const: "h2dpro", title: "H2D Pro" },
|
|
1297
1300
|
{ const: "h2s", title: "H2S" },
|
|
1298
1301
|
{ const: "h2c", title: "H2C" },
|
|
1299
1302
|
{ const: "x2d", title: "X2D" },
|