trickle-observe 0.2.121 → 0.2.122
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/dist/observe-register.js +11 -0
- package/package.json +2 -2
- package/src/observe-register.ts +10 -0
package/dist/observe-register.js
CHANGED
|
@@ -1572,6 +1572,17 @@ if (enabled) {
|
|
|
1572
1572
|
}
|
|
1573
1573
|
catch { /* not critical */ }
|
|
1574
1574
|
}
|
|
1575
|
+
// Claude Agent SDK
|
|
1576
|
+
if (request.includes('claude-agent-sdk') && !expressPatched.has('claude-agent-sdk')) {
|
|
1577
|
+
expressPatched.add('claude-agent-sdk');
|
|
1578
|
+
try {
|
|
1579
|
+
// The Claude Agent SDK uses hooks config — we can't easily patch
|
|
1580
|
+
// from Module._load since it's ESM-only. Log detection for now.
|
|
1581
|
+
if (debug)
|
|
1582
|
+
console.log('[trickle] Claude Agent SDK detected — use hooks for tracing');
|
|
1583
|
+
}
|
|
1584
|
+
catch { /* not critical */ }
|
|
1585
|
+
}
|
|
1575
1586
|
// Google Gemini SDK
|
|
1576
1587
|
if (request === '@google/genai' && !expressPatched.has('@google/genai')) {
|
|
1577
1588
|
expressPatched.add('@google/genai');
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "trickle-observe",
|
|
3
|
-
"version": "0.2.
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "0.2.122",
|
|
4
|
+
"description": "Zero-code runtime observability for JavaScript/TypeScript. Auto-instruments Express, OpenAI, Anthropic, Gemini, MCP. Captures functions, variables, LLM calls, agent workflows.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
7
7
|
"exports": {
|
package/src/observe-register.ts
CHANGED
|
@@ -1557,6 +1557,16 @@ if (enabled) {
|
|
|
1557
1557
|
} catch { /* not critical */ }
|
|
1558
1558
|
}
|
|
1559
1559
|
|
|
1560
|
+
// Claude Agent SDK
|
|
1561
|
+
if (request.includes('claude-agent-sdk') && !expressPatched.has('claude-agent-sdk')) {
|
|
1562
|
+
expressPatched.add('claude-agent-sdk');
|
|
1563
|
+
try {
|
|
1564
|
+
// The Claude Agent SDK uses hooks config — we can't easily patch
|
|
1565
|
+
// from Module._load since it's ESM-only. Log detection for now.
|
|
1566
|
+
if (debug) console.log('[trickle] Claude Agent SDK detected — use hooks for tracing');
|
|
1567
|
+
} catch { /* not critical */ }
|
|
1568
|
+
}
|
|
1569
|
+
|
|
1560
1570
|
// Google Gemini SDK
|
|
1561
1571
|
if (request === '@google/genai' && !expressPatched.has('@google/genai')) {
|
|
1562
1572
|
expressPatched.add('@google/genai');
|