@mindstudio-ai/agent 0.1.171 → 0.1.172

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 CHANGED
@@ -4,6 +4,13 @@ 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.172
8
+
9
+ ### New
10
+
11
+ - `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.
12
+ - `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.
13
+
7
14
  ## 0.1.171
8
15
 
9
16
  ### New