@gencode/agents 0.0.39 → 0.0.41
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/index.d.ts +177 -8
- package/dist/index.js +61 -61
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { S as AgentsConfig, _ as saveAgentsConfig, a as listAgents, b as AgentCo
|
|
|
2
2
|
import { AssistantMessage, Message } from "@mariozechner/pi-ai";
|
|
3
3
|
import { AgentMessage, AgentTool } from "@mariozechner/pi-agent-core";
|
|
4
4
|
import * as _gencode_shared0 from "@gencode/shared";
|
|
5
|
-
import { AgentCustomProgressEvent, AgentProgressEvent, AgentProgressEvent as AgentProgressEvent$1, CallbackEventPayload, CallbackEventPayload as CallbackEventPayload$1, Channel, Channel as Channel$1, CollapseSpan, HitlCheckpoint, HitlCheckpoint as HitlCheckpoint$1, HitlHistoryEntry, HitlRequest, HitlRequest as HitlRequest$1, HitlResolution, HitlResolution as HitlResolution$1, HitlStatus, HitlToolContext, HitlToolContext as HitlToolContext$1, PausedRunState, PausedRunState as PausedRunState$1, ReadStateRecord, RunResultPayload, RunResultPayload as RunResultPayload$1, SessionContextSnapshot, SessionMemorySnapshot, SnipRecord, ToolResultReference } from "@gencode/shared";
|
|
5
|
+
import { AgentCustomProgressEvent, AgentProgressEvent, AgentProgressEvent as AgentProgressEvent$1, CallbackEventPayload, CallbackEventPayload as CallbackEventPayload$1, Channel, Channel as Channel$1, CollapseSpan, HitlCheckpoint, HitlCheckpoint as HitlCheckpoint$1, HitlHistoryEntry, HitlRequest, HitlRequest as HitlRequest$1, HitlResolution, HitlResolution as HitlResolution$1, HitlStatus, HitlToolContext, HitlToolContext as HitlToolContext$1, PausedRunState, PausedRunState as PausedRunState$1, ReadStateRecord, RunResultPayload, RunResultPayload as RunResultPayload$1, SessionContextSnapshot, SessionMemorySnapshot, SnipRecord, ToolResultReference, UiToolPausedState, UiToolRequest, UiToolResult, UiToolSchema, UiToolUiExtension, UiToolValidationResult } from "@gencode/shared";
|
|
6
6
|
|
|
7
7
|
//#region src/loop-detection/tool-loop-detection.d.ts
|
|
8
8
|
type ToolLoopDetectionConfig = {
|
|
@@ -151,7 +151,8 @@ type AgentRunParamsBase = {
|
|
|
151
151
|
resolution: HitlResolution;
|
|
152
152
|
checkpoint: HitlCheckpoint;
|
|
153
153
|
toolContext?: HitlToolContext$1;
|
|
154
|
-
}; /**
|
|
154
|
+
}; /** UI tool resume state injected when the user submits a UI tool form. */
|
|
155
|
+
uiToolResume?: UiToolResult; /** Tool-loop detection guardrails (disabled by default) */
|
|
155
156
|
loopDetection?: ToolLoopDetectionConfig; /** Plugin system options (optional) */
|
|
156
157
|
plugins?: {
|
|
157
158
|
/** Plugin config structure (allow/deny/entries/slots/load.paths) */config?: PluginsConfig; /** Data dir used to resolve .aimax extensions */
|
|
@@ -198,6 +199,13 @@ type AgentRunResult = RunResultPayload$1 & {
|
|
|
198
199
|
requestId: string;
|
|
199
200
|
kind: _gencode_shared0.HitlKind;
|
|
200
201
|
title: string;
|
|
202
|
+
}; /** Present when the run was paused for a UI tool awaiting user input. */
|
|
203
|
+
uiToolPending?: {
|
|
204
|
+
requestId: string;
|
|
205
|
+
toolName: string;
|
|
206
|
+
toolCallId: string;
|
|
207
|
+
schema: _gencode_shared0.UiToolSchema;
|
|
208
|
+
uiExtension?: _gencode_shared0.UiToolUiExtension;
|
|
201
209
|
};
|
|
202
210
|
};
|
|
203
211
|
/** HTTP callback body formats */
|
|
@@ -1638,9 +1646,11 @@ type ClarifyResult = {
|
|
|
1638
1646
|
* Creates the `clarify` tool that the agent can call to ask the user a question.
|
|
1639
1647
|
*
|
|
1640
1648
|
* @param sessionId - Current session ID for the HITL request.
|
|
1641
|
-
* @param
|
|
1649
|
+
* @param hitlResume - When present, contains the user's resolution for a
|
|
1650
|
+
* previously paused clarify request. The tool returns the
|
|
1651
|
+
* user's answer instead of throwing again.
|
|
1642
1652
|
*/
|
|
1643
|
-
declare function createClarifyTool(sessionId: string): AgentTool<typeof clarifySchema, ClarifyResult>;
|
|
1653
|
+
declare function createClarifyTool(sessionId: string, hitlResume?: AgentRunParams["hitlResume"]): AgentTool<typeof clarifySchema, ClarifyResult>;
|
|
1644
1654
|
//#endregion
|
|
1645
1655
|
//#region src/tools/request-approval.d.ts
|
|
1646
1656
|
declare const approvalSchema: TObject<{
|
|
@@ -1674,9 +1684,75 @@ type ReviewResult = {
|
|
|
1674
1684
|
* Creates the `request_review` tool.
|
|
1675
1685
|
*
|
|
1676
1686
|
* @param sessionId - Current session ID.
|
|
1677
|
-
* @param
|
|
1687
|
+
* @param hitlResume - When present, contains the user's resolution for a
|
|
1688
|
+
* previously paused review request. The tool returns the
|
|
1689
|
+
* reviewer's verdict instead of throwing again.
|
|
1690
|
+
*/
|
|
1691
|
+
declare function createRequestReviewTool(sessionId: string, hitlResume?: AgentRunParams["hitlResume"]): AgentTool<typeof reviewSchema, ReviewResult>;
|
|
1692
|
+
//#endregion
|
|
1693
|
+
//#region src/tools/ui-tool.d.ts
|
|
1694
|
+
type UiToolOptions = {
|
|
1695
|
+
/** Unique tool name (must be valid identifier, e.g. "collect_feedback"). */name: string; /** Human-readable label shown in tool listings. */
|
|
1696
|
+
label: string; /** Description used in the LLM system prompt. */
|
|
1697
|
+
description: string; /** Current session ID. */
|
|
1698
|
+
sessionId: string; /** The UI form schema that the front-end should render. */
|
|
1699
|
+
schema: UiToolSchema; /** Optional JSON-safe payload for highly custom front-end rendering. */
|
|
1700
|
+
uiExtension?: UiToolUiExtension;
|
|
1701
|
+
/**
|
|
1702
|
+
* Optional custom validator. Called after built-in schema validation passes.
|
|
1703
|
+
* Return `{ valid: true }` to accept, or `{ valid: false, errors: [...] }`
|
|
1704
|
+
* to reject.
|
|
1705
|
+
*/
|
|
1706
|
+
validate?: (values: Record<string, unknown>) => UiToolValidationResult | Promise<UiToolValidationResult>;
|
|
1707
|
+
/**
|
|
1708
|
+
* Optional resume state. When the CLI re-invokes the agent with a
|
|
1709
|
+
* `uiToolResume`, this field is populated so the tool can return the
|
|
1710
|
+
* user's values instead of throwing a pause signal.
|
|
1711
|
+
*/
|
|
1712
|
+
resume?: UiToolResult;
|
|
1713
|
+
};
|
|
1714
|
+
/**
|
|
1715
|
+
* The LLM sees a thin schema: `reason` explains why input is needed.
|
|
1716
|
+
* The actual form fields are defined in UiToolSchema and are NOT exposed
|
|
1717
|
+
* to the LLM — they are only used by the front-end renderer.
|
|
1718
|
+
*/
|
|
1719
|
+
declare const uiToolLlmSchema: TObject<{
|
|
1720
|
+
reason: TString;
|
|
1721
|
+
}>;
|
|
1722
|
+
/**
|
|
1723
|
+
* Creates a UI tool that pauses the agent for front-end input collection.
|
|
1724
|
+
*/
|
|
1725
|
+
declare function createUiTool(options: UiToolOptions): AgentTool<typeof uiToolLlmSchema>;
|
|
1726
|
+
//#endregion
|
|
1727
|
+
//#region src/tools/ui-tool-signal.d.ts
|
|
1728
|
+
declare class UiToolPauseSignal extends Error {
|
|
1729
|
+
/** The original tool arguments from the LLM. */
|
|
1730
|
+
readonly toolArgs: Record<string, unknown>;
|
|
1731
|
+
/** Discriminator to reliably identify the signal in catch blocks. */
|
|
1732
|
+
readonly isUiToolPause: true;
|
|
1733
|
+
/** The fully formed request to emit through events. */
|
|
1734
|
+
readonly request: UiToolRequest;
|
|
1735
|
+
constructor(/** Unique request identifier. */
|
|
1736
|
+
|
|
1737
|
+
requestId: string, /** Session identifier. */
|
|
1738
|
+
|
|
1739
|
+
sessionId: string, /** The tool name that produced this signal. */
|
|
1740
|
+
|
|
1741
|
+
toolName: string, /** The LLM-generated tool call ID. */
|
|
1742
|
+
|
|
1743
|
+
toolCallId: string, /** The UI form schema. */
|
|
1744
|
+
|
|
1745
|
+
schema: UiToolSchema, /** Optional custom front-end rendering payload. */
|
|
1746
|
+
|
|
1747
|
+
uiExtension: UiToolUiExtension | undefined, /** The original tool arguments from the LLM. */
|
|
1748
|
+
|
|
1749
|
+
toolArgs: Record<string, unknown>);
|
|
1750
|
+
}
|
|
1751
|
+
/**
|
|
1752
|
+
* Type-guard that checks if an unknown error is a UiToolPauseSignal.
|
|
1753
|
+
* Handles both `instanceof` and duck-typing for cross-module boundaries.
|
|
1678
1754
|
*/
|
|
1679
|
-
declare function
|
|
1755
|
+
declare function isUiToolPauseSignal(error: unknown): error is UiToolPauseSignal;
|
|
1680
1756
|
//#endregion
|
|
1681
1757
|
//#region src/tools/index.d.ts
|
|
1682
1758
|
/** Optional context for enabling subagent tools */
|
|
@@ -1703,6 +1779,13 @@ type SubagentToolsContext = {
|
|
|
1703
1779
|
*/
|
|
1704
1780
|
declare function createAgentTools(dataDir: string, ctx?: SubagentToolsContext): AgentTool[];
|
|
1705
1781
|
//#endregion
|
|
1782
|
+
//#region src/tools/ui-tool-session-store.d.ts
|
|
1783
|
+
declare function pendingUiToolPath(dataDir: string, sessionId: string, options?: SessionPathOptions): string;
|
|
1784
|
+
declare function readPendingUiTool(dataDir: string, sessionId: string, options?: SessionPathOptions): Promise<UiToolPausedState | null>;
|
|
1785
|
+
declare function createPendingUiTool(dataDir: string, sessionId: string, request: UiToolRequest, options?: SessionPathOptions): Promise<UiToolPausedState>;
|
|
1786
|
+
declare function resolvePendingUiTool(dataDir: string, sessionId: string, requestId: string, result: UiToolResult, options?: SessionPathOptions): Promise<UiToolPausedState | null>;
|
|
1787
|
+
declare function clearPendingUiTool(dataDir: string, sessionId: string, options?: SessionPathOptions): Promise<void>;
|
|
1788
|
+
//#endregion
|
|
1706
1789
|
//#region src/subagent/registry-persist.d.ts
|
|
1707
1790
|
/** Persistable subagent run record (without AbortController) */
|
|
1708
1791
|
type PersistedSubagentRunRecord = Omit<SubagentRunRecord, "abortController"> & {
|
|
@@ -1758,12 +1841,52 @@ type RegisteredPluginTool = {
|
|
|
1758
1841
|
optional: boolean;
|
|
1759
1842
|
names: string[];
|
|
1760
1843
|
};
|
|
1844
|
+
/**
|
|
1845
|
+
* Simplified descriptor for registering a UI tool from a plugin.
|
|
1846
|
+
*
|
|
1847
|
+
* Plugin authors only need to provide the form schema and basic metadata.
|
|
1848
|
+
* The framework handles session binding, pause/resume control flow, and
|
|
1849
|
+
* result validation automatically.
|
|
1850
|
+
*/
|
|
1851
|
+
type PluginUiToolDescriptor = {
|
|
1852
|
+
/** Unique tool name (must be a valid identifier, e.g. "collect_feedback"). */name: string; /** Human-readable label shown in tool listings. */
|
|
1853
|
+
label: string; /** Description used in the LLM system prompt. */
|
|
1854
|
+
description: string; /** The UI form schema that the front-end should render. */
|
|
1855
|
+
schema: UiToolSchema; /** Optional JSON-safe payload for highly custom front-end rendering. */
|
|
1856
|
+
uiExtension?: UiToolUiExtension;
|
|
1857
|
+
/**
|
|
1858
|
+
* Optional custom validator. Called after built-in schema validation passes.
|
|
1859
|
+
* Return `{ valid: true }` to accept, or `{ valid: false, errors: [...] }`
|
|
1860
|
+
* to reject.
|
|
1861
|
+
*/
|
|
1862
|
+
validate?: (values: Record<string, unknown>) => UiToolValidationResult | Promise<UiToolValidationResult>;
|
|
1863
|
+
};
|
|
1864
|
+
type PluginUiToolOptions = {
|
|
1865
|
+
optional?: boolean;
|
|
1866
|
+
};
|
|
1867
|
+
type RegisteredPluginUiTool = {
|
|
1868
|
+
pluginId: string;
|
|
1869
|
+
descriptor: PluginUiToolDescriptor;
|
|
1870
|
+
optional: boolean;
|
|
1871
|
+
};
|
|
1761
1872
|
declare class PluginToolRegistry {
|
|
1762
1873
|
private readonly tools;
|
|
1874
|
+
private readonly uiTools;
|
|
1763
1875
|
register(pluginId: string, tool: AgentTool, opts?: PluginToolOptions): void;
|
|
1876
|
+
/**
|
|
1877
|
+
* Register a UI tool descriptor. The actual `AgentTool` is created lazily
|
|
1878
|
+
* at runtime via {@link resolveUiTools} once the session context is known.
|
|
1879
|
+
*/
|
|
1880
|
+
registerUiTool(pluginId: string, descriptor: PluginUiToolDescriptor, opts?: PluginUiToolOptions): void;
|
|
1764
1881
|
list(): RegisteredPluginTool[];
|
|
1882
|
+
listUiTools(): RegisteredPluginUiTool[];
|
|
1765
1883
|
namesForPlugin(pluginId: string): string[];
|
|
1766
1884
|
resolveEnabled(allowlist?: string[]): AgentTool[];
|
|
1885
|
+
/**
|
|
1886
|
+
* Materialise registered UI tool descriptors into real `AgentTool` instances
|
|
1887
|
+
* by binding session-level context that is unavailable at plugin load time.
|
|
1888
|
+
*/
|
|
1889
|
+
resolveUiTools(sessionId: string, resume?: UiToolResult, allowlist?: string[]): AgentTool[];
|
|
1767
1890
|
}
|
|
1768
1891
|
//#endregion
|
|
1769
1892
|
//#region src/plugins/runtime.d.ts
|
|
@@ -1866,6 +1989,15 @@ type PluginApi = {
|
|
|
1866
1989
|
chat: (params: LlmChatParams) => Promise<LlmChatResult>;
|
|
1867
1990
|
};
|
|
1868
1991
|
registerTool: (tool: Parameters<PluginToolRegistry["register"]>[1], opts?: Parameters<PluginToolRegistry["register"]>[2]) => void;
|
|
1992
|
+
/**
|
|
1993
|
+
* Register a UI tool that pauses the agent and collects structured user
|
|
1994
|
+
* input through a front-end form.
|
|
1995
|
+
*
|
|
1996
|
+
* Unlike `registerTool`, the plugin only provides the form schema and
|
|
1997
|
+
* metadata — session binding, pause/resume control flow, and result
|
|
1998
|
+
* validation are handled automatically by the framework.
|
|
1999
|
+
*/
|
|
2000
|
+
registerUiTool: (descriptor: PluginUiToolDescriptor, opts?: PluginUiToolOptions) => void;
|
|
1869
2001
|
registerEmbeddingProvider: (params: {
|
|
1870
2002
|
id?: string;
|
|
1871
2003
|
create: EmbeddingProviderFactory;
|
|
@@ -1939,6 +2071,18 @@ declare class HitlPauseSignal extends Error {
|
|
|
1939
2071
|
readonly checkpoint: HitlCheckpoint$1;
|
|
1940
2072
|
/** Optional tool call context. */
|
|
1941
2073
|
readonly toolContext?: HitlToolContext;
|
|
2074
|
+
/**
|
|
2075
|
+
* When `true`, this pause is a transparent safety gate (e.g. exec approval
|
|
2076
|
+
* for `rm -rf`). Transparent pauses do NOT leave entries in the transcript
|
|
2077
|
+
* — the tool's real result is recorded only after the user approves and
|
|
2078
|
+
* the tool re-executes.
|
|
2079
|
+
*
|
|
2080
|
+
* When `false` (default), the pause IS the interaction record (e.g.
|
|
2081
|
+
* clarify, request_approval, request_review, and plugin-provided HITL
|
|
2082
|
+
* tools). Plugin tools should leave this as `false` so their tool-call /
|
|
2083
|
+
* tool-result pairs are persisted normally in the transcript.
|
|
2084
|
+
*/
|
|
2085
|
+
readonly transparentPause: boolean;
|
|
1942
2086
|
/** Discriminator to reliably identify the signal in catch blocks. */
|
|
1943
2087
|
readonly isHitlPause: true;
|
|
1944
2088
|
constructor(/** The HITL request to present to the user. */
|
|
@@ -1947,7 +2091,20 @@ declare class HitlPauseSignal extends Error {
|
|
|
1947
2091
|
|
|
1948
2092
|
checkpoint: HitlCheckpoint$1, /** Optional tool call context. */
|
|
1949
2093
|
|
|
1950
|
-
toolContext?: HitlToolContext
|
|
2094
|
+
toolContext?: HitlToolContext,
|
|
2095
|
+
/**
|
|
2096
|
+
* When `true`, this pause is a transparent safety gate (e.g. exec approval
|
|
2097
|
+
* for `rm -rf`). Transparent pauses do NOT leave entries in the transcript
|
|
2098
|
+
* — the tool's real result is recorded only after the user approves and
|
|
2099
|
+
* the tool re-executes.
|
|
2100
|
+
*
|
|
2101
|
+
* When `false` (default), the pause IS the interaction record (e.g.
|
|
2102
|
+
* clarify, request_approval, request_review, and plugin-provided HITL
|
|
2103
|
+
* tools). Plugin tools should leave this as `false` so their tool-call /
|
|
2104
|
+
* tool-result pairs are persisted normally in the transcript.
|
|
2105
|
+
*/
|
|
2106
|
+
|
|
2107
|
+
transparentPause?: boolean);
|
|
1951
2108
|
}
|
|
1952
2109
|
/**
|
|
1953
2110
|
* Type-guard that checks if an unknown error is a HitlPauseSignal.
|
|
@@ -2051,6 +2208,18 @@ declare const HITL_MESSAGES: {
|
|
|
2051
2208
|
};
|
|
2052
2209
|
};
|
|
2053
2210
|
declare function approvalSummaryFromResolution(resolution: HitlResolution): string;
|
|
2211
|
+
/**
|
|
2212
|
+
* Formats a clarify resolution into a JSON string suitable for the tool
|
|
2213
|
+
* result content in the transcript. The model sees this as the clarify
|
|
2214
|
+
* tool's return value — i.e. the user's answer.
|
|
2215
|
+
*/
|
|
2216
|
+
declare function formatClarifyResolution(resolution: HitlResolution): string;
|
|
2217
|
+
/**
|
|
2218
|
+
* Formats a review resolution into a JSON string suitable for the tool
|
|
2219
|
+
* result content in the transcript. The model sees this as the
|
|
2220
|
+
* request_review tool's return value — i.e. the reviewer's verdict.
|
|
2221
|
+
*/
|
|
2222
|
+
declare function formatReviewResolution(resolution: HitlResolution): string;
|
|
2054
2223
|
declare function buildResumeNarration(resolution: HitlResolution, kind: string): string;
|
|
2055
2224
|
//#endregion
|
|
2056
|
-
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, 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 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 SlashCommandList, type SubagentContext, SubagentRegistry, type SubagentRunRecord, type SubagentStatus, type SubagentToolsContext, type SystemPromptParams, type ToolLoopDetectionConfig, type TranscriptEntry, addAgent, addBinding, aimaxDir, appendToMemory, appendTranscriptEntry, approvalSummaryFromResolution, bootstrapMountLayout, buildBootstrapContextFiles, buildResumeNarration, buildSkillsPrompt, buildSubagentAnnounceMessage, buildSystemPrompt, cleanupOldSubagentRecords, clearPendingHitl, collapseLogPath, contextSnapshotPath, createAgentTools, createApplyPatchTool, createBashTool, createBuiltinMemoryProvider, createClarifyTool, createContextManager, createEditFileTool, createExecTool, createImageTool, createListDirTool, createMemoryAppendTool, createMemoryGetTool, createMemorySearchTool, createPendingHitl, createPluginProgressEmitter, createPluginRuntime, createProcessTool, createReadFileTool, createRequestApprovalTool, createRequestReviewTool, createSession, createSessionContextStore, createSessionsSpawnTool, createSubagentsTool, createWriteFileTool, deleteMemoryFile, discoverAIMaxPlugins, ensureBootstrapMountLayout, ensureSession, exportSession, formatApprovalResolution, generateSessionTitle, getAgentConfig, getMemoryLines, hasBootstrapSentinel, hitlHistoryPath, initializePluginSystem, inspectBootstrapMountLayout, inspectSession, isBootstrapMountLayoutReady, isHitlPauseSignal, listAgents, listAvailableSlashCommands, listBindings, listMemoryFiles, listSessionSummaries, listSessions, listSubagentRunsFromDisk, loadAgentsConfig, loadBootstrapFiles, readPendingHitl as loadPendingHitl, readPendingHitl, loadPluginManifest, loadPluginManifestRegistry, loadPlugins, loadSessionContextSnapshot, loadSessionMetadata, loadSkills, loadSkillsFromDirs, loadSkillsWithPluginDirs, loadSubagentRegistryFromDisk, loadTranscript, memoryDir, metadataPath, normalizeAgentId, normalizePluginsConfig, normalizeSessionStoreName, pendingHitlPath, primaryMemoryPath, readHitlHistory, readMemoryFile, readPrimaryMemory, registerEmbeddingProvider, registerMemoryProvider, removeAgent, removeBindings, replaceMemoryFile, resetEmbeddingProviderRegistryForTests, resetMemoryProviderRegistryForTests, resolveAgentDir, resolveAgentIdByBinding, resolveAgentsConfigPath, resolveDefaultAgentId, resolveEmbeddingProvider, resolveHitlRequest, resolveHitlRequest as resolvePendingHitl, resolveMemoryProvider, resolveModelFallbacks, resolveModelString, resolvePluginManifestPath, rewriteTranscript, runAgent, saveAgentsConfig, saveSessionMetadata, saveSubagentRegistryToDisk, searchMemory, sessionDir, sessionMemoryPath, sessionsDir, skillsDir, toolResultsDir, transcriptPath, transitionHitlStatus, updateAgentIdentity, updateSessionMetadata, validatePluginsConfig, validateResume, wrapToolsWithHooks };
|
|
2225
|
+
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, 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 SlashCommandList, type SubagentContext, SubagentRegistry, type SubagentRunRecord, type SubagentStatus, type SubagentToolsContext, type SystemPromptParams, type ToolLoopDetectionConfig, type TranscriptEntry, type UiToolOptions, UiToolPauseSignal, addAgent, addBinding, aimaxDir, appendToMemory, appendTranscriptEntry, approvalSummaryFromResolution, bootstrapMountLayout, buildBootstrapContextFiles, buildResumeNarration, buildSkillsPrompt, buildSubagentAnnounceMessage, buildSystemPrompt, cleanupOldSubagentRecords, clearPendingHitl, clearPendingUiTool, collapseLogPath, contextSnapshotPath, createAgentTools, createApplyPatchTool, createBashTool, createBuiltinMemoryProvider, createClarifyTool, createContextManager, createEditFileTool, createExecTool, createImageTool, createListDirTool, createMemoryAppendTool, createMemoryGetTool, createMemorySearchTool, createPendingHitl, createPendingUiTool, createPluginProgressEmitter, createPluginRuntime, createProcessTool, createReadFileTool, createRequestApprovalTool, createRequestReviewTool, createSession, createSessionContextStore, createSessionsSpawnTool, createSubagentsTool, createUiTool, createWriteFileTool, deleteMemoryFile, discoverAIMaxPlugins, ensureBootstrapMountLayout, ensureSession, exportSession, formatApprovalResolution, formatClarifyResolution, formatReviewResolution, generateSessionTitle, getAgentConfig, getMemoryLines, hasBootstrapSentinel, hitlHistoryPath, initializePluginSystem, inspectBootstrapMountLayout, inspectSession, isBootstrapMountLayoutReady, isHitlPauseSignal, isUiToolPauseSignal, listAgents, listAvailableSlashCommands, listBindings, listMemoryFiles, listSessionSummaries, listSessions, listSubagentRunsFromDisk, loadAgentsConfig, loadBootstrapFiles, readPendingHitl as loadPendingHitl, readPendingHitl, readPendingUiTool as loadPendingUiTool, readPendingUiTool, loadPluginManifest, loadPluginManifestRegistry, loadPlugins, loadSessionContextSnapshot, loadSessionMetadata, 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 };
|