agent-inspect 6.31.31 → 6.31.32

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 (47) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/README.md +1 -1
  3. package/docs/CLI.md +3 -1
  4. package/docs/TRACE-CONTRACTS.md +2 -0
  5. package/package.json +1 -1
  6. package/packages/cli/dist/{chunk-4GTOJ3G2.mjs → chunk-PEGM6T2X.mjs} +82 -9
  7. package/packages/cli/dist/chunk-PEGM6T2X.mjs.map +1 -0
  8. package/packages/cli/dist/index.cjs +100 -11
  9. package/packages/cli/dist/index.cjs.map +1 -1
  10. package/packages/cli/dist/index.mjs +23 -7
  11. package/packages/cli/dist/index.mjs.map +1 -1
  12. package/packages/cli/dist/{src-BF74ZVDF.mjs → src-CWUJTMRD.mjs} +3 -3
  13. package/packages/cli/dist/{src-BF74ZVDF.mjs.map → src-CWUJTMRD.mjs.map} +1 -1
  14. package/packages/core/dist/advanced.cjs +4 -0
  15. package/packages/core/dist/advanced.cjs.map +1 -1
  16. package/packages/core/dist/advanced.d.cts +2 -2
  17. package/packages/core/dist/advanced.d.ts +2 -2
  18. package/packages/core/dist/advanced.mjs +9 -9
  19. package/packages/core/dist/checks.cjs +76 -7
  20. package/packages/core/dist/checks.cjs.map +1 -1
  21. package/packages/core/dist/checks.d.cts +2 -2
  22. package/packages/core/dist/checks.d.ts +2 -2
  23. package/packages/core/dist/checks.mjs +3 -3
  24. package/packages/core/dist/{chunk-BYNAJPNH.mjs → chunk-6G67ZN72.mjs} +79 -10
  25. package/packages/core/dist/chunk-6G67ZN72.mjs.map +1 -0
  26. package/packages/core/dist/{chunk-76QIWWJ5.mjs → chunk-6S666BF4.mjs} +3 -3
  27. package/packages/core/dist/{chunk-76QIWWJ5.mjs.map → chunk-6S666BF4.mjs.map} +1 -1
  28. package/packages/core/dist/{chunk-QMO3ITYF.mjs → chunk-FBPDF7HO.mjs} +3 -3
  29. package/packages/core/dist/{chunk-QMO3ITYF.mjs.map → chunk-FBPDF7HO.mjs.map} +1 -1
  30. package/packages/core/dist/{chunk-XM27TZLD.mjs → chunk-RB6WANSW.mjs} +6 -2
  31. package/packages/core/dist/chunk-RB6WANSW.mjs.map +1 -0
  32. package/packages/core/dist/{chunk-JTJN4KBJ.mjs → chunk-VIEJJ5JB.mjs} +4 -4
  33. package/packages/core/dist/{chunk-JTJN4KBJ.mjs.map → chunk-VIEJJ5JB.mjs.map} +1 -1
  34. package/packages/core/dist/exporters.cjs +4 -0
  35. package/packages/core/dist/exporters.cjs.map +1 -1
  36. package/packages/core/dist/exporters.mjs +3 -3
  37. package/packages/core/dist/{index-DACU4Dy1.d.cts → index-Ceyw5x7b.d.cts} +4 -2
  38. package/packages/core/dist/{index-b4tIGrzq.d.ts → index-K5Cinf1r.d.ts} +4 -2
  39. package/packages/core/dist/index.cjs +4 -0
  40. package/packages/core/dist/index.cjs.map +1 -1
  41. package/packages/core/dist/index.mjs +4 -4
  42. package/packages/core/dist/writers.cjs +4 -0
  43. package/packages/core/dist/writers.cjs.map +1 -1
  44. package/packages/core/dist/writers.mjs +1 -1
  45. package/packages/cli/dist/chunk-4GTOJ3G2.mjs.map +0 -1
  46. package/packages/core/dist/chunk-BYNAJPNH.mjs.map +0 -1
  47. package/packages/core/dist/chunk-XM27TZLD.mjs.map +0 -1
@@ -1,8 +1,8 @@
1
- import { buildRunWhatSummary, renderRunWhat, renderTimeline, buildRunTimeline } from './chunk-76QIWWJ5.mjs';
2
- import { summarizeObservedOutcomes, extractOutcomesFromTraceEvents, renderObservedOutcomesMarkdown, renderObservedOutcomesHtml } from './chunk-QMO3ITYF.mjs';
1
+ import { buildRunWhatSummary, renderRunWhat, renderTimeline, buildRunTimeline } from './chunk-6S666BF4.mjs';
2
+ import { summarizeObservedOutcomes, extractOutcomesFromTraceEvents, renderObservedOutcomesMarkdown, renderObservedOutcomesHtml } from './chunk-FBPDF7HO.mjs';
3
3
  import { escapeHtml, flattenTree, safeString, compactAttributes, stableJson, escapeMarkdown, zeroKinds } from './chunk-CAWPF22J.mjs';
