@fringetools/cli 0.0.0-stage → 0.1.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/LICENSE +21 -0
- package/README.md +220 -2
- package/dist/bin.d.ts +1 -0
- package/dist/bin.js +7 -0
- package/dist/chunk-AOUZJDQL.js +1353 -0
- package/dist/index.d.ts +8 -0
- package/dist/index.js +6 -0
- package/package.json +51 -4
- package/skill/SKILL.md +21 -0
package/dist/index.d.ts
ADDED
package/dist/index.js
ADDED
package/package.json
CHANGED
|
@@ -1,6 +1,53 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fringetools/cli",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"license": "MIT",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"bin": {
|
|
7
|
+
"fringe": "dist/bin.js"
|
|
8
|
+
},
|
|
9
|
+
"engines": {
|
|
10
|
+
"node": ">=18"
|
|
11
|
+
},
|
|
12
|
+
"files": [
|
|
13
|
+
"dist",
|
|
14
|
+
"skill"
|
|
15
|
+
],
|
|
16
|
+
"scripts": {
|
|
17
|
+
"build": "tsup src/index.ts src/bin.ts --format esm --dts --outDir dist --clean",
|
|
18
|
+
"test": "vitest run",
|
|
19
|
+
"prepublishOnly": "pnpm build && pnpm test"
|
|
20
|
+
},
|
|
21
|
+
"devDependencies": {
|
|
22
|
+
"@types/node": "^22.0.0",
|
|
23
|
+
"tsup": "^8.0.0",
|
|
24
|
+
"typescript": "^5.5.0",
|
|
25
|
+
"vitest": "^2.0.0"
|
|
26
|
+
},
|
|
27
|
+
"dependencies": {
|
|
28
|
+
"@babel/parser": "^7.29.9",
|
|
29
|
+
"parse5": "^7.3.0",
|
|
30
|
+
"postcss": "^8.5.31"
|
|
31
|
+
},
|
|
32
|
+
"description": "UX-quality checker for AI coding agents: accessibility, states, dark patterns, token drift, AI-look.",
|
|
33
|
+
"keywords": [
|
|
34
|
+
"accessibility",
|
|
35
|
+
"a11y",
|
|
36
|
+
"lint",
|
|
37
|
+
"ux",
|
|
38
|
+
"ai-agents",
|
|
39
|
+
"claude-code"
|
|
40
|
+
],
|
|
41
|
+
"publishConfig": {
|
|
42
|
+
"access": "public"
|
|
43
|
+
},
|
|
44
|
+
"repository": {
|
|
45
|
+
"type": "git",
|
|
46
|
+
"url": "https://github.com/skc-learn/fringe.git",
|
|
47
|
+
"directory": "packages/cli"
|
|
48
|
+
},
|
|
49
|
+
"homepage": "https://github.com/skc-learn/fringe#readme",
|
|
50
|
+
"bugs": {
|
|
51
|
+
"url": "https://github.com/skc-learn/fringe/issues"
|
|
52
|
+
}
|
|
53
|
+
}
|
package/skill/SKILL.md
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: fringe
|
|
3
|
+
description: Use when writing or changing frontend code (JSX/TSX, HTML, CSS, Vue, Svelte). Runs the Fringe checker so accessibility, state handling, dark patterns, token drift and the generic "AI look" are measured, not guessed.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Fringe
|
|
7
|
+
|
|
8
|
+
Ponytail trims your code. Fringe handles your edges. Work the ladder in order.
|
|
9
|
+
|
|
10
|
+
1. **Flow (judged).** Before building, ask what the user can skip. Cut steps, screens or options nobody needs. Write each decision with its evidence to `.fringe/manifest.json`: `{"flows":[{"action":"cut"|"kept","what":"...","evidence":"..."}]}`. No evidence, no cut.
|
|
11
|
+
2. **Edges (verified, gates).** After every edit the hook runs `fringe check --claude-hook` and feeds errors back to you. Fix every listed finding. If there is no hook, run `fringe check --hook` yourself from the project root and do not finish while `block` is `true`.
|
|
12
|
+
3. **Polish (verified, never gates).** Run `fringe check` once before finishing. Fix `review` items you agree with. Fix `signal` items that are cheap. Say which you left and why.
|
|
13
|
+
|
|
14
|
+
When done: `fringe check --record --manifest .fringe/manifest.json`. Report the health score as measured; never estimate it yourself.
|
|
15
|
+
|
|
16
|
+
Rules of the road:
|
|
17
|
+
- Never grade your own work where the checker can measure it.
|
|
18
|
+
- Do not silence a rule with `ignore`/`disable` in `fringe.config.json` to get green. Fix the code, or tell the user why the rule is wrong.
|
|
19
|
+
- A `// fringe-ignore FR-123` comment is allowed only for a real false positive. Say so in your final message with the rule and why; the run output counts suppressions (`N suppressed`) and a reviewer will see them.
|
|
20
|
+
- If `fringe` is not installed, say so. Do not skip the check silently.
|
|
21
|
+
- Hook wiring and the full rule table: `packages/cli/README.md`.
|