@axintai/compiler 0.2.1 → 0.3.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.
package/README.md CHANGED
@@ -14,10 +14,11 @@
14
14
  </p>
15
15
 
16
16
  <p align="center">
17
- <a href="https://www.npmjs.com/package/axint"><img src="https://img.shields.io/npm/v/axint?color=f05138&label=npm" alt="npm" /></a>
17
+ <a href="https://www.npmjs.com/package/@axintai/compiler"><img src="https://img.shields.io/npm/v/@axintai/compiler?color=f05138&label=npm" alt="npm" /></a>
18
18
  <a href="https://github.com/agenticempire/axint/blob/main/LICENSE"><img src="https://img.shields.io/badge/license-Apache%202.0-blue" alt="License" /></a>
19
- <a href="https://github.com/agenticempire/axint/actions"><img src="https://img.shields.io/badge/tests-124%20passing-brightgreen" alt="Tests" /></a>
19
+ <a href="https://github.com/agenticempire/axint/actions/workflows/ci.yml"><img src="https://github.com/agenticempire/axint/actions/workflows/ci.yml/badge.svg" alt="CI" /></a>
20
20
  <a href="https://axint.ai"><img src="https://img.shields.io/badge/playground-axint.ai-7c3aed" alt="Playground" /></a>
21
+ <a href="https://axint.ai/wwdc"><img src="https://img.shields.io/badge/WWDC%202026-60%20days-f05138" alt="WWDC 2026" /></a>
21
22
  </p>
22
23
 
23
24
  <p align="center">
@@ -32,7 +33,7 @@
32
33
 
33
34
  ## The picks and shovels of Agent Siri
34
35
 
35
- WWDC 2026 is weeks away. Apple is fusing **Model Context Protocol with App Intents** on iOS 26.1 and macOS Tahoe 26.1Agent Siri runs a 3B-parameter on-device model that invokes App Intents as tools. Every App Intent you ship today automatically becomes an MCP-addressable capability tomorrow.
36
+ WWDC 2026 is weeks away. Apple is expanding **App Intents as the universal action layer** across iOS 26, macOS Tahoe, and Apple Intelligence every App Intent you ship becomes a capability that Siri, Shortcuts, Spotlight, and on-device AI agents can invoke. The surface area is growing fast.
36
37
 
37
38
  Axint is the fastest path from an AI coding tool to a shipped App Intent. **One TypeScript definition. Two agent surfaces. Zero Swift required.**
38
39
 
@@ -56,7 +57,7 @@ Axint is the fastest path from an AI coding tool to a shipped App Intent. **One
56
57
 
57
58
  ---
58
59
 
59
- ## Why Axint v0.2.0
60
+ ## Why Axint
60
61
 
61
62
  - **Real TypeScript AST parser.** Not regex. Uses the TypeScript compiler API, same as `tsc`, so you get full type fidelity and proper diagnostics with line/column spans.
62
63
  - **Native type fidelity.** `int → Int`, `double → Double`, `float → Float`, `date → Date`, `url → URL`, `duration → Measurement<UnitDuration>`, `optional<T> → T?`. Default values and optionality are preserved end-to-end.
@@ -65,7 +66,7 @@ Axint is the fastest path from an AI coding tool to a shipped App Intent. **One
65
66
  - **MCP-native.** A bundled `axint-mcp` server exposes `axint_scaffold`, `axint_compile`, and `axint_validate` to any MCP client. Your AI coding agent can read your project, draft a TypeScript intent, compile it, and open a PR — without a human touching Xcode.
66
67
  - **Rust-grade diagnostics.** 16 diagnostic codes (`AX001`–`AX202`) with fix suggestions and color-coded output.
67
68
  - **Sub-millisecond compile.** A typical intent compiles in under a millisecond. The [axint.ai playground](https://axint.ai/#playground) runs the full compiler in your browser with zero server round-trip.
68
- - **124 tests.** Parser, validator, generator, and emit paths — all covered.
69
+ - **152 tests.** Parser, validator, generator, emit paths, and sandbox — all covered.
69
70
  - **Apache 2.0, no CLA.** Fork it, extend it, ship it.
70
71
 
71
72
  ---
@@ -76,8 +77,8 @@ Axint is the fastest path from an AI coding tool to a shipped App Intent. **One
76
77
  # Install globally
77
78
  npm install -g @axintai/compiler
78
79
 
79
- # Or use without installing
80
- npx axint compile my-intent.ts --stdout
80
+ # Or use without installing (runs from npm cache)
81
+ npx -p @axintai/compiler axint compile my-intent.ts --stdout
81
82
  ```
82
83
 
83
84
  Create `my-intent.ts`:
@@ -271,7 +272,7 @@ axint/
271
272
  │ ├── mcp/ # MCP server (scaffold, compile, validate)
272
273
  │ ├── cli/ # axint CLI (Commander.js)
273
274
  │ └── templates/ # Intent template registry
274
- ├── tests/ # 124 vitest tests
275
+ ├── tests/ # 117 vitest tests
275
276
  ├── examples/ # Example intent definitions
276
277
  └── docs/ # Error reference, contributing, assets
277
278
  ```
@@ -299,7 +300,7 @@ See [`ROADMAP.md`](ROADMAP.md) for the full plan. Highlights:
299
300
  - [x] Info.plist and `.entitlements` emit (v0.2.0)
300
301
  - [x] Return-type-aware `perform()` (v0.2.0)
301
302
  - [x] MCP scaffold tool (v0.2.0)
302
- - [x] 124-test suite with snapshot coverage (v0.2.0)
303
+ - [x] 152-test suite with snapshot coverage (v0.2.0)
303
304
  - [ ] Intent template library (v0.3.0)
304
305
  - [ ] `--watch` mode for live Swift preview
305
306
  - [ ] Xcode build plugin