agent-inspect 6.12.2 → 6.13.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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # Changelog
2
2
 
3
+ ## 6.13.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 2b7bbdf: Cross-surface semantic parity and TraceFacts foundation: shared `summarizeSemanticParity` / `buildTraceFacts`, MCP diagnostics parity, scaffolding-root parent handling, TraceContract tool aliases, and experimental Vitest/Jest matchers (`toPassTraceContract`, `toHaveRequiredTool`). Delivers the v6.12.3 parity and v6.13.0 TraceFacts trains without a schema break or new packages.
8
+
3
9
  ## 6.12.2
4
10
 
5
11
  ### Patch Changes
@@ -8,6 +14,12 @@
8
14
 
9
15
  ## Unreleased
10
16
 
17
+ ### Patch (6.12.3) / Minor (6.13.0) candidates
18
+
19
+ - Cross-surface semantic parity: `summarizeSemanticParity`, MCP adapter diagnostics parity payload, scaffolding-root parent diagnostics, TraceContract `requiredTools`/`forbiddenTools` aliases.
20
+ - Experimental `TraceFacts` (`buildTraceFacts`) with tool/LLM/outcome indexes over logicalEvents.
21
+ - Experimental Vitest/Jest matchers: `toPassTraceContract`, `toHaveRequiredTool`.
22
+
11
23
  ## 6.12.1
12
24
 
13
25
  ### Patch Changes
