Skip to content

Releases: yeuai/botscript

v1.8.0

11 Sep 01:51
b8e31cb
Compare
Choose a tag to compare

New Features

Usage:

> chatgpt

# definition
- api-key
- api-url
- api-stream

Bugfixes and Improvement

v1.7.2

02 Aug 15:05
7654e30
Compare
Choose a tag to compare

New Features

  • Support plugins do post-processing (the document parsed from text)

Bugfixes and Improvement

  • N/A

v1.7.1

14 Jun 11:34
0a84120
Compare
Choose a tag to compare

New Features

  • Add system response
  • Add type trigger

Bugfixes and Improvement

  • implement action exploreDialogue
  • sort trigger before transform to activator
  • refactor variable assignment

v1.7.0

07 Apr 08:33
a77d2f3
Compare
Choose a tag to compare

New Features

  • Add identifier to context, request
  • Add request scope: contexts, $flows
  • New api: Create newRequest() from context

Bugfixes and Improvement

  • Fix conditional reply (with new syntax)
  • Fix undefined references when request isFlowing but context does not contain flow (leads to unable to discover dialogue)
  • Support multiple (AND) conditions for plugins

v1.6.3

27 Mar 02:56
80c64ad
Compare
Choose a tag to compare

New Features

  • N/A

Bugfixes and Improvement

  • Fix guard is flow access undefined reference to a dialogue

v1.6.2

26 Mar 02:42
3d7adbb
Compare
Choose a tag to compare

New Features

  • Support variable usage in format: $Titlecase

Bugfixes and Improvement

  • Fix: format variable but keep original spaces

Example

@ service1 put /api/http/put

+ put me
* true @> service1
- Result $message $Titlecase

v1.6.1

25 Mar 04:10
81582c3
Compare
Choose a tag to compare

New Features

  • Command supports all http methods: get, post, put, delete, options, head

Bugfixes and Improvement

  • Cleanup logs

Example

@ service1 put /api/http/put

@ service2 delete /api/http/delete

+ put me
* true @> service1
- Result $message

+ delete me
* true @> service2
- Result $message2

v1.6.0

24 Mar 12:03
98ec77a
Compare
Choose a tag to compare

New Features

  • Add new directive /plugin
  • Support directive /plugin code is written in botscript document, so user has ability to create plugin from BotScript.AI platform without code
  • Support directive /plugin run in node and browser

Bugfixes and Improvement

  • Refactor struct directive paring
  • Update readme

Example

/plugin: test
```js
req.variables.today = new Date().getDate();
req.variables.day = new Date().getDay();

# add current year ??
req.variables.year = new Date().getFullYear();
```

> test

+ howdy
- Today is $today

v1.5.3

23 Mar 11:16
3d71d43
Compare
Choose a tag to compare

New Features

  • N/A

Bugfixes and Improvement

  • Fix support inline comment
  • Update readme
+ *
* $previous[0] == 'who is there'  # must have happened
* $input == 'its me' -> i know you!
- $1 who?

v1.5.2

10 Mar 10:41
c8d42cd
Compare
Choose a tag to compare

New Features

  • interpolate url with variables 0663935
@ find_me https://your.api/url?query={{name}}

+ find *{name}
* true => @ find_me
- Result: $find_me.[0].name

Bugfixes and Improvement

  • fix: definition interpolation, return raw expression if not found 270179e
  • add context logger 8ccdb69