Calcium-Ion/dsh-ptc-moejs ↗★ 6

dsh-ptc-moejs

在纯Go的JS引擎沙箱中运行模型编写的程序 适合需要在安全隔离的沙箱环境中执行模型生成的JS代码的运行任务。

套件
dsh-ptc-moejs
相容性
待驗證
Harness 依賴範圍
>=0.2.1-rc.2 <0.3.0
Cordis 依賴範圍
~4.0.5
版本
0.1.3
授權
MIT
最近更新
2026年10月23日

安裝

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:Calcium-Ion/dsh-ptc-moejs

Configuration

Options go on the ptc-moejs row of the same patch:

- id: ptc-moejs
  disabled: false
  config:
    memoryLimitMb: 1024
    timeoutMs: 300000
OptionDefaultMeaning
timeoutMs120000Deadline of a run in milliseconds when the model asks for none. Tool calls and approvals count toward it.
maxTimeoutMs600000The longest deadline a run may ask for.
memoryLimitMb512MiB a run may allocate over its whole life, garbage included. Past it the run stops with timeout and a message that names the budget.
maxLogBytes16 MiBBytes of console output a run keeps, counted as the JSON array dsh stores. Output past it is dropped, a marker line ends the logs, and the run goes on.
maxValueBytes16 MiBBytes of the returned value as JSON. A larger value fails the run with output-limit. Error messages are cut to this size.
maxPendingCalls128Tool calls a run may have in flight at once. One more fails the run with protocol.
maxFrameBytes64 MiBThe largest message between dsh and the sidecar: a program, the arguments of a tool call or one tool result. A larger tool result reaches the program as a rejected call.

The deadline defaults follow dsh's Node runtime. dsh spills tool results longer than 12,500 tokens to a file, so the log and value budgets are limits on memory use.