@promptbook/node 0.113.0-8 → 0.114.0-0
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 +4 -3
- package/esm/book/scripts/import-markdown/increaseHeadings.d.ts +8 -0
- package/esm/index.es.js +1975 -1267
- package/esm/index.es.js.map +1 -1
- package/esm/scripts/run-agent-messages/messages/buildAgentMessagePrompt.d.ts +6 -1
- package/esm/scripts/run-agent-messages/messages/buildAgentProjectsPromptSection.d.ts +39 -0
- package/esm/scripts/run-codex-prompts/common/parseDuration.d.ts +19 -0
- package/esm/scripts/run-codex-prompts/common/waitUntilWorldTimeDeadline.d.ts +27 -0
- package/esm/scripts/run-codex-prompts/runners/claude-code/ClaudeCodeRunner.d.ts +4 -0
- package/esm/scripts/run-codex-prompts/runners/claude-code/ClaudeCodeSessionResurrection.d.ts +37 -0
- package/esm/scripts/run-codex-prompts/runners/claude-code/parseClaudeCodeOutputEvents.d.ts +47 -0
- package/esm/scripts/run-codex-prompts/runners/openai-codex/parseCodexLoginMethodFromOutput.d.ts +10 -0
- package/esm/src/_packages/components.index.d.ts +8 -0
- package/esm/src/_packages/core.index.d.ts +4 -0
- package/esm/src/_packages/types.index.d.ts +14 -2
- package/esm/src/avatars/renderAvatarVisualAsciiArt.d.ts +24 -1
- package/esm/src/avatars/visuals/octopus3dAvatarVisualShared.d.ts +1 -1
- package/esm/src/book-2.0/agent-source/AgentBasicInformation.d.ts +7 -0
- package/esm/src/book-2.0/agent-source/parseAgentSource/ParsedAgentProfile.d.ts +1 -1
- package/esm/src/book-2.0/book-language-documentation/BookLanguageDocumentationExample.d.ts +5 -13
- package/esm/src/book-2.0/book-language-documentation/BookLanguageManualDictionary.d.ts +195 -0
- package/esm/src/book-2.0/book-language-documentation/bookLanguageDocumentationExamples.d.ts +2 -1
- package/esm/src/book-2.0/book-language-documentation/createStandaloneBookLanguageMarkdown.d.ts +43 -1
- package/esm/src/book-2.0/book-language-documentation/czechBookLanguageManualDictionary.d.ts +10 -0
- package/esm/src/book-2.0/book-language-documentation/englishBookLanguageManualDictionary.d.ts +10 -0
- package/esm/src/book-2.0/book-language-documentation/getBookLanguageManualCommitmentGroups.d.ts +33 -0
- package/esm/src/book-2.0/book-language-documentation/getBookLanguageManualDictionary.d.ts +15 -0
- package/esm/src/book-2.0/book-language-documentation/getSafeCodeBlock.d.ts +10 -0
- package/esm/src/book-2.0/book-language-documentation/renderCommitmentCatalogSection.d.ts +30 -0
- package/esm/src/book-2.0/book-language-documentation/renderGroupedCommitmentDocumentationMarkdown.d.ts +2 -1
- package/esm/src/book-2.0/book-language-documentation/toStableAnchorId.d.ts +12 -0
- package/esm/src/book-3.0/AgentMessageRunReport.d.ts +78 -0
- package/esm/src/book-3.0/agentFolderPaths.d.ts +9 -0
- package/esm/src/book-3.0/codexLoginMethod.d.ts +38 -0
- package/esm/src/book-components/BookEditor/BookEditorMonacoUploadPanel.d.ts +1 -1
- package/esm/src/book-components/BookEditor/BookEditorSyntaxTokenStyles.d.ts +39 -0
- package/esm/src/book-components/BookEditor/createBookSourceHighlightStyles.d.ts +12 -0
- package/esm/src/book-components/BookEditor/highlightBookSourceToHtml.d.ts +20 -0
- package/esm/src/book-components/BookEditor/useBookEditorMonacoUploads/bookEditorMonacoUploadTypes.d.ts +120 -0
- package/esm/src/book-components/BookEditor/useBookEditorMonacoUploads/clearScheduledTimer.d.ts +6 -0
- package/esm/src/book-components/BookEditor/useBookEditorMonacoUploads/enqueueFilesForUpload.d.ts +26 -0
- package/esm/src/book-components/BookEditor/useBookEditorMonacoUploads/useBookEditorMonacoUploadEditorSync.d.ts +23 -0
- package/esm/src/book-components/BookEditor/useBookEditorMonacoUploads/useBookEditorMonacoUploadItemsState.d.ts +21 -0
- package/esm/src/book-components/BookEditor/useBookEditorMonacoUploads/useBookEditorMonacoUploadProgressQueue.d.ts +12 -0
- package/esm/src/book-components/BookEditor/useBookEditorMonacoUploads/useBookEditorMonacoUploadQueue.d.ts +27 -0
- package/esm/src/book-components/BookEditor/useBookEditorMonacoUploads/useCompletedUploadsAutoClear.d.ts +12 -0
- package/esm/src/book-components/BookEditor/useBookEditorMonacoUploads.d.ts +5 -58
- package/esm/src/book-components/Chat/Chat/ChatCitationModal.d.ts +5 -0
- package/esm/src/book-components/Chat/Chat/ChatCitationModal.test.d.ts +2 -0
- package/esm/src/book-components/Chat/Chat/ChatFeedbackStar.d.ts +37 -0
- package/esm/src/book-components/Chat/Chat/ChatImageAttachmentModal.d.ts +25 -0
- package/esm/src/book-components/Chat/Chat/ChatInputArea.d.ts +3 -0
- package/esm/src/book-components/Chat/Chat/ChatMessageAttachments.d.ts +27 -0
- package/esm/src/book-components/Chat/Chat/ChatMessageItem.d.ts +5 -1
- package/esm/src/book-components/Chat/Chat/ChatMessageList.d.ts +5 -0
- package/esm/src/book-components/Chat/Chat/ChatMessageRichContent.d.ts +5 -0
- package/esm/src/book-components/Chat/Chat/ChatProps.d.ts +21 -0
- package/esm/src/book-components/Chat/Chat/ChatRatingModal.test.d.ts +2 -0
- package/esm/src/book-components/Chat/Chat/CitationIframePreview.d.ts +25 -2
- package/esm/src/book-components/Chat/Chat/pagePreview/LiveBrowserPreview.d.ts +39 -0
- package/esm/src/book-components/Chat/Chat/pagePreview/LiveBrowserPreview.test.d.ts +2 -0
- package/esm/src/book-components/Chat/Chat/pagePreview/LiveBrowserPreviewToolbar.d.ts +71 -0
- package/esm/src/book-components/Chat/Chat/pagePreview/PagePreviewInputEvent.d.ts +72 -0
- package/esm/src/book-components/Chat/Chat/pagePreview/PagePreviewInputQueue.d.ts +64 -0
- package/esm/src/book-components/Chat/Chat/pagePreview/PagePreviewInputQueue.test.d.ts +1 -0
- package/esm/src/book-components/Chat/Chat/pagePreview/PagePreviewSessionState.d.ts +14 -0
- package/esm/src/book-components/Chat/Chat/pagePreview/PagePreviewViewport.d.ts +37 -0
- package/esm/src/book-components/Chat/Chat/pagePreview/createPagePreviewSessionId.d.ts +20 -0
- package/esm/src/book-components/Chat/Chat/pagePreview/normalizePagePreviewInputEvent.d.ts +13 -0
- package/esm/src/book-components/Chat/Chat/pagePreview/normalizePagePreviewInputEvent.test.d.ts +1 -0
- package/esm/src/book-components/Chat/Chat/resolveChatRatingMessageKey.d.ts +8 -0
- package/esm/src/book-components/Chat/Chat/useChatInputAreaComposer.d.ts +12 -0
- package/esm/src/book-components/Chat/Chat/useChatInputAreaComposer.draftMessage.test.d.ts +2 -0
- package/esm/src/book-components/Chat/MarkdownContent/MarkdownContent.d.ts +2 -0
- package/esm/src/book-components/Chat/SourceChip/SourceChip.test.d.ts +2 -0
- package/esm/src/book-components/Chat/hooks/useResolvedCitationLabel.test.d.ts +2 -0
- package/esm/src/book-components/Chat/utils/isVisibleChatToolCall.d.ts +1 -1
- package/esm/src/book-components/Chat/utils/parseMessageButtons.d.ts +16 -2
- package/esm/src/book-components/Chat/utils/renderMarkdown.d.ts +78 -0
- package/esm/src/book-components/Chat/utils/resolveCitationSourceDisplay.d.ts +149 -0
- package/esm/src/book-components/Chat/utils/thinkingMessageVariants.d.ts +9 -0
- package/esm/src/cli/cli-commands/agent-folder/agentProjectPaths.d.ts +2 -2
- package/esm/src/cli/cli-commands/agents-server/buildAgentsServer/AGENTS_SERVER_BUILD_CACHE_FILENAME.d.ts +6 -0
- package/esm/src/cli/cli-commands/agents-server/buildAgentsServer/AGENTS_SERVER_BUILD_CACHE_VERSION.d.ts +6 -0
- package/esm/src/cli/cli-commands/agents-server/buildAgentsServer/AGENTS_SERVER_NEXT_BUILD_ID_FILENAME.d.ts +6 -0
- package/esm/src/cli/cli-commands/agents-server/buildAgentsServer/AgentsServerBuildCache.d.ts +10 -0
- package/esm/src/cli/cli-commands/agents-server/buildAgentsServer/AgentsServerBuildCacheOptions.d.ts +10 -0
- package/esm/src/cli/cli-commands/agents-server/buildAgentsServer/NODE_MODULES_DIRECTORY_NAME.d.ts +6 -0
- package/esm/src/cli/cli-commands/agents-server/buildAgentsServer/PreparedAgentsServerRuntime.d.ts +18 -0
- package/esm/src/cli/cli-commands/agents-server/buildAgentsServer/createAgentsServerBuildSourceFingerprint.d.ts +6 -0
- package/esm/src/cli/cli-commands/agents-server/buildAgentsServer/createAgentsServerRuntimeEnvironment.d.ts +28 -0
- package/esm/src/cli/cli-commands/agents-server/buildAgentsServer/ensureAgentsServerBuild.d.ts +19 -0
- package/esm/src/cli/cli-commands/agents-server/buildAgentsServer/getAgentsServerBuildInputRelativePaths.d.ts +11 -0
- package/esm/src/cli/cli-commands/agents-server/buildAgentsServer/isAgentsServerAppPath.d.ts +6 -0
- package/esm/src/cli/cli-commands/agents-server/buildAgentsServer/isAgentsServerAppPathMaterialized.d.ts +6 -0
- package/esm/src/cli/cli-commands/agents-server/buildAgentsServer/isAgentsServerBuildCacheCurrent.d.ts +7 -0
- package/esm/src/cli/cli-commands/agents-server/buildAgentsServer/isAgentsServerBuildInputTestFile.d.ts +6 -0
- package/esm/src/cli/cli-commands/agents-server/buildAgentsServer/isExcludedAgentsServerBuildInputDirectoryName.d.ts +6 -0
- package/esm/src/cli/cli-commands/agents-server/buildAgentsServer/isExcludedAgentsServerBuildInputPath.d.ts +6 -0
- package/esm/src/cli/cli-commands/agents-server/buildAgentsServer/isExcludedAgentsServerRuntimeSourcePath.d.ts +6 -0
- package/esm/src/cli/cli-commands/agents-server/buildAgentsServer/isFile.d.ts +6 -0
- package/esm/src/cli/cli-commands/agents-server/buildAgentsServer/isPathInsideNodeModules.d.ts +6 -0
- package/esm/src/cli/cli-commands/agents-server/buildAgentsServer/normalizeAgentsServerBuildInputPath.d.ts +6 -0
- package/esm/src/cli/cli-commands/agents-server/buildAgentsServer/prepareAgentsServerRuntime.d.ts +9 -0
- package/esm/src/cli/cli-commands/agents-server/buildAgentsServer/readAgentsServerBuildCache.d.ts +8 -0
- package/esm/src/cli/cli-commands/agents-server/buildAgentsServer/resolveAgentsServerAppPath.d.ts +6 -0
- package/esm/src/cli/cli-commands/agents-server/buildAgentsServer/resolveAgentsServerBuildAppPath.d.ts +9 -0
- package/esm/src/cli/cli-commands/agents-server/buildAgentsServer/resolveAgentsServerBuildOutputPath.d.ts +7 -0
- package/esm/src/cli/cli-commands/agents-server/buildAgentsServer/resolveNextCliPath.d.ts +6 -0
- package/esm/src/cli/cli-commands/agents-server/buildAgentsServer/resolveNodeModulesPath.d.ts +6 -0
- package/esm/src/cli/cli-commands/agents-server/buildAgentsServer/runNextBuild.d.ts +12 -0
- package/esm/src/cli/cli-commands/agents-server/buildAgentsServer/shouldCopyAgentsServerRuntimePath.d.ts +6 -0
- package/esm/src/cli/cli-commands/agents-server/buildAgentsServer/synchronizeMaterializedAgentsServerRuntime.d.ts +11 -0
- package/esm/src/cli/cli-commands/agents-server/buildAgentsServer/writeAgentsServerBuildCache.d.ts +7 -0
- package/esm/src/cli/cli-commands/agents-server/buildAgentsServer.d.ts +8 -109
- package/esm/src/cli/cli-commands/agents-server/ensureAgentsServerEnvFile.d.ts +1 -1
- package/esm/src/cli/cli-commands/agents-server/ensureAgentsServerGitignoreFile.d.ts +1 -1
- package/esm/src/cli/cli-commands/agents-server/startAgentsServer/AgentsServerChildEnvironment.d.ts +17 -0
- package/esm/src/cli/cli-commands/agents-server/startAgentsServer/AgentsServerChildEnvironment.test.d.ts +1 -0
- package/esm/src/cli/cli-commands/agents-server/startAgentsServer/AgentsServerLogStreams.d.ts +30 -0
- package/esm/src/cli/cli-commands/agents-server/startAgentsServer/AgentsServerRuntimePaths.d.ts +19 -0
- package/esm/src/cli/cli-commands/agents-server/startAgentsServer/AgentsServerSupervisorState.d.ts +37 -0
- package/esm/src/cli/cli-commands/agents-server/startAgentsServer/LocalAgentRunnerLimits.d.ts +9 -0
- package/esm/src/cli/cli-commands/agents-server/startAgentsServer/PreparedAgentsServerLaunch.d.ts +13 -0
- package/esm/src/cli/cli-commands/agents-server/startAgentsServer/StartAgentsServerOptions.d.ts +24 -0
- package/esm/src/cli/cli-commands/agents-server/startAgentsServer/createInternalRouteErrorMessage.d.ts +6 -0
- package/esm/src/cli/cli-commands/agents-server/startAgentsServer/createLocalAgentRunOptions.d.ts +9 -0
- package/esm/src/cli/cli-commands/agents-server/startAgentsServer/forwardChildOutput.d.ts +13 -0
- package/esm/src/cli/cli-commands/agents-server/startAgentsServer/loadAgentsServerProjectEnvironment.d.ts +6 -0
- package/esm/src/cli/cli-commands/agents-server/startAgentsServer/prepareAgentsServerLaunch.d.ts +18 -0
- package/esm/src/cli/cli-commands/agents-server/startAgentsServer/readInternalRouteErrorDetails.d.ts +6 -0
- package/esm/src/cli/cli-commands/agents-server/startAgentsServer/resolveAgentsServerChildHostname.d.ts +7 -0
- package/esm/src/cli/cli-commands/agents-server/startAgentsServer/startNextServer.d.ts +20 -0
- package/esm/src/cli/cli-commands/agents-server/startAgentsServer/startUserChatJobWorkerPump.d.ts +15 -0
- package/esm/src/cli/cli-commands/agents-server/startAgentsServer/stopChildProcess.d.ts +8 -0
- package/esm/src/cli/cli-commands/agents-server/startAgentsServer/waitForLocalAgentRunnerLimits.d.ts +16 -0
- package/esm/src/cli/cli-commands/agents-server/startAgentsServer.d.ts +3 -30
- package/esm/src/cli/cli-commands/coder/add.d.ts +36 -0
- package/esm/src/cli/cli-commands/coder/add.test.d.ts +1 -0
- package/esm/src/cli/cli-commands/coder/boilerplateTemplates.d.ts +24 -0
- package/esm/src/cli/cli-commands/coder.d.ts +1 -0
- package/esm/src/cli/cli-commands/common/createNonNegativeIntegerOptionParser.d.ts +10 -0
- package/esm/src/cli/cli-commands/common/harness/$applyHarnessInstallationStatus.d.ts +9 -0
- package/esm/src/cli/cli-commands/common/harness/$askForHarnessInstallationApproval.d.ts +9 -0
- package/esm/src/cli/cli-commands/common/harness/$checkHarnessInstallation.d.ts +10 -0
- package/esm/src/cli/cli-commands/common/harness/$ensureHarnessInstallations.d.ts +13 -0
- package/esm/src/cli/cli-commands/common/harness/$installHarness.d.ts +13 -0
- package/esm/src/cli/cli-commands/common/harness/$resolveInstalledHarnessVersion.d.ts +10 -0
- package/esm/src/cli/cli-commands/common/harness/$resolveLatestHarnessVersion.d.ts +10 -0
- package/esm/src/cli/cli-commands/common/harness/HarnessDefinition.d.ts +40 -0
- package/esm/src/cli/cli-commands/common/harness/HarnessDefinition.test.d.ts +1 -0
- package/esm/src/cli/cli-commands/common/harness/HarnessInstallationStatus.d.ts +35 -0
- package/esm/src/cli/cli-commands/common/harness/buildHarnessInstallCommand.d.ts +10 -0
- package/esm/src/cli/cli-commands/common/harness/extractHarnessVersionFromOutput.d.ts +11 -0
- package/esm/src/cli/cli-commands/common/harness/extractHarnessVersionFromOutput.test.d.ts +1 -0
- package/esm/src/cli/cli-commands/common/harness/formatHarnessInstallationWarning.d.ts +7 -0
- package/esm/src/cli/cli-commands/common/harness/isHarnessVersionOutdated.d.ts +9 -0
- package/esm/src/cli/cli-commands/common/harness/isHarnessVersionOutdated.test.d.ts +1 -0
- package/esm/src/cli/cli-commands/common/promptRunnerCliOptions.d.ts +1 -1
- package/esm/src/collection/agent-collection/CreateAgentInput.d.ts +1 -1
- package/esm/src/collection/agent-collection/constructors/agent-collection-in-supabase/buildAgentNameOrPermanentIdFilter.d.ts +18 -0
- package/esm/src/collection/agent-collection/constructors/agent-collection-in-supabase/buildAgentNameOrPermanentIdFilter.test.d.ts +1 -0
- package/esm/src/collection/agent-collection/constructors/agent-collection-in-supabase/prepareAgentSourceForPersistence.d.ts +1 -1
- package/esm/src/commitments/META/META.d.ts +4 -2
- package/esm/src/commitments/META_AVATAR/META_AVATAR.d.ts +9 -4
- package/esm/src/commitments/META_THINKING_MESSAGE/META_THINKING_MESSAGE.d.ts +26 -0
- package/esm/src/commitments/index.d.ts +2 -1
- package/esm/src/conversion/validation/validatePipeline/createPipelineValidationContext.d.ts +16 -0
- package/esm/src/conversion/validation/validatePipeline/validatePipelineCollectionsStructure.d.ts +7 -0
- package/esm/src/conversion/validation/validatePipeline/validatePipelineDependencyResolution.d.ts +7 -0
- package/esm/src/conversion/validation/validatePipeline/validatePipelineMetadata.d.ts +7 -0
- package/esm/src/conversion/validation/validatePipeline/validatePipelineParameters.d.ts +7 -0
- package/esm/src/conversion/validation/validatePipeline/validatePipelineTasks.d.ts +7 -0
- package/esm/src/execution/utils/formatUsagePrice.d.ts +12 -0
- package/esm/src/execution/utils/formatUsagePrice.test.d.ts +1 -0
- package/esm/src/llm-providers/_common/register/$registeredLlmToolsMessage/RegisteredLlmToolsMessageContext.d.ts +46 -0
- package/esm/src/llm-providers/_common/register/$registeredLlmToolsMessage/USED_ENV_FILENAME.d.ts +11 -0
- package/esm/src/llm-providers/_common/register/$registeredLlmToolsMessage/createRegisteredLlmToolConfigurationStatusMessage.d.ts +7 -0
- package/esm/src/llm-providers/_common/register/$registeredLlmToolsMessage/createRegisteredLlmToolEntryKey.d.ts +7 -0
- package/esm/src/llm-providers/_common/register/$registeredLlmToolsMessage/createRegisteredLlmToolInstallationStatusMessage.d.ts +7 -0
- package/esm/src/llm-providers/_common/register/$registeredLlmToolsMessage/createRegisteredLlmToolStatus.d.ts +14 -0
- package/esm/src/llm-providers/_common/register/$registeredLlmToolsMessage/createRegisteredLlmToolsMessageContext.d.ts +7 -0
- package/esm/src/llm-providers/_common/register/$registeredLlmToolsMessage/getAvailableRegisteredLlmToolsEnvironmentVariables.d.ts +7 -0
- package/esm/src/llm-providers/_common/register/$registeredLlmToolsMessage/getRegisteredLlmToolRegisters.d.ts +7 -0
- package/esm/src/llm-providers/_common/register/$registeredLlmToolsMessage/hasRegisteredLlmToolEntry.d.ts +7 -0
- package/esm/src/llm-providers/_common/register/$registeredLlmToolsMessage/listRegisteredLlmToolEntries.d.ts +9 -0
- package/esm/src/llm-providers/_common/register/$registeredLlmToolsMessage/listRegisteredLlmToolStatuses.d.ts +7 -0
- package/esm/src/llm-providers/_common/register/$registeredLlmToolsMessage/renderAvailableRegisteredLlmTools.d.ts +7 -0
- package/esm/src/llm-providers/_common/register/$registeredLlmToolsMessage/renderNoRegisteredLlmToolsMessage.d.ts +7 -0
- package/esm/src/llm-providers/_common/register/$registeredLlmToolsMessage/renderRegisteredLlmToolsMessage.d.ts +8 -0
- package/esm/src/llm-providers/_common/register/$registeredLlmToolsMessage/renderRelevantRegisteredLlmToolsEnvironmentVariables.d.ts +7 -0
- package/esm/src/utils/agent-message-runtime/agentMessageRuntimePaths.d.ts +24 -0
- package/esm/src/utils/agent-message-runtime/resolveAgentMessageRuntimeActivity.d.ts +16 -0
- package/esm/src/utils/agent-message-runtime/resolveAgentMessageRuntimeActivity.test.d.ts +1 -0
- package/esm/src/utils/agents/resolveAgentAvatarImageUrl.d.ts +2 -2
- package/esm/src/utils/agents/terminalAgentAvatarVisual.d.ts +104 -0
- package/esm/src/utils/agents/terminalAgentAvatarVisual.test.d.ts +1 -0
- package/esm/src/utils/color/Color.d.ts +1 -1
- package/esm/src/utils/html/escapeHtml.d.ts +9 -0
- package/esm/src/utils/markdown/shiftMarkdownHeadingLevels.d.ts +15 -0
- package/esm/src/version.d.ts +1 -1
- package/package.json +2 -2
- package/umd/book/scripts/import-markdown/increaseHeadings.d.ts +8 -0
- package/umd/index.umd.js +1979 -1271
- package/umd/index.umd.js.map +1 -1
- package/umd/scripts/run-agent-messages/messages/buildAgentMessagePrompt.d.ts +6 -1
- package/umd/scripts/run-agent-messages/messages/buildAgentProjectsPromptSection.d.ts +39 -0
- package/umd/scripts/run-codex-prompts/common/parseDuration.d.ts +19 -0
- package/umd/scripts/run-codex-prompts/common/waitUntilWorldTimeDeadline.d.ts +27 -0
- package/umd/scripts/run-codex-prompts/runners/claude-code/ClaudeCodeRunner.d.ts +4 -0
- package/umd/scripts/run-codex-prompts/runners/claude-code/ClaudeCodeSessionResurrection.d.ts +37 -0
- package/umd/scripts/run-codex-prompts/runners/claude-code/parseClaudeCodeOutputEvents.d.ts +47 -0
- package/umd/scripts/run-codex-prompts/runners/openai-codex/parseCodexLoginMethodFromOutput.d.ts +10 -0
- package/umd/src/_packages/components.index.d.ts +8 -0
- package/umd/src/_packages/core.index.d.ts +4 -0
- package/umd/src/_packages/types.index.d.ts +14 -2
- package/umd/src/avatars/renderAvatarVisualAsciiArt.d.ts +24 -1
- package/umd/src/avatars/visuals/octopus3dAvatarVisualShared.d.ts +1 -1
- package/umd/src/book-2.0/agent-source/AgentBasicInformation.d.ts +7 -0
- package/umd/src/book-2.0/agent-source/parseAgentSource/ParsedAgentProfile.d.ts +1 -1
- package/umd/src/book-2.0/book-language-documentation/BookLanguageDocumentationExample.d.ts +5 -13
- package/umd/src/book-2.0/book-language-documentation/BookLanguageManualDictionary.d.ts +195 -0
- package/umd/src/book-2.0/book-language-documentation/bookLanguageDocumentationExamples.d.ts +2 -1
- package/umd/src/book-2.0/book-language-documentation/createStandaloneBookLanguageMarkdown.d.ts +43 -1
- package/umd/src/book-2.0/book-language-documentation/createStandaloneBookLanguageMarkdown.test.d.ts +1 -0
- package/umd/src/book-2.0/book-language-documentation/czechBookLanguageManualDictionary.d.ts +10 -0
- package/umd/src/book-2.0/book-language-documentation/englishBookLanguageManualDictionary.d.ts +10 -0
- package/umd/src/book-2.0/book-language-documentation/getBookLanguageManualCommitmentGroups.d.ts +33 -0
- package/umd/src/book-2.0/book-language-documentation/getBookLanguageManualDictionary.d.ts +15 -0
- package/umd/src/book-2.0/book-language-documentation/getSafeCodeBlock.d.ts +10 -0
- package/umd/src/book-2.0/book-language-documentation/renderCommitmentCatalogSection.d.ts +30 -0
- package/umd/src/book-2.0/book-language-documentation/renderGroupedCommitmentDocumentationMarkdown.d.ts +2 -1
- package/umd/src/book-2.0/book-language-documentation/toStableAnchorId.d.ts +12 -0
- package/umd/src/book-3.0/AgentMessageRunReport.d.ts +78 -0
- package/umd/src/book-3.0/AgentMessageRunReport.test.d.ts +1 -0
- package/umd/src/book-3.0/agentFolderPaths.d.ts +9 -0
- package/umd/src/book-3.0/codexLoginMethod.d.ts +38 -0
- package/umd/src/book-components/BookEditor/BookEditorMonacoUploadPanel.d.ts +1 -1
- package/umd/src/book-components/BookEditor/BookEditorSyntaxTokenStyles.d.ts +39 -0
- package/umd/src/book-components/BookEditor/createBookSourceHighlightStyles.d.ts +12 -0
- package/umd/src/book-components/BookEditor/highlightBookSourceToHtml.d.ts +20 -0
- package/umd/src/book-components/BookEditor/useBookEditorMonacoUploads/bookEditorMonacoUploadTypes.d.ts +120 -0
- package/umd/src/book-components/BookEditor/useBookEditorMonacoUploads/clearScheduledTimer.d.ts +6 -0
- package/umd/src/book-components/BookEditor/useBookEditorMonacoUploads/enqueueFilesForUpload.d.ts +26 -0
- package/umd/src/book-components/BookEditor/useBookEditorMonacoUploads/useBookEditorMonacoUploadEditorSync.d.ts +23 -0
- package/umd/src/book-components/BookEditor/useBookEditorMonacoUploads/useBookEditorMonacoUploadItemsState.d.ts +21 -0
- package/umd/src/book-components/BookEditor/useBookEditorMonacoUploads/useBookEditorMonacoUploadProgressQueue.d.ts +12 -0
- package/umd/src/book-components/BookEditor/useBookEditorMonacoUploads/useBookEditorMonacoUploadQueue.d.ts +27 -0
- package/umd/src/book-components/BookEditor/useBookEditorMonacoUploads/useCompletedUploadsAutoClear.d.ts +12 -0
- package/umd/src/book-components/BookEditor/useBookEditorMonacoUploads.d.ts +5 -58
- package/umd/src/book-components/Chat/Chat/ChatCitationModal.d.ts +5 -0
- package/umd/src/book-components/Chat/Chat/ChatCitationModal.test.d.ts +2 -0
- package/umd/src/book-components/Chat/Chat/ChatFeedbackStar.d.ts +37 -0
- package/umd/src/book-components/Chat/Chat/ChatImageAttachmentModal.d.ts +25 -0
- package/umd/src/book-components/Chat/Chat/ChatInputArea.d.ts +3 -0
- package/umd/src/book-components/Chat/Chat/ChatMessageAttachments.d.ts +27 -0
- package/umd/src/book-components/Chat/Chat/ChatMessageItem.d.ts +5 -1
- package/umd/src/book-components/Chat/Chat/ChatMessageList.d.ts +5 -0
- package/umd/src/book-components/Chat/Chat/ChatMessageRichContent.d.ts +5 -0
- package/umd/src/book-components/Chat/Chat/ChatProps.d.ts +21 -0
- package/umd/src/book-components/Chat/Chat/ChatRatingModal.test.d.ts +2 -0
- package/umd/src/book-components/Chat/Chat/CitationIframePreview.d.ts +25 -2
- package/umd/src/book-components/Chat/Chat/pagePreview/LiveBrowserPreview.d.ts +39 -0
- package/umd/src/book-components/Chat/Chat/pagePreview/LiveBrowserPreview.test.d.ts +2 -0
- package/umd/src/book-components/Chat/Chat/pagePreview/LiveBrowserPreviewToolbar.d.ts +71 -0
- package/umd/src/book-components/Chat/Chat/pagePreview/PagePreviewInputEvent.d.ts +72 -0
- package/umd/src/book-components/Chat/Chat/pagePreview/PagePreviewInputQueue.d.ts +64 -0
- package/umd/src/book-components/Chat/Chat/pagePreview/PagePreviewInputQueue.test.d.ts +1 -0
- package/umd/src/book-components/Chat/Chat/pagePreview/PagePreviewSessionState.d.ts +14 -0
- package/umd/src/book-components/Chat/Chat/pagePreview/PagePreviewViewport.d.ts +37 -0
- package/umd/src/book-components/Chat/Chat/pagePreview/createPagePreviewSessionId.d.ts +20 -0
- package/umd/src/book-components/Chat/Chat/pagePreview/normalizePagePreviewInputEvent.d.ts +13 -0
- package/umd/src/book-components/Chat/Chat/pagePreview/normalizePagePreviewInputEvent.test.d.ts +1 -0
- package/umd/src/book-components/Chat/Chat/resolveChatRatingMessageKey.d.ts +8 -0
- package/umd/src/book-components/Chat/Chat/useChatInputAreaComposer.d.ts +12 -0
- package/umd/src/book-components/Chat/Chat/useChatInputAreaComposer.draftMessage.test.d.ts +2 -0
- package/umd/src/book-components/Chat/MarkdownContent/MarkdownContent.d.ts +2 -0
- package/umd/src/book-components/Chat/SourceChip/SourceChip.test.d.ts +2 -0
- package/umd/src/book-components/Chat/hooks/useResolvedCitationLabel.test.d.ts +2 -0
- package/umd/src/book-components/Chat/utils/isVisibleChatToolCall.d.ts +1 -1
- package/umd/src/book-components/Chat/utils/parseMessageButtons.d.ts +16 -2
- package/umd/src/book-components/Chat/utils/renderMarkdown.d.ts +78 -0
- package/umd/src/book-components/Chat/utils/resolveCitationSourceDisplay.d.ts +149 -0
- package/umd/src/book-components/Chat/utils/thinkingMessageVariants.d.ts +9 -0
- package/umd/src/cli/cli-commands/agent-folder/agentProjectPaths.d.ts +2 -2
- package/umd/src/cli/cli-commands/agents-server/buildAgentsServer/AGENTS_SERVER_BUILD_CACHE_FILENAME.d.ts +6 -0
- package/umd/src/cli/cli-commands/agents-server/buildAgentsServer/AGENTS_SERVER_BUILD_CACHE_VERSION.d.ts +6 -0
- package/umd/src/cli/cli-commands/agents-server/buildAgentsServer/AGENTS_SERVER_NEXT_BUILD_ID_FILENAME.d.ts +6 -0
- package/umd/src/cli/cli-commands/agents-server/buildAgentsServer/AgentsServerBuildCache.d.ts +10 -0
- package/umd/src/cli/cli-commands/agents-server/buildAgentsServer/AgentsServerBuildCacheOptions.d.ts +10 -0
- package/umd/src/cli/cli-commands/agents-server/buildAgentsServer/NODE_MODULES_DIRECTORY_NAME.d.ts +6 -0
- package/umd/src/cli/cli-commands/agents-server/buildAgentsServer/PreparedAgentsServerRuntime.d.ts +18 -0
- package/umd/src/cli/cli-commands/agents-server/buildAgentsServer/createAgentsServerBuildSourceFingerprint.d.ts +6 -0
- package/umd/src/cli/cli-commands/agents-server/buildAgentsServer/createAgentsServerRuntimeEnvironment.d.ts +28 -0
- package/umd/src/cli/cli-commands/agents-server/buildAgentsServer/ensureAgentsServerBuild.d.ts +19 -0
- package/umd/src/cli/cli-commands/agents-server/buildAgentsServer/getAgentsServerBuildInputRelativePaths.d.ts +11 -0
- package/umd/src/cli/cli-commands/agents-server/buildAgentsServer/isAgentsServerAppPath.d.ts +6 -0
- package/umd/src/cli/cli-commands/agents-server/buildAgentsServer/isAgentsServerAppPathMaterialized.d.ts +6 -0
- package/umd/src/cli/cli-commands/agents-server/buildAgentsServer/isAgentsServerBuildCacheCurrent.d.ts +7 -0
- package/umd/src/cli/cli-commands/agents-server/buildAgentsServer/isAgentsServerBuildInputTestFile.d.ts +6 -0
- package/umd/src/cli/cli-commands/agents-server/buildAgentsServer/isExcludedAgentsServerBuildInputDirectoryName.d.ts +6 -0
- package/umd/src/cli/cli-commands/agents-server/buildAgentsServer/isExcludedAgentsServerBuildInputPath.d.ts +6 -0
- package/umd/src/cli/cli-commands/agents-server/buildAgentsServer/isExcludedAgentsServerRuntimeSourcePath.d.ts +6 -0
- package/umd/src/cli/cli-commands/agents-server/buildAgentsServer/isFile.d.ts +6 -0
- package/umd/src/cli/cli-commands/agents-server/buildAgentsServer/isPathInsideNodeModules.d.ts +6 -0
- package/umd/src/cli/cli-commands/agents-server/buildAgentsServer/normalizeAgentsServerBuildInputPath.d.ts +6 -0
- package/umd/src/cli/cli-commands/agents-server/buildAgentsServer/prepareAgentsServerRuntime.d.ts +9 -0
- package/umd/src/cli/cli-commands/agents-server/buildAgentsServer/readAgentsServerBuildCache.d.ts +8 -0
- package/umd/src/cli/cli-commands/agents-server/buildAgentsServer/resolveAgentsServerAppPath.d.ts +6 -0
- package/umd/src/cli/cli-commands/agents-server/buildAgentsServer/resolveAgentsServerBuildAppPath.d.ts +9 -0
- package/umd/src/cli/cli-commands/agents-server/buildAgentsServer/resolveAgentsServerBuildOutputPath.d.ts +7 -0
- package/umd/src/cli/cli-commands/agents-server/buildAgentsServer/resolveNextCliPath.d.ts +6 -0
- package/umd/src/cli/cli-commands/agents-server/buildAgentsServer/resolveNodeModulesPath.d.ts +6 -0
- package/umd/src/cli/cli-commands/agents-server/buildAgentsServer/runNextBuild.d.ts +12 -0
- package/umd/src/cli/cli-commands/agents-server/buildAgentsServer/shouldCopyAgentsServerRuntimePath.d.ts +6 -0
- package/umd/src/cli/cli-commands/agents-server/buildAgentsServer/synchronizeMaterializedAgentsServerRuntime.d.ts +11 -0
- package/umd/src/cli/cli-commands/agents-server/buildAgentsServer/writeAgentsServerBuildCache.d.ts +7 -0
- package/umd/src/cli/cli-commands/agents-server/buildAgentsServer.d.ts +8 -109
- package/umd/src/cli/cli-commands/agents-server/ensureAgentsServerEnvFile.d.ts +1 -1
- package/umd/src/cli/cli-commands/agents-server/ensureAgentsServerGitignoreFile.d.ts +1 -1
- package/umd/src/cli/cli-commands/agents-server/startAgentsServer/AgentsServerChildEnvironment.d.ts +17 -0
- package/umd/src/cli/cli-commands/agents-server/startAgentsServer/AgentsServerChildEnvironment.test.d.ts +1 -0
- package/umd/src/cli/cli-commands/agents-server/startAgentsServer/AgentsServerLogStreams.d.ts +30 -0
- package/umd/src/cli/cli-commands/agents-server/startAgentsServer/AgentsServerRuntimePaths.d.ts +19 -0
- package/umd/src/cli/cli-commands/agents-server/startAgentsServer/AgentsServerSupervisorState.d.ts +37 -0
- package/umd/src/cli/cli-commands/agents-server/startAgentsServer/LocalAgentRunnerLimits.d.ts +9 -0
- package/umd/src/cli/cli-commands/agents-server/startAgentsServer/PreparedAgentsServerLaunch.d.ts +13 -0
- package/umd/src/cli/cli-commands/agents-server/startAgentsServer/StartAgentsServerOptions.d.ts +24 -0
- package/umd/src/cli/cli-commands/agents-server/startAgentsServer/createInternalRouteErrorMessage.d.ts +6 -0
- package/umd/src/cli/cli-commands/agents-server/startAgentsServer/createLocalAgentRunOptions.d.ts +9 -0
- package/umd/src/cli/cli-commands/agents-server/startAgentsServer/forwardChildOutput.d.ts +13 -0
- package/umd/src/cli/cli-commands/agents-server/startAgentsServer/loadAgentsServerProjectEnvironment.d.ts +6 -0
- package/umd/src/cli/cli-commands/agents-server/startAgentsServer/prepareAgentsServerLaunch.d.ts +18 -0
- package/umd/src/cli/cli-commands/agents-server/startAgentsServer/readInternalRouteErrorDetails.d.ts +6 -0
- package/umd/src/cli/cli-commands/agents-server/startAgentsServer/resolveAgentsServerChildHostname.d.ts +7 -0
- package/umd/src/cli/cli-commands/agents-server/startAgentsServer/startNextServer.d.ts +20 -0
- package/umd/src/cli/cli-commands/agents-server/startAgentsServer/startUserChatJobWorkerPump.d.ts +15 -0
- package/umd/src/cli/cli-commands/agents-server/startAgentsServer/stopChildProcess.d.ts +8 -0
- package/umd/src/cli/cli-commands/agents-server/startAgentsServer/waitForLocalAgentRunnerLimits.d.ts +16 -0
- package/umd/src/cli/cli-commands/agents-server/startAgentsServer.d.ts +3 -30
- package/umd/src/cli/cli-commands/coder/add.d.ts +36 -0
- package/umd/src/cli/cli-commands/coder/add.test.d.ts +1 -0
- package/umd/src/cli/cli-commands/coder/boilerplateTemplates.d.ts +24 -0
- package/umd/src/cli/cli-commands/coder.d.ts +1 -0
- package/umd/src/cli/cli-commands/common/createNonNegativeIntegerOptionParser.d.ts +10 -0
- package/umd/src/cli/cli-commands/common/harness/$applyHarnessInstallationStatus.d.ts +9 -0
- package/umd/src/cli/cli-commands/common/harness/$askForHarnessInstallationApproval.d.ts +9 -0
- package/umd/src/cli/cli-commands/common/harness/$checkHarnessInstallation.d.ts +10 -0
- package/umd/src/cli/cli-commands/common/harness/$ensureHarnessInstallations.d.ts +13 -0
- package/umd/src/cli/cli-commands/common/harness/$installHarness.d.ts +13 -0
- package/umd/src/cli/cli-commands/common/harness/$resolveInstalledHarnessVersion.d.ts +10 -0
- package/umd/src/cli/cli-commands/common/harness/$resolveLatestHarnessVersion.d.ts +10 -0
- package/umd/src/cli/cli-commands/common/harness/HarnessDefinition.d.ts +40 -0
- package/umd/src/cli/cli-commands/common/harness/HarnessDefinition.test.d.ts +1 -0
- package/umd/src/cli/cli-commands/common/harness/HarnessInstallationStatus.d.ts +35 -0
- package/umd/src/cli/cli-commands/common/harness/buildHarnessInstallCommand.d.ts +10 -0
- package/umd/src/cli/cli-commands/common/harness/extractHarnessVersionFromOutput.d.ts +11 -0
- package/umd/src/cli/cli-commands/common/harness/extractHarnessVersionFromOutput.test.d.ts +1 -0
- package/umd/src/cli/cli-commands/common/harness/formatHarnessInstallationWarning.d.ts +7 -0
- package/umd/src/cli/cli-commands/common/harness/isHarnessVersionOutdated.d.ts +9 -0
- package/umd/src/cli/cli-commands/common/harness/isHarnessVersionOutdated.test.d.ts +1 -0
- package/umd/src/cli/cli-commands/common/promptRunnerCliOptions.d.ts +1 -1
- package/umd/src/collection/agent-collection/CreateAgentInput.d.ts +1 -1
- package/umd/src/collection/agent-collection/constructors/agent-collection-in-supabase/buildAgentNameOrPermanentIdFilter.d.ts +18 -0
- package/umd/src/collection/agent-collection/constructors/agent-collection-in-supabase/buildAgentNameOrPermanentIdFilter.test.d.ts +1 -0
- package/umd/src/collection/agent-collection/constructors/agent-collection-in-supabase/prepareAgentSourceForPersistence.d.ts +1 -1
- package/umd/src/commitments/META/META.d.ts +4 -2
- package/umd/src/commitments/META_AVATAR/META_AVATAR.d.ts +9 -4
- package/umd/src/commitments/META_THINKING_MESSAGE/META_THINKING_MESSAGE.d.ts +26 -0
- package/umd/src/commitments/index.d.ts +2 -1
- package/umd/src/conversion/validation/validatePipeline/createPipelineValidationContext.d.ts +16 -0
- package/umd/src/conversion/validation/validatePipeline/validatePipelineCollectionsStructure.d.ts +7 -0
- package/umd/src/conversion/validation/validatePipeline/validatePipelineDependencyResolution.d.ts +7 -0
- package/umd/src/conversion/validation/validatePipeline/validatePipelineMetadata.d.ts +7 -0
- package/umd/src/conversion/validation/validatePipeline/validatePipelineParameters.d.ts +7 -0
- package/umd/src/conversion/validation/validatePipeline/validatePipelineTasks.d.ts +7 -0
- package/umd/src/execution/utils/formatUsagePrice.d.ts +12 -0
- package/umd/src/execution/utils/formatUsagePrice.test.d.ts +1 -0
- package/umd/src/llm-providers/_common/register/$registeredLlmToolsMessage/RegisteredLlmToolsMessageContext.d.ts +46 -0
- package/umd/src/llm-providers/_common/register/$registeredLlmToolsMessage/USED_ENV_FILENAME.d.ts +11 -0
- package/umd/src/llm-providers/_common/register/$registeredLlmToolsMessage/createRegisteredLlmToolConfigurationStatusMessage.d.ts +7 -0
- package/umd/src/llm-providers/_common/register/$registeredLlmToolsMessage/createRegisteredLlmToolEntryKey.d.ts +7 -0
- package/umd/src/llm-providers/_common/register/$registeredLlmToolsMessage/createRegisteredLlmToolInstallationStatusMessage.d.ts +7 -0
- package/umd/src/llm-providers/_common/register/$registeredLlmToolsMessage/createRegisteredLlmToolStatus.d.ts +14 -0
- package/umd/src/llm-providers/_common/register/$registeredLlmToolsMessage/createRegisteredLlmToolsMessageContext.d.ts +7 -0
- package/umd/src/llm-providers/_common/register/$registeredLlmToolsMessage/getAvailableRegisteredLlmToolsEnvironmentVariables.d.ts +7 -0
- package/umd/src/llm-providers/_common/register/$registeredLlmToolsMessage/getRegisteredLlmToolRegisters.d.ts +7 -0
- package/umd/src/llm-providers/_common/register/$registeredLlmToolsMessage/hasRegisteredLlmToolEntry.d.ts +7 -0
- package/umd/src/llm-providers/_common/register/$registeredLlmToolsMessage/listRegisteredLlmToolEntries.d.ts +9 -0
- package/umd/src/llm-providers/_common/register/$registeredLlmToolsMessage/listRegisteredLlmToolStatuses.d.ts +7 -0
- package/umd/src/llm-providers/_common/register/$registeredLlmToolsMessage/renderAvailableRegisteredLlmTools.d.ts +7 -0
- package/umd/src/llm-providers/_common/register/$registeredLlmToolsMessage/renderNoRegisteredLlmToolsMessage.d.ts +7 -0
- package/umd/src/llm-providers/_common/register/$registeredLlmToolsMessage/renderRegisteredLlmToolsMessage.d.ts +8 -0
- package/umd/src/llm-providers/_common/register/$registeredLlmToolsMessage/renderRelevantRegisteredLlmToolsEnvironmentVariables.d.ts +7 -0
- package/umd/src/utils/agent-message-runtime/agentMessageRuntimePaths.d.ts +24 -0
- package/umd/src/utils/agent-message-runtime/resolveAgentMessageRuntimeActivity.d.ts +16 -0
- package/umd/src/utils/agent-message-runtime/resolveAgentMessageRuntimeActivity.test.d.ts +1 -0
- package/umd/src/utils/agents/resolveAgentAvatarImageUrl.d.ts +2 -2
- package/umd/src/utils/agents/terminalAgentAvatarVisual.d.ts +104 -0
- package/umd/src/utils/agents/terminalAgentAvatarVisual.test.d.ts +1 -0
- package/umd/src/utils/color/Color.d.ts +1 -1
- package/umd/src/utils/html/escapeHtml.d.ts +9 -0
- package/umd/src/utils/markdown/shiftMarkdownHeadingLevels.d.ts +15 -0
- package/umd/src/version.d.ts +1 -1
- package/esm/scripts/run-codex-prompts/common/runGoScript/buildTemporaryPromptScriptPath.d.ts +0 -14
- package/esm/src/book-2.0/book-language-documentation/bookLanguageCommonPitfalls.d.ts +0 -25
- package/esm/src/book-components/_common/react-utils/escapeHtml.d.ts +0 -6
- package/umd/scripts/run-codex-prompts/common/runGoScript/buildTemporaryPromptScriptPath.d.ts +0 -14
- package/umd/src/book-2.0/book-language-documentation/bookLanguageCommonPitfalls.d.ts +0 -25
- package/umd/src/book-components/_common/react-utils/escapeHtml.d.ts +0 -6
- /package/esm/src/{executables/browsers/locateInternetExplorer.test.d.ts → book-2.0/book-language-documentation/createStandaloneBookLanguageMarkdown.test.d.ts} +0 -0
- /package/{umd/src/executables/browsers/locateInternetExplorer.test.d.ts → esm/src/book-3.0/AgentMessageRunReport.test.d.ts} +0 -0
|
@@ -1,4 +1,9 @@
|
|
|
1
|
+
import { type AgentProjectsPromptSectionOptions } from './buildAgentProjectsPromptSection';
|
|
2
|
+
/**
|
|
3
|
+
* Options adjusting the generated agent message prompt.
|
|
4
|
+
*/
|
|
5
|
+
export type BuildAgentMessagePromptOptions = AgentProjectsPromptSectionOptions;
|
|
1
6
|
/**
|
|
2
7
|
* Builds the prompt sent to the selected coding runner for one queued user-thread book.
|
|
3
8
|
*/
|
|
4
|
-
export declare function buildAgentMessagePrompt(messageRelativePath: string, agentSystemMessage: string): string;
|
|
9
|
+
export declare function buildAgentMessagePrompt(messageRelativePath: string, agentSystemMessage: string, options?: BuildAgentMessagePromptOptions): string;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Internal runtime API details available to Agents Server-managed local agents.
|
|
3
|
+
*/
|
|
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
|
+
};
|
|
18
|
+
/**
|
|
19
|
+
* Options of the projects prompt section shared by every coding harness.
|
|
20
|
+
*/
|
|
21
|
+
export type AgentProjectsPromptSectionOptions = {
|
|
22
|
+
/**
|
|
23
|
+
* URL path of the agent projects file endpoint, for example `/agents/<agentId>/projects`.
|
|
24
|
+
*
|
|
25
|
+
* When known, the section teaches the agent how to link project files into the chat.
|
|
26
|
+
*/
|
|
27
|
+
readonly projectsUrlPath?: string;
|
|
28
|
+
/**
|
|
29
|
+
* Internal runtime API details, when the agent is managed by Agents Server.
|
|
30
|
+
*/
|
|
31
|
+
readonly projectRuntimeApi?: AgentProjectRuntimePromptApi;
|
|
32
|
+
};
|
|
33
|
+
/**
|
|
34
|
+
* Builds the `## Projects` prompt section explaining the agent-owned projects convention.
|
|
35
|
+
*
|
|
36
|
+
* The section is part of the prompt of every harness, so each coding agent knows it has its
|
|
37
|
+
* own isolated project folders it fully controls and how to reference them in the chat.
|
|
38
|
+
*/
|
|
39
|
+
export declare function buildAgentProjectsPromptSection(options?: AgentProjectsPromptSectionOptions): string;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Parses a human-readable duration string into milliseconds.
|
|
3
|
+
*
|
|
4
|
+
* Supported formats: `Xh`, `Xm`, `Xs`, and combinations like `1h30m`, `1h30m5s`.
|
|
5
|
+
*
|
|
6
|
+
* @returns Duration in milliseconds
|
|
7
|
+
* @throws When the string does not match any supported format
|
|
8
|
+
*
|
|
9
|
+
* @private internal utility of `ptbk coder run`
|
|
10
|
+
*/
|
|
11
|
+
export declare function parseDuration(durationString: string): number;
|
|
12
|
+
/**
|
|
13
|
+
* Formats a duration in milliseconds into a compact human-readable string.
|
|
14
|
+
*
|
|
15
|
+
* Examples: `3600000` → `"1h"`, `90000` → `"1m 30s"`, `5000` → `"5s"`.
|
|
16
|
+
*
|
|
17
|
+
* @private internal utility of `ptbk coder run`
|
|
18
|
+
*/
|
|
19
|
+
export declare function formatDurationMs(ms: number): string;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Callback called before each short sleep while waiting for a wall-clock deadline.
|
|
3
|
+
*/
|
|
4
|
+
export type WorldTimeDeadlineTick = (remainingDurationMs: number) => void | Promise<void>;
|
|
5
|
+
/**
|
|
6
|
+
* Callback used to perform one wait segment.
|
|
7
|
+
*/
|
|
8
|
+
export type WorldTimeDeadlineWait = (durationMs: number) => Promise<void>;
|
|
9
|
+
/**
|
|
10
|
+
* Callback that can stop the deadline wait before the wall-clock deadline is reached.
|
|
11
|
+
*/
|
|
12
|
+
export type WorldTimeDeadlineStopCheck = () => boolean;
|
|
13
|
+
/**
|
|
14
|
+
* Waits until one wall-clock deadline has passed.
|
|
15
|
+
*
|
|
16
|
+
* The remaining time is recalculated from `Date.now()` after every poll and after every tick callback.
|
|
17
|
+
* This makes waits elapse while the process is paused at a checkpoint or the computer is asleep.
|
|
18
|
+
*
|
|
19
|
+
* @private internal utility of `ptbk coder` wait handling
|
|
20
|
+
*/
|
|
21
|
+
export declare function waitUntilWorldTimeDeadline(options: {
|
|
22
|
+
readonly deadlineTimeMs: number;
|
|
23
|
+
readonly pollIntervalMs: number;
|
|
24
|
+
readonly onTick?: WorldTimeDeadlineTick;
|
|
25
|
+
readonly shouldStopWaiting?: WorldTimeDeadlineStopCheck;
|
|
26
|
+
readonly waitForMilliseconds?: WorldTimeDeadlineWait;
|
|
27
|
+
}): Promise<void>;
|
|
@@ -16,4 +16,8 @@ export declare class ClaudeCodeRunner implements PromptRunner {
|
|
|
16
16
|
* Runs the prompt using Claude Code and parses usage output.
|
|
17
17
|
*/
|
|
18
18
|
runPrompt(options: PromptRunOptions): Promise<PromptRunResult>;
|
|
19
|
+
/**
|
|
20
|
+
* Runs one Claude Code CLI process and returns its raw output.
|
|
21
|
+
*/
|
|
22
|
+
private runClaudeCodeOnce;
|
|
19
23
|
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Number of milliseconds added after Claude's reported reset timestamp before retrying.
|
|
3
|
+
*/
|
|
4
|
+
export declare const CLAUDE_CODE_SESSION_LIMIT_RESET_BUFFER_MS: number;
|
|
5
|
+
/**
|
|
6
|
+
* Fallback delay used when Claude reports a session limit without a machine-readable reset timestamp.
|
|
7
|
+
*/
|
|
8
|
+
export declare const DEFAULT_CLAUDE_CODE_SESSION_LIMIT_RETRY_DELAY_MS: number;
|
|
9
|
+
/**
|
|
10
|
+
* Session-limit detection details needed to resume a Claude Code run.
|
|
11
|
+
*/
|
|
12
|
+
export type ClaudeCodeSessionLimit = {
|
|
13
|
+
readonly sessionId: string;
|
|
14
|
+
readonly resetDate?: Date;
|
|
15
|
+
readonly rateLimitType?: string;
|
|
16
|
+
readonly summary: string;
|
|
17
|
+
};
|
|
18
|
+
/**
|
|
19
|
+
* Extracts a Claude Code session-limit failure from a thrown runner error.
|
|
20
|
+
*/
|
|
21
|
+
export declare function extractClaudeCodeSessionLimitFromError(error: unknown): ClaudeCodeSessionLimit | undefined;
|
|
22
|
+
/**
|
|
23
|
+
* Extracts a Claude Code session-limit failure from raw stream-json output.
|
|
24
|
+
*/
|
|
25
|
+
export declare function extractClaudeCodeSessionLimitFromOutput(output: string): ClaudeCodeSessionLimit | undefined;
|
|
26
|
+
/**
|
|
27
|
+
* Computes how long to wait before trying to resume the Claude Code session.
|
|
28
|
+
*/
|
|
29
|
+
export declare function getClaudeCodeSessionLimitDelayMs(sessionLimit: ClaudeCodeSessionLimit, nowMs?: number): number;
|
|
30
|
+
/**
|
|
31
|
+
* Builds the follow-up prompt sent into a resumed Claude Code session after its limit resets.
|
|
32
|
+
*/
|
|
33
|
+
export declare function buildClaudeCodeSessionResurrectionPrompt(originalPrompt: string, sessionId: string): string;
|
|
34
|
+
/**
|
|
35
|
+
* Builds a compact one-line label for logs and terminal UI messages.
|
|
36
|
+
*/
|
|
37
|
+
export declare function formatClaudeCodeSessionLimitForDisplay(sessionLimit: ClaudeCodeSessionLimit): string;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* One parsed JSON event emitted by the Claude Code `--output-format stream-json` mode.
|
|
3
|
+
*/
|
|
4
|
+
export type ClaudeCodeOutputEvent = {
|
|
5
|
+
readonly type?: string;
|
|
6
|
+
readonly subtype?: string;
|
|
7
|
+
readonly is_error?: boolean;
|
|
8
|
+
readonly api_error_status?: number;
|
|
9
|
+
readonly result?: string;
|
|
10
|
+
readonly session_id?: string;
|
|
11
|
+
readonly error?: string;
|
|
12
|
+
readonly rate_limit_info?: {
|
|
13
|
+
readonly status?: string;
|
|
14
|
+
readonly resetsAt?: number;
|
|
15
|
+
readonly rateLimitType?: string;
|
|
16
|
+
};
|
|
17
|
+
readonly usage?: {
|
|
18
|
+
readonly input_tokens?: number;
|
|
19
|
+
readonly cache_creation_input_tokens?: number;
|
|
20
|
+
readonly cache_read_input_tokens?: number;
|
|
21
|
+
readonly output_tokens?: number;
|
|
22
|
+
readonly server_tool_use?: {
|
|
23
|
+
readonly web_search_requests?: number;
|
|
24
|
+
readonly web_fetch_requests?: number;
|
|
25
|
+
};
|
|
26
|
+
readonly service_tier?: string;
|
|
27
|
+
readonly cache_creation?: {
|
|
28
|
+
readonly ephemeral_1h_input_tokens?: number;
|
|
29
|
+
readonly ephemeral_5m_input_tokens?: number;
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
readonly total_cost_usd?: number;
|
|
33
|
+
readonly message?: {
|
|
34
|
+
readonly content?: ReadonlyArray<{
|
|
35
|
+
readonly type?: string;
|
|
36
|
+
readonly text?: string;
|
|
37
|
+
}>;
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
/**
|
|
41
|
+
* Parses all JSON lines from Claude Code output while ignoring shell prefixes and stack traces.
|
|
42
|
+
*/
|
|
43
|
+
export declare function parseClaudeCodeOutputEvents(output: string): readonly ClaudeCodeOutputEvent[];
|
|
44
|
+
/**
|
|
45
|
+
* Finds the final Claude Code result event in a stream-json output blob.
|
|
46
|
+
*/
|
|
47
|
+
export declare function findClaudeCodeResultEvent(output: string): ClaudeCodeOutputEvent | undefined;
|
package/esm/scripts/run-codex-prompts/runners/openai-codex/parseCodexLoginMethodFromOutput.d.ts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { type CodexLoginMethod } from '../../../../src/book-3.0/codexLoginMethod';
|
|
2
|
+
/**
|
|
3
|
+
* Detects which login method Codex used from the captured CLI output.
|
|
4
|
+
*
|
|
5
|
+
* The generated Codex runner script prints one `CODEX_LOGIN_METHOD_MARKER` line before invoking Codex.
|
|
6
|
+
* The most recent marker wins so retries within one captured output resolve to the final decision.
|
|
7
|
+
*
|
|
8
|
+
* @returns The resolved login method, or `unknown` when no marker is present.
|
|
9
|
+
*/
|
|
10
|
+
export declare function parseCodexLoginMethodFromOutput(output: string): CodexLoginMethod;
|
|
@@ -69,6 +69,10 @@ import type { ChatParticipant } from '../book-components/Chat/types/ChatParticip
|
|
|
69
69
|
import type { CitationLabelResolver } from '../book-components/Chat/types/CitationLabelResolver';
|
|
70
70
|
import type { MessageButton } from '../book-components/Chat/utils/parseMessageButtons';
|
|
71
71
|
import { parseMessageButtons } from '../book-components/Chat/utils/parseMessageButtons';
|
|
72
|
+
import type { MarkdownInlineReference } from '../book-components/Chat/utils/renderMarkdown';
|
|
73
|
+
import type { MarkdownInlineReferenceMenuStatus } from '../book-components/Chat/utils/renderMarkdown';
|
|
74
|
+
import type { MarkdownInlineReferenceMenuOption } from '../book-components/Chat/utils/renderMarkdown';
|
|
75
|
+
import type { MarkdownInlineReferenceMenu } from '../book-components/Chat/utils/renderMarkdown';
|
|
72
76
|
import { ArrowIcon } from '../book-components/icons/ArrowIcon';
|
|
73
77
|
import { MicIcon } from '../book-components/icons/MicIcon';
|
|
74
78
|
import { PauseIcon } from '../book-components/icons/PauseIcon';
|
|
@@ -154,6 +158,10 @@ export type { ChatParticipant };
|
|
|
154
158
|
export type { CitationLabelResolver };
|
|
155
159
|
export type { MessageButton };
|
|
156
160
|
export { parseMessageButtons };
|
|
161
|
+
export type { MarkdownInlineReference };
|
|
162
|
+
export type { MarkdownInlineReferenceMenuStatus };
|
|
163
|
+
export type { MarkdownInlineReferenceMenuOption };
|
|
164
|
+
export type { MarkdownInlineReferenceMenu };
|
|
157
165
|
export { ArrowIcon };
|
|
158
166
|
export { MicIcon };
|
|
159
167
|
export { PauseIcon };
|
|
@@ -22,6 +22,8 @@ import { parseParameters } from '../book-2.0/agent-source/parseParameters';
|
|
|
22
22
|
import { isValidBook } from '../book-2.0/agent-source/string_book';
|
|
23
23
|
import { validateBook } from '../book-2.0/agent-source/string_book';
|
|
24
24
|
import { DEFAULT_BOOK } from '../book-2.0/agent-source/string_book';
|
|
25
|
+
import type { BookLanguageDocumentationAgent } from '../book-2.0/book-language-documentation/createStandaloneBookLanguageMarkdown';
|
|
26
|
+
import type { CreateStandaloneBookLanguageMarkdownOptions } from '../book-2.0/book-language-documentation/createStandaloneBookLanguageMarkdown';
|
|
25
27
|
import { createStandaloneBookLanguageMarkdown } from '../book-2.0/book-language-documentation/createStandaloneBookLanguageMarkdown';
|
|
26
28
|
import { generatePlaceholderAgentProfileImageUrl } from '../book-2.0/utils/generatePlaceholderAgentProfileImageUrl';
|
|
27
29
|
import { Book } from '../book-3.0/Book';
|
|
@@ -258,6 +260,8 @@ export { parseParameters };
|
|
|
258
260
|
export { isValidBook };
|
|
259
261
|
export { validateBook };
|
|
260
262
|
export { DEFAULT_BOOK };
|
|
263
|
+
export type { BookLanguageDocumentationAgent };
|
|
264
|
+
export type { CreateStandaloneBookLanguageMarkdownOptions };
|
|
261
265
|
export { createStandaloneBookLanguageMarkdown };
|
|
262
266
|
export { generatePlaceholderAgentProfileImageUrl };
|
|
263
267
|
export { Book };
|
|
@@ -5,6 +5,8 @@ import type { AgentModelRequirements } from '../book-2.0/agent-source/AgentModel
|
|
|
5
5
|
import type { AgentVisibility } from '../book-2.0/agent-source/agentSourceVisibility';
|
|
6
6
|
import type { CreateAgentModelRequirementsOptions } from '../book-2.0/agent-source/CreateAgentModelRequirementsOptions';
|
|
7
7
|
import type { string_book } from '../book-2.0/agent-source/string_book';
|
|
8
|
+
import type { BookLanguageDocumentationAgent } from '../book-2.0/book-language-documentation/createStandaloneBookLanguageMarkdown';
|
|
9
|
+
import type { CreateStandaloneBookLanguageMarkdownOptions } from '../book-2.0/book-language-documentation/createStandaloneBookLanguageMarkdown';
|
|
8
10
|
import type { BookNodeAgentSource } from '../book-3.0/BookNodeAgentSource';
|
|
9
11
|
import type { BookNodeAgentSourceOptions } from '../book-3.0/BookNodeAgentSource';
|
|
10
12
|
import type { CliAgentHarness } from '../book-3.0/CliAgent';
|
|
@@ -20,8 +22,8 @@ import type { AvatarProfileFromSourceProps } from '../book-components/AvatarProf
|
|
|
20
22
|
import type { BookEditorUploadProgressCallback } from '../book-components/BookEditor/BookEditor';
|
|
21
23
|
import type { BookEditorUploadOptions } from '../book-components/BookEditor/BookEditor';
|
|
22
24
|
import type { BookEditorProps } from '../book-components/BookEditor/BookEditor';
|
|
23
|
-
import type { UploadItem } from '../book-components/BookEditor/useBookEditorMonacoUploads';
|
|
24
|
-
import type { UploadStats } from '../book-components/BookEditor/useBookEditorMonacoUploads';
|
|
25
|
+
import type { UploadItem } from '../book-components/BookEditor/useBookEditorMonacoUploads/bookEditorMonacoUploadTypes';
|
|
26
|
+
import type { UploadStats } from '../book-components/BookEditor/useBookEditorMonacoUploads/bookEditorMonacoUploadTypes';
|
|
25
27
|
import type { AgentChatProps } from '../book-components/Chat/AgentChat/AgentChatProps';
|
|
26
28
|
import type { AgentChipData } from '../book-components/Chat/AgentChip/AgentChip';
|
|
27
29
|
import type { AgentChipProps } from '../book-components/Chat/AgentChip/AgentChip';
|
|
@@ -59,6 +61,10 @@ import type { ChatParticipant } from '../book-components/Chat/types/ChatParticip
|
|
|
59
61
|
import type { CitationLabelResolver } from '../book-components/Chat/types/CitationLabelResolver';
|
|
60
62
|
import type { ParsedCitation } from '../book-components/Chat/utils/parseCitationsFromContent';
|
|
61
63
|
import type { MessageButton } from '../book-components/Chat/utils/parseMessageButtons';
|
|
64
|
+
import type { MarkdownInlineReference } from '../book-components/Chat/utils/renderMarkdown';
|
|
65
|
+
import type { MarkdownInlineReferenceMenuStatus } from '../book-components/Chat/utils/renderMarkdown';
|
|
66
|
+
import type { MarkdownInlineReferenceMenuOption } from '../book-components/Chat/utils/renderMarkdown';
|
|
67
|
+
import type { MarkdownInlineReferenceMenu } from '../book-components/Chat/utils/renderMarkdown';
|
|
62
68
|
import type { TeamToolResult } from '../book-components/Chat/utils/toolCallParsing/TeamToolResult';
|
|
63
69
|
import type { QrCodeOptions } from '../book-components/Qr/useQrCode';
|
|
64
70
|
import type { AgentCollection } from '../collection/agent-collection/AgentCollection';
|
|
@@ -448,6 +454,8 @@ export type { AgentModelRequirements };
|
|
|
448
454
|
export type { AgentVisibility };
|
|
449
455
|
export type { CreateAgentModelRequirementsOptions };
|
|
450
456
|
export type { string_book };
|
|
457
|
+
export type { BookLanguageDocumentationAgent };
|
|
458
|
+
export type { CreateStandaloneBookLanguageMarkdownOptions };
|
|
451
459
|
export type { BookNodeAgentSource };
|
|
452
460
|
export type { BookNodeAgentSourceOptions };
|
|
453
461
|
export type { CliAgentHarness };
|
|
@@ -502,6 +510,10 @@ export type { ChatParticipant };
|
|
|
502
510
|
export type { CitationLabelResolver };
|
|
503
511
|
export type { ParsedCitation };
|
|
504
512
|
export type { MessageButton };
|
|
513
|
+
export type { MarkdownInlineReference };
|
|
514
|
+
export type { MarkdownInlineReferenceMenuStatus };
|
|
515
|
+
export type { MarkdownInlineReferenceMenuOption };
|
|
516
|
+
export type { MarkdownInlineReferenceMenu };
|
|
505
517
|
export type { TeamToolResult };
|
|
506
518
|
export type { QrCodeOptions };
|
|
507
519
|
export type { AgentCollection };
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { AsciiArtColorDepth } from '../utils/ascii-art/convertImageDataToAsciiArt';
|
|
2
|
+
import type { ResolvedAvatarRenderDefinition } from './renderAvatarVisual';
|
|
2
3
|
import type { AvatarDefinition } from './types/AvatarDefinition';
|
|
3
|
-
import type { AvatarVisualId } from './types/AvatarVisualDefinition';
|
|
4
|
+
import type { AvatarSurfaceStyle, AvatarVisualId } from './types/AvatarVisualDefinition';
|
|
4
5
|
/**
|
|
5
6
|
* Default output width of the ASCII avatar in terminal character cells.
|
|
6
7
|
*
|
|
@@ -30,6 +31,12 @@ export type RenderAvatarVisualAsciiArtOptions = {
|
|
|
30
31
|
* Built-in avatar visual to render, the same one used on the website.
|
|
31
32
|
*/
|
|
32
33
|
readonly visualId: AvatarVisualId;
|
|
34
|
+
/**
|
|
35
|
+
* Surface used to composite the avatar before ASCII conversion.
|
|
36
|
+
*
|
|
37
|
+
* @default 'framed'
|
|
38
|
+
*/
|
|
39
|
+
readonly surface?: AvatarSurfaceStyle;
|
|
33
40
|
/**
|
|
34
41
|
* Output width in terminal character cells.
|
|
35
42
|
*
|
|
@@ -54,6 +61,22 @@ export type RenderAvatarVisualAsciiArtOptions = {
|
|
|
54
61
|
* @default `STATIC_AVATAR_ASCII_ART_FRAME_TIME_MS`
|
|
55
62
|
*/
|
|
56
63
|
readonly timeMs?: number;
|
|
64
|
+
/**
|
|
65
|
+
* Source canvas width in CSS pixels before ASCII conversion.
|
|
66
|
+
*
|
|
67
|
+
* @default `DEFAULT_AVATAR_SIZE`
|
|
68
|
+
*/
|
|
69
|
+
readonly canvasWidth?: number;
|
|
70
|
+
/**
|
|
71
|
+
* Source canvas height in CSS pixels before ASCII conversion.
|
|
72
|
+
*
|
|
73
|
+
* @default `DEFAULT_AVATAR_SIZE`
|
|
74
|
+
*/
|
|
75
|
+
readonly canvasHeight?: number;
|
|
76
|
+
/**
|
|
77
|
+
* Optional stable render data reused across frames.
|
|
78
|
+
*/
|
|
79
|
+
readonly resolvedAvatarRenderDefinition?: ResolvedAvatarRenderDefinition;
|
|
57
80
|
/**
|
|
58
81
|
* Platform-specific canvas factory used to rasterize the visual.
|
|
59
82
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { AvatarPalette } from '../types/AvatarVisualDefinition';
|
|
2
|
-
import {
|
|
2
|
+
import type { Point3D, ProjectedPoint } from './avatar3dProjectionShared';
|
|
3
3
|
/**
|
|
4
4
|
* Eye-style knobs shared by the proper-3D octopus visuals.
|
|
5
5
|
*
|
|
@@ -81,6 +81,13 @@ export type AgentBasicInformation = {
|
|
|
81
81
|
* This is the line starting with "INITIAL MESSAGE"
|
|
82
82
|
*/
|
|
83
83
|
initialMessage: string | null;
|
|
84
|
+
/**
|
|
85
|
+
* Optional custom thinking placeholder variants shown while this agent is composing a reply.
|
|
86
|
+
*
|
|
87
|
+
* This is derived from `META THINKING MESSAGE` commitments.
|
|
88
|
+
* Multiple commitments are preserved as multiple variants.
|
|
89
|
+
*/
|
|
90
|
+
thinkingMessages?: Array<string>;
|
|
84
91
|
/**
|
|
85
92
|
* Metadata commitments parsed from META lines
|
|
86
93
|
* Each META commitment has the format "META TYPE content"
|
|
@@ -4,4 +4,4 @@ import type { AgentBasicInformation } from '../AgentBasicInformation';
|
|
|
4
4
|
*
|
|
5
5
|
* @private internal utility of `parseAgentSource`
|
|
6
6
|
*/
|
|
7
|
-
export type ParsedAgentProfile = Pick<AgentBasicInformation, 'meta' | 'links' | 'capabilities' | 'samples' | 'knowledgeSources'>;
|
|
7
|
+
export type ParsedAgentProfile = Pick<AgentBasicInformation, 'meta' | 'links' | 'capabilities' | 'samples' | 'knowledgeSources' | 'thinkingMessages'>;
|
|
@@ -1,27 +1,19 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* One end-to-end Book language example used in standalone documentation.
|
|
3
3
|
*
|
|
4
|
+
* Only the language-neutral Book source lives here. Title, goal, and
|
|
5
|
+
* walkthrough are translated and therefore kept in
|
|
6
|
+
* `BookLanguageManualDictionary.exampleTexts`.
|
|
7
|
+
*
|
|
4
8
|
* @private internal utility of `createStandaloneBookLanguageMarkdown`
|
|
5
9
|
*/
|
|
6
10
|
export type BookLanguageDocumentationExample = {
|
|
7
11
|
/**
|
|
8
|
-
* Stable identifier used for markdown anchors.
|
|
12
|
+
* Stable identifier used for markdown anchors and translation lookup.
|
|
9
13
|
*/
|
|
10
14
|
readonly id: string;
|
|
11
|
-
/**
|
|
12
|
-
* Human-readable example title.
|
|
13
|
-
*/
|
|
14
|
-
readonly title: string;
|
|
15
|
-
/**
|
|
16
|
-
* Goal of the example in one short sentence.
|
|
17
|
-
*/
|
|
18
|
-
readonly goal: string;
|
|
19
15
|
/**
|
|
20
16
|
* Full Book source shown to readers.
|
|
21
17
|
*/
|
|
22
18
|
readonly source: string;
|
|
23
|
-
/**
|
|
24
|
-
* Step-by-step walkthrough of how the source works.
|
|
25
|
-
*/
|
|
26
|
-
readonly walkthrough: ReadonlyArray<string>;
|
|
27
19
|
};
|
|
@@ -0,0 +1,195 @@
|
|
|
1
|
+
import type { string_language } from '../../types/string_token';
|
|
2
|
+
/**
|
|
3
|
+
* One chapter of the standalone Book language manual.
|
|
4
|
+
*
|
|
5
|
+
* The heading anchors are intentionally **not** part of the dictionary, so deep
|
|
6
|
+
* links stay stable across languages.
|
|
7
|
+
*
|
|
8
|
+
* @private internal type of `createStandaloneBookLanguageMarkdown`
|
|
9
|
+
*/
|
|
10
|
+
export type BookLanguageManualChapter = {
|
|
11
|
+
/**
|
|
12
|
+
* Translated chapter heading.
|
|
13
|
+
*/
|
|
14
|
+
readonly title: string;
|
|
15
|
+
/**
|
|
16
|
+
* Translated chapter body as markdown.
|
|
17
|
+
*/
|
|
18
|
+
readonly body: string;
|
|
19
|
+
};
|
|
20
|
+
/**
|
|
21
|
+
* Translated prose of one end-to-end example.
|
|
22
|
+
*
|
|
23
|
+
* The Book source of an example is language-neutral and therefore stays in
|
|
24
|
+
* `bookLanguageDocumentationExamples`.
|
|
25
|
+
*
|
|
26
|
+
* @private internal type of `createStandaloneBookLanguageMarkdown`
|
|
27
|
+
*/
|
|
28
|
+
export type BookLanguageManualExampleText = {
|
|
29
|
+
/**
|
|
30
|
+
* Translated example heading.
|
|
31
|
+
*/
|
|
32
|
+
readonly title: string;
|
|
33
|
+
/**
|
|
34
|
+
* Translated one-line goal of the example.
|
|
35
|
+
*/
|
|
36
|
+
readonly goal: string;
|
|
37
|
+
/**
|
|
38
|
+
* Translated walkthrough steps explaining the example source.
|
|
39
|
+
*/
|
|
40
|
+
readonly walkthrough: ReadonlyArray<string>;
|
|
41
|
+
};
|
|
42
|
+
/**
|
|
43
|
+
* One practical "don't vs do" pitfall item for Book language authoring.
|
|
44
|
+
*
|
|
45
|
+
* @private internal type of `createStandaloneBookLanguageMarkdown`
|
|
46
|
+
*/
|
|
47
|
+
export type BookLanguageManualPitfall = {
|
|
48
|
+
/**
|
|
49
|
+
* Short pitfall title.
|
|
50
|
+
*/
|
|
51
|
+
readonly title: string;
|
|
52
|
+
/**
|
|
53
|
+
* Description of what to avoid.
|
|
54
|
+
*/
|
|
55
|
+
readonly dont: string;
|
|
56
|
+
/**
|
|
57
|
+
* Practical corrective action.
|
|
58
|
+
*/
|
|
59
|
+
readonly doInstead: string;
|
|
60
|
+
};
|
|
61
|
+
/**
|
|
62
|
+
* Every translatable string of the standalone Book language manual.
|
|
63
|
+
*
|
|
64
|
+
* Commitment reference bodies are deliberately excluded, because they are the
|
|
65
|
+
* canonical English specification maintained next to each commitment in
|
|
66
|
+
* `src/commitments`.
|
|
67
|
+
*
|
|
68
|
+
* @private internal type of `createStandaloneBookLanguageMarkdown`
|
|
69
|
+
*/
|
|
70
|
+
export type BookLanguageManualDictionary = {
|
|
71
|
+
/**
|
|
72
|
+
* Language code this dictionary is written in.
|
|
73
|
+
*/
|
|
74
|
+
readonly language: string_language;
|
|
75
|
+
/**
|
|
76
|
+
* Manual title used as the top-level heading.
|
|
77
|
+
*/
|
|
78
|
+
readonly title: string;
|
|
79
|
+
/**
|
|
80
|
+
* Blockquote lines rendered directly under the manual title.
|
|
81
|
+
*/
|
|
82
|
+
readonly introLines: ReadonlyArray<string>;
|
|
83
|
+
/**
|
|
84
|
+
* Labels of the generated manual metadata bullets.
|
|
85
|
+
*/
|
|
86
|
+
readonly metadataLabels: {
|
|
87
|
+
readonly bookLanguageVersion: string;
|
|
88
|
+
readonly generatedAt: string;
|
|
89
|
+
readonly commitmentGroups: string;
|
|
90
|
+
readonly implementedCommitments: string;
|
|
91
|
+
readonly placeholderCommitments: string;
|
|
92
|
+
};
|
|
93
|
+
/**
|
|
94
|
+
* Heading of the table of contents.
|
|
95
|
+
*/
|
|
96
|
+
readonly tableOfContentsTitle: string;
|
|
97
|
+
/**
|
|
98
|
+
* Chapters rendered in their canonical order.
|
|
99
|
+
*/
|
|
100
|
+
readonly chapters: {
|
|
101
|
+
readonly whatIs: BookLanguageManualChapter;
|
|
102
|
+
readonly mentalModel: BookLanguageManualChapter;
|
|
103
|
+
readonly howToStructure: BookLanguageManualChapter;
|
|
104
|
+
readonly primitives: BookLanguageManualChapter;
|
|
105
|
+
readonly commitmentCatalog: BookLanguageManualChapter;
|
|
106
|
+
readonly examples: Pick<BookLanguageManualChapter, 'title'>;
|
|
107
|
+
readonly pitfalls: Pick<BookLanguageManualChapter, 'title'>;
|
|
108
|
+
readonly tutorial: BookLanguageManualChapter;
|
|
109
|
+
readonly lowLevelCommitments: BookLanguageManualChapter;
|
|
110
|
+
};
|
|
111
|
+
/**
|
|
112
|
+
* Sub-sections of the "Mental model of an agent" chapter.
|
|
113
|
+
*/
|
|
114
|
+
readonly mentalModelSections: {
|
|
115
|
+
readonly detectedIntro: string;
|
|
116
|
+
readonly detectedProfileLabel: string;
|
|
117
|
+
readonly detectedBehaviorLabel: string;
|
|
118
|
+
readonly detectedToolingLabel: string;
|
|
119
|
+
readonly detectedCompositionLabel: string;
|
|
120
|
+
readonly meta: BookLanguageManualChapter;
|
|
121
|
+
readonly inheritance: BookLanguageManualChapter;
|
|
122
|
+
readonly composition: BookLanguageManualChapter;
|
|
123
|
+
readonly capabilities: BookLanguageManualChapter;
|
|
124
|
+
};
|
|
125
|
+
/**
|
|
126
|
+
* Sub-sections of the "Primitives and constructs reference" chapter.
|
|
127
|
+
*/
|
|
128
|
+
readonly primitivesSections: {
|
|
129
|
+
readonly coreSyntax: BookLanguageManualChapter;
|
|
130
|
+
readonly references: BookLanguageManualChapter;
|
|
131
|
+
readonly keywordsTitle: string;
|
|
132
|
+
};
|
|
133
|
+
/**
|
|
134
|
+
* Suffixes distinguishing a server-specific catalog from the portable one.
|
|
135
|
+
*/
|
|
136
|
+
readonly commitmentCatalogTitleSuffixes: {
|
|
137
|
+
readonly usedFirst: string;
|
|
138
|
+
readonly all: string;
|
|
139
|
+
};
|
|
140
|
+
/**
|
|
141
|
+
* Labels used in every commitment catalog entry.
|
|
142
|
+
*/
|
|
143
|
+
readonly commitmentLabels: {
|
|
144
|
+
readonly status: string;
|
|
145
|
+
readonly aliases: string;
|
|
146
|
+
readonly semantics: string;
|
|
147
|
+
readonly typeSchema: string;
|
|
148
|
+
readonly blockSchema: string;
|
|
149
|
+
readonly lowLevelNotice: string;
|
|
150
|
+
readonly usage: string;
|
|
151
|
+
readonly usageOccurrence: string;
|
|
152
|
+
readonly usageOccurrences: string;
|
|
153
|
+
readonly statusImplemented: string;
|
|
154
|
+
readonly statusPlaceholder: string;
|
|
155
|
+
readonly noAliases: string;
|
|
156
|
+
};
|
|
157
|
+
/**
|
|
158
|
+
* Labels used by end-to-end example sections.
|
|
159
|
+
*/
|
|
160
|
+
readonly exampleLabels: {
|
|
161
|
+
readonly commitmentsUsed: string;
|
|
162
|
+
readonly fullSource: string;
|
|
163
|
+
readonly goal: string;
|
|
164
|
+
readonly walkthrough: string;
|
|
165
|
+
readonly noCommitments: string;
|
|
166
|
+
};
|
|
167
|
+
/**
|
|
168
|
+
* Translated prose of the portable examples, keyed by example id.
|
|
169
|
+
*/
|
|
170
|
+
readonly exampleTexts: Readonly<Record<string, BookLanguageManualExampleText>>;
|
|
171
|
+
/**
|
|
172
|
+
* Labels used by the "Do nots and common pitfalls" chapter.
|
|
173
|
+
*/
|
|
174
|
+
readonly pitfallLabels: {
|
|
175
|
+
readonly dont: string;
|
|
176
|
+
readonly doInstead: string;
|
|
177
|
+
};
|
|
178
|
+
/**
|
|
179
|
+
* Translated pitfall entries.
|
|
180
|
+
*/
|
|
181
|
+
readonly pitfalls: ReadonlyArray<BookLanguageManualPitfall>;
|
|
182
|
+
/**
|
|
183
|
+
* Closing parts of the "Build an agent from scratch" chapter.
|
|
184
|
+
*/
|
|
185
|
+
readonly tutorialSections: {
|
|
186
|
+
readonly serverAgentsHint: string;
|
|
187
|
+
readonly templateIntro: string;
|
|
188
|
+
readonly checklistTitle: string;
|
|
189
|
+
readonly checklistBody: string;
|
|
190
|
+
};
|
|
191
|
+
/**
|
|
192
|
+
* Closing "Generated from" block of the manual.
|
|
193
|
+
*/
|
|
194
|
+
readonly footer: BookLanguageManualChapter;
|
|
195
|
+
};
|
|
@@ -3,7 +3,8 @@ import type { BookLanguageDocumentationExample } from './BookLanguageDocumentati
|
|
|
3
3
|
* End-to-end examples used by the standalone Book language documentation.
|
|
4
4
|
*
|
|
5
5
|
* These are intentionally compact but complete, so they can be copy-pasted and
|
|
6
|
-
* used as practical starting points.
|
|
6
|
+
* used as practical starting points. Their prose lives in the manual
|
|
7
|
+
* dictionaries, keyed by the `id` of each example.
|
|
7
8
|
*
|
|
8
9
|
* @private internal utility of `createStandaloneBookLanguageMarkdown`
|
|
9
10
|
*/
|
package/esm/src/book-2.0/book-language-documentation/createStandaloneBookLanguageMarkdown.d.ts
CHANGED
|
@@ -1,4 +1,46 @@
|
|
|
1
|
+
import type { string_book } from '../agent-source/string_book';
|
|
1
2
|
import type { string_markdown } from '../../types/string_markdown';
|
|
3
|
+
import type { string_language } from '../../types/string_token';
|
|
4
|
+
/**
|
|
5
|
+
* Agent source incorporated into a server-specific Book language manual.
|
|
6
|
+
*
|
|
7
|
+
* @public exported from `@promptbook/core`
|
|
8
|
+
*/
|
|
9
|
+
export type BookLanguageDocumentationAgent = {
|
|
10
|
+
/**
|
|
11
|
+
* Human-readable title shown above the baked example.
|
|
12
|
+
*/
|
|
13
|
+
readonly agentName: string;
|
|
14
|
+
/**
|
|
15
|
+
* Current Book source used both as an example and to detect used commitments.
|
|
16
|
+
*/
|
|
17
|
+
readonly agentSource: string_book;
|
|
18
|
+
};
|
|
19
|
+
/**
|
|
20
|
+
* Optional context used to tailor a standalone Book language manual.
|
|
21
|
+
*
|
|
22
|
+
* An empty `agents` array deliberately has the same effect as omitting this
|
|
23
|
+
* option, which keeps the non-customized manual portable between servers.
|
|
24
|
+
*
|
|
25
|
+
* @public exported from `@promptbook/core`
|
|
26
|
+
*/
|
|
27
|
+
export type CreateStandaloneBookLanguageMarkdownOptions = {
|
|
28
|
+
/**
|
|
29
|
+
* Server agents whose sources should be baked into examples and usage priority.
|
|
30
|
+
*/
|
|
31
|
+
readonly agents?: ReadonlyArray<BookLanguageDocumentationAgent>;
|
|
32
|
+
/**
|
|
33
|
+
* Language the manual should be written in, English is used as the fallback.
|
|
34
|
+
*/
|
|
35
|
+
readonly language?: string_language;
|
|
36
|
+
/**
|
|
37
|
+
* Whether the closing chapter with low-level commitments should be generated.
|
|
38
|
+
*
|
|
39
|
+
* Low-level commitments are intended for advanced use only, so they are
|
|
40
|
+
* omitted unless they are explicitly requested.
|
|
41
|
+
*/
|
|
42
|
+
readonly isLowLevelCommitmentsIncluded?: boolean;
|
|
43
|
+
};
|
|
2
44
|
/**
|
|
3
45
|
* Creates one standalone markdown guide for Book language (Book 2.0 / agent language).
|
|
4
46
|
*
|
|
@@ -11,4 +53,4 @@ import type { string_markdown } from '../../types/string_markdown';
|
|
|
11
53
|
*
|
|
12
54
|
* @public exported from `@promptbook/core`
|
|
13
55
|
*/
|
|
14
|
-
export declare function createStandaloneBookLanguageMarkdown(): string_markdown;
|
|
56
|
+
export declare function createStandaloneBookLanguageMarkdown(options?: CreateStandaloneBookLanguageMarkdownOptions): string_markdown;
|