/** * V3 CLI `ruflo agent publish` — ADR-380 §2. * * Emits the AGNTCY-identified, OASF-described agent record (produced * build-time by the companion metaharness ADR-240 §2.1/2.2) to the * configured AGNTCY Directory (https://github.com/agntcy/dir). * * This scaffold does NOT implement the Directory publish protocol — no * SLIM/Directory SDK is installable yet (verified 404 on every plausible * npm/crates.io name). It implements the one thing that IS real without * an external SDK: reading a local OASF-shaped manifest off disk (the * artifact metaharness ADR-240 is responsible for producing) and * validating its shape before attempting a publish, so the eventual * network call has a real payload to send rather than being invented at * publish time. * * NOT WIRED INTO THE MAIN CLI ROUTER YET. This file is exported for a * later integration pass to attach as a new subcommand of the existing * `agent` command (`v3/@claude-flow/cli/src/commands/agent.ts`). */ import type { Command } from '../../types.js'; /** Minimal shape check for the OASF agent record metaharness ADR-240 §2.1/2.2 produces. */ export interface OasfAgentRecordShape { name: unknown; version: unknown; identity?: unknown; capabilities?: unknown; [key: string]: unknown; } export interface OasfValidationResult { valid: boolean; errors: string[]; } /** * Validate that a parsed JSON value looks like an OASF agent record — * deterministic shape check, no network, no LLM. Kept exported so the * test file can exercise it directly without spawning the whole command. */ export declare function validateOasfRecordShape(record: unknown): OasfValidationResult; declare const publishCommand: Command; export { publishCommand as agentPublishCommand }; export default publishCommand; //# sourceMappingURL=publish.d.ts.map