agent-afk 5.167.4 → 5.168.1

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.
@@ -78,6 +78,7 @@ export interface StopContext {
78
78
  parentSessionId?: string;
79
79
  terminalState?: 'done' | 'blocked' | 'asking' | 'interrupted';
80
80
  doneHasCorroboratingEvidence?: boolean;
81
+ doneEvidenceClassification?: 'no-code-changes' | 'verified' | 'unverified';
81
82
  }
82
83
  export interface UserPromptSubmitContext {
83
84
  event: 'UserPromptSubmit';
@@ -27,5 +27,5 @@ export interface OpenRoundContext {
27
27
  ttfbTimeoutMs: number;
28
28
  stallTimeoutMs: number;
29
29
  }
30
- export declare function buildRoundParams(input: Pick<RunTurnInput, 'model' | 'maxTokens' | 'messages' | 'system' | 'tools' | 'thinking' | 'effort' | 'fastMode'>): AnthropicMessagesCreateParams;
30
+ export declare function buildRoundParams(input: Pick<RunTurnInput, 'model' | 'maxTokens' | 'messages' | 'system' | 'tools' | 'thinking' | 'effort' | 'temperature' | 'fastMode'>): AnthropicMessagesCreateParams;
31
31
  export declare function openRound({ input, turn, retry, ttfbTimeoutMs, stallTimeoutMs, }: OpenRoundContext): AsyncGenerator<ProviderEvent, OpenRoundResult, void>;
@@ -17,6 +17,7 @@ export interface TurnRequestInput {
17
17
  baseUrl?: string;
18
18
  thinking?: RunTurnInput['thinking'];
19
19
  effort?: RunTurnInput['effort'];
20
+ temperature?: number;
20
21
  maxToolUseIterations?: number;
21
22
  softDeadlineMs?: number;
22
23
  traceWriter?: RunTurnInput['traceWriter'];
@@ -22,6 +22,7 @@ export interface AnthropicDirectQueryOptions {
22
22
  tokenRefresher?: () => Promise<Anthropic | null>;
23
23
  thinking?: import('@anthropic-ai/sdk/resources').ThinkingConfigParam;
24
24
  effort?: import('../../types/sdk-types.js').EffortLevel;
25
+ temperature?: number;
25
26
  baseUrl?: string;
26
27
  maxToolUseIterations?: number;
27
28
  softDeadlineMs?: number;
@@ -9,6 +9,7 @@ export declare class AnthropicDirectQuery implements ProviderQuery {
9
9
  private readonly systemPrefix;
10
10
  private readonly thinking?;
11
11
  private readonly effort?;
12
+ private readonly temperature?;
12
13
  private readonly baseUrl?;
13
14
  private readonly maxToolUseIterations?;
14
15
  private readonly softDeadlineMs?;
@@ -15,6 +15,7 @@ export interface TurnDriverContext {
15
15
  readonly tools: AnthropicToolDef[] | null;
16
16
  readonly thinking: import('@anthropic-ai/sdk/resources').ThinkingConfigParam | undefined;
17
17
  readonly effort: import('../../types/sdk-types.js').EffortLevel | undefined;
18
+ readonly temperature: number | undefined;
18
19
  readonly baseUrl: string | undefined;
19
20
  readonly maxToolUseIterations: number | undefined;
20
21
  readonly softDeadlineMs: number | undefined;
@@ -16,6 +16,7 @@ export interface RunTurnInput {
16
16
  softDeadlineMs?: number;
17
17
  thinking?: ThinkingConfigParam;
18
18
  effort?: import('../../types/sdk-types.js').EffortLevel;
19
+ temperature?: number;
19
20
  fastMode?: boolean;
20
21
  baseUrl?: string;
21
22
  traceWriter?: import('../../trace/index.js').TraceSink;
@@ -51,6 +52,7 @@ export interface AnthropicMessagesCreateParams {
51
52
  output_config?: {
52
53
  effort?: import('../../types/sdk-types.js').EffortLevel;
53
54
  };
55
+ temperature?: number;
54
56
  speed?: 'fast';
55
57
  stream: true;
56
58
  metadata?: Record<string, unknown>;
@@ -2,6 +2,7 @@ import type { MessageParam, ThinkingConfigParam } from '@anthropic-ai/sdk/resour
2
2
  import type { AgentConfig, ResumeHistoryTurn } from '../../types/config-types.js';
3
3
  import type { EffortLevel, ThinkingConfig } from '../../types/sdk-types.js';
4
4
  export { resolveAutoCompactThreshold } from '../shared/auto-compact.js';
5
+ export declare function resolveAnthropicTemperature(temperature: number | undefined): number | undefined;
5
6
  export declare function resolveMaxTokens(config: AgentConfig, model: string): number;
6
7
  export declare function resumeHistoryToMessages(history: ResumeHistoryTurn[] | undefined): MessageParam[] | undefined;
7
8
  export declare function resolveThinkingParam(tc: ThinkingConfig, maxTokens: number, model?: string): ThinkingConfigParam;
@@ -7,6 +7,7 @@ export interface RequestBodyInputs {
7
7
  activeTools: OpenAIFunctionTool[] | undefined;
8
8
  maxOutputTokens: number | undefined;
9
9
  effort: EffortLevel | undefined;
10
+ temperature: number | undefined;
10
11
  }
11
12
  export declare function buildResponsesRequestBody(args: RequestBodyInputs & {
12
13
  isChatGptBackend: boolean;
@@ -36,6 +36,7 @@ export interface AgentConfig {
36
36
  softDeadlineMs?: number;
37
37
  thinking?: ThinkingConfig;
38
38
  effort?: EffortLevel;
39
+ temperature?: number;
39
40
  tools?: ToolConfig;
40
41
  permissionMode?: PermissionMode;
41
42
  hooks?: Partial<Record<HookEvent, HookCallbackMatcher[]>>;
@@ -2,6 +2,7 @@
2
2
  name: diagnose
3
3
  description: "Parallel root-cause analysis for bugs and failing tests. Use when a test fails, a bug is reported, or behavior is unexplained — dispatches sub-agents to form and validate hypotheses in isolated worktrees."
4
4
  context: fork
5
+ category: Debug & fix
5
6
  ---
6
7
 
7
8
  Gather context: read the failing test or bug description, relevant error output, and recent git changes. If no failing test exists yet, write a minimal reproducer test (or identify a concrete verification command) before proceeding — hypotheses need a pass/fail signal to validate against. Dispatch two sub-agents in parallel — one to search the codebase for code paths involved in the failure (`subagent_type: research-agent`, read-only), and one to check recent commits and diffs that could have introduced the regression (`subagent_type: general-purpose` — requires Bash for `git log`/`git diff`/`git show`). When both return, synthesize findings into 2–4 ranked hypotheses, each with a specific code location and proposed cause.
@@ -4,6 +4,8 @@ import type { TerminalState } from './terminal-state.js';
4
4
  export declare const MAX_PUSHES_PER_SESSION = 20;
5
5
  export declare const MAX_RAW_BODY_FALLBACK_CHARS = 500;
6
6
  export declare const DONE_EVIDENCE_TOOLS: ReadonlySet<string>;
7
+ export declare function isVerificationCommand(input: string): boolean;
8
+ export declare function classifyDoneEvidence(toolEvents: readonly ToolEvent[]): 'no-code-changes' | 'verified' | 'unverified';
7
9
  export declare function doneHasCorroboratingEvidence(toolEvents: readonly ToolEvent[]): boolean;
8
10
  export declare function formatTerminalStateForTelegram(state: TerminalState, opts?: {
9
11
  unverified?: boolean;
@@ -24,6 +24,7 @@ export interface BuildAgentSessionDeps {
24
24
  autoResumeOnUsageLimit: boolean | undefined;
25
25
  permissionMode?: PermissionMode;
26
26
  baseUrl?: string;
27
+ temperature?: number;
27
28
  explicitProvider?: string;
28
29
  }
29
30
  export declare function buildAgentSession(deps: BuildAgentSessionDeps): AgentSession;
@@ -94,6 +94,7 @@ export interface TurnHandles {
94
94
  rearmStatus?(): void;
95
95
  onTerminalState?(state: import('./terminal-state.js').TerminalState, meta?: {
96
96
  doneHasCorroboratingEvidence?: boolean;
97
+ doneEvidenceClassification?: 'no-code-changes' | 'verified' | 'unverified';
97
98
  }): void;
98
99
  setActiveCompositor?(c: import('../../terminal-compositor.js').TerminalCompositor | null): void;
99
100
  setInterruptNotifier?(notifier: ((active: boolean) => void) | null): void;
@@ -15,7 +15,7 @@ export interface CliConfig {
15
15
  model: AgentModelInput;
16
16
  models?: ModelSlots;
17
17
  maxTokens: number;
18
- temperature: number;
18
+ temperature?: number;
19
19
  openaiBaseUrl?: string;
20
20
  systemPrompt?: string;
21
21
  systemPromptSource?: string;