@cuylabs/agent-a365-tooling 7.1.0 → 7.2.1

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 CHANGED
@@ -33,7 +33,7 @@ pnpm add @cuylabs/agent-a365-tooling @microsoft/agents-a365-tooling
33
33
  ```
34
34
 
35
35
  If you use the default ambient TurnContext lookup, also use
36
- `@cuylabs/agent-channel-m365` and configure `@microsoft/agents-hosting` in the
36
+ `@cuylabs/channel-m365-agent-core` and configure `@microsoft/agents-hosting` in the
37
37
  host app.
38
38
 
39
39
  ## Usage
@@ -57,7 +57,7 @@ const agent = createAgent({
57
57
  ```
58
58
 
59
59
  By default the provider reads the active `TurnContext` from
60
- `currentM365TurnContext()` in `@cuylabs/agent-channel-m365`. For tests or custom
60
+ `currentM365TurnContext()` in `@cuylabs/channel-m365-agent-core`. For tests or custom
61
61
  hosts, pass `getTurnContext`.
62
62
 
63
63
  ```ts
@@ -150,7 +150,7 @@ Start with [docs/README.md](./docs/README.md) if you want the reading order.
150
150
  | --- | --- | --- |
151
151
  | `authorization` | Microsoft Agents SDK `Authorization` object used for token exchange | Your M365 host application / `@microsoft/agents-hosting` setup |
152
152
  | `authHandlerName` | Name of the auth handler configured for Agent 365 token exchange | Your Microsoft Agents SDK app configuration |
153
- | `getTurnContext` | Optional resolver for the active Microsoft `TurnContext` | Defaults to `@cuylabs/agent-channel-m365` ambient context |
153
+ | `getTurnContext` | Optional resolver for the active Microsoft `TurnContext` | Defaults to `@cuylabs/channel-m365-agent-core` ambient context |
154
154
  | `authToken` | Optional pre-resolved gateway token | Local development or specialized hosts; normally omitted in production |
155
155
  | `toolOptions` | Optional metadata such as `orchestratorName` | Host/application configuration |
156
156
 
package/dist/index.d.ts CHANGED
@@ -139,7 +139,7 @@ interface CreateA365ChatHistoryMiddlewareOptions {
139
139
  * Gets the active Microsoft TurnContext.
140
140
  *
141
141
  * Defaults to reading `currentM365TurnContext()?.turnContext` from
142
- * `@cuylabs/agent-channel-m365`. Non-M365 hosts are skipped by default.
142
+ * `@cuylabs/channel-m365-agent-core`. Non-M365 hosts are skipped by default.
143
143
  */
144
144
  getTurnContext?: () => MaybePromise<A365TurnContextLike | undefined>;
145
145
  /**
@@ -198,7 +198,7 @@ interface CreateA365ToolingTurnToolProviderOptions {
198
198
  * Gets the active Microsoft TurnContext.
199
199
  *
200
200
  * Defaults to reading `currentM365TurnContext()?.turnContext` from
201
- * `@cuylabs/agent-channel-m365`. Pass this in tests or in hosts that bind
201
+ * `@cuylabs/channel-m365-agent-core`. Pass this in tests or in hosts that bind
202
202
  * TurnContext differently. Custom hosts should return a real Microsoft
203
203
  * TurnContext or a compatible object with the activity fields required by
204
204
  * Microsoft's A365 tooling SDK, including conversation and agent identity
package/dist/index.js CHANGED
@@ -3,7 +3,7 @@ import {
3
3
  createMCPManager
4
4
  } from "@cuylabs/agent-core";
5
5
  var A365_TOOLING_PACKAGE = "@microsoft/agents-a365-tooling";
6
- var M365_CHANNEL_PACKAGE = "@cuylabs/agent-channel-m365";
6
+ var M365_CHANNEL_PACKAGE = "@cuylabs/channel-m365-agent-core";
7
7
  var DEFAULT_PROVIDER_NAME = "a365-tooling";
8
8
  var DEFAULT_SERVER_TIMEOUT_MS = 5e3;
9
9
  var DEFAULT_CHAT_HISTORY_MIDDLEWARE_NAME = "a365-chat-history";
@@ -567,10 +567,10 @@ function logConnectionStatuses(logger, providerName, statuses) {
567
567
  }
568
568
  }
569
569
  function defaultMissingTurnContextMessage() {
570
- return "createA365ToolingTurnToolProvider: no ambient TurnContext. This provider must run inside an @cuylabs/agent-channel-m365 turn. For tests or custom hosts, pass options.getTurnContext.";
570
+ return "createA365ToolingTurnToolProvider: no ambient TurnContext. This provider must run inside an @cuylabs/channel-m365-agent-core turn. For tests or custom hosts, pass options.getTurnContext.";
571
571
  }
572
572
  function defaultMissingChannelPackageMessage() {
573
- return "createA365ToolingTurnToolProvider: @cuylabs/agent-channel-m365 is not installed. Install @cuylabs/agent-channel-m365 or pass options.getTurnContext.";
573
+ return "createA365ToolingTurnToolProvider: @cuylabs/channel-m365-agent-core is not installed. Install @cuylabs/channel-m365-agent-core or pass options.getTurnContext.";
574
574
  }
575
575
  function isMissingModuleError(error, packageName) {
576
576
  if (!(error instanceof Error)) {
package/docs/README.md CHANGED
@@ -20,7 +20,7 @@ The short version:
20
20
 
21
21
  - agent-core owns the platform-neutral runtime, model loop, tool execution, and
22
22
  MCP client manager.
23
- - `agent-channel-m365` owns M365 Activity ingress and ambient `TurnContext`
23
+ - `channel-m365-agent-core` owns M365 Activity ingress and ambient `TurnContext`
24
24
  binding.
25
25
  - Microsoft's Agent 365 tooling SDK owns A365 MCP server discovery and token
26
26
  attachment.
@@ -8,7 +8,7 @@ M365-hosted agent to receive Microsoft Agent 365 tools for the current turn.
8
8
  | Layer | Owns | Does not own |
9
9
  | --- | --- | --- |
10
10
  | `@cuylabs/agent-core` | Agent runtime, model loop, tool execution, MCP client lifecycle, `turnToolProviders` | Microsoft channel objects, Azure auth, Agent 365 discovery |
11
- | `@cuylabs/agent-channel-m365` | M365 Activity/CloudAdapter ingress and ambient `TurnContext` binding | Agent 365 MCP discovery or MCP client connection |
11
+ | `@cuylabs/channel-m365-agent-core` | M365 Activity/CloudAdapter ingress and ambient `TurnContext` binding | Agent 365 MCP discovery or MCP client connection |
12
12
  | `@microsoft/agents-a365-tooling` | Agent 365 tooling discovery, `ToolingManifest.json` dev mode, gateway calls, token exchange, per-server auth headers | agent-core tool registration or model-loop lifecycle |
13
13
  | `@cuylabs/agent-a365-tooling` | Glue that resolves Agent 365 MCP servers for the current turn and exposes them as agent-core turn-scoped MCP tools | Chat transport, model provider, long-lived pooling, token refresh |
14
14
 
@@ -21,7 +21,7 @@ packages.
21
21
  At runtime, one user message flows like this:
22
22
 
23
23
  1. M365 channel receives an Activity.
24
- 2. `@cuylabs/agent-channel-m365` binds the active Microsoft `TurnContext` in
24
+ 2. `@cuylabs/channel-m365-agent-core` binds the active Microsoft `TurnContext` in
25
25
  AsyncLocalStorage.
26
26
  3. The host calls `agent.chat()` through the M365 adapter.
27
27
  4. agent-core starts the chat turn.
@@ -123,7 +123,7 @@ this package still maps those configs into agent-core MCP.
123
123
  | --- | --- | --- |
124
124
  | `authorization` | Microsoft Agents SDK `Authorization` object used for token exchange | M365 host application / `@microsoft/agents-hosting` setup |
125
125
  | `authHandlerName` | Name of the auth handler configured for Agent 365 token exchange | Microsoft Agents SDK app configuration |
126
- | `getTurnContext` | Optional resolver for the active Microsoft `TurnContext` | Defaults to `@cuylabs/agent-channel-m365` ambient context |
126
+ | `getTurnContext` | Optional resolver for the active Microsoft `TurnContext` | Defaults to `@cuylabs/channel-m365-agent-core` ambient context |
127
127
  | `authToken` | Optional pre-resolved gateway token | Local development or specialized hosts |
128
128
  | `toolOptions` | Optional metadata such as `orchestratorName` | Host/application configuration |
129
129
 
@@ -135,7 +135,7 @@ By default, this package reads:
135
135
  currentM365TurnContext()?.turnContext
136
136
  ```
