agent-afk 5.244.0 → 5.245.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/agent/tools/handlers/_image-dimensions.d.ts +4 -0
- package/dist/agent/tools/handlers/image-generate.d.ts +2 -0
- package/dist/agent/tools/handlers/index.d.ts +2 -1
- package/dist/agent/tools/handlers/view-image.d.ts +3 -0
- package/dist/agent/tools/schemas.d.ts +1 -0
- package/dist/cli/commands/interactive/mascot-bar.d.ts +2 -0
- package/dist/cli/commands/interactive/tool-lane-flush-margin.d.ts +2 -0
- package/dist/cli/commands/interactive/tool-lane-overlay.d.ts +6 -0
- package/dist/cli/commands/interactive/tool-lane-render.d.ts +3 -2
- package/dist/cli/palette.d.ts +3 -0
- package/dist/cli/render/measure.d.ts +1 -0
- package/dist/cli/terminal-compositor.scrollback.d.ts +2 -0
- package/dist/cli.mjs +340 -323
- package/dist/config/env.d.ts +8 -0
- package/dist/index.mjs +136 -132
- package/dist/telegram.mjs +170 -166
- package/package.json +1 -1
|
@@ -1,3 +1,5 @@
|
|
|
1
1
|
import type { ToolHandler } from '../types.js';
|
|
2
|
+
import { readImageDimensions } from './_image-dimensions.js';
|
|
3
|
+
export { readImageDimensions };
|
|
2
4
|
export declare function createImageGenerateHandler(fetchFn?: typeof globalThis.fetch): ToolHandler;
|
|
3
5
|
export declare const imageGenerateHandler: ToolHandler;
|
|
@@ -11,6 +11,7 @@ import { sendTelegramHandler } from './send-telegram.js';
|
|
|
11
11
|
import { webScrapeHandler } from './web-scrape.js';
|
|
12
12
|
import { webRequestHandler } from './web-request.js';
|
|
13
13
|
import { imageGenerateHandler } from './image-generate.js';
|
|
14
|
+
import { viewImageHandler, createViewImageHandler } from './view-image.js';
|
|
14
15
|
import { createScheduleHandler, updateScheduleHandler, listSchedulesHandler, getScheduleHistoryHandler, cancelScheduleHandler } from './schedules.js';
|
|
15
16
|
import { terminalFontSizeHandler } from './terminal-font-size.js';
|
|
16
17
|
import { createWorktreeHandler } from './worktree.js';
|
|
@@ -28,4 +29,4 @@ import { getFacetHandler } from './get-facet.js';
|
|
|
28
29
|
import { jsonQueryHandler, createJsonQueryHandler } from './json-query.js';
|
|
29
30
|
import { clipboardWriteHandler, clipboardReadHandler, createClipboardWriteHandler, createClipboardReadHandler } from './clipboard.js';
|
|
30
31
|
export declare function createBuiltinHandlers(permissionMode?: string, cwd?: string): Map<string, ToolHandler>;
|
|
31
|
-
export { bashHandler, readFileHandler, extractDocumentHandler, writeFileHandler, editFileHandler, globHandler, grepHandler, listDirectoryHandler, sendTelegramHandler, webScrapeHandler, webRequestHandler, imageGenerateHandler, createScheduleHandler, updateScheduleHandler, listSchedulesHandler, getScheduleHistoryHandler, cancelScheduleHandler, terminalFontSizeHandler, createWorktreeHandler, configGetHandler, configSetHandler, askQuestionHandler, waitForHandler, patchApplyHandler, browserOpenHandler, browserObserveHandler, browserActHandler, browserScreenshotHandler, browserCloseHandler, testRunHandler, getFacetHandler, jsonQueryHandler, createJsonQueryHandler, clipboardWriteHandler, clipboardReadHandler, createClipboardWriteHandler, createClipboardReadHandler, };
|
|
32
|
+
export { bashHandler, readFileHandler, extractDocumentHandler, writeFileHandler, editFileHandler, globHandler, grepHandler, listDirectoryHandler, sendTelegramHandler, webScrapeHandler, webRequestHandler, imageGenerateHandler, viewImageHandler, createViewImageHandler, createScheduleHandler, updateScheduleHandler, listSchedulesHandler, getScheduleHistoryHandler, cancelScheduleHandler, terminalFontSizeHandler, createWorktreeHandler, configGetHandler, configSetHandler, askQuestionHandler, waitForHandler, patchApplyHandler, browserOpenHandler, browserObserveHandler, browserActHandler, browserScreenshotHandler, browserCloseHandler, testRunHandler, getFacetHandler, jsonQueryHandler, createJsonQueryHandler, clipboardWriteHandler, clipboardReadHandler, createClipboardWriteHandler, createClipboardReadHandler, };
|
|
@@ -3,6 +3,7 @@ export { waitForTool } from './schemas.wait-for.js';
|
|
|
3
3
|
export { jsonQueryTool } from './schemas.json-query.js';
|
|
4
4
|
export declare const bashTool: AnthropicToolDef;
|
|
5
5
|
export declare const readFileTool: AnthropicToolDef;
|
|
6
|
+
export declare const viewImageTool: AnthropicToolDef;
|
|
6
7
|
export declare const extractDocumentTool: AnthropicToolDef;
|
|
7
8
|
export declare const writeFileTool: AnthropicToolDef;
|
|
8
9
|
export declare const editFileTool: AnthropicToolDef;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { type Entry } from './tool-lane-render.js';
|
|
2
|
+
import type { ToolLaneFlash } from './tool-lane-flash.js';
|
|
3
|
+
export declare function renderToolLaneOverlay(entries: Map<string, Entry>, order: string[], activeTools: {
|
|
4
|
+
activeCount: number;
|
|
5
|
+
toolUseIds: Set<string>;
|
|
6
|
+
} | null, flash: ToolLaneFlash | null, maxOverlayRoots: number): string;
|
|
@@ -44,11 +44,12 @@ export declare const TREE_CONNECTOR_MID: string;
|
|
|
44
44
|
export declare const TREE_CONNECTOR_LAST: string;
|
|
45
45
|
export declare function getGlyphs(): Readonly<Glyphs>;
|
|
46
46
|
export declare function buildIndent(ancestorIsLast: readonly boolean[], g: Readonly<Glyphs>): string;
|
|
47
|
-
export declare function colorizeIndent(plainIndent: string, g: Readonly<Glyphs
|
|
48
|
-
export declare function renderTextChildLines(text: string, indent: string, g: Readonly<Glyphs
|
|
47
|
+
export declare function colorizeIndent(plainIndent: string, g: Readonly<Glyphs>, startDepth?: number): string;
|
|
48
|
+
export declare function renderTextChildLines(text: string, indent: string, g: Readonly<Glyphs>, startDepth?: number): string[];
|
|
49
49
|
export declare function pushOutcomeLines(lines: string[], headPrefix: string, outcomeText: string, continuationIndent: string, cols: number, headSuffix?: string): void;
|
|
50
50
|
export { assignConnectors, addOverflowSynthetic, addResultSummarySynthetic, type GroupedSibling, type OverflowSibling, type ResultSummarySibling, type RenderableSibling, type ConnectedSibling, } from './tool-lane-render-grouping.js';
|
|
51
51
|
export { renderOverlayChildren, renderFlushChildren } from './tool-lane-render-children.js';
|
|
52
52
|
export { formatAgentSummary, formatAgentHeader, formatAgentChildren, } from './tool-lane-render-agent.js';
|
|
53
53
|
export { renderGroupedRootTools, formatGroupedToolResults, } from './tool-lane-render-grouped-root.js';
|
|
54
|
+
export { joinOverlayLines } from './tool-lane-flush-margin.js';
|
|
54
55
|
export declare function buildChildMap(entries: ReadonlyMap<string, Entry>, order: readonly string[]): Map<string, Entry[]>;
|
package/dist/cli/palette.d.ts
CHANGED
|
@@ -27,6 +27,9 @@ declare const darkPaletteDef: {
|
|
|
27
27
|
diffAdd: ChalkInstance;
|
|
28
28
|
diffRemove: ChalkInstance;
|
|
29
29
|
diffHunk: ChalkInstance;
|
|
30
|
+
spineTone0: ChalkInstance;
|
|
31
|
+
spineTone1: ChalkInstance;
|
|
32
|
+
spineTone2: ChalkInstance;
|
|
30
33
|
};
|
|
31
34
|
export type ThemePalette = {
|
|
32
35
|
[K in keyof typeof darkPaletteDef]: ChalkInstance;
|
|
@@ -5,3 +5,4 @@ export declare function resolveTextMeasure(): number | null;
|
|
|
5
5
|
export declare function capToMeasure(width: number): number;
|
|
6
6
|
export declare function resolveProseMeasure(): number | null;
|
|
7
7
|
export declare function capToProseMeasure(width: number): number;
|
|
8
|
+
export declare function contentMargin(termWidth?: number): string;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import type { BandRowMeta } from './terminal-compositor.types.js';
|
|
2
2
|
export declare const ELAPSED_GRACE_MS = 2000;
|
|
3
|
+
export declare const ELAPSED_AMBER_SEC = 10;
|
|
4
|
+
export declare const ELAPSED_RED_SEC = 60;
|
|
3
5
|
export declare function formatElapsed(startedAt: number): string;
|
|
4
6
|
export declare function eraseAndPaintRow(row: number, line?: string): string;
|
|
5
7
|
export declare function buildBandMeta(logicalLines: readonly string[], width: number): BandRowMeta[];
|