@withpotter/behaviors — module reference
HTTP routes this module mounts, plus its internal use-cases, entities, and repositories. The exhaustive request/response contract is the engine’s OpenAPI document at /docs; the layered structure below follows the package internal architecture.
HTTP routes
Behaviors /behaviors
| Method | Path | Auth | Description |
|---|---|---|---|
GET | /behaviors | — | List all available behaviors |
GET | /behaviors/:id | — | Get a single behavior by ID |
Internals
Use-cases
Application operations. Each is a single-purpose class with one execute() method.
| Use-case | Signature |
|---|---|
GetBehaviorUseCase | execute(id: string): BehaviorDefinition |
ListBehaviorsUseCase | execute(): BehaviorDefinition[] |
Generated from the module’s source. Routes are relative to the engine root
(default http://localhost:3001). For full request/response schemas use the live
OpenAPI document.