@promptbook/deepseek 0.103.0-10 → 0.103.0-100
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 -35
- package/esm/index.es.js +105 -115
- 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 +20 -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 +58 -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 +19 -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 +77 -7
- package/esm/typings/src/book-components/BookEditor/BookEditorActionbar.d.ts +14 -0
- package/esm/typings/src/book-components/Chat/AgentChat/AgentChat.d.ts +14 -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 +10 -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/PromptbookAgent.d.ts +29 -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/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/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 +35 -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 +38 -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 +8 -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 +21 -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 +70 -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/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/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/Updatable.d.ts +19 -0
- package/esm/typings/src/types/typeAliases.d.ts +32 -2
- package/esm/typings/src/utils/color/$randomColor.d.ts +1 -0
- package/esm/typings/src/utils/color/Color.d.ts +15 -0
- 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/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 +25 -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/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 +104 -114
- 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/config.d.ts +0 -11
- 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';
|
|
@@ -98,7 +110,9 @@ import type { LlmToolsOptions } from '../llm-providers/_common/register/LlmTools
|
|
|
98
110
|
import type { CacheItem } from '../llm-providers/_common/utils/cache/CacheItem';
|
|
99
111
|
import type { CacheLlmToolsOptions } from '../llm-providers/_common/utils/cache/CacheLlmToolsOptions';
|
|
100
112
|
import type { LlmExecutionToolsWithTotalUsage } from '../llm-providers/_common/utils/count-total-usage/LlmExecutionToolsWithTotalUsage';
|
|
101
|
-
import type {
|
|
113
|
+
import type { AgentOptions } from '../llm-providers/agent/AgentOptions';
|
|
114
|
+
import type { CreateAgentLlmExecutionToolsOptions } from '../llm-providers/agent/CreateAgentLlmExecutionToolsOptions';
|
|
115
|
+
import type { RemoteAgentOptions } from '../llm-providers/agent/RemoteAgentOptions';
|
|
102
116
|
import type { AnthropicClaudeExecutionToolsOptions } from '../llm-providers/anthropic-claude/AnthropicClaudeExecutionToolsOptions';
|
|
103
117
|
import type { AnthropicClaudeExecutionToolsNonProxiedOptions } from '../llm-providers/anthropic-claude/AnthropicClaudeExecutionToolsOptions';
|
|
104
118
|
import type { AnthropicClaudeExecutionToolsProxiedOptions } from '../llm-providers/anthropic-claude/AnthropicClaudeExecutionToolsOptions';
|
|
@@ -166,7 +180,10 @@ import type { PostprocessingFunction } from '../scripting/javascript/JavascriptE
|
|
|
166
180
|
import type { PromptbookStorage } from '../storage/_common/PromptbookStorage';
|
|
167
181
|
import type { FileCacheStorageOptions } from '../storage/file-cache-storage/FileCacheStorageOptions';
|
|
168
182
|
import type { IndexedDbStorageOptions } from '../storage/local-storage/utils/IndexedDbStorageOptions';
|
|
183
|
+
import type { BookTranspiler } from '../transpilers/_common/BookTranspiler';
|
|
184
|
+
import type { BookTranspilerOptions } from '../transpilers/_common/BookTranspilerOptions';
|
|
169
185
|
import type { IntermediateFilesStrategy } from '../types/IntermediateFilesStrategy';
|
|
186
|
+
import type { LlmCall } from '../types/LlmCall';
|
|
170
187
|
import type { ModelRequirements } from '../types/ModelRequirements';
|
|
171
188
|
import type { CompletionModelRequirements } from '../types/ModelRequirements';
|
|
172
189
|
import type { ChatModelRequirements } from '../types/ModelRequirements';
|
|
@@ -203,6 +220,8 @@ import type { string_reserved_parameter_name } from '../types/typeAliases';
|
|
|
203
220
|
import type { ReservedParameters } from '../types/typeAliases';
|
|
204
221
|
import type { string_title } from '../types/typeAliases';
|
|
205
222
|
import type { string_agent_name } from '../types/typeAliases';
|
|
223
|
+
import type { string_agent_name_in_book } from '../types/typeAliases';
|
|
224
|
+
import type { string_agent_hash } from '../types/typeAliases';
|
|
206
225
|
import type { string_persona_description } from '../types/typeAliases';
|
|
207
226
|
import type { string_model_description } from '../types/typeAliases';
|
|
208
227
|
import type { string_knowledge_source_content } from '../types/typeAliases';
|
|
@@ -232,6 +251,7 @@ import type { string_url } from '../types/typeAliases';
|
|
|
232
251
|
import type { string_promptbook_server_url } from '../types/typeAliases';
|
|
233
252
|
import type { string_base_url } from '../types/typeAliases';
|
|
234
253
|
import type { string_pipeline_root_url } from '../types/typeAliases';
|
|
254
|
+
import type { string_agent_url } from '../types/typeAliases';
|
|
235
255
|
import type { string_pipeline_url } from '../types/typeAliases';
|
|
236
256
|
import type { string_pipeline_url_with_task_hash } from '../types/typeAliases';
|
|
237
257
|
import type { string_data_url } from '../types/typeAliases';
|
|
@@ -261,6 +281,8 @@ import type { string_absolute_dirname } from '../types/typeAliases';
|
|
|
261
281
|
import type { string_relative_dirname } from '../types/typeAliases';
|
|
262
282
|
import type { string_dirname } from '../types/typeAliases';
|
|
263
283
|
import type { string_person_fullname } from '../types/typeAliases';
|
|
284
|
+
import type { string_person_firstname } from '../types/typeAliases';
|
|
285
|
+
import type { string_person_lastname } from '../types/typeAliases';
|
|
264
286
|
import type { string_person_profile } from '../types/typeAliases';
|
|
265
287
|
import type { string_license } from '../types/typeAliases';
|
|
266
288
|
import type { string_legal_entity } from '../types/typeAliases';
|
|
@@ -306,6 +328,7 @@ import type { number_kilobytes } from '../types/typeAliases';
|
|
|
306
328
|
import type { number_megabytes } from '../types/typeAliases';
|
|
307
329
|
import type { number_gigabytes } from '../types/typeAliases';
|
|
308
330
|
import type { number_terabytes } from '../types/typeAliases';
|
|
331
|
+
import type { Updatable } from '../types/Updatable';
|
|
309
332
|
import type { ColorTransformer } from '../utils/color/operators/ColorTransformer';
|
|
310
333
|
import type { PipelineEditableSerialized } from '../utils/editable/types/PipelineEditableSerialized';
|
|
311
334
|
import type { ExecCommandOptions } from '../utils/execCommand/ExecCommandOptions';
|
|
@@ -314,6 +337,7 @@ import type { CodeBlock } from '../utils/markdown/extractAllBlocksFromMarkdown';
|
|
|
314
337
|
import type { MarkdownSection } from '../utils/markdown/parseMarkdownSection';
|
|
315
338
|
import type { Registered } from '../utils/misc/$Register';
|
|
316
339
|
import type { Registration } from '../utils/misc/$Register';
|
|
340
|
+
import type { AboutPromptbookInformationOptions } from '../utils/misc/aboutPromptbookInformation';
|
|
317
341
|
import type { FromtoItems } from '../utils/misc/FromtoItems';
|
|
318
342
|
import type { InjectCssModuleIntoShadowRootOptions } from '../utils/misc/injectCssModuleIntoShadowRoot';
|
|
319
343
|
import type { string_keyword } from '../utils/normalization/IKeywords';
|
|
@@ -327,6 +351,7 @@ import type { OrderJsonOptions } from '../utils/normalization/orderJson';
|
|
|
327
351
|
import type { empty_object } from '../utils/organization/empty_object';
|
|
328
352
|
import type { really_any } from '../utils/organization/really_any';
|
|
329
353
|
import type { TODO_any } from '../utils/organization/TODO_any';
|
|
354
|
+
import type { RandomFullnameWithColorResult } from '../utils/random/$randomFullnameWithColor';
|
|
330
355
|
import type { CheckSerializableAsJsonOptions } from '../utils/serialization/checkSerializableAsJson';
|
|
331
356
|
import type { ExportJsonOptions } from '../utils/serialization/exportJson';
|
|
332
357
|
import type { ITakeChain } from '../utils/take/interfaces/ITakeChain';
|
|
@@ -335,14 +360,12 @@ export type { BookParameter };
|
|
|
335
360
|
export type { AgentBasicInformation };
|
|
336
361
|
export type { AgentModelRequirements };
|
|
337
362
|
export type { string_book };
|
|
338
|
-
export type { BookCommitment };
|
|
339
|
-
export type { CommitmentDefinition };
|
|
340
|
-
export type { ParsedCommitment };
|
|
341
363
|
export type { AvatarChipProps };
|
|
342
364
|
export type { AvatarChipFromSourceProps };
|
|
343
365
|
export type { AvatarProfileProps };
|
|
344
366
|
export type { AvatarProfileFromSourceProps };
|
|
345
367
|
export type { BookEditorProps };
|
|
368
|
+
export type { AgentChatProps };
|
|
346
369
|
export type { ChatProps };
|
|
347
370
|
export type { ChatAutoScrollConfig };
|
|
348
371
|
export type { SendMessageToLlmChatFunction };
|
|
@@ -354,6 +377,16 @@ export type { string_chat_format_name };
|
|
|
354
377
|
export type { ChatMessage };
|
|
355
378
|
export type { ChatParticipant };
|
|
356
379
|
export type { MessageButton };
|
|
380
|
+
export type { QrCodeOptions };
|
|
381
|
+
export type { AgentCollection };
|
|
382
|
+
export type { AgentCollectionInSupabaseOptions };
|
|
383
|
+
export type { Json };
|
|
384
|
+
export type { AgentsDatabaseSchema };
|
|
385
|
+
export type { Tables };
|
|
386
|
+
export type { TablesInsert };
|
|
387
|
+
export type { TablesUpdate };
|
|
388
|
+
export type { Enums };
|
|
389
|
+
export type { CompositeTypes };
|
|
357
390
|
export type { PipelineCollection };
|
|
358
391
|
export type { Command };
|
|
359
392
|
export type { CommandParser };
|
|
@@ -379,6 +412,10 @@ export type { SectionCommand };
|
|
|
379
412
|
export type { UrlCommand };
|
|
380
413
|
export type { ActionCommand };
|
|
381
414
|
export type { InstrumentCommand };
|
|
415
|
+
export type { BookCommitment };
|
|
416
|
+
export type { CommitmentDefinition };
|
|
417
|
+
export type { ParsedCommitment };
|
|
418
|
+
export type { GroupedCommitmentDefinition };
|
|
382
419
|
export type { PrettifyOptions };
|
|
383
420
|
export type { renderPipelineMermaidOptions };
|
|
384
421
|
export type { CallbackInterfaceToolsOptions };
|
|
@@ -431,7 +468,9 @@ export type { LlmToolsOptions };
|
|
|
431
468
|
export type { CacheItem };
|
|
432
469
|
export type { CacheLlmToolsOptions };
|
|
433
470
|
export type { LlmExecutionToolsWithTotalUsage };
|
|
471
|
+
export type { AgentOptions };
|
|
434
472
|
export type { CreateAgentLlmExecutionToolsOptions };
|
|
473
|
+
export type { RemoteAgentOptions };
|
|
435
474
|
export type { AnthropicClaudeExecutionToolsOptions };
|
|
436
475
|
export type { AnthropicClaudeExecutionToolsNonProxiedOptions };
|
|
437
476
|
export type { AnthropicClaudeExecutionToolsProxiedOptions };
|
|
@@ -499,7 +538,10 @@ export type { PostprocessingFunction };
|
|
|
499
538
|
export type { PromptbookStorage };
|
|
500
539
|
export type { FileCacheStorageOptions };
|
|
501
540
|
export type { IndexedDbStorageOptions };
|
|
541
|
+
export type { BookTranspiler };
|
|
542
|
+
export type { BookTranspilerOptions };
|
|
502
543
|
export type { IntermediateFilesStrategy };
|
|
544
|
+
export type { LlmCall };
|
|
503
545
|
export type { ModelRequirements };
|
|
504
546
|
export type { CompletionModelRequirements };
|
|
505
547
|
export type { ChatModelRequirements };
|
|
@@ -536,6 +578,8 @@ export type { string_reserved_parameter_name };
|
|
|
536
578
|
export type { ReservedParameters };
|
|
537
579
|
export type { string_title };
|
|
538
580
|
export type { string_agent_name };
|
|
581
|
+
export type { string_agent_name_in_book };
|
|
582
|
+
export type { string_agent_hash };
|
|
539
583
|
export type { string_persona_description };
|
|
540
584
|
export type { string_model_description };
|
|
541
585
|
export type { string_knowledge_source_content };
|
|
@@ -565,6 +609,7 @@ export type { string_url };
|
|
|
565
609
|
export type { string_promptbook_server_url };
|
|
566
610
|
export type { string_base_url };
|
|
567
611
|
export type { string_pipeline_root_url };
|
|
612
|
+
export type { string_agent_url };
|
|
568
613
|
export type { string_pipeline_url };
|
|
569
614
|
export type { string_pipeline_url_with_task_hash };
|
|
570
615
|
export type { string_data_url };
|
|
@@ -594,6 +639,8 @@ export type { string_absolute_dirname };
|
|
|
594
639
|
export type { string_relative_dirname };
|
|
595
640
|
export type { string_dirname };
|
|
596
641
|
export type { string_person_fullname };
|
|
642
|
+
export type { string_person_firstname };
|
|
643
|
+
export type { string_person_lastname };
|
|
597
644
|
export type { string_person_profile };
|
|
598
645
|
export type { string_license };
|
|
599
646
|
export type { string_legal_entity };
|
|
@@ -639,6 +686,7 @@ export type { number_kilobytes };
|
|
|
639
686
|
export type { number_megabytes };
|
|
640
687
|
export type { number_gigabytes };
|
|
641
688
|
export type { number_terabytes };
|
|
689
|
+
export type { Updatable };
|
|
642
690
|
export type { ColorTransformer };
|
|
643
691
|
export type { PipelineEditableSerialized };
|
|
644
692
|
export type { ExecCommandOptions };
|
|
@@ -647,6 +695,7 @@ export type { CodeBlock };
|
|
|
647
695
|
export type { MarkdownSection };
|
|
648
696
|
export type { Registered };
|
|
649
697
|
export type { Registration };
|
|
698
|
+
export type { AboutPromptbookInformationOptions };
|
|
650
699
|
export type { FromtoItems };
|
|
651
700
|
export type { InjectCssModuleIntoShadowRootOptions };
|
|
652
701
|
export type { string_keyword };
|
|
@@ -660,6 +709,7 @@ export type { OrderJsonOptions };
|
|
|
660
709
|
export type { empty_object };
|
|
661
710
|
export type { really_any };
|
|
662
711
|
export type { TODO_any };
|
|
712
|
+
export type { RandomFullnameWithColorResult };
|
|
663
713
|
export type { CheckSerializableAsJsonOptions };
|
|
664
714
|
export type { ExportJsonOptions };
|
|
665
715
|
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_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,37 @@ 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
|
-
title?: string;
|
|
46
|
-
description?: string;
|
|
54
|
+
color?: string_color;
|
|
47
55
|
[key: string]: string | undefined;
|
|
48
56
|
};
|
|
57
|
+
/**
|
|
58
|
+
* Links found in the agent source
|
|
59
|
+
* This corresponds to META LINK commitments
|
|
60
|
+
*/
|
|
61
|
+
links: Array<string_agent_url>;
|
|
49
62
|
/**
|
|
50
63
|
* Parameters found in the agent source
|
|
51
64
|
* Supports two different notations for the same syntax feature:
|
|
@@ -55,5 +68,6 @@ export type AgentBasicInformation = {
|
|
|
55
68
|
parameters: BookParameter[];
|
|
56
69
|
};
|
|
57
70
|
/**
|
|
71
|
+
* TODO: [🐱🚀] Make all properties of `AgentBasicInformation` readonly
|
|
58
72
|
* TODO: [🕛] Unite `AgentBasicInformation`, `ChatParticipant`, `LlmExecutionTools` + `LlmToolsMetadata`
|
|
59
73
|
*/
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { string_knowledge_source_link } from '../../types/typeAliases';
|
|
1
2
|
import type { TODO_any } from '../../utils/organization/TODO_any';
|
|
2
3
|
/**
|
|
3
4
|
* Model requirements for an agent
|
|
@@ -16,7 +17,22 @@ export type AgentModelRequirements = {
|
|
|
16
17
|
/**
|
|
17
18
|
* Optional list of MCP servers that the agent can connect to
|
|
18
19
|
*/
|
|
19
|
-
readonly mcpServers?: string
|
|
20
|
+
readonly mcpServers?: ReadonlyArray<string>;
|
|
21
|
+
/**
|
|
22
|
+
* Optional link to the parent agent from which this agent inherits
|
|
23
|
+
*/
|
|
24
|
+
readonly parentAgentUrl?: string_knowledge_source_link;
|
|
25
|
+
/**
|
|
26
|
+
* Optional list of knowledge source links that the agent can use
|
|
27
|
+
*/
|
|
28
|
+
readonly knowledgeSources?: ReadonlyArray<string_knowledge_source_link>;
|
|
29
|
+
/**
|
|
30
|
+
* List of sample conversations (question/answer pairs)
|
|
31
|
+
*/
|
|
32
|
+
readonly samples?: ReadonlyArray<{
|
|
33
|
+
question: string;
|
|
34
|
+
answer: string;
|
|
35
|
+
}>;
|
|
20
36
|
/**
|
|
21
37
|
* Temperature for the agent's responses, controlling randomness
|
|
22
38
|
*/
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import type { ParsedCommitment } from '
|
|
1
|
+
import type { ParsedCommitment } from '../../commitments/_base/ParsedCommitment';
|
|
2
|
+
import { string_agent_name } from '../../types/typeAliases';
|
|
2
3
|
/**
|
|
3
4
|
* Result of parsing agent source for commitments
|
|
4
5
|
*
|
|
@@ -8,7 +9,7 @@ export type AgentSourceParseResult = {
|
|
|
8
9
|
/**
|
|
9
10
|
* The agent name (first line)
|
|
10
11
|
*/
|
|
11
|
-
agentName:
|
|
12
|
+
agentName: string_agent_name | null;
|
|
12
13
|
/**
|
|
13
14
|
* All parsed commitments
|
|
14
15
|
*/
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { string_agent_hash } from '../../types/typeAliases';
|
|
2
|
+
import { string_book } from './string_book';
|
|
3
|
+
/**
|
|
4
|
+
* Computes SHA-256 hash of the agent source
|
|
5
|
+
*
|
|
6
|
+
* @public exported from `@promptbook/core`
|
|
7
|
+
*/
|
|
8
|
+
export declare function computeAgentHash(agentSource: string_book): string_agent_hash;
|