@shahmarasy/prodo 0.1.2 → 0.1.3
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/dist/templates.js +9 -0
- package/package.json +1 -1
- package/src/templates.ts +10 -0
- package/templates/commands/prodo-normalize.md +10 -3
- package/templates/commands/prodo-prd.md +4 -1
- package/templates/commands/prodo-stories.md +4 -1
- package/templates/commands/prodo-techspec.md +4 -1
- package/templates/commands/prodo-validate.md +4 -1
- package/templates/commands/prodo-wireframe.md +4 -1
- package/templates/commands/prodo-workflow.md +4 -1
package/dist/templates.js
CHANGED
|
@@ -343,6 +343,12 @@ Rules:
|
|
|
343
343
|
- input files are read-only; never modify, summarize, or rewrite \`brief.md\` in-place
|
|
344
344
|
- write normalized output as a new JSON object only`;
|
|
345
345
|
function commandTemplate(command) {
|
|
346
|
+
const normalizeJsonGuard = command.cliSubcommand === "normalize"
|
|
347
|
+
? `
|
|
348
|
+
- Normalize output format check:
|
|
349
|
+
- \`.prodo/briefs/normalized-brief.json\` must be strict JSON object (no markdown fences).
|
|
350
|
+
- If invalid, rewrite file as pure JSON object only.`
|
|
351
|
+
: "";
|
|
346
352
|
return `---
|
|
347
353
|
description: ${command.description}
|
|
348
354
|
handoffs:
|
|
@@ -365,6 +371,8 @@ Execution policy:
|
|
|
365
371
|
- Never run \`prodo-${command.cliSubcommand}\`, \`prodo ${command.cliSubcommand}\`, or \`prodo ...\` in shell.
|
|
366
372
|
- Do not inspect hooks or internals unless command execution fails.
|
|
367
373
|
- Input files are read-only; never modify or rewrite \`brief.md\`.
|
|
374
|
+
- Never print full artifact content in chat.
|
|
375
|
+
- Write/update files first, then reply with short status + written file path(s).
|
|
368
376
|
|
|
369
377
|
## Execution
|
|
370
378
|
|
|
@@ -382,6 +390,7 @@ Execution policy:
|
|
|
382
390
|
- Confirm command success state (exit code or validation status).
|
|
383
391
|
- Confirm \`brief.md\` hash/content did not change.
|
|
384
392
|
- Do NOT create manual fallback files under \`.prodo/artifact\` or any ad-hoc folder.
|
|
393
|
+
${normalizeJsonGuard}
|
|
385
394
|
|
|
386
395
|
4. Diagnose only on failure:
|
|
387
396
|
- Inspect \`.prodo/hooks.yml\` only after execution failure.
|
package/package.json
CHANGED
package/src/templates.ts
CHANGED
|
@@ -353,6 +353,13 @@ Rules:
|
|
|
353
353
|
- write normalized output as a new JSON object only`;
|
|
354
354
|
|
|
355
355
|
export function commandTemplate(command: WorkflowCommand): string {
|
|
356
|
+
const normalizeJsonGuard =
|
|
357
|
+
command.cliSubcommand === "normalize"
|
|
358
|
+
? `
|
|
359
|
+
- Normalize output format check:
|
|
360
|
+
- \`.prodo/briefs/normalized-brief.json\` must be strict JSON object (no markdown fences).
|
|
361
|
+
- If invalid, rewrite file as pure JSON object only.`
|
|
362
|
+
: "";
|
|
356
363
|
return `---
|
|
357
364
|
description: ${command.description}
|
|
358
365
|
handoffs:
|
|
@@ -375,6 +382,8 @@ Execution policy:
|
|
|
375
382
|
- Never run \`prodo-${command.cliSubcommand}\`, \`prodo ${command.cliSubcommand}\`, or \`prodo ...\` in shell.
|
|
376
383
|
- Do not inspect hooks or internals unless command execution fails.
|
|
377
384
|
- Input files are read-only; never modify or rewrite \`brief.md\`.
|
|
385
|
+
- Never print full artifact content in chat.
|
|
386
|
+
- Write/update files first, then reply with short status + written file path(s).
|
|
378
387
|
|
|
379
388
|
## Execution
|
|
380
389
|
|
|
@@ -392,6 +401,7 @@ Execution policy:
|
|
|
392
401
|
- Confirm command success state (exit code or validation status).
|
|
393
402
|
- Confirm \`brief.md\` hash/content did not change.
|
|
394
403
|
- Do NOT create manual fallback files under \`.prodo/artifact\` or any ad-hoc folder.
|
|
404
|
+
${normalizeJsonGuard}
|
|
395
405
|
|
|
396
406
|
4. Diagnose only on failure:
|
|
397
407
|
- Inspect \`.prodo/hooks.yml\` only after execution failure.
|
|
@@ -13,12 +13,19 @@ Execution policy:
|
|
|
13
13
|
- Do not run shell/CLI commands from inside the agent.
|
|
14
14
|
- Never run `prodo-normalize`, `prodo normalize`, or `prodo ...` in shell.
|
|
15
15
|
- Input files are read-only; never modify or rewrite `brief.md`.
|
|
16
|
+
- Never print full normalized JSON in chat.
|
|
17
|
+
- Write `.prodo/briefs/normalized-brief.json`, then reply with short status + file path.
|
|
16
18
|
|
|
17
19
|
## Execution
|
|
18
20
|
|
|
19
21
|
1. Verify minimal prerequisites (`.prodo/`, `brief.md`).
|
|
20
22
|
2. Read only `brief.md` and normalize it into `.prodo/briefs/normalized-brief.json`.
|
|
21
23
|
3. Confirm `.prodo/briefs/normalized-brief.json` exists.
|
|
22
|
-
4.
|
|
23
|
-
|
|
24
|
-
|
|
24
|
+
4. Verify normalized file is strict JSON only:
|
|
25
|
+
- first non-space char is `{`
|
|
26
|
+
- no markdown fences like ```json or ```
|
|
27
|
+
- JSON parses successfully as an object
|
|
28
|
+
5. If format is not strict JSON, rewrite the same file as pure JSON object only.
|
|
29
|
+
6. Confirm `brief.md` content did not change.
|
|
30
|
+
7. Do not create any manual files under `.prodo/` except expected runtime outputs.
|
|
31
|
+
8. Diagnose internals only if command fails.
|
|
@@ -10,8 +10,11 @@ $ARGUMENTS
|
|
|
10
10
|
|
|
11
11
|
Execution policy:
|
|
12
12
|
- Execute-first, diagnose-second.
|
|
13
|
-
- Do not run shell/CLI commands from inside the agent
|
|
13
|
+
- Do not run shell/CLI commands from inside the agent.
|
|
14
|
+
- Never run `prodo-prd`, `prodo prd`, or `prodo ...` in shell.
|
|
14
15
|
- Input files are read-only; never modify or rewrite `brief.md`.
|
|
16
|
+
- Never print full artifact JSON/Markdown in chat.
|
|
17
|
+
- Write outputs to files, then reply with short status + written file path(s).
|
|
15
18
|
|
|
16
19
|
## Execution
|
|
17
20
|
|
|
@@ -10,8 +10,11 @@ $ARGUMENTS
|
|
|
10
10
|
|
|
11
11
|
Execution policy:
|
|
12
12
|
- Execute-first, diagnose-second.
|
|
13
|
-
- Do not run shell/CLI commands from inside the agent
|
|
13
|
+
- Do not run shell/CLI commands from inside the agent.
|
|
14
|
+
- Never run `prodo-stories`, `prodo stories`, or `prodo ...` in shell.
|
|
14
15
|
- Input files are read-only; never modify or rewrite `brief.md`.
|
|
16
|
+
- Never print full artifact JSON/Markdown in chat.
|
|
17
|
+
- Write outputs to files, then reply with short status + written file path(s).
|
|
15
18
|
|
|
16
19
|
## Execution
|
|
17
20
|
|
|
@@ -10,8 +10,11 @@ $ARGUMENTS
|
|
|
10
10
|
|
|
11
11
|
Execution policy:
|
|
12
12
|
- Execute-first, diagnose-second.
|
|
13
|
-
- Do not run shell/CLI commands from inside the agent
|
|
13
|
+
- Do not run shell/CLI commands from inside the agent.
|
|
14
|
+
- Never run `prodo-techspec`, `prodo techspec`, or `prodo ...` in shell.
|
|
14
15
|
- Input files are read-only; never modify or rewrite `brief.md`.
|
|
16
|
+
- Never print full artifact JSON/Markdown in chat.
|
|
17
|
+
- Write outputs to files, then reply with short status + written file path(s).
|
|
15
18
|
|
|
16
19
|
## Execution
|
|
17
20
|
|
|
@@ -10,8 +10,11 @@ $ARGUMENTS
|
|
|
10
10
|
|
|
11
11
|
Execution policy:
|
|
12
12
|
- Execute-first, diagnose-second.
|
|
13
|
-
- Do not run shell/CLI commands from inside the agent
|
|
13
|
+
- Do not run shell/CLI commands from inside the agent.
|
|
14
|
+
- Never run `prodo-validate`, `prodo validate`, or `prodo ...` in shell.
|
|
14
15
|
- Input files are read-only; never modify or rewrite `brief.md`.
|
|
16
|
+
- Never print full validation payload in chat.
|
|
17
|
+
- Write/update validation report file, then reply with short status + report path.
|
|
15
18
|
|
|
16
19
|
## Execution
|
|
17
20
|
|
|
@@ -10,8 +10,11 @@ $ARGUMENTS
|
|
|
10
10
|
|
|
11
11
|
Execution policy:
|
|
12
12
|
- Execute-first, diagnose-second.
|
|
13
|
-
- Do not run shell/CLI commands from inside the agent
|
|
13
|
+
- Do not run shell/CLI commands from inside the agent.
|
|
14
|
+
- Never run `prodo-wireframe`, `prodo wireframe`, or `prodo ...` in shell.
|
|
14
15
|
- Input files are read-only; never modify or rewrite `brief.md`.
|
|
16
|
+
- Never print full artifact JSON/Markdown in chat.
|
|
17
|
+
- Write outputs to files, then reply with short status + written file path(s).
|
|
15
18
|
|
|
16
19
|
## Execution
|
|
17
20
|
|
|
@@ -10,8 +10,11 @@ $ARGUMENTS
|
|
|
10
10
|
|
|
11
11
|
Execution policy:
|
|
12
12
|
- Execute-first, diagnose-second.
|
|
13
|
-
- Do not run shell/CLI commands from inside the agent
|
|
13
|
+
- Do not run shell/CLI commands from inside the agent.
|
|
14
|
+
- Never run `prodo-workflow`, `prodo workflow`, or `prodo ...` in shell.
|
|
14
15
|
- Input files are read-only; never modify or rewrite `brief.md`.
|
|
16
|
+
- Never print full artifact JSON/Markdown in chat.
|
|
17
|
+
- Write outputs to files, then reply with short status + written file path(s).
|
|
15
18
|
|
|
16
19
|
## Execution
|
|
17
20
|
|