@isdk/ai-tool 0.8.2 → 0.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunk-BIJ2JH4U.mjs +1 -0
- package/dist/chunk-OYMVHUDZ.mjs +1 -0
- package/dist/funcs.d.mts +16 -5
- package/dist/funcs.d.ts +16 -5
- package/dist/funcs.js +1 -1
- package/dist/funcs.mjs +1 -1
- package/dist/index.d.mts +839 -563
- package/dist/index.d.ts +839 -563
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/dist/test/util.d.mts +1 -1
- package/dist/test/util.d.ts +1 -1
- package/dist/test/util.js +1 -1
- package/dist/test/util.mjs +1 -1
- package/docs/api/@isdk/namespaces/ClientTools/README.md +11 -0
- package/docs/api/@isdk/namespaces/ClientTools/functions/get.md +27 -0
- package/docs/api/@isdk/namespaces/EventStates/variables/ABORT.md +1 -1
- package/docs/api/@isdk/namespaces/EventStates/variables/CONTINUE.md +1 -1
- package/docs/api/@isdk/namespaces/EventStates/variables/DONE.md +1 -1
- package/docs/api/@isdk/namespaces/EventStates/variables/STOPPED.md +1 -1
- package/docs/api/classes/BinarySemaphore.md +148 -67
- package/docs/api/classes/CancelableAbility.md +95 -43
- package/docs/api/classes/ClientToolTransport.md +31 -16
- package/docs/api/classes/ClientTools.md +868 -158
- package/docs/api/classes/CmdArgLexer.md +82 -0
- package/docs/api/classes/CmdArgParser.md +56 -0
- package/docs/api/classes/ConfigFile.md +6 -6
- package/docs/api/classes/EnvPromptTemplate.md +224 -52
- package/docs/api/classes/EventClient.md +902 -192
- package/docs/api/classes/EventEmitter.md +62 -12
- package/docs/api/classes/EventServer.md +895 -182
- package/docs/api/classes/EventToolFunc.md +801 -123
- package/docs/api/classes/FStringPromptTemplate.md +224 -52
- package/docs/api/classes/FewShotPromptTemplate.md +231 -59
- package/docs/api/classes/GolangPromptTemplate.md +224 -52
- package/docs/api/classes/HttpClientToolTransport.md +33 -19
- package/docs/api/classes/HttpServerToolTransport.md +15 -15
- package/docs/api/classes/IntSet.md +21 -21
- package/docs/api/classes/MailboxClientTransport.md +398 -0
- package/docs/api/classes/MailboxServerTransport.md +433 -0
- package/docs/api/classes/PromptExampleSelector.md +11 -11
- package/docs/api/classes/PromptTemplate.md +199 -51
- package/docs/api/classes/ReadableStreamError.md +2 -2
- package/docs/api/classes/ResClientTools.md +875 -165
- package/docs/api/classes/ResServerTools.md +869 -156
- package/docs/api/classes/RpcMethodsClientTool.md +870 -160
- package/docs/api/classes/RpcMethodsServerTool.md +865 -152
- package/docs/api/classes/SSEChannel.md +23 -23
- package/docs/api/classes/Semaphore.md +148 -76
- package/docs/api/classes/ServerToolTransport.md +14 -13
- package/docs/api/classes/ServerTools.md +854 -138
- package/docs/api/classes/SignalGate.md +12 -12
- package/docs/api/classes/SseClientPubSubTransport.md +4 -4
- package/docs/api/classes/SseServerPubSubTransport.md +13 -13
- package/docs/api/classes/TaskAbortController.md +33 -11
- package/docs/api/classes/ToolFunc.md +725 -119
- package/docs/api/classes/ToolTransport.md +7 -7
- package/docs/api/classes/YamlTypeBaseObject.md +2 -2
- package/docs/api/enumerations/AsyncFeatureBits.md +4 -4
- package/docs/api/enumerations/AsyncFeatures.md +4 -4
- package/docs/api/enumerations/CmdArgTokenType.md +129 -0
- package/docs/api/enumerations/HashAlgorithm.md +38 -12
- package/docs/api/functions/AIArgProcessor.md +8 -17
- package/docs/api/functions/AIStream.md +1 -1
- package/docs/api/functions/ChoiceArgProcessor.md +13 -15
- package/docs/api/functions/DefaultDateFormat.md +1 -1
- package/docs/api/functions/ObjectArgsToArgsInfo.md +11 -9
- package/docs/api/functions/RateLimit.md +33 -6
- package/docs/api/functions/TemplateArgProcessor.md +13 -15
- package/docs/api/functions/assignDirs.md +1 -1
- package/docs/api/functions/beforeShutdown.md +3 -3
- package/docs/api/functions/calcPerplexity.md +3 -3
- package/docs/api/functions/calcPerplexitySimple.md +3 -3
- package/docs/api/functions/cmdArgEvaluate.md +28 -0
- package/docs/api/functions/cmdArgsToMergedObject.md +34 -0
- package/docs/api/functions/completeSentences.md +1 -1
- package/docs/api/functions/concatText.md +1 -1
- package/docs/api/functions/countLLMTokens.md +1 -1
- package/docs/api/functions/countRegexMatches.md +1 -1
- package/docs/api/functions/createCallbacksTransformer.md +23 -19
- package/docs/api/functions/createEmptyReadableStream.md +1 -1
- package/docs/api/functions/createEndWithRepetitionDetector.md +4 -4
- package/docs/api/functions/createEventStreamTransformer.md +1 -1
- package/docs/api/functions/createHfValueFunc.md +1 -1
- package/docs/api/functions/createLRUCache.md +1 -1
- package/docs/api/functions/createYamlObjectTag.md +1 -1
- package/docs/api/functions/dateToText.md +1 -1
- package/docs/api/functions/decodeCharset.md +1 -1
- package/docs/api/functions/defaultsWithConcat.md +1 -1
- package/docs/api/functions/detectCharset.md +1 -1
- package/docs/api/functions/encodeLLMTokens.md +1 -1
- package/docs/api/functions/ensureQuoted.md +3 -1
- package/docs/api/functions/evaluateExpression.md +40 -0
- package/docs/api/functions/eventable.md +1 -1
- package/docs/api/functions/expandConfig.md +1 -1
- package/docs/api/functions/expandEnv.md +1 -1
- package/docs/api/functions/expandObjEnv.md +1 -1
- package/docs/api/functions/expandPath.md +1 -1
- package/docs/api/functions/expandPathInObject.md +1 -1
- package/docs/api/functions/expandPaths.md +1 -1
- package/docs/api/functions/extNameLevel.md +1 -1
- package/docs/api/functions/extractCodeBlock.md +51 -0
- package/docs/api/functions/fileIsExists.md +3 -3
- package/docs/api/functions/filterValidFnScope.md +3 -3
- package/docs/api/functions/findIndexNonEmptyFrom.md +1 -1
- package/docs/api/functions/findPort.md +13 -5
- package/docs/api/functions/formatTextWithSpace.md +1 -1
- package/docs/api/functions/funcGetMeta.md +1 -1
- package/docs/api/functions/funcWithMeta.md +4 -4
- package/docs/api/functions/genUrlParamsStr.md +1 -1
- package/docs/api/functions/getAllEnumKeys.md +1 -1
- package/docs/api/functions/getConfigFileNames.md +1 -1
- package/docs/api/functions/getConfigs.md +1 -1
- package/docs/api/functions/getEnvVairables.md +1 -1
- package/docs/api/functions/getFileMetaInfo.md +1 -1
- package/docs/api/functions/getHashAlgoBySize.md +1 -1
- package/docs/api/functions/getKeysPath.md +1 -1
- package/docs/api/functions/getLLMTokenizer.md +1 -1
- package/docs/api/functions/getMultiLevelExtname.md +1 -1
- package/docs/api/functions/getPackageDir.md +1 -1
- package/docs/api/functions/getRealFilepath.md +1 -1
- package/docs/api/functions/getResponseErrorReadableStream.md +2 -2
- package/docs/api/functions/getXDGConfigs.md +1 -1
- package/docs/api/functions/hasDirectoryIn.md +3 -3
- package/docs/api/functions/hash.md +25 -4
- package/docs/api/functions/hashFile.md +1 -1
- package/docs/api/functions/hashObject.md +23 -1
- package/docs/api/functions/hashStream.md +25 -4
- package/docs/api/functions/initShutdown.md +1 -1
- package/docs/api/functions/isIdentifier.md +30 -0
- package/docs/api/functions/isLangUsingSpaces.md +1 -1
- package/docs/api/functions/isListItemString.md +3 -3
- package/docs/api/functions/isModelNameMatched.md +3 -3
- package/docs/api/functions/isPathIdentifier.md +23 -0
- package/docs/api/functions/isPunctuationChar.md +1 -1
- package/docs/api/functions/isQuoted.md +4 -1
- package/docs/api/functions/isRegExp.md +20 -1
- package/docs/api/functions/isSameString.md +1 -1
- package/docs/api/functions/isSectionString.md +3 -3
- package/docs/api/functions/isSentenceEnding.md +1 -1
- package/docs/api/functions/isSepLineString.md +3 -3
- package/docs/api/functions/isStrWrapped.md +3 -1
- package/docs/api/functions/isSubdirectory.md +1 -1
- package/docs/api/functions/isTitleString.md +3 -3
- package/docs/api/functions/isValidFilename.md +1 -1
- package/docs/api/functions/isValidFilepath.md +1 -1
- package/docs/api/functions/isWebStream.md +1 -1
- package/docs/api/functions/joinSplitWords.md +1 -1
- package/docs/api/functions/jsonFilterToWhere.md +1 -1
- package/docs/api/functions/jsonToMarkdownStr.md +1 -1
- package/docs/api/functions/loadAIConfig.md +1 -1
- package/docs/api/functions/loadConfig.md +1 -1
- package/docs/api/functions/loadConfigFile.md +1 -1
- package/docs/api/functions/loadFileFromPaths.md +1 -1
- package/docs/api/functions/loadTextFromPaths.md +1 -1
- package/docs/api/functions/lrucache.md +1 -1
- package/docs/api/functions/matchUrlProtocol.md +3 -3
- package/docs/api/functions/memoize.md +1 -1
- package/docs/api/functions/mergeArray.md +1 -1
- package/docs/api/functions/messagesToText.md +1 -1
- package/docs/api/functions/normalizePath.md +1 -1
- package/docs/api/functions/paramsSizeToScaleStr.md +1 -1
- package/docs/api/functions/parseCommand.md +21 -4
- package/docs/api/functions/parseJsJson.md +1 -1
- package/docs/api/functions/parseJsJsonSimpleSync.md +1 -1
- package/docs/api/functions/parseObjectArguments.md +17 -33
- package/docs/api/functions/parseYaml.md +1 -1
- package/docs/api/functions/prependNewlineIfMultiline.md +39 -0
- package/docs/api/functions/pruneSubdirectories.md +1 -1
- package/docs/api/functions/pruneSubdirectoriesInPlace.md +1 -1
- package/docs/api/functions/quoteStr.md +4 -1
- package/docs/api/functions/readFilenamesRecursiveSync.md +1 -1
- package/docs/api/functions/readTextFileChunks.md +1 -1
- package/docs/api/functions/readTextFileChunksEx.md +1 -1
- package/docs/api/functions/readableFromAsyncIterable.md +1 -1
- package/docs/api/functions/registerCoreTools.md +1 -1
- package/docs/api/functions/registerYamlTag.md +2 -2
- package/docs/api/functions/removeMarkdownBold.md +1 -1
- package/docs/api/functions/removeMarkdownBoldAndItalic.md +1 -1
- package/docs/api/functions/removeMarkdownItalic.md +1 -1
- package/docs/api/functions/replaceWithPlaceholder.md +3 -18
- package/docs/api/functions/restoreFromPlacehoders.md +2 -20
- package/docs/api/functions/sanitizeFilename.md +1 -1
- package/docs/api/functions/sanitizeFilepath.md +1 -1
- package/docs/api/functions/saveConfigFile.md +1 -1
- package/docs/api/functions/scaleStrToParamsSize.md +1 -1
- package/docs/api/functions/shutdown.md +2 -2
- package/docs/api/functions/simplifyObjectArguments.md +4 -1
- package/docs/api/functions/simplifyResult.md +34 -0
- package/docs/api/functions/sleep.md +1 -1
- package/docs/api/functions/sortedValues.md +1 -1
- package/docs/api/functions/splitChunks.md +1 -1
- package/docs/api/functions/splitParagraph.md +1 -1
- package/docs/api/functions/splitSentence.md +1 -1
- package/docs/api/functions/splitWords.md +1 -1
- package/docs/api/functions/stringifyYaml.md +1 -1
- package/docs/api/functions/stripConsoleColor.md +1 -1
- package/docs/api/functions/textToDate.md +1 -1
- package/docs/api/functions/textify.md +43 -0
- package/docs/api/functions/toDateTime.md +3 -3
- package/docs/api/functions/toRegExp.md +1 -1
- package/docs/api/functions/trimStartOfStreamHelper.md +1 -1
- package/docs/api/functions/truncTo.md +1 -1
- package/docs/api/functions/truncateByToken.md +1 -1
- package/docs/api/functions/truncateToTokenLimit.md +1 -1
- package/docs/api/functions/truncateToTokenLimitEx.md +1 -1
- package/docs/api/functions/uuid.md +1 -1
- package/docs/api/functions/wrapEventEmitter.md +1 -1
- package/docs/api/functions/wrapFlagValue.md +29 -0
- package/docs/api/functions/xxhash.md +27 -6
- package/docs/api/functions/xxhash32.md +22 -4
- package/docs/api/functions/xxhash64.md +22 -4
- package/docs/api/functions/xxhashAsStr.md +27 -6
- package/docs/api/functions/yieldExec.md +1 -1
- package/docs/api/globals.md +51 -18
- package/docs/api/interfaces/AIChatAssistantMessageParam.md +14 -14
- package/docs/api/interfaces/AIChatContentPartBase.md +26 -0
- package/docs/api/interfaces/AIChatContentPartImage.md +15 -3
- package/docs/api/interfaces/AIChatContentPartText.md +15 -3
- package/docs/api/interfaces/AIChatMessageParamBase.md +9 -9
- package/docs/api/interfaces/AIChatMessageToolCall.md +12 -8
- package/docs/api/interfaces/AIChatSystemMessageParam.md +10 -10
- package/docs/api/interfaces/AIChatToolChoiceFuncObject.md +3 -3
- package/docs/api/interfaces/AIChatToolChoiceObject.md +2 -2
- package/docs/api/interfaces/AIChatToolDefinition.md +45 -0
- package/docs/api/interfaces/AIChatToolFunc.md +5 -5
- package/docs/api/interfaces/AIChatToolFuncParam.md +3 -3
- package/docs/api/interfaces/AIChatToolMessageParam.md +13 -13
- package/docs/api/interfaces/AIChatToolParam.md +2 -2
- package/docs/api/interfaces/AIChatToolTypeObject.md +2 -2
- package/docs/api/interfaces/AIChatUserMessageParam.md +14 -14
- package/docs/api/interfaces/AIResult.md +7 -7
- package/docs/api/interfaces/AIStreamParser.md +2 -2
- package/docs/api/interfaces/AIStreamParserOptions.md +2 -2
- package/docs/api/interfaces/BaseFunc.md +15 -15
- package/docs/api/interfaces/BaseFuncItem.md +16 -16
- package/docs/api/interfaces/BinarySemaphoreAcquireOptions.md +9 -2
- package/docs/api/interfaces/BinarySemaphoreOptions.md +22 -5
- package/docs/api/interfaces/BinarySemaphoreReleaseOptions.md +7 -5
- package/docs/api/interfaces/CancelableAbilityOptions.md +4 -4
- package/docs/api/interfaces/ClientFuncItem.md +70 -19
- package/docs/api/interfaces/CmdArgAIChoiceConfig.md +97 -0
- package/docs/api/interfaces/CmdArgArgsInfo.md +31 -0
- package/docs/api/interfaces/CmdArgContext.md +103 -0
- package/docs/api/interfaces/CmdArgFlagMetadata.md +21 -0
- package/docs/api/interfaces/CmdArgMapResult.md +41 -0
- package/docs/api/interfaces/CmdArgParseResult.md +51 -0
- package/docs/api/interfaces/CmdArgParsedCommand.md +41 -0
- package/docs/api/interfaces/CmdArgParserOptions.md +225 -0
- package/docs/api/interfaces/CmdArgProcessorResultOptions.md +22 -0
- package/docs/api/interfaces/CmdArgSimplifyOptions.md +101 -0
- package/docs/api/interfaces/CmdArgToken.md +51 -0
- package/docs/api/interfaces/EventClientFuncParams.md +5 -5
- package/docs/api/interfaces/EventServerFuncParams.md +21 -7
- package/docs/api/interfaces/FewShotPromptTemplateOptions.md +18 -6
- package/docs/api/interfaces/FuncItem.md +19 -15
- package/docs/api/interfaces/FuncParam.md +5 -5
- package/docs/api/interfaces/FuncParams.md +1 -1
- package/docs/api/interfaces/Funcs.md +1 -1
- package/docs/api/interfaces/HashAlgoParams.md +36 -5
- package/docs/api/interfaces/IClientToolTransport.md +24 -10
- package/docs/api/interfaces/IFileMetaInfo.md +8 -8
- package/docs/api/interfaces/IPubSubClientTransport.md +4 -4
- package/docs/api/interfaces/IPubSubServerTransport.md +14 -14
- package/docs/api/interfaces/IReadTextFileChunksOptions.md +11 -11
- package/docs/api/interfaces/IServerToolTransport.md +8 -8
- package/docs/api/interfaces/IToolTransport.md +5 -5
- package/docs/api/interfaces/ITruncateToTokenLimitOptions.md +10 -10
- package/docs/api/interfaces/JsonFilter.md +1 -1
- package/docs/api/interfaces/MailboxClientOptions.md +74 -0
- package/docs/api/interfaces/MailboxServerOptions.md +69 -0
- package/docs/api/interfaces/ProbabilityItem.md +4 -4
- package/docs/api/interfaces/PromptExampleSelectorOptions.md +3 -3
- package/docs/api/interfaces/PromptTemplateOptions.md +8 -0
- package/docs/api/interfaces/PubSubClientStream.md +11 -11
- package/docs/api/interfaces/PubSubServerSession.md +8 -8
- package/docs/api/interfaces/RegisterOptions.md +298 -0
- package/docs/api/interfaces/RemoteFuncItem.md +63 -20
- package/docs/api/interfaces/ReplacePlacehoderOptions.md +5 -5
- package/docs/api/interfaces/ResClientFuncParams.md +3 -3
- package/docs/api/interfaces/ResServerFuncParams.md +20 -6
- package/docs/api/interfaces/RpcMethodsClientFuncParams.md +2 -2
- package/docs/api/interfaces/RpcMethodsServerFuncParams.md +18 -4
- package/docs/api/interfaces/SanitizeFilenameOptions.md +3 -3
- package/docs/api/interfaces/SectionStringOptions.md +3 -3
- package/docs/api/interfaces/SemaphoreOptions.md +30 -7
- package/docs/api/interfaces/SemaphoreTaskItem.md +18 -5
- package/docs/api/interfaces/ServerFuncItem.md +71 -20
- package/docs/api/interfaces/ServerFuncParams.md +14 -4
- package/docs/api/interfaces/SplitSentenceOptions.md +5 -5
- package/docs/api/interfaces/StreamCallbacksAndOptions.md +80 -7
- package/docs/api/interfaces/TaskAbortControllers.md +2 -2
- package/docs/api/interfaces/TaskPromise.md +6 -6
- package/docs/api/interfaces/TextifyInlineOptions.md +51 -0
- package/docs/api/interfaces/TextifyOptions.md +108 -0
- package/docs/api/interfaces/ToolFuncContext.md +73 -0
- package/docs/api/interfaces/ToolFuncPackage.md +4 -4
- package/docs/api/interfaces/ToolFuncRegistryIsolateOptions.md +41 -0
- package/docs/api/interfaces/UnregisterOptions.md +56 -0
- package/docs/api/type-aliases/AIChatContentPart.md +2 -2
- package/docs/api/type-aliases/AIChatMessageParam.md +1 -1
- package/docs/api/type-aliases/AIChatRole.md +2 -2
- package/docs/api/type-aliases/AIChatTemplateCaps.md +239 -0
- package/docs/api/type-aliases/AIChatToolChoiceParam.md +1 -1
- package/docs/api/type-aliases/AIMessageType.md +1 -1
- package/docs/api/type-aliases/AIModelNameRule.md +1 -1
- package/docs/api/type-aliases/AIModelNameRuleFn.md +1 -1
- package/docs/api/type-aliases/AIModelNameRules.md +1 -1
- package/docs/api/type-aliases/AITextGenerationFinishReason.md +1 -1
- package/docs/api/type-aliases/ActionName.md +1 -1
- package/docs/api/type-aliases/ArgProcessor.md +24 -0
- package/docs/api/type-aliases/ArrayMergeWay.md +1 -1
- package/docs/api/type-aliases/AsyncTaskId.md +1 -1
- package/docs/api/type-aliases/BeforeShutdownListener.md +1 -1
- package/docs/api/type-aliases/CmdArgFlagValue.md +14 -0
- package/docs/api/type-aliases/CmdArgFlagsRecord.md +13 -0
- package/docs/api/type-aliases/EventErrorListenerFn.md +1 -1
- package/docs/api/type-aliases/EventListenerFn.md +1 -1
- package/docs/api/type-aliases/FuncParamType.md +1 -1
- package/docs/api/type-aliases/PromptExamples.md +1 -1
- package/docs/api/type-aliases/PubSubClientId.md +1 -1
- package/docs/api/type-aliases/PubSubCtx.md +6 -6
- package/docs/api/type-aliases/RpcMethodHandler.md +1 -1
- package/docs/api/type-aliases/SSEClient.md +5 -5
- package/docs/api/type-aliases/SemaphoreIsReadyFuncType.md +4 -1
- package/docs/api/type-aliases/SimplifiedResultType.md +14 -0
- package/docs/api/type-aliases/StreamCloseStatus.md +16 -0
- package/docs/api/type-aliases/TFunc.md +1 -1
- package/docs/api/type-aliases/TextifyInlineStyleMode.md +16 -0
- package/docs/api/type-aliases/TextifyStringQuoting.md +16 -0
- package/docs/api/type-aliases/UUIDVersions.md +3 -1
- package/docs/api/variables/AIChatRoles.md +2 -2
- package/docs/api/variables/AIMessageTypes.md +1 -1
- package/docs/api/variables/AITextGenerationFinishReasons.md +1 -1
- package/docs/api/variables/ActionNames.md +1 -1
- package/docs/api/variables/ArrayMergeWay.md +1 -1
- package/docs/api/variables/ArrayMergeWaySymbol.md +1 -1
- package/docs/api/variables/CMD_ARG_FLAG_SYMBOL.md +21 -0
- package/docs/api/variables/CMD_ARG_PROCESSOR_RESULT.md +22 -0
- package/docs/api/variables/CMD_ARG_UNRESOLVED_SYMBOL.md +16 -0
- package/docs/api/variables/ClientEventPrefix.md +2 -2
- package/docs/api/variables/ClientToolFuncSchema.md +27 -17
- package/docs/api/variables/DEFAULT_CONFIG_NAME.md +1 -1
- package/docs/api/variables/DefaultAsyncSemaphoreCapacity.md +4 -1
- package/docs/api/variables/EventBusName.md +2 -2
- package/docs/api/variables/EventName.md +2 -2
- package/docs/api/variables/FilenameReservedRegex.md +1 -1
- package/docs/api/variables/FuncMetaSymbol.md +2 -2
- package/docs/api/variables/IDENTIFIER_REGEX.md +14 -0
- package/docs/api/variables/LLM_TOKENIZER_NAMES.md +1 -1
- package/docs/api/variables/LLM_TOKENIZER_NAMES_MAP.md +1 -1
- package/docs/api/variables/PASSING_SCORE.md +1 -1
- package/docs/api/variables/PATH_IDENTIFIER_REGEX.md +13 -0
- package/docs/api/variables/RESERVED_WORDS.md +13 -0
- package/docs/api/variables/RStreamErrCode.md +1 -1
- package/docs/api/variables/RemoteToolFuncSchema.md +36 -4
- package/docs/api/variables/ResponseRStreamErrCode.md +1 -1
- package/docs/api/variables/RpcMethodsClientToolSchema.md +2 -2
- package/docs/api/variables/RpcMethodsServerToolSchema.md +2 -2
- package/docs/api/variables/SHUTDOWN_SIGNALS.md +1 -1
- package/docs/api/variables/SSEChannelAlreadyClosedErrCode.md +1 -1
- package/docs/api/variables/SecondaryCache.md +1 -1
- package/docs/api/variables/ServerToolFuncSchema.md +27 -17
- package/docs/api/variables/StrangeHumanName.md +1 -1
- package/docs/api/variables/ToolAsyncCancelableBit.md +1 -1
- package/docs/api/variables/ToolAsyncMultiTaskBit.md +1 -1
- package/docs/api/variables/ToolAsyncPriorityBit.md +1 -1
- package/docs/api/variables/ToolFuncSchema.md +13 -13
- package/docs/api/variables/WindowsReservedNameRegex.md +1 -1
- package/docs/api/variables/backendEventable.md +23 -3
- package/docs/api/variables/base32768.md +2 -2
- package/docs/api/variables/event.md +1 -1
- package/docs/api/variables/eventClient.md +1 -1
- package/docs/api/variables/eventServer.md +1 -1
- package/docs/api/variables/lrucache.md +1 -1
- package/docs/api/variables/makeToolFuncCancelable.md +23 -3
- package/docs/api/variables/wait.md +1 -1
- package/docs/transport.dev.md +206 -0
- package/package.json +12 -10
- package/dist/chunk-4FKBOPZI.mjs +0 -1
- package/dist/chunk-TGTHY57V.mjs +0 -1
- package/dist/find-port-qS1CZ9c-.d.mts +0 -3
- package/dist/find-port-qS1CZ9c-.d.ts +0 -3
- package/dist/index-BLW3R7VS.d.mts +0 -1826
- package/dist/index-BLW3R7VS.d.ts +0 -1826
- package/docs/api/@isdk/namespaces/uuidv5/README.md +0 -12
- package/docs/api/@isdk/namespaces/uuidv5/variables/DNS.md +0 -11
- package/docs/api/@isdk/namespaces/uuidv5/variables/URL.md +0 -11
- package/docs/api/functions/nanoid.md +0 -45
- package/docs/api/functions/parseObjectArgInfo.md +0 -33
- package/docs/api/functions/parseObjectArgumentInfos.md +0 -29
- package/docs/api/functions/parseObjectArgumentsAsArgInfos.md +0 -46
- package/docs/api/functions/uuidParse.md +0 -21
- package/docs/api/functions/uuidStringify.md +0 -25
- package/docs/api/functions/uuidValidate.md +0 -21
- package/docs/api/functions/uuidVersion.md +0 -21
- package/docs/api/functions/uuidv1.md +0 -61
- package/docs/api/functions/uuidv4.md +0 -61
- package/docs/api/functions/uuidv5.md +0 -69
- package/docs/api/functions/uuidv6.md +0 -61
- package/docs/api/functions/uuidv7.md +0 -61
- package/docs/api/interfaces/AIChoiceConfig.md +0 -65
- package/docs/api/interfaces/BinarySemaphoreReleaserFunc.md +0 -37
- package/docs/api/interfaces/ParseObjectArgumentOptions.md +0 -89
- package/docs/api/variables/uuidNIL.md +0 -11
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
# Interface: IClientToolTransport
|
|
8
8
|
|
|
9
|
-
Defined in:
|
|
9
|
+
Defined in: @isdk/ai-tools/packages/tool-rpc/dist/index-359784IS.d.ts:148
|
|
10
10
|
|
|
11
11
|
Defines the public interface for a client-side transport,
|
|
12
12
|
responsible for communicating with a ServerTransport.
|
|
@@ -25,7 +25,7 @@ responsible for communicating with a ServerTransport.
|
|
|
25
25
|
|
|
26
26
|
> **apiRoot**: `string`
|
|
27
27
|
|
|
28
|
-
Defined in:
|
|
28
|
+
Defined in: @isdk/ai-tools/packages/tool-rpc/dist/index-359784IS.d.ts:127
|
|
29
29
|
|
|
30
30
|
The root endpoint for the remote service.
|
|
31
31
|
For HTTP, this is a URL. For IPC, it could be a channel name.
|
|
@@ -40,7 +40,7 @@ For HTTP, this is a URL. For IPC, it could be a channel name.
|
|
|
40
40
|
|
|
41
41
|
> `optional` **options**: `any`
|
|
42
42
|
|
|
43
|
-
Defined in:
|
|
43
|
+
Defined in: @isdk/ai-tools/packages/tool-rpc/dist/index-359784IS.d.ts:131
|
|
44
44
|
|
|
45
45
|
Additional options for the transport start or fetch, passed by mount.
|
|
46
46
|
|
|
@@ -54,7 +54,7 @@ Additional options for the transport start or fetch, passed by mount.
|
|
|
54
54
|
|
|
55
55
|
> **Tools**: *typeof* [`ToolFunc`](../classes/ToolFunc.md)
|
|
56
56
|
|
|
57
|
-
Defined in:
|
|
57
|
+
Defined in: @isdk/ai-tools/packages/tool-rpc/dist/index-359784IS.d.ts:122
|
|
58
58
|
|
|
59
59
|
#### Inherited from
|
|
60
60
|
|
|
@@ -64,9 +64,9 @@ Defined in: [@isdk/ai-tools/packages/ai-tool/src/transports/base.ts:17](https://
|
|
|
64
64
|
|
|
65
65
|
### fetch()
|
|
66
66
|
|
|
67
|
-
> **fetch**(`name`, `args?`, `act?`, `subName?`, `options?`): `any`
|
|
67
|
+
> **fetch**(`name`, `args?`, `act?`, `subName?`, `options?`, `toolTimeout?`): `any`
|
|
68
68
|
|
|
69
|
-
Defined in:
|
|
69
|
+
Defined in: @isdk/ai-tools/packages/tool-rpc/dist/index-359784IS.d.ts:166
|
|
70
70
|
|
|
71
71
|
Fetches data from the server.
|
|
72
72
|
|
|
@@ -102,6 +102,12 @@ The name of the sub-resource to fetch.
|
|
|
102
102
|
|
|
103
103
|
Additional options for the fetch call.
|
|
104
104
|
|
|
105
|
+
##### toolTimeout?
|
|
106
|
+
|
|
107
|
+
`any`
|
|
108
|
+
|
|
109
|
+
Optional timeout from tool metadata.
|
|
110
|
+
|
|
105
111
|
#### Returns
|
|
106
112
|
|
|
107
113
|
`any`
|
|
@@ -112,12 +118,20 @@ A promise that resolves with the fetched data.
|
|
|
112
118
|
|
|
113
119
|
### loadApis()
|
|
114
120
|
|
|
115
|
-
> **loadApis**(): `Promise`\<[`Funcs`](Funcs.md)\>
|
|
121
|
+
> **loadApis**(`options?`): `Promise`\<[`Funcs`](Funcs.md)\>
|
|
116
122
|
|
|
117
|
-
Defined in:
|
|
123
|
+
Defined in: @isdk/ai-tools/packages/tool-rpc/dist/index-359784IS.d.ts:154
|
|
118
124
|
|
|
119
125
|
Connects to the server's discovery endpoint to get the list of available tools.
|
|
120
126
|
|
|
127
|
+
#### Parameters
|
|
128
|
+
|
|
129
|
+
##### options?
|
|
130
|
+
|
|
131
|
+
`any`
|
|
132
|
+
|
|
133
|
+
Additional options for the discovery call.
|
|
134
|
+
|
|
121
135
|
#### Returns
|
|
122
136
|
|
|
123
137
|
`Promise`\<[`Funcs`](Funcs.md)\>
|
|
@@ -130,13 +144,13 @@ A promise that resolves to a map of tool function metadata.
|
|
|
130
144
|
|
|
131
145
|
> **mount**(`clientTools`, `apiPrefix?`, `options?`): `any`
|
|
132
146
|
|
|
133
|
-
Defined in:
|
|
147
|
+
Defined in: @isdk/ai-tools/packages/tool-rpc/dist/index-359784IS.d.ts:155
|
|
134
148
|
|
|
135
149
|
#### Parameters
|
|
136
150
|
|
|
137
151
|
##### clientTools
|
|
138
152
|
|
|
139
|
-
*typeof* [`ClientTools`](
|
|
153
|
+
*typeof* [`ClientTools`](../@isdk/namespaces/ClientTools/README.md)
|
|
140
154
|
|
|
141
155
|
##### apiPrefix?
|
|
142
156
|
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
# Interface: IFileMetaInfo
|
|
8
8
|
|
|
9
|
-
Defined in: [@isdk/ai-tools/packages/ai-tool/src/utils/load-file-from-paths.ts:225](https://github.com/isdk/ai-tool.js/blob/
|
|
9
|
+
Defined in: [@isdk/ai-tools/packages/ai-tool/src/utils/load-file-from-paths.ts:225](https://github.com/isdk/ai-tool.js/blob/d10fb4cda65fc1975152a2c3ab327ecab008dea1/src/utils/load-file-from-paths.ts#L225)
|
|
10
10
|
|
|
11
11
|
## Properties
|
|
12
12
|
|
|
@@ -14,7 +14,7 @@ Defined in: [@isdk/ai-tools/packages/ai-tool/src/utils/load-file-from-paths.ts:2
|
|
|
14
14
|
|
|
15
15
|
> **ctime**: `Date`
|
|
16
16
|
|
|
17
|
-
Defined in: [@isdk/ai-tools/packages/ai-tool/src/utils/load-file-from-paths.ts:228](https://github.com/isdk/ai-tool.js/blob/
|
|
17
|
+
Defined in: [@isdk/ai-tools/packages/ai-tool/src/utils/load-file-from-paths.ts:228](https://github.com/isdk/ai-tool.js/blob/d10fb4cda65fc1975152a2c3ab327ecab008dea1/src/utils/load-file-from-paths.ts#L228)
|
|
18
18
|
|
|
19
19
|
***
|
|
20
20
|
|
|
@@ -22,7 +22,7 @@ Defined in: [@isdk/ai-tools/packages/ai-tool/src/utils/load-file-from-paths.ts:2
|
|
|
22
22
|
|
|
23
23
|
> **hash**: `string`
|
|
24
24
|
|
|
25
|
-
Defined in: [@isdk/ai-tools/packages/ai-tool/src/utils/load-file-from-paths.ts:230](https://github.com/isdk/ai-tool.js/blob/
|
|
25
|
+
Defined in: [@isdk/ai-tools/packages/ai-tool/src/utils/load-file-from-paths.ts:230](https://github.com/isdk/ai-tool.js/blob/d10fb4cda65fc1975152a2c3ab327ecab008dea1/src/utils/load-file-from-paths.ts#L230)
|
|
26
26
|
|
|
27
27
|
***
|
|
28
28
|
|
|
@@ -30,7 +30,7 @@ Defined in: [@isdk/ai-tools/packages/ai-tool/src/utils/load-file-from-paths.ts:2
|
|
|
30
30
|
|
|
31
31
|
> **id**: `string`
|
|
32
32
|
|
|
33
|
-
Defined in: [@isdk/ai-tools/packages/ai-tool/src/utils/load-file-from-paths.ts:232](https://github.com/isdk/ai-tool.js/blob/
|
|
33
|
+
Defined in: [@isdk/ai-tools/packages/ai-tool/src/utils/load-file-from-paths.ts:232](https://github.com/isdk/ai-tool.js/blob/d10fb4cda65fc1975152a2c3ab327ecab008dea1/src/utils/load-file-from-paths.ts#L232)
|
|
34
34
|
|
|
35
35
|
***
|
|
36
36
|
|
|
@@ -38,7 +38,7 @@ Defined in: [@isdk/ai-tools/packages/ai-tool/src/utils/load-file-from-paths.ts:2
|
|
|
38
38
|
|
|
39
39
|
> **mimeType**: `string`
|
|
40
40
|
|
|
41
|
-
Defined in: [@isdk/ai-tools/packages/ai-tool/src/utils/load-file-from-paths.ts:231](https://github.com/isdk/ai-tool.js/blob/
|
|
41
|
+
Defined in: [@isdk/ai-tools/packages/ai-tool/src/utils/load-file-from-paths.ts:231](https://github.com/isdk/ai-tool.js/blob/d10fb4cda65fc1975152a2c3ab327ecab008dea1/src/utils/load-file-from-paths.ts#L231)
|
|
42
42
|
|
|
43
43
|
***
|
|
44
44
|
|
|
@@ -46,7 +46,7 @@ Defined in: [@isdk/ai-tools/packages/ai-tool/src/utils/load-file-from-paths.ts:2
|
|
|
46
46
|
|
|
47
47
|
> **mtime**: `Date`
|
|
48
48
|
|
|
49
|
-
Defined in: [@isdk/ai-tools/packages/ai-tool/src/utils/load-file-from-paths.ts:227](https://github.com/isdk/ai-tool.js/blob/
|
|
49
|
+
Defined in: [@isdk/ai-tools/packages/ai-tool/src/utils/load-file-from-paths.ts:227](https://github.com/isdk/ai-tool.js/blob/d10fb4cda65fc1975152a2c3ab327ecab008dea1/src/utils/load-file-from-paths.ts#L227)
|
|
50
50
|
|
|
51
51
|
***
|
|
52
52
|
|
|
@@ -54,7 +54,7 @@ Defined in: [@isdk/ai-tools/packages/ai-tool/src/utils/load-file-from-paths.ts:2
|
|
|
54
54
|
|
|
55
55
|
> **name**: `string`
|
|
56
56
|
|
|
57
|
-
Defined in: [@isdk/ai-tools/packages/ai-tool/src/utils/load-file-from-paths.ts:226](https://github.com/isdk/ai-tool.js/blob/
|
|
57
|
+
Defined in: [@isdk/ai-tools/packages/ai-tool/src/utils/load-file-from-paths.ts:226](https://github.com/isdk/ai-tool.js/blob/d10fb4cda65fc1975152a2c3ab327ecab008dea1/src/utils/load-file-from-paths.ts#L226)
|
|
58
58
|
|
|
59
59
|
***
|
|
60
60
|
|
|
@@ -62,4 +62,4 @@ Defined in: [@isdk/ai-tools/packages/ai-tool/src/utils/load-file-from-paths.ts:2
|
|
|
62
62
|
|
|
63
63
|
> **size**: `number`
|
|
64
64
|
|
|
65
|
-
Defined in: [@isdk/ai-tools/packages/ai-tool/src/utils/load-file-from-paths.ts:229](https://github.com/isdk/ai-tool.js/blob/
|
|
65
|
+
Defined in: [@isdk/ai-tools/packages/ai-tool/src/utils/load-file-from-paths.ts:229](https://github.com/isdk/ai-tool.js/blob/d10fb4cda65fc1975152a2c3ab327ecab008dea1/src/utils/load-file-from-paths.ts#L229)
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
# Interface: IPubSubClientTransport
|
|
8
8
|
|
|
9
|
-
Defined in:
|
|
9
|
+
Defined in: @isdk/ai-tools/packages/tool-event/dist/transports/pubsub.d.ts:80
|
|
10
10
|
|
|
11
11
|
Defines the interface for a client-side PubSub transport.
|
|
12
12
|
|
|
@@ -19,7 +19,7 @@ stream (`PubSubClientStream`) to the server.
|
|
|
19
19
|
|
|
20
20
|
> **connect**: (`url`, `params?`) => [`PubSubClientStream`](PubSubClientStream.md) \| `Promise`\<[`PubSubClientStream`](PubSubClientStream.md)\>
|
|
21
21
|
|
|
22
|
-
Defined in:
|
|
22
|
+
Defined in: @isdk/ai-tools/packages/tool-event/dist/transports/pubsub.d.ts:88
|
|
23
23
|
|
|
24
24
|
Establishes a connection to a server endpoint.
|
|
25
25
|
|
|
@@ -50,7 +50,7 @@ A `PubSubClientStream` instance that represents the active connection.
|
|
|
50
50
|
|
|
51
51
|
> `optional` **disconnect**: (`stream`) => `void`
|
|
52
52
|
|
|
53
|
-
Defined in:
|
|
53
|
+
Defined in: @isdk/ai-tools/packages/tool-event/dist/transports/pubsub.d.ts:96
|
|
54
54
|
|
|
55
55
|
Optional. Disconnects a given stream.
|
|
56
56
|
While the `close` method exists on the stream itself, placing `disconnect`
|
|
@@ -75,7 +75,7 @@ The stream to disconnect.
|
|
|
75
75
|
|
|
76
76
|
> `optional` **setApiRoot**: (`apiRoot`) => `void`
|
|
77
77
|
|
|
78
|
-
Defined in:
|
|
78
|
+
Defined in: @isdk/ai-tools/packages/tool-event/dist/transports/pubsub.d.ts:103
|
|
79
79
|
|
|
80
80
|
Optional. Configures the transport with a base URL.
|
|
81
81
|
If implemented, this allows the transport to resolve relative paths
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
# Interface: IPubSubServerTransport
|
|
8
8
|
|
|
9
|
-
Defined in:
|
|
9
|
+
Defined in: @isdk/ai-tools/packages/tool-event/dist/transports/pubsub.d.ts:155
|
|
10
10
|
|
|
11
11
|
Defines the interface for a server-side PubSub transport layer.
|
|
12
12
|
|
|
@@ -21,7 +21,7 @@ connections, subscriptions, and message passing.
|
|
|
21
21
|
|
|
22
22
|
> **connect**: (`options?`) => [`PubSubServerSession`](PubSubServerSession.md)
|
|
23
23
|
|
|
24
|
-
Defined in:
|
|
24
|
+
Defined in: @isdk/ai-tools/packages/tool-event/dist/transports/pubsub.d.ts:174
|
|
25
25
|
|
|
26
26
|
Connects a client, establishing a persistent communication channel.
|
|
27
27
|
|
|
@@ -61,9 +61,9 @@ A `PubSubServerSession` object representing the newly connected client session.
|
|
|
61
61
|
|
|
62
62
|
### getSessionFromReq()?
|
|
63
63
|
|
|
64
|
-
> `optional` **getSessionFromReq**: (`req`) =>
|
|
64
|
+
> `optional` **getSessionFromReq**: (`req`) => [`PubSubServerSession`](PubSubServerSession.md) \| `undefined`
|
|
65
65
|
|
|
66
|
-
Defined in:
|
|
66
|
+
Defined in: @isdk/ai-tools/packages/tool-event/dist/transports/pubsub.d.ts:246
|
|
67
67
|
|
|
68
68
|
Optional. Finds and returns a session based on a request object.
|
|
69
69
|
This is used by higher-level tools to find the correct session
|
|
@@ -79,7 +79,7 @@ The request object (e.g., http.IncomingMessage or Electron.IpcMainEvent).
|
|
|
79
79
|
|
|
80
80
|
#### Returns
|
|
81
81
|
|
|
82
|
-
|
|
82
|
+
[`PubSubServerSession`](PubSubServerSession.md) \| `undefined`
|
|
83
83
|
|
|
84
84
|
The corresponding session, or undefined if not found.
|
|
85
85
|
|
|
@@ -89,7 +89,7 @@ The corresponding session, or undefined if not found.
|
|
|
89
89
|
|
|
90
90
|
> `readonly` **name**: `string`
|
|
91
91
|
|
|
92
|
-
Defined in:
|
|
92
|
+
Defined in: @isdk/ai-tools/packages/tool-event/dist/transports/pubsub.d.ts:159
|
|
93
93
|
|
|
94
94
|
A unique, human-readable name for the transport (e.g., 'sse', 'websocket').
|
|
95
95
|
|
|
@@ -99,7 +99,7 @@ A unique, human-readable name for the transport (e.g., 'sse', 'websocket').
|
|
|
99
99
|
|
|
100
100
|
> **onConnection**: (`cb`) => `void`
|
|
101
101
|
|
|
102
|
-
Defined in:
|
|
102
|
+
Defined in: @isdk/ai-tools/packages/tool-event/dist/transports/pubsub.d.ts:225
|
|
103
103
|
|
|
104
104
|
Registers a callback to be invoked when a new client connection is established
|
|
105
105
|
and a session is created.
|
|
@@ -122,7 +122,7 @@ The callback function that receives the new `PubSubServerSession`.
|
|
|
122
122
|
|
|
123
123
|
> **onDisconnect**: (`cb`) => `void`
|
|
124
124
|
|
|
125
|
-
Defined in:
|
|
125
|
+
Defined in: @isdk/ai-tools/packages/tool-event/dist/transports/pubsub.d.ts:231
|
|
126
126
|
|
|
127
127
|
Registers a callback to be invoked when a client disconnects.
|
|
128
128
|
|
|
@@ -145,7 +145,7 @@ The callback function that receives the `PubSubServerSession` of the
|
|
|
145
145
|
|
|
146
146
|
> `optional` **onMessage**: (`cb`) => `void`
|
|
147
147
|
|
|
148
|
-
Defined in:
|
|
148
|
+
Defined in: @isdk/ai-tools/packages/tool-event/dist/transports/pubsub.d.ts:238
|
|
149
149
|
|
|
150
150
|
Optional. Registers a callback to handle incoming messages from clients.
|
|
151
151
|
This is only necessary for bidirectional transport protocols like WebSockets or IPC.
|
|
@@ -168,7 +168,7 @@ The callback function that receives the session, event name, data, and context.
|
|
|
168
168
|
|
|
169
169
|
> `readonly` **protocol**: `string`
|
|
170
170
|
|
|
171
|
-
Defined in:
|
|
171
|
+
Defined in: @isdk/ai-tools/packages/tool-event/dist/transports/pubsub.d.ts:163
|
|
172
172
|
|
|
173
173
|
The protocol identifier.
|
|
174
174
|
|
|
@@ -178,7 +178,7 @@ The protocol identifier.
|
|
|
178
178
|
|
|
179
179
|
> **publish**: (`event`, `data`, `target?`, `ctx?`) => `void`
|
|
180
180
|
|
|
181
|
-
Defined in:
|
|
181
|
+
Defined in: @isdk/ai-tools/packages/tool-event/dist/transports/pubsub.d.ts:217
|
|
182
182
|
|
|
183
183
|
Publishes an event from the server to connected clients.
|
|
184
184
|
|
|
@@ -213,7 +213,7 @@ A single `PubSubClientId` or an array of IDs to
|
|
|
213
213
|
|
|
214
214
|
##### ctx?
|
|
215
215
|
|
|
216
|
-
[`PubSubCtx`](../type-aliases/PubSubCtx.md)
|
|
216
|
+
[`PubSubCtx`](../type-aliases/PubSubCtx.md)\<`any`\>
|
|
217
217
|
|
|
218
218
|
Optional context for the PubSub operation.
|
|
219
219
|
|
|
@@ -227,7 +227,7 @@ Optional context for the PubSub operation.
|
|
|
227
227
|
|
|
228
228
|
> **subscribe**: (`session`, `events`) => `void`
|
|
229
229
|
|
|
230
|
-
Defined in:
|
|
230
|
+
Defined in: @isdk/ai-tools/packages/tool-event/dist/transports/pubsub.d.ts:191
|
|
231
231
|
|
|
232
232
|
Subscribes a client session to one or more events.
|
|
233
233
|
|
|
@@ -259,7 +259,7 @@ An array of event names to subscribe to.
|
|
|
259
259
|
|
|
260
260
|
> **unsubscribe**: (`session`, `events`) => `void`
|
|
261
261
|
|
|
262
|
-
Defined in:
|
|
262
|
+
Defined in: @isdk/ai-tools/packages/tool-event/dist/transports/pubsub.d.ts:202
|
|
263
263
|
|
|
264
264
|
Unsubscribes a client session from one or more events.
|
|
265
265
|
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
# Interface: IReadTextFileChunksOptions
|
|
8
8
|
|
|
9
|
-
Defined in: [@isdk/ai-tools/packages/ai-tool/src/utils/read-text-file-chunks.ts:5](https://github.com/isdk/ai-tool.js/blob/
|
|
9
|
+
Defined in: [@isdk/ai-tools/packages/ai-tool/src/utils/read-text-file-chunks.ts:5](https://github.com/isdk/ai-tool.js/blob/d10fb4cda65fc1975152a2c3ab327ecab008dea1/src/utils/read-text-file-chunks.ts#L5)
|
|
10
10
|
|
|
11
11
|
## Extends
|
|
12
12
|
|
|
@@ -18,7 +18,7 @@ Defined in: [@isdk/ai-tools/packages/ai-tool/src/utils/read-text-file-chunks.ts:
|
|
|
18
18
|
|
|
19
19
|
> `optional` **best**: `boolean`
|
|
20
20
|
|
|
21
|
-
Defined in: [@isdk/ai-tools/packages/ai-tool/src/utils/truncate-to-token-limit.ts:8](https://github.com/isdk/ai-tool.js/blob/
|
|
21
|
+
Defined in: [@isdk/ai-tools/packages/ai-tool/src/utils/truncate-to-token-limit.ts:8](https://github.com/isdk/ai-tool.js/blob/d10fb4cda65fc1975152a2c3ab327ecab008dea1/src/utils/truncate-to-token-limit.ts#L8)
|
|
22
22
|
|
|
23
23
|
#### Inherited from
|
|
24
24
|
|
|
@@ -30,7 +30,7 @@ Defined in: [@isdk/ai-tools/packages/ai-tool/src/utils/truncate-to-token-limit.t
|
|
|
30
30
|
|
|
31
31
|
> `optional` **bySentence**: `boolean`
|
|
32
32
|
|
|
33
|
-
Defined in: [@isdk/ai-tools/packages/ai-tool/src/utils/truncate-to-token-limit.ts:4](https://github.com/isdk/ai-tool.js/blob/
|
|
33
|
+
Defined in: [@isdk/ai-tools/packages/ai-tool/src/utils/truncate-to-token-limit.ts:4](https://github.com/isdk/ai-tool.js/blob/d10fb4cda65fc1975152a2c3ab327ecab008dea1/src/utils/truncate-to-token-limit.ts#L4)
|
|
34
34
|
|
|
35
35
|
#### Inherited from
|
|
36
36
|
|
|
@@ -42,7 +42,7 @@ Defined in: [@isdk/ai-tools/packages/ai-tool/src/utils/truncate-to-token-limit.t
|
|
|
42
42
|
|
|
43
43
|
> `optional` **completeSentence**: `boolean`
|
|
44
44
|
|
|
45
|
-
Defined in: [@isdk/ai-tools/packages/ai-tool/src/utils/truncate-to-token-limit.ts:9](https://github.com/isdk/ai-tool.js/blob/
|
|
45
|
+
Defined in: [@isdk/ai-tools/packages/ai-tool/src/utils/truncate-to-token-limit.ts:9](https://github.com/isdk/ai-tool.js/blob/d10fb4cda65fc1975152a2c3ab327ecab008dea1/src/utils/truncate-to-token-limit.ts#L9)
|
|
46
46
|
|
|
47
47
|
#### Inherited from
|
|
48
48
|
|
|
@@ -54,7 +54,7 @@ Defined in: [@isdk/ai-tools/packages/ai-tool/src/utils/truncate-to-token-limit.t
|
|
|
54
54
|
|
|
55
55
|
> `optional` **corrected**: `boolean`
|
|
56
56
|
|
|
57
|
-
Defined in: [@isdk/ai-tools/packages/ai-tool/src/utils/truncate-to-token-limit.ts:10](https://github.com/isdk/ai-tool.js/blob/
|
|
57
|
+
Defined in: [@isdk/ai-tools/packages/ai-tool/src/utils/truncate-to-token-limit.ts:10](https://github.com/isdk/ai-tool.js/blob/d10fb4cda65fc1975152a2c3ab327ecab008dea1/src/utils/truncate-to-token-limit.ts#L10)
|
|
58
58
|
|
|
59
59
|
#### Inherited from
|
|
60
60
|
|
|
@@ -66,7 +66,7 @@ Defined in: [@isdk/ai-tools/packages/ai-tool/src/utils/truncate-to-token-limit.t
|
|
|
66
66
|
|
|
67
67
|
> `optional` **countLLMTokens**: (`text`, `modelId?`) => `Promise`\<`number`\>
|
|
68
68
|
|
|
69
|
-
Defined in: [@isdk/ai-tools/packages/ai-tool/src/utils/truncate-to-token-limit.ts:12](https://github.com/isdk/ai-tool.js/blob/
|
|
69
|
+
Defined in: [@isdk/ai-tools/packages/ai-tool/src/utils/truncate-to-token-limit.ts:12](https://github.com/isdk/ai-tool.js/blob/d10fb4cda65fc1975152a2c3ab327ecab008dea1/src/utils/truncate-to-token-limit.ts#L12)
|
|
70
70
|
|
|
71
71
|
#### Parameters
|
|
72
72
|
|
|
@@ -92,7 +92,7 @@ Defined in: [@isdk/ai-tools/packages/ai-tool/src/utils/truncate-to-token-limit.t
|
|
|
92
92
|
|
|
93
93
|
> `optional` **metaInfo**: `_RequireAtLeastOne`\<`Partial`\<[`IFileMetaInfo`](IFileMetaInfo.md)\>, `"size"`\>
|
|
94
94
|
|
|
95
|
-
Defined in: [@isdk/ai-tools/packages/ai-tool/src/utils/read-text-file-chunks.ts:8](https://github.com/isdk/ai-tool.js/blob/
|
|
95
|
+
Defined in: [@isdk/ai-tools/packages/ai-tool/src/utils/read-text-file-chunks.ts:8](https://github.com/isdk/ai-tool.js/blob/d10fb4cda65fc1975152a2c3ab327ecab008dea1/src/utils/read-text-file-chunks.ts#L8)
|
|
96
96
|
|
|
97
97
|
***
|
|
98
98
|
|
|
@@ -100,7 +100,7 @@ Defined in: [@isdk/ai-tools/packages/ai-tool/src/utils/read-text-file-chunks.ts:
|
|
|
100
100
|
|
|
101
101
|
> `optional` **modelId**: `string`
|
|
102
102
|
|
|
103
|
-
Defined in: [@isdk/ai-tools/packages/ai-tool/src/utils/read-text-file-chunks.ts:7](https://github.com/isdk/ai-tool.js/blob/
|
|
103
|
+
Defined in: [@isdk/ai-tools/packages/ai-tool/src/utils/read-text-file-chunks.ts:7](https://github.com/isdk/ai-tool.js/blob/d10fb4cda65fc1975152a2c3ab327ecab008dea1/src/utils/read-text-file-chunks.ts#L7)
|
|
104
104
|
|
|
105
105
|
#### Overrides
|
|
106
106
|
|
|
@@ -112,7 +112,7 @@ Defined in: [@isdk/ai-tools/packages/ai-tool/src/utils/read-text-file-chunks.ts:
|
|
|
112
112
|
|
|
113
113
|
> `optional` **sentences**: `string`[]
|
|
114
114
|
|
|
115
|
-
Defined in: [@isdk/ai-tools/packages/ai-tool/src/utils/truncate-to-token-limit.ts:7](https://github.com/isdk/ai-tool.js/blob/
|
|
115
|
+
Defined in: [@isdk/ai-tools/packages/ai-tool/src/utils/truncate-to-token-limit.ts:7](https://github.com/isdk/ai-tool.js/blob/d10fb4cda65fc1975152a2c3ab327ecab008dea1/src/utils/truncate-to-token-limit.ts#L7)
|
|
116
116
|
|
|
117
117
|
#### Inherited from
|
|
118
118
|
|
|
@@ -124,7 +124,7 @@ Defined in: [@isdk/ai-tools/packages/ai-tool/src/utils/truncate-to-token-limit.t
|
|
|
124
124
|
|
|
125
125
|
> `optional` **size**: `number`
|
|
126
126
|
|
|
127
|
-
Defined in: [@isdk/ai-tools/packages/ai-tool/src/utils/read-text-file-chunks.ts:6](https://github.com/isdk/ai-tool.js/blob/
|
|
127
|
+
Defined in: [@isdk/ai-tools/packages/ai-tool/src/utils/read-text-file-chunks.ts:6](https://github.com/isdk/ai-tool.js/blob/d10fb4cda65fc1975152a2c3ab327ecab008dea1/src/utils/read-text-file-chunks.ts#L6)
|
|
128
128
|
|
|
129
129
|
#### Overrides
|
|
130
130
|
|
|
@@ -136,7 +136,7 @@ Defined in: [@isdk/ai-tools/packages/ai-tool/src/utils/read-text-file-chunks.ts:
|
|
|
136
136
|
|
|
137
137
|
> `optional` **truncLastSection**: `boolean`
|
|
138
138
|
|
|
139
|
-
Defined in: [@isdk/ai-tools/packages/ai-tool/src/utils/truncate-to-token-limit.ts:11](https://github.com/isdk/ai-tool.js/blob/
|
|
139
|
+
Defined in: [@isdk/ai-tools/packages/ai-tool/src/utils/truncate-to-token-limit.ts:11](https://github.com/isdk/ai-tool.js/blob/d10fb4cda65fc1975152a2c3ab327ecab008dea1/src/utils/truncate-to-token-limit.ts#L11)
|
|
140
140
|
|
|
141
141
|
#### Inherited from
|
|
142
142
|
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
# Interface: IServerToolTransport
|
|
8
8
|
|
|
9
|
-
Defined in:
|
|
9
|
+
Defined in: @isdk/ai-tools/packages/tool-rpc/dist/index-359784IS.d.ts:407
|
|
10
10
|
|
|
11
11
|
Defines the public interface for a server-side transport,
|
|
12
12
|
responsible for exposing ServerTools to the network.
|
|
@@ -25,7 +25,7 @@ responsible for exposing ServerTools to the network.
|
|
|
25
25
|
|
|
26
26
|
> **apiRoot**: `string`
|
|
27
27
|
|
|
28
|
-
Defined in:
|
|
28
|
+
Defined in: @isdk/ai-tools/packages/tool-rpc/dist/index-359784IS.d.ts:127
|
|
29
29
|
|
|
30
30
|
The root endpoint for the remote service.
|
|
31
31
|
For HTTP, this is a URL. For IPC, it could be a channel name.
|
|
@@ -40,7 +40,7 @@ For HTTP, this is a URL. For IPC, it could be a channel name.
|
|
|
40
40
|
|
|
41
41
|
> `optional` **options**: `any`
|
|
42
42
|
|
|
43
|
-
Defined in:
|
|
43
|
+
Defined in: @isdk/ai-tools/packages/tool-rpc/dist/index-359784IS.d.ts:131
|
|
44
44
|
|
|
45
45
|
Additional options for the transport start or fetch, passed by mount.
|
|
46
46
|
|
|
@@ -54,7 +54,7 @@ Additional options for the transport start or fetch, passed by mount.
|
|
|
54
54
|
|
|
55
55
|
> **Tools**: *typeof* [`ToolFunc`](../classes/ToolFunc.md)
|
|
56
56
|
|
|
57
|
-
Defined in:
|
|
57
|
+
Defined in: @isdk/ai-tools/packages/tool-rpc/dist/index-359784IS.d.ts:122
|
|
58
58
|
|
|
59
59
|
#### Inherited from
|
|
60
60
|
|
|
@@ -66,7 +66,7 @@ Defined in: [@isdk/ai-tools/packages/ai-tool/src/transports/base.ts:17](https://
|
|
|
66
66
|
|
|
67
67
|
> `optional` **getRaw**(): `any`
|
|
68
68
|
|
|
69
|
-
Defined in:
|
|
69
|
+
Defined in: @isdk/ai-tools/packages/tool-rpc/dist/index-359784IS.d.ts:435
|
|
70
70
|
|
|
71
71
|
Gets the underlying raw server instance.
|
|
72
72
|
|
|
@@ -80,7 +80,7 @@ Gets the underlying raw server instance.
|
|
|
80
80
|
|
|
81
81
|
> **mount**(`serverTools`, `apiPrefix?`, `options?`): `void`
|
|
82
82
|
|
|
83
|
-
Defined in:
|
|
83
|
+
Defined in: @isdk/ai-tools/packages/tool-rpc/dist/index-359784IS.d.ts:420
|
|
84
84
|
|
|
85
85
|
Mounts the ServerTools registry, creating the necessary API routes.
|
|
86
86
|
|
|
@@ -123,7 +123,7 @@ A container for transport-specific options. For example,
|
|
|
123
123
|
|
|
124
124
|
> **start**(`options?`): `Promise`\<`any`\>
|
|
125
125
|
|
|
126
|
-
Defined in:
|
|
126
|
+
Defined in: @isdk/ai-tools/packages/tool-rpc/dist/index-359784IS.d.ts:425
|
|
127
127
|
|
|
128
128
|
Starts the transport layer, making it listen for incoming connections.
|
|
129
129
|
|
|
@@ -145,7 +145,7 @@ Protocol-specific options (e.g., { port, host }).
|
|
|
145
145
|
|
|
146
146
|
> **stop**(`force?`): `Promise`\<`void`\>
|
|
147
147
|
|
|
148
|
-
Defined in:
|
|
148
|
+
Defined in: @isdk/ai-tools/packages/tool-rpc/dist/index-359784IS.d.ts:431
|
|
149
149
|
|
|
150
150
|
Stops the server instance gracefully.
|
|
151
151
|
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
# Interface: IToolTransport
|
|
8
8
|
|
|
9
|
-
Defined in:
|
|
9
|
+
Defined in: @isdk/ai-tools/packages/tool-rpc/dist/index-359784IS.d.ts:121
|
|
10
10
|
|
|
11
11
|
## Extended by
|
|
12
12
|
|
|
@@ -23,7 +23,7 @@ Defined in: [@isdk/ai-tools/packages/ai-tool/src/transports/base.ts:16](https://
|
|
|
23
23
|
|
|
24
24
|
> **apiRoot**: `string`
|
|
25
25
|
|
|
26
|
-
Defined in:
|
|
26
|
+
Defined in: @isdk/ai-tools/packages/tool-rpc/dist/index-359784IS.d.ts:127
|
|
27
27
|
|
|
28
28
|
The root endpoint for the remote service.
|
|
29
29
|
For HTTP, this is a URL. For IPC, it could be a channel name.
|
|
@@ -34,7 +34,7 @@ For HTTP, this is a URL. For IPC, it could be a channel name.
|
|
|
34
34
|
|
|
35
35
|
> `optional` **options**: `any`
|
|
36
36
|
|
|
37
|
-
Defined in:
|
|
37
|
+
Defined in: @isdk/ai-tools/packages/tool-rpc/dist/index-359784IS.d.ts:131
|
|
38
38
|
|
|
39
39
|
Additional options for the transport start or fetch, passed by mount.
|
|
40
40
|
|
|
@@ -44,7 +44,7 @@ Additional options for the transport start or fetch, passed by mount.
|
|
|
44
44
|
|
|
45
45
|
> **Tools**: *typeof* [`ToolFunc`](../classes/ToolFunc.md)
|
|
46
46
|
|
|
47
|
-
Defined in:
|
|
47
|
+
Defined in: @isdk/ai-tools/packages/tool-rpc/dist/index-359784IS.d.ts:122
|
|
48
48
|
|
|
49
49
|
## Methods
|
|
50
50
|
|
|
@@ -52,7 +52,7 @@ Defined in: [@isdk/ai-tools/packages/ai-tool/src/transports/base.ts:17](https://
|
|
|
52
52
|
|
|
53
53
|
> **mount**(`Tools`, `apiRoot?`, `options?`): `any`
|
|
54
54
|
|
|
55
|
-
Defined in:
|
|
55
|
+
Defined in: @isdk/ai-tools/packages/tool-rpc/dist/index-359784IS.d.ts:132
|
|
56
56
|
|
|
57
57
|
#### Parameters
|
|
58
58
|
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
# Interface: ITruncateToTokenLimitOptions
|
|
8
8
|
|
|
9
|
-
Defined in: [@isdk/ai-tools/packages/ai-tool/src/utils/truncate-to-token-limit.ts:3](https://github.com/isdk/ai-tool.js/blob/
|
|
9
|
+
Defined in: [@isdk/ai-tools/packages/ai-tool/src/utils/truncate-to-token-limit.ts:3](https://github.com/isdk/ai-tool.js/blob/d10fb4cda65fc1975152a2c3ab327ecab008dea1/src/utils/truncate-to-token-limit.ts#L3)
|
|
10
10
|
|
|
11
11
|
## Extended by
|
|
12
12
|
|
|
@@ -18,7 +18,7 @@ Defined in: [@isdk/ai-tools/packages/ai-tool/src/utils/truncate-to-token-limit.t
|
|
|
18
18
|
|
|
19
19
|
> `optional` **best**: `boolean`
|
|
20
20
|
|
|
21
|
-
Defined in: [@isdk/ai-tools/packages/ai-tool/src/utils/truncate-to-token-limit.ts:8](https://github.com/isdk/ai-tool.js/blob/
|
|
21
|
+
Defined in: [@isdk/ai-tools/packages/ai-tool/src/utils/truncate-to-token-limit.ts:8](https://github.com/isdk/ai-tool.js/blob/d10fb4cda65fc1975152a2c3ab327ecab008dea1/src/utils/truncate-to-token-limit.ts#L8)
|
|
22
22
|
|
|
23
23
|
***
|
|
24
24
|
|
|
@@ -26,7 +26,7 @@ Defined in: [@isdk/ai-tools/packages/ai-tool/src/utils/truncate-to-token-limit.t
|
|
|
26
26
|
|
|
27
27
|
> `optional` **bySentence**: `boolean`
|
|
28
28
|
|
|
29
|
-
Defined in: [@isdk/ai-tools/packages/ai-tool/src/utils/truncate-to-token-limit.ts:4](https://github.com/isdk/ai-tool.js/blob/
|
|
29
|
+
Defined in: [@isdk/ai-tools/packages/ai-tool/src/utils/truncate-to-token-limit.ts:4](https://github.com/isdk/ai-tool.js/blob/d10fb4cda65fc1975152a2c3ab327ecab008dea1/src/utils/truncate-to-token-limit.ts#L4)
|
|
30
30
|
|
|
31
31
|
***
|
|
32
32
|
|
|
@@ -34,7 +34,7 @@ Defined in: [@isdk/ai-tools/packages/ai-tool/src/utils/truncate-to-token-limit.t
|
|
|
34
34
|
|
|
35
35
|
> `optional` **completeSentence**: `boolean`
|
|
36
36
|
|
|
37
|
-
Defined in: [@isdk/ai-tools/packages/ai-tool/src/utils/truncate-to-token-limit.ts:9](https://github.com/isdk/ai-tool.js/blob/
|
|
37
|
+
Defined in: [@isdk/ai-tools/packages/ai-tool/src/utils/truncate-to-token-limit.ts:9](https://github.com/isdk/ai-tool.js/blob/d10fb4cda65fc1975152a2c3ab327ecab008dea1/src/utils/truncate-to-token-limit.ts#L9)
|
|
38
38
|
|
|
39
39
|
***
|
|
40
40
|
|
|
@@ -42,7 +42,7 @@ Defined in: [@isdk/ai-tools/packages/ai-tool/src/utils/truncate-to-token-limit.t
|
|
|
42
42
|
|
|
43
43
|
> `optional` **corrected**: `boolean`
|
|
44
44
|
|
|
45
|
-
Defined in: [@isdk/ai-tools/packages/ai-tool/src/utils/truncate-to-token-limit.ts:10](https://github.com/isdk/ai-tool.js/blob/
|
|
45
|
+
Defined in: [@isdk/ai-tools/packages/ai-tool/src/utils/truncate-to-token-limit.ts:10](https://github.com/isdk/ai-tool.js/blob/d10fb4cda65fc1975152a2c3ab327ecab008dea1/src/utils/truncate-to-token-limit.ts#L10)
|
|
46
46
|
|
|
47
47
|
***
|
|
48
48
|
|
|
@@ -50,7 +50,7 @@ Defined in: [@isdk/ai-tools/packages/ai-tool/src/utils/truncate-to-token-limit.t
|
|
|
50
50
|
|
|
51
51
|
> `optional` **countLLMTokens**: (`text`, `modelId?`) => `Promise`\<`number`\>
|
|
52
52
|
|
|
53
|
-
Defined in: [@isdk/ai-tools/packages/ai-tool/src/utils/truncate-to-token-limit.ts:12](https://github.com/isdk/ai-tool.js/blob/
|
|
53
|
+
Defined in: [@isdk/ai-tools/packages/ai-tool/src/utils/truncate-to-token-limit.ts:12](https://github.com/isdk/ai-tool.js/blob/d10fb4cda65fc1975152a2c3ab327ecab008dea1/src/utils/truncate-to-token-limit.ts#L12)
|
|
54
54
|
|
|
55
55
|
#### Parameters
|
|
56
56
|
|
|
@@ -72,7 +72,7 @@ Defined in: [@isdk/ai-tools/packages/ai-tool/src/utils/truncate-to-token-limit.t
|
|
|
72
72
|
|
|
73
73
|
> `optional` **modelId**: `string`
|
|
74
74
|
|
|
75
|
-
Defined in: [@isdk/ai-tools/packages/ai-tool/src/utils/truncate-to-token-limit.ts:6](https://github.com/isdk/ai-tool.js/blob/
|
|
75
|
+
Defined in: [@isdk/ai-tools/packages/ai-tool/src/utils/truncate-to-token-limit.ts:6](https://github.com/isdk/ai-tool.js/blob/d10fb4cda65fc1975152a2c3ab327ecab008dea1/src/utils/truncate-to-token-limit.ts#L6)
|
|
76
76
|
|
|
77
77
|
***
|
|
78
78
|
|
|
@@ -80,7 +80,7 @@ Defined in: [@isdk/ai-tools/packages/ai-tool/src/utils/truncate-to-token-limit.t
|
|
|
80
80
|
|
|
81
81
|
> `optional` **sentences**: `string`[]
|
|
82
82
|
|
|
83
|
-
Defined in: [@isdk/ai-tools/packages/ai-tool/src/utils/truncate-to-token-limit.ts:7](https://github.com/isdk/ai-tool.js/blob/
|
|
83
|
+
Defined in: [@isdk/ai-tools/packages/ai-tool/src/utils/truncate-to-token-limit.ts:7](https://github.com/isdk/ai-tool.js/blob/d10fb4cda65fc1975152a2c3ab327ecab008dea1/src/utils/truncate-to-token-limit.ts#L7)
|
|
84
84
|
|
|
85
85
|
***
|
|
86
86
|
|
|
@@ -88,7 +88,7 @@ Defined in: [@isdk/ai-tools/packages/ai-tool/src/utils/truncate-to-token-limit.t
|
|
|
88
88
|
|
|
89
89
|
> `optional` **size**: `number`
|
|
90
90
|
|
|
91
|
-
Defined in: [@isdk/ai-tools/packages/ai-tool/src/utils/truncate-to-token-limit.ts:5](https://github.com/isdk/ai-tool.js/blob/
|
|
91
|
+
Defined in: [@isdk/ai-tools/packages/ai-tool/src/utils/truncate-to-token-limit.ts:5](https://github.com/isdk/ai-tool.js/blob/d10fb4cda65fc1975152a2c3ab327ecab008dea1/src/utils/truncate-to-token-limit.ts#L5)
|
|
92
92
|
|
|
93
93
|
***
|
|
94
94
|
|
|
@@ -96,4 +96,4 @@ Defined in: [@isdk/ai-tools/packages/ai-tool/src/utils/truncate-to-token-limit.t
|
|
|
96
96
|
|
|
97
97
|
> `optional` **truncLastSection**: `boolean`
|
|
98
98
|
|
|
99
|
-
Defined in: [@isdk/ai-tools/packages/ai-tool/src/utils/truncate-to-token-limit.ts:11](https://github.com/isdk/ai-tool.js/blob/
|
|
99
|
+
Defined in: [@isdk/ai-tools/packages/ai-tool/src/utils/truncate-to-token-limit.ts:11](https://github.com/isdk/ai-tool.js/blob/d10fb4cda65fc1975152a2c3ab327ecab008dea1/src/utils/truncate-to-token-limit.ts#L11)
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
# Interface: JsonFilter
|
|
8
8
|
|
|
9
|
-
Defined in: [@isdk/ai-tools/packages/ai-tool/src/utils/json-filter.ts:1](https://github.com/isdk/ai-tool.js/blob/
|
|
9
|
+
Defined in: [@isdk/ai-tools/packages/ai-tool/src/utils/json-filter.ts:1](https://github.com/isdk/ai-tool.js/blob/d10fb4cda65fc1975152a2c3ab327ecab008dea1/src/utils/json-filter.ts#L1)
|
|
10
10
|
|
|
11
11
|
## Indexable
|
|
12
12
|
|