@promptbook/node 0.114.0-3 → 0.114.0-31

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 (388) hide show
  1. package/README.md +10 -18
  2. package/esm/index.es.js +2124 -4853
  3. package/esm/index.es.js.map +1 -1
  4. package/esm/scripts/run-agent-messages/messages/buildAgentGoalChatPromptSection.d.ts +26 -0
  5. package/esm/scripts/run-agent-messages/messages/buildAgentMessagePrompt.d.ts +12 -1
  6. package/esm/scripts/run-agent-messages/messages/buildAgentProjectsPromptSection.d.ts +2 -14
  7. package/esm/scripts/run-agent-messages/messages/buildAgentTeamPromptSection.d.ts +12 -0
  8. package/esm/scripts/run-codex-prompts/common/runGoScript/$spawnLoggedBashScript.d.ts +25 -0
  9. package/esm/scripts/run-codex-prompts/common/runGoScript/$terminateLoggedBashProcessTree.d.ts +11 -0
  10. package/esm/scripts/run-codex-prompts/common/runGoScript/scriptExecutionLog.d.ts +4 -0
  11. package/esm/scripts/run-codex-prompts/common/waitForPause.d.ts +92 -0
  12. package/esm/scripts/run-codex-prompts/common/waitForSkippableWorldTimeDeadline.d.ts +15 -0
  13. package/esm/scripts/run-codex-prompts/runners/claude-code/ClaudeCodeRunner.d.ts +15 -0
  14. package/esm/scripts/run-codex-prompts/runners/claude-code/parseClaudeCodeOutputEvents.d.ts +3 -0
  15. package/esm/scripts/run-codex-prompts/runners/claude-code/parseClaudeCodeSubscriptionUsage.d.ts +11 -0
  16. package/esm/scripts/run-codex-prompts/runners/common/estimateUsageFromTextLength.d.ts +33 -0
  17. package/esm/scripts/run-codex-prompts/runners/common/modelPricing.d.ts +41 -0
  18. package/esm/scripts/run-codex-prompts/runners/gemini/gemini-pricing.d.ts +5 -18
  19. package/esm/scripts/run-codex-prompts/runners/openai-codex/OpenAiCodexRunner.d.ts +8 -0
  20. package/esm/scripts/run-codex-prompts/runners/openai-codex/buildCodexUsageFromOutput.d.ts +4 -1
  21. package/esm/scripts/run-codex-prompts/runners/openai-codex/getCodexSubscriptionUsage.d.ts +19 -0
  22. package/esm/scripts/run-codex-prompts/runners/qwen-code/QwenCodeRunner.d.ts +23 -0
  23. package/esm/scripts/run-codex-prompts/runners/qwen-code/buildQwenCodeScript.d.ts +8 -0
  24. package/esm/scripts/run-codex-prompts/runners/qwen-code/parseQwenCodeUsageFromOutput.d.ts +9 -0
  25. package/esm/scripts/run-codex-prompts/runners/qwen-code/qwen-code-pricing.d.ts +30 -0
  26. package/esm/scripts/run-codex-prompts/runners/types/HarnessSubscriptionUsage.d.ts +43 -0
  27. package/esm/src/_packages/components.index.d.ts +4 -0
  28. package/esm/src/_packages/types.index.d.ts +4 -0
  29. package/esm/src/avatars/renderAvatarVisualTerminalText.d.ts +80 -0
  30. package/esm/src/avatars/types/AvatarVisualDefinition.d.ts +54 -0
  31. package/esm/src/book-2.0/agent-source/AgentBasicInformation.d.ts +3 -3
  32. package/esm/src/book-2.0/agent-source/AgentSourceParseResult.d.ts +5 -0
  33. package/esm/src/book-2.0/agent-source/ParsedUnknownCommitment.d.ts +26 -0
  34. package/esm/src/book-2.0/agent-source/getBookCommitmentLineType.d.ts +19 -0
  35. package/esm/src/book-3.0/AgentMessageRunReport.d.ts +46 -0
  36. package/esm/src/book-3.0/AgentPlannedMessagesSidecar.d.ts +127 -0
  37. package/esm/src/book-3.0/AgentTeamConversationWorkspace.d.ts +85 -0
  38. package/esm/src/book-3.0/cliAgentEnv.d.ts +3 -3
  39. package/esm/src/book-3.0/createAgentMessageSidecarBaseName.d.ts +13 -0
  40. package/esm/src/book-3.0/describeAgentPlannedMessageSchedule.d.ts +31 -0
  41. package/esm/src/book-components/BookEditor/createDeprecatedCommitmentDiagnostics.browser.d.ts +1 -9
  42. package/esm/src/book-components/BookEditor/createDuplicateFromCommitmentDiagnostics.d.ts +28 -0
  43. package/esm/src/book-components/BookEditor/createUnknownCommitmentDiagnostics.d.ts +28 -0
  44. package/esm/src/book-components/Chat/Chat/ChatProps.d.ts +3 -2
  45. package/esm/src/book-components/Chat/Chat/renderAgentProjectDiff.d.ts +13 -0
  46. package/esm/src/book-components/Chat/Chat/renderAgentProjectToolCallDetails.d.ts +16 -0
  47. package/esm/src/book-components/Chat/utils/agentProjectToolCall.d.ts +85 -0
  48. package/esm/src/book-components/Chat/utils/externalSourceToolCall.d.ts +38 -0
  49. package/esm/src/book-components/Chat/utils/renderMarkdown.d.ts +68 -3
  50. package/esm/src/book-components/Chat/utils/timeoutToolCallPresentation.d.ts +30 -0
  51. package/esm/src/cli/cli-commands/coder/$ensureCoderHarnessGitignoreRules.d.ts +9 -0
  52. package/esm/src/cli/cli-commands/coder/GitChangesMode.d.ts +28 -0
  53. package/esm/src/cli/cli-commands/coder/boilerplateCount.d.ts +52 -0
  54. package/esm/src/cli/cli-commands/coder/ensureCoderGitignoreFile.d.ts +14 -1
  55. package/esm/src/cli/cli-commands/coder/generate-boilerplates.d.ts +4 -3
  56. package/esm/src/cli/cli-commands/coder/verify.d.ts +1 -1
  57. package/esm/src/cli/cli-commands/coder/waitOptions.d.ts +12 -0
  58. package/esm/src/cli/cli-commands/common/$askForConfirmation.d.ts +9 -0
  59. package/esm/src/cli/cli-commands/common/harness/$applyHarnessInstallationStatus.d.ts +1 -1
  60. package/esm/src/cli/cli-commands/common/harness/$checkHarnessInstallation.d.ts +3 -3
  61. package/esm/src/cli/cli-commands/common/harness/$ensureHarnessInstallations.d.ts +3 -3
  62. package/esm/src/cli/cli-commands/common/harness/$resolveHarnessCommandPath.d.ts +14 -0
  63. package/esm/src/cli/cli-commands/common/harness/$resolveHarnessInstallationOrigin.d.ts +10 -0
  64. package/esm/src/cli/cli-commands/common/harness/$runHarnessInstallationCommand.d.ts +43 -0
  65. package/esm/src/cli/cli-commands/common/harness/HarnessDefinition.d.ts +36 -0
  66. package/esm/src/cli/cli-commands/common/harness/HarnessInstallationOrigin.d.ts +36 -0
  67. package/esm/src/cli/cli-commands/common/harness/HarnessInstallationStatus.d.ts +8 -2
  68. package/esm/src/cli/cli-commands/common/harness/HarnessUpdatePlan.d.ts +23 -0
  69. package/esm/src/cli/cli-commands/common/harness/buildHarnessInstallCommand.d.ts +4 -1
  70. package/esm/src/cli/cli-commands/common/harness/formatHarnessManualUpdateInstruction.d.ts +8 -0
  71. package/esm/src/cli/cli-commands/common/harness/resolveHarnessInstallationMethodFromPaths.d.ts +31 -0
  72. package/esm/src/cli/cli-commands/common/harness/resolveHarnessUpdatePlan.d.ts +12 -0
  73. package/esm/src/cli/cli-commands/common/harnessUpdateCliOptions.d.ts +29 -0
  74. package/{umd/src/cli/cli-commands/common/harness/$askForHarnessInstallationApproval.d.ts → esm/src/cli/cli-commands/common/npm/$askForNpmPackageInstallationApproval.d.ts} +2 -2
  75. package/{umd/src/cli/cli-commands/common/harness/$resolveLatestHarnessVersion.d.ts → esm/src/cli/cli-commands/common/npm/$resolveLatestNpmPackageVersion.d.ts} +2 -3
  76. package/esm/src/cli/cli-commands/common/npm/$resolveNpmGlobalPrefixPath.d.ts +9 -0
  77. package/esm/src/cli/cli-commands/common/npm/buildNpmPackageInstallCommand.d.ts +12 -0
  78. package/esm/src/cli/cli-commands/common/npm/extractNpmPackageVersionFromOutput.d.ts +12 -0
  79. package/esm/src/cli/cli-commands/common/npm/isNpmPackageVersionOutdated.d.ts +12 -0
  80. package/esm/src/cli/cli-commands/common/projectInitialization.d.ts +6 -0
  81. package/esm/src/cli/cli-commands/common/promptRunnerCliOptions.d.ts +17 -4
  82. package/esm/src/cli/cli-commands/common/promptbook-cli/$checkPromptbookCliInstallations.d.ts +9 -0
  83. package/esm/src/cli/cli-commands/common/promptbook-cli/$ensurePromptbookCliInstallations.d.ts +14 -0
  84. package/esm/src/cli/cli-commands/common/promptbook-cli/$resolvePromptbookCliInstallations.d.ts +12 -0
  85. package/esm/src/cli/cli-commands/common/promptbook-cli/$updatePromptbookCliInstallation.d.ts +10 -0
  86. package/esm/src/cli/cli-commands/common/promptbook-cli/PromptbookCliInstallation.d.ts +66 -0
  87. package/esm/src/cli/cli-commands/common/promptbook-cli/PromptbookCliInstallationStatus.d.ts +26 -0
  88. package/esm/src/cli/cli-commands/common/promptbook-cli/buildPromptbookCliInstallCommand.d.ts +7 -0
  89. package/esm/src/cli/cli-commands/common/promptbook-cli/formatPromptbookCliInstallationWarning.d.ts +7 -0
  90. package/esm/src/collection/agent-collection/constructors/agent-collection-in-supabase/AgentCollectionInSupabase.d.ts +15 -0
  91. package/esm/src/commitments/{COMPONENT/COMPONENT.d.ts → META_FULLNAME/META_FULLNAME.d.ts} +8 -5
  92. package/esm/src/commitments/META_ID/META_ID.d.ts +32 -0
  93. package/esm/src/commitments/WRITING_RULES/WRITING_RULES.d.ts +14 -7
  94. package/esm/src/commitments/index.d.ts +4 -12
  95. package/esm/src/executables/platforms/locateAppOnWindows.d.ts +1 -1
  96. package/esm/src/llm-providers/agent/Agent.d.ts +1 -1
  97. package/esm/src/llm-providers/openai/OpenAiAgentKitExecutionToolsToolBuilder.d.ts +1 -1
  98. package/esm/src/{commitments/USE_BROWSER → scrapers/_common/utils}/fetchUrlContent.d.ts +2 -3
  99. package/esm/src/utils/agent-message-runtime/AgentMessageProjectChange.d.ts +76 -0
  100. package/esm/src/utils/agent-message-runtime/AgentMessageTouchedExternalSource.d.ts +45 -0
  101. package/esm/src/utils/agent-message-runtime/parseAgentMessageRuntimeLogEvents.d.ts +62 -0
  102. package/esm/src/utils/agent-message-runtime/resolveAgentMessageRuntimeActivity.d.ts +3 -3
  103. package/esm/src/utils/agent-message-runtime/resolveAgentMessageTouchedExternalSources.d.ts +18 -0
  104. package/esm/src/utils/agent-message-runtime/resolveAgentMessageTouchedProjectNames.d.ts +19 -0
  105. package/esm/src/utils/agents/terminalAgentAvatarVisual.d.ts +5 -2
  106. package/esm/src/utils/ascii-art/convertImageDataToAsciiArt.d.ts +6 -0
  107. package/esm/src/utils/ascii-art/createAnsiColorCode.d.ts +46 -0
  108. package/esm/src/utils/misc/debounce.d.ts +4 -2
  109. package/esm/src/utils/misc/debounce.test.d.ts +1 -0
  110. package/esm/src/utils/misc/emojis.d.ts +3 -2
  111. package/esm/src/utils/random/$generateBookBoilerplate.test.d.ts +1 -0
  112. package/esm/src/version.d.ts +1 -1
  113. package/package.json +2 -5
  114. package/umd/index.umd.js +2124 -4854
  115. package/umd/index.umd.js.map +1 -1
  116. package/umd/scripts/run-agent-messages/messages/buildAgentGoalChatPromptSection.d.ts +26 -0
  117. package/umd/scripts/run-agent-messages/messages/buildAgentMessagePrompt.d.ts +12 -1
  118. package/umd/scripts/run-agent-messages/messages/buildAgentProjectsPromptSection.d.ts +2 -14
  119. package/umd/scripts/run-agent-messages/messages/buildAgentTeamPromptSection.d.ts +12 -0
  120. package/umd/scripts/run-codex-prompts/common/runGoScript/$spawnLoggedBashScript.d.ts +25 -0
  121. package/umd/scripts/run-codex-prompts/common/runGoScript/$terminateLoggedBashProcessTree.d.ts +11 -0
  122. package/umd/scripts/run-codex-prompts/common/runGoScript/scriptExecutionLog.d.ts +4 -0
  123. package/umd/scripts/run-codex-prompts/common/waitForPause.d.ts +92 -0
  124. package/umd/scripts/run-codex-prompts/common/waitForSkippableWorldTimeDeadline.d.ts +15 -0
  125. package/umd/scripts/run-codex-prompts/runners/claude-code/ClaudeCodeRunner.d.ts +15 -0
  126. package/umd/scripts/run-codex-prompts/runners/claude-code/parseClaudeCodeOutputEvents.d.ts +3 -0
  127. package/umd/scripts/run-codex-prompts/runners/claude-code/parseClaudeCodeSubscriptionUsage.d.ts +11 -0
  128. package/umd/scripts/run-codex-prompts/runners/common/estimateUsageFromTextLength.d.ts +33 -0
  129. package/umd/scripts/run-codex-prompts/runners/common/modelPricing.d.ts +41 -0
  130. package/umd/scripts/run-codex-prompts/runners/gemini/gemini-pricing.d.ts +5 -18
  131. package/umd/scripts/run-codex-prompts/runners/openai-codex/OpenAiCodexRunner.d.ts +8 -0
  132. package/umd/scripts/run-codex-prompts/runners/openai-codex/buildCodexUsageFromOutput.d.ts +4 -1
  133. package/umd/scripts/run-codex-prompts/runners/openai-codex/getCodexSubscriptionUsage.d.ts +19 -0
  134. package/umd/scripts/run-codex-prompts/runners/qwen-code/QwenCodeRunner.d.ts +23 -0
  135. package/umd/scripts/run-codex-prompts/runners/qwen-code/buildQwenCodeScript.d.ts +8 -0
  136. package/umd/scripts/run-codex-prompts/runners/qwen-code/parseQwenCodeUsageFromOutput.d.ts +9 -0
  137. package/umd/scripts/run-codex-prompts/runners/qwen-code/qwen-code-pricing.d.ts +30 -0
  138. package/umd/scripts/run-codex-prompts/runners/types/HarnessSubscriptionUsage.d.ts +43 -0
  139. package/umd/src/_packages/components.index.d.ts +4 -0
  140. package/umd/src/_packages/types.index.d.ts +4 -0
  141. package/umd/src/avatars/renderAvatarVisualTerminalText.d.ts +80 -0
  142. package/umd/src/avatars/renderAvatarVisualTerminalText.test.d.ts +1 -0
  143. package/umd/src/avatars/types/AvatarVisualDefinition.d.ts +54 -0
  144. package/umd/src/book-2.0/agent-source/AgentBasicInformation.d.ts +3 -3
  145. package/umd/src/book-2.0/agent-source/AgentSourceParseResult.d.ts +5 -0
  146. package/umd/src/book-2.0/agent-source/ParsedUnknownCommitment.d.ts +26 -0
  147. package/umd/src/book-2.0/agent-source/createAgentModelRequirements.commitmentAggregation.test.d.ts +1 -0
  148. package/umd/src/book-2.0/agent-source/createAgentModelRequirementsWithCommitments.unknown.test.d.ts +1 -0
  149. package/umd/src/book-2.0/agent-source/getBookCommitmentLineType.d.ts +19 -0
  150. package/umd/src/book-2.0/agent-source/parseAgentSourceWithCommitments.unknown.test.d.ts +1 -0
  151. package/umd/src/book-3.0/AgentMessageRunReport.d.ts +46 -0
  152. package/umd/src/book-3.0/AgentPlannedMessagesSidecar.d.ts +127 -0
  153. package/umd/src/book-3.0/AgentPlannedMessagesSidecar.test.d.ts +1 -0
  154. package/umd/src/book-3.0/AgentTeamConversationWorkspace.d.ts +85 -0
  155. package/umd/src/book-3.0/cliAgentEnv.d.ts +3 -3
  156. package/umd/src/book-3.0/createAgentMessageSidecarBaseName.d.ts +13 -0
  157. package/umd/src/book-3.0/describeAgentPlannedMessageSchedule.d.ts +31 -0
  158. package/umd/src/book-components/BookEditor/createDeprecatedCommitmentDiagnostics.browser.d.ts +1 -9
  159. package/umd/src/book-components/BookEditor/createDuplicateFromCommitmentDiagnostics.d.ts +28 -0
  160. package/umd/src/book-components/BookEditor/createDuplicateFromCommitmentDiagnostics.test.d.ts +1 -0
  161. package/umd/src/book-components/BookEditor/createUnknownCommitmentDiagnostics.d.ts +28 -0
  162. package/umd/src/book-components/BookEditor/createUnknownCommitmentDiagnostics.test.d.ts +1 -0
  163. package/umd/src/book-components/Chat/Chat/ChatProps.d.ts +3 -2
  164. package/umd/src/book-components/Chat/Chat/renderAgentProjectDiff.d.ts +13 -0
  165. package/umd/src/book-components/Chat/Chat/renderAgentProjectToolCallDetails.d.ts +16 -0
  166. package/umd/src/book-components/Chat/utils/agentProjectToolCall.d.ts +85 -0
  167. package/umd/src/book-components/Chat/utils/agentProjectToolCall.test.d.ts +1 -0
  168. package/umd/src/book-components/Chat/utils/externalSourceToolCall.d.ts +38 -0
  169. package/umd/src/book-components/Chat/utils/renderMarkdown.d.ts +68 -3
  170. package/umd/src/book-components/Chat/utils/timeoutToolCallPresentation.d.ts +30 -0
  171. package/umd/src/cli/cli-commands/coder/$ensureCoderHarnessGitignoreRules.d.ts +9 -0
  172. package/umd/src/cli/cli-commands/coder/$ensureCoderHarnessGitignoreRules.test.d.ts +1 -0
  173. package/umd/src/cli/cli-commands/coder/GitChangesMode.d.ts +28 -0
  174. package/umd/src/cli/cli-commands/coder/boilerplateCount.d.ts +52 -0
  175. package/umd/src/cli/cli-commands/coder/boilerplateCount.test.d.ts +1 -0
  176. package/umd/src/cli/cli-commands/coder/ensureCoderGitignoreFile.d.ts +14 -1
  177. package/umd/src/cli/cli-commands/coder/generate-boilerplates.d.ts +4 -3
  178. package/umd/src/cli/cli-commands/coder/generate-boilerplates.test.d.ts +1 -0
  179. package/umd/src/cli/cli-commands/coder/server.test.d.ts +1 -0
  180. package/umd/src/cli/cli-commands/coder/verify.d.ts +1 -1
  181. package/umd/src/cli/cli-commands/coder/waitOptions.d.ts +12 -0
  182. package/umd/src/cli/cli-commands/common/$askForConfirmation.d.ts +9 -0
  183. package/umd/src/cli/cli-commands/common/harness/$applyHarnessInstallationStatus.d.ts +1 -1
  184. package/umd/src/cli/cli-commands/common/harness/$checkHarnessInstallation.d.ts +3 -3
  185. package/umd/src/cli/cli-commands/common/harness/$checkHarnessInstallation.test.d.ts +1 -0
  186. package/umd/src/cli/cli-commands/common/harness/$ensureHarnessInstallations.d.ts +3 -3
  187. package/umd/src/cli/cli-commands/common/harness/$resolveHarnessCommandPath.d.ts +14 -0
  188. package/umd/src/cli/cli-commands/common/harness/$resolveHarnessInstallationOrigin.d.ts +10 -0
  189. package/umd/src/cli/cli-commands/common/harness/$runHarnessInstallationCommand.d.ts +43 -0
  190. package/umd/src/cli/cli-commands/common/harness/HarnessDefinition.d.ts +36 -0
  191. package/umd/src/cli/cli-commands/common/harness/HarnessInstallationOrigin.d.ts +36 -0
  192. package/umd/src/cli/cli-commands/common/harness/HarnessInstallationStatus.d.ts +8 -2
  193. package/umd/src/cli/cli-commands/common/harness/HarnessUpdatePlan.d.ts +23 -0
  194. package/umd/src/cli/cli-commands/common/harness/buildHarnessInstallCommand.d.ts +4 -1
  195. package/umd/src/cli/cli-commands/common/harness/formatHarnessManualUpdateInstruction.d.ts +8 -0
  196. package/umd/src/cli/cli-commands/common/harness/formatHarnessManualUpdateInstruction.test.d.ts +1 -0
  197. package/umd/src/cli/cli-commands/common/harness/resolveHarnessInstallationMethodFromPaths.d.ts +31 -0
  198. package/umd/src/cli/cli-commands/common/harness/resolveHarnessInstallationMethodFromPaths.test.d.ts +1 -0
  199. package/umd/src/cli/cli-commands/common/harness/resolveHarnessUpdatePlan.d.ts +12 -0
  200. package/umd/src/cli/cli-commands/common/harness/resolveHarnessUpdatePlan.test.d.ts +1 -0
  201. package/umd/src/cli/cli-commands/common/harnessUpdateCliOptions.d.ts +29 -0
  202. package/umd/src/cli/cli-commands/common/harnessUpdateCliOptions.test.d.ts +1 -0
  203. package/{esm/src/cli/cli-commands/common/harness/$askForHarnessInstallationApproval.d.ts → umd/src/cli/cli-commands/common/npm/$askForNpmPackageInstallationApproval.d.ts} +2 -2
  204. package/{esm/src/cli/cli-commands/common/harness/$resolveLatestHarnessVersion.d.ts → umd/src/cli/cli-commands/common/npm/$resolveLatestNpmPackageVersion.d.ts} +2 -3
  205. package/umd/src/cli/cli-commands/common/npm/$resolveLatestNpmPackageVersion.test.d.ts +1 -0
  206. package/umd/src/cli/cli-commands/common/npm/$resolveNpmGlobalPrefixPath.d.ts +9 -0
  207. package/umd/src/cli/cli-commands/common/npm/buildNpmPackageInstallCommand.d.ts +12 -0
  208. package/umd/src/cli/cli-commands/common/npm/buildNpmPackageInstallCommand.test.d.ts +1 -0
  209. package/umd/src/cli/cli-commands/common/npm/extractNpmPackageVersionFromOutput.d.ts +12 -0
  210. package/umd/src/cli/cli-commands/common/npm/extractNpmPackageVersionFromOutput.test.d.ts +1 -0
  211. package/umd/src/cli/cli-commands/common/npm/isNpmPackageVersionOutdated.d.ts +12 -0
  212. package/umd/src/cli/cli-commands/common/npm/isNpmPackageVersionOutdated.test.d.ts +1 -0
  213. package/umd/src/cli/cli-commands/common/projectInitialization.d.ts +6 -0
  214. package/umd/src/cli/cli-commands/common/promptRunnerCliOptions.d.ts +17 -4
  215. package/umd/src/cli/cli-commands/common/promptbook-cli/$checkPromptbookCliInstallations.d.ts +9 -0
  216. package/umd/src/cli/cli-commands/common/promptbook-cli/$checkPromptbookCliInstallations.test.d.ts +1 -0
  217. package/umd/src/cli/cli-commands/common/promptbook-cli/$ensurePromptbookCliInstallations.d.ts +14 -0
  218. package/umd/src/cli/cli-commands/common/promptbook-cli/$ensurePromptbookCliInstallations.test.d.ts +1 -0
  219. package/umd/src/cli/cli-commands/common/promptbook-cli/$resolvePromptbookCliInstallations.d.ts +12 -0
  220. package/umd/src/cli/cli-commands/common/promptbook-cli/$resolvePromptbookCliInstallations.test.d.ts +1 -0
  221. package/umd/src/cli/cli-commands/common/promptbook-cli/$updatePromptbookCliInstallation.d.ts +10 -0
  222. package/umd/src/cli/cli-commands/common/promptbook-cli/$updatePromptbookCliInstallation.test.d.ts +1 -0
  223. package/umd/src/cli/cli-commands/common/promptbook-cli/PromptbookCliInstallation.d.ts +66 -0
  224. package/umd/src/cli/cli-commands/common/promptbook-cli/PromptbookCliInstallationStatus.d.ts +26 -0
  225. package/umd/src/cli/cli-commands/common/promptbook-cli/buildPromptbookCliInstallCommand.d.ts +7 -0
  226. package/umd/src/cli/cli-commands/common/promptbook-cli/formatPromptbookCliInstallationWarning.d.ts +7 -0
  227. package/umd/src/collection/agent-collection/constructors/agent-collection-in-supabase/AgentCollectionInSupabase.d.ts +15 -0
  228. package/umd/src/commitments/{COMPONENT/COMPONENT.d.ts → META_FULLNAME/META_FULLNAME.d.ts} +8 -5
  229. package/umd/src/commitments/META_ID/META_ID.d.ts +32 -0
  230. package/umd/src/commitments/WRITING_RULES/WRITING_RULES.d.ts +14 -7
  231. package/umd/src/commitments/index.d.ts +4 -12
  232. package/umd/src/executables/platforms/locateAppOnWindows.d.ts +1 -1
  233. package/umd/src/executables/platforms/locateAppOnWindows.test.d.ts +1 -0
  234. package/umd/src/llm-providers/agent/Agent.d.ts +1 -1
  235. package/umd/src/llm-providers/openai/OpenAiAgentKitExecutionToolsToolBuilder.d.ts +1 -1
  236. package/umd/src/{commitments/USE_BROWSER → scrapers/_common/utils}/fetchUrlContent.d.ts +2 -3
  237. package/umd/src/utils/agent-message-runtime/AgentMessageProjectChange.d.ts +76 -0
  238. package/umd/src/utils/agent-message-runtime/AgentMessageTouchedExternalSource.d.ts +45 -0
  239. package/umd/src/utils/agent-message-runtime/parseAgentMessageRuntimeLogEvents.d.ts +62 -0
  240. package/umd/src/utils/agent-message-runtime/resolveAgentMessageRuntimeActivity.d.ts +3 -3
  241. package/umd/src/utils/agent-message-runtime/resolveAgentMessageTouchedExternalSources.d.ts +18 -0
  242. package/umd/src/utils/agent-message-runtime/resolveAgentMessageTouchedExternalSources.test.d.ts +1 -0
  243. package/umd/src/utils/agent-message-runtime/resolveAgentMessageTouchedProjectNames.d.ts +19 -0
  244. package/umd/src/utils/agent-message-runtime/resolveAgentMessageTouchedProjectNames.test.d.ts +1 -0
  245. package/umd/src/utils/agents/terminalAgentAvatarVisual.d.ts +5 -2
  246. package/umd/src/utils/ascii-art/convertImageDataToAsciiArt.d.ts +6 -0
  247. package/umd/src/utils/ascii-art/createAnsiColorCode.d.ts +46 -0
  248. package/umd/src/utils/misc/debounce.d.ts +4 -2
  249. package/umd/src/utils/misc/debounce.test.d.ts +1 -0
  250. package/umd/src/utils/misc/emojis.d.ts +3 -2
  251. package/umd/src/utils/random/$generateBookBoilerplate.test.d.ts +1 -0
  252. package/umd/src/version.d.ts +1 -1
  253. package/esm/src/cli/cli-commands/common/harness/$installHarness.d.ts +0 -13
  254. package/esm/src/cli/cli-commands/common/harness/extractHarnessVersionFromOutput.d.ts +0 -11
  255. package/esm/src/cli/cli-commands/common/harness/isHarnessVersionOutdated.d.ts +0 -9
  256. package/esm/src/commitments/MEMORY/MEMORY.d.ts +0 -48
  257. package/esm/src/commitments/MEMORY/MemoryToolNames.d.ts +0 -11
  258. package/esm/src/commitments/MEMORY/MemoryToolRuntimeAdapter.d.ts +0 -149
  259. package/esm/src/commitments/MEMORY/createMemorySystemMessage.d.ts +0 -6
  260. package/esm/src/commitments/MEMORY/createMemoryToolFunctions.d.ts +0 -8
  261. package/esm/src/commitments/MEMORY/createMemoryTools.d.ts +0 -14
  262. package/esm/src/commitments/MEMORY/getMemoryCommitmentDocumentation.d.ts +0 -6
  263. package/esm/src/commitments/MEMORY/getMemoryToolRuntimeAdapterOrDisabledResult.d.ts +0 -17
  264. package/esm/src/commitments/MEMORY/getMemoryToolTitles.d.ts +0 -7
  265. package/esm/src/commitments/MEMORY/parseMemoryToolArgs.d.ts +0 -61
  266. package/esm/src/commitments/MEMORY/resolveMemoryRuntimeContext.d.ts +0 -8
  267. package/esm/src/commitments/MEMORY/setMemoryToolRuntimeAdapter.d.ts +0 -13
  268. package/esm/src/commitments/META/META.d.ts +0 -65
  269. package/esm/src/commitments/USE/aggregateUseCommitmentSystemMessages.d.ts +0 -32
  270. package/esm/src/commitments/USE_BROWSER/USE_BROWSER.d.ts +0 -58
  271. package/esm/src/commitments/USE_BROWSER/fetchUrlContentViaBrowser.d.ts +0 -13
  272. package/esm/src/commitments/USE_BROWSER/resolveRunBrowserToolForNode.d.ts +0 -10
  273. package/esm/src/commitments/USE_DEEPSEARCH/USE_DEEPSEARCH.d.ts +0 -47
  274. package/esm/src/commitments/USE_EMAIL/USE_EMAIL.d.ts +0 -38
  275. package/esm/src/commitments/USE_EMAIL/parseUseEmailCommitmentContent.d.ts +0 -21
  276. package/esm/src/commitments/USE_EMAIL/resolveSendEmailToolForNode.d.ts +0 -11
  277. package/esm/src/commitments/USE_EMAIL/sendEmailViaBrowser.d.ts +0 -13
  278. package/esm/src/commitments/USE_SEARCH_ENGINE/USE_SEARCH_ENGINE.d.ts +0 -46
  279. package/esm/src/commitments/USE_SPAWN/USE_SPAWN.d.ts +0 -38
  280. package/esm/src/commitments/USE_SPAWN/resolveSpawnAgentToolForNode.d.ts +0 -9
  281. package/esm/src/commitments/USE_SPAWN/spawnAgentViaBrowser.d.ts +0 -12
  282. package/esm/src/commitments/USE_TIME/USE_TIME.d.ts +0 -43
  283. package/esm/src/commitments/USE_TIMEOUT/TimeoutToolNames.d.ts +0 -11
  284. package/esm/src/commitments/USE_TIMEOUT/TimeoutToolRuntimeAdapter.d.ts +0 -212
  285. package/esm/src/commitments/USE_TIMEOUT/USE_TIMEOUT.d.ts +0 -38
  286. package/esm/src/commitments/USE_TIMEOUT/createTimeoutSystemMessage.d.ts +0 -6
  287. package/esm/src/commitments/USE_TIMEOUT/createTimeoutToolFunctions.d.ts +0 -8
  288. package/esm/src/commitments/USE_TIMEOUT/createTimeoutTools.d.ts +0 -7
  289. package/esm/src/commitments/USE_TIMEOUT/getTimeoutToolRuntimeAdapterOrDisabledResult.d.ts +0 -17
  290. package/esm/src/commitments/USE_TIMEOUT/parseTimeoutToolArgs.d.ts +0 -78
  291. package/esm/src/commitments/USE_TIMEOUT/resolveTimeoutRuntimeContext.d.ts +0 -8
  292. package/esm/src/commitments/USE_TIMEOUT/setTimeoutToolRuntimeAdapter.d.ts +0 -13
  293. package/esm/src/commitments/WALLET/WALLET.d.ts +0 -21
  294. package/esm/src/commitments/WALLET/WalletToolNames.d.ts +0 -12
  295. package/esm/src/commitments/WALLET/WalletToolRuntimeAdapter.d.ts +0 -163
  296. package/esm/src/commitments/WALLET/createWalletSystemMessage.d.ts +0 -6
  297. package/esm/src/commitments/WALLET/createWalletToolFunctions.d.ts +0 -8
  298. package/esm/src/commitments/WALLET/createWalletTools.d.ts +0 -7
  299. package/esm/src/commitments/WALLET/getWalletCommitmentDocumentation.d.ts +0 -6
  300. package/esm/src/commitments/WALLET/getWalletToolRuntimeAdapterOrDisabledResult.d.ts +0 -16
  301. package/esm/src/commitments/WALLET/getWalletToolTitles.d.ts +0 -7
  302. package/esm/src/commitments/WALLET/parseWalletToolArgs.d.ts +0 -51
  303. package/esm/src/commitments/WALLET/resolveWalletRuntimeContext.d.ts +0 -8
  304. package/esm/src/commitments/WALLET/setWalletToolRuntimeAdapter.d.ts +0 -13
  305. package/esm/src/commitments/_common/createSerpSearchToolFunction.d.ts +0 -12
  306. package/umd/src/cli/cli-commands/common/harness/$installHarness.d.ts +0 -13
  307. package/umd/src/cli/cli-commands/common/harness/extractHarnessVersionFromOutput.d.ts +0 -11
  308. package/umd/src/cli/cli-commands/common/harness/isHarnessVersionOutdated.d.ts +0 -9
  309. package/umd/src/commitments/MEMORY/MEMORY.d.ts +0 -48
  310. package/umd/src/commitments/MEMORY/MemoryToolNames.d.ts +0 -11
  311. package/umd/src/commitments/MEMORY/MemoryToolRuntimeAdapter.d.ts +0 -149
  312. package/umd/src/commitments/MEMORY/createMemorySystemMessage.d.ts +0 -6
  313. package/umd/src/commitments/MEMORY/createMemoryToolFunctions.d.ts +0 -8
  314. package/umd/src/commitments/MEMORY/createMemoryTools.d.ts +0 -14
  315. package/umd/src/commitments/MEMORY/getMemoryCommitmentDocumentation.d.ts +0 -6
  316. package/umd/src/commitments/MEMORY/getMemoryToolRuntimeAdapterOrDisabledResult.d.ts +0 -17
  317. package/umd/src/commitments/MEMORY/getMemoryToolTitles.d.ts +0 -7
  318. package/umd/src/commitments/MEMORY/parseMemoryToolArgs.d.ts +0 -61
  319. package/umd/src/commitments/MEMORY/resolveMemoryRuntimeContext.d.ts +0 -8
  320. package/umd/src/commitments/MEMORY/setMemoryToolRuntimeAdapter.d.ts +0 -13
  321. package/umd/src/commitments/META/META.d.ts +0 -65
  322. package/umd/src/commitments/USE/aggregateUseCommitmentSystemMessages.d.ts +0 -32
  323. package/umd/src/commitments/USE_BROWSER/USE_BROWSER.d.ts +0 -58
  324. package/umd/src/commitments/USE_BROWSER/fetchUrlContentViaBrowser.d.ts +0 -13
  325. package/umd/src/commitments/USE_BROWSER/resolveRunBrowserToolForNode.d.ts +0 -10
  326. package/umd/src/commitments/USE_DEEPSEARCH/USE_DEEPSEARCH.d.ts +0 -47
  327. package/umd/src/commitments/USE_EMAIL/USE_EMAIL.d.ts +0 -38
  328. package/umd/src/commitments/USE_EMAIL/parseUseEmailCommitmentContent.d.ts +0 -21
  329. package/umd/src/commitments/USE_EMAIL/resolveSendEmailToolForNode.d.ts +0 -11
  330. package/umd/src/commitments/USE_EMAIL/sendEmailViaBrowser.d.ts +0 -13
  331. package/umd/src/commitments/USE_SEARCH_ENGINE/USE_SEARCH_ENGINE.d.ts +0 -46
  332. package/umd/src/commitments/USE_SPAWN/USE_SPAWN.d.ts +0 -38
  333. package/umd/src/commitments/USE_SPAWN/resolveSpawnAgentToolForNode.d.ts +0 -9
  334. package/umd/src/commitments/USE_SPAWN/spawnAgentViaBrowser.d.ts +0 -12
  335. package/umd/src/commitments/USE_TIME/USE_TIME.d.ts +0 -43
  336. package/umd/src/commitments/USE_TIMEOUT/TimeoutToolNames.d.ts +0 -11
  337. package/umd/src/commitments/USE_TIMEOUT/TimeoutToolRuntimeAdapter.d.ts +0 -212
  338. package/umd/src/commitments/USE_TIMEOUT/USE_TIMEOUT.d.ts +0 -38
  339. package/umd/src/commitments/USE_TIMEOUT/createTimeoutSystemMessage.d.ts +0 -6
  340. package/umd/src/commitments/USE_TIMEOUT/createTimeoutToolFunctions.d.ts +0 -8
  341. package/umd/src/commitments/USE_TIMEOUT/createTimeoutTools.d.ts +0 -7
  342. package/umd/src/commitments/USE_TIMEOUT/getTimeoutToolRuntimeAdapterOrDisabledResult.d.ts +0 -17
  343. package/umd/src/commitments/USE_TIMEOUT/parseTimeoutToolArgs.d.ts +0 -78
  344. package/umd/src/commitments/USE_TIMEOUT/resolveTimeoutRuntimeContext.d.ts +0 -8
  345. package/umd/src/commitments/USE_TIMEOUT/setTimeoutToolRuntimeAdapter.d.ts +0 -13
  346. package/umd/src/commitments/WALLET/WALLET.d.ts +0 -21
  347. package/umd/src/commitments/WALLET/WalletToolNames.d.ts +0 -12
  348. package/umd/src/commitments/WALLET/WalletToolRuntimeAdapter.d.ts +0 -163
  349. package/umd/src/commitments/WALLET/createWalletSystemMessage.d.ts +0 -6
  350. package/umd/src/commitments/WALLET/createWalletToolFunctions.d.ts +0 -8
  351. package/umd/src/commitments/WALLET/createWalletTools.d.ts +0 -7
  352. package/umd/src/commitments/WALLET/getWalletCommitmentDocumentation.d.ts +0 -6
  353. package/umd/src/commitments/WALLET/getWalletToolRuntimeAdapterOrDisabledResult.d.ts +0 -16
  354. package/umd/src/commitments/WALLET/getWalletToolTitles.d.ts +0 -7
  355. package/umd/src/commitments/WALLET/parseWalletToolArgs.d.ts +0 -51
  356. package/umd/src/commitments/WALLET/resolveWalletRuntimeContext.d.ts +0 -8
  357. package/umd/src/commitments/WALLET/setWalletToolRuntimeAdapter.d.ts +0 -13
  358. package/umd/src/commitments/_common/createSerpSearchToolFunction.d.ts +0 -12
  359. /package/esm/src/{book-2.0/agent-source/createAgentModelRequirements.useCommitmentAggregation.test.d.ts → avatars/renderAvatarVisualTerminalText.test.d.ts} +0 -0
  360. /package/esm/src/{cli/cli-commands/common/harness/extractHarnessVersionFromOutput.test.d.ts → book-2.0/agent-source/createAgentModelRequirements.commitmentAggregation.test.d.ts} +0 -0
  361. /package/esm/src/{cli/cli-commands/common/harness/isHarnessVersionOutdated.test.d.ts → book-2.0/agent-source/createAgentModelRequirementsWithCommitments.unknown.test.d.ts} +0 -0
  362. /package/esm/src/{commitments/MEMORY/MEMORY.test.d.ts → book-2.0/agent-source/parseAgentSourceWithCommitments.unknown.test.d.ts} +0 -0
  363. /package/esm/src/{commitments/USE_BROWSER/USE_BROWSER.test.d.ts → book-3.0/AgentPlannedMessagesSidecar.test.d.ts} +0 -0
  364. /package/esm/src/{commitments/USE_BROWSER/resolveRunBrowserToolForNode.test.d.ts → book-components/BookEditor/createDuplicateFromCommitmentDiagnostics.test.d.ts} +0 -0
  365. /package/esm/src/{commitments/USE_DEEPSEARCH/USE_DEEPSEARCH.test.d.ts → book-components/BookEditor/createUnknownCommitmentDiagnostics.test.d.ts} +0 -0
  366. /package/esm/src/{commitments/USE_EMAIL/USE_EMAIL.test.d.ts → book-components/Chat/utils/agentProjectToolCall.test.d.ts} +0 -0
  367. /package/esm/src/{commitments/USE_EMAIL/parseUseEmailCommitmentContent.test.d.ts → cli/cli-commands/coder/$ensureCoderHarnessGitignoreRules.test.d.ts} +0 -0
  368. /package/esm/src/{commitments/USE_SEARCH_ENGINE/USE_SEARCH_ENGINE.test.d.ts → cli/cli-commands/coder/boilerplateCount.test.d.ts} +0 -0
  369. /package/esm/src/{commitments/USE_SPAWN/USE_SPAWN.test.d.ts → cli/cli-commands/coder/generate-boilerplates.test.d.ts} +0 -0
  370. /package/esm/src/{commitments/USE_TIME/USE_TIME.test.d.ts → cli/cli-commands/coder/server.test.d.ts} +0 -0
  371. /package/esm/src/{commitments/USE_TIMEOUT/USE_TIMEOUT.test.d.ts → cli/cli-commands/common/harness/$checkHarnessInstallation.test.d.ts} +0 -0
  372. /package/esm/src/{commitments/WALLET/WALLET.test.d.ts → cli/cli-commands/common/harness/formatHarnessManualUpdateInstruction.test.d.ts} +0 -0
  373. /package/{umd/src/book-2.0/agent-source/createAgentModelRequirements.useCommitmentAggregation.test.d.ts → esm/src/cli/cli-commands/common/harness/resolveHarnessInstallationMethodFromPaths.test.d.ts} +0 -0
  374. /package/{umd/src/cli/cli-commands/common/harness/extractHarnessVersionFromOutput.test.d.ts → esm/src/cli/cli-commands/common/harness/resolveHarnessUpdatePlan.test.d.ts} +0 -0
  375. /package/{umd/src/cli/cli-commands/common/harness/isHarnessVersionOutdated.test.d.ts → esm/src/cli/cli-commands/common/harnessUpdateCliOptions.test.d.ts} +0 -0
  376. /package/{umd/src/commitments/MEMORY/MEMORY.test.d.ts → esm/src/cli/cli-commands/common/npm/$resolveLatestNpmPackageVersion.test.d.ts} +0 -0
  377. /package/{umd/src/commitments/USE_BROWSER/USE_BROWSER.test.d.ts → esm/src/cli/cli-commands/common/npm/buildNpmPackageInstallCommand.test.d.ts} +0 -0
  378. /package/{umd/src/commitments/USE_BROWSER/resolveRunBrowserToolForNode.test.d.ts → esm/src/cli/cli-commands/common/npm/extractNpmPackageVersionFromOutput.test.d.ts} +0 -0
  379. /package/{umd/src/commitments/USE_DEEPSEARCH/USE_DEEPSEARCH.test.d.ts → esm/src/cli/cli-commands/common/npm/isNpmPackageVersionOutdated.test.d.ts} +0 -0
  380. /package/{umd/src/commitments/USE_EMAIL/USE_EMAIL.test.d.ts → esm/src/cli/cli-commands/common/promptbook-cli/$checkPromptbookCliInstallations.test.d.ts} +0 -0
  381. /package/{umd/src/commitments/USE_EMAIL/parseUseEmailCommitmentContent.test.d.ts → esm/src/cli/cli-commands/common/promptbook-cli/$ensurePromptbookCliInstallations.test.d.ts} +0 -0
  382. /package/{umd/src/commitments/USE_SEARCH_ENGINE/USE_SEARCH_ENGINE.test.d.ts → esm/src/cli/cli-commands/common/promptbook-cli/$resolvePromptbookCliInstallations.test.d.ts} +0 -0
  383. /package/{umd/src/commitments/USE_SPAWN/USE_SPAWN.test.d.ts → esm/src/cli/cli-commands/common/promptbook-cli/$updatePromptbookCliInstallation.test.d.ts} +0 -0
  384. /package/esm/src/commitments/{META → META_DESCRIPTION}/META_DESCRIPTION.d.ts +0 -0
  385. /package/{umd/src/commitments/USE_TIME/USE_TIME.test.d.ts → esm/src/executables/platforms/locateAppOnWindows.test.d.ts} +0 -0
  386. /package/{umd/src/commitments/USE_TIMEOUT/USE_TIMEOUT.test.d.ts → esm/src/utils/agent-message-runtime/resolveAgentMessageTouchedExternalSources.test.d.ts} +0 -0
  387. /package/{umd/src/commitments/WALLET/WALLET.test.d.ts → esm/src/utils/agent-message-runtime/resolveAgentMessageTouchedProjectNames.test.d.ts} +0 -0
  388. /package/umd/src/commitments/{META → META_DESCRIPTION}/META_DESCRIPTION.d.ts +0 -0
