profiles: deterministic setting_id from vendor/type/name (#14432)

* profiles: enforce globally-unique, per-vendor-namespaced setting_id

Many non-Bambu vendors copied Bambu's generic setting_ids (GFSA04 alone
appeared in 1557 files), so setting_id was not globally unique. This
namespaces every vendor's ids and reserves Bambu/OrcaFilamentLibrary space.

- Reserve "G*" (Bambu) and "O*" (OrcaFilamentLibrary) id spaces.
- Assign each other vendor a 2-char prefix (first+last letter, collision
  resolved) and renumber every instantiated preset to <PREFIX><NNNN>.
- Strip setting_id from base profiles (instantiation:false) per Bambu's
  convention; assign one to instantiated presets that lacked it.
- Remove the pre-existing misspelled "settings_id" key (91 files).
- filament_id is left untouched (it is a per-material id).
- Add one-time migration script scripts/assign_vendor_setting_ids.py with a
  persisted registry resources/profiles/vendor_prefixes.json. Re-runs freeze
  existing ids; only new vendors/profiles get new ids.
- Bump version in each changed vendor index file.
- Extend scripts/orca_extra_profile_check.py with a CI guard: global
  uniqueness, in-namespace, no base setting_id, no gaps, no settings_id typo.

7425 profile files changed across 61 vendors; 0 cross-vendor collisions;
validator clean; migration idempotent. BBL and OrcaFilamentLibrary id spaces
untouched.

* profiles: add setting_id authoring guide for new vendors / profiles

* profiles: drop in-repo README; setting_id guide now lives in the wiki

* profiles: derive setting_id deterministically from vendor/type/name

* bump profile version
This commit is contained in:
SoftFever
2026-06-27 20:11:25 +08:00
committed by GitHub
parent 3b58217b47
commit 8cb2e4e01e
7876 changed files with 8152 additions and 6541 deletions

View File

@@ -3,7 +3,7 @@
"name": "COEX ABS @System",
"inherits": "COEX ABS @base",
"from": "system",
"setting_id": "COXABS01",
"setting_id": "i5h7v70QQ9wy4NYt",
"instantiation": "true",
"filament_max_volumetric_speed": [
"16"

View File

@@ -3,7 +3,7 @@
"name": "COEX ABS PRIME @System",
"inherits": "COEX ABS PRIME @base",
"from": "system",
"setting_id": "CXABSP09",
"setting_id": "vmdyGfZuHpvvozwb",
"instantiation": "true",
"filament_max_volumetric_speed": [
"16"

View File

@@ -3,7 +3,7 @@
"name": "COEX ASA PRIME @System",
"inherits": "COEX ASA PRIME @base",
"from": "system",
"setting_id": "CXASAP04",
"setting_id": "lh6T3We3AQa45aKJ",
"instantiation": "true",
"filament_max_volumetric_speed": [
"16"

View File

@@ -3,7 +3,7 @@
"name": "COEX NYLEX PA6-CF @System",
"inherits": "COEX NYLEX PA6-CF @base",
"from": "system",
"setting_id": "CXPACF23",
"setting_id": "sAQi35NOKJrl1Sre",
"instantiation": "true",
"filament_max_volumetric_speed": [
"11"

View File

@@ -1,18 +0,0 @@
{
"type": "filament",
"name": "COEX NYLEX PA6-CF @System",
"inherits": "COEX NYLEX PA6-CF @base",
"from": "system",
"setting_id": "CXPAUN21",
"instantiation": "true",
"filament_max_volumetric_speed": [
"11"
],
"filament_long_retractions_when_cut": [
"nil"
],
"filament_retraction_distances_when_cut": [
"nil"
],
"compatible_printers": []
}

View File

@@ -3,7 +3,7 @@
"name": "COEX PCTG PRIME @System",
"inherits": "COEX PCTG PRIME @base",
"from": "system",
"setting_id": "CXPCTG15",
"setting_id": "tacudYmqOs7dg3if",
"instantiation": "true",
"filament_max_volumetric_speed": [
"12"

View File

@@ -3,7 +3,7 @@
"name": "COEX PETG @System",
"inherits": "COEX PETG @base",
"from": "system",
"setting_id": "CXPETG13",
"setting_id": "lbxaL0svepWiafit",
"instantiation": "true",
"filament_max_volumetric_speed": [
"16"

View File

@@ -3,7 +3,7 @@
"name": "COEX PLA @System",
"inherits": "COEX PLA @base",
"from": "system",
"setting_id": "C0XPLA02",
"setting_id": "f1S6sfscdACvBAkV",
"instantiation": "true",
"filament_max_volumetric_speed": [
"18"

View File

@@ -3,7 +3,7 @@
"name": "COEX PLA PRIME @System",
"inherits": "COEX PLA PRIME @base",
"from": "system",
"setting_id": "C0XPLA08",
"setting_id": "CM2zZh3KXZnT0YEu",
"instantiation": "true",
"filament_max_volumetric_speed": [
"15"

View File

@@ -3,7 +3,7 @@
"name": "COEX PLA+Silk @System",
"inherits": "COEX PLA+Silk @base",
"from": "system",
"setting_id": "C0XPLS03",
"setting_id": "jiNaW1hx0ChKRApF",
"instantiation": "true",
"filament_max_volumetric_speed": [
"15"

View File

@@ -3,7 +3,7 @@
"name": "COEX TPE 30D @System",
"inherits": "COEX TPE 30D @base",
"from": "system",
"setting_id": "C0X30D20",
"setting_id": "8J6j9sU1tkqpTVas",
"instantiation": "true",
"filament_max_volumetric_speed": [
"3.5"

View File

@@ -3,7 +3,7 @@
"name": "COEX TPE 40D @System",
"inherits": "COEX TPE 40D @base",
"from": "system",
"setting_id": "C0X40D18",
"setting_id": "5O6zPyLhGADPnBCP",
"instantiation": "true",
"filament_max_volumetric_speed": [
"5.5"

View File

@@ -3,7 +3,7 @@
"name": "COEX TPE 60D @System",
"inherits": "COEX TPE 60D @base",
"from": "system",
"setting_id": "C0X60D19",
"setting_id": "LXdsCIX0yX1qesC1",
"instantiation": "true",
"filament_max_volumetric_speed": [
"6.5"

View File

@@ -3,7 +3,7 @@
"name": "COEX TPU 60A @System",
"inherits": "COEX TPU 60A @base",
"from": "system",
"setting_id": "C0X60A17",
"setting_id": "7CQX9fvYjknjiwmQ",
"instantiation": "true",
"filament_max_volumetric_speed": [
"1"