@lasso-ai/cli 1.0.0

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 (47) hide show
  1. package/ARCHITECTURE.md +342 -0
  2. package/CHANGELOG.md +102 -0
  3. package/CODE_OF_CONDUCT.md +129 -0
  4. package/CONTRIBUTING.md +122 -0
  5. package/LICENSE +7 -0
  6. package/README.md +548 -0
  7. package/SECURITY.md +65 -0
  8. package/SUPPORT.md +31 -0
  9. package/dist/cli/agent.d.ts +61 -0
  10. package/dist/cli/agent.js +418 -0
  11. package/dist/cli/auth.d.ts +38 -0
  12. package/dist/cli/auth.js +162 -0
  13. package/dist/cli/bridge.d.ts +160 -0
  14. package/dist/cli/bridge.js +450 -0
  15. package/dist/cli/host/certificates.d.ts +12 -0
  16. package/dist/cli/host/certificates.js +52 -0
  17. package/dist/cli/host/client.d.ts +49 -0
  18. package/dist/cli/host/client.js +141 -0
  19. package/dist/cli/host/daemon.d.ts +50 -0
  20. package/dist/cli/host/daemon.js +368 -0
  21. package/dist/cli/host/dns.d.ts +80 -0
  22. package/dist/cli/host/dns.js +255 -0
  23. package/dist/cli/host/install.d.ts +32 -0
  24. package/dist/cli/host/install.js +177 -0
  25. package/dist/cli/host/next-host-entry.d.ts +1 -0
  26. package/dist/cli/host/next-host-entry.js +82 -0
  27. package/dist/cli/host/paths.d.ts +15 -0
  28. package/dist/cli/host/paths.js +55 -0
  29. package/dist/cli/host/registry.d.ts +31 -0
  30. package/dist/cli/host/registry.js +103 -0
  31. package/dist/cli/host/runtime.d.ts +23 -0
  32. package/dist/cli/host/runtime.js +134 -0
  33. package/dist/cli/host/vite-host-entry.d.ts +1 -0
  34. package/dist/cli/host/vite-host-entry.js +59 -0
  35. package/dist/cli/index.d.ts +2 -0
  36. package/dist/cli/index.js +322 -0
  37. package/dist/cli/project.d.ts +56 -0
  38. package/dist/cli/project.js +298 -0
  39. package/dist/cli/server/next.d.ts +6 -0
  40. package/dist/cli/server/next.js +76 -0
  41. package/dist/cli/server/vite.d.ts +1 -0
  42. package/dist/cli/server/vite.js +51 -0
  43. package/dist/cli/utils/framework.d.ts +2 -0
  44. package/dist/cli/utils/framework.js +26 -0
  45. package/dist/overlay.js +20365 -0
  46. package/docs/PUBLISHING.md +63 -0
  47. package/package.json +106 -0
