merge: integrate upstream main with local Makelore changes

This commit is contained in:
inman
2026-08-31 10:55:48 +08:00
128 changed files with 8278 additions and 3030 deletions

View File

@@ -55,6 +55,25 @@ describe('managed Pi extension bridge', () => {
await Promise.all(registrations.map(({ dispose }) => dispose()));
});
it('passes the project root to the managed extension', async () => {
const root = await mkdtemp(path.join(tmpdir(), 'makelore-pi-extension-project-'));
roots.push(root);
const projectPath = path.join(root, 'project');
const host = new PiManagedExtensionHost();
hosts.push(host);
const registration = await host.registerWorker({
conversationId: 'conversation-project',
generation: 1,
projectId: 'project-a',
projectPath,
extensionsDir: root,
});
expect(registration.env.MAKELORE_PI_PROJECT_PATH).toBe(projectPath);
await registration.dispose();
});
it('finishes a queued HTTP request while closing a holder and waiter', async () => {
const root = await mkdtemp(path.join(tmpdir(), 'makelore-pi-extension-close-'));
roots.push(root);