@starci/hfs 4.16.3 → 4.16.4

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
+ ## 4.16.4 - 2026-11-01
4
+
5
+ - Fixed: the unused-symbol value resolver no longer overflows the call stack on a recursive function that spreads its own parameter (`{ ...term, op }` in a `reset(term)` that maps itself over `term.all`): the typed-property lookup carries the resolver's visited set instead of starting a fresh one, so the cycle ends at the first repeated node (`starci app check` crashed with "Maximum call stack size exceeded" in the hfs structure step).
6
+ - Changed: the bundled canon pins name @starci/grammar 0.20.1, eslint-grammar-core and eslint-grammar-offset-pop 0.20.1, eslint-canon-be 3.11.5, eslint-canon-fe 9.8.4 and hfs 4.16.4.
7
+
3
8
  ## 4.16.3 - 2026-11-01
4
9
 
5
10
  - Changed: the bundled canon pins name hfs 4.16.3, @starci/grammar 0.20.0, eslint-canon-be 3.11.4, eslint-canon-fe 9.8.3 and eslint-grammar-core and eslint-grammar-offset-pop 0.20.0 (RELEASE_VERSION_NOT_BUMPED: 4.16.2 is on npm).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@starci/hfs",
3
- "version": "4.16.3",
3
+ "version": "4.16.4",
4
4
  "description": "The StarCi app command implementation for scaffolding, linting, checking and synchronizing one product repository.",
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.20.0
34
+ version: 0.20.1
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.11.4
41
+ version: 3.11.5
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.8.3
48
+ version: 9.8.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.20.0
55
+ version: 0.20.1
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.20.0
62
+ version: 0.20.1
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.16.3
109
+ version: 4.16.4
110
110
  group: starci
111
111
  install: registry
112
112
  side: both
@@ -225,7 +225,7 @@ const readonlyDeclaration = (ts, symbol, name) => {
225
225
  * of that property in every object literal the program types by that declaration, in a typed table of constants. Any owner type that is not
226
226
  * such a declaration, or a literal whose property comes from an unknown source, leaves the read unresolved.
227
227
  */
228
- function typedPropertyValues(state, node) {
228
+ function typedPropertyValues(state, node, seen) {
229
229
  const { ts, checker } = state;
230
230
  const owner = checker.getNonNullableType(checker.getTypeAtLocation(node.expression));
231
231
  const owners = owner.isUnion() ? owner.types : [owner];
@@ -236,7 +236,7 @@ function typedPropertyValues(state, node) {
236
236
  if (!literals?.length || !readonlyDeclaration(ts, symbol, node.name.text))
237
237
  return [];
238
238
  for (const literal of literals) {
239
- const property = ownerProperty(state, literal, node.name.text, new Set(), valuesOf);
239
+ const property = ownerProperty(state, literal, node.name.text, seen, valuesOf);
240
240
  if (property === null)
241
241
  return [];
242
242
  values.push(...property.values);
@@ -272,7 +272,7 @@ export function valuesOf(state, expression, visited = new Set()) {
272
272
  // Reading a property of null or undefined throws, so a nullish branch of the owner holds no value of the property.
273
273
  const owners = valuesOf(state, node.expression, seen).filter((owner) => !isNullish(ts, owner));
274
274
  const known = resolveAll(state, propertiesOf(state, owners, node.name.text, seen, valuesOf), seen);
275
- return narrowed(known.length ? known : resolveAll(state, typedPropertyValues(state, node), seen));
275
+ return narrowed(known.length ? known : resolveAll(state, typedPropertyValues(state, node, seen), seen));
276
276
  }
277
277
  if (ts.isElementAccessExpression(node))
278
278
  return orLeaf(resolveAll(state, tableValues(state, node, seen), seen));