@link-assistant/hive-mind 0.46.1 → 0.47.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.
Files changed (63) hide show
  1. package/CHANGELOG.md +10 -15
  2. package/README.md +42 -8
  3. package/package.json +16 -3
  4. package/src/agent.lib.mjs +49 -70
  5. package/src/agent.prompts.lib.mjs +6 -20
  6. package/src/buildUserMention.lib.mjs +4 -17
  7. package/src/claude-limits.lib.mjs +15 -15
  8. package/src/claude.lib.mjs +617 -626
  9. package/src/claude.prompts.lib.mjs +7 -22
  10. package/src/codex.lib.mjs +39 -71
  11. package/src/codex.prompts.lib.mjs +6 -20
  12. package/src/config.lib.mjs +3 -16
  13. package/src/contributing-guidelines.lib.mjs +5 -18
  14. package/src/exit-handler.lib.mjs +4 -4
  15. package/src/git.lib.mjs +7 -7
  16. package/src/github-issue-creator.lib.mjs +17 -17
  17. package/src/github-linking.lib.mjs +8 -33
  18. package/src/github.batch.lib.mjs +20 -16
  19. package/src/github.graphql.lib.mjs +18 -18
  20. package/src/github.lib.mjs +89 -91
  21. package/src/hive.config.lib.mjs +50 -50
  22. package/src/hive.mjs +1293 -1296
  23. package/src/instrument.mjs +7 -11
  24. package/src/interactive-mode.lib.mjs +112 -138
  25. package/src/lenv-reader.lib.mjs +1 -6
  26. package/src/lib.mjs +36 -45
  27. package/src/lino.lib.mjs +2 -2
  28. package/src/local-ci-checks.lib.mjs +15 -14
  29. package/src/memory-check.mjs +52 -60
  30. package/src/model-mapping.lib.mjs +25 -32
  31. package/src/model-validation.lib.mjs +31 -31
  32. package/src/opencode.lib.mjs +37 -62
  33. package/src/opencode.prompts.lib.mjs +7 -21
  34. package/src/protect-branch.mjs +14 -15
  35. package/src/review.mjs +28 -27
  36. package/src/reviewers-hive.mjs +64 -69
  37. package/src/sentry.lib.mjs +13 -10
  38. package/src/solve.auto-continue.lib.mjs +48 -38
  39. package/src/solve.auto-pr.lib.mjs +111 -69
  40. package/src/solve.branch-errors.lib.mjs +17 -46
  41. package/src/solve.branch.lib.mjs +16 -23
  42. package/src/solve.config.lib.mjs +263 -261
  43. package/src/solve.error-handlers.lib.mjs +21 -79
  44. package/src/solve.execution.lib.mjs +10 -18
  45. package/src/solve.feedback.lib.mjs +25 -46
  46. package/src/solve.mjs +59 -60
  47. package/src/solve.preparation.lib.mjs +10 -36
  48. package/src/solve.repo-setup.lib.mjs +4 -19
  49. package/src/solve.repository.lib.mjs +37 -37
  50. package/src/solve.results.lib.mjs +32 -46
  51. package/src/solve.session.lib.mjs +7 -22
  52. package/src/solve.validation.lib.mjs +19 -17
  53. package/src/solve.watch.lib.mjs +20 -33
  54. package/src/start-screen.mjs +24 -24
  55. package/src/task.mjs +38 -44
  56. package/src/telegram-bot.mjs +125 -121
  57. package/src/telegram-top-command.lib.mjs +32 -48
  58. package/src/usage-limit.lib.mjs +9 -13
  59. package/src/version-info.lib.mjs +1 -1
  60. package/src/version.lib.mjs +1 -1
  61. package/src/youtrack/solve.youtrack.lib.mjs +3 -8
  62. package/src/youtrack/youtrack-sync.mjs +8 -14
  63. package/src/youtrack/youtrack.lib.mjs +26 -28
package/CHANGELOG.md CHANGED
@@ -1,11 +1,20 @@
1
1
  # @link-assistant/hive-mind
2
2
 
3
+ ## 0.47.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 1351ffe: Add Prettier for automatic code formatting with ESLint integration
8
+ - Added Prettier configuration with project code style settings
9
+ - Created format and format:check npm scripts for code formatting
10
+ - Integrated Prettier with ESLint to warn about formatting issues
11
+ - Added eslint-config-prettier and eslint-plugin-prettier dependencies
12
+
3
13
  ## 0.46.1
4
14
 
5
15
  ### Patch Changes
