/** * Shared Ruflo instruction sections (#2638). * * The host-neutral half of the project instructions: the text both Claude * Code and Codex should read. In a dual project AGENTS.md carries these * sections once, and CLAUDE.md pulls them in with Claude Code's `@AGENTS.md` * import, adding only Claude-specific guidance. * * Canonical copy: v3/@claude-flow/codex/src/generators/shared-instructions.ts * Mirror: v3/@claude-flow/cli/src/init/shared-instructions.ts * * The two files must stay byte-identical (a CLI test compares them). The CLI * keeps a mirror instead of importing it because it pins a published * @claude-flow/codex release, which cannot see unreleased exports; once the * CLI pins a codex release that ships this module, the mirror can go. * * Pure: no imports, no I/O. */ /** * How the sections invoke the Ruflo CLI. The default is the codex generators' * convention (unversioned, as in AGENTS.md); the CLI passes its own pinned-tag * form so its single-host CLAUDE.md is unchanged. */ export declare const DEFAULT_CLI = "npx @claude-flow/cli"; /** Rules both hosts follow. The Claude-only commit-trailer rule is kept by the CLI. */ export declare const SHARED_RULE_LINES: readonly string[]; /** Position of the Claude-only commit-trailer rule inside the single-host Rules list. */ export declare const CLAUDE_RULE_INSERT_AT = 6; export declare function sharedRules(): string; /** Swarm body shared by both hosts: init command, routing table, when to swarm. */ export declare function swarmRoutingBody(cli?: string): string; export declare function sharedSwarmRouting(cli?: string): string; export declare function sharedMemoryAndLearning(cli?: string): string; export declare function sharedAgentTypes(): string; export declare function sharedBuildAndTest(): string; export declare function sharedCliQuickRef(cli?: string): string; /** * Every shared section, in order. AGENTS.md (dual mode) writes all of them; * a CLAUDE.md that imports AGENTS.md must not repeat any of them. */ export declare function generateSharedInstructions(cli?: string): string[]; /** Claude Code's import line. Must stand on its own line, outside a code block. */ export declare const AGENTS_MD_IMPORT = "@AGENTS.md"; /** True when the text already pulls AGENTS.md in through Claude Code's import syntax. */ export declare function importsAgentsMd(text: string): boolean; //# sourceMappingURL=shared-instructions.d.ts.map