@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.
- package/README.ko.md +86 -8
- package/README.md +86 -8
- package/dist/catalog/commands/catalog/new/new-guideline.d.ts.map +1 -1
- package/dist/catalog/commands/catalog/new/new-guideline.js +1 -0
- package/dist/catalog/commands/catalog/new/new-guideline.js.map +1 -1
- package/dist/catalog/commands/catalog/validate-catalog.d.ts.map +1 -1
- package/dist/catalog/commands/catalog/validate-catalog.js +20 -6
- package/dist/catalog/commands/catalog/validate-catalog.js.map +1 -1
- package/dist/catalog/commands/show-item.d.ts +6 -0
- package/dist/catalog/commands/show-item.d.ts.map +1 -1
- package/dist/catalog/commands/show-item.js +2 -1
- package/dist/catalog/commands/show-item.js.map +1 -1
- package/dist/catalog/commands/sync.d.ts +6 -2
- package/dist/catalog/commands/sync.d.ts.map +1 -1
- package/dist/catalog/commands/sync.js +29 -4
- package/dist/catalog/commands/sync.js.map +1 -1
- package/dist/catalog/config/schema.d.ts +20 -0
- package/dist/catalog/config/schema.d.ts.map +1 -1
- package/dist/catalog/config/schema.js +5 -0
- package/dist/catalog/config/schema.js.map +1 -1
- package/dist/catalog/content/item/find-detail.d.ts.map +1 -1
- package/dist/catalog/content/item/find-detail.js +1 -0
- package/dist/catalog/content/item/find-detail.js.map +1 -1
- package/dist/catalog/content/item/model.d.ts +2 -4
- package/dist/catalog/content/item/model.d.ts.map +1 -1
- package/dist/catalog/content/item/parse-summary.d.ts.map +1 -1
- package/dist/catalog/content/item/parse-summary.js +1 -0
- package/dist/catalog/content/item/parse-summary.js.map +1 -1
- package/dist/catalog/content/item/schema.d.ts +7 -0
- package/dist/catalog/content/item/schema.d.ts.map +1 -1
- package/dist/catalog/content/item/schema.js +2 -0
- package/dist/catalog/content/item/schema.js.map +1 -1
- package/dist/catalog/install/adapters/claude.adapter.d.ts.map +1 -1
- package/dist/catalog/install/adapters/claude.adapter.js +35 -6
- package/dist/catalog/install/adapters/claude.adapter.js.map +1 -1
- package/dist/catalog/install/adapters/codex.adapter.d.ts.map +1 -1
- package/dist/catalog/install/adapters/codex.adapter.js +22 -1
- package/dist/catalog/install/adapters/codex.adapter.js.map +1 -1
- package/dist/catalog/install/adapters/copilot.adapter.d.ts.map +1 -1
- package/dist/catalog/install/adapters/copilot.adapter.js +39 -3
- package/dist/catalog/install/adapters/copilot.adapter.js.map +1 -1
- package/dist/catalog/install/adapters/cursor.adapter.d.ts.map +1 -1
- package/dist/catalog/install/adapters/cursor.adapter.js +38 -11
- package/dist/catalog/install/adapters/cursor.adapter.js.map +1 -1
- package/dist/catalog/install/adapters/opencode.adapter.d.ts.map +1 -1
- package/dist/catalog/install/adapters/opencode.adapter.js +22 -1
- package/dist/catalog/install/adapters/opencode.adapter.js.map +1 -1
- package/dist/catalog/install/apply.d.ts.map +1 -1
- package/dist/catalog/install/apply.js +21 -1
- package/dist/catalog/install/apply.js.map +1 -1
- package/dist/catalog/install/diff.d.ts.map +1 -1
- package/dist/catalog/install/diff.js +18 -1
- package/dist/catalog/install/diff.js.map +1 -1
- package/dist/catalog/install/lockfile/items.d.ts +1 -1
- package/dist/catalog/install/lockfile/items.d.ts.map +1 -1
- package/dist/catalog/install/lockfile/items.js +16 -4
- package/dist/catalog/install/lockfile/items.js.map +1 -1
- package/dist/catalog/install/managed-block/group.d.ts.map +1 -1
- package/dist/catalog/install/managed-block/group.js +18 -1
- package/dist/catalog/install/managed-block/group.js.map +1 -1
- package/dist/catalog/install/managed-block/render.d.ts +1 -0
- package/dist/catalog/install/managed-block/render.d.ts.map +1 -1
- package/dist/catalog/install/managed-block/render.js +3 -0
- package/dist/catalog/install/managed-block/render.js.map +1 -1
- package/dist/catalog/install/model.d.ts +12 -0
- package/dist/catalog/install/model.d.ts.map +1 -1
- package/dist/catalog/install/plan.d.ts.map +1 -1
- package/dist/catalog/install/plan.js +58 -3
- package/dist/catalog/install/plan.js.map +1 -1
- package/dist/catalog/install/reference.d.ts +12 -0
- package/dist/catalog/install/reference.d.ts.map +1 -0
- package/dist/catalog/install/reference.js +47 -0
- package/dist/catalog/install/reference.js.map +1 -0
- package/dist/cli/views/catalog/new/new-guideline.d.ts.map +1 -1
- package/dist/cli/views/catalog/new/new-guideline.js +6 -1
- package/dist/cli/views/catalog/new/new-guideline.js.map +1 -1
- package/dist/cli/views/show-item.d.ts.map +1 -1
- package/dist/cli/views/show-item.js +14 -6
- package/dist/cli/views/show-item.js.map +1 -1
- package/dist/cli/views/sync.d.ts.map +1 -1
- package/dist/cli/views/sync.js +8 -2
- package/dist/cli/views/sync.js.map +1 -1
- package/package.json +1 -1
- package/skills/agent-bolt/SKILL.md +24 -10
- package/skills/agent-bolt/references/catalog-config-schema.md +13 -3
- package/skills/agent-bolt/references/json-responses.md +19 -3
package/dist/cli/views/sync.js
CHANGED
|
@@ -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
|
|
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
|
|
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;
|
|
1
|
+
{"version":3,"file":"sync.js","sourceRoot":"","sources":["../../../src/cli/views/sync.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAEhD,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,EAAE,eAAe,EAAE,QAAQ,EAAE,GAAG,MAAM,CAAC;IAC7C,MAAM,MAAM,GAAG,YAAY,CAAC,eAAe,CAAC,CAAC;IAC7C,MAAM,OAAO,GAAG,MAAM,CAAC,KAAK,GAAG,CAAC,CAAC;IAEjC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAErB,KAAK,MAAM,cAAc,IAAI,eAAe,EAAE,CAAC;QAC7C,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,CAAC;IAED,KAAK,MAAM,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
|
@@ -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`
|
|
215
|
-
write into the config: `always`,
|
|
216
|
-
|
|
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, `
|
|
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`
|
|
513
|
-
`load`/`glob` afterward is done by editing the config file
|
|
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.**
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
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 —
|
|
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
|
|
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.
|
|
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
|
|