@aws/agentcore 0.5.0 → 0.5.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.
@@ -991,7 +991,8 @@ cdk/node_modules/
991
991
  | sort firstSeen desc
992
992
  | limit ${bkr}`,c=await kKe(i,P7t,s,o,r),u=[];for(let p of c){let A=p.find(_=>_.field==="sessionId")?.value,f=parseInt(p.find(_=>_.field==="spanCount")?.value??"0",10),y=p.find(_=>_.field==="firstSeen")?.value??"";A&&A!=="unknown"&&u.push({sessionId:A,spanCount:f,firstSeen:y})}return u}async function wkr(e){let{runtimeId:t,runtimeLogGroup:n,region:o,lookbackDays:r}=e,i=Date.now(),s=i-r*24*60*60*1e3,c=Math.floor(s/1e3),u=Math.floor(i/1e3),p=new HO.CloudWatchLogsClient({credentials:Tr(),region:o}),A=`fields @message, attributes.session.id as sessionId, traceId
993
993
  | parse resource.attributes.cloud.resource_id "runtime/*/" as parsedAgentId
994
- | filter parsedAgentId = '${u9(t)}'`;e.sessionId&&(A+=`
994
+ | filter parsedAgentId = '${u9(t)}'
995
+ | filter ispresent(scope.name)`;e.sessionId&&(A+=`
995
996
  | filter attributes.session.id = '${u9(e.sessionId)}'`),e.traceId&&(A+=`
996
997
  | filter traceId = '${u9(e.traceId)}'`),A+=`
997
998
  | sort startTimeUnixNano asc
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws/agentcore",
3
- "version": "0.5.0",
3
+ "version": "0.5.1",
4
4
  "description": "CLI for Amazon Bedrock AgentCore",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {