@promptbook/node 0.112.0-98 → 0.112.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 +37 -21
- package/esm/index.es.js +26872 -22411
- package/esm/index.es.js.map +1 -1
- package/esm/scripts/run-agent-chat/executeAgentChatTurn.d.ts +28 -0
- package/esm/scripts/run-agent-messages/messages/buildAgentMessagePrompt.d.ts +4 -0
- package/esm/scripts/run-agent-messages/messages/buildAgentMessageScriptPath.d.ts +5 -0
- package/esm/scripts/run-agent-messages/messages/createAgentRunnerSystemMessage.d.ts +10 -0
- package/esm/scripts/run-codex-prompts/common/ProgressiveBackoff.d.ts +44 -0
- package/esm/scripts/run-codex-prompts/common/appendCoderContext.d.ts +4 -0
- package/esm/scripts/run-codex-prompts/common/formatUnknownErrorDetails.d.ts +4 -0
- package/esm/scripts/run-codex-prompts/common/runGoScript/$runGoScript.d.ts +5 -0
- package/esm/scripts/run-codex-prompts/common/runGoScript/$runGoScriptUntilMarkerIdle.d.ts +6 -0
- package/esm/scripts/run-codex-prompts/common/runGoScript/$runGoScriptWithOutput.d.ts +5 -0
- package/esm/scripts/run-codex-prompts/common/runGoScript/buildScriptLogPath.d.ts +4 -0
- package/esm/scripts/run-codex-prompts/common/runGoScript/buildTemporaryPromptScriptPath.d.ts +14 -0
- package/esm/scripts/run-codex-prompts/common/runGoScript/printLiveScriptChunk.d.ts +4 -0
- package/esm/scripts/run-codex-prompts/common/runGoScript/runBashScriptWithOutput.d.ts +5 -0
- package/esm/scripts/run-codex-prompts/common/runGoScript/runScriptUntilMarkerIdle.d.ts +6 -0
- package/esm/scripts/run-codex-prompts/common/runGoScript/scriptExecutionLog.d.ts +28 -0
- package/esm/scripts/run-codex-prompts/common/runGoScript/shouldDeleteTemporaryArtifact.d.ts +7 -0
- package/esm/scripts/run-codex-prompts/common/runGoScript/toPosixPath.d.ts +4 -0
- package/esm/scripts/run-codex-prompts/common/runGoScript/withPromptRuntimeLog.d.ts +6 -0
- package/esm/scripts/run-codex-prompts/common/runGoScript/withTempScript.d.ts +5 -0
- package/esm/scripts/run-codex-prompts/main/resolvePromptRunner.d.ts +24 -0
- package/esm/scripts/run-codex-prompts/runners/claude-code/ClaudeCodeRunner.d.ts +19 -0
- package/esm/scripts/run-codex-prompts/runners/claude-code/buildClaudeScript.d.ts +5 -0
- package/esm/scripts/run-codex-prompts/runners/claude-code/parseClaudeCodeJsonOutput.d.ts +5 -0
- package/esm/scripts/run-codex-prompts/runners/cline/ClineRunner.d.ts +19 -0
- package/esm/scripts/run-codex-prompts/runners/cline/buildClineScript.d.ts +5 -0
- package/esm/scripts/run-codex-prompts/runners/gemini/GeminiRunner.d.ts +23 -0
- package/esm/scripts/run-codex-prompts/runners/gemini/buildGeminiScript.d.ts +5 -0
- package/esm/scripts/run-codex-prompts/runners/gemini/gemini-pricing.d.ts +35 -0
- package/esm/scripts/run-codex-prompts/runners/gemini/parseGeminiUsageFromOutput.d.ts +9 -0
- package/esm/scripts/run-codex-prompts/runners/github-copilot/GitHubCopilotRunner.d.ts +19 -0
- package/esm/scripts/run-codex-prompts/runners/github-copilot/buildGitHubCopilotScript.d.ts +5 -0
- package/esm/scripts/run-codex-prompts/runners/openai-codex/CodexFailureHandling.d.ts +21 -0
- package/esm/scripts/run-codex-prompts/runners/openai-codex/OpenAiCodexRunner.d.ts +20 -0
- package/esm/scripts/run-codex-prompts/runners/openai-codex/buildCodexScript.d.ts +5 -0
- package/esm/scripts/run-codex-prompts/runners/openai-codex/buildCodexUsageFromOutput.d.ts +10 -0
- package/esm/scripts/run-codex-prompts/runners/opencode/OpencodeRunner.d.ts +19 -0
- package/esm/scripts/run-codex-prompts/runners/opencode/buildOpencodeScript.d.ts +5 -0
- package/esm/scripts/run-codex-prompts/runners/opencode/parseOpencodeJsonOutput.d.ts +5 -0
- package/esm/src/_packages/components.index.d.ts +4 -0
- package/esm/src/_packages/core.index.d.ts +0 -2
- package/esm/src/_packages/node.index.d.ts +40 -0
- package/esm/src/_packages/types.index.d.ts +18 -0
- package/esm/src/avatars/avatarAnimationScheduler.d.ts +4 -0
- package/esm/src/avatars/types/AvatarVisualDefinition.d.ts +1 -1
- package/esm/src/avatars/visuals/octopus3d3AvatarVisual.d.ts +7 -0
- package/esm/src/avatars/visuals/octopus3d4AvatarVisual.d.ts +7 -0
- package/esm/src/book-3.0/BookNodeAgentSource.d.ts +38 -0
- package/esm/src/book-3.0/CliAgent.d.ts +66 -0
- package/esm/src/book-3.0/CliAgent.test.d.ts +1 -0
- package/esm/src/book-3.0/LiteAgent.d.ts +68 -0
- package/esm/src/book-3.0/LiteAgent.test.d.ts +1 -0
- package/esm/src/book-3.0/agentFolderPaths.d.ts +30 -0
- package/esm/src/book-3.0/cliAgentEnv.d.ts +33 -0
- package/esm/src/book-components/BookEditor/BookEditor.d.ts +6 -5
- package/esm/src/book-components/BookEditor/BookEditorAboutPromptbookInformation.d.ts +12 -0
- package/esm/src/book-components/BookEditor/BookEditorBrowserConfig.d.ts +2 -0
- package/esm/src/book-components/BookEditor/BookEditorForClient.d.ts +7 -0
- package/esm/src/book-components/BookEditor/BookEditorMonacoTokenization.d.ts +1 -0
- package/esm/src/book-components/BookEditor/BookEditorTheme.d.ts +24 -0
- package/esm/src/book-components/BookEditor/createDeprecatedCommitmentDiagnostics.browser.d.ts +9 -0
- package/esm/src/book-components/BookEditor/useBookEditorMonacoLanguage.d.ts +1 -6
- package/esm/src/book-components/BookEditor/useBookEditorMonacoLifecycle.d.ts +1 -4
- package/esm/src/book-components/BookEditor/useBookEditorMonacoStyles.d.ts +2 -1
- package/esm/src/book-components/Chat/Chat/ChatCitationModal.d.ts +2 -0
- package/esm/src/book-components/Chat/Chat/ChatMessageItem.d.ts +4 -0
- package/esm/src/book-components/Chat/Chat/ChatMessageList.d.ts +4 -0
- package/esm/src/book-components/Chat/Chat/ChatProps.d.ts +5 -0
- package/esm/src/book-components/Chat/Chat/ChatToolCallModal.d.ts +2 -0
- package/esm/src/book-components/Chat/Chat/ChatToolCallModalContent.d.ts +3 -1
- package/esm/src/book-components/Chat/Chat/CitationIframePreview.d.ts +20 -0
- package/esm/src/book-components/Chat/Chat/TeamToolCallModalContent.d.ts +2 -0
- package/esm/src/book-components/Chat/MarkdownContent/MarkdownContent.d.ts +1 -0
- package/esm/src/book-components/Chat/SourceChip/SourceChip.d.ts +6 -1
- package/esm/src/book-components/Chat/hooks/useResolvedCitationLabel.d.ts +12 -0
- package/esm/src/book-components/Chat/types/ChatMessage.d.ts +4 -0
- package/esm/src/book-components/Chat/types/ChatParticipant.d.ts +1 -1
- package/esm/src/book-components/Chat/types/CitationLabelResolver.d.ts +8 -0
- package/esm/src/book-components/Chat/utils/citationHelpers.d.ts +9 -0
- package/esm/src/book-components/Chat/utils/decodeJsonUnicodeEscapesInMarkdownText.d.ts +14 -0
- package/esm/src/book-components/Chat/utils/decodeJsonUnicodeEscapesInMarkdownText.test.d.ts +1 -0
- package/esm/src/book-components/Chat/utils/isVisibleChatToolCall.d.ts +10 -0
- package/esm/src/book-components/Chat/utils/parseCitationsFromContent.d.ts +4 -0
- package/esm/src/book-components/_common/Dropdown/Dropdown.d.ts +1 -1
- package/esm/src/book-components/_common/MenuHoisting/MenuHoistingContext.d.ts +1 -1
- package/esm/src/book-components/_common/Modal/Modal.d.ts +1 -1
- package/esm/src/book-components/icons/AboutIcon.d.ts +1 -1
- package/esm/src/book-components/icons/DownloadIcon.d.ts +1 -1
- package/esm/src/book-components/icons/ExitFullscreenIcon.d.ts +1 -1
- package/esm/src/book-components/icons/FullscreenIcon.d.ts +1 -1
- package/esm/src/cli/cli-commands/agent/agentCliOptions.d.ts +38 -0
- package/esm/src/cli/cli-commands/agent/chat.d.ts +10 -0
- package/esm/src/cli/cli-commands/agent/exec.d.ts +10 -0
- package/esm/src/cli/cli-commands/agent/run.test.d.ts +1 -0
- package/esm/src/cli/cli-commands/agent-folder/agentProjectPaths.d.ts +2 -24
- package/esm/src/cli/cli-commands/agent.d.ts +14 -0
- package/esm/src/cli/cli-commands/agents-server/buildAgentsServer.d.ts +17 -1
- package/esm/src/cli/cli-commands/agents-server/run.d.ts +6 -0
- package/esm/src/cli/cli-commands/agents-server/startAgentsServer.d.ts +9 -2
- package/esm/src/cli/cli-commands/coder/ThinkingLevel.d.ts +1 -1
- package/esm/src/cli/cli-commands/coder/ensureCoderDeveloperAgentFile.d.ts +25 -0
- package/esm/src/cli/cli-commands/coder/find-unwritten.d.ts +10 -0
- package/esm/src/cli/cli-commands/coder/initializeCoderProjectConfiguration.d.ts +2 -0
- package/esm/src/cli/cli-commands/coder/server.d.ts +13 -0
- package/esm/src/cli/cli-commands/coder/waitOptions.d.ts +14 -0
- package/esm/src/cli/cli-commands/common/promptRunnerCliOptions.d.ts +9 -25
- package/esm/src/collection/agent-collection/constructors/agent-collection-in-supabase/AgentCollectionInSupabase.d.ts +22 -0
- package/esm/src/commitments/_common/teamInternalAgentAccess.d.ts +9 -1
- package/esm/src/llm-providers/_common/register/$provideLlmToolsConfigurationFromEnv.d.ts +1 -1
- package/esm/src/llm-providers/_common/register/$provideLlmToolsFromEnv.d.ts +1 -1
- package/esm/src/scrapers/website/utils/createShowdownConverter.d.ts +2 -2
- package/esm/src/utils/isTimingSafeEqualString.d.ts +25 -0
- package/esm/src/utils/validators/url/isValidAgentUrl.d.ts +5 -0
- package/esm/src/version.d.ts +1 -1
- package/package.json +2 -2
- package/umd/index.umd.js +26885 -22410
- package/umd/index.umd.js.map +1 -1
- package/umd/scripts/run-agent-chat/executeAgentChatTurn.d.ts +28 -0
- package/umd/scripts/run-agent-messages/messages/buildAgentMessagePrompt.d.ts +4 -0
- package/umd/scripts/run-agent-messages/messages/buildAgentMessageScriptPath.d.ts +5 -0
- package/umd/scripts/run-agent-messages/messages/createAgentRunnerSystemMessage.d.ts +10 -0
- package/umd/scripts/run-codex-prompts/common/ProgressiveBackoff.d.ts +44 -0
- package/umd/scripts/run-codex-prompts/common/appendCoderContext.d.ts +4 -0
- package/umd/scripts/run-codex-prompts/common/formatUnknownErrorDetails.d.ts +4 -0
- package/umd/scripts/run-codex-prompts/common/runGoScript/$runGoScript.d.ts +5 -0
- package/umd/scripts/run-codex-prompts/common/runGoScript/$runGoScriptUntilMarkerIdle.d.ts +6 -0
- package/umd/scripts/run-codex-prompts/common/runGoScript/$runGoScriptWithOutput.d.ts +5 -0
- package/umd/scripts/run-codex-prompts/common/runGoScript/buildScriptLogPath.d.ts +4 -0
- package/umd/scripts/run-codex-prompts/common/runGoScript/buildTemporaryPromptScriptPath.d.ts +14 -0
- package/umd/scripts/run-codex-prompts/common/runGoScript/printLiveScriptChunk.d.ts +4 -0
- package/umd/scripts/run-codex-prompts/common/runGoScript/runBashScriptWithOutput.d.ts +5 -0
- package/umd/scripts/run-codex-prompts/common/runGoScript/runScriptUntilMarkerIdle.d.ts +6 -0
- package/umd/scripts/run-codex-prompts/common/runGoScript/scriptExecutionLog.d.ts +28 -0
- package/umd/scripts/run-codex-prompts/common/runGoScript/shouldDeleteTemporaryArtifact.d.ts +7 -0
- package/umd/scripts/run-codex-prompts/common/runGoScript/toPosixPath.d.ts +4 -0
- package/umd/scripts/run-codex-prompts/common/runGoScript/withPromptRuntimeLog.d.ts +6 -0
- package/umd/scripts/run-codex-prompts/common/runGoScript/withTempScript.d.ts +5 -0
- package/umd/scripts/run-codex-prompts/main/resolvePromptRunner.d.ts +24 -0
- package/umd/scripts/run-codex-prompts/runners/claude-code/ClaudeCodeRunner.d.ts +19 -0
- package/umd/scripts/run-codex-prompts/runners/claude-code/buildClaudeScript.d.ts +5 -0
- package/umd/scripts/run-codex-prompts/runners/claude-code/parseClaudeCodeJsonOutput.d.ts +5 -0
- package/umd/scripts/run-codex-prompts/runners/cline/ClineRunner.d.ts +19 -0
- package/umd/scripts/run-codex-prompts/runners/cline/buildClineScript.d.ts +5 -0
- package/umd/scripts/run-codex-prompts/runners/gemini/GeminiRunner.d.ts +23 -0
- package/umd/scripts/run-codex-prompts/runners/gemini/buildGeminiScript.d.ts +5 -0
- package/umd/scripts/run-codex-prompts/runners/gemini/gemini-pricing.d.ts +35 -0
- package/umd/scripts/run-codex-prompts/runners/gemini/parseGeminiUsageFromOutput.d.ts +9 -0
- package/umd/scripts/run-codex-prompts/runners/github-copilot/GitHubCopilotRunner.d.ts +19 -0
- package/umd/scripts/run-codex-prompts/runners/github-copilot/buildGitHubCopilotScript.d.ts +5 -0
- package/umd/scripts/run-codex-prompts/runners/openai-codex/CodexFailureHandling.d.ts +21 -0
- package/umd/scripts/run-codex-prompts/runners/openai-codex/OpenAiCodexRunner.d.ts +20 -0
- package/umd/scripts/run-codex-prompts/runners/openai-codex/buildCodexScript.d.ts +5 -0
- package/umd/scripts/run-codex-prompts/runners/openai-codex/buildCodexUsageFromOutput.d.ts +10 -0
- package/umd/scripts/run-codex-prompts/runners/opencode/OpencodeRunner.d.ts +19 -0
- package/umd/scripts/run-codex-prompts/runners/opencode/buildOpencodeScript.d.ts +5 -0
- package/umd/scripts/run-codex-prompts/runners/opencode/parseOpencodeJsonOutput.d.ts +5 -0
- package/umd/src/_packages/components.index.d.ts +4 -0
- package/umd/src/_packages/core.index.d.ts +0 -2
- package/umd/src/_packages/node.index.d.ts +40 -0
- package/umd/src/_packages/types.index.d.ts +18 -0
- package/umd/src/avatars/avatarAnimationScheduler.d.ts +4 -0
- package/umd/src/avatars/types/AvatarVisualDefinition.d.ts +1 -1
- package/umd/src/avatars/visuals/octopus3d3AvatarVisual.d.ts +7 -0
- package/umd/src/avatars/visuals/octopus3d4AvatarVisual.d.ts +7 -0
- package/umd/src/book-3.0/BookNodeAgentSource.d.ts +38 -0
- package/umd/src/book-3.0/CliAgent.d.ts +66 -0
- package/umd/src/book-3.0/CliAgent.test.d.ts +1 -0
- package/umd/src/book-3.0/LiteAgent.d.ts +68 -0
- package/umd/src/book-3.0/LiteAgent.test.d.ts +1 -0
- package/umd/src/book-3.0/agentFolderPaths.d.ts +30 -0
- package/umd/src/book-3.0/cliAgentEnv.d.ts +33 -0
- package/umd/src/book-components/BookEditor/BookEditor.d.ts +6 -5
- package/umd/src/book-components/BookEditor/BookEditorAboutPromptbookInformation.d.ts +12 -0
- package/umd/src/book-components/BookEditor/BookEditorBrowserConfig.d.ts +2 -0
- package/umd/src/book-components/BookEditor/BookEditorForClient.d.ts +7 -0
- package/umd/src/book-components/BookEditor/BookEditorMonacoTokenization.d.ts +1 -0
- package/umd/src/book-components/BookEditor/BookEditorTheme.d.ts +24 -0
- package/umd/src/book-components/BookEditor/createDeprecatedCommitmentDiagnostics.browser.d.ts +9 -0
- package/umd/src/book-components/BookEditor/useBookEditorMonacoLanguage.d.ts +1 -6
- package/umd/src/book-components/BookEditor/useBookEditorMonacoLifecycle.d.ts +1 -4
- package/umd/src/book-components/BookEditor/useBookEditorMonacoStyles.d.ts +2 -1
- package/umd/src/book-components/Chat/Chat/ChatCitationModal.d.ts +2 -0
- package/umd/src/book-components/Chat/Chat/ChatMessageItem.d.ts +4 -0
- package/umd/src/book-components/Chat/Chat/ChatMessageList.d.ts +4 -0
- package/umd/src/book-components/Chat/Chat/ChatProps.d.ts +5 -0
- package/umd/src/book-components/Chat/Chat/ChatToolCallModal.d.ts +2 -0
- package/umd/src/book-components/Chat/Chat/ChatToolCallModalContent.d.ts +3 -1
- package/umd/src/book-components/Chat/Chat/CitationIframePreview.d.ts +20 -0
- package/umd/src/book-components/Chat/Chat/TeamToolCallModalContent.d.ts +2 -0
- package/umd/src/book-components/Chat/MarkdownContent/MarkdownContent.d.ts +1 -0
- package/umd/src/book-components/Chat/SourceChip/SourceChip.d.ts +6 -1
- package/umd/src/book-components/Chat/hooks/useResolvedCitationLabel.d.ts +12 -0
- package/umd/src/book-components/Chat/types/ChatMessage.d.ts +4 -0
- package/umd/src/book-components/Chat/types/ChatParticipant.d.ts +1 -1
- package/umd/src/book-components/Chat/types/CitationLabelResolver.d.ts +8 -0
- package/umd/src/book-components/Chat/utils/citationHelpers.d.ts +9 -0
- package/umd/src/book-components/Chat/utils/decodeJsonUnicodeEscapesInMarkdownText.d.ts +14 -0
- package/umd/src/book-components/Chat/utils/decodeJsonUnicodeEscapesInMarkdownText.test.d.ts +1 -0
- package/umd/src/book-components/Chat/utils/isVisibleChatToolCall.d.ts +10 -0
- package/umd/src/book-components/Chat/utils/parseCitationsFromContent.d.ts +4 -0
- package/umd/src/book-components/_common/Dropdown/Dropdown.d.ts +1 -1
- package/umd/src/book-components/_common/MenuHoisting/MenuHoistingContext.d.ts +1 -1
- package/umd/src/book-components/_common/Modal/Modal.d.ts +1 -1
- package/umd/src/book-components/icons/AboutIcon.d.ts +1 -1
- package/umd/src/book-components/icons/DownloadIcon.d.ts +1 -1
- package/umd/src/book-components/icons/ExitFullscreenIcon.d.ts +1 -1
- package/umd/src/book-components/icons/FullscreenIcon.d.ts +1 -1
- package/umd/src/cli/cli-commands/agent/agentCliOptions.d.ts +38 -0
- package/umd/src/cli/cli-commands/agent/chat.d.ts +10 -0
- package/umd/src/cli/cli-commands/agent/exec.d.ts +10 -0
- package/umd/src/cli/cli-commands/agent/run.test.d.ts +1 -0
- package/umd/src/cli/cli-commands/agent-folder/agentProjectPaths.d.ts +2 -24
- package/umd/src/cli/cli-commands/agent.d.ts +14 -0
- package/umd/src/cli/cli-commands/agents-server/buildAgentsServer.d.ts +17 -1
- package/umd/src/cli/cli-commands/agents-server/run.d.ts +6 -0
- package/umd/src/cli/cli-commands/agents-server/startAgentsServer.d.ts +9 -2
- package/umd/src/cli/cli-commands/coder/ThinkingLevel.d.ts +1 -1
- package/umd/src/cli/cli-commands/coder/ensureCoderDeveloperAgentFile.d.ts +25 -0
- package/umd/src/cli/cli-commands/coder/find-unwritten.d.ts +10 -0
- package/umd/src/cli/cli-commands/coder/initializeCoderProjectConfiguration.d.ts +2 -0
- package/umd/src/cli/cli-commands/coder/server.d.ts +13 -0
- package/umd/src/cli/cli-commands/coder/waitOptions.d.ts +14 -0
- package/umd/src/cli/cli-commands/common/promptRunnerCliOptions.d.ts +9 -25
- package/umd/src/collection/agent-collection/constructors/agent-collection-in-supabase/AgentCollectionInSupabase.d.ts +22 -0
- package/umd/src/commitments/_common/teamInternalAgentAccess.d.ts +9 -1
- package/umd/src/llm-providers/_common/register/$provideLlmToolsConfigurationFromEnv.d.ts +1 -1
- package/umd/src/llm-providers/_common/register/$provideLlmToolsFromEnv.d.ts +1 -1
- package/umd/src/scrapers/website/utils/createShowdownConverter.d.ts +2 -2
- package/umd/src/utils/isTimingSafeEqualString.d.ts +25 -0
- package/umd/src/utils/validators/url/isValidAgentUrl.d.ts +5 -0
- package/umd/src/version.d.ts +1 -1
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type { AgentCliHistoryMessage, AgentCliRunOptions } from './AgentCliRunOptions';
|
|
2
|
+
/**
|
|
3
|
+
* Result of one local agent CLI turn.
|
|
4
|
+
*/
|
|
5
|
+
export type AgentChatTurnResult = {
|
|
6
|
+
readonly answer: string;
|
|
7
|
+
readonly workspacePath: string;
|
|
8
|
+
readonly messageFilePath: string;
|
|
9
|
+
readonly agentPath: string;
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* Options for executing one local agent CLI turn.
|
|
13
|
+
*/
|
|
14
|
+
export type ExecuteAgentChatTurnOptions = AgentCliRunOptions & {
|
|
15
|
+
readonly messages: ReadonlyArray<AgentCliHistoryMessage>;
|
|
16
|
+
readonly workspacePath?: string;
|
|
17
|
+
};
|
|
18
|
+
/**
|
|
19
|
+
* Executes one user turn by asking the selected harness to append `MESSAGE @Agent` to a temporary thread book.
|
|
20
|
+
*/
|
|
21
|
+
export declare function executeAgentChatTurn(options: ExecuteAgentChatTurnOptions): Promise<AgentChatTurnResult>;
|
|
22
|
+
/**
|
|
23
|
+
* Creates an isolated workspace path under the project-local Promptbook temporary directory.
|
|
24
|
+
*/
|
|
25
|
+
export declare function createAgentChatWorkspacePath(options: {
|
|
26
|
+
readonly currentWorkingDirectory: string;
|
|
27
|
+
readonly agentPath: string;
|
|
28
|
+
}): string;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { AgentModelRequirements } from '../../../src/book-2.0/agent-source/AgentModelRequirements';
|
|
2
|
+
import type { string_book } from '../../../src/book-2.0/agent-source/string_book';
|
|
3
|
+
/**
|
|
4
|
+
* Compiles agent source into the behavior text passed to CLI harness runners.
|
|
5
|
+
*/
|
|
6
|
+
export declare function createAgentRunnerSystemMessage(agentSource: string_book): Promise<string>;
|
|
7
|
+
/**
|
|
8
|
+
* Formats prepared model requirements for a text-only CLI harness prompt.
|
|
9
|
+
*/
|
|
10
|
+
export declare function formatAgentModelRequirementsForRunner(modelRequirements: AgentModelRequirements): string;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Default progressive delays used for rate-limit retries:
|
|
3
|
+
* 1 minute, 2 minutes, 5 minutes, 10 minutes, and 30 minutes.
|
|
4
|
+
*/
|
|
5
|
+
export declare const DEFAULT_PROGRESSIVE_BACKOFF_DELAYS_MS: readonly number[];
|
|
6
|
+
/**
|
|
7
|
+
* Options for one progressive backoff counter.
|
|
8
|
+
*/
|
|
9
|
+
export type ProgressiveBackoffOptions = {
|
|
10
|
+
delaysMs?: readonly number[];
|
|
11
|
+
maxDelayMs?: number;
|
|
12
|
+
jitterRatio?: number;
|
|
13
|
+
random?: () => number;
|
|
14
|
+
};
|
|
15
|
+
/**
|
|
16
|
+
* Stateful progressive backoff counter with optional jitter and capped maximum delay.
|
|
17
|
+
*/
|
|
18
|
+
export declare class ProgressiveBackoff {
|
|
19
|
+
private readonly delaysMs;
|
|
20
|
+
private readonly maxDelayMs;
|
|
21
|
+
private readonly jitterRatio;
|
|
22
|
+
private readonly random;
|
|
23
|
+
private failuresSinceSuccess;
|
|
24
|
+
/**
|
|
25
|
+
* Creates one progressive backoff counter.
|
|
26
|
+
*/
|
|
27
|
+
constructor(options?: ProgressiveBackoffOptions);
|
|
28
|
+
/**
|
|
29
|
+
* Number of consecutive failures since the last successful reset.
|
|
30
|
+
*/
|
|
31
|
+
get retryCount(): number;
|
|
32
|
+
/**
|
|
33
|
+
* Returns the next delay and advances the backoff counter by one failed attempt.
|
|
34
|
+
*/
|
|
35
|
+
nextDelayMs(): number;
|
|
36
|
+
/**
|
|
37
|
+
* Resets backoff state after one successful call.
|
|
38
|
+
*/
|
|
39
|
+
reset(): void;
|
|
40
|
+
/**
|
|
41
|
+
* Resolves the non-jittered delay for the given retry index.
|
|
42
|
+
*/
|
|
43
|
+
private resolveBaseDelayMs;
|
|
44
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { RunGoScriptOptions } from './RunGoScriptOptions';
|
|
2
|
+
/**
|
|
3
|
+
* Creates a temporary script file, runs it, and cleans it up unless preservation is requested or the run fails.
|
|
4
|
+
*/
|
|
5
|
+
export declare function $runGoScript(options: RunGoScriptOptions): Promise<void>;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { RunGoScriptUntilMarkerIdleOptions } from './RunGoScriptUntilMarkerIdleOptions';
|
|
2
|
+
/**
|
|
3
|
+
* Creates a temporary script file, runs it, waits for a completion marker and idle time, and cleans it up unless preservation is requested or the run fails.
|
|
4
|
+
* Returns the captured output for post-processing.
|
|
5
|
+
*/
|
|
6
|
+
export declare function $runGoScriptUntilMarkerIdle(options: RunGoScriptUntilMarkerIdleOptions): Promise<string>;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { RunGoScriptOptions } from './RunGoScriptOptions';
|
|
2
|
+
/**
|
|
3
|
+
* Creates a temporary script file, runs it, captures output, and cleans it up unless preservation is requested or the run fails.
|
|
4
|
+
*/
|
|
5
|
+
export declare function $runGoScriptWithOutput(options: RunGoScriptOptions): Promise<string>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Options used to build one Promptbook-owned temporary shell script path.
|
|
3
|
+
*/
|
|
4
|
+
type BuildTemporaryPromptScriptPathOptions = {
|
|
5
|
+
readonly projectPath: string;
|
|
6
|
+
readonly scriptDirectoryName: string;
|
|
7
|
+
readonly sourceFileName: string;
|
|
8
|
+
readonly suffix?: string;
|
|
9
|
+
};
|
|
10
|
+
/**
|
|
11
|
+
* Builds a normalized temporary shell script path for prompt runners.
|
|
12
|
+
*/
|
|
13
|
+
export declare function buildTemporaryPromptScriptPath(options: BuildTemporaryPromptScriptPathOptions): string;
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { RunGoScriptOptions } from './RunGoScriptOptions';
|
|
2
|
+
/**
|
|
3
|
+
* Runs one temporary bash script, optionally mirroring its raw input/output into a live runtime log file.
|
|
4
|
+
*/
|
|
5
|
+
export declare function runBashScriptWithOutput(options: RunGoScriptOptions): Promise<string>;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { RunScriptUntilMarkerIdleOptions } from './RunScriptUntilMarkerIdleOptions';
|
|
2
|
+
/**
|
|
3
|
+
* Runs a script until a completion marker is observed and output is idle for a set timeout.
|
|
4
|
+
* Returns the captured output.
|
|
5
|
+
*/
|
|
6
|
+
export declare function runScriptUntilMarkerIdle(options: RunScriptUntilMarkerIdleOptions): Promise<string>;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Environment variable read by the shell wrapper to tee live output into the temporary runtime log file.
|
|
3
|
+
*/
|
|
4
|
+
export declare const PTBK_CODER_LOG_FILE_ENV_NAME = "PTBK_CODER_LOG_FILE";
|
|
5
|
+
/**
|
|
6
|
+
* Shapes one bash invocation that optionally mirrors live script output into a temporary log file.
|
|
7
|
+
*/
|
|
8
|
+
export declare function buildLoggedBashExecution(scriptPath: string, logPath?: string): {
|
|
9
|
+
args: string[];
|
|
10
|
+
env?: Record<string, string>;
|
|
11
|
+
};
|
|
12
|
+
/**
|
|
13
|
+
* Appends one execution-start section with the raw script input before the shell begins producing output.
|
|
14
|
+
*/
|
|
15
|
+
export declare function appendScriptExecutionLogStart({ scriptPath, scriptContent, logPath, }: {
|
|
16
|
+
scriptPath: string;
|
|
17
|
+
scriptContent: string;
|
|
18
|
+
logPath?: string;
|
|
19
|
+
}): Promise<void>;
|
|
20
|
+
/**
|
|
21
|
+
* Appends one execution-finish section after the shell settles.
|
|
22
|
+
*/
|
|
23
|
+
export declare function appendScriptExecutionLogFinish({ scriptPath, logPath, status, details, }: {
|
|
24
|
+
scriptPath: string;
|
|
25
|
+
logPath?: string;
|
|
26
|
+
status: string;
|
|
27
|
+
details?: unknown;
|
|
28
|
+
}): Promise<void>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Decides whether one temporary prompt artifact should be deleted after a round finishes.
|
|
3
|
+
*/
|
|
4
|
+
export declare function shouldDeleteTemporaryArtifact({ preserveArtifactsOnSuccess, hasFailed, }: {
|
|
5
|
+
preserveArtifactsOnSuccess?: boolean;
|
|
6
|
+
hasFailed: boolean;
|
|
7
|
+
}): boolean;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Runs one prompt-processing round with a dedicated temporary runtime log file that is cleaned up only after successful non-preserved runs.
|
|
3
|
+
*/
|
|
4
|
+
export declare function withPromptRuntimeLog<T>(scriptPath: string, handler: (logPath: string) => Promise<T>, options?: {
|
|
5
|
+
preserveArtifactsOnSuccess?: boolean;
|
|
6
|
+
}): Promise<T>;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { RunGoScriptOptions } from './RunGoScriptOptions';
|
|
2
|
+
/**
|
|
3
|
+
* Creates a temporary script file, runs a handler, and cleans it up unless preservation is requested or the run fails.
|
|
4
|
+
*/
|
|
5
|
+
export declare function withTempScript<T>(options: RunGoScriptOptions, handler: (scriptPath: string) => Promise<T>): Promise<T>;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { RunOptions } from '../cli/RunOptions';
|
|
2
|
+
import type { PromptRunner } from '../runners/types/PromptRunner';
|
|
3
|
+
/**
|
|
4
|
+
* Runner metadata used in prompt status lines.
|
|
5
|
+
*/
|
|
6
|
+
type RunnerMetadata = {
|
|
7
|
+
runnerName: string;
|
|
8
|
+
modelName?: string;
|
|
9
|
+
};
|
|
10
|
+
/**
|
|
11
|
+
* Resolved runner setup used by `runCodexPrompts`.
|
|
12
|
+
*/
|
|
13
|
+
type PromptRunnerResolution = {
|
|
14
|
+
runner: PromptRunner;
|
|
15
|
+
actualRunnerModel?: string;
|
|
16
|
+
runnerMetadata: RunnerMetadata;
|
|
17
|
+
};
|
|
18
|
+
/**
|
|
19
|
+
* Resolves the configured prompt runner together with status-line metadata.
|
|
20
|
+
*
|
|
21
|
+
* @private function of runCodexPrompts
|
|
22
|
+
*/
|
|
23
|
+
export declare function resolvePromptRunner(options: RunOptions): PromptRunnerResolution;
|
|
24
|
+
export {};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { PromptRunOptions } from '../types/PromptRunOptions';
|
|
2
|
+
import type { PromptRunResult } from '../types/PromptRunResult';
|
|
3
|
+
import type { PromptRunner } from '../types/PromptRunner';
|
|
4
|
+
import type { ClaudeCodeRunnerOptions } from './ClaudeCodeRunnerOptions';
|
|
5
|
+
/**
|
|
6
|
+
* Runs prompts via the Claude Code CLI.
|
|
7
|
+
*/
|
|
8
|
+
export declare class ClaudeCodeRunner implements PromptRunner {
|
|
9
|
+
private readonly options;
|
|
10
|
+
readonly name = "claude-code";
|
|
11
|
+
/**
|
|
12
|
+
* Creates a new Claude Code runner.
|
|
13
|
+
*/
|
|
14
|
+
constructor(options?: ClaudeCodeRunnerOptions);
|
|
15
|
+
/**
|
|
16
|
+
* Runs the prompt using Claude Code and parses usage output.
|
|
17
|
+
*/
|
|
18
|
+
runPrompt(options: PromptRunOptions): Promise<PromptRunResult>;
|
|
19
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { PromptRunOptions } from '../types/PromptRunOptions';
|
|
2
|
+
import type { PromptRunResult } from '../types/PromptRunResult';
|
|
3
|
+
import type { PromptRunner } from '../types/PromptRunner';
|
|
4
|
+
import type { ClineRunnerOptions } from './ClineRunnerOptions';
|
|
5
|
+
/**
|
|
6
|
+
* Runs prompts via the Cline CLI.
|
|
7
|
+
*/
|
|
8
|
+
export declare class ClineRunner implements PromptRunner {
|
|
9
|
+
private readonly options;
|
|
10
|
+
readonly name = "cline";
|
|
11
|
+
/**
|
|
12
|
+
* Creates a new Cline runner.
|
|
13
|
+
*/
|
|
14
|
+
constructor(options: ClineRunnerOptions);
|
|
15
|
+
/**
|
|
16
|
+
* Runs the prompt using the Cline CLI.
|
|
17
|
+
*/
|
|
18
|
+
runPrompt(options: PromptRunOptions): Promise<PromptRunResult>;
|
|
19
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { PromptRunner } from '../types/PromptRunner';
|
|
2
|
+
import type { PromptRunOptions } from '../types/PromptRunOptions';
|
|
3
|
+
import type { PromptRunResult } from '../types/PromptRunResult';
|
|
4
|
+
import type { GeminiRunnerOptions } from './GeminiRunnerOptions';
|
|
5
|
+
/**
|
|
6
|
+
* Default Gemini model used by the coding runner.
|
|
7
|
+
*/
|
|
8
|
+
export declare const DEFAULT_GEMINI_MODEL = "gemini-3.1-pro-preview";
|
|
9
|
+
/**
|
|
10
|
+
* Runs prompts via the Gemini CLI.
|
|
11
|
+
*/
|
|
12
|
+
export declare class GeminiRunner implements PromptRunner {
|
|
13
|
+
private readonly options;
|
|
14
|
+
readonly name = "gemini";
|
|
15
|
+
/**
|
|
16
|
+
* Creates a new Gemini runner.
|
|
17
|
+
*/
|
|
18
|
+
constructor(options: GeminiRunnerOptions);
|
|
19
|
+
/**
|
|
20
|
+
* Runs the prompt using Gemini and parses usage output.
|
|
21
|
+
*/
|
|
22
|
+
runPrompt(options: PromptRunOptions): Promise<PromptRunResult>;
|
|
23
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The pricing for Gemini models per 1 million tokens in USD.
|
|
3
|
+
*
|
|
4
|
+
* Note: This is an estimation.
|
|
5
|
+
*
|
|
6
|
+
* @see https://ai.google.dev/pricing
|
|
7
|
+
*/
|
|
8
|
+
export declare const GEMINI_PRICING: {
|
|
9
|
+
'gemini-1.5-flash': {
|
|
10
|
+
input: number;
|
|
11
|
+
output: number;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
/**
|
|
15
|
+
* The model to use for price estimation.
|
|
16
|
+
*/
|
|
17
|
+
export declare const GEMINI_MODEL_FOR_ESTIMATION = "gemini-1.5-flash";
|
|
18
|
+
/**
|
|
19
|
+
* Gemini pricing entry per 1 million tokens.
|
|
20
|
+
*/
|
|
21
|
+
export type GeminiPricing = {
|
|
22
|
+
input: number;
|
|
23
|
+
output: number;
|
|
24
|
+
};
|
|
25
|
+
/**
|
|
26
|
+
* Resolves Gemini pricing for the requested model.
|
|
27
|
+
*
|
|
28
|
+
* It first tries exact match, then prefix match, then falls back to a stable
|
|
29
|
+
* default pricing model.
|
|
30
|
+
*/
|
|
31
|
+
export declare function resolveGeminiPricing(modelName?: string): GeminiPricing;
|
|
32
|
+
/**
|
|
33
|
+
* A an estimation of how many characters are in one token.
|
|
34
|
+
*/
|
|
35
|
+
export declare const CHARS_PER_TOKEN = 4;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { Usage } from '../../../../src/execution/Usage';
|
|
2
|
+
/**
|
|
3
|
+
* Parses Gemini CLI output and extracts usage information.
|
|
4
|
+
*
|
|
5
|
+
* @param output The output from the Gemini CLI.
|
|
6
|
+
* @param prompt The prompt that was sent to the Gemini CLI.
|
|
7
|
+
* @param modelName The Gemini model used for this run.
|
|
8
|
+
*/
|
|
9
|
+
export declare function parseGeminiUsageFromOutput(output: string, prompt: string, modelName?: string): Usage;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { PromptRunner } from '../types/PromptRunner';
|
|
2
|
+
import type { PromptRunOptions } from '../types/PromptRunOptions';
|
|
3
|
+
import type { PromptRunResult } from '../types/PromptRunResult';
|
|
4
|
+
import type { GitHubCopilotRunnerOptions } from './GitHubCopilotRunnerOptions';
|
|
5
|
+
/**
|
|
6
|
+
* Runs prompts via the GitHub Copilot CLI.
|
|
7
|
+
*/
|
|
8
|
+
export declare class GitHubCopilotRunner implements PromptRunner {
|
|
9
|
+
private readonly options;
|
|
10
|
+
readonly name = "github-copilot";
|
|
11
|
+
/**
|
|
12
|
+
* Creates a new GitHub Copilot runner.
|
|
13
|
+
*/
|
|
14
|
+
constructor(options: GitHubCopilotRunnerOptions);
|
|
15
|
+
/**
|
|
16
|
+
* Runs the prompt using GitHub Copilot CLI.
|
|
17
|
+
*/
|
|
18
|
+
runPrompt(options: PromptRunOptions): Promise<PromptRunResult>;
|
|
19
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { GitHubCopilotScriptOptions } from './GitHubCopilotScriptOptions';
|
|
2
|
+
/**
|
|
3
|
+
* Builds the shell script that runs GitHub Copilot CLI with the prompt and coding context.
|
|
4
|
+
*/
|
|
5
|
+
export declare function buildGitHubCopilotScript(options: GitHubCopilotScriptOptions): string;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { NotAllowed } from '../../../../src/errors/NotAllowed';
|
|
2
|
+
/**
|
|
3
|
+
* Failure category used by OpenAI Codex retry/fail-fast handling.
|
|
4
|
+
*/
|
|
5
|
+
export type CodexFailureKind = 'credits-required' | 'rate-limit' | 'other';
|
|
6
|
+
/**
|
|
7
|
+
* Classifies one Codex failure message into retry/fail-fast categories.
|
|
8
|
+
*/
|
|
9
|
+
export declare function classifyCodexFailure(details: string): CodexFailureKind;
|
|
10
|
+
/**
|
|
11
|
+
* Builds a fail-fast error for cases where credit spending is disallowed.
|
|
12
|
+
*/
|
|
13
|
+
export declare function buildCreditsDisallowedError(details: string): NotAllowed;
|
|
14
|
+
/**
|
|
15
|
+
* Extracts a text description from unknown thrown values.
|
|
16
|
+
*/
|
|
17
|
+
export declare function extractCodexFailureDetails(error: unknown): string;
|
|
18
|
+
/**
|
|
19
|
+
* Trims very long CLI error output to keep logs and thrown messages readable.
|
|
20
|
+
*/
|
|
21
|
+
export declare function limitErrorDetails(details: string, maxChars?: number): string;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { PromptRunOptions } from '../types/PromptRunOptions';
|
|
2
|
+
import type { PromptRunResult } from '../types/PromptRunResult';
|
|
3
|
+
import type { PromptRunner } from '../types/PromptRunner';
|
|
4
|
+
import type { OpenAiCodexRunnerOptions } from './OpenAiCodexRunnerOptions';
|
|
5
|
+
/**
|
|
6
|
+
* Runs prompts via the OpenAI Codex CLI.
|
|
7
|
+
*/
|
|
8
|
+
export declare class OpenAiCodexRunner implements PromptRunner {
|
|
9
|
+
private readonly options;
|
|
10
|
+
readonly name = "codex";
|
|
11
|
+
private readonly rateLimitBackoff;
|
|
12
|
+
/**
|
|
13
|
+
* Creates a new Codex runner.
|
|
14
|
+
*/
|
|
15
|
+
constructor(options: OpenAiCodexRunnerOptions);
|
|
16
|
+
/**
|
|
17
|
+
* Runs the Codex prompt in a temporary script and waits for completion output.
|
|
18
|
+
*/
|
|
19
|
+
runPrompt(options: PromptRunOptions): Promise<PromptRunResult>;
|
|
20
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { Usage } from '../../../../src/execution/Usage';
|
|
2
|
+
/**
|
|
3
|
+
* Heuristic share of the total tokens that are expected to come from completion tokens
|
|
4
|
+
* when Codex only reports a single total value.
|
|
5
|
+
*/
|
|
6
|
+
export declare const DEFAULT_CODEX_COMPLETION_SHARE = 0.1;
|
|
7
|
+
/**
|
|
8
|
+
* Builds usage stats from Codex CLI output.
|
|
9
|
+
*/
|
|
10
|
+
export declare function buildCodexUsageFromOutput(output: string, modelName: string): Usage;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { PromptRunOptions } from '../types/PromptRunOptions';
|
|
2
|
+
import type { PromptRunResult } from '../types/PromptRunResult';
|
|
3
|
+
import type { PromptRunner } from '../types/PromptRunner';
|
|
4
|
+
import type { OpencodeRunnerOptions } from './OpencodeRunnerOptions';
|
|
5
|
+
/**
|
|
6
|
+
* Runs prompts via the Opencode CLI.
|
|
7
|
+
*/
|
|
8
|
+
export declare class OpencodeRunner implements PromptRunner {
|
|
9
|
+
private readonly options;
|
|
10
|
+
readonly name = "opencode";
|
|
11
|
+
/**
|
|
12
|
+
* Creates a new Opencode runner.
|
|
13
|
+
*/
|
|
14
|
+
constructor(options: OpencodeRunnerOptions);
|
|
15
|
+
/**
|
|
16
|
+
* Runs the prompt using Opencode and parses usage output.
|
|
17
|
+
*/
|
|
18
|
+
runPrompt(options: PromptRunOptions): Promise<PromptRunResult>;
|
|
19
|
+
}
|
|
@@ -12,6 +12,7 @@ import type { BookEditorUploadProgressCallback } from '../book-components/BookEd
|
|
|
12
12
|
import type { BookEditorUploadOptions } from '../book-components/BookEditor/BookEditor';
|
|
13
13
|
import type { BookEditorProps } from '../book-components/BookEditor/BookEditor';
|
|
14
14
|
import { BookEditor } from '../book-components/BookEditor/BookEditor';
|
|
15
|
+
import { BookEditorForClient } from '../book-components/BookEditor/BookEditorForClient';
|
|
15
16
|
import { AgentChat } from '../book-components/Chat/AgentChat/AgentChat';
|
|
16
17
|
import type { AgentChatProps } from '../book-components/Chat/AgentChat/AgentChatProps';
|
|
17
18
|
import { Chat } from '../book-components/Chat/Chat/Chat';
|
|
@@ -65,6 +66,7 @@ import type { ChatProgressCard } from '../book-components/Chat/types/ChatMessage
|
|
|
65
66
|
import type { ChatMessageReplyingTo } from '../book-components/Chat/types/ChatMessage';
|
|
66
67
|
import type { ChatMessage } from '../book-components/Chat/types/ChatMessage';
|
|
67
68
|
import type { ChatParticipant } from '../book-components/Chat/types/ChatParticipant';
|
|
69
|
+
import type { CitationLabelResolver } from '../book-components/Chat/types/CitationLabelResolver';
|
|
68
70
|
import type { MessageButton } from '../book-components/Chat/utils/parseMessageButtons';
|
|
69
71
|
import { parseMessageButtons } from '../book-components/Chat/utils/parseMessageButtons';
|
|
70
72
|
import { ArrowIcon } from '../book-components/icons/ArrowIcon';
|
|
@@ -95,6 +97,7 @@ export type { BookEditorUploadProgressCallback };
|
|
|
95
97
|
export type { BookEditorUploadOptions };
|
|
96
98
|
export type { BookEditorProps };
|
|
97
99
|
export { BookEditor };
|
|
100
|
+
export { BookEditorForClient };
|
|
98
101
|
export { AgentChat };
|
|
99
102
|
export type { AgentChatProps };
|
|
100
103
|
export { Chat };
|
|
@@ -148,6 +151,7 @@ export type { ChatProgressCard };
|
|
|
148
151
|
export type { ChatMessageReplyingTo };
|
|
149
152
|
export type { ChatMessage };
|
|
150
153
|
export type { ChatParticipant };
|
|
154
|
+
export type { CitationLabelResolver };
|
|
151
155
|
export type { MessageButton };
|
|
152
156
|
export { parseMessageButtons };
|
|
153
157
|
export { ArrowIcon };
|
|
@@ -221,7 +221,6 @@ import { normalizeChatAttachments } from '../utils/chat/chatAttachments/normaliz
|
|
|
221
221
|
import { resolveChatAttachmentContents } from '../utils/chat/chatAttachments/resolveChatAttachmentContents';
|
|
222
222
|
import { aboutPromptbookInformation } from '../utils/misc/aboutPromptbookInformation';
|
|
223
223
|
import { $generateBookBoilerplate } from '../utils/random/$generateBookBoilerplate';
|
|
224
|
-
import { CORE_AGENTS_SERVER } from '../../servers';
|
|
225
224
|
import { CORE_AGENTS_SERVER_WELL_KNOWN_AGENT_NAMES } from '../../servers';
|
|
226
225
|
import { PUBLIC_AGENTS_SERVERS } from '../../servers';
|
|
227
226
|
export { BOOK_LANGUAGE_VERSION, PROMPTBOOK_ENGINE_VERSION };
|
|
@@ -447,6 +446,5 @@ export { normalizeChatAttachments };
|
|
|
447
446
|
export { resolveChatAttachmentContents };
|
|
448
447
|
export { aboutPromptbookInformation };
|
|
449
448
|
export { $generateBookBoilerplate };
|
|
450
|
-
export { CORE_AGENTS_SERVER };
|
|
451
449
|
export { CORE_AGENTS_SERVER_WELL_KNOWN_AGENT_NAMES };
|
|
452
450
|
export { PUBLIC_AGENTS_SERVERS };
|
|
@@ -1,4 +1,24 @@
|
|
|
1
1
|
import { BOOK_LANGUAGE_VERSION, PROMPTBOOK_ENGINE_VERSION } from '../version';
|
|
2
|
+
import { AGENT_BOOK_FILE_PATH } from '../book-3.0/agentFolderPaths';
|
|
3
|
+
import { AGENT_MESSAGES_DIRECTORY_PATH } from '../book-3.0/agentFolderPaths';
|
|
4
|
+
import { AGENT_QUEUED_MESSAGES_DIRECTORY_PATH } from '../book-3.0/agentFolderPaths';
|
|
5
|
+
import { AGENT_FINISHED_MESSAGES_DIRECTORY_PATH } from '../book-3.0/agentFolderPaths';
|
|
6
|
+
import { AGENT_FAILED_MESSAGES_DIRECTORY_PATH } from '../book-3.0/agentFolderPaths';
|
|
7
|
+
import type { BookNodeAgentSource } from '../book-3.0/BookNodeAgentSource';
|
|
8
|
+
import type { BookNodeAgentSourceOptions } from '../book-3.0/BookNodeAgentSource';
|
|
9
|
+
import type { CliAgentHarness } from '../book-3.0/CliAgent';
|
|
10
|
+
import type { CliAgentThinkingLevel } from '../book-3.0/CliAgent';
|
|
11
|
+
import type { CliAgentRunOptions } from '../book-3.0/CliAgent';
|
|
12
|
+
import type { CliAgentOptions } from '../book-3.0/CliAgent';
|
|
13
|
+
import { CliAgent } from '../book-3.0/CliAgent';
|
|
14
|
+
import { CLI_AGENT_HARNESS_NAMES } from '../book-3.0/cliAgentEnv';
|
|
15
|
+
import { CLI_AGENT_THINKING_LEVEL_VALUES } from '../book-3.0/cliAgentEnv';
|
|
16
|
+
import { PTBK_HARNESS_ENV } from '../book-3.0/cliAgentEnv';
|
|
17
|
+
import { PTBK_MODEL_ENV } from '../book-3.0/cliAgentEnv';
|
|
18
|
+
import { PTBK_THINKING_LEVEL_ENV } from '../book-3.0/cliAgentEnv';
|
|
19
|
+
import type { LiteAgentOptions } from '../book-3.0/LiteAgent';
|
|
20
|
+
import type { LiteAgentRunOptions } from '../book-3.0/LiteAgent';
|
|
21
|
+
import { LiteAgent } from '../book-3.0/LiteAgent';
|
|
2
22
|
import { createPipelineCollectionFromDirectory } from '../collection/pipeline-collection/constructors/createPipelineCollectionFromDirectory';
|
|
3
23
|
import { getAllCommitmentsToolFunctionsForNode } from '../commitments/_common/getAllCommitmentsToolFunctionsForNode';
|
|
4
24
|
import { $provideExecutablesForNode } from '../executables/$provideExecutablesForNode';
|
|
@@ -12,6 +32,26 @@ import { FileCacheStorage } from '../storage/file-cache-storage/FileCacheStorage
|
|
|
12
32
|
import { $execCommand } from '../utils/execCommand/$execCommand';
|
|
13
33
|
import { $execCommands } from '../utils/execCommand/$execCommands';
|
|
14
34
|
export { BOOK_LANGUAGE_VERSION, PROMPTBOOK_ENGINE_VERSION };
|
|
35
|
+
export { AGENT_BOOK_FILE_PATH };
|
|
36
|
+
export { AGENT_MESSAGES_DIRECTORY_PATH };
|
|
37
|
+
export { AGENT_QUEUED_MESSAGES_DIRECTORY_PATH };
|
|
38
|
+
export { AGENT_FINISHED_MESSAGES_DIRECTORY_PATH };
|
|
39
|
+
export { AGENT_FAILED_MESSAGES_DIRECTORY_PATH };
|
|
40
|
+
export type { BookNodeAgentSource };
|
|
41
|
+
export type { BookNodeAgentSourceOptions };
|
|
42
|
+
export type { CliAgentHarness };
|
|
43
|
+
export type { CliAgentThinkingLevel };
|
|
44
|
+
export type { CliAgentRunOptions };
|
|
45
|
+
export type { CliAgentOptions };
|
|
46
|
+
export { CliAgent };
|
|
47
|
+
export { CLI_AGENT_HARNESS_NAMES };
|
|
48
|
+
export { CLI_AGENT_THINKING_LEVEL_VALUES };
|
|
49
|
+
export { PTBK_HARNESS_ENV };
|
|
50
|
+
export { PTBK_MODEL_ENV };
|
|
51
|
+
export { PTBK_THINKING_LEVEL_ENV };
|
|
52
|
+
export type { LiteAgentOptions };
|
|
53
|
+
export type { LiteAgentRunOptions };
|
|
54
|
+
export { LiteAgent };
|
|
15
55
|
export { createPipelineCollectionFromDirectory };
|
|
16
56
|
export { getAllCommitmentsToolFunctionsForNode };
|
|
17
57
|
export { $provideExecutablesForNode };
|