temp
This commit is contained in:
22
dist/tools/prd-api.js
vendored
Normal file
22
dist/tools/prd-api.js
vendored
Normal file
@@ -0,0 +1,22 @@
|
||||
"use strict";
|
||||
// =============================================================================
|
||||
// Pure PRD API. The store is module-level so atlas.ts can inspect it after each
|
||||
// turn (it imports `prdStore` from prd.ts which re-exports from here). Keep
|
||||
// this module side-effect-free otherwise.
|
||||
// =============================================================================
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.prdStore = void 0;
|
||||
exports.finalizePrd = finalizePrd;
|
||||
exports.getPrd = getPrd;
|
||||
/** sessionKey (workspaceRoot) → PRD markdown */
|
||||
exports.prdStore = new Map();
|
||||
function finalizePrd(sessionKey, content) {
|
||||
exports.prdStore.set(sessionKey, content);
|
||||
return {
|
||||
saved: true,
|
||||
message: 'PRD saved. Let the user know their product requirements document is ready and the platform will now architect the technical solution.',
|
||||
};
|
||||
}
|
||||
function getPrd(sessionKey) {
|
||||
return exports.prdStore.get(sessionKey) ?? null;
|
||||
}
|
||||
Reference in New Issue
Block a user