6
16
 
7
17
  - 3707189: Implement fail-fast CI strategy for release.yml workflow
8
-
9
18
  - Added dependency ordering so long-running checks wait for all fast checks to pass
10
19
  - Fast checks (test-compilation, lint, check-file-line-limits) run first (~7-21s each)
11
20
  - Long-running checks (test-suites, test-execution, memory-check-linux, docker-pr-check) only run after fast checks pass
@@ -13,7 +22,6 @@
13
22
  - Added section markers to clearly document FAST vs LONG-RUNNING checks in the workflow
14
23
 
15
24
  Benefits:
16
-
17
25
  - Time savings: If fast checks fail, ~4+ minutes of long-running tests are skipped
18
26
  - Faster feedback: Developers get quick feedback on common issues
19
27
  - Resource efficiency: Reduces unnecessary GitHub Actions minutes consumption
@@ -41,7 +49,6 @@
41
49
  - b72136f: Add /version command to hive-telegram-bot
42
50
 
43
51
  Implements a new /version command that displays comprehensive version information including:
44
-
45
52
  - Bot version (package version with git commit SHA in development)
46
53
  - solve and hive command versions
47
54
  - Node.js runtime version
@@ -56,7 +63,6 @@
56
63
  The `perlbrew available` command output was not being parsed correctly, causing the installation script to skip Perl installation with the message "Could not determine latest Perl version."
57
64
 
58
65
  **Changes:**
59
-
60
66
  - Use `grep -oE` to robustly extract Perl version strings regardless of line formatting
61
67
  - Capture stderr from `perlbrew available` for better debugging
62
68
  - Add debug output showing `perlbrew available` response when version detection fails
@@ -75,7 +81,6 @@
75
81
  This release introduces a new opt-in feature that enables the AI to automatically create GitHub issues when it spots bugs, errors, or minor issues during working sessions that are not related to the main task.
76
82
 
77
83
  **New Features:**
78
-
79
84
  - Added `--prompt-issue-reporting` CLI flag (disabled by default)
80
85
  - Issues include reproducible examples, workarounds, and fix suggestions
81
86
  - Supports creating issues in both current and third-party repositories
@@ -89,7 +94,6 @@
89
94
  ```
90
95
 
91
96
  **Implementation:**
92
-
93
97
  - New guideline in system prompt (conditional on flag)
94
98
  - Flag added to both `hive` and `solve` commands
95
99
  - Uses `gh` CLI for authenticated issue creation (works with private repos)
@@ -101,7 +105,6 @@
101
105
  ### Patch Changes
102
106
 
103
107
  - 64d6cf8: Add experimental /top command to Telegram bot
104
-
105
108
  - Added /top command to show live system monitor in Telegram
106
109
  - Displays auto-updating `top` output in a single message (updates every 2 seconds)
107
110
  - Owner-only access with chat authorization checks
@@ -118,7 +121,6 @@
118
121
  ### Patch Changes
119
122
 
120
123
  - dca5bed: Make --auto-continue enabled by default
121
-
122
124
  - Changed default value from false to true for --auto-continue in both hive and solve commands
123
125
  - Smart handling of -s (--skip-issues-with-prs) flag interaction:
124
126
  - When -s is used, auto-continue is automatically disabled to avoid conflicts
@@ -133,7 +135,6 @@
133
135
  ### Patch Changes
134
136
 
135
137
  - acd70a9: Add Lean runtime preinstallation support via elan
136
-
137
138
  - Install elan (Lean version manager) with stable toolchain in all deployment environments
138
139
  - Add Lean/elan to PATH in Dockerfile, .gitpod.Dockerfile, coolify/Dockerfile
139
140
  - Add installation verification for elan, lean, and lake commands
@@ -144,7 +145,6 @@
144
145
  ### Minor Changes
145
146
 
146
147
  - d98d9c9: Add Java (OpenJDK) runtime installation support via SDKMAN in Ubuntu 24 server installation script
147
-
148
148
  - Install SDKMAN as Java version manager (following pattern of pyenv for Python, nvm for Node.js)
149
149
  - Install Java 21 LTS (Eclipse Temurin distribution) by default with fallback to OpenJDK
150
150
  - Add SDKMAN configuration to .bashrc for persistence
@@ -163,7 +163,6 @@
163
163
 
164
164
  - f77fdf8: Add Golang runtime installation support to Ubuntu 24 server installation script with proper success verification
165
165
  - ca4d83d: Add preinstalled Rocq (formerly Coq) theorem prover runtime support
166
-
167
166
  - Install opam (OCaml package manager) as prerequisite
168
167
  - Configure Rocq-released repository for package installation
169
168
  - Add Rocq prover with fallback to classic Coq package if unavailable
@@ -198,7 +197,6 @@
198
197
  When users provide URLs with backslashes (e.g., `https://github.com/owner/repo/issues/123\`), the system now properly validates them and provides helpful error messages with auto-corrected URL suggestions. According to RFC 3986, backslash is not a valid character in URL paths.
