@promptbook/components 0.114.0-5 → 0.114.0-50

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 (430) hide show
  1. package/README.md +50 -31
  2. package/esm/index.es.js +1836 -297
  3. package/esm/index.es.js.map +1 -1
  4. package/esm/src/_packages/components.index.d.ts +4 -0
  5. package/esm/src/_packages/types.index.d.ts +4 -0
  6. package/esm/src/avatars/renderAvatarVisualTerminalText.d.ts +80 -0
  7. package/esm/src/avatars/types/AvatarVisualDefinition.d.ts +54 -0
  8. package/esm/src/book-2.0/agent-source/AgentReferenceResolutionIssue.d.ts +45 -0
  9. package/esm/src/book-2.0/agent-source/AgentSourceParseResult.d.ts +5 -0
  10. package/esm/src/book-2.0/agent-source/CreateAgentModelRequirementsOptions.d.ts +2 -0
  11. package/esm/src/book-2.0/agent-source/ParsedUnknownCommitment.d.ts +26 -0
  12. package/esm/src/book-2.0/agent-source/deduplicateSystemMessage.d.ts +14 -0
  13. package/esm/src/book-2.0/agent-source/explicitFromCommitment.d.ts +62 -0
  14. package/esm/src/book-2.0/agent-source/extractAgentReferenceTokens.d.ts +32 -0
  15. package/esm/src/book-2.0/agent-source/getBookCommitmentLineType.d.ts +19 -0
  16. package/esm/src/book-2.0/agent-source/parseAgentSourceWithCommitments.unknown.test.d.ts +1 -0
  17. package/esm/src/book-2.0/agent-source/resolveInheritedAgentSource.d.ts +73 -0
  18. package/esm/src/book-2.0/book-language-documentation/getSafeCodeBlock.d.ts +1 -1
  19. package/esm/src/book-3.0/AgentMessageRunReport.d.ts +46 -0
  20. package/esm/src/book-3.0/AgentPlannedMessagesSidecar.d.ts +127 -0
  21. package/esm/src/book-3.0/AgentPlannedMessagesSidecar.test.d.ts +1 -0
  22. package/esm/src/book-3.0/AgentTeamConversationWorkspace.d.ts +85 -0
  23. package/esm/src/book-3.0/cliAgentEnv.d.ts +3 -3
  24. package/esm/src/book-3.0/createAgentMessageSidecarBaseName.d.ts +13 -0
  25. package/esm/src/book-3.0/describeAgentPlannedMessageSchedule.d.ts +31 -0
  26. package/esm/src/book-components/BookEditor/createDeprecatedCommitmentDiagnostics.browser.d.ts +1 -9
  27. package/esm/src/book-components/BookEditor/createDuplicateFromCommitmentDiagnostics.d.ts +28 -0
  28. package/esm/src/book-components/BookEditor/createDuplicateFromCommitmentDiagnostics.test.d.ts +1 -0
  29. package/esm/src/book-components/BookEditor/createUnknownCommitmentDiagnostics.d.ts +28 -0
  30. package/esm/src/book-components/BookEditor/createUnknownCommitmentDiagnostics.test.d.ts +1 -0
  31. package/esm/src/book-components/Chat/Chat/ChatProps.d.ts +3 -2
  32. package/esm/src/book-components/Chat/Chat/renderAgentProjectDiff.d.ts +13 -0
  33. package/esm/src/book-components/Chat/Chat/renderAgentProjectToolCallDetails.d.ts +16 -0
  34. package/esm/src/book-components/Chat/MockedChat/MockedChat.test.d.ts +2 -0
  35. package/esm/src/book-components/Chat/utils/agentProjectToolCall.d.ts +85 -0
  36. package/esm/src/book-components/Chat/utils/agentProjectToolCall.test.d.ts +1 -0
  37. package/esm/src/book-components/Chat/utils/externalSourceToolCall.d.ts +38 -0
  38. package/esm/src/book-components/Chat/utils/renderMarkdown.d.ts +68 -3
  39. package/esm/src/book-components/Chat/utils/timeoutToolCallPresentation.d.ts +30 -0
  40. package/esm/src/cli/$initializePromptbookCliProgram.d.ts +8 -0
  41. package/esm/src/cli/cli-commands/coder/$ensureCoderHarnessGitignoreRules.d.ts +10 -0
  42. package/esm/src/cli/cli-commands/coder/$ensureCoderHarnessGitignoreRules.test.d.ts +1 -0
  43. package/esm/src/cli/cli-commands/coder/GitChangesMode.d.ts +28 -0
  44. package/esm/src/cli/cli-commands/coder/add.d.ts +22 -1
  45. package/esm/src/cli/cli-commands/coder/agentCliOptions.d.ts +27 -0
  46. package/esm/src/cli/cli-commands/coder/augmentCoderAgentTeam.d.ts +7 -0
  47. package/esm/src/cli/cli-commands/coder/boilerplateCount.d.ts +1 -1
  48. package/esm/src/cli/cli-commands/coder/boilerplateTemplates.d.ts +8 -21
  49. package/esm/src/cli/cli-commands/coder/coderAgentRole.d.ts +21 -0
  50. package/esm/src/cli/cli-commands/coder/coderReferencedArtifacts.d.ts +34 -0
  51. package/esm/src/cli/cli-commands/coder/ensureCoderDefaultAgentFiles.d.ts +8 -0
  52. package/esm/src/cli/cli-commands/coder/ensureCoderDefaultAgentFiles.test.d.ts +1 -0
  53. package/esm/src/cli/cli-commands/coder/ensureCoderGitattributesFile.d.ts +13 -0
  54. package/esm/src/cli/cli-commands/coder/ensureCoderGitignoreFile.d.ts +14 -1
  55. package/esm/src/cli/cli-commands/coder/ensureCoderPackageJsonFile.d.ts +5 -2
  56. package/esm/src/cli/cli-commands/coder/ensureCoderPackageJsonFile.test.d.ts +1 -0
  57. package/esm/src/cli/cli-commands/coder/ensureCoderRoleAgentFile.d.ts +12 -0
  58. package/esm/src/cli/cli-commands/coder/ensureCoderVscodeSettingsFile.d.ts +2 -0
  59. package/esm/src/cli/cli-commands/coder/ensureDirectory.d.ts +6 -0
  60. package/esm/src/cli/cli-commands/coder/findLegacyCoderCheckCallers.d.ts +5 -0
  61. package/esm/src/cli/cli-commands/coder/fix.d.ts +7 -0
  62. package/esm/src/cli/cli-commands/coder/fix.test.d.ts +1 -0
  63. package/esm/src/cli/cli-commands/coder/fixWorkflow.test.d.ts +1 -0
  64. package/esm/src/cli/cli-commands/coder/generate-boilerplates.d.ts +2 -2
  65. package/esm/src/cli/cli-commands/coder/getCoderInitializationCommitPaths.d.ts +9 -0
  66. package/esm/src/cli/cli-commands/coder/getDefaultCoderPackageJsonScripts.d.ts +6 -0
  67. package/esm/src/cli/cli-commands/coder/init.test.d.ts +1 -0
  68. package/esm/src/cli/cli-commands/coder/initializeCoderProjectConfiguration.d.ts +18 -6
  69. package/esm/src/cli/cli-commands/coder/list.d.ts +10 -0
  70. package/esm/src/cli/cli-commands/coder/list.test.d.ts +1 -0
  71. package/esm/src/cli/cli-commands/coder/mergeStringRecordJsonFile.d.ts +21 -1
  72. package/esm/src/cli/cli-commands/coder/plan.d.ts +7 -0
  73. package/esm/src/cli/cli-commands/coder/planning/assertPlanningCommitSafe.d.ts +6 -0
  74. package/esm/src/cli/cli-commands/coder/planning/assertPlanningPrdCommitScope.d.ts +7 -0
  75. package/esm/src/cli/cli-commands/coder/planning/assertPlanningRuntimePath.d.ts +6 -0
  76. package/esm/src/cli/cli-commands/coder/planning/createPlanningTerminal.d.ts +8 -0
  77. package/esm/src/cli/cli-commands/coder/planning/createPlanningTerminal.test.d.ts +1 -0
  78. package/esm/src/cli/cli-commands/coder/planning/createPlanningWorkspace.d.ts +11 -0
  79. package/esm/src/cli/cli-commands/coder/planning/discussPlanningTurn.d.ts +15 -0
  80. package/esm/src/cli/cli-commands/coder/planning/fixtures/snapshotPlanningProject.d.ts +5 -0
  81. package/esm/src/cli/cli-commands/coder/planning/planningGitSync.test.d.ts +1 -0
  82. package/esm/src/cli/cli-commands/coder/planning/planningPackagedCli.test.d.ts +1 -0
  83. package/esm/src/cli/cli-commands/coder/planning/planningProtocol.d.ts +152 -0
  84. package/esm/src/cli/cli-commands/coder/planning/planningTeam.test.d.ts +1 -0
  85. package/esm/src/cli/cli-commands/coder/planning/preparePlanningChanges.d.ts +16 -0
  86. package/esm/src/cli/cli-commands/coder/planning/readPlanningContext.d.ts +6 -0
  87. package/esm/src/cli/cli-commands/coder/planning/resolvePlanningPath.d.ts +7 -0
  88. package/esm/src/cli/cli-commands/coder/planning/runPlanningHarness.d.ts +30 -0
  89. package/esm/src/cli/cli-commands/coder/planning/runPlanningHarness.test.d.ts +1 -0
  90. package/esm/src/cli/cli-commands/coder/planning/runPlanningSession.d.ts +24 -0
  91. package/esm/src/cli/cli-commands/coder/planning/runPlanningSession.test.d.ts +1 -0
  92. package/esm/src/cli/cli-commands/coder/planning/savePlanningChanges.d.ts +7 -0
  93. package/esm/src/cli/cli-commands/coder/prepareCoderPackageJsonScripts.d.ts +12 -0
  94. package/esm/src/cli/cli-commands/coder/printCoderRunFailure.d.ts +6 -0
  95. package/esm/src/cli/cli-commands/coder/printInitializationSummary.d.ts +2 -1
  96. package/esm/src/cli/cli-commands/coder/promptsReadmeTemplate.d.ts +13 -0
  97. package/esm/src/cli/cli-commands/coder/promptsReadmeTemplate.test.d.ts +1 -0
  98. package/esm/src/cli/cli-commands/coder/readCoderAgentBook.d.ts +8 -0
  99. package/esm/src/cli/cli-commands/coder/server.test.d.ts +1 -0
  100. package/esm/src/cli/cli-commands/coder/waitOptions.d.ts +12 -0
  101. package/esm/src/cli/cli-commands/coder/workspacePreflight.test.d.ts +1 -0
  102. package/esm/src/cli/cli-commands/coder.d.ts +3 -0
  103. package/esm/src/cli/cli-commands/common/$askForConfirmation.d.ts +11 -0
  104. package/esm/src/cli/cli-commands/common/$askForConfirmation.test.d.ts +1 -0
  105. package/esm/src/cli/cli-commands/common/LocalAgentBookCollection.d.ts +48 -0
  106. package/esm/src/cli/cli-commands/common/coderCheckCliOptions.d.ts +21 -0
  107. package/esm/src/cli/cli-commands/common/coderCheckCliOptions.test.d.ts +1 -0
  108. package/esm/src/cli/cli-commands/common/coderGitSyncCliOptions.d.ts +1 -1
  109. package/esm/src/cli/cli-commands/common/createLocalAgentReferenceResolver.d.ts +8 -0
  110. package/esm/src/cli/cli-commands/common/disk-space/$assertSufficientFreeDiskSpace.d.ts +12 -0
  111. package/esm/src/cli/cli-commands/common/disk-space/$assertSufficientFreeDiskSpace.test.d.ts +1 -0
  112. package/esm/src/cli/cli-commands/common/disk-space/$readFreeDiskSpaceStatus.d.ts +11 -0
  113. package/esm/src/cli/cli-commands/common/disk-space/$readFreeDiskSpaceStatus.test.d.ts +1 -0
  114. package/esm/src/cli/cli-commands/common/disk-space/FreeDiskSpaceStatus.d.ts +33 -0
  115. package/esm/src/cli/cli-commands/common/disk-space/formatFreeDiskSpaceBytes.d.ts +6 -0
  116. package/esm/src/cli/cli-commands/common/disk-space/formatFreeDiskSpaceBytes.test.d.ts +1 -0
  117. package/esm/src/cli/cli-commands/common/disk-space/formatLowFreeDiskSpaceWarning.d.ts +10 -0
  118. package/esm/src/cli/cli-commands/common/disk-space/freeDiskSpaceConstants.d.ts +28 -0
  119. package/esm/src/cli/cli-commands/common/disk-space/resolveFreeDiskSpaceLevel.d.ts +7 -0
  120. package/esm/src/cli/cli-commands/common/disk-space/resolveFreeDiskSpaceLevel.test.d.ts +1 -0
  121. package/esm/src/cli/cli-commands/common/ensureAdamAgentBook.d.ts +12 -0
  122. package/esm/src/cli/cli-commands/common/ensureProjectTextFile.d.ts +7 -0
  123. package/esm/src/cli/cli-commands/common/harness/$applyHarnessInstallationStatus.d.ts +3 -2
  124. package/esm/src/cli/cli-commands/common/harness/$checkHarnessInstallation.d.ts +3 -3
  125. package/esm/src/cli/cli-commands/common/harness/$checkHarnessInstallation.test.d.ts +1 -0
  126. package/esm/src/cli/cli-commands/common/harness/$ensureHarnessInstallations.d.ts +6 -3
  127. package/esm/src/cli/cli-commands/common/harness/$resolveHarnessCommandPath.d.ts +14 -0
  128. package/esm/src/cli/cli-commands/common/harness/$resolveHarnessInstallationOrigin.d.ts +10 -0
  129. package/esm/src/cli/cli-commands/common/harness/$runHarnessInstallationCommand.d.ts +43 -0
  130. package/esm/src/cli/cli-commands/common/harness/HARNESS_DEFAULT_MODELS.d.ts +25 -0
  131. package/esm/src/cli/cli-commands/common/harness/HarnessDefinition.d.ts +62 -0
  132. package/esm/src/cli/cli-commands/common/harness/HarnessInstallationOrigin.d.ts +36 -0
  133. package/esm/src/cli/cli-commands/common/harness/HarnessInstallationStatus.d.ts +8 -2
  134. package/esm/src/cli/cli-commands/common/harness/HarnessUpdatePlan.d.ts +23 -0
  135. package/esm/src/cli/cli-commands/common/harness/buildHarnessInstallCommand.d.ts +4 -1
  136. package/esm/src/cli/cli-commands/common/harness/formatHarnessManualUpdateInstruction.d.ts +8 -0
  137. package/esm/src/cli/cli-commands/common/harness/formatHarnessManualUpdateInstruction.test.d.ts +1 -0
  138. package/esm/src/cli/cli-commands/common/harness/resolveHarnessInstallationMethodFromPaths.d.ts +31 -0
  139. package/esm/src/cli/cli-commands/common/harness/resolveHarnessInstallationMethodFromPaths.test.d.ts +1 -0
  140. package/esm/src/cli/cli-commands/common/harness/resolveHarnessUpdatePlan.d.ts +12 -0
  141. package/esm/src/cli/cli-commands/common/harness/resolveHarnessUpdatePlan.test.d.ts +1 -0
  142. package/esm/src/cli/cli-commands/common/npm/$askForNpmPackageInstallationApproval.d.ts +11 -0
  143. package/{umd/src/cli/cli-commands/common/harness/$resolveLatestHarnessVersion.d.ts → esm/src/cli/cli-commands/common/npm/$resolveLatestNpmPackageVersion.d.ts} +2 -3
  144. package/esm/src/cli/cli-commands/common/npm/$resolveLatestNpmPackageVersion.test.d.ts +1 -0
  145. package/esm/src/cli/cli-commands/common/npm/$resolveNpmGlobalPrefixPath.d.ts +9 -0
  146. package/esm/src/cli/cli-commands/common/npm/buildNpmPackageInstallCommand.d.ts +12 -0
  147. package/esm/src/cli/cli-commands/common/npm/buildNpmPackageInstallCommand.test.d.ts +1 -0
  148. package/esm/src/cli/cli-commands/common/npm/extractNpmPackageVersionFromOutput.d.ts +12 -0
  149. package/esm/src/cli/cli-commands/common/npm/extractNpmPackageVersionFromOutput.test.d.ts +1 -0
  150. package/esm/src/cli/cli-commands/common/npm/isNpmPackageVersionOutdated.d.ts +12 -0
  151. package/esm/src/cli/cli-commands/common/npm/isNpmPackageVersionOutdated.test.d.ts +1 -0
  152. package/esm/src/cli/cli-commands/common/projectCliOptions.d.ts +30 -0
  153. package/esm/src/cli/cli-commands/common/projectCliOptions.test.d.ts +1 -0
  154. package/esm/src/cli/cli-commands/common/projectInitialization.d.ts +6 -0
  155. package/esm/src/cli/cli-commands/common/promptPriorityCliOptions.d.ts +7 -0
  156. package/esm/src/cli/cli-commands/common/promptRunnerCliOptions.d.ts +17 -4
  157. package/esm/src/cli/cli-commands/common/promptbook-cli/$checkPromptbookCliInstallations.d.ts +9 -0
  158. package/esm/src/cli/cli-commands/common/promptbook-cli/$checkPromptbookCliInstallations.test.d.ts +1 -0
  159. package/esm/src/cli/cli-commands/common/promptbook-cli/$ensurePromptbookCliInstallations.d.ts +15 -0
  160. package/esm/src/cli/cli-commands/common/promptbook-cli/$ensurePromptbookCliInstallations.test.d.ts +1 -0
  161. package/esm/src/cli/cli-commands/common/promptbook-cli/$resolvePromptbookCliInstallations.d.ts +12 -0
  162. package/esm/src/cli/cli-commands/common/promptbook-cli/$resolvePromptbookCliInstallations.test.d.ts +1 -0
  163. package/esm/src/cli/cli-commands/common/promptbook-cli/$updatePromptbookCliInstallation.d.ts +10 -0
  164. package/esm/src/cli/cli-commands/common/promptbook-cli/$updatePromptbookCliInstallation.test.d.ts +1 -0
  165. package/esm/src/cli/cli-commands/common/promptbook-cli/PromptbookCliInstallation.d.ts +66 -0
  166. package/esm/src/cli/cli-commands/common/promptbook-cli/PromptbookCliInstallationStatus.d.ts +26 -0
  167. package/esm/src/cli/cli-commands/common/promptbook-cli/buildPromptbookCliInstallCommand.d.ts +7 -0
  168. package/esm/src/cli/cli-commands/common/promptbook-cli/formatPromptbookCliInstallationWarning.d.ts +7 -0
  169. package/esm/src/cli/cli-commands/common/questionsCliOptions.d.ts +45 -0
  170. package/esm/src/cli/cli-commands/common/questionsCliOptions.test.d.ts +1 -0
  171. package/esm/src/cli/cli-commands/common/resolveBundledAgentBookPath.d.ts +6 -0
  172. package/esm/src/cli/cli-commands/common/resolveLocalAgentSource.d.ts +26 -0
  173. package/esm/src/cli/cli-commands/common/validateCoderRunOptions.d.ts +6 -0
  174. package/esm/src/cli/cli-commands/common/workspaceRepository.d.ts +48 -0
  175. package/esm/src/cli/cli-commands/common/workspaceRepository.test.d.ts +1 -0
  176. package/esm/src/cli/cli-commands/common/workspaceRepositoryCliOptions.d.ts +11 -0
  177. package/esm/src/cli/common/$deprecateCliCommand.d.ts +3 -0
  178. package/esm/src/cli/common/$hideCliCommandFromHelp.d.ts +11 -0
  179. package/esm/src/cli/common/$hideCliCommandFromHelp.test.d.ts +1 -0
  180. package/esm/src/cli/common/$requireCliSubcommand.d.ts +18 -0
  181. package/esm/src/cli/common/$requireCliSubcommand.test.d.ts +1 -0
  182. package/esm/src/collection/agent-collection/constructors/agent-collection-in-supabase/AgentCollectionInSupabase.d.ts +15 -0
  183. package/esm/src/commitments/TEAM/TEAM.test.d.ts +1 -0
  184. package/esm/src/commitments/WRITING_RULES/WRITING_RULES.d.ts +14 -7
  185. package/esm/src/commitments/index.d.ts +1 -1
  186. package/esm/src/conversion/archive/loadJsZipModule.d.ts +10 -0
  187. package/esm/src/executables/platforms/locateAppOnWindows.d.ts +1 -1
  188. package/esm/src/executables/platforms/locateAppOnWindows.test.d.ts +1 -0
  189. package/esm/src/llm-providers/vercel/VercelExecutionToolsOptions.d.ts +5 -2
  190. package/esm/src/utils/agent-message-runtime/AgentMessageProjectChange.d.ts +76 -0
  191. package/esm/src/utils/agent-message-runtime/AgentMessageTouchedExternalSource.d.ts +45 -0
  192. package/esm/src/utils/agent-message-runtime/parseAgentMessageRuntimeLogEvents.d.ts +62 -0
  193. package/esm/src/utils/agent-message-runtime/resolveAgentMessageRuntimeActivity.d.ts +3 -3
  194. package/esm/src/utils/agent-message-runtime/resolveAgentMessageTouchedExternalSources.d.ts +18 -0
  195. package/esm/src/utils/agent-message-runtime/resolveAgentMessageTouchedExternalSources.test.d.ts +1 -0
  196. package/esm/src/utils/agent-message-runtime/resolveAgentMessageTouchedProjectNames.d.ts +19 -0
  197. package/esm/src/utils/agent-message-runtime/resolveAgentMessageTouchedProjectNames.test.d.ts +1 -0
  198. package/esm/src/utils/agents/terminalAgentAvatarVisual.d.ts +5 -2
  199. package/esm/src/utils/ascii-art/convertImageDataToAsciiArt.d.ts +6 -0
  200. package/esm/src/utils/ascii-art/createAnsiColorCode.d.ts +46 -0
  201. package/esm/src/utils/files/findFilesByGlob.d.ts +28 -0
  202. package/esm/src/utils/misc/debounce.d.ts +4 -2
  203. package/esm/src/utils/misc/debounce.test.d.ts +1 -0
  204. package/esm/src/utils/misc/emojis.d.ts +3 -2
  205. package/esm/src/utils/random/$generateBookBoilerplate.test.d.ts +1 -0
  206. package/esm/src/version.d.ts +1 -1
  207. package/package.json +3 -7
  208. package/umd/index.umd.js +1836 -297
  209. package/umd/index.umd.js.map +1 -1
  210. package/umd/src/_packages/components.index.d.ts +4 -0
  211. package/umd/src/_packages/types.index.d.ts +4 -0
  212. package/umd/src/avatars/renderAvatarVisualTerminalText.d.ts +80 -0
  213. package/umd/src/avatars/renderAvatarVisualTerminalText.test.d.ts +1 -0
  214. package/umd/src/avatars/types/AvatarVisualDefinition.d.ts +54 -0
  215. package/umd/src/book-2.0/agent-source/AgentReferenceResolutionIssue.d.ts +45 -0
  216. package/umd/src/book-2.0/agent-source/AgentSourceParseResult.d.ts +5 -0
  217. package/umd/src/book-2.0/agent-source/CreateAgentModelRequirementsOptions.d.ts +2 -0
  218. package/umd/src/book-2.0/agent-source/ParsedUnknownCommitment.d.ts +26 -0
  219. package/umd/src/book-2.0/agent-source/createAgentModelRequirements.deduplication.test.d.ts +1 -0
  220. package/umd/src/book-2.0/agent-source/createAgentModelRequirementsWithCommitments.unknown.test.d.ts +1 -0
  221. package/umd/src/book-2.0/agent-source/deduplicateSystemMessage.d.ts +14 -0
  222. package/umd/src/book-2.0/agent-source/deduplicateSystemMessage.test.d.ts +1 -0
  223. package/umd/src/book-2.0/agent-source/explicitFromCommitment.d.ts +62 -0
  224. package/umd/src/book-2.0/agent-source/extractAgentReferenceTokens.d.ts +32 -0
  225. package/umd/src/book-2.0/agent-source/getBookCommitmentLineType.d.ts +19 -0
  226. package/umd/src/book-2.0/agent-source/parseAgentSourceWithCommitments.unknown.test.d.ts +1 -0
  227. package/umd/src/book-2.0/agent-source/resolveInheritedAgentSource.d.ts +73 -0
  228. package/umd/src/book-2.0/book-language-documentation/getSafeCodeBlock.d.ts +1 -1
  229. package/umd/src/book-3.0/AgentMessageRunReport.d.ts +46 -0
  230. package/umd/src/book-3.0/AgentPlannedMessagesSidecar.d.ts +127 -0
  231. package/umd/src/book-3.0/AgentPlannedMessagesSidecar.test.d.ts +1 -0
  232. package/umd/src/book-3.0/AgentTeamConversationWorkspace.d.ts +85 -0
  233. package/umd/src/book-3.0/cliAgentEnv.d.ts +3 -3
  234. package/umd/src/book-3.0/createAgentMessageSidecarBaseName.d.ts +13 -0
  235. package/umd/src/book-3.0/describeAgentPlannedMessageSchedule.d.ts +31 -0
  236. package/umd/src/book-components/BookEditor/createDeprecatedCommitmentDiagnostics.browser.d.ts +1 -9
  237. package/umd/src/book-components/BookEditor/createDuplicateFromCommitmentDiagnostics.d.ts +28 -0
  238. package/umd/src/book-components/BookEditor/createDuplicateFromCommitmentDiagnostics.test.d.ts +1 -0
  239. package/umd/src/book-components/BookEditor/createUnknownCommitmentDiagnostics.d.ts +28 -0
  240. package/umd/src/book-components/BookEditor/createUnknownCommitmentDiagnostics.test.d.ts +1 -0
  241. package/umd/src/book-components/Chat/Chat/ChatProps.d.ts +3 -2
  242. package/umd/src/book-components/Chat/Chat/renderAgentProjectDiff.d.ts +13 -0
  243. package/umd/src/book-components/Chat/Chat/renderAgentProjectToolCallDetails.d.ts +16 -0
  244. package/umd/src/book-components/Chat/MockedChat/MockedChat.test.d.ts +2 -0
  245. package/umd/src/book-components/Chat/utils/agentProjectToolCall.d.ts +85 -0
  246. package/umd/src/book-components/Chat/utils/agentProjectToolCall.test.d.ts +1 -0
  247. package/umd/src/book-components/Chat/utils/externalSourceToolCall.d.ts +38 -0
  248. package/umd/src/book-components/Chat/utils/renderMarkdown.d.ts +68 -3
  249. package/umd/src/book-components/Chat/utils/timeoutToolCallPresentation.d.ts +30 -0
  250. package/umd/src/cli/$initializePromptbookCliProgram.d.ts +8 -0
  251. package/umd/src/cli/cli-commands/coder/$ensureCoderHarnessGitignoreRules.d.ts +10 -0
  252. package/umd/src/cli/cli-commands/coder/$ensureCoderHarnessGitignoreRules.test.d.ts +1 -0
  253. package/umd/src/cli/cli-commands/coder/GitChangesMode.d.ts +28 -0
  254. package/umd/src/cli/cli-commands/coder/add.d.ts +22 -1
  255. package/umd/src/cli/cli-commands/coder/agentCliOptions.d.ts +27 -0
  256. package/umd/src/cli/cli-commands/coder/augmentCoderAgentTeam.d.ts +7 -0
  257. package/umd/src/cli/cli-commands/coder/boilerplateCount.d.ts +1 -1
  258. package/umd/src/cli/cli-commands/coder/boilerplateTemplates.d.ts +8 -21
  259. package/umd/src/cli/cli-commands/coder/coderAgentRole.d.ts +21 -0
  260. package/umd/src/cli/cli-commands/coder/coderReferencedArtifacts.d.ts +34 -0
  261. package/umd/src/cli/cli-commands/coder/ensureCoderDefaultAgentFiles.d.ts +8 -0
  262. package/umd/src/cli/cli-commands/coder/ensureCoderDefaultAgentFiles.test.d.ts +1 -0
  263. package/umd/src/cli/cli-commands/coder/ensureCoderGitattributesFile.d.ts +13 -0
  264. package/umd/src/cli/cli-commands/coder/ensureCoderGitignoreFile.d.ts +14 -1
  265. package/umd/src/cli/cli-commands/coder/ensureCoderPackageJsonFile.d.ts +5 -2
  266. package/umd/src/cli/cli-commands/coder/ensureCoderPackageJsonFile.test.d.ts +1 -0
  267. package/umd/src/cli/cli-commands/coder/ensureCoderRoleAgentFile.d.ts +12 -0
  268. package/umd/src/cli/cli-commands/coder/ensureCoderVscodeSettingsFile.d.ts +2 -0
  269. package/umd/src/cli/cli-commands/coder/ensureDirectory.d.ts +6 -0
  270. package/umd/src/cli/cli-commands/coder/findLegacyCoderCheckCallers.d.ts +5 -0
  271. package/umd/src/cli/cli-commands/coder/fix.d.ts +7 -0
  272. package/umd/src/cli/cli-commands/coder/fix.test.d.ts +1 -0
  273. package/umd/src/cli/cli-commands/coder/fixWorkflow.test.d.ts +1 -0
  274. package/umd/src/cli/cli-commands/coder/generate-boilerplates.d.ts +2 -2
  275. package/umd/src/cli/cli-commands/coder/getCoderInitializationCommitPaths.d.ts +9 -0
  276. package/umd/src/cli/cli-commands/coder/getDefaultCoderPackageJsonScripts.d.ts +6 -0
  277. package/umd/src/cli/cli-commands/coder/init.test.d.ts +1 -0
  278. package/umd/src/cli/cli-commands/coder/initializeCoderProjectConfiguration.d.ts +18 -6
  279. package/umd/src/cli/cli-commands/coder/list.d.ts +10 -0
  280. package/umd/src/cli/cli-commands/coder/list.test.d.ts +1 -0
  281. package/umd/src/cli/cli-commands/coder/mergeStringRecordJsonFile.d.ts +21 -1
  282. package/umd/src/cli/cli-commands/coder/plan.d.ts +7 -0
  283. package/umd/src/cli/cli-commands/coder/planning/assertPlanningCommitSafe.d.ts +6 -0
  284. package/umd/src/cli/cli-commands/coder/planning/assertPlanningPrdCommitScope.d.ts +7 -0
  285. package/umd/src/cli/cli-commands/coder/planning/assertPlanningRuntimePath.d.ts +6 -0
  286. package/umd/src/cli/cli-commands/coder/planning/createPlanningTerminal.d.ts +8 -0
  287. package/umd/src/cli/cli-commands/coder/planning/createPlanningTerminal.test.d.ts +1 -0
  288. package/umd/src/cli/cli-commands/coder/planning/createPlanningWorkspace.d.ts +11 -0
  289. package/umd/src/cli/cli-commands/coder/planning/discussPlanningTurn.d.ts +15 -0
  290. package/umd/src/cli/cli-commands/coder/planning/fixtures/snapshotPlanningProject.d.ts +5 -0
  291. package/umd/src/cli/cli-commands/coder/planning/planningGitSync.test.d.ts +1 -0
  292. package/umd/src/cli/cli-commands/coder/planning/planningPackagedCli.test.d.ts +1 -0
  293. package/umd/src/cli/cli-commands/coder/planning/planningProtocol.d.ts +152 -0
  294. package/umd/src/cli/cli-commands/coder/planning/planningTeam.test.d.ts +1 -0
  295. package/umd/src/cli/cli-commands/coder/planning/preparePlanningChanges.d.ts +16 -0
  296. package/umd/src/cli/cli-commands/coder/planning/readPlanningContext.d.ts +6 -0
  297. package/umd/src/cli/cli-commands/coder/planning/resolvePlanningPath.d.ts +7 -0
  298. package/umd/src/cli/cli-commands/coder/planning/runPlanningHarness.d.ts +30 -0
  299. package/umd/src/cli/cli-commands/coder/planning/runPlanningHarness.test.d.ts +1 -0
  300. package/umd/src/cli/cli-commands/coder/planning/runPlanningSession.d.ts +24 -0
  301. package/umd/src/cli/cli-commands/coder/planning/runPlanningSession.test.d.ts +1 -0
  302. package/umd/src/cli/cli-commands/coder/planning/savePlanningChanges.d.ts +7 -0
  303. package/umd/src/cli/cli-commands/coder/prepareCoderPackageJsonScripts.d.ts +12 -0
  304. package/umd/src/cli/cli-commands/coder/printCoderRunFailure.d.ts +6 -0
  305. package/umd/src/cli/cli-commands/coder/printInitializationSummary.d.ts +2 -1
  306. package/umd/src/cli/cli-commands/coder/promptsReadmeTemplate.d.ts +13 -0
  307. package/umd/src/cli/cli-commands/coder/promptsReadmeTemplate.test.d.ts +1 -0
  308. package/umd/src/cli/cli-commands/coder/readCoderAgentBook.d.ts +8 -0
  309. package/umd/src/cli/cli-commands/coder/server.test.d.ts +1 -0
  310. package/umd/src/cli/cli-commands/coder/waitOptions.d.ts +12 -0
  311. package/umd/src/cli/cli-commands/coder/workspacePreflight.test.d.ts +1 -0
  312. package/umd/src/cli/cli-commands/coder.d.ts +3 -0
  313. package/umd/src/cli/cli-commands/common/$askForConfirmation.d.ts +11 -0
  314. package/umd/src/cli/cli-commands/common/$askForConfirmation.test.d.ts +1 -0
  315. package/umd/src/cli/cli-commands/common/LocalAgentBookCollection.d.ts +48 -0
  316. package/umd/src/cli/cli-commands/common/coderCheckCliOptions.d.ts +21 -0
  317. package/umd/src/cli/cli-commands/common/coderCheckCliOptions.test.d.ts +1 -0
  318. package/umd/src/cli/cli-commands/common/coderGitSyncCliOptions.d.ts +1 -1
  319. package/umd/src/cli/cli-commands/common/createLocalAgentReferenceResolver.d.ts +8 -0
  320. package/umd/src/cli/cli-commands/common/disk-space/$assertSufficientFreeDiskSpace.d.ts +12 -0
  321. package/umd/src/cli/cli-commands/common/disk-space/$assertSufficientFreeDiskSpace.test.d.ts +1 -0
  322. package/umd/src/cli/cli-commands/common/disk-space/$readFreeDiskSpaceStatus.d.ts +11 -0
  323. package/umd/src/cli/cli-commands/common/disk-space/$readFreeDiskSpaceStatus.test.d.ts +1 -0
  324. package/umd/src/cli/cli-commands/common/disk-space/FreeDiskSpaceStatus.d.ts +33 -0
  325. package/umd/src/cli/cli-commands/common/disk-space/formatFreeDiskSpaceBytes.d.ts +6 -0
  326. package/umd/src/cli/cli-commands/common/disk-space/formatFreeDiskSpaceBytes.test.d.ts +1 -0
  327. package/umd/src/cli/cli-commands/common/disk-space/formatLowFreeDiskSpaceWarning.d.ts +10 -0
  328. package/umd/src/cli/cli-commands/common/disk-space/freeDiskSpaceConstants.d.ts +28 -0
  329. package/umd/src/cli/cli-commands/common/disk-space/resolveFreeDiskSpaceLevel.d.ts +7 -0
  330. package/umd/src/cli/cli-commands/common/disk-space/resolveFreeDiskSpaceLevel.test.d.ts +1 -0
  331. package/umd/src/cli/cli-commands/common/ensureAdamAgentBook.d.ts +12 -0
  332. package/umd/src/cli/cli-commands/common/ensureProjectTextFile.d.ts +7 -0
  333. package/umd/src/cli/cli-commands/common/harness/$applyHarnessInstallationStatus.d.ts +3 -2
  334. package/umd/src/cli/cli-commands/common/harness/$checkHarnessInstallation.d.ts +3 -3
  335. package/umd/src/cli/cli-commands/common/harness/$checkHarnessInstallation.test.d.ts +1 -0
  336. package/umd/src/cli/cli-commands/common/harness/$ensureHarnessInstallations.d.ts +6 -3
  337. package/umd/src/cli/cli-commands/common/harness/$resolveHarnessCommandPath.d.ts +14 -0
  338. package/umd/src/cli/cli-commands/common/harness/$resolveHarnessInstallationOrigin.d.ts +10 -0
  339. package/umd/src/cli/cli-commands/common/harness/$runHarnessInstallationCommand.d.ts +43 -0
  340. package/umd/src/cli/cli-commands/common/harness/HARNESS_DEFAULT_MODELS.d.ts +25 -0
  341. package/umd/src/cli/cli-commands/common/harness/HarnessDefinition.d.ts +62 -0
  342. package/umd/src/cli/cli-commands/common/harness/HarnessInstallationOrigin.d.ts +36 -0
  343. package/umd/src/cli/cli-commands/common/harness/HarnessInstallationStatus.d.ts +8 -2
  344. package/umd/src/cli/cli-commands/common/harness/HarnessUpdatePlan.d.ts +23 -0
  345. package/umd/src/cli/cli-commands/common/harness/buildHarnessInstallCommand.d.ts +4 -1
  346. package/umd/src/cli/cli-commands/common/harness/formatHarnessManualUpdateInstruction.d.ts +8 -0
  347. package/umd/src/cli/cli-commands/common/harness/formatHarnessManualUpdateInstruction.test.d.ts +1 -0
  348. package/umd/src/cli/cli-commands/common/harness/resolveHarnessInstallationMethodFromPaths.d.ts +31 -0
  349. package/umd/src/cli/cli-commands/common/harness/resolveHarnessInstallationMethodFromPaths.test.d.ts +1 -0
  350. package/umd/src/cli/cli-commands/common/harness/resolveHarnessUpdatePlan.d.ts +12 -0
  351. package/umd/src/cli/cli-commands/common/harness/resolveHarnessUpdatePlan.test.d.ts +1 -0
  352. package/umd/src/cli/cli-commands/common/npm/$askForNpmPackageInstallationApproval.d.ts +11 -0
  353. package/{esm/src/cli/cli-commands/common/harness/$resolveLatestHarnessVersion.d.ts → umd/src/cli/cli-commands/common/npm/$resolveLatestNpmPackageVersion.d.ts} +2 -3
  354. package/umd/src/cli/cli-commands/common/npm/$resolveLatestNpmPackageVersion.test.d.ts +1 -0
  355. package/umd/src/cli/cli-commands/common/npm/$resolveNpmGlobalPrefixPath.d.ts +9 -0
  356. package/umd/src/cli/cli-commands/common/npm/buildNpmPackageInstallCommand.d.ts +12 -0
  357. package/umd/src/cli/cli-commands/common/npm/buildNpmPackageInstallCommand.test.d.ts +1 -0
  358. package/umd/src/cli/cli-commands/common/npm/extractNpmPackageVersionFromOutput.d.ts +12 -0
  359. package/umd/src/cli/cli-commands/common/npm/extractNpmPackageVersionFromOutput.test.d.ts +1 -0
  360. package/umd/src/cli/cli-commands/common/npm/isNpmPackageVersionOutdated.d.ts +12 -0
  361. package/umd/src/cli/cli-commands/common/npm/isNpmPackageVersionOutdated.test.d.ts +1 -0
  362. package/umd/src/cli/cli-commands/common/projectCliOptions.d.ts +30 -0
  363. package/umd/src/cli/cli-commands/common/projectCliOptions.test.d.ts +1 -0
  364. package/umd/src/cli/cli-commands/common/projectInitialization.d.ts +6 -0
  365. package/umd/src/cli/cli-commands/common/promptPriorityCliOptions.d.ts +7 -0
  366. package/umd/src/cli/cli-commands/common/promptRunnerCliOptions.d.ts +17 -4
  367. package/umd/src/cli/cli-commands/common/promptbook-cli/$checkPromptbookCliInstallations.d.ts +9 -0
  368. package/umd/src/cli/cli-commands/common/promptbook-cli/$checkPromptbookCliInstallations.test.d.ts +1 -0
  369. package/umd/src/cli/cli-commands/common/promptbook-cli/$ensurePromptbookCliInstallations.d.ts +15 -0
  370. package/umd/src/cli/cli-commands/common/promptbook-cli/$ensurePromptbookCliInstallations.test.d.ts +1 -0
  371. package/umd/src/cli/cli-commands/common/promptbook-cli/$resolvePromptbookCliInstallations.d.ts +12 -0
  372. package/umd/src/cli/cli-commands/common/promptbook-cli/$resolvePromptbookCliInstallations.test.d.ts +1 -0
  373. package/umd/src/cli/cli-commands/common/promptbook-cli/$updatePromptbookCliInstallation.d.ts +10 -0
  374. package/umd/src/cli/cli-commands/common/promptbook-cli/$updatePromptbookCliInstallation.test.d.ts +1 -0
  375. package/umd/src/cli/cli-commands/common/promptbook-cli/PromptbookCliInstallation.d.ts +66 -0
  376. package/umd/src/cli/cli-commands/common/promptbook-cli/PromptbookCliInstallationStatus.d.ts +26 -0
  377. package/umd/src/cli/cli-commands/common/promptbook-cli/buildPromptbookCliInstallCommand.d.ts +7 -0
  378. package/umd/src/cli/cli-commands/common/promptbook-cli/formatPromptbookCliInstallationWarning.d.ts +7 -0
  379. package/umd/src/cli/cli-commands/common/questionsCliOptions.d.ts +45 -0
  380. package/umd/src/cli/cli-commands/common/questionsCliOptions.test.d.ts +1 -0
  381. package/umd/src/cli/cli-commands/common/resolveBundledAgentBookPath.d.ts +6 -0
  382. package/umd/src/cli/cli-commands/common/resolveLocalAgentSource.d.ts +26 -0
  383. package/umd/src/cli/cli-commands/common/validateCoderRunOptions.d.ts +6 -0
  384. package/umd/src/cli/cli-commands/common/workspaceRepository.d.ts +48 -0
  385. package/umd/src/cli/cli-commands/common/workspaceRepository.test.d.ts +1 -0
  386. package/umd/src/cli/cli-commands/common/workspaceRepositoryCliOptions.d.ts +11 -0
  387. package/umd/src/cli/common/$deprecateCliCommand.d.ts +3 -0
  388. package/umd/src/cli/common/$hideCliCommandFromHelp.d.ts +11 -0
  389. package/umd/src/cli/common/$hideCliCommandFromHelp.test.d.ts +1 -0
  390. package/umd/src/cli/common/$requireCliSubcommand.d.ts +18 -0
  391. package/umd/src/cli/common/$requireCliSubcommand.test.d.ts +1 -0
  392. package/umd/src/collection/agent-collection/constructors/agent-collection-in-supabase/AgentCollectionInSupabase.d.ts +15 -0
  393. package/umd/src/commitments/TEAM/TEAM.test.d.ts +1 -0
  394. package/umd/src/commitments/WRITING_RULES/WRITING_RULES.d.ts +14 -7
  395. package/umd/src/commitments/index.d.ts +1 -1
  396. package/umd/src/conversion/archive/loadJsZipModule.d.ts +10 -0
  397. package/umd/src/executables/platforms/locateAppOnWindows.d.ts +1 -1
  398. package/umd/src/executables/platforms/locateAppOnWindows.test.d.ts +1 -0
  399. package/umd/src/llm-providers/vercel/VercelExecutionToolsOptions.d.ts +5 -2
  400. package/umd/src/utils/agent-message-runtime/AgentMessageProjectChange.d.ts +76 -0
  401. package/umd/src/utils/agent-message-runtime/AgentMessageTouchedExternalSource.d.ts +45 -0
  402. package/umd/src/utils/agent-message-runtime/parseAgentMessageRuntimeLogEvents.d.ts +62 -0
  403. package/umd/src/utils/agent-message-runtime/resolveAgentMessageRuntimeActivity.d.ts +3 -3
  404. package/umd/src/utils/agent-message-runtime/resolveAgentMessageTouchedExternalSources.d.ts +18 -0
  405. package/umd/src/utils/agent-message-runtime/resolveAgentMessageTouchedExternalSources.test.d.ts +1 -0
  406. package/umd/src/utils/agent-message-runtime/resolveAgentMessageTouchedProjectNames.d.ts +19 -0
  407. package/umd/src/utils/agent-message-runtime/resolveAgentMessageTouchedProjectNames.test.d.ts +1 -0
  408. package/umd/src/utils/agents/terminalAgentAvatarVisual.d.ts +5 -2
  409. package/umd/src/utils/ascii-art/convertImageDataToAsciiArt.d.ts +6 -0
  410. package/umd/src/utils/ascii-art/createAnsiColorCode.d.ts +46 -0
  411. package/umd/src/utils/files/findFilesByGlob.d.ts +28 -0
  412. package/umd/src/utils/misc/debounce.d.ts +4 -2
  413. package/umd/src/utils/misc/debounce.test.d.ts +1 -0
  414. package/umd/src/utils/misc/emojis.d.ts +3 -2
  415. package/umd/src/utils/random/$generateBookBoilerplate.test.d.ts +1 -0
  416. package/umd/src/version.d.ts +1 -1
  417. package/esm/src/cli/cli-commands/coder/agentCodingFile.d.ts +0 -13
  418. package/esm/src/cli/cli-commands/common/harness/$askForHarnessInstallationApproval.d.ts +0 -9
  419. package/esm/src/cli/cli-commands/common/harness/$installHarness.d.ts +0 -13
  420. package/esm/src/cli/cli-commands/common/harness/extractHarnessVersionFromOutput.d.ts +0 -11
  421. package/esm/src/cli/cli-commands/common/harness/isHarnessVersionOutdated.d.ts +0 -9
  422. package/umd/src/cli/cli-commands/coder/agentCodingFile.d.ts +0 -13
  423. package/umd/src/cli/cli-commands/common/harness/$askForHarnessInstallationApproval.d.ts +0 -9
  424. package/umd/src/cli/cli-commands/common/harness/$installHarness.d.ts +0 -13
  425. package/umd/src/cli/cli-commands/common/harness/extractHarnessVersionFromOutput.d.ts +0 -11
  426. package/umd/src/cli/cli-commands/common/harness/isHarnessVersionOutdated.d.ts +0 -9
  427. /package/esm/src/{cli/cli-commands/common/harness/extractHarnessVersionFromOutput.test.d.ts → avatars/renderAvatarVisualTerminalText.test.d.ts} +0 -0
  428. /package/esm/src/{cli/cli-commands/common/harness/isHarnessVersionOutdated.test.d.ts → book-2.0/agent-source/createAgentModelRequirements.deduplication.test.d.ts} +0 -0
  429. /package/{umd/src/cli/cli-commands/common/harness/extractHarnessVersionFromOutput.test.d.ts → esm/src/book-2.0/agent-source/createAgentModelRequirementsWithCommitments.unknown.test.d.ts} +0 -0
  430. /package/{umd/src/cli/cli-commands/common/harness/isHarnessVersionOutdated.test.d.ts → esm/src/book-2.0/agent-source/deduplicateSystemMessage.test.d.ts} +0 -0
