@mindstudio-ai/agent 0.1.171 → 0.1.173
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +24 -0
- package/dist/cli.js +575 -12
- package/dist/index.d.ts +406 -10
- package/dist/index.js +569 -5
- package/dist/index.js.map +1 -1
- package/dist/postinstall.js +575 -12
- package/llms.txt +28 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,30 @@ What changed in `@mindstudio-ai/agent`, newest first, each version under its own
|
|
|
4
4
|
|
|
5
5
|
Versions before 0.1.163 aren't recorded here.
|
|
6
6
|
|
|
7
|
+
## 0.1.173
|
|
8
|
+
|
|
9
|
+
### New
|
|
10
|
+
|
|
11
|
+
- `voice.call({ to, from? })`: an app can hold several phone numbers, and `from` names which of them the call comes from. It must be one of the app's active numbers (`from_not_app_number`). With one number it can be left out, as before. With several it can't: a call without it throws `from_required`.
|
|
12
|
+
- A phone call's `session.sip` carries `appNumber`, the app's own number on the call: the number dialed on an inbound call, the caller ID on an outbound one. An app that gives each of its tenants a number finds the tenant by it, whichever way the call went. Absent on older platform versions.
|
|
13
|
+
- `downloadVideo` takes `item`, which item of a URL holding several to download (a carousel, a playlist, a post with several videos), counting from 1, and `start` and `duration`, in seconds, for a clip. An mp4 clip is cut without re-encoding, so it can start a moment before `start`; an mp3 clip is exact. Its output adds `title`, `durationSec` (the downloaded file's own length) and `itemCount` (how many items the URL holds, absent for a playlist the site doesn't count up front). App code isn't affected.
|
|
14
|
+
- A browser session's `screenshot({ boxes })` takes elements, named as an action names them, and the shot's `boxes` say where each is in it, in its CSS pixels, measured as the shot is taken (`null` for one the page doesn't have). Draw highlights from these: an action's `box` is where the element was as the action landed, and a page can move after, as when a banner arrives and pushes it down, so a highlight drawn from it can miss on a later shot. They also hold on a `fullPage` shot, where an action's viewport `box` doesn't. Check: an app that draws a highlight on a screenshot from an action's `box` should ask the screenshot for it instead.
|
|
15
|
+
|
|
16
|
+
### Changed behavior
|
|
17
|
+
|
|
18
|
+
- An app with more than one active phone number must pass `from` to `voice.call`. Apps with one number aren't affected.
|
|
19
|
+
|
|
20
|
+
### Fixed
|
|
21
|
+
|
|
22
|
+
- `downloadVideo` on an Instagram link to one slide of a carousel (`?img_index=3`) downloads that slide, where it downloaded the first. A photo, and an item past the end of a URL's list, now fail at once with `video_unavailable`, where they retried and then failed with `download_failed`. An app that matched `download_failed` for those should match `video_unavailable`.
|
|
23
|
+
|
|
24
|
+
## 0.1.172
|
|
25
|
+
|
|
26
|
+
### New
|
|
27
|
+
|
|
28
|
+
- `browser`: a real Chrome an app's backend drives. `browser.open({ url?, viewport?, idleTimeoutSeconds? })` starts a session that stays open across calls, and `browser.session(id)` picks it up from a later one. Its actions (`goto`, `snapshot`, `click`, `type`, `select`, `press`, `scroll`, `waitFor`, `screenshot`, `evaluate`, `close`) each answer with the page afterward, an outline with a ref on everything that can be acted on. `screenshot({ store })` saves straight into a file store, and `screenshot({ cursor: true })` keeps the session's cursor in the shot. `session.tools({ secrets?, screenshots? })` gives `runTask` one tool for a model to drive it, `browser`, which takes a list of steps, runs them in order, stops at the first that fails, and answers with each step's outcome and the page once. With `screenshots`, a store, it adds `browser_screenshot`, which saves a screenshot there and answers with its key and a written description (an `analyzeImage` call). `session.grantView()` is a grant the frontend's `browser.view` (`@mindstudio-ai/interface` 0.1.36) watches it live with. App code isn't affected.
|
|
29
|
+
- `runTask`'s inline tools take `supersedes: '<key>'`, for a result that a newer one makes stale (a page): only the latest under each key stays in full in what the model is resent. `toolCalls`, `onEvent` and the trace still carry every result. App code isn't affected.
|
|
30
|
+
|
|
7
31
|
## 0.1.171
|
|
8
32
|
|
|
9
33
|
### New
|