Desktop app for designing parametric 3D models in CadQuery together with the coding agent of your choice
TypeScript 3d-modeling3d-printing3d-printing-toolsagentagentic-aiai-cadcadcadqueryclaude-codecodexelectronfemllmmacdmakeropencodeparametric-designpythonsteptext-to-cad
App: Skill Parametric models für gute Modelle mit param() (E77)
Kai-Jungsthoefel47882737cf0f
diff --git a/app/resources/skills/parametrik.md b/app/resources/skills/parametrik.mdnew file mode 100644index 0000000..4fe965a--- /dev/null+++ b/app/resources/skills/parametrik.md@@ -0,0 +1,113 @@+---+title: Parametric models+name: Parametric models+summary: Design intent first, at most {{max_params}} driving parameters, everything else derived, ranges in which every value builds, features that survive changes, ranges checked at both ends.+order: 3+category: Way of working+default: always+when: you create a model, add or change param() values, or the user wants a model they can adjust or reuse+topics: Design intent; Choosing the parameters; Ranges that always build; Derive everything else; Robust to change; Fields in the panel; Checking the ranges ({{check}}); Changing parameters later+var max_params: 15 | | Parameters at most | 3..40+var check: full | | Range check | full=every parameter at both ends, main=main dimensions and choices only, off=only when the user asks+---+# Skill: Parametric models++The user changes `param()` values in the Parameters panel without you. Every value inside the ranges you set must give+a valid, sensible part that changes the way the user expects.++## Design intent++Decide first, and write it as a comment above the parameters:++- **What drives the size:** contents, installation space, the hole pattern of a mating part, a standard.+- **What stays put:** the mounting face, the axis, the hole pattern. Put the origin there: a longer bracket then grows+ away from the wall, and its wall holes stay where they are.+- **Inside or outside:** a box for a board is defined by its inner size, a part for a slot by its outer size. Use the+ size the user knows.++## Choosing the parameters++- Parameters: main dimensions in the user's terms, counts, variants (switches, choices), fit values the user tunes+ after a test part, positions that show motion (angle, stroke: they move parts, never change their shape).+- At most {{max_params}}. With more candidates, ask which ones the user wants to change.+- Plain constants: derived values, helper geometry, sizes from datasheets, standards and files in `inputs/` (take them+ from `BoundingBox()`), manufacturing rules such as the minimum wall.+- **Independent:** no two parameters that must agree. Of outer width, inner width and wall, only two are parameters.+- **The default decides the field:** dimensions as float (`60.0`), counts as int (`4`). `param(60, ...)` only takes+ whole numbers.+- **Discrete values as a choice** (screw size, sheet thickness, bearing), the choice picks a row of a table:++```python+# Plate on XY, bearing axis on Z. The hole rows grow with the length, the seat follows the bearing.+LENGTH = param(160.0, "Plate length", min=100, max=300, step=1, unit="mm", group="Plate")+HOLES = param(2, "Holes per side", min=1, max=6, group="Plate")+BEARING = param("608", "Bearing", options=["608", "6000", "6001"], group="Shaft")++EDGE, HOLE_D, MIN_WEB = 8.0, 5.5, 3.0+BORE, BEARING_OD, BEARING_W = {"608": (8, 22, 7), "6000": (10, 26, 8), "6001": (12, 28, 8)}[BEARING]+PITCH = ((LENGTH - BEARING_OD) / 2 - 2 * EDGE) / HOLES # derived, never a second parameter+if PITCH < HOLE_D + MIN_WEB:+ raise ValueError(f"{HOLES} holes per side do not fit into a plate of {LENGTH:g} mm: fewer holes or a longer plate")+```++## Ranges that always build++- Every number gets `min` and `max`: what makes sense for function and manufacturing, not as wide as possible. The+ default is a typical value, not an end of the range.+- **Choose parameters whose ranges do not depend on each other:** inner size and wall instead of outer size and wall,+ a count with the pitch derived instead of count and pitch.+- A combination that still cannot work: check it below the parameters and stop with a message in the user's terms+ (example above). Never shrink a value silently, only cosmetic radii may adapt (`R = min(EDGE_R, WALL * 0.8)`).+- Counts at their ends: `1` must not divide by `n - 1`, `0` only if it means "none" and the code handles it.++## Derive everything else++- **One source of truth:** mating parts use the same parameter plus a named clearance (`LID_IN = BODY_OUT + 2 * FIT`).+- Feature positions are computed from parameters (a list for `pushPoints`), never typed coordinates.+- **Do not scale everything with the size:** walls, holes, screws and radii follow function and manufacturing. A box+ twice as long keeps its 2 mm wall and its M3 screws.++## Robust to change++When a parameter changes the number of holes or faces, "the third edge" or `>X[2]` is a different edge.++- Create features at computed positions (sketch, `pushPoints`, a tool body) instead of selecting existing edges. Select+ by direction and position (`edges("|Z")`, `NearestToPointSelector` at a computed point) or by tag, never by index+ where the count depends on a parameter. Check the count of a selection before a fillet or cut.+- Optional features (`if WITH_EARS:`) are whole bodies, added or cut at the end of their part.+- Keep the checks of each part (`isValid`, number of solids, critical gaps) in the code as `assert` with a message: a+ value that breaks a part then fails the build instead of giving a broken model.+- Every change in the panel rebuilds the whole model: keep it fast.++## Fields in the panel++- `label` in the user's words and language, saying what is measured ("Inner length", not "L"). `unit="mm"` or+ `"deg"`. `step` as fine as it matters: 0.1 mm for walls and fits, 1 mm for main dimensions, 5 or 15 deg for angles.+- `group` by function or part ("Housing", "Mounting", "Fit", "Motion"). The order in the code is the order in the+ panel, the most important first. `help` when the label is not enough ("Measured inside, the outer size adds 2 x wall").+- **The constant name is the key in `parameters.json`.** Renaming a parameter leaves the user's value behind. If its+ meaning changes (inner to outer size), give it a new name, or the old value applies to the new meaning. Tell the user.++## Checking the ranges++Range check: **{{check}}**. "full": every parameter. "main": main dimensions, counts and choices. "off": only when the+user asks.++After adding parameters or changing ranges, build at the ends of the ranges. Never write the user's `parameters.json`+for this, the app would rebuild with the test values:++1. Copy the project to a temporary folder outside it, without `.git`, `.soma`, `output`, `exports` and `renders`.+2. Per case write `parameters.json` into the copy (`{"values": {"WALL": 4.0}}`, the rest keeps the defaults) and run+ `soma build --project <copy>`. Loop over the cases in a short script.+3. Cases: each number at `min` and at `max`, every option, every switch flipped, then all dimensions at `min` together+ and all at `max` together.+4. Each parameter alone at its ends must give "Build ok", combinations may stop with your message. Fix the rest+ (better parameters, a narrower range, a message), delete the copy and tell the user which ranges you narrowed.++## Changing parameters later++- Values the user set differ from the code: read the `soma build` line "set by the user in the app" first. A new value+ for one of them: AGENTS.md, rule 7.+- A parameter that is no longer needed: remove it. `soma build` then reports the user's value as unused, the user+ removes it in the panel.+- Report new or changed parameters: name, range, what grows and what stays put.diff --git a/app/test/skills.mjs b/app/test/skills.mjsindex fbe0dd9..036392d 100644--- a/app/test/skills.mjs+++ b/app/test/skills.mjs@@ -60,13 +60,13 @@ try {/** Die beiden Listen des Abschnitts: Immer vor „Read when relevant“, Bei Bedarf danach. */const always = () => (block() ?? '').split('### Read when relevant')[0];const demand = () => (block() ?? '').split('### Read when relevant')[1] ?? '';- const DEMAND_NEW = '3d-druck,harz-pulver,cnc,laser,blech,toleranzen,verbindungen,festigkeit,baugruppen,analyse,animation,fem';+ const DEMAND_NEW = '3d-druck,harz-pulver,cnc,laser,blech,toleranzen,verbindungen,festigkeit,baugruppen,analyse,animation,fem,zeichnung';// 1) Panel: die mitgelieferten Skills nach Kategorien und `order`await ev(() => document.querySelector('#rail [data-panel="skills"]').click());await waitFor('Skills geladen', () => window.__t.skills().skills.length >= 3, 10000);let s = await st();- const ORDER = 'konstruktionsablauf,cadquery,3d-druck,harz-pulver,cnc,laser,blech,toleranzen,verbindungen,normteile,festigkeit,baugruppen,analyse,animation,fem';+ const ORDER = 'konstruktionsablauf,cadquery,parametrik,3d-druck,harz-pulver,cnc,laser,blech,toleranzen,verbindungen,normteile,festigkeit,baugruppen,analyse,animation,fem,zeichnung';const heads = await ev(() => [...document.querySelectorAll('#skills-list .sk-cat')].map((h) => h.textContent).join(','));check('Panel „Skills": Überschriften Way of working, Manufacturing, Design knowledge, Check and present, darunter die Skills nach `order`',s.skills.map((x) => x.id).join(',') === ORDER && heads === 'Way of working,Manufacturing,Design knowledge,Check and present'@@ -77,10 +77,10 @@ try {await waitFor('Speicherstand', () => !!window.__t.saveState(), 10000);const bdir = path.join(ud, 'workspace-backups', `${proj.id}-skills`);const modesOf = (sk, m) => sk.skills.filter((x) => x.mode === m).map((x) => x.id).join(',');- check('Neues Modell: Konstruktionsablauf, Sauber modellieren und Normteile immer, die übrigen bei Bedarf, Vorgabe für neue Modelle wie im Kopf',- JSON.stringify(pj().skills) === '["konstruktionsablauf","cadquery","normteile"]' && (pj().skills_on_demand ?? []).join(',') === DEMAND_NEW- && modesOf(s, 'always') === 'konstruktionsablauf,cadquery,normteile' && modesOf(s, 'demand') === DEMAND_NEW && !modesOf(s, 'off')- && s.skills.filter((x) => x.defaultMode === 'always').map((x) => x.id).join(',') === 'konstruktionsablauf,cadquery,normteile'+ check('Neues Modell: Konstruktionsablauf, Sauber modellieren, Parametrik und Normteile immer, die übrigen bei Bedarf, Vorgabe für neue Modelle wie im Kopf',+ JSON.stringify(pj().skills) === '["konstruktionsablauf","cadquery","parametrik","normteile"]' && (pj().skills_on_demand ?? []).join(',') === DEMAND_NEW+ && modesOf(s, 'always') === 'konstruktionsablauf,cadquery,parametrik,normteile' && modesOf(s, 'demand') === DEMAND_NEW && !modesOf(s, 'off')+ && s.skills.filter((x) => x.defaultMode === 'always').map((x) => x.id).join(',') === 'konstruktionsablauf,cadquery,parametrik,normteile'&& s.skills.every((x) => !x.problems.length && !x.changed), JSON.stringify(pj()));const fdmNew = read('.soma/skills/3d-druck.md') ?? '';check('Neues Modell: Kopien mit Standardwerten, bei Bedarf mit Hinweis (Standardwerte, NOTES.md), Immer ohne',@@ -88,10 +88,11 @@ try {&& fdmNew.includes('# Skill: 3D printing (FDM)\n\n> **On demand:**') && fdmNew.includes('defaults of the app') && fdmNew.includes('`NOTES.md`') && fdmNew.includes('Overhangs up to 45°'), fdmNew.slice(0, 300));check('Neues Modell: AGENTS.md mit zwei Listen, bei Bedarf mit Anlass, alles im Startcommit (nichts ungespeichert)',always().includes('- `.soma/skills/konstruktionsablauf.md`: Design workflow') && always().includes('- `.soma/skills/cadquery.md`: Clean CadQuery modeling')- && always().includes('- `.soma/skills/normteile.md`: Standard parts') && !always().includes('3d-druck')+ && always().includes('- `.soma/skills/normteile.md`: Standard parts')+ && always().includes('- `.soma/skills/parametrik.md`: Parametric models') && !always().includes('3d-druck')&& demand().includes('- `.soma/skills/3d-druck.md`: 3D printing (FDM). Read when the parts will be 3D printed on a filament printer (FDM).')&& DEMAND_NEW.split(',').every((id) => demand().includes(`.soma/skills/${id}.md`))- && (await g('ls-files', '.soma/skills')).split('\n').length === 15+ && (await g('ls-files', '.soma/skills')).split('\n').length === 17&& (await ev(() => window.__t.saveState())).dirtyFiles === 0, `${String((await ev(() => window.__t.saveState())).dirtyFiles)} | ${String(block()).slice(0, 200)}`);check('Zeile mit Stufen-Schalter, Klick auf die Zeile öffnet die Karte mit drei Stufen, die eingestellte gewählt', await ev(() => {document.querySelector('#skills-list .sk-row[data-id="3d-druck"] .sk-open').click();@@ -116,7 +117,7 @@ try {check('3D-Druck immer: Kopie mit den Standardwerten, ohne Hinweis, die unveränderte Fassung „bei Bedarf“ ohne Sicherung', copy !== null && bundledText.includes('{{overhang}}') && !copy.includes('{{')&& copy.includes('Overhangs up to 45° from vertical') && copy.includes('| Nozzle | 0.4 mm |') && copy.split('\n').length === bundledText.split('\n').length&& !copy.includes('On demand') && !fs.existsSync(bdir));- check('project.json und die Kopie in den App-Daten führen ihn unter „Immer“', JSON.stringify(pj().skills) === '["konstruktionsablauf","cadquery","normteile","3d-druck"]'+ check('project.json und die Kopie in den App-Daten führen ihn unter „Immer“', JSON.stringify(pj().skills) === '["konstruktionsablauf","cadquery","parametrik","normteile","3d-druck"]'&& !(pj().skills_on_demand ?? []).includes('3d-druck')&& JSON.stringify(JSON.parse(fs.readFileSync(path.join(ud, 'projects', `${proj.id}.json`), 'utf8')).skills) === JSON.stringify(pj().skills)&& JSON.stringify(JSON.parse(fs.readFileSync(path.join(ud, 'projects', `${proj.id}.json`), 'utf8')).skills_on_demand) === JSON.stringify(pj().skills_on_demand));@@ -196,7 +197,7 @@ try {await setMode('toleranzen', 'always');const b2 = always();check('Toleranzen immer: AGENTS.md nennt beide unter „Immer“, project.json auch', b2.indexOf('3d-druck.md') > 0 && b2.indexOf('toleranzen.md') > b2.indexOf('3d-druck.md')- && !demand().includes('toleranzen.md') && JSON.stringify(pj().skills) === '["konstruktionsablauf","cadquery","normteile","3d-druck","toleranzen"]', b2);+ && !demand().includes('toleranzen.md') && JSON.stringify(pj().skills) === '["konstruktionsablauf","cadquery","parametrik","normteile","3d-druck","toleranzen"]', b2);// Immer → Bei Bedarf: Kopie bekommt den Hinweis, keine Sicherung, Meldungawait setMode('normteile', 'demand');check('Normteile bei Bedarf: Kopie mit Hinweis, Liste „Bei Bedarf“, ohne Sicherung, Meldung „nur noch bei Bedarf“', (read('.soma/skills/normteile.md') ?? '').includes('> **On demand:**')@@ -221,7 +222,7 @@ try {check('Ausschalten: Kopie weg, unveränderte Kopie ohne neue Sicherung, Einstellungen bleiben', read('.soma/skills/3d-druck.md') === null && backups.length === 1&& settings()['3d-druck']?.overhang === 55, backups.join(','));check('AGENTS.md und project.json ohne 3D-Druck, Toleranzen bleibt', !(block() ?? '').includes('3d-druck') && always().includes('toleranzen.md')- && JSON.stringify(pj().skills) === '["konstruktionsablauf","cadquery","toleranzen"]' && !(pj().skills_on_demand ?? []).includes('3d-druck'));+ && JSON.stringify(pj().skills) === '["konstruktionsablauf","cadquery","parametrik","toleranzen"]' && !(pj().skills_on_demand ?? []).includes('3d-druck'));check('Meldung nennt den laufenden Agenten', /is off\..*tell it/.test((await ev(() => window.__t.toast())).text), (await ev(() => window.__t.toast())).text);// 6) Datei eines aktiven Skills fehlt: gemeldet, nicht neu angelegt (E28)@@ -234,7 +235,7 @@ try {&& info.problems.some((p) => p.includes('toleranzen')) && read('.soma/skills/toleranzen.md') === null, JSON.stringify(info.problems));await setMode('toleranzen', 'off');check('Ausschalten räumt auf: kein Problem mehr, nicht mehr in AGENTS.md und project.json', !(await skill('toleranzen')).problems.length && !(block() ?? '').includes('toleranzen')- && JSON.stringify(pj().skills) === '["konstruktionsablauf","cadquery"]');+ && JSON.stringify(pj().skills) === '["konstruktionsablauf","cadquery","parametrik"]');// 7) Älteres Projekt ohne Abschnitt in AGENTS.md: Er wird am Ende angehängt, nicht doppeltconst agents = read('AGENTS.md');@@ -291,6 +292,8 @@ try {};const before = JSON.stringify(pj());await setDefault('3d-druck', 'always');+ // Die Meldung kommt erst nach der neuen Stufe im Panel+ await waitFor('Meldung Vorgabe', () => window.__t.toast().text.includes('for new models'), 10000).catch(() => {});check('Stufe bei neuen Modellen „Always“ (3D-Druck): in state.json, Meldung, das offene Modell unverändert', JSON.stringify(appState().skill_defaults) === '{"3d-druck":"always"}'&& JSON.stringify(pj()) === before && !(await ev(() => window.__t.saveState())).unsaved&& (await ev(() => window.__t.toast())).text.includes('is set to “Always” for new models. This model stays as it is.'), JSON.stringify(appState().skill_defaults));@@ -307,13 +310,13 @@ try {const pj2 = JSON.parse(fs.readFileSync(path.join(p2.dir, '.soma', 'project.json'), 'utf8'));const fdm2 = fs.readFileSync(path.join(p2.dir, '.soma', 'skills', '3d-druck.md'), 'utf8');const ka2 = fs.readFileSync(path.join(p2.dir, '.soma', 'skills', 'konstruktionsablauf.md'), 'utf8');- check('Neues Modell nach der Vorgabe: immer Sauber modellieren, 3D-Druck, Normteile, Laser aus, Konstruktionsablauf bei Bedarf, Standardwerte statt 55° und PETG',- JSON.stringify(pj2.skills) === '["cadquery","3d-druck","normteile"]' && pj2.skills_on_demand.join(',') === 'konstruktionsablauf,harz-pulver,cnc,blech,toleranzen,verbindungen,festigkeit,baugruppen,analyse,animation,fem'+ check('Neues Modell nach der Vorgabe: immer Sauber modellieren, Parametrik, 3D-Druck, Normteile, Laser aus, Konstruktionsablauf bei Bedarf, Standardwerte statt 55° und PETG',+ JSON.stringify(pj2.skills) === '["cadquery","parametrik","3d-druck","normteile"]' && pj2.skills_on_demand.join(',') === 'konstruktionsablauf,harz-pulver,cnc,blech,toleranzen,verbindungen,festigkeit,baugruppen,analyse,animation,fem,zeichnung'&& !pj2.skill_settings && fdm2.includes('Overhangs up to 45°') && fdm2.includes('| Material | PLA |') && !fdm2.includes('On demand') && ka2.includes('> **On demand:**')&& !fs.existsSync(path.join(p2.dir, '.soma', 'skills', 'laser.md'))&& norm(fs.readFileSync(path.join(p2.dir, 'AGENTS.md'), 'utf8')).includes('- `.soma/skills/3d-druck.md`: 3D printing (FDM)\n'), JSON.stringify(pj2));await waitFor('Speicherstand neu', () => window.__t.saveState() && !window.__t.saveState().unsaved, 10000).catch(() => {});- check('Neues Modell: Skills im Startcommit, nichts ungespeichert', (await exec(['ls-files', '.soma/skills'], p2.dir)).stdout.trim().split('\n').length === 14+ check('Neues Modell: Skills im Startcommit, nichts ungespeichert', (await exec(['ls-files', '.soma/skills'], p2.dir)).stdout.trim().split('\n').length === 16&& (await ev(() => window.__t.saveState())).dirtyFiles === 0, String((await ev(() => window.__t.saveState())).dirtyFiles));const relevant = page.errors.filter((e) => !/favicon/i.test(e));diff --git a/app/test/unit.mjs b/app/test/unit.mjsindex 0e97aab..336ded5 100644--- a/app/test/unit.mjs+++ b/app/test/unit.mjs@@ -198,11 +198,11 @@ try {check('Mitgelieferte Skills: jeder mit Kategorie, vier Kategorien', shipped.every((s) => s.category) && cats.length === 4, cats.join(','));const SKD = path.join(APP, 'resources', 'skills');const dm = defaultModes(SKD, {});- check('Neue Modelle: ohne Vorgabe des Nutzers Arbeitsweise und Normteile immer, alle übrigen bei Bedarf', dm.always.join(',') === 'konstruktionsablauf,cadquery,normteile'- && dm.demand.join(',') === '3d-druck,harz-pulver,cnc,laser,blech,toleranzen,verbindungen,festigkeit,baugruppen,analyse,animation,fem', JSON.stringify(dm));+ check('Neue Modelle: ohne Vorgabe des Nutzers Arbeitsweise (mit Parametrik) und Normteile immer, alle übrigen bei Bedarf', dm.always.join(',') === 'konstruktionsablauf,cadquery,parametrik,normteile'+ && dm.demand.join(',') === '3d-druck,harz-pulver,cnc,laser,blech,toleranzen,verbindungen,festigkeit,baugruppen,analyse,animation,fem,zeichnung', JSON.stringify(dm));const dm2 = defaultModes(SKD, { konstruktionsablauf: 'demand', toleranzen: 'always', '3d-druck': 'always', laser: 'off' });- check('Neue Modelle: Vorgabe des Nutzers geht vor, in der Reihenfolge des Panels, „Aus“ fehlt ganz', dm2.always.join(',') === 'cadquery,3d-druck,toleranzen,normteile'- && dm2.demand.join(',') === 'konstruktionsablauf,harz-pulver,cnc,blech,verbindungen,festigkeit,baugruppen,analyse,animation,fem', JSON.stringify(dm2));+ check('Neue Modelle: Vorgabe des Nutzers geht vor, in der Reihenfolge des Panels, „Aus“ fehlt ganz', dm2.always.join(',') === 'cadquery,parametrik,3d-druck,toleranzen,normteile'+ && dm2.demand.join(',') === 'konstruktionsablauf,harz-pulver,cnc,blech,verbindungen,festigkeit,baugruppen,analyse,animation,fem,zeichnung', JSON.stringify(dm2));// Bei Bedarf (E55): Hinweis unter der ersten Überschrift, Werte als Standard der App, vom Nutzer gesetzte mit Namenconst rd = renderSkill(SRC, {}, 'demand');check('Bei Bedarf: Hinweis direkt unter der Überschrift, mit Leerzeilen, Werte als Standard der App, NOTES.md', rd.includes('# Skill\n\n> **On demand:**')@@ -282,17 +282,18 @@ try {&& fs.readFileSync(path.join(old, '.gitignore'), 'utf8') === '__pycache__/\n', excl.slice(-160));put('.soma/results/thickness.glb', 'NEU UND GROSS');put('.soma/anim/deckel.glb', 'ANIM');+ put('.soma/drawings/Halter.png', 'BILD'); // Bild der Zeichnung für den Agenten (E76), PDF und DXF liegen in output/check('Neues Ergebnis zählt nicht als ungespeicherte Änderung', !(await repo.status()).dirty);put('model.py', 'x = 2\n');await repo.snapshot('Automatic snapshot on save');const tracked = (await repo.run(['ls-files'])).out;check('Snapshot nimmt Ergebnis und Bilder aus dem Verlauf, die Dateien bleiben', tracked.includes('model.py') && !tracked.includes('.soma/results')- && !tracked.includes('renders/') && fs.existsSync(path.join(old, '.soma', 'results', 'thickness.glb')), tracked);+ && !tracked.includes('renders/') && !tracked.includes('.soma/drawings') && fs.existsSync(path.join(old, '.soma', 'results', 'thickness.glb')), tracked);const zip = path.join(tmp, 'altprojekt.zip');await saveProjectZip(old, zip, { savedAt: '', head: null, id: 'x', name: 'x' });- const inZip = await readZipTexts(zip, ['model.py', '.soma/results/thickness.glb', '.soma/anim/deckel.glb', 'renders/view-iso.png']);- check('ZIP: ohne .soma/results, .soma/anim und renders/ (E75), mit Modell', inZip['model.py'] === 'x = 2\n' && inZip['.soma/results/thickness.glb'] === null- && inZip['.soma/anim/deckel.glb'] === null && inZip['renders/view-iso.png'] === null, JSON.stringify(inZip));+ const inZip = await readZipTexts(zip, ['model.py', '.soma/results/thickness.glb', '.soma/anim/deckel.glb', 'renders/view-iso.png', '.soma/drawings/Halter.png']);+ check('ZIP: ohne .soma/results, .soma/anim, .soma/drawings und renders/ (E75, E76), mit Modell', inZip['model.py'] === 'x = 2\n' && inZip['.soma/results/thickness.glb'] === null+ && inZip['.soma/anim/deckel.glb'] === null && inZip['renders/view-iso.png'] === null && inZip['.soma/drawings/Halter.png'] === null, JSON.stringify(inZip));// Packen vor der ZIP (E75): Verlauf und Hashes bleiben. Unerreichbares geht nicht verloren: der Blob, den addAll oben aus// dem Index genommen hat (lose), und ein Objekt, das nur in einem älteren Pack liegt (ohne --keep-unreachable weg).