Artifact 64b292ebc1fdfe05d124af95c37a827d8bb23ec988b9086b70bd986c4f444712:
- File
src/listings.h
— part of check-in
[8f2d30d39e]
at
2026-11-22 20:18:02
on branch keel-rpc
— Cut the RPC command registry seam
Components register RPC commands (name, help, flags, answer) and main.c wires them; rpc.c dispatches by name without including catalog.h, compact.h, prompts.h or skills.h. get_available_models and get_commands move to src/listings.c; rewind uses the new call shape. Whether compaction is automatic and the token estimate come through the context policy (automatic, tokens). Allowance 29 -> 25, stubs 29 -> 20. (user: pi-c-agent, size: 432) [annotate] [blame] [check-ins using] [more...]
/* Listings (listings.c): the RPC commands that list what a client can pick * from, answered through the RPC command registry (rpc.h): Pi's * get_available_models, from the model catalog and the models file, and * get_commands, the prompt templates and skills. */ #ifndef PIC_LISTINGS_H #define PIC_LISTINGS_H #include "rpc.h" extern const pic_rpc_command pic_models_rpc; extern const pic_rpc_command pic_commands_rpc; #endif