import type { AgentResult, RunnerErrorEnvelope, SafetyTemplates, TaskInput } from '@cutie-crypto/connector-core'; import type { CutiePlatformAdapterConfig, PlatformAdapter, PlatformId, PlatformSetupResult } from './base'; /** * `cutie_platform` — 62-1 SPEC §1.1 内部复核节点专属平台 adapter。 * * 承载 backtest_run 与(62-3 SPEC_前向纸面与勋章契约.md §1.1 起) * strategy_paper_tick 两种复核池任务:AgentDash 供给的 `backtest_validation` * runtime(复核池节点)用它跑独立复算,不是 KOL 面向粉丝的 AI 分身/工作台平台。 * 没有本地 AI HTTP gateway(无 OpenClaw/Hermes 那样的进程/workspace/profile 概念), * 因此除 callAgent 的这两个分支外,绝大多数接口方法都是极简 no-op 实现—— * 这是 SPEC 明确要求的"极简(无平台软件依赖)",不是遗漏。 * * 边界(SPEC §1.1 消费者改造清单):`cutie_platform` 不进入 `detectPlatform` 的 * 文件系统自动检测(见 detect.ts),只能通过显式 `--platform cutie_platform` / * `CUTIE_AGENT_PLATFORM=cutie_platform` / 已保存 config.platform 指定——防止普通 * KOL 主机被误判成复核节点。App 端 discover/pair 白名单同样禁止该平台 * (server 侧 `agent_platform.py` PLATFORM_SPECS 拆分,不在本 Connector 改动范围)。 */ export declare class CutiePlatform implements PlatformAdapter { readonly id: PlatformId; private readonly dir; private config; attachConfig(config: CutiePlatformAdapterConfig): void; callAgent(input: TaskInput): Promise; selfUpgrade(targetVersion: string): Promise; augmentHeartbeat(envelope: Record): Record; getCapabilities(): string[]; applySafetyTemplates(_templates: SafetyTemplates): void; getDataDir(): string; /** * cutie_platform 没有独立的第三方平台软件需要"安装检测"——connector 包本身 * 就是复核节点的全部软件栈,config.json 里 platform='cutie_platform' 即代表 * 已完成配置。恒真,避免 CLI setup 流程误判"未安装"而跳过。 */ isInstalled(): boolean; /** 没有本地 AI HTTP gateway,没有 gateway secret 概念。 */ readGatewaySecret(): string | null; /** * ConnectorConfig.gateway_url/agent_model 是跨平台必填字段(config.ts * applyPlatformDefaults 无条件调用),但 cutie_platform 实际不使用它们—— * 返回占位值即可,attachPlatformConfig 也不会把它们透传进 * CutiePlatformAdapterConfig。 */ getDefaultGatewayPort(): number; getDefaultAgentModel(): string; getCutieWorkspaceDir(): string; addCutieAgent(_agentModel: string): boolean; enableResponsesEndpoint(): boolean; configureSessionMaintenance(): boolean; getRestartCommand(): string; /** 复核节点无本地 AI gateway——CLI setup 的 gateway 完整性门槛跳过。 */ requiresLocalGateway(): boolean; /** 复核节点不同步任何 KOL 人格。 */ derivePersonalitySync(): { main_workspace: string; cutie_workspace: string; } | null; coerceAgentModel(serverModel: string | undefined, configModel: string): string; runPlatformSetup(_ctx: { agentsMd?: string; soulMd?: string; agentModel: string; }): Promise; }