@isdk/ai-tool 0.7.1 → 0.8.1

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.
Files changed (359) hide show
  1. package/dist/chunk-4FKBOPZI.mjs +1 -0
  2. package/dist/{chunk-VIG2GB47.mjs → chunk-TGTHY57V.mjs} +1 -1
  3. package/dist/funcs.d.mts +1 -2
  4. package/dist/funcs.d.ts +1 -2
  5. package/dist/funcs.js +1 -1
  6. package/dist/funcs.mjs +1 -1
  7. package/dist/{index-DEUnmyUq.d.mts → index-BLW3R7VS.d.mts} +103 -69
  8. package/dist/{index-DEUnmyUq.d.ts → index-BLW3R7VS.d.ts} +103 -69
  9. package/dist/index.d.mts +100 -37
  10. package/dist/index.d.ts +100 -37
  11. package/dist/index.js +1 -1
  12. package/dist/index.mjs +1 -1
  13. package/dist/test/util.js +1 -1
  14. package/dist/test/util.mjs +1 -1
  15. package/docs/api/{namespaces → @isdk/namespaces}/EventStates/README.md +2 -2
  16. package/docs/api/{namespaces → @isdk/namespaces}/EventStates/variables/ABORT.md +2 -2
  17. package/docs/api/{namespaces → @isdk/namespaces}/EventStates/variables/CONTINUE.md +2 -2
  18. package/docs/api/{namespaces → @isdk/namespaces}/EventStates/variables/DONE.md +2 -2
  19. package/docs/api/{namespaces → @isdk/namespaces}/EventStates/variables/STOPPED.md +2 -2
  20. package/docs/api/@isdk/namespaces/uuidv5/README.md +12 -0
  21. package/docs/api/{namespaces → @isdk/namespaces}/uuidv5/variables/DNS.md +2 -2
  22. package/docs/api/{namespaces → @isdk/namespaces}/uuidv5/variables/URL.md +2 -2
  23. package/docs/api/_media/pubsub.md +427 -105
  24. package/docs/api/_media/server_client_tools.md +5 -3
  25. package/docs/api/_media/toolFunc.md +3 -1
  26. package/docs/api/classes/AbortError.md +8 -8
  27. package/docs/api/classes/AlreadyExistsError.md +8 -8
  28. package/docs/api/classes/BaseError.md +14 -14
  29. package/docs/api/classes/BinarySemaphore.md +39 -39
  30. package/docs/api/classes/CancelableAbility.md +43 -39
  31. package/docs/api/classes/ClientToolTransport.md +22 -22
  32. package/docs/api/classes/ClientTools.md +178 -154
  33. package/docs/api/classes/CommonError.md +12 -12
  34. package/docs/api/classes/ConfigFile.md +6 -6
  35. package/docs/api/classes/EnvPromptTemplate.md +14 -14
  36. package/docs/api/classes/EventClient.md +240 -198
  37. package/docs/api/classes/EventEmitter.md +14 -14
  38. package/docs/api/classes/EventServer.md +208 -233
  39. package/docs/api/classes/EventToolFunc.md +144 -116
  40. package/docs/api/classes/FStringPromptTemplate.md +14 -14
  41. package/docs/api/classes/FewShotPromptTemplate.md +30 -26
  42. package/docs/api/classes/GolangPromptTemplate.md +13 -13
  43. package/docs/api/classes/HttpClientToolTransport.md +23 -23
  44. package/docs/api/classes/HttpServerToolTransport.md +32 -27
  45. package/docs/api/classes/IntSet.md +21 -21
  46. package/docs/api/classes/LRUCache.md +18 -18
  47. package/docs/api/classes/NotFoundError.md +8 -8
  48. package/docs/api/classes/NotImplementationError.md +8 -8
  49. package/docs/api/classes/PromptExampleSelector.md +17 -15
  50. package/docs/api/classes/PromptTemplate.md +15 -15
  51. package/docs/api/classes/ReadableStreamError.md +12 -12
  52. package/docs/api/classes/ResClientTools.md +180 -152
  53. package/docs/api/classes/ResServerTools.md +163 -139
  54. package/docs/api/classes/RpcMethodsClientTool.md +174 -146
  55. package/docs/api/classes/RpcMethodsServerTool.md +157 -133
  56. package/docs/api/classes/SSEChannel.md +142 -52
  57. package/docs/api/classes/Semaphore.md +40 -40
  58. package/docs/api/classes/ServerToolTransport.md +32 -27
  59. package/docs/api/classes/ServerTools.md +163 -139
  60. package/docs/api/classes/SignalGate.md +19 -17
  61. package/docs/api/classes/SseClientPubSubTransport.md +38 -10
  62. package/docs/api/classes/SseServerPubSubTransport.md +115 -42
  63. package/docs/api/classes/TaskAbortController.md +13 -13
  64. package/docs/api/classes/ToolFunc.md +157 -129
  65. package/docs/api/classes/ToolTransport.md +13 -13
  66. package/docs/api/classes/YamlTypeBaseObject.md +5 -5
  67. package/docs/api/enumerations/AsyncFeatureBits.md +4 -4
  68. package/docs/api/enumerations/AsyncFeatures.md +4 -4
  69. package/docs/api/enumerations/HashAlgorithm.md +12 -12
  70. package/docs/api/functions/AIArgProcessor.md +2 -2
  71. package/docs/api/functions/AIStream.md +8 -4
  72. package/docs/api/functions/ChoiceArgProcessor.md +2 -2
  73. package/docs/api/functions/DefaultDateFormat.md +2 -2
  74. package/docs/api/functions/ObjectArgsToArgsInfo.md +1 -1
  75. package/docs/api/functions/RateLimit.md +2 -2
  76. package/docs/api/functions/TemplateArgProcessor.md +2 -2
  77. package/docs/api/functions/addDate.md +7 -3
  78. package/docs/api/functions/assignDirs.md +1 -1
  79. package/docs/api/functions/beforeShutdown.md +1 -1
  80. package/docs/api/functions/calcPerplexity.md +2 -2
  81. package/docs/api/functions/calcPerplexitySimple.md +1 -1
  82. package/docs/api/functions/canonicalize.md +1 -1
  83. package/docs/api/functions/completeSentences.md +1 -1
  84. package/docs/api/functions/concatText.md +1 -1
  85. package/docs/api/functions/countLLMTokens.md +1 -1
  86. package/docs/api/functions/countRegexMatches.md +1 -1
  87. package/docs/api/functions/createAbilityInjector.md +16 -8
  88. package/docs/api/functions/createCallbacksTransformer.md +7 -3
  89. package/docs/api/functions/createEmptyReadableStream.md +1 -1
  90. package/docs/api/functions/createEndWithRepetitionDetector.md +2 -2
  91. package/docs/api/functions/createError.md +1 -1
  92. package/docs/api/functions/createEventStreamTransformer.md +8 -4
  93. package/docs/api/functions/createHfValueFunc.md +1 -1
  94. package/docs/api/functions/createLRUCache.md +2 -2
  95. package/docs/api/functions/createYamlObjectTag.md +1 -1
  96. package/docs/api/functions/dateToText.md +1 -1
  97. package/docs/api/functions/decodeCharset.md +2 -2
  98. package/docs/api/functions/defaultsWithConcat.md +1 -1
  99. package/docs/api/functions/detectCharset.md +2 -2
  100. package/docs/api/functions/encodeLLMTokens.md +1 -1
  101. package/docs/api/functions/ensureQuoted.md +1 -1
  102. package/docs/api/functions/eventable.md +6 -8
  103. package/docs/api/functions/expandConfig.md +2 -2
  104. package/docs/api/functions/expandObjEnv.md +1 -1
  105. package/docs/api/functions/expandPath.md +2 -2
  106. package/docs/api/functions/expandPathInObject.md +2 -2
  107. package/docs/api/functions/expandPaths.md +2 -2
  108. package/docs/api/functions/fileIsExists.md +1 -1
  109. package/docs/api/functions/filterValidFnScope.md +2 -2
  110. package/docs/api/functions/findIndexNonEmptyFrom.md +1 -1
  111. package/docs/api/functions/findPort.md +1 -1
  112. package/docs/api/functions/formatISO.md +1 -1
  113. package/docs/api/functions/formatTextWithSpace.md +2 -2
  114. package/docs/api/functions/funcGetMeta.md +1 -1
  115. package/docs/api/functions/funcWithMeta.md +2 -2
  116. package/docs/api/functions/genUrlParamsStr.md +8 -2
  117. package/docs/api/functions/getAllEnumKeys.md +4 -2
  118. package/docs/api/functions/getConfigFileNames.md +2 -2
  119. package/docs/api/functions/getConfigs.md +2 -2
  120. package/docs/api/functions/getFileMetaInfo.md +1 -1
  121. package/docs/api/functions/getHashAlgoBySize.md +1 -1
  122. package/docs/api/functions/getKeysPath.md +4 -2
  123. package/docs/api/functions/getLLMTokenizer.md +1 -1
  124. package/docs/api/functions/getMultiLevelExtname.md +1 -1
  125. package/docs/api/functions/getPackageDir.md +1 -1
  126. package/docs/api/functions/getRealFilepath.md +1 -1
  127. package/docs/api/functions/getResponseErrorReadableStream.md +2 -2
  128. package/docs/api/functions/getXDGConfigs.md +1 -1
  129. package/docs/api/functions/hasDirectoryIn.md +2 -2
  130. package/docs/api/functions/hash.md +1 -1
  131. package/docs/api/functions/hashFile.md +2 -2
  132. package/docs/api/functions/hashObject.md +2 -2
  133. package/docs/api/functions/hashStream.md +1 -1
  134. package/docs/api/functions/initShutdown.md +1 -1
  135. package/docs/api/functions/isLangUsingSpaces.md +1 -1
  136. package/docs/api/functions/isListItemString.md +1 -1
  137. package/docs/api/functions/isModelNameMatched.md +2 -2
  138. package/docs/api/functions/isPunctuationChar.md +1 -1
  139. package/docs/api/functions/isQuoted.md +1 -1
  140. package/docs/api/functions/isRegExp.md +1 -1
  141. package/docs/api/functions/isSameString.md +1 -1
  142. package/docs/api/functions/isSectionString.md +2 -2
  143. package/docs/api/functions/isSentenceEnding.md +1 -1
  144. package/docs/api/functions/isSepLineString.md +1 -1
  145. package/docs/api/functions/isStrWrapped.md +1 -1
  146. package/docs/api/functions/isSubdirectory.md +1 -1
  147. package/docs/api/functions/isTitleString.md +2 -2
  148. package/docs/api/functions/isWebStream.md +1 -1
  149. package/docs/api/functions/joinSplitWords.md +1 -1
  150. package/docs/api/functions/jsonFilterToWhere.md +2 -2
  151. package/docs/api/functions/jsonToMarkdownStr.md +2 -2
  152. package/docs/api/functions/loadAIConfig.md +1 -1
  153. package/docs/api/functions/loadConfig.md +1 -1
  154. package/docs/api/functions/loadConfigFile.md +1 -1
  155. package/docs/api/functions/loadFileFromPaths.md +2 -2
  156. package/docs/api/functions/loadTextFromPaths.md +3 -3
  157. package/docs/api/functions/lrucache.md +1 -1
  158. package/docs/api/functions/matchUrlProtocol.md +1 -1
  159. package/docs/api/functions/memoize.md +5 -3
  160. package/docs/api/functions/mergeArray.md +1 -1
  161. package/docs/api/functions/messagesToText.md +1 -1
  162. package/docs/api/functions/nanoid.md +45 -0
  163. package/docs/api/functions/normalizePath.md +1 -1
  164. package/docs/api/functions/paramsSizeToScaleStr.md +1 -1
  165. package/docs/api/functions/parseCommand.md +3 -3
  166. package/docs/api/functions/parseDateFormat.md +7 -3
  167. package/docs/api/functions/parseISO.md +7 -3
  168. package/docs/api/functions/parseJsJson.md +2 -2
  169. package/docs/api/functions/parseJsJsonSimpleSync.md +2 -2
  170. package/docs/api/functions/parseObjectArgInfo.md +2 -2
  171. package/docs/api/functions/parseObjectArgumentInfos.md +2 -2
  172. package/docs/api/functions/parseObjectArguments.md +2 -2
  173. package/docs/api/functions/parseObjectArgumentsAsArgInfos.md +2 -2
  174. package/docs/api/functions/parseYaml.md +1 -1
  175. package/docs/api/functions/pruneSubdirectories.md +1 -1
  176. package/docs/api/functions/pruneSubdirectoriesInPlace.md +1 -1
  177. package/docs/api/functions/quoteStr.md +1 -1
  178. package/docs/api/functions/readFilenamesRecursiveSync.md +2 -2
  179. package/docs/api/functions/readTextFileChunks.md +2 -2
  180. package/docs/api/functions/readTextFileChunksEx.md +2 -2
  181. package/docs/api/functions/readableFromAsyncIterable.md +4 -2
  182. package/docs/api/functions/registerCoreTools.md +1 -1
  183. package/docs/api/functions/removeMarkdownBold.md +2 -2
  184. package/docs/api/functions/removeMarkdownBoldAndItalic.md +2 -2
  185. package/docs/api/functions/removeMarkdownItalic.md +2 -2
  186. package/docs/api/functions/replaceWithPlaceholder.md +2 -2
  187. package/docs/api/functions/restoreFromPlacehoders.md +2 -2
  188. package/docs/api/functions/sanitizeFilename.md +1 -1
  189. package/docs/api/functions/sanitizeFilepath.md +1 -1
  190. package/docs/api/functions/saveConfigFile.md +1 -1
  191. package/docs/api/functions/scaleStrToParamsSize.md +1 -1
  192. package/docs/api/functions/shutdown.md +1 -1
  193. package/docs/api/functions/simplifyObjectArguments.md +1 -1
  194. package/docs/api/functions/sleep.md +1 -1
  195. package/docs/api/functions/sortedValues.md +4 -2
  196. package/docs/api/functions/splitChunks.md +2 -2
  197. package/docs/api/functions/splitParagraph.md +2 -2
  198. package/docs/api/functions/splitSentence.md +1 -1
  199. package/docs/api/functions/splitWords.md +1 -1
  200. package/docs/api/functions/stringifyYaml.md +1 -1
  201. package/docs/api/functions/stripConsoleColor.md +1 -1
  202. package/docs/api/functions/textToDate.md +1 -1
  203. package/docs/api/functions/throwError.md +1 -1
  204. package/docs/api/functions/toDate.md +7 -3
  205. package/docs/api/functions/toDateTime.md +1 -1
  206. package/docs/api/functions/trimStartOfStreamHelper.md +3 -3
  207. package/docs/api/functions/truncTo.md +1 -1
  208. package/docs/api/functions/truncateByToken.md +2 -2
  209. package/docs/api/functions/truncateToTokenLimit.md +2 -2
  210. package/docs/api/functions/truncateToTokenLimitEx.md +2 -2
  211. package/docs/api/functions/uuid.md +15 -6
  212. package/docs/api/functions/uuidStringify.md +1 -1
  213. package/docs/api/functions/uuidv1.md +5 -3
  214. package/docs/api/functions/uuidv4.md +5 -3
  215. package/docs/api/functions/uuidv5.md +5 -3
  216. package/docs/api/functions/uuidv6.md +61 -0
  217. package/docs/api/functions/uuidv7.md +61 -0
  218. package/docs/api/functions/wrapEventEmitter.md +1 -1
  219. package/docs/api/functions/xxhash.md +1 -1
  220. package/docs/api/functions/xxhash32.md +1 -1
  221. package/docs/api/functions/xxhash64.md +1 -1
  222. package/docs/api/functions/xxhashAsStr.md +1 -1
  223. package/docs/api/functions/yieldExec.md +1 -1
  224. package/docs/api/globals.md +11 -6
  225. package/docs/api/interfaces/AIChatAssistantMessageParam.md +12 -12
  226. package/docs/api/interfaces/AIChatContentPartImage.md +3 -3
  227. package/docs/api/interfaces/AIChatContentPartText.md +3 -3
  228. package/docs/api/interfaces/AIChatMessageParamBase.md +7 -7
  229. package/docs/api/interfaces/AIChatMessageToolCall.md +4 -4
  230. package/docs/api/interfaces/AIChatSystemMessageParam.md +9 -9
  231. package/docs/api/interfaces/AIChatToolChoiceFuncObject.md +3 -3
  232. package/docs/api/interfaces/AIChatToolChoiceObject.md +2 -2
  233. package/docs/api/interfaces/AIChatToolFunc.md +5 -5
  234. package/docs/api/interfaces/AIChatToolFuncParam.md +3 -3
  235. package/docs/api/interfaces/AIChatToolMessageParam.md +10 -10
  236. package/docs/api/interfaces/AIChatToolParam.md +2 -2
  237. package/docs/api/interfaces/AIChatToolTypeObject.md +2 -2
  238. package/docs/api/interfaces/AIChatUserMessageParam.md +13 -13
  239. package/docs/api/interfaces/AIChoiceConfig.md +8 -8
  240. package/docs/api/interfaces/AIResult.md +12 -8
  241. package/docs/api/interfaces/AIStreamParser.md +8 -6
  242. package/docs/api/interfaces/AIStreamParserOptions.md +2 -2
  243. package/docs/api/interfaces/BaseFunc.md +17 -17
  244. package/docs/api/interfaces/BaseFuncItem.md +15 -15
  245. package/docs/api/interfaces/BinarySemaphoreAcquireOptions.md +2 -2
  246. package/docs/api/interfaces/BinarySemaphoreOptions.md +5 -5
  247. package/docs/api/interfaces/BinarySemaphoreReleaseOptions.md +2 -2
  248. package/docs/api/interfaces/BinarySemaphoreReleaserFunc.md +3 -3
  249. package/docs/api/interfaces/CancelableAbilityOptions.md +4 -4
  250. package/docs/api/interfaces/ClientFuncItem.md +21 -25
  251. package/docs/api/interfaces/EventClientFuncParams.md +5 -5
  252. package/docs/api/interfaces/EventServerFuncParams.md +14 -6
  253. package/docs/api/interfaces/FewShotPromptTemplateOptions.md +9 -7
  254. package/docs/api/interfaces/FuncItem.md +18 -18
  255. package/docs/api/interfaces/FuncParam.md +5 -5
  256. package/docs/api/interfaces/FuncParams.md +1 -1
  257. package/docs/api/interfaces/Funcs.md +1 -1
  258. package/docs/api/interfaces/HashAlgoParams.md +4 -4
  259. package/docs/api/interfaces/IClientToolTransport.md +9 -9
  260. package/docs/api/interfaces/IFileMetaInfo.md +8 -8
  261. package/docs/api/interfaces/IPubSubClientTransport.md +31 -7
  262. package/docs/api/interfaces/IPubSubServerTransport.md +92 -47
  263. package/docs/api/interfaces/IReadTextFileChunksOptions.md +13 -13
  264. package/docs/api/interfaces/IServerToolTransport.md +19 -14
  265. package/docs/api/interfaces/IToolTransport.md +6 -6
  266. package/docs/api/interfaces/ITruncateToTokenLimitOptions.md +11 -11
  267. package/docs/api/interfaces/JsonFilter.md +1 -1
  268. package/docs/api/interfaces/ParseObjectArgumentOptions.md +11 -11
  269. package/docs/api/interfaces/ProbabilityItem.md +4 -4
  270. package/docs/api/interfaces/PromptExampleSelectorOptions.md +3 -3
  271. package/docs/api/interfaces/PubSubClientStream.md +26 -14
  272. package/docs/api/interfaces/PubSubServerSession.md +8 -8
  273. package/docs/api/interfaces/RemoteFuncItem.md +21 -25
  274. package/docs/api/interfaces/ReplacePlacehoderOptions.md +5 -5
  275. package/docs/api/interfaces/ResClientFuncParams.md +3 -3
  276. package/docs/api/interfaces/ResServerFuncParams.md +6 -6
  277. package/docs/api/interfaces/RpcMethodsClientFuncParams.md +2 -2
  278. package/docs/api/interfaces/RpcMethodsServerFuncParams.md +4 -4
  279. package/docs/api/interfaces/SectionStringOptions.md +3 -3
  280. package/docs/api/interfaces/SemaphoreOptions.md +7 -7
  281. package/docs/api/interfaces/SemaphoreTaskItem.md +6 -6
  282. package/docs/api/interfaces/ServerFuncItem.md +22 -26
  283. package/docs/api/interfaces/ServerFuncParams.md +3 -3
  284. package/docs/api/interfaces/SplitSentenceOptions.md +5 -5
  285. package/docs/api/interfaces/StreamCallbacksAndOptions.md +11 -7
  286. package/docs/api/interfaces/TaskAbortControllers.md +1 -1
  287. package/docs/api/interfaces/TaskPromise.md +17 -9
  288. package/docs/api/interfaces/ToolFuncPackage.md +5 -5
  289. package/docs/api/type-aliases/AIChatContentPart.md +2 -2
  290. package/docs/api/type-aliases/AIChatMessageParam.md +2 -2
  291. package/docs/api/type-aliases/AIChatRole.md +2 -2
  292. package/docs/api/type-aliases/AIChatToolChoiceParam.md +2 -2
  293. package/docs/api/type-aliases/AIMessageType.md +2 -2
  294. package/docs/api/type-aliases/AIModelNameRule.md +2 -2
  295. package/docs/api/type-aliases/AIModelNameRuleFn.md +2 -2
  296. package/docs/api/type-aliases/AIModelNameRules.md +2 -2
  297. package/docs/api/type-aliases/AITextGenerationFinishReason.md +2 -2
  298. package/docs/api/type-aliases/ActionName.md +2 -2
  299. package/docs/api/type-aliases/ArrayMergeWay.md +2 -2
  300. package/docs/api/type-aliases/AsyncTaskId.md +2 -2
  301. package/docs/api/type-aliases/BeforeShutdownListener.md +2 -2
  302. package/docs/api/type-aliases/EventErrorListenerFn.md +2 -2
  303. package/docs/api/type-aliases/EventListenerFn.md +2 -2
  304. package/docs/api/type-aliases/FuncParamType.md +2 -2
  305. package/docs/api/type-aliases/PromptExamples.md +5 -3
  306. package/docs/api/type-aliases/PubSubClientId.md +2 -2
  307. package/docs/api/type-aliases/PubSubCtx.md +24 -4
  308. package/docs/api/type-aliases/RpcMethodHandler.md +2 -2
  309. package/docs/api/type-aliases/SSEClient.md +53 -0
  310. package/docs/api/type-aliases/SemaphoreIsReadyFuncType.md +2 -2
  311. package/docs/api/type-aliases/TFunc.md +2 -2
  312. package/docs/api/type-aliases/UUIDVersions.md +11 -0
  313. package/docs/api/variables/AIChatRoles.md +1 -1
  314. package/docs/api/variables/AIMessageTypes.md +1 -1
  315. package/docs/api/variables/AITextGenerationFinishReasons.md +1 -1
  316. package/docs/api/variables/ActionNames.md +1 -1
  317. package/docs/api/variables/ArrayMergeWay.md +2 -2
  318. package/docs/api/variables/ArrayMergeWaySymbol.md +2 -2
  319. package/docs/api/variables/ClientEventPrefix.md +11 -0
  320. package/docs/api/variables/ClientToolFuncSchema.md +4 -2
  321. package/docs/api/variables/DEFAULT_CONFIG_NAME.md +1 -1
  322. package/docs/api/variables/DefaultAsyncSemaphoreCapacity.md +1 -1
  323. package/docs/api/variables/EventBusName.md +1 -1
  324. package/docs/api/variables/EventName.md +1 -1
  325. package/docs/api/variables/FuncMetaSymbol.md +2 -2
  326. package/docs/api/variables/LLM_TOKENIZER_NAMES.md +4 -4
  327. package/docs/api/variables/LLM_TOKENIZER_NAMES_MAP.md +1 -1
  328. package/docs/api/variables/PASSING_SCORE.md +1 -1
  329. package/docs/api/variables/RStreamErrCode.md +1 -1
  330. package/docs/api/variables/RemoteToolFuncSchema.md +4 -2
  331. package/docs/api/variables/ResponseRStreamErrCode.md +1 -1
  332. package/docs/api/variables/RpcMethodsClientToolSchema.md +4 -2
  333. package/docs/api/variables/RpcMethodsServerToolSchema.md +2 -2
  334. package/docs/api/variables/SHUTDOWN_SIGNALS.md +1 -1
  335. package/docs/api/variables/SSEChannelAlreadyClosedErrCode.md +1 -1
  336. package/docs/api/variables/SecondaryCache.md +1 -1
  337. package/docs/api/variables/ServerToolFuncSchema.md +4 -2
  338. package/docs/api/variables/StrangeHumanName.md +1 -1
  339. package/docs/api/variables/ToolAsyncCancelableBit.md +1 -1
  340. package/docs/api/variables/ToolAsyncMultiTaskBit.md +1 -1
  341. package/docs/api/variables/ToolAsyncPriorityBit.md +1 -1
  342. package/docs/api/variables/ToolFuncSchema.md +4 -2
  343. package/docs/api/variables/backendEventable.md +11 -0
  344. package/docs/api/variables/base32768.md +1 -1
  345. package/docs/api/variables/event.md +1 -1
  346. package/docs/api/variables/eventClient.md +1 -1
  347. package/docs/api/variables/eventServer.md +1 -1
  348. package/docs/api/variables/lrucache.md +1 -1
  349. package/docs/api/variables/makeToolFuncCancelable.md +11 -0
  350. package/docs/api/{functions → variables}/wait.md +16 -14
  351. package/docs/pubsub.md +427 -105
  352. package/docs/server_client_tools.md +5 -3
  353. package/docs/toolFunc.md +3 -1
  354. package/package.json +10 -9
  355. package/dist/chunk-4XRPAC7C.mjs +0 -1
  356. package/docs/api/functions/backendEventable.md +0 -29
  357. package/docs/api/functions/makeToolFuncCancelable.md +0 -29
  358. package/docs/api/interfaces/PubSubClient.md +0 -27
  359. package/docs/api/namespaces/uuidv5/README.md +0 -12
