lacy 1.8.23 → 1.8.25
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 +25 -20
- package/commands/info.sh +27 -0
- package/index.mjs +609 -974
- package/package.json +7 -7
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# lacy
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Installer for [Lacy Shell](https://github.com/lacymorrow/lacy). Talk to your shell.
|
|
4
4
|
|
|
5
5
|
## Install
|
|
6
6
|
|
|
@@ -8,11 +8,13 @@ Interactive installer for [Lacy Shell](https://github.com/lacymorrow/lacy) — t
|
|
|
8
8
|
npx lacy
|
|
9
9
|
```
|
|
10
10
|
|
|
11
|
-
|
|
12
|
-
-
|
|
13
|
-
-
|
|
14
|
-
- Offers to install lash
|
|
15
|
-
-
|
|
11
|
+
- Installs the latest Lacy Shell release into `~/.lacy` and adds it to your zsh, Bash or fish config
|
|
12
|
+
- Uses your AI CLI tool without asking when exactly one is installed
|
|
13
|
+
- Asks which one to use when several are installed
|
|
14
|
+
- Offers to install lash when none is found
|
|
15
|
+
- Asks nothing when there is no terminal (CI, Docker)
|
|
16
|
+
|
|
17
|
+
Run `npx lacy` again after installing to change the tool or mode, edit the config, update, reinstall, or uninstall. Without a terminal it updates to the latest release instead.
|
|
16
18
|
|
|
17
19
|
## Uninstall
|
|
18
20
|
|
|
@@ -24,38 +26,41 @@ npx lacy --uninstall
|
|
|
24
26
|
|
|
25
27
|
```
|
|
26
28
|
Usage:
|
|
27
|
-
npx lacy Install
|
|
28
|
-
npx lacy
|
|
29
|
+
npx lacy Install, or open settings when installed
|
|
30
|
+
npx lacy setup Open settings
|
|
31
|
+
npx lacy info Show a short introduction
|
|
32
|
+
npx lacy --uninstall Remove Lacy Shell
|
|
29
33
|
|
|
30
34
|
Options:
|
|
31
|
-
-h, --help Show help
|
|
32
|
-
-u, --uninstall
|
|
35
|
+
-h, --help Show this help
|
|
36
|
+
-u, --uninstall Remove Lacy Shell
|
|
33
37
|
```
|
|
34
38
|
|
|
39
|
+
The installer sends an anonymous event on install and on uninstall (OS, architecture, shell, version). Set `DO_NOT_TRACK=1` to turn it off.
|
|
40
|
+
|
|
35
41
|
## What is Lacy Shell?
|
|
36
42
|
|
|
37
|
-
Lacy
|
|
43
|
+
Lacy sends commands to your shell and questions to your AI tool.
|
|
38
44
|
|
|
39
45
|
```
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
46
|
+
$ ls -la runs in shell
|
|
47
|
+
? what files are here AI answers
|
|
48
|
+
$ git status runs in shell
|
|
49
|
+
? fix the build error AI answers
|
|
44
50
|
```
|
|
45
51
|
|
|
46
|
-
Works with
|
|
52
|
+
Works with lash, claude, opencode, gemini, codex, hermes, copilot, goose, amp, aider, or a custom command.
|
|
47
53
|
|
|
48
|
-
##
|
|
54
|
+
## Other install methods
|
|
49
55
|
|
|
50
56
|
```bash
|
|
51
57
|
# curl
|
|
52
58
|
curl -fsSL https://lacy.sh/install | bash
|
|
53
59
|
|
|
54
60
|
# Homebrew
|
|
55
|
-
brew
|
|
56
|
-
brew install lacy
|
|
61
|
+
brew install lacymorrow/tap/lacy
|
|
57
62
|
```
|
|
58
63
|
|
|
59
64
|
## License
|
|
60
65
|
|
|
61
|
-
MIT
|
|
66
|
+
[FSL-1.1-MIT](https://github.com/lacymorrow/lacy/blob/main/LICENSE)
|
package/commands/info.sh
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
#!/usr/bin/env bash
|
|
2
|
+
|
|
3
|
+
# Lacy Shell: info command
|
|
4
|
+
# Run by `npx lacy info` (shipped in the npm package) and `lacy info`.
|
|
5
|
+
|
|
6
|
+
_lacy_info_version() {
|
|
7
|
+
local pkg="${HOME}/.lacy/package.json"
|
|
8
|
+
if [[ -f "$pkg" ]]; then
|
|
9
|
+
grep '"version"' "$pkg" 2>/dev/null | head -1 | sed 's/.*"version"[[:space:]]*:[[:space:]]*"//' | sed 's/".*//'
|
|
10
|
+
else
|
|
11
|
+
echo "unknown"
|
|
12
|
+
fi
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
if [[ -n "${NO_COLOR:-}" ]]; then
|
|
16
|
+
_blue="" _magenta="" _reset=""
|
|
17
|
+
else
|
|
18
|
+
_blue=$'\033[38;5;75m' _magenta=$'\033[38;5;200m' _reset=$'\033[0m'
|
|
19
|
+
fi
|
|
20
|
+
|
|
21
|
+
printf '%sLacy Shell v%s%s\n\n' "$_blue" "$(_lacy_info_version)" "$_reset"
|
|
22
|
+
printf 'Lacy runs commands in your shell and sends questions to your AI tool.\n\n'
|
|
23
|
+
printf 'Try:\n'
|
|
24
|
+
printf ' ls -la runs in your shell\n'
|
|
25
|
+
printf ' what files are here goes to your AI tool\n\n'
|
|
26
|
+
printf 'Inside Lacy, type %smode%s to see the current mode, or press Ctrl+Space to switch.\n' "$_magenta" "$_reset"
|
|
27
|
+
printf 'Run %slacy setup%s to change your AI tool.\n' "$_magenta" "$_reset"
|