@metamesh/cli 0.17.0 → 0.18.0

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.
Files changed (108) hide show
  1. package/CHANGELOG.md +160 -0
  2. package/README.md +75 -52
  3. package/dist/authoring/artifacts.d.ts +2 -2
  4. package/dist/authoring/artifacts.d.ts.map +1 -1
  5. package/dist/authoring/artifacts.js +50 -32
  6. package/dist/authoring/artifacts.js.map +1 -1
  7. package/dist/authoring/check.d.ts.map +1 -1
  8. package/dist/authoring/check.js +9 -3
  9. package/dist/authoring/check.js.map +1 -1
  10. package/dist/authoring/documentation-manifest.d.ts +3 -0
  11. package/dist/authoring/documentation-manifest.d.ts.map +1 -0
  12. package/dist/authoring/documentation-manifest.js +23 -0
  13. package/dist/authoring/documentation-manifest.js.map +1 -0
  14. package/dist/authoring/documentation.d.ts +20 -0
  15. package/dist/authoring/documentation.d.ts.map +1 -0
  16. package/dist/authoring/documentation.js +94 -0
  17. package/dist/authoring/documentation.js.map +1 -0
  18. package/dist/authoring/environment.d.ts +1 -19
  19. package/dist/authoring/environment.d.ts.map +1 -1
  20. package/dist/authoring/environment.js +2 -110
  21. package/dist/authoring/environment.js.map +1 -1
  22. package/dist/authoring/{worker.d.ts → execution-process.d.ts} +2 -2
  23. package/dist/authoring/execution-process.d.ts.map +1 -0
  24. package/dist/authoring/{worker.js → execution-process.js} +17 -19
  25. package/dist/authoring/execution-process.js.map +1 -0
  26. package/dist/authoring/{capture/render-client.js → render/client-bundle.js} +196 -196
  27. package/dist/authoring/{capture/render-client.js.map → render/client-bundle.js.map} +4 -4
  28. package/dist/authoring/{render-client.d.ts → render/client.d.ts} +2 -2
  29. package/dist/authoring/render/client.d.ts.map +1 -0
  30. package/dist/authoring/{render-client.js → render/client.js} +2 -2
  31. package/dist/authoring/render/client.js.map +1 -0
  32. package/dist/authoring/{render.d.ts → render/render-capture.d.ts} +2 -2
  33. package/dist/authoring/render/render-capture.d.ts.map +1 -0
  34. package/dist/authoring/{render.js → render/render-capture.js} +4 -4
  35. package/dist/authoring/render/render-capture.js.map +1 -0
  36. package/dist/authoring/{render-scene.d.ts → render/scene.d.ts} +2 -2
  37. package/dist/authoring/render/scene.d.ts.map +1 -0
  38. package/dist/authoring/{render-scene.js → render/scene.js} +6 -10
  39. package/dist/authoring/render/scene.js.map +1 -0
  40. package/dist/authoring/{render-types.d.ts → render/types.d.ts} +3 -3
  41. package/dist/authoring/render/types.d.ts.map +1 -0
  42. package/dist/authoring/render/types.js +2 -0
  43. package/dist/authoring/render/types.js.map +1 -0
  44. package/dist/authoring/run.d.ts.map +1 -1
  45. package/dist/authoring/run.js +7 -3
  46. package/dist/authoring/run.js.map +1 -1
  47. package/dist/authoring/types.d.ts +20 -14
  48. package/dist/authoring/types.d.ts.map +1 -1
  49. package/dist/authoring/types.js.map +1 -1
  50. package/dist/authoring.d.ts +5 -4
  51. package/dist/authoring.d.ts.map +1 -1
  52. package/dist/authoring.js +3 -2
  53. package/dist/authoring.js.map +1 -1
  54. package/dist/docs/guides/agent-authoring.md +71 -51
  55. package/dist/docs/guides/package.md +75 -52
  56. package/dist/docs/manifest.json +1 -1
  57. package/dist/docs/reference/authoring/AUTHORING_PROTOCOL_VERSION.md +1 -1
  58. package/dist/docs/reference/authoring/AuthoringDiagnostic.md +1 -1
  59. package/dist/docs/reference/authoring/AuthoringEnvironment.md +1 -1
  60. package/dist/docs/reference/authoring/AuthoringError.md +1 -1
  61. package/dist/docs/reference/authoring/AuthoringFailure-type.md +1 -1
  62. package/dist/docs/reference/authoring/AuthoringKind.md +1 -1
  63. package/dist/docs/reference/authoring/AuthoringPhase.md +1 -1
  64. package/dist/docs/reference/authoring/CapturedBuffer.md +1 -1
  65. package/dist/docs/reference/authoring/CapturedGeometry.md +1 -1
  66. package/dist/docs/reference/authoring/CapturedPart.md +4 -6
  67. package/dist/docs/reference/authoring/CapturedResource.md +2 -2
  68. package/dist/docs/reference/authoring/CapturedRun.md +1 -1
  69. package/dist/docs/reference/authoring/CapturedRunManifest.md +3 -3
  70. package/dist/docs/reference/authoring/CheckOptions.md +1 -1
  71. package/dist/docs/reference/authoring/CheckSuccess.md +1 -1
  72. package/dist/docs/reference/authoring/DocumentationEntry.md +1 -1
  73. package/dist/docs/reference/authoring/DocumentationManifest.md +1 -1
  74. package/dist/docs/reference/authoring/DocumentationSearchResult.md +1 -1
  75. package/dist/docs/reference/authoring/InstalledAuthoringPackage.md +1 -1
  76. package/dist/docs/reference/authoring/RenderCamera.md +1 -1
  77. package/dist/docs/reference/authoring/RenderFormat.md +1 -1
  78. package/dist/docs/reference/authoring/RenderOptions.md +1 -1
  79. package/dist/docs/reference/authoring/RenderResult.md +1 -1
  80. package/dist/docs/reference/authoring/RenderView.md +1 -1
  81. package/dist/docs/reference/authoring/RenderedImage.md +1 -1
  82. package/dist/docs/reference/authoring/RunOptions.md +13 -5
  83. package/dist/docs/reference/authoring/RunSuccess.md +1 -1
  84. package/dist/docs/reference/authoring/authoringFailure-value.md +1 -1
  85. package/dist/docs/reference/authoring/checkAuthoringSource.md +1 -1
  86. package/dist/docs/reference/authoring/discoverAuthoringEnvironment.md +1 -1
  87. package/dist/docs/reference/authoring/inspectCapturedRun.md +1 -1
  88. package/dist/docs/reference/authoring/installAuthoringBrowser.md +1 -1
  89. package/dist/docs/reference/authoring/readCapturedRun.md +1 -1
  90. package/dist/docs/reference/authoring/renderCapturedRun.md +1 -1
  91. package/dist/docs/reference/authoring/runAuthoringSource.md +1 -1
  92. package/dist/docs/reference/authoring/searchAuthoringDocumentation.md +1 -1
  93. package/dist/docs/reference/authoring/showAuthoringDocumentation.md +1 -1
  94. package/dist/metamesh.js +22 -10
  95. package/dist/metamesh.js.map +1 -1
  96. package/package.json +9 -6
  97. package/dist/authoring/render-client.d.ts.map +0 -1
  98. package/dist/authoring/render-client.js.map +0 -1
  99. package/dist/authoring/render-scene.d.ts.map +0 -1
  100. package/dist/authoring/render-scene.js.map +0 -1
  101. package/dist/authoring/render-types.d.ts.map +0 -1
  102. package/dist/authoring/render-types.js +0 -2
  103. package/dist/authoring/render-types.js.map +0 -1
  104. package/dist/authoring/render.d.ts.map +0 -1
  105. package/dist/authoring/render.js.map +0 -1
  106. package/dist/authoring/worker.d.ts.map +0 -1
  107. package/dist/authoring/worker.js.map +0 -1
  108. /package/dist/authoring/{capture/render-client.js.LEGAL.txt → render/client-bundle.js.LEGAL.txt} +0 -0
