zion 3.0.0 → 3.0.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.
@@ -8,7 +8,7 @@ import {
8
8
  palette,
9
9
  sectionsOf,
10
10
  usePaint
11
- } from "./chunk-YKEQSW45.js";
11
+ } from "./chunk-77CMFBWR.js";
12
12
  import "./chunk-K3NQKI34.js";
13
13
 
14
14
  // src/commands/now/live/LiveNow.tsx
@@ -113,7 +113,7 @@ function LiveNow({ api, clock, onQuit }) {
113
113
  return /* @__PURE__ */ jsx(Box, { paddingX: 2, paddingY: 1, children: now ? frame(paint, now, clock(), ms, status) : /* @__PURE__ */ jsx(Text, { children: asking(paint, api.host, ms) }) });
114
114
  }
115
115
  function asking(paint, host, ms) {
116
- return `${" ".repeat(LABEL_WIDTH)}${shimmer(paint, `asking ${host}`, ms)}`;
116
+ return shimmer(paint, `asking ${host}`, ms);
117
117
  }
118
118
  function frame(paint, now, at, ms, status) {
119
119
  const quit = status === "quit";
@@ -8,6 +8,8 @@ var CliError = class extends Error {
8
8
  this.exitCode = exitCode;
9
9
  this.name = "CliError";
10
10
  }
11
+ hint;
12
+ exitCode;
11
13
  };