4
4
  export { compactAttributes, escapeHtml, escapeMarkdown, flattenTree, safeString, stableJson, summarizeTree } from './chunk-CAWPF22J.mjs';
5
- import { resolveRedactionProfile, applyProfileMetadataCaps, truncateStringForProfile, stringContainsHighConfidenceCredential } from './chunk-XM27TZLD.mjs';
5
+ import { resolveRedactionProfile, applyProfileMetadataCaps, truncateStringForProfile, stringContainsHighConfidenceCredential } from './chunk-RB6WANSW.mjs';
6
6
  import { Redactor, DEFAULT_REDACT_KEYS, isCredentialSensitiveKey } from './chunk-VLVCLAPB.mjs';
7
7
  import { IDENTITY_CONFLICT_ATTR, DELIVERY_CONFLICT_ATTR, DELIVERY_EVENT_BASE_ATTR } from './chunk-AN5MOADW.mjs';
8
8
  import './chunk-7DHSWDKB.mjs';
@@ -1024,7 +1024,8 @@ interface StepOrderingRuleOptions {
1024
1024
  * Ordering semantics. `first-occurrence` preserves first-occurrence encounter
1025
1025
  * ordering, `happens-before` requires the first before event to finish before
1026
1026
  * the first after event starts, and `all-occurrences` applies that causal
1027
- * boundary to every matching occurrence.
1027
+ * boundary to every matching occurrence. When the boundary timestamps tie at
1028
+ * millisecond resolution, the causal modes decide by recorded event order.
1028
1029
  *
1029
1030
  * @defaultValue `"first-occurrence"`
1030
1031
  */
@@ -1055,7 +1056,8 @@ interface ToolOrderingRuleOptions {
1055
1056
  * Ordering semantics. `first-occurrence` preserves first-occurrence encounter
1056
1057
  * ordering, `happens-before` requires the first before event to finish before
1057
1058
  * the first after event starts, and `all-occurrences` applies that causal
1058
- * boundary to every matching occurrence.
1059
+ * boundary to every matching occurrence. When the boundary timestamps tie at
1060
+ * millisecond resolution, the causal modes decide by recorded event order.
1059
1061
  *
1060
1062
  * @defaultValue `"first-occurrence"`
1061
1063
  * @experimental Available through `agent-inspect/checks`.
@@ -1024,7 +1024,8 @@ interface StepOrderingRuleOptions {
1024
1024
  * Ordering semantics. `first-occurrence` preserves first-occurrence encounter
1025
1025
  * ordering, `happens-before` requires the first before event to finish before
1026
1026
  * the first after event starts, and `all-occurrences` applies that causal
1027
- * boundary to every matching occurrence.
1027
+ * boundary to every matching occurrence. When the boundary timestamps tie at
1028
+ * millisecond resolution, the causal modes decide by recorded event order.
1028
1029
  *
1029
1030
  * @defaultValue `"first-occurrence"`
1030
1031
  */
@@ -1055,7 +1056,8 @@ interface ToolOrderingRuleOptions {
1055
1056
  * Ordering semantics. `first-occurrence` preserves first-occurrence encounter
1056
1057
  * ordering, `happens-before` requires the first before event to finish before
1057
1058
  * the first after event starts, and `all-occurrences` applies that causal
1058
- * boundary to every matching occurrence.
1059
+ * boundary to every matching occurrence. When the boundary timestamps tie at
1060
+ * millisecond resolution, the causal modes decide by recorded event order.
1059
1061
  *
1060
1062
  * @defaultValue `"first-occurrence"`
1061
1063
  * @experimental Available through `agent-inspect/checks`.
@@ -241,6 +241,10 @@ var HIGH_CONFIDENCE_CREDENTIAL_PATTERNS = [
241
241
  /\b[a-z0-9_.-]+=[^;\s]+(?:;\s*[a-z0-9_.-]+=[^;\s]+)+/i,
242
242
  /\beyJ[a-zA-Z0-9_-]{8,}\.[a-zA-Z0-9_-]{8,}\.[a-zA-Z0-9_-]{8,}\b/,
243
243
  /\b(?:sk-(?:proj-)?[a-zA-Z0-9_-]{16,}|sk-ant-[a-zA-Z0-9_-]{16,}|AIza[0-9A-Za-z_-]{20,})\b/,
244
+ // Stripe secret / restricted keys use underscores (not sk-). Keep in sync with
245
+ // packages/redact/src/index.ts + packages/core/src/checks DEFAULT_SECRET_PATTERNS (#520).
246
+ /\b(?:sk|rk)_(?:live|test)_[A-Za-z0-9]{16,}\b/,
247
+ /\bxox[abposr]-[A-Za-z0-9-]{10,}\b/,
244
248
  /\b(?:ghp|gho|ghu|ghs|ghr)_[A-Za-z0-9_]{20,}\b/,
245
249
  /\b(?:AKIA|ASIA)[A-Z0-9]{16}\b/,
246
250
  /-----BEGIN [A-Z ]*PRIVATE KEY-----[\s\S]*-----END [A-Z ]*PRIVATE KEY-----/,