@integrity-labs/agt-cli 0.28.396 → 0.28.398

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.
@@ -29748,10 +29748,15 @@ function readDirectChatSessionState(agentDir, nowMs) {
29748
29748
 
29749
29749
  // src/direct-chat-channel-meta.ts
29750
29750
  function buildDirectChatChannelMeta(input) {
29751
+ const identity = {};
29752
+ if (input.userName) identity.user_name = input.userName;
29753
+ if (input.userEmail) identity.user_email = input.userEmail;
29754
+ if (input.userRole) identity.user_role = input.userRole;
29751
29755
  return {
29752
29756
  session_id: input.sessionId,
29753
29757
  user: "webapp",
29754
29758
  source: "direct-chat",
29759
+ ...identity,
29755
29760
  // String flag the agent's channel instructions (and the renderer) read:
29756
29761
  // 'false' = notice (do not reply), 'true' = normal message (reply expected).
29757
29762
  requires_reply: input.isNotice ? "false" : "true",
@@ -35526,6 +35531,7 @@ var mcp = new Server(
35526
35531
  // have room to be explicit.
35527
35532
  "CRITICAL: every response to a direct-chat <channel> tag MUST go through direct_chat.reply (passing the session_id verbatim). Text in your session WITHOUT a direct_chat.reply call never reaches the operator \u2014 the reply dies inside the agent process.",
35528
35533
  'Messages from the webapp Direct Chat arrive as <channel source="direct-chat" session_id="..." user="...">.',
35534
+ "When the tag carries user_name (and sometimes user_email / user_role), that is the verified human you are talking with; address them by name and tailor your reply to who they are. If those attributes are absent, the sender is unknown, so just reply helpfully without personalization.",
35529
35535
  "Reply using the direct_chat.reply tool, passing the session_id from the tag.",
35530
35536
  "Always reply to every direct chat message that expects a reply (its meta has requires_reply=true, or no requires_reply field) \u2014 the user is waiting in the webapp.",
35531
35537
  "NEVER call direct_chat.reply for a NOTICE \u2014 a notification whose meta has requires_reply=false (ENG-6381). It is an informational FYI (e.g. an integration-status update), not a question, and it has ALREADY been acknowledged for you. Replying would wrongly post into the operator\u2019s chat history and burn a turn. Just take it into account and carry on.",
@@ -35975,7 +35981,14 @@ async function pollForMessages(sinceMs) {
35975
35981
  params: {
35976
35982
  content: injectContent,
35977
35983
  meta: {
35978
- ...buildDirectChatChannelMeta({ sessionId: msg.session_id, isNotice }),
35984
+ ...buildDirectChatChannelMeta({
35985
+ sessionId: msg.session_id,
35986
+ isNotice,
35987
+ // ENG-8047: pure passthrough of the server-resolved human identity.
35988
+ userName: msg.sender_name,
35989
+ userEmail: msg.sender_email,
35990
+ userRole: msg.sender_role
35991
+ }),
35979
35992
  ...attachmentMeta
35980
35993
  }
35981
35994
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@integrity-labs/agt-cli",
3
- "version": "0.28.396",
3
+ "version": "0.28.398",
4
4
  "description": "Augmented Team CLI — agent provisioning and management",
5
5
  "type": "module",
6
6
  "engines": {