@microsoft/agentrc 2.0.1-91 → 2.0.1-92

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.
@@ -16,6 +16,27 @@ The hub should contain:
16
16
  - Coding conventions and guardrails
17
17
  - A "## Detailed Instructions" section listing links to detail files
18
18
 
19
+ ## Root Context
20
+
21
+ The prompt may include a `## Root instructions already cover` section containing the workspace-wide content from the root instruction file. That content is already loaded by AI agents from the root file:
22
+
23
+ - **Do NOT repeat or restate it** — not as prose, not as bullets, not as paraphrased summaries.
24
+ - **Cover only this area/crate's unique details** that are not addressed by the root file.
25
+ - If a topic is covered at the root, reference it with a single link (e.g. `See [AGENTS.md](../../AGENTS.md)`).
26
+
27
+ ## Area / Crate Hubs
28
+
29
+ When generating a hub for a specific area or crate, include **only crate-unique context**:
30
+
31
+ - Crate purpose and summary
32
+ - File structure → responsibility mapping
33
+ - Crate-specific conventions (e.g. binary resolution, auth patterns, helper APIs)
34
+ - Internal consumers / dependencies (only if non-obvious)
35
+
36
+ Everything that applies workspace-wide — workspace dependencies, error types, logging conventions, testing setup, and standard build/test commands — lives exclusively in the root instruction file and must **not** be duplicated here.
37
+
38
+ Use a simple heading that matches the component, e.g. `# <crate> crate`. Do **not** use a "Copilot Instructions:" heading for AGENTS.md files.
39
+
19
40
  ## Topic Recommendations
20
41
 
21
42
  At the **end** of your output, emit a fenced JSON block with recommended topics for detail files:
@@ -37,7 +58,7 @@ Recommend 3-5 topics that would benefit from deep-dive detail files. Each slug b
37
58
 
38
59
  - Keep the hub **lean** — overview and guardrails only, details go in separate files
39
60
  - The JSON block will be parsed and removed from the final output
40
- - Do **not** duplicate content from existing instruction files
61
+ - Do **not** duplicate content from existing instruction files or the root instruction content
41
62
 
42
63
  ## Output Contract
43
64
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@microsoft/agentrc",
3
- "version": "2.0.1-91",
3
+ "version": "2.0.1-92",
4
4
  "description": "Set up repositories for AI-assisted development",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",
@@ -23,13 +23,15 @@
23
23
  "typecheck": "tsc -p tsconfig.json --noEmit",
24
24
  "test": "vitest run",
25
25
  "test:watch": "vitest",
26
- "test:coverage": "vitest run --coverage"
26
+ "test:coverage": "vitest run --coverage",
27
+ "workflows:compile": "gh aw compile --fix --approve --actionlint --no-check-update",
28
+ "workflows:check": "gh aw compile --fail-fast --actionlint --no-check-update && git diff --exit-code -- .gitattributes .github/aw .github/workflows"
27
29
  },
28
30
  "keywords": [],
29
31
  "author": "",
30
32
  "license": "MIT",
31
33
  "dependencies": {
32
- "@github/copilot-sdk": "^0.2.0",
34
+ "@github/copilot-sdk": "0.2.0",
33
35
  "@inquirer/prompts": "^8.2.1",
34
36
  "@octokit/rest": "^22.0.1",
35
37
  "chalk": "^5.6.2",
@@ -64,5 +66,8 @@
64
66
  "tsx": "^4.21.0",
65
67
  "typescript": "^6.0.2",
66
68
  "vitest": "^4.0.18"
69
+ },
70
+ "overrides": {
71
+ "@github/copilot": "1.0.10"
67
72
  }
68
73
  }