agent-afk 5.308.6 → 5.308.8

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.
@@ -12,5 +12,6 @@ export interface AfkModeGateOptions {
12
12
  }) => Promise<ElicitationResult>;
13
13
  sessionId?: string;
14
14
  traceWriter?: TraceSink;
15
+ daemonTaskId?: string;
15
16
  }
16
17
  export declare function createAfkModeGate(getMode: () => PermissionMode, cwd?: string, getCwd?: () => string | undefined, opts?: AfkModeGateOptions): HookHandler;
@@ -22,4 +22,5 @@ export declare function createDefaultHookRegistry(onSubagentComplete?: (info: Su
22
22
  traceWriter?: TraceSink;
23
23
  afkPromptForApproval?: boolean;
24
24
  getTranscriptPath?: () => string | null;
25
+ daemonTaskId?: string;
25
26
  }, getCwd?: () => string | undefined): DefaultHookRegistryResult;
@@ -3,29 +3,15 @@ export { query, queryText, queryStructured } from './query.js';
3
3
  export type { QueryOptions } from './query.js';
4
4
  export { SubagentManager } from './subagent.js';
5
5
  export { createCanUseToolHook } from './permissions.js';
6
- export { AbortGraph } from './abort-graph.js';
7
- export { DEFAULT_SESSION_TIMEOUT_MS, RESET_DRAIN_TIMEOUT_MS, withTimeout } from './timeout.js';
8
- export { extractStructuredOutput } from './output-extractor.js';
9
- export { createHookRegistry } from './hooks.js';
10
- export { HookBlockedError, BudgetExceededError } from '../utils/errors.js';
6
+ export { BudgetExceededError } from '../utils/errors.js';
11
7
  export { OpenAICompatibleProvider, openaiCompatibleProvider } from './providers/openai-compatible/index.js';
12
8
  export { providerForModel, resolveProvider } from './providers/index.js';
13
9
  export type { BundledProviderName } from './providers/index.js';
14
10
  export type { AccountInfo, AgentConfig, AgentModelInput, CanUseTool, ClaudeModel, IAgentSession, McpServerStatus, Message, MessageChunk, MessageRole, ModelInfo, OutputEvent, PermissionBubbler, PermissionMode, ResponseMetadata, SDKStatus, SendMessageOptions, StructuredMessageOptions, SessionIdentity, SessionMetadata, SessionState, SlashCommand, ToolConfig, ToolDiffChunk, ToolResultChunk, } from './types.js';
15
11
  export type { CanUseToolContext, PermissionDecision, ToolPermission, ToolPermissionMode, ToolPermissionRules, } from './permissions.js';
16
12
  export type { ForkSubagentOptions, SubagentHandle, SubagentManagerOptions, SubagentResult, SubagentStatus, } from './subagent.js';
17
- export type { ChildAbortedListener } from './abort-graph.js';
18
- export type { WithTimeoutOptions } from './timeout.js';
19
- export { runDAG, validateDAG } from './dag.js';
20
- export { runSubagentDAG } from './dag-subagent.js';
21
- export type { DAGEdge, DAGGraph, DAGNode, DAGRunOptions, DAGRunResult } from './dag.js';
22
- export type { SubagentDAGNode, SubagentDAGOptions } from './dag-subagent.js';
23
- export type { HarnessHookEvent, HookContext, HookDecision, HookHandler, HookRegistry, PostToolUseContext, PreCompactContext, PreToolUseContext, SessionEndContext, SessionStartContext, StopContext, SubagentHookStatus, SubagentStartContext, SubagentStopContext, } from './hooks.js';
24
- export type { ModelProvider, ProviderQuery, ProviderQueryArgs, ProviderEvent, ProviderUserTurn, ProviderUsage, ProviderSessionInfo, ProviderProgress, ProviderCommandInfo, ProviderModelInfo, ProviderAgentInfo, ProviderContextUsage, ProviderMcpServerStatus, ProviderAccountInfo, ProviderRewindResult, } from './provider.js';
25
- export type { DaemonHandle, DaemonOptions } from './daemon.js';
13
+ export type { ModelProvider, ProviderQuery, ProviderEvent, ProviderUserTurn } from './provider.js';
26
14
  export type { SessionRef } from './session-ref.js';
27
- export { SessionToolDispatcher, createBuiltinHandlers, builtinToolSchemas, checkToolPermission } from './tools/index.js';
28
- export type { ToolHandler, ToolPermissionConfig, SessionToolDispatcherOptions } from './tools/index.js';
29
15
  export type { RenderHints } from './providers/anthropic-direct/types.js';
30
16
  export { tool } from './tools/custom-tool.js';
31
17
  export type { CustomToolDef } from './tools/custom-tool.js';
