@open-agent-toolkit/cli 0.0.59 → 0.0.60

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.
@@ -25,6 +25,7 @@ description: 'Provider-specific path mappings for Claude, Cursor, Copilot, Gemin
25
25
  - Project: `.agents/skills` -> `.github/skills`, `.agents/agents` -> `.github/agents`, `.agents/rules` -> `.github/instructions`
26
26
  - User: `~/.agents/skills` -> `~/.copilot/skills`, `~/.agents/agents` -> `~/.copilot/agents`
27
27
  - Rule files render as `.github/instructions/*.instructions.md`
28
+ - Canonical always-on rules render with `applyTo: "**"` so Copilot activates them repo-wide; provider rules with exactly `applyTo: "**"` adopt back to `activation: always`
28
29
  - Comma-containing globs are not supported for Copilot rule sync because Copilot uses a comma-separated `applyTo` field
29
30
 
30
31
  === "Gemini"
@@ -1,6 +1,6 @@
1
1
  {
2
- "cli": "0.0.59",
3
- "docs-config": "0.0.59",
4
- "docs-theme": "0.0.59",
5
- "docs-transforms": "0.0.59"
2
+ "cli": "0.0.60",
3
+ "docs-config": "0.0.60",
4
+ "docs-theme": "0.0.60",
5
+ "docs-transforms": "0.0.60"
6
6
  }
@@ -1 +1 @@
1
- {"version":3,"file":"rule-transform.d.ts","sourceRoot":"","sources":["../../../src/providers/copilot/rule-transform.ts"],"names":[],"mappings":"AAkDA,wBAAgB,+BAA+B,CAC7C,gBAAgB,EAAE,MAAM,EACxB,aAAa,CAAC,EAAE,MAAM,GACrB,MAAM,CAqBR;AAED,wBAAgB,2BAA2B,CAAC,eAAe,EAAE,MAAM,GAAG,MAAM,CAa3E"}
1
+ {"version":3,"file":"rule-transform.d.ts","sourceRoot":"","sources":["../../../src/providers/copilot/rule-transform.ts"],"names":[],"mappings":"AAsDA,wBAAgB,+BAA+B,CAC7C,gBAAgB,EAAE,MAAM,EACxB,aAAa,CAAC,EAAE,MAAM,GACrB,MAAM,CA4BR;AAED,wBAAgB,2BAA2B,CAAC,eAAe,EAAE,MAAM,GAAG,MAAM,CAa3E"}
@@ -29,6 +29,9 @@ function parseApplyTo(value) {
29
29
  .filter(Boolean);
30
30
  return globs.length > 0 ? globs : undefined;
31
31
  }
32
+ function isRepoWideApplyTo(globs) {
33
+ return globs?.length === 1 && globs[0] === '**';
34
+ }
32
35
  export function transformCanonicalToCopilotRule(canonicalContent, canonicalPath) {
33
36
  const rule = parseCanonicalRuleMarkdown(canonicalContent);
34
37
  if (rule.activation === 'glob' && rule.globs) {
@@ -41,9 +44,16 @@ export function transformCanonicalToCopilotRule(canonicalContent, canonicalPath)
41
44
  : {}),
42
45
  applyTo: rule.globs.join(','),
43
46
  }
44
- : rule.description !== undefined
45
- ? { description: rule.description }
46
- : null;
47
+ : rule.activation === 'always'
48
+ ? {
49
+ ...(rule.description !== undefined
50
+ ? { description: rule.description }
51
+ : {}),
52
+ applyTo: '**',
53
+ }
54
+ : rule.description !== undefined
55
+ ? { description: rule.description }
56
+ : null;
47
57
  return appendGeneratedMarker(renderMarkdownWithFrontmatter(frontmatter, rule.body), canonicalPath);
48
58
  }
49
59
  export function parseCopilotRuleToCanonical(providerContent) {
@@ -52,7 +62,7 @@ export function parseCopilotRuleToCanonical(providerContent) {
52
62
  const globs = parseApplyTo(frontmatter?.applyTo);
53
63
  return renderCanonicalRuleMarkdown({
54
64
  ...(description !== undefined ? { description } : {}),
55
- ...(globs !== undefined ? { globs } : {}),
56
- activation: globs ? 'glob' : 'always',
65
+ ...(globs !== undefined && !isRepoWideApplyTo(globs) ? { globs } : {}),
66
+ activation: globs && !isRepoWideApplyTo(globs) ? 'glob' : 'always',
57
67
  }, body);
58
68
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@open-agent-toolkit/cli",
3
- "version": "0.0.59",
3
+ "version": "0.0.60",
4
4
  "private": false,
5
5
  "description": "Open Agent Toolkit CLI",
6
6
  "homepage": "https://github.com/voxmedia/open-agent-toolkit/tree/main/packages/cli",
@@ -33,7 +33,7 @@
33
33
  "ora": "^9.0.0",
34
34
  "yaml": "2.8.2",
35
35
  "zod": "^3.25.76",
36
- "@open-agent-toolkit/control-plane": "0.0.59"
36
+ "@open-agent-toolkit/control-plane": "0.0.60"
37
37
  },
38
38
  "devDependencies": {
39
39
  "@types/node": "^22.10.0",