@starci/eslint-grammar-core 0.22.0 → 0.23.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.
Files changed (69) hide show
  1. package/CHANGELOG.md +8 -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,114 +0,0 @@
1
- schema: starci/knowledge-source@1
2
- id: grammars
3
- title: Grammar families
4
- purpose: |
5
- Catalog of authored UI Grammar families. Inventory only — not a default-family rule.
6
- The selected design specification names the applicable installed family. The app binds that choice
7
- explicitly in sides.fe.grammar; the catalog resolves its lint package and component contract.
8
- A missing or ambiguous family never silently resolves to a family. DNA snapshots describe the
9
- observed implementation; they do not install packages or prove current rendered behavior.
10
- appliesTo:
11
- - grammar
12
- provenance:
13
- limitations: |
14
- Component names, tokens and gap tables describe the reference family at observation time.
15
- Verify actual package identity/version, exported types, CSS and renderer source in the selected
16
- repository before using snapshot APIs or gaps. Record current source references in the selected
17
- .starciwork node; an old source census is not current UAT evidence. The current public consumer
18
- entry observed for FE work is @starci/grammar/common — confirm installed exports before import.
19
- The `common` entry is a DNA snapshot of that semantic entry and nothing more: it declares no palette,
20
- no family boundary and no composition playbook, because the entry itself ships none of them.
21
- guidance:
22
- - id: catalog-not-default
23
- requirement: |
24
- Do not treat this catalog as selecting a default Grammar family. Family choice belongs to the
25
- current design specification and its explicit sides.fe.grammar declaration.
26
- rationale: |
27
- Silent fallback to a family would invent product direction and override an absent/ambiguous design.
28
- - id: verify-before-use
29
- requirement: |
30
- Before applying snapshot APIs or recorded gaps, inspect the selected repository's package
31
- identity/version, exported types, CSS and renderer source.
32
- rationale: |
33
- Snapshots are historical; installed exports may differ. Inventing missing APIs is forbidden.
34
- - id: ui-owns-universal
35
- requirement: |
36
- Common semantics, renderer anatomy, state and accessibility remain owned by knowledge/ui.
37
- A family owns its scoped visual realization and promoted idioms; the product owns its facts,
38
- content, routes and approved composition.
39
- Apply FE-RULE-OWNERSHIP in knowledge/patterns/fe/index.yaml when placing requirements and checks.
40
- rationale: |
41
- Keeps universal UI law separate from family-scoped DNA and product composition.
42
- topics:
43
- - id: common
44
- path: common/DNA.yaml
45
- title: Common Grammar — DNA
46
- summary: |
47
- Generated DNA snapshot of the `@starci/grammar/common` public entry: custom properties,
48
- the 110 renderers of its registry, their classes, stamped rule ids and recorded gaps. The DNA owns the observed package
49
- version and source inventory. Common supplies anatomy, not colour. The snapshot is drift-checked.
50
- - id: core
51
- path: core/index.yaml
52
- title: Core Grammar
53
- summary: |
54
- Historical snapshot of the core family — DNA, idioms, playbook (including composing the
55
- 0.5.0 forms, overlays and navigation chrome) and family boundaries.
56
- - id: offset-pop
57
- path: offset-pop/index.yaml
58
- title: Offset Pop Grammar
59
- summary: |
60
- Snapshot of the product-neutral Offset Pop family — cream canvas, ink outline plus hard offset
61
- shadow, one pink decision accent with a text-safe accent for text — with DNA, idioms, a
62
- mobile-first playbook for playful learning or consumer apps, and family boundaries including two
63
- decisions flagged for the family owner.
64
- families:
65
- - id: common
66
- title: common
67
- componentContract:
68
- package: '@starci/grammar'
69
- entry: '@starci/grammar/common'
70
- styleEntry: '@starci/grammar/common.css'
71
- semanticRoles:
72
- page:
73
- export: Page
74
- entries: ['@starci/grammar/common', '@starci/grammar/<family>']
75
- segment: { attribute: header, member: tabs }
76
- bodyContainers: [PaneGrid, Pane, Stack, PaneSection, Section]
77
- # Native body transparency follows the renderer's exact context, status and intrinsic-element API.
78
- bodyContainerConstraints:
79
- Pane: { providesContext: pane }
80
- Stack: { literalProps: { as: [div, header, footer] } }
81
- PaneSection: { requiresContext: pane, absentProps: [error], literalProps: { as: [div, header, footer] } }
82
- Section: { absentProps: [error], literalProps: { kind: [region] } }
83
- peers: [react, '@heroui/react', '@xyflow/react', react-aria-components]
84
- packageSnapshot: common/DNA.yaml
85
- scope: |
86
- DNA snapshot only. This catalog carries no Common-side family boundary, idiom set or composition
87
- playbook: `@starci/grammar/common` is the semantic/props entry every visual family is defined over
88
- (`defineGrammarFamily`), not a family that ships a palette, so `authority`, `reusableStyle`,
89
- `productComposition` and `index` have nothing to name here. Universal semantics, renderer anatomy,
90
- state and accessibility remain owned by knowledge/ui.
91
- - id: core
92
- title: core
93
- contractRef: common
94
- lint:
95
- package: '@starci/eslint-grammar-core'
96
- factory: coreGrammarConfig
97
- prefix: starci-grammar
98
- authority: core/family.yaml
99
- packageSnapshot: core/DNA.yaml
100
- reusableStyle: core/idioms.yaml
101
- productComposition: core/playbook.yaml
102
- index: core/index.yaml
103
- - id: offset-pop
104
- title: offset-pop
105
- contractRef: common
106
- lint:
107
- package: '@starci/eslint-grammar-offset-pop'
108
- factory: offsetPopGrammarConfig
109
- prefix: starci-grammar
110
- authority: offset-pop/family.yaml
111
- packageSnapshot: offset-pop/DNA.yaml
112
- reusableStyle: offset-pop/idioms.yaml
113
- productComposition: offset-pop/playbook.yaml
114
- index: offset-pop/index.yaml