@vpxa/aikit 0.1.135 → 0.1.137

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.
@@ -1771,14 +1771,18 @@ interface ReplayEntry {
1771
1771
  source: 'mcp' | 'cli';
1772
1772
  /** Tool or command name */
1773
1773
  tool: string;
1774
- /** Redacted input summary (first 200 chars of JSON) */
1774
+ /** Redacted input summary (first 2000 chars of JSON) */
1775
1775
  input: string;
1776
1776
  /** Duration in milliseconds */
1777
1777
  durationMs: number;
1778
1778
  /** Result status */
1779
1779
  status: 'ok' | 'error';
1780
- /** Short result summary (first 200 chars) */
1780
+ /** Short result summary (first 2000 chars) */
1781
1781
  output: string;
1782
+ /** Correlation ID linking to middleware requestId */
1783
+ traceId: string;
1784
+ /** Original output size in characters before truncation */
1785
+ outputChars: number;
1782
1786
  }
1783
1787
  interface ReplayOptions {
1784
1788
  /** Max entries to return (default: 20) */
@@ -1812,7 +1816,7 @@ declare function replayClear(): void;
1812
1816
  * Helper: create a replay entry from a tool invocation.
1813
1817
  * Use as a wrapper around tool execution.
1814
1818
  */
1815
- declare function replayCapture(source: 'mcp' | 'cli', tool: string, input: unknown, fn: () => Promise<unknown>): Promise<unknown>;
1819
+ declare function replayCapture(source: 'mcp' | 'cli', tool: string, input: unknown, fn: () => Promise<unknown>, traceId?: string): Promise<unknown>;
1816
1820
  //#endregion
1817
1821
  //#region packages/tools/src/restore-points.d.ts
1818
1822
  interface RestorePoint {