// @s0nderlabs/anima-core: always-on infrastructure for the anima harness. export const VERSION = '0.0.0' export * from './config' export { format0G } from './format' export { agentPaths, placeholderAgentId } from './paths' export type { AnimaEvent, EventPayload, EventSource, Listener, RouterDeps, } from './events' export { EventQueue, newEventId, listeners, routeLoop } from './events' export type { ToolCall, ToolDef, ToolResult, ToolSchema, JSONSchema, FetchEscalation, EscalationDeps, } from './tools' export { ToolRegistry, zodToJsonSchema, coerceBool, coerceInt, detectFetchEscalation, mergeEscalationResult, runEscalation, } from './tools' export type { ApplyResult, CommandScope, CommandSurface, ParsedSlash, PermissionApi, PermissionToggleMode, SlashCommand, } from './commands' export { COMMAND_REGISTRY, applyPerms, applyYolo, commandsForSurface, findCommand, parseSlash, suggestForPrefix, } from './commands' export type { Brain, BrainCompactionEvent, BrainInferInput, BrainTurn, BrainMessage, BrainProvider, BrainProviderOpts, CompactionOpts, FrozenPrefix, HistoryPersist, FsHistoryPersistOpts, OGComputeBrainOpts, SummarizeFn, } from './brain' export { StubBrain, OGComputeBrain, buildFrozenPrefix, renderFrozenPrefix, DEFAULT_SYSTEM_PROMPT, DEFAULT_COMPACTION_OPTS, SUMMARY_SYSTEM_PROMPT, estimateTokens, shouldCompact, compactHistory, createFsHistoryPersist, sanitizeChannelKey, openComputeLedger, getLedgerBalance, getLedgerDetail, getLedgerDetailReadOnly, depositToLedger, transferFundToProvider, refundFromLedger, retrieveLedgerFunds, closeLedger, type OpenLedgerOpts, type LedgerStatus, type LedgerReadResult, type ProviderSubAccount, BrokerPool, VISION_PROVIDER_DEFAULTS, type BrokerPoolOpts, type ProviderHandle, type ChatCompletionMessage, type ChatCompletionRequest, type ChatCompletionResult, type CompletionTransport, DirectTransport, RouterTransport, buildRouterTransport, RouterAuthError, RouterAuthExpiredError, RouterCreditError, headlessMint, listRouterModels, DEFAULT_ROUTER_BASE_URL, } from './brain' export type { MemoryType, MemoryPartition, MemoryFrontmatter, MemoryTopic, MemoryIndexEntry, MemoryIndex, EditOp, EditAction, ThreatScanResult, } from './memory' export { parseTopic, stringifyTopic, scanForThreats, applyEdit, EditError, parseIndex, stringifyIndex, readIndexFile, writeIndexFile, addEntryLine, removeEntryLine, readTopic, writeTopic, topicPath, makeMemorySaveTool, type MemorySaveArgs, makeMemoryReadTool, type MemoryReadArgs, makeMemoryListTool, type MemoryListArgs, type MemoryListAgentFile, type MemoryListSlotEntry, ensureSyntheticIndexEntries, STANDARD_SYNTHETIC_INDEX_FILES, type SyntheticIndexFile, type SyntheticIndexResult, INDEX_LINE_LIMIT, INDEX_BYTE_LIMIT, syncMemory, defaultMemorySyncTargets, type SyncMemoryOpts, type SyncMemoryResult, type SyncTarget, MEMORY_BLOB_VERSION, deriveMemoryKey, encryptMemoryBytes, decryptMemoryBytes, syncActivityLog, type SyncActivityOpts, type SyncActivityResult, MemorySyncManager, type MemorySyncManagerOpts, type FlushResult, syncProfile, restoreProfile, type ProfileSyncOpts, type ProfileSyncResult, type RestoreProfileOpts, PACK_BLOB_VERSION, encodePackBlob, decodePackBlob, isV2Envelope, type PackBlob, type EncodePackOpts, gatherAgentPack, gatherUserPack, writeAgentPack, writeUserPack, type GatherResult, } from './memory' export type { Storage } from './storage' export { LocalStubStorage, OGStorage, type OGStorageOpts, INDEXER_URL, downloadBlobByRoot, downloadBlobViaDiscoveredNodes, encrypt as encryptBytes, decrypt as decryptBytes, packEnvelope, unpackEnvelope, type EncryptedEnvelope, } from './storage' export { encryptKey, decryptKey, generateAgentWallet, saveKeystore, loadKeystore, type EncryptedKeystore, type AgentWalletMaterial, OPERATOR_KEYSTORE_VERSION, OPERATOR_BLOB_SCOPES, type OperatorBlobScope, encryptAgentKey, decryptAgentKey, encryptOperatorBlob, decryptOperatorBlob, encodeKeystoreBytes, decodeKeystoreBytes, encodeOperatorBlobBytes, decodeOperatorBlobBytes, sniffKeystoreVersion, deriveKeystoreKey, deriveBlobKey, deriveLegacyEmptyDomainKey, tryDecryptKeystoreWithKey, tryDecryptOperatorBlobWithKey, type OperatorEncryptedKeystore, type OperatorEncryptedBlob, OPERATOR_SESSION_VERSION, DEFAULT_OPERATOR_SESSION_TTL_MS, type OperatorSession, type OperatorSessionKeys, type PrecomputeAllScopesOpts, type PrecomputeVerifyKey, operatorSessionPath, writeOperatorSession, readOperatorSession, clearOperatorSession, isOperatorSessionFresh, isOperatorSessionComplete, requiredScopesForAgent, getSessionKey, precomputeAllScopes, buildOperatorSession, drainAgentEOA, type DrainAgentResult, } from './wallet' export type { AgentIdentity, IdentityProvider } from './identity' export { StubIdentity, AnimaAgentNFTClient, AnimaAgentNFTReader, AGENT_NFT_ABI, buildMintEntries, bootstrapHashFor, ANIMA_AGENT_NFT_ADDRESS, ANIMA_INBOX_ADDRESS, ANIMA_MARKET_ADDRESS, EXPLORER_BASE, INTELLIGENT_DATA_SLOTS, type IntelligentDataSlot, type IntelligentDataEntry, type MintParams, type MintResult, type UpdateSlot, type NetworkName, slotIndex, explorerTxUrl, explorerTokenUrl, mintAgent, iNFTAgentId, type MintAgentOpts, derivePubkeyHex, persistKeystoreToStorage, reEncryptKeystoreForRecipient, restoreKeystoreFromStorage, type BuildTransferHashesArgs, type TransferProofPreimageArgs, buildTransferHashes, signTransferProof, transferProofPreimage, uploadKeystore, saveKeystoreLocally, uploadAndAnchorKeystore, fetchKeystore, fetchAndDecryptKeystore, type UploadKeystoreOpts, type UploadKeystoreResult, type FetchKeystoreOpts, type FetchKeystoreResult, inspectAgent, inspectSlot, inspectTx, diffAgent, type InspectAgentOpts, type InspectAgentResult, type SlotInspection, type DecryptStatus, type SlotDiff, type DiffAgentOpts, type TxInspection, } from './identity' export { SannClient, SANN_ADDRESSES, SANN_SUFFIX, sannNamehash, subnameNode, readRegistryOwner, resolveSubnameAddress, type SannClientOpts, AnimaRegistrarClient, ANIMA_REGISTRAR_ADDRESS, isLabelTaken, mainnetReadOnlyClient, type AnimaRegistrarClientOpts, SUBNAME_LABEL_RE, validateSubnameLabel, type SubnameValidation, } from './naming' export { type OperatorSigner, KeychainOperatorSigner, KeystoreFileOperatorSigner, RawPrivkeyOperatorSigner, WalletConnectOperatorSigner, ANIMA_WC_PROJECT_ID, type WalletConnectOperatorSignerOptions, } from './operator' export { waitForReceiptResilient } from './identity/receipt' export { MIN_GAS_PRICE, STORAGE_SUBMIT_GAS, getGasPriceWithFloor, makeViemClients, ogChain, type ViemClients, } from './chain' export { Runtime, type RuntimeDeps, ActivityLog, type ActivityEntry } from './runtime' export { acquireScopedLock, clearStaleScopedLock, DEFAULT_LOCK_TTL_SECONDS, type AcquireScopedLockOpts, type AcquireScopedLockResult, type ClearStaleScopedLockReason, type ClearStaleScopedLockResult, type ScopedLockHandle, } from './locks' export { PairingStore, PAIRING_ALPHABET, PAIRING_CODE_LENGTH, PAIRING_CODE_TTL_SECONDS, PAIRING_RATE_LIMIT_SECONDS, PAIRING_LOCKOUT_SECONDS, PAIRING_MAX_PENDING_PER_PLATFORM, PAIRING_MAX_FAILED_ATTEMPTS, type PairingStoreOpts, type PendingEntry, type ApprovedEntry, type PendingListing, type ApprovedListing, type ApproveResult, } from './pairing' export { encryptToPubkey, decryptWithPrivkey, generateBootstrapKeypair, type Option3Envelope, } from './migration' export { HookBus, type HookName, type HookHandler, type PreToolCallContext, type PreToolCallResult, type PostToolCallContext, loadPlugins, type PluginContext, type NativePlugin, type PluginLoadResult, type PluginLoaderDeps, type DelegateBrainFactory, type DelegateBrainFactoryOpts, type DelegateBrainHandle, type DelegateBrainTurn, type VisionInferFn, type VisionInferInput, type VisionInferImage, makeToolSearchTool, type ToolSearchArgs, } from './plugins' export { detectDangerousCommand, DANGEROUS_PATTERNS, PathGuard, type PathGuardOpts, type PathGuardResult, redactEnv, type EnvRedactResult, PermissionService, type PermissionMode, type PermissionDecision, type PermissionRequest, type PermissionPrompter, type PermissionServiceOpts, type DangerousMatch, } from './permission' export type { SkillFrontmatter, SkillRef, SkillSource } from './skills' export { scanSkills, parseFrontmatter as parseSkillFrontmatter, matchTriggers as matchSkillTriggers, matchFilePattern, matchBashPattern, type SkillScannerOptions, type SkillTriggerMatch, } from './skills' export { discoverMcpServers, McpManager, McpStdioClient, type McpDiscoveryOptions, type McpServerConfig, type McpServerStdio, type McpServerHttp, type McpToolMeta, type McpDiscoveryResult, } from './mcp' export { discoverClaudeExtras, type ClaudeExtrasOptions, type ClaudeCommand, type ClaudeAgent, type ClaudeExtrasDiscoveryResult, } from './claude-plugins' export { LocalBackend, MacOSSandboxExecBackend, DockerBackend, makeSandboxBackend, buildSeatbeltProfile, type SandboxBackend, type SandboxBackendOpts, type SandboxMode, type SandboxSpawnRequest, type WrappedSpawn, type SeatbeltProfileOpts, type MakeSandboxOpts, type DockerBackendOpts, } from './sandbox' export { SANDBOX_SERVING_ABI, SANDBOX_SETTLEMENT_GALILEO, SANDBOX_NIP_IO_HOST, SANDBOX_TEE_SIGNER_GALILEO, SANDBOX_PROVIDER_GALILEO, SANDBOX_PROVIDER_URL_GALILEO, SANDBOX_BURN_RATE_OG_PER_HOUR, SANDBOX_DEFAULT_INITIAL_DEPOSIT_OG, type BuildSandboxEndpointOpts, buildSandboxEndpoint, type SignedRequest, type SignedHeaders, type SignRequestOpts, signRequest, type SandboxResources, type CreateSandboxBody, type SandboxRecord, type ToolboxExecBody, type ToolboxExecResponse, type ProviderInfo, type ProviderListing, type SandboxProviderClientOpts, SandboxProviderClient, type SettlementClientOpts, SandboxSettlementClient, getSandboxBillingReserve, } from './og-sandbox' export { AutoTopupManager, type AutoTopupOpts, type AutoTopupDeps, type AutoTopupEvent, type AutoTopupEventKind, type BrokerLedgerLike, type PublicClientLike, ROUTER_PAYMENT_LAYER, PAYMENT_LAYER_ABI, getRouterCreditBalance, depositRouterCredit, RouterAutoTopupManager, type RouterAutoTopupOpts, type RouterAutoTopupDeps, } from './economy'