@igorlau/dotagents 1.0.0 → 1.0.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/README.md CHANGED
@@ -13,6 +13,16 @@ command:
13
13
  npx --yes @igorlau/dotagents install
14
14
  ```
15
15
 
16
+ `npx` runs dotagents without installing it. To run `dotagents` as a command
17
+ in any terminal, install it globally:
18
+
19
+ ```bash
20
+ npm install --global @igorlau/dotagents
21
+ ```
22
+
23
+ To upgrade a global install, run
24
+ `npm install --global @igorlau/dotagents@latest`.
25
+
16
26
  ## Use dotagents in a repository
17
27
 
18
28
  The global install covers every project, including team repositories, and
@@ -1 +1 @@
1
- {"commit":"cd51a6a"}
1
+ {"commit":"b878f11"}
package/dist/targets.js CHANGED
@@ -3,7 +3,6 @@ import { agentsHome, claudeHome, codexHome, copilotHome } from "./paths.js";
3
3
  export const AGENTS = ["claude", "codex", "copilot"];
4
4
  const HEADER = "<!-- Managed by dotagents. Run `dotagents update` instead of editing this file. -->";
5
5
  const RULES_FILE = "dotagents.md";
6
- const COPILOT_RULES_FILE = "dotagents.instructions.md";
7
6
  function layout(mode, root) {
8
7
  if (mode === "global") {
9
8
  return {
@@ -14,7 +13,9 @@ function layout(mode, root) {
14
13
  },
15
14
  claudeRules: path.join(claudeHome(), "rules", RULES_FILE),
16
15
  codexRules: path.join(codexHome(), "AGENTS.md"),
17
- copilotRules: { kind: "file", path: path.join(copilotHome(), "instructions", COPILOT_RULES_FILE) },
16
+ // Copilot loads this file in every session; files in ~/.copilot/instructions/
17
+ // load only when their applyTo pattern matches a file being edited.
18
+ copilotRules: path.join(copilotHome(), "copilot-instructions.md"),
18
19
  };
19
20
  }
20
21
  // Copilot reads AGENTS.md too, so both agents share one block.
@@ -27,7 +28,7 @@ function layout(mode, root) {
27
28
  },
28
29
  claudeRules: path.join(root, ".claude", "rules", RULES_FILE),
29
30
  codexRules: agentsMd,
30
- copilotRules: { kind: "block", path: agentsMd },
31
+ copilotRules: agentsMd,
31
32
  };
32
33
  }
33
34
  export function planInstall(catalog, mode, agents, root = "") {
@@ -52,13 +53,8 @@ export function planInstall(catalog, mode, agents, root = "") {
52
53
  }
53
54
  if (agents.includes("codex"))
54
55
  add({ kind: "block", path: target.codexRules, content: rules });
55
- if (agents.includes("copilot")) {
56
- const { kind, path: rulesPath } = target.copilotRules;
57
- if (kind === "block")
58
- add({ kind, path: rulesPath, content: rules });
59
- else
60
- add({ kind, path: rulesPath, content: `---\napplyTo: "**"\n---\n\n${HEADER}\n\n${rules}\n` });
61
- }
56
+ if (agents.includes("copilot"))
57
+ add({ kind: "block", path: target.copilotRules, content: rules });
62
58
  return [...ops.values()];
63
59
  }
64
60
  export function parseAgents(value) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@igorlau/dotagents",
3
- "version": "1.0.0",
3
+ "version": "1.0.8",
4
4
  "description": "Install a curated set of agent skills and rules into Claude Code, Codex, and GitHub Copilot.",
5
5
  "license": "MIT",
6
6
  "repository": {