@@ -0,0 +1,63 @@
1
+ # Publishing `lasso` to npm
2
+
3
+ This document is for maintainers preparing a release of the [`lasso`](https://www.npmjs.com/package/lasso) package.
4
+
5
+ ## Prerequisites
6
+
7
+ - npm account with publish access to the `lasso` package name (or your scoped name).
8
+ - Node.js **>= 18**.
9
+ - A clean git tree on the release commit tagged in [CHANGELOG.md](../CHANGELOG.md).
10
+
11
+ ## Pre-release checklist
12
+
13
+ 1. Update version in `package.json` and add a dated section in `CHANGELOG.md`.
14
+ 2. Run quality gates:
15
+
16
+ ```bash
17
+ pnpm install
18
+ pnpm format:check
19
+ pnpm typecheck
20
+ pnpm build
21
+ ```
22
+
23
+ 3. Inspect the tarball contents (no secrets, no `node_modules`, includes `dist/`):
24
+
25
+ ```bash
26
+ npm pack --dry-run
27
+ ```
28
+
29
+ Expected top-level paths include `package.json`, `README.md`, `LICENSE`, `dist/cli/`, and `dist/overlay.js`.
30
+
31
+ ## Publish
32
+
33
+ From the repository root (`lib/`):
34
+
35
+ ```bash
36
+ npm login
37
+ npm publish --access public
38
+ ```
39
+
40
+ `prepublishOnly` runs `npm run build` automatically before publish.
41
+
42
+ For a prerelease:
43
+
44
+ ```bash
45
+ npm publish --tag next
46
+ ```
47
+
48
+ ## After publish
49
+
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.
52
+ 3. Smoke-test install in a fresh app:
53
+
54
+ ```bash
55
+ npm install --save-dev lasso@latest
56
+ npx lasso --help
57
+ ```
58
+
59
+ ## Links
60
+
61
+ - **Website:** [lasso.byorello.space](https://lasso.byorello.space)
62
+ - **Repository:** [github.com/codewithdripzy/lasso](https://github.com/codewithdripzy/lasso)
63
+ - **Issues:** [github.com/codewithdripzy/lasso/issues](https://github.com/codewithdripzy/lasso/issues)
package/package.json ADDED
@@ -0,0 +1,106 @@
1
+ {
2
+ "name": "@lasso-ai/cli",
3
+ "version": "1.0.0",
4
+ "description": "Select any part of your running app, describe a change, and let AI edit the real source code.",
5
+ "type": "commonjs",
6
+ "main": "dist/cli/index.js",
7
+ "bin": {
8
+ "lasso": "dist/cli/index.js"
9
+ },
10
+ "files": [
11
+ "dist",
12
+ "ARCHITECTURE.md",
13
+ "CHANGELOG.md",
14
+ "CODE_OF_CONDUCT.md",
15
+ "CONTRIBUTING.md",
16
+ "SECURITY.md",
17
+ "SUPPORT.md",
18
+ "docs/PUBLISHING.md"
19
+ ],
20
+ "engines": {
21
+ "node": ">=18.0.0"
22
+ },
23
+ "scripts": {
24
+ "dev": "tsx src/cli/index.ts",
25
+ "build": "npm run build:cli && npm run build:overlay",
26
+ "build:cli": "tsc -p config/tsconfig.cli.json",
27
+ "build:overlay": "esbuild src/overlay/index.ts --bundle --outfile=dist/overlay.js",
28
+ "typecheck": "npm run typecheck:cli && npm run typecheck:overlay",
29
+ "typecheck:cli": "tsc -p config/tsconfig.cli.json --noEmit",
30
+ "typecheck:overlay": "tsc -p config/tsconfig.overlay.json --noEmit",
31
+ "start": "node dist/cli/index.js",
32
+ "prepublishOnly": "npm run build",
33
+ "format": "prettier --write .",
34
+ "format:check": "prettier --check .",
35
+ "test": "echo \"Error: no test specified\" && exit 1"
36
+ },
37
+ "keywords": [
38
+ "ai",
39
+ "ai-assisted-development",
40
+ "anthropic",
41
+ "claude",
42
+ "cli",
43
+ "code-editing",
44
+ "developer-tools",
45
+ "dev-tools",
46
+ "frontend",
47
+ "hmr",
48
+ "local-first",
49
+ "nextjs",
50
+ "next.js",
51
+ "overlay",
52
+ "react",
53
+ "source-code",
54
+ "visual-editing",
55
+ "vite"
56
+ ],
57
+ "homepage": "https://lasso.byorello.space",
58
+ "bugs": {
59
+ "url": "https://github.com/codewithdripzy/lasso/issues"
60
+ },
61
+ "repository": {
62
+ "type": "git",
63
+ "url": "git+https://github.com/codewithdripzy/lasso.git"
64
+ },
65
+ "author": {
66
+ "name": "Bankole Emmanuel",
67
+ "url": "https://github.com/codewithdripzy"
68
+ },
69
+ "license": "ISC",
70
+ "funding": {
71
+ "type": "custom",
72
+ "url": "https://www.buymeacoffee.com/thecodeguyy"
73
+ },
74
+ "dependencies": {
75
+ "@anthropic-ai/sdk": "^0.32.1",
76
+ "@iconify-icons/logos": "^2.0.1",
77
+ "@iconify-json/logos": "^1.2.14",
78
+ "@iconify/utils": "^3.1.7",
79
+ "chalk": "^6.0.0",
80
+ "commander": "^15.0.0",
81
+ "http-proxy": "^1.18.1",
82
+ "open": "^11.0.4",
83
+ "socket.io-client": "^4.8.3",
84
+ "vite": "^7.0.0",
85
+ "ws": "^8.21.3"
86
+ },
87
+ "peerDependencies": {
88
+ "vite": "^8.3.0"
89
+ },
90
+ "peerDependenciesMeta": {
91
+ "vite": {
92
+ "optional": true
93
+ }
94
+ },
95
+ "devDependencies": {
96
+ "@types/http-proxy": "^1.17.17",
97
+ "@types/node": "^26.6.1",
98
+ "@types/ws": "^8.5.13",
99
+ "esbuild": "^0.24.0",
100
+ "html2canvas": "^1.4.1",
101
+ "prettier": "^3.9.8",
102
+ "tsx": "^4.23.13",
103
+ "typescript": "^7.0.2",
104
+ "vite": "^8.3.0"
105
+ }
106
+ }