feat: add Pi subagent scheduler and child runtime

This commit is contained in:
2026-08-23 12:40:22 +08:00
parent b806c78139
commit f1c7cd8ad4
21 changed files with 1986 additions and 53 deletions

View File

@@ -170,6 +170,20 @@ describe('Pi worker process', () => {
'read,bash,edit,write,grep,find,ls,ask_user',
'--model', 'model-a',
]);
expect(buildPiRpcArgs('sessions', ['--no-session'], ['read', 'grep', 'find', 'ls']))
.toEqual([
'--mode', 'rpc',
'--offline',
'--session-dir', 'sessions',
'--no-extensions',
'--no-skills',
'--no-prompt-templates',
'--no-themes',
'--no-context-files',
'--no-approve',
'--tools', 'read,grep,find,ls',
'--no-session',
]);
});
it('correlates out-of-order responses, dispatches events, and reassembles partial lines', async () => {