Skip to content

3.10.0 — guide and global-search

Choose a tag to compare

@cliftonc cliftonc released this 10 Nov 07:24
· 37 commits to main since this release
3.10.0
d171841

Two new plugins, both requiring kit 0.31.0.

guide

First release of guide: an in-app user guide about the app itself, written by the developer's
coding agent and kept in sync with the code by a Claude Code Stop hook.

  • Content is the host's: docs/guide/ (a guide.config.json plus markdown pages with
    audience, sources and verified frontmatter), seeded once and never overwritten. The
    guide skill builds it into apps/web/src/host/guide/content.generated.ts; a config test fails
    the gate while that module is stale.
  • guide.sync (a daily cron, and a lazy check on every /api/guide request) indexes one PLATFORM
    knowledge document per page section — sources guide:member and guide:admin — and prunes the
    rest. Embeddings are required; without them admins see a banner and search is keyword-only.
  • /guide: a three-pane reader with search and "Ask the Guide" (AG-UI, search_guide only,
    citations as CUSTOM guide.answer); a ? header button and ? key open Ask from any screen.
    Admin pages are a 404 for members.
  • The kit's search_knowledge covers the guide for the reader's audience, every agent run gets
    search_guide, and a global-search.providers contribution adds guide hits to ⌘K when the
    global-search plugin is installed.
  • The guide skill: /guide init|write|sync|audit, guide-build.mjs and docs-stale.mjs.

Porting note

global-search

First release of global-search: a ⌘K palette in the header and a /search/all page over every registered search provider, fused with RRF and optionally re-ranked per organisation.

  • GET /api/global-search?q&kinds&limit calls every provider the reader may use in parallel, each within 1.5 seconds and its own AbortSignal, and answers { items, semantic, degraded, ranking }. A provider that times out, throws or answers something that does not parse is listed in degraded and never fails the request.
  • Results are fused by Reciprocal Rank Fusion (k = 60) on href, with a weight per hit (0.5 for a dense-only hit). The top 50 are re-ranked when the organisation has a re-ranker switched on; a timeout or failure keeps the fused order and ranking.rerank.reason says why.
  • Any plugin registers providers under ServerPlugin.extensions['global-search.providers'] without importing this plugin. Registrations are validated with zod; an invalid one, an id outside the registering plugin's namespace, a duplicate id or a kind declared twice is refused with an error naming the contributing plugins.
  • Built-in providers: global-search:people (members by name or email, manage TenantMember, linked to Settings → People), global-search:agents (registered agents through listAgents(), read AgentRun, linked to /agents?agentKey=), global-search:chats (only the reader's own conversations, read Conversation) and global-search:documents (tenant documents through searchKnowledge, best passage per document, deep-linked as the kit's /search links a passage; read Document). Names are matched with an escaped ILIKE, exact first.
  • The palette's first rows need no request: Go to ranks every destination from the kit's useNavigationEntries() (nav, settings tabs, Home links, already guard-filtered) and Commands ranks the entries any plugin declares under UiPlugin.extensions['global-search.commands'] ({ id, label, to, keywords?, group?, guard? }, validated with zod, each filtered by useNavGuard). Built-in commands: New chat, Invite people, Upload a document, Create an API key.
  • GET /api/global-search/providers lists the providers the reader may use, with their kinds, labels, badges, tones and snippet labels, for the UI.
  • Settings → Search (owners and admins) stores a Cohere, Voyage AI, Fireworks AI or compatible /rerank endpoint, model and key in global_search_settings, the key sealed with sealSecret. GET/PUT /api/global-search/settings and POST /api/global-search/settings/test.

Porting note

Every other plugin is unchanged apart from the version stamp.

Full changelog: 3.9.0...3.10.0