@brunosouzas/stackledger 0.0.0-stage → 0.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/LICENSE +202 -0
- package/README.md +261 -2
- package/dist/cli.d.ts +2 -0
- package/dist/cli.js +97 -0
- package/dist/cli.js.map +1 -0
- package/dist/control.d.ts +2 -0
- package/dist/control.js +22 -0
- package/dist/control.js.map +1 -0
- package/dist/discover-command.d.ts +7 -0
- package/dist/discover-command.js +60 -0
- package/dist/discover-command.js.map +1 -0
- package/dist/discovery/annotations.d.ts +24 -0
- package/dist/discovery/annotations.js +37 -0
- package/dist/discovery/annotations.js.map +1 -0
- package/dist/discovery/host.d.ts +47 -0
- package/dist/discovery/host.js +56 -0
- package/dist/discovery/host.js.map +1 -0
- package/dist/discovery/index.d.ts +15 -0
- package/dist/discovery/index.js +30 -0
- package/dist/discovery/index.js.map +1 -0
- package/dist/discovery/machine.d.ts +14 -0
- package/dist/discovery/machine.js +17 -0
- package/dist/discovery/machine.js.map +1 -0
- package/dist/discovery/run.d.ts +39 -0
- package/dist/discovery/run.js +130 -0
- package/dist/discovery/run.js.map +1 -0
- package/dist/discovery/snapshot.d.ts +60 -0
- package/dist/discovery/snapshot.js +161 -0
- package/dist/discovery/snapshot.js.map +1 -0
- package/dist/discovery/sources/apps.d.ts +3 -0
- package/dist/discovery/sources/apps.js +136 -0
- package/dist/discovery/sources/apps.js.map +1 -0
- package/dist/discovery/sources/brew.d.ts +15 -0
- package/dist/discovery/sources/brew.js +69 -0
- package/dist/discovery/sources/brew.js.map +1 -0
- package/dist/discovery/sources/common.d.ts +39 -0
- package/dist/discovery/sources/common.js +70 -0
- package/dist/discovery/sources/common.js.map +1 -0
- package/dist/discovery/sources/index.d.ts +8 -0
- package/dist/discovery/sources/index.js +12 -0
- package/dist/discovery/sources/index.js.map +1 -0
- package/dist/discovery/sources/launchd.d.ts +3 -0
- package/dist/discovery/sources/launchd.js +65 -0
- package/dist/discovery/sources/launchd.js.map +1 -0
- package/dist/discovery/sources/mas.d.ts +9 -0
- package/dist/discovery/sources/mas.js +25 -0
- package/dist/discovery/sources/mas.js.map +1 -0
- package/dist/discovery/sources/mise.d.ts +5 -0
- package/dist/discovery/sources/mise.js +64 -0
- package/dist/discovery/sources/mise.js.map +1 -0
- package/dist/discovery/sources/npm.d.ts +12 -0
- package/dist/discovery/sources/npm.js +34 -0
- package/dist/discovery/sources/npm.js.map +1 -0
- package/dist/discovery/sources/pipx.d.ts +4 -0
- package/dist/discovery/sources/pipx.js +82 -0
- package/dist/discovery/sources/pipx.js.map +1 -0
- package/dist/discovery/types.d.ts +73 -0
- package/dist/discovery/types.js +10 -0
- package/dist/discovery/types.js.map +1 -0
- package/dist/discovery/write.d.ts +50 -0
- package/dist/discovery/write.js +196 -0
- package/dist/discovery/write.js.map +1 -0
- package/dist/drift-command.d.ts +62 -0
- package/dist/drift-command.js +375 -0
- package/dist/drift-command.js.map +1 -0
- package/dist/drift-formats.d.ts +3 -0
- package/dist/drift-formats.js +54 -0
- package/dist/drift-formats.js.map +1 -0
- package/dist/drift.d.ts +95 -0
- package/dist/drift.js +206 -0
- package/dist/drift.js.map +1 -0
- package/dist/errors.d.ts +15 -0
- package/dist/errors.js +26 -0
- package/dist/errors.js.map +1 -0
- package/dist/graph.d.ts +103 -0
- package/dist/graph.js +181 -0
- package/dist/graph.js.map +1 -0
- package/dist/ics.d.ts +18 -0
- package/dist/ics.js +103 -0
- package/dist/ics.js.map +1 -0
- package/dist/identity.d.ts +18 -0
- package/dist/identity.js +36 -0
- package/dist/identity.js.map +1 -0
- package/dist/index.d.ts +14 -0
- package/dist/index.js +9 -0
- package/dist/index.js.map +1 -0
- package/dist/map/badges.d.ts +20 -0
- package/dist/map/badges.js +95 -0
- package/dist/map/badges.js.map +1 -0
- package/dist/map/command.d.ts +8 -0
- package/dist/map/command.js +86 -0
- package/dist/map/command.js.map +1 -0
- package/dist/map/heap.d.ts +15 -0
- package/dist/map/heap.js +57 -0
- package/dist/map/heap.js.map +1 -0
- package/dist/map/ink.d.ts +11 -0
- package/dist/map/ink.js +10 -0
- package/dist/map/ink.js.map +1 -0
- package/dist/map/labels.d.ts +43 -0
- package/dist/map/labels.js +172 -0
- package/dist/map/labels.js.map +1 -0
- package/dist/map/layout.d.ts +64 -0
- package/dist/map/layout.js +228 -0
- package/dist/map/layout.js.map +1 -0
- package/dist/map/model.d.ts +46 -0
- package/dist/map/model.js +84 -0
- package/dist/map/model.js.map +1 -0
- package/dist/map/neighbourhood.d.ts +18 -0
- package/dist/map/neighbourhood.js +137 -0
- package/dist/map/neighbourhood.js.map +1 -0
- package/dist/map/parallel.d.ts +35 -0
- package/dist/map/parallel.js +261 -0
- package/dist/map/parallel.js.map +1 -0
- package/dist/map/pieces.d.ts +12 -0
- package/dist/map/pieces.js +15 -0
- package/dist/map/pieces.js.map +1 -0
- package/dist/map/relations.d.ts +39 -0
- package/dist/map/relations.js +122 -0
- package/dist/map/relations.js.map +1 -0
- package/dist/map/route.d.ts +25 -0
- package/dist/map/route.js +165 -0
- package/dist/map/route.js.map +1 -0
- package/dist/map/strip.d.ts +29 -0
- package/dist/map/strip.js +120 -0
- package/dist/map/strip.js.map +1 -0
- package/dist/map/suggest.d.ts +21 -0
- package/dist/map/suggest.js +97 -0
- package/dist/map/suggest.js.map +1 -0
- package/dist/map/svg.d.ts +29 -0
- package/dist/map/svg.js +203 -0
- package/dist/map/svg.js.map +1 -0
- package/dist/map/themes.d.ts +64 -0
- package/dist/map/themes.js +94 -0
- package/dist/map/themes.js.map +1 -0
- package/dist/map/xml.d.ts +6 -0
- package/dist/map/xml.js +57 -0
- package/dist/map/xml.js.map +1 -0
- package/dist/map/zones.d.ts +19 -0
- package/dist/map/zones.js +46 -0
- package/dist/map/zones.js.map +1 -0
- package/dist/mcp.d.ts +2 -0
- package/dist/mcp.js +145 -0
- package/dist/mcp.js.map +1 -0
- package/dist/money.d.ts +32 -0
- package/dist/money.js +91 -0
- package/dist/money.js.map +1 -0
- package/dist/report-command.d.ts +3 -0
- package/dist/report-command.js +85 -0
- package/dist/report-command.js.map +1 -0
- package/dist/report-formats.d.ts +11 -0
- package/dist/report-formats.js +157 -0
- package/dist/report-formats.js.map +1 -0
- package/dist/reports.d.ts +105 -0
- package/dist/reports.js +247 -0
- package/dist/reports.js.map +1 -0
- package/dist/scaffold.d.ts +30 -0
- package/dist/scaffold.js +140 -0
- package/dist/scaffold.js.map +1 -0
- package/dist/schema.d.ts +345 -0
- package/dist/schema.js +120 -0
- package/dist/schema.js.map +1 -0
- package/dist/secrets.d.ts +7 -0
- package/dist/secrets.js +68 -0
- package/dist/secrets.js.map +1 -0
- package/dist/site/build.d.ts +22 -0
- package/dist/site/build.js +198 -0
- package/dist/site/build.js.map +1 -0
- package/dist/site/command.d.ts +2 -0
- package/dist/site/command.js +221 -0
- package/dist/site/command.js.map +1 -0
- package/dist/site/data.d.ts +225 -0
- package/dist/site/data.js +243 -0
- package/dist/site/data.js.map +1 -0
- package/dist/site/fs-ops.d.ts +35 -0
- package/dist/site/fs-ops.js +26 -0
- package/dist/site/fs-ops.js.map +1 -0
- package/dist/site/owners.d.ts +5 -0
- package/dist/site/owners.js +50 -0
- package/dist/site/owners.js.map +1 -0
- package/dist/site/paths.d.ts +34 -0
- package/dist/site/paths.js +48 -0
- package/dist/site/paths.js.map +1 -0
- package/dist/site/policy.d.ts +17 -0
- package/dist/site/policy.js +26 -0
- package/dist/site/policy.js.map +1 -0
- package/dist/site/publish.d.ts +14 -0
- package/dist/site/publish.js +90 -0
- package/dist/site/publish.js.map +1 -0
- package/dist/site/relative.d.ts +14 -0
- package/dist/site/relative.js +265 -0
- package/dist/site/relative.js.map +1 -0
- package/dist/site/skills-build.d.ts +22 -0
- package/dist/site/skills-build.js +126 -0
- package/dist/site/skills-build.js.map +1 -0
- package/dist/site/skills-data.d.ts +89 -0
- package/dist/site/skills-data.js +94 -0
- package/dist/site/skills-data.js.map +1 -0
- package/dist/site/staging.d.ts +19 -0
- package/dist/site/staging.js +76 -0
- package/dist/site/staging.js.map +1 -0
- package/dist/site/ui-icons.d.ts +4 -0
- package/dist/site/ui-icons.js +19 -0
- package/dist/site/ui-icons.js.map +1 -0
- package/dist/skills/command.d.ts +8 -0
- package/dist/skills/command.js +64 -0
- package/dist/skills/command.js.map +1 -0
- package/dist/skills/frontmatter.d.ts +37 -0
- package/dist/skills/frontmatter.js +219 -0
- package/dist/skills/frontmatter.js.map +1 -0
- package/dist/skills/graph.d.ts +39 -0
- package/dist/skills/graph.js +100 -0
- package/dist/skills/graph.js.map +1 -0
- package/dist/skills/ignore.d.ts +34 -0
- package/dist/skills/ignore.js +138 -0
- package/dist/skills/ignore.js.map +1 -0
- package/dist/skills/lines.d.ts +53 -0
- package/dist/skills/lines.js +221 -0
- package/dist/skills/lines.js.map +1 -0
- package/dist/skills/map-command.d.ts +28 -0
- package/dist/skills/map-command.js +533 -0
- package/dist/skills/map-command.js.map +1 -0
- package/dist/skills/mermaid.d.ts +29 -0
- package/dist/skills/mermaid.js +261 -0
- package/dist/skills/mermaid.js.map +1 -0
- package/dist/skills/metro.d.ts +8 -0
- package/dist/skills/metro.js +93 -0
- package/dist/skills/metro.js.map +1 -0
- package/dist/skills/read.d.ts +17 -0
- package/dist/skills/read.js +54 -0
- package/dist/skills/read.js.map +1 -0
- package/dist/skills/rules.d.ts +28 -0
- package/dist/skills/rules.js +57 -0
- package/dist/skills/rules.js.map +1 -0
- package/dist/skills/source.d.ts +66 -0
- package/dist/skills/source.js +281 -0
- package/dist/skills/source.js.map +1 -0
- package/dist/skills/walk.d.ts +64 -0
- package/dist/skills/walk.js +281 -0
- package/dist/skills/walk.js.map +1 -0
- package/dist/source.d.ts +40 -0
- package/dist/source.js +199 -0
- package/dist/source.js.map +1 -0
- package/dist/stdout.d.ts +2 -0
- package/dist/stdout.js +24 -0
- package/dist/stdout.js.map +1 -0
- package/dist/validate.d.ts +45 -0
- package/dist/validate.js +321 -0
- package/dist/validate.js.map +1 -0
- package/dist/views.d.ts +25 -0
- package/dist/views.js +58 -0
- package/dist/views.js.map +1 -0
- package/examples/catalogue-repository/.github/workflows/stackledger.yml +122 -0
- package/examples/catalogue-repository/README.md +96 -0
- package/examples/catalogue-repository/catalog/catalog-info.yaml +12 -0
- package/examples/hosting/Caddyfile +69 -0
- package/examples/northwind/catalog-info.yaml +680 -0
- package/examples/northwind/stackledger.yaml +16 -0
- package/examples/northwind-machine/snapshot.json +309 -0
- package/examples/northwind-skills/agents/builder.md +10 -0
- package/examples/northwind-skills/agents/reviewer.md +10 -0
- package/examples/northwind-skills/designer/SKILL.md +8 -0
- package/examples/northwind-skills/editor/SKILL.md +8 -0
- package/examples/northwind-skills/engineering/SKILL.md +12 -0
- package/examples/northwind-skills/linter/SKILL.md +8 -0
- package/examples/northwind-skills/linter/rules.md +5 -0
- package/examples/northwind-skills/publishing/SKILL.md +12 -0
- package/examples/northwind-skills/publishing/rules.md +5 -0
- package/examples/northwind-skills/spec-writer/SKILL.md +8 -0
- package/examples/northwind-skills/stackledger-skills.yaml +51 -0
- package/examples/northwind-skills/tester/SKILL.md +10 -0
- package/examples/northwind-skills/writer/SKILL.md +8 -0
- package/examples/northwind-skills/writer/rules.md +6 -0
- package/npm-shrinkwrap.json +5016 -0
- package/package.json +52 -4
- package/site/LICENSE-astroplate +21 -0
- package/site/README.md +18 -0
- package/site/package.json +6 -0
- package/site/public/brand-mark-dark.svg +7 -0
- package/site/public/favicon.svg +6 -0
- package/site/public/home-banner.svg +93 -0
- package/site/public/link-icons/email-dark.svg +7 -0
- package/site/public/link-icons/email-light.svg +6 -0
- package/site/public/link-icons/github-dark.svg +8 -0
- package/site/public/link-icons/github-light.svg +7 -0
- package/site/public/link-icons/linkedin-dark.svg +8 -0
- package/site/public/link-icons/linkedin-light.svg +7 -0
- package/site/public/link-icons/website-dark.svg +8 -0
- package/site/public/link-icons/website-light.svg +7 -0
- package/site/src/components/Footer.astro +25 -0
- package/site/src/components/Header.astro +35 -0
- package/site/src/components/Impact.astro +55 -0
- package/site/src/components/LinkOrText.astro +12 -0
- package/site/src/components/SkillItem.astro +141 -0
- package/site/src/components/SubNav.astro +40 -0
- package/site/src/components/ThemeSwitch.astro +13 -0
- package/site/src/components/Themed.astro +15 -0
- package/site/src/layouts/Base.astro +52 -0
- package/site/src/lib/site.ts +25 -0
- package/site/src/pages/[reports].astro +222 -0
- package/site/src/pages/agents/[file].astro +14 -0
- package/site/src/pages/index.astro +72 -0
- package/site/src/pages/journeys/[name].astro +50 -0
- package/site/src/pages/journeys/index.astro +37 -0
- package/site/src/pages/licences/[name].astro +56 -0
- package/site/src/pages/map/index.astro +78 -0
- package/site/src/pages/playbooks/[file].astro +14 -0
- package/site/src/pages/rules/[...rules].astro +61 -0
- package/site/src/pages/skill-map/[...map].astro +101 -0
- package/site/src/pages/skills/[...list].astro +75 -0
- package/site/src/pages/skills/[file].astro +14 -0
- package/site/src/pages/software/[name].astro +155 -0
- package/site/src/pages/software/index.astro +71 -0
- package/site/src/scripts/diagram.ts +8 -0
- package/site/src/scripts/links.ts +31 -0
- package/site/src/scripts/map.ts +133 -0
- package/site/src/scripts/software.ts +32 -0
- package/site/src/scripts/theme.ts +52 -0
- package/site/src/styles/base.css +481 -0
- package/site/src/styles/fonts.css +60 -0
- package/site/src/styles/override.css +1 -0
- package/site/src/styles/pages.css +315 -0
- package/site/src/styles/tokens.css +87 -0
- package/skills/stackledger/SKILL.md +155 -0
|
@@ -0,0 +1,315 @@
|
|
|
1
|
+
/* Page-specific styles: map, software list, item, journey and reports pages. Colours from tokens.css only. */
|
|
2
|
+
|
|
3
|
+
.kicker {
|
|
4
|
+
margin: 0 0 0.25rem;
|
|
5
|
+
color: var(--color-text-light);
|
|
6
|
+
font-size: 0.85rem;
|
|
7
|
+
font-weight: 600;
|
|
8
|
+
letter-spacing: 0.08em;
|
|
9
|
+
text-transform: uppercase;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.card-title {
|
|
13
|
+
margin: 0 0 0.75rem;
|
|
14
|
+
font-size: var(--text-h6);
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.item-grid {
|
|
18
|
+
display: grid;
|
|
19
|
+
grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
|
|
20
|
+
gap: 1.25rem;
|
|
21
|
+
margin-top: 1.5rem;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.licence-cards {
|
|
25
|
+
display: grid;
|
|
26
|
+
grid-template-columns: repeat(auto-fill, minmax(min(100%, 26rem), 1fr));
|
|
27
|
+
gap: 1rem;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.columns {
|
|
31
|
+
display: grid;
|
|
32
|
+
grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
|
|
33
|
+
gap: 0 2rem;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.columns h3 {
|
|
37
|
+
margin-top: 0.5rem;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
/* Map page. */
|
|
41
|
+
|
|
42
|
+
.map-tools {
|
|
43
|
+
display: flex;
|
|
44
|
+
flex-wrap: wrap;
|
|
45
|
+
align-items: flex-end;
|
|
46
|
+
justify-content: space-between;
|
|
47
|
+
gap: 1rem;
|
|
48
|
+
margin: 1.5rem 0 1rem;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.map-zoom {
|
|
52
|
+
display: flex;
|
|
53
|
+
gap: 0.5rem;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.map-zoom .btn {
|
|
57
|
+
min-width: 2.5rem;
|
|
58
|
+
justify-content: center;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.map-frame {
|
|
62
|
+
overflow: auto;
|
|
63
|
+
border: 1px solid var(--color-border);
|
|
64
|
+
border-radius: var(--radius);
|
|
65
|
+
background: var(--color-body);
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.map-frame.is-interactive {
|
|
69
|
+
overflow: hidden;
|
|
70
|
+
cursor: grab;
|
|
71
|
+
touch-action: none;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.map-frame.is-interactive:active {
|
|
75
|
+
cursor: grabbing;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.map-canvas svg {
|
|
79
|
+
display: block;
|
|
80
|
+
width: 100%;
|
|
81
|
+
height: auto;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.map-frame svg .is-dimmed {
|
|
85
|
+
opacity: 0.15;
|
|
86
|
+
transition: opacity 0.2s;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.map-frame svg .is-choosable,
|
|
90
|
+
.map-frame svg [data-ref^="component:"] {
|
|
91
|
+
cursor: pointer;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
.map-frame svg [data-ref^="component:"]:focus-visible {
|
|
95
|
+
outline: 3px solid var(--color-accent);
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
.line-chips {
|
|
99
|
+
display: flex;
|
|
100
|
+
flex-wrap: wrap;
|
|
101
|
+
gap: 0.5rem;
|
|
102
|
+
margin: 1rem 0 0;
|
|
103
|
+
padding: 0;
|
|
104
|
+
list-style: none;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
.line-chips .btn {
|
|
108
|
+
font-weight: 400;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
/* A pressed chip sits down on its shadow; in dark it keeps its rim. */
|
|
112
|
+
.line-chips .btn[aria-pressed="true"] {
|
|
113
|
+
box-shadow: var(--frame-pressed);
|
|
114
|
+
transform: translate(var(--ds-shadow-small), var(--ds-shadow-small));
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
.map-symbols {
|
|
118
|
+
display: flex;
|
|
119
|
+
flex-wrap: wrap;
|
|
120
|
+
gap: 0.25rem 1.5rem;
|
|
121
|
+
margin: 1rem 0 0;
|
|
122
|
+
padding: 0;
|
|
123
|
+
color: var(--color-text-light);
|
|
124
|
+
font-size: 0.9rem;
|
|
125
|
+
list-style: none;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
.map-symbols li {
|
|
129
|
+
display: flex;
|
|
130
|
+
align-items: center;
|
|
131
|
+
gap: 0.4rem;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
.map-symbol svg {
|
|
135
|
+
display: block;
|
|
136
|
+
width: 1.25rem;
|
|
137
|
+
height: 1.25rem;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
/* Software list. */
|
|
141
|
+
|
|
142
|
+
.list-tools {
|
|
143
|
+
display: flex;
|
|
144
|
+
flex-wrap: wrap;
|
|
145
|
+
align-items: flex-end;
|
|
146
|
+
gap: 1rem;
|
|
147
|
+
margin: 1.5rem 0 0.5rem;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
.list-search {
|
|
151
|
+
flex: 1 1 16rem;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
.list-search input {
|
|
155
|
+
width: 100%;
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
.no-match {
|
|
159
|
+
margin-top: 1rem;
|
|
160
|
+
font-weight: 600;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
/* Journeys. */
|
|
164
|
+
|
|
165
|
+
.journey-list {
|
|
166
|
+
display: grid;
|
|
167
|
+
grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr));
|
|
168
|
+
gap: 1rem;
|
|
169
|
+
margin: 1.5rem 0 0;
|
|
170
|
+
padding: 0;
|
|
171
|
+
list-style: none;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
.journey-card {
|
|
175
|
+
display: flex;
|
|
176
|
+
align-items: flex-start;
|
|
177
|
+
gap: 1rem;
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
.journey-card .badge {
|
|
181
|
+
margin-top: 0.3rem;
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
.journey-card .card-title {
|
|
185
|
+
margin-bottom: 0.25rem;
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
.journey-card p {
|
|
189
|
+
margin: 0;
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
.journey-title {
|
|
193
|
+
display: flex;
|
|
194
|
+
align-items: center;
|
|
195
|
+
gap: 0.75rem;
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
.journey-title .badge svg {
|
|
199
|
+
width: auto;
|
|
200
|
+
height: 1.6rem;
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
.stop-list {
|
|
204
|
+
padding-left: 1.5rem;
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
.stop-list li {
|
|
208
|
+
margin: 0.35rem 0;
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
/* Reports. */
|
|
212
|
+
|
|
213
|
+
.report section {
|
|
214
|
+
margin-top: 2rem;
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
.report h2 {
|
|
218
|
+
margin-bottom: 0.5rem;
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
.report .table-wrap + .table-wrap {
|
|
222
|
+
margin-top: 1rem;
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
.report .amount {
|
|
226
|
+
text-align: right;
|
|
227
|
+
font-variant-numeric: tabular-nums;
|
|
228
|
+
white-space: nowrap;
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
/* The division's sub-navigation under the header: Software (Map, List, Journeys, Reports) or Skills. */
|
|
232
|
+
.sub-nav ul {
|
|
233
|
+
display: flex;
|
|
234
|
+
flex-wrap: wrap;
|
|
235
|
+
gap: 0.25rem 1.5rem;
|
|
236
|
+
margin: 0;
|
|
237
|
+
padding: 0.85rem 0 0;
|
|
238
|
+
list-style: none;
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
.sub-nav a {
|
|
242
|
+
color: var(--color-text-light);
|
|
243
|
+
font-weight: 600;
|
|
244
|
+
text-decoration: none;
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
.sub-nav a:hover,
|
|
248
|
+
.sub-nav a[aria-current="page"] {
|
|
249
|
+
color: var(--color-text-dark);
|
|
250
|
+
text-decoration: underline;
|
|
251
|
+
text-underline-offset: 0.3em;
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
.line-chips a.btn {
|
|
255
|
+
text-decoration: none;
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
/* Home page (catalogue-site, Home page): a tinted banner as on brunosouzas.com, then the division cards. */
|
|
259
|
+
.home-banner {
|
|
260
|
+
padding: 3.5rem 0 3rem;
|
|
261
|
+
border-bottom: 1px solid var(--color-border);
|
|
262
|
+
background: var(--color-light);
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
.home-banner h1 {
|
|
266
|
+
margin: 0 0 0.75rem;
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
.home-banner .lead {
|
|
270
|
+
margin: 0;
|
|
271
|
+
max-width: 40rem;
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
/* The design system's banner (catalogue-site, Home banner art): full container width, its own ratio. */
|
|
275
|
+
.home-banner-art {
|
|
276
|
+
display: block;
|
|
277
|
+
width: 100%;
|
|
278
|
+
height: auto;
|
|
279
|
+
margin-top: 2rem;
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
.link-icon {
|
|
283
|
+
width: 1.5rem;
|
|
284
|
+
height: 1.5rem;
|
|
285
|
+
margin-right: 0.5rem;
|
|
286
|
+
vertical-align: middle;
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
.home-cards {
|
|
290
|
+
margin-top: 0;
|
|
291
|
+
margin-bottom: 2.5rem;
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
.home-links {
|
|
295
|
+
display: flex;
|
|
296
|
+
flex-wrap: wrap;
|
|
297
|
+
gap: 0.5rem 1.25rem;
|
|
298
|
+
margin: 0.75rem 0 0;
|
|
299
|
+
padding: 0;
|
|
300
|
+
list-style: none;
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
.home-links a,
|
|
304
|
+
.home-external a {
|
|
305
|
+
font-weight: 600;
|
|
306
|
+
}
|
|
307
|
+
|
|
308
|
+
.home-external {
|
|
309
|
+
margin: 0;
|
|
310
|
+
padding-left: 1.2rem;
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
.home-external li {
|
|
314
|
+
margin: 0.4rem 0;
|
|
315
|
+
}
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
/* Design tokens: every colour, font and size of the site (catalogue-site, Look and theme).
|
|
2
|
+
Colours, fonts and type scale come from @brunosouzas/design-system (the site tokens of
|
|
3
|
+
brunosouzas.com), copied by the build next to this file as ds-tokens.css; the accent and the
|
|
4
|
+
focus colour are stackledger's own additions.
|
|
5
|
+
Light is the default. Dark applies when the reader chose it (data-theme="dark" on <html>), or
|
|
6
|
+
when the system prefers dark and the reader made no choice. Those dark rules are more specific
|
|
7
|
+
than :root, so override.css (spec.site.colors, also :root) changes the light theme only. */
|
|
8
|
+
|
|
9
|
+
@import "./ds-tokens.css";
|
|
10
|
+
|
|
11
|
+
:root {
|
|
12
|
+
color-scheme: light;
|
|
13
|
+
|
|
14
|
+
--color-primary: var(--ds-site-light-primary);
|
|
15
|
+
--color-accent: #000f9f;
|
|
16
|
+
--color-body: var(--ds-site-light-body);
|
|
17
|
+
--color-border: var(--ds-site-light-border);
|
|
18
|
+
--color-light: var(--ds-site-light-light);
|
|
19
|
+
--color-dark: var(--ds-site-light-dark);
|
|
20
|
+
--color-text: var(--ds-site-light-text);
|
|
21
|
+
--color-text-dark: var(--ds-site-light-text-dark);
|
|
22
|
+
--color-text-light: var(--ds-site-light-text-light);
|
|
23
|
+
--color-on-primary: #ffffff;
|
|
24
|
+
|
|
25
|
+
--font-primary: var(--ds-site-font-primary);
|
|
26
|
+
--font-secondary: var(--ds-site-font-secondary);
|
|
27
|
+
|
|
28
|
+
--text-base: var(--ds-site-font-size-base);
|
|
29
|
+
--text-base-sm: var(--ds-site-font-size-base-small);
|
|
30
|
+
--text-h6: calc(var(--ds-site-heading-h6) * 1rem);
|
|
31
|
+
--text-h5: calc(var(--ds-site-heading-h5) * 1rem);
|
|
32
|
+
--text-h4: calc(var(--ds-site-heading-h4) * 1rem);
|
|
33
|
+
--text-h3: calc(var(--ds-site-heading-h3) * 1rem);
|
|
34
|
+
--text-h3-sm: calc(var(--ds-site-heading-h3-small) * 1rem);
|
|
35
|
+
--text-h2: calc(var(--ds-site-heading-h2) * 1rem);
|
|
36
|
+
--text-h2-sm: calc(var(--ds-site-heading-h2-small) * 1rem);
|
|
37
|
+
--text-h1: calc(var(--ds-site-heading-h1) * 1rem);
|
|
38
|
+
--text-h1-sm: calc(var(--ds-site-heading-h1-small) * 1rem);
|
|
39
|
+
|
|
40
|
+
--radius: 0.5rem;
|
|
41
|
+
--container: 1320px;
|
|
42
|
+
|
|
43
|
+
/* The identity's ink frame (cards, buttons, chips): ink outline and hard shadow. */
|
|
44
|
+
--frame-outline: var(--ds-outline-small) solid var(--ds-color-ink);
|
|
45
|
+
--frame-shadow: var(--ds-shadow-small) var(--ds-shadow-small) 0 var(--ds-surface-light-shadow);
|
|
46
|
+
/* What a frame keeps when it is pressed down onto its shadow: nothing in light, the rim in dark. */
|
|
47
|
+
--frame-pressed: none;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
:root[data-theme="dark"] {
|
|
51
|
+
color-scheme: dark;
|
|
52
|
+
|
|
53
|
+
--color-primary: var(--ds-site-dark-primary);
|
|
54
|
+
--color-accent: #9da8ff;
|
|
55
|
+
--color-body: var(--ds-site-dark-body);
|
|
56
|
+
--color-border: var(--ds-site-dark-border);
|
|
57
|
+
--color-light: var(--ds-site-dark-light);
|
|
58
|
+
--color-dark: var(--ds-site-dark-dark);
|
|
59
|
+
--color-text: var(--ds-site-dark-text);
|
|
60
|
+
--color-text-dark: var(--ds-site-dark-text-dark);
|
|
61
|
+
--color-text-light: var(--ds-site-dark-text-light);
|
|
62
|
+
--color-on-primary: #040404;
|
|
63
|
+
|
|
64
|
+
/* On a dark page the ink outline gets a light rim and the shadow turns indigo, as on the map. */
|
|
65
|
+
--frame-shadow: 0 0 0 var(--ds-surface-dark-rim-width) var(--ds-surface-dark-rim), var(--ds-shadow-small) var(--ds-shadow-small) 0 var(--ds-surface-dark-shadow);
|
|
66
|
+
--frame-pressed: 0 0 0 var(--ds-surface-dark-rim-width) var(--ds-surface-dark-rim);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
@media (prefers-color-scheme: dark) {
|
|
70
|
+
:root:not([data-theme="light"]) {
|
|
71
|
+
color-scheme: dark;
|
|
72
|
+
|
|
73
|
+
--color-primary: var(--ds-site-dark-primary);
|
|
74
|
+
--color-accent: #9da8ff;
|
|
75
|
+
--color-body: var(--ds-site-dark-body);
|
|
76
|
+
--color-border: var(--ds-site-dark-border);
|
|
77
|
+
--color-light: var(--ds-site-dark-light);
|
|
78
|
+
--color-dark: var(--ds-site-dark-dark);
|
|
79
|
+
--color-text: var(--ds-site-dark-text);
|
|
80
|
+
--color-text-dark: var(--ds-site-dark-text-dark);
|
|
81
|
+
--color-text-light: var(--ds-site-dark-text-light);
|
|
82
|
+
--color-on-primary: #040404;
|
|
83
|
+
|
|
84
|
+
--frame-shadow: 0 0 0 var(--ds-surface-dark-rim-width) var(--ds-surface-dark-rim), var(--ds-shadow-small) var(--ds-shadow-small) 0 var(--ds-surface-dark-shadow);
|
|
85
|
+
--frame-pressed: 0 0 0 var(--ds-surface-dark-rim-width) var(--ds-surface-dark-rim);
|
|
86
|
+
}
|
|
87
|
+
}
|
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: stackledger
|
|
3
|
+
description: "Use when maintaining a stackledger catalogue: adding a software item or licence, linking a licence to the software that uses it, drawing a journey line, placing a station on the map, bringing the catalogue in step with a Mac through stackledger drift, or checking catalogue YAML with stackledger validate or the stackledger MCP tools."
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# stackledger catalogue
|
|
7
|
+
|
|
8
|
+
A stackledger catalogue is a folder of YAML files in the Backstage format, kept in its own Git repository. You maintain it by editing those files, then checking them with `validate`. The full reference is [docs/catalogue-format.md](../../docs/catalogue-format.md); the MCP tools are in [docs/mcp.md](../../docs/mcp.md). The examples below describe the fictitious Northwind Studio.
|
|
9
|
+
|
|
10
|
+
## Rules
|
|
11
|
+
|
|
12
|
+
- **Never write a secret.** No password, token, API key, private key or card number, in any field. To say where a credential lives, name the password-manager item in `spec.licence.vaultItem` (for example `Northwind Editor subscription`).
|
|
13
|
+
- **Keep prices and renewal terms in licence fields** (`cost`, `currency`, `cycle`, `renewsOn`, `note`), never in `metadata.description`, titles, tags or annotations: the staff view hides licence fields, not free text.
|
|
14
|
+
- **Do not invent facts.** If you do not know a cost, a currency or a renewal date, write `unknown`. Never guess an owner: ask.
|
|
15
|
+
- **Names** are 1 to 63 ASCII letters, digits, `.`, `_` and `-`, starting and ending with a letter or digit, unique per kind ignoring case. Prefix licences with `licence-` by convention.
|
|
16
|
+
- **References** are `kind:name`: `component:editor`, `resource:licence-editor`. Always write the kind.
|
|
17
|
+
- **Check every edit** with `validate` (below) and fix every error before you finish. Warnings are allowed but read them.
|
|
18
|
+
|
|
19
|
+
## Before you edit
|
|
20
|
+
|
|
21
|
+
With the MCP server configured, ask it first instead of reading every file:
|
|
22
|
+
|
|
23
|
+
- `find_items` with a `query` to see whether the item already exists.
|
|
24
|
+
- `get_item` with a `ref` to see an item, what depends on it and its lines.
|
|
25
|
+
- `impact` before removing an item, to see what would break.
|
|
26
|
+
- `gaps` to find components on no line and licences nobody uses.
|
|
27
|
+
|
|
28
|
+
Without it, search the folder for `name: <name>`.
|
|
29
|
+
|
|
30
|
+
## Add a software item
|
|
31
|
+
|
|
32
|
+
Create one file per item, for example `apps/editor.yaml`:
|
|
33
|
+
|
|
34
|
+
```yaml
|
|
35
|
+
apiVersion: backstage.io/v1alpha1
|
|
36
|
+
kind: Component
|
|
37
|
+
metadata:
|
|
38
|
+
name: editor
|
|
39
|
+
title: Northwind Editor
|
|
40
|
+
description: Shared document editor
|
|
41
|
+
spec:
|
|
42
|
+
type: tool
|
|
43
|
+
lifecycle: active
|
|
44
|
+
owner: user:alex
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
`spec.type`, `spec.lifecycle` and `spec.owner` are required free text. To place it in a zone, add the label `stackledger/zone: <zone>` under `metadata.labels`; the zone must be declared in the `MapLayout`.
|
|
48
|
+
|
|
49
|
+
## Add a licence and link it
|
|
50
|
+
|
|
51
|
+
A licence is a `Resource` with `spec.type: licence`:
|
|
52
|
+
|
|
53
|
+
```yaml
|
|
54
|
+
apiVersion: backstage.io/v1alpha1
|
|
55
|
+
kind: Resource
|
|
56
|
+
metadata:
|
|
57
|
+
name: licence-editor
|
|
58
|
+
spec:
|
|
59
|
+
type: licence
|
|
60
|
+
owner: user:alex
|
|
61
|
+
licence:
|
|
62
|
+
vendor: Northwind Studio
|
|
63
|
+
status: active
|
|
64
|
+
cycle: yearly
|
|
65
|
+
cost: 120
|
|
66
|
+
currency: GBP
|
|
67
|
+
renewsOn: 2027-06-30
|
|
68
|
+
seats: 2
|
|
69
|
+
paidBy: company
|
|
70
|
+
vaultItem: Northwind Editor subscription
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
- `status`: `active`, `to-confirm`, `to-buy`, `cancelled` or `expired`.
|
|
74
|
+
- `cycle`: `monthly`, `yearly`, `one-off`, `none` or `unknown`.
|
|
75
|
+
- `cost`: a number of 0 or more, or `unknown`: the price of one `cycle` for the whole licence (all seats), as on the invoice. `currency`: three capital letters, or `unknown`.
|
|
76
|
+
- `renewsOn`: a real date `YYYY-MM-DD`, `not-applicable` or `unknown`.
|
|
77
|
+
- Only the fields above are allowed inside `spec.licence`; `renews_on` or `price` are errors.
|
|
78
|
+
|
|
79
|
+
Link it from the software that uses it, in the component's `spec.dependsOn`:
|
|
80
|
+
|
|
81
|
+
```yaml
|
|
82
|
+
spec:
|
|
83
|
+
dependsOn: [resource:licence-editor]
|
|
84
|
+
```
|
|
85
|
+
|
|
86
|
+
Dependencies go on the component only: a licence's own `dependsOn` is ignored.
|
|
87
|
+
|
|
88
|
+
## Add a line
|
|
89
|
+
|
|
90
|
+
A line is a journey, an ordered list of components that a piece of work passes through, such as "ship a feature". It is not a category; categories are zones.
|
|
91
|
+
|
|
92
|
+
```yaml
|
|
93
|
+
apiVersion: stackledger/v1alpha1
|
|
94
|
+
kind: Line
|
|
95
|
+
metadata:
|
|
96
|
+
name: ship
|
|
97
|
+
title: Ship a feature
|
|
98
|
+
spec:
|
|
99
|
+
code: S
|
|
100
|
+
color: '#4466FF'
|
|
101
|
+
stops: [component:editor, component:forge]
|
|
102
|
+
```
|
|
103
|
+
|
|
104
|
+
At least two stops, each an existing component, each at most once. Quote the colour: `#` starts a YAML comment.
|
|
105
|
+
|
|
106
|
+
## Place a station
|
|
107
|
+
|
|
108
|
+
There is one `MapLayout` per catalogue. Give each stop a free `[column, row]` cell of non-negative integers under `spec.stations`:
|
|
109
|
+
|
|
110
|
+
```yaml
|
|
111
|
+
apiVersion: stackledger/v1alpha1
|
|
112
|
+
kind: MapLayout
|
|
113
|
+
metadata:
|
|
114
|
+
name: northwind
|
|
115
|
+
spec:
|
|
116
|
+
stations:
|
|
117
|
+
component:editor: [0, 0]
|
|
118
|
+
component:forge: [2, 0]
|
|
119
|
+
zones:
|
|
120
|
+
- name: delivery
|
|
121
|
+
title: Delivery
|
|
122
|
+
color: '#4466FF'
|
|
123
|
+
```
|
|
124
|
+
|
|
125
|
+
Two stations cannot share a cell. A stop without a position, or a position for a component on no line, is a warning.
|
|
126
|
+
|
|
127
|
+
## Bring the catalogue in step with a Mac
|
|
128
|
+
|
|
129
|
+
`stackledger discover` records what a Mac has installed; `stackledger drift` compares it with the catalogue through the `stackledger/<source>` annotations ([docs/discovery.md](../../docs/discovery.md)). Neither edits the catalogue: you propose the changes in a branch and a pull request, and a person reviews them.
|
|
130
|
+
|
|
131
|
+
1. On the Mac: `node dist/cli.js discover` (read-only; it writes only `~/.stackledger/<machine>/snapshot.json`). Never commit the snapshot: it holds the user name and paths.
|
|
132
|
+
2. `node dist/cli.js drift /path/to/catalogue --format json` and read the object:
|
|
133
|
+
- `notDeclared`: each entry's `annotation` is the line to add, for example `stackledger/cask: northwind-editor`. When `suggestedComponents` is not empty, add the annotation to those components (an app their cask installs). An entry with `note: cannot be annotated` cannot be matched; mention it, do not work around it.
|
|
134
|
+
- `missing`: a component lists something not installed. Ask whether it was removed (its `lifecycle` may need to change) or the identifier is wrong; `incomplete: true` means the source skipped some entries, so it may be installed after all.
|
|
135
|
+
- `notChecked`: the source was skipped or failed on that Mac. Conclude nothing.
|
|
136
|
+
- `shared`: two components claim one item; `validate` warns too. Ask which one owns it.
|
|
137
|
+
- `proposedRelations`: `from dependsOn to`, with the items that suggest it in `reasons`. Add it to `from`'s `spec.dependsOn` only when it is true for the people who use the catalogue.
|
|
138
|
+
- `counts.dependencies` and `counts.macos` are only counted: dependency formulae and Apple's own items need no component.
|
|
139
|
+
3. For items that need a new component, run `drift` again with `--scaffold /path/outside/the/catalogue/new-items` (a folder that does not exist yet). Review each draft: replace `owner: unknown` with the real owner, which you ask for and never guess; write the description; add it to lines and the map only when you know the journey. Never invent a licence, cost or renewal date for it. Then move it into the catalogue.
|
|
140
|
+
4. Run `validate`, fix every error, and open a pull request that lists what you added, the relations you proposed and the questions left open.
|
|
141
|
+
|
|
142
|
+
Annotation values are comma-separated identifiers; quote an App Store identifier (`stackledger/mas: "1234567890"`) so YAML reads it as text.
|
|
143
|
+
|
|
144
|
+
## Validate
|
|
145
|
+
|
|
146
|
+
Run one of these after every edit:
|
|
147
|
+
|
|
148
|
+
- MCP: call the `validate` tool (offered in the `full` view only).
|
|
149
|
+
- Command line, from a stackledger clone: `node dist/cli.js validate /path/to/catalogue`.
|
|
150
|
+
|
|
151
|
+
Each problem is `<path>:<line>:<column> <error|warning> <field> <message>`. Exit code 0 means no errors, 1 means errors, 2 means the command or the folder is wrong. Fix the errors, run it again, and report what you changed and the final counts.
|
|
152
|
+
|
|
153
|
+
To check the costs, print the licence report: `node dist/cli.js report /path/to/catalogue` (renewals in the next 90 days, cost per month and year per currency, and the licences whose cost, currency or cycle is `unknown`; see [docs/reports.md](../../docs/reports.md)).
|
|
154
|
+
|
|
155
|
+
To see the result as the website, build both sites into a folder outside the catalogue: `node dist/cli.js build /path/to/catalogue --out /path/to/out`. It needs no network; publish only `full/`, `staff/` (absent with `spec.sites: [full]`), `_headers`, `robots.txt` and `_redirects` from it ([docs/site.md](../../docs/site.md)).
|