@@ -1,22 +1,7 @@
1
- export type { VerifiedOutcome, OutcomeLabel, SelfReport, Vote, HistoryEntry, Artifacts } from './schema.js';
2
- export { VerifiedOutcomeSchema } from './schema.js';
3
- export type { ToolEvent, Turn } from './artifacts.js';
4
- export { recoverArtifacts, recoverCommitSHAs, recoverPRURLs, inferRepo } from './artifacts.js';
5
- export type { ClosureInfo, LoadClosure, ImmediateLFResult } from './lf-immediate.js';
6
- export { parseSelfReport, lfClosure, lfErrorTail, lfVerification, lfInSessionCorrection, lfSelfReport, runImmediateLFs, } from './lf-immediate.js';
7
- export type { PrState, FetchPrState, CheckAncestor, CheckRevert, GetDefaultBranch } from './lf-delayed.js';
8
- export { parsePrUrl, lfPrFate, lfCommitSurvival, realFetchPrState, realCheckAncestor, realCheckRevert, } from './lf-delayed.js';
9
- export type { CombinerInput, CombinerResult } from './combine.js';
10
- export { combine, computeConfidence } from './combine.js';
11
- export { VERIFICATION_PATTERNS, isVerificationCommand, parseVerificationSummary, } from './verification-patterns.js';
12
- export type { UpsertVotesOptions } from './store.js';
13
- export { readRecord, writeRecord, listRecords, upsertVotes, appendArtifacts } from './store.js';
1
+ export type { VerifiedOutcome, OutcomeLabel, SelfReport, Vote } from './schema.js';
2
+ export { recoverArtifacts } from './artifacts.js';
3
+ export { lfClosure, runImmediateLFs } from './lf-immediate.js';
4
+ export { lfPrFate, lfCommitSurvival } from './lf-delayed.js';
5
+ export { combine } from './combine.js';
14
6
  export { createOutcomeSessionEndHook } from './session-end-hook.js';
15
7
  export { createChildAttributionHook } from './child-attribution.js';
16
- export { lfReask, normalizeTokens, jaccardSimilarity, REASK_THRESHOLD } from './lf-reask.js';
17
- export type { ExecFnCi } from './lf-ci.js';
18
- export { lfCi, realExecFnCi } from './lf-ci.js';
19
- export type { ExecFnFof } from './lf-fof.js';
20
- export { lfFixOfFix as lfFixOfFixDelayed, realExecFnFof } from './lf-fof.js';
21
- export type { RelabelDeps, RelabelJobOptions, RelabelJobResult, ProcessResult } from './relabel-job.js';
22
- export { runRelabelJob, processRecord, realRelabelDeps } from './relabel-job.js';
@@ -2,5 +2,6 @@ export type RiskLevel = 'safe' | 'medium' | 'high';
2
2
  export interface RiskContext {
3
3
  cwd: string;
4
4
  workspaceRoot?: string;
5
+ daemonTaskId?: string;
5
6
  }
6
7
  export declare function classifyRisk(toolName: string, input: unknown, ctx: RiskContext): RiskLevel;
@@ -1,7 +1,7 @@
1
- import type { AgentSession } from './agent-session.js';
1
+ import type { SessionExecutorsBindTarget } from './session-executors.js';
2
2
  import type { SubagentExecutorContext } from '../tools/subagent-executor.js';
3
3
  export interface DeferredParentProxy {
4
4
  proxy: SubagentExecutorContext['parentSession'];
5
- bind: (session: AgentSession) => void;
5
+ bind: (session: SessionExecutorsBindTarget) => void;
6
6
  }
7
7
  export declare function makeDeferredParentProxy(): DeferredParentProxy;
@@ -1,16 +1,6 @@
1
1
  import type { AnthropicToolDef } from './types.js';
2
- export { readFileTool, viewImageTool, extractDocumentTool, writeFileTool, editFileTool, globTool, grepTool, listDirectoryTool, } from './schemas.file-tools.js';
3
- export { bashTool } from './schemas.bash.js';
4
- export { sendTelegramTool, webScrapeTool, webRequestTool, imageGenerateTool, imageEditTool, } from './schemas.web-tools.js';
5
- export { createScheduleTool, updateScheduleTool, listSchedulesTool, getScheduleHistoryTool, cancelScheduleTool, } from './schemas.schedule.js';
6
2
  export { agentTool, skillTool, composeTool } from './schemas.agent-tools.js';
7
- export { worktreeTool, terminalFontSizeTool, configGetTool, configSetTool, } from './schemas.worktree-tools.js';
8
- export { askQuestionTool, clipboardWriteTool, clipboardReadTool, } from './schemas.interaction-tools.js';
9
- export { browserOpenTool, browserObserveTool, browserActTool, browserScreenshotTool, browserCloseTool, } from './schemas.browser-tools.js';
10
- export { listSessionsTool, sendToSessionTool, PEER_TOOL_NAMES } from './schemas.peer.js';
11
- export { waitForTool } from './schemas.wait-for.js';
12
- export { jsonQueryTool } from './schemas.json-query.js';
13
- export { modelCompleteTool } from './schemas.model-complete.js';
3
+ export { clipboardWriteTool, clipboardReadTool } from './schemas.interaction-tools.js';
14
4
  export declare const builtinToolSchemas: readonly AnthropicToolDef[];
