agent-afk 5.124.1 → 5.126.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/provider.d.ts +5 -0
- package/dist/agent/types/session-types.d.ts +4 -0
- package/dist/cli/commands/interactive/first-run.d.ts +7 -0
- package/dist/cli/input/clipboard-image-linux.d.ts +5 -0
- package/dist/cli/input/reader.reverse-search.d.ts +16 -0
- package/dist/cli/input/reader.state.d.ts +2 -0
- package/dist/cli/slash/plugin-skills/listing-detail.d.ts +10 -0
- package/dist/cli/slash/plugin-skills/search-render.d.ts +6 -0
- package/dist/cli/slash/plugin-skills/search.d.ts +10 -0
- package/dist/cli.mjs +615 -612
- package/dist/index.mjs +48 -46
- package/dist/paths.d.ts +1 -0
- package/dist/telegram.mjs +38 -36
- package/package.json +1 -1
package/dist/agent/provider.d.ts
CHANGED
|
@@ -68,6 +68,11 @@ export type ProviderEvent = {
|
|
|
68
68
|
type: 'assistant.message';
|
|
69
69
|
text: string;
|
|
70
70
|
sessionId?: string;
|
|
71
|
+
} | {
|
|
72
|
+
type: 'notice';
|
|
73
|
+
text: string;
|
|
74
|
+
kind: 'truncation' | 'refusal';
|
|
75
|
+
sessionId?: string;
|
|
71
76
|
} | {
|
|
72
77
|
type: 'tool.use.start';
|
|
73
78
|
toolUseId: string;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { ImageAttachment } from './attachments.js';
|
|
2
|
+
export declare function isCommandAvailable(cmd: string, args: string[]): Promise<boolean>;
|
|
3
|
+
export declare function linuxClipboardRead(cmd: string, args: string[]): Promise<Buffer | null>;
|
|
4
|
+
export declare function detectMediaTypeLinux(buffer: Buffer): ImageAttachment['mediaType'] | null;
|
|
5
|
+
export declare function readClipboardImageLinux(): Promise<ImageAttachment | null>;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { ReaderState } from './reader.state.js';
|
|
2
|
+
import type { RepaintCtx, repaint as _repaint } from './reader.repaint.js';
|
|
3
|
+
import type { KeyInfo } from './types.js';
|
|
4
|
+
export interface ReverseSearchState {
|
|
5
|
+
active: boolean;
|
|
6
|
+
query: string;
|
|
7
|
+
matchIndex: number;
|
|
8
|
+
savedBuffer: string;
|
|
9
|
+
}
|
|
10
|
+
export declare function createReverseSearchState(): ReverseSearchState;
|
|
11
|
+
export declare function enterReverseSearch(rs: ReverseSearchState, st: ReaderState): void;
|
|
12
|
+
export declare function cancelReverseSearch(rs: ReverseSearchState, st: ReaderState): void;
|
|
13
|
+
export declare function acceptReverseSearch(rs: ReverseSearchState, _st: ReaderState): void;
|
|
14
|
+
export declare function findNextMatch(query: string, entries: readonly string[], startAfter: number): number;
|
|
15
|
+
export declare function renderReverseSearchLine(query: string, match: string | null): string;
|
|
16
|
+
export declare function handleReverseSearchKey(char: string | undefined, key: KeyInfo, rs: ReverseSearchState, st: ReaderState, entries: readonly string[], repaintCtx: RepaintCtx, repaintFn: typeof _repaint): boolean;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { InputCoreState } from '../input-core.js';
|
|
2
2
|
import type { AutocompleteState } from './autocomplete-state.js';
|
|
3
3
|
import type { ImageAttachment } from './attachments.js';
|
|
4
|
+
import type { ReverseSearchState } from './reader.reverse-search.js';
|
|
4
5
|
export interface ReaderState {
|
|
5
6
|
input: InputCoreState;
|
|
6
7
|
ac: AutocompleteState;
|
|
@@ -16,4 +17,5 @@ export interface ReaderState {
|
|
|
16
17
|
lastKeypressAt: number;
|
|
17
18
|
repaintPending: boolean;
|
|
18
19
|
settled: boolean;
|
|
20
|
+
reverseSearch: ReverseSearchState;
|
|
19
21
|
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { type SkillMetadata } from '../../../skills/index.js';
|
|
2
|
+
import { type DiscoveredSkill } from './state.js';
|
|
3
|
+
import type { SlashContext } from '../types.js';
|
|
4
|
+
import type { SkillManifestEntry } from '../../../agent/tools/skill-bridge.js';
|
|
5
|
+
type SkillSource = SkillManifestEntry['source'];
|
|
6
|
+
export declare function registryOriginToSource(origin: SkillMetadata['origin']): SkillSource;
|
|
7
|
+
export declare function friendlySource(source: SkillSource): string;
|
|
8
|
+
export declare function tryGetRegistrySkill(name: string, internalUnlocked: boolean): SkillMetadata | undefined;
|
|
9
|
+
export declare function renderSkillDetail(ctx: SlashContext, query: string, plugins: DiscoveredSkill[], internalUnlocked: boolean): void;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { SlashContext } from '../types.js';
|
|
2
|
+
import { type SearchableSkill } from './search.js';
|
|
3
|
+
import { type DiscoveredSkill } from './state.js';
|
|
4
|
+
export declare function buildSearchUniverse(plugins: DiscoveredSkill[], internalUnlocked: boolean): SearchableSkill[];
|
|
5
|
+
export type { SearchableSkill };
|
|
6
|
+
export declare function renderSkillSearch(ctx: SlashContext, universe: readonly SearchableSkill[], query: string): void;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export interface SearchableSkill {
|
|
2
|
+
name: string;
|
|
3
|
+
description: string;
|
|
4
|
+
hint?: string;
|
|
5
|
+
}
|
|
6
|
+
export interface SearchResult {
|
|
7
|
+
skill: SearchableSkill;
|
|
8
|
+
tier: 0 | 1 | 2 | 3;
|
|
9
|
+
}
|
|
10
|
+
export declare function searchSkills(universe: readonly SearchableSkill[], query: string): SearchResult[];
|