@tjdals12/agent-bolt 1.4.0 → 1.5.0

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.
Files changed (86) hide show
  1. package/README.ko.md +86 -8
  2. package/README.md +86 -8
  3. package/dist/catalog/commands/catalog/new/new-guideline.d.ts.map +1 -1
  4. package/dist/catalog/commands/catalog/new/new-guideline.js +1 -0
  5. package/dist/catalog/commands/catalog/new/new-guideline.js.map +1 -1
  6. package/dist/catalog/commands/catalog/validate-catalog.d.ts.map +1 -1
  7. package/dist/catalog/commands/catalog/validate-catalog.js +20 -6
  8. package/dist/catalog/commands/catalog/validate-catalog.js.map +1 -1
  9. package/dist/catalog/commands/show-item.d.ts +6 -0
  10. package/dist/catalog/commands/show-item.d.ts.map +1 -1
  11. package/dist/catalog/commands/show-item.js +2 -1
  12. package/dist/catalog/commands/show-item.js.map +1 -1
  13. package/dist/catalog/commands/sync.d.ts +6 -2
  14. package/dist/catalog/commands/sync.d.ts.map +1 -1
  15. package/dist/catalog/commands/sync.js +29 -4
  16. package/dist/catalog/commands/sync.js.map +1 -1
  17. package/dist/catalog/config/schema.d.ts +20 -0
  18. package/dist/catalog/config/schema.d.ts.map +1 -1
  19. package/dist/catalog/config/schema.js +5 -0
  20. package/dist/catalog/config/schema.js.map +1 -1
  21. package/dist/catalog/content/item/find-detail.d.ts.map +1 -1
  22. package/dist/catalog/content/item/find-detail.js +1 -0
  23. package/dist/catalog/content/item/find-detail.js.map +1 -1
  24. package/dist/catalog/content/item/model.d.ts +2 -4
  25. package/dist/catalog/content/item/model.d.ts.map +1 -1
  26. package/dist/catalog/content/item/parse-summary.d.ts.map +1 -1
  27. package/dist/catalog/content/item/parse-summary.js +1 -0
  28. package/dist/catalog/content/item/parse-summary.js.map +1 -1
  29. package/dist/catalog/content/item/schema.d.ts +7 -0
  30. package/dist/catalog/content/item/schema.d.ts.map +1 -1
  31. package/dist/catalog/content/item/schema.js +2 -0
  32. package/dist/catalog/content/item/schema.js.map +1 -1
  33. package/dist/catalog/install/adapters/claude.adapter.d.ts.map +1 -1
  34. package/dist/catalog/install/adapters/claude.adapter.js +35 -6
  35. package/dist/catalog/install/adapters/claude.adapter.js.map +1 -1
  36. package/dist/catalog/install/adapters/codex.adapter.d.ts.map +1 -1
  37. package/dist/catalog/install/adapters/codex.adapter.js +22 -1
  38. package/dist/catalog/install/adapters/codex.adapter.js.map +1 -1
  39. package/dist/catalog/install/adapters/copilot.adapter.d.ts.map +1 -1
  40. package/dist/catalog/install/adapters/copilot.adapter.js +39 -3
  41. package/dist/catalog/install/adapters/copilot.adapter.js.map +1 -1
  42. package/dist/catalog/install/adapters/cursor.adapter.d.ts.map +1 -1
  43. package/dist/catalog/install/adapters/cursor.adapter.js +38 -11
  44. package/dist/catalog/install/adapters/cursor.adapter.js.map +1 -1
  45. package/dist/catalog/install/adapters/opencode.adapter.d.ts.map +1 -1
  46. package/dist/catalog/install/adapters/opencode.adapter.js +22 -1
  47. package/dist/catalog/install/adapters/opencode.adapter.js.map +1 -1
  48. package/dist/catalog/install/apply.d.ts.map +1 -1
  49. package/dist/catalog/install/apply.js +21 -1
  50. package/dist/catalog/install/apply.js.map +1 -1
  51. package/dist/catalog/install/diff.d.ts.map +1 -1
  52. package/dist/catalog/install/diff.js +18 -1
  53. package/dist/catalog/install/diff.js.map +1 -1
  54. package/dist/catalog/install/lockfile/items.d.ts +1 -1
  55. package/dist/catalog/install/lockfile/items.d.ts.map +1 -1
  56. package/dist/catalog/install/lockfile/items.js +16 -4
  57. package/dist/catalog/install/lockfile/items.js.map +1 -1
  58. package/dist/catalog/install/managed-block/group.d.ts.map +1 -1
  59. package/dist/catalog/install/managed-block/group.js +18 -1
  60. package/dist/catalog/install/managed-block/group.js.map +1 -1
  61. package/dist/catalog/install/managed-block/render.d.ts +1 -0
  62. package/dist/catalog/install/managed-block/render.d.ts.map +1 -1
  63. package/dist/catalog/install/managed-block/render.js +3 -0
  64. package/dist/catalog/install/managed-block/render.js.map +1 -1
  65. package/dist/catalog/install/model.d.ts +12 -0
  66. package/dist/catalog/install/model.d.ts.map +1 -1
  67. package/dist/catalog/install/plan.d.ts.map +1 -1
  68. package/dist/catalog/install/plan.js +58 -3
  69. package/dist/catalog/install/plan.js.map +1 -1
  70. package/dist/catalog/install/reference.d.ts +12 -0
  71. package/dist/catalog/install/reference.d.ts.map +1 -0
  72. package/dist/catalog/install/reference.js +47 -0
  73. package/dist/catalog/install/reference.js.map +1 -0
  74. package/dist/cli/views/catalog/new/new-guideline.d.ts.map +1 -1
  75. package/dist/cli/views/catalog/new/new-guideline.js +6 -1
  76. package/dist/cli/views/catalog/new/new-guideline.js.map +1 -1
  77. package/dist/cli/views/show-item.d.ts.map +1 -1
  78. package/dist/cli/views/show-item.js +14 -6
  79. package/dist/cli/views/show-item.js.map +1 -1
  80. package/dist/cli/views/sync.d.ts.map +1 -1
  81. package/dist/cli/views/sync.js +8 -2
  82. package/dist/cli/views/sync.js.map +1 -1
  83. package/package.json +1 -1
  84. package/skills/agent-bolt/SKILL.md +24 -10
  85. package/skills/agent-bolt/references/catalog-config-schema.md +13 -3
  86. package/skills/agent-bolt/references/json-responses.md +19 -3
