You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

73 lines
2.0 KiB

/**
* Public entry point of `arts/active-app`.
*
* Three import paths exist:
*
* - `$active-app` — `createActiveApp`, types, errors. What every app
* needs to compose its runtime.
* - `$active-app/services` — `defineActive*` / `defineEngine*`
* factories for the declarative service schema. Loaded only by
* apps that declare services.
* - `$active-app/presets` — orchestration presets registered on
* `App.orca`. Loaded only by apps that opt into the standard
* reactions.
*
* Splitting the entry points lets the bundler tree-shake each layer
* independently. An app that only consumes the core never pulls in
* service factories or presets.
*
* The Svelte-context bridge (`setBus` / `getBus`) lives in `$bus`, not
* here. It is owned by the bus, which is the semantic origin of the
* pattern; App is a consumer that just calls `setBus(App.bus)` once at
* the layout root.
*/
export { createActiveApp } from './active-app.svelte.ts';
export { APP_MODULE } from './consts.ts';
export {
APP_EVENT_DISPOSE_STARTING,
publishAppDisposeStarting,
onAppDisposeStarting,
type AppDisposeStartingPayload,
type AppEventBus,
type AppEventMap,
type AppEventRuntime
} from './events.ts';
export {
AappInvalidEventRuntimeError,
AappServiceConstructionFailedError,
AappServiceDependencyCycleError,
AappServiceNameMismatchError,
AappUnsafeEventPayloadError,
isAappInvalidEventRuntimeError,
isAappServiceConstructionFailedError,
isAappServiceDependencyCycleError,
isAappServiceNameMismatchError,
isAappUnsafeEventPayloadError
} from './errors.ts';
export type {
ActiveApp,
ActiveAppBusEvents,
ActiveAppCore,
ActiveAppOptions,
ActiveAppPrefsOptions,
ActiveAppServicesIntrospection
} from './types.ts';
export type {
AppServiceFactory,
AppServiceSchema,
CoreServices,
CoreServiceKey,
ResolveServiceInstances,
ServiceInitMode,
ServiceStatus
} from './services.ts';
export { buildServiceBuilders } from './service-builder.ts';
export type { ServiceBuilders } from './service-builder.ts';

Powered by TurnKey Linux.