@promptbook/javascript 0.103.0-9 → 0.103.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 +59 -39
- package/esm/index.es.js +138 -124
- package/esm/index.es.js.map +1 -1
- package/esm/typings/books/index.d.ts +0 -81
- package/esm/typings/servers.d.ts +9 -7
- package/esm/typings/src/_packages/browser.index.d.ts +6 -0
- package/esm/typings/src/_packages/cli.index.d.ts +4 -0
- package/esm/typings/src/_packages/components.index.d.ts +22 -8
- package/esm/typings/src/_packages/core.index.d.ts +58 -18
- package/esm/typings/src/_packages/node.index.d.ts +2 -2
- package/esm/typings/src/_packages/remote-server.index.d.ts +2 -0
- package/esm/typings/src/_packages/types.index.d.ts +70 -8
- package/esm/typings/src/_packages/utils.index.d.ts +6 -0
- package/esm/typings/src/_packages/wizard.index.d.ts +4 -0
- package/esm/typings/src/book-2.0/agent-source/AgentBasicInformation.d.ts +20 -5
- package/esm/typings/src/book-2.0/agent-source/AgentModelRequirements.d.ts +17 -1
- package/esm/typings/src/book-2.0/agent-source/AgentSourceParseResult.d.ts +3 -2
- package/esm/typings/src/book-2.0/agent-source/computeAgentHash.d.ts +8 -0
- package/esm/typings/src/book-2.0/agent-source/createCommitmentRegex.d.ts +3 -3
- package/esm/typings/src/book-2.0/agent-source/createDefaultAgentName.d.ts +8 -0
- package/esm/typings/src/book-2.0/agent-source/normalizeAgentName.d.ts +9 -0
- package/esm/typings/src/book-2.0/agent-source/padBook.d.ts +18 -0
- package/esm/typings/src/book-2.0/agent-source/parseAgentSourceWithCommitments.d.ts +1 -1
- package/esm/typings/src/book-2.0/agent-source/string_book.d.ts +3 -0
- package/esm/typings/src/book-components/AvatarProfile/AvatarProfile/AvatarProfile.d.ts +6 -1
- package/esm/typings/src/book-components/BookEditor/BookEditor.d.ts +85 -14
- package/esm/typings/src/book-components/BookEditor/BookEditorActionbar.d.ts +18 -0
- package/esm/typings/src/book-components/BookEditor/BookEditorMonaco.d.ts +5 -0
- package/esm/typings/src/book-components/Chat/AgentChat/AgentChat.d.ts +17 -0
- package/esm/typings/src/book-components/Chat/AgentChat/AgentChatProps.d.ts +13 -0
- package/esm/typings/src/book-components/Chat/Chat/ChatProps.d.ts +16 -0
- package/esm/typings/src/book-components/Chat/LlmChat/LlmChatProps.d.ts +5 -0
- package/esm/typings/src/book-components/Chat/MarkdownContent/MarkdownContent.d.ts +15 -0
- package/esm/typings/src/book-components/Chat/MockedChat/MockedChat.d.ts +5 -0
- package/esm/typings/src/book-components/Chat/save/_common/ChatSaveFormatDefinition.d.ts +1 -1
- package/esm/typings/src/book-components/Chat/save/html/htmlSaveFormatDefinition.d.ts +1 -0
- package/esm/typings/src/book-components/Chat/save/pdf/pdfSaveFormatDefinition.d.ts +4 -0
- package/esm/typings/src/book-components/Chat/types/ChatParticipant.d.ts +1 -1
- package/esm/typings/src/book-components/PromptbookAgent/PromptbookAgentIntegration.d.ts +52 -0
- package/esm/typings/src/book-components/PromptbookAgent/PromptbookAgentSeamlessIntegration.d.ts +14 -0
- package/esm/typings/src/book-components/Qr/BrandedQrCode.d.ts +18 -0
- package/esm/typings/src/book-components/Qr/GenericQrCode.d.ts +10 -0
- package/esm/typings/src/book-components/Qr/PromptbookQrCode.d.ts +18 -0
- package/esm/typings/src/book-components/Qr/useQrCode.d.ts +15 -0
- package/esm/typings/src/book-components/_common/Dropdown/Dropdown.d.ts +15 -0
- package/esm/typings/src/book-components/_common/HamburgerMenu/HamburgerMenu.d.ts +12 -0
- package/esm/typings/src/book-components/_common/Modal/Modal.d.ts +2 -2
- package/esm/typings/src/book-components/_common/Tooltip/Tooltip.d.ts +47 -0
- package/esm/typings/src/book-components/icons/AboutIcon.d.ts +9 -0
- package/esm/typings/src/book-components/icons/CameraIcon.d.ts +11 -0
- package/esm/typings/src/book-components/icons/CloseIcon.d.ts +4 -8
- package/esm/typings/src/book-components/icons/DownloadIcon.d.ts +9 -0
- package/esm/typings/src/book-components/icons/ExitFullscreenIcon.d.ts +7 -0
- package/esm/typings/src/book-components/icons/FullscreenIcon.d.ts +7 -0
- package/esm/typings/src/book-components/icons/MenuIcon.d.ts +12 -0
- package/esm/typings/src/book-components/icons/MicIcon.d.ts +8 -0
- package/esm/typings/src/book-components/icons/SendIcon.d.ts +3 -0
- package/esm/typings/src/cli/cli-commands/_boilerplate.d.ts +2 -1
- package/esm/typings/src/cli/cli-commands/about.d.ts +3 -1
- package/esm/typings/src/cli/cli-commands/hello.d.ts +2 -1
- package/esm/typings/src/cli/cli-commands/list-models.d.ts +2 -1
- package/esm/typings/src/cli/cli-commands/list-scrapers.d.ts +2 -1
- package/esm/typings/src/cli/cli-commands/login.d.ts +2 -1
- package/esm/typings/src/cli/cli-commands/make.d.ts +2 -1
- package/esm/typings/src/cli/cli-commands/prettify.d.ts +2 -1
- package/esm/typings/src/cli/cli-commands/run.d.ts +2 -1
- package/esm/typings/src/cli/cli-commands/{start-server.d.ts → start-agents-server.d.ts} +3 -2
- package/esm/typings/src/cli/cli-commands/start-pipelines-server.d.ts +15 -0
- package/esm/typings/src/cli/cli-commands/test-command.d.ts +2 -1
- package/esm/typings/src/cli/common/$addGlobalOptionsToCommand.d.ts +2 -1
- package/esm/typings/src/collection/agent-collection/AgentCollection.d.ts +12 -0
- package/esm/typings/src/collection/agent-collection/constructors/agent-collection-in-supabase/AgentCollectionInSupabase.d.ts +75 -0
- package/esm/typings/src/collection/agent-collection/constructors/agent-collection-in-supabase/AgentCollectionInSupabaseOptions.d.ts +10 -0
- package/esm/typings/src/collection/agent-collection/constructors/agent-collection-in-supabase/AgentsDatabaseSchema.d.ts +154 -0
- package/esm/typings/src/collection/{PipelineCollection.d.ts → pipeline-collection/PipelineCollection.d.ts} +7 -3
- package/esm/typings/src/collection/{SimplePipelineCollection.d.ts → pipeline-collection/SimplePipelineCollection.d.ts} +5 -5
- package/esm/typings/src/collection/{constructors/createCollectionFromDirectory.d.ts → pipeline-collection/constructors/createPipelineCollectionFromDirectory.d.ts} +8 -11
- package/esm/typings/src/collection/pipeline-collection/constructors/createPipelineCollectionFromJson.d.ts +13 -0
- package/esm/typings/src/collection/{constructors/createCollectionFromPromise.d.ts → pipeline-collection/constructors/createPipelineCollectionFromPromise.d.ts} +6 -5
- package/esm/typings/src/collection/pipeline-collection/constructors/createPipelineCollectionFromPromise.test.d.ts +1 -0
- package/esm/typings/src/collection/{constructors/createCollectionFromUrl.d.ts → pipeline-collection/constructors/createPipelineCollectionFromUrl.d.ts} +3 -3
- package/esm/typings/src/collection/{constructors/createSubcollection.d.ts → pipeline-collection/constructors/createPipelineSubcollection.d.ts} +3 -3
- package/esm/typings/src/collection/pipeline-collection/pipelineCollectionToJson.d.ts +13 -0
- package/esm/typings/src/commands/_common/types/CommandParser.d.ts +4 -5
- package/esm/typings/src/{book-2.0/commitments → commitments}/ACTION/ACTION.d.ts +5 -1
- package/esm/typings/src/commitments/CLOSED/CLOSED.d.ts +39 -0
- package/esm/typings/src/commitments/CLOSED/CLOSED.test.d.ts +4 -0
- package/esm/typings/src/commitments/COMPONENT/COMPONENT.d.ts +28 -0
- package/esm/typings/src/{book-2.0/commitments → commitments}/DELETE/DELETE.d.ts +5 -1
- package/esm/typings/src/{book-2.0/commitments → commitments}/FORMAT/FORMAT.d.ts +5 -1
- package/esm/typings/src/commitments/FROM/FROM.d.ts +34 -0
- package/esm/typings/src/{book-2.0/commitments → commitments}/GOAL/GOAL.d.ts +5 -1
- package/esm/typings/src/{book-2.0/commitments → commitments}/KNOWLEDGE/KNOWLEDGE.d.ts +5 -5
- package/esm/typings/src/commitments/LANGUAGE/LANGUAGE.d.ts +35 -0
- package/esm/typings/src/{book-2.0/commitments → commitments}/MEMORY/MEMORY.d.ts +5 -1
- package/esm/typings/src/commitments/MESSAGE/AgentMessageCommitmentDefinition.d.ts +32 -0
- package/esm/typings/src/commitments/MESSAGE/InitialMessageCommitmentDefinition.d.ts +32 -0
- package/esm/typings/src/{book-2.0/commitments → commitments}/MESSAGE/MESSAGE.d.ts +5 -1
- package/esm/typings/src/commitments/MESSAGE/UserMessageCommitmentDefinition.d.ts +32 -0
- package/esm/typings/src/{book-2.0/commitments → commitments}/META/META.d.ts +5 -1
- package/esm/typings/src/commitments/META_COLOR/META_COLOR.d.ts +48 -0
- package/esm/typings/src/commitments/META_FONT/META_FONT.d.ts +42 -0
- package/esm/typings/src/{book-2.0/commitments → commitments}/META_IMAGE/META_IMAGE.d.ts +5 -1
- package/esm/typings/src/{book-2.0/commitments → commitments}/META_LINK/META_LINK.d.ts +5 -1
- package/esm/typings/src/{book-2.0/commitments → commitments}/MODEL/MODEL.d.ts +5 -1
- package/esm/typings/src/{book-2.0/commitments → commitments}/NOTE/NOTE.d.ts +5 -1
- package/esm/typings/src/commitments/OPEN/OPEN.d.ts +35 -0
- package/esm/typings/src/{book-2.0/commitments → commitments}/PERSONA/PERSONA.d.ts +5 -1
- package/esm/typings/src/{book-2.0/commitments → commitments}/RULE/RULE.d.ts +5 -1
- package/esm/typings/src/{book-2.0/commitments → commitments}/SAMPLE/SAMPLE.d.ts +5 -1
- package/esm/typings/src/{book-2.0/commitments → commitments}/SCENARIO/SCENARIO.d.ts +5 -1
- package/esm/typings/src/{book-2.0/commitments → commitments}/STYLE/STYLE.d.ts +5 -1
- package/esm/typings/src/commitments/USE/USE.d.ts +53 -0
- package/esm/typings/src/commitments/USE_BROWSER/USE_BROWSER.d.ts +42 -0
- package/esm/typings/src/commitments/USE_BROWSER/USE_BROWSER.test.d.ts +1 -0
- package/esm/typings/src/commitments/USE_MCP/USE_MCP.d.ts +37 -0
- package/esm/typings/src/commitments/USE_SEARCH_ENGINE/USE_SEARCH_ENGINE.d.ts +38 -0
- package/esm/typings/src/{book-2.0/commitments → commitments}/_base/BaseCommitmentDefinition.d.ts +14 -2
- package/esm/typings/src/{book-2.0/commitments → commitments}/_base/CommitmentDefinition.d.ts +6 -1
- package/esm/typings/src/{book-2.0/commitments → commitments}/_base/NotYetImplementedCommitmentDefinition.d.ts +5 -1
- package/esm/typings/src/{book-2.0/commitments → commitments}/_base/createEmptyAgentModelRequirements.d.ts +1 -1
- package/esm/typings/src/commitments/index.d.ts +93 -0
- package/esm/typings/src/config.d.ts +24 -3
- package/esm/typings/src/conversion/validation/validatePipeline.d.ts +2 -0
- package/esm/typings/src/errors/0-index.d.ts +6 -0
- package/esm/typings/src/errors/DatabaseError.d.ts +12 -0
- package/esm/typings/src/errors/NotAllowed.d.ts +9 -0
- package/esm/typings/src/errors/WrappedError.d.ts +2 -2
- package/esm/typings/src/execution/AvailableModel.d.ts +1 -0
- package/esm/typings/src/execution/Executables.d.ts +3 -0
- package/esm/typings/src/execution/ExecutionTask.d.ts +12 -3
- package/esm/typings/src/execution/ExecutionTools.d.ts +5 -0
- package/esm/typings/src/execution/FilesystemTools.d.ts +1 -1
- package/esm/typings/src/execution/LlmExecutionTools.d.ts +26 -2
- package/esm/typings/src/execution/PromptResult.d.ts +7 -1
- package/esm/typings/src/execution/createPipelineExecutor/10-executePipeline.d.ts +5 -0
- package/esm/typings/src/execution/createPipelineExecutor/20-executeTask.d.ts +5 -0
- package/esm/typings/src/execution/createPipelineExecutor/30-executeFormatSubvalues.d.ts +5 -0
- package/esm/typings/src/execution/createPipelineExecutor/40-executeAttempts.d.ts +5 -0
- package/esm/typings/src/execution/utils/usage-constants.d.ts +4 -124
- package/esm/typings/src/execution/utils/validatePromptResult.d.ts +2 -0
- package/esm/typings/src/high-level-abstractions/_common/HighLevelAbstraction.d.ts +2 -1
- package/esm/typings/src/llm-providers/_common/register/$provideLlmToolsForWizardOrCli.d.ts +2 -2
- package/esm/typings/src/llm-providers/_common/register/$registeredLlmToolsMessage.d.ts +2 -1
- package/esm/typings/src/llm-providers/_common/register/LlmToolsMetadata.d.ts +1 -1
- package/esm/typings/src/llm-providers/_common/utils/assertUniqueModels.d.ts +12 -0
- package/esm/typings/src/llm-providers/_multiple/getSingleLlmExecutionTools.d.ts +1 -0
- package/esm/typings/src/llm-providers/_multiple/joinLlmExecutionTools.d.ts +1 -0
- package/esm/typings/src/llm-providers/agent/Agent.d.ts +72 -0
- package/esm/typings/src/llm-providers/agent/AgentLlmExecutionTools.d.ts +26 -4
- package/esm/typings/src/llm-providers/agent/AgentOptions.d.ts +19 -0
- package/esm/typings/src/llm-providers/agent/CreateAgentLlmExecutionToolsOptions.d.ts +17 -0
- package/esm/typings/src/llm-providers/agent/RemoteAgent.d.ts +50 -0
- package/esm/typings/src/llm-providers/agent/RemoteAgentOptions.d.ts +11 -0
- package/esm/typings/src/llm-providers/agent/createAgentLlmExecutionTools.d.ts +1 -19
- package/esm/typings/src/llm-providers/anthropic-claude/anthropic-claude-models.d.ts +1 -1
- package/esm/typings/src/llm-providers/google/google-models.d.ts +1 -1
- package/esm/typings/src/llm-providers/ollama/OllamaExecutionTools.d.ts +4 -0
- package/esm/typings/src/llm-providers/openai/OpenAiAssistantExecutionTools.d.ts +60 -2
- package/esm/typings/src/llm-providers/openai/OpenAiAssistantExecutionToolsOptions.d.ts +7 -1
- package/esm/typings/src/llm-providers/openai/OpenAiCompatibleExecutionTools.d.ts +13 -1
- package/esm/typings/src/llm-providers/openai/OpenAiExecutionTools.d.ts +4 -0
- package/esm/typings/src/llm-providers/openai/createOpenAiCompatibleExecutionTools.d.ts +6 -6
- package/esm/typings/src/llm-providers/openai/openai-models.d.ts +1 -1
- package/esm/typings/src/llm-providers/openai/openai-models.test.d.ts +4 -0
- package/esm/typings/src/other/templates/getTemplatesPipelineCollection.d.ts +1 -1
- package/esm/typings/src/pipeline/validatePipelineString.d.ts +2 -0
- package/esm/typings/src/playground/permanent/_boilerplate.d.ts +5 -0
- package/esm/typings/src/playground/permanent/agent-with-browser-playground.d.ts +5 -0
- package/esm/typings/src/prepare/PrepareAndScrapeOptions.d.ts +1 -0
- package/esm/typings/src/remote-server/startAgentServer.d.ts +26 -0
- package/esm/typings/src/remote-server/startRemoteServer.d.ts +4 -1
- package/esm/typings/src/remote-server/types/RemoteServerOptions.d.ts +3 -8
- package/esm/typings/src/scrapers/_boilerplate/createBoilerplateScraper.d.ts +1 -12
- package/esm/typings/src/scrapers/_boilerplate/register-metadata.d.ts +1 -9
- package/esm/typings/src/scrapers/document/createDocumentScraper.d.ts +1 -12
- package/esm/typings/src/scrapers/document/register-metadata.d.ts +1 -9
- package/esm/typings/src/scrapers/document-legacy/createLegacyDocumentScraper.d.ts +1 -12
- package/esm/typings/src/scrapers/document-legacy/register-metadata.d.ts +1 -9
- package/esm/typings/src/scrapers/markdown/createMarkdownScraper.d.ts +1 -12
- package/esm/typings/src/scrapers/markdown/register-metadata.d.ts +1 -9
- package/esm/typings/src/scrapers/markitdown/createMarkitdownScraper.d.ts +1 -12
- package/esm/typings/src/scrapers/markitdown/register-metadata.d.ts +1 -9
- package/esm/typings/src/scrapers/pdf/createPdfScraper.d.ts +1 -12
- package/esm/typings/src/scrapers/pdf/register-metadata.d.ts +1 -9
- package/esm/typings/src/scrapers/website/createWebsiteScraper.d.ts +1 -12
- package/esm/typings/src/scrapers/website/register-metadata.d.ts +1 -9
- package/esm/typings/src/storage/_common/PromptbookStorage.d.ts +1 -0
- package/esm/typings/src/storage/env-storage/$EnvStorage.d.ts +2 -1
- package/esm/typings/src/transpilers/_common/BookTranspiler.d.ts +33 -0
- package/esm/typings/src/transpilers/_common/BookTranspilerOptions.d.ts +18 -0
- package/esm/typings/src/transpilers/_common/register/$bookTranspilersRegister.d.ts +15 -0
- package/esm/typings/src/transpilers/formatted-book-in-markdown/FormattedBookInMarkdownTranspiler.d.ts +16 -0
- package/esm/typings/src/transpilers/formatted-book-in-markdown/register.d.ts +15 -0
- package/esm/typings/src/transpilers/openai-sdk/OpenAiSdkTranspiler.d.ts +16 -0
- package/esm/typings/src/transpilers/openai-sdk/OpenAiSdkTranspiler.test.d.ts +1 -0
- package/esm/typings/src/transpilers/openai-sdk/playground/playground.d.ts +5 -0
- package/esm/typings/src/transpilers/openai-sdk/register.d.ts +15 -0
- package/esm/typings/src/types/LlmCall.d.ts +20 -0
- package/esm/typings/src/types/ModelRequirements.d.ts +13 -1
- package/esm/typings/src/types/ModelVariant.d.ts +1 -1
- package/esm/typings/src/types/Prompt.d.ts +13 -1
- package/esm/typings/src/types/Updatable.d.ts +19 -0
- package/esm/typings/src/types/typeAliases.d.ts +38 -2
- package/esm/typings/src/utils/color/$randomColor.d.ts +1 -0
- package/esm/typings/src/utils/color/Color.d.ts +16 -1
- package/esm/typings/src/utils/color/Color.test.d.ts +1 -0
- package/esm/typings/src/utils/color/css-colors.d.ts +1 -0
- package/esm/typings/src/utils/color/internal-utils/checkChannelValue.d.ts +0 -3
- package/esm/typings/src/utils/color/operators/darken.d.ts +1 -1
- package/esm/typings/src/utils/color/operators/grayscale.d.ts +1 -1
- package/esm/typings/src/utils/color/operators/lighten.d.ts +1 -1
- package/esm/typings/src/utils/color/operators/mixWithColor.d.ts +1 -1
- package/esm/typings/src/utils/color/operators/saturate.d.ts +1 -1
- package/esm/typings/src/utils/environment/$detectRuntimeEnvironment.d.ts +16 -0
- package/esm/typings/src/utils/environment/$getGlobalScope.d.ts +2 -2
- package/esm/typings/src/utils/execCommand/$execCommand.d.ts +2 -1
- package/esm/typings/src/utils/execCommand/$execCommands.d.ts +2 -1
- package/esm/typings/src/utils/files/$induceBookDownload.d.ts +13 -0
- package/esm/typings/src/utils/files/$induceFileDownload.d.ts +13 -0
- package/esm/typings/src/utils/files/ObjectUrl.d.ts +46 -0
- package/esm/typings/src/utils/files/listAllFiles.d.ts +2 -3
- package/esm/typings/src/utils/misc/aboutPromptbookInformation.d.ts +27 -0
- package/esm/typings/src/utils/misc/computeHash.d.ts +11 -0
- package/esm/typings/src/utils/misc/computeHash.test.d.ts +1 -0
- package/esm/typings/src/utils/misc/injectCssModuleIntoShadowRoot.d.ts +1 -0
- package/esm/typings/src/utils/misc/xAboutPromptbookInformation.d.ts +13 -0
- package/esm/typings/src/utils/normalization/normalize-to-kebab-case.d.ts +2 -0
- package/esm/typings/src/utils/normalization/normalizeMessageText.d.ts +9 -0
- package/esm/typings/src/utils/normalization/normalizeMessageText.test.d.ts +1 -0
- package/esm/typings/src/utils/normalization/normalizeTo_PascalCase.d.ts +3 -0
- package/esm/typings/src/utils/normalization/normalizeTo_camelCase.d.ts +2 -0
- package/esm/typings/src/utils/normalization/titleToName.d.ts +2 -0
- package/esm/typings/src/utils/organization/$sideEffect.d.ts +2 -2
- package/esm/typings/src/utils/organization/$side_effect.d.ts +7 -0
- package/esm/typings/src/utils/organization/TODO_USE.d.ts +2 -2
- package/esm/typings/src/utils/organization/keepUnused.d.ts +2 -2
- package/esm/typings/src/utils/organization/preserve.d.ts +3 -3
- package/esm/typings/src/utils/organization/really_any.d.ts +7 -0
- package/esm/typings/src/utils/random/$generateBookBoilerplate.d.ts +31 -0
- package/esm/typings/src/utils/random/$randomAgentPersona.d.ts +9 -0
- package/esm/typings/src/utils/random/$randomFullnameWithColor.d.ts +13 -0
- package/esm/typings/src/utils/random/$randomItem.d.ts +9 -0
- package/esm/typings/src/utils/random/$randomSeed.d.ts +3 -0
- package/esm/typings/src/utils/random/$randomToken.d.ts +2 -0
- package/esm/typings/src/utils/random/CzechNamePool.d.ts +7 -0
- package/esm/typings/src/utils/random/EnglishNamePool.d.ts +7 -0
- package/esm/typings/src/utils/random/NamePool.d.ts +17 -0
- package/esm/typings/src/utils/random/getNamePool.d.ts +10 -0
- package/esm/typings/src/utils/serialization/$deepFreeze.d.ts +2 -1
- package/esm/typings/src/utils/serialization/asSerializable.d.ts +2 -2
- package/esm/typings/src/utils/serialization/serializeToPromptbookJavascript.d.ts +2 -2
- package/esm/typings/src/utils/validators/parameterName/validateParameterName.d.ts +2 -0
- package/esm/typings/src/version.d.ts +1 -1
- package/esm/typings/src/wizard/$getCompiledBook.d.ts +1 -2
- package/package.json +5 -5
- package/umd/index.umd.js +135 -123
- package/umd/index.umd.js.map +1 -1
- package/esm/typings/src/book-2.0/commitments/index.d.ts +0 -60
- package/esm/typings/src/book-components/BookEditor/BookEditorInner.d.ts +0 -5
- package/esm/typings/src/book-components/BookEditor/BookEditorWrapper.d.ts +0 -9
- package/esm/typings/src/book-components/BookEditor/config.d.ts +0 -10
- package/esm/typings/src/book-components/Chat/utils/renderMarkdown.d.ts +0 -21
- package/esm/typings/src/collection/collectionToJson.d.ts +0 -13
- package/esm/typings/src/collection/constructors/createCollectionFromJson.d.ts +0 -13
- /package/esm/typings/src/{book-components/Chat/utils/renderMarkdown.test.d.ts → book-2.0/agent-source/computeAgentHash.test.d.ts} +0 -0
- /package/esm/typings/src/{collection/constructors/createCollectionFromDirectory.test.d.ts → book-2.0/agent-source/normalizeAgentName.test.d.ts} +0 -0
- /package/esm/typings/src/{collection/constructors/createCollectionFromJson.test.d.ts → book-components/Chat/AgentChat/AgentChat.test.d.ts} +0 -0
- /package/esm/typings/src/collection/{constructors/createCollectionFromPromise.test.d.ts → pipeline-collection/constructors/createPipelineCollectionFromDirectory.test.d.ts} +0 -0
- /package/esm/typings/src/{commands/_common/parseCommand.test.d.ts → collection/pipeline-collection/constructors/createPipelineCollectionFromJson.test.d.ts} +0 -0
- /package/esm/typings/src/collection/{collectionToJson.test.d.ts → pipeline-collection/pipelineCollectionToJson.test.d.ts} +0 -0
- /package/esm/typings/src/{book-2.0/commitments → commitments}/_base/BookCommitment.d.ts +0 -0
- /package/esm/typings/src/{book-2.0/commitments → commitments}/_base/ParsedCommitment.d.ts +0 -0
|
@@ -1,29 +1,38 @@
|
|
|
1
1
|
import { BOOK_LANGUAGE_VERSION, PROMPTBOOK_ENGINE_VERSION } from '../version';
|
|
2
|
+
import { computeAgentHash } from '../book-2.0/agent-source/computeAgentHash';
|
|
2
3
|
import { createAgentModelRequirements } from '../book-2.0/agent-source/createAgentModelRequirements';
|
|
3
4
|
import { createAgentModelRequirementsWithCommitments } from '../book-2.0/agent-source/createAgentModelRequirementsWithCommitments';
|
|
5
|
+
import { createDefaultAgentName } from '../book-2.0/agent-source/createDefaultAgentName';
|
|
6
|
+
import { normalizeAgentName } from '../book-2.0/agent-source/normalizeAgentName';
|
|
7
|
+
import { PADDING_LINES } from '../book-2.0/agent-source/padBook';
|
|
8
|
+
import { padBook } from '../book-2.0/agent-source/padBook';
|
|
4
9
|
import { parseAgentSource } from '../book-2.0/agent-source/parseAgentSource';
|
|
5
10
|
import { parseParameters } from '../book-2.0/agent-source/parseParameters';
|
|
6
11
|
import { isValidBook } from '../book-2.0/agent-source/string_book';
|
|
7
12
|
import { validateBook } from '../book-2.0/agent-source/string_book';
|
|
8
13
|
import { DEFAULT_BOOK } from '../book-2.0/agent-source/string_book';
|
|
9
|
-
import { createEmptyAgentModelRequirements } from '../book-2.0/commitments/_base/createEmptyAgentModelRequirements';
|
|
10
|
-
import { createBasicAgentModelRequirements } from '../book-2.0/commitments/_base/createEmptyAgentModelRequirements';
|
|
11
|
-
import { NotYetImplementedCommitmentDefinition } from '../book-2.0/commitments/_base/NotYetImplementedCommitmentDefinition';
|
|
12
|
-
import { getCommitmentDefinition } from '../book-2.0/commitments/index';
|
|
13
|
-
import { getAllCommitmentDefinitions } from '../book-2.0/commitments/index';
|
|
14
|
-
import { getAllCommitmentTypes } from '../book-2.0/commitments/index';
|
|
15
|
-
import { isCommitmentSupported } from '../book-2.0/commitments/index';
|
|
16
14
|
import { generatePlaceholderAgentProfileImageUrl } from '../book-2.0/utils/generatePlaceholderAgentProfileImageUrl';
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
15
|
+
import { AgentCollectionInSupabase } from '../collection/agent-collection/constructors/agent-collection-in-supabase/AgentCollectionInSupabase';
|
|
16
|
+
import { createPipelineCollectionFromJson } from '../collection/pipeline-collection/constructors/createPipelineCollectionFromJson';
|
|
17
|
+
import { createPipelineCollectionFromPromise } from '../collection/pipeline-collection/constructors/createPipelineCollectionFromPromise';
|
|
18
|
+
import { createPipelineCollectionFromUrl } from '../collection/pipeline-collection/constructors/createPipelineCollectionFromUrl';
|
|
19
|
+
import { createPipelineSubcollection } from '../collection/pipeline-collection/constructors/createPipelineSubcollection';
|
|
20
|
+
import { pipelineCollectionToJson } from '../collection/pipeline-collection/pipelineCollectionToJson';
|
|
21
|
+
import { createEmptyAgentModelRequirements } from '../commitments/_base/createEmptyAgentModelRequirements';
|
|
22
|
+
import { createBasicAgentModelRequirements } from '../commitments/_base/createEmptyAgentModelRequirements';
|
|
23
|
+
import { NotYetImplementedCommitmentDefinition } from '../commitments/_base/NotYetImplementedCommitmentDefinition';
|
|
24
|
+
import { getCommitmentDefinition } from '../commitments/index';
|
|
25
|
+
import { getAllCommitmentDefinitions } from '../commitments/index';
|
|
26
|
+
import { getAllCommitmentTypes } from '../commitments/index';
|
|
27
|
+
import { isCommitmentSupported } from '../commitments/index';
|
|
28
|
+
import type { GroupedCommitmentDefinition } from '../commitments/index';
|
|
29
|
+
import { getGroupedCommitmentDefinitions } from '../commitments/index';
|
|
22
30
|
import { NAME } from '../config';
|
|
23
31
|
import { ADMIN_EMAIL } from '../config';
|
|
24
32
|
import { ADMIN_GITHUB_NAME } from '../config';
|
|
25
33
|
import { CLAIM } from '../config';
|
|
26
34
|
import { PROMPTBOOK_COLOR } from '../config';
|
|
35
|
+
import { PROMPTBOOK_SYNTAX_COLORS } from '../config';
|
|
27
36
|
import { PROMPTBOOK_CHAT_COLOR } from '../config';
|
|
28
37
|
import { USER_CHAT_COLOR } from '../config';
|
|
29
38
|
import { DEFAULT_BOOK_TITLE } from '../config';
|
|
@@ -41,6 +50,7 @@ import { DEFAULT_MAX_EXECUTION_ATTEMPTS } from '../config';
|
|
|
41
50
|
import { DEFAULT_MAX_KNOWLEDGE_SOURCES_SCRAPING_DEPTH } from '../config';
|
|
42
51
|
import { DEFAULT_MAX_KNOWLEDGE_SOURCES_SCRAPING_TOTAL } from '../config';
|
|
43
52
|
import { DEFAULT_BOOKS_DIRNAME } from '../config';
|
|
53
|
+
import { DEFAULT_AGENTS_DIRNAME } from '../config';
|
|
44
54
|
import { DEFAULT_DOWNLOAD_CACHE_DIRNAME } from '../config';
|
|
45
55
|
import { DEFAULT_EXECUTION_CACHE_DIRNAME } from '../config';
|
|
46
56
|
import { DEFAULT_SCRAPE_CACHE_DIRNAME } from '../config';
|
|
@@ -74,11 +84,13 @@ import { PROMPTBOOK_ERRORS } from '../errors/0-index';
|
|
|
74
84
|
import { AbstractFormatError } from '../errors/AbstractFormatError';
|
|
75
85
|
import { AuthenticationError } from '../errors/AuthenticationError';
|
|
76
86
|
import { CollectionError } from '../errors/CollectionError';
|
|
87
|
+
import { DatabaseError } from '../errors/DatabaseError';
|
|
77
88
|
import { EnvironmentMismatchError } from '../errors/EnvironmentMismatchError';
|
|
78
89
|
import { ExpectError } from '../errors/ExpectError';
|
|
79
90
|
import { KnowledgeScrapeError } from '../errors/KnowledgeScrapeError';
|
|
80
91
|
import { LimitReachedError } from '../errors/LimitReachedError';
|
|
81
92
|
import { MissingToolsError } from '../errors/MissingToolsError';
|
|
93
|
+
import { NotAllowed } from '../errors/NotAllowed';
|
|
82
94
|
import { NotFoundError } from '../errors/NotFoundError';
|
|
83
95
|
import { NotYetImplementedError } from '../errors/NotYetImplementedError';
|
|
84
96
|
import { ParseError } from '../errors/ParseError';
|
|
@@ -126,10 +138,12 @@ import { limitTotalUsage } from '../llm-providers/_common/utils/count-total-usag
|
|
|
126
138
|
import { getSingleLlmExecutionTools } from '../llm-providers/_multiple/getSingleLlmExecutionTools';
|
|
127
139
|
import { joinLlmExecutionTools } from '../llm-providers/_multiple/joinLlmExecutionTools';
|
|
128
140
|
import { MultipleLlmExecutionTools } from '../llm-providers/_multiple/MultipleLlmExecutionTools';
|
|
141
|
+
import { Agent } from '../llm-providers/agent/Agent';
|
|
129
142
|
import { AgentLlmExecutionTools } from '../llm-providers/agent/AgentLlmExecutionTools';
|
|
130
143
|
import { createAgentLlmExecutionTools } from '../llm-providers/agent/createAgentLlmExecutionTools';
|
|
131
144
|
import { _AgentMetadata } from '../llm-providers/agent/register-configuration';
|
|
132
145
|
import { _AgentRegistration } from '../llm-providers/agent/register-constructor';
|
|
146
|
+
import { RemoteAgent } from '../llm-providers/agent/RemoteAgent';
|
|
133
147
|
import { _AnthropicClaudeMetadataRegistration } from '../llm-providers/anthropic-claude/register-configuration';
|
|
134
148
|
import { _AzureOpenAiMetadataRegistration } from '../llm-providers/azure-openai/register-configuration';
|
|
135
149
|
import { _DeepseekMetadataRegistration } from '../llm-providers/deepseek/register-configuration';
|
|
@@ -168,19 +182,37 @@ import { _WebsiteScraperMetadataRegistration } from '../scrapers/website/registe
|
|
|
168
182
|
import { BlackholeStorage } from '../storage/blackhole/BlackholeStorage';
|
|
169
183
|
import { MemoryStorage } from '../storage/memory/MemoryStorage';
|
|
170
184
|
import { PrefixStorage } from '../storage/utils/PrefixStorage';
|
|
185
|
+
import { $bookTranspilersRegister } from '../transpilers/_common/register/$bookTranspilersRegister';
|
|
186
|
+
import { FormattedBookInMarkdownTranspiler } from '../transpilers/formatted-book-in-markdown/FormattedBookInMarkdownTranspiler';
|
|
187
|
+
import { OpenAiSdkTranspiler } from '../transpilers/openai-sdk/OpenAiSdkTranspiler';
|
|
171
188
|
import { MODEL_VARIANTS } from '../types/ModelVariant';
|
|
172
189
|
import { NonTaskSectionTypes } from '../types/SectionType';
|
|
173
190
|
import { SectionTypes } from '../types/SectionType';
|
|
174
191
|
import { TaskTypes } from '../types/TaskType';
|
|
192
|
+
import { aboutPromptbookInformation } from '../utils/misc/aboutPromptbookInformation';
|
|
193
|
+
import { $generateBookBoilerplate } from '../utils/random/$generateBookBoilerplate';
|
|
175
194
|
import { REMOTE_SERVER_URLS } from '../../servers';
|
|
195
|
+
import { AUTO_FEDERATED_AGENT_SERVER_URLS } from '../../servers';
|
|
176
196
|
export { BOOK_LANGUAGE_VERSION, PROMPTBOOK_ENGINE_VERSION };
|
|
197
|
+
export { computeAgentHash };
|
|
177
198
|
export { createAgentModelRequirements };
|
|
178
199
|
export { createAgentModelRequirementsWithCommitments };
|
|
200
|
+
export { createDefaultAgentName };
|
|
201
|
+
export { normalizeAgentName };
|
|
202
|
+
export { PADDING_LINES };
|
|
203
|
+
export { padBook };
|
|
179
204
|
export { parseAgentSource };
|
|
180
205
|
export { parseParameters };
|
|
181
206
|
export { isValidBook };
|
|
182
207
|
export { validateBook };
|
|
183
208
|
export { DEFAULT_BOOK };
|
|
209
|
+
export { generatePlaceholderAgentProfileImageUrl };
|
|
210
|
+
export { AgentCollectionInSupabase };
|
|
211
|
+
export { createPipelineCollectionFromJson };
|
|
212
|
+
export { createPipelineCollectionFromPromise };
|
|
213
|
+
export { createPipelineCollectionFromUrl };
|
|
214
|
+
export { createPipelineSubcollection };
|
|
215
|
+
export { pipelineCollectionToJson };
|
|
184
216
|
export { createEmptyAgentModelRequirements };
|
|
185
217
|
export { createBasicAgentModelRequirements };
|
|
186
218
|
export { NotYetImplementedCommitmentDefinition };
|
|
@@ -188,17 +220,14 @@ export { getCommitmentDefinition };
|
|
|
188
220
|
export { getAllCommitmentDefinitions };
|
|
189
221
|
export { getAllCommitmentTypes };
|
|
190
222
|
export { isCommitmentSupported };
|
|
191
|
-
export {
|
|
192
|
-
export {
|
|
193
|
-
export { createCollectionFromJson };
|
|
194
|
-
export { createCollectionFromPromise };
|
|
195
|
-
export { createCollectionFromUrl };
|
|
196
|
-
export { createSubcollection };
|
|
223
|
+
export type { GroupedCommitmentDefinition };
|
|
224
|
+
export { getGroupedCommitmentDefinitions };
|
|
197
225
|
export { NAME };
|
|
198
226
|
export { ADMIN_EMAIL };
|
|
199
227
|
export { ADMIN_GITHUB_NAME };
|
|
200
228
|
export { CLAIM };
|
|
201
229
|
export { PROMPTBOOK_COLOR };
|
|
230
|
+
export { PROMPTBOOK_SYNTAX_COLORS };
|
|
202
231
|
export { PROMPTBOOK_CHAT_COLOR };
|
|
203
232
|
export { USER_CHAT_COLOR };
|
|
204
233
|
export { DEFAULT_BOOK_TITLE };
|
|
@@ -216,6 +245,7 @@ export { DEFAULT_MAX_EXECUTION_ATTEMPTS };
|
|
|
216
245
|
export { DEFAULT_MAX_KNOWLEDGE_SOURCES_SCRAPING_DEPTH };
|
|
217
246
|
export { DEFAULT_MAX_KNOWLEDGE_SOURCES_SCRAPING_TOTAL };
|
|
218
247
|
export { DEFAULT_BOOKS_DIRNAME };
|
|
248
|
+
export { DEFAULT_AGENTS_DIRNAME };
|
|
219
249
|
export { DEFAULT_DOWNLOAD_CACHE_DIRNAME };
|
|
220
250
|
export { DEFAULT_EXECUTION_CACHE_DIRNAME };
|
|
221
251
|
export { DEFAULT_SCRAPE_CACHE_DIRNAME };
|
|
@@ -249,11 +279,13 @@ export { PROMPTBOOK_ERRORS };
|
|
|
249
279
|
export { AbstractFormatError };
|
|
250
280
|
export { AuthenticationError };
|
|
251
281
|
export { CollectionError };
|
|
282
|
+
export { DatabaseError };
|
|
252
283
|
export { EnvironmentMismatchError };
|
|
253
284
|
export { ExpectError };
|
|
254
285
|
export { KnowledgeScrapeError };
|
|
255
286
|
export { LimitReachedError };
|
|
256
287
|
export { MissingToolsError };
|
|
288
|
+
export { NotAllowed };
|
|
257
289
|
export { NotFoundError };
|
|
258
290
|
export { NotYetImplementedError };
|
|
259
291
|
export { ParseError };
|
|
@@ -301,10 +333,12 @@ export { limitTotalUsage };
|
|
|
301
333
|
export { getSingleLlmExecutionTools };
|
|
302
334
|
export { joinLlmExecutionTools };
|
|
303
335
|
export { MultipleLlmExecutionTools };
|
|
336
|
+
export { Agent };
|
|
304
337
|
export { AgentLlmExecutionTools };
|
|
305
338
|
export { createAgentLlmExecutionTools };
|
|
306
339
|
export { _AgentMetadata };
|
|
307
340
|
export { _AgentRegistration };
|
|
341
|
+
export { RemoteAgent };
|
|
308
342
|
export { _AnthropicClaudeMetadataRegistration };
|
|
309
343
|
export { _AzureOpenAiMetadataRegistration };
|
|
310
344
|
export { _DeepseekMetadataRegistration };
|
|
@@ -343,8 +377,14 @@ export { _WebsiteScraperMetadataRegistration };
|
|
|
343
377
|
export { BlackholeStorage };
|
|
344
378
|
export { MemoryStorage };
|
|
345
379
|
export { PrefixStorage };
|
|
380
|
+
export { $bookTranspilersRegister };
|
|
381
|
+
export { FormattedBookInMarkdownTranspiler };
|
|
382
|
+
export { OpenAiSdkTranspiler };
|
|
346
383
|
export { MODEL_VARIANTS };
|
|
347
384
|
export { NonTaskSectionTypes };
|
|
348
385
|
export { SectionTypes };
|
|
349
386
|
export { TaskTypes };
|
|
387
|
+
export { aboutPromptbookInformation };
|
|
388
|
+
export { $generateBookBoilerplate };
|
|
350
389
|
export { REMOTE_SERVER_URLS };
|
|
390
|
+
export { AUTO_FEDERATED_AGENT_SERVER_URLS };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { BOOK_LANGUAGE_VERSION, PROMPTBOOK_ENGINE_VERSION } from '../version';
|
|
2
|
-
import {
|
|
2
|
+
import { createPipelineCollectionFromDirectory } from '../collection/pipeline-collection/constructors/createPipelineCollectionFromDirectory';
|
|
3
3
|
import { $provideExecutablesForNode } from '../executables/$provideExecutablesForNode';
|
|
4
4
|
import { $provideExecutionToolsForNode } from '../execution/utils/$provideExecutionToolsForNode';
|
|
5
5
|
import { $provideLlmToolsConfigurationFromEnv } from '../llm-providers/_common/register/$provideLlmToolsConfigurationFromEnv';
|
|
@@ -11,7 +11,7 @@ import { FileCacheStorage } from '../storage/file-cache-storage/FileCacheStorage
|
|
|
11
11
|
import { $execCommand } from '../utils/execCommand/$execCommand';
|
|
12
12
|
import { $execCommands } from '../utils/execCommand/$execCommands';
|
|
13
13
|
export { BOOK_LANGUAGE_VERSION, PROMPTBOOK_ENGINE_VERSION };
|
|
14
|
-
export {
|
|
14
|
+
export { createPipelineCollectionFromDirectory };
|
|
15
15
|
export { $provideExecutablesForNode };
|
|
16
16
|
export { $provideExecutionToolsForNode };
|
|
17
17
|
export { $provideLlmToolsConfigurationFromEnv };
|
|
@@ -2,11 +2,13 @@ import { BOOK_LANGUAGE_VERSION, PROMPTBOOK_ENGINE_VERSION } from '../version';
|
|
|
2
2
|
import type { Identification } from '../remote-server/socket-types/_subtypes/Identification';
|
|
3
3
|
import type { ApplicationModeIdentification } from '../remote-server/socket-types/_subtypes/Identification';
|
|
4
4
|
import type { AnonymousModeIdentification } from '../remote-server/socket-types/_subtypes/Identification';
|
|
5
|
+
import { startAgentServer } from '../remote-server/startAgentServer';
|
|
5
6
|
import { startRemoteServer } from '../remote-server/startRemoteServer';
|
|
6
7
|
import type { RemoteServerOptions } from '../remote-server/types/RemoteServerOptions';
|
|
7
8
|
export { BOOK_LANGUAGE_VERSION, PROMPTBOOK_ENGINE_VERSION };
|
|
8
9
|
export type { Identification };
|
|
9
10
|
export type { ApplicationModeIdentification };
|
|
10
11
|
export type { AnonymousModeIdentification };
|
|
12
|
+
export { startAgentServer };
|
|
11
13
|
export { startRemoteServer };
|
|
12
14
|
export type { RemoteServerOptions };
|
|
@@ -2,14 +2,12 @@ import type { BookParameter } from '../book-2.0/agent-source/AgentBasicInformati
|
|
|
2
2
|
import type { AgentBasicInformation } from '../book-2.0/agent-source/AgentBasicInformation';
|
|
3
3
|
import type { AgentModelRequirements } from '../book-2.0/agent-source/AgentModelRequirements';
|
|
4
4
|
import type { string_book } from '../book-2.0/agent-source/string_book';
|
|
5
|
-
import type { BookCommitment } from '../book-2.0/commitments/_base/BookCommitment';
|
|
6
|
-
import type { CommitmentDefinition } from '../book-2.0/commitments/_base/CommitmentDefinition';
|
|
7
|
-
import type { ParsedCommitment } from '../book-2.0/commitments/_base/ParsedCommitment';
|
|
8
5
|
import type { AvatarChipProps } from '../book-components/AvatarProfile/AvatarChip/AvatarChip';
|
|
9
6
|
import type { AvatarChipFromSourceProps } from '../book-components/AvatarProfile/AvatarChip/AvatarChipFromSource';
|
|
10
7
|
import type { AvatarProfileProps } from '../book-components/AvatarProfile/AvatarProfile/AvatarProfile';
|
|
11
8
|
import type { AvatarProfileFromSourceProps } from '../book-components/AvatarProfile/AvatarProfile/AvatarProfileFromSource';
|
|
12
9
|
import type { BookEditorProps } from '../book-components/BookEditor/BookEditor';
|
|
10
|
+
import type { AgentChatProps } from '../book-components/Chat/AgentChat/AgentChatProps';
|
|
13
11
|
import type { ChatProps } from '../book-components/Chat/Chat/ChatProps';
|
|
14
12
|
import type { ChatAutoScrollConfig } from '../book-components/Chat/hooks/useChatAutoScroll';
|
|
15
13
|
import type { SendMessageToLlmChatFunction } from '../book-components/Chat/hooks/useSendMessageToLlmChat';
|
|
@@ -21,7 +19,17 @@ import type { string_chat_format_name } from '../book-components/Chat/save/_comm
|
|
|
21
19
|
import type { ChatMessage } from '../book-components/Chat/types/ChatMessage';
|
|
22
20
|
import type { ChatParticipant } from '../book-components/Chat/types/ChatParticipant';
|
|
23
21
|
import type { MessageButton } from '../book-components/Chat/utils/parseMessageButtons';
|
|
24
|
-
import type {
|
|
22
|
+
import type { QrCodeOptions } from '../book-components/Qr/useQrCode';
|
|
23
|
+
import type { AgentCollection } from '../collection/agent-collection/AgentCollection';
|
|
24
|
+
import type { AgentCollectionInSupabaseOptions } from '../collection/agent-collection/constructors/agent-collection-in-supabase/AgentCollectionInSupabaseOptions';
|
|
25
|
+
import type { Json } from '../collection/agent-collection/constructors/agent-collection-in-supabase/AgentsDatabaseSchema';
|
|
26
|
+
import type { AgentsDatabaseSchema } from '../collection/agent-collection/constructors/agent-collection-in-supabase/AgentsDatabaseSchema';
|
|
27
|
+
import type { Tables } from '../collection/agent-collection/constructors/agent-collection-in-supabase/AgentsDatabaseSchema';
|
|
28
|
+
import type { TablesInsert } from '../collection/agent-collection/constructors/agent-collection-in-supabase/AgentsDatabaseSchema';
|
|
29
|
+
import type { TablesUpdate } from '../collection/agent-collection/constructors/agent-collection-in-supabase/AgentsDatabaseSchema';
|
|
30
|
+
import type { Enums } from '../collection/agent-collection/constructors/agent-collection-in-supabase/AgentsDatabaseSchema';
|
|
31
|
+
import type { CompositeTypes } from '../collection/agent-collection/constructors/agent-collection-in-supabase/AgentsDatabaseSchema';
|
|
32
|
+
import type { PipelineCollection } from '../collection/pipeline-collection/PipelineCollection';
|
|
25
33
|
import type { Command } from '../commands/_common/types/Command';
|
|
26
34
|
import type { CommandParser } from '../commands/_common/types/CommandParser';
|
|
27
35
|
import type { PipelineBothCommandParser } from '../commands/_common/types/CommandParser';
|
|
@@ -46,6 +54,10 @@ import type { SectionCommand } from '../commands/SECTION/SectionCommand';
|
|
|
46
54
|
import type { UrlCommand } from '../commands/URL/UrlCommand';
|
|
47
55
|
import type { ActionCommand } from '../commands/X_ACTION/ActionCommand';
|
|
48
56
|
import type { InstrumentCommand } from '../commands/X_INSTRUMENT/InstrumentCommand';
|
|
57
|
+
import type { BookCommitment } from '../commitments/_base/BookCommitment';
|
|
58
|
+
import type { CommitmentDefinition } from '../commitments/_base/CommitmentDefinition';
|
|
59
|
+
import type { ParsedCommitment } from '../commitments/_base/ParsedCommitment';
|
|
60
|
+
import type { GroupedCommitmentDefinition } from '../commitments/index';
|
|
49
61
|
import type { PrettifyOptions } from '../conversion/prettify/PrettifyOptions';
|
|
50
62
|
import type { renderPipelineMermaidOptions } from '../conversion/prettify/renderPipelineMermaidOptions';
|
|
51
63
|
import type { CallbackInterfaceToolsOptions } from '../dialogs/callback/CallbackInterfaceToolsOptions';
|
|
@@ -76,6 +88,7 @@ import type { PromptbookFetch } from '../execution/PromptbookFetch';
|
|
|
76
88
|
import type { PromptResult } from '../execution/PromptResult';
|
|
77
89
|
import type { CompletionPromptResult } from '../execution/PromptResult';
|
|
78
90
|
import type { ChatPromptResult } from '../execution/PromptResult';
|
|
91
|
+
import type { ImagePromptResult } from '../execution/PromptResult';
|
|
79
92
|
import type { EmbeddingPromptResult } from '../execution/PromptResult';
|
|
80
93
|
import type { ScriptExecutionTools } from '../execution/ScriptExecutionTools';
|
|
81
94
|
import type { ScriptExecutionToolsExecuteOptions } from '../execution/ScriptExecutionTools';
|
|
@@ -98,7 +111,9 @@ import type { LlmToolsOptions } from '../llm-providers/_common/register/LlmTools
|
|
|
98
111
|
import type { CacheItem } from '../llm-providers/_common/utils/cache/CacheItem';
|
|
99
112
|
import type { CacheLlmToolsOptions } from '../llm-providers/_common/utils/cache/CacheLlmToolsOptions';
|
|
100
113
|
import type { LlmExecutionToolsWithTotalUsage } from '../llm-providers/_common/utils/count-total-usage/LlmExecutionToolsWithTotalUsage';
|
|
101
|
-
import type {
|
|
114
|
+
import type { AgentOptions } from '../llm-providers/agent/AgentOptions';
|
|
115
|
+
import type { CreateAgentLlmExecutionToolsOptions } from '../llm-providers/agent/CreateAgentLlmExecutionToolsOptions';
|
|
116
|
+
import type { RemoteAgentOptions } from '../llm-providers/agent/RemoteAgentOptions';
|
|
102
117
|
import type { AnthropicClaudeExecutionToolsOptions } from '../llm-providers/anthropic-claude/AnthropicClaudeExecutionToolsOptions';
|
|
103
118
|
import type { AnthropicClaudeExecutionToolsNonProxiedOptions } from '../llm-providers/anthropic-claude/AnthropicClaudeExecutionToolsOptions';
|
|
104
119
|
import type { AnthropicClaudeExecutionToolsProxiedOptions } from '../llm-providers/anthropic-claude/AnthropicClaudeExecutionToolsOptions';
|
|
@@ -166,10 +181,14 @@ import type { PostprocessingFunction } from '../scripting/javascript/JavascriptE
|
|
|
166
181
|
import type { PromptbookStorage } from '../storage/_common/PromptbookStorage';
|
|
167
182
|
import type { FileCacheStorageOptions } from '../storage/file-cache-storage/FileCacheStorageOptions';
|
|
168
183
|
import type { IndexedDbStorageOptions } from '../storage/local-storage/utils/IndexedDbStorageOptions';
|
|
184
|
+
import type { BookTranspiler } from '../transpilers/_common/BookTranspiler';
|
|
185
|
+
import type { BookTranspilerOptions } from '../transpilers/_common/BookTranspilerOptions';
|
|
169
186
|
import type { IntermediateFilesStrategy } from '../types/IntermediateFilesStrategy';
|
|
187
|
+
import type { LlmCall } from '../types/LlmCall';
|
|
170
188
|
import type { ModelRequirements } from '../types/ModelRequirements';
|
|
171
189
|
import type { CompletionModelRequirements } from '../types/ModelRequirements';
|
|
172
190
|
import type { ChatModelRequirements } from '../types/ModelRequirements';
|
|
191
|
+
import type { ImageGenerationModelRequirements } from '../types/ModelRequirements';
|
|
173
192
|
import type { EmbeddingModelRequirements } from '../types/ModelRequirements';
|
|
174
193
|
import type { ModelVariant } from '../types/ModelVariant';
|
|
175
194
|
import type { NonEmptyArray } from '../types/NonEmptyArray';
|
|
@@ -177,6 +196,7 @@ import type { NonEmptyReadonlyArray } from '../types/NonEmptyArray';
|
|
|
177
196
|
import type { Prompt } from '../types/Prompt';
|
|
178
197
|
import type { CompletionPrompt } from '../types/Prompt';
|
|
179
198
|
import type { ChatPrompt } from '../types/Prompt';
|
|
199
|
+
import type { ImagePrompt } from '../types/Prompt';
|
|
180
200
|
import type { EmbeddingPrompt } from '../types/Prompt';
|
|
181
201
|
import type { ScriptLanguage } from '../types/ScriptLanguage';
|
|
182
202
|
import type { SectionType } from '../types/SectionType';
|
|
@@ -203,6 +223,8 @@ import type { string_reserved_parameter_name } from '../types/typeAliases';
|
|
|
203
223
|
import type { ReservedParameters } from '../types/typeAliases';
|
|
204
224
|
import type { string_title } from '../types/typeAliases';
|
|
205
225
|
import type { string_agent_name } from '../types/typeAliases';
|
|
226
|
+
import type { string_agent_name_in_book } from '../types/typeAliases';
|
|
227
|
+
import type { string_agent_hash } from '../types/typeAliases';
|
|
206
228
|
import type { string_persona_description } from '../types/typeAliases';
|
|
207
229
|
import type { string_model_description } from '../types/typeAliases';
|
|
208
230
|
import type { string_knowledge_source_content } from '../types/typeAliases';
|
|
@@ -226,12 +248,14 @@ import type { string_typescript } from '../types/typeAliases';
|
|
|
226
248
|
import type { string_json } from '../types/typeAliases';
|
|
227
249
|
import type { string_css_class } from '../types/typeAliases';
|
|
228
250
|
import type { string_css_property } from '../types/typeAliases';
|
|
251
|
+
import type { string_fonts } from '../types/typeAliases';
|
|
229
252
|
import type { string_css_value } from '../types/typeAliases';
|
|
230
253
|
import type { string_css_selector } from '../types/typeAliases';
|
|
231
254
|
import type { string_url } from '../types/typeAliases';
|
|
232
255
|
import type { string_promptbook_server_url } from '../types/typeAliases';
|
|
233
256
|
import type { string_base_url } from '../types/typeAliases';
|
|
234
257
|
import type { string_pipeline_root_url } from '../types/typeAliases';
|
|
258
|
+
import type { string_agent_url } from '../types/typeAliases';
|
|
235
259
|
import type { string_pipeline_url } from '../types/typeAliases';
|
|
236
260
|
import type { string_pipeline_url_with_task_hash } from '../types/typeAliases';
|
|
237
261
|
import type { string_data_url } from '../types/typeAliases';
|
|
@@ -261,6 +285,8 @@ import type { string_absolute_dirname } from '../types/typeAliases';
|
|
|
261
285
|
import type { string_relative_dirname } from '../types/typeAliases';
|
|
262
286
|
import type { string_dirname } from '../types/typeAliases';
|
|
263
287
|
import type { string_person_fullname } from '../types/typeAliases';
|
|
288
|
+
import type { string_person_firstname } from '../types/typeAliases';
|
|
289
|
+
import type { string_person_lastname } from '../types/typeAliases';
|
|
264
290
|
import type { string_person_profile } from '../types/typeAliases';
|
|
265
291
|
import type { string_license } from '../types/typeAliases';
|
|
266
292
|
import type { string_legal_entity } from '../types/typeAliases';
|
|
@@ -306,6 +332,7 @@ import type { number_kilobytes } from '../types/typeAliases';
|
|
|
306
332
|
import type { number_megabytes } from '../types/typeAliases';
|
|
307
333
|
import type { number_gigabytes } from '../types/typeAliases';
|
|
308
334
|
import type { number_terabytes } from '../types/typeAliases';
|
|
335
|
+
import type { Updatable } from '../types/Updatable';
|
|
309
336
|
import type { ColorTransformer } from '../utils/color/operators/ColorTransformer';
|
|
310
337
|
import type { PipelineEditableSerialized } from '../utils/editable/types/PipelineEditableSerialized';
|
|
311
338
|
import type { ExecCommandOptions } from '../utils/execCommand/ExecCommandOptions';
|
|
@@ -314,6 +341,7 @@ import type { CodeBlock } from '../utils/markdown/extractAllBlocksFromMarkdown';
|
|
|
314
341
|
import type { MarkdownSection } from '../utils/markdown/parseMarkdownSection';
|
|
315
342
|
import type { Registered } from '../utils/misc/$Register';
|
|
316
343
|
import type { Registration } from '../utils/misc/$Register';
|
|
344
|
+
import type { AboutPromptbookInformationOptions } from '../utils/misc/aboutPromptbookInformation';
|
|
317
345
|
import type { FromtoItems } from '../utils/misc/FromtoItems';
|
|
318
346
|
import type { InjectCssModuleIntoShadowRootOptions } from '../utils/misc/injectCssModuleIntoShadowRoot';
|
|
319
347
|
import type { string_keyword } from '../utils/normalization/IKeywords';
|
|
@@ -327,6 +355,9 @@ import type { OrderJsonOptions } from '../utils/normalization/orderJson';
|
|
|
327
355
|
import type { empty_object } from '../utils/organization/empty_object';
|
|
328
356
|
import type { really_any } from '../utils/organization/really_any';
|
|
329
357
|
import type { TODO_any } from '../utils/organization/TODO_any';
|
|
358
|
+
import type { RandomFullnameWithColorResult } from '../utils/random/$randomFullnameWithColor';
|
|
359
|
+
import type { GenerateNameResult } from '../utils/random/NamePool';
|
|
360
|
+
import type { NamePool } from '../utils/random/NamePool';
|
|
330
361
|
import type { CheckSerializableAsJsonOptions } from '../utils/serialization/checkSerializableAsJson';
|
|
331
362
|
import type { ExportJsonOptions } from '../utils/serialization/exportJson';
|
|
332
363
|
import type { ITakeChain } from '../utils/take/interfaces/ITakeChain';
|
|
@@ -335,14 +366,12 @@ export type { BookParameter };
|
|
|
335
366
|
export type { AgentBasicInformation };
|
|
336
367
|
export type { AgentModelRequirements };
|
|
337
368
|
export type { string_book };
|
|
338
|
-
export type { BookCommitment };
|
|
339
|
-
export type { CommitmentDefinition };
|
|
340
|
-
export type { ParsedCommitment };
|
|
341
369
|
export type { AvatarChipProps };
|
|
342
370
|
export type { AvatarChipFromSourceProps };
|
|
343
371
|
export type { AvatarProfileProps };
|
|
344
372
|
export type { AvatarProfileFromSourceProps };
|
|
345
373
|
export type { BookEditorProps };
|
|
374
|
+
export type { AgentChatProps };
|
|
346
375
|
export type { ChatProps };
|
|
347
376
|
export type { ChatAutoScrollConfig };
|
|
348
377
|
export type { SendMessageToLlmChatFunction };
|
|
@@ -354,6 +383,16 @@ export type { string_chat_format_name };
|
|
|
354
383
|
export type { ChatMessage };
|
|
355
384
|
export type { ChatParticipant };
|
|
356
385
|
export type { MessageButton };
|
|
386
|
+
export type { QrCodeOptions };
|
|
387
|
+
export type { AgentCollection };
|
|
388
|
+
export type { AgentCollectionInSupabaseOptions };
|
|
389
|
+
export type { Json };
|
|
390
|
+
export type { AgentsDatabaseSchema };
|
|
391
|
+
export type { Tables };
|
|
392
|
+
export type { TablesInsert };
|
|
393
|
+
export type { TablesUpdate };
|
|
394
|
+
export type { Enums };
|
|
395
|
+
export type { CompositeTypes };
|
|
357
396
|
export type { PipelineCollection };
|
|
358
397
|
export type { Command };
|
|
359
398
|
export type { CommandParser };
|
|
@@ -379,6 +418,10 @@ export type { SectionCommand };
|
|
|
379
418
|
export type { UrlCommand };
|
|
380
419
|
export type { ActionCommand };
|
|
381
420
|
export type { InstrumentCommand };
|
|
421
|
+
export type { BookCommitment };
|
|
422
|
+
export type { CommitmentDefinition };
|
|
423
|
+
export type { ParsedCommitment };
|
|
424
|
+
export type { GroupedCommitmentDefinition };
|
|
382
425
|
export type { PrettifyOptions };
|
|
383
426
|
export type { renderPipelineMermaidOptions };
|
|
384
427
|
export type { CallbackInterfaceToolsOptions };
|
|
@@ -409,6 +452,7 @@ export type { PromptbookFetch };
|
|
|
409
452
|
export type { PromptResult };
|
|
410
453
|
export type { CompletionPromptResult };
|
|
411
454
|
export type { ChatPromptResult };
|
|
455
|
+
export type { ImagePromptResult };
|
|
412
456
|
export type { EmbeddingPromptResult };
|
|
413
457
|
export type { ScriptExecutionTools };
|
|
414
458
|
export type { ScriptExecutionToolsExecuteOptions };
|
|
@@ -431,7 +475,9 @@ export type { LlmToolsOptions };
|
|
|
431
475
|
export type { CacheItem };
|
|
432
476
|
export type { CacheLlmToolsOptions };
|
|
433
477
|
export type { LlmExecutionToolsWithTotalUsage };
|
|
478
|
+
export type { AgentOptions };
|
|
434
479
|
export type { CreateAgentLlmExecutionToolsOptions };
|
|
480
|
+
export type { RemoteAgentOptions };
|
|
435
481
|
export type { AnthropicClaudeExecutionToolsOptions };
|
|
436
482
|
export type { AnthropicClaudeExecutionToolsNonProxiedOptions };
|
|
437
483
|
export type { AnthropicClaudeExecutionToolsProxiedOptions };
|
|
@@ -499,10 +545,14 @@ export type { PostprocessingFunction };
|
|
|
499
545
|
export type { PromptbookStorage };
|
|
500
546
|
export type { FileCacheStorageOptions };
|
|
501
547
|
export type { IndexedDbStorageOptions };
|
|
548
|
+
export type { BookTranspiler };
|
|
549
|
+
export type { BookTranspilerOptions };
|
|
502
550
|
export type { IntermediateFilesStrategy };
|
|
551
|
+
export type { LlmCall };
|
|
503
552
|
export type { ModelRequirements };
|
|
504
553
|
export type { CompletionModelRequirements };
|
|
505
554
|
export type { ChatModelRequirements };
|
|
555
|
+
export type { ImageGenerationModelRequirements };
|
|
506
556
|
export type { EmbeddingModelRequirements };
|
|
507
557
|
export type { ModelVariant };
|
|
508
558
|
export type { NonEmptyArray };
|
|
@@ -510,6 +560,7 @@ export type { NonEmptyReadonlyArray };
|
|
|
510
560
|
export type { Prompt };
|
|
511
561
|
export type { CompletionPrompt };
|
|
512
562
|
export type { ChatPrompt };
|
|
563
|
+
export type { ImagePrompt };
|
|
513
564
|
export type { EmbeddingPrompt };
|
|
514
565
|
export type { ScriptLanguage };
|
|
515
566
|
export type { SectionType };
|
|
@@ -536,6 +587,8 @@ export type { string_reserved_parameter_name };
|
|
|
536
587
|
export type { ReservedParameters };
|
|
537
588
|
export type { string_title };
|
|
538
589
|
export type { string_agent_name };
|
|
590
|
+
export type { string_agent_name_in_book };
|
|
591
|
+
export type { string_agent_hash };
|
|
539
592
|
export type { string_persona_description };
|
|
540
593
|
export type { string_model_description };
|
|
541
594
|
export type { string_knowledge_source_content };
|
|
@@ -559,12 +612,14 @@ export type { string_typescript };
|
|
|
559
612
|
export type { string_json };
|
|
560
613
|
export type { string_css_class };
|
|
561
614
|
export type { string_css_property };
|
|
615
|
+
export type { string_fonts };
|
|
562
616
|
export type { string_css_value };
|
|
563
617
|
export type { string_css_selector };
|
|
564
618
|
export type { string_url };
|
|
565
619
|
export type { string_promptbook_server_url };
|
|
566
620
|
export type { string_base_url };
|
|
567
621
|
export type { string_pipeline_root_url };
|
|
622
|
+
export type { string_agent_url };
|
|
568
623
|
export type { string_pipeline_url };
|
|
569
624
|
export type { string_pipeline_url_with_task_hash };
|
|
570
625
|
export type { string_data_url };
|
|
@@ -594,6 +649,8 @@ export type { string_absolute_dirname };
|
|
|
594
649
|
export type { string_relative_dirname };
|
|
595
650
|
export type { string_dirname };
|
|
596
651
|
export type { string_person_fullname };
|
|
652
|
+
export type { string_person_firstname };
|
|
653
|
+
export type { string_person_lastname };
|
|
597
654
|
export type { string_person_profile };
|
|
598
655
|
export type { string_license };
|
|
599
656
|
export type { string_legal_entity };
|
|
@@ -639,6 +696,7 @@ export type { number_kilobytes };
|
|
|
639
696
|
export type { number_megabytes };
|
|
640
697
|
export type { number_gigabytes };
|
|
641
698
|
export type { number_terabytes };
|
|
699
|
+
export type { Updatable };
|
|
642
700
|
export type { ColorTransformer };
|
|
643
701
|
export type { PipelineEditableSerialized };
|
|
644
702
|
export type { ExecCommandOptions };
|
|
@@ -647,6 +705,7 @@ export type { CodeBlock };
|
|
|
647
705
|
export type { MarkdownSection };
|
|
648
706
|
export type { Registered };
|
|
649
707
|
export type { Registration };
|
|
708
|
+
export type { AboutPromptbookInformationOptions };
|
|
650
709
|
export type { FromtoItems };
|
|
651
710
|
export type { InjectCssModuleIntoShadowRootOptions };
|
|
652
711
|
export type { string_keyword };
|
|
@@ -660,6 +719,9 @@ export type { OrderJsonOptions };
|
|
|
660
719
|
export type { empty_object };
|
|
661
720
|
export type { really_any };
|
|
662
721
|
export type { TODO_any };
|
|
722
|
+
export type { RandomFullnameWithColorResult };
|
|
723
|
+
export type { GenerateNameResult };
|
|
724
|
+
export type { NamePool };
|
|
663
725
|
export type { CheckSerializableAsJsonOptions };
|
|
664
726
|
export type { ExportJsonOptions };
|
|
665
727
|
export type { ITakeChain };
|
|
@@ -11,6 +11,7 @@ import { jsonParse } from '../formats/json/utils/jsonParse';
|
|
|
11
11
|
import { isValidXmlString } from '../formats/xml/utils/isValidXmlString';
|
|
12
12
|
import { prompt } from '../pipeline/prompt-notation';
|
|
13
13
|
import { promptTemplate } from '../pipeline/prompt-notation';
|
|
14
|
+
import { $detectRuntimeEnvironment } from '../utils/environment/$detectRuntimeEnvironment';
|
|
14
15
|
import { $isRunningInBrowser } from '../utils/environment/$isRunningInBrowser';
|
|
15
16
|
import { $isRunningInJest } from '../utils/environment/$isRunningInJest';
|
|
16
17
|
import { $isRunningInNode } from '../utils/environment/$isRunningInNode';
|
|
@@ -26,6 +27,7 @@ import { countSentences } from '../utils/expectation-counters/countSentences';
|
|
|
26
27
|
import { countWords } from '../utils/expectation-counters/countWords';
|
|
27
28
|
import { CountUtils } from '../utils/expectation-counters/index';
|
|
28
29
|
import { $getCurrentDate } from '../utils/misc/$getCurrentDate';
|
|
30
|
+
import { computeHash } from '../utils/misc/computeHash';
|
|
29
31
|
import { debounce } from '../utils/misc/debounce';
|
|
30
32
|
import { parseNumber } from '../utils/misc/parseNumber';
|
|
31
33
|
import { capitalize } from '../utils/normalization/capitalize';
|
|
@@ -38,6 +40,7 @@ import { nameToUriPart } from '../utils/normalization/nameToUriPart';
|
|
|
38
40
|
import { nameToUriParts } from '../utils/normalization/nameToUriParts';
|
|
39
41
|
import type { string_kebab_case } from '../utils/normalization/normalize-to-kebab-case';
|
|
40
42
|
import { normalizeToKebabCase } from '../utils/normalization/normalize-to-kebab-case';
|
|
43
|
+
import { normalizeMessageText } from '../utils/normalization/normalizeMessageText';
|
|
41
44
|
import type { string_camelCase } from '../utils/normalization/normalizeTo_camelCase';
|
|
42
45
|
import { normalizeTo_camelCase } from '../utils/normalization/normalizeTo_camelCase';
|
|
43
46
|
import type { string_PascalCase } from '../utils/normalization/normalizeTo_PascalCase';
|
|
@@ -96,6 +99,7 @@ export { jsonParse };
|
|
|
96
99
|
export { isValidXmlString };
|
|
97
100
|
export { prompt };
|
|
98
101
|
export { promptTemplate };
|
|
102
|
+
export { $detectRuntimeEnvironment };
|
|
99
103
|
export { $isRunningInBrowser };
|
|
100
104
|
export { $isRunningInJest };
|
|
101
105
|
export { $isRunningInNode };
|
|
@@ -111,6 +115,7 @@ export { countSentences };
|
|
|
111
115
|
export { countWords };
|
|
112
116
|
export { CountUtils };
|
|
113
117
|
export { $getCurrentDate };
|
|
118
|
+
export { computeHash };
|
|
114
119
|
export { debounce };
|
|
115
120
|
export { parseNumber };
|
|
116
121
|
export { capitalize };
|
|
@@ -123,6 +128,7 @@ export { nameToUriPart };
|
|
|
123
128
|
export { nameToUriParts };
|
|
124
129
|
export type { string_kebab_case };
|
|
125
130
|
export { normalizeToKebabCase };
|
|
131
|
+
export { normalizeMessageText };
|
|
126
132
|
export type { string_camelCase };
|
|
127
133
|
export { normalizeTo_camelCase };
|
|
128
134
|
export type { string_PascalCase };
|
|
@@ -29,6 +29,8 @@ import { _PdfScraperRegistration } from '../scrapers/pdf/register-constructor';
|
|
|
29
29
|
import { _PdfScraperMetadataRegistration } from '../scrapers/pdf/register-metadata';
|
|
30
30
|
import { _WebsiteScraperRegistration } from '../scrapers/website/register-constructor';
|
|
31
31
|
import { _WebsiteScraperMetadataRegistration } from '../scrapers/website/register-metadata';
|
|
32
|
+
import { _FormattedBookInMarkdownTranspilerRegistration } from '../transpilers/formatted-book-in-markdown/register';
|
|
33
|
+
import { _OpenAiSdkTranspilerRegistration } from '../transpilers/openai-sdk/register';
|
|
32
34
|
import { wizard } from '../wizard/wizard';
|
|
33
35
|
export { BOOK_LANGUAGE_VERSION, PROMPTBOOK_ENGINE_VERSION };
|
|
34
36
|
export { _AnthropicClaudeMetadataRegistration };
|
|
@@ -61,4 +63,6 @@ export { _PdfScraperRegistration };
|
|
|
61
63
|
export { _PdfScraperMetadataRegistration };
|
|
62
64
|
export { _WebsiteScraperRegistration };
|
|
63
65
|
export { _WebsiteScraperMetadataRegistration };
|
|
66
|
+
export { _FormattedBookInMarkdownTranspilerRegistration };
|
|
67
|
+
export { _OpenAiSdkTranspilerRegistration };
|
|
64
68
|
export { wizard };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { string_agent_name, string_url_image } from '../../types/typeAliases';
|
|
1
|
+
import type { string_agent_hash, string_agent_name, string_agent_url, string_color, string_fonts, string_url_image } from '../../types/typeAliases';
|
|
2
2
|
/**
|
|
3
3
|
* Unified parameter representation that supports two different notations:
|
|
4
4
|
* 1. @Parameter - single word parameter starting with @
|
|
@@ -28,24 +28,38 @@ export type AgentBasicInformation = {
|
|
|
28
28
|
* Name of the agent
|
|
29
29
|
* This is the first line of the agent source
|
|
30
30
|
*/
|
|
31
|
-
agentName: string_agent_name
|
|
31
|
+
agentName: string_agent_name;
|
|
32
|
+
/**
|
|
33
|
+
* Hash of the agent source for integrity verification
|
|
34
|
+
*/
|
|
35
|
+
agentHash: string_agent_hash;
|
|
32
36
|
/**
|
|
33
37
|
* Optional description of the agent
|
|
34
38
|
* This is the line starting with "PERSONA"
|
|
35
39
|
*/
|
|
36
40
|
personaDescription: string | null;
|
|
41
|
+
/**
|
|
42
|
+
* The initial message shown to the user when the chat starts
|
|
43
|
+
* This is the line starting with "INITIAL MESSAGE"
|
|
44
|
+
*/
|
|
45
|
+
initialMessage: string | null;
|
|
37
46
|
/**
|
|
38
47
|
* Metadata commitments parsed from META lines
|
|
39
48
|
* Each META commitment has the format "META TYPE content"
|
|
40
49
|
* When there are multiple meta commitments of the same type, later overrides earlier
|
|
41
50
|
*/
|
|
42
51
|
meta: {
|
|
52
|
+
fullname?: string;
|
|
43
53
|
image?: string_url_image;
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
description?: string;
|
|
54
|
+
font?: string_fonts;
|
|
55
|
+
color?: string_color;
|
|
47
56
|
[key: string]: string | undefined;
|
|
48
57
|
};
|
|
58
|
+
/**
|
|
59
|
+
* Links found in the agent source
|
|
60
|
+
* This corresponds to META LINK commitments
|
|
61
|
+
*/
|
|
62
|
+
links: Array<string_agent_url>;
|
|
49
63
|
/**
|
|
50
64
|
* Parameters found in the agent source
|
|
51
65
|
* Supports two different notations for the same syntax feature:
|
|
@@ -55,5 +69,6 @@ export type AgentBasicInformation = {
|
|
|
55
69
|
parameters: BookParameter[];
|
|
56
70
|
};
|
|
57
71
|
/**
|
|
72
|
+
* TODO: [🐱🚀] Make all properties of `AgentBasicInformation` readonly
|
|
58
73
|
* TODO: [🕛] Unite `AgentBasicInformation`, `ChatParticipant`, `LlmExecutionTools` + `LlmToolsMetadata`
|
|
59
74
|
*/
|