@tangle-network/traces 0.11.6 → 0.15.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/dist/index.js CHANGED
@@ -3,6 +3,8 @@ import {
3
3
  ATTR,
4
4
  AmpAdapter,
5
5
  BLOBS_DIR,
6
+ CHANGED_FILE_LIST_CAP,
7
+ CITATION_NORMALIZATION_VERSION,
6
8
  CODING_REDACTION_RULES,
7
9
  CONTENT_CAP,
8
10
  COORDINATION_LOG_FILE,
@@ -13,46 +15,68 @@ import {
13
15
  CodexExecStreamError,
14
16
  CodexTaskScopeError,
15
17
  CopilotAdapter,
18
+ DEFAULT_ANALYST_MODEL,
19
+ DEFAULT_ASK_CONCURRENCY,
16
20
  DEFAULT_HARNESS,
17
21
  DEFAULT_SANDBOX_BASE_URL,
18
22
  EMPTY_SPAN_RUN_SNAPSHOT,
19
23
  EXPORT_RULE,
20
24
  EmptySessionError,
25
+ FACT_LIST_CAP,
26
+ FACT_TEXT_CAP,
21
27
  FactoryAdapter,
22
28
  ForgeAdapter,
23
29
  GeminiAdapter,
24
30
  INGEST_SOURCE_CLI,
31
+ INHERITED_SOURCE_ATTR,
32
+ INHERITED_SPANS_OMITTED_ATTR,
33
+ INHERITED_SPAN_ATTR,
34
+ INHERITED_SPAN_COUNT_ATTR,
25
35
  JsonSourceError,
26
36
  JsonlParseError,
37
+ MAX_SHELL_DEPTH,
38
+ MAX_TRACE_QUESTION_CHARS,
27
39
  OpencodeAdapter,
28
40
  POLICY_EVIDENCE_NOTE,
41
+ PREPARED_CONTEXT_BYTE_CEILING,
29
42
  PartialUploadError,
30
43
  PiAdapter,
31
44
  QwenAdapter,
32
45
  REACTIONS,
33
46
  RESULT_FILE,
34
47
  RULE,
48
+ SESSION_FACTS_VERSION_SUFFIX,
49
+ SESSION_TOKEN_TOTAL_ATTR,
50
+ SOURCE_ATTRIBUTE_PREFIX,
51
+ SPAN_SYNTHESIZED_ATTR,
35
52
  SPAWN_JOURNAL_FILE,
36
53
  STATUS_MARK,
37
54
  SUBMIT_ACTION_SIGNATURE,
55
+ SYNTHESIZED_SOURCE_ATTR,
56
+ SYNTHESIZED_SPAN_ATTR,
38
57
  SandboxCounterfactualRunner,
39
58
  SessionWorkflowError,
40
59
  TRACES_REDACTION_RULES,
60
+ TRACE_QUESTION_PREVIEW_HEAD_CHARS,
41
61
  ZERO_ROLL,
42
62
  addSpend,
43
63
  alreadyUploaded,
64
+ analysisEngineFromEnv,
44
65
  analyzeAdoption,
45
66
  analyzeLiveBatch,
46
67
  analyzeLoopConvergence,
47
68
  analyzeReactions,
48
69
  analyzeSpans,
49
70
  analyzeSteeringChain,
71
+ answerSchemaErrors,
50
72
  applyRedactor,
51
73
  assembleSessionBundle,
74
+ assertAnswerSchema,
52
75
  assertSandboxReachable,
53
76
  buildFixPrompt,
54
77
  buildPolicyEvidenceRecord,
55
78
  buildRetryFixPrompt,
79
+ buildSessionFactsReport,
56
80
  buildSessionIndex,
57
81
  buildSessionIndexFromRows,
58
82
  buildSpanRunTree,
@@ -60,6 +84,7 @@ import {
60
84
  capText,
61
85
  chatTrajectoryToSpans,
62
86
  classifyEvidenceOnlyPath,
87
+ classifyFailureFollowUps,
63
88
  classifyLiveActions,
64
89
  classifyReaction,
65
90
  classifyVerdict,
@@ -75,16 +100,22 @@ import {
75
100
  collectSessionWorkflow,
76
101
  commandAnalyzer,
77
102
  commandRedactor,
103
+ commandTextFromInput,
104
+ computeSessionFacts,
78
105
  conformanceOfSpans,
79
106
  connectors,
80
107
  countScriptCommands,
81
108
  countSkillRunsJsonl,
109
+ createBundleSourceReader,
110
+ createFindingRejectionTally,
82
111
  cwdMatchesSelection,
112
+ cwdMatchesSelectionResolved,
83
113
  defaultTraceLiveAnalysts,
84
114
  deriveFailureSignature,
85
115
  derivedImageTag,
86
116
  describeSessionRelationship,
87
117
  dockerImagePreparer,
118
+ engineCallReservationFloorUsd,
88
119
  enumerateReplayableCases,
89
120
  environmentAttributes,
90
121
  environmentFromSpanAttributes,
@@ -93,14 +124,19 @@ import {
93
124
  exportTraceEvidenceFile,
94
125
  exportTraceEvidenceRows,
95
126
  exportTraceEvidenceText,
127
+ externalFailureMessage,
96
128
  extractFixCommand,
97
129
  fileRunContextSupervisorRunReader,
130
+ fileSha256,
98
131
  findContextRoot,
99
132
  findSessionTextLeaks,
100
133
  findSpanSourceFiles,
134
+ findingRejection,
135
+ findingRejectionDetail,
101
136
  findingReplayStep,
102
137
  findingTrajectoryId,
103
138
  forEachTreeNode,
139
+ formatFindingRejections,
104
140
  generateFixCommand,
105
141
  goldIncorrectSteps,
106
142
  haloAnalyzer,
@@ -115,26 +151,33 @@ import {
115
151
  ingestCodeTraceBenchSteps,
116
152
  inspectSessionIndex,
117
153
  int,
154
+ isBridgeMismatchError,
118
155
  isChatTrajectory,
119
156
  isChatTrajectoryMessage,
120
157
  isFileRunContextDir,
158
+ isInheritedSpan,
121
159
  isSubmitAction,
160
+ isSynthesizedSpan,
122
161
  knownHarnesses,
123
162
  listAdapters,
124
163
  listSessionBundleFiles,
125
164
  loadState,
165
+ loadTraceQuestionsFile,
126
166
  loadTracesConfig,
127
167
  locateSessions,
128
168
  looksLikeAgentPrompt,
129
169
  mergeRolls,
130
170
  mergeTracesConfig,
131
171
  ms,
172
+ normalizeAnalystCitations,
132
173
  normalizeRemote,
174
+ normalizeTraceQuestions,
133
175
  otlpRowToSpan,
134
176
  outboundHash,
135
177
  parseCorpusFlag,
136
178
  parseIncorrectStepsSubject,
137
179
  parseIsoToEpochMs,
180
+ parseJsonAnswer,
138
181
  parseObservationOutput,
139
182
  parseRecordedReturncode,
140
183
  parseReplayBatchArgs,
@@ -153,6 +196,7 @@ import {
153
196
  readJsonl,
154
197
  readLabelEntries,
155
198
  readOtlpInput,
199
+ readPullRequests,
156
200
  readRunContextJournal,
157
201
  readRunContextSnapshot,
158
202
  readRunWatchSnapshot,
@@ -166,7 +210,12 @@ import {
166
210
  renderInspectionReport,
167
211
  renderRunContextSnapshot,
168
212
  renderRunWatchSnapshot,
213
+ renderSessionFacts,
214
+ renderSessionFactsContext,
169
215
  renderSpanRunSnapshot,
216
+ renderTraceQuestionInstructions,
217
+ renderTraceQuestionPrompt,
218
+ renderTraceQuestionsReport,
170
219
  renderValidation,
171
220
  renderVerifiedFindingsSection,
172
221
  replayBatchUsage,
@@ -190,6 +239,7 @@ import {
190
239
  runTotals,
191
240
  runTraceImprovement,
192
241
  runTraceInvestigation,
242
+ runTraceQuestions,
193
243
  runTraceStoreInvestigation,
194
244
  sandboxReplayBackend,
195
245
  saveReport,
@@ -202,10 +252,12 @@ import {
202
252
  serializeSessionIndex,
203
253
  serializeSpans,
204
254
  serializeTraceStreamEvent,
255
+ sessionFactsContext,
205
256
  sessionHash,
206
257
  sessionIdFromAttributes,
207
258
  sessionIntegrityAttributes,
208
259
  sessionTextSignatures,
260
+ shellCommands,
209
261
  skippedAnalyses,
210
262
  span,
211
263
  spanRunTotals,
@@ -225,7 +277,9 @@ import {
225
277
  toTraceSpanEvents,
226
278
  tokens,
227
279
  totalAgenticFailureMessage,
280
+ totalFindingRejections,
228
281
  traceAgenticKinds,
282
+ traceCitationsInText,
229
283
  traceStreamEventsFromSpans,
230
284
  unavailableCapabilities,
231
285
  uploadKey,
@@ -237,6 +291,7 @@ import {
237
291
  verifyFindingsUsage,
238
292
  watchRunTarget,
239
293
  watchSessions,
294
+ withSessionFactsContext,
240
295
  wrap,
241
296
  wrapActionForExec,
242
297
  writeHodoscopeInput,
@@ -247,9 +302,10 @@ import {
247
302
  writeSessionIndexFile,
248
303
  writeTraceEvidenceExportFile,
249
304
  writeTraceImprovementArtifacts,
305
+ writeTraceQuestionsArtifacts,
250
306
  zaiChatCaller,
251
307
  zeroPricedCost
252
- } from "./chunk-MEAEXKUV.js";
308
+ } from "./chunk-7DOBU7BJ.js";
253
309
 
254
310
  // src/collect.ts
255
311
  async function collectSessions(opts = {}) {
@@ -279,6 +335,8 @@ export {
279
335
  AmpAdapter,
280
336
  AnalystRegistry,
281
337
  BLOBS_DIR,
338
+ CHANGED_FILE_LIST_CAP,
339
+ CITATION_NORMALIZATION_VERSION,
282
340
  CODING_REDACTION_RULES,
283
341
  CONTENT_CAP,
284
342
  COORDINATION_LOG_FILE,
@@ -289,48 +347,70 @@ export {
289
347
  CodexExecStreamError,
290
348
  CodexTaskScopeError,
291
349
  CopilotAdapter,
350
+ DEFAULT_ANALYST_MODEL,
351
+ DEFAULT_ASK_CONCURRENCY,
292
352
  DEFAULT_HARNESS,
293
353
  DEFAULT_REDACTION_RULES,
294
354
  DEFAULT_SANDBOX_BASE_URL,
295
355
  EMPTY_SPAN_RUN_SNAPSHOT,
296
356
  EXPORT_RULE,
297
357
  EmptySessionError,
358
+ FACT_LIST_CAP,
359
+ FACT_TEXT_CAP,
298
360
  FactoryAdapter,
299
361
  ForgeAdapter,
300
362
  GeminiAdapter,
301
363
  INGEST_SOURCE_CLI,
364
+ INHERITED_SOURCE_ATTR,
365
+ INHERITED_SPANS_OMITTED_ATTR,
366
+ INHERITED_SPAN_ATTR,
367
+ INHERITED_SPAN_COUNT_ATTR,
302
368
  JsonSourceError,
303
369
  JsonlParseError,
370
+ MAX_SHELL_DEPTH,
371
+ MAX_TRACE_QUESTION_CHARS,
304
372
  OpencodeAdapter,
305
373
  POLICY_EVIDENCE_NOTE,
374
+ PREPARED_CONTEXT_BYTE_CEILING,
306
375
  PartialUploadError,
307
376
  PiAdapter,
308
377
  QwenAdapter,
309
378
  REACTIONS,
310
379
  RESULT_FILE,
311
380
  RULE,
381
+ SESSION_FACTS_VERSION_SUFFIX,
382
+ SESSION_TOKEN_TOTAL_ATTR,
383
+ SOURCE_ATTRIBUTE_PREFIX,
384
+ SPAN_SYNTHESIZED_ATTR,
312
385
  SPAWN_JOURNAL_FILE,
313
386
  STATUS_MARK,
314
387
  SUBMIT_ACTION_SIGNATURE,
388
+ SYNTHESIZED_SOURCE_ATTR,
389
+ SYNTHESIZED_SPAN_ATTR,
315
390
  SandboxCounterfactualRunner,
316
391
  SessionWorkflowError,
317
392
  TRACES_REDACTION_RULES,
393
+ TRACE_QUESTION_PREVIEW_HEAD_CHARS,
318
394
  ZERO_ROLL,
319
395
  addSpend,
320
396
  alreadyUploaded,
397
+ analysisEngineFromEnv,
321
398
  analyzeAdoption,
322
399
  analyzeLiveBatch,
323
400
  analyzeLoopConvergence,
324
401
  analyzeReactions,
325
402
  analyzeSpans,
326
403
  analyzeSteeringChain,
404
+ answerSchemaErrors,
327
405
  applyRedactor,
328
406
  assembleSessionBundle,
407
+ assertAnswerSchema,
329
408
  assertSandboxReachable,
330
409
  buildDefaultAnalystRegistry,
331
410
  buildFixPrompt,
332
411
  buildPolicyEvidenceRecord,
333
412
  buildRetryFixPrompt,
413
+ buildSessionFactsReport,
334
414
  buildSessionIndex,
335
415
  buildSessionIndexFromRows,
336
416
  buildSpanRunTree,
@@ -338,6 +418,7 @@ export {
338
418
  capText,
339
419
  chatTrajectoryToSpans,
340
420
  classifyEvidenceOnlyPath,
421
+ classifyFailureFollowUps,
341
422
  classifyLiveActions,
342
423
  classifyReaction,
343
424
  classifyVerdict,
@@ -354,17 +435,23 @@ export {
354
435
  collectSessions,
355
436
  commandAnalyzer,
356
437
  commandRedactor,
438
+ commandTextFromInput,
439
+ computeSessionFacts,
357
440
  conformanceOfSpans,
358
441
  connectors,
359
442
  countScriptCommands,
360
443
  countSkillRunsJsonl,
444
+ createBundleSourceReader,
445
+ createFindingRejectionTally,
361
446
  createHostedClient,
362
447
  cwdMatchesSelection,
448
+ cwdMatchesSelectionResolved,
363
449
  defaultTraceLiveAnalysts,
364
450
  deriveFailureSignature,
365
451
  derivedImageTag,
366
452
  describeSessionRelationship,
367
453
  dockerImagePreparer,
454
+ engineCallReservationFloorUsd,
368
455
  enumerateReplayableCases,
369
456
  environmentAttributes,
370
457
  environmentFromSpanAttributes,
@@ -373,14 +460,19 @@ export {
373
460
  exportTraceEvidenceFile,
374
461
  exportTraceEvidenceRows,
375
462
  exportTraceEvidenceText,
463
+ externalFailureMessage,
376
464
  extractFixCommand,
377
465
  fileRunContextSupervisorRunReader,
466
+ fileSha256,
378
467
  findContextRoot,
379
468
  findSessionTextLeaks,
380
469
  findSpanSourceFiles,
470
+ findingRejection,
471
+ findingRejectionDetail,
381
472
  findingReplayStep,
382
473
  findingTrajectoryId,
383
474
  forEachTreeNode,
475
+ formatFindingRejections,
384
476
  generateFixCommand,
385
477
  goldIncorrectSteps,
386
478
  haloAnalyzer,
@@ -396,14 +488,18 @@ export {
396
488
  ingestCodeTraceBenchSteps,
397
489
  inspectSessionIndex,
398
490
  int,
491
+ isBridgeMismatchError,
399
492
  isChatTrajectory,
400
493
  isChatTrajectoryMessage,
401
494
  isFileRunContextDir,
495
+ isInheritedSpan,
402
496
  isSubmitAction,
497
+ isSynthesizedSpan,
403
498
  knownHarnesses,
404
499
  listAdapters,
405
500
  listSessionBundleFiles,
406
501
  loadState,
502
+ loadTraceQuestionsFile,
407
503
  loadTracesConfig,
408
504
  locateSessions,
409
505
  looksLikeAgentPrompt,
@@ -411,12 +507,15 @@ export {
411
507
  mergeRolls,
412
508
  mergeTracesConfig,
413
509
  ms,
510
+ normalizeAnalystCitations,
414
511
  normalizeRemote,
512
+ normalizeTraceQuestions,
415
513
  otlpRowToSpan,
416
514
  outboundHash,
417
515
  parseCorpusFlag,
418
516
  parseIncorrectStepsSubject,
419
517
  parseIsoToEpochMs,
518
+ parseJsonAnswer,
420
519
  parseObservationOutput,
421
520
  parseRecordedReturncode,
422
521
  parseReplayBatchArgs,
@@ -435,6 +534,7 @@ export {
435
534
  readJsonl,
436
535
  readLabelEntries,
437
536
  readOtlpInput,
537
+ readPullRequests,
438
538
  readRunContextJournal,
439
539
  readRunContextSnapshot,
440
540
  readRunWatchSnapshot,
@@ -450,7 +550,12 @@ export {
450
550
  renderInspectionReport,
451
551
  renderRunContextSnapshot,
452
552
  renderRunWatchSnapshot,
553
+ renderSessionFacts,
554
+ renderSessionFactsContext,
453
555
  renderSpanRunSnapshot,
556
+ renderTraceQuestionInstructions,
557
+ renderTraceQuestionPrompt,
558
+ renderTraceQuestionsReport,
454
559
  renderValidation,
455
560
  renderVerifiedFindingsSection,
456
561
  replayBatchUsage,
@@ -474,6 +579,7 @@ export {
474
579
  runTotals,
475
580
  runTraceImprovement,
476
581
  runTraceInvestigation,
582
+ runTraceQuestions,
477
583
  runTraceStoreInvestigation,
478
584
  sandboxReplayBackend,
479
585
  saveReport,
@@ -486,10 +592,12 @@ export {
486
592
  serializeSessionIndex,
487
593
  serializeSpans,
488
594
  serializeTraceStreamEvent,
595
+ sessionFactsContext,
489
596
  sessionHash,
490
597
  sessionIdFromAttributes,
491
598
  sessionIntegrityAttributes,
492
599
  sessionTextSignatures,
600
+ shellCommands,
493
601
  skippedAnalyses,
494
602
  span,
495
603
  spanRunTotals,
@@ -509,7 +617,9 @@ export {
509
617
  toTraceSpanEvents,
510
618
  tokens,
511
619
  totalAgenticFailureMessage,
620
+ totalFindingRejections,
512
621
  traceAgenticKinds,
622
+ traceCitationsInText,
513
623
  traceStreamEventsFromSpans,
514
624
  unavailableCapabilities,
515
625
  uploadKey,
@@ -521,6 +631,7 @@ export {
521
631
  verifyFindingsUsage,
522
632
  watchRunTarget,
523
633
  watchSessions,
634
+ withSessionFactsContext,
524
635
  wrap,
525
636
  wrapActionForExec,
526
637
  writeHodoscopeInput,
@@ -531,6 +642,7 @@ export {
531
642
  writeSessionIndexFile,
532
643
  writeTraceEvidenceExportFile,
533
644
  writeTraceImprovementArtifacts,
645
+ writeTraceQuestionsArtifacts,
534
646
  zaiChatCaller,
535
647
  zeroPricedCost
536
648
  };