|
|
@@ -356,65 +356,6 @@ export interface Config {
|
|
|
|
|
|
Source: [`packages/client/hmr/src/index.ts:31`](../packages/client/hmr/src/index.ts)
|
|
|
|
|
|
-<a id="deepseek-aidsh-code-runtime-python"></a>
|
|
|
-
|
|
|
-## `@deepseek-ai/dsh-code-runtime-python`
|
|
|
-
|
|
|
-```ts config-catalog
|
|
|
-/** Plugin config: every cap, changeable from `cordis.yml` (no hardcoded tunables). */
|
|
|
-export interface Config {
|
|
|
- /**
|
|
|
- * RLIMIT_CPU in whole seconds (a positive integer — `setrlimit` in the child
|
|
|
- * rejects a float). The child sets the soft limit to `cpuSeconds` and the
|
|
|
- * hard limit to `cpuSeconds + 1`: the kernel delivers SIGXCPU at the soft
|
|
|
- * limit, which the host classifies as a `timeout`; the +1s hard limit is a
|
|
|
- * SIGKILL backstop for a program that traps SIGXCPU. Granularity is seconds —
|
|
|
- * a coarser counterpart to the worker backend's millisecond `computeMs`.
|
|
|
- */
|
|
|
- cpuSeconds?: number
|
|
|
- /** Wall-clock ceiling in milliseconds; backstops CPU time for programs awaiting a promise nobody resolves. */
|
|
|
- maxWallMs?: number
|
|
|
- /**
|
|
|
- * RLIMIT_AS in mebibytes; caps address space so a runaway allocation fails
|
|
|
- * cleanly. Not applied on Darwin, where the dyld shared cache mapped into
|
|
|
- * every process at exec exceeds any practical cap and the kernel rejects
|
|
|
- * the call; `cpuSeconds` and `maxWallMs` still bound the run there. Bounds
|
|
|
- * `maxLogBytes`/`maxValueBytes` at load on EVERY platform (this static check
|
|
|
- * runs on Darwin too, where only the runtime `setrlimit` is skipped): each
|
|
|
- * budget times a worst-case Unicode expansion must fit this byte count minus a
|
|
|
- * fixed interpreter baseline, so a near-budget output cannot breach the address
|
|
|
- * space during the child's build-and-encode.
|
|
|
- */
|
|
|
- addressSpaceMb?: number
|
|
|
- /**
|
|
|
- * Shared byte budget for captured log text (host-side ledger). Bounded at load
|
|
|
- * against `addressSpaceMb`: the child builds and encodes a near-budget entry
|
|
|
- * under RLIMIT_AS with several copies live at once, so this cap times the
|
|
|
- * worst-case Unicode expansion must fit the address space left after the
|
|
|
- * interpreter baseline (see `addressSpaceMb`) — a load-time rejection, not a
|
|
|
- * runtime clamp.
|
|
|
- */
|
|
|
- maxLogBytes?: number
|
|
|
- /**
|
|
|
- * Byte cap for the completion value. Bounded at load against `addressSpaceMb`
|
|
|
- * the same way `maxLogBytes` is: the child builds and encodes a near-budget
|
|
|
- * value under RLIMIT_AS with several copies live at once, so this cap times the
|
|
|
- * worst-case Unicode expansion must fit the address space left after the
|
|
|
- * interpreter baseline.
|
|
|
- */
|
|
|
- maxValueBytes?: number
|
|
|
- /** SIGTERM→SIGKILL grace period on kill, matching bash-local's default. */
|
|
|
- graceMs?: number
|
|
|
- /**
|
|
|
- * Absolute path or basename of the CPython interpreter to spawn. Resolved
|
|
|
- * through `PATH` when a basename is given.
|
|
|
- */
|
|
|
- pythonBin?: string
|
|
|
-}
|
|
|
-```
|
|
|
-
|
|
|
-Source: [`packages/code-runtime/code-runtime-python/src/index.ts:44`](../packages/code-runtime/code-runtime-python/src/index.ts)
|
|
|
-
|
|
|
<a id="deepseek-aidsh-code-runtime-worker-thread"></a>
|
|
|
|
|
|
## `@deepseek-ai/dsh-code-runtime-worker-thread`
|
|
|
@@ -596,6 +537,65 @@ export interface Config {
|
|
|
|
|
|
Source: [`packages/experimental/agent-team/src/types.ts:131`](../packages/experimental/agent-team/src/types.ts)
|
|
|
|
|
|
+<a id="deepseek-aidsh-experimental-code-runtime-python"></a>
|
|
|
+
|
|
|
+## `@deepseek-ai/dsh-experimental-code-runtime-python`
|
|
|
+
|
|
|
+```ts config-catalog
|
|
|
+/** Plugin config: every cap, changeable from `cordis.yml` (no hardcoded tunables). */
|
|
|
+export interface Config {
|
|
|
+ /**
|
|
|
+ * RLIMIT_CPU in whole seconds (a positive integer — `setrlimit` in the child
|
|
|
+ * rejects a float). The child sets the soft limit to `cpuSeconds` and the
|
|
|
+ * hard limit to `cpuSeconds + 1`: the kernel delivers SIGXCPU at the soft
|
|
|
+ * limit, which the host classifies as a `timeout`; the +1s hard limit is a
|
|
|
+ * SIGKILL backstop for a program that traps SIGXCPU. Granularity is seconds —
|
|
|
+ * a coarser counterpart to the worker backend's millisecond `computeMs`.
|
|
|
+ */
|
|
|
+ cpuSeconds?: number
|
|
|
+ /** Wall-clock ceiling in milliseconds; backstops CPU time for programs awaiting a promise nobody resolves. */
|
|
|
+ maxWallMs?: number
|
|
|
+ /**
|
|
|
+ * RLIMIT_AS in mebibytes; caps address space so a runaway allocation fails
|
|
|
+ * cleanly. Not applied on Darwin, where the dyld shared cache mapped into
|
|
|
+ * every process at exec exceeds any practical cap and the kernel rejects
|
|
|
+ * the call; `cpuSeconds` and `maxWallMs` still bound the run there. Bounds
|
|
|
+ * `maxLogBytes`/`maxValueBytes` at load on EVERY platform (this static check
|
|
|
+ * runs on Darwin too, where only the runtime `setrlimit` is skipped): each
|
|
|
+ * budget times a worst-case Unicode expansion must fit this byte count minus a
|
|
|
+ * fixed interpreter baseline, so a near-budget output cannot breach the address
|
|
|
+ * space during the child's build-and-encode.
|
|
|
+ */
|
|
|
+ addressSpaceMb?: number
|
|
|
+ /**
|
|
|
+ * Shared byte budget for captured log text (host-side ledger). Bounded at load
|
|
|
+ * against `addressSpaceMb`: the child builds and encodes a near-budget entry
|
|
|
+ * under RLIMIT_AS with several copies live at once, so this cap times the
|
|
|
+ * worst-case Unicode expansion must fit the address space left after the
|
|
|
+ * interpreter baseline (see `addressSpaceMb`) — a load-time rejection, not a
|
|
|
+ * runtime clamp.
|
|
|
+ */
|
|
|
+ maxLogBytes?: number
|
|
|
+ /**
|
|
|
+ * Byte cap for the completion value. Bounded at load against `addressSpaceMb`
|
|
|
+ * the same way `maxLogBytes` is: the child builds and encodes a near-budget
|
|
|
+ * value under RLIMIT_AS with several copies live at once, so this cap times the
|
|
|
+ * worst-case Unicode expansion must fit the address space left after the
|
|
|
+ * interpreter baseline.
|
|
|
+ */
|
|
|
+ maxValueBytes?: number
|
|
|
+ /** SIGTERM→SIGKILL grace period on kill, matching bash-local's default. */
|
|
|
+ graceMs?: number
|
|
|
+ /**
|
|
|
+ * Absolute path or basename of the CPython interpreter to spawn. Resolved
|
|
|
+ * through `PATH` when a basename is given.
|
|
|
+ */
|
|
|
+ pythonBin?: string
|
|
|
+}
|
|
|
+```
|
|
|
+
|
|
|
+Source: [`packages/experimental/code-runtime-python/src/index.ts:44`](../packages/experimental/code-runtime-python/src/index.ts)
|
|
|
+
|
|
|
<a id="deepseek-aidsh-experimental-inspector"></a>
|
|
|
|
|
|
## `@deepseek-ai/dsh-experimental-inspector`
|