@promptbook/node 0.114.0-3 → 0.114.0-30
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 +10 -18
- package/esm/index.es.js +2117 -4853
- package/esm/index.es.js.map +1 -1
- package/esm/scripts/run-agent-messages/messages/buildAgentGoalChatPromptSection.d.ts +26 -0
- package/esm/scripts/run-agent-messages/messages/buildAgentMessagePrompt.d.ts +12 -1
- package/esm/scripts/run-agent-messages/messages/buildAgentProjectsPromptSection.d.ts +2 -14
- package/esm/scripts/run-agent-messages/messages/buildAgentTeamPromptSection.d.ts +12 -0
- package/esm/scripts/run-codex-prompts/common/runGoScript/$spawnLoggedBashScript.d.ts +25 -0
- package/esm/scripts/run-codex-prompts/common/runGoScript/$terminateLoggedBashProcessTree.d.ts +11 -0
- package/esm/scripts/run-codex-prompts/common/runGoScript/scriptExecutionLog.d.ts +4 -0
- package/esm/scripts/run-codex-prompts/common/waitForPause.d.ts +92 -0
- package/esm/scripts/run-codex-prompts/common/waitForSkippableWorldTimeDeadline.d.ts +15 -0
- package/esm/scripts/run-codex-prompts/runners/claude-code/ClaudeCodeRunner.d.ts +15 -0
- package/esm/scripts/run-codex-prompts/runners/claude-code/parseClaudeCodeOutputEvents.d.ts +3 -0
- package/esm/scripts/run-codex-prompts/runners/claude-code/parseClaudeCodeSubscriptionUsage.d.ts +11 -0
- package/esm/scripts/run-codex-prompts/runners/common/estimateUsageFromTextLength.d.ts +33 -0
- package/esm/scripts/run-codex-prompts/runners/common/modelPricing.d.ts +41 -0
- package/esm/scripts/run-codex-prompts/runners/gemini/gemini-pricing.d.ts +5 -18
- package/esm/scripts/run-codex-prompts/runners/openai-codex/OpenAiCodexRunner.d.ts +8 -0
- package/esm/scripts/run-codex-prompts/runners/openai-codex/buildCodexUsageFromOutput.d.ts +4 -1
- package/esm/scripts/run-codex-prompts/runners/openai-codex/getCodexSubscriptionUsage.d.ts +19 -0
- package/esm/scripts/run-codex-prompts/runners/qwen-code/QwenCodeRunner.d.ts +23 -0
- package/esm/scripts/run-codex-prompts/runners/qwen-code/buildQwenCodeScript.d.ts +8 -0
- package/esm/scripts/run-codex-prompts/runners/qwen-code/parseQwenCodeUsageFromOutput.d.ts +9 -0
- package/esm/scripts/run-codex-prompts/runners/qwen-code/qwen-code-pricing.d.ts +30 -0
- package/esm/scripts/run-codex-prompts/runners/types/HarnessSubscriptionUsage.d.ts +43 -0
- package/esm/src/_packages/components.index.d.ts +4 -0
- package/esm/src/_packages/types.index.d.ts +4 -0
- package/esm/src/avatars/renderAvatarVisualTerminalText.d.ts +80 -0
- package/esm/src/avatars/types/AvatarVisualDefinition.d.ts +54 -0
- package/esm/src/book-2.0/agent-source/AgentBasicInformation.d.ts +3 -3
- package/esm/src/book-2.0/agent-source/AgentSourceParseResult.d.ts +5 -0
- package/esm/src/book-2.0/agent-source/ParsedUnknownCommitment.d.ts +26 -0
- package/esm/src/book-2.0/agent-source/getBookCommitmentLineType.d.ts +19 -0
- package/esm/src/book-3.0/AgentMessageRunReport.d.ts +46 -0
- package/esm/src/book-3.0/AgentPlannedMessagesSidecar.d.ts +127 -0
- package/esm/src/book-3.0/AgentTeamConversationWorkspace.d.ts +85 -0
- package/esm/src/book-3.0/cliAgentEnv.d.ts +3 -3
- package/esm/src/book-3.0/createAgentMessageSidecarBaseName.d.ts +13 -0
- package/esm/src/book-3.0/describeAgentPlannedMessageSchedule.d.ts +31 -0
- package/esm/src/book-components/BookEditor/createDeprecatedCommitmentDiagnostics.browser.d.ts +1 -9
- package/esm/src/book-components/BookEditor/createDuplicateFromCommitmentDiagnostics.d.ts +28 -0
- package/esm/src/book-components/BookEditor/createUnknownCommitmentDiagnostics.d.ts +28 -0
- package/esm/src/book-components/Chat/Chat/ChatProps.d.ts +3 -2
- package/esm/src/book-components/Chat/Chat/renderAgentProjectDiff.d.ts +13 -0
- package/esm/src/book-components/Chat/Chat/renderAgentProjectToolCallDetails.d.ts +16 -0
- package/esm/src/book-components/Chat/utils/agentProjectToolCall.d.ts +85 -0
- package/esm/src/book-components/Chat/utils/externalSourceToolCall.d.ts +38 -0
- package/esm/src/book-components/Chat/utils/renderMarkdown.d.ts +68 -3
- package/esm/src/book-components/Chat/utils/timeoutToolCallPresentation.d.ts +30 -0
- package/esm/src/cli/cli-commands/coder/GitChangesMode.d.ts +28 -0
- package/esm/src/cli/cli-commands/coder/boilerplateCount.d.ts +52 -0
- package/esm/src/cli/cli-commands/coder/generate-boilerplates.d.ts +4 -3
- package/esm/src/cli/cli-commands/coder/verify.d.ts +1 -1
- package/esm/src/cli/cli-commands/coder/waitOptions.d.ts +12 -0
- package/esm/src/cli/cli-commands/common/harness/$applyHarnessInstallationStatus.d.ts +1 -1
- package/esm/src/cli/cli-commands/common/harness/$checkHarnessInstallation.d.ts +3 -3
- package/esm/src/cli/cli-commands/common/harness/$ensureHarnessInstallations.d.ts +3 -3
- package/esm/src/cli/cli-commands/common/harness/$resolveHarnessCommandPath.d.ts +14 -0
- package/esm/src/cli/cli-commands/common/harness/$resolveHarnessInstallationOrigin.d.ts +10 -0
- package/esm/src/cli/cli-commands/common/harness/$runHarnessInstallationCommand.d.ts +43 -0
- package/esm/src/cli/cli-commands/common/harness/HarnessDefinition.d.ts +26 -0
- package/esm/src/cli/cli-commands/common/harness/HarnessInstallationOrigin.d.ts +36 -0
- package/esm/src/cli/cli-commands/common/harness/HarnessInstallationStatus.d.ts +8 -2
- package/esm/src/cli/cli-commands/common/harness/HarnessUpdatePlan.d.ts +23 -0
- package/esm/src/cli/cli-commands/common/harness/buildHarnessInstallCommand.d.ts +4 -1
- package/esm/src/cli/cli-commands/common/harness/formatHarnessManualUpdateInstruction.d.ts +8 -0
- package/esm/src/cli/cli-commands/common/harness/resolveHarnessInstallationMethodFromPaths.d.ts +31 -0
- package/esm/src/cli/cli-commands/common/harness/resolveHarnessUpdatePlan.d.ts +12 -0
- package/esm/src/cli/cli-commands/common/harnessUpdateCliOptions.d.ts +29 -0
- package/{umd/src/cli/cli-commands/common/harness/$askForHarnessInstallationApproval.d.ts → esm/src/cli/cli-commands/common/npm/$askForNpmPackageInstallationApproval.d.ts} +2 -2
- package/{umd/src/cli/cli-commands/common/harness/$resolveLatestHarnessVersion.d.ts → esm/src/cli/cli-commands/common/npm/$resolveLatestNpmPackageVersion.d.ts} +2 -3
- package/esm/src/cli/cli-commands/common/npm/$resolveNpmGlobalPrefixPath.d.ts +9 -0
- package/esm/src/cli/cli-commands/common/npm/buildNpmPackageInstallCommand.d.ts +12 -0
- package/esm/src/cli/cli-commands/common/npm/extractNpmPackageVersionFromOutput.d.ts +12 -0
- package/esm/src/cli/cli-commands/common/npm/isNpmPackageVersionOutdated.d.ts +12 -0
- package/esm/src/cli/cli-commands/common/promptRunnerCliOptions.d.ts +17 -4
- package/esm/src/cli/cli-commands/common/promptbook-cli/$checkPromptbookCliInstallations.d.ts +9 -0
- package/esm/src/cli/cli-commands/common/promptbook-cli/$ensurePromptbookCliInstallations.d.ts +14 -0
- package/esm/src/cli/cli-commands/common/promptbook-cli/$resolvePromptbookCliInstallations.d.ts +12 -0
- package/esm/src/cli/cli-commands/common/promptbook-cli/$updatePromptbookCliInstallation.d.ts +10 -0
- package/esm/src/cli/cli-commands/common/promptbook-cli/PromptbookCliInstallation.d.ts +66 -0
- package/esm/src/cli/cli-commands/common/promptbook-cli/PromptbookCliInstallationStatus.d.ts +26 -0
- package/esm/src/cli/cli-commands/common/promptbook-cli/buildPromptbookCliInstallCommand.d.ts +7 -0
- package/esm/src/cli/cli-commands/common/promptbook-cli/formatPromptbookCliInstallationWarning.d.ts +7 -0
- package/esm/src/collection/agent-collection/constructors/agent-collection-in-supabase/AgentCollectionInSupabase.d.ts +15 -0
- package/esm/src/commitments/{COMPONENT/COMPONENT.d.ts → META_FULLNAME/META_FULLNAME.d.ts} +8 -5
- package/esm/src/commitments/META_ID/META_ID.d.ts +32 -0
- package/esm/src/commitments/WRITING_RULES/WRITING_RULES.d.ts +14 -7
- package/esm/src/commitments/index.d.ts +4 -12
- package/esm/src/executables/platforms/locateAppOnWindows.d.ts +1 -1
- package/esm/src/llm-providers/agent/Agent.d.ts +1 -1
- package/esm/src/llm-providers/openai/OpenAiAgentKitExecutionToolsToolBuilder.d.ts +1 -1
- package/esm/src/{commitments/USE_BROWSER → scrapers/_common/utils}/fetchUrlContent.d.ts +2 -3
- package/esm/src/utils/agent-message-runtime/AgentMessageProjectChange.d.ts +76 -0
- package/esm/src/utils/agent-message-runtime/AgentMessageTouchedExternalSource.d.ts +45 -0
- package/esm/src/utils/agent-message-runtime/parseAgentMessageRuntimeLogEvents.d.ts +62 -0
- package/esm/src/utils/agent-message-runtime/resolveAgentMessageRuntimeActivity.d.ts +3 -3
- package/esm/src/utils/agent-message-runtime/resolveAgentMessageTouchedExternalSources.d.ts +18 -0
- package/esm/src/utils/agent-message-runtime/resolveAgentMessageTouchedProjectNames.d.ts +19 -0
- package/esm/src/utils/agents/terminalAgentAvatarVisual.d.ts +5 -2
- package/esm/src/utils/ascii-art/convertImageDataToAsciiArt.d.ts +6 -0
- package/esm/src/utils/ascii-art/createAnsiColorCode.d.ts +46 -0
- package/esm/src/utils/misc/debounce.d.ts +4 -2
- package/esm/src/utils/misc/emojis.d.ts +3 -2
- package/esm/src/version.d.ts +1 -1
- package/package.json +2 -5
- package/umd/index.umd.js +2117 -4854
- package/umd/index.umd.js.map +1 -1
- package/umd/scripts/run-agent-messages/messages/buildAgentGoalChatPromptSection.d.ts +26 -0
- package/umd/scripts/run-agent-messages/messages/buildAgentMessagePrompt.d.ts +12 -1
- package/umd/scripts/run-agent-messages/messages/buildAgentProjectsPromptSection.d.ts +2 -14
- package/umd/scripts/run-agent-messages/messages/buildAgentTeamPromptSection.d.ts +12 -0
- package/umd/scripts/run-codex-prompts/common/runGoScript/$spawnLoggedBashScript.d.ts +25 -0
- package/umd/scripts/run-codex-prompts/common/runGoScript/$terminateLoggedBashProcessTree.d.ts +11 -0
- package/umd/scripts/run-codex-prompts/common/runGoScript/scriptExecutionLog.d.ts +4 -0
- package/umd/scripts/run-codex-prompts/common/waitForPause.d.ts +92 -0
- package/umd/scripts/run-codex-prompts/common/waitForSkippableWorldTimeDeadline.d.ts +15 -0
- package/umd/scripts/run-codex-prompts/runners/claude-code/ClaudeCodeRunner.d.ts +15 -0
- package/umd/scripts/run-codex-prompts/runners/claude-code/parseClaudeCodeOutputEvents.d.ts +3 -0
- package/umd/scripts/run-codex-prompts/runners/claude-code/parseClaudeCodeSubscriptionUsage.d.ts +11 -0
- package/umd/scripts/run-codex-prompts/runners/common/estimateUsageFromTextLength.d.ts +33 -0
- package/umd/scripts/run-codex-prompts/runners/common/modelPricing.d.ts +41 -0
- package/umd/scripts/run-codex-prompts/runners/gemini/gemini-pricing.d.ts +5 -18
- package/umd/scripts/run-codex-prompts/runners/openai-codex/OpenAiCodexRunner.d.ts +8 -0
- package/umd/scripts/run-codex-prompts/runners/openai-codex/buildCodexUsageFromOutput.d.ts +4 -1
- package/umd/scripts/run-codex-prompts/runners/openai-codex/getCodexSubscriptionUsage.d.ts +19 -0
- package/umd/scripts/run-codex-prompts/runners/qwen-code/QwenCodeRunner.d.ts +23 -0
- package/umd/scripts/run-codex-prompts/runners/qwen-code/buildQwenCodeScript.d.ts +8 -0
- package/umd/scripts/run-codex-prompts/runners/qwen-code/parseQwenCodeUsageFromOutput.d.ts +9 -0
- package/umd/scripts/run-codex-prompts/runners/qwen-code/qwen-code-pricing.d.ts +30 -0
- package/umd/scripts/run-codex-prompts/runners/types/HarnessSubscriptionUsage.d.ts +43 -0
- package/umd/src/_packages/components.index.d.ts +4 -0
- package/umd/src/_packages/types.index.d.ts +4 -0
- package/umd/src/avatars/renderAvatarVisualTerminalText.d.ts +80 -0
- package/umd/src/avatars/renderAvatarVisualTerminalText.test.d.ts +1 -0
- package/umd/src/avatars/types/AvatarVisualDefinition.d.ts +54 -0
- package/umd/src/book-2.0/agent-source/AgentBasicInformation.d.ts +3 -3
- package/umd/src/book-2.0/agent-source/AgentSourceParseResult.d.ts +5 -0
- package/umd/src/book-2.0/agent-source/ParsedUnknownCommitment.d.ts +26 -0
- package/umd/src/book-2.0/agent-source/createAgentModelRequirements.commitmentAggregation.test.d.ts +1 -0
- package/umd/src/book-2.0/agent-source/createAgentModelRequirementsWithCommitments.unknown.test.d.ts +1 -0
- package/umd/src/book-2.0/agent-source/getBookCommitmentLineType.d.ts +19 -0
- package/umd/src/book-2.0/agent-source/parseAgentSourceWithCommitments.unknown.test.d.ts +1 -0
- package/umd/src/book-3.0/AgentMessageRunReport.d.ts +46 -0
- package/umd/src/book-3.0/AgentPlannedMessagesSidecar.d.ts +127 -0
- package/umd/src/book-3.0/AgentPlannedMessagesSidecar.test.d.ts +1 -0
- package/umd/src/book-3.0/AgentTeamConversationWorkspace.d.ts +85 -0
- package/umd/src/book-3.0/cliAgentEnv.d.ts +3 -3
- package/umd/src/book-3.0/createAgentMessageSidecarBaseName.d.ts +13 -0
- package/umd/src/book-3.0/describeAgentPlannedMessageSchedule.d.ts +31 -0
- package/umd/src/book-components/BookEditor/createDeprecatedCommitmentDiagnostics.browser.d.ts +1 -9
- package/umd/src/book-components/BookEditor/createDuplicateFromCommitmentDiagnostics.d.ts +28 -0
- package/umd/src/book-components/BookEditor/createDuplicateFromCommitmentDiagnostics.test.d.ts +1 -0
- package/umd/src/book-components/BookEditor/createUnknownCommitmentDiagnostics.d.ts +28 -0
- package/umd/src/book-components/BookEditor/createUnknownCommitmentDiagnostics.test.d.ts +1 -0
- package/umd/src/book-components/Chat/Chat/ChatProps.d.ts +3 -2
- package/umd/src/book-components/Chat/Chat/renderAgentProjectDiff.d.ts +13 -0
- package/umd/src/book-components/Chat/Chat/renderAgentProjectToolCallDetails.d.ts +16 -0
- package/umd/src/book-components/Chat/utils/agentProjectToolCall.d.ts +85 -0
- package/umd/src/book-components/Chat/utils/agentProjectToolCall.test.d.ts +1 -0
- package/umd/src/book-components/Chat/utils/externalSourceToolCall.d.ts +38 -0
- package/umd/src/book-components/Chat/utils/renderMarkdown.d.ts +68 -3
- package/umd/src/book-components/Chat/utils/timeoutToolCallPresentation.d.ts +30 -0
- package/umd/src/cli/cli-commands/coder/GitChangesMode.d.ts +28 -0
- package/umd/src/cli/cli-commands/coder/boilerplateCount.d.ts +52 -0
- package/umd/src/cli/cli-commands/coder/boilerplateCount.test.d.ts +1 -0
- package/umd/src/cli/cli-commands/coder/generate-boilerplates.d.ts +4 -3
- package/umd/src/cli/cli-commands/coder/generate-boilerplates.test.d.ts +1 -0
- package/umd/src/cli/cli-commands/coder/verify.d.ts +1 -1
- package/umd/src/cli/cli-commands/coder/waitOptions.d.ts +12 -0
- package/umd/src/cli/cli-commands/common/harness/$applyHarnessInstallationStatus.d.ts +1 -1
- package/umd/src/cli/cli-commands/common/harness/$checkHarnessInstallation.d.ts +3 -3
- package/umd/src/cli/cli-commands/common/harness/$checkHarnessInstallation.test.d.ts +1 -0
- package/umd/src/cli/cli-commands/common/harness/$ensureHarnessInstallations.d.ts +3 -3
- package/umd/src/cli/cli-commands/common/harness/$resolveHarnessCommandPath.d.ts +14 -0
- package/umd/src/cli/cli-commands/common/harness/$resolveHarnessInstallationOrigin.d.ts +10 -0
- package/umd/src/cli/cli-commands/common/harness/$runHarnessInstallationCommand.d.ts +43 -0
- package/umd/src/cli/cli-commands/common/harness/HarnessDefinition.d.ts +26 -0
- package/umd/src/cli/cli-commands/common/harness/HarnessInstallationOrigin.d.ts +36 -0
- package/umd/src/cli/cli-commands/common/harness/HarnessInstallationStatus.d.ts +8 -2
- package/umd/src/cli/cli-commands/common/harness/HarnessUpdatePlan.d.ts +23 -0
- package/umd/src/cli/cli-commands/common/harness/buildHarnessInstallCommand.d.ts +4 -1
- package/umd/src/cli/cli-commands/common/harness/formatHarnessManualUpdateInstruction.d.ts +8 -0
- package/umd/src/cli/cli-commands/common/harness/formatHarnessManualUpdateInstruction.test.d.ts +1 -0
- package/umd/src/cli/cli-commands/common/harness/resolveHarnessInstallationMethodFromPaths.d.ts +31 -0
- package/umd/src/cli/cli-commands/common/harness/resolveHarnessInstallationMethodFromPaths.test.d.ts +1 -0
- package/umd/src/cli/cli-commands/common/harness/resolveHarnessUpdatePlan.d.ts +12 -0
- package/umd/src/cli/cli-commands/common/harness/resolveHarnessUpdatePlan.test.d.ts +1 -0
- package/umd/src/cli/cli-commands/common/harnessUpdateCliOptions.d.ts +29 -0
- package/umd/src/cli/cli-commands/common/harnessUpdateCliOptions.test.d.ts +1 -0
- package/{esm/src/cli/cli-commands/common/harness/$askForHarnessInstallationApproval.d.ts → umd/src/cli/cli-commands/common/npm/$askForNpmPackageInstallationApproval.d.ts} +2 -2
- package/{esm/src/cli/cli-commands/common/harness/$resolveLatestHarnessVersion.d.ts → umd/src/cli/cli-commands/common/npm/$resolveLatestNpmPackageVersion.d.ts} +2 -3
- package/umd/src/cli/cli-commands/common/npm/$resolveLatestNpmPackageVersion.test.d.ts +1 -0
- package/umd/src/cli/cli-commands/common/npm/$resolveNpmGlobalPrefixPath.d.ts +9 -0
- package/umd/src/cli/cli-commands/common/npm/buildNpmPackageInstallCommand.d.ts +12 -0
- package/umd/src/cli/cli-commands/common/npm/buildNpmPackageInstallCommand.test.d.ts +1 -0
- package/umd/src/cli/cli-commands/common/npm/extractNpmPackageVersionFromOutput.d.ts +12 -0
- package/umd/src/cli/cli-commands/common/npm/extractNpmPackageVersionFromOutput.test.d.ts +1 -0
- package/umd/src/cli/cli-commands/common/npm/isNpmPackageVersionOutdated.d.ts +12 -0
- package/umd/src/cli/cli-commands/common/npm/isNpmPackageVersionOutdated.test.d.ts +1 -0
- package/umd/src/cli/cli-commands/common/promptRunnerCliOptions.d.ts +17 -4
- package/umd/src/cli/cli-commands/common/promptbook-cli/$checkPromptbookCliInstallations.d.ts +9 -0
- package/umd/src/cli/cli-commands/common/promptbook-cli/$checkPromptbookCliInstallations.test.d.ts +1 -0
- package/umd/src/cli/cli-commands/common/promptbook-cli/$ensurePromptbookCliInstallations.d.ts +14 -0
- package/umd/src/cli/cli-commands/common/promptbook-cli/$ensurePromptbookCliInstallations.test.d.ts +1 -0
- package/umd/src/cli/cli-commands/common/promptbook-cli/$resolvePromptbookCliInstallations.d.ts +12 -0
- package/umd/src/cli/cli-commands/common/promptbook-cli/$resolvePromptbookCliInstallations.test.d.ts +1 -0
- package/umd/src/cli/cli-commands/common/promptbook-cli/$updatePromptbookCliInstallation.d.ts +10 -0
- package/umd/src/cli/cli-commands/common/promptbook-cli/$updatePromptbookCliInstallation.test.d.ts +1 -0
- package/umd/src/cli/cli-commands/common/promptbook-cli/PromptbookCliInstallation.d.ts +66 -0
- package/umd/src/cli/cli-commands/common/promptbook-cli/PromptbookCliInstallationStatus.d.ts +26 -0
- package/umd/src/cli/cli-commands/common/promptbook-cli/buildPromptbookCliInstallCommand.d.ts +7 -0
- package/umd/src/cli/cli-commands/common/promptbook-cli/formatPromptbookCliInstallationWarning.d.ts +7 -0
- package/umd/src/collection/agent-collection/constructors/agent-collection-in-supabase/AgentCollectionInSupabase.d.ts +15 -0
- package/umd/src/commitments/{COMPONENT/COMPONENT.d.ts → META_FULLNAME/META_FULLNAME.d.ts} +8 -5
- package/umd/src/commitments/META_ID/META_ID.d.ts +32 -0
- package/umd/src/commitments/WRITING_RULES/WRITING_RULES.d.ts +14 -7
- package/umd/src/commitments/index.d.ts +4 -12
- package/umd/src/executables/platforms/locateAppOnWindows.d.ts +1 -1
- package/umd/src/executables/platforms/locateAppOnWindows.test.d.ts +1 -0
- package/umd/src/llm-providers/agent/Agent.d.ts +1 -1
- package/umd/src/llm-providers/openai/OpenAiAgentKitExecutionToolsToolBuilder.d.ts +1 -1
- package/umd/src/{commitments/USE_BROWSER → scrapers/_common/utils}/fetchUrlContent.d.ts +2 -3
- package/umd/src/utils/agent-message-runtime/AgentMessageProjectChange.d.ts +76 -0
- package/umd/src/utils/agent-message-runtime/AgentMessageTouchedExternalSource.d.ts +45 -0
- package/umd/src/utils/agent-message-runtime/parseAgentMessageRuntimeLogEvents.d.ts +62 -0
- package/umd/src/utils/agent-message-runtime/resolveAgentMessageRuntimeActivity.d.ts +3 -3
- package/umd/src/utils/agent-message-runtime/resolveAgentMessageTouchedExternalSources.d.ts +18 -0
- package/umd/src/utils/agent-message-runtime/resolveAgentMessageTouchedExternalSources.test.d.ts +1 -0
- package/umd/src/utils/agent-message-runtime/resolveAgentMessageTouchedProjectNames.d.ts +19 -0
- package/umd/src/utils/agent-message-runtime/resolveAgentMessageTouchedProjectNames.test.d.ts +1 -0
- package/umd/src/utils/agents/terminalAgentAvatarVisual.d.ts +5 -2
- package/umd/src/utils/ascii-art/convertImageDataToAsciiArt.d.ts +6 -0
- package/umd/src/utils/ascii-art/createAnsiColorCode.d.ts +46 -0
- package/umd/src/utils/misc/debounce.d.ts +4 -2
- package/umd/src/utils/misc/debounce.test.d.ts +1 -0
- package/umd/src/utils/misc/emojis.d.ts +3 -2
- package/umd/src/utils/random/$generateBookBoilerplate.test.d.ts +1 -0
- package/umd/src/version.d.ts +1 -1
- package/esm/src/cli/cli-commands/common/harness/$installHarness.d.ts +0 -13
- package/esm/src/cli/cli-commands/common/harness/extractHarnessVersionFromOutput.d.ts +0 -11
- package/esm/src/cli/cli-commands/common/harness/isHarnessVersionOutdated.d.ts +0 -9
- package/esm/src/commitments/MEMORY/MEMORY.d.ts +0 -48
- package/esm/src/commitments/MEMORY/MemoryToolNames.d.ts +0 -11
- package/esm/src/commitments/MEMORY/MemoryToolRuntimeAdapter.d.ts +0 -149
- package/esm/src/commitments/MEMORY/createMemorySystemMessage.d.ts +0 -6
- package/esm/src/commitments/MEMORY/createMemoryToolFunctions.d.ts +0 -8
- package/esm/src/commitments/MEMORY/createMemoryTools.d.ts +0 -14
- package/esm/src/commitments/MEMORY/getMemoryCommitmentDocumentation.d.ts +0 -6
- package/esm/src/commitments/MEMORY/getMemoryToolRuntimeAdapterOrDisabledResult.d.ts +0 -17
- package/esm/src/commitments/MEMORY/getMemoryToolTitles.d.ts +0 -7
- package/esm/src/commitments/MEMORY/parseMemoryToolArgs.d.ts +0 -61
- package/esm/src/commitments/MEMORY/resolveMemoryRuntimeContext.d.ts +0 -8
- package/esm/src/commitments/MEMORY/setMemoryToolRuntimeAdapter.d.ts +0 -13
- package/esm/src/commitments/META/META.d.ts +0 -65
- package/esm/src/commitments/USE/aggregateUseCommitmentSystemMessages.d.ts +0 -32
- package/esm/src/commitments/USE_BROWSER/USE_BROWSER.d.ts +0 -58
- package/esm/src/commitments/USE_BROWSER/fetchUrlContentViaBrowser.d.ts +0 -13
- package/esm/src/commitments/USE_BROWSER/resolveRunBrowserToolForNode.d.ts +0 -10
- package/esm/src/commitments/USE_DEEPSEARCH/USE_DEEPSEARCH.d.ts +0 -47
- package/esm/src/commitments/USE_EMAIL/USE_EMAIL.d.ts +0 -38
- package/esm/src/commitments/USE_EMAIL/parseUseEmailCommitmentContent.d.ts +0 -21
- package/esm/src/commitments/USE_EMAIL/resolveSendEmailToolForNode.d.ts +0 -11
- package/esm/src/commitments/USE_EMAIL/sendEmailViaBrowser.d.ts +0 -13
- package/esm/src/commitments/USE_SEARCH_ENGINE/USE_SEARCH_ENGINE.d.ts +0 -46
- package/esm/src/commitments/USE_SPAWN/USE_SPAWN.d.ts +0 -38
- package/esm/src/commitments/USE_SPAWN/resolveSpawnAgentToolForNode.d.ts +0 -9
- package/esm/src/commitments/USE_SPAWN/spawnAgentViaBrowser.d.ts +0 -12
- package/esm/src/commitments/USE_TIME/USE_TIME.d.ts +0 -43
- package/esm/src/commitments/USE_TIMEOUT/TimeoutToolNames.d.ts +0 -11
- package/esm/src/commitments/USE_TIMEOUT/TimeoutToolRuntimeAdapter.d.ts +0 -212
- package/esm/src/commitments/USE_TIMEOUT/USE_TIMEOUT.d.ts +0 -38
- package/esm/src/commitments/USE_TIMEOUT/createTimeoutSystemMessage.d.ts +0 -6
- package/esm/src/commitments/USE_TIMEOUT/createTimeoutToolFunctions.d.ts +0 -8
- package/esm/src/commitments/USE_TIMEOUT/createTimeoutTools.d.ts +0 -7
- package/esm/src/commitments/USE_TIMEOUT/getTimeoutToolRuntimeAdapterOrDisabledResult.d.ts +0 -17
- package/esm/src/commitments/USE_TIMEOUT/parseTimeoutToolArgs.d.ts +0 -78
- package/esm/src/commitments/USE_TIMEOUT/resolveTimeoutRuntimeContext.d.ts +0 -8
- package/esm/src/commitments/USE_TIMEOUT/setTimeoutToolRuntimeAdapter.d.ts +0 -13
- package/esm/src/commitments/WALLET/WALLET.d.ts +0 -21
- package/esm/src/commitments/WALLET/WalletToolNames.d.ts +0 -12
- package/esm/src/commitments/WALLET/WalletToolRuntimeAdapter.d.ts +0 -163
- package/esm/src/commitments/WALLET/createWalletSystemMessage.d.ts +0 -6
- package/esm/src/commitments/WALLET/createWalletToolFunctions.d.ts +0 -8
- package/esm/src/commitments/WALLET/createWalletTools.d.ts +0 -7
- package/esm/src/commitments/WALLET/getWalletCommitmentDocumentation.d.ts +0 -6
- package/esm/src/commitments/WALLET/getWalletToolRuntimeAdapterOrDisabledResult.d.ts +0 -16
- package/esm/src/commitments/WALLET/getWalletToolTitles.d.ts +0 -7
- package/esm/src/commitments/WALLET/parseWalletToolArgs.d.ts +0 -51
- package/esm/src/commitments/WALLET/resolveWalletRuntimeContext.d.ts +0 -8
- package/esm/src/commitments/WALLET/setWalletToolRuntimeAdapter.d.ts +0 -13
- package/esm/src/commitments/_common/createSerpSearchToolFunction.d.ts +0 -12
- package/umd/src/cli/cli-commands/common/harness/$installHarness.d.ts +0 -13
- package/umd/src/cli/cli-commands/common/harness/extractHarnessVersionFromOutput.d.ts +0 -11
- package/umd/src/cli/cli-commands/common/harness/isHarnessVersionOutdated.d.ts +0 -9
- package/umd/src/commitments/MEMORY/MEMORY.d.ts +0 -48
- package/umd/src/commitments/MEMORY/MemoryToolNames.d.ts +0 -11
- package/umd/src/commitments/MEMORY/MemoryToolRuntimeAdapter.d.ts +0 -149
- package/umd/src/commitments/MEMORY/createMemorySystemMessage.d.ts +0 -6
- package/umd/src/commitments/MEMORY/createMemoryToolFunctions.d.ts +0 -8
- package/umd/src/commitments/MEMORY/createMemoryTools.d.ts +0 -14
- package/umd/src/commitments/MEMORY/getMemoryCommitmentDocumentation.d.ts +0 -6
- package/umd/src/commitments/MEMORY/getMemoryToolRuntimeAdapterOrDisabledResult.d.ts +0 -17
- package/umd/src/commitments/MEMORY/getMemoryToolTitles.d.ts +0 -7
- package/umd/src/commitments/MEMORY/parseMemoryToolArgs.d.ts +0 -61
- package/umd/src/commitments/MEMORY/resolveMemoryRuntimeContext.d.ts +0 -8
- package/umd/src/commitments/MEMORY/setMemoryToolRuntimeAdapter.d.ts +0 -13
- package/umd/src/commitments/META/META.d.ts +0 -65
- package/umd/src/commitments/USE/aggregateUseCommitmentSystemMessages.d.ts +0 -32
- package/umd/src/commitments/USE_BROWSER/USE_BROWSER.d.ts +0 -58
- package/umd/src/commitments/USE_BROWSER/fetchUrlContentViaBrowser.d.ts +0 -13
- package/umd/src/commitments/USE_BROWSER/resolveRunBrowserToolForNode.d.ts +0 -10
- package/umd/src/commitments/USE_DEEPSEARCH/USE_DEEPSEARCH.d.ts +0 -47
- package/umd/src/commitments/USE_EMAIL/USE_EMAIL.d.ts +0 -38
- package/umd/src/commitments/USE_EMAIL/parseUseEmailCommitmentContent.d.ts +0 -21
- package/umd/src/commitments/USE_EMAIL/resolveSendEmailToolForNode.d.ts +0 -11
- package/umd/src/commitments/USE_EMAIL/sendEmailViaBrowser.d.ts +0 -13
- package/umd/src/commitments/USE_SEARCH_ENGINE/USE_SEARCH_ENGINE.d.ts +0 -46
- package/umd/src/commitments/USE_SPAWN/USE_SPAWN.d.ts +0 -38
- package/umd/src/commitments/USE_SPAWN/resolveSpawnAgentToolForNode.d.ts +0 -9
- package/umd/src/commitments/USE_SPAWN/spawnAgentViaBrowser.d.ts +0 -12
- package/umd/src/commitments/USE_TIME/USE_TIME.d.ts +0 -43
- package/umd/src/commitments/USE_TIMEOUT/TimeoutToolNames.d.ts +0 -11
- package/umd/src/commitments/USE_TIMEOUT/TimeoutToolRuntimeAdapter.d.ts +0 -212
- package/umd/src/commitments/USE_TIMEOUT/USE_TIMEOUT.d.ts +0 -38
- package/umd/src/commitments/USE_TIMEOUT/createTimeoutSystemMessage.d.ts +0 -6
- package/umd/src/commitments/USE_TIMEOUT/createTimeoutToolFunctions.d.ts +0 -8
- package/umd/src/commitments/USE_TIMEOUT/createTimeoutTools.d.ts +0 -7
- package/umd/src/commitments/USE_TIMEOUT/getTimeoutToolRuntimeAdapterOrDisabledResult.d.ts +0 -17
- package/umd/src/commitments/USE_TIMEOUT/parseTimeoutToolArgs.d.ts +0 -78
- package/umd/src/commitments/USE_TIMEOUT/resolveTimeoutRuntimeContext.d.ts +0 -8
- package/umd/src/commitments/USE_TIMEOUT/setTimeoutToolRuntimeAdapter.d.ts +0 -13
- package/umd/src/commitments/WALLET/WALLET.d.ts +0 -21
- package/umd/src/commitments/WALLET/WalletToolNames.d.ts +0 -12
- package/umd/src/commitments/WALLET/WalletToolRuntimeAdapter.d.ts +0 -163
- package/umd/src/commitments/WALLET/createWalletSystemMessage.d.ts +0 -6
- package/umd/src/commitments/WALLET/createWalletToolFunctions.d.ts +0 -8
- package/umd/src/commitments/WALLET/createWalletTools.d.ts +0 -7
- package/umd/src/commitments/WALLET/getWalletCommitmentDocumentation.d.ts +0 -6
- package/umd/src/commitments/WALLET/getWalletToolRuntimeAdapterOrDisabledResult.d.ts +0 -16
- package/umd/src/commitments/WALLET/getWalletToolTitles.d.ts +0 -7
- package/umd/src/commitments/WALLET/parseWalletToolArgs.d.ts +0 -51
- package/umd/src/commitments/WALLET/resolveWalletRuntimeContext.d.ts +0 -8
- package/umd/src/commitments/WALLET/setWalletToolRuntimeAdapter.d.ts +0 -13
- package/umd/src/commitments/_common/createSerpSearchToolFunction.d.ts +0 -12
- /package/esm/src/{book-2.0/agent-source/createAgentModelRequirements.useCommitmentAggregation.test.d.ts → avatars/renderAvatarVisualTerminalText.test.d.ts} +0 -0
- /package/esm/src/{cli/cli-commands/common/harness/extractHarnessVersionFromOutput.test.d.ts → book-2.0/agent-source/createAgentModelRequirements.commitmentAggregation.test.d.ts} +0 -0
- /package/esm/src/{cli/cli-commands/common/harness/isHarnessVersionOutdated.test.d.ts → book-2.0/agent-source/createAgentModelRequirementsWithCommitments.unknown.test.d.ts} +0 -0
- /package/esm/src/{commitments/MEMORY/MEMORY.test.d.ts → book-2.0/agent-source/parseAgentSourceWithCommitments.unknown.test.d.ts} +0 -0
- /package/esm/src/{commitments/USE_BROWSER/USE_BROWSER.test.d.ts → book-3.0/AgentPlannedMessagesSidecar.test.d.ts} +0 -0
- /package/esm/src/{commitments/USE_BROWSER/resolveRunBrowserToolForNode.test.d.ts → book-components/BookEditor/createDuplicateFromCommitmentDiagnostics.test.d.ts} +0 -0
- /package/esm/src/{commitments/USE_DEEPSEARCH/USE_DEEPSEARCH.test.d.ts → book-components/BookEditor/createUnknownCommitmentDiagnostics.test.d.ts} +0 -0
- /package/esm/src/{commitments/USE_EMAIL/USE_EMAIL.test.d.ts → book-components/Chat/utils/agentProjectToolCall.test.d.ts} +0 -0
- /package/esm/src/{commitments/USE_EMAIL/parseUseEmailCommitmentContent.test.d.ts → cli/cli-commands/coder/boilerplateCount.test.d.ts} +0 -0
- /package/esm/src/{commitments/USE_SEARCH_ENGINE/USE_SEARCH_ENGINE.test.d.ts → cli/cli-commands/coder/generate-boilerplates.test.d.ts} +0 -0
- /package/esm/src/{commitments/USE_SPAWN/USE_SPAWN.test.d.ts → cli/cli-commands/common/harness/$checkHarnessInstallation.test.d.ts} +0 -0
- /package/esm/src/{commitments/USE_TIME/USE_TIME.test.d.ts → cli/cli-commands/common/harness/formatHarnessManualUpdateInstruction.test.d.ts} +0 -0
- /package/esm/src/{commitments/USE_TIMEOUT/USE_TIMEOUT.test.d.ts → cli/cli-commands/common/harness/resolveHarnessInstallationMethodFromPaths.test.d.ts} +0 -0
- /package/esm/src/{commitments/WALLET/WALLET.test.d.ts → cli/cli-commands/common/harness/resolveHarnessUpdatePlan.test.d.ts} +0 -0
- /package/{umd/src/book-2.0/agent-source/createAgentModelRequirements.useCommitmentAggregation.test.d.ts → esm/src/cli/cli-commands/common/harnessUpdateCliOptions.test.d.ts} +0 -0
- /package/{umd/src/cli/cli-commands/common/harness/extractHarnessVersionFromOutput.test.d.ts → esm/src/cli/cli-commands/common/npm/$resolveLatestNpmPackageVersion.test.d.ts} +0 -0
- /package/{umd/src/cli/cli-commands/common/harness/isHarnessVersionOutdated.test.d.ts → esm/src/cli/cli-commands/common/npm/buildNpmPackageInstallCommand.test.d.ts} +0 -0
- /package/{umd/src/commitments/MEMORY/MEMORY.test.d.ts → esm/src/cli/cli-commands/common/npm/extractNpmPackageVersionFromOutput.test.d.ts} +0 -0
- /package/{umd/src/commitments/USE_BROWSER/USE_BROWSER.test.d.ts → esm/src/cli/cli-commands/common/npm/isNpmPackageVersionOutdated.test.d.ts} +0 -0
- /package/{umd/src/commitments/USE_BROWSER/resolveRunBrowserToolForNode.test.d.ts → esm/src/cli/cli-commands/common/promptbook-cli/$checkPromptbookCliInstallations.test.d.ts} +0 -0
- /package/{umd/src/commitments/USE_DEEPSEARCH/USE_DEEPSEARCH.test.d.ts → esm/src/cli/cli-commands/common/promptbook-cli/$ensurePromptbookCliInstallations.test.d.ts} +0 -0
- /package/{umd/src/commitments/USE_EMAIL/USE_EMAIL.test.d.ts → esm/src/cli/cli-commands/common/promptbook-cli/$resolvePromptbookCliInstallations.test.d.ts} +0 -0
- /package/{umd/src/commitments/USE_EMAIL/parseUseEmailCommitmentContent.test.d.ts → esm/src/cli/cli-commands/common/promptbook-cli/$updatePromptbookCliInstallation.test.d.ts} +0 -0
- /package/esm/src/commitments/{META → META_DESCRIPTION}/META_DESCRIPTION.d.ts +0 -0
- /package/{umd/src/commitments/USE_SEARCH_ENGINE/USE_SEARCH_ENGINE.test.d.ts → esm/src/executables/platforms/locateAppOnWindows.test.d.ts} +0 -0
- /package/{umd/src/commitments/USE_SPAWN/USE_SPAWN.test.d.ts → esm/src/utils/agent-message-runtime/resolveAgentMessageTouchedExternalSources.test.d.ts} +0 -0
- /package/{umd/src/commitments/USE_TIME/USE_TIME.test.d.ts → esm/src/utils/agent-message-runtime/resolveAgentMessageTouchedProjectNames.test.d.ts} +0 -0
- /package/{umd/src/commitments/USE_TIMEOUT/USE_TIMEOUT.test.d.ts → esm/src/utils/misc/debounce.test.d.ts} +0 -0
- /package/{umd/src/commitments/WALLET/WALLET.test.d.ts → esm/src/utils/random/$generateBookBoilerplate.test.d.ts} +0 -0
- /package/umd/src/commitments/{META → META_DESCRIPTION}/META_DESCRIPTION.d.ts +0 -0
|
@@ -3,23 +3,30 @@ import { BaseCommitmentDefinition } from '../_base/BaseCommitmentDefinition';
|
|
|
3
3
|
/**
|
|
4
4
|
* `WRITING RULES` commitment definition.
|
|
5
5
|
*
|
|
6
|
-
*
|
|
7
|
-
* rather than task-solving behavior.
|
|
6
|
+
* The `WRITING RULES`/`WRITING RULE` commitment adds constraints that apply strictly to writing style
|
|
7
|
+
* and presentation rather than task-solving behavior.
|
|
8
|
+
*
|
|
9
|
+
* Example usage in agent source:
|
|
10
|
+
*
|
|
11
|
+
* ```book
|
|
12
|
+
* WRITING RULES Keep every response under 120 words
|
|
13
|
+
* WRITING RULE Always end the message with an emoji
|
|
14
|
+
* ```
|
|
8
15
|
*
|
|
9
16
|
* @private [🪔] Maybe export the commitments through some package
|
|
10
17
|
*/
|
|
11
|
-
export declare class WritingRulesCommitmentDefinition extends BaseCommitmentDefinition<'WRITING RULES'> {
|
|
12
|
-
constructor();
|
|
18
|
+
export declare class WritingRulesCommitmentDefinition extends BaseCommitmentDefinition<'WRITING RULES' | 'WRITING RULE'> {
|
|
19
|
+
constructor(type?: 'WRITING RULES' | 'WRITING RULE');
|
|
13
20
|
/**
|
|
14
|
-
* Short one-line description of `WRITING RULES`.
|
|
21
|
+
* Short one-line description of `WRITING RULES`/`WRITING RULE`.
|
|
15
22
|
*/
|
|
16
23
|
get description(): string;
|
|
17
24
|
/**
|
|
18
|
-
* Icon for `WRITING RULES`.
|
|
25
|
+
* Icon for `WRITING RULES`/`WRITING RULE`.
|
|
19
26
|
*/
|
|
20
27
|
get icon(): string;
|
|
21
28
|
/**
|
|
22
|
-
* Markdown documentation for `WRITING RULES
|
|
29
|
+
* Markdown documentation for `WRITING RULES`/`WRITING RULE` commitment.
|
|
23
30
|
*/
|
|
24
31
|
get documentation(): string;
|
|
25
32
|
applyToAgentModelRequirements(requirements: AgentModelRequirements, content: string): AgentModelRequirements;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { ActionCommitmentDefinition } from './ACTION/ACTION';
|
|
2
2
|
import { ClosedCommitmentDefinition } from './CLOSED/CLOSED';
|
|
3
|
-
import { ComponentCommitmentDefinition } from './COMPONENT/COMPONENT';
|
|
4
3
|
import { DeleteCommitmentDefinition } from './DELETE/DELETE';
|
|
5
4
|
import { DictionaryCommitmentDefinition } from './DICTIONARY/DICTIONARY';
|
|
6
5
|
import { FormatCommitmentDefinition } from './FORMAT/FORMAT';
|
|
@@ -9,19 +8,20 @@ import { GoalCommitmentDefinition } from './GOAL/GOAL';
|
|
|
9
8
|
import { ImportCommitmentDefinition } from './IMPORT/IMPORT';
|
|
10
9
|
import { KnowledgeCommitmentDefinition } from './KNOWLEDGE/KNOWLEDGE';
|
|
11
10
|
import { LanguageCommitmentDefinition } from './LANGUAGE/LANGUAGE';
|
|
12
|
-
import { MemoryCommitmentDefinition } from './MEMORY/MEMORY';
|
|
13
11
|
import { AgentMessageCommitmentDefinition } from './MESSAGE/AgentMessageCommitmentDefinition';
|
|
14
12
|
import { InitialMessageCommitmentDefinition } from './MESSAGE/InitialMessageCommitmentDefinition';
|
|
15
13
|
import { InternalMessageCommitmentDefinition } from './MESSAGE/InternalMessageCommitmentDefinition';
|
|
16
14
|
import { MessageCommitmentDefinition } from './MESSAGE/MESSAGE';
|
|
17
15
|
import { UserMessageCommitmentDefinition } from './MESSAGE/UserMessageCommitmentDefinition';
|
|
18
16
|
import { MessageSuffixCommitmentDefinition } from './MESSAGE_SUFFIX/MESSAGE_SUFFIX';
|
|
19
|
-
import { MetaCommitmentDefinition } from './META/META';
|
|
20
17
|
import { MetaAvatarCommitmentDefinition } from './META_AVATAR/META_AVATAR';
|
|
21
18
|
import { MetaColorCommitmentDefinition } from './META_COLOR/META_COLOR';
|
|
19
|
+
import { MetaDescriptionCommitmentDefinition } from './META_DESCRIPTION/META_DESCRIPTION';
|
|
22
20
|
import { MetaDomainCommitmentDefinition } from './META_DOMAIN/META_DOMAIN';
|
|
23
21
|
import { MetaDisclaimerCommitmentDefinition } from './META_DISCLAIMER/META_DISCLAIMER';
|
|
24
22
|
import { MetaFontCommitmentDefinition } from './META_FONT/META_FONT';
|
|
23
|
+
import { MetaFullnameCommitmentDefinition } from './META_FULLNAME/META_FULLNAME';
|
|
24
|
+
import { MetaIdCommitmentDefinition } from './META_ID/META_ID';
|
|
25
25
|
import { MetaImageCommitmentDefinition } from './META_IMAGE/META_IMAGE';
|
|
26
26
|
import { MetaInputPlaceholderCommitmentDefinition } from './META_INPUT_PLACEHOLDER/META_INPUT_PLACEHOLDER';
|
|
27
27
|
import { MetaLinkCommitmentDefinition } from './META_LINK/META_LINK';
|
|
@@ -38,21 +38,13 @@ import { ScenarioCommitmentDefinition } from './SCENARIO/SCENARIO';
|
|
|
38
38
|
import { StyleCommitmentDefinition } from './STYLE/STYLE';
|
|
39
39
|
import { TeamCommitmentDefinition } from './TEAM/TEAM';
|
|
40
40
|
import { TemplateCommitmentDefinition } from './TEMPLATE/TEMPLATE';
|
|
41
|
-
import { UseBrowserCommitmentDefinition } from './USE_BROWSER/USE_BROWSER';
|
|
42
41
|
import { UseCalendarCommitmentDefinition } from './USE_CALENDAR/USE_CALENDAR';
|
|
43
|
-
import { UseDeepSearchCommitmentDefinition } from './USE_DEEPSEARCH/USE_DEEPSEARCH';
|
|
44
|
-
import { UseEmailCommitmentDefinition } from './USE_EMAIL/USE_EMAIL';
|
|
45
42
|
import { UseImageGeneratorCommitmentDefinition } from './USE_IMAGE_GENERATOR/USE_IMAGE_GENERATOR';
|
|
46
43
|
import { UseMcpCommitmentDefinition } from './USE_MCP/USE_MCP';
|
|
47
44
|
import { UsePopupCommitmentDefinition } from './USE_POPUP/USE_POPUP';
|
|
48
45
|
import { UsePrivacyCommitmentDefinition } from './USE_PRIVACY/USE_PRIVACY';
|
|
49
46
|
import { UseProjectCommitmentDefinition } from './USE_PROJECT/USE_PROJECT';
|
|
50
|
-
import { UseSearchEngineCommitmentDefinition } from './USE_SEARCH_ENGINE/USE_SEARCH_ENGINE';
|
|
51
|
-
import { UseSpawnCommitmentDefinition } from './USE_SPAWN/USE_SPAWN';
|
|
52
|
-
import { UseTimeoutCommitmentDefinition } from './USE_TIMEOUT/USE_TIMEOUT';
|
|
53
|
-
import { UseTimeCommitmentDefinition } from './USE_TIME/USE_TIME';
|
|
54
47
|
import { UseUserLocationCommitmentDefinition } from './USE_USER_LOCATION/USE_USER_LOCATION';
|
|
55
|
-
import { WalletCommitmentDefinition } from './WALLET/WALLET';
|
|
56
48
|
import { WritingRulesCommitmentDefinition } from './WRITING_RULES/WRITING_RULES';
|
|
57
49
|
import { WritingSampleCommitmentDefinition } from './WRITING_SAMPLE/WRITING_SAMPLE';
|
|
58
50
|
import { NotYetImplementedCommitmentDefinition } from './_base/NotYetImplementedCommitmentDefinition';
|
|
@@ -63,4 +55,4 @@ import { NotYetImplementedCommitmentDefinition } from './_base/NotYetImplemented
|
|
|
63
55
|
*
|
|
64
56
|
* @private Use functions to access commitments instead of this array directly
|
|
65
57
|
*/
|
|
66
|
-
export declare const COMMITMENT_REGISTRY: readonly [PersonaCommitmentDefinition, PersonaCommitmentDefinition, KnowledgeCommitmentDefinition,
|
|
58
|
+
export declare const COMMITMENT_REGISTRY: readonly [PersonaCommitmentDefinition, PersonaCommitmentDefinition, KnowledgeCommitmentDefinition, StyleCommitmentDefinition, StyleCommitmentDefinition, RuleCommitmentDefinition, RuleCommitmentDefinition, LanguageCommitmentDefinition, LanguageCommitmentDefinition, WritingSampleCommitmentDefinition, WritingRulesCommitmentDefinition, WritingRulesCommitmentDefinition, SampleCommitmentDefinition, SampleCommitmentDefinition, FormatCommitmentDefinition, FormatCommitmentDefinition, TemplateCommitmentDefinition, TemplateCommitmentDefinition, FromCommitmentDefinition, ImportCommitmentDefinition, ImportCommitmentDefinition, ModelCommitmentDefinition, ModelCommitmentDefinition, ActionCommitmentDefinition, ActionCommitmentDefinition, MetaAvatarCommitmentDefinition, MetaAvatarCommitmentDefinition, MetaImageCommitmentDefinition, MetaColorCommitmentDefinition, MetaFontCommitmentDefinition, MetaLinkCommitmentDefinition, MetaDomainCommitmentDefinition, MetaDescriptionCommitmentDefinition, MetaDisclaimerCommitmentDefinition, MetaFullnameCommitmentDefinition, MetaIdCommitmentDefinition, MetaInputPlaceholderCommitmentDefinition, MetaThinkingMessageCommitmentDefinition, MetaVisibilityCommitmentDefinition, MetaVoiceCommitmentDefinition, NoteCommitmentDefinition, NoteCommitmentDefinition, NoteCommitmentDefinition, NoteCommitmentDefinition, NoteCommitmentDefinition, GoalCommitmentDefinition, GoalCommitmentDefinition, InitialMessageCommitmentDefinition, UserMessageCommitmentDefinition, InternalMessageCommitmentDefinition, AgentMessageCommitmentDefinition, MessageSuffixCommitmentDefinition, MessageCommitmentDefinition, MessageCommitmentDefinition, ScenarioCommitmentDefinition, ScenarioCommitmentDefinition, DeleteCommitmentDefinition, DeleteCommitmentDefinition, DeleteCommitmentDefinition, DeleteCommitmentDefinition, DictionaryCommitmentDefinition, OpenCommitmentDefinition, ClosedCommitmentDefinition, TeamCommitmentDefinition, UseUserLocationCommitmentDefinition, UseCalendarCommitmentDefinition, UsePopupCommitmentDefinition, UseImageGeneratorCommitmentDefinition, UseMcpCommitmentDefinition, UsePrivacyCommitmentDefinition, UseProjectCommitmentDefinition, NotYetImplementedCommitmentDefinition<"EXPECT">, NotYetImplementedCommitmentDefinition<"BEHAVIOUR">, NotYetImplementedCommitmentDefinition<"BEHAVIOURS">, NotYetImplementedCommitmentDefinition<"AVOID">, NotYetImplementedCommitmentDefinition<"AVOIDANCE">, NotYetImplementedCommitmentDefinition<"CONTEXT">];
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { string_executable_path } from '../../types/string_filename';
|
|
2
2
|
import type { LocateAppOptions } from '../locateApp';
|
|
3
3
|
/**
|
|
4
|
-
* Attempts to locate the specified application on a Windows system by searching common installation directories.
|
|
4
|
+
* Attempts to locate the specified application on a Windows system by searching PATH and common installation directories.
|
|
5
5
|
* Returns the path to the executable if found, or null otherwise.
|
|
6
6
|
*
|
|
7
7
|
* @private within the repository
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -45,7 +45,7 @@ export declare class Agent extends AgentLlmExecutionTools implements LlmExecutio
|
|
|
45
45
|
links: Array<string_agent_url>;
|
|
46
46
|
/**
|
|
47
47
|
* Capabilities of the agent
|
|
48
|
-
* This is parsed from commitments like USE
|
|
48
|
+
* This is parsed from commitments like USE CALENDAR, USE PROJECT, KNOWLEDGE, etc.
|
|
49
49
|
*/
|
|
50
50
|
capabilities: Array<AgentCapability>;
|
|
51
51
|
/**
|
|
@@ -73,7 +73,7 @@ export declare class OpenAiAgentKitExecutionToolsToolBuilder {
|
|
|
73
73
|
*/
|
|
74
74
|
private normalizeAgentKitToolParameters;
|
|
75
75
|
/**
|
|
76
|
-
* Creates the native Agent SDK tool used for
|
|
76
|
+
* Creates the native Agent SDK tool used for the DeepSearch capability.
|
|
77
77
|
*/
|
|
78
78
|
private createDeepSearchAgentKitTool;
|
|
79
79
|
/**
|
|
@@ -8,12 +8,11 @@
|
|
|
8
8
|
* 4. Returns the scraped markdown content
|
|
9
9
|
*
|
|
10
10
|
* WARNING: This function should NOT be used directly in browser environments.
|
|
11
|
-
* For browser environments,
|
|
12
|
-
* the Agents Server API endpoint at /api/scrape
|
|
11
|
+
* For browser environments, proxy the request through the Agents Server API endpoint at /api/scrape
|
|
13
12
|
*
|
|
14
13
|
* @param url The URL to fetch and scrape
|
|
15
14
|
* @returns Markdown content from the URL
|
|
16
15
|
*
|
|
17
|
-
* @private internal utility
|
|
16
|
+
* @private internal scraping utility
|
|
18
17
|
*/
|
|
19
18
|
export declare function fetchUrlContent(url: string): Promise<string>;
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* One file an answered agent message created, edited or deleted inside one project.
|
|
3
|
+
*
|
|
4
|
+
* Note: [🚉] This is fully serializable as JSON
|
|
5
|
+
*
|
|
6
|
+
* @private internal type of the agent-message runtime
|
|
7
|
+
*/
|
|
8
|
+
export type AgentMessageProjectChangedFile = {
|
|
9
|
+
/**
|
|
10
|
+
* Path of the file relative to the project root, using `/` separators.
|
|
11
|
+
*/
|
|
12
|
+
readonly path: string;
|
|
13
|
+
/**
|
|
14
|
+
* Count of lines added to the file.
|
|
15
|
+
*/
|
|
16
|
+
readonly insertionCount: number;
|
|
17
|
+
/**
|
|
18
|
+
* Count of lines removed from the file.
|
|
19
|
+
*/
|
|
20
|
+
readonly deletionCount: number;
|
|
21
|
+
};
|
|
22
|
+
/**
|
|
23
|
+
* Everything answering one single message changed inside one agent project.
|
|
24
|
+
*
|
|
25
|
+
* Each agent project is a git repository and every answer which modifies it is committed there
|
|
26
|
+
* automatically, so this describes exactly one such commit — the trace of what one message really
|
|
27
|
+
* did to one project, which a chat can show below the answer that did it.
|
|
28
|
+
*
|
|
29
|
+
* Note: [🚉] This is fully serializable as JSON
|
|
30
|
+
*
|
|
31
|
+
* @private internal type of the agent-message runtime
|
|
32
|
+
*/
|
|
33
|
+
export type AgentMessageProjectChange = {
|
|
34
|
+
/**
|
|
35
|
+
* Directory name of the changed project inside the agent `projects/` folder.
|
|
36
|
+
*/
|
|
37
|
+
readonly projectName: string;
|
|
38
|
+
/**
|
|
39
|
+
* Full hash of the commit holding the changes of this message.
|
|
40
|
+
*/
|
|
41
|
+
readonly commitHash: string;
|
|
42
|
+
/**
|
|
43
|
+
* ISO 8601 timestamp when the changes were committed.
|
|
44
|
+
*/
|
|
45
|
+
readonly committedAt: string;
|
|
46
|
+
/**
|
|
47
|
+
* Files the message changed, ordered as git reports them.
|
|
48
|
+
*/
|
|
49
|
+
readonly changedFiles: ReadonlyArray<AgentMessageProjectChangedFile>;
|
|
50
|
+
/**
|
|
51
|
+
* Count of lines added across all changed files.
|
|
52
|
+
*/
|
|
53
|
+
readonly insertionCount: number;
|
|
54
|
+
/**
|
|
55
|
+
* Count of lines removed across all changed files.
|
|
56
|
+
*/
|
|
57
|
+
readonly deletionCount: number;
|
|
58
|
+
/**
|
|
59
|
+
* Unified diff of the commit, shortened when the change is too large to carry into a chat.
|
|
60
|
+
*/
|
|
61
|
+
readonly diff: string;
|
|
62
|
+
/**
|
|
63
|
+
* Whether `diff` holds only the beginning of the real diff.
|
|
64
|
+
*/
|
|
65
|
+
readonly isDiffTruncated: boolean;
|
|
66
|
+
};
|
|
67
|
+
/**
|
|
68
|
+
* Validates one already-parsed JSON value as a project change.
|
|
69
|
+
*
|
|
70
|
+
* @param value - Raw serialized project change.
|
|
71
|
+
* @returns The typed project change, or `null` when the value does not match the expected shape,
|
|
72
|
+
* so consumers can silently skip foreign or malformed entries.
|
|
73
|
+
*
|
|
74
|
+
* @private internal utility of the agent-message runtime
|
|
75
|
+
*/
|
|
76
|
+
export declare function normalizeAgentMessageProjectChange(value: unknown): AgentMessageProjectChange | null;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Category of one external source an answered agent message touched.
|
|
3
|
+
*
|
|
4
|
+
* - `integration` is a third-party service reached through an integration, for example Gmail.
|
|
5
|
+
* - `website` is a concrete web address the agent fetched or browsed.
|
|
6
|
+
* - `search` is a lookup the agent ran against a web search engine.
|
|
7
|
+
*
|
|
8
|
+
* @private internal type of the agent-message runtime
|
|
9
|
+
*/
|
|
10
|
+
export type AgentMessageTouchedExternalSourceKind = 'integration' | 'website' | 'search';
|
|
11
|
+
/**
|
|
12
|
+
* One source outside the agent itself which answering a single message viewed or edited.
|
|
13
|
+
*
|
|
14
|
+
* Everything the agent does inside its own folder stays internal and is never described here;
|
|
15
|
+
* this records only the reach beyond it, so a chat can tell which outside services and websites
|
|
16
|
+
* one answer really involved.
|
|
17
|
+
*
|
|
18
|
+
* Note: [🚉] This is fully serializable as JSON
|
|
19
|
+
*
|
|
20
|
+
* @private internal type of the agent-message runtime
|
|
21
|
+
*/
|
|
22
|
+
export type AgentMessageTouchedExternalSource = {
|
|
23
|
+
/**
|
|
24
|
+
* Category of the touched source.
|
|
25
|
+
*/
|
|
26
|
+
readonly kind: AgentMessageTouchedExternalSourceKind;
|
|
27
|
+
/**
|
|
28
|
+
* User-facing name of the source, for example `Gmail`, `example.com` or the search query.
|
|
29
|
+
*/
|
|
30
|
+
readonly name: string;
|
|
31
|
+
/**
|
|
32
|
+
* Address of the source, when the touch names a concrete one.
|
|
33
|
+
*/
|
|
34
|
+
readonly url?: string;
|
|
35
|
+
};
|
|
36
|
+
/**
|
|
37
|
+
* Validates one already-parsed JSON value as a touched external source.
|
|
38
|
+
*
|
|
39
|
+
* @param value - Raw serialized source.
|
|
40
|
+
* @returns The typed source, or `null` when the value does not match the expected shape, so
|
|
41
|
+
* consumers can silently skip foreign or malformed entries.
|
|
42
|
+
*
|
|
43
|
+
* @private internal utility of the agent-message runtime
|
|
44
|
+
*/
|
|
45
|
+
export declare function normalizeAgentMessageTouchedExternalSource(value: unknown): AgentMessageTouchedExternalSource | null;
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* One string-keyed payload of a coding-harness tool invocation.
|
|
3
|
+
*
|
|
4
|
+
* @private internal type of agent-message runtime logs
|
|
5
|
+
*/
|
|
6
|
+
type RuntimeLogToolInput = Record<string, unknown>;
|
|
7
|
+
/**
|
|
8
|
+
* One content block of a Claude Code `stream-json` assistant event.
|
|
9
|
+
*
|
|
10
|
+
* @private internal type of agent-message runtime logs
|
|
11
|
+
*/
|
|
12
|
+
export type AgentMessageRuntimeLogContentBlock = {
|
|
13
|
+
readonly type?: string;
|
|
14
|
+
readonly text?: string;
|
|
15
|
+
readonly name?: string;
|
|
16
|
+
readonly input?: RuntimeLogToolInput;
|
|
17
|
+
};
|
|
18
|
+
/**
|
|
19
|
+
* One file path touched by a Codex `file_change` item.
|
|
20
|
+
*
|
|
21
|
+
* @private internal type of agent-message runtime logs
|
|
22
|
+
*/
|
|
23
|
+
export type AgentMessageRuntimeLogFileChange = {
|
|
24
|
+
readonly path?: string;
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* Minimal shape of one coding-harness runtime log event.
|
|
28
|
+
*
|
|
29
|
+
* The runtime log mixes two harness formats — Claude Code `stream-json` (`type`/`message`) and
|
|
30
|
+
* Codex JSONL (`type`/`item`) — so both are described by one permissive structure and every
|
|
31
|
+
* consumer reads only the fields it understands.
|
|
32
|
+
*
|
|
33
|
+
* @private internal type of agent-message runtime logs
|
|
34
|
+
*/
|
|
35
|
+
export type AgentMessageRuntimeLogEvent = {
|
|
36
|
+
readonly type?: string;
|
|
37
|
+
readonly message?: {
|
|
38
|
+
readonly content?: ReadonlyArray<AgentMessageRuntimeLogContentBlock>;
|
|
39
|
+
};
|
|
40
|
+
readonly item?: {
|
|
41
|
+
readonly type?: string;
|
|
42
|
+
readonly command?: string;
|
|
43
|
+
readonly exit_code?: number | null;
|
|
44
|
+
readonly changes?: ReadonlyArray<AgentMessageRuntimeLogFileChange>;
|
|
45
|
+
readonly server?: string;
|
|
46
|
+
readonly tool?: string;
|
|
47
|
+
readonly query?: string;
|
|
48
|
+
};
|
|
49
|
+
};
|
|
50
|
+
/**
|
|
51
|
+
* Parses every structured event out of one coding-harness runtime log.
|
|
52
|
+
*
|
|
53
|
+
* The local agent runner streams the answering harness output into a live runtime log file, one
|
|
54
|
+
* JSON event per line, optionally prefixed by shell noise. Lines without a usable JSON object are
|
|
55
|
+
* skipped so a partially written or interleaved log never breaks its consumers.
|
|
56
|
+
*
|
|
57
|
+
* @param logText - Raw runtime log content.
|
|
58
|
+
* @returns Structured events in the order they were streamed.
|
|
59
|
+
* @private internal utility of the agent-message runtime
|
|
60
|
+
*/
|
|
61
|
+
export declare function parseAgentMessageRuntimeLogEvents(logText: string | null | undefined): ReadonlyArray<AgentMessageRuntimeLogEvent>;
|
|
62
|
+
export {};
|
|
@@ -5,9 +5,9 @@
|
|
|
5
5
|
* Claude Code `--output-format stream-json`) into a live runtime log file next to the queued
|
|
6
6
|
* message. This helper extracts the most recent natural-language assistant narration so the
|
|
7
7
|
* durable chat can show what the agent is doing right now instead of a generic thinking
|
|
8
|
-
* placeholder. Only
|
|
9
|
-
*
|
|
10
|
-
*
|
|
8
|
+
* placeholder. Only concrete, safe activity is surfaced; raw tool payloads, JSON envelopes,
|
|
9
|
+
* and private reasoning are intentionally ignored. When no concrete activity is known, this
|
|
10
|
+
* resolves to `null` so the caller keeps the browser's rotating generic thinking state.
|
|
11
11
|
*
|
|
12
12
|
* @param logText - Raw runtime log content.
|
|
13
13
|
* @returns Latest human-readable activity snippet, or `null` when none can be resolved.
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { AgentMessageTouchedExternalSource } from './AgentMessageTouchedExternalSource';
|
|
2
|
+
/**
|
|
3
|
+
* Resolves which sources outside the agent one coding harness touched while answering a single message.
|
|
4
|
+
*
|
|
5
|
+
* The runtime log streams what the harness really did, so a source counts as touched when the
|
|
6
|
+
* harness reached it in a tool invocation — calling an integration, fetching a web address,
|
|
7
|
+
* searching the web, or running a network client in the shell. Only tool payloads are inspected:
|
|
8
|
+
* tool results and assistant narration are ignored so a service merely mentioned in the
|
|
9
|
+
* conversation is never reported, and addresses of the machine the agent runs on are dropped
|
|
10
|
+
* because they are internal.
|
|
11
|
+
*
|
|
12
|
+
* @param options - Raw runtime log content of one answered message.
|
|
13
|
+
* @returns Touched external sources without duplicates, ordered by first appearance.
|
|
14
|
+
* @private internal utility of the agent-message runtime
|
|
15
|
+
*/
|
|
16
|
+
export declare function resolveAgentMessageTouchedExternalSources(options: {
|
|
17
|
+
readonly logText: string | null | undefined;
|
|
18
|
+
}): ReadonlyArray<AgentMessageTouchedExternalSource>;
|
package/umd/src/utils/agent-message-runtime/resolveAgentMessageTouchedExternalSources.test.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Resolves which projects one coding harness touched while answering a single message.
|
|
3
|
+
*
|
|
4
|
+
* The runtime log streams what the harness really did, so a project counts as touched when the
|
|
5
|
+
* harness named it in a tool invocation — reading, searching, running, or editing files inside
|
|
6
|
+
* `projects/<project-name>/`. Only tool payloads are inspected: tool results and assistant
|
|
7
|
+
* narration are ignored so a project merely mentioned in the conversation is never reported.
|
|
8
|
+
*
|
|
9
|
+
* Every candidate is matched against the projects that really exist, which both filters prompt
|
|
10
|
+
* placeholders such as `projects/<project-name>/` and keeps the reported names canonical.
|
|
11
|
+
*
|
|
12
|
+
* @param options - Raw runtime log content and the project directory names of the agent.
|
|
13
|
+
* @returns Touched project names in the canonical spelling, ordered by first appearance.
|
|
14
|
+
* @private internal utility of the agent-message runtime
|
|
15
|
+
*/
|
|
16
|
+
export declare function resolveAgentMessageTouchedProjectNames(options: {
|
|
17
|
+
readonly logText: string | null | undefined;
|
|
18
|
+
readonly knownProjectNames: ReadonlyArray<string>;
|
|
19
|
+
}): ReadonlyArray<string>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -75,9 +75,12 @@ export type CreateTerminalAgentAvatarVisualOptions = {
|
|
|
75
75
|
*/
|
|
76
76
|
readonly colorDepth?: AsciiArtColorDepth;
|
|
77
77
|
/**
|
|
78
|
-
* Platform-specific canvas factory used to rasterize
|
|
78
|
+
* Platform-specific canvas factory used to rasterize pixel-based visuals.
|
|
79
|
+
*
|
|
80
|
+
* Character-based visuals such as `AsciiOctopus` paint the terminal grid directly, so they
|
|
81
|
+
* render without any canvas; a pixel-based visual renders an empty frame when it is missing.
|
|
79
82
|
*/
|
|
80
|
-
readonly createCanvas
|
|
83
|
+
readonly createCanvas?: CreateCanvasForAsciiArt;
|
|
81
84
|
};
|
|
82
85
|
/**
|
|
83
86
|
* Resolves the built-in avatar visual selected for terminal rendering of one agent source.
|
|
@@ -62,6 +62,12 @@ export type ConvertImageDataToAsciiArtOptions = {
|
|
|
62
62
|
*/
|
|
63
63
|
readonly alphaThreshold?: number;
|
|
64
64
|
};
|
|
65
|
+
/**
|
|
66
|
+
* Default alpha channel value below which a cell is rendered as terminal background.
|
|
67
|
+
*
|
|
68
|
+
* @private within the repository
|
|
69
|
+
*/
|
|
70
|
+
export declare const DEFAULT_ALPHA_THRESHOLD = 32;
|
|
65
71
|
/**
|
|
66
72
|
* Converts raw RGBA image pixels into colored ASCII art for ANSI terminals.
|
|
67
73
|
*
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import type { AsciiArtColorDepth } from './convertImageDataToAsciiArt';
|
|
2
|
+
/**
|
|
3
|
+
* ANSI escape sequence that resets all colors and attributes.
|
|
4
|
+
*
|
|
5
|
+
* @private within the repository
|
|
6
|
+
*/
|
|
7
|
+
export declare const ANSI_RESET = "\u001B[0m";
|
|
8
|
+
/**
|
|
9
|
+
* One opaque 24-bit color which should be written into an ANSI escape sequence.
|
|
10
|
+
*
|
|
11
|
+
* @private within the repository
|
|
12
|
+
*/
|
|
13
|
+
export type AnsiRgbColor = {
|
|
14
|
+
/**
|
|
15
|
+
* Red channel in the range `[0, 255]`.
|
|
16
|
+
*/
|
|
17
|
+
readonly red: number;
|
|
18
|
+
/**
|
|
19
|
+
* Green channel in the range `[0, 255]`.
|
|
20
|
+
*/
|
|
21
|
+
readonly green: number;
|
|
22
|
+
/**
|
|
23
|
+
* Blue channel in the range `[0, 255]`.
|
|
24
|
+
*/
|
|
25
|
+
readonly blue: number;
|
|
26
|
+
};
|
|
27
|
+
/**
|
|
28
|
+
* Creates the ANSI escape code that sets the foreground color of following characters.
|
|
29
|
+
*
|
|
30
|
+
* @param color Color painted onto the characters.
|
|
31
|
+
* @param colorDepth Color depth supported by the target terminal.
|
|
32
|
+
* @returns ANSI escape sequence.
|
|
33
|
+
*
|
|
34
|
+
* @private within the repository
|
|
35
|
+
*/
|
|
36
|
+
export declare function createAnsiForegroundColorCode(color: AnsiRgbColor, colorDepth: AsciiArtColorDepth): string;
|
|
37
|
+
/**
|
|
38
|
+
* Creates the ANSI escape code that sets the background color of following characters.
|
|
39
|
+
*
|
|
40
|
+
* @param color Color painted behind the characters.
|
|
41
|
+
* @param colorDepth Color depth supported by the target terminal.
|
|
42
|
+
* @returns ANSI escape sequence.
|
|
43
|
+
*
|
|
44
|
+
* @private within the repository
|
|
45
|
+
*/
|
|
46
|
+
export declare function createAnsiBackgroundColorCode(color: AnsiRgbColor, colorDepth: AsciiArtColorDepth): string;
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import type { TODO_any } from '../organization/TODO_any';
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
3
|
+
* Creates a debounced function that runs after calls have been quiet for the given delay.
|
|
4
4
|
*
|
|
5
5
|
* @public exported from `@promptbook/utils`
|
|
6
6
|
*/
|
|
7
|
-
export declare function debounce<T extends (...args: TODO_any[]) => void>(fn: T, delay: number): (...args: Parameters<T>) => void
|
|
7
|
+
export declare function debounce<T extends (...args: TODO_any[]) => void>(fn: T, delay: number): ((...args: Parameters<T>) => void) & {
|
|
8
|
+
cancel: () => void;
|
|
9
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -10,9 +10,10 @@ import type { string_char_emoji } from '../../types/typeAliasEmoji';
|
|
|
10
10
|
*/
|
|
11
11
|
export declare const EMOJIS_IN_CATEGORIES: Record<string, ReadonlyArray<string_char_emoji>>;
|
|
12
12
|
/**
|
|
13
|
-
*
|
|
13
|
+
* Curated repository catalogue of emoji and legacy pictographic symbols.
|
|
14
14
|
*
|
|
15
|
-
*
|
|
15
|
+
* Code that needs to generate a valid Unicode emoji should apply its own validation
|
|
16
|
+
* to this catalogue rather than assume every entry is an emoji.
|
|
16
17
|
*
|
|
17
18
|
* @private within the repository
|
|
18
19
|
*/
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/umd/src/version.d.ts
CHANGED
|
@@ -15,7 +15,7 @@ export declare const BOOK_LANGUAGE_VERSION: string_semantic_version;
|
|
|
15
15
|
export declare const PROMPTBOOK_ENGINE_VERSION: string_promptbook_version;
|
|
16
16
|
/**
|
|
17
17
|
* Represents the version string of the Promptbook engine.
|
|
18
|
-
* It follows semantic versioning (e.g., `0.114.0-
|
|
18
|
+
* It follows semantic versioning (e.g., `0.114.0-29`).
|
|
19
19
|
*
|
|
20
20
|
* @generated
|
|
21
21
|
*/
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import type { HarnessDefinition } from './HarnessDefinition';
|
|
2
|
-
/**
|
|
3
|
-
* Installs or updates one CLI coding harness globally through npm.
|
|
4
|
-
*
|
|
5
|
-
* A failed installation is reported but never aborts the running command, because the harness check
|
|
6
|
-
* is only an assistant - the command itself may still work with a manually managed harness.
|
|
7
|
-
*
|
|
8
|
-
* Note: `$` is used to indicate that this function is not a pure function - it installs a global npm package
|
|
9
|
-
*
|
|
10
|
-
* @returns `true` when the harness has been installed, `false` when the installation failed
|
|
11
|
-
* @private internal utility of `promptbookCli`
|
|
12
|
-
*/
|
|
13
|
-
export declare function $installHarness(definition: HarnessDefinition): Promise<boolean>;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Extracts the version from the raw output of a harness `--version` command.
|
|
3
|
-
*
|
|
4
|
-
* Harness CLIs print their version in many shapes, for example `2.1.199 (Claude Code)`,
|
|
5
|
-
* `codex-cli 0.144.4`, `GitHub Copilot CLI 1.0.61.` or after unrelated deprecation warning lines,
|
|
6
|
-
* so the first version-looking token of the first matching line wins.
|
|
7
|
-
*
|
|
8
|
-
* @returns The parsed version or `null` when the output contains no version
|
|
9
|
-
* @private internal utility of `promptbookCli`
|
|
10
|
-
*/
|
|
11
|
-
export declare function extractHarnessVersionFromOutput(output: string): string | null;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Compares the installed harness version with the newest version published to npm.
|
|
3
|
-
*
|
|
4
|
-
* Only the numeric `major.minor.patch` segments are compared and pre-release suffixes are ignored,
|
|
5
|
-
* so a harness installed from a pre-release build of the newest version is not reported as outdated.
|
|
6
|
-
*
|
|
7
|
-
* @private internal utility of `promptbookCli`
|
|
8
|
-
*/
|
|
9
|
-
export declare function isHarnessVersionOutdated(installedVersion: string, latestVersion: string): boolean;
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import type { AgentModelRequirements } from '../../book-2.0/agent-source/AgentModelRequirements';
|
|
2
|
-
import type { ToolFunction } from '../../scripting/javascript/JavascriptExecutionToolsOptions';
|
|
3
|
-
import type { string_javascript_name } from '../../types/string_person_fullname';
|
|
4
|
-
import { BaseCommitmentDefinition } from '../_base/BaseCommitmentDefinition';
|
|
5
|
-
export type { MemoryToolRecord, MemoryToolRuntimeAdapter, MemoryToolRuntimeContext } from './MemoryToolRuntimeAdapter';
|
|
6
|
-
export { setMemoryToolRuntimeAdapter } from './setMemoryToolRuntimeAdapter';
|
|
7
|
-
/**
|
|
8
|
-
* MEMORY commitment definition
|
|
9
|
-
*
|
|
10
|
-
* The MEMORY commitment is similar to KNOWLEDGE but has a focus on remembering past
|
|
11
|
-
* interactions and user preferences. It helps the agent maintain context about the
|
|
12
|
-
* user's history, preferences, and previous conversations.
|
|
13
|
-
*
|
|
14
|
-
* Example usage in agent source:
|
|
15
|
-
*
|
|
16
|
-
* ```book
|
|
17
|
-
* MEMORY User prefers detailed technical explanations
|
|
18
|
-
* MEMORY Previously worked on React projects
|
|
19
|
-
* MEMORY Timezone: UTC-5 (Eastern Time)
|
|
20
|
-
* ```
|
|
21
|
-
*
|
|
22
|
-
* @private [🪔] Maybe export the commitments through some package
|
|
23
|
-
*/
|
|
24
|
-
export declare class MemoryCommitmentDefinition extends BaseCommitmentDefinition<'MEMORY' | 'MEMORIES'> {
|
|
25
|
-
constructor(type?: 'MEMORY' | 'MEMORIES');
|
|
26
|
-
get requiresContent(): boolean;
|
|
27
|
-
/**
|
|
28
|
-
* Short one-line description of MEMORY.
|
|
29
|
-
*/
|
|
30
|
-
get description(): string;
|
|
31
|
-
/**
|
|
32
|
-
* Icon for this commitment.
|
|
33
|
-
*/
|
|
34
|
-
get icon(): string;
|
|
35
|
-
/**
|
|
36
|
-
* Markdown documentation for MEMORY commitment.
|
|
37
|
-
*/
|
|
38
|
-
get documentation(): string;
|
|
39
|
-
applyToAgentModelRequirements(requirements: AgentModelRequirements, content: string): AgentModelRequirements;
|
|
40
|
-
/**
|
|
41
|
-
* Gets human-readable titles for MEMORY tool functions.
|
|
42
|
-
*/
|
|
43
|
-
getToolTitles(): Record<string_javascript_name, string>;
|
|
44
|
-
/**
|
|
45
|
-
* Gets MEMORY tool function implementations.
|
|
46
|
-
*/
|
|
47
|
-
getToolFunctions(): Record<string_javascript_name, ToolFunction>;
|
|
48
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Names of tools used by the MEMORY commitment.
|
|
3
|
-
*
|
|
4
|
-
* @private function of MemoryCommitmentDefinition
|
|
5
|
-
*/
|
|
6
|
-
export declare const MemoryToolNames: {
|
|
7
|
-
readonly retrieve: string;
|
|
8
|
-
readonly store: string;
|
|
9
|
-
readonly update: string;
|
|
10
|
-
readonly delete: string;
|
|
11
|
-
};
|