package/CHANGELOG.md CHANGED
@@ -1,5 +1,165 @@
1
1
  # @metamesh/cli
2
2
 
3
+ ## 0.18.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 2eea694: Consolidate model authoring, execution, and testing around fluent shapes and durable immutable
8
+ results. Upgrade all four packages together; these Preview API changes have no compatibility
9
+ aliases. Rebuild compiled Generators for module format 5 and Modeling runtime major 11. Older
10
+ module formats and incompatible runtime versions are rejected before execution.
11
+
12
+ ### Modeling imports and operations
13
+
14
+ | Previous API | 0.18 API |
15
+ | ------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------- |
16
+ | `body.subtract([cutter])` for a single operand | `body.subtract(cutter)`; fluent `union`, `intersect`, and `subtract` accept one shape or a readonly array |
17
+ | `compose(shapes)` | `union(shapes)` |
18
+ | Free shape inspection, emptiness, component, and anchor queries | `shape.inspect()`, `shape.isEmpty()`, `shape.components()`, and `shape.anchor(name)` |
19
+ | Free Solid distance/segment queries and splitting functions | `solid.distance(other)`, `solid.castSegment(...)`, `solid.split(cutter)`, and `solid.splitByPlane(plane)` |
20
+ | `solid.toTriangleMesh()` | `solid.toMesh()` |
21
+ | Named `mesh` import from `/geometry`, or standalone triangle-mesh functions | `import * as mesh from "@metamesh/modeling/geometry/mesh"` |
22
+ | Standalone `immutableMesh(...)` | `mesh.immutable(...)` |
23
+ | `helicalThreadRidgeMesh`, `helicalThreadSolidMesh`, and `preflightHelicalThreadSolidMesh` | `mesh.threadRidge`, `mesh.threadSolid`, and `mesh.preflightThreadSolid` |
24
+ | `HelicalThreadRidgeMeshOptions`, `HelicalThreadSolidMeshOptions`, and `HelicalThreadSolidMeshPreflight` | `ThreadRidgeOptions`, `ThreadSolidOptions`, and `ThreadSolidPreflight`, exported from the mesh module |
25
+ | Mesh `connectedComponentCount` | `shellCount`; native inspection `componentCount` still counts material components |
26
+ | Inspection extrema on the inspection result | Immutable `inspection.bounds.min` and `inspection.bounds.max` |
27
+ | `starContour(outerRadius, points, innerRadius, limits)` | `starContour({ outerRadius, innerRadius, points, limits })` |
28
+
29
+ Free `union(shapes)` and `intersect(shapes)` remain for collections of peers and reject empty
30
+ collections. Fluent Boolean methods with an empty array return the receiver.
31
+
32
+ Use `section.extrude(options)` in fluent modeling, `extrude(profile, options)` for generic
33
+ `Section | CorrespondingProfile` inputs, and `mesh.extrude(contour, options)` for pure triangle
34
+ buffers. The same fluent/generic distinction applies to revolution and sweeping. Pure extrusion
35
+ uses `ExtrudeMeshOptions` and rejects `ends`; use Section extrusion for native end treatments.
36
+ Construction, transforms, and splitting remain deferred recipes; observations and `toMesh()`
37
+ require active model execution.
38
+
39
+ Point-loop and arbitrary Section lofts default to direct correspondence when the method is
40
+ omitted; known primitive landmarks remain preserved. Dimension inputs accept fluent vectors.
41
+ Tube sizing accepts complete inner/outer radius or diameter pairs. Both star factories require
42
+ an explicit inner radius and support degree rotation; use `innerRadius: outerRadius / 2` to retain
43
+ the contour helper's former default.
44
+
45
+ Rod and internal-cutter `bevelBottom`, `bevelTop`, and `bevelSize` become `bevel`. The shared
46
+ `Bevel` contract accepts a nonnegative size, `"auto"`, or a readonly `[bottom, top]` pair; zero
47
+ disables an end and omission preserves factory defaults. Complete-thread mesh builders use the
48
+ same contract, with thread termination under `ends`. Nuts replace bevel selection, `chamferSize`,
49
+ and `flushBuildPlateBottom` with independent `innerBevel` and `outerBevel`. For a flat outside
50
+ bottom that retains its inner opening bevel, use `outerBevel: [0, "auto"]`. Nut preflight exposes
51
+ resolved inner/outer pairs and checks face walls pairwise; each end's reservation and automatic
52
+ sizing are resolved independently, including internal-cutter axial extension.
53
+
54
+ Primitive contours and their points are immutable and can be explicit `computed` dependencies.
55
+ Copy the outer array and any points before editing. Geometry errors are available from the
56
+ Modeling root; operation option/result types are exported beside their owning operations.
57
+ Topology analysis with `includeTopology: true`, finalized parts, and local geometry resources
58
+ include required `shellCount` and `edgeCount`. Bounds construction options describe inputs only;
59
+ existing fluent bounds remain accepted.
60
+
61
+ ### Part placement and result ownership
62
+
63
+ Replace `part(id, { geometry, position, rotation })` with
64
+ `part(id, { geometry, transform })`. The optional transform accepts a fluent `transform3()` value,
65
+ a row-major 16-number matrix, or a computed reader; omission means identity. Pattern and
66
+ attachment matrices pass directly to `part()`. Only rigid placement is supported: scale, shear,
67
+ reflection, perspective, and non-finite values are rejected. Geometry-only and geometry-or-options
68
+ union inputs remain accepted without casts.
69
+
70
+ Use `PartDeclaration` for authored parts. Replace `ModelSnapshot` / `FinalizedModel` with
71
+ `ModelResult`, and `SnapshotPart` / `FinalizedPart` with `ModelPart`. `engine.run()`, `session.run()`,
72
+ and Testkit's `runModel()` return durable immutable results. Dispose sessions and runners to release their
73
+ caches; completed results remain valid and need no disposal. `model.part(id)` returns a required
74
+ semantic part or throws with available IDs; `model.parts` preserves output order.
75
+
76
+ Finalized buffers expose stable, iterable `ImmutableBuffer` values. Use `.copy()` for mutable
77
+ storage. A `ModelPart`'s top-level positions and indices are already in world space; apply its
78
+ immutable `transform` only to the reusable local buffers under `geometry`. Worker deliveries also
79
+ nest local resources under `geometry`. Host integrations use `ModelDeliveryEncoder`,
80
+ `PartDeliveryDecoder`, and `toWorldMeshes` for owned transfer and manufacturing output.
81
+ Replace `engine.export3mf(...)` with standalone `export3mf(parts, options)` from `/engine`, which
82
+ accepts completed meshes with explicit resource limits, independently of engine initialization.
83
+
84
+ Statistics rename `volumeMm3` → `signedVolume`, `finalizationMs` → `finalizeMs`, and
85
+ `generationMs` → `generateMs`; `buildMs` measures declarations.
86
+ `ModelResult.stats.byteCount` means bytes occupied by finalized world-space position and index buffers,
87
+ counting shared buffers once. Worker statistics preserve engine `generateMs`; host elapsed time
88
+ is `timings.totalMs`, with `paramsMs` for parameter work. Other host timing stages are optional:
89
+ an omitted stage is unmeasured.
90
+
91
+ Model parameter roots must be object maps. Captured parameters and computed results expose
92
+ deeply readonly `ImmutableValue<T>` views; supported mutable caller input is still accepted and
93
+ recaptured on every revision, including mutable children inside frozen objects. Deeply immutable
94
+ data retains identity reuse. Assertions and warnings accept bounded immutable nested `path`
95
+ metadata. Replace `validateModel` with `checkModel` and session/runner `.validate()` with `.check()`.
96
+ These check declarations and reached assertions without finalizing geometry; unexpected execution
97
+ failures still throw.
98
+
99
+ ### Generator SDK and Testkit
100
+
101
+ | Previous API | 0.18 API |
102
+ | -------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- |
103
+ | Nested compiled Generator module | Flat format-5 model program; bind an existing program with `defineGeneratorModule({ definition, program })` |
104
+ | `isGeneratorModule(value)` | `parseGeneratorModule(value, definition)` |
105
+ | `executeGenerator({ ..., parsedParameters })` | `executeGenerator({ ..., parameters })`; current-definition validation always runs |
106
+ | Callback-scoped `withModel`, `ModelTestOptions`, or `runner.withModel` | `await runModel(programOrCallback, ...)` for one-off results; explicit sessions or Generator runners for repeated edits |
107
+ | Generator test `runner.execute(...)` | `runner.run(...)`, returning `GeneratorTestResult` |
108
+ | `expectSerializableDefinition` | `assertValidDefinition` |
109
+ | `expectValidDefaults`, `expectValidPresets`, and `expectValidParts` | `assertValidDefaults`, `assertValidPresets`, and `assertValidParts` |
110
+ | `expectMeshMeasurements` | `assertMeshMeasurements` |
111
+ | `canonicalizeParameters(definition, parameters)` from `/parameters` | `canonicalizeParameters(parameters)` from `/runtime` |
112
+ | `GeneratedPartsDecoder`, `parseGeneratedParts`, and `GeneratedPartsLimits` | `PartDeliveryDecoder`, `parseModelParts`, and `PartDeliveryLimits` |
113
+ | `GeneratedPart` and `GeneratedModel` | `ModelPartData` and `ModelData` |
114
+ | `GeneratedPartDelivery` and `GeneratedModelDelivery` | `PartDelivery` and `ModelDelivery` |
115
+
116
+ Testkit `runModel` accepts existing `ModelProgram` values and synchronous inline callbacks;
117
+ typed callbacks use `runModel<Parameters, Services>`. Its definition-bound Generator overload
118
+ validates inputs and prepares services. The SDK Modeling adapter adds definition-inferred
119
+ `GeneratorModel` and `parseGeneratorModel`. Ordinary model tests preserve definition-inferred
120
+ input types. Reusable Generator runners accept physical generation policy plus `cache` and
121
+ `verifyCache` for edit sequences; dispose the runner after use.
122
+
123
+ Generator execution and ordinary tests strictly require complete canonical parameter maps.
124
+ Use the parameter codec for strict input and `normalizeParameters` for forgiving recovery;
125
+ replace `prepareParameters`, `validateParameters`, and `PreparedParameters` with
126
+ `createParamCodec(definition).parse(...)` or `.safeParse(...)`. Schema adapters remain private.
127
+ Codec failures provide structured issues without a substitute parameter map. For deliberate
128
+ malformed-input assertion probes, replace `runner.validate(parameters, { normalize: false })`
129
+ with `runner.check(parameters, { validateInput: false })`.
130
+ Defaults are selected only by omission or `undefined` where supported; a `null` parameter map is
131
+ rejected. Parameterless model calls can omit the empty map. Definition and preset helpers catch
132
+ nested key typos and validate immediately while retaining literal inference.
133
+
134
+ `assertValidParts` checks the supplied world-space buffers, closed topology, and exact agreement
135
+ with local geometry under `transform`; it no longer hides corrupted output by reconstructing it.
136
+ Always await `assertValidParts(parts, engine)` (or omit the engine): failures reject, and supplying
137
+ an engine changes resource reuse only.
138
+ `assertValidDefinition` also checks the canonical JSON round trip. New `assertEqualBuffer` and
139
+ `assertEqualMesh` compare exact ordered contents without copying; equivalent shapes with different
140
+ triangulations can differ. `ContentMismatchError` identifies the first differing element or
141
+ length, while malformed input and reader failures retain their errors. Optional `contentMatchers`
142
+ support `expect.extend`, including negation, without a test-framework dependency.
143
+
144
+ ### CLI and package requirements
145
+
146
+ Rename the type-only CLI command `metamesh check` to `metamesh typecheck`; no alias is retained.
147
+ Node authoring APIs and Modeling/Testkit declaration-check methods retain their names. Generator
148
+ runs use `overrides` / `--overrides`, merged with defaults before strict parsing; standalone models
149
+ use `params` / `--params`. Supplying the other entry kind's input option is rejected.
150
+
151
+ Captured runs use format 2 with transform-only placement. The bundled capture renderer resolves
152
+ from the installed CLI package so published installations can render captures.
153
+ Public packages require Node.js 24 or newer, ESM imports, and TypeScript 6.0 or newer with strict
154
+ checking for TypeScript consumers.
155
+
156
+ ### Patch Changes
157
+
158
+ - Updated dependencies [2eea694]
159
+ - @metamesh/modeling@0.18.0
160
+ - @metamesh/generator-sdk@0.18.0
161
+ - @metamesh/testkit@0.18.0
162
+
3
163
  ## 0.17.0
