agent-afk 5.15.4 → 5.15.6

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.
@@ -1,4 +1,5 @@
1
1
  import type { AgentDefinition } from '../../agent/types/sdk-types.js';
2
+ export declare function vendoredToolAllowlist(allowedTools: readonly string[]): Set<string>;
2
3
  export declare function toAgentDefinition(agent: {
3
4
  systemPrompt: string;
4
5
  description: string;
@@ -1,4 +1,8 @@
1
1
  import type { SkillExecutionContext } from '../../index.js';
2
2
  import type { IAgentSession } from '../../../agent/types.js';
3
+ import type { CanUseTool } from '../../../agent/types/sdk-types.js';
3
4
  import type { DiagnosisResult } from './types.js';
5
+ export declare function createReadOnlyCanUseTool(): CanUseTool;
6
+ export declare function createGitLaneCanUseTool(): CanUseTool;
7
+ export declare function createVerifierCanUseTool(): CanUseTool;
4
8
  export declare function handler(input: unknown, parentSession?: IAgentSession, ctx?: SkillExecutionContext): Promise<DiagnosisResult>;
@@ -2,5 +2,6 @@ export type { Verification, Hypothesis, PremiseVerification, VerificationResult,
2
2
  export { HypothesisSchema, PremiseVerificationSchema, VerificationResultSchema, FailureTypeSchema, TriageSchema, DiagnosisOutcomeSchema, DiagnosisResultSchema, } from './_phases/types.js';
3
3
  export { classifyAndExtract, fixSpansMultipleFiles, computeOutcome } from './_phases/triage.js';
4
4
  export { parseShadowVerifyOutput, runReproducerBaseline, buildVerifierUserPrompt, autoVerifyHypotheses, } from './_phases/verifier.js';
5
+ export { createReadOnlyCanUseTool, createGitLaneCanUseTool, createVerifierCanUseTool, } from './_phases/orchestrator.js';
5
6
  import { type SkillMetadata } from '../index.js';
6
7
  export declare const diagnoseSkill: SkillMetadata;
@@ -0,0 +1,2 @@
1
+ import type { Context } from 'telegraf';
2
+ export declare function withTypingIndicator<T>(ctx: Context, work: () => Promise<T>): Promise<T>;