Commit graph

44 commits

Author SHA1 Message Date
Aiden Cline
9fda73df47 fix(codemode): share memory between typed arrays and ArrayBuffer
Add ArrayBuffer, DataView and the typed array family (Int8, Uint8,
Uint8Clamped, Int16, Uint16, Int32, Uint32, Float32, Float64) on a shared
%TypedArray%. A typed array's buffer is a real ArrayBuffer, and views over
it (typed arrays, subarray, DataView, Buffer.from(arrayBuffer)) share its
memory, including across snapshots. Binary values cross extensions as
copies of their own kind and are rejected with a hint at tools and in
results.
2026-11-18 17:09:06 +00:00
Aiden Cline
9cfff5f24d
feat(codemode): let an extension name the modules that load its globals (#64516) 2026-11-17 16:59:36 -06:00
Aiden Cline
e92fbcfba1
feat(codemode): let host functions cross back to the host and let globals be constructible (#64472) 2026-11-17 15:11:40 -06:00
James Long
b9029e64a0
refactor(codemode): split the language layer from Code Mode (#64487) 2026-11-17 15:21:51 -05:00
Aiden Cline
042badd23f
feat(codemode): let a synchronous global block on an Effect (#64363) 2026-11-16 23:54:45 -06:00
Aiden Cline
df46f6931d
fix(codemode): accept a plain string query in search (#64347) 2026-11-16 21:57:07 -06:00
Aiden Cline
e6f21f95cd
revert(core): restore tool dispatch before nested repair (#63630) 2026-11-13 00:06:23 +00:00
Aiden Cline
c80548e800
fix(core): honor plugin tool repairs in Code Mode (#63444) 2026-11-12 17:44:07 -06:00
James Long
a73657f3f9
refactor(codemode): flatten the VM into src and remove two-engine leftovers (#63377) 2026-11-12 13:39:15 -05:00
James Long
72616be4db
refactor(codemode): remove the legacy interpreter; the VM is the only engine (#62642) 2026-11-11 11:25:37 -05:00
Aiden Cline
53f2d631df
feat(core): use freeform tool input on models that support it (#61703) 2026-11-10 15:15:25 -06:00
James Long
c33eaa170e
feat(codemode): idempotent and durable tools, and safe suspension on the VM (#62459)
Some checks failed
bot-nix-hashes / hash (blacksmith-4vcpu-ubuntu-2404, x86_64-linux) (push) Waiting to run
bot-nix-hashes / hash (blacksmith-4vcpu-ubuntu-2404-arm, aarch64-linux) (push) Waiting to run
bot-nix-hashes / hash (macos-latest, aarch64-darwin) (push) Waiting to run
bot-nix-hashes / compute (push) Blocked by required conditions
bot-nix-hashes / publish (push) Blocked by required conditions
check-nix / nix-eval (push) Waiting to run
check-test / affected packages (push) Waiting to run
check-test / unit (linux) (push) Waiting to run
check-test / unit (windows) (push) Waiting to run
check-test / build (linux) (push) Waiting to run
check-test / build (windows) (push) Waiting to run
check-test / e2e (, ) (push) Blocked by required conditions
check-test / e2e (linux) (push) Blocked by required conditions
check-test / e2e (windows) (push) Blocked by required conditions
check / typecheck (push) Waiting to run
deploy-files / deploy (push) Waiting to run
deploy-site / deploy (push) Waiting to run
deploy / deploy (push) Waiting to run
bot-docs-locale / sync-locales (push) Has been cancelled
Process daemon / Miri (callback ownership) (push) Has been cancelled
Process daemon / Core (macos-15) (push) Has been cancelled
Process daemon / Core (ubuntu-22.04) (push) Has been cancelled
Process daemon / Windows (arm64) (push) Has been cancelled
Process daemon / Windows (x64) (push) Has been cancelled
2026-11-07 13:06:40 -06:00
James Long
33f94fce96
feat(codemode): expose the VM's suspendable program API (#62413) 2026-11-06 16:44:13 -06:00
James Long
ffde0f7d47
feat(codemode): add a bytecode VM engine behind CodeMode.make({ engine: "vm" }) (#62357) 2026-11-06 11:37:45 -06:00
Aiden Cline
adcfc83d19
feat(codemode): let programs import globals by Node module name (#61151) 2026-11-01 21:52:57 -06:00
Aiden Cline
1c49e51303
fix(codemode): run extension before hooks before the host call (#60024) 2026-10-28 16:47:57 -05:00
Aiden Cline
711802c3a3
fix(codemode): let search be awaited or chained like a Promise (#59981) 2026-10-28 15:31:19 -05:00
Aiden Cline
a882cf98a0
feat(codemode): let extension globals return Effects (#59948) 2026-10-28 13:56:18 -05:00
Aiden Cline
cc3ce20ab4
feat(codemode): add the Headers built-in (#49280) 2026-09-19 12:35:14 -05: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
8b09f6415a
refactor(codemode): export runtime value classes as Values (#48000) 2026-09-08 12:11:34 -05:00
Dax
a5312e169b
refactor(packages): migrate to the opencode npm scope (#47852) 2026-09-07 17:19:33 -04:00
Aiden Cline
d04257eeb4
feat(codemode): add inline namespace metadata (#46464) 2026-08-31 16:01:14 -05:00
Aiden Cline
56f2559798
fix(codemode): report original tool errors (#45820) 2026-08-27 22:54:36 -05:00
Aiden Cline
4605308be2
feat(core): render CodeMode catalog deltas from structured snapshots (#38183) 2026-07-24 10:20:26 -05:00
Kit Langton
79c1544072
refactor(tools): unify tool APIs and result handling (#38367) 2026-07-23 21:13:31 +00:00
Aiden Cline
d5669ca934
docs(codemode): streamline README (#37769) 2026-07-19 10:18:24 -05:00
Aiden Cline
87d5b27668
feat(codemode): project OpenAPI schema directions (#37361) 2026-07-17 14:24:50 -05:00
Aiden Cline
22334b94c8
fix(codemode): canonicalize dotted tool paths (#36994) 2026-07-15 11:09:09 -05:00
Aiden Cline
563f6a65de
refactor(codemode): simplify tools types (#36941) 2026-07-14 18:40:43 -05:00
Aiden Cline
3c60470269
refactor(codemode): remove tool concurrency cap (#36545) 2026-07-12 16:07:53 -05:00
Aiden Cline
75e8fd4da2
test(codemode): drop leftover $codemode references (#36451) 2026-07-11 14:15:11 -05:00
Aiden Cline
6eeeb4bfcf
feat(codemode): make search a global built-in and rewrite README (#36450) 2026-07-11 13:43:33 -05:00
Aiden Cline
39cceeb143
fix(codemode): return promises from combinators (#35782) 2026-07-10 00:33:21 -05:00
Aiden Cline
389c866cac
docs(codemode): add interpreter doc (#36026) 2026-07-09 00:42:48 -05:00
Aiden Cline
1fb2837fd3
feat(codemode): expand numeric standard library (#35749) 2026-07-07 12:11:57 -05:00
opencode-agent[bot]
d0733f83bf
fix(codemode): return final top-level expression (#35759)
Co-authored-by: Kit Langton <kit.langton@gmail.com>
2026-07-07 11:44:50 -05:00
Kit Langton
bb6ee0a5cc
docs(codemode): document loop syntax (#35631) 2026-07-06 19:52:39 -04:00
Aiden Cline
5b2d90a441
feat(codemode): expand standard library support (#35566) 2026-07-06 10:36:02 -05:00
Aiden Cline
7f008df79d
fix(codemode): improve prompting (#35509) 2026-07-06 09:19:04 -05:00
Aiden Cline
f9d1d3b259
refactor(codemode): namespace public types (#35435) 2026-07-05 11:51:50 -05:00
Aiden Cline
f950497173
refactor(codemode): remove generic agent tool (#35420) 2026-07-05 10:41:21 -05:00
Aiden Cline
b8efb33cde
feat(codemode): add OpenAPI tool adapter (#35362) 2026-07-04 16:28:11 -05:00
Aiden Cline
12d9f4b29b
feat(codemode): add confined execution package (#35118)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-07-03 10:57:16 -05:00