@microsoft/agents-hosting 0.6.18 → 0.6.22
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/dist/package.json +2 -2
- package/dist/src/app/adaptiveCards/adaptiveCardsActions.d.ts +9 -6
- package/dist/src/app/adaptiveCards/adaptiveCardsActions.js +3 -3
- package/dist/src/app/adaptiveCards/adaptiveCardsActions.js.map +1 -1
- package/dist/src/app/adaptiveCards/query.d.ts +1 -1
- package/dist/src/app/agentApplication.d.ts +10 -10
- package/dist/src/app/agentApplication.js +9 -9
- package/dist/src/app/agentApplicationBuilder.d.ts +1 -1
- package/dist/src/app/agentApplicationBuilder.js +1 -1
- package/dist/src/app/agentApplicationOptions.d.ts +1 -1
- package/dist/src/app/appMemory.d.ts +1 -1
- package/dist/src/app/appRoute.d.ts +1 -1
- package/dist/src/app/extensions.d.ts +1 -1
- package/dist/src/app/extensions.js +1 -1
- package/dist/src/app/turnState.d.ts +6 -6
- package/dist/src/app/turnState.js +6 -6
- package/dist/src/app/turnStateProperty.d.ts +2 -2
- package/dist/src/app/turnStateProperty.js +2 -2
- package/dist/src/auth/authConfiguration.d.ts +8 -0
- package/dist/src/auth/authConfiguration.js +14 -6
- package/dist/src/auth/authConfiguration.js.map +1 -1
- package/dist/src/auth/jwt-middleware.js +1 -1
- package/dist/src/auth/jwt-middleware.js.map +1 -1
- package/dist/src/auth/msalTokenProvider.js +4 -4
- package/dist/src/auth/msalTokenProvider.js.map +1 -1
- package/dist/src/connector-client/connectorClient.js +14 -0
- package/dist/src/connector-client/connectorClient.js.map +1 -1
- package/dist/src/oauth/userTokenClient.js +34 -17
- package/dist/src/oauth/userTokenClient.js.map +1 -1
- package/dist/src/state/agentState.d.ts +2 -2
- package/dist/src/state/agentState.js +2 -2
- package/dist/src/state/agentStatePropertyAccesor.d.ts +18 -21
- package/dist/src/state/agentStatePropertyAccesor.js +18 -21
- package/dist/src/state/agentStatePropertyAccesor.js.map +1 -1
- package/dist/src/storage/fileStorage.d.ts +12 -10
- package/dist/src/storage/fileStorage.js +12 -10
- package/dist/src/storage/fileStorage.js.map +1 -1
- package/dist/src/transcript/transcriptLogger.d.ts +1 -1
- package/package.json +2 -2
- package/src/app/adaptiveCards/adaptiveCardsActions.ts +9 -6
- package/src/app/adaptiveCards/query.ts +1 -1
- package/src/app/agentApplication.ts +10 -10
- package/src/app/agentApplicationBuilder.ts +1 -1
- package/src/app/agentApplicationOptions.ts +1 -1
- package/src/app/appMemory.ts +1 -1
- package/src/app/appRoute.ts +1 -1
- package/src/app/extensions.ts +1 -1
- package/src/app/turnState.ts +6 -6
- package/src/app/turnStateProperty.ts +2 -2
- package/src/auth/authConfiguration.ts +20 -5
- package/src/auth/jwt-middleware.ts +1 -1
- package/src/auth/msalTokenProvider.ts +4 -4
- package/src/connector-client/connectorClient.ts +14 -0
- package/src/oauth/userTokenClient.ts +36 -17
- package/src/state/agentState.ts +2 -2
- package/src/state/agentStatePropertyAccesor.ts +18 -21
- package/src/storage/fileStorage.ts +12 -10
- package/src/transcript/transcriptLogger.ts +1 -1
|
@@ -8,7 +8,7 @@ import fs from 'fs'
|
|
|
8
8
|
import { Storage, StoreItem } from './storage'
|
|
9
9
|
|
|
10
10
|
/**
|
|
11
|
-
* A file-based storage implementation that persists data to the local filesystem.
|
|
11
|
+
* @summary A file-based storage implementation that persists data to the local filesystem.
|
|
12
12
|
*
|
|
13
13
|
* @remarks
|
|
14
14
|
* FileStorage stores all data in a single JSON file named 'state.json' within a specified folder.
|
|
@@ -19,6 +19,16 @@ import { Storage, StoreItem } from './storage'
|
|
|
19
19
|
* can be any JSON-serializable data. All operations are synchronous file I/O operations
|
|
20
20
|
* wrapped in Promise interfaces to match the Storage contract.
|
|
21
21
|
*
|
|
22
|
+
* ### Warning
|
|
23
|
+
* This implementation does not provide:
|
|
24
|
+
* - Thread safety for concurrent access
|
|
25
|
+
* - Optimistic concurrency control (eTag support)
|
|
26
|
+
* - Atomic operations across multiple keys
|
|
27
|
+
* - Scale for large datasets
|
|
28
|
+
*
|
|
29
|
+
* For production scenarios requiring these features, consider using
|
|
30
|
+
* database-backed storage implementations instead.
|
|
31
|
+
*
|
|
22
32
|
* @example
|
|
23
33
|
* ```typescript
|
|
24
34
|
* const storage = new FileStorage('./data');
|
|
@@ -37,15 +47,7 @@ import { Storage, StoreItem } from './storage'
|
|
|
37
47
|
* await storage.delete(['conversation456']);
|
|
38
48
|
* ```
|
|
39
49
|
*
|
|
40
|
-
|
|
41
|
-
* This implementation does not provide:
|
|
42
|
-
* - Thread safety for concurrent access
|
|
43
|
-
* - Optimistic concurrency control (eTag support)
|
|
44
|
-
* - Atomic operations across multiple keys
|
|
45
|
-
* - Scale for large datasets
|
|
46
|
-
*
|
|
47
|
-
* For production scenarios requiring these features, consider using
|
|
48
|
-
* database-backed storage implementations instead.
|
|
50
|
+
|
|
49
51
|
*/
|
|
50
52
|
export class FileStorage implements Storage {
|
|
51
53
|
private _folder: string
|