unoverse 0.1.7 → 0.1.9

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/bin/unoverse.mjs +31 -10
  2. package/package.json +1 -1
package/bin/unoverse.mjs CHANGED
@@ -50,18 +50,39 @@ const OPERATOR_COMMANDS = new Set([
50
50
 
51
51
  const [, , cmd, ...args] = process.argv;
52
52
 
53
- const HELP = `
54
- unoverse
53
+ // Same visual language as the operator half and the boot readout
54
+ // (packages/base/src/boot.ts): dim structure, ONE accent, green for the words you type.
55
+ // NO_COLOR is honoured — a help screen is the first thing piped into a file.
56
+ const COLOR = !process.env.NO_COLOR && process.stdout.isTTY !== false;
57
+ const paint = (code) => (t) => (COLOR ? `\x1b[${code}m${t}\x1b[0m` : t);
58
+ const bold = paint("1");
59
+ const dim = paint("2");
60
+ const cyan = paint("36");
61
+ const green = paint("32");
55
62
 
56
- unoverse create [name] What are you building? Studio project · universe · client app
57
- No name scaffolds into the folder you are in; a name makes one
58
- unoverse studio Launch Unoverse Studio (authoring: components, nodes, skills)
59
- unoverse where Where your universe is — addresses probed live, not recited
60
- unoverse update Update this CLI to the latest version
61
- unoverse help This
63
+ const CMDS = [
64
+ ["create [name]", "What are you building? Studio project · universe · client app",
65
+ "No name scaffolds into the folder you are in; a name makes one"],
66
+ ["studio", "Author components, nodes, agent skills"],
67
+ ["where", "Your universe's addresses, probed live, not recited"],
68
+ ["update", "Update this CLI to the latest version"],
69
+ ["help", "This"],
70
+ ];
71
+ const PAD = Math.max(...CMDS.map(([c]) => c.length));
62
72
 
63
- Standing in a universe folder adds: start · stop · check · logs · deploy
64
- `;
73
+ const HELP = [
74
+ "",
75
+ ` ${cyan("⬡")} ${bold("unoverse")}`,
76
+ "",
77
+ ...CMDS.flatMap(([cmd, desc, note]) => [
78
+ ` ${green(cmd)}${" ".repeat(PAD - cmd.length)} ${desc}`,
79
+ ...(note ? [` ${" ".repeat(PAD)} ${dim(note)}`] : []),
80
+ ]),
81
+ "",
82
+ ].join("\n");
83
+ // NO "in a universe folder, add: ..." line. It named a thing a new user has never seen
84
+ // and listed commands they cannot run. The CLI already knows where you are standing, so
85
+ // those commands appear when they apply and stay invisible when they do not.
65
86
 
66
87
  switch (cmd) {
67
88
  case "create":
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "unoverse",
3
- "version": "0.1.7",
3
+ "version": "0.1.9",
4
4
  "description": "The Unoverse front door — create a Studio project, a universe, or a client app, and launch Studio.",
5
5
  "license": "SEE LICENSE IN README.md",
6
6
  "type": "module",