@@ -0,0 +1,36 @@
1
+ /**
2
+ * Way in which the globally available harness command got onto the current machine.
3
+ *
4
+ * - `npm-global` the command comes from a global npm installation, so `npm install -g` really updates it
5
+ * - `standalone` the command was installed by the own installer of the harness and updates itself in place
6
+ * - `homebrew` the command is managed by Homebrew, so only `brew` may update it
7
+ * - `unknown` the command lives somewhere else or could not be located at all
8
+ *
9
+ * @private internal utility of `promptbookCli`
10
+ */
11
+ export type HarnessInstallationMethod = 'npm-global' | 'standalone' | 'homebrew' | 'unknown';
12
+ /**
13
+ * Place where the harness command really lives together with the way it was installed there.
14
+ *
15
+ * Knowing the origin is what keeps an update from installing a **second** copy of a harness which is
16
+ * managed outside of npm, for example the standalone installation of OpenAI Codex.
17
+ *
18
+ * @private internal utility of `promptbookCli`
19
+ */
20
+ export type HarnessInstallationOrigin = {
21
+ /**
22
+ * Resolved path of the harness command with every symbolic link followed
23
+ * or `null` when the command could not be located.
24
+ */
25
+ readonly commandPath: string | null;
26
+ /**
27
+ * Way in which the harness command was installed.
28
+ */
29
+ readonly installationMethod: HarnessInstallationMethod;
30
+ };
31
+ /**
32
+ * Origin used when the harness command was not looked up at all, for example when the update check is disabled.
33
+ *
34
+ * @private internal utility of `promptbookCli`
35
+ */
36
+ export declare const UNKNOWN_HARNESS_INSTALLATION_ORIGIN: HarnessInstallationOrigin;
@@ -1,15 +1,17 @@
1
1
  import type { HarnessDefinition } from './HarnessDefinition';
