agent-inspect 1.7.0 → 1.9.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.
Files changed (51) hide show
  1. package/CHANGELOG.md +21 -1
  2. package/README.md +145 -21
  3. package/docs/ADAPTER-CONFORMANCE.md +7 -3
  4. package/docs/ADAPTERS.md +155 -5
  5. package/docs/API.md +214 -26
  6. package/docs/CLI.md +189 -7
  7. package/docs/GETTING-STARTED.md +71 -16
  8. package/docs/KNOWN-ISSUES.md +7 -1
  9. package/docs/LIMITATIONS.md +7 -1
  10. package/docs/LOG-TO-TREE-QUICKSTART.md +1 -2
  11. package/docs/MIGRATION.md +67 -0
  12. package/docs/SCHEMA.md +1 -0
  13. package/package.json +12 -2
  14. package/packages/cli/dist/index.cjs +2454 -140
  15. package/packages/cli/dist/index.cjs.map +1 -1
  16. package/packages/cli/dist/index.mjs +2454 -140
  17. package/packages/cli/dist/index.mjs.map +1 -1
  18. package/packages/core/dist/advanced.d.cts +4 -4
  19. package/packages/core/dist/advanced.d.ts +4 -4
  20. package/packages/core/dist/checks.cjs +1535 -0
  21. package/packages/core/dist/checks.cjs.map +1 -0
  22. package/packages/core/dist/checks.d.cts +585 -0
  23. package/packages/core/dist/checks.d.ts +585 -0
  24. package/packages/core/dist/checks.mjs +1512 -0
  25. package/packages/core/dist/checks.mjs.map +1 -0
  26. package/packages/core/dist/diff.d.cts +3 -3
  27. package/packages/core/dist/diff.d.ts +3 -3
  28. package/packages/core/dist/exporters.d.cts +3 -3
  29. package/packages/core/dist/exporters.d.ts +3 -3
  30. package/packages/core/dist/index.cjs +146 -0
  31. package/packages/core/dist/index.cjs.map +1 -1
  32. package/packages/core/dist/index.d.cts +44 -7
  33. package/packages/core/dist/index.d.ts +44 -7
  34. package/packages/core/dist/index.mjs +148 -1
  35. package/packages/core/dist/index.mjs.map +1 -1
  36. package/packages/core/dist/{inspect-event-Des4JDHo.d.cts → inspect-event-CevRYp58.d.cts} +1 -1
  37. package/packages/core/dist/{inspect-event-Des4JDHo.d.ts → inspect-event-CevRYp58.d.ts} +1 -1
  38. package/packages/core/dist/{log-config-C1GcJPIM.d.ts → log-config-BPHS4Sds.d.ts} +1 -1
  39. package/packages/core/dist/{log-config-BnH8Ykcb.d.cts → log-config-DanPV3P9.d.cts} +1 -1
  40. package/packages/core/dist/logs.d.cts +3 -3
  41. package/packages/core/dist/logs.d.ts +3 -3
  42. package/packages/core/dist/{persisted-inspect-event-DiFto0K2.d.ts → persisted-inspect-event-Cw7TeYGr.d.ts} +1 -1
  43. package/packages/core/dist/{persisted-inspect-event-0kaRADsp.d.cts → persisted-inspect-event-DHPfzUd8.d.cts} +1 -1
  44. package/packages/core/dist/persisted.d.cts +5 -5
  45. package/packages/core/dist/persisted.d.ts +5 -5
  46. package/packages/core/dist/readers.d.cts +2 -2
  47. package/packages/core/dist/readers.d.ts +2 -2
  48. package/packages/core/dist/{types-tSix7tfv.d.ts → types-Ap9uMdx_.d.ts} +1 -1
  49. package/packages/core/dist/{types-DB8jB6Jg.d.cts → types-B2-BU5CS.d.cts} +1 -1
  50. package/packages/core/dist/writers.d.cts +2 -2
  51. package/packages/core/dist/writers.d.ts +2 -2
@@ -38,4 +38,4 @@ interface InspectRunTree {
38
38
  };
39
39
  }
40
40
 
41
- export type { AttributionConfidence as A, EventSource as E, InspectKind as I, InspectEvent as a, InspectNode as b, InspectRunTree as c };
41
+ export type { AttributionConfidence as A, EventSource as E, InspectKind as I, InspectRunTree as a, InspectNode as b, InspectEvent as c };
@@ -38,4 +38,4 @@ interface InspectRunTree {
38
38
  };
39
39
  }
40
40
 
