ccsini 0.1.36 → 0.1.38

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/index.js +35 -23
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -28018,7 +28018,7 @@ var {
28018
28018
  } = import__.default;
28019
28019
 
28020
28020
  // src/version.ts
28021
- var VERSION = "0.1.36";
28021
+ var VERSION = "0.1.38";
28022
28022
 
28023
28023
  // src/commands/init.ts
28024
28024
  init_source();
@@ -30412,7 +30412,7 @@ function registerSessionsCommand(program2) {
30412
30412
  // src/commands/menu.ts
30413
30413
  init_source();
30414
30414
  init_dist16();
30415
- var LOGO = source_default.cyan.bold(`
30415
+ var LOGO = source_default.hex("#FFA500").bold(`
30416
30416
  \u2588\u2588\u2588\u2588\u2588\u2588\u2557 \u2588\u2588\u2588\u2588\u2588\u2588\u2557\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2557\u2588\u2588\u2557\u2588\u2588\u2588\u2557 \u2588\u2588\u2557\u2588\u2588\u2557
30417
30417
  \u2588\u2588\u2554\u2550\u2550\u2550\u2550\u255D\u2588\u2588\u2554\u2550\u2550\u2550\u2550\u255D\u2588\u2588\u2554\u2550\u2550\u2550\u2550\u255D\u2588\u2588\u2551\u2588\u2588\u2588\u2588\u2557 \u2588\u2588\u2551\u2588\u2588\u2551
30418
30418
  \u2588\u2588\u2551 \u2588\u2588\u2551 \u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2557\u2588\u2588\u2551\u2588\u2588\u2554\u2588\u2588\u2557 \u2588\u2588\u2551\u2588\u2588\u2551
@@ -30432,34 +30432,46 @@ async function showInteractiveMenu(program2) {
30432
30432
  console.log(TAGLINE);
30433
30433
  const configDir = getConfigDir();
30434
30434
  const initialized = await configExists(configDir);
30435
- const choices = initialized ? [
30436
- { name: "Sync Push Push local changes to cloud", value: ["sync", "push"] },
30437
- { name: "Sync Pull Pull changes from cloud", value: ["sync", "pull"] },
30438
- { name: "Sync Status Show sync status", value: ["sync", "status"] },
30439
- { name: "Sessions Configure session sync", value: ["sessions", "status"] },
30440
- { name: "Doctor Check system health", value: ["doctor"] },
30441
- { name: "Hooks Fix Repair broken hooks", value: ["hooks", "fix"] },
30442
- { name: "Help Show all commands", value: ["--help"] },
30443
- { name: "Exit", value: [] }
30435
+ const items = initialized ? [
30436
+ { label: "Sync Push", desc: "Push local changes to cloud", args: ["sync", "push"] },
30437
+ { label: "Sync Pull", desc: "Pull changes from cloud", args: ["sync", "pull"] },
30438
+ { label: "Sync Status", desc: "Show sync status", args: ["sync", "status"] },
30439
+ { label: "Sessions", desc: "Configure session sync", args: ["sessions", "status"] },
30440
+ { label: "Doctor", desc: "Check system health", args: ["doctor"] },
30441
+ { label: "Hooks Fix", desc: "Repair broken hooks", args: ["hooks", "fix"] },
30442
+ { label: "Help", desc: "Show all commands", args: ["--help"] },
30443
+ { label: "Exit", desc: "", args: [] }
30444
30444
  ] : [
30445
- { name: "Setup Connect this device", value: ["init"] },
30446
- { name: "Doctor Check system health", value: ["doctor"] },
30447
- { name: "Help Show all commands", value: ["--help"] },
30448
- { name: "Exit", value: [] }
30445
+ { label: "Setup", desc: "Connect this device", args: ["init"] },
30446
+ { label: "Doctor", desc: "Check system health", args: ["doctor"] },
30447
+ { label: "Help", desc: "Show all commands", args: ["--help"] },
30448
+ { label: "Exit", desc: "", args: [] }
30449
30449
  ];
30450
+ for (let i = 0;i < items.length; i++) {
30451
+ const num = source_default.hex("#FFA500")(` ${i + 1})`);
30452
+ const label = source_default.bold(items[i].label);
30453
+ const desc = items[i].desc ? source_default.dim(` \u2014 ${items[i].desc}`) : "";
30454
+ console.log(`${num} ${label}${desc}`);
30455
+ }
30456
+ console.log();
30450
30457
  try {
30451
- const { action } = await dist_default12.prompt([
30458
+ const { choice } = await dist_default12.prompt([
30452
30459
  {
30453
- type: "list",
30454
- name: "action",
30455
- message: "What would you like to do?",
30456
- choices
30460
+ type: "number",
30461
+ name: "choice",
30462
+ message: "Pick an option:",
30463
+ validate: (v) => {
30464
+ if (v >= 1 && v <= items.length)
30465
+ return true;
30466
+ return `Enter a number between 1 and ${items.length}`;
30467
+ }
30457
30468
  }
30458
30469
  ]);
30459
- if (action.length === 0) {
30470
+ const selected = items[choice - 1];
30471
+ if (selected.args.length === 0)
30460
30472
  return;
30461
- }
30462
- await program2.parseAsync(["node", "ccsini", ...action]);
30473
+ console.log();
30474
+ await program2.parseAsync(["node", "ccsini", ...selected.args]);
30463
30475
  } catch {}
30464
30476
  }
30465
30477
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ccsini",
3
- "version": "0.1.36",
3
+ "version": "0.1.38",
4
4
  "description": "Claude Code seamless sync across devices",
5
5
  "type": "module",
6
6
  "bin": {