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.

test(perf): enforce outcome budgets

joshistoasta9ad768d4dfc
diff --git a/invokeai/frontend/webv2/package.json b/invokeai/frontend/webv2/package.json
index 47d980e35f..9adfadd11a 100644
--- a/invokeai/frontend/webv2/package.json
+++ b/invokeai/frontend/webv2/package.json
@@ -7,6 +7,7 @@
"architecture:check": "vitest run --config vitest.config.mts src/architecture/dependencyPolicy.test.ts src/architecture/workbenchOwnership.test.ts src/architecture/architectureWorkflow.test.ts && node scripts/write-workbench-ownership-inventory.mjs && node scripts/write-contract-caller-matrix.mjs && node scripts/write-canvas-import-matrix.mjs",
"build": "pnpm run lint && vite build",
"check:architecture": "pnpm run lint && pnpm run test:all && pnpm run test:performance:architecture",
+ "check:release": "pnpm run lint && pnpm run test:all && pnpm run test:performance:architecture && pnpm run test:accessibility:browser",
"dev": "vite dev",
"dev:host": "vite dev --host",
"fix": "pnpm run lint:oxc:fix && pnpm run format:write",
@@ -29,7 +30,8 @@
"test:performance:architecture": "pnpm run test:performance:build && pnpm run test:performance:browser",
"test:performance:browser": "node scripts/measure-architecture-performance.mjs",
"test:performance:browser:update-baseline": "node scripts/measure-architecture-performance.mjs --update-baseline",
- "test:performance:build": "vite build && node scripts/check-architecture-performance.mjs"
+ "test:performance:build": "pnpm run test:performance:contracts && vite build && node scripts/check-architecture-performance.mjs",
+ "test:performance:contracts": "node --test scripts/performance-budgets.test.mjs"
},
"dependencies": {
"@chakra-ui/react": "^3.36.1",
diff --git a/invokeai/frontend/webv2/performance/architecture-baseline.json b/invokeai/frontend/webv2/performance/architecture-baseline.json
index 8479f51c67..30ddb772bb 100644
--- a/invokeai/frontend/webv2/performance/architecture-baseline.json
+++ b/invokeai/frontend/webv2/performance/architecture-baseline.json
@@ -1,138 +1,828 @@
{
- "schemaVersion": 1,
- "capturedAt": "2026-07-25",
"build": {
"launchpad": {
- "source": "index.html",
+ "baseline": {
+ "brotliBytes": 964523,
+ "cssRawBytes": 17571,
+ "fontRawBytes": 219480,
+ "gzipBytes": 962177,
+ "imageRawBytes": 156376,
+ "initialRawBytes": 2356158,
+ "largestAssetRawBytes": 772580,
+ "otherAssetRawBytes": 0,
+ "ownedRawBytes": 33139,
+ "requestCount": 51,
+ "scriptRequestCount": 35,
+ "sourceOwners": [
+ "package:@ark-ui/react",
+ "package:@chakra-ui/react",
+ "package:@dnd-kit/accessibility",
+ "package:@dnd-kit/core",
+ "package:@dnd-kit/modifiers",
+ "package:@dnd-kit/sortable",
+ "package:@dnd-kit/utilities",
+ "package:@emotion/cache",
+ "package:@emotion/hash",
+ "package:@emotion/is-prop-valid",
+ "package:@emotion/memoize",
+ "package:@emotion/react",
+ "package:@emotion/serialize",
+ "package:@emotion/sheet",
+ "package:@emotion/unitless",
+ "package:@emotion/use-insertion-effect-with-fallbacks",
+ "package:@emotion/utils",
+ "package:@floating-ui/core",
+ "package:@floating-ui/dom",
+ "package:@floating-ui/utils",
+ "package:@fontsource/inter",
+ "package:@internationalized/number",
+ "package:@pandacss/is-valid-prop",
+ "package:@socket.io/component-emitter",
+ "package:@tanstack/history",
+ "package:@tanstack/query-core",
+ "package:@tanstack/react-query",
+ "package:@tanstack/react-router",
+ "package:@tanstack/react-store",
+ "package:@tanstack/react-virtual",
+ "package:@tanstack/router-core",
+ "package:@tanstack/store",
+ "package:@tanstack/virtual-core",
+ "package:@xyflow/react",
+ "package:@xyflow/system",
+ "package:@zag-js/accordion",
+ "package:@zag-js/anatomy",
+ "package:@zag-js/aria-hidden",
+ "package:@zag-js/auto-resize",
+ "package:@zag-js/avatar",
+ "package:@zag-js/carousel",
+ "package:@zag-js/checkbox",
+ "package:@zag-js/clipboard",
+ "package:@zag-js/collapsible",
+ "package:@zag-js/collection",
+ "package:@zag-js/color-picker",
+ "package:@zag-js/color-utils",
+ "package:@zag-js/combobox",
+ "package:@zag-js/core",
+ "package:@zag-js/date-picker",
+ "package:@zag-js/dialog",
+ "package:@zag-js/dismissable",
+ "package:@zag-js/dom-query",
+ "package:@zag-js/editable",
+ "package:@zag-js/file-upload",
+ "package:@zag-js/floating-panel",
+ "package:@zag-js/focus-trap",
+ "package:@zag-js/focus-visible",
+ "package:@zag-js/hover-card",
+ "package:@zag-js/interact-outside",
+ "package:@zag-js/listbox",
+ "package:@zag-js/live-region",
+ "package:@zag-js/marquee",
+ "package:@zag-js/menu",
+ "package:@zag-js/number-input",
+ "package:@zag-js/pagination",
+ "package:@zag-js/pin-input",
+ "package:@zag-js/popover",
+ "package:@zag-js/popper",
+ "package:@zag-js/presence",
+ "package:@zag-js/progress",
+ "package:@zag-js/qr-code",
+ "package:@zag-js/radio-group",
+ "package:@zag-js/rating-group",
+ "package:@zag-js/react",
+ "package:@zag-js/rect-utils",
+ "package:@zag-js/remove-scroll",
+ "package:@zag-js/scroll-area",
+ "package:@zag-js/select",
+ "package:@zag-js/slider",
+ "package:@zag-js/splitter",
+ "package:@zag-js/switch",
+ "package:@zag-js/tabs",
+ "package:@zag-js/tags-input",
+ "package:@zag-js/toast",
+ "package:@zag-js/tooltip",
+ "package:@zag-js/tree-view",
+ "package:@zag-js/types",
+ "package:@zag-js/utils",
+ "package:classcat",
+ "package:d3-color",
+ "package:d3-dispatch",
+ "package:d3-drag",
+ "package:d3-ease",
+ "package:d3-interpolate",
+ "package:d3-selection",
+ "package:d3-timer",
+ "package:d3-transition",
+ "package:d3-zoom",
+ "package:engine.io-client",
+ "package:engine.io-parser",
+ "package:fuzzysort",
+ "package:hoist-non-react-statics",
+ "package:i18next",
+ "package:i18next-http-backend",
+ "package:lucide-react",
+ "package:perfect-freehand",
+ "package:react",
+ "package:react-dom",
+ "package:react-hook-tanstack-virtual",
+ "package:react-i18next",
+ "package:react-is",
+ "package:scheduler",
+ "package:socket.io-client",
+ "package:socket.io-parser",
+ "package:stylis",
+ "package:tinykeys",
+ "package:use-sync-external-store",
+ "package:zod",
+ "package:zustand",
+ "source:index.html",
+ "source:src/app/App.tsx",
+ "source:src/app/AppProviders.tsx",
+ "source:src/app/I18nController.tsx",
+ "source:src/app/SocketHubRuntime.tsx",
+ "source:src/app/ThemeController.tsx",
+ "source:src/app/accountLifecycle.ts",
+ "source:src/app/main.tsx",
+ "source:src/app/router.tsx",
+ "source:src/assets/SplashImage.webp",
+ "source:src/features/gallery/contracts.ts",
+ "source:src/features/gallery/core/image.ts",
+ "source:src/features/gallery/core/settings.ts",
+ "source:src/features/gallery/ui/galleryStateView.ts",
+ "source:src/features/generation/core/baseGenerationPolicies.ts",
+ "source:src/features/generation/core/batch.ts",
+ "source:src/features/generation/core/canvas/addControlLayers.ts",
+ "source:src/features/generation/core/canvas/addRegionalGuidance.ts",
+ "source:src/features/generation/core/canvas/compileCanvasGraph.ts",
+ "source:src/features/generation/core/canvas/controlValidation.ts",
+ "source:src/features/generation/core/canvas/types.ts",
+ "source:src/features/generation/core/componentCompatibility.ts",
+ "source:src/features/generation/core/graph.ts",
+ "source:src/features/generation/core/graphBuilder.ts",
+ "source:src/features/generation/core/projectPromptDraft.ts",
+ "source:src/features/generation/core/promptHistory.ts",
+ "source:src/features/generation/core/referenceImage.ts",
+ "source:src/features/generation/core/settings.ts",
+ "source:src/features/generation/graph.ts",
+ "source:src/features/generation/settings.ts",
+ "source:src/features/identity/capabilities.ts",
+ "source:src/features/identity/core/schemas.ts",
+ "source:src/features/identity/core/sessionPolicy.ts",
+ "source:src/features/identity/core/tokenStorage.ts",
+ "source:src/features/identity/data/api.ts",
+ "source:src/features/identity/index.ts",
+ "source:src/features/identity/session.ts",
+ "source:src/features/identity/transportAdapter.ts",
+ "source:src/features/identity/ui/AccountMenu.tsx",
+ "source:src/features/identity/ui/AuthScreen.tsx",
+ "source:src/features/identity/ui/AuthUnavailableScreen.tsx",
+ "source:src/features/identity/ui/LoginScreen.tsx",
+ "source:src/features/identity/ui/PasswordInput.tsx",
+ "source:src/features/identity/ui/ProfileDialog.tsx",
+ "source:src/features/identity/ui/SetupScreen.tsx",
+ "source:src/features/identity/ui/UserFormDialog.tsx",
+ "source:src/features/identity/ui/UserManagement.tsx",
+ "source:src/features/identity/ui/UsersPage.tsx",
+ "source:src/features/identity/ui/useIdentityNotify.ts",
+ "source:src/features/models/core/baseIdentity.ts",
+ "source:src/features/models/data/api.ts",
+ "source:src/features/models/data/modelLoadStore.ts",
+ "source:src/features/models/data/modelsStore.ts",
+ "source:src/features/models/data/transport.ts",
+ "source:src/features/models/index.ts",
+ "source:src/features/models/ui/ModelsPage.tsx",
+ "source:src/features/models/ui/ModelsUiContext.tsx",
+ "source:src/features/nodes/core/catalog.ts",
+ "source:src/features/nodes/data/api.ts",
+ "source:src/features/nodes/data/nodeExecutionStore.ts",
+ "source:src/features/nodes/data/nodesStore.ts",
+ "source:src/features/nodes/data/transport.ts",
+ "source:src/features/nodes/index.ts",
+ "source:src/features/nodes/ui/NodesPage.tsx",
+ "source:src/features/queue/contracts.ts",
+ "source:src/features/queue/core/historySnapshot.ts",
+ "source:src/features/queue/core/submissionRules.ts",
+ "source:src/features/upscale/core/graph.ts",
+ "source:src/features/upscale/core/settings.ts",
+ "source:src/features/upscale/index.ts",
+ "source:src/features/upscale/ui/UpscaleUiContext.tsx",
+ "source:src/features/workflow/core/buildGraph.ts",
+ "source:src/features/workflow/core/connectors.ts",
+ "source:src/features/workflow/core/document.ts",
+ "source:src/features/workflow/core/fields.ts",
+ "source:src/features/workflow/core/graphIndex.ts",
+ "source:src/features/workflow/core/layerWorkflow.ts",
+ "source:src/features/workflow/core/types.ts",
+ "source:src/features/workflow/core/validation.ts",
+ "source:src/features/workflow/core/workflowJson.ts",
+ "source:src/features/workflow/data/templates.ts",
+ "source:src/features/workflow/graph.ts",
+ "source:src/features/workflow/react.ts",
+ "source:src/features/workflow/ui/WorkflowUiContext.tsx",
+ "source:src/features/workflow/ui/workflowUiStore.ts",
+ "source:src/features/workflow/utility.ts",
+ "source:src/platform/browser/knownBrowserIssues.ts",
+ "source:src/platform/i18n/client.ts",
+ "source:src/platform/i18n/languages.ts",
+ "source:src/platform/performance/semanticReady.ts",
+ "source:src/platform/query/client.ts",
+ "source:src/platform/react/useMountEffect.ts",
+ "source:src/platform/react/useZodForm.ts",
+ "source:src/platform/search/dateTokens.ts",
+ "source:src/platform/state/accountLifecycle.ts",
+ "source:src/platform/state/externalStore.ts",
+ "source:src/platform/state/externalStoreCore.ts",
+ "source:src/platform/state/selectorCore.ts",
+ "source:src/platform/state/selectors.ts",
+ "source:src/platform/state/singleFlight.ts",
+ "source:src/platform/time/serverTimestamp.ts",
+ "source:src/platform/transport/connectionStore.ts",
+ "source:src/platform/transport/deploymentBase.ts",
+ "source:src/platform/transport/http.ts",
+ "source:src/platform/transport/socketHub.ts",
+ "source:src/platform/ui/Button.tsx",
+ "source:src/platform/ui/ColorPicker.tsx",
+ "source:src/platform/ui/Combobox.tsx",
+ "source:src/platform/ui/ConfirmDialog.tsx",
+ "source:src/platform/ui/DropZone.tsx",
+ "source:src/platform/ui/Field.tsx",
+ "source:src/platform/ui/InvokeMark.tsx",
+ "source:src/platform/ui/JsonPreview.tsx",
+ "source:src/platform/ui/Menu.tsx",
+ "source:src/platform/ui/Panel.tsx",
+ "source:src/platform/ui/RenameDialog.tsx",
+ "source:src/platform/ui/ResizableTextarea.tsx",
+ "source:src/platform/ui/Row.tsx",
+ "source:src/platform/ui/Scrollable.tsx",
+ "source:src/platform/ui/Select.tsx",
+ "source:src/platform/ui/Slider.tsx",
+ "source:src/platform/ui/StatusWidgetChip.tsx",
+ "source:src/platform/ui/Tabs.tsx",
+ "source:src/platform/ui/ToggleDot.tsx",
+ "source:src/platform/ui/Toolbar.tsx",
+ "source:src/platform/ui/Tooltip.tsx",
+ "source:src/platform/ui/colorPickerSync.ts",
+ "source:src/platform/ui/index.ts",
+ "source:src/platform/ui/theme/applyTheme.ts",
+ "source:src/platform/ui/theme/recipes.ts",
+ "source:src/platform/ui/theme/system.ts",
+ "source:src/platform/ui/theme/themes.ts",
+ "source:src/platform/ui/toaster.tsx",
+ "source:src/workbench/WorkbenchContext.tsx",
+ "source:src/workbench/autoRoutePolicy.ts",
+ "source:src/workbench/canvas-engine/api.ts",
+ "source:src/workbench/canvas-engine/capabilities.ts",
+ "source:src/workbench/canvas-engine/document/sources.ts",
+ "source:src/workbench/canvas-engine/editing/controlPixelEdit.ts",
+ "source:src/workbench/canvas-engine/engineStores.ts",
+ "source:src/workbench/canvas-engine/math/mat2d.ts",
+ "source:src/workbench/canvas-engine/math/rect.ts",
+ "source:src/workbench/canvas-engine/math/snapping.ts",
+ "source:src/workbench/canvas-engine/render/compositor.ts",
+ "source:src/workbench/canvas-engine/render/controlTransparency.ts",
+ "source:src/workbench/canvas-engine/render/maskFill.ts",
+ "source:src/workbench/canvas-engine/render/rasterizers/textRasterizer.ts",
+ "source:src/workbench/canvas-engine/transform/transformMath.ts",
+ "source:src/workbench/canvasLayerContent.ts",
+ "source:src/workbench/canvasMigration.ts",
+ "source:src/workbench/canvasProjectMutations.ts",
+ "source:src/workbench/canvasStagingView.ts",
+ "source:src/workbench/components/WorkbenchSplashScreen.tsx",
+ "source:src/workbench/controlAdapters.ts",
+ "source:src/workbench/controlLayerChecks.ts",
+ "source:src/workbench/diagnostics/logger.ts",
+ "source:src/workbench/extensions/contributionSource.ts",
+ "source:src/workbench/extensions/extensionRegistry.ts",
+ "source:src/workbench/hotkeys/catalog.ts",
+ "source:src/workbench/hotkeys/extensionHotkeys.ts",
+ "source:src/workbench/hotkeys/index.ts",
+ "source:src/workbench/hotkeys/keys.ts",
+ "source:src/workbench/hotkeys/modalLayer.ts",
+ "source:src/workbench/hotkeys/resolve.ts",
+ "source:src/workbench/invocation.ts",
+ "source:src/workbench/launchpad/KnownBrowserIssuesAlert.tsx",
+ "source:src/workbench/launchpad/Launchpad.tsx",
+ "source:src/workbench/launchpad/LaunchpadNav.tsx",
+ "source:src/workbench/launchpad/LaunchpadTopBar.tsx",
+ "source:src/workbench/launchpad/NewProjectCard.tsx",
+ "source:src/workbench/launchpad/ProjectCard.tsx",
+ "source:src/workbench/launchpad/ProjectsGrid.tsx",
+ "source:src/workbench/launchpad/ResourceLinks.tsx",
+ "source:src/workbench/launchpad/formatRelativeTime.ts",
+ "source:src/workbench/launchpad/pages/ProjectsPage.tsx",
+ "source:src/workbench/layoutPresetSnapshots.ts",
+ "source:src/workbench/layoutPresets.ts",
+ "source:src/workbench/palette/LaunchpadCommandPalette.tsx",
+ "source:src/workbench/palette/PaletteButton.tsx",
+ "source:src/workbench/palette/paletteStore.ts",
+ "source:src/workbench/palette/settingsEntryDeps.ts",
+ "source:src/workbench/performanceMarks.ts",
+ "source:src/workbench/persistence.ts",
+ "source:src/workbench/persistenceRuntime.ts",
+ "source:src/workbench/projects/api.ts",
+ "source:src/workbench/projects/ids.ts",
+ "source:src/workbench/projects/library.ts",
+ "source:src/workbench/projects/projectFile.ts",
+ "source:src/workbench/projects/session.ts",
+ "source:src/workbench/projects/syncStore.ts",
+ "source:src/workbench/projects/syncedPersistence.ts",
+ "source:src/workbench/queueHistoryNormalization.ts",
+ "source:src/workbench/settings/HotkeysSettingsSection.tsx",
+ "source:src/workbench/settings/SettingsDialog.tsx",
+ "source:src/workbench/settings/settingsDialogStore.ts",
+ "source:src/workbench/settings/store.ts",
+ "source:src/workbench/widgetState.ts",
+ "source:src/workbench/workbenchState.ts",
+ "source:src/workbench/workbenchStore.ts"
+ ]
+ },
+ "limits": {
+ "brotliBytes": 974169,
+ "cssRawBytes": 17747,
+ "fontRawBytes": 221675,
+ "gzipBytes": 971799,
+ "imageRawBytes": 157940,
+ "initialRawBytes": 2379720,
+ "largestAssetRawBytes": 780306,
+ "otherAssetRawBytes": 0,
+ "ownedRawBytes": 33139,
+ "requestCount": 51,
+ "scriptRequestCount": 35
+ },
"owner": "app",
"remediationTicket": "set-performance-budgets",
- "baselineOwnedRawBytes": 32164,
- "baselineInitialRawBytes": 1952529,
- "baselineGzipBytes": 578869,
- "baselineBrotliBytes": 581055,
- "initialChunkNames": [
- "ModelsUiContext",
- "Tooltip",
- "UpscaleUiContext",
- "WorkbenchContext",
- "WorkflowUiContext",
- "baseGenerationPolicies",
- "chakra",
- "client",
- "document",
- "externalStore",
- "fields",
- "formatRelativeTime",
- "galleryStateView",
- "graph",
- "http",
- "identity",
- "index",
- "models",
- "nodesStore",
- "preload-helper",
- "promptHistory",
- "react",
- "rolldown-runtime",
- "settings",
- "settingsDialogStore",
- "shared",
- "socketHub",
- "submissionRules",
- "system",
- "ui",
- "useMountEffect",
- "utility",
- "vendor",
- "widgetState",
- "workbenchState"
- ],
- "maxGrowthPercent": 0.02,
- "maxGrowthRawBytes": 20480
+ "source": "index.html"
},
"editor": {
- "source": "src/app/WorkbenchApp.tsx",
+ "baseline": {
+ "brotliBytes": 1024838,
+ "cssRawBytes": 17571,
+ "fontRawBytes": 219480,
+ "gzipBytes": 1023617,
+ "imageRawBytes": 156376,
+ "initialRawBytes": 2533352,
+ "largestAssetRawBytes": 772580,
+ "otherAssetRawBytes": 0,
+ "ownedRawBytes": 105798,
+ "requestCount": 73,
+ "scriptRequestCount": 57,
+ "sourceOwners": [
+ "package:@ark-ui/react",
+ "package:@chakra-ui/react",
+ "package:@dnd-kit/accessibility",
+ "package:@dnd-kit/core",
+ "package:@dnd-kit/modifiers",
+ "package:@dnd-kit/sortable",
+ "package:@dnd-kit/utilities",
+ "package:@emotion/cache",
+ "package:@emotion/hash",
+ "package:@emotion/is-prop-valid",
+ "package:@emotion/memoize",
+ "package:@emotion/react",
+ "package:@emotion/serialize",
+ "package:@emotion/sheet",
+ "package:@emotion/unitless",
+ "package:@emotion/use-insertion-effect-with-fallbacks",
+ "package:@emotion/utils",
+ "package:@floating-ui/core",
+ "package:@floating-ui/dom",
+ "package:@floating-ui/utils",
+ "package:@fontsource/inter",
+ "package:@internationalized/number",
+ "package:@pandacss/is-valid-prop",
+ "package:@socket.io/component-emitter",
+ "package:@tanstack/history",
+ "package:@tanstack/query-core",
+ "package:@tanstack/react-query",
+ "package:@tanstack/react-router",
+ "package:@tanstack/react-store",
+ "package:@tanstack/react-virtual",
+ "package:@tanstack/router-core",
+ "package:@tanstack/store",
+ "package:@tanstack/virtual-core",
+ "package:@xyflow/react",
+ "package:@xyflow/system",
+ "package:@zag-js/accordion",
+ "package:@zag-js/anatomy",
+ "package:@zag-js/aria-hidden",
+ "package:@zag-js/auto-resize",
+ "package:@zag-js/avatar",
+ "package:@zag-js/carousel",
+ "package:@zag-js/checkbox",
+ "package:@zag-js/clipboard",
+ "package:@zag-js/collapsible",
+ "package:@zag-js/collection",
+ "package:@zag-js/color-picker",
+ "package:@zag-js/color-utils",
+ "package:@zag-js/combobox",
+ "package:@zag-js/core",
+ "package:@zag-js/date-picker",
+ "package:@zag-js/dialog",
+ "package:@zag-js/dismissable",
+ "package:@zag-js/dom-query",
+ "package:@zag-js/editable",
+ "package:@zag-js/file-upload",
+ "package:@zag-js/floating-panel",
+ "package:@zag-js/focus-trap",
+ "package:@zag-js/focus-visible",
+ "package:@zag-js/hover-card",
+ "package:@zag-js/interact-outside",
+ "package:@zag-js/listbox",
+ "package:@zag-js/live-region",
+ "package:@zag-js/marquee",
+ "package:@zag-js/menu",
+ "package:@zag-js/number-input",
+ "package:@zag-js/pagination",
+ "package:@zag-js/pin-input",
+ "package:@zag-js/popover",
+ "package:@zag-js/popper",
+ "package:@zag-js/presence",
+ "package:@zag-js/progress",
+ "package:@zag-js/qr-code",
+ "package:@zag-js/radio-group",
+ "package:@zag-js/rating-group",
+ "package:@zag-js/react",
+ "package:@zag-js/rect-utils",
+ "package:@zag-js/remove-scroll",
+ "package:@zag-js/scroll-area",
+ "package:@zag-js/select",
+ "package:@zag-js/slider",
+ "package:@zag-js/splitter",
+ "package:@zag-js/switch",
+ "package:@zag-js/tabs",
+ "package:@zag-js/tags-input",
+ "package:@zag-js/toast",
+ "package:@zag-js/tooltip",
+ "package:@zag-js/tree-view",
+ "package:@zag-js/types",
+ "package:@zag-js/utils",
+ "package:classcat",
+ "package:d3-color",
+ "package:d3-dispatch",
+ "package:d3-drag",
+ "package:d3-ease",
+ "package:d3-interpolate",
+ "package:d3-selection",
+ "package:d3-timer",
+ "package:d3-transition",
+ "package:d3-zoom",
+ "package:engine.io-client",
+ "package:engine.io-parser",
+ "package:fuzzysort",
+ "package:hoist-non-react-statics",
+ "package:i18next",
+ "package:i18next-http-backend",
+ "package:lucide-react",
+ "package:perfect-freehand",
+ "package:react",
+ "package:react-dom",
+ "package:react-hook-tanstack-virtual",
+ "package:react-i18next",
+ "package:react-is",
+ "package:scheduler",
+ "package:socket.io-client",
+ "package:socket.io-parser",
+ "package:stylis",
+ "package:tinykeys",
+ "package:use-sync-external-store",
+ "package:zod",
+ "package:zustand",
+ "source:src/app/GalleryUiAdapter.tsx",
+ "source:src/app/GenerationUiAdapter.tsx",
+ "source:src/app/ModelsUiAdapter.tsx",
+ "source:src/app/QueueRuntimeAdapter.tsx",
+ "source:src/app/QueueUiAdapter.tsx",
+ "source:src/app/UpscaleUiAdapter.tsx",
+ "source:src/app/WorkbenchApp.tsx",
+ "source:src/app/WorkflowUiAdapter.tsx",
+ "source:src/app/workbenchPorts.tsx",
+ "source:src/assets/SplashImage.webp",
+ "source:src/features/gallery/contracts.ts",
+ "source:src/features/gallery/core/image.ts",
+ "source:src/features/gallery/core/selection.ts",
+ "source:src/features/gallery/core/settings.ts",
+ "source:src/features/gallery/react.ts",
+ "source:src/features/gallery/ui/GalleryUiContext.tsx",
+ "source:src/features/gallery/ui/galleryStateView.ts",
+ "source:src/features/generation/core/baseGenerationPolicies.ts",
+ "source:src/features/generation/core/batch.ts",
+ "source:src/features/generation/core/canvas/addControlLayers.ts",
+ "source:src/features/generation/core/canvas/addRegionalGuidance.ts",
+ "source:src/features/generation/core/canvas/compileCanvasGraph.ts",
+ "source:src/features/generation/core/canvas/controlValidation.ts",
+ "source:src/features/generation/core/canvas/types.ts",
+ "source:src/features/generation/core/componentCompatibility.ts",
+ "source:src/features/generation/core/graph.ts",
+ "source:src/features/generation/core/graphBuilder.ts",
+ "source:src/features/generation/core/projectPromptDraft.ts",
+ "source:src/features/generation/core/prompt/ast.ts",
+ "source:src/features/generation/core/prompt/attention.ts",
+ "source:src/features/generation/core/promptHistory.ts",
+ "source:src/features/generation/core/referenceImage.ts",
+ "source:src/features/generation/core/settings.ts",
+ "source:src/features/generation/graph.ts",
+ "source:src/features/generation/react.ts",
+ "source:src/features/generation/settings.ts",
+ "source:src/features/generation/ui/GenerationUiContext.tsx",
+ "source:src/features/generation/ui/generateDraftRegistry.ts",
+ "source:src/features/generation/ui/generateFormViewModel.ts",
+ "source:src/features/generation/ui/promptFields/promptAttentionHotkeys.ts",
+ "source:src/features/generation/ui/promptFields/promptFocus.ts",
+ "source:src/features/generation/ui/promptFields/promptHistoryNavigation.ts",
+ "source:src/features/generation/ui/useDebouncedDraftValue.ts",
+ "source:src/features/identity/capabilities.ts",
+ "source:src/features/identity/core/schemas.ts",
+ "source:src/features/identity/core/sessionPolicy.ts",
+ "source:src/features/identity/core/tokenStorage.ts",
+ "source:src/features/identity/data/api.ts",
+ "source:src/features/identity/index.ts",
+ "source:src/features/identity/session.ts",
+ "source:src/features/identity/transportAdapter.ts",
+ "source:src/features/identity/ui/AccountMenu.tsx",
+ "source:src/features/identity/ui/AuthScreen.tsx",
+ "source:src/features/identity/ui/AuthUnavailableScreen.tsx",
+ "source:src/features/identity/ui/LoginScreen.tsx",
+ "source:src/features/identity/ui/PasswordInput.tsx",
+ "source:src/features/identity/ui/ProfileDialog.tsx",
+ "source:src/features/identity/ui/SetupScreen.tsx",
+ "source:src/features/identity/ui/UserFormDialog.tsx",
+ "source:src/features/identity/ui/UserManagement.tsx",
+ "source:src/features/identity/ui/UsersPage.tsx",
+ "source:src/features/identity/ui/useIdentityNotify.ts",
+ "source:src/features/models/core/baseIdentity.ts",
+ "source:src/features/models/data/api.ts",
+ "source:src/features/models/data/modelLoadStore.ts",
+ "source:src/features/models/data/modelsStore.ts",
+ "source:src/features/models/data/transport.ts",
+ "source:src/features/models/index.ts",
+ "source:src/features/models/ui/ModelsPage.tsx",
+ "source:src/features/models/ui/ModelsUiContext.tsx",
+ "source:src/features/nodes/core/catalog.ts",
+ "source:src/features/nodes/data/api.ts",
+ "source:src/features/nodes/data/nodeExecutionStore.ts",
+ "source:src/features/nodes/data/nodesStore.ts",
+ "source:src/features/nodes/data/transport.ts",
+ "source:src/features/nodes/index.ts",
+ "source:src/features/nodes/ui/NodesPage.tsx",
+ "source:src/features/queue/contracts.ts",
+ "source:src/features/queue/core/generationMeta.ts",
+ "source:src/features/queue/core/historySnapshot.ts",
+ "source:src/features/queue/core/historySummary.ts",
+ "source:src/features/queue/core/progressImage.ts",
+ "source:src/features/queue/core/submissionRules.ts",
+ "source:src/features/queue/core/types.ts",
+ "source:src/features/queue/data/activeProgressTargetStore.ts",
+ "source:src/features/queue/data/events.ts",
+ "source:src/features/queue/data/httpRealtimeQueueBackend.ts",
+ "source:src/features/queue/data/itemProgressStore.ts",
+ "source:src/features/queue/data/mappers.ts",
+ "source:src/features/queue/data/progressImageStore.ts",
+ "source:src/features/queue/data/progressStore.ts",
+ "source:src/features/queue/data/queries.ts",
+ "source:src/features/queue/data/realtimeRuntime.ts",
+ "source:src/features/queue/data/serverApi.ts",
+ "source:src/features/queue/data/submissionApi.ts",
+ "source:src/features/queue/index.ts",
+ "source:src/features/queue/menu.ts",
+ "source:src/features/queue/publicApi.ts",
+ "source:src/features/queue/react.ts",
+ "source:src/features/queue/reveal.ts",
+ "source:src/features/queue/runtime.ts",
+ "source:src/features/queue/runtime/coordinator.ts",
+ "source:src/features/queue/ui/QueueUiContext.tsx",
+ "source:src/features/queue/ui/currentBatchItems.ts",
+ "source:src/features/queue/ui/queueConfirmationStore.ts",
+ "source:src/features/queue/ui/queueDataStore.ts",
+ "source:src/features/queue/ui/queueMenuActions.tsx",
+ "source:src/features/queue/ui/queueOwnership.ts",
+ "source:src/features/queue/ui/queueProgressCleanup.ts",
+ "source:src/features/queue/ui/queueScope.ts",
+ "source:src/features/queue/ui/queueUiStore.ts",
+ "source:src/features/queue/ui/queueViewModel.ts",
+ "source:src/features/upscale/core/graph.ts",
+ "source:src/features/upscale/core/settings.ts",
+ "source:src/features/upscale/index.ts",
+ "source:src/features/upscale/ui/UpscaleUiContext.tsx",
+ "source:src/features/workflow/core/buildGraph.ts",
+ "source:src/features/workflow/core/connectors.ts",
+ "source:src/features/workflow/core/document.ts",
+ "source:src/features/workflow/core/fields.ts",
+ "source:src/features/workflow/core/graphIndex.ts",
+ "source:src/features/workflow/core/layerWorkflow.ts",
+ "source:src/features/workflow/core/types.ts",
+ "source:src/features/workflow/core/validation.ts",
+ "source:src/features/workflow/core/workflowJson.ts",
+ "source:src/features/workflow/data/templates.ts",
+ "source:src/features/workflow/graph.ts",
+ "source:src/features/workflow/react.ts",
+ "source:src/features/workflow/ui/WorkflowUiContext.tsx",
+ "source:src/features/workflow/ui/workflowUiStore.ts",
+ "source:src/features/workflow/utility.ts",
+ "source:src/features/workflow/widget.ts",
+ "source:src/platform/i18n/languages.ts",
+ "source:src/platform/performance/semanticReady.ts",
+ "source:src/platform/query/client.ts",
+ "source:src/platform/react/composeProviders.tsx",
+ "source:src/platform/react/draftRegistry.ts",
+ "source:src/platform/react/useMountEffect.ts",
+ "source:src/platform/react/useZodForm.ts",
+ "source:src/platform/search/dateTokens.ts",
+ "source:src/platform/state/accountLifecycle.ts",
+ "source:src/platform/state/externalStore.ts",
+ "source:src/platform/state/externalStoreCore.ts",
+ "source:src/platform/state/projectedExternalStore.ts",
+ "source:src/platform/state/selectorCore.ts",
+ "source:src/platform/state/selectors.ts",
+ "source:src/platform/state/singleFlight.ts",
+ "source:src/platform/time/serverTimestamp.ts",
+ "source:src/platform/transport/connectionStore.ts",
+ "source:src/platform/transport/deploymentBase.ts",
+ "source:src/platform/transport/http.ts",
+ "source:src/platform/transport/socketHub.ts",
+ "source:src/platform/ui/Button.tsx",
+ "source:src/platform/ui/ColorPicker.tsx",
+ "source:src/platform/ui/Combobox.tsx",
+ "source:src/platform/ui/ConfirmDialog.tsx",
+ "source:src/platform/ui/DropZone.tsx",
+ "source:src/platform/ui/Field.tsx",
+ "source:src/platform/ui/InvokeMark.tsx",
+ "source:src/platform/ui/JsonPreview.tsx",
+ "source:src/platform/ui/Menu.tsx",
+ "source:src/platform/ui/Panel.tsx",
+ "source:src/platform/ui/RenameDialog.tsx",
+ "source:src/platform/ui/ResizableTextarea.tsx",
+ "source:src/platform/ui/Row.tsx",
+ "source:src/platform/ui/Scrollable.tsx",
+ "source:src/platform/ui/Select.tsx",
+ "source:src/platform/ui/Slider.tsx",
+ "source:src/platform/ui/StatusWidgetChip.tsx",
+ "source:src/platform/ui/Tabs.tsx",
+ "source:src/platform/ui/ToggleDot.tsx",
+ "source:src/platform/ui/Toolbar.tsx",
+ "source:src/platform/ui/Tooltip.tsx",
+ "source:src/platform/ui/colorPickerSync.ts",
+ "source:src/platform/ui/index.ts",
+ "source:src/platform/ui/theme/applyTheme.ts",
+ "source:src/platform/ui/theme/recipes.ts",
+ "source:src/platform/ui/theme/system.ts",
+ "source:src/platform/ui/theme/themes.ts",
+ "source:src/platform/ui/toaster.tsx",
+ "source:src/workbench/WorkbenchContext.tsx",
+ "source:src/workbench/WorkbenchRuntime.tsx",
+ "source:src/workbench/WorkbenchSessionController.tsx",
+ "source:src/workbench/WorkbenchWidgetRegistryContext.tsx",
+ "source:src/workbench/autoRoutePolicy.ts",
+ "source:src/workbench/canvas-engine/api.ts",
+ "source:src/workbench/canvas-engine/capabilities.ts",
+ "source:src/workbench/canvas-engine/document/sources.ts",
+ "source:src/workbench/canvas-engine/editing/controlPixelEdit.ts",
+ "source:src/workbench/canvas-engine/engineStores.ts",
+ "source:src/workbench/canvas-engine/math/mat2d.ts",
+ "source:src/workbench/canvas-engine/math/rect.ts",
+ "source:src/workbench/canvas-engine/math/snapping.ts",
+ "source:src/workbench/canvas-engine/render/compositor.ts",
+ "source:src/workbench/canvas-engine/render/controlTransparency.ts",
+ "source:src/workbench/canvas-engine/render/maskFill.ts",
+ "source:src/workbench/canvas-engine/render/rasterizers/textRasterizer.ts",
+ "source:src/workbench/canvas-engine/transform/transformMath.ts",
+ "source:src/workbench/canvasDimsSync.ts",
+ "source:src/workbench/canvasLayerContent.ts",
+ "source:src/workbench/canvasMigration.ts",
+ "source:src/workbench/canvasProjectMutations.ts",
+ "source:src/workbench/canvasStagingView.ts",
+ "source:src/workbench/components/QueueProgressIndicator.tsx",
+ "source:src/workbench/components/WorkbenchSplashScreen.tsx",
+ "source:src/workbench/controlAdapters.ts",
+ "source:src/workbench/controlLayerChecks.ts",
+ "source:src/workbench/diagnostics/logger.ts",
+ "source:src/workbench/extensions/contributionSource.ts",
+ "source:src/workbench/extensions/extensionRegistry.ts",
+ "source:src/workbench/focusRegions.tsx",
+ "source:src/workbench/graphPreviewInvocation.ts",
+ "source:src/workbench/graphSurfaces.ts",
+ "source:src/workbench/hotkeys/WorkbenchHotkeyRuntime.tsx",
+ "source:src/workbench/hotkeys/catalog.ts",
+ "source:src/workbench/hotkeys/extensionHotkeys.ts",
+ "source:src/workbench/hotkeys/firstPartyCommands.ts",
+ "source:src/workbench/hotkeys/index.ts",
+ "source:src/workbench/hotkeys/keys.ts",
+ "source:src/workbench/hotkeys/modalLayer.ts",
+ "source:src/workbench/hotkeys/resolve.ts",
+ "source:src/workbench/hotkeys/targetWidget.ts",
+ "source:src/workbench/iconResolver.tsx",
+ "source:src/workbench/invocation.ts",
+ "source:src/workbench/invocationSubmit.ts",
+ "source:src/workbench/launchpad/formatRelativeTime.ts",
+ "source:src/workbench/layoutPresetSnapshots.ts",
+ "source:src/workbench/layoutPresets.ts",
+ "source:src/workbench/palette/PaletteButton.tsx",
+ "source:src/workbench/palette/WorkbenchCommandPalette.tsx",
+ "source:src/workbench/palette/paletteStore.ts",
+ "source:src/workbench/palette/settingsEntryDeps.ts",
+ "source:src/workbench/performanceMarks.ts",
+ "source:src/workbench/persistence.ts",
+ "source:src/workbench/persistenceRuntime.ts",
+ "source:src/workbench/projects/api.ts",
+ "source:src/workbench/projects/components/OpenProjectDialog.tsx",
+ "source:src/workbench/projects/components/ProjectTabs.tsx",
+ "source:src/workbench/projects/components/index.ts",
+ "source:src/workbench/projects/ids.ts",
+ "source:src/workbench/projects/library.ts",
+ "source:src/workbench/projects/projectFile.ts",
+ "source:src/workbench/projects/projectTabsA11y.ts",
+ "source:src/workbench/projects/session.ts",
+ "source:src/workbench/projects/syncStore.ts",
+ "source:src/workbench/projects/syncedPersistence.ts",
+ "source:src/workbench/projects/useProjectActions.ts",
+ "source:src/workbench/queueHistoryNormalization.ts",
+ "source:src/workbench/settings/HotkeysSettingsSection.tsx",
+ "source:src/workbench/settings/SettingsDialog.tsx",
+ "source:src/workbench/settings/index.ts",
+ "source:src/workbench/settings/settingsDialogStore.ts",
+ "source:src/workbench/settings/store.ts",
+ "source:src/workbench/shell/BottomPanel.tsx",
+ "source:src/workbench/shell/CenterArea.tsx",
+ "source:src/workbench/shell/Panels.tsx",
+ "source:src/workbench/shell/StatusBar.tsx",
+ "source:src/workbench/shell/WorkbenchShell.tsx",
+ "source:src/workbench/shell/index.ts",
+ "source:src/workbench/shell/notifications/WorkbenchNotificationToaster.tsx",
+ "source:src/workbench/shell/notifications/index.ts",
+ "source:src/workbench/shell/topbar/BatchCountField.tsx",
+ "source:src/workbench/shell/topbar/InvokeControl.tsx",
+ "source:src/workbench/shell/topbar/LayoutPresetMenu.tsx",
+ "source:src/workbench/shell/topbar/ModelManagerButton.tsx",
+ "source:src/workbench/shell/topbar/NodeManagerButton.tsx",
+ "source:src/workbench/shell/topbar/QueueActions.tsx",
+ "source:src/workbench/shell/topbar/QueueInfo.tsx",
+ "source:src/workbench/shell/topbar/TopBar.tsx",
+ "source:src/workbench/shell/topbar/index.ts",
+ "source:src/workbench/useNotify.ts",
+ "source:src/workbench/useOpenWorkbenchWidget.ts",
+ "source:src/workbench/widget-frame/WidgetActionsMenu.tsx",
+ "source:src/workbench/widget-frame/WidgetBar.tsx",
+ "source:src/workbench/widget-frame/WidgetEnableMenu.tsx",
+ "source:src/workbench/widget-frame/WidgetFailureBoundary.tsx",
+ "source:src/workbench/widget-frame/WidgetFrames.tsx",
+ "source:src/workbench/widget-frame/WidgetHosts.tsx",
+ "source:src/workbench/widget-frame/WidgetIdentityIcon.tsx",
+ "source:src/workbench/widget-frame/WidgetInstanceContextMenu.tsx",
+ "source:src/workbench/widget-frame/WidgetLoadingFallback.tsx",
+ "source:src/workbench/widget-frame/WidgetRegionDropOverlay.tsx",
+ "source:src/workbench/widget-frame/WidgetRenderer.tsx",
+ "source:src/workbench/widget-frame/WidgetStrip.tsx",
+ "source:src/workbench/widget-frame/createWidgetRuntime.ts",
+ "source:src/workbench/widget-frame/index.ts",
+ "source:src/workbench/widget-frame/useWidgetIntentPreload.ts",
+ "source:src/workbench/widget-frame/useWidgetSortable.ts",
+ "source:src/workbench/widget-frame/widgetRenderInstance.ts",
+ "source:src/workbench/widgetDnd.ts",
+ "source:src/workbench/widgetImplementationResource.ts",
+ "source:src/workbench/widgetLabels.ts",
+ "source:src/workbench/widgetPlacementCommands.ts",
+ "source:src/workbench/widgetPlacementMeta.ts",
+ "source:src/workbench/widgetRegionViewModel.ts",
+ "source:src/workbench/widgetRegistry.ts",
+ "source:src/workbench/widgetState.ts",
+ "source:src/workbench/widgets/autosave-status/manifest.ts",
+ "source:src/workbench/widgets/canvas/bboxGrid.ts",
+ "source:src/workbench/widgets/canvas/invoke/canvasCompositing.ts",
+ "source:src/workbench/widgets/canvas/invoke/canvasStrength.ts",
+ "source:src/workbench/widgets/canvas/manifest.ts",
+ "source:src/workbench/widgets/diagnostics/manifest.ts",
+ "source:src/workbench/widgets/gallery/manifest.ts",
+ "source:src/workbench/widgets/generate/manifest.ts",
+ "source:src/workbench/widgets/layers/manifest.ts",
+ "source:src/workbench/widgets/notifications/manifest.ts",
+ "source:src/workbench/widgets/preview/manifest.ts",
+ "source:src/workbench/widgets/project/manifest.ts",
+ "source:src/workbench/widgets/queue/manifest.ts",
+ "source:src/workbench/widgets/server-status/manifest.ts",
+ "source:src/workbench/widgets/upscale/manifest.ts",
+ "source:src/workbench/widgets/version-status/manifest.ts",
+ "source:src/workbench/widgets/workflow/manifest.ts",
+ "source:src/workbench/workbenchState.ts",
+ "source:src/workbench/workbenchStore.ts"
+ ]
+ },
+ "limits": {
+ "brotliBytes": 1035087,
+ "cssRawBytes": 17747,
+ "fontRawBytes": 221675,
+ "gzipBytes": 1033854,
+ "imageRawBytes": 157940,
+ "initialRawBytes": 2558686,
+ "largestAssetRawBytes": 780306,
+ "otherAssetRawBytes": 0,
+ "ownedRawBytes": 105798,
+ "requestCount": 73,
+ "scriptRequestCount": 57
+ },
"owner": "workbench",
"remediationTicket": "deepen-widget-registry-loading",
- "baselineOwnedRawBytes": 105356,
- "baselineInitialRawBytes": 2127220,
- "baselineGzipBytes": 639432,
- "baselineBrotliBytes": 640736,
- "initialChunkNames": [
- "GalleryUiContext",
- "ModelsUiContext",
- "QueueUiContext",
- "Tooltip",
- "UpscaleUiContext",
- "WorkbenchApp",
- "WorkbenchContext",
- "WorkbenchWidgetRegistryContext",
- "WorkflowUiContext",
- "baseGenerationPolicies",
- "bboxGrid",
- "canvasCompositing",
- "canvasStrength",
- "chakra",
- "client",
- "document",
- "draftRegistry",
- "externalStore",
- "fields",
- "formatRelativeTime",
- "galleryStateView",
- "generateFormViewModel",
- "generationMeta",
- "graph",
- "http",
- "identity",
- "models",
- "nodesStore",
- "preload-helper",
- "promptAttentionHotkeys",
- "promptHistory",
- "promptHistoryNavigation",
- "queueMenuActions",
- "queueScope",
- "react",
- "react",
- "react",
- "react",
- "rolldown-runtime",
- "selection",
- "settings",
- "settingsDialogStore",
- "shared",
- "socketHub",
- "submissionApi",
- "submissionRules",
- "system",
- "ui",
- "useMountEffect",
- "useNotify",
- "useOpenWorkbenchWidget",
- "useProjectActions",
- "utility",
- "vendor",
- "widget-frame",
- "widgetState",
- "workbenchState"
- ],
- "maxGrowthPercent": 0.02,
- "maxGrowthRawBytes": 20480,
- "finalOwnedRawBytesTarget": 848529,
- "finalReductionPercent": 0.3
+ "source": "src/app/WorkbenchApp.tsx"
}
},
- "structural": {
- "launchpadForbiddenInitialSources": [
- "src/app/WorkbenchApp.tsx",
- "src/features/models/ui/ModelManagerView.tsx",
- "src/features/nodes/ui/NodeManagerView.tsx",
- "_ag-psd"
- ],
- "editorForbiddenInitialChunkNames": ["ag-psd"],
- "inactiveWidgetGateOwner": "deepen-widget-registry-loading"
- },
+ "capturedAt": "2026-07-26",
"developmentInvalidation": {
"platformUiBarrel": {
"specifier": "@platform/ui",
@@ -164,5 +854,16 @@
"remediationTicket": "define-gallery-feature",
"maxDirectImporters": 1
}
+ },
+ "schemaVersion": 2,
+ "structural": {
+ "launchpadForbiddenInitialSources": [
+ "_ag-psd",
+ "src/app/WorkbenchApp.tsx",
+ "src/features/models/ui/ModelManagerView.tsx",
+ "src/features/nodes/ui/NodeManagerView.tsx"
+ ],
+ "editorForbiddenInitialChunkNames": ["ag-psd"],
+ "inactiveWidgetGateOwner": "deepen-widget-registry-loading"
}
}
diff --git a/invokeai/frontend/webv2/performance/architecture-fixtures.json b/invokeai/frontend/webv2/performance/architecture-fixtures.json
index fac175602e..adb73287aa 100644
--- a/invokeai/frontend/webv2/performance/architecture-fixtures.json
+++ b/invokeai/frontend/webv2/performance/architecture-fixtures.json
@@ -1,18 +1,63 @@
{
- "schemaVersion": 1,
- "samples": 5,
+ "schemaVersion": 2,
+ "scoredSamples": 5,
+ "traceSamples": 1,
"warmups": 1,
+ "stateProfiles": {
+ "empty": {
+ "images": 0,
+ "layers": 0,
+ "models": 0,
+ "nodes": 0,
+ "projects": 0,
+ "queueItems": 0,
+ "workflowNodes": 0
+ },
+ "representative": {
+ "images": 1000,
+ "layers": 64,
+ "models": 100,
+ "nodes": 100,
+ "projects": 40,
+ "queueItems": 500,
+ "workflowNodes": 100
+ }
+ },
"routes": [
{
"id": "launchpad",
+ "stateProfile": "empty",
"owner": "app",
"path": "/#/",
+ "readyMark": "invokeai:ready:launchpad",
+ "remediationTicket": "set-performance-budgets"
+ },
+ {
+ "id": "launchpad",
+ "stateProfile": "representative",
+ "owner": "app",
+ "path": "/#/",
+ "readyMark": "invokeai:ready:launchpad",
"remediationTicket": "set-performance-budgets"
},
{
"id": "editor-minimal",
+ "stateProfile": "empty",
"owner": "workbench",
"path": "/#/app?new=true",
+ "readyMark": "invokeai:ready:widget:center:preview",
+ "expectedScriptPattern": "WorkbenchApp-",
+ "measureProjectSwitch": true,
+ "requiredWidgetRequests": ["GalleryImageActionsBridge", "widget:generate", "widget:preview", "widget:gallery"],
+ "forbiddenWidgetRequests": ["widget:canvas", "widget:layers", "widget:project", "widget:upscale"],
+ "remediationTicket": "deepen-widget-registry-loading"
+ },
+ {
+ "id": "editor-minimal",
+ "stateProfile": "representative",
+ "owner": "workbench",
+ "path": "/#/app?project=fixture-project-001",
+ "readyMark": "invokeai:ready:widget:center:preview",
"expectedScriptPattern": "WorkbenchApp-",
"measureProjectSwitch": true,
"requiredWidgetRequests": ["GalleryImageActionsBridge", "widget:generate", "widget:preview", "widget:gallery"],
@@ -21,8 +66,22 @@
},
{
"id": "editor-canvas",
+ "stateProfile": "empty",
"owner": "canvas",
"path": "/#/app?new=true",
+ "readyMark": "invokeai:ready:widget:center:canvas",
+ "expectedScriptPattern": "WorkbenchApp-",
+ "layoutPreset": "Canvas",
+ "requiredWidgetRequests": ["GalleryImageActionsBridge", "widget:canvas", "widget:layers"],
+ "forbiddenWidgetRequests": ["widget:project", "widget:upscale"],
+ "remediationTicket": "deepen-widget-registry-loading"
+ },
+ {
+ "id": "editor-canvas",
+ "stateProfile": "representative",
+ "owner": "canvas",
+ "path": "/#/app?project=fixture-project-001",
+ "readyMark": "invokeai:ready:widget:center:canvas",
"expectedScriptPattern": "WorkbenchApp-",
"layoutPreset": "Canvas",
"requiredWidgetRequests": ["GalleryImageActionsBridge", "widget:canvas", "widget:layers"],
@@ -31,8 +90,22 @@
},
{
"id": "editor-workflow",
+ "stateProfile": "empty",
"owner": "workflow",
"path": "/#/app?new=true",
+ "readyMark": "invokeai:ready:widget:center:workflow",
+ "expectedScriptPattern": "WorkbenchApp-",
+ "layoutPreset": "Workflow",
+ "requiredWidgetRequests": ["GalleryImageActionsBridge", "widget:workflow", "widget:queue"],
+ "forbiddenWidgetRequests": ["widget:canvas", "widget:layers", "widget:project", "widget:upscale"],
+ "remediationTicket": "deepen-widget-registry-loading"
+ },
+ {
+ "id": "editor-workflow",
+ "stateProfile": "representative",
+ "owner": "workflow",
+ "path": "/#/app?project=fixture-project-001",
+ "readyMark": "invokeai:ready:widget:center:workflow",
"expectedScriptPattern": "WorkbenchApp-",
"layoutPreset": "Workflow",
"requiredWidgetRequests": ["GalleryImageActionsBridge", "widget:workflow", "widget:queue"],
@@ -41,8 +114,22 @@
},
{
"id": "editor-gallery",
+ "stateProfile": "empty",
"owner": "gallery",
"path": "/#/app?new=true",
+ "readyMark": "invokeai:ready:widget:center:gallery",
+ "expectedScriptPattern": "WorkbenchApp-",
+ "layoutPreset": "Gallery",
+ "requiredWidgetRequests": ["GalleryImageActionsBridge", "widget:gallery", "widget:preview"],
+ "forbiddenWidgetRequests": ["widget:canvas", "widget:layers", "widget:project", "widget:upscale"],
+ "remediationTicket": "deepen-widget-registry-loading"
+ },
+ {
+ "id": "editor-gallery",
+ "stateProfile": "representative",
+ "owner": "gallery",
+ "path": "/#/app?project=fixture-project-001",
+ "readyMark": "invokeai:ready:widget:center:gallery",
"expectedScriptPattern": "WorkbenchApp-",
"layoutPreset": "Gallery",
"requiredWidgetRequests": ["GalleryImageActionsBridge", "widget:gallery", "widget:preview"],
diff --git a/invokeai/frontend/webv2/performance/browser-baseline.json b/invokeai/frontend/webv2/performance/browser-baseline.json
index 32c60549f0..67d8813273 100644
--- a/invokeai/frontend/webv2/performance/browser-baseline.json
+++ b/invokeai/frontend/webv2/performance/browser-baseline.json
@@ -1,477 +1,2561 @@
{
"browserExecutable": "/home/toast/.cache/ms-playwright/chromium-1228/chrome-linux64/chrome",
- "capturedAt": "2026-07-17",
+ "capturedAt": "2026-07-26",
"routes": [
{
- "domContentLoadedMedianMs": 100.39999999850988,
+ "activatedResourceBaseline": {
+ "cssRawBytes": 0,
+ "fontRawBytes": 0,
+ "imageRawBytes": 0,
+ "largestAssetRawBytes": 0,
+ "otherRawBytes": 0,
+ "requestCount": 0,
+ "scriptRawBytes": 0,
+ "scriptRequestCount": 0,
+ "totalRawBytes": 0
+ },
+ "activatedResourceLimits": {
+ "cssRawBytes": 0,
+ "fontRawBytes": 0,
+ "imageRawBytes": 0,
+ "largestAssetRawBytes": 0,
+ "otherRawBytes": 0,
+ "requestCount": 0,
+ "scriptRawBytes": 0,
+ "scriptRequestCount": 0,
+ "totalRawBytes": 0
+ },
+ "domContentLoadedMedianMs": 160.10000000149012,
"id": "launchpad",
- "loadMedianMs": 100.39999999850988,
- "longestTaskMaxMs": 71,
"layoutSwitchMedianMs": 0,
+ "loadMedianMs": 160.10000000149012,
+ "longestTaskMaxMs": 93,
+ "owner": "app",
"projectSwitchMedianMs": 0,
+ "readyMark": "invokeai:ready:launchpad",
+ "remediationTicket": "set-performance-budgets",
+ "resourceBaseline": {
+ "cssRawBytes": 17571,
+ "fontRawBytes": 23664,
+ "imageRawBytes": 0,
+ "largestAssetRawBytes": 772580,
+ "otherRawBytes": 90842,
+ "requestCount": 39,
+ "scriptRawBytes": 1962731,
+ "scriptRequestCount": 35,
+ "totalRawBytes": 2094808
+ },
+ "resourceLimits": {
+ "cssRawBytes": 17747,
+ "fontRawBytes": 23901,
+ "imageRawBytes": 0,
+ "largestAssetRawBytes": 780306,
+ "otherRawBytes": 91751,
+ "requestCount": 39,
+ "scriptRawBytes": 1982359,
+ "scriptRequestCount": 35,
+ "totalRawBytes": 2115757
+ },
+ "routeReadyMedianMs": 332.6000000014901,
+ "stateProfile": "empty",
+ "scriptSourceOwnerSet": "launchpad-static"
+ },
+ {
+ "activatedResourceBaseline": {
+ "cssRawBytes": 0,
+ "fontRawBytes": 0,
+ "imageRawBytes": 0,
+ "largestAssetRawBytes": 0,
+ "otherRawBytes": 0,
+ "requestCount": 0,
+ "scriptRawBytes": 0,
+ "scriptRequestCount": 0,
+ "totalRawBytes": 0
+ },
+ "activatedResourceLimits": {
+ "cssRawBytes": 0,
+ "fontRawBytes": 0,
+ "imageRawBytes": 0,
+ "largestAssetRawBytes": 0,
+ "otherRawBytes": 0,
+ "requestCount": 0,
+ "scriptRawBytes": 0,
+ "scriptRequestCount": 0,
+ "totalRawBytes": 0
+ },
+ "domContentLoadedMedianMs": 160.70000000298023,
+ "id": "launchpad",
+ "layoutSwitchMedianMs": 0,
+ "loadMedianMs": 160.70000000298023,
+ "longestTaskMaxMs": 88,
"owner": "app",
+ "projectSwitchMedianMs": 0,
+ "readyMark": "invokeai:ready:launchpad",
"remediationTicket": "set-performance-budgets",
- "routeReadyMedianMs": 201.89999999850988,
- "scriptRequests": [
- "ModelsUiContext",
- "Tooltip",
- "UpscaleUiContext",
- "WorkbenchContext",
- "WorkflowUiContext",
- "baseGenerationPolicies",
- "chakra",
- "client",
- "document",
- "externalStore",
- "fields",
- "formatRelativeTime",
- "galleryStateView",
- "graph",
- "http",
- "identity",
- "index",
- "models",
- "nodesStore",
- "preload-helper",
- "promptHistory",
- "react",
- "rolldown-runtime",
- "settings",
- "settingsDialogStore",
- "shared",
- "socketHub",
- "submissionRules",
- "system",
- "ui",
- "useMountEffect",
- "utility",
- "vendor",
- "widgetState",
- "workbenchState"
- ]
+ "resourceBaseline": {
+ "cssRawBytes": 17571,
+ "fontRawBytes": 23664,
+ "imageRawBytes": 0,
+ "largestAssetRawBytes": 772580,
+ "otherRawBytes": 90842,
+ "requestCount": 39,
+ "scriptRawBytes": 1962731,
+ "scriptRequestCount": 35,
+ "totalRawBytes": 2094808
+ },
+ "resourceLimits": {
+ "cssRawBytes": 17747,
+ "fontRawBytes": 23901,
+ "imageRawBytes": 0,
+ "largestAssetRawBytes": 780306,
+ "otherRawBytes": 91751,
+ "requestCount": 39,
+ "scriptRawBytes": 1982359,
+ "scriptRequestCount": 35,
+ "totalRawBytes": 2115757
+ },
+ "routeReadyMedianMs": 385.70000000298023,
+ "stateProfile": "representative",
+ "scriptSourceOwnerSet": "launchpad-static"
+ },
+ {
+ "activatedResourceBaseline": {
+ "cssRawBytes": 0,
+ "fontRawBytes": 0,
+ "imageRawBytes": 0,
+ "largestAssetRawBytes": 0,
+ "otherRawBytes": 0,
+ "requestCount": 0,
+ "scriptRawBytes": 0,
+ "scriptRequestCount": 0,
+ "totalRawBytes": 0
+ },
+ "activatedResourceLimits": {
+ "cssRawBytes": 0,
+ "fontRawBytes": 0,
+ "imageRawBytes": 0,
+ "largestAssetRawBytes": 0,
+ "otherRawBytes": 0,
+ "requestCount": 0,
+ "scriptRawBytes": 0,
+ "scriptRequestCount": 0,
+ "totalRawBytes": 0
+ },
+ "domContentLoadedMedianMs": 164.39999999850988,
+ "id": "editor-minimal",
+ "layoutSwitchMedianMs": 0,
+ "loadMedianMs": 164.39999999850988,
+ "longestTaskMaxMs": 158,
+ "owner": "workbench",
+ "projectSwitchMedianMs": 68.63431200000014,
+ "readyMark": "invokeai:ready:widget:center:preview",
+ "remediationTicket": "deepen-widget-registry-loading",
+ "resourceBaseline": {
+ "cssRawBytes": 17571,
+ "fontRawBytes": 23664,
+ "imageRawBytes": 156376,
+ "largestAssetRawBytes": 772580,
+ "otherRawBytes": 90842,
+ "requestCount": 95,
+ "scriptRawBytes": 2936802,
+ "scriptRequestCount": 90,
+ "totalRawBytes": 3225255
+ },
+ "resourceLimits": {
+ "cssRawBytes": 17747,
+ "fontRawBytes": 23901,
+ "imageRawBytes": 157940,
+ "largestAssetRawBytes": 780306,
+ "otherRawBytes": 91751,
+ "requestCount": 95,
+ "scriptRawBytes": 2966171,
+ "scriptRequestCount": 90,
+ "totalRawBytes": 3257508
+ },
+ "routeReadyMedianMs": 695.1999999955297,
+ "stateProfile": "empty",
+ "scriptSourceOwnerSet": "editor-minimal-static"
},
{
- "domContentLoadedMedianMs": 98.09999999962747,
+ "activatedResourceBaseline": {
+ "cssRawBytes": 0,
+ "fontRawBytes": 0,
+ "imageRawBytes": 0,
+ "largestAssetRawBytes": 0,
+ "otherRawBytes": 0,
+ "requestCount": 0,
+ "scriptRawBytes": 0,
+ "scriptRequestCount": 0,
+ "totalRawBytes": 0
+ },
+ "activatedResourceLimits": {
+ "cssRawBytes": 0,
+ "fontRawBytes": 0,
+ "imageRawBytes": 0,
+ "largestAssetRawBytes": 0,
+ "otherRawBytes": 0,
+ "requestCount": 0,
+ "scriptRawBytes": 0,
+ "scriptRequestCount": 0,
+ "totalRawBytes": 0
+ },
+ "domContentLoadedMedianMs": 161.39999999850988,
"id": "editor-minimal",
- "loadMedianMs": 98.19999999925494,
- "longestTaskMaxMs": 101,
"layoutSwitchMedianMs": 0,
- "projectSwitchMedianMs": 96.19550400000026,
+ "loadMedianMs": 161.39999999850988,
+ "longestTaskMaxMs": 161,
"owner": "workbench",
+ "projectSwitchMedianMs": 104.04410999999891,
+ "readyMark": "invokeai:ready:widget:center:preview",
"remediationTicket": "deepen-widget-registry-loading",
- "routeReadyMedianMs": 622.3999999985099,
- "scriptRequests": [
- "GalleryImageActionsBridge",
- "GalleryUiContext",
- "ModelSelect",
- "ModelsUiContext",
- "QueueUiContext",
- "ReferenceImageControls",
- "StreamingImageFrame",
- "Tooltip",
- "UpscaleUiContext",
- "WorkbenchApp",
- "WorkbenchContext",
- "WorkbenchWidgetRegistryContext",
- "WorkflowUiContext",
- "api",
- "api",
- "backend",
- "baseGenerationPolicies",
- "bboxGrid",
- "canvasCompositing",
- "canvasImportError",
- "canvasStrength",
- "chakra",
- "client",
- "document",
- "draftRegistry",
- "executeImageRecall",
- "externalStore",
- "fields",
- "formatRelativeTime",
- "gallery",
- "galleryDnd",
- "galleryStateView",
- "generateFormViewModel",
- "generationMeta",
- "graph",
- "graph-preview",
- "http",
- "identity",
- "image-actions",
- "index",
- "modelSelectionNotice",
- "models",
- "nodeChrome",
- "nodesStore",
- "preload-helper",
- "promptAttentionHotkeys",
- "promptHistory",
- "promptHistoryNavigation",
- "queries",
- "queries",
- "queueMenuActions",
- "queueScope",
- "react",
- "react",
- "react",
- "react",
- "react",
- "rolldown-runtime",
- "selectedImage",
- "selection",
- "settings",
- "settingsDialogStore",
- "shared",
- "socketHub",
- "submissionApi",
- "submissionRules",
- "system",
- "ui",
- "useModifierHeld",
- "useMountEffect",
- "useNotify",
- "useOpenWorkbenchWidget",
- "useProjectActions",
- "useStreamingImageSource",
- "utility",
- "utility",
- "vendor",
- "widget-frame",
- "widget:autosave-status",
- "widget:diagnostics",
- "widget:gallery",
- "widget:generate",
- "widget:notifications",
- "widget:preview",
- "widget:queue",
- "widget:server-status",
- "widget:version-status",
- "widget:workflow",
- "widgetState",
- "workbenchState"
- ]
+ "resourceBaseline": {
+ "cssRawBytes": 17571,
+ "fontRawBytes": 23664,
+ "imageRawBytes": 156376,
+ "largestAssetRawBytes": 772580,
+ "otherRawBytes": 90842,
+ "requestCount": 95,
+ "scriptRawBytes": 2936802,
+ "scriptRequestCount": 90,
+ "totalRawBytes": 3225255
+ },
+ "resourceLimits": {
+ "cssRawBytes": 17747,
+ "fontRawBytes": 23901,
+ "imageRawBytes": 157940,
+ "largestAssetRawBytes": 780306,
+ "otherRawBytes": 91751,
+ "requestCount": 95,
+ "scriptRawBytes": 2966171,
+ "scriptRequestCount": 90,
+ "totalRawBytes": 3257508
+ },
+ "routeReadyMedianMs": 722.1000000014901,
+ "stateProfile": "representative",
+ "scriptSourceOwnerSet": "editor-minimal-static"
},
{
- "domContentLoadedMedianMs": 98.69999999925494,
+ "activatedResourceBaseline": {
+ "cssRawBytes": 0,
+ "fontRawBytes": 0,
+ "imageRawBytes": 0,
+ "largestAssetRawBytes": 136308,
+ "otherRawBytes": 0,
+ "requestCount": 7,
+ "scriptRawBytes": 290017,
+ "scriptRequestCount": 7,
+ "totalRawBytes": 290017
+ },
+ "activatedResourceLimits": {
+ "cssRawBytes": 0,
+ "fontRawBytes": 0,
+ "imageRawBytes": 0,
+ "largestAssetRawBytes": 137672,
+ "otherRawBytes": 0,
+ "requestCount": 7,
+ "scriptRawBytes": 292918,
+ "scriptRequestCount": 7,
+ "totalRawBytes": 292918
+ },
+ "domContentLoadedMedianMs": 172.40000000596046,
"id": "editor-canvas",
- "loadMedianMs": 98.69999999925494,
- "longestTaskMaxMs": 102,
- "layoutSwitchMedianMs": 380.05792999999994,
+ "layoutSwitchMedianMs": 659.1999999955297,
+ "loadMedianMs": 172.40000000596046,
+ "longestTaskMaxMs": 150,
+ "owner": "canvas",
"projectSwitchMedianMs": 0,
+ "readyMark": "invokeai:ready:widget:center:canvas",
+ "remediationTicket": "deepen-widget-registry-loading",
+ "resourceBaseline": {
+ "cssRawBytes": 17571,
+ "fontRawBytes": 23664,
+ "imageRawBytes": 156376,
+ "largestAssetRawBytes": 772580,
+ "otherRawBytes": 90842,
+ "requestCount": 99,
+ "scriptRawBytes": 3212520,
+ "scriptRequestCount": 94,
+ "totalRawBytes": 3500973
+ },
+ "resourceLimits": {
+ "cssRawBytes": 17747,
+ "fontRawBytes": 23901,
+ "imageRawBytes": 157940,
+ "largestAssetRawBytes": 780306,
+ "otherRawBytes": 91751,
+ "requestCount": 99,
+ "scriptRawBytes": 3244646,
+ "scriptRequestCount": 94,
+ "totalRawBytes": 3535983
+ },
+ "routeReadyMedianMs": 1202.8999999985099,
+ "stateProfile": "empty",
+ "scriptSourceOwnerSet": "editor-canvas-static"
+ },
+ {
+ "activatedResourceBaseline": {
+ "cssRawBytes": 0,
+ "fontRawBytes": 0,
+ "imageRawBytes": 0,
+ "largestAssetRawBytes": 136308,
+ "otherRawBytes": 0,
+ "requestCount": 7,
+ "scriptRawBytes": 290017,
+ "scriptRequestCount": 7,
+ "totalRawBytes": 290017
+ },
+ "activatedResourceLimits": {
+ "cssRawBytes": 0,
+ "fontRawBytes": 0,
+ "imageRawBytes": 0,
+ "largestAssetRawBytes": 137672,
+ "otherRawBytes": 0,
+ "requestCount": 7,
+ "scriptRawBytes": 292918,
+ "scriptRequestCount": 7,
+ "totalRawBytes": 292918
+ },
+ "domContentLoadedMedianMs": 169.29999999701977,
+ "id": "editor-canvas",
+ "layoutSwitchMedianMs": 873.1000000014901,
+ "loadMedianMs": 169.39999999850988,
+ "longestTaskMaxMs": 2188,
"owner": "canvas",
+ "projectSwitchMedianMs": 0,
+ "readyMark": "invokeai:ready:widget:center:canvas",
"remediationTicket": "deepen-widget-registry-loading",
- "routeReadyMedianMs": 759.5,
- "scriptRequests": [
- "GalleryImageActionsBridge",
- "GalleryUiContext",
- "LayerContextMenu",
- "ModelSelect",
- "ModelsUiContext",
- "QueueUiContext",
- "ReferenceImageControls",
- "StreamingImageFrame",
- "Tooltip",
- "UpscaleUiContext",
- "WorkbenchApp",
- "WorkbenchContext",
- "WorkbenchWidgetRegistryContext",
- "WorkflowUiContext",
- "api",
- "api",
- "backend",
- "baseGenerationPolicies",
- "bboxGrid",
- "canvasCompositing",
- "canvasImportError",
- "canvasStrength",
- "chakra",
- "client",
- "components",
- "document",
- "draftRegistry",
- "executeImageRecall",
- "externalStore",
- "fields",
- "formatRelativeTime",
- "gallery",
- "galleryDnd",
- "galleryStateView",
- "generateFormViewModel",
- "generationMeta",
- "graph",
- "graph-preview",
- "http",
- "identity",
- "image-actions",
- "index",
- "modelSelectionNotice",
- "models",
- "nodeChrome",
- "nodesStore",
- "preload-helper",
- "promptAttentionHotkeys",
- "promptHistory",
- "promptHistoryNavigation",
- "queries",
- "queries",
- "queueMenuActions",
- "queueScope",
- "react",
- "react",
- "react",
- "react",
- "react",
- "rolldown-runtime",
- "selectedImage",
- "selection",
- "settings",
- "settingsDialogStore",
- "shared",
- "socketHub",
- "submissionApi",
- "submissionRules",
- "system",
- "ui",
- "useModifierHeld",
- "useMountEffect",
- "useNotify",
- "useOpenWorkbenchWidget",
- "useProjectActions",
- "useStreamingImageSource",
- "utility",
- "utility",
- "vendor",
- "widget-frame",
- "widget:autosave-status",
- "widget:canvas",
- "widget:diagnostics",
- "widget:gallery",
- "widget:generate",
- "widget:layers",
- "widget:notifications",
- "widget:preview",
- "widget:queue",
- "widget:server-status",
- "widget:version-status",
- "widget:workflow",
- "widgetState",
- "workbenchState"
- ]
+ "resourceBaseline": {
+ "cssRawBytes": 17571,
+ "fontRawBytes": 23664,
+ "imageRawBytes": 156376,
+ "largestAssetRawBytes": 772580,
+ "otherRawBytes": 90842,
+ "requestCount": 99,
+ "scriptRawBytes": 3212520,
+ "scriptRequestCount": 94,
+ "totalRawBytes": 3500973
+ },
+ "resourceLimits": {
+ "cssRawBytes": 17747,
+ "fontRawBytes": 23901,
+ "imageRawBytes": 157940,
+ "largestAssetRawBytes": 780306,
+ "otherRawBytes": 91751,
+ "requestCount": 99,
+ "scriptRawBytes": 3244646,
+ "scriptRequestCount": 94,
+ "totalRawBytes": 3535983
+ },
+ "routeReadyMedianMs": 1472.8000000044703,
+ "stateProfile": "representative",
+ "scriptSourceOwnerSet": "editor-canvas-static"
},
{
- "domContentLoadedMedianMs": 98.09999999962747,
+ "activatedResourceBaseline": {
+ "cssRawBytes": 0,
+ "fontRawBytes": 0,
+ "imageRawBytes": 0,
+ "largestAssetRawBytes": 13264,
+ "otherRawBytes": 0,
+ "requestCount": 3,
+ "scriptRawBytes": 14299,
+ "scriptRequestCount": 3,
+ "totalRawBytes": 14299
+ },
+ "activatedResourceLimits": {
+ "cssRawBytes": 0,
+ "fontRawBytes": 0,
+ "imageRawBytes": 0,
+ "largestAssetRawBytes": 13397,
+ "otherRawBytes": 0,
+ "requestCount": 3,
+ "scriptRawBytes": 14442,
+ "scriptRequestCount": 3,
+ "totalRawBytes": 14442
+ },
+ "domContentLoadedMedianMs": 165.90000000596046,
"id": "editor-workflow",
- "loadMedianMs": 98.09999999962747,
- "longestTaskMaxMs": 103,
- "layoutSwitchMedianMs": 401.9641589999992,
+ "layoutSwitchMedianMs": 408.1000000014901,
+ "loadMedianMs": 165.90000000596046,
+ "longestTaskMaxMs": 146,
+ "owner": "workflow",
"projectSwitchMedianMs": 0,
+ "readyMark": "invokeai:ready:widget:center:workflow",
+ "remediationTicket": "deepen-widget-registry-loading",
+ "resourceBaseline": {
+ "cssRawBytes": 17571,
+ "fontRawBytes": 23664,
+ "imageRawBytes": 156376,
+ "largestAssetRawBytes": 772580,
+ "otherRawBytes": 90842,
+ "requestCount": 95,
+ "scriptRawBytes": 2936802,
+ "scriptRequestCount": 90,
+ "totalRawBytes": 3225255
+ },
+ "resourceLimits": {
+ "cssRawBytes": 17747,
+ "fontRawBytes": 23901,
+ "imageRawBytes": 157940,
+ "largestAssetRawBytes": 780306,
+ "otherRawBytes": 91751,
+ "requestCount": 95,
+ "scriptRawBytes": 2966171,
+ "scriptRequestCount": 90,
+ "totalRawBytes": 3257508
+ },
+ "routeReadyMedianMs": 932.5,
+ "stateProfile": "empty",
+ "scriptSourceOwnerSet": "editor-minimal-static"
+ },
+ {
+ "activatedResourceBaseline": {
+ "cssRawBytes": 0,
+ "fontRawBytes": 0,
+ "imageRawBytes": 0,
+ "largestAssetRawBytes": 13264,
+ "otherRawBytes": 0,
+ "requestCount": 3,
+ "scriptRawBytes": 14299,
+ "scriptRequestCount": 3,
+ "totalRawBytes": 14299
+ },
+ "activatedResourceLimits": {
+ "cssRawBytes": 0,
+ "fontRawBytes": 0,
+ "imageRawBytes": 0,
+ "largestAssetRawBytes": 13397,
+ "otherRawBytes": 0,
+ "requestCount": 3,
+ "scriptRawBytes": 14442,
+ "scriptRequestCount": 3,
+ "totalRawBytes": 14442
+ },
+ "domContentLoadedMedianMs": 170.60000000149012,
+ "id": "editor-workflow",
+ "layoutSwitchMedianMs": 639.7000000029802,
+ "loadMedianMs": 170.60000000149012,
+ "longestTaskMaxMs": 563,
"owner": "workflow",
+ "projectSwitchMedianMs": 0,
+ "readyMark": "invokeai:ready:widget:center:workflow",
"remediationTicket": "deepen-widget-registry-loading",
- "routeReadyMedianMs": 778.7000000011176,
- "scriptRequests": [
- "GalleryImageActionsBridge",
- "GalleryUiContext",
- "ModelSelect",
- "ModelsUiContext",
- "QueueUiContext",
- "ReferenceImageControls",
- "StreamingImageFrame",
- "Tooltip",
- "UpscaleUiContext",
- "WorkbenchApp",
- "WorkbenchContext",
- "WorkbenchWidgetRegistryContext",
- "WorkflowUiContext",
- "api",
- "api",
- "backend",
- "baseGenerationPolicies",
- "bboxGrid",
- "canvasCompositing",
- "canvasImportError",
- "canvasStrength",
- "chakra",
- "client",
- "document",
- "draftRegistry",
- "executeImageRecall",
- "externalStore",
- "fields",
- "formatRelativeTime",
- "gallery",
- "galleryDnd",
- "galleryStateView",
- "generateFormViewModel",
- "generationMeta",
- "graph",
- "graph-preview",
- "http",
- "identity",
- "image-actions",
- "index",
- "modelSelectionNotice",
- "models",
- "nodeChrome",
- "nodesStore",
- "preload-helper",
- "promptAttentionHotkeys",
- "promptHistory",
- "promptHistoryNavigation",
- "queries",
- "queries",
- "queueMenuActions",
- "queueScope",
- "react",
- "react",
- "react",
- "react",
- "react",
- "rolldown-runtime",
- "selectedImage",
- "selection",
- "settings",
- "settingsDialogStore",
- "shared",
- "socketHub",
- "submissionApi",
- "submissionRules",
- "system",
- "ui",
- "useModifierHeld",
- "useMountEffect",
- "useNotify",
- "useOpenWorkbenchWidget",
- "useProjectActions",
- "useStreamingImageSource",
- "utility",
- "utility",
- "vendor",
- "widget-frame",
- "widget:autosave-status",
- "widget:diagnostics",
- "widget:gallery",
- "widget:generate",
- "widget:notifications",
- "widget:preview",
- "widget:queue",
- "widget:server-status",
- "widget:version-status",
- "widget:workflow",
- "widgetState",
- "workbenchState"
- ]
+ "resourceBaseline": {
+ "cssRawBytes": 17571,
+ "fontRawBytes": 23664,
+ "imageRawBytes": 156376,
+ "largestAssetRawBytes": 772580,
+ "otherRawBytes": 90842,
+ "requestCount": 95,
+ "scriptRawBytes": 2936802,
+ "scriptRequestCount": 90,
+ "totalRawBytes": 3225255
+ },
+ "resourceLimits": {
+ "cssRawBytes": 17747,
+ "fontRawBytes": 23901,
+ "imageRawBytes": 157940,
+ "largestAssetRawBytes": 780306,
+ "otherRawBytes": 91751,
+ "requestCount": 95,
+ "scriptRawBytes": 2966171,
+ "scriptRequestCount": 90,
+ "totalRawBytes": 3257508
+ },
+ "routeReadyMedianMs": 1239.2000000029802,
+ "stateProfile": "representative",
+ "scriptSourceOwnerSet": "editor-minimal-static"
},
{
- "domContentLoadedMedianMs": 98.70000000111759,
+ "activatedResourceBaseline": {
+ "cssRawBytes": 0,
+ "fontRawBytes": 0,
+ "imageRawBytes": 0,
+ "largestAssetRawBytes": 13264,
+ "otherRawBytes": 0,
+ "requestCount": 3,
+ "scriptRawBytes": 14299,
+ "scriptRequestCount": 3,
+ "totalRawBytes": 14299
+ },
+ "activatedResourceLimits": {
+ "cssRawBytes": 0,
+ "fontRawBytes": 0,
+ "imageRawBytes": 0,
+ "largestAssetRawBytes": 13397,
+ "otherRawBytes": 0,
+ "requestCount": 3,
+ "scriptRawBytes": 14442,
+ "scriptRequestCount": 3,
+ "totalRawBytes": 14442
+ },
+ "domContentLoadedMedianMs": 162.89999999850988,
"id": "editor-gallery",
- "loadMedianMs": 98.80000000074506,
- "longestTaskMaxMs": 101,
- "layoutSwitchMedianMs": 377.6442669999997,
+ "layoutSwitchMedianMs": 331.29999999701977,
+ "loadMedianMs": 163,
+ "longestTaskMaxMs": 138,
+ "owner": "gallery",
"projectSwitchMedianMs": 0,
+ "readyMark": "invokeai:ready:widget:center:gallery",
+ "remediationTicket": "deepen-widget-registry-loading",
+ "resourceBaseline": {
+ "cssRawBytes": 17571,
+ "fontRawBytes": 23664,
+ "imageRawBytes": 156376,
+ "largestAssetRawBytes": 772580,
+ "otherRawBytes": 90842,
+ "requestCount": 95,
+ "scriptRawBytes": 2936802,
+ "scriptRequestCount": 90,
+ "totalRawBytes": 3225255
+ },
+ "resourceLimits": {
+ "cssRawBytes": 17747,
+ "fontRawBytes": 23901,
+ "imageRawBytes": 157940,
+ "largestAssetRawBytes": 780306,
+ "otherRawBytes": 91751,
+ "requestCount": 95,
+ "scriptRawBytes": 2966171,
+ "scriptRequestCount": 90,
+ "totalRawBytes": 3257508
+ },
+ "routeReadyMedianMs": 839.1999999955297,
+ "stateProfile": "empty",
+ "scriptSourceOwnerSet": "editor-minimal-static"
+ },
+ {
+ "activatedResourceBaseline": {
+ "cssRawBytes": 0,
+ "fontRawBytes": 0,
+ "imageRawBytes": 0,
+ "largestAssetRawBytes": 13264,
+ "otherRawBytes": 0,
+ "requestCount": 3,
+ "scriptRawBytes": 14299,
+ "scriptRequestCount": 3,
+ "totalRawBytes": 14299
+ },
+ "activatedResourceLimits": {
+ "cssRawBytes": 0,
+ "fontRawBytes": 0,
+ "imageRawBytes": 0,
+ "largestAssetRawBytes": 13397,
+ "otherRawBytes": 0,
+ "requestCount": 3,
+ "scriptRawBytes": 14442,
+ "scriptRequestCount": 3,
+ "totalRawBytes": 14442
+ },
+ "domContentLoadedMedianMs": 187.5,
+ "id": "editor-gallery",
+ "layoutSwitchMedianMs": 491.3999999985099,
+ "loadMedianMs": 187.5,
+ "longestTaskMaxMs": 325,
"owner": "gallery",
+ "projectSwitchMedianMs": 0,
+ "readyMark": "invokeai:ready:widget:center:gallery",
"remediationTicket": "deepen-widget-registry-loading",
- "routeReadyMedianMs": 750.6000000014901,
- "scriptRequests": [
- "GalleryImageActionsBridge",
- "GalleryUiContext",
- "ModelSelect",
- "ModelsUiContext",
- "QueueUiContext",
- "ReferenceImageControls",
- "StreamingImageFrame",
- "Tooltip",
- "UpscaleUiContext",
- "WorkbenchApp",
- "WorkbenchContext",
- "WorkbenchWidgetRegistryContext",
- "WorkflowUiContext",
- "api",
- "api",
- "backend",
- "baseGenerationPolicies",
- "bboxGrid",
- "canvasCompositing",
- "canvasImportError",
- "canvasStrength",
- "chakra",
- "client",
- "document",
- "draftRegistry",
- "executeImageRecall",
- "externalStore",
- "fields",
- "formatRelativeTime",
- "gallery",
- "galleryDnd",
- "galleryStateView",
- "generateFormViewModel",
- "generationMeta",
- "graph",
- "graph-preview",
- "http",
- "identity",
- "image-actions",
- "index",
- "modelSelectionNotice",
- "models",
- "nodeChrome",
- "nodesStore",
- "preload-helper",
- "promptAttentionHotkeys",
- "promptHistory",
- "promptHistoryNavigation",
- "queries",
- "queries",
- "queueMenuActions",
- "queueScope",
- "react",
- "react",
- "react",
- "react",
- "react",
- "rolldown-runtime",
- "selectedImage",
- "selection",
- "settings",
- "settingsDialogStore",
- "shared",
- "socketHub",
- "submissionApi",
- "submissionRules",
- "system",
- "ui",
- "useModifierHeld",
- "useMountEffect",
- "useNotify",
- "useOpenWorkbenchWidget",
- "useProjectActions",
- "useStreamingImageSource",
- "utility",
- "utility",
- "vendor",
- "widget-frame",
- "widget:autosave-status",
- "widget:diagnostics",
- "widget:gallery",
- "widget:generate",
- "widget:notifications",
- "widget:preview",
- "widget:queue",
- "widget:server-status",
- "widget:version-status",
- "widget:workflow",
- "widgetState",
- "workbenchState"
- ]
+ "resourceBaseline": {
+ "cssRawBytes": 17571,
+ "fontRawBytes": 23664,
+ "imageRawBytes": 156376,
+ "largestAssetRawBytes": 772580,
+ "otherRawBytes": 90842,
+ "requestCount": 95,
+ "scriptRawBytes": 2936802,
+ "scriptRequestCount": 90,
+ "totalRawBytes": 3225255
+ },
+ "resourceLimits": {
+ "cssRawBytes": 17747,
+ "fontRawBytes": 23901,
+ "imageRawBytes": 157940,
+ "largestAssetRawBytes": 780306,
+ "otherRawBytes": 91751,
+ "requestCount": 95,
+ "scriptRawBytes": 2966171,
+ "scriptRequestCount": 90,
+ "totalRawBytes": 3257508
+ },
+ "routeReadyMedianMs": 1130.1999999955297,
+ "stateProfile": "representative",
+ "scriptSourceOwnerSet": "editor-minimal-static"
}
],
- "samples": 5,
- "warmups": 1,
- "enforceTiming": false,
- "longTaskTargetMs": 50,
- "schemaVersion": 1,
- "timingStatus": "informational-until-ci-runner-is-stable",
- "timingTolerancePercent": 0.1
+ "sampling": {
+ "scoredSamples": 5,
+ "traceSamples": 1,
+ "warmups": 1
+ },
+ "schemaVersion": 2,
+ "timingPolicy": {
+ "enforce": false,
+ "longTaskTargetMs": 50,
+ "runner": {
+ "id": "unconfigured",
+ "minimumStableRuns": 20,
+ "observedStableRuns": 0,
+ "stable": false
+ },
+ "tolerancePercent": 0.1
+ },
+ "scriptSourceOwnerSets": {
+ "launchpad-static": [
+ "package:@ark-ui/react",
+ "package:@chakra-ui/react",
+ "package:@dnd-kit/accessibility",
+ "package:@dnd-kit/core",
+ "package:@dnd-kit/modifiers",
+ "package:@dnd-kit/sortable",
+ "package:@dnd-kit/utilities",
+ "package:@emotion/cache",
+ "package:@emotion/hash",
+ "package:@emotion/is-prop-valid",
+ "package:@emotion/memoize",
+ "package:@emotion/react",
+ "package:@emotion/serialize",
+ "package:@emotion/sheet",
+ "package:@emotion/unitless",
+ "package:@emotion/use-insertion-effect-with-fallbacks",
+ "package:@emotion/utils",
+ "package:@floating-ui/core",
+ "package:@floating-ui/dom",
+ "package:@floating-ui/utils",
+ "package:@fontsource/inter",
+ "package:@internationalized/number",
+ "package:@pandacss/is-valid-prop",
+ "package:@socket.io/component-emitter",
+ "package:@tanstack/history",
+ "package:@tanstack/query-core",
+ "package:@tanstack/react-query",
+ "package:@tanstack/react-router",
+ "package:@tanstack/react-store",
+ "package:@tanstack/react-virtual",
+ "package:@tanstack/router-core",
+ "package:@tanstack/store",
+ "package:@tanstack/virtual-core",
+ "package:@xyflow/react",
+ "package:@xyflow/system",
+ "package:@zag-js/accordion",
+ "package:@zag-js/anatomy",
+ "package:@zag-js/aria-hidden",
+ "package:@zag-js/auto-resize",
+ "package:@zag-js/avatar",
+ "package:@zag-js/carousel",
+ "package:@zag-js/checkbox",
+ "package:@zag-js/clipboard",
+ "package:@zag-js/collapsible",
+ "package:@zag-js/collection",
+ "package:@zag-js/color-picker",
+ "package:@zag-js/color-utils",
+ "package:@zag-js/combobox",
+ "package:@zag-js/core",
+ "package:@zag-js/date-picker",
+ "package:@zag-js/dialog",
+ "package:@zag-js/dismissable",
+ "package:@zag-js/dom-query",
+ "package:@zag-js/editable",
+ "package:@zag-js/file-upload",
+ "package:@zag-js/floating-panel",
+ "package:@zag-js/focus-trap",
+ "package:@zag-js/focus-visible",
+ "package:@zag-js/hover-card",
+ "package:@zag-js/interact-outside",
+ "package:@zag-js/listbox",
+ "package:@zag-js/live-region",
+ "package:@zag-js/marquee",
+ "package:@zag-js/menu",
+ "package:@zag-js/number-input",
+ "package:@zag-js/pagination",
+ "package:@zag-js/pin-input",
+ "package:@zag-js/popover",
+ "package:@zag-js/popper",
+ "package:@zag-js/presence",
+ "package:@zag-js/progress",
+ "package:@zag-js/qr-code",
+ "package:@zag-js/radio-group",
+ "package:@zag-js/rating-group",
+ "package:@zag-js/react",
+ "package:@zag-js/rect-utils",
+ "package:@zag-js/remove-scroll",
+ "package:@zag-js/scroll-area",
+ "package:@zag-js/select",
+ "package:@zag-js/slider",
+ "package:@zag-js/splitter",
+ "package:@zag-js/switch",
+ "package:@zag-js/tabs",
+ "package:@zag-js/tags-input",
+ "package:@zag-js/toast",
+ "package:@zag-js/tooltip",
+ "package:@zag-js/tree-view",
+ "package:@zag-js/types",
+ "package:@zag-js/utils",
+ "package:classcat",
+ "package:d3-color",
+ "package:d3-dispatch",
+ "package:d3-drag",
+ "package:d3-ease",
+ "package:d3-interpolate",
+ "package:d3-selection",
+ "package:d3-timer",
+ "package:d3-transition",
+ "package:d3-zoom",
+ "package:engine.io-client",
+ "package:engine.io-parser",
+ "package:fuzzysort",
+ "package:hoist-non-react-statics",
+ "package:i18next",
+ "package:i18next-http-backend",
+ "package:lucide-react",
+ "package:perfect-freehand",
+ "package:react",
+ "package:react-dom",
+ "package:react-hook-tanstack-virtual",
+ "package:react-i18next",
+ "package:react-is",
+ "package:scheduler",
+ "package:socket.io-client",
+ "package:socket.io-parser",
+ "package:stylis",
+ "package:tinykeys",
+ "package:use-sync-external-store",
+ "package:zod",
+ "package:zustand",
+ "source:index.html",
+ "source:src/app/App.tsx",
+ "source:src/app/AppProviders.tsx",
+ "source:src/app/I18nController.tsx",
+ "source:src/app/SocketHubRuntime.tsx",
+ "source:src/app/ThemeController.tsx",
+ "source:src/app/accountLifecycle.ts",
+ "source:src/app/main.tsx",
+ "source:src/app/router.tsx",
+ "source:src/assets/SplashImage.webp",
+ "source:src/features/gallery/contracts.ts",
+ "source:src/features/gallery/core/image.ts",
+ "source:src/features/gallery/core/settings.ts",
+ "source:src/features/gallery/ui/galleryStateView.ts",
+ "source:src/features/generation/core/baseGenerationPolicies.ts",
+ "source:src/features/generation/core/batch.ts",
+ "source:src/features/generation/core/canvas/addControlLayers.ts",
+ "source:src/features/generation/core/canvas/addRegionalGuidance.ts",
+ "source:src/features/generation/core/canvas/compileCanvasGraph.ts",
+ "source:src/features/generation/core/canvas/controlValidation.ts",
+ "source:src/features/generation/core/canvas/types.ts",
+ "source:src/features/generation/core/componentCompatibility.ts",
+ "source:src/features/generation/core/graph.ts",
+ "source:src/features/generation/core/graphBuilder.ts",
+ "source:src/features/generation/core/projectPromptDraft.ts",
+ "source:src/features/generation/core/promptHistory.ts",
+ "source:src/features/generation/core/referenceImage.ts",
+ "source:src/features/generation/core/settings.ts",
+ "source:src/features/generation/graph.ts",
+ "source:src/features/generation/settings.ts",
+ "source:src/features/identity/capabilities.ts",
+ "source:src/features/identity/core/schemas.ts",
+ "source:src/features/identity/core/sessionPolicy.ts",
+ "source:src/features/identity/core/tokenStorage.ts",
+ "source:src/features/identity/data/api.ts",
+ "source:src/features/identity/index.ts",
+ "source:src/features/identity/session.ts",
+ "source:src/features/identity/transportAdapter.ts",
+ "source:src/features/identity/ui/AccountMenu.tsx",
+ "source:src/features/identity/ui/AuthScreen.tsx",
+ "source:src/features/identity/ui/AuthUnavailableScreen.tsx",
+ "source:src/features/identity/ui/LoginScreen.tsx",
+ "source:src/features/identity/ui/PasswordInput.tsx",
+ "source:src/features/identity/ui/ProfileDialog.tsx",
+ "source:src/features/identity/ui/SetupScreen.tsx",
+ "source:src/features/identity/ui/UserFormDialog.tsx",
+ "source:src/features/identity/ui/UserManagement.tsx",
+ "source:src/features/identity/ui/UsersPage.tsx",
+ "source:src/features/identity/ui/useIdentityNotify.ts",
+ "source:src/features/models/core/baseIdentity.ts",
+ "source:src/features/models/data/api.ts",
+ "source:src/features/models/data/modelLoadStore.ts",
+ "source:src/features/models/data/modelsStore.ts",
+ "source:src/features/models/data/transport.ts",
+ "source:src/features/models/index.ts",
+ "source:src/features/models/ui/ModelsPage.tsx",
+ "source:src/features/models/ui/ModelsUiContext.tsx",
+ "source:src/features/nodes/core/catalog.ts",
+ "source:src/features/nodes/data/api.ts",
+ "source:src/features/nodes/data/nodeExecutionStore.ts",
+ "source:src/features/nodes/data/nodesStore.ts",
+ "source:src/features/nodes/data/transport.ts",
+ "source:src/features/nodes/index.ts",
+ "source:src/features/nodes/ui/NodesPage.tsx",
+ "source:src/features/queue/contracts.ts",
+ "source:src/features/queue/core/historySnapshot.ts",
+ "source:src/features/queue/core/submissionRules.ts",
+ "source:src/features/upscale/core/graph.ts",
+ "source:src/features/upscale/core/settings.ts",
+ "source:src/features/upscale/index.ts",
+ "source:src/features/upscale/ui/UpscaleUiContext.tsx",
+ "source:src/features/workflow/core/buildGraph.ts",
+ "source:src/features/workflow/core/connectors.ts",
+ "source:src/features/workflow/core/document.ts",
+ "source:src/features/workflow/core/fields.ts",
+ "source:src/features/workflow/core/graphIndex.ts",
+ "source:src/features/workflow/core/layerWorkflow.ts",
+ "source:src/features/workflow/core/types.ts",
+ "source:src/features/workflow/core/validation.ts",
+ "source:src/features/workflow/core/workflowJson.ts",
+ "source:src/features/workflow/data/templates.ts",
+ "source:src/features/workflow/graph.ts",
+ "source:src/features/workflow/react.ts",
+ "source:src/features/workflow/ui/WorkflowUiContext.tsx",
+ "source:src/features/workflow/ui/workflowUiStore.ts",
+ "source:src/features/workflow/utility.ts",
+ "source:src/platform/browser/knownBrowserIssues.ts",
+ "source:src/platform/i18n/client.ts",
+ "source:src/platform/i18n/languages.ts",
+ "source:src/platform/performance/semanticReady.ts",
+ "source:src/platform/query/client.ts",
+ "source:src/platform/react/useMountEffect.ts",
+ "source:src/platform/react/useZodForm.ts",
+ "source:src/platform/search/dateTokens.ts",
+ "source:src/platform/state/accountLifecycle.ts",
+ "source:src/platform/state/externalStore.ts",
+ "source:src/platform/state/externalStoreCore.ts",
+ "source:src/platform/state/selectorCore.ts",
+ "source:src/platform/state/selectors.ts",
+ "source:src/platform/state/singleFlight.ts",
+ "source:src/platform/time/serverTimestamp.ts",
+ "source:src/platform/transport/connectionStore.ts",
+ "source:src/platform/transport/deploymentBase.ts",
+ "source:src/platform/transport/http.ts",
+ "source:src/platform/transport/socketHub.ts",
+ "source:src/platform/ui/Button.tsx",
+ "source:src/platform/ui/ColorPicker.tsx",
+ "source:src/platform/ui/Combobox.tsx",
+ "source:src/platform/ui/ConfirmDialog.tsx",
+ "source:src/platform/ui/DropZone.tsx",
+ "source:src/platform/ui/Field.tsx",
+ "source:src/platform/ui/InvokeMark.tsx",
+ "source:src/platform/ui/JsonPreview.tsx",
+ "source:src/platform/ui/Menu.tsx",
+ "source:src/platform/ui/Panel.tsx",
+ "source:src/platform/ui/RenameDialog.tsx",
+ "source:src/platform/ui/ResizableTextarea.tsx",
+ "source:src/platform/ui/Row.tsx",
+ "source:src/platform/ui/Scrollable.tsx",
+ "source:src/platform/ui/Select.tsx",
+ "source:src/platform/ui/Slider.tsx",
+ "source:src/platform/ui/StatusWidgetChip.tsx",
+ "source:src/platform/ui/Tabs.tsx",
+ "source:src/platform/ui/ToggleDot.tsx",
+ "source:src/platform/ui/Toolbar.tsx",
+ "source:src/platform/ui/Tooltip.tsx",
+ "source:src/platform/ui/colorPickerSync.ts",
+ "source:src/platform/ui/index.ts",
+ "source:src/platform/ui/theme/applyTheme.ts",
+ "source:src/platform/ui/theme/recipes.ts",
+ "source:src/platform/ui/theme/system.ts",
+ "source:src/platform/ui/theme/themes.ts",
+ "source:src/platform/ui/toaster.tsx",
+ "source:src/workbench/WorkbenchContext.tsx",
+ "source:src/workbench/autoRoutePolicy.ts",
+ "source:src/workbench/canvas-engine/api.ts",
+ "source:src/workbench/canvas-engine/capabilities.ts",
+ "source:src/workbench/canvas-engine/document/sources.ts",
+ "source:src/workbench/canvas-engine/editing/controlPixelEdit.ts",
+ "source:src/workbench/canvas-engine/engineStores.ts",
+ "source:src/workbench/canvas-engine/math/mat2d.ts",
+ "source:src/workbench/canvas-engine/math/rect.ts",
+ "source:src/workbench/canvas-engine/math/snapping.ts",
+ "source:src/workbench/canvas-engine/render/compositor.ts",
+ "source:src/workbench/canvas-engine/render/controlTransparency.ts",
+ "source:src/workbench/canvas-engine/render/maskFill.ts",
+ "source:src/workbench/canvas-engine/render/rasterizers/textRasterizer.ts",
+ "source:src/workbench/canvas-engine/transform/transformMath.ts",
+ "source:src/workbench/canvasLayerContent.ts",
+ "source:src/workbench/canvasMigration.ts",
+ "source:src/workbench/canvasProjectMutations.ts",
+ "source:src/workbench/canvasStagingView.ts",
+ "source:src/workbench/components/WorkbenchSplashScreen.tsx",
+ "source:src/workbench/controlAdapters.ts",
+ "source:src/workbench/controlLayerChecks.ts",
+ "source:src/workbench/diagnostics/logger.ts",
+ "source:src/workbench/extensions/contributionSource.ts",
+ "source:src/workbench/extensions/extensionRegistry.ts",
+ "source:src/workbench/hotkeys/catalog.ts",
+ "source:src/workbench/hotkeys/extensionHotkeys.ts",
+ "source:src/workbench/hotkeys/index.ts",
+ "source:src/workbench/hotkeys/keys.ts",
+ "source:src/workbench/hotkeys/modalLayer.ts",
+ "source:src/workbench/hotkeys/resolve.ts",
+ "source:src/workbench/invocation.ts",
+ "source:src/workbench/launchpad/KnownBrowserIssuesAlert.tsx",
+ "source:src/workbench/launchpad/Launchpad.tsx",
+ "source:src/workbench/launchpad/LaunchpadNav.tsx",
+ "source:src/workbench/launchpad/LaunchpadTopBar.tsx",
+ "source:src/workbench/launchpad/NewProjectCard.tsx",
+ "source:src/workbench/launchpad/ProjectCard.tsx",
+ "source:src/workbench/launchpad/ProjectsGrid.tsx",
+ "source:src/workbench/launchpad/ResourceLinks.tsx",
+ "source:src/workbench/launchpad/formatRelativeTime.ts",
+ "source:src/workbench/launchpad/pages/ProjectsPage.tsx",
+ "source:src/workbench/layoutPresetSnapshots.ts",
+ "source:src/workbench/layoutPresets.ts",
+ "source:src/workbench/palette/LaunchpadCommandPalette.tsx",
+ "source:src/workbench/palette/PaletteButton.tsx",
+ "source:src/workbench/palette/paletteStore.ts",
+ "source:src/workbench/palette/settingsEntryDeps.ts",
+ "source:src/workbench/performanceMarks.ts",
+ "source:src/workbench/persistence.ts",
+ "source:src/workbench/persistenceRuntime.ts",
+ "source:src/workbench/projects/api.ts",
+ "source:src/workbench/projects/ids.ts",
+ "source:src/workbench/projects/library.ts",
+ "source:src/workbench/projects/projectFile.ts",
+ "source:src/workbench/projects/session.ts",
+ "source:src/workbench/projects/syncStore.ts",
+ "source:src/workbench/projects/syncedPersistence.ts",
+ "source:src/workbench/queueHistoryNormalization.ts",
+ "source:src/workbench/settings/HotkeysSettingsSection.tsx",
+ "source:src/workbench/settings/SettingsDialog.tsx",
+ "source:src/workbench/settings/settingsDialogStore.ts",
+ "source:src/workbench/settings/store.ts",
+ "source:src/workbench/widgetState.ts",
+ "source:src/workbench/workbenchState.ts",
+ "source:src/workbench/workbenchStore.ts"
+ ],
+ "editor-minimal-static": [
+ "package:@ark-ui/react",
+ "package:@chakra-ui/react",
+ "package:@dnd-kit/accessibility",
+ "package:@dnd-kit/core",
+ "package:@dnd-kit/modifiers",
+ "package:@dnd-kit/sortable",
+ "package:@dnd-kit/utilities",
+ "package:@emotion/cache",
+ "package:@emotion/hash",
+ "package:@emotion/is-prop-valid",
+ "package:@emotion/memoize",
+ "package:@emotion/react",
+ "package:@emotion/serialize",
+ "package:@emotion/sheet",
+ "package:@emotion/unitless",
+ "package:@emotion/use-insertion-effect-with-fallbacks",
+ "package:@emotion/utils",
+ "package:@floating-ui/core",
+ "package:@floating-ui/dom",
+ "package:@floating-ui/utils",
+ "package:@fontsource/inter",
+ "package:@internationalized/number",
+ "package:@pandacss/is-valid-prop",
+ "package:@socket.io/component-emitter",
+ "package:@tanstack/history",
+ "package:@tanstack/query-core",
+ "package:@tanstack/react-query",
+ "package:@tanstack/react-router",
+ "package:@tanstack/react-store",
+ "package:@tanstack/react-virtual",
+ "package:@tanstack/router-core",
+ "package:@tanstack/store",
+ "package:@tanstack/virtual-core",
+ "package:@xyflow/react",
+ "package:@xyflow/system",
+ "package:@zag-js/accordion",
+ "package:@zag-js/anatomy",
+ "package:@zag-js/aria-hidden",
+ "package:@zag-js/auto-resize",
+ "package:@zag-js/avatar",
+ "package:@zag-js/carousel",
+ "package:@zag-js/checkbox",
+ "package:@zag-js/clipboard",
+ "package:@zag-js/collapsible",
+ "package:@zag-js/collection",
+ "package:@zag-js/color-picker",
+ "package:@zag-js/color-utils",
+ "package:@zag-js/combobox",
+ "package:@zag-js/core",
+ "package:@zag-js/date-picker",
+ "package:@zag-js/dialog",
+ "package:@zag-js/dismissable",
+ "package:@zag-js/dom-query",
+ "package:@zag-js/editable",
+ "package:@zag-js/file-upload",
+ "package:@zag-js/floating-panel",
+ "package:@zag-js/focus-trap",
+ "package:@zag-js/focus-visible",
+ "package:@zag-js/hover-card",
+ "package:@zag-js/interact-outside",
+ "package:@zag-js/listbox",
+ "package:@zag-js/live-region",
+ "package:@zag-js/marquee",
+ "package:@zag-js/menu",
+ "package:@zag-js/number-input",
+ "package:@zag-js/pagination",
+ "package:@zag-js/pin-input",
+ "package:@zag-js/popover",
+ "package:@zag-js/popper",
+ "package:@zag-js/presence",
+ "package:@zag-js/progress",
+ "package:@zag-js/qr-code",
+ "package:@zag-js/radio-group",
+ "package:@zag-js/rating-group",
+ "package:@zag-js/react",
+ "package:@zag-js/rect-utils",
+ "package:@zag-js/remove-scroll",
+ "package:@zag-js/scroll-area",
+ "package:@zag-js/select",
+ "package:@zag-js/slider",
+ "package:@zag-js/splitter",
+ "package:@zag-js/switch",
+ "package:@zag-js/tabs",
+ "package:@zag-js/tags-input",
+ "package:@zag-js/toast",
+ "package:@zag-js/tooltip",
+ "package:@zag-js/tree-view",
+ "package:@zag-js/types",
+ "package:@zag-js/utils",
+ "package:classcat",
+ "package:d3-color",
+ "package:d3-dispatch",
+ "package:d3-drag",
+ "package:d3-ease",
+ "package:d3-interpolate",
+ "package:d3-selection",
+ "package:d3-timer",
+ "package:d3-transition",
+ "package:d3-zoom",
+ "package:engine.io-client",
+ "package:engine.io-parser",
+ "package:fuzzysort",
+ "package:hoist-non-react-statics",
+ "package:i18next",
+ "package:i18next-http-backend",
+ "package:lucide-react",
+ "package:perfect-freehand",
+ "package:react",
+ "package:react-dom",
+ "package:react-hook-tanstack-virtual",
+ "package:react-i18next",
+ "package:react-is",
+ "package:scheduler",
+ "package:socket.io-client",
+ "package:socket.io-parser",
+ "package:stylis",
+ "package:tinykeys",
+ "package:use-sync-external-store",
+ "package:zod",
+ "package:zustand",
+ "source:index.html",
+ "source:src/app/App.tsx",
+ "source:src/app/AppProviders.tsx",
+ "source:src/app/GalleryImageActionsBridge.tsx",
+ "source:src/app/GalleryUiAdapter.tsx",
+ "source:src/app/GenerationUiAdapter.tsx",
+ "source:src/app/I18nController.tsx",
+ "source:src/app/ModelsUiAdapter.tsx",
+ "source:src/app/QueueRuntimeAdapter.tsx",
+ "source:src/app/QueueUiAdapter.tsx",
+ "source:src/app/SocketHubRuntime.tsx",
+ "source:src/app/ThemeController.tsx",
+ "source:src/app/UpscaleUiAdapter.tsx",
+ "source:src/app/WorkbenchApp.tsx",
+ "source:src/app/WorkflowUiAdapter.tsx",
+ "source:src/app/accountLifecycle.ts",
+ "source:src/app/main.tsx",
+ "source:src/app/router.tsx",
+ "source:src/app/workbenchPorts.tsx",
+ "source:src/assets/SplashImage.webp",
+ "source:src/features/gallery/contracts.ts",
+ "source:src/features/gallery/core/image.ts",
+ "source:src/features/gallery/core/imagePaths.ts",
+ "source:src/features/gallery/core/selection.ts",
+ "source:src/features/gallery/core/settings.ts",
+ "source:src/features/gallery/data/backend.ts",
+ "source:src/features/gallery/data/imageUrls.ts",
+ "source:src/features/gallery/data/queries.ts",
+ "source:src/features/gallery/index.ts",
+ "source:src/features/gallery/queries.ts",
+ "source:src/features/gallery/react.ts",
+ "source:src/features/gallery/ui/GalleryBoardMenu.tsx",
+ "source:src/features/gallery/ui/GalleryBoardSelect.tsx",
+ "source:src/features/gallery/ui/GalleryImageGrid.tsx",
+ "source:src/features/gallery/ui/GalleryPanelContent.tsx",
+ "source:src/features/gallery/ui/GalleryToolbar.tsx",
+ "source:src/features/gallery/ui/GalleryUiContext.tsx",
+ "source:src/features/gallery/ui/GalleryWidgetContext.tsx",
+ "source:src/features/gallery/ui/GalleryWidgetFooter.tsx",
+ "source:src/features/gallery/ui/GalleryWidgetView.tsx",
+ "source:src/features/gallery/ui/galleryDnd.ts",
+ "source:src/features/gallery/ui/galleryStateView.ts",
+ "source:src/features/gallery/ui/useGalleryActions.ts",
+ "source:src/features/gallery/ui/useGalleryData.ts",
+ "source:src/features/gallery/utility.ts",
+ "source:src/features/gallery/widget.ts",
+ "source:src/features/generation/core/baseGenerationPolicies.ts",
+ "source:src/features/generation/core/batch.ts",
+ "source:src/features/generation/core/canvas/addControlLayers.ts",
+ "source:src/features/generation/core/canvas/addRegionalGuidance.ts",
+ "source:src/features/generation/core/canvas/compileCanvasGraph.ts",
+ "source:src/features/generation/core/canvas/controlValidation.ts",
+ "source:src/features/generation/core/canvas/types.ts",
+ "source:src/features/generation/core/componentCompatibility.ts",
+ "source:src/features/generation/core/graph.ts",
+ "source:src/features/generation/core/graphBuilder.ts",
+ "source:src/features/generation/core/projectPromptDraft.ts",
+ "source:src/features/generation/core/prompt/ast.ts",
+ "source:src/features/generation/core/prompt/attention.ts",
+ "source:src/features/generation/core/prompt/highlight.ts",
+ "source:src/features/generation/core/promptHistory.ts",
+ "source:src/features/generation/core/referenceImage.ts",
+ "source:src/features/generation/core/settings.ts",
+ "source:src/features/generation/data/promptUtilities.ts",
+ "source:src/features/generation/data/referenceImageUrls.ts",
+ "source:src/features/generation/graph.ts",
+ "source:src/features/generation/react.ts",
+ "source:src/features/generation/settings.ts",
+ "source:src/features/generation/ui/GenerateAdvancedFields.tsx",
+ "source:src/features/generation/ui/GenerateCanvasCompositingSection.tsx",
+ "source:src/features/generation/ui/GenerateComponentsSection.tsx",
+ "source:src/features/generation/ui/GenerateConceptsSection.tsx",
+ "source:src/features/generation/ui/GenerateDimensionFields.tsx",
+ "source:src/features/generation/ui/GenerateHeaderActions.tsx",
+ "source:src/features/generation/ui/GenerateModelFields.tsx",
+ "source:src/features/generation/ui/GenerateSettingsForm.tsx",
+ "source:src/features/generation/ui/GenerateWidgetView.tsx",
+ "source:src/features/generation/ui/GenerationUiContext.tsx",
+ "source:src/features/generation/ui/generateDebounce.ts",
+ "source:src/features/generation/ui/generateDraftRegistry.ts",
+ "source:src/features/generation/ui/generateFormViewModel.ts",
+ "source:src/features/generation/ui/modelSelectionNotice.ts",
+ "source:src/features/generation/ui/promptFields/GeneratePromptFields.tsx",
+ "source:src/features/generation/ui/promptFields/NegativePromptField.tsx",
+ "source:src/features/generation/ui/promptFields/PositivePromptActions.tsx",
+ "source:src/features/generation/ui/promptFields/PositivePromptField.tsx",
+ "source:src/features/generation/ui/promptFields/PromptTextarea.tsx",
+ "source:src/features/generation/ui/promptFields/index.ts",
+ "source:src/features/generation/ui/promptFields/promptAttentionHotkeys.ts",
+ "source:src/features/generation/ui/promptFields/promptFocus.ts",
+ "source:src/features/generation/ui/promptFields/promptHistoryNavigation.ts",
+ "source:src/features/generation/ui/reference-images/GenerateReferenceImagesSection.tsx",
+ "source:src/features/generation/ui/reference-images/ReferenceImageCard.tsx",
+ "source:src/features/generation/ui/reference-images/ReferenceImageControls.tsx",
+ "source:src/features/generation/ui/reference-images/ReferenceImageCropDialog.tsx",
+ "source:src/features/generation/ui/reference-images/referenceImageConfig.ts",
+ "source:src/features/generation/ui/shared/AspectRatioPreview.tsx",
+ "source:src/features/generation/ui/shared/GenerateCollapsibleSection.tsx",
+ "source:src/features/generation/ui/shared/ModelDefaultButton.tsx",
+ "source:src/features/generation/ui/shared/SliderNumberField.tsx",
+ "source:src/features/generation/ui/shared/modelDefaultSettings.ts",
+ "source:src/features/generation/ui/useDebouncedDraftValue.ts",
+ "source:src/features/generation/widget.ts",
+ "source:src/features/identity/capabilities.ts",
+ "source:src/features/identity/core/schemas.ts",
+ "source:src/features/identity/core/sessionPolicy.ts",
+ "source:src/features/identity/core/tokenStorage.ts",
+ "source:src/features/identity/data/api.ts",
+ "source:src/features/identity/index.ts",
+ "source:src/features/identity/session.ts",
+ "source:src/features/identity/transportAdapter.ts",
+ "source:src/features/identity/ui/AccountMenu.tsx",
+ "source:src/features/identity/ui/AuthScreen.tsx",
+ "source:src/features/identity/ui/AuthUnavailableScreen.tsx",
+ "source:src/features/identity/ui/LoginScreen.tsx",
+ "source:src/features/identity/ui/PasswordInput.tsx",
+ "source:src/features/identity/ui/ProfileDialog.tsx",
+ "source:src/features/identity/ui/SetupScreen.tsx",
+ "source:src/features/identity/ui/UserFormDialog.tsx",
+ "source:src/features/identity/ui/UserManagement.tsx",
+ "source:src/features/identity/ui/UsersPage.tsx",
+ "source:src/features/identity/ui/useIdentityNotify.ts",
+ "source:src/features/models/core/baseIdentity.ts",
+ "source:src/features/models/core/library.ts",
+ "source:src/features/models/core/taxonomy.ts",
+ "source:src/features/models/data/api.ts",
+ "source:src/features/models/data/modelLoadStore.ts",
+ "source:src/features/models/data/modelsStore.ts",
+ "source:src/features/models/data/transport.ts",
+ "source:src/features/models/index.ts",
+ "source:src/features/models/react.ts",
+ "source:src/features/models/ui/ModelsPage.tsx",
+ "source:src/features/models/ui/ModelsUiContext.tsx",
+ "source:src/features/models/ui/components/ModelSelect.tsx",
+ "source:src/features/nodes/core/catalog.ts",
+ "source:src/features/nodes/data/api.ts",
+ "source:src/features/nodes/data/nodeExecutionStore.ts",
+ "source:src/features/nodes/data/nodesStore.ts",
+ "source:src/features/nodes/data/transport.ts",
+ "source:src/features/nodes/index.ts",
+ "source:src/features/nodes/ui/NodesPage.tsx",
+ "source:src/features/queue/contracts.ts",
+ "source:src/features/queue/core/generationMeta.ts",
+ "source:src/features/queue/core/historySnapshot.ts",
+ "source:src/features/queue/core/historySummary.ts",
+ "source:src/features/queue/core/progressImage.ts",
+ "source:src/features/queue/core/submissionRules.ts",
+ "source:src/features/queue/core/types.ts",
+ "source:src/features/queue/data/activeProgressTargetStore.ts",
+ "source:src/features/queue/data/events.ts",
+ "source:src/features/queue/data/httpRealtimeQueueBackend.ts",
+ "source:src/features/queue/data/itemProgressStore.ts",
+ "source:src/features/queue/data/mappers.ts",
+ "source:src/features/queue/data/progressImageStore.ts",
+ "source:src/features/queue/data/progressStore.ts",
+ "source:src/features/queue/data/queries.ts",
+ "source:src/features/queue/data/realtimeRuntime.ts",
+ "source:src/features/queue/data/serverApi.ts",
+ "source:src/features/queue/data/submissionApi.ts",
+ "source:src/features/queue/index.ts",
+ "source:src/features/queue/menu.ts",
+ "source:src/features/queue/publicApi.ts",
+ "source:src/features/queue/react.ts",
+ "source:src/features/queue/reveal.ts",
+ "source:src/features/queue/runtime.ts",
+ "source:src/features/queue/runtime/coordinator.ts",
+ "source:src/features/queue/runtime/utilityGraph.ts",
+ "source:src/features/queue/ui/CancelQueueItemButton.tsx",
+ "source:src/features/queue/ui/ModelCacheFooter.tsx",
+ "source:src/features/queue/ui/NowNextSection.tsx",
+ "source:src/features/queue/ui/QueueDataRuntime.tsx",
+ "source:src/features/queue/ui/QueueFilterTabs.tsx",
+ "source:src/features/queue/ui/QueueHeaderActions.tsx",
+ "source:src/features/queue/ui/QueueHeaderLabel.tsx",
+ "source:src/features/queue/ui/QueueHeaderMenu.tsx",
+ "source:src/features/queue/ui/QueueItemDetails.tsx",
+ "source:src/features/queue/ui/QueueItemRow.tsx",
+ "source:src/features/queue/ui/QueueItemThumbnail.tsx",
+ "source:src/features/queue/ui/QueueStats.tsx",
+ "source:src/features/queue/ui/QueueStatusDot.tsx",
+ "source:src/features/queue/ui/QueueStepProgress.tsx",
+ "source:src/features/queue/ui/QueueUiContext.tsx",
+ "source:src/features/queue/ui/QueueWidgetView.tsx",
+ "source:src/features/queue/ui/RecentSection.tsx",
+ "source:src/features/queue/ui/SectionHeader.tsx",
+ "source:src/features/queue/ui/currentBatchItems.ts",
+ "source:src/features/queue/ui/formatDuration.ts",
+ "source:src/features/queue/ui/index.ts",
+ "source:src/features/queue/ui/modelCacheStore.ts",
+ "source:src/features/queue/ui/queueConfirmationStore.ts",
+ "source:src/features/queue/ui/queueDataStore.ts",
+ "source:src/features/queue/ui/queueFilters.ts",
+ "source:src/features/queue/ui/queueMenuActions.tsx",
+ "source:src/features/queue/ui/queueOwnership.ts",
+ "source:src/features/queue/ui/queueProgressCleanup.ts",
+ "source:src/features/queue/ui/queueScope.ts",
+ "source:src/features/queue/ui/queueUiStore.ts",
+ "source:src/features/queue/ui/queueViewModel.ts",
+ "source:src/features/queue/ui/statusMeta.ts",
+ "source:src/features/queue/utility.ts",
+ "source:src/features/queue/widget.ts",
+ "source:src/features/upscale/core/graph.ts",
+ "source:src/features/upscale/core/settings.ts",
+ "source:src/features/upscale/index.ts",
+ "source:src/features/upscale/ui/UpscaleUiContext.tsx",
+ "source:src/features/workflow/core/buildGraph.ts",
+ "source:src/features/workflow/core/connectors.ts",
+ "source:src/features/workflow/core/document.ts",
+ "source:src/features/workflow/core/fields.ts",
+ "source:src/features/workflow/core/graphIndex.ts",
+ "source:src/features/workflow/core/layerWorkflow.ts",
+ "source:src/features/workflow/core/types.ts",
+ "source:src/features/workflow/core/validation.ts",
+ "source:src/features/workflow/core/workflowJson.ts",
+ "source:src/features/workflow/data/api.ts",
+ "source:src/features/workflow/data/libraryCache.ts",
+ "source:src/features/workflow/data/templates.ts",
+ "source:src/features/workflow/graph.ts",
+ "source:src/features/workflow/queries.ts",
+ "source:src/features/workflow/react.ts",
+ "source:src/features/workflow/ui/PendingLibraryWorkflowLoader.tsx",
+ "source:src/features/workflow/ui/WorkflowUiContext.tsx",
+ "source:src/features/workflow/ui/WorkflowWidgetChrome.tsx",
+ "source:src/features/workflow/ui/WorkflowWidgetView.tsx",
+ "source:src/features/workflow/ui/editor/AddNodeDialog.tsx",
+ "source:src/features/workflow/ui/editor/ConnectorFlowNode.tsx",
+ "source:src/features/workflow/ui/editor/CurrentImageFlowNode.tsx",
+ "source:src/features/workflow/ui/editor/EditorToolbar.tsx",
+ "source:src/features/workflow/ui/editor/InvocationFlowNode.tsx",
+ "source:src/features/workflow/ui/editor/NodeContextMenu.tsx",
+ "source:src/features/workflow/ui/editor/NotesFlowNode.tsx",
+ "source:src/features/workflow/ui/editor/WorkflowEdge.tsx",
+ "source:src/features/workflow/ui/editor/WorkflowEditorView.tsx",
+ "source:src/features/workflow/ui/editor/WorkflowSelectionRequestRuntime.tsx",
+ "source:src/features/workflow/ui/editor/clipboard.ts",
+ "source:src/features/workflow/ui/editor/flowAdapters.ts",
+ "source:src/features/workflow/ui/editor/flowInstanceStore.ts",
+ "source:src/features/workflow/ui/editor/handleTooltip.ts",
+ "source:src/features/workflow/ui/editor/nodeChrome.ts",
+ "source:src/features/workflow/ui/editor/performanceConstants.ts",
+ "source:src/features/workflow/ui/editor/selectionStore.ts",
+ "source:src/features/workflow/ui/editor/useEraser.tsx",
+ "source:src/features/workflow/ui/editor/useLasso.tsx",
+ "source:src/features/workflow/ui/editor/workflowViewportStore.ts",
+ "source:src/features/workflow/ui/fields/FieldDescriptionPopover.tsx",
+ "source:src/features/workflow/ui/fields/WorkflowFieldInput.tsx",
+ "source:src/features/workflow/ui/graph-preview/FlowMiniMap.tsx",
+ "source:src/features/workflow/ui/graph-preview/GraphPreviewDialog.tsx",
+ "source:src/features/workflow/ui/graph-preview/GraphPreviewFlow.tsx",
+ "source:src/features/workflow/ui/graph-preview/flowTheme.ts",
+ "source:src/features/workflow/ui/graph-preview/index.ts",
+ "source:src/features/workflow/ui/implementation.ts",
+ "source:src/features/workflow/ui/library/WorkflowLibraryDialog.tsx",
+ "source:src/features/workflow/ui/linear/FormBuilderTab.tsx",
+ "source:src/features/workflow/ui/linear/LinearFormView.tsx",
+ "source:src/features/workflow/ui/linear/NodeFieldControl.tsx",
+ "source:src/features/workflow/ui/linear/NodeInspector.tsx",
+ "source:src/features/workflow/ui/linear/WorkflowDetailsTab.tsx",
+ "source:src/features/workflow/ui/linear/WorkflowJsonTab.tsx",
+ "source:src/features/workflow/ui/linear/WorkflowLinearPanel.tsx",
+ "source:src/features/workflow/ui/pendingLibraryWorkflowLoadRuntime.ts",
+ "source:src/features/workflow/ui/useProjectGraphCommands.ts",
+ "source:src/features/workflow/ui/workflowTransfer.ts",
+ "source:src/features/workflow/ui/workflowUiStore.ts",
+ "source:src/features/workflow/utility.ts",
+ "source:src/features/workflow/widget.ts",
+ "source:src/platform/browser/knownBrowserIssues.ts",
+ "source:src/platform/i18n/client.ts",
+ "source:src/platform/i18n/languages.ts",
+ "source:src/platform/performance/semanticReady.ts",
+ "source:src/platform/query/client.ts",
+ "source:src/platform/react/composeProviders.tsx",
+ "source:src/platform/react/draftRegistry.ts",
+ "source:src/platform/react/useModifierHeld.ts",
+ "source:src/platform/react/useMountEffect.ts",
+ "source:src/platform/react/useZodForm.ts",
+ "source:src/platform/search/dateTokens.ts",
+ "source:src/platform/state/accountLifecycle.ts",
+ "source:src/platform/state/externalStore.ts",
+ "source:src/platform/state/externalStoreCore.ts",
+ "source:src/platform/state/projectedExternalStore.ts",
+ "source:src/platform/state/selectorCore.ts",
+ "source:src/platform/state/selectors.ts",
+ "source:src/platform/state/singleFlight.ts",
+ "source:src/platform/time/serverTimestamp.ts",
+ "source:src/platform/transport/connectionStore.ts",
+ "source:src/platform/transport/deploymentBase.ts",
+ "source:src/platform/transport/http.ts",
+ "source:src/platform/transport/socketHub.ts",
+ "source:src/platform/ui/Button.tsx",
+ "source:src/platform/ui/ColorPicker.tsx",
+ "source:src/platform/ui/Combobox.tsx",
+ "source:src/platform/ui/ConfirmDialog.tsx",
+ "source:src/platform/ui/DropZone.tsx",
+ "source:src/platform/ui/Field.tsx",
+ "source:src/platform/ui/InvokeMark.tsx",
+ "source:src/platform/ui/JsonPreview.tsx",
+ "source:src/platform/ui/Menu.tsx",
+ "source:src/platform/ui/Panel.tsx",
+ "source:src/platform/ui/RenameDialog.tsx",
+ "source:src/platform/ui/ResizableTextarea.tsx",
+ "source:src/platform/ui/Row.tsx",
+ "source:src/platform/ui/Scrollable.tsx",
+ "source:src/platform/ui/Select.tsx",
+ "source:src/platform/ui/Slider.tsx",
+ "source:src/platform/ui/StatusWidgetChip.tsx",
+ "source:src/platform/ui/Tabs.tsx",
+ "source:src/platform/ui/ToggleDot.tsx",
+ "source:src/platform/ui/Toolbar.tsx",
+ "source:src/platform/ui/Tooltip.tsx",
+ "source:src/platform/ui/colorPickerSync.ts",
+ "source:src/platform/ui/index.ts",
+ "source:src/platform/ui/streaming-image/StreamingImageFrame.tsx",
+ "source:src/platform/ui/streaming-image/streamingImageSource.ts",
+ "source:src/platform/ui/streaming-image/useStreamingImageSource.ts",
+ "source:src/platform/ui/theme/applyTheme.ts",
+ "source:src/platform/ui/theme/recipes.ts",
+ "source:src/platform/ui/theme/system.ts",
+ "source:src/platform/ui/theme/themes.ts",
+ "source:src/platform/ui/toaster.tsx",
+ "source:src/workbench/WorkbenchContext.tsx",
+ "source:src/workbench/WorkbenchRuntime.tsx",
+ "source:src/workbench/WorkbenchSessionController.tsx",
+ "source:src/workbench/WorkbenchWidgetRegistryContext.tsx",
+ "source:src/workbench/autoRoutePolicy.ts",
+ "source:src/workbench/canvas-engine/api.ts",
+ "source:src/workbench/canvas-engine/capabilities.ts",
+ "source:src/workbench/canvas-engine/color.ts",
+ "source:src/workbench/canvas-engine/controllers/booleanMergeController.ts",
+ "source:src/workbench/canvas-engine/controllers/controlPixelController.ts",
+ "source:src/workbench/canvas-engine/controllers/copyLayerController.ts",
+ "source:src/workbench/canvas-engine/controllers/cropLayerController.ts",
+ "source:src/workbench/canvas-engine/controllers/editingController.ts",
+ "source:src/workbench/canvas-engine/controllers/extractMaskedAreaController.ts",
+ "source:src/workbench/canvas-engine/controllers/filterResultController.ts",
+ "source:src/workbench/canvas-engine/controllers/floatingSelectionController.ts",
+ "source:src/workbench/canvas-engine/controllers/generatedResultController.ts",
+ "source:src/workbench/canvas-engine/controllers/historyController.ts",
+ "source:src/workbench/canvas-engine/controllers/interactionController.ts",
+ "source:src/workbench/canvas-engine/controllers/layerController.ts",
+ "source:src/workbench/canvas-engine/controllers/layerMutationController.ts",
+ "source:src/workbench/canvas-engine/controllers/maskLayerController.ts",
+ "source:src/workbench/canvas-engine/controllers/maskResultController.ts",
+ "source:src/workbench/canvas-engine/controllers/mergeLayerController.ts",
+ "source:src/workbench/canvas-engine/controllers/mutationContext.ts",
+ "source:src/workbench/canvas-engine/controllers/newRasterLayerController.ts",
+ "source:src/workbench/canvas-engine/controllers/persistenceController.ts",
+ "source:src/workbench/canvas-engine/controllers/previewStateController.ts",
+ "source:src/workbench/canvas-engine/controllers/psdExportController.ts",
+ "source:src/workbench/canvas-engine/controllers/rasterController.ts",
+ "source:src/workbench/canvas-engine/controllers/rasterExportController.ts",
+ "source:src/workbench/canvas-engine/controllers/rasterMemoryBudgetController.ts",
+ "source:src/workbench/canvas-engine/controllers/rasterizeLayerController.ts",
+ "source:src/workbench/canvas-engine/controllers/renderController.ts",
+ "source:src/workbench/canvas-engine/controllers/selectionImageController.ts",
+ "source:src/workbench/canvas-engine/controllers/selectionPixelController.ts",
+ "source:src/workbench/canvas-engine/controllers/stagedResultController.ts",
+ "source:src/workbench/canvas-engine/controllers/structuralLayerController.ts",
+ "source:src/workbench/canvas-engine/controllers/textEditingController.ts",
+ "source:src/workbench/canvas-engine/controllers/thumbnailController.ts",
+ "source:src/workbench/canvas-engine/controllers/transformEditingController.ts",
+ "source:src/workbench/canvas-engine/diagnostics.ts",
+ "source:src/workbench/canvas-engine/document/bitmapStore.ts",
+ "source:src/workbench/canvas-engine/document/documentMirror.ts",
+ "source:src/workbench/canvas-engine/document/layerChangeDecision.ts",
+ "source:src/workbench/canvas-engine/document/layerFactories.ts",
+ "source:src/workbench/canvas-engine/document/mergeDown.ts",
+ "source:src/workbench/canvas-engine/document/mergeVisible.ts",
+ "source:src/workbench/canvas-engine/document/sources.ts",
+ "source:src/workbench/canvas-engine/editGate.ts",
+ "source:src/workbench/canvas-engine/editing/controlPixelEdit.ts",
+ "source:src/workbench/canvas-engine/engine.ts",
+ "source:src/workbench/canvas-engine/engineStores.ts",
+ "source:src/workbench/canvas-engine/export/psdExport.ts",
+ "source:src/workbench/canvas-engine/exportRasterComposite.ts",
+ "source:src/workbench/canvas-engine/filterError.ts",
+ "source:src/workbench/canvas-engine/freehand.ts",
+ "source:src/workbench/canvas-engine/history/documentPatch.ts",
+ "source:src/workbench/canvas-engine/history/history.ts",
+ "source:src/workbench/canvas-engine/history/imagePatch.ts",
+ "source:src/workbench/canvas-engine/history/layerSnapshot.ts",
+ "source:src/workbench/canvas-engine/input/pointerPipeline.ts",
+ "source:src/workbench/canvas-engine/input/wheel.ts",
+ "source:src/workbench/canvas-engine/layerExportGuards.ts",
+ "source:src/workbench/canvas-engine/layerRasterizer.ts",
+ "source:src/workbench/canvas-engine/math/mat2d.ts",
+ "source:src/workbench/canvas-engine/math/rect.ts",
+ "source:src/workbench/canvas-engine/math/snapping.ts",
+ "source:src/workbench/canvas-engine/previewPublisher.ts",
+ "source:src/workbench/canvas-engine/rasterSnapshotCapture.ts",
+ "source:src/workbench/canvas-engine/render/adjustedSurfaceCache.ts",
+ "source:src/workbench/canvas-engine/render/adjustments.ts",
+ "source:src/workbench/canvas-engine/render/colorSample.ts",
+ "source:src/workbench/canvas-engine/render/compositeFrame.ts",
+ "source:src/workbench/canvas-engine/render/compositor.ts",
+ "source:src/workbench/canvas-engine/render/controlTransparency.ts",
+ "source:src/workbench/canvas-engine/render/decodedBitmapPool.ts",
+ "source:src/workbench/canvas-engine/render/derivedSurfaceCache.ts",
+ "source:src/workbench/canvas-engine/render/floatingSelectionFrame.ts",
+ "source:src/workbench/canvas-engine/render/fontLoader.ts",
+ "source:src/workbench/canvas-engine/render/frameDemand.ts",
+ "source:src/workbench/canvas-engine/render/layerCache.ts",
+ "source:src/workbench/canvas-engine/render/layerDisplayEffect.ts",
+ "source:src/workbench/canvas-engine/render/maskFill.ts",
+ "source:src/workbench/canvas-engine/render/overlayFrame.ts",
+ "source:src/workbench/canvas-engine/render/overlayRenderer.ts",
+ "source:src/workbench/canvas-engine/render/raster.ts",
+ "source:src/workbench/canvas-engine/render/rasterComposite.ts",
+ "source:src/workbench/canvas-engine/render/rasterizers/gradientRasterizer.ts",
+ "source:src/workbench/canvas-engine/render/rasterizers/imageRasterizer.ts",
+ "source:src/workbench/canvas-engine/render/rasterizers/index.ts",
+ "source:src/workbench/canvas-engine/render/rasterizers/paintRasterizer.ts",
+ "source:src/workbench/canvas-engine/render/rasterizers/shapeRasterizer.ts",
+ "source:src/workbench/canvas-engine/render/rasterizers/textRasterizer.ts",
+ "source:src/workbench/canvas-engine/render/scheduler.ts",
+ "source:src/workbench/canvas-engine/render/surfaceBudget.ts",
+ "source:src/workbench/canvas-engine/render/thumbnail.ts",
+ "source:src/workbench/canvas-engine/samCoordinates.ts",
+ "source:src/workbench/canvas-engine/selectObjectBridge.ts",
+ "source:src/workbench/canvas-engine/selection/floatingSelection.ts",
+ "source:src/workbench/canvas-engine/selection/marchingAnts.ts",
+ "source:src/workbench/canvas-engine/selection/maskOutline.ts",
+ "source:src/workbench/canvas-engine/selection/selectionOpMode.ts",
+ "source:src/workbench/canvas-engine/selection/selectionOps.ts",
+ "source:src/workbench/canvas-engine/selection/selectionPaths.ts",
+ "source:src/workbench/canvas-engine/selection/selectionState.ts",
+ "source:src/workbench/canvas-engine/strokeCommit.ts",
+ "source:src/workbench/canvas-engine/tools/bboxHitTest.ts",
+ "source:src/workbench/canvas-engine/tools/bboxTool.ts",
+ "source:src/workbench/canvas-engine/tools/brushTool.ts",
+ "source:src/workbench/canvas-engine/tools/colorPickerTool.ts",
+ "source:src/workbench/canvas-engine/tools/eraserTool.ts",
+ "source:src/workbench/canvas-engine/tools/gradientTool.ts",
+ "source:src/workbench/canvas-engine/tools/gridSnap.ts",
+ "source:src/workbench/canvas-engine/tools/lassoTool.ts",
+ "source:src/workbench/canvas-engine/tools/marqueeTool.ts",
+ "source:src/workbench/canvas-engine/tools/moveHitTest.ts",
+ "source:src/workbench/canvas-engine/tools/moveTool.ts",
+ "source:src/workbench/canvas-engine/tools/paintConstants.ts",
+ "source:src/workbench/canvas-engine/tools/paintTool.ts",
+ "source:src/workbench/canvas-engine/tools/samHitTest.ts",
+ "source:src/workbench/canvas-engine/tools/samTool.ts",
+ "source:src/workbench/canvas-engine/tools/shapeTool.ts",
+ "source:src/workbench/canvas-engine/tools/strokeSession.ts",
+ "source:src/workbench/canvas-engine/tools/textTool.ts",
+ "source:src/workbench/canvas-engine/tools/transformTool.ts",
+ "source:src/workbench/canvas-engine/tools/viewTool.ts",
+ "source:src/workbench/canvas-engine/transform/transformMath.ts",
+ "source:src/workbench/canvas-engine/viewport.ts",
+ "source:src/workbench/canvas-operations/FilterOperationCoordinator.ts",
+ "source:src/workbench/canvas-operations/SelectObjectCoordinator.ts",
+ "source:src/workbench/canvas-operations/api.ts",
+ "source:src/workbench/canvas-operations/applicationPort.ts",
+ "source:src/workbench/canvas-operations/backend/canvasImages.ts",
+ "source:src/workbench/canvas-operations/canvasImportNotice.ts",
+ "source:src/workbench/canvas-operations/compositeForGeneration.ts",
+ "source:src/workbench/canvas-operations/controlRecommendations.ts",
+ "source:src/workbench/canvas-operations/createCanvasEngine.ts",
+ "source:src/workbench/canvas-operations/createFromBbox.ts",
+ "source:src/workbench/canvas-operations/engineRegistry.ts",
+ "source:src/workbench/canvas-operations/exportCanvasComposite.ts",
+ "source:src/workbench/canvas-operations/filterGraphs.ts",
+ "source:src/workbench/canvas-operations/filterOperationSession.ts",
+ "source:src/workbench/canvas-operations/generationComposite.ts",
+ "source:src/workbench/canvas-operations/generationCompositePlan.ts",
+ "source:src/workbench/canvas-operations/importGalleryImages.ts",
+ "source:src/workbench/canvas-operations/layerFilterRunner.ts",
+ "source:src/workbench/canvas-operations/layerImageResult.ts",
+ "source:src/workbench/canvas-operations/operationAccess.ts",
+ "source:src/workbench/canvas-operations/operationController.ts",
+ "source:src/workbench/canvas-operations/operationStores.ts",
+ "source:src/workbench/canvas-operations/samGraph.ts",
+ "source:src/workbench/canvas-operations/saveCanvasToGallery.ts",
+ "source:src/workbench/canvas-operations/selectObjectSession.ts",
+ "source:src/workbench/canvasDimsSync.ts",
+ "source:src/workbench/canvasLayerContent.ts",
+ "source:src/workbench/canvasMigration.ts",
+ "source:src/workbench/canvasProjectMutations.ts",
+ "source:src/workbench/canvasStagingView.ts",
+ "source:src/workbench/components/QueueProgressIndicator.tsx",
+ "source:src/workbench/components/WorkbenchSplashScreen.tsx",
+ "source:src/workbench/controlAdapters.ts",
+ "source:src/workbench/controlLayerChecks.ts",
+ "source:src/workbench/diagnostics/logger.ts",
+ "source:src/workbench/extensions/contributionSource.ts",
+ "source:src/workbench/extensions/extensionRegistry.ts",
+ "source:src/workbench/focusRegions.tsx",
+ "source:src/workbench/graphPreviewInvocation.ts",
+ "source:src/workbench/graphSurfaces.ts",
+ "source:src/workbench/hotkeys/WorkbenchHotkeyRuntime.tsx",
+ "source:src/workbench/hotkeys/catalog.ts",
+ "source:src/workbench/hotkeys/extensionHotkeys.ts",
+ "source:src/workbench/hotkeys/firstPartyCommands.ts",
+ "source:src/workbench/hotkeys/index.ts",
+ "source:src/workbench/hotkeys/keys.ts",
+ "source:src/workbench/hotkeys/modalLayer.ts",
+ "source:src/workbench/hotkeys/resolve.ts",
+ "source:src/workbench/hotkeys/targetWidget.ts",
+ "source:src/workbench/iconResolver.tsx",
+ "source:src/workbench/image-actions/ImageContextMenu.tsx",
+ "source:src/workbench/image-actions/RecallActionButtons.tsx",
+ "source:src/workbench/image-actions/appendReferenceImage.ts",
+ "source:src/workbench/image-actions/canvasImportError.ts",
+ "source:src/workbench/image-actions/executeImageRecall.ts",
+ "source:src/workbench/image-actions/imageRecall.ts",
+ "source:src/workbench/image-actions/index.ts",
+ "source:src/workbench/image-actions/selectedImage.ts",
+ "source:src/workbench/image-actions/useImageActions.ts",
+ "source:src/workbench/invocation.ts",
+ "source:src/workbench/invocationSubmit.ts",
+ "source:src/workbench/launchpad/KnownBrowserIssuesAlert.tsx",
+ "source:src/workbench/launchpad/Launchpad.tsx",
+ "source:src/workbench/launchpad/LaunchpadNav.tsx",
+ "source:src/workbench/launchpad/LaunchpadTopBar.tsx",
+ "source:src/workbench/launchpad/NewProjectCard.tsx",
+ "source:src/workbench/launchpad/ProjectCard.tsx",
+ "source:src/workbench/launchpad/ProjectsGrid.tsx",
+ "source:src/workbench/launchpad/ResourceLinks.tsx",
+ "source:src/workbench/launchpad/formatRelativeTime.ts",
+ "source:src/workbench/launchpad/pages/ProjectsPage.tsx",
+ "source:src/workbench/layoutPresetSnapshots.ts",
+ "source:src/workbench/layoutPresets.ts",
+ "source:src/workbench/palette/LaunchpadCommandPalette.tsx",
+ "source:src/workbench/palette/PaletteButton.tsx",
+ "source:src/workbench/palette/WorkbenchCommandPalette.tsx",
+ "source:src/workbench/palette/paletteStore.ts",
+ "source:src/workbench/palette/settingsEntryDeps.ts",
+ "source:src/workbench/panZoom.ts",
+ "source:src/workbench/performanceMarks.ts",
+ "source:src/workbench/persistence.ts",
+ "source:src/workbench/persistenceRuntime.ts",
+ "source:src/workbench/projects/api.ts",
+ "source:src/workbench/projects/components/OpenProjectDialog.tsx",
+ "source:src/workbench/projects/components/ProjectTabs.tsx",
+ "source:src/workbench/projects/components/index.ts",
+ "source:src/workbench/projects/ids.ts",
+ "source:src/workbench/projects/library.ts",
+ "source:src/workbench/projects/projectFile.ts",
+ "source:src/workbench/projects/projectTabsA11y.ts",
+ "source:src/workbench/projects/session.ts",
+ "source:src/workbench/projects/syncStore.ts",
+ "source:src/workbench/projects/syncedPersistence.ts",
+ "source:src/workbench/projects/useProjectActions.ts",
+ "source:src/workbench/queueHistoryNormalization.ts",
+ "source:src/workbench/settings/HotkeysSettingsSection.tsx",
+ "source:src/workbench/settings/SettingsDialog.tsx",
+ "source:src/workbench/settings/index.ts",
+ "source:src/workbench/settings/settingsDialogStore.ts",
+ "source:src/workbench/settings/store.ts",
+ "source:src/workbench/shell/BottomPanel.tsx",
+ "source:src/workbench/shell/CenterArea.tsx",
+ "source:src/workbench/shell/Panels.tsx",
+ "source:src/workbench/shell/StatusBar.tsx",
+ "source:src/workbench/shell/WorkbenchShell.tsx",
+ "source:src/workbench/shell/index.ts",
+ "source:src/workbench/shell/notifications/WorkbenchNotificationToaster.tsx",
+ "source:src/workbench/shell/notifications/index.ts",
+ "source:src/workbench/shell/topbar/BatchCountField.tsx",
+ "source:src/workbench/shell/topbar/InvokeControl.tsx",
+ "source:src/workbench/shell/topbar/LayoutPresetMenu.tsx",
+ "source:src/workbench/shell/topbar/ModelManagerButton.tsx",
+ "source:src/workbench/shell/topbar/NodeManagerButton.tsx",
+ "source:src/workbench/shell/topbar/QueueActions.tsx",
+ "source:src/workbench/shell/topbar/QueueInfo.tsx",
+ "source:src/workbench/shell/topbar/TopBar.tsx",
+ "source:src/workbench/shell/topbar/index.ts",
+ "source:src/workbench/useNotify.ts",
+ "source:src/workbench/useOpenWorkbenchWidget.ts",
+ "source:src/workbench/widget-frame/WidgetActionsMenu.tsx",
+ "source:src/workbench/widget-frame/WidgetBar.tsx",
+ "source:src/workbench/widget-frame/WidgetEnableMenu.tsx",
+ "source:src/workbench/widget-frame/WidgetFailureBoundary.tsx",
+ "source:src/workbench/widget-frame/WidgetFrames.tsx",
+ "source:src/workbench/widget-frame/WidgetHosts.tsx",
+ "source:src/workbench/widget-frame/WidgetIdentityIcon.tsx",
+ "source:src/workbench/widget-frame/WidgetInstanceContextMenu.tsx",
+ "source:src/workbench/widget-frame/WidgetLoadingFallback.tsx",
+ "source:src/workbench/widget-frame/WidgetRegionDropOverlay.tsx",
+ "source:src/workbench/widget-frame/WidgetRenderer.tsx",
+ "source:src/workbench/widget-frame/WidgetStrip.tsx",
+ "source:src/workbench/widget-frame/createWidgetRuntime.ts",
+ "source:src/workbench/widget-frame/index.ts",
+ "source:src/workbench/widget-frame/useWidgetIntentPreload.ts",
+ "source:src/workbench/widget-frame/useWidgetSortable.ts",
+ "source:src/workbench/widget-frame/widgetRenderInstance.ts",
+ "source:src/workbench/widgetDnd.ts",
+ "source:src/workbench/widgetImplementationResource.ts",
+ "source:src/workbench/widgetLabels.ts",
+ "source:src/workbench/widgetPlacementCommands.ts",
+ "source:src/workbench/widgetPlacementMeta.ts",
+ "source:src/workbench/widgetRegionViewModel.ts",
+ "source:src/workbench/widgetRegistry.ts",
+ "source:src/workbench/widgetState.ts",
+ "source:src/workbench/widgets/autosave-status/AutosaveStatusWidgetView.tsx",
+ "source:src/workbench/widgets/autosave-status/implementation.ts",
+ "source:src/workbench/widgets/autosave-status/manifest.ts",
+ "source:src/workbench/widgets/canvas/bboxGrid.ts",
+ "source:src/workbench/widgets/canvas/invoke/canvasCompositing.ts",
+ "source:src/workbench/widgets/canvas/invoke/canvasStrength.ts",
+ "source:src/workbench/widgets/canvas/manifest.ts",
+ "source:src/workbench/widgets/diagnostics/DiagnosticsHeaderActions.tsx",
+ "source:src/workbench/widgets/diagnostics/DiagnosticsWidgetView.tsx",
+ "source:src/workbench/widgets/diagnostics/implementation.ts",
+ "source:src/workbench/widgets/diagnostics/manifest.ts",
+ "source:src/workbench/widgets/gallery/manifest.ts",
+ "source:src/workbench/widgets/generate/manifest.ts",
+ "source:src/workbench/widgets/layers/controlModelOptions.ts",
+ "source:src/workbench/widgets/layers/layerOps.ts",
+ "source:src/workbench/widgets/layers/manifest.ts",
+ "source:src/workbench/widgets/layers/selectedModel.ts",
+ "source:src/workbench/widgets/notifications/NotificationsHeaderActions.tsx",
+ "source:src/workbench/widgets/notifications/NotificationsWidgetView.tsx",
+ "source:src/workbench/widgets/notifications/implementation.ts",
+ "source:src/workbench/widgets/notifications/manifest.ts",
+ "source:src/workbench/widgets/preview/PreviewActionStrip.tsx",
+ "source:src/workbench/widgets/preview/PreviewCompare.tsx",
+ "source:src/workbench/widgets/preview/PreviewCompareDropZone.tsx",
+ "source:src/workbench/widgets/preview/PreviewFilmstrip.tsx",
+ "source:src/workbench/widgets/preview/PreviewFooter.tsx",
+ "source:src/workbench/widgets/preview/PreviewFrame.tsx",
+ "source:src/workbench/widgets/preview/PreviewHeaderActions.tsx",
+ "source:src/workbench/widgets/preview/PreviewLiveReadout.tsx",
+ "source:src/workbench/widgets/preview/PreviewMetadataPanel.tsx",
+ "source:src/workbench/widgets/preview/PreviewWidgetChrome.tsx",
+ "source:src/workbench/widgets/preview/PreviewWidgetView.tsx",
+ "source:src/workbench/widgets/preview/implementation.ts",
+ "source:src/workbench/widgets/preview/manifest.ts",
+ "source:src/workbench/widgets/preview/previewCompareDnd.ts",
+ "source:src/workbench/widgets/preview/previewDensity.ts",
+ "source:src/workbench/widgets/preview/previewHeaderStore.ts",
+ "source:src/workbench/widgets/preview/previewMetadata.ts",
+ "source:src/workbench/widgets/preview/previewNavigation.ts",
+ "source:src/workbench/widgets/preview/previewSettings.ts",
+ "source:src/workbench/widgets/preview/useCompareLoupe.ts",
+ "source:src/workbench/widgets/preview/usePreviewLoupe.ts",
+ "source:src/workbench/widgets/project/manifest.ts",
+ "source:src/workbench/widgets/queue/manifest.ts",
+ "source:src/workbench/widgets/server-status/ServerStatusWidgetView.tsx",
+ "source:src/workbench/widgets/server-status/implementation.ts",
+ "source:src/workbench/widgets/server-status/manifest.ts",
+ "source:src/workbench/widgets/upscale/manifest.ts",
+ "source:src/workbench/widgets/version-status/VersionStatusWidgetView.tsx",
+ "source:src/workbench/widgets/version-status/implementation.ts",
+ "source:src/workbench/widgets/version-status/manifest.ts",
+ "source:src/workbench/widgets/workflow/manifest.ts",
+ "source:src/workbench/workbenchState.ts",
+ "source:src/workbench/workbenchStore.ts"
+ ],
+ "editor-canvas-static": [
+ "package:@ark-ui/react",
+ "package:@chakra-ui/react",
+ "package:@dnd-kit/accessibility",
+ "package:@dnd-kit/core",
+ "package:@dnd-kit/modifiers",
+ "package:@dnd-kit/sortable",
+ "package:@dnd-kit/utilities",
+ "package:@emotion/cache",
+ "package:@emotion/hash",
+ "package:@emotion/is-prop-valid",
+ "package:@emotion/memoize",
+ "package:@emotion/react",
+ "package:@emotion/serialize",
+ "package:@emotion/sheet",
+ "package:@emotion/unitless",
+ "package:@emotion/use-insertion-effect-with-fallbacks",
+ "package:@emotion/utils",
+ "package:@floating-ui/core",
+ "package:@floating-ui/dom",
+ "package:@floating-ui/utils",
+ "package:@fontsource/inter",
+ "package:@internationalized/number",
+ "package:@pandacss/is-valid-prop",
+ "package:@socket.io/component-emitter",
+ "package:@tanstack/history",
+ "package:@tanstack/query-core",
+ "package:@tanstack/react-query",
+ "package:@tanstack/react-router",
+ "package:@tanstack/react-store",
+ "package:@tanstack/react-virtual",
+ "package:@tanstack/router-core",
+ "package:@tanstack/store",
+ "package:@tanstack/virtual-core",
+ "package:@xyflow/react",
+ "package:@xyflow/system",
+ "package:@zag-js/accordion",
+ "package:@zag-js/anatomy",
+ "package:@zag-js/aria-hidden",
+ "package:@zag-js/auto-resize",
+ "package:@zag-js/avatar",
+ "package:@zag-js/carousel",
+ "package:@zag-js/checkbox",
+ "package:@zag-js/clipboard",
+ "package:@zag-js/collapsible",
+ "package:@zag-js/collection",
+ "package:@zag-js/color-picker",
+ "package:@zag-js/color-utils",
+ "package:@zag-js/combobox",
+ "package:@zag-js/core",
+ "package:@zag-js/date-picker",
+ "package:@zag-js/dialog",
+ "package:@zag-js/dismissable",
+ "package:@zag-js/dom-query",
+ "package:@zag-js/editable",
+ "package:@zag-js/file-upload",
+ "package:@zag-js/floating-panel",
+ "package:@zag-js/focus-trap",
+ "package:@zag-js/focus-visible",
+ "package:@zag-js/hover-card",
+ "package:@zag-js/interact-outside",
+ "package:@zag-js/listbox",
+ "package:@zag-js/live-region",
+ "package:@zag-js/marquee",
+ "package:@zag-js/menu",
+ "package:@zag-js/number-input",
+ "package:@zag-js/pagination",
+ "package:@zag-js/pin-input",
+ "package:@zag-js/popover",
+ "package:@zag-js/popper",
+ "package:@zag-js/presence",
+ "package:@zag-js/progress",
+ "package:@zag-js/qr-code",
+ "package:@zag-js/radio-group",
+ "package:@zag-js/rating-group",
+ "package:@zag-js/react",
+ "package:@zag-js/rect-utils",
+ "package:@zag-js/remove-scroll",
+ "package:@zag-js/scroll-area",
+ "package:@zag-js/select",
+ "package:@zag-js/slider",
+ "package:@zag-js/splitter",
+ "package:@zag-js/switch",
+ "package:@zag-js/tabs",
+ "package:@zag-js/tags-input",
+ "package:@zag-js/toast",
+ "package:@zag-js/tooltip",
+ "package:@zag-js/tree-view",
+ "package:@zag-js/types",
+ "package:@zag-js/utils",
+ "package:classcat",
+ "package:d3-color",
+ "package:d3-dispatch",
+ "package:d3-drag",
+ "package:d3-ease",
+ "package:d3-interpolate",
+ "package:d3-selection",
+ "package:d3-timer",
+ "package:d3-transition",
+ "package:d3-zoom",
+ "package:engine.io-client",
+ "package:engine.io-parser",
+ "package:fuzzysort",
+ "package:hoist-non-react-statics",
+ "package:i18next",
+ "package:i18next-http-backend",
+ "package:lucide-react",
+ "package:perfect-freehand",
+ "package:react",
+ "package:react-dom",
+ "package:react-hook-tanstack-virtual",
+ "package:react-i18next",
+ "package:react-is",
+ "package:scheduler",
+ "package:socket.io-client",
+ "package:socket.io-parser",
+ "package:stylis",
+ "package:tinykeys",
+ "package:use-sync-external-store",
+ "package:zod",
+ "package:zustand",
+ "source:index.html",
+ "source:src/app/App.tsx",
+ "source:src/app/AppProviders.tsx",
+ "source:src/app/GalleryImageActionsBridge.tsx",
+ "source:src/app/GalleryUiAdapter.tsx",
+ "source:src/app/GenerationUiAdapter.tsx",
+ "source:src/app/I18nController.tsx",
+ "source:src/app/ModelsUiAdapter.tsx",
+ "source:src/app/QueueRuntimeAdapter.tsx",
+ "source:src/app/QueueUiAdapter.tsx",
+ "source:src/app/SocketHubRuntime.tsx",
+ "source:src/app/ThemeController.tsx",
+ "source:src/app/UpscaleUiAdapter.tsx",
+ "source:src/app/WorkbenchApp.tsx",
+ "source:src/app/WorkflowUiAdapter.tsx",
+ "source:src/app/accountLifecycle.ts",
+ "source:src/app/main.tsx",
+ "source:src/app/router.tsx",
+ "source:src/app/workbenchPorts.tsx",
+ "source:src/assets/SplashImage.webp",
+ "source:src/features/gallery/contracts.ts",
+ "source:src/features/gallery/core/image.ts",
+ "source:src/features/gallery/core/imagePaths.ts",
+ "source:src/features/gallery/core/selection.ts",
+ "source:src/features/gallery/core/settings.ts",
+ "source:src/features/gallery/data/backend.ts",
+ "source:src/features/gallery/data/imageUrls.ts",
+ "source:src/features/gallery/data/queries.ts",
+ "source:src/features/gallery/index.ts",
+ "source:src/features/gallery/queries.ts",
+ "source:src/features/gallery/react.ts",
+ "source:src/features/gallery/ui/GalleryBoardMenu.tsx",
+ "source:src/features/gallery/ui/GalleryBoardSelect.tsx",
+ "source:src/features/gallery/ui/GalleryImageGrid.tsx",
+ "source:src/features/gallery/ui/GalleryPanelContent.tsx",
+ "source:src/features/gallery/ui/GalleryToolbar.tsx",
+ "source:src/features/gallery/ui/GalleryUiContext.tsx",
+ "source:src/features/gallery/ui/GalleryWidgetContext.tsx",
+ "source:src/features/gallery/ui/GalleryWidgetFooter.tsx",
+ "source:src/features/gallery/ui/GalleryWidgetView.tsx",
+ "source:src/features/gallery/ui/galleryDnd.ts",
+ "source:src/features/gallery/ui/galleryStateView.ts",
+ "source:src/features/gallery/ui/useGalleryActions.ts",
+ "source:src/features/gallery/ui/useGalleryData.ts",
+ "source:src/features/gallery/utility.ts",
+ "source:src/features/gallery/widget.ts",
+ "source:src/features/generation/components.ts",
+ "source:src/features/generation/core/baseGenerationPolicies.ts",
+ "source:src/features/generation/core/batch.ts",
+ "source:src/features/generation/core/canvas/addControlLayers.ts",
+ "source:src/features/generation/core/canvas/addRegionalGuidance.ts",
+ "source:src/features/generation/core/canvas/compileCanvasGraph.ts",
+ "source:src/features/generation/core/canvas/controlValidation.ts",
+ "source:src/features/generation/core/canvas/types.ts",
+ "source:src/features/generation/core/componentCompatibility.ts",
+ "source:src/features/generation/core/graph.ts",
+ "source:src/features/generation/core/graphBuilder.ts",
+ "source:src/features/generation/core/projectPromptDraft.ts",
+ "source:src/features/generation/core/prompt/ast.ts",
+ "source:src/features/generation/core/prompt/attention.ts",
+ "source:src/features/generation/core/prompt/highlight.ts",
+ "source:src/features/generation/core/promptHistory.ts",
+ "source:src/features/generation/core/referenceImage.ts",
+ "source:src/features/generation/core/settings.ts",
+ "source:src/features/generation/data/promptUtilities.ts",
+ "source:src/features/generation/data/referenceImageUrls.ts",
+ "source:src/features/generation/graph.ts",
+ "source:src/features/generation/react.ts",
+ "source:src/features/generation/settings.ts",
+ "source:src/features/generation/ui/GenerateAdvancedFields.tsx",
+ "source:src/features/generation/ui/GenerateCanvasCompositingSection.tsx",
+ "source:src/features/generation/ui/GenerateComponentsSection.tsx",
+ "source:src/features/generation/ui/GenerateConceptsSection.tsx",
+ "source:src/features/generation/ui/GenerateDimensionFields.tsx",
+ "source:src/features/generation/ui/GenerateHeaderActions.tsx",
+ "source:src/features/generation/ui/GenerateModelFields.tsx",
+ "source:src/features/generation/ui/GenerateSettingsForm.tsx",
+ "source:src/features/generation/ui/GenerateWidgetView.tsx",
+ "source:src/features/generation/ui/GenerationUiContext.tsx",
+ "source:src/features/generation/ui/generateDebounce.ts",
+ "source:src/features/generation/ui/generateDraftRegistry.ts",
+ "source:src/features/generation/ui/generateFormViewModel.ts",
+ "source:src/features/generation/ui/modelSelectionNotice.ts",
+ "source:src/features/generation/ui/promptFields/GeneratePromptFields.tsx",
+ "source:src/features/generation/ui/promptFields/NegativePromptField.tsx",
+ "source:src/features/generation/ui/promptFields/PositivePromptActions.tsx",
+ "source:src/features/generation/ui/promptFields/PositivePromptField.tsx",
+ "source:src/features/generation/ui/promptFields/PromptTextarea.tsx",
+ "source:src/features/generation/ui/promptFields/index.ts",
+ "source:src/features/generation/ui/promptFields/promptAttentionHotkeys.ts",
+ "source:src/features/generation/ui/promptFields/promptFocus.ts",
+ "source:src/features/generation/ui/promptFields/promptHistoryNavigation.ts",
+ "source:src/features/generation/ui/reference-images/GenerateReferenceImagesSection.tsx",
+ "source:src/features/generation/ui/reference-images/ReferenceImageCard.tsx",
+ "source:src/features/generation/ui/reference-images/ReferenceImageControls.tsx",
+ "source:src/features/generation/ui/reference-images/ReferenceImageCropDialog.tsx",
+ "source:src/features/generation/ui/reference-images/referenceImageConfig.ts",
+ "source:src/features/generation/ui/shared/AspectRatioPreview.tsx",
+ "source:src/features/generation/ui/shared/GenerateCollapsibleSection.tsx",
+ "source:src/features/generation/ui/shared/ModelDefaultButton.tsx",
+ "source:src/features/generation/ui/shared/SliderNumberField.tsx",
+ "source:src/features/generation/ui/shared/modelDefaultSettings.ts",
+ "source:src/features/generation/ui/useDebouncedDraftValue.ts",
+ "source:src/features/generation/widget.ts",
+ "source:src/features/identity/capabilities.ts",
+ "source:src/features/identity/core/schemas.ts",
+ "source:src/features/identity/core/sessionPolicy.ts",
+ "source:src/features/identity/core/tokenStorage.ts",
+ "source:src/features/identity/data/api.ts",
+ "source:src/features/identity/index.ts",
+ "source:src/features/identity/session.ts",
+ "source:src/features/identity/transportAdapter.ts",
+ "source:src/features/identity/ui/AccountMenu.tsx",
+ "source:src/features/identity/ui/AuthScreen.tsx",
+ "source:src/features/identity/ui/AuthUnavailableScreen.tsx",
+ "source:src/features/identity/ui/LoginScreen.tsx",
+ "source:src/features/identity/ui/PasswordInput.tsx",
+ "source:src/features/identity/ui/ProfileDialog.tsx",
+ "source:src/features/identity/ui/SetupScreen.tsx",
+ "source:src/features/identity/ui/UserFormDialog.tsx",
+ "source:src/features/identity/ui/UserManagement.tsx",
+ "source:src/features/identity/ui/UsersPage.tsx",
+ "source:src/features/identity/ui/useIdentityNotify.ts",
+ "source:src/features/models/core/baseIdentity.ts",
+ "source:src/features/models/core/library.ts",
+ "source:src/features/models/core/taxonomy.ts",
+ "source:src/features/models/data/api.ts",
+ "source:src/features/models/data/modelLoadStore.ts",
+ "source:src/features/models/data/modelsStore.ts",
+ "source:src/features/models/data/transport.ts",
+ "source:src/features/models/index.ts",
+ "source:src/features/models/react.ts",
+ "source:src/features/models/ui/ModelsPage.tsx",
+ "source:src/features/models/ui/ModelsUiContext.tsx",
+ "source:src/features/models/ui/components/ModelSelect.tsx",
+ "source:src/features/nodes/core/catalog.ts",
+ "source:src/features/nodes/data/api.ts",
+ "source:src/features/nodes/data/nodeExecutionStore.ts",
+ "source:src/features/nodes/data/nodesStore.ts",
+ "source:src/features/nodes/data/transport.ts",
+ "source:src/features/nodes/index.ts",
+ "source:src/features/nodes/ui/NodesPage.tsx",
+ "source:src/features/queue/contracts.ts",
+ "source:src/features/queue/core/generationMeta.ts",
+ "source:src/features/queue/core/historySnapshot.ts",
+ "source:src/features/queue/core/historySummary.ts",
+ "source:src/features/queue/core/progressImage.ts",
+ "source:src/features/queue/core/submissionRules.ts",
+ "source:src/features/queue/core/types.ts",
+ "source:src/features/queue/data/activeProgressTargetStore.ts",
+ "source:src/features/queue/data/events.ts",
+ "source:src/features/queue/data/httpRealtimeQueueBackend.ts",
+ "source:src/features/queue/data/itemProgressStore.ts",
+ "source:src/features/queue/data/mappers.ts",
+ "source:src/features/queue/data/progressImageStore.ts",
+ "source:src/features/queue/data/progressStore.ts",
+ "source:src/features/queue/data/queries.ts",
+ "source:src/features/queue/data/realtimeRuntime.ts",
+ "source:src/features/queue/data/serverApi.ts",
+ "source:src/features/queue/data/submissionApi.ts",
+ "source:src/features/queue/index.ts",
+ "source:src/features/queue/menu.ts",
+ "source:src/features/queue/publicApi.ts",
+ "source:src/features/queue/react.ts",
+ "source:src/features/queue/reveal.ts",
+ "source:src/features/queue/runtime.ts",
+ "source:src/features/queue/runtime/coordinator.ts",
+ "source:src/features/queue/runtime/utilityGraph.ts",
+ "source:src/features/queue/ui/CancelQueueItemButton.tsx",
+ "source:src/features/queue/ui/ModelCacheFooter.tsx",
+ "source:src/features/queue/ui/NowNextSection.tsx",
+ "source:src/features/queue/ui/QueueDataRuntime.tsx",
+ "source:src/features/queue/ui/QueueFilterTabs.tsx",
+ "source:src/features/queue/ui/QueueHeaderActions.tsx",
+ "source:src/features/queue/ui/QueueHeaderLabel.tsx",
+ "source:src/features/queue/ui/QueueHeaderMenu.tsx",
+ "source:src/features/queue/ui/QueueItemDetails.tsx",
+ "source:src/features/queue/ui/QueueItemRow.tsx",
+ "source:src/features/queue/ui/QueueItemThumbnail.tsx",
+ "source:src/features/queue/ui/QueueStats.tsx",
+ "source:src/features/queue/ui/QueueStatusDot.tsx",
+ "source:src/features/queue/ui/QueueStepProgress.tsx",
+ "source:src/features/queue/ui/QueueUiContext.tsx",
+ "source:src/features/queue/ui/QueueWidgetView.tsx",
+ "source:src/features/queue/ui/RecentSection.tsx",
+ "source:src/features/queue/ui/SectionHeader.tsx",
+ "source:src/features/queue/ui/currentBatchItems.ts",
+ "source:src/features/queue/ui/formatDuration.ts",
+ "source:src/features/queue/ui/index.ts",
+ "source:src/features/queue/ui/modelCacheStore.ts",
+ "source:src/features/queue/ui/queueConfirmationStore.ts",
+ "source:src/features/queue/ui/queueDataStore.ts",
+ "source:src/features/queue/ui/queueFilters.ts",
+ "source:src/features/queue/ui/queueMenuActions.tsx",
+ "source:src/features/queue/ui/queueOwnership.ts",
+ "source:src/features/queue/ui/queueProgressCleanup.ts",
+ "source:src/features/queue/ui/queueScope.ts",
+ "source:src/features/queue/ui/queueUiStore.ts",
+ "source:src/features/queue/ui/queueViewModel.ts",
+ "source:src/features/queue/ui/statusMeta.ts",
+ "source:src/features/queue/utility.ts",
+ "source:src/features/queue/widget.ts",
+ "source:src/features/upscale/core/graph.ts",
+ "source:src/features/upscale/core/settings.ts",
+ "source:src/features/upscale/index.ts",
+ "source:src/features/upscale/ui/UpscaleUiContext.tsx",
+ "source:src/features/workflow/core/buildGraph.ts",
+ "source:src/features/workflow/core/connectors.ts",
+ "source:src/features/workflow/core/document.ts",
+ "source:src/features/workflow/core/fields.ts",
+ "source:src/features/workflow/core/graphIndex.ts",
+ "source:src/features/workflow/core/layerWorkflow.ts",
+ "source:src/features/workflow/core/types.ts",
+ "source:src/features/workflow/core/validation.ts",
+ "source:src/features/workflow/core/workflowJson.ts",
+ "source:src/features/workflow/data/api.ts",
+ "source:src/features/workflow/data/libraryCache.ts",
+ "source:src/features/workflow/data/templates.ts",
+ "source:src/features/workflow/graph.ts",
+ "source:src/features/workflow/queries.ts",
+ "source:src/features/workflow/react.ts",
+ "source:src/features/workflow/ui/PendingLibraryWorkflowLoader.tsx",
+ "source:src/features/workflow/ui/WorkflowUiContext.tsx",
+ "source:src/features/workflow/ui/WorkflowWidgetChrome.tsx",
+ "source:src/features/workflow/ui/WorkflowWidgetView.tsx",
+ "source:src/features/workflow/ui/editor/AddNodeDialog.tsx",
+ "source:src/features/workflow/ui/editor/ConnectorFlowNode.tsx",
+ "source:src/features/workflow/ui/editor/CurrentImageFlowNode.tsx",
+ "source:src/features/workflow/ui/editor/EditorToolbar.tsx",
+ "source:src/features/workflow/ui/editor/InvocationFlowNode.tsx",
+ "source:src/features/workflow/ui/editor/NodeContextMenu.tsx",
+ "source:src/features/workflow/ui/editor/NotesFlowNode.tsx",
+ "source:src/features/workflow/ui/editor/WorkflowEdge.tsx",
+ "source:src/features/workflow/ui/editor/WorkflowEditorView.tsx",
+ "source:src/features/workflow/ui/editor/WorkflowSelectionRequestRuntime.tsx",
+ "source:src/features/workflow/ui/editor/clipboard.ts",
+ "source:src/features/workflow/ui/editor/flowAdapters.ts",
+ "source:src/features/workflow/ui/editor/flowInstanceStore.ts",
+ "source:src/features/workflow/ui/editor/handleTooltip.ts",
+ "source:src/features/workflow/ui/editor/nodeChrome.ts",
+ "source:src/features/workflow/ui/editor/performanceConstants.ts",
+ "source:src/features/workflow/ui/editor/selectionStore.ts",
+ "source:src/features/workflow/ui/editor/useEraser.tsx",
+ "source:src/features/workflow/ui/editor/useLasso.tsx",
+ "source:src/features/workflow/ui/editor/workflowViewportStore.ts",
+ "source:src/features/workflow/ui/fields/FieldDescriptionPopover.tsx",
+ "source:src/features/workflow/ui/fields/WorkflowFieldInput.tsx",
+ "source:src/features/workflow/ui/graph-preview/FlowMiniMap.tsx",
+ "source:src/features/workflow/ui/graph-preview/GraphPreviewDialog.tsx",
+ "source:src/features/workflow/ui/graph-preview/GraphPreviewFlow.tsx",
+ "source:src/features/workflow/ui/graph-preview/flowTheme.ts",
+ "source:src/features/workflow/ui/graph-preview/index.ts",
+ "source:src/features/workflow/ui/implementation.ts",
+ "source:src/features/workflow/ui/library/WorkflowLibraryDialog.tsx",
+ "source:src/features/workflow/ui/linear/FormBuilderTab.tsx",
+ "source:src/features/workflow/ui/linear/LinearFormView.tsx",
+ "source:src/features/workflow/ui/linear/NodeFieldControl.tsx",
+ "source:src/features/workflow/ui/linear/NodeInspector.tsx",
+ "source:src/features/workflow/ui/linear/WorkflowDetailsTab.tsx",
+ "source:src/features/workflow/ui/linear/WorkflowJsonTab.tsx",
+ "source:src/features/workflow/ui/linear/WorkflowLinearPanel.tsx",
+ "source:src/features/workflow/ui/pendingLibraryWorkflowLoadRuntime.ts",
+ "source:src/features/workflow/ui/useProjectGraphCommands.ts",
+ "source:src/features/workflow/ui/workflowTransfer.ts",
+ "source:src/features/workflow/ui/workflowUiStore.ts",
+ "source:src/features/workflow/utility.ts",
+ "source:src/features/workflow/widget.ts",
+ "source:src/platform/browser/knownBrowserIssues.ts",
+ "source:src/platform/i18n/client.ts",
+ "source:src/platform/i18n/languages.ts",
+ "source:src/platform/performance/semanticReady.ts",
+ "source:src/platform/query/client.ts",
+ "source:src/platform/react/composeProviders.tsx",
+ "source:src/platform/react/draftRegistry.ts",
+ "source:src/platform/react/useModifierHeld.ts",
+ "source:src/platform/react/useMountEffect.ts",
+ "source:src/platform/react/useZodForm.ts",
+ "source:src/platform/search/dateTokens.ts",
+ "source:src/platform/state/accountLifecycle.ts",
+ "source:src/platform/state/externalStore.ts",
+ "source:src/platform/state/externalStoreCore.ts",
+ "source:src/platform/state/projectedExternalStore.ts",
+ "source:src/platform/state/selectorCore.ts",
+ "source:src/platform/state/selectors.ts",
+ "source:src/platform/state/singleFlight.ts",
+ "source:src/platform/time/serverTimestamp.ts",
+ "source:src/platform/transport/connectionStore.ts",
+ "source:src/platform/transport/deploymentBase.ts",
+ "source:src/platform/transport/http.ts",
+ "source:src/platform/transport/socketHub.ts",
+ "source:src/platform/ui/Button.tsx",
+ "source:src/platform/ui/ColorPicker.tsx",
+ "source:src/platform/ui/Combobox.tsx",
+ "source:src/platform/ui/ConfirmDialog.tsx",
+ "source:src/platform/ui/DropZone.tsx",
+ "source:src/platform/ui/Field.tsx",
+ "source:src/platform/ui/InvokeMark.tsx",
+ "source:src/platform/ui/JsonPreview.tsx",
+ "source:src/platform/ui/Menu.tsx",
+ "source:src/platform/ui/Panel.tsx",
+ "source:src/platform/ui/RenameDialog.tsx",
+ "source:src/platform/ui/ResizableTextarea.tsx",
+ "source:src/platform/ui/Row.tsx",
+ "source:src/platform/ui/Scrollable.tsx",
+ "source:src/platform/ui/Select.tsx",
+ "source:src/platform/ui/Slider.tsx",
+ "source:src/platform/ui/StatusWidgetChip.tsx",
+ "source:src/platform/ui/Tabs.tsx",
+ "source:src/platform/ui/ToggleDot.tsx",
+ "source:src/platform/ui/Toolbar.tsx",
+ "source:src/platform/ui/Tooltip.tsx",
+ "source:src/platform/ui/colorPickerSync.ts",
+ "source:src/platform/ui/index.ts",
+ "source:src/platform/ui/streaming-image/StreamingImageFrame.tsx",
+ "source:src/platform/ui/streaming-image/streamingImageSource.ts",
+ "source:src/platform/ui/streaming-image/useStreamingImageSource.ts",
+ "source:src/platform/ui/theme/applyTheme.ts",
+ "source:src/platform/ui/theme/recipes.ts",
+ "source:src/platform/ui/theme/system.ts",
+ "source:src/platform/ui/theme/themes.ts",
+ "source:src/platform/ui/toaster.tsx",
+ "source:src/workbench/WorkbenchContext.tsx",
+ "source:src/workbench/WorkbenchRuntime.tsx",
+ "source:src/workbench/WorkbenchSessionController.tsx",
+ "source:src/workbench/WorkbenchWidgetRegistryContext.tsx",
+ "source:src/workbench/autoRoutePolicy.ts",
+ "source:src/workbench/canvas-engine/api.ts",
+ "source:src/workbench/canvas-engine/capabilities.ts",
+ "source:src/workbench/canvas-engine/color.ts",
+ "source:src/workbench/canvas-engine/controllers/booleanMergeController.ts",
+ "source:src/workbench/canvas-engine/controllers/controlPixelController.ts",
+ "source:src/workbench/canvas-engine/controllers/copyLayerController.ts",
+ "source:src/workbench/canvas-engine/controllers/cropLayerController.ts",
+ "source:src/workbench/canvas-engine/controllers/editingController.ts",
+ "source:src/workbench/canvas-engine/controllers/extractMaskedAreaController.ts",
+ "source:src/workbench/canvas-engine/controllers/filterResultController.ts",
+ "source:src/workbench/canvas-engine/controllers/floatingSelectionController.ts",
+ "source:src/workbench/canvas-engine/controllers/generatedResultController.ts",
+ "source:src/workbench/canvas-engine/controllers/historyController.ts",
+ "source:src/workbench/canvas-engine/controllers/interactionController.ts",
+ "source:src/workbench/canvas-engine/controllers/layerController.ts",
+ "source:src/workbench/canvas-engine/controllers/layerMutationController.ts",
+ "source:src/workbench/canvas-engine/controllers/maskLayerController.ts",
+ "source:src/workbench/canvas-engine/controllers/maskResultController.ts",
+ "source:src/workbench/canvas-engine/controllers/mergeLayerController.ts",
+ "source:src/workbench/canvas-engine/controllers/mutationContext.ts",
+ "source:src/workbench/canvas-engine/controllers/newRasterLayerController.ts",
+ "source:src/workbench/canvas-engine/controllers/persistenceController.ts",
+ "source:src/workbench/canvas-engine/controllers/previewStateController.ts",
+ "source:src/workbench/canvas-engine/controllers/psdExportController.ts",
+ "source:src/workbench/canvas-engine/controllers/rasterController.ts",
+ "source:src/workbench/canvas-engine/controllers/rasterExportController.ts",
+ "source:src/workbench/canvas-engine/controllers/rasterMemoryBudgetController.ts",
+ "source:src/workbench/canvas-engine/controllers/rasterizeLayerController.ts",
+ "source:src/workbench/canvas-engine/controllers/renderController.ts",
+ "source:src/workbench/canvas-engine/controllers/selectionImageController.ts",
+ "source:src/workbench/canvas-engine/controllers/selectionPixelController.ts",
+ "source:src/workbench/canvas-engine/controllers/stagedResultController.ts",
+ "source:src/workbench/canvas-engine/controllers/structuralLayerController.ts",
+ "source:src/workbench/canvas-engine/controllers/textEditingController.ts",
+ "source:src/workbench/canvas-engine/controllers/thumbnailController.ts",
+ "source:src/workbench/canvas-engine/controllers/transformEditingController.ts",
+ "source:src/workbench/canvas-engine/diagnostics.ts",
+ "source:src/workbench/canvas-engine/document/bitmapStore.ts",
+ "source:src/workbench/canvas-engine/document/documentMirror.ts",
+ "source:src/workbench/canvas-engine/document/layerChangeDecision.ts",
+ "source:src/workbench/canvas-engine/document/layerFactories.ts",
+ "source:src/workbench/canvas-engine/document/mergeDown.ts",
+ "source:src/workbench/canvas-engine/document/mergeVisible.ts",
+ "source:src/workbench/canvas-engine/document/sources.ts",
+ "source:src/workbench/canvas-engine/editGate.ts",
+ "source:src/workbench/canvas-engine/editing/controlPixelEdit.ts",
+ "source:src/workbench/canvas-engine/engine.ts",
+ "source:src/workbench/canvas-engine/engineStores.ts",
+ "source:src/workbench/canvas-engine/export/psdExport.ts",
+ "source:src/workbench/canvas-engine/exportRasterComposite.ts",
+ "source:src/workbench/canvas-engine/filterError.ts",
+ "source:src/workbench/canvas-engine/freehand.ts",
+ "source:src/workbench/canvas-engine/history/documentPatch.ts",
+ "source:src/workbench/canvas-engine/history/history.ts",
+ "source:src/workbench/canvas-engine/history/imagePatch.ts",
+ "source:src/workbench/canvas-engine/history/layerSnapshot.ts",
+ "source:src/workbench/canvas-engine/input/pointerPipeline.ts",
+ "source:src/workbench/canvas-engine/input/wheel.ts",
+ "source:src/workbench/canvas-engine/layerExportGuards.ts",
+ "source:src/workbench/canvas-engine/layerRasterizer.ts",
+ "source:src/workbench/canvas-engine/math/mat2d.ts",
+ "source:src/workbench/canvas-engine/math/rect.ts",
+ "source:src/workbench/canvas-engine/math/snapping.ts",
+ "source:src/workbench/canvas-engine/previewPublisher.ts",
+ "source:src/workbench/canvas-engine/rasterSnapshotCapture.ts",
+ "source:src/workbench/canvas-engine/render/adjustedSurfaceCache.ts",
+ "source:src/workbench/canvas-engine/render/adjustments.ts",
+ "source:src/workbench/canvas-engine/render/colorSample.ts",
+ "source:src/workbench/canvas-engine/render/compositeFrame.ts",
+ "source:src/workbench/canvas-engine/render/compositor.ts",
+ "source:src/workbench/canvas-engine/render/controlTransparency.ts",
+ "source:src/workbench/canvas-engine/render/decodedBitmapPool.ts",
+ "source:src/workbench/canvas-engine/render/derivedSurfaceCache.ts",
+ "source:src/workbench/canvas-engine/render/floatingSelectionFrame.ts",
+ "source:src/workbench/canvas-engine/render/fontLoader.ts",
+ "source:src/workbench/canvas-engine/render/frameDemand.ts",
+ "source:src/workbench/canvas-engine/render/layerCache.ts",
+ "source:src/workbench/canvas-engine/render/layerDisplayEffect.ts",
+ "source:src/workbench/canvas-engine/render/maskFill.ts",
+ "source:src/workbench/canvas-engine/render/overlayFrame.ts",
+ "source:src/workbench/canvas-engine/render/overlayRenderer.ts",
+ "source:src/workbench/canvas-engine/render/raster.ts",
+ "source:src/workbench/canvas-engine/render/rasterComposite.ts",
+ "source:src/workbench/canvas-engine/render/rasterizers/gradientRasterizer.ts",
+ "source:src/workbench/canvas-engine/render/rasterizers/imageRasterizer.ts",
+ "source:src/workbench/canvas-engine/render/rasterizers/index.ts",
+ "source:src/workbench/canvas-engine/render/rasterizers/paintRasterizer.ts",
+ "source:src/workbench/canvas-engine/render/rasterizers/shapeRasterizer.ts",
+ "source:src/workbench/canvas-engine/render/rasterizers/textRasterizer.ts",
+ "source:src/workbench/canvas-engine/render/scheduler.ts",
+ "source:src/workbench/canvas-engine/render/surfaceBudget.ts",
+ "source:src/workbench/canvas-engine/render/thumbnail.ts",
+ "source:src/workbench/canvas-engine/samCoordinates.ts",
+ "source:src/workbench/canvas-engine/selectObjectBridge.ts",
+ "source:src/workbench/canvas-engine/selection/floatingSelection.ts",
+ "source:src/workbench/canvas-engine/selection/marchingAnts.ts",
+ "source:src/workbench/canvas-engine/selection/maskOutline.ts",
+ "source:src/workbench/canvas-engine/selection/selectionOpMode.ts",
+ "source:src/workbench/canvas-engine/selection/selectionOps.ts",
+ "source:src/workbench/canvas-engine/selection/selectionPaths.ts",
+ "source:src/workbench/canvas-engine/selection/selectionState.ts",
+ "source:src/workbench/canvas-engine/strokeCommit.ts",
+ "source:src/workbench/canvas-engine/tools/bboxHitTest.ts",
+ "source:src/workbench/canvas-engine/tools/bboxTool.ts",
+ "source:src/workbench/canvas-engine/tools/brushTool.ts",
+ "source:src/workbench/canvas-engine/tools/colorPickerTool.ts",
+ "source:src/workbench/canvas-engine/tools/eraserTool.ts",
+ "source:src/workbench/canvas-engine/tools/gradientTool.ts",
+ "source:src/workbench/canvas-engine/tools/gridSnap.ts",
+ "source:src/workbench/canvas-engine/tools/lassoTool.ts",
+ "source:src/workbench/canvas-engine/tools/marqueeTool.ts",
+ "source:src/workbench/canvas-engine/tools/moveHitTest.ts",
+ "source:src/workbench/canvas-engine/tools/moveTool.ts",
+ "source:src/workbench/canvas-engine/tools/paintConstants.ts",
+ "source:src/workbench/canvas-engine/tools/paintTool.ts",
+ "source:src/workbench/canvas-engine/tools/samHitTest.ts",
+ "source:src/workbench/canvas-engine/tools/samTool.ts",
+ "source:src/workbench/canvas-engine/tools/shapeTool.ts",
+ "source:src/workbench/canvas-engine/tools/strokeSession.ts",
+ "source:src/workbench/canvas-engine/tools/textTool.ts",
+ "source:src/workbench/canvas-engine/tools/transformTool.ts",
+ "source:src/workbench/canvas-engine/tools/viewTool.ts",
+ "source:src/workbench/canvas-engine/transform/transformMath.ts",
+ "source:src/workbench/canvas-engine/viewport.ts",
+ "source:src/workbench/canvas-operations/FilterOperationCoordinator.ts",
+ "source:src/workbench/canvas-operations/SelectObjectCoordinator.ts",
+ "source:src/workbench/canvas-operations/api.ts",
+ "source:src/workbench/canvas-operations/applicationPort.ts",
+ "source:src/workbench/canvas-operations/backend/canvasImages.ts",
+ "source:src/workbench/canvas-operations/canvasImportNotice.ts",
+ "source:src/workbench/canvas-operations/compositeForGeneration.ts",
+ "source:src/workbench/canvas-operations/controlRecommendations.ts",
+ "source:src/workbench/canvas-operations/createCanvasEngine.ts",
+ "source:src/workbench/canvas-operations/createFromBbox.ts",
+ "source:src/workbench/canvas-operations/createFromBboxNotice.ts",
+ "source:src/workbench/canvas-operations/engineRegistry.ts",
+ "source:src/workbench/canvas-operations/exportCanvasComposite.ts",
+ "source:src/workbench/canvas-operations/filterGraphs.ts",
+ "source:src/workbench/canvas-operations/filterOperationSession.ts",
+ "source:src/workbench/canvas-operations/generationComposite.ts",
+ "source:src/workbench/canvas-operations/generationCompositePlan.ts",
+ "source:src/workbench/canvas-operations/importGalleryImages.ts",
+ "source:src/workbench/canvas-operations/layerFilterRunner.ts",
+ "source:src/workbench/canvas-operations/layerImageResult.ts",
+ "source:src/workbench/canvas-operations/operationAccess.ts",
+ "source:src/workbench/canvas-operations/operationController.ts",
+ "source:src/workbench/canvas-operations/operationStores.ts",
+ "source:src/workbench/canvas-operations/react.ts",
+ "source:src/workbench/canvas-operations/samGraph.ts",
+ "source:src/workbench/canvas-operations/saveCanvasToGallery.ts",
+ "source:src/workbench/canvas-operations/selectObjectSession.ts",
+ "source:src/workbench/canvas-operations/useCanvasEngine.ts",
+ "source:src/workbench/canvasDimsSync.ts",
+ "source:src/workbench/canvasLayerContent.ts",
+ "source:src/workbench/canvasLayerOps.ts",
+ "source:src/workbench/canvasMigration.ts",
+ "source:src/workbench/canvasProjectMutationPort.ts",
+ "source:src/workbench/canvasProjectMutations.ts",
+ "source:src/workbench/canvasStagingView.ts",
+ "source:src/workbench/components/QueueProgressIndicator.tsx",
+ "source:src/workbench/components/WorkbenchSplashScreen.tsx",
+ "source:src/workbench/controlAdapters.ts",
+ "source:src/workbench/controlLayerChecks.ts",
+ "source:src/workbench/diagnostics/logger.ts",
+ "source:src/workbench/extensions/contributionSource.ts",
+ "source:src/workbench/extensions/extensionRegistry.ts",
+ "source:src/workbench/focusRegions.tsx",
+ "source:src/workbench/graphPreviewInvocation.ts",
+ "source:src/workbench/graphSurfaces.ts",
+ "source:src/workbench/hotkeys/WorkbenchHotkeyRuntime.tsx",
+ "source:src/workbench/hotkeys/catalog.ts",
+ "source:src/workbench/hotkeys/extensionHotkeys.ts",
+ "source:src/workbench/hotkeys/firstPartyCommands.ts",
+ "source:src/workbench/hotkeys/index.ts",
+ "source:src/workbench/hotkeys/keys.ts",
+ "source:src/workbench/hotkeys/modalLayer.ts",
+ "source:src/workbench/hotkeys/resolve.ts",
+ "source:src/workbench/hotkeys/targetWidget.ts",
+ "source:src/workbench/iconResolver.tsx",
+ "source:src/workbench/image-actions/ImageContextMenu.tsx",
+ "source:src/workbench/image-actions/RecallActionButtons.tsx",
+ "source:src/workbench/image-actions/appendReferenceImage.ts",
+ "source:src/workbench/image-actions/canvasImportError.ts",
+ "source:src/workbench/image-actions/executeImageRecall.ts",
+ "source:src/workbench/image-actions/imageRecall.ts",
+ "source:src/workbench/image-actions/index.ts",
+ "source:src/workbench/image-actions/selectedImage.ts",
+ "source:src/workbench/image-actions/useImageActions.ts",
+ "source:src/workbench/invocation.ts",
+ "source:src/workbench/invocationSubmit.ts",
+ "source:src/workbench/launchpad/KnownBrowserIssuesAlert.tsx",
+ "source:src/workbench/launchpad/Launchpad.tsx",
+ "source:src/workbench/launchpad/LaunchpadNav.tsx",
+ "source:src/workbench/launchpad/LaunchpadTopBar.tsx",
+ "source:src/workbench/launchpad/NewProjectCard.tsx",
+ "source:src/workbench/launchpad/ProjectCard.tsx",
+ "source:src/workbench/launchpad/ProjectsGrid.tsx",
+ "source:src/workbench/launchpad/ResourceLinks.tsx",
+ "source:src/workbench/launchpad/formatRelativeTime.ts",
+ "source:src/workbench/launchpad/pages/ProjectsPage.tsx",
+ "source:src/workbench/layoutPresetSnapshots.ts",
+ "source:src/workbench/layoutPresets.ts",
+ "source:src/workbench/palette/LaunchpadCommandPalette.tsx",
+ "source:src/workbench/palette/PaletteButton.tsx",
+ "source:src/workbench/palette/WorkbenchCommandPalette.tsx",
+ "source:src/workbench/palette/paletteStore.ts",
+ "source:src/workbench/palette/settingsEntryDeps.ts",
+ "source:src/workbench/panZoom.ts",
+ "source:src/workbench/performanceMarks.ts",
+ "source:src/workbench/persistence.ts",
+ "source:src/workbench/persistenceRuntime.ts",
+ "source:src/workbench/projects/api.ts",
+ "source:src/workbench/projects/components/OpenProjectDialog.tsx",
+ "source:src/workbench/projects/components/ProjectTabs.tsx",
+ "source:src/workbench/projects/components/index.ts",
+ "source:src/workbench/projects/ids.ts",
+ "source:src/workbench/projects/library.ts",
+ "source:src/workbench/projects/projectFile.ts",
+ "source:src/workbench/projects/projectTabsA11y.ts",
+ "source:src/workbench/projects/session.ts",
+ "source:src/workbench/projects/syncStore.ts",
+ "source:src/workbench/projects/syncedPersistence.ts",
+ "source:src/workbench/projects/useProjectActions.ts",
+ "source:src/workbench/queueHistoryNormalization.ts",
+ "source:src/workbench/settings/HotkeysSettingsSection.tsx",
+ "source:src/workbench/settings/SettingsDialog.tsx",
+ "source:src/workbench/settings/index.ts",
+ "source:src/workbench/settings/settingsDialogStore.ts",
+ "source:src/workbench/settings/store.ts",
+ "source:src/workbench/shell/BottomPanel.tsx",
+ "source:src/workbench/shell/CenterArea.tsx",
+ "source:src/workbench/shell/Panels.tsx",
+ "source:src/workbench/shell/StatusBar.tsx",
+ "source:src/workbench/shell/WorkbenchShell.tsx",
+ "source:src/workbench/shell/index.ts",
+ "source:src/workbench/shell/notifications/WorkbenchNotificationToaster.tsx",
+ "source:src/workbench/shell/notifications/index.ts",
+ "source:src/workbench/shell/topbar/BatchCountField.tsx",
+ "source:src/workbench/shell/topbar/InvokeControl.tsx",
+ "source:src/workbench/shell/topbar/LayoutPresetMenu.tsx",
+ "source:src/workbench/shell/topbar/ModelManagerButton.tsx",
+ "source:src/workbench/shell/topbar/NodeManagerButton.tsx",
+ "source:src/workbench/shell/topbar/QueueActions.tsx",
+ "source:src/workbench/shell/topbar/QueueInfo.tsx",
+ "source:src/workbench/shell/topbar/TopBar.tsx",
+ "source:src/workbench/shell/topbar/index.ts",
+ "source:src/workbench/useCanvasProjectMutationDispatch.ts",
+ "source:src/workbench/useNotify.ts",
+ "source:src/workbench/useOpenWorkbenchWidget.ts",
+ "source:src/workbench/widget-frame/WidgetActionsMenu.tsx",
+ "source:src/workbench/widget-frame/WidgetBar.tsx",
+ "source:src/workbench/widget-frame/WidgetEnableMenu.tsx",
+ "source:src/workbench/widget-frame/WidgetFailureBoundary.tsx",
+ "source:src/workbench/widget-frame/WidgetFrames.tsx",
+ "source:src/workbench/widget-frame/WidgetHosts.tsx",
+ "source:src/workbench/widget-frame/WidgetIdentityIcon.tsx",
+ "source:src/workbench/widget-frame/WidgetInstanceContextMenu.tsx",
+ "source:src/workbench/widget-frame/WidgetLoadingFallback.tsx",
+ "source:src/workbench/widget-frame/WidgetRegionDropOverlay.tsx",
+ "source:src/workbench/widget-frame/WidgetRenderer.tsx",
+ "source:src/workbench/widget-frame/WidgetStrip.tsx",
+ "source:src/workbench/widget-frame/createWidgetRuntime.ts",
+ "source:src/workbench/widget-frame/index.ts",
+ "source:src/workbench/widget-frame/useWidgetIntentPreload.ts",
+ "source:src/workbench/widget-frame/useWidgetSortable.ts",
+ "source:src/workbench/widget-frame/widgetRenderInstance.ts",
+ "source:src/workbench/widgetDnd.ts",
+ "source:src/workbench/widgetImplementationResource.ts",
+ "source:src/workbench/widgetLabels.ts",
+ "source:src/workbench/widgetPlacementCommands.ts",
+ "source:src/workbench/widgetPlacementMeta.ts",
+ "source:src/workbench/widgetRegionViewModel.ts",
+ "source:src/workbench/widgetRegistry.ts",
+ "source:src/workbench/widgetState.ts",
+ "source:src/workbench/widgets/autosave-status/AutosaveStatusWidgetView.tsx",
+ "source:src/workbench/widgets/autosave-status/implementation.ts",
+ "source:src/workbench/widgets/autosave-status/manifest.ts",
+ "source:src/workbench/widgets/canvas/BboxDetailsBar.tsx",
+ "source:src/workbench/widgets/canvas/CanvasBottomControls.tsx",
+ "source:src/workbench/widgets/canvas/CanvasBottomOverlay.tsx",
+ "source:src/workbench/widgets/canvas/CanvasCreateFromBboxSubmenu.tsx",
+ "source:src/workbench/widgets/canvas/CanvasFloatingBar.tsx",
+ "source:src/workbench/widgets/canvas/CanvasGlobalContextMenu.tsx",
+ "source:src/workbench/widgets/canvas/CanvasHeaderActions.tsx",
+ "source:src/workbench/widgets/canvas/CanvasImageDropOverlay.tsx",
+ "source:src/workbench/widgets/canvas/CanvasImageDropZone.tsx",
+ "source:src/workbench/widgets/canvas/CanvasSaveToGallerySubmenu.tsx",
+ "source:src/workbench/widgets/canvas/CanvasSurface.tsx",
+ "source:src/workbench/widgets/canvas/CanvasSurfaceContextLayout.tsx",
+ "source:src/workbench/widgets/canvas/CanvasWidgetView.tsx",
+ "source:src/workbench/widgets/canvas/StagingBar.tsx",
+ "source:src/workbench/widgets/canvas/TextEditPortal.tsx",
+ "source:src/workbench/widgets/canvas/ToolStrip.tsx",
+ "source:src/workbench/widgets/canvas/bboxGrid.ts",
+ "source:src/workbench/widgets/canvas/canvasClipboard.ts",
+ "source:src/workbench/widgets/canvas/canvasContextMenu.ts",
+ "source:src/workbench/widgets/canvas/canvasGallerySaveState.ts",
+ "source:src/workbench/widgets/canvas/canvasHeaderCommands.ts",
+ "source:src/workbench/widgets/canvas/canvasHotkeyCommands.ts",
+ "source:src/workbench/widgets/canvas/canvasImageDnd.ts",
+ "source:src/workbench/widgets/canvas/canvasInteractionLock.ts",
+ "source:src/workbench/widgets/canvas/canvasSettings.ts",
+ "source:src/workbench/widgets/canvas/checkerColors.ts",
+ "source:src/workbench/widgets/canvas/engineStoreHooks.ts",
+ "source:src/workbench/widgets/canvas/executeCanvasImageDropImport.ts",
+ "source:src/workbench/widgets/canvas/fitBbox.ts",
+ "source:src/workbench/widgets/canvas/implementation.ts",
+ "source:src/workbench/widgets/canvas/invoke/canvasCompositing.ts",
+ "source:src/workbench/widgets/canvas/invoke/canvasStrength.ts",
+ "source:src/workbench/widgets/canvas/manifest.ts",
+ "source:src/workbench/widgets/canvas/stagingPreview.ts",
+ "source:src/workbench/widgets/canvas/surfaceFocus.ts",
+ "source:src/workbench/widgets/canvas/tool-options/BboxOptions.tsx",
+ "source:src/workbench/widgets/canvas/tool-options/BrushOptions.tsx",
+ "source:src/workbench/widgets/canvas/tool-options/CanvasOperationBar.tsx",
+ "source:src/workbench/widgets/canvas/tool-options/CanvasOptionsBar.tsx",
+ "source:src/workbench/widgets/canvas/tool-options/EraserOptions.tsx",
+ "source:src/workbench/widgets/canvas/tool-options/FilterOptions.tsx",
+ "source:src/workbench/widgets/canvas/tool-options/GradientOptions.tsx",
+ "source:src/workbench/widgets/canvas/tool-options/LassoOptions.tsx",
+ "source:src/workbench/widgets/canvas/tool-options/MarqueeOptions.tsx",
+ "source:src/workbench/widgets/canvas/tool-options/MoveOptions.tsx",
+ "source:src/workbench/widgets/canvas/tool-options/OperationStatusSlot.tsx",
+ "source:src/workbench/widgets/canvas/tool-options/SamOptions.tsx",
+ "source:src/workbench/widgets/canvas/tool-options/SelectionOptionsRow.tsx",
+ "source:src/workbench/widgets/canvas/tool-options/ShapeOptions.tsx",
+ "source:src/workbench/widgets/canvas/tool-options/TextOptions.tsx",
+ "source:src/workbench/widgets/canvas/tool-options/ToolOptionsBar.tsx",
+ "source:src/workbench/widgets/canvas/tool-options/TransformOptions.tsx",
+ "source:src/workbench/widgets/canvas/tool-options/useBboxEditor.ts",
+ "source:src/workbench/widgets/canvas/useCanvasEngine.ts",
+ "source:src/workbench/widgets/canvas/useCanvasGallerySave.ts",
+ "source:src/workbench/widgets/canvas/useCreateFromBbox.ts",
+ "source:src/workbench/widgets/canvas/zoomOptions.ts",
+ "source:src/workbench/widgets/diagnostics/DiagnosticsHeaderActions.tsx",
+ "source:src/workbench/widgets/diagnostics/DiagnosticsWidgetView.tsx",
+ "source:src/workbench/widgets/diagnostics/implementation.ts",
+ "source:src/workbench/widgets/diagnostics/manifest.ts",
+ "source:src/workbench/widgets/gallery/manifest.ts",
+ "source:src/workbench/widgets/generate/manifest.ts",
+ "source:src/workbench/widgets/layers/AdjustmentsPopover.tsx",
+ "source:src/workbench/widgets/layers/ControlLayerSettings.tsx",
+ "source:src/workbench/widgets/layers/ControlLayerWarningIcon.tsx",
+ "source:src/workbench/widgets/layers/DenoisingStrengthWave.tsx",
+ "source:src/workbench/widgets/layers/InpaintMaskSettings.tsx",
+ "source:src/workbench/widgets/layers/LayerContextMenu.tsx",
+ "source:src/workbench/widgets/layers/LayerFilterControls.tsx",
+ "source:src/workbench/widgets/layers/LayerFilterOperationButton.tsx",
+ "source:src/workbench/widgets/layers/LayerGroupSection.tsx",
+ "source:src/workbench/widgets/layers/LayerListItem.tsx",
+ "source:src/workbench/widgets/layers/LayerPropertiesPopover.tsx",
+ "source:src/workbench/widgets/layers/LayerThumbnail.tsx",
+ "source:src/workbench/widgets/layers/LayersHeaderActions.tsx",
+ "source:src/workbench/widgets/layers/LayersPanelHeader.tsx",
+ "source:src/workbench/widgets/layers/LayersWidgetView.tsx",
+ "source:src/workbench/widgets/layers/RasterLayerFilterSection.tsx",
+ "source:src/workbench/widgets/layers/RegionalGuidanceSettings.tsx",
+ "source:src/workbench/widgets/layers/RunLayerWorkflowDialog.tsx",
+ "source:src/workbench/widgets/layers/addLayerMenu.ts",
+ "source:src/workbench/widgets/layers/controlModelOptions.ts",
+ "source:src/workbench/widgets/layers/curveEditorMath.ts",
+ "source:src/workbench/widgets/layers/implementation.ts",
+ "source:src/workbench/widgets/layers/layerActionSession.ts",
+ "source:src/workbench/widgets/layers/layerContextActions.ts",
+ "source:src/workbench/widgets/layers/layerContextMenuLayout.ts",
+ "source:src/workbench/widgets/layers/layerDndConfig.ts",
+ "source:src/workbench/widgets/layers/layerExportActions.ts",
+ "source:src/workbench/widgets/layers/layerGroupActions.ts",
+ "source:src/workbench/widgets/layers/layerGroups.ts",
+ "source:src/workbench/widgets/layers/layerMenuState.ts",
+ "source:src/workbench/widgets/layers/layerOps.ts",
+ "source:src/workbench/widgets/layers/layerPropertiesOperation.ts",
+ "source:src/workbench/widgets/layers/layerPropertiesRequestStore.ts",
+ "source:src/workbench/widgets/layers/layersDnd.ts",
+ "source:src/workbench/widgets/layers/manifest.ts",
+ "source:src/workbench/widgets/layers/psdExportNotice.ts",
+ "source:src/workbench/widgets/layers/runLayerWorkflow.ts",
+ "source:src/workbench/widgets/layers/selectedModel.ts",
+ "source:src/workbench/widgets/layers/useAddLayer.ts",
+ "source:src/workbench/widgets/layers/useSelectedMainModel.ts",
+ "source:src/workbench/widgets/layers/useSelectedModelBase.ts",
+ "source:src/workbench/widgets/notifications/NotificationsHeaderActions.tsx",
+ "source:src/workbench/widgets/notifications/NotificationsWidgetView.tsx",
+ "source:src/workbench/widgets/notifications/implementation.ts",
+ "source:src/workbench/widgets/notifications/manifest.ts",
+ "source:src/workbench/widgets/preview/PreviewActionStrip.tsx",
+ "source:src/workbench/widgets/preview/PreviewCompare.tsx",
+ "source:src/workbench/widgets/preview/PreviewCompareDropZone.tsx",
+ "source:src/workbench/widgets/preview/PreviewFilmstrip.tsx",
+ "source:src/workbench/widgets/preview/PreviewFooter.tsx",
+ "source:src/workbench/widgets/preview/PreviewFrame.tsx",
+ "source:src/workbench/widgets/preview/PreviewHeaderActions.tsx",
+ "source:src/workbench/widgets/preview/PreviewLiveReadout.tsx",
+ "source:src/workbench/widgets/preview/PreviewMetadataPanel.tsx",
+ "source:src/workbench/widgets/preview/PreviewWidgetChrome.tsx",
+ "source:src/workbench/widgets/preview/PreviewWidgetView.tsx",
+ "source:src/workbench/widgets/preview/implementation.ts",
+ "source:src/workbench/widgets/preview/manifest.ts",
+ "source:src/workbench/widgets/preview/previewCompareDnd.ts",
+ "source:src/workbench/widgets/preview/previewDensity.ts",
+ "source:src/workbench/widgets/preview/previewHeaderStore.ts",
+ "source:src/workbench/widgets/preview/previewMetadata.ts",
+ "source:src/workbench/widgets/preview/previewNavigation.ts",
+ "source:src/workbench/widgets/preview/previewSettings.ts",
+ "source:src/workbench/widgets/preview/useCompareLoupe.ts",
+ "source:src/workbench/widgets/preview/usePreviewLoupe.ts",
+ "source:src/workbench/widgets/project/manifest.ts",
+ "source:src/workbench/widgets/queue/manifest.ts",
+ "source:src/workbench/widgets/server-status/ServerStatusWidgetView.tsx",
+ "source:src/workbench/widgets/server-status/implementation.ts",
+ "source:src/workbench/widgets/server-status/manifest.ts",
+ "source:src/workbench/widgets/upscale/manifest.ts",
+ "source:src/workbench/widgets/version-status/VersionStatusWidgetView.tsx",
+ "source:src/workbench/widgets/version-status/implementation.ts",
+ "source:src/workbench/widgets/version-status/manifest.ts",
+ "source:src/workbench/widgets/workflow/manifest.ts",
+ "source:src/workbench/workbenchState.ts",
+ "source:src/workbench/workbenchStore.ts"
+ ]
+ }
}
diff --git a/invokeai/frontend/webv2/scripts/check-architecture-performance.mjs b/invokeai/frontend/webv2/scripts/check-architecture-performance.mjs
index d386b4d78b..7968581f12 100644
--- a/invokeai/frontend/webv2/scripts/check-architecture-performance.mjs
+++ b/invokeai/frontend/webv2/scripts/check-architecture-performance.mjs
@@ -3,50 +3,105 @@ import { mkdir, readFile, readdir, writeFile } from 'node:fs/promises';
import { dirname, resolve } from 'node:path';
import ts from 'typescript-legacy';
-import { checkRouteBudget, measureRouteBuild } from './performance-budgets.mjs';
+import {
+ BUILD_METRIC_KEYS,
+ checkRouteBudget,
+ measureRouteBuild,
+ validateArchitectureBaseline,
+ validateChunkSourceManifest,
+} from './performance-budgets.mjs';
import { WIDGET_IMPLEMENTATION_PATTERN, WIDGET_SOURCES } from './widget-sources.mjs';
const root = resolve(import.meta.dirname, '..');
-const baseline = JSON.parse(await readFile(resolve(root, 'performance/architecture-baseline.json'), 'utf8'));
+const baselinePath = resolve(root, 'performance/architecture-baseline.json');
+const baselineInput = JSON.parse(await readFile(baselinePath, 'utf8'));
const manifest = JSON.parse(await readFile(resolve(root, 'dist/.vite/manifest.json'), 'utf8'));
+const chunkSourceManifest = validateChunkSourceManifest(
+ JSON.parse(await readFile(resolve(root, 'dist/.vite/chunk-sources.json'), 'utf8'))
+);
const readAsset = async (file) => new Uint8Array(await readFile(resolve(root, 'dist', file)));
+const updateBaseline = process.argv.includes('--update-baseline');
const assetCache = new Map();
for (const chunk of Object.values(manifest)) {
- if (chunk.file && !assetCache.has(chunk.file)) {
- assetCache.set(chunk.file, await readAsset(chunk.file));
+ for (const file of [chunk.file, ...(chunk.css ?? []), ...(chunk.assets ?? [])]) {
+ if (file && !assetCache.has(file)) {
+ assetCache.set(file, await readAsset(file));
+ }
}
}
-const syntheticFailures = checkRouteBudget(
- {
- brotliBytes: 70,
- chunkNames: ['eager-gallery', 'entry'],
- files: ['entry.js', 'gallery.js'],
- gzipBytes: 80,
- initialRawBytes: 150,
- ownedRawBytes: 103,
- routeId: 'launchpad',
- source: 'entry.ts',
- sources: ['entry.ts', 'gallery.ts'],
- },
- {
- baselineOwnedRawBytes: 100,
- initialChunkNames: ['entry'],
- maxGrowthPercent: 0.02,
- maxGrowthRawBytes: 20,
- owner: 'gallery',
- remediationTicket: 'define-gallery-feature',
- source: 'entry.ts',
+const getLegacyOwnedLimit = (budget, measurement) => {
+ if (
+ typeof budget.baselineOwnedRawBytes !== 'number' ||
+ typeof budget.maxGrowthPercent !== 'number' ||
+ typeof budget.maxGrowthRawBytes !== 'number'
+ ) {
+ return measurement.ownedRawBytes;
}
-);
-assert.equal(syntheticFailures.length, 2, 'Synthetic byte and request-set regressions must both fail.');
-assert.match(syntheticFailures.map((failure) => failure.message).join('\n'), /103 bytes/);
-assert.match(syntheticFailures.map((failure) => failure.message).join('\n'), /eager-gallery/);
-const measurements = Object.entries(baseline.build).map(([routeId, budget]) =>
- measureRouteBuild(manifest, routeId, budget.source, (file) => assetCache.get(file))
+ return Math.max(
+ measurement.ownedRawBytes,
+ budget.baselineOwnedRawBytes +
+ Math.min(budget.maxGrowthRawBytes, Math.floor(budget.baselineOwnedRawBytes * budget.maxGrowthPercent))
+ );
+};
+
+const createLimits = (measurement, legacyBudget) =>
+ Object.fromEntries(
+ BUILD_METRIC_KEYS.map((key) => {
+ if (key === 'ownedRawBytes') {
+ return [key, getLegacyOwnedLimit(legacyBudget, measurement)];
+ }
+ if (key === 'requestCount' || key === 'scriptRequestCount') {
+ return [key, measurement[key]];
+ }
+ return [key, Math.ceil(measurement[key] * 1.01)];
+ })
+ );
+
+const routeEntries = Object.entries(baselineInput.build);
+const measurements = routeEntries.map(([routeId, budget]) =>
+ measureRouteBuild(manifest, chunkSourceManifest, routeId, budget.source, (file) => assetCache.get(file))
);
+
+let baseline;
+if (updateBaseline) {
+ const build = Object.fromEntries(
+ routeEntries.map(([routeId, previousBudget]) => {
+ const measurement = measurements.find((candidate) => candidate.routeId === routeId);
+ return [
+ routeId,
+ {
+ baseline: {
+ ...Object.fromEntries(BUILD_METRIC_KEYS.map((key) => [key, measurement[key]])),
+ sourceOwners: measurement.sourceOwners,
+ },
+ limits: createLimits(measurement, previousBudget),
+ owner: previousBudget.owner,
+ remediationTicket: previousBudget.remediationTicket,
+ source: previousBudget.source,
+ },
+ ];
+ })
+ );
+ baseline = {
+ build,
+ capturedAt: new Date().toISOString().slice(0, 10),
+ developmentInvalidation: baselineInput.developmentInvalidation,
+ schemaVersion: 2,
+ structural: {
+ ...baselineInput.structural,
+ editorForbiddenInitialChunkNames: [...baselineInput.structural.editorForbiddenInitialChunkNames].sort(),
+ launchpadForbiddenInitialSources: [...baselineInput.structural.launchpadForbiddenInitialSources].sort(),
+ },
+ };
+ validateArchitectureBaseline(baseline);
+ await writeFile(baselinePath, `${JSON.stringify(baseline, null, 2)}\n`);
+} else {
+ baseline = validateArchitectureBaseline(baselineInput);
+}
+
const failures = measurements.flatMap((measurement) =>
checkRouteBudget(measurement, baseline.build[measurement.routeId])
);
diff --git a/invokeai/frontend/webv2/scripts/chunk-source-manifest.mjs b/invokeai/frontend/webv2/scripts/chunk-source-manifest.mjs
new file mode 100644
index 0000000000..957ffcd75e
--- /dev/null
+++ b/invokeai/frontend/webv2/scripts/chunk-source-manifest.mjs
@@ -0,0 +1,92 @@
+import { relative, resolve, sep } from 'node:path';
+
+const SCHEMA_VERSION = 1;
+const VIRTUAL_MODULE_PREFIX = '\0';
+
+const toPosixPath = (value) => value.split(sep).join('/');
+
+const getPackageOwner = (moduleId) => {
+ const marker = '/node_modules/';
+ const markerIndex = moduleId.lastIndexOf(marker);
+
+ if (markerIndex === -1) {
+ return null;
+ }
+
+ const packagePath = moduleId.slice(markerIndex + marker.length);
+ const segments = packagePath.split('/');
+ const packageName = segments[0]?.startsWith('@') ? segments.slice(0, 2).join('/') : segments[0];
+
+ return packageName ? `package:${packageName}` : null;
+};
+
+/**
+ * Converts a bundler module id into a stable ownership id.
+ *
+ * First-party modules retain their repo-relative source path. Dependency
+ * internals collapse to the package that owns them, so a lockfile refresh does
+ * not rewrite the graph merely because pnpm's content-addressed path changed.
+ * Virtual/runtime modules are intentionally excluded: they have no source
+ * owner and their emitted bytes are still covered by the outcome budgets.
+ */
+export const getModuleSourceOwner = (moduleId, projectRoot) => {
+ if (typeof moduleId !== 'string' || moduleId.length === 0 || moduleId.startsWith(VIRTUAL_MODULE_PREFIX)) {
+ return null;
+ }
+
+ const pathWithoutQuery = moduleId.split('?')[0];
+ const normalizedPath = toPosixPath(pathWithoutQuery);
+ const packageOwner = getPackageOwner(normalizedPath);
+
+ if (packageOwner) {
+ return packageOwner;
+ }
+
+ const normalizedRoot = resolve(projectRoot);
+ const relativePath = toPosixPath(relative(normalizedRoot, pathWithoutQuery));
+
+ if (relativePath === '' || relativePath.startsWith('../') || relativePath === '..') {
+ return null;
+ }
+
+ return `source:${relativePath}`;
+};
+
+export const createChunkSourceManifest = (bundle, projectRoot) => {
+ const chunks = {};
+
+ for (const output of Object.values(bundle)) {
+ if (output.type !== 'chunk') {
+ continue;
+ }
+
+ const sourceOwners = new Set(
+ output.moduleIds
+ .map((moduleId) => getModuleSourceOwner(moduleId, projectRoot))
+ .filter((sourceOwner) => sourceOwner !== null)
+ );
+
+ chunks[output.fileName] = {
+ facadeSource: getModuleSourceOwner(output.facadeModuleId, projectRoot),
+ sourceOwners: [...sourceOwners].sort(),
+ };
+ }
+
+ return {
+ chunks: Object.fromEntries(Object.entries(chunks).sort(([left], [right]) => left.localeCompare(right))),
+ schemaVersion: SCHEMA_VERSION,
+ };
+};
+
+export const chunkSourceManifest = ({ projectRoot }) => ({
+ name: 'invokeai-chunk-source-manifest',
+ generateBundle(_outputOptions, bundle) {
+ const manifest = createChunkSourceManifest(bundle, projectRoot);
+
+ this.emitFile({
+ fileName: '.vite/chunk-sources.json',
+ source: `${JSON.stringify(manifest, null, 2)}\n`,
+ type: 'asset',
+ });
+ },
+});
diff --git a/invokeai/frontend/webv2/scripts/measure-architecture-performance.mjs b/invokeai/frontend/webv2/scripts/measure-architecture-performance.mjs
index e36aa0ba3a..64e191cf44 100644
--- a/invokeai/frontend/webv2/scripts/measure-architecture-performance.mjs
+++ b/invokeai/frontend/webv2/scripts/measure-architecture-performance.mjs
@@ -5,18 +5,46 @@ import process from 'node:process';
import { chromium } from 'playwright';
import { startMockBackend } from './mock-backend.mjs';
+import {
+ BROWSER_RESOURCE_METRIC_KEYS,
+ checkBrowserRouteBudget,
+ createBrowserSamplePlan,
+ summarizeBrowserResources,
+ validateBrowserBaseline,
+ validateChunkSourceManifest,
+} from './performance-budgets.mjs';
import { getWidgetId } from './widget-sources.mjs';
const root = resolve(import.meta.dirname, '..');
const fixtures = JSON.parse(await readFile(resolve(root, 'performance/architecture-fixtures.json'), 'utf8'));
const manifest = JSON.parse(await readFile(resolve(root, 'dist/.vite/manifest.json'), 'utf8'));
-const getScriptId = (source, chunk) => {
+const chunkSourceManifest = validateChunkSourceManifest(
+ JSON.parse(await readFile(resolve(root, 'dist/.vite/chunk-sources.json'), 'utf8'))
+);
+const sampleConfig = {
+ scoredSamples: fixtures.scoredSamples,
+ traceSamples: fixtures.traceSamples,
+ warmups: fixtures.warmups,
+};
+const samplePlan = createBrowserSamplePlan(sampleConfig);
+const getScriptLabel = (source, chunk) => {
const widgetId = getWidgetId(source);
return widgetId ? `widget:${widgetId}` : (chunk.name ?? chunk.src ?? source);
};
-const chunkNameByPath = new Map(
- Object.entries(manifest).map(([source, chunk]) => [`/${chunk.file}`, getScriptId(source, chunk)])
+const scriptLabelByPath = new Map(
+ Object.entries(manifest).map(([source, chunk]) => [`/${chunk.file}`, getScriptLabel(source, chunk)])
+);
+const scriptSourceOwnersByPath = new Map(
+ Object.values(manifest)
+ .filter((chunk) => chunk.file.endsWith('.js'))
+ .map((chunk) => {
+ const sourceChunk = chunkSourceManifest.chunks[chunk.file];
+ if (!sourceChunk) {
+ throw new Error(`Chunk source manifest is missing browser script ${chunk.file}.`);
+ }
+ return [`/${chunk.file}`, sourceChunk.sourceOwners];
+ })
);
const baselinePath = resolve(root, 'performance/browser-baseline.json');
const artifactPath = resolve(root, 'artifacts/architecture-performance/browser-report.json');
@@ -29,7 +57,26 @@ const updateBaseline = process.argv.includes('--update-baseline');
const median = (values) => {
const sorted = [...values].sort((left, right) => left - right);
- return sorted[Math.floor(sorted.length / 2)] ?? 0;
+ const middle = Math.floor(sorted.length / 2);
+
+ if (sorted.length % 2 === 0) {
+ return ((sorted[middle - 1] ?? 0) + (sorted[middle] ?? 0)) / 2;
+ }
+ return sorted[middle] ?? 0;
+};
+
+const summarizeVariance = (values) => {
+ const mean = values.reduce((total, value) => total + value, 0) / values.length;
+ const variance = values.reduce((total, value) => total + (value - mean) ** 2, 0) / Math.max(1, values.length - 1);
+ const standardDeviation = Math.sqrt(variance);
+
+ return {
+ coefficientOfVariation: mean === 0 ? 0 : standardDeviation / mean,
+ maximum: Math.max(...values),
+ mean,
+ minimum: Math.min(...values),
+ standardDeviation,
+ };
};
const waitForWidgetRequests = async (fixture, scripts) => {
@@ -37,11 +84,11 @@ const waitForWidgetRequests = async (fixture, scripts) => {
const deadline = Date.now() + 10_000;
while (Date.now() < deadline) {
- const requested = new Set([...scripts].map((request) => chunkNameByPath.get(request) ?? request));
+ const requested = new Set([...scripts].map((request) => scriptLabelByPath.get(request) ?? request));
if ([...required].every((request) => requested.has(request))) {
for (const forbidden of fixture.forbiddenWidgetRequests ?? []) {
if (requested.has(forbidden)) {
- throw new Error(`${fixture.id} requested inactive ${forbidden}.`);
+ throw new Error(`${fixture.id}/${fixture.stateProfile} requested inactive ${forbidden}.`);
}
}
return;
@@ -51,7 +98,9 @@ const waitForWidgetRequests = async (fixture, scripts) => {
});
}
- throw new Error(`${fixture.id} did not request required widgets ${JSON.stringify([...required])}.`);
+ throw new Error(
+ `${fixture.id}/${fixture.stateProfile} did not request required widgets ${JSON.stringify([...required])}.`
+ );
};
const waitForPreview = async () => {
@@ -72,6 +121,278 @@ const waitForPreview = async () => {
throw new Error(`Vite preview did not become ready at ${origin}.`);
};
+const waitForSemanticMark = async (page, mark) => {
+ await page.waitForFunction((markName) => performance.getEntriesByName(markName, 'mark').length > 0, mark, {
+ timeout: 20_000,
+ });
+ return page.evaluate((markName) => {
+ const entries = performance.getEntriesByName(markName, 'mark');
+ return entries.at(-1)?.startTime ?? 0;
+ }, mark);
+};
+
+const isStaticAssetPath = (path) =>
+ path === '/' || path === '/index.html' || path.startsWith('/assets/') || path.startsWith('/locales/');
+
+const getBrowserResourceKind = (resourceType) => {
+ if (resourceType === 'script') {
+ return 'script';
+ }
+ if (resourceType === 'stylesheet') {
+ return 'css';
+ }
+ if (resourceType === 'font') {
+ return 'font';
+ }
+ if (resourceType === 'image') {
+ return 'image';
+ }
+ return 'other';
+};
+
+const createResourceCollector = (page) => {
+ const pending = [];
+ const resources = new Map();
+
+ page.on('response', (response) => {
+ const url = new URL(response.url());
+ if (url.origin !== origin || !isStaticAssetPath(url.pathname)) {
+ return;
+ }
+
+ const path = url.pathname;
+ const kind = getBrowserResourceKind(response.request().resourceType());
+ const contentLength = Number(response.headers()['content-length'] ?? 0);
+ const body = response
+ .body()
+ .then((bytes) => {
+ resources.set(path, { kind, path, rawBytes: bytes.byteLength });
+ })
+ .catch(() => {
+ if (contentLength > 0) {
+ resources.set(path, { kind, path, rawBytes: contentLength });
+ }
+ });
+ pending.push(body);
+ });
+
+ const settle = async () => {
+ let observedPendingCount = -1;
+ while (observedPendingCount !== pending.length) {
+ observedPendingCount = pending.length;
+ await Promise.all(pending);
+ await page.waitForTimeout(25);
+ }
+ return [...resources.values()].sort((left, right) => left.path.localeCompare(right.path));
+ };
+
+ return { settle };
+};
+
+const getScriptSourceOwners = (scripts) => {
+ const owners = new Set();
+ for (const request of scripts) {
+ const sourceOwners = scriptSourceOwnersByPath.get(request);
+ if (!sourceOwners) {
+ throw new Error(`No source ownership was emitted for requested script ${request}.`);
+ }
+ for (const sourceOwner of sourceOwners) {
+ owners.add(sourceOwner);
+ }
+ }
+ return [...owners].sort();
+};
+
+const getZeroResourceSummary = () => Object.fromEntries(BROWSER_RESOURCE_METRIC_KEYS.map((key) => [key, 0]));
+
+const createSourceOwnerSets = (routes) => {
+ const sets = {};
+ const setIdByFingerprint = new Map();
+ const routeSetIds = new Map();
+
+ for (const route of routes) {
+ const fingerprint = JSON.stringify(route.scriptSourceOwners);
+ let setId = setIdByFingerprint.get(fingerprint);
+
+ if (!setId) {
+ const baseId = `${route.id}-static`;
+ setId = baseId;
+ let suffix = 2;
+ while (sets[setId]) {
+ setId = `${baseId}-${String(suffix)}`;
+ suffix += 1;
+ }
+ sets[setId] = route.scriptSourceOwners;
+ setIdByFingerprint.set(fingerprint, setId);
+ }
+
+ routeSetIds.set(`${route.id}:${route.stateProfile}`, setId);
+ }
+
+ return { routeSetIds, sets };
+};
+
+const createResourceLimits = (resources) =>
+ Object.fromEntries(
+ BROWSER_RESOURCE_METRIC_KEYS.map((key) => {
+ if (key === 'requestCount' || key === 'scriptRequestCount') {
+ return [key, resources[key]];
+ }
+ return [key, Math.ceil(resources[key] * 1.01)];
+ })
+ );
+
+const getMaximumResourceSummary = (samples, key) =>
+ Object.fromEntries(
+ BROWSER_RESOURCE_METRIC_KEYS.map((metric) => [metric, Math.max(...samples.map((sample) => sample[key][metric]))])
+ );
+
+const getTiming = (page) =>
+ page.evaluate(() => {
+ const navigation = performance.getEntriesByType('navigation')[0];
+ const longTasks = window.__architectureLongTasks;
+ return {
+ domContentLoadedMs: navigation ? navigation.domContentLoadedEventEnd : 0,
+ loadMs: navigation ? navigation.loadEventEnd : 0,
+ longestTaskMs: longTasks.reduce((maximum, duration) => Math.max(maximum, duration), 0),
+ };
+ });
+
+const runSample = async (browser, fixture, sample) => {
+ const reset = await fetch(`${backendOrigin}/__reset?profile=${encodeURIComponent(fixture.stateProfile)}`, {
+ method: 'POST',
+ });
+ if (!reset.ok) {
+ throw new Error(`Mock backend reset failed for profile ${fixture.stateProfile}: ${await reset.text()}`);
+ }
+ const profile = await reset.json();
+ if (profile.profile !== fixture.stateProfile) {
+ throw new Error(`Mock backend selected ${String(profile.profile)} instead of requested ${fixture.stateProfile}.`);
+ }
+ const expectedProfileCounts = fixtures.stateProfiles[fixture.stateProfile];
+ if (!expectedProfileCounts || JSON.stringify(profile.counts) !== JSON.stringify(expectedProfileCounts)) {
+ throw new Error(
+ `Mock backend profile ${fixture.stateProfile} has the wrong workload shape.\nExpected ${JSON.stringify(
+ expectedProfileCounts
+ )}\nReceived ${JSON.stringify(profile.counts)}`
+ );
+ }
+
+ const context = await browser.newContext();
+ const tracePath = resolve(traceDirectory, `${fixture.id}-${fixture.stateProfile}.zip`);
+ if (sample.kind === 'trace') {
+ await mkdir(traceDirectory, { recursive: true });
+ await context.tracing.start({ screenshots: true, snapshots: true, sources: true });
+ }
+
+ try {
+ const page = await context.newPage();
+ await page.addInitScript(() => {
+ window.__architectureLongTasks = [];
+ new PerformanceObserver((list) => {
+ window.__architectureLongTasks.push(...list.getEntries().map((entry) => entry.duration));
+ }).observe({ buffered: true, type: 'longtask' });
+ });
+ const scripts = new Set();
+ page.on('response', (response) => {
+ if (response.request().resourceType() === 'script' && response.url().startsWith(origin)) {
+ scripts.add(new URL(response.url()).pathname);
+ }
+ });
+ const resourceCollector = createResourceCollector(page);
+
+ const expectedScript = fixture.expectedScriptPattern
+ ? page.waitForResponse(
+ (response) =>
+ response.request().resourceType() === 'script' && response.url().includes(fixture.expectedScriptPattern),
+ { timeout: 10_000 }
+ )
+ : null;
+ await page.goto(`${origin}${fixture.path}`, { waitUntil: 'domcontentloaded' });
+ await expectedScript;
+
+ let activatedResourcePaths = new Set();
+ let layoutSwitchMs = 0;
+ if (fixture.layoutPreset) {
+ const presetTrigger = page.getByRole('button', { name: /^Layout preset:/ });
+ await presetTrigger.waitFor({ timeout: 10_000 });
+ const beforeActivation = await resourceCollector.settle();
+ const beforePaths = new Set(beforeActivation.map((resource) => resource.path));
+ const interactionMark = `invokeai:interaction:${fixture.id}:${fixture.stateProfile}:layout-switch`;
+
+ await page.evaluate(
+ ({ interactionMarkName, readyMark }) => {
+ performance.clearMarks(interactionMarkName);
+ performance.clearMarks(readyMark);
+ performance.mark(interactionMarkName);
+ },
+ { interactionMarkName: interactionMark, readyMark: fixture.readyMark }
+ );
+ await presetTrigger.click();
+ await page.getByRole('menuitem', { exact: true, name: fixture.layoutPreset }).click();
+ await page
+ .getByRole('button', { exact: true, name: `Layout preset: ${fixture.layoutPreset}` })
+ .waitFor({ timeout: 10_000 });
+ await waitForSemanticMark(page, fixture.readyMark);
+ layoutSwitchMs = await page.evaluate(
+ ({ interactionMarkName, readyMark }) => {
+ const start = performance.getEntriesByName(interactionMarkName, 'mark').at(-1)?.startTime ?? 0;
+ const end = performance.getEntriesByName(readyMark, 'mark').at(-1)?.startTime ?? 0;
+ return Math.max(0, end - start);
+ },
+ { interactionMarkName: interactionMark, readyMark: fixture.readyMark }
+ );
+ const afterActivation = await resourceCollector.settle();
+ activatedResourcePaths = new Set(
+ afterActivation.filter((resource) => !beforePaths.has(resource.path)).map((resource) => resource.path)
+ );
+ } else {
+ await waitForSemanticMark(page, fixture.readyMark);
+ }
+
+ let projectSwitchMs = 0;
+ if (fixture.measureProjectSwitch) {
+ const projectTabs = page.getByRole('tab');
+ const originalProject = projectTabs.first();
+ await page.getByRole('button', { name: /new project/i }).click();
+ await projectTabs.nth(1).waitFor({ timeout: 10_000 });
+ const projectSwitchStart = performance.now();
+ await originalProject.click();
+ await originalProject.waitFor({ state: 'visible' });
+ await page.waitForFunction(
+ (projectTab) => projectTab instanceof HTMLElement && projectTab.getAttribute('aria-selected') === 'true',
+ await originalProject.elementHandle()
+ );
+ projectSwitchMs = performance.now() - projectSwitchStart;
+ }
+
+ await waitForWidgetRequests(fixture, scripts);
+ const routeReadyMs = await waitForSemanticMark(page, fixture.readyMark);
+ const resources = await resourceCollector.settle();
+ const activatedResources = resources.filter((resource) => activatedResourcePaths.has(resource.path));
+ const timing = await getTiming(page);
+
+ return {
+ activatedResources: summarizeBrowserResources(activatedResources),
+ profileCounts: profile.counts,
+ resources: summarizeBrowserResources(resources),
+ scriptSourceOwners: getScriptSourceOwners(scripts),
+ timing: {
+ ...timing,
+ layoutSwitchMs,
+ projectSwitchMs,
+ routeReadyMs,
+ },
+ tracePath: sample.kind === 'trace' ? tracePath : null,
+ };
+ } finally {
+ if (sample.kind === 'trace') {
+ await context.tracing.stop({ path: tracePath });
+ }
+ await context.close();
+ }
+};
+
// The measurement is hermetic: the preview proxy targets a disposable
// in-memory mock backend, never a live InvokeAI instance with real data.
const mockBackend = await startMockBackend(backendPort);
@@ -91,195 +412,184 @@ preview.stderr.on('data', (chunk) => {
previewError += String(chunk);
});
+let browser;
try {
await waitForPreview();
- const browser = await chromium.launch({ headless: true });
+ browser = await chromium.launch({ headless: true });
const routeReports = [];
for (const fixture of fixtures.routes) {
- const samples = [];
- let stableScriptRequests = null;
-
- for (let index = 0; index < fixtures.warmups + fixtures.samples; index += 1) {
- // Every sample starts from byte-identical backend state.
- await fetch(`${backendOrigin}/__reset`, { method: 'POST' });
- const context = await browser.newContext();
- if (index === fixtures.warmups) {
- await context.tracing.start({ screenshots: true, snapshots: true, sources: true });
- }
- const page = await context.newPage();
- await page.addInitScript(() => {
- window.__architectureLongTasks = [];
- new PerformanceObserver((list) => {
- window.__architectureLongTasks.push(...list.getEntries().map((entry) => entry.duration));
- }).observe({ buffered: true, type: 'longtask' });
- });
- const scripts = new Set();
- page.on('response', (response) => {
- if (response.request().resourceType() === 'script' && response.url().startsWith(origin)) {
- scripts.add(new URL(response.url()).pathname);
- }
- });
+ const scoredSamples = [];
+ let traceSample = null;
+ let stableProfileCounts = null;
+ let stableScriptSourceOwners = null;
- const expectedScript = fixture.expectedScriptPattern
- ? page.waitForResponse(
- (response) =>
- response.request().resourceType() === 'script' && response.url().includes(fixture.expectedScriptPattern),
- { timeout: 10_000 }
- )
- : null;
- await page.goto(`${origin}${fixture.path}`, { waitUntil: 'domcontentloaded' });
- await expectedScript;
- let layoutSwitchMs = 0;
- let projectSwitchMs = 0;
- if (fixture.expectedScriptPattern) {
- const presetTrigger = page.getByRole('button', { exact: true, name: 'Default' });
- await presetTrigger.waitFor({ timeout: 10_000 });
- if (fixture.layoutPreset) {
- const layoutSwitchStart = performance.now();
- await presetTrigger.click();
- await page.getByRole('menuitem', { exact: true, name: fixture.layoutPreset }).click();
- await page
- .getByRole('button', { exact: true, name: fixture.layoutPreset })
- .first()
- .waitFor({ timeout: 10_000 });
- layoutSwitchMs = performance.now() - layoutSwitchStart;
- }
- }
- if (fixture.measureProjectSwitch) {
- const projectTabs = page.getByRole('tab');
- const originalProject = projectTabs.first();
- await page.getByRole('button', { name: /new project/i }).click();
- await projectTabs.nth(1).waitFor({ timeout: 10_000 });
- const projectSwitchStart = performance.now();
- await originalProject.click();
- await originalProject.waitFor({ state: 'visible' });
- await page.waitForFunction(
- (projectTab) => projectTab instanceof HTMLElement && projectTab.getAttribute('aria-selected') === 'true',
- await originalProject.elementHandle()
+ for (const sample of samplePlan) {
+ let result;
+ try {
+ result = await runSample(browser, fixture, sample);
+ } catch (error) {
+ throw new Error(
+ `${fixture.id}/${fixture.stateProfile} ${sample.kind} sample ${String(sample.index)} failed: ${
+ error instanceof Error ? error.message : String(error)
+ }`
);
- projectSwitchMs = performance.now() - projectSwitchStart;
}
- await waitForWidgetRequests(fixture, scripts);
- await page.waitForTimeout(100);
- const timing = await page.evaluate(() => {
- const navigation = performance.getEntriesByType('navigation')[0];
- const longTasks = window.__architectureLongTasks;
- return {
- domContentLoadedMs: navigation ? navigation.domContentLoadedEventEnd : 0,
- loadMs: navigation ? navigation.loadEventEnd : 0,
- longestTaskMs: longTasks.reduce((maximum, duration) => Math.max(maximum, duration), 0),
- routeReadyMs: performance.now(),
- };
- });
- timing.layoutSwitchMs = layoutSwitchMs;
- timing.projectSwitchMs = projectSwitchMs;
- if (index === fixtures.warmups) {
- await mkdir(traceDirectory, { recursive: true });
- await context.tracing.stop({ path: resolve(traceDirectory, `${fixture.id}.zip`) });
+ if (sample.kind === 'trace') {
+ traceSample = result;
+ }
+ if (sample.kind !== 'scored') {
+ continue;
}
- await context.close();
- if (index >= fixtures.warmups) {
- const scriptRequests = [...scripts].map((request) => chunkNameByPath.get(request) ?? request).sort();
- stableScriptRequests ??= scriptRequests;
- if (JSON.stringify(stableScriptRequests) !== JSON.stringify(scriptRequests)) {
+ stableProfileCounts ??= result.profileCounts;
+ stableScriptSourceOwners ??= result.scriptSourceOwners;
+ const stableValues = [
+ ['profile counts', stableProfileCounts, result.profileCounts],
+ ['script source owners', stableScriptSourceOwners, result.scriptSourceOwners],
+ ];
+ for (const [label, expected, received] of stableValues) {
+ if (JSON.stringify(expected) !== JSON.stringify(received)) {
throw new Error(
- `${fixture.id} request set was unstable between samples: ${JSON.stringify(stableScriptRequests)} vs ${JSON.stringify(scriptRequests)}`
+ `${fixture.id}/${fixture.stateProfile} ${label} were unstable between scored samples.\nExpected ${JSON.stringify(
+ expected
+ )}\nReceived ${JSON.stringify(received)}`
);
}
- samples.push(timing);
}
+
+ scoredSamples.push({
+ activatedResources: result.activatedResources,
+ resources: result.resources,
+ timing: result.timing,
+ });
}
+ const timingKeys = [
+ 'domContentLoadedMs',
+ 'layoutSwitchMs',
+ 'loadMs',
+ 'longestTaskMs',
+ 'projectSwitchMs',
+ 'routeReadyMs',
+ ];
+ const timingValues = (key) => scoredSamples.map((sample) => sample.timing[key]);
routeReports.push({
- domContentLoadedMedianMs: median(samples.map((sample) => sample.domContentLoadedMs)),
+ activatedResources:
+ scoredSamples.length > 0
+ ? getMaximumResourceSummary(scoredSamples, 'activatedResources')
+ : getZeroResourceSummary(),
+ domContentLoadedMedianMs: median(timingValues('domContentLoadedMs')),
id: fixture.id,
- loadMedianMs: median(samples.map((sample) => sample.loadMs)),
- longestTaskMaxMs: Math.max(...samples.map((sample) => sample.longestTaskMs)),
- layoutSwitchMedianMs: median(samples.map((sample) => sample.layoutSwitchMs)),
- projectSwitchMedianMs: median(samples.map((sample) => sample.projectSwitchMs)),
+ layoutSwitchMedianMs: median(timingValues('layoutSwitchMs')),
+ loadMedianMs: median(timingValues('loadMs')),
+ longestTaskMaxMs: Math.max(...timingValues('longestTaskMs')),
owner: fixture.owner,
+ profileCounts: stableProfileCounts,
+ projectSwitchMedianMs: median(timingValues('projectSwitchMs')),
+ rawSamples: scoredSamples,
+ readyMark: fixture.readyMark,
remediationTicket: fixture.remediationTicket,
- routeReadyMedianMs: median(samples.map((sample) => sample.routeReadyMs)),
- scriptRequests: stableScriptRequests,
+ resources:
+ scoredSamples.length > 0 ? getMaximumResourceSummary(scoredSamples, 'resources') : getZeroResourceSummary(),
+ routeReadyMedianMs: median(timingValues('routeReadyMs')),
+ scriptSourceOwners: stableScriptSourceOwners ?? [],
+ stateProfile: fixture.stateProfile,
+ traceSample,
+ variance: Object.fromEntries(timingKeys.map((key) => [key, summarizeVariance(timingValues(key))])),
});
}
- await browser.close();
const report = {
browserExecutable: chromium.executablePath(),
capturedAt: new Date().toISOString(),
routes: routeReports,
- samples: fixtures.samples,
- warmups: fixtures.warmups,
+ sampling: sampleConfig,
+ schemaVersion: 2,
};
await mkdir(dirname(artifactPath), { recursive: true });
await writeFile(artifactPath, `${JSON.stringify(report, null, 2)}\n`);
if (updateBaseline) {
- await writeFile(
- baselinePath,
- `${JSON.stringify(
- {
- ...report,
- capturedAt: '2026-07-17',
- enforceTiming: false,
- longTaskTargetMs: 50,
- schemaVersion: 1,
- timingStatus: 'informational-until-ci-runner-is-stable',
- timingTolerancePercent: 0.1,
- },
- null,
- 2
- )}\n`
- );
+ const previousBaseline = JSON.parse(await readFile(baselinePath, 'utf8'));
+ const sourceOwnerSets = createSourceOwnerSets(routeReports);
+ const baseline = {
+ browserExecutable: report.browserExecutable,
+ capturedAt: new Date().toISOString().slice(0, 10),
+ routes: routeReports.map((route) => ({
+ activatedResourceBaseline: route.activatedResources,
+ activatedResourceLimits: createResourceLimits(route.activatedResources),
+ domContentLoadedMedianMs: route.domContentLoadedMedianMs,
+ id: route.id,
+ layoutSwitchMedianMs: route.layoutSwitchMedianMs,
+ loadMedianMs: route.loadMedianMs,
+ longestTaskMaxMs: route.longestTaskMaxMs,
+ owner: route.owner,
+ projectSwitchMedianMs: route.projectSwitchMedianMs,
+ readyMark: route.readyMark,
+ remediationTicket: route.remediationTicket,
+ resourceBaseline: route.resources,
+ resourceLimits: createResourceLimits(route.resources),
+ routeReadyMedianMs: route.routeReadyMedianMs,
+ scriptSourceOwnerSet: sourceOwnerSets.routeSetIds.get(`${route.id}:${route.stateProfile}`),
+ stateProfile: route.stateProfile,
+ })),
+ sampling: sampleConfig,
+ schemaVersion: 2,
+ scriptSourceOwnerSets: sourceOwnerSets.sets,
+ timingPolicy:
+ previousBaseline.schemaVersion === 2
+ ? previousBaseline.timingPolicy
+ : {
+ enforce: false,
+ longTaskTargetMs: 50,
+ runner: {
+ id: 'unconfigured',
+ minimumStableRuns: 20,
+ observedStableRuns: 0,
+ stable: false,
+ },
+ tolerancePercent: 0.1,
+ },
+ };
+ validateBrowserBaseline(baseline, fixtures);
+ await writeFile(baselinePath, `${JSON.stringify(baseline, null, 2)}\n`);
} else {
- const baseline = JSON.parse(await readFile(baselinePath, 'utf8'));
+ const baseline = validateBrowserBaseline(JSON.parse(await readFile(baselinePath, 'utf8')), fixtures);
const failures = [];
- const timingLimit = (value) => value * (1 + baseline.timingTolerancePercent);
+ if (JSON.stringify(baseline.sampling) !== JSON.stringify(sampleConfig)) {
+ failures.push(
+ `Browser sampling configuration changed. Expected ${JSON.stringify(baseline.sampling)}, received ${JSON.stringify(
+ sampleConfig
+ )}.`
+ );
+ }
for (const route of routeReports) {
- const expected = baseline.routes.find((candidate) => candidate.id === route.id);
+ const expected = baseline.routes.find(
+ (candidate) => candidate.id === route.id && candidate.stateProfile === route.stateProfile
+ );
if (!expected) {
- failures.push(`${route.id} has no checked-in browser baseline (owner ${route.owner}).`);
+ failures.push(`${route.id}/${route.stateProfile} has no checked-in browser baseline (owner ${route.owner}).`);
continue;
}
- if (JSON.stringify(route.scriptRequests) !== JSON.stringify(expected.scriptRequests)) {
+ if (expected.readyMark !== route.readyMark) {
failures.push(
- `${route.id} script request set changed (owner ${route.owner}, remediation ${route.remediationTicket}).\nExpected ${JSON.stringify(expected.scriptRequests)}\nReceived ${JSON.stringify(route.scriptRequests)}`
+ `${route.id}/${route.stateProfile} semantic-ready mark changed from ${expected.readyMark} to ${route.readyMark}.`
);
}
- if (baseline.enforceTiming && route.domContentLoadedMedianMs > timingLimit(expected.domContentLoadedMedianMs)) {
- failures.push(
- `${route.id} DOMContentLoaded median exceeded its timing tolerance (owner ${route.owner}, remediation ${route.remediationTicket}).`
- );
- }
- if (
- baseline.enforceTiming &&
- expected.layoutSwitchMedianMs > 0 &&
- route.layoutSwitchMedianMs > timingLimit(expected.layoutSwitchMedianMs)
- ) {
- failures.push(
- `${route.id} layout-switch median exceeded its timing tolerance (owner ${route.owner}, remediation ${route.remediationTicket}).`
- );
- }
- if (
- baseline.enforceTiming &&
- expected.projectSwitchMedianMs > 0 &&
- route.projectSwitchMedianMs > timingLimit(expected.projectSwitchMedianMs)
- ) {
- failures.push(
- `${route.id} project-switch median exceeded its timing tolerance (owner ${route.owner}, remediation ${route.remediationTicket}).`
- );
- }
- if (
- baseline.enforceTiming &&
- route.longestTaskMaxMs > Math.max(baseline.longTaskTargetMs, timingLimit(expected.longestTaskMaxMs))
- ) {
- failures.push(
- `${route.id} longest task exceeded its timing tolerance (owner ${route.owner}, remediation ${route.remediationTicket}).`
- );
+ failures.push(
+ ...checkBrowserRouteBudget(
+ route,
+ expected,
+ baseline.timingPolicy,
+ baseline.scriptSourceOwnerSets[expected.scriptSourceOwnerSet]
+ )
+ );
+ }
+ for (const expected of baseline.routes) {
+ if (!routeReports.some((route) => route.id === expected.id && route.stateProfile === expected.stateProfile)) {
+ failures.push(`${expected.id}/${expected.stateProfile} baseline has no executable fixture.`);
}
}
if (failures.length > 0) {
@@ -287,12 +597,29 @@ try {
}
}
- process.stdout.write(`${JSON.stringify(report, null, 2)}\n`);
+ process.stdout.write(
+ `${JSON.stringify(
+ {
+ artifactPath,
+ routes: routeReports.map((route) => ({
+ activatedResources: route.activatedResources,
+ id: route.id,
+ resources: route.resources,
+ stateProfile: route.stateProfile,
+ variance: route.variance,
+ })),
+ sampling: sampleConfig,
+ },
+ null,
+ 2
+ )}\n`
+ );
} catch (error) {
throw new Error(
`${error instanceof Error ? error.message : String(error)}${previewError ? `\n${previewError}` : ''}`
);
} finally {
+ await browser?.close();
if (preview.pid) {
try {
process.kill(-preview.pid, 'SIGTERM');
diff --git a/invokeai/frontend/webv2/scripts/performance-budgets.mjs b/invokeai/frontend/webv2/scripts/performance-budgets.mjs
index a0902f3947..e1b3bac5bb 100644
--- a/invokeai/frontend/webv2/scripts/performance-budgets.mjs
+++ b/invokeai/frontend/webv2/scripts/performance-budgets.mjs
@@ -1,5 +1,328 @@
import { brotliCompressSync, constants, gzipSync } from 'node:zlib';
+export const BUILD_METRIC_KEYS = [
+ 'brotliBytes',
+ 'cssRawBytes',
+ 'fontRawBytes',
+ 'gzipBytes',
+ 'imageRawBytes',
+ 'initialRawBytes',
+ 'largestAssetRawBytes',
+ 'otherAssetRawBytes',
+ 'ownedRawBytes',
+ 'requestCount',
+ 'scriptRequestCount',
+];
+
+export const BROWSER_RESOURCE_METRIC_KEYS = [
+ 'cssRawBytes',
+ 'fontRawBytes',
+ 'imageRawBytes',
+ 'largestAssetRawBytes',
+ 'otherRawBytes',
+ 'requestCount',
+ 'scriptRawBytes',
+ 'scriptRequestCount',
+ 'totalRawBytes',
+];
+
+const BUILD_SCHEMA_VERSION = 2;
+const BROWSER_SCHEMA_VERSION = 2;
+const CHUNK_SOURCE_SCHEMA_VERSION = 1;
+
+const isPlainObject = (value) => typeof value === 'object' && value !== null && !Array.isArray(value);
+
+const assertPlainObject = (value, path) => {
+ if (!isPlainObject(value)) {
+ throw new TypeError(`${path} must be an object.`);
+ }
+};
+
+const assertExactKeys = (value, expectedKeys, path) => {
+ assertPlainObject(value, path);
+ const expected = new Set(expectedKeys);
+ const actualKeys = Object.keys(value);
+ const unknown = actualKeys.filter((key) => !expected.has(key));
+ const missing = expectedKeys.filter((key) => !(key in value));
+
+ if (unknown.length > 0 || missing.length > 0) {
+ throw new Error(
+ `${path} has an invalid schema.${unknown.length > 0 ? ` Unknown keys: ${unknown.join(', ')}.` : ''}${
+ missing.length > 0 ? ` Missing keys: ${missing.join(', ')}.` : ''
+ }`
+ );
+ }
+};
+
+const assertNonEmptyString = (value, path) => {
+ if (typeof value !== 'string' || value.trim().length === 0) {
+ throw new TypeError(`${path} must be a non-empty string.`);
+ }
+};
+
+const assertNonNegativeNumber = (value, path) => {
+ if (typeof value !== 'number' || !Number.isFinite(value) || value < 0) {
+ throw new TypeError(`${path} must be a finite non-negative number.`);
+ }
+};
+
+const assertStringArray = (value, path) => {
+ if (!Array.isArray(value) || value.some((item) => typeof item !== 'string')) {
+ throw new TypeError(`${path} must be an array of strings.`);
+ }
+ if (new Set(value).size !== value.length) {
+ throw new Error(`${path} must not contain duplicate values.`);
+ }
+ if (JSON.stringify(value) !== JSON.stringify([...value].sort())) {
+ throw new Error(`${path} must be sorted.`);
+ }
+};
+
+const validateMetricObject = (value, metricKeys, path) => {
+ assertExactKeys(value, metricKeys, path);
+ for (const key of metricKeys) {
+ assertNonNegativeNumber(value[key], `${path}.${key}`);
+ }
+};
+
+export const validateChunkSourceManifest = (value) => {
+ assertExactKeys(value, ['chunks', 'schemaVersion'], 'chunk source manifest');
+ if (value.schemaVersion !== CHUNK_SOURCE_SCHEMA_VERSION) {
+ throw new Error(
+ `chunk source manifest schemaVersion must be ${CHUNK_SOURCE_SCHEMA_VERSION}; received ${String(value.schemaVersion)}.`
+ );
+ }
+ assertPlainObject(value.chunks, 'chunk source manifest.chunks');
+ for (const [file, chunk] of Object.entries(value.chunks)) {
+ assertExactKeys(chunk, ['facadeSource', 'sourceOwners'], `chunk source manifest.chunks.${file}`);
+ if (chunk.facadeSource !== null) {
+ assertNonEmptyString(chunk.facadeSource, `chunk source manifest.chunks.${file}.facadeSource`);
+ }
+ assertStringArray(chunk.sourceOwners, `chunk source manifest.chunks.${file}.sourceOwners`);
+ }
+ return value;
+};
+
+export const validateArchitectureBaseline = (value) => {
+ assertExactKeys(
+ value,
+ ['build', 'capturedAt', 'developmentInvalidation', 'schemaVersion', 'structural'],
+ 'architecture baseline'
+ );
+ if (value.schemaVersion !== BUILD_SCHEMA_VERSION) {
+ throw new Error(
+ `architecture baseline schemaVersion must be ${BUILD_SCHEMA_VERSION}; received ${String(value.schemaVersion)}.`
+ );
+ }
+ assertNonEmptyString(value.capturedAt, 'architecture baseline.capturedAt');
+ assertPlainObject(value.build, 'architecture baseline.build');
+
+ for (const [routeId, budget] of Object.entries(value.build)) {
+ const path = `architecture baseline.build.${routeId}`;
+ assertExactKeys(budget, ['baseline', 'limits', 'owner', 'remediationTicket', 'source'], path);
+ assertNonEmptyString(budget.source, `${path}.source`);
+ assertNonEmptyString(budget.owner, `${path}.owner`);
+ assertNonEmptyString(budget.remediationTicket, `${path}.remediationTicket`);
+ assertExactKeys(budget.baseline, [...BUILD_METRIC_KEYS, 'sourceOwners'], `${path}.baseline`);
+ validateMetricObject(
+ Object.fromEntries(BUILD_METRIC_KEYS.map((key) => [key, budget.baseline[key]])),
+ BUILD_METRIC_KEYS,
+ `${path}.baseline metrics`
+ );
+ assertStringArray(budget.baseline.sourceOwners, `${path}.baseline.sourceOwners`);
+ validateMetricObject(budget.limits, BUILD_METRIC_KEYS, `${path}.limits`);
+ for (const key of BUILD_METRIC_KEYS) {
+ if (budget.limits[key] < budget.baseline[key]) {
+ throw new Error(`${path}.limits.${key} cannot be below its captured baseline.`);
+ }
+ }
+ }
+
+ assertExactKeys(
+ value.structural,
+ ['editorForbiddenInitialChunkNames', 'inactiveWidgetGateOwner', 'launchpadForbiddenInitialSources'],
+ 'architecture baseline.structural'
+ );
+ assertStringArray(
+ value.structural.editorForbiddenInitialChunkNames,
+ 'architecture baseline.structural.editorForbiddenInitialChunkNames'
+ );
+ assertNonEmptyString(
+ value.structural.inactiveWidgetGateOwner,
+ 'architecture baseline.structural.inactiveWidgetGateOwner'
+ );
+ assertStringArray(
+ value.structural.launchpadForbiddenInitialSources,
+ 'architecture baseline.structural.launchpadForbiddenInitialSources'
+ );
+
+ assertPlainObject(value.developmentInvalidation, 'architecture baseline.developmentInvalidation');
+ for (const [metricId, budget] of Object.entries(value.developmentInvalidation)) {
+ const path = `architecture baseline.developmentInvalidation.${metricId}`;
+ assertExactKeys(budget, ['maxDirectImporters', 'owner', 'remediationTicket', 'specifier'], path);
+ assertNonEmptyString(budget.specifier, `${path}.specifier`);
+ assertNonEmptyString(budget.owner, `${path}.owner`);
+ assertNonEmptyString(budget.remediationTicket, `${path}.remediationTicket`);
+ assertNonNegativeNumber(budget.maxDirectImporters, `${path}.maxDirectImporters`);
+ }
+
+ return value;
+};
+
+const validateBrowserRoute = (route, path) => {
+ assertExactKeys(
+ route,
+ [
+ 'domContentLoadedMedianMs',
+ 'activatedResourceBaseline',
+ 'activatedResourceLimits',
+ 'id',
+ 'layoutSwitchMedianMs',
+ 'loadMedianMs',
+ 'longestTaskMaxMs',
+ 'owner',
+ 'projectSwitchMedianMs',
+ 'readyMark',
+ 'remediationTicket',
+ 'resourceBaseline',
+ 'resourceLimits',
+ 'routeReadyMedianMs',
+ 'scriptSourceOwnerSet',
+ 'stateProfile',
+ ],
+ path
+ );
+ for (const key of [
+ 'domContentLoadedMedianMs',
+ 'layoutSwitchMedianMs',
+ 'loadMedianMs',
+ 'longestTaskMaxMs',
+ 'projectSwitchMedianMs',
+ 'routeReadyMedianMs',
+ ]) {
+ assertNonNegativeNumber(route[key], `${path}.${key}`);
+ }
+ for (const key of ['id', 'owner', 'readyMark', 'remediationTicket', 'stateProfile']) {
+ assertNonEmptyString(route[key], `${path}.${key}`);
+ }
+ validateMetricObject(
+ route.activatedResourceBaseline,
+ BROWSER_RESOURCE_METRIC_KEYS,
+ `${path}.activatedResourceBaseline`
+ );
+ validateMetricObject(route.activatedResourceLimits, BROWSER_RESOURCE_METRIC_KEYS, `${path}.activatedResourceLimits`);
+ for (const key of BROWSER_RESOURCE_METRIC_KEYS) {
+ if (route.activatedResourceLimits[key] < route.activatedResourceBaseline[key]) {
+ throw new Error(`${path}.activatedResourceLimits.${key} cannot be below its captured baseline.`);
+ }
+ }
+ validateMetricObject(route.resourceBaseline, BROWSER_RESOURCE_METRIC_KEYS, `${path}.resourceBaseline`);
+ validateMetricObject(route.resourceLimits, BROWSER_RESOURCE_METRIC_KEYS, `${path}.resourceLimits`);
+ for (const key of BROWSER_RESOURCE_METRIC_KEYS) {
+ if (route.resourceLimits[key] < route.resourceBaseline[key]) {
+ throw new Error(`${path}.resourceLimits.${key} cannot be below its captured baseline.`);
+ }
+ }
+ assertNonEmptyString(route.scriptSourceOwnerSet, `${path}.scriptSourceOwnerSet`);
+};
+
+export const assertTimingEnforcementIsConfigured = (baseline, fixtures) => {
+ if (!baseline.timingPolicy.enforce) {
+ return;
+ }
+
+ const { runner } = baseline.timingPolicy;
+ if (!runner.stable || runner.id === 'unconfigured') {
+ throw new Error('Timing enforcement requires an explicitly identified stable runner.');
+ }
+ if (runner.observedStableRuns < runner.minimumStableRuns) {
+ throw new Error(
+ `Timing enforcement requires at least ${String(runner.minimumStableRuns)} stable runs; received ${String(
+ runner.observedStableRuns
+ )}.`
+ );
+ }
+ for (const fixture of fixtures.routes) {
+ assertNonEmptyString(fixture.readyMark, `architecture fixtures.routes.${fixture.id}.readyMark`);
+ const route = baseline.routes.find(
+ (candidate) => candidate.id === fixture.id && candidate.stateProfile === fixture.stateProfile
+ );
+ if (!route || route.readyMark !== fixture.readyMark) {
+ throw new Error(
+ `Timing enforcement requires ${fixture.id}/${fixture.stateProfile} to have a matching semantic-ready mark.`
+ );
+ }
+ }
+};
+
+export const validateBrowserBaseline = (value, fixtures) => {
+ assertExactKeys(
+ value,
+ ['browserExecutable', 'capturedAt', 'routes', 'sampling', 'schemaVersion', 'scriptSourceOwnerSets', 'timingPolicy'],
+ 'browser baseline'
+ );
+ if (value.schemaVersion !== BROWSER_SCHEMA_VERSION) {
+ throw new Error(
+ `browser baseline schemaVersion must be ${BROWSER_SCHEMA_VERSION}; received ${String(value.schemaVersion)}.`
+ );
+ }
+ assertNonEmptyString(value.browserExecutable, 'browser baseline.browserExecutable');
+ assertNonEmptyString(value.capturedAt, 'browser baseline.capturedAt');
+ assertExactKeys(value.sampling, ['scoredSamples', 'traceSamples', 'warmups'], 'browser baseline.sampling');
+ assertNonNegativeNumber(value.sampling.scoredSamples, 'browser baseline.sampling.scoredSamples');
+ assertNonNegativeNumber(value.sampling.traceSamples, 'browser baseline.sampling.traceSamples');
+ assertNonNegativeNumber(value.sampling.warmups, 'browser baseline.sampling.warmups');
+ if (value.sampling.scoredSamples < 1 || value.sampling.traceSamples !== 1) {
+ throw new Error('browser baseline must configure at least one scored sample and exactly one trace sample.');
+ }
+
+ assertExactKeys(
+ value.timingPolicy,
+ ['enforce', 'longTaskTargetMs', 'runner', 'tolerancePercent'],
+ 'browser baseline.timingPolicy'
+ );
+ if (typeof value.timingPolicy.enforce !== 'boolean') {
+ throw new TypeError('browser baseline.timingPolicy.enforce must be boolean.');
+ }
+ assertNonNegativeNumber(value.timingPolicy.longTaskTargetMs, 'browser baseline.timingPolicy.longTaskTargetMs');
+ assertNonNegativeNumber(value.timingPolicy.tolerancePercent, 'browser baseline.timingPolicy.tolerancePercent');
+ assertExactKeys(
+ value.timingPolicy.runner,
+ ['id', 'minimumStableRuns', 'observedStableRuns', 'stable'],
+ 'browser baseline.timingPolicy.runner'
+ );
+ assertNonEmptyString(value.timingPolicy.runner.id, 'browser baseline.timingPolicy.runner.id');
+ if (typeof value.timingPolicy.runner.stable !== 'boolean') {
+ throw new TypeError('browser baseline.timingPolicy.runner.stable must be boolean.');
+ }
+ assertNonNegativeNumber(
+ value.timingPolicy.runner.minimumStableRuns,
+ 'browser baseline.timingPolicy.runner.minimumStableRuns'
+ );
+ assertNonNegativeNumber(
+ value.timingPolicy.runner.observedStableRuns,
+ 'browser baseline.timingPolicy.runner.observedStableRuns'
+ );
+
+ if (!Array.isArray(value.routes)) {
+ throw new TypeError('browser baseline.routes must be an array.');
+ }
+ value.routes.forEach((route, index) => validateBrowserRoute(route, `browser baseline.routes[${String(index)}]`));
+ assertPlainObject(value.scriptSourceOwnerSets, 'browser baseline.scriptSourceOwnerSets');
+ for (const [setId, sourceOwners] of Object.entries(value.scriptSourceOwnerSets)) {
+ assertStringArray(sourceOwners, `browser baseline.scriptSourceOwnerSets.${setId}`);
+ }
+ for (const route of value.routes) {
+ if (!value.scriptSourceOwnerSets[route.scriptSourceOwnerSet]) {
+ throw new Error(
+ `browser baseline route ${route.id}/${route.stateProfile} references missing script source-owner set ${route.scriptSourceOwnerSet}.`
+ );
+ }
+ }
+ assertTimingEnforcementIsConfigured(value, fixtures);
+ return value;
+};
+
const collectStaticImports = (manifest, source, collected = new Set()) => {
if (collected.has(source)) {
return collected;
@@ -17,58 +340,273 @@ const collectStaticImports = (manifest, source, collected = new Set()) => {
const getChunkName = (source, chunk) => chunk.name ?? chunk.src ?? source;
-export const measureRouteBuild = (manifest, routeId, source, readAsset) => {
- const sources = [...collectStaticImports(manifest, source)];
- const assets = sources.map((chunkSource) => {
- const chunk = manifest[chunkSource];
- return { bytes: readAsset(chunk.file), chunk, source: chunkSource };
- });
- const owned = assets.find((asset) => asset.source === source);
+const getAssetKind = (file) => {
+ const extension = file.split('.').pop()?.toLowerCase();
+
+ if (extension === 'js' || extension === 'mjs') {
+ return 'script';
+ }
+ if (extension === 'css') {
+ return 'css';
+ }
+ if (extension === 'woff' || extension === 'woff2' || extension === 'ttf' || extension === 'otf') {
+ return 'font';
+ }
+ if (
+ extension === 'avif' ||
+ extension === 'gif' ||
+ extension === 'jpeg' ||
+ extension === 'jpg' ||
+ extension === 'png' ||
+ extension === 'svg' ||
+ extension === 'webp'
+ ) {
+ return 'image';
+ }
+ return 'other';
+};
+
+const getCompressedBytes = (asset, algorithm) => {
+ if (asset.kind === 'font' || asset.kind === 'image') {
+ return asset.bytes.byteLength;
+ }
+ return algorithm === 'gzip'
+ ? gzipSync(asset.bytes, { level: 9 }).byteLength
+ : brotliCompressSync(asset.bytes, {
+ params: { [constants.BROTLI_PARAM_QUALITY]: 4 },
+ }).byteLength;
+};
+
+const sumBytesByKind = (assets, kind) =>
+ assets.filter((asset) => asset.kind === kind).reduce((total, asset) => total + asset.bytes.byteLength, 0);
+
+export const measureRouteBuild = (manifest, chunkSourceManifest, routeId, source, readAsset) => {
+ validateChunkSourceManifest(chunkSourceManifest);
+ const manifestSources = [...collectStaticImports(manifest, source)];
+ const files = new Map();
+
+ for (const manifestSource of manifestSources) {
+ const chunk = manifest[manifestSource];
+ files.set(chunk.file, { file: chunk.file, kind: getAssetKind(chunk.file) });
+ for (const cssFile of chunk.css ?? []) {
+ files.set(cssFile, { file: cssFile, kind: 'css' });
+ }
+ for (const assetFile of chunk.assets ?? []) {
+ files.set(assetFile, { file: assetFile, kind: getAssetKind(assetFile) });
+ }
+ }
+
+ const assets = [...files.values()].map((asset) => ({
+ ...asset,
+ bytes: readAsset(asset.file),
+ }));
+ for (const asset of assets) {
+ if (!(asset.bytes instanceof Uint8Array)) {
+ throw new TypeError(`Build asset ${asset.file} was not available as bytes.`);
+ }
+ }
+
+ const ownedFile = manifest[source].file;
+ const owned = assets.find((asset) => asset.file === ownedFile);
+ if (!owned) {
+ throw new Error(`${routeId} owned entry ${ownedFile} was not measured.`);
+ }
+
+ const sourceOwners = new Set();
+ for (const manifestSource of manifestSources) {
+ const file = manifest[manifestSource].file;
+ const chunkSources = chunkSourceManifest.chunks[file];
+ if (!chunkSources) {
+ throw new Error(`Chunk source manifest is missing ${file}; source ownership cannot be checked for ${routeId}.`);
+ }
+ for (const sourceOwner of chunkSources.sourceOwners) {
+ sourceOwners.add(sourceOwner);
+ }
+ }
+
+ const initialRawBytes = assets.reduce((total, asset) => total + asset.bytes.byteLength, 0);
return {
- brotliBytes: assets.reduce(
- (total, asset) =>
- total + brotliCompressSync(asset.bytes, { params: { [constants.BROTLI_PARAM_QUALITY]: 4 } }).byteLength,
- 0
- ),
- chunkNames: assets.map((asset) => getChunkName(asset.source, asset.chunk)).sort(),
- files: assets.map((asset) => asset.chunk.file).sort(),
- gzipBytes: assets.reduce((total, asset) => total + gzipSync(asset.bytes, { level: 9 }).byteLength, 0),
- initialRawBytes: assets.reduce((total, asset) => total + asset.bytes.byteLength, 0),
+ brotliBytes: assets.reduce((total, asset) => total + getCompressedBytes(asset, 'brotli'), 0),
+ chunkNames: manifestSources.map((manifestSource) => getChunkName(manifestSource, manifest[manifestSource])).sort(),
+ cssRawBytes: sumBytesByKind(assets, 'css'),
+ files: assets.map((asset) => asset.file).sort(),
+ fontRawBytes: sumBytesByKind(assets, 'font'),
+ gzipBytes: assets.reduce((total, asset) => total + getCompressedBytes(asset, 'gzip'), 0),
+ imageRawBytes: sumBytesByKind(assets, 'image'),
+ initialRawBytes,
+ largestAssetRawBytes: Math.max(0, ...assets.map((asset) => asset.bytes.byteLength)),
+ otherAssetRawBytes: sumBytesByKind(assets, 'other'),
ownedRawBytes: owned.bytes.byteLength,
+ requestCount: assets.length,
routeId,
+ scriptRequestCount: assets.filter((asset) => asset.kind === 'script').length,
source,
- sources: sources.sort(),
+ sourceOwners: [...sourceOwners].sort(),
+ sources: manifestSources.sort(),
};
};
+const METRIC_LABELS = {
+ brotliBytes: 'estimated Brotli transfer',
+ cssRawBytes: 'initial CSS',
+ fontRawBytes: 'initial fonts',
+ gzipBytes: 'estimated gzip transfer',
+ imageRawBytes: 'initial images',
+ initialRawBytes: 'initial raw assets',
+ largestAssetRawBytes: 'largest initial asset',
+ otherAssetRawBytes: 'other initial assets',
+ ownedRawBytes: 'owned JavaScript',
+ requestCount: 'initial asset requests',
+ scriptRequestCount: 'initial script requests',
+};
+
+const createFailure = (measurement, budget, message, actual, limit) => ({
+ actual,
+ budget: limit,
+ message,
+ owner: budget.owner,
+ remediationTicket: budget.remediationTicket,
+ routeId: measurement.routeId,
+});
+
+const diffSortedValues = (expected, actual) => ({
+ added: actual.filter((value) => !expected.includes(value)),
+ removed: expected.filter((value) => !actual.includes(value)),
+});
+
export const checkRouteBudget = (measurement, budget) => {
const failures = [];
- const allowedGrowth = Math.min(
- budget.maxGrowthRawBytes,
- Math.floor(budget.baselineOwnedRawBytes * budget.maxGrowthPercent)
- );
- const maximumOwnedBytes = budget.baselineOwnedRawBytes + allowedGrowth;
-
- if (measurement.ownedRawBytes > maximumOwnedBytes) {
- failures.push({
- actual: measurement.ownedRawBytes,
- budget: maximumOwnedBytes,
- message: `${measurement.routeId} owned JavaScript grew to ${measurement.ownedRawBytes} bytes (budget ${maximumOwnedBytes}, baseline ${budget.baselineOwnedRawBytes}).`,
- owner: budget.owner,
- remediationTicket: budget.remediationTicket,
- routeId: measurement.routeId,
- });
- }
- if (JSON.stringify(measurement.chunkNames) !== JSON.stringify(budget.initialChunkNames)) {
- failures.push({
- actual: measurement.chunkNames,
- budget: budget.initialChunkNames,
- message: `${measurement.routeId} initial request set changed. Expected [${budget.initialChunkNames.join(', ')}], received [${measurement.chunkNames.join(', ')}].`,
- owner: budget.owner,
- remediationTicket: budget.remediationTicket,
- routeId: measurement.routeId,
- });
+
+ for (const key of BUILD_METRIC_KEYS) {
+ if (measurement[key] > budget.limits[key]) {
+ failures.push(
+ createFailure(
+ measurement,
+ budget,
+ `${measurement.routeId} ${METRIC_LABELS[key]} reached ${String(measurement[key])} bytes/requests (limit ${String(
+ budget.limits[key]
+ )}, captured ${String(budget.baseline[key])}).`,
+ measurement[key],
+ budget.limits[key]
+ )
+ );
+ }
+ }
+
+ const sourceDiff = diffSortedValues(budget.baseline.sourceOwners, measurement.sourceOwners);
+ if (sourceDiff.added.length > 0 || sourceDiff.removed.length > 0) {
+ failures.push(
+ createFailure(
+ measurement,
+ budget,
+ `${measurement.routeId} initial source-owner graph changed.${
+ sourceDiff.added.length > 0 ? ` Added: ${sourceDiff.added.join(', ')}.` : ''
+ }${sourceDiff.removed.length > 0 ? ` Removed: ${sourceDiff.removed.join(', ')}.` : ''}`,
+ measurement.sourceOwners,
+ budget.baseline.sourceOwners
+ )
+ );
+ }
+
+ return failures;
+};
+
+export const createBrowserSamplePlan = ({ scoredSamples, traceSamples, warmups }) => {
+ if (!Number.isInteger(scoredSamples) || scoredSamples < 1) {
+ throw new Error('scoredSamples must be a positive integer.');
+ }
+ if (traceSamples !== 1) {
+ throw new Error('Exactly one unscored trace sample is required.');
+ }
+ if (!Number.isInteger(warmups) || warmups < 0) {
+ throw new Error('warmups must be a non-negative integer.');
+ }
+
+ return [
+ ...Array.from({ length: warmups }, (_, index) => ({ index, kind: 'warmup' })),
+ { index: warmups, kind: 'trace' },
+ ...Array.from({ length: scoredSamples }, (_, index) => ({
+ index: warmups + traceSamples + index,
+ kind: 'scored',
+ })),
+ ];
+};
+
+export const summarizeBrowserResources = (resources) => {
+ const uniqueResources = [...new Map(resources.map((resource) => [resource.path, resource])).values()];
+ const sum = (kind) =>
+ uniqueResources
+ .filter((resource) => resource.kind === kind)
+ .reduce((total, resource) => total + resource.rawBytes, 0);
+
+ return {
+ cssRawBytes: sum('css'),
+ fontRawBytes: sum('font'),
+ imageRawBytes: sum('image'),
+ largestAssetRawBytes: Math.max(0, ...uniqueResources.map((resource) => resource.rawBytes)),
+ otherRawBytes: sum('other'),
+ requestCount: uniqueResources.length,
+ scriptRawBytes: sum('script'),
+ scriptRequestCount: uniqueResources.filter((resource) => resource.kind === 'script').length,
+ totalRawBytes: uniqueResources.reduce((total, resource) => total + resource.rawBytes, 0),
+ };
+};
+
+export const checkBrowserRouteBudget = (route, expected, timingPolicy, expectedScriptSourceOwners) => {
+ const failures = [];
+ const label = `${route.id}/${route.stateProfile}`;
+
+ for (const key of BROWSER_RESOURCE_METRIC_KEYS) {
+ if (route.resources[key] > expected.resourceLimits[key]) {
+ failures.push(
+ `${label} ${key} reached ${String(route.resources[key])} (limit ${String(expected.resourceLimits[key])}, owner ${
+ route.owner
+ }, remediation ${route.remediationTicket}).`
+ );
+ }
+ if (route.activatedResources[key] > expected.activatedResourceLimits[key]) {
+ failures.push(
+ `${label} activated ${key} reached ${String(route.activatedResources[key])} (limit ${String(
+ expected.activatedResourceLimits[key]
+ )}, owner ${route.owner}, remediation ${route.remediationTicket}).`
+ );
+ }
}
+
+ const sourceDiff = diffSortedValues(expectedScriptSourceOwners, route.scriptSourceOwners);
+ if (sourceDiff.added.length > 0 || sourceDiff.removed.length > 0) {
+ failures.push(
+ `${label} script source-owner set changed.${sourceDiff.added.length > 0 ? ` Added: ${sourceDiff.added.join(', ')}.` : ''}${
+ sourceDiff.removed.length > 0 ? ` Removed: ${sourceDiff.removed.join(', ')}.` : ''
+ }`
+ );
+ }
+
+ if (!timingPolicy.enforce) {
+ return failures;
+ }
+
+ const timingLimit = (value) => value * (1 + timingPolicy.tolerancePercent);
+ const timingChecks = [
+ ['domContentLoadedMedianMs', 'DOMContentLoaded median'],
+ ['layoutSwitchMedianMs', 'layout-switch median'],
+ ['loadMedianMs', 'load median'],
+ ['projectSwitchMedianMs', 'project-switch median'],
+ ['routeReadyMedianMs', 'semantic route-ready median'],
+ ];
+ for (const [key, metricLabel] of timingChecks) {
+ if (expected[key] > 0 && route[key] > timingLimit(expected[key])) {
+ failures.push(
+ `${label} ${metricLabel} exceeded its timing tolerance (owner ${route.owner}, remediation ${route.remediationTicket}).`
+ );
+ }
+ }
+ if (route.longestTaskMaxMs > Math.max(timingPolicy.longTaskTargetMs, timingLimit(expected.longestTaskMaxMs))) {
+ failures.push(
+ `${label} longest task exceeded its timing tolerance (owner ${route.owner}, remediation ${route.remediationTicket}).`
+ );
+ }
+
return failures;
};
diff --git a/invokeai/frontend/webv2/scripts/performance-budgets.test.mjs b/invokeai/frontend/webv2/scripts/performance-budgets.test.mjs
new file mode 100644
index 0000000000..935c79589a
--- /dev/null
+++ b/invokeai/frontend/webv2/scripts/performance-budgets.test.mjs
@@ -0,0 +1,324 @@
+import assert from 'node:assert/strict';
+import { describe, it } from 'node:test';
+
+import { createChunkSourceManifest, getModuleSourceOwner } from './chunk-source-manifest.mjs';
+import {
+ BUILD_METRIC_KEYS,
+ checkRouteBudget,
+ createBrowserSamplePlan,
+ measureRouteBuild,
+ summarizeBrowserResources,
+ validateArchitectureBaseline,
+ validateBrowserBaseline,
+} from './performance-budgets.mjs';
+
+const PROJECT_ROOT = '/repo/webv2';
+
+const createSyntheticBuild = (vendorBytes) => {
+ const manifest = {
+ 'entry.ts': {
+ file: 'assets/entry.js',
+ imports: ['_vendor.js'],
+ name: 'entry',
+ src: 'entry.ts',
+ },
+ '_vendor.js': {
+ file: 'assets/vendor.js',
+ name: 'vendor',
+ },
+ };
+ const chunkSources = {
+ chunks: {
+ 'assets/entry.js': {
+ facadeSource: 'source:entry.ts',
+ sourceOwners: ['source:entry.ts'],
+ },
+ 'assets/vendor.js': {
+ facadeSource: null,
+ sourceOwners: ['package:react'],
+ },
+ },
+ schemaVersion: 1,
+ };
+ const assets = new Map([
+ ['assets/entry.js', new Uint8Array(100)],
+ ['assets/vendor.js', new Uint8Array(vendorBytes)],
+ ]);
+
+ return measureRouteBuild(manifest, chunkSources, 'launchpad', 'entry.ts', (file) => assets.get(file));
+};
+
+const createArchitectureBaseline = (measurement) => ({
+ build: {
+ launchpad: {
+ baseline: Object.fromEntries([
+ ...BUILD_METRIC_KEYS.map((key) => [key, measurement[key]]),
+ ['sourceOwners', measurement.sourceOwners],
+ ]),
+ limits: Object.fromEntries(BUILD_METRIC_KEYS.map((key) => [key, measurement[key]])),
+ owner: 'app',
+ remediationTicket: 'performance-gates',
+ source: 'entry.ts',
+ },
+ },
+ capturedAt: '2026-07-26',
+ developmentInvalidation: {
+ ui: {
+ maxDirectImporters: 1,
+ owner: 'platform',
+ remediationTicket: 'narrow-ui',
+ specifier: '@platform/ui',
+ },
+ },
+ schemaVersion: 2,
+ structural: {
+ editorForbiddenInitialChunkNames: ['ag-psd'],
+ inactiveWidgetGateOwner: 'workbench',
+ launchpadForbiddenInitialSources: ['src/app/WorkbenchApp.tsx'],
+ },
+});
+
+const createBrowserBaseline = () => ({
+ browserExecutable: '/chromium',
+ capturedAt: '2026-07-26',
+ routes: [
+ {
+ activatedResourceBaseline: {
+ cssRawBytes: 0,
+ fontRawBytes: 0,
+ imageRawBytes: 0,
+ largestAssetRawBytes: 0,
+ otherRawBytes: 0,
+ requestCount: 0,
+ scriptRawBytes: 0,
+ scriptRequestCount: 0,
+ totalRawBytes: 0,
+ },
+ activatedResourceLimits: {
+ cssRawBytes: 0,
+ fontRawBytes: 0,
+ imageRawBytes: 0,
+ largestAssetRawBytes: 0,
+ otherRawBytes: 0,
+ requestCount: 0,
+ scriptRawBytes: 0,
+ scriptRequestCount: 0,
+ totalRawBytes: 0,
+ },
+ domContentLoadedMedianMs: 100,
+ id: 'launchpad',
+ layoutSwitchMedianMs: 0,
+ loadMedianMs: 110,
+ longestTaskMaxMs: 40,
+ owner: 'app',
+ projectSwitchMedianMs: 0,
+ readyMark: 'invokeai:ready:launchpad',
+ remediationTicket: 'performance-gates',
+ resourceBaseline: {
+ cssRawBytes: 1,
+ fontRawBytes: 2,
+ imageRawBytes: 3,
+ largestAssetRawBytes: 10,
+ otherRawBytes: 4,
+ requestCount: 5,
+ scriptRawBytes: 10,
+ scriptRequestCount: 1,
+ totalRawBytes: 20,
+ },
+ resourceLimits: {
+ cssRawBytes: 1,
+ fontRawBytes: 2,
+ imageRawBytes: 3,
+ largestAssetRawBytes: 10,
+ otherRawBytes: 4,
+ requestCount: 5,
+ scriptRawBytes: 10,
+ scriptRequestCount: 1,
+ totalRawBytes: 20,
+ },
+ routeReadyMedianMs: 120,
+ scriptSourceOwnerSet: 'launchpad',
+ stateProfile: 'empty',
+ },
+ ],
+ sampling: {
+ scoredSamples: 5,
+ traceSamples: 1,
+ warmups: 1,
+ },
+ schemaVersion: 2,
+ scriptSourceOwnerSets: {
+ launchpad: ['source:entry.ts'],
+ },
+ timingPolicy: {
+ enforce: false,
+ longTaskTargetMs: 50,
+ runner: {
+ id: 'unconfigured',
+ minimumStableRuns: 20,
+ observedStableRuns: 0,
+ stable: false,
+ },
+ tolerancePercent: 0.1,
+ },
+});
+
+const fixtures = {
+ routes: [
+ {
+ id: 'launchpad',
+ readyMark: 'invokeai:ready:launchpad',
+ stateProfile: 'empty',
+ },
+ ],
+};
+
+describe('build performance budgets', () => {
+ it('fails a 100 KB shared-vendor regression when entry bytes and source ownership are unchanged', () => {
+ const baselineMeasurement = createSyntheticBuild(1_000);
+ const regression = createSyntheticBuild(101_000);
+ const budget = createArchitectureBaseline(baselineMeasurement).build.launchpad;
+ const failures = checkRouteBudget(regression, budget);
+
+ assert.equal(regression.ownedRawBytes, baselineMeasurement.ownedRawBytes);
+ assert.deepEqual(regression.sourceOwners, baselineMeasurement.sourceOwners);
+ assert.ok(
+ failures.some((failure) => failure.message.includes('initial raw assets')),
+ failures.map((failure) => failure.message).join('\n')
+ );
+ assert.ok(
+ failures.some((failure) => failure.message.includes('largest initial asset')),
+ failures.map((failure) => failure.message).join('\n')
+ );
+ });
+
+ it('reports added and removed source owners instead of output display-name changes', () => {
+ const measurement = createSyntheticBuild(1_000);
+ const budget = createArchitectureBaseline(measurement).build.launchpad;
+ const changed = {
+ ...measurement,
+ sourceOwners: ['package:react-dom', 'source:entry.ts'],
+ };
+ const failures = checkRouteBudget(changed, budget);
+
+ assert.equal(failures.length, 1);
+ assert.match(failures[0].message, /Added: package:react-dom/);
+ assert.match(failures[0].message, /Removed: package:react/);
+ });
+
+ it('rejects unused budget schema keys', () => {
+ const measurement = createSyntheticBuild(1_000);
+ const baseline = createArchitectureBaseline(measurement);
+ baseline.build.launchpad.limits.unusedBudget = 123;
+
+ assert.throws(() => validateArchitectureBaseline(baseline), /Unknown keys: unusedBudget/);
+ });
+});
+
+describe('chunk source ownership manifest', () => {
+ it('normalizes first-party sources and pnpm dependency paths while excluding virtual/runtime ids', () => {
+ assert.equal(
+ getModuleSourceOwner('/repo/webv2/src/app/main.tsx?transform', PROJECT_ROOT),
+ 'source:src/app/main.tsx'
+ );
+ assert.equal(
+ getModuleSourceOwner(
+ '/repo/webv2/node_modules/.pnpm/@[email protected]/node_modules/@chakra-ui/react/dist/index.js',
+ PROJECT_ROOT
+ ),
+ 'package:@chakra-ui/react'
+ );
+ assert.equal(getModuleSourceOwner('\u0000rolldown/runtime.js', PROJECT_ROOT), null);
+ assert.equal(getModuleSourceOwner('/outside/repo.ts', PROJECT_ROOT), null);
+ });
+
+ it('emits deterministic sorted source-owner records for chunks only', () => {
+ const manifest = createChunkSourceManifest(
+ {
+ 'asset.css': { fileName: 'asset.css', source: '', type: 'asset' },
+ 'entry.js': {
+ facadeModuleId: '/repo/webv2/src/main.tsx',
+ fileName: 'entry.js',
+ moduleIds: [
+ '/repo/webv2/node_modules/react/index.js',
+ '/repo/webv2/src/main.tsx',
+ '/repo/webv2/src/app.tsx',
+ '\u0000rolldown/runtime.js',
+ ],
+ type: 'chunk',
+ },
+ },
+ PROJECT_ROOT
+ );
+
+ assert.deepEqual(manifest, {
+ chunks: {
+ 'entry.js': {
+ facadeSource: 'source:src/main.tsx',
+ sourceOwners: ['package:react', 'source:src/app.tsx', 'source:src/main.tsx'],
+ },
+ },
+ schemaVersion: 1,
+ });
+ });
+});
+
+describe('browser performance sampling and policy', () => {
+ it('keeps the trace sample disjoint from scored samples', () => {
+ const plan = createBrowserSamplePlan({ scoredSamples: 3, traceSamples: 1, warmups: 2 });
+
+ assert.deepEqual(
+ plan.map((sample) => sample.kind),
+ ['warmup', 'warmup', 'trace', 'scored', 'scored', 'scored']
+ );
+ assert.equal(new Set(plan.map((sample) => sample.index)).size, plan.length);
+ });
+
+ it('prevents timing enforcement without a stable runner', () => {
+ const baseline = createBrowserBaseline();
+ baseline.timingPolicy.enforce = true;
+
+ assert.throws(() => validateBrowserBaseline(baseline, fixtures), /identified stable runner/);
+ });
+
+ it('prevents timing enforcement without the configured semantic-ready mark', () => {
+ const baseline = createBrowserBaseline();
+ baseline.timingPolicy = {
+ ...baseline.timingPolicy,
+ enforce: true,
+ runner: {
+ id: 'ci-linux-x64',
+ minimumStableRuns: 20,
+ observedStableRuns: 20,
+ stable: true,
+ },
+ };
+ baseline.routes[0].readyMark = 'invokeai:ready:wrong';
+
+ assert.throws(() => validateBrowserBaseline(baseline, fixtures), /matching semantic-ready mark/);
+ });
+
+ it('summarizes unique activated resources by type', () => {
+ assert.deepEqual(
+ summarizeBrowserResources([
+ { kind: 'script', path: '/a.js', rawBytes: 10 },
+ { kind: 'script', path: '/a.js', rawBytes: 10 },
+ { kind: 'css', path: '/a.css', rawBytes: 5 },
+ { kind: 'font', path: '/a.woff2', rawBytes: 7 },
+ { kind: 'image', path: '/a.webp', rawBytes: 11 },
+ { kind: 'other', path: '/en.json', rawBytes: 3 },
+ ]),
+ {
+ cssRawBytes: 5,
+ fontRawBytes: 7,
+ imageRawBytes: 11,
+ largestAssetRawBytes: 11,
+ otherRawBytes: 3,
+ requestCount: 5,
+ scriptRawBytes: 10,
+ scriptRequestCount: 1,
+ totalRawBytes: 36,
+ }
+ );
+ });
+});
diff --git a/invokeai/frontend/webv2/src/platform/performance/semanticReady.test.ts b/invokeai/frontend/webv2/src/platform/performance/semanticReady.test.ts
new file mode 100644
index 0000000000..e5a7089fcc
--- /dev/null
+++ b/invokeai/frontend/webv2/src/platform/performance/semanticReady.test.ts
@@ -0,0 +1,25 @@
+import { beforeEach, describe, expect, it, vi } from 'vitest';
+
+import { getWidgetReadyMark, LAUNCHPAD_READY_MARK, markSemanticReady } from './semanticReady';
+
+beforeEach(() => {
+ vi.restoreAllMocks();
+});
+
+describe('semanticReady', () => {
+ it('uses stable route and widget milestone names', () => {
+ expect(LAUNCHPAD_READY_MARK).toBe('invokeai:ready:launchpad');
+ expect(getWidgetReadyMark('center', 'canvas')).toBe('invokeai:ready:widget:center:canvas');
+ });
+
+ it('replaces an older mark before recording the current milestone', () => {
+ const clear = vi.spyOn(performance, 'clearMarks').mockImplementation(() => undefined);
+ const mark = vi.spyOn(performance, 'mark').mockImplementation((name: string) => ({ name }) as PerformanceMark);
+
+ markSemanticReady(LAUNCHPAD_READY_MARK);
+
+ expect(clear).toHaveBeenCalledWith(LAUNCHPAD_READY_MARK);
+ expect(mark).toHaveBeenCalledWith(LAUNCHPAD_READY_MARK);
+ expect(clear.mock.invocationCallOrder[0]).toBeLessThan(mark.mock.invocationCallOrder[0]);
+ });
+});
diff --git a/invokeai/frontend/webv2/src/platform/performance/semanticReady.ts b/invokeai/frontend/webv2/src/platform/performance/semanticReady.ts
new file mode 100644
index 0000000000..1a9513b3ea
--- /dev/null
+++ b/invokeai/frontend/webv2/src/platform/performance/semanticReady.ts
@@ -0,0 +1,19 @@
+export const LAUNCHPAD_READY_MARK = 'invokeai:ready:launchpad';
+
+export const getWidgetReadyMark = (region: string, typeId: string): string =>
+ `invokeai:ready:widget:${region}:${typeId}`;
+
+/**
+ * Records a product-owned readiness milestone for the browser performance
+ * harness. Keeping only the latest mark makes repeated layout/project
+ * transitions unambiguous while preserving the mark's navigation-relative
+ * start time.
+ */
+export const markSemanticReady = (name: string): void => {
+ if (typeof performance === 'undefined' || typeof performance.mark !== 'function') {
+ return;
+ }
+
+ performance.clearMarks?.(name);
+ performance.mark(name);
+};
diff --git a/invokeai/frontend/webv2/src/workbench/launchpad/pages/ProjectsPage.tsx b/invokeai/frontend/webv2/src/workbench/launchpad/pages/ProjectsPage.tsx
index b43ae490c9..6ee851d607 100644
--- a/invokeai/frontend/webv2/src/workbench/launchpad/pages/ProjectsPage.tsx
+++ b/invokeai/frontend/webv2/src/workbench/launchpad/pages/ProjectsPage.tsx
@@ -2,6 +2,7 @@ import type { SystemStyleObject } from '@chakra-ui/react';
import { Flex, Heading, HStack, Stack, Text } from '@chakra-ui/react';
import { useAuthSession } from '@features/identity';
+import { LAUNCHPAD_READY_MARK, markSemanticReady } from '@platform/performance/semanticReady';
import { useMountEffect } from '@platform/react/useMountEffect';
import {
assertAccountScopeCurrent,
@@ -38,7 +39,13 @@ export const ProjectsPage = () => {
const { t } = useTranslation();
useMountEffect(() => {
- void refreshProjectLibrary();
+ const owner = captureAccountScope();
+
+ void refreshProjectLibrary().then(() => {
+ if (isAccountScopeCurrent(owner)) {
+ markSemanticReady(LAUNCHPAD_READY_MARK);
+ }
+ });
});
const displayName = session.user?.display_name?.trim();
diff --git a/invokeai/frontend/webv2/src/workbench/widget-frame/WidgetRenderer.tsx b/invokeai/frontend/webv2/src/workbench/widget-frame/WidgetRenderer.tsx
index 5f1c8907f1..a883f8d07b 100644
--- a/invokeai/frontend/webv2/src/workbench/widget-frame/WidgetRenderer.tsx
+++ b/invokeai/frontend/webv2/src/workbench/widget-frame/WidgetRenderer.tsx
@@ -8,6 +8,8 @@ import type {
} from '@workbench/widgetContracts';
import { Box, Flex, Text } from '@chakra-ui/react';
+import { getWidgetReadyMark, markSemanticReady } from '@platform/performance/semanticReady';
+import { useMountEffect } from '@platform/react/useMountEffect';
import { Scrollable } from '@platform/ui';
import { areWidgetPlacementProjectsEqual, getWidgetPlacementProject } from '@workbench/widgetPlacementMeta';
import { useActiveProjectSelector } from '@workbench/WorkbenchContext';
@@ -66,6 +68,9 @@ const LoadedWidgetRenderer = ({ instance, presentation, region, widget }: Widget
const project = useActiveProjectSelector(getWidgetPlacementProject, areWidgetPlacementProjectsEqual);
const implementation = use(widget.implementation.load());
const View = implementation.view;
+ useMountEffect(() => {
+ markSemanticReady(getWidgetReadyMark(region, instance.typeId));
+ });
const instanceMeta: WidgetInstanceRuntimeMeta = useMemo(
() => ({
createdAt: instance.createdAt,
diff --git a/invokeai/frontend/webv2/vite.config.mts b/invokeai/frontend/webv2/vite.config.mts
index fae0627dca..77df093884 100644
--- a/invokeai/frontend/webv2/vite.config.mts
+++ b/invokeai/frontend/webv2/vite.config.mts
@@ -3,10 +3,13 @@ import react, { reactCompilerPreset } from '@vitejs/plugin-react';
import { fileURLToPath, URL } from 'node:url';
import { defineConfig } from 'vite';
+import { chunkSourceManifest } from './scripts/chunk-source-manifest.mjs';
+
// Override with e.g. INVOKEAI_DEV_BACKEND=http://127.0.0.1:9091 when the
// backend dev server runs on a non-default port.
const BACKEND_URL = process.env.INVOKEAI_DEV_BACKEND ?? 'http://127.0.0.1:9090';
const BACKEND_WS_URL = BACKEND_URL.replace(/^http/, 'ws');
+const PROJECT_ROOT = fileURLToPath(new URL('.', import.meta.url));
export default defineConfig({
base: './',
@@ -21,7 +24,8 @@ export default defineConfig({
if (
id.endsWith('/platform/state/selectors.ts') ||
id.endsWith('/workbench/palette/paletteStore.ts') ||
- id.endsWith('/platform/search/dateTokens.ts')
+ id.endsWith('/platform/search/dateTokens.ts') ||
+ id.endsWith('/platform/performance/semanticReady.ts')
) {
return 'shared';
}
@@ -60,6 +64,7 @@ export default defineConfig({
babel({
presets: [reactCompilerPreset()],
}),
+ chunkSourceManifest({ projectRoot: PROJECT_ROOT }),
],
resolve: {
alias: {