4
164
 
5
165
  ### Patch Changes
package/README.md CHANGED
@@ -1,71 +1,91 @@
1
1
  # `@metamesh/cli`
2
2
 
3
- Check, execute, inspect, and render trusted local MetaMesh source. The `metamesh` executable and
4
- Node-only `/authoring` functions use the production engine and version-matched installed documentation.
3
+ Check, run, inspect, and render local MetaMesh models. The `metamesh` executable brings
4
+ version-matched documentation, TypeScript checks, and captured geometry into one authoring workflow.
5
+ The same tools are available through a Node API.
5
6
 
6
7
  > **Preview:** `0.x` minor releases may break compatibility. Patches remain compatible within the
7
8
  > same minor line.
8
9
 
9
10
  ## Installation
10
11
 
11
- Install the same exact release of each MetaMesh package in the project where you author models:
12
+ Install matching Modeling and CLI releases in your authoring project:
12
13
 
13
14
  ```bash
14
15
  pnpm add @metamesh/modeling
15
16
  pnpm add -D @metamesh/cli
16
17
  ```
17
18
 
18
- Add `@metamesh/generator-sdk` when your source defines Generators. Add `@metamesh/testkit` as a
19
- development dependency when importing testing helpers. CLI internally reuses Testkit font fixtures
20
- and its SDK contracts; neither package needs to be directly declared for standalone model authoring.
21
- The compiler, bundler, Three renderer, and Playwright belong to CLI; Testkit does not install them.
22
- Chromium is installed separately and never downloaded by checking or generation.
19
+ The executable and Node API require Node.js 24 or newer. The API publishes ES modules only.
20
+ TypeScript source and API consumers need TypeScript 6.0 or newer with `strict` checking and
21
+ `NodeNext` or `Bundler` module resolution. The CLI includes its source-checking compiler.
22
+
23
+ Add Generator SDK for Generator source and Testkit when importing testing helpers directly.
24
+ Standalone model authoring needs neither as a direct dependency. Chromium setup is separate;
25
+ checking, generation, and inspection work without a browser.
23
26
 
