@tomflow/chatloop-tools 0.9.50 → 0.9.51

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.
package/index.mjs CHANGED
@@ -253,7 +253,7 @@ async function runtime(){
253
253
  phase:event.phase,
254
254
  ...(event.durationMs!==null?{durationMs:event.durationMs}:{}),
255
255
  ...(event.errorCode?{errorCode:event.errorCode}:{})
256
- },900).then(reply=>{
256
+ },3000).then(reply=>{
257
257
  // A transport ACK is not proof that the Writer persisted this span.
258
258
  if(reply?.status!=='OK'||!OBSERVER_UUID.test(reply.eventId||'')){
259
259
  const code=/^[A-Z][A-Z0-9_]{1,95}$/.test(reply?.error?.code||'')
package/lib/control.mjs CHANGED
@@ -100,7 +100,10 @@ const verifiedBusinessReply=(reply,request)=>{
100
100
  return reply;
101
101
  };
102
102
  export async function talk(request,timeout=12000){
103
- const hello=await send({action:'__ping'},1200);
103
+ // The owner handshake is still required for every IPC call. Only skip the
104
+ // unrelated Writer health snapshot: telemetry calls already have their own
105
+ // persisted receipt and health is queried explicitly via __trace_health.
106
+ const hello=await send({action:'__ping',omitTraceHealth:true},1200);
104
107
  if(hello.contract!==CONTRACT||hello.version!==VERSION||hello.packageVersion!==PACKAGE_VERSION||
105
108
  hello.registrySignature!==registry().map(t=>t.id+':'+t.enabled).join('|'))
106
109
  throw Object.assign(new Error('Version or registry mismatch'),{code:'INCOMPATIBLE_VERSION'});
@@ -293,7 +293,8 @@ async function main(){
293
293
  let work;
294
294
  try{work=req?.action==='__ping'?
295
295
  Promise.resolve({contract:CONTRACT,version:VERSION,packageVersion:PACKAGE_VERSION,registrySignature:catalog.map(t=>t.id+':'+t.enabled).join('|'),ownerNonce:nonce,
296
- managerPid:process.pid,traceHealth:traceHealth()}):req?.action==='__trace_health'
296
+ managerPid:process.pid,
297
+ ...(req.omitTraceHealth===true?{}:{traceHealth:traceHealth()})}):req?.action==='__trace_health'
297
298
  ?Promise.resolve(req.contract===CONTRACT
298
299
  &&REQUEST_ID.test(req.requestId||'')
299
300
  ?{contract:CONTRACT,requestId:req.requestId,
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "0.9.50",
6
+ "version": "0.9.51",
7
7
  "type": "module",
8
8
  "description": "Chat Loop local tools: MCP gateway, isolated bundled tunnel-client and unified CLI",
9
9
  "bin": {