Commit 60499d3
committed
feat(skills): version skills plugins via dedicated workspace package
Introduce @salesforce/b2c-agent-plugins (at skills/package.json, private) as
the changesets target for skill-content changes. Its version syncs into the
plugin manifest files (.claude-plugin/marketplace.json entries for b2c-cli
and b2c, plus both .codex-plugin/plugin.json files) so installed plugins see
a proper version bump when skills change.
Publish workflow now tracks skills-only bumps with a `b2c-agent-plugins@X.Y.Z`
GitHub release tag. Skills zips are only attached to releases where the
plugins package actually changed. Skills installer resolves "latest" via a
hybrid: GitHub REST API (paginated, asset-filtered) with a raw.githubusercontent.com
fallback when the API is rate-limited. The resolved version is cached for
1 hour to avoid redundant lookups. Zip downloads continue to go through the
GitHub CDN with no API calls.
- skills/package.json: new private workspace package `@salesforce/b2c-agent-plugins`
- pnpm-workspace.yaml: add `skills`
- scripts/sync-plugin-versions.mjs: stamps version into plugin manifests
- package.json: `version` script now runs changeset version + sync
- .github/workflows/changesets.yml: action uses `pnpm run version`
- .github/workflows/publish.yml: adds publish_plugins gate, re-gates skills
zip steps, adds release-tag fallback
- packages/b2c-tooling-sdk/src/skills/github.ts: adds resolveLatestVersion()
with API→raw hybrid, replaces /releases/latest usage
- .claude-plugin/marketplace.json: b2c-cli and b2c entries gain `version`1 parent a8441f1 commit 60499d3
9 files changed
Lines changed: 257 additions & 64 deletions
File tree
- .claude-plugin
- .github/workflows
- packages/b2c-tooling-sdk/src/skills
- scripts
- skills
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
| 20 | + | |
20 | 21 | | |
21 | 22 | | |
22 | 23 | | |
| |||
27 | 28 | | |
28 | 29 | | |
29 | 30 | | |
30 | | - | |
| 31 | + | |
| 32 | + | |
31 | 33 | | |
32 | 34 | | |
33 | 35 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | | - | |
| 40 | + | |
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
96 | 96 | | |
97 | 97 | | |
98 | 98 | | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
99 | 106 | | |
100 | 107 | | |
101 | 108 | | |
| |||
184 | 191 | | |
185 | 192 | | |
186 | 193 | | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
187 | 204 | | |
188 | 205 | | |
189 | 206 | | |
| |||
357 | 374 | | |
358 | 375 | | |
359 | 376 | | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
360 | 384 | | |
361 | 385 | | |
362 | 386 | | |
| |||
375 | 399 | | |
376 | 400 | | |
377 | 401 | | |
| 402 | + | |
| 403 | + | |
378 | 404 | | |
379 | 405 | | |
380 | 406 | | |
| |||
385 | 411 | | |
386 | 412 | | |
387 | 413 | | |
388 | | - | |
| 414 | + | |
389 | 415 | | |
390 | 416 | | |
391 | 417 | | |
| |||
397 | 423 | | |
398 | 424 | | |
399 | 425 | | |
400 | | - | |
| 426 | + | |
401 | 427 | | |
402 | | - | |
| 428 | + | |
403 | 429 | | |
404 | 430 | | |
405 | 431 | | |
| |||
410 | 436 | | |
411 | 437 | | |
412 | 438 | | |
| 439 | + | |
| 440 | + | |
413 | 441 | | |
414 | | - | |
415 | | - | |
| 442 | + | |
416 | 443 | | |
417 | 444 | | |
418 | 445 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
| 24 | + | |
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| |||
0 commit comments