Calcium-Ion/dsh-ptc-moejs ↗★ 6
dsh-ptc-moejs
PTC runtime for the DeepSeek Harness that runs model-written programs in moejs, a pure-Go JavaScript engine, inside a long-lived sidecar process under dsh's file sandbox 适合需要在安全隔离的沙箱环境中执行模型生成的JS代码的运行任务。
설치
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:Calcium-Ion/dsh-ptc-moejsConfiguration
Options go on the ptc-moejs row of the same patch:
- id: ptc-moejs
disabled: false
config:
memoryLimitMb: 1024
timeoutMs: 300000
| Option | Default | Meaning |
|---|---|---|
timeoutMs | 120000 | Deadline of a run in milliseconds when the model asks for none. Tool calls and approvals count toward it. |
maxTimeoutMs | 600000 | The longest deadline a run may ask for. |
memoryLimitMb | 512 | MiB a run may allocate over its whole life, garbage included. Past it the run stops with timeout and a message that names the budget. |
maxLogBytes | 16 MiB | Bytes 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. |
maxValueBytes | 16 MiB | Bytes of the returned value as JSON. A larger value fails the run with output-limit. Error messages are cut to this size. |
maxPendingCalls | 128 | Tool calls a run may have in flight at once. One more fails the run with protocol. |
maxFrameBytes | 64 MiB | The 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.