agent-afk 5.252.0 → 5.253.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.
- package/dist/cli/commands/chat.json-output.d.ts +11 -0
- package/dist/cli/markdown-stream-format.d.ts +1 -0
- package/dist/cli/markdown-stream.d.ts +1 -0
- package/dist/cli/smoke-reveal.ansi.d.ts +10 -0
- package/dist/cli/smoke-reveal.d.ts +28 -0
- package/dist/cli/smoke-reveal.tones.d.ts +4 -0
- package/dist/cli.mjs +262 -261
- package/dist/config/env.d.ts +8 -0
- package/dist/config/env.display.d.ts +33 -0
- package/dist/index.mjs +111 -111
- package/dist/telegram.mjs +130 -130
- package/package.json +3 -2
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { ResponseMetadata } from '../../agent/types.js';
|
|
2
|
+
export interface OneShotJsonOutputOpts {
|
|
3
|
+
sessionModel: string;
|
|
4
|
+
responseContent: string;
|
|
5
|
+
responseTimestamp: Date | undefined;
|
|
6
|
+
responseMeta: ResponseMetadata | null;
|
|
7
|
+
sessionId?: string;
|
|
8
|
+
witnessLabel?: string;
|
|
9
|
+
tracePath?: string;
|
|
10
|
+
}
|
|
11
|
+
export declare function buildOneShotJsonOutput(opts: OneShotJsonOutputOpts): Record<string, unknown>;
|
|
@@ -2,6 +2,7 @@ export declare function calculateContentWidth(indentLength: number): number;
|
|
|
2
2
|
export declare function calculateProseContentWidth(indentLength: number): number;
|
|
3
3
|
export declare function renderTextBlock(text: string, contentWidth: number, isCommit?: boolean): string;
|
|
4
4
|
export declare function formatPendingBuffer(buffer: string, contentWidth: number, shouldRender: boolean): string;
|
|
5
|
+
export declare function pendingRowCap(): number;
|
|
5
6
|
export declare function applyIndent(text: string, indentStr: string): string;
|
|
6
7
|
export declare function formatBlockForCommit(blockText: string, indentStr: string, contentWidth: number): string;
|
|
7
8
|
export declare function hasMarkdownContent(text: string): boolean;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
export declare const LIFETIME_MS = 320;
|
|
2
|
+
export declare const GLYPH_PHASE = 0.36;
|
|
3
|
+
export declare const STAGGER_MS = 6;
|
|
4
|
+
export declare const MAX_LAG_MS = 160;
|
|
5
|
+
export declare const FRAME_MS = 33;
|
|
6
|
+
export declare const SMOKE_GLYPHS: readonly string[];
|
|
7
|
+
export declare function isSmokeTextEnabled(): boolean;
|
|
8
|
+
export declare class SmokeReveal {
|
|
9
|
+
private readonly requestRepaint;
|
|
10
|
+
private readonly now;
|
|
11
|
+
private bursts;
|
|
12
|
+
private nextBirth;
|
|
13
|
+
private timer;
|
|
14
|
+
private lastVisible;
|
|
15
|
+
private sinceApply;
|
|
16
|
+
constructor(requestRepaint: () => void, now?: () => number);
|
|
17
|
+
record(chunk: string): void;
|
|
18
|
+
apply(formatted: string): string;
|
|
19
|
+
noteCommit(): void;
|
|
20
|
+
reset(): void;
|
|
21
|
+
dispose(): void;
|
|
22
|
+
private reconcile;
|
|
23
|
+
private recordedCount;
|
|
24
|
+
private birthOf;
|
|
25
|
+
private prune;
|
|
26
|
+
private armTick;
|
|
27
|
+
private clearTick;
|
|
28
|
+
}
|