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.
@@ -23,6 +23,7 @@ export interface CliOptions {
23
23
  maxTurns: string;
24
24
  thinking?: string;
25
25
  thinkingUi?: ThinkingUiMode;
26
+ theme?: 'dark' | 'light' | 'auto';
26
27
  effort?: string;
27
28
  maxOutputTokens?: string;
28
29
  resume?: string;
@@ -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;
@@ -1,29 +1,37 @@
1
- export declare const palette: {
2
- readonly brand: import("chalk").ChalkInstance;
3
- readonly mint: import("chalk").ChalkInstance;
4
- readonly goblin: import("chalk").ChalkInstance;
5
- readonly user: import("chalk").ChalkInstance;
6
- readonly caret: import("chalk").ChalkInstance;
7
- readonly tool: import("chalk").ChalkInstance;
8
- readonly chrome: import("chalk").ChalkInstance;
9
- readonly syntaxString: import("chalk").ChalkInstance;
10
- readonly toolArg: import("chalk").ChalkInstance;
11
- readonly thinking: import("chalk").ChalkInstance;
12
- readonly success: import("chalk").ChalkInstance;
13
- readonly error: import("chalk").ChalkInstance;
14
- readonly warning: import("chalk").ChalkInstance;
15
- readonly plan: import("chalk").ChalkInstance;
16
- readonly bypass: import("chalk").ChalkInstance;
17
- readonly meta: import("chalk").ChalkInstance;
18
- readonly info: import("chalk").ChalkInstance;
19
- readonly fileRef: import("chalk").ChalkInstance;
20
- readonly heading: import("chalk").ChalkInstance;
21
- readonly label: import("chalk").ChalkInstance;
22
- readonly dim: import("chalk").ChalkInstance;
23
- readonly bold: import("chalk").ChalkInstance;
24
- readonly italic: import("chalk").ChalkInstance;
25
- readonly inverse: import("chalk").ChalkInstance;
26
- readonly diffAdd: import("chalk").ChalkInstance;
27
- readonly diffRemove: import("chalk").ChalkInstance;
28
- readonly diffHunk: import("chalk").ChalkInstance;
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 {};
@@ -0,0 +1,2 @@
1
+ import type { SlashCommand } from '../types.js';
2
+ export declare const themeCmd: SlashCommand;
@@ -1 +1,2 @@
1
+ export declare function clearHighlightCache(): void;
1
2
  export declare function highlightCode(text: string, lang: string): string;
@@ -1,2 +1,2 @@
1
1
  import type { Sheet } from 'emphasize';
2
- export declare const defaultSyntaxTheme: Sheet;
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;