@lasso-ai/cli 1.0.0 → 1.0.2

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/ARCHITECTURE.md CHANGED
@@ -98,7 +98,7 @@ A Node process that wraps the user's existing dev server. Entry: `src/cli/index.
98
98
 
99
99
  ### 5.1 Responsibilities
100
100
 
101
- 1. Detect framework/bundler on `npx lasso` (`src/cli/utils/framework.ts` reads
101
+ 1. Detect framework/bundler on `npx @lasso-ai/cli` (`src/cli/utils/framework.ts` reads
102
102
  `vite.config.*`, `next.config.*`, `package.json`).
103
103
  2. Spawn the dev server programmatically with the source-mapping plugin injected in memory
104
104
  (`src/cli/server/vite.ts`, `src/cli/server/next.ts`) — the user's own config files are
package/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  <img src="https://lasso.byorello.space/_next/image?url=%2Ficons%2Flogo.png&w=256&q=75" alt="Lasso" width="96" />
4
4
 
5
- # Lasso
5
+ <!-- # Lasso -->
6
6
 
7
7
  ### Point at it. Describe it. Ship it.
8
8
 
@@ -12,8 +12,8 @@ Select any part of your running app, describe what you want changed, and Lasso t
12
12
 
13
13
  <br />
14
14
 
15
- [![npm version](https://img.shields.io/npm/v/lasso?style=flat-square&color=6366f1)](https://www.npmjs.com/package/lasso)
16
- [![npm downloads](https://img.shields.io/npm/dm/lasso?style=flat-square&color=6366f1)](https://www.npmjs.com/package/lasso)
15
+ [![npm version](https://img.shields.io/npm/v/%40lasso-ai%2Fcli?style=flat-square&color=6366f1)](https://www.npmjs.com/package/@lasso-ai/cli)
16
+ [![npm downloads](https://img.shields.io/npm/dm/%40lasso-ai%2Fcli?style=flat-square&color=6366f1)](https://www.npmjs.com/package/@lasso-ai/cli)
17
17
  [![GitHub stars](https://img.shields.io/github/stars/codewithdripzy/lasso?style=flat-square&color=6366f1)](https://github.com/codewithdripzy/lasso)
18
18
  [![GitHub contributors](https://img.shields.io/github/contributors/codewithdripzy/lasso?style=flat-square&color=6366f1)](https://github.com/codewithdripzy/lasso/graphs/contributors)
19
19
  [![license](https://img.shields.io/github/license/codewithdripzy/lasso?style=flat-square&color=6366f1)](LICENSE)
@@ -235,28 +235,28 @@ and refuses any non-`.lasso` host. The secure URL is
235
235
  ### 1. Install
236
236
 
237
237
  ```bash
238
- npm install --save-dev lasso
238
+ npm i -g @lasso-ai/cli
239
239
  ```
240
240
 
241
241
  Or:
242
242
 
243
243
  ```bash
244
- pnpm add -D lasso
244
+ pnpm add -D @lasso-ai/cli
245
245
  ```
246
246
 
247
247
  ```bash
248
- yarn add -D lasso
248
+ yarn add -D @lasso-ai/cli
249
249
  ```
250
250
 
251
251
  You can also install the CLI globally and use `lasso` directly from any
252
252
  project:
253
253
 
254
254
  ```bash
255
- npm install --global lasso
255
+ npm i -g @lasso-ai/cli
256
256
  # or
257
- pnpm add --global lasso
257
+ pnpm add --global @lasso-ai/cli
258
258
  # or
259
- yarn global add lasso
259
+ yarn global add @lasso-ai/cli
260
260
  ```
261
261
 
262
262
  Use a project-local install when you want each repository to pin its Lasso
@@ -269,7 +269,7 @@ From your application's root:
269
269
  ```bash
270
270
  lasso
271
271
  # or, without a global install
272
- npx lasso
272
+ npx @lasso-ai/cli
273
273
  ```
274
274
 
275
275
  This is equivalent to:
@@ -277,7 +277,7 @@ This is equivalent to:
277
277
  ```bash
278
278
  lasso dev
279
279
  # or, without a global install
280
- npx lasso dev
280
+ npx @lasso-ai/cli dev
281
281
  ```
282
282
 
283
283
  Lasso detects your framework, starts the development environment with its integration injected in memory, and connects the browser overlay.
@@ -455,10 +455,10 @@ The numbers below are pulled from public package and repository activity where a
455
455
 
456
456
  | Metric | |
457
457
  |---|---:|
458
- | npm downloads | [![npm downloads](https://img.shields.io/npm/dm/lasso?style=flat-square&color=6366f1)](https://www.npmjs.com/package/lasso) |
458
+ | npm downloads | [![npm downloads](https://img.shields.io/npm/dm/%40lasso-ai%2Fcli?style=flat-square&color=6366f1)](https://www.npmjs.com/package/@lasso-ai/cli) |
459
459
  | GitHub stars | [![GitHub stars](https://img.shields.io/github/stars/codewithdripzy/lasso?style=flat-square&color=6366f1)](https://github.com/codewithdripzy/lasso) |
460
460
  | Contributors | [![GitHub contributors](https://img.shields.io/github/contributors/codewithdripzy/lasso?style=flat-square&color=6366f1)](https://github.com/codewithdripzy/lasso/graphs/contributors) |
461
- | Latest release | [![npm version](https://img.shields.io/npm/v/lasso?style=flat-square&color=6366f1)](https://www.npmjs.com/package/lasso) |
461
+ | Latest release | [![npm version](https://img.shields.io/npm/v/%40lasso-ai%2Fcli?style=flat-square&color=6366f1)](https://www.npmjs.com/package/@lasso-ai/cli) |
462
462
  | License | [![license](https://img.shields.io/github/license/codewithdripzy/lasso?style=flat-square&color=6366f1)](LICENSE) |
463
463
 
464
464
  > npm downloads represent package downloads, not unique users or installations.
package/SUPPORT.md CHANGED
@@ -23,7 +23,7 @@ best place for each kind of question.
23
23
  - Read [README.md](README.md) and [ARCHITECTURE.md](ARCHITECTURE.md) first; most
24
24
  "why does it do that?" questions are answered there.
25
25
  - Search existing issues before opening a new one.
26
- - Include versions: `node --version`, the framework version, and Lasso (`npx lasso --version`).
26
+ - Include versions: `node --version`, the framework version, and Lasso (`npx @lasso-ai/cli --version`).
27
27
 
28
28
  ## No private support
29
29
 
package/dist/cli/index.js CHANGED
@@ -19,7 +19,8 @@ const paths_1 = require("./host/paths");
19
19
  const install_1 = require("./host/install");
20
20
  const client_1 = require("./host/client");
21
21
  const registry_1 = require("./host/registry");
22
- const VERSION = "0.1.0";
22
+ const package_json_1 = __importDefault(require("../../package.json"));
23
+ const VERSION = package_json_1.default.version;
23
24
  const program = new commander_1.Command();
24
25
  program.name("lasso").description("Select UI in your running app, describe a change, AI edits the real source.").version(VERSION);
25
26
  function projectEnv() {
@@ -271,7 +272,7 @@ auth.command("login").description("Sign in with the browser OAuth flow and store
271
272
  auth.command("status").description("Show the Lasso credential stored on this machine").action(() => {
272
273
  const credentials = (0, auth_1.loadCredentials)();
273
274
  if (!credentials) {
274
- console.log(chalk_1.default.dim("Not authenticated. Run ") + chalk_1.default.cyan("npx lasso auth login") + chalk_1.default.dim(" to sign in."));
275
+ console.log(chalk_1.default.dim("Not authenticated. Run ") + chalk_1.default.cyan("npx @lasso-ai/cli auth login") + chalk_1.default.dim(" to sign in."));
275
276
  return;
276
277
  }
277
278
  const summary = (0, auth_1.credentialSummary)(credentials);
@@ -302,7 +303,7 @@ program.command("dev", { isDefault: true }).description("Start your dev server w
302
303
  collabConfig = await (0, project_1.resolveCollabSession)(cwd, fileEnv, existing.id);
303
304
  }
304
305
  else {
305
- console.log(chalk_1.default.yellow("!") + ` No ${chalk_1.default.bold(project_1.LASSO_CONFIG_FILE)} found. Run ${chalk_1.default.cyan("npx lasso init")} to enable realtime collaboration.`);
306
+ console.log(chalk_1.default.yellow("!") + ` No ${chalk_1.default.bold(project_1.LASSO_CONFIG_FILE)} found. Run ${chalk_1.default.cyan("npx @lasso-ai/cli init")} to enable realtime collaboration.`);
306
307
  }
307
308
  (0, bridge_1.startBridge)(cwd, collabConfig);
308
309
  switch (framework) {
@@ -173,7 +173,7 @@ async function buildProjectMetadata(cwd, framework) {
173
173
  function promptForApiKey() {
174
174
  return new Promise((resolve) => {
175
175
  const rl = node_readline_1.default.createInterface({ input: process.stdin, output: process.stdout });
176
- rl.question(`No Lasso key found. Run ${chalk_1.default.cyan("npx lasso auth login")} to sign in, or paste an API key (create one in the dashboard: ${chalk_1.default.cyan("lss_live_…")}): `, (answer) => {
176
+ rl.question(`No Lasso key found. Run ${chalk_1.default.cyan("npx @lasso-ai/cli auth login")} to sign in, or paste an API key (create one in the dashboard: ${chalk_1.default.cyan("lss_live_…")}): `, (answer) => {
177
177
  rl.close();
178
178
  resolve(answer.trim() || null);
179
179
  });
@@ -258,7 +258,7 @@ async function resolveCollabSession(cwd, fileEnv, projectId) {
258
258
  };
259
259
  const apiKey = resolveLassoApiKey(fileEnv);
260
260
  if (!apiKey) {
261
- console.warn(chalk_1.default.yellow("!") + " No Lasso credential found. Run " + chalk_1.default.cyan("npx lasso auth login") + " (or set LASSO_API_KEY) to enable realtime collaboration.");
261
+ console.warn(chalk_1.default.yellow("!") + " No Lasso credential found. Run " + chalk_1.default.cyan("npx @lasso-ai/cli auth login") + " (or set LASSO_API_KEY) to enable realtime collaboration.");
262
262
  return config;
263
263
  }
264
264
  try {
@@ -1,10 +1,10 @@
1
- # Publishing `lasso` to npm
1
+ # Publishing `@lasso-ai/cli` to npm
2
2
 
3
- This document is for maintainers preparing a release of the [`lasso`](https://www.npmjs.com/package/lasso) package.
3
+ This document is for maintainers preparing a release of the [`@lasso-ai/cli`](https://www.npmjs.com/package/@lasso-ai/cli) package.
4
4
 
5
5
  ## Prerequisites
6
6
 
7
- - npm account with publish access to the `lasso` package name (or your scoped name).
7
+ - npm account with publish access to the `@lasso-ai` scope.
8
8
  - Node.js **>= 18**.
9
9
  - A clean git tree on the release commit tagged in [CHANGELOG.md](../CHANGELOG.md).
10
10
 
@@ -42,18 +42,18 @@ npm publish --access public
42
42
  For a prerelease:
43
43
 
44
44
  ```bash
45
- npm publish --tag next
45
+ npm publish --access public --tag next
46
46
  ```
47
47
 
48
48
  ## After publish
49
49
 
50
50
  1. Create a [GitHub release](https://github.com/codewithdripzy/lasso/releases) matching the version tag.
51
- 2. Confirm the [npm package page](https://www.npmjs.com/package/lasso) shows the new README, homepage, and funding link.
51
+ 2. Confirm the [npm package page](https://www.npmjs.com/package/@lasso-ai/cli) shows the new README, homepage, and funding link.
52
52
  3. Smoke-test install in a fresh app:
53
53
 
54
54
  ```bash
55
- npm install --save-dev lasso@latest
56
- npx lasso --help
55
+ npm i -g @lasso-ai/cli@latest
56
+ npx @lasso-ai/cli --help
57
57
  ```
58
58
 
59
59
  ## Links
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lasso-ai/cli",
3
- "version": "1.0.0",
3
+ "version": "1.0.2",
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",