@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.
- package/README.md +8 -21
- package/{build → dist}/conversationTypes.d.ts +5 -0
- package/{build → dist}/index.d.ts +1 -1
- package/dist/index.js +8 -0
- package/dist/index.js.LICENSE.txt +157 -0
- package/dist/responseCapture.d.ts +42 -0
- package/{build → dist}/serverManager.d.ts +1 -2
- package/dist/start-server.js +9 -0
- package/dist/start-server.js.LICENSE.txt +157 -0
- package/{build → dist}/testClient.d.ts +1 -1
- package/{build → dist}/types.d.ts +9 -0
- package/package.json +22 -12
- package/build/cardValidator.d.ts.map +0 -1
- package/build/cardValidator.js +0 -46
- package/build/conversationServer.d.ts.map +0 -1
- package/build/conversationServer.js +0 -136
- package/build/conversationTypes.d.ts.map +0 -1
- package/build/conversationTypes.js +0 -5
- package/build/index.d.ts.map +0 -1
- package/build/index.js +0 -25
- package/build/notificationSender.d.ts.map +0 -1
- package/build/notificationSender.js +0 -83
- package/build/responseCapture.d.ts +0 -29
- package/build/responseCapture.d.ts.map +0 -1
- package/build/responseCapture.js +0 -119
- package/build/runConversation.d.ts.map +0 -1
- package/build/runConversation.js +0 -351
- package/build/serverManager.d.ts.map +0 -1
- package/build/serverManager.js +0 -149
- package/build/start-server.d.ts.map +0 -1
- package/build/start-server.js +0 -23
- package/build/testClient.d.ts.map +0 -1
- package/build/testClient.js +0 -434
- package/build/types.d.ts.map +0 -1
- package/build/types.js +0 -7
- package/build/websocketClient.d.ts.map +0 -1
- package/build/websocketClient.js +0 -129
- package/src/cardValidator.ts +0 -56
- package/src/conversationServer.ts +0 -147
- package/src/conversationTypes.ts +0 -157
- package/src/index.ts +0 -37
- package/src/notificationSender.ts +0 -103
- package/src/responseCapture.ts +0 -145
- package/src/runConversation.ts +0 -382
- package/src/serverManager.ts +0 -172
- package/src/start-server.ts +0 -26
- package/src/testClient.ts +0 -512
- package/src/types.ts +0 -155
- package/src/websocketClient.ts +0 -153
- package/tsconfig.json +0 -14
- /package/{build → dist}/cardValidator.d.ts +0 -0
- /package/{build → dist}/conversationServer.d.ts +0 -0
- /package/{build → dist}/notificationSender.d.ts +0 -0
- /package/{build → dist}/runConversation.d.ts +0 -0
- /package/{build → dist}/start-server.d.ts +0 -0
- /package/{build → dist}/websocketClient.d.ts +0 -0
package/README.md
CHANGED
|
@@ -1,23 +1,11 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @microsoft/m365agentsplayground-cli
|
|
2
2
|
|
|
3
|
-
A
|
|
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
|
|
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
|
-
|
|
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 "
|
|
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
|
-
|
|
257
|
+
npx playground-cli-server --port 9001
|
|
271
258
|
|
|
272
259
|
# Terminal 2 — bot-b on port 9002
|
|
273
|
-
|
|
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
|
|
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";
|