TypeScript Agent Lifecycle
TypeScript Lifecycle
@band-ai/sdk 1.0.0 starts and stops in this order:
If a startup step fails, start() tears down what it built and rejects. A stop() during start() supersedes the start, which rejects with RuntimeStateError, and a start() during stop() rejects with RuntimeStateError. The TypeScript SDK takes no single-instance lock. To have Band refuse a second connection instead of replacing the first, pass linkOptions: { conflictPolicy: "reject" } to Agent.create().