@starci/hfs 4.9.3 → 4.9.5
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/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 4.9.5 - 2026-10-28
|
|
4
|
+
|
|
5
|
+
- Added: the bundled rule catalog carries R324 (`FE_PAGE_TABS_OUTSIDE_HEADER`, `page-tabs-in-header`) and R325 (`FE_ROUTE_PAGE_OUTSIDE_PAGE`, `route-page-is-one-page`), both enforced by `@starci/eslint-grammar-core`, and their failure-code guidance.
|
|
6
|
+
- Changed: the bundled canon pins follow release G (Grammar family 0.15.4, hfs 4.9.5, canon-fe 9.4.4, canon-be 3.6.4, ai-router 0.3.0); the mermaid pin names Grammar's MermaidDiagram as its owner.
|
|
7
|
+
|
|
8
|
+
## 4.9.4 - 2026-10-28
|
|
9
|
+
|
|
10
|
+
- Added: the bundled rule catalog carries R323 (`FE_PAGE_HEADER_HAND_ROLLED`, enforced by `@starci/eslint-grammar-core` `no-hand-rolled-page-header`) and its failure-code guidance.
|
|
11
|
+
- Changed: the bundled canon pins follow release F (Grammar family 0.15.3, hfs 4.9.4, canon-fe 9.4.3, canon-be 3.6.3, ai-router 0.3.0).
|
|
12
|
+
|
|
3
13
|
## 4.9.3 - 2026-10-28
|
|
4
14
|
|
|
5
15
|
- Changed: the bundled canon pins no longer pin the command line. An app's `starci-harness` is judged and scaffolded at the version of the CLI that runs this package: `main(argv, { harness: { version } })` takes it, and `runtime/scripts/hfs/canon-pins.mjs` (`canonPins`, the one reader of `knowledge/hfs/canon-pins.yaml`) adds the `starci-harness` row from it for HFS_CANON_PIN_DRIFT, HFS_CI_MISSING_CANON and the scaffold's root devDependencies. The CLI depends on this package exactly, so a bundled pin of the CLI tied every CLI release to a new hfs and back. Run without a CLI, nothing judges the app's `starci-harness` and `scaffoldApp` refuses HFS_SCAFFOLD_PIN_MISSING before `git init`. Spec: `src/canon-pins.spec.mjs` (also: every `source:` pin at its folder's version, the five runtime copies byte-identical, `contexts/stack/pins.yaml` in step).
|
package/package.json
CHANGED
|
@@ -31,35 +31,35 @@ pins:
|
|
|
31
31
|
source: packages/event-stream/package.json
|
|
32
32
|
why: 'the one server-sent-events client of every front end (fe-stack event-stream, owner:event-stream-package): the transport client layer (modules/api/sse/clients) creates one instance for the app with the bearer token source and the stream operations follow on it; it carries Last-Event-ID resume, the capped doubling backoff, the heartbeat timeout, the single 401 renewal and the useSWRSubscription adapter, so no app keeps a hand-written reader.'
|
|
33
33
|
'@starci/grammar':
|
|
34
|
-
version: 0.15.
|
|
34
|
+
version: 0.15.4
|
|
35
35
|
group: starci
|
|
36
36
|
install: registry
|
|
37
37
|
side: fe
|
|
38
38
|
source: packages/grammar/package.json
|
|
39
39
|
why: 'the grammar front ends read: the brand layer sets `--font-sans` and `--font-mono` and the grammar reads them; it carries the Input tel kind, the copyable and read-only Input, the IconButton disclosure props and count badge, ChatBubble, FillViewport, Textarea mentions and Enter-to-send, the leading PrimaryRailLayout rail, the plate-less Image, ListRow, the soft Alert, Progress steps, the floating primary IconButton, FlowGraph, the STATE-8 loading views and the bordered selectable TagGroup chips. The runtime source version wins for a @starci package.'
|
|
40
40
|
'@starci/eslint-canon-be':
|
|
41
|
-
version: 3.6.
|
|
41
|
+
version: 3.6.4
|
|
42
42
|
group: starci
|
|
43
43
|
install: registry
|
|
44
44
|
side: be
|
|
45
45
|
source: packages/eslint-canon-be/package.json
|
|
46
46
|
why: 'the back-end ESLint canon: `loadHfs(import.meta.url)` of be/eslint.config.mjs finds the app-root hfs.json (kind app) and gives every linted file the view of the be side, and the project graph is built per side; its bundled runtime copies (slots, canon-pins, failure codes, the architecture machine) put .starcistacks and .sops.yaml at the app root; `starciBeConfig({ hfs: loadHfs(import.meta.url) })` is the typed factory and the BE-CONVENTION laws are its rules.'
|
|
47
47
|
'@starci/eslint-canon-fe':
|
|
48
|
-
version: 9.4.
|
|
48
|
+
version: 9.4.4
|
|
49
49
|
group: starci
|
|
50
50
|
install: registry
|
|
51
51
|
side: fe
|
|
52
52
|
source: packages/eslint-canon-fe/package.json
|
|
53
53
|
why: 'the front-end ESLint canon: `loadHfs(import.meta.url)` of fe/eslint.config.mjs finds the app-root hfs.json (kind app) and gives every linted file the view of the fe side, and the project graph is built per side; its bundled runtime copies (slots, canon-pins, failure codes, the architecture machine) put .starcistacks and .sops.yaml at the app root; the front end has no tests (FE_NO_TESTS R97 in hfs) and no-vietnamese-in-source (R91) applies.'
|
|
54
54
|
'@starci/eslint-grammar-core':
|
|
55
|
-
version: 0.15.
|
|
55
|
+
version: 0.15.4
|
|
56
56
|
group: starci
|
|
57
57
|
install: registry
|
|
58
58
|
side: fe
|
|
59
59
|
source: packages/eslint-grammar-core/package.json
|
|
60
60
|
why: 'the StarCi Grammar component API lint, versioned with @starci/grammar; front ends compose this family package with the universal FE canon.'
|
|
61
61
|
'@starci/eslint-grammar-offset-pop':
|
|
62
|
-
version: 0.15.
|
|
62
|
+
version: 0.15.4
|
|
63
63
|
group: starci
|
|
64
64
|
install: registry
|
|
65
65
|
side: fe
|
|
@@ -106,7 +106,7 @@ pins:
|
|
|
106
106
|
source: packages/ai-router/package.json
|
|
107
107
|
why: 'the AI pool router of a back end: a NestJS module that routes OpenAI-compatible chat, stream and embeddings calls across keys, models and providers, with @starci/ai-router/testing for its specs; @starci/jest-preset compiles it as an ESM-only dependency.'
|
|
108
108
|
'@starci/hfs':
|
|
109
|
-
version: 4.9.
|
|
109
|
+
version: 4.9.5
|
|
110
110
|
group: starci
|
|
111
111
|
install: registry
|
|
112
112
|
side: both
|
|
@@ -487,7 +487,7 @@ pins:
|
|
|
487
487
|
version: 11.16.0
|
|
488
488
|
group: ui
|
|
489
489
|
side: fe
|
|
490
|
-
why: '
|
|
490
|
+
why: 'runtime dependency of @starci/grammar for MermaidDiagram (fe-stack diagrams), imported lazily on the first diagram and themed from the grammar root; apps render diagrams through MermaidDiagram and never import mermaid.'
|
|
491
491
|
'react-dropzone':
|
|
492
492
|
version: 15.0.0
|
|
493
493
|
group: ui
|
|
@@ -5687,3 +5687,72 @@ rules:
|
|
|
5687
5687
|
source: owner
|
|
5688
5688
|
quote: "A chip label starts uppercase."
|
|
5689
5689
|
ruling: "The label of a status chip starts with an uppercase letter (owner ruling chip-label-uppercase); StatusDot capitalises a text label it renders, and the lint refuses a lowercase literal label at its source."
|
|
5690
|
+
- id: R323
|
|
5691
|
+
code: "FE_PAGE_HEADER_HAND_ROLLED"
|
|
5692
|
+
law: "A page is headed by Grammar's PageHeader; a Breadcrumbs trail followed by a SectionHeader in one parent is a page head composed by hand, with no band, no top inset and no separator."
|
|
5693
|
+
kinds: [lint]
|
|
5694
|
+
gates: [pre-commit, settle, land, ci]
|
|
5695
|
+
failureCodes: ["FE_PAGE_HEADER_HAND_ROLLED"]
|
|
5696
|
+
enforcers:
|
|
5697
|
+
- {kind: eslint-grammar-core, id: no-hand-rolled-page-header}
|
|
5698
|
+
editions: [lite, full]
|
|
5699
|
+
docs: [knowledge/patterns/fe/index.yaml#FE-RULE-OWNERSHIP]
|
|
5700
|
+
templateNa: "A template states no page head; the pages are the app's."
|
|
5701
|
+
proves:
|
|
5702
|
+
- packages/eslint-grammar-core/src/page-header.spec.ts
|
|
5703
|
+
exemplifiedBy:
|
|
5704
|
+
- {path: packages/eslint-grammar-core/src/page-header.spec.ts, editions: [lite, full], codes: [FE_PAGE_HEADER_HAND_ROLLED]}
|
|
5705
|
+
witness:
|
|
5706
|
+
- {path: packages/eslint-grammar-core/src/page-header.spec.ts, editions: [lite, full], codes: [FE_PAGE_HEADER_HAND_ROLLED]}
|
|
5707
|
+
cases:
|
|
5708
|
+
- id: case-1
|
|
5709
|
+
date: "2026-10-28"
|
|
5710
|
+
source: owner
|
|
5711
|
+
quote: "Publish Grammar 0.15.3 with PageHeader now, then move all 18 pages to it before deploying. (translated from Vietnamese)"
|
|
5712
|
+
ruling: "A page is headed by Grammar's PageHeader (owner ruling page-header-band): a surface band whose content shares the page content's edges and which ends in its own full-width separator, page tabs standing on it; the lint refuses a page head composed by hand from Breadcrumbs and SectionHeader."
|
|
5713
|
+
- id: R324
|
|
5714
|
+
code: "FE_PAGE_TABS_OUTSIDE_HEADER"
|
|
5715
|
+
law: "Page tabs are the header's tabs; a Tabs that is the first element of a Page body or the next element after a PageHeader is a page tab bar drawn outside the band."
|
|
5716
|
+
kinds: [lint]
|
|
5717
|
+
gates: [pre-commit, settle, land, ci]
|
|
5718
|
+
failureCodes: ["FE_PAGE_TABS_OUTSIDE_HEADER"]
|
|
5719
|
+
enforcers:
|
|
5720
|
+
- {kind: eslint-grammar-core, id: page-tabs-in-header}
|
|
5721
|
+
editions: [lite, full]
|
|
5722
|
+
docs: [knowledge/patterns/fe/index.yaml#FE-RULE-OWNERSHIP]
|
|
5723
|
+
templateNa: "A template states no page; the pages are the app's."
|
|
5724
|
+
proves:
|
|
5725
|
+
- packages/eslint-grammar-core/src/page.spec.ts
|
|
5726
|
+
exemplifiedBy:
|
|
5727
|
+
- {path: packages/eslint-grammar-core/src/page.spec.ts, editions: [lite, full], codes: [FE_PAGE_TABS_OUTSIDE_HEADER]}
|
|
5728
|
+
witness:
|
|
5729
|
+
- {path: packages/eslint-grammar-core/src/page.spec.ts, editions: [lite, full], codes: [FE_PAGE_TABS_OUTSIDE_HEADER]}
|
|
5730
|
+
cases:
|
|
5731
|
+
- id: case-1
|
|
5732
|
+
date: "2026-10-28"
|
|
5733
|
+
source: owner
|
|
5734
|
+
quote: "ok trò"
|
|
5735
|
+
ruling: "A route page is one Grammar Page (owner ruling page-frame); page tabs are its header's tabs, and the lint refuses a Tabs at the top of the Page body or right after a PageHeader."
|
|
5736
|
+
- id: R325
|
|
5737
|
+
code: "FE_ROUTE_PAGE_OUTSIDE_PAGE"
|
|
5738
|
+
law: "A page owner draws one Grammar Page with nothing beside it; a sibling of the Page, or a bare PageHeader or PageContainer in the page owner, re-decides the inset and rhythm Page owns."
|
|
5739
|
+
kinds: [lint]
|
|
5740
|
+
gates: [pre-commit, settle, land, ci]
|
|
5741
|
+
failureCodes: ["FE_ROUTE_PAGE_OUTSIDE_PAGE"]
|
|
5742
|
+
enforcers:
|
|
5743
|
+
- {kind: eslint-grammar-core, id: route-page-is-one-page}
|
|
5744
|
+
editions: [lite, full]
|
|
5745
|
+
docs: [knowledge/patterns/fe/index.yaml#FE-RULE-OWNERSHIP]
|
|
5746
|
+
templateNa: "A template states no page; the pages are the app's."
|
|
5747
|
+
proves:
|
|
5748
|
+
- packages/eslint-grammar-core/src/page.spec.ts
|
|
5749
|
+
exemplifiedBy:
|
|
5750
|
+
- {path: packages/eslint-grammar-core/src/page.spec.ts, editions: [lite, full], codes: [FE_ROUTE_PAGE_OUTSIDE_PAGE]}
|
|
5751
|
+
witness:
|
|
5752
|
+
- {path: packages/eslint-grammar-core/src/page.spec.ts, editions: [lite, full], codes: [FE_ROUTE_PAGE_OUTSIDE_PAGE]}
|
|
5753
|
+
cases:
|
|
5754
|
+
- id: case-1
|
|
5755
|
+
date: "2026-10-28"
|
|
5756
|
+
source: owner
|
|
5757
|
+
quote: "ok trò"
|
|
5758
|
+
ruling: "A route page is one Grammar Page (owner ruling page-frame): the single owner of the page inset and rhythm; the lint refuses a sibling beside the Page and a bare PageHeader or PageContainer in a page owner."
|
|
@@ -2714,6 +2714,16 @@ FE_PACKAGE_SHAPE:
|
|
|
2714
2714
|
owner: op-retry
|
|
2715
2715
|
kind: check-finding
|
|
2716
2716
|
|
|
2717
|
+
FE_PAGE_HEADER_HAND_ROLLED:
|
|
2718
|
+
title: "A page head is composed by hand instead of PageHeader"
|
|
2719
|
+
title_vi: "Phần đầu trang được ghép tay thay vì dùng PageHeader"
|
|
2720
|
+
meaning_vi: "Tại <file>, một Breadcrumbs theo sau là một SectionHeader trong cùng một phần tử cha: phần đầu trang ghép tay không có dải nền, không có khoảng đệm trên và không có đường phân cách, nên mỗi trang tự quyết khoảng cách riêng."
|
|
2721
|
+
causes_vi:
|
|
2722
|
+
- "Đặt Breadcrumbs rồi SectionHeader level={1} ở đầu trang hoặc layout."
|
|
2723
|
+
nextStep_vi: "Dùng PageHeader của Grammar với breadcrumbs, title và các khe cần thiết (description, meta, status, mark, actions, tabs) (quy định page-header-band)."
|
|
2724
|
+
owner: op-retry
|
|
2725
|
+
kind: check-finding
|
|
2726
|
+
|
|
2717
2727
|
FE_PAGE_METADATA_MISSING:
|
|
2718
2728
|
title: "Every page exports metadata"
|
|
2719
2729
|
title_vi: "Trang không khai báo metadata"
|
|
@@ -2724,6 +2734,16 @@ FE_PAGE_METADATA_MISSING:
|
|
|
2724
2734
|
owner: op-retry
|
|
2725
2735
|
kind: check-finding
|
|
2726
2736
|
|
|
2737
|
+
FE_PAGE_TABS_OUTSIDE_HEADER:
|
|
2738
|
+
title: "Page tabs are drawn outside the page header band"
|
|
2739
|
+
title_vi: "Tab của trang nằm ngoài dải đầu trang"
|
|
2740
|
+
meaning_vi: "Tại <file>, một Tabs đứng đầu thân Page hoặc ngay sau PageHeader: thanh tab của trang không đứng trên đường phân cách của dải đầu trang mà lấy khoảng đệm và khoảng cách của thân trang."
|
|
2741
|
+
causes_vi:
|
|
2742
|
+
- "Đặt Tabs làm phần tử đầu tiên trong Page hoặc ngay sau PageHeader."
|
|
2743
|
+
nextStep_vi: "Truyền tab qua header.tabs của Page (hoặc tabs của PageHeader): { label, items, selectedKey, onSelect } (quy định page-frame)."
|
|
2744
|
+
owner: op-retry
|
|
2745
|
+
kind: check-finding
|
|
2746
|
+
|
|
2727
2747
|
FE_PROPS_MUTABLE:
|
|
2728
2748
|
title: "Component props can be written"
|
|
2729
2749
|
title_vi: "Props của component có thể bị ghi"
|
|
@@ -2864,6 +2884,17 @@ FE_ROUTE_ONE_PAGE:
|
|
|
2864
2884
|
owner: other-op:interface.implement
|
|
2865
2885
|
kind: check-finding
|
|
2866
2886
|
|
|
2887
|
+
FE_ROUTE_PAGE_OUTSIDE_PAGE:
|
|
2888
|
+
title: "A page owner draws something outside its Page"
|
|
2889
|
+
title_vi: "Trang vẽ nội dung nằm ngoài Page"
|
|
2890
|
+
meaning_vi: "Tại <file>, page owner vẽ một phần tử bên cạnh Page, hoặc tự dùng PageHeader hay PageContainer: khoảng đệm và nhịp dọc của trang bị quyết định lại ngoài Page."
|
|
2891
|
+
causes_vi:
|
|
2892
|
+
- "Đặt banner, footer hay khối khác cạnh Page trong page owner."
|
|
2893
|
+
- "Ghép PageHeader và PageContainer bằng tay thay vì dùng Page."
|
|
2894
|
+
nextStep_vi: "Vẽ đúng một Page: dải đầu trang là header, mọi thứ khác trong thân, measure là measure của Page (quy định page-frame)."
|
|
2895
|
+
owner: op-retry
|
|
2896
|
+
kind: check-finding
|
|
2897
|
+
|
|
2867
2898
|
FE_SERVER_ACTION_FORBIDDEN:
|
|
2868
2899
|
title: "A front-end file carries a `\"use server\"` directive"
|
|
2869
2900
|
title_vi: "Front end có Server Action (\"use server\")"
|