@cuylabs/agent-a365-observability 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
@@ -133,7 +133,7 @@ await runWithA365TurnContext(
133
133
  );
134
134
  ```
135
135
 
136
- If you use `@cuylabs/agent-channel-m365`, this wrapper is built into the channel
136
+ If you use `@cuylabs/channel-m365-agent-core`, this wrapper is built into the channel
137
137
  adapter:
138
138
 
139
139
  ```typescript
@@ -202,7 +202,7 @@ standard Agent 365 identity set. Structured fields such as `tenantId`,
202
202
  keys.
203
203
 
204
204
  Microsoft's baggage processor does not overwrite span attributes that
205
- agent-core already set. In normal `@cuylabs/agent-channel-m365` usage this is
205
+ agent-core already set. In normal `@cuylabs/channel-m365-agent-core` usage this is
206
206
  fine because the channel's default session strategy uses the M365
207
207
  `conversation.id` as the agent-core session ID. If you use custom M365 session
208
208
  mapping, `gen_ai.conversation.id` reflects the custom agent-core session ID.
package/docs/README.md CHANGED
@@ -26,7 +26,7 @@ The short version:
26
26
 
27
27
  - agent-core owns platform-neutral spans for agent turns, tools, and model
28
28
  calls.
29
- - `agent-channel-m365` owns Activity ingress and turn wrapping for M365 hosts.
29
+ - `channel-m365-agent-core` owns Activity ingress and turn wrapping for M365 hosts.
30
30
  - Microsoft's Agent 365 observability SDK owns exporter registration and
31
31
  baggage-to-span enrichment.
32
32
  - this package starts Microsoft observability and wraps callbacks,
@@ -67,7 +67,7 @@ That matters for a few keys:
67
67
  - `createA365TracingConfig({ agentId, agentDescription, agentVersion })`
68
68
  causes agent-core to set those keys before baggage is copied.
69
69
 
70
- For normal `@cuylabs/agent-channel-m365` usage this is fine because the default
70
+ For normal `@cuylabs/channel-m365-agent-core` usage this is fine because the default
71
71
  session strategy uses the M365 `conversation.id` as the agent-core session ID.
72
72
  If you use a custom M365 session mapping, `gen_ai.conversation.id` will reflect
73
73
  the custom agent-core session ID, not the original M365 conversation ID.
@@ -8,7 +8,7 @@ M365-hosted agent to export Agent 365-shaped telemetry.
8
8
  | Layer | Owns | Does not own |
9
9
  | ---------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------- |
10
10
  | `@cuylabs/agent-core` | Agent runtime, model loop, tool execution, OpenTelemetry span emission | Microsoft exporter startup, Agent 365 baggage, token resolution |
11
- | `@cuylabs/agent-channel-m365` | M365 Activity/CloudAdapter ingress, session mapping, optional per-turn observability wrapper | Exporter lifecycle or OpenTelemetry provider registration |
11
+ | `@cuylabs/channel-m365-agent-core` | M365 Activity/CloudAdapter ingress, session mapping, optional per-turn observability wrapper | Exporter lifecycle or OpenTelemetry provider registration |
12
12
  | `@microsoft/agents-a365-observability` | Agent 365 exporter, baggage builder, baggage span processor, per-request export token context | agent-core tracing config or channel message handling |
13
13
  | `@microsoft/agents-a365-observability-hosting` | M365 hosting utilities such as `AgenticTokenCache` for OBO authorization | S2S token exchange or agent-core telemetry |
14
14
  | `@cuylabs/agent-a365-observability` | Glue that starts Microsoft observability, produces agent-core tracing config, and wraps turns with A365 baggage | Model provider, chat transport, Microsoft SDK internals |
@@ -148,7 +148,7 @@ M365 per-user hosts can use `refreshA365OboObservabilityToken(...)` and
148
148
 
149
149
  ## M365 Session Mapping
150
150
 
151
- `@cuylabs/agent-channel-m365` defaults to using M365 `conversation.id` as the
151
+ `@cuylabs/channel-m365-agent-core` defaults to using M365 `conversation.id` as the
152
152
  agent-core session ID. That keeps agent-core's `gen_ai.conversation.id` aligned
153
153
  with Agent 365 conversation identity.
154
154
 
@@ -49,7 +49,7 @@ focuses on startup, token resolution, and Agent 365 baggage.
49
49
  | `InferenceScope` | Not used by default. | AI SDK telemetry already emits model spans under the agent turn. |
50
50
  | OpenAI Agents extension | Not used by default. | It patches `@openai/agents`; agent-core is the harness we adapt. |
51
51
  | LangChain extension | Not used by default. | It patches LangChain callbacks; agent-core already owns the turn and tool lifecycle. |
52
- | Hosting middleware | Not used directly. | `agent-channel-m365` and this package perform the equivalent turn wrapping for cuylabs hosts. |
52
+ | Hosting middleware | Not used directly. | `channel-m365-agent-core` and this package perform the equivalent turn wrapping for cuylabs hosts. |
53
53
 
54
54
  These are intentional gaps, not missing wiring. The default integration should
55
55
  enrich and export the spans agent-core already creates.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cuylabs/agent-a365-observability",
3
- "version": "7.1.0",
3
+ "version": "7.2.1",
4
4
  "description": "Microsoft Agent 365 observability adapter for @cuylabs/agent-core",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -29,7 +29,7 @@
29
29
  "typescript": "^5.7.0",
30
30
  "vitest": "^4.0.18",
31
31
  "zod": "^3.25.76 || ^4.1.8",
32
- "@cuylabs/agent-core": "^7.1.0"
32
+ "@cuylabs/agent-core": "^7.2.1"
33
33
  },
34
34
  "peerDependencies": {
35
35
  "@cuylabs/agent-core": "^7.0.0",