@@ -1,4 +1,5 @@
1
1
  import chalk from 'chalk';
2
+ import { ConsoleOutput } from '#core/output.js';
2
3
  import { Banner } from './shared/banner.js';
3
4
  import { changeSummary, countChanges, printToolReport, } from './shared/report.js';
4
5
  const STATUS_STYLES = {
@@ -7,15 +8,20 @@ const STATUS_STYLES = {
7
8
  removed: { symbol: '-', color: chalk.red, label: 'removed' },
8
9
  };
9
10
  export function renderSyncResult(result) {
10
- const counts = countChanges(result);
11
+ const { toolSyncResults, warnings } = result;
12
+ const counts = countChanges(toolSyncResults);
11
13
  const changed = counts.total > 0;
12
14
  Banner.sync(changed);
13
- for (const toolSyncResult of result) {
15
+ for (const toolSyncResult of toolSyncResults) {
14
16
  printToolReport(toolSyncResult, STATUS_STYLES);
15
17
  }
16
18
  if (changed) {
17
19
  console.log('');
18
20
  console.log(changeSummary(counts, STATUS_STYLES));
19
21
  }
22
+ for (const warning of warnings) {
23
+ console.error('');
24
+ ConsoleOutput.warn(warning);
25
+ }
20
26
  }
21
27
  //# sourceMappingURL=sync.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"sync.js","sourceRoot":"","sources":["../../../src/cli/views/sync.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAC5C,OAAO,EACL,aAAa,EACb,YAAY,EACZ,eAAe,GAEhB,MAAM,oBAAoB,CAAC;AAE5B,MAAM,aAAa,GAAiB;IAClC,SAAS,EAAE,EAAE,MAAM,EAAE,GAAG,EAAE,KAAK,EAAE,KAAK,CAAC,KAAK,EAAE,KAAK,EAAE,WAAW,EAAE;IAClE,OAAO,EAAE,EAAE,MAAM,EAAE,GAAG,EAAE,KAAK,EAAE,KAAK,CAAC,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE;IAC/D,OAAO,EAAE,EAAE,MAAM,EAAE,GAAG,EAAE,KAAK,EAAE,KAAK,CAAC,GAAG,EAAE,KAAK,EAAE,SAAS,EAAE;CAC7D,CAAC;AAEF,MAAM,UAAU,gBAAgB,CAAC,MAAkB;IACjD,MAAM,MAAM,GAAG,YAAY,CAAC,MAAM,CAAC,CAAC;IACpC,MAAM,OAAO,GAAG,MAAM,CAAC,KAAK,GAAG,CAAC,CAAC;IAEjC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAErB,KAAK,MAAM,cAAc,IAAI,MAAM,EAAE,CAAC;QACpC,eAAe,CAAC,cAAc,EAAE,aAAa,CAAC,CAAC;IACjD,CAAC;IAED,IAAI,OAAO,EAAE,CAAC;QACZ,OAAO,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;QAChB,OAAO,CAAC,GAAG,CAAC,aAAa,CAAC,MAAM,EAAE,aAAa,CAAC,CAAC,CAAC;IACpD,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OAAO,IAAI,QAAQ,EAAE,CAAC;QAC/B,OAAO,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;QAClB,aAAa,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAC9B,CAAC;AACH,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tjdals12/agent-bolt",
3
- "version": "1.4.0",
3
+ "version": "1.5.0",
4
4
  "description": "Manage, transform, and install team-shared AI development workflow assets across multiple AI tools",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -191,15 +191,26 @@ config is a hand edit.
191
191
  {
192
192
  "name": "commit-rules",
193
193
  "description": "Commit message conventions and granularity for this project.",
194
+ "usage": "Read before writing a commit message.",
194
195
  "recommended": { "load": "always" }
195
196
  },
196
197
  {
197
198
  "name": "typescript-standards",
198
199
  "description": "Project-wide TypeScript coding standards: typing, naming, imports, function/class design, compiler options, and type performance.",
200
+ "usage": "Read before editing TypeScript code.",
199
201
  "recommended": {
200
202
  "load": "conditional",
201
203
  "glob": ["**/*.ts", "**/*.tsx"]
202
204
  }
205
+ },
206
+ {
207
+ "name": "review-guidelines",
208
+ "description": "Code review conventions",
209
+ "usage": "Read before reviewing code.",
210
+ "recommended": {
211
+ "load": "reference",
212
+ "path": "docs/guidelines"
213
+ }
203
214
  }
204
215
  ]
205
216
  }
