civaapple-alt/pi-cordis--packages-plugins-code-mode ↗★ 0

@pi-cordis/plugin-code-mode

为 Pi-Cordis 提供程序化工具调用(代码模式)能力,隔离执行代码。 适合需以代码批量调用工具的高级用户;可配置超时与工具白名单。

包名
@pi-cordis/plugin-code-mode
兼容性
待验证
Cordis 依赖范围
^4.0.1
版本
0.1.0
最近更新
2026年8月21日

安装

此插件尚未提供可验证的 bundle,或兼容性检查未通过。请先阅读仓库说明。 阅读完整 README ↗

Configuration

- name: '@pi-cordis/plugin-code-mode'
  config:
    timeoutMs: 30000              # Execution timeout in milliseconds (default: 30000)
    useWorkerThreads: true        # Use worker_threads for Isolate isolation (default: true)
    maskUnderlyingTools: true     # Mask underlying tools from model schema (default: true)
    injectFullDts: true           # Inject full .d.ts into system prompt (default: true)
    allowedTopLevelTools:         # Whitelist of unmasked top-level tools
      - run_code
      - ask_question
      - exit_plan_mode
      - session_handoff