@promptbook/types 0.114.0-4 → 0.114.0-41
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.
- package/README.md +9 -9
- package/esm/src/_packages/components.index.d.ts +4 -0
- package/esm/src/_packages/types.index.d.ts +4 -0
- package/esm/src/avatars/renderAvatarVisualTerminalText.d.ts +80 -0
- package/esm/src/avatars/types/AvatarVisualDefinition.d.ts +54 -0
- package/esm/src/book-2.0/agent-source/AgentReferenceResolutionIssue.d.ts +45 -0
- package/esm/src/book-2.0/agent-source/AgentSourceParseResult.d.ts +5 -0
- package/esm/src/book-2.0/agent-source/ParsedUnknownCommitment.d.ts +26 -0
- package/esm/src/book-2.0/agent-source/deduplicateSystemMessage.d.ts +14 -0
- package/esm/src/book-2.0/agent-source/explicitFromCommitment.d.ts +62 -0
- package/esm/src/book-2.0/agent-source/extractAgentReferenceTokens.d.ts +32 -0
- package/esm/src/book-2.0/agent-source/getBookCommitmentLineType.d.ts +19 -0
- package/esm/src/book-2.0/agent-source/parseAgentSourceWithCommitments.unknown.test.d.ts +1 -0
- package/esm/src/book-2.0/agent-source/resolveInheritedAgentSource.d.ts +73 -0
- package/esm/src/book-2.0/book-language-documentation/getSafeCodeBlock.d.ts +1 -1
- package/esm/src/book-3.0/AgentMessageRunReport.d.ts +46 -0
- package/esm/src/book-3.0/AgentPlannedMessagesSidecar.d.ts +127 -0
- package/esm/src/book-3.0/AgentPlannedMessagesSidecar.test.d.ts +1 -0
- package/esm/src/book-3.0/AgentTeamConversationWorkspace.d.ts +85 -0
- package/esm/src/book-3.0/cliAgentEnv.d.ts +3 -3
- package/esm/src/book-3.0/createAgentMessageSidecarBaseName.d.ts +13 -0
- package/esm/src/book-3.0/describeAgentPlannedMessageSchedule.d.ts +31 -0
- package/esm/src/book-components/BookEditor/createDeprecatedCommitmentDiagnostics.browser.d.ts +1 -9
- package/esm/src/book-components/BookEditor/createDuplicateFromCommitmentDiagnostics.d.ts +28 -0
- package/esm/src/book-components/BookEditor/createDuplicateFromCommitmentDiagnostics.test.d.ts +1 -0
- package/esm/src/book-components/BookEditor/createUnknownCommitmentDiagnostics.d.ts +28 -0
- package/esm/src/book-components/BookEditor/createUnknownCommitmentDiagnostics.test.d.ts +1 -0
- package/esm/src/book-components/Chat/Chat/ChatProps.d.ts +3 -2
- package/esm/src/book-components/Chat/Chat/renderAgentProjectDiff.d.ts +13 -0
- package/esm/src/book-components/Chat/Chat/renderAgentProjectToolCallDetails.d.ts +16 -0
- package/esm/src/book-components/Chat/MockedChat/MockedChat.test.d.ts +2 -0
- package/esm/src/book-components/Chat/utils/agentProjectToolCall.d.ts +85 -0
- package/esm/src/book-components/Chat/utils/agentProjectToolCall.test.d.ts +1 -0
- package/esm/src/book-components/Chat/utils/externalSourceToolCall.d.ts +38 -0
- package/esm/src/book-components/Chat/utils/renderMarkdown.d.ts +68 -3
- package/esm/src/book-components/Chat/utils/timeoutToolCallPresentation.d.ts +30 -0
- package/esm/src/cli/$initializePromptbookCliProgram.d.ts +8 -0
- package/esm/src/cli/cli-commands/coder/$ensureCoderHarnessGitignoreRules.d.ts +10 -0
- package/esm/src/cli/cli-commands/coder/$ensureCoderHarnessGitignoreRules.test.d.ts +1 -0
- package/esm/src/cli/cli-commands/coder/GitChangesMode.d.ts +28 -0
- package/esm/src/cli/cli-commands/coder/agentCliOptions.d.ts +21 -0
- package/esm/src/cli/cli-commands/coder/boilerplateCount.d.ts +1 -1
- package/esm/src/cli/cli-commands/coder/boilerplateTemplates.d.ts +8 -21
- package/esm/src/cli/cli-commands/coder/coderReferencedArtifacts.d.ts +33 -0
- package/esm/src/cli/cli-commands/coder/ensureCoderGitignoreFile.d.ts +14 -1
- package/esm/src/cli/cli-commands/coder/ensureCoderPackageJsonFile.d.ts +4 -2
- package/esm/src/cli/cli-commands/coder/ensureCoderVscodeSettingsFile.d.ts +2 -0
- package/esm/src/cli/cli-commands/coder/ensureDirectory.d.ts +6 -0
- package/esm/src/cli/cli-commands/coder/generate-boilerplates.d.ts +1 -1
- package/esm/src/cli/cli-commands/coder/getDefaultCoderPackageJsonScripts.d.ts +6 -0
- package/esm/src/cli/cli-commands/coder/init.test.d.ts +1 -0
- package/esm/src/cli/cli-commands/coder/initializeCoderProjectConfiguration.d.ts +8 -5
- package/esm/src/cli/cli-commands/coder/list.d.ts +10 -0
- package/esm/src/cli/cli-commands/coder/list.test.d.ts +1 -0
- package/esm/src/cli/cli-commands/coder/mergeStringRecordJsonFile.d.ts +19 -1
- package/esm/src/cli/cli-commands/coder/printCoderRunFailure.d.ts +6 -0
- package/esm/src/cli/cli-commands/coder/server.test.d.ts +1 -0
- package/esm/src/cli/cli-commands/coder/verify.d.ts +1 -1
- package/esm/src/cli/cli-commands/coder/waitOptions.d.ts +12 -0
- package/esm/src/cli/cli-commands/coder.d.ts +1 -0
- package/esm/src/cli/cli-commands/common/$askForConfirmation.d.ts +11 -0
- package/esm/src/cli/cli-commands/common/$askForConfirmation.test.d.ts +1 -0
- package/esm/src/cli/cli-commands/common/LocalAgentBookCollection.d.ts +46 -0
- package/esm/src/cli/cli-commands/common/createLocalAgentReferenceResolver.d.ts +8 -0
- package/esm/src/cli/cli-commands/common/disk-space/$assertSufficientFreeDiskSpace.d.ts +12 -0
- package/esm/src/cli/cli-commands/common/disk-space/$assertSufficientFreeDiskSpace.test.d.ts +1 -0
- package/esm/src/cli/cli-commands/common/disk-space/$readFreeDiskSpaceStatus.d.ts +11 -0
- package/esm/src/cli/cli-commands/common/disk-space/$readFreeDiskSpaceStatus.test.d.ts +1 -0
- package/esm/src/cli/cli-commands/common/disk-space/FreeDiskSpaceStatus.d.ts +33 -0
- package/esm/src/cli/cli-commands/common/disk-space/formatFreeDiskSpaceBytes.d.ts +6 -0
- package/esm/src/cli/cli-commands/common/disk-space/formatFreeDiskSpaceBytes.test.d.ts +1 -0
- package/esm/src/cli/cli-commands/common/disk-space/formatLowFreeDiskSpaceWarning.d.ts +10 -0
- package/esm/src/cli/cli-commands/common/disk-space/freeDiskSpaceConstants.d.ts +28 -0
- package/esm/src/cli/cli-commands/common/disk-space/resolveFreeDiskSpaceLevel.d.ts +7 -0
- package/esm/src/cli/cli-commands/common/disk-space/resolveFreeDiskSpaceLevel.test.d.ts +1 -0
- package/esm/src/cli/cli-commands/common/ensureAdamAgentBook.d.ts +12 -0
- package/esm/src/cli/cli-commands/common/harness/$applyHarnessInstallationStatus.d.ts +3 -2
- package/esm/src/cli/cli-commands/common/harness/$checkHarnessInstallation.d.ts +3 -3
- package/esm/src/cli/cli-commands/common/harness/$checkHarnessInstallation.test.d.ts +1 -0
- package/esm/src/cli/cli-commands/common/harness/$ensureHarnessInstallations.d.ts +4 -3
- package/esm/src/cli/cli-commands/common/harness/$resolveHarnessCommandPath.d.ts +14 -0
- package/esm/src/cli/cli-commands/common/harness/$resolveHarnessInstallationOrigin.d.ts +10 -0
- package/esm/src/cli/cli-commands/common/harness/$runHarnessInstallationCommand.d.ts +43 -0
- package/esm/src/cli/cli-commands/common/harness/HARNESS_DEFAULT_MODELS.d.ts +25 -0
- package/esm/src/cli/cli-commands/common/harness/HarnessDefinition.d.ts +62 -0
- package/esm/src/cli/cli-commands/common/harness/HarnessInstallationOrigin.d.ts +36 -0
- package/esm/src/cli/cli-commands/common/harness/HarnessInstallationStatus.d.ts +8 -2
- package/esm/src/cli/cli-commands/common/harness/HarnessUpdatePlan.d.ts +23 -0
- package/esm/src/cli/cli-commands/common/harness/buildHarnessInstallCommand.d.ts +4 -1
- package/esm/src/cli/cli-commands/common/harness/formatHarnessManualUpdateInstruction.d.ts +8 -0
- package/esm/src/cli/cli-commands/common/harness/formatHarnessManualUpdateInstruction.test.d.ts +1 -0
- package/esm/src/cli/cli-commands/common/harness/resolveHarnessInstallationMethodFromPaths.d.ts +31 -0
- package/esm/src/cli/cli-commands/common/harness/resolveHarnessInstallationMethodFromPaths.test.d.ts +1 -0
- package/esm/src/cli/cli-commands/common/harness/resolveHarnessUpdatePlan.d.ts +12 -0
- package/esm/src/cli/cli-commands/common/harness/resolveHarnessUpdatePlan.test.d.ts +1 -0
- package/esm/src/cli/cli-commands/common/npm/$askForNpmPackageInstallationApproval.d.ts +11 -0
- package/{umd/src/cli/cli-commands/common/harness/$resolveLatestHarnessVersion.d.ts → esm/src/cli/cli-commands/common/npm/$resolveLatestNpmPackageVersion.d.ts} +2 -3
- package/esm/src/cli/cli-commands/common/npm/$resolveLatestNpmPackageVersion.test.d.ts +1 -0
- package/esm/src/cli/cli-commands/common/npm/$resolveNpmGlobalPrefixPath.d.ts +9 -0
- package/esm/src/cli/cli-commands/common/npm/buildNpmPackageInstallCommand.d.ts +12 -0
- package/esm/src/cli/cli-commands/common/npm/buildNpmPackageInstallCommand.test.d.ts +1 -0
- package/esm/src/cli/cli-commands/common/npm/extractNpmPackageVersionFromOutput.d.ts +12 -0
- package/esm/src/cli/cli-commands/common/npm/extractNpmPackageVersionFromOutput.test.d.ts +1 -0
- package/esm/src/cli/cli-commands/common/npm/isNpmPackageVersionOutdated.d.ts +12 -0
- package/esm/src/cli/cli-commands/common/npm/isNpmPackageVersionOutdated.test.d.ts +1 -0
- package/esm/src/cli/cli-commands/common/projectInitialization.d.ts +6 -0
- package/esm/src/cli/cli-commands/common/promptPriorityCliOptions.d.ts +7 -0
- package/esm/src/cli/cli-commands/common/promptRunnerCliOptions.d.ts +17 -4
- package/esm/src/cli/cli-commands/common/promptbook-cli/$checkPromptbookCliInstallations.d.ts +9 -0
- package/esm/src/cli/cli-commands/common/promptbook-cli/$checkPromptbookCliInstallations.test.d.ts +1 -0
- package/esm/src/cli/cli-commands/common/promptbook-cli/$ensurePromptbookCliInstallations.d.ts +15 -0
- package/esm/src/cli/cli-commands/common/promptbook-cli/$ensurePromptbookCliInstallations.test.d.ts +1 -0
- package/esm/src/cli/cli-commands/common/promptbook-cli/$resolvePromptbookCliInstallations.d.ts +12 -0
- package/esm/src/cli/cli-commands/common/promptbook-cli/$resolvePromptbookCliInstallations.test.d.ts +1 -0
- package/esm/src/cli/cli-commands/common/promptbook-cli/$updatePromptbookCliInstallation.d.ts +10 -0
- package/esm/src/cli/cli-commands/common/promptbook-cli/$updatePromptbookCliInstallation.test.d.ts +1 -0
- package/esm/src/cli/cli-commands/common/promptbook-cli/PromptbookCliInstallation.d.ts +66 -0
- package/esm/src/cli/cli-commands/common/promptbook-cli/PromptbookCliInstallationStatus.d.ts +26 -0
- package/esm/src/cli/cli-commands/common/promptbook-cli/buildPromptbookCliInstallCommand.d.ts +7 -0
- package/esm/src/cli/cli-commands/common/promptbook-cli/formatPromptbookCliInstallationWarning.d.ts +7 -0
- package/esm/src/cli/cli-commands/common/questionsCliOptions.d.ts +45 -0
- package/esm/src/cli/cli-commands/common/questionsCliOptions.test.d.ts +1 -0
- package/esm/src/cli/cli-commands/common/resolveBundledAgentBookPath.d.ts +6 -0
- package/esm/src/cli/cli-commands/common/resolveLocalAgentSource.d.ts +19 -0
- package/esm/src/cli/common/$deprecateCliCommand.d.ts +3 -0
- package/esm/src/cli/common/$hideCliCommandFromHelp.d.ts +11 -0
- package/esm/src/cli/common/$hideCliCommandFromHelp.test.d.ts +1 -0
- package/esm/src/cli/common/$requireCliSubcommand.d.ts +18 -0
- package/esm/src/cli/common/$requireCliSubcommand.test.d.ts +1 -0
- package/esm/src/collection/agent-collection/constructors/agent-collection-in-supabase/AgentCollectionInSupabase.d.ts +15 -0
- package/esm/src/commitments/WRITING_RULES/WRITING_RULES.d.ts +14 -7
- package/esm/src/commitments/index.d.ts +1 -1
- package/esm/src/executables/platforms/locateAppOnWindows.d.ts +1 -1
- package/esm/src/executables/platforms/locateAppOnWindows.test.d.ts +1 -0
- package/esm/src/llm-providers/vercel/VercelExecutionToolsOptions.d.ts +5 -2
- package/esm/src/utils/agent-message-runtime/AgentMessageProjectChange.d.ts +76 -0
- package/esm/src/utils/agent-message-runtime/AgentMessageTouchedExternalSource.d.ts +45 -0
- package/esm/src/utils/agent-message-runtime/parseAgentMessageRuntimeLogEvents.d.ts +62 -0
- package/esm/src/utils/agent-message-runtime/resolveAgentMessageRuntimeActivity.d.ts +3 -3
- package/esm/src/utils/agent-message-runtime/resolveAgentMessageTouchedExternalSources.d.ts +18 -0
- package/esm/src/utils/agent-message-runtime/resolveAgentMessageTouchedExternalSources.test.d.ts +1 -0
- package/esm/src/utils/agent-message-runtime/resolveAgentMessageTouchedProjectNames.d.ts +19 -0
- package/esm/src/utils/agent-message-runtime/resolveAgentMessageTouchedProjectNames.test.d.ts +1 -0
- package/esm/src/utils/agents/terminalAgentAvatarVisual.d.ts +5 -2
- package/esm/src/utils/ascii-art/convertImageDataToAsciiArt.d.ts +6 -0
- package/esm/src/utils/ascii-art/createAnsiColorCode.d.ts +46 -0
- package/esm/src/utils/files/findFilesByGlob.d.ts +28 -0
- package/esm/src/utils/misc/debounce.d.ts +4 -2
- package/esm/src/utils/misc/debounce.test.d.ts +1 -0
- package/esm/src/utils/misc/emojis.d.ts +3 -2
- package/esm/src/utils/random/$generateBookBoilerplate.test.d.ts +1 -0
- package/esm/src/version.d.ts +1 -1
- package/package.json +2 -5
- package/umd/src/_packages/components.index.d.ts +4 -0
- package/umd/src/_packages/types.index.d.ts +4 -0
- package/umd/src/avatars/renderAvatarVisualTerminalText.d.ts +80 -0
- package/umd/src/avatars/renderAvatarVisualTerminalText.test.d.ts +1 -0
- package/umd/src/avatars/types/AvatarVisualDefinition.d.ts +54 -0
- package/umd/src/book-2.0/agent-source/AgentReferenceResolutionIssue.d.ts +45 -0
- package/umd/src/book-2.0/agent-source/AgentSourceParseResult.d.ts +5 -0
- package/umd/src/book-2.0/agent-source/ParsedUnknownCommitment.d.ts +26 -0
- package/umd/src/book-2.0/agent-source/createAgentModelRequirements.deduplication.test.d.ts +1 -0
- package/umd/src/book-2.0/agent-source/createAgentModelRequirementsWithCommitments.unknown.test.d.ts +1 -0
- package/umd/src/book-2.0/agent-source/deduplicateSystemMessage.d.ts +14 -0
- package/umd/src/book-2.0/agent-source/deduplicateSystemMessage.test.d.ts +1 -0
- package/umd/src/book-2.0/agent-source/explicitFromCommitment.d.ts +62 -0
- package/umd/src/book-2.0/agent-source/extractAgentReferenceTokens.d.ts +32 -0
- package/umd/src/book-2.0/agent-source/getBookCommitmentLineType.d.ts +19 -0
- package/umd/src/book-2.0/agent-source/parseAgentSourceWithCommitments.unknown.test.d.ts +1 -0
- package/umd/src/book-2.0/agent-source/resolveInheritedAgentSource.d.ts +73 -0
- package/umd/src/book-2.0/book-language-documentation/getSafeCodeBlock.d.ts +1 -1
- package/umd/src/book-3.0/AgentMessageRunReport.d.ts +46 -0
- package/umd/src/book-3.0/AgentPlannedMessagesSidecar.d.ts +127 -0
- package/umd/src/book-3.0/AgentPlannedMessagesSidecar.test.d.ts +1 -0
- package/umd/src/book-3.0/AgentTeamConversationWorkspace.d.ts +85 -0
- package/umd/src/book-3.0/cliAgentEnv.d.ts +3 -3
- package/umd/src/book-3.0/createAgentMessageSidecarBaseName.d.ts +13 -0
- package/umd/src/book-3.0/describeAgentPlannedMessageSchedule.d.ts +31 -0
- package/umd/src/book-components/BookEditor/createDeprecatedCommitmentDiagnostics.browser.d.ts +1 -9
- package/umd/src/book-components/BookEditor/createDuplicateFromCommitmentDiagnostics.d.ts +28 -0
- package/umd/src/book-components/BookEditor/createDuplicateFromCommitmentDiagnostics.test.d.ts +1 -0
- package/umd/src/book-components/BookEditor/createUnknownCommitmentDiagnostics.d.ts +28 -0
- package/umd/src/book-components/BookEditor/createUnknownCommitmentDiagnostics.test.d.ts +1 -0
- package/umd/src/book-components/Chat/Chat/ChatProps.d.ts +3 -2
- package/umd/src/book-components/Chat/Chat/renderAgentProjectDiff.d.ts +13 -0
- package/umd/src/book-components/Chat/Chat/renderAgentProjectToolCallDetails.d.ts +16 -0
- package/umd/src/book-components/Chat/MockedChat/MockedChat.test.d.ts +2 -0
- package/umd/src/book-components/Chat/utils/agentProjectToolCall.d.ts +85 -0
- package/umd/src/book-components/Chat/utils/agentProjectToolCall.test.d.ts +1 -0
- package/umd/src/book-components/Chat/utils/externalSourceToolCall.d.ts +38 -0
- package/umd/src/book-components/Chat/utils/renderMarkdown.d.ts +68 -3
- package/umd/src/book-components/Chat/utils/timeoutToolCallPresentation.d.ts +30 -0
- package/umd/src/cli/$initializePromptbookCliProgram.d.ts +8 -0
- package/umd/src/cli/cli-commands/coder/$ensureCoderHarnessGitignoreRules.d.ts +10 -0
- package/umd/src/cli/cli-commands/coder/$ensureCoderHarnessGitignoreRules.test.d.ts +1 -0
- package/umd/src/cli/cli-commands/coder/GitChangesMode.d.ts +28 -0
- package/umd/src/cli/cli-commands/coder/agentCliOptions.d.ts +21 -0
- package/umd/src/cli/cli-commands/coder/boilerplateCount.d.ts +1 -1
- package/umd/src/cli/cli-commands/coder/boilerplateTemplates.d.ts +8 -21
- package/umd/src/cli/cli-commands/coder/coderReferencedArtifacts.d.ts +33 -0
- package/umd/src/cli/cli-commands/coder/ensureCoderGitignoreFile.d.ts +14 -1
- package/umd/src/cli/cli-commands/coder/ensureCoderPackageJsonFile.d.ts +4 -2
- package/umd/src/cli/cli-commands/coder/ensureCoderVscodeSettingsFile.d.ts +2 -0
- package/umd/src/cli/cli-commands/coder/ensureDirectory.d.ts +6 -0
- package/umd/src/cli/cli-commands/coder/generate-boilerplates.d.ts +1 -1
- package/umd/src/cli/cli-commands/coder/getDefaultCoderPackageJsonScripts.d.ts +6 -0
- package/umd/src/cli/cli-commands/coder/init.test.d.ts +1 -0
- package/umd/src/cli/cli-commands/coder/initializeCoderProjectConfiguration.d.ts +8 -5
- package/umd/src/cli/cli-commands/coder/list.d.ts +10 -0
- package/umd/src/cli/cli-commands/coder/list.test.d.ts +1 -0
- package/umd/src/cli/cli-commands/coder/mergeStringRecordJsonFile.d.ts +19 -1
- package/umd/src/cli/cli-commands/coder/printCoderRunFailure.d.ts +6 -0
- package/umd/src/cli/cli-commands/coder/server.test.d.ts +1 -0
- package/umd/src/cli/cli-commands/coder/verify.d.ts +1 -1
- package/umd/src/cli/cli-commands/coder/waitOptions.d.ts +12 -0
- package/umd/src/cli/cli-commands/coder.d.ts +1 -0
- package/umd/src/cli/cli-commands/common/$askForConfirmation.d.ts +11 -0
- package/umd/src/cli/cli-commands/common/$askForConfirmation.test.d.ts +1 -0
- package/umd/src/cli/cli-commands/common/LocalAgentBookCollection.d.ts +46 -0
- package/umd/src/cli/cli-commands/common/createLocalAgentReferenceResolver.d.ts +8 -0
- package/umd/src/cli/cli-commands/common/disk-space/$assertSufficientFreeDiskSpace.d.ts +12 -0
- package/umd/src/cli/cli-commands/common/disk-space/$assertSufficientFreeDiskSpace.test.d.ts +1 -0
- package/umd/src/cli/cli-commands/common/disk-space/$readFreeDiskSpaceStatus.d.ts +11 -0
- package/umd/src/cli/cli-commands/common/disk-space/$readFreeDiskSpaceStatus.test.d.ts +1 -0
- package/umd/src/cli/cli-commands/common/disk-space/FreeDiskSpaceStatus.d.ts +33 -0
- package/umd/src/cli/cli-commands/common/disk-space/formatFreeDiskSpaceBytes.d.ts +6 -0
- package/umd/src/cli/cli-commands/common/disk-space/formatFreeDiskSpaceBytes.test.d.ts +1 -0
- package/umd/src/cli/cli-commands/common/disk-space/formatLowFreeDiskSpaceWarning.d.ts +10 -0
- package/umd/src/cli/cli-commands/common/disk-space/freeDiskSpaceConstants.d.ts +28 -0
- package/umd/src/cli/cli-commands/common/disk-space/resolveFreeDiskSpaceLevel.d.ts +7 -0
- package/umd/src/cli/cli-commands/common/disk-space/resolveFreeDiskSpaceLevel.test.d.ts +1 -0
- package/umd/src/cli/cli-commands/common/ensureAdamAgentBook.d.ts +12 -0
- package/umd/src/cli/cli-commands/common/harness/$applyHarnessInstallationStatus.d.ts +3 -2
- package/umd/src/cli/cli-commands/common/harness/$checkHarnessInstallation.d.ts +3 -3
- package/umd/src/cli/cli-commands/common/harness/$checkHarnessInstallation.test.d.ts +1 -0
- package/umd/src/cli/cli-commands/common/harness/$ensureHarnessInstallations.d.ts +4 -3
- package/umd/src/cli/cli-commands/common/harness/$resolveHarnessCommandPath.d.ts +14 -0
- package/umd/src/cli/cli-commands/common/harness/$resolveHarnessInstallationOrigin.d.ts +10 -0
- package/umd/src/cli/cli-commands/common/harness/$runHarnessInstallationCommand.d.ts +43 -0
- package/umd/src/cli/cli-commands/common/harness/HARNESS_DEFAULT_MODELS.d.ts +25 -0
- package/umd/src/cli/cli-commands/common/harness/HarnessDefinition.d.ts +62 -0
- package/umd/src/cli/cli-commands/common/harness/HarnessInstallationOrigin.d.ts +36 -0
- package/umd/src/cli/cli-commands/common/harness/HarnessInstallationStatus.d.ts +8 -2
- package/umd/src/cli/cli-commands/common/harness/HarnessUpdatePlan.d.ts +23 -0
- package/umd/src/cli/cli-commands/common/harness/buildHarnessInstallCommand.d.ts +4 -1
- package/umd/src/cli/cli-commands/common/harness/formatHarnessManualUpdateInstruction.d.ts +8 -0
- package/umd/src/cli/cli-commands/common/harness/formatHarnessManualUpdateInstruction.test.d.ts +1 -0
- package/umd/src/cli/cli-commands/common/harness/resolveHarnessInstallationMethodFromPaths.d.ts +31 -0
- package/umd/src/cli/cli-commands/common/harness/resolveHarnessInstallationMethodFromPaths.test.d.ts +1 -0
- package/umd/src/cli/cli-commands/common/harness/resolveHarnessUpdatePlan.d.ts +12 -0
- package/umd/src/cli/cli-commands/common/harness/resolveHarnessUpdatePlan.test.d.ts +1 -0
- package/umd/src/cli/cli-commands/common/npm/$askForNpmPackageInstallationApproval.d.ts +11 -0
- package/{esm/src/cli/cli-commands/common/harness/$resolveLatestHarnessVersion.d.ts → umd/src/cli/cli-commands/common/npm/$resolveLatestNpmPackageVersion.d.ts} +2 -3
- package/umd/src/cli/cli-commands/common/npm/$resolveLatestNpmPackageVersion.test.d.ts +1 -0
- package/umd/src/cli/cli-commands/common/npm/$resolveNpmGlobalPrefixPath.d.ts +9 -0
- package/umd/src/cli/cli-commands/common/npm/buildNpmPackageInstallCommand.d.ts +12 -0
- package/umd/src/cli/cli-commands/common/npm/buildNpmPackageInstallCommand.test.d.ts +1 -0
- package/umd/src/cli/cli-commands/common/npm/extractNpmPackageVersionFromOutput.d.ts +12 -0
- package/umd/src/cli/cli-commands/common/npm/extractNpmPackageVersionFromOutput.test.d.ts +1 -0
- package/umd/src/cli/cli-commands/common/npm/isNpmPackageVersionOutdated.d.ts +12 -0
- package/umd/src/cli/cli-commands/common/npm/isNpmPackageVersionOutdated.test.d.ts +1 -0
- package/umd/src/cli/cli-commands/common/projectInitialization.d.ts +6 -0
- package/umd/src/cli/cli-commands/common/promptPriorityCliOptions.d.ts +7 -0
- package/umd/src/cli/cli-commands/common/promptRunnerCliOptions.d.ts +17 -4
- package/umd/src/cli/cli-commands/common/promptbook-cli/$checkPromptbookCliInstallations.d.ts +9 -0
- package/umd/src/cli/cli-commands/common/promptbook-cli/$checkPromptbookCliInstallations.test.d.ts +1 -0
- package/umd/src/cli/cli-commands/common/promptbook-cli/$ensurePromptbookCliInstallations.d.ts +15 -0
- package/umd/src/cli/cli-commands/common/promptbook-cli/$ensurePromptbookCliInstallations.test.d.ts +1 -0
- package/umd/src/cli/cli-commands/common/promptbook-cli/$resolvePromptbookCliInstallations.d.ts +12 -0
- package/umd/src/cli/cli-commands/common/promptbook-cli/$resolvePromptbookCliInstallations.test.d.ts +1 -0
- package/umd/src/cli/cli-commands/common/promptbook-cli/$updatePromptbookCliInstallation.d.ts +10 -0
- package/umd/src/cli/cli-commands/common/promptbook-cli/$updatePromptbookCliInstallation.test.d.ts +1 -0
- package/umd/src/cli/cli-commands/common/promptbook-cli/PromptbookCliInstallation.d.ts +66 -0
- package/umd/src/cli/cli-commands/common/promptbook-cli/PromptbookCliInstallationStatus.d.ts +26 -0
- package/umd/src/cli/cli-commands/common/promptbook-cli/buildPromptbookCliInstallCommand.d.ts +7 -0
- package/umd/src/cli/cli-commands/common/promptbook-cli/formatPromptbookCliInstallationWarning.d.ts +7 -0
- package/umd/src/cli/cli-commands/common/questionsCliOptions.d.ts +45 -0
- package/umd/src/cli/cli-commands/common/questionsCliOptions.test.d.ts +1 -0
- package/umd/src/cli/cli-commands/common/resolveBundledAgentBookPath.d.ts +6 -0
- package/umd/src/cli/cli-commands/common/resolveLocalAgentSource.d.ts +19 -0
- package/umd/src/cli/common/$deprecateCliCommand.d.ts +3 -0
- package/umd/src/cli/common/$hideCliCommandFromHelp.d.ts +11 -0
- package/umd/src/cli/common/$hideCliCommandFromHelp.test.d.ts +1 -0
- package/umd/src/cli/common/$requireCliSubcommand.d.ts +18 -0
- package/umd/src/cli/common/$requireCliSubcommand.test.d.ts +1 -0
- package/umd/src/collection/agent-collection/constructors/agent-collection-in-supabase/AgentCollectionInSupabase.d.ts +15 -0
- package/umd/src/commitments/WRITING_RULES/WRITING_RULES.d.ts +14 -7
- package/umd/src/commitments/index.d.ts +1 -1
- package/umd/src/executables/platforms/locateAppOnWindows.d.ts +1 -1
- package/umd/src/executables/platforms/locateAppOnWindows.test.d.ts +1 -0
- package/umd/src/llm-providers/vercel/VercelExecutionToolsOptions.d.ts +5 -2
- package/umd/src/utils/agent-message-runtime/AgentMessageProjectChange.d.ts +76 -0
- package/umd/src/utils/agent-message-runtime/AgentMessageTouchedExternalSource.d.ts +45 -0
- package/umd/src/utils/agent-message-runtime/parseAgentMessageRuntimeLogEvents.d.ts +62 -0
- package/umd/src/utils/agent-message-runtime/resolveAgentMessageRuntimeActivity.d.ts +3 -3
- package/umd/src/utils/agent-message-runtime/resolveAgentMessageTouchedExternalSources.d.ts +18 -0
- package/umd/src/utils/agent-message-runtime/resolveAgentMessageTouchedExternalSources.test.d.ts +1 -0
- package/umd/src/utils/agent-message-runtime/resolveAgentMessageTouchedProjectNames.d.ts +19 -0
- package/umd/src/utils/agent-message-runtime/resolveAgentMessageTouchedProjectNames.test.d.ts +1 -0
- package/umd/src/utils/agents/terminalAgentAvatarVisual.d.ts +5 -2
- package/umd/src/utils/ascii-art/convertImageDataToAsciiArt.d.ts +6 -0
- package/umd/src/utils/ascii-art/createAnsiColorCode.d.ts +46 -0
- package/umd/src/utils/files/findFilesByGlob.d.ts +28 -0
- package/umd/src/utils/misc/debounce.d.ts +4 -2
- package/umd/src/utils/misc/debounce.test.d.ts +1 -0
- package/umd/src/utils/misc/emojis.d.ts +3 -2
- package/umd/src/utils/random/$generateBookBoilerplate.test.d.ts +1 -0
- package/umd/src/version.d.ts +1 -1
- package/esm/src/cli/cli-commands/coder/agentCodingFile.d.ts +0 -13
- package/esm/src/cli/cli-commands/common/harness/$askForHarnessInstallationApproval.d.ts +0 -9
- package/esm/src/cli/cli-commands/common/harness/$installHarness.d.ts +0 -13
- package/esm/src/cli/cli-commands/common/harness/extractHarnessVersionFromOutput.d.ts +0 -11
- package/esm/src/cli/cli-commands/common/harness/isHarnessVersionOutdated.d.ts +0 -9
- package/umd/src/cli/cli-commands/coder/agentCodingFile.d.ts +0 -13
- package/umd/src/cli/cli-commands/common/harness/$askForHarnessInstallationApproval.d.ts +0 -9
- package/umd/src/cli/cli-commands/common/harness/$installHarness.d.ts +0 -13
- package/umd/src/cli/cli-commands/common/harness/extractHarnessVersionFromOutput.d.ts +0 -11
- package/umd/src/cli/cli-commands/common/harness/isHarnessVersionOutdated.d.ts +0 -9
- /package/esm/src/{cli/cli-commands/common/harness/extractHarnessVersionFromOutput.test.d.ts → avatars/renderAvatarVisualTerminalText.test.d.ts} +0 -0
- /package/esm/src/{cli/cli-commands/common/harness/isHarnessVersionOutdated.test.d.ts → book-2.0/agent-source/createAgentModelRequirements.deduplication.test.d.ts} +0 -0
- /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
- /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
|
@@ -1,4 +1,22 @@
|
|
|
1
1
|
import type { string_html, string_markdown } from '../../../types/string_markdown';
|
|
2
|
+
/**
|
|
3
|
+
* Attribute marking a client action generated for an inline-reference menu.
|
|
4
|
+
*
|
|
5
|
+
* @private utility shared with `MarkdownContent`
|
|
6
|
+
*/
|
|
7
|
+
export declare const MARKDOWN_INLINE_REFERENCE_MENU_ACTION_ATTRIBUTE = "data-promptbook-inline-reference-menu-action";
|
|
8
|
+
/**
|
|
9
|
+
* Attribute identifying the inline reference which owns a client menu action.
|
|
10
|
+
*
|
|
11
|
+
* @private utility shared with `MarkdownContent`
|
|
12
|
+
*/
|
|
13
|
+
export declare const MARKDOWN_INLINE_REFERENCE_MENU_ACTION_REFERENCE_ATTRIBUTE = "data-promptbook-inline-reference-menu-action-reference";
|
|
14
|
+
/**
|
|
15
|
+
* Attribute marking a favicon rendered inside an inline-reference chip.
|
|
16
|
+
*
|
|
17
|
+
* @private utility shared with `MarkdownContent`
|
|
18
|
+
*/
|
|
19
|
+
export declare const MARKDOWN_INLINE_REFERENCE_ICON_ATTRIBUTE = "data-promptbook-inline-reference-icon";
|
|
2
20
|
/**
|
|
3
21
|
* Options for markdown rendering.
|
|
4
22
|
*/
|
|
@@ -17,6 +35,13 @@ export type MarkdownInlineReference = {
|
|
|
17
35
|
* Raw reference text between `[[` and `]]`.
|
|
18
36
|
*/
|
|
19
37
|
readonly reference: string;
|
|
38
|
+
/**
|
|
39
|
+
* Optional text aliases which should render as this reference when an agent mentions them in markdown.
|
|
40
|
+
*
|
|
41
|
+
* They are also accepted inside a `[[reference]]` token. This lets application code use a stable
|
|
42
|
+
* technical reference while recognizing a human-facing name in older messages.
|
|
43
|
+
*/
|
|
44
|
+
readonly sourceTextAliases?: ReadonlyArray<string>;
|
|
20
45
|
/**
|
|
21
46
|
* Human-readable label rendered inside the link chip.
|
|
22
47
|
*/
|
|
@@ -26,21 +51,42 @@ export type MarkdownInlineReference = {
|
|
|
26
51
|
*/
|
|
27
52
|
readonly href: string;
|
|
28
53
|
/**
|
|
29
|
-
*
|
|
54
|
+
* Optional URL prefixes which also identify this reference in the authored markdown.
|
|
30
55
|
*
|
|
31
|
-
*
|
|
32
|
-
*
|
|
56
|
+
* A markdown link or a bare URL pointing to one of these prefixes is rendered as the same chip
|
|
57
|
+
* as the `[[reference]]` token. Both absolute URLs (for example `https://project.example.com`)
|
|
58
|
+
* and application paths (for example `/agents/agent/projects/website`) are supported; a path
|
|
59
|
+
* prefix matches on any host so that both relative and absolute links are recognized.
|
|
33
60
|
*/
|
|
34
61
|
readonly sourceHrefPrefixes?: ReadonlyArray<string>;
|
|
35
62
|
/**
|
|
36
63
|
* Optional hover title for the rendered reference.
|
|
37
64
|
*/
|
|
38
65
|
readonly title?: string;
|
|
66
|
+
/**
|
|
67
|
+
* Optional favicon and text fallback rendered before the reference label.
|
|
68
|
+
*/
|
|
69
|
+
readonly icon?: MarkdownInlineReferenceIcon;
|
|
39
70
|
/**
|
|
40
71
|
* Optional expandable menu shown when the reference chip is clicked.
|
|
41
72
|
*/
|
|
42
73
|
readonly menu?: MarkdownInlineReferenceMenu;
|
|
43
74
|
};
|
|
75
|
+
/**
|
|
76
|
+
* Visual identity rendered inside one markdown inline-reference chip.
|
|
77
|
+
*
|
|
78
|
+
* @public exported from `@promptbook/components`
|
|
79
|
+
*/
|
|
80
|
+
export type MarkdownInlineReferenceIcon = {
|
|
81
|
+
/**
|
|
82
|
+
* Optional image URL. The fallback remains visible when the image is unavailable.
|
|
83
|
+
*/
|
|
84
|
+
readonly src?: string | null;
|
|
85
|
+
/**
|
|
86
|
+
* Short text rendered when the image is missing or broken.
|
|
87
|
+
*/
|
|
88
|
+
readonly fallbackText: string;
|
|
89
|
+
};
|
|
44
90
|
/**
|
|
45
91
|
* Status displayed alongside an expandable markdown inline reference.
|
|
46
92
|
*
|
|
@@ -74,6 +120,25 @@ export type MarkdownInlineReferenceMenuOption = {
|
|
|
74
120
|
* Optional hover text for the option.
|
|
75
121
|
*/
|
|
76
122
|
readonly title?: string;
|
|
123
|
+
/**
|
|
124
|
+
* Optional client action rendered as a button instead of a link.
|
|
125
|
+
*/
|
|
126
|
+
readonly action?: MarkdownInlineReferenceMenuAction;
|
|
127
|
+
};
|
|
128
|
+
/**
|
|
129
|
+
* Client-side action exposed by an expandable markdown inline-reference menu.
|
|
130
|
+
*
|
|
131
|
+
* @public exported from `@promptbook/components`
|
|
132
|
+
*/
|
|
133
|
+
export type MarkdownInlineReferenceMenuAction = {
|
|
134
|
+
/**
|
|
135
|
+
* Stable identifier unique within the owning reference menu.
|
|
136
|
+
*/
|
|
137
|
+
readonly id: string;
|
|
138
|
+
/**
|
|
139
|
+
* Callback invoked when the menu button is selected.
|
|
140
|
+
*/
|
|
141
|
+
readonly onSelect: () => void | Promise<void>;
|
|
77
142
|
};
|
|
78
143
|
/**
|
|
79
144
|
* Expandable menu configuration for a markdown inline reference.
|
|
@@ -1,4 +1,22 @@
|
|
|
1
1
|
import type { TODO_any } from '../../../utils/organization/TODO_any';
|
|
2
|
+
/**
|
|
3
|
+
* Tool name of one scheduled wake-up, used by every producer of timeout chips.
|
|
4
|
+
*
|
|
5
|
+
* @private internal timeout-chat constant
|
|
6
|
+
*/
|
|
7
|
+
export declare const SET_TIMEOUT_TOOL_CALL_NAME = "set_timeout";
|
|
8
|
+
/**
|
|
9
|
+
* Tool name of one re-planned wake-up, used by every producer of timeout chips.
|
|
10
|
+
*
|
|
11
|
+
* @private internal timeout-chat constant
|
|
12
|
+
*/
|
|
13
|
+
export declare const UPDATE_TIMEOUT_TOOL_CALL_NAME = "update_timeout";
|
|
14
|
+
/**
|
|
15
|
+
* Tool name of one cancelled wake-up, used by every producer of timeout chips.
|
|
16
|
+
*
|
|
17
|
+
* @private internal timeout-chat constant
|
|
18
|
+
*/
|
|
19
|
+
export declare const CANCEL_TIMEOUT_TOOL_CALL_NAME = "cancel_timeout";
|
|
2
20
|
/**
|
|
3
21
|
* Action performed by timeout tools.
|
|
4
22
|
*
|
|
@@ -140,4 +158,16 @@ export declare function buildTimeoutToolPrimarySentence(presentation: TimeoutToo
|
|
|
140
158
|
* @private internal utility of `<Chat/>`
|
|
141
159
|
*/
|
|
142
160
|
export declare function buildTimeoutToolScheduleSentence(presentation: TimeoutToolCallPresentation, translations?: TimeoutToolCallTranslations): string | null;
|
|
161
|
+
/**
|
|
162
|
+
* Converts timeout duration into natural language sentence fragments.
|
|
163
|
+
*
|
|
164
|
+
* Shared by every timeout surface: the chat chips, the goal-chat planned messages of the Agents
|
|
165
|
+
* Server, and the planned-message prompt section of the agent-folder runner.
|
|
166
|
+
*
|
|
167
|
+
* @param milliseconds - Duration or repeat interval in milliseconds.
|
|
168
|
+
* @returns Label such as `5 minutes` or `1 hour 30 minutes`.
|
|
169
|
+
*
|
|
170
|
+
* @private internal utility of `<Chat/>` and the Agents Server planned messages
|
|
171
|
+
*/
|
|
172
|
+
export declare function formatTimeoutDurationHuman(milliseconds: number): string;
|
|
143
173
|
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { Command } from 'commander';
|
|
2
|
+
/**
|
|
3
|
+
* Registers the CLI commands on a fresh Commander program without parsing arguments or running an action.
|
|
4
|
+
* Tests can configure output and exit handling before registration, so subcommands inherit those settings.
|
|
5
|
+
*
|
|
6
|
+
* @private internal utility of `promptbookCli`
|
|
7
|
+
*/
|
|
8
|
+
export declare function $initializePromptbookCliProgram(program: Command): void;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { PromptRunnerHarnessName } from '../common/promptRunnerCliOptions';
|
|
2
|
+
import type { NormalizedQuestionsCliOptions } from '../common/questionsCliOptions';
|
|
3
|
+
/**
|
|
4
|
+
* Offers to add missing project-local ignore rules for the selected coding harness.
|
|
5
|
+
*
|
|
6
|
+
* Note: `$` is used to indicate that this function is not a pure function - it may ask the user and update `.gitignore`.
|
|
7
|
+
*
|
|
8
|
+
* @private internal utility of `ptbk coder`
|
|
9
|
+
*/
|
|
10
|
+
export declare function $ensureCoderHarnessGitignoreRules(projectPath: string, harnessName: PromptRunnerHarnessName | undefined, questionsOptions: NormalizedQuestionsCliOptions): Promise<void>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Supported values of the `--git-changes` option, which decides what happens with a dirty working tree.
|
|
3
|
+
*
|
|
4
|
+
* - `fail` — refuse to start while the working tree has uncommitted changes
|
|
5
|
+
* - `ignore` — start anyway and leave the uncommitted changes where they are
|
|
6
|
+
* - `continue` — resume the single prompt which was left in the middle of its implementation
|
|
7
|
+
*
|
|
8
|
+
* @private internal shared utility of `ptbk coder run`
|
|
9
|
+
*/
|
|
10
|
+
export declare const GIT_CHANGES_MODE_VALUES: readonly ["fail", "ignore", "continue"];
|
|
11
|
+
/**
|
|
12
|
+
* Behavior requested for a working tree which has uncommitted changes.
|
|
13
|
+
*
|
|
14
|
+
* @private internal shared utility of `ptbk coder run`
|
|
15
|
+
*/
|
|
16
|
+
export type GitChangesMode = (typeof GIT_CHANGES_MODE_VALUES)[number];
|
|
17
|
+
/**
|
|
18
|
+
* Mode applied when `--git-changes` is not used at all.
|
|
19
|
+
*
|
|
20
|
+
* @private internal shared utility of `ptbk coder run`
|
|
21
|
+
*/
|
|
22
|
+
export declare const DEFAULT_GIT_CHANGES_MODE: GitChangesMode;
|
|
23
|
+
/**
|
|
24
|
+
* Checks whether a value is a supported `--git-changes` mode.
|
|
25
|
+
*
|
|
26
|
+
* @private internal shared utility of `ptbk coder run`
|
|
27
|
+
*/
|
|
28
|
+
export declare function isGitChangesMode(value: string): value is GitChangesMode;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { Command as Program } from 'commander';
|
|
2
|
+
/**
|
|
3
|
+
* Commander option bag for an optional Book agent used by coder commands.
|
|
4
|
+
*
|
|
5
|
+
* @private internal utility of `ptbk coder`
|
|
6
|
+
*/
|
|
7
|
+
export type CoderAgentCliOptions = {
|
|
8
|
+
readonly agent?: string;
|
|
9
|
+
};
|
|
10
|
+
/**
|
|
11
|
+
* Description shared by coder commands which accept an agent Book.
|
|
12
|
+
*
|
|
13
|
+
* @private internal utility of `ptbk coder`
|
|
14
|
+
*/
|
|
15
|
+
export declare const CODER_AGENT_OPTION_DESCRIPTION = "Path to a .book file used to personalize coding prompts and select agent-specific tasks";
|
|
16
|
+
/**
|
|
17
|
+
* Registers the shared `--agent` option for coder commands.
|
|
18
|
+
*
|
|
19
|
+
* @private internal utility of `ptbk coder`
|
|
20
|
+
*/
|
|
21
|
+
export declare function addCoderAgentOption(command: Program): void;
|
|
@@ -12,7 +12,7 @@ export type BoilerplateCount = {
|
|
|
12
12
|
* Number of prompts written into each generated file.
|
|
13
13
|
*
|
|
14
14
|
* Note: More than one prompt per file is an advanced option - each prompt is one separate
|
|
15
|
-
* coding task separated by
|
|
15
|
+
* coding task separated by `---`, with all prompts in the file sharing its fresh emoji tag.
|
|
16
16
|
*/
|
|
17
17
|
readonly promptsPerFileCount: number;
|
|
18
18
|
};
|
|
@@ -16,6 +16,12 @@ export declare const PROMPTS_DONE_DIRECTORY_PATH: string;
|
|
|
16
16
|
* @private internal utility of `ptbk coder`
|
|
17
17
|
*/
|
|
18
18
|
export declare const PROMPTS_TEMPLATES_DIRECTORY_PATH: string;
|
|
19
|
+
/**
|
|
20
|
+
* Relative path to the project-agnostic `common` boilerplate template referenced by the default coder scripts.
|
|
21
|
+
*
|
|
22
|
+
* @private internal utility of `ptbk coder`
|
|
23
|
+
*/
|
|
24
|
+
export declare const COMMON_PROMPT_TEMPLATE_FILE_PATH: string;
|
|
19
25
|
/**
|
|
20
26
|
* Initialization statuses used when creating or updating coder configuration artifacts.
|
|
21
27
|
*
|
|
@@ -55,25 +61,6 @@ export type CoderPromptTemplateDefinition = {
|
|
|
55
61
|
*/
|
|
56
62
|
readonly isDefaultProjectTemplate: boolean;
|
|
57
63
|
};
|
|
58
|
-
/**
|
|
59
|
-
* Result of ensuring one default coder template file exists inside a project.
|
|
60
|
-
*
|
|
61
|
-
* @private internal utility of `ptbk coder`
|
|
62
|
-
*/
|
|
63
|
-
export type EnsuredCoderPromptTemplateFile = {
|
|
64
|
-
/**
|
|
65
|
-
* Stable built-in identifier of the template.
|
|
66
|
-
*/
|
|
67
|
-
readonly id: BuiltInCoderPromptTemplate;
|
|
68
|
-
/**
|
|
69
|
-
* Project-relative path of the materialized template file.
|
|
70
|
-
*/
|
|
71
|
-
readonly relativeFilePath: string;
|
|
72
|
-
/**
|
|
73
|
-
* Status describing whether the file had to be created.
|
|
74
|
-
*/
|
|
75
|
-
readonly status: InitializationStatus;
|
|
76
|
-
};
|
|
77
64
|
/**
|
|
78
65
|
* Fully resolved boilerplate template used by `coder generate-boilerplates`.
|
|
79
66
|
*
|
|
@@ -116,11 +103,11 @@ export declare function getDefaultCoderProjectPromptTemplateDefinitions(): Reado
|
|
|
116
103
|
*/
|
|
117
104
|
export declare function getDefaultCoderPromptTemplateDefinition(template: BuiltInCoderPromptTemplate): CoderPromptTemplateDefinition;
|
|
118
105
|
/**
|
|
119
|
-
* Ensures
|
|
106
|
+
* Ensures one project-owned coder template file exists without overwriting user customizations.
|
|
120
107
|
*
|
|
121
108
|
* @private internal utility of `ptbk coder`
|
|
122
109
|
*/
|
|
123
|
-
export declare function
|
|
110
|
+
export declare function ensureDefaultCoderPromptTemplateFile(projectPath: string, definition: CoderPromptTemplateDefinition): Promise<InitializationStatus>;
|
|
124
111
|
/**
|
|
125
112
|
* Resolves the template requested by `coder generate-boilerplates`.
|
|
126
113
|
*
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import type { InitializationStatus } from './boilerplateTemplates';
|
|
2
|
+
/**
|
|
3
|
+
* Status of one artifact referenced by the default coder scripts.
|
|
4
|
+
*
|
|
5
|
+
* `not-referenced` means that no newly added script points at the artifact, so `ptbk coder init` left it alone.
|
|
6
|
+
*
|
|
7
|
+
* @private internal utility of `coder init` command
|
|
8
|
+
*/
|
|
9
|
+
export type CoderReferencedArtifactStatus = InitializationStatus | 'not-referenced';
|
|
10
|
+
/**
|
|
11
|
+
* Result of ensuring one artifact referenced by the default coder scripts.
|
|
12
|
+
*
|
|
13
|
+
* @private internal utility of `coder init` command
|
|
14
|
+
*/
|
|
15
|
+
export type EnsuredCoderReferencedArtifact = {
|
|
16
|
+
/**
|
|
17
|
+
* Project-relative path of the referenced artifact.
|
|
18
|
+
*/
|
|
19
|
+
readonly relativeFilePath: string;
|
|
20
|
+
/**
|
|
21
|
+
* Status describing whether the artifact had to be created.
|
|
22
|
+
*/
|
|
23
|
+
readonly status: CoderReferencedArtifactStatus;
|
|
24
|
+
};
|
|
25
|
+
/**
|
|
26
|
+
* Creates only those referenced artifacts which the freshly added coder scripts point at.
|
|
27
|
+
*
|
|
28
|
+
* An artifact of a script which the project already defines is intentionally **not** created - the project-owned
|
|
29
|
+
* script is kept as is, so it does not reference the default artifact in the first place.
|
|
30
|
+
*
|
|
31
|
+
* @private function of `initializeCoderProjectConfiguration`
|
|
32
|
+
*/
|
|
33
|
+
export declare function ensureCoderReferencedArtifacts(projectPath: string, referencedArtifactPaths: ReadonlySet<string>): Promise<ReadonlyArray<EnsuredCoderReferencedArtifact>>;
|
|
@@ -1,7 +1,20 @@
|
|
|
1
|
+
import { type PromptRunnerHarnessName } from '../common/promptRunnerCliOptions';
|
|
1
2
|
import type { InitializationStatus } from './boilerplateTemplates';
|
|
2
3
|
/**
|
|
3
|
-
* Ensures `.gitignore` contains
|
|
4
|
+
* Ensures `.gitignore` contains Promptbook Coder's local artifacts and every supported harness's local artifacts.
|
|
4
5
|
*
|
|
5
6
|
* @private function of `initializeCoderProjectConfiguration`
|
|
6
7
|
*/
|
|
7
8
|
export declare function ensureCoderGitignoreFile(projectPath: string): Promise<InitializationStatus>;
|
|
9
|
+
/**
|
|
10
|
+
* Lists missing project-local ignore rules for the selected harnesses.
|
|
11
|
+
*
|
|
12
|
+
* @private internal utility of `ptbk coder`
|
|
13
|
+
*/
|
|
14
|
+
export declare function getMissingCoderHarnessGitignoreRules(projectPath: string, harnessNames: ReadonlyArray<PromptRunnerHarnessName>): Promise<ReadonlyArray<string>>;
|
|
15
|
+
/**
|
|
16
|
+
* Adds the given Promptbook Coder rules to a project's `.gitignore` file.
|
|
17
|
+
*
|
|
18
|
+
* @private internal utility of `ptbk coder`
|
|
19
|
+
*/
|
|
20
|
+
export declare function ensureCoderGitignoreRules(projectPath: string, rules: ReadonlyArray<string>): Promise<InitializationStatus>;
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { MergedStringRecordJsonFile } from './mergeStringRecordJsonFile';
|
|
2
2
|
/**
|
|
3
3
|
* Ensures `package.json` contains the standalone Promptbook coder helper scripts.
|
|
4
4
|
*
|
|
5
|
+
* Scripts which the project already defines are kept as they are, only missing ones are added.
|
|
6
|
+
*
|
|
5
7
|
* @private function of `initializeCoderProjectConfiguration`
|
|
6
8
|
*/
|
|
7
|
-
export declare function ensureCoderPackageJsonFile(projectPath: string): Promise<
|
|
9
|
+
export declare function ensureCoderPackageJsonFile(projectPath: string): Promise<MergedStringRecordJsonFile>;
|
|
@@ -2,6 +2,8 @@ import type { InitializationStatus } from './boilerplateTemplates';
|
|
|
2
2
|
/**
|
|
3
3
|
* Ensures VS Code routes pasted prompt images into `prompts/screenshots`.
|
|
4
4
|
*
|
|
5
|
+
* Settings which the project already defines are kept as they are, only missing ones are added.
|
|
6
|
+
*
|
|
5
7
|
* @private function of `initializeCoderProjectConfiguration`
|
|
6
8
|
*/
|
|
7
9
|
export declare function ensureCoderVscodeSettingsFile(projectPath: string): Promise<InitializationStatus>;
|
|
@@ -5,3 +5,9 @@ import type { InitializationStatus } from './boilerplateTemplates';
|
|
|
5
5
|
* @private function of `initializeCoderProjectConfiguration`
|
|
6
6
|
*/
|
|
7
7
|
export declare function ensureDirectory(projectPath: string, relativeDirectoryPath: string): Promise<InitializationStatus>;
|
|
8
|
+
/**
|
|
9
|
+
* Checks whether a project-relative directory is missing or contains no entries.
|
|
10
|
+
*
|
|
11
|
+
* @private internal utility of `coder init` command
|
|
12
|
+
*/
|
|
13
|
+
export declare function isDirectoryEmpty(projectPath: string, relativeDirectoryPath: string): Promise<boolean>;
|
|
@@ -10,7 +10,7 @@ import type { BoilerplateCount } from './boilerplateCount';
|
|
|
10
10
|
*/
|
|
11
11
|
export declare function $initializeCoderGenerateBoilerplatesCommand(program: Program): $side_effect;
|
|
12
12
|
/**
|
|
13
|
-
* Generates boilerplate prompt files with unique emoji
|
|
13
|
+
* Generates boilerplate prompt files with one unique emoji tag per file.
|
|
14
14
|
*
|
|
15
15
|
* @private internal function of `generatePromptBoilerplate` command
|
|
16
16
|
*/
|
|
@@ -4,3 +4,9 @@
|
|
|
4
4
|
* @private internal utility of `coder init` command
|
|
5
5
|
*/
|
|
6
6
|
export declare function getDefaultCoderPackageJsonScripts(): Readonly<Record<string, string>>;
|
|
7
|
+
/**
|
|
8
|
+
* Collects the project-relative artifact paths referenced by the given default coder scripts.
|
|
9
|
+
*
|
|
10
|
+
* @private internal utility of `coder init` command
|
|
11
|
+
*/
|
|
12
|
+
export declare function resolveCoderPackageJsonScriptReferencedArtifactPaths(scriptNames: ReadonlyArray<string>): ReadonlySet<string>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { InitializationStatus } from './boilerplateTemplates';
|
|
2
|
+
import type { EnsuredCoderReferencedArtifact } from './coderReferencedArtifacts';
|
|
2
3
|
/**
|
|
3
4
|
* Result summary returned after coder configuration initialization.
|
|
4
5
|
*
|
|
@@ -8,20 +9,22 @@ export type CoderInitializationSummary = {
|
|
|
8
9
|
readonly promptsDirectoryStatus: InitializationStatus;
|
|
9
10
|
readonly promptsDoneDirectoryStatus: InitializationStatus;
|
|
10
11
|
readonly promptsTemplatesDirectoryStatus: InitializationStatus;
|
|
11
|
-
readonly promptTemplateFileStatuses: ReadonlyArray<EnsuredCoderPromptTemplateFile>;
|
|
12
12
|
readonly agentsDirectoryStatus: InitializationStatus;
|
|
13
|
-
readonly
|
|
14
|
-
readonly agentsFileStatus: InitializationStatus;
|
|
15
|
-
readonly agentCodingFileStatus: InitializationStatus;
|
|
13
|
+
readonly adamAgentFileStatus: InitializationStatus;
|
|
16
14
|
readonly envFileStatus: InitializationStatus;
|
|
17
15
|
readonly gitignoreFileStatus: InitializationStatus;
|
|
18
16
|
readonly packageJsonFileStatus: InitializationStatus;
|
|
19
17
|
readonly vscodeSettingsFileStatus: InitializationStatus;
|
|
18
|
+
readonly addedPackageJsonScriptNames: ReadonlyArray<string>;
|
|
19
|
+
readonly referencedArtifactStatuses: ReadonlyArray<EnsuredCoderReferencedArtifact>;
|
|
20
20
|
readonly initializedEnvVariableNames: ReadonlyArray<string>;
|
|
21
21
|
};
|
|
22
22
|
/**
|
|
23
23
|
* Creates or updates all coder configuration artifacts required in the current project.
|
|
24
24
|
*
|
|
25
|
+
* Nothing the project already owns is ever overwritten - existing scripts, settings and files are kept as they are,
|
|
26
|
+
* and the artifacts they would reference are created only together with the scripts which actually reference them.
|
|
27
|
+
*
|
|
25
28
|
* @private internal utility of `coder init` command
|
|
26
29
|
*/
|
|
27
30
|
export declare function initializeCoderProjectConfiguration(projectPath: string): Promise<CoderInitializationSummary>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { Command as Program } from 'commander';
|
|
2
|
+
import type { $side_effect } from '../../../utils/organization/$side_effect';
|
|
3
|
+
/**
|
|
4
|
+
* Initializes `coder list` command for Promptbook CLI utilities.
|
|
5
|
+
*
|
|
6
|
+
* Note: `$` is used to indicate that this function is not a pure function - it registers a command in the CLI.
|
|
7
|
+
*
|
|
8
|
+
* @private internal function of `promptbookCli`
|
|
9
|
+
*/
|
|
10
|
+
export declare function $initializeCoderListCommand(program: Program): $side_effect;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -9,10 +9,28 @@ type MergeStringRecordJsonFileOptions = {
|
|
|
9
9
|
readonly nextEntries: Readonly<Record<string, string>>;
|
|
10
10
|
readonly ensureParentDirectoryPath?: string;
|
|
11
11
|
};
|
|
12
|
+
/**
|
|
13
|
+
* Result of one additive string-record merge into a JSON file.
|
|
14
|
+
*
|
|
15
|
+
* @private internal utility of `coder init` command
|
|
16
|
+
*/
|
|
17
|
+
export type MergedStringRecordJsonFile = {
|
|
18
|
+
/**
|
|
19
|
+
* Status describing whether the JSON file had to be created or updated.
|
|
20
|
+
*/
|
|
21
|
+
readonly status: InitializationStatus;
|
|
22
|
+
/**
|
|
23
|
+
* Keys which were missing in the JSON file and therefore added by the merge.
|
|
24
|
+
*/
|
|
25
|
+
readonly addedEntryKeys: ReadonlyArray<string>;
|
|
26
|
+
};
|
|
12
27
|
/**
|
|
13
28
|
* Ensures one JSON object field contains the provided string-record entries.
|
|
14
29
|
*
|
|
30
|
+
* Entries which the project already defines are **never** overridden - only missing keys are added,
|
|
31
|
+
* so hand-tuned scripts and settings survive every repeated `ptbk coder init`.
|
|
32
|
+
*
|
|
15
33
|
* @private function of `initializeCoderProjectConfiguration`
|
|
16
34
|
*/
|
|
17
|
-
export declare function mergeStringRecordJsonFile({ projectPath, relativeFilePath, fieldPath, nextEntries, ensureParentDirectoryPath, }: MergeStringRecordJsonFileOptions): Promise<
|
|
35
|
+
export declare function mergeStringRecordJsonFile({ projectPath, relativeFilePath, fieldPath, nextEntries, ensureParentDirectoryPath, }: MergeStringRecordJsonFileOptions): Promise<MergedStringRecordJsonFile>;
|
|
18
36
|
export {};
|
|
@@ -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;
|
|
@@ -8,6 +8,7 @@ import type { $side_effect } from '../../utils/organization/$side_effect';
|
|
|
8
8
|
* - add: Add one ready-to-run prompt file to the queue
|
|
9
9
|
* - generate-boilerplates: Generate prompt boilerplate files
|
|
10
10
|
* - find-refactor-candidates: Find files that need refactoring
|
|
11
|
+
* - list: List ready prompts in priority order without running them
|
|
11
12
|
* - run: Run coding prompts with AI agents
|
|
12
13
|
* - ping: Test one harness and model with a tiny dummy prompt
|
|
13
14
|
* - verify: Verify completed prompts
|
|
@@ -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 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,46 @@
|
|
|
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 booksByUrl;
|
|
23
|
+
private readonly booksByName;
|
|
24
|
+
/** Stable default ancestor selected from the initial repository scan. */
|
|
25
|
+
private adamAgentUrl;
|
|
26
|
+
/** Files initialized by this collection, for the coder's normal commit handling. */
|
|
27
|
+
readonly createdAgentBookPaths: string[];
|
|
28
|
+
/** Creates a collection rooted at the primary book's directory. */
|
|
29
|
+
constructor(agentDirectoryPath: string, currentWorkingDirectory: string);
|
|
30
|
+
/** Discovers nested books, including the hidden `.core` directory. */
|
|
31
|
+
initialize(): Promise<void>;
|
|
32
|
+
/** Identifies the default ancestor without creating an unused book for FROM null/void. */
|
|
33
|
+
getAdamAgentUrl(): string;
|
|
34
|
+
/** Resolves a unique first-line name, refusing ambiguous matches. */
|
|
35
|
+
findByName(name: string): LocalAgentBook;
|
|
36
|
+
/** Resolves a name, a path relative to its declaring book, or a path relative to the CLI cwd. */
|
|
37
|
+
resolveReference(reference: string, declaringBook: LocalAgentBook): Promise<string>;
|
|
38
|
+
/** Reads a local book once, canonicalizing symlinks so aliases cannot bypass cycle detection. */
|
|
39
|
+
readBook(filePath: string): Promise<LocalAgentBook>;
|
|
40
|
+
/** Loads a referenced remote book, while keeping local identifiers entirely inside the collection. */
|
|
41
|
+
getBook(url: string): Promise<LocalAgentBook>;
|
|
42
|
+
/** Adds a book under its normalized first-line name and preserves the display name for TEAM. */
|
|
43
|
+
private registerBook;
|
|
44
|
+
/** Walks real directories in deterministic order without following directory symlink loops. */
|
|
45
|
+
private readDirectory;
|
|
46
|
+
}
|
|
@@ -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 @@
|
|
|
1
|
+
export {};
|
|
@@ -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 @@
|
|
|
1
|
+
export {};
|