Commit graph

3 commits

Author SHA1 Message Date
haozhe.yang
5fece98c91 refactor(agent-core-v2): group src domains by lifecycle scope
Move src/{domain}/* to src/{scope}/{domain}/* (app/session/agent) so the
directory layout mirrors the DI LifecycleScope tree. Split the three
multi-scope domains so no domain spans two scopes:

- log      -> app/log + session/sessionLog
- question -> session/question + agent/questionTools
- skill    -> app/globalSkillCatalog + session/sessionSkillCatalog + agent/skill

Rewrite every #/ and relative import, module augmentation, vi.mock, and
source-path read; update the package barrel, registerScopedService domain
labels, the domain-layer checker, the dep-graph script, file headers, and
the di-scope-domains map.
2026-07-01 15:11:49 +08:00
haozhe.yang
cc3422c77a feat(agent-core-v2): add plugin management and consumption plane
- parse kimi.plugin.json / .kimi-plugin/plugin.json manifests
  (skills, sessionStart, mcpServers, hooks, commands)
- install plugins from local paths, zip URLs, and GitHub refs via
  the manager, store, source, archive, and github-resolver modules
- load plugin slash commands from .md files with $ARGUMENTS expansion
- register IPluginService/PluginService (App scope) exposing management
  plus consumption planes: skill roots, session starts, MCP servers, hooks
- add session-start context injector and RPC prompt metadata
- cover manifest, manager, source, archive, github-resolver, commands,
  and session-start injection with tests
2026-07-01 11:52:35 +08:00
haozhe.yang
7c2bcc14c6 refactor(agent-core-v2): tighten DI instantiation and domain layering
- expand domain-layer map and add L3/L4 type-sharing exceptions
- resolve bare domain imports (e.g. `#/turn`) via targetDomainOf
- add `_serviceBrand` to externalHooks/permissionMode/permissionRules/profile services
- mark injected constructor deps private readonly (cron/flag/goal)
- build permission policies via instantiation.createInstance
- add HookSlot.run and a cross-package `#/` import resolver for vitest
- reorganize tests, add config/permissionRules/sessionStore coverage, drop legacy records tests
2026-06-26 13:14:37 +08:00