24
27
  ## Local workflow
25
28
 
29
+ Save a model entry as `model.ts`, default-exporting a `ModelProgram` from Modeling. Then discover
30
+ the installed environment, look up the API, and build a captured result:
31
+
26
32
  ```bash
27
33
  pnpm exec metamesh environment --json
34
+ pnpm exec metamesh docs search "sweep"
28
35
  pnpm exec metamesh docs show modeling/guide/concepts
29
- pnpm exec metamesh docs search "extrude"
30
- pnpm exec metamesh docs show TOPIC_ID
31
- pnpm exec metamesh check model.ts --kind model
32
- pnpm exec metamesh run model.ts --kind model
36
+ pnpm exec metamesh typecheck model.ts --kind model
37
+ pnpm exec metamesh run model.ts --kind model --export-3mf
33
38
  pnpm exec metamesh inspect RUN_DIRECTORY
39
+ ```
40
+
41
+ Replace `RUN_DIRECTORY` with the path reported by `run`. Commands resolve packages and paths
42
+ from the current project; use `--project PATH` to select another. `environment` reports the
43
+ supported authoring protocol, package versions, and local documentation. Version mismatches fail
44
+ before generation.
45
+
46
+ For Generators, use `--kind generator` with a named `definition` export and a default Generator
47
+ module. Pass `--overrides parameters.json` for input values. Generator overrides merge with defaults
48
+ and undergo strict validation; standalone model parameters pass through directly. Studio's virtual
49
+ `@metamesh/project` import is unavailable in local entries.
50
+
51
+ ## Authoring tools
52
+
53
+ | Command | Purpose |
54
+ | --------------------------- | -------------------------------------------------------------------------------------- |
55
+ | `environment` | Discover project-local packages, capabilities, and documentation. |
56
+ | `docs search` / `docs show` | Find and read exact-version guides and API references offline. |
57
+ | `typecheck` | Check TypeScript and entry-point export types without executing the model. |
58
+ | `run` | Check and execute source, capture geometry and diagnostics, and optionally export 3MF. |
59
+ | `inspect` | Read captured parts, bounds, measurements, and diagnostics. |
60
+ | `render` | Create standard views from a capture. |
61
+ | `setup` | Print skill installation and project-instruction guidance. |
62
+
63
+ `run` uses a disposable child process with a 30-second default deadline and saves attempts under
64
+ `.metamesh/runs`. Captures retain source identity, effective parameters, and hashed geometry.
65
+ `inspect` and `render` validate those saved buffers without rerunning the source.
66
+
67
+ Source executes with your account's permissions; this is trusted local execution, not a security
68
+ sandbox. Use `--json` for structured stdout; bounded author logs go to stderr. Exit codes are
69
+ 0 for success, 1 for source or generation failure, and 2 for invocation, environment, artifact,
70
+ or tooling failure. Each command's `--help` lists its options and limits.
71
+
72
+ Use `--params values.json` for a standalone model's complete input map. For a Generator,
73
+ use `--overrides values.json`; those values merge with definition defaults before strict
74
+ validation. The Node API uses the matching `params` and `overrides` fields, discriminated by `kind`.
75
+
76
+ ## Render a capture
77
+
78
+ Install the pinned Chromium explicitly, then choose views of the captured model:
79
+
80
+ ```bash
34
81
  pnpm exec metamesh browser install
35
82
  pnpm exec metamesh render RUN_DIRECTORY --views isometric,front,top,right
36
83
  ```
