aiwg
Version:
Deployment tool and support utility for AI context. Copies agents, skills, commands, rules, and behaviors into the paths each AI platform reads (Claude Code, Codex, Copilot, Cursor, Warp, OpenClaw, and 6 more) so one source of truth works across 10 platfo
35 lines • 1.62 kB
TypeScript
/**
* Parallelism Cap Section — context-file injector
*
* Generates the markdown section that surfaces the project's
* `.aiwg/aiwg.config` `parallelism` cap in regenerated context files
* (AIWG.md, CLAUDE.md, AGENTS.md). Agents read context at session start;
* having the cap inline means no extra IO every session.
*
* Wrapped in managed-block markers so future regenerations replace the
* section in-place without disturbing operator additions outside it.
*
* Env var `AIWG_HIDE_PARALLELISM_IN_CONTEXT=1` suppresses injection.
*
* @implements #1362
*/
export declare const PARALLELISM_BLOCK_START = "<!-- AIWG-PARALLELISM-CAP:START -->";
export declare const PARALLELISM_BLOCK_END = "<!-- AIWG-PARALLELISM-CAP:END -->";
/**
* Build the parallelism-cap markdown section for injection into context files.
* Returns `''` when injection should be skipped:
* - `AIWG_HIDE_PARALLELISM_IN_CONTEXT=1` is set
* - No `.aiwg/aiwg.config` exists at the project path
*/
export declare function buildParallelismSection(projectPath: string): Promise<string>;
/**
* Replace an existing parallelism-cap block inside `content` (between the
* managed-block markers) with `newSection`. If no block exists yet, appends
* the new section. If `newSection` is empty (cap is hidden), strips any
* existing block in-place.
*
* Used by AIWG.md and AGENTS.md generators when reprocessing a file that
* already has a parallelism block from a prior regeneration.
*/
export declare function replaceOrAppendParallelismBlock(content: string, newSection: string): string;
//# sourceMappingURL=parallelism-section.d.ts.map