@@ -8,7 +8,7 @@
8
8
 
9
9
  > **isListItemString**(`text`): `null` \| `RegExpExecArray`
10
10
 
11
- Defined in: [@isdk/ai-tools/packages/ai-tool/src/utils/split-sentence.ts:223](https://github.com/isdk/ai-tool.js/blob/4ebf370aaec9c78535cb40ffc19656d7bddcb145/src/utils/split-sentence.ts#L223)
11
+ Defined in: [@isdk/ai-tools/packages/ai-tool/src/utils/split-sentence.ts:223](https://github.com/isdk/ai-tool.js/blob/fb1809b53cc75a30928176c26910792b6b8a96e1/src/utils/split-sentence.ts#L223)
12
12
 
13
13
  ## Parameters
14
14
 
@@ -6,9 +6,9 @@
6
6
 
7
7
  # Function: isModelNameMatched()
8
8
 
9
- > **isModelNameMatched**(`modelName`, `rule`?): `undefined` \| `string` \| `RegExpExecArray`
9
+ > **isModelNameMatched**(`modelName`, `rule?`): `undefined` \| `string` \| `RegExpExecArray`
10
10
 
11
- Defined in: [@isdk/ai-tools/packages/ai-tool/src/utils/is-model-name-matched.ts:21](https://github.com/isdk/ai-tool.js/blob/4ebf370aaec9c78535cb40ffc19656d7bddcb145/src/utils/is-model-name-matched.ts#L21)
11
+ Defined in: [@isdk/ai-tools/packages/ai-tool/src/utils/is-model-name-matched.ts:21](https://github.com/isdk/ai-tool.js/blob/fb1809b53cc75a30928176c26910792b6b8a96e1/src/utils/is-model-name-matched.ts#L21)
12
12
 
13
13
  Checks if the provided model name matches the given rule.
14
14
 
@@ -8,7 +8,7 @@
8
8
 
9
9
  > **isPunctuationChar**(`char`): `boolean`
10
10
 
11
- Defined in: [@isdk/ai-tools/packages/ai-tool/src/utils/split-sentence.ts:245](https://github.com/isdk/ai-tool.js/blob/4ebf370aaec9c78535cb40ffc19656d7bddcb145/src/utils/split-sentence.ts#L245)
11
+ Defined in: [@isdk/ai-tools/packages/ai-tool/src/utils/split-sentence.ts:245](https://github.com/isdk/ai-tool.js/blob/fb1809b53cc75a30928176c26910792b6b8a96e1/src/utils/split-sentence.ts#L245)
12
12
 
13
13
  Checks if the given character is a punctuation mark.
14
14
  This function supports both Chinese and English punctuation marks.
@@ -8,7 +8,7 @@
8
8
 
9
9
  > **isQuoted**(`s`): `boolean`
10
10
 
11
- Defined in: [@isdk/ai-tools/packages/ai-tool/src/utils/parse-command.ts:195](https://github.com/isdk/ai-tool.js/blob/4ebf370aaec9c78535cb40ffc19656d7bddcb145/src/utils/parse-command.ts#L195)
11
+ Defined in: [@isdk/ai-tools/packages/ai-tool/src/utils/parse-command.ts:195](https://github.com/isdk/ai-tool.js/blob/fb1809b53cc75a30928176c26910792b6b8a96e1/src/utils/parse-command.ts#L195)
12
12
 
13
13
  ## Parameters
14
14
 
@@ -8,7 +8,7 @@
8
8
 
9
9
  > **isRegExp**(`value`): `boolean`
10
10
 
11
- Defined in: [@isdk/ai-tools/packages/ai-tool/src/utils/isRegExp.ts:3](https://github.com/isdk/ai-tool.js/blob/4ebf370aaec9c78535cb40ffc19656d7bddcb145/src/utils/isRegExp.ts#L3)
11
+ Defined in: [@isdk/ai-tools/packages/ai-tool/src/utils/isRegExp.ts:3](https://github.com/isdk/ai-tool.js/blob/fb1809b53cc75a30928176c26910792b6b8a96e1/src/utils/isRegExp.ts#L3)
12
12
 
13
13
  ## Parameters
14
14
 
@@ -8,7 +8,7 @@
8
8
 
9
9
  > **isSameString**(`str1`, `str2`): `boolean`
10
10
 
11
- Defined in: [@isdk/ai-tools/packages/ai-tool/src/utils/is-same-string.ts:13](https://github.com/isdk/ai-tool.js/blob/4ebf370aaec9c78535cb40ffc19656d7bddcb145/src/utils/is-same-string.ts#L13)
11
+ Defined in: [@isdk/ai-tools/packages/ai-tool/src/utils/is-same-string.ts:13](https://github.com/isdk/ai-tool.js/blob/fb1809b53cc75a30928176c26910792b6b8a96e1/src/utils/is-same-string.ts#L13)
12
12
 
13
13
  Compares two strings to check if they are the same.
14
14
 
@@ -6,9 +6,9 @@
6
6
 
7
7
  # Function: isSectionString()
8
8
 
9
- > **isSectionString**(`text`, `options`?): `null` \| `RegExpExecArray`
9
+ > **isSectionString**(`text`, `options?`): `null` \| `RegExpExecArray`
10
10
 
11
- Defined in: [@isdk/ai-tools/packages/ai-tool/src/utils/split-sentence.ts:197](https://github.com/isdk/ai-tool.js/blob/4ebf370aaec9c78535cb40ffc19656d7bddcb145/src/utils/split-sentence.ts#L197)
11
+ Defined in: [@isdk/ai-tools/packages/ai-tool/src/utils/split-sentence.ts:197](https://github.com/isdk/ai-tool.js/blob/fb1809b53cc75a30928176c26910792b6b8a96e1/src/utils/split-sentence.ts#L197)
12
12
 
13
13
  ## Parameters
14
14
 
@@ -8,7 +8,7 @@
8
8
 
9
9
  > **isSentenceEnding**(`text`): `boolean`
10
10
 
11
- Defined in: [@isdk/ai-tools/packages/ai-tool/src/utils/split-sentence.ts:187](https://github.com/isdk/ai-tool.js/blob/4ebf370aaec9c78535cb40ffc19656d7bddcb145/src/utils/split-sentence.ts#L187)
11
+ Defined in: [@isdk/ai-tools/packages/ai-tool/src/utils/split-sentence.ts:187](https://github.com/isdk/ai-tool.js/blob/fb1809b53cc75a30928176c26910792b6b8a96e1/src/utils/split-sentence.ts#L187)
12
12
 
13
13
  ## Parameters
14
14
 
@@ -8,7 +8,7 @@
8
8
 
9
9
  > **isSepLineString**(`text`): `null` \| `RegExpExecArray`
10
10
 
11
- Defined in: [@isdk/ai-tools/packages/ai-tool/src/utils/split-sentence.ts:227](https://github.com/isdk/ai-tool.js/blob/4ebf370aaec9c78535cb40ffc19656d7bddcb145/src/utils/split-sentence.ts#L227)
11
+ Defined in: [@isdk/ai-tools/packages/ai-tool/src/utils/split-sentence.ts:227](https://github.com/isdk/ai-tool.js/blob/fb1809b53cc75a30928176c26910792b6b8a96e1/src/utils/split-sentence.ts#L227)
12
12
 
13
13
  ## Parameters
14
14
 
@@ -8,7 +8,7 @@
8
8
 
9
9
  > **isStrWrapped**(`s`, `pairs`): `boolean`
10
10
 
11
- Defined in: [@isdk/ai-tools/packages/ai-tool/src/utils/parse-command.ts:200](https://github.com/isdk/ai-tool.js/blob/4ebf370aaec9c78535cb40ffc19656d7bddcb145/src/utils/parse-command.ts#L200)
11
+ Defined in: [@isdk/ai-tools/packages/ai-tool/src/utils/parse-command.ts:200](https://github.com/isdk/ai-tool.js/blob/fb1809b53cc75a30928176c26910792b6b8a96e1/src/utils/parse-command.ts#L200)
12
12
 
13
13
  ## Parameters
14
14
 
@@ -8,7 +8,7 @@
8
8
 
9
9
  > **isSubdirectory**(`parentDir`, `childDir`): `boolean`
10
10
 
11
- Defined in: [@isdk/ai-tools/packages/ai-tool/src/utils/has-directory-in.ts:17](https://github.com/isdk/ai-tool.js/blob/4ebf370aaec9c78535cb40ffc19656d7bddcb145/src/utils/has-directory-in.ts#L17)
11
+ Defined in: [@isdk/ai-tools/packages/ai-tool/src/utils/has-directory-in.ts:17](https://github.com/isdk/ai-tool.js/blob/fb1809b53cc75a30928176c26910792b6b8a96e1/src/utils/has-directory-in.ts#L17)
12
12
 
13
13
  Determines whether the `childDir` is a subdirectory of `parentDir`.
14
14
 
@@ -6,9 +6,9 @@
6
6
 
7
7
  # Function: isTitleString()
8
8
 
9
- > **isTitleString**(`text`, `options`?): `null` \| `RegExpExecArray`
9
+ > **isTitleString**(`text`, `options?`): `null` \| `RegExpExecArray`
10
10
 
11
- Defined in: [@isdk/ai-tools/packages/ai-tool/src/utils/split-sentence.ts:204](https://github.com/isdk/ai-tool.js/blob/4ebf370aaec9c78535cb40ffc19656d7bddcb145/src/utils/split-sentence.ts#L204)
11
+ Defined in: [@isdk/ai-tools/packages/ai-tool/src/utils/split-sentence.ts:204](https://github.com/isdk/ai-tool.js/blob/fb1809b53cc75a30928176c26910792b6b8a96e1/src/utils/split-sentence.ts#L204)
12
12
 
13
13
  ## Parameters
14
14
 
@@ -8,7 +8,7 @@
8
8
 
9
9
  > **isWebStream**(`val`): val is ReadableStream\<any\> \| WritableStream\<any\>
10
10
 
11
- Defined in: [@isdk/ai-tools/packages/ai-tool/src/utils/stream/is-web-stream.ts:1](https://github.com/isdk/ai-tool.js/blob/4ebf370aaec9c78535cb40ffc19656d7bddcb145/src/utils/stream/is-web-stream.ts#L1)
11
+ Defined in: [@isdk/ai-tools/packages/ai-tool/src/utils/stream/is-web-stream.ts:1](https://github.com/isdk/ai-tool.js/blob/fb1809b53cc75a30928176c26910792b6b8a96e1/src/utils/stream/is-web-stream.ts#L1)
12
12
 
13
13
  ## Parameters
14
14
 
@@ -8,7 +8,7 @@
8
8
 
9
9
  > **joinSplitWords**(`input`, `separator`): `string`
10
10
 
11
- Defined in: [@isdk/ai-tools/packages/ai-tool/src/utils/split-words.ts:18](https://github.com/isdk/ai-tool.js/blob/4ebf370aaec9c78535cb40ffc19656d7bddcb145/src/utils/split-words.ts#L18)
11
+ Defined in: [@isdk/ai-tools/packages/ai-tool/src/utils/split-words.ts:18](https://github.com/isdk/ai-tool.js/blob/fb1809b53cc75a30928176c26910792b6b8a96e1/src/utils/split-words.ts#L18)
12
12
 
13
13
  Splits a string into words using splitWords rules, then joins them with a separator
14
14
 
@@ -6,9 +6,9 @@
6
6
 
7
7
  # Function: jsonFilterToWhere()
8
8
 
9
- > **jsonFilterToWhere**(`filter`, `wrapKey`?): `string`
9
+ > **jsonFilterToWhere**(`filter`, `wrapKey?`): `string`
10
10
 
11
- Defined in: [@isdk/ai-tools/packages/ai-tool/src/utils/json-filter.ts:123](https://github.com/isdk/ai-tool.js/blob/4ebf370aaec9c78535cb40ffc19656d7bddcb145/src/utils/json-filter.ts#L123)
11
+ Defined in: [@isdk/ai-tools/packages/ai-tool/src/utils/json-filter.ts:123](https://github.com/isdk/ai-tool.js/blob/fb1809b53cc75a30928176c26910792b6b8a96e1/src/utils/json-filter.ts#L123)
12
12
 
13
13
  Converts a filter object to a SQLite WHERE clause.
14
14
 
@@ -6,9 +6,9 @@
6
6
 
7
7
  # Function: jsonToMarkdownStr()
8
8
 
9
- > **jsonToMarkdownStr**(`mem`, `options`?): `string`
9
+ > **jsonToMarkdownStr**(`mem`, `options?`): `string`
10
10
 
11
- Defined in: [@isdk/ai-tools/packages/ai-tool/src/utils/json-to-markdown-str.ts:2](https://github.com/isdk/ai-tool.js/blob/4ebf370aaec9c78535cb40ffc19656d7bddcb145/src/utils/json-to-markdown-str.ts#L2)
11
+ Defined in: [@isdk/ai-tools/packages/ai-tool/src/utils/json-to-markdown-str.ts:2](https://github.com/isdk/ai-tool.js/blob/fb1809b53cc75a30928176c26910792b6b8a96e1/src/utils/json-to-markdown-str.ts#L2)
12
12
 
13
13
  ## Parameters
14
14
 
@@ -8,7 +8,7 @@
8
8
 
9
9
  > **loadAIConfig**(`config`): `any`
10
10
 
11
- Defined in: [@isdk/ai-tools/packages/ai-tool/src/utils/load-config.ts:55](https://github.com/isdk/ai-tool.js/blob/4ebf370aaec9c78535cb40ffc19656d7bddcb145/src/utils/load-config.ts#L55)
11
+ Defined in: [@isdk/ai-tools/packages/ai-tool/src/utils/load-config.ts:58](https://github.com/isdk/ai-tool.js/blob/fb1809b53cc75a30928176c26910792b6b8a96e1/src/utils/load-config.ts#L58)
12
12
 
13
13
  ## Parameters
14
14
 
@@ -8,7 +8,7 @@
8
8
 
9
9
  > **loadConfig**(`filename`, `config`): `any`
10
10
 
11
- Defined in: [@isdk/ai-tools/packages/ai-tool/src/utils/load-config.ts:27](https://github.com/isdk/ai-tool.js/blob/4ebf370aaec9c78535cb40ffc19656d7bddcb145/src/utils/load-config.ts#L27)
11
+ Defined in: [@isdk/ai-tools/packages/ai-tool/src/utils/load-config.ts:30](https://github.com/isdk/ai-tool.js/blob/fb1809b53cc75a30928176c26910792b6b8a96e1/src/utils/load-config.ts#L30)
12
12
 
13
13
  ## Parameters
14
14
 
@@ -8,7 +8,7 @@
8
8
 
9
9
  > **loadConfigFile**(`filename`, `searchPaths`): `any`
10
10
 
11
- Defined in: [@isdk/ai-tools/packages/ai-tool/src/utils/load-config.ts:9](https://github.com/isdk/ai-tool.js/blob/4ebf370aaec9c78535cb40ffc19656d7bddcb145/src/utils/load-config.ts#L9)
11
+ Defined in: [@isdk/ai-tools/packages/ai-tool/src/utils/load-config.ts:9](https://github.com/isdk/ai-tool.js/blob/fb1809b53cc75a30928176c26910792b6b8a96e1/src/utils/load-config.ts#L9)
12
12
 
13
13
  ## Parameters
14
14
 
@@ -6,9 +6,9 @@
6
6
 
7
7
  # Function: loadFileFromPaths()
8
8
 
9
- > **loadFileFromPaths**(`filename`, `searchPaths`?, `extNames`?, `options`?): `Buffer`\<`ArrayBufferLike`\>
9
+ > **loadFileFromPaths**(`filename`, `searchPaths?`, `extNames?`, `options?`): `Buffer`\<`ArrayBufferLike`\>
10
10
 
11
- Defined in: [@isdk/ai-tools/packages/ai-tool/src/utils/load-file-from-paths.ts:44](https://github.com/isdk/ai-tool.js/blob/4ebf370aaec9c78535cb40ffc19656d7bddcb145/src/utils/load-file-from-paths.ts#L44)
11
+ Defined in: [@isdk/ai-tools/packages/ai-tool/src/utils/load-file-from-paths.ts:44](https://github.com/isdk/ai-tool.js/blob/fb1809b53cc75a30928176c26910792b6b8a96e1/src/utils/load-file-from-paths.ts#L44)
12
12
 
13
13
  Loads a file from given paths, optionally searching for specific extensions.
14
14
 
@@ -6,9 +6,9 @@
6
6
 
7
7
  # Function: loadTextFromPaths()
8
8
 
9
- > **loadTextFromPaths**(`filename`, `searchPaths`?, `extNames`?, `options`?, `exclude`?): `string`
9
+ > **loadTextFromPaths**(`filename`, `searchPaths?`, `extNames?`, `options?`, `exclude?`): `string`
10
10
 
11
- Defined in: [@isdk/ai-tools/packages/ai-tool/src/utils/load-file-from-paths.ts:101](https://github.com/isdk/ai-tool.js/blob/4ebf370aaec9c78535cb40ffc19656d7bddcb145/src/utils/load-file-from-paths.ts#L101)
11
+ Defined in: [@isdk/ai-tools/packages/ai-tool/src/utils/load-file-from-paths.ts:101](https://github.com/isdk/ai-tool.js/blob/fb1809b53cc75a30928176c26910792b6b8a96e1/src/utils/load-file-from-paths.ts#L101)
12
12
 
13
13
  ## Parameters
14
14
 
@@ -26,7 +26,7 @@ Defined in: [@isdk/ai-tools/packages/ai-tool/src/utils/load-file-from-paths.ts:1
26
26
 
27
27
  ### options?
28
28
 
29
- `BufferEncoding` | \{ `encoding`: BufferEncoding \| undefined; `filepath`: `string`; `signal`: `AbortSignal`; \}
29
+ `BufferEncoding` | \{ `encoding?`: BufferEncoding \| undefined; `filepath?`: `string`; `signal?`: `AbortSignal`; \}
30
30
 
31
31
  ### exclude?
32
32
 
@@ -8,7 +8,7 @@
8
8
 
9
9
  > **\_lrucache**(`this`, `__namedParameters`): `Cache`
10
10
 
11
- Defined in: [@isdk/ai-tools/packages/ai-tool/src/funcs/lrucache.ts:8](https://github.com/isdk/ai-tool.js/blob/4ebf370aaec9c78535cb40ffc19656d7bddcb145/src/funcs/lrucache.ts#L8)
11
+ Defined in: [@isdk/ai-tools/packages/ai-tool/src/funcs/lrucache.ts:8](https://github.com/isdk/ai-tool.js/blob/fb1809b53cc75a30928176c26910792b6b8a96e1/src/funcs/lrucache.ts#L8)
12
12
 
13
13
  ## Parameters
14
14
 
@@ -8,7 +8,7 @@
8
8
 
9
9
  > **matchUrlProtocol**(`name`): `undefined` \| `string`
10
10
 
11
- Defined in: [@isdk/ai-tools/packages/ai-tool/src/utils/match-url-protocol.ts:23](https://github.com/isdk/ai-tool.js/blob/4ebf370aaec9c78535cb40ffc19656d7bddcb145/src/utils/match-url-protocol.ts#L23)
11
+ Defined in: [@isdk/ai-tools/packages/ai-tool/src/utils/match-url-protocol.ts:23](https://github.com/isdk/ai-tool.js/blob/fb1809b53cc75a30928176c26910792b6b8a96e1/src/utils/match-url-protocol.ts#L23)
12
12
 
13
13
  Extracts the protocol part from a URL-like string.
14
14
 
@@ -6,13 +6,15 @@
6
6
 
7
7
  # Function: memoize()
8
8
 
9
- > **memoize**\<`F`\>(`fn`, `options`?): `F` & `Memoized`\<`F`\>
9
+ > **memoize**\<`F`\>(`fn`, `options?`): `F` & `Memoized`\<`F`\>
10
10
 
11
- Defined in: [@isdk/ai-tools/packages/ai-tool/src/utils/memoize.ts:14](https://github.com/isdk/ai-tool.js/blob/4ebf370aaec9c78535cb40ffc19656d7bddcb145/src/utils/memoize.ts#L14)
11
+ Defined in: [@isdk/ai-tools/packages/ai-tool/src/utils/memoize.ts:14](https://github.com/isdk/ai-tool.js/blob/fb1809b53cc75a30928176c26910792b6b8a96e1/src/utils/memoize.ts#L14)
12
12
 
13
13
  ## Type Parameters
14
14
 
15
- **F** *extends* (...`args`) => `any`
15
+ ### F
16
+
17
+ `F` *extends* (...`args`) => `any`
16
18
 
17
19
  ## Parameters
18
20
 
@@ -8,7 +8,7 @@
8
8
 
9
9
  > **mergeArray**(`targetArr`, `srcArr`): `any`[]
10
10
 
11
- Defined in: [@isdk/ai-tools/packages/ai-tool/src/utils/merge-with-concat.ts:100](https://github.com/isdk/ai-tool.js/blob/4ebf370aaec9c78535cb40ffc19656d7bddcb145/src/utils/merge-with-concat.ts#L100)
11
+ Defined in: [@isdk/ai-tools/packages/ai-tool/src/utils/merge-with-concat.ts:100](https://github.com/isdk/ai-tool.js/blob/fb1809b53cc75a30928176c26910792b6b8a96e1/src/utils/merge-with-concat.ts#L100)
12
12
 
13
13
  Merges two arrays based on a custom strategy defined by the first element of the target array.
14
14
 
@@ -8,7 +8,7 @@
8
8
 
9
9
  > **messagesToText**(`messages`): `string`
10
10
 
11
- Defined in: [@isdk/ai-tools/packages/ai-tool/src/utils/chat.ts:158](https://github.com/isdk/ai-tool.js/blob/4ebf370aaec9c78535cb40ffc19656d7bddcb145/src/utils/chat.ts#L158)
11
+ Defined in: [@isdk/ai-tools/packages/ai-tool/src/utils/chat.ts:158](https://github.com/isdk/ai-tool.js/blob/fb1809b53cc75a30928176c26910792b6b8a96e1/src/utils/chat.ts#L158)
12
12
 
13
13
  ## Parameters
14
14
 
@@ -0,0 +1,45 @@
1
+ [**@isdk/ai-tool**](../README.md)
2
+
3
+ ***
4
+
5
+ [@isdk/ai-tool](../globals.md) / nanoid
6
+
7
+ # Function: nanoid()
8
+
9
+ > **nanoid**\<`Type`\>(`size?`): `Type`
10
+
11
+ Defined in: @isdk/ai-tools/node\_modules/.pnpm/nanoid@5.1.5/node\_modules/nanoid/index.d.ts:28
12
+
13
+ Generate secure URL-friendly unique ID.
14
+
15
+ By default, the ID will have 21 symbols to have a collision probability
16
+ similar to UUID v4.
17
+
18
+ ```js
19
+ import { nanoid } from 'nanoid'
20
+ model.id = nanoid() //=> "Uakgb_J5m9g-0JDMbcJqL"
21
+ ```
22
+
23
+ ## Type Parameters
24
+
25
+ ### Type
26
+
27
+ `Type` *extends* `string`
28
+
29
+ ## Parameters
30
+
31
+ ### size?
32
+
33
+ `number`
34
+
35
+ Size of the ID. The default size is 21.
36
+
37
+ ## Returns
38
+
39
+ `Type`
40
+
41
+ A random string.
42
+
43
+ ## Typeparam
44
+
45
+ Type The ID type to replace `string` with some opaque type.
@@ -8,7 +8,7 @@
8
8
 
9
9
  > **normalizePath**(`inputPath`): `string`
10
10
 
11
- Defined in: [@isdk/ai-tools/packages/ai-tool/src/utils/has-directory-in.ts:146](https://github.com/isdk/ai-tool.js/blob/4ebf370aaec9c78535cb40ffc19656d7bddcb145/src/utils/has-directory-in.ts#L146)
11
+ Defined in: [@isdk/ai-tools/packages/ai-tool/src/utils/has-directory-in.ts:146](https://github.com/isdk/ai-tool.js/blob/fb1809b53cc75a30928176c26910792b6b8a96e1/src/utils/has-directory-in.ts#L146)
12
12
 
13
13
  ## Parameters
14
14
 
@@ -8,7 +8,7 @@
8
8
 
9
9
  > **paramsSizeToScaleStr**(`paramsSize`, `fractionDigits`): `string`
10
10
 
11
- Defined in: [@isdk/ai-tools/packages/ai-tool/src/utils/convert-params-size.ts:11](https://github.com/isdk/ai-tool.js/blob/4ebf370aaec9c78535cb40ffc19656d7bddcb145/src/utils/convert-params-size.ts#L11)
11
+ Defined in: [@isdk/ai-tools/packages/ai-tool/src/utils/convert-params-size.ts:11](https://github.com/isdk/ai-tool.js/blob/fb1809b53cc75a30928176c26910792b6b8a96e1/src/utils/convert-params-size.ts#L11)
12
12
 
13
13
  Formats a parameter size in bytes into a string with an appropriate scale (T, B, M, or K),
14
14
  optionally specifying the number of fractional digits to display.
@@ -6,9 +6,9 @@
6
6
 
7
7
  # Function: parseCommand()
8
8
 
9
- > **parseCommand**(`commandStr`, `scope`?, `options`?): `Promise`\<`undefined` \| \{ `args`: `Record`\<`string`, `any`\>; `command`: `string`; \}\>
9
+ > **parseCommand**(`commandStr`, `scope?`, `options?`): `Promise`\<`undefined` \| \{ `args?`: `Record`\<`string`, `any`\>; `command`: `string`; \}\>
10
10
 
11
- Defined in: [@isdk/ai-tools/packages/ai-tool/src/utils/parse-command.ts:446](https://github.com/isdk/ai-tool.js/blob/4ebf370aaec9c78535cb40ffc19656d7bddcb145/src/utils/parse-command.ts#L446)
11
+ Defined in: [@isdk/ai-tools/packages/ai-tool/src/utils/parse-command.ts:446](https://github.com/isdk/ai-tool.js/blob/fb1809b53cc75a30928176c26910792b6b8a96e1/src/utils/parse-command.ts#L446)
12
12
 
13
13
  ## Parameters
14
14
 
@@ -26,4 +26,4 @@ Defined in: [@isdk/ai-tools/packages/ai-tool/src/utils/parse-command.ts:446](htt
26
26
 
27
27
  ## Returns
28
28
 
29
- `Promise`\<`undefined` \| \{ `args`: `Record`\<`string`, `any`\>; `command`: `string`; \}\>
29
+ `Promise`\<`undefined` \| \{ `args?`: `Record`\<`string`, `any`\>; `command`: `string`; \}\>
@@ -6,17 +6,21 @@
6
6
 
7
7
  # Function: parseDateFormat()
8
8
 
9
- > **parseDateFormat**\<`DateType`, `ResultDate`\>(`dateStr`, `formatStr`, `referenceDate`, `options`?): `ResultDate`
9
+ > **parseDateFormat**\<`DateType`, `ResultDate`\>(`dateStr`, `formatStr`, `referenceDate`, `options?`): `ResultDate`
10
10
 
11
11
  Defined in: @isdk/ai-tools/node\_modules/.pnpm/date-fns@4.1.0/node\_modules/date-fns/parse.d.ts:319
12
12
 
13
13
  ## Type Parameters
14
14
 
15
- **DateType** *extends* `Date`
15
+ ### DateType
16
+
17
+ `DateType` *extends* `Date`
16
18
 
17
19
  The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
18
20
 
19
- **ResultDate** *extends* `Date` = `DateType`
21
+ ### ResultDate
22
+
23
+ `ResultDate` *extends* `Date` = `DateType`
20
24
 
21
25
  The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments.
22
26
 
@@ -6,17 +6,21 @@
6
6
 
7
7
  # Function: parseISO()
8
8
 
9
- > **parseISO**\<`DateType`, `ResultDate`\>(`argument`, `options`?): `ResultDate`
9
+ > **parseISO**\<`DateType`, `ResultDate`\>(`argument`, `options?`): `ResultDate`
10
10
 
11
11
  Defined in: @isdk/ai-tools/node\_modules/.pnpm/date-fns@4.1.0/node\_modules/date-fns/parseISO.d.ts:43
12
12
 
13
13
  ## Type Parameters
14
14
 
15
- **DateType** *extends* `Date`
15
+ ### DateType
16
+
17
+ `DateType` *extends* `Date`
16
18
 
17
19
  The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
18
20
 
19
- **ResultDate** *extends* `Date` = `DateType`
21
+ ### ResultDate
22
+
23
+ `ResultDate` *extends* `Date` = `DateType`
20
24
 
21
25
  The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments.
22
26
 
@@ -6,9 +6,9 @@
6
6
 
7
7
  # Function: parseJsJson()
8
8
 
9
- > **parseJsJson**(`input`, `scope`?): `Promise`\<`any`\>
9
+ > **parseJsJson**(`input`, `scope?`): `Promise`\<`any`\>
10
10
 
11
- Defined in: [@isdk/ai-tools/packages/ai-tool/src/utils/parse-js-json.ts:16](https://github.com/isdk/ai-tool.js/blob/4ebf370aaec9c78535cb40ffc19656d7bddcb145/src/utils/parse-js-json.ts#L16)
11
+ Defined in: [@isdk/ai-tools/packages/ai-tool/src/utils/parse-js-json.ts:16](https://github.com/isdk/ai-tool.js/blob/fb1809b53cc75a30928176c26910792b6b8a96e1/src/utils/parse-js-json.ts#L16)
12
12
 
13
13
  Parses a JavaScript string into a JSON object.
14
14
 
@@ -6,9 +6,9 @@
6
6
 
7
7
  # Function: parseJsJsonSimpleSync()
8
8
 
9
- > **parseJsJsonSimpleSync**(`input`, `scope`?): `any`
9
+ > **parseJsJsonSimpleSync**(`input`, `scope?`): `any`
10
10
 
11
- Defined in: [@isdk/ai-tools/packages/ai-tool/src/utils/parse-js-json.ts:28](https://github.com/isdk/ai-tool.js/blob/4ebf370aaec9c78535cb40ffc19656d7bddcb145/src/utils/parse-js-json.ts#L28)
11
+ Defined in: [@isdk/ai-tools/packages/ai-tool/src/utils/parse-js-json.ts:28](https://github.com/isdk/ai-tool.js/blob/fb1809b53cc75a30928176c26910792b6b8a96e1/src/utils/parse-js-json.ts#L28)
12
12
 
13
13
  ## Parameters
14
14
 
@@ -6,9 +6,9 @@
6
6
 
7
7
  # Function: parseObjectArgInfo()
8
8
 
9
- > **parseObjectArgInfo**(`argInfo`, `ix`, `scope`?, `options`?): `Promise`\<`string`\>
9
+ > **parseObjectArgInfo**(`argInfo`, `ix`, `scope?`, `options?`): `Promise`\<`string`\>
10
10
 
11
- Defined in: [@isdk/ai-tools/packages/ai-tool/src/utils/parse-command.ts:304](https://github.com/isdk/ai-tool.js/blob/4ebf370aaec9c78535cb40ffc19656d7bddcb145/src/utils/parse-command.ts#L304)
11
+ Defined in: [@isdk/ai-tools/packages/ai-tool/src/utils/parse-command.ts:304](https://github.com/isdk/ai-tool.js/blob/fb1809b53cc75a30928176c26910792b6b8a96e1/src/utils/parse-command.ts#L304)
12
12
 
13
13
  ## Parameters
14
14
 
@@ -6,9 +6,9 @@
6
6
 
7
7
  # Function: parseObjectArgumentInfos()
8
8
 
9
- > **parseObjectArgumentInfos**(`args`, `scope`?, `options`?): `Promise`\<`any`\>
9
+ > **parseObjectArgumentInfos**(`args`, `scope?`, `options?`): `Promise`\<`any`\>
10
10
 
11
- Defined in: [@isdk/ai-tools/packages/ai-tool/src/utils/parse-command.ts:138](https://github.com/isdk/ai-tool.js/blob/4ebf370aaec9c78535cb40ffc19656d7bddcb145/src/utils/parse-command.ts#L138)
11
+ Defined in: [@isdk/ai-tools/packages/ai-tool/src/utils/parse-command.ts:138](https://github.com/isdk/ai-tool.js/blob/fb1809b53cc75a30928176c26910792b6b8a96e1/src/utils/parse-command.ts#L138)
12
12
 
13
13
  ## Parameters
14
14
 
@@ -6,9 +6,9 @@
6
6
 
7
7
  # Function: parseObjectArguments()
8
8
 
9
- > **parseObjectArguments**(`argsStr`, `scope`?, `options`?): `Promise`\<`any`\>
9
+ > **parseObjectArguments**(`argsStr`, `scope?`, `options?`): `Promise`\<`any`\>
10
10
 
11
- Defined in: [@isdk/ai-tools/packages/ai-tool/src/utils/parse-command.ts:71](https://github.com/isdk/ai-tool.js/blob/4ebf370aaec9c78535cb40ffc19656d7bddcb145/src/utils/parse-command.ts#L71)
11
+ Defined in: [@isdk/ai-tools/packages/ai-tool/src/utils/parse-command.ts:71](https://github.com/isdk/ai-tool.js/blob/fb1809b53cc75a30928176c26910792b6b8a96e1/src/utils/parse-command.ts#L71)
12
12
 
13
13
  Asynchronously parses a string of object arguments into an actual object.
14
14
 
@@ -6,9 +6,9 @@
6
6
 
7
7
  # Function: parseObjectArgumentsAsArgInfos()
8
8
 
9
- > **parseObjectArgumentsAsArgInfos**(`argsStr`, `scope`?, `options`?): `ArgInfo`[]
9
+ > **parseObjectArgumentsAsArgInfos**(`argsStr`, `scope?`, `options?`): `ArgInfo`[]
10
10
 
11
- Defined in: [@isdk/ai-tools/packages/ai-tool/src/utils/parse-command.ts:353](https://github.com/isdk/ai-tool.js/blob/4ebf370aaec9c78535cb40ffc19656d7bddcb145/src/utils/parse-command.ts#L353)
11
+ Defined in: [@isdk/ai-tools/packages/ai-tool/src/utils/parse-command.ts:353](https://github.com/isdk/ai-tool.js/blob/fb1809b53cc75a30928176c26910792b6b8a96e1/src/utils/parse-command.ts#L353)
12
12
 
13
13
  Parses an object arguments string into an array of ArgInfo.
14
14
 
@@ -6,7 +6,7 @@
6
6
 
7
7
  # Function: parseYaml()
8
8
 
9
- > **parseYaml**(`content`, `options`?): `any`
9
+ > **parseYaml**(`content`, `options?`): `any`
10
10
 
11
11
  Defined in: @isdk/util/dist/index.d.ts:298
12
12
 
@@ -8,7 +8,7 @@
8
8
 
9
9
  > **pruneSubdirectories**(`paths`): `string`[]
10
10
 
11
- Defined in: [@isdk/ai-tools/packages/ai-tool/src/utils/has-directory-in.ts:70](https://github.com/isdk/ai-tool.js/blob/4ebf370aaec9c78535cb40ffc19656d7bddcb145/src/utils/has-directory-in.ts#L70)
11
+ Defined in: [@isdk/ai-tools/packages/ai-tool/src/utils/has-directory-in.ts:70](https://github.com/isdk/ai-tool.js/blob/fb1809b53cc75a30928176c26910792b6b8a96e1/src/utils/has-directory-in.ts#L70)
12
12
 
13
13
  Filters out subdirectories from the given array of paths, keeping only the top-level (parent) directories.
14
14
 
@@ -8,7 +8,7 @@
8
8
 
9
9
  > **pruneSubdirectoriesInPlace**(`paths`): `void`
10
10
 
11
- Defined in: [@isdk/ai-tools/packages/ai-tool/src/utils/has-directory-in.ts:93](https://github.com/isdk/ai-tool.js/blob/4ebf370aaec9c78535cb40ffc19656d7bddcb145/src/utils/has-directory-in.ts#L93)
11
+ Defined in: [@isdk/ai-tools/packages/ai-tool/src/utils/has-directory-in.ts:93](https://github.com/isdk/ai-tool.js/blob/fb1809b53cc75a30928176c26910792b6b8a96e1/src/utils/has-directory-in.ts#L93)
12
12
 
13
13
  Filters out subdirectories from the given array of paths in-place, keeping only the top-level (parent) directories.
14
14
 
@@ -8,7 +8,7 @@
8
8
 
9
9
  > **quoteStr**(`str`): `string`
10
10
 
11
- Defined in: [@isdk/ai-tools/packages/ai-tool/src/utils/parse-command.ts:252](https://github.com/isdk/ai-tool.js/blob/4ebf370aaec9c78535cb40ffc19656d7bddcb145/src/utils/parse-command.ts#L252)
11
+ Defined in: [@isdk/ai-tools/packages/ai-tool/src/utils/parse-command.ts:252](https://github.com/isdk/ai-tool.js/blob/fb1809b53cc75a30928176c26910792b6b8a96e1/src/utils/parse-command.ts#L252)
12
12
 
13
13
  ## Parameters
14
14
 
@@ -6,9 +6,9 @@
6
6
 
7
7
  # Function: readFilenamesRecursiveSync()
8
8
 
9
- > **readFilenamesRecursiveSync**(`dir`, `options`?): `string`[]
9
+ > **readFilenamesRecursiveSync**(`dir`, `options?`): `string`[]
10
10
 
11
- Defined in: [@isdk/ai-tools/packages/ai-tool/src/utils/load-file-from-paths.ts:137](https://github.com/isdk/ai-tool.js/blob/4ebf370aaec9c78535cb40ffc19656d7bddcb145/src/utils/load-file-from-paths.ts#L137)
11
+ Defined in: [@isdk/ai-tools/packages/ai-tool/src/utils/load-file-from-paths.ts:137](https://github.com/isdk/ai-tool.js/blob/fb1809b53cc75a30928176c26910792b6b8a96e1/src/utils/load-file-from-paths.ts#L137)
12
12
 
13
13
  Recursively reads all filenames in the given directory or directories.
14
14
  Optionally filters the results using a file matching callback.
@@ -6,9 +6,9 @@
6
6
 
7
7
  # Function: readTextFileChunks()
8
8
 
9
- > **readTextFileChunks**(`filePath`, `options`?): `AsyncIterable`\<`string`\>
9
+ > **readTextFileChunks**(`filePath`, `options?`): `AsyncIterable`\<`string`\>
10
10
 
11
- Defined in: [@isdk/ai-tools/packages/ai-tool/src/utils/read-text-file-chunks.ts:41](https://github.com/isdk/ai-tool.js/blob/4ebf370aaec9c78535cb40ffc19656d7bddcb145/src/utils/read-text-file-chunks.ts#L41)
11
+ Defined in: [@isdk/ai-tools/packages/ai-tool/src/utils/read-text-file-chunks.ts:41](https://github.com/isdk/ai-tool.js/blob/fb1809b53cc75a30928176c26910792b6b8a96e1/src/utils/read-text-file-chunks.ts#L41)
12
12
 
13
13
  Reads a text file and yields chunks of text that are within a specified token limit.
14
14
  This function supports both small files that can be read entirely into memory,
@@ -6,9 +6,9 @@
6
6
 
7
7
  # Function: readTextFileChunksEx()
8
8
 
9
- > **readTextFileChunksEx**(`filePath`, `options`?): `AsyncIterable`\<`string`[]\>
9
+ > **readTextFileChunksEx**(`filePath`, `options?`): `AsyncIterable`\<`string`[]\>
10
10
 
11
- Defined in: [@isdk/ai-tools/packages/ai-tool/src/utils/read-text-file-chunks.ts:109](https://github.com/isdk/ai-tool.js/blob/4ebf370aaec9c78535cb40ffc19656d7bddcb145/src/utils/read-text-file-chunks.ts#L109)
11
+ Defined in: [@isdk/ai-tools/packages/ai-tool/src/utils/read-text-file-chunks.ts:109](https://github.com/isdk/ai-tool.js/blob/fb1809b53cc75a30928176c26910792b6b8a96e1/src/utils/read-text-file-chunks.ts#L109)
12
12
 
13
13
  ## Parameters
14
14