@brunosouzas/stackledger 0.10.1 → 0.12.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 (138) hide show
  1. package/README.md +32 -27
  2. package/dist/cli.js +1 -1
  3. package/dist/cli.js.map +1 -1
  4. package/dist/discovery/annotations.d.ts +11 -0
  5. package/dist/discovery/annotations.js +18 -0
  6. package/dist/discovery/annotations.js.map +1 -1
  7. package/dist/map/command.js +3 -1
  8. package/dist/map/command.js.map +1 -1
  9. package/dist/map/labels.js +3 -2
  10. package/dist/map/labels.js.map +1 -1
  11. package/dist/map/layout.js +10 -3
  12. package/dist/map/layout.js.map +1 -1
  13. package/dist/map/model.d.ts +1 -1
  14. package/dist/map/neighbourhood.js +1 -1
  15. package/dist/map/neighbourhood.js.map +1 -1
  16. package/dist/map/parallel.js +1 -1
  17. package/dist/map/parallel.js.map +1 -1
  18. package/dist/map/pieces.d.ts +2 -2
  19. package/dist/map/relations.js +1 -1
  20. package/dist/map/relations.js.map +1 -1
  21. package/dist/map/strip.js +1 -1
  22. package/dist/map/strip.js.map +1 -1
  23. package/dist/map/svg.js +2 -2
  24. package/dist/map/svg.js.map +1 -1
  25. package/dist/map/themes.js +2 -2
  26. package/dist/map/themes.js.map +1 -1
  27. package/dist/map/zones.d.ts +9 -3
  28. package/dist/map/zones.js +24 -1
  29. package/dist/map/zones.js.map +1 -1
  30. package/dist/mcp.js +3 -1
  31. package/dist/mcp.js.map +1 -1
  32. package/dist/schema.d.ts +3 -1
  33. package/dist/schema.js +4 -1
  34. package/dist/schema.js.map +1 -1
  35. package/dist/site/build.d.ts +4 -7
  36. package/dist/site/build.js +38 -45
  37. package/dist/site/build.js.map +1 -1
  38. package/dist/site/command.js +7 -9
  39. package/dist/site/command.js.map +1 -1
  40. package/dist/site/data.d.ts +3 -0
  41. package/dist/site/data.js.map +1 -1
  42. package/dist/site/policy.d.ts +5 -4
  43. package/dist/site/policy.js +5 -4
  44. package/dist/site/policy.js.map +1 -1
  45. package/dist/site/project-journeys.d.ts +29 -0
  46. package/dist/site/project-journeys.js +81 -0
  47. package/dist/site/project-journeys.js.map +1 -0
  48. package/dist/site/publish.d.ts +2 -5
  49. package/dist/site/publish.js +27 -26
  50. package/dist/site/publish.js.map +1 -1
  51. package/dist/site/skills-build.js +16 -2
  52. package/dist/site/skills-build.js.map +1 -1
  53. package/dist/site/skills-data.d.ts +6 -0
  54. package/dist/site/skills-data.js +7 -0
  55. package/dist/site/skills-data.js.map +1 -1
  56. package/dist/site/staging.d.ts +7 -4
  57. package/dist/site/staging.js +7 -4
  58. package/dist/site/staging.js.map +1 -1
  59. package/dist/site/ui-icons.js +1 -1
  60. package/dist/site/ui-icons.js.map +1 -1
  61. package/dist/skills/command.js +4 -3
  62. package/dist/skills/command.js.map +1 -1
  63. package/dist/skills/graph.d.ts +3 -0
  64. package/dist/skills/graph.js +4 -2
  65. package/dist/skills/graph.js.map +1 -1
  66. package/dist/skills/lines.d.ts +50 -10
  67. package/dist/skills/lines.js +78 -15
  68. package/dist/skills/lines.js.map +1 -1
  69. package/dist/skills/map-command.js +11 -0
  70. package/dist/skills/map-command.js.map +1 -1
  71. package/dist/skills/marketplace.d.ts +24 -0
  72. package/dist/skills/marketplace.js +179 -0
  73. package/dist/skills/marketplace.js.map +1 -0
  74. package/dist/skills/mermaid.js +10 -1
  75. package/dist/skills/mermaid.js.map +1 -1
  76. package/dist/skills/metro.js +9 -5
  77. package/dist/skills/metro.js.map +1 -1
  78. package/dist/skills/resolve.d.ts +22 -0
  79. package/dist/skills/resolve.js +47 -0
  80. package/dist/skills/resolve.js.map +1 -0
  81. package/dist/skills/source.d.ts +12 -2
  82. package/dist/skills/source.js +44 -26
  83. package/dist/skills/source.js.map +1 -1
  84. package/dist/skills/walk.d.ts +13 -0
  85. package/dist/skills/walk.js +90 -6
  86. package/dist/skills/walk.js.map +1 -1
  87. package/dist/validate.js +29 -2
  88. package/dist/validate.js.map +1 -1
  89. package/dist/views.d.ts +5 -4
  90. package/dist/views.js +4 -6
  91. package/dist/views.js.map +1 -1
  92. package/examples/catalogue-repository/.github/workflows/stackledger.yml +15 -15
  93. package/examples/catalogue-repository/README.md +13 -25
  94. package/examples/hosting/Caddyfile +14 -17
  95. package/examples/northwind/stackledger.yaml +1 -12
  96. package/examples/northwind-journeys/README.md +11 -0
  97. package/examples/northwind-journeys/catalogue/catalog-info.yaml +47 -0
  98. package/examples/northwind-journeys/catalogue/stackledger-skills.yaml +55 -0
  99. package/examples/northwind-journeys/foundry/.claude-plugin/marketplace.json +18 -0
  100. package/examples/northwind-journeys/foundry/plugins/engineering/agents/reviewer.md +10 -0
  101. package/examples/northwind-journeys/foundry/plugins/engineering/skills/build/SKILL.md +8 -0
  102. package/examples/northwind-journeys/foundry/plugins/engineering/skills/review/SKILL.md +8 -0
  103. package/examples/northwind-journeys/foundry/plugins/engineering/skills/spec/SKILL.md +8 -0
  104. package/examples/northwind-journeys/foundry/plugins/release/agents/releaser.md +10 -0
  105. package/examples/northwind-journeys/foundry/plugins/release/skills/ship/SKILL.md +8 -0
  106. package/examples/northwind-journeys/integration/.claude-plugin/marketplace.json +13 -0
  107. package/examples/northwind-journeys/integration/plugins/mule/skills/contract/SKILL.md +8 -0
  108. package/examples/northwind-journeys/integration/plugins/mule/skills/munit/SKILL.md +8 -0
  109. package/examples/northwind-journeys/loose/skills/notes/SKILL.md +8 -0
  110. package/examples/northwind-journeys/studio/.claude-plugin/marketplace.json +18 -0
  111. package/examples/northwind-journeys/studio/plugins/publishing/skills/publish/SKILL.md +8 -0
  112. package/examples/northwind-journeys/studio/plugins/writing/agents/reviewer.md +10 -0
  113. package/examples/northwind-journeys/studio/plugins/writing/skills/draft/SKILL.md +8 -0
  114. package/examples/northwind-journeys/studio/plugins/writing/skills/edit/SKILL.md +8 -0
  115. package/examples/northwind-marketplace/.claude-plugin/marketplace.json +9 -0
  116. package/examples/northwind-marketplace/README.md +7 -0
  117. package/examples/northwind-marketplace/plugins/review/agents/reviewer.md +10 -0
  118. package/examples/northwind-marketplace/plugins/review/skills/checklist/SKILL.md +8 -0
  119. package/examples/northwind-marketplace/plugins/writing/.claude-plugin/plugin.json +1 -0
  120. package/examples/northwind-marketplace/plugins/writing/agents/reviewer.md +10 -0
  121. package/examples/northwind-marketplace/plugins/writing/skills/draft/SKILL.md +8 -0
  122. package/examples/northwind-marketplace/plugins/writing/skills/publish/SKILL.md +12 -0
  123. package/npm-shrinkwrap.json +677 -312
  124. package/package.json +3 -3
  125. package/site/public/favicon.svg +9 -6
  126. package/site/public/link-icons/stackledger-dark.svg +4 -3
  127. package/site/public/link-icons/stackledger-light.svg +4 -3
  128. package/site/src/components/Footer.astro +1 -1
  129. package/site/src/components/Header.astro +1 -1
  130. package/site/src/components/SkillItem.astro +7 -2
  131. package/site/src/components/SubNav.astro +2 -2
  132. package/site/src/pages/[reports].astro +2 -4
  133. package/site/src/pages/index.astro +1 -1
  134. package/site/src/pages/licences/[name].astro +2 -2
  135. package/site/src/pages/skill-map/[...map].astro +27 -9
  136. package/site/src/pages/software/[name].astro +50 -0
  137. package/site/src/styles/tokens.css +1 -1
  138. package/site/public/brand-mark-dark.svg +0 -6
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brunosouzas/stackledger",
3
- "version": "0.10.1",
3
+ "version": "0.12.0",
4
4
  "type": "module",
