/** * Module-scope constants and small types for {@link DkgNodePlugin}. * * Extracted verbatim from `DkgNodePlugin.ts` to keep the plugin class * manageable. No behavior change — same values/types, only relocated. */ export declare const EXISTING_CONTEXT_GRAPH_ID_DESCRIPTION: string; export declare const OPENCLAW_LOCAL_AGENT_CAPABILITIES: { readonly localChat: true; readonly chatAttachments: true; readonly connectFromUi: true; readonly installNode: true; readonly dkgPrimaryMemory: true; readonly wmImportPipeline: true; readonly nodeServedSkill: true; }; export declare const DEFAULT_DAEMON_URL = "http://127.0.0.1:9200"; export type ChatTurnWriterStateDirSource = 'runtime' | 'env' | 'config' | 'workspace' | 'setup-default' | 'home'; export declare const STATE_DIR_SOURCE_PRIORITY: Record; export declare const OPENCLAW_LOCAL_AGENT_MANIFEST: { readonly packageName: "@origintrail-official/dkg-adapter-openclaw"; readonly setupEntry: "./setup-entry.mjs"; }; /** * Base delay before the first retry of `syncLocalAgentIntegrationState` * after a failed daemon fetch. The retry is exponential — each failure * doubles the previous wait, capped at `LOCAL_AGENT_STATE_RETRY_MAX_DELAY_MS`. * First delay is 5 s (not 1 s) so a cold daemon has a useful grace window * before the first retry fires. */ export declare const LOCAL_AGENT_STATE_RETRY_BASE_DELAY_MS = 5000; /** Cap on the retry delay growth. 60 s matches typical cold-start windows. */ export declare const LOCAL_AGENT_STATE_RETRY_MAX_DELAY_MS = 60000; /** * Delay before the deferred "first-failure" re-probe of the node peer ID * fires after `refreshMemoryResolverState` reports a missing peerId at * register time. Gives the daemon a grace window to finish startup when * the gateway registers before `/api/status` is healthy. Subsequent * recovery is handled by the on-demand `ensureNodePeerId` fired from the * resolver when an actual call needs the peerId. Codex Bug B9. */ export declare const NODE_PEER_ID_DEFERRED_RETRY_DELAY_MS = 5000; /** * Wall-clock TTL for the subscribed-context-graph cache consulted by * `memorySessionResolver.listAvailableContextGraphs`. Once the cache is * older than this, the next resolver call fires a best-effort background * refresh so newly-created or newly-subscribed CGs flow into the * `needs_clarification` choices returned by `dkg_memory_import`. Set * conservatively: the refresh is a single `/api/context-graphs` listing, * cheap enough to run every few turns but not so frequent that it * stampedes the daemon. Codex Bug B23. */ export declare const AVAILABLE_CONTEXT_GRAPH_CACHE_TTL_MS = 30000; /** * R16.3 — Maximum length of the auto-recall query passed to * `DkgMemorySearchManager.searchNarrow` from the `before_prompt_build` * hook. The manager expands every 2+ char token into the SPARQL filter, * so a pasted log/code block can blow up the fan-out cost. 500 chars * preserves enough signal for natural-language turns while bounding * worst-case daemon work per prompt build. */ export declare const AUTO_RECALL_QUERY_MAX_CHARS = 500; //# sourceMappingURL=dkg-node-plugin-constants.d.ts.map