2
+ import type { HarnessInstallationOrigin } from './HarnessInstallationOrigin';
2
3
  /**
3
4
  * Result of comparing the globally installed harness version with the newest published one.
4
5
  *
5
6
  * - `up-to-date` the newest published version is installed
6
7
  * - `outdated` an older version is installed
7
8
  * - `not-installed` the harness command is not available globally
9
+ * - `installed` the harness is installed and automatic update checking was disabled
8
10
  * - `unknown` the harness is installed but the newest published version could not be resolved, for example when offline
9
11
  *
10
12
  * @private internal utility of `promptbookCli`
11
13
  */
12
- export type HarnessInstallationState = 'up-to-date' | 'outdated' | 'not-installed' | 'unknown';
14
+ export type HarnessInstallationState = 'up-to-date' | 'outdated' | 'not-installed' | 'installed' | 'unknown';
13
15
  /**
14
16
  * Installation state of one CLI coding harness on the current machine.
15
17
  *
@@ -21,7 +23,7 @@ export type HarnessInstallationStatus = {
21
23
  */
22
24
  readonly definition: HarnessDefinition;
23
25
  /**
24
- * Comparison of the installed version with the newest published one.
26
+ * Installation state, including whether the newest published version was checked.
25
27
  */
26
28
  readonly installationState: HarnessInstallationState;
