pcc_trilobio_build_config
Generate a complete KERNEL_CONFIG JSON for a Trilobio (tcode-api) fleet controller. Wraps buildTrilobioConfig() from the @pcc/trilobio npm package. Returns a TrilobioKernelConfig with sensible defaults (pollIntervalMs=3000, maxScriptTimeoutSec=3600, allowArbitraryScripts=false). The result can be passed to pcc-node start via the KERNEL_CONFIG env var, or handed to setup_generate_config / setup_register_device for direct API-driven registration. Note: this is a TypeScript package helper (no HTTP call). For programmatic use, import { buildTrilobioConfig } from "@pcc/trilobio".
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | Fleet-controller URL on the LAN (host[:port], no trailing slash, no path) — e.g. http://192.168.1.50 | |
| apiKey | No | Trilobio fleet-controller API key (from the trilobot admin UI). Either apiKey OR username+password is required unless mockMode=true. | |
| deviceId | No | Logical device ID within the kernel (default: trilobio-fleet-01) | |
| kernelId | No | Kernel ID this device belongs to (auto-generated as kernel_trilobio_<timestamp> if omitted) | |
| mockMode | No | Bypass real HTTP and simulate runs. Use for CI / floor demos. Default: false. | |
| password | No | Fleet-controller account password (basic-auth mode only) | |
| username | No | Fleet-controller account username (basic-auth mode only) | |
| pollIntervalMs | No | Poll interval in ms for run status (range 500-60000). Default: 3000. | |
| tcodeApiVersion | No | Pinned tcode-api version on the fleet controller. Format: 'latest' or semver (e.g. 1.25.1). Default: latest. Surfaces in evidence bundles for reproducibility. | |
| mockRunDurationMs | No | Mock-mode simulated run duration in ms. Default: 2000. | |
| maxScriptTimeoutSec | No | Maximum allowed wall-clock seconds for a single tcode script (range 30-86400). Default: 3600. | |
| allowArbitraryScripts | No | Permit customer-supplied tcode-api Python scripts (true) or only curated protocol IDs (false). Default: false. Set true only for trusted-counterparty deployments. |