@@ -0,0 +1,152 @@
1
+ import { z as schema } from 'zod';
2
+ /** Read-only host requests and scoped TEAM consultations; there is deliberately no shell operation. */
3
+ declare const PLANNING_READ_SCHEMA: schema.ZodDiscriminatedUnion<[schema.ZodObject<{
4
+ kind: schema.ZodLiteral<"list">;
5
+ path: schema.ZodString;
6
+ }, schema.core.$strict>, schema.ZodObject<{
7
+ kind: schema.ZodLiteral<"read">;
8
+ path: schema.ZodString;
9
+ startLine: schema.ZodNumber;
10
+ lineCount: schema.ZodNumber;
11
+ }, schema.core.$strict>, schema.ZodObject<{
12
+ kind: schema.ZodLiteral<"search">;
13
+ path: schema.ZodString;
14
+ query: schema.ZodString;
15
+ }, schema.core.$strict>, schema.ZodObject<{
16
+ kind: schema.ZodLiteral<"git">;
17
+ operation: schema.ZodEnum<{
18
+ status: "status";
19
+ diff: "diff";
20
+ log: "log";
21
+ }>;
22
+ }, schema.core.$strict>, schema.ZodObject<{
23
+ message: schema.ZodString;
24
+ context: schema.ZodNonOptional<schema.ZodOptional<schema.ZodString>>;
25
+ kind: schema.ZodLiteral<"team">;
26
+ toolName: schema.ZodString;
27
+ }, schema.core.$strict>], "kind">;
28
+ /** Proposed changes are data, never instructions executed by a harness. */
29
+ declare const PLANNING_PROPOSAL_SCHEMA: schema.ZodDiscriminatedUnion<[schema.ZodObject<{
30
+ kind: schema.ZodLiteral<"create">;
31
+ title: schema.ZodString;
32
+ body: schema.ZodString;
33
+ priority: schema.ZodNumber;
34
+ isReady: schema.ZodBoolean;
35
+ }, schema.core.$strict>, schema.ZodObject<{
36
+ kind: schema.ZodLiteral<"edit">;
37
+ path: schema.ZodString;
38
+ find: schema.ZodString;
39
+ replace: schema.ZodString;
40
+ isReady: schema.ZodBoolean;
41
+ }, schema.core.$strict>], "kind">;
42
+ /** Strict validation prevents unsupported operations from reaching any filesystem code. */
43
+ declare const PLANNING_REPLY_SCHEMA: schema.ZodObject<{
44
+ message: schema.ZodString;
45
+ reads: schema.ZodArray<schema.ZodDiscriminatedUnion<[schema.ZodObject<{
46
+ kind: schema.ZodLiteral<"list">;
47
+ path: schema.ZodString;
48
+ }, schema.core.$strict>, schema.ZodObject<{
49
+ kind: schema.ZodLiteral<"read">;
50
+ path: schema.ZodString;
51
+ startLine: schema.ZodNumber;
52
+ lineCount: schema.ZodNumber;
53
+ }, schema.core.$strict>, schema.ZodObject<{
54
+ kind: schema.ZodLiteral<"search">;
55
+ path: schema.ZodString;
56
+ query: schema.ZodString;
57
+ }, schema.core.$strict>, schema.ZodObject<{
58
+ kind: schema.ZodLiteral<"git">;
59
+ operation: schema.ZodEnum<{
60
+ status: "status";
61
+ diff: "diff";
62
+ log: "log";
63
+ }>;
64
+ }, schema.core.$strict>, schema.ZodObject<{
65
+ message: schema.ZodString;
66
+ context: schema.ZodNonOptional<schema.ZodOptional<schema.ZodString>>;
67
+ kind: schema.ZodLiteral<"team">;
68
+ toolName: schema.ZodString;
69
+ }, schema.core.$strict>], "kind">>;
70
+ proposals: schema.ZodArray<schema.ZodDiscriminatedUnion<[schema.ZodObject<{
71
+ kind: schema.ZodLiteral<"create">;
72
+ title: schema.ZodString;
73
+ body: schema.ZodString;
74
+ priority: schema.ZodNumber;
75
+ isReady: schema.ZodBoolean;
76
+ }, schema.core.$strict>, schema.ZodObject<{
77
+ kind: schema.ZodLiteral<"edit">;
78
+ path: schema.ZodString;
79
+ find: schema.ZodString;
80
+ replace: schema.ZodString;
81
+ isReady: schema.ZodBoolean;
82
+ }, schema.core.$strict>], "kind">>;
83
+ }, schema.core.$strict>;
84
+ /**
85
+ * The same response contract constrains Codex output and validates it at the host boundary.
86
+ * @private internal constant of `coder plan`
87
+ */
88
+ export declare const PLANNING_RESPONSE_SCHEMA: schema.core.ZodStandardJSONSchemaPayload<schema.ZodObject<{
89
+ message: schema.ZodString;
90
+ reads: schema.ZodArray<schema.ZodDiscriminatedUnion<[schema.ZodObject<{
91
+ kind: schema.ZodLiteral<"list">;
92
+ path: schema.ZodString;
93
+ }, schema.core.$strict>, schema.ZodObject<{
94
+ kind: schema.ZodLiteral<"read">;
95
+ path: schema.ZodString;
96
+ startLine: schema.ZodNumber;
97
+ lineCount: schema.ZodNumber;
98
+ }, schema.core.$strict>, schema.ZodObject<{
99
+ kind: schema.ZodLiteral<"search">;
100
+ path: schema.ZodString;
101
+ query: schema.ZodString;
102
+ }, schema.core.$strict>, schema.ZodObject<{
103
+ kind: schema.ZodLiteral<"git">;
104
+ operation: schema.ZodEnum<{
105
+ status: "status";
106
+ diff: "diff";
107
+ log: "log";
108
+ }>;
109
+ }, schema.core.$strict>, schema.ZodObject<{
110
+ message: schema.ZodString;
111
+ context: schema.ZodNonOptional<schema.ZodOptional<schema.ZodString>>;
112
+ kind: schema.ZodLiteral<"team">;
113
+ toolName: schema.ZodString;
114
+ }, schema.core.$strict>], "kind">>;
115
+ proposals: schema.ZodArray<schema.ZodDiscriminatedUnion<[schema.ZodObject<{
116
+ kind: schema.ZodLiteral<"create">;
117
+ title: schema.ZodString;
118
+ body: schema.ZodString;
119
+ priority: schema.ZodNumber;
120
+ isReady: schema.ZodBoolean;
121
+ }, schema.core.$strict>, schema.ZodObject<{
122
+ kind: schema.ZodLiteral<"edit">;
123
+ path: schema.ZodString;
124
+ find: schema.ZodString;
125
+ replace: schema.ZodString;
126
+ isReady: schema.ZodBoolean;
127
+ }, schema.core.$strict>], "kind">>;
128
+ }, schema.core.$strict>>;
129
+ /** @private internal type of `coder plan` */
130
+ export type PlanningRead = Exclude<schema.infer<typeof PLANNING_READ_SCHEMA>, {
131
+ kind: 'team';
132
+ }>;
133
+ /** @private internal type of `coder plan` */
134
+ export type PlanningProposal = schema.infer<typeof PLANNING_PROPOSAL_SCHEMA>;
135
+ /** @private internal type of `coder plan` */
136
+ export type PlanningReply = schema.infer<typeof PLANNING_REPLY_SCHEMA>;
137
+ /** @private internal type of `coder plan` */
138
+ export type PlanningMessage = {
139
+ readonly role: 'user' | 'planner' | 'context';
140
+ readonly content: string;
141
+ };
142
+ /**
143
+ * Rejects malformed or unsupported harness output before processing reads or proposed writes.
144
+ * @private internal utility of `coder plan`
145
+ */
146
+ export declare function parsePlanningReply(output: string): PlanningReply;
147
+ /**
148
+ * Describes the host-mediated planning protocol, independent of the selected Book's instructions.
149
+ * @private internal constant of `coder plan`
150
+ */
151
+ export declare const PLANNING_PROTOCOL: string;
152
+ export {};
@@ -0,0 +1,16 @@
1
+ import type { PlanningProposal } from './planningProtocol';
2
+ /**
3
+ * A fully rendered change retained in memory until the user explicitly saves it.
4
+ * @private internal type of `coder plan`
5
+ */
6
+ export type PlanningChange = {
7
+ readonly path: string;
8
+ readonly before: string | null;
9
+ readonly after: string;
10
+ readonly draft: string;
11
+ };
12
+ /**
13
+ * Prepares an entire proposal set without writing. Exact replacements preserve unrelated content and line endings.
14
+ * @private internal utility of `coder plan`
15
+ */
16
+ export declare function preparePlanningChanges(projectPath: string, proposals: ReadonlyArray<PlanningProposal>, templateOption: string | undefined): Promise<PlanningChange[]>;
@@ -0,0 +1,6 @@
1
+ import type { PlanningRead } from './planningProtocol';
2
+ /**
3
+ * Executes only the read operations in the planning protocol. Never evaluates a command from the model.
4
+ * @private internal utility of `coder plan`
5
+ */
6
+ export declare function readPlanningContext(projectPath: string, request: PlanningRead): Promise<string>;
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Resolves a repository path without traversing symlinks, junctions, device paths, or parent escapes.
3
+ * Writes additionally require an ordinary, singly linked PRD Markdown file in the active prompts directory.
4
+ * The queue loader reads only this directory; archives, templates and reusable context remain read-only.
5
+ * @private internal execution boundary of `coder plan`
6
+ */
7
+ export declare function resolvePlanningPath(projectPath: string, path: string, isWriting?: boolean): string;
@@ -0,0 +1,30 @@
1
+ import type { Usage } from '../../../../execution/Usage';
2
+ import type { NormalizedPromptRunnerSelectionCliOptions } from '../../common/promptRunnerCliOptions';
3
+ /**
4
+ * Parameters for one tool-restricted inference. Repository reads and PRD writes are host operations.
5
+ * @private internal type of `coder plan`
6
+ */
7
+ export type PlanningHarnessOptions = NormalizedPromptRunnerSelectionCliOptions & {
8
+ readonly workspacePath: string;
9
+ readonly prompt: string;
10
+ readonly signal: AbortSignal;
11
+ /** Reports available usage from this inference once, including turns whose final answer is malformed. */
12
+ readonly onUsage?: (usage: Usage) => void;
13
+ };
14
+ /**
15
+ * Rejects harnesses without a planning execution policy before any Git sync or process launch.
16
+ * @private internal utility of `coder plan`
17
+ */
18
+ export declare function assertPlanningHarnessSupported(harness: string | undefined): void;
19
+ /**
20
+ * Constructs a fail-closed Codex invocation. User config, rules, project config discovery, native shell,
21
+ * connectors, hooks and delegation cannot expand the planning tool set. Read-only sandboxing also denies patches.
22
+ * Older Codex versions that do not support these switches fail instead of using the implementation runner.
23
+ * @private internal utility of `coder plan`
24
+ */
25
+ export declare function buildPlanningHarnessArguments(options: PlanningHarnessOptions): string[];
26
+ /**
27
+ * Runs a bounded inference with no shell interpolation and consumes only its final JSON answer.
28
+ * @private internal utility of `coder plan`
29
+ */
30
+ export declare function runPlanningHarness(options: PlanningHarnessOptions): Promise<string>;
@@ -0,0 +1,24 @@
1
+ import { type ResolvedCoderProjectContext } from '../../../../../scripts/run-codex-prompts/common/resolveCoderProjectContext';
2
+ import type { NormalizedPromptRunnerSelectionCliOptions } from '../../common/promptRunnerCliOptions';
3
+ import { runPlanningHarness } from './runPlanningHarness';
4
+ /**
5
+ * Terminal interface also used by deterministic conversation fixtures.
6
+ * @private internal type of `coder plan`
7
+ */
8
+ export type PlanningSessionIo = {
9
+ readonly readMessage: () => Promise<string | undefined>;
10
+ readonly write: (message: string) => void;
11
+ readonly signal: AbortSignal;
12
+ };
13
+ /**
14
+ * Runs one multi-topic planning conversation; only explicit save commands cross the PRD write boundary.
15
+ * @private internal utility of `coder plan`
16
+ */
17
+ export declare function runPlanningSession(options: NormalizedPromptRunnerSelectionCliOptions & {
18
+ readonly projectPath: string;
19
+ readonly agent?: string;
20
+ readonly context?: string;
21
+ readonly projectContext?: ResolvedCoderProjectContext;
22
+ readonly template?: string;
23
+ readonly preexistingChangedPaths?: ReadonlySet<string>;
24
+ }, io: PlanningSessionIo, harness?: typeof runPlanningHarness): Promise<ReadonlyMap<string, string>>;
@@ -0,0 +1,7 @@
1
+ import type { PlanningChange } from './preparePlanningChanges';
2
+ /**
3
+ * Validates the entire batch before writing, stages outside the queue, then atomically replaces each file.
4
+ * The synchronous commit region cannot be interrupted by a SIGINT callback halfway through a save.
5
+ * @private internal execution boundary of `coder plan`
6
+ */
7
+ export declare function savePlanningChanges(projectPath: string, workspacePath: string, changes: ReadonlyArray<PlanningChange>, isDraft: boolean): string[];
@@ -0,0 +1,12 @@
1
+ /** Result of preparing project-owned checks and migrating recognized generated callers. @private internal initializer result */
2
+ export type PreparedCoderPackageJsonScripts = {
3
+ readonly scripts: Readonly<Record<string, string>>;
4
+ readonly checkScriptSummary: string;
5
+ readonly migrationInstructions: ReadonlyArray<string>;
6
+ readonly isCheckConfigured: boolean;
7
+ };
8
+ /**
9
+ * Preserves project scripts, creates one canonical check, and migrates only exact generated caller forms.
10
+ * @private shared package-script preparation for Coder initialization
11
+ */
12
+ export declare function prepareCoderPackageJsonScripts(existing: Readonly<Record<string, string>>, externalCallers?: Readonly<Record<string, ReadonlyArray<string>>>): PreparedCoderPackageJsonScripts;
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Prints why a coder run has ended to the terminal.
3
+ *
4
+ * @private internal utility of `coder run` and `coder server` commands
5
+ */
6
+ export declare function printCoderRunFailure(error: Error): void;
@@ -1,7 +1,8 @@
1
+ import type { WorkspaceRepositoryContext } from '../common/workspaceRepository';
1
2
  import type { CoderInitializationSummary } from './initializeCoderProjectConfiguration';