41
- export type { AttributionConfidence as A, EventSource as E, InspectKind as I, InspectEvent as a, InspectNode as b, InspectRunTree as c };
41
+ export type { AttributionConfidence as A, EventSource as E, InspectKind as I, InspectRunTree as a, InspectNode as b, InspectEvent as c };
@@ -1,4 +1,4 @@
1
- import { I as InspectKind } from './inspect-event-Des4JDHo.js';
1
+ import { I as InspectKind } from './inspect-event-CevRYp58.js';
2
2
 
3
3
  interface LogEventMapping {
4
4
  kind?: InspectKind;
@@ -1,4 +1,4 @@
1
- import { I as InspectKind } from './inspect-event-Des4JDHo.cjs';
1
+ import { I as InspectKind } from './inspect-event-CevRYp58.cjs';
2
2
 
3
3
  interface LogEventMapping {
4
4
  kind?: InspectKind;
@@ -1,6 +1,6 @@
1
- import { a as LogIngestConfig, L as LogEventMapping, R as RedactionRule } from './log-config-BnH8Ykcb.cjs';
2
- export { b as RedactionStrategy } from './log-config-BnH8Ykcb.cjs';
3
- import { a as InspectEvent, c as InspectRunTree } from './inspect-event-Des4JDHo.cjs';
1
+ import { a as LogIngestConfig, L as LogEventMapping, R as RedactionRule } from './log-config-DanPV3P9.cjs';
2
+ export { b as RedactionStrategy } from './log-config-DanPV3P9.cjs';
3
+ import { c as InspectEvent, a as InspectRunTree } from './inspect-event-CevRYp58.cjs';
4
4
 
5
5
  type ParserWarningCode = "MALFORMED_JSON" | "MISSING_RUN_ID" | "MISSING_EVENT" | "MISSING_TIMESTAMP" | "UNSUPPORTED_LOG4JS_PAYLOAD" | "CONFIG_ERROR" | "UNKNOWN";
6
6
  interface ParserWarning {
@@ -1,6 +1,6 @@
1
- import { a as LogIngestConfig, L as LogEventMapping, R as RedactionRule } from './log-config-C1GcJPIM.js';
2
- export { b as RedactionStrategy } from './log-config-C1GcJPIM.js';
3
- import { a as InspectEvent, c as InspectRunTree } from './inspect-event-Des4JDHo.js';
1
+ import { a as LogIngestConfig, L as LogEventMapping, R as RedactionRule } from './log-config-BPHS4Sds.js';
2
+ export { b as RedactionStrategy } from './log-config-BPHS4Sds.js';
3
+ import { c as InspectEvent, a as InspectRunTree } from './inspect-event-CevRYp58.js';
4
4
 
5
5
  type ParserWarningCode = "MALFORMED_JSON" | "MISSING_RUN_ID" | "MISSING_EVENT" | "MISSING_TIMESTAMP" | "UNSUPPORTED_LOG4JS_PAYLOAD" | "CONFIG_ERROR" | "UNKNOWN";
6
6
  interface ParserWarning {
@@ -1,4 +1,4 @@
1
- import { I as InspectKind, A as AttributionConfidence } from './inspect-event-Des4JDHo.js';
1
+ import { I as InspectKind, A as AttributionConfidence } from './inspect-event-CevRYp58.js';
2
2
 
3
3
  type PersistedSchemaVersion = "0.2";
4
4
  type PersistedEventSourceType = "manual" | "json-log" | "log4js" | "adapter" | "ai-sdk" | "otel";
@@ -1,4 +1,4 @@
1
- import { I as InspectKind, A as AttributionConfidence } from './inspect-event-Des4JDHo.cjs';
1
+ import { I as InspectKind, A as AttributionConfidence } from './inspect-event-CevRYp58.cjs';
2
2
 
3
3
  type PersistedSchemaVersion = "0.2";
4
4
  type PersistedEventSourceType = "manual" | "json-log" | "log4js" | "adapter" | "ai-sdk" | "otel";
@@ -1,8 +1,8 @@
1
- import { P as PersistedInspectEvent } from './persisted-inspect-event-0kaRADsp.cjs';
2
- export { a as PersistedEventSource, b as PersistedEventSourceType, c as PersistedEventStatus, d as PersistedInspectError, e as PersistedSchemaVersion, f as PersistedTokenUsage, g as PersistedTraceContext, i as isPersistedInspectEvent } from './persisted-inspect-event-0kaRADsp.cjs';
3
- import { T as TraceEvent } from './types-DB8jB6Jg.cjs';
4
- import { a as InspectEvent, c as InspectRunTree } from './inspect-event-Des4JDHo.cjs';
5
- import './log-config-BnH8Ykcb.cjs';
1
+ import { P as PersistedInspectEvent } from './persisted-inspect-event-DHPfzUd8.cjs';
2
+ export { a as PersistedEventSource, b as PersistedEventSourceType, c as PersistedEventStatus, d as PersistedInspectError, e as PersistedSchemaVersion, f as PersistedTokenUsage, g as PersistedTraceContext, i as isPersistedInspectEvent } from './persisted-inspect-event-DHPfzUd8.cjs';
3
+ import { T as TraceEvent } from './types-B2-BU5CS.cjs';
4
+ import { c as InspectEvent, a as InspectRunTree } from './inspect-event-CevRYp58.cjs';
5
+ import './log-config-DanPV3P9.cjs';
6
6
 
7
7
  interface TraceEventToPersistedOptions {
8
8
  /**
@@ -1,8 +1,8 @@
1
- import { P as PersistedInspectEvent } from './persisted-inspect-event-DiFto0K2.js';
2
- export { a as PersistedEventSource, b as PersistedEventSourceType, c as PersistedEventStatus, d as PersistedInspectError, e as PersistedSchemaVersion, f as PersistedTokenUsage, g as PersistedTraceContext, i as isPersistedInspectEvent } from './persisted-inspect-event-DiFto0K2.js';
3
- import { T as TraceEvent } from './types-tSix7tfv.js';
4
- import { a as InspectEvent, c as InspectRunTree } from './inspect-event-Des4JDHo.js';
5
- import './log-config-C1GcJPIM.js';
1
+ import { P as PersistedInspectEvent } from './persisted-inspect-event-Cw7TeYGr.js';
2
+ export { a as PersistedEventSource, b as PersistedEventSourceType, c as PersistedEventStatus, d as PersistedInspectError, e as PersistedSchemaVersion, f as PersistedTokenUsage, g as PersistedTraceContext, i as isPersistedInspectEvent } from './persisted-inspect-event-Cw7TeYGr.js';
3
+ import { T as TraceEvent } from './types-Ap9uMdx_.js';
4
+ import { c as InspectEvent, a as InspectRunTree } from './inspect-event-CevRYp58.js';
5
+ import './log-config-BPHS4Sds.js';
6
6
 
7
7
  interface TraceEventToPersistedOptions {
8
8
  /**
@@ -1,5 +1,5 @@
1
- import { c as InspectRunTree } from './inspect-event-Des4JDHo.cjs';
2
- import { P as PersistedInspectEvent } from './persisted-inspect-event-0kaRADsp.cjs';
1
+ import { a as InspectRunTree } from './inspect-event-CevRYp58.cjs';
2
+ import { P as PersistedInspectEvent } from './persisted-inspect-event-DHPfzUd8.cjs';
3
3
 
4
4
  type TraceInput = {
5
5
  type: "file";
@@ -1,5 +1,5 @@
1
- import { c as InspectRunTree } from './inspect-event-Des4JDHo.js';
2
- import { P as PersistedInspectEvent } from './persisted-inspect-event-DiFto0K2.js';
1
+ import { a as InspectRunTree } from './inspect-event-CevRYp58.js';
2
+ import { P as PersistedInspectEvent } from './persisted-inspect-event-Cw7TeYGr.js';
3
3
 
4
4
  type TraceInput = {
5
5
  type: "file";
@@ -1,4 +1,4 @@
1
- import { R as RedactionRule } from './log-config-C1GcJPIM.js';
1
+ import { R as RedactionRule } from './log-config-BPHS4Sds.js';
2
2
 
3
3
  /**
4
4
  * Discriminator for what kind of work a {@link Step} represents.
@@ -1,4 +1,4 @@
1
- import { R as RedactionRule } from './log-config-BnH8Ykcb.cjs';
1
+ import { R as RedactionRule } from './log-config-DanPV3P9.cjs';
2
2
 
3
3
  /**
4
4
  * Discriminator for what kind of work a {@link Step} represents.
@@ -1,5 +1,5 @@
1
- import { P as PersistedInspectEvent } from './persisted-inspect-event-0kaRADsp.cjs';
2
- import './inspect-event-Des4JDHo.cjs';
1
+ import { P as PersistedInspectEvent } from './persisted-inspect-event-DHPfzUd8.cjs';
2
+ import './inspect-event-CevRYp58.cjs';
3
3
 
4
4
  interface TraceWriterStats {
5
5
  writtenEvents: number;
@@ -1,5 +1,5 @@
1
- import { P as PersistedInspectEvent } from './persisted-inspect-event-DiFto0K2.js';
2
- import './inspect-event-Des4JDHo.js';
1
+ import { P as PersistedInspectEvent } from './persisted-inspect-event-Cw7TeYGr.js';
2
+ import './inspect-event-CevRYp58.js';
3
3
 
4
4
  interface TraceWriterStats {
5
5
  writtenEvents: number;