@promptbook/utils 0.41.0 β 0.41.2
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/bin/promptbook-cli.js +3 -0
- package/esm/index.es.js +794 -794
- package/esm/typings/_packages/core.index.d.ts +20 -20
- package/esm/typings/_packages/execute-javascript.index.d.ts +3 -3
- package/esm/typings/_packages/openai.index.d.ts +3 -3
- package/esm/typings/_packages/remote-client.index.d.ts +4 -4
- package/esm/typings/_packages/remote-server.index.d.ts +3 -3
- package/esm/typings/_packages/types.index.d.ts +27 -27
- package/esm/typings/_packages/utils.index.d.ts +30 -30
- package/esm/typings/_packages/wizzard.index.d.ts +5 -5
- package/esm/typings/config.d.ts +4 -4
- package/esm/typings/conversion/promptbookStringToJson.d.ts +13 -13
- package/esm/typings/conversion/test/_importPromptbook.d.ts +12 -12
- package/esm/typings/conversion/test/promptbookStringToJson-syntaxErrors.test.d.ts +1 -1
- package/esm/typings/conversion/test/promptbookStringToJson.test.d.ts +1 -1
- package/esm/typings/conversion/test/validatePromptbookJson-logicErrors.test.d.ts +1 -1
- package/esm/typings/conversion/test/validatePromptbookJson.d.ts +26 -26
- package/esm/typings/conversion/test/validatePromptbookJson.test.d.ts +1 -1
- package/esm/typings/conversion/utils/extractVariables.d.ts +10 -10
- package/esm/typings/conversion/utils/extractVariables.test.d.ts +1 -1
- package/esm/typings/conversion/utils/parseCommand.d.ts +8 -8
- package/esm/typings/conversion/utils/parseCommand.test.d.ts +4 -4
- package/esm/typings/conversion/utils/parseNumber.d.ts +12 -12
- package/esm/typings/conversion/utils/parseNumber.test.d.ts +1 -1
- package/esm/typings/errors/ExpectError.d.ts +9 -9
- package/esm/typings/errors/NotFoundError.d.ts +7 -7
- package/esm/typings/errors/PromptbookExecutionError.d.ts +7 -7
- package/esm/typings/errors/PromptbookLogicError.d.ts +7 -7
- package/esm/typings/errors/PromptbookReferenceError.d.ts +7 -7
- package/esm/typings/errors/PromptbookSyntaxError.d.ts +7 -7
- package/esm/typings/errors/UnexpectedError.d.ts +7 -7
- package/esm/typings/execution/CommonExecutionToolsOptions.d.ts +9 -9
- package/esm/typings/execution/ExecutionTools.d.ts +25 -25
- package/esm/typings/execution/NaturalExecutionTools.d.ts +23 -23
- package/esm/typings/execution/PromptResult.d.ts +74 -74
- package/esm/typings/execution/PromptbookExecutor.d.ts +39 -39
- package/esm/typings/execution/ScriptExecutionTools.d.ts +37 -37
- package/esm/typings/execution/UserInterfaceTools.d.ts +45 -45
- package/esm/typings/execution/assertsExecutionSuccessful.d.ts +11 -11
- package/esm/typings/execution/createPromptbookExecutor.d.ts +41 -41
- package/esm/typings/execution/plugins/natural-execution-tools/mocked/MockedEchoNaturalExecutionTools.d.ts +22 -22
- package/esm/typings/execution/plugins/natural-execution-tools/mocked/joker.test.d.ts +4 -4
- package/esm/typings/execution/plugins/natural-execution-tools/mocked/mocked-chat.test.d.ts +4 -4
- package/esm/typings/execution/plugins/natural-execution-tools/mocked/mocked-completion.test.d.ts +4 -4
- package/esm/typings/execution/plugins/natural-execution-tools/openai/OpenAiExecutionTools.d.ts +28 -28
- package/esm/typings/execution/plugins/natural-execution-tools/openai/OpenAiExecutionToolsOptions.d.ts +16 -16
- package/esm/typings/execution/plugins/natural-execution-tools/openai/computeOpenaiUsage.d.ts +3 -3
- package/esm/typings/execution/plugins/natural-execution-tools/remote/RemoteNaturalExecutionTools.d.ts +35 -35
- package/esm/typings/execution/plugins/natural-execution-tools/remote/RemoteNaturalExecutionToolsOptions.d.ts +23 -23
- package/esm/typings/execution/plugins/natural-execution-tools/remote/interfaces/Promptbook_Server_Error.d.ts +11 -11
- package/esm/typings/execution/plugins/natural-execution-tools/remote/interfaces/Promptbook_Server_Progress.d.ts +12 -12
- package/esm/typings/execution/plugins/natural-execution-tools/remote/interfaces/Promptbook_Server_Request.d.ts +17 -17
- package/esm/typings/execution/plugins/natural-execution-tools/remote/interfaces/Promptbook_Server_Response.d.ts +12 -12
- package/esm/typings/execution/plugins/natural-execution-tools/remote/interfaces/RemoteServerOptions.d.ts +27 -27
- package/esm/typings/execution/plugins/natural-execution-tools/remote/startRemoteServer.d.ts +17 -17
- package/esm/typings/execution/plugins/script-execution-tools/custom-function-async.test.ts.test.d.ts +1 -1
- package/esm/typings/execution/plugins/script-execution-tools/custom-function-missing.test.d.ts +1 -1
- package/esm/typings/execution/plugins/script-execution-tools/custom-function-with-dependencies.test.d.ts +1 -1
- package/esm/typings/execution/plugins/script-execution-tools/custom-function.test.d.ts +1 -1
- package/esm/typings/execution/plugins/script-execution-tools/javascript/JavascriptEvalExecutionTools.d.ts +20 -20
- package/esm/typings/execution/plugins/script-execution-tools/javascript/JavascriptEvalExecutionTools.test.d.ts +4 -4
- package/esm/typings/execution/plugins/script-execution-tools/javascript/JavascriptExecutionTools.d.ts +20 -20
- package/esm/typings/execution/plugins/script-execution-tools/javascript/JavascriptExecutionToolsOptions.d.ts +22 -22
- package/esm/typings/execution/plugins/script-execution-tools/javascript/utils/preserve.d.ts +11 -11
- package/esm/typings/execution/plugins/script-execution-tools/postprocessing.test.d.ts +1 -1
- package/esm/typings/execution/plugins/script-execution-tools/python/PythonExecutionTools.d.ts +15 -15
- package/esm/typings/execution/plugins/script-execution-tools/script-execution-errors.test.d.ts +1 -1
- package/esm/typings/execution/plugins/script-execution-tools/script-execution-tools.test.d.ts +1 -1
- package/esm/typings/execution/plugins/script-execution-tools/typescript/TypescriptExecutionTools.d.ts +15 -15
- package/esm/typings/execution/plugins/user-interface-execution-tools/callback/CallbackInterfaceTools.d.ts +14 -14
- package/esm/typings/execution/plugins/user-interface-execution-tools/callback/CallbackInterfaceToolsOptions.d.ts +12 -12
- package/esm/typings/execution/plugins/user-interface-execution-tools/simple-prompt/SimplePromptInterfaceTools.d.ts +16 -16
- package/esm/typings/execution/plugins/user-interface-execution-tools/user-interface-execution-tools.test.d.ts +1 -1
- package/esm/typings/execution/translation/automatic-translate/automatic-translators/AutomaticTranslator.d.ts +4 -4
- package/esm/typings/execution/translation/automatic-translate/automatic-translators/DebugAutomaticTranslator.d.ts +9 -9
- package/esm/typings/execution/translation/automatic-translate/automatic-translators/FakeAutomaticTranslator.d.ts +5 -5
- package/esm/typings/execution/translation/automatic-translate/automatic-translators/LindatAutomaticTranslator.d.ts +11 -11
- package/esm/typings/execution/translation/automatic-translate/automatic-translators/TranslatorOptions.d.ts +4 -4
- package/esm/typings/execution/translation/automatic-translate/automatic-translators/utils/extractMultiplicatedOccurrence.d.ts +1 -1
- package/esm/typings/execution/translation/automatic-translate/automatic-translators/utils/extractMultiplicatedOccurrence.test.d.ts +1 -1
- package/esm/typings/execution/translation/automatic-translate/translateMessages.d.ts +5 -5
- package/esm/typings/execution/utils/replaceParameters.d.ts +12 -12
- package/esm/typings/execution/utils/replaceParameters.test.d.ts +1 -1
- package/esm/typings/library/PromptbookLibrary.d.ts +25 -25
- package/esm/typings/library/SimplePromptbookLibrary.d.ts +35 -35
- package/esm/typings/library/constructors/createPromptbookLibraryFromDirectory.d.ts +5 -5
- package/esm/typings/library/constructors/createPromptbookLibraryFromList.d.ts +5 -5
- package/esm/typings/library/constructors/createPromptbookLibraryFromPromise.d.ts +7 -7
- package/esm/typings/library/constructors/createPromptbookLibraryFromSources.d.ts +16 -16
- package/esm/typings/library/constructors/createPromptbookSublibrary.d.ts +6 -6
- package/esm/typings/types/Command.d.ts +98 -98
- package/esm/typings/types/ExecutionTypes.d.ts +13 -13
- package/esm/typings/types/ModelRequirements.d.ts +41 -41
- package/esm/typings/types/Parameters.d.ts +14 -14
- package/esm/typings/types/Prompt.d.ts +41 -41
- package/esm/typings/types/PromptbookJson/PromptTemplateJson.d.ts +126 -126
- package/esm/typings/types/PromptbookJson/PromptTemplateParameterJson.d.ts +25 -25
- package/esm/typings/types/PromptbookJson/PromptbookJson.d.ts +51 -51
- package/esm/typings/types/PromptbookString.d.ts +12 -12
- package/esm/typings/types/ScriptLanguage.d.ts +9 -9
- package/esm/typings/types/TaskProgress.d.ts +42 -42
- package/esm/typings/types/execution-report/ExecutionReportJson.d.ts +56 -56
- package/esm/typings/types/execution-report/ExecutionReportString.d.ts +16 -16
- package/esm/typings/types/execution-report/ExecutionReportStringOptions.d.ts +21 -21
- package/esm/typings/types/execution-report/config.d.ts +8 -8
- package/esm/typings/types/execution-report/countWorkingDuration.d.ts +7 -7
- package/esm/typings/types/execution-report/countWorkingDuration.test.d.ts +1 -1
- package/esm/typings/types/execution-report/executionReportJsonToString.d.ts +11 -11
- package/esm/typings/types/execution-report/executionReportJsonToString.test.d.ts +1 -1
- package/esm/typings/types/typeAliasEmoji.d.ts +9 -9
- package/esm/typings/types/typeAliases.d.ts +432 -432
- package/esm/typings/utils/FromtoItems.d.ts +19 -19
- package/esm/typings/utils/emojis.d.ts +22 -22
- package/esm/typings/utils/expectation-counters/countCharacters.d.ts +5 -5
- package/esm/typings/utils/expectation-counters/countCharacters.test.d.ts +1 -1
- package/esm/typings/utils/expectation-counters/countLines.d.ts +5 -5
- package/esm/typings/utils/expectation-counters/countLines.test.d.ts +1 -1
- package/esm/typings/utils/expectation-counters/countPages.d.ts +5 -5
- package/esm/typings/utils/expectation-counters/countPages.test.d.ts +1 -1
- package/esm/typings/utils/expectation-counters/countParagraphs.d.ts +5 -5
- package/esm/typings/utils/expectation-counters/countParagraphs.test.d.ts +1 -1
- package/esm/typings/utils/expectation-counters/countSentences.d.ts +5 -5
- package/esm/typings/utils/expectation-counters/countSentences.test.d.ts +1 -1
- package/esm/typings/utils/expectation-counters/countWords.d.ts +5 -5
- package/esm/typings/utils/expectation-counters/countWords.test.d.ts +1 -1
- package/esm/typings/utils/expectation-counters/index.d.ts +5 -5
- package/esm/typings/utils/extractParameters.d.ts +10 -10
- package/esm/typings/utils/extractParameters.test.d.ts +1 -1
- package/esm/typings/utils/formatNumber.d.ts +6 -6
- package/esm/typings/utils/formatNumber.test.d.ts +1 -1
- package/esm/typings/utils/getCurrentIsoDate.d.ts +7 -7
- package/esm/typings/utils/isRunningInWhatever.d.ts +12 -12
- package/esm/typings/utils/isValidJsonString.d.ts +4 -4
- package/esm/typings/utils/isValidJsonString.test.d.ts +1 -1
- package/esm/typings/utils/just.d.ts +10 -10
- package/esm/typings/utils/markdown/addAutoGeneratedSection.d.ts +10 -10
- package/esm/typings/utils/markdown/addAutoGeneratedSection.test.d.ts +1 -1
- package/esm/typings/utils/markdown/createMarkdownChart.d.ts +41 -41
- package/esm/typings/utils/markdown/createMarkdownChart.test.d.ts +1 -1
- package/esm/typings/utils/markdown/createMarkdownTable.d.ts +7 -7
- package/esm/typings/utils/markdown/createMarkdownTable.test.d.ts +1 -1
- package/esm/typings/utils/markdown/escapeMarkdownBlock.d.ts +6 -6
- package/esm/typings/utils/markdown/escapeMarkdownBlock.test.d.ts +1 -1
- package/esm/typings/utils/markdown/extractAllBlocksFromMarkdown.d.ts +27 -27
- package/esm/typings/utils/markdown/extractAllBlocksFromMarkdown.test.d.ts +1 -1
- package/esm/typings/utils/markdown/extractAllListItemsFromMarkdown.d.ts +13 -13
- package/esm/typings/utils/markdown/extractAllListItemsFromMarkdown.test.d.ts +1 -1
- package/esm/typings/utils/markdown/extractOneBlockFromMarkdown.d.ts +19 -19
- package/esm/typings/utils/markdown/extractOneBlockFromMarkdown.test.d.ts +1 -1
- package/esm/typings/utils/markdown/prettifyMarkdown.d.ts +8 -8
- package/esm/typings/utils/markdown/prettifyMarkdown.test.d.ts +1 -1
- package/esm/typings/utils/markdown/removeContentComments.d.ts +8 -8
- package/esm/typings/utils/markdown/removeContentComments.test.d.ts +1 -1
- package/esm/typings/utils/markdown/removeMarkdownFormatting.d.ts +8 -8
- package/esm/typings/utils/markdown/removeMarkdownFormatting.test.d.ts +1 -1
- package/esm/typings/utils/markdown-json/MarkdownStructure.d.ts +25 -25
- package/esm/typings/utils/markdown-json/countMarkdownStructureDeepness.d.ts +7 -7
- package/esm/typings/utils/markdown-json/countMarkdownStructureDeepness.test.d.ts +1 -1
- package/esm/typings/utils/markdown-json/markdownToMarkdownStructure.d.ts +13 -13
- package/esm/typings/utils/markdown-json/markdownToMarkdownStructure.test.d.ts +1 -1
- package/esm/typings/utils/postprocessing/extractBlock.d.ts +12 -12
- package/esm/typings/utils/removeEmojis.d.ts +7 -7
- package/esm/typings/utils/removeEmojis.test.d.ts +1 -1
- package/esm/typings/utils/removeQuotes.d.ts +13 -13
- package/esm/typings/utils/removeQuotes.test.d.ts +1 -1
- package/esm/typings/utils/trimCodeBlock.d.ts +8 -8
- package/esm/typings/utils/trimCodeBlock.test.d.ts +1 -1
- package/esm/typings/utils/trimEndOfCodeBlock.d.ts +7 -7
- package/esm/typings/utils/trimEndOfCodeBlock.test.d.ts +1 -1
- package/esm/typings/utils/unwrapResult.d.ts +36 -36
- package/esm/typings/utils/unwrapResult.test.d.ts +1 -1
- package/esm/typings/utils/validators/url/isValidUrl.d.ts +7 -7
- package/esm/typings/utils/validators/url/isValidUrl.test.d.ts +1 -1
- package/esm/typings/version.d.ts +5 -5
- package/esm/typings/wizzard/Wizzard.d.ts +4 -4
- package/esm/typings/wizzard/sample.d.ts +6 -6
- package/package.json +4 -1
- package/umd/index.umd.js +794 -794
- package/umd/typings/_packages/core.index.d.ts +20 -20
- package/umd/typings/_packages/execute-javascript.index.d.ts +3 -3
- package/umd/typings/_packages/openai.index.d.ts +3 -3
- package/umd/typings/_packages/remote-client.index.d.ts +4 -4
- package/umd/typings/_packages/remote-server.index.d.ts +3 -3
- package/umd/typings/_packages/types.index.d.ts +27 -27
- package/umd/typings/_packages/utils.index.d.ts +30 -30
- package/umd/typings/_packages/wizzard.index.d.ts +5 -5
- package/umd/typings/config.d.ts +4 -4
- package/umd/typings/conversion/promptbookStringToJson.d.ts +13 -13
- package/umd/typings/conversion/test/_importPromptbook.d.ts +12 -12
- package/umd/typings/conversion/test/promptbookStringToJson-syntaxErrors.test.d.ts +1 -1
- package/umd/typings/conversion/test/promptbookStringToJson.test.d.ts +1 -1
- package/umd/typings/conversion/test/validatePromptbookJson-logicErrors.test.d.ts +1 -1
- package/umd/typings/conversion/test/validatePromptbookJson.d.ts +26 -26
- package/umd/typings/conversion/test/validatePromptbookJson.test.d.ts +1 -1
- package/umd/typings/conversion/utils/extractVariables.d.ts +10 -10
- package/umd/typings/conversion/utils/extractVariables.test.d.ts +1 -1
- package/umd/typings/conversion/utils/parseCommand.d.ts +8 -8
- package/umd/typings/conversion/utils/parseCommand.test.d.ts +4 -4
- package/umd/typings/conversion/utils/parseNumber.d.ts +12 -12
- package/umd/typings/conversion/utils/parseNumber.test.d.ts +1 -1
- package/umd/typings/errors/ExpectError.d.ts +9 -9
- package/umd/typings/errors/NotFoundError.d.ts +7 -7
- package/umd/typings/errors/PromptbookExecutionError.d.ts +7 -7
- package/umd/typings/errors/PromptbookLogicError.d.ts +7 -7
- package/umd/typings/errors/PromptbookReferenceError.d.ts +7 -7
- package/umd/typings/errors/PromptbookSyntaxError.d.ts +7 -7
- package/umd/typings/errors/UnexpectedError.d.ts +7 -7
- package/umd/typings/execution/CommonExecutionToolsOptions.d.ts +9 -9
- package/umd/typings/execution/ExecutionTools.d.ts +25 -25
- package/umd/typings/execution/NaturalExecutionTools.d.ts +23 -23
- package/umd/typings/execution/PromptResult.d.ts +74 -74
- package/umd/typings/execution/PromptbookExecutor.d.ts +39 -39
- package/umd/typings/execution/ScriptExecutionTools.d.ts +37 -37
- package/umd/typings/execution/UserInterfaceTools.d.ts +45 -45
- package/umd/typings/execution/assertsExecutionSuccessful.d.ts +11 -11
- package/umd/typings/execution/createPromptbookExecutor.d.ts +41 -41
- package/umd/typings/execution/plugins/natural-execution-tools/mocked/MockedEchoNaturalExecutionTools.d.ts +22 -22
- package/umd/typings/execution/plugins/natural-execution-tools/mocked/joker.test.d.ts +4 -4
- package/umd/typings/execution/plugins/natural-execution-tools/mocked/mocked-chat.test.d.ts +4 -4
- package/umd/typings/execution/plugins/natural-execution-tools/mocked/mocked-completion.test.d.ts +4 -4
- package/umd/typings/execution/plugins/natural-execution-tools/openai/OpenAiExecutionTools.d.ts +28 -28
- package/umd/typings/execution/plugins/natural-execution-tools/openai/OpenAiExecutionToolsOptions.d.ts +16 -16
- package/umd/typings/execution/plugins/natural-execution-tools/openai/computeOpenaiUsage.d.ts +3 -3
- package/umd/typings/execution/plugins/natural-execution-tools/remote/RemoteNaturalExecutionTools.d.ts +35 -35
- package/umd/typings/execution/plugins/natural-execution-tools/remote/RemoteNaturalExecutionToolsOptions.d.ts +23 -23
- package/umd/typings/execution/plugins/natural-execution-tools/remote/interfaces/Promptbook_Server_Error.d.ts +11 -11
- package/umd/typings/execution/plugins/natural-execution-tools/remote/interfaces/Promptbook_Server_Progress.d.ts +12 -12
- package/umd/typings/execution/plugins/natural-execution-tools/remote/interfaces/Promptbook_Server_Request.d.ts +17 -17
- package/umd/typings/execution/plugins/natural-execution-tools/remote/interfaces/Promptbook_Server_Response.d.ts +12 -12
- package/umd/typings/execution/plugins/natural-execution-tools/remote/interfaces/RemoteServerOptions.d.ts +27 -27
- package/umd/typings/execution/plugins/natural-execution-tools/remote/startRemoteServer.d.ts +17 -17
- package/umd/typings/execution/plugins/script-execution-tools/custom-function-async.test.ts.test.d.ts +1 -1
- package/umd/typings/execution/plugins/script-execution-tools/custom-function-missing.test.d.ts +1 -1
- package/umd/typings/execution/plugins/script-execution-tools/custom-function-with-dependencies.test.d.ts +1 -1
- package/umd/typings/execution/plugins/script-execution-tools/custom-function.test.d.ts +1 -1
- package/umd/typings/execution/plugins/script-execution-tools/javascript/JavascriptEvalExecutionTools.d.ts +20 -20
- package/umd/typings/execution/plugins/script-execution-tools/javascript/JavascriptEvalExecutionTools.test.d.ts +4 -4
- package/umd/typings/execution/plugins/script-execution-tools/javascript/JavascriptExecutionTools.d.ts +20 -20
- package/umd/typings/execution/plugins/script-execution-tools/javascript/JavascriptExecutionToolsOptions.d.ts +22 -22
- package/umd/typings/execution/plugins/script-execution-tools/javascript/utils/preserve.d.ts +11 -11
- package/umd/typings/execution/plugins/script-execution-tools/postprocessing.test.d.ts +1 -1
- package/umd/typings/execution/plugins/script-execution-tools/python/PythonExecutionTools.d.ts +15 -15
- package/umd/typings/execution/plugins/script-execution-tools/script-execution-errors.test.d.ts +1 -1
- package/umd/typings/execution/plugins/script-execution-tools/script-execution-tools.test.d.ts +1 -1
- package/umd/typings/execution/plugins/script-execution-tools/typescript/TypescriptExecutionTools.d.ts +15 -15
- package/umd/typings/execution/plugins/user-interface-execution-tools/callback/CallbackInterfaceTools.d.ts +14 -14
- package/umd/typings/execution/plugins/user-interface-execution-tools/callback/CallbackInterfaceToolsOptions.d.ts +12 -12
- package/umd/typings/execution/plugins/user-interface-execution-tools/simple-prompt/SimplePromptInterfaceTools.d.ts +16 -16
- package/umd/typings/execution/plugins/user-interface-execution-tools/user-interface-execution-tools.test.d.ts +1 -1
- package/umd/typings/execution/translation/automatic-translate/automatic-translators/AutomaticTranslator.d.ts +4 -4
- package/umd/typings/execution/translation/automatic-translate/automatic-translators/DebugAutomaticTranslator.d.ts +9 -9
- package/umd/typings/execution/translation/automatic-translate/automatic-translators/FakeAutomaticTranslator.d.ts +5 -5
- package/umd/typings/execution/translation/automatic-translate/automatic-translators/LindatAutomaticTranslator.d.ts +11 -11
- package/umd/typings/execution/translation/automatic-translate/automatic-translators/TranslatorOptions.d.ts +4 -4
- package/umd/typings/execution/translation/automatic-translate/automatic-translators/utils/extractMultiplicatedOccurrence.d.ts +1 -1
- package/umd/typings/execution/translation/automatic-translate/automatic-translators/utils/extractMultiplicatedOccurrence.test.d.ts +1 -1
- package/umd/typings/execution/translation/automatic-translate/translateMessages.d.ts +5 -5
- package/umd/typings/execution/utils/replaceParameters.d.ts +12 -12
- package/umd/typings/execution/utils/replaceParameters.test.d.ts +1 -1
- package/umd/typings/library/PromptbookLibrary.d.ts +25 -25
- package/umd/typings/library/SimplePromptbookLibrary.d.ts +35 -35
- package/umd/typings/library/constructors/createPromptbookLibraryFromDirectory.d.ts +5 -5
- package/umd/typings/library/constructors/createPromptbookLibraryFromList.d.ts +5 -5
- package/umd/typings/library/constructors/createPromptbookLibraryFromPromise.d.ts +7 -7
- package/umd/typings/library/constructors/createPromptbookLibraryFromSources.d.ts +16 -16
- package/umd/typings/library/constructors/createPromptbookSublibrary.d.ts +6 -6
- package/umd/typings/types/Command.d.ts +98 -98
- package/umd/typings/types/ExecutionTypes.d.ts +13 -13
- package/umd/typings/types/ModelRequirements.d.ts +41 -41
- package/umd/typings/types/Parameters.d.ts +14 -14
- package/umd/typings/types/Prompt.d.ts +41 -41
- package/umd/typings/types/PromptbookJson/PromptTemplateJson.d.ts +126 -126
- package/umd/typings/types/PromptbookJson/PromptTemplateParameterJson.d.ts +25 -25
- package/umd/typings/types/PromptbookJson/PromptbookJson.d.ts +51 -51
- package/umd/typings/types/PromptbookString.d.ts +12 -12
- package/umd/typings/types/ScriptLanguage.d.ts +9 -9
- package/umd/typings/types/TaskProgress.d.ts +42 -42
- package/umd/typings/types/execution-report/ExecutionReportJson.d.ts +56 -56
- package/umd/typings/types/execution-report/ExecutionReportString.d.ts +16 -16
- package/umd/typings/types/execution-report/ExecutionReportStringOptions.d.ts +21 -21
- package/umd/typings/types/execution-report/config.d.ts +8 -8
- package/umd/typings/types/execution-report/countWorkingDuration.d.ts +7 -7
- package/umd/typings/types/execution-report/countWorkingDuration.test.d.ts +1 -1
- package/umd/typings/types/execution-report/executionReportJsonToString.d.ts +11 -11
- package/umd/typings/types/execution-report/executionReportJsonToString.test.d.ts +1 -1
- package/umd/typings/types/typeAliasEmoji.d.ts +9 -9
- package/umd/typings/types/typeAliases.d.ts +432 -432
- package/umd/typings/utils/FromtoItems.d.ts +19 -19
- package/umd/typings/utils/emojis.d.ts +22 -22
- package/umd/typings/utils/expectation-counters/countCharacters.d.ts +5 -5
- package/umd/typings/utils/expectation-counters/countCharacters.test.d.ts +1 -1
- package/umd/typings/utils/expectation-counters/countLines.d.ts +5 -5
- package/umd/typings/utils/expectation-counters/countLines.test.d.ts +1 -1
- package/umd/typings/utils/expectation-counters/countPages.d.ts +5 -5
- package/umd/typings/utils/expectation-counters/countPages.test.d.ts +1 -1
- package/umd/typings/utils/expectation-counters/countParagraphs.d.ts +5 -5
- package/umd/typings/utils/expectation-counters/countParagraphs.test.d.ts +1 -1
- package/umd/typings/utils/expectation-counters/countSentences.d.ts +5 -5
- package/umd/typings/utils/expectation-counters/countSentences.test.d.ts +1 -1
- package/umd/typings/utils/expectation-counters/countWords.d.ts +5 -5
- package/umd/typings/utils/expectation-counters/countWords.test.d.ts +1 -1
- package/umd/typings/utils/expectation-counters/index.d.ts +5 -5
- package/umd/typings/utils/extractParameters.d.ts +10 -10
- package/umd/typings/utils/extractParameters.test.d.ts +1 -1
- package/umd/typings/utils/formatNumber.d.ts +6 -6
- package/umd/typings/utils/formatNumber.test.d.ts +1 -1
- package/umd/typings/utils/getCurrentIsoDate.d.ts +7 -7
- package/umd/typings/utils/isRunningInWhatever.d.ts +12 -12
- package/umd/typings/utils/isValidJsonString.d.ts +4 -4
- package/umd/typings/utils/isValidJsonString.test.d.ts +1 -1
- package/umd/typings/utils/just.d.ts +10 -10
- package/umd/typings/utils/markdown/addAutoGeneratedSection.d.ts +10 -10
- package/umd/typings/utils/markdown/addAutoGeneratedSection.test.d.ts +1 -1
- package/umd/typings/utils/markdown/createMarkdownChart.d.ts +41 -41
- package/umd/typings/utils/markdown/createMarkdownChart.test.d.ts +1 -1
- package/umd/typings/utils/markdown/createMarkdownTable.d.ts +7 -7
- package/umd/typings/utils/markdown/createMarkdownTable.test.d.ts +1 -1
- package/umd/typings/utils/markdown/escapeMarkdownBlock.d.ts +6 -6
- package/umd/typings/utils/markdown/escapeMarkdownBlock.test.d.ts +1 -1
- package/umd/typings/utils/markdown/extractAllBlocksFromMarkdown.d.ts +27 -27
- package/umd/typings/utils/markdown/extractAllBlocksFromMarkdown.test.d.ts +1 -1
- package/umd/typings/utils/markdown/extractAllListItemsFromMarkdown.d.ts +13 -13
- package/umd/typings/utils/markdown/extractAllListItemsFromMarkdown.test.d.ts +1 -1
- package/umd/typings/utils/markdown/extractOneBlockFromMarkdown.d.ts +19 -19
- package/umd/typings/utils/markdown/extractOneBlockFromMarkdown.test.d.ts +1 -1
- package/umd/typings/utils/markdown/prettifyMarkdown.d.ts +8 -8
- package/umd/typings/utils/markdown/prettifyMarkdown.test.d.ts +1 -1
- package/umd/typings/utils/markdown/removeContentComments.d.ts +8 -8
- package/umd/typings/utils/markdown/removeContentComments.test.d.ts +1 -1
- package/umd/typings/utils/markdown/removeMarkdownFormatting.d.ts +8 -8
- package/umd/typings/utils/markdown/removeMarkdownFormatting.test.d.ts +1 -1
- package/umd/typings/utils/markdown-json/MarkdownStructure.d.ts +25 -25
- package/umd/typings/utils/markdown-json/countMarkdownStructureDeepness.d.ts +7 -7
- package/umd/typings/utils/markdown-json/countMarkdownStructureDeepness.test.d.ts +1 -1
- package/umd/typings/utils/markdown-json/markdownToMarkdownStructure.d.ts +13 -13
- package/umd/typings/utils/markdown-json/markdownToMarkdownStructure.test.d.ts +1 -1
- package/umd/typings/utils/postprocessing/extractBlock.d.ts +12 -12
- package/umd/typings/utils/removeEmojis.d.ts +7 -7
- package/umd/typings/utils/removeEmojis.test.d.ts +1 -1
- package/umd/typings/utils/removeQuotes.d.ts +13 -13
- package/umd/typings/utils/removeQuotes.test.d.ts +1 -1
- package/umd/typings/utils/trimCodeBlock.d.ts +8 -8
- package/umd/typings/utils/trimCodeBlock.test.d.ts +1 -1
- package/umd/typings/utils/trimEndOfCodeBlock.d.ts +7 -7
- package/umd/typings/utils/trimEndOfCodeBlock.test.d.ts +1 -1
- package/umd/typings/utils/unwrapResult.d.ts +36 -36
- package/umd/typings/utils/unwrapResult.test.d.ts +1 -1
- package/umd/typings/utils/validators/url/isValidUrl.d.ts +7 -7
- package/umd/typings/utils/validators/url/isValidUrl.test.d.ts +1 -1
- package/umd/typings/version.d.ts +5 -5
- package/umd/typings/wizzard/Wizzard.d.ts +4 -4
- package/umd/typings/wizzard/sample.d.ts +6 -6
|
@@ -1,432 +1,432 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Semantic helper
|
|
3
|
-
*/
|
|
4
|
-
export type string_business_category_name = 'restaurant' | 'grocery' | 'person' | 'conference' | string;
|
|
5
|
-
/**
|
|
6
|
-
* Semantic helper
|
|
7
|
-
*
|
|
8
|
-
* For example `"gpt-4"`
|
|
9
|
-
*/
|
|
10
|
-
export type string_model_name = 'gpt-4' | 'gpt-4-0314' | 'gpt-4-0613' | 'gpt-4-32k' | 'gpt-4-32k-0314' | 'gpt-4-32k-0613' | 'gpt-3.5-turbo' | 'gpt-3.5-turbo-16k' | 'gpt-3.5-turbo-0301' | 'gpt-3.5-turbo-0613' | 'gpt-3.5-turbo-16k-0613' | string;
|
|
11
|
-
/**
|
|
12
|
-
* Semantic helper
|
|
13
|
-
*
|
|
14
|
-
* For example `"A cat wearing a hat"`
|
|
15
|
-
*/
|
|
16
|
-
export type string_prompt = string;
|
|
17
|
-
/**
|
|
18
|
-
* Semantic helper
|
|
19
|
-
*
|
|
20
|
-
* For example `"A cat wearing a {ITEM}"`
|
|
21
|
-
*/
|
|
22
|
-
export type string_template = string;
|
|
23
|
-
/**
|
|
24
|
-
* Semantic helper
|
|
25
|
-
*
|
|
26
|
-
* For example `"How many hats does the cat wear?"`
|
|
27
|
-
*/
|
|
28
|
-
export type string_text_prompt = string_prompt;
|
|
29
|
-
/**
|
|
30
|
-
* Semantic helper
|
|
31
|
-
*
|
|
32
|
-
* For example `"How many hats does the cat wear?"`
|
|
33
|
-
*/
|
|
34
|
-
export type string_chat_prompt = string_text_prompt;
|
|
35
|
-
/**
|
|
36
|
-
* Semantic helper
|
|
37
|
-
*
|
|
38
|
-
* For example `"Following is a text about cats: Once upon a time there was a cat"`
|
|
39
|
-
*/
|
|
40
|
-
export type string_completion_prompt = string_text_prompt;
|
|
41
|
-
/**
|
|
42
|
-
* Semantic helper
|
|
43
|
-
*
|
|
44
|
-
* For example `"index"` or `"explanation"`
|
|
45
|
-
* Always in kebab-case
|
|
46
|
-
*/
|
|
47
|
-
export type string_page = 'index' | string;
|
|
48
|
-
/**
|
|
49
|
-
* Semantic helper
|
|
50
|
-
*
|
|
51
|
-
* For example `"text/plain"` or `"application/collboard"`
|
|
52
|
-
*/
|
|
53
|
-
export type string_mime_type = string;
|
|
54
|
-
/**
|
|
55
|
-
* Semantic helper
|
|
56
|
-
*
|
|
57
|
-
* For example `"text/*"` or `"image/*"`
|
|
58
|
-
*
|
|
59
|
-
*
|
|
60
|
-
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/file#unique_file_type_specifiers
|
|
61
|
-
*/
|
|
62
|
-
export type string_mime_type_with_wildcard = string;
|
|
63
|
-
/**
|
|
64
|
-
* Semantic helper
|
|
65
|
-
*
|
|
66
|
-
* For example `"a"`
|
|
67
|
-
*/
|
|
68
|
-
export type string_char = string;
|
|
69
|
-
/**
|
|
70
|
-
* Semantic helper
|
|
71
|
-
* Unique identifier of anything
|
|
72
|
-
*
|
|
73
|
-
* For example `"ainautes"`
|
|
74
|
-
*/
|
|
75
|
-
export type string_name = string;
|
|
76
|
-
/**
|
|
77
|
-
* Semantic helper
|
|
78
|
-
* Title of anything
|
|
79
|
-
*
|
|
80
|
-
* For example `"Ai*nautes"`
|
|
81
|
-
*/
|
|
82
|
-
export type string_title = string;
|
|
83
|
-
/**
|
|
84
|
-
* Semantic helper
|
|
85
|
-
*
|
|
86
|
-
* For example `"<div>Hello World!</div>"`
|
|
87
|
-
*/
|
|
88
|
-
export type string_html = string;
|
|
89
|
-
/**
|
|
90
|
-
* Semantic helper
|
|
91
|
-
*
|
|
92
|
-
* For example `"<foo>bar</foo>"`
|
|
93
|
-
*
|
|
94
|
-
*
|
|
95
|
-
* TODO: [ποΈ] Probbably use some object-based method for working with XMLs
|
|
96
|
-
*/
|
|
97
|
-
export type string_xml = string;
|
|
98
|
-
/**
|
|
99
|
-
* Semantic helper
|
|
100
|
-
*
|
|
101
|
-
* For example `"**Hello** World!"`
|
|
102
|
-
*/
|
|
103
|
-
export type string_markdown = string;
|
|
104
|
-
/**
|
|
105
|
-
* Semantic helper
|
|
106
|
-
*
|
|
107
|
-
* Markdown text without any structure like h1, h2, lists, blockquotes, blocks, etc.
|
|
108
|
-
* BUT with bold, italic, etc.
|
|
109
|
-
*
|
|
110
|
-
* For example `"**Hello** World!"`
|
|
111
|
-
*/
|
|
112
|
-
export type string_markdown_text = string;
|
|
113
|
-
/**
|
|
114
|
-
* Semantic helper
|
|
115
|
-
*
|
|
116
|
-
* For example `"towns.cz"`
|
|
117
|
-
*/
|
|
118
|
-
export type string_domain = string;
|
|
119
|
-
/**
|
|
120
|
-
* Semantic helper
|
|
121
|
-
*
|
|
122
|
-
* For example `"com"`
|
|
123
|
-
*/
|
|
124
|
-
export type string_tdl = string;
|
|
125
|
-
/**
|
|
126
|
-
* Semantic helper
|
|
127
|
-
*
|
|
128
|
-
* For example `.foo{border: 1px solid red}`
|
|
129
|
-
*/
|
|
130
|
-
export type string_css = string;
|
|
131
|
-
/**
|
|
132
|
-
* Semantic helper
|
|
133
|
-
*
|
|
134
|
-
* For example `"<svg><circle cx="50" cy="50" r="40" stroke="green" stroke-width="4" fill="yellow" /></svg>"`
|
|
135
|
-
*/
|
|
136
|
-
export type string_svg = string;
|
|
137
|
-
/**
|
|
138
|
-
* Semantic helper
|
|
139
|
-
*
|
|
140
|
-
* For example `console.info("Hello World!")` or `print("Hello World!")`
|
|
141
|
-
*/
|
|
142
|
-
export type string_script = string;
|
|
143
|
-
/**
|
|
144
|
-
* Semantic helper
|
|
145
|
-
*
|
|
146
|
-
* For example `console.info("Hello World!")`
|
|
147
|
-
*/
|
|
148
|
-
export type string_javascript = string;
|
|
149
|
-
/**
|
|
150
|
-
* Semantic helper
|
|
151
|
-
*
|
|
152
|
-
* For example `menu`
|
|
153
|
-
*/
|
|
154
|
-
export type string_css_class = string;
|
|
155
|
-
/**
|
|
156
|
-
* Semantic helper
|
|
157
|
-
*
|
|
158
|
-
* For example `border`
|
|
159
|
-
*/
|
|
160
|
-
export type string_css_property = string;
|
|
161
|
-
/**
|
|
162
|
-
* Semantic helper
|
|
163
|
-
*
|
|
164
|
-
* For example `13px`
|
|
165
|
-
*/
|
|
166
|
-
export type string_css_value = string;
|
|
167
|
-
/**
|
|
168
|
-
* Semantic helper
|
|
169
|
-
*
|
|
170
|
-
* For example `.foo`
|
|
171
|
-
*/
|
|
172
|
-
export type string_css_selector = string;
|
|
173
|
-
/**
|
|
174
|
-
* Semantic helper
|
|
175
|
-
*
|
|
176
|
-
* For example `"https://collboard.com/9SeSQTupmQHwuSrLi"`
|
|
177
|
-
*/
|
|
178
|
-
export type string_url = string;
|
|
179
|
-
/**
|
|
180
|
-
* Semantic helper
|
|
181
|
-
*
|
|
182
|
-
* For example `"https://promptbook.webgpt.com/cs/write-website-content.ptbk.md@v2.4.15"`
|
|
183
|
-
*/
|
|
184
|
-
export type string_promptbook_url = string;
|
|
185
|
-
/**
|
|
186
|
-
* Semantic helper
|
|
187
|
-
*
|
|
188
|
-
* For example `"https://promptbook.webgpt.com/cs/write-website-content.ptbk.md@v2.4.15#keywords"`
|
|
189
|
-
*/
|
|
190
|
-
export type string_promptbook_url_with_hashtemplate = string;
|
|
191
|
-
/**
|
|
192
|
-
* Semantic helper
|
|
193
|
-
*
|
|
194
|
-
* For example `"data:text/plain;base64,SGVsbG8sIFdvcmxkIQ=="`
|
|
195
|
-
*/
|
|
196
|
-
export type string_data_url = string;
|
|
197
|
-
/**
|
|
198
|
-
* Semantic helper
|
|
199
|
-
*
|
|
200
|
-
* For example `"https://collboard.com/9SeSQTupmQHwuSrLi"` OR `/9SeSQTupmQHwuSrLi`
|
|
201
|
-
*/
|
|
202
|
-
export type string_href = string;
|
|
203
|
-
/**
|
|
204
|
-
* Semantic helper
|
|
205
|
-
*
|
|
206
|
-
* For example `"https://collboard.com/9SeSQTupmQHwuSrLi.png?width=1200&height=630"`
|
|
207
|
-
*/
|
|
208
|
-
export type string_url_image = string;
|
|
209
|
-
/**
|
|
210
|
-
* Semantic helper
|
|
211
|
-
*
|
|
212
|
-
* For example `"/9SeSQTupmQHwuSrLi"`
|
|
213
|
-
*/
|
|
214
|
-
export type string_uri = string;
|
|
215
|
-
/**
|
|
216
|
-
* Semantic helper
|
|
217
|
-
*
|
|
218
|
-
* For example `"9SeSQTupmQHwuSrLi"`
|
|
219
|
-
*/
|
|
220
|
-
export type string_uri_part = string;
|
|
221
|
-
/**
|
|
222
|
-
* Semantic helper, ID of the board used in URL and API
|
|
223
|
-
*
|
|
224
|
-
* For example `"9SeSQTupmQHwuSrLi"` <- TODO: !! Update
|
|
225
|
-
*/
|
|
226
|
-
export type string_uriid = string_uri_part;
|
|
227
|
-
/**
|
|
228
|
-
* Semantic helper
|
|
229
|
-
*/
|
|
230
|
-
export type string_protocol = 'http:' | 'https:';
|
|
231
|
-
/**
|
|
232
|
-
* Semantic helper
|
|
233
|
-
*
|
|
234
|
-
* For example `"localhost"` or `"collboard.com"`
|
|
235
|
-
*/
|
|
236
|
-
export type string_hostname = string;
|
|
237
|
-
/**
|
|
238
|
-
* Semantic helper
|
|
239
|
-
*
|
|
240
|
-
* For example `"localhost:9977"` or `"collboard.com"`
|
|
241
|
-
*/
|
|
242
|
-
export type string_host = string;
|
|
243
|
-
/**
|
|
244
|
-
* Semantic helper
|
|
245
|
-
*
|
|
246
|
-
* For example `"pavol@hejny.org"`
|
|
247
|
-
*/
|
|
248
|
-
export type string_email = string;
|
|
249
|
-
/**
|
|
250
|
-
* Branded type client id
|
|
251
|
-
*/
|
|
252
|
-
export type client_id = string & {
|
|
253
|
-
readonly _type: 'client_id';
|
|
254
|
-
};
|
|
255
|
-
/**
|
|
256
|
-
* Semantic helper
|
|
257
|
-
*
|
|
258
|
-
* For example `"b126926439c5fcb83609888a11283723c1ef137c0ad599a77a1be81812bd221d"`
|
|
259
|
-
*/
|
|
260
|
-
export type string_sha256 = string;
|
|
261
|
-
/**
|
|
262
|
-
* Semantic helper
|
|
263
|
-
*
|
|
264
|
-
* For example `"4.2.4"`
|
|
265
|
-
*/
|
|
266
|
-
export type string_version = string;
|
|
267
|
-
/**
|
|
268
|
-
* Semantic helper
|
|
269
|
-
*
|
|
270
|
-
* For example `"^4.2.4"`
|
|
271
|
-
*/
|
|
272
|
-
export type string_version_dependency = string;
|
|
273
|
-
/**
|
|
274
|
-
* Semantic helper
|
|
275
|
-
*
|
|
276
|
-
* For example `"png"`
|
|
277
|
-
*/
|
|
278
|
-
export type string_file_extension = string;
|
|
279
|
-
/**
|
|
280
|
-
* Semantic helper
|
|
281
|
-
*
|
|
282
|
-
* For example `"C:/Users/me/work/collboard/modules-sdk/src/colldev/commands/develop/ColldevDevelop.tsx"`
|
|
283
|
-
*/
|
|
284
|
-
export type string_file_absolute_path = string;
|
|
285
|
-
/**
|
|
286
|
-
* Semantic helper
|
|
287
|
-
*
|
|
288
|
-
* For example `"./src/colldev/commands/develop/ColldevDevelop.tsx"`
|
|
289
|
-
*/
|
|
290
|
-
export type string_file_relative_path = string;
|
|
291
|
-
/**
|
|
292
|
-
* Semantic helper
|
|
293
|
-
*/
|
|
294
|
-
export type string_file_path = string_file_absolute_path | string_file_relative_path;
|
|
295
|
-
/**
|
|
296
|
-
* Semantic helper
|
|
297
|
-
*
|
|
298
|
-
* For example `"C:/Users/me/work/collboard/modules-sdk/src/colldev/commands/develop/ColldevDevelop.tsx"`
|
|
299
|
-
*/
|
|
300
|
-
export type string_folder_absolute_path = string;
|
|
301
|
-
/**
|
|
302
|
-
* Semantic helper
|
|
303
|
-
*
|
|
304
|
-
* For example `"./src/colldev/commands/develop/ColldevDevelop.tsx"`
|
|
305
|
-
*/
|
|
306
|
-
export type string_folder_relative_path = string;
|
|
307
|
-
/**
|
|
308
|
-
* Semantic helper
|
|
309
|
-
*/
|
|
310
|
-
export type string_folder_path = string_file_absolute_path | string_file_relative_path;
|
|
311
|
-
/**
|
|
312
|
-
* Semantic helper
|
|
313
|
-
*/
|
|
314
|
-
export type string_filename = string;
|
|
315
|
-
/**
|
|
316
|
-
* Semantic helper
|
|
317
|
-
*
|
|
318
|
-
* For example `"John Smith"`
|
|
319
|
-
*/
|
|
320
|
-
export type string_person_fullname = string;
|
|
321
|
-
/**
|
|
322
|
-
* Semantic helper
|
|
323
|
-
* Full profile of the person with his email and web (like in package.json)
|
|
324
|
-
*
|
|
325
|
-
* For example `"Pavol HejnΓ½ <pavol@hejny.org> (https://pavolhejny.com)"`
|
|
326
|
-
*/
|
|
327
|
-
export type string_person_profile = string;
|
|
328
|
-
/**
|
|
329
|
-
* Semantic helper
|
|
330
|
-
*
|
|
331
|
-
* For example `"MIT"`
|
|
332
|
-
*/
|
|
333
|
-
export type string_license = string;
|
|
334
|
-
/**
|
|
335
|
-
* Semantic helper for attributes
|
|
336
|
-
*
|
|
337
|
-
* - case insensitive
|
|
338
|
-
*
|
|
339
|
-
* For example `"color"`
|
|
340
|
-
*/
|
|
341
|
-
export type string_attribute = string;
|
|
342
|
-
/**
|
|
343
|
-
* Semantic helper for attributes context
|
|
344
|
-
* Each attribute value scope with a attribute name has its own current value
|
|
345
|
-
*
|
|
346
|
-
* - case insensitive
|
|
347
|
-
*
|
|
348
|
-
* For example `"tools"`
|
|
349
|
-
*/
|
|
350
|
-
export type string_attribute_value_scope = string;
|
|
351
|
-
/**
|
|
352
|
-
* Semantic helper for css/html colors
|
|
353
|
-
*
|
|
354
|
-
* For example `"white"` or `"#009edd"`
|
|
355
|
-
*/
|
|
356
|
-
export type string_color = string;
|
|
357
|
-
/**
|
|
358
|
-
* Semantic helper; For example "SHARE_ICON/EDIT_LINK"
|
|
359
|
-
*/
|
|
360
|
-
export type string_translate_name = string;
|
|
361
|
-
/**
|
|
362
|
-
* Semantic helper; For example "ShareIcon/ edit link"
|
|
363
|
-
*/
|
|
364
|
-
export type string_translate_name_not_normalized = string;
|
|
365
|
-
/**
|
|
366
|
-
* Semantic helper; For example "cs" or "en"
|
|
367
|
-
* Implementing ISO 639-1
|
|
368
|
-
*
|
|
369
|
-
* TODO: Probably use enum
|
|
370
|
-
*/
|
|
371
|
-
export type string_translate_language = 'en' | 'cs';
|
|
372
|
-
/**
|
|
373
|
-
* Semantic helper; For example "callbackName" or "renderMe"
|
|
374
|
-
*/
|
|
375
|
-
export type string_javascript_name = string;
|
|
376
|
-
export type string_token = string;
|
|
377
|
-
export type string_license_token = string_token;
|
|
378
|
-
export type string_password = string;
|
|
379
|
-
export type string_ssh_key = string;
|
|
380
|
-
export type string_pgp_key = string;
|
|
381
|
-
/**
|
|
382
|
-
* Semantic helper for `Date.toISOString()` result
|
|
383
|
-
*
|
|
384
|
-
* @example "2011-10-05T14:48:00.000Z".
|
|
385
|
-
* @see https://en.wikipedia.org/wiki/ISO_8601
|
|
386
|
-
* @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString
|
|
387
|
-
*/
|
|
388
|
-
export type string_date_iso8601 = `${number}-${number}-${number}${string}${number}:${number}:${number}${string}`;
|
|
389
|
-
/**
|
|
390
|
-
* Semantic helper for US Dollars
|
|
391
|
-
*/
|
|
392
|
-
export type number_usd = number;
|
|
393
|
-
/**
|
|
394
|
-
* Semantic helper for number of tokens
|
|
395
|
-
*/
|
|
396
|
-
export type number_tokens = number_integer & number_positive_or_zero;
|
|
397
|
-
export type number_positive = number;
|
|
398
|
-
export type number_negative = number;
|
|
399
|
-
export type number_positive_or_zero = number;
|
|
400
|
-
export type number_negative_or_zero = number;
|
|
401
|
-
export type number_integer = number;
|
|
402
|
-
/**
|
|
403
|
-
* Semantic helper;
|
|
404
|
-
* Percentage from 0 to 1 (100%)
|
|
405
|
-
*/
|
|
406
|
-
export type number_percent = number;
|
|
407
|
-
/**
|
|
408
|
-
* Likeness of the wallpaper
|
|
409
|
-
*
|
|
410
|
-
* - π is eqivalent for 1
|
|
411
|
-
* - π is eqivalent for -1
|
|
412
|
-
* - β€ is eqivalent for more than 1
|
|
413
|
-
* - etc
|
|
414
|
-
*/
|
|
415
|
-
export type number_likeness = number;
|
|
416
|
-
export type number_miliseconds = number_integer;
|
|
417
|
-
export type number_seconds = number;
|
|
418
|
-
export type number_minutes = number;
|
|
419
|
-
export type number_hours = number;
|
|
420
|
-
export type number_days = number;
|
|
421
|
-
export type number_weeks = number;
|
|
422
|
-
export type number_months = number;
|
|
423
|
-
export type number_years = number;
|
|
424
|
-
export type number_bytes = number_integer & number_positive;
|
|
425
|
-
export type number_kilobytes = number_positive;
|
|
426
|
-
export type number_megabytes = number_positive;
|
|
427
|
-
export type number_gigabytes = number_positive;
|
|
428
|
-
export type number_terabytes = number_positive;
|
|
429
|
-
/**
|
|
430
|
-
* TODO: !! Cleanup
|
|
431
|
-
* TODO: !! Change to branded types
|
|
432
|
-
*/
|
|
1
|
+
/**
|
|
2
|
+
* Semantic helper
|
|
3
|
+
*/
|
|
4
|
+
export type string_business_category_name = 'restaurant' | 'grocery' | 'person' | 'conference' | string;
|
|
5
|
+
/**
|
|
6
|
+
* Semantic helper
|
|
7
|
+
*
|
|
8
|
+
* For example `"gpt-4"`
|
|
9
|
+
*/
|
|
10
|
+
export type string_model_name = 'gpt-4' | 'gpt-4-0314' | 'gpt-4-0613' | 'gpt-4-32k' | 'gpt-4-32k-0314' | 'gpt-4-32k-0613' | 'gpt-3.5-turbo' | 'gpt-3.5-turbo-16k' | 'gpt-3.5-turbo-0301' | 'gpt-3.5-turbo-0613' | 'gpt-3.5-turbo-16k-0613' | string;
|
|
11
|
+
/**
|
|
12
|
+
* Semantic helper
|
|
13
|
+
*
|
|
14
|
+
* For example `"A cat wearing a hat"`
|
|
15
|
+
*/
|
|
16
|
+
export type string_prompt = string;
|
|
17
|
+
/**
|
|
18
|
+
* Semantic helper
|
|
19
|
+
*
|
|
20
|
+
* For example `"A cat wearing a {ITEM}"`
|
|
21
|
+
*/
|
|
22
|
+
export type string_template = string;
|
|
23
|
+
/**
|
|
24
|
+
* Semantic helper
|
|
25
|
+
*
|
|
26
|
+
* For example `"How many hats does the cat wear?"`
|
|
27
|
+
*/
|
|
28
|
+
export type string_text_prompt = string_prompt;
|
|
29
|
+
/**
|
|
30
|
+
* Semantic helper
|
|
31
|
+
*
|
|
32
|
+
* For example `"How many hats does the cat wear?"`
|
|
33
|
+
*/
|
|
34
|
+
export type string_chat_prompt = string_text_prompt;
|
|
35
|
+
/**
|
|
36
|
+
* Semantic helper
|
|
37
|
+
*
|
|
38
|
+
* For example `"Following is a text about cats: Once upon a time there was a cat"`
|
|
39
|
+
*/
|
|
40
|
+
export type string_completion_prompt = string_text_prompt;
|
|
41
|
+
/**
|
|
42
|
+
* Semantic helper
|
|
43
|
+
*
|
|
44
|
+
* For example `"index"` or `"explanation"`
|
|
45
|
+
* Always in kebab-case
|
|
46
|
+
*/
|
|
47
|
+
export type string_page = 'index' | string;
|
|
48
|
+
/**
|
|
49
|
+
* Semantic helper
|
|
50
|
+
*
|
|
51
|
+
* For example `"text/plain"` or `"application/collboard"`
|
|
52
|
+
*/
|
|
53
|
+
export type string_mime_type = string;
|
|
54
|
+
/**
|
|
55
|
+
* Semantic helper
|
|
56
|
+
*
|
|
57
|
+
* For example `"text/*"` or `"image/*"`
|
|
58
|
+
*
|
|
59
|
+
*
|
|
60
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/file#unique_file_type_specifiers
|
|
61
|
+
*/
|
|
62
|
+
export type string_mime_type_with_wildcard = string;
|
|
63
|
+
/**
|
|
64
|
+
* Semantic helper
|
|
65
|
+
*
|
|
66
|
+
* For example `"a"`
|
|
67
|
+
*/
|
|
68
|
+
export type string_char = string;
|
|
69
|
+
/**
|
|
70
|
+
* Semantic helper
|
|
71
|
+
* Unique identifier of anything
|
|
72
|
+
*
|
|
73
|
+
* For example `"ainautes"`
|
|
74
|
+
*/
|
|
75
|
+
export type string_name = string;
|
|
76
|
+
/**
|
|
77
|
+
* Semantic helper
|
|
78
|
+
* Title of anything
|
|
79
|
+
*
|
|
80
|
+
* For example `"Ai*nautes"`
|
|
81
|
+
*/
|
|
82
|
+
export type string_title = string;
|
|
83
|
+
/**
|
|
84
|
+
* Semantic helper
|
|
85
|
+
*
|
|
86
|
+
* For example `"<div>Hello World!</div>"`
|
|
87
|
+
*/
|
|
88
|
+
export type string_html = string;
|
|
89
|
+
/**
|
|
90
|
+
* Semantic helper
|
|
91
|
+
*
|
|
92
|
+
* For example `"<foo>bar</foo>"`
|
|
93
|
+
*
|
|
94
|
+
*
|
|
95
|
+
* TODO: [ποΈ] Probbably use some object-based method for working with XMLs
|
|
96
|
+
*/
|
|
97
|
+
export type string_xml = string;
|
|
98
|
+
/**
|
|
99
|
+
* Semantic helper
|
|
100
|
+
*
|
|
101
|
+
* For example `"**Hello** World!"`
|
|
102
|
+
*/
|
|
103
|
+
export type string_markdown = string;
|
|
104
|
+
/**
|
|
105
|
+
* Semantic helper
|
|
106
|
+
*
|
|
107
|
+
* Markdown text without any structure like h1, h2, lists, blockquotes, blocks, etc.
|
|
108
|
+
* BUT with bold, italic, etc.
|
|
109
|
+
*
|
|
110
|
+
* For example `"**Hello** World!"`
|
|
111
|
+
*/
|
|
112
|
+
export type string_markdown_text = string;
|
|
113
|
+
/**
|
|
114
|
+
* Semantic helper
|
|
115
|
+
*
|
|
116
|
+
* For example `"towns.cz"`
|
|
117
|
+
*/
|
|
118
|
+
export type string_domain = string;
|
|
119
|
+
/**
|
|
120
|
+
* Semantic helper
|
|
121
|
+
*
|
|
122
|
+
* For example `"com"`
|
|
123
|
+
*/
|
|
124
|
+
export type string_tdl = string;
|
|
125
|
+
/**
|
|
126
|
+
* Semantic helper
|
|
127
|
+
*
|
|
128
|
+
* For example `.foo{border: 1px solid red}`
|
|
129
|
+
*/
|
|
130
|
+
export type string_css = string;
|
|
131
|
+
/**
|
|
132
|
+
* Semantic helper
|
|
133
|
+
*
|
|
134
|
+
* For example `"<svg><circle cx="50" cy="50" r="40" stroke="green" stroke-width="4" fill="yellow" /></svg>"`
|
|
135
|
+
*/
|
|
136
|
+
export type string_svg = string;
|
|
137
|
+
/**
|
|
138
|
+
* Semantic helper
|
|
139
|
+
*
|
|
140
|
+
* For example `console.info("Hello World!")` or `print("Hello World!")`
|
|
141
|
+
*/
|
|
142
|
+
export type string_script = string;
|
|
143
|
+
/**
|
|
144
|
+
* Semantic helper
|
|
145
|
+
*
|
|
146
|
+
* For example `console.info("Hello World!")`
|
|
147
|
+
*/
|
|
148
|
+
export type string_javascript = string;
|
|
149
|
+
/**
|
|
150
|
+
* Semantic helper
|
|
151
|
+
*
|
|
152
|
+
* For example `menu`
|
|
153
|
+
*/
|
|
154
|
+
export type string_css_class = string;
|
|
155
|
+
/**
|
|
156
|
+
* Semantic helper
|
|
157
|
+
*
|
|
158
|
+
* For example `border`
|
|
159
|
+
*/
|
|
160
|
+
export type string_css_property = string;
|
|
161
|
+
/**
|
|
162
|
+
* Semantic helper
|
|
163
|
+
*
|
|
164
|
+
* For example `13px`
|
|
165
|
+
*/
|
|
166
|
+
export type string_css_value = string;
|
|
167
|
+
/**
|
|
168
|
+
* Semantic helper
|
|
169
|
+
*
|
|
170
|
+
* For example `.foo`
|
|
171
|
+
*/
|
|
172
|
+
export type string_css_selector = string;
|
|
173
|
+
/**
|
|
174
|
+
* Semantic helper
|
|
175
|
+
*
|
|
176
|
+
* For example `"https://collboard.com/9SeSQTupmQHwuSrLi"`
|
|
177
|
+
*/
|
|
178
|
+
export type string_url = string;
|
|
179
|
+
/**
|
|
180
|
+
* Semantic helper
|
|
181
|
+
*
|
|
182
|
+
* For example `"https://promptbook.webgpt.com/cs/write-website-content.ptbk.md@v2.4.15"`
|
|
183
|
+
*/
|
|
184
|
+
export type string_promptbook_url = string;
|
|
185
|
+
/**
|
|
186
|
+
* Semantic helper
|
|
187
|
+
*
|
|
188
|
+
* For example `"https://promptbook.webgpt.com/cs/write-website-content.ptbk.md@v2.4.15#keywords"`
|
|
189
|
+
*/
|
|
190
|
+
export type string_promptbook_url_with_hashtemplate = string;
|
|
191
|
+
/**
|
|
192
|
+
* Semantic helper
|
|
193
|
+
*
|
|
194
|
+
* For example `"data:text/plain;base64,SGVsbG8sIFdvcmxkIQ=="`
|
|
195
|
+
*/
|
|
196
|
+
export type string_data_url = string;
|
|
197
|
+
/**
|
|
198
|
+
* Semantic helper
|
|
199
|
+
*
|
|
200
|
+
* For example `"https://collboard.com/9SeSQTupmQHwuSrLi"` OR `/9SeSQTupmQHwuSrLi`
|
|
201
|
+
*/
|
|
202
|
+
export type string_href = string;
|
|
203
|
+
/**
|
|
204
|
+
* Semantic helper
|
|
205
|
+
*
|
|
206
|
+
* For example `"https://collboard.com/9SeSQTupmQHwuSrLi.png?width=1200&height=630"`
|
|
207
|
+
*/
|
|
208
|
+
export type string_url_image = string;
|
|
209
|
+
/**
|
|
210
|
+
* Semantic helper
|
|
211
|
+
*
|
|
212
|
+
* For example `"/9SeSQTupmQHwuSrLi"`
|
|
213
|
+
*/
|
|
214
|
+
export type string_uri = string;
|
|
215
|
+
/**
|
|
216
|
+
* Semantic helper
|
|
217
|
+
*
|
|
218
|
+
* For example `"9SeSQTupmQHwuSrLi"`
|
|
219
|
+
*/
|
|
220
|
+
export type string_uri_part = string;
|
|
221
|
+
/**
|
|
222
|
+
* Semantic helper, ID of the board used in URL and API
|
|
223
|
+
*
|
|
224
|
+
* For example `"9SeSQTupmQHwuSrLi"` <- TODO: !! Update
|
|
225
|
+
*/
|
|
226
|
+
export type string_uriid = string_uri_part;
|
|
227
|
+
/**
|
|
228
|
+
* Semantic helper
|
|
229
|
+
*/
|
|
230
|
+
export type string_protocol = 'http:' | 'https:';
|
|
231
|
+
/**
|
|
232
|
+
* Semantic helper
|
|
233
|
+
*
|
|
234
|
+
* For example `"localhost"` or `"collboard.com"`
|
|
235
|
+
*/
|
|
236
|
+
export type string_hostname = string;
|
|
237
|
+
/**
|
|
238
|
+
* Semantic helper
|
|
239
|
+
*
|
|
240
|
+
* For example `"localhost:9977"` or `"collboard.com"`
|
|
241
|
+
*/
|
|
242
|
+
export type string_host = string;
|
|
243
|
+
/**
|
|
244
|
+
* Semantic helper
|
|
245
|
+
*
|
|
246
|
+
* For example `"pavol@hejny.org"`
|
|
247
|
+
*/
|
|
248
|
+
export type string_email = string;
|
|
249
|
+
/**
|
|
250
|
+
* Branded type client id
|
|
251
|
+
*/
|
|
252
|
+
export type client_id = string & {
|
|
253
|
+
readonly _type: 'client_id';
|
|
254
|
+
};
|
|
255
|
+
/**
|
|
256
|
+
* Semantic helper
|
|
257
|
+
*
|
|
258
|
+
* For example `"b126926439c5fcb83609888a11283723c1ef137c0ad599a77a1be81812bd221d"`
|
|
259
|
+
*/
|
|
260
|
+
export type string_sha256 = string;
|
|
261
|
+
/**
|
|
262
|
+
* Semantic helper
|
|
263
|
+
*
|
|
264
|
+
* For example `"4.2.4"`
|
|
265
|
+
*/
|
|
266
|
+
export type string_version = string;
|
|
267
|
+
/**
|
|
268
|
+
* Semantic helper
|
|
269
|
+
*
|
|
270
|
+
* For example `"^4.2.4"`
|
|
271
|
+
*/
|
|
272
|
+
export type string_version_dependency = string;
|
|
273
|
+
/**
|
|
274
|
+
* Semantic helper
|
|
275
|
+
*
|
|
276
|
+
* For example `"png"`
|
|
277
|
+
*/
|
|
278
|
+
export type string_file_extension = string;
|
|
279
|
+
/**
|
|
280
|
+
* Semantic helper
|
|
281
|
+
*
|
|
282
|
+
* For example `"C:/Users/me/work/collboard/modules-sdk/src/colldev/commands/develop/ColldevDevelop.tsx"`
|
|
283
|
+
*/
|
|
284
|
+
export type string_file_absolute_path = string;
|
|
285
|
+
/**
|
|
286
|
+
* Semantic helper
|
|
287
|
+
*
|
|
288
|
+
* For example `"./src/colldev/commands/develop/ColldevDevelop.tsx"`
|
|
289
|
+
*/
|
|
290
|
+
export type string_file_relative_path = string;
|
|
291
|
+
/**
|
|
292
|
+
* Semantic helper
|
|
293
|
+
*/
|
|
294
|
+
export type string_file_path = string_file_absolute_path | string_file_relative_path;
|
|
295
|
+
/**
|
|
296
|
+
* Semantic helper
|
|
297
|
+
*
|
|
298
|
+
* For example `"C:/Users/me/work/collboard/modules-sdk/src/colldev/commands/develop/ColldevDevelop.tsx"`
|
|
299
|
+
*/
|
|
300
|
+
export type string_folder_absolute_path = string;
|
|
301
|
+
/**
|
|
302
|
+
* Semantic helper
|
|
303
|
+
*
|
|
304
|
+
* For example `"./src/colldev/commands/develop/ColldevDevelop.tsx"`
|
|
305
|
+
*/
|
|
306
|
+
export type string_folder_relative_path = string;
|
|
307
|
+
/**
|
|
308
|
+
* Semantic helper
|
|
309
|
+
*/
|
|
310
|
+
export type string_folder_path = string_file_absolute_path | string_file_relative_path;
|
|
311
|
+
/**
|
|
312
|
+
* Semantic helper
|
|
313
|
+
*/
|
|
314
|
+
export type string_filename = string;
|
|
315
|
+
/**
|
|
316
|
+
* Semantic helper
|
|
317
|
+
*
|
|
318
|
+
* For example `"John Smith"`
|
|
319
|
+
*/
|
|
320
|
+
export type string_person_fullname = string;
|
|
321
|
+
/**
|
|
322
|
+
* Semantic helper
|
|
323
|
+
* Full profile of the person with his email and web (like in package.json)
|
|
324
|
+
*
|
|
325
|
+
* For example `"Pavol HejnΓ½ <pavol@hejny.org> (https://pavolhejny.com)"`
|
|
326
|
+
*/
|
|
327
|
+
export type string_person_profile = string;
|
|
328
|
+
/**
|
|
329
|
+
* Semantic helper
|
|
330
|
+
*
|
|
331
|
+
* For example `"MIT"`
|
|
332
|
+
*/
|
|
333
|
+
export type string_license = string;
|
|
334
|
+
/**
|
|
335
|
+
* Semantic helper for attributes
|
|
336
|
+
*
|
|
337
|
+
* - case insensitive
|
|
338
|
+
*
|
|
339
|
+
* For example `"color"`
|
|
340
|
+
*/
|
|
341
|
+
export type string_attribute = string;
|
|
342
|
+
/**
|
|
343
|
+
* Semantic helper for attributes context
|
|
344
|
+
* Each attribute value scope with a attribute name has its own current value
|
|
345
|
+
*
|
|
346
|
+
* - case insensitive
|
|
347
|
+
*
|
|
348
|
+
* For example `"tools"`
|
|
349
|
+
*/
|
|
350
|
+
export type string_attribute_value_scope = string;
|
|
351
|
+
/**
|
|
352
|
+
* Semantic helper for css/html colors
|
|
353
|
+
*
|
|
354
|
+
* For example `"white"` or `"#009edd"`
|
|
355
|
+
*/
|
|
356
|
+
export type string_color = string;
|
|
357
|
+
/**
|
|
358
|
+
* Semantic helper; For example "SHARE_ICON/EDIT_LINK"
|
|
359
|
+
*/
|
|
360
|
+
export type string_translate_name = string;
|
|
361
|
+
/**
|
|
362
|
+
* Semantic helper; For example "ShareIcon/ edit link"
|
|
363
|
+
*/
|
|
364
|
+
export type string_translate_name_not_normalized = string;
|
|
365
|
+
/**
|
|
366
|
+
* Semantic helper; For example "cs" or "en"
|
|
367
|
+
* Implementing ISO 639-1
|
|
368
|
+
*
|
|
369
|
+
* TODO: Probably use enum
|
|
370
|
+
*/
|
|
371
|
+
export type string_translate_language = 'en' | 'cs';
|
|
372
|
+
/**
|
|
373
|
+
* Semantic helper; For example "callbackName" or "renderMe"
|
|
374
|
+
*/
|
|
375
|
+
export type string_javascript_name = string;
|
|
376
|
+
export type string_token = string;
|
|
377
|
+
export type string_license_token = string_token;
|
|
378
|
+
export type string_password = string;
|
|
379
|
+
export type string_ssh_key = string;
|
|
380
|
+
export type string_pgp_key = string;
|
|
381
|
+
/**
|
|
382
|
+
* Semantic helper for `Date.toISOString()` result
|
|
383
|
+
*
|
|
384
|
+
* @example "2011-10-05T14:48:00.000Z".
|
|
385
|
+
* @see https://en.wikipedia.org/wiki/ISO_8601
|
|
386
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString
|
|
387
|
+
*/
|
|
388
|
+
export type string_date_iso8601 = `${number}-${number}-${number}${string}${number}:${number}:${number}${string}`;
|
|
389
|
+
/**
|
|
390
|
+
* Semantic helper for US Dollars
|
|
391
|
+
*/
|
|
392
|
+
export type number_usd = number;
|
|
393
|
+
/**
|
|
394
|
+
* Semantic helper for number of tokens
|
|
395
|
+
*/
|
|
396
|
+
export type number_tokens = number_integer & number_positive_or_zero;
|
|
397
|
+
export type number_positive = number;
|
|
398
|
+
export type number_negative = number;
|
|
399
|
+
export type number_positive_or_zero = number;
|
|
400
|
+
export type number_negative_or_zero = number;
|
|
401
|
+
export type number_integer = number;
|
|
402
|
+
/**
|
|
403
|
+
* Semantic helper;
|
|
404
|
+
* Percentage from 0 to 1 (100%)
|
|
405
|
+
*/
|
|
406
|
+
export type number_percent = number;
|
|
407
|
+
/**
|
|
408
|
+
* Likeness of the wallpaper
|
|
409
|
+
*
|
|
410
|
+
* - π is eqivalent for 1
|
|
411
|
+
* - π is eqivalent for -1
|
|
412
|
+
* - β€ is eqivalent for more than 1
|
|
413
|
+
* - etc
|
|
414
|
+
*/
|
|
415
|
+
export type number_likeness = number;
|
|
416
|
+
export type number_miliseconds = number_integer;
|
|
417
|
+
export type number_seconds = number;
|
|
418
|
+
export type number_minutes = number;
|
|
419
|
+
export type number_hours = number;
|
|
420
|
+
export type number_days = number;
|
|
421
|
+
export type number_weeks = number;
|
|
422
|
+
export type number_months = number;
|
|
423
|
+
export type number_years = number;
|
|
424
|
+
export type number_bytes = number_integer & number_positive;
|
|
425
|
+
export type number_kilobytes = number_positive;
|
|
426
|
+
export type number_megabytes = number_positive;
|
|
427
|
+
export type number_gigabytes = number_positive;
|
|
428
|
+
export type number_terabytes = number_positive;
|
|
429
|
+
/**
|
|
430
|
+
* TODO: !! Cleanup
|
|
431
|
+
* TODO: !! Change to branded types
|
|
432
|
+
*/
|