@tomflow/chatloop-tools 0.9.10 → 0.9.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.
@@ -22,8 +22,8 @@ export function configureExtensionProxy(ports){
22
22
  // The package/version are exact and checked against the same Context
23
23
  // dependency deployed with the Tools release.
24
24
  export {extensionTools};
25
- const EXTENSION_PACKAGE='@tomflow/chatloop-extension@0.4.6';
26
- const EXTENSION_VERSION='0.4.6';
25
+ const EXTENSION_PACKAGE='@tomflow/chatloop-extension@0.4.8';
26
+ const EXTENSION_VERSION='0.4.8';
27
27
  const NPX_COMMAND=process.platform==='win32'?'npx.cmd':'npx';
28
28
  export const extensionInvocation=name=>{
29
29
  const command=extensionCommand(name);
@@ -54,8 +54,16 @@ const OBSERVER_ID=/^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[
54
54
  // Never accept raw UI text, arguments, URLs or other caller payloads.
55
55
  const OBSERVER_NAME=/^(?:mcp|extension|tools|context|trace|tunnel)\.[A-Za-z][A-Za-z0-9_.:-]{1,119}$/;
56
56
  const OBSERVER_KEYS=new Set(['contract','action','requestId','callId',
57
- 'traceId','spanId','parentSpanId','apiName','phase','durationMs','errorCode']);
57
+ 'traceId','spanId','parentSpanId','apiName','phase','durationMs','errorCode',
58
+ 'ownerNonce','managerPid']);
58
59
  function recordApiObservation(req){
60
+ // Native audit carries its exact Manager lock identity on the same IPC
61
+ // request. The internal Tools producer uses the existing trusted channel.
62
+ if(req?.ownerNonce!==undefined||req?.managerPid!==undefined){
63
+ if(req.ownerNonce!==nonce||req.managerPid!==process.pid)
64
+ throw Object.assign(Error('TRACE_API_OWNER_MISMATCH'),
65
+ {code:'TRACE_API_OWNER_MISMATCH'});
66
+ }
59
67
  if(req?.contract!==CONTRACT||!OBSERVER_ID.test(req.requestId||'')||
60
68
  !OBSERVER_ID.test(req.callId||'')||
61
69
  (req.traceId!==undefined&&!OBSERVER_ID.test(req.traceId))||
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "0.9.10",
6
+ "version": "0.9.12",
7
7
  "type": "module",
8
8
  "description": "Chat Loop local tools: MCP gateway, isolated bundled tunnel-client and unified CLI",
9
9
  "bin": {
@@ -29,7 +29,7 @@
29
29
  },
30
30
  "dependencies": {
31
31
  "@wonderwhy-er/desktop-commander": "0.2.44",
32
- "@tomflow/chatloop-context": "0.6.6",
32
+ "@tomflow/chatloop-context": "0.6.8",
33
33
  "@tomflow/chatloop-trace": "0.4.2"
34
34
  },
35
35
  "engines": {