LukeParkerDev
1919a336cf
perf(codemode): load the TypeScript compiler on first transpile
...
#transpile imported typescript at module level, so every process that
imports @opencode/core (the service, the CLI, the TUI) evaluated the
~11 MiB compiler at startup even though it is only needed when a Code
Mode program is transpiled. Import it inside transpile() instead; both
runtime variants become async and parseProgram runs through
Effect.promise, so a transpile diagnostic still surfaces as the same
PendingThrow defect.
Compiled CLI, serve --service, median of 3: RSS after boot 170.2 -> 158.7
MB; registration ~8 ms earlier.
2026-09-19 00:13:48 +10:00
opencode
c076066c33
sync release versions for v2.0.8
2026-09-18 09:12:33 +00:00
opencode-agent[bot] and rekram1-node
b2e3569add
test(codemode): isolate OpenAPI fixtures ( #49667 )
...
Co-authored-by: rekram1-node <[email protected] >
2026-09-17 23:01:36 -05:00
opencode
0fa881efd0
sync release versions for v2.0.7
2026-09-17 19:29:59 +00:00
opencode
040d2ffb48
sync release versions for v2.0.6
2026-09-17 11:17:33 +00:00
Dax Raad
ab3566ab82
feat(server): expose server info endpoint
2026-09-16 21:43:58 -04:00
Aiden Cline
d797722187
feat(codemode): carry cause and own data across the error boundary ( #49390 )
2026-09-16 15:58:05 -05:00
opencode
4d73b40e59
sync release versions for v2.0.5
2026-09-16 16:35:05 +00:00
Dax
5379a2dfe0
fix(codemode): reuse tool discovery catalogs
...
from OpenCode
2026-09-16 00:52:00 -04:00
opencode
7c3c50bac2
sync release versions for v2.0.4
2026-09-16 04:41:12 +00:00
Aiden Cline
c57733a647
refactor(codemode): before/after hooks for tool and extension calls ( #49242 )
2026-09-15 23:05:06 -05:00
Aiden Cline
fa3721fad6
fix(codemode): treat tools.search as the built-in search ( #49249 )
2026-09-15 19:08:51 -05:00
Aiden Cline
4cd6093e31
fix(codemode): keep one RegExp lastIndex ( #49220 )
2026-09-15 15:01:08 -05:00
Aiden Cline
d9dfc5c1d6
refactor(codemode): extensions are host functions only ( #49196 )
2026-09-15 13:42:51 -05:00
Aiden Cline
0b15abbf9a
refactor(codemode): make the host boundary JSON.stringify plus a short table ( #49128 )
2026-09-15 01:23:20 -05:00
Aiden Cline
9ae714d49d
feat(codemode): add Uint8Array, drop the Program prefix, and give built-ins one context ( #49076 )
2026-09-14 23:35:48 -05:00
Aiden Cline
00a2fc97f7
feat(codemode): cross Set, RegExp, and URLSearchParams to the host in a useful form ( #49065 )
2026-09-14 17:32:42 -05:00
Aiden Cline
a54f2c12a8
test(codemode): follow the experimental instruction route rename ( #49067 )
2026-09-14 17:32:12 -05:00
Aiden Cline
2b855fccb2
test(codemode): drop the slow split and matchAll cap cases ( #49051 )
2026-09-14 16:24:27 -05:00
Aiden Cline
76594882b4
fix(codemode): bound what one built-in can build with string, array, and promise caps ( #49019 )
2026-09-14 12:54:02 -05:00
Aiden Cline
3468a092c9
feat(codemode): expose host classes and functions through extensions ( #48941 )
2026-09-14 12:29:00 -05:00
Aiden Cline
3045156fa6
fix(codemode): strip __proto__ keys at host object boundaries ( #48926 )
2026-09-14 00:49:42 -05:00
Aiden Cline
48875190ef
feat(codemode): fail runaway recursion with a RangeError at 10000 nested calls ( #48891 )
2026-09-13 21:04:36 -05:00
Aiden Cline
5d3019e5a1
refactor(codemode): materialize interpreter failures once and locate them at the call boundary ( #48770 )
2026-09-13 20:19:31 -05:00
Dax Raad
487e1bd76e
refactor(protocol): remove workspace API
2026-09-13 17:39:23 -04:00
Dax
1eeaaab7a6
refactor: restrict reflective access ( #48860 )
2026-09-13 17:08:43 -04:00
Dax Raad
13453f2da8
refactor(protocol): consolidate server status
2026-09-13 16:56:22 -04:00
Dax Raad
e16c56fe8b
refactor(protocol): remove v2 operation prefixes
2026-09-13 16:31:46 -04:00
Dax Raad
42ff564913
refactor(protocol): remove current project endpoint
2026-09-13 16:20:43 -04:00
opencode
c5aa7d7e34
sync release versions for v2.0.3
2026-09-12 23:48:02 +00:00
opencode
7c5a4d01aa
sync release versions for v2.0.2
2026-09-12 07:57:20 +00:00
Aiden Cline
6add96698e
refactor(codemode): move built-ins onto real prototypes with native function objects ( #48608 )
2026-09-12 02:19:30 -05:00
opencode
2253d4c31d
sync release versions for v2.0.1
2026-09-12 05:01:52 +00:00
Aiden Cline
b2e6e764a8
refactor(codemode): give errors a real prototype chain and JS error types ( #48559 )
2026-09-11 21:45:29 -05:00
Dax
654f411a5b
feat(release): isolate v2 stable publishing ( #48546 )
2026-09-11 15:50:35 -04:00
Aiden Cline
68b862da49
refactor(codemode): make functions program objects with name and length ( #48541 )
2026-09-11 14:50:07 -05:00
Aiden Cline
10ae321bf3
refactor(codemode): give programs their own objects and arrays ( #48527 )
2026-09-11 13:36:35 -05:00
Aiden Cline
4c34ee5eab
test(codemode): run test262 files verbatim from a local checkout ( #48446 )
2026-09-11 10:40:02 -05:00
Aiden Cline
181428a2f3
fix(codemode): use Bun's wording for the missing atob/btoa argument ( #48381 )
2026-09-10 20:08:36 -05:00
Aiden Cline
f3ef84556a
feat(codemode): add atob, btoa, and crypto.randomUUID ( #48290 )
2026-09-10 01:21:41 -05:00
Aiden Cline
08ff21179c
fix(codemode): hoist switch-case functions and memoize var names ( #48287 )
2026-09-10 00:42:08 -05:00
Aiden Cline
98a36fb1a4
feat(codemode): hoist var to function scope ( #48284 )
2026-09-10 00:27:58 -05:00
Aiden Cline
e22cd0a585
refactor(codemode): collapse repeated loop, promise, and Object shapes ( #48283 )
2026-09-10 00:02:58 -05:00
Aiden Cline
1452aadc87
feat(codemode): add substr, well-formed, and Date string methods ( #48275 )
2026-09-09 23:29:34 -05:00
Aiden Cline
5ec7dd968c
fix(codemode): coerce enumeration sources like JS ToObject ( #48257 )
2026-09-09 22:24:55 -05:00
Aiden Cline
bdb66747e7
feat(codemode): resolve constructor to the owning built-in ( #48233 )
2026-09-09 20:14:29 -05:00
Aiden Cline
50ed7c41ef
refactor(codemode): treat prototype-named keys as ordinary data ( #48218 )
2026-09-09 16:54:55 -05:00
Aiden Cline
7f2510c5ca
fix(codemode): name the received value in data diagnostics and document intentional gaps ( #48211 )
2026-09-09 14:48:51 -05:00
Aiden Cline
85dff53a1f
fix(codemode): label supported and unsupported syntax in the hint ( #48200 )
2026-09-09 12:33:22 -05:00
Aiden Cline
297019e321
fix(codemode): report non-constructible new callees as TypeError ( #48083 )
2026-09-09 12:22:44 -05:00