Repository navigation
v0.1.0
First release
The shared OpenCode sidebar frame that CortexKit plugins draw their panels with, moved out of @cortexkit/common-auth/quota-sidebar. A plugin without quota accounts can now use it without depending on the auth library.
- Components:
SidebarFrame,SidebarSection,SidebarStatRowandSidebarTextRow, with the same look and behaviour as the frame in common-auth 0.33 through 0.42. - One API difference from common-auth's frame: an
AccountViewtakes three values the plugin computes (hasQuota,collapsedQuotaTextandquotaAge) instead of a projected quota. The package formats no quota itself. - Auth plugins are unchanged: they keep using
@cortexkit/common-auth/quota-sidebar. A later common-auth release turns that subpath into a thin layer over this package, with the same exports and props. - Compile it yourself: the package ships TSX source and declarations. Compile it into your plugin's TUI output with the OpenTUI Solid transform, and bind
@opentui/core,@opentui/solidandsolid-jsto the host's runtime. A second Solid copy, or the source loaded uncompiled fromnode_modules, renders once and then stops updating. - Peers:
@opentui/coreand@opentui/solid>=0.4.5,solid-js>=1.9.12 <2. The tests also run against OpenTUI 0.4.5 and 0.5.11.