@starci/hfs 4.2.11 → 4.2.13

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,16 @@
1
1
  # Changelog
2
2
 
3
+ ## 4.2.13 - 2026-10-12
4
+
5
+ - Added: HFS manifest 2.2.0 owns app compiler declarations under the declaration-only types/ambient slot, without a runtime entry; runtime source files remain refused there.
6
+ - Fixed: the derived Grammar contract selects all three required peers, react, @heroui/react and @xyflow/react. Full and lite FE scaffolds and the shared UI workspace declare @xyflow/react at the canonical 12.11.6 pin.
7
+ - Fixed: full and lite Next app scaffolds and the four Next app examples declare CSS imports through global declarations in their ambient owner, while missing non-CSS side-effect imports remain errors under TypeScript 6.
8
+ - Changed: carry the merged runtime mirror and canon pins for Grammar 0.9.13 and Stylelint canon 2.0.9, retaining the no-frontend-tests policy.
9
+
10
+ ## 4.2.12 - 2026-10-12
11
+
12
+ - Changed: bundled canon pins carry @starci/grammar 0.9.12 (the secondary tab track keeps its padding).
13
+
3
14
  ## 4.2.11 - 2026-10-12
4
15
 
5
16
  - Changed: bundled canon pins carry @starci/grammar 0.9.11 (secondary Tabs are HeroUI's own pill tabs).
@@ -8,9 +19,13 @@
8
19
 
9
20
  - Changed: bundled canon pins carry @starci/grammar 0.9.10 (the grammar ships without spec suites).
10
21
 
22
+ ## 4.2.9 - 2026-10-12
23
+
24
+ - Changed: refresh the bundled canon pins for CLI 1.2.9 and the BE/FE lint canons 3.2.10/8.2.10 after correcting the CLI runtime install pin; app command implementations are unchanged.
25
+
11
26
  ## 4.2.8 - 2026-10-12
12
27
 
13
- - Changed: refresh the bundled canon pins for grammar 0.9.9; behaviour is unchanged.
28
+ - Changed: refresh the bundled runtime and canon pins for grammar 0.9.9, the BE/FE lint canons 3.2.9/8.2.9, stylelint-canon 2.0.8 and CLI 1.2.8; app command implementations are unchanged.
14
29
 
15
30
  ## 4.2.7 - 2026-10-12
16
31
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@starci/hfs",
3
- "version": "4.2.11",
3
+ "version": "4.2.13",
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",
@@ -22,28 +22,28 @@ pins:
22
22
  source: packages/heroicons/package.json
23
23
  why: 'StarCi custom Heroicons-compatible cuts; eslint-canon-fe (icon.mjs) admits @starci/heroicons/24/outline and /16/solid as icon sources, so an app that uses them gets this exact version.'
24
24
  '@starci/grammar':
25
- version: 0.9.11
25
+ version: 0.9.13
26
26
  group: starci
27
27
  install: registry
28
28
  side: fe
29
29
  source: packages/grammar/package.json
30
30
  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.'
31
31
  '@starci/eslint-canon-be':
32
- version: 3.2.12
32
+ version: 3.2.14
33
33
  group: starci
34
34
  install: registry
35
35
  side: be
36
36
  source: packages/eslint/be/package.json
37
37
  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.'
38
38
  '@starci/eslint-canon-fe':
39
- version: 8.2.12
39
+ version: 8.2.14
40
40
  group: starci
41
41
  install: registry
42
42
  side: fe
43
43
  source: packages/eslint/fe/package.json
44
44
  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.'
45
45
  '@starci/stylelint-canon':
46
- version: 2.0.7
46
+ version: 2.0.9
47
47
  group: starci
48
48
  install: registry
49
49
  side: fe
@@ -76,14 +76,14 @@ pins:
76
76
  source: packages/test-world/package.json
77
77
  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.'
78
78
  '@starci/cli':
79
- version: 1.2.11
79
+ version: 1.2.13
80
80
  group: starci
81
81
  install: registry
82
82
  side: both
83
83
  source: packages/cli/package.json
84
84
  why: 'the only StarCi command package; product repositories install it for starci app, while @starci/hfs remains its pinned transitive implementation.'
85
85
  '@starci/hfs':
86
- version: 4.2.11
86
+ version: 4.2.13
87
87
  group: starci
88
88
  install: registry
89
89
  side: both
@@ -274,6 +274,11 @@ pins:
274
274
  side: be
275
275
  why: the e2e world of a back end calls the app over HTTP (/health/live in the skeleton); two product back ends resolve 7.3.0, one 7.2.2.
276
276
  # --- ui
277
+ '@xyflow/react':
278
+ version: 12.11.6
279
+ group: ui
280
+ side: fe
281
+ why: 'Grammar FlowGraph imports React Flow from @xyflow/react; every Grammar consumer declares this required peer at the version used by the Grammar package.'
277
282
  '@heroui/react':
278
283
  version: 3.2.6
279
284
  group: ui
@@ -7,7 +7,7 @@
7
7
  # catalog READ this file through scripts/hfs/slots.mjs; none of them hardcodes a path.
8
8
  # Shape: modules/schemas/hfs-slots.schema.yaml. The repository side is hfs.json: modules/schemas/hfs-repo.schema.yaml.
9
9
  schema: starci/hfs-slots@2
10
- version: 2.1.0
10
+ version: 2.2.0
11
11
 
12
12
  versioning:
13
13
  # MAJOR.MINOR.PATCH of this manifest. A repository pins only the MAJOR in hfs.json ("hfs": 2).
@@ -1844,6 +1844,18 @@ slots:
1844
1844
  tier: foundation
1845
1845
  tests: none
1846
1846
  why: shared types with no runtime behaviour; a component may import them
1847
+ - id: fe.modules.types.ambient
1848
+ parent: fe.modules.types
1849
+ profiles: [fe]
1850
+ path: "apps/<app>/src/modules/types/ambient/"
1851
+ presence: optional
1852
+ tracked: tracked
1853
+ tier: foundation
1854
+ owner: true
1855
+ allows: ["*.d.ts"]
1856
+ tests: none
1857
+ since: 2.2.0
1858
+ why: global ambient declarations loaded by the app compiler; this owner exposes no runtime API
1847
1859
  - id: fe.modules.db
1848
1860
  profiles: [fe]
1849
1861
  # The db transport of an app on Supabase (the ONLY place that imports @supabase/ssr or @supabase/supabase-js, L10): the
@@ -291,7 +291,7 @@ function derivedGrammar(root, packageRoot, workspaces, apps = []) {
291
291
  if (declaresGrammar(pkg)) consumerManifests.push(manifest);
292
292
  }
293
293
  if (!consumerManifests.length) return null;
294
- return { package: GRAMMAR_PACKAGE, entry: `${GRAMMAR_PACKAGE}/common`, styleEntry: `${GRAMMAR_PACKAGE}/common.css`, styleSources, consumerManifests, peers: ['react', '@heroui/react'] };
294
+ return { package: GRAMMAR_PACKAGE, entry: `${GRAMMAR_PACKAGE}/common`, styleEntry: `${GRAMMAR_PACKAGE}/common.css`, styleSources, consumerManifests, peers: ['react', '@heroui/react', '@xyflow/react'] };
295
295
  }
