@promptbook/utils 0.114.0-4 → 0.114.0-6

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 (78) hide show
  1. package/README.md +3 -3
  2. package/esm/index.es.js +17 -6
  3. package/esm/index.es.js.map +1 -1
  4. package/esm/src/avatars/renderAvatarVisualTerminalText.d.ts +80 -0
  5. package/esm/src/avatars/types/AvatarVisualDefinition.d.ts +54 -0
  6. package/esm/src/book-3.0/AgentTeamConversationWorkspace.d.ts +85 -0
  7. package/esm/src/book-components/Chat/Chat/ChatProps.d.ts +3 -2
  8. package/esm/src/book-components/Chat/utils/renderMarkdown.d.ts +5 -3
  9. package/esm/src/cli/cli-commands/coder/boilerplateCount.d.ts +1 -1
  10. package/esm/src/cli/cli-commands/coder/generate-boilerplates.d.ts +1 -1
  11. package/esm/src/cli/cli-commands/coder/verify.d.ts +1 -1
  12. package/esm/src/cli/cli-commands/common/{harness/$askForHarnessInstallationApproval.d.ts → npm/$askForNpmPackageInstallationApproval.d.ts} +2 -2
  13. package/esm/src/cli/cli-commands/common/{harness/$resolveLatestHarnessVersion.d.ts → npm/$resolveLatestNpmPackageVersion.d.ts} +2 -3
  14. package/esm/src/cli/cli-commands/common/npm/extractNpmPackageVersionFromOutput.d.ts +12 -0
  15. package/esm/src/cli/cli-commands/common/npm/isNpmPackageVersionOutdated.d.ts +9 -0
  16. package/esm/src/cli/cli-commands/common/promptbook-cli/$checkPromptbookCliInstallations.d.ts +9 -0
  17. package/esm/src/cli/cli-commands/common/promptbook-cli/$ensurePromptbookCliInstallations.d.ts +14 -0
  18. package/esm/src/cli/cli-commands/common/promptbook-cli/$ensurePromptbookCliInstallations.test.d.ts +1 -0
  19. package/esm/src/cli/cli-commands/common/promptbook-cli/$resolvePromptbookCliInstallations.d.ts +12 -0
  20. package/esm/src/cli/cli-commands/common/promptbook-cli/$resolvePromptbookCliInstallations.test.d.ts +1 -0
  21. package/esm/src/cli/cli-commands/common/promptbook-cli/$updatePromptbookCliInstallation.d.ts +10 -0
  22. package/esm/src/cli/cli-commands/common/promptbook-cli/PromptbookCliInstallation.d.ts +39 -0
  23. package/esm/src/cli/cli-commands/common/promptbook-cli/PromptbookCliInstallationStatus.d.ts +26 -0
  24. package/esm/src/cli/cli-commands/common/promptbook-cli/buildPromptbookCliInstallCommand.d.ts +7 -0
  25. package/esm/src/cli/cli-commands/common/promptbook-cli/buildPromptbookCliInstallCommand.test.d.ts +1 -0
  26. package/esm/src/cli/cli-commands/common/promptbook-cli/formatPromptbookCliInstallationWarning.d.ts +7 -0
  27. package/esm/src/utils/agent-message-runtime/resolveAgentMessageRuntimeActivity.d.ts +3 -3
  28. package/esm/src/utils/agents/terminalAgentAvatarVisual.d.ts +5 -2
  29. package/esm/src/utils/ascii-art/convertImageDataToAsciiArt.d.ts +6 -0
  30. package/esm/src/utils/ascii-art/createAnsiColorCode.d.ts +46 -0
  31. package/esm/src/utils/misc/debounce.d.ts +4 -2
  32. package/esm/src/utils/misc/debounce.test.d.ts +1 -0
  33. package/esm/src/version.d.ts +1 -1
  34. package/package.json +1 -1
  35. package/umd/index.umd.js +17 -6
  36. package/umd/index.umd.js.map +1 -1
  37. package/umd/src/avatars/renderAvatarVisualTerminalText.d.ts +80 -0
  38. package/umd/src/avatars/renderAvatarVisualTerminalText.test.d.ts +1 -0
  39. package/umd/src/avatars/types/AvatarVisualDefinition.d.ts +54 -0
  40. package/umd/src/book-3.0/AgentTeamConversationWorkspace.d.ts +85 -0
  41. package/umd/src/book-components/Chat/Chat/ChatProps.d.ts +3 -2
  42. package/umd/src/book-components/Chat/utils/renderMarkdown.d.ts +5 -3
  43. package/umd/src/cli/cli-commands/coder/boilerplateCount.d.ts +1 -1
  44. package/umd/src/cli/cli-commands/coder/generate-boilerplates.d.ts +1 -1
  45. package/umd/src/cli/cli-commands/coder/verify.d.ts +1 -1
  46. package/umd/src/cli/cli-commands/common/{harness/$askForHarnessInstallationApproval.d.ts → npm/$askForNpmPackageInstallationApproval.d.ts} +2 -2
  47. package/umd/src/cli/cli-commands/common/{harness/$resolveLatestHarnessVersion.d.ts → npm/$resolveLatestNpmPackageVersion.d.ts} +2 -3
  48. package/umd/src/cli/cli-commands/common/npm/$resolveLatestNpmPackageVersion.test.d.ts +1 -0
  49. package/umd/src/cli/cli-commands/common/npm/extractNpmPackageVersionFromOutput.d.ts +12 -0
  50. package/umd/src/cli/cli-commands/common/npm/extractNpmPackageVersionFromOutput.test.d.ts +1 -0
  51. package/umd/src/cli/cli-commands/common/npm/isNpmPackageVersionOutdated.d.ts +9 -0
  52. package/umd/src/cli/cli-commands/common/npm/isNpmPackageVersionOutdated.test.d.ts +1 -0
  53. package/umd/src/cli/cli-commands/common/promptbook-cli/$checkPromptbookCliInstallations.d.ts +9 -0
  54. package/umd/src/cli/cli-commands/common/promptbook-cli/$ensurePromptbookCliInstallations.d.ts +14 -0
  55. package/umd/src/cli/cli-commands/common/promptbook-cli/$ensurePromptbookCliInstallations.test.d.ts +1 -0
  56. package/umd/src/cli/cli-commands/common/promptbook-cli/$resolvePromptbookCliInstallations.d.ts +12 -0
  57. package/umd/src/cli/cli-commands/common/promptbook-cli/$resolvePromptbookCliInstallations.test.d.ts +1 -0
  58. package/umd/src/cli/cli-commands/common/promptbook-cli/$updatePromptbookCliInstallation.d.ts +10 -0
  59. package/umd/src/cli/cli-commands/common/promptbook-cli/PromptbookCliInstallation.d.ts +39 -0
  60. package/umd/src/cli/cli-commands/common/promptbook-cli/PromptbookCliInstallationStatus.d.ts +26 -0
  61. package/umd/src/cli/cli-commands/common/promptbook-cli/buildPromptbookCliInstallCommand.d.ts +7 -0
  62. package/umd/src/cli/cli-commands/common/promptbook-cli/buildPromptbookCliInstallCommand.test.d.ts +1 -0
  63. package/umd/src/cli/cli-commands/common/promptbook-cli/formatPromptbookCliInstallationWarning.d.ts +7 -0
  64. package/umd/src/utils/agent-message-runtime/resolveAgentMessageRuntimeActivity.d.ts +3 -3
  65. package/umd/src/utils/agents/terminalAgentAvatarVisual.d.ts +5 -2
  66. package/umd/src/utils/ascii-art/convertImageDataToAsciiArt.d.ts +6 -0
  67. package/umd/src/utils/ascii-art/createAnsiColorCode.d.ts +46 -0
  68. package/umd/src/utils/misc/debounce.d.ts +4 -2
  69. package/umd/src/utils/misc/debounce.test.d.ts +1 -0
  70. package/umd/src/version.d.ts +1 -1
  71. package/esm/src/cli/cli-commands/common/harness/extractHarnessVersionFromOutput.d.ts +0 -11
  72. package/esm/src/cli/cli-commands/common/harness/isHarnessVersionOutdated.d.ts +0 -9
  73. package/umd/src/cli/cli-commands/common/harness/extractHarnessVersionFromOutput.d.ts +0 -11
  74. package/umd/src/cli/cli-commands/common/harness/isHarnessVersionOutdated.d.ts +0 -9
  75. /package/esm/src/{cli/cli-commands/common/harness/extractHarnessVersionFromOutput.test.d.ts → avatars/renderAvatarVisualTerminalText.test.d.ts} +0 -0
  76. /package/esm/src/cli/cli-commands/common/{harness/isHarnessVersionOutdated.test.d.ts → npm/$resolveLatestNpmPackageVersion.test.d.ts} +0 -0
  77. /package/{umd/src/cli/cli-commands/common/harness/extractHarnessVersionFromOutput.test.d.ts → esm/src/cli/cli-commands/common/npm/extractNpmPackageVersionFromOutput.test.d.ts} +0 -0
  78. /package/{umd/src/cli/cli-commands/common/harness/isHarnessVersionOutdated.test.d.ts → esm/src/cli/cli-commands/common/npm/isNpmPackageVersionOutdated.test.d.ts} +0 -0
