@oya-ai/cli 1.0.86 → 1.0.88

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 (2) hide show
  1. package/dist/index.js +10 -7
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -174,9 +174,10 @@ var Browser = class {
174
174
  return res.text;
175
175
  }
176
176
  /**
177
- * Save the last `ask()` on this browser as a named playbook. Values that came
178
- * from the prompt (names, IDs, dates) become variables; `code` is the same
179
- * flow as a Playwright module, to read or run yourself.
177
+ * Save the last `ask()` on this browser as a named playbook. Every value that was
178
+ * typed, picked or clicked becomes a variable, with what the run used kept in
179
+ * `defaults`, so `play()` with nothing repeats the run and any one value can be
180
+ * swapped. `code` is the same flow as a Playwright module, to read or run yourself.
180
181
  */
181
182
  toPlaybook(name) {
182
183
  return this.http.request("POST", `/api/browsers/${this.id}/playbooks`, { name }, 12e4);
@@ -346,6 +347,7 @@ var Run = class {
346
347
  }
347
348
  }
348
349
  };
350
+ var MAX_FILE_BYTES = 10 * 1024 * 1024;
349
351
  var DEFAULT_BASE_URL = "https://browser.getoya.ai";
350
352
  var READY_POLL_MS = 2e3;
351
353
  var env = (name) => globalThis.process?.env?.[name];
@@ -475,10 +477,11 @@ var Oya = class {
475
477
  *
476
478
  * Bring your own LLM key (it pays for its own tokens, so no hourly chat quota applies):
477
479
  * await oya.config.set({ llm_provider: 'gemini', openai_api_key: process.env.GEMINI_API_KEY });
478
- * `llm_provider` is 'openai' | 'anthropic' | 'gemini' | 'vertex'; `chat_model` overrides
479
- * its default model. 'vertex' is Gemini Enterprise (ex-Vertex AI) in express mode, which
480
- * needs no GCP project; for a project-scoped endpoint, set `openai_base_url` to
481
- * `.../endpoints/openapi` and pass an OAuth access token as `openai_api_key`.
480
+ * `llm_provider` is the {@link LlmProvider} union, so an editor offers the choices and a
481
+ * typo is a compile error; `chat_model` overrides its default model. 'vertex' is Gemini
482
+ * Enterprise (ex-Vertex AI) in express mode, which needs no GCP project; for a
483
+ * project-scoped endpoint, set `openai_base_url` to `.../endpoints/openapi` and pass an
484
+ * OAuth access token as `openai_api_key`. See {@link ConfigUpdate} for every field.
482
485
  */
483
486
  config = {
484
487
  get: () => this.http.request("GET", "/api/config"),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oya-ai/cli",
3
- "version": "1.0.86",
3
+ "version": "1.0.88",
4
4
  "description": "Command line for the Oya browser control plane.",
5
5
  "license": "MIT",
6
6
  "homepage": "https://browser.getoya.ai",
@@ -39,7 +39,7 @@
39
39
  "access": "public"
40
40
  },
41
41
  "devDependencies": {
42
- "@oya-ai/browser": "1.0.86",
42
+ "@oya-ai/browser": "1.0.88",
43
43
  "@types/node": "^20.19.43",
44
44
  "tsup": "^8.0.0",
45
45
  "typescript": "^5.4.0"