@molecule/app-angular 3.16.1 → 3.18.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (70) hide show
  1. package/README.md +199 -312
  2. package/dist/ai-models.d.ts +2 -0
  3. package/dist/ai-models.d.ts.map +1 -0
  4. package/dist/ai-models.js +2 -0
  5. package/dist/ai-models.js.map +1 -0
  6. package/dist/chat/index.d.ts +5 -0
  7. package/dist/chat/index.d.ts.map +1 -0
  8. package/dist/chat/index.js +5 -0
  9. package/dist/chat/index.js.map +1 -0
  10. package/dist/chat-context.d.ts +7 -0
  11. package/dist/chat-context.d.ts.map +1 -0
  12. package/dist/chat-context.js +6 -0
  13. package/dist/chat-context.js.map +1 -0
  14. package/dist/chat-provider.d.ts +10 -0
  15. package/dist/chat-provider.d.ts.map +1 -0
  16. package/dist/chat-provider.js +12 -0
  17. package/dist/chat-provider.js.map +1 -0
  18. package/dist/chat.js +1 -1
  19. package/dist/chat.js.map +1 -1
  20. package/dist/hooks/index.d.ts +0 -1
  21. package/dist/hooks/index.d.ts.map +1 -1
  22. package/dist/hooks/index.js +0 -1
  23. package/dist/hooks/index.js.map +1 -1
  24. package/dist/hooks/use-native.d.ts +1 -93
  25. package/dist/hooks/use-native.d.ts.map +1 -1
  26. package/dist/hooks/use-native.js +2 -87
  27. package/dist/hooks/use-native.js.map +1 -1
  28. package/dist/hooks/use-push.d.ts +99 -0
  29. package/dist/hooks/use-push.d.ts.map +1 -0
  30. package/dist/hooks/use-push.js +92 -0
  31. package/dist/hooks/use-push.js.map +1 -0
  32. package/dist/hooks/use-translation.d.ts +2 -4
  33. package/dist/hooks/use-translation.d.ts.map +1 -1
  34. package/dist/hooks/use-translation.js.map +1 -1
  35. package/dist/i18n-reactive.d.ts +2 -2
  36. package/dist/i18n-reactive.d.ts.map +1 -1
  37. package/dist/i18n-reactive.js.map +1 -1
  38. package/dist/index.d.ts +7 -2
  39. package/dist/index.d.ts.map +1 -1
  40. package/dist/index.js +7 -2
  41. package/dist/index.js.map +1 -1
  42. package/dist/legacy-ai-models.d.ts +17 -0
  43. package/dist/legacy-ai-models.d.ts.map +1 -0
  44. package/dist/legacy-ai-models.js +12 -0
  45. package/dist/legacy-ai-models.js.map +1 -0
  46. package/dist/legacy-chat.d.ts +72 -0
  47. package/dist/legacy-chat.d.ts.map +1 -0
  48. package/dist/legacy-chat.js +52 -0
  49. package/dist/legacy-chat.js.map +1 -0
  50. package/dist/legacy-push.d.ts +27 -0
  51. package/dist/legacy-push.d.ts.map +1 -0
  52. package/dist/legacy-push.js +12 -0
  53. package/dist/legacy-push.js.map +1 -0
  54. package/dist/providers.d.ts +0 -8
  55. package/dist/providers.d.ts.map +1 -1
  56. package/dist/providers.js +2 -10
  57. package/dist/providers.js.map +1 -1
  58. package/dist/push.d.ts +3 -0
  59. package/dist/push.d.ts.map +1 -0
  60. package/dist/push.js +3 -0
  61. package/dist/push.js.map +1 -0
  62. package/dist/services/index.d.ts +0 -1
  63. package/dist/services/index.d.ts.map +1 -1
  64. package/dist/services/index.js +0 -1
  65. package/dist/services/index.js.map +1 -1
  66. package/dist/tokens.d.ts +0 -5
  67. package/dist/tokens.d.ts.map +1 -1
  68. package/dist/tokens.js +0 -4
  69. package/dist/tokens.js.map +1 -1
  70. package/package.json +15 -3
package/README.md CHANGED
@@ -3,7 +3,7 @@ AUTO-GENERATED — DO NOT EDIT THIS FILE.
3
3
  Generated by `mlcl sync-docs` from the package's src/index.ts JSDoc + mlcl/registry.json.
