DeepSHPlugins
sandbox-mxc 專案預覽
GITHUB / COMMUNITY PROJECT

sandbox-mxc

工具與整合TypeScript

MXC 沙盒 provider(獨立外部 bundle):從 DSH feat-mxc 實現中提取——main 分支為 registry-backed provider,feat-mxc-vendor-sdk 分支攜帶固定 SDK 與原生執行器,支援離線打包安裝。

2 Starsomdsh-dev 更新時間 2026-08-30
訪問 GitHub 倉庫
sandbox-mxc 專案預覽

專案介紹

中文

MXC 沙盒 provider(獨立外部 bundle):從 DSH feat-mxc 實現中提取——main 分支為 registry-backed provider,feat-mxc-vendor-sdk 分支攜帶固定 SDK 與原生執行器,支援離線打包安裝。

English

The MXC sandbox provider (standalone external bundle), extracted from DSH's feat-mxc — the main branch is registry-backed; feat-mxc-vendor-sdk carries a pinned SDK and native executor for offline packaged installs.

專案資訊與收錄訊號

快照 2026-09-11
作者 / 組織
omdsh-dev
倉庫
omdsh-dev/sandbox-mxc
GitHub Stars
2
Forks
1
開發語言
TypeScript
許可證
未記錄
最近推送
2026-08-30
Manifest
資料中檢測到宣告

公開倉庫不自動等於可商用;許可證與當前相容性以原專案文件為準。Manifest 和資料評分不構成安裝安全認證。

資料評分

55/ 100
維護活躍
93
文件與實用資訊
50
生態關注度
23
安裝便捷訊號
100
專案宣告訊號
80

近 12 天仍在更新;關注度尚低(2);標準命令一鍵安裝。

評分來自已有資料快照的五維模型,僅作瀏覽參考,不是實際使用評測或安全檢測結論。

安裝與使用

所有專案資料與許可均以對應 GitHub 倉庫為準。

dsh plugin add github:omdsh-dev/sandbox-mxc

複製命令不會自動執行。請先閱讀倉庫文件,確認環境要求與許可證。

專案截圖

倉庫 README

GitHub 原文

已儲存的倉庫文件快照;文件抓取時間未記錄,可能與上方目錄介紹處於不同版本。安裝前請核對當前倉庫說明。

儲存庫檔案保留原文,指令與授權文字不作自動改寫。

@deepseek-ai/dsh-sandbox-mxc

English | 中文

A Stent sidecar that runs the DSH bash, PowerShell, and persistent-terminal payloads through MXC without modifying DeepSeek Harness source files. The package is an explicit opt-in bundle: DSH keeps ownership of ctx.sandbox, subprocess I/O, deadlines, signals, terminal sessions, and teardown; Stent supplies the controlled load-time hooks that replace only the consumer call paths.

Package surface

package.json              # publishable bundle and public dependencies
cordis.patch.yml          # row plus config.stent.patches descriptors
src/stent-entry.ts        # named Stent function plugin: name/inject/Config/apply
src/stent-handlers.ts     # descriptors and lifecycle-safe handlers
src/index.ts              # MXC policy compiler and compatibility provider
src/invariant.ts          # package invariant companion
tests/                    # policy, provider, hook, and publish-path tests
legacy/                   # historical host patch, never applied by this bundle

The package root is the Stent function plugin and deliberately has no default export. The compatibility provider and policy compiler are also available from @deepseek-ai/dsh-sandbox-mxc/provider; new profiles should load the package root through the bundle row.

The MXC runtime is the public @omdsh-dev/mxc-sdk 0.7.0 GitHub Release asset:

https://github.com/omdsh-dev/sandbox-mxc/releases/download/v0.7.0/omdsh-dev-mxc-sdk-0.7.0.tgz
sha256: ffd9a83b9f6a509ee99a59e60ab6bd68889c106d5d8f14d1fa402efd157e8c72

The package keeps the immutable v0.7.0 release URL in dependencies and lists @omdsh-dev/mxc-sdk in bundleDependencies. npm pack therefore places the SDK, its native executors, and its denial-capture assets under node_modules/@omdsh-dev/mxc-sdk inside the published tarball; consumers do not need to resolve the GitHub URL again.

Stent bundle behavior

The row is disabled in ordinary profiles. stent-dsh reads the descriptors under config.stent.patches, installs transformations before target modules load, and enables the row only for the Stent composition:

- id: sandbox-mxc
  name: '@deepseek-ai/dsh-sandbox-mxc'
  disabled: true
  config:
    enabled: true
    useResultEnvelope: true
    stent:
      patches:
        # The complete descriptor list is shipped in cordis.patch.yml.

Handlers cover the existing public seams:

  • foreground and background @deepseek-ai/dsh-bash-sandbox calls;
  • foreground and background @deepseek-ai/dsh-pwsh-sandbox calls;
  • process settlement hooks in the local bash and PowerShell executors;
  • terminal-bash backend creation immediately before the local terminal primitive spawns;
  • dsh-subprocess-local.spawnTerminal argument replacement;
  • @deepseek-ai/dsh-sandbox-local.confine terminal-only bypass, preventing the original terminal path from wrapping the MXC launch a second time.

Each confined call prepares one MXC controller with exact argv, cwd, and the scrubbed-plus-explicit environment. The controller settles from the versioned result envelope and is disposed exactly once. The host subprocess or terminal service still owns the process tree, timeout, signal, stdio, and quiescence operations. danger-full-access delegates to the original host call and never invokes MXC. Any MXC qualification or runner failure raises SANDBOX_UNAVAILABLE; it never falls back to an unconfined payload.

The workspace uses pnpm's nodeLinker: hoisted because pnpm cannot materialize bundleDependencies from an isolated linker. Keep this setting for development installs. Use npm pack/npm publish for the final bundled artifact; the current pnpm packer normalizes nested bundled executable modes.

Development

pnpm install
pnpm run typecheck
pnpm run build
pnpm test
pnpm run prepare
npm pack --dry-run
pnpm run test:e2e

The real-executor suites self-skip when the platform-specific binary is unavailable. The release asset contains the native executor and denial-capture files; no GitHub Packages credentials or .npmrc scope override is required.

Model Experience

This package adds no model-visible prompt, tool, or result text. Existing DSH bash and terminal consumers retain their rendering and error semantics; the sandbox seam owns the SANDBOX_UNAVAILABLE diagnostic.

KV Cache effect

No direct invalidation. The existing consumer owns any request-prefix changes.

Known Limitations and Deferred Work

  • MXC qualification requires a usable Bubblewrap/user-namespace host on Linux; macOS and Windows acceptance remains platform-dependent, and Windows Tier 3 requires explicit host DACL permission.
  • The SDK release is Public Preview. Its policy schema and native backends may change in a later SDK minor version; upgrading requires a deliberate dependency and policy-version review.
  • The Stent descriptors are optional because DSH profiles choose bash or PowerShell by platform. A profile that enables the bundle without loading a matching consumer does not receive a hook; the host must still compose a supported sandbox consumer.
  • legacy/mxc-host-integration.patch is historical evidence only. It is not read, applied, or required by the Stent bundle.

使用前核對

安裝步驟、相容版本與授權範圍以原專案當前文件為準。Stars 和評分是快照中的導航訊號。

安裝與排錯 · 專案問題反饋

同類專案