@alexgorbatchev/typescript-ai-policy 0.1.0 → 1.0.1
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 +12 -6
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -114,6 +114,9 @@ If you want the semantic-fix CLI, install its tsgo backend too:
|
|
|
114
114
|
bun add -d @typescript/native-preview
|
|
115
115
|
```
|
|
116
116
|
|
|
117
|
+
The semantic-fix CLI requires Bun at runtime because the installed bin uses a Bun shebang. That means Bun must be
|
|
118
|
+
installed and available on `PATH` when you run the command.
|
|
119
|
+
|
|
117
120
|
## Use
|
|
118
121
|
|
|
119
122
|
`oxfmt.config.ts`
|
|
@@ -153,15 +156,18 @@ This package also uses its own shared configs at the repository root:
|
|
|
153
156
|
- `oxfmt.config.ts`
|
|
154
157
|
- `oxlint.config.ts`
|
|
155
158
|
|
|
156
|
-
##
|
|
159
|
+
## Semantic-fix tooling
|
|
160
|
+
|
|
161
|
+
The package includes a semantic-fix CLI backed by `tsgo --lsp --stdio`.
|
|
162
|
+
|
|
163
|
+
Package-installed usage:
|
|
157
164
|
|
|
158
|
-
|
|
165
|
+
- `bun run typescript-ai-policy-fix-semantic -- <target-directory>` — run Oxlint with this package's policy config, collect supported diagnostics, and apply semantic fixes to the target directory.
|
|
166
|
+
- `bun run typescript-ai-policy-fix-semantic -- <target-directory> --dry-run` — print the planned semantic-fix scope without mutating files.
|
|
159
167
|
|
|
160
|
-
|
|
168
|
+
Repository-local development usage:
|
|
161
169
|
|
|
162
|
-
- `bun run fix:semantic -- <target-directory>` — run
|
|
163
|
-
- `bun run fix:semantic -- <target-directory> --dry-run` — print the planned semantic-fix scope without mutating files.
|
|
164
|
-
- `typescript-ai-policy-fix-semantic <target-directory>` — run the same semantic fixer through the package-installed bin after installing this package and `@typescript/native-preview`.
|
|
170
|
+
- `bun run fix:semantic -- <target-directory>` — run the same semantic fixer from this repository checkout while developing the package itself.
|
|
165
171
|
|
|
166
172
|
Today the framework applies two conservative semantic fixes:
|
|
167
173
|
|
package/package.json
CHANGED