ptbk 0.114.0-4 → 0.114.0-40

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 (2) hide show
  1. package/README.md +9 -9
  2. package/package.json +3 -6
package/README.md CHANGED
@@ -381,7 +381,7 @@ Or you can install them separately:
381
381
 
382
382
  Promptbook Coder is **not another standalone coding model**. It is an orchestration layer over coding agents such as **GitHub Copilot**, **OpenAI Codex**, **Claude Code**, **Opencode**, **Cline**, and **Gemini CLI**. The difference is that Promptbook Coder adds a repeatable repository workflow on top of them:
383
383
 
384
- - prompt files with explicit statuses like `[ ]`, `[x]`, and `[-]`
384
+ - prompt files with explicit statuses like `[ ]`, `[^]`, `[x]`, and `[-]`
385
385
  - automatic selection of the next runnable task, including priority support
386
386
  - optional shared repo context loaded from a file such as `AGENTS.md`
387
387
  - automatic `git add`, commit, and push after each successful prompt
@@ -396,19 +396,19 @@ In short: tools like Claude Code, Codex, or GitHub Copilot are the **engines**;
396
396
  1. `ptbk coder init` prepares the project for the coder workflow, seeds project-owned generic templates in `prompts/templates/`, creates a starter `AGENTS.md` context file, adds helper `npm run coder:*` scripts, ensures `.gitignore` ignores `/.promptbook`, and configures VS Code prompt screenshots in `prompts/screenshots/`.
397
397
  2. `ptbk coder generate-boilerplates` creates prompt files in `prompts/`.
398
398
  3. You replace placeholder `@@@` sections with real coding tasks.
399
- 4. `ptbk coder run` sends the next ready `[ ]` prompt to the selected coding agent.
399
+ 4. `ptbk coder run` sends the next ready `[ ]` prompt to the selected coding agent and immediately marks it as in progress `[^]`, naming the harness, the model and the step which is running.
400
400
  5. Promptbook Coder marks the prompt as done `[x]`, records runner metadata, then stages, commits, and pushes the resulting changes.
401
401
  6. `ptbk coder verify` reviews completed prompts, archives finished files to `prompts/done/`, and appends a repair prompt when more work is needed.
402
402
 
403
- Prompts marked with `[-]` are not ready yet, prompts containing `@@@` are treated as not fully written, and prompts with more `!` markers have higher priority.
403
+ 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.
404
404
 
405
405
  #### Features
406
406
 
407
- - **Multi-runner execution:** `openai-codex`, `github-copilot`, `cline`, `claude-code`, `opencode`, `gemini`
407
+ - **Multi-runner execution:** `openai-codex`, `github-copilot`, `cline`, `claude-code`, `opencode`, `gemini`, `qwen-code`
408
408
  - **Context injection:** `--agent agents/coding/developer.book --context AGENTS.md` or inline extra instructions
409
409
  - **Reasoning control:** `--thinking-level low|medium|high|xhigh` for supported runners
410
410
  - **Unattended or interactive runs:** default auto mode, or `--no-auto` to wait for user confirmation before each prompt
411
- - **Git safety:** clean working tree check by default, optional `--ignore-git-changes`
411
+ - **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
412
412
  - **Opt-in remote pushes:** commits stay local unless you explicitly pass `--auto-push`
413
413
  - **Prompt triage:** `--priority` to process only more important tasks first
414
414
  - **Failure logging:** failed runs write a neighboring `.error.log`
@@ -429,7 +429,7 @@ npx ts-node ./src/cli/test/ptbk.ts coder run --harness github-copilot --model gp
429
429
 
430
430
  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
431
431
 
432
- 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
432
+ 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
433
433
 
434
434
  npx ts-node ./src/cli/test/ptbk.ts coder find-refactor-candidates
435
435
 
@@ -455,7 +455,7 @@ ptbk coder run --harness github-copilot --model gpt-5.4 --thinking-level xhigh -
455
455
 
456
456
  ptbk coder run --harness github-copilot --model gpt-5.4 --thinking-level xhigh --agent agents/coding/developer.book --context AGENTS.md --auto-push
457
457
 
458
- 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
458
+ 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
459
459
 
460
460
  ptbk coder find-refactor-candidates
461
461
 
@@ -481,13 +481,13 @@ ptbk coder verify
481
481
  | Flag | Purpose |
482
482
  | -------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
483
483
  | `--harness <name>` | Selects the coding harness. |
484
- | `--model <model>` | Chooses the runner model; required for `openai-codex` and `gemini`, optional for `github-copilot`. |
484
+ | `--model <model>` | Chooses the runner model; required for `openai-codex`, `gemini` and `qwen-code`, optional for `github-copilot`. |
485
485
  | `--context <text-or-file>` | Appends extra instructions inline or from a file like `AGENTS.md`. |
486
486
  | `--test <command>` | Runs a verification command after each prompt attempt and feeds failing output back for retries. |
487
487
  | `--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`. |
488
488
  | `--thinking-level <level>` | Sets reasoning effort for supported runners. |
489
489
  | `--no-auto` | Waits for user confirmation before each prompt instead of running automatically through the queue. |
490
- | `--ignore-git-changes` | Disables the clean-working-tree guard. |
490
+ | `--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. |
491
491
  | `--priority <n>` | Runs only prompts at or above the given priority. |
492
492
  | `--dry-run` | Prints which prompts are ready instead of executing them. |
493
493
  | `--allow-credits` | Lets OpenAI Codex spend credits when required. |
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ptbk",
3
- "version": "0.114.0-4",
3
+ "version": "0.114.0-40",
4
4
  "description": "Promptbook: Create persistent AI agents that turn your company's scattered knowledge into action",
5
5
  "private": false,
6
6
  "sideEffects": false,
@@ -87,14 +87,11 @@
87
87
  "node": ">=18.18.0",
88
88
  "npm": ">=8.0.0"
89
89
  },
90
- "overrides": {
91
- "zod": "$zod"
92
- },
93
90
  "peerDependencies": {
94
- "@promptbook/core": "0.114.0-4"
91
+ "@promptbook/core": "0.114.0-40"
95
92
  },
96
93
  "dependencies": {
97
- "promptbook": "0.114.0-4"
94
+ "promptbook": "0.114.0-40"
98
95
  },
99
96
  "bin": {
100
97
  "ptbk": "bin/promptbook-cli-proxy.js"