agent-afk 5.221.0 → 5.221.2
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/markdown-stream-format.preview.d.ts +2 -2
- package/dist/cli/render/status-line-format.d.ts +23 -0
- package/dist/cli/status-line.d.ts +3 -23
- package/dist/cli.mjs +591 -589
- package/dist/config/env.d.ts +1 -1
- package/dist/index.mjs +2 -2
- package/dist/telegram.mjs +2 -2
- package/package.json +1 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare function previewCodeFence(buffer: string,
|
|
2
|
-
export declare function previewTable(buffer: string,
|
|
1
|
+
export declare function previewCodeFence(buffer: string, _contentWidth: number): string;
|
|
2
|
+
export declare function previewTable(buffer: string, _contentWidth: number): string;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { PermissionMode } from '../../agent/types/sdk-types.js';
|
|
2
|
+
import { type QuotaWindows } from '../quota-indicator.js';
|
|
3
|
+
export interface StatusLineFields {
|
|
4
|
+
model: string;
|
|
5
|
+
cost?: number;
|
|
6
|
+
tokens?: number;
|
|
7
|
+
contextPct?: number;
|
|
8
|
+
contextLimit?: number;
|
|
9
|
+
contextUsedTokens?: number;
|
|
10
|
+
contextSparkline?: string;
|
|
11
|
+
permissionMode?: PermissionMode;
|
|
12
|
+
cwd?: string;
|
|
13
|
+
branch?: string;
|
|
14
|
+
pr?: number;
|
|
15
|
+
quotaWindows?: QuotaWindows;
|
|
16
|
+
turnCount?: number;
|
|
17
|
+
maxTurns?: number;
|
|
18
|
+
budgetUsd?: number;
|
|
19
|
+
maxBudgetUsd?: number;
|
|
20
|
+
activeAgentCount?: number;
|
|
21
|
+
tokPerSec?: number;
|
|
22
|
+
}
|
|
23
|
+
export declare function formatStatusLine(f: StatusLineFields, maxW: number): string;
|
|
@@ -1,25 +1,5 @@
|
|
|
1
|
-
import type
|
|
2
|
-
|
|
3
|
-
export interface StatusLineFields {
|
|
4
|
-
model: string;
|
|
5
|
-
cost?: number;
|
|
6
|
-
tokens?: number;
|
|
7
|
-
contextPct?: number;
|
|
8
|
-
contextLimit?: number;
|
|
9
|
-
contextUsedTokens?: number;
|
|
10
|
-
contextSparkline?: string;
|
|
11
|
-
permissionMode?: PermissionMode;
|
|
12
|
-
cwd?: string;
|
|
13
|
-
branch?: string;
|
|
14
|
-
pr?: number;
|
|
15
|
-
quotaWindows?: QuotaWindows;
|
|
16
|
-
turnCount?: number;
|
|
17
|
-
maxTurns?: number;
|
|
18
|
-
budgetUsd?: number;
|
|
19
|
-
maxBudgetUsd?: number;
|
|
20
|
-
activeAgentCount?: number;
|
|
21
|
-
tokPerSec?: number;
|
|
22
|
-
}
|
|
1
|
+
import { type StatusLineFields } from './render/status-line-format.js';
|
|
2
|
+
export type { StatusLineFields } from './render/status-line-format.js';
|
|
23
3
|
interface StatusLineOpts {
|
|
24
4
|
stream?: NodeJS.WriteStream;
|
|
25
5
|
force?: boolean;
|
|
@@ -58,5 +38,5 @@ export declare class StatusLine {
|
|
|
58
38
|
private currentRows;
|
|
59
39
|
private paintRow;
|
|
60
40
|
private writeScrollRegion;
|
|
41
|
+
private eraseReservedBand;
|
|
61
42
|
}
|
|
62
|
-
export {};
|