@isdk/ai-tool 0.3.0 → 0.4.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.
Files changed (243) hide show
  1. package/dist/{chunk-JHHFTTVE.mjs → chunk-SIP3XWIH.mjs} +1 -1
  2. package/dist/funcs.mjs +1 -1
  3. package/dist/index.d.mts +2 -1
  4. package/dist/index.d.ts +2 -1
  5. package/dist/index.js +1 -1
  6. package/dist/index.mjs +1 -1
  7. package/docs/classes/CancelableAbility.md +20 -20
  8. package/docs/classes/ClientTools.md +54 -54
  9. package/docs/classes/EventClient.md +76 -76
  10. package/docs/classes/EventServer.md +78 -78
  11. package/docs/classes/EventToolFunc.md +46 -46
  12. package/docs/classes/FStringPromptTemplate.md +18 -18
  13. package/docs/classes/FewShotPromptTemplate.md +22 -22
  14. package/docs/classes/GolangPromptTemplate.md +18 -18
  15. package/docs/classes/HFEnvironment.md +9 -9
  16. package/docs/classes/HFInterpreter.md +4 -4
  17. package/docs/classes/HFTemplate.md +4 -4
  18. package/docs/classes/HfPromptTemplate.md +18 -18
  19. package/docs/classes/IntSet.md +11 -11
  20. package/docs/classes/PromptExampleSelector.md +8 -8
  21. package/docs/classes/PromptTemplate.md +17 -17
  22. package/docs/classes/ReadableStreamError.md +1 -1
  23. package/docs/classes/ResClientTools.md +61 -61
  24. package/docs/classes/ResServerTools.md +62 -62
  25. package/docs/classes/SSEChannel.md +14 -14
  26. package/docs/classes/Semaphore.md +8 -8
  27. package/docs/classes/ServerTools.md +50 -50
  28. package/docs/classes/TaskAbortController.md +7 -7
  29. package/docs/classes/ToolFunc.md +43 -43
  30. package/docs/classes/YamlTypeBaseObject.md +1 -1
  31. package/docs/enumerations/AsyncFeatureBits.md +3 -3
  32. package/docs/enumerations/AsyncFeatures.md +3 -3
  33. package/docs/enumerations/HashAlgorithm.md +11 -11
  34. package/docs/functions/AIArgProcessor.md +1 -1
  35. package/docs/functions/AIStream.md +1 -1
  36. package/docs/functions/ChoiceArgProcessor.md +1 -1
  37. package/docs/functions/RateLimit.md +1 -1
  38. package/docs/functions/TemplateArgProcessor.md +1 -1
  39. package/docs/functions/backendEventable.md +1 -1
  40. package/docs/functions/completeSentences.md +1 -1
  41. package/docs/functions/concatText.md +1 -1
  42. package/docs/functions/countLLMTokens.md +1 -1
  43. package/docs/functions/countRegexMatches.md +1 -1
  44. package/docs/functions/createCallbacksTransformer.md +1 -1
  45. package/docs/functions/createEmptyReadableStream.md +1 -1
  46. package/docs/functions/createEndWithRepetitionDetector.md +1 -1
  47. package/docs/functions/createEventStreamTransformer.md +1 -1
  48. package/docs/functions/createHfValueFunc.md +1 -1
  49. package/docs/functions/createLRUCache.md +1 -1
  50. package/docs/functions/createYamlObjectTag.md +1 -1
  51. package/docs/functions/dateToText.md +1 -1
  52. package/docs/functions/decodeCharset.md +1 -1
  53. package/docs/functions/detectCharset.md +1 -1
  54. package/docs/functions/encodeLLMTokens.md +1 -1
  55. package/docs/functions/expandEnv.md +1 -1
  56. package/docs/functions/expandObjEnv.md +1 -1
  57. package/docs/functions/extNameLevel.md +1 -1
  58. package/docs/functions/fileIsExists.md +1 -1
  59. package/docs/functions/filenameReservedRegex.md +1 -1
  60. package/docs/functions/filterValidFnScope.md +1 -1
  61. package/docs/functions/findIndexNonEmptyFrom.md +1 -1
  62. package/docs/functions/findPort.md +1 -1
  63. package/docs/functions/formatTextWithSpace.md +1 -1
  64. package/docs/functions/getAllEnumKeys.md +1 -1
  65. package/docs/functions/getConfigFileNames.md +1 -1
  66. package/docs/functions/getConfigs.md +1 -1
  67. package/docs/functions/getFileMetaInfo.md +1 -1
  68. package/docs/functions/getHashAlgoBySize.md +1 -1
  69. package/docs/functions/getKeysPath.md +1 -1
  70. package/docs/functions/getLLMTokenizer.md +1 -1
  71. package/docs/functions/getMultiLevelExtname.md +1 -1
  72. package/docs/functions/getPackageDir.md +1 -1
  73. package/docs/functions/getRealFilepath.md +1 -1
  74. package/docs/functions/getResponseErrorReadableStream.md +1 -1
  75. package/docs/functions/hasDirectoryIn.md +1 -1
  76. package/docs/functions/hashFile.md +1 -1
  77. package/docs/functions/hashStream.md +1 -1
  78. package/docs/functions/hfParse.md +1 -1
  79. package/docs/functions/hfTokenize.md +1 -1
  80. package/docs/functions/interpolateEnv.md +1 -1
  81. package/docs/functions/interpolateFString.md +1 -1
  82. package/docs/functions/interpolateGolangTemplate.md +1 -1
  83. package/docs/functions/isLangUsingSpaces.md +1 -1
  84. package/docs/functions/isListItemString.md +1 -1
  85. package/docs/functions/isModelNameMatched.md +1 -1
  86. package/docs/functions/isPunctuationChar.md +1 -1
  87. package/docs/functions/isRegExp.md +1 -1
  88. package/docs/functions/isSectionString.md +1 -1
  89. package/docs/functions/isSentenceEnding.md +1 -1
  90. package/docs/functions/isSepLineString.md +1 -1
  91. package/docs/functions/isSubdirectory.md +1 -1
  92. package/docs/functions/isTitleString.md +1 -1
  93. package/docs/functions/isValidFilename.md +1 -1
  94. package/docs/functions/isValidFilepath.md +1 -1
  95. package/docs/functions/isWebStream.md +1 -1
  96. package/docs/functions/jsonFilterToWhere.md +1 -1
  97. package/docs/functions/jsonToMarkdownStr.md +1 -1
  98. package/docs/functions/loadFileFromPaths.md +1 -1
  99. package/docs/functions/loadTextFromPaths.md +1 -1
  100. package/docs/functions/lrucache.md +1 -1
  101. package/docs/functions/makeToolFuncCancelable.md +1 -1
  102. package/docs/functions/matchUrlProtocol.md +1 -1
  103. package/docs/functions/memoize.md +1 -1
  104. package/docs/functions/messagesToText.md +1 -1
  105. package/docs/functions/paramsSizeToScaleStr.md +1 -1
  106. package/docs/functions/parseCommand.md +3 -11
  107. package/docs/functions/parseFString.md +1 -1
  108. package/docs/functions/parseJsJson.md +1 -1
  109. package/docs/functions/parseJsJsonSimpleSync.md +1 -1
  110. package/docs/functions/parseObjectArgInfo.md +1 -1
  111. package/docs/functions/parseObjectArgumentInfos.md +1 -1
  112. package/docs/functions/parseObjectArguments.md +1 -1
  113. package/docs/functions/parseObjectArgumentsAsArgInfos.md +1 -1
  114. package/docs/functions/parseYaml.md +1 -1
  115. package/docs/functions/quoteStr.md +1 -1
  116. package/docs/functions/reControlCharsRegex.md +1 -1
  117. package/docs/functions/readFilenamesRecursiveSync.md +1 -1
  118. package/docs/functions/readTextFileChunks.md +1 -1
  119. package/docs/functions/readTextFileChunksEx.md +1 -1
  120. package/docs/functions/readableFromAsyncIterable.md +1 -1
  121. package/docs/functions/registerCoreTools.md +1 -1
  122. package/docs/functions/registerYamlTag.md +1 -1
  123. package/docs/functions/removeMarkdownBold.md +1 -1
  124. package/docs/functions/removeMarkdownBoldAndItalic.md +1 -1
  125. package/docs/functions/removeMarkdownItalic.md +1 -1
  126. package/docs/functions/replaceWithPlaceholder.md +1 -1
  127. package/docs/functions/restoreFromPlacehoders.md +1 -1
  128. package/docs/functions/sanitizeFilename.md +1 -1
  129. package/docs/functions/sanitizeFilepath.md +1 -1
  130. package/docs/functions/saveConfigFile.md +1 -1
  131. package/docs/functions/scaleStrToParamsSize.md +1 -1
  132. package/docs/functions/simplifyObjectArguments.md +1 -1
  133. package/docs/functions/sortedValues.md +1 -1
  134. package/docs/functions/splitChunks.md +1 -1
  135. package/docs/functions/splitParagraph.md +1 -1
  136. package/docs/functions/splitSentence.md +1 -1
  137. package/docs/functions/stringifyYaml.md +1 -1
  138. package/docs/functions/stripConsoleColor.md +1 -1
  139. package/docs/functions/textToDate.md +1 -1
  140. package/docs/functions/toDateTime.md +1 -1
  141. package/docs/functions/trimStartOfStreamHelper.md +1 -1
  142. package/docs/functions/truncTo.md +1 -1
  143. package/docs/functions/truncateByToken.md +1 -1
  144. package/docs/functions/truncateToTokenLimit.md +1 -1
  145. package/docs/functions/truncateToTokenLimitEx.md +1 -1
  146. package/docs/functions/uuid.md +1 -1
  147. package/docs/functions/wait.md +1 -1
  148. package/docs/functions/xxhash.md +1 -1
  149. package/docs/functions/xxhash32.md +1 -1
  150. package/docs/functions/xxhash64.md +1 -1
  151. package/docs/functions/xxhashAsStr.md +1 -1
  152. package/docs/interfaces/AIChatAssistantMessageParam.md +9 -9
  153. package/docs/interfaces/AIChatContentPartImage.md +2 -2
  154. package/docs/interfaces/AIChatContentPartText.md +2 -2
  155. package/docs/interfaces/AIChatMessageParamBase.md +4 -4
  156. package/docs/interfaces/AIChatMessageToolCall.md +3 -3
  157. package/docs/interfaces/AIChatSystemMessageParam.md +6 -6
  158. package/docs/interfaces/AIChatToolMessageParam.md +7 -7
  159. package/docs/interfaces/AIChatUserMessageParam.md +10 -10
  160. package/docs/interfaces/AIChoiceConfig.md +7 -7
  161. package/docs/interfaces/AIResult.md +5 -5
  162. package/docs/interfaces/AIStreamParser.md +1 -1
  163. package/docs/interfaces/AIStreamParserOptions.md +1 -1
  164. package/docs/interfaces/BaseFunc.md +9 -9
  165. package/docs/interfaces/BaseFuncItem.md +8 -8
  166. package/docs/interfaces/CancelableAbilityOptions.md +2 -2
  167. package/docs/interfaces/ClientFuncItem.md +11 -11
  168. package/docs/interfaces/DotenvExpandOptions.md +3 -3
  169. package/docs/interfaces/DotenvExpandOutput.md +2 -2
  170. package/docs/interfaces/EventClientFuncParams.md +4 -4
  171. package/docs/interfaces/EventServerFuncParams.md +5 -5
  172. package/docs/interfaces/FewShotPromptTemplateOptions.md +11 -11
  173. package/docs/interfaces/FuncItem.md +9 -9
  174. package/docs/interfaces/FuncParam.md +6 -6
  175. package/docs/interfaces/HashAlgoParams.md +3 -3
  176. package/docs/interfaces/IFileMetaInfo.md +7 -7
  177. package/docs/interfaces/IReadTextFileChunksOptions.md +10 -10
  178. package/docs/interfaces/ITruncateToTokenLimitOptions.md +9 -9
  179. package/docs/interfaces/ParseObjectArgumentOptions.md +19 -9
  180. package/docs/interfaces/PromptExampleSelectorOptions.md +2 -2
  181. package/docs/interfaces/PromptTemplateOptions.md +6 -6
  182. package/docs/interfaces/RemoteFuncItem.md +11 -11
  183. package/docs/interfaces/ReplacePlacehoderOptions.md +4 -4
  184. package/docs/interfaces/ResClientFuncParams.md +2 -2
  185. package/docs/interfaces/ResServerFuncParams.md +5 -5
  186. package/docs/interfaces/SanitizeFilenameOptions.md +2 -2
  187. package/docs/interfaces/SectionStringOptions.md +2 -2
  188. package/docs/interfaces/ServerFuncItem.md +12 -12
  189. package/docs/interfaces/ServerFuncParams.md +2 -2
  190. package/docs/interfaces/SplitSentenceOptions.md +4 -4
  191. package/docs/interfaces/StreamCallbacksAndOptions.md +4 -4
  192. package/docs/interfaces/TaskPromise.md +1 -1
  193. package/docs/interfaces/ToolFuncPackage.md +3 -3
  194. package/docs/type-aliases/AIChatContentPart.md +1 -1
  195. package/docs/type-aliases/AIChatMessageParam.md +1 -1
  196. package/docs/type-aliases/AIChatRole.md +1 -1
  197. package/docs/type-aliases/AIMessageType.md +1 -1
  198. package/docs/type-aliases/AIModelNameRule.md +1 -1
  199. package/docs/type-aliases/AIModelNameRuleFn.md +1 -1
  200. package/docs/type-aliases/AIModelNameRules.md +1 -1
  201. package/docs/type-aliases/AITextGenerationFinishReason.md +1 -1
  202. package/docs/type-aliases/ActionName.md +1 -1
  203. package/docs/type-aliases/AsyncTaskId.md +1 -1
  204. package/docs/type-aliases/EventErrorListenerFn.md +1 -1
  205. package/docs/type-aliases/EventListenerFn.md +1 -1
  206. package/docs/type-aliases/FStringPromptTemplateNode.md +1 -1
  207. package/docs/type-aliases/FuncParamType.md +1 -1
  208. package/docs/type-aliases/PromptExamples.md +1 -1
  209. package/docs/type-aliases/PromptTemplateType.md +1 -1
  210. package/docs/type-aliases/PromptType.md +1 -1
  211. package/docs/type-aliases/TFunc.md +1 -1
  212. package/docs/variables/AIChatRoles.md +1 -1
  213. package/docs/variables/AIMessageTypes.md +1 -1
  214. package/docs/variables/AITextGenerationFinishReasons.md +1 -1
  215. package/docs/variables/ActionNames.md +1 -1
  216. package/docs/variables/ClientToolFuncSchema.md +1 -1
  217. package/docs/variables/DefaultAsyncSemaphoreCapacity.md +1 -1
  218. package/docs/variables/EventBusName.md +1 -1
  219. package/docs/variables/EventName.md +1 -1
  220. package/docs/variables/FilenameReservedRegex.md +1 -1
  221. package/docs/variables/HFBuiltins.md +1 -1
  222. package/docs/variables/LLM_TOKENIZER_NAMES.md +1 -1
  223. package/docs/variables/LLM_TOKENIZER_NAMES_MAP.md +1 -1
  224. package/docs/variables/PASSING_SCORE.md +1 -1
  225. package/docs/variables/PromptTemplateTypes.md +1 -1
  226. package/docs/variables/PromptTypes.md +1 -1
  227. package/docs/variables/RStreamErrCode.md +1 -1
  228. package/docs/variables/RemoteToolFuncSchema.md +1 -1
  229. package/docs/variables/ResponseRStreamErrCode.md +1 -1
  230. package/docs/variables/SSEChannelAlreadyClosedErrCode.md +1 -1
  231. package/docs/variables/ServerToolFuncSchema.md +1 -1
  232. package/docs/variables/ToolAsyncCancelableBit.md +1 -1
  233. package/docs/variables/ToolAsyncMultiTaskBit.md +1 -1
  234. package/docs/variables/ToolAsyncPriorityBit.md +1 -1
  235. package/docs/variables/ToolFuncSchema.md +1 -1
  236. package/docs/variables/WindowsReservedNameRegex.md +1 -1
  237. package/docs/variables/base32768.md +1 -1
  238. package/docs/variables/defaultTemplateFormat.md +1 -1
  239. package/docs/variables/event.md +1 -1
  240. package/docs/variables/eventClient.md +1 -1
  241. package/docs/variables/eventServer.md +1 -1
  242. package/docs/variables/lrucache.md +1 -1
  243. package/package.json +1 -1