@@ -211,9 +222,9 @@ config is a hand edit.
211
222
  }
212
223
  ```
213
224
 
214
- A guideline's `recommended` is the load mode `add-pack`/`add-item` will
215
- write into the config: `always`, or `conditional` with the globs it applies
216
- to.
225
+ A guideline's `recommended` contains the installation settings
226
+ `add-pack`/`add-item` will write into the config: `always`, `reference`
227
+ with an installation `path`, or `conditional` with its `glob` patterns.
217
228
 
218
229
  3. **Organize what you found and present it.** Group by pack, and give every
219
230
  item the same labeled shape, filled from its description. Present all of
@@ -437,7 +448,8 @@ and the project, settles it with the user, and hands the result to
437
448
  - Do not ask a question whose answer would not change what you recommend —
438
449
  every prompt is built from items in the working set.
439
450
  - Say what a guideline's load mode means when recommending one: `always`
440
- applies it at all times, `conditional` only to files matching its globs.
451
+ applies it at all times, `reference` links a separate body file with its
452
+ `usage` text, and `conditional` applies only to files matching its globs.
441
453
 
442
454
  ## Install items
443
455
 
@@ -509,14 +521,16 @@ and the project, settles it with the user, and hands the result to
509
521
  — these commands edit `.agent-bolt/catalog-config.yml` and stop.
510
522
 
511
523
  3. **Adjust guideline load modes if the user wants them different.**
512
- Selections land with the catalog's `recommended` load mode. Changing
513
- `load`/`glob` afterward is done by editing the config file by hand — see
524
+ Selections land with the catalog's `recommended` installation settings.
525
+ Changing `load`/`glob`/`path` afterward is done by editing the config file
526
+ by hand — see
514
527
  [references/catalog-config-schema.md](references/catalog-config-schema.md).
515
528
 
516
- 4. **Preflight the shared instructions file.** Some tools install guidelines
517
- into a shared instructions file, fenced by a marker block the CLI owns
518
- (e.g. Codex and OpenCode, which share `AGENTS.md`). If guidelines are being
519
- installed for such a tool, check that file first:
529
+ 4. **Preflight the shared instructions file.** `always` and `reference` use
530
+ a marker block in `CLAUDE.md` (Claude), `AGENTS.md` (Cursor, Codex,
531
+ OpenCode), or `.github/copilot-instructions.md` (Copilot). Codex and
532
+ OpenCode also use `AGENTS.md` for conditional guidelines. Check the
533
+ relevant file first:
520
534
  - The file does not exist → fine; `sync` creates it, markers included.
521
535
  - The file exists and has `<!-- bolt:start -->` and `<!-- bolt:end -->` →
522
536
  fine.
@@ -4,7 +4,7 @@
4
4
  get installed for which tools. It is normally managed through the CLI
5
5
  (`init`, `add-*`, `remove-*`). Two changes have no command and are made by
6
6
  hand: editing `sources` — adding, changing, or removing a catalog after init
7
- — and changing a guideline's `load`/`glob` (the CLI always writes the
7
+ — and changing a guideline's `load`/`glob`/`path` (the CLI always writes the
8
8
  catalog's recommended value).
9
9
 
10
10
  After any hand edit, run `agent-bolt sync` (with the user's approval) to apply
@@ -48,6 +48,10 @@ packs:
48
48
  # always: applied at all times
49
49
  commit-rules:
50
50
  load: always
51
+ # reference: consulted when needed
52
+ review-guidelines:
53
+ load: reference
54
+ path: docs/guidelines
51
55
  # conditional: applied only to files matching the globs
52
56
  prisma-schema:
53
57
  load: conditional
@@ -72,14 +76,18 @@ Selection per pack:
72
76
  | `agents` | Array of item names. Optional; defaults to `[]` |
73
77
  | `guidelines` | Map of item name → load mode. Optional; defaults to `{}` |
74
78
 
75
- Guideline load modes (`load` is a discriminator — exactly one shape or the
76
- other):
79
+ Guideline load modes (`load` is a discriminator — choose one of these shapes):
77
80
 
78
81
  ```yaml
