agent-afk 5.63.0 → 5.64.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/interactive/shared.d.ts +1 -0
- package/dist/cli/commands/interactive/tool-lane-format.d.ts +0 -2
- package/dist/cli/config/types.d.ts +2 -0
- package/dist/cli/palette.d.ts +36 -28
- package/dist/cli/slash/commands/theme.d.ts +2 -0
- package/dist/cli/syntax-highlight.d.ts +1 -0
- package/dist/cli/syntax-theme.d.ts +1 -1
- package/dist/cli/theme.d.ts +9 -0
- package/dist/cli.mjs +502 -502
- package/dist/config/env.d.ts +2 -0
- package/dist/index.mjs +5 -5
- package/dist/telegram.mjs +108 -108
- package/package.json +1 -1
|
@@ -3,8 +3,6 @@ import { sanitizeLabel, sanitizeTextParagraph } from './tool-lane-format-sanitiz
|
|
|
3
3
|
export { sanitizeLabel, sanitizeTextParagraph };
|
|
4
4
|
export { shortenPaths, summarizeToolArgs, bracketPairAwareTruncate, formatToolLine, } from './tool-lane-format-args.js';
|
|
5
5
|
export { MAX_OVERLAY_DIFF_LINES, FLUSH_DIFF_LINES_DEFAULT, formatDiffBlock, } from './tool-lane-format-diff.js';
|
|
6
|
-
export declare const DONE_GLYPH: string;
|
|
7
|
-
export declare const ERROR_GLYPH: string;
|
|
8
6
|
export declare function doneGlyph(isError: boolean | undefined): string;
|
|
9
7
|
export declare const MAX_VISIBLE_CHILDREN = 3;
|
|
10
8
|
export declare const GROUP_THRESHOLD_DISPATCH = 2;
|
|
@@ -49,6 +49,7 @@ export interface CliConfig {
|
|
|
49
49
|
thinkingUi?: 'summary' | 'live' | 'digest' | 'off';
|
|
50
50
|
};
|
|
51
51
|
updatePolicy: 'notify' | 'auto' | 'off';
|
|
52
|
+
theme?: 'dark' | 'light' | 'auto';
|
|
52
53
|
autoResumeOnUsageLimit?: boolean;
|
|
53
54
|
enforceDoneEvidence?: boolean;
|
|
54
55
|
bgSummaries?: boolean;
|
|
@@ -110,6 +111,7 @@ export interface ConfigFileSchema {
|
|
|
110
111
|
thinkingUi?: 'summary' | 'live' | 'digest' | 'off';
|
|
111
112
|
};
|
|
112
113
|
updatePolicy?: 'notify' | 'auto' | 'off';
|
|
114
|
+
theme?: 'dark' | 'light' | 'auto';
|
|
113
115
|
autoResumeOnUsageLimit?: boolean;
|
|
114
116
|
enforceDoneEvidence?: boolean;
|
|
115
117
|
bgSummaries?: boolean;
|
package/dist/cli/palette.d.ts
CHANGED
|
@@ -1,29 +1,37 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
1
|
+
import { type ChalkInstance } from 'chalk';
|
|
2
|
+
declare const darkPaletteDef: {
|
|
3
|
+
brand: ChalkInstance;
|
|
4
|
+
mint: ChalkInstance;
|
|
5
|
+
goblin: ChalkInstance;
|
|
6
|
+
user: ChalkInstance;
|
|
7
|
+
caret: ChalkInstance;
|
|
8
|
+
tool: ChalkInstance;
|
|
9
|
+
chrome: ChalkInstance;
|
|
10
|
+
syntaxString: ChalkInstance;
|
|
11
|
+
toolArg: ChalkInstance;
|
|
12
|
+
thinking: ChalkInstance;
|
|
13
|
+
success: ChalkInstance;
|
|
14
|
+
error: ChalkInstance;
|
|
15
|
+
warning: ChalkInstance;
|
|
16
|
+
plan: ChalkInstance;
|
|
17
|
+
bypass: ChalkInstance;
|
|
18
|
+
meta: ChalkInstance;
|
|
19
|
+
info: ChalkInstance;
|
|
20
|
+
fileRef: ChalkInstance;
|
|
21
|
+
heading: ChalkInstance;
|
|
22
|
+
label: ChalkInstance;
|
|
23
|
+
dim: ChalkInstance;
|
|
24
|
+
bold: ChalkInstance;
|
|
25
|
+
italic: ChalkInstance;
|
|
26
|
+
inverse: ChalkInstance;
|
|
27
|
+
diffAdd: ChalkInstance;
|
|
28
|
+
diffRemove: ChalkInstance;
|
|
29
|
+
diffHunk: ChalkInstance;
|
|
29
30
|
};
|
|
31
|
+
export type ThemePalette = {
|
|
32
|
+
[K in keyof typeof darkPaletteDef]: ChalkInstance;
|
|
33
|
+
};
|
|
34
|
+
export declare const darkPalette: ThemePalette;
|
|
35
|
+
export declare const lightPalette: ThemePalette;
|
|
36
|
+
export declare const palette: ThemePalette;
|
|
37
|
+
export {};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { Sheet } from 'emphasize';
|
|
2
|
-
export declare
|
|
2
|
+
export declare function buildSyntaxTheme(): Sheet;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export type ThemeName = 'dark' | 'light';
|
|
2
|
+
export type ThemeMode = ThemeName | 'auto';
|
|
3
|
+
export declare function getActiveTheme(): ThemeName;
|
|
4
|
+
export declare function applyTheme(name: ThemeName): void;
|
|
5
|
+
export declare function parseThemeMode(raw: string | undefined | null): ThemeMode | undefined;
|
|
6
|
+
export declare function detectTerminalTheme(): ThemeName;
|
|
7
|
+
export declare function resolveTheme(mode: ThemeMode | undefined): ThemeName;
|
|
8
|
+
export declare function parseThemeFlag(raw: string): ThemeMode;
|
|
9
|
+
export declare function resolveThemeMode(flag: ThemeMode | undefined, config: ThemeMode | undefined): ThemeMode | undefined;
|