Commit Graph

62 Commits

Author SHA1 Message Date
Dax Raad 6d0f2fa9a9 core: refactor Installation service to use a single consolidated result object
Reorganizes the Installation service implementation by grouping info, method, latest, and upgrade methods into a single result object. This improves code locality and makes the service interface more maintainable. Also adds a clarifying comment explaining why the package manager's resolver is used for version lookups (to ensure registries, mirrors, auth, proxies, and dist-tags match upgrade behavior).
2026-04-26 21:05:42 -04: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 Raad 6bc94f94b1 core: consolidate shared infrastructure into core package
Moves effect logging, observability, runtime utilities, flags, installation
version info, and process utilities from opencode to core package. This
enables better code sharing across packages and establishes core as the
single source of truth for foundational utilities.

All internal imports updated to use @opencode-ai/core paths for consistency.
2026-04-25 13:30:37 -04:00
Kit Langton b416f9d3b9 refactor(bus): migrate BusEvent to Effect Schema (#24040) 2026-04-23 15:37:44 -04:00
opencode-agent[bot] 2c1345ab4d chore: generate 2026-04-23 16:00:01 +00:00
Shoubhit Dash 95e63b689a fix(npm): respect npmrc for version lookups (#24016) 2026-04-23 21:28:54 +05:30
Kit Langton d32c4622fd refactor: collapse installation barrel into installation/index.ts (#22910) 2026-04-16 20:35:28 +00:00
James Long 465991be46 fix(core): fix detection of local installation channel (#22899) 2026-04-16 20:26:33 +00:00
Dax 8a41e28f5b CLI perf: reduce deps (#22652) 2026-04-16 02:03:03 -04:00
Kit Langton d2ec847f0c feat: unwrap 11 util namespaces to flat exports + barrel (#22739) 2026-04-15 23:15:58 -04:00
Kit Langton b7d1eab2bb feat: unwrap uinstallation namespace to flat exports + barrel (#22707) 2026-04-16 02:14:34 +00:00
Kit Langton 5b5fc9aac1 refactor(installation): drop facade runtime wrappers (#21984) 2026-04-10 23:26:16 -04:00
Kit Langton 0a790bc740 refactor(effect): upgrade opencode to beta.46 context APIs (#21977) 2026-04-10 23:06:28 -04:00
Kit Langton 4f3e1ac6a5 refactor(effect): prune unused facades (#20748) 2026-04-02 20:15:09 -04:00
Kit Langton 9f35ffe300 test: migrate prompt tests to HTTP mock LLM server (#20304) 2026-03-31 19:14:32 -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 7fcc8d6ad5 fix: restore cross-spawn behavior for effect child processes (#18798) 2026-03-24 10:35:24 -04:00
Dax a65e6119ad feat: interactive update flow for non-patch releases (#18662) 2026-03-22 23:12:40 +00:00
Kit Langton b6aa472839 Move service state into InstanceState, flatten service facades (#18483) 2026-03-21 04:51:35 +00:00
opencode-agent[bot] d79132c5c1 chore: generate 2026-03-20 16:11:21 +00:00
Kit Langton c71771dcf2 effectify Installation service, drop Effect suffix from namespaces (#18266) 2026-03-20 12:10:33 -04:00
Dax 89f4344882 refactor(opencode): replace Bun shell in core flows (#16286) 2026-03-09 15:19:50 -04:00
Harsh Sharma 7a943ed795 fix: resolve homebrew upgrade requiring multiple runs (#5375) (#10118) 2026-02-09 22:18:57 -06:00
Chawye Hsu 9c633d8466 refactor(installation): update scoop installation method (#9243)
Signed-off-by: Chawye Hsu <su+git@chawyehsu.com>
2026-01-18 09:58:34 -06:00
Mani Sundararajan 35cb8cdfa7 feat: add choco and scoop to opencode upgrade methods (#8439) 2026-01-14 09:39:01 -06:00
Aiden Cline e1a2f5ee2c fix: brew autoupgrade 2026-01-13 01:01:06 -06:00
Aiden Cline 6cbbc49b0f tweak: update formula for anomalyco tap 2026-01-07 11:02:37 -06:00
Dax a1a32f22c9 chore: rename repo references from sst/opencode to anomalyco/opencode (#6687)
publish-github-action / publish (push) Has been cancelled
Update Nix Hashes / update (push) Has been cancelled
Co-authored-by: Github Action <action@github.com>
2026-01-02 16:02:52 -05: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 e115bcd5e0 chore: rm comments 2025-12-26 11:43:13 -06:00
Aiden Cline 3b07898a1c fix: adjust upgrade command to use gh releases page if not npm/bun/pnpm install method 2025-12-26 11:43:12 -06:00
Valerio Di Maggio da468f33e2 fix: ensure installation commands are using .quiet (#5758)
Co-authored-by: Aiden Cline <aidenpcline@gmail.com>
Co-authored-by: Aiden Cline <63023139+rekram1-node@users.noreply.github.com>
2025-12-21 23:44:25 -06:00
Dax Raad e6ea3b0a56 core: add client identification to user agent and request headers for better tracking 2025-12-11 16:18:04 -05:00
Dax Raad ee71ce63e0 ci 2025-12-10 02:57:39 +00:00
Dax Raad c4d4c5cf7c rename bus 2025-12-09 14:32:09 -05:00
Aiden Cline 8993f76967 Make homebrew update check use homebrew registry version info 2025-12-02 17:43:33 -06:00
Aiden Cline dba8059c45 fix: add .quiet 2025-12-01 16:59:32 -06:00
opencode-agent[bot] 74c16793dc fix: respect npm registry (#4958)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
Co-authored-by: rekram1-node <rekram1-node@users.noreply.github.com>
Co-authored-by: Aiden Cline <aidenpcline@gmail.com>
2025-12-01 16:58:39 -06:00
Adam 8faaea9c01 wip(share): more styling 2025-11-24 15:10:40 -06:00
Ravi Kumar 2417e7ea87 fix: auto upgrade toast message (#4625)
Co-authored-by: Dax Raad <d@ironbay.co>
Co-authored-by: opencode <opencode@sst.dev>
2025-11-22 16:26:46 -06:00
Dax Raad 91a050328b fix homebrew upgrade 2025-11-06 00:37:44 -05:00
Aiden Cline 7a45bf4e77 update brew handling 2025-11-04 00:52:26 -06:00
Dax Raad 39dde1d979 autoupgrade latest major only 2025-10-29 11:53:25 -04:00
Jérôme Benoit 0787f01d1d chore: cleanup versioned zod imports (#3460)
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
Co-authored-by: rekram1-node <rekram1-node@users.noreply.github.com>
2025-10-26 14:50:41 -05:00
Dax Raad 4170660b41 ci: channels 2025-10-14 15:09:18 -04:00
Dax Raad d338407078 ci: test 2025-10-14 14:56:21 -04:00
Dax Raad d1aa28f417 ci: version stuff 2025-10-14 14:52:05 -04:00
Aiden Cline 7520515273 fix: false positive package manager detection in upgrade (#3181) 2025-10-14 13:18:40 -05:00