27
29
  /**
@@ -32,4 +34,8 @@ export type HarnessInstallationStatus = {
32
34
  * Newest version published to npm or `null` when it could not be resolved.
33
35
  */
34
36
  readonly latestVersion: string | null;
37
+ /**
38
+ * Place where the harness command lives together with the way it was installed there.
39
+ */
40
+ readonly installationOrigin: HarnessInstallationOrigin;
35
41
  };
@@ -0,0 +1,23 @@
1
+ /**
2
+ * How an outdated CLI coding harness can be brought up to date where it is really installed.
3
+ *
4
+ * @private internal utility of `promptbookCli`
5
+ */
6
+ export type HarnessUpdatePlan = {
7
+ /**
8
+ * Command which updates the harness in place
9
+ * or `null` when the installation is not understood well enough to name one.
10
+ */
11
+ readonly command: string | null;
12
+ /**
13
+ * Whether Promptbook may run the command itself instead of only printing it.
14
+ *
15
+ * Only installations which Promptbook can update without any side effect are updated automatically,
16
+ * everything else is left to the user together with the instructions.
17
+ */
18
+ readonly isRunnableByPromptbook: boolean;
19
+ /**
20
+ * Extra environment variables required by the update command.
21
+ */
22
+ readonly environment?: Readonly<Record<string, string>>;
23
+ };
@@ -2,9 +2,12 @@ import type { HarnessDefinition } from './HarnessDefinition';
2
2
  /**
3
3
  * Builds the shell command which installs or updates one CLI coding harness globally.
4
4
  *
5
- * The very same command is executed by `$installHarness` and printed as the manual fallback,
5
+ * The very same command is executed by `$runHarnessInstallationCommand` and printed as the manual fallback,
6
6
  * so the user always sees exactly what Promptbook would run.
7
7
  *
8
+ * Note: This command installs the harness through npm, so it may only update a harness which npm really owns,
9
+ * see `resolveHarnessUpdatePlan`.
10
+ *
8
11
  * @private internal utility of `promptbookCli`
9
12
  */
