@ekkos/cli 0.2.18 → 1.0.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/README.md +57 -0
- package/dist/agent/daemon.d.ts +27 -0
- package/dist/agent/daemon.js +254 -29
- package/dist/agent/health-check.d.ts +35 -0
- package/dist/agent/health-check.js +243 -0
- package/dist/agent/pty-runner.d.ts +1 -0
- package/dist/agent/pty-runner.js +6 -1
- package/dist/capture/eviction-client.d.ts +139 -0
- package/dist/capture/eviction-client.js +454 -0
- package/dist/capture/index.d.ts +2 -0
- package/dist/capture/index.js +2 -0
- package/dist/capture/jsonl-rewriter.d.ts +96 -0
- package/dist/capture/jsonl-rewriter.js +1369 -0
- package/dist/capture/transcript-repair.d.ts +51 -0
- package/dist/capture/transcript-repair.js +319 -0
- package/dist/commands/agent.d.ts +6 -0
- package/dist/commands/agent.js +244 -0
- package/dist/commands/dashboard.d.ts +25 -0
- package/dist/commands/dashboard.js +1175 -0
- package/dist/commands/doctor.js +23 -1
- package/dist/commands/run.d.ts +5 -0
- package/dist/commands/run.js +1605 -516
- package/dist/commands/setup-remote.js +146 -37
- package/dist/commands/swarm-dashboard.d.ts +20 -0
- package/dist/commands/swarm-dashboard.js +735 -0
- package/dist/commands/swarm-setup.d.ts +10 -0
- package/dist/commands/swarm-setup.js +956 -0
- package/dist/commands/swarm.d.ts +46 -0
- package/dist/commands/swarm.js +441 -0
- package/dist/commands/test-claude.d.ts +16 -0
- package/dist/commands/test-claude.js +156 -0
- package/dist/commands/usage/blocks.d.ts +8 -0
- package/dist/commands/usage/blocks.js +60 -0
- package/dist/commands/usage/daily.d.ts +9 -0
- package/dist/commands/usage/daily.js +96 -0
- package/dist/commands/usage/dashboard.d.ts +8 -0
- package/dist/commands/usage/dashboard.js +104 -0
- package/dist/commands/usage/formatters.d.ts +41 -0
- package/dist/commands/usage/formatters.js +147 -0
- package/dist/commands/usage/index.d.ts +13 -0
- package/dist/commands/usage/index.js +87 -0
- package/dist/commands/usage/monthly.d.ts +8 -0
- package/dist/commands/usage/monthly.js +66 -0
- package/dist/commands/usage/session.d.ts +11 -0
- package/dist/commands/usage/session.js +193 -0
- package/dist/commands/usage/weekly.d.ts +9 -0
- package/dist/commands/usage/weekly.js +61 -0
- package/dist/commands/usage.d.ts +7 -0
- package/dist/commands/usage.js +214 -0
- package/dist/cron/index.d.ts +7 -0
- package/dist/cron/index.js +13 -0
- package/dist/cron/promoter.d.ts +70 -0
- package/dist/cron/promoter.js +403 -0
- package/dist/deploy/instructions.d.ts +5 -2
- package/dist/deploy/instructions.js +11 -8
- package/dist/index.js +262 -5
- package/dist/lib/tmux-scrollbar.d.ts +14 -0
- package/dist/lib/tmux-scrollbar.js +296 -0
- package/dist/lib/usage-monitor.d.ts +47 -0
- package/dist/lib/usage-monitor.js +124 -0
- package/dist/lib/usage-parser.d.ts +162 -0
- package/dist/lib/usage-parser.js +583 -0
- package/dist/restore/RestoreOrchestrator.d.ts +4 -0
- package/dist/restore/RestoreOrchestrator.js +118 -30
- package/dist/utils/log-rotate.d.ts +18 -0
- package/dist/utils/log-rotate.js +74 -0
- package/dist/utils/platform.d.ts +2 -0
- package/dist/utils/platform.js +3 -1
- package/dist/utils/session-binding.d.ts +5 -0
- package/dist/utils/session-binding.js +46 -0
- package/dist/utils/state.js +4 -0
- package/dist/utils/verify-remote-terminal.d.ts +10 -0
- package/dist/utils/verify-remote-terminal.js +415 -0
- package/package.json +9 -2
- package/templates/CLAUDE.md +135 -23
- package/templates/ekkos-manifest.json +5 -5
- package/templates/hooks/lib/contract.sh +43 -31
- package/templates/hooks/lib/count-tokens.cjs +86 -0
- package/templates/hooks/lib/ekkos-reminders.sh +98 -0
- package/templates/hooks/lib/state.sh +53 -1
- package/templates/hooks/stop.sh +150 -388
- package/templates/hooks/user-prompt-submit.sh +353 -443
- package/templates/windsurf-hooks/README.md +212 -0
- package/templates/windsurf-hooks/hooks.json +9 -2
- package/templates/windsurf-hooks/install.sh +148 -0
- package/templates/windsurf-hooks/lib/contract.sh +2 -0
- package/templates/windsurf-hooks/post-cascade-response.sh +251 -0
- package/templates/windsurf-hooks/pre-user-prompt.sh +435 -0
- package/templates/windsurf-skills/ekkos-memory/SKILL.md +219 -0
- package/templates/agents/README.md +0 -182
- package/templates/agents/code-reviewer.md +0 -166
- package/templates/agents/debug-detective.md +0 -169
- package/templates/agents/ekkOS_Vercel.md +0 -99
- package/templates/agents/extension-manager.md +0 -229
- package/templates/agents/git-companion.md +0 -185
- package/templates/agents/github-test-agent.md +0 -321
- package/templates/agents/railway-manager.md +0 -215
- package/templates/windsurf-hooks/before-submit-prompt.sh +0 -238
package/dist/commands/doctor.js
CHANGED
|
@@ -21,10 +21,17 @@ const fs_1 = require("fs");
|
|
|
21
21
|
const child_process_1 = require("child_process");
|
|
22
22
|
const chalk_1 = __importDefault(require("chalk"));
|
|
23
23
|
const hooks_1 = require("./hooks");
|
|
24
|
+
// ekkOS-managed Claude installation path (same as run.ts)
|
|
25
|
+
const EKKOS_CLAUDE_BIN = (0, path_1.join)((0, os_1.homedir)(), '.ekkos', 'claude-code', 'node_modules', '.bin', 'claude');
|
|
24
26
|
/**
|
|
25
|
-
* Check if a command exists in PATH
|
|
27
|
+
* Check if a command exists in PATH or managed location
|
|
28
|
+
* For 'claude', prioritizes ekkOS-managed installation
|
|
26
29
|
*/
|
|
27
30
|
function commandExists(cmd) {
|
|
31
|
+
// For claude, check managed path first
|
|
32
|
+
if (cmd === 'claude' && (0, fs_1.existsSync)(EKKOS_CLAUDE_BIN)) {
|
|
33
|
+
return true;
|
|
34
|
+
}
|
|
28
35
|
try {
|
|
29
36
|
const which = (0, os_1.platform)() === 'win32' ? 'where' : 'which';
|
|
30
37
|
(0, child_process_1.execSync)(`${which} ${cmd}`, { stdio: 'ignore' });
|
|
@@ -36,8 +43,23 @@ function commandExists(cmd) {
|
|
|
36
43
|
}
|
|
37
44
|
/**
|
|
38
45
|
* Get command version safely
|
|
46
|
+
* For 'claude', prioritizes ekkOS-managed installation
|
|
39
47
|
*/
|
|
40
48
|
function getVersion(cmd, versionFlag = '--version') {
|
|
49
|
+
// For claude, try managed path first
|
|
50
|
+
if (cmd === 'claude' && (0, fs_1.existsSync)(EKKOS_CLAUDE_BIN)) {
|
|
51
|
+
try {
|
|
52
|
+
const output = (0, child_process_1.execSync)(`"${EKKOS_CLAUDE_BIN}" ${versionFlag}`, {
|
|
53
|
+
encoding: 'utf-8',
|
|
54
|
+
timeout: 10000,
|
|
55
|
+
stdio: ['pipe', 'pipe', 'pipe']
|
|
56
|
+
}).trim();
|
|
57
|
+
return output.split('\n')[0];
|
|
58
|
+
}
|
|
59
|
+
catch {
|
|
60
|
+
// Fall through to PATH lookup
|
|
61
|
+
}
|
|
62
|
+
}
|
|
41
63
|
try {
|
|
42
64
|
const output = (0, child_process_1.execSync)(`${cmd} ${versionFlag}`, {
|
|
43
65
|
encoding: 'utf-8',
|
package/dist/commands/run.d.ts
CHANGED
|
@@ -5,6 +5,11 @@ interface RunOptions {
|
|
|
5
5
|
doctor?: boolean;
|
|
6
6
|
noInject?: boolean;
|
|
7
7
|
research?: boolean;
|
|
8
|
+
noDna?: boolean;
|
|
9
|
+
noProxy?: boolean;
|
|
10
|
+
dashboard?: boolean;
|
|
11
|
+
kickstart?: boolean;
|
|
12
|
+
addDirs?: string[];
|
|
8
13
|
slashOpenDelayMs?: number;
|
|
9
14
|
charDelayMs?: number;
|
|
10
15
|
postEnterDelayMs?: number;
|