82 Commits
Author SHA1 Message Date
Kellyvv b5b952b6dd Update README.md 2026-04-08 10:33:09 +08:00
KellyvvandClaude Opus 4.6 c702e3cab0 docs: README update for 2026-04-08
- Add changelog entry covering ModelScope mirror and the memory-management
  rework (dynamic budget from headroom, dropped prompt-length subtraction).
- Fix stale path references after the MLX/Tools refactor:
  LLM/MLXLocalLLMService.swift → LLM/MLX/MLXLocalLLMService.swift
  Skills/ToolRegistry.swift → Tools/ToolRegistry.swift
- Custom skill snippet now shows the new \`type:\` field with device/content
  guidance, and notes the load-time allowed-tools validation.
- Add ModelScope mirror links to the reference list in both READMEs.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-08 09:38:16 +08:00
KellyvvandClaude Opus 4.6 12eff570c8 chore: shell-only build, drop gemma-4-e4b-it-4bit from Resources phase
Default release build is the empty-shell IPA — model files live under
Models/ for local development but are no longer copied into the .app
bundle. Users still download Gemma weights at first launch via the
in-app downloader (ModelScope / hf-mirror / huggingface.co fallback).

Keep PBXFileReference + group children so Models/ stays browsable in
Xcode, but remove the BuildFile entry from PBXResourcesBuildPhase.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-08 09:30:34 +08:00
KellyvvandClaude Opus 4.6 be94b244d2 chore: remove DEVELOPMENT_TEAM from project.pbxproj
Xcode auto-injected the local team identifier when files were added to
the project. Strip it again so the repo stays signing-agnostic.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-08 09:25:09 +08:00
KellyvvandClaude Opus 4.6 779be78843 refactor: split MLX service, introduce skill type & runtime budgets
Major restructuring of the agent stack to support content-type skills,
data-driven runtime budgets, and the new translate skill.

LLM/MLX/
- Split MLXLocalLLMService.swift (1500 → 700 lines) into Core/, Gemma4/,
  Installation/ subdirectories
- New BundledModel: LinearBudgetFormula replaces tier tables, model
  parameters fully data-driven via ModelRuntimeProfile
- New RuntimeBudgets: pure functions for text/thinking/multimodal budgets,
  zero hardcoded model IDs
- Drop adjustedTextOutputTokens prepared-subtraction (chunked prefill made
  it obsolete and triggered false-positive truncation on long prompts)

Skills/
- Add SkillType (.device / .content) metadata, parsed from SKILL.md
  frontmatter
- New translate skill (type: content, no tools) with anaphora handling
- Trim translate (4563→1804), device (2357→1680), calendar (2169→1790)
- contacts SKILL.md adds multi-turn disambiguation + cancel guidance,
  semantics owned by body not framework
- SkillRegistry validates allowed-tools against ToolRegistry at load time

Agent/
- ToolCallParser becomes registry-aware: drops tool_call names not in
  ToolRegistry or protocol set (load_skill / list_skills); ToolRegistry
  is now the single white list, validation moves to parser boundary
- Router sticky routing uses semantic user-turn boundary instead of
  fixed suffix(4); correctly handles long agent loops
- AgentEngine system prompt template differentiates device vs content
  skills with explicit invocation rules
- SYSPROMPT.md auto-migration: old single-placeholder template backed up
  to .bak when new dual-placeholder is detected
- PromptBuilder.buildLoadedSkillPrompt receives availableTools list,
  explicitly tells model which tools (or none) are callable

Tools/
- ToolRegistry split into Helpers/Stores/AppPermissions/Handlers/* for
  separation of concerns
- Mark Tools/Handlers/* with explicit allowed argument signatures

UI/
- Add long-press copy contextMenu on user and assistant bubbles
- Enable .textSelection on user bubble

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-08 09:22:20 +08:00
Kellyvv 8872646858 chore: remove fixed development team from project 2026-04-07 16:29:46 +08:00
Kellyvv 446d216088 feat: improve on-device model download flow 2026-04-07 16:19:56 +08:00
Kellyvv 3d5c1ca67f docs: update release notes with ipa and chat history 2026-04-07 11:40:34 +08:00
Kellyvv 97e5c8993f docs: sync ipa install instructions in zh and en 2026-04-07 11:31:10 +08:00
Kellyvv 69c4b32248 feat: ship shell app and chat session polish 2026-04-07 11:13:35 +08:00
271ac8c1dc feat(ui): show download progress bar in model picker
Replace the plain "下载中 X/Y" badge with a small progress bar that
visualises file-count progress while a model is downloading. UI-only
change — does not touch the download path itself.

Inspired by @gclsoft's PR #3.

Co-Authored-By: Peter <gclsoft@qq.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-07 02:42:06 +08:00
Kellyvv 0d223ae373 feat: add audio input and stabilize gemma 4 inference 2026-04-07 01:50:29 +08:00
Kellyvv b6d3e54fc3 docs: add 2026-04-06 update notes to README 2026-04-06 16:11:43 +08:00
Kellyvv 3b30a77bbb Merge branch 'develop' 2026-04-06 16:07:12 +08:00
Kellyvv c81625aff8 Stabilize local skills and keep shell install default 2026-04-06 16:05:56 +08:00
Kellyvv 842cbe5c3c merge: develop → main 2026-04-06 12:09:47 +08:00
Kellyvv 63781c32c3 chore: switch license from MIT to Apache 2.0 2026-04-06 12:09:44 +08:00
Kellyvv ab216aabc1 merge: develop → main 2026-04-06 07:31:46 +08:00
Kellyvv be78c69f0d docs: restore E4B download commands in 方案 C / Option C 2026-04-06 07:31:44 +08:00
Kellyvv 2a0589a286 merge: develop → main 2026-04-06 07:06:02 +08:00
Kellyvv 5dde0d1b1a docs: sync English README — single video embed, no captions 2026-04-06 07:06:00 +08:00
Kellyvv 857e488e4e merge: develop → main 2026-04-06 07:05:18 +08:00
Kellyvv bc3c5e32c2 docs: simplify demo to single video, remove captions 2026-04-06 07:05:15 +08:00
Kellyvv 6a068e2731 merge: develop → main 2026-04-06 07:02:47 +08:00
Kellyvv 2a39f25732 docs: embed both demo videos side by side 2026-04-06 07:02:41 +08:00
Kellyvv 0f2752b7a6 merge: develop → main 2026-04-06 07:02:08 +08:00
Kellyvv 3cfb0a792c docs: embed demo video inline using GitHub user-attachments URL 2026-04-06 07:02:06 +08:00
Kellyvv 9563925d33 merge: develop → main 2026-04-06 06:54:36 +08:00
Kellyvv 265a280e4e docs: add demo video links section 2026-04-06 06:54:34 +08:00
Kellyvv 484608b0ff merge: develop → main 2026-04-06 06:49:40 +08:00
Kellyvv 316c0e6f62 docs: merge 运行要求 + 快速开始 + 安装方式 into one 快速开始 section 2026-04-06 06:49:38 +08:00
Kellyvv 777b917987 merge: develop → main 2026-04-06 06:45:10 +08:00
Kellyvv 696bafaf73 docs: add centered navigation links below header 2026-04-06 06:45:08 +08:00
Kellyvv 27a61107af merge: develop → main 2026-04-06 06:26:44 +08:00
Kellyvv bf7e3dea08 docs: rename section to '内置 Skill 示例 / Built-in Skill Examples' 2026-04-06 06:26:42 +08:00
Kellyvv d9546bba71 merge: develop → main 2026-04-06 06:25:39 +08:00
Kellyvv b5b40e6496 docs: replace 'local GPU' with 'on-device/手机端' in privacy section 2026-04-06 06:25:37 +08:00
Kellyvv b619b47510 merge: develop → main 2026-04-06 06:24:58 +08:00
Kellyvv 81d0ddd1ff docs: add usage examples to each Built-in Skill 2026-04-06 06:24:54 +08:00
Kellyvv 42d34247a3 merge: develop → main 2026-04-06 06:22:03 +08:00
Kellyvv 8a908c0377 docs: split Core Features and Built-in Skills into separate sections 2026-04-06 06:22:01 +08:00
Kellyvv ad482a6445 merge: develop → main 2026-04-06 06:19:01 +08:00
Kellyvv fd06a54f57 docs: rewrite features as descriptive paragraphs (Core Features style) 2026-04-06 06:18:59 +08:00
Kellyvv 954c5f9983 merge: develop → main 2026-04-06 06:15:36 +08:00
Kellyvv 116a716a35 docs: fix section order — description → 项目特点 → 能力表 2026-04-06 06:15:34 +08:00
Kellyvv 0cbbde8e30 merge: develop → main 2026-04-06 06:13:28 +08:00
Kellyvv 71c3fdbb80 docs: reorder — 项目特点 before capability table, description paragraph after 2026-04-06 06:13:23 +08:00
Kellyvv a3c53bf754 merge: develop → main 2026-04-06 06:10:15 +08:00
Kellyvv b304b40770 docs: remove title from README header (banner first); chore: clear Team ID 2026-04-06 06:10:12 +08:00
Kellyvv 3f84ae603a merge: develop → main 2026-04-06 05:51:21 +08:00