@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,225 @@
|
|
|
1
|
+
/** SiteData: the one plain JSON object a site's Astro pages read, built from one view only.
|
|
2
|
+
*
|
|
3
|
+
* Why: pages never import the catalogue code (design D1). Every text, link, list and SVG a page
|
|
4
|
+
* shows is prepared here from applyView's output, so the staff site cannot reach a hidden value.
|
|
5
|
+
* Call buildSiteData(catalogue, 'staff', version) or buildSiteData(catalogue, 'full', version, date).
|
|
6
|
+
*
|
|
7
|
+
* The staff data never reads the date (the map model ignores it for staff), so staff output depends
|
|
8
|
+
* only on what the staff view serves. A full build without a real date throws. Links are paths from
|
|
9
|
+
* the site's root without a leading slash ('software/editor/'); the layout makes them relative.
|
|
10
|
+
* Owners show by name when `owners` (from src/site/owners.ts) names them, else as the raw reference.
|
|
11
|
+
* The map is drawn without its title band and legend: the page shows both in HTML (`symbols`).
|
|
12
|
+
*
|
|
13
|
+
* The full data also carries the licence report (src/reports.ts) for the Reports page, at the map's
|
|
14
|
+
* date with a 90-day window, and the full build returns the renewal calendar text (src/ics.ts) for
|
|
15
|
+
* renewals.ics. Only FullSiteData has a `report` field, so staff data holding one is a type error.
|
|
16
|
+
*/
|
|
17
|
+
import { type IconName } from './ui-icons.js';
|
|
18
|
+
import { type MapGeometry } from '../map/layout.js';
|
|
19
|
+
import { type ViewName } from '../views.js';
|
|
20
|
+
import type { Catalogue } from '../validate.js';
|
|
21
|
+
import { HOME_LINK_ICONS, type SiteColorName } from '../schema.js';
|
|
22
|
+
import type { SkillsData } from './skills-data.js';
|
|
23
|
+
export declare const DEFAULT_TITLE = "stackledger";
|
|
24
|
+
/** The home banner's text when `spec.site.home.text` is not set (catalogue-site, Home page). */
|
|
25
|
+
export declare const DEFAULT_HOME_TEXT = "Your software and skills, mapped.";
|
|
26
|
+
/** The renewal window of the site's Reports page and calendar (licence-reports, Source and date). */
|
|
27
|
+
export declare const REPORT_DAYS = 90;
|
|
28
|
+
export declare const CALENDAR_FILE = "renewals.ics";
|
|
29
|
+
export interface Link {
|
|
30
|
+
ref: string;
|
|
31
|
+
title: string;
|
|
32
|
+
href?: string;
|
|
33
|
+
}
|
|
34
|
+
export interface Field {
|
|
35
|
+
label: string;
|
|
36
|
+
value: string;
|
|
37
|
+
}
|
|
38
|
+
export interface Themed {
|
|
39
|
+
light: string;
|
|
40
|
+
dark: string;
|
|
41
|
+
}
|
|
42
|
+
export interface Impact {
|
|
43
|
+
dependants: (Link & {
|
|
44
|
+
depth: number;
|
|
45
|
+
})[];
|
|
46
|
+
lines: Link[];
|
|
47
|
+
truncated: boolean;
|
|
48
|
+
}
|
|
49
|
+
export interface LineSummary {
|
|
50
|
+
ref: string;
|
|
51
|
+
slug: string;
|
|
52
|
+
title: string;
|
|
53
|
+
badge: string;
|
|
54
|
+
color: string;
|
|
55
|
+
badgeSvg: string;
|
|
56
|
+
stops: number;
|
|
57
|
+
href: string;
|
|
58
|
+
}
|
|
59
|
+
export interface SoftwareRow {
|
|
60
|
+
ref: string;
|
|
61
|
+
href: string;
|
|
62
|
+
title: string;
|
|
63
|
+
kind: 'component' | 'licence';
|
|
64
|
+
type: string;
|
|
65
|
+
state: string;
|
|
66
|
+
owner: string;
|
|
67
|
+
zone: string;
|
|
68
|
+
}
|
|
69
|
+
export interface ComponentPage {
|
|
70
|
+
ref: string;
|
|
71
|
+
slug: string;
|
|
72
|
+
name: string;
|
|
73
|
+
title: string;
|
|
74
|
+
description?: string;
|
|
75
|
+
type: string;
|
|
76
|
+
lifecycle: string;
|
|
77
|
+
owner: string;
|
|
78
|
+
zone?: string;
|
|
79
|
+
tags: string[];
|
|
80
|
+
licences: (Link & {
|
|
81
|
+
fields: Field[];
|
|
82
|
+
})[];
|
|
83
|
+
journeys: Link[];
|
|
84
|
+
unresolved: string[];
|
|
85
|
+
impact: Impact;
|
|
86
|
+
neighbourhood: Themed & {
|
|
87
|
+
dependencies: Link[];
|
|
88
|
+
dependants: Link[];
|
|
89
|
+
};
|
|
90
|
+
}
|
|
91
|
+
export interface LicencePage {
|
|
92
|
+
ref: string;
|
|
93
|
+
slug: string;
|
|
94
|
+
name: string;
|
|
95
|
+
title: string;
|
|
96
|
+
owner: string;
|
|
97
|
+
fields: Field[];
|
|
98
|
+
usedBy: Link[];
|
|
99
|
+
impact: Impact;
|
|
100
|
+
}
|
|
101
|
+
export interface JourneyPage extends LineSummary {
|
|
102
|
+
strip: Themed;
|
|
103
|
+
stopList: (Link & {
|
|
104
|
+
lines: Link[];
|
|
105
|
+
})[];
|
|
106
|
+
}
|
|
107
|
+
/** Report amounts as the page shows them: two decimals, or `—` when no complete licence adds to it. */
|
|
108
|
+
export interface MoneyRow {
|
|
109
|
+
currency: string;
|
|
110
|
+
monthly: string;
|
|
111
|
+
yearly: string;
|
|
112
|
+
incomplete: number;
|
|
113
|
+
}
|
|
114
|
+
export interface OneOffMoneyRow {
|
|
115
|
+
currency: string;
|
|
116
|
+
total: string;
|
|
117
|
+
incomplete: number;
|
|
118
|
+
}
|
|
119
|
+
export interface ReportRenewal extends Link {
|
|
120
|
+
date: string;
|
|
121
|
+
vendor: string;
|
|
122
|
+
cycle: string;
|
|
123
|
+
cost: string;
|
|
124
|
+
}
|
|
125
|
+
export interface ReportGrouping {
|
|
126
|
+
key: 'owner' | 'payer' | 'zone';
|
|
127
|
+
title: string;
|
|
128
|
+
column: string;
|
|
129
|
+
groups: {
|
|
130
|
+
label: string;
|
|
131
|
+
synthetic: boolean;
|
|
132
|
+
rows: MoneyRow[];
|
|
133
|
+
}[];
|
|
134
|
+
}
|
|
135
|
+
export interface ReportPage {
|
|
136
|
+
date: string;
|
|
137
|
+
to: string;
|
|
138
|
+
days: number;
|
|
139
|
+
empty: boolean;
|
|
140
|
+
calendar: string;
|
|
141
|
+
renewals: ReportRenewal[];
|
|
142
|
+
overdue: ReportRenewal[];
|
|
143
|
+
unknownDates: Link[];
|
|
144
|
+
recurring: MoneyRow[];
|
|
145
|
+
groupings: ReportGrouping[];
|
|
146
|
+
oneOff: {
|
|
147
|
+
items: (Link & {
|
|
148
|
+
cost: string;
|
|
149
|
+
renewsOn: string;
|
|
150
|
+
})[];
|
|
151
|
+
totals: OneOffMoneyRow[];
|
|
152
|
+
};
|
|
153
|
+
planned: {
|
|
154
|
+
items: (Link & {
|
|
155
|
+
cycle: string;
|
|
156
|
+
cost: string;
|
|
157
|
+
monthly: string;
|
|
158
|
+
yearly: string;
|
|
159
|
+
})[];
|
|
160
|
+
recurring: MoneyRow[];
|
|
161
|
+
oneOff: OneOffMoneyRow[];
|
|
162
|
+
};
|
|
163
|
+
incomplete: (Link & {
|
|
164
|
+
status: string;
|
|
165
|
+
unknown: string;
|
|
166
|
+
})[];
|
|
167
|
+
}
|
|
168
|
+
export interface HomeLink {
|
|
169
|
+
title: string;
|
|
170
|
+
url: string;
|
|
171
|
+
description?: string;
|
|
172
|
+
icon?: (typeof HOME_LINK_ICONS)[number];
|
|
173
|
+
}
|
|
174
|
+
interface SiteBase {
|
|
175
|
+
/** Interface icons inlined in buttons (src/site/ui-icons.ts). */
|
|
176
|
+
icons: Record<IconName, string>;
|
|
177
|
+
version: string;
|
|
178
|
+
title: string;
|
|
179
|
+
colors: Partial<Record<SiteColorName, string>>;
|
|
180
|
+
/** The home page's banner text and links (catalogue-site, Home page and Home links). */
|
|
181
|
+
home: {
|
|
182
|
+
text: string;
|
|
183
|
+
links: HomeLink[];
|
|
184
|
+
};
|
|
185
|
+
map: Themed & {
|
|
186
|
+
lines: LineSummary[];
|
|
187
|
+
zones: {
|
|
188
|
+
name: string;
|
|
189
|
+
title: string;
|
|
190
|
+
}[];
|
|
191
|
+
symbols: (Themed & {
|
|
192
|
+
label: string;
|
|
193
|
+
})[];
|
|
194
|
+
};
|
|
195
|
+
rows: SoftwareRow[];
|
|
196
|
+
filters: {
|
|
197
|
+
kind: string[];
|
|
198
|
+
zone: string[];
|
|
199
|
+
state: string[];
|
|
200
|
+
owner: string[];
|
|
201
|
+
};
|
|
202
|
+
components: ComponentPage[];
|
|
203
|
+
licences: LicencePage[];
|
|
204
|
+
journeys: JourneyPage[];
|
|
205
|
+
/** The Skills section (src/site/skills-data.ts), the same object in every view; absent without a skill set. */
|
|
206
|
+
skills?: SkillsData;
|
|
207
|
+
}
|
|
208
|
+
export interface StaffSiteData extends SiteBase {
|
|
209
|
+
view: 'staff';
|
|
210
|
+
}
|
|
211
|
+
export interface FullSiteData extends SiteBase {
|
|
212
|
+
view: 'full';
|
|
213
|
+
report: ReportPage;
|
|
214
|
+
}
|
|
215
|
+
export type SiteData = StaffSiteData | FullSiteData;
|
|
216
|
+
/** The site title, as the header shows it; also the calendar name of `stackledger report --format ics`. */
|
|
217
|
+
export declare function siteTitle(catalogue: Catalogue): string;
|
|
218
|
+
/** SiteData of one view, plus the full map geometry for the build report (suggestions, unrouted
|
|
219
|
+
* hops) and, for the full view only, the text of renewals.ics. */
|
|
220
|
+
export declare function buildSiteData(catalogue: Catalogue, view: ViewName, version: string, date?: string, owners?: ReadonlyMap<string, string>): {
|
|
221
|
+
data: SiteData;
|
|
222
|
+
geometry: MapGeometry;
|
|
223
|
+
calendar?: string;
|
|
224
|
+
};
|
|
225
|
+
export {};
|
|
@@ -0,0 +1,243 @@
|
|
|
1
|
+
/** SiteData: the one plain JSON object a site's Astro pages read, built from one view only.
|
|
2
|
+
*
|
|
3
|
+
* Why: pages never import the catalogue code (design D1). Every text, link, list and SVG a page
|
|
4
|
+
* shows is prepared here from applyView's output, so the staff site cannot reach a hidden value.
|
|
5
|
+
* Call buildSiteData(catalogue, 'staff', version) or buildSiteData(catalogue, 'full', version, date).
|
|
6
|
+
*
|
|
7
|
+
* The staff data never reads the date (the map model ignores it for staff), so staff output depends
|
|
8
|
+
* only on what the staff view serves. A full build without a real date throws. Links are paths from
|
|
9
|
+
* the site's root without a leading slash ('software/editor/'); the layout makes them relative.
|
|
10
|
+
* Owners show by name when `owners` (from src/site/owners.ts) names them, else as the raw reference.
|
|
11
|
+
* The map is drawn without its title band and legend: the page shows both in HTML (`symbols`).
|
|
12
|
+
*
|
|
13
|
+
* The full data also carries the licence report (src/reports.ts) for the Reports page, at the map's
|
|
14
|
+
* date with a 90-day window, and the full build returns the renewal calendar text (src/ics.ts) for
|
|
15
|
+
* renewals.ics. Only FullSiteData has a `report` field, so staff data holding one is a type error.
|
|
16
|
+
*/
|
|
17
|
+
import { siteIcons } from './ui-icons.js';
|
|
18
|
+
import { compareRefs } from '../identity.js';
|
|
19
|
+
import { buildGraph, impact, linesOf, summary } from '../graph.js';
|
|
20
|
+
import { buildMapModel } from '../map/model.js';
|
|
21
|
+
import { layoutMap } from '../map/layout.js';
|
|
22
|
+
import { neighbourhood, renderNeighbourhood } from '../map/neighbourhood.js';
|
|
23
|
+
import { renderLineBadge, renderStrip, strip } from '../map/strip.js';
|
|
24
|
+
import { renderSvg, renderSymbol } from '../map/svg.js';
|
|
25
|
+
import { displayOwner } from './owners.js';
|
|
26
|
+
import { inkOf, themes, widestInk } from '../map/themes.js';
|
|
27
|
+
import { applyView, resolveHidden, settingsInError } from '../views.js';
|
|
28
|
+
import { licenceFields } from '../schema.js';
|
|
29
|
+
import { calendarNamespace, renderCalendar } from '../ics.js';
|
|
30
|
+
import { formatAmount } from '../money.js';
|
|
31
|
+
import { buildReport } from '../reports.js';
|
|
32
|
+
export const DEFAULT_TITLE = 'stackledger';
|
|
33
|
+
/** The home banner's text when `spec.site.home.text` is not set (catalogue-site, Home page). */
|
|
34
|
+
export const DEFAULT_HOME_TEXT = 'Your software and skills, mapped.';
|
|
35
|
+
/** The renewal window of the site's Reports page and calendar (licence-reports, Source and date). */
|
|
36
|
+
export const REPORT_DAYS = 90;
|
|
37
|
+
export const CALENDAR_FILE = 'renewals.ics';
|
|
38
|
+
const fieldLabels = {
|
|
39
|
+
vendor: 'Vendor', status: 'Status', cycle: 'Cycle', cost: 'Cost', currency: 'Currency', renewsOn: 'Renews on',
|
|
40
|
+
seats: 'Seats', paidBy: 'Paid by', vaultItem: 'Vault item', note: 'Note',
|
|
41
|
+
};
|
|
42
|
+
/** Page path of an item, or undefined when it has no page (other resources, lines). */
|
|
43
|
+
function pagePath(item) {
|
|
44
|
+
if (item.kind === 'component')
|
|
45
|
+
return `software/${item.name.toLowerCase()}/`;
|
|
46
|
+
if (item.kind === 'licence')
|
|
47
|
+
return `licences/${item.name.toLowerCase()}/`;
|
|
48
|
+
return undefined;
|
|
49
|
+
}
|
|
50
|
+
function titleOf(item) {
|
|
51
|
+
return summary(item).title ?? item.name;
|
|
52
|
+
}
|
|
53
|
+
/** The licence fields the view kept, in catalogue order. */
|
|
54
|
+
function fields(licence) {
|
|
55
|
+
const details = (licence.spec.licence ?? {});
|
|
56
|
+
return licenceFields.filter(field => details[field] !== undefined).map(field => ({ label: fieldLabels[field], value: String(details[field]) }));
|
|
57
|
+
}
|
|
58
|
+
/** Title, colours and home from spec.site; the defaults, and no links, when the Settings in use has an error. */
|
|
59
|
+
function siteSettings(catalogue) {
|
|
60
|
+
const site = settingsInError(catalogue) ? undefined : catalogue.served.settings[0]?.spec.site;
|
|
61
|
+
const colors = {};
|
|
62
|
+
for (const [key, value] of Object.entries(site?.colors ?? {}))
|
|
63
|
+
if (value !== undefined)
|
|
64
|
+
colors[key] = value;
|
|
65
|
+
const links = (site?.home?.links ?? []).map(link => ({ title: link.title, url: link.url, ...(link.description === undefined ? {} : { description: link.description }), ...(link.icon === undefined ? {} : { icon: link.icon }) }));
|
|
66
|
+
return { title: site?.title ?? DEFAULT_TITLE, colors, home: { text: site?.home?.text ?? DEFAULT_HOME_TEXT, links } };
|
|
67
|
+
}
|
|
68
|
+
/** The site title, as the header shows it; also the calendar name of `stackledger report --format ics`. */
|
|
69
|
+
export function siteTitle(catalogue) {
|
|
70
|
+
return siteSettings(catalogue).title;
|
|
71
|
+
}
|
|
72
|
+
class PageBuilder {
|
|
73
|
+
graph;
|
|
74
|
+
model;
|
|
75
|
+
owners;
|
|
76
|
+
drawn;
|
|
77
|
+
constructor(graph, model, owners) {
|
|
78
|
+
this.graph = graph;
|
|
79
|
+
this.model = model;
|
|
80
|
+
this.owners = owners;
|
|
81
|
+
this.drawn = new Map(model.lines.map(line => [line.ref.toLowerCase(), line]));
|
|
82
|
+
}
|
|
83
|
+
link(ref) {
|
|
84
|
+
const item = this.graph.items.get(ref.toLowerCase());
|
|
85
|
+
const href = item.kind === 'line' ? this.lineHref(item.ref) : pagePath(item);
|
|
86
|
+
return { ref: item.ref, title: titleOf(item), ...(href === undefined ? {} : { href }) };
|
|
87
|
+
}
|
|
88
|
+
/** A line links to its journey page only when it is drawn. */
|
|
89
|
+
lineHref(ref) {
|
|
90
|
+
const line = this.drawn.get(ref.toLowerCase());
|
|
91
|
+
return line ? `journeys/${line.name.toLowerCase()}/` : undefined;
|
|
92
|
+
}
|
|
93
|
+
nodeLink(node) {
|
|
94
|
+
return this.link(node.ref);
|
|
95
|
+
}
|
|
96
|
+
impact(item) {
|
|
97
|
+
const result = impact(this.graph, item);
|
|
98
|
+
return {
|
|
99
|
+
dependants: result.dependants.map(entry => ({ ...this.link(entry.ref), depth: entry.depth })),
|
|
100
|
+
lines: result.lines.map(ref => this.link(ref)),
|
|
101
|
+
truncated: result.truncated,
|
|
102
|
+
};
|
|
103
|
+
}
|
|
104
|
+
component(item) {
|
|
105
|
+
const { metadata, spec } = item.entity;
|
|
106
|
+
const near = neighbourhood(this.graph, item);
|
|
107
|
+
const licences = (this.graph.dependsOn.get(item.key) ?? [])
|
|
108
|
+
.map(ref => this.graph.items.get(ref.toLowerCase()))
|
|
109
|
+
.filter((dependency) => dependency.kind === 'licence')
|
|
110
|
+
.sort((one, two) => compareRefs(one.ref, two.ref))
|
|
111
|
+
.map(licence => ({ ...this.link(licence.ref), fields: fields(licence.entity) }));
|
|
112
|
+
const zone = summary(item).zone;
|
|
113
|
+
return {
|
|
114
|
+
ref: item.ref, slug: item.name.toLowerCase(), name: item.name, title: titleOf(item),
|
|
115
|
+
...(metadata.description === undefined ? {} : { description: metadata.description }),
|
|
116
|
+
type: spec.type, lifecycle: spec.lifecycle, owner: displayOwner(this.owners, spec.owner), ...(zone === undefined ? {} : { zone }),
|
|
117
|
+
tags: (metadata.tags ?? []).filter(tag => typeof tag === 'string'),
|
|
118
|
+
licences,
|
|
119
|
+
journeys: linesOf(this.graph, item).map(ref => this.link(ref)),
|
|
120
|
+
unresolved: [...this.graph.unresolved.get(item.key) ?? []],
|
|
121
|
+
impact: this.impact(item),
|
|
122
|
+
neighbourhood: {
|
|
123
|
+
...themed(theme => renderNeighbourhood(near, theme)),
|
|
124
|
+
dependencies: near.dependencies.map(node => this.nodeLink(node)),
|
|
125
|
+
dependants: near.dependants.map(node => this.nodeLink(node)),
|
|
126
|
+
},
|
|
127
|
+
};
|
|
128
|
+
}
|
|
129
|
+
licence(item) {
|
|
130
|
+
const near = neighbourhood(this.graph, item);
|
|
131
|
+
return {
|
|
132
|
+
ref: item.ref, slug: item.name.toLowerCase(), name: item.name, title: titleOf(item), owner: displayOwner(this.owners, item.entity.spec.owner),
|
|
133
|
+
fields: fields(item.entity),
|
|
134
|
+
usedBy: near.dependants.map(node => this.nodeLink(node)),
|
|
135
|
+
impact: this.impact(item),
|
|
136
|
+
};
|
|
137
|
+
}
|
|
138
|
+
lineSummary(line) {
|
|
139
|
+
return {
|
|
140
|
+
ref: line.ref, slug: line.name.toLowerCase(), title: line.title, badge: line.badge, color: line.color,
|
|
141
|
+
badgeSvg: renderLineBadge(line), stops: line.stops.length, href: this.lineHref(line.ref),
|
|
142
|
+
};
|
|
143
|
+
}
|
|
144
|
+
journey(line) {
|
|
145
|
+
const input = strip(this.model, line);
|
|
146
|
+
return {
|
|
147
|
+
...this.lineSummary(line),
|
|
148
|
+
strip: themed(theme => renderStrip(input, theme)),
|
|
149
|
+
stopList: input.stops.map(stop => ({ ...this.link(stop.ref), lines: stop.interchanges.map(other => this.link(other.ref)) })),
|
|
150
|
+
};
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
const NO_AMOUNT = '—';
|
|
154
|
+
const shown = (amount) => (amount === null ? NO_AMOUNT : formatAmount(amount));
|
|
155
|
+
const currencyLabel = (currency) => currency ?? 'Unknown currency';
|
|
156
|
+
const moneyRows = (rows) => rows.map(row => ({ currency: currencyLabel(row.currency), monthly: shown(row.monthly), yearly: shown(row.yearly), incomplete: row.incomplete }));
|
|
157
|
+
const oneOffRows = (rows) => rows.map(row => ({ currency: currencyLabel(row.currency), total: shown(row.total), incomplete: row.incomplete }));
|
|
158
|
+
const priced = (cost, currency) => (cost === null ? 'unknown' : `${formatAmount(cost)} ${currency ?? 'unknown currency'}`);
|
|
159
|
+
/** The Reports page's data: the report's lists with page links and shown amounts. */
|
|
160
|
+
function reportPage(report, pages) {
|
|
161
|
+
const link = (entry) => pages.link(entry.ref);
|
|
162
|
+
const renewal = (entry) => ({ ...link(entry), date: entry.renewsOn, vendor: entry.vendor, cycle: entry.cycle, cost: priced(entry.cost, entry.currency) });
|
|
163
|
+
const grouping = (key, title, column, groups) => ({ key, title, column, groups: groups.map(group => ({ label: group.label, synthetic: group.synthetic, rows: moneyRows(group.totals) })) });
|
|
164
|
+
return {
|
|
165
|
+
date: report.date, to: report.to, days: report.days, empty: report.licences === 0, calendar: CALENDAR_FILE,
|
|
166
|
+
renewals: report.renewals.map(renewal), overdue: report.overdue.map(renewal), unknownDates: report.unknownDates.map(link),
|
|
167
|
+
recurring: moneyRows(report.recurring),
|
|
168
|
+
groupings: [
|
|
169
|
+
grouping('owner', 'By owner', 'Owner', report.groups.owner),
|
|
170
|
+
grouping('payer', 'By payer', 'Paid by', report.groups.payer),
|
|
171
|
+
grouping('zone', 'By zone', 'Zone', report.groups.zone),
|
|
172
|
+
],
|
|
173
|
+
oneOff: {
|
|
174
|
+
items: report.oneOff.items.map(item => ({ ...link(item), cost: priced(item.cost, item.currency), renewsOn: item.renewsOn ?? NO_AMOUNT })),
|
|
175
|
+
totals: oneOffRows(report.oneOff.totals),
|
|
176
|
+
},
|
|
177
|
+
planned: {
|
|
178
|
+
items: report.planned.items.map(item => ({ ...link(item), cycle: item.cycle, cost: priced(item.cost, item.currency), monthly: shown(item.monthly), yearly: shown(item.yearly) })),
|
|
179
|
+
recurring: moneyRows(report.planned.recurring),
|
|
180
|
+
oneOff: oneOffRows(report.planned.oneOff),
|
|
181
|
+
},
|
|
182
|
+
incomplete: report.incomplete.map(item => ({ ...link(item), status: item.status, unknown: item.unknown.join(', ') })),
|
|
183
|
+
};
|
|
184
|
+
}
|
|
185
|
+
function themed(render) {
|
|
186
|
+
return { light: render(themes.light), dark: render(themes.dark) };
|
|
187
|
+
}
|
|
188
|
+
function row(item, owners) {
|
|
189
|
+
const info = summary(item);
|
|
190
|
+
const state = item.kind === 'component' ? item.entity.spec.lifecycle : item.entity.spec.licence?.status ?? '';
|
|
191
|
+
return {
|
|
192
|
+
ref: item.ref, href: pagePath(item), title: info.title ?? item.name, kind: item.kind,
|
|
193
|
+
type: info.type ?? '', state, owner: info.owner === undefined ? '' : displayOwner(owners, info.owner), zone: info.zone ?? '',
|
|
194
|
+
};
|
|
195
|
+
}
|
|
196
|
+
/** Distinct non-empty values of one column, sorted by code point, for a filter's options. */
|
|
197
|
+
function options(rows, column) {
|
|
198
|
+
return [...new Set(rows.map(entry => entry[column]).filter(value => value !== ''))].sort((one, two) => (one < two ? -1 : one > two ? 1 : 0));
|
|
199
|
+
}
|
|
200
|
+
/** SiteData of one view, plus the full map geometry for the build report (suggestions, unrouted
|
|
201
|
+
* hops) and, for the full view only, the text of renewals.ics. */
|
|
202
|
+
export function buildSiteData(catalogue, view, version, date, owners = new Map()) {
|
|
203
|
+
if (view === 'full' && date === undefined)
|
|
204
|
+
throw new Error('A full site needs the map date');
|
|
205
|
+
const served = applyView(catalogue.served, view, resolveHidden(catalogue));
|
|
206
|
+
const graph = buildGraph(served);
|
|
207
|
+
// The staff model never evaluates the date; pass none so nothing date-like can reach staff data.
|
|
208
|
+
const model = buildMapModel(served, view === 'full' ? date : '');
|
|
209
|
+
// One ink for both copies, so labels sit in the same places and zoom moves both maps alike.
|
|
210
|
+
const ink = widestInk(inkOf(themes.light), inkOf(themes.dark));
|
|
211
|
+
const geometry = layoutMap(model, themes.light.lineWidth, ink);
|
|
212
|
+
const darkGeometry = themes.dark.lineWidth === themes.light.lineWidth ? geometry : layoutMap(model, themes.dark.lineWidth, ink);
|
|
213
|
+
const pages = new PageBuilder(graph, model, owners);
|
|
214
|
+
const items = [...graph.items.values()].sort((one, two) => compareRefs(one.ref, two.ref));
|
|
215
|
+
const components = items.filter((item) => item.kind === 'component');
|
|
216
|
+
const licences = items.filter((item) => item.kind === 'licence');
|
|
217
|
+
const rows = [...components, ...licences].sort((one, two) => compareRefs(one.ref, two.ref)).map(item => row(item, owners));
|
|
218
|
+
const settings = siteSettings(catalogue);
|
|
219
|
+
const base = {
|
|
220
|
+
icons: siteIcons(),
|
|
221
|
+
version,
|
|
222
|
+
...settings,
|
|
223
|
+
map: {
|
|
224
|
+
light: renderSvg(geometry, themes.light, { chrome: false }),
|
|
225
|
+
dark: renderSvg(darkGeometry, themes.dark, { chrome: false }),
|
|
226
|
+
lines: model.lines.map(line => pages.lineSummary(line)),
|
|
227
|
+
zones: geometry.zones.map(zone => ({ name: zone.name.toLowerCase(), title: zone.title })),
|
|
228
|
+
symbols: geometry.legend.symbols.map(symbol => ({ label: symbol[0].toUpperCase() + symbol.slice(1), ...themed(theme => renderSymbol(symbol, theme)) })),
|
|
229
|
+
},
|
|
230
|
+
rows,
|
|
231
|
+
filters: { kind: options(rows, 'kind'), zone: options(rows, 'zone'), state: options(rows, 'state'), owner: options(rows, 'owner') },
|
|
232
|
+
components: components.map(item => pages.component(item)),
|
|
233
|
+
licences: licences.map(item => pages.licence(item)),
|
|
234
|
+
journeys: model.lines.map(line => pages.journey(line)),
|
|
235
|
+
};
|
|
236
|
+
if (view === 'staff')
|
|
237
|
+
return { data: { view, ...base }, geometry };
|
|
238
|
+
// The report exists only here, after the staff branch: nothing of it is computed for staff.
|
|
239
|
+
const report = buildReport(graph, date, REPORT_DAYS, { ownerLabel: owner => displayOwner(owners, owner) });
|
|
240
|
+
const calendar = renderCalendar(report, { title: settings.title, namespace: calendarNamespace(catalogue) });
|
|
241
|
+
return { data: { view, ...base, report: reportPage(report, pages) }, geometry, calendar };
|
|
242
|
+
}
|
|
243
|
+
//# sourceMappingURL=data.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"data.js","sourceRoot":"","sources":["../../src/site/data.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AACH,OAAO,EAAE,SAAS,EAAiB,MAAM,eAAe,CAAC;AACzD,OAAO,EAAE,WAAW,EAAE,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QAAQ,EAAE,QAAQ,EAAE,CAAC;AAC5F,CAAC"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/** The filesystem calls the build command makes on its output folder (design D8).
|
|
2
|
+
*
|
|
3
|
+
* Why an interface: command.ts and publish.ts reach the output folder only through an FsOps object,
|
|
4
|
+
* so a test can pass a wrapper that fails or swaps the folder at a chosen call and prove the undo,
|
|
5
|
+
* the refusals and the identity checks. The shipped code always uses NODE_FS and has no test-only
|
|
6
|
+
* branch; src/cli.ts passes nothing, so a user cannot change how the build touches the disk.
|
|
7
|
+
*
|
|
8
|
+
* Every call is synchronous and throws the error node:fs throws. Writing the sites into the staging
|
|
9
|
+
* folder (build.ts, Astro) does not go through here: it happens before anything published changes.
|
|
10
|
+
*/
|
|
11
|
+
import { type Stats } from 'node:fs';
|
|
12
|
+
export interface FsOps {
|
|
13
|
+
/** The entry's own status; a symbolic link is not followed. */
|
|
14
|
+
lstat(path: string): Stats;
|
|
15
|
+
/** The status of what the path points to (links followed). */
|
|
16
|
+
stat(path: string): Stats;
|
|
17
|
+
/** The path with every symbolic link resolved. */
|
|
18
|
+
realpath(path: string): string;
|
|
19
|
+
/** The names in a folder. */
|
|
20
|
+
readdir(path: string): string[];
|
|
21
|
+
/** A text file read as UTF-8. */
|
|
22
|
+
readFile(path: string): string;
|
|
23
|
+
/** Create a folder; with `recursive`, its missing parents too and no error when it exists. */
|
|
24
|
+
mkdir(path: string, options?: {
|
|
25
|
+
recursive: boolean;
|
|
26
|
+
}): void;
|
|
27
|
+
/** Rename an entry within one filesystem (atomic). */
|
|
28
|
+
rename(from: string, to: string): void;
|
|
29
|
+
/** Remove an empty folder. */
|
|
30
|
+
rmdir(path: string): void;
|
|
31
|
+
/** Remove an entry and, for a folder, everything in it; links inside are removed, not followed. */
|
|
32
|
+
rm(path: string): void;
|
|
33
|
+
}
|
|
34
|
+
/** The real filesystem: what the CLI uses. */
|
|
35
|
+
export declare const NODE_FS: FsOps;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/** The filesystem calls the build command makes on its output folder (design D8).
|
|
2
|
+
*
|
|
3
|
+
* Why an interface: command.ts and publish.ts reach the output folder only through an FsOps object,
|
|
4
|
+
* so a test can pass a wrapper that fails or swaps the folder at a chosen call and prove the undo,
|
|
5
|
+
* the refusals and the identity checks. The shipped code always uses NODE_FS and has no test-only
|
|
6
|
+
* branch; src/cli.ts passes nothing, so a user cannot change how the build touches the disk.
|
|
7
|
+
*
|
|
8
|
+
* Every call is synchronous and throws the error node:fs throws. Writing the sites into the staging
|
|
9
|
+
* folder (build.ts, Astro) does not go through here: it happens before anything published changes.
|
|
10
|
+
*/
|
|
11
|
+
import { lstatSync, mkdirSync, readdirSync, readFileSync, realpathSync, renameSync, rmdirSync, rmSync, statSync } from 'node:fs';
|
|
12
|
+
/** The real filesystem: what the CLI uses. */
|
|
13
|
+
export const NODE_FS = {
|
|
14
|
+
lstat: path => lstatSync(path),
|
|
15
|
+
stat: path => statSync(path),
|
|
16
|
+
realpath: path => realpathSync.native(path),
|
|
17
|
+
readdir: path => readdirSync(path),
|
|
18
|
+
readFile: path => readFileSync(path, 'utf8'),
|
|
19
|
+
mkdir: (path, options) => {
|
|
20
|
+
mkdirSync(path, options);
|
|
21
|
+
},
|
|
22
|
+
rename: (from, to) => renameSync(from, to),
|
|
23
|
+
rmdir: path => rmdirSync(path),
|
|
24
|
+
rm: path => rmSync(path, { recursive: true, force: true }),
|
|
25
|
+
};
|
|
26
|
+
//# sourceMappingURL=fs-ops.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fs-ops.js","sourceRoot":"","sources":["../../src/site/fs-ops.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,WAAW,EAAE,YAAY,EAAE,YAAY,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAc,MAAM,SAAS,CAAC;AAuB7I,8CAA8C;AAC9C,MAAM,CAAC,MAAM,OAAO,GAAU;IAC5B,KAAK,EAAE,IAAI,CAAC,EAAE,CAAC,SAAS,CAAC,IAAI,CAAC;IAC9B,IAAI,EAAE,IAAI,CAAC,EAAE,CAAC,QAAQ,CAAC,IAAI,CAAC;IAC5B,QAAQ,EAAE,IAAI,CAAC,EAAE,CAAC,YAAY,CAAC,MAAM,CAAC,IAAI,CAAC;IAC3C,OAAO,EAAE,IAAI,CAAC,EAAE,CAAC,WAAW,CAAC,IAAI,CAAC;IAClC,QAAQ,EAAE,IAAI,CAAC,EAAE,CAAC,YAAY,CAAC,IAAI,EAAE,MAAM,CAAC;IAC5C,KAAK,EAAE,CAAC,IAAI,EAAE,OAAO,EAAE,EAAE;QACvB,SAAS,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;IAC3B,CAAC;IACD,MAAM,EAAE,CAAC,IAAI,EAAE,EAAE,EAAE,EAAE,CAAC,UAAU,CAAC,IAAI,EAAE,EAAE,CAAC;IAC1C,KAAK,EAAE,IAAI,CAAC,EAAE,CAAC,SAAS,CAAC,IAAI,CAAC;IAC9B,EAAE,EAAE,IAAI,CAAC,EAAE,CAAC,MAAM,CAAC,IAAI,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;CAC3D,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { Source } from '../source.js';
|
|
2
|
+
/** Owner reference (lower case `group:name` or `user:name`) -> display name. */
|
|
3
|
+
export declare function ownerNames(sources: readonly Source[]): Map<string, string>;
|
|
4
|
+
/** The display name of an owner reference, or the reference itself when no document names it. */
|
|
5
|
+
export declare function displayOwner(names: ReadonlyMap<string, string>, owner: string): string;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
/** Display names of owners for the site: `group:northwind` shows as the title of the Group document
|
|
2
|
+
* `northwind` when the catalogue has one (catalogue-site polish; pages show owners by name).
|
|
3
|
+
*
|
|
4
|
+
* Why here and not in the views: Group and User are ignored kinds (docs/catalogue-format.md), so
|
|
5
|
+
* validation never reads them and no view serves them. The site only borrows their display name,
|
|
6
|
+
* and only from a document that passes the same identity and secret checks as a served one:
|
|
7
|
+
* apiVersion backstage.io/v1alpha1, a valid metadata.name, and no secret-scan error. The name is
|
|
8
|
+
* `metadata.title`, else `spec.profile.displayName`, else `metadata.name`. When two documents
|
|
9
|
+
* name the same owner differently, neither is used, so the result never depends on file order.
|
|
10
|
+
* Owner fields are not hidden in any view, so both sites show the same names.
|
|
11
|
+
*
|
|
12
|
+
* Call ownerNames(loaded.sources), then displayOwner(names, 'group:northwind').
|
|
13
|
+
*/
|
|
14
|
+
import { name as nameSchema } from '../schema.js';
|
|
15
|
+
import { scanSecrets } from '../secrets.js';
|
|
16
|
+
const OWNER_KINDS = new Set(['Group', 'User']);
|
|
17
|
+
const API_VERSION = 'backstage.io/v1alpha1';
|
|
18
|
+
const record = (value) => value !== null && typeof value === 'object' && !Array.isArray(value) ? value : {};
|
|
19
|
+
function text(value) {
|
|
20
|
+
return typeof value === 'string' && value.trim() !== '' ? value.trim() : undefined;
|
|
21
|
+
}
|
|
22
|
+
/** Owner reference (lower case `group:name` or `user:name`) -> display name. */
|
|
23
|
+
export function ownerNames(sources) {
|
|
24
|
+
const names = new Map();
|
|
25
|
+
const conflicting = new Set();
|
|
26
|
+
for (const source of sources) {
|
|
27
|
+
const { apiVersion, kind, metadata, spec } = source.value;
|
|
28
|
+
if (typeof kind !== 'string' || !OWNER_KINDS.has(kind) || apiVersion !== API_VERSION)
|
|
29
|
+
continue;
|
|
30
|
+
const parsed = nameSchema.safeParse(record(metadata).name);
|
|
31
|
+
if (!parsed.success)
|
|
32
|
+
continue;
|
|
33
|
+
if (scanSecrets(source).some(problem => problem.severity === 'error'))
|
|
34
|
+
continue;
|
|
35
|
+
const display = text(record(metadata).title) ?? text(record(record(spec).profile).displayName) ?? parsed.data;
|
|
36
|
+
const ref = `${kind}:${parsed.data}`.toLowerCase();
|
|
37
|
+
const earlier = names.get(ref);
|
|
38
|
+
if (earlier !== undefined && earlier !== display)
|
|
39
|
+
conflicting.add(ref);
|
|
40
|
+
names.set(ref, display);
|
|
41
|
+
}
|
|
42
|
+
for (const ref of conflicting)
|
|
43
|
+
names.delete(ref);
|
|
44
|
+
return names;
|
|
45
|
+
}
|
|
46
|
+
/** The display name of an owner reference, or the reference itself when no document names it. */
|
|
47
|
+
export function displayOwner(names, owner) {
|
|
48
|
+
return names.get(owner.toLowerCase()) ?? owner;
|
|
49
|
+
}
|
|
50
|
+
//# sourceMappingURL=owners.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"owners.js","sourceRoot":"","sources":["../../src/site/owners.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AACH,OAAO,EAAE,IAAI,IAAI,UAAU,EAAE,MAAM,cAAc,CAAC;AAClD,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAG5C,MAAM,WAAW,GAAG,IAAI,GAAG,CAAC,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC,CAAC;AAC/C,MAAM,WAAW,GAAG,uBAAuB,CAAC;AAE5C,MAAM,MAAM,GAAG,CAAC,KAAc,EAA2B,EAAE,CACzD,KAAK,KAAK,IAAI,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,CAAE,KAAiC,CAAC,CAAC,CAAC,EAAE,CAAC;AAEjH,SAAS,IAAI,CAAC,KAAc;IAC1B,OAAO,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,CAAC,IAAI,EAAE,KAAK,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC;AACrF,CAAC;AAED,gFAAgF;AAChF,MAAM,UAAU,UAAU,CAAC,OAA0B;IACnD,MAAM,KAAK,GAAG,IAAI,GAAG,EAAkB,CAAC;IACxC,MAAM,WA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