Skip to content

Invoke is a leading creative engine that uses image and video generation models to empower professionals, artists, and enthusiasts to generate and create visual media using the latest AI-driven technologies. The solution offers an industry-leading application interface, and serves as the foundation for multiple commercial products.

docs: update frontend and extension architecture guidance

joshistoast006afd68af97
diff --git a/.github/AGENTS.md b/.github/AGENTS.md
index 9f701a7e33..6f7def0148 100644
--- a/.github/AGENTS.md
+++ b/.github/AGENTS.md
@@ -2,23 +2,37 @@
## Package Management
-This project uses **pnpm** exclusively for package management in the frontend (`invokeai/frontend/web/`).
+This repository has two independently managed TypeScript/React frontends, both using **pnpm** exclusively:
-- ✅ Use `pnpm` commands (e.g., `pnpm install`, `pnpm run`)
-- ❌ Never use `npm` or `yarn` commands
-- ❌ Never suggest creating or using `package-lock.json` or `yarn.lock`
-- ✅ The lock file is `pnpm-lock.yaml`
+- `invokeai/frontend/web/`
+- `invokeai/frontend/webv2/`
-Use the following pnpm commands for typical operations:
+- ✅ Use `pnpm` commands for both frontends.
+- ✅ Run commands against the intended frontend with `pnpm -C <directory> ...`.
+- ❌ Never use `npm` or `yarn`.
+- ❌ Never create or use `package-lock.json` or `yarn.lock`.
+- ✅ Each frontend owns its own `pnpm-lock.yaml`.
-- pnpm -C invokeai/frontend/web install
-- pnpm -C invokeai/frontend/web build
-- pnpm -C invokeai/frontend/web lint:tsc
-- pnpm -C invokeai/frontend/web lint:dpdm
-- pnpm -C invokeai/frontend/web lint:eslint
-- pnpm -C invokeai/frontend/web lint:prettier
+Typical commands for the established frontend:
+
+- `pnpm -C invokeai/frontend/web install`
+- `pnpm -C invokeai/frontend/web build`
+- `pnpm -C invokeai/frontend/web lint:tsc`
+- `pnpm -C invokeai/frontend/web lint:dpdm`
+- `pnpm -C invokeai/frontend/web lint:eslint`
+- `pnpm -C invokeai/frontend/web lint:prettier`
+
+Typical commands for the Workbench frontend:
+
+- `pnpm -C invokeai/frontend/webv2 install`
+- `pnpm -C invokeai/frontend/webv2 build`
+- `pnpm -C invokeai/frontend/webv2 format:check`
+- `pnpm -C invokeai/frontend/webv2 lint:oxc`
+- `pnpm -C invokeai/frontend/webv2 lint:tsc`
+- `pnpm -C invokeai/frontend/webv2 test:all`
## Project Structure
- Backend: Python in `invokeai/`
-- Frontend: TypeScript/React in `invokeai/frontend/web/` (uses pnpm)
+- Established frontend: TypeScript/React in `invokeai/frontend/web/`
+- Workbench frontend: TypeScript/React in `invokeai/frontend/webv2/`
diff --git a/invokeai/frontend/webv2/src/workbench/extensions/README.md b/invokeai/frontend/webv2/src/workbench/extensions/README.md
index a6c379a30c..9714c35fc9 100644
--- a/invokeai/frontend/webv2/src/workbench/extensions/README.md
+++ b/invokeai/frontend/webv2/src/workbench/extensions/README.md
@@ -47,14 +47,21 @@ Widgets should not mirror Python import execution directly in the browser. The s
This avoids symlink assumptions and lets multi-user/admin rules follow the existing custom-node management pattern.
+## Implemented Shell Systems
+
+- Workbench and Launchpad command palette hosts with shared command and settings entries.
+- First-party Workbench search providers for workflows, boards, models, images, queue items, and prompt history.
+- Widget command-palette contributions backed by the per-Workbench extension registry.
+- Widget search-provider aggregation with source-safe identities and result adaptation into palette entries.
+- Scoped provider search, fixed section ordering with ranked results inside each section, and persistent command recents.
+- Created-at date filtering for providers that explicitly advertise range support.
+
## Missing Core Systems
The contribution registries exist in `extensionRegistry.ts` (one registry per Workbench mount, constructed by `WorkbenchProvider`), but these systems still need real shell features:
- Command registry UI and lifecycle ownership.
-- Command palette UI.
- Hotkey manager with context-aware `when` clauses.
-- Global search UI and ranked result aggregation.
- Menu contribution rendering beyond widget header menus.
- Toolbar contribution rendering for locations like `center.tabs.trailing` and status bar slots.
- Extension install/uninstall/reload API for widget packs.