Classification
Polish — internal refactoring, no functional change intended.
Context
This repository carries its own embedded prompt-composition pair
(src/AreaPromptLoader.mjs, src/PromptBuilder.mjs). The same
composition logic has since been generalized into a standalone module,
flowmcp-prompt-generator (one class, one public static method; typed
placeholder sources string/file/function; bidirectional template
validation; torso check; hard PGEN- error codes). The standalone
module is the designated single home for prompt composition — keeping
two implementations invites drift.
The module is currently developed locally and is not yet published.
This migration must not start before the module is published and
pinned like other FlowMCP dependencies.
Expected behavior
AreaPromptLoader/PromptBuilder usages are replaced by the
flowmcp-prompt-generator API.
- Grading-specific assets (area lists, the
prompts/ root, the
APL-/PB- error mapping) remain in this repository as thin
configuration around the generic module.
- The emit-prompts output stays equivalent; any deliberate deviation
is documented in the CHANGELOG.
- The test suite stays fully green; the existing error scenarios
(torso check, empty file, unknown placeholder, persona/goal
constraints) keep equivalent coverage against the new module.
Scope and rollout
- This is a separate, self-contained rollout. Until it lands, the
embedded copy stays functional — no breaking changes are to be
introduced on the side.
- Blocked by: publication of
flowmcp-prompt-generator.
Classification
Polish — internal refactoring, no functional change intended.
Context
This repository carries its own embedded prompt-composition pair
(
src/AreaPromptLoader.mjs,src/PromptBuilder.mjs). The samecomposition logic has since been generalized into a standalone module,
flowmcp-prompt-generator(one class, one public static method; typedplaceholder sources string/file/function; bidirectional template
validation; torso check; hard
PGEN-error codes). The standalonemodule is the designated single home for prompt composition — keeping
two implementations invites drift.
The module is currently developed locally and is not yet published.
This migration must not start before the module is published and
pinned like other FlowMCP dependencies.
Expected behavior
AreaPromptLoader/PromptBuilderusages are replaced by theflowmcp-prompt-generatorAPI.prompts/root, theAPL-/PB-error mapping) remain in this repository as thinconfiguration around the generic module.
is documented in the CHANGELOG.
(torso check, empty file, unknown placeholder, persona/goal
constraints) keep equivalent coverage against the new module.
Scope and rollout
embedded copy stays functional — no breaking changes are to be
introduced on the side.
flowmcp-prompt-generator.