@microsoft/m365agentsplayground-cli 0.2.26 → 0.2.27

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 (56) hide show
  1. package/README.md +8 -21
  2. package/{build → dist}/conversationTypes.d.ts +5 -0
  3. package/{build → dist}/index.d.ts +1 -1
  4. package/dist/index.js +8 -0
  5. package/dist/index.js.LICENSE.txt +157 -0
  6. package/dist/responseCapture.d.ts +42 -0
  7. package/{build → dist}/serverManager.d.ts +1 -2
  8. package/dist/start-server.js +9 -0
  9. package/dist/start-server.js.LICENSE.txt +157 -0
  10. package/{build → dist}/testClient.d.ts +1 -1
  11. package/{build → dist}/types.d.ts +9 -0
  12. package/package.json +22 -12
  13. package/build/cardValidator.d.ts.map +0 -1
  14. package/build/cardValidator.js +0 -46
  15. package/build/conversationServer.d.ts.map +0 -1
  16. package/build/conversationServer.js +0 -136
  17. package/build/conversationTypes.d.ts.map +0 -1
  18. package/build/conversationTypes.js +0 -5
  19. package/build/index.d.ts.map +0 -1
  20. package/build/index.js +0 -25
  21. package/build/notificationSender.d.ts.map +0 -1
  22. package/build/notificationSender.js +0 -83
  23. package/build/responseCapture.d.ts +0 -29
  24. package/build/responseCapture.d.ts.map +0 -1
  25. package/build/responseCapture.js +0 -119
  26. package/build/runConversation.d.ts.map +0 -1
  27. package/build/runConversation.js +0 -351
  28. package/build/serverManager.d.ts.map +0 -1
  29. package/build/serverManager.js +0 -149
  30. package/build/start-server.d.ts.map +0 -1
  31. package/build/start-server.js +0 -23
  32. package/build/testClient.d.ts.map +0 -1
  33. package/build/testClient.js +0 -434
  34. package/build/types.d.ts.map +0 -1
  35. package/build/types.js +0 -7
  36. package/build/websocketClient.d.ts.map +0 -1
  37. package/build/websocketClient.js +0 -129
  38. package/src/cardValidator.ts +0 -56
  39. package/src/conversationServer.ts +0 -147
  40. package/src/conversationTypes.ts +0 -157
  41. package/src/index.ts +0 -37
  42. package/src/notificationSender.ts +0 -103
  43. package/src/responseCapture.ts +0 -145
  44. package/src/runConversation.ts +0 -382
  45. package/src/serverManager.ts +0 -172
  46. package/src/start-server.ts +0 -26
  47. package/src/testClient.ts +0 -512
  48. package/src/types.ts +0 -155
  49. package/src/websocketClient.ts +0 -153
  50. package/tsconfig.json +0 -14
  51. /package/{build → dist}/cardValidator.d.ts +0 -0
  52. /package/{build → dist}/conversationServer.d.ts +0 -0
  53. /package/{build → dist}/notificationSender.d.ts +0 -0
  54. /package/{build → dist}/runConversation.d.ts +0 -0
  55. /package/{build → dist}/start-server.d.ts +0 -0
  56. /package/{build → dist}/websocketClient.d.ts +0 -0
