Skip to content

Commit 29c540e

Browse files
committed
fix: Link harperdb after installing
1 parent b62f4ac commit 29c540e

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

lib/install.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,4 +46,10 @@ export function install(root, agent, selectedSkills = [], selectedAgents = []) {
4646
stdio: 'inherit',
4747
cwd: root,
4848
});
49+
50+
prompts.log.step(`Linking harperdb with ${agent}...`);
51+
run([agent, 'link', 'harperdb'], {
52+
stdio: 'inherit',
53+
cwd: root,
54+
});
4955
}

lib/install.test.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,11 @@ describe('install', () => {
2121
stdio: 'inherit',
2222
cwd: '/root',
2323
});
24+
expect(prompts.log.step).toHaveBeenCalledWith('Linking harperdb with npm...');
25+
expect(run).toHaveBeenCalledWith(['npm', 'link', 'harperdb'], {
26+
stdio: 'inherit',
27+
cwd: '/root',
28+
});
2429
expect(prompts.log.step).toHaveBeenCalledWith('Installing Harper skills...');
2530
expect(run).toHaveBeenCalledWith(
2631
['npx', '-y', 'skills', 'add', 'harperfast/skills', '--skill', '*', '--yes'],

0 commit comments

Comments
 (0)