@tangle-network/traces 0.19.0 → 0.19.1

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.d.ts CHANGED
@@ -4940,7 +4940,7 @@ interface ExecuteOptions {
4940
4940
  /** Send the final, new outbound items (or write their dry-run OTLP). */
4941
4941
  declare function executeUpload(plan: UploadPlan, opts?: ExecuteOptions): Promise<UploadResult>;
4942
4942
 
4943
- declare const RETAINED_SESSION_READER_VERSION = "1";
4943
+ declare const RETAINED_SESSION_READER_VERSION = "2";
4944
4944
  interface RetainedSessionFile {
4945
4945
  readonly path: string;
4946
4946
  readonly content: string;
package/dist/index.js CHANGED
@@ -307,7 +307,7 @@ import { createHash } from "crypto";
307
307
  import { mkdir, mkdtemp, rm, writeFile } from "fs/promises";
308
308
  import { tmpdir } from "os";
309
309
  import { dirname, isAbsolute, join, relative, resolve } from "path";
310
- var RETAINED_SESSION_READER_VERSION = "1";
310
+ var RETAINED_SESSION_READER_VERSION = "2";
311
311
  async function parseRetainedSession(input) {
312
312
  input.signal?.throwIfAborted();
313
313
  const unselectedFiles = [];
@@ -370,6 +370,10 @@ async function parseRetainedSession(input) {
370
370
  unselectedFiles.push({ path: file.path, reason: "No unambiguous matching native identity in parser output." });
371
371
  continue;
372
372
  }
373
+ if (computeSessionFacts(spans, { includeContent: false }).every((facts) => facts.recordSpans === 0)) {
374
+ unselectedFiles.push({ path: file.path, reason: "Native identity was recorded without any session records." });
375
+ continue;
376
+ }
373
377
  stampSessionIntegrity(ref, spans);
374
378
  stampSessionIdentity(spans, input.nativeSessionId);
375
379
  for (const span2 of spans) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tangle-network/traces",
3
- "version": "0.19.0",
3
+ "version": "0.19.1",
4
4
  "description": "Point it at your coding-agent session traces (Claude Code, Codex, OpenCode, Gemini, Pi, \u2026) and get failure-mode + efficiency findings. CLI + SDK over the @tangle-network/agent-eval analyst suite \u2014 observe live sessions, run your own analysts, redact, and upload to the Tangle Intelligence Platform.",
5
5
  "type": "module",
6
6
  "license": "MIT",