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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "crewkit",
3
- "version": "1.1.6",
3
+ "version": "1.1.8",
4
4
  "description": "Context engineering framework for AI-assisted development. One command to set up agents, skills, hooks, rules, and memory for your project.",
5
5
  "type": "module",
6
6
  "bin": {
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', 'agents');
16
- tools.push({ id: 'copilot', name: 'GitHub Copilot', dest, versionFile: join(dest, 'crewkit-setup.version') });
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, copyFileSync } from 'node:fs';
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 installSingleFile(target, templateFile, outputFile, label, hint, version) {
24
- const template = join(__dirname, '..', 'skill', templateFile);
23
+ function installCopilot(target, version) {
24
+ const skillSource = join(__dirname, '..', 'skill');
25
25
  mkdirSync(target.dest, { recursive: true });
26
- copyFileSync(template, join(target.dest, outputFile));
26
+ cpSync(skillSource, target.dest, { recursive: true, force: true });
27
27
  writeFileSync(target.versionFile, version, 'utf8');
28
- console.log(` ✓ ${label} → ${join(target.dest, outputFile)}`);
29
- console.log(` ${hint}\n`);
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
- installSingleFile(target, 'copilot-agent.md', 'crewkit-setup.md',
57
- 'GitHub Copilot ', 'Use @crewkit-setup in Copilot CLI or Chat', version);
56
+ installCopilot(target, version);
58
57
  break;
59
58
  }
60
59
  }