2
3
  /**
3
4
  * Prints a readable summary of what was initialized for the user.
4
5
  *
5
6
  * @private function of `coder init` command
6
7
  */
7
- export declare function printInitializationSummary(summary: CoderInitializationSummary): void;
8
+ export declare function printInitializationSummary(summary: CoderInitializationSummary, workspace?: WorkspaceRepositoryContext): void;
@@ -0,0 +1,13 @@
1
+ /**
2
+ * Project-relative location of the offline guide, reserved from prompt discovery.
3
+ *
4
+ * @private internal constant of `coder init`
5
+ */
6
+ export declare const PROMPTS_README_FILE_PATH: string;
7
+ /**
8
+ * Maintained project-independent guide, bundled as text in the published CLI.
9
+ * Keep examples executable against the parser and command registry in the accompanying tests.
10
+ *
11
+ * @private internal template of `coder init`
12
+ */
13
+ export declare const PROMPTS_README_TEMPLATE: string;
@@ -0,0 +1,8 @@
1
+ import type { string_book } from '../../../book-2.0/agent-source/string_book';
2
+ /**
3
+ * Reads a project-owned Book before initialization, refusing unsafe edits while preserving its original bytes.
4
+ * Unknown commitments remain supported, as in the normal Book parser.
5
+ *
6
+ * @private internal utility of `coder init`
7
+ */
8
+ export declare function readCoderAgentBook(filePath: string): Promise<string_book>;
@@ -0,0 +1 @@
1
+ export {};
@@ -12,3 +12,15 @@ export declare const DEFAULT_WAIT_AFTER_ERROR_MS: number;
12
12
  * @private internal utility of `ptbk coder` wait handling
