@promptbook/cli 0.114.0-19 → 0.114.0-20

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.
Files changed (59) hide show
  1. package/README.md +5 -5
  2. package/esm/index.es.js +1586 -1213
  3. package/esm/index.es.js.map +1 -1
  4. package/esm/scripts/run-codex-prompts/common/CoderRunControlFeedback.d.ts +54 -0
  5. package/esm/scripts/run-codex-prompts/common/applyCoderRunControlKey.d.ts +14 -0
  6. package/esm/scripts/run-codex-prompts/common/buildCoderRunControlKeyBadge.d.ts +7 -0
  7. package/esm/scripts/run-codex-prompts/common/formatCoderRunControlFeedback.d.ts +13 -0
  8. package/esm/scripts/run-codex-prompts/common/listenForCoderRunControls.d.ts +17 -0
  9. package/esm/scripts/run-codex-prompts/common/waitForPause.d.ts +0 -8
  10. package/esm/scripts/run-codex-prompts/common/waitForSkippableWorldTimeDeadline.d.ts +15 -0
  11. package/esm/scripts/run-codex-prompts/prompts/buildPromptLabel.d.ts +6 -0
  12. package/esm/scripts/run-codex-prompts/prompts/buildPromptStatusDetails.d.ts +7 -0
  13. package/esm/scripts/run-codex-prompts/prompts/listPromptsByStatus.d.ts +7 -0
  14. package/esm/scripts/run-codex-prompts/prompts/markPromptDone.d.ts +15 -4
  15. package/esm/scripts/run-codex-prompts/prompts/markPromptFailed.d.ts +34 -1
  16. package/esm/scripts/run-codex-prompts/prompts/promptRunnerAttribution.d.ts +24 -0
  17. package/esm/scripts/run-codex-prompts/prompts/resolveInterruptedPrompt.d.ts +9 -0
  18. package/esm/scripts/run-codex-prompts/ui/CoderRunUiState.d.ts +15 -1
  19. package/esm/scripts/run-codex-prompts/ui/buildCoderRunAgentVisual.d.ts +1 -1
  20. package/esm/scripts/run-codex-prompts/ui/buildCoderRunUiFrame.d.ts +6 -1
  21. package/esm/scripts/run-codex-prompts/ui/buildRunUiFrameShared.d.ts +11 -0
  22. package/esm/src/cli/cli-commands/coder/GitChangesMode.d.ts +28 -0
  23. package/esm/src/cli/cli-commands/common/promptRunnerCliOptions.d.ts +9 -2
  24. package/esm/src/version.d.ts +1 -1
  25. package/package.json +1 -1
  26. package/src/cli/cli-commands/agents-server/startAgentsServer/createLocalAgentRunOptions.ts +1 -1
  27. package/src/cli/cli-commands/coder/GitChangesMode.ts +35 -0
  28. package/src/cli/cli-commands/coder/run.ts +3 -1
  29. package/src/cli/cli-commands/coder/server.ts +1 -1
  30. package/src/cli/cli-commands/common/promptRunnerCliOptions.ts +22 -4
  31. package/src/other/templates/getTemplatesPipelineCollection.ts +778 -706
  32. package/src/utils/agents/terminalAgentAvatarVisual.ts +1 -1
  33. package/src/version.ts +2 -2
  34. package/src/versions.txt +1 -0
  35. package/umd/index.umd.js +1586 -1213
  36. package/umd/index.umd.js.map +1 -1
  37. package/umd/scripts/run-codex-prompts/common/CoderRunControlFeedback.d.ts +54 -0
  38. package/umd/scripts/run-codex-prompts/common/applyCoderRunControlKey.d.ts +14 -0
  39. package/umd/scripts/run-codex-prompts/common/buildCoderRunControlKeyBadge.d.ts +7 -0
  40. package/umd/scripts/run-codex-prompts/common/formatCoderRunControlFeedback.d.ts +13 -0
  41. package/umd/scripts/run-codex-prompts/common/listenForCoderRunControls.d.ts +17 -0
  42. package/umd/scripts/run-codex-prompts/common/waitForPause.d.ts +0 -8
  43. package/umd/scripts/run-codex-prompts/common/waitForSkippableWorldTimeDeadline.d.ts +15 -0
  44. package/umd/scripts/run-codex-prompts/prompts/buildPromptLabel.d.ts +6 -0
  45. package/umd/scripts/run-codex-prompts/prompts/buildPromptStatusDetails.d.ts +7 -0
  46. package/umd/scripts/run-codex-prompts/prompts/listPromptsByStatus.d.ts +7 -0
  47. package/umd/scripts/run-codex-prompts/prompts/markPromptDone.d.ts +15 -4
  48. package/umd/scripts/run-codex-prompts/prompts/markPromptFailed.d.ts +34 -1
  49. package/umd/scripts/run-codex-prompts/prompts/promptRunnerAttribution.d.ts +24 -0
  50. package/umd/scripts/run-codex-prompts/prompts/resolveInterruptedPrompt.d.ts +9 -0
  51. package/umd/scripts/run-codex-prompts/ui/CoderRunUiState.d.ts +15 -1
  52. package/umd/scripts/run-codex-prompts/ui/buildCoderRunAgentVisual.d.ts +1 -1
  53. package/umd/scripts/run-codex-prompts/ui/buildCoderRunUiFrame.d.ts +6 -1
  54. package/umd/scripts/run-codex-prompts/ui/buildRunUiFrameShared.d.ts +11 -0
  55. package/umd/src/cli/cli-commands/coder/GitChangesMode.d.ts +28 -0
  56. package/umd/src/cli/cli-commands/common/promptRunnerCliOptions.d.ts +9 -2
  57. package/umd/src/version.d.ts +1 -1
  58. package/esm/scripts/run-codex-prompts/ui/buildCoderRunOctopusVisual.d.ts +0 -13
  59. package/umd/scripts/run-codex-prompts/ui/buildCoderRunOctopusVisual.d.ts +0 -13
