@molecule/app-svelte 3.18.0 → 4.0.1
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.
- package/README.md +20 -243
- package/dist/chat-context.d.ts +1 -1
- package/dist/chat-context.js +1 -1
- package/dist/context.d.ts +1 -1
- package/dist/context.d.ts.map +1 -1
- package/dist/context.js +1 -4
- package/dist/hooks/useAIModels.d.ts +1 -1
- package/dist/hooks/useAIModels.js +1 -1
- package/dist/hooks/usePush.d.ts +1 -1
- package/dist/hooks/usePush.js +1 -1
- package/dist/index.d.ts +1 -5
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -5
- package/dist/providers/ChatProvider.svelte +3 -3
- package/dist/providers/ChatScope.svelte +13 -0
- package/dist/providers/ChatScope.svelte.d.ts +5 -0
- package/dist/providers/ChatScope.svelte.d.ts.map +1 -0
- package/dist/providers/MoleculeProvider.svelte +0 -2
- package/dist/providers/MoleculeProvider.svelte.d.ts.map +1 -1
- package/dist/providers/services.d.ts.map +1 -1
- package/dist/providers/services.js +0 -4
- package/dist/stores/chat.d.ts +1 -1
- package/dist/stores/chat.js +1 -1
- package/dist/stores/push.d.ts +1 -1
- package/dist/stores/push.js +1 -1
- package/dist/types.d.ts +0 -3
- package/dist/types.d.ts.map +1 -1
- package/package.json +27 -2
- package/dist/legacy-ai-models.d.ts +0 -17
- package/dist/legacy-ai-models.d.ts.map +0 -1
- package/dist/legacy-ai-models.js +0 -11
- package/dist/legacy-chat.d.ts +0 -77
- package/dist/legacy-chat.d.ts.map +0 -1
- package/dist/legacy-chat.js +0 -51
- package/dist/legacy-push.d.ts +0 -22
- package/dist/legacy-push.d.ts.map +0 -1
- package/dist/legacy-push.js +0 -11
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-
|
|
6
|
+
Generated: 2026-12-01T11:25:42.389Z
|
|
7
7
|
-->
|
|
8
8
|
|
|
9
9
|
# @molecule/app-svelte
|
|
@@ -157,7 +157,7 @@ signs the user out.
|
|
|
157
157
|
## Installation
|
|
158
158
|
|
|
159
159
|
```bash
|
|
160
|
-
npm install @molecule/app-svelte @molecule/app-
|
|
160
|
+
npm install @molecule/app-svelte @molecule/app-device @molecule/app-forms @molecule/app-i18n @molecule/app-logger @molecule/app-platform @molecule/app-routing @molecule/app-state @molecule/app-storage @molecule/app-version svelte
|
|
161
161
|
```
|
|
162
162
|
|
|
163
163
|
## API
|
|
@@ -2272,8 +2272,6 @@ interface MoleculeConfig {
|
|
|
2272
2272
|
http?: HttpClient
|
|
2273
2273
|
storage?: StorageProvider
|
|
2274
2274
|
logger?: LoggerProvider
|
|
2275
|
-
/** The AI chat provider useChat and useChatProvider use. */
|
|
2276
|
-
chat?: ChatProvider
|
|
2277
2275
|
/** The IDE workspace provider useWorkspace and useWorkspaceProvider use. */
|
|
2278
2276
|
workspace?: WorkspaceProvider
|
|
2279
2277
|
/** The code editor provider useEditor and useEditorProvider use. */
|
|
@@ -2659,86 +2657,6 @@ How far the return-page verification has got.
|
|
|
2659
2657
|
type VerifyPaymentReturnStatus = 'idle' | 'verifying' | 'verified' | 'failed'
|
|
2660
2658
|
```
|
|
2661
2659
|
|
|
2662
|
-
#### `UseAIModelsResult` _(deprecated)_
|
|
2663
|
-
|
|
2664
|
-
> **Deprecated:** Import UseAIModelsResult from `@molecule/app-svelte/ai-models`.
|
|
2665
|
-
|
|
2666
|
-
Compatibility alias for `UseAIModelsResult`.
|
|
2667
|
-
|
|
2668
|
-
```typescript
|
|
2669
|
-
type UseAIModelsResult = feature.UseAIModelsResult
|
|
2670
|
-
```
|
|
2671
|
-
|
|
2672
|
-
#### `AgentIdentity` _(deprecated)_
|
|
2673
|
-
|
|
2674
|
-
> **Deprecated:** Import AgentIdentity from `@molecule/app-ai-chat`.
|
|
2675
|
-
|
|
2676
|
-
Compatibility alias for `AgentIdentity`.
|
|
2677
|
-
|
|
2678
|
-
```typescript
|
|
2679
|
-
type AgentIdentity = feature.AgentIdentity
|
|
2680
|
-
```
|
|
2681
|
-
|
|
2682
|
-
#### `ChatProviderProps` _(deprecated)_
|
|
2683
|
-
|
|
2684
|
-
> **Deprecated:** Import ChatProviderProps from `@molecule/app-svelte/chat`.
|
|
2685
|
-
|
|
2686
|
-
Compatibility alias for `ChatProviderProps`.
|
|
2687
|
-
|
|
2688
|
-
```typescript
|
|
2689
|
-
type ChatProviderProps = feature.ChatProviderProps
|
|
2690
|
-
```
|
|
2691
|
-
|
|
2692
|
-
#### `SendMessageOptions` _(deprecated)_
|
|
2693
|
-
|
|
2694
|
-
> **Deprecated:** Import SendMessageOptions from `@molecule/app-svelte/chat`.
|
|
2695
|
-
|
|
2696
|
-
Compatibility alias for `SendMessageOptions`.
|
|
2697
|
-
|
|
2698
|
-
```typescript
|
|
2699
|
-
type SendMessageOptions = feature.SendMessageOptions
|
|
2700
|
-
```
|
|
2701
|
-
|
|
2702
|
-
#### `UseChatOptions` _(deprecated)_
|
|
2703
|
-
|
|
2704
|
-
> **Deprecated:** Import UseChatOptions from `@molecule/app-svelte/chat`.
|
|
2705
|
-
|
|
2706
|
-
Compatibility alias for `UseChatOptions`.
|
|
2707
|
-
|
|
2708
|
-
```typescript
|
|
2709
|
-
type UseChatOptions = feature.UseChatOptions
|
|
2710
|
-
```
|
|
2711
|
-
|
|
2712
|
-
#### `UseChatResult` _(deprecated)_
|
|
2713
|
-
|
|
2714
|
-
> **Deprecated:** Import UseChatResult from `@molecule/app-svelte/chat`.
|
|
2715
|
-
|
|
2716
|
-
Compatibility alias for `UseChatResult`.
|
|
2717
|
-
|
|
2718
|
-
```typescript
|
|
2719
|
-
type UseChatResult = feature.UseChatResult
|
|
2720
|
-
```
|
|
2721
|
-
|
|
2722
|
-
#### `UsePushOptions` _(deprecated)_
|
|
2723
|
-
|
|
2724
|
-
> **Deprecated:** Import UsePushOptions from `@molecule/app-svelte/push`.
|
|
2725
|
-
|
|
2726
|
-
Compatibility alias for `UsePushOptions`.
|
|
2727
|
-
|
|
2728
|
-
```typescript
|
|
2729
|
-
type UsePushOptions = feature.UsePushOptions
|
|
2730
|
-
```
|
|
2731
|
-
|
|
2732
|
-
#### `UsePushResult` _(deprecated)_
|
|
2733
|
-
|
|
2734
|
-
> **Deprecated:** Import UsePushResult from `@molecule/app-svelte/push`.
|
|
2735
|
-
|
|
2736
|
-
Compatibility alias for `UsePushResult`.
|
|
2737
|
-
|
|
2738
|
-
```typescript
|
|
2739
|
-
type UsePushResult = feature.UsePushResult
|
|
2740
|
-
```
|
|
2741
|
-
|
|
2742
2660
|
#### `CapacitorAppStore`
|
|
2743
2661
|
|
|
2744
2662
|
Return type for the Capacitor app store.
|
|
@@ -2832,7 +2750,7 @@ until the session is decided, render `MoleculeProvider` (its `awaitSession`) or
|
|
|
2832
2750
|
function setMoleculeContext(config: MoleculeConfig): void
|
|
2833
2751
|
```
|
|
2834
2752
|
|
|
2835
|
-
- `config` — Provider instances to register (state, auth, theme, router, i18n, http, storage, logger,
|
|
2753
|
+
- `config` — Provider instances to register (state, auth, theme, router, i18n, http, storage, logger, workspace, editor, preview).
|
|
2836
2754
|
|
|
2837
2755
|
#### `setStateContext(provider)`
|
|
2838
2756
|
|
|
@@ -4869,146 +4787,6 @@ const RoutedView: LegacyComponentType
|
|
|
4869
4787
|
const SessionReady: LegacyComponentType
|
|
4870
4788
|
```
|
|
4871
4789
|
|
|
4872
|
-
#### `resetAIModelsCache` _(deprecated)_
|
|
4873
|
-
|
|
4874
|
-
> **Deprecated:** Import resetAIModelsCache from `@molecule/app-svelte/ai-models`.
|
|
4875
|
-
|
|
4876
|
-
Compatibility alias for `resetAIModelsCache`.
|
|
4877
|
-
|
|
4878
|
-
```typescript
|
|
4879
|
-
const resetAIModelsCache: typeof feature.resetAIModelsCache
|
|
4880
|
-
```
|
|
4881
|
-
|
|
4882
|
-
#### `useAIModels` _(deprecated)_
|
|
4883
|
-
|
|
4884
|
-
> **Deprecated:** Import useAIModels from `@molecule/app-svelte/ai-models`.
|
|
4885
|
-
|
|
4886
|
-
Compatibility alias for `useAIModels`.
|
|
4887
|
-
|
|
4888
|
-
```typescript
|
|
4889
|
-
const useAIModels: typeof feature.useAIModels
|
|
4890
|
-
```
|
|
4891
|
-
|
|
4892
|
-
#### `ChatProvider` _(deprecated)_
|
|
4893
|
-
|
|
4894
|
-
> **Deprecated:** Import ChatProvider from `@molecule/app-svelte/chat`.
|
|
4895
|
-
|
|
4896
|
-
Compatibility alias for `ChatProvider`.
|
|
4897
|
-
|
|
4898
|
-
```typescript
|
|
4899
|
-
const ChatProvider: typeof feature.ChatProvider
|
|
4900
|
-
```
|
|
4901
|
-
|
|
4902
|
-
#### `DEFAULT_AGENT_IDENTITY` _(deprecated)_
|
|
4903
|
-
|
|
4904
|
-
> **Deprecated:** Import DEFAULT_AGENT_IDENTITY from `@molecule/app-ai-chat`.
|
|
4905
|
-
|
|
4906
|
-
Compatibility alias for `DEFAULT_AGENT_IDENTITY`.
|
|
4907
|
-
|
|
4908
|
-
```typescript
|
|
4909
|
-
const DEFAULT_AGENT_IDENTITY: typeof feature.DEFAULT_AGENT_IDENTITY
|
|
4910
|
-
```
|
|
4911
|
-
|
|
4912
|
-
#### `DEFAULT_AGENT_NAME` _(deprecated)_
|
|
4913
|
-
|
|
4914
|
-
> **Deprecated:** Import DEFAULT_AGENT_NAME from `@molecule/app-ai-chat`.
|
|
4915
|
-
|
|
4916
|
-
Compatibility alias for `DEFAULT_AGENT_NAME`.
|
|
4917
|
-
|
|
4918
|
-
```typescript
|
|
4919
|
-
const DEFAULT_AGENT_NAME: typeof feature.DEFAULT_AGENT_NAME
|
|
4920
|
-
```
|
|
4921
|
-
|
|
4922
|
-
#### `DEFAULT_PRODUCT_NAME` _(deprecated)_
|
|
4923
|
-
|
|
4924
|
-
> **Deprecated:** Import DEFAULT_PRODUCT_NAME from `@molecule/app-ai-chat`.
|
|
4925
|
-
|
|
4926
|
-
Compatibility alias for `DEFAULT_PRODUCT_NAME`.
|
|
4927
|
-
|
|
4928
|
-
```typescript
|
|
4929
|
-
const DEFAULT_PRODUCT_NAME: typeof feature.DEFAULT_PRODUCT_NAME
|
|
4930
|
-
```
|
|
4931
|
-
|
|
4932
|
-
#### `convergeHistory` _(deprecated)_
|
|
4933
|
-
|
|
4934
|
-
> **Deprecated:** Import convergeHistory from `@molecule/app-svelte/chat`.
|
|
4935
|
-
|
|
4936
|
-
Compatibility alias for `convergeHistory`.
|
|
4937
|
-
|
|
4938
|
-
```typescript
|
|
4939
|
-
const convergeHistory: typeof feature.convergeHistory
|
|
4940
|
-
```
|
|
4941
|
-
|
|
4942
|
-
#### `localOnlyMessages` _(deprecated)_
|
|
4943
|
-
|
|
4944
|
-
> **Deprecated:** Import localOnlyMessages from `@molecule/app-svelte/chat`.
|
|
4945
|
-
|
|
4946
|
-
Compatibility alias for `localOnlyMessages`.
|
|
4947
|
-
|
|
4948
|
-
```typescript
|
|
4949
|
-
const localOnlyMessages: typeof feature.localOnlyMessages
|
|
4950
|
-
```
|
|
4951
|
-
|
|
4952
|
-
#### `resetChatStoresForTests` _(deprecated)_
|
|
4953
|
-
|
|
4954
|
-
> **Deprecated:** Import resetChatStoresForTests from `@molecule/app-svelte/chat`.
|
|
4955
|
-
|
|
4956
|
-
Compatibility alias for `resetChatStoresForTests`.
|
|
4957
|
-
|
|
4958
|
-
```typescript
|
|
4959
|
-
const resetChatStoresForTests: typeof feature.resetChatStoresForTests
|
|
4960
|
-
```
|
|
4961
|
-
|
|
4962
|
-
#### `setChatContext` _(deprecated)_
|
|
4963
|
-
|
|
4964
|
-
> **Deprecated:** Import setChatContext from `@molecule/app-svelte/chat`.
|
|
4965
|
-
|
|
4966
|
-
Compatibility alias for `setChatContext`.
|
|
4967
|
-
|
|
4968
|
-
```typescript
|
|
4969
|
-
const setChatContext: typeof feature.setChatContext
|
|
4970
|
-
```
|
|
4971
|
-
|
|
4972
|
-
#### `useChat` _(deprecated)_
|
|
4973
|
-
|
|
4974
|
-
> **Deprecated:** Import useChat from `@molecule/app-svelte/chat`.
|
|
4975
|
-
|
|
4976
|
-
Compatibility alias for `useChat`.
|
|
4977
|
-
|
|
4978
|
-
```typescript
|
|
4979
|
-
const useChat: typeof feature.useChat
|
|
4980
|
-
```
|
|
4981
|
-
|
|
4982
|
-
#### `useChatProvider` _(deprecated)_
|
|
4983
|
-
|
|
4984
|
-
> **Deprecated:** Import useChatProvider from `@molecule/app-svelte/chat`.
|
|
4985
|
-
|
|
4986
|
-
Compatibility alias for `useChatProvider`.
|
|
4987
|
-
|
|
4988
|
-
```typescript
|
|
4989
|
-
const useChatProvider: typeof feature.useChatProvider
|
|
4990
|
-
```
|
|
4991
|
-
|
|
4992
|
-
#### `createPushStores` _(deprecated)_
|
|
4993
|
-
|
|
4994
|
-
> **Deprecated:** Import createPushStores from `@molecule/app-svelte/push`.
|
|
4995
|
-
|
|
4996
|
-
Compatibility alias for `createPushStores`.
|
|
4997
|
-
|
|
4998
|
-
```typescript
|
|
4999
|
-
const createPushStores: typeof feature.createPushStores
|
|
5000
|
-
```
|
|
5001
|
-
|
|
5002
|
-
#### `usePush` _(deprecated)_
|
|
5003
|
-
|
|
5004
|
-
> **Deprecated:** Import usePush from `@molecule/app-svelte/push`.
|
|
5005
|
-
|
|
5006
|
-
Compatibility alias for `usePush`.
|
|
5007
|
-
|
|
5008
|
-
```typescript
|
|
5009
|
-
const usePush: typeof feature.usePush
|
|
5010
|
-
```
|
|
5011
|
-
|
|
5012
4790
|
#### `MoleculeProvider`
|
|
5013
4791
|
|
|
5014
4792
|
Combined provider for every molecule service, as `@molecule/app-react`'s `MoleculeProvider`.
|
|
@@ -5119,51 +4897,51 @@ const PreviewProvider: LegacyComponentType
|
|
|
5119
4897
|
|
|
5120
4898
|
Peer dependencies:
|
|
5121
4899
|
|
|
5122
|
-
- `@molecule/app-ai-chat` ^1.8.0
|
|
5123
|
-
- `@molecule/app-ai-models` ^1.0.1
|
|
5124
|
-
- `@molecule/app-auth` ^3.0.0
|
|
4900
|
+
- `@molecule/app-ai-chat` ^1.8.0 _(optional)_
|
|
4901
|
+
- `@molecule/app-ai-models` ^1.0.1 _(optional)_
|
|
4902
|
+
- `@molecule/app-auth` ^3.0.0 _(optional)_
|
|
5125
4903
|
- `@molecule/app-code-editor` ^1.0.1 _(optional)_
|
|
5126
4904
|
- `@molecule/app-device` ^1.0.1
|
|
5127
4905
|
- `@molecule/app-forms` ^2.4.0
|
|
5128
|
-
- `@molecule/app-http` ^1.0.1
|
|
4906
|
+
- `@molecule/app-http` ^1.0.1 _(optional)_
|
|
5129
4907
|
- `@molecule/app-i18n` ^1.4.0
|
|
5130
4908
|
- `@molecule/app-ide` ^1.1.0 _(optional)_
|
|
5131
4909
|
- `@molecule/app-live-preview` ^1.0.1 _(optional)_
|
|
5132
4910
|
- `@molecule/app-logger` ^1.0.1
|
|
5133
4911
|
- `@molecule/app-platform` ^1.0.1
|
|
5134
|
-
- `@molecule/app-push` ^1.0.1
|
|
4912
|
+
- `@molecule/app-push` ^1.0.1 _(optional)_
|
|
5135
4913
|
- `@molecule/app-routing` ^1.4.0
|
|
5136
4914
|
- `@molecule/app-routing-sveltekit` >=3.0.0 _(optional)_
|
|
5137
4915
|
- `@molecule/app-state` ^1.2.0
|
|
5138
4916
|
- `@molecule/app-storage` ^1.1.1
|
|
5139
|
-
- `@molecule/app-theme` ^1.0.2
|
|
5140
|
-
- `@molecule/app-ui` ^1.0.1
|
|
5141
|
-
- `@molecule/app-utilities` ^1.0.1
|
|
4917
|
+
- `@molecule/app-theme` ^1.0.2 _(optional)_
|
|
4918
|
+
- `@molecule/app-ui` ^1.0.1 _(optional)_
|
|
4919
|
+
- `@molecule/app-utilities` ^1.0.1 _(optional)_
|
|
5142
4920
|
- `@molecule/app-version` ^1.0.1
|
|
5143
4921
|
- `svelte` ^5.43.15
|
|
5144
4922
|
|
|
5145
4923
|
### Runtime Dependencies
|
|
5146
4924
|
|
|
5147
|
-
- `@molecule/app-ai-chat`
|
|
5148
|
-
- `@molecule/app-ai-models`
|
|
5149
|
-
- `@molecule/app-auth`
|
|
4925
|
+
- `@molecule/app-ai-chat` _(optional)_
|
|
4926
|
+
- `@molecule/app-ai-models` _(optional)_
|
|
4927
|
+
- `@molecule/app-auth` _(optional)_
|
|
5150
4928
|
- `@molecule/app-code-editor` _(optional)_
|
|
5151
4929
|
- `@molecule/app-device`
|
|
5152
4930
|
- `@molecule/app-forms`
|
|
5153
|
-
- `@molecule/app-http`
|
|
4931
|
+
- `@molecule/app-http` _(optional)_
|
|
5154
4932
|
- `@molecule/app-i18n`
|
|
5155
4933
|
- `@molecule/app-ide` _(optional)_
|
|
5156
4934
|
- `@molecule/app-live-preview` _(optional)_
|
|
5157
4935
|
- `@molecule/app-logger`
|
|
5158
4936
|
- `@molecule/app-platform`
|
|
5159
|
-
- `@molecule/app-push`
|
|
4937
|
+
- `@molecule/app-push` _(optional)_
|
|
5160
4938
|
- `@molecule/app-routing`
|
|
5161
4939
|
- `@molecule/app-routing-sveltekit` _(optional)_
|
|
5162
4940
|
- `@molecule/app-state`
|
|
5163
4941
|
- `@molecule/app-storage`
|
|
5164
|
-
- `@molecule/app-theme`
|
|
5165
|
-
- `@molecule/app-ui`
|
|
5166
|
-
- `@molecule/app-utilities`
|
|
4942
|
+
- `@molecule/app-theme` _(optional)_
|
|
4943
|
+
- `@molecule/app-ui` _(optional)_
|
|
4944
|
+
- `@molecule/app-utilities` _(optional)_
|
|
5167
4945
|
- `@molecule/app-version`
|
|
5168
4946
|
- `svelte`
|
|
5169
4947
|
|
|
@@ -5185,8 +4963,7 @@ Peer dependencies:
|
|
|
5185
4963
|
nothing until a target exists.
|
|
5186
4964
|
|
|
5187
4965
|
Use `@molecule/app-svelte/chat`, `@molecule/app-svelte/ai-models`, and
|
|
5188
|
-
`@molecule/app-svelte/push` for those features.
|
|
5189
|
-
package root are deprecated.
|
|
4966
|
+
`@molecule/app-svelte/push` for those features.
|
|
5190
4967
|
|
|
5191
4968
|
## Translations
|
|
5192
4969
|
|
package/dist/chat-context.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ import type { ChatProvider } from '@molecule/app-ai-chat';
|
|
|
5
5
|
*/
|
|
6
6
|
export declare function setChatContext(provider: ChatProvider): void;
|
|
7
7
|
/**
|
|
8
|
-
* Gets the AI chat provider from Svelte context
|
|
8
|
+
* Gets the AI chat provider from Svelte context.
|
|
9
9
|
* @returns The chat provider instance.
|
|
10
10
|
* @throws {Error} If no chat provider has been set in context.
|
|
11
11
|
*/
|
package/dist/chat-context.js
CHANGED
|
@@ -9,7 +9,7 @@ export function setChatContext(provider) {
|
|
|
9
9
|
setContext(CHAT_KEY, provider);
|
|
10
10
|
}
|
|
11
11
|
/**
|
|
12
|
-
* Gets the AI chat provider from Svelte context
|
|
12
|
+
* Gets the AI chat provider from Svelte context.
|
|
13
13
|
* @returns The chat provider instance.
|
|
14
14
|
* @throws {Error} If no chat provider has been set in context.
|
|
15
15
|
*/
|
package/dist/context.d.ts
CHANGED
|
@@ -42,7 +42,7 @@ import type { MoleculeConfig } from './types.js';
|
|
|
42
42
|
*
|
|
43
43
|
* <slot />
|
|
44
44
|
* ```
|
|
45
|
-
* @param config - Provider instances to register (state, auth, theme, router, i18n, http, storage, logger,
|
|
45
|
+
* @param config - Provider instances to register (state, auth, theme, router, i18n, http, storage, logger, workspace, editor, preview).
|
|
46
46
|
*/
|
|
47
47
|
export declare function setMoleculeContext(config: MoleculeConfig): void;
|
|
48
48
|
/**
|
package/dist/context.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../src/context.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,SAAS,EA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ED;;;;;;;;GAQG;AACH,wBAAgB,eAAe,IAAI,YAAY,CAE9C;AAED;;;;GAIG;AACH,wBAAgB,gBAAgB,IAAI,aAAa,CAShD;AAsBD;;;;;GAKG;AACH,wBAAgB,iBAAiB,IAAI,MAAM,CAE1C;AAeD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoCG;AACH,wBAAgB,aAAa,CAAC,IAAI,EAAE,aAAa,CAAC,MAAM,CAAC,GAAG,QAAQ,CAAC,MAAM,GAAG,IAAI,CAAC,CAAA;AACnF;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,aAAa,IAAI,CAAC,EAAE,EAAE,MAAM,KAAK,MAAM,GAAG,IAAI,CAAA;AAc9D;;;;GAIG;AACH,wBAAgB,aAAa,IAAI,UAAU,CAS1C;AAED;;;;GAIG;AACH,wBAAgB,kBAAkB,IAAI,eAAe,CASpD;AAED;;;;GAIG;AACH,wBAAgB,iBAAiB,IAAI,cAAc,CASlD;AAiBD;;;;;;;;;GASG;AACH,wBAAgB,gBAAgB,IAAI,aAAa,CAShD"}
|
package/dist/context.js
CHANGED
|
@@ -8,7 +8,6 @@ import { get, writable } from 'svelte/store';
|
|
|
8
8
|
import { getProvider as getBondedI18nProvider, I18nError, t } from '@molecule/app-i18n';
|
|
9
9
|
import { resolveLinkPath } from '@molecule/app-routing';
|
|
10
10
|
import { getProvider as getBondedStateProvider, hasProvider as hasBondedStateProvider, } from '@molecule/app-state';
|
|
11
|
-
import { setChatContext } from './chat-context.js';
|
|
12
11
|
import { toReadable } from './hooks/maybe-readable.js';
|
|
13
12
|
import { setRoutedViewContext } from './routed-view-context.js';
|
|
14
13
|
// Context keys
|
|
@@ -47,7 +46,7 @@ const PREVIEW_KEY = Symbol('molecule-preview');
|
|
|
47
46
|
*
|
|
48
47
|
* <slot />
|
|
49
48
|
* ```
|
|
50
|
-
* @param config - Provider instances to register (state, auth, theme, router, i18n, http, storage, logger,
|
|
49
|
+
* @param config - Provider instances to register (state, auth, theme, router, i18n, http, storage, logger, workspace, editor, preview).
|
|
51
50
|
*/
|
|
52
51
|
export function setMoleculeContext(config) {
|
|
53
52
|
// A `state` option wins; otherwise the BONDED state provider, the singleton every
|
|
@@ -69,8 +68,6 @@ export function setMoleculeContext(config) {
|
|
|
69
68
|
setContext(STORAGE_KEY, config.storage);
|
|
70
69
|
if (config.logger)
|
|
71
70
|
setContext(LOGGER_KEY, config.logger);
|
|
72
|
-
if (config.chat)
|
|
73
|
-
setChatContext(config.chat);
|
|
74
71
|
if (config.workspace)
|
|
75
72
|
setContext(WORKSPACE_KEY, config.workspace);
|
|
76
73
|
if (config.editor)
|
|
@@ -58,7 +58,7 @@ export interface UseAIModelsResult {
|
|
|
58
58
|
* @example
|
|
59
59
|
* ```svelte
|
|
60
60
|
* <script>
|
|
61
|
-
* import { useAIModels } from '@molecule/app-svelte
|
|
61
|
+
* import { useAIModels } from '@molecule/app-svelte'
|
|
62
62
|
* const { models, freeTierModel, loading } = useAIModels()
|
|
63
63
|
* </script>
|
|
64
64
|
* ```
|
|
@@ -129,7 +129,7 @@ export function resetAIModelsCache() {
|
|
|
129
129
|
* @example
|
|
130
130
|
* ```svelte
|
|
131
131
|
* <script>
|
|
132
|
-
* import { useAIModels } from '@molecule/app-svelte
|
|
132
|
+
* import { useAIModels } from '@molecule/app-svelte'
|
|
133
133
|
* const { models, freeTierModel, loading } = useAIModels()
|
|
134
134
|
* </script>
|
|
135
135
|
* ```
|
package/dist/hooks/usePush.d.ts
CHANGED
|
@@ -59,7 +59,7 @@ export interface UsePushOptions {
|
|
|
59
59
|
* @example
|
|
60
60
|
* ```svelte
|
|
61
61
|
* <script>
|
|
62
|
-
* import { usePush } from '@molecule/app-svelte
|
|
62
|
+
* import { usePush } from '@molecule/app-svelte'
|
|
63
63
|
* const { permission, requestPermission, register } = usePush({ checkOnMount: true })
|
|
64
64
|
* </script>
|
|
65
65
|
*
|
package/dist/hooks/usePush.js
CHANGED
|
@@ -24,7 +24,7 @@ import { toReadable } from './maybe-readable.js';
|
|
|
24
24
|
* @example
|
|
25
25
|
* ```svelte
|
|
26
26
|
* <script>
|
|
27
|
-
* import { usePush } from '@molecule/app-svelte
|
|
27
|
+
* import { usePush } from '@molecule/app-svelte'
|
|
28
28
|
* const { permission, requestPermission, register } = usePush({ checkOnMount: true })
|
|
29
29
|
* </script>
|
|
30
30
|
*
|
package/dist/index.d.ts
CHANGED
|
@@ -154,8 +154,7 @@
|
|
|
154
154
|
* nothing until a target exists.
|
|
155
155
|
*
|
|
156
156
|
* Use `@molecule/app-svelte/chat`, `@molecule/app-svelte/ai-models`, and
|
|
157
|
-
* `@molecule/app-svelte/push` for those features.
|
|
158
|
-
* package root are deprecated.
|
|
157
|
+
* `@molecule/app-svelte/push` for those features.
|
|
159
158
|
*
|
|
160
159
|
* @module
|
|
161
160
|
*/
|
|
@@ -163,9 +162,6 @@ export * from './components/index.js';
|
|
|
163
162
|
export * from './content.js';
|
|
164
163
|
export * from './context.js';
|
|
165
164
|
export * from './hooks/index.js';
|
|
166
|
-
export * from './legacy-ai-models.js';
|
|
167
|
-
export * from './legacy-chat.js';
|
|
168
|
-
export * from './legacy-push.js';
|
|
169
165
|
export * from './link/index.js';
|
|
170
166
|
export * from './providers/index.js';
|
|
171
167
|
export * from './routed-view/index.js';
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+JG;AAEH,cAAc,uBAAuB,CAAA;AACrC,cAAc,cAAc,CAAA;AAC5B,cAAc,cAAc,CAAA;AAC5B,cAAc,kBAAkB,CAAA;AAChC,cAAc,iBAAiB,CAAA;AAC/B,cAAc,sBAAsB,CAAA;AACpC,cAAc,wBAAwB,CAAA;AACtC,cAAc,0BAA0B,CAAA;AACxC,cAAc,mBAAmB,CAAA;AACjC,cAAc,YAAY,CAAA"}
|
package/dist/index.js
CHANGED
|
@@ -154,8 +154,7 @@
|
|
|
154
154
|
* nothing until a target exists.
|
|
155
155
|
*
|
|
156
156
|
* Use `@molecule/app-svelte/chat`, `@molecule/app-svelte/ai-models`, and
|
|
157
|
-
* `@molecule/app-svelte/push` for those features.
|
|
158
|
-
* package root are deprecated.
|
|
157
|
+
* `@molecule/app-svelte/push` for those features.
|
|
159
158
|
*
|
|
160
159
|
* @module
|
|
161
160
|
*/
|
|
@@ -163,9 +162,6 @@ export * from './components/index.js';
|
|
|
163
162
|
export * from './content.js';
|
|
164
163
|
export * from './context.js';
|
|
165
164
|
export * from './hooks/index.js';
|
|
166
|
-
export * from './legacy-ai-models.js';
|
|
167
|
-
export * from './legacy-chat.js';
|
|
168
|
-
export * from './legacy-push.js';
|
|
169
165
|
export * from './link/index.js';
|
|
170
166
|
export * from './providers/index.js';
|
|
171
167
|
export * from './routed-view/index.js';
|
|
@@ -3,13 +3,13 @@
|
|
|
3
3
|
-->
|
|
4
4
|
<script lang="ts">
|
|
5
5
|
import type { ChatProviderProps } from '../chat-types.js'
|
|
6
|
-
import
|
|
6
|
+
import ChatScope from './ChatScope.svelte'
|
|
7
7
|
|
|
8
8
|
let { provider, children }: ChatProviderProps = $props()
|
|
9
9
|
</script>
|
|
10
10
|
|
|
11
11
|
{#key provider}
|
|
12
|
-
<
|
|
12
|
+
<ChatScope {provider}>
|
|
13
13
|
{@render children?.()}
|
|
14
|
-
</
|
|
14
|
+
</ChatScope>
|
|
15
15
|
{/key}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import { untrack } from 'svelte'
|
|
3
|
+
|
|
4
|
+
import { setChatContext } from '../chat-context.js'
|
|
5
|
+
import type { ChatProviderProps } from '../chat-types.js'
|
|
6
|
+
|
|
7
|
+
let { provider, children }: ChatProviderProps = $props()
|
|
8
|
+
|
|
9
|
+
// ChatProvider re-creates this scope when the provider changes.
|
|
10
|
+
untrack(() => setChatContext(provider))
|
|
11
|
+
</script>
|
|
12
|
+
|
|
13
|
+
{@render children?.()}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ChatScope.svelte.d.ts","sourceRoot":"","sources":["../../src/providers/ChatScope.svelte"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAkB1D,QAAA,MAAM,SAAS,uDAAwC,CAAC;AACxD,KAAK,SAAS,GAAG,UAAU,CAAC,OAAO,SAAS,CAAC,CAAC;AAC9C,eAAe,SAAS,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MoleculeProvider.svelte.d.ts","sourceRoot":"","sources":["../../src/providers/MoleculeProvider.svelte"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAkB,qBAAqB,EAAE,MAAM,aAAa,CAAA;
|
|
1
|
+
{"version":3,"file":"MoleculeProvider.svelte.d.ts","sourceRoot":"","sources":["../../src/providers/MoleculeProvider.svelte"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAkB,qBAAqB,EAAE,MAAM,aAAa,CAAA;AA8DxE,QAAA,MAAM,gBAAgB,2DAAwC,CAAC;AAC/D,KAAK,gBAAgB,GAAG,UAAU,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAC5D,eAAe,gBAAgB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"services.d.ts","sourceRoot":"","sources":["../../src/providers/services.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;
|
|
1
|
+
{"version":3,"file":"services.d.ts","sourceRoot":"","sources":["../../src/providers/services.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAeH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAA;AAEjD;;;;;;GAMG;AACH,wBAAgB,kBAAkB,CAAC,QAAQ,EAAE,cAAc,GAAG,IAAI,CAYjE;AAqBD;;;;;;;;GAQG;AACH,wBAAgB,WAAW,CAAC,QAAQ,EAAE,cAAc,GAAG,MAAM,CAgB5D"}
|
|
@@ -4,7 +4,6 @@
|
|
|
4
4
|
*
|
|
5
5
|
* @module
|
|
6
6
|
*/
|
|
7
|
-
import { setChatContext } from '../chat-context.js';
|
|
8
7
|
import { setAuthContext, setEditorContext, setHttpContext, setI18nContext, setLoggerContext, setPreviewContext, setRouterContext, setStateContext, setStorageContext, setThemeContext, setWorkspaceContext, } from '../context.js';
|
|
9
8
|
/**
|
|
10
9
|
* Sets each service in `services` in Svelte context, and nothing for one that is absent (unlike
|
|
@@ -30,8 +29,6 @@ export function setServiceContexts(services) {
|
|
|
30
29
|
setStorageContext(services.storage);
|
|
31
30
|
if (services.logger)
|
|
32
31
|
setLoggerContext(services.logger);
|
|
33
|
-
if (services.chat)
|
|
34
|
-
setChatContext(services.chat);
|
|
35
32
|
if (services.workspace)
|
|
36
33
|
setWorkspaceContext(services.workspace);
|
|
37
34
|
if (services.editor)
|
|
@@ -77,7 +74,6 @@ export function servicesKey(services) {
|
|
|
77
74
|
services.http,
|
|
78
75
|
services.storage,
|
|
79
76
|
services.logger,
|
|
80
|
-
services.chat,
|
|
81
77
|
services.workspace,
|
|
82
78
|
services.editor,
|
|
83
79
|
services.preview,
|
package/dist/stores/chat.d.ts
CHANGED
|
@@ -56,7 +56,7 @@ export declare const resetChatStoresForTests: typeof coreResetChatStoresForTests
|
|
|
56
56
|
* @example
|
|
57
57
|
* ```svelte
|
|
58
58
|
* <script>
|
|
59
|
-
* import { useChat } from '@molecule/app-svelte
|
|
59
|
+
* import { useChat } from '@molecule/app-svelte'
|
|
60
60
|
*
|
|
61
61
|
* const chat = useChat({ endpoint: '/projects/p1/chat', projectId: 'p1' })
|
|
62
62
|
* const { messages, sendMessage } = chat
|
package/dist/stores/chat.js
CHANGED
|
@@ -47,7 +47,7 @@ export const resetChatStoresForTests = coreResetChatStoresForTests;
|
|
|
47
47
|
* @example
|
|
48
48
|
* ```svelte
|
|
49
49
|
* <script>
|
|
50
|
-
* import { useChat } from '@molecule/app-svelte
|
|
50
|
+
* import { useChat } from '@molecule/app-svelte'
|
|
51
51
|
*
|
|
52
52
|
* const chat = useChat({ endpoint: '/projects/p1/chat', projectId: 'p1' })
|
|
53
53
|
* const { messages, sendMessage } = chat
|
package/dist/stores/push.d.ts
CHANGED
|
@@ -13,7 +13,7 @@ import type { NotificationActionListener, NotificationReceivedListener, Permissi
|
|
|
13
13
|
* @example
|
|
14
14
|
* ```svelte
|
|
15
15
|
* <script>
|
|
16
|
-
* import { createPushStores } from '@molecule/app-svelte
|
|
16
|
+
* import { createPushStores } from '@molecule/app-svelte'
|
|
17
17
|
*
|
|
18
18
|
* const { permission, token, requestPermission, register } = createPushStores()
|
|
19
19
|
* </script>
|
package/dist/stores/push.js
CHANGED
|
@@ -13,7 +13,7 @@ import { getProvider } from '@molecule/app-push';
|
|
|
13
13
|
* @example
|
|
14
14
|
* ```svelte
|
|
15
15
|
* <script>
|
|
16
|
-
* import { createPushStores } from '@molecule/app-svelte
|
|
16
|
+
* import { createPushStores } from '@molecule/app-svelte'
|
|
17
17
|
*
|
|
18
18
|
* const { permission, token, requestPermission, register } = createPushStores()
|
|
19
19
|
* </script>
|
package/dist/types.d.ts
CHANGED
|
@@ -5,7 +5,6 @@
|
|
|
5
5
|
*/
|
|
6
6
|
import type { Component, Snippet } from 'svelte';
|
|
7
7
|
import type { Readable, Writable } from 'svelte/store';
|
|
8
|
-
import type { ChatProvider } from '@molecule/app-ai-chat';
|
|
9
8
|
import type { AuthClient, AuthState } from '@molecule/app-auth';
|
|
10
9
|
import type { EditorProvider } from '@molecule/app-code-editor';
|
|
11
10
|
import type { FormController, FormOptions, FormResetOptions } from '@molecule/app-forms';
|
|
@@ -30,8 +29,6 @@ export interface MoleculeConfig {
|
|
|
30
29
|
http?: HttpClient;
|
|
31
30
|
storage?: StorageProvider;
|
|
32
31
|
logger?: LoggerProvider;
|
|
33
|
-
/** The AI chat provider useChat and useChatProvider use. */
|
|
34
|
-
chat?: ChatProvider;
|
|
35
32
|
/** The IDE workspace provider useWorkspace and useWorkspaceProvider use. */
|
|
36
33
|
workspace?: WorkspaceProvider;
|
|
37
34
|
/** The code editor provider useEditor and useEditorProvider use. */
|
package/dist/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,QAAQ,CAAA;AAChD,OAAO,KAAK,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAA;AAEtD,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,QAAQ,CAAA;AAChD,OAAO,KAAK,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAA;AAEtD,OAAO,KAAK,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAA;AAC/D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAA;AAC/D,OAAO,KAAK,EAAE,cAAc,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAA;AACxF,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAA;AACpD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAA;AACtD,OAAO,KAAK,EA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CAC1B;AAED;;;GAGG;AACH,MAAM,WAAW,qBAAsB,SAAQ,aAAa,EAAE,cAAc;IAC1E;;;;;;;;;;OAUG;IACH,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,2GAA2G;IAC3G,eAAe,CAAC,EAAE,OAAO,CAAA;CAC1B;AAED;;GAEG;AACH,MAAM,WAAW,SAAS,CAAC,CAAC;IAC1B,IAAI,EAAE,CAAC,GAAG,IAAI,CAAA;IACd,OAAO,EAAE,OAAO,CAAA;IAChB,KAAK,EAAE,KAAK,GAAG,IAAI,CAAA;CACpB;AAED;;GAEG;AACH,MAAM,WAAW,iBAAiB,CAAC,CAAC;IAClC,KAAK,EAAE,CAAC,GAAG,SAAS,CAAA;IACpB,OAAO,EAAE,OAAO,CAAA;IAChB,KAAK,EAAE,KAAK,GAAG,IAAI,CAAA;CACpB;AAKD,YAAY,EACV,UAAU,EACV,SAAS,EACT,cAAc,EACd,WAAW,EACX,gBAAgB,EAChB,UAAU,EACV,MAAM,EACN,aAAa,EACb,WAAW,EACX,QAAQ,EACR,aAAa,EACb,WAAW,EACX,MAAM,EACN,YAAY,EACZ,KAAK,EACL,WAAW,EACX,KAAK,EACL,QAAQ,GACT,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@molecule/app-svelte",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "4.0.1",
|
|
4
4
|
"description": "Svelte framework bindings for molecule.dev",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -77,24 +77,49 @@
|
|
|
77
77
|
"svelte": "^5.43.15"
|
|
78
78
|
},
|
|
79
79
|
"peerDependenciesMeta": {
|
|
80
|
+
"@molecule/app-ai-chat": {
|
|
81
|
+
"optional": true
|
|
82
|
+
},
|
|
83
|
+
"@molecule/app-ai-models": {
|
|
84
|
+
"optional": true
|
|
85
|
+
},
|
|
86
|
+
"@molecule/app-auth": {
|
|
87
|
+
"optional": true
|
|
88
|
+
},
|
|
80
89
|
"@molecule/app-code-editor": {
|
|
81
90
|
"optional": true
|
|
82
91
|
},
|
|
92
|
+
"@molecule/app-http": {
|
|
93
|
+
"optional": true
|
|
94
|
+
},
|
|
83
95
|
"@molecule/app-ide": {
|
|
84
96
|
"optional": true
|
|
85
97
|
},
|
|
86
98
|
"@molecule/app-live-preview": {
|
|
87
99
|
"optional": true
|
|
88
100
|
},
|
|
101
|
+
"@molecule/app-push": {
|
|
102
|
+
"optional": true
|
|
103
|
+
},
|
|
89
104
|
"@molecule/app-routing-sveltekit": {
|
|
90
105
|
"optional": true
|
|
106
|
+
},
|
|
107
|
+
"@molecule/app-theme": {
|
|
108
|
+
"optional": true
|
|
109
|
+
},
|
|
110
|
+
"@molecule/app-ui": {
|
|
111
|
+
"optional": true
|
|
112
|
+
},
|
|
113
|
+
"@molecule/app-utilities": {
|
|
114
|
+
"optional": true
|
|
91
115
|
}
|
|
92
116
|
},
|
|
93
117
|
"devDependencies": {
|
|
94
118
|
"@molecule/app-ai-chat": "1.8.1",
|
|
95
119
|
"@molecule/app-ai-models": "1.4.4",
|
|
96
120
|
"@molecule/app-framework-conformance": "0.0.0",
|
|
97
|
-
"@molecule/app-
|
|
121
|
+
"@molecule/app-push": "1.2.3",
|
|
122
|
+
"@molecule/app-utilities": "1.1.0",
|
|
98
123
|
"@sveltejs/package": "3.0.2",
|
|
99
124
|
"@sveltejs/vite-plugin-svelte": "7.1.2",
|
|
100
125
|
"@types/node": "26.6.5",
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import * as feature from './ai-models.js';
|
|
2
|
-
/**
|
|
3
|
-
* Compatibility alias for `UseAIModelsResult`.
|
|
4
|
-
* @deprecated Import UseAIModelsResult from `@molecule/app-svelte/ai-models`.
|
|
5
|
-
*/
|
|
6
|
-
export type UseAIModelsResult = feature.UseAIModelsResult;
|
|
7
|
-
/**
|
|
8
|
-
* Compatibility alias for `resetAIModelsCache`.
|
|
9
|
-
* @deprecated Import resetAIModelsCache from `@molecule/app-svelte/ai-models`.
|
|
10
|
-
*/
|
|
11
|
-
export declare const resetAIModelsCache: typeof feature.resetAIModelsCache;
|
|
12
|
-
/**
|
|
13
|
-
* Compatibility alias for `useAIModels`.
|
|
14
|
-
* @deprecated Import useAIModels from `@molecule/app-svelte/ai-models`.
|
|
15
|
-
*/
|
|
16
|
-
export declare const useAIModels: typeof feature.useAIModels;
|
|
17
|
-
//# sourceMappingURL=legacy-ai-models.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"legacy-ai-models.d.ts","sourceRoot":"","sources":["../src/legacy-ai-models.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,OAAO,MAAM,gBAAgB,CAAA;AAEzC;;;GAGG;AACH,MAAM,MAAM,iBAAiB,GAAG,OAAO,CAAC,iBAAiB,CAAA;AAEzD;;;GAGG;AACH,eAAO,MAAM,kBAAkB,EAAE,OAAO,OAAO,CAAC,kBAA+C,CAAA;AAE/F;;;GAGG;AACH,eAAO,MAAM,WAAW,EAAE,OAAO,OAAO,CAAC,WAAiC,CAAA"}
|
package/dist/legacy-ai-models.js
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import * as feature from './ai-models.js';
|
|
2
|
-
/**
|
|
3
|
-
* Compatibility alias for `resetAIModelsCache`.
|
|
4
|
-
* @deprecated Import resetAIModelsCache from `@molecule/app-svelte/ai-models`.
|
|
5
|
-
*/
|
|
6
|
-
export const resetAIModelsCache = feature.resetAIModelsCache;
|
|
7
|
-
/**
|
|
8
|
-
* Compatibility alias for `useAIModels`.
|
|
9
|
-
* @deprecated Import useAIModels from `@molecule/app-svelte/ai-models`.
|
|
10
|
-
*/
|
|
11
|
-
export const useAIModels = feature.useAIModels;
|
package/dist/legacy-chat.d.ts
DELETED
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
import * as feature from './chat/index.js';
|
|
2
|
-
/**
|
|
3
|
-
* Compatibility alias for `AgentIdentity`.
|
|
4
|
-
* @deprecated Import AgentIdentity from `@molecule/app-ai-chat`.
|
|
5
|
-
*/
|
|
6
|
-
export type AgentIdentity = feature.AgentIdentity;
|
|
7
|
-
/**
|
|
8
|
-
* Compatibility alias for `ChatProvider`.
|
|
9
|
-
* @deprecated Import ChatProvider from `@molecule/app-svelte/chat`.
|
|
10
|
-
*/
|
|
11
|
-
export declare const ChatProvider: typeof feature.ChatProvider;
|
|
12
|
-
/**
|
|
13
|
-
* Compatibility alias for `ChatProviderProps`.
|
|
14
|
-
* @deprecated Import ChatProviderProps from `@molecule/app-svelte/chat`.
|
|
15
|
-
*/
|
|
16
|
-
export type ChatProviderProps = feature.ChatProviderProps;
|
|
17
|
-
/**
|
|
18
|
-
* Compatibility alias for `DEFAULT_AGENT_IDENTITY`.
|
|
19
|
-
* @deprecated Import DEFAULT_AGENT_IDENTITY from `@molecule/app-ai-chat`.
|
|
20
|
-
*/
|
|
21
|
-
export declare const DEFAULT_AGENT_IDENTITY: typeof feature.DEFAULT_AGENT_IDENTITY;
|
|
22
|
-
/**
|
|
23
|
-
* Compatibility alias for `DEFAULT_AGENT_NAME`.
|
|
24
|
-
* @deprecated Import DEFAULT_AGENT_NAME from `@molecule/app-ai-chat`.
|
|
25
|
-
*/
|
|
26
|
-
export declare const DEFAULT_AGENT_NAME: typeof feature.DEFAULT_AGENT_NAME;
|
|
27
|
-
/**
|
|
28
|
-
* Compatibility alias for `DEFAULT_PRODUCT_NAME`.
|
|
29
|
-
* @deprecated Import DEFAULT_PRODUCT_NAME from `@molecule/app-ai-chat`.
|
|
30
|
-
*/
|
|
31
|
-
export declare const DEFAULT_PRODUCT_NAME: typeof feature.DEFAULT_PRODUCT_NAME;
|
|
32
|
-
/**
|
|
33
|
-
* Compatibility alias for `SendMessageOptions`.
|
|
34
|
-
* @deprecated Import SendMessageOptions from `@molecule/app-svelte/chat`.
|
|
35
|
-
*/
|
|
36
|
-
export type SendMessageOptions = feature.SendMessageOptions;
|
|
37
|
-
/**
|
|
38
|
-
* Compatibility alias for `UseChatOptions`.
|
|
39
|
-
* @deprecated Import UseChatOptions from `@molecule/app-svelte/chat`.
|
|
40
|
-
*/
|
|
41
|
-
export type UseChatOptions = feature.UseChatOptions;
|
|
42
|
-
/**
|
|
43
|
-
* Compatibility alias for `UseChatResult`.
|
|
44
|
-
* @deprecated Import UseChatResult from `@molecule/app-svelte/chat`.
|
|
45
|
-
*/
|
|
46
|
-
export type UseChatResult = feature.UseChatResult;
|
|
47
|
-
/**
|
|
48
|
-
* Compatibility alias for `convergeHistory`.
|
|
49
|
-
* @deprecated Import convergeHistory from `@molecule/app-svelte/chat`.
|
|
50
|
-
*/
|
|
51
|
-
export declare const convergeHistory: typeof feature.convergeHistory;
|
|
52
|
-
/**
|
|
53
|
-
* Compatibility alias for `localOnlyMessages`.
|
|
54
|
-
* @deprecated Import localOnlyMessages from `@molecule/app-svelte/chat`.
|
|
55
|
-
*/
|
|
56
|
-
export declare const localOnlyMessages: typeof feature.localOnlyMessages;
|
|
57
|
-
/**
|
|
58
|
-
* Compatibility alias for `resetChatStoresForTests`.
|
|
59
|
-
* @deprecated Import resetChatStoresForTests from `@molecule/app-svelte/chat`.
|
|
60
|
-
*/
|
|
61
|
-
export declare const resetChatStoresForTests: typeof feature.resetChatStoresForTests;
|
|
62
|
-
/**
|
|
63
|
-
* Compatibility alias for `setChatContext`.
|
|
64
|
-
* @deprecated Import setChatContext from `@molecule/app-svelte/chat`.
|
|
65
|
-
*/
|
|
66
|
-
export declare const setChatContext: typeof feature.setChatContext;
|
|
67
|
-
/**
|
|
68
|
-
* Compatibility alias for `useChat`.
|
|
69
|
-
* @deprecated Import useChat from `@molecule/app-svelte/chat`.
|
|
70
|
-
*/
|
|
71
|
-
export declare const useChat: typeof feature.useChat;
|
|
72
|
-
/**
|
|
73
|
-
* Compatibility alias for `useChatProvider`.
|
|
74
|
-
* @deprecated Import useChatProvider from `@molecule/app-svelte/chat`.
|
|
75
|
-
*/
|
|
76
|
-
export declare const useChatProvider: typeof feature.useChatProvider;
|
|
77
|
-
//# sourceMappingURL=legacy-chat.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"legacy-chat.d.ts","sourceRoot":"","sources":["../src/legacy-chat.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,OAAO,MAAM,iBAAiB,CAAA;AAE1C;;;GAGG;AACH,MAAM,MAAM,aAAa,GAAG,OAAO,CAAC,aAAa,CAAA;AAEjD;;;GAGG;AACH,eAAO,MAAM,YAAY,EAAE,OAAO,OAAO,CAAC,YAAmC,CAAA;AAE7E;;;GAGG;AACH,MAAM,MAAM,iBAAiB,GAAG,OAAO,CAAC,iBAAiB,CAAA;AAEzD;;;GAGG;AACH,eAAO,MAAM,sBAAsB,EAAE,OAAO,OAAO,CAAC,sBACpB,CAAA;AAEhC;;;GAGG;AACH,eAAO,MAAM,kBAAkB,EAAE,OAAO,OAAO,CAAC,kBAA+C,CAAA;AAE/F;;;GAGG;AACH,eAAO,MAAM,oBAAoB,EAAE,OAAO,OAAO,CAAC,oBACpB,CAAA;AAE9B;;;GAGG;AACH,MAAM,MAAM,kBAAkB,GAAG,OAAO,CAAC,kBAAkB,CAAA;AAE3D;;;GAGG;AACH,MAAM,MAAM,cAAc,GAAG,OAAO,CAAC,cAAc,CAAA;AAEnD;;;GAGG;AACH,MAAM,MAAM,aAAa,GAAG,OAAO,CAAC,aAAa,CAAA;AAEjD;;;GAGG;AACH,eAAO,MAAM,eAAe,EAAE,OAAO,OAAO,CAAC,eAAyC,CAAA;AAEtF;;;GAGG;AACH,eAAO,MAAM,iBAAiB,EAAE,OAAO,OAAO,CAAC,iBAA6C,CAAA;AAE5F;;;GAGG;AACH,eAAO,MAAM,uBAAuB,EAAE,OAAO,OAAO,CAAC,uBACpB,CAAA;AAEjC;;;GAGG;AACH,eAAO,MAAM,cAAc,EAAE,OAAO,OAAO,CAAC,cAAuC,CAAA;AAEnF;;;GAGG;AACH,eAAO,MAAM,OAAO,EAAE,OAAO,OAAO,CAAC,OAAyB,CAAA;AAE9D;;;GAGG;AACH,eAAO,MAAM,eAAe,EAAE,OAAO,OAAO,CAAC,eAAyC,CAAA"}
|
package/dist/legacy-chat.js
DELETED
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import * as feature from './chat/index.js';
|
|
2
|
-
/**
|
|
3
|
-
* Compatibility alias for `ChatProvider`.
|
|
4
|
-
* @deprecated Import ChatProvider from `@molecule/app-svelte/chat`.
|
|
5
|
-
*/
|
|
6
|
-
export const ChatProvider = feature.ChatProvider;
|
|
7
|
-
/**
|
|
8
|
-
* Compatibility alias for `DEFAULT_AGENT_IDENTITY`.
|
|
9
|
-
* @deprecated Import DEFAULT_AGENT_IDENTITY from `@molecule/app-ai-chat`.
|
|
10
|
-
*/
|
|
11
|
-
export const DEFAULT_AGENT_IDENTITY = feature.DEFAULT_AGENT_IDENTITY;
|
|
12
|
-
/**
|
|
13
|
-
* Compatibility alias for `DEFAULT_AGENT_NAME`.
|
|
14
|
-
* @deprecated Import DEFAULT_AGENT_NAME from `@molecule/app-ai-chat`.
|
|
15
|
-
*/
|
|
16
|
-
export const DEFAULT_AGENT_NAME = feature.DEFAULT_AGENT_NAME;
|
|
17
|
-
/**
|
|
18
|
-
* Compatibility alias for `DEFAULT_PRODUCT_NAME`.
|
|
19
|
-
* @deprecated Import DEFAULT_PRODUCT_NAME from `@molecule/app-ai-chat`.
|
|
20
|
-
*/
|
|
21
|
-
export const DEFAULT_PRODUCT_NAME = feature.DEFAULT_PRODUCT_NAME;
|
|
22
|
-
/**
|
|
23
|
-
* Compatibility alias for `convergeHistory`.
|
|
24
|
-
* @deprecated Import convergeHistory from `@molecule/app-svelte/chat`.
|
|
25
|
-
*/
|
|
26
|
-
export const convergeHistory = feature.convergeHistory;
|
|
27
|
-
/**
|
|
28
|
-
* Compatibility alias for `localOnlyMessages`.
|
|
29
|
-
* @deprecated Import localOnlyMessages from `@molecule/app-svelte/chat`.
|
|
30
|
-
*/
|
|
31
|
-
export const localOnlyMessages = feature.localOnlyMessages;
|
|
32
|
-
/**
|
|
33
|
-
* Compatibility alias for `resetChatStoresForTests`.
|
|
34
|
-
* @deprecated Import resetChatStoresForTests from `@molecule/app-svelte/chat`.
|
|
35
|
-
*/
|
|
36
|
-
export const resetChatStoresForTests = feature.resetChatStoresForTests;
|
|
37
|
-
/**
|
|
38
|
-
* Compatibility alias for `setChatContext`.
|
|
39
|
-
* @deprecated Import setChatContext from `@molecule/app-svelte/chat`.
|
|
40
|
-
*/
|
|
41
|
-
export const setChatContext = feature.setChatContext;
|
|
42
|
-
/**
|
|
43
|
-
* Compatibility alias for `useChat`.
|
|
44
|
-
* @deprecated Import useChat from `@molecule/app-svelte/chat`.
|
|
45
|
-
*/
|
|
46
|
-
export const useChat = feature.useChat;
|
|
47
|
-
/**
|
|
48
|
-
* Compatibility alias for `useChatProvider`.
|
|
49
|
-
* @deprecated Import useChatProvider from `@molecule/app-svelte/chat`.
|
|
50
|
-
*/
|
|
51
|
-
export const useChatProvider = feature.useChatProvider;
|
package/dist/legacy-push.d.ts
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import * as feature from './push.js';
|
|
2
|
-
/**
|
|
3
|
-
* Compatibility alias for `UsePushOptions`.
|
|
4
|
-
* @deprecated Import UsePushOptions from `@molecule/app-svelte/push`.
|
|
5
|
-
*/
|
|
6
|
-
export type UsePushOptions = feature.UsePushOptions;
|
|
7
|
-
/**
|
|
8
|
-
* Compatibility alias for `UsePushResult`.
|
|
9
|
-
* @deprecated Import UsePushResult from `@molecule/app-svelte/push`.
|
|
10
|
-
*/
|
|
11
|
-
export type UsePushResult = feature.UsePushResult;
|
|
12
|
-
/**
|
|
13
|
-
* Compatibility alias for `createPushStores`.
|
|
14
|
-
* @deprecated Import createPushStores from `@molecule/app-svelte/push`.
|
|
15
|
-
*/
|
|
16
|
-
export declare const createPushStores: typeof feature.createPushStores;
|
|
17
|
-
/**
|
|
18
|
-
* Compatibility alias for `usePush`.
|
|
19
|
-
* @deprecated Import usePush from `@molecule/app-svelte/push`.
|
|
20
|
-
*/
|
|
21
|
-
export declare const usePush: typeof feature.usePush;
|
|
22
|
-
//# sourceMappingURL=legacy-push.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"legacy-push.d.ts","sourceRoot":"","sources":["../src/legacy-push.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,OAAO,MAAM,WAAW,CAAA;AAEpC;;;GAGG;AACH,MAAM,MAAM,cAAc,GAAG,OAAO,CAAC,cAAc,CAAA;AAEnD;;;GAGG;AACH,MAAM,MAAM,aAAa,GAAG,OAAO,CAAC,aAAa,CAAA;AAEjD;;;GAGG;AACH,eAAO,MAAM,gBAAgB,EAAE,OAAO,OAAO,CAAC,gBAA2C,CAAA;AAEzF;;;GAGG;AACH,eAAO,MAAM,OAAO,EAAE,OAAO,OAAO,CAAC,OAAyB,CAAA"}
|
package/dist/legacy-push.js
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import * as feature from './push.js';
|
|
2
|
-
/**
|
|
3
|
-
* Compatibility alias for `createPushStores`.
|
|
4
|
-
* @deprecated Import createPushStores from `@molecule/app-svelte/push`.
|
|
5
|
-
*/
|
|
6
|
-
export const createPushStores = feature.createPushStores;
|
|
7
|
-
/**
|
|
8
|
-
* Compatibility alias for `usePush`.
|
|
9
|
-
* @deprecated Import usePush from `@molecule/app-svelte/push`.
|
|
10
|
-
*/
|
|
11
|
-
export const usePush = feature.usePush;
|