12
14
  var UsageError = class extends CliError {
13
15
  constructor(message, hint) {
package/dist/cli.js CHANGED
@@ -12,7 +12,7 @@ import {
12
12
  paintFor,
13
13
  symbols,
14
14
  usePaint
15
- } from "./chunk-YKEQSW45.js";
15
+ } from "./chunk-77CMFBWR.js";
16
16
  import {
17
17
  __export
18
18
  } from "./chunk-K3NQKI34.js";
@@ -22,7 +22,7 @@ import os3 from "os";
22
22
  import path12 from "path";
23
23
 
24
24
  // package.json
25
- var version = "3.0.0";
25
+ var version = "3.0.1";
26
26
 
27
27
  // src/prompts/format.ts
28
28
  function toneColor(paint) {
@@ -115,6 +115,7 @@ var Cli = class {
115
115
  constructor(options) {
116
116
  this.options = options;
117
117
  }
118
+ options;
118
119
  async run(argv) {
119
120
  const { args, noColor, noInput } = extractGlobalFlags(argv);
120
121
  const ctx = this.createContext({ noColor, noInput });
@@ -225,6 +226,8 @@ var HelpPrinter = class {
225
226
  this.registry = registry3;
226
227
  this.fallback = fallback2;
227
228
  }
229
+ registry;
230
+ fallback;
228
231
  root(ctx) {
229
232
  const paint = ctx.paint.stdout;
230
233
  const commands = this.registry.list().map((command) => [command.name, command.summary]);
@@ -267,6 +270,8 @@ var HelpCommand = class {
267
270
  this.printer = printer;
268
271
  this.registry = registry3;
269
272
  }
273
+ printer;
274
+ registry;
270
275
  name = "help";
271
276
  summary = "show help for a command";
272
277
  help = {
@@ -352,6 +357,7 @@ var BasePrompter = class {
352
357
  constructor(paint) {
353
358
  this.paint = paint;
354
359
  }
360
+ paint;
355
361
  /** True once the terminal was handed to another program, so output is no longer part of the session. */
356
362
  handedOff = false;
357
363
  intro(title, subtitle) {
@@ -657,6 +663,7 @@ var InkPrompter = class extends BasePrompter {
657
663
  patchConsole: false
658
664
  });
659
665
  }
666
+ out;
660
667
  store = new PromptStore();
661
668
  instance;
662
669
  emit(text) {
@@ -748,6 +755,7 @@ var PlainPrompter = class extends BasePrompter {
748
755
  super(paint);
749
756
  this.out = out;
750
757
  }
758
+ out;
751
759
  emit(text) {
752
760
  this.out.write(`${text}
753
761
  `);
@@ -850,6 +858,8 @@ var DotfilesRepository = class {
850
858
  this.git = git2;
851
859
  this.source = source;
852
860
  }
861
+ git;
862
+ source;
853
863
  /** The clone this machine was set up from, if the installer's link still points into one. */
854
864
  async locate() {
855
865
  let target;
@@ -1078,6 +1088,7 @@ var DotfilesCommand = class {
1078
1088
  ]
1079
1089
  };
1080
1090
  }
1091
+ deps;
1081
1092
  name = "dotfiles";
1082
1093
  summary = "set up zion's dotfiles on this machine";
1083
1094
  help;
@@ -20960,6 +20971,7 @@ var HttpStatusError = class extends CliError {
20960
20971
  this.status = status;
20961
20972
  this.name = "HttpStatusError";
20962
20973
  }
20974
+ status;
20963
20975
  };
20964
20976
  async function getJson(fetchImpl, request) {
20965
20977
  const { url: url2, schema, failure: failure2, signal } = request;
@@ -21030,6 +21042,7 @@ var HttpNowApi = class {
21030
21042
  this.fetchImpl = fetchImpl;
21031
21043
  this.url = new URL(url2);
21032
21044
  }
21045
+ fetchImpl;
21033
21046
  url;
21034
21047
  get host() {
21035
21048
  return this.url.host;
@@ -21072,13 +21085,14 @@ var NowCommand = class {
21072
21085
  examples: ["now", "now --json"]
21073
21086
  };
21074
21087
  }
21088
+ deps;
21075
21089
  name = "now";
21076
21090
  summary = "see what zion is listening to, reading and coding";
21077
21091
  help;
21078
21092
  async run(args, ctx) {
21079
21093
  const { json: json2 } = parseNowOptions(args, ctx.bin);
21080
21094
  if (!json2 && ctx.interactive && ctx.stdout.isTTY) {
21081
- const { runLive } = await import("./LiveNow-SLZOTZWP.js");
21095
+ const { runLive } = await import("./LiveNow-XJH5YXPH.js");
21082
21096
  return runLive(ctx, this.deps);
21083
21097
  }
21084
21098
  const status = await whileSpinning(ctx, `asking ${this.deps.api.host}`, this.deps.api.get());
@@ -21199,12 +21213,14 @@ var SkillNotFoundError = class extends CliError {
21199
21213
  this.skill = skill;
21200
21214
  this.name = "SkillNotFoundError";
21201
21215
  }
21216
+ skill;
21202
21217
  };
21203
21218
  var HttpSkillsApi = class {
21204
21219
  constructor(baseUrl, fetchImpl = fetch) {
21205
21220
  this.fetchImpl = fetchImpl;
21206
21221
  this.base = new URL(baseUrl.endsWith("/") ? baseUrl : `${baseUrl}/`);
21207
21222
  }
21223
+ fetchImpl;
21208
21224
  base;
21209
21225
  get host() {
21210
21226
  return this.base.host;
@@ -21359,6 +21375,7 @@ var InstallFlow = class {
21359
21375
  constructor(deps) {
21360
21376
  this.deps = deps;
21361
21377
  }
21378
+ deps;
21362
21379
  async run(ui, options, ctx) {
21363
21380
  const { api, lockfile } = this.deps;
21364
21381
  const lock = await lockfile.read();
@@ -21480,6 +21497,7 @@ var ManageFlow = class {
21480
21497
  constructor(deps) {
21481
21498
  this.deps = deps;
21482
21499
  }
21500
+ deps;
21483
21501
  async run(ui, ctx) {
21484
21502
  const { api, lockfile } = this.deps;
21485
21503
  const lock = await lockfile.read();
@@ -21621,6 +21639,7 @@ var RemoveFlow = class {
21621
21639
  constructor(deps) {
21622
21640
  this.deps = deps;
21623
21641
  }
21642
+ deps;
21624
21643
  async run(ui, options, ctx) {
21625
21644
  const { lockfile, targets } = this.deps;
21626
21645
  const lock = await lockfile.read();
@@ -21686,6 +21705,7 @@ var UpdateFlow = class {
21686
21705
  constructor(deps) {
21687
21706
  this.deps = deps;
21688
21707
  }
21708
+ deps;
21689
21709
  async run(ui, options, ctx) {
21690
21710
  const { api, lockfile } = this.deps;
21691
21711
  const lock = await lockfile.read();
@@ -21909,6 +21929,7 @@ var SkillsCommand = class {
21909
21929
  ]
21910
21930
  };
21911
21931
  }
21932
+ deps;
21912
21933
  name = "skills";
21913
21934
  summary = "install zion's agent skills";
21914
21935
  help;
@@ -21958,12 +21979,15 @@ var GitError = class extends Error {
21958
21979
  this.stderr = stderr;
21959
21980
  this.name = "GitError";
21960
21981
  }
21982
+ args;
21983
+ stderr;
21961
21984
  };
21962
21985
  var CliGit = class {
21963
21986
  constructor(runner2, env) {
21964
21987
  this.runner = runner2;
21965
21988
  this.env = { ...env, GIT_TERMINAL_PROMPT: "0" };
21966
21989
  }
21990
+ runner;
21967
21991
  env;
21968
21992
  async version(signal) {
21969
21993
  const { code, stdout } = await this.runner.capture("git", ["--version"], { env: this.env, signal });
@@ -22032,6 +22056,7 @@ var JsonLockfile = class {
22032
22056
  constructor(path13) {
22033
22057
  this.path = path13;
22034
22058
  }
22059
+ path;
22035
22060
  async read() {
22036
22061
  let text;
22037
22062
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zion",
3
- "version": "3.0.0",
3
+ "version": "3.0.1",
4
4
  "license": "MIT",
5
5
  "repository": {
6
6
  "type": "git",