mirror of
https://github.com/openclaw/openclaw.git
synced 2026-10-07 18:02:05 +00:00
* feat(apple-fm): offer on-device inference during Mac setup Add a macOS-only setup option backed by the native Foundation Models API. Measure availability and context size, compile the helper during explicit setup, and keep tool execution and validation with OpenClaw. Cover native tool handoff, transcript continuation, constrained generation, platform selection, setup isolation, cancellation, and packaged asset roots. Refs #109228 * fix(apple-fm): gate setup on background context detection Offer Apple Foundation Models only after a cancellable background probe confirms an available model with at least 8192 context tokens. Cold discovery compiles a disposable helper with installed Apple tools without installing inference or changing configuration; selection prepares the persistent helper and rechecks eligibility. Add detected-only auth-choice visibility for classic and app-guided setup. Keep unknown, unavailable, undersized, and stale configured routes out of offered choices while preserving explicit CLI selection and existing configuration. Validated 122 focused and native live tests, near-limit recall and over-limit rejection, built-plugin discovery, synthetic Control UI visibility and activation, runtime build, core/extension typechecks, targeted core lint, plugin lint, remaining changed-check guards, and independent P0-P2 review. Broad core lint also reports the unchanged pre-existing chat-pane-render.ts line-count violation. * fix(onboarding): keep utility inference separate from primary models Use the configured utility model for setup until a primary is selected, and keep Apple Foundation Models as an optional Mac setup and utility provider. Carry the model role through discovery, auth, activation, verification, and recovery across CLI, Control UI, and native Mac clients. Preserve existing primaries and exclude utility-only choices from implicit primary routing. Retain native tool constraints and validate structured results before publication. Keep helper repair available after updates and provide explicit setup-state facts to the small native model. Validation covers native Apple inference and tool replay, isolated onboarding, provider and agent ownership, aliases, recovery, generated protocols, build, TypeScript, lint, import cycles, and independent review. Native Mac UI tests remain pending the separate Xcode agreement; compile-only validation passed. * test(onboarding): drop retired activation diagnostics * fix(onboarding): preserve setup contracts across entry points * fix(onboarding): preserve legacy primary routes during utility setup Preserve shipped implicit primary selection through the canonical config writer and Doctor before recording utility-model separation. Fresh utility setup stays without a primary. Pending or deferred legacy conversion is repaired before provider authentication, without relaxing credential or route-change guards. Retain dynamic catalog behavior, aliases and profiles, literal model suffixes, agent ownership, and deliberate provider/model removals. Move unchanged setup copy behind its existing lazy UI boundary and satisfy native formatting gates. Validation covers canonical writer and migration regressions, setup activation, provider effects, routing/readiness, type checks, lint, import boundaries, and signed native Mac onboarding/recovery tests. Independent review through P2 is clean; synthetic before/after screenshots render in the PR and originating chat. * test(onboarding): align utility migration fixtures and wrapper closure
711 B
711 B
| summary | read_when | title | |
|---|---|---|---|
| On-device Apple Intelligence inference for lightweight setup and short tasks. |
|
Apple Fm plugin reference |
On-device Apple Intelligence inference for lightweight setup and short tasks.
Distribution
- Package:
@openclaw/apple-fm-provider - Install route: included in OpenClaw
Surface
- Providers:
apple-fm