@enruana/claude-orka 0.1.3 ā 0.2.0
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/cli.js
CHANGED
|
@@ -1752,6 +1752,40 @@ function statusCommand(program2) {
|
|
|
1752
1752
|
|
|
1753
1753
|
// src/cli/commands/session.ts
|
|
1754
1754
|
import ora from "ora";
|
|
1755
|
+
import chalk3 from "chalk";
|
|
1756
|
+
import readline from "readline";
|
|
1757
|
+
async function selectSession(sessions) {
|
|
1758
|
+
if (sessions.length === 0) {
|
|
1759
|
+
Output.warn("No sessions available.");
|
|
1760
|
+
return null;
|
|
1761
|
+
}
|
|
1762
|
+
console.log(chalk3.bold.cyan("\n\u{1F4CB} Select a session:\n"));
|
|
1763
|
+
sessions.forEach((session, index2) => {
|
|
1764
|
+
const statusColor = session.status === "active" ? chalk3.green : chalk3.yellow;
|
|
1765
|
+
const status = statusColor(`[${session.status}]`);
|
|
1766
|
+
const forkCount = session.forks.length > 0 ? chalk3.gray(` (${session.forks.length} forks)`) : "";
|
|
1767
|
+
console.log(` ${chalk3.bold(index2 + 1)}. ${session.name || "Unnamed"} ${status}${forkCount}`);
|
|
1768
|
+
console.log(chalk3.gray(` ID: ${session.id.slice(0, 8)}...`));
|
|
1769
|
+
console.log();
|
|
1770
|
+
});
|
|
1771
|
+
const rl = readline.createInterface({
|
|
1772
|
+
input: process.stdin,
|
|
1773
|
+
output: process.stdout
|
|
1774
|
+
});
|
|
1775
|
+
const answer = await new Promise((resolve) => {
|
|
1776
|
+
rl.question(chalk3.cyan("Enter number (or q to quit): "), resolve);
|
|
1777
|
+
});
|
|
1778
|
+
rl.close();
|
|
1779
|
+
if (answer.toLowerCase() === "q") {
|
|
1780
|
+
return null;
|
|
1781
|
+
}
|
|
1782
|
+
const index = parseInt(answer, 10) - 1;
|
|
1783
|
+
if (isNaN(index) || index < 0 || index >= sessions.length) {
|
|
1784
|
+
Output.error("Invalid selection");
|
|
1785
|
+
return null;
|
|
1786
|
+
}
|
|
1787
|
+
return sessions[index];
|
|
1788
|
+
}
|
|
1755
1789
|
function sessionCommand(program2) {
|
|
1756
1790
|
const session = program2.command("session").description("Manage Claude sessions");
|
|
1757
1791
|
session.command("create [name]").description("Create a new Claude session").option("--no-terminal", "Do not open terminal window").action(async (name, options) => {
|
|
@@ -1816,13 +1850,28 @@ function sessionCommand(program2) {
|
|
|
1816
1850
|
handleError(error);
|
|
1817
1851
|
}
|
|
1818
1852
|
});
|
|
1819
|
-
session.command("resume
|
|
1853
|
+
session.command("resume [session-id]").description("Resume a saved session (interactive if no ID provided)").option("--no-terminal", "Do not open terminal window").action(async (sessionId, options) => {
|
|
1820
1854
|
try {
|
|
1821
1855
|
const projectPath = process.cwd();
|
|
1822
1856
|
validateInitialized(projectPath);
|
|
1823
|
-
validateSessionId(sessionId);
|
|
1824
1857
|
const orka = new ClaudeOrka(projectPath);
|
|
1825
1858
|
await orka.initialize();
|
|
1859
|
+
if (!sessionId) {
|
|
1860
|
+
const sessions = await orka.listSessions({ status: "saved" });
|
|
1861
|
+
if (sessions.length === 0) {
|
|
1862
|
+
Output.warn("No saved sessions available to resume.");
|
|
1863
|
+
Output.info("Create a new session with: orka session create");
|
|
1864
|
+
process.exit(0);
|
|
1865
|
+
}
|
|
1866
|
+
const selectedSession = await selectSession(sessions);
|
|
1867
|
+
if (!selectedSession) {
|
|
1868
|
+
Output.info("Cancelled.");
|
|
1869
|
+
process.exit(0);
|
|
1870
|
+
}
|
|
1871
|
+
sessionId = selectedSession.id;
|
|
1872
|
+
} else {
|
|
1873
|
+
validateSessionId(sessionId);
|
|
1874
|
+
}
|
|
1826
1875
|
const spinner = ora("Resuming session...").start();
|
|
1827
1876
|
const resumedSession = await orka.resumeSession(sessionId, options.terminal);
|
|
1828
1877
|
spinner.succeed("Session resumed!");
|
|
@@ -2052,11 +2101,11 @@ function mergeCommand(program2) {
|
|
|
2052
2101
|
import execa2 from "execa";
|
|
2053
2102
|
import fs5 from "fs-extra";
|
|
2054
2103
|
import path5 from "path";
|
|
2055
|
-
import
|
|
2104
|
+
import chalk4 from "chalk";
|
|
2056
2105
|
function doctorCommand(program2) {
|
|
2057
2106
|
program2.command("doctor").description("Check system dependencies and configuration").action(async () => {
|
|
2058
2107
|
try {
|
|
2059
|
-
console.log(
|
|
2108
|
+
console.log(chalk4.bold.cyan("\n\u{1F50D} Claude-Orka Doctor\n"));
|
|
2060
2109
|
console.log("Checking system dependencies and configuration...\n");
|
|
2061
2110
|
const results = [];
|
|
2062
2111
|
results.push(await checkNodeVersion());
|
|
@@ -2243,42 +2292,42 @@ async function checkClaudeDir() {
|
|
|
2243
2292
|
}
|
|
2244
2293
|
}
|
|
2245
2294
|
function displayResults(results) {
|
|
2246
|
-
console.log(
|
|
2295
|
+
console.log(chalk4.bold("Results:\n"));
|
|
2247
2296
|
for (const result of results) {
|
|
2248
2297
|
let icon;
|
|
2249
2298
|
let color;
|
|
2250
2299
|
switch (result.status) {
|
|
2251
2300
|
case "pass":
|
|
2252
2301
|
icon = "\u2713";
|
|
2253
|
-
color =
|
|
2302
|
+
color = chalk4.green;
|
|
2254
2303
|
break;
|
|
2255
2304
|
case "warn":
|
|
2256
2305
|
icon = "\u26A0";
|
|
2257
|
-
color =
|
|
2306
|
+
color = chalk4.yellow;
|
|
2258
2307
|
break;
|
|
2259
2308
|
case "fail":
|
|
2260
2309
|
icon = "\u2717";
|
|
2261
|
-
color =
|
|
2310
|
+
color = chalk4.red;
|
|
2262
2311
|
break;
|
|
2263
2312
|
}
|
|
2264
2313
|
console.log(
|
|
2265
|
-
`${color(icon)} ${
|
|
2314
|
+
`${color(icon)} ${chalk4.bold(result.name)}: ${color(result.message)}`
|
|
2266
2315
|
);
|
|
2267
2316
|
if (result.details) {
|
|
2268
|
-
console.log(` ${
|
|
2317
|
+
console.log(` ${chalk4.gray(result.details)}`);
|
|
2269
2318
|
}
|
|
2270
2319
|
if (result.fix) {
|
|
2271
|
-
console.log(` ${
|
|
2320
|
+
console.log(` ${chalk4.cyan("Fix:")} ${result.fix}`);
|
|
2272
2321
|
}
|
|
2273
2322
|
console.log();
|
|
2274
2323
|
}
|
|
2275
2324
|
const passed = results.filter((r) => r.status === "pass").length;
|
|
2276
2325
|
const warned = results.filter((r) => r.status === "warn").length;
|
|
2277
2326
|
const failed = results.filter((r) => r.status === "fail").length;
|
|
2278
|
-
console.log(
|
|
2279
|
-
console.log(` ${
|
|
2280
|
-
console.log(` ${
|
|
2281
|
-
console.log(` ${
|
|
2327
|
+
console.log(chalk4.bold("Summary:"));
|
|
2328
|
+
console.log(` ${chalk4.green("\u2713")} Passed: ${passed}`);
|
|
2329
|
+
console.log(` ${chalk4.yellow("\u26A0")} Warnings: ${warned}`);
|
|
2330
|
+
console.log(` ${chalk4.red("\u2717")} Failed: ${failed}`);
|
|
2282
2331
|
console.log();
|
|
2283
2332
|
if (failed === 0 && warned === 0) {
|
|
2284
2333
|
Output.success("All checks passed! Claude-Orka is ready to use.");
|
|
@@ -2291,36 +2340,36 @@ function displayResults(results) {
|
|
|
2291
2340
|
|
|
2292
2341
|
// src/cli/commands/prepare.ts
|
|
2293
2342
|
import execa3 from "execa";
|
|
2294
|
-
import
|
|
2343
|
+
import chalk5 from "chalk";
|
|
2295
2344
|
import ora4 from "ora";
|
|
2296
2345
|
function prepareCommand(program2) {
|
|
2297
2346
|
program2.command("prepare").description("Install and configure system dependencies").option("-y, --yes", "Skip confirmation prompts").action(async (options) => {
|
|
2298
2347
|
try {
|
|
2299
|
-
console.log(
|
|
2348
|
+
console.log(chalk5.bold.cyan("\n\u{1F527} Claude-Orka Preparation\n"));
|
|
2300
2349
|
console.log("This will help you install required dependencies:\n");
|
|
2301
2350
|
console.log(" \u2022 tmux (terminal multiplexer)");
|
|
2302
2351
|
console.log(" \u2022 Claude CLI (if needed)\n");
|
|
2303
2352
|
if (!options.yes) {
|
|
2304
|
-
const
|
|
2353
|
+
const readline2 = __require("readline").createInterface({
|
|
2305
2354
|
input: process.stdin,
|
|
2306
2355
|
output: process.stdout
|
|
2307
2356
|
});
|
|
2308
2357
|
const answer = await new Promise((resolve) => {
|
|
2309
|
-
|
|
2358
|
+
readline2.question("Continue? (y/n): ", resolve);
|
|
2310
2359
|
});
|
|
2311
|
-
|
|
2360
|
+
readline2.close();
|
|
2312
2361
|
if (answer.toLowerCase() !== "y") {
|
|
2313
2362
|
Output.warn("Installation cancelled");
|
|
2314
2363
|
return;
|
|
2315
2364
|
}
|
|
2316
2365
|
}
|
|
2317
2366
|
const system = await detectSystem();
|
|
2318
|
-
console.log(
|
|
2367
|
+
console.log(chalk5.gray(`
|
|
2319
2368
|
Detected: ${system.platform}`));
|
|
2320
2369
|
await installTmux(system);
|
|
2321
2370
|
await checkClaudeCLI();
|
|
2322
|
-
console.log(
|
|
2323
|
-
console.log("Run " +
|
|
2371
|
+
console.log(chalk5.bold.green("\n\u2713 Preparation complete!\n"));
|
|
2372
|
+
console.log("Run " + chalk5.cyan("orka doctor") + " to verify everything is working.");
|
|
2324
2373
|
} catch (error) {
|
|
2325
2374
|
handleError(error);
|
|
2326
2375
|
}
|
|
@@ -2354,7 +2403,7 @@ async function detectSystem() {
|
|
|
2354
2403
|
return info;
|
|
2355
2404
|
}
|
|
2356
2405
|
async function installTmux(system) {
|
|
2357
|
-
console.log(
|
|
2406
|
+
console.log(chalk5.bold("\n\u{1F4E6} Installing tmux...\n"));
|
|
2358
2407
|
try {
|
|
2359
2408
|
await execa3("which", ["tmux"]);
|
|
2360
2409
|
const { stdout } = await execa3("tmux", ["-V"]);
|
|
@@ -2367,13 +2416,13 @@ async function installTmux(system) {
|
|
|
2367
2416
|
if (system.platform === "darwin") {
|
|
2368
2417
|
if (!system.hasHomebrew) {
|
|
2369
2418
|
spinner.fail("Homebrew is not installed");
|
|
2370
|
-
console.log(
|
|
2419
|
+
console.log(chalk5.yellow("\nPlease install Homebrew first:"));
|
|
2371
2420
|
console.log(
|
|
2372
|
-
|
|
2421
|
+
chalk5.cyan(
|
|
2373
2422
|
'/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"'
|
|
2374
2423
|
)
|
|
2375
2424
|
);
|
|
2376
|
-
console.log("\nThen run: " +
|
|
2425
|
+
console.log("\nThen run: " + chalk5.cyan("brew install tmux"));
|
|
2377
2426
|
return;
|
|
2378
2427
|
}
|
|
2379
2428
|
await execa3("brew", ["install", "tmux"]);
|
|
@@ -2388,37 +2437,37 @@ async function installTmux(system) {
|
|
|
2388
2437
|
spinner.succeed("tmux installed via yum");
|
|
2389
2438
|
} else {
|
|
2390
2439
|
spinner.fail("Unknown package manager");
|
|
2391
|
-
console.log(
|
|
2392
|
-
console.log(
|
|
2440
|
+
console.log(chalk5.yellow("\nPlease install tmux manually:"));
|
|
2441
|
+
console.log(chalk5.cyan(" https://github.com/tmux/tmux/wiki/Installing"));
|
|
2393
2442
|
}
|
|
2394
2443
|
} else {
|
|
2395
2444
|
spinner.fail(`Unsupported platform: ${system.platform}`);
|
|
2396
|
-
console.log(
|
|
2397
|
-
console.log(
|
|
2445
|
+
console.log(chalk5.yellow("\nPlease install tmux manually:"));
|
|
2446
|
+
console.log(chalk5.cyan(" https://github.com/tmux/tmux/wiki/Installing"));
|
|
2398
2447
|
}
|
|
2399
2448
|
} catch (error) {
|
|
2400
2449
|
spinner.fail("Failed to install tmux");
|
|
2401
|
-
console.log(
|
|
2450
|
+
console.log(chalk5.red(`
|
|
2402
2451
|
Error: ${error.message}`));
|
|
2403
|
-
console.log(
|
|
2404
|
-
console.log(
|
|
2405
|
-
console.log(
|
|
2406
|
-
console.log(
|
|
2452
|
+
console.log(chalk5.yellow("\nPlease install tmux manually:"));
|
|
2453
|
+
console.log(chalk5.cyan(" macOS: brew install tmux"));
|
|
2454
|
+
console.log(chalk5.cyan(" Ubuntu: sudo apt-get install tmux"));
|
|
2455
|
+
console.log(chalk5.cyan(" CentOS: sudo yum install tmux"));
|
|
2407
2456
|
}
|
|
2408
2457
|
}
|
|
2409
2458
|
async function checkClaudeCLI() {
|
|
2410
|
-
console.log(
|
|
2459
|
+
console.log(chalk5.bold("\n\u{1F916} Checking Claude CLI...\n"));
|
|
2411
2460
|
try {
|
|
2412
2461
|
const { stdout } = await execa3("claude", ["--version"]);
|
|
2413
2462
|
Output.success(`Claude CLI is installed: ${stdout}`);
|
|
2414
2463
|
} catch {
|
|
2415
2464
|
Output.warn("Claude CLI is not installed");
|
|
2416
|
-
console.log(
|
|
2417
|
-
console.log(
|
|
2465
|
+
console.log(chalk5.yellow("\nClaude CLI is required for Claude-Orka to work."));
|
|
2466
|
+
console.log(chalk5.cyan("\nInstallation options:"));
|
|
2418
2467
|
console.log(" 1. Visit: https://claude.ai/download");
|
|
2419
2468
|
console.log(" 2. Or use npm: npm install -g @anthropic-ai/claude-cli");
|
|
2420
2469
|
console.log(
|
|
2421
|
-
|
|
2470
|
+
chalk5.gray("\nNote: You may need to restart your terminal after installation.")
|
|
2422
2471
|
);
|
|
2423
2472
|
}
|
|
2424
2473
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"session.d.ts","sourceRoot":"","sources":["../../../../src/cli/commands/session.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;
|
|
1
|
+
{"version":3,"file":"session.d.ts","sourceRoot":"","sources":["../../../../src/cli/commands/session.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AAwDnC,wBAAgB,cAAc,CAAC,OAAO,EAAE,OAAO,QAgN9C"}
|
|
@@ -1,7 +1,45 @@
|
|
|
1
1
|
import ora from 'ora';
|
|
2
|
+
import chalk from 'chalk';
|
|
2
3
|
import { ClaudeOrka } from '../../core/ClaudeOrka';
|
|
3
4
|
import { Output } from '../utils/output';
|
|
4
5
|
import { handleError, validateInitialized, validateSessionId } from '../utils/errors';
|
|
6
|
+
import readline from 'readline';
|
|
7
|
+
/**
|
|
8
|
+
* Interactive session selector
|
|
9
|
+
*/
|
|
10
|
+
async function selectSession(sessions) {
|
|
11
|
+
if (sessions.length === 0) {
|
|
12
|
+
Output.warn('No sessions available.');
|
|
13
|
+
return null;
|
|
14
|
+
}
|
|
15
|
+
console.log(chalk.bold.cyan('\nš Select a session:\n'));
|
|
16
|
+
// Display sessions with index
|
|
17
|
+
sessions.forEach((session, index) => {
|
|
18
|
+
const statusColor = session.status === 'active' ? chalk.green : chalk.yellow;
|
|
19
|
+
const status = statusColor(`[${session.status}]`);
|
|
20
|
+
const forkCount = session.forks.length > 0 ? chalk.gray(` (${session.forks.length} forks)`) : '';
|
|
21
|
+
console.log(` ${chalk.bold(index + 1)}. ${session.name || 'Unnamed'} ${status}${forkCount}`);
|
|
22
|
+
console.log(chalk.gray(` ID: ${session.id.slice(0, 8)}...`));
|
|
23
|
+
console.log();
|
|
24
|
+
});
|
|
25
|
+
const rl = readline.createInterface({
|
|
26
|
+
input: process.stdin,
|
|
27
|
+
output: process.stdout,
|
|
28
|
+
});
|
|
29
|
+
const answer = await new Promise((resolve) => {
|
|
30
|
+
rl.question(chalk.cyan('Enter number (or q to quit): '), resolve);
|
|
31
|
+
});
|
|
32
|
+
rl.close();
|
|
33
|
+
if (answer.toLowerCase() === 'q') {
|
|
34
|
+
return null;
|
|
35
|
+
}
|
|
36
|
+
const index = parseInt(answer, 10) - 1;
|
|
37
|
+
if (isNaN(index) || index < 0 || index >= sessions.length) {
|
|
38
|
+
Output.error('Invalid selection');
|
|
39
|
+
return null;
|
|
40
|
+
}
|
|
41
|
+
return sessions[index];
|
|
42
|
+
}
|
|
5
43
|
export function sessionCommand(program) {
|
|
6
44
|
const session = program.command('session').description('Manage Claude sessions');
|
|
7
45
|
// Create session
|
|
@@ -89,16 +127,33 @@ export function sessionCommand(program) {
|
|
|
89
127
|
});
|
|
90
128
|
// Resume session
|
|
91
129
|
session
|
|
92
|
-
.command('resume
|
|
93
|
-
.description('Resume a saved session')
|
|
130
|
+
.command('resume [session-id]')
|
|
131
|
+
.description('Resume a saved session (interactive if no ID provided)')
|
|
94
132
|
.option('--no-terminal', 'Do not open terminal window')
|
|
95
133
|
.action(async (sessionId, options) => {
|
|
96
134
|
try {
|
|
97
135
|
const projectPath = process.cwd();
|
|
98
136
|
validateInitialized(projectPath);
|
|
99
|
-
validateSessionId(sessionId);
|
|
100
137
|
const orka = new ClaudeOrka(projectPath);
|
|
101
138
|
await orka.initialize();
|
|
139
|
+
// If no session ID provided, show interactive selector
|
|
140
|
+
if (!sessionId) {
|
|
141
|
+
const sessions = await orka.listSessions({ status: 'saved' });
|
|
142
|
+
if (sessions.length === 0) {
|
|
143
|
+
Output.warn('No saved sessions available to resume.');
|
|
144
|
+
Output.info('Create a new session with: orka session create');
|
|
145
|
+
process.exit(0);
|
|
146
|
+
}
|
|
147
|
+
const selectedSession = await selectSession(sessions);
|
|
148
|
+
if (!selectedSession) {
|
|
149
|
+
Output.info('Cancelled.');
|
|
150
|
+
process.exit(0);
|
|
151
|
+
}
|
|
152
|
+
sessionId = selectedSession.id;
|
|
153
|
+
}
|
|
154
|
+
else {
|
|
155
|
+
validateSessionId(sessionId);
|
|
156
|
+
}
|
|
102
157
|
const spinner = ora('Resuming session...').start();
|
|
103
158
|
const resumedSession = await orka.resumeSession(sessionId, options.terminal);
|
|
104
159
|
spinner.succeed('Session resumed!');
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"session.js","sourceRoot":"","sources":["../../../../src/cli/commands/session.ts"],"names":[],"mappings":"AACA,OAAO,GAAG,MAAM,KAAK,CAAA;AACrB,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAA;AAClD,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAA;AACxC,OAAO,EAAE,WAAW,EAAE,mBAAmB,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAA;AAErF,MAAM,UAAU,cAAc,CAAC,OAAgB;IAC7C,MAAM,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,SAAS,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