@starci/eslint-canon-be 3.6.3 → 3.6.6

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,21 @@
1
1
  # Changelog
2
2
 
3
+ ## 3.6.6 - 2026-10-29
4
+
5
+ - Changed: the bundled canon pins name the Grammar family 0.15.8 (grammar, eslint-grammar-core, eslint-grammar-offset-pop), eslint-canon-fe 9.4.7 and eslint-canon-be 3.6.6. No rule changed.
6
+
7
+ ## 3.6.5 - 2026-10-29
8
+
9
+ - Changed: `starci-be/em-injection-slots` (R88) admits `platform/http-security` as a persistence capability: it owns the shared rate limit windows (BE-AUTH-4), and its guard counts in them through the primary `EntityManager`. Spec: `src/connections.spec.ts`.
10
+ - Changed: the bundled canon pins name hfs 4.9.9 and eslint-canon-be 3.6.5.
11
+ - Changed: the bundled canon pins name the Grammar family 0.15.7 (grammar, eslint-grammar-core, eslint-grammar-offset-pop) and eslint-canon-fe 9.4.6. No rule changed.
12
+ - Changed: the bundled canon pins name the Grammar family 0.15.5 (grammar, eslint-grammar-core, eslint-grammar-offset-pop). No rule changed.
13
+ - Changed: the bundled rule catalog states R225 with the app pre-push hook's dependency push gate (`starci deps check`). No rule changed.
14
+
15
+ ## 3.6.4 - 2026-10-28
16
+
17
+ - Changed: the bundled rule catalog carries R324 and R325 (the Grammar page frame laws), and 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). No rule changed.
18
+
3
19
  ## 3.6.3 - 2026-10-28
4
20
 
5
21
  - Changed: the bundled rule catalog carries R323 (the Grammar page header law), and 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). No rule changed.
@@ -214,7 +214,7 @@ export const emInjectionSlots = {
214
214
  docs: { description: "An `EntityManager` is injected only in application handlers, domain services, projections and the platform capabilities that own a `persistence/`." },
215
215
  schema: [],
216
216
  messages: {
217
- slot: "`EntityManager` is injected in a file of slot `{{slot}}`. Only an application `*.handler.ts`, a domain `*.service.ts`, a projection's `*.projection.ts` and the platform database, inbox, event-bus, queue and jobs capabilities reach the database. Transport dispatches a command or query, an integration calls its provider, an app composes: move the data access into a handler or a domain service.",
217
+ slot: "`EntityManager` is injected in a file of slot `{{slot}}`. Only an application `*.handler.ts`, a domain `*.service.ts`, a projection's `*.projection.ts` and the platform capabilities that own a `persistence/` (database, inbox, event-bus, queue, jobs, saga, outbox, realtime, http-security) reach the database. Transport dispatches a command or query, an integration calls its provider, an app composes: move the data access into a handler or a domain service.",
218
218
  },
219
219
  },
220
220
  create(context) {
@@ -95,7 +95,7 @@ export const connectionFileOf = (hfs, file, role) => {
95
95
  return connectionsOf(hfs).find((connection) => connection.name === name) ?? null;
96
96
  };
97
97
  /** The platform capabilities that own a `persistence/` and so may hold an `EntityManager` (a pattern capability is named by its folder). */
98
- const PERSISTENCE_CAPABILITIES = ["database", "inbox", "event-bus", "queue", "jobs", "saga", "outbox", "realtime"];
98
+ const PERSISTENCE_CAPABILITIES = ["database", "inbox", "event-bus", "queue", "jobs", "saga", "outbox", "realtime", "http-security"];
99
99
  /**
100
100
  * Whether a class in this file may receive an `EntityManager`: an application handler, a domain service, a projection, a typed queue producer (it takes the transaction of its caller), a platform persistence capability.
101
101
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@starci/eslint-canon-be",
3
- "version": "3.6.3",
3
+ "version": "3.6.6",
4
4
  "description": "The StarCi back-end lint canon: every rule its laws publish, gathered as one flat-config plugin.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -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.3
34
+ version: 0.15.8
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.3
41
+ version: 3.6.6
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.3
48
+ version: 9.4.7
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.3
55
+ version: 0.15.8
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.3
62
+ version: 0.15.8
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.4
109
+ version: 4.9.9
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: 'diagrams (fe-stack diagrams); version read from the starci-academy package-lock on 2026-10-13.'
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
@@ -3894,7 +3894,7 @@ rules:
3894
3894
  - {kind: runtime, id: protected-zone, at: scripts/hfs/runtime-rules/rights-policy.mjs}
3895
3895
  - id: R225
3896
3896
  code: "RT_HOOK_SHAPE"
3897
- law: "The app hook templates keep the gate model: pre-commit is L0 only (no typecheck or test run); pre-push invokes the bundled scripts/guards/release-push-gate.mjs policy for fast-forward main, a clean outgoing secret scan and annotated v* tags. It runs no build, test, typecheck or lint."
3897
+ law: "The app hook templates keep the gate model: pre-commit is L0 only (no typecheck or test run); pre-push invokes the bundled scripts/guards/release-push-gate.mjs policy for fast-forward main, a clean outgoing secret scan and annotated v* tags, then the harness's `starci deps check` (every committed @starci pin installable from npm, no local package copy ahead of npm). It runs no build, test, typecheck or lint."
3898
3898
  scope: runtime
3899
3899
  kinds: [check]
3900
3900
  gates: [land, runtime]
@@ -5710,3 +5710,49 @@ rules:
5710
5710
  source: owner
5711
5711
  quote: "Publish Grammar 0.15.3 with PageHeader now, then move all 18 pages to it before deploying. (translated from Vietnamese)"
5712
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."