Commit graph

508 commits

Author SHA1 Message Date
Kit Langton
05661c60ff
feat(httpapi): bridge file search endpoints (#24356) 2026-04-25 14:12:54 -04:00
Kit Langton
eb0219988b
feat(httpapi): bridge catalog read endpoints (#24353) 2026-04-25 14:00:30 -04:00
Dax Raad
705f792e87 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
1a734adb4d 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
62ef2a2207
refactor: rename shared package to core (#24309) 2026-04-25 10:59:17 -04:00
opencode-agent[bot]
5b0e828c10 chore: generate 2026-04-25 14:43:27 +00:00
Kit Langton
d5bfaef53d
feat(httpapi): bridge instance read endpoints (#24258) 2026-04-25 10:42:31 -04:00
Kit Langton
97eb9fdee8
test(httpapi): cover hono bridge middleware (#24216) 2026-04-24 18:03:51 -04:00
Kit Langton
5a04de231e
refactor(ripgrep): migrate result schemas to effect (#24213) 2026-04-24 17:42:52 -04:00
opencode-agent[bot]
7a02eee0f4 chore: generate 2026-04-24 21:13:00 +00:00
Kit Langton
cf45a8d807
refactor(schema): decode effect schemas directly (#24169) 2026-04-24 17:11:52 -04:00
Kit Langton
435becbea0
Refactor HttpApi auth middleware wiring (#24168) 2026-04-24 17:11:07 -04:00
opencode-agent[bot]
d89bfc32ac chore: generate 2026-04-24 13:20:23 +00:00
Kit Langton
011c23761b
feat(httpapi): bridge mcp status endpoint (#24100) 2026-04-24 09:18:57 -04:00
Kit Langton
9f7ecd65e5
feat(httpapi): bridge file read endpoints (#24098) 2026-04-24 09:12:05 -04:00
Kit Langton
e50a688ca3
feat(httpapi): bridge workspace read endpoints (#24062) 2026-04-23 17:32:02 -04:00
opencode-agent[bot]
a771859362 chore: generate 2026-04-23 20:50:19 +00:00
Kit Langton
31d01d404a
refactor(control-plane): migrate workspace DTO schemas (#24056) 2026-04-23 16:48:56 -04:00
Kit Langton
3910a6e527
refactor(tool): migrate tool framework + all 18 built-in tools to Effect Schema (#23244) 2026-04-23 16:09:34 -04:00
opencode-agent[bot]
24892559ae chore: generate 2026-04-23 19:38:54 +00:00
Kit Langton
cd93533b1f
refactor(bus): migrate BusEvent to Effect Schema (#24040) 2026-04-23 15:37:44 -04:00
Kit Langton
c50d65b4d6
refactor(sync): make session events schema-first (#24019) 2026-04-23 12:43:08 -04:00
Kit Langton
0517ab4695
refactor(session): migrate session domain to Effect Schema (#24005) 2026-04-23 11:30:02 -04:00
Kit Langton
e89543811c
refactor(core): migrate MessageV2 message DTOs (User/Assistant/Part/Info/WithParts) to Effect Schema (#23757) 2026-04-21 23:26:12 -04:00
opencode-agent[bot]
1a76799fd8 chore: generate 2026-04-22 03:18:25 +00:00
Kit Langton
fa623964a2
refactor(core): migrate MessageV2 part leaves + ToolPart to Effect Schema (#23756) 2026-04-21 23:17:23 -04:00
Kit Langton
0bcf734a67
migrate Snapshot schemas to Effect Schema (#23747) 2026-04-21 17:37:27 -04:00
Kit Langton
7933657135
migrate LSP data schemas to Effect Schema (#23745) 2026-04-21 17:26:50 -04:00
Kit Langton
ecc06a3d8f
refactor(core): make Config.Info canonical Effect Schema (#23716) 2026-04-21 14:06:47 -04:00
Kit Langton
96a534d8c6
feat(core): bridge GET /config through experimental HttpApi (#23712) 2026-04-21 16:05:23 +00:00
Kit Langton
eafbe5c57c refactor(server): align route-span attrs with OTel semantic conventions (#23198) 2026-04-18 00:29:26 +00:00
Kit Langton
d5c4c26b4b feat(server): auto-tag route spans with route params (session.id, message.id, …) (#23189) 2026-04-18 00:29:26 +00:00
Kit Langton
999d8651aa
feat(server): wrap remaining route handlers in request spans (#23169) 2026-04-17 16:52:40 -04:00
Kit Langton
b1307d5c2a
refactor(config): migrate skills, formatter, console-state to Effect Schema (#23162) 2026-04-17 20:49:36 +00:00
James Long
47f553f9ba
fix(core): more explicit routing to fix workspace instance issue (#23171) 2026-04-17 16:39:34 -04:00
Kit Langton
11fa257549
refactor(config): migrate mcp schemas to Effect Schema.Class (#23163) 2026-04-17 20:25:49 +00:00
James Long
5621373bc2
fix(core): move instance middleware after control plane routes (#23150) 2026-04-17 15:20:11 -04:00
Dax Raad
2f73e73e9d trace npm fully 2026-04-17 14:08:45 -04:00
James Long
a8c78fc005
fix(core): add historical sync on workspace connect (#23121) 2026-04-17 13:30:09 -04:00
James Long
7605acff65
refactor(core): move server routes around to clarify workspacing (#23031) 2026-04-17 02:06:20 -04:00
Kit Langton
9ee89f7868
refactor: move project read routes onto HttpApi (#23003) 2026-04-17 03:48:12 +00:00
Kit Langton
ee7339f2c6
refactor: move provider and config provider routes onto HttpApi (#23004) 2026-04-16 23:10:45 -04:00
Kit Langton
c026e25088
refactor: eliminate account/ barrel, route consumers to sibling files (#22995) 2026-04-17 01:55:50 +00:00
Kit Langton
5022895e2b
refactor: unwrap ExperimentalHttpApiServer namespace + self-reexport (#22979) 2026-04-17 01:01:24 +00:00
opencode-agent[bot]
f9aa3d77cd chore: generate 2026-04-16 23:53:10 +00:00
Kit Langton
c03fa36257
refactor: unwrap Server namespace + self-reexport (#22970) 2026-04-16 23:51:01 +00:00
Kit Langton
1089fa0415
refactor: unwrap ServerProxy namespace + self-reexport (#22969) 2026-04-16 23:50:32 +00:00
Kit Langton
218eca7c2b
refactor: unwrap MDNS namespace + self-reexport (#22968) 2026-04-16 23:50:11 +00:00
James Long
a8d8a35cd3
feat(core): pass auth data to workspace (#22897) 2026-04-16 16:30:11 -04:00
Kit Langton
1c33b866ba
fix: remove 10 more unnecessary as any casts in opencode core (#22882) 2026-04-16 20:11:05 +00:00
Dax Raad
33bb847a1d config: refactor 2026-04-16 12:40:24 -04:00
James Long
305460b25f
fix: add a few more tests for sync and session restore (#22837) 2026-04-16 12:15:44 -04:00
Dax
675a46e23e
CLI perf: reduce deps (#22652) 2026-04-16 02:03:03 -04:00
Kit Langton
6b20838981
feat: unwrap provider namespaces to flat exports + barrel (#22760) 2026-04-16 05:02:50 +00:00
Kit Langton
5011465c81
feat: unwrap tool namespaces to flat exports + barrel (#22762) 2026-04-16 03:56:54 +00:00
Kit Langton
bd29004831
feat: enable type-aware no-misused-spread rule, fix 8 violations (#22749) 2026-04-16 03:50:50 +00:00
Kit Langton
f24207844f
feat: unwrap storage namespaces to flat exports + barrel (#22747) 2026-04-15 23:30:49 -04:00
Kit Langton
d4cfbd020d
feat: unwrap effect namespaces to flat exports + barrel (#22745) 2026-04-15 23:29:12 -04:00
Kit Langton
581d5208ca
feat: unwrap share namespaces to flat exports + barrel (#22744) 2026-04-15 23:28:46 -04:00
Kit Langton
a427a28fa9
feat: unwrap project namespaces to flat exports + barrel (#22743) 2026-04-15 23:28:46 -04:00
Kit Langton
80f1f1b5b8
feat: enable type-aware no-floating-promises rule, fix all 177 violations (#22741) 2026-04-15 23:27:32 -04:00
Kit Langton
343a564183
feat: unwrap 11 util namespaces to flat exports + barrel (#22739) 2026-04-15 23:15:58 -04:00
Kit Langton
b0eae5e12f
feat: bridge permission and provider auth routes behind OPENCODE_EXPERIMENTAL_HTTPAPI (#22736) 2026-04-15 23:02:48 -04:00
Kit Langton
702f741267
feat: enable oxlint suspicious category, fix 24 violations (#22727) 2026-04-16 02:53:10 +00:00
Kit Langton
1508196c0f
feat: bridge question routes from Hono to Effect HttpApi (#22718) 2026-04-15 22:50:22 -04:00
Kit Langton
5eae926846
add experimental provider auth HttpApi slice (#22389) 2026-04-16 02:07:42 +00:00
Kit Langton
cce05c1665
fix: clean up 49 unused variables, catch params, and stale imports (#22695) 2026-04-16 02:01:53 +00:00
Kit Langton
34213d4446
fix: delete 9 dead functions with zero callers (#22697) 2026-04-16 02:01:02 +00:00
Kit Langton
1d81335ab5
feat: unwrap Provider namespace + improved automation script (#22690) 2026-04-15 21:44:46 -04:00
Kit Langton
f7d4665e40
fix: resolve oxlint warnings — suppress false positives, remove unused imports (#22687) 2026-04-15 21:33:54 -04:00
Kit Langton
bbdbc107ae
feat: unwrap Config namespace to flat exports + barrel (#22689) 2026-04-15 21:26:24 -04:00
James Long
074ef032ee
feat(core): add fence to make all methods strongly consistent when syncing (#22679) 2026-04-15 21:04:37 -04:00
Kit Langton
3d6f90cb53
feat: add oxlint with correctness defaults (#22682) 2026-04-15 20:45:19 -04:00
Kit Langton
4dd0d1f67e
refactor(opencode): use AppFileSystem path helpers (#22637) 2026-04-15 19:36:30 -04:00
Kit Langton
6bed7d469d
feat(opencode): improve telemetry tracing and request spans (#22653) 2026-04-15 17:32:56 -04:00
Kit Langton
250e30bc7d
add experimental permission HttpApi slice (#22385) 2026-04-15 21:28:01 +00:00
Dax
be9432a893
shared package (#22626) 2026-04-15 14:26:20 +00:00
James Long
af20191d1c
feat(core): sync routes, refactor proxy, session restore, and more syncing (#22518) 2026-04-15 10:18:48 -04:00
Shoubhit Dash
467e5689ec feat(server): extract question handler factory 2026-04-14 20:55:41 -04:00
Shoubhit Dash
fba752a501 feat(server): extract question httpapi contract 2026-04-14 20:55:39 -04:00
Kit Langton
3cf7c7536b
fix(question): restore flat reply sdk shape (#22487) 2026-04-14 16:57:32 -04:00
Kit Langton
f2525a63c9
add experimental question HttpApi slice (#22357) 2026-04-14 19:43:49 +00:00
Kit Langton
68384613be
refactor(session): remove async facade exports (#22471) 2026-04-14 13:45:13 -04:00
Kit Langton
020c47a055
refactor(project): remove async facade exports (#22387) 2026-04-14 12:49:20 -04:00
Kit Langton
ad265797ab
refactor(share): remove session share async facade exports (#22386) 2026-04-14 12:38:11 -04:00
Kit Langton
36745caa2a
refactor(worktree): remove async facade exports (#22369) 2026-04-13 21:23:15 -04:00
Kit Langton
d199648aeb
refactor(permission): remove async facade exports (#22342) 2026-04-13 19:33:58 -04:00
James Long
b22add292c
refactor(core): publish sync events to global event stream (#22347) 2026-04-13 16:51:59 -04:00
Kit Langton
67aaecacac
refactor(session): remove revert async facade exports (#22339) 2026-04-13 16:16:13 -04:00
Kit Langton
dcbf11f41a
refactor(session): remove summary async facades (#22337) 2026-04-13 15:35:38 -04:00
Kit Langton
14ccff4037
refactor(agent): remove async facade exports (#22341) 2026-04-13 14:54:01 -04:00
Kit Langton
1dc69359d5
refactor(mcp): remove async facade exports (#22324) 2026-04-13 13:45:34 -04:00
James Long
bf50d1c028
feat(core): expose workspace adaptors to plugins (#21927) 2026-04-13 13:33:13 -04:00
Kit Langton
b8801dbd22
refactor(file): remove async facade exports (#22322) 2026-04-13 13:12:02 -04:00
Kit Langton
f7c6943817
refactor(config): remove async facade exports (#22325) 2026-04-13 13:11:05 -04:00
Kit Langton
21d7a85e76
refactor(lsp): remove async facade exports (#22321) 2026-04-13 12:47:52 -04:00
Kit Langton
663e798e76
refactor(provider): remove async facade exports (#22320) 2026-04-13 12:40:00 -04:00
Kit Langton
c22e34853d
refactor(auth): remove async auth facade exports (#22306) 2026-04-13 12:31:43 -04:00
Kit Langton
6825b0bbc7
refactor(pty): remove async facade exports (#22305) 2026-04-13 11:47:05 -04:00
Kit Langton
79cc15335e
fix: dispose e2e app runtime (#22316) 2026-04-13 11:36:56 -04:00
Kit Langton
ca6200121b
refactor: remove vcs async facade exports (#22304) 2026-04-13 11:22:20 -04:00
Kit Langton
7239b38b7f
refactor(skill): remove async facade exports (#22308) 2026-04-13 11:18:10 -04:00
Kit Langton
9ae8dc2d01
refactor: remove ToolRegistry runtime facade (#22307) 2026-04-13 11:09:32 -04:00
Brendan Allan
94f71f59a3
core: make InstanceBootstrap into an effect (#22274)
Co-authored-by: Kit Langton <kit.langton@gmail.com>
2026-04-13 10:16:40 -04:00
Kit Langton
6fdb8ab90d
refactor(file): add ripgrep search service (#22295) 2026-04-13 10:04:32 -04:00
Kit Langton
003010bdb6
refactor(question): destroy Question facade (#22092) 2026-04-11 20:57:01 -04:00
Kit Langton
1a509d62a0
refactor(session): destroy SessionRunState facade (#22064) 2026-04-11 20:01:52 -04:00
Tommy D. Rossi
d62ec7776e
feat: allow session permission updates (#22070) 2026-04-11 17:14:30 -05:00
Dax
ca5f086759
refactor(server): simplify router middleware with next() (#21720) 2026-04-11 16:55:17 -04:00
opencode-agent[bot]
c43591f8a2 chore: generate 2026-04-11 18:18:40 +00:00
Kit Langton
312f10f797
refactor(account): destroy Account facade (#22068) 2026-04-11 14:16:36 -04:00
Kit Langton
5e3dc80999
refactor: collapse command facade (#21981) 2026-04-10 23:52:12 -04:00
Kit Langton
03ce2e5288
refactor(installation): drop facade runtime wrappers (#21984) 2026-04-10 23:26:16 -04:00
Kit Langton
87e23abb10
refactor: remove ProviderAuth facade (#21983) 2026-04-10 23:25:43 -04:00
Kit Langton
f38f415bf0
refactor: collapse Format facade (#21980) 2026-04-10 23:18:54 -04:00
Kit Langton
f99812443c
refactor: destroy SessionStatus facade (#21968) 2026-04-10 22:16:53 -04:00
Kit Langton
a4c686025c
refactor: destroy Todo facade (#21962) 2026-04-10 21:47:28 -04:00
James Long
180ded6a27
rector(core,tui): handle workspace state in project context, add workspace status, improve ui (#21896) 2026-04-10 13:03:20 -04:00
James Long
42206da1f8
refactor(tui): switch to global events and start passing workspace param (#21719) 2026-04-10 10:47:27 -04:00
Kit Langton
16c60c9ee7
refactor(session): extract sharing orchestration (#21759) 2026-04-09 21:47:48 -04:00
Kit Langton
b2f621b897
refactor(session): inline init route orchestration (#21754) 2026-04-09 16:28:42 -04:00
Kit Langton
10441efad1
refactor(effect): extract session run state service (#21744) 2026-04-09 16:03:40 -04:00
Dax
bd53b651a3
refactor: fix tool call state handling and clean up imports (#21709) 2026-04-09 11:56:19 -04:00
Brendan Allan
ee23043d64
Remove CLI from electron app (#17803)
Co-authored-by: LukeParkerDev <10430890+Hona@users.noreply.github.com>
2026-04-09 13:18:46 +08:00
Aiden Cline
039c60170d
fix: ensure that /providers list and shell endpoints are correctly typed in sdk and openapi schema (#21543) 2026-04-08 12:56:15 -05:00
Dax
b7fab49b64
refactor(snapshot): store unified patches in file diffs (#21244)
Co-authored-by: Adam <2363879+adamdotdevin@users.noreply.github.com>
2026-04-07 19:48:23 -04:00
Dax
463318486f
core: refactor tool system to remove agent context from initialization (#21052) 2026-04-07 19:48:12 -04:00
James Long
37883a9f3a
refactor(core): add full http proxy and change workspace adaptor interface (#21239) 2026-04-06 23:19:55 -04:00
Dax
535343bf56
refactor(server): replace Bun serve with Hono node adapters (#18335)
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
Co-authored-by: Luke Parker <10430890+Hona@users.noreply.github.com>
Co-authored-by: Adam <2363879+adamdotdevin@users.noreply.github.com>
Co-authored-by: Brendan Allan <git@brendonovich.dev>
2026-04-06 13:24:55 -04:00
Kit Langton
c6ebc7ff7c
fix(tui): only show org switch affordances when useful (#21054) 2026-04-04 19:25:37 -04:00
Kit Langton
6ea108a03b
feat(tui): show console-managed providers (#20956) 2026-04-04 19:05:45 -04:00
Shoubhit Dash
35350b1d25
feat: restore git-backed review modes (#20845) 2026-04-03 09:54:57 -05:00
Kit Langton
954a6ca88e
refactor(session): effectify SessionSummary service (#20142) 2026-03-31 19:14:45 -04:00
Kit Langton
2ed756c72c
fix(session): restore busy route handling and add regression coverage (#20125) 2026-03-30 20:30:34 +00:00
Kit Langton
c5442d418d
refactor(session): effectify SessionPrompt service (#19483) 2026-03-30 20:06:51 +00:00
James Long
4b9660b211
refactor(core): move more responsibility to workspace routing (#19455) 2026-03-27 16:33:56 -04:00
James Long
a76be695c7
refactor(core): split out instance and route through workspaces (#19335) 2026-03-27 11:51:21 -04:00
Adam
c7760b433b
fix(app): more startup perf (#19288) 2026-03-26 13:41:22 -05:00
James Long
38450443b1
feat(core): remove workspace server, WorkspaceContext, start work towards better routing (#19316) 2026-03-26 12:30:26 -04:00
Dax
ec20efc11a
feat: embed WebUI in binary with proxy flags (#19299)
Co-authored-by: BlankParticle <blankparticle@gmail.com>
2026-03-26 14:43:56 +00:00
Shoubhit Dash
1b028d0632
revert: roll back git-backed review modes (#19295) 2026-03-26 10:14:57 -04:00
Shoubhit Dash
73e107250d
feat: restore git-backed review modes with effectful git service (#18900) 2026-03-25 21:09:53 +05:30
James Long
b0017bf1b9
feat(core): initial implementation of syncing (#17814) 2026-03-25 10:47:40 -04:00
Adam
1041ae91d1
Reapply "fix(app): startup efficiency"
This reverts commit 898456a25c.
2026-03-25 06:25:57 -05:00
Adam
898456a25c
Revert "fix(app): startup efficiency" 2026-03-25 06:25:05 -05:00
Adam
53d0b58ebf
fix(app): hash inline script for csp 2026-03-25 05:59:06 -05:00
Kit Langton
4647aa80ac
effectify Worktree service (#18679) 2026-03-24 20:26:21 -04:00
Kit Langton
539b01f20f
effectify Project service (#18808) 2026-03-24 14:04:22 -04:00
Ryan Skidmore
814a515a8a
fix: improve plugin system robustness — agent/command resolution, async errors, hook timing, two-phase init (#18280)
Co-authored-by: Aiden Cline <63023139+rekram1-node@users.noreply.github.com>
2026-03-24 12:50:55 -05:00
Dax
e2d03ce38c
feat: interactive update flow for non-patch releases (#18662) 2026-03-22 23:12:40 +00:00