@gencode/agents 0.1.0 → 0.1.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/CHANGELOG.md +12 -0
- package/dist/index.d.ts +59 -13
- package/dist/index.js +62 -54
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @gencode/agents
|
|
2
2
|
|
|
3
|
+
## 0.1.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 059d077: Expose completed subagent results in status polling and delay delivery marking until parent announce handling succeeds.
|
|
8
|
+
|
|
9
|
+
## 0.1.1
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- 2908094: Preserve skill-loading correctness across context compaction by requiring explicit reloads when SKILL.md content is no longer visible.
|
|
14
|
+
|
|
3
15
|
## 0.1.0
|
|
4
16
|
|
|
5
17
|
### Minor Changes
|
package/dist/index.d.ts
CHANGED
|
@@ -162,7 +162,12 @@ type AgentRunParamsBase = {
|
|
|
162
162
|
ownershipUid?: number | null; /** Optional tool allowlist for plugin tools */
|
|
163
163
|
toolAllowlist?: string[]; /** Optional allowlist for plugin LLM access (plugin id or tool name) */
|
|
164
164
|
llmAllowlist?: string[];
|
|
165
|
-
};
|
|
165
|
+
};
|
|
166
|
+
/**
|
|
167
|
+
* Additional skill registry directories supplied by the CLI.
|
|
168
|
+
* Each directory contains skill child directories such as <dir>/<skill-name>/SKILL.md.
|
|
169
|
+
*/
|
|
170
|
+
skillsLoadPaths?: string[]; /** Memory system options (optional) */
|
|
166
171
|
memory?: {
|
|
167
172
|
/** Explicit memory provider id (overrides plugins.slots.memory) */providerId?: string; /** Explicit plugin id for memory provider (used when providerId not set) */
|
|
168
173
|
pluginId?: string; /** Whether memory replies should include source path/line hints */
|
|
@@ -246,6 +251,7 @@ type CompactionEntry = {
|
|
|
246
251
|
keptCount: number;
|
|
247
252
|
droppedCount: number;
|
|
248
253
|
timestamp: string;
|
|
254
|
+
source?: "cron";
|
|
249
255
|
};
|
|
250
256
|
/** Union of all persisted transcript entry types */
|
|
251
257
|
type TranscriptEntry = UserEntry | AssistantEntry | ToolResultEntry | CompactionEntry;
|
|
@@ -278,7 +284,7 @@ declare const MAX_CHILDREN_PER_SESSION = 5;
|
|
|
278
284
|
*/
|
|
279
285
|
declare class SubagentRegistry {
|
|
280
286
|
private readonly entries;
|
|
281
|
-
/** RunIds
|
|
287
|
+
/** RunIds whose terminal result has already been delivered to the parent. */
|
|
282
288
|
private readonly announced;
|
|
283
289
|
register(record: SubagentRunRecord, promise: Promise<void>): void;
|
|
284
290
|
complete(runId: string, result: string): void;
|
|
@@ -298,13 +304,21 @@ declare class SubagentRegistry {
|
|
|
298
304
|
* Returns immediately if nothing is pending.
|
|
299
305
|
*/
|
|
300
306
|
waitForAll(parentSessionId: string): Promise<void>;
|
|
307
|
+
/**
|
|
308
|
+
* Returns all finished runs whose terminal result has not yet been delivered.
|
|
309
|
+
* This is a read-only snapshot; callers must explicitly mark delivery after
|
|
310
|
+
* the result has been handed back to the parent.
|
|
311
|
+
*/
|
|
312
|
+
peekCompleted(parentSessionId: string): SubagentRunRecord[];
|
|
301
313
|
/**
|
|
302
314
|
* Returns all finished runs that have not yet been returned by this method,
|
|
303
315
|
* and marks them as announced so they are not returned again.
|
|
304
316
|
*/
|
|
305
317
|
consumeCompleted(parentSessionId: string): SubagentRunRecord[];
|
|
306
318
|
/** Marks a finished run as already delivered to its parent. */
|
|
307
|
-
markAnnounced(runId: string): void;
|
|
319
|
+
markAnnounced(runId: string | string[]): void;
|
|
320
|
+
/** Returns whether a run's terminal result has already been delivered. */
|
|
321
|
+
isAnnounced(runId: string): boolean;
|
|
308
322
|
/** Returns true if there are completed runs not yet returned by consumeCompleted. */
|
|
309
323
|
hasUnannounced(parentSessionId: string): boolean;
|
|
310
324
|
/**
|
|
@@ -533,7 +547,8 @@ type MemoryProvider = {
|
|
|
533
547
|
search: (query: string, options?: MemorySearchOptions) => Promise<MemorySearchResult$1[]>;
|
|
534
548
|
getLines: (file: string, startLine: number, endLine: number) => Promise<string[] | null>;
|
|
535
549
|
listFiles: () => Promise<string[]>;
|
|
536
|
-
append: (content: string) => Promise<void>;
|
|
550
|
+
append: (content: string) => Promise<void>; /** Write a daily or session log entry. Falls back to append() if not implemented. */
|
|
551
|
+
appendRecent?: (content: string, scope: "daily" | "session") => Promise<void>;
|
|
537
552
|
updateFile: (file: string, content: string) => Promise<void>;
|
|
538
553
|
deleteFile: (file: string) => Promise<void>;
|
|
539
554
|
sync?: (reason?: string) => Promise<void>;
|
|
@@ -543,7 +558,7 @@ type MemoryProvider = {
|
|
|
543
558
|
type MemoryProviderFactory = (ctx: MemoryProviderContext) => MemoryProvider;
|
|
544
559
|
//#endregion
|
|
545
560
|
//#region src/plugins/hooks.d.ts
|
|
546
|
-
type PluginHookName = "before_model_resolve" | "before_prompt_build" | "after_prompt_build" | "llm_input" | "assistant_message_end" | "llm_output" | "before_tool_call" | "after_tool_call" | "agent_end" | "before_compaction" | "after_compaction" | "session_start" | "session_end" | "session_reset" | "memory_changed";
|
|
561
|
+
type PluginHookName = "before_model_resolve" | "before_prompt_build" | "after_prompt_build" | "llm_input" | "assistant_message_end" | "llm_output" | "before_tool_call" | "after_tool_call" | "agent_end" | "before_compaction" | "after_compaction" | "session_start" | "session_end" | "session_reset" | "dream_gate" | "memory_changed";
|
|
547
562
|
type PluginHookAgentContext = {
|
|
548
563
|
agentId?: string;
|
|
549
564
|
sessionId?: string;
|
|
@@ -630,6 +645,10 @@ type PluginHookBeforeCompactionEvent = {
|
|
|
630
645
|
messageCount: number;
|
|
631
646
|
compactingCount?: number;
|
|
632
647
|
};
|
|
648
|
+
type PluginHookBeforeCompactionResult = {
|
|
649
|
+
skipPersist?: boolean;
|
|
650
|
+
injectRecall?: string;
|
|
651
|
+
};
|
|
633
652
|
type PluginHookAfterCompactionEvent = {
|
|
634
653
|
messageCount: number;
|
|
635
654
|
compactedCount: number;
|
|
@@ -648,6 +667,20 @@ type PluginHookSessionResetEvent = {
|
|
|
648
667
|
previousSessionId?: string;
|
|
649
668
|
message: string;
|
|
650
669
|
};
|
|
670
|
+
type PluginHookDreamGateEvent = {
|
|
671
|
+
dataDir: string;
|
|
672
|
+
memoryDir: string;
|
|
673
|
+
providerId: string;
|
|
674
|
+
pluginId?: string;
|
|
675
|
+
trigger: "cli" | "cron";
|
|
676
|
+
dryRun?: boolean;
|
|
677
|
+
};
|
|
678
|
+
type PluginHookDreamGateResult = {
|
|
679
|
+
handled?: boolean;
|
|
680
|
+
status?: "noop" | "completed" | "queued" | "failed";
|
|
681
|
+
summary?: string;
|
|
682
|
+
details?: Record<string, unknown>;
|
|
683
|
+
};
|
|
651
684
|
type PluginHookMemoryChangedEvent = MemoryChangedEvent;
|
|
652
685
|
type PluginHookHandlerMap = {
|
|
653
686
|
before_model_resolve: (event: PluginHookBeforeModelResolveEvent, ctx: PluginHookAgentContext) => PluginHookBeforeModelResolveResult | void | Promise<PluginHookBeforeModelResolveResult | void>;
|
|
@@ -659,11 +692,12 @@ type PluginHookHandlerMap = {
|
|
|
659
692
|
before_tool_call: (event: PluginHookBeforeToolCallEvent, ctx: PluginHookAgentContext) => PluginHookBeforeToolCallResult | void | Promise<PluginHookBeforeToolCallResult | void>;
|
|
660
693
|
after_tool_call: (event: PluginHookAfterToolCallEvent, ctx: PluginHookAgentContext) => void | Promise<void>;
|
|
661
694
|
agent_end: (event: PluginHookAgentEndEvent, ctx: PluginHookAgentContext) => void | Promise<void>;
|
|
662
|
-
before_compaction: (event: PluginHookBeforeCompactionEvent, ctx: PluginHookAgentContext) => void | Promise<void>;
|
|
695
|
+
before_compaction: (event: PluginHookBeforeCompactionEvent, ctx: PluginHookAgentContext) => PluginHookBeforeCompactionResult | void | Promise<PluginHookBeforeCompactionResult | void>;
|
|
663
696
|
after_compaction: (event: PluginHookAfterCompactionEvent, ctx: PluginHookAgentContext) => void | Promise<void>;
|
|
664
697
|
session_start: (event: PluginHookSessionStartEvent, ctx: PluginHookAgentContext) => void | Promise<void>;
|
|
665
698
|
session_end: (event: PluginHookSessionEndEvent, ctx: PluginHookAgentContext) => void | Promise<void>;
|
|
666
699
|
session_reset: (event: PluginHookSessionResetEvent, ctx: PluginHookAgentContext) => void | Promise<void>;
|
|
700
|
+
dream_gate: (event: PluginHookDreamGateEvent, ctx: PluginHookAgentContext) => PluginHookDreamGateResult | void | Promise<PluginHookDreamGateResult | void>;
|
|
667
701
|
memory_changed: (event: PluginHookMemoryChangedEvent, ctx: PluginHookAgentContext) => void | Promise<void>;
|
|
668
702
|
};
|
|
669
703
|
type PluginHookRegistration<K extends PluginHookName = PluginHookName> = {
|
|
@@ -1011,6 +1045,11 @@ declare function getMemoryLines(dataDir: string, filePath: string, startLine: nu
|
|
|
1011
1045
|
* Appends content to the primary MEMORY.md file, creating it if necessary.
|
|
1012
1046
|
*/
|
|
1013
1047
|
declare function appendToMemory(dataDir: string, content: string, options?: MemoryCallOptions): Promise<void>;
|
|
1048
|
+
/**
|
|
1049
|
+
* Appends a daily or session log entry via provider.appendRecent().
|
|
1050
|
+
* Falls back to appendToMemory() when the provider does not implement appendRecent.
|
|
1051
|
+
*/
|
|
1052
|
+
declare function appendRecentToMemory(dataDir: string, content: string, scope: "daily" | "session", options?: MemoryCallOptions): Promise<void>;
|
|
1014
1053
|
declare function replaceMemoryFile(dataDir: string, filePath: string, content: string, options?: MemoryCallOptions): Promise<void>;
|
|
1015
1054
|
declare function deleteMemoryFile(dataDir: string, filePath: string, options?: MemoryCallOptions): Promise<void>;
|
|
1016
1055
|
//#endregion
|
|
@@ -1117,7 +1156,7 @@ type SkillViewResult = {
|
|
|
1117
1156
|
* Returns at most MAX_SKILLS_IN_PROMPT skills.
|
|
1118
1157
|
*/
|
|
1119
1158
|
declare function loadSkills(dataDir: string): Promise<Skill[]>;
|
|
1120
|
-
declare function loadSkillsWithPluginDirs(dataDir: string, pluginDirs: string[]): Promise<Skill[]>;
|
|
1159
|
+
declare function loadSkillsWithPluginDirs(dataDir: string, pluginDirs: string[], skillsLoadPaths?: string[]): Promise<Skill[]>;
|
|
1121
1160
|
declare function loadSkillsFromDirs(dirs: string[]): Promise<Skill[]>;
|
|
1122
1161
|
declare function findSkillByName(dirs: string[], requestedName: string): Promise<SkillDirectory | undefined>;
|
|
1123
1162
|
declare function loadSkillView(dirs: string[], requestedName: string, skillPath?: string): Promise<SkillViewResult | undefined>;
|
|
@@ -1384,16 +1423,17 @@ declare function createMemoryGetTool(dataDir: string, options?: MemoryToolOption
|
|
|
1384
1423
|
declare const memoryAppendSchema: TObject<{
|
|
1385
1424
|
content: TString;
|
|
1386
1425
|
}>;
|
|
1426
|
+
/** @deprecated Use createMemoryWriteTool with section omitted for flat append. Kept for backward compat. */
|
|
1387
1427
|
declare function createMemoryAppendTool(dataDir: string, options?: MemoryToolOptions): AgentTool<typeof memoryAppendSchema, {
|
|
1388
1428
|
appended: boolean;
|
|
1389
1429
|
}>;
|
|
1390
1430
|
declare const memoryWriteSchema: TObject<{
|
|
1391
|
-
section: TString
|
|
1431
|
+
section: TOptional<TString>;
|
|
1392
1432
|
content: TString;
|
|
1393
1433
|
mode: TUnion<[TLiteral<"append">, TLiteral<"replace">]>;
|
|
1394
1434
|
}>;
|
|
1395
1435
|
declare function createMemoryWriteTool(dataDir: string, options?: MemoryToolOptions): AgentTool<typeof memoryWriteSchema, {
|
|
1396
|
-
section
|
|
1436
|
+
section?: string;
|
|
1397
1437
|
mode: string;
|
|
1398
1438
|
}>;
|
|
1399
1439
|
declare const memoryLogSchema: TObject<{
|
|
@@ -1608,10 +1648,11 @@ type SkillLoadToolResult = {
|
|
|
1608
1648
|
type SkillUsedReporter = (event: Extract<AgentProgressEvent$2, {
|
|
1609
1649
|
type: "skill_used";
|
|
1610
1650
|
}>) => Promise<void>;
|
|
1611
|
-
declare function createSkillListTool(dataDir: string, pluginDirs: string[]): AgentTool<typeof skillListSchema, SkillListResult>;
|
|
1651
|
+
declare function createSkillListTool(dataDir: string, pluginDirs: string[], skillsLoadPaths?: string[]): AgentTool<typeof skillListSchema, SkillListResult>;
|
|
1612
1652
|
declare function createSkillLoadTool(params: {
|
|
1613
1653
|
dataDir: string;
|
|
1614
1654
|
pluginDirs: string[];
|
|
1655
|
+
skillsLoadPaths?: string[];
|
|
1615
1656
|
sessionId: string;
|
|
1616
1657
|
reportSkillUsed?: SkillUsedReporter;
|
|
1617
1658
|
}): AgentTool<typeof skillLoadSchema, SkillLoadToolResult>;
|
|
@@ -1673,11 +1714,12 @@ declare function buildSubagentAnnounceMessage(params: {
|
|
|
1673
1714
|
* @param loopDetection Tool-loop detection config inherited from the parent.
|
|
1674
1715
|
* @param spawnFn Function that actually runs a child agent (injected to avoid circular imports).
|
|
1675
1716
|
*/
|
|
1676
|
-
declare function createSubagentSpawnTool(registry: SubagentRegistry, parentSessionId: string, depth: number, dataDir: string, channel: AgentRunParams["channel"], llm: AgentRunParams["llm"], loopDetection: ToolLoopDetectionConfig | undefined, inheritedRunParams: Pick<AgentRunParams, "plugins" | "memory" | "messaging" | "historyLimit" | "onProgress" | "messageId" | "sessionStoreName">, spawnFn: (params: AgentRunParams) => Promise<AgentRunResult>): AgentTool<typeof spawnSchema, SpawnResult>;
|
|
1717
|
+
declare function createSubagentSpawnTool(registry: SubagentRegistry, parentSessionId: string, depth: number, dataDir: string, channel: AgentRunParams["channel"], llm: AgentRunParams["llm"], loopDetection: ToolLoopDetectionConfig | undefined, inheritedRunParams: Pick<AgentRunParams, "plugins" | "skillsLoadPaths" | "memory" | "messaging" | "historyLimit" | "onProgress" | "messageId" | "sessionStoreName">, spawnFn: (params: AgentRunParams) => Promise<AgentRunResult>): AgentTool<typeof spawnSchema, SpawnResult>;
|
|
1677
1718
|
//#endregion
|
|
1678
1719
|
//#region src/tools/subagents.d.ts
|
|
1679
1720
|
declare const ACTIONS: readonly ["list", "kill"];
|
|
1680
1721
|
type SubagentsAction = (typeof ACTIONS)[number];
|
|
1722
|
+
type SubagentDeliveryStatus = "running" | "pending" | "delivered";
|
|
1681
1723
|
declare const subagentsSchema: TObject<{
|
|
1682
1724
|
action: TUnion<[TLiteral<"list">, TLiteral<"kill">]>;
|
|
1683
1725
|
target: TOptional<TString>;
|
|
@@ -1690,8 +1732,11 @@ type SubagentsResult = {
|
|
|
1690
1732
|
label: string;
|
|
1691
1733
|
task: string;
|
|
1692
1734
|
status: string;
|
|
1735
|
+
deliveryStatus: SubagentDeliveryStatus;
|
|
1693
1736
|
depth: number;
|
|
1694
1737
|
runtimeMs: number;
|
|
1738
|
+
result?: string;
|
|
1739
|
+
error?: string;
|
|
1695
1740
|
}>;
|
|
1696
1741
|
killed?: number;
|
|
1697
1742
|
error?: string;
|
|
@@ -1781,10 +1826,11 @@ type SubagentToolsContext = {
|
|
|
1781
1826
|
depth: number;
|
|
1782
1827
|
channel: AgentRunParams["channel"];
|
|
1783
1828
|
llm: AgentRunParams["llm"];
|
|
1784
|
-
inheritedRunParams?: Pick<AgentRunParams, "plugins" | "memory" | "messaging" | "historyLimit" | "onProgress" | "messageId" | "sessionStoreName">;
|
|
1829
|
+
inheritedRunParams?: Pick<AgentRunParams, "plugins" | "skillsLoadPaths" | "memory" | "messaging" | "historyLimit" | "onProgress" | "messageId" | "sessionStoreName">;
|
|
1785
1830
|
loopDetection?: ToolLoopDetectionConfig;
|
|
1786
1831
|
memoryOptions?: MemoryToolOptions;
|
|
1787
1832
|
pluginSkillDirs?: string[];
|
|
1833
|
+
skillsLoadPaths?: string[];
|
|
1788
1834
|
reportSkillUsed?: (event: Extract<AgentProgressEvent$2, {
|
|
1789
1835
|
type: "skill_used";
|
|
1790
1836
|
}>) => Promise<void>;
|
|
@@ -2250,4 +2296,4 @@ declare function formatClarifyResolution(resolution: HitlResolution): string;
|
|
|
2250
2296
|
declare function formatReviewResolution(resolution: HitlResolution): string;
|
|
2251
2297
|
declare function buildResumeNarration(resolution: HitlResolution, kind: string): string;
|
|
2252
2298
|
//#endregion
|
|
2253
|
-
export { AgentBinding, AgentConfig, type AgentCustomProgressEvent, AgentModelConfig, type AgentProgressEvent, type AgentRunParams, type AgentRunResult, AgentsConfig, BOOTSTRAP_FILE_NAMES, BOOTSTRAP_MAX_CHARS, BOOTSTRAP_TOTAL_MAX_CHARS, type BootstrapContextFile, type BootstrapEnsureResult, type BootstrapFile, type BootstrapMountResult, type BootstrapMountStatus, type CallbackEventPayload, type CallbackPayload, type Channel, type ContextManager, type CronExecutionRecord, DEFAULT_SESSION_STORE_NAME, type EmbeddingProvider, type EmbeddingProviderContext, type EmbeddingProviderFactory, type EmbeddingProviderRegistration, HITL_MESSAGES, type HitlPauseContext, HitlPauseSignal, type HitlToolContext, MAX_CHILDREN_PER_SESSION, MAX_SUBAGENT_DEPTH, type MemoryCallOptions, type MemoryChangeSource, type MemoryChangedEvent, type MemoryChangedHandler, MemoryIndexManager, type MemoryProvider, type MemoryProviderContext, type MemoryProviderFactory, type MemoryProviderRegistration, type MemoryProviderStatus, type MemorySearchOptions, type MemorySearchResult, type NormalizedPluginsConfig, PLUGIN_MANIFEST_FILENAME, PLUGIN_MANIFEST_FILENAMES, type PersistedSubagentRunRecord, type PersistedToolResult, type PluginApi, type PluginCandidate, type PluginConfigUiHint, type PluginCustomProgressInput, type PluginDiagnostic, type PluginDiscoveryOptions, type PluginDiscoveryResult, type PluginEntryConfig, type PluginExecutionRuntime, type PluginHookAfterCompactionEvent, type PluginHookAfterPromptBuildEvent, type PluginHookAfterToolCallEvent, type PluginHookAgentContext, type PluginHookAgentEndEvent, type PluginHookAssistantMessageEndEvent, type PluginHookBeforeCompactionEvent, type PluginHookBeforeModelResolveEvent, type PluginHookBeforeModelResolveResult, type PluginHookBeforePromptBuildEvent, type PluginHookBeforePromptBuildResult, type PluginHookBeforeToolCallEvent, type PluginHookBeforeToolCallResult, type PluginHookHandlerMap, type PluginHookLlmInputEvent, type PluginHookLlmOutputEvent, type PluginHookMemoryChangedEvent, type PluginHookName, PluginHookRegistry, type PluginHookSessionEndEvent, type PluginHookSessionResetEvent, type PluginHookSessionStartEvent, type PluginKind, type PluginManifest, type PluginManifestLoadResult, type PluginManifestRegistry, type PluginOrigin, type PluginProgressEmitter, type PluginRecord, type PluginRegistry, type PluginRuntime, type PluginRuntimeContext, type PluginSystem, type PluginSystemOptions, type PluginToolOptions, PluginToolRegistry, type PluginUiToolDescriptor, type PluginUiToolOptions, type PluginsConfig, type PluginsConfigValidationResult, type RegisteredPluginTool, type ResumeOptions, type ResumeValidationResult, type RunResultPayload, type SessionContextStore, type SessionExport, type SessionInspection, type SessionMetadata, type SessionMetadataUpdate, type SessionSummary, type Skill, type SkillDirectory, type SkillViewResult, type SlashCommandList, type SubagentContext, SubagentRegistry, type SubagentRunRecord, type SubagentStatus, type SubagentToolsContext, type SystemPromptParams, type ToolLoopDetectionConfig, type TranscriptEntry, type UiToolInputSchema, type UiToolOptions, UiToolPauseSignal, addAgent, addBinding, aimaxDir, appendCronExecutionRecord, appendToMemory, appendTranscriptEntry, approvalSummaryFromResolution, bootstrapMountLayout, buildBootstrapContextFiles, buildResumeNarration, buildSkillsPrompt, buildSubagentAnnounceMessage, buildSystemPrompt, cleanupOldSubagentRecords, clearPendingHitl, clearPendingUiTool, collapseLogPath, contextSnapshotPath, createAgentTools, createApplyPatchTool, createBashTool, createBuiltinMemoryProvider, createContextManager, createEditFileTool, createExecTool, createImageTool, createListDirTool, createMemoryAppendTool, createMemoryForgetTool, createMemoryGetTool, createMemoryListTool, createMemoryLogTool, createMemorySearchTool, createMemoryUpdateTool, createMemoryWriteTool, createPendingHitl, createPendingUiTool, createPluginProgressEmitter, createPluginRuntime, createProcessTool, createReadFileTool, createSession, createSessionContextStore, createSkillListTool, createSkillLoadTool, createSubagentSpawnTool, createSubagentsTool, createUiTool, createWriteFileTool, cronExecutionsPath, defaultUiToolInputSchema, deleteMemoryFile, discoverAIMaxPlugins, ensureBootstrapMountLayout, ensureSession, exportSession, findSkillByName, formatApprovalResolution, formatClarifyResolution, formatReviewResolution, generateSessionTitle, getAgentConfig, getMemoryLines, hasBootstrapSentinel, hitlHistoryPath, initializePluginSystem, inspectBootstrapMountLayout, inspectSession, isBootstrapMountLayoutReady, isHitlPauseSignal, isUiToolPauseSignal, listAgents, listAvailableSlashCommands, listBindings, listMemoryFiles, listSessionSummaries, listSessions, listSubagentRunsFromDisk, loadAgentsConfig, loadBootstrapFiles, loadCronExecutionRecords, readPendingHitl as loadPendingHitl, readPendingHitl, readPendingUiTool as loadPendingUiTool, readPendingUiTool, loadPluginManifest, loadPluginManifestRegistry, loadPlugins, loadSessionContextSnapshot, loadSessionMetadata, loadSkillView, loadSkills, loadSkillsFromDirs, loadSkillsWithPluginDirs, loadSubagentRegistryFromDisk, loadTranscript, memoryDir, metadataPath, normalizeAgentId, normalizePluginsConfig, normalizeSessionStoreName, pendingHitlPath, pendingUiToolPath, primaryMemoryPath, readHitlHistory, readMemoryFile, readPrimaryMemory, registerEmbeddingProvider, registerMemoryProvider, removeAgent, removeBindings, replaceMemoryFile, resetEmbeddingProviderRegistryForTests, resetMemoryProviderRegistryForTests, resolveAgentDir, resolveAgentIdByBinding, resolveAgentsConfigPath, resolveDefaultAgentId, resolveEmbeddingProvider, resolveHitlRequest, resolveHitlRequest as resolvePendingHitl, resolveMemoryProvider, resolveModelFallbacks, resolveModelString, resolvePendingUiTool, resolvePluginManifestPath, rewriteTranscript, runAgent, saveAgentsConfig, saveSessionMetadata, saveSubagentRegistryToDisk, searchMemory, sessionDir, sessionMemoryPath, sessionsDir, skillsDir, toolResultsDir, transcriptPath, transitionHitlStatus, updateAgentIdentity, updateSessionMetadata, validatePluginsConfig, validateResume, wrapToolsWithHooks };
|
|
2299
|
+
export { AgentBinding, AgentConfig, type AgentCustomProgressEvent, AgentModelConfig, type AgentProgressEvent, type AgentRunParams, type AgentRunResult, AgentsConfig, BOOTSTRAP_FILE_NAMES, BOOTSTRAP_MAX_CHARS, BOOTSTRAP_TOTAL_MAX_CHARS, type BootstrapContextFile, type BootstrapEnsureResult, type BootstrapFile, type BootstrapMountResult, type BootstrapMountStatus, type CallbackEventPayload, type CallbackPayload, type Channel, type ContextManager, type CronExecutionRecord, DEFAULT_SESSION_STORE_NAME, type EmbeddingProvider, type EmbeddingProviderContext, type EmbeddingProviderFactory, type EmbeddingProviderRegistration, HITL_MESSAGES, type HitlPauseContext, HitlPauseSignal, type HitlToolContext, MAX_CHILDREN_PER_SESSION, MAX_SUBAGENT_DEPTH, type MemoryCallOptions, type MemoryChangeSource, type MemoryChangedEvent, type MemoryChangedHandler, MemoryIndexManager, type MemoryProvider, type MemoryProviderContext, type MemoryProviderFactory, type MemoryProviderRegistration, type MemoryProviderStatus, type MemorySearchOptions, type MemorySearchResult, type NormalizedPluginsConfig, PLUGIN_MANIFEST_FILENAME, PLUGIN_MANIFEST_FILENAMES, type PersistedSubagentRunRecord, type PersistedToolResult, type PluginApi, type PluginCandidate, type PluginConfigUiHint, type PluginCustomProgressInput, type PluginDiagnostic, type PluginDiscoveryOptions, type PluginDiscoveryResult, type PluginEntryConfig, type PluginExecutionRuntime, type PluginHookAfterCompactionEvent, type PluginHookAfterPromptBuildEvent, type PluginHookAfterToolCallEvent, type PluginHookAgentContext, type PluginHookAgentEndEvent, type PluginHookAssistantMessageEndEvent, type PluginHookBeforeCompactionEvent, type PluginHookBeforeCompactionResult, type PluginHookBeforeModelResolveEvent, type PluginHookBeforeModelResolveResult, type PluginHookBeforePromptBuildEvent, type PluginHookBeforePromptBuildResult, type PluginHookBeforeToolCallEvent, type PluginHookBeforeToolCallResult, type PluginHookDreamGateEvent, type PluginHookDreamGateResult, type PluginHookHandlerMap, type PluginHookLlmInputEvent, type PluginHookLlmOutputEvent, type PluginHookMemoryChangedEvent, type PluginHookName, PluginHookRegistry, type PluginHookSessionEndEvent, type PluginHookSessionResetEvent, type PluginHookSessionStartEvent, type PluginKind, type PluginManifest, type PluginManifestLoadResult, type PluginManifestRegistry, type PluginOrigin, type PluginProgressEmitter, type PluginRecord, type PluginRegistry, type PluginRuntime, type PluginRuntimeContext, type PluginSystem, type PluginSystemOptions, type PluginToolOptions, PluginToolRegistry, type PluginUiToolDescriptor, type PluginUiToolOptions, type PluginsConfig, type PluginsConfigValidationResult, type RegisteredPluginTool, type ResumeOptions, type ResumeValidationResult, type RunResultPayload, type SessionContextStore, type SessionExport, type SessionInspection, type SessionMetadata, type SessionMetadataUpdate, type SessionSummary, type Skill, type SkillDirectory, type SkillViewResult, type SlashCommandList, type SubagentContext, SubagentRegistry, type SubagentRunRecord, type SubagentStatus, type SubagentToolsContext, type SystemPromptParams, type ToolLoopDetectionConfig, type TranscriptEntry, type UiToolInputSchema, type UiToolOptions, UiToolPauseSignal, addAgent, addBinding, aimaxDir, appendCronExecutionRecord, appendRecentToMemory, appendToMemory, appendTranscriptEntry, approvalSummaryFromResolution, bootstrapMountLayout, buildBootstrapContextFiles, buildResumeNarration, buildSkillsPrompt, buildSubagentAnnounceMessage, buildSystemPrompt, cleanupOldSubagentRecords, clearPendingHitl, clearPendingUiTool, collapseLogPath, contextSnapshotPath, createAgentTools, createApplyPatchTool, createBashTool, createBuiltinMemoryProvider, createContextManager, createEditFileTool, createExecTool, createImageTool, createListDirTool, createMemoryAppendTool, createMemoryForgetTool, createMemoryGetTool, createMemoryListTool, createMemoryLogTool, createMemorySearchTool, createMemoryUpdateTool, createMemoryWriteTool, createPendingHitl, createPendingUiTool, createPluginProgressEmitter, createPluginRuntime, createProcessTool, createReadFileTool, createSession, createSessionContextStore, createSkillListTool, createSkillLoadTool, createSubagentSpawnTool, createSubagentsTool, createUiTool, createWriteFileTool, cronExecutionsPath, defaultUiToolInputSchema, deleteMemoryFile, discoverAIMaxPlugins, ensureBootstrapMountLayout, ensureSession, exportSession, findSkillByName, formatApprovalResolution, formatClarifyResolution, formatReviewResolution, generateSessionTitle, getAgentConfig, getMemoryLines, hasBootstrapSentinel, hitlHistoryPath, initializePluginSystem, inspectBootstrapMountLayout, inspectSession, isBootstrapMountLayoutReady, isHitlPauseSignal, isUiToolPauseSignal, listAgents, listAvailableSlashCommands, listBindings, listMemoryFiles, listSessionSummaries, listSessions, listSubagentRunsFromDisk, loadAgentsConfig, loadBootstrapFiles, loadCronExecutionRecords, readPendingHitl as loadPendingHitl, readPendingHitl, readPendingUiTool as loadPendingUiTool, readPendingUiTool, loadPluginManifest, loadPluginManifestRegistry, loadPlugins, loadSessionContextSnapshot, loadSessionMetadata, loadSkillView, loadSkills, loadSkillsFromDirs, loadSkillsWithPluginDirs, loadSubagentRegistryFromDisk, loadTranscript, memoryDir, metadataPath, normalizeAgentId, normalizePluginsConfig, normalizeSessionStoreName, pendingHitlPath, pendingUiToolPath, primaryMemoryPath, readHitlHistory, readMemoryFile, readPrimaryMemory, registerEmbeddingProvider, registerMemoryProvider, removeAgent, removeBindings, replaceMemoryFile, resetEmbeddingProviderRegistryForTests, resetMemoryProviderRegistryForTests, resolveAgentDir, resolveAgentIdByBinding, resolveAgentsConfigPath, resolveDefaultAgentId, resolveEmbeddingProvider, resolveHitlRequest, resolveHitlRequest as resolvePendingHitl, resolveMemoryProvider, resolveModelFallbacks, resolveModelString, resolvePendingUiTool, resolvePluginManifestPath, rewriteTranscript, runAgent, saveAgentsConfig, saveSessionMetadata, saveSubagentRegistryToDisk, searchMemory, sessionDir, sessionMemoryPath, sessionsDir, skillsDir, toolResultsDir, transcriptPath, transitionHitlStatus, updateAgentIdentity, updateSessionMetadata, validatePluginsConfig, validateResume, wrapToolsWithHooks };
|