The source code for this example is available on GitHub:
TypeScript SDK Example
TypeScript SDK Example (npm Consumer)
This example lives in the monorepo, but it intentionally uses the published npm package:agent-control npm version compatible with your server version (this example currently pins 0.2.0).
Prerequisites
- Node.js 20+
-
Agent Control server running (from repo root):
-
Optional API key (if server auth is enabled):
Run
What It Does
The script insrc/quickstart.ts performs:
- SDK init with server URL and optional API key
- health check request
- list controls request
- create control request
- set/get control data requests (regex evaluator example)
- cleanup delete of the created control