/** * 黑板 [663]③ — CC 2.1.202+ config key `workflowSizeGuideline`: an ADVISORY size guideline for * LLM-authored workflows (small/medium/large/unrestricted), injected into the Workflow tool's * prompt/description. It is guidance, NOT a cap — the hard ceiling stays `WorkflowLimits.maxAgents`. * * CC 2.1.206 anchors (claude-cli-2.1.206.pretty.js, all verbatim ports): * - `cbd = ["unrestricted", "small", "medium", "large"]` + `Tho = { small: 5, medium: 15, large: 50 }` (:17547695) * - `Hst` normalize (anything else → "unrestricted") (:17547808) * - `Uvs` describe / `qvs` not-a-hard-limit sentence / `dbd` change notice / `Sho` display label / * `ubd` agent cap (:17546855-:17547120) * - `Wvs` — the tool-card section; CC appends it to BOTH `prompt()` and `description()` of the * Workflow tool: `return Bvs + Wvs(Tt().workflowSizeGuideline)` (:17593321). * - Snapshot semantics: CC memoizes the SESSION-START value (`pbd`) so the card is stable within a * session; a mid-session /config change reaches the model via a `workflow_size_guideline_change` * attachment (`fbd`, :19225552) rendered with `dbd`. sema v1 equivalence: the card is built once * per mount (`createRunWorkflowTool`) = per-task snapshot — same stability property. * * TODO(变更 reminder 面): CC's mid-session change lane (`fbd` — scan the transcript for the last * `workflow_size_guideline_change` attachment, compare with the session-start snapshot, emit a new * attachment rendered via `dbd`) needs a per-turn attachment channel sema's engine does not thread to * this module yet. v1 ships static injection only; {@link workflowSizeGuidelineChangeNotice} (the * `dbd` text, verbatim) is exported ready for that lane. */ /** CC `cbd` member type — the config value space. Unknown/absent values normalize to "unrestricted". */ export type WorkflowSizeGuideline = "small" | "medium" | "large" | "unrestricted"; /** CC `cbd` (:17547695) — the enum options, in CC's settings-face order. */ export declare const WORKFLOW_SIZE_GUIDELINES: readonly WorkflowSizeGuideline[]; /** CC `Tho` (:17547695) — the advisory agent count each tier aims under. */ export declare const WORKFLOW_SIZE_GUIDELINE_AGENT_CAPS: Readonly>; /** CC `Hst` — normalize any value to the guideline space; everything unknown is "unrestricted". */ export declare function normalizeWorkflowSizeGuideline(value: unknown): WorkflowSizeGuideline; /** CC `ubd` — the tier's advisory agent count (undefined for "unrestricted"). CC feeds this into its * workflow-size warning thresholds; exported for the same future lane + deployments. */ export declare function workflowSizeGuidelineAgentCap(g: WorkflowSizeGuideline): number | undefined; /** CC `Uvs` — the tier description embedded in the injected sentences (verbatim, em dash included). */ export declare function describeWorkflowSizeGuideline(g: WorkflowSizeGuideline): string; /** CC `Sho` — the settings-face display label ("Dynamic workflow size" enum row). Exported for a * shell's settings 透传 ([663]③: the shell only surfaces the key; the engine hosts it). */ export declare function formatWorkflowSizeGuidelineLabel(g: WorkflowSizeGuideline): string; /** * CC `Wvs` — the section appended to the Workflow tool's prompt AND description (verbatim, including * the leading blank line and the "/config" reference — the settings face both CC and sema shells * expose). "unrestricted" (or unset/unknown, via `Hst` normalization) injects NOTHING — the card * stays byte-identical to the guideline-less form. */ export declare function workflowSizeGuidelineSection(value: unknown): string; /** CC `dbd` — the mid-session change notice (verbatim). Not yet emitted by sema (see the module * TODO: needs the per-turn attachment lane CC drives via `fbd`); exported ready for it. */ export declare function workflowSizeGuidelineChangeNotice(g: WorkflowSizeGuideline): string; //# sourceMappingURL=workflow-size-guideline.d.ts.map