Skip to main content

Usage

toolshed run <script>
ArgumentDescription
scriptTypeScript code or path to a .ts file

Environment variables

VariableDefaultDescription
TOOLSHED_SERVERhttp://localhost:3000Toolshed API server URL
TOOLSHED_RUNTIMElocalRuntime backend (local or vercel)
VERCEL_TEAM_IDRequired for Vercel runtime
VERCEL_PROJECT_IDRequired for Vercel runtime
VERCEL_TOKENRequired for Vercel runtime
TOOLSHED_SNAPSHOT_IDOptional Vercel snapshot ID

What works

  • Creates a runtime (local or Vercel) based on TOOLSHED_RUNTIME
  • Executes the provided script string
  • Prints the ExecutionResult as JSON

What’s not yet wired up

  • Loading config from ~/.toolshed/config.json
  • Fetching role and tool catalog from the server
  • Wiring invoke callbacks to the server’s token vending endpoint
  • Audit logging