AI 导读
opencode 将驱动 codemode 的运行时抽离为独立项目 psychoscript,这是一个不依赖 wasm 的轻量包,可直接执行 JS 并支持中途暂停/恢复。Rust 实现正在开发中,以便原生应用把 JS 当作脚本语言使用,详情见 https://psychoscript.com。
正文
we extracted the runtime powering codemode into a standalone project
it's a simple package (no wasm) that can directly execute js and pause/resume it mid execution
a rust implementation is in the works so native apps can use js as a scripting language
https://psychoscript.com
来源:OpenCode · x.com