10
13
  export declare function buildHarnessInstallCommand(definition: HarnessDefinition): string;
@@ -0,0 +1,8 @@
1
+ import type { HarnessInstallationStatus } from './HarnessInstallationStatus';
2
+ import type { HarnessUpdatePlan } from './HarnessUpdatePlan';
3
+ /**
4
+ * Formats the instruction shown when an outdated harness must be updated by the user.
5
+ *
6
+ * @private internal utility of `promptbookCli`
7
+ */
8
+ export declare function formatHarnessManualUpdateInstruction(status: HarnessInstallationStatus, updatePlan: HarnessUpdatePlan): string;
@@ -0,0 +1,31 @@
1
+ import type { HarnessDefinition } from './HarnessDefinition';
2
+ import type { HarnessInstallationMethod } from './HarnessInstallationOrigin';
3
+ /**
4
+ * Options describing where the harness command was found.
5
+ *
6
+ * @private internal utility of `resolveHarnessInstallationMethodFromPaths`
7
+ */
8
+ type HarnessInstallationPaths = {
9
+ /**
10
+ * Harness whose command was located.
11
+ */
12
+ readonly definition: HarnessDefinition;
13
+ /**
14
+ * Resolved path of the harness command with every symbolic link followed.
15
+ */
16
+ readonly commandPath: string;
17
+ /**
18
+ * Root directory of global npm installations or `null` when npm could not be asked for it.
19
+ */
20
+ readonly npmGlobalPrefixPath: string | null;
21
+ };
22
+ /**
23
+ * Decides how a harness command was installed from the place where it really lives.
24
+ *
25
+ * Only a command which npm owns may be updated with `npm install -g`, every other command has to be
26
+ * updated where it is installed, otherwise the update silently adds a second copy of the harness.
27
+ *
28
+ * @private internal utility of `promptbookCli`
29
+ */
30
+ export declare function resolveHarnessInstallationMethodFromPaths(paths: HarnessInstallationPaths): HarnessInstallationMethod;
31
+ export {};
@@ -0,0 +1,12 @@
1
+ import type { HarnessDefinition } from './HarnessDefinition';
2
+ import type { HarnessInstallationMethod } from './HarnessInstallationOrigin';
3
+ import type { HarnessUpdatePlan } from './HarnessUpdatePlan';
4
+ /**
5
+ * Decides how one outdated CLI coding harness should be updated.
6
+ *
7
+ * The plan follows the way the harness was installed, because `npm install -g` updates only a harness
8
+ * which npm owns and installs a **second** copy of every other one.
9
+ *
10
+ * @private internal utility of `promptbookCli`
11
+ */
12
+ export declare function resolveHarnessUpdatePlan(definition: HarnessDefinition, installationMethod: HarnessInstallationMethod): HarnessUpdatePlan;
@@ -0,0 +1,29 @@
1
+ import type { Command as Program } from 'commander';
2
+ /**
3
+ * Commander option bag for opting out of automatic coding-harness update checks.
4
+ *
5
+ * @private internal utility of `promptbookCli`
6
+ */
7
+ export type HarnessUpdateCliOptions = {
8
+ readonly harnessUpdate: boolean;
9
+ };
10
+ /**
11
+ * Normalized automatic coding-harness update-check option.
12
+ *
13
+ * @private internal utility of `promptbookCli`
14
+ */
15
+ export type NormalizedHarnessUpdateCliOptions = {
16
+ readonly isHarnessUpdateCheckEnabled: boolean;
17
+ };
18
+ /**
19
+ * Registers the shared `--no-harness-update` option on a `ptbk coder` command that uses a coding harness.
20
+ *
21
+ * @private internal utility of `promptbookCli`
22
+ */
23
+ export declare function addHarnessUpdateOption(command: Program): void;
24
+ /**
25
+ * Converts the Commander harness-update flag into the normalized harness-check option.
26
+ *
27
+ * @private internal utility of `promptbookCli`
28
+ */
29
+ export declare function normalizeHarnessUpdateCliOptions(cliOptions: HarnessUpdateCliOptions): NormalizedHarnessUpdateCliOptions;
@@ -1,9 +1,9 @@
1
1
  /**
2
- * Asks the user in the terminal whether the harness should be installed or updated right now.
2
+ * Asks the user in the terminal whether an npm package should be installed or updated now.
3
3
  *
4
4
  * Note: `$` is used to indicate that this function is not a pure function - it reads the answer from stdin
5
5
  *
6
6
  * @returns `true` when the user confirms, `false` when the user declines or the terminal is not interactive
7
7
  * @private internal utility of `promptbookCli`
8
8
  */
