lazy-skill 0.6.0 → 0.7.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.
@@ -6,10 +6,10 @@ import { THEMES, style } from "../ui/theme.js";
6
6
  import { boxWidth, visibleWidth } from "../ui/layout.js";
7
7
  import { renderQr } from "../ui/qr.js";
8
8
  import { blank, box, centre, fail, hint, line, muted, ok, status } from "../ui/layout.js";
9
- import { banner, mascot } from "../ui/banner.js";
9
+ import { banner } from "../ui/banner.js";
10
10
  import { messages } from "../ui/messages.js";
11
11
  import { Spinner } from "../ui/spinner.js";
12
- const VERSION = "0.6.0";
12
+ const VERSION = "0.7.0";
13
13
  function friendlyPlatform() {
14
14
  const p = platform();
15
15
  return p === "darwin" || p === "win32" || p === "linux" ? p : "unknown";
@@ -71,14 +71,6 @@ export async function connectCommand(options) {
71
71
  const plate = await renderQr(session.pairUrl);
72
72
  const width = plate.length ? visibleWidth(plate[0]) + 4 : boxWidth();
73
73
  box(theme, plate.map((row) => centre(row, width)), width);
74
- // Bit sits under the code rather than over it: anything overlapping the
75
- // module area would cost scan reliability for decoration.
76
- blank();
77
- const bit = mascot(theme, false);
78
- for (let i = 0; i < bit.length; i++) {
79
- const caption = i === 2 ? ` ${style.gray("waiting for your phone")}` : "";
80
- console.log(` ${centre(bit[i], width - 18)}${caption}`);
81
- }
82
74
  blank();
83
75
  muted(session.pairUrl);
84
76
  blank();
@@ -1,6 +1,6 @@
1
1
  import { readConfig, updateConfig } from "../lib/config.js";
2
2
  import { THEMES, THEME_IDS, rgb, style } from "../ui/theme.js";
3
- import { banner, mascot } from "../ui/banner.js";
3
+ import { banner } from "../ui/banner.js";
4
4
  import { pointer, select } from "../ui/select.js";
5
5
  import { blank, muted, ok } from "../ui/layout.js";
6
6
  /**
@@ -30,7 +30,6 @@ export async function themeCommand(requested, version) {
30
30
  initial: THEME_IDS.indexOf(current),
31
31
  render: (index) => {
32
32
  const theme = THEMES[THEME_IDS[index]];
33
- const bit = mascot(theme, true);
34
33
  const out = [""];
35
34
  out.push(...banner(theme, version));
36
35
  out.push("");
@@ -42,8 +41,7 @@ export async function themeCommand(requested, version) {
42
41
  // padding a coloured string leaves the column ragged.
43
42
  const padded = t.label.padEnd(14);
44
43
  const label = active ? style.bold(padded) : style.gray(padded);
45
- const beside = i >= 1 && i <= 6 ? " " + bit[i - 1] : "";
46
- out.push(` ${pointer(active)} ${mark} ${rgb(t.accent, "████")} ${label}${beside}`);
44
+ out.push(` ${pointer(active)} ${mark} ${rgb(t.accent, "████")} ${label}`);
47
45
  });
48
46
  out.push("");
49
47
  out.push(` ${style.gray("↑ ↓ to move · enter to choose")}`);
package/dist/index.js CHANGED
@@ -10,7 +10,7 @@ import { installCommand } from "./commands/install.js";
10
10
  import { themeCommand } from "./commands/theme.js";
11
11
  import { listenCommand } from "./commands/listen.js";
12
12
  import { warnIfOutdated } from "./lib/version-check.js";
13
- const VERSION = "0.6.0";
13
+ const VERSION = "0.7.0";
14
14
  function help() {
15
15
  const theme = THEMES[readConfig().theme];
16
16
  const cmd = (name) => rgb(theme.accent, name.padEnd(26));
@@ -1,5 +1,5 @@
1
1
  import { THEMES, THEME_IDS, rgb, style } from "./theme.js";
2
- import { banner, mascot } from "./banner.js";
2
+ import { banner } from "./banner.js";
3
3
  import { pointer, select } from "./select.js";
4
4
  /**
5
5
  * First-run theme choice, with live preview.
@@ -14,7 +14,6 @@ export async function chooseTheme(version) {
14
14
  const rows = (index) => {
15
15
  const id = THEME_IDS[index];
16
16
  const theme = THEMES[id];
17
- const bit = mascot(theme, true);
18
17
  const out = [""];
19
18
  out.push(...banner(theme, version));
20
19
  out.push("");
@@ -29,8 +28,7 @@ export async function chooseTheme(version) {
29
28
  const padded = t.label.padEnd(14);
30
29
  const label = active ? style.bold(padded) : style.gray(padded);
31
30
  // The mascot sits beside the list, aligned to its middle rows.
32
- const beside = i >= 1 && i <= 6 ? " " + bit[i - 1] : "";
33
- out.push(` ${pointer(active)} ${swatch} ${label}${beside}`);
31
+ out.push(` ${pointer(active)} ${swatch} ${label}`);
34
32
  });
35
33
  out.push("");
36
34
  out.push(` ${style.gray("↑ ↓ to move · enter to choose")}`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lazy-skill",
3
- "version": "0.6.0",
3
+ "version": "0.7.0",
4
4
  "description": "Found an AI skill while scrolling? Install it to your computer from your phone.",
5
5
  "type": "module",
6
6
  "bin": {