@hanmariyang/drafting 1.6.3 → 1.6.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/api/dist/mcp.js
CHANGED
|
@@ -45,6 +45,10 @@ export function buildMcpServer() {
|
|
|
45
45
|
}, ({ projectId, type, title, parentDocumentId }) => {
|
|
46
46
|
if (!repo.getProject(projectId))
|
|
47
47
|
return fail('project not found');
|
|
48
|
+
// 문서 체인 강제: PRD 외 문서는 부모에서 파생된다 (interview → PRD → feature-spec → IA → user-flow).
|
|
49
|
+
if (type !== 'prd' && !parentDocumentId) {
|
|
50
|
+
return fail(`'${type}' 문서는 parentDocumentId 가 필요합니다 — 문서 체인(PRD → feature-spec → IA → user-flow)을 따라 이전 문서에서 파생시키세요.`);
|
|
51
|
+
}
|
|
48
52
|
if (parentDocumentId && !repo.getDocument(parentDocumentId))
|
|
49
53
|
return fail('parent document not found');
|
|
50
54
|
const d = repo.createDocument({
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hanmariyang/drafting",
|
|
3
|
-
"version": "1.6.
|
|
3
|
+
"version": "1.6.4",
|
|
4
4
|
"description": "AI Planning Workspace — self-hosted, BYOK. Draft PRDs & feature specs via staged AI interviews. Run: npx @hanmariyang/drafting serve",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"homepage": "https://github.com/hanmariyang/drafting",
|