9
- export declare function $askForHarnessInstallationApproval(question: string): Promise<boolean>;
9
+ export declare function $askForNpmPackageInstallationApproval(question: string): Promise<boolean>;
@@ -1,10 +1,9 @@
1
- import type { HarnessDefinition } from './HarnessDefinition';
2
1
  /**
3
- * Reads the newest version of the harness published to npm.
2
+ * Reads the newest version of one npm package.
4
3
  *
5
4
  * Note: `$` is used to indicate that this function is not a pure function - it queries the npm registry
6
5
  *
7
6
  * @returns The newest published version or `null` when the registry could not be reached
8
7
  * @private internal utility of `promptbookCli`
9
8
  */
10
- export declare function $resolveLatestHarnessVersion(definition: HarnessDefinition): Promise<string | null>;
9
+ export declare function $resolveLatestNpmPackageVersion(npmPackageName: string): Promise<string | null>;
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Reads the root directory under which npm installs global packages.
3
+ *
4
+ * Note: `$` is used to indicate that this function is not a pure function - it runs npm
5
+ *
6
+ * @returns The global npm prefix or `null` when npm could not be asked for it
7
+ * @private internal utility of `promptbookCli`
8
+ */
9
+ export declare function $resolveNpmGlobalPrefixPath(): Promise<string | null>;
@@ -0,0 +1,12 @@
1
+ /**
2
+ * Place where an npm package should be installed or updated.
3
+ *
4
+ * @private internal utility of `promptbookCli`
5
+ */
6
+ export type NpmPackageInstallationLocation = 'local-dependency' | 'local-development-dependency' | 'global';
7
+ /**
8
+ * Builds an npm command which installs or updates a package in the requested existing location.
9
+ *
10
+ * @private internal utility of `promptbookCli`
11
+ */
12
+ export declare function buildNpmPackageInstallCommand(npmPackageName: string, installationLocation: NpmPackageInstallationLocation): string;
@@ -0,0 +1,12 @@
1
+ /**
2
+ * Extracts an npm package version from raw command output.
3
+ *
4
+ * Both npm and CLI commands may emit unrelated warnings before the version. CLI commands use the first matching token;
5
+ * npm registry commands can opt into the last matching token because npm warnings commonly precede their output.
6
+ *
7
+ * @returns The parsed version or `null` when the output contains no version
8
+ * @private internal utility of `promptbookCli`
9
+ */
10
+ export declare function extractNpmPackageVersionFromOutput(output: string, { isLastMatchPreferred }?: {
11
+ readonly isLastMatchPreferred?: boolean;
12
+ }): string | null;
@@ -0,0 +1,12 @@
1
+ /**
2
+ * Compares an installed npm package version with the newest published version.
3
+ *
4
+ * Release and prerelease identifiers follow semantic-version precedence while build metadata is ignored. Harnesses can
5
+ * preserve their historical behavior by setting `isPrereleaseIgnored`, because some harness commands report a build
6
+ * suffix which does not correspond to npm release precedence.
7
+ *
8
+ * @private internal utility of `promptbookCli`
9
+ */
10
+ export declare function isNpmPackageVersionOutdated(installedVersion: string, latestVersion: string, { isPrereleaseIgnored }?: {
11
+ readonly isPrereleaseIgnored?: boolean;
12
+ }): boolean;
@@ -50,6 +50,12 @@ export declare function ensureProjectEnvFile<TEnvVariable extends ProjectEnvVari
50
50
  * @private internal utility of Promptbook CLI project initialization
