@igorlau/dotagents 1.0.7 → 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/dist/build-info.json +1 -1
- package/dist/targets.js +6 -10
- package/package.json +1 -1
package/dist/build-info.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"commit":"
|
|
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
|
-
|
|
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:
|
|
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
|
-
|
|
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) {
|