Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@isdk/ai-tool-agent

Package Overview
Dependencies
Maintainers
1
Versions
37
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@isdk/ai-tool-agent - npm Package Versions

123

0.0.8

Diff

Changelog

Source

0.0.8 (2024-08-11)

Features

  • add async-semaphore class (554d3d3)
  • add cancelable-ability (1b59eed)
  • add convert-params-size func (f40be61)
  • add datetime helper functions (a690b78)
  • add exclude option to load-file-from-paths (584a625)
  • add IntSet class (3891766)
  • add isWebStream func (c97c2f9)
  • add jsonToMarkdownStr func (f426592)
  • add messagesToText func (60f82c0)
  • add readFilenamesRecursiveSync func (a1c321a)
  • add ToolFuncPackage type (d2bbd91)
  • AITextGenerationFinishReasons: add taskId for stream chunk (b688b47)
  • CancelableAbility: add optional generateAsyncTaskId, cleanMultiTaskAborter methods and apply chunk.taskId for object stream (a4d87fe)
  • CancelableAbility: add ReadableStream and multi-tasks with maxTaskConcurrency supports (9399647)
  • CancelableAbility: add throwRejected method to TaskAbortController (5d1c366)
  • CancelableAbility: can pass an AbortController into task now (76b3398)
  • export formatISO func (5deb35c)
  • export parseDateFormat, toDate (4719167)
  • export parseISO from date-fns (ce9e4de)
  • IntSet: add static methods (bac2f14)
  • IntSet: add valueOf, toJSON, toString (5ade81c)
  • more http status code added (8065169)
  • Semaphore: add .alreadyRejected flag to signal (5d3aea3)
  • Semaphore: add AbortSignal supports (25f2e35)
  • Semaphore: add DefaultAsyncSemaphoreCapacity constant (0ec9d3f)
  • tool-func: add asyncFeatures option (b4ce16c)
  • ToolFunc: add _asyncFeatures for ability injection (2d60803)
  • ToolFunc: add static hasAsyncFeature (4715821)
  • util: add paramsSizeToScaleStr,scaleStrToParamsSize funcs (89230c7)

