agent-inspect 6.31.16 → 6.31.17

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.
Files changed (41) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/README.md +1 -1
  3. package/SECURITY.md +1 -0
  4. package/docs/COMPARE.md +11 -0
  5. package/package.json +1 -1
  6. package/packages/cli/dist/{chunk-ZAYVAHIH.mjs → chunk-USZJEEME.mjs} +6 -6
  7. package/packages/cli/dist/chunk-USZJEEME.mjs.map +1 -0
  8. package/packages/cli/dist/index.cjs +11 -8
  9. package/packages/cli/dist/index.cjs.map +1 -1
  10. package/packages/cli/dist/index.mjs +10 -7
  11. package/packages/cli/dist/index.mjs.map +1 -1
  12. package/packages/cli/dist/{src-KP4UIFK5.mjs → src-EY4EY456.mjs} +3 -3
  13. package/packages/cli/dist/{src-KP4UIFK5.mjs.map → src-EY4EY456.mjs.map} +1 -1
  14. package/packages/core/dist/advanced.cjs +1 -1
  15. package/packages/core/dist/advanced.cjs.map +1 -1
  16. package/packages/core/dist/advanced.mjs +9 -9
  17. package/packages/core/dist/checks.cjs +3 -3
  18. package/packages/core/dist/checks.cjs.map +1 -1
  19. package/packages/core/dist/checks.mjs +3 -3
  20. package/packages/core/dist/{chunk-SSG3ICI4.mjs → chunk-6C244CAV.mjs} +4 -4
  21. package/packages/core/dist/{chunk-SSG3ICI4.mjs.map → chunk-6C244CAV.mjs.map} +1 -1
  22. package/packages/core/dist/{chunk-N5PZAI6Q.mjs → chunk-77UZIMMD.mjs} +3 -3
  23. package/packages/core/dist/{chunk-N5PZAI6Q.mjs.map → chunk-77UZIMMD.mjs.map} +1 -1
  24. package/packages/core/dist/{chunk-DK3OW6UI.mjs → chunk-EOXUEQB6.mjs} +3 -3
  25. package/packages/core/dist/chunk-EOXUEQB6.mjs.map +1 -0
  26. package/packages/core/dist/{chunk-CCYKNAOD.mjs → chunk-GTA6SNDK.mjs} +6 -6
  27. package/packages/core/dist/chunk-GTA6SNDK.mjs.map +1 -0
  28. package/packages/core/dist/{chunk-M3RJD3BP.mjs → chunk-NX25C7JZ.mjs} +3 -3
  29. package/packages/core/dist/{chunk-M3RJD3BP.mjs.map → chunk-NX25C7JZ.mjs.map} +1 -1
  30. package/packages/core/dist/exporters.cjs +1 -1
  31. package/packages/core/dist/exporters.cjs.map +1 -1
  32. package/packages/core/dist/exporters.mjs +3 -3
  33. package/packages/core/dist/index.cjs +1 -1
  34. package/packages/core/dist/index.cjs.map +1 -1
  35. package/packages/core/dist/index.mjs +4 -4
  36. package/packages/core/dist/writers.cjs +1 -1
  37. package/packages/core/dist/writers.cjs.map +1 -1
  38. package/packages/core/dist/writers.mjs +1 -1
  39. package/packages/cli/dist/chunk-ZAYVAHIH.mjs.map +0 -1
  40. package/packages/core/dist/chunk-CCYKNAOD.mjs.map +0 -1
  41. package/packages/core/dist/chunk-DK3OW6UI.mjs.map +0 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # Changelog
2
2
 
3
+ ## 6.31.17
4
+
5
+ ### Patch Changes
6
+
7
+ - dc9aaf2: Harden sensitive-key complete-marker handling so arbitrary `[REDACTED:…]` / `[HASH:…]` payloads are re-scrubbed (library-emitted markers only), and ship the already-merged Windows `--policy` drive-path fix.
8
+
3
9
  ## 6.31.16
4
10
 
5
11
  ### Patch Changes
package/README.md CHANGED
@@ -213,7 +213,7 @@ The root package is enough for custom capture, the CLI, checks, and Evidence wor
213
213
 
