@starci/eslint-grammar-offset-pop 0.13.0 → 0.15.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 +12 -0
- package/README.md +2 -0
- package/dist/config.d.ts +10 -0
- package/dist/config.js +8 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +3 -0
- package/package.json +15 -12
- package/runtime/knowledge/hfs/canon-pins.yaml +22 -14
- package/config.mjs +0 -9
- package/index.d.ts +0 -16
- package/index.mjs +0 -11
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.15.0 - 2026-10-28
|
|
4
|
+
|
|
5
|
+
- Changed: versioned together with Grammar 0.15.0; `@starci/eslint-grammar-core` 0.15.0 is the peer dependency, and the bundled canon pins follow release C (Grammar family 0.15.0, hfs 4.9.1, canon-fe 9.4.0, canon-be 3.6.0, jest-preset 2.4.1, `@starci/ai-router` 0.2.1), so an app installs the released versions without pin drift. Offset Pop is unchanged.
|
|
6
|
+
- Changed: the source is TypeScript in `src/`, built to `dist/` (`npm run build`; `prepack` builds); the package ships `dist/` and `runtime/` and no hand-written JavaScript or `index.d.ts` (the build emits the declarations, with the same public types: the re-exports of `@starci/eslint-grammar-core` and `offsetPopGrammarConfig`). No rule or behaviour changed; the exports and specifiers (`.` and `./package.json`) are unchanged.
|
|
7
|
+
- Changed: the spec is `src/inheritance.spec.ts`, typechecked first by `npm test`; it resolves `@starci/eslint-grammar-core` through its built `dist/`, so build that package first.
|
|
8
|
+
- Fixed: the built declarations name `.js`, not the `.ts` sources (`tsc` keeps a relative `.ts` specifier in a `.d.ts`, which a consumer tsc cannot read).
|
|
9
|
+
|
|
10
|
+
## 0.14.0 - 2026-10-27
|
|
11
|
+
|
|
12
|
+
- Changed: versioned together with Grammar 0.14.0; `@starci/eslint-grammar-core` 0.14.0 is the peer dependency and the bundled canon pins name the 0.14.0 Grammar family. Offset Pop is unchanged.
|
|
13
|
+
- Changed: the bundled canon pins name `starci-harness` 1.1.0-alpha.1 (`source: cli/package.json`) in place of the retired `@starci/cli`, the one command line a product installs for `starci app`, and follow hfs 4.9.0, canon-fe 9.3.0 and canon-be 3.5.0. No rule changes.
|
|
14
|
+
|
|
3
15
|
## 0.13.0 - 2026-10-27
|
|
4
16
|
|
|
5
17
|
- Changed: versioned together with Grammar 0.13.0; `@starci/eslint-grammar-core` 0.13.0 is a peer dependency, installed by the app beside this package. Offset Pop is unchanged and refuses `core`.
|
package/README.md
CHANGED
|
@@ -33,3 +33,5 @@ through this package under the `starci-grammar/` namespace with unchanged IDs, c
|
|
|
33
33
|
Consuming apps migrate in their own release.
|
|
34
34
|
|
|
35
35
|
`npm test` runs package regression specs. Grammar and application front ends carry no specs.
|
|
36
|
+
|
|
37
|
+
The source is TypeScript in `src/`; `npm run build` emits `dist/`, which the package ships beside `runtime/`. The spec resolves `@starci/eslint-grammar-core` through its built `dist/`, so build that package first (`npm run build` in `packages/eslint-grammar-core`), then `npm install` here.
|
package/dist/config.d.ts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { coreGrammarConfig } from "@starci/eslint-grammar-core";
|
|
2
|
+
/**
|
|
3
|
+
* Attach the inherited Common API laws for a front end selecting Offset Pop.
|
|
4
|
+
*
|
|
5
|
+
* @param input - The front-end HFS view from the universal canon's loadHfs.
|
|
6
|
+
* @returns Family rules at error under the shared starci-grammar namespace.
|
|
7
|
+
*/
|
|
8
|
+
export declare const offsetPopGrammarConfig: ({ hfs }: {
|
|
9
|
+
hfs: Parameters<typeof coreGrammarConfig>[0]["hfs"];
|
|
10
|
+
}) => ReturnType<typeof coreGrammarConfig>;
|
package/dist/config.js
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { coreGrammarConfig } from "@starci/eslint-grammar-core";
|
|
2
|
+
/**
|
|
3
|
+
* Attach the inherited Common API laws for a front end selecting Offset Pop.
|
|
4
|
+
*
|
|
5
|
+
* @param input - The front-end HFS view from the universal canon's loadHfs.
|
|
6
|
+
* @returns Family rules at error under the shared starci-grammar namespace.
|
|
7
|
+
*/
|
|
8
|
+
export const offsetPopGrammarConfig = ({ hfs }) => coreGrammarConfig({ hfs, family: "offset-pop" });
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
/** Offset Pop inherits the Common component checks from the exact matching Grammar lint release. */
|
|
2
|
+
export { default, rules, recommended, ruleOwners, lawOwners, ruleDeclarations, why, } from "@starci/eslint-grammar-core";
|
|
3
|
+
export { offsetPopGrammarConfig } from "./config.js";
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
/** Offset Pop inherits the Common component checks from the exact matching Grammar lint release. */
|
|
2
|
+
export { default, rules, recommended, ruleOwners, lawOwners, ruleDeclarations, why, } from "@starci/eslint-grammar-core";
|
|
3
|
+
export { offsetPopGrammarConfig } from "./config.js";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@starci/eslint-grammar-offset-pop",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.15.0",
|
|
4
4
|
"description": "Offset Pop Grammar lint: the inherited Common component contract over its own visual family.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"eslint",
|
|
@@ -22,21 +22,19 @@
|
|
|
22
22
|
"url": "https://github.com/starci183/starci-harness/issues"
|
|
23
23
|
},
|
|
24
24
|
"private": false,
|
|
25
|
-
"main": "./index.
|
|
26
|
-
"types": "./index.d.ts",
|
|
25
|
+
"main": "./dist/index.js",
|
|
26
|
+
"types": "./dist/index.d.ts",
|
|
27
27
|
"exports": {
|
|
28
28
|
".": {
|
|
29
|
-
"types": "./index.d.ts",
|
|
30
|
-
"import": "./index.
|
|
29
|
+
"types": "./dist/index.d.ts",
|
|
30
|
+
"import": "./dist/index.js"
|
|
31
31
|
},
|
|
32
32
|
"./package.json": "./package.json"
|
|
33
33
|
},
|
|
34
34
|
"files": [
|
|
35
|
-
"
|
|
36
|
-
"*.mjs",
|
|
37
|
-
"*.d.ts",
|
|
35
|
+
"dist",
|
|
38
36
|
"runtime/**",
|
|
39
|
-
"
|
|
37
|
+
"LICENSE",
|
|
40
38
|
"README.md",
|
|
41
39
|
"CHANGELOG.md"
|
|
42
40
|
],
|
|
@@ -46,7 +44,7 @@
|
|
|
46
44
|
"peerDependencies": {
|
|
47
45
|
"eslint": ">=9",
|
|
48
46
|
"typescript": ">=5.9",
|
|
49
|
-
"@starci/eslint-grammar-core": "0.
|
|
47
|
+
"@starci/eslint-grammar-core": "0.15.0"
|
|
50
48
|
},
|
|
51
49
|
"devDependencies": {
|
|
52
50
|
"@starci/eslint-canon-fe": "file:../eslint-canon-fe",
|
|
@@ -54,10 +52,15 @@
|
|
|
54
52
|
"@typescript-eslint/parser": "8.71.0",
|
|
55
53
|
"eslint": "9.39.5",
|
|
56
54
|
"eslint-plugin-react-hooks": "7.1.1",
|
|
57
|
-
"typescript": "5.9.3"
|
|
55
|
+
"typescript": "5.9.3",
|
|
56
|
+
"@starci/tsconfig": "file:../tsconfig",
|
|
57
|
+
"@types/node": "24.19.2"
|
|
58
58
|
},
|
|
59
59
|
"scripts": {
|
|
60
|
-
"
|
|
60
|
+
"build": "node -e \"require('node:fs').rmSync('dist', {recursive: true, force: true})\" && tsc -p tsconfig.build.json && node -e \"const fs = require('node:fs'); for (const f of fs.readdirSync('dist', {recursive: true}).filter((n) => n.endsWith('.d.ts'))) fs.writeFileSync('dist/' + f, fs.readFileSync('dist/' + f, 'utf8').replace(/((?:from |import\\()['\\x22]\\.\\.?\\/[^'\\x22]+)\\.ts(['\\x22])/g, (all, head, quote) => head + '.js' + quote))\"",
|
|
61
|
+
"typecheck": "tsc -p tsconfig.json",
|
|
62
|
+
"prepack": "npm run build",
|
|
63
|
+
"test": "npm run typecheck && node --test \"src/**/*.spec.ts\""
|
|
61
64
|
},
|
|
62
65
|
"publishConfig": {
|
|
63
66
|
"access": "public"
|
|
@@ -30,61 +30,61 @@ 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.
|
|
33
|
+
version: 0.15.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.
|
|
40
|
+
version: 3.6.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.
|
|
47
|
+
version: 9.4.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.
|
|
54
|
+
version: 0.15.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.
|
|
61
|
+
version: 0.15.0
|
|
62
62
|
group: starci
|
|
63
63
|
install: registry
|
|
64
64
|
side: fe
|
|
65
65
|
source: packages/eslint-grammar-offset-pop/package.json
|
|
66
66
|
why: 'the Offset Pop Grammar component API lint, versioned with @starci/grammar; its shared component contract comes from the StarCi family lint without copying rules.'
|
|
67
67
|
'@starci/stylelint-canon':
|
|
68
|
-
version: 2.1
|
|
68
|
+
version: 2.2.1
|
|
69
69
|
group: starci
|
|
70
70
|
install: registry
|
|
71
71
|
side: fe
|
|
72
72
|
source: packages/stylelint-canon/package.json
|
|
73
73
|
why: 'the front-end stylelint canon: no-class-selector refuses a compound class selector (`div.card`); the brand layer accepts `--font-sans` and `--font-mono`; status-contrast measures the HeroUI soft pairs per theme; brand-layer-shape reads the shared :root,.light,.dark block and the info soft pair; appTokens come from loadAppTokens(import.meta.url) for the managed one-line stylelint.config.mjs.'
|
|
74
74
|
'@starci/tsconfig':
|
|
75
|
-
version: 2.0
|
|
75
|
+
version: 2.1.0
|
|
76
76
|
group: starci
|
|
77
77
|
install: registry
|
|
78
78
|
side: both
|
|
79
79
|
source: packages/tsconfig/package.json
|
|
80
80
|
'@starci/prettier-config':
|
|
81
|
-
version: 1.0
|
|
81
|
+
version: 1.1.0
|
|
82
82
|
group: starci
|
|
83
83
|
install: registry
|
|
84
84
|
side: both
|
|
85
85
|
source: packages/prettier-config/package.json
|
|
86
86
|
'@starci/jest-preset':
|
|
87
|
-
version: 2.
|
|
87
|
+
version: 2.4.1
|
|
88
88
|
group: starci
|
|
89
89
|
install: registry
|
|
90
90
|
side: be
|
|
@@ -97,19 +97,27 @@ 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/
|
|
101
|
-
version:
|
|
100
|
+
'@starci/ai-router':
|
|
101
|
+
version: 0.2.1
|
|
102
|
+
group: starci
|
|
103
|
+
install: registry
|
|
104
|
+
side: be
|
|
105
|
+
source: packages/ai-router/package.json
|
|
106
|
+
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.'
|
|
107
|
+
'starci-harness':
|
|
108
|
+
version: 1.1.0-alpha.1
|
|
102
109
|
group: starci
|
|
103
110
|
install: registry
|
|
104
111
|
side: both
|
|
105
|
-
|
|
112
|
+
source: cli/package.json
|
|
113
|
+
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
114
|
'@starci/hfs':
|
|
107
|
-
version: 4.
|
|
115
|
+
version: 4.9.1
|
|
108
116
|
group: starci
|
|
109
117
|
install: registry
|
|
110
118
|
side: both
|
|
111
119
|
source: packages/hfs/package.json
|
|
112
|
-
why: 'the
|
|
120
|
+
why: 'the app implementation starci-harness runs for starci app; it carries the generated runtime slice read by starci app commands.'
|
|
113
121
|
# --- tooling
|
|
114
122
|
typescript:
|
|
115
123
|
version: 5.9.3
|
package/config.mjs
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { coreGrammarConfig } from "@starci/eslint-grammar-core"
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Attach the inherited Common API laws for a front end selecting Offset Pop.
|
|
5
|
-
*
|
|
6
|
-
* @param {{ hfs: object }} input - The front-end HFS view from the universal canon's loadHfs.
|
|
7
|
-
* @returns {Array<object>} Family rules at error under the shared starci-grammar namespace.
|
|
8
|
-
*/
|
|
9
|
-
export const offsetPopGrammarConfig = ({ hfs }) => coreGrammarConfig({ hfs, family: "offset-pop" })
|
package/index.d.ts
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import type { coreGrammarConfig } from "@starci/eslint-grammar-core"
|
|
2
|
-
|
|
3
|
-
export {
|
|
4
|
-
default,
|
|
5
|
-
rules,
|
|
6
|
-
recommended,
|
|
7
|
-
ruleOwners,
|
|
8
|
-
lawOwners,
|
|
9
|
-
ruleDeclarations,
|
|
10
|
-
why,
|
|
11
|
-
} from "@starci/eslint-grammar-core"
|
|
12
|
-
|
|
13
|
-
/** Attach the inherited Common API checks for the selected Offset Pop family. */
|
|
14
|
-
export declare function offsetPopGrammarConfig(input: {
|
|
15
|
-
hfs: Parameters<typeof coreGrammarConfig>[0]["hfs"]
|
|
16
|
-
}): ReturnType<typeof coreGrammarConfig>
|
package/index.mjs
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/** Offset Pop inherits the Common component checks from the exact matching Grammar lint release. */
|
|
2
|
-
export {
|
|
3
|
-
default,
|
|
4
|
-
rules,
|
|
5
|
-
recommended,
|
|
6
|
-
ruleOwners,
|
|
7
|
-
lawOwners,
|
|
8
|
-
ruleDeclarations,
|
|
9
|
-
why,
|
|
10
|
-
} from "@starci/eslint-grammar-core"
|
|
11
|
-
export { offsetPopGrammarConfig } from "./config.mjs"
|