@promptbook/node 0.114.0-2 → 0.114.0-21
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 +8 -16
- package/esm/index.es.js +1466 -4791
- package/esm/index.es.js.map +1 -1
- package/esm/scripts/run-agent-messages/messages/buildAgentGoalChatPromptSection.d.ts +26 -0
- package/esm/scripts/run-agent-messages/messages/buildAgentMessagePrompt.d.ts +12 -1
- package/esm/scripts/run-agent-messages/messages/buildAgentProjectsPromptSection.d.ts +2 -14
- package/esm/scripts/run-agent-messages/messages/buildAgentTeamPromptSection.d.ts +12 -0
- package/esm/scripts/run-codex-prompts/common/runGoScript/$spawnLoggedBashScript.d.ts +25 -0
- package/esm/scripts/run-codex-prompts/common/runGoScript/$terminateLoggedBashProcessTree.d.ts +11 -0
- package/esm/scripts/run-codex-prompts/common/runGoScript/scriptExecutionLog.d.ts +11 -0
- package/esm/scripts/run-codex-prompts/common/waitForPause.d.ts +92 -0
- package/esm/scripts/run-codex-prompts/common/waitForSkippableWorldTimeDeadline.d.ts +15 -0
- package/esm/scripts/run-codex-prompts/main/resolvePromptRunner.d.ts +8 -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/AgentBasicInformation.d.ts +3 -3
- 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/getBookCommitmentLineType.d.ts +19 -0
- 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/AgentTeamConversationWorkspace.d.ts +85 -0
- 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/createUnknownCommitmentDiagnostics.d.ts +28 -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/utils/$provideServerDomWindow.d.ts +11 -0
- package/esm/src/book-components/Chat/utils/agentProjectToolCall.d.ts +85 -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/cli-commands/agents-server/buildAgentsServer/createAgentsServerRuntimeEnvironment.d.ts +7 -0
- package/esm/src/cli/cli-commands/coder/GitChangesMode.d.ts +28 -0
- package/esm/src/cli/cli-commands/coder/boilerplateCount.d.ts +52 -0
- package/esm/src/cli/cli-commands/coder/generate-boilerplates.d.ts +4 -3
- package/esm/src/cli/cli-commands/coder/ping.d.ts +2 -5
- 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 -1
- package/esm/src/cli/cli-commands/common/coderGitSyncCliOptions.d.ts +34 -0
- package/esm/src/cli/cli-commands/common/harness/$checkHarnessInstallation.d.ts +3 -3
- package/esm/src/cli/cli-commands/common/harness/$ensureHarnessInstallations.d.ts +3 -3
- package/esm/src/cli/cli-commands/common/harness/HarnessInstallationStatus.d.ts +3 -2
- package/esm/src/cli/cli-commands/common/harnessUpdateCliOptions.d.ts +29 -0
- package/esm/src/cli/cli-commands/common/{harness/$askForHarnessInstallationApproval.d.ts → npm/$askForNpmPackageInstallationApproval.d.ts} +2 -2
- 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/buildNpmPackageInstallCommand.d.ts +12 -0
- package/esm/src/cli/cli-commands/common/npm/extractNpmPackageVersionFromOutput.d.ts +12 -0
- package/esm/src/cli/cli-commands/common/npm/isNpmPackageVersionOutdated.d.ts +12 -0
- package/esm/src/cli/cli-commands/common/promptRunnerCliOptions.d.ts +9 -2
- package/esm/src/cli/cli-commands/common/promptbook-cli/$checkPromptbookCliInstallations.d.ts +9 -0
- package/esm/src/cli/cli-commands/common/promptbook-cli/$ensurePromptbookCliInstallations.d.ts +14 -0
- package/esm/src/cli/cli-commands/common/promptbook-cli/$resolvePromptbookCliInstallations.d.ts +12 -0
- package/esm/src/cli/cli-commands/common/promptbook-cli/$updatePromptbookCliInstallation.d.ts +10 -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/common/loadPromptsModule.d.ts +16 -0
- package/esm/src/collection/agent-collection/constructors/agent-collection-in-supabase/AgentCollectionInSupabase.d.ts +15 -0
- package/esm/src/commitments/{COMPONENT/COMPONENT.d.ts → META_FULLNAME/META_FULLNAME.d.ts} +8 -5
- package/esm/src/commitments/META_ID/META_ID.d.ts +32 -0
- package/esm/src/commitments/index.d.ts +4 -12
- package/esm/src/executables/platforms/locateAppOnWindows.d.ts +1 -1
- package/esm/src/llm-providers/agent/Agent.d.ts +1 -1
- package/esm/src/llm-providers/anthropic-claude/AnthropicClaudeExecutionTools.d.ts +1 -1
- package/esm/src/llm-providers/azure-openai/AzureOpenAiExecutionTools.d.ts +1 -1
- package/esm/src/llm-providers/openai/OpenAiAgentKitExecutionTools.d.ts +1 -1
- package/esm/src/llm-providers/openai/OpenAiAgentKitExecutionToolsToolBuilder.d.ts +2 -2
- package/esm/src/llm-providers/openai/OpenAiAssistantExecutionToolsStreamRunner.d.ts +1 -1
- package/esm/src/llm-providers/openai/OpenAiAssistantExecutionToolsToolRunner.d.ts +1 -1
- package/esm/src/llm-providers/openai/OpenAiCompatibleNonChatPromptCaller.d.ts +1 -1
- package/esm/src/llm-providers/openai/OpenAiCompatibleRequestManager.d.ts +1 -1
- package/esm/src/llm-providers/openai/utils/callOpenAiCompatibleChatModel.d.ts +1 -1
- package/esm/src/llm-providers/openai/utils/loadOpenAiAgentsModule.d.ts +203 -0
- package/esm/src/llm-providers/openai/utils/uploadFilesToOpenAi.d.ts +1 -1
- package/esm/src/{commitments/USE_BROWSER → scrapers/_common/utils}/fetchUrlContent.d.ts +2 -3
- 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/resolveAgentMessageTouchedProjectNames.d.ts +19 -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/misc/createLazyModuleLoader.d.ts +14 -0
- package/esm/src/utils/misc/debounce.d.ts +4 -2
- package/esm/src/version.d.ts +1 -1
- package/package.json +2 -5
- package/umd/index.umd.js +1478 -4800
- package/umd/index.umd.js.map +1 -1
- package/umd/scripts/run-agent-messages/messages/buildAgentGoalChatPromptSection.d.ts +26 -0
- package/umd/scripts/run-agent-messages/messages/buildAgentMessagePrompt.d.ts +12 -1
- package/umd/scripts/run-agent-messages/messages/buildAgentProjectsPromptSection.d.ts +2 -14
- package/umd/scripts/run-agent-messages/messages/buildAgentTeamPromptSection.d.ts +12 -0
- package/umd/scripts/run-codex-prompts/common/runGoScript/$spawnLoggedBashScript.d.ts +25 -0
- package/umd/scripts/run-codex-prompts/common/runGoScript/$terminateLoggedBashProcessTree.d.ts +11 -0
- package/umd/scripts/run-codex-prompts/common/runGoScript/scriptExecutionLog.d.ts +11 -0
- package/umd/scripts/run-codex-prompts/common/waitForPause.d.ts +92 -0
- package/umd/scripts/run-codex-prompts/common/waitForSkippableWorldTimeDeadline.d.ts +15 -0
- package/umd/scripts/run-codex-prompts/main/resolvePromptRunner.d.ts +8 -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/types/AvatarVisualDefinition.d.ts +54 -0
- package/umd/src/book-2.0/agent-source/AgentBasicInformation.d.ts +3 -3
- 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/createAgentModelRequirementsWithCommitments.unknown.test.d.ts +1 -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-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/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/utils/$provideServerDomWindow.d.ts +11 -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/cli-commands/agents-server/buildAgentsServer/createAgentsServerRuntimeEnvironment.d.ts +7 -0
- package/umd/src/cli/cli-commands/coder/GitChangesMode.d.ts +28 -0
- package/umd/src/cli/cli-commands/coder/boilerplateCount.d.ts +52 -0
- package/umd/src/cli/cli-commands/coder/boilerplateCount.test.d.ts +1 -0
- package/umd/src/cli/cli-commands/coder/generate-boilerplates.d.ts +4 -3
- package/umd/src/cli/cli-commands/coder/generate-boilerplates.test.d.ts +1 -0
- package/umd/src/cli/cli-commands/coder/ping.d.ts +2 -5
- 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 -1
- package/umd/src/cli/cli-commands/common/coderGitSyncCliOptions.d.ts +34 -0
- package/umd/src/cli/cli-commands/common/coderGitSyncCliOptions.test.d.ts +1 -0
- 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 +3 -3
- package/umd/src/cli/cli-commands/common/harness/HarnessInstallationStatus.d.ts +3 -2
- package/umd/src/cli/cli-commands/common/harnessUpdateCliOptions.d.ts +29 -0
- package/umd/src/cli/cli-commands/common/harnessUpdateCliOptions.test.d.ts +1 -0
- package/umd/src/cli/cli-commands/common/{harness/$askForHarnessInstallationApproval.d.ts → npm/$askForNpmPackageInstallationApproval.d.ts} +2 -2
- 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/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/promptRunnerCliOptions.d.ts +9 -2
- 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 +14 -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/common/loadPromptsModule.d.ts +16 -0
- package/umd/src/collection/agent-collection/constructors/agent-collection-in-supabase/AgentCollectionInSupabase.d.ts +15 -0
- package/umd/src/commitments/{COMPONENT/COMPONENT.d.ts → META_FULLNAME/META_FULLNAME.d.ts} +8 -5
- package/umd/src/commitments/META_ID/META_ID.d.ts +32 -0
- package/umd/src/commitments/index.d.ts +4 -12
- 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/agent/Agent.d.ts +1 -1
- package/umd/src/llm-providers/anthropic-claude/AnthropicClaudeExecutionTools.d.ts +1 -1
- package/umd/src/llm-providers/azure-openai/AzureOpenAiExecutionTools.d.ts +1 -1
- package/umd/src/llm-providers/openai/OpenAiAgentKitExecutionTools.d.ts +1 -1
- package/umd/src/llm-providers/openai/OpenAiAgentKitExecutionToolsToolBuilder.d.ts +2 -2
- package/umd/src/llm-providers/openai/OpenAiAssistantExecutionToolsStreamRunner.d.ts +1 -1
- package/umd/src/llm-providers/openai/OpenAiAssistantExecutionToolsToolRunner.d.ts +1 -1
- package/umd/src/llm-providers/openai/OpenAiCompatibleNonChatPromptCaller.d.ts +1 -1
- package/umd/src/llm-providers/openai/OpenAiCompatibleRequestManager.d.ts +1 -1
- package/umd/src/llm-providers/openai/utils/callOpenAiCompatibleChatModel.d.ts +1 -1
- package/umd/src/llm-providers/openai/utils/loadOpenAiAgentsModule.d.ts +203 -0
- package/umd/src/llm-providers/openai/utils/uploadFilesToOpenAi.d.ts +1 -1
- package/umd/src/{commitments/USE_BROWSER → scrapers/_common/utils}/fetchUrlContent.d.ts +2 -3
- 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/misc/createLazyModuleLoader.d.ts +14 -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/random/$generateBookBoilerplate.test.d.ts +1 -0
- package/umd/src/version.d.ts +1 -1
- 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/esm/src/commitments/MEMORY/MEMORY.d.ts +0 -48
- package/esm/src/commitments/MEMORY/MemoryToolNames.d.ts +0 -11
- package/esm/src/commitments/MEMORY/MemoryToolRuntimeAdapter.d.ts +0 -149
- package/esm/src/commitments/MEMORY/createMemorySystemMessage.d.ts +0 -6
- package/esm/src/commitments/MEMORY/createMemoryToolFunctions.d.ts +0 -8
- package/esm/src/commitments/MEMORY/createMemoryTools.d.ts +0 -14
- package/esm/src/commitments/MEMORY/getMemoryCommitmentDocumentation.d.ts +0 -6
- package/esm/src/commitments/MEMORY/getMemoryToolRuntimeAdapterOrDisabledResult.d.ts +0 -17
- package/esm/src/commitments/MEMORY/getMemoryToolTitles.d.ts +0 -7
- package/esm/src/commitments/MEMORY/parseMemoryToolArgs.d.ts +0 -61
- package/esm/src/commitments/MEMORY/resolveMemoryRuntimeContext.d.ts +0 -8
- package/esm/src/commitments/MEMORY/setMemoryToolRuntimeAdapter.d.ts +0 -13
- package/esm/src/commitments/META/META.d.ts +0 -65
- package/esm/src/commitments/USE/aggregateUseCommitmentSystemMessages.d.ts +0 -32
- package/esm/src/commitments/USE_BROWSER/USE_BROWSER.d.ts +0 -58
- package/esm/src/commitments/USE_BROWSER/fetchUrlContentViaBrowser.d.ts +0 -13
- package/esm/src/commitments/USE_BROWSER/resolveRunBrowserToolForNode.d.ts +0 -10
- package/esm/src/commitments/USE_DEEPSEARCH/USE_DEEPSEARCH.d.ts +0 -47
- package/esm/src/commitments/USE_EMAIL/USE_EMAIL.d.ts +0 -38
- package/esm/src/commitments/USE_EMAIL/parseUseEmailCommitmentContent.d.ts +0 -21
- package/esm/src/commitments/USE_EMAIL/resolveSendEmailToolForNode.d.ts +0 -11
- package/esm/src/commitments/USE_EMAIL/sendEmailViaBrowser.d.ts +0 -13
- package/esm/src/commitments/USE_SEARCH_ENGINE/USE_SEARCH_ENGINE.d.ts +0 -46
- package/esm/src/commitments/USE_SPAWN/USE_SPAWN.d.ts +0 -38
- package/esm/src/commitments/USE_SPAWN/resolveSpawnAgentToolForNode.d.ts +0 -9
- package/esm/src/commitments/USE_SPAWN/spawnAgentViaBrowser.d.ts +0 -12
- package/esm/src/commitments/USE_TIME/USE_TIME.d.ts +0 -43
- package/esm/src/commitments/USE_TIMEOUT/TimeoutToolNames.d.ts +0 -11
- package/esm/src/commitments/USE_TIMEOUT/TimeoutToolRuntimeAdapter.d.ts +0 -212
- package/esm/src/commitments/USE_TIMEOUT/USE_TIMEOUT.d.ts +0 -38
- package/esm/src/commitments/USE_TIMEOUT/createTimeoutSystemMessage.d.ts +0 -6
- package/esm/src/commitments/USE_TIMEOUT/createTimeoutToolFunctions.d.ts +0 -8
- package/esm/src/commitments/USE_TIMEOUT/createTimeoutTools.d.ts +0 -7
- package/esm/src/commitments/USE_TIMEOUT/getTimeoutToolRuntimeAdapterOrDisabledResult.d.ts +0 -17
- package/esm/src/commitments/USE_TIMEOUT/parseTimeoutToolArgs.d.ts +0 -78
- package/esm/src/commitments/USE_TIMEOUT/resolveTimeoutRuntimeContext.d.ts +0 -8
- package/esm/src/commitments/USE_TIMEOUT/setTimeoutToolRuntimeAdapter.d.ts +0 -13
- package/esm/src/commitments/WALLET/WALLET.d.ts +0 -21
- package/esm/src/commitments/WALLET/WalletToolNames.d.ts +0 -12
- package/esm/src/commitments/WALLET/WalletToolRuntimeAdapter.d.ts +0 -163
- package/esm/src/commitments/WALLET/createWalletSystemMessage.d.ts +0 -6
- package/esm/src/commitments/WALLET/createWalletToolFunctions.d.ts +0 -8
- package/esm/src/commitments/WALLET/createWalletTools.d.ts +0 -7
- package/esm/src/commitments/WALLET/getWalletCommitmentDocumentation.d.ts +0 -6
- package/esm/src/commitments/WALLET/getWalletToolRuntimeAdapterOrDisabledResult.d.ts +0 -16
- package/esm/src/commitments/WALLET/getWalletToolTitles.d.ts +0 -7
- package/esm/src/commitments/WALLET/parseWalletToolArgs.d.ts +0 -51
- package/esm/src/commitments/WALLET/resolveWalletRuntimeContext.d.ts +0 -8
- package/esm/src/commitments/WALLET/setWalletToolRuntimeAdapter.d.ts +0 -13
- package/esm/src/commitments/_common/createSerpSearchToolFunction.d.ts +0 -12
- 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/umd/src/commitments/MEMORY/MEMORY.d.ts +0 -48
- package/umd/src/commitments/MEMORY/MemoryToolNames.d.ts +0 -11
- package/umd/src/commitments/MEMORY/MemoryToolRuntimeAdapter.d.ts +0 -149
- package/umd/src/commitments/MEMORY/createMemorySystemMessage.d.ts +0 -6
- package/umd/src/commitments/MEMORY/createMemoryToolFunctions.d.ts +0 -8
- package/umd/src/commitments/MEMORY/createMemoryTools.d.ts +0 -14
- package/umd/src/commitments/MEMORY/getMemoryCommitmentDocumentation.d.ts +0 -6
- package/umd/src/commitments/MEMORY/getMemoryToolRuntimeAdapterOrDisabledResult.d.ts +0 -17
- package/umd/src/commitments/MEMORY/getMemoryToolTitles.d.ts +0 -7
- package/umd/src/commitments/MEMORY/parseMemoryToolArgs.d.ts +0 -61
- package/umd/src/commitments/MEMORY/resolveMemoryRuntimeContext.d.ts +0 -8
- package/umd/src/commitments/MEMORY/setMemoryToolRuntimeAdapter.d.ts +0 -13
- package/umd/src/commitments/META/META.d.ts +0 -65
- package/umd/src/commitments/USE/aggregateUseCommitmentSystemMessages.d.ts +0 -32
- package/umd/src/commitments/USE_BROWSER/USE_BROWSER.d.ts +0 -58
- package/umd/src/commitments/USE_BROWSER/fetchUrlContentViaBrowser.d.ts +0 -13
- package/umd/src/commitments/USE_BROWSER/resolveRunBrowserToolForNode.d.ts +0 -10
- package/umd/src/commitments/USE_DEEPSEARCH/USE_DEEPSEARCH.d.ts +0 -47
- package/umd/src/commitments/USE_EMAIL/USE_EMAIL.d.ts +0 -38
- package/umd/src/commitments/USE_EMAIL/parseUseEmailCommitmentContent.d.ts +0 -21
- package/umd/src/commitments/USE_EMAIL/resolveSendEmailToolForNode.d.ts +0 -11
- package/umd/src/commitments/USE_EMAIL/sendEmailViaBrowser.d.ts +0 -13
- package/umd/src/commitments/USE_SEARCH_ENGINE/USE_SEARCH_ENGINE.d.ts +0 -46
- package/umd/src/commitments/USE_SPAWN/USE_SPAWN.d.ts +0 -38
- package/umd/src/commitments/USE_SPAWN/resolveSpawnAgentToolForNode.d.ts +0 -9
- package/umd/src/commitments/USE_SPAWN/spawnAgentViaBrowser.d.ts +0 -12
- package/umd/src/commitments/USE_TIME/USE_TIME.d.ts +0 -43
- package/umd/src/commitments/USE_TIMEOUT/TimeoutToolNames.d.ts +0 -11
- package/umd/src/commitments/USE_TIMEOUT/TimeoutToolRuntimeAdapter.d.ts +0 -212
- package/umd/src/commitments/USE_TIMEOUT/USE_TIMEOUT.d.ts +0 -38
- package/umd/src/commitments/USE_TIMEOUT/createTimeoutSystemMessage.d.ts +0 -6
- package/umd/src/commitments/USE_TIMEOUT/createTimeoutToolFunctions.d.ts +0 -8
- package/umd/src/commitments/USE_TIMEOUT/createTimeoutTools.d.ts +0 -7
- package/umd/src/commitments/USE_TIMEOUT/getTimeoutToolRuntimeAdapterOrDisabledResult.d.ts +0 -17
- package/umd/src/commitments/USE_TIMEOUT/parseTimeoutToolArgs.d.ts +0 -78
- package/umd/src/commitments/USE_TIMEOUT/resolveTimeoutRuntimeContext.d.ts +0 -8
- package/umd/src/commitments/USE_TIMEOUT/setTimeoutToolRuntimeAdapter.d.ts +0 -13
- package/umd/src/commitments/WALLET/WALLET.d.ts +0 -21
- package/umd/src/commitments/WALLET/WalletToolNames.d.ts +0 -12
- package/umd/src/commitments/WALLET/WalletToolRuntimeAdapter.d.ts +0 -163
- package/umd/src/commitments/WALLET/createWalletSystemMessage.d.ts +0 -6
- package/umd/src/commitments/WALLET/createWalletToolFunctions.d.ts +0 -8
- package/umd/src/commitments/WALLET/createWalletTools.d.ts +0 -7
- package/umd/src/commitments/WALLET/getWalletCommitmentDocumentation.d.ts +0 -6
- package/umd/src/commitments/WALLET/getWalletToolRuntimeAdapterOrDisabledResult.d.ts +0 -16
- package/umd/src/commitments/WALLET/getWalletToolTitles.d.ts +0 -7
- package/umd/src/commitments/WALLET/parseWalletToolArgs.d.ts +0 -51
- package/umd/src/commitments/WALLET/resolveWalletRuntimeContext.d.ts +0 -8
- package/umd/src/commitments/WALLET/setWalletToolRuntimeAdapter.d.ts +0 -13
- package/umd/src/commitments/_common/createSerpSearchToolFunction.d.ts +0 -12
- /package/esm/src/{book-2.0/agent-source/createAgentModelRequirements.useCommitmentAggregation.test.d.ts → avatars/renderAvatarVisualTerminalText.test.d.ts} +0 -0
- /package/esm/src/{cli/cli-commands/common/harness/extractHarnessVersionFromOutput.test.d.ts → book-2.0/agent-source/createAgentModelRequirements.commitmentAggregation.test.d.ts} +0 -0
- /package/esm/src/{cli/cli-commands/common/harness/isHarnessVersionOutdated.test.d.ts → book-2.0/agent-source/createAgentModelRequirementsWithCommitments.unknown.test.d.ts} +0 -0
- /package/esm/src/{commitments/MEMORY/MEMORY.test.d.ts → book-2.0/agent-source/parseAgentSourceWithCommitments.unknown.test.d.ts} +0 -0
- /package/esm/src/{commitments/USE_BROWSER/USE_BROWSER.test.d.ts → book-3.0/AgentPlannedMessagesSidecar.test.d.ts} +0 -0
- /package/esm/src/{commitments/USE_BROWSER/resolveRunBrowserToolForNode.test.d.ts → book-components/BookEditor/createDuplicateFromCommitmentDiagnostics.test.d.ts} +0 -0
- /package/esm/src/{commitments/USE_DEEPSEARCH/USE_DEEPSEARCH.test.d.ts → book-components/BookEditor/createUnknownCommitmentDiagnostics.test.d.ts} +0 -0
- /package/esm/src/{commitments/USE_EMAIL/USE_EMAIL.test.d.ts → book-components/Chat/utils/agentProjectToolCall.test.d.ts} +0 -0
- /package/esm/src/{commitments/USE_EMAIL/parseUseEmailCommitmentContent.test.d.ts → cli/cli-commands/coder/boilerplateCount.test.d.ts} +0 -0
- /package/esm/src/{commitments/USE_SEARCH_ENGINE/USE_SEARCH_ENGINE.test.d.ts → cli/cli-commands/coder/generate-boilerplates.test.d.ts} +0 -0
- /package/esm/src/{commitments/USE_SPAWN/USE_SPAWN.test.d.ts → cli/cli-commands/common/coderGitSyncCliOptions.test.d.ts} +0 -0
- /package/esm/src/{commitments/USE_TIME/USE_TIME.test.d.ts → cli/cli-commands/common/harness/$checkHarnessInstallation.test.d.ts} +0 -0
- /package/esm/src/{commitments/USE_TIMEOUT/USE_TIMEOUT.test.d.ts → cli/cli-commands/common/harnessUpdateCliOptions.test.d.ts} +0 -0
- /package/esm/src/{commitments/WALLET/WALLET.test.d.ts → cli/cli-commands/common/npm/$resolveLatestNpmPackageVersion.test.d.ts} +0 -0
- /package/{umd/src/book-2.0/agent-source/createAgentModelRequirements.useCommitmentAggregation.test.d.ts → esm/src/cli/cli-commands/common/npm/buildNpmPackageInstallCommand.test.d.ts} +0 -0
- /package/{umd/src/cli/cli-commands/common/harness/extractHarnessVersionFromOutput.test.d.ts → esm/src/cli/cli-commands/common/npm/extractNpmPackageVersionFromOutput.test.d.ts} +0 -0
- /package/{umd/src/cli/cli-commands/common/harness/isHarnessVersionOutdated.test.d.ts → esm/src/cli/cli-commands/common/npm/isNpmPackageVersionOutdated.test.d.ts} +0 -0
- /package/{umd/src/commitments/MEMORY/MEMORY.test.d.ts → esm/src/cli/cli-commands/common/promptbook-cli/$checkPromptbookCliInstallations.test.d.ts} +0 -0
- /package/{umd/src/commitments/USE_BROWSER/USE_BROWSER.test.d.ts → esm/src/cli/cli-commands/common/promptbook-cli/$ensurePromptbookCliInstallations.test.d.ts} +0 -0
- /package/{umd/src/commitments/USE_BROWSER/resolveRunBrowserToolForNode.test.d.ts → esm/src/cli/cli-commands/common/promptbook-cli/$resolvePromptbookCliInstallations.test.d.ts} +0 -0
- /package/{umd/src/commitments/USE_DEEPSEARCH/USE_DEEPSEARCH.test.d.ts → esm/src/cli/cli-commands/common/promptbook-cli/$updatePromptbookCliInstallation.test.d.ts} +0 -0
- /package/esm/src/commitments/{META → META_DESCRIPTION}/META_DESCRIPTION.d.ts +0 -0
- /package/{umd/src/commitments/USE_EMAIL/USE_EMAIL.test.d.ts → esm/src/executables/platforms/locateAppOnWindows.test.d.ts} +0 -0
- /package/{umd/src/commitments/USE_EMAIL/parseUseEmailCommitmentContent.test.d.ts → esm/src/utils/agent-message-runtime/resolveAgentMessageTouchedExternalSources.test.d.ts} +0 -0
- /package/{umd/src/commitments/USE_SEARCH_ENGINE/USE_SEARCH_ENGINE.test.d.ts → esm/src/utils/agent-message-runtime/resolveAgentMessageTouchedProjectNames.test.d.ts} +0 -0
- /package/{umd/src/commitments/USE_SPAWN/USE_SPAWN.test.d.ts → esm/src/utils/misc/debounce.test.d.ts} +0 -0
- /package/{umd/src/commitments/USE_TIME/USE_TIME.test.d.ts → esm/src/utils/random/$generateBookBoilerplate.test.d.ts} +0 -0
- /package/umd/src/{commitments/USE_TIMEOUT/USE_TIMEOUT.test.d.ts → avatars/renderAvatarVisualTerminalText.test.d.ts} +0 -0
- /package/umd/src/{commitments/WALLET/WALLET.test.d.ts → book-2.0/agent-source/createAgentModelRequirements.commitmentAggregation.test.d.ts} +0 -0
- /package/umd/src/commitments/{META → META_DESCRIPTION}/META_DESCRIPTION.d.ts +0 -0
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type { AgentPlannedMessageSnapshot } from '../../../src/book-3.0/AgentPlannedMessagesSidecar';
|
|
2
|
+
/**
|
|
3
|
+
* Planned-message sidecar information made visible to one coding-harness prompt.
|
|
4
|
+
*/
|
|
5
|
+
export type AgentPlannedMessagesPromptSidecar = {
|
|
6
|
+
/**
|
|
7
|
+
* Portable path of the sidecar inside the agent folder.
|
|
8
|
+
*/
|
|
9
|
+
readonly relativeSidecarPath: string;
|
|
10
|
+
/**
|
|
11
|
+
* Planned messages that are already waiting to wake the agent.
|
|
12
|
+
*/
|
|
13
|
+
readonly currentPlannedMessages: ReadonlyArray<AgentPlannedMessageSnapshot>;
|
|
14
|
+
};
|
|
15
|
+
/**
|
|
16
|
+
* Builds the planned-message instructions available to an Agents Server-managed coding agent.
|
|
17
|
+
*
|
|
18
|
+
* Planned messages always target the agent's singleton goal chat, regardless of the chat in which the
|
|
19
|
+
* wake-up is planned, and each of them keeps repeating until its schedule is over or it is cancelled.
|
|
20
|
+
* The sidecar file is the only channel that changes them, so an answer that merely claims a follow-up
|
|
21
|
+
* was planned changes nothing — and an answer that changes nothing keeps the current plan running.
|
|
22
|
+
*
|
|
23
|
+
* @param sidecar - Sidecar prepared by the Agents Server for the answered message.
|
|
24
|
+
* @returns Prompt section, or an empty string outside Agents Server-managed runs.
|
|
25
|
+
*/
|
|
26
|
+
export declare function buildAgentGoalChatPromptSection(sidecar: AgentPlannedMessagesPromptSidecar | undefined): string;
|
|
@@ -1,8 +1,19 @@
|
|
|
1
1
|
import { type AgentProjectsPromptSectionOptions } from './buildAgentProjectsPromptSection';
|
|
2
|
+
import { type AgentPlannedMessagesPromptSidecar } from './buildAgentGoalChatPromptSection';
|
|
3
|
+
import { type AgentTeamPromptWorkspace } from './buildAgentTeamPromptSection';
|
|
2
4
|
/**
|
|
3
5
|
* Options adjusting the generated agent message prompt.
|
|
4
6
|
*/
|
|
5
|
-
export type BuildAgentMessagePromptOptions = AgentProjectsPromptSectionOptions
|
|
7
|
+
export type BuildAgentMessagePromptOptions = AgentProjectsPromptSectionOptions & {
|
|
8
|
+
/**
|
|
9
|
+
* Optional local TEAM roster prepared by the Agents Server for this user turn.
|
|
10
|
+
*/
|
|
11
|
+
teamWorkspace?: AgentTeamPromptWorkspace;
|
|
12
|
+
/**
|
|
13
|
+
* Planned-message sidecar prepared by the Agents Server for the agent's singleton goal chat.
|
|
14
|
+
*/
|
|
15
|
+
plannedMessagesSidecar?: AgentPlannedMessagesPromptSidecar;
|
|
16
|
+
};
|
|
6
17
|
/**
|
|
7
18
|
* Builds the prompt sent to the selected coding runner for one queued user-thread book.
|
|
8
19
|
*/
|
|
@@ -1,20 +1,8 @@
|
|
|
1
|
+
import type { AgentServerRuntimePromptApi } from './AgentServerRuntimePromptApi';
|
|
1
2
|
/**
|
|
2
3
|
* Internal runtime API details available to Agents Server-managed local agents.
|
|
3
4
|
*/
|
|
4
|
-
export type AgentProjectRuntimePromptApi =
|
|
5
|
-
/**
|
|
6
|
-
* Permanent id of the agent currently answering the message.
|
|
7
|
-
*/
|
|
8
|
-
readonly agentPermanentId: string;
|
|
9
|
-
/**
|
|
10
|
-
* Environment variable containing the Agents Server origin.
|
|
11
|
-
*/
|
|
12
|
-
readonly serverUrlEnvironmentVariableName: string;
|
|
13
|
-
/**
|
|
14
|
-
* Environment variable containing the internal worker token.
|
|
15
|
-
*/
|
|
16
|
-
readonly tokenEnvironmentVariableName: string;
|
|
17
|
-
};
|
|
5
|
+
export type AgentProjectRuntimePromptApi = AgentServerRuntimePromptApi;
|
|
18
6
|
/**
|
|
19
7
|
* Options of the projects prompt section shared by every coding harness.
|
|
20
8
|
*/
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { type AgentTeamConversationWorkspaceManifest } from '../../../src/book-3.0/AgentTeamConversationWorkspace';
|
|
2
|
+
/**
|
|
3
|
+
* TEAM workspace information made visible to one coding-harness prompt.
|
|
4
|
+
*/
|
|
5
|
+
export type AgentTeamPromptWorkspace = {
|
|
6
|
+
readonly relativeWorkspacePath: string;
|
|
7
|
+
readonly manifest: AgentTeamConversationWorkspaceManifest;
|
|
8
|
+
};
|
|
9
|
+
/**
|
|
10
|
+
* Builds the optional single-run TEAM consultation instructions for a coding harness.
|
|
11
|
+
*/
|
|
12
|
+
export declare function buildAgentTeamPromptSection(workspace: AgentTeamPromptWorkspace | undefined): string;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/// <reference types="node" />
|
|
2
|
+
import { type ChildProcessWithoutNullStreams } from 'child_process';
|
|
3
|
+
/**
|
|
4
|
+
* Input used to start one temporary logged Bash script.
|
|
5
|
+
*
|
|
6
|
+
* @private internal type of `$spawnLoggedBashScript`
|
|
7
|
+
*/
|
|
8
|
+
type SpawnLoggedBashScriptOptions = {
|
|
9
|
+
readonly scriptPath: string;
|
|
10
|
+
readonly logPath?: string;
|
|
11
|
+
/**
|
|
12
|
+
* Process which owns the temporary harness shell. Defaults to the current coder process.
|
|
13
|
+
*/
|
|
14
|
+
readonly parentProcessId?: number;
|
|
15
|
+
};
|
|
16
|
+
/**
|
|
17
|
+
* Starts one temporary Bash script in a process tree owned by the current Node process.
|
|
18
|
+
*
|
|
19
|
+
* The wrapper watches the supplied owning process ID. When that process exits abruptly, the wrapper terminates every
|
|
20
|
+
* nested shell and harness process instead of leaving it orphaned.
|
|
21
|
+
*
|
|
22
|
+
* @private internal utility of the coding prompt runner
|
|
23
|
+
*/
|
|
24
|
+
export declare function $spawnLoggedBashScript(options: SpawnLoggedBashScriptOptions): ChildProcessWithoutNullStreams;
|
|
25
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/// <reference types="node" />
|
|
2
|
+
import { type ChildProcess } from 'child_process';
|
|
3
|
+
/**
|
|
4
|
+
* Stops one active temporary Bash shell together with the harness process tree it owns.
|
|
5
|
+
*
|
|
6
|
+
* Unix sends `SIGTERM` to the wrapper so its shell trap terminates the separately grouped harness job. Windows does
|
|
7
|
+
* not reliably deliver that signal to Bash, so the native `taskkill` command terminates the direct shell tree instead.
|
|
8
|
+
*
|
|
9
|
+
* @private internal utility of the coding prompt runner
|
|
10
|
+
*/
|
|
11
|
+
export declare function $terminateLoggedBashProcessTree(commandProcess: ChildProcess): void;
|
|
@@ -2,6 +2,17 @@
|
|
|
2
2
|
* Environment variable read by the shell wrapper to tee live output into the temporary runtime log file.
|
|
3
3
|
*/
|
|
4
4
|
export declare const PTBK_CODER_LOG_FILE_ENV_NAME = "PTBK_CODER_LOG_FILE";
|
|
5
|
+
/**
|
|
6
|
+
* Log line which separates the raw script input from the raw script output of one execution section.
|
|
7
|
+
*
|
|
8
|
+
* Readers of a runtime log split on this marker to look only at what the harness really produced,
|
|
9
|
+
* without the generated script and the prompt it embeds.
|
|
10
|
+
*/
|
|
11
|
+
export declare const SCRIPT_EXECUTION_LOG_RAW_OUTPUT_MARKER = "--- raw output ---";
|
|
12
|
+
/**
|
|
13
|
+
* Environment variable that identifies the Node process responsible for a temporary harness shell.
|
|
14
|
+
*/
|
|
15
|
+
export declare const PTBK_CODER_PARENT_PROCESS_ID_ENV_NAME = "PTBK_CODER_PARENT_PROCESS_ID";
|
|
5
16
|
/**
|
|
6
17
|
* Shapes one bash invocation that optionally mirrors live script output into a temporary log file.
|
|
7
18
|
*/
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Pause lifecycle of `ptbk coder run`.
|
|
3
|
+
*/
|
|
4
|
+
export type CoderRunPauseState = 'RUNNING' | 'PAUSING' | 'PAUSED';
|
|
5
|
+
/**
|
|
6
|
+
* Result of toggling the pause hotkey state.
|
|
7
|
+
*/
|
|
8
|
+
export type CoderRunPauseToggleResult = 'REQUESTED_PAUSE' | 'CANCELLED_PAUSE' | 'RESUMED';
|
|
9
|
+
/**
|
|
10
|
+
* Result of requesting a timed wait skip.
|
|
11
|
+
*/
|
|
12
|
+
export type CoderRunSkipCurrentWaitResult = 'REQUESTED_SKIP' | 'NO_ACTIVE_WAIT';
|
|
13
|
+
/**
|
|
14
|
+
* Result of toggling the dynamic end-after-current-prompt state.
|
|
15
|
+
*/
|
|
16
|
+
export type CoderRunEndAfterCurrentPromptToggleResult = 'REQUESTED_END' | 'CANCELLED_END';
|
|
17
|
+
/**
|
|
18
|
+
* Token that identifies one active timed wait which can be skipped by the user.
|
|
19
|
+
*/
|
|
20
|
+
export type CoderRunSkippableWaitToken = symbol;
|
|
21
|
+
/**
|
|
22
|
+
* Applies the same three-state toggle used by the `P` hotkey.
|
|
23
|
+
*/
|
|
24
|
+
export declare function togglePauseState(): CoderRunPauseToggleResult;
|
|
25
|
+
/**
|
|
26
|
+
* Applies the two-state toggle used by the `X` hotkey.
|
|
27
|
+
*/
|
|
28
|
+
export declare function toggleEndAfterCurrentPromptState(): CoderRunEndAfterCurrentPromptToggleResult;
|
|
29
|
+
/**
|
|
30
|
+
* Returns whether the dynamic end-after-current-prompt control is active.
|
|
31
|
+
*/
|
|
32
|
+
export declare function getEndAfterCurrentPromptState(): boolean;
|
|
33
|
+
/**
|
|
34
|
+
* Starts one timed wait which can be skipped by the `S` hotkey.
|
|
35
|
+
*/
|
|
36
|
+
export declare function beginSkippableWait(): CoderRunSkippableWaitToken;
|
|
37
|
+
/**
|
|
38
|
+
* Finishes one timed wait and clears any skip request that belonged to it.
|
|
39
|
+
*/
|
|
40
|
+
export declare function finishSkippableWait(waitToken: CoderRunSkippableWaitToken): void;
|
|
41
|
+
/**
|
|
42
|
+
* Requests that the currently active timed wait ends immediately.
|
|
43
|
+
*/
|
|
44
|
+
export declare function requestSkipCurrentWait(): CoderRunSkipCurrentWaitResult;
|
|
45
|
+
/**
|
|
46
|
+
* Returns whether one timed wait should end early.
|
|
47
|
+
*/
|
|
48
|
+
export declare function shouldSkipCurrentWait(waitToken: CoderRunSkippableWaitToken): boolean;
|
|
49
|
+
/**
|
|
50
|
+
* Waits for either a timeout or an `S` hotkey skip request.
|
|
51
|
+
*/
|
|
52
|
+
export declare function waitForSkippableMilliseconds(waitToken: CoderRunSkippableWaitToken, durationMs: number): Promise<void>;
|
|
53
|
+
/**
|
|
54
|
+
* Restores all shared terminal controls to their default state.
|
|
55
|
+
*/
|
|
56
|
+
export declare function resetCoderRunControls(): void;
|
|
57
|
+
/**
|
|
58
|
+
* If the execution is paused, it will wait until it is resumed.
|
|
59
|
+
*
|
|
60
|
+
* @param options.silent - When `true`, suppresses console output (used when the terminal UI handles display).
|
|
61
|
+
* @param options.onPaused - Callback invoked when entering the PAUSED state.
|
|
62
|
+
* @param options.onResumed - Callback invoked when leaving the PAUSED state.
|
|
63
|
+
*/
|
|
64
|
+
export declare function checkPause(options?: {
|
|
65
|
+
silent?: boolean;
|
|
66
|
+
onPaused?: () => void;
|
|
67
|
+
onResumed?: () => void;
|
|
68
|
+
}): Promise<void>;
|
|
69
|
+
/**
|
|
70
|
+
* Returns the current pause state for external consumers such as the terminal UI.
|
|
71
|
+
*/
|
|
72
|
+
export declare function getPauseState(): CoderRunPauseState;
|
|
73
|
+
/**
|
|
74
|
+
* Returns the label of the next checkpoint where pausing will take effect.
|
|
75
|
+
*/
|
|
76
|
+
export declare function getPauseTargetLabel(): string;
|
|
77
|
+
/**
|
|
78
|
+
* Updates the label of the next pause checkpoint.
|
|
79
|
+
*/
|
|
80
|
+
export declare function announcePauseTargetLabel(nextPauseTargetLabel: string): void;
|
|
81
|
+
/**
|
|
82
|
+
* Restores the default generic pause target label.
|
|
83
|
+
*/
|
|
84
|
+
export declare function resetPauseTargetLabel(): void;
|
|
85
|
+
/**
|
|
86
|
+
* Requests a pause from an external controller (e.g. the Ink UI).
|
|
87
|
+
*/
|
|
88
|
+
export declare function requestPause(): void;
|
|
89
|
+
/**
|
|
90
|
+
* Resumes execution from an external controller after a pause.
|
|
91
|
+
*/
|
|
92
|
+
export declare function requestResume(): void;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { type WorldTimeDeadlineTick } from './waitUntilWorldTimeDeadline';
|
|
2
|
+
/**
|
|
3
|
+
* Waits until one wall-clock deadline has passed, or until the user skips the wait with the `S` control.
|
|
4
|
+
*
|
|
5
|
+
* This is the single way `ptbk coder` waits for a deadline the user is allowed to cut short, so every
|
|
6
|
+
* wait which shows the `S Skip current waiting` control really reacts to it: the pacing waits between
|
|
7
|
+
* prompts, the cool-down after an error, the harness session-limit waits and the server keep-alive poll.
|
|
8
|
+
*
|
|
9
|
+
* @private internal utility of `ptbk coder` wait handling
|
|
10
|
+
*/
|
|
11
|
+
export declare function waitForSkippableWorldTimeDeadline(options: {
|
|
12
|
+
readonly deadlineTimeMs: number;
|
|
13
|
+
readonly pollIntervalMs: number;
|
|
14
|
+
readonly onTick?: WorldTimeDeadlineTick;
|
|
15
|
+
}): Promise<void>;
|
|
@@ -7,6 +7,13 @@ type RunnerMetadata = {
|
|
|
7
7
|
runnerName: string;
|
|
8
8
|
modelName?: string;
|
|
9
9
|
};
|
|
10
|
+
/**
|
|
11
|
+
* Subset of `RunOptions` which decides which prompt runner is created and how it is labeled.
|
|
12
|
+
*
|
|
13
|
+
* Commands that only need one configured harness — such as `ptbk coder ping` — pass just these
|
|
14
|
+
* fields instead of assembling a complete `RunOptions` for a run they never start.
|
|
15
|
+
*/
|
|
16
|
+
export type PromptRunnerSelectionOptions = Pick<RunOptions, 'agentName' | 'model' | 'thinkingLevel' | 'allowCredits' | 'isVerbose' | 'isMachineReadableProgressEnabled'>;
|
|
10
17
|
/**
|
|
11
18
|
* Resolved runner setup used by `runCodexPrompts`.
|
|
12
19
|
*/
|
|
@@ -20,5 +27,5 @@ type PromptRunnerResolution = {
|
|
|
20
27
|
*
|
|
21
28
|
* @private function of runCodexPrompts
|
|
22
29
|
*/
|
|
23
|
-
export declare function resolvePromptRunner(options:
|
|
30
|
+
export declare function resolvePromptRunner(options: PromptRunnerSelectionOptions): PromptRunnerResolution;
|
|
24
31
|
export {};
|
|
@@ -70,8 +70,10 @@ import type { CitationLabelResolver } from '../book-components/Chat/types/Citati
|
|
|
70
70
|
import type { MessageButton } from '../book-components/Chat/utils/parseMessageButtons';
|
|
71
71
|
import { parseMessageButtons } from '../book-components/Chat/utils/parseMessageButtons';
|
|
72
72
|
import type { MarkdownInlineReference } from '../book-components/Chat/utils/renderMarkdown';
|
|
73
|
+
import type { MarkdownInlineReferenceIcon } from '../book-components/Chat/utils/renderMarkdown';
|
|
73
74
|
import type { MarkdownInlineReferenceMenuStatus } from '../book-components/Chat/utils/renderMarkdown';
|
|
74
75
|
import type { MarkdownInlineReferenceMenuOption } from '../book-components/Chat/utils/renderMarkdown';
|
|
76
|
+
import type { MarkdownInlineReferenceMenuAction } from '../book-components/Chat/utils/renderMarkdown';
|
|
75
77
|
import type { MarkdownInlineReferenceMenu } from '../book-components/Chat/utils/renderMarkdown';
|
|
76
78
|
import { ArrowIcon } from '../book-components/icons/ArrowIcon';
|
|
77
79
|
import { MicIcon } from '../book-components/icons/MicIcon';
|
|
@@ -159,8 +161,10 @@ export type { CitationLabelResolver };
|
|
|
159
161
|
export type { MessageButton };
|
|
160
162
|
export { parseMessageButtons };
|
|
161
163
|
export type { MarkdownInlineReference };
|
|
164
|
+
export type { MarkdownInlineReferenceIcon };
|
|
162
165
|
export type { MarkdownInlineReferenceMenuStatus };
|
|
163
166
|
export type { MarkdownInlineReferenceMenuOption };
|
|
167
|
+
export type { MarkdownInlineReferenceMenuAction };
|
|
164
168
|
export type { MarkdownInlineReferenceMenu };
|
|
165
169
|
export { ArrowIcon };
|
|
166
170
|
export { MicIcon };
|
|
@@ -62,8 +62,10 @@ import type { CitationLabelResolver } from '../book-components/Chat/types/Citati
|
|
|
62
62
|
import type { ParsedCitation } from '../book-components/Chat/utils/parseCitationsFromContent';
|
|
63
63
|
import type { MessageButton } from '../book-components/Chat/utils/parseMessageButtons';
|
|
64
64
|
import type { MarkdownInlineReference } from '../book-components/Chat/utils/renderMarkdown';
|
|
65
|
+
import type { MarkdownInlineReferenceIcon } from '../book-components/Chat/utils/renderMarkdown';
|
|
65
66
|
import type { MarkdownInlineReferenceMenuStatus } from '../book-components/Chat/utils/renderMarkdown';
|
|
66
67
|
import type { MarkdownInlineReferenceMenuOption } from '../book-components/Chat/utils/renderMarkdown';
|
|
68
|
+
import type { MarkdownInlineReferenceMenuAction } from '../book-components/Chat/utils/renderMarkdown';
|
|
67
69
|
import type { MarkdownInlineReferenceMenu } from '../book-components/Chat/utils/renderMarkdown';
|
|
68
70
|
import type { TeamToolResult } from '../book-components/Chat/utils/toolCallParsing/TeamToolResult';
|
|
69
71
|
import type { QrCodeOptions } from '../book-components/Qr/useQrCode';
|
|
@@ -511,8 +513,10 @@ export type { CitationLabelResolver };
|
|
|
511
513
|
export type { ParsedCitation };
|
|
512
514
|
export type { MessageButton };
|
|
513
515
|
export type { MarkdownInlineReference };
|
|
516
|
+
export type { MarkdownInlineReferenceIcon };
|
|
514
517
|
export type { MarkdownInlineReferenceMenuStatus };
|
|
515
518
|
export type { MarkdownInlineReferenceMenuOption };
|
|
519
|
+
export type { MarkdownInlineReferenceMenuAction };
|
|
516
520
|
export type { MarkdownInlineReferenceMenu };
|
|
517
521
|
export type { TeamToolResult };
|
|
518
522
|
export type { QrCodeOptions };
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import type { AsciiArtColorDepth } from '../utils/ascii-art/convertImageDataToAsciiArt';
|
|
2
|
+
import type { ResolvedAvatarRenderDefinition } from './renderAvatarVisual';
|
|
3
|
+
import type { AvatarDefinition } from './types/AvatarDefinition';
|
|
4
|
+
import type { AvatarSurfaceStyle, AvatarVisualId, AvatarVisualTerminalTextGrid } from './types/AvatarVisualDefinition';
|
|
5
|
+
/**
|
|
6
|
+
* Options shared by the terminal-text avatar renderers.
|
|
7
|
+
*
|
|
8
|
+
* @private within the repository
|
|
9
|
+
*/
|
|
10
|
+
export type RenderAvatarVisualTerminalTextOptions = {
|
|
11
|
+
/**
|
|
12
|
+
* Stable visual identity of the rendered agent avatar.
|
|
13
|
+
*/
|
|
14
|
+
readonly avatarDefinition: AvatarDefinition;
|
|
15
|
+
/**
|
|
16
|
+
* Built-in avatar visual to render, the same one used on the website.
|
|
17
|
+
*/
|
|
18
|
+
readonly visualId: AvatarVisualId;
|
|
19
|
+
/**
|
|
20
|
+
* Surface used to derive the avatar palette.
|
|
21
|
+
*
|
|
22
|
+
* @default 'framed'
|
|
23
|
+
*/
|
|
24
|
+
readonly surface?: AvatarSurfaceStyle;
|
|
25
|
+
/**
|
|
26
|
+
* Output width in terminal character cells.
|
|
27
|
+
*/
|
|
28
|
+
readonly columns: number;
|
|
29
|
+
/**
|
|
30
|
+
* Output height in terminal character cells.
|
|
31
|
+
*/
|
|
32
|
+
readonly rows: number;
|
|
33
|
+
/**
|
|
34
|
+
* Animation timestamp for animated visuals.
|
|
35
|
+
*/
|
|
36
|
+
readonly timeMs: number;
|
|
37
|
+
/**
|
|
38
|
+
* Optional stable render data reused across frames.
|
|
39
|
+
*/
|
|
40
|
+
readonly resolvedAvatarRenderDefinition?: ResolvedAvatarRenderDefinition;
|
|
41
|
+
};
|
|
42
|
+
/**
|
|
43
|
+
* Options for `renderAvatarVisualTerminalTextLines`.
|
|
44
|
+
*
|
|
45
|
+
* @private within the repository
|
|
46
|
+
*/
|
|
47
|
+
export type RenderAvatarVisualTerminalTextLinesOptions = RenderAvatarVisualTerminalTextOptions & {
|
|
48
|
+
/**
|
|
49
|
+
* Color depth of the emitted ANSI escape codes.
|
|
50
|
+
*
|
|
51
|
+
* @default 'TRUE_COLOR'
|
|
52
|
+
*/
|
|
53
|
+
readonly colorDepth?: AsciiArtColorDepth;
|
|
54
|
+
};
|
|
55
|
+
/**
|
|
56
|
+
* Renders one frame of a character-based avatar visual straight into terminal character cells.
|
|
57
|
+
*
|
|
58
|
+
* Visuals which are themselves made of characters, for example `AsciiOctopus`, lose their identity
|
|
59
|
+
* when they are rasterized onto a canvas and converted back into half-block ASCII art - every glyph
|
|
60
|
+
* is averaged away into a colored blob. Such visuals expose `renderTerminalText`, which paints the
|
|
61
|
+
* terminal grid directly and is used instead of the raster pipeline.
|
|
62
|
+
*
|
|
63
|
+
* The square avatar is centered inside the requested grid the same way `renderAvatarVisualAsciiArt`
|
|
64
|
+
* centers the avatar canvas inside a wider terminal frame.
|
|
65
|
+
*
|
|
66
|
+
* @param options Avatar identity, visual selection, and output grid size.
|
|
67
|
+
* @returns Grid of `rows` rows of `columns` cells, or `null` when the visual has no terminal renderer.
|
|
68
|
+
*
|
|
69
|
+
* @private within the repository
|
|
70
|
+
*/
|
|
71
|
+
export declare function renderAvatarVisualTerminalTextGrid(options: RenderAvatarVisualTerminalTextOptions): AvatarVisualTerminalTextGrid | null;
|
|
72
|
+
/**
|
|
73
|
+
* Renders one frame of a character-based avatar visual into ANSI-colored terminal lines.
|
|
74
|
+
*
|
|
75
|
+
* @param options Avatar identity, visual selection, output grid size, and ANSI color depth.
|
|
76
|
+
* @returns One ANSI-colored string per output row, or `null` when the visual has no terminal renderer.
|
|
77
|
+
*
|
|
78
|
+
* @private within the repository
|
|
79
|
+
*/
|
|
80
|
+
export declare function renderAvatarVisualTerminalTextLines(options: RenderAvatarVisualTerminalTextLinesOptions): ReadonlyArray<string> | null;
|
|
@@ -72,6 +72,52 @@ export type AvatarVisualRenderContext = {
|
|
|
72
72
|
* @private shared contract for the avatar rendering system
|
|
73
73
|
*/
|
|
74
74
|
export type AvatarVisual = (context: AvatarVisualRenderContext) => void;
|
|
75
|
+
/**
|
|
76
|
+
* One painted character cell of a terminal-text avatar frame.
|
|
77
|
+
*
|
|
78
|
+
* @private shared contract for the avatar rendering system
|
|
79
|
+
*/
|
|
80
|
+
export type AvatarVisualTerminalTextCell = {
|
|
81
|
+
/**
|
|
82
|
+
* Single character painted in the cell.
|
|
83
|
+
*/
|
|
84
|
+
readonly character: string;
|
|
85
|
+
/**
|
|
86
|
+
* Color of the character as a CSS color string, optionally with an alpha channel.
|
|
87
|
+
*/
|
|
88
|
+
readonly color: string_color;
|
|
89
|
+
};
|
|
90
|
+
/**
|
|
91
|
+
* One rendered terminal-text avatar frame as a grid of character cells.
|
|
92
|
+
*
|
|
93
|
+
* Rows are ordered top to bottom, cells left to right, and `null` leaves the terminal background visible.
|
|
94
|
+
*
|
|
95
|
+
* @private shared contract for the avatar rendering system
|
|
96
|
+
*/
|
|
97
|
+
export type AvatarVisualTerminalTextGrid = ReadonlyArray<ReadonlyArray<AvatarVisualTerminalTextCell | null>>;
|
|
98
|
+
/**
|
|
99
|
+
* Rendering context forwarded to a terminal-text avatar visual.
|
|
100
|
+
*
|
|
101
|
+
* Unlike `AvatarVisualRenderContext` this carries no canvas, because the visual paints
|
|
102
|
+
* character cells of a fixed terminal grid instead of pixels.
|
|
103
|
+
*
|
|
104
|
+
* @private shared contract for the avatar rendering system
|
|
105
|
+
*/
|
|
106
|
+
export type AvatarVisualTerminalTextRenderContext = {
|
|
107
|
+
readonly columns: number;
|
|
108
|
+
readonly rows: number;
|
|
109
|
+
readonly timeMs: number;
|
|
110
|
+
readonly avatarDefinition: AvatarDefinition;
|
|
111
|
+
readonly palette: AvatarPalette;
|
|
112
|
+
readonly createRandom: (salt: string) => () => number;
|
|
113
|
+
readonly interaction: AvatarInteractionState;
|
|
114
|
+
};
|
|
115
|
+
/**
|
|
116
|
+
* Signature of one terminal-text avatar visual renderer.
|
|
117
|
+
*
|
|
118
|
+
* @private shared contract for the avatar rendering system
|
|
119
|
+
*/
|
|
120
|
+
export type AvatarVisualTerminalText = (context: AvatarVisualTerminalTextRenderContext) => AvatarVisualTerminalTextGrid;
|
|
75
121
|
/**
|
|
76
122
|
* Metadata and renderer for one built-in avatar visual.
|
|
77
123
|
*
|
|
@@ -84,6 +130,14 @@ export type AvatarVisualDefinition = {
|
|
|
84
130
|
readonly isAnimated: boolean;
|
|
85
131
|
readonly supportsPointerTracking?: boolean;
|
|
86
132
|
readonly render: AvatarVisual;
|
|
133
|
+
/**
|
|
134
|
+
* Optional native terminal renderer of visuals which are themselves made of characters.
|
|
135
|
+
*
|
|
136
|
+
* Character-based visuals lose their identity when they are rasterized onto a canvas and
|
|
137
|
+
* converted back into half-block ASCII art, so they paint the terminal character grid directly.
|
|
138
|
+
* Visuals without this renderer are rasterized through `renderAvatarVisualAsciiArt` instead.
|
|
139
|
+
*/
|
|
140
|
+
readonly renderTerminalText?: AvatarVisualTerminalText;
|
|
87
141
|
};
|
|
88
142
|
/**
|
|
89
143
|
* Props of the shared `<Avatar/>` component.
|
|
@@ -31,13 +31,13 @@ export type BookParameter = {
|
|
|
31
31
|
};
|
|
32
32
|
/**
|
|
33
33
|
* Capability of the agent
|
|
34
|
-
* This is parsed from commitments like USE
|
|
34
|
+
* This is parsed from commitments like USE CALENDAR, USE PROJECT, KNOWLEDGE, etc.
|
|
35
35
|
*/
|
|
36
36
|
export type AgentCapability = {
|
|
37
37
|
/**
|
|
38
38
|
* The type of the capability
|
|
39
39
|
*/
|
|
40
|
-
type: '
|
|
40
|
+
type: 'knowledge' | 'user-location' | 'inheritance' | 'import' | 'image-generator' | 'team' | 'popup' | 'privacy' | 'project' | 'calendar';
|
|
41
41
|
/**
|
|
42
42
|
* The label to display for this capability
|
|
43
43
|
*/
|
|
@@ -122,7 +122,7 @@ export type AgentBasicInformation = {
|
|
|
122
122
|
parameters: Array<BookParameter>;
|
|
123
123
|
/**
|
|
124
124
|
* Capabilities of the agent
|
|
125
|
-
* This is parsed from commitments like USE
|
|
125
|
+
* This is parsed from commitments like USE CALENDAR, USE PROJECT, KNOWLEDGE, etc.
|
|
126
126
|
*/
|
|
127
127
|
capabilities: Array<AgentCapability>;
|
|
128
128
|
/**
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { ParsedCommitment } from '../../commitments/_base/ParsedCommitment';
|
|
2
2
|
import type { string_agent_name } from '../../types/string_agent_name';
|
|
3
|
+
import type { ParsedUnknownCommitment } from './ParsedUnknownCommitment';
|
|
3
4
|
/**
|
|
4
5
|
* Result of parsing agent source for commitments
|
|
5
6
|
*
|
|
@@ -18,6 +19,10 @@ export type AgentSourceParseResult = {
|
|
|
18
19
|
* All parsed commitments
|
|
19
20
|
*/
|
|
20
21
|
commitments: ParsedCommitment[];
|
|
22
|
+
/**
|
|
23
|
+
* Uppercase commitment blocks whose types are not registered by Promptbook.
|
|
24
|
+
*/
|
|
25
|
+
unknownCommitments: ParsedUnknownCommitment[];
|
|
21
26
|
/**
|
|
22
27
|
* Lines that are not commitments (for system message)
|
|
23
28
|
*/
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* An uppercase Book commitment block whose keyword is not registered by Promptbook.
|
|
3
|
+
*
|
|
4
|
+
* Unknown commitments are retained as system-message context instead of being applied
|
|
5
|
+
* as executable commitments.
|
|
6
|
+
*
|
|
7
|
+
* @private internal type of `parseAgentSourceWithCommitments`
|
|
8
|
+
*/
|
|
9
|
+
export type ParsedUnknownCommitment = {
|
|
10
|
+
/**
|
|
11
|
+
* Uppercase unknown commitment type, for example `FOO` or `BAR BZZ`.
|
|
12
|
+
*/
|
|
13
|
+
readonly type: string;
|
|
14
|
+
/**
|
|
15
|
+
* Original first line, retained for precise editor diagnostics.
|
|
16
|
+
*/
|
|
17
|
+
readonly originalLine: string;
|
|
18
|
+
/**
|
|
19
|
+
* Line number in the agent source (1-based).
|
|
20
|
+
*/
|
|
21
|
+
readonly lineNumber: number;
|
|
22
|
+
/**
|
|
23
|
+
* Complete unknown commitment block, including its keyword and continuation lines.
|
|
24
|
+
*/
|
|
25
|
+
readonly source: string;
|
|
26
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Creates the regex used to recognize the uppercase commitment type at the beginning of a Book line.
|
|
3
|
+
*
|
|
4
|
+
* A fresh regular expression keeps Monaco tokenizer state isolated from parser calls.
|
|
5
|
+
*
|
|
6
|
+
* @returns Regular expression matching one Book commitment-like line.
|
|
7
|
+
*
|
|
8
|
+
* @private internal utility of Book parsing and `<BookEditor/>`
|
|
9
|
+
*/
|
|
10
|
+
export declare function createBookCommitmentLineTypeRegex(): RegExp;
|
|
11
|
+
/**
|
|
12
|
+
* Extracts the uppercase commitment type from a Book line, including types not registered by Promptbook.
|
|
13
|
+
*
|
|
14
|
+
* @param line - One raw Book source line.
|
|
15
|
+
* @returns Matched commitment type or `null` when the line does not begin with commitment syntax.
|
|
16
|
+
*
|
|
17
|
+
* @private internal utility of Book parsing and `<BookEditor/>`
|
|
18
|
+
*/
|
|
19
|
+
export declare function getBookCommitmentLineType(line: string): string | null;
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import type { Usage } from '../execution/Usage';
|
|
2
|
+
import type { AgentMessageProjectChange } from '../utils/agent-message-runtime/AgentMessageProjectChange';
|
|
3
|
+
import type { AgentMessageTouchedExternalSource } from '../utils/agent-message-runtime/AgentMessageTouchedExternalSource';
|
|
2
4
|
import type { CodexLoginMethod } from './codexLoginMethod';
|
|
3
5
|
/**
|
|
4
6
|
* File suffix appended to one answered message book to store its run report sidecar.
|
|
@@ -9,6 +11,23 @@ import type { CodexLoginMethod } from './codexLoginMethod';
|
|
|
9
11
|
* @private internal constant of the agent folder convention
|
|
10
12
|
*/
|
|
11
13
|
export declare const AGENT_MESSAGE_RUN_REPORT_FILE_SUFFIX = ".report.json";
|
|
14
|
+
/**
|
|
15
|
+
* Exact wall-clock interval during which one harness processed an agent message.
|
|
16
|
+
*
|
|
17
|
+
* Note: [🚉] This is fully serializable as JSON
|
|
18
|
+
*
|
|
19
|
+
* @private internal type of the agent folder convention
|
|
20
|
+
*/
|
|
21
|
+
export type AgentMessageRunExecutionTiming = {
|
|
22
|
+
/**
|
|
23
|
+
* ISO 8601 timestamp captured immediately before the harness begins the message.
|
|
24
|
+
*/
|
|
25
|
+
readonly startedAt: string;
|
|
26
|
+
/**
|
|
27
|
+
* ISO 8601 timestamp captured when the harness finishes the message.
|
|
28
|
+
*/
|
|
29
|
+
readonly finishedAt: string;
|
|
30
|
+
};
|
|
12
31
|
/**
|
|
13
32
|
* Report describing how one queued agent message was answered by a CLI harness runner.
|
|
14
33
|
*
|
|
@@ -44,6 +63,33 @@ export type AgentMessageRunReport = {
|
|
|
44
63
|
* Usage statistics of the run (price, token counts, duration).
|
|
45
64
|
*/
|
|
46
65
|
readonly usage: Usage;
|
|
66
|
+
/**
|
|
67
|
+
* Measured wall-clock timing of the actual harness execution, excluding time spent waiting in the queue.
|
|
68
|
+
*/
|
|
69
|
+
readonly executionTiming?: AgentMessageRunExecutionTiming;
|
|
70
|
+
/**
|
|
71
|
+
* Directory names of the agent projects the harness worked with while answering the message.
|
|
72
|
+
*
|
|
73
|
+
* Reported by the runner from its live runtime log, which is deleted once the message is
|
|
74
|
+
* answered, so this is the only trace of the projects one answer viewed or edited.
|
|
75
|
+
*/
|
|
76
|
+
readonly touchedProjectNames?: ReadonlyArray<string>;
|
|
77
|
+
/**
|
|
78
|
+
* Sources outside the agent — integrations, websites and web searches — the harness reached
|
|
79
|
+
* while answering the message.
|
|
80
|
+
*
|
|
81
|
+
* Reported from the same live runtime log as `touchedProjectNames`, so this is the only trace
|
|
82
|
+
* of what one answer touched beyond the agent itself.
|
|
83
|
+
*/
|
|
84
|
+
readonly touchedExternalSources?: ReadonlyArray<AgentMessageTouchedExternalSource>;
|
|
85
|
+
/**
|
|
86
|
+
* Changes the harness made to the agent projects while answering the message.
|
|
87
|
+
*
|
|
88
|
+
* Every agent project is a git repository and the runner commits each answer into it, so one
|
|
89
|
+
* entry describes exactly what one message did to one project — including the diff of the
|
|
90
|
+
* commit it created.
|
|
91
|
+
*/
|
|
92
|
+
readonly projectChanges?: ReadonlyArray<AgentMessageProjectChange>;
|
|
47
93
|
};
|
|
48
94
|
/**
|
|
49
95
|
* Builds the run-report sidecar path for one message book path.
|