51
51
  */
52
52
  export declare function ensureProjectGitignoreFile({ projectPath, blockHeader, rules, }: EnsureProjectGitignoreFileOptions): Promise<ProjectInitializationStatus>;
53
+ /**
54
+ * Lists the ignore rules which are not yet present in a project's `.gitignore` file.
55
+ *
56
+ * @private internal utility of Promptbook CLI project initialization
57
+ */
58
+ export declare function getMissingProjectGitignoreRules(projectPath: string, rules: ReadonlyArray<string>): Promise<ReadonlyArray<string>>;
53
59
  /**
54
60
  * Reads one text file when it exists, otherwise returns `undefined`.
55
61
  *
@@ -1,5 +1,6 @@
1
1
  import { Command as Program } from 'commander';
2
2
  import { PTBK_HARNESS_ENV, PTBK_MODEL_ENV, PTBK_THINKING_LEVEL_ENV } from '../../../book-3.0/cliAgentEnv';
3
+ import type { GitChangesMode } from '../coder/GitChangesMode';
3
4
  import type { ThinkingLevel } from '../coder/ThinkingLevel';
4
5
  export { PTBK_HARNESS_ENV, PTBK_MODEL_ENV, PTBK_THINKING_LEVEL_ENV };
5
6
  /**
@@ -7,7 +8,7 @@ export { PTBK_HARNESS_ENV, PTBK_MODEL_ENV, PTBK_THINKING_LEVEL_ENV };
7
8
  *
8
9
  * @private internal utility of `promptbookCli`
9
10
  */
10
- export declare const PROMPT_RUNNER_HARNESS_NAMES: readonly ["openai-codex", "github-copilot", "cline", "claude-code", "opencode", "gemini"];
11
+ export declare const PROMPT_RUNNER_HARNESS_NAMES: readonly ["openai-codex", "github-copilot", "cline", "claude-code", "opencode", "gemini", "qwen-code"];
11
12
  /**
12
13
  * Runner identifier supported by Promptbook CLI agent orchestration commands.
13
14
  *
@@ -25,7 +26,7 @@ export type PromptRunnerCliOptions = {
25
26
  readonly ui: boolean;
26
27
  readonly thinkingLevel?: ThinkingLevel;
27
28
  readonly commit: boolean;
28
- readonly ignoreGitChanges: boolean;
29
+ readonly gitChanges: GitChangesMode;
29
30
  readonly allowCredits: boolean;
30
31
  readonly normalizeLineEndings: boolean;
31
32
  readonly autoPush: boolean;
@@ -48,7 +49,7 @@ export type NormalizedPromptRunnerCliOptions = {
48
49
  readonly noUi: boolean;
49
50
  readonly thinkingLevel?: ThinkingLevel;
50
51
  readonly noCommit: boolean;
51
- readonly ignoreGitChanges: boolean;
52
+ readonly gitChanges: GitChangesMode;
52
53
  readonly allowCredits: boolean;
53
54
  readonly normalizeLineEndings: boolean;
54
55
  readonly autoPush: boolean;
@@ -71,13 +72,25 @@ export declare const PROMPT_RUNNER_DESCRIPTION: string;
71
72
  *
72
73
  * @private internal utility of `promptbookCli`
73
74
  */
74
- export declare const PROMPT_RUNNER_HARNESS_OPTION_DESCRIPTION = "Select runner: openai-codex, github-copilot, cline, claude-code, opencode, gemini (required for non-dry-run)";
75
+ export declare const PROMPT_RUNNER_HARNESS_OPTION_DESCRIPTION: string;
76
+ /**
77
+ * Runner harness names listed as alternatives of the `--harness` option in error messages.
78
+ *
79
+ * @private internal utility of `promptbookCli`
80
+ */
81
+ export declare const PROMPT_RUNNER_HARNESS_OPTION_HINT: string;
75
82
  /**
76
83
  * Commander description for the `--model` option.
77
84
  *
78
85
  * @private internal utility of `promptbookCli`
79
86
  */
80
87
  export declare const PROMPT_RUNNER_MODEL_OPTION_DESCRIPTION: string;
