ccsini 0.1.35 → 0.1.36
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 +58 -1
- 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.36";
|
|
28022
28022
|
|
|
28023
28023
|
// src/commands/init.ts
|
|
28024
28024
|
init_source();
|
|
@@ -30409,6 +30409,60 @@ function registerSessionsCommand(program2) {
|
|
|
30409
30409
|
});
|
|
30410
30410
|
}
|
|
30411
30411
|
|
|
30412
|
+
// src/commands/menu.ts
|
|
30413
|
+
init_source();
|
|
30414
|
+
init_dist16();
|
|
30415
|
+
var LOGO = source_default.cyan.bold(`
|
|
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
|
+
\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
|
+
\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
|
|
30419
|
+
\u2588\u2588\u2551 \u2588\u2588\u2551 \u255A\u2550\u2550\u2550\u2550\u2588\u2588\u2551\u2588\u2588\u2551\u2588\u2588\u2551\u255A\u2588\u2588\u2557\u2588\u2588\u2551\u2588\u2588\u2551
|
|
30420
|
+
\u255A\u2588\u2588\u2588\u2588\u2588\u2588\u2557\u255A\u2588\u2588\u2588\u2588\u2588\u2588\u2557\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2551\u2588\u2588\u2551\u2588\u2588\u2551 \u255A\u2588\u2588\u2588\u2588\u2551\u2588\u2588\u2551
|
|
30421
|
+
\u255A\u2550\u2550\u2550\u2550\u2550\u255D \u255A\u2550\u2550\u2550\u2550\u2550\u255D\u255A\u2550\u2550\u2550\u2550\u2550\u2550\u255D\u255A\u2550\u255D\u255A\u2550\u255D \u255A\u2550\u2550\u2550\u255D\u255A\u2550\u255D
|
|
30422
|
+
`);
|
|
30423
|
+
var TAGLINE = ` ${source_default.bold(`ccsini v${VERSION}`)} \u2014 Claude Code seamless sync
|
|
30424
|
+
${source_default.dim("Encrypted sync for your Claude Code settings across devices")}
|
|
30425
|
+
`;
|
|
30426
|
+
async function showInteractiveMenu(program2) {
|
|
30427
|
+
if (!process.stdin.isTTY) {
|
|
30428
|
+
program2.help();
|
|
30429
|
+
return;
|
|
30430
|
+
}
|
|
30431
|
+
console.log(LOGO);
|
|
30432
|
+
console.log(TAGLINE);
|
|
30433
|
+
const configDir = getConfigDir();
|
|
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: [] }
|
|
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: [] }
|
|
30449
|
+
];
|
|
30450
|
+
try {
|
|
30451
|
+
const { action } = await dist_default12.prompt([
|
|
30452
|
+
{
|
|
30453
|
+
type: "list",
|
|
30454
|
+
name: "action",
|
|
30455
|
+
message: "What would you like to do?",
|
|
30456
|
+
choices
|
|
30457
|
+
}
|
|
30458
|
+
]);
|
|
30459
|
+
if (action.length === 0) {
|
|
30460
|
+
return;
|
|
30461
|
+
}
|
|
30462
|
+
await program2.parseAsync(["node", "ccsini", ...action]);
|
|
30463
|
+
} catch {}
|
|
30464
|
+
}
|
|
30465
|
+
|
|
30412
30466
|
// src/index.ts
|
|
30413
30467
|
var program2 = new Command;
|
|
30414
30468
|
program2.name("ccsini").description("Claude Code seamless sync across devices").version(VERSION);
|
|
@@ -30423,4 +30477,7 @@ registerSessionsCommand(program2);
|
|
|
30423
30477
|
program2.command("version").description("Show current version").action(() => {
|
|
30424
30478
|
console.log(VERSION);
|
|
30425
30479
|
});
|
|
30480
|
+
program2.action(async () => {
|
|
30481
|
+
await showInteractiveMenu(program2);
|
|
30482
|
+
});
|
|
30426
30483
|
program2.parse();
|