@livx.cc/agentx 0.94.38 → 0.95.2
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-1DRfsYaK.d.ts → Agent-DRe91tAy.d.ts} +5 -0
- package/dist/cli.d.ts +2 -1
- package/dist/cli.js +636 -294
- package/dist/cli.js.map +1 -1
- package/dist/index.d.ts +37 -3
- package/dist/index.js +395 -83
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as AgentOptions, H as Hooks, h as RunResult, A as Agent } from './Agent-
|
|
2
|
-
export { C as ChatFragment, D as DEFAULT_MUTATING, b as Decision, P as PermissionOptions, c as PermissionPolicy, d as PermissionRule, e as PreToolUseDecision, R as ReasoningEffort, f as RecordingHooks, g as RecordingLifecycle, T as ToolUse, i as ToolUseMeta, j as composeHooks, p as planMode, r as reasoningToChatFragment } from './Agent-
|
|
1
|
+
import { a as AgentOptions, H as Hooks, h as RunResult, A as Agent } from './Agent-DRe91tAy.js';
|
|
2
|
+
export { C as ChatFragment, D as DEFAULT_MUTATING, b as Decision, P as PermissionOptions, c as PermissionPolicy, d as PermissionRule, e as PreToolUseDecision, R as ReasoningEffort, f as RecordingHooks, g as RecordingLifecycle, T as ToolUse, i as ToolUseMeta, j as composeHooks, p as planMode, r as reasoningToChatFragment } from './Agent-DRe91tAy.js';
|
|
3
3
|
import { IFilesystem, FileMetadata } from '@livx.cc/wcli/core';
|
|
4
4
|
export { CommandExecutor, FileMetadata, IFilesystem, IndexedDbFilesystem, MemFilesystem, registerHeadlessCommands } from '@livx.cc/wcli/core';
|
|
5
5
|
import { BodDB } from '@bod.ee/db';
|
|
@@ -1035,6 +1035,9 @@ interface TaskToolOptions {
|
|
|
1035
1035
|
maxParallel?: number;
|
|
1036
1036
|
/** Parent hooks — `onSubagentStop` fires with each child's summary when it finishes. */
|
|
1037
1037
|
hooks?: Hooks;
|
|
1038
|
+
/** Origin-anchored real-disk dir for child transcript traces (see `AgentOptions.traceDir`). Passed
|
|
1039
|
+
* down UNCHANGED to nested children so every level writes to the same origin `.agent`. */
|
|
1040
|
+
traceDir?: string;
|
|
1038
1041
|
}
|
|
1039
1042
|
/**
|
|
1040
1043
|
* `Task` tool — spawn a CHILD agent over the same VFS with its own step budget,
|
|
@@ -1316,4 +1319,35 @@ declare class CartesiaTTS {
|
|
|
1316
1319
|
close(): void;
|
|
1317
1320
|
}
|
|
1318
1321
|
|
|
1319
|
-
|
|
1322
|
+
declare function validateWorktreeSlug(slug: string): void;
|
|
1323
|
+
declare function worktreeBranchName(slug: string): string;
|
|
1324
|
+
interface WorktreeInfo {
|
|
1325
|
+
worktreePath: string;
|
|
1326
|
+
branch: string;
|
|
1327
|
+
headCommit: string;
|
|
1328
|
+
existed: boolean;
|
|
1329
|
+
baseBranch?: string;
|
|
1330
|
+
}
|
|
1331
|
+
declare function findGitRoot(from: string): string | null;
|
|
1332
|
+
declare function getOrCreateWorktree(repoRoot: string, slug: string): WorktreeInfo;
|
|
1333
|
+
declare function cleanupWorktree(repoRoot: string, slug: string, opts?: {
|
|
1334
|
+
force?: boolean;
|
|
1335
|
+
}): {
|
|
1336
|
+
removed: boolean;
|
|
1337
|
+
reason?: string;
|
|
1338
|
+
};
|
|
1339
|
+
interface WorktreeSession {
|
|
1340
|
+
originalCwd: string;
|
|
1341
|
+
worktreePath: string;
|
|
1342
|
+
slug: string;
|
|
1343
|
+
branch: string;
|
|
1344
|
+
headCommit: string;
|
|
1345
|
+
}
|
|
1346
|
+
declare function getWorktreeSession(): WorktreeSession | null;
|
|
1347
|
+
declare function enterWorktree(slug: string, cwd: string): WorktreeSession;
|
|
1348
|
+
declare function exitWorktree(): {
|
|
1349
|
+
removed: boolean;
|
|
1350
|
+
reason?: string;
|
|
1351
|
+
} | null;
|
|
1352
|
+
|
|
1353
|
+
export { Agent, type AgentDef, AgentOptions, AgentTool, type AskOptions, type Attempt, type AudioSink, type AudioSource, type AuthProvider, BodDbFilesystem, CartesiaTTS, CartesiaTTSOptions, ChatLike, ChatOptions, ChatResponse, type CommandInfo, ConsoleHostBridge, DEFAULT_DENY, DuplexAgent, DuplexAgentOptions, type DuplexTaskStatus, FakeAIClient, Hooks, HostBridge, JailOptions, JailedFilesystem, type LessonOptions, LessonOptionsDefaults, type LoadMemoryOpts, MEMORY_PROMPT, MessageContent, type Mount, MountFilesystem, NodeDiskFilesystem, OverlayFilesystem, type ReflectOptions, RunResult, SCRATCH_DIR, STT_SAMPLE_RATE, type ScheduledJob, type ScheduledJobSnapshot, Scheduler, type SchedulerOptions, Scratch, type ScratchOptions, ScriptedHostBridge, type SiblingResolver, type SkillInfo, SonioxSTT, SonioxSTTOptions, type SttLike, TTS_SAMPLE_RATE, type TaskRecord, type TaskToolOptions, ToolCall, type ToolSpec, type Trigger, type TriggerCron, type TriggerInterval, type TriggerOneOff, type TtsLike, UserQuestion, VOICE_MEMORY_PROMPT, VOICE_SYSTEM_PROMPT, VoiceEngine, VoiceEngineOptions, type VoiceState, type WebFetchOptions, type WebSearchOptions, type WorkerTier, type WorktreeInfo, type WorktreeSession, applyEditsTool, askUserQuestionTool, checkpointTool, checkpointTools, cleanupWorktree, compileSynthesizedTool, cronMatches, decodeDdgUrl, diskAgentOptions, enterWorktree, exitWorktree, expandCommand, expandEntry, expandTemplate, findGitRoot, forComponent, fullAgentOptions, getOrCreateWorktree, getWorktreeSession, globTool, grepTool, htmlToText, idfWeights, lessonCapture, loadAgents, loadCommands, loadInstructions, loadMemory, loadSkills, makeAskTool, makeScheduleTools, makeTaskBatchTool, makeTaskTool, makeWebFetchTool, makeWebSearchTool, mkdirp, multiEditTool, nextCronAfter, parseCron, parseDdgHtml, raceAttempts, reflectOnRun, relevanceScore, repoIndex, repoMapTool, resolveAuth, rollbackTool, sandboxAgentOptions, scanCommands, scanSkills, slugify, tokenize, toolCall, topByRelevance, validateToolCode, validateWorktreeSlug, webFetchTool, webSearchTool, worktreeBranchName, writeFact, writeTool };
|