@microsoft/m365agentsplayground-cli 0.2.26 → 0.2.27-alpha.20260518-462fbee.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 (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
package/README.md CHANGED
@@ -1,23 +1,11 @@
1
- # playground-cli
1
+ # @microsoft/m365agentsplayground-cli
2
2
 
3
- A programmatic simulation library for Microsoft 365 bots/agents. Drive your bot's responses without a browser or manual interaction — ideal for automated testing, CI pipelines, and LLM-based evaluation.
3
+ A headless simulation library for Microsoft 365 bots/agents. Drive your bot's responses without a browser or manual interaction — ideal for automated testing, CI pipelines, and LLM-based evaluation.
4
4
 
5
5
  ## Installation
6
6
 
7
- The package is part of the monorepo. Link it in your project:
8
-
9
- ```json
10
- {
11
- "dependencies": {
12
- "@microsoft/m365agentsplayground-cli": "file:../../packages/playground-cli"
13
- }
14
- }
15
- ```
16
-
17
- Build the package before use:
18
-
19
7
  ```bash
20
- npm run build --workspace=packages/playground-cli
8
+ npm install @microsoft/m365agentsplayground-cli
21
9
  ```
22
10
 
23
11
  ## Quick Start
@@ -106,14 +94,13 @@ Returned by `sendMessage()`.
106
94
  An HTTP wrapper around TestClient so non-Node languages (Python, curl, etc.) can drive bot conversations by POSTing JSON.
107
95
 
108
96
  ```bash
109
- # From the repo root (after install + build):
110
- npm run server --workspace=packages/agents-simulator -- --port 9000
97
+ npx playground-cli-server --port 9000
111
98
  ```
112
99
 
113
100
  Or programmatically:
114
101
 
115
102
  ```typescript
116
- import { createConversationServer } from "agents-simulator";
103
+ import { createConversationServer } from "@microsoft/m365agentsplayground-cli";
117
104
  const server = await createConversationServer({ port: 9000 });
118
105
  ```
119
106
 
@@ -267,10 +254,10 @@ To test multiple bot endpoints in parallel, run separate `conversationServer` pr
267
254
 
268
255
  ```bash
269
256
  # Terminal 1 — bot-a on port 9001
270
- npm run server --workspace=packages/agents-simulator -- --port 9001
257
+ npx playground-cli-server --port 9001
271
258
 
272
259
  # Terminal 2 — bot-b on port 9002
273
- npm run server --workspace=packages/agents-simulator -- --port 9002
260
+ npx playground-cli-server --port 9002
274
261
  ```
275
262
 
276
263
  Then point each test suite at its own server URL.
@@ -332,4 +319,4 @@ Returns `{ "status": "ok" }`.
332
319
 
333
320
  ## Example Project
334
321
 
335
- See `samples/agents-simulator-example` for a complete example with Mocha tests and a sanity-test script.
322
+ See the [playground-cli-example](https://github.com/OfficeDev/microsoft-365-agents-playground/tree/main/samples/playground-cli-example) sample for a complete example with Mocha tests.
@@ -39,6 +39,11 @@ export interface E2EConfig {
39
39
  * Default: 800. Has no effect for bots with stream: false.
40
40
  */
41
41
  streamingSettleDelayMs?: number;
42
+ /**
43
+ * Disable telemetry data collection.
44
+ * Default: false
45
+ */
46
+ disableTelemetry?: boolean;
42
47
  }
43
48
  /**
44
49
  * A single turn to execute in a conversation.
@@ -3,7 +3,7 @@ export { ServerManager } from "./serverManager";
3
3
  export { ResponseCapture } from "./responseCapture";
4
4
  export type { TestClientConfig, BotConfig, BotResponse, PendingResponse } from "./types";
5
5
  export { ActionType, LogActionType } from "./types";
6
- export type { IAction, ICreateMessageAction, IUpdateMessageAction, ITypingAction, IActionMessage, ILogAction, IAppendLogAction, LogItem, } from "./types";
6
+ export type { IAction, ICreateMessageAction, IUpdateMessageAction, ITypingAction, IActionMessage, ILogAction, IAppendLogAction, LogItem, Attachment, Message, AccountRole, CustomActivityTemplateType, } from "./types";
7
7
  export { runConversation, log, logError } from "./runConversation";
8
8
  export { sendNotificationAndWait } from "./notificationSender";
9
9
  export { createConversationServer } from "./conversationServer";