package/README.md CHANGED
@@ -708,7 +708,7 @@ Or you can install them separately:
708
708
 
709
709
  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:
710
710
 
711
- - prompt files with explicit statuses like `[ ]`, `[x]`, and `[-]`
711
+ - prompt files with explicit statuses like `[ ]`, `[^]`, `[x]`, and `[-]`
712
712
  - automatic selection of the next runnable task, including priority support
713
713
  - optional shared repo context loaded from a file such as `AGENTS.md`
714
714
  - automatic `git add`, commit, and push after each successful prompt
@@ -723,11 +723,11 @@ In short: tools like Claude Code, Codex, or GitHub Copilot are the **engines**;
723
723
  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/`.
724
724
  2. `ptbk coder generate-boilerplates` creates prompt files in `prompts/`.
725
725
  3. You replace placeholder `@@@` sections with real coding tasks.
726
- 4. `ptbk coder run` sends the next ready `[ ]` prompt to the selected coding agent.
726
+ 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.
727
727
  5. Promptbook Coder marks the prompt as done `[x]`, records runner metadata, then stages, commits, and pushes the resulting changes.
728
728
  6. `ptbk coder verify` reviews completed prompts, archives finished files to `prompts/done/`, and appends a repair prompt when more work is needed.
729
729
 
730
- Prompts marked with `[-]` are not ready yet, prompts containing `@@@` are treated as not fully written, and prompts with more `!` markers have higher priority.
730
+ 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.
731
731
 
732
732
  #### Features
733
733
 
package/esm/index.es.js CHANGED
@@ -17,7 +17,7 @@ const BOOK_LANGUAGE_VERSION = '2.0.0';
17
17
  * @generated
18
18
  * @see https://github.com/webgptorg/promptbook
19
19
  */
20
- const PROMPTBOOK_ENGINE_VERSION = '0.114.0-4';
20
+ const PROMPTBOOK_ENGINE_VERSION = '0.114.0-6';
21
21
  /**
22
22
  * TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
23
23
  * Note: [💞] Ignore a discrepancy between file name and entity name
@@ -5143,17 +5143,28 @@ function $getCurrentDate() {
5143
5143
  }
5144
5144
 
5145
5145
  /**
5146
- * Handles debounce.
5146
+ * Creates a debounced function that runs after calls have been quiet for the given delay.
5147
5147
  *
5148
5148
  * @public exported from `@promptbook/utils`
5149
5149
  */
5150
5150
  function debounce(fn, delay) {
5151
5151
  let timeout = null;
5152
- return (...args) => {
5153
- if (timeout)
5154
- clearTimeout(timeout);
5155
- timeout = setTimeout(() => fn(...args), delay);
5152
+ const cancel = () => {
5153
+ if (timeout === null) {
5154
+ return;
5155
+ }
5156
+ clearTimeout(timeout);
5157
+ timeout = null;
5158
+ };
5159
+ const debounced = (...args) => {
5160
+ cancel();
5161
+ timeout = setTimeout(() => {
5162
+ timeout = null;
5163
+ fn(...args);
5164
+ }, delay);
5156
5165
  };
5166
+ debounced.cancel = cancel;
5167
+ return debounced;
5157
5168
  }
5158
5169
 
5159
5170
  /**