@lasso-ai/cli 1.0.2 → 1.0.4

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/README.md CHANGED
@@ -259,8 +259,8 @@ pnpm add --global @lasso-ai/cli
259
259
  yarn global add @lasso-ai/cli
260
260
  ```
261
261
 
262
- Use a project-local install when you want each repository to pin its Lasso
263
- version; use the global install for a convenient machine-wide CLI.
262
+ Use the global install for the supported hosted CLI. Set `LASSO_AUTH_URL=http://localhost:3005`
263
+ only when developing against a local Lasso server.
264
264
 
265
265
  ### 2. Start Lasso
266
266
 
@@ -10,7 +10,8 @@ export interface CliCredentials {
10
10
  /**
11
11
  * Base URL of the Lasso API (the main server, not the realtime server). The
12
12
  * `lasso auth` flow lives here because the browser confirm needs the web session.
13
- * Defaults to the local development port used by `server/` and `web/`.
13
+ * Defaults to the hosted Lasso API. Set LASSO_AUTH_URL or LASSO_API_URL for
14
+ * local development.
14
15
  */
15
16
  export declare function serverUrlFrom(fileEnv: Record<string, string>): string;
16
17
  export declare function fetchWithTimeout(url: string, init?: RequestInit, timeoutMs?: number): Promise<Response>;
package/dist/cli/auth.js CHANGED
@@ -22,14 +22,15 @@ const CREDENTIALS_FILE = node_path_1.default.join(CREDENTIALS_DIR, "credentials.
22
22
  /**
23
23
  * Base URL of the Lasso API (the main server, not the realtime server). The
24
24
  * `lasso auth` flow lives here because the browser confirm needs the web session.
25
- * Defaults to the local development port used by `server/` and `web/`.
25
+ * Defaults to the hosted Lasso API. Set LASSO_AUTH_URL or LASSO_API_URL for
26
+ * local development.
26
27
  */
27
28
  function serverUrlFrom(fileEnv) {
28
29
  return (process.env.LASSO_AUTH_URL ||
29
30
  fileEnv.LASSO_AUTH_URL ||
30
31
  process.env.LASSO_API_URL ||
31
32
  fileEnv.LASSO_API_URL ||
32
- "http://localhost:3005").replace(/\/$/, "");
33
+ "https://api.lasso.byorello.space").replace(/\/$/, "");
33
34
  }
34
35
  function fetchWithTimeout(url, init, timeoutMs = 8000) {
35
36
  const controller = new AbortController();
package/dist/overlay.js CHANGED
@@ -15648,9 +15648,8 @@
15648
15648
  }
15649
15649
  const isLassoPage = typeof window !== "undefined" && window.location.hostname.endsWith(".lasso");
15650
15650
  const candidateUrls = isLassoPage ? ["https://api.lasso.byorello.space/api/v1/transcribe"] : [
15651
- "http://localhost:3005/api/v1/transcribe",
15652
- "/api/v1/transcribe",
15653
- "https://api.lasso.byorello.space/api/v1/transcribe"
15651
+ "https://api.lasso.byorello.space/api/v1/transcribe",
15652
+ "/api/v1/transcribe"
15654
15653
  ];
15655
15654
  let lastError = new Error("Failed to contact transcription service");
15656
15655
  for (const url2 of candidateUrls) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lasso-ai/cli",
3
- "version": "1.0.2",
3
+ "version": "1.0.4",
4
4
  "description": "Select any part of your running app, describe a change, and let AI edit the real source code.",
5
5
  "type": "commonjs",
6
6
  "main": "dist/cli/index.js",