agent-afk 5.154.0 → 5.156.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.
@@ -1,3 +1,5 @@
1
1
  export declare const RAW_INPUT_FIELDS: readonly ["file_path", "name", "id_prefix"];
2
2
  export declare const RAW_INPUT_FIELD_CAP = 4096;
3
+ export declare const CAPTURE_FIELD_CAP = 8192;
3
4
  export declare function extractRawToolInput(input: unknown): string | undefined;
5
+ export declare function extractCaptureToolInput(input: unknown): string | undefined;
@@ -79,6 +79,7 @@ export type ProviderEvent = {
79
79
  toolName: string;
80
80
  toolInput: string;
81
81
  toolInputRaw?: string;
82
+ toolInputCapture?: string;
82
83
  pending?: true;
83
84
  sessionId?: string;
84
85
  } | {
@@ -23,6 +23,7 @@ export interface SearchWitnessParams {
23
23
  sessions?: number;
24
24
  kinds?: string[];
25
25
  since?: string;
26
+ toolName?: string;
26
27
  }
27
28
  export interface SearchMatch {
28
29
  sessionId: string;
@@ -38,6 +38,7 @@ export interface ToolUseDetailChunk {
38
38
  toolName: string;
39
39
  toolInput: string;
40
40
  toolInputRaw?: string;
41
+ toolInputCapture?: string;
41
42
  pending?: true;
42
43
  metadata?: Record<string, unknown>;
43
44
  }
@@ -1,11 +1,15 @@
1
- export interface CodeBlockEntry {
1
+ export type ArtifactType = 'code_block' | 'command' | 'url';
2
+ export interface ArtifactEntry {
2
3
  index: number;
4
+ type: ArtifactType;
3
5
  lang: string;
4
6
  text: string;
5
7
  }
8
+ export type CodeBlockEntry = ArtifactEntry;
6
9
  export declare function enableCodeBlockRegister(): void;
7
10
  export declare function disableCodeBlockRegister(): void;
11
+ export declare function registerArtifact(type: ArtifactType, lang: string, text: string): number;
8
12
  export declare function registerCodeBlock(lang: string, text: string): number;
9
- export declare function getCodeBlocks(): readonly CodeBlockEntry[];
10
- export declare function getCodeBlock(n: number): CodeBlockEntry | undefined;
13
+ export declare function getCodeBlocks(): readonly ArtifactEntry[];
14
+ export declare function getCodeBlock(n: number): ArtifactEntry | undefined;
11
15
  export declare function resetCodeBlockRegister(): void;
@@ -1,8 +1,9 @@
1
1
  import { type Tokens } from 'marked';
2
- declare function renderInlineTokens(tokens?: Tokens.Generic[]): string;
2
+ declare function renderInlineTokens(tokens?: Tokens.Generic[], commitOnly?: boolean): string;
3
3
  export declare function renderCardLine(text: string): string;
4
4
  interface RenderMarkdownOptions {
5
5
  maxWidth?: number;
6
+ isCommit?: boolean;
6
7
  }
7
8
  export declare function renderMarkdownToTerminal(text: string, opts?: RenderMarkdownOptions): string;
8
9
  export { renderInlineTokens };
@@ -1,5 +1,5 @@
1
1
  export declare function calculateContentWidth(indentLength: number): number;
2
- export declare function renderTextBlock(text: string, contentWidth: number): string;
2
+ export declare function renderTextBlock(text: string, contentWidth: number, isCommit?: boolean): string;
3
3
  export declare function formatPendingBuffer(buffer: string, contentWidth: number, shouldRender: boolean): string;
4
4
  export declare function applyIndent(text: string, indentStr: string): string;
5
5
  export declare function formatBlockForCommit(blockText: string, indentStr: string, contentWidth: number): string;
@@ -0,0 +1 @@
1
+ export declare function stripMarkdown(input: string): string;