Merge remote-tracking branch 'origin/feat/send-unify' into xtr/agent-loop-message-machine

This commit is contained in:
_Kerman
2026-07-24 16:31:49 +08:00
162 changed files with 5245 additions and 2329 deletions
@@ -76,6 +76,7 @@ async function bench() {
manager: { get: () => sessionFake },
scope: (id: SessionId) => mint(id),
cell: () => undefined,
scopeOf,
create: vi.fn(() => Promise.resolve(ROOT)),
open: vi.fn(),
}
@@ -67,6 +67,7 @@ async function bench(opts?: { sessions?: boolean }) {
create: createMock,
open: openMock,
scope: (id: SessionId) => (id === sid('new-1') ? mint(id) : scopes.get(id)),
scopeOf,
} as unknown as SessionsService
if (opts?.sessions !== false) ctx.provide('sessions', sessionsFake)
// Class-plugin mount — the same form apply.ts uses in production.