@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.
- package/ARCHITECTURE.md +342 -0
- package/CHANGELOG.md +102 -0
- package/CODE_OF_CONDUCT.md +129 -0
- package/CONTRIBUTING.md +122 -0
- package/LICENSE +7 -0
- package/README.md +548 -0
- package/SECURITY.md +65 -0
- package/SUPPORT.md +31 -0
- package/dist/cli/agent.d.ts +61 -0
- package/dist/cli/agent.js +418 -0
- package/dist/cli/auth.d.ts +38 -0
- package/dist/cli/auth.js +162 -0
- package/dist/cli/bridge.d.ts +160 -0
- package/dist/cli/bridge.js +450 -0
- package/dist/cli/host/certificates.d.ts +12 -0
- package/dist/cli/host/certificates.js +52 -0
- package/dist/cli/host/client.d.ts +49 -0
- package/dist/cli/host/client.js +141 -0
- package/dist/cli/host/daemon.d.ts +50 -0
- package/dist/cli/host/daemon.js +368 -0
- package/dist/cli/host/dns.d.ts +80 -0
- package/dist/cli/host/dns.js +255 -0
- package/dist/cli/host/install.d.ts +32 -0
- package/dist/cli/host/install.js +177 -0
- package/dist/cli/host/next-host-entry.d.ts +1 -0
- package/dist/cli/host/next-host-entry.js +82 -0
- package/dist/cli/host/paths.d.ts +15 -0
- package/dist/cli/host/paths.js +55 -0
- package/dist/cli/host/registry.d.ts +31 -0
- package/dist/cli/host/registry.js +103 -0
- package/dist/cli/host/runtime.d.ts +23 -0
- package/dist/cli/host/runtime.js +134 -0
- package/dist/cli/host/vite-host-entry.d.ts +1 -0
- package/dist/cli/host/vite-host-entry.js +59 -0
- package/dist/cli/index.d.ts +2 -0
- package/dist/cli/index.js +322 -0
- package/dist/cli/project.d.ts +56 -0
- package/dist/cli/project.js +298 -0
- package/dist/cli/server/next.d.ts +6 -0
- package/dist/cli/server/next.js +76 -0
- package/dist/cli/server/vite.d.ts +1 -0
- package/dist/cli/server/vite.js +51 -0
- package/dist/cli/utils/framework.d.ts +2 -0
- package/dist/cli/utils/framework.js +26 -0
- package/dist/overlay.js +20365 -0
- package/docs/PUBLISHING.md +63 -0
- 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
|
+
}
|