Remove dead packages/sandbox, unused msgpack dep, duplicate npm alias

REC-121 / REC-019 (VoidBot part):

- Deleted packages/sandbox (policy-first sandbox scaffolding) and its
  root tsconfig.json project reference. Removed its two remaining doc
  mentions in README.md and docs/architecture/overview.md, including
  the two forward-looking roadmap lines that described expanding it
  ("Add real constrained sandbox execution...", "Expand sandbox
  execution from dry-run policy checks...") since there is no longer
  any scaffolding for them to expand.
- Removed the direct `@msgpack/msgpack` dependency from
  packages/core/package.json; health/CultCache code obtains
  MessagePack through CultLib instead.
- Removed the root npm script `swarm:dashboard`, a byte-identical
  duplicate of `swarm:render-dashboard`.

Updated package-lock.json by deleting it and running `npm install`
fresh (a `--package-lock-only` pass alone left stale entries for the
removed workspace and dependency). That also dropped @msgpack/msgpack's
now-unreferenced-by-core transitive optional deps
(@emnapi/*, @napi-rs/wasm-runtime, @snazzah/davey-*, @tybys/wasm-util);
vendor/cultcache-ts still declares its own @msgpack/msgpack dependency
independently and is unaffected.

Kill attempts that failed: none.
- `rg -n '@voidbot/sandbox|packages/sandbox' apps packages scripts
  --glob '!packages/sandbox/**'` -> no matches (repeated the census
  command against current HEAD).
- `rg -n '@msgpack/msgpack' packages/core/src` -> no matches.
- `rg -n 'swarm:dashboard\b'` outside its own definition -> no matches.
- Cross-repo: `rg -n '@voidbot/sandbox|packages/sandbox'` over all of
  F:/Projects (Grep tool, respects each repo's .gitignore) -> only
  this repo's own README/docs/tsconfig/package-lock, now all cleaned.

Checks run: initialized the vendor/cultcache-ts submodule (empty in a
fresh worktree, unrelated pre-existing gap), `npm install`, then
`npx tsc -b --pretty false` across the whole workspace -> clean, no
errors (a pre-init run showed 11 `Cannot find module 'cultcache-ts'`
errors, all from the uninitialized submodule, none related to this
change).

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
Meta Vens 2026-09-13 14:17:09 +02:00
commit 46d891b841
11 changed files with 0 additions and 143 deletions

View file

@ -5,7 +5,6 @@
"main": "dist/index.js",
"types": "dist/index.d.ts",
"dependencies": {
"@msgpack/msgpack": "^3.1.3",
"@voidbot/shared": "0.1.0",
"cultcache-ts": "file:../../vendor/cultcache-ts",
"pg": "^8.20.0",

View file

@ -1,10 +0,0 @@
{
"name": "@voidbot/sandbox",
"version": "0.1.0",
"private": true,
"main": "dist/index.js",
"types": "dist/index.d.ts",
"dependencies": {
"@voidbot/shared": "0.1.0"
}
}

View file

@ -1,3 +0,0 @@
export * from "./policy-runner";
export * from "./profiles";

View file

@ -1,59 +0,0 @@
import {
type SandboxCommandRequest,
type SandboxExecutionResult,
type SandboxProfileName,
} from "@voidbot/shared";
import { defaultSandboxProfiles } from "./profiles";
export class PolicySandboxRunner {
public getProfile(profileName: SandboxProfileName) {
return defaultSandboxProfiles[profileName];
}
public async run(request: SandboxCommandRequest): Promise<SandboxExecutionResult> {
const profile = this.getProfile(request.profile);
if (!profile.allowedCommands.includes(request.command)) {
return {
status: "denied",
stdout: "",
stderr: "",
exitCode: 1,
deniedReason: `Command "${request.command}" is not allowed for profile "${request.profile}".`,
dryRun: true,
};
}
if (request.networkAccess && !profile.networkAccess) {
return {
status: "denied",
stdout: "",
stderr: "",
exitCode: 1,
deniedReason: `Profile "${request.profile}" does not permit network access.`,
dryRun: true,
};
}
if (profile.requiresApproval && !request.approved) {
return {
status: "denied",
stdout: "",
stderr: "",
exitCode: 1,
deniedReason: `Profile "${request.profile}" requires explicit approval before execution.`,
dryRun: true,
};
}
return {
status: "planned",
stdout: "",
stderr: "",
exitCode: 0,
dryRun: true,
};
}
}

View file

@ -1,32 +0,0 @@
import { type SandboxProfile, type SandboxProfileName } from "@voidbot/shared";
export const defaultSandboxProfiles: Record<SandboxProfileName, SandboxProfile> = {
read_only_lookup: {
name: "read_only_lookup",
allowedCommands: ["lookup", "search_index"],
networkAccess: false,
timeoutMs: 5000,
requiresApproval: false,
},
rag_maintenance: {
name: "rag_maintenance",
allowedCommands: ["reindex_channel", "backfill_embeddings"],
networkAccess: false,
timeoutMs: 30000,
requiresApproval: true,
},
owner_workflow: {
name: "owner_workflow",
allowedCommands: ["prepare_manual_bundle", "publish_owner_reply"],
networkAccess: false,
timeoutMs: 30000,
requiresApproval: true,
},
public_low_risk: {
name: "public_low_risk",
allowedCommands: ["summarize_channel", "search_history", "search_sources"],
networkAccess: false,
timeoutMs: 10000,
requiresApproval: false,
},
};

View file

@ -1,17 +0,0 @@
{
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"composite": true,
"rootDir": "src",
"outDir": "dist"
},
"include": [
"src/**/*.ts"
],
"references": [
{
"path": "../shared"
}
]
}