@promptbook/openai 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 +20 -20
  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 +2 -2
  35. package/umd/index.umd.js +19 -19
  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
@@ -721,7 +721,7 @@ Or you can install them separately:
721
721
 
722
722
  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:
723
723
 
724
- - prompt files with explicit statuses like `[ ]`, `[x]`, and `[-]`
724
+ - prompt files with explicit statuses like `[ ]`, `[^]`, `[x]`, and `[-]`
725
725
  - automatic selection of the next runnable task, including priority support
726
726
  - optional shared repo context loaded from a file such as `AGENTS.md`
727
727
  - automatic `git add`, commit, and push after each successful prompt
@@ -736,11 +736,11 @@ In short: tools like Claude Code, Codex, or GitHub Copilot are the **engines**;
736
736
  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/`.
737
737
  2. `ptbk coder generate-boilerplates` creates prompt files in `prompts/`.
738
738
  3. You replace placeholder `@@@` sections with real coding tasks.
739
- 4. `ptbk coder run` sends the next ready `[ ]` prompt to the selected coding agent.
739
+ 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.
740
740
  5. Promptbook Coder marks the prompt as done `[x]`, records runner metadata, then stages, commits, and pushes the resulting changes.
741
741
  6. `ptbk coder verify` reviews completed prompts, archives finished files to `prompts/done/`, and appends a repair prompt when more work is needed.
742
742
 
743
- Prompts marked with `[-]` are not ready yet, prompts containing `@@@` are treated as not fully written, and prompts with more `!` markers have higher priority.
743
+ 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.
744
744
 
745
745
  #### Features
746
746
 
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
@@ -2783,28 +2783,28 @@ function serializeError(error) {
2783
2783
  */
2784
2784
  function buildToolInvocationScript(options) {
2785
2785
  const { functionName, functionArgsExpression } = options;
2786
- return `
2787
- const args = ${functionArgsExpression};
2788
- const runtimeContextRaw =
2789
- typeof ${TOOL_RUNTIME_CONTEXT_PARAMETER} === 'undefined'
2790
- ? undefined
2791
- : ${TOOL_RUNTIME_CONTEXT_PARAMETER};
2786
+ return spaceTrim$1((block) => `
2787
+ const args = ${block(functionArgsExpression)};
2788
+ const runtimeContextRaw =
2789
+ typeof ${TOOL_RUNTIME_CONTEXT_PARAMETER} === 'undefined'
2790
+ ? undefined
2791
+ : ${TOOL_RUNTIME_CONTEXT_PARAMETER};
2792
+
2793
+ if (runtimeContextRaw !== undefined && args && typeof args === 'object' && !Array.isArray(args)) {
2794
+ args.${TOOL_RUNTIME_CONTEXT_ARGUMENT} = runtimeContextRaw;
2795
+ }
2792
2796
 
2793
- if (runtimeContextRaw !== undefined && args && typeof args === 'object' && !Array.isArray(args)) {
2794
- args.${TOOL_RUNTIME_CONTEXT_ARGUMENT} = runtimeContextRaw;
2795
- }
2797
+ const toolProgressTokenRaw =
2798
+ typeof ${TOOL_PROGRESS_TOKEN_PARAMETER} === 'undefined'
2799
+ ? undefined
2800
+ : ${TOOL_PROGRESS_TOKEN_PARAMETER};
2796
2801
 
2797
- const toolProgressTokenRaw =
2798
- typeof ${TOOL_PROGRESS_TOKEN_PARAMETER} === 'undefined'
2799
- ? undefined
2800
- : ${TOOL_PROGRESS_TOKEN_PARAMETER};
2801
-
2802
- if (toolProgressTokenRaw !== undefined && args && typeof args === 'object' && !Array.isArray(args)) {
2803
- args.${TOOL_PROGRESS_TOKEN_ARGUMENT} = toolProgressTokenRaw;
2804
- }
2802
+ if (toolProgressTokenRaw !== undefined && args && typeof args === 'object' && !Array.isArray(args)) {
2803
+ args.${TOOL_PROGRESS_TOKEN_ARGUMENT} = toolProgressTokenRaw;
2804
+ }
2805
2805
 
2806
- return await ${functionName}(args);
2807
- `;
2806
+ return await ${functionName}(args);
2807
+ `);
2808
2808
  }
2809
2809
 
2810
2810
  /**