@brunosouzas/stackledger 0.9.0 → 0.10.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -3
- package/dist/schema.d.ts +3 -1
- package/dist/schema.js +1 -1
- package/dist/schema.js.map +1 -1
- package/npm-shrinkwrap.json +6 -6
- package/package.json +2 -2
- package/site/public/link-icons/brunosouzas-dark.svg +8 -0
- package/site/public/link-icons/brunosouzas-light.svg +8 -0
- package/site/src/components/NewTabLink.astro +24 -0
- package/site/src/pages/index.astro +28 -9
- package/site/src/pages/map/index.astro +4 -2
- package/site/src/styles/pages.css +27 -5
package/README.md
CHANGED
|
@@ -34,7 +34,7 @@ stackledger is a small, local-first tool for people and small companies who want
|
|
|
34
34
|
|
|
35
35
|
## Status
|
|
36
36
|
|
|
37
|
-
Early development; the latest release on npm is `@brunosouzas/stackledger` 0.
|
|
37
|
+
Early development; the latest release on npm is `@brunosouzas/stackledger` 0.10.1. The catalogue format, the `validate`, `map`, `build` and `report` commands, the `mcp` server, Mac discovery (`stackledger discover` and `stackledger drift`), the agent skills check and map (`stackledger skills validate` and `stackledger skills map`) and the Skills section of the site (`stackledger build --skills`) work from npm or from source (see [Usage](#usage)). The order of the rest is in the [roadmap](docs/roadmap.md). <!-- x-release-please-version -->
|
|
38
38
|
|
|
39
39
|
For a separate catalogue repository, copy the [pipeline template](examples/catalogue-repository/). Set up [protected hosting](docs/hosting.md) before the first deploy. The fictitious Northwind catalogue and its skill set run as a [demo](docs/demo.md) of the corporate mode, Software and Skills, at <https://stackledger-demo.pages.dev/>; it is protected by Cloudflare Access and only the owner can sign in, so for you it shows the sign-in page, which is the point. The [release guide](docs/release.md) covers npm publication, provenance and the SBOM.
|
|
40
40
|
|
|
@@ -91,8 +91,8 @@ Use npm with Node.js 22.12 or later. The package is `@brunosouzas/stackledger` f
|
|
|
91
91
|
|
|
92
92
|
<!-- x-release-please-start-version -->
|
|
93
93
|
```sh
|
|
94
|
-
npx @brunosouzas/stackledger@0.
|
|
95
|
-
npx @brunosouzas/stackledger@0.
|
|
94
|
+
npx @brunosouzas/stackledger@0.10.1 --help
|
|
95
|
+
npx @brunosouzas/stackledger@0.10.1 validate /path/to/catalogue
|
|
96
96
|
```
|
|
97
97
|
<!-- x-release-please-end -->
|
|
98
98
|
|
package/dist/schema.d.ts
CHANGED
|
@@ -125,7 +125,7 @@ export declare const siteColorNames: readonly ["primary", "accent", "body", "tex
|
|
|
125
125
|
export type SiteColorName = typeof siteColorNames[number];
|
|
126
126
|
/** Icons a home link may show (catalogue, Home settings): the link icon names of @brunosouzas/design-system.
|
|
127
127
|
* A copy, so validate does not load the design system; test/unit/site-brand.test.ts keeps it equal. */
|
|
128
|
-
export declare const HOME_LINK_ICONS: readonly ["github", "website", "linkedin", "email", "stackledger"];
|
|
128
|
+
export declare const HOME_LINK_ICONS: readonly ["github", "website", "linkedin", "email", "stackledger", "brunosouzas"];
|
|
129
129
|
/** Sites stackledger build writes: [full] is the personal mode, [full, staff] (the default) the corporate one. */
|
|
130
130
|
export declare const siteNames: readonly ["full", "staff"];
|
|
131
131
|
export type SiteName = typeof siteNames[number];
|
|
@@ -172,6 +172,7 @@ export declare const settingsSchema: z.ZodObject<{
|
|
|
172
172
|
linkedin: "linkedin";
|
|
173
173
|
email: "email";
|
|
174
174
|
stackledger: "stackledger";
|
|
175
|
+
brunosouzas: "brunosouzas";
|
|
175
176
|
}>>;
|
|
176
177
|
}, z.core.$strict>>>;
|
|
177
178
|
}, z.core.$strict>>;
|
|
@@ -327,6 +328,7 @@ export declare const schemas: {
|
|
|
327
328
|
linkedin: "linkedin";
|
|
328
329
|
email: "email";
|
|
329
330
|
stackledger: "stackledger";
|
|
331
|
+
brunosouzas: "brunosouzas";
|
|
330
332
|
}>>;
|
|
331
333
|
}, z.core.$strict>>>;
|
|
332
334
|
}, z.core.$strict>>;
|
package/dist/schema.js
CHANGED
|
@@ -73,7 +73,7 @@ const homeUrl = z.string().max(2048, 'Must have maximum 2048 characters').superR
|
|
|
73
73
|
});
|
|
74
74
|
/** Icons a home link may show (catalogue, Home settings): the link icon names of @brunosouzas/design-system.
|
|
75
75
|
* A copy, so validate does not load the design system; test/unit/site-brand.test.ts keeps it equal. */
|
|
76
|
-
export const HOME_LINK_ICONS = ['github', 'website', 'linkedin', 'email', 'stackledger'];
|
|
76
|
+
export const HOME_LINK_ICONS = ['github', 'website', 'linkedin', 'email', 'stackledger', 'brunosouzas'];
|
|
77
77
|
const home = z.strictObject({
|
|
78
78
|
text: text.max(200, 'Must have maximum 200 characters').optional(),
|
|
79
79
|
links: z.array(z.strictObject({
|
package/dist/schema.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.js","sourceRoot":"","sources":["../src/schema.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,MAAM,CAAC,MAAM,IAAI,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,mDAAmD,EAAE,+FAA+F,CAAC,CAAC;AAC3L,MAAM,IAAI,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,EAAE,4BAA4B,CAAC,CAAC;AAC7D,MAAM,KAAK,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,mBAAmB,EAAE,8CAA8C,CAAC,CAAC;AACpG,MAAM,QAAQ,GAAG,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,EAAE,CAAC;AAC5D,MAAM,QAAQ,GAAG,CAAC,CAAC,WAAW,CAAC,EAAE,GAAG,QAAQ,EAAE,KAAK,EAAE,IAAI,CAAC,QAAQ,EAAE,EAAE,WAAW,EAAE,IAAI,CAAC,QAAQ,EAAE;IAChG,MAAM,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,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K,CAAC,QAAQ,EAAE;QACtK,MAAM,EAAE,cAAc,CAAC,QAAQ,EAAE,EAAE,GAAG,EAAE,WAAW,CAAC,QAAQ,EAAE,EAAE,CAAC;CACpE,CAAC,CAAC;AACH,MAAM,CAAC,MAAM,OAAO,GAAG,EAAE,SAAS,EAAE,eAAe,EAAE,QAAQ,EAAE,aAAa,EAAE,IAAI,EAAE,UAAU,EAAE,SAAS,EAAE,YAAY,EAAE,QAAQ,EAAE,cAAc,EAAE,CAAC"}
|
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@brunosouzas/stackledger",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.10.1",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "@brunosouzas/stackledger",
|
|
9
|
-
"version": "0.
|
|
9
|
+
"version": "0.10.1",
|
|
10
10
|
"license": "Apache-2.0",
|
|
11
11
|
"dependencies": {
|
|
12
|
-
"@brunosouzas/design-system": "0.
|
|
12
|
+
"@brunosouzas/design-system": "0.11.0",
|
|
13
13
|
"@fontsource/source-code-pro": "5.3.1",
|
|
14
14
|
"@fontsource/source-sans-3": "5.3.1",
|
|
15
15
|
"@fontsource/source-serif-4": "5.3.1",
|
|
@@ -500,9 +500,9 @@
|
|
|
500
500
|
]
|
|
501
501
|
},
|
|
502
502
|
"node_modules/@brunosouzas/design-system": {
|
|
503
|
-
"version": "0.
|
|
504
|
-
"resolved": "https://registry.npmjs.org/@brunosouzas/design-system/-/design-system-0.
|
|
505
|
-
"integrity": "sha512-
|
|
503
|
+
"version": "0.11.0",
|
|
504
|
+
"resolved": "https://registry.npmjs.org/@brunosouzas/design-system/-/design-system-0.11.0.tgz",
|
|
505
|
+
"integrity": "sha512-HnaLxCQW3jK/vpdRqWq5Hrtbc2CpuxUIcFrX6sa/QbMRS3+AbOzxKfZKnc4hzPKGvGGZE4bt8edNXbRqo6eMmQ==",
|
|
506
506
|
"license": "Apache-2.0",
|
|
507
507
|
"dependencies": {
|
|
508
508
|
"harfbuzzjs": "1.6.4"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@brunosouzas/stackledger",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.10.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Govern your software stack and licences, drawn as a metro map",
|
|
6
6
|
"keywords": [
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"test:perf": "vitest run --config vitest.perf.config.ts"
|
|
42
42
|
},
|
|
43
43
|
"dependencies": {
|
|
44
|
-
"@brunosouzas/design-system": "0.
|
|
44
|
+
"@brunosouzas/design-system": "0.11.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",
|
|
@@ -0,0 +1,8 @@
|
|
|
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
|
+
<rect x="2" y="2" width="38" height="38" rx="9" fill="#FFFFFF" stroke="#ADA79D" stroke-width="2.5"/>
|
|
3
|
+
<g transform="translate(5.56 6.52) scale(0.875)">
|
|
4
|
+
<rect x="5" y="3" width="5.5" height="26" rx="2.75" fill="#121212"/>
|
|
5
|
+
<circle cx="17.5" cy="20.5" r="7.3" fill="none" stroke="#121212" stroke-width="4.6"/>
|
|
6
|
+
<circle cx="27.5" cy="9" r="2.8" fill="#E04E17"/>
|
|
7
|
+
</g>
|
|
8
|
+
</g></svg>
|
|
@@ -0,0 +1,8 @@
|
|
|
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
|
+
<rect x="2" y="2" width="38" height="38" rx="9" fill="#FFFFFF" stroke="#121212" stroke-width="2.5"/>
|
|
3
|
+
<g transform="translate(5.56 6.52) scale(0.875)">
|
|
4
|
+
<rect x="5" y="3" width="5.5" height="26" rx="2.75" fill="#121212"/>
|
|
5
|
+
<circle cx="17.5" cy="20.5" r="7.3" fill="none" stroke="#121212" stroke-width="4.6"/>
|
|
6
|
+
<circle cx="27.5" cy="9" r="2.8" fill="#E04E17"/>
|
|
7
|
+
</g>
|
|
8
|
+
</g></svg>
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
---
|
|
2
|
+
// An anchor to another site (catalogue-site, External links in a new tab): it opens in a new tab,
|
|
3
|
+
// with rel="noopener noreferrer" so the other page gets no window.opener and no referrer, and its
|
|
4
|
+
// accessible name ends with NEW_TAB so a screen reader announces the new tab (WCAG technique G201).
|
|
5
|
+
// With `label` (an icon link, whose anchor holds no text) the name is the aria-label; without it,
|
|
6
|
+
// the anchor's own text is the name and the suffix is visually hidden text, so nothing changes on
|
|
7
|
+
// screen. No `title` attribute: it would be read again as the description (Home link icons).
|
|
8
|
+
// Use it only for an absolute URL to another site: a relative href here would open the site's own
|
|
9
|
+
// page in a new tab, which the integration test "Only external anchors open a new tab" catches.
|
|
10
|
+
interface Props {
|
|
11
|
+
href: string;
|
|
12
|
+
label?: string | undefined;
|
|
13
|
+
}
|
|
14
|
+
const NEW_TAB = ' (opens in a new tab)';
|
|
15
|
+
const { href, label } = Astro.props;
|
|
16
|
+
---
|
|
17
|
+
|
|
18
|
+
{
|
|
19
|
+
label === undefined ? (
|
|
20
|
+
<a href={href} target="_blank" rel="noopener noreferrer"><slot /><span class="visually-hidden">{NEW_TAB}</span></a>
|
|
21
|
+
) : (
|
|
22
|
+
<a href={href} target="_blank" rel="noopener noreferrer" aria-label={`${label}${NEW_TAB}`}><slot /></a>
|
|
23
|
+
)
|
|
24
|
+
}
|
|
@@ -2,13 +2,21 @@
|
|
|
2
2
|
// Home page (catalogue-site, Home page, Home page chrome and Home links): a banner with the site title
|
|
3
3
|
// and text, a card per division with the view's counts and links, then the configured links.
|
|
4
4
|
// The links are the only URLs to other sites (site-security, No external requests): validated http(s)
|
|
5
|
-
// URLs from spec.site.home.links, opened in
|
|
5
|
+
// URLs from spec.site.home.links, each opened in a new tab and announced as such (NewTabLink,
|
|
6
|
+
// catalogue-site External links in a new tab).
|
|
6
7
|
import Base from '../layouts/Base.astro';
|
|
8
|
+
import NewTabLink from '../components/NewTabLink.astro';
|
|
7
9
|
import { href, rootFor, site } from '../lib/site';
|
|
8
10
|
|
|
9
11
|
const root = rootFor(Astro.url.pathname);
|
|
10
12
|
const plural = (count: number, word: string) => `${count} ${count === 1 ? word : `${word}s`}`;
|
|
11
13
|
const skills = site.skills;
|
|
14
|
+
// Home links and Home link icons: the links with an icon are a row of icon-only anchors, before the
|
|
15
|
+
// others; each group keeps the order given. An icon link's description is not shown.
|
|
16
|
+
type HomeLink = { title: string; url: string; description?: string; icon?: string };
|
|
17
|
+
const links: HomeLink[] = site.home.links;
|
|
18
|
+
const iconLinks = links.filter(link => link.icon);
|
|
19
|
+
const textLinks = links.filter(link => !link.icon);
|
|
12
20
|
---
|
|
13
21
|
|
|
14
22
|
<Base title={site.title} current="home">
|
|
@@ -56,14 +64,25 @@ const skills = site.skills;
|
|
|
56
64
|
site.home.links.length > 0 && (
|
|
57
65
|
<>
|
|
58
66
|
<h2>Links</h2>
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
<
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
+
{iconLinks.length > 0 && (
|
|
68
|
+
<ul class="home-icon-links" role="list">
|
|
69
|
+
{iconLinks.map(link => (
|
|
70
|
+
<li>
|
|
71
|
+
<NewTabLink href={link.url} label={link.title}><img class="themed-light" src={href(root, `link-icons/${link.icon}-light.svg`)} alt="" width="32" height="32" /><img class="themed-dark" src={href(root, `link-icons/${link.icon}-dark.svg`)} alt="" width="32" height="32" /></NewTabLink>
|
|
72
|
+
</li>
|
|
73
|
+
))}
|
|
74
|
+
</ul>
|
|
75
|
+
)}
|
|
76
|
+
{textLinks.length > 0 && (
|
|
77
|
+
<ul class="home-external">
|
|
78
|
+
{textLinks.map(link => (
|
|
79
|
+
<li>
|
|
80
|
+
<NewTabLink href={link.url}>{link.title}</NewTabLink>
|
|
81
|
+
{link.description && <span class="muted"> · {link.description}</span>}
|
|
82
|
+
</li>
|
|
83
|
+
))}
|
|
84
|
+
</ul>
|
|
85
|
+
)}
|
|
67
86
|
</>
|
|
68
87
|
)
|
|
69
88
|
}
|
|
@@ -3,8 +3,10 @@
|
|
|
3
3
|
// pan, line highlight and zone filter. The map SVG has no title band or legend: the line chips are
|
|
4
4
|
// the legend (buttons that highlight a line) and the symbols are listed under them. Without
|
|
5
5
|
// JavaScript the whole map and both legends are shown; only the zoom and zone tools stay hidden.
|
|
6
|
-
// Over a city backdrop the OpenStreetMap credit sits right under the frame (catalogue-site, Map backdrop)
|
|
6
|
+
// Over a city backdrop the OpenStreetMap credit sits right under the frame (catalogue-site, Map backdrop),
|
|
7
|
+
// its link opened in a new tab and announced as such (NewTabLink, External links in a new tab).
|
|
7
8
|
import Base from '../../layouts/Base.astro';
|
|
9
|
+
import NewTabLink from '../../components/NewTabLink.astro';
|
|
8
10
|
import Themed from '../../components/Themed.astro';
|
|
9
11
|
import { site } from '../../lib/site';
|
|
10
12
|
|
|
@@ -45,7 +47,7 @@ const { lines, zones, symbols } = site.map;
|
|
|
45
47
|
{
|
|
46
48
|
site.map.credit && (
|
|
47
49
|
<p class="map-credit">
|
|
48
|
-
Map data © <
|
|
50
|
+
Map data © <NewTabLink href="https://www.openstreetmap.org/copyright">OpenStreetMap contributors</NewTabLink>
|
|
49
51
|
</p>
|
|
50
52
|
)
|
|
51
53
|
}
|
|
@@ -294,11 +294,33 @@
|
|
|
294
294
|
margin-top: 2rem;
|
|
295
295
|
}
|
|
296
296
|
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
297
|
+
/* Home link icon row: icon-only anchors side by side, wrapping on a narrow page. The gap is wider
|
|
298
|
+
than two focus rings (3px outline, 2px offset each side), so two rings never touch; the 12px floor
|
|
299
|
+
holds under 768px, where the root text is smaller and 0.75rem is under 10px. */
|
|
300
|
+
.home-icon-links {
|
|
301
|
+
display: flex;
|
|
302
|
+
flex-wrap: wrap;
|
|
303
|
+
gap: max(0.75rem, 12px);
|
|
304
|
+
margin: 0 0 1rem;
|
|
305
|
+
padding: 0;
|
|
306
|
+
list-style: none;
|
|
307
|
+
}
|
|
308
|
+
|
|
309
|
+
/* A flex item, so a line's height is the anchor's and the gap between lines equals the gap across. */
|
|
310
|
+
.home-icon-links li {
|
|
311
|
+
display: flex;
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
.home-icon-links a {
|
|
315
|
+
display: inline-flex;
|
|
316
|
+
padding: 0.25rem;
|
|
317
|
+
border-radius: var(--radius);
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
/* Sized only: a display here would outrank .themed-dark { display: none } (base.css) and show both. */
|
|
321
|
+
.home-icon-links img {
|
|
322
|
+
width: 2rem;
|
|
323
|
+
height: 2rem;
|
|
302
324
|
}
|
|
303
325
|
|
|
304
326
|
.home-cards {
|