any2orca 0.9.0 → 0.9.2

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/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # any2orca
2
2
 
3
+ ## 0.9.2
4
+
5
+ ### Fixes
6
+
7
+ - **A preset's values are checked against the Snapmaker Orca release it converts for.** The check used the strictest limits of every supported release together, so a value the chosen release accepts could be left out: a raft initial layer expansion of -1 (2.4.1's own stock value) or a bridge density above 100% when converting for 2.4.1. Each release's own limits now apply; a PrusaSlicer project, read before a release is chosen, is still checked against what every supported release accepts. Converted files don't change.
8
+
9
+ ## 0.9.1
10
+
11
+ ### Other
12
+
13
+ - **`VERSION` is typed as `string`.** It was typed as its own value ("0.9.0"), so its type changed with every release; its value is unchanged.
14
+
3
15
  ## 0.9.0
4
16
 
5
17
  ### Breaking
package/README.md CHANGED
@@ -35,7 +35,7 @@ The full reference, with exit codes, the state file and `telemetry`, is in [`doc
35
35
 
36
36
  Every exported function and type is in the [API reference](https://docs.any2orca.com). The common paths:
37
37
 
38
- What stays stable: everything the library exports is supported, and a release only adds to it. A new option is optional, a result can gain fields, and a list of values the library returns (a source maker, an error code, a change reason, a conversion stage, a diff status) can gain values, so handle one you don't recognize; each list's known values are exported next to its type, for example `SOURCE_VENDORS` beside `SourceVendor`. A file format (the output stamp, a presets file, the profile catalog, the stats event) changes shape only with a new version number, and older ones keep being read. Nothing is removed or renamed outside a major release, and only after a deprecation notice. The same holds for the CLI's commands, flags, exit codes and JSON output, and for the partner hand-off. A check in CI compares the API's shape with a committed report, so a change to it is deliberate.
38
+ What stays stable: everything the library exports is supported, and a release only adds to it. A new option is optional, a result can gain fields, an interface you implement yourself (such as `ProfileSource`) only gains optional members, and a list of values the library returns (a source maker, an error code, a change reason, a conversion stage, a diff status) can gain values, so handle one you don't recognize; each list's known values are exported next to its type, for example `SOURCE_VENDORS` beside `SourceVendor`. A file format (the output stamp, a presets file, the profile catalog, the stats event) changes shape only with a new version number, and older ones keep being read. Nothing is removed or renamed outside a major release, and only after a deprecation notice. The same holds for the CLI's commands, flags, exit codes and JSON output, and for the partner hand-off. Checks in CI compare the API's shape, and the CLI's commands and options, with committed records, so a change to either is deliberate.
39
39
 
40
40
  Every filament in the source stays in the output: all of them, with their colors, brands, types and order, however many. The U1 loads four at a time, but a project can use many more, swapped in at the pauses the user plans in Snapmaker Orca, and that planning depends on the file's own order. `report.filaments` lists each slot with the name it had and the name it has. The model's own metadata in `3D/3dmodel.model` (designer, license, copyright, title, description) stays as it was; only `Application` changes, to the Snapmaker Orca release the file is made for.
41
41
 
package/dist/cli/main.js CHANGED
@@ -8,6 +8,7 @@ import { loadCatalog } from "../profiles.js";
8
8
  import { VERSION } from "../version.js";
9
9
  import { MAX_UNPACKED_BYTES_LIMIT } from "../archive/safeUnzip.js";
10
10
  import { runConvert, runWatch } from "./commands/convert.js";
11
+ import { CONVERT_OPTIONS, DIFF_OPTIONS, PRESETS_OPTIONS, PROFILES_OPTIONS } from "./surface.js";
11
12
  import { runDiff } from "./commands/diff.js";
12
13
  import { presetForConvert, presetForDiff, runPresetsAdd, runPresetsExport, runPresetsImport, runPresetsList, runPresetsRemove, runPresetsShow, } from "./commands/presets.js";
13
14
  import { resolveAboveStockChoice } from "../engine/aboveStock.js";
@@ -280,15 +281,7 @@ async function runCommand(command, rest, io) {
280
281
  const { values, positionals } = parseArgs({
281
282
  args,
282
283
  allowPositionals: true,
283
- options: {
284
- group: { type: "string", multiple: true },
285
- all: { type: "boolean", default: false },
286
- sort: { type: "string" },
287
- json: { type: "boolean", default: false },
288
- "profiles-dir": { type: "string" },
289
- "snapmaker-orca-version": { type: "string" },
290
- "against-preset": { type: "string" },
291
- },
284
+ options: DIFF_OPTIONS,
292
285
  });
293
286
  const againstPreset = values["against-preset"] !== undefined ? presetForDiff(values["against-preset"], io.env) : undefined;
294
287
  const allowed = ["print", "filament", "machine", "other"];
@@ -316,15 +309,7 @@ async function runCommand(command, rest, io) {
316
309
  const { values, positionals } = parseArgs({
317
310
  args,
318
311
  allowPositionals: true,
319
- options: {
320
- "above-stock": { type: "string" },
321
- keep: { type: "string", multiple: true },
322
- force: { type: "boolean", default: false },
323
- json: { type: "boolean", default: false },
324
- out: { type: "string" },
325
- "profiles-dir": { type: "string" },
326
- "snapmaker-orca-version": { type: "string" },
327
- },
312
+ options: PRESETS_OPTIONS,
328
313
  });
329
314
  const options = {
330
315
  env: io.env,
@@ -367,7 +352,7 @@ async function runCommand(command, rest, io) {
367
352
  }
368
353
  const { values } = parseArgs({
369
354
  args: rest,
370
- options: { nozzle: { type: "string" }, "profiles-dir": { type: "string" }, "snapmaker-orca-version": { type: "string" } },
355
+ options: PROFILES_OPTIONS,
371
356
  });
372
357
  const top = await openCatalog(values["profiles-dir"]);
373
358
  runProfiles(await top.forRelease(values["snapmaker-orca-version"] ?? top.index.slicer.version), values.nozzle, io.out, top.releases());
@@ -399,35 +384,7 @@ async function runCommand(command, rest, io) {
399
384
  const { values, positionals } = parseArgs({
400
385
  args: rest,
401
386
  allowPositionals: true,
402
- options: {
403
- profile: { type: "string" },
404
- preset: { type: "string" },
405
- "above-stock": { type: "string" },
406
- keep: { type: "string", multiple: true },
407
- "use-stock": { type: "string", multiple: true },
408
- "keep-higher": { type: "string", multiple: true },
409
- "filament-compliance": { type: "string" },
410
- "high-flow": { type: "boolean", default: false },
411
- "high-flow-toolheads": { type: "string" },
412
- "hardened-nozzle": { type: "boolean", default: false },
413
- "no-stamp": { type: "boolean", default: false },
414
- "max-unpacked": { type: "string" },
415
- explain: { type: "boolean", default: false },
416
- "explain-json": { type: "boolean", default: false },
417
- "out-dir": { type: "string" },
418
- suffix: { type: "string", default: "_U1" },
419
- "dry-run": { type: "boolean", default: false },
420
- verbose: { type: "boolean", default: false },
421
- "skip-existing": { type: "boolean", default: false },
422
- watch: { type: "string" },
423
- "archive-dir": { type: "string" },
424
- "log-file": { type: "string" },
425
- quiet: { type: "boolean", default: false },
426
- "profiles-dir": { type: "string" },
427
- "snapmaker-orca-version": { type: "string" },
428
- "dry-run-telemetry": { type: "boolean", default: false },
429
- "stats-endpoint": { type: "string" },
430
- },
387
+ options: CONVERT_OPTIONS,
431
388
  });
432
389
  if (values.watch !== undefined && positionals.length > 0) {
433
390
  throw new Error("--watch takes no file arguments; pass the folder to watch as --watch <dir> (see: any2orca convert --help)");
@@ -0,0 +1,353 @@
1
+ /**
2
+ * The command line's surface: its commands, subcommands and every option each one accepts. The parser in
3
+ * main.ts reads its options from here, and `cliSurface.test.ts` records the whole table (with the environment
4
+ * variables the CLI reads) in `etc/cli-surface.json`, so a change to what the CLI accepts is deliberate.
5
+ *
6
+ * The surface only grows: add a command, subcommand or option; never rename or remove one outside a major
7
+ * release, and deprecate it first (it keeps working, prints a notice naming its replacement, and is documented).
8
+ */
9
+ export declare const DIFF_OPTIONS: {
10
+ readonly "against-preset": {
11
+ readonly type: "string";
12
+ };
13
+ readonly "profiles-dir": {
14
+ readonly type: "string";
15
+ };
16
+ readonly "snapmaker-orca-version": {
17
+ readonly type: "string";
18
+ };
19
+ readonly group: {
20
+ readonly type: "string";
21
+ readonly multiple: true;
22
+ };
23
+ readonly all: {
24
+ readonly type: "boolean";
25
+ readonly default: false;
26
+ };
27
+ readonly sort: {
28
+ readonly type: "string";
29
+ };
30
+ readonly json: {
31
+ readonly type: "boolean";
32
+ readonly default: false;
33
+ };
34
+ };
35
+ export declare const PRESETS_OPTIONS: {
36
+ readonly "profiles-dir": {
37
+ readonly type: "string";
38
+ };
39
+ readonly "snapmaker-orca-version": {
40
+ readonly type: "string";
41
+ };
42
+ readonly "above-stock": {
43
+ readonly type: "string";
44
+ };
45
+ readonly keep: {
46
+ readonly type: "string";
47
+ readonly multiple: true;
48
+ };
49
+ readonly force: {
50
+ readonly type: "boolean";
51
+ readonly default: false;
52
+ };
53
+ readonly json: {
54
+ readonly type: "boolean";
55
+ readonly default: false;
56
+ };
57
+ readonly out: {
58
+ readonly type: "string";
59
+ };
60
+ };
61
+ export declare const PROFILES_OPTIONS: {
62
+ readonly "profiles-dir": {
63
+ readonly type: "string";
64
+ };
65
+ readonly "snapmaker-orca-version": {
66
+ readonly type: "string";
67
+ };
68
+ readonly nozzle: {
69
+ readonly type: "string";
70
+ };
71
+ };
72
+ export declare const CONVERT_OPTIONS: {
73
+ readonly "dry-run-telemetry": {
74
+ readonly type: "boolean";
75
+ readonly default: false;
76
+ };
77
+ readonly "stats-endpoint": {
78
+ readonly type: "string";
79
+ };
80
+ readonly "profiles-dir": {
81
+ readonly type: "string";
82
+ };
83
+ readonly "snapmaker-orca-version": {
84
+ readonly type: "string";
85
+ };
86
+ readonly profile: {
87
+ readonly type: "string";
88
+ };
89
+ readonly preset: {
90
+ readonly type: "string";
91
+ };
92
+ readonly "above-stock": {
93
+ readonly type: "string";
94
+ };
95
+ readonly keep: {
96
+ readonly type: "string";
97
+ readonly multiple: true;
98
+ };
99
+ readonly "use-stock": {
100
+ readonly type: "string";
101
+ readonly multiple: true;
102
+ };
103
+ readonly "keep-higher": {
104
+ readonly type: "string";
105
+ readonly multiple: true;
106
+ };
107
+ readonly "filament-compliance": {
108
+ readonly type: "string";
109
+ };
110
+ readonly "high-flow": {
111
+ readonly type: "boolean";
112
+ readonly default: false;
113
+ };
114
+ readonly "high-flow-toolheads": {
115
+ readonly type: "string";
116
+ };
117
+ readonly "hardened-nozzle": {
118
+ readonly type: "boolean";
119
+ readonly default: false;
120
+ };
121
+ readonly "no-stamp": {
122
+ readonly type: "boolean";
123
+ readonly default: false;
124
+ };
125
+ readonly "max-unpacked": {
126
+ readonly type: "string";
127
+ };
128
+ readonly explain: {
129
+ readonly type: "boolean";
130
+ readonly default: false;
131
+ };
132
+ readonly "explain-json": {
133
+ readonly type: "boolean";
134
+ readonly default: false;
135
+ };
136
+ readonly "out-dir": {
137
+ readonly type: "string";
138
+ };
139
+ readonly suffix: {
140
+ readonly type: "string";
141
+ readonly default: "_U1";
142
+ };
143
+ readonly "dry-run": {
144
+ readonly type: "boolean";
145
+ readonly default: false;
146
+ };
147
+ readonly verbose: {
148
+ readonly type: "boolean";
149
+ readonly default: false;
150
+ };
151
+ readonly "skip-existing": {
152
+ readonly type: "boolean";
153
+ readonly default: false;
154
+ };
155
+ readonly watch: {
156
+ readonly type: "string";
157
+ };
158
+ readonly "archive-dir": {
159
+ readonly type: "string";
160
+ };
161
+ readonly "log-file": {
162
+ readonly type: "string";
163
+ };
164
+ readonly quiet: {
165
+ readonly type: "boolean";
166
+ readonly default: false;
167
+ };
168
+ };
169
+ /** Every command, the words it takes after it, and its options; main.ts dispatches on these names. */
170
+ export declare const CLI_SURFACE: {
171
+ readonly topLevel: readonly ["help", "--help", "-h", "version", "--version", "-v"];
172
+ readonly commands: {
173
+ readonly convert: {
174
+ readonly positionals: "<files...>";
175
+ readonly options: {
176
+ readonly "dry-run-telemetry": {
177
+ readonly type: "boolean";
178
+ readonly default: false;
179
+ };
180
+ readonly "stats-endpoint": {
181
+ readonly type: "string";
182
+ };
183
+ readonly "profiles-dir": {
184
+ readonly type: "string";
185
+ };
186
+ readonly "snapmaker-orca-version": {
187
+ readonly type: "string";
188
+ };
189
+ readonly profile: {
190
+ readonly type: "string";
191
+ };
192
+ readonly preset: {
193
+ readonly type: "string";
194
+ };
195
+ readonly "above-stock": {
196
+ readonly type: "string";
197
+ };
198
+ readonly keep: {
199
+ readonly type: "string";
200
+ readonly multiple: true;
201
+ };
202
+ readonly "use-stock": {
203
+ readonly type: "string";
204
+ readonly multiple: true;
205
+ };
206
+ readonly "keep-higher": {
207
+ readonly type: "string";
208
+ readonly multiple: true;
209
+ };
210
+ readonly "filament-compliance": {
211
+ readonly type: "string";
212
+ };
213
+ readonly "high-flow": {
214
+ readonly type: "boolean";
215
+ readonly default: false;
216
+ };
217
+ readonly "high-flow-toolheads": {
218
+ readonly type: "string";
219
+ };
220
+ readonly "hardened-nozzle": {
221
+ readonly type: "boolean";
222
+ readonly default: false;
223
+ };
224
+ readonly "no-stamp": {
225
+ readonly type: "boolean";
226
+ readonly default: false;
227
+ };
228
+ readonly "max-unpacked": {
229
+ readonly type: "string";
230
+ };
231
+ readonly explain: {
232
+ readonly type: "boolean";
233
+ readonly default: false;
234
+ };
235
+ readonly "explain-json": {
236
+ readonly type: "boolean";
237
+ readonly default: false;
238
+ };
239
+ readonly "out-dir": {
240
+ readonly type: "string";
241
+ };
242
+ readonly suffix: {
243
+ readonly type: "string";
244
+ readonly default: "_U1";
245
+ };
246
+ readonly "dry-run": {
247
+ readonly type: "boolean";
248
+ readonly default: false;
249
+ };
250
+ readonly verbose: {
251
+ readonly type: "boolean";
252
+ readonly default: false;
253
+ };
254
+ readonly "skip-existing": {
255
+ readonly type: "boolean";
256
+ readonly default: false;
257
+ };
258
+ readonly watch: {
259
+ readonly type: "string";
260
+ };
261
+ readonly "archive-dir": {
262
+ readonly type: "string";
263
+ };
264
+ readonly "log-file": {
265
+ readonly type: "string";
266
+ };
267
+ readonly quiet: {
268
+ readonly type: "boolean";
269
+ readonly default: false;
270
+ };
271
+ };
272
+ };
273
+ readonly diff: {
274
+ readonly positionals: "<a.3mf> [<b.3mf>]";
275
+ readonly options: {
276
+ readonly "against-stock": {
277
+ readonly type: "string";
278
+ readonly optionalValue: true;
279
+ };
280
+ readonly "against-preset": {
281
+ readonly type: "string";
282
+ };
283
+ readonly "profiles-dir": {
284
+ readonly type: "string";
285
+ };
286
+ readonly "snapmaker-orca-version": {
287
+ readonly type: "string";
288
+ };
289
+ readonly group: {
290
+ readonly type: "string";
291
+ readonly multiple: true;
292
+ };
293
+ readonly all: {
294
+ readonly type: "boolean";
295
+ readonly default: false;
296
+ };
297
+ readonly sort: {
298
+ readonly type: "string";
299
+ };
300
+ readonly json: {
301
+ readonly type: "boolean";
302
+ readonly default: false;
303
+ };
304
+ };
305
+ };
306
+ readonly presets: {
307
+ readonly subcommands: readonly ["add", "list", "show", "remove", "export", "import"];
308
+ readonly options: {
309
+ readonly "profiles-dir": {
310
+ readonly type: "string";
311
+ };
312
+ readonly "snapmaker-orca-version": {
313
+ readonly type: "string";
314
+ };
315
+ readonly "above-stock": {
316
+ readonly type: "string";
317
+ };
318
+ readonly keep: {
319
+ readonly type: "string";
320
+ readonly multiple: true;
321
+ };
322
+ readonly force: {
323
+ readonly type: "boolean";
324
+ readonly default: false;
325
+ };
326
+ readonly json: {
327
+ readonly type: "boolean";
328
+ readonly default: false;
329
+ };
330
+ readonly out: {
331
+ readonly type: "string";
332
+ };
333
+ };
334
+ };
335
+ readonly profiles: {
336
+ readonly options: {
337
+ readonly "profiles-dir": {
338
+ readonly type: "string";
339
+ };
340
+ readonly "snapmaker-orca-version": {
341
+ readonly type: "string";
342
+ };
343
+ readonly nozzle: {
344
+ readonly type: "string";
345
+ };
346
+ };
347
+ };
348
+ readonly telemetry: {
349
+ readonly subcommands: readonly ["show", "on", "off", "clear", "update-check on", "update-check off"];
350
+ readonly options: {};
351
+ };
352
+ };
353
+ };
@@ -0,0 +1,73 @@
1
+ // SPDX-License-Identifier: MIT
2
+ /**
3
+ * The command line's surface: its commands, subcommands and every option each one accepts. The parser in
4
+ * main.ts reads its options from here, and `cliSurface.test.ts` records the whole table (with the environment
5
+ * variables the CLI reads) in `etc/cli-surface.json`, so a change to what the CLI accepts is deliberate.
6
+ *
7
+ * The surface only grows: add a command, subcommand or option; never rename or remove one outside a major
8
+ * release, and deprecate it first (it keeps working, prints a notice naming its replacement, and is documented).
9
+ */
10
+ const PROFILE_OPTIONS = {
11
+ "profiles-dir": { type: "string" },
12
+ "snapmaker-orca-version": { type: "string" },
13
+ };
14
+ export const DIFF_OPTIONS = {
15
+ group: { type: "string", multiple: true },
16
+ all: { type: "boolean", default: false },
17
+ sort: { type: "string" },
18
+ json: { type: "boolean", default: false },
19
+ ...PROFILE_OPTIONS,
20
+ "against-preset": { type: "string" },
21
+ };
22
+ export const PRESETS_OPTIONS = {
23
+ "above-stock": { type: "string" },
24
+ keep: { type: "string", multiple: true },
25
+ force: { type: "boolean", default: false },
26
+ json: { type: "boolean", default: false },
27
+ out: { type: "string" },
28
+ ...PROFILE_OPTIONS,
29
+ };
30
+ export const PROFILES_OPTIONS = {
31
+ nozzle: { type: "string" },
32
+ ...PROFILE_OPTIONS,
33
+ };
34
+ export const CONVERT_OPTIONS = {
35
+ profile: { type: "string" },
36
+ preset: { type: "string" },
37
+ "above-stock": { type: "string" },
38
+ keep: { type: "string", multiple: true },
39
+ "use-stock": { type: "string", multiple: true },
40
+ "keep-higher": { type: "string", multiple: true },
41
+ "filament-compliance": { type: "string" },
42
+ "high-flow": { type: "boolean", default: false },
43
+ "high-flow-toolheads": { type: "string" },
44
+ "hardened-nozzle": { type: "boolean", default: false },
45
+ "no-stamp": { type: "boolean", default: false },
46
+ "max-unpacked": { type: "string" },
47
+ explain: { type: "boolean", default: false },
48
+ "explain-json": { type: "boolean", default: false },
49
+ "out-dir": { type: "string" },
50
+ suffix: { type: "string", default: "_U1" },
51
+ "dry-run": { type: "boolean", default: false },
52
+ verbose: { type: "boolean", default: false },
53
+ "skip-existing": { type: "boolean", default: false },
54
+ watch: { type: "string" },
55
+ "archive-dir": { type: "string" },
56
+ "log-file": { type: "string" },
57
+ quiet: { type: "boolean", default: false },
58
+ ...PROFILE_OPTIONS,
59
+ "dry-run-telemetry": { type: "boolean", default: false },
60
+ "stats-endpoint": { type: "string" },
61
+ };
62
+ /** Every command, the words it takes after it, and its options; main.ts dispatches on these names. */
63
+ export const CLI_SURFACE = {
64
+ topLevel: ["help", "--help", "-h", "version", "--version", "-v"],
65
+ commands: {
66
+ convert: { positionals: "<files...>", options: CONVERT_OPTIONS },
67
+ // --against-stock takes an optional value, so main.ts reads it before parseArgs.
68
+ diff: { positionals: "<a.3mf> [<b.3mf>]", options: { ...DIFF_OPTIONS, "against-stock": { type: "string", optionalValue: true } } },
69
+ presets: { subcommands: ["add", "list", "show", "remove", "export", "import"], options: PRESETS_OPTIONS },
70
+ profiles: { options: PROFILES_OPTIONS },
71
+ telemetry: { subcommands: ["show", "on", "off", "clear", "update-check on", "update-check off"], options: {} },
72
+ },
73
+ };
@@ -0,0 +1,12 @@
1
+ /** A setting's limits and choices: what Snapmaker Orca accepts for it. */
2
+ export interface SettingLimits {
3
+ readonly min: number | null;
4
+ readonly max: number | null;
5
+ readonly choices: readonly string[] | null;
6
+ }
7
+ /**
8
+ * What Snapmaker Orca accepts for a setting: for the release given, or, with none, what every supported
9
+ * release accepts (the higher minimum, the lower maximum, the choices they share), for a check made before the
10
+ * release is known, such as reading a PrusaSlicer project. Undefined for a key Snapmaker Orca doesn't have.
11
+ */
12
+ export declare function settingLimits(key: string, release?: string): SettingLimits | undefined;
@@ -0,0 +1,37 @@
1
+ // SPDX-License-Identifier: MIT
2
+ import { OLDER_RELEASE_LIMITS, SETTINGS_CATALOG } from "./settingsCatalog.js";
3
+ function forOlderRelease(key, release) {
4
+ if (!Object.hasOwn(OLDER_RELEASE_LIMITS, release) || !Object.hasOwn(OLDER_RELEASE_LIMITS[release], key))
5
+ return undefined;
6
+ const newest = SETTINGS_CATALOG[key];
7
+ const d = OLDER_RELEASE_LIMITS[release][key];
8
+ return {
9
+ min: "min" in d ? (d.min ?? null) : newest.min,
10
+ max: "max" in d ? (d.max ?? null) : newest.max,
11
+ choices: "choices" in d ? (d.choices ?? null) : newest.choices,
12
+ };
13
+ }
14
+ /**
15
+ * What Snapmaker Orca accepts for a setting: for the release given, or, with none, what every supported
16
+ * release accepts (the higher minimum, the lower maximum, the choices they share), for a check made before the
17
+ * release is known, such as reading a PrusaSlicer project. Undefined for a key Snapmaker Orca doesn't have.
18
+ */
19
+ export function settingLimits(key, release) {
20
+ if (!Object.hasOwn(SETTINGS_CATALOG, key))
21
+ return undefined;
22
+ const { min, max, choices } = SETTINGS_CATALOG[key];
23
+ if (release !== undefined)
24
+ return forOlderRelease(key, release) ?? { min, max, choices };
25
+ let out = { min, max, choices };
26
+ for (const older of Object.keys(OLDER_RELEASE_LIMITS)) {
27
+ const o = forOlderRelease(key, older);
28
+ if (!o)
29
+ continue;
30
+ out = {
31
+ min: o.min === null ? out.min : out.min === null ? o.min : Math.max(out.min, o.min),
32
+ max: o.max === null ? out.max : out.max === null ? o.max : Math.min(out.max, o.max),
33
+ choices: o.choices === null ? out.choices : out.choices === null ? o.choices : out.choices.filter((c) => o.choices.includes(c)),
34
+ };
35
+ }
36
+ return out;
37
+ }
@@ -11,10 +11,10 @@ export interface SettingInfo {
11
11
  readonly order: number | null;
12
12
  /** Snapmaker Orca's value type, for example "coFloat", "coFloats", "coPercent", "coBool", "coEnum", "coString". */
13
13
  readonly type: string | null;
14
- /** The smallest and largest value every supported Snapmaker Orca release accepts, where one declares it. */
14
+ /** The smallest and largest value the newest supported release accepts, where it declares one (settingLimits gives another release's). */
15
15
  readonly min: number | null;
16
16
  readonly max: number | null;
17
- /** The values every supported Snapmaker Orca release accepts for a setting with a fixed set of choices. */
17
+ /** The values the newest supported release accepts for a setting with a fixed set of choices. */
18
18
  readonly choices: readonly string[] | null;
19
19
  }
20
20
  /** Every setting in Snapmaker Orca's print, filament and printer presets, by key. */
@@ -26,3 +26,13 @@ export declare const SETTINGS_CATALOG_SOURCE: {
26
26
  readonly tag: "v2.4.1";
27
27
  readonly commit: "bac6fd5c1e1c23ddf057cf6471ba4ed7ed621c4c";
28
28
  };
29
+ /** For each older supported release, the limits and choice lists it accepts differently from the newest. */
30
+ export declare const OLDER_RELEASE_LIMITS: {
31
+ readonly [release: string]: {
32
+ readonly [key: string]: {
33
+ readonly min?: number | null;
34
+ readonly max?: number | null;
35
+ readonly choices?: readonly string[] | null;
36
+ };
37
+ };
38
+ };
@@ -1,6 +1,6 @@
1
1
  // SPDX-License-Identifier: MIT
2
- // Generated from Snapmaker/OrcaSlicer v2.4.1 (bac6fd5c1e1c23ddf057cf6471ba4ed7ed621c4c); limits and choices
3
- // narrowed to what every supported release accepts (2.4.1, 2.4.0).
2
+ // Generated from Snapmaker/OrcaSlicer v2.4.1 (bac6fd5c1e1c23ddf057cf6471ba4ed7ed621c4c), the newest supported release;
3
+ // OLDER_RELEASE_LIMITS holds what each older supported release (2.4.0) accepts differently.
4
4
  // Generated by the maintainers from that release; please open an issue instead of editing it by hand.
5
5
  /** Every setting in Snapmaker Orca's print, filament and printer presets, by key. */
6
6
  export const SETTINGS_CATALOG = Object.freeze({
@@ -36,7 +36,7 @@ export const SETTINGS_CATALOG = Object.freeze({
36
36
  "bottom_surface_pattern": { group: "print", label: "Bottom surface pattern", page: "Strength", section: "Top/bottom shells", order: 92, type: "coEnum", min: null, max: null, choices: null },
37
37
  "bridge_acceleration": { group: "print", label: "Bridge", page: "Speed", section: "Acceleration", order: 157, type: "coFloatsOrPercents", min: 0, max: null, choices: null },
38
38
  "bridge_angle": { group: "print", label: "External bridge infill direction", page: "Strength", section: "Advanced", order: 123, type: "coFloat", min: 0, max: null, choices: null },
39
- "bridge_density": { group: "print", label: "External bridge density", page: "Quality", section: "Bridging", order: 70, type: "coPercent", min: 10, max: 100, choices: null },
39
+ "bridge_density": { group: "print", label: "External bridge density", page: "Quality", section: "Bridging", order: 70, type: "coPercent", min: 10, max: 120, choices: null },
40
40
  "bridge_flow": { group: "print", label: "Bridge flow ratio", page: "Quality", section: "Bridging", order: 68, type: "coFloat", min: 0, max: 2, choices: null },
41
41
  "bridge_no_support": { group: "print", label: "Don't support bridges", page: "Support", section: "Advanced", order: 214, type: "coBool", min: null, max: null, choices: null },
42
42
  "bridge_speed": { group: "print", label: "External", page: "Speed", section: "Overhang speed", order: 151, type: "coFloats", min: 1, max: null, choices: null },
@@ -394,7 +394,7 @@ export const SETTINGS_CATALOG = Object.freeze({
394
394
  "raft_contact_distance": { group: "print", label: "Raft contact Z distance", page: "Support", section: "Raft", order: 190, type: "coFloat", min: 0, max: null, choices: null },
395
395
  "raft_expansion": { group: "print", label: "Raft expansion", page: "Support", section: null, order: null, type: "coFloat", min: 0, max: null, choices: null },
396
396
  "raft_first_layer_density": { group: "print", label: "Initial layer density", page: "Support", section: "Support", order: 183, type: "coPercent", min: 10, max: 100, choices: null },
397
- "raft_first_layer_expansion": { group: "print", label: "Initial layer expansion", page: "Support", section: "Support", order: 184, type: "coFloat", min: 0, max: null, choices: null },
397
+ "raft_first_layer_expansion": { group: "print", label: "Initial layer expansion", page: "Support", section: "Support", order: 184, type: "coFloat", min: -1, max: null, choices: null },
398
398
  "raft_layers": { group: "print", label: "Raft layers", page: "Support", section: "Raft", order: 189, type: "coInt", min: 0, max: 100, choices: null },
399
399
  "ramming_line_width_ratio": { group: "machine", label: "Ramming line width ratio", page: "Multimaterial", section: "Wipe tower", order: 459, type: "coFloat", min: null, max: null, choices: null },
400
400
  "ramming_pressure_advance_value": { group: "machine", label: "Pressure advance value when ramming", page: "Multimaterial", section: "Wipe tower", order: 461, type: "coFloat", min: null, max: null, choices: null },
@@ -620,3 +620,17 @@ export const SETTINGS_CATALOG = Object.freeze({
620
620
  });
621
621
  /** The Snapmaker Orca release the catalog was generated from. */
622
622
  export const SETTINGS_CATALOG_SOURCE = { "tag": "v2.4.1", "commit": "bac6fd5c1e1c23ddf057cf6471ba4ed7ed621c4c" };
623
+ /** For each older supported release, the limits and choice lists it accepts differently from the newest. */
624
+ export const OLDER_RELEASE_LIMITS = Object.freeze({
625
+ "2.4.0": {
626
+ "bridge_density": {
627
+ "max": 100
628
+ },
629
+ "raft_first_layer_expansion": {
630
+ "min": 0
631
+ },
632
+ "support_threshold_angle": {
633
+ "min": 0
634
+ }
635
+ }
636
+ });
@@ -21,4 +21,6 @@ export interface BuildProjectSettingsResult {
21
21
  * @param minComparisonKeys travel_speed/`*_acceleration`-style motion-safety keys: honored only when Bambu's value is LOWER than the U1 profile's own default, unconditionally (not gated on customization) -- see that constant's own doc comment.
22
22
  * @param alwaysTransferKeys keys that always track Bambu's real value, unconditionally (not gated on customization, no min-comparison either) -- e.g. print_sequence (layout-coupled) and the infill-density family (Bambu's customization flag doesn't reliably cover them) -- see that constant's own doc comment.
23
23
  */
24
- export declare function buildProjectSettings(baselineSettings: JsonRecord, bambuSettings: JsonRecord, filamentKeyArrays: Record<string, unknown[]> | null, blocklist: ReadonlySet<string>, minComparisonKeys: ReadonlySet<string>, alwaysTransferKeys: ReadonlySet<string>, warnings: string[]): BuildProjectSettingsResult;
24
+ export declare function buildProjectSettings(baselineSettings: JsonRecord, bambuSettings: JsonRecord, filamentKeyArrays: Record<string, unknown[]> | null, blocklist: ReadonlySet<string>, minComparisonKeys: ReadonlySet<string>, alwaysTransferKeys: ReadonlySet<string>, warnings: string[],
25
+ /** The Snapmaker Orca release the file is for: a choice is checked against what it offers. Absent: the newest. */
26
+ release?: string): BuildProjectSettingsResult;
@@ -1,5 +1,6 @@
1
1
  // SPDX-License-Identifier: MIT
2
2
  import { FLOW_LAYOUT_KEYS } from "./applyFilamentFlowVariants.js";
3
+ import { settingLimits } from "../diff/settingLimits.js";
3
4
  import { SETTINGS_CATALOG } from "../diff/settingsCatalog.js";
4
5
  import { coerceValue } from "./coerceValue.js";
5
6
  import { collapseNozzleVariants } from "./collapseNozzleVariants.js";
@@ -18,13 +19,14 @@ function parseDifferentSettingsToSystem(value) {
18
19
  // Older option names Snapmaker Orca still reads and translates itself (Bambu Studio's infill and ironing "zig-zag").
19
20
  const LEGACY_CHOICES = new Set(["zig-zag"]);
20
21
  /** For a setting with a fixed set of choices, the first value that isn't one Snapmaker Orca offers, if any. */
21
- function unknownChoice(key, value) {
22
+ function unknownChoice(key, value, release) {
22
23
  const info = Object.hasOwn(SETTINGS_CATALOG, key) ? SETTINGS_CATALOG[key] : undefined;
23
- if (!info || info.type !== "coEnum" || !info.choices)
24
+ const choices = settingLimits(key, release)?.choices;
25
+ if (!info || info.type !== "coEnum" || !choices)
24
26
  return null;
25
27
  for (const entry of Array.isArray(value) ? value : [value]) {
26
28
  const text = String(entry);
27
- if (!info.choices.includes(text) && !LEGACY_CHOICES.has(text))
29
+ if (!choices.includes(text) && !LEGACY_CHOICES.has(text))
28
30
  return text;
29
31
  }
30
32
  return null;
@@ -42,7 +44,9 @@ function unknownChoice(key, value) {
42
44
  * @param minComparisonKeys travel_speed/`*_acceleration`-style motion-safety keys: honored only when Bambu's value is LOWER than the U1 profile's own default, unconditionally (not gated on customization) -- see that constant's own doc comment.
43
45
  * @param alwaysTransferKeys keys that always track Bambu's real value, unconditionally (not gated on customization, no min-comparison either) -- e.g. print_sequence (layout-coupled) and the infill-density family (Bambu's customization flag doesn't reliably cover them) -- see that constant's own doc comment.
44
46
  */
45
- export function buildProjectSettings(baselineSettings, bambuSettings, filamentKeyArrays, blocklist, minComparisonKeys, alwaysTransferKeys, warnings) {
47
+ export function buildProjectSettings(baselineSettings, bambuSettings, filamentKeyArrays, blocklist, minComparisonKeys, alwaysTransferKeys, warnings,
48
+ /** The Snapmaker Orca release the file is for: a choice is checked against what it offers. Absent: the newest. */
49
+ release) {
46
50
  // Bambu's OWN customized-keys signal (from the source file, before any
47
51
  // of our merging) -- the creator explicitly touched these in Bambu
48
52
  // Studio, as opposed to Bambu's file just incidentally reporting its
@@ -69,7 +73,7 @@ export function buildProjectSettings(baselineSettings, bambuSettings, filamentKe
69
73
  const notCarried = [];
70
74
  for (const key of transferable) {
71
75
  const [newVal, changed, didNotFit] = coerceValue(baselineSettings[key], source[key], key, warnings, variantIndex);
72
- const unknown = didNotFit ? null : unknownChoice(key, newVal);
76
+ const unknown = didNotFit ? null : unknownChoice(key, newVal, release);
73
77
  if (unknown !== null) {
74
78
  notCarried.push(key);
75
79
  warnings.push(` WARN: the creator's ${key} ("${unknown.slice(0, 40)}") isn't one of Snapmaker Orca's choices, so Snapmaker's stock value is used.`);
@@ -101,7 +105,7 @@ export function buildProjectSettings(baselineSettings, bambuSettings, filamentKe
101
105
  const alwaysTransferApplicable = sharedKeys.filter((k) => alwaysTransferKeys.has(k) && !blocklist.has(k)).sort();
102
106
  for (const key of alwaysTransferApplicable) {
103
107
  const [newVal, changed] = coerceValue(baselineSettings[key], source[key], key, warnings, variantIndex);
104
- const unknown = unknownChoice(key, newVal);
108
+ const unknown = unknownChoice(key, newVal, release);
105
109
  if (unknown !== null) {
106
110
  notCarried.push(key);
107
111
  warnings.push(` WARN: the source file's ${key} ("${unknown.slice(0, 40)}") isn't one of Snapmaker Orca's choices, so Snapmaker's stock value is used.`);
@@ -20,6 +20,8 @@ export interface ConvertProfile {
20
20
  filamentNames?: FilamentNameTable;
21
21
  };
22
22
  profile: {
23
+ /** The Snapmaker Orca release the profile is for, e.g. "2.4.1": what a value is checked against. Absent: the newest. */
24
+ release?: string;
23
25
  id: string;
24
26
  baselineProjectSettings: JsonRecord;
25
27
  filamentShapeConfig: JsonRecord;
@@ -107,7 +107,7 @@ export function runConvertPipeline(profile, request, application, options = {})
107
107
  const useStock = options.aboveStock?.stock ?? new Set();
108
108
  // Keeping the creator's acceleration or travel speed above stock: take it as it is, instead of only when lower.
109
109
  const keptHigher = [...keep].filter((key) => p.minComparisonKeys.has(key));
110
- const { newSettings: mergedSettings, notCarried } = buildProjectSettings(p.baselineProjectSettings, request.projectSettings, filamentKeyArrays, p.blocklist, keptHigher.length > 0 ? new Set([...p.minComparisonKeys].filter((key) => !keep.has(key))) : p.minComparisonKeys, keptHigher.length > 0 ? new Set([...p.alwaysTransferKeys, ...keptHigher]) : p.alwaysTransferKeys, warnings);
110
+ const { newSettings: mergedSettings, notCarried } = buildProjectSettings(p.baselineProjectSettings, request.projectSettings, filamentKeyArrays, p.blocklist, keptHigher.length > 0 ? new Set([...p.minComparisonKeys].filter((key) => !keep.has(key))) : p.minComparisonKeys, keptHigher.length > 0 ? new Set([...p.alwaysTransferKeys, ...keptHigher]) : p.alwaysTransferKeys, warnings, p.release);
111
111
  // Filament settings are the creator's, carried as a whole; they're summarized in one line below.
112
112
  tracker.compare(p.baselineProjectSettings, mergedSettings, (key) => {
113
113
  if (filamentKeyArrays && Object.hasOwn(filamentKeyArrays, key))
@@ -72,7 +72,7 @@ export async function extractPreset(input, options) {
72
72
  continue;
73
73
  Object.defineProperty(differing, key, { value: settings[key], enumerable: true });
74
74
  }
75
- const changes = checkedChanges(differing, stock, notes);
75
+ const changes = checkedChanges(differing, stock, notes, loaded.convertProfile.profile.release);
76
76
  return {
77
77
  preset: {
78
78
  base,
@@ -65,7 +65,7 @@ export declare function stockValue(key: string, stock: unknown): unknown;
65
65
  /** Describes each change: its label, stock and new value, and whether it's above stock or above the machine limit. */
66
66
  export declare function describeChanges(changes: Readonly<Record<string, PresetValue>>, stock: JsonRecord, machine: JsonRecord): PresetChange[];
67
67
  /** The changes a preset can apply on a base profile: allowed keys the profile has, with valid values. Notes say what was left out. */
68
- export declare function checkedChanges(changes: Readonly<Record<string, unknown>>, stock: JsonRecord, notes: string[]): Record<string, PresetValue>;
68
+ export declare function checkedChanges(changes: Readonly<Record<string, unknown>>, stock: JsonRecord, notes: string[], release?: string): Record<string, PresetValue>;
69
69
  /** A preset ready to apply: its profile (a retired base is replaced by its successor) and the changes that are valid for it. */
70
70
  export interface ResolvedPreset {
71
71
  profileId: string;
@@ -18,6 +18,7 @@
18
18
  import "../zodSetup.js";
19
19
  import { z } from "zod";
20
20
  import { labelOf } from "../diff/diffSettings.js";
21
+ import { settingLimits } from "../diff/settingLimits.js";
21
22
  import { SETTINGS_CATALOG } from "../diff/settingsCatalog.js";
22
23
  import { machineLimitFor } from "../engine/aboveStock.js";
23
24
  import { VARIANT_PROCESS_KEYS } from "../engine/applyHighFlowHotends.js";
@@ -37,8 +38,9 @@ const FORBIDDEN_KEYS = new Set(["__proto__", "constructor", "prototype"]);
37
38
  /** Text shown to people: no control characters and no line breaks. */
38
39
  const plainLine = (s) => !UNSAFE_TEXT.test(s) && !/[\n\t]/.test(s);
39
40
  /** Checks one entry against the setting's type and limits; returns why it's invalid, or null. */
40
- function entryProblem(key, entry) {
41
+ function entryProblem(key, entry, release) {
41
42
  const info = SETTINGS_CATALOG[key];
43
+ const limits = settingLimits(key, release) ?? info;
42
44
  if (entry === "nil")
43
45
  return "has no value";
44
46
  if (entry.length > MAX_VALUE_LENGTH || UNSAFE_TEXT.test(entry))
@@ -49,10 +51,10 @@ function entryProblem(key, entry) {
49
51
  if (!NUMBER.test(text))
50
52
  return `isn't a number ("${entry}")`;
51
53
  const n = Number(text);
52
- if (info.min !== null && n < info.min)
53
- return `is below Snapmaker Orca's minimum of ${info.min} ("${entry}")`;
54
- if (info.max !== null && n > info.max)
55
- return `is above Snapmaker Orca's maximum of ${info.max} ("${entry}")`;
54
+ if (limits.min !== null && n < limits.min)
55
+ return `is below Snapmaker Orca's minimum of ${limits.min} ("${entry}")`;
56
+ if (limits.max !== null && n > limits.max)
57
+ return `is above Snapmaker Orca's maximum of ${limits.max} ("${entry}")`;
56
58
  return null;
57
59
  };
