Commit Graph

24 Commits

Author SHA1 Message Date
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 9031b8f108 core: move Global module to @opencode-ai/core for centralized path management
Move the Global module from packages/opencode/src/global to packages/core/src/global
to provide a unified location for managing XDG directories and application paths.
This eliminates duplicate path definitions across packages and ensures consistent
access to data, config, cache, state, log, and bin directories throughout the codebase.
2026-04-25 13:52:32 -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
Dax 1865f4fc5f refactor: rename shared package to core (#24309) 2026-04-25 10:59:17 -04:00
Dax 8a41e28f5b CLI perf: reduce deps (#22652) 2026-04-16 02:03:03 -04:00
Kit Langton 97d87eac9f feat: unwrap storage namespaces to flat exports + barrel (#22747) 2026-04-15 23:30:49 -04:00
Dax 780c051059 shared package (#22626) 2026-04-15 14:26:20 +00:00
opencode-agent[bot] ca843cbcf4 chore: generate 2026-04-11 01:22:01 +00:00
Kit Langton bf4c363d64 refactor: destroy Storage facades (#21956) 2026-04-10 21:21:02 -04:00
Kit Langton 28a6be5a1d refactor(effect): use Git service in file and storage (#21803) 2026-04-09 22:49:36 -04:00
Brendan Allan 30d17b3b82 Remove CLI from electron app (#17803)
Co-authored-by: LukeParkerDev <10430890+Hona@users.noreply.github.com>
2026-04-09 13:18:46 +08:00
Kit Langton af252ebc18 refactor(storage): effectify Storage service (#20132) 2026-03-31 01:16:02 +00:00
James Long 87d41cd5ac feat(core): initial implementation of syncing (#17814) 2026-03-25 10:47:40 -04:00
Dax Raad cb807850b5 allow customizing DB location 2026-03-20 22:49:55 -04:00
Kit Langton 2a225d7c72 feat(id): brand PartID through Drizzle and Zod schemas (#16966) 2026-03-11 23:40:50 +00: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
Kit Langton 9ef3ec79cd feat(id): brand ProjectID through Drizzle and Zod schemas (#16948) 2026-03-11 16:44:26 -04:00
Dax Raad 62fe4ae644 core: update database path test to verify correct channel-based filename
The test now validates that the database file is named according to the current installation channel (latest/beta get 'opencode.db', others get sanitized names). This ensures users' data is stored in the correct location based on their update channel.
2026-03-07 18:53:29 -05:00
Luke Parker 3ca580177b fix(opencode): sanitize preview database filenames (#16430) 2026-03-07 04:34:29 +00:00
Dax Raad 9f34ffff3d chore(storage): update drizzle and channel db handling 2026-03-06 10:58:19 -05:00
Dax Raad 8047a789ab test: add tests for path-derived IDs in json migration
Tests verify that file paths are used for IDs even when JSON contains
different values - ensuring robustness against stale JSON content.
2026-02-14 20:37:17 -05:00
Dax 3010323ee0 sqlite again (#10597)
Co-authored-by: Github Action <action@github.com>
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
Co-authored-by: Brendan Allan <git@brendonovich.dev>
2026-02-14 04:19:02 +00:00