merge: integrate upstream main with local Makelore changes
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user