296
296
 
297
297
  /**
package/scaffold/app.mjs CHANGED
@@ -130,17 +130,17 @@ const LITE_STARTER_DEPENDENCIES = Object.freeze({
130
130
 
131
131
  /**
132
132
  * The runtime dependencies of every fe app workspace of the starter: what its skeleton imports (the two workspace packages at "*",
133
- * next with next-intl, react, the grammar and the HeroUI styles of its globals.css), @heroui/react (the grammar's peer, which every app
134
- * declares: the grammar contract) and react-dom (next's peer). `@<project>/<pkg>` names are filled with the project.
133
+ * next with next-intl, react, the grammar and the HeroUI styles of its globals.css), @heroui/react and @xyflow/react
134
+ * (the grammar's required peers, which every consumer declares: the grammar contract) and react-dom (next's peer). `@<project>/<pkg>` names are filled with the project.
135
135
  */
136
136
  const FE_APP_DEPENDENCIES = Object.freeze({
137
137
  '@<project>/i18n': '*', '@<project>/ui': '*',
138
- '@heroui/react': null, '@heroui/styles': null, '@starci/grammar': null, next: null, 'next-intl': null, react: null, 'react-dom': null,
138
+ '@heroui/react': null, '@heroui/styles': null, '@starci/grammar': null, '@xyflow/react': null, next: null, 'next-intl': null, react: null, 'react-dom': null,
139
139
  });
140
140
 
141
141
  /** The sole lite FE workspace owns its Supabase clients directly; no shared FE package is emitted. */
142
142
  const LITE_FE_APP_DEPENDENCIES = Object.freeze({
143
- '@heroui/react': null, '@heroui/styles': null, '@starci/grammar': null, '@supabase/ssr': null,
143
+ '@heroui/react': null, '@heroui/styles': null, '@starci/grammar': null, '@xyflow/react': null, '@supabase/ssr': null,
144
144
  '@supabase/supabase-js': null, next: null, 'next-intl': null, react: null, 'react-dom': null, 'server-only': null,
145
145
  });
146
146
 
@@ -151,7 +151,7 @@ const LITE_FE_APP_DEPENDENCIES = Object.freeze({
151
151
  * ./routing, client-safe: the default locale a client boundary reads).
152
152
  */
153
153
  const FE_PACKAGES = Object.freeze({
154
- ui: { exports: ['.'], dependencies: { '@heroui/react': null, '@starci/grammar': null, 'next-intl': null, react: null } },
154
+ ui: { exports: ['.'], dependencies: { '@heroui/react': null, '@starci/grammar': null, '@xyflow/react': null, 'next-intl': null, react: null } },
155
155
  i18n: { exports: ['.', './proxy', './routing'], dependencies: { next: null, 'next-intl': null, 'server-only': null } },
156
156
  });
157
157
 
@@ -461,6 +461,10 @@ export function scaffoldApp({ name, into, presets, edition = 'full', manifest =
461
461
  { path: 'package.json', content: packageJsonText(pkg) },
462
462
  { path: 'be/nest-cli.json', content: jsonText(nestCli(app)) },
463
463
  ...app.sides.fe.apps.map(entry => ({ path: `fe/apps/${entry.name}/tsconfig.json`, content: jsonText(nextAppTsconfig()) })),
464
+ ...app.sides.fe.apps.map(entry => ({
465
+ path: `fe/apps/${entry.name}/src/modules/types/ambient/styles.d.ts`,
466
+ content: '/** Declares stylesheets loaded by the Next bundler; non-CSS side-effect imports remain checked. */\ndeclare module "*.css" {}\n',
467
+ })),
464
468
  ...app.sides.fe.apps.map(entry => ({ path: `fe/apps/${entry.name}/package.json`, content: packageJsonText(feAppManifest(name, entry.name, pins, app.edition)) })),
465
469
  ...imageFiles(app),
466
470
  ...(app.edition === 'lite' ? [] : Object.keys(FE_PACKAGES).flatMap(pkg => [