@tensor-cad/engine 0.1.3 → 0.1.4

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tensor-cad/engine",
3
- "version": "0.1.3",
3
+ "version": "0.1.4",
4
4
  "description": "The TensorCAD analysis engine, compiled from Go to WebAssembly, with its TypeScript client",
5
5
  "type": "module",
6
6
  "main": "./index.js",
package/tensorcad.wasm CHANGED
Binary file
package/types.d.ts CHANGED
@@ -170,12 +170,27 @@ export interface PortSpec {
170
170
  dtype?: string;
171
171
  /** A port that may legitimately dangle. */
172
172
  optional?: boolean;
173
+ /**
174
+ * What the tensor carries, as a *kind* rather than a width: "real" for
175
+ * anything a matmul can multiply, "int" for an index, "bool" for a mask,
176
+ * "inherit" to take it from whatever arrives. Which real type — fp32,
177
+ * bf16, fp8 — is a condition of the run and belongs to the operating
178
+ * point (invariant 8), not to the block.
179
+ */
173
180
  /** "flow" or "side": which edge of the symbol a wire leaves by. */
174
181
  anchor?: "flow" | "side";
175
182
  showName?: boolean;
176
183
  doc?: string;
177
184
  }
178
185
  export interface BlockDocs {
186
+ /**
187
+ * What a drawing calls this block: a short noun phrase in the words a
188
+ * published figure would use, where `type` is the identifier the engine
189
+ * dispatches on and a path is written with. Both are kept — the identifier is
190
+ * what an MCP call names, and a reader who found a block by its drawing then
191
+ * has to type it.
192
+ */
193
+ name?: string;
179
194
  summary?: string;
180
195
  formula?: string;
181
196
  refs?: string[];