Bug Fixes

  • base-error: add default AbortError name for AbortError (635ea51)
  • CancelableAbility: abort should assign data to reason if reason is an object (4d20bec)
  • CancelableAbility: Because cannot standardize the internal variable format of terser, we have switched to managing it ourselves. (787e914)
  • CancelableAbility: should abort waiting task immediately (82777c4)
  • CancelableAbility: should clean task if task raise error (4a4ae0b)
  • CancelableAbility: should hide parent, streamController props of TaskAbortController (bf79f04)
  • CancelableAbility: verify passed aborter type (30a068d)
  • jinja2: throw SyntaxError(`Unknown statement type: ${tokens[current].type} ${tokens[current].value} with value (fa7e86d)
  • jinja: Pass undefined value as null value, do not throw error (7f1a703)
  • readFilenamesRecursiveSync: should use absoluteDir to check whether visitedDirs (bf5c7a6)
  • Semaphore: public maxConcurrency readonly (b2ddb88)
  • ToolFunc: const ToolAsyncMultiTas should be ToolAsyncMultiTaskBit (f195536)
  • typo (59bba56)
  • util: jsonFilterToWhere should convert date to UTC ISO Date string (b995268)
  • utils: filter duplicaion punctuations in split-sentence (7dc9f99)

Refactor

  • CancelableAbility: keep abort compatibility (1365815)
  • CancelableAbility: make abort more stable (b035b8f)
  • CancelableAbility: new TaskAbortController Class with parent, streamController and abort (9be5ab4)
  • CancelableAbility: the default cleanMultiTaskAborter (48ac131)
  • createCallbacksTransformer more general (2f76138)
  • end-with-repeated-sequence return matched now (0a94b7b)
  • export createAbilityInjector (a5ceeb6)
  • ToolFunc: remove async keyword to avoid more Promise wrapped (199ae62)
isdk
published 0.0.7 •

Changelog

Source

0.0.7 (2024-07-08)

Features

  • add ActionNames (26df515)
  • add AIModelNameRule (cae24d7)
  • add depends option to ToolFunc (bc33b72)
  • add event server/client via SSE (2926592)
  • add event toolfunc (4b57a10)
  • add EventName const (47283fb)
  • add eventServer, eventClient constants (13e7af5)
  • add extNameLevel func (5a1e9ab)
  • add filename util functions (e065643)
  • add filterNullOrUndefined func (d333c32)
  • add FStringPromptTemplate class (25609d1)
  • add get yaml/json config/data files (569e559)
  • add getAllEnumKeys func (7b47521)
  • add getAllEnumKeys func (039fb25)
  • add getKeysPath func (c9da157)
  • add getMultiLevelExtname func (264514e)
  • add golang prompt template (51bbbce)
  • add hash util (f767017)
  • add isModelNameMatched func (fb719ee)
  • add iteratorWrap func from vadzim (4d4d070)
  • add jinja template from huggingface.js (e61b3d0)
  • add more funcs (13976e3)
  • add obj params and pos params supports both, and defaults to obj params now (d2675a1)
  • add parseJsJson func (73cb3f5)
  • add partial method and toJSON (ecc2403)
  • add PromptExampleSelector class (ebe44ae)
  • add PromptTemplate (c83f306)
  • add ResServerTools/ResClientTools for RESTful API (9fb6b43)
  • add ServerTools and ClientTools (df49839)
  • add stream option to RemoteFunc (af60550)
  • add tags option to ToolFunc and add getByTag, getAllByTag methods (9d507b2)
  • add templateFormat option to AIChatMessageParam (4e3d361)
  • base-error: add AbortError (365721e)
  • chat: add abort to AITextGenerationFinishReasons (6a4e813)
  • chat: add AIChatMessageParamBase (d7ca654)
  • chat: add stop option to AIResult for stream mode (8857259)
  • ClientTools: add stream supports and getUrlParams check empty params now (04c5adb)
  • ClientTools: can raise Error from server (a788d58)
  • event toolfunc (b9c2b15)
  • export SSEChannel (1f6475d)
  • export the EventClient and EventSever (3cec56b)
  • export utils functions (4288df6)
  • hf-prompt: add createHfValueFunc func (35b2d6f)
  • hf-prompt: createHfValueFunc support ObjectValue now (39d6890)
  • is-model-name-matched: support regexp string match (8c0b0f2)
  • jinja: add builtin functions to jinja (31ce6f8)
  • jinja: add filter:string/tojson/trimStart/trimEnd, object toString/toJson support (9888cef)
  • jinja: add isStatement in Statement to help check whether isTemplate (e423ef8)
  • jinja: add options to Template class (6ceb7cd)
  • jinjia: Add global Environment to Template class (a784a4b)
  • jinjia: the arguments of the user defined function is javascript value now (817cb9c)
  • jinjia: user defined function can be filter now (a953383)
  • json-filter func (5dbec46)
  • PromptExampleSelector: add threshold option to the threshold probability (0-1) at which a sample is selected. (932679f)
  • PromptTemplate: add default template format supports to register PromptTemplate alias with "default" (81ddf6c)
  • PromptTemplate: add FewShotPromptTemplate class (79e42dd)
  • PromptTemplate: add ignoreInitialize option (e1d7e93)
  • PromptTemplate: add static isTemplate and formatIf methods (b7286bc)
  • PromptTemplate: add static method format (12eeca4)
  • PromptTemplate: add templateFormat option to PromptTemplate (26847c5)
  • ResClientTools: add ResClientFuncParams (6af7d94)
  • ResourceAPI: add custom methods supports (5cb067d)
  • ResServerTools: add the same custom method without prefix "$" to the instance (dfefd17)
  • ServerTools: add isStream() method (b3a15a5)
  • ServerTools: always pass _req, _res by convention (8f2db5e)
  • template: add env variables expand template (6845b83)
  • test: add test util to export (ecdc149)
  • ToolFunc: add dataPath static member (71e3d7c)
  • use CommonError (81babef)
  • util: add filter argument to getConfigs (186b46a)
  • util: add matchUrlProtocol func (91427f7)
  • util: add optional scope argument to parseJsJson (3e12f16)
  • util: add saveConfigFile func (e820c1f)
  • utils: add createEndWithRepetitionDetector func (ba3be00)
  • utils: add loadFileFromPaths/loadTextFromPaths functions (24d4526)
  • utils: loadFileFromPaths pass the filepath back through options (d0d21fa)

Bug Fixes

  • add exports to package.json for module need (47b64a3)
  • add items to ClientTools (0ebea4c)
  • AIModelNameRules: function test could be in the rule array (650dc2c)
  • build: entries error (c5e6d13)
  • build: entries error (36da8ef)
  • can not register the depends when calling from ToolFunc.register (89f92f0)
  • ClientTools: add message to error (595fe20)
  • ClientTools: allow json object as id (94a2038)
  • ClientTools: loadFromSync should assign properties for exists item (6069cfe)
  • ClientTools: only setApiRoot on ClientTools (158145e)
  • create SSEChannel on-demand (7bd7ed5)
  • do not escape object id (13a3fa5)
  • do not recreate cache if LRUCache exists (c76caa0)
  • EventToolFunc: use full EventEmitter (d357402)
  • f-string: should format string when missing value (81d135c)
  • hf-prompt: isTemplate should not treat string as template (b5fbd18)
  • hf-prompt: should test isTemplate without variable (aa700f2)
  • import commjs module xxhashjs error (e5e605c)
  • json-filter: add missing null and boolean supports (7b725c7)
  • load-file-from-paths: should search the file with difference extname even it's the absoluted path (1741104)
  • lrucache: can pass object options now (efb6adb)
  • only setInternal when pingTimer > 0 (adf2b2a)
  • prompt: forget to export the FStringPromptTemplate (b0b5935)
  • PromptTemplate: _format method should be async or sync (61537cc)
  • PromptTemplate: get default template format (6aa0abc)
  • PromptTemplate: it should assign the data etc on initialize (eb10c70)
  • PromptTemplate: static from method should apply PromptTemplateOptions only too (6653c1c)
  • PromptTemplate: templateFormat should be point to others, usage see FewShotPromptTemplate (9ea70ae)
  • remove unused entries (1405114)
  • ResClientTools: should escape the id (35ee703)
  • ResServerTools: list should no options (996bd96)
  • RESTful: ResClientTools/ResServerTools can work now (bb8f7b0)
  • ServerTools: can not visit func which registered on ToolFunc (2b63ed4)
  • ServerTools: ClientTools&ServerTools register items into ToolFunc now, So test it together carefully, seperate them see tests (5820ce6)
  • ServerTools: item could be ToolFunc or ServerTools (d91acc5)
  • ServerTools: only setApiRoot on ServerTools (9da7dff)
  • the error name should be the function name (8d43286)
  • ToolFunc: do not export depends now (3c054e2)
  • ToolFunc: name as optional in FuncParam (bb8d56c)
  • ts declarations (2554431)
  • ts: AIModelNameRuleFn should return string|RegExpExecArray|undefined instead of boolean (6da2108)
  • ts: id in res-server allow number (dd7a382)
  • ts: minor change (0a10c09)
  • ts: minor change (b27d633)
  • ts: what AlreadyExistsError allow number (34d9041)
isdk
published 0.0.6 •

Changelog

Source

0.0.6 (2024-06-11)

Features

  • utils: loadFileFromPaths pass the filepath back through options (c377a14)
isdk
published 0.0.5 •

Changelog

Source

0.0.5 (2024-06-09)

Bug Fixes

  • load-file-from-paths: should search the file with difference extname even it's the absoluted path (27dc5aa)
isdk
published 0.0.4 •

Changelog

Source

0.0.4 (2024-06-08)

isdk
published 0.0.3 •

Changelog

Source

0.0.3 (2024-06-07)

Features

  • util: add matchUrlProtocol func (9baa772)
isdk
published 0.0.2 •

Changelog

Source

0.0.2 (2024-06-07)

Features

  • add ActionNames (076c31c)
  • add AIModelNameRule (e6ae2fc)
  • add depends option to ToolFunc (36c1dbd)
  • add event server/client via SSE (1f05de6)
  • add event toolfunc (ab02e46)
  • add EventName const (b46a7e8)
  • add eventServer, eventClient constants (c38fa82)
  • add extNameLevel func (c00021e)
  • add filename util functions (0a6a794)
  • add filterNullOrUndefined func (cd6e09e)
  • add FStringPromptTemplate class (143fa58)
  • add get yaml/json config/data files (ef98583)
  • add getAllEnumKeys func (ab0c103)
  • add getAllEnumKeys func (9c57c7a)
  • add getKeysPath func (19c2709)
  • add getMultiLevelExtname func (c79ad35)
  • add golang prompt template (9dda6d5)
  • add hash util (c0bad40)
  • add isModelNameMatched func (288355f)
  • add iteratorWrap func from vadzim (e37afec)
  • add jinja template from huggingface.js (e3e292d)
  • add more funcs (1cf700d)
  • add obj params and pos params supports both, and defaults to obj params now (0873e44)
  • add parseJsJson func (8e51239)
  • add partial method and toJSON (fdd36e3)
  • add PromptExampleSelector class (b60821a)
  • add PromptTemplate (882f2e1)
  • add ResServerTools/ResClientTools for RESTful API (cc6a529)
  • add ServerTools and ClientTools (a1c4533)
  • add stream option to RemoteFunc (a1f8172)
  • add tags option to ToolFunc and add getByTag, getAllByTag methods (cd99642)
  • add templateFormat option to AIChatMessageParam (e51f4c6)
  • base-error: add AbortError (e50292b)
  • chat: add abort to AITextGenerationFinishReasons (05b93c7)
  • chat: add AIChatMessageParamBase (a26448d)
  • chat: add stop option to AIResult for stream mode (94d0b7a)
  • ClientTools: add stream supports and getUrlParams check empty params now (8fdd7df)
  • ClientTools: can raise Error from server (111b145)
  • event toolfunc (1bb3b94)
  • export SSEChannel (2a2d9a0)
  • export the EventClient and EventSever (aaeb27e)
  • export utils functions (40a7de3)
  • hf-prompt: add createHfValueFunc func (761e786)
  • hf-prompt: createHfValueFunc support ObjectValue now (0160128)
  • is-model-name-matched: support regexp string match (91ae490)
  • jinja: add builtin functions to jinja (efa56f7)
  • jinja: add filter:string/tojson/trimStart/trimEnd, object toString/toJson support (bfe30e3)
  • jinja: add isStatement in Statement to help check whether isTemplate (d89c459)
  • jinja: add options to Template class (b626db1)
  • jinjia: Add global Environment to Template class (b97c569)
  • jinjia: the arguments of the user defined function is javascript value now (ad79534)
  • jinjia: user defined function can be filter now (4928730)
  • json-filter func (f8f3648)
  • PromptExampleSelector: add threshold option to the threshold probability (0-1) at which a sample is selected. (c16a6e4)
  • PromptTemplate: add default template format supports to register PromptTemplate alias with "default" (0b9303b)
  • PromptTemplate: add FewShotPromptTemplate class (4b8c78e)
  • PromptTemplate: add ignoreInitialize option (5749a2e)
  • PromptTemplate: add static isTemplate and formatIf methods (820c3ca)
  • PromptTemplate: add static method format (8e45648)
  • PromptTemplate: add templateFormat option to PromptTemplate (cb97cc5)
  • ResClientTools: add ResClientFuncParams (58d360d)
  • ResourceAPI: add custom methods supports (c5c67ba)
  • ResServerTools: add the same custom method without prefix "$" to the instance (9ed5410)
  • ServerTools: add isStream() method (02f6b85)
  • ServerTools: always pass _req, _res by convention (5830a56)
  • template: add env variables expand template (befcda8)
  • test: add test util to export (66fa5dd)
  • ToolFunc: add dataPath static member (30e7e10)
  • use CommonError (2baf463)
  • util: add saveConfigFile func (abaf2ed)
  • utils: add createEndWithRepetitionDetector func (48f1b68)
  • utils: add loadFileFromPaths/loadTextFromPaths functions (04ed009)

Bug Fixes

  • add exports to package.json for module need (0a4d402)
  • add items to ClientTools (3cf2fcd)
  • AIModelNameRules: function test could be in the rule array (689ef5b)
  • build: entries error (e323825)
  • build: entries error (9702d4c)
  • can not register the depends when calling from ToolFunc.register (fdba963)
  • ClientTools: add message to error (e7b111f)
  • ClientTools: allow json object as id (211a0a9)
  • ClientTools: loadFromSync should assign properties for exists item (f384eee)
  • ClientTools: only setApiRoot on ClientTools (07b0c64)
  • create SSEChannel on-demand (170bede)
  • do not escape object id (7579640)
  • do not recreate cache if LRUCache exists (21b169d)
  • EventToolFunc: use full EventEmitter (e3f0474)
  • f-string: should format string when missing value (f5baa09)
  • hf-prompt: isTemplate should not treat string as template (108a0c4)
  • hf-prompt: should test isTemplate without variable (df4e0d7)
  • import commjs module xxhashjs error (1c7ac56)
  • json-filter: add missing null and boolean supports (7648ba5)
  • lrucache: can pass object options now (751ed81)
  • only setInternal when pingTimer > 0 (9ecd1e4)
  • prompt: forget to export the FStringPromptTemplate (491d370)
  • PromptTemplate: _format method should be async or sync (7ede5f4)
  • PromptTemplate: get default template format (2e821ee)
  • PromptTemplate: it should assign the data etc on initialize (32d1a48)
  • PromptTemplate: static from method should apply PromptTemplateOptions only too (b2a4203)
  • PromptTemplate: templateFormat should be point to others, usage see FewShotPromptTemplate (b81b2db)
  • remove unused entries (e683c7b)
  • ResClientTools: should escape the id (f7a0004)
  • ResServerTools: list should no options (051e59f)
  • RESTful: ResClientTools/ResServerTools can work now (5bb046c)
  • ServerTools: can not visit func which registered on ToolFunc (9e4b4b4)
  • ServerTools: ClientTools&ServerTools register items into ToolFunc now, So test it together carefully, seperate them see tests (4866dbb)
  • ServerTools: item could be ToolFunc or ServerTools (5989582)
  • ServerTools: only setApiRoot on ServerTools (be30938)
  • the error name should be the function name (340aeac)
  • ToolFunc: do not export depends now (c777bb6)
  • ToolFunc: name as optional in FuncParam (f5588d5)
  • ts declarations (006bfb8)
  • ts: AIModelNameRuleFn should return string|RegExpExecArray|undefined instead of boolean (afc2507)
  • ts: id in res-server allow number (57fd229)
  • ts: minor change (d6313e1)
  • ts: minor change (7b740dd)
  • ts: minor changes (af509bc)
  • ts: what AlreadyExistsError allow number (7139eb0)
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc