@starci/eslint-canon-fe 9.2.0 → 9.3.0

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,10 @@
1
1
  # Changelog
2
2
 
3
+ ## 9.3.0 - 2026-10-28
4
+
5
+ - Changed (breaking for apps): owner ruling fe-shape-not-state. A pure half takes `{ shape?, props, on? }`; `base-props-atom` refuses the retired `state` key with a message naming the rename, and `no-data-status-shape` reads `XShape` unions (and still the old `XState` names, so a status word is caught during the rename).
6
+ - Changed: the bundled runtime copies follow the retirement of `@starci/cli`: the bundled canon pins replace the retired `@starci/cli` with `starci-harness` 1.1.0-alpha.1 (`source: cli/package.json`), the one command line a product installs for `starci app`, and follow the harness packages (Grammar family 0.14.0, hfs 4.9.0, canon-fe 9.3.0, canon-be 3.5.0); the runtime finds an app's `starci` bin in its installed `starci-harness`.
7
+
3
8
  ## 9.2.0 - 2026-10-27
4
9
 
5
10
  - Changed: owner ruling two-grammars: the bundled Grammar catalog declares exactly two families, `core` (`@starci/eslint-grammar-core`, `coreGrammarConfig`) and `offset-pop`; `starci`, `starci-core` and `heritage` are refused. The Grammar entry checks (button intent, control height, surface rules, UI rulings) accept `@starci/grammar/<common|core|offset-pop>`. The bundled canon pins follow the harness packages (Grammar family 0.13.0, hfs 4.8.0, canon-fe 9.2.0, canon-be 3.4.57, stylelint-canon 2.1.0).
package/drawing.mjs CHANGED
@@ -75,7 +75,7 @@ const keyOf = (member) => (member.key?.type === "Identifier" ? member.key.name :
75
75
  export const basePropsAtom = {
76
76
  meta: {
77
77
  type: "problem",
78
- docs: { description: "A pure `XBase` takes `state`, atom `props` and `on` actions; feature composition may receive named render callbacks in `props`." },
78
+ docs: { description: "A pure `XBase` takes `shape`, atom `props` and `on` actions; feature composition may receive named render callbacks in `props`." },
79
79
  schema: [],
80
80
  messages: {
81
81
  tree:
@@ -85,7 +85,9 @@ export const basePropsAtom = {
85
85
  onData:
86
86
  "`on.{{key}}` is not an action. `on` holds functions only; data belongs in `props`.",
87
87
  member:
88
- "`{{key}}` is not part of the pure contract. A pure half takes `state`, `props` and `on`{{children}}.",
88
+ "`{{key}}` is not part of the pure contract. A pure half takes `shape`, `props` and `on`{{children}}.",
89
+ renamed:
90
+ "`state` is the retired name of the drawn shape: rename it `shape` (owner ruling fe-shape-not-state).",
89
91
  },
90
92
  },
91
93
  create(context) {
@@ -197,7 +199,11 @@ export const basePropsAtom = {
197
199
  for (const member of membersOf(annotation, types)) {
198
200
  const key = keyOf(member)
199
201
  const type = member.typeAnnotation?.typeAnnotation
200
- if (key === "state") continue
202
+ if (key === "shape") continue
203
+ if (key === "state") {
204
+ context.report({ node: member, messageId: "renamed" })
205
+ continue
206
+ }
201
207
  if (key === "props") checkData(type, "props", new Set())
202
208
  else if (key === "on") checkActions(type)
203
209
  else if (key === "children" && tier === "layouts") continue
@@ -274,11 +280,11 @@ const DATA_STATUS = new Set([
274
280
  "skeleton", "closed", "idle", "refreshing", "retrying",
275
281
  ])
276
282
 
277
- /** A surface's `XState` names shapes only. */
283
+ /** A surface's `XShape` names shapes only. */
278
284
  export const noDataStatusShape = {
279
285
  meta: {
280
286
  type: "problem",
281
- docs: { description: "`XState` of a pure half names drawn shapes, never a data status or open/closed." },
287
+ docs: { description: "`XShape` of a pure half names drawn shapes, never a data status or open/closed." },
282
288
  schema: [],
283
289
  messages: {
284
290
  status:
@@ -298,7 +304,7 @@ export const noDataStatusShape = {
298
304
  }
299
305
  return {
300
306
  TSTypeAliasDeclaration(node) {
301
- if (/^[A-Z][A-Za-z0-9]*State$/.test(node.id.name)) check(node.id.name, node.typeAnnotation)
307
+ if (/^[A-Z][A-Za-z0-9]*(?:Shape|State)$/.test(node.id.name)) check(node.id.name, node.typeAnnotation)
302
308
  },
303
309
  }
304
310
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@starci/eslint-canon-fe",
3
- "version": "9.2.0",
3
+ "version": "9.3.0",
4
4
  "description": "Universal front-end lint laws for TypeScript and Next.js, independent of the selected Grammar family.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -30,35 +30,35 @@ pins:
30
30
  source: packages/event-stream/package.json
31
31
  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.'
32
32
  '@starci/grammar':
33
- version: 0.13.0
33
+ version: 0.14.0
34
34
  group: starci
35
35
  install: registry
36
36
  side: fe
37
37
  source: packages/grammar/package.json
38
38
  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.'
39
39
  '@starci/eslint-canon-be':
40
- version: 3.4.57
40
+ version: 3.5.0
41
41
  group: starci
42
42
  install: registry
43
43
  side: be
44
44
  source: packages/eslint-canon-be/package.json
45
45
  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.'
46
46
  '@starci/eslint-canon-fe':
47
- version: 9.2.0
47
+ version: 9.3.0
48
48
  group: starci
49
49
  install: registry
50
50
  side: fe
51
51
  source: packages/eslint-canon-fe/package.json
52
52
  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.'
53
53
  '@starci/eslint-grammar-core':
54
- version: 0.13.0
54
+ version: 0.14.0
55
55
  group: starci
56
56
  install: registry
57
57
  side: fe
58
58
  source: packages/eslint-grammar-core/package.json
59
59
  why: 'the StarCi Grammar component API lint, versioned with @starci/grammar; front ends compose this family package with the universal FE canon.'
60
60
  '@starci/eslint-grammar-offset-pop':
61
- version: 0.13.0
61
+ version: 0.14.0
62
62
  group: starci
63
63
  install: registry
64
64
  side: fe
@@ -97,19 +97,20 @@ pins:
97
97
  side: be
98
98
  source: packages/test-world/package.json
99
99
  why: 'the shared e2e library of every back end (R47, R48), a devDependency of every back end: the warm stack behind toxiproxy, the network-edge fakes, the Nest boot, the typed useTestWorld handle, useSandbox for contract specs and the outage lock. Kafka is real own infra (the one digest-pinned apache/kafka KRaft image, a broker listener and proxy per slot, slot-prefixed topics, consumer groups and client ids) and Postgres is schema-per-context (a schema and a login role per context in a shared database). Each worker has its own data slot (<ns>_w<k>) with its own databases, Keycloak realm, leased Redis DB, bucket/collection/topic prefixes, fakes host, toxiproxy proxies and outage lock; a run provisions min(jest workers, workers cap, default 2) slots, and state file protocol 2 pairs exactly with @starci/jest-preset (TEST_WORLD_PAIR_MISMATCH otherwise). A modules world boots real peer apps beside its modules, world.apps.<name>.during(fn) is the outage of a peer app, w.keycloak.clientSecret(client) answers the run-generated secret of a confidential realm client, world.keycloak.events/sessions read the realm user events and live sessions, world.infra.postgresql.connection(name) takes one database connection down while the others serve, and world.resolve and scope.resolve take any Nest token. Every path a declaration names (`stack`, seeds, the realm, Dockerfiles) resolves from the app root (the directory of hfs.json); the globalSetup registers the path aliases as TypeScript resolves them. Its CLI main is exported at ./cli for starci app stack.'
100
- '@starci/cli':
101
- version: 1.7.47
100
+ 'starci-harness':
101
+ version: 1.1.0-alpha.1
102
102
  group: starci
103
103
  install: registry
104
104
  side: both
105
- why: 'the only StarCi command package; product repositories install it for starci app, while @starci/hfs remains its pinned transitive implementation.'
105
+ source: cli/package.json
106
+ why: 'the one StarCi command line (bins starci and starci-harness): a product repository installs it for starci app, which it runs in-process through its exact @starci/hfs dependency, and its codegen loads starci-harness/input-bounds.'
106
107
  '@starci/hfs':
107
- version: 4.8.0
108
+ version: 4.9.0
108
109
  group: starci
109
110
  install: registry
110
111
  side: both
111
112
  source: packages/hfs/package.json
112
- why: 'the transitive app implementation used by @starci/cli; it carries the generated runtime slice read by starci app commands.'
113
+ why: 'the app implementation starci-harness runs for starci app; it carries the generated runtime slice read by starci app commands.'
113
114
  # --- tooling
114
115
  typescript:
115
116
  version: 5.9.3
@@ -13,9 +13,9 @@ export const packageAt = (dir, name) => {
13
13
  /** This runtime's own `starci` bin (packages/cli is the only package that declares one). */
14
14
  const RUNTIME_STARCI_BIN = path.join(skillRoot, 'packages', 'cli', 'bin', 'starci.mjs');
15
15
 
16
- /** The `starci` bin of the @starci/cli that `dir` installs (a product runs its own pinned CLI), else this runtime's own. */
16
+ /** The `starci` bin of the starci-harness that `dir` installs (a product runs its own pinned CLI), else this runtime's own. */
17
17
  function starciBin(dir) {
18
- const packageFile = packageAt(dir, '@starci/cli');
18
+ const packageFile = packageAt(dir, 'starci-harness');
19
19
  if (packageFile) {
20
20
  try {
21
21
  const { bin } = JSON.parse(fs.readFileSync(packageFile, 'utf8'));
@@ -50,13 +50,13 @@ export const loadTypescript = (...dirs) => {
50
50
  };
51
51
 
52
52
  /**
53
- * The app's command line and the app implementation behind it: `bin` the `starci` bin of the app's installed @starci/cli, else
53
+ * The app's command line and the app implementation behind it: `bin` the `starci` bin of the app's installed starci-harness, else
54
54
  * this runtime's packages/cli/bin/starci.mjs (starciBin); `dir` the @starci/hfs that answers
55
- * `starci app` - the app's own install, else the one beside its @starci/cli, else this runtime's packages/hfs - whose runtime
55
+ * `starci app` - the app's own install, else the one beside its starci-harness, else this runtime's packages/hfs - whose runtime
56
56
  * slice the gate's base lint (scripts/gates/gate.mjs) and the READ digest (scripts/gates/read-digest.mjs) load in-process.
57
57
  */
58
58
  export function hfsEntry(root) {
59
- const cli = packageAt(root, '@starci/cli');
59
+ const cli = packageAt(root, 'starci-harness');
60
60
  const manifest = packageAt(root, '@starci/hfs') ?? (cli && packageAt(path.dirname(cli), '@starci/hfs'));
61
61
  return { dir: manifest ? path.dirname(manifest) : path.join(skillRoot, 'packages', 'hfs'), bin: starciBin(root) };
62
62
  }