@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.
- package/README.md +50 -31
- package/esm/index.es.js +1836 -297
- package/esm/index.es.js.map +1 -1
- 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/CreateAgentModelRequirementsOptions.d.ts +2 -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/add.d.ts +22 -1
- package/esm/src/cli/cli-commands/coder/agentCliOptions.d.ts +27 -0
- package/esm/src/cli/cli-commands/coder/augmentCoderAgentTeam.d.ts +7 -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/coderAgentRole.d.ts +21 -0
- package/esm/src/cli/cli-commands/coder/coderReferencedArtifacts.d.ts +34 -0
- package/esm/src/cli/cli-commands/coder/ensureCoderDefaultAgentFiles.d.ts +8 -0
- package/esm/src/cli/cli-commands/coder/ensureCoderDefaultAgentFiles.test.d.ts +1 -0
- package/esm/src/cli/cli-commands/coder/ensureCoderGitattributesFile.d.ts +13 -0
- package/esm/src/cli/cli-commands/coder/ensureCoderGitignoreFile.d.ts +14 -1
- package/esm/src/cli/cli-commands/coder/ensureCoderPackageJsonFile.d.ts +5 -2
- package/esm/src/cli/cli-commands/coder/ensureCoderPackageJsonFile.test.d.ts +1 -0
- package/esm/src/cli/cli-commands/coder/ensureCoderRoleAgentFile.d.ts +12 -0
- 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/findLegacyCoderCheckCallers.d.ts +5 -0
- package/esm/src/cli/cli-commands/coder/fix.d.ts +7 -0
- package/esm/src/cli/cli-commands/coder/fix.test.d.ts +1 -0
- package/esm/src/cli/cli-commands/coder/fixWorkflow.test.d.ts +1 -0
- package/esm/src/cli/cli-commands/coder/generate-boilerplates.d.ts +2 -2
- package/esm/src/cli/cli-commands/coder/getCoderInitializationCommitPaths.d.ts +9 -0
- 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 +18 -6
- 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 +21 -1
- package/esm/src/cli/cli-commands/coder/plan.d.ts +7 -0
- package/esm/src/cli/cli-commands/coder/planning/assertPlanningCommitSafe.d.ts +6 -0
- package/esm/src/cli/cli-commands/coder/planning/assertPlanningPrdCommitScope.d.ts +7 -0
- package/esm/src/cli/cli-commands/coder/planning/assertPlanningRuntimePath.d.ts +6 -0
- package/esm/src/cli/cli-commands/coder/planning/createPlanningTerminal.d.ts +8 -0
- package/esm/src/cli/cli-commands/coder/planning/createPlanningTerminal.test.d.ts +1 -0
- package/esm/src/cli/cli-commands/coder/planning/createPlanningWorkspace.d.ts +11 -0
- package/esm/src/cli/cli-commands/coder/planning/discussPlanningTurn.d.ts +15 -0
- package/esm/src/cli/cli-commands/coder/planning/fixtures/snapshotPlanningProject.d.ts +5 -0
- package/esm/src/cli/cli-commands/coder/planning/planningGitSync.test.d.ts +1 -0
- package/esm/src/cli/cli-commands/coder/planning/planningPackagedCli.test.d.ts +1 -0
- package/esm/src/cli/cli-commands/coder/planning/planningProtocol.d.ts +152 -0
- package/esm/src/cli/cli-commands/coder/planning/planningTeam.test.d.ts +1 -0
- package/esm/src/cli/cli-commands/coder/planning/preparePlanningChanges.d.ts +16 -0
- package/esm/src/cli/cli-commands/coder/planning/readPlanningContext.d.ts +6 -0
- package/esm/src/cli/cli-commands/coder/planning/resolvePlanningPath.d.ts +7 -0
- package/esm/src/cli/cli-commands/coder/planning/runPlanningHarness.d.ts +30 -0
- package/esm/src/cli/cli-commands/coder/planning/runPlanningHarness.test.d.ts +1 -0
- package/esm/src/cli/cli-commands/coder/planning/runPlanningSession.d.ts +24 -0
- package/esm/src/cli/cli-commands/coder/planning/runPlanningSession.test.d.ts +1 -0
- package/esm/src/cli/cli-commands/coder/planning/savePlanningChanges.d.ts +7 -0
- package/esm/src/cli/cli-commands/coder/prepareCoderPackageJsonScripts.d.ts +12 -0
- package/esm/src/cli/cli-commands/coder/printCoderRunFailure.d.ts +6 -0
- package/esm/src/cli/cli-commands/coder/printInitializationSummary.d.ts +2 -1
- package/esm/src/cli/cli-commands/coder/promptsReadmeTemplate.d.ts +13 -0
- package/esm/src/cli/cli-commands/coder/promptsReadmeTemplate.test.d.ts +1 -0
- package/esm/src/cli/cli-commands/coder/readCoderAgentBook.d.ts +8 -0
- package/esm/src/cli/cli-commands/coder/server.test.d.ts +1 -0
- package/esm/src/cli/cli-commands/coder/waitOptions.d.ts +12 -0
- package/esm/src/cli/cli-commands/coder/workspacePreflight.test.d.ts +1 -0
- package/esm/src/cli/cli-commands/coder.d.ts +3 -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 +48 -0
- package/esm/src/cli/cli-commands/common/coderCheckCliOptions.d.ts +21 -0
- package/esm/src/cli/cli-commands/common/coderCheckCliOptions.test.d.ts +1 -0
- package/esm/src/cli/cli-commands/common/coderGitSyncCliOptions.d.ts +1 -1
- 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/ensureProjectTextFile.d.ts +7 -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 +6 -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/projectCliOptions.d.ts +30 -0
- package/esm/src/cli/cli-commands/common/projectCliOptions.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 +26 -0
- package/esm/src/cli/cli-commands/common/validateCoderRunOptions.d.ts +6 -0
- package/esm/src/cli/cli-commands/common/workspaceRepository.d.ts +48 -0
- package/esm/src/cli/cli-commands/common/workspaceRepository.test.d.ts +1 -0
- package/esm/src/cli/cli-commands/common/workspaceRepositoryCliOptions.d.ts +11 -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/TEAM/TEAM.test.d.ts +1 -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/conversion/archive/loadJsZipModule.d.ts +10 -0
- 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 +3 -7
- package/umd/index.umd.js +1836 -297
- package/umd/index.umd.js.map +1 -1
- 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/CreateAgentModelRequirementsOptions.d.ts +2 -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/add.d.ts +22 -1
- package/umd/src/cli/cli-commands/coder/agentCliOptions.d.ts +27 -0
- package/umd/src/cli/cli-commands/coder/augmentCoderAgentTeam.d.ts +7 -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/coderAgentRole.d.ts +21 -0
- package/umd/src/cli/cli-commands/coder/coderReferencedArtifacts.d.ts +34 -0
- package/umd/src/cli/cli-commands/coder/ensureCoderDefaultAgentFiles.d.ts +8 -0
- package/umd/src/cli/cli-commands/coder/ensureCoderDefaultAgentFiles.test.d.ts +1 -0
- package/umd/src/cli/cli-commands/coder/ensureCoderGitattributesFile.d.ts +13 -0
- package/umd/src/cli/cli-commands/coder/ensureCoderGitignoreFile.d.ts +14 -1
- package/umd/src/cli/cli-commands/coder/ensureCoderPackageJsonFile.d.ts +5 -2
- package/umd/src/cli/cli-commands/coder/ensureCoderPackageJsonFile.test.d.ts +1 -0
- package/umd/src/cli/cli-commands/coder/ensureCoderRoleAgentFile.d.ts +12 -0
- 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/findLegacyCoderCheckCallers.d.ts +5 -0
- package/umd/src/cli/cli-commands/coder/fix.d.ts +7 -0
- package/umd/src/cli/cli-commands/coder/fix.test.d.ts +1 -0
- package/umd/src/cli/cli-commands/coder/fixWorkflow.test.d.ts +1 -0
- package/umd/src/cli/cli-commands/coder/generate-boilerplates.d.ts +2 -2
- package/umd/src/cli/cli-commands/coder/getCoderInitializationCommitPaths.d.ts +9 -0
- 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 +18 -6
- 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 +21 -1
- package/umd/src/cli/cli-commands/coder/plan.d.ts +7 -0
- package/umd/src/cli/cli-commands/coder/planning/assertPlanningCommitSafe.d.ts +6 -0
- package/umd/src/cli/cli-commands/coder/planning/assertPlanningPrdCommitScope.d.ts +7 -0
- package/umd/src/cli/cli-commands/coder/planning/assertPlanningRuntimePath.d.ts +6 -0
- package/umd/src/cli/cli-commands/coder/planning/createPlanningTerminal.d.ts +8 -0
- package/umd/src/cli/cli-commands/coder/planning/createPlanningTerminal.test.d.ts +1 -0
- package/umd/src/cli/cli-commands/coder/planning/createPlanningWorkspace.d.ts +11 -0
- package/umd/src/cli/cli-commands/coder/planning/discussPlanningTurn.d.ts +15 -0
- package/umd/src/cli/cli-commands/coder/planning/fixtures/snapshotPlanningProject.d.ts +5 -0
- package/umd/src/cli/cli-commands/coder/planning/planningGitSync.test.d.ts +1 -0
- package/umd/src/cli/cli-commands/coder/planning/planningPackagedCli.test.d.ts +1 -0
- package/umd/src/cli/cli-commands/coder/planning/planningProtocol.d.ts +152 -0
- package/umd/src/cli/cli-commands/coder/planning/planningTeam.test.d.ts +1 -0
- package/umd/src/cli/cli-commands/coder/planning/preparePlanningChanges.d.ts +16 -0
- package/umd/src/cli/cli-commands/coder/planning/readPlanningContext.d.ts +6 -0
- package/umd/src/cli/cli-commands/coder/planning/resolvePlanningPath.d.ts +7 -0
- package/umd/src/cli/cli-commands/coder/planning/runPlanningHarness.d.ts +30 -0
- package/umd/src/cli/cli-commands/coder/planning/runPlanningHarness.test.d.ts +1 -0
- package/umd/src/cli/cli-commands/coder/planning/runPlanningSession.d.ts +24 -0
- package/umd/src/cli/cli-commands/coder/planning/runPlanningSession.test.d.ts +1 -0
- package/umd/src/cli/cli-commands/coder/planning/savePlanningChanges.d.ts +7 -0
- package/umd/src/cli/cli-commands/coder/prepareCoderPackageJsonScripts.d.ts +12 -0
- package/umd/src/cli/cli-commands/coder/printCoderRunFailure.d.ts +6 -0
- package/umd/src/cli/cli-commands/coder/printInitializationSummary.d.ts +2 -1
- package/umd/src/cli/cli-commands/coder/promptsReadmeTemplate.d.ts +13 -0
- package/umd/src/cli/cli-commands/coder/promptsReadmeTemplate.test.d.ts +1 -0
- package/umd/src/cli/cli-commands/coder/readCoderAgentBook.d.ts +8 -0
- package/umd/src/cli/cli-commands/coder/server.test.d.ts +1 -0
- package/umd/src/cli/cli-commands/coder/waitOptions.d.ts +12 -0
- package/umd/src/cli/cli-commands/coder/workspacePreflight.test.d.ts +1 -0
- package/umd/src/cli/cli-commands/coder.d.ts +3 -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 +48 -0
- package/umd/src/cli/cli-commands/common/coderCheckCliOptions.d.ts +21 -0
- package/umd/src/cli/cli-commands/common/coderCheckCliOptions.test.d.ts +1 -0
- package/umd/src/cli/cli-commands/common/coderGitSyncCliOptions.d.ts +1 -1
- 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/ensureProjectTextFile.d.ts +7 -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 +6 -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/projectCliOptions.d.ts +30 -0
- package/umd/src/cli/cli-commands/common/projectCliOptions.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 +26 -0
- package/umd/src/cli/cli-commands/common/validateCoderRunOptions.d.ts +6 -0
- package/umd/src/cli/cli-commands/common/workspaceRepository.d.ts +48 -0
- package/umd/src/cli/cli-commands/common/workspaceRepository.test.d.ts +1 -0
- package/umd/src/cli/cli-commands/common/workspaceRepositoryCliOptions.d.ts +11 -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/TEAM/TEAM.test.d.ts +1 -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/conversion/archive/loadJsZipModule.d.ts +10 -0
- 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 { 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;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { Command as Program } from 'commander';
|
|
2
2
|
import type { $side_effect } from '../../../utils/organization/$side_effect';
|
|
3
|
+
import { type ResolvedCoderPromptTemplate } from './boilerplateTemplates';
|
|
3
4
|
/**
|
|
4
5
|
* Initializes `coder add` command for Promptbook CLI utilities
|
|
5
6
|
*
|
|
@@ -28,9 +29,29 @@ export type AddCoderPromptResult = {
|
|
|
28
29
|
*
|
|
29
30
|
* @private internal utility of `coder add` command
|
|
30
31
|
*/
|
|
31
|
-
export declare function addCoderPrompt({ projectPath, description, priority, templateOption, }: {
|
|
32
|
+
export declare function addCoderPrompt({ projectPath, description, priority, templateOption, promptTemplate, }: {
|
|
32
33
|
readonly projectPath: string;
|
|
33
34
|
readonly description: string;
|
|
34
35
|
readonly priority: number;
|
|
35
36
|
readonly templateOption?: string;
|
|
37
|
+
/** Internal authoring workflows may supply their own bounded instructions instead of the feature template. */
|
|
38
|
+
readonly promptTemplate?: ResolvedCoderPromptTemplate;
|
|
36
39
|
}): Promise<AddCoderPromptResult>;
|
|
40
|
+
/**
|
|
41
|
+
* Prepares a numbered, emoji-tagged prompt for preview without writing the prompt file.
|
|
42
|
+
* The offset reserves consecutive identities when a planning turn proposes several files.
|
|
43
|
+
*
|
|
44
|
+
* @private internal utility shared by `coder add` and `coder plan`
|
|
45
|
+
*/
|
|
46
|
+
export declare function prepareCoderPrompt({ projectPath, description, priority, templateOption, numberOffset, reservedEmojiTag, promptTemplate: providedPromptTemplate, }: {
|
|
47
|
+
readonly projectPath: string;
|
|
48
|
+
readonly description: string;
|
|
49
|
+
readonly priority: number;
|
|
50
|
+
readonly templateOption?: string;
|
|
51
|
+
readonly numberOffset?: number;
|
|
52
|
+
readonly reservedEmojiTag?: string;
|
|
53
|
+
/** Shared repair authoring preserves numbering and tags without appending ordinary implementation instructions. */
|
|
54
|
+
readonly promptTemplate?: ResolvedCoderPromptTemplate;
|
|
55
|
+
}): Promise<AddCoderPromptResult & {
|
|
56
|
+
readonly content: string;
|
|
57
|
+
}>;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import type { Command as Program } from 'commander';
|
|
2
|
+
import { type CoderAgentRole } from './coderAgentRole';
|
|
3
|
+
/**
|
|
4
|
+
* Commander option bag for an optional Book agent used by coder commands.
|
|
5
|
+
*
|
|
6
|
+
* @private internal utility of `ptbk coder`
|
|
7
|
+
*/
|
|
8
|
+
export type CoderAgentCliOptions = {
|
|
9
|
+
readonly agent?: string;
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* Description shared by coder commands which accept an agent Book.
|
|
13
|
+
*
|
|
14
|
+
* @private internal utility of `ptbk coder`
|
|
15
|
+
*/
|
|
16
|
+
export declare const CODER_AGENT_OPTION_DESCRIPTION = "Book agent providing persona, instructions, identity and task routing; --harness selects the coding tool and --model selects its model";
|
|
17
|
+
/**
|
|
18
|
+
* Registers the shared `--agent` option for coder commands.
|
|
19
|
+
*
|
|
20
|
+
* @private internal utility of `ptbk coder`
|
|
21
|
+
*/
|
|
22
|
+
export declare function addCoderAgentOption(command: Program, defaultRole?: CoderAgentRole): void;
|
|
23
|
+
/**
|
|
24
|
+
* Registers the shared optional persona and context for single-agent execution or authoring.
|
|
25
|
+
* @private internal CLI registration helper
|
|
26
|
+
*/
|
|
27
|
+
export declare function addCoderExecutionOptions(command: Program): void;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Adds only missing bundled TEAM commitments using canonical local Book identities.
|
|
3
|
+
* Role instructions come from the bundled Book, not from a harness or a second template here.
|
|
4
|
+
*
|
|
5
|
+
* @private internal utility of `coder init`
|
|
6
|
+
*/
|
|
7
|
+
export declare function augmentCoderAgentTeam(projectPath: string, role: 'developer' | 'planner'): Promise<'augmented' | 'unchanged'>;
|
|
@@ -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,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Project-owned Book defaults for execution roles, independent of harness and model selection.
|
|
3
|
+
* Commands without an execution role, such as `coder list`, have no default Book filter.
|
|
4
|
+
*
|
|
5
|
+
* @private internal constant of `ptbk coder`
|
|
6
|
+
*/
|
|
7
|
+
export declare const CODER_DEFAULT_AGENT_BOOK_PATHS: {
|
|
8
|
+
readonly developer: "agents/developer.book";
|
|
9
|
+
readonly planner: "agents/planner.book";
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* Execution role whose editable local Book is selected when `--agent` is omitted.
|
|
13
|
+
*
|
|
14
|
+
* @private internal type of `ptbk coder`
|
|
15
|
+
*/
|
|
16
|
+
export type CoderAgentRole = keyof typeof CODER_DEFAULT_AGENT_BOOK_PATHS;
|
|
17
|
+
/**
|
|
18
|
+
* Shared persona for optional single-agent execution and authoring; capabilities belong to the command.
|
|
19
|
+
* @private internal constant of project CLI commands
|
|
20
|
+
*/
|
|
21
|
+
export declare const DEFAULT_CODER_AGENT_ROLE: CoderAgentRole;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import type { InitializationStatus } from './boilerplateTemplates';
|
|
2
|
+
/**
|
|
3
|
+
* Status of one default Book or 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 | 'augmented' | 'unresolved' | 'not-referenced';
|
|
10
|
+
/**
|
|
11
|
+
* Result of ensuring one default Book or 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 was created, augmented, preserved, or could not be resolved.
|
|
22
|
+
*/
|
|
23
|
+
readonly status: CoderReferencedArtifactStatus;
|
|
24
|
+
/** Explanation of an unresolved file or TEAM declaration, with the original content preserved. */
|
|
25
|
+
readonly diagnostic?: string;
|
|
26
|
+
};
|
|
27
|
+
/**
|
|
28
|
+
* Initializes essential context and artifacts referenced by freshly added scripts. Books are ensured separately.
|
|
29
|
+
*
|
|
30
|
+
* AGENTS.md is essential even when every script already exists or uses implicit defaults.
|
|
31
|
+
*
|
|
32
|
+
* @private function of `initializeCoderProjectConfiguration`
|
|
33
|
+
*/
|
|
34
|
+
export declare function ensureCoderReferencedArtifacts(projectPath: string, referencedArtifactPaths: ReadonlySet<string>): Promise<ReadonlyArray<EnsuredCoderReferencedArtifact>>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { EnsuredCoderReferencedArtifact } from './coderReferencedArtifacts';
|
|
2
|
+
/**
|
|
3
|
+
* Ensures every default Book independently, then adds missing helper declarations to the two primary roles.
|
|
4
|
+
* A failure leaves the affected Book intact and does not prevent the remaining files from being initialized.
|
|
5
|
+
*
|
|
6
|
+
* @private internal utility of `coder init`
|
|
7
|
+
*/
|
|
8
|
+
export declare function ensureCoderDefaultAgentFiles(projectPath: string): Promise<EnsuredCoderReferencedArtifact[]>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { InitializationStatus } from './boilerplateTemplates';
|
|
2
|
+
/**
|
|
3
|
+
* Project-relative path to the Git attributes initialized by Promptbook Coder.
|
|
4
|
+
*
|
|
5
|
+
* @private internal constant of `coder init`
|
|
6
|
+
*/
|
|
7
|
+
export declare const CODER_GITATTRIBUTES_FILE_PATH = ".gitattributes";
|
|
8
|
+
/**
|
|
9
|
+
* Creates default Git attributes when missing, preserving project-owned attributes.
|
|
10
|
+
*
|
|
11
|
+
* @private function of `initializeCoderProjectConfiguration`
|
|
12
|
+
*/
|
|
13
|
+
export declare function ensureCoderGitattributesFile(projectPath: string): Promise<InitializationStatus>;
|
|
@@ -1,7 +1,20 @@
|
|
|
1
|
+
import { type PromptRunnerHarnessName } from '../common/promptRunnerCliOptions';
|
|
1
2
|
import type { InitializationStatus } from './boilerplateTemplates';
|
|
2
3
|
/**
|
|
3
|
-
* Ensures `.gitignore`
|
|
4
|
+
* Ensures `.gitignore` covers local dependencies, coder 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,10 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { MergedStringRecordJsonFile } from './mergeStringRecordJsonFile';
|
|
2
|
+
import { type PreparedCoderPackageJsonScripts } from './prepareCoderPackageJsonScripts';
|
|
2
3
|
/**
|
|
3
4
|
* Ensures `package.json` contains the standalone Promptbook coder helper scripts.
|
|
4
5
|
*
|
|
6
|
+
* Project definitions are preserved; missing scripts and narrowly recognized generated migrations are applied.
|
|
7
|
+
*
|
|
5
8
|
* @private function of `initializeCoderProjectConfiguration`
|
|
6
9
|
*/
|
|
7
|
-
export declare function ensureCoderPackageJsonFile(projectPath: string): Promise<
|
|
10
|
+
export declare function ensureCoderPackageJsonFile(projectPath: string): Promise<MergedStringRecordJsonFile & Omit<PreparedCoderPackageJsonScripts, 'scripts'>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { InitializationStatus } from './boilerplateTemplates';
|
|
2
|
+
/**
|
|
3
|
+
* Project-owned planning role selected when `coder plan` has no explicit Book override.
|
|
4
|
+
* @private internal constant of Coder role resolution
|
|
5
|
+
*/
|
|
6
|
+
export declare const CODER_PLANNER_AGENT_FILE_PATH = "agents/planner.book";
|
|
7
|
+
/**
|
|
8
|
+
* Copies a bundled role without overwriting an existing project-owned Book, including on repeated init.
|
|
9
|
+
*
|
|
10
|
+
* @private internal utility of `coder init`
|
|
11
|
+
*/
|
|
12
|
+
export declare function ensureCoderRoleAgentFile(projectPath: string, role: 'developer' | 'planner' | 'lawyer' | 'copywriter'): Promise<InitializationStatus>;
|
|
@@ -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>;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Finds external project callers conservatively; it never rewrites their shell expressions.
|
|
3
|
+
* @private migration safety check for the Coder initializer
|
|
4
|
+
*/
|
|
5
|
+
export declare function findLegacyCoderCheckCallers(projectPath: string, legacyNames: ReadonlyArray<string>): Promise<Readonly<Record<string, ReadonlyArray<string>>>>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { Command as Program } from 'commander';
|
|
2
|
+
import type { $side_effect } from '../../../utils/organization/$side_effect';
|
|
3
|
+
/**
|
|
4
|
+
* Registers a finite check-repair command with the shared parser, defaults and execution policy.
|
|
5
|
+
* @private internal CLI command registration
|
|
6
|
+
*/
|
|
7
|
+
export declare function $initializeCoderFixCommand(program: Program): $side_effect;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -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
|
*/
|
|
@@ -18,4 +18,4 @@ export declare function generatePromptBoilerplate({ projectPath, boilerplateCoun
|
|
|
18
18
|
readonly projectPath: string;
|
|
19
19
|
readonly boilerplateCount: BoilerplateCount;
|
|
20
20
|
readonly templateOption?: string;
|
|
21
|
-
}): Promise<
|
|
21
|
+
}): Promise<ReadonlyArray<string>>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { WorkspaceRepositoryContext } from '../common/workspaceRepository';
|
|
2
|
+
import type { CoderInitializationSummary } from './initializeCoderProjectConfiguration';
|
|
3
|
+
/**
|
|
4
|
+
* Restricts an explicit initialization commit to the initializer's write set, in repository-relative paths.
|
|
5
|
+
* The shared snapshot still excludes pre-existing files that initialization did not actually change.
|
|
6
|
+
*
|
|
7
|
+
* @private internal utility of the shared project initializer
|
|
8
|
+
*/
|
|
9
|
+
export declare function getCoderInitializationCommitPaths(workspace: WorkspaceRepositoryContext, summary: CoderInitializationSummary, boilerplatePaths: ReadonlyArray<string>): ReadonlyArray<string>;
|
|
@@ -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 { CoderReferencedArtifactStatus, EnsuredCoderReferencedArtifact } from './coderReferencedArtifacts';
|
|
2
3
|
/**
|
|
3
4
|
* Result summary returned after coder configuration initialization.
|
|
4
5
|
*
|
|
@@ -6,22 +7,33 @@ import type { EnsuredCoderPromptTemplateFile, InitializationStatus } from './boi
|
|
|
6
7
|
*/
|
|
7
8
|
export type CoderInitializationSummary = {
|
|
8
9
|
readonly promptsDirectoryStatus: InitializationStatus;
|
|
10
|
+
readonly promptsReadmeFileStatus: InitializationStatus;
|
|
9
11
|
readonly promptsDoneDirectoryStatus: InitializationStatus;
|
|
10
12
|
readonly promptsTemplatesDirectoryStatus: InitializationStatus;
|
|
11
|
-
readonly promptTemplateFileStatuses: ReadonlyArray<EnsuredCoderPromptTemplateFile>;
|
|
12
13
|
readonly agentsDirectoryStatus: InitializationStatus;
|
|
13
|
-
readonly
|
|
14
|
-
readonly
|
|
15
|
-
readonly agentCodingFileStatus: InitializationStatus;
|
|
14
|
+
readonly adamAgentFileStatus: CoderReferencedArtifactStatus;
|
|
15
|
+
readonly adamAgentFileDiagnostic?: string;
|
|
16
16
|
readonly envFileStatus: InitializationStatus;
|
|
17
17
|
readonly gitignoreFileStatus: InitializationStatus;
|
|
18
|
+
readonly gitattributesFileStatus: InitializationStatus;
|
|
18
19
|
readonly packageJsonFileStatus: InitializationStatus;
|
|
19
20
|
readonly vscodeSettingsFileStatus: InitializationStatus;
|
|
21
|
+
readonly addedPackageJsonScriptNames: ReadonlyArray<string>;
|
|
22
|
+
readonly referencedArtifactStatuses: ReadonlyArray<EnsuredCoderReferencedArtifact>;
|
|
20
23
|
readonly initializedEnvVariableNames: ReadonlyArray<string>;
|
|
24
|
+
/** Actual preserved or generated scope of the project check. */
|
|
25
|
+
readonly checkScriptSummary: string;
|
|
26
|
+
/** Manual steps needed for custom or conflicting legacy entries. */
|
|
27
|
+
readonly migrationInstructions: ReadonlyArray<string>;
|
|
28
|
+
/** Whether validation is configured rather than still requiring setup. */
|
|
29
|
+
readonly isCheckConfigured: boolean;
|
|
21
30
|
};
|
|
22
31
|
/**
|
|
23
32
|
* Creates or updates all coder configuration artifacts required in the current project.
|
|
24
33
|
*
|
|
34
|
+
* Existing scripts, settings and Books are preserved. Missing Books and helper TEAM declarations are added
|
|
35
|
+
* independently of package scripts, with unresolved artifacts reported without replacing project content.
|
|
36
|
+
*
|
|
25
37
|
* @private internal utility of `coder init` command
|
|
26
38
|
*/
|
|
27
|
-
export declare function initializeCoderProjectConfiguration(projectPath: string): Promise<CoderInitializationSummary>;
|
|
39
|
+
export declare function initializeCoderProjectConfiguration(projectPath: string, onStepCompleted?: (step: string) => void): 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 {};
|
|
@@ -8,11 +8,31 @@ type MergeStringRecordJsonFileOptions = {
|
|
|
8
8
|
readonly fieldPath: string;
|
|
9
9
|
readonly nextEntries: Readonly<Record<string, string>>;
|
|
10
10
|
readonly ensureParentDirectoryPath?: string;
|
|
11
|
+
/** Optional narrowly scoped migration of existing entries before missing defaults are added. */
|
|
12
|
+
readonly transformExistingEntries?: (entries: Readonly<Record<string, string>>) => Readonly<Record<string, string>> | Promise<Readonly<Record<string, string>>>;
|
|
13
|
+
};
|
|
14
|
+
/**
|
|
15
|
+
* Result of one additive string-record merge into a JSON file.
|
|
16
|
+
*
|
|
17
|
+
* @private internal utility of `coder init` command
|
|
18
|
+
*/
|
|
19
|
+
export type MergedStringRecordJsonFile = {
|
|
20
|
+
/**
|
|
21
|
+
* Status describing whether the JSON file had to be created or updated.
|
|
22
|
+
*/
|
|
23
|
+
readonly status: InitializationStatus;
|
|
24
|
+
/**
|
|
25
|
+
* Keys which were missing in the JSON file and therefore added by the merge.
|
|
26
|
+
*/
|
|
27
|
+
readonly addedEntryKeys: ReadonlyArray<string>;
|
|
11
28
|
};
|
|
12
29
|
/**
|
|
13
30
|
* Ensures one JSON object field contains the provided string-record entries.
|
|
14
31
|
*
|
|
32
|
+
* Entries are additive unless a caller explicitly supplies a scoped migration callback.
|
|
33
|
+
* Hand-tuned scripts and settings survive repeated `ptbk coder init`; migrations recognize generated entries only.
|
|
34
|
+
*
|
|
15
35
|
* @private function of `initializeCoderProjectConfiguration`
|
|
16
36
|
*/
|
|
17
|
-
export declare function mergeStringRecordJsonFile({ projectPath, relativeFilePath, fieldPath, nextEntries, ensureParentDirectoryPath, }: MergeStringRecordJsonFileOptions): Promise<
|
|
37
|
+
export declare function mergeStringRecordJsonFile({ projectPath, relativeFilePath, fieldPath, nextEntries, ensureParentDirectoryPath, transformExistingEntries, }: MergeStringRecordJsonFileOptions): Promise<MergedStringRecordJsonFile>;
|
|
18
38
|
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { Command as Program } from 'commander';
|
|
2
|
+
import type { $side_effect } from '../../../utils/organization/$side_effect';
|
|
3
|
+
/**
|
|
4
|
+
* Registers the repository-aware, planning-only conversation under the existing coder command group.
|
|
5
|
+
* @private internal utility of `promptbookCli`
|
|
6
|
+
*/
|
|
7
|
+
export declare function $initializeCoderPlanCommand(program: Program): $side_effect;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Protects the shared authoring Git helper's temporary directory and shell-quoted absolute message path.
|
|
3
|
+
* PRD paths themselves are checked separately by the write boundary before every save and commit.
|
|
4
|
+
* @private internal execution boundary of `coder plan`
|
|
5
|
+
*/
|
|
6
|
+
export declare function assertPlanningCommitSafe(projectPath: string): void;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { PlanningChange } from './preparePlanningChanges';
|
|
2
|
+
/**
|
|
3
|
+
* Refuses to mix prior or concurrent user edits into a PRD that this session intends to commit.
|
|
4
|
+
* After the first save, the session's exact saved text is the baseline for subsequent revisions.
|
|
5
|
+
* @private internal execution boundary of `coder plan`
|
|
6
|
+
*/
|
|
7
|
+
export declare function assertPlanningPrdCommitScope(projectPath: string, changes: ReadonlyArray<PlanningChange>, savedContents: ReadonlyMap<string, string>, preexistingChangedPaths: ReadonlySet<string>): Promise<void>;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Keeps host-owned staging and Git runtime directories inside the ordinary Promptbook temporary tree.
|
|
3
|
+
* Missing directories are allowed, but no existing ancestor may redirect subsequent writes through a link.
|
|
4
|
+
* @private internal execution boundary of `coder plan`
|
|
5
|
+
*/
|
|
6
|
+
export declare function assertPlanningRuntimePath(projectPath: string, runtimePath: string): void;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { PlanningSessionIo } from './runPlanningSession';
|
|
2
|
+
/**
|
|
3
|
+
* Builds an EOF-aware terminal. EOF or Ctrl+C also cancels an in-flight harness turn.
|
|
4
|
+
* @private internal utility of `coder plan`
|
|
5
|
+
*/
|
|
6
|
+
export declare function createPlanningTerminal(): PlanningSessionIo & {
|
|
7
|
+
readonly close: () => void;
|
|
8
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Host-owned structured output contract kept outside the PRD queue.
|
|
3
|
+
* @private internal constant of `coder plan`
|
|
4
|
+
*/
|
|
5
|
+
export declare const PLANNING_RESPONSE_SCHEMA_FILENAME = "response.schema.json";
|
|
6
|
+
/**
|
|
7
|
+
* Creates isolated runtime state in the already ignored Promptbook location, outside the PRD queue.
|
|
8
|
+
* An empty Git root prevents the harness from loading repository-local configuration and hooks.
|
|
9
|
+
* @private internal utility of `coder plan`
|
|
10
|
+
*/
|
|
11
|
+
export declare function createPlanningWorkspace(projectPath: string): Promise<string>;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { CoderTeamScope } from '../../../../../scripts/run-codex-prompts/team/CoderTeamRuntime';
|
|
2
|
+
import { type PlanningMessage, type PlanningReply } from './planningProtocol';
|
|
3
|
+
/**
|
|
4
|
+
* Runs the same read-only protocol throughout the delegation tree. Only the primary caller can receive proposals.
|
|
5
|
+
* @private internal utility of `coder plan`
|
|
6
|
+
*/
|
|
7
|
+
export declare function discussPlanningTurn(options: {
|
|
8
|
+
readonly projectPath: string;
|
|
9
|
+
readonly history: PlanningMessage[];
|
|
10
|
+
readonly signal: AbortSignal;
|
|
11
|
+
readonly infer: () => Promise<string>;
|
|
12
|
+
readonly team?: CoderTeamScope;
|
|
13
|
+
readonly isAdviser?: boolean;
|
|
14
|
+
readonly write?: (message: string) => void;
|
|
15
|
+
}): Promise<PlanningReply>;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Captures project-owned fixture files while excluding the ignored planning runtime and linked test targets.
|
|
3
|
+
* @private test utility of `coder plan`
|
|
4
|
+
*/
|
|
5
|
+
export declare function snapshotPlanningProject(projectPath: string, directory?: string): Promise<Record<string, string>>;
|