@gencode/agents 0.13.0 → 0.14.0
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 +6 -0
- package/dist/config/index.d.ts +1 -1
- package/dist/config/index.js +1 -1
- package/dist/{default-provider-QJ5I3qOU.js → default-provider-DchVtHkL.js} +21 -21
- package/dist/{goal-events-vnNkQVzi.js → goal-events-BtFriEK5.js} +1 -1
- package/dist/{goal-store-Clnnb4f2.js → goal-store-CmMXXTIZ.js} +1 -1
- package/dist/{host-CFCi5RZa.js → host-BC9sAhdH.js} +3 -3
- package/dist/index.d.ts +4 -228
- package/dist/index.js +114 -117
- package/dist/loader-CkdBGDtW.js +1 -0
- package/dist/pi-extensions/index.d.ts +1 -1
- package/dist/pi-extensions/index.js +1 -1
- package/dist/provider-registry-DPbmbWqS.js +1 -0
- package/dist/{session-DIkujhuw.js → session-CvZsdTZJ.js} +2 -2
- package/dist/{session-store-D8wJoo7a.js → session-store-BaH2Dvmo.js} +1 -1
- package/dist/system-runtime-DBPs25Bs.d.ts +239 -0
- package/dist/system-runtime-DfAhRq2L.js +4 -0
- package/dist/system-runtime.d.ts +2 -0
- package/dist/system-runtime.js +1 -0
- package/package.json +5 -1
- /package/dist/{config-DYv0xUdi.js → config-DDlWxQf7.js} +0 -0
- /package/dist/{index-DGdf27gv.d.ts → index-BNCxlrCH.d.ts} +0 -0
- /package/dist/{kc-DVYWmNeY.js → kc-Omw-bmtO.js} +0 -0
- /package/dist/{loader-DWYoarsH.d.ts → loader-DSY3mHib.d.ts} +0 -0
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { C as AgentsConfig, S as AgentModelConfig, _ as saveAgentsConfig, a as listAgents, b as AgentBinding, c as normalizeAgentId, d as resolveAgentDir, f as resolveAgentIdByBinding, g as resolveModelString, h as resolveModelFallbacks, i as getAgentConfig, l as removeAgent, m as resolveDefaultAgentId, n as addBinding, o as listBindings, p as resolveAgentsConfigPath, s as loadAgentsConfig, t as addAgent, u as removeBindings, v as updateAgent, x as AgentConfig, y as updateAgentIdentity } from "./index-
|
|
2
|
-
import { $ as loadSkills, $n as MemoryChangeSource, $t as PluginManifestRegistry, A as AgentRuntimePolicyInput, An as PluginHookContextEvent, At as loadArtifactOperations, B as filterToolsForAgent, Bn as PluginHookName, Bt as sessionDir, C as TranscriptEntry, Cn as PluginHookBeforeModelResolveResult, Ct as createSession, D as AgentDefinitionsStats, Dn as PluginHookBeforeProviderRequestResult, Dt as inspectSession, E as AgentDefinitionsContext, En as PluginHookBeforeProviderRequestEvent, Et as exportSession, F as agentVisibility, Fn as PluginHookInputEvent, Ft as loadTranscript, G as resolveAgentDefinitionsContext, Gn as PluginHookSessionEndEvent, Gt as transcriptPath, H as loadAgentDefinitionsFromDir, Hn as PluginHookRegistry, Ht as sessionsDir, I as buildAgentDelegationPrompt, In as PluginHookInputResult, It as metadataPath, J as SkillDirectory, Jn as PluginHookToolResultEvent, Jt as PluginEntryConfig, K as scanAgentDefinitions, Kn as PluginHookSessionResetEvent, Kt as updateSessionMetadata, L as buildAgentTaskPrompt, Ln as PluginHookLlmInputEvent, Lt as normalizeSessionStoreName, M as AgentVisibility, Mn as PluginHookDreamGateEvent, Mt as loadSessionContextSnapshot, N as SYSTEM_AGENTS_DIR, Nn as PluginHookDreamGateResult, Nt as loadSessionMetadata, O as AgentDirectoryCandidate, On as PluginHookBeforeToolCallEvent, Ot as listSessionSummaries, P as agentDirCandidates, Pn as PluginHookHandlerMap, Pt as loadSystemPromptSnapshot, Q as loadSkillView, Qn as ReadonlyTranscriptSessionAdapter, Qt as validatePluginsConfig, R as createAgentDefinitionsContext, Rn as PluginHookLlmOutputEvent, Rt as rewriteTranscript, S as ThinkingLevel, Sn as PluginHookBeforeModelResolveEvent, St as contextSnapshotPath, T as AgentDefinition, Tn as PluginHookBeforePromptBuildResult, Tt as ensureSession, U as parseAgentDefinition, Un as PluginHookResourcesDiscoverEvent, Ut as systemPromptSnapshotPath, V as findAgentDefinition, Vn as PluginHookRegistration, Vt as sessionMemoryPath, W as publicAgentDefinitions, Wn as PluginHookResourcesDiscoverResult, Wt as toolResultsDir, X as buildSkillsPrompt, Xn as PluginHookTurnEndEvent, Xt as PluginsConfigValidationResult, Y as SkillViewResult, Yn as PluginHookToolResultResult, Yt as PluginsConfig, Z as findSkillByName, Zn as PluginHookTurnStartEvent, Zt as normalizePluginsConfig, _ as CallbackPayload, _n as PluginHookAssistantMessageEndEvent, _t as appendArtifactOperation, a as PluginToolOptions, an as PluginKind, ar as MemorySearchOptions, at as ArtifactOpInput, b as PiExtensionDialogBridge, bn as PluginHookBeforeCompactionEvent, bt as artifactsPath, c as PluginUiToolOptions, cn as PluginOrigin, cr as MemoryRebuildSummary, ct as ArtifactOperationName, d as UiToolOptions, dn as PluginHookAfterCompactionEvent, dr as AgentLogEntry, dt as DEFAULT_SESSION_STORE_NAME, en as loadPluginManifestRegistry, er as MemoryChangedEvent, et as loadSkillsFromDirs, f as createUiTool, fn as PluginHookAfterPromptBuildEvent, fr as OnLogCallback, ft as MAX_ARTIFACT_CONTENT_CHARS, g as AgentRunResult, gn as PluginHookAgentStartEvent, gt as SessionPathOptions, h as AgentRunParams, hn as PluginHookAgentEndEvent, ht as SessionMetadataUpdate, in as PluginDiscoveryResult, ir as MemoryProviderFactory, it as LlmApiFormat, j as AgentScanOptions, jn as PluginHookContextResult, jt as loadCronExecutionRecords, k as AgentRuntimePolicy, kn as PluginHookBeforeToolCallResult, kt as listSessions, l as RegisteredPluginTool, ln as RunEventDispatcher, lr as MemorySearchResult$1, lt as ArtifactOperationType, m as AgentProgressEvent$2, mn as PluginHookAgentContext, mt as SessionInspection, nn as PluginConfigUiHint, nr as MemoryProvider, nt as skillsDir, o as PluginToolRegistry, on as PluginManifest, or as MemoryIndexManager, ot as ArtifactOperation, p as defaultUiToolInputSchema, pn as PluginHookAfterToolCallEvent, pt as SessionExport, q as Skill, qn as PluginHookSessionStartEvent, qt as NormalizedPluginsConfig, rn as PluginDiagnostic, rr as MemoryProviderContext, rt as TopicSegmentationConfig, s as PluginUiToolDescriptor, sn as PluginManifestLoadResult, sr as MemoryProviderStatus, st as ArtifactOperationInput,
|
|
1
|
+
import { C as AgentsConfig, S as AgentModelConfig, _ as saveAgentsConfig, a as listAgents, b as AgentBinding, c as normalizeAgentId, d as resolveAgentDir, f as resolveAgentIdByBinding, g as resolveModelString, h as resolveModelFallbacks, i as getAgentConfig, l as removeAgent, m as resolveDefaultAgentId, n as addBinding, o as listBindings, p as resolveAgentsConfigPath, s as loadAgentsConfig, t as addAgent, u as removeBindings, v as updateAgent, x as AgentConfig, y as updateAgentIdentity } from "./index-BNCxlrCH.js";
|
|
2
|
+
import { $ as loadSkills, $n as MemoryChangeSource, $t as PluginManifestRegistry, A as AgentRuntimePolicyInput, An as PluginHookContextEvent, At as loadArtifactOperations, B as filterToolsForAgent, Bn as PluginHookName, Bt as sessionDir, C as TranscriptEntry, Cn as PluginHookBeforeModelResolveResult, Ct as createSession, D as AgentDefinitionsStats, Dn as PluginHookBeforeProviderRequestResult, Dt as inspectSession, E as AgentDefinitionsContext, En as PluginHookBeforeProviderRequestEvent, Et as exportSession, F as agentVisibility, Fn as PluginHookInputEvent, Ft as loadTranscript, G as resolveAgentDefinitionsContext, Gn as PluginHookSessionEndEvent, Gt as transcriptPath, H as loadAgentDefinitionsFromDir, Hn as PluginHookRegistry, Ht as sessionsDir, I as buildAgentDelegationPrompt, In as PluginHookInputResult, It as metadataPath, J as SkillDirectory, Jn as PluginHookToolResultEvent, Jt as PluginEntryConfig, K as scanAgentDefinitions, Kn as PluginHookSessionResetEvent, Kt as updateSessionMetadata, L as buildAgentTaskPrompt, Ln as PluginHookLlmInputEvent, Lt as normalizeSessionStoreName, M as AgentVisibility, Mn as PluginHookDreamGateEvent, Mt as loadSessionContextSnapshot, N as SYSTEM_AGENTS_DIR, Nn as PluginHookDreamGateResult, Nt as loadSessionMetadata, O as AgentDirectoryCandidate, On as PluginHookBeforeToolCallEvent, Ot as listSessionSummaries, P as agentDirCandidates, Pn as PluginHookHandlerMap, Pt as loadSystemPromptSnapshot, Q as loadSkillView, Qn as ReadonlyTranscriptSessionAdapter, Qt as validatePluginsConfig, R as createAgentDefinitionsContext, Rn as PluginHookLlmOutputEvent, Rt as rewriteTranscript, S as ThinkingLevel, Sn as PluginHookBeforeModelResolveEvent, St as contextSnapshotPath, T as AgentDefinition, Tn as PluginHookBeforePromptBuildResult, Tt as ensureSession, U as parseAgentDefinition, Un as PluginHookResourcesDiscoverEvent, Ut as systemPromptSnapshotPath, V as findAgentDefinition, Vn as PluginHookRegistration, Vt as sessionMemoryPath, W as publicAgentDefinitions, Wn as PluginHookResourcesDiscoverResult, Wt as toolResultsDir, X as buildSkillsPrompt, Xn as PluginHookTurnEndEvent, Xt as PluginsConfigValidationResult, Y as SkillViewResult, Yn as PluginHookToolResultResult, Yt as PluginsConfig, Z as findSkillByName, Zn as PluginHookTurnStartEvent, Zt as normalizePluginsConfig, _ as CallbackPayload, _n as PluginHookAssistantMessageEndEvent, _t as appendArtifactOperation, a as PluginToolOptions, an as PluginKind, ar as MemorySearchOptions, at as ArtifactOpInput, b as PiExtensionDialogBridge, bn as PluginHookBeforeCompactionEvent, bt as artifactsPath, c as PluginUiToolOptions, cn as PluginOrigin, cr as MemoryRebuildSummary, ct as ArtifactOperationName, d as UiToolOptions, dn as PluginHookAfterCompactionEvent, dr as AgentLogEntry, dt as DEFAULT_SESSION_STORE_NAME, en as loadPluginManifestRegistry, er as MemoryChangedEvent, et as loadSkillsFromDirs, f as createUiTool, fn as PluginHookAfterPromptBuildEvent, fr as OnLogCallback, ft as MAX_ARTIFACT_CONTENT_CHARS, g as AgentRunResult, gn as PluginHookAgentStartEvent, gt as SessionPathOptions, h as AgentRunParams, hn as PluginHookAgentEndEvent, ht as SessionMetadataUpdate, in as PluginDiscoveryResult, ir as MemoryProviderFactory, it as LlmApiFormat, j as AgentScanOptions, jn as PluginHookContextResult, jt as loadCronExecutionRecords, k as AgentRuntimePolicy, kn as PluginHookBeforeToolCallResult, kt as listSessions, l as RegisteredPluginTool, ln as RunEventDispatcher, lr as MemorySearchResult$1, lt as ArtifactOperationType, m as AgentProgressEvent$2, mn as PluginHookAgentContext, mt as SessionInspection, nn as PluginConfigUiHint, nr as MemoryProvider, nt as skillsDir, o as PluginToolRegistry, on as PluginManifest, or as MemoryIndexManager, ot as ArtifactOperation, p as defaultUiToolInputSchema, pn as PluginHookAfterToolCallEvent, pt as SessionExport, q as Skill, qn as PluginHookSessionStartEvent, qt as NormalizedPluginsConfig, rn as PluginDiagnostic, rr as MemoryProviderContext, rt as TopicSegmentationConfig, s as PluginUiToolDescriptor, sn as PluginManifestLoadResult, sr as MemoryProviderStatus, st as ArtifactOperationInput, tn as PluginCandidate, tr as MemoryChangedHandler, tt as loadSkillsWithPluginDirs, u as UiToolInputSchema, un as PluginExecutionRuntime, ur as ToolLoopDetectionConfig, ut as CronExecutionRecord, v as Channel, vn as PluginHookBeforeAgentStartEvent, vt as appendCronExecutionRecord, w as AgentConfigSource, wn as PluginHookBeforePromptBuildEvent, wt as cronExecutionsPath, x as SubagentContext, xn as PluginHookBeforeCompactionResult, xt as collapseLogPath, y as CompactionEntry, yn as PluginHookBeforeAgentStartResult, yt as appendTranscriptEntry, z as filterSkillsForAgent, zn as PluginHookMemoryChangedEvent, zt as saveSessionMetadata } from "./loader-DSY3mHib.js";
|
|
3
|
+
import { C as createPluginProgressEmitter, S as PluginProgressEmitter, T as createPluginRuntime, _ as resetEmbeddingProviderRegistryForTests, a as PluginSystemOptions, b as PluginRuntimeContext, c as preloadPluginSystem, d as PluginRegistry, f as loadPlugins, g as registerEmbeddingProvider, h as EmbeddingProviderRegistration, i as PluginSystem, l as PluginApi, m as EmbeddingProviderFactory, n as SystemWarmState, o as getPluginSystem, p as EmbeddingProviderContext, r as prepareSystemRuntime, s as initializePluginSystem, t as PrepareSystemRuntimeOptions, u as PluginRecord, v as resolveEmbeddingProvider, w as PluginRuntime, x as PluginCustomProgressInput, y as EmbeddingProvider } from "./system-runtime-DBPs25Bs.js";
|
|
3
4
|
import { AgentCustomProgressEvent, AgentProgressEvent, AgentProgressEvent as AgentProgressEvent$1, ArtifactRecord, ArtifactRecord as ArtifactRecord$1, CallbackEventPayload, Channel as Channel$1, CollapseSpan, CoreMemoryConfig, GoalStatus, HitlCheckpoint as HitlCheckpoint$1, HitlHistoryEntry, HitlRequest, HitlRequest as HitlRequest$1, HitlResolution, HitlResolution as HitlResolution$1, HitlStatus, HitlToolContext, HitlToolContext as HitlToolContext$1, MemoryCompactionRecallRuntimeState, MemoryRecallRuntimeState, ModelUsageCheckpoint, PausedRunState, PausedRunState as PausedRunState$1, ReadStateRecord, RunResultPayload, SessionContextSnapshot, SessionMemorySnapshot, SessionMetadata, SessionSummary, SnipRecord, ThreadGoal, ToolResultReference, UiToolExtra, UiToolOutputSchema, UiToolPausedState, UiToolRequest, UiToolResult } from "@gencode/shared";
|
|
4
5
|
import { Agent, AgentMessage, AgentTool } from "@earendil-works/pi-agent-core";
|
|
5
6
|
import { Message, Type } from "@earendil-works/pi-ai";
|
|
@@ -373,51 +374,6 @@ declare function appendRecentToMemory(dataDir: string, content: string, scope: "
|
|
|
373
374
|
declare function replaceMemoryFile(dataDir: string, filePath: string, content: string, options?: MemoryCallOptions): Promise<void>;
|
|
374
375
|
declare function deleteMemoryFile(dataDir: string, filePath: string, options?: MemoryCallOptions): Promise<void>;
|
|
375
376
|
//#endregion
|
|
376
|
-
//#region src/memory/embeddings.d.ts
|
|
377
|
-
type EmbeddingProvider = {
|
|
378
|
-
id: string;
|
|
379
|
-
model: string;
|
|
380
|
-
embedQuery: (text: string) => Promise<number[]>;
|
|
381
|
-
embedBatch: (texts: string[]) => Promise<number[][]>;
|
|
382
|
-
};
|
|
383
|
-
//#endregion
|
|
384
|
-
//#region src/memory/embedding-registry.d.ts
|
|
385
|
-
type EmbeddingProviderContext = {
|
|
386
|
-
dataDir: string;
|
|
387
|
-
memoryDir: string;
|
|
388
|
-
pluginId?: string;
|
|
389
|
-
config?: Record<string, unknown>;
|
|
390
|
-
rootDir?: string;
|
|
391
|
-
source?: string;
|
|
392
|
-
};
|
|
393
|
-
type EmbeddingProviderFactory = (ctx: EmbeddingProviderContext) => EmbeddingProvider;
|
|
394
|
-
type EmbeddingProviderRegistration = {
|
|
395
|
-
id: string;
|
|
396
|
-
pluginId?: string;
|
|
397
|
-
create: EmbeddingProviderFactory;
|
|
398
|
-
config?: Record<string, unknown>;
|
|
399
|
-
rootDir?: string;
|
|
400
|
-
source?: string;
|
|
401
|
-
};
|
|
402
|
-
declare function registerEmbeddingProvider(params: {
|
|
403
|
-
pluginId: string;
|
|
404
|
-
create: EmbeddingProviderFactory;
|
|
405
|
-
id?: string;
|
|
406
|
-
config?: Record<string, unknown>;
|
|
407
|
-
rootDir?: string;
|
|
408
|
-
source?: string;
|
|
409
|
-
}): string;
|
|
410
|
-
declare function resolveEmbeddingProvider(params: {
|
|
411
|
-
providerId?: string;
|
|
412
|
-
pluginId?: string;
|
|
413
|
-
dataDir: string;
|
|
414
|
-
memoryDir: string;
|
|
415
|
-
}): {
|
|
416
|
-
provider: EmbeddingProvider;
|
|
417
|
-
registration: EmbeddingProviderRegistration;
|
|
418
|
-
} | null;
|
|
419
|
-
declare function resetEmbeddingProviderRegistryForTests(): void;
|
|
420
|
-
//#endregion
|
|
421
377
|
//#region src/memory/builtin-provider.d.ts
|
|
422
378
|
declare function createBuiltinMemoryProvider(ctx: MemoryProviderContext, options?: {
|
|
423
379
|
includeSessions?: boolean;
|
|
@@ -1323,186 +1279,6 @@ declare const PLUGIN_MANIFEST_FILENAMES: readonly ["aimax.plugin.json"];
|
|
|
1323
1279
|
declare function resolvePluginManifestPath(rootDir: string): string;
|
|
1324
1280
|
declare function loadPluginManifest(rootDir: string, rejectHardlinks?: boolean): PluginManifestLoadResult;
|
|
1325
1281
|
//#endregion
|
|
1326
|
-
//#region src/plugins/runtime.d.ts
|
|
1327
|
-
type PluginRuntime = {
|
|
1328
|
-
version: string;
|
|
1329
|
-
logging: {
|
|
1330
|
-
getLogger: (name: string) => {
|
|
1331
|
-
info: (message: string) => void;
|
|
1332
|
-
warn: (message: string) => void;
|
|
1333
|
-
error: (message: string) => void;
|
|
1334
|
-
};
|
|
1335
|
-
};
|
|
1336
|
-
/**
|
|
1337
|
-
* Read-only view of session-scoped state. Exposed to plugins so they can
|
|
1338
|
-
* discover per-run configuration (e.g. environment variables passed via
|
|
1339
|
-
* `AgentRunParams.env`) without re-plumbing the data through config.
|
|
1340
|
-
*/
|
|
1341
|
-
session: {
|
|
1342
|
-
env: Record<string, string>;
|
|
1343
|
-
};
|
|
1344
|
-
};
|
|
1345
|
-
type CreatePluginRuntimeOptions = {
|
|
1346
|
-
pluginId: string;
|
|
1347
|
-
/**
|
|
1348
|
-
* Session-scoped env map mirrored from the current run. Frozen to
|
|
1349
|
-
* prevent plugins from mutating shared state.
|
|
1350
|
-
*/
|
|
1351
|
-
env?: Record<string, string>;
|
|
1352
|
-
};
|
|
1353
|
-
declare function createPluginRuntime(options: CreatePluginRuntimeOptions): PluginRuntime;
|
|
1354
|
-
//#endregion
|
|
1355
|
-
//#region src/plugins/progress-runtime.d.ts
|
|
1356
|
-
type PluginCustomProgressInput = {
|
|
1357
|
-
name: string;
|
|
1358
|
-
label?: string;
|
|
1359
|
-
data?: Record<string, unknown>;
|
|
1360
|
-
};
|
|
1361
|
-
type PluginProgressEmitter = {
|
|
1362
|
-
emit(event: PluginCustomProgressInput): Promise<void>;
|
|
1363
|
-
};
|
|
1364
|
-
declare function createPluginProgressEmitter(pluginId: string): PluginProgressEmitter;
|
|
1365
|
-
//#endregion
|
|
1366
|
-
//#region src/llm/client.d.ts
|
|
1367
|
-
type LlmChatMessage = {
|
|
1368
|
-
role: "system" | "user" | "assistant";
|
|
1369
|
-
content: string;
|
|
1370
|
-
};
|
|
1371
|
-
type LlmChatParams = {
|
|
1372
|
-
system?: string;
|
|
1373
|
-
user?: string;
|
|
1374
|
-
messages?: LlmChatMessage[];
|
|
1375
|
-
model?: string;
|
|
1376
|
-
temperature?: number;
|
|
1377
|
-
maxTokens?: number;
|
|
1378
|
-
timeoutMs?: number;
|
|
1379
|
-
signal?: AbortSignal;
|
|
1380
|
-
};
|
|
1381
|
-
type LlmChatResult = {
|
|
1382
|
-
text: string;
|
|
1383
|
-
usage: {
|
|
1384
|
-
input: number;
|
|
1385
|
-
output: number;
|
|
1386
|
-
total: number;
|
|
1387
|
-
};
|
|
1388
|
-
raw?: unknown;
|
|
1389
|
-
};
|
|
1390
|
-
//#endregion
|
|
1391
|
-
//#region src/plugins/runtime-context.d.ts
|
|
1392
|
-
type PluginRuntimeContext = {
|
|
1393
|
-
llm?: {
|
|
1394
|
-
apiFormat?: LlmApiFormat;
|
|
1395
|
-
baseUrl: string;
|
|
1396
|
-
apiKey: string;
|
|
1397
|
-
model: string;
|
|
1398
|
-
contextWindow?: number;
|
|
1399
|
-
};
|
|
1400
|
-
hookCtx?: PluginHookAgentContext;
|
|
1401
|
-
llmAllowlist?: string[];
|
|
1402
|
-
/**
|
|
1403
|
-
* Session-scoped environment variables supplied via `AgentRunParams.env`.
|
|
1404
|
-
* Plugins that spawn child processes (e.g. via the `exec` tool) should
|
|
1405
|
-
* merge this map into the child process environment. Plugins may also
|
|
1406
|
-
* read values from this map to discover session-scoped configuration.
|
|
1407
|
-
*
|
|
1408
|
-
* The map is held in memory only for the duration of the run and is
|
|
1409
|
-
* never written to disk; it does not cross session boundaries.
|
|
1410
|
-
*/
|
|
1411
|
-
env?: Record<string, string>;
|
|
1412
|
-
};
|
|
1413
|
-
//#endregion
|
|
1414
|
-
//#region src/plugins/loader.d.ts
|
|
1415
|
-
type PluginRecord = {
|
|
1416
|
-
id: string;
|
|
1417
|
-
source: string;
|
|
1418
|
-
origin: PluginOrigin;
|
|
1419
|
-
enabled: boolean;
|
|
1420
|
-
status: "loaded" | "disabled" | "error";
|
|
1421
|
-
error?: string;
|
|
1422
|
-
durationMs?: number;
|
|
1423
|
-
toolCount: number;
|
|
1424
|
-
hookCount: number;
|
|
1425
|
-
skills: string[];
|
|
1426
|
-
configSchema: boolean;
|
|
1427
|
-
};
|
|
1428
|
-
type PluginRegistry = {
|
|
1429
|
-
plugins: PluginRecord[];
|
|
1430
|
-
diagnostics: PluginDiagnostic[];
|
|
1431
|
-
tools: PluginToolRegistry;
|
|
1432
|
-
hooks: PluginHookRegistry;
|
|
1433
|
-
skills: string[];
|
|
1434
|
-
};
|
|
1435
|
-
type PluginLoadOptions = {
|
|
1436
|
-
registry: PluginManifestRegistry;
|
|
1437
|
-
plugins: NormalizedPluginsConfig;
|
|
1438
|
-
workspaceDir?: string;
|
|
1439
|
-
runtime?: PluginRuntimeContext;
|
|
1440
|
-
};
|
|
1441
|
-
type PluginApi = {
|
|
1442
|
-
id: string;
|
|
1443
|
-
source: string;
|
|
1444
|
-
rootDir: string;
|
|
1445
|
-
config: Record<string, unknown> | undefined;
|
|
1446
|
-
runtime: ReturnType<typeof createPluginRuntime>;
|
|
1447
|
-
llm: {
|
|
1448
|
-
chat: (params: LlmChatParams) => Promise<LlmChatResult>;
|
|
1449
|
-
};
|
|
1450
|
-
registerTool: (tool: Parameters<PluginToolRegistry["register"]>[1], opts?: Parameters<PluginToolRegistry["register"]>[2]) => void;
|
|
1451
|
-
/**
|
|
1452
|
-
* Register a UI tool that pauses the agent and collects structured user
|
|
1453
|
-
* input through a front-end form.
|
|
1454
|
-
*
|
|
1455
|
-
* Unlike `registerTool`, the plugin only provides the form schema and
|
|
1456
|
-
* metadata — session binding, pause/resume control flow, and result
|
|
1457
|
-
* validation are handled automatically by the framework.
|
|
1458
|
-
*/
|
|
1459
|
-
registerUiTool: (descriptor: PluginUiToolDescriptor, opts?: PluginUiToolOptions) => void;
|
|
1460
|
-
registerEmbeddingProvider: (params: {
|
|
1461
|
-
id?: string;
|
|
1462
|
-
create: EmbeddingProviderFactory;
|
|
1463
|
-
}) => void;
|
|
1464
|
-
registerMemoryProvider: (params: {
|
|
1465
|
-
id?: string;
|
|
1466
|
-
create: MemoryProviderFactory;
|
|
1467
|
-
}) => void;
|
|
1468
|
-
registerHook: <K extends PluginHookName>(hookName: K, handler: PluginHookHandlerMap[K], opts?: {
|
|
1469
|
-
priority?: number;
|
|
1470
|
-
}) => void;
|
|
1471
|
-
registerSkillDir: (dir: string) => void;
|
|
1472
|
-
createProgressEmitter: () => PluginProgressEmitter;
|
|
1473
|
-
};
|
|
1474
|
-
declare function loadPlugins(options: PluginLoadOptions): PluginRegistry;
|
|
1475
|
-
//#endregion
|
|
1476
|
-
//#region src/plugins/manager.d.ts
|
|
1477
|
-
/**
|
|
1478
|
-
* Pre-load plugin system at container startup time.
|
|
1479
|
-
* Blocks ~1.8s (jiti compile) but runs BEFORE any user request arrives.
|
|
1480
|
-
* Multiple calls are idempotent — won't recompile.
|
|
1481
|
-
*/
|
|
1482
|
-
declare function preloadPluginSystem(options: PluginSystemOptions): PluginSystem;
|
|
1483
|
-
/**
|
|
1484
|
-
* Get pre-loaded plugin system if available, otherwise cold-start.
|
|
1485
|
-
* Session creation should use this (returns instantly if pre-warmed).
|
|
1486
|
-
*/
|
|
1487
|
-
declare function getPluginSystem(options: PluginSystemOptions): PluginSystem;
|
|
1488
|
-
type PluginSystemOptions = {
|
|
1489
|
-
config?: PluginsConfig;
|
|
1490
|
-
dataDir?: string;
|
|
1491
|
-
workspaceDir?: string;
|
|
1492
|
-
bundledDir?: string;
|
|
1493
|
-
ownershipUid?: number | null;
|
|
1494
|
-
toolAllowlist?: string[];
|
|
1495
|
-
runtime?: PluginRuntimeContext; /** Extra paths for pi community extensions (plugins.piExtensions.paths). */
|
|
1496
|
-
piExtensionPaths?: string[];
|
|
1497
|
-
};
|
|
1498
|
-
type PluginSystem = {
|
|
1499
|
-
registry: PluginRegistry;
|
|
1500
|
-
diagnostics: PluginDiagnostic[];
|
|
1501
|
-
normalizedConfig: NormalizedPluginsConfig;
|
|
1502
|
-
piExtensions: DiscoveredPiExtension[];
|
|
1503
|
-
};
|
|
1504
|
-
declare function initializePluginSystem(options?: PluginSystemOptions): PluginSystem;
|
|
1505
|
-
//#endregion
|
|
1506
1282
|
//#region src/plugins/tool-hooks.d.ts
|
|
1507
1283
|
declare function wrapToolsWithHooks(tools: AgentTool[], ctx: PluginHookAgentContext, runtime: PluginExecutionRuntime): AgentTool[];
|
|
1508
1284
|
//#endregion
|
|
@@ -2203,4 +1979,4 @@ declare function formatClarifyResolution(resolution: HitlResolution): string;
|
|
|
2203
1979
|
declare function formatReviewResolution(resolution: HitlResolution): string;
|
|
2204
1980
|
declare function buildResumeNarration(resolution: HitlResolution, kind: string): string;
|
|
2205
1981
|
//#endregion
|
|
2206
|
-
export { type AccountingFlushResult, AgentBinding, AgentConfig, type AgentConfigSource, type AgentCustomProgressEvent, type AgentDefinition, type AgentDefinitionsContext, type AgentDefinitionsStats, type AgentDirectoryCandidate, type AgentLogEntry, AgentModelConfig, type AgentProgressEvent, type AgentRunParams, type AgentRunResult, type AgentRuntimePolicy, type AgentRuntimePolicyInput, type AgentScanOptions, type AgentVisibility, AgentsConfig, type ApplyCliGoalInput, type ApplyCliGoalResult, type ArtifactOpInput, type ArtifactOperation, type ArtifactOperationInput, type ArtifactOperationName, type ArtifactOperationType, type ArtifactRecord, type AutoSkillCategory, type AutoSkillIndexEntry, type AutoSkillListItem, type AutoSkillListOptions, type AutoSkillSearchOptions, type AutoSkillSearchResult, type AutoSkillStatus, type AutoSkillViewOptions, type AutoSkillViewResult, AutoSkillsLoader, type AutoSkillsLoaderOptions, BOOTSTRAP_FILE_NAMES, BOOTSTRAP_MAX_CHARS, BOOTSTRAP_TOTAL_MAX_CHARS, type BlockedWorkflowRecoveryResult, type BootstrapContextFile, type BootstrapEnsureResult, type BootstrapFile, type BootstrapMountResult, type BootstrapMountStatus, type BuildContinuationPromptOptions, CLARIFY_ACCEPTANCE_TEXT, CLARIFY_FIRST_TURN_BLOCKED_TOOLS, CLARIFY_TASK_TITLE, type CallbackEventPayload, type CallbackPayload, type Channel, type ContextManager, ContinuationState, type CoreMemoryConfig, CorruptGoalWorkflowStateError, type CronExecutionRecord, DEFAULT_SESSION_STORE_NAME, type DefaultMemoryProviderOptions, ENV_GOAL_CONTINUATION, type EmbeddingProvider, type EmbeddingProviderContext, type EmbeddingProviderFactory, type EmbeddingProviderRegistration, type ExtractedWorkflowPlan, FIRST_TURN_GOAL_WORKFLOW_INTRO, type FirstGoalWorkflowSteeringPrep, GOAL_MULTILINE_TEMPLATE_EXAMPLE, GOAL_WORKFLOW_STATE_VERSION, GoalAccounting, GoalConflictError, type GoalContinuationTurnResult, type GoalEventAction, type GoalEventRecord, type GoalEventSource, type GoalPatch, type GoalToolWorkflowView, type GoalWorkflowAcceptanceCriterion, type GoalWorkflowPromptContext, type GoalWorkflowState, type GoalWorkflowStatus, type GoalWorkflowSummary, type GoalWorkflowTask, type GoalWorkflowTaskKind, type GoalWorkflowTaskStatus, type GoalWorkflowWarning, HITL_MESSAGES, type HitlPauseContext, HitlPauseSignal, type HitlToolContext, type LlmApiFormat, MAX_ARTIFACT_CONTENT_CHARS, MAX_CHILDREN_PER_SESSION, MAX_SUBAGENT_DEPTH, type MemoryCallOptions, type MemoryChangeSource, type MemoryChangedEvent, type MemoryChangedHandler, type MemoryCompactionRecallRuntimeState, MemoryIndexManager, type MemoryProvider, type MemoryProviderContext, type MemoryProviderFactory, type MemoryProviderRegistration, type MemoryProviderStatus, type MemoryRebuildSummary, type MemoryRecallRuntimeState, type MemorySearchOptions, type MemorySearchResult, type NormalizedPluginsConfig, type ObjectiveUpdatedSteeringPrep, type OnLogCallback, PLUGIN_MANIFEST_FILENAME, PLUGIN_MANIFEST_FILENAMES, type PersistedSubagentRunRecord, type PersistedToolResult, type PiExtensionDialogBridge, 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 PluginHookAgentStartEvent, type PluginHookAssistantMessageEndEvent, type PluginHookBeforeAgentStartEvent, type PluginHookBeforeAgentStartResult, type PluginHookBeforeCompactionEvent, type PluginHookBeforeCompactionResult, type PluginHookBeforeModelResolveEvent, type PluginHookBeforeModelResolveResult, type PluginHookBeforePromptBuildEvent, type PluginHookBeforePromptBuildResult, type PluginHookBeforeProviderRequestEvent, type PluginHookBeforeProviderRequestResult, type PluginHookBeforeToolCallEvent, type PluginHookBeforeToolCallResult, type PluginHookContextEvent, type PluginHookContextResult, type PluginHookDreamGateEvent, type PluginHookDreamGateResult, type PluginHookHandlerMap, type PluginHookInputEvent, type PluginHookInputResult, type PluginHookLlmInputEvent, type PluginHookLlmOutputEvent, type PluginHookMemoryChangedEvent, type PluginHookName, type PluginHookRegistration, PluginHookRegistry, type PluginHookResourcesDiscoverEvent, type PluginHookResourcesDiscoverResult, type PluginHookSessionEndEvent, type PluginHookSessionResetEvent, type PluginHookSessionStartEvent, type PluginHookToolResultEvent, type PluginHookToolResultResult, type PluginHookTurnEndEvent, type PluginHookTurnStartEvent, 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 ReadonlyTranscriptSessionAdapter, type RegisteredPluginTool, type ResolveMemoryProviderOrDefaultParams, type ResolvedMemoryProviderOrDefault, type ResumeOptions, type ResumeValidationResult, type RunResultPayload, SYSTEM_AGENTS_DIR, type SessionContextStore, type SessionExport, type SessionExportSnapshots, type SessionInspection, type SessionMetadata, type SessionMetadataUpdate, type SessionPathOptions, type SessionSummary, type SessionToolSnapshotEntry, type SessionToolsSnapshot, type Skill, type SkillDirectory, type SkillViewResult, type SlashCommandList, type SubagentContext, SubagentRegistry, type SubagentRunRecord, type SubagentStatus, type SubagentToolsContext, type SystemPromptParams, type ThinkingLevel, type ToolLoopDetectionConfig, type TranscriptEntry, type TurnAccounting, type UiToolInputSchema, type UiToolOptions, UiToolPauseSignal, type WallClockAccounting, addAgent, addBinding, agentDirCandidates, agentVisibility, aimaxDir, appendArtifactOperation, appendCronExecutionRecord, appendGoalEvent, appendRecentToMemory, appendSessionFile, appendToMemory, appendTranscriptEntry, applyCliGoalBeforeRun, approvalSummaryFromResolution, artifactsPath, atomicWriteSessionFile, autoSkillsDir, bootstrapMountLayout, buildAgentDelegationPrompt, buildAgentTaskPrompt, buildAimaxGoalCliHelpExtra, buildBootstrapContextFiles, buildBudgetLimitPrompt, buildContinuationPrompt, buildFirstTurnGoalWorkflowPrompt, buildGoalContextItem, buildGoalSlashHelpText, buildObjectiveUpdatedPrompt, buildResumeNarration, buildSkillsPrompt, buildSubagentAnnounceMessage, buildSystemPrompt, cleanupOldSubagentRecords, clearPendingHitl, clearPendingUiTool, collapseLogPath, confirmObjectiveUpdatedSteeringConsumed, contextSnapshotPath, continuationTurnHadMeaningfulOutput, createAgentDefinitionsContext, createAgentTools, createApplyPatchTool, createAutoSkillCategoriesTool, createAutoSkillListTool, createAutoSkillSearchTool, createAutoSkillViewTool, createAutoSkillsLoader, createBashTool, createBatchSubagentSpawnTool, createBuiltinMemoryProvider, createContextManager, createDefaultMemoryProvider, createEditFileTool, createExecTool, createImageTool, createListDirTool, createMemoryAppendTool, createMemoryForgetTool, createMemoryGetTool, createMemoryListTool, createMemoryLogTool, createMemorySearchTool, createMemoryUpdateTool, createMemoryWriteTool, createPendingHitl, createPendingUiTool, createPluginProgressEmitter, createPluginRuntime, createProcessTool, createReadFileTool, createSession, createSessionContextStore, createSessionSearchTool, createSkillListTool, createSkillLoadTool, createSubagentSpawnTool, createSubagentsTool, createUiTool, createWriteFileTool, cronExecutionsPath, defaultUiToolInputSchema, deleteGoal, deleteGoalWorkflow, deleteMemoryFile, discoverAIMaxPlugins, emitGoalUpdatedProgress, ensureBootstrapMountLayout, ensureSession, exportSession, extractWorkflowPlanFromObjective, filterSkillsForAgent, filterToolsForAgent, findAgentDefinition, findSkillByName, flushAccounting, formatApprovalResolution, formatClarifyResolution, formatReviewResolution, generateSessionTitle, getAgentConfig, getMemoryLines, getPluginSystem, goalArtifactsDir, goalDir, goalEventsPath, goalObjectiveMdPath, goalPath, goalWorkflowPlanPath, goalWorkflowStatePath, hasBootstrapSentinel, hitlHistoryPath, initializeGoalWorkflow, initializePluginSystem, inspectBootstrapMountLayout, inspectSession, installClarifyFirstTurnGate, isBootstrapMountLayoutReady, isClarifyFirstTurnBlockedTool, isClarifyWorkflowTask, isContinuationEnabled, isGoalContext, isHitlPauseSignal, isUiToolPauseSignal, listAgents, listAvailableSlashCommands, listBindings, listMemoryFiles, listSessionSummaries, listSessions, listSubagentRunsFromDisk, loadAgentDefinitionsFromDir, loadAgentsConfig, loadArtifactOperations, loadBootstrapFiles, loadCronExecutionRecords, readPendingHitl as loadPendingHitl, readPendingHitl, readPendingUiTool as loadPendingUiTool, readPendingUiTool, loadPluginManifest, loadPluginManifestRegistry, loadPlugins, loadSessionContextSnapshot, loadSessionExportSnapshots, loadSessionMetadata, loadSkillView, loadSkills, loadSkillsFromDirs, loadSkillsWithPluginDirs, loadSubagentRegistryFromDisk, loadSystemPromptSnapshot, loadTranscript, loadWorkflowPromptContext, maybeContinueGoalIfIdle, memoryDir, metadataPath, mirrorGoalStatusToSession, normalizeAgentId, normalizePluginsConfig, normalizeSessionStoreName, parseAgentDefinition, pendingHitlPath, pendingUiToolPath, persistSessionExportSnapshots, preloadPluginSystem, prependFirstGoalWorkflowSteeringIfNeeded, prependObjectiveUpdatedSteeringIfNeeded, primaryMemoryPath, publicAgentDefinitions, readGoal, readGoalWorkflowState, readGoalWorkflowSummary, readHitlHistory, readMemoryFile, readPrimaryMemory, readSessionFile, readSessionFileContent, recoverBlockedWorkflowOnUserTurn, registerEmbeddingProvider, registerMemoryProvider, removeAgent, removeBindings, renderGoalPlanMarkdown, repairGoalWorkflowState, replaceMemoryFile, resetEmbeddingProviderRegistryForTests, resetMemoryProviderRegistryForTests, resolveAgentDefinitionsContext, resolveAgentDir, resolveAgentIdByBinding, resolveAgentsConfigPath, resolveDefaultAgentId, resolveEmbeddingProvider, resolveGoalObjective, resolveGoalToolWorkflowView, resolveHitlRequest, resolveHitlRequest as resolvePendingHitl, resolveMemoryProvider, resolveMemoryProviderOrDefault, resolveModelFallbacks, resolveModelString, resolvePendingUiTool, resolvePluginManifestPath, rewriteTranscript, runAgent, saveAgentsConfig, saveSessionMetadata, saveSubagentRegistryToDisk, scanAgentDefinitions, searchMemory, serializeToolsForSnapshot, sessionDir, sessionMemoryPath, sessionToolsSnapshotPath, sessionsDir, shouldContinueGoal, skillsDir, systemPromptSnapshotPath, toolResultsDir, transcriptPath, transitionHitlStatus, updateAgent, updateAgentIdentity, updateGoal, updateSessionMetadata, validatePluginsConfig, validateResume, withGoalWorkflowLock, wrapToolsWithHooks, writeGoal, writeSessionFile };
|
|
1982
|
+
export { type AccountingFlushResult, AgentBinding, AgentConfig, type AgentConfigSource, type AgentCustomProgressEvent, type AgentDefinition, type AgentDefinitionsContext, type AgentDefinitionsStats, type AgentDirectoryCandidate, type AgentLogEntry, AgentModelConfig, type AgentProgressEvent, type AgentRunParams, type AgentRunResult, type AgentRuntimePolicy, type AgentRuntimePolicyInput, type AgentScanOptions, type AgentVisibility, AgentsConfig, type ApplyCliGoalInput, type ApplyCliGoalResult, type ArtifactOpInput, type ArtifactOperation, type ArtifactOperationInput, type ArtifactOperationName, type ArtifactOperationType, type ArtifactRecord, type AutoSkillCategory, type AutoSkillIndexEntry, type AutoSkillListItem, type AutoSkillListOptions, type AutoSkillSearchOptions, type AutoSkillSearchResult, type AutoSkillStatus, type AutoSkillViewOptions, type AutoSkillViewResult, AutoSkillsLoader, type AutoSkillsLoaderOptions, BOOTSTRAP_FILE_NAMES, BOOTSTRAP_MAX_CHARS, BOOTSTRAP_TOTAL_MAX_CHARS, type BlockedWorkflowRecoveryResult, type BootstrapContextFile, type BootstrapEnsureResult, type BootstrapFile, type BootstrapMountResult, type BootstrapMountStatus, type BuildContinuationPromptOptions, CLARIFY_ACCEPTANCE_TEXT, CLARIFY_FIRST_TURN_BLOCKED_TOOLS, CLARIFY_TASK_TITLE, type CallbackEventPayload, type CallbackPayload, type Channel, type ContextManager, ContinuationState, type CoreMemoryConfig, CorruptGoalWorkflowStateError, type CronExecutionRecord, DEFAULT_SESSION_STORE_NAME, type DefaultMemoryProviderOptions, ENV_GOAL_CONTINUATION, type EmbeddingProvider, type EmbeddingProviderContext, type EmbeddingProviderFactory, type EmbeddingProviderRegistration, type ExtractedWorkflowPlan, FIRST_TURN_GOAL_WORKFLOW_INTRO, type FirstGoalWorkflowSteeringPrep, GOAL_MULTILINE_TEMPLATE_EXAMPLE, GOAL_WORKFLOW_STATE_VERSION, GoalAccounting, GoalConflictError, type GoalContinuationTurnResult, type GoalEventAction, type GoalEventRecord, type GoalEventSource, type GoalPatch, type GoalToolWorkflowView, type GoalWorkflowAcceptanceCriterion, type GoalWorkflowPromptContext, type GoalWorkflowState, type GoalWorkflowStatus, type GoalWorkflowSummary, type GoalWorkflowTask, type GoalWorkflowTaskKind, type GoalWorkflowTaskStatus, type GoalWorkflowWarning, HITL_MESSAGES, type HitlPauseContext, HitlPauseSignal, type HitlToolContext, type LlmApiFormat, MAX_ARTIFACT_CONTENT_CHARS, MAX_CHILDREN_PER_SESSION, MAX_SUBAGENT_DEPTH, type MemoryCallOptions, type MemoryChangeSource, type MemoryChangedEvent, type MemoryChangedHandler, type MemoryCompactionRecallRuntimeState, MemoryIndexManager, type MemoryProvider, type MemoryProviderContext, type MemoryProviderFactory, type MemoryProviderRegistration, type MemoryProviderStatus, type MemoryRebuildSummary, type MemoryRecallRuntimeState, type MemorySearchOptions, type MemorySearchResult, type NormalizedPluginsConfig, type ObjectiveUpdatedSteeringPrep, type OnLogCallback, PLUGIN_MANIFEST_FILENAME, PLUGIN_MANIFEST_FILENAMES, type PersistedSubagentRunRecord, type PersistedToolResult, type PiExtensionDialogBridge, 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 PluginHookAgentStartEvent, type PluginHookAssistantMessageEndEvent, type PluginHookBeforeAgentStartEvent, type PluginHookBeforeAgentStartResult, type PluginHookBeforeCompactionEvent, type PluginHookBeforeCompactionResult, type PluginHookBeforeModelResolveEvent, type PluginHookBeforeModelResolveResult, type PluginHookBeforePromptBuildEvent, type PluginHookBeforePromptBuildResult, type PluginHookBeforeProviderRequestEvent, type PluginHookBeforeProviderRequestResult, type PluginHookBeforeToolCallEvent, type PluginHookBeforeToolCallResult, type PluginHookContextEvent, type PluginHookContextResult, type PluginHookDreamGateEvent, type PluginHookDreamGateResult, type PluginHookHandlerMap, type PluginHookInputEvent, type PluginHookInputResult, type PluginHookLlmInputEvent, type PluginHookLlmOutputEvent, type PluginHookMemoryChangedEvent, type PluginHookName, type PluginHookRegistration, PluginHookRegistry, type PluginHookResourcesDiscoverEvent, type PluginHookResourcesDiscoverResult, type PluginHookSessionEndEvent, type PluginHookSessionResetEvent, type PluginHookSessionStartEvent, type PluginHookToolResultEvent, type PluginHookToolResultResult, type PluginHookTurnEndEvent, type PluginHookTurnStartEvent, 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 PrepareSystemRuntimeOptions, type ReadonlyTranscriptSessionAdapter, type RegisteredPluginTool, type ResolveMemoryProviderOrDefaultParams, type ResolvedMemoryProviderOrDefault, type ResumeOptions, type ResumeValidationResult, type RunResultPayload, SYSTEM_AGENTS_DIR, type SessionContextStore, type SessionExport, type SessionExportSnapshots, type SessionInspection, type SessionMetadata, type SessionMetadataUpdate, type SessionPathOptions, type SessionSummary, type SessionToolSnapshotEntry, type SessionToolsSnapshot, type Skill, type SkillDirectory, type SkillViewResult, type SlashCommandList, type SubagentContext, SubagentRegistry, type SubagentRunRecord, type SubagentStatus, type SubagentToolsContext, type SystemPromptParams, type SystemWarmState, type ThinkingLevel, type ToolLoopDetectionConfig, type TranscriptEntry, type TurnAccounting, type UiToolInputSchema, type UiToolOptions, UiToolPauseSignal, type WallClockAccounting, addAgent, addBinding, agentDirCandidates, agentVisibility, aimaxDir, appendArtifactOperation, appendCronExecutionRecord, appendGoalEvent, appendRecentToMemory, appendSessionFile, appendToMemory, appendTranscriptEntry, applyCliGoalBeforeRun, approvalSummaryFromResolution, artifactsPath, atomicWriteSessionFile, autoSkillsDir, bootstrapMountLayout, buildAgentDelegationPrompt, buildAgentTaskPrompt, buildAimaxGoalCliHelpExtra, buildBootstrapContextFiles, buildBudgetLimitPrompt, buildContinuationPrompt, buildFirstTurnGoalWorkflowPrompt, buildGoalContextItem, buildGoalSlashHelpText, buildObjectiveUpdatedPrompt, buildResumeNarration, buildSkillsPrompt, buildSubagentAnnounceMessage, buildSystemPrompt, cleanupOldSubagentRecords, clearPendingHitl, clearPendingUiTool, collapseLogPath, confirmObjectiveUpdatedSteeringConsumed, contextSnapshotPath, continuationTurnHadMeaningfulOutput, createAgentDefinitionsContext, createAgentTools, createApplyPatchTool, createAutoSkillCategoriesTool, createAutoSkillListTool, createAutoSkillSearchTool, createAutoSkillViewTool, createAutoSkillsLoader, createBashTool, createBatchSubagentSpawnTool, createBuiltinMemoryProvider, createContextManager, createDefaultMemoryProvider, createEditFileTool, createExecTool, createImageTool, createListDirTool, createMemoryAppendTool, createMemoryForgetTool, createMemoryGetTool, createMemoryListTool, createMemoryLogTool, createMemorySearchTool, createMemoryUpdateTool, createMemoryWriteTool, createPendingHitl, createPendingUiTool, createPluginProgressEmitter, createPluginRuntime, createProcessTool, createReadFileTool, createSession, createSessionContextStore, createSessionSearchTool, createSkillListTool, createSkillLoadTool, createSubagentSpawnTool, createSubagentsTool, createUiTool, createWriteFileTool, cronExecutionsPath, defaultUiToolInputSchema, deleteGoal, deleteGoalWorkflow, deleteMemoryFile, discoverAIMaxPlugins, emitGoalUpdatedProgress, ensureBootstrapMountLayout, ensureSession, exportSession, extractWorkflowPlanFromObjective, filterSkillsForAgent, filterToolsForAgent, findAgentDefinition, findSkillByName, flushAccounting, formatApprovalResolution, formatClarifyResolution, formatReviewResolution, generateSessionTitle, getAgentConfig, getMemoryLines, getPluginSystem, goalArtifactsDir, goalDir, goalEventsPath, goalObjectiveMdPath, goalPath, goalWorkflowPlanPath, goalWorkflowStatePath, hasBootstrapSentinel, hitlHistoryPath, initializeGoalWorkflow, initializePluginSystem, inspectBootstrapMountLayout, inspectSession, installClarifyFirstTurnGate, isBootstrapMountLayoutReady, isClarifyFirstTurnBlockedTool, isClarifyWorkflowTask, isContinuationEnabled, isGoalContext, isHitlPauseSignal, isUiToolPauseSignal, listAgents, listAvailableSlashCommands, listBindings, listMemoryFiles, listSessionSummaries, listSessions, listSubagentRunsFromDisk, loadAgentDefinitionsFromDir, loadAgentsConfig, loadArtifactOperations, loadBootstrapFiles, loadCronExecutionRecords, readPendingHitl as loadPendingHitl, readPendingHitl, readPendingUiTool as loadPendingUiTool, readPendingUiTool, loadPluginManifest, loadPluginManifestRegistry, loadPlugins, loadSessionContextSnapshot, loadSessionExportSnapshots, loadSessionMetadata, loadSkillView, loadSkills, loadSkillsFromDirs, loadSkillsWithPluginDirs, loadSubagentRegistryFromDisk, loadSystemPromptSnapshot, loadTranscript, loadWorkflowPromptContext, maybeContinueGoalIfIdle, memoryDir, metadataPath, mirrorGoalStatusToSession, normalizeAgentId, normalizePluginsConfig, normalizeSessionStoreName, parseAgentDefinition, pendingHitlPath, pendingUiToolPath, persistSessionExportSnapshots, preloadPluginSystem, prepareSystemRuntime, prependFirstGoalWorkflowSteeringIfNeeded, prependObjectiveUpdatedSteeringIfNeeded, primaryMemoryPath, publicAgentDefinitions, readGoal, readGoalWorkflowState, readGoalWorkflowSummary, readHitlHistory, readMemoryFile, readPrimaryMemory, readSessionFile, readSessionFileContent, recoverBlockedWorkflowOnUserTurn, registerEmbeddingProvider, registerMemoryProvider, removeAgent, removeBindings, renderGoalPlanMarkdown, repairGoalWorkflowState, replaceMemoryFile, resetEmbeddingProviderRegistryForTests, resetMemoryProviderRegistryForTests, resolveAgentDefinitionsContext, resolveAgentDir, resolveAgentIdByBinding, resolveAgentsConfigPath, resolveDefaultAgentId, resolveEmbeddingProvider, resolveGoalObjective, resolveGoalToolWorkflowView, resolveHitlRequest, resolveHitlRequest as resolvePendingHitl, resolveMemoryProvider, resolveMemoryProviderOrDefault, resolveModelFallbacks, resolveModelString, resolvePendingUiTool, resolvePluginManifestPath, rewriteTranscript, runAgent, saveAgentsConfig, saveSessionMetadata, saveSubagentRegistryToDisk, scanAgentDefinitions, searchMemory, serializeToolsForSnapshot, sessionDir, sessionMemoryPath, sessionToolsSnapshotPath, sessionsDir, shouldContinueGoal, skillsDir, systemPromptSnapshotPath, toolResultsDir, transcriptPath, transitionHitlStatus, updateAgent, updateAgentIdentity, updateGoal, updateSessionMetadata, validatePluginsConfig, validateResume, withGoalWorkflowLock, wrapToolsWithHooks, writeGoal, writeSessionFile };
|