@aihu/compiler 0.5.1 → 0.5.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/README.md CHANGED
@@ -21,7 +21,7 @@ npm install @aihu/compiler
21
21
  bun add @aihu/compiler
22
22
  ```
23
23
 
24
- <sub><i>Auto-generated against `@aihu/compiler@0.5.1`.</i></sub>
24
+ <sub><i>Auto-generated against `@aihu/compiler@0.5.2`.</i></sub>
25
25
 
26
26
  <!-- END_AUTOGEN: install -->
27
27
 
@@ -32,12 +32,12 @@ bun add @aihu/compiler
32
32
 
33
33
  | | |
34
34
  |---|---|
35
- | **Version** | `0.5.1` |
35
+ | **Version** | `0.5.2` |
36
36
  | **Tier** | D — Compiler — Single-File Component (.aihu) → Web Component |
37
37
  | **Published files** | 4 entries |
38
38
  | **License** | MIT |
39
39
 
40
- <sub><i>Auto-generated against `@aihu/compiler@0.5.1`.</i></sub>
40
+ <sub><i>Auto-generated against `@aihu/compiler@0.5.2`.</i></sub>
41
41
 
42
42
  <!-- END_AUTOGEN: stats -->
43
43
 
@@ -50,7 +50,7 @@ bun add @aihu/compiler
50
50
  |---|---|---|
51
51
  | `.` | `./dist/index.js` | `—` |
52
52
 
53
- <sub><i>Auto-generated against `@aihu/compiler@0.5.1`.</i></sub>
53
+ <sub><i>Auto-generated against `@aihu/compiler@0.5.2`.</i></sub>
54
54
 
55
55
  <!-- END_AUTOGEN: exports -->
56
56
 
@@ -62,9 +62,9 @@ bun add @aihu/compiler
62
62
  **Peer dependencies:**
63
63
 
64
64
  - `vite` — `>=5.0.0`
65
- - `@aihu/css-engine` — `>=0.2.2`
65
+ - `@aihu/css-engine` — `>=0.2.3`
66
66
 
67
- <sub><i>Auto-generated against `@aihu/compiler@0.5.1`.</i></sub>
67
+ <sub><i>Auto-generated against `@aihu/compiler@0.5.2`.</i></sub>
68
68
 
69
69
  <!-- END_AUTOGEN: deps -->
70
70
 
@@ -78,7 +78,7 @@ bun add @aihu/compiler
78
78
  - [Macro Vocabulary spec](../../docs/superpowers/specs/2026-05-02-spec-macro-vocabulary.md)
79
79
  - [Aihu framework root](../../README.md)
80
80
 
81
- <sub><i>Auto-generated against `@aihu/compiler@0.5.1`.</i></sub>
81
+ <sub><i>Auto-generated against `@aihu/compiler@0.5.2`.</i></sub>
82
82
 
83
83
  <!-- END_AUTOGEN: see-also -->
84
84
 
@@ -89,6 +89,6 @@ bun add @aihu/compiler
89
89
 
90
90
  MIT — see [LICENSE](../../LICENSE).
91
91
 
92
- <sub><i>Auto-generated against `@aihu/compiler@0.5.1`.</i></sub>
92
+ <sub><i>Auto-generated against `@aihu/compiler@0.5.2`.</i></sub>
93
93
 
94
94
  <!-- END_AUTOGEN: license -->
package/bin/aihu-compile CHANGED
Binary file
package/js/postinstall.ts CHANGED
@@ -233,8 +233,7 @@ function inspectBinary(
233
233
  // Mach-O 64-bit LE-on-disk magic. cputype at offset 4 (u32 LE).
234
234
  if (magic === 0xfeedfacf) {
235
235
  const cputype = buf.readUInt32LE(4)
236
- const arch =
237
- cputype === 0x01000007 ? 'x64' : cputype === 0x0100000c ? 'arm64' : null
236
+ const arch = cputype === 0x01000007 ? 'x64' : cputype === 0x0100000c ? 'arm64' : null
238
237
  return { format: 'macho', arch }
239
238
  }
240
239
  // Mach-O FAT/universal (multi-arch). On-disk bytes are big-endian per spec;
@@ -368,7 +367,9 @@ async function main(): Promise<void> {
368
367
  unlinkSync(binPath)
369
368
  } catch (err) {
370
369
  const detail = err instanceof Error ? err.message : String(err)
371
- warn(`could not remove incompatible binary at ${binPath}: ${detail}. Continuing — download will overwrite.`)
370
+ warn(
371
+ `could not remove incompatible binary at ${binPath}: ${detail}. Continuing — download will overwrite.`,
372
+ )
372
373
  }
373
374
  }
374
375
  if (existsSync(targetReleaseBin)) {
@@ -377,7 +378,9 @@ async function main(): Promise<void> {
377
378
  info(`local cargo build already present at ${targetReleaseBin}, skipping.`)
378
379
  return
379
380
  }
380
- warn(`existing ${targetReleaseBin} is incompatible (${reason}); ignoring and acquiring a fresh binary.`)
381
+ warn(
382
+ `existing ${targetReleaseBin} is incompatible (${reason}); ignoring and acquiring a fresh binary.`,
383
+ )
381
384
  }
382
385
 
383
386
  // Local dev override — copy a locally built binary instead of downloading.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aihu/compiler",
3
- "version": "0.5.1",
3
+ "version": "0.5.2",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -31,7 +31,7 @@
31
31
  },
32
32
  "peerDependencies": {
33
33
  "vite": ">=5.0.0",
34
- "@aihu/css-engine": ">=0.2.2"
34
+ "@aihu/css-engine": ">=0.2.3"
35
35
  },
36
36
  "peerDependenciesMeta": {
37
37
  "vite": {
@@ -42,7 +42,7 @@
42
42
  }
43
43
  },
44
44
  "devDependencies": {
45
- "@aihu/css-engine": "0.2.2"
45
+ "@aihu/css-engine": "0.2.3"
46
46
  },
47
47
  "description": "Single File Component (.aihu) compiler — Rust binary + JS glue.",
48
48
  "repository": {