agent-afk 5.223.0 → 5.223.2
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/plugins/load-entrypoints.d.ts +1 -1
- package/dist/cli/slash/_lib/run-skill-dispatch-turn.d.ts +1 -1
- package/dist/cli/slash/_lib/skill-message-bridge.d.ts +1 -1
- package/dist/cli/slash/builtin-skills.d.ts +1 -1
- package/dist/cli/slash/plugin-skills/listing-detail.d.ts +1 -1
- package/dist/cli.mjs +238 -238
- package/dist/index.d.ts +2 -2
- package/dist/index.mjs +109 -109
- package/dist/skills/index.d.ts +2 -38
- package/dist/skills/skill-registry.d.ts +10 -0
- package/dist/skills/skill-types.d.ts +31 -0
- package/dist/telegram.mjs +127 -127
- package/package.json +1 -1
package/dist/skills/index.d.ts
CHANGED
|
@@ -1,38 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
import type { ReadScopeInputs } from '../agent/subagent-read-scope.js';
|
|
4
|
-
export interface SkillExecutionContext {
|
|
5
|
-
apiKey?: string;
|
|
6
|
-
defaultModel?: AgentModelInput;
|
|
7
|
-
defaultSubagentModel: AgentModelInput;
|
|
8
|
-
callId?: string;
|
|
9
|
-
dispatchSkill?: (name: string, args?: string) => Promise<string>;
|
|
10
|
-
traceWriter?: TraceSink;
|
|
11
|
-
getReadScopeInputs?: () => ReadScopeInputs;
|
|
12
|
-
workspaceStore?: import('../agent/workspace/index.js').WorkspaceStore;
|
|
13
|
-
}
|
|
14
|
-
export interface SkillMetadata {
|
|
15
|
-
name: string;
|
|
16
|
-
description: string;
|
|
17
|
-
handler: (input: unknown, parentSession?: IAgentSession, ctx?: SkillExecutionContext) => Promise<unknown>;
|
|
18
|
-
argumentHint?: string;
|
|
19
|
-
whenToUse?: string;
|
|
20
|
-
model?: string;
|
|
21
|
-
context?: 'inline' | 'fork' | 'load';
|
|
22
|
-
loadBody?: string;
|
|
23
|
-
origin?: 'builtin' | 'user' | 'project' | `imported:${string}`;
|
|
24
|
-
flags?: readonly string[];
|
|
25
|
-
readOnly?: boolean;
|
|
26
|
-
audience?: 'public' | 'internal';
|
|
27
|
-
category?: SkillCategory;
|
|
28
|
-
}
|
|
29
|
-
export declare const SKILL_CATEGORIES: readonly ["Build & ship", "Debug & fix", "Understand & explore", "Refactor & simplify", "Review & verify", "Setup & ops", "Author & meta"];
|
|
30
|
-
export type SkillCategory = (typeof SKILL_CATEGORIES)[number];
|
|
31
|
-
export declare const UNCATEGORIZED_LABEL = "More skills";
|
|
32
|
-
export declare function isSkillVisible(skill: Pick<SkillMetadata, 'audience'>, internalUnlocked: boolean): boolean;
|
|
33
|
-
export declare function registerSkill(meta: SkillMetadata): void;
|
|
34
|
-
export declare function getSkill(name: string): SkillMetadata;
|
|
35
|
-
export declare function listSkills(): string[];
|
|
36
|
-
export declare function listVisibleSkills(internalUnlocked: boolean): string[];
|
|
37
|
-
export declare function evictSkillsByOrigin(origin: SkillMetadata['origin']): number;
|
|
38
|
-
export declare function _resetRegistry(): void;
|
|
1
|
+
export type { SkillExecutionContext, SkillMetadata, SkillCategory } from './skill-registry.js';
|
|
2
|
+
export { SKILL_CATEGORIES, UNCATEGORIZED_LABEL, isSkillVisible, registerSkill, getSkill, listSkills, listVisibleSkills, evictSkillsByOrigin, _resetRegistry, } from './skill-registry.js';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export type { SkillExecutionContext, SkillMetadata, SkillCategory, } from './skill-types.js';
|
|
2
|
+
export { SKILL_CATEGORIES, UNCATEGORIZED_LABEL } from './skill-types.js';
|
|
3
|
+
import type { SkillMetadata } from './skill-types.js';
|
|
4
|
+
export declare function isSkillVisible(skill: Pick<SkillMetadata, 'audience'>, internalUnlocked: boolean): boolean;
|
|
5
|
+
export declare function registerSkill(meta: SkillMetadata): void;
|
|
6
|
+
export declare function getSkill(name: string): SkillMetadata;
|
|
7
|
+
export declare function listSkills(): string[];
|
|
8
|
+
export declare function listVisibleSkills(internalUnlocked: boolean): string[];
|
|
9
|
+
export declare function evictSkillsByOrigin(origin: SkillMetadata['origin']): number;
|
|
10
|
+
export declare function _resetRegistry(): void;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import type { AgentModelInput, IAgentSession } from '../agent/types.js';
|
|
2
|
+
import type { TraceSink } from '../agent/trace/index.js';
|
|
3
|
+
import type { ReadScopeInputs } from '../agent/subagent-read-scope.js';
|
|
4
|
+
export interface SkillExecutionContext {
|
|
5
|
+
apiKey?: string;
|
|
6
|
+
defaultModel?: AgentModelInput;
|
|
7
|
+
defaultSubagentModel: AgentModelInput;
|
|
8
|
+
callId?: string;
|
|
9
|
+
dispatchSkill?: (name: string, args?: string) => Promise<string>;
|
|
10
|
+
traceWriter?: TraceSink;
|
|
11
|
+
getReadScopeInputs?: () => ReadScopeInputs;
|
|
12
|
+
workspaceStore?: import('../agent/workspace/index.js').WorkspaceStore;
|
|
13
|
+
}
|
|
14
|
+
export interface SkillMetadata {
|
|
15
|
+
name: string;
|
|
16
|
+
description: string;
|
|
17
|
+
handler: (input: unknown, parentSession?: IAgentSession, ctx?: SkillExecutionContext) => Promise<unknown>;
|
|
18
|
+
argumentHint?: string;
|
|
19
|
+
whenToUse?: string;
|
|
20
|
+
model?: string;
|
|
21
|
+
context?: 'inline' | 'fork' | 'load';
|
|
22
|
+
loadBody?: string;
|
|
23
|
+
origin?: 'builtin' | 'user' | 'project' | `imported:${string}`;
|
|
24
|
+
flags?: readonly string[];
|
|
25
|
+
readOnly?: boolean;
|
|
26
|
+
audience?: 'public' | 'internal';
|
|
27
|
+
category?: SkillCategory;
|
|
28
|
+
}
|
|
29
|
+
export declare const SKILL_CATEGORIES: readonly ["Build & ship", "Debug & fix", "Understand & explore", "Refactor & simplify", "Review & verify", "Setup & ops", "Author & meta"];
|
|
30
|
+
export type SkillCategory = (typeof SKILL_CATEGORIES)[number];
|
|
31
|
+
export declare const UNCATEGORIZED_LABEL = "More skills";
|