feat: add zed install target

This commit is contained in:
Affaan Mustafa
2026-05-17 07:06:49 -04:00
parent fb6d4a7104
commit 2371a3cf05
17 changed files with 361 additions and 37 deletions

View File

@@ -280,6 +280,32 @@ function runTests() {
);
})) passed++; else failed++;
if (test('resolves Zed minimal profile with project settings and without hooks', () => {
const projectRoot = '/workspace/zed-app';
const plan = resolveInstallPlan({
profileId: 'minimal',
target: 'zed',
projectRoot,
});
assert.deepStrictEqual(
plan.selectedModuleIds,
['rules-core', 'agents-core', 'commands-core', 'platform-configs', 'workflow-quality']
);
assert.deepStrictEqual(plan.skippedModuleIds, []);
assert.strictEqual(plan.targetAdapterId, 'zed-project');
assert.strictEqual(plan.targetRoot, path.join(projectRoot, '.zed'));
assert.ok(
plan.operations.some(operation => operation.sourceRelativePath === '.zed'),
'Should install Zed native project settings'
);
assert.ok(
!plan.selectedModuleIds.includes('hooks-runtime')
&& !plan.operations.some(operation => operation.moduleId === 'hooks-runtime'),
'Zed minimal profile should not install hook runtime files'
);
})) passed++; else failed++;
if (test('resolves machine-learning component with workflow dependencies', () => {
const plan = resolveInstallPlan({
includeComponentIds: ['capability:machine-learning'],