zion 4.2.0 → 4.2.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 (2) hide show
  1. package/dist/cli.js +14 -9
  2. package/package.json +1 -1
package/dist/cli.js CHANGED
@@ -8,7 +8,7 @@ import os3 from "os";
8
8
  import path13 from "path";
9
9
 
10
10
  // package.json
11
- var version = "4.2.0";
11
+ var version = "4.2.2";
12
12
 
13
13
  // src/lib/theme.ts
14
14
  import { Chalk, supportsColor, supportsColorStderr } from "chalk";
@@ -21686,7 +21686,7 @@ async function chooseTargets(ui, deps, given, lock) {
21686
21686
  const { targets, files } = deps;
21687
21687
  if (given.length > 0) {
21688
21688
  const chosen = targets.filter((target) => given.includes(target.id));
21689
- ui.step({ title: "Install into", lines: [chosen.map((target) => tildify(target.dir)).join(", ")] });
21689
+ ui.step({ title: "Install into", lines: [chosen.map((target) => target.name).join(", ")] });
21690
21690
  return chosen;
21691
21691
  }
21692
21692
  const installed = await Promise.all(Object.keys(lock.skills).map((name) => installedDirs(deps, name)));
@@ -21698,11 +21698,15 @@ async function chooseTargets(ui, deps, given, lock) {
21698
21698
  }
21699
21699
  return ui.multiselect({
21700
21700
  message: "Install into",
21701
- options: targets.map((target) => ({ value: target, label: tildify(target.dir), hint: target.hint })),
21701
+ options: targets.map((target) => ({ value: target, label: target.name, hint: shown(target.dir) })),
21702
21702
  initialValues: suggested,
21703
21703
  nonInteractiveHint: `pass --target (${targets.map((target) => target.id).join(", ")}), e.g. -t ${targets[0].id}`
21704
21704
  });
21705
21705
  }
21706
+ function shown(dir) {
21707
+ const relative = path5.relative(process.cwd(), dir);
21708
+ return relative.startsWith("..") || path5.isAbsolute(relative) ? tildify(dir) : `./${relative}`;
21709
+ }
21706
21710
 
21707
21711
  // src/commands/skills/InstallFlow.ts
21708
21712
  var InstallFlow = class {
@@ -21844,7 +21848,8 @@ var ManageFlow = class {
21844
21848
  message: "Skills",
21845
21849
  options: names.map((name) => ({ value: name, label: name, hint: this.hint(lock, name, latest, where) })),
21846
21850
  initialValues: installed,
21847
- required: false
21851
+ // Emptying the list removes everything, but with nothing installed an empty answer is a slip of the enter key.
21852
+ required: installed.length === 0
21848
21853
  })
21849
21854
  );
21850
21855
  const adding = names.filter((name) => ticked.has(name) && !lock.skills[name]);
@@ -22111,12 +22116,12 @@ function describeChecks(paint, checks, { listUpdates }) {
22111
22116
  const updates = checks.filter(isOutdated);
22112
22117
  const gone = checks.filter((check2) => check2.gone);
22113
22118
  if (updates.length === 0 && gone.length === 0) return { title: "Up to date" };
22114
- const shown = [...listUpdates ? updates : [], ...gone];
22115
- const width = Math.max(0, ...shown.map((check2) => check2.name.length));
22119
+ const shown2 = [...listUpdates ? updates : [], ...gone];
22120
+ const width = Math.max(0, ...shown2.map((check2) => check2.name.length));
22116
22121
  return {
22117
22122
  title: updates.length > 0 ? `${plural(updates.length, "update")} available` : `${plural(gone.length, "skill")} no longer available`,
22118
22123
  tone: gone.length > 0 ? "warning" : "success",
22119
- lines: shown.map(
22124
+ lines: shown2.map(
22120
22125
  (check2) => `${check2.name.padEnd(width)} ${isOutdated(check2) ? paint.muted(describeChange(check2.locked, check2.latest)) : "no longer available, kept as is"}`
22121
22126
  )
22122
22127
  };
@@ -22324,13 +22329,13 @@ function skillTargets(homedir) {
22324
22329
  id: "agents",
22325
22330
  dir: path10.join(homedir, ".agents", "skills"),
22326
22331
  home: path10.join(homedir, ".agents"),
22327
- hint: "Copilot and other agents"
22332
+ name: "Universal"
22328
22333
  },
22329
22334
  {
22330
22335
  id: "claude",
22331
22336
  dir: path10.join(homedir, ".claude", "skills"),
22332
22337
  home: path10.join(homedir, ".claude"),
22333
- hint: "Claude Code"
22338
+ name: "Claude Code"
22334
22339
  }
22335
22340
  ];
22336
22341
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zion",
3
- "version": "4.2.0",
3
+ "version": "4.2.2",
4
4
  "description": "my site, dotfiles, agent skills and more, in your terminal",
5
5
  "license": "MIT",
6
6
  "repository": {