agent-afk 5.308.7 → 5.308.9
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/index.d.ts +2 -16
- package/dist/agent/outcomes/index.d.ts +5 -20
- package/dist/agent/session/deferred-parent-proxy.d.ts +2 -2
- package/dist/agent/tools/schemas.d.ts +1 -11
- package/dist/cli/commands/browser.d.ts +1 -1
- package/dist/cli/input/reader.callbacks.d.ts +9 -0
- package/dist/cli/slash/_lib/run-skill-preflight.d.ts +1 -1
- package/dist/cli.mjs +416 -420
- package/dist/index.mjs +175 -178
- package/dist/telegram.mjs +196 -200
- package/dist/utils/atomic-write.d.ts +1 -0
- package/dist/web-server/routes.d.ts +2 -2
- package/dist/web-server/server.d.ts +1 -1
- package/dist/web-server/session-owner.d.ts +2 -2
- package/package.json +1 -1
package/dist/agent/index.d.ts
CHANGED
|
@@ -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 {
|
|
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 {
|
|
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
|
|
2
|
-
export {
|
|
3
|
-
export
|
|
4
|
-
export {
|
|
5
|
-
export
|
|
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';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type {
|
|
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:
|
|
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 {
|
|
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/
|
|
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"];
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { ReaderState } from './reader.state.js';
|
|
2
|
+
import type { RepaintCtx } from './reader.repaint.js';
|
|
3
|
+
import type { ReadWithAutocompleteOpts, ReadWithAutocompleteResult } from './types.js';
|
|
4
|
+
export interface ReaderCallbacks {
|
|
5
|
+
onSubmit: () => void;
|
|
6
|
+
onAbort: (err: Error) => void;
|
|
7
|
+
onEof: () => void;
|
|
8
|
+
}
|
|
9
|
+
export declare function buildReaderCallbacks(st: ReaderState, stdout: NodeJS.WriteStream, repaintCtx: RepaintCtx, opts: ReadWithAutocompleteOpts, promptText: string, cleanup: () => void, resolve: (value: ReadWithAutocompleteResult) => void, reject: (err: Error) => void): ReaderCallbacks;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type
|
|
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>;
|