Util
Path:
codemode-gateway/src/providers/util.tsRelative: src/providers/util.tsSubproject: codemode-gatewayCategory: codemode-gatewayLines: 25Bytes: 1,065Imports: 0Exports: 1
Content Preview
- /**
- * Implementations for the `util` namespace: `util.echo(x)`, `util.now()`,
- * `util.rand()`. Contains only trivial, side-effect-free helpers — safe to
- * expose to untrusted LLM-written code.
- *
- * These functions execute on the HOST Worker (via the `ToolDispatcher` RPC
- * bridge), not in the sandbox — so they have host access to `crypto` and
- * `Date`, and no access to the sandbox's isolated globals. The sandbox calls
- * them through a `Proxy` that serializes args and deserializes results.