13
13
  */
14
14
  export declare function parseOptionalWaitDuration(value: string | undefined, defaultMs: number): number;
15
+ /**
16
+ * Parses an optional Commander period duration string and returns the resolved milliseconds.
17
+ *
18
+ * Returns `undefined` when the flag was not provided or was provided without a non-empty value,
19
+ * which means the command runs only once instead of repeating itself.
20
+ *
21
+ * @throws {NotAllowed} When the duration is not a positive one, because a non-positive period
22
+ * would repeat the command without ever pausing between two rounds
23
+ *
24
+ * @private internal utility of `ptbk coder` wait handling
25
+ */
26
+ export declare function parseOptionalPeriodDuration(optionName: string, value: string | undefined): number | undefined;
@@ -6,9 +6,12 @@ import type { $side_effect } from '../../utils/organization/$side_effect';
6
6
  * The coder command provides utilities for automated coding:
7
7
  * - init: Initialize coder configuration in current project
8
8
  * - add: Add one ready-to-run prompt file to the queue
9
+ * - plan: Discuss features with Developer and author reviewed PRDs
9
10
  * - generate-boilerplates: Generate prompt boilerplate files
10
11
  * - find-refactor-candidates: Find files that need refactoring
12
+ * - list: List ready prompts in priority order without running them
11
13
  * - run: Run coding prompts with AI agents
