mirror of
https://github.com/moeru-ai/airi.git
synced 2026-11-29 10:56:17 +00:00
## Summary
Ships Host-owned Computer Use and Terminal for Stage Tamagotchi, plus
conversation Compact and a Context Inspector for send projections.
- Bundled MCP runs under Main approval and Turbo.
- Compact schedules when the soft budget is crossed.
- Context Inspector shows the last projected send by section.
This PR also carries related analytics and dependency sync from earlier
rebase work. Those are not the review focus.
## Context
- Request: Land Computer Use MCP, Terminal approval, Compact, and
Context Inspector on current `main`, clear review findings that block
honest execution state, and keep the PR reviewable.
- Scenario: Tamagotchi chat can observe and change the desktop or run
Terminal commands through the Host, with approval or Turbo.
- Scope: Do not treat this as ready for merge yet. Known product limits
stay documented below. Follow-up can harden budgets and Linux executors.
- Source: https://github.com/moeru-ai/airi/pull/3496
## Known limits
These are current product limits on this branch. They are recorded for
review clarity. They are not a demand that maintainers accept them as
final product policy.
| Limit | Behavior now |
| --- | --- |
| Conversation Compact | Soft limit only. Crossing it schedules Compact.
Sends are not hard-rejected. |
| MCP session budget | Default `maxOperations` is 80. The session
counter does not renew. |
| Turbo | No TTL. It stays on for that chat window and session until the
user turns it off. |
| Linux bundled executor | Non-Windows, non-macOS hosts use `dry-run`.
Actions report `performed: false` and do not touch the desktop. |
## Change map
| Module | Before | After | Description |
| --- | --- | --- | --- |
| `services/computer-use-mcp` | Separate service surface | Bundled Host
tools with policy and Terminal lanes | Owns prepare, approve, execute,
and session budget |
| `apps/stage-tamagotchi` Main MCP host | External Terminal assumptions
| Bundled Terminal plus Computer Use approval | Picks platform executor,
binds approvals, returns `doNotReplay` after dispatch failures |
| `packages/stage-ui` chat / tools | Send-only Host admission | Rerun
hooks and MCP exposure defaults | Host can admit a rerun under a fresh
turn id |
| `packages/core-agent` Compact | Soft budget helpers | Soft Compact
scheduling kept | Hard reject is out of scope for this PR |
| Context Inspector | None | Last-send projection breakdown | Tamagotchi
chat can inspect projected sections |
## Verification
- Head `
|
||
|---|---|---|
| .. | ||
| gateway-tool-result | ||
| sponsorkit | ||
| audit-ui-components.mjs | ||
| build-airi-docs.sh | ||
| list-module-loc.mjs | ||