37
84
 
38
- `environment` reports `authoringProtocolVersion: 1`, installed package versions, capabilities,
39
- and documentation manifest paths. Mixed package versions or stale documentation fail before
40
- generation. Commands resolve packages and relative paths from the current project; pass
41
- `--project PATH` to select another project explicitly. `TOPIC_ID` comes from documentation search;
42
- `RUN_DIRECTORY` comes from a successful run.
43
-
44
- The concepts guide starts with a compact construction map. Search matches distinct words in
45
- titles, guide headings, keywords, and summaries. Exact titles, topic IDs, and import paths take
46
- priority; equally complete intent matches favor guides over reference entries.
47
-
48
- `run` includes semantic TypeScript checking and executes in a disposable child process with a
49
- 30-second default deadline. It saves each attempt beneath `.metamesh/runs` with source identity,
50
- parameters, diagnostics, measurements, and hashed geometry buffers. `inspect` and `render` validate
51
- those captured buffers without importing the original source. Use `--json` for one structured stdout
52
- result; bounded author logs go to stderr. Exit codes are 0 for success, 1 for source or generation
53
- failure, and 2 for invocation, environment, artifact, or tooling failure. This executes trusted local
54
- code and is not a security sandbox.
55
-
56
- For Generators, use `--kind generator`. Entries named-export `definition` and default-export the
57
- Generator module envelope. Defaults merge with `--params parameters.json`, then strict validation
58
- rejects unknown or invalid overrides. Standalone model entries default-export a `ModelProgram` and
59
- receive no injected services. Both support normal local imports and installed dependencies; Studio's
60
- virtual `@metamesh/project` module is unavailable.
61
-
62
- Use `--help` on each command for parameters, fonts, resource limits, export, and image options.
63
- `metamesh setup` prints installation guidance for `metamesh-developer` from the canonical
64
- `metamesh-studio/metamesh-skills` repository and a project-instruction suggestion without modifying
65
- files. Its printed GitHub installation command becomes usable when that repository is published;
66
- the skill supplies the workflow, while installed package documentation supplies exact API facts.
67
-
68
- ## Programmatic API and documentation
85
+ Rendering supports PNG and lossless WebP, transparent backgrounds, and standard orthographic views.
86
+ Checking and generation never download a browser.
87
+
88
+ ## Node API and agent workflows
69
89
 
