@starci/eslint-grammar-core 0.22.0 → 0.23.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (69) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/dist/lib/app-shell-create.js +2 -2
  3. package/package.json +4 -2
  4. package/runtime/bundle.json +2 -68
  5. package/runtime/engine/by-code-unit.mjs +0 -12
  6. package/runtime/engine/config.mjs +0 -461
  7. package/runtime/engine/invalid-config.mjs +0 -15
  8. package/runtime/engine/model-config.mjs +0 -112
  9. package/runtime/engine/orca-config.mjs +0 -34
  10. package/runtime/engine/plain-object.mjs +0 -5
  11. package/runtime/engine/release-config.mjs +0 -32
  12. package/runtime/engine/removed-vocabulary.mjs +0 -27
  13. package/runtime/engine/resources-config.mjs +0 -59
  14. package/runtime/engine/runtime-root.mjs +0 -138
  15. package/runtime/engine/secrets.mjs +0 -202
  16. package/runtime/engine/sonar-config.mjs +0 -24
  17. package/runtime/engine/yaml.mjs +0 -161
  18. package/runtime/knowledge/grammars/core/playbook.yaml +0 -1198
  19. package/runtime/knowledge/grammars/index.yaml +0 -114
  20. package/runtime/knowledge/hfs/canon-pins.yaml +0 -720
  21. package/runtime/knowledge/hfs/rules.yaml +0 -6760
  22. package/runtime/knowledge/hfs/slots.yaml +0 -2783
  23. package/runtime/knowledge/ui/presentation/font.yaml +0 -101
  24. package/runtime/knowledge/ui/presentation/padding.yaml +0 -217
  25. package/runtime/modules/kernel/removed-vocabulary.yaml +0 -458
  26. package/runtime/modules/models/registry.yaml +0 -221
  27. package/runtime/modules/models/runtimes.yaml +0 -556
  28. package/runtime/modules/models/tiers.yaml +0 -66
  29. package/runtime/scripts/hfs/allows.mjs +0 -77
  30. package/runtime/scripts/hfs/architecture/component-tiers.mjs +0 -161
  31. package/runtime/scripts/hfs/architecture/config.mjs +0 -407
  32. package/runtime/scripts/hfs/architecture/root-packages.mjs +0 -78
  33. package/runtime/scripts/hfs/architecture/side-boundary.mjs +0 -13
  34. package/runtime/scripts/hfs/architecture/type-context.mjs +0 -335
  35. package/runtime/scripts/hfs/architecture/typescript.mjs +0 -477
  36. package/runtime/scripts/hfs/declaration-shape.mjs +0 -196
  37. package/runtime/scripts/hfs/declaration-slots.mjs +0 -89
  38. package/runtime/scripts/hfs/edition-slots.mjs +0 -80
  39. package/runtime/scripts/hfs/manifest-shape.mjs +0 -474
  40. package/runtime/scripts/hfs/param-names.mjs +0 -13
  41. package/runtime/scripts/hfs/rule-catalog.mjs +0 -458
  42. package/runtime/scripts/hfs/rule-params-shape.mjs +0 -103
  43. package/runtime/scripts/hfs/slot-app-view.mjs +0 -97
  44. package/runtime/scripts/hfs/slot-classify.mjs +0 -69
  45. package/runtime/scripts/hfs/slot-errors.mjs +0 -12
  46. package/runtime/scripts/hfs/slot-imports.mjs +0 -98
  47. package/runtime/scripts/hfs/slot-manifest-shape.mjs +0 -111
  48. package/runtime/scripts/hfs/slot-match.mjs +0 -164
  49. package/runtime/scripts/hfs/slot-path.mjs +0 -6
  50. package/runtime/scripts/hfs/slot-required.mjs +0 -95
  51. package/runtime/scripts/hfs/slot-semantic-problems.mjs +0 -175
  52. package/runtime/scripts/hfs/slot-side-problems.mjs +0 -32
  53. package/runtime/scripts/hfs/slots.mjs +0 -306
  54. package/runtime/scripts/hfs/typescript-programs.mjs +0 -95
  55. package/runtime/scripts/hfs/view.mjs +0 -180
  56. package/runtime/scripts/lib/glob.mjs +0 -32
  57. package/runtime/scripts/lib/grammar-lint.mjs +0 -57
  58. package/runtime/scripts/lib/i18n.mjs +0 -82
  59. package/runtime/scripts/lib/json-clone.mjs +0 -70
  60. package/runtime/scripts/lib/json.mjs +0 -44
  61. package/runtime/scripts/lib/list.mjs +0 -26
  62. package/runtime/scripts/lib/path-key.mjs +0 -124
  63. package/runtime/scripts/lib/read-text.mjs +0 -47
  64. package/runtime/scripts/lib/regex.mjs +0 -3
  65. package/runtime/scripts/lib/source-phrases.mjs +0 -34
  66. package/runtime/scripts/lib/ts-analysis.mjs +0 -39
  67. package/runtime/scripts/lib/ts-ast.mjs +0 -63
  68. package/runtime/scripts/lib/walk.mjs +0 -45
  69. package/runtime/scripts/lib/yaml-cached.mjs +0 -14
