agent-afk 5.125.0 → 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/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 +605 -603
- 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,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[];
|