14
+ * - fix: Check and repair the project, then exit without processing the queue
12
15
  * - ping: Test one harness and model with a tiny dummy prompt
13
16
  * - verify: Verify completed prompts
14
17
  * - find-fresh-emoji-tags: Find unused emoji tags
@@ -0,0 +1,11 @@
1
+ import type { NormalizedQuestionsCliOptions } from './questionsCliOptions';
2
+ /**
3
+ * Asks the user in the terminal to confirm one optional change.
4
+ *
5
+ * Note: `$` is used to indicate that this function is not a pure function - it reads the answer from stdin.
6
+ *
7
+ * @returns `true` when the user confirms, `false` when the user declines, the terminal is not interactive
8
+ * or the questions are disabled by `--no-questions`.
9
+ * @private internal utility of `promptbookCli`
10
+ */
11
+ export declare function $askForConfirmation(question: string, { isAskingQuestionsEnabled }: NormalizedQuestionsCliOptions): Promise<boolean>;
@@ -0,0 +1,48 @@
1
+ import type { string_book } from '../../../book-2.0/agent-source/string_book';
2
+ import type { TeammateProfile } from '../../../book-2.0/agent-source/TeammateProfileResolver';
3
+ /**
4
+ * A book's source and identity, retaining its location for nested relative references.
5
+ *
6
+ * @private internal type of CLI agent resolution
7
+ */
8
+ export type LocalAgentBook = {
9
+ readonly url: string;
10
+ readonly filePath?: string;
11
+ readonly source: string_book;
12
+ readonly profile: TeammateProfile;
13
+ };
14
+ /**
15
+ * Reads repository books and indexes their first-line names for CLI reference resolution.
16
+ *
17
+ * @private internal utility of CLI agent resolution
18
+ */
19
+ export declare class LocalAgentBookCollection {
20
+ private readonly agentDirectoryPath;
21
+ private readonly currentWorkingDirectory;
22
+ private readonly isInitializationAllowed;
23
+ private readonly signal?;
24
+ private readonly booksByUrl;
25
+ private readonly booksByName;
26
+ /** Stable default ancestor selected from the initial repository scan. */
27
+ private adamAgentUrl;
28
+ /** Files initialized by this collection, for the coder's normal commit handling. */
29
+ readonly createdAgentBookPaths: string[];
30
+ /** Creates a collection rooted at the primary book's directory. */
31
+ constructor(agentDirectoryPath: string, currentWorkingDirectory: string, isInitializationAllowed?: boolean, signal?: AbortSignal | undefined);
32
+ /** Discovers nested books, including the hidden `.core` directory. */
33
+ initialize(): Promise<void>;
34
+ /** Identifies the default ancestor without creating an unused book for FROM null/void. */
35
+ getAdamAgentUrl(): string;
36
+ /** Resolves a unique first-line name, refusing ambiguous matches. */
37
+ findByName(name: string): LocalAgentBook;
38
+ /** Resolves a name, a path relative to its declaring book, or a path relative to the CLI cwd. */
39
+ resolveReference(reference: string, declaringBook: LocalAgentBook): Promise<string>;
40
+ /** Reads a local book once, canonicalizing symlinks so aliases cannot bypass cycle detection. */
41
+ readBook(filePath: string): Promise<LocalAgentBook>;
42
+ /** Loads a referenced remote book, while keeping local identifiers entirely inside the collection. */
43
+ getBook(url: string, signal?: AbortSignal | undefined): Promise<LocalAgentBook>;
44
+ /** Adds a book under its normalized first-line name and preserves the display name for TEAM. */
45
+ private registerBook;
46
+ /** Walks real directories in deterministic order without following directory symlink loops. */
47
+ private readDirectory;
48
+ }
@@ -0,0 +1,21 @@
1
+ import { Command } from 'commander';
2
+ /**
3
+ * Retired aggregate option spellings and their canonical replacements, used only for migration diagnostics.
4
+ * @private shared CLI migration definitions for Coder execution
5
+ */
6
+ export declare const LEGACY_CODER_CHECK_OPTIONS: readonly [readonly ["--test", "--check"], readonly ["--test-before", "--check-before"]];
7
+ /**
8
+ * Registers the shared project check command and rejects retired aggregate-test spellings.
9
+ * @private shared CLI registration for Coder execution
10
+ */
11
+ export declare function addCoderCheckOptions(command: Command, isCheckBeforeSupported: boolean, description?: string): void;
12
+ /**
13
+ * Builds the same actionable migration diagnostic for registered and direct-script entrypoints.
14
+ * @private shared CLI diagnostic for Coder execution
15
+ */
16
+ export declare function formatLegacyCoderCheckOptionError(legacyFlag: string, replacementFlag: string): string;
17
+ /**
18
+ * Normalizes shell command tokens without parsing a quoted command again or losing spaced argument boundaries.
19
+ * @private shared command normalization for Coder execution
20
+ */
21
+ export declare function normalizeCheckCommandOption(value: string | ReadonlyArray<string> | undefined): string | undefined;
@@ -21,7 +21,7 @@ export declare const CODER_GIT_SYNC_DESCRIPTION: string;
21
21
  * Registers the shared `--commit`, `--auto-push` and `--auto-pull` flags on a `ptbk coder` command.