199
198
 
200
199
  **Changes:**
201
-
202
200
  - Enhanced `parseGitHubUrl()` function to detect backslashes in URL paths
203
201
  - Updated all validation points (Telegram bot `/solve` and `/hive` commands, CLI `hive` and `solve` commands)
204
202
  - Provides user-friendly error messages with corrected URL suggestions
@@ -215,7 +213,6 @@
215
213
  When a work session completes successfully but the CLAUDE.md commit hash was lost between sessions (e.g., due to session interruption), the system now attempts to detect the CLAUDE.md commit from the branch structure instead of silently skipping cleanup.
216
214
 
217
215
  **Safety Checks (Preventing Issue #617 Recurrence):**
218
-
219
216
  1. CLAUDE.md must exist in current branch
220
217
  2. Find merge base to isolate PR-only commits
221
218
  3. Must have at least 2 commits (CLAUDE.md + actual work)
@@ -241,7 +238,6 @@
241
238
  ### Patch Changes
242
239
 
243
240
  - f8ebd99: Make Playwright MCP usage guidelines conditional based on MCP availability
244
-
245
241
  - Add `checkPlaywrightMcpAvailability()` function to detect if Playwright MCP is installed
246
242
  - Conditionally include Playwright MCP section in Claude system prompt only when MCP is detected
247
243
  - Integration in both main execution (solve.mjs) and watch mode (solve.watch.lib.mjs)
@@ -272,7 +268,6 @@
272
268
  ### Patch Changes
273
269
 
274
270
  - 40545f6: Consolidate CI/CD workflows to single release.yml following js-ai-driven-development-pipeline-template best practices
275
-
276
271
  - Removed verify-version-bump job (replaced by changeset-check)
277
272
  - Consolidated main.yml, ci.yml, and helm-pr-check.yml into release.yml
278
273
  - Added template scripts for release automation (validate-changeset, version-and-commit, publish-to-npm, etc.)
package/README.md CHANGED
@@ -47,6 +47,7 @@ There are infinite ways to extract tokens from a virtual machine connected to th
47
47
  **USE THIS SOFTWARE ENTIRELY AT YOUR OWN RISK AND RESPONSIBILITY.**
48
48
 
49
49
  We strongly recommend:
50
+
50
51
  - Using dedicated, isolated virtual machines
51
52
  - Rotating tokens regularly
52
53
  - Monitoring token usage for suspicious activity
@@ -54,6 +55,7 @@ We strongly recommend:
54
55
  - Being prepared to revoke and replace all tokens used with this system
55
56
 
56
57
  Minimum system requirements to run `hive.mjs`:
58
+
57
59
  ```
58
60
  1 CPU Core
59
61
  1 GB RAM
@@ -66,11 +68,13 @@ Minimum system requirements to run `hive.mjs`:
66
68
  ### Global Installation
67
69
 
68
70
  #### Using Bun (Recommended)
71
+
69
72
  ```bash
70
73
  bun install -g @link-assistant/hive-mind
71
74
  ```
72
75
 
73
76
  #### Using Node.js
77
+
74
78
  ```bash
75
79
  npm install -g @link-assistant/hive-mind
76
80
  ```
@@ -113,6 +117,7 @@ solve https://github.com/owner/repo/issues/123
113
117
  ```
114
118
 
115
119
  **Benefits of Docker:**
120
+
116
121
  - ✅ Pre-configured Ubuntu 24.04 environment
117
122
  - ✅ All dependencies pre-installed
118
123
  - ✅ Isolated from your host system
@@ -138,6 +143,7 @@ helm install hive-mind link-assistant/hive-mind -f values.yaml
138
143
  ```
139
144
 
140
145
  **Benefits of Helm:**
146
+
141
147
  - ✅ Easy deployment to Kubernetes clusters
142
148
  - ✅ Declarative configuration management
143
149
  - ✅ Simple upgrades and rollbacks
@@ -153,17 +159,21 @@ See [docs/HELM.md](./docs/HELM.md) for detailed Helm configuration options.
153
159
  1. Reset/install VPS/VDS server with fresh Ubuntu 24.04
154
160
  2. Login to `root` user.
155
161
  3. Execute main installation script
162
+
156
163
  ```bash
157
164
  curl -fsSL -o- https://github.com/link-assistant/hive-mind/raw/refs/heads/main/scripts/ubuntu-24-server-install.sh | bash
158
165
  ```
166
+
159
167
  **Note:** The installation script will NOT run `gh auth login` automatically. This is intentional to support Docker builds without timeouts. Authentication is performed in the next steps.
160
168
 
161
169
  4. Login to `hive` user
170
+
162
171
  ```bash
163
172
  su - hive
164
173
  ```
165
174
 
166
175
  5. **IMPORTANT:** Authenticate with GitHub CLI AFTER installation is complete
176
+
167
177
  ```bash
168
178
  gh auth login -h github.com -s repo,workflow,user,read:org,gist
169
179
 
@@ -177,9 +187,11 @@ See [docs/HELM.md](./docs/HELM.md) for detailed Helm configuration options.
177
187
  git config --global user.name
178
188
  git config --global user.email
179
189
  ```
190
+
180
191
  Note: Follow the prompts to authenticate with your GitHub account. This is required for the gh tool to work, and the system will perform all actions using this GitHub account. This step must be done AFTER the installation script completes to avoid build timeouts in Docker environments.
181
192
 
182
193
  6. Claude Code CLI, OpenCode AI CLI, and @link-assistant/agent are preinstalled with the previous script. Now you need to make sure claude is authorized. Execute claude command, and follow all steps to authorize the local claude
194
+
183
195
  ```bash
184
196
  claude
185
197
  ```
@@ -189,6 +201,7 @@ See [docs/HELM.md](./docs/HELM.md) for detailed Helm configuration options.
189
201
  7. Launch the Hive Mind telegram bot:
190
202
 
191
203
  **Using Links Notation (recommended):**
204
+
192
205
  ```
193
206
  screen -S bot # Enter new screen for bot
194
207
 
@@ -215,6 +228,7 @@ See [docs/HELM.md](./docs/HELM.md) for detailed Helm configuration options.
215
228
  ```
216
229
 
217
230
  **Using individual command-line options:**
231
+
218
232
  ```
219
233
  screen -S bot # Enter new screen for bot
220
234
 
@@ -239,10 +253,10 @@ See [docs/HELM.md](./docs/HELM.md) for detailed Helm configuration options.
239
253
 
240
254
  Note: You may need to register you own bot with https://t.me/BotFather to get the bot token.
241
255
 
242
-
243
256
  #### Codex sign-in
244
257
 
245
258
  1. Connect to your instance of VPS with Hive Mind installed, using SSH with tunnel opened
259
+
246
260
  ```bash
247
261
  ssh -L 1455:localhost:1455 root@123.123.123.123
248
262
  ```
@@ -252,11 +266,13 @@ ssh -L 1455:localhost:1455 root@123.123.123.123
252
266
  ```bash
253
267
  codex login
254
268
  ```
269
+
255
270
  The oAuth callback server on 1455 port will be started, and the link to oAuth will be printed, copy the link.
256
271
 
257
272
  3. Use your browser on machine where you started the tunnel from, paste there the link from `codex login` command, and go there using your browser. Once redirected to localhost:1455 you will see successful login page, and in `codex login` you will see `Successfully logged in`. After that `codex login` command will complete, and you can use `codex` command as usual to verify. It should also be working with `--tool codex` in `solve` and `hive` commands.
258
273
 
259
274
  ### Core Operations
275
+
260
276
  ```bash
261
277
  # Solve using maximum power
262
278
  solve https://github.com/Veronika89-lang/index.html/issues/1 --auto-continue --attach-logs --verbose --model opus --auto-fork --think max
@@ -288,17 +304,18 @@ review --repo owner/repo --pr 456
288
304
 
289
305
  ## 📋 Core Components
290
306
 
291
- | Script | Purpose | Key Features |
292
- |--------|---------|--------------|
293
- | `solve.mjs` (stable) | GitHub issue solver | Auto fork, branch creation, PR generation, resume sessions, fork support |
294
- | `hive.mjs` (stable) | AI orchestration & monitoring | Multi-repo monitoring, concurrent workers, issue queue management |
295
- | `review.mjs` (alpha) | Code review automation | Collaborative AI reviews, automated feedback |
296
- | `reviewers-hive.mjs` (alpha / experimental) | Review team management | Multi-agent consensus, reviewer assignment |
297
- | `telegram-bot.mjs` (stable) | Telegram bot interface | Remote command execution, group chat support, diagnostic tools |
307
+ | Script | Purpose | Key Features |
308
+ | ------------------------------------------- | ----------------------------- | ------------------------------------------------------------------------ |
309
+ | `solve.mjs` (stable) | GitHub issue solver | Auto fork, branch creation, PR generation, resume sessions, fork support |
310
+ | `hive.mjs` (stable) | AI orchestration & monitoring | Multi-repo monitoring, concurrent workers, issue queue management |
311
+ | `review.mjs` (alpha) | Code review automation | Collaborative AI reviews, automated feedback |
312
+ | `reviewers-hive.mjs` (alpha / experimental) | Review team management | Multi-agent consensus, reviewer assignment |
313
+ | `telegram-bot.mjs` (stable) | Telegram bot interface | Remote command execution, group chat support, diagnostic tools |
298
314
 
299
315
  > **Note**: For a comprehensive analysis of the "Could not process image" error in AI issue solvers, see the [Case Study: Issue #597](docs/case-studies/issue-597/README.md). The case study includes root cause analysis, timeline reconstruction, and evidence of GitHub's time-limited S3 URLs causing image processing failures. Separate tools for downloading GitHub issues and PRs with embedded images are being developed at [gh-download-issue](https://github.com/link-foundation/gh-download-issue) and [gh-download-pull-request](https://github.com/link-foundation/gh-download-pull-request).
300
316
 
301
317
  ## 🔧 solve Options
318
+
302
319
  ```bash
303
320
  solve <issue-url> [options]
304
321
 
@@ -350,6 +367,7 @@ solve <issue-url> [options]
350
367
  ```
351
368
 
352
369
  ## 🔧 hive Options
370
+
353
371
  ```bash
354
372
  hive <github-url> [options]
355
373
 
@@ -412,6 +430,7 @@ Want to see the Hive Mind in action? Join our Telegram channel where you can exe
412
430
  - Add the bot to your group chat and make it an admin
413
431
 
414
432
  2. **Configure Environment**
433
+
415
434
  ```bash
416
435
  # Copy the example configuration
417
436
  cp .env.example .env
@@ -434,6 +453,7 @@ Want to see the Hive Mind in action? Join our Telegram channel where you can exe
434
453
  All commands work in **group chats only** (not in private messages with the bot):
435
454
 
436
455
  #### `/solve` - Solve GitHub Issues
456
+
437
457
  ```
438
458
  /solve <github-url> [options]
439
459
 
@@ -444,6 +464,7 @@ Examples:
444
464
  ```
445
465
 
446
466
  #### `/hive` - Run Hive Orchestration
467
+
447
468
  ```
448
469
  /hive <github-url> [options]
449
470
 
@@ -454,6 +475,7 @@ Examples:
454
475
  ```
455
476
 
456
477
  #### `/help` - Get Help and Diagnostic Info
478
+
457
479
  ```
458
480
  /help
459
481
 
@@ -490,6 +512,7 @@ The Hive Mind operates on three layers:
490
512
  ### Data Flow
491
513
 
492
514
  #### Mode 1: Issue → Pull Request Flow
515
+
493
516
  ```mermaid
494
517
  sequenceDiagram
495
518
  participant H as Human
@@ -526,6 +549,7 @@ sequenceDiagram
526
549
  ```
527
550
 
528
551
  #### Mode 2: Pull Request → Comments Flow
552
+
529
553
  ```mermaid
530
554
  sequenceDiagram
531
555
  participant H as Human
@@ -565,6 +589,7 @@ sequenceDiagram
565
589
  ## 📊 Usage Examples
566
590
 
567
591
  ### Automated Issue Resolution
592
+
568
593
  ```bash
569
594
  # Auto-fork and solve issue (automatic fork detection for public repos)
570
595
  solve https://github.com/owner/repo/issues/123 --auto-fork --model opus
@@ -583,6 +608,7 @@ solve https://github.com/owner/repo/issues/123 --dry-run
583
608
  ```
584
609
 
585
610
  ### Multi-Repository Orchestration
611
+
586
612
  ```bash
587
613
  # Monitor single repository with specific label
588
614
  hive https://github.com/owner/repo --monitor-tag "bug" --concurrency 4
@@ -601,6 +627,7 @@ hive https://github.com/org/repo --auto-cleanup --auto-fork --concurrency 5
601
627
  ```
602
628
 
603
629
  ### Session Management
630
+
604
631
  ```bash
605
632
  # Resume when Claude hits limit
606
633
  solve https://github.com/owner/repo/issues/123 --resume 657e6db1-6eb3-4a8d
@@ -612,6 +639,7 @@ solve https://github.com/owner/repo/issues/123 --resume 657e6db1-6eb3-4a8d
612
639
  ## 🔍 Monitoring & Logging
613
640
 
614
641
  Find resume commands in logs:
642
+
615
643
  ```bash
616
644
  grep -E '\(cd /tmp/gh-issue-solver-[0-9]+ && claude --resume [0-9a-f-]{36}\)' hive-*.log
617
645
  ```
@@ -619,6 +647,7 @@ grep -E '\(cd /tmp/gh-issue-solver-[0-9]+ && claude --resume [0-9a-f-]{36}\)' hi
619
647
  ## 🔧 Configuration
620
648
 
621
649
  Authentication is handled through:
650
+
622
651
  - `gh auth login` - GitHub CLI authentication
623
652
  - `claude-profiles` - Claude authentication profile migration to server
624
653
 
@@ -627,18 +656,23 @@ No environment variable configuration is currently supported.
627
656
  ## 🐛 Reporting Issues
628
657
 
629
658
  ### Hive Mind Issues
659
+
630
660
  If you encounter issues with **Hive Mind** (this project), please report them on our GitHub Issues page:
661
+
631
662
  - **Repository**: https://github.com/link-assistant/hive-mind
632
663
  - **Issues**: https://github.com/link-assistant/hive-mind/issues
633
664
 
634
665
  ### Claude Code CLI Issues
666
+
635
667
  If you encounter issues with the **Claude Code CLI** itself (e.g., `claude` command errors, installation problems, or CLI bugs), please report them to the official Claude Code repository:
668
+
636
669
  - **Repository**: https://github.com/anthropics/claude-code
637
670
  - **Issues**: https://github.com/anthropics/claude-code/issues
638
671
 
639
672
  ## 🛡️ File Size Enforcement
640
673
 
641
674
  All documentation files are automatically checked:
675
+
642
676
  ```bash
643
677
  find docs/ -name "*.md" -exec wc -l {} + | awk '$1 > 1000 {print "ERROR: " $2 " has " $1 " lines (max 1000)"}'
644
678
  ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@link-assistant/hive-mind",
3
- "version": "0.46.1",
3
+ "version": "0.47.0",
4
4
  "description": "AI-powered issue solver and hive mind for collaborative problem solving",
5
5
  "main": "src/hive.mjs",
6
6
  "type": "module",
@@ -16,10 +16,13 @@
16
16
  "test": "echo \"Error: no test specified\" && exit 1",
17
17
  "lint": "eslint 'src/**/*.{js,mjs,cjs}'",
18
18
  "lint:fix": "eslint 'src/**/*.{js,mjs,cjs}' --fix",
19
+ "format": "prettier --write \"**/*.{js,mjs,json,md}\"",
20
+ "format:check": "prettier --check \"**/*.{js,mjs,json,md}\"",
19
21
  "changeset": "changeset",
20
22
  "changeset:version": "changeset version",
21
23
  "changeset:publish": "npm run build:pre && changeset publish",
22
- "build:pre": "chmod +x src/hive.mjs && chmod +x src/solve.mjs"
24
+ "build:pre": "chmod +x src/hive.mjs && chmod +x src/solve.mjs",
25
+ "prepare": "husky"
23
26
  },
24
27
  "repository": {
25
28
  "type": "git",
@@ -49,10 +52,20 @@
49
52
  "devDependencies": {
50
53
  "@changesets/cli": "^2.27.0",
51
54
  "@eslint/js": "^9.35.0",
52
- "eslint": "^9.35.0"
55
+ "eslint": "^9.35.0",
56
+ "eslint-config-prettier": "^10.1.8",
57
+ "eslint-plugin-prettier": "^5.5.4",
58
+ "husky": "^9.1.7",
59
+ "lint-staged": "^16.2.7",
60
+ "prettier": "^3.6.2"
53
61
  },
54
62
  "dependencies": {
55
63
  "@sentry/node": "^10.15.0",
56
64
  "@sentry/profiling-node": "^10.15.0"
65
+ },
66
+ "lint-staged": {
67
+ "*.{js,mjs,json,md}": [
68
+ "prettier --write"
69
+ ]
57
70
  }
58
71
  }