4
4
  Edits here are overwritten on the next commit (molecule's pre-commit hook regenerates).
5
5
  To change this document, edit the module-level JSDoc in src/index.ts.
6
- Generated: 2026-11-25T04:39:22.950Z
6
+ Generated: 2026-11-27T22:16:36.936Z
7
7
  -->
8
8
 
9
9
  # @molecule/app-angular
@@ -875,7 +875,7 @@ interface I18nProvider {
875
875
  *
876
876
  * @returns The translated string, or the default value / key if not found.
877
877
  */
878
- t(key: string, values?: InterpolationValues, options?: TranslateOptions): string
878
+ t: TranslateFunction
879
879
 
880
880
  /**
881
881
  * Checks if a translation key exists.
@@ -1660,31 +1660,6 @@ interface SlotReader {
1660
1660
 
1661
1661
  **Returns:** Whether the slot has content.
1662
1662
 
1663
- #### `UseAIModelsResult`
1664
-
1665
- Result returned by {@link useAIModels}: every field as a signal.
1666
-
1667
- ```typescript
1668
- interface UseAIModelsResult {
1669
- /**
1670
- * Available models, or an empty array while loading or after a failed fetch. The list keeps its identity
1671
- * until the catalog changes, the empty one included, so it can key a computed or an effect.
1672
- */
1673
- readonly models: Signal<AppModelDefinition[]>
1674
- /**
1675
- * Per-mode server default model ids for the requester's tier, or `undefined`
1676
- * while loading or on servers that don't provide them.
1677
- */
1678
- readonly defaults: Signal<AppModeModelDefaults | undefined>
1679
- /** The single model marked `freeTier: true`, or `undefined`. */
1680
- readonly freeTierModel: Signal<AppModelDefinition | undefined>
1681
- /** `true` while the initial fetch is in flight. */
1682
- readonly loading: Signal<boolean>
1683
- /** Error from the initial fetch, or `null`. */
1684
- readonly error: Signal<Error | null>
1685
- }
1686
- ```
1687
-
1688
1663
  #### `UsePromiseState`
1689
1664
 
1690
1665
  The state of the latest {@link usePromise} call.
@@ -2431,90 +2406,6 @@ interface UseCapacitorAppResult {
2431
2406
  }
2432
2407
  ```
2433
2408
 
2434
- #### `UsePushOptions`
2435
-
2436
- Options for {@link usePush} (e.g. check permission on mount).
2437
-
2438
- ```typescript
2439
- interface UsePushOptions {
2440
- /** Whether to check permission status on mount. */
2441
- checkOnMount?: boolean
2442
- }
2443
- ```
2444
-
2445
- #### `UsePushResult`
2446
-
2447
- What {@link usePush} returns: the permission and token as signals and every
2448
- action as a plain function.
2449
-
2450
- ```typescript
2451
- interface UsePushResult {
2452
- /** The known permission status, `null` until one is read. */
2453
- readonly permission: Signal<PermissionStatus | null>
2454
- /** The registered token, `null` while unregistered. */
2455
- readonly token: Signal<PushToken | null>
2456
- /**
2457
- * Reads the permission status and stores it.
2458
- *
2459
- * @returns The status.
2460
- */
2461
- checkPermission: () => Promise<PermissionStatus>
2462
- /**
2463
- * Asks for permission and stores the status.
2464
- *
2465
- * @returns The status.
2466
- */
2467
- requestPermission: () => Promise<PermissionStatus>
2468
- /**
2469
- * Registers for push notifications and stores the token.
2470
- *
2471
- * @param options - Registration options.
2472
- * @returns The token.
2473
- */
2474
- register: (options?: PushRegisterOptions) => Promise<PushToken>
2475
- /**
2476
- * Unregisters and clears the token.
2477
- *
2478
- * @returns Resolves once unregistered.
2479
- */
2480
- unregister: () => Promise<void>
2481
- /**
2482
- * Subscribes to received notifications.
2483
- *
2484
- * @param listener - Called for every notification.
2485
- * @returns A function that removes the listener.
2486
- */
2487
- onNotificationReceived: (listener: NotificationReceivedListener) => () => void
2488
- /**
2489
- * Subscribes to notification actions.
2490
- *
2491
- * @param listener - Called for every action.
2492
- * @returns A function that removes the listener.
2493
- */
2494
- onNotificationAction: (listener: NotificationActionListener) => () => void
2495
- /**
2496
- * Subscribes to token changes.
2497
- *
2498
- * @param listener - Called for every new token.
2499
- * @returns A function that removes the listener.
2500
- */
2501
- onTokenChange: (listener: TokenChangeListener) => () => void
2502
- /**
2503
- * Sets the badge count.
2504
- *
2505
- * @param count - The count to set.
2506
- * @returns Resolves once set.
2507
- */
2508
- setBadge: (count: number) => Promise<void>
2509
- /**
2510
- * Clears the badge count.
2511
- *
2512
- * @returns Resolves once cleared.
2513
- */
2514
- clearBadge: () => Promise<void>
2515
- }
2516
- ```
2517
-
2518
2409
  #### `UseOptimisticToggleOptions`
2519
2410
 
2520
2411
  Options for {@link useOptimisticToggle}.
@@ -3217,29 +3108,6 @@ interface PromiseStateManager<T, Args extends unknown[] = unknown[]> {
3217
3108
  }
3218
3109
  ```
3219
3110
 
3220
- #### `PushService`
3221
-
3222
- Push service interface.
3223
-
3224
- ```typescript
3225
- interface PushService {
3226
- permission$: Observable<PermissionStatus | null>
3227
- token$: Observable<PushToken | null>
3228
- getPermission: () => PermissionStatus | null
3229
- getToken: () => PushToken | null
3230
- checkPermission: () => Promise<PermissionStatus>
3231
- requestPermission: () => Promise<PermissionStatus>
3232
- register: (options?: PushRegisterOptions) => Promise<PushToken>
3233
- unregister: () => Promise<void>
3234
- onNotificationReceived: (listener: NotificationReceivedListener) => () => void
3235
- onNotificationAction: (listener: NotificationActionListener) => () => void
3236
- onTokenChange: (listener: TokenChangeListener) => () => void
3237
- setBadge: (count: number) => Promise<void>
3238
- clearBadge: () => Promise<void>
3239
- destroy: () => void
3240
- }
3241
- ```
3242
-
3243
3111
  #### `SignupStateManager`
3244
3112
 
3245
3113
  Signup state manager.
@@ -3380,44 +3248,6 @@ URL query string parameter map (single values or arrays for repeated keys).
3380
3248
  type QueryParams = Record<string, string | string[] | undefined>
3381
3249
  ```
3382
3250
 
3383
- #### `AgentIdentity`
3384
-
3385
- Display identity for the AI coding agent and the host product, used to
3386
- interpolate the `{{agentName}}` / `{{productName}}` tokens in shared chat/IDE
3387
- copy. A consuming app sets these to its own agent + product brand names; the
3388
- shared packages fall back to {@link DEFAULT_AGENT_IDENTITY} when it does not.
3389
-
3390
- ```typescript
3391
- type AgentIdentity = ChatAgentIdentity
3392
- ```
3393
-
3394
- #### `UseChatOptions`
3395
-
3396
- Options for {@link useChat} (the shared chat session's options).
3397
-
3398
- ```typescript
3399
- type UseChatOptions = ChatSessionOptions
3400
- ```
3401
-
3402
- #### `SendMessageOptions`
3403
-
3404
- Options for one `sendMessage` call.
3405
-
3406
- ```typescript
3407
- type SendMessageOptions = ChatSendOptions
3408
- ```
3409
-
3410
- #### `UseChatResult`
3411
-
3412
- What {@link useChat} returns: each chat state field as a signal, and the
3413
- session's controls as plain functions (stable for the component's life).
3414
-
3415
- ```typescript
3416
- type UseChatResult = {
3417
- readonly [K in keyof ChatSessionState]: Signal<ChatSessionState[K]>
3418
- } & ChatSessionControls
3419
- ```
3420
-
3421
3251
  #### `AsyncSetState`
3422
3252
 
3423
3253
  An async-capable setState function: a value, an updater receiving the
@@ -3469,9 +3299,7 @@ Two compatible call forms:
3469
3299
  English `defaultValue`, with optional `count` for pluralization.
3470
3300
 
3471
3301
  ```typescript
3472
- type UseTFunction = I18nProvider['t'] & {
3473
- (key: string, fallback: string, options?: UseTShorthandOptions): string
3474
- }
3302
+ type UseTFunction = TranslateFunctionWithFallback
3475
3303
  ```
3476
3304
 
3477
3305
  #### `VerifyPaymentReturnStatus`
@@ -3482,6 +3310,86 @@ How far the return-page verification has got.
3482
3310
  type VerifyPaymentReturnStatus = 'idle' | 'verifying' | 'verified' | 'failed'
3483
3311
  ```
3484
3312
 
3313
+ #### `UseAIModelsResult` _(deprecated)_
3314
+
3315
+ > **Deprecated:** Import UseAIModelsResult from `@molecule/app-angular/ai-models`.
3316
+
3317
+ Compatibility alias for `UseAIModelsResult`.
3318
+
3319
+ ```typescript
3320
+ type UseAIModelsResult = feature.UseAIModelsResult
3321
+ ```
3322
+
3323
+ #### `AgentIdentity` _(deprecated)_
3324
+
3325
+ > **Deprecated:** Import AgentIdentity from `@molecule/app-ai-chat`.
3326
+
3327
+ Compatibility alias for `AgentIdentity`.
3328
+
3329
+ ```typescript
3330
+ type AgentIdentity = feature.AgentIdentity
3331
+ ```
3332
+
3333
+ #### `SendMessageOptions` _(deprecated)_
3334
+
3335
+ > **Deprecated:** Import SendMessageOptions from `@molecule/app-angular/chat`.
3336
+
3337
+ Compatibility alias for `SendMessageOptions`.
3338
+
3339
+ ```typescript
3340
+ type SendMessageOptions = feature.SendMessageOptions
3341
+ ```
3342
+
3343
+ #### `UseChatOptions` _(deprecated)_
3344
+
3345
+ > **Deprecated:** Import UseChatOptions from `@molecule/app-angular/chat`.
3346
+
3347
+ Compatibility alias for `UseChatOptions`.
3348
+
3349
+ ```typescript
3350
+ type UseChatOptions = feature.UseChatOptions
3351
+ ```
3352
+
3353
+ #### `UseChatResult` _(deprecated)_
3354
+
3355
+ > **Deprecated:** Import UseChatResult from `@molecule/app-angular/chat`.
3356
+
3357
+ Compatibility alias for `UseChatResult`.
3358
+
3359
+ ```typescript
3360
+ type UseChatResult = feature.UseChatResult
3361
+ ```
3362
+
3363
+ #### `PushService` _(deprecated)_
3364
+
3365
+ > **Deprecated:** Import PushService from `@molecule/app-angular/push`.
3366
+
3367
+ Compatibility alias for `PushService`.
3368
+
3369
+ ```typescript
3370
+ type PushService = feature.PushService
3371
+ ```
3372
+
3373
+ #### `UsePushOptions` _(deprecated)_
3374
+
3375
+ > **Deprecated:** Import UsePushOptions from `@molecule/app-angular/push`.
3376
+
3377
+ Compatibility alias for `UsePushOptions`.
3378
+
3379
+ ```typescript
3380
+ type UsePushOptions = feature.UsePushOptions
3381
+ ```
3382
+
3383
+ #### `UsePushResult` _(deprecated)_
3384
+
3385
+ > **Deprecated:** Import UsePushResult from `@molecule/app-angular/push`.
3386
+
3387
+ Compatibility alias for `UsePushResult`.
3388
+
3389
+ ```typescript
3390
+ type UsePushResult = feature.UsePushResult
3391
+ ```
3392
+
3485
3393
  #### `MaybeSignal`
3486
3394
 
3487
3395
  A hook argument: the plain value, or a signal holding the value the hook
@@ -5128,35 +5036,6 @@ copy.view.destroy() else (copy.node as ChildNode).remove() } }
5128
5036
 
5129
5037
  ### Functions
5130
5038
 
5131
- #### `useChatProvider()`
5132
-
5133
- The chat provider registered by `provideMolecule({ chat })` or `provideChat`.
5134
- Call it in an injection context.
5135
-
5136
- ```typescript
5137
- function useChatProvider(): ChatProvider
5138
- ```
5139
-
5140
- **Returns:** The chat provider.
5141
-
5142
- #### `useChat(options)`
5143
-
5144
- AI chat with streaming: the transcript, loading and error state, mode, and
5145
- the controls (send, abort, queue edits, history). Call it in an injection
5146
- context (a component field initializer or constructor).
5147
-
5148
- The options may be a signal: a new `endpoint` switches conversation and a
5149
- new `projectId` moves to that project's transcript, on the same component,
5150
- the way React re-renders `useChat`.
5151
-
5152
- ```typescript
5153
- function useChat(options: UseChatOptions | Signal<UseChatOptions>): UseChatResult
5154
- ```
5155
-
5156
- - `options` — Chat options (or a signal of them): endpoint, project id, history loading, callbacks.
5157
-
5158
- **Returns:** Each state field as a signal, and the chat controls.
5159
-
5160
5039
  #### `setHostRoot(host, root, options)`
5161
5040
 
5162
5041
  Names the element that stands for the calling component's host: React's
@@ -5465,34 +5344,6 @@ function useExternalStore<T>(
5465
5344
 
5466
5345
  **Returns:** A signal of the store's current snapshot.
5467
5346
 
5468
- #### `resetAIModelsCache()`
5469
-
5470
- Test-only: drops every cached model list so the next {@link useAIModels}
5471
- call refetches. Exposed for unit tests; do not call from production code.
5472
-
5473
- ```typescript
5474
- function resetAIModelsCache(): void
5475
- ```
5476
-
5477
- #### `useAIModels(projectId)`
5478
-
5479
- Subscribes to the cached AI model catalog. The first mount of a scope
5480
- triggers a single `GET /ai/models` fetch; subsequent mounts return the
5481
- cached result. Call it in an injection context.
5482
-
5483
- The project id may be a signal: the hook then switches to that project's
5484
- scope on the same component — resubscribing, resyncing from the new scope's
5485
- cache and fetching it when it is not cached — the way React re-renders
5486
- `useAIModels` with a new `projectId`.
5487
-
5488
- ```typescript
5489
- function useAIModels(projectId?: MaybeSignal<string | undefined>): UseAIModelsResult
5490
- ```
5491
-
5492
- - `projectId` — Optional project scope: includes that project's custom ("bring your own AI") models on servers that support them (or a signal of it).
5493
-
5494
- **Returns:** Models, free-tier model, loading flag, and error as signals.
5495
-
5496
5347
  #### `usePromise(asyncFn)`
5497
5348
 
5498
5349
  Wraps an async function with the state of its latest call. Call it in an
@@ -6055,25 +5906,6 @@ function useCapacitorApp(options?: CapacitorAppOptions): UseCapacitorAppResult
6055
5906
 
6056
5907
  **Returns:** The current app state as signals and an `initialize` function.
6057
5908
 
6058
- #### `usePush(options)`
6059
-
6060
- Push notification state and actions. Call it in an injection context.
6061
-
6062
- Uses module-level `getProvider()` — push is a singleton, not
6063
- registration-provided.
6064
-
6065
- The options may be a signal: `checkOnMount` turning on through it checks the
6066
- permission once more (when it was off before), the way React re-renders
6067
- `usePush` with the new option.
6068
-
6069
- ```typescript
6070
- function usePush(options?: MaybeSignal<UsePushOptions>): UsePushResult
6071
- ```
6072
-
6073
- - `options` — Hook options (or a signal of them).
6074
-
6075
- **Returns:** The permission and token as signals and the action functions.
6076
-
6077
5909
  #### `useOptimisticToggle(options)`
6078
5910
 
6079
5911
  Owns the state and save ordering of a follow, favorite, star or subscription control
@@ -6657,7 +6489,11 @@ dependency, so template bindings that call this function will be
6657
6489
  re-evaluated when the locale changes.
6658
6490
 
6659
6491
  ```typescript
6660
- function t(key: string, values?: InterpolationValues, options?: TranslateOptions): string
6492
+ function t(
6493
+ key: string,
6494
+ values: InterpolationValues | undefined,
6495
+ options: TranslateOptions | undefined,
6496
+ ): string
6661
6497
  ```
6662
6498
 
6663
6499
  - `key` — Translation key
@@ -6877,18 +6713,6 @@ function provideLogger(provider: LoggerProvider): EnvironmentProviders
6877
6713
 
6878
6714
  **Returns:** Environment providers
6879
6715
 
6880
- #### `provideChat(provider)`
6881
-
6882
- Registers the AI chat provider useChat and useChatProvider use.
6883
-
6884
- ```typescript
6885
- function provideChat(provider: ChatProvider): EnvironmentProviders
6886
- ```
6887
-
6888
- - `provider` — Chat provider
6889
-
6890
- **Returns:** Environment providers
6891
-
6892
6716
  #### `provideWorkspace(provider)`
6893
6717
 
6894
6718
  Registers the IDE workspace provider useWorkspace and useWorkspaceProvider use.
@@ -7056,16 +6880,6 @@ function createPromiseState<Args extends unknown[], T>(
7056
6880
 
7057
6881
  **Returns:** Promise state manager with observable state
7058
6882
 
7059
- #### `createPushService()`
7060
-
7061
- Creates an Angular push notifications service with reactive state.
7062
-
7063
- ```typescript
7064
- function createPushService(): PushService
7065
- ```
7066
-
7067
- **Returns:** Push service with observables and action methods
7068
-
7069
6883
  #### `createSignupState(client)`
7070
6884
 
7071
6885
  Creates a signup state manager with async state tracking.
@@ -7090,67 +6904,144 @@ function createVersionService(): VersionService
7090
6904
 
7091
6905
  ### Constants
7092
6906
 
7093
- #### `DEFAULT_AGENT_NAME`
6907
+ #### `resetAIModelsCache` _(deprecated)_
6908
+
6909
+ > **Deprecated:** Import resetAIModelsCache from `@molecule/app-angular/ai-models`.
6910
+
6911
+ Compatibility alias for `resetAIModelsCache`.
6912
+
6913
+ ```typescript
6914
+ const resetAIModelsCache: typeof feature.resetAIModelsCache
6915
+ ```
6916
+
6917
+ #### `useAIModels` _(deprecated)_
6918
+
6919
+ > **Deprecated:** Import useAIModels from `@molecule/app-angular/ai-models`.
6920
+
6921
+ Compatibility alias for `useAIModels`.
6922
+
6923
+ ```typescript
6924
+ const useAIModels: typeof feature.useAIModels
6925
+ ```
6926
+
6927
+ #### `CHAT_PROVIDER` _(deprecated)_
7094
6928
 
7095
- Neutral, product-agnostic agent name used when the host supplies none.
6929
+ > **Deprecated:** Import CHAT_PROVIDER from `@molecule/app-angular/chat`.
6930
+
6931
+ Compatibility alias for `CHAT_PROVIDER`.
7096
6932
 
7097
6933
  ```typescript
7098
- const DEFAULT_AGENT_NAME: typeof CHAT_DEFAULT_AGENT_NAME
6934
+ const CHAT_PROVIDER: typeof feature.CHAT_PROVIDER
7099
6935
  ```
7100
6936
 
7101
- #### `DEFAULT_PRODUCT_NAME`
6937
+ #### `DEFAULT_AGENT_IDENTITY` _(deprecated)_
6938
+
6939
+ > **Deprecated:** Import DEFAULT_AGENT_IDENTITY from `@molecule/app-ai-chat`.
7102
6940
 
7103
- Neutral, product-agnostic product/IDE name used when the host supplies none.
6941
+ Compatibility alias for `DEFAULT_AGENT_IDENTITY`.
7104
6942
 
7105
6943
  ```typescript
7106
- const DEFAULT_PRODUCT_NAME: typeof CHAT_DEFAULT_PRODUCT_NAME
6944
+ const DEFAULT_AGENT_IDENTITY: typeof feature.DEFAULT_AGENT_IDENTITY
7107
6945
  ```
7108
6946
 
7109
- #### `DEFAULT_AGENT_IDENTITY`
6947
+ #### `DEFAULT_AGENT_NAME` _(deprecated)_
7110
6948
 
7111
- The neutral default identity ({@link DEFAULT_AGENT_NAME} +
7112
- {@link DEFAULT_PRODUCT_NAME}) the shared packages use until a consuming app
7113
- passes its own.
6949
+ > **Deprecated:** Import DEFAULT_AGENT_NAME from `@molecule/app-ai-chat`.
6950
+
6951
+ Compatibility alias for `DEFAULT_AGENT_NAME`.
7114
6952
 
7115
6953
  ```typescript
7116
- const DEFAULT_AGENT_IDENTITY: AgentIdentity
6954
+ const DEFAULT_AGENT_NAME: typeof feature.DEFAULT_AGENT_NAME
7117
6955
  ```
7118
6956
 
7119
- #### `convergeHistory`
6957
+ #### `DEFAULT_PRODUCT_NAME` _(deprecated)_
6958
+
6959
+ > **Deprecated:** Import DEFAULT_PRODUCT_NAME from `@molecule/app-ai-chat`.
7120
6960
 
7121
- Converges the local transcript with authoritative server history. See
7122
- `convergeHistory` in `@molecule/app-ai-chat`.
6961
+ Compatibility alias for `DEFAULT_PRODUCT_NAME`.
7123
6962
 
7124
6963
  ```typescript
7125
- const convergeHistory: typeof coreConvergeHistory
6964
+ const DEFAULT_PRODUCT_NAME: typeof feature.DEFAULT_PRODUCT_NAME
7126
6965
  ```
7127
6966
 
7128
- - `prev` — The local transcript.
7129
- - `history` — The server's history.
6967
+ #### `convergeHistory` _(deprecated)_
7130
6968
 
7131
- **Returns:** The converged transcript.
6969
+ > **Deprecated:** Import convergeHistory from `@molecule/app-angular/chat`.
6970
+
6971
+ Compatibility alias for `convergeHistory`.
6972
+
6973
+ ```typescript
6974
+ const convergeHistory: typeof feature.convergeHistory
6975
+ ```
7132
6976
 
7133
- #### `localOnlyMessages`
6977
+ #### `localOnlyMessages` _(deprecated)_
7134
6978
 
7135
- The local messages server history does not carry yet. See
7136
- `localOnlyMessages` in `@molecule/app-ai-chat`.
6979
+ > **Deprecated:** Import localOnlyMessages from `@molecule/app-angular/chat`.
6980
+
6981
+ Compatibility alias for `localOnlyMessages`.
7137
6982
 
7138
6983
  ```typescript
7139
- const localOnlyMessages: typeof coreLocalOnlyMessages
6984
+ const localOnlyMessages: typeof feature.localOnlyMessages
7140
6985
  ```
7141
6986
 
7142
- - `prev` — The local transcript.
7143
- - `history` — The server's history.
6987
+ #### `provideChat` _(deprecated)_
6988
+
6989
+ > **Deprecated:** Import provideChat from `@molecule/app-angular/chat`.
7144
6990
 
7145
- **Returns:** The local-only messages.
6991
+ Compatibility alias for `provideChat`.
7146
6992
 
7147
- #### `resetChatStoresForTests`
6993
+ ```typescript
6994
+ const provideChat: typeof feature.provideChat
6995
+ ```
7148
6996
 
7149
- Clears every chat session store. Tests only: each test starts with no
7150
- transcript, queue or stream left by the previous one.
6997
+ #### `resetChatStoresForTests` _(deprecated)_
6998
+
6999
+ > **Deprecated:** Import resetChatStoresForTests from `@molecule/app-angular/chat`.
7000
+
7001
+ Compatibility alias for `resetChatStoresForTests`.
7151
7002
 
7152
7003
  ```typescript
7153
- const resetChatStoresForTests: typeof coreResetChatStoresForTests
7004
+ const resetChatStoresForTests: typeof feature.resetChatStoresForTests
7005
+ ```
7006
+
7007
+ #### `useChat` _(deprecated)_
7008
+
7009
+ > **Deprecated:** Import useChat from `@molecule/app-angular/chat`.
7010
+
7011
+ Compatibility alias for `useChat`.
7012
+
7013
+ ```typescript
7014
+ const useChat: typeof feature.useChat
7015
+ ```
7016
+
7017
+ #### `useChatProvider` _(deprecated)_
7018
+
7019
+ > **Deprecated:** Import useChatProvider from `@molecule/app-angular/chat`.
7020
+
7021
+ Compatibility alias for `useChatProvider`.
7022
+
7023
+ ```typescript
7024
+ const useChatProvider: typeof feature.useChatProvider
7025
+ ```
7026
+
7027
+ #### `createPushService` _(deprecated)_
7028
+
7029
+ > **Deprecated:** Import createPushService from `@molecule/app-angular/push`.
7030
+
7031
+ Compatibility alias for `createPushService`.
7032
+
7033
+ ```typescript
7034
+ const createPushService: typeof feature.createPushService
7035
+ ```
7036
+
7037
+ #### `usePush` _(deprecated)_
7038
+
7039
+ > **Deprecated:** Import usePush from `@molecule/app-angular/push`.
7040
+
7041
+ Compatibility alias for `usePush`.
7042
+
7043
+ ```typescript
7044
+ const usePush: typeof feature.usePush
7154
7045
  ```
7155
7046
 
7156
7047
  #### `STATE_PROVIDER`
@@ -7217,14 +7108,6 @@ Injection token for logger provider.
7217
7108
  const LOGGER_PROVIDER: InjectionToken<LoggerProvider>
7218
7109
  ```
7219
7110
 
7220
- #### `CHAT_PROVIDER`
7221
-
7222
- Injection token for the AI chat provider.
7223
-
7224
- ```typescript
7225
- const CHAT_PROVIDER: InjectionToken<ChatProvider>
7226
- ```
7227
-
7228
7111
  #### `WORKSPACE_PROVIDER`
7229
7112
 
7230
7113
  Injection token for the IDE workspace provider.
@@ -7263,7 +7146,7 @@ Peer dependencies:
7263
7146
  - `@molecule/app-device` ^1.0.1
7264
7147
  - `@molecule/app-forms` ^2.4.0
7265
7148
  - `@molecule/app-http` ^1.0.1
7266
- - `@molecule/app-i18n` ^1.3.0
7149
+ - `@molecule/app-i18n` ^1.4.0
7267
7150
  - `@molecule/app-ide` ^1.1.0 _(optional)_
7268
7151
  - `@molecule/app-live-preview` ^1.0.1 _(optional)_
7269
7152
  - `@molecule/app-logger` ^1.0.1
@@ -7331,6 +7214,10 @@ Peer dependencies:
7331
7214
  `<a href>` reloads the page; a hand-written `(click)` handler that calls `navigate()`
7332
7215
  breaks ctrl/cmd-click (new tab) unless it repeats those rules.
7333
7216
 
7217
+ Use `@molecule/app-angular/chat`, `@molecule/app-angular/ai-models`, and
7218
+ `@molecule/app-angular/push` for those features. The corresponding exports at the
7219
+ package root are deprecated.
7220
+
7334
7221
  ## Translations
7335
7222
 
7336
7223
  Translation strings are provided by `@molecule/app-locales-angular`.
@@ -0,0 +1,2 @@
1
+ export * from './hooks/use-ai-models.js';
2
+ //# sourceMappingURL=ai-models.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ai-models.d.ts","sourceRoot":"","sources":["../src/ai-models.ts"],"names":[],"mappings":"AAAA,cAAc,0BAA0B,CAAA"}
@@ -0,0 +1,2 @@
1
+ export * from './hooks/use-ai-models.js';
2
+ //# sourceMappingURL=ai-models.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ai-models.js","sourceRoot":"","sources":["../src/ai-models.ts"],"names":[],"mappings":"AAAA,cAAc,0BAA0B,CAAA"}
@@ -0,0 +1,5 @@
1
+ export * from '../agent-identity.js';
2
+ export * from '../chat.js';
3
+ export * from '../chat-context.js';
4
+ export * from '../chat-provider.js';
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/chat/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAA;AACpC,cAAc,YAAY,CAAA;AAC1B,cAAc,oBAAoB,CAAA;AAClC,cAAc,qBAAqB,CAAA"}
@@ -0,0 +1,5 @@
1
+ export * from '../agent-identity.js';
2
+ export * from '../chat.js';
3
+ export * from '../chat-context.js';
4
+ export * from '../chat-provider.js';
5
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/chat/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAA;AACpC,cAAc,YAAY,CAAA;AAC1B,cAAc,oBAAoB,CAAA;AAClC,cAAc,qBAAqB,CAAA"}