70
90
  ```ts
71
91
  import { inspectCapturedRun, runAuthoringSource } from "@metamesh/cli/authoring";
@@ -76,16 +96,19 @@ if (result.success) {
76
96
  }
77
97
  ```
78
98
 
79
- Resolve `@metamesh/cli/docs/manifest.json` for the installed Markdown reference, or run
80
- `pnpm exec metamesh docs show cli/guide/agent-authoring` for the complete authoring workflow.
81
- The [authoring guide source](https://github.com/JasonKoolman/metamesh/blob/main/apps/web/content/docs/develop/agent-authoring.mdx)
82
- also covers local font fixtures, artifacts, rendering, and agent integration. Until the public
83
- documentation site launches, use installed documentation, repository sources, or
84
- [run the docs locally](https://github.com/JasonKoolman/metamesh/blob/main/apps/web/README.md#local-use).
99
+ `@metamesh/cli/authoring` also exposes environment discovery, documentation lookup, source checking,
100
+ and rendering. `metamesh setup` prints guidance without changing project files. The portable
101
+ `metamesh-developer` skill supplies the workflow; installed package documentation supplies API facts.
102
+ Install a reviewed skill snapshot from the canonical `metamesh-studio/metamesh-skills` repository
103
+ or its local checkout when public installation is unavailable.
104
+
105
+ ## Documentation
85
106
 
86
- The reusable authoring functions and command implementation stay in this package; geometry and
87
- Generator contracts retain their existing owners. Testing assertions and font-fixture adapters
88
- remain in Testkit.
107
+ Resolve `@metamesh/cli/docs/manifest.json` for exact-version Markdown guidance and API references,
108
+ or run `pnpm exec metamesh docs show cli/guide/agent-authoring`. The
109
+ [authoring guide](https://github.com/JasonKoolman/metamesh/blob/main/apps/web/content/docs/develop/agent-authoring.mdx)
110
+ covers entry contracts, parameters, fonts, captures, and rendering. See
111
+ [Contributing](https://github.com/JasonKoolman/metamesh/blob/main/CONTRIBUTING.md) for package development.
89
112
 
90
113
  ## License
91
114
 
@@ -1,8 +1,8 @@
1
- import type { ModelSnapshot } from "@metamesh/modeling/engine";
1
+ import { type ModelResult } from "@metamesh/modeling/engine";
2
2
  import type { CapturedPart, CapturedRun, CapturedRunManifest } from "./types.js";
3
3
  export declare function sha256(value: Uint8Array | string): string;
4
4
  export declare function writeAtomicJson(file: string, value: unknown): Promise<void>;
5
- export declare function captureSnapshot(directory: string, snapshot: ModelSnapshot, metadata: Omit<CapturedRunManifest, "resources" | "parts" | "bounds" | "stats" | "diagnostics" | "dependencies" | "export3mf">, export3mf?: ArrayBuffer): Promise<CapturedRunManifest>;
5
+ export declare function captureSnapshot(directory: string, snapshot: ModelResult, metadata: Omit<CapturedRunManifest, "resources" | "parts" | "bounds" | "stats" | "diagnostics" | "dependencies" | "export3mf">, export3mf?: ArrayBuffer): Promise<CapturedRunManifest>;
6
6
  /** Reads only immutable captured files. It never imports or executes original author source. */
7
7
  export declare function readCapturedRun(directory: string): Promise<CapturedRun>;
8
8
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"artifacts.d.ts","sourceRoot":"","sources":["../../src/authoring/artifacts.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAa/D,OAAO,KAAK,EAGV,YAAY,EAEZ,WAAW,EACX,mBAAmB,EACpB,MAAM,YAAY,CAAC;AAEpB,wBAAgB,MAAM,CAAC,KAAK,EAAE,UAAU,GAAG,MAAM,GAAG,MAAM,CAEzD;AAED,wBAAsB,eAAe,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,GAAG,OAAO,CAAC,IAAI,CAAC,CAIjF;AAED,w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AmB,CAAC,CAyD9B;AA0QD,gGAAgG;AAChG,wBAAsB,eAAe,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,CAAC,CAgF7E;AAED;;;GAGG;AACH,wBAAsB,kBAAkB,CACtC,SAAS,EAAE,MAAM,EACjB,MAAM,CAAC,EAAE,MAAM,GACd,OAAO,CAAC,IAAI,CAAC,WAAW,EAAE,WAAW,CAAC,GAAG;IAAE,QAAQ,CAAC,YAAY,CAAC,EAAE,YAAY,CAAA;CAAE,CAAC,CAWpF"}
@@ -1,8 +1,9 @@
1
1
  import { createHash } from "node:crypto";
2
2
  import { mkdir, readFile, rename, stat, writeFile } from "node:fs/promises";
3
3
  import { join, resolve } from "node:path";
4
- import { defaultModelingLimits } from "@metamesh/modeling/engine";
5
- import { analyzeTriangleMesh, composeTransform3, eulerTransform3, transformTriangleMesh, translationTransform3, } from "@metamesh/modeling/geometry";
4
+ import { defaultModelingLimits, } from "@metamesh/modeling/engine";
5
+ import { IDENTITY_TRANSFORM3, validateRigidTransform3, } from "@metamesh/modeling/geometry";
6
+ import * as mesh from "@metamesh/modeling/geometry/mesh";
6
7
  import { authoringPackageNames, confinedFile } from "./environment.js";
7
8
  import { AuthoringError, isRecord } from "./errors.js";
8
9
  export function sha256(value) {
@@ -18,32 +19,36 @@ export async function captureSnapshot(directory, snapshot, metadata, export3mf)
18
19
  const resources = [];
19
20
  const parts = [];
20
21
  const seen = new Map();
22
+ const capturedResources = new Map();
21
23
  const store = async (path, bytes) => {
22
24
  await writeFile(join(directory, path), bytes, { flag: "wx" });
23
25
  return { path, bytes: bytes.byteLength, sha256: sha256(bytes) };
24
26
  };
25
27
  for (const part of snapshot.parts) {
26
- const positions = part.geometry.positions;
27
- const indices = part.geometry.indices;
28
- const positionBytes = new Uint8Array(positions.buffer, positions.byteOffset, positions.byteLength);
29
- const indexBytes = new Uint8Array(indices.buffer, indices.byteOffset, indices.byteLength);
30
- const key = `${sha256(positionBytes)}:${sha256(indexBytes)}`;
31
- let resourceId = seen.get(key);
28
+ let resourceId = capturedResources.get(part.geometry);
32
29
  if (resourceId === undefined) {
33
- resourceId = `geometry-${resources.length}`;
34
- seen.set(key, resourceId);
35
- resources.push({
36
- id: resourceId,
37
- positions: await store(`geometry/${resourceId}.positions.f32`, positionBytes),
38
- indices: await store(`geometry/${resourceId}.indices.u32`, indexBytes),
39
- measurements: part.geometry.measurements,
40
- });
30
+ const positions = part.geometry.positions.copy();
31
+ const indices = part.geometry.indices.copy();
32
+ const positionBytes = new Uint8Array(positions.buffer, positions.byteOffset, positions.byteLength);
33
+ const indexBytes = new Uint8Array(indices.buffer, indices.byteOffset, indices.byteLength);
34
+ const key = `${sha256(positionBytes)}:${sha256(indexBytes)}`;
35
+ resourceId = seen.get(key);
36
+ if (resourceId === undefined) {
37
+ resourceId = `geometry-${resources.length}`;
38
+ seen.set(key, resourceId);
39
+ resources.push({
40
+ id: resourceId,
41
+ positions: await store(`geometry/${resourceId}.positions.f32`, positionBytes),
42
+ indices: await store(`geometry/${resourceId}.indices.u32`, indexBytes),
43
+ measurements: part.geometry.measurements,
44
+ });
45
+ }
46
+ capturedResources.set(part.geometry, resourceId);
41
47
  }
42
48
  parts.push({
43
49
  id: part.id,
44
50
  resourceId,
45
- position: part.position,
46
- rotation: part.rotation,
51
+ transform: part.transform,
47
52
  measurements: part.measurements,
48
53
  ...(part.color === undefined ? {} : { color: part.color }),
49
54
  });
@@ -69,6 +74,16 @@ function invalid(message) {
69
74
  const vector = (value) => Array.isArray(value) &&
70
75
  value.length === 3 &&
71
76
  value.every((number) => typeof number === "number" && Number.isFinite(number));
77
+ function rigidTransform(value) {
78
+ try {
79
+ validateRigidTransform3(value);
80
+ const matrix = value;
81
+ return matrix[12] === 0 && matrix[13] === 0 && matrix[14] === 0 && matrix[15] === 1;
82
+ }
83
+ catch {
84
+ return false;
85
+ }
86
+ }
72
87
  const bounds = (value) => isRecord(value) &&
73
88
  vector(value.min) &&
74
89
  vector(value.max) &&
@@ -111,8 +126,7 @@ function measurements(value) {
111
126
  ["signedVolume", "surfaceArea"].every((key) => typeof value[key] === "number" && Number.isFinite(value[key])) &&
112
127
  positiveInteger(value.triangleCount) &&
113
128
  positiveInteger(value.vertexCount) &&
114
- (value.connectedComponentCount === undefined ||
115
- positiveInteger(value.connectedComponentCount)) &&
129
+ (value.shellCount === undefined || positiveInteger(value.shellCount)) &&
116
130
  (value.edgeCount === undefined || positiveInteger(value.edgeCount)));
117
131
  }
118
132
  function sameBounds(actual, recorded) {
@@ -124,7 +138,7 @@ function sameMeasurements(actual, recorded) {
124
138
  actual.triangleCount === recorded.triangleCount &&
125
139
  actual.signedVolume === recorded.signedVolume &&
126
140
  actual.surfaceArea === recorded.surfaceArea &&
127
- actual.connectedComponentCount === recorded.connectedComponentCount &&
141
+ actual.shellCount === recorded.shellCount &&
128
142
  actual.edgeCount === recorded.edgeCount &&
129
143
  sameBounds(actual.bounds, recorded.bounds));
130
144
  }
@@ -134,7 +148,7 @@ function manifestFrom(value) {
134
148
  const limits = policy !== undefined && isRecord(policy.limits) ? policy.limits : undefined;
135
149
  const dependencies = isRecord(value) && isRecord(value.dependencies) ? value.dependencies : undefined;
136
150
  if (!isRecord(value) ||
137
- value.formatVersion !== 1 ||
151
+ value.formatVersion !== 2 ||
138
152
  value.status !== "complete" ||
139
153
  !identifier(value.runId) ||
140
154
  typeof value.createdAt !== "string" ||
@@ -189,14 +203,14 @@ function manifestFrom(value) {
189
203
  "partCount",
190
204
  "vertexCount",
191
205
  "triangleCount",
192
- "volumeMm3",
206
+ "signedVolume",
193
207
  "byteCount",
194
208
  "buildMs",
195
- "finalizationMs",
196
- "generationMs",
209
+ "finalizeMs",
210
+ "generateMs",
197
211
  ].every((key) => typeof stats?.[key] === "number" && Number.isFinite(stats[key])) ||
198
212
  !["partCount", "vertexCount", "triangleCount", "byteCount"].every((key) => positiveInteger(stats?.[key])) ||
199
- !["buildMs", "finalizationMs", "generationMs"].every((key) => typeof stats?.[key] === "number" && stats[key] >= 0) ||
213
+ !["buildMs", "finalizeMs", "generateMs"].every((key) => typeof stats?.[key] === "number" && stats[key] >= 0) ||
200
214
  dependencies === undefined ||
201
215
  !strings(dependencies.modelParameters) ||
202
216
  !Array.isArray(dependencies.computations) ||
@@ -236,8 +250,9 @@ function manifestFrom(value) {
236
250
  partIds.has(part.id) ||
237
251
  typeof part.resourceId !== "string" ||
238
252
  !ids.has(part.resourceId) ||
239
- !vector(part.position) ||
240
- !vector(part.rotation) ||
253
+ !rigidTransform(part.transform) ||
254
+ Object.hasOwn(part, "position") ||
255
+ Object.hasOwn(part, "rotation") ||
241
256
  !measurements(part.measurements) ||
242
257
  (part.color !== undefined &&
243
258
  (typeof part.color !== "string" || !/^#[a-f0-9]{6}$/i.test(part.color))))
@@ -288,7 +303,7 @@ export async function readCapturedRun(directory) {
288
303
  positions: new Float32Array(positions.buffer),
289
304
  indices: new Uint32Array(indices.buffer),
290
305
  };
291
- const facts = analyzeTriangleMesh(geometry, { requireClosed: true, includeTopology: true });
306
+ const facts = mesh.analyze(geometry, { requireClosed: true, includeTopology: true });
292
307
  if (!sameMeasurements(facts, resource.measurements))
293
308
  invalid(`Captured measurements do not match geometry ${resource.id}.`);
294
309
  resources.set(resource.id, { geometry, facts });
@@ -302,9 +317,12 @@ export async function readCapturedRun(directory) {
302
317
  };
303
318
  for (const part of manifest.parts) {
304
319
  const resource = resources.get(part.resourceId);
305
- const facts = [...part.position, ...part.rotation].every((number) => number === 0)
320
+ const facts = part.transform.every((number, index) => number === IDENTITY_TRANSFORM3[index])
306
321
  ? resource.facts
307
- : analyzeTriangleMesh(transformTriangleMesh(resource.geometry, composeTransform3(translationTransform3(part.position), eulerTransform3(part.rotation))), { requireClosed: true, includeTopology: true });
322
+ : mesh.analyze(mesh.transform(resource.geometry, part.transform), {
323
+ requireClosed: true,
324
+ includeTopology: true,
325
+ });
308
326
  if (!sameMeasurements(facts, part.measurements))
309
327
  invalid(`Captured placement measurements do not match part ${part.id}.`);
310
328
  vertices += facts.vertexCount;
@@ -317,7 +335,7 @@ export async function readCapturedRun(directory) {
317
335
  }
318
336
  if (vertices !== manifest.stats.vertexCount ||
319
337
  triangles !== manifest.stats.triangleCount ||
320
- volume !== manifest.stats.volumeMm3 ||
338
+ volume !== manifest.stats.signedVolume ||
321
339
  manifest.stats.byteCount < totalBytes ||
322
340
  manifest.stats.byteCount > manifest.policy.limits.maxBytes ||
323
341
  vertices > manifest.policy.limits.maxVertices ||
@@ -1 +1 @@
1
- {"version":3,"file":"artifacts.js","sourceRoot":"","sources":["../../src/authoring/artifacts.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC5E,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAC1C,OAAO,EAAE,qBAAqB,EAAE,MAAM,2BAA2B,CAAC;AAElE,OAAO,EACL,mBAAmB,EACnB,iBAAiB,EACjB,eAAe,EACf,qBAAqB,EACrB,qBAAqB,GAGtB,MAAM,6BAA6B,CAAC;AAErC,OAAO,EAAE,qBAAqB,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AACvE,OAAO,EAAE,cAAc,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAUvD,MAAM,UAAU,MAAM,CAAC,KAA0B;IAC/C,OAAO,UAAU,CAAC,QAAQ,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;AAC1D,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,eAAe,CAAC,IAAY,EAAE,KAAc;IAChE,MAAM,SAAS,GAAG,GAAG,IAAI,UAAU,CAAC;IACpC,MAAM,SAAS,CAAC,SAAS,EAAE,GAAG,IAAI,CAAC,SAAS,CAAC,KAAK,EAAE,IAAI,EAAE,CAAC,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AE,QAAQ,CAAC,QAAQ;QAC3B,GAAG,CAAC,YAAY,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,YAAY,EAAE,CAAC;KACxD,CAAC;AACJ,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"check.d.ts","sourceRoot":"","sources":["../../src/authoring/check.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAuB,gBAAgB,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAgBpG,wGAAwG;AACxG,wBAAsB,oBAAoB,CACxC,OAAO,EAAE,YAAY,GACpB,OAAO,CAAC,YAAY,GAAG,gBAAgB,CAAC,CAmI1C"}
1
+ {"version":3,"file":"check.d.ts","sourceRoot":"","sources":["../../src/authoring/check.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAuB,gBAAgB,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAgBpG,wGAAwG;AACxG,wBAAsB,oBAAoB,CACxC,OAAO,EAAE,YAAY,GACpB,OAAO,CAAC,YAAY,GAAG,gBAAgB,CAAC,CA+I1C"}