lacy 1.3.0 → 1.5.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.
Files changed (3) hide show
  1. package/README.md +1 -1
  2. package/index.mjs +35 -1
  3. package/package.json +6 -5
package/README.md CHANGED
@@ -34,7 +34,7 @@ Options:
34
34
 
35
35
  ## What is Lacy Shell?
36
36
 
37
- Lacy Shell is a ZSH plugin that routes natural language to AI and commands to your shell — automatically.
37
+ Lacy routes natural language to AI and commands to your shell — automatically.
38
38
 
39
39
  ```
40
40
  ❯ ls -la → runs in shell
package/index.mjs CHANGED
@@ -151,7 +151,7 @@ async function install() {
151
151
  prerequisites.stop('Prerequisites OK');
152
152
 
153
153
  // Detect installed tools
154
- const detected = [];
154
+ let detected = [];
155
155
  for (const tool of ['lash', 'claude', 'opencode', 'gemini', 'codex']) {
156
156
  if (commandExists(tool)) {
157
157
  detected.push(tool);
@@ -162,6 +162,40 @@ async function install() {
162
162
  p.log.info(`Detected: ${detected.map(t => pc.green(t)).join(', ')}`);
163
163
  } else {
164
164
  p.log.warn('No AI CLI tools detected');
165
+ p.log.info('Lacy Shell requires an AI CLI tool to work.');
166
+
167
+ const installLashNow = await p.confirm({
168
+ message: `Would you like to install ${pc.green('lash')} (recommended)?`,
169
+ initialValue: true,
170
+ });
171
+
172
+ if (p.isCancel(installLashNow)) {
173
+ p.cancel('Installation cancelled');
174
+ process.exit(0);
175
+ }
176
+
177
+ if (installLashNow) {
178
+ const lashSpinner = p.spinner();
179
+ lashSpinner.start('Installing lash');
180
+
181
+ try {
182
+ if (commandExists('npm')) {
183
+ execSync('npm install -g lash-cli', { stdio: 'pipe' });
184
+ lashSpinner.stop('lash installed');
185
+ detected.push('lash');
186
+ } else if (commandExists('brew')) {
187
+ execSync('brew tap lacymorrow/tap && brew install lash', { stdio: 'pipe' });
188
+ lashSpinner.stop('lash installed');
189
+ detected.push('lash');
190
+ } else {
191
+ lashSpinner.stop('Could not install lash');
192
+ p.log.warn('Please install npm or homebrew, then run: npm install -g lash-cli');
193
+ }
194
+ } catch (e) {
195
+ lashSpinner.stop('lash installation failed');
196
+ p.log.warn('You can install it manually later: npm install -g lash-cli');
197
+ }
198
+ }
165
199
  }
166
200
 
167
201
  // Tool selection
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "lacy",
3
- "version": "1.3.0",
4
- "description": "Install Lacy Shell - talk directly to your shell",
3
+ "version": "1.5.2",
4
+ "description": "Install lacy talk to your terminal",
5
5
  "type": "module",
6
6
  "bin": {
7
7
  "lacy": "index.mjs"
@@ -15,10 +15,11 @@
15
15
  "keywords": [
16
16
  "lacy",
17
17
  "shell",
18
- "zsh",
18
+ "terminal",
19
19
  "ai",
20
20
  "cli",
21
- "agent",
21
+ "developer-tools",
22
+ "ai-agent",
22
23
  "natural-language"
23
24
  ],
24
25
  "author": "Lacy Morrow",
@@ -28,7 +29,7 @@
28
29
  "url": "git+https://github.com/lacymorrow/lacy.git",
29
30
  "directory": "packages/lacy"
30
31
  },
31
- "homepage": "https://github.com/lacymorrow/lacy",
32
+ "homepage": "https://lacy.sh",
32
33
  "dependencies": {
33
34
  "@clack/prompts": "^0.7.0",
34
35
  "picocolors": "^1.0.0"