crewkit 1.1.6 → 1.1.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/detect.js +2 -2
- package/src/install.js +7 -8
package/package.json
CHANGED
package/src/detect.js
CHANGED
|
@@ -12,8 +12,8 @@ export function detectTools() {
|
|
|
12
12
|
}
|
|
13
13
|
|
|
14
14
|
if (existsSync(join(home, '.copilot'))) {
|
|
15
|
-
const dest = join(home, '.copilot', '
|
|
16
|
-
tools.push({ id: 'copilot', name: 'GitHub Copilot', dest, versionFile: join(dest, '
|
|
15
|
+
const dest = join(home, '.copilot', 'skills', 'crewkit-setup');
|
|
16
|
+
tools.push({ id: 'copilot', name: 'GitHub Copilot', dest, versionFile: join(dest, '.version') });
|
|
17
17
|
}
|
|
18
18
|
|
|
19
19
|
return tools;
|
package/src/install.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { cpSync, mkdirSync, readFileSync, writeFileSync
|
|
1
|
+
import { cpSync, mkdirSync, readFileSync, writeFileSync } from 'node:fs';
|
|
2
2
|
import { join, dirname } from 'node:path';
|
|
3
3
|
import { fileURLToPath } from 'node:url';
|
|
4
4
|
import { detectTools } from './detect.js';
|
|
@@ -20,13 +20,13 @@ function installClaude(target, version) {
|
|
|
20
20
|
console.log(` Run /crewkit-setup in any project\n`);
|
|
21
21
|
}
|
|
22
22
|
|
|
23
|
-
function
|
|
24
|
-
const
|
|
23
|
+
function installCopilot(target, version) {
|
|
24
|
+
const skillSource = join(__dirname, '..', 'skill');
|
|
25
25
|
mkdirSync(target.dest, { recursive: true });
|
|
26
|
-
|
|
26
|
+
cpSync(skillSource, target.dest, { recursive: true, force: true });
|
|
27
27
|
writeFileSync(target.versionFile, version, 'utf8');
|
|
28
|
-
console.log(` ✓
|
|
29
|
-
console.log(`
|
|
28
|
+
console.log(` ✓ GitHub Copilot → ${target.dest}`);
|
|
29
|
+
console.log(` Use @crewkit-setup in Copilot CLI or Chat\n`);
|
|
30
30
|
}
|
|
31
31
|
|
|
32
32
|
export async function install() {
|
|
@@ -53,8 +53,7 @@ export async function install() {
|
|
|
53
53
|
installClaude(target, version);
|
|
54
54
|
break;
|
|
55
55
|
case 'copilot':
|
|
56
|
-
|
|
57
|
-
'GitHub Copilot ', 'Use @crewkit-setup in Copilot CLI or Chat', version);
|
|
56
|
+
installCopilot(target, version);
|
|
58
57
|
break;
|
|
59
58
|
}
|
|
60
59
|
}
|