15
5
  export declare const BUILTIN_TOOL_NAMES: string[];
16
6
  export declare const ALL_TOOL_SCHEMAS: readonly AnthropicToolDef[];
@@ -1,5 +1,5 @@
1
1
  import { Command } from 'commander';
2
- import { type McpConfigFile } from '../../agent/mcp/config-loader.js';
2
+ import { type McpConfigFile } from '../../agent/mcp/index.js';
3
3
  import type { McpServerConfig } from '../../agent/mcp/types.js';
4
4
  export declare const CHROME_DEVTOOLS_SERVER_NAME = "chrome-devtools";
5
5
  declare const VALID_CHANNELS: readonly ["stable", "beta", "canary", "dev"];
@@ -16,20 +16,13 @@ export interface ParsePipelineCallbacks {
16
16
  onScheduleRepaint(): void;
17
17
  }
18
18
  export declare function runParsePipeline(buffer: string, chunk: string, callbacks: ParsePipelineCallbacks): string;
19
- export interface LogUpdateFunction {
20
- (str: string): void;
21
- clear: () => void;
22
- }
23
19
  export interface RepaintParams {
24
20
  flushing: boolean;
25
21
  overlayComposer: OverlayComposerLike | null | undefined;
26
22
  compositor: CompositorLike | null;
27
- logUpdate: LogUpdateFunction | null;
28
23
  renderPending(): string;
29
- initLogUpdate(): Promise<LogUpdateFunction | null>;
30
- onLogUpdateReady(fn: LogUpdateFunction | null): void;
31
24
  }
32
- export declare function executeRepaint(p: RepaintParams): Promise<void>;
25
+ export declare function executeRepaint(p: RepaintParams): void;
33
26
  export interface CompositorLike {
34
27
  setOverlay(str: string): void;
35
28
  }
@@ -37,7 +30,5 @@ export interface OverlayComposerLike {
37
30
  markDirty(slot: string): void;
38
31
  flush(): void;
39
32
  }
40
- export declare function clearOverlay(overlayComposer: OverlayComposerLike | null | undefined, compositor: CompositorLike | null, logUpdate: {
41
- clear(): void;
42
- } | null): void;
33
+ export declare function clearOverlay(overlayComposer: OverlayComposerLike | null | undefined, compositor: CompositorLike | null): void;
43
34
  export declare function syncPendingOverlay(overlayComposer: OverlayComposerLike | null | undefined, compositor: CompositorLike | null, renderPending: () => string): void;
@@ -9,10 +9,6 @@ export declare function hasMarkdownContent(text: string): boolean;
9
9
  export declare function isInOpenCodeFence(text: string): boolean;
10
10
  export declare function isInOpenTable(text: string): boolean;
11
11
  export declare function findBlockBoundary(text: string): number;
12
- export declare function initLogUpdateModule(): Promise<{
13
- (str: string): void;
14
- clear: () => void;
15
- } | null>;
16
12
  export interface OverlayRoutingParams {
17
13
  indented: string;
18
14
  overlayComposer: {
@@ -22,10 +18,6 @@ export interface OverlayRoutingParams {
22
18
  compositor: {
23
19
  setOverlay(str: string): void;
24
20
  } | null;
25
- logUpdate: {
26
- (str: string): void;
27
- clear: () => void;
28
- } | null;
29
21
  }
30
22
  export declare function routeOverlayOutput(params: OverlayRoutingParams): boolean;
31
23
  export declare function accumulateCommitted(current: string, trimmed: string): string;
@@ -17,7 +17,6 @@ export declare class StreamingMarkdownRenderer {
17
17
  private committed;
18
18
  private throttleTimer;
19
19
  private lastPaintTime;
20
- private logUpdate;
21
20
  private isTTY;
22
21
  private flushing;
23
22
  private compositor;
@@ -27,7 +26,6 @@ export declare class StreamingMarkdownRenderer {
27
26
  private inputState;
28
27
  private smoke;
29
28
  constructor(opts?: StreamingMarkdownRendererOptions);
30
- private initLogUpdate;
31
29
  private commitBlock;
32
30
  private scheduleRepaint;
33
31
  renderPending(): string;
@@ -1,3 +1,3 @@
1
- import type { SkillInvocation } from '../preflight/index.js';
1
+ import { type SkillInvocation } from '../preflight/index.js';
2
2
  import type { SlashContext } from '../types.js';
3
3
  export declare function invokeSkillPreflight(skillName: string, rawArgs: string, source: SkillInvocation['source'], ctx: SlashContext): Promise<string | undefined>;