@tangle-network/traces 0.9.18 → 0.9.19

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/cli.js CHANGED
@@ -14,6 +14,7 @@ import {
14
14
  exportTraceEvidenceFile,
15
15
  haloAnalyzer,
16
16
  hodoscopeAnalyzer,
17
+ importCodeTraceBench,
17
18
  indexSessionIdsByTrace,
18
19
  inspectSessionIndex,
19
20
  knownHarnesses,
@@ -43,7 +44,7 @@ import {
43
44
  writePolicyEvidenceFile,
44
45
  writeSessionIndexFile,
45
46
  writeTraceEvidenceExportFile
46
- } from "./chunk-F2OEMHVZ.js";
47
+ } from "./chunk-WCJVRJD5.js";
47
48
 
48
49
  // src/cli.ts
49
50
  import { readFileSync } from "fs";
@@ -87,7 +88,8 @@ function parseArgs(argv) {
87
88
  replay: false,
88
89
  noSpans: false,
89
90
  noFindings: false,
90
- attrs: []
91
+ attrs: [],
92
+ concurrency: 4
91
93
  };
92
94
  for (let i = 1; i < argv.length; i++) {
93
95
  const arg = argv[i];
@@ -124,6 +126,15 @@ function parseArgs(argv) {
124
126
  case "--supervisor-run-dir":
125
127
  a.supervisorRunDir = next();
126
128
  break;
129
+ case "--trajectory-dir":
130
+ a.trajectoryDir = next();
131
+ break;
132
+ case "--revision":
133
+ a.revision = next();
134
+ break;
135
+ case "--concurrency":
136
+ a.concurrency = Number(next());
137
+ break;
127
138
  case "--since":
128
139
  a.since = next();
129
140
  break;
@@ -528,6 +539,51 @@ async function cmdExport(args) {
528
539
  const result = await exportTraceEvidenceFile(args.input, { format, attributes });
529
540
  process.stdout.write(serializeSpans(result.spans));
530
541
  }
542
+ async function cmdImportCodeTraceBench(args) {
543
+ if (!args.input) {
544
+ throw new Error(
545
+ "import-codetracebench needs the native CodeTraceBench rows JSON or JSONL file"
546
+ );
547
+ }
548
+ if (!args.trajectoryDir) {
549
+ throw new Error(
550
+ "import-codetracebench needs --trajectory-dir with <traj_id>/steps.json directories"
551
+ );
552
+ }
553
+ if (!args.out) {
554
+ throw new Error("import-codetracebench needs a new --out directory");
555
+ }
556
+ if (!args.revision) {
557
+ throw new Error(
558
+ "import-codetracebench needs --revision with a full 40- or 64-character hexadecimal commit or digest"
559
+ );
560
+ }
561
+ const controller = new AbortController();
562
+ const interrupt = () => controller.abort(
563
+ new Error("import-codetracebench interrupted")
564
+ );
565
+ process.once("SIGINT", interrupt);
566
+ process.once("SIGTERM", interrupt);
567
+ try {
568
+ const result = await importCodeTraceBench({
569
+ rowsPath: args.input,
570
+ trajectoryDir: args.trajectoryDir,
571
+ outDir: args.out,
572
+ revision: args.revision,
573
+ concurrency: args.concurrency,
574
+ signal: controller.signal
575
+ });
576
+ const traceCount = result.receipt.counts.traces;
577
+ const stepCount = result.receipt.counts.steps;
578
+ const spanCount = result.receipt.counts.spans;
579
+ console.log(
580
+ `imported ${traceCount} CodeTraceBench ${traceCount === 1 ? "trajectory" : "trajectories"} (${stepCount} ${stepCount === 1 ? "step" : "steps"}, ${spanCount} ${spanCount === 1 ? "span" : "spans"}) \u2192 ${result.directory}; receipt: ${result.receiptPath}`
581
+ );
582
+ } finally {
583
+ process.removeListener("SIGINT", interrupt);
584
+ process.removeListener("SIGTERM", interrupt);
585
+ }
586
+ }
531
587
  function traceEvidenceFormat(raw) {
532
588
  const format = raw ?? "auto";
533
589
  if (format !== "auto" && format !== "policy-evidence" && format !== "sandbox-events" && format !== "openinference" && format !== "intelligence-spans" && format !== "chat-trajectory") {
@@ -921,6 +977,22 @@ Safety:
921
977
  export runs the same local regex redaction used by upload before writing spans.
922
978
  --metadata must be a JSON object; --attr key=value is repeatable and overrides matching metadata keys.`);
923
979
  }
980
+ function usageImportCodeTraceBench() {
981
+ console.log(`traces import-codetracebench: write one label-free OTLP file per trajectory
982
+
983
+ Usage:
984
+ traces import-codetracebench <rows.jsonl|rows.json> \\
985
+ --trajectory-dir <normalized-dir> --out <new-trace-dir> \\
986
+ --revision <40-or-64-character-hex> [--concurrency 4]
987
+
988
+ Input layout:
989
+ <normalized-dir>/<traj_id>/steps.json
990
+ <normalized-dir>/<traj_id>/task.md optional
991
+
992
+ The command validates every native step, rejects annotation leakage, writes
993
+ <traj_id>.otlp.jsonl files, and records input and output SHA-256 hashes in
994
+ codetracebench-import.json. The output directory must not already exist.`);
995
+ }
924
996
  function usage() {
925
997
  console.log(`traces: analyze, observe & upload coding-agent sessions
926
998
 
@@ -934,6 +1006,8 @@ Commands:
934
1006
  index Emit a reusable session index JSON for later investigation
935
1007
  inspect Read a session index and print ranked improvement findings
936
1008
  export Convert evidence/events files to OpenInference JSONL for HALO
1009
+ import-codetracebench
1010
+ Convert CodeTracer-normalized CodeTraceBench trajectories in bulk
937
1011
  evidence Emit compact session-evidence JSONL for downstream policy miners
938
1012
  stream Emit JSONL trace stream events for live visualizers or replay
939
1013
  watch Online observer: tail active sessions, notify on loops + semantic findings
@@ -979,7 +1053,7 @@ Options:
979
1053
  --redactor <cmd> upload: external PII scrubber (JSON array stdin\u2192stdout) after the regex pass
980
1054
  --yes, -y upload: skip the confirmation prompt
981
1055
  --version, -v Print the installed traces version
982
- --help, -h Show help (use \`traces export --help\` for export examples)
1056
+ --help, -h Show help (use \`traces export --help\` or \`traces import-codetracebench --help\`)
983
1057
 
984
1058
  Upload env: TANGLE_INGEST_URL (or TANGLE_ORCHESTRATOR_URL), TANGLE_INGEST_API_KEY (or TANGLE_API_KEY), TANGLE_TENANT_ID`);
985
1059
  }
@@ -991,14 +1065,16 @@ async function main() {
991
1065
  }
992
1066
  const parsedArgs = parseArgs(rawArgs);
993
1067
  if (parsedArgs.help) {
994
- if (parsedArgs.command === "export" || parsedArgs.command === "help" && parsedArgs.input === "export") usageExport();
1068
+ if (parsedArgs.command === "import-codetracebench" || parsedArgs.command === "help" && parsedArgs.input === "import-codetracebench") usageImportCodeTraceBench();
1069
+ else if (parsedArgs.command === "export" || parsedArgs.command === "help" && parsedArgs.input === "export") usageExport();
995
1070
  else usage();
996
1071
  return;
997
1072
  }
998
1073
  const args = validateWorkflowSelection(applyCurrentSessionSelection(parsedArgs));
999
1074
  switch (args.command) {
1000
1075
  case "help":
1001
- if (args.input === "export") usageExport();
1076
+ if (args.input === "import-codetracebench") usageImportCodeTraceBench();
1077
+ else if (args.input === "export") usageExport();
1002
1078
  else usage();
1003
1079
  break;
1004
1080
  case "list":
@@ -1025,6 +1101,9 @@ async function main() {
1025
1101
  case "export":
1026
1102
  await cmdExport(args);
1027
1103
  break;
1104
+ case "import-codetracebench":
1105
+ await cmdImportCodeTraceBench(args);
1106
+ break;
1028
1107
  case "evidence":
1029
1108
  await cmdEvidence(args);
1030
1109
  break;
package/dist/index.d.ts CHANGED
@@ -208,6 +208,89 @@ interface HarnessTraceAdapter {
208
208
  resolveParentTask?(ref: SessionRef, childSessionId: string, options?: Pick<ParseOptions, 'corruptionMode' | 'signal'>): Promise<ParentTaskResolution>;
209
209
  }
210
210
 
211
+ interface CodeTraceBenchFileRef {
212
+ readonly path: string;
213
+ readonly line_start: number;
214
+ readonly line_end: number;
215
+ readonly content: string;
216
+ }
217
+ interface CodeTraceBenchStep {
218
+ readonly step_id: number;
219
+ readonly action: string;
220
+ readonly observation: string | null;
221
+ readonly thinking?: string;
222
+ readonly parallel_group?: number;
223
+ readonly tool_type?: string;
224
+ readonly action_ref: CodeTraceBenchFileRef | null;
225
+ readonly observation_ref: CodeTraceBenchFileRef | null;
226
+ }
227
+ interface CodeTraceBenchImportOptions {
228
+ readonly rowsPath: string;
229
+ /** CodeTracer-normalized root containing `<traj_id>/steps.json`. */
230
+ readonly trajectoryDir: string;
231
+ /** Must not exist. It is published only after every trajectory succeeds. */
232
+ readonly outDir: string;
233
+ /** Full 40-character commit SHA or 64-character hexadecimal digest. */
234
+ readonly revision: string;
235
+ readonly concurrency?: number;
236
+ readonly signal?: AbortSignal;
237
+ }
238
+ interface CodeTraceBenchImportedTrace {
239
+ readonly index: number;
240
+ readonly traceId: string;
241
+ readonly stepCount: number;
242
+ readonly spanCount: number;
243
+ readonly taskSource: 'task.md' | 'task_name';
244
+ readonly input: {
245
+ readonly stepsPath: string;
246
+ readonly stepsSha256: string;
247
+ readonly stepsBytes: number;
248
+ readonly taskPath?: string;
249
+ readonly taskSha256?: string;
250
+ readonly taskBytes?: number;
251
+ };
252
+ readonly output: {
253
+ readonly path: string;
254
+ readonly sha256: string;
255
+ readonly bytes: number;
256
+ };
257
+ }
258
+ interface CodeTraceBenchImportReceipt {
259
+ readonly kind: 'traces.codetracebench-import';
260
+ readonly generatedAt: string;
261
+ readonly input: {
262
+ readonly revision: string;
263
+ readonly rowsFile: string;
264
+ readonly rowsSha256: string;
265
+ readonly rowsBytes: number;
266
+ readonly trajectoryDirectory: string;
267
+ readonly sha256: string;
268
+ };
269
+ readonly settings: {
270
+ readonly concurrency: number;
271
+ readonly outputLayout: '<traj_id>.otlp.jsonl';
272
+ };
273
+ readonly counts: {
274
+ readonly rows: number;
275
+ readonly traces: number;
276
+ readonly steps: number;
277
+ readonly spans: number;
278
+ };
279
+ readonly safety: {
280
+ readonly labelLeakScan: 'passed';
281
+ readonly outputDirectoryCreatedExclusively: true;
282
+ readonly filesPublishedAtomically: true;
283
+ };
284
+ readonly traces: readonly CodeTraceBenchImportedTrace[];
285
+ readonly outputSha256: string;
286
+ }
287
+ interface CodeTraceBenchImportResult {
288
+ readonly directory: string;
289
+ readonly receiptPath: string;
290
+ readonly receipt: CodeTraceBenchImportReceipt;
291
+ }
292
+ declare function importCodeTraceBench(options: CodeTraceBenchImportOptions): Promise<CodeTraceBenchImportResult>;
293
+
211
294
  /**
212
295
  * Span-attribute keys the upload path stamps. The CLI is the producer; the
213
296
  * Tangle Intelligence Platform is the consumer.
@@ -2102,4 +2185,4 @@ interface ExecuteOptions {
2102
2185
  /** Send the final, new outbound items (or write their dry-run OTLP). */
2103
2186
  declare function executeUpload(plan: UploadPlan, opts?: ExecuteOptions): Promise<UploadResult>;
2104
2187
 
2105
- export { ACTOR_ATTR, ATTR, type Actor, type AdoptionOptions, type AdoptionReport, AmpAdapter, type AnalyzeOptions, type AnalyzeResult, type BuildPolicyEvidenceOptions, type BuildSessionIndexOptions, type BuildTraceFindingPacketOptions, CODING_REDACTION_RULES, CONTENT_CAP, CORRECTIVE_REACTIONS, type ChatTrajectory, type ChatTrajectoryMessage, type ChatTrajectoryOptions, ClaudeAdapter, CodexAdapter, CodexExecAdapter, CodexExecStreamError, CodexTaskScopeError, type CollectOptions, type CollectPolicyEvidenceOptions, type CollectSessionIndexOptions, type CollectSessionSelectionOptions, type CollectSessionWorkflowOptions, CopilotAdapter, type CorruptionMode, DEFAULT_HARNESS, EmptySessionError, type ExecuteOptions, type ExternalAnalysisKind, type ExternalAnalysisPayload, type ExternalAnalysisResult, type ExternalAnalyzer, type ExternalAnalyzerOptions, type ExternalDiscoveryCandidate, FactoryAdapter, ForgeAdapter, GeminiAdapter, type HaloAnalyzerOptions, type HaloReasoningEffort, type HarnessTraceAdapter, type HodoscopeAnalyzerOptions, type HodoscopeInput, type HodoscopeMessage, type HodoscopeSourceMapEntry, type HodoscopeTrajectory, INGEST_SOURCE_CLI, type InspectSessionIndexOptions, JsonSourceError, type JsonlCorruptionReceipt, JsonlParseError, type JsonlReadOptions, type LiveBatchOptions, type LocateOptions, type ObservedLoop, type ObserverOptions, OpencodeAdapter, type OtlpSpan, type OtlpSpanKind, type OtlpStatusCode, type ParentTaskResolution, type ParseOptions, PartialUploadError, PiAdapter, type PipelineOptions, type PipelineReport, type PlanOptions, type PolicyEvidenceLoopSummary, type PolicyEvidenceRecord, type PolicyEvidenceToolSummary, QwenAdapter, REACTIONS, type Reaction, type ReactionReport, type ReactionSessionReport, type Redactor, type RepoAttrs, type RepoResolution, type RepoResolutionSource, type RunResult, type RuntimeTrace, type ScanOptions, type ScannedSession, type SessionBatch, type SessionCorruptionReceipt, type SessionIdentityConflict, type SessionIdentityIndex, type SessionIntegrity, type SessionRef, type SessionRelationship, type SessionRole, type SessionSeedGroup, type SessionSelection, type SessionSelectionRow, type SessionSourceFile, type SessionWorkflow, SessionWorkflowError, type SessionWorkflowErrorCode, type SessionWorkflowIssue, type SessionWorkflowSession, type SessionWorkflowSummary, type SpanInput, type SpanRedaction, TRACES_REDACTION_RULES, type TraceAgenticRoute, type TraceAgenticRouteReason, type TraceAgenticRouteReasonCode, type TraceContextIndex, type TraceContextRoot, type TraceEvidenceExportOptions, type TraceEvidenceExportResult, type TraceEvidenceFormatOption, type TraceEvidenceInputFormat, type TraceEvidenceRow, type TraceExecutionOptions, type TraceFindingPacket, type TraceImprovementArtifacts, type TraceImprovementOptions, type TraceImprovementResult, type TraceIndexedFile, type TraceInspectionArea, type TraceInspectionFinding, type TraceInspectionReport, type TraceInspectionSeverity, type TraceInvestigationOptions, type TraceInvestigationResult, type TraceLiveAction, type TraceLiveActionKind, type TraceLiveAnalysisContext, type TraceLiveAnalyst, type TraceLiveBatch, type TraceLiveEvidence, type TraceLiveFinding, type TraceLiveLoop, type TraceLiveSeverity, type TraceSessionIndex, type TraceSessionIndexRow, type TraceStoreInvestigationOptions, type TraceStoreInvestigationResult, type TraceStreamEvent, type TraceStreamOptions, type TraceStreamReplayOptions, type TraceStreamSession, type TracesConfig, type TriggerPair, type UploadBackend, type UploadIdentity, type UploadItem, type UploadPlan, type UploadRecord, type UploadResult, type UploadState, type UserPromptInput, alreadyUploaded, analyzeAdoption, analyzeLiveBatch, analyzeReactions, analyzeSpans, applyRedactor, buildPolicyEvidenceRecord, buildSessionIndex, buildSessionIndexFromRows, buildTraceFindingPacket, capText, chatTrajectoryToSpans, classifyLiveActions, classifyReaction, claudeActor, codexActor, collectPolicyEvidence, collectSessionIndex, collectSessionSelection, collectSessionWorkflow, collectSessions, commandAnalyzer, commandRedactor, countSkillRunsJsonl, cwdMatchesSelection, defaultTraceLiveAnalysts, describeSessionRelationship, equivalentGitCwds, executeUpload, exportTraceEvidenceFile, exportTraceEvidenceRows, exportTraceEvidenceText, haloAnalyzer, hodoscopeAnalyzer, indexSessionIdsByTrace, inspectSessionIndex, isChatTrajectory, isChatTrajectoryMessage, knownHarnesses, listAdapters, loadState, loadTracesConfig, locateSessions, looksLikeAgentPrompt, mergeTracesConfig, normalizeRemote, outboundHash, parseIsoToEpochMs, parseSession, parseSince, planTraceAgenticRoute, planUpload, readJsonFile, readJsonl, readSessionIndexFile, recordSessionCorruption, redactSpans, renderInspectionReport, resolveAdapter, resolveRepoAttrs, resolveSessionRepoAttrs, runCommand, runExternalAnalyzers, runPipelines, runTraceImprovement, runTraceInvestigation, runTraceStoreInvestigation, saveReport, saveState, scanSessions, selectAdapters, serializeInspectionReport, serializePolicyEvidence, serializeSessionIndex, serializeSpans, serializeTraceStreamEvent, sessionHash, sessionIdFromAttributes, sessionIntegrityAttributes, span, stampRepoAttrs, stampSessionIdentity, stampSessionIntegrity, stampSpanWorkdirRepoAttrs, streamSessions, summarizeOtlpExecution, summarizeSpanExecution, takeJsonl, textIsSynthetic, toOpenInferenceSpan, toRuntimeStore, toTraceSpanEvents, traceAgenticKinds, traceStreamEventsFromSpans, uploadKey, userPromptSpan, validateOtlpSpans, watchSessions, writeHodoscopeInput, writeInspectionReportFile, writeOtlpFile, writePolicyEvidenceFile, writeSessionIndexFile, writeTraceEvidenceExportFile, writeTraceImprovementArtifacts };
2188
+ export { ACTOR_ATTR, ATTR, type Actor, type AdoptionOptions, type AdoptionReport, AmpAdapter, type AnalyzeOptions, type AnalyzeResult, type BuildPolicyEvidenceOptions, type BuildSessionIndexOptions, type BuildTraceFindingPacketOptions, CODING_REDACTION_RULES, CONTENT_CAP, CORRECTIVE_REACTIONS, type ChatTrajectory, type ChatTrajectoryMessage, type ChatTrajectoryOptions, ClaudeAdapter, type CodeTraceBenchFileRef, type CodeTraceBenchImportOptions, type CodeTraceBenchImportReceipt, type CodeTraceBenchImportResult, type CodeTraceBenchImportedTrace, type CodeTraceBenchStep, CodexAdapter, CodexExecAdapter, CodexExecStreamError, CodexTaskScopeError, type CollectOptions, type CollectPolicyEvidenceOptions, type CollectSessionIndexOptions, type CollectSessionSelectionOptions, type CollectSessionWorkflowOptions, CopilotAdapter, type CorruptionMode, DEFAULT_HARNESS, EmptySessionError, type ExecuteOptions, type ExternalAnalysisKind, type ExternalAnalysisPayload, type ExternalAnalysisResult, type ExternalAnalyzer, type ExternalAnalyzerOptions, type ExternalDiscoveryCandidate, FactoryAdapter, ForgeAdapter, GeminiAdapter, type HaloAnalyzerOptions, type HaloReasoningEffort, type HarnessTraceAdapter, type HodoscopeAnalyzerOptions, type HodoscopeInput, type HodoscopeMessage, type HodoscopeSourceMapEntry, type HodoscopeTrajectory, INGEST_SOURCE_CLI, type InspectSessionIndexOptions, JsonSourceError, type JsonlCorruptionReceipt, JsonlParseError, type JsonlReadOptions, type LiveBatchOptions, type LocateOptions, type ObservedLoop, type ObserverOptions, OpencodeAdapter, type OtlpSpan, type OtlpSpanKind, type OtlpStatusCode, type ParentTaskResolution, type ParseOptions, PartialUploadError, PiAdapter, type PipelineOptions, type PipelineReport, type PlanOptions, type PolicyEvidenceLoopSummary, type PolicyEvidenceRecord, type PolicyEvidenceToolSummary, QwenAdapter, REACTIONS, type Reaction, type ReactionReport, type ReactionSessionReport, type Redactor, type RepoAttrs, type RepoResolution, type RepoResolutionSource, type RunResult, type RuntimeTrace, type ScanOptions, type ScannedSession, type SessionBatch, type SessionCorruptionReceipt, type SessionIdentityConflict, type SessionIdentityIndex, type SessionIntegrity, type SessionRef, type SessionRelationship, type SessionRole, type SessionSeedGroup, type SessionSelection, type SessionSelectionRow, type SessionSourceFile, type SessionWorkflow, SessionWorkflowError, type SessionWorkflowErrorCode, type SessionWorkflowIssue, type SessionWorkflowSession, type SessionWorkflowSummary, type SpanInput, type SpanRedaction, TRACES_REDACTION_RULES, type TraceAgenticRoute, type TraceAgenticRouteReason, type TraceAgenticRouteReasonCode, type TraceContextIndex, type TraceContextRoot, type TraceEvidenceExportOptions, type TraceEvidenceExportResult, type TraceEvidenceFormatOption, type TraceEvidenceInputFormat, type TraceEvidenceRow, type TraceExecutionOptions, type TraceFindingPacket, type TraceImprovementArtifacts, type TraceImprovementOptions, type TraceImprovementResult, type TraceIndexedFile, type TraceInspectionArea, type TraceInspectionFinding, type TraceInspectionReport, type TraceInspectionSeverity, type TraceInvestigationOptions, type TraceInvestigationResult, type TraceLiveAction, type TraceLiveActionKind, type TraceLiveAnalysisContext, type TraceLiveAnalyst, type TraceLiveBatch, type TraceLiveEvidence, type TraceLiveFinding, type TraceLiveLoop, type TraceLiveSeverity, type TraceSessionIndex, type TraceSessionIndexRow, type TraceStoreInvestigationOptions, type TraceStoreInvestigationResult, type TraceStreamEvent, type TraceStreamOptions, type TraceStreamReplayOptions, type TraceStreamSession, type TracesConfig, type TriggerPair, type UploadBackend, type UploadIdentity, type UploadItem, type UploadPlan, type UploadRecord, type UploadResult, type UploadState, type UserPromptInput, alreadyUploaded, analyzeAdoption, analyzeLiveBatch, analyzeReactions, analyzeSpans, applyRedactor, buildPolicyEvidenceRecord, buildSessionIndex, buildSessionIndexFromRows, buildTraceFindingPacket, capText, chatTrajectoryToSpans, classifyLiveActions, classifyReaction, claudeActor, codexActor, collectPolicyEvidence, collectSessionIndex, collectSessionSelection, collectSessionWorkflow, collectSessions, commandAnalyzer, commandRedactor, countSkillRunsJsonl, cwdMatchesSelection, defaultTraceLiveAnalysts, describeSessionRelationship, equivalentGitCwds, executeUpload, exportTraceEvidenceFile, exportTraceEvidenceRows, exportTraceEvidenceText, haloAnalyzer, hodoscopeAnalyzer, importCodeTraceBench, indexSessionIdsByTrace, inspectSessionIndex, isChatTrajectory, isChatTrajectoryMessage, knownHarnesses, listAdapters, loadState, loadTracesConfig, locateSessions, looksLikeAgentPrompt, mergeTracesConfig, normalizeRemote, outboundHash, parseIsoToEpochMs, parseSession, parseSince, planTraceAgenticRoute, planUpload, readJsonFile, readJsonl, readSessionIndexFile, recordSessionCorruption, redactSpans, renderInspectionReport, resolveAdapter, resolveRepoAttrs, resolveSessionRepoAttrs, runCommand, runExternalAnalyzers, runPipelines, runTraceImprovement, runTraceInvestigation, runTraceStoreInvestigation, saveReport, saveState, scanSessions, selectAdapters, serializeInspectionReport, serializePolicyEvidence, serializeSessionIndex, serializeSpans, serializeTraceStreamEvent, sessionHash, sessionIdFromAttributes, sessionIntegrityAttributes, span, stampRepoAttrs, stampSessionIdentity, stampSessionIntegrity, stampSpanWorkdirRepoAttrs, streamSessions, summarizeOtlpExecution, summarizeSpanExecution, takeJsonl, textIsSynthetic, toOpenInferenceSpan, toRuntimeStore, toTraceSpanEvents, traceAgenticKinds, traceStreamEventsFromSpans, uploadKey, userPromptSpan, validateOtlpSpans, watchSessions, writeHodoscopeInput, writeInspectionReportFile, writeOtlpFile, writePolicyEvidenceFile, writeSessionIndexFile, writeTraceEvidenceExportFile, writeTraceImprovementArtifacts };
package/dist/index.js CHANGED
@@ -59,6 +59,7 @@ import {
59
59
  exportTraceEvidenceText,
60
60
  haloAnalyzer,
61
61
  hodoscopeAnalyzer,
62
+ importCodeTraceBench,
62
63
  indexSessionIdsByTrace,
63
64
  inspectSessionIndex,
64
65
  isChatTrajectory,
@@ -130,7 +131,7 @@ import {
130
131
  writeSessionIndexFile,
131
132
  writeTraceEvidenceExportFile,
132
133
  writeTraceImprovementArtifacts
133
- } from "./chunk-F2OEMHVZ.js";
134
+ } from "./chunk-WCJVRJD5.js";
134
135
 
135
136
  // src/collect.ts
136
137
  async function collectSessions(opts = {}) {
@@ -221,6 +222,7 @@ export {
221
222
  haloAnalyzer,
222
223
  hodoscopeAnalyzer,
223
224
  hostedClientFromEnv,
225
+ importCodeTraceBench,
224
226
  indexSessionIdsByTrace,
225
227
  inspectSessionIndex,
226
228
  isChatTrajectory,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tangle-network/traces",
3
- "version": "0.9.18",
3
+ "version": "0.9.19",
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",