88
+ /**
89
+ * Commander description for the `--git-changes` option.
90
+ *
91
+ * @private internal utility of `promptbookCli`
92
+ */
93
+ export declare const GIT_CHANGES_OPTION_DESCRIPTION: string;
81
94
  /**
82
95
  * Registers runner selection flags on a command.
83
96
  *
@@ -0,0 +1,9 @@
1
+ import type { PromptbookCliInstallationStatus } from './PromptbookCliInstallationStatus';
2
+ /**
3
+ * Checks every local and global Promptbook CLI installation against the newest npm version.
4
+ *
5
+ * Note: `$` is used to indicate that this function is not a pure function - it reads installed packages and queries npm
6
+ *
7
+ * @private internal utility of `promptbookCli`
8
+ */
9
+ export declare function $checkPromptbookCliInstallations(): Promise<ReadonlyArray<PromptbookCliInstallationStatus>>;
@@ -0,0 +1,14 @@
1
+ /**
2
+ * Checks local and global Promptbook CLI installations before an interactive coder run and offers to update them.
3
+ *
4
+ * Once an update succeeds, the caller must stop the current run and let the user start a fresh process. A local npm
5
+ * update can modify `package.json` and a lockfile, which would make the coder's clean-working-tree preflight fail;
6
+ * the current Node.js process has also already loaded the old CLI implementation.
7
+ *
8
+ * Note: `$` is used to indicate that this function is not a pure function - it reads package manifests, queries npm,
9
+ * asks the user, and may install npm packages
10
+ *
11
+ * @returns `true` when at least one installation was updated and the current coder run should stop
12
+ * @private internal utility of `promptbookCli`
13
+ */
14
+ export declare function $ensurePromptbookCliInstallations(): Promise<boolean>;
@@ -0,0 +1,12 @@
1
+ import { type PromptbookCliInstallation } from './PromptbookCliInstallation';
2
+ /**
3
+ * Finds every directly declared local or directly installed global Promptbook CLI package which can be updated.
4
+ *
5
+ * Transitive packages are deliberately ignored because this command must update the dependency chosen by the current
6
+ * project or global npm installation, not mutate a dependency owned by another package.
7
+ *
8
+ * Note: `$` is used to indicate that this function is not a pure function - it reads package manifests and runs npm
9
+ *
10
+ * @private internal utility of `promptbookCli`
11
+ */
12
+ export declare function $resolvePromptbookCliInstallations(): Promise<ReadonlyArray<PromptbookCliInstallation>>;
@@ -0,0 +1,10 @@
1
+ import type { PromptbookCliInstallationStatus } from './PromptbookCliInstallationStatus';
2
+ /**
3
+ * Updates one Promptbook CLI package in its existing local or global location.
4
+ *
5
+ * Note: `$` is used to indicate that this function is not a pure function - it installs an npm package
6
+ *
7
+ * @returns `true` when the package update succeeds, `false` when it fails
8
+ * @private internal utility of `promptbookCli`
9
+ */
10
+ export declare function $updatePromptbookCliInstallation(status: PromptbookCliInstallationStatus): Promise<boolean>;
@@ -0,0 +1,66 @@
1
+ import type { NpmPackageInstallationLocation } from '../npm/buildNpmPackageInstallCommand';
2
+ /**
3
+ * Npm packages which directly provide the `ptbk` executable.
4
+ *
5
+ * `ptbk` is the preferred package and forwards to `@promptbook/cli`; the latter can also be installed directly.
6
+ *
7
+ * @private internal utility of `promptbookCli`
8
+ */
9
+ export declare const PROMPTBOOK_CLI_NPM_PACKAGE_NAMES: readonly ["ptbk", "@promptbook/cli"];
10
+ /**
11
+ * Npm package which directly provides the `ptbk` executable.
12
+ *
13
+ * @private internal utility of `promptbookCli`
14
+ */
15
+ export type PromptbookCliNpmPackageName = (typeof PROMPTBOOK_CLI_NPM_PACKAGE_NAMES)[number];
16
+ /**
17
+ * Place where one Promptbook CLI package is installed.
18
+ *
19
+ * @private internal utility of `promptbookCli`
20
+ */
21
+ export type PromptbookCliInstallationLocation = NpmPackageInstallationLocation;
22
+ /**
23
+ * Fields shared by local and global Promptbook CLI installations.
24
+ *
25
+ * @private internal utility of `PromptbookCliInstallation`
26
+ */
27
+ type PromptbookCliInstallationBase = {
28
+ /**
29
+ * Npm package that provides the CLI.
30
+ */
31
+ readonly npmPackageName: PromptbookCliNpmPackageName;
32
+ /**
33
+ * Version from the installed package's `package.json`.
34
+ */
35
+ readonly installedVersion: string;
36
+ };
37
+ /**
38
+ * One directly declared local Promptbook CLI installation.
39
+ *
40
+ * @private internal utility of `promptbookCli`
41
+ */
42
+ export type LocalPromptbookCliInstallation = PromptbookCliInstallationBase & {
43
+ /**
44
+ * Local manifest section containing the package.
45
+ */
46
+ readonly installationLocation: Exclude<PromptbookCliInstallationLocation, 'global'>;
47
+ /**
48
+ * Project directory containing the `package.json` which declares the package.
49
+ */
50
+ readonly projectPath: string;
51
+ };
52
+ /**
53
+ * One directly installed global Promptbook CLI package.
54
+ *
55
+ * @private internal utility of `promptbookCli`
56
+ */
57
+ export type GlobalPromptbookCliInstallation = PromptbookCliInstallationBase & {
58
+ readonly installationLocation: 'global';
59
+ };
60
+ /**
61
+ * One local or global Promptbook CLI package that can be updated.
62
+ *
63
+ * @private internal utility of `promptbookCli`
64
+ */
65
+ export type PromptbookCliInstallation = LocalPromptbookCliInstallation | GlobalPromptbookCliInstallation;
66
+ export {};
@@ -0,0 +1,26 @@
1
+ import type { PromptbookCliInstallation } from './PromptbookCliInstallation';
2
+ /**
3
+ * Result of comparing one installed Promptbook CLI package with the newest published version.
4
+ *
5
+ * @private internal utility of `promptbookCli`
6
+ */
7
+ export type PromptbookCliInstallationState = 'up-to-date' | 'outdated' | 'unknown';
8
+ /**
9
+ * Version status of one Promptbook CLI installation.
10
+ *
11
+ * @private internal utility of `promptbookCli`
12
+ */
13
+ export type PromptbookCliInstallationStatus = {
14
+ /**
15
+ * Installed CLI package being checked.
16
+ */
17
+ readonly installation: PromptbookCliInstallation;
18
+ /**
19
+ * Result of comparing the installed version with the newest published version.
20
+ */
21
+ readonly installationState: PromptbookCliInstallationState;
22
+ /**
23
+ * Newest published package version, or `null` when npm could not be reached.
24
+ */
25
+ readonly latestVersion: string | null;
26
+ };
@@ -0,0 +1,7 @@
1
+ import type { PromptbookCliInstallation } from './PromptbookCliInstallation';
2
+ /**
3
+ * Builds the npm command that updates one existing Promptbook CLI installation.
4
+ *
5
+ * @private internal utility of `promptbookCli`
6
+ */
7
+ export declare function buildPromptbookCliInstallCommand(installation: PromptbookCliInstallation): string;
@@ -0,0 +1,7 @@
1
+ import type { PromptbookCliInstallationStatus } from './PromptbookCliInstallationStatus';
2
+ /**
3
+ * Formats the warning shown when one or more Promptbook CLI installations are outdated.
4
+ *
5
+ * @private internal utility of `promptbookCli`
6
+ */
7
+ export declare function formatPromptbookCliInstallationWarning(statuses: ReadonlyArray<PromptbookCliInstallationStatus>): string;
@@ -84,8 +84,23 @@ export declare class AgentCollectionInSupabase {
84
84
  private mapAgentBasicInformationRow;
85
85
  /**
86
86
  * Retrieves the permanent ID of an agent by its name or permanent ID.
87
+ *
88
+ * An agent that still exists always wins over a soft-deleted one, so a name that was deleted and
89
+ * later created again resolves to the agent that is live now instead of to the recycle-bin leftover.
90
+ * Soft-deleted agents stay resolvable as a fallback because the recycle bin restores them by name
91
+ * or permanent id.
87
92
  */
88
93
  getAgentPermanentId(agentNameOrPermanentId: string_agent_name | string_agent_permanent_id): Promise<string_agent_permanent_id>;
94
+ /**
95
+ * Looks up the permanent id of the oldest agent matching one name or permanent id.
96
+ *
97
+ * @param agentNameOrPermanentId - Agent name or stable permanent identifier to match.
98
+ * @param options - Whether soft-deleted agents may be matched as well.
99
+ * @returns Permanent id of the matched agent, or `null` when nothing matches.
100
+ *
101
+ * @private internal helper of `AgentCollectionInSupabase`
102
+ */
103
+ private findAgentPermanentId;
89
104
  /**
90
105
  * Retrieves the source code of an agent by its name or permanent ID.
91
106
  */
@@ -1,16 +1,19 @@
1
1
  import type { AgentModelRequirements } from '../../book-2.0/agent-source/AgentModelRequirements';
2
2
  import { BaseCommitmentDefinition } from '../_base/BaseCommitmentDefinition';
3
3
  /**
4
- * COMPONENT commitment definition
4
+ * META FULLNAME commitment definition
5
5
  *
6
- * The COMPONENT commitment defines a UI component that the agent can render in the chat.
6
+ * The `META FULLNAME` commitment sets the full display name of the agent, which can differ
7
+ * from the agent name on the first line of the agent source, for example when the agent
8
+ * should be presented with academic titles.
9
+ * This commitment is metadata-only and does not modify model requirements.
7
10
  *
8
11
  * @private [🪔] Maybe export the commitments through some package
9
12
  */
10
- export declare class ComponentCommitmentDefinition extends BaseCommitmentDefinition<'COMPONENT'> {
13
+ export declare class MetaFullnameCommitmentDefinition extends BaseCommitmentDefinition<'META FULLNAME'> {
11
14
  constructor();
12
15
  /**
13
- * Short one-line description of COMPONENT.
16
+ * Short one-line description of META FULLNAME.
14
17
  */
15
18
  get description(): string;
16
19
  /**
@@ -18,7 +21,7 @@ export declare class ComponentCommitmentDefinition extends BaseCommitmentDefinit
18
21
  */
19
22
  get icon(): string;
20
23
  /**
21
- * Markdown documentation for COMPONENT commitment.
24
+ * Markdown documentation for META FULLNAME commitment.
22
25
  */
23
26
  get documentation(): string;
24
27
  applyToAgentModelRequirements(requirements: AgentModelRequirements, content: string): AgentModelRequirements;
@@ -0,0 +1,32 @@
1
+ import type { AgentModelRequirements } from '../../book-2.0/agent-source/AgentModelRequirements';
2
+ import { BaseCommitmentDefinition } from '../_base/BaseCommitmentDefinition';
3
+ /**
4
+ * META ID commitment definition
5
+ *
6
+ * The `META ID` commitment carries the permanent id of the agent when an agent source is moved
7
+ * between systems. It is a low-level commitment which is normally written and stripped by the
8
+ * persistence layer instead of being written by hand.
9
+ * This commitment is metadata-only and does not modify model requirements.
10
+ *
11
+ * @private [🪔] Maybe export the commitments through some package
12
+ */
13
+ export declare class MetaIdCommitmentDefinition extends BaseCommitmentDefinition<'META ID'> {
14
+ constructor();
15
+ /**
16
+ * Short one-line description of META ID.
17
+ */
18
+ get description(): string;
19
+ /**
20
+ * Icon for this commitment.
21
+ */
22
+ get icon(): string;
23
+ /**
24
+ * `META ID` is written by the persistence layer, not by agent authors.
25
+ */
26
+ get isLowLevel(): boolean;
27
+ /**
28
+ * Markdown documentation for META ID commitment.
29
+ */
30
+ get documentation(): string;
31
+ applyToAgentModelRequirements(requirements: AgentModelRequirements, content: string): AgentModelRequirements;
32
+ }
@@ -3,23 +3,30 @@ import { BaseCommitmentDefinition } from '../_base/BaseCommitmentDefinition';
3
3
  /**
4
4
  * `WRITING RULES` commitment definition.
5
5
  *
6
- * It adds constraints that apply strictly to writing style and presentation
7
- * rather than task-solving behavior.
6
+ * The `WRITING RULES`/`WRITING RULE` commitment adds constraints that apply strictly to writing style
7
+ * and presentation rather than task-solving behavior.
8
+ *
9
+ * Example usage in agent source:
10
+ *
11
+ * ```book
12
+ * WRITING RULES Keep every response under 120 words
13
+ * WRITING RULE Always end the message with an emoji
14
+ * ```
8
15
  *
9
16
  * @private [🪔] Maybe export the commitments through some package
10
17
  */
11
- export declare class WritingRulesCommitmentDefinition extends BaseCommitmentDefinition<'WRITING RULES'> {
12
- constructor();
18
+ export declare class WritingRulesCommitmentDefinition extends BaseCommitmentDefinition<'WRITING RULES' | 'WRITING RULE'> {
19
+ constructor(type?: 'WRITING RULES' | 'WRITING RULE');
13
20
  /**
14
- * Short one-line description of `WRITING RULES`.
21
+ * Short one-line description of `WRITING RULES`/`WRITING RULE`.
15
22
  */
16
23
  get description(): string;
17
24
  /**
18
- * Icon for `WRITING RULES`.
25
+ * Icon for `WRITING RULES`/`WRITING RULE`.
19
26
  */
20
27
  get icon(): string;
21
28
  /**
22
- * Markdown documentation for `WRITING RULES`.
29
+ * Markdown documentation for `WRITING RULES`/`WRITING RULE` commitment.
23
30
  */
24
31
  get documentation(): string;
25
32
  applyToAgentModelRequirements(requirements: AgentModelRequirements, content: string): AgentModelRequirements;