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.
- package/dist/index.js +35 -23
- 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.
|
|
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.
|
|
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
|
|
30436
|
-
{
|
|
30437
|
-
{
|
|
30438
|
-
{
|
|
30439
|
-
{
|
|
30440
|
-
{
|
|
30441
|
-
{
|
|
30442
|
-
{
|
|
30443
|
-
{
|
|
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
|
-
{
|
|
30446
|
-
{
|
|
30447
|
-
{
|
|
30448
|
-
{
|
|
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 {
|
|
30458
|
+
const { choice } = await dist_default12.prompt([
|
|
30452
30459
|
{
|
|
30453
|
-
type: "
|
|
30454
|
-
name: "
|
|
30455
|
-
message: "
|
|
30456
|
-
|
|
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
|
-
|
|
30470
|
+
const selected = items[choice - 1];
|
|
30471
|
+
if (selected.args.length === 0)
|
|
30460
30472
|
return;
|
|
30461
|
-
|
|
30462
|
-
await program2.parseAsync(["node", "ccsini", ...
|
|
30473
|
+
console.log();
|
|
30474
|
+
await program2.parseAsync(["node", "ccsini", ...selected.args]);
|
|
30463
30475
|
} catch {}
|
|
30464
30476
|
}
|
|
30465
30477
|
|