137
137
 
138
- from `@cuylabs/agent-channel-m365`.
138
+ from `@cuylabs/channel-m365-agent-core`.
139
139
 
140
140
  That means the provider must run inside an M365 channel turn unless the host
141
141
  passes `getTurnContext`.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cuylabs/agent-a365-tooling",
3
- "version": "7.1.0",
3
+ "version": "7.2.1",
4
4
  "description": "Microsoft Agent 365 tooling adapter for @cuylabs/agent-core turn-scoped MCP tools",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -18,15 +18,15 @@
18
18
  "README.md"
19
19
  ],
20
20
  "dependencies": {
21
- "@cuylabs/agent-core": "^7.1.0"
21
+ "@cuylabs/agent-core": "^7.2.1"
22
22
  },
23
23
  "peerDependencies": {
24
+ "@cuylabs/channel-m365-agent-core": "^0.3.0",
24
25
  "@microsoft/agents-a365-tooling": ">=0.2.0-preview.5 <1.0.0",
25
- "@microsoft/agents-hosting": ">=1.5.0 <2.0.0",
26
- "@cuylabs/agent-channel-m365": "^7.1.0"
26
+ "@microsoft/agents-hosting": ">=1.5.0 <2.0.0"
27
27
  },
28
28
  "peerDependenciesMeta": {
29
- "@cuylabs/agent-channel-m365": {
29
+ "@cuylabs/channel-m365-agent-core": {
30
30
  "optional": true
31
31
  },
32
32
  "@microsoft/agents-hosting": {
@@ -35,17 +35,17 @@
35
35
  },
36
36
  "devDependencies": {
37
37
  "@ai-sdk/openai": "4.0.0-beta.38",
38
- "@modelcontextprotocol/sdk": "^1.29.0",
38
+ "@cuylabs/channel-m365-agent-core": "^0.3.0",
39
39
  "@microsoft/agents-a365-tooling": "0.2.0-preview.5",
40
40
  "@microsoft/agents-hosting": "^1.5.3",
41
+ "@modelcontextprotocol/sdk": "^1.29.0",
41
42
  "@types/node": "^22.0.0",
42
43
  "dotenv": "^17.2.3",
43
44
  "tsup": "^8.0.0",
44
45
  "tsx": "^4.21.0",
45
46
  "typescript": "^5.7.0",
46
47
  "vitest": "^4.0.18",
47
- "zod": "^3.25.76 || ^4.1.8",
48
- "@cuylabs/agent-channel-m365": "^7.1.0"
48
+ "zod": "^3.25.76 || ^4.1.8"
49
49
  },
50
50
  "keywords": [
51
51
  "agent",