@tangle-network/traces 0.8.0 → 0.8.11

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
@@ -1,8 +1,10 @@
1
1
  import {
2
+ ACTOR_ATTR,
2
3
  ATTR,
3
4
  AmpAdapter,
4
5
  CODING_REDACTION_RULES,
5
6
  CONTENT_CAP,
7
+ CORRECTIVE_REACTIONS,
6
8
  ClaudeAdapter,
7
9
  CodexAdapter,
8
10
  CopilotAdapter,
@@ -14,41 +16,72 @@ import {
14
16
  OpencodeAdapter,
15
17
  PiAdapter,
16
18
  QwenAdapter,
19
+ REACTIONS,
17
20
  TRACES_REDACTION_RULES,
18
21
  alreadyUploaded,
22
+ analyzeAdoption,
23
+ analyzeReactions,
19
24
  analyzeSpans,
20
25
  applyRedactor,
26
+ buildPolicyEvidenceRecord,
27
+ buildSessionIndex,
28
+ buildSessionIndexFromRows,
21
29
  capText,
30
+ classifyReaction,
31
+ claudeActor,
32
+ codexActor,
33
+ collectPolicyEvidence,
34
+ collectSessionIndex,
22
35
  commandAnalyzer,
23
36
  commandRedactor,
37
+ countSkillRunsJsonl,
24
38
  executeUpload,
39
+ exportTraceEvidenceFile,
40
+ exportTraceEvidenceRows,
41
+ exportTraceEvidenceText,
25
42
  haloAnalyzer,
43
+ inspectSessionIndex,
26
44
  knownHarnesses,
27
45
  listAdapters,
28
46
  loadState,
47
+ looksLikeAgentPrompt,
48
+ normalizeRemote,
29
49
  parseIsoToEpochMs,
50
+ parseSession,
30
51
  parseSince,
31
52
  planUpload,
53
+ readSessionIndexFile,
32
54
  redactSpans,
55
+ renderInspectionReport,
33
56
  resolveAdapter,
57
+ resolveRepoAttrs,
58
+ resolveSessionRepoAttrs,
34
59
  runCommand,
35
60
  runExternalAnalyzers,
36
61
  runPipelines,
37
62
  saveState,
38
63
  scanSessions,
39
64
  selectAdapters,
65
+ serializeInspectionReport,
66
+ serializePolicyEvidence,
67
+ serializeSessionIndex,
40
68
  serializeSpans,
41
69
  sessionHash,
42
70
  span,
43
- toCanonicalOpenInference,
71
+ stampRepoAttrs,
72
+ textIsSynthetic,
44
73
  toOpenInferenceSpan,
45
74
  toRuntimeStore,
46
75
  toTraceSpanEvents,
47
76
  uploadKey,
48
77
  userPromptSpan,
49
78
  watchSessions,
50
- writeOtlpFile
51
- } from "./chunk-BUD6I3ZJ.js";
79
+ writeInspectionReportFile,
80
+ writeOtlpFile,
81
+ writePolicyEvidenceFile,
82
+ writeSessionIndexFile,
83
+ writeTraceEvidenceExportFile
84
+ } from "./chunk-PRRWLKSI.js";
52
85
 
53
86
  // src/collect.ts