@@ -20,4 +20,4 @@
20
20
 
21
21
  ## Defined in
22
22
 
23
- [packages/ai-tool/src/utils/llm-tokenizer.ts:74](https://github.com/isdk/ai-tool.js/blob/e324043799402aa2caa41711a9168487ab85c166/src/utils/llm-tokenizer.ts#L74)
23
+ [packages/ai-tool/src/utils/llm-tokenizer.ts:74](https://github.com/isdk/ai-tool.js/blob/b0813174e9b350ae47231f8e5f885150313123b0/src/utils/llm-tokenizer.ts#L74)
@@ -30,4 +30,4 @@ The total number of matches found.
30
30
 
31
31
  ## Defined in
32
32
 
33
- [packages/ai-tool/src/utils/count-regex-matches.ts:10](https://github.com/isdk/ai-tool.js/blob/e324043799402aa2caa41711a9168487ab85c166/src/utils/count-regex-matches.ts#L10)
33
+ [packages/ai-tool/src/utils/count-regex-matches.ts:10](https://github.com/isdk/ai-tool.js/blob/b0813174e9b350ae47231f8e5f885150313123b0/src/utils/count-regex-matches.ts#L10)
@@ -46,4 +46,4 @@ const transformer = createCallbacksTransformer(callbacks);
46
46
 
47
47
  ## Defined in
48
48
 
49
- [packages/ai-tool/src/utils/stream/create-callbacks-stream.ts:36](https://github.com/isdk/ai-tool.js/blob/e324043799402aa2caa41711a9168487ab85c166/src/utils/stream/create-callbacks-stream.ts#L36)
49
+ [packages/ai-tool/src/utils/stream/create-callbacks-stream.ts:36](https://github.com/isdk/ai-tool.js/blob/b0813174e9b350ae47231f8e5f885150313123b0/src/utils/stream/create-callbacks-stream.ts#L36)
@@ -20,4 +20,4 @@ An empty and closed ReadableStream instance.
20
20
 
21
21
  ## Defined in
22
22
 
23
- [packages/ai-tool/src/utils/stream/create-empty-stream.ts:8](https://github.com/isdk/ai-tool.js/blob/e324043799402aa2caa41711a9168487ab85c166/src/utils/stream/create-empty-stream.ts#L8)
23
+ [packages/ai-tool/src/utils/stream/create-empty-stream.ts:8](https://github.com/isdk/ai-tool.js/blob/b0813174e9b350ae47231f8e5f885150313123b0/src/utils/stream/create-empty-stream.ts#L8)
@@ -26,4 +26,4 @@
26
26
 
27
27
  ## Defined in
28
28
 
29
- [packages/ai-tool/src/utils/end-with-repeated-sequence.ts:3](https://github.com/isdk/ai-tool.js/blob/e324043799402aa2caa41711a9168487ab85c166/src/utils/end-with-repeated-sequence.ts#L3)
29
+ [packages/ai-tool/src/utils/end-with-repeated-sequence.ts:3](https://github.com/isdk/ai-tool.js/blob/b0813174e9b350ae47231f8e5f885150313123b0/src/utils/end-with-repeated-sequence.ts#L3)
@@ -30,4 +30,4 @@ TransformStream parsing events.
30
30
 
31
31
  ## Defined in
32
32
 
33
- [packages/ai-tool/src/utils/stream/ai-stream.ts:37](https://github.com/isdk/ai-tool.js/blob/e324043799402aa2caa41711a9168487ab85c166/src/utils/stream/ai-stream.ts#L37)
33
+ [packages/ai-tool/src/utils/stream/ai-stream.ts:37](https://github.com/isdk/ai-tool.js/blob/b0813174e9b350ae47231f8e5f885150313123b0/src/utils/stream/ai-stream.ts#L37)
@@ -26,4 +26,4 @@
26
26
 
27
27
  ## Defined in
28
28
 
29
- [packages/ai-tool/src/utils/prompt/hf-prompt-template.ts:140](https://github.com/isdk/ai-tool.js/blob/e324043799402aa2caa41711a9168487ab85c166/src/utils/prompt/hf-prompt-template.ts#L140)
29
+ [packages/ai-tool/src/utils/prompt/hf-prompt-template.ts:140](https://github.com/isdk/ai-tool.js/blob/b0813174e9b350ae47231f8e5f885150313123b0/src/utils/prompt/hf-prompt-template.ts#L140)
@@ -20,4 +20,4 @@
20
20
 
21
21
  ## Defined in
22
22
 
23
- [packages/ai-tool/src/funcs/lrucache.ts:22](https://github.com/isdk/ai-tool.js/blob/e324043799402aa2caa41711a9168487ab85c166/src/funcs/lrucache.ts#L22)
23
+ [packages/ai-tool/src/funcs/lrucache.ts:22](https://github.com/isdk/ai-tool.js/blob/b0813174e9b350ae47231f8e5f885150313123b0/src/funcs/lrucache.ts#L22)
@@ -20,4 +20,4 @@
20
20
 
21
21
  ## Defined in
22
22
 
23
- [packages/ai-tool/src/utils/yaml-type-base-object.ts:10](https://github.com/isdk/ai-tool.js/blob/e324043799402aa2caa41711a9168487ab85c166/src/utils/yaml-type-base-object.ts#L10)
23
+ [packages/ai-tool/src/utils/yaml-type-base-object.ts:10](https://github.com/isdk/ai-tool.js/blob/b0813174e9b350ae47231f8e5f885150313123b0/src/utils/yaml-type-base-object.ts#L10)
@@ -20,4 +20,4 @@
20
20
 
21
21
  ## Defined in
22
22
 
23
- [packages/ai-tool/src/utils/to-datetime.ts:29](https://github.com/isdk/ai-tool.js/blob/e324043799402aa2caa41711a9168487ab85c166/src/utils/to-datetime.ts#L29)
23
+ [packages/ai-tool/src/utils/to-datetime.ts:29](https://github.com/isdk/ai-tool.js/blob/b0813174e9b350ae47231f8e5f885150313123b0/src/utils/to-datetime.ts#L29)
@@ -20,4 +20,4 @@
20
20
 
21
21
  ## Defined in
22
22
 
23
- [packages/ai-tool/src/utils/load-file-from-paths.ts:113](https://github.com/isdk/ai-tool.js/blob/e324043799402aa2caa41711a9168487ab85c166/src/utils/load-file-from-paths.ts#L113)
23
+ [packages/ai-tool/src/utils/load-file-from-paths.ts:113](https://github.com/isdk/ai-tool.js/blob/b0813174e9b350ae47231f8e5f885150313123b0/src/utils/load-file-from-paths.ts#L113)
@@ -20,4 +20,4 @@
20
20
 
21
21
  ## Defined in
22
22
 
23
- [packages/ai-tool/src/utils/load-file-from-paths.ts:248](https://github.com/isdk/ai-tool.js/blob/e324043799402aa2caa41711a9168487ab85c166/src/utils/load-file-from-paths.ts#L248)
23
+ [packages/ai-tool/src/utils/load-file-from-paths.ts:248](https://github.com/isdk/ai-tool.js/blob/b0813174e9b350ae47231f8e5f885150313123b0/src/utils/load-file-from-paths.ts#L248)
@@ -20,4 +20,4 @@
20
20
 
21
21
  ## Defined in
22
22
 
23
- [packages/ai-tool/src/utils/llm-tokenizer.ts:68](https://github.com/isdk/ai-tool.js/blob/e324043799402aa2caa41711a9168487ab85c166/src/utils/llm-tokenizer.ts#L68)
23
+ [packages/ai-tool/src/utils/llm-tokenizer.ts:68](https://github.com/isdk/ai-tool.js/blob/b0813174e9b350ae47231f8e5f885150313123b0/src/utils/llm-tokenizer.ts#L68)
@@ -37,4 +37,4 @@ console.log(process.env.HELLO) // undefined
37
37
 
38
38
  ## Defined in
39
39
 
40
- [packages/ai-tool/src/utils/prompt/template/env.ts:82](https://github.com/isdk/ai-tool.js/blob/e324043799402aa2caa41711a9168487ab85c166/src/utils/prompt/template/env.ts#L82)
40
+ [packages/ai-tool/src/utils/prompt/template/env.ts:82](https://github.com/isdk/ai-tool.js/blob/b0813174e9b350ae47231f8e5f885150313123b0/src/utils/prompt/template/env.ts#L82)
@@ -51,4 +51,4 @@ const expandedObj = expandObjEnv(obj, { processEnv: myCustomEnv }); // Assuming
51
51
 
52
52
  ## Defined in
53
53
 
54
- [packages/ai-tool/src/utils/prompt/template/env.ts:142](https://github.com/isdk/ai-tool.js/blob/e324043799402aa2caa41711a9168487ab85c166/src/utils/prompt/template/env.ts#L142)
54
+ [packages/ai-tool/src/utils/prompt/template/env.ts:142](https://github.com/isdk/ai-tool.js/blob/b0813174e9b350ae47231f8e5f885150313123b0/src/utils/prompt/template/env.ts#L142)
@@ -40,4 +40,4 @@ extNameLevel(".json5");
40
40
 
41
41
  ## Defined in
42
42
 
43
- [packages/ai-tool/src/utils/filename.ts:209](https://github.com/isdk/ai-tool.js/blob/e324043799402aa2caa41711a9168487ab85c166/src/utils/filename.ts#L209)
43
+ [packages/ai-tool/src/utils/filename.ts:209](https://github.com/isdk/ai-tool.js/blob/b0813174e9b350ae47231f8e5f885150313123b0/src/utils/filename.ts#L209)
@@ -31,4 +31,4 @@ console.log(exists); // Outputs: true or false
31
31
 
32
32
  ## Defined in
33
33
 
34
- [packages/ai-tool/src/utils/load-file-from-paths.ts:23](https://github.com/isdk/ai-tool.js/blob/e324043799402aa2caa41711a9168487ab85c166/src/utils/load-file-from-paths.ts#L23)
34
+ [packages/ai-tool/src/utils/load-file-from-paths.ts:23](https://github.com/isdk/ai-tool.js/blob/b0813174e9b350ae47231f8e5f885150313123b0/src/utils/load-file-from-paths.ts#L23)
@@ -19,4 +19,4 @@ A compiled regular expression for reserved filename characters.
19
19
 
20
20
  ## Defined in
21
21
 
22
- [packages/ai-tool/src/utils/filename.ts:42](https://github.com/isdk/ai-tool.js/blob/e324043799402aa2caa41711a9168487ab85c166/src/utils/filename.ts#L42)
22
+ [packages/ai-tool/src/utils/filename.ts:42](https://github.com/isdk/ai-tool.js/blob/b0813174e9b350ae47231f8e5f885150313123b0/src/utils/filename.ts#L42)
@@ -18,4 +18,4 @@
18
18
 
19
19
  ## Defined in
20
20
 
21
- [packages/ai-tool/src/utils/parse-js-json.ts:58](https://github.com/isdk/ai-tool.js/blob/e324043799402aa2caa41711a9168487ab85c166/src/utils/parse-js-json.ts#L58)
21
+ [packages/ai-tool/src/utils/parse-js-json.ts:58](https://github.com/isdk/ai-tool.js/blob/b0813174e9b350ae47231f8e5f885150313123b0/src/utils/parse-js-json.ts#L58)
@@ -20,4 +20,4 @@
20
20
 
21
21
  ## Defined in
22
22
 
23
- [packages/ai-tool/src/utils/split-sentence.ts:282](https://github.com/isdk/ai-tool.js/blob/e324043799402aa2caa41711a9168487ab85c166/src/utils/split-sentence.ts#L282)
23
+ [packages/ai-tool/src/utils/split-sentence.ts:282](https://github.com/isdk/ai-tool.js/blob/b0813174e9b350ae47231f8e5f885150313123b0/src/utils/split-sentence.ts#L282)
@@ -20,4 +20,4 @@
20
20
 
21
21
  ## Defined in
22
22
 
23
- [packages/ai-tool/src/utils/find-port.ts:3](https://github.com/isdk/ai-tool.js/blob/e324043799402aa2caa41711a9168487ab85c166/src/utils/find-port.ts#L3)
23
+ [packages/ai-tool/src/utils/find-port.ts:3](https://github.com/isdk/ai-tool.js/blob/b0813174e9b350ae47231f8e5f885150313123b0/src/utils/find-port.ts#L3)
@@ -56,4 +56,4 @@ formatTextWithSpace("hello-world_this_is_a_test");
56
56
 
57
57
  ## Defined in
58
58
 
59
- [packages/ai-tool/src/utils/format-text-with-space.ts:25](https://github.com/isdk/ai-tool.js/blob/e324043799402aa2caa41711a9168487ab85c166/src/utils/format-text-with-space.ts#L25)
59
+ [packages/ai-tool/src/utils/format-text-with-space.ts:25](https://github.com/isdk/ai-tool.js/blob/b0813174e9b350ae47231f8e5f885150313123b0/src/utils/format-text-with-space.ts#L25)
@@ -28,4 +28,4 @@ An array containing all string keys of the specified enumeration.
28
28
 
29
29
  ## Defined in
30
30
 
31
- [packages/ai-tool/src/utils/get-all-enum-keys.ts:7](https://github.com/isdk/ai-tool.js/blob/e324043799402aa2caa41711a9168487ab85c166/src/utils/get-all-enum-keys.ts#L7)
31
+ [packages/ai-tool/src/utils/get-all-enum-keys.ts:7](https://github.com/isdk/ai-tool.js/blob/b0813174e9b350ae47231f8e5f885150313123b0/src/utils/get-all-enum-keys.ts#L7)
@@ -20,4 +20,4 @@
20
20
 
21
21
  ## Defined in
22
22
 
23
- [packages/ai-tool/src/utils/config.ts:59](https://github.com/isdk/ai-tool.js/blob/e324043799402aa2caa41711a9168487ab85c166/src/utils/config.ts#L59)
23
+ [packages/ai-tool/src/utils/config.ts:59](https://github.com/isdk/ai-tool.js/blob/b0813174e9b350ae47231f8e5f885150313123b0/src/utils/config.ts#L59)
@@ -20,4 +20,4 @@
20
20
 
21
21
  ## Defined in
22
22
 
23
- [packages/ai-tool/src/utils/config.ts:83](https://github.com/isdk/ai-tool.js/blob/e324043799402aa2caa41711a9168487ab85c166/src/utils/config.ts#L83)
23
+ [packages/ai-tool/src/utils/config.ts:83](https://github.com/isdk/ai-tool.js/blob/b0813174e9b350ae47231f8e5f885150313123b0/src/utils/config.ts#L83)
@@ -18,4 +18,4 @@
18
18
 
19
19
  ## Defined in
20
20
 
21
- [packages/ai-tool/src/utils/load-file-from-paths.ts:221](https://github.com/isdk/ai-tool.js/blob/e324043799402aa2caa41711a9168487ab85c166/src/utils/load-file-from-paths.ts#L221)
21
+ [packages/ai-tool/src/utils/load-file-from-paths.ts:221](https://github.com/isdk/ai-tool.js/blob/b0813174e9b350ae47231f8e5f885150313123b0/src/utils/load-file-from-paths.ts#L221)
@@ -18,4 +18,4 @@
18
18
 
19
19
  ## Defined in
20
20
 
21
- [packages/ai-tool/src/utils/load-file-from-paths.ts:234](https://github.com/isdk/ai-tool.js/blob/e324043799402aa2caa41711a9168487ab85c166/src/utils/load-file-from-paths.ts#L234)
21
+ [packages/ai-tool/src/utils/load-file-from-paths.ts:234](https://github.com/isdk/ai-tool.js/blob/b0813174e9b350ae47231f8e5f885150313123b0/src/utils/load-file-from-paths.ts#L234)
@@ -35,4 +35,4 @@ console.log(getKeysPath(obj)); // Output: ['a.b.c', 'd[0]', 'd[1].e']
35
35
 
36
36
  ## Defined in
37
37
 
38
- [packages/ai-tool/src/utils/get-keys-path.ts:16](https://github.com/isdk/ai-tool.js/blob/e324043799402aa2caa41711a9168487ab85c166/src/utils/get-keys-path.ts#L16)
38
+ [packages/ai-tool/src/utils/get-keys-path.ts:16](https://github.com/isdk/ai-tool.js/blob/b0813174e9b350ae47231f8e5f885150313123b0/src/utils/get-keys-path.ts#L16)
@@ -18,4 +18,4 @@
18
18
 
19
19
  ## Defined in
20
20
 
21
- [packages/ai-tool/src/utils/llm-tokenizer.ts:58](https://github.com/isdk/ai-tool.js/blob/e324043799402aa2caa41711a9168487ab85c166/src/utils/llm-tokenizer.ts#L58)
21
+ [packages/ai-tool/src/utils/llm-tokenizer.ts:58](https://github.com/isdk/ai-tool.js/blob/b0813174e9b350ae47231f8e5f885150313123b0/src/utils/llm-tokenizer.ts#L58)
@@ -28,4 +28,4 @@ Returns a concatenated string of multiple extensions, or an empty string if no e
28
28
 
29
29
  ## Defined in
30
30
 
31
- [packages/ai-tool/src/utils/filename.ts:174](https://github.com/isdk/ai-tool.js/blob/e324043799402aa2caa41711a9168487ab85c166/src/utils/filename.ts#L174)
31
+ [packages/ai-tool/src/utils/filename.ts:174](https://github.com/isdk/ai-tool.js/blob/b0813174e9b350ae47231f8e5f885150313123b0/src/utils/filename.ts#L174)
@@ -36,4 +36,4 @@ console.log(packageDir); // Output: '/path/to/project'
36
36
 
37
37
  ## Defined in
38
38
 
39
- [packages/ai-tool/src/utils/get-package-dir.ts:18](https://github.com/isdk/ai-tool.js/blob/e324043799402aa2caa41711a9168487ab85c166/src/utils/get-package-dir.ts#L18)
39
+ [packages/ai-tool/src/utils/get-package-dir.ts:18](https://github.com/isdk/ai-tool.js/blob/b0813174e9b350ae47231f8e5f885150313123b0/src/utils/get-package-dir.ts#L18)
@@ -31,4 +31,4 @@ console.log(realPath); // Outputs the resolved path.
31
31
 
32
32
  ## Defined in
33
33
 
34
- [packages/ai-tool/src/utils/load-file-from-paths.ts:195](https://github.com/isdk/ai-tool.js/blob/e324043799402aa2caa41711a9168487ab85c166/src/utils/load-file-from-paths.ts#L195)
34
+ [packages/ai-tool/src/utils/load-file-from-paths.ts:195](https://github.com/isdk/ai-tool.js/blob/b0813174e9b350ae47231f8e5f885150313123b0/src/utils/load-file-from-paths.ts#L195)
@@ -18,4 +18,4 @@
18
18
 
19
19
  ## Defined in
20
20
 
21
- [packages/ai-tool/src/utils/stream/error-readable-stream.ts:12](https://github.com/isdk/ai-tool.js/blob/e324043799402aa2caa41711a9168487ab85c166/src/utils/stream/error-readable-stream.ts#L12)
21
+ [packages/ai-tool/src/utils/stream/error-readable-stream.ts:12](https://github.com/isdk/ai-tool.js/blob/b0813174e9b350ae47231f8e5f885150313123b0/src/utils/stream/error-readable-stream.ts#L12)
@@ -35,4 +35,4 @@ hasDirectoryIn('parentdir/subdir', ['parentdir', 'otherdir']); // true
35
35
 
36
36
  ## Defined in
37
37
 
38
- [packages/ai-tool/src/utils/has-directory-in.ts:37](https://github.com/isdk/ai-tool.js/blob/e324043799402aa2caa41711a9168487ab85c166/src/utils/has-directory-in.ts#L37)
38
+ [packages/ai-tool/src/utils/has-directory-in.ts:37](https://github.com/isdk/ai-tool.js/blob/b0813174e9b350ae47231f8e5f885150313123b0/src/utils/has-directory-in.ts#L37)
@@ -20,4 +20,4 @@
20
20
 
21
21
  ## Defined in
22
22
 
23
- [packages/ai-tool/src/utils/load-file-from-paths.ts:204](https://github.com/isdk/ai-tool.js/blob/e324043799402aa2caa41711a9168487ab85c166/src/utils/load-file-from-paths.ts#L204)
23
+ [packages/ai-tool/src/utils/load-file-from-paths.ts:204](https://github.com/isdk/ai-tool.js/blob/b0813174e9b350ae47231f8e5f885150313123b0/src/utils/load-file-from-paths.ts#L204)
@@ -20,4 +20,4 @@
20
20
 
21
21
  ## Defined in
22
22
 
23
- [packages/ai-tool/src/utils/hash/xxhash.ts:81](https://github.com/isdk/ai-tool.js/blob/e324043799402aa2caa41711a9168487ab85c166/src/utils/hash/xxhash.ts#L81)
23
+ [packages/ai-tool/src/utils/hash/xxhash.ts:81](https://github.com/isdk/ai-tool.js/blob/b0813174e9b350ae47231f8e5f885150313123b0/src/utils/hash/xxhash.ts#L81)
@@ -21,4 +21,4 @@ Operator precedence can be found here: https://developer.mozilla.org/en-US/docs/
21
21
 
22
22
  ## Defined in
23
23
 
24
- [packages/ai-tool/src/utils/prompt/template/jinja/src/parser.ts:32](https://github.com/isdk/ai-tool.js/blob/e324043799402aa2caa41711a9168487ab85c166/src/utils/prompt/template/jinja/src/parser.ts#L32)
24
+ [packages/ai-tool/src/utils/prompt/template/jinja/src/parser.ts:32](https://github.com/isdk/ai-tool.js/blob/b0813174e9b350ae47231f8e5f885150313123b0/src/utils/prompt/template/jinja/src/parser.ts#L32)
@@ -22,4 +22,4 @@ Generate a list of tokens from a source string.
22
22
 
23
23
  ## Defined in
24
24
 
25
- [packages/ai-tool/src/utils/prompt/template/jinja/src/lexer.ts:200](https://github.com/isdk/ai-tool.js/blob/e324043799402aa2caa41711a9168487ab85c166/src/utils/prompt/template/jinja/src/lexer.ts#L200)
25
+ [packages/ai-tool/src/utils/prompt/template/jinja/src/lexer.ts:200](https://github.com/isdk/ai-tool.js/blob/b0813174e9b350ae47231f8e5f885150313123b0/src/utils/prompt/template/jinja/src/lexer.ts#L200)
@@ -22,4 +22,4 @@
22
22
 
23
23
  ## Defined in
24
24
 
25
- [packages/ai-tool/src/utils/prompt/template/env.ts:17](https://github.com/isdk/ai-tool.js/blob/e324043799402aa2caa41711a9168487ab85c166/src/utils/prompt/template/env.ts#L17)
25
+ [packages/ai-tool/src/utils/prompt/template/env.ts:17](https://github.com/isdk/ai-tool.js/blob/b0813174e9b350ae47231f8e5f885150313123b0/src/utils/prompt/template/env.ts#L17)
@@ -24,4 +24,4 @@ template have been replaced with their corresponding values.
24
24
 
25
25
  ## Defined in
26
26
 
27
- [packages/ai-tool/src/utils/prompt/template/python.ts:71](https://github.com/isdk/ai-tool.js/blob/e324043799402aa2caa41711a9168487ab85c166/src/utils/prompt/template/python.ts#L71)
27
+ [packages/ai-tool/src/utils/prompt/template/python.ts:71](https://github.com/isdk/ai-tool.js/blob/b0813174e9b350ae47231f8e5f885150313123b0/src/utils/prompt/template/python.ts#L71)
@@ -28,4 +28,4 @@ object of variables to insert
28
28
 
29
29
  ## Defined in
30
30
 
31
- [packages/ai-tool/src/utils/prompt/template/golang.ts:269](https://github.com/isdk/ai-tool.js/blob/e324043799402aa2caa41711a9168487ab85c166/src/utils/prompt/template/golang.ts#L269)
31
+ [packages/ai-tool/src/utils/prompt/template/golang.ts:269](https://github.com/isdk/ai-tool.js/blob/b0813174e9b350ae47231f8e5f885150313123b0/src/utils/prompt/template/golang.ts#L269)
@@ -18,4 +18,4 @@
18
18
 
19
19
  ## Defined in
20
20
 
21
- [packages/ai-tool/src/utils/split-sentence.ts:260](https://github.com/isdk/ai-tool.js/blob/e324043799402aa2caa41711a9168487ab85c166/src/utils/split-sentence.ts#L260)
21
+ [packages/ai-tool/src/utils/split-sentence.ts:260](https://github.com/isdk/ai-tool.js/blob/b0813174e9b350ae47231f8e5f885150313123b0/src/utils/split-sentence.ts#L260)
@@ -18,4 +18,4 @@
18
18
 
19
19
  ## Defined in
20
20
 
21
- [packages/ai-tool/src/utils/split-sentence.ts:223](https://github.com/isdk/ai-tool.js/blob/e324043799402aa2caa41711a9168487ab85c166/src/utils/split-sentence.ts#L223)
21
+ [packages/ai-tool/src/utils/split-sentence.ts:223](https://github.com/isdk/ai-tool.js/blob/b0813174e9b350ae47231f8e5f885150313123b0/src/utils/split-sentence.ts#L223)
@@ -42,4 +42,4 @@ IsModelNameMatched("gpt-2", (modelName) => modelName.startsWith("gpt-")) // retu
42
42
 
43
43
  ## Defined in
44
44
 
45
- [packages/ai-tool/src/utils/is-model-name-matched.ts:21](https://github.com/isdk/ai-tool.js/blob/e324043799402aa2caa41711a9168487ab85c166/src/utils/is-model-name-matched.ts#L21)
45
+ [packages/ai-tool/src/utils/is-model-name-matched.ts:21](https://github.com/isdk/ai-tool.js/blob/b0813174e9b350ae47231f8e5f885150313123b0/src/utils/is-model-name-matched.ts#L21)
@@ -33,4 +33,4 @@ isPunctuationChar('a'); // returns false
33
33
 
34
34
  ## Defined in
35
35
 
36
- [packages/ai-tool/src/utils/split-sentence.ts:245](https://github.com/isdk/ai-tool.js/blob/e324043799402aa2caa41711a9168487ab85c166/src/utils/split-sentence.ts#L245)
36
+ [packages/ai-tool/src/utils/split-sentence.ts:245](https://github.com/isdk/ai-tool.js/blob/b0813174e9b350ae47231f8e5f885150313123b0/src/utils/split-sentence.ts#L245)
@@ -18,4 +18,4 @@
18
18
 
19
19
  ## Defined in
20
20
 
21
- [packages/ai-tool/src/utils/isRegExp.ts:3](https://github.com/isdk/ai-tool.js/blob/e324043799402aa2caa41711a9168487ab85c166/src/utils/isRegExp.ts#L3)
21
+ [packages/ai-tool/src/utils/isRegExp.ts:3](https://github.com/isdk/ai-tool.js/blob/b0813174e9b350ae47231f8e5f885150313123b0/src/utils/isRegExp.ts#L3)
@@ -20,4 +20,4 @@
20
20
 
21
21
  ## Defined in
22
22
 
23
- [packages/ai-tool/src/utils/split-sentence.ts:197](https://github.com/isdk/ai-tool.js/blob/e324043799402aa2caa41711a9168487ab85c166/src/utils/split-sentence.ts#L197)
23
+ [packages/ai-tool/src/utils/split-sentence.ts:197](https://github.com/isdk/ai-tool.js/blob/b0813174e9b350ae47231f8e5f885150313123b0/src/utils/split-sentence.ts#L197)
@@ -18,4 +18,4 @@
18
18
 
19
19
  ## Defined in
20
20
 
21
- [packages/ai-tool/src/utils/split-sentence.ts:187](https://github.com/isdk/ai-tool.js/blob/e324043799402aa2caa41711a9168487ab85c166/src/utils/split-sentence.ts#L187)
21
+ [packages/ai-tool/src/utils/split-sentence.ts:187](https://github.com/isdk/ai-tool.js/blob/b0813174e9b350ae47231f8e5f885150313123b0/src/utils/split-sentence.ts#L187)
@@ -18,4 +18,4 @@
18
18
 
19
19
  ## Defined in
20
20
 
21
- [packages/ai-tool/src/utils/split-sentence.ts:227](https://github.com/isdk/ai-tool.js/blob/e324043799402aa2caa41711a9168487ab85c166/src/utils/split-sentence.ts#L227)
21
+ [packages/ai-tool/src/utils/split-sentence.ts:227](https://github.com/isdk/ai-tool.js/blob/b0813174e9b350ae47231f8e5f885150313123b0/src/utils/split-sentence.ts#L227)
@@ -36,4 +36,4 @@ const result = isSubdirectory(parentDir, childDir); // true
36
36
 
37
37
  ## Defined in
38
38
 
39
- [packages/ai-tool/src/utils/has-directory-in.ts:17](https://github.com/isdk/ai-tool.js/blob/e324043799402aa2caa41711a9168487ab85c166/src/utils/has-directory-in.ts#L17)
39
+ [packages/ai-tool/src/utils/has-directory-in.ts:17](https://github.com/isdk/ai-tool.js/blob/b0813174e9b350ae47231f8e5f885150313123b0/src/utils/has-directory-in.ts#L17)
@@ -20,4 +20,4 @@
20
20
 
21
21
  ## Defined in
22
22
 
23
- [packages/ai-tool/src/utils/split-sentence.ts:204](https://github.com/isdk/ai-tool.js/blob/e324043799402aa2caa41711a9168487ab85c166/src/utils/split-sentence.ts#L204)
23
+ [packages/ai-tool/src/utils/split-sentence.ts:204](https://github.com/isdk/ai-tool.js/blob/b0813174e9b350ae47231f8e5f885150313123b0/src/utils/split-sentence.ts#L204)
@@ -35,4 +35,4 @@ isValidFilename('my<file.txt'); // Returns false
35
35
 
36
36
  ## Defined in
37
37
 
38
- [packages/ai-tool/src/utils/filename.ts:63](https://github.com/isdk/ai-tool.js/blob/e324043799402aa2caa41711a9168487ab85c166/src/utils/filename.ts#L63)
38
+ [packages/ai-tool/src/utils/filename.ts:63](https://github.com/isdk/ai-tool.js/blob/b0813174e9b350ae47231f8e5f885150313123b0/src/utils/filename.ts#L63)
@@ -24,4 +24,4 @@ A boolean indicating whether the filepath is valid. Returns true if valid; false
24
24
 
25
25
  ## Defined in
26
26
 
27
- [packages/ai-tool/src/utils/filename.ts:72](https://github.com/isdk/ai-tool.js/blob/e324043799402aa2caa41711a9168487ab85c166/src/utils/filename.ts#L72)
27
+ [packages/ai-tool/src/utils/filename.ts:72](https://github.com/isdk/ai-tool.js/blob/b0813174e9b350ae47231f8e5f885150313123b0/src/utils/filename.ts#L72)
@@ -18,4 +18,4 @@ val is ReadableStream\<any\> \| WritableStream\<any\>
18
18
 
19
19
  ## Defined in
20
20
 
21
- [packages/ai-tool/src/utils/stream/is-web-stream.ts:1](https://github.com/isdk/ai-tool.js/blob/e324043799402aa2caa41711a9168487ab85c166/src/utils/stream/is-web-stream.ts#L1)
21
+ [packages/ai-tool/src/utils/stream/is-web-stream.ts:1](https://github.com/isdk/ai-tool.js/blob/b0813174e9b350ae47231f8e5f885150313123b0/src/utils/stream/is-web-stream.ts#L1)
@@ -42,4 +42,4 @@ console.log(jsonFilterToWhere(jsonFilter)); // Outputs a WHERE clause based on t
42
42
 
43
43
  ## Defined in
44
44
 
45
- [packages/ai-tool/src/utils/json-filter.ts:123](https://github.com/isdk/ai-tool.js/blob/e324043799402aa2caa41711a9168487ab85c166/src/utils/json-filter.ts#L123)
45
+ [packages/ai-tool/src/utils/json-filter.ts:123](https://github.com/isdk/ai-tool.js/blob/b0813174e9b350ae47231f8e5f885150313123b0/src/utils/json-filter.ts#L123)
@@ -28,4 +28,4 @@
28
28
 
29
29
  ## Defined in
30
30
 
31
- [packages/ai-tool/src/utils/json-to-markdown-str.ts:2](https://github.com/isdk/ai-tool.js/blob/e324043799402aa2caa41711a9168487ab85c166/src/utils/json-to-markdown-str.ts#L2)
31
+ [packages/ai-tool/src/utils/json-to-markdown-str.ts:2](https://github.com/isdk/ai-tool.js/blob/b0813174e9b350ae47231f8e5f885150313123b0/src/utils/json-to-markdown-str.ts#L2)
@@ -51,4 +51,4 @@ const content = loadFileFromPaths('config', ['/etc', '/usr/local/etc'], ['.json'
51
51
 
52
52
  ## Defined in
53
53
 
54
- [packages/ai-tool/src/utils/load-file-from-paths.ts:44](https://github.com/isdk/ai-tool.js/blob/e324043799402aa2caa41711a9168487ab85c166/src/utils/load-file-from-paths.ts#L44)
54
+ [packages/ai-tool/src/utils/load-file-from-paths.ts:44](https://github.com/isdk/ai-tool.js/blob/b0813174e9b350ae47231f8e5f885150313123b0/src/utils/load-file-from-paths.ts#L44)
@@ -26,4 +26,4 @@
26
26
 
27
27
  ## Defined in
28
28
 
29
- [packages/ai-tool/src/utils/load-file-from-paths.ts:101](https://github.com/isdk/ai-tool.js/blob/e324043799402aa2caa41711a9168487ab85c166/src/utils/load-file-from-paths.ts#L101)
29
+ [packages/ai-tool/src/utils/load-file-from-paths.ts:101](https://github.com/isdk/ai-tool.js/blob/b0813174e9b350ae47231f8e5f885150313123b0/src/utils/load-file-from-paths.ts#L101)
@@ -26,4 +26,4 @@
26
26
 
27
27
  ## Defined in
28
28
 
29
- [packages/ai-tool/src/funcs/lrucache.ts:6](https://github.com/isdk/ai-tool.js/blob/e324043799402aa2caa41711a9168487ab85c166/src/funcs/lrucache.ts#L6)
29
+ [packages/ai-tool/src/funcs/lrucache.ts:6](https://github.com/isdk/ai-tool.js/blob/b0813174e9b350ae47231f8e5f885150313123b0/src/funcs/lrucache.ts#L6)
@@ -20,4 +20,4 @@
20
20
 
21
21
  ## Defined in
22
22
 
23
- [packages/ai-tool/src/utils/cancelable-ability.ts:340](https://github.com/isdk/ai-tool.js/blob/e324043799402aa2caa41711a9168487ab85c166/src/utils/cancelable-ability.ts#L340)
23
+ [packages/ai-tool/src/utils/cancelable-ability.ts:340](https://github.com/isdk/ai-tool.js/blob/b0813174e9b350ae47231f8e5f885150313123b0/src/utils/cancelable-ability.ts#L340)
@@ -45,4 +45,4 @@ matchUrlProtocol("noProtocolHere");
45
45
 
46
46
  ## Defined in
47
47
 
48
- [packages/ai-tool/src/utils/match-url-protocol.ts:23](https://github.com/isdk/ai-tool.js/blob/e324043799402aa2caa41711a9168487ab85c166/src/utils/match-url-protocol.ts#L23)
48
+ [packages/ai-tool/src/utils/match-url-protocol.ts:23](https://github.com/isdk/ai-tool.js/blob/b0813174e9b350ae47231f8e5f885150313123b0/src/utils/match-url-protocol.ts#L23)
@@ -24,4 +24,4 @@
24
24
 
25
25
  ## Defined in
26
26
 
27
- [packages/ai-tool/src/utils/memoize.ts:14](https://github.com/isdk/ai-tool.js/blob/e324043799402aa2caa41711a9168487ab85c166/src/utils/memoize.ts#L14)
27
+ [packages/ai-tool/src/utils/memoize.ts:14](https://github.com/isdk/ai-tool.js/blob/b0813174e9b350ae47231f8e5f885150313123b0/src/utils/memoize.ts#L14)
@@ -18,4 +18,4 @@
18
18
 
19
19
  ## Defined in
20
20
 
21
- [packages/ai-tool/src/utils/chat.ts:121](https://github.com/isdk/ai-tool.js/blob/e324043799402aa2caa41711a9168487ab85c166/src/utils/chat.ts#L121)
21
+ [packages/ai-tool/src/utils/chat.ts:121](https://github.com/isdk/ai-tool.js/blob/b0813174e9b350ae47231f8e5f885150313123b0/src/utils/chat.ts#L121)
@@ -29,4 +29,4 @@ A string representing the formatted parameter size with the appropriate scale un
29
29
 
30
30
  ## Defined in
31
31
 
32
- [packages/ai-tool/src/utils/convert-params-size.ts:11](https://github.com/isdk/ai-tool.js/blob/e324043799402aa2caa41711a9168487ab85c166/src/utils/convert-params-size.ts#L11)
32
+ [packages/ai-tool/src/utils/convert-params-size.ts:11](https://github.com/isdk/ai-tool.js/blob/b0813174e9b350ae47231f8e5f885150313123b0/src/utils/convert-params-size.ts#L11)
@@ -6,7 +6,7 @@
6
6
 
7
7
  # Function: parseCommand()
8
8
 
9
- > **parseCommand**(`commandStr`, `scope`?, `options`?): `Promise`\<`object`\>
9
+ > **parseCommand**(`commandStr`, `scope`?, `options`?): `Promise`\<`object` \| `undefined`\>
10
10
 
11
11
  ## Parameters
12
12
 
@@ -18,16 +18,8 @@
18
18
 
19
19
  ## Returns
20
20
 
21
- `Promise`\<`object`\>
22
-
23
- ### args?
24
-
25
- > `optional` **args**: `Record`\<`string`, `any`\>
26
-
27
- ### command
28
-
29
- > **command**: `string`
21
+ `Promise`\<`object` \| `undefined`\>
30
22
 
31
23
  ## Defined in
32
24
 
33
- [packages/ai-tool/src/utils/parse-command.ts:396](https://github.com/isdk/ai-tool.js/blob/e324043799402aa2caa41711a9168487ab85c166/src/utils/parse-command.ts#L396)
25
+ [packages/ai-tool/src/utils/parse-command.ts:397](https://github.com/isdk/ai-tool.js/blob/b0813174e9b350ae47231f8e5f885150313123b0/src/utils/parse-command.ts#L397)
@@ -23,4 +23,4 @@ extract from langchain.js/langchain-core/src/prompts/template.ts
23
23
 
24
24
  ## Defined in
25
25
 
26
- [packages/ai-tool/src/utils/prompt/template/python.ts:16](https://github.com/isdk/ai-tool.js/blob/e324043799402aa2caa41711a9168487ab85c166/src/utils/prompt/template/python.ts#L16)
26
+ [packages/ai-tool/src/utils/prompt/template/python.ts:16](https://github.com/isdk/ai-tool.js/blob/b0813174e9b350ae47231f8e5f885150313123b0/src/utils/prompt/template/python.ts#L16)
@@ -35,4 +35,4 @@ console.log(json); // { name: 'John' }
35
35
 
36
36
  ## Defined in
37
37
 
38
- [packages/ai-tool/src/utils/parse-js-json.ts:16](https://github.com/isdk/ai-tool.js/blob/e324043799402aa2caa41711a9168487ab85c166/src/utils/parse-js-json.ts#L16)
38
+ [packages/ai-tool/src/utils/parse-js-json.ts:16](https://github.com/isdk/ai-tool.js/blob/b0813174e9b350ae47231f8e5f885150313123b0/src/utils/parse-js-json.ts#L16)
@@ -20,4 +20,4 @@
20
20
 
21
21
  ## Defined in
22
22
 
23
- [packages/ai-tool/src/utils/parse-js-json.ts:28](https://github.com/isdk/ai-tool.js/blob/e324043799402aa2caa41711a9168487ab85c166/src/utils/parse-js-json.ts#L28)
23
+ [packages/ai-tool/src/utils/parse-js-json.ts:28](https://github.com/isdk/ai-tool.js/blob/b0813174e9b350ae47231f8e5f885150313123b0/src/utils/parse-js-json.ts#L28)
@@ -24,4 +24,4 @@
24
24
 
25
25
  ## Defined in
26
26
 
27
- [packages/ai-tool/src/utils/parse-command.ts:254](https://github.com/isdk/ai-tool.js/blob/e324043799402aa2caa41711a9168487ab85c166/src/utils/parse-command.ts#L254)
27
+ [packages/ai-tool/src/utils/parse-command.ts:255](https://github.com/isdk/ai-tool.js/blob/b0813174e9b350ae47231f8e5f885150313123b0/src/utils/parse-command.ts#L255)
@@ -22,4 +22,4 @@
22
22
 
23
23
  ## Defined in
24
24
 
25
- [packages/ai-tool/src/utils/parse-command.ts:92](https://github.com/isdk/ai-tool.js/blob/e324043799402aa2caa41711a9168487ab85c166/src/utils/parse-command.ts#L92)
25
+ [packages/ai-tool/src/utils/parse-command.ts:93](https://github.com/isdk/ai-tool.js/blob/b0813174e9b350ae47231f8e5f885150313123b0/src/utils/parse-command.ts#L93)
@@ -65,4 +65,4 @@ console.log(arrayResult); // Output: [1, 2, 3]
65
65
 
66
66
  ## Defined in
67
67
 
68
- [packages/ai-tool/src/utils/parse-command.ts:70](https://github.com/isdk/ai-tool.js/blob/e324043799402aa2caa41711a9168487ab85c166/src/utils/parse-command.ts#L70)
68
+ [packages/ai-tool/src/utils/parse-command.ts:71](https://github.com/isdk/ai-tool.js/blob/b0813174e9b350ae47231f8e5f885150313123b0/src/utils/parse-command.ts#L71)
@@ -39,4 +39,4 @@ An array of parsed argument information, where each item contains a boolean indi
39
39
 
40
40
  ## Defined in
41
41
 
42
- [packages/ai-tool/src/utils/parse-command.ts:303](https://github.com/isdk/ai-tool.js/blob/e324043799402aa2caa41711a9168487ab85c166/src/utils/parse-command.ts#L303)
42
+ [packages/ai-tool/src/utils/parse-command.ts:304](https://github.com/isdk/ai-tool.js/blob/b0813174e9b350ae47231f8e5f885150313123b0/src/utils/parse-command.ts#L304)
@@ -18,4 +18,4 @@
18
18
 
19
19
  ## Defined in
20
20
 
21
- [packages/ai-tool/src/utils/config.ts:24](https://github.com/isdk/ai-tool.js/blob/e324043799402aa2caa41711a9168487ab85c166/src/utils/config.ts#L24)
21
+ [packages/ai-tool/src/utils/config.ts:24](https://github.com/isdk/ai-tool.js/blob/b0813174e9b350ae47231f8e5f885150313123b0/src/utils/config.ts#L24)
@@ -18,4 +18,4 @@
18
18
 
19
19
  ## Defined in
20
20
 
21
- [packages/ai-tool/src/utils/parse-command.ts:204](https://github.com/isdk/ai-tool.js/blob/e324043799402aa2caa41711a9168487ab85c166/src/utils/parse-command.ts#L204)
21
+ [packages/ai-tool/src/utils/parse-command.ts:205](https://github.com/isdk/ai-tool.js/blob/b0813174e9b350ae47231f8e5f885150313123b0/src/utils/parse-command.ts#L205)