@promptbook/templates 0.112.0-42 → 0.112.0-43

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/README.md CHANGED
@@ -426,6 +426,7 @@ Prompts marked with `[-]` are not ready yet, prompts containing `@@@` are treate
426
426
  - **Reasoning control:** `--thinking-level low|medium|high|xhigh` for supported runners
427
427
  - **Interactive or unattended runs:** default wait mode, or `--no-wait` for batch execution
428
428
  - **Git safety:** clean working tree check by default, optional `--ignore-git-changes`
429
+ - **Opt-in remote pushes:** commits stay local unless you explicitly pass `--auto-push`
429
430
  - **Prompt triage:** `--priority` to process only more important tasks first
430
431
  - **Failure logging:** failed runs write a neighboring `.error.log`
431
432
  - **Line-ending normalization:** changed files are normalized back to LF by default
@@ -443,6 +444,8 @@ npx ts-node ./src/cli/test/ptbk.ts coder generate-boilerplates --template prompt
443
444
 
444
445
  npx ts-node ./src/cli/test/ptbk.ts coder run --agent github-copilot --model gpt-5.4 --thinking-level xhigh --context AGENTS.md
445
446
 
447
+ npx ts-node ./src/cli/test/ptbk.ts coder run --agent github-copilot --model gpt-5.4 --thinking-level xhigh --context AGENTS.md --auto-push
448
+
446
449
  npx ts-node ./src/cli/test/ptbk.ts coder run --agent github-copilot --model gpt-5.4 --thinking-level xhigh --context AGENTS.md --ignore-git-changes --no-wait
447
450
 
448
451
  npx ts-node ./src/cli/test/ptbk.ts coder find-refactor-candidates
@@ -465,9 +468,11 @@ npx ptbk coder generate-boilerplates
465
468
 
466
469
  npx ptbk coder generate-boilerplates --template prompts/templates/common.md
467
470
 
468
- npx ptbk coder run --agent github-copilot --model gpt-5.4 --thinking-level xhigh --context AGENTS.md
471
+ npx ptbk coder run --agent github-copilot --model gpt-5.4 --thinking-level xhigh --context AGENTS.md --test npm run test
472
+
473
+ npx ptbk coder run --agent github-copilot --model gpt-5.4 --thinking-level xhigh --context AGENTS.md --auto-push
469
474
 
470
- npx ptbk coder run --agent github-copilot --model gpt-5.4 --thinking-level xhigh --context AGENTS.md --ignore-git-changes --no-wait
475
+ npx ptbk coder run --agent github-copilot --model gpt-5.4 --thinking-level xhigh --context AGENTS.md --test npm run test --ignore-git-changes --no-wait
471
476
 
472
477
  npx ptbk coder find-refactor-candidates
473
478
 
@@ -484,7 +489,7 @@ npx ptbk coder verify
484
489
  | ------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --- | ------ | ---- | ----- | ------------------------------------------------------------------------ |
485
490
  | `ptbk coder init` | Creates `prompts/`, `prompts/done/`, the project-generic template files materialized in `prompts/templates/` (currently `common.md`), and a starter `AGENTS.md`; ensures `.env` contains `CODING_AGENT_GIT_NAME`, `CODING_AGENT_GIT_EMAIL`, and `CODING_AGENT_GIT_SIGNING_KEY`; adds helper coder scripts to `package.json`; ensures `.gitignore` contains `/.tmp`; and configures `.vscode/settings.json` to save pasted prompt images into `prompts/screenshots/`. |
486
491
  | `ptbk coder generate-boilerplates` | Creates new prompt markdown files with fresh emoji tags so you can quickly fill in coding tasks; `--template` accepts either a built-in alias or a markdown file path relative to the project root. |
487
- | `ptbk coder run` | Picks the next ready prompt, appends optional context, runs it through the selected coding agent, marks success or failure, then commits and pushes the result. |
492
+ | `ptbk coder run` | Picks the next ready prompt, appends optional context, runs it through the selected coding agent, can optionally verify each attempt with a shell test command and feed failing output back for retries, then marks success or failure, commits the result, and pushes only when `--auto-push` is enabled. |
488
493
  | `ptbk coder find-refactor-candidates` | Scans the repository for oversized or overpacked files and writes prompt files for likely refactors; `--level <xlow | low | medium | high | xhigh | extreme>` ranges from a very benevolent scan to a very aggressive sweep. |
489
494
  | `ptbk coder verify` | Walks through completed prompts, archives truly finished work, and adds follow-up repair prompts for unfinished results. |
490
495
 
@@ -495,12 +500,14 @@ npx ptbk coder verify
495
500
  | `--agent <name>` | Selects the coding backend. |
496
501
  | `--model <model>` | Chooses the runner model; required for `openai-codex` and `gemini`, optional for `github-copilot`. |
497
502
  | `--context <text-or-file>` | Appends extra instructions inline or from a file like `AGENTS.md`. |
503
+ | `--test <command>` | Runs a verification command after each prompt attempt and feeds failing output back for retries. |
498
504
  | `--thinking-level <level>` | Sets reasoning effort for supported runners. |
499
505
  | `--no-wait` | Skips interactive pauses between prompts for unattended execution. |
500
506
  | `--ignore-git-changes` | Disables the clean-working-tree guard. |
501
507
  | `--priority <n>` | Runs only prompts at or above the given priority. |
502
508
  | `--dry-run` | Prints which prompts are ready instead of executing them. |
503
509
  | `--allow-credits` | Lets OpenAI Codex spend credits when required. |
510
+ | `--auto-push` | Pushes each successful coding-agent commit to the configured remote. |
504
511
  | `--auto-migrate` | Runs testing-server database migrations after each successful prompt. |
505
512
 
506
513
  #### Typical usage pattern