UNPKG

homebridge-aplvibe

Version:

Homebridge plugin for SleepMe devices using APL as core logic engine

30 lines 1.14 kB
"use strict"; const platform_1 = require("./platform"); /** * APLVibe Homebridge Plugin Entry Point * * This plugin demonstrates the APL Code Protocol for LLM-centric development. * * Architecture Overview: * - TypeScript layer: Minimal shim for Homebridge integration * - APL layer: All business logic, state management, and algorithms * * The APL engine (src/apl/core.apl) contains: * - Device discovery and management * - Temperature validation and conversion * - Request queuing with priority and rate limiting * - Schedule management for automated temperature changes * - State management with event emission * * This approach provides: * - Conciseness: APL's array operations reduce code complexity * - Clarity: Mathematical operations are more readable in APL * - Performance: Native array handling for queue and state operations * - Maintainability: All logic centralized in one APL file */ const PLUGIN_NAME = 'homebridge-aplvibe'; const PLATFORM_NAME = 'APLVibe'; module.exports = (api) => { api.registerPlatform(PLUGIN_NAME, PLATFORM_NAME, platform_1.APLVibePlatform); }; //# sourceMappingURL=index.js.map