You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 7aefc29
Browse filesBrowse the repository at this point in the historyBrowse files
refactor: migrate LLM, MCP, and tool layers to AI SDK (#226)
* fix(site): repair site:dev and allowBuilds placeholders
The root site:* scripts filtered a workspace package (@memo-code/site)
that does not exist - site is a standalone pnpm project. Switch to
pnpm --dir site, matching the deploy workflow. Also fill in the
allowBuilds placeholders in site/pnpm-workspace.yaml that pnpm 11
rejected (native binaries for next dev/build).
* feat(core): raise default auto-compact threshold to 90%
Align with Codex: compact at 90% of the context window instead of 80%,
so the effective context before compaction grows while the hard limit
still sits at 100%.
* fix(core): stop truncating every message in compaction requests
The per-message 4k-char truncation cut most tool outputs (file contents,
search results, command output) out of the compaction request, so the
summary lost the actual work done - plans, decisions, and context. After
compaction the model had to re-explore from scratch.
Now only the budget selector limits the request: it drops the oldest
messages to fit the window, and only truncates a single message when it
alone exceeds the budget (tail kept). Normal transcripts reach the
compaction model in full, including update_plan tool results, so the
plan survives into the summary.
* feat(core): default context window to 1M tokens
DeepSeek-V4 (pro/flash) supports a 1M-token context window, which the
120k default underused by 8x. Models with a smaller real window can
still override via model_profiles context_window; the hard limit check
and 90% auto-compact threshold scale with the configured window.
* feat: agent fork/registry/status modules and site docs overhaul
Core: add fork (spawn child sessions with filtered history), agent
registry (name lookup for collaboration), communication (subagent
messaging), and status (agent state) modules, wiring them through
withDefaultDeps via createChildHistory.
Site: restructure docs (project-guide replaces soul, drop web-console),
refresh en/zh guides, components, and i18n messages.
* refactor(tui): drop runtime context window restore
Context window is decided by config/defaults only: remove the session
history round-trip (record in session_start, parse back, restore into
the session options) that let a restored session override the
configured window. Provider, model, thinking, and tool permission mode
restore stay.
* feat: add in-process multi-agent runtime
* fix(tui): show only active sub-agent status
* fix(core): allow safe absolute apply_patch paths
* docs: refresh project overview
* fix(core): address security audit findings
- deps: minimatch 10.2.6, brace-expansion 5.0.9, picomatch 2.3.2, undici 6.28.0
- oauth: escape callback error text; use PowerShell for Windows URL opening
- exec: 16 MiB output cap with process kill; free completed session buffers
- fs: 50 MiB read cap, 10 MiB media cap
- history: owner-only session file permissions
* fix: regenerate lockfile with pnpm 9 for CI compatibility
* style: apply oxfmt formatting to oauth.ts
0 commit comments