lazy-skill 0.1.0 → 0.1.1
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/dist/commands/connect.js +9 -5
- package/dist/index.js +7 -3
- package/package.json +1 -1
package/dist/commands/connect.js
CHANGED
|
@@ -128,13 +128,17 @@ export async function connectCommand(options) {
|
|
|
128
128
|
console.log(bottom(theme));
|
|
129
129
|
console.log();
|
|
130
130
|
console.log(` ${style.gray("Credential stored in ~/.lazyskill/config.json (0600).")}`);
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
131
|
+
// Keep listening by default. Someone who has just paired a computer and
|
|
132
|
+
// reached for their phone wants an install to land, not a second command
|
|
133
|
+
// to remember — a queued job with nothing polling for it just looks broken.
|
|
134
|
+
if (options.listen === false) {
|
|
135
|
+
console.log(` ${style.gray("Run")} ${rgb(theme.accent, "lazy-skill listen")} ${style.gray("when you want to install from your phone.")}`);
|
|
136
|
+
console.log();
|
|
137
|
+
return 0;
|
|
134
138
|
}
|
|
135
|
-
console.log(` ${style.gray("Run")} ${rgb(theme.accent, "lazy-skill listen")} ${style.gray("to install from your phone.")}`);
|
|
136
139
|
console.log();
|
|
137
|
-
|
|
140
|
+
const { listenCommand } = await import("./listen.js");
|
|
141
|
+
return listenCommand();
|
|
138
142
|
}
|
|
139
143
|
const reason = result.status === "consumed"
|
|
140
144
|
? "That code was already used."
|
package/dist/index.js
CHANGED
|
@@ -16,7 +16,7 @@ function help() {
|
|
|
16
16
|
${style.bold("LAZY")} ${rgb(theme.accent, style.bold("SKILL"))}${rgb(theme.support, " Zz")} ${style.gray("See it. Search it. Install it.")}
|
|
17
17
|
|
|
18
18
|
${style.bold("Usage")}
|
|
19
|
-
${cmd("lazy-skill connect")}Pair
|
|
19
|
+
${cmd("lazy-skill connect")}Pair, then wait for installs
|
|
20
20
|
${cmd("lazy-skill listen")}Wait for installs sent from your phone
|
|
21
21
|
${cmd("lazy-skill status")}Show connection and detected tools
|
|
22
22
|
${cmd("lazy-skill skills")}List skills installed on this computer
|
|
@@ -26,7 +26,7 @@ function help() {
|
|
|
26
26
|
|
|
27
27
|
${style.bold("Options")}
|
|
28
28
|
${cmd("--agent=<ids>")}Comma-separated agents to install to
|
|
29
|
-
${cmd("--listen")}
|
|
29
|
+
${cmd("--no-listen")}Pair only; do not wait for installs
|
|
30
30
|
${cmd("-p, --project")}Install into this project, not globally
|
|
31
31
|
${cmd("-y, --yes")}Skip the confirmation prompt
|
|
32
32
|
${cmd("-v, --verbose")}Show how each tool was detected
|
|
@@ -53,7 +53,11 @@ async function main() {
|
|
|
53
53
|
const verbose = flags.has("-v") || flags.has("--verbose");
|
|
54
54
|
switch (command) {
|
|
55
55
|
case "connect":
|
|
56
|
-
return connectCommand({
|
|
56
|
+
return connectCommand({
|
|
57
|
+
verbose,
|
|
58
|
+
// Listening is the default; --no-listen opts out.
|
|
59
|
+
listen: flags.has("--no-listen") ? false : true,
|
|
60
|
+
});
|
|
57
61
|
case "disconnect":
|
|
58
62
|
return disconnectCommand();
|
|
59
63
|
case "status":
|