onsystem 0.7.0 → 0.9.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/README.md +19 -3
- package/dist/cli.js +513 -87
- package/dist/{config-1XSTYI44.d.ts → config-B98w8bcg.d.ts} +12 -0
- package/dist/{design-system-C4bhqLLw.js → design-system-Bykei5W0.js} +1838 -184
- package/dist/eslint-worker.d.ts +1 -1
- package/dist/eslint-worker.js +3 -5
- package/dist/eslint.js +1 -1
- package/dist/index.d.ts +27 -4
- package/dist/index.js +2 -2
- package/dist/{stdio-BojAQ6JP.js → stdio-B7u6dqLd.js} +347 -86
- package/dist/{workspace-Z0tZf_Dv.js → workspace-Dp1q8qZ8.js} +1 -1
- package/package.json +6 -4
- package/schema.json +1 -1
package/README.md
CHANGED
|
@@ -20,6 +20,7 @@ Using the GitHub Action? `uses: dgesteves/onsystem@v0` checks the lines a pull r
|
|
|
20
20
|
**Also works with**
|
|
21
21
|
[](https://onsystem.vercel.app/docs/clients#codex-cli)
|
|
22
22
|
[](https://onsystem.vercel.app/docs/clients#gemini-cli)
|
|
23
|
+
[](https://onsystem.vercel.app/docs/clients#antigravity-cli-and-ide)
|
|
23
24
|
[](https://onsystem.vercel.app/docs/clients#grok-build)
|
|
24
25
|
[](https://onsystem.vercel.app/docs/clients#github-copilot-cli)
|
|
25
26
|
[](https://onsystem.vercel.app/docs/clients#claude-desktop)
|
|
@@ -77,13 +78,13 @@ In a new create-next-app, the template page's hardcoded colors already make the
|
|
|
77
78
|
/plugin install onsystem@dgesteves
|
|
78
79
|
```
|
|
79
80
|
|
|
80
|
-
After each Write or Edit of a `.tsx` or `.jsx` file, the hook runs `onsystem check` on it. Errors go back to Claude as a blocking error with the fix, so Claude corrects the file before it moves on; warnings go as a note. It stays quiet in projects without a design system. [What it runs and touches](https://onsystem.vercel.app/docs/plugin).
|
|
81
|
+
After each Write or Edit of a `.tsx` or `.jsx` file, the hook runs `onsystem check` on it. Errors go back to Claude as a blocking error with the fix, so Claude corrects the file before it moves on; warnings go as a note. It stays quiet in projects without a design system. Codex installs the same plugin, and the hook checks the files its `apply_patch` changes. [What it runs and touches](https://onsystem.vercel.app/docs/plugin).
|
|
81
82
|
|
|
82
83
|
**Cursor or VS Code.** [](https://cursor.com/en/install-mcp?name=onsystem&config=eyJjb21tYW5kIjoibnB4IiwiYXJncyI6WyIteSIsIm9uc3lzdGVtIiwiLS1yb290IiwiJHt3b3Jrc3BhY2VGb2xkZXJ9Il19) [](https://insiders.vscode.dev/redirect/mcp/install?name=onsystem&config=%7B%22command%22%3A%22npx%22%2C%22args%22%3A%5B%22-y%22%2C%22onsystem%22%2C%22--root%22%2C%22%24%7BworkspaceFolder%7D%22%5D%7D), or commit the [config](https://onsystem.vercel.app/docs/clients#cursor-and-vs-code). The agent gets the tools and runs `check_ui` on what it writes.
|
|
83
84
|
|
|
84
85
|
**Other agents.** `npx skills add dgesteves/onsystem` adds the skill to any agent with Agent Skills, and there are [plugins for Codex, GitHub Copilot CLI, VS Code and Cursor](https://onsystem.vercel.app/docs/clients#plugins-for-other-agents).
|
|
85
86
|
|
|
86
|
-
**Any MCP client.** Run `npx -y onsystem` as a stdio server. There are [configs for Claude Desktop, Codex CLI, GitHub Copilot CLI, Windsurf, JetBrains IDEs, Zed, Gemini CLI and Grok Build](https://onsystem.vercel.app/docs/clients#other-clients).
|
|
87
|
+
**Any MCP client.** Run `npx -y onsystem` as a stdio server. There are [configs for Claude Desktop, Codex CLI, GitHub Copilot CLI, Windsurf, JetBrains IDEs, Zed, Gemini CLI, Antigravity and Grok Build](https://onsystem.vercel.app/docs/clients#other-clients).
|
|
87
88
|
|
|
88
89
|
**CI.** Install it as a dev dependency, accept the findings the codebase already has once, and fail pull requests only on new ones:
|
|
89
90
|
|
|
@@ -96,7 +97,22 @@ npx onsystem check . --update-baseline # writes onsystem.baseline.json: commit
|
|
|
96
97
|
- run: npx onsystem check . --format github --require-design-system
|
|
97
98
|
```
|
|
98
99
|
|
|
99
|
-
Findings show up as annotations on the pull request, and `--require-design-system` fails the job when the design system is no longer found. [CI and baselines](https://onsystem.vercel.app/docs/ci) has the whole workflow.
|
|
100
|
+
Findings show up as annotations on the pull request, and `--require-design-system` fails the job when the design system is no longer found. [CI and baselines](https://onsystem.vercel.app/docs/ci) has the whole workflow.
|
|
101
|
+
|
|
102
|
+
**GitHub Action.** The [action](https://github.com/marketplace/actions/onsystem-design-system-check) runs the same check, honours the baseline and annotates only the lines a pull request changed. It goes after the checkout and the install, so it can read your design system:
|
|
103
|
+
|
|
104
|
+
```yaml
|
|
105
|
+
steps:
|
|
106
|
+
- uses: actions/checkout@v7
|
|
107
|
+
- uses: actions/setup-node@v7
|
|
108
|
+
with:
|
|
109
|
+
node-version: 24
|
|
110
|
+
cache: npm
|
|
111
|
+
- run: npm ci
|
|
112
|
+
- uses: dgesteves/onsystem@v0
|
|
113
|
+
```
|
|
114
|
+
|
|
115
|
+
[Make it a required check on agent pull requests](https://onsystem.vercel.app/docs/required-check) has the whole workflow and its inputs.
|
|
100
116
|
|
|
101
117
|
**ESLint.** The same rules for ESLint 8.57, 9 and 10: add `onsystem.configs.recommended` from `onsystem/eslint` to `eslint.config.mjs` ([ESLint plugin](https://onsystem.vercel.app/docs/eslint), with @shadcn/lint).
|
|
102
118
|
|