@kya-os/mcp-i 1.5.9-canary.2 → 1.5.9-canary.3

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.
@@ -70,9 +70,12 @@ class AgentShieldProofDestination {
70
70
  // Extract session_id from first proof for AgentShield session grouping
71
71
  // AgentShield uses this for analytics and detection monitoring
72
72
  const sessionId = proofs[0]?.meta?.sessionId || 'unknown';
73
+ // Extract delegation_id from proof meta.delegationRef if present
74
+ // This allows AgentShield to link proofs to delegations for audit trails
75
+ const delegationId = proofs[0]?.meta?.delegationRef || null;
73
76
  // AgentShield API format requires delegation_id and session_id wrapper
74
77
  const requestBody = {
75
- delegation_id: null, // null for proofs without delegation context
78
+ delegation_id: delegationId, // Populate from proof meta.delegationRef when present
76
79
  session_id: sessionId, // AgentShield session grouping (same as meta.sessionId)
77
80
  proofs: proofs
78
81
  };