214
214
  ## Status and documentation
215
215
 
216
- **Current published baseline:** **6.31.16** · persisted schema `1.0` · Node.js `>=20` · MIT.
216
+ **Current published baseline:** **6.31.17** · persisted schema `1.0` · Node.js `>=20` · MIT.
217
217
 
218
218
  Legacy v0.1 and v0.2 traces remain readable. Check the npm badge and [changelog](CHANGELOG.md) for the current published version.
219
219
 
package/SECURITY.md CHANGED
@@ -62,6 +62,7 @@ AgentInspect aims to be safe-by-default for **log-derived attributes** and **exp
62
62
 
63
63
  - Log ingestion applies redaction to parsed attributes using configured rules (with conservative defaults).
64
64
  - Exporters default to redacted output and bounded attribute previews.
65
+ - Sensitive-key complete-marker bypass trusts only library-emitted placeholders (`[REDACTED]`, `[HASH:<8 hex>]`, `[HASH:unknown]`). Arbitrary `[REDACTED:…]` / `[HASH:…]` strings are re-scrubbed. Report residual marker-grammar gaps via a private advisory when possible.
65
66
 
66
67
  Important limitations:
67
68
 
package/docs/COMPARE.md CHANGED
@@ -100,6 +100,16 @@ AgentInspect avoids SDK/collector setup for local debugging:
100
100
  - Use OpenTelemetry when you need organization-wide production telemetry pipelines.
101
101
  - Local OTLP JSON export can help bridge later, but AgentInspect is not an OpenTelemetry SDK replacement.
102
102
 
103
+ ## AgentInspect vs OrcaReplay
104
+
105
+ OrcaReplay is a local CLI that records an agent run at the model-provider boundary and serves the recorded turns back later without contacting the provider.
106
+
107
+ AgentInspect is local-first CLI debugging:
108
+
109
+ - Use AgentInspect to inspect and gate a run's trajectory; the two capture at different layers, so a run can be captured by both at once — AgentInspect instruments inside the process and produces an execution tree, while OrcaReplay proxies the provider connection and records the bytes on the wire.
110
+ - If you reach for OrcaReplay, two limits are worth knowing: a matching replay is not a determinism result, and replay blocks model-provider egress only — it is not a sandbox, so recorded tool calls still execute and a tool that opens its own connection still reaches the network.
111
+ - AgentInspect does not replay a recorded run; the README lists "a replay engine" among the things it is not.
112
+
103
113
  ## Quick decision table
104
114
 
105
115
  | Need | AgentInspect fit |
@@ -112,6 +122,7 @@ AgentInspect avoids SDK/collector setup for local debugging:
112
122
  | Share-safe local redaction copy | Good fit |
113
123
  | Existing structured logs to trees | Good fit |
114
124
  | VS Code trace review (in-repo extension) | Good fit; Marketplace listing separate |
125
+ | Offline replay of a recorded run | Not the goal |
115
126
  | Production dashboards | Not the goal |
116
127
  | Hosted eval datasets | Not the goal |
117
128
  | Prompt management | Not the goal |
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agent-inspect",
3
- "version": "6.31.16",
3
+ "version": "6.31.17",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "description": "Local evidence debugger and trajectory-test toolkit for TypeScript AI agents — execution trees, TraceContract checks, Evidence v2, and read-only MCP",
@@ -930,7 +930,7 @@ var Redactor = class {
930
930
  };
931
931
 
932
932
  // packages/core/src/safety/credential-value-patterns.ts