79
82
  # Applied at all times
80
83
  some-guideline:
81
84
  load: always
82
85
 
86
+ # Consulted when needed (installation directory required)
87
+ review-guidelines:
88
+ load: reference
89
+ path: docs/guidelines
90
+
83
91
  # Applied only to files matching the globs (at least one glob required)
84
92
  other-guideline:
85
93
  load: conditional
@@ -93,6 +101,8 @@ other-guideline:
93
101
  hyphens (`^[a-z0-9]+(?:-[a-z0-9]+)*$`).
94
102
  - A local source `path` is resolved relative to the `.agent-bolt/` directory.
95
103
  A catalog at `<project>/.agent-bolt/catalog` is `path: ./catalog`.
104
+ - A reference guideline's `path` is an installation directory relative to
105
+ the project root. Use `.` for the project root itself.
96
106
  - A pack selection whose source alias is missing from `sources` is pruned the
97
107
  next time the config is rewritten (reported as `orphanedSources` by `init`).
98
108
  - Renaming a source alias or a pack changes every installed file's name
@@ -105,15 +105,26 @@ agent-bolt list-items --source=common --packs=common --json
105
105
  {
106
106
  "name": "commit-rules",
107
107
  "description": "Commit message conventions and granularity for this project.",
108
+ "usage": "Read before writing a commit message.",
108
109
  "recommended": { "load": "always" }
109
110
  },
110
111
  {
111
112
  "name": "typescript-standards",
112
113
  "description": "Project-wide TypeScript coding standards: …",
114
+ "usage": "Read before editing TypeScript code.",
113
115
  "recommended": {
114
116
  "load": "conditional",
115
117
  "glob": ["**/*.ts", "**/*.tsx"]
116
118
  }
119
+ },
120
+ {
121
+ "name": "review-guidelines",
122
+ "description": "Code review conventions",
123
+ "usage": "Read before reviewing code.",
124
+ "recommended": {
125
+ "load": "reference",
126
+ "path": "docs/guidelines"
127
+ }
117
128
  }
118
129
  ]
119
130
  }
@@ -125,8 +136,11 @@ agent-bolt list-items --source=common --packs=common --json
125
136
  }
126
137
  ```
127
138
 
128
- - Guidelines carry `recommended` — the load mode `add-pack`/`add-item` will
129
- write into the config.
139
+ - Guidelines carry `recommended` — the installation settings
140
+ `add-pack`/`add-item` will write into the config — and optional `usage`,
141
+ the text inserted alongside the guideline link when installed as a reference.
142
+ Missing `usage` is omitted from JSON; reference rendering uses a fallback
143
+ message, and sync warns about the missing author-provided text.
130
144
  - Unlike `list-packs`, a broken source fails the whole command (top-level
131
145
  `error`, exit 1).
132
146
 
@@ -157,7 +171,9 @@ agent-bolt show-item --source=common --pack=common --item=create-commit --json
157
171
  ```
158
172
 
159
173
  - `type` is `skill`, `agent`, or `guideline`. `instructions` is the full body
160
- — it can be long. `assets` lists extra files a skill ships with.
174
+ for skills and agents — it can be long. Guidelines return `body`,
175
+ `bodyPath`, optional `usage`, and `recommended` instead. `assets` lists extra files
176
+ a skill ships with.
161
177
 
162
178
  ## add-pack
163
179