@tomflow/chatloop-tools 0.9.12 → 0.9.13
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 +4 -7
- package/lib/extension-proxy.mjs +2 -2
- package/lib/supervisor-runtime.mjs +4 -0
- package/package.json +5 -5
package/index.mjs
CHANGED
|
@@ -111,13 +111,10 @@ async function runtime(){
|
|
|
111
111
|
// Trace and platform carrier SDKs are independent publishers. Their
|
|
112
112
|
// non-authoritative observation ports join the existing Supervisor sink.
|
|
113
113
|
// The Trace writer's own writes must not audit themselves recursively.
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
.includes(event.api))return;
|
|
119
|
-
recordApi(event);
|
|
120
|
-
});
|
|
114
|
+
// Writer method spans are committed by that writer's own non-recursive
|
|
115
|
+
// raw append path; the shared subscription only transports other Trace
|
|
116
|
+
// SDK calls through the existing Supervisor IPC.
|
|
117
|
+
subscribeTraceApiLog(recordApi);
|
|
121
118
|
if(typeof platformProvider?.subscribeTunnelApiLog==='function')
|
|
122
119
|
platformProvider.subscribeTunnelApiLog(recordApi);
|
|
123
120
|
tunnel.configureTunnelProvider({
|
package/lib/extension-proxy.mjs
CHANGED
|
@@ -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.
|
|
26
|
-
const EXTENSION_VERSION='0.4.
|
|
25
|
+
const EXTENSION_PACKAGE='@tomflow/chatloop-extension@0.4.9';
|
|
26
|
+
const EXTENSION_VERSION='0.4.9';
|
|
27
27
|
const NPX_COMMAND=process.platform==='win32'?'npx.cmd':'npx';
|
|
28
28
|
export const extensionInvocation=name=>{
|
|
29
29
|
const command=extensionCommand(name);
|
|
@@ -134,7 +134,11 @@ const log=(event,detail={})=>{
|
|
|
134
134
|
};
|
|
135
135
|
const traceHealth=()=>{
|
|
136
136
|
const health=traceWriter.health();
|
|
137
|
+
const writerAuditLost=(health.apiObservation?.dropped||0)>0||
|
|
138
|
+
(health.apiObservation?.sinkFailures||0)>0;
|
|
137
139
|
return {...health,controlAuditDropped,controlAuditPending:controlAudit.length,
|
|
140
|
+
...(writerAuditLost&&health.status==='OK'
|
|
141
|
+
?{status:'TRACE_DEGRADED',errorCode:'TRACE_WRITER_API_LOG_GAP'}:{}),
|
|
138
142
|
...(controlAuditDropped>0&&health.status==='OK'
|
|
139
143
|
?{status:'TRACE_DEGRADED',errorCode:'TRACE_AUDIT_QUEUE_SATURATED'}:{})};
|
|
140
144
|
};
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"publishConfig": {
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
|
-
"version": "0.9.
|
|
6
|
+
"version": "0.9.13",
|
|
7
7
|
"type": "module",
|
|
8
8
|
"description": "Chat Loop local tools: MCP gateway, isolated bundled tunnel-client and unified CLI",
|
|
9
9
|
"bin": {
|
|
@@ -29,15 +29,15 @@
|
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"@wonderwhy-er/desktop-commander": "0.2.44",
|
|
32
|
-
"@tomflow/chatloop-context": "0.6.
|
|
33
|
-
"@tomflow/chatloop-trace": "0.4.
|
|
32
|
+
"@tomflow/chatloop-context": "0.6.9",
|
|
33
|
+
"@tomflow/chatloop-trace": "0.4.3"
|
|
34
34
|
},
|
|
35
35
|
"engines": {
|
|
36
36
|
"node": ">=24"
|
|
37
37
|
},
|
|
38
38
|
"optionalDependencies": {
|
|
39
|
-
"@tomflow/chatloop-tunnel-darwin-x64": "0.0.
|
|
40
|
-
"@tomflow/chatloop-tunnel-darwin-arm64": "0.0.
|
|
39
|
+
"@tomflow/chatloop-tunnel-darwin-x64": "0.0.23",
|
|
40
|
+
"@tomflow/chatloop-tunnel-darwin-arm64": "0.0.23"
|
|
41
41
|
},
|
|
42
42
|
"exports": {
|
|
43
43
|
".": "./index.mjs"
|