Repository navigation
feat(app): the Bot agency, ready-made bots to add to a crew (G3) - #206
Merged
Merged
Conversation
A grid of the daemon's twelve roles with category filters and search, shown in a window opened by a button on the crew page and, for a crew with only its chief, on the page itself. Each card has Add to crew and Learn more; Learn more shows what the bot does, when to call it, who it pairs with and, under Details, what it is told. Adding uses catalog.add with the name and role in the owner's language and a second add gets 'Name 2'. Customize opens the new bot's details. Texts in en, pt-BR and es; a test checks every sheet in crates/botloftd/catalog has text in all three. Spec 26.5 updated to what was built.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
G3 of the bot catalog (spec 26.5): the Bot agency screen.
catalog.addwith the name and role in the owner's language; a second add of the same role becomes "Name 2". The card says the bot joined the crew and offers Customize, which opens the new bot's details.i18n/*/catalog.ts). A test readscrates/botloftd/catalog/*.tomland fails if a sheet has no text in any of the three languages; the fake daemon lists the same twelve ids.Existing tests
Three tests asserted that the last call was an archive or delete. A crew that becomes empty now also loads the agency, so they ignore
catalog.list(App.test.tsx,delete.test.tsx,botMenu.test.tsx).Tests
pnpm check(tsc, biome, 445 tests), 11 new. Also checked in the browser preview against the fake daemon (pt-BR, dark theme): the grid, Learn more, adding, and the invitation on a new crew; no console errors.Manual test (real Claude Code)
Create each of the 12 bots from the agency and give each a typical task (for example: Developer fixes a small bug, Researcher answers a question with sources, Designer makes a landing page, Customer Support drafts a reply from a given FAQ). Check the bot follows its sheet: asks before risky steps, hands back in the shape the sheet describes and does not act outside its role.
Notes
Independent of #205 (G2, chief tools); no conflicts expected.