UNPKG

@adonis-agora/agent

Version:

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

27 lines • 2.87 kB
/** * Serving helpers for the `@adonis-agora/agent-dashboard` governance SPA — the config shape, the * mount/gate decisions, and the pure path/asset helpers. Framework-light (no AdonisJS router/app * dependency), so they're unit-testable in isolation and reusable by BOTH dashboard providers: * * - `@adonis-agora/agent/dashboard_provider` (this package, `providers/dashboard_provider.ts`) — * embedded: registered automatically by `node ace configure @adonis-agora/agent`, serves the SPA * bundle copied into THIS package's own `dist/assets/spa` at build time. * - `@adonis-agora/agent-dashboard`'s own provider (`agent_dashboard_provider.ts`) — standalone: an * independently installable/registrable package some apps already depend on directly. * * Living here (rather than in `@adonis-agora/agent-dashboard`) keeps the dependency direction * one-way: the dashboard package already depends on this one for `AgentConfig`/`ActorResolver`/etc., * so a package.json edge back from here to there would be circular. See * `providers/dashboard_provider.ts`'s module doc for the full story. */ export type { AuthorizeDecision, AuthorizeResult } from '../authorize-decision.js'; export type { AgentConsoleAuthorize, AgentConsoleAuthorizeResult, AgentConsoleAuthorizer, AuthorizeByTokenOptions, ConsoleAuthorize, ConsoleAuthorizeResult, ConsoleAuthorizer, ConsoleAuthorizerClass, ConsoleTenants, } from '../console-authorize.js'; export { anyAuthorize, authorizeByToken, NO_CONSOLE_AUTHORIZE_WARNING, warnNoConsoleAuthorizeOnce, } from '../console-authorize.js'; export type { AccessDeniedInfo, AccessDeniedPageOptions, AccessDeniedReason, } from './access_denied_page.js'; export { CONSOLE as ACCESS_DENIED_CONSOLE, escapeHtml, renderAccessDeniedPage, resolveAccessDeniedPage, } from './access_denied_page.js'; export { type ConsoleShellIdentity, type ConsoleSignOut, type ConsoleViewer, consoleShellIdentity, csrfTokenOf, resolveSignOut, resolveViewer, type SignOutOption, type ViewerHook, viewerFromUser, } from './console_shell.js'; export { type AccessDeniedOption, type AccessDeniedRenderer, type AgentDashboardAuthorize, type AgentDashboardConfig, type DashboardMountDecision, decideDashboardMount, type ResolvedAgentDashboardConfig, resolveDashboardConfig, } from './define_config.js'; export { answerConsoleDenialJson, answerDashboardDenial, type DashboardDenialOptions, type DashboardGateOptions, type DashboardGateVerdict, evaluateDashboardGate, } from './gate.js'; export { apiBaseFor, CONFIG_ELEMENT_ID, contentTypeFor, injectApiBase, injectBaseHref, mountPathFor, safeAssetSegments, trimSlashes, } from './paths.js'; export { AGENT_CONSOLE_ID, type AgentConsoleRegistration, agentConsoleDecision, consoleShellConfig, registerAgentConsole, searchAgentConsole, switcherShellConfig, } from './switcher.js'; //# sourceMappingURL=index.d.ts.map