@tangle-network/traces 0.10.3 → 0.11.0
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/README.md +59 -2
- package/dist/{chunk-LC66I5TE.js → chunk-JCI5YXNT.js} +1162 -47
- package/dist/cli.js +79 -10
- package/dist/index.d.ts +509 -1
- package/dist/index.js +77 -3
- package/package.json +4 -2
package/dist/index.js
CHANGED
|
@@ -2,8 +2,10 @@ import {
|
|
|
2
2
|
ACTOR_ATTR,
|
|
3
3
|
ATTR,
|
|
4
4
|
AmpAdapter,
|
|
5
|
+
BLOBS_DIR,
|
|
5
6
|
CODING_REDACTION_RULES,
|
|
6
7
|
CONTENT_CAP,
|
|
8
|
+
COORDINATION_LOG_FILE,
|
|
7
9
|
CORRECTIVE_REACTIONS,
|
|
8
10
|
ClaudeAdapter,
|
|
9
11
|
CodexAdapter,
|
|
@@ -12,6 +14,7 @@ import {
|
|
|
12
14
|
CodexTaskScopeError,
|
|
13
15
|
CopilotAdapter,
|
|
14
16
|
DEFAULT_HARNESS,
|
|
17
|
+
EMPTY_SPAN_RUN_SNAPSHOT,
|
|
15
18
|
EmptySessionError,
|
|
16
19
|
FactoryAdapter,
|
|
17
20
|
ForgeAdapter,
|
|
@@ -24,8 +27,14 @@ import {
|
|
|
24
27
|
PiAdapter,
|
|
25
28
|
QwenAdapter,
|
|
26
29
|
REACTIONS,
|
|
30
|
+
RESULT_FILE,
|
|
31
|
+
RULE,
|
|
32
|
+
SPAWN_JOURNAL_FILE,
|
|
33
|
+
STATUS_MARK,
|
|
27
34
|
SessionWorkflowError,
|
|
28
35
|
TRACES_REDACTION_RULES,
|
|
36
|
+
ZERO_ROLL,
|
|
37
|
+
addSpend,
|
|
29
38
|
alreadyUploaded,
|
|
30
39
|
analyzeAdoption,
|
|
31
40
|
analyzeLiveBatch,
|
|
@@ -35,6 +44,7 @@ import {
|
|
|
35
44
|
buildPolicyEvidenceRecord,
|
|
36
45
|
buildSessionIndex,
|
|
37
46
|
buildSessionIndexFromRows,
|
|
47
|
+
buildSpanRunTree,
|
|
38
48
|
buildTraceFindingPacket,
|
|
39
49
|
capText,
|
|
40
50
|
chatTrajectoryToSpans,
|
|
@@ -48,6 +58,7 @@ import {
|
|
|
48
58
|
collectSessionWorkflow,
|
|
49
59
|
commandAnalyzer,
|
|
50
60
|
commandRedactor,
|
|
61
|
+
connectors,
|
|
51
62
|
countSkillRunsJsonl,
|
|
52
63
|
cwdMatchesSelection,
|
|
53
64
|
defaultTraceLiveAnalysts,
|
|
@@ -57,20 +68,28 @@ import {
|
|
|
57
68
|
exportTraceEvidenceFile,
|
|
58
69
|
exportTraceEvidenceRows,
|
|
59
70
|
exportTraceEvidenceText,
|
|
71
|
+
fileRunContextSupervisorRunReader,
|
|
72
|
+
findSpanSourceFiles,
|
|
73
|
+
forEachTreeNode,
|
|
60
74
|
haloAnalyzer,
|
|
61
75
|
hodoscopeAnalyzer,
|
|
62
76
|
importCodeTraceBench,
|
|
63
77
|
indexSessionIdsByTrace,
|
|
78
|
+
inferRole,
|
|
64
79
|
inspectSessionIndex,
|
|
80
|
+
int,
|
|
65
81
|
isChatTrajectory,
|
|
66
82
|
isChatTrajectoryMessage,
|
|
83
|
+
isFileRunContextDir,
|
|
67
84
|
knownHarnesses,
|
|
68
85
|
listAdapters,
|
|
69
86
|
loadState,
|
|
70
87
|
loadTracesConfig,
|
|
71
88
|
locateSessions,
|
|
72
89
|
looksLikeAgentPrompt,
|
|
90
|
+
mergeRolls,
|
|
73
91
|
mergeTracesConfig,
|
|
92
|
+
ms,
|
|
74
93
|
normalizeRemote,
|
|
75
94
|
outboundHash,
|
|
76
95
|
parseIsoToEpochMs,
|
|
@@ -78,18 +97,30 @@ import {
|
|
|
78
97
|
parseSince,
|
|
79
98
|
planTraceAgenticRoute,
|
|
80
99
|
planUpload,
|
|
100
|
+
readCoordinationLog,
|
|
101
|
+
readFileRunContext,
|
|
81
102
|
readJsonFile,
|
|
82
103
|
readJsonl,
|
|
104
|
+
readRunContextJournal,
|
|
105
|
+
readRunContextSnapshot,
|
|
106
|
+
readRunWatchSnapshot,
|
|
83
107
|
readSessionIndexFile,
|
|
108
|
+
readSpanRunSnapshot,
|
|
84
109
|
recordSessionCorruption,
|
|
85
110
|
redactSpans,
|
|
86
111
|
renderInspectionReport,
|
|
112
|
+
renderRunContextSnapshot,
|
|
113
|
+
renderRunWatchSnapshot,
|
|
114
|
+
renderSpanRunSnapshot,
|
|
87
115
|
resolveAdapter,
|
|
88
116
|
resolveRepoAttrs,
|
|
117
|
+
resolveRunContextDir,
|
|
118
|
+
resolveRunWatchTarget,
|
|
89
119
|
resolveSessionRepoAttrs,
|
|
90
120
|
runCommand,
|
|
91
121
|
runExternalAnalyzers,
|
|
92
122
|
runPipelines,
|
|
123
|
+
runTotals,
|
|
93
124
|
runTraceImprovement,
|
|
94
125
|
runTraceInvestigation,
|
|
95
126
|
runTraceStoreInvestigation,
|
|
@@ -106,6 +137,7 @@ import {
|
|
|
106
137
|
sessionIdFromAttributes,
|
|
107
138
|
sessionIntegrityAttributes,
|
|
108
139
|
span,
|
|
140
|
+
spanRunTotals,
|
|
109
141
|
stampRepoAttrs,
|
|
110
142
|
stampSessionIdentity,
|
|
111
143
|
stampSessionIntegrity,
|
|
@@ -118,21 +150,26 @@ import {
|
|
|
118
150
|
toOpenInferenceSpan,
|
|
119
151
|
toRuntimeStore,
|
|
120
152
|
toTraceSpanEvents,
|
|
153
|
+
tokens,
|
|
121
154
|
totalAgenticFailureMessage,
|
|
122
155
|
traceAgenticKinds,
|
|
123
156
|
traceStreamEventsFromSpans,
|
|
124
157
|
uploadKey,
|
|
158
|
+
usd,
|
|
125
159
|
userPromptSpan,
|
|
126
160
|
validateOtlpSpans,
|
|
161
|
+
watchRunTarget,
|
|
127
162
|
watchSessions,
|
|
163
|
+
wrap,
|
|
128
164
|
writeHodoscopeInput,
|
|
129
165
|
writeInspectionReportFile,
|
|
130
166
|
writeOtlpFile,
|
|
131
167
|
writePolicyEvidenceFile,
|
|
132
168
|
writeSessionIndexFile,
|
|
133
169
|
writeTraceEvidenceExportFile,
|
|
134
|
-
writeTraceImprovementArtifacts
|
|
135
|
-
|
|
170
|
+
writeTraceImprovementArtifacts,
|
|
171
|
+
zeroPricedCost
|
|
172
|
+
} from "./chunk-JCI5YXNT.js";
|
|
136
173
|
|
|
137
174
|
// src/collect.ts
|
|
138
175
|
async function collectSessions(opts = {}) {
|
|
@@ -161,8 +198,10 @@ export {
|
|
|
161
198
|
ATTR,
|
|
162
199
|
AmpAdapter,
|
|
163
200
|
AnalystRegistry,
|
|
201
|
+
BLOBS_DIR,
|
|
164
202
|
CODING_REDACTION_RULES,
|
|
165
203
|
CONTENT_CAP,
|
|
204
|
+
COORDINATION_LOG_FILE,
|
|
166
205
|
CORRECTIVE_REACTIONS,
|
|
167
206
|
ClaudeAdapter,
|
|
168
207
|
CodexAdapter,
|
|
@@ -172,6 +211,7 @@ export {
|
|
|
172
211
|
CopilotAdapter,
|
|
173
212
|
DEFAULT_HARNESS,
|
|
174
213
|
DEFAULT_REDACTION_RULES,
|
|
214
|
+
EMPTY_SPAN_RUN_SNAPSHOT,
|
|
175
215
|
EmptySessionError,
|
|
176
216
|
FactoryAdapter,
|
|
177
217
|
ForgeAdapter,
|
|
@@ -184,8 +224,14 @@ export {
|
|
|
184
224
|
PiAdapter,
|
|
185
225
|
QwenAdapter,
|
|
186
226
|
REACTIONS,
|
|
227
|
+
RESULT_FILE,
|
|
228
|
+
RULE,
|
|
229
|
+
SPAWN_JOURNAL_FILE,
|
|
230
|
+
STATUS_MARK,
|
|
187
231
|
SessionWorkflowError,
|
|
188
232
|
TRACES_REDACTION_RULES,
|
|
233
|
+
ZERO_ROLL,
|
|
234
|
+
addSpend,
|
|
189
235
|
alreadyUploaded,
|
|
190
236
|
analyzeAdoption,
|
|
191
237
|
analyzeLiveBatch,
|
|
@@ -196,6 +242,7 @@ export {
|
|
|
196
242
|
buildPolicyEvidenceRecord,
|
|
197
243
|
buildSessionIndex,
|
|
198
244
|
buildSessionIndexFromRows,
|
|
245
|
+
buildSpanRunTree,
|
|
199
246
|
buildTraceFindingPacket,
|
|
200
247
|
capText,
|
|
201
248
|
chatTrajectoryToSpans,
|
|
@@ -210,6 +257,7 @@ export {
|
|
|
210
257
|
collectSessions,
|
|
211
258
|
commandAnalyzer,
|
|
212
259
|
commandRedactor,
|
|
260
|
+
connectors,
|
|
213
261
|
countSkillRunsJsonl,
|
|
214
262
|
createHostedClient,
|
|
215
263
|
cwdMatchesSelection,
|
|
@@ -220,14 +268,20 @@ export {
|
|
|
220
268
|
exportTraceEvidenceFile,
|
|
221
269
|
exportTraceEvidenceRows,
|
|
222
270
|
exportTraceEvidenceText,
|
|
271
|
+
fileRunContextSupervisorRunReader,
|
|
272
|
+
findSpanSourceFiles,
|
|
273
|
+
forEachTreeNode,
|
|
223
274
|
haloAnalyzer,
|
|
224
275
|
hodoscopeAnalyzer,
|
|
225
276
|
hostedClientFromEnv,
|
|
226
277
|
importCodeTraceBench,
|
|
227
278
|
indexSessionIdsByTrace,
|
|
279
|
+
inferRole,
|
|
228
280
|
inspectSessionIndex,
|
|
281
|
+
int,
|
|
229
282
|
isChatTrajectory,
|
|
230
283
|
isChatTrajectoryMessage,
|
|
284
|
+
isFileRunContextDir,
|
|
231
285
|
knownHarnesses,
|
|
232
286
|
listAdapters,
|
|
233
287
|
loadState,
|
|
@@ -235,7 +289,9 @@ export {
|
|
|
235
289
|
locateSessions,
|
|
236
290
|
looksLikeAgentPrompt,
|
|
237
291
|
makeFinding,
|
|
292
|
+
mergeRolls,
|
|
238
293
|
mergeTracesConfig,
|
|
294
|
+
ms,
|
|
239
295
|
normalizeRemote,
|
|
240
296
|
outboundHash,
|
|
241
297
|
parseIsoToEpochMs,
|
|
@@ -243,20 +299,32 @@ export {
|
|
|
243
299
|
parseSince,
|
|
244
300
|
planTraceAgenticRoute,
|
|
245
301
|
planUpload,
|
|
302
|
+
readCoordinationLog,
|
|
303
|
+
readFileRunContext,
|
|
246
304
|
readJsonFile,
|
|
247
305
|
readJsonl,
|
|
306
|
+
readRunContextJournal,
|
|
307
|
+
readRunContextSnapshot,
|
|
308
|
+
readRunWatchSnapshot,
|
|
248
309
|
readSessionIndexFile,
|
|
310
|
+
readSpanRunSnapshot,
|
|
249
311
|
recordSessionCorruption,
|
|
250
312
|
redactSpans,
|
|
251
313
|
redactString,
|
|
252
314
|
redactValue,
|
|
253
315
|
renderInspectionReport,
|
|
316
|
+
renderRunContextSnapshot,
|
|
317
|
+
renderRunWatchSnapshot,
|
|
318
|
+
renderSpanRunSnapshot,
|
|
254
319
|
resolveAdapter,
|
|
255
320
|
resolveRepoAttrs,
|
|
321
|
+
resolveRunContextDir,
|
|
322
|
+
resolveRunWatchTarget,
|
|
256
323
|
resolveSessionRepoAttrs,
|
|
257
324
|
runCommand,
|
|
258
325
|
runExternalAnalyzers,
|
|
259
326
|
runPipelines,
|
|
327
|
+
runTotals,
|
|
260
328
|
runTraceImprovement,
|
|
261
329
|
runTraceInvestigation,
|
|
262
330
|
runTraceStoreInvestigation,
|
|
@@ -273,6 +341,7 @@ export {
|
|
|
273
341
|
sessionIdFromAttributes,
|
|
274
342
|
sessionIntegrityAttributes,
|
|
275
343
|
span,
|
|
344
|
+
spanRunTotals,
|
|
276
345
|
stampRepoAttrs,
|
|
277
346
|
stampSessionIdentity,
|
|
278
347
|
stampSessionIntegrity,
|
|
@@ -285,18 +354,23 @@ export {
|
|
|
285
354
|
toOpenInferenceSpan,
|
|
286
355
|
toRuntimeStore,
|
|
287
356
|
toTraceSpanEvents,
|
|
357
|
+
tokens,
|
|
288
358
|
totalAgenticFailureMessage,
|
|
289
359
|
traceAgenticKinds,
|
|
290
360
|
traceStreamEventsFromSpans,
|
|
291
361
|
uploadKey,
|
|
362
|
+
usd,
|
|
292
363
|
userPromptSpan,
|
|
293
364
|
validateOtlpSpans,
|
|
365
|
+
watchRunTarget,
|
|
294
366
|
watchSessions,
|
|
367
|
+
wrap,
|
|
295
368
|
writeHodoscopeInput,
|
|
296
369
|
writeInspectionReportFile,
|
|
297
370
|
writeOtlpFile,
|
|
298
371
|
writePolicyEvidenceFile,
|
|
299
372
|
writeSessionIndexFile,
|
|
300
373
|
writeTraceEvidenceExportFile,
|
|
301
|
-
writeTraceImprovementArtifacts
|
|
374
|
+
writeTraceImprovementArtifacts,
|
|
375
|
+
zeroPricedCost
|
|
302
376
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tangle-network/traces",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.11.0",
|
|
4
4
|
"description": "Point it at your coding-agent session traces (Claude Code, Codex, OpenCode, Gemini, Pi, …) and get failure-mode + efficiency findings. CLI + SDK over the @tangle-network/agent-eval analyst suite — observe live sessions, run your own analysts, redact, and upload to the Tangle Intelligence Platform.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -47,7 +47,9 @@
|
|
|
47
47
|
"node": ">=22"
|
|
48
48
|
},
|
|
49
49
|
"dependencies": {
|
|
50
|
-
"@tangle-network/agent-eval": "0.140.0"
|
|
50
|
+
"@tangle-network/agent-eval": "0.140.0",
|
|
51
|
+
"@tangle-network/agent-runtime": "0.116.0",
|
|
52
|
+
"@tangle-network/sandbox": "0.15.2"
|
|
51
53
|
},
|
|
52
54
|
"devDependencies": {
|
|
53
55
|
"@types/node": "^22.0.0",
|