kimaki 0.4.44 β 0.4.46
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/dist/channel-management.js +6 -15
- package/dist/cli.js +54 -37
- package/dist/commands/create-new-project.js +2 -0
- package/dist/commands/fork.js +2 -0
- package/dist/commands/permissions.js +21 -5
- package/dist/commands/queue.js +5 -1
- package/dist/commands/resume.js +10 -16
- package/dist/commands/session.js +20 -42
- package/dist/commands/user-command.js +10 -17
- package/dist/commands/verbosity.js +53 -0
- package/dist/commands/worktree-settings.js +2 -2
- package/dist/commands/worktree.js +134 -25
- package/dist/database.js +49 -0
- package/dist/discord-bot.js +26 -38
- package/dist/discord-utils.js +51 -13
- package/dist/discord-utils.test.js +20 -0
- package/dist/escape-backticks.test.js +14 -3
- package/dist/interaction-handler.js +4 -0
- package/dist/session-handler.js +581 -414
- package/package.json +1 -1
- package/src/__snapshots__/first-session-no-info.md +1344 -0
- package/src/__snapshots__/first-session-with-info.md +1350 -0
- package/src/__snapshots__/session-1.md +1344 -0
- package/src/__snapshots__/session-2.md +291 -0
- package/src/__snapshots__/session-3.md +20324 -0
- package/src/__snapshots__/session-with-tools.md +1344 -0
- package/src/channel-management.ts +6 -17
- package/src/cli.ts +63 -45
- package/src/commands/create-new-project.ts +3 -0
- package/src/commands/fork.ts +3 -0
- package/src/commands/permissions.ts +31 -5
- package/src/commands/queue.ts +5 -1
- package/src/commands/resume.ts +11 -18
- package/src/commands/session.ts +21 -44
- package/src/commands/user-command.ts +11 -19
- package/src/commands/verbosity.ts +71 -0
- package/src/commands/worktree-settings.ts +2 -2
- package/src/commands/worktree.ts +163 -27
- package/src/database.ts +65 -0
- package/src/discord-bot.ts +29 -42
- package/src/discord-utils.test.ts +23 -0
- package/src/discord-utils.ts +52 -13
- package/src/escape-backticks.test.ts +14 -3
- package/src/interaction-handler.ts +5 -0
- package/src/session-handler.ts +711 -436
|
@@ -0,0 +1,291 @@
|
|
|
1
|
+
# find oxc linter repo. is it possible to create custom rules? how?
|
|
2
|
+
|
|
3
|
+
## Conversation
|
|
4
|
+
|
|
5
|
+
### π€ User
|
|
6
|
+
|
|
7
|
+
find oxc linter repo. is it possible to create custom rules? how?
|
|
8
|
+
|
|
9
|
+
[Current branch: main]
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
### π€ Assistant (gpt-5.2-codex)
|
|
13
|
+
|
|
14
|
+
**Started using openai/gpt-5.2-codex**
|
|
15
|
+
|
|
16
|
+
#### π οΈ Tool: websearch
|
|
17
|
+
|
|
18
|
+
**Input:**
|
|
19
|
+
```yaml
|
|
20
|
+
query: oxc linter custom rules create custom rule plugin
|
|
21
|
+
numResults: 8
|
|
22
|
+
livecrawl: preferred
|
|
23
|
+
type: auto
|
|
24
|
+
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
**Output:**
|
|
28
|
+
```
|
|
29
|
+
Title: Adding Linter Rules | The JavaScript Oxidation Compiler - Oxc
|
|
30
|
+
Author:
|
|
31
|
+
URL: https://oxc.rs/docs/contribute/linter/adding-rules
|
|
32
|
+
Text: Adding Linter Rules | The JavaScript Oxidation Compiler
|
|
33
|
+
[![]
|
|
34
|
+
Announcing Type-Aware Linting Alpha
|
|
35
|
+
]
|
|
36
|
+
[Skip to content]
|
|
37
|
+
[![Oxc]![Oxc]]
|
|
38
|
+
Search
|
|
39
|
+
Appearance
|
|
40
|
+
[] [] [] []
|
|
41
|
+
[] [] [] []
|
|
42
|
+
Menu
|
|
43
|
+
Return to top
|
|
44
|
+
Are you an LLM? You can read better optimized documentation at /docs/contribute/linter/adding-rules.md for this page in Markdown format
|
|
45
|
+
# Adding Linter Rules[β]
|
|
46
|
+
The best and easiest way to contribute to Oxlint is by adding new linter rules.
|
|
47
|
+
This guide will walk you through this process, using ESLint's[`no-debugger`] rule as an example.
|
|
48
|
+
TIP
|
|
49
|
+
Make sure you've read the[setup instructions] first.
|
|
50
|
+
## Step 1: Pick a Rule[β]
|
|
51
|
+
Our[Linter product plan and progress] issue tracks the status of all rules we want to implement from existing ESLint plugins. From there, pick a plugin that looks interesting to you and find a rule that has not been implemented.
|
|
52
|
+
**Important**: Since ESLint-compatible JavaScript plugin support is now available, we do not plan to add new Rust-based plugins. However, contributions that add rules to existing plugins are**highly encouraged**. If you think a rule or plugin would
|
|
53
|
+
|
|
54
|
+
Title: JS Plugins | The JavaScript Oxidation Compiler - Oxc
|
|
55
|
+
Author:
|
|
56
|
+
URL: https://oxc.rs/docs/guide/usage/linter/js-plugins
|
|
57
|
+
Text: JS Plugins | The JavaScript Oxidation Compiler
|
|
58
|
+
[![]
|
|
59
|
+
Announcing Type-Aware Linting Alpha
|
|
60
|
+
]
|
|
61
|
+
[Skip to content]
|
|
62
|
+
[![Oxc]![Oxc]]
|
|
63
|
+
Search
|
|
64
|
+
Appearance
|
|
65
|
+
[] [] [] []
|
|
66
|
+
[] [] [] []
|
|
67
|
+
Menu
|
|
68
|
+
Return to top
|
|
69
|
+
Are you an LLM? You can read better optimized documentation at /docs/guide/usage/linter/js-plugins.md for this page in Markdown format
|
|
70
|
+
# JS Plugins[β]
|
|
71
|
+
Oxlint supports plugins written in JS - either custom-written, or from NPM.
|
|
72
|
+
Oxlint's plugin API is compatible with ESLint v9+, so most existing ESLint plugins should work out of the box with Oxlint.
|
|
73
|
+
We are working towards implementing*all*of ESLint's plugin APIs, and Oxlint will soon be able to run*any*ESLint plugin.
|
|
74
|
+
WARNING
|
|
75
|
+
JS plugins are currently in technical preview, and remain under heavy development. Almost all of ESLint's plugin API is implemented (see[below]).
|
|
76
|
+
All APIs should behave identically to ESLint. If you find any differences in behavior, that's a bug - please[report it].
|
|
77
|
+
## Using JS plugins[β]
|
|
78
|
+
1. Add a path to the plugin to the`.oxlintrc.json`config file, under`jsPlugins`.
|
|
79
|
+
2. Add rules from the plugin, under`rules`.
|
|
80
|
+
The path can be a
|
|
81
|
+
|
|
82
|
+
Title: οΈ Oxlint Custom JavaScript Plugin Milestone 1 Β· Issue #9905 - GitHub
|
|
83
|
+
Author: oxc-project
|
|
84
|
+
Published Date: 2025-03-19T00:00:00.000Z
|
|
85
|
+
URL: https://github.com/oxc-project/oxc/issues/9905
|
|
86
|
+
Text: βοΈ Oxlint Custom JavaScript Plugin Milestone 1 Β·Issue #9905 Β·oxc-project/oxc Β·GitHub
|
|
87
|
+
[Skip to content]
|
|
88
|
+
## Navigation Menu
|
|
89
|
+
Toggle navigation
|
|
90
|
+
[]
|
|
91
|
+
[Sign in]
|
|
92
|
+
Appearance settings
|
|
93
|
+
Search or jump to...
|
|
94
|
+
# Search code, repositories, users, issues, pull requests...
|
|
95
|
+
|
|
96
|
+
Search
|
|
97
|
+
Clear
|
|
98
|
+
[Search syntax tips]
|
|
99
|
+
# Provide feedback
|
|
100
|
+
|
|
101
|
+
We read every piece of feedback, and take your input very seriously.
|
|
102
|
+
Include my email address so I can be contacted
|
|
103
|
+
CancelSubmit feedback
|
|
104
|
+
# Saved searches
|
|
105
|
+
## Use saved searches to filter your results more quickly
|
|
106
|
+
|
|
107
|
+
Name
|
|
108
|
+
Query
|
|
109
|
+
To see all available qualifiers, see our[documentation].
|
|
110
|
+
CancelCreate saved search
|
|
111
|
+
[Sign in]
|
|
112
|
+
[Sign up]
|
|
113
|
+
Appearance settings
|
|
114
|
+
Resetting focus
|
|
115
|
+
You signed in with another tab or window.[Reload] to refresh your session.You signed out in another tab or window.[Reload] to refresh your session.You switched accounts on another tab or window.[Reload] to refresh your session.Dismiss alert
|
|
116
|
+
{{ message }}
|
|
117
|
+
[oxc-project] /**[oxc] **Public
|
|
118
|
+
* ### Uh oh!
|
|
119
|
+
There was an error while loading.[Please reload this page].
|
|
120
|
+
* [Notific
|
|
121
|
+
|
|
122
|
+
Title: Announcing Oxlint 1.0 - VoidZero
|
|
123
|
+
Published Date: 2025-06-09T00:00:00.000Z
|
|
124
|
+
URL: https://voidzero.dev/posts/announcing-oxlint-1-stable
|
|
125
|
+
Text: Announcing Oxlint 1.0 | VoidZero
|
|
126
|
+
[]
|
|
127
|
+
[124.5k] [Explore Vite+]
|
|
128
|
+
// announcements# Announcing Oxlint 1.0
|
|
129
|
+
JUN 10, 2025
|
|
130
|
+
![Announcing Oxlint 1.0]
|
|
131
|
+
![Boshen Chen]![Cameron Clark]
|
|
132
|
+
![Boshen Chen]![Cameron Clark]
|
|
133
|
+
Boshen Chen and Cameron Clark
|
|
134
|
+
5 MIN READ
|
|
135
|
+
Copy Link
|
|
136
|
+
TL;DR: The first stable version Oxlint has been released! With a[50\~100x] performance improvement over ESLint, support for over 500 ESLint rules, and[usage in major companies] like Shopify, Airbnb, and Mercedes-Benz, you should give it a try.[Get started now].
|
|
137
|
+
Oxlint is a Rust-powered linter for JavaScript and TypeScript is designed to be fast and simple to adopt. Since its first announcement back in December 2023, Oxlint has undergone significant improvements and is now shipping its first stable version, 1.0. In addition to the stable release, we also want to announce that Oxlint has a dedicated full-time maintainer,[Cameron], and a growing core team working on maintaining and improving the linter.
|
|
138
|
+
## Real-World Impact[β]
|
|
139
|
+
We are extremely proud of the performance of Oxlint and its impact on real, large-scale codebases, which has l
|
|
140
|
+
|
|
141
|
+
Title: Adding Linter Rules
|
|
142
|
+
Author:
|
|
143
|
+
Published Date: 2025-08-17T00:00:00.000Z
|
|
144
|
+
URL: https://oxc-project.github.io/docs/contribute/linter/adding-rules.html
|
|
145
|
+
Text: Adding Linter Rules | The JavaScript Oxidation Compiler
|
|
146
|
+
[![]
|
|
147
|
+
Announcing Type-Aware Linting Alpha
|
|
148
|
+
]
|
|
149
|
+
[Skip to content]
|
|
150
|
+
[![Oxc]![Oxc]]
|
|
151
|
+
Search
|
|
152
|
+
Appearance
|
|
153
|
+
[] [] [] []
|
|
154
|
+
[] [] [] []
|
|
155
|
+
Menu
|
|
156
|
+
Return to top
|
|
157
|
+
Are you an LLM? You can read better optimized documentation at /docs/contribute/linter/adding-rules.md for this page in Markdown format
|
|
158
|
+
# Adding Linter Rules[β]
|
|
159
|
+
The best and easiest way to contribute to Oxlint is by adding new linter rules.
|
|
160
|
+
This guide will walk you through this process, using ESLint's[`no-debugger`] rule as an example.
|
|
161
|
+
TIP
|
|
162
|
+
Make sure you've read the[setup instructions] first.
|
|
163
|
+
## Step 1: Pick a Rule[β]
|
|
164
|
+
Our[Linter product plan and progress] issue tracks the status of all rules we want to implement from existing ESLint plugins. From there, pick a plugin that looks interesting to you and find a rule that has not been implemented.
|
|
165
|
+
**Important**: Since ESLint-compatible JavaScript plugin support is now available, we do not plan to add new Rust-based plugins. However, contributions that add rules to existing plugins are**highly encouraged**. If you think a ru
|
|
166
|
+
|
|
167
|
+
Title: Plugins
|
|
168
|
+
Author:
|
|
169
|
+
Published Date: 2025-08-17T00:00:00.000Z
|
|
170
|
+
URL: https://oxc-project.github.io/docs/guide/usage/linter/plugins.html
|
|
171
|
+
Text: Built-in Plugins | The JavaScript Oxidation Compiler
|
|
172
|
+
[![]
|
|
173
|
+
Announcing Type-Aware Linting Alpha
|
|
174
|
+
]
|
|
175
|
+
[Skip to content]
|
|
176
|
+
[![Oxc]![Oxc]]
|
|
177
|
+
Search
|
|
178
|
+
Appearance
|
|
179
|
+
[] [] [] []
|
|
180
|
+
[] [] [] []
|
|
181
|
+
Menu
|
|
182
|
+
Return to top
|
|
183
|
+
Are you an LLM? You can read better optimized documentation at /docs/guide/usage/linter/plugins.md for this page in Markdown format
|
|
184
|
+
# Built-in Plugins[β]
|
|
185
|
+
Oxlint includes built-in implementations of many popular ESLint plugin rule sets. Most rules in the`recommended`configs are already implemented, so you can get useful results without extra setup.
|
|
186
|
+
Oxlint also supports plugins written in JavaScript with an ESLint-compatible API. See[JS Plugins].
|
|
187
|
+
## What a plugin means in Oxlint[β]
|
|
188
|
+
A plugin is a named group of rules. Enabling a plugin makes its rules available, and category flags control which rules are enabled and at what severity.
|
|
189
|
+
If you are migrating from ESLint, plugins map to the ecosystems you already know, such as import, react, jsx-a11y, jest, unicorn, and more.
|
|
190
|
+
## Enable a plugin[β]
|
|
191
|
+
It is**strongly recommended**to use a config file to enable plugins, as it makes it considerably easier t
|
|
192
|
+
|
|
193
|
+
Title: Configuring Oxlint
|
|
194
|
+
Author:
|
|
195
|
+
Published Date: 2025-08-17T00:00:00.000Z
|
|
196
|
+
URL: https://oxc-project.github.io/docs/guide/usage/linter/config.html
|
|
197
|
+
Text: Configuration | The JavaScript Oxidation Compiler
|
|
198
|
+
[![]
|
|
199
|
+
Announcing Type-Aware Linting Alpha
|
|
200
|
+
]
|
|
201
|
+
[Skip to content]
|
|
202
|
+
[![Oxc]![Oxc]]
|
|
203
|
+
Search
|
|
204
|
+
Appearance
|
|
205
|
+
[] [] [] []
|
|
206
|
+
[] [] [] []
|
|
207
|
+
Menu
|
|
208
|
+
Return to top
|
|
209
|
+
Are you an LLM? You can read better optimized documentation at /docs/guide/usage/linter/config.md for this page in Markdown format
|
|
210
|
+
# Configuration[β]
|
|
211
|
+
Oxlint works out of the box, but most teams commit a configuration file to keep linting consistent across local runs, editors, and CI.
|
|
212
|
+
This page focuses on project configuration: rules, categories, plugins, overrides, and shared settings.
|
|
213
|
+
## Create a config file[β]
|
|
214
|
+
To generate a starter config in the current directory:
|
|
215
|
+
sh
|
|
216
|
+
```
|
|
217
|
+
`oxlint--init`
|
|
218
|
+
```
|
|
219
|
+
Oxlint automatically looks for a`.oxlintrc.json`in the current working directory. You can also pass a config explicitly (note that this will disable nested config lookup):
|
|
220
|
+
sh
|
|
221
|
+
```
|
|
222
|
+
`oxlint-c./oxlintrc.json# oroxlint--config./oxlintrc.json`
|
|
223
|
+
```
|
|
224
|
+
Notes:
|
|
225
|
+
* Only`.json`config files are supported, but oxlint configuration files support comments (like jsonc).
|
|
226
|
+
* The configuration format aims to be compatible wi
|
|
227
|
+
|
|
228
|
+
Title: Oxlint JS Plugins Preview
|
|
229
|
+
Author: overlookmotel Core
|
|
230
|
+
Published Date: 2025-10-09T00:00:00.000Z
|
|
231
|
+
URL: https://oxc.rs/blog/2025-10-09-oxlint-js-plugins
|
|
232
|
+
Text: Oxlint JS Plugins Preview | The JavaScript Oxidation Compiler
|
|
233
|
+
[![]
|
|
234
|
+
Announcing Type-Aware Linting Alpha
|
|
235
|
+
]
|
|
236
|
+
[Skip to content]
|
|
237
|
+
[![Oxc]![Oxc]]
|
|
238
|
+
Search
|
|
239
|
+
Appearance
|
|
240
|
+
[] [] [] []
|
|
241
|
+
[] [] [] []
|
|
242
|
+
Menu
|
|
243
|
+
Return to top
|
|
244
|
+
# Oxlint JS Plugins Preview
|
|
245
|
+
* ![overlookmotel]
|
|
246
|
+
[overlookmotel] Core
|
|
247
|
+
* ![Cameron]
|
|
248
|
+
[Cameron] Core
|
|
249
|
+
Earlier this year[we asked for input from the community] to inform design for Oxlint support for custom JS plugins. Today, we are pleased to announce the result of many months of research, prototyping, and finally building:
|
|
250
|
+
**Oxlint supports plugins written in JS!**
|
|
251
|
+
#### Key features[β]
|
|
252
|
+
* ESLint-compatible plugin API. Oxlint will be able to run many existing ESLint plugins without modification.
|
|
253
|
+
* An alternative API which is slightly different, and unlocks better performance.#### What this is and isn't[β]
|
|
254
|
+
This preview release is just the beginning. It is important to note that:
|
|
255
|
+
* This initial release does not implement all of ESLint's plugin API.
|
|
256
|
+
* Performance is good, but it's going to get*way*better - we have many optimizations in the pipeline.
|
|
257
|
+
The most commo
|
|
258
|
+
|
|
259
|
+
|
|
260
|
+
```
|
|
261
|
+
|
|
262
|
+
|
|
263
|
+
*Completed in 5.1s*
|
|
264
|
+
|
|
265
|
+
### π€ Assistant (gpt-5.2-codex)
|
|
266
|
+
|
|
267
|
+
**Started using openai/gpt-5.2-codex**
|
|
268
|
+
|
|
269
|
+
Oxc linter repo: https://github.com/oxc-project/oxc
|
|
270
|
+
|
|
271
|
+
Yes, you can create custom rules. Two paths:
|
|
272
|
+
- JavaScript plugins (recommended for custom rules): Oxlint supports ESLint v9-compatible JS plugins in technical preview. You ship a JS plugin and point `jsPlugins` in `.oxlintrc.json`, then enable the rules under `rules`. Docs: https://oxc.rs/docs/guide/usage/linter/js-plugins
|
|
273
|
+
- Rust rules inside Oxc repo (contributing upstream): You add rules to existing built-in plugins. New Rust plugins arenβt planned; they want rules added to existing plugins. Docs: https://oxc.rs/docs/contribute/linter/adding-rules
|
|
274
|
+
|
|
275
|
+
Minimal JS plugin setup (outline):
|
|
276
|
+
1) Create an ESLint-style plugin module exporting `rules`.
|
|
277
|
+
2) In `.oxlintrc.json`:
|
|
278
|
+
```json
|
|
279
|
+
{
|
|
280
|
+
"jsPlugins": ["./path/to/my-plugin.js"],
|
|
281
|
+
"rules": {
|
|
282
|
+
"my-plugin/my-rule": "error"
|
|
283
|
+
}
|
|
284
|
+
}
|
|
285
|
+
```
|
|
286
|
+
3) Run `oxlint`.
|
|
287
|
+
|
|
288
|
+
Want me to draft a skeleton JS plugin rule file tailored to your use case?
|
|
289
|
+
|
|
290
|
+
|
|
291
|
+
*Completed in 7.9s*
|