Files
artcraft/frontend/tsconfig.json
BFlat 044c6d8a88 Model list cleanup: shared omni-gen hooks, dead code removal (#1719)
### New shared lib: `@storyteller/omni-gen`
- The `omni-gen-hooks.ts` file was copy-pasted between `artcraft-webapp`
and
`artcraft-website` and had drifted (website copy was missing outage
toasts,
carried a stale hardcoded display-name map, and had weaker icon
resolution).
- Extracted the newer (webapp) version into a new lib
`frontend/libs/omni-gen`
  (generated via `nx g @nx/react:library`): singleton session cache,
`useOmniGenImageModels()` / `useOmniGenVideoModels()`, outage message
constants.
- App-local toasts are injected via `setOmniGenErrorNotifier()`, called
once in
each app's `main.tsx`, since the hooks are singleton-cache based and
each app
  has its own toast component.

### Consolidated model metadata into `@storyteller/model-list`
- `getModelDescription()` / `getModelInfo()` (tagline + info-blurb
fallbacks)
  moved to `ModelDescriptions.ts`; API values still always win.
- `getModelDisplayName()` gained an optional `fullName` param (API name
wins);
  the app-local wrapper is gone.
- Both apps' local `getModelCreatorIconPath()` replaced with the
existing,
stronger `getCreatorIconPathForModelId()` (checks `ALL_MODELS_LIST`
first,
then prefix match). The loader's duplicate `CREATOR_BY_PREFIX` map now
reuses
  the same shared `MODEL_ID_PREFIX_CREATORS` table.

### Dead code removed
- `modelReconciliation.ts`: deprecated `reconcile*()` helpers (never
called) and
the empty, retired `BACKEND_TO_TAURI_*` alias maps.
`buildModelsFromListing()`
dropped its alias-map indirection accordingly (backend ids == tauriIds
since
the 2026-07 id migration). `modelCreatorFromBackend()` moved inline into
the
  loader, its only consumer.
- Six unused static `*_PAGE_MODEL_LIST` constants in
`model-selectors-for-pages.tsx`
(superseded by the `use*PageModelList` hooks in #1710). The two
`IMAGE_TO_3D_*`
  constants stay: 3D models are not served by the omni backend.
- Untracked the accidentally committed
`apps/artcraft/tsconfig.tsbuildinfo` and
  gitignored `*.tsbuildinfo`.

### Website-visible improvements (from adopting the newer hooks)
- Model outage toasts now appear on the website (previously
webapp-only).
- Current display names from the canonical map (previously-unmapped ids
like
  `gpt_image_2` and Midjourney models rendered as raw ids).
- Model taglines/descriptions now render in the website model picker.
- Midjourney and SwitchX creator icons now resolve.
2026-07-02 15:06:15 +07:00

221 lines
4.0 KiB
JSON

{
"extends": "./tsconfig.base.json",
"compileOnSave": false,
"files": [],
"references": [
{
"path": "./libs/api"
},
{
"path": "./libs/login"
},
{
"path": "./apps/artcraft"
},
{
"path": "./libs/components/toaster"
},
{
"path": "./libs/components/close-button"
},
{
"path": "./libs/components/modal"
},
{
"path": "./libs/components/settings-modal"
},
{
"path": "./libs/components/button"
},
{
"path": "./libs/components/input"
},
{
"path": "./libs/components/label"
},
{
"path": "./libs/components/select"
},
{
"path": "./libs/components/tooltip"
},
{
"path": "./libs/tauri-api"
},
{
"path": "./libs/tauri-events"
},
{
"path": "./libs/tauri-utils"
},
{
"path": "./libs/components/demo-modal"
},
{
"path": "./apps/artcraft-website"
},
{
"path": "./apps/video-info-website"
},
{
"path": "./apps/artcraft-webapp"
},
{
"path": "./libs/components/gallery-modal"
},
{
"path": "./libs/components/lightbox-modal"
},
{
"path": "./libs/components/tab-selector"
},
{
"path": "./libs/components/loading-spinner"
},
{
"path": "./libs/soundboard"
},
{
"path": "./libs/components/promptbox"
},
{
"path": "./libs/components/popover"
},
{
"path": "./libs/components/camera-settings-modal"
},
{
"path": "./libs/components/slider-v2"
},
{
"path": "./libs/common"
},
{
"path": "./libs/components/login-modal"
},
{
"path": "./libs/components/switch"
},
{
"path": "./libs/build-env"
},
{
"path": "./libs/components/menu-icon-selector"
},
{
"path": "./libs/components/badge"
},
{
"path": "./libs/components/button-dropdown"
},
{
"path": "./libs/components/button-icon"
},
{
"path": "./libs/components/button-icon-select"
},
{
"path": "./libs/components/button-link"
},
{
"path": "./libs/components/file-uploader"
},
{
"path": "./libs/components/gravatar"
},
{
"path": "./libs/components/loading"
},
{
"path": "./libs/components/list-dropdown"
},
{
"path": "./libs/components/pagination"
},
{
"path": "./libs/components/search"
},
{
"path": "./libs/components/upload-modal"
},
{
"path": "./libs/components/action-reminder-modal"
},
{
"path": "./libs/components/model-selector"
},
{
"path": "./libs/components/create-3d-modal"
},
{
"path": "./libs/components/image-input"
},
{
"path": "./libs/components/pricing-modal"
},
{
"path": "./libs/model-list"
},
{
"path": "./libs/analytics/google-analytics"
},
{
"path": "./libs/components/provider-setup-modal"
},
{
"path": "./libs/components/progress"
},
{
"path": "./libs/components/provider-billing-modal"
},
{
"path": "./libs/state/credits"
},
{
"path": "./libs/state/subscription"
},
{
"path": "./libs/components/help-menu"
},
{
"path": "./libs/api-enums"
},
{
"path": "./libs/components/viewer-3d"
},
{
"path": "./libs/markdown-content"
},
{
"path": "./apps/genhub"
},
{
"path": "./libs/components/pagedraw"
},
{
"path": "./libs/components/checkbox"
},
{
"path": "./libs/components/pagescene"
},
{
"path": "./libs/components/vfx"
},
{
"path": "./libs/components/pricing-table"
},
{
"path": "./libs/components/video-editor"
},
{
"path": "./libs/components/generation-list"
},
{
"path": "./libs/components/moodboard"
},
{
"path": "./libs/omni-gen"
}
]
}