Commit Graph
5 Commits
Author SHA1 Message Date
Nashchenncandautofix-ci[bot] bf41655dbb feat(core-agent): extract pure runtime logic from stage-ui into core-agent (#1524)
Depends on #1487 

## Summary

- Introduce `packages/core-agent` — a new pure-runtime package that
extracts zero-Vue/Pinia algorithmic logic from `@proj-airi/stage-ui`,
following a "compatible facade + core sinking" strategy
- Migrate shared chat types, LLM streaming types, chat hook registry,
session message merge logic, context registry algorithm, and LLM service
utilities into `core-agent`
- `stage-ui` files are preserved as re-exports / thin wrappers — all
external imports, store IDs, and public APIs remain unchanged

## Motivation

`stage-ui` currently mixes pure agent runtime logic (algorithms, type
definitions, stateless utilities) with Vue/Pinia state management and
browser-specific adapters. This coupling makes it hard to:
- Test agent logic in isolation
- Reuse agent algorithms outside of Vue contexts (e.g., server-side,
CLI, other frameworks)
- Reason about the boundary between "what the agent does" vs "how the UI
manages state"

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by-agent: Unknown <unknown@example.com>
2026-04-16 16:09:22 +08:00
Nashchennc 933ef01b10 test(stage-ui): add contract test (#1487) 2026-04-11 00:49:13 +08:00
Nashchennc 342250e2fc chore(docs): reorganize content (#1170) 2026-03-08 18:43:40 +08:00
Nashchennc 6d3bde1586 refactor(satori-bot): migrate persistence to adapter (#1155) 2026-03-06 13:44:53 +08:00
Nashchennc 5b1e6ead18 refactor(satori-bot): implement dispatcher-centric action registry (#1029) 2026-02-17 02:11:31 +08:00