@tomflow/chatloop-extension 0.4.10 → 0.4.12

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.
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "manifest_version": 3,
3
3
  "name": "Chat Loop Extension",
4
- "version": "0.4.10",
4
+ "version": "0.4.12",
5
5
  "description": "Chat Loop browser companion: Eye actions, Turn observer, Continue and Handoff Actions",
6
6
  "permissions": [
7
7
  "activeTab",
@@ -171,8 +171,11 @@ chrome.runtime.onMessage.addListener((message,sender,reply)=>{
171
171
  'CHAT_LOOP_SESSION_START_RESULT_V1'].includes(type)&&
172
172
  sender?.url===chrome.runtime.getURL('start.html')+'?requestId='+sourceId);
173
173
  return workerApi.audit.observe('browser.dispatch.'+type,
174
- onBrowserMessage,'browser',{
174
+ // Read dispatchSpan only when the AOP invokes its target: onBegin has
175
+ // already allocated the child Span. Passing it as an eager argument
176
+ // captures undefined before onBegin and breaks Native parent linkage.
177
+ (msg,src,cb)=>onBrowserMessage(msg,src,cb,dispatchSpan),'browser',{
175
178
  ...(actionSource&&message.traceParent?{parent:message.traceParent}:{}),
176
179
  onBegin:ids=>{dispatchSpan=ids;}
177
- })(message,sender,respond,dispatchSpan);
180
+ })(message,sender,respond);
178
181
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tomflow/chatloop-extension",
3
- "version": "0.4.10",
3
+ "version": "0.4.12",
4
4
  "type": "module",
5
5
  "description": "Chat Loop Extension package: nine formal Action pages and its own native CLI bridge",
6
6
  "bin": {
@@ -33,6 +33,6 @@
33
33
  ".": "./index.mjs"
34
34
  },
35
35
  "dependencies": {
36
- "@tomflow/chatloop-trace": "0.4.4"
36
+ "@tomflow/chatloop-trace": "0.4.5"
37
37
  }
38
38
  }