54
87
  async function collectSessions(opts = {}) {
@@ -73,11 +106,13 @@ import {
73
106
  import { createHostedClient, hostedClientFromEnv } from "@tangle-network/agent-eval/hosted";
74
107
  import { DEFAULT_REDACTION_RULES, redactString, redactValue } from "@tangle-network/agent-eval/traces";
75
108
  export {
109
+ ACTOR_ATTR,
76
110
  ATTR,
77
111
  AmpAdapter,
78
112
  AnalystRegistry,
79
113
  CODING_REDACTION_RULES,
80
114
  CONTENT_CAP,
115
+ CORRECTIVE_REACTIONS,
81
116
  ClaudeAdapter,
82
117
  CodexAdapter,
83
118
  CopilotAdapter,
@@ -90,45 +125,76 @@ export {
90
125
  OpencodeAdapter,
91
126
  PiAdapter,
92
127
  QwenAdapter,
128
+ REACTIONS,
93
129
  TRACES_REDACTION_RULES,
94
130
  alreadyUploaded,
131
+ analyzeAdoption,
132
+ analyzeReactions,
95
133
  analyzeSpans,
96
134
  applyRedactor,
97
135
  buildDefaultAnalystRegistry,
136
+ buildPolicyEvidenceRecord,
137
+ buildSessionIndex,
138
+ buildSessionIndexFromRows,
98
139
  capText,
140
+ classifyReaction,
141
+ claudeActor,
142
+ codexActor,
143
+ collectPolicyEvidence,
144
+ collectSessionIndex,
99
145
  collectSessions,
100
146
  commandAnalyzer,
101
147
  commandRedactor,
148
+ countSkillRunsJsonl,
102
149
  createHostedClient,
103
150
  executeUpload,
151
+ exportTraceEvidenceFile,
152
+ exportTraceEvidenceRows,
153
+ exportTraceEvidenceText,
104
154
  haloAnalyzer,
105
155
  hostedClientFromEnv,
156
+ inspectSessionIndex,
106
157
  knownHarnesses,
107
158
  listAdapters,
108
159
  loadState,
160
+ looksLikeAgentPrompt,
109
161
  makeFinding,
162
+ normalizeRemote,
110
163
  parseIsoToEpochMs,
164
+ parseSession,
111
165
  parseSince,
112
166
  planUpload,
167
+ readSessionIndexFile,
113
168
  redactSpans,
114
169
  redactString,
115
170
  redactValue,
171
+ renderInspectionReport,
116
172
  resolveAdapter,
173
+ resolveRepoAttrs,
174
+ resolveSessionRepoAttrs,
117
175
  runCommand,
118
176
  runExternalAnalyzers,
119
177
  runPipelines,
120
178
  saveState,
121
179
  scanSessions,
122
180
  selectAdapters,
181
+ serializeInspectionReport,
182
+ serializePolicyEvidence,
183
+ serializeSessionIndex,
123
184
  serializeSpans,
124
185
  sessionHash,
125
186
  span,
126
- toCanonicalOpenInference,
187
+ stampRepoAttrs,
188
+ textIsSynthetic,
127
189
  toOpenInferenceSpan,
128
190
  toRuntimeStore,
129
191
  toTraceSpanEvents,
130
192
  uploadKey,
131
193
  userPromptSpan,
132
194
  watchSessions,
133
- writeOtlpFile
195
+ writeInspectionReportFile,
196
+ writeOtlpFile,
197
+ writePolicyEvidenceFile,
198
+ writeSessionIndexFile,
199
+ writeTraceEvidenceExportFile
134
200
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tangle-network/traces",
3
- "version": "0.8.0",
3
+ "version": "0.8.11",
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",
@@ -22,7 +22,6 @@
22
22
  "llm",
23
23
  "coding-agent"
24
24
  ],
25
- "packageManager": "pnpm@10.33.4",
26
25
  "main": "./dist/index.js",
27
26
  "types": "./dist/index.d.ts",
28
27
  "exports": {
@@ -42,23 +41,23 @@
42
41
  "engines": {
43
42
  "node": ">=22"
44
43
  },
45
- "scripts": {
46
- "dev": "tsx src/cli.ts",
47
- "build": "tsup src/index.ts src/cli.ts --format esm --target node22 --clean --dts",
48
- "test": "vitest run",
49
- "test:watch": "vitest",
50
- "typecheck": "tsc --noEmit",
51
- "prepublishOnly": "pnpm build"
52
- },
53
44
  "dependencies": {
54
45
  "@ax-llm/ax": "^19.0.45",
55
- "@tangle-network/agent-eval": "0.94.0"
46
+ "@tangle-network/agent-eval": "^0.99.0"
56
47
  },
57
48
  "devDependencies": {
58
49
  "@types/node": "^22.0.0",
59
50
  "tsup": "^8.0.0",
60
51
  "tsx": "^4.19.0",
61
52
  "typescript": "^5.7.0",
62
- "vitest": "^2.0.0"
53
+ "vite": "^8.1.2",
54
+ "vitest": "^4.1.9"
55
+ },
56
+ "scripts": {
57
+ "dev": "tsx src/cli.ts",
58
+ "build": "tsup src/index.ts src/cli.ts --format esm --target node22 --clean --dts",
59
+ "test": "vitest run",
60
+ "test:watch": "vitest",
61
+ "typecheck": "tsc --noEmit"
63
62
  }
64
- }
63
+ }