package/README.md CHANGED
@@ -159,7 +159,7 @@ Details: [Safe sharing](https://github.com/rajudandigam/agent-inspect/blob/main/
159
159
 
160
160
  ## Project status
161
161
 
162
- **Current release:** **6.12.2** (eighteen linked npm packages). Stable launch candidate; eight-week adoption checkpoint in progress; external pilot evidence pending. Persisted schema **1.0**. Node.js **≥ 20**. **v7 not scheduled.**
162
+ **Current release:** **6.13.0** (eighteen linked npm packages). Stable launch candidate; eight-week adoption checkpoint in progress; external pilot evidence pending. Persisted schema **1.0**. Node.js **≥ 20**. **v7 not scheduled.**
163
163
 
164
164
  [Roadmap](ROADMAP.md) · [Pilot kit](https://github.com/rajudandigam/agent-inspect/blob/main/docs/PRE-V7-PILOT-KIT.md) · [Changelog](CHANGELOG.md)
165
165
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agent-inspect",
3
- "version": "6.12.2",
3
+ "version": "6.13.0",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "description": "Debug, regression-test, and safely share TypeScript AI-agent behavior locally — no account, no default upload, metadata-only by default",
@@ -6046,11 +6046,16 @@ function projectLogicalEvents(events) {
6046
6046
  }
6047
6047
  if (!remapped) {
6048
6048
  if (!logicalById.has(originalParentId) && !logicalByRawId.has(originalParentId)) {
6049
- diagnostics.push({
6050
- code: "AI_LOGICAL_PARENT_UNRESOLVED",
6051
- message: `Parent ${originalParentId} unresolved for ${event.eventId}.`,
6052
- eventIds: [event.eventId]
6053
- });
6049
+ const mapping = event.attributes?.parentMapping;
6050
+ const unresolved = mapping === "unresolved" || event.attributes?.parentUnresolved === true || event.attributes?.unresolvedParent === true || // LangGraph/framework scaffolding sentinel labels are not event ids.
6051
+ /^LangGraph$/i.test(originalParentId) || originalParentId.startsWith("unresolved:");
6052
+ if (!unresolved) {
6053
+ diagnostics.push({
6054
+ code: "AI_LOGICAL_PARENT_UNRESOLVED",
6055
+ message: `Parent ${originalParentId} unresolved for ${event.eventId}.`,
6056
+ eventIds: [event.eventId]
6057
+ });
6058
+ }
6054
6059
  }
6055
6060
  normalized.push(event);
6056
6061
  continue;
@@ -11015,5 +11020,5 @@ function renderGateReport(result, options = {}) {
11015
11020
  }
11016
11021
 
11017
11022
  export { COHORT_METRIC_IDS, DEFAULT_SUITE_ARTIFACTS_DIR, EVIDENCE_FORMAT_VERSION, EVIDENCE_HTML_FILENAME, EVIDENCE_MANIFEST_FILENAME, Redactor, TraceDirectory, TraceReadError, TreeBuilder, aggregateBundleSafeStatus, aggregateSessionCheckResults, analyzeCohort, applyProfileMetadataCaps, assertBundlePathContained, assertEvidenceRelativePath, buildActivitySummary, buildBundleMetadata, buildBundleSummaryMarkdown, buildEvidenceCausalFailureViewHtml, buildEvidenceCiPackage, buildEvidenceCircuitViewHtml, buildEvidenceContractsViewHtml, buildEvidenceDiffViewHtml, buildEvidenceHtmlShell, buildEvidenceManifest, buildEvidenceOutcomesViewHtml, buildEvidenceProvenanceViewHtml, buildEvidenceSafetyViewHtml, buildEvidenceTimelineViewHtml, buildEvidenceToolsLlmViewHtml, buildEvidenceTreeViewHtml, buildLocalExplanation, buildPlaceholderArtifact, buildRunSummary, buildRunTimeline, buildRunWhatSummary, buildSessionIndex, buildTraceStats, buildZipArchive, bundleFailsOnSafety, bundleRunAssetRelativePath, collectTraceSchemaVersions, compactAttributes, createBaselineRegressionRule, createLlmUsageRule, createMaxStepDurationRule, createObservedOutcomeRule, createRequireCompletedRule, createRunDepthRule, createRunDurationRule, createRunStatusRule, createSafetyOversizedAttributeRule, createSafetyRawContentRule, createSafetyRedactionRule, createSafetySecretPatternRule, createStallDetectionRule, createStructureCycleRule, createStructureOrphanRule, createStructureParallelWidthRule, createStructureRelationshipRule, createToolUsageRule, defaultBundleOutputPath, defaultSuiteConfigTemplate, diffRuns, diffTraceEvents, enrichSessionRunRecord, escapeHtml, escapeMarkdown, extractMetadata, extractOutcomesFromTraceEvents, filterMetasBySessionScope, filterTraces, flattenTree, formatDuration2 as formatDuration, formatTimestamp, gateHasThresholds, getIndent, getTraceFilePath, inferEvidenceFileRole, isAgentInspectTrace, isPersistedInspectEvent, loadSessionRunRecords, loadSuiteConfig, loadTraceMetadataList, manualTraceEventsToComparableRun, nanoid, normalizeBundleOutputPath, openTrace, parseCohortMetricList, parseDuration, parseDurationFilter, parseGateList, parseTraceJsonl, persistedInspectEventsToTraceEvents, renderActivitySummaryHuman, renderCohortReport, renderErrorLine, renderGateReport, renderObservedOutcomesHtml, renderObservedOutcomesMarkdown, renderRunDiff, renderRunWhat, renderStepLine, renderSuiteReport, renderTimeline, renderTraceStats, resolveBundleRunIds, resolveRedactionProfile, resolveSuiteTemplate, resolveTraceDir, runGate, runSuite, runTraceChecks, safeString, sanitizeBundleRunId, searchTraces, serializeEvidenceManifest, sha256Hex, stableJson, summarizeObservedOutcomes, traceEventToPersistedInspectEvent, truncateName, truncateStringForProfile, validateEvent, validateSuiteConfig, verifyEvidenceDirectory, zeroKinds };
11018
- //# sourceMappingURL=chunk-4WA7DQCM.mjs.map
11019
- //# sourceMappingURL=chunk-4WA7DQCM.mjs.map
11023
+ //# sourceMappingURL=chunk-QOKTMZAY.mjs.map
11024
+ //# sourceMappingURL=chunk-QOKTMZAY.mjs.map