mirror of
https://github.com/nightly-labs/openbot.git
synced 2026-12-02 20:31:43 +08:00
* docs(agents): index the two missing directory guides * refactor(renderer): delete the unreachable CSS and add the scan that finds it * docs(agents): record the dead-CSS scan in check:ui * refactor(providers): collapse the three connect channels into one Codex, Claude and Grok each had their own IPC channel, preload binding, desktop API entry, main-process handler, service method, runtime method and renderer wrapper — seven parallel copies of the same flow, so adding a fourth provider meant editing all seven and every renderer call site carried a `provider === "codex" ? … : provider === "claude" ? … : …` chain. `app:connect-provider` takes the provider id instead. The CLI half of the sign-in moves to `BuiltInProviderDriver.cliLogin` — argv, env and timeout — which is the seam that already owns per-provider behaviour; a driver without one signs in over the app-server protocol, which is Codex and only Codex. `ProviderRuntime` keeps one map of pending CLI logins rather than two fields, and one map of bundled executables rather than three, so its login start, complete, fail and cancel paths exist once each instead of twice. Touches: desktop renderer, IPC contracts, `mock-openbot.ts`. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> * feat(preview): fill the three marketplace holes in the preview mock `skills`, `hostedSites` and `marketplaceAgents` were the only surfaces `mock-openbot.ts` answered with an empty list or a thrown "unavailable in preview mode", so Storybook and the preview showed the marketplace as permanently empty and `SkillsMarketplaceModal` — the largest renderer component at 1862 lines — had no story at all. The mock now serves marketplace skills, agents, submissions, installed skills and hosted sites from `preview/fixtures.ts`, and it holds state: installing a skill shows up in the installed list and uninstalling removes it, publishing a site adds it and deleting removes it, installing a marketplace agent adds the agent with its skills and its `marketplaceSource`. Every entry point a user can walk into has the way back out. `SkillsMarketplaceModal.stories.tsx` covers discover, skill detail, installed, my submissions and the agent marketplace, at two widths. Touches: desktop renderer. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> * fix(preview): install a marketplace agent in place, with its routines The mock always appended a new agent and ignored `input.agentId`, so a second install of the same listing produced a duplicate rather than an update. It also recorded invented `marketplaceSource.routineIds` without creating the routines, so Release Manager arrived claiming two managed routines while `listRoutines` returned none. It now mirrors `AgentMarketplaceService.install`: reuse and update the named agent, refuse one that came from a different listing, create the listing's routines with real ids, and drop the routines the previous version installed. `createRoutine` and the install path share one record builder. Touches: desktop renderer. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> * fix(review): read declared classes from selector preludes, merge skills on reinstall The dead-rule scan read `.name` from anywhere in a stylesheet, so `url("sprite.svg")` and a comment naming a deleted rule both looked like declarations and failed the check for a class nothing declares. Read them from selector preludes instead, and add both spellings to the fixture as neighbours the scan must leave alone. The preview mock's marketplace install replaced an agent's installed skills wholesale, dropping any the user installed themselves. Mirror AgentMarketplaceService: drop only the skills the previous install of this listing added and this one no longer carries. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5 <noreply@anthropic.com>