axint.compile
Compile TypeScript defineIntent() source into native Swift App Intent code. Returns generated Swift, Info.plist, and entitlements as strings without writing files.
Instructions
Compile TypeScript source (defineIntent() call) into native Swift App Intent code. Returns { swift, infoPlist?, entitlements? } as a string — no files written, no network requests. On validation failure, returns diagnostics... Use: use when TypeScript DSL source should become Swift; use validate for cheaper preflight only. Effects: read-only generated Swift/diagnostics; writes no files and uses no network.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| source | Yes | Full TypeScript source code containing a defineIntent() call. Must be a complete file starting with an axint... | |
| fileName | No | Optional file name used in diagnostic messages, e.g., 'SendMessage.intent.ts'. Defaults to 'input.ts' if... | |
| emitInfoPlist | No | When true, returns an Info.plist XML fragment declaring the intent's infoPlistKeys. Only relevant for... | |
| emitEntitlements | No | When true, returns an .entitlements XML fragment for the intent's declared entitlements. Only relevant for... | |
| format | No | When true (default), pipes generated Swift through swift-format with Axint's house style. Falls back to raw... |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | Primary Axint tool response text, matching the first text content block. | |
| isError | No | Whether Axint marked the tool response as an error. |