zion 4.2.0 → 4.2.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.
Files changed (2) hide show
  1. package/dist/cli.js +12 -8
  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.1";
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 {
@@ -22111,12 +22115,12 @@ function describeChecks(paint, checks, { listUpdates }) {
22111
22115
  const updates = checks.filter(isOutdated);
22112
22116
  const gone = checks.filter((check2) => check2.gone);
22113
22117
  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));
22118
+ const shown2 = [...listUpdates ? updates : [], ...gone];
22119
+ const width = Math.max(0, ...shown2.map((check2) => check2.name.length));
22116
22120
  return {
22117
22121
  title: updates.length > 0 ? `${plural(updates.length, "update")} available` : `${plural(gone.length, "skill")} no longer available`,
22118
22122
  tone: gone.length > 0 ? "warning" : "success",
22119
- lines: shown.map(
22123
+ lines: shown2.map(
22120
22124
  (check2) => `${check2.name.padEnd(width)} ${isOutdated(check2) ? paint.muted(describeChange(check2.locked, check2.latest)) : "no longer available, kept as is"}`
22121
22125
  )
22122
22126
  };
@@ -22324,13 +22328,13 @@ function skillTargets(homedir) {
22324
22328
  id: "agents",
22325
22329
  dir: path10.join(homedir, ".agents", "skills"),
22326
22330
  home: path10.join(homedir, ".agents"),
22327
- hint: "Copilot and other agents"
22331
+ name: "Universal"
22328
22332
  },
22329
22333
  {
22330
22334
  id: "claude",
22331
22335
  dir: path10.join(homedir, ".claude", "skills"),
22332
22336
  home: path10.join(homedir, ".claude"),
22333
- hint: "Claude Code"
22337
+ name: "Claude Code"
22334
22338
  }
22335
22339
  ];
22336
22340
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zion",
3
- "version": "4.2.0",
3
+ "version": "4.2.1",
4
4
  "description": "my site, dotfiles, agent skills and more, in your terminal",
5
5
  "license": "MIT",
6
6
  "repository": {