@@ -1,101 +0,0 @@
1
- schema: starci/knowledge-source@1
2
- id: ui.presentation.font
3
- title: Font presentation
4
- appliesTo:
5
- - ui
6
- family: presentation
7
- purpose: Choose information rank and document semantics before typography. A heading establishes structure;
8
- ordinary copy does not. The selected Grammar owns the concrete type scale, renderers, props, weights, line
9
- heights and tracking under FE-RULE-OWNERSHIP. Applications compose that public contract and write
10
- layout-only CSS.
11
- ownerVocabulary:
12
- owners:
13
- - name: The selected text renderer
14
- meaning: Ordinary copy has no heading semantics
15
- applicationWrites: The published semantic rank through the selected Grammar API
16
- - name: The selected heading renderer
17
- meaning: A heading declares its actual document position
18
- applicationWrites: Its semantic level and any published emphasis treatment
19
- notes: Information rank belongs to the application; its visual realization belongs to the selected Grammar. A
20
- missing typography capability is a Grammar gap, never permission to override a component with application
21
- typography CSS.
22
- guidance:
23
- - id: weight
24
- title: Weight
25
- requirement: Weight refines an already chosen information rank. It does not create a hierarchy level or
26
- substitute for a heading. Use only the selected Grammar's published weight treatment; its concrete
27
- weights, defaults and renderer props belong to that family. Document structure remains meaningful when
28
- weight or colour is removed.
29
- rules:
30
- - id: FONT-1
31
- title: Lowest supporting rank
32
- governs: Supporting metadata remains subordinate while staying readable. The selected Grammar chooses its
33
- exact size and treatment.
34
- cases:
35
- - id: case-1
36
- when: Brief metadata remains understandable at the lowest supporting rank
37
- owner: The selected text renderer
38
- render: Compose its published supporting-copy treatment.
39
- - id: case-2
40
- when: A nested region has a label within an already titled section
41
- owner: The selected heading renderer
42
- render: Declare the nested region's actual document position; use the selected Grammar's corresponding recipe.
43
- notThisRule: Ordinary sentences and important facts must not be demoted to the lowest supporting rank.
44
- - id: FONT-2
45
- title: Supporting reading rank
46
- governs: A complete supporting line remains readable and visibly below ordinary reading copy.
47
- cases:
48
- - id: case-1
49
- when: A complete supporting line such as a timestamp or short fact sits below normal body copy
50
- owner: The selected text renderer
51
- render: Compose the published supporting reading rank without reducing readability.
52
- - id: case-2
53
- when: A subordinate region is nested within a section
54
- owner: The selected heading renderer
55
- render: Keep its document nesting and published heading treatment aligned.
56
- notThisRule: Do not shrink body copy to fit an undersized container; repair its layout.
57
- - id: FONT-3
58
- title: Ordinary reading rank
59
- governs: Explanatory copy has the normal reading priority of its region. Its visual recipe comes from the
60
- selected Grammar.
61
- cases:
62
- - id: case-1
63
- when: Ordinary explanatory copy has normal reading priority
64
- owner: The selected text renderer
65
- render: Use the normal reading treatment supplied by the selected Grammar.
66
- - id: case-2
67
- when: A section has its own heading inside a page
68
- owner: The selected heading renderer
69
- render: Declare the section's structural position independently of its size.
70
- - id: FONT-4
71
- title: Page-heading rank
72
- governs: The heading that names a page carries the primary structural rank of that document.
73
- cases:
74
- - id: case-1
75
- when: The single heading names the whole page or route
76
- owner: The selected heading renderer
77
- render: Use the page-heading role and its published family treatment.
78
- notThisRule: One document has one top-level page heading. A second page-heading role is a structural conflict.
79
- - id: FONT-5
80
- title: Leading-value emphasis
81
- governs: The principal numeric value or short fact of a region may carry emphasis without acquiring heading
82
- semantics.
83
- cases:
84
- - id: case-1
85
- when: A leading metric or short value is the main fact of its region
86
- owner: The selected text renderer
87
- render: Use the family's published value-emphasis treatment while retaining text semantics.
88
- notThisRule: Value emphasis is not decoration, sentence styling or an imitation of a heading.
89
- - id: FONT-6
90
- title: Display emphasis preserves structure
91
- governs: A page introduction may use the selected Grammar's display treatment while preserving the heading's
92
- actual semantic position.
93
- cases:
94
- - id: case-1
95
- when: A page introduction needs marketing or landing emphasis
96
- owner: The selected heading renderer
97
- render: Apply the published display treatment while keeping the document outline unchanged.
98
- notThisRule: A nested heading never gains a different outline position merely to obtain visual emphasis.
99
- doesNotDecide: |-
100
- Which colour expresses the rank is [Tone](tone.yaml). How the line wraps, aligns, or truncates is
101
- [Text flow](text-flow.yaml). How much room the text region gets is [Measure](measure.yaml).
@@ -1,217 +0,0 @@
1
- schema: starci/knowledge-source@1
2
- id: ui.presentation.padding
3
- title: Padding presentation
4
- appliesTo:
5
- - ui
6
- family: presentation
7
- purpose: Resolve one owned content edge per boundary. Applications write layout insets only for boundaries
8
- they own; a selected Grammar owns its components' internal insets and the values of its published scale.
9
- FE-RULE-OWNERSHIP keeps these universal requirements separate from family recipes.
10
- ownerVocabulary:
11
- owners:
12
- - name: Application layout
13
- meaning: The application owns this layout boundary
14
- applicationWrites: Its one layout inset from the selected Grammar scale
15
- - name: Selected Grammar component
16
- meaning: The published component owns this boundary
17
- applicationWrites: Compose its published API
18
- notes: Every boundary has one inset owner. Reimplementing an owned component inset or overriding its internal
19
- geometry violates that ownership. A missing component capability is repaired in the Grammar.
20
- guidance:
21
- - id: side-contact
22
- title: Side contact
23
- requirement: Resolve each side from the boundary it meets. An outer edge takes the published content
24
- clearance; a separator-facing side takes the published separator clearance; a side already owned by a
25
- child adds no inset. Inline sides of peer bands align. The selected Grammar owns the exact values and
26
- flush-band API.
27
- - id: composite-insets
28
- title: Composite insets
29
- requirement: An asymmetric inset recipe composes published scale values. Each side has an explicit boundary
30
- reason; the recipe introduces no new value. Preserve an existing recipe identity when its purpose is
31
- unchanged, and declare a new recipe only for a distinct boundary relationship.
32
- - id: axis-variants
33
- title: Axis variants
34
- requirement: An inset may apply to logical inline sides, block sides or one side independently. A narrower
35
- declaration on the same element replaces its selected sides; padding on nested elements adds. Do not
36
- introduce a wrapper merely to change a side that its owner already controls.
37
- rules:
38
- - id: PADDING-0
39
- title: No duplicate inset
40
- governs: A boundary contributes no extra space when content or a child already owns its edge.
41
- cases:
42
- - id: case-1
43
- when: A container only groups children that each carry their own boundary
44
- owner: Application layout
45
- render: Group without adding another inset.
46
- - id: case-2
47
- when: Surface bands run flush to the surface edge
48
- owner: The surface component
49
- render: Compose its published flush-band treatment.
50
- - id: case-3
51
- when: A list sits inside a panel or its rows own their own inset
52
- owner: The list component
53
- render: "Owner ruling 2026-10-25 (owner:panel-list-box-edge): the row box aligns with the panel content
54
- edge, like the search field and tabs boxes. Content retains the vendor item inset and rounded
55
- interaction background inside that box; the list keeps its vendor inset without negative-margin
56
- bleed. Compose without padding wrappers. The selected Grammar supplies the panel-alignment API;
57
- the universal FE canon reports stacked padding as FE_LIST_PANEL_PADDING."
58
- notThisRule: The boundary protecting readable content keeps its one owned inset from the selected Grammar scale.
59
- - id: PADDING-1
60
- title: Minimal clearance
61
- governs: Use the selected Grammar's smallest published inset where a deliberately tiny boundary nearly fits
62
- its content.
63
- cases:
64
- - id: case-1
65
- when: A compact marker or key floats over an application-owned canvas
66
- owner: Application layout
67
- render: Choose the smallest published inset that clears the marker content.
68
- - id: case-2
69
- when: A scroll region reserves room for focus visibility
70
- owner: The scroll-region component
71
- render: Compose the region; its focus clearance owns this inset.
72
- - id: case-3
73
- when: A short hint is attached to a control
74
- owner: The hint component
75
- render: Compose the hint; its internal inset stays with the component.
76
- - id: PADDING-2
77
- title: Compact clearance
78
- governs: Use the published compact inset for an auxiliary boundary that needs clear but economical edge space.
79
- cases:
80
- - id: case-1
81
- when: An auxiliary strip shares one inset on all sides
82
- owner: Application layout
83
- render: Apply the published compact inset once.
84
- - id: case-2
85
- when: A compact control bar sits above application-owned content
86
- owner: Application layout
87
- render: Keep its edge clearance and sibling gap as separate decisions.
88
- notThisRule: Space between siblings belongs to the parent gap, not the boundary inset.
89
- - id: PADDING-3
90
- title: Dense content clearance
91
- governs: Use the published dense inset for readable nested content and separator-facing band edges.
92
- cases:
93
- - id: case-1
94
- when: A nested container owns a boundary distinct from its parent
95
- owner: Application layout
96
- render: Apply the published dense inset to that distinct boundary.
97
- - id: case-2
98
- when: A tab strip or secondary navigation needs inline clearance
99
- owner: The navigation component
100
- render: Compose its published inset API.
101
- - id: case-3
102
- when: A band side meets a separator inside a flush surface
103
- owner: The selected Grammar recipe
104
- render: Use its separator-facing clearance while retaining inline alignment.
105
- - id: case-4
106
- when: A metric cell or list row meets a separator
107
- owner: The metric or list component
108
- render: The separator-facing side uses its published dense clearance.
109
- notThisRule: Repeating the same inset for the same boundary doubles it along the path from outer edge to content.
110
- - id: PADDING-4
111
- title: Readable content clearance
112
- governs: Use the published content inset once at the boundary that protects readable content.
113
- cases:
114
- - id: case-1
115
- when: An application section owns the distance from its border to its content
116
- owner: Application layout
117
- render: Apply the published content inset once.
118
- - id: case-2
119
- when: Content sits inside a card
120
- owner: The card component
121
- render: Compose the card; its content inset remains component-owned.
122
- - id: case-3
123
- when: A disclosure has a trigger and expanded panel
124
- owner: The disclosure component
125
- render: Compose the disclosure; its trigger and panel own their insets.
126
- - id: case-4
127
- when: An empty-state notice occupies a region
128
- owner: The notice component
129
- render: Compose the notice without adding its internal inset again.
130
- - id: case-5
131
- when: A fenced code block is displayed
132
- owner: The code-block component
133
- render: Compose the block without duplicating its content inset.
134
- - id: case-6
135
- when: A band side meets the outer edge of a flush surface
136
- owner: The selected Grammar recipe
137
- render: Use the published outer-edge content clearance.
138
- - id: case-7
139
- when: Inline sides of bands meet the same surface boundary
140
- owner: The selected Grammar recipe
141
- render: Use the same published inline inset on every band.
142
- - id: PADDING-5
143
- title: Generous section clearance
144
- governs: A deliberately more spacious section uses its selected Grammar's published generous inset.
145
- cases:
146
- - id: case-1
147
- when: A section deliberately uses equal generous clearance
148
- owner: Application layout
149
- render: Choose the published generous inset for that density.
150
- - id: case-2
151
- when: A tab frame owns page-level inline clearance
152
- owner: The navigation component
153
- render: Compose its published page-inset API.
154
- notThisRule: Space between child sections is a gap, not a boundary inset.
155
- - id: PADDING-6
156
- title: Low-density region clearance
157
- governs: A large, low-density region may use the selected Grammar's larger frame inset where its content
158
- density calls for it.
159
- cases:
160
- - id: case-1
161
- when: A large page region needs equal generous clearance
162
- owner: Application layout
163
- render: Choose its published larger frame inset.
164
- - id: case-2
165
- when: An empty or waiting region occupies most of the viewport
166
- owner: Application layout
167
- render: Give the region its own published frame clearance while its notice retains internal ownership.
168
- notThisRule: A large frame inset is not the default for ordinary content boundaries.
169
- - id: PADDING-7
170
- title: Responsive inset follows its boundary
171
- governs: A boundary keeps its meaning across widths. Its responsive inset follows adjacent published scale
172
- steps. Separator-facing sides retain their separator clearance; block sides change only when the
173
- boundary owns them.
174
- cases:
175
- - id: case-1
176
- when: A decision surface gains room at a wider viewport
177
- owner: The selected Grammar recipe
178
- render: Step inline clearance to the adjacent published inset.
179
- - id: case-2
180
- when: That surface's outer-edge block sides gain room with it
181
- owner: The selected Grammar recipe
182
- render: Step only the block sides owned by the outer boundary.
183
- - id: case-3
184
- when: A side meets an internal separator
185
- owner: The selected Grammar recipe
186
- render: Keep the separator-facing clearance at both widths.
187
- notThisRule: A separator-facing side does not step merely because the viewport widens.
188
- - id: PADDING-8
189
- title: Subordinate content indents at the inline start
190
- governs: An inset that expresses nested hierarchy applies at logical inline start. The end edge remains
191
- aligned with its parent so the reading measure stays available. The selected Grammar supplies the
192
- indentation step and disclosure recipe.
193
- cases:
194
- - id: case-1
195
- when: A disclosure body belongs under its trigger
196
- owner: The disclosure component
197
- render: Use its published leading indentation and unchanged trailing edge.
198
- - id: case-2
199
- when: A nested group belongs to a named parent row
200
- owner: The group component
201
- render: Use the selected Grammar's per-level leading indentation.
202
- notThisRule: Indenting both sides reads as an inset block rather than subordinate content. A missing
203
- disclosure capability is repaired in the Grammar.
204
- - id: PADDING-9
205
- title: Routed content owns its block inset
206
- governs: A routed content region may step its block inset with the viewport while the page container retains
207
- inline inset ownership. Its responsive values use adjacent published steps and never duplicate the page
208
- edge.
209
- cases:
210
- - id: case-1
211
- when: Routed content sits directly beneath the page shell
212
- owner: Application layout
213
- render: Apply its published responsive block inset; leave inline clearance with the page container.
214
- notThisRule: Inline clearance on routed content duplicates the page-container edge and is refused.
215
- doesNotDecide: Space between siblings is Gap (gap.yaml), and external offsets are Margin (margin.yaml). The
216
- selected Grammar owns page-container geometry, its closed inset scale and component recipes under
217
- FE-RULE-OWNERSHIP; its playbook supplies the concrete values used in proof.