22
22
  *
23
23
  * Note: Unlike `ptbk coder run`, which commits by default and opts out through `--no-commit`,
24
- * these commands never touch git unless the flags are used explicitly.
24
+ * these commands only mutate Git when the flags are used explicitly. Workspace detection always runs.
25
25
  *
26
26
  * @private internal utility of `promptbookCli`
27
27
  */
@@ -0,0 +1,8 @@
1
+ import type { AgentReferenceResolver } from '../../../book-2.0/agent-source/AgentReferenceResolver';
2
+ import type { LocalAgentBook, LocalAgentBookCollection } from './LocalAgentBookCollection';
3
+ /**
4
+ * Creates a resolver scoped to the book which declares each reference.
5
+ *
6
+ * @private internal utility of CLI agent resolution
7
+ */
8
+ export declare function createLocalAgentReferenceResolver(collection: LocalAgentBookCollection, declaringBook: LocalAgentBook): AgentReferenceResolver;
@@ -0,0 +1,12 @@
1
+ /**
2
+ * Refuses to start one `ptbk coder` command when the disk which hosts the project is nearly full.
3
+ *
4
+ * A run which starts without enough free disk space fails somewhere in the middle, after the coding agent has
5
+ * already rewritten a part of the project, so it is stopped before it writes anything at all.
6
+ *
7
+ * Note: `$` is used to indicate that this function is not a pure function - it reads the state of the filesystem
8
+ *
9
+ * @throws {LimitReachedError} when there is not enough free disk space left to start
10
+ * @private internal utility of `promptbookCli`
11
+ */
12
+ export declare function $assertSufficientFreeDiskSpace(inspectedPath: string): Promise<void>;
@@ -0,0 +1,11 @@
1
+ import type { FreeDiskSpaceStatus } from './FreeDiskSpaceStatus';
2
+ /**
3
+ * Measures the free disk space on the filesystem which hosts the given path.
4
+ *
5
+ * Note: `$` is used to indicate that this function is not a pure function - it reads the state of the filesystem
6
+ *
7
+ * @returns the measurement, or `null` when the filesystem can not be measured, for example on a platform which
8
+ * does not report filesystem statistics - a run is never stopped by a measurement which could not be taken
9
+ * @private internal utility of `promptbookCli`
10
+ */
11
+ export declare function $readFreeDiskSpaceStatus(inspectedPath: string): Promise<FreeDiskSpaceStatus | null>;
@@ -0,0 +1,33 @@
1
+ /**
2
+ * How much free disk space is left, measured against the `ptbk coder` free disk space limits.
3
+ *
4
+ * - `sufficient` - there is enough free disk space to start a run and to keep it running
5
+ * - `low` - there is not enough free disk space to start a new run
6
+ * - `critical` - there is not enough free disk space to keep a started run going
7
+ *
8
+ * @private internal utility of `promptbookCli`
9
+ */
10
+ export type FreeDiskSpaceLevel = 'sufficient' | 'low' | 'critical';
11
+ /**
12
+ * One measurement of the free disk space on the filesystem which hosts the inspected path.
13
+ *
14
+ * @private internal utility of `promptbookCli`
15
+ */
16
+ export type FreeDiskSpaceStatus = {
17
+ /**
18
+ * Path whose filesystem was measured.
19
+ */
20
+ readonly inspectedPath: string;
21
+ /**
22
+ * Bytes which are still available to the current user on that filesystem.
23
+ */
24
+ readonly availableBytes: number;
25
+ /**
26
+ * Total size of that filesystem in bytes.
27
+ */
28
+ readonly totalBytes: number;
29
+ /**
30
+ * Severity of the measured free disk space.
31
+ */
32
+ readonly level: FreeDiskSpaceLevel;
33
+ };
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Writes one byte count as a compact human-readable amount of disk space, for example `812 MB` or `1.5 GB`.
3
+ *
4
+ * @private internal utility of `promptbookCli`
5
+ */
6
+ export declare function formatFreeDiskSpaceBytes(bytes: number): string;
@@ -0,0 +1,10 @@
1
+ import type { FreeDiskSpaceStatus } from './FreeDiskSpaceStatus';
2
+ /**
3
+ * Writes the shared warning which explains one low free disk space measurement and how to get out of it.
4
+ *
5
+ * The very same wording is used by the check which refuses to start a run and by the check which pauses
6
+ * a run that ran out of disk space while it was working.
7
+ *
8
+ * @private internal utility of `promptbookCli`
9
+ */
10
+ export declare function formatLowFreeDiskSpaceWarning(freeDiskSpaceStatus: FreeDiskSpaceStatus): string;
@@ -0,0 +1,28 @@
1
+ /**
2
+ * Free disk space below which `ptbk coder` refuses to start a new run.
3
+ *
4
+ * A coding round writes prompt and log artifacts, lets the harness rewrite the project, may install npm packages,
5
+ * may create a git worktree for `--isolate` and usually runs a build, so a run started with less than this
6
+ * would very likely die somewhere in the middle with a filesystem error.
7
+ *
8
+ * @private internal utility of `promptbookCli`
9
+ */
10
+ export declare const LOW_FREE_DISK_SPACE_BYTES: number;
11
+ /**
12
+ * Free disk space below which a started `ptbk coder` run stops at its next checkpoint and waits until space is freed.
13
+ *
14
+ * This limit is lower than `LOW_FREE_DISK_SPACE_BYTES`, because interrupting a run which is already in progress
15
+ * is more expensive than not starting one at all.
16
+ *
17
+ * @private internal utility of `promptbookCli`
18
+ */
19
+ export declare const CRITICALLY_LOW_FREE_DISK_SPACE_BYTES: number;
20
+ /**
21
+ * How long one free disk space measurement is reused before the filesystem is measured again during a run.
22
+ *
23
+ * Pause checkpoints are passed very often - for example on every tick of a timed wait - so without this
24
+ * interval the filesystem would be measured many times per second.
25
+ *
26
+ * @private internal utility of `promptbookCli`
27
+ */
28
+ export declare const FREE_DISK_SPACE_RECHECK_INTERVAL_MS: number;
@@ -0,0 +1,7 @@
1
+ import type { FreeDiskSpaceLevel } from './FreeDiskSpaceStatus';
2
+ /**
3
+ * Classifies one measured amount of free disk space against the `ptbk coder` free disk space limits.
4
+ *
5
+ * @private internal utility of `promptbookCli`
6
+ */
7
+ export declare function resolveFreeDiskSpaceLevel(availableBytes: number): FreeDiskSpaceLevel;
@@ -0,0 +1,12 @@
1
+ /**
2
+ * Adam's location relative to a directory of local agents.
3
+ *
4
+ * @private internal constant of CLI agent initialization
5
+ */
6
+ export declare const ADAM_AGENT_BOOK_RELATIVE_PATH = ".core/adam.book";
7
+ /**
8
+ * Creates the same Adam book used by the Agent Server without overwriting a project-owned book.
9
+ *
10
+ * @private internal utility of CLI agent initialization
11
+ */
12
+ export declare function ensureAdamAgentBook(agentDirectoryPath: string): Promise<'created' | 'unchanged'>;
@@ -0,0 +1,7 @@
1
+ import type { ProjectInitializationStatus } from './projectInitialization';
2
+ /**
3
+ * Creates one project text file with default content, preserving any existing file.
4
+ *
5
+ * @private internal utility of Promptbook CLI project initialization
6
+ */
7
+ export declare function ensureProjectTextFile(projectPath: string, relativeFilePath: string, fileContent: string): Promise<ProjectInitializationStatus>;