58
60
  switch (type) {
@@ -66,8 +68,8 @@ function entryProblem(key, entry) {
66
68
  case "coFloatOrPercent":
67
69
  return numeric(true);
68
70
  case "coEnum":
69
- if (info.choices)
70
- return info.choices.includes(entry) ? null : `isn't one of Snapmaker Orca's choices ("${entry}")`;
71
+ if (limits.choices)
72
+ return limits.choices.includes(entry) ? null : `isn't one of Snapmaker Orca's choices ("${entry}")`;
71
73
  return /^[A-Za-z0-9_-]{1,64}$/.test(entry) ? null : `isn't a valid choice ("${entry}")`;
72
74
  default:
73
75
  return null;
@@ -78,7 +80,7 @@ function entryProblem(key, entry) {
78
80
  * why it can't be stored. A setting Snapmaker Orca keeps per hotend type
79
81
  * (`[standard, high_flow]`) stores only the standard entry.
80
82
  */
81
- function presetValue(key, raw) {
83
+ function presetValue(key, raw, release) {
82
84
  const info = SETTINGS_CATALOG[key];
83
85
  const isList = LIST_TYPES.has(info.type ?? "") && !VARIANT_KEYS.has(key);
84
86
  const source = VARIANT_KEYS.has(key) && Array.isArray(raw) ? raw[0] : raw;
@@ -88,7 +90,7 @@ function presetValue(key, raw) {
88
90
  return { problem: "isn't a list of values" };
89
91
  }
90
92
  for (const entry of source) {
91
- const problem = entryProblem(key, entry);
93
+ const problem = entryProblem(key, entry, release);
92
94
  if (problem)
93
95
  return { problem };
94
96
  }
@@ -96,7 +98,7 @@ function presetValue(key, raw) {
96
98
  }
97
99
  if (typeof source !== "string")
98
100
  return { problem: "isn't a single value" };
99
- const problem = entryProblem(key, source);
101
+ const problem = entryProblem(key, source, release);
100
102
  return problem ? { problem } : { value: source };
101
103
  }
102
104
  /** The stock value a preset value is compared with: the standard entry for a per-hotend-type setting. */
@@ -129,7 +131,7 @@ export function describeChanges(changes, stock, machine) {
129
131
  });
130
132
  }
131
133
  /** The changes a preset can apply on a base profile: allowed keys the profile has, with valid values. Notes say what was left out. */
132
- export function checkedChanges(changes, stock, notes) {
134
+ export function checkedChanges(changes, stock, notes, release) {
133
135
  const out = {};
134
136
  for (const key of Object.keys(changes).sort()) {
135
137
  if (!isPresetKey(key)) {
@@ -141,7 +143,7 @@ export function checkedChanges(changes, stock, notes) {
141
143
  notes.push(`Left out ${labelOf(key)}: the base profile doesn't have this setting.`);
142
144
  continue;
143
145
  }
144
- const checked = presetValue(key, changes[key]);
146
+ const checked = presetValue(key, changes[key], release);
145
147
  if ("problem" in checked) {
146
148
  notes.push(`Left out ${labelOf(key)}: the value ${checked.problem}.`);
147
149
  continue;
@@ -171,7 +173,7 @@ export async function resolvePreset(preset, catalog) {
171
173
  throw new Any2orcaError("invalid_preset", `The preset's base profile "${profileId}" isn't in the profile catalog.`);
172
174
  const loaded = await catalogEngine(catalog).load(profileId);
173
175
  const stock = loaded.convertProfile.profile.baselineProjectSettings;
174
- const changes = checkedChanges(parsed.data.changes, stock, notes);
176
+ const changes = checkedChanges(parsed.data.changes, stock, notes, loaded.convertProfile.profile.release);
175
177
  return { profileId, changes, described: describeChanges(changes, stock, loaded.convertProfile.printer.machineSettingsConfig), notes };
176
178
  }
177
179
  /**
package/dist/profiles.js CHANGED
@@ -312,7 +312,7 @@ export class ProfileCatalog {
312
312
  return Promise.reject(new Any2orcaError("profile_not_found", `No profile found for id "${id}".`));
313
313
  let pending = this.cache.get(id);
314
314
  if (!pending) {
315
- pending = this.source.readProfile(id).then((raw) => toLoadedProfile(raw, summary, this.index.filamentNames));
315
+ pending = this.source.readProfile(id).then((raw) => toLoadedProfile(raw, summary, this.index.filamentNames, this.index.slicer.version));
316
316
  // A failed read isn't cached, so a transient fetch error can be retried.
317
317
  pending.catch(() => this.cache.delete(id));
318
318
  this.cache.set(id, pending);
@@ -320,7 +320,7 @@ export class ProfileCatalog {
320
320
  return pending;
321
321
  }
322
322
  }
323
- function toLoadedProfile(raw, summary, filamentNames) {
323
+ function toLoadedProfile(raw, summary, filamentNames, release) {
324
324
  const parsed = ProfileFileSchema.safeParse(raw);
325
325
  if (!parsed.success)
326
326
  throw new ProfileDataError(`Profile ${summary.id} is malformed: ${describeIssues(parsed.error)}`);
@@ -343,6 +343,7 @@ function toLoadedProfile(raw, summary, filamentNames) {
343
343
  },
344
344
  profile: {
345
345
  id: file.id,
346
+ release,
346
347
  baselineProjectSettings: file.baselineProjectSettings,
347
348
  filamentShapeConfig: file.filamentShape,
348
349
  blocklist: new Set([
@@ -11,6 +11,7 @@
11
11
  * what the creator changed, so every mapped print setting is marked as
12
12
  * changed, and the pipeline's own rules decide what the U1 keeps.
13
13
  */
14
+ import { settingLimits } from "../../diff/settingLimits.js";
14
15
  import { SETTINGS_CATALOG } from "../../diff/settingsCatalog.js";
15
16
  import { splitNumberList, splitStringList } from "./ini.js";
16
17
  import { PRUSA_KEY_MAP } from "./keyMap.js";
@@ -285,7 +286,8 @@ export function convertPrusaSettings(ini) {
285
286
  return;
286
287
  // A value under Snapmaker Orca's minimum: PrusaSlicer's 0 for "automatic" on a speed it requires to be 1 or
287
288
  // more, say. Snapmaker Orca refuses the whole file for it, so the stock value stands.
288
- const min = SETTINGS_CATALOG[target]?.min;
289
+ // Read before a Snapmaker Orca release is chosen, so it's what every supported release accepts.
290
+ const min = settingLimits(target)?.min;
289
291
  if (min !== null && min !== undefined && list.some((entry) => /^-?\d+(\.\d+)?$/.test(entry) && Number(entry) < min)) {
290
292
  dropped.push({ key: target, why: `${list.join(",")} is below Snapmaker Orca's minimum of ${min}` });
291
293
  return;
package/dist/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const VERSION = "0.9.0";
1
+ export declare const VERSION: string;
package/dist/version.js CHANGED
@@ -1,3 +1,4 @@
1
1
  // SPDX-License-Identifier: MIT
2
2
  // Written by scripts/sync-version.mjs from package.json; a test checks they match.
3
- export const VERSION = "0.9.0";
3
+ // Typed as string, so a release doesn't change the public API's shape.
4
+ export const VERSION = "0.9.2";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "any2orca",
3
- "version": "0.9.0",
3
+ "version": "0.9.2",
4
4
  "description": "Convert Bambu Studio, Creality Print, Anycubic Slicer Next, ElegooSlicer, Flash Studio, QIDI Studio and PrusaSlicer 3MF projects for the Snapmaker U1 (Snapmaker Orca), entirely on your own machine. Library, CLI and Web Worker in one package.",
5
5
  "keywords": [
6
6
  "3mf",
@@ -71,7 +71,7 @@
71
71
  "zod": "4.6.7"
72
72
  },
73
73
  "devDependencies": {
74
- "@microsoft/api-extractor": "7.59.4",
74
+ "@microsoft/api-extractor": "7.60.1",
75
75
  "@types/node": "22.20.1",
76
76
  "typedoc": "0.28.20",
77
77
  "typescript": "5.9.3",