bambu-printer-mcp 1.1.37 → 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/CONTRIBUTORS.md +1 -0
- package/dist/index.js +5 -2
- package/dist/safety/print-file.js +2 -2
- package/package.json +1 -1
- package/src/index.ts +5 -2
- package/src/safety/print-file.ts +2 -2
package/CONTRIBUTORS.md
CHANGED
|
@@ -6,6 +6,7 @@ Thank you to everyone who builds, tests, reports problems, and shares real print
|
|
|
6
6
|
|
|
7
7
|
| Contributor | Contribution |
|
|
8
8
|
| --- | --- |
|
|
9
|
+
| [ZombieLurker](https://github.com/ZombieLurker) | Reports and diagnoses the unused-nozzle preheat rejection for OrcaSlicer 2.4.2 single-filament H2D jobs in [#73](https://github.com/DMontgomery40/bambu-printer-mcp/issues/73), supplies the exact startup commands and environment, and verifies a local inspection fix. H2D Pro coverage is independently supported by its official profile; no physical printing is claimed by this release. |
|
|
9
10
|
| [MorganFreeeman](https://github.com/MorganFreeeman) | Reports in [#67](https://github.com/DMontgomery40/bambu-printer-mcp/issues/67) that every H2D print stopped on stock HS01 nozzles. Supplies idle and mid-print firmware 01.04.00.00 nozzle reports showing a permanent `stat: 1` with `sn: "N/A"`, proposes keeping the check narrow to nozzles without an identity chip, and points out the misleading declined-confirmation advice and the missing settings-table entries. Maintainer validation uses their reports in regressions; no H2D hardware was available. |
|
|
10
11
|
| [Aaron Roberts (aaroberts)](https://github.com/aaroberts) | Diagnoses FULU's Linux host exit 101 and its working-directory library loading in [#68](https://github.com/DMontgomery40/bambu-printer-mcp/issues/68), reports both upstream as [FULU #50](https://github.com/FULU-Foundation/OrcaSlicer-bambulab/issues/50) and [#51](https://github.com/FULU-Foundation/OrcaSlicer-bambulab/issues/51), and shares a working configuration: the `cat` wrapper, absolute plug-in paths, the FULU GUI's session file for cloud login, and the required 02.05.02.5x plug-in. Reports cloud printing on two P1S printers with 1.1.33. The server now sets the library paths and explains exit 101. The host fixes themselves remain with FULU. |
|
|
11
12
|
| [bwees](https://github.com/bwees) | Reports and fixes missing non-preset vendor data in [OrcaSlicer #16700](https://github.com/OrcaSlicer/OrcaSlicer/issues/16700) and [#16706](https://github.com/OrcaSlicer/OrcaSlicer/pull/16706), restoring the authoritative BBL CLI matrix required by cache-based MCP slicing. |
|
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" },
|
|
@@ -640,8 +640,8 @@ export async function inspectPrintFile(filePath, options) {
|
|
|
640
640
|
for (const key of args.keys())
|
|
641
641
|
if (!'SLT'.includes(key))
|
|
642
642
|
fail(`unsupported M620.17 parameter ${key}`);
|
|
643
|
-
if (args.get('L') === -1 &&
|
|
644
|
-
// OrcaSlicer's X2D start G-code preheats a nozzle with no assigned
|
|
643
|
+
if (args.get('L') === -1 && ['x2d', 'h2d', 'h2dpro'].includes(model)) {
|
|
644
|
+
// OrcaSlicer's X2D/H2D/H2D Pro start G-code preheats a nozzle with no assigned
|
|
645
645
|
// filament (L-1) for toolhead-offset calibration; Bambu Studio writes
|
|
646
646
|
// L0 there. No project filament is selected, so check the target
|
|
647
647
|
// against the hardware limit and every declared material, like other
|
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" },
|
package/src/safety/print-file.ts
CHANGED
|
@@ -462,8 +462,8 @@ export async function inspectPrintFile(filePath: string, options: {model:string;
|
|
|
462
462
|
const args=parameters(argumentsText);
|
|
463
463
|
if(!args.has('S') || !args.has('L') || !args.has('T') || !Number.isInteger(args.get('T')) || args.get('T')!<0 || args.get('T')!>=nozzleDiameters.length) fail('unsupported M620.17 nozzle/material temperature mapping');
|
|
464
464
|
for(const key of args.keys()) if(!'SLT'.includes(key)) fail(`unsupported M620.17 parameter ${key}`);
|
|
465
|
-
if(args.get('L')===-1 &&
|
|
466
|
-
// OrcaSlicer's X2D start G-code preheats a nozzle with no assigned
|
|
465
|
+
if(args.get('L')===-1 && ['x2d','h2d','h2dpro'].includes(model)) {
|
|
466
|
+
// OrcaSlicer's X2D/H2D/H2D Pro start G-code preheats a nozzle with no assigned
|
|
467
467
|
// filament (L-1) for toolhead-offset calibration; Bambu Studio writes
|
|
468
468
|
// L0 there. No project filament is selected, so check the target
|
|
469
469
|
// against the hardware limit and every declared material, like other
|