@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.
Files changed (58) hide show
  1. package/dist/package.json +2 -2
  2. package/dist/src/app/adaptiveCards/adaptiveCardsActions.d.ts +9 -6
  3. package/dist/src/app/adaptiveCards/adaptiveCardsActions.js +3 -3
  4. package/dist/src/app/adaptiveCards/adaptiveCardsActions.js.map +1 -1
  5. package/dist/src/app/adaptiveCards/query.d.ts +1 -1
  6. package/dist/src/app/agentApplication.d.ts +10 -10
  7. package/dist/src/app/agentApplication.js +9 -9
  8. package/dist/src/app/agentApplicationBuilder.d.ts +1 -1
  9. package/dist/src/app/agentApplicationBuilder.js +1 -1
  10. package/dist/src/app/agentApplicationOptions.d.ts +1 -1
  11. package/dist/src/app/appMemory.d.ts +1 -1
  12. package/dist/src/app/appRoute.d.ts +1 -1
  13. package/dist/src/app/extensions.d.ts +1 -1
  14. package/dist/src/app/extensions.js +1 -1
  15. package/dist/src/app/turnState.d.ts +6 -6
  16. package/dist/src/app/turnState.js +6 -6
  17. package/dist/src/app/turnStateProperty.d.ts +2 -2
  18. package/dist/src/app/turnStateProperty.js +2 -2
  19. package/dist/src/auth/authConfiguration.d.ts +8 -0
  20. package/dist/src/auth/authConfiguration.js +14 -6
  21. package/dist/src/auth/authConfiguration.js.map +1 -1
  22. package/dist/src/auth/jwt-middleware.js +1 -1
  23. package/dist/src/auth/jwt-middleware.js.map +1 -1
  24. package/dist/src/auth/msalTokenProvider.js +4 -4
  25. package/dist/src/auth/msalTokenProvider.js.map +1 -1
  26. package/dist/src/connector-client/connectorClient.js +14 -0
  27. package/dist/src/connector-client/connectorClient.js.map +1 -1
  28. package/dist/src/oauth/userTokenClient.js +34 -17
  29. package/dist/src/oauth/userTokenClient.js.map +1 -1
  30. package/dist/src/state/agentState.d.ts +2 -2
  31. package/dist/src/state/agentState.js +2 -2
  32. package/dist/src/state/agentStatePropertyAccesor.d.ts +18 -21
  33. package/dist/src/state/agentStatePropertyAccesor.js +18 -21
  34. package/dist/src/state/agentStatePropertyAccesor.js.map +1 -1
  35. package/dist/src/storage/fileStorage.d.ts +12 -10
  36. package/dist/src/storage/fileStorage.js +12 -10
  37. package/dist/src/storage/fileStorage.js.map +1 -1
  38. package/dist/src/transcript/transcriptLogger.d.ts +1 -1
  39. package/package.json +2 -2
  40. package/src/app/adaptiveCards/adaptiveCardsActions.ts +9 -6
  41. package/src/app/adaptiveCards/query.ts +1 -1
  42. package/src/app/agentApplication.ts +10 -10
  43. package/src/app/agentApplicationBuilder.ts +1 -1
  44. package/src/app/agentApplicationOptions.ts +1 -1
  45. package/src/app/appMemory.ts +1 -1
  46. package/src/app/appRoute.ts +1 -1
  47. package/src/app/extensions.ts +1 -1
  48. package/src/app/turnState.ts +6 -6
  49. package/src/app/turnStateProperty.ts +2 -2
  50. package/src/auth/authConfiguration.ts +20 -5
  51. package/src/auth/jwt-middleware.ts +1 -1
  52. package/src/auth/msalTokenProvider.ts +4 -4
  53. package/src/connector-client/connectorClient.ts +14 -0
  54. package/src/oauth/userTokenClient.ts +36 -17
  55. package/src/state/agentState.ts +2 -2
  56. package/src/state/agentStatePropertyAccesor.ts +18 -21
  57. package/src/storage/fileStorage.ts +12 -10
  58. 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
- * @warning
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
@@ -31,7 +31,7 @@ export interface TranscriptInfo {
31
31
 
32
32
  /**
33
33
  * Paged result of items.
34
- * @template T - The type of items in the paged result.
34
+ * @typeParam T - The type of items in the paged result.
35
35
  */
36
36
  export interface PagedResult<T> {
37
37
  /**