933
- var KEY_VALUE_SECRET_PATTERN = /\b(?:api[_-]?key|internal[_-]?token|access[_-]?token|auth[_-]?token|password|secret|token)=(?!\[(?:REDACTED(?::[^\]]*)?|HASH:[0-9a-f]{8})\](?![^\s"'\\&#?]))([^\s"'\\]{8,})/i;
933
+ var KEY_VALUE_SECRET_PATTERN = /\b(?:api[_-]?key|internal[_-]?token|access[_-]?token|auth[_-]?token|password|secret|token)=(?!\[(?:REDACTED|HASH:(?:[0-9a-f]{8}|unknown))\](?![^\s"'\\&#?]))([^\s"'\\]{8,})/i;
934
934
  var HIGH_CONFIDENCE_CREDENTIAL_PATTERNS = [
935
935
  /^(?:basic|bearer|digest|apikey)\s+[a-z0-9._~+/=-]+$/i,
936
936
  /\bbearer\s+[a-z0-9._~+/=-]{12,}\b/i,
@@ -7525,7 +7525,7 @@ var DEFAULT_SECRET_PATTERNS = [
7525
7525
  // Keep in sync with packages/redact/src/key-value-secret.ts (KEY_VALUE_SECRET_PATTERN_SOURCE).
7526
7526
  {
7527
7527
  id: "key-value-secret",
7528
- pattern: /\b(?:api[_-]?key|internal[_-]?token|access[_-]?token|auth[_-]?token|password|secret|token)=(?!\[(?:REDACTED(?::[^\]]*)?|HASH:[0-9a-f]{8})\](?![^\s"'\\&#?]))([^\s"'\\]{8,})/i
7528
+ pattern: /\b(?:api[_-]?key|internal[_-]?token|access[_-]?token|auth[_-]?token|password|secret|token)=(?!\[(?:REDACTED|HASH:(?:[0-9a-f]{8}|unknown))\](?![^\s"'\\&#?]))([^\s"'\\]{8,})/i
7529
7529
  }
7530
7530
  ];
7531
7531
  function compareStrings(a, b) {
@@ -7966,8 +7966,8 @@ function isFullyRedactedValue(value, markers = ["[REDACTED]", "[REDACTED:"]) {
7966
7966
  if (typeof value !== "string") return false;
7967
7967
  const trimmed = value.trim();
7968
7968
  if (trimmed.length === 0) return false;
7969
- if (/^\[HASH:[A-Za-z0-9_-]+\]$/.test(trimmed)) return true;
7970
- if (/^\[REDACTED:[^\]]*\]$/.test(trimmed)) return true;
7969
+ if (trimmed === "[HASH:unknown]") return true;
7970
+ if (/^\[HASH:[0-9a-f]{8}\]$/.test(trimmed)) return true;
7971
7971
  for (const marker of markers) {
7972
7972
  if (marker.endsWith(":")) continue;
7973
7973
  if (trimmed === marker) return true;
@@ -15547,5 +15547,5 @@ function renderGateReport(result, options = {}) {
15547
15547
  }
15548
15548
 
15549
15549
  export { ATTRIBUTION_CONFIDENCES, COHORT_METRIC_IDS, DEFAULT_REDACT_KEYS, 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, defineTraceContract, diffRuns, diffTraceEvents, enrichSessionRunRecord, escapeHtml, escapeMarkdown, evaluateTraceContract, extractMetadata, extractOutcomesFromTraceEvents, filterMetasBySessionScope, filterTraces, flattenTree, formatDuration2 as formatDuration, formatStepLabel, formatTimestamp, gateHasThresholds, getIndent, getTraceFilePath, inferEvidenceFileRole, isAgentInspectTrace, isAttributionConfidence, isCredentialSensitiveKey, isPersistedInspectEvent, loadSessionRunRecords, loadSuiteConfig, loadTraceMetadataList, manualTraceEventsToComparableRun, nanoid, normalizeBundleOutputPath, openTrace, parseCohortMetricList, parseDuration, parseDurationFilter, parseGateList, parseTraceJsonl, persistedInspectEventsToRunTrees, persistedInspectEventsToTraceEvents, projectLogicalEvents, 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, stringContainsHighConfidenceCredential, summarizeObservedOutcomes, summarizeSemanticParity, traceEventToPersistedInspectEvent, truncateName, truncateStringForProfile, validateEvent, validateSuiteConfig, verifyEvidenceDirectory, zeroKinds };
15550
- //# sourceMappingURL=chunk-ZAYVAHIH.mjs.map
15551
- //# sourceMappingURL=chunk-ZAYVAHIH.mjs.map
15550
+ //# sourceMappingURL=chunk-USZJEEME.mjs.map
15551
+ //# sourceMappingURL=chunk-USZJEEME.mjs.map