UNPKG

@adonis-agora/agent

Version:

Governed, durable-backed AI agent (chat + tool-calling + governance) for AdonisJS — part of the Agora ecosystem.

113 lines • 9.53 kB
export * from './action-proposal-approval.js'; export * from './action-proposal-executor.js'; export { onActionProposalAdmitted } from './action-proposal-listeners.js'; export * from './action-proposal-outcome.js'; export * from './action-proposal-receipt.js'; export * from './action-proposal-service.js'; export * from './action-proposal-text.js'; export * from './action-proposal-worker.js'; export * from './spi/action-proposal-outcome-store.js'; export * from './spi/background-actor-resolver.js'; export const VERSION = '0.89.2'; // Re-export the configure hook from the package root so `node ace configure` finds it. // AdonisJS imports the package MAIN and reads `configure` off the module namespace — // the `./configure` subpath alone is never consulted. export { configure } from '../configure.js'; export * from './action-proposal-discovery.js'; export { prepareActionProposal } from './action-proposal-preparation.js'; export * from './action-proposal-transitions.js'; export * from './actor-labels.js'; export { AuthActorResolver, HeaderActorResolver, resolveActorResolver, UnconfiguredActorResolver, } from './actor-resolver.js'; export { utcDay } from './agent-deps.js'; export { AgentDepsFactory, delegateToolName, normalizeDelegateEdge, registerDelegateTools, } from './agent-deps-factory.js'; export { APPROVAL_EXPIRED_REASON, DEFAULT_MAX_AGENT_APPEARANCES, exposeStreamErrorDetails, MAX_DELEGATION_DEPTH, outcomeFrame, QuotaExceededError, RUN_FAILED_MESSAGE, RunCancelledError, runAgentLoop, settleAll, streamErrorCode, streamErrorFrame, withBuiltInTools, } from './agent-loop.js'; export { AgentRegistry } from './agent-registry.js'; export { AgentService, AttachmentInventoryError, AttachmentRefusedError, ChatQueueError, RegenerateNeedsThreadError, UnknownAgentError, } from './agent-service.js'; export { AGENT_TOOL_BRAND, AI_TOOL_META_KEY, AiTool, defineTool, isBrandedFunctionalTool, readAiToolMeta, toolNameFromClass, } from './ai-tool-ref.js'; export { AnonymousActorResolver, } from './anonymous-actor-resolver.js'; export { DEFAULT_ALLOWED_ATTACHMENT_CONTENT_TYPES, DEFAULT_MAX_ATTACHMENT_BYTES, } from './attachment-limits.js'; export { ClosedToolAuthorizer, DefaultToolAuthorizer } from './authorizer.js'; export * from './base-tool.js'; export { ChatQueueService, isThreadTurn, } from './chat-queue-service.js'; export { canonicalJson, confirmTokenExpiry, DEFAULT_CONFIRM_TTL_MS, hashConfirmToken, InMemoryConfirmTokenStore, signConfirmToken, verifyConfirmToken, } from './confirm-token.js'; export { CONFIRM_JSON_SCHEMA_PROPERTIES, ConfirmTokenError, defineConfirmedTool, withConfirmFields, } from './confirmed-tool.js'; export { danglingToolCallIds, RUN_ENDED_BEFORE_TOOL_CALL, settleDanglingToolCalls, UNFINISHED_TOOL_CALL, } from './dangling-tool-calls.js'; // ── Data satellite: governed read-only SQL tool ────────────────────────────── export { dataTool, GroupTableAccessPolicy, injectLimit, loadSqlParser, SqlValidationError, SqlValidator, TenantScopeRewriter, } from './data/index.js'; export { RunNotActiveError, settleDeadRun } from './dead-run.js'; // ── Wave 2: Adonis integration shell ───────────────────────────────────────── export { actorDirectories, attachmentStores, defineConfig, governanceQueries, pricingStores, retrievers, stores, streamTransports, tokenSinks, } from './define_config.js'; export * from './delegation.js'; export * from './diagnostics.js'; export { ASK_TOOL_DESCRIPTION, ASK_TOOL_NAME, askInputSchema, askToolDefinition, DEFAULT_INTAKE_PREAMBLE, HumanReplyMismatchError, isHumanDecision, MAX_ASK_QUESTIONS, normalizeElicitationReply, renderElicitationAnswers, resolveElicitation, settleElicitation, } from './elicitation.js'; export { ELICITATION_INPUT_TYPES, isTypedQuestion, questionOptions, readElicitationInput, readElicitationQuestions, validateElicitationAnswer, validateElicitationValue, } from './elicitation-input.js'; export { assertRunnable, } from './engine.js'; export { AgentGenui, } from './genui/factory.js'; export { classifyGenuiError, GenuiRunRecorder, GenuiTurnTelemetry, genuiRowsInRange, observeGenuiFrames, scrubGenuiError, summarizeGenuiCalls, } from './genui-telemetry.js'; export { evaluateGovernanceGate } from './governance-gate.js'; export * from './history-window.js'; export { InProcessTokenStreamSink } from './in-process-sink.js'; export { LucidTokenStreamSink, } from './lucid-token-stream-sink.js'; export { buildMemoryBlock, DEFAULT_MAX_FACT_CHARS, DEFAULT_MAX_MEMORIES, memoryForgetVerdict, memoryWriteVerdict, offerMemories, REMEMBER_TOOL_DESCRIPTION, REMEMBER_TOOL_NAME, rememberInputSchema, rememberToolDefinition, resolveMemoryDigest, writeMemory, } from './memory.js'; export * from './message-timestamps.js'; export * from './negotiated-tool-ui.js'; export { evaluateOwnership } from './ownership.js'; export { parsePartialJson } from './partial-json.js'; export * from './personas.js'; export * from './pricing/bedrock.js'; export * from './pricing/boot-pricing.js'; export * from './pricing/models-dev.js'; export * from './pricing/resolve.js'; export { createFrameBuffer, createIncrementalGate, gateTail, releaseGatedFrames, resolveGateLookback, resolveOutputGateMode, runInputProcessors, runOutputProcessors, } from './processors.js'; export * from './rag/index.js'; export { buildQdrantFilter, chunkIdToPointId, decodeScrollCursor, encodeScrollCursor, QdrantRetriever, QdrantStore, } from './rag/qdrant-store.js'; export * from './rag-media/index.js'; export { RedisTokenStreamSink, } from './redis-token-stream-sink.js'; export { isReplayIntegrityError } from './replay-integrity.js'; export { summarizeLatency, summarizeRunMetrics } from './run-metrics.js'; export { InlineAgentRunner } from './runners/inline-agent-runner.js'; export { actorScope, buildSkillsBlock, compositeSkillProvider, DEFAULT_MAX_SKILLS, defaultScopeResolver, GLOBAL_SCOPE, loadSkill, offerSkills, resolveSkillCatalog, SKILL_TOOL_DESCRIPTION, SKILL_TOOL_NAME, skillInputSchema, skillToolDefinition, skillWriteVerdict, staticSkillProvider, tenantScope, } from './skills.js'; export * from './spi/action-proposal-store.js'; export * from './spi/action-proposal-worker-store.js'; export * from './spi/actor-directory.js'; export * from './spi/actor-resolver.js'; export * from './spi/agent-runner.js'; export * from './spi/agent-store.js'; export { approvalRules, DefaultApprovalPolicy, defaultCanDecide, mayDecideApproval, REQUESTER_APPROVER, toApprovalPolicy, toolCallApprovalFromRow, } from './spi/approval-policy.js'; export * from './spi/attachment-staging.js'; export * from './spi/chat-queue.js'; export * from './spi/confirm-token-store.js'; export * from './spi/embedding-provider.js'; export * from './spi/governance-queries.js'; export * from './spi/history-window.js'; export { findCatalogModel, ModelNotAllowedError, staticModelCatalog, toModelCatalog, withSelectedModel, } from './spi/model-catalog.js'; export * from './spi/model-provider.js'; export * from './spi/pricing-store.js'; export * from './spi/processors.js'; export * from './spi/protocol-adapter.js'; export { exhaustedWindow, isQuotaProvider, QuotaBlockedError, quotaPeriodRange, quotaUsedRatio, quotaWarning, } from './spi/quota-provider.js'; export * from './spi/quota-store.js'; export * from './spi/reranker.js'; export * from './spi/retriever.js'; export * from './spi/roles-policy.js'; export * from './spi/token-stream-sink.js'; export * from './spi/tool.js'; export { AgentSseEncoder, frameToEvents, parseStreamCursor } from './sse.js'; export { lucidStoreConnection } from './stores/factory.js'; export { LedgerQuotaProvider, } from './stores/ledger-quota-provider.js'; export { LucidAgentStore } from './stores/lucid.js'; export { LucidConfirmTokenStore } from './stores/lucid-confirm-tokens.js'; export { LucidGovernanceQueries } from './stores/lucid-governance-queries.js'; export { LucidPricingStore } from './stores/lucid-pricing.js'; export { AGENT_TABLES, channelStateTableStatements, createAgentTables, createTableStatements, dropAgentTables, dropTableStatements, ensureAgentTables, ensureChannelStateTable, ensureStreamFrameTable, schemaRunner, streamFrameTableStatement, } from './stores/lucid-schema.js'; export { DEFAULT_STRUCTURED_OUTPUT_INSTRUCTION, extractJson, repairInstruction, StructuredOutputError, validateStructured, } from './structured-output.js'; export { discoverTools, registerFunctionalTool, registerToolExport, registerToolsFromBarrel, } from './tool-discovery.js'; export * from './tool-filters.js'; export { ALL_AGENTS, DEFAULT_CONFIRM_VERB, fillPresentationTemplate, fillToolConfirmation, humanizeToolName, readPresentationPath, resolveToolConfirmation, } from './tool-presentation.js'; export { ClosedRolesPolicy, DefaultRolesPolicy, ToolDisabledError, ToolForbiddenError, ToolInputDriftError, ToolInputInvalidError, ToolNotFoundError, ToolPreflightDeniedError, ToolRegistry, } from './tool-registry.js'; export { DEFAULT_TOOL_TRANSIENT_RETRY_ATTEMPTS, DEFAULT_TOOL_TRANSIENT_RETRY_BACKOFF_MS, invokeWithTransientRetry, isTransientToolError, } from './tool-retry.js'; export { createNoopEmitUi, createUiCollector, mergeUi, unwrapToolStepOutput, wrapToolStepOutput, } from './tool-ui.js'; export { observeTurnFrames, withTurnFrames, } from './turn-frames.js'; export * from './types.js'; export * from './ui-capabilities.js'; //# sourceMappingURL=index.js.map