5
5
  "description": "Govern your software stack and licences, drawn as a metro map",
6
6
  "keywords": [
@@ -41,12 +41,12 @@
41
41
  "test:perf": "vitest run --config vitest.perf.config.ts"
42
42
  },
43
43
  "dependencies": {
44
- "@brunosouzas/design-system": "0.11.0",
44
+ "@brunosouzas/signwright": "0.20.0",
45
45
  "@fontsource/source-code-pro": "5.3.1",
46
46
  "@fontsource/source-sans-3": "5.3.1",
47
47
  "@fontsource/source-serif-4": "5.3.1",
48
48
  "@modelcontextprotocol/sdk": "1.32.1",
49
- "astro": "7.3.8",
49
+ "astro": "7.4.7",
50
50
  "ignore": "7.0.13",
51
51
  "yaml": "2.9.1",
52
52
  "zod": "4.6.7"
@@ -1,6 +1,9 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32" width="32" height="32"><g transform="translate(0 0) scale(1)">
2
- <rect x="0.625" y="0.625" width="30.75" height="30.75" rx="6.6" fill="#FFFFFF" stroke="#121212" stroke-width="1.25"/>
3
- <path d="M7 23 L14 16 L25 16" fill="none" stroke="#E04E17" stroke-width="4.5" stroke-linecap="round" stroke-linejoin="round"/>
4
- <circle cx="14" cy="16" r="4" fill="#FFFFFF" stroke="#121212" stroke-width="2"/>
5
- <circle cx="25" cy="16" r="2.6" fill="#FFFFFF" stroke="#121212" stroke-width="1.6"/>
6
- </g></svg>
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 38 38" role="img" aria-labelledby="stackledger-favicon-title stackledger-favicon-desc" font-family="'Source Sans 3', 'Helvetica Neue', Helvetica, Arial, sans-serif">
2
+ <title id="stackledger-favicon-title">stackledger</title>
3
+ <desc id="stackledger-favicon-desc">stackledger's mark: a blue s with an orange moon, on the cream tile of the brunosouzas family.</desc>
4
+ <rect width="38" height="38" rx="7" fill="#F6F3EC"/>
5
+ <g transform="translate(3 3) scale(1)" stroke="none">
6
+ <path d="M19.2 15.4 C18 13.9 16.1 13.2 13.9 13.2 C10.8 13.2 8.6 14.7 8.6 16.9 C8.6 19.2 10.8 19.9 14 20.5 C17.4 21.2 19.6 21.9 19.6 24.2 C19.6 26.4 17.3 27.8 14.1 27.8 C11.6 27.8 9.5 27 8.2 25.4" fill="none" stroke="#3B5BDB" stroke-width="4.6" stroke-linecap="round" stroke-linejoin="round"/>
7
+ <circle cx="27.5" cy="9" r="2.8" fill="#E04E17"/>
8
+ </g>
9
+ </svg>
@@ -1,6 +1,7 @@
1
1
  <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 46 46" width="46" height="46"><g transform="translate(0 0) scale(1)" stroke="none">
2
2
  <rect x="2" y="2" width="38" height="38" rx="9" fill="#FFFFFF" stroke="#ADA79D" stroke-width="2.5"/>
3
- <path d="M10.3 29.3 L18.6 21 L31.7 21" fill="none" stroke="#E04E17" stroke-width="5.3" stroke-linecap="round" stroke-linejoin="round"/>
4
- <circle cx="18.6" cy="21" r="4.75" fill="#FFFFFF" stroke="#121212" stroke-width="2.5"/>
5
- <circle cx="31.7" cy="21" r="3.1" fill="#FFFFFF" stroke="#121212" stroke-width="2"/>
3
+ <g transform="translate(5.16 5.12) scale(0.875)">
4
+ <path d="M19.2 15.4 C18 13.9 16.1 13.2 13.9 13.2 C10.8 13.2 8.6 14.7 8.6 16.9 C8.6 19.2 10.8 19.9 14 20.5 C17.4 21.2 19.6 21.9 19.6 24.2 C19.6 26.4 17.3 27.8 14.1 27.8 C11.6 27.8 9.5 27 8.2 25.4" fill="none" stroke="#3B5BDB" stroke-width="4.6" stroke-linecap="round" stroke-linejoin="round"/>
5
+ <circle cx="27.5" cy="9" r="2.8" fill="#E04E17"/>
6
+ </g>
6
7
  </g></svg>
@@ -1,6 +1,7 @@
1
1
  <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 46 46" width="46" height="46"><g transform="translate(0 0) scale(1)" stroke="none">
2
2
  <rect x="2" y="2" width="38" height="38" rx="9" fill="#FFFFFF" stroke="#121212" stroke-width="2.5"/>
3
- <path d="M10.3 29.3 L18.6 21 L31.7 21" fill="none" stroke="#E04E17" stroke-width="5.3" stroke-linecap="round" stroke-linejoin="round"/>
4
- <circle cx="18.6" cy="21" r="4.75" fill="#FFFFFF" stroke="#121212" stroke-width="2.5"/>
5
- <circle cx="31.7" cy="21" r="3.1" fill="#FFFFFF" stroke="#121212" stroke-width="2"/>
3
+ <g transform="translate(5.16 5.12) scale(0.875)">
4
+ <path d="M19.2 15.4 C18 13.9 16.1 13.2 13.9 13.2 C10.8 13.2 8.6 14.7 8.6 16.9 C8.6 19.2 10.8 19.9 14 20.5 C17.4 21.2 19.6 21.9 19.6 24.2 C19.6 26.4 17.3 27.8 14.1 27.8 C11.6 27.8 9.5 27 8.2 25.4" fill="none" stroke="#3B5BDB" stroke-width="4.6" stroke-linecap="round" stroke-linejoin="round"/>
5
+ <circle cx="27.5" cy="9" r="2.8" fill="#E04E17"/>
6
+ </g>
6
7
  </g></svg>
@@ -21,6 +21,6 @@ const { root } = Astro.props;
21
21
  </ul>
22
22
  </div>
23
23
  <div class="footer-bottom">
24
- <p class="container">{site.view} view · stackledger {site.version} · <span class="endorsement"><img class="symbol-mark themed-light" src={href(root, 'symbol-light.svg')} alt="" width="16" height="16" /><img class="symbol-mark themed-dark" src={href(root, 'symbol-dark.svg')} alt="" width="16" height="16" /> by Bruno Souza</span> · Look based on the Astroplate theme (MIT)</p>
24
+ <p class="container">stackledger {site.version} · <span class="endorsement"><img class="symbol-mark themed-light" src={href(root, 'symbol-light.svg')} alt="" width="16" height="16" /><img class="symbol-mark themed-dark" src={href(root, 'symbol-dark.svg')} alt="" width="16" height="16" /> by Bruno Souza</span> · Look based on the Astroplate theme (MIT)</p>
25
25
  </div>
26
26
  </footer>
@@ -18,7 +18,7 @@ const links = [
18
18
 
19
19
  <header class="header">
20
20
  <nav class="navbar container" aria-label="Main">
21
- <a class="navbar-brand" href={href(root, '')}><img class="brand-mark themed-light" src={href(root, 'favicon.svg')} alt="" width="28" height="28" /><img class="brand-mark themed-dark" src={href(root, 'brand-mark-dark.svg')} alt="" width="28" height="28" />{site.title}</a>
21
+ <a class="navbar-brand" href={href(root, '')}><img class="brand-mark" src={href(root, 'favicon.svg')} alt="" width="28" height="28" />{site.title}</a>
22
22
  <ul class="navbar-nav">
23
23
  {
24
24
  links.map((link) => (
@@ -20,6 +20,11 @@ const kinds: Record<string, string> = { skill: 'Skill', playbook: 'Playbook', ag
20
20
  <article class="container section">
21
21
  <p class="kicker"><a href={href(root, 'skills/')}>Skills</a> · {kinds[page.kind]}</p>
22
22
  <h1>{page.name}</h1>
23
+ {
24
+ page.plugin !== undefined && (
25
+ <p class="muted" data-plugin>Plugin <strong>{page.plugin}</strong> · Marketplace <strong>{page.marketplace}</strong></p>
26
+ )
27
+ }
23
28
  <p class="lead">{page.description}</p>
24
29
 
25
30
  <section aria-labelledby="relations">
@@ -78,10 +83,10 @@ const kinds: Record<string, string> = { skill: 'Skill', playbook: 'Playbook', ag
78
83
  </section>
79
84
 
80
85
  <section aria-labelledby="lines">
81
- <h2 id="lines">Skill lines</h2>
86
+ <h2 id="lines">Journeys</h2>
82
87
  {
83
88
  page.lines.length === 0 ? (
84
- <p>No skill line stops here.</p>
89
+ <p>No journey stops here.</p>
85
90
  ) : (
86
91
  <ul class="line-chips" data-lines>
87
92
  {page.lines.map((line: { badgeSvg: string; title: string }) => (
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  // Sub-navigation of a division (catalogue-site, Layout; skills-site, Skills sub-navigation): the
3
- // Software division's Map, List, Journeys and (full site) Reports; the Skills division's List, Map
3
+ // Software division's Map, List, Journeys and Reports; the Skills division's List, Map
4
4
  // and Rules. The page itself is marked with aria-current; an item page marks nothing.
5
5
  import { href, site, type Page } from '../lib/site';
6
6
 
@@ -14,7 +14,7 @@ const software = [
14
14
  { key: 'map', title: 'Map', path: 'map/' },
15
15
  { key: 'software', title: 'List', path: 'software/' },
16
16
  { key: 'journeys', title: 'Journeys', path: 'journeys/' },
17
- ...('report' in site ? [{ key: 'reports', title: 'Reports', path: 'reports/' }] : []),
17
+ { key: 'reports', title: 'Reports', path: 'reports/' },
18
18
  ];
19
19
  const skills = [
20
20
  { key: 'skills', title: 'List', path: 'skills/' },
@@ -1,15 +1,13 @@
1
1
  ---
2
2
  // Reports page (licence-reports, Reports page): renewals, recurring cost per currency and per
3
- // group, one-off and planned costs, incomplete licences and the calendar link. The full site only:
4
- // the route is dynamic so that getStaticPaths can return no page at all when SiteData has no
5
- // report (the staff site), instead of a page that would have to hide itself. All text and amounts
3
+ // group, one-off and planned costs, incomplete licences and the calendar link. All text and amounts
6
4
  // are prepared by src/site/data.ts; the tables are plain HTML, with no script.
7
5
  import Base from '../layouts/Base.astro';
8
6
  import LinkOrText from '../components/LinkOrText.astro';
9
7
  import { href, rootFor, site } from '../lib/site';
10
8
 
11
9
  export function getStaticPaths() {
12
- return 'report' in site ? [{ params: { reports: 'reports' }, props: { report: site.report } }] : [];
10
+ return [{ params: { reports: 'reports' }, props: { report: site.report } }];
13
11
  }
14
12
 
15
13
  const { report } = Astro.props;
@@ -40,7 +40,7 @@ const textLinks = links.filter(link => !link.icon);
40
40
  <li><a href={href(root, 'map/')}>Map</a></li>
41
41
  <li><a href={href(root, 'software/')}>List</a></li>
42
42
  <li><a href={href(root, 'journeys/')}>Journeys</a></li>
43
- {'report' in site && <li><a href={href(root, 'reports/')}>Reports</a></li>}
43
+ <li><a href={href(root, 'reports/')}>Reports</a></li>
44
44
  </ul>
45
45
  </article>
46
46
  {
@@ -1,6 +1,6 @@
1
1
  ---
2
- // Licence page (catalogue-site, Licence page): the licence fields of the view, the components
3
- // that use it and the impact of removing it. The staff view has already dropped hidden fields.
2
+ // Licence page (catalogue-site, Licence page content): every licence field, the components
3
+ // that use it and the impact of removing it.
4
4
  import Base from '../../layouts/Base.astro';
5
5
  import Impact from '../../components/Impact.astro';
6
6
  import LinkOrText from '../../components/LinkOrText.astro';
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  // Skills map page (skills-site, Skills map page): the skills metro map in both themes, with the
3
3
  // software map page's zoom, pan, line highlight and, when zones are drawn, the zone filter. The frame
4
- // is marked data-zone-mode="list" because playbook zones overlap (scripts/map.ts). The lines and their
4
+ // is marked data-zone-mode="list" because zones (marketplaces, playbooks) overlap (scripts/map.ts). The lines and their
5
5
  // stops follow the map as links: the map's text alternative.
6
6
  import Base from '../../layouts/Base.astro';
7
7
  import Themed from '../../components/Themed.astro';
@@ -13,7 +13,8 @@ export function getStaticPaths() {
13
13
 
14
14
  const { skills } = Astro.props;
15
15
  const root = rootFor(Astro.url.pathname);
16
- const { lines, zones, symbols } = skills.map;
16
+ const { lines, zones, zoneLabel, symbols } = skills.map;
17
+ const zonePlural = zoneLabel === 'Marketplace' ? 'marketplaces' : zoneLabel === 'Playbook' ? 'playbooks' : 'zones';
17
18
  ---
18
19
 
19
20
  <Base title="Skill map" current="skill-map">
@@ -21,9 +22,9 @@ const { lines, zones, symbols } = skills.map;
21
22
  <h1>Skill map</h1>
22
23
  {
23
24
  skills.map.empty ? (
24
- <p class="lead">No skill lines yet. Add a Line to <code>stackledger-skills.yaml</code> at the top of a skills folder to draw one.</p>
25
+ <p class="lead">No skill lines yet. A line is a journey, a kind of work. Add a Line to <code>stackledger-skills.yaml</code>, at the top of a skills folder or in the catalogue (<code>spec.skills.map</code> of the Settings), to draw one.</p>
25
26
  ) : (
26
- <p class="lead">Each line is a way of working through the skills; each station opens its page.</p>
27
+ <p class="lead">Each line is a journey, a kind of work, through the skills and agents it uses. A station where lines cross is shared by those journeys{zones.length > 0 ? `; each coloured area is a ${zoneLabel.toLowerCase()}` : ''}. Each station opens its page.</p>
27
28
  )
28
29
  }
29
30
  <div class="map-tools" data-map-tools hidden>
@@ -35,9 +36,9 @@ const { lines, zones, symbols } = skills.map;
35
36
  {
36
37
  zones.length > 0 && (
37
38
  <label class="field map-zone">
38
- Playbook
39
+ {zoneLabel}
39
40
  <select data-zone-filter>
40
- <option value="">All playbooks</option>
41
+ <option value="">All {zonePlural}</option>
41
42
  {zones.map((zone: { name: string; title: string }) => <option value={zone.name}>{zone.title}</option>)}
42
43
  </select>
43
44
  </label>
@@ -50,7 +51,7 @@ const { lines, zones, symbols } = skills.map;
50
51
  {
51
52
  lines.length > 0 && (
52
53
  <div class="map-lines" data-map-lines>
53
- <h2 class="visually-hidden">Skill lines</h2>
54
+ <h2 class="visually-hidden">Journeys</h2>
54
55
  <ul class="line-chips">
55
56
  {lines.map((line: { ref: string; title: string; badgeSvg: string }) => (
56
57
  <li>
@@ -80,8 +81,8 @@ const { lines, zones, symbols } = skills.map;
80
81
  {
81
82
  lines.length > 0 && (
82
83
  <section aria-labelledby="stops">
83
- <h2 id="stops">Lines and their stops</h2>
84
- {lines.map((line: { title: string; stops: { href: string; name: string; kind: string }[] }) => (
84
+ <h2 id="stops">Journeys and their stops</h2>
85
+ {lines.map((line: { title: string; stops: { href: string; name: string; kind: string }[]; followedBy?: { href: string; title: string }[] }) => (
85
86
  <>
86
87
  <h3>{line.title}</h3>
87
88
  <ol class="plain-list">
@@ -89,6 +90,23 @@ const { lines, zones, symbols } = skills.map;
89
90
  <li><a href={href(root, stop.href)}>{stop.name}</a> <span class="muted">({stop.kind})</span></li>
90
91
  ))}
91
92
  </ol>
93
+ {line.followedBy && (
94
+ <p class="muted" data-followed-by>
95
+ {line.followedBy.length === 0 ? (
96
+ 'No component follows this journey.'
97
+ ) : (
98
+ <>
99
+ Followed by{' '}
100
+ {line.followedBy.map((project, index) => (
101
+ <>
102
+ {index > 0 && ', '}
103
+ <a href={href(root, project.href)}>{project.title}</a>
104
+ </>
105
+ ))}
106
+ </>
107
+ )}
108
+ </p>
109
+ )}
92
110
  </>
93
111
  ))}
94
112
  </section>
@@ -14,6 +14,11 @@ export function getStaticPaths() {
14
14
  const { page } = Astro.props;
15
15
  const root = rootFor(Astro.url.pathname);
16
16
  const near = page.neighbourhood;
17
+ // The per-project view of the skills (project-journeys): present only when the component declares journeys and skills are read.
18
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
19
+ const skillJourneys = (page as any).skillJourneys as
20
+ | { journeys: { ref: string; title: string; badgeSvg: string }[]; skills: { ref: string; name: string; kind: string; href: string }[]; marketplaces: string[]; unknown: string[] }
21
+ | undefined;
17
22
  ---
18
23
 
19
24
  <Base title={page.title} current="software" exact={false}>
@@ -68,6 +73,51 @@ const near = page.neighbourhood;
68
73
  </section>
69
74
  </div>
70
75
 
76
+ {
77
+ skillJourneys && (
78
+ <section aria-labelledby="skill-journeys" data-skill-journeys>
79
+ <h2 id="skill-journeys">Skill journeys</h2>
80
+ <p class="muted">The kinds of work this project follows, and the skills and marketplaces they pass through.</p>
81
+ <ul class="line-chips" data-journeys>
82
+ {skillJourneys.journeys.map((line) => (
83
+ <li><a class="btn" href={href(root, 'skill-map/')}><span class="badge" set:html={line.badgeSvg} />{line.title}</a></li>
84
+ ))}
85
+ {skillJourneys.unknown.map((name) => (
86
+ <li><span class="muted"><code>{name}</code> (not drawn)</span></li>
87
+ ))}
88
+ </ul>
89
+ <div class="columns">
90
+ <div>
91
+ <h3>Marketplaces</h3>
92
+ {
93
+ skillJourneys.marketplaces.length === 0 ? (
94
+ <p>None.</p>
95
+ ) : (
96
+ <ul class="plain-list" data-marketplaces>
97
+ {skillJourneys.marketplaces.map((name) => <li>{name}</li>)}
98
+ </ul>
99
+ )
100
+ }
101
+ </div>
102
+ <div>
103
+ <h3>Skills and agents</h3>
104
+ {
105
+ skillJourneys.skills.length === 0 ? (
106
+ <p>None.</p>
107
+ ) : (
108
+ <ul class="plain-list" data-skills>
109
+ {skillJourneys.skills.map((item) => (
110
+ <li><a href={href(root, item.href)}>{item.name}</a> <span class="muted">({item.kind})</span></li>
111
+ ))}
112
+ </ul>
113
+ )
114
+ }
115
+ </div>
116
+ </div>
117
+ </section>
118
+ )
119
+ }
120
+
71
121
  <section aria-labelledby="licences">
72
122
  <h2 id="licences">Licences</h2>
73
123
  {
@@ -1,7 +1,7 @@
1
1
  /* Design tokens: every colour and size of the site (catalogue-site, Look and theme).
2
2
  The font variables (--font-primary, --font-secondary, --font-mono) are not defined here: Astro's
3
3
  Fonts API defines them in _astro/fonts.css, and a definition here, loaded later, would win.
4
- Colours and type scale come from @brunosouzas/design-system (the site tokens of
4
+ Colours and type scale come from @brunosouzas/signwright (the site tokens of
5
5
  brunosouzas.com), copied by the build next to this file as ds-tokens.css; the accent, which is
6
6
  also the focus colour, is stackledger's own brand colour in the package
7
7
  (--ds-brand-<theme>-stackledger-accent).
@@ -1,6 +0,0 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32" width="32" height="32"><g transform="translate(0 0) scale(1)">
2
- <rect x="0.625" y="0.625" width="30.75" height="30.75" rx="6.6" fill="#FFFFFF" stroke="#ADA79D" stroke-width="1.25"/>
3
- <path d="M7 23 L14 16 L25 16" fill="none" stroke="#E04E17" stroke-width="4.5" stroke-linecap="round" stroke-linejoin="round"/>
4
- <circle cx="14" cy="16" r="4" fill="#FFFFFF" stroke="#121212" stroke-width="2"/>
5
- <circle cx="25" cy="16" r="2.6" fill="#FFFFFF" stroke="#121212" stroke-width="1.6"/>
6
- </g></svg>