agent-afk 5.104.2 → 5.105.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/plugins/command-files.d.ts +2 -0
- package/dist/agent/plugins/source-guard.d.ts +3 -0
- package/dist/agent/plugins/tool-injector.d.ts +3 -0
- package/dist/agent/provider.d.ts +1 -0
- package/dist/agent/tools/skill-bridge.d.ts +1 -1
- package/dist/agent/types/sdk-types.d.ts +1 -0
- package/dist/cli/slash/plugin-skills/state.d.ts +3 -0
- package/dist/cli/slash/preflight/types.d.ts +1 -1
- package/dist/cli.mjs +548 -539
- package/dist/index.mjs +200 -191
- package/dist/skills/audit-fit/index.d.ts +3 -3
- package/dist/telegram.mjs +265 -256
- package/package.json +1 -1
|
@@ -2,6 +2,7 @@ export interface PluginSkillMetadata {
|
|
|
2
2
|
name?: string;
|
|
3
3
|
description?: string;
|
|
4
4
|
argumentHint?: string;
|
|
5
|
+
origin?: 'command';
|
|
5
6
|
allowedTools?: string[];
|
|
6
7
|
context?: string;
|
|
7
8
|
readOnly?: boolean;
|
|
@@ -12,4 +13,6 @@ export interface PluginSkillMetadata {
|
|
|
12
13
|
export declare function normalizeToolToken(token: string, knownToolNames: ReadonlySet<string>): string | undefined;
|
|
13
14
|
export declare function parseToolsField(inlineValue: string, remainingLines: string[]): string[];
|
|
14
15
|
export declare function extractPluginSkills(pluginPath: string, knownToolNames?: ReadonlySet<string>): PluginSkillMetadata[];
|
|
16
|
+
export declare function parseSkillMetadata(skillPath: string, knownToolNames?: ReadonlySet<string>): PluginSkillMetadata;
|
|
17
|
+
export declare function resolveKnownToolNames(provided?: ReadonlySet<string>): ReadonlySet<string>;
|
|
15
18
|
export declare function extractPluginName(pluginPath: string): string;
|
package/dist/agent/provider.d.ts
CHANGED
|
@@ -170,6 +170,7 @@ export interface ProviderCommandInfo {
|
|
|
170
170
|
name: string;
|
|
171
171
|
description?: string;
|
|
172
172
|
argumentHint?: string;
|
|
173
|
+
source?: 'builtin' | 'user' | 'project' | 'plugin' | 'imported' | 'command';
|
|
173
174
|
}
|
|
174
175
|
export interface ProviderModelInfo {
|
|
175
176
|
value: string;
|
|
@@ -4,7 +4,7 @@ import type { SdkPluginConfig } from '../types/sdk-types.js';
|
|
|
4
4
|
export interface SkillManifestEntry {
|
|
5
5
|
name: string;
|
|
6
6
|
description: string;
|
|
7
|
-
source: 'builtin' | 'user' | 'project' | 'plugin' | 'imported';
|
|
7
|
+
source: 'builtin' | 'user' | 'project' | 'plugin' | 'imported' | 'command';
|
|
8
8
|
argumentHint?: string;
|
|
9
9
|
whenToUse?: string;
|
|
10
10
|
}
|
|
@@ -189,6 +189,7 @@ export type SlashCommand = {
|
|
|
189
189
|
name: string;
|
|
190
190
|
description: string;
|
|
191
191
|
argumentHint: string;
|
|
192
|
+
source?: 'builtin' | 'user' | 'project' | 'plugin' | 'imported' | 'command';
|
|
192
193
|
};
|
|
193
194
|
export type SDKControlGetContextUsageResponse = {
|
|
194
195
|
categories: {
|
|
@@ -1,12 +1,15 @@
|
|
|
1
|
+
import type { SkillManifestEntry } from '../../../agent/tools/skill-bridge.js';
|
|
1
2
|
export interface DiscoveredSkill {
|
|
2
3
|
name: string;
|
|
3
4
|
description: string;
|
|
4
5
|
argumentHint?: string;
|
|
6
|
+
source?: SkillManifestEntry['source'];
|
|
5
7
|
}
|
|
6
8
|
export interface PluginCollision {
|
|
7
9
|
bare: string;
|
|
8
10
|
altSlash: string;
|
|
9
11
|
altDescription: string;
|
|
12
|
+
source?: SkillManifestEntry['source'];
|
|
10
13
|
}
|
|
11
14
|
export interface PluginSkillsState {
|
|
12
15
|
discovered: DiscoveredSkill[];
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export interface SkillInvocation {
|
|
2
2
|
skillName: string;
|
|
3
3
|
rawArgs: string;
|
|
4
|
-
source: 'builtin' | 'user' | 'project' | 'plugin' | 'imported';
|
|
4
|
+
source: 'builtin' | 'user' | 'project' | 'plugin' | 'imported' | 'command';
|
|
5
5
|
capabilities: {
|
|
6
6
|
compose: boolean;
|
|
7
7
|
subagents: boolean;
|