mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-05-24 14:45:36 +00:00
Restratified foundation. Includes:
- Public API declaration files (src/extension-api/{events,identifiers,index,
lifecycle,node,shell,widget}.ts + README)
- Scope registry runtime (src/services/extension-api-service.ts) +
scope-registry tests
- Boot wiring (src/scripts/app.ts, src/services/extensionService.ts)
- Phase A ECS world stubs (src/world/{componentKey,entityIds,
widgets/widgetComponents,worldInstance}.ts)
- Public type re-exports (src/types/extensionV2.ts)
Test framework moved to ext-api/i-tf, npm package + docgen moved to
ext-api/i-pkg, core extension v2 conversions moved to ext-api/i-ext.
Original (pre-restratify) branch tip backed up at
refs/backup/restratify-20260511/ext-api-i-foundation
and tag backup/restratify/ext-api-i-foundation on fork.
9 lines
375 B
TypeScript
9 lines
375 B
TypeScript
// Phase A stub — replaced by real ECS entityIds when PR #11939 lands.
|
|
// Tests mock this module via vi.mock('@/world/entityIds').
|
|
|
|
export type Brand<T, B extends string> = T & { readonly __brand: B }
|
|
|
|
export type NodeEntityId = Brand<string, 'NodeEntityId'>
|
|
export type WidgetEntityId = Brand<string, 'WidgetEntityId'>
|
|
export type EntityId = NodeEntityId | WidgetEntityId
|