@@ -0,0 +1,157 @@
1
+ /*!
2
+ * Application Insights JavaScript SDK - Web Snippet, 1.0.1
3
+ * Copyright (c) Microsoft and contributors. All rights reserved.
4
+ */
5
+
6
+ /*!
7
+ * body-parser
8
+ * Copyright(c) 2014 Jonathan Ong
9
+ * Copyright(c) 2014-2015 Douglas Christopher Wilson
10
+ * MIT Licensed
11
+ */
12
+
13
+ /*!
14
+ * body-parser
15
+ * Copyright(c) 2014-2015 Douglas Christopher Wilson
16
+ * MIT Licensed
17
+ */
18
+
19
+ /*!
20
+ * bytes
21
+ * Copyright(c) 2012-2014 TJ Holowaychuk
22
+ * Copyright(c) 2015 Jed Watson
23
+ * MIT Licensed
24
+ */
25
+
26
+ /*!
27
+ * content-type
28
+ * Copyright(c) 2015 Douglas Christopher Wilson
29
+ * MIT Licensed
30
+ */
31
+
32
+ /*!
33
+ * depd
34
+ * Copyright(c) 2014-2018 Douglas Christopher Wilson
35
+ * MIT Licensed
36
+ */
37
+
38
+ /*!
39
+ * destroy
40
+ * Copyright(c) 2014 Jonathan Ong
41
+ * Copyright(c) 2015-2022 Douglas Christopher Wilson
42
+ * MIT Licensed
43
+ */
44
+
45
+ /*!
46
+ * ee-first
47
+ * Copyright(c) 2014 Jonathan Ong
48
+ * MIT Licensed
49
+ */
50
+
51
+ /*!
52
+ * http-errors
53
+ * Copyright(c) 2014 Jonathan Ong
54
+ * Copyright(c) 2016 Douglas Christopher Wilson
55
+ * MIT Licensed
56
+ */
57
+
58
+ /*!
59
+ * media-typer
60
+ * Copyright(c) 2014 Douglas Christopher Wilson
61
+ * MIT Licensed
62
+ */
63
+
64
+ /*!
65
+ * mime-db
66
+ * Copyright(c) 2014 Jonathan Ong
67
+ * Copyright(c) 2015-2022 Douglas Christopher Wilson
68
+ * MIT Licensed
69
+ */
70
+
71
+ /*!
72
+ * mime-types
73
+ * Copyright(c) 2014 Jonathan Ong
74
+ * Copyright(c) 2015 Douglas Christopher Wilson
75
+ * MIT Licensed
76
+ */
77
+
78
+ /*!
79
+ * on-finished
80
+ * Copyright(c) 2013 Jonathan Ong
81
+ * Copyright(c) 2014 Douglas Christopher Wilson
82
+ * MIT Licensed
83
+ */
84
+
85
+ /*!
86
+ * raw-body
87
+ * Copyright(c) 2013-2014 Jonathan Ong
88
+ * Copyright(c) 2014-2022 Douglas Christopher Wilson
89
+ * MIT Licensed
90
+ */
91
+
92
+ /*!
93
+ * statuses
94
+ * Copyright(c) 2014 Jonathan Ong
95
+ * Copyright(c) 2016 Douglas Christopher Wilson
96
+ * MIT Licensed
97
+ */
98
+
99
+ /*!
100
+ * toidentifier
101
+ * Copyright(c) 2016 Douglas Christopher Wilson
102
+ * MIT Licensed
103
+ */
104
+
105
+ /*!
106
+ * type-is
107
+ * Copyright(c) 2014 Jonathan Ong
108
+ * Copyright(c) 2014-2015 Douglas Christopher Wilson
109
+ * MIT Licensed
110
+ */
111
+
112
+ /*!
113
+ * unpipe
114
+ * Copyright(c) 2015 Douglas Christopher Wilson
115
+ * MIT Licensed
116
+ */
117
+
118
+ /*! @azure/msal-common v15.9.0 2025-07-23 */
119
+
120
+ /*! @azure/msal-node v3.6.4 2025-07-23 */
121
+
122
+ /*! Axios v1.12.2 Copyright (c) 2025 Matt Zabriskie and contributors */
123
+
124
+ /*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
125
+
126
+ /**
127
+ * @license
128
+ * Lodash <https://lodash.com/>
129
+ * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
130
+ * Released under MIT license <https://lodash.com/license>
131
+ * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
132
+ * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
133
+ */
134
+
135
+ /**
136
+ * Fast UUID generator, RFC4122 version 4 compliant.
137
+ * @author Jeff Ward (jcward.com).
138
+ * @license MIT license
139
+ * @link http://stackoverflow.com/questions/105034/how-to-create-a-guid-uuid-in-javascript/21963136#21963136
140
+ **/
141
+
142
+ /** @preserve
143
+ * Counter block mode compatible with Dr Brian Gladman fileenc.c
144
+ * derived from CryptoJS.mode.CTR
145
+ * Jan Hruby jhruby.web@gmail.com
146
+ */
147
+
148
+ /** @preserve
149
+ (c) 2012 by Cédric Mesnil. All rights reserved.
150
+
151
+ Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
152
+
153
+ - Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
154
+ - Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
155
+
156
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
157
+ */
@@ -0,0 +1,42 @@
1
+ import type { Message } from "server";
2
+ /** Minimal structural interface for BotConnectorService (avoids exposing server types in .d.ts) */
3
+ interface IBotConnectorService {
4
+ processActivity(conversationId: string, activity: unknown): Promise<{
5
+ resIds: string[];
6
+ shouldRespond: boolean;
7
+ statusCode: number;
8
+ }>;
9
+ }
10
+ /** Minimal structural interface for ConversationManager (avoids exposing server types in .d.ts) */
11
+ interface IConversationManager {
12
+ listMessages(conversationId: string): Message[];
13
+ }
14
+ /**
15
+ * Captures bot responses by hooking into BotConnectorService.processActivity
16
+ */
17
+ export declare class ResponseCapture {
18
+ private pendingResponses;
19
+ private originalProcessActivity?;
20
+ /**
21
+ * Hook into BotConnectorService to intercept responses
22
+ */
23
+ hookIntoBotConnectorService(service: IBotConnectorService): void;
24
+ /**
25
+ * Wait for a response in the given conversation
26
+ */
27
+ waitForResponse(conversationId: string, conversationManager: IConversationManager, timeout: number): Promise<Message[]>;
28
+ /**
29
+ * Resolve waiting promises when a response arrives
30
+ */
31
+ private resolveWaiting;
32
+ /**
33
+ * Clear all pending responses
34
+ */
35
+ clear(): void;
36
+ /**
37
+ * Clear pending responses for a specific conversation only
38
+ */
39
+ clearConversation(conversationId: string): void;
40
+ }
41
+ export {};
42
+ //# sourceMappingURL=responseCapture.d.ts.map
@@ -1,4 +1,3 @@
1
- import { Factory } from "server";
2
1
  import { ResponseCapture } from "./responseCapture";
3
2
  import { TestClientConfig } from "./types";
4
3
  export declare class ServerManager {
@@ -36,7 +35,7 @@ export declare class ServerManager {
36
35
  /**
37
36
  * Get the Factory instance for accessing services
38
37
  */
39
- getFactory(): typeof Factory;
38
+ getFactory(): unknown;
40
39
  /**
41
40
  * Shared ResponseCapture instance — keyed by conversationId, so
42
41
  * concurrent TestClients don't interfere with each other.