apple-fm 1.0.0 → 1.0.1

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
@@ -4,22 +4,14 @@
4
4
  the on-device **Foundation Models** on **macOS 26+ / Apple Silicon** — free,
5
5
  private, and fully offline. No API key, no network, nothing leaves your Mac.
6
6
 
7
- Apple ships `FoundationModels` as a Swift-only framework with no command-line
8
- front-end. apple-fm provides one: a tiny Swift helper does the model work, and a
9
- tested, **zero-runtime-dependency** Node layer gives you a CLI and a library.
7
+ Apple ships these models as a Swift-only framework with no command-line
8
+ front-end. apple-fm provides one — a fast, lightweight CLI and a TypeScript
9
+ library, so you can use the on-device model from your terminal or your code.
10
10
 
11
11
  <p align="center">
12
12
  <img src="assets/demos/generate.svg" alt="apple-fm generate &quot;Explain a closure in one sentence.&quot; runs Apple's on-device model and prints the answer — fully offline, no API key." width="820">
13
13
  </p>
14
14
 
15
- > ℹ️ **Status.** Published to npm with a Developer-ID **signed + notarized**
16
- > helper, and smoke-verified on a macOS 26 / Apple Intelligence machine — probe,
17
- > generate (freeform / guided / streamed), native guaranteed-structure output, and
18
- > persistent multi-turn chat all work on-device. The one tracked gap is an
19
- > automated on-device *generation* test in CI: hosted runners build, sign, and
20
- > notarize the helper but can't run the model (it needs Apple Intelligence). See
21
- > [docs/3-requirements.md](docs/3-requirements.md).
22
-
23
15
  ## Why apple-fm
24
16
 
25
17
  - **On-device & private.** Runs on the model Apple Intelligence already
@@ -35,8 +27,8 @@ tested, **zero-runtime-dependency** Node layer gives you a CLI and a library.
35
27
  session across turns, reusing the model's cache instead of replaying the
36
28
  transcript, and automatically summarizes older turns as the small context
37
29
  window fills.
38
- - **Zero runtime dependencies.** The Node layer only spawns the helper and speaks
39
- JSON. Strict TypeScript, ESM, lint-clean.
30
+ - **Lightweight, nothing to audit.** Zero runtime dependencies — apple-fm just
31
+ talks to the on-device model and gets out of your way.
40
32
  - **Future-proof.** The helper resolves the current on-device model at runtime,
41
33
  so OS and model updates are picked up without a rebuild.
42
34
 
@@ -47,15 +39,9 @@ npm install -g apple-fm # CLI
47
39
  npm install apple-fm # library
48
40
  ```
49
41
 
50
- Requires macOS 26+ on Apple Silicon with Apple Intelligence enabled. Releases
51
- bundle a signed + notarized helper; you can also build it from source:
52
-
53
- ```bash
54
- npm run build:helper # → bin/apple-fm-helper (needs Xcode 26 / macOS 26 SDK)
55
- ```
56
-
57
- The helper is located via `APPLE_FM_BIN`, then the bundled `bin/apple-fm-helper`,
58
- then `apple-fm-helper` on `PATH`.
42
+ Requires macOS 26+ on Apple Silicon with Apple Intelligence enabled. Every
43
+ release is Developer-ID signed and notarized, so it runs without security
44
+ prompts.
59
45
 
60
46
  ### Platform support
61
47
 
@@ -143,23 +129,16 @@ documented in [docs/ai/code-summary.md](docs/ai/code-summary.md).
143
129
 
144
130
  ## How it works
145
131
 
146
- A single binary, three shapes (probe / generate / chat), all over one
147
- line-delimited JSON protocol ([docs/4-protocol.md](docs/4-protocol.md)). Only the
148
- Swift helper imports `FoundationModels`; all policy — argument parsing, the wire
149
- protocol, chat history, auto-compaction — lives in strict TypeScript and is
150
- unit-tested against a stub helper, so the suite runs on any platform. For chat the
151
- helper holds one `LanguageModelSession` across turns (so the model's cache is
152
- reused instead of replaying the transcript), while the Node side keeps the
153
- transcript so it can summarize older turns as the small context window fills — so
154
- long conversations stay coherent and cheap. Because the helper resolves the
155
- current on-device model at runtime, OS and model updates are picked up without a
156
- rebuild.
132
+ apple-fm talks to the same on-device model that powers Apple Intelligence —
133
+ nothing is sent to the cloud. For chat it keeps one model session alive across
134
+ turns so replies stay fast, and automatically summarizes older messages as the
135
+ context window fills, so long conversations stay coherent and cheap. And because
136
+ it resolves the current on-device model at runtime, OS and model updates are
137
+ picked up automatically — no reinstall.
157
138
 
158
139
  ## Documentation
159
140
 
160
- - [Overview](docs/1-overview.md) · [Architecture](docs/2-architecture.md) ·
161
- [Requirements](docs/3-requirements.md) · [Protocol](docs/4-protocol.md) ·
162
- [Releasing](docs/5-releasing.md)
141
+ - [Overview](docs/1-overview.md)
163
142
 
164
143
  ## Disclaimer
165
144
 
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "apple-fm",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "Command-line and programmatic access to Apple's on-device Foundation Models (Apple Intelligence) on macOS 26+.",
5
5
  "type": "module",
6
6
  "license": "MIT",