package/README.md CHANGED
@@ -545,7 +545,7 @@ In short: tools like Claude Code, Codex, or GitHub Copilot are the **engines**;
545
545
  5. Promptbook Coder marks the prompt as done `[x]`, records runner metadata, then stages, commits, and pushes the resulting changes.
546
546
  6. `ptbk coder verify` reviews completed prompts, archives finished files to `prompts/done/`, and appends a repair prompt when more work is needed.
547
547
 
548
- Prompts marked with `[-]` are not ready yet, prompts containing `@@@` are treated as not fully written, and prompts with more `!` markers have higher priority. A prompt left as `[^]` was interrupted in the middle of its implementation — the in-progress status is never reverted, so a killed or crashed coder always leaves that signal behind.
548
+ Prompts marked with `[-]` are not ready yet, prompts containing `@@@` are treated as not fully written, and prompts with more `!` markers have higher priority. A prompt left as `[^]` was interrupted in the middle of its implementation — the in-progress status is never reverted, so a killed or crashed coder always leaves that signal behind, and `--git-changes continue` resumes exactly that prompt with its uncommitted changes still in place.
549
549
 
550
550
  #### Features
551
551
 
@@ -553,7 +553,7 @@ Prompts marked with `[-]` are not ready yet, prompts containing `@@@` are treate
553
553
  - **Context injection:** `--agent agents/coding/developer.book --context AGENTS.md` or inline extra instructions
554
554
  - **Reasoning control:** `--thinking-level low|medium|high|xhigh` for supported runners
555
555
  - **Unattended or interactive runs:** default auto mode, or `--no-auto` to wait for user confirmation before each prompt
556
- - **Git safety:** clean working tree check by default, optional `--ignore-git-changes`
556
+ - **Git safety:** clean working tree check by default, or `--git-changes ignore` to keep the changes and `--git-changes continue` to resume an interrupted prompt
557
557
  - **Opt-in remote pushes:** commits stay local unless you explicitly pass `--auto-push`
558
558
  - **Prompt triage:** `--priority` to process only more important tasks first
559
559
  - **Failure logging:** failed runs write a neighboring `.error.log`
@@ -574,7 +574,7 @@ npx ts-node ./src/cli/test/ptbk.ts coder run --harness github-copilot --model gp
574
574
 
575
575
  npx ts-node ./src/cli/test/ptbk.ts coder run --harness github-copilot --model gpt-5.4 --thinking-level xhigh --agent agents/coding/developer.book --context AGENTS.md --auto-push
576
576
 
577
- npx ts-node ./src/cli/test/ptbk.ts coder run --harness github-copilot --model gpt-5.4 --thinking-level xhigh --agent agents/coding/developer.book --context AGENTS.md --ignore-git-changes
577
+ npx ts-node ./src/cli/test/ptbk.ts coder run --harness github-copilot --model gpt-5.4 --thinking-level xhigh --agent agents/coding/developer.book --context AGENTS.md --git-changes ignore
578
578
 
579
579
  npx ts-node ./src/cli/test/ptbk.ts coder find-refactor-candidates
580
580
 
@@ -600,7 +600,7 @@ ptbk coder run --harness github-copilot --model gpt-5.4 --thinking-level xhigh -
600
600
 
601
601
  ptbk coder run --harness github-copilot --model gpt-5.4 --thinking-level xhigh --agent agents/coding/developer.book --context AGENTS.md --auto-push
602
602
 
603
- ptbk coder run --harness github-copilot --model gpt-5.4 --thinking-level xhigh --agent agents/coding/developer.book --context AGENTS.md --test npm run test --ignore-git-changes
603
+ ptbk coder run --harness github-copilot --model gpt-5.4 --thinking-level xhigh --agent agents/coding/developer.book --context AGENTS.md --test npm run test --git-changes ignore
604
604
 
605
605
  ptbk coder find-refactor-candidates
606
606
 
@@ -632,7 +632,7 @@ ptbk coder verify
632
632
  | `--test-before <mode>` | Runs tests before coding: `no` (default), `yes-and-fail` (stop with results), or `yes-and-fix` (create one repair prompt first); defaults to `npm test` when enabled without `--test`. |
633
633
  | `--thinking-level <level>` | Sets reasoning effort for supported runners. |
634
634
  | `--no-auto` | Waits for user confirmation before each prompt instead of running automatically through the queue. |
635
- | `--ignore-git-changes` | Disables the clean-working-tree guard. |
635
+ | `--git-changes <mode>` | Decides what happens with a dirty working tree: `fail` (default), `ignore` to keep the changes, or `continue` to resume the single interrupted `[^]` prompt with them. |
636
636
  | `--priority <n>` | Runs only prompts at or above the given priority. |
637
637
  | `--dry-run` | Prints which prompts are ready instead of executing them. |
638
638
  | `--allow-credits` | Lets OpenAI Codex spend credits when required. |