Skip to content

v0.1.0

Choose a tag to compare

@github-actions github-actions released this 08 Nov 18:16
· 10 commits to main since this release

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, SidebarStatRow and SidebarTextRow, 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 AccountView takes three values the plugin computes (hasQuota, collapsedQuotaText and quotaAge) 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/solid and solid-js to the host's runtime. A second Solid copy, or the source loaded uncompiled from node_modules, renders once and then stops updating.
  • Peers: @opentui/core and @opentui/solid >=0.4.5, solid-js >=1.9.12 <2. The tests also run against OpenTUI 0.4.5 and 0.5.11.