Skip to content

Commit 84c5225

Browse files
author
Chris DiPesa
committed
feat(update-automation): harden ui-summary contracts and selector matching
add strict schema-contract tests for checker/apply ui-summary payloads (exact key assertions for IDE consumers) expand selector grammar to support exact:, prefix:, and regex: in both check and apply flows add selector grammar test coverage, including invalid regex handling and include/exclude interactions add a compact end-user update command reference to README with selector examples validate with: npm run plugin:test-resource-updates
1 parent 23fb700 commit 84c5225

8 files changed

Lines changed: 10038 additions & 1 deletion

.github/plugin/update-index.json

Lines changed: 8243 additions & 0 deletions
Large diffs are not rendered by default.

AGENTS.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,18 @@ npm run plugin:validate
4141
# Generate marketplace.json only
4242
npm run plugin:generate-marketplace
4343

44+
# Generate update index used by update automation
45+
npm run plugin:generate-update-index
46+
47+
# Check update status for installed .github resources
48+
npm run plugin:check-resource-updates
49+
50+
# Apply updates safely (skip unknown drift by default)
51+
npm run plugin:apply-resource-updates
52+
53+
# Force apply updates even when baseline is missing
54+
npm run plugin:apply-resource-updates:force
55+
4456
# Create a new plugin
4557
npm run plugin:create -- --name <plugin-name>
4658

@@ -164,6 +176,9 @@ When adding a new agent, instruction, skill, hook, workflow, or plugin:
164176
npm run plugin:validate
165177
npm run skill:validate
166178

179+
# Validate update check/apply automation behavior
180+
npm run plugin:test-resource-updates
181+
167182
# Build and verify README generation
168183
npm run build
169184

README.md

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,49 @@ copilot plugin marketplace add github/awesome-copilot
4545
copilot plugin install <plugin-name>@awesome-copilot
4646
```
4747

48+
## Update Commands
49+
50+
Use these commands to check and apply updates for installed resources in `.github/agents`, `.github/instructions`, and `.github/skills`.
51+
52+
```bash
53+
# Build or refresh the update index
54+
npm run plugin:generate-update-index
55+
56+
# Check for updates (full JSON report)
57+
npm run plugin:check-resource-updates
58+
59+
# Check for updates (IDE-oriented compact summary)
60+
npm run plugin:check-resource-updates:ui
61+
62+
# Apply safe updates (skips unknown drift by default)
63+
npm run plugin:apply-resource-updates
64+
65+
# Apply updates with compact IDE summary
66+
npm run plugin:apply-resource-updates:ui
67+
68+
# Force apply when managed baseline is missing
69+
npm run plugin:apply-resource-updates:force
70+
```
71+
72+
Selector examples:
73+
74+
```bash
75+
# Only agents
76+
npm run plugin:check-resource-updates -- --include "type:agent"
77+
78+
# Exact match
79+
npm run plugin:check-resource-updates -- --include "exact:agent/debug"
80+
81+
# Prefix match
82+
npm run plugin:check-resource-updates -- --include "prefix:agent/"
83+
84+
# Regex match
85+
npm run plugin:check-resource-updates -- --include "regex:^agent/(debug|janitor)$"
86+
87+
# Exclude a known item while applying
88+
npm run plugin:apply-resource-updates -- --include "prefix:agent/" --exclude "exact:agent/debug"
89+
```
90+
4891
## Contributing
4992

5093
See [CONTRIBUTING.md](CONTRIBUTING.md) · [AGENTS.md](AGENTS.md) for AI agent guidance · [Security](SECURITY.md) · [Code of Conduct](CODE_OF_CONDUCT.md)

0 commit comments

Comments
 (0)