Commit Graph

68 Commits

Author SHA1 Message Date
Dax 15fb043349 refactor(format): update formatter interface to return command from enabled() (#20703) 2026-04-02 12:22:01 -04:00
Burak Yigit Kaya 4a2b6f3157 fix(format): use biome format instead of check to prevent import removal (#20545)
Co-authored-by: Aiden Cline <63023139+rekram1-node@users.noreply.github.com>
2026-04-02 10:52:52 -05:00
Dax 99a2f241f8 refactor: replace BunProc with Npm module using @npmcli/arborist (#18308)
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
Co-authored-by: Brendan Allan <git@brendonovich.dev>
Co-authored-by: Aiden Cline <aidenpcline@gmail.com>
2026-04-01 21:01:37 +00:00
Kit Langton 9f35ffe300 test: migrate prompt tests to HTTP mock LLM server (#20304) 2026-03-31 19:14:32 -04:00
opencode-agent[bot] 67812f8daa chore: generate 2026-03-27 21:38:08 +00:00
Kit Langton 0ea1cc8061 refactor(format): use ChildProcessSpawner instead of Process.spawn (#19457) 2026-03-27 17:37:07 -04:00
Kit Langton fcfb201685 refactor(effect): yield services instead of promise facades (#19325) 2026-03-26 21:46:38 -04:00
Kit Langton 9ccef679d7 effectify Bus service: migrate to Effect PubSub + InstanceState (#18579) 2026-03-25 20:19:24 -04:00
Kit Langton b6aa472839 Move service state into InstanceState, flatten service facades (#18483) 2026-03-21 04:51:35 +00:00
Kit Langton 42a5ceb048 fix: apply Layer.fresh at instance service definition site (#18418) 2026-03-20 14:37:12 -04:00
Kit Langton 05f98c0e42 refactor(effect): unify service namespaces and align naming (#18093) 2026-03-18 13:34:36 -04:00
Kit Langton c3de254735 refactor(format): effectify FormatService as scoped service (#17675) 2026-03-16 15:58:36 -04:00
Dax 46beeaa585 refactor(opencode): replace Bun.which with npm which (#15012) 2026-03-06 05:18:29 +00:00
Dax 78e670e201 refactor: migrate Bun.spawn to Process utility with timeout and cleanup (#14448) 2026-02-24 23:04:15 -05:00
Dax 1781a53cd9 refactor: migrate format/formatter.ts from Bun.file() to Filesystem module (#14153) 2026-02-18 12:31:35 -05:00
Robert Schadek d9738369c7 feat(opencode): add dfmt formatter support for D language files (#13867) 2026-02-16 13:14:35 -06:00
Salam Elbilig a3955fbd94 feat(opencode): add cljfmt formatter support for Clojure files (#13426) 2026-02-15 15:21:57 -06:00
Ondřej Súkup 614763c3fa feat(opencode): ormolu code formatter for haskell (#10274) 2026-02-02 06:01:49 -06:00
nuno maduro abcaba8294 feat(formatters): add laravel pint as a .php formatter (#7312) 2026-01-21 10:31:39 -06:00
Goni Zahavy 0e76436a33 fix(opencode): cargo fmt is formatting whole workspace instead of edited file (#9436) 2026-01-19 10:48:59 -06:00
Aiden Cline 5d12d620ac fix: cargo fmt actually does not support formatting single files 2026-01-19 10:15:32 -06:00
paulclou aa2c05ce95 fix(config): rename uv formatter from 'uv format' to 'uv' for config consistency (#9409)
Co-authored-by: Paul C. Lou <paul@exig.ai>
2026-01-19 09:59:51 -06:00
Andrew Pashynnyk 8ce7e66b9e fix(formatter): use biome check instead of format to include import sorting (#8057)
Co-authored-by: kynnyhsap <kynnyhsap@users.noreply.github.com>
2026-01-12 15:21:38 -06:00
Marc Espin 70e31e51c5 fix(docs): Document cargofmt (#7383) 2026-01-08 16:00:03 -06:00
Dax Raad 20cc23edd6 core: improve Rust formatter detection and add cargo fmt support 2026-01-04 13:04:28 -05:00
Farhad Omid 4ae525eb93 feat(format): add rustfmt formatter for Rust files (#6482) 2025-12-30 17:06:55 -06:00
ja f544c2f151 feat(format): add nixfmt formatter for Nix files (#6380) 2025-12-29 14:57:52 -06:00
ja 1b2e793ada feat: add shfmt formatter for shell scripts (#6204) 2025-12-26 11:31:51 -06:00
matvey 47459c2816 feat: add experimental oxfmt formatter (#5620) 2025-12-16 14:43:14 -06:00
Lawrence Sarpong 9e7e08a05b Add Gleam LSP and formatter (#5514) 2025-12-14 10:51:08 -06:00
rari404 9b2f389698 feat: add texlab language server and latexindent formatter (#5251) 2025-12-12 23:50:09 -06:00
rari404 c4bc264ef9 feat: add terraform-ls language server and formatter (#5243) 2025-12-08 12:02:25 -06:00
Shoubhit Dash 0904e20387 add ocamlformat support (#5229) 2025-12-08 11:37:30 -06:00
Christoph aa2a0dbd7b core: add built-in Dart LSP server and formatter (#4841) 2025-11-28 00:33:45 -06:00
Aiden Cline eeaecdf65c feat: add top level lsp: false and formatter: false to allow disabling all formatters or lsps at once 2025-11-18 17:48:40 -06:00
Aiden Cline 8c5d76412c fix: typeerror case 2025-11-13 15:51:23 -06:00
GitHub Action 9855771157 chore: format code 2025-11-08 01:59:02 +00:00
Aiden Cline 6df677d869 ignore: update log 2025-11-07 15:56:37 -06:00
Aiden Cline e85481f3ca fix formatters 2025-11-07 14:10:20 -06:00
Dax Raad d99f1f4570 performance improvements 2025-11-05 15:33:23 -05:00
Kyle F Butts f5b25b6d9a Add support for R formatter in formatters (#3918)
Co-authored-by: Aiden Cline <aidenpcline@gmail.com>
2025-11-04 18:18:33 -06:00
Jared A. Scheel 9c2c86c52f Add support for uv format in formatters (#3916) 2025-11-04 15:40:29 -06:00
Yuku Kotani 187fa92c01 Add formatter status display to TUI status dialog (#3701) 2025-11-01 11:14:39 -04:00
pancake 841135c435 fix: clang formatter name (#3042)
Co-authored-by: pancake <pancake@nopcode.org>
Co-authored-by: Aiden Cline <63023139+rekram1-node@users.noreply.github.com>
2025-10-13 19:55:18 -05:00
Dax aea78046d0 Refactor to support multiple instances inside single opencode process (#2360)
This release has a bunch of minor breaking changes if you are using opencode plugins or sdk

1. storage events have been removed (we might bring this back but had some issues)
2. concept of `app` is gone - there is a new concept called `project` and endpoints to list projects and get the current project
3. plugin receives `directory` which is cwd and `worktree` which is where the root of the project is if it's a git repo
4. the session.chat function has been renamed to session.prompt in sdk. it no longer requires model to be passed in (model is now an object)
5. every endpoint takes an optional `directory` parameter to operate as though opencode is running in that directory
2025-09-01 17:15:49 -04:00
Aiden Cline 66e626dee0 fix: format error log (#2184) 2025-08-22 16:09:15 -05:00
Camden Clark d4d4cf2c3a fix: preserve process.env when spawning formatter commands (#1850) 2025-08-12 02:05:26 -04:00
Jake ac1d8c3f9f Add support for biome.jsonc config file (#1791) 2025-08-11 06:48:46 -05:00
Dax Raad 918b7019c7 formatter config 2025-07-31 19:36:07 -04:00
Dax Raad a64165b456 allow disabling formatter 2025-07-31 18:56:04 -04:00