Commit Graph

44 Commits

Author SHA1 Message Date
Luke Parker 7454f363db feat: configurable shell selection + desktop settings UI (#20602) 2026-04-27 00:54:55 +00:00
Dax Raad 6742034b03 core: move cross-spawn-spawner to root and remove unused types
The cross-spawn-spawner module has been moved from src/effect/ to src/
to simplify the core package structure. The src/types.d.ts file which
contained unused type declarations has also been removed. All imports
throughout the codebase have been updated to reflect the new location.

This change reduces the package's internal complexity by flattening the
module hierarchy and removing dead code, making future maintenance easier.
2026-04-25 14:30:16 -04:00
Dax Raad 7b2fbf2c2f core: move cross-spawn-spawner from opencode to core package
Moved the cross-spawn-spawner module from packages/opencode to packages/core
to enable code sharing across the monorepo. This consolidates the process
spawning infrastructure into the core package so other packages can use
cross-platform child process spawning without duplicating the implementation.

Updated all import statements across the codebase to reference the new
location (@opencode-ai/core/effect/cross-spawn-spawner). Removed the
local copy from the opencode package along with its tests.
2026-04-25 14:23:17 -04:00
Dax 1865f4fc5f refactor: rename shared package to core (#24309) 2026-04-25 10:59:17 -04:00
Kit Langton 181ca1a17f feat: unwrap tool namespaces to flat exports + barrel (#22762) 2026-04-16 03:56:54 +00:00
Kit Langton d2ec847f0c feat: unwrap 11 util namespaces to flat exports + barrel (#22739) 2026-04-15 23:15:58 -04:00
Aiden Cline 7487ea03a4 fix: bash memory usage (#22660) 2026-04-15 20:09:06 -05:00
Dax 780c051059 shared package (#22626) 2026-04-15 14:26:20 +00:00
Kit Langton 668cb3b151 improve bash timeout retry hint (#22390) 2026-04-14 12:55:03 -04:00
Kit Langton 65c58554b3 refactor(tool): destroy Truncate facade, effectify Tool.define (#22093) 2026-04-11 21:20:12 -04:00
Kit Langton 0fcd20f0dd refactor(tool): make Tool.Info init effectful (#21989) 2026-04-11 12:33:17 -04:00
Kit Langton 0fba75a824 refactor(tool): Tool.Context.metadata returns Effect (#21972) 2026-04-10 23:12:04 -04:00
opencode-agent[bot] 5c921f902d chore: generate 2026-04-11 02:36:59 +00:00
Kit Langton f800941bcc refactor(tool): Tool.Def.execute returns Effect, rename defineEffect → define (#21961) 2026-04-10 22:36:02 -04:00
opencode-agent[bot] 055e0439a8 chore: generate 2026-04-10 17:27:31 +00:00
Kit Langton b8e69d52b2 refactor(tool): convert bash to defineEffect with ChildProcessSpawner (#21895) 2026-04-10 13:26:31 -04:00
Kit Langton 0da4aa8cf2 refactor(bash): use Effect ChildProcess for bash tool execution (#20496) 2026-04-01 19:48:47 -04:00
Luke Parker 24f7ef41d6 feat(windows): add first-class pwsh/powershell support (#16069) 2026-03-30 13:10:01 +10:00
Kit Langton b6aa472839 Move service state into InstanceState, flatten service facades (#18483) 2026-03-21 04:51:35 +00:00
Kit Langton 2a6909cd07 refactor(truncation): effectify TruncateService, delete Scheduler (#17957) 2026-03-17 21:59:54 -04:00
Kit Langton b9eaabe80b feat(id): brand WorkspaceID through Drizzle and Zod schemas (#16964) 2026-03-11 23:30:17 +00:00
Kit Langton 4401c08142 feat(id): brand SessionID through Drizzle and Zod schemas (#16953) 2026-03-11 23:16:56 +00:00
Luke Parker 6bd81f419c fix(test): replace Unix-only assumptions with cross-platform alternatives (#14906) 2026-02-24 23:03:18 +10:00
Luke Parker 605ea75ddb fix(win32): normalize paths at permission boundaries (#14738) 2026-02-23 12:05:21 +10:00
Dax 019134be58 Remove use of Bun.file (#14215) 2026-02-19 11:32:32 -05:00
Aiden Cline 3377b19dd7 chore: cleanup external_dir perm logic (#11845) 2026-02-02 16:43:55 -06:00
Patrick Schiel e6e94b5d59 fix: handle redirected_statement treesitter node in bash permissions (#6737) 2026-01-30 16:11:45 -06:00
Aiden Cline 5be2bcf5c9 feat: dynamically resolve AGENTS.md files from subdirectories as agent explores them (#10678) 2026-01-26 10:49:41 -05:00
Aiden Cline 1bccb5e488 feat: write truncated tool outputs to files (#7239) 2026-01-07 17:25:00 -06:00
Aiden Cline fb2dbbab9b fix: ensure new permissions changes work for special case bash commands like rm, cd, etc 2026-01-01 17:27:23 -06:00
Dax e839c1522d Permission rework (#6319)
Co-authored-by: Github Action <action@github.com>
Co-authored-by: Adam <2363879+adamdotdevin@users.noreply.github.com>
2026-01-01 17:54:11 -05:00
Aiden Cline 5c7a021e61 ignore: add bash tests 2025-12-10 15:07:40 -06:00
Aiden Cline 476e3ca9f0 tweak: make bash give agent more awareness of cwd, bump default timeout, drop max timeout (#5140) 2025-12-06 23:55:07 -06:00
Aiden Cline 358593ddaa ignore: todo fix test case 2025-11-19 15:18:21 -06:00
Aiden Cline 491c26bae3 ignore: flaky test be a lil less flaky plz 2025-11-19 14:46:06 -06:00
Aiden Cline 692984a2a4 ignore: fix hanging test 2025-11-19 14:38:12 -06:00
Dax Raad bfd17abe16 test cleanup 2025-10-24 09:29:38 -04:00
Dax Raad 41065c3353 ignore: rework bootstrap so server lazy starts it 2025-09-19 05:11:29 -04: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
Dax 2a13b1b81e Add agent-level permissions with whitelist/blacklist support (#1862) 2025-08-12 11:39:39 -04:00
Dax Raad 1cc168f826 show combined output of bash tool progressively 2025-08-11 01:23:00 -04:00
Yordis Prieto 12172203d7 chore: enhance bash command tests with config mock and timeout adjustments (#1486)
Signed-off-by: Yordis Prieto <yordis.prieto@gmail.com>
2025-08-01 14:14:54 -04:00
adamdotdevin a0f82ecef8 fix: test 2025-07-31 10:07:58 -05:00
Dax 50c93a349f use treesitter to parse bash commands and catch commands that go outside of cwd (#1443) 2025-07-30 20:57:52 -04:00