@cleocode/cleo 2026.5.82 → 2026.5.83
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/index.js +25 -24
- package/dist/cli/index.js.map +2 -2
- package/package.json +11 -11
package/dist/cli/index.js
CHANGED
|
@@ -34778,7 +34778,7 @@ Task ${args.taskId} reassigned to you by ${active.agentId}. Run: cleo show ${arg
|
|
|
34778
34778
|
try {
|
|
34779
34779
|
const { existsSync: existsSync17, mkdirSync: mkdirSync7, writeFileSync: writeFileSync7 } = await import("node:fs");
|
|
34780
34780
|
const { join: join29 } = await import("node:path");
|
|
34781
|
-
const { homedir:
|
|
34781
|
+
const { homedir: homedir8 } = await import("node:os");
|
|
34782
34782
|
const name = args.name;
|
|
34783
34783
|
const role = args.role;
|
|
34784
34784
|
const tier = args.tier ?? inferTierFromRole(role);
|
|
@@ -34836,7 +34836,7 @@ Task ${args.taskId} reassigned to you by ${active.agentId}. Run: cleo show ${arg
|
|
|
34836
34836
|
}
|
|
34837
34837
|
let targetRoot;
|
|
34838
34838
|
if (isGlobal) {
|
|
34839
|
-
const home =
|
|
34839
|
+
const home = homedir8();
|
|
34840
34840
|
const xdgData = process.env["XDG_DATA_HOME"] ?? join29(home, ".local", "share");
|
|
34841
34841
|
targetRoot = join29(xdgData, "cleo", "cant", "agents");
|
|
34842
34842
|
} else {
|
|
@@ -37300,10 +37300,10 @@ __export(briefing_exports, {
|
|
|
37300
37300
|
briefingCommand: () => briefingCommand
|
|
37301
37301
|
});
|
|
37302
37302
|
import { existsSync as existsSync8, readFileSync as readFileSync8 } from "node:fs";
|
|
37303
|
-
import { homedir as homedir3 } from "node:os";
|
|
37304
37303
|
import { join as join9 } from "node:path";
|
|
37304
|
+
import { resolveLegacyCleoDir } from "@cleocode/paths";
|
|
37305
37305
|
function resolveInjectionTemplatePath() {
|
|
37306
|
-
const xdgConfig = process.env["XDG_CONFIG_HOME"]
|
|
37306
|
+
const xdgConfig = resolveLegacyCleoDir(process.env["XDG_CONFIG_HOME"]);
|
|
37307
37307
|
return join9(xdgConfig, "templates", "CLEO-INJECTION.md");
|
|
37308
37308
|
}
|
|
37309
37309
|
function extractSection(content, sectionName) {
|
|
@@ -37479,7 +37479,7 @@ var caamp_exports = {};
|
|
|
37479
37479
|
__export(caamp_exports, {
|
|
37480
37480
|
caampCommand: () => caampCommand
|
|
37481
37481
|
});
|
|
37482
|
-
import { homedir as
|
|
37482
|
+
import { homedir as homedir3 } from "node:os";
|
|
37483
37483
|
import { join as join10 } from "node:path";
|
|
37484
37484
|
var dedupeCommand, caampCommand;
|
|
37485
37485
|
var init_caamp = __esm({
|
|
@@ -37515,7 +37515,7 @@ var init_caamp = __esm({
|
|
|
37515
37515
|
if (args.file) {
|
|
37516
37516
|
filePaths = [args.file];
|
|
37517
37517
|
} else {
|
|
37518
|
-
const home =
|
|
37518
|
+
const home = homedir3();
|
|
37519
37519
|
filePaths = [
|
|
37520
37520
|
join10(home, ".agents", "AGENTS.md"),
|
|
37521
37521
|
// project-level AGENTS.md in cwd
|
|
@@ -39788,7 +39788,6 @@ __export(daemon_exports, {
|
|
|
39788
39788
|
daemonCommand: () => daemonCommand
|
|
39789
39789
|
});
|
|
39790
39790
|
import { existsSync as existsSync10 } from "node:fs";
|
|
39791
|
-
import { homedir as homedir5 } from "node:os";
|
|
39792
39791
|
import { join as join12 } from "node:path";
|
|
39793
39792
|
import { fileURLToPath as fileURLToPath4 } from "node:url";
|
|
39794
39793
|
import { getGCDaemonStatus, spawnGCDaemon, stopGCDaemon } from "@cleocode/core/gc/daemon.js";
|
|
@@ -39796,6 +39795,7 @@ import {
|
|
|
39796
39795
|
bootstrapDaemon as bootstrapSentientDaemon,
|
|
39797
39796
|
getSentientDaemonStatus
|
|
39798
39797
|
} from "@cleocode/core/sentient";
|
|
39798
|
+
import { resolveLegacyCleoDir as resolveLegacyCleoDir2 } from "@cleocode/paths";
|
|
39799
39799
|
async function showDaemonStatus(cleoDir, projectRoot) {
|
|
39800
39800
|
try {
|
|
39801
39801
|
const gcStatus = await getGCDaemonStatus(cleoDir);
|
|
@@ -39891,7 +39891,7 @@ var init_daemon = __esm({
|
|
|
39891
39891
|
}
|
|
39892
39892
|
},
|
|
39893
39893
|
async run({ args }) {
|
|
39894
|
-
const cleoDir = args["cleo-dir"]
|
|
39894
|
+
const cleoDir = resolveLegacyCleoDir2(args["cleo-dir"]);
|
|
39895
39895
|
const foreground = args.foreground ?? false;
|
|
39896
39896
|
if (foreground) {
|
|
39897
39897
|
const projectRoot = process.cwd();
|
|
@@ -39964,7 +39964,7 @@ var init_daemon = __esm({
|
|
|
39964
39964
|
}
|
|
39965
39965
|
},
|
|
39966
39966
|
async run({ args }) {
|
|
39967
|
-
const cleoDir = args["cleo-dir"]
|
|
39967
|
+
const cleoDir = resolveLegacyCleoDir2(args["cleo-dir"]);
|
|
39968
39968
|
try {
|
|
39969
39969
|
const stopResult = await stopGCDaemon(cleoDir);
|
|
39970
39970
|
cliOutput(stopResult, {
|
|
@@ -40002,7 +40002,7 @@ var init_daemon = __esm({
|
|
|
40002
40002
|
}
|
|
40003
40003
|
},
|
|
40004
40004
|
async run({ args }) {
|
|
40005
|
-
const cleoDir = args["cleo-dir"]
|
|
40005
|
+
const cleoDir = resolveLegacyCleoDir2(args["cleo-dir"]);
|
|
40006
40006
|
await showDaemonStatus(cleoDir, process.cwd());
|
|
40007
40007
|
}
|
|
40008
40008
|
});
|
|
@@ -40100,7 +40100,7 @@ var init_daemon = __esm({
|
|
|
40100
40100
|
},
|
|
40101
40101
|
async run({ args, cmd, rawArgs }) {
|
|
40102
40102
|
if (isSubCommandDispatch(rawArgs, cmd.subCommands)) return;
|
|
40103
|
-
const cleoDir = args["cleo-dir"]
|
|
40103
|
+
const cleoDir = resolveLegacyCleoDir2(args["cleo-dir"]);
|
|
40104
40104
|
await showDaemonStatus(cleoDir, process.cwd());
|
|
40105
40105
|
}
|
|
40106
40106
|
});
|
|
@@ -43477,11 +43477,12 @@ var gc_exports = {};
|
|
|
43477
43477
|
__export(gc_exports, {
|
|
43478
43478
|
gcCommand: () => gcCommand
|
|
43479
43479
|
});
|
|
43480
|
-
import { homedir as
|
|
43480
|
+
import { homedir as homedir4, tmpdir } from "node:os";
|
|
43481
43481
|
import { join as join18 } from "node:path";
|
|
43482
43482
|
import { pruneOrphanTempDirs, pruneOrphanWorktrees } from "@cleocode/core/gc/cleanup.js";
|
|
43483
43483
|
import { runGC } from "@cleocode/core/gc/runner.js";
|
|
43484
43484
|
import { readGCState } from "@cleocode/core/gc/state.js";
|
|
43485
|
+
import { resolveLegacyCleoDir as resolveLegacyCleoDir3 } from "@cleocode/paths";
|
|
43485
43486
|
function formatBytes(bytes) {
|
|
43486
43487
|
if (bytes === 0) return "0 B";
|
|
43487
43488
|
const units = ["B", "KB", "MB", "GB", "TB"];
|
|
@@ -43517,7 +43518,7 @@ var init_gc = __esm({
|
|
|
43517
43518
|
}
|
|
43518
43519
|
},
|
|
43519
43520
|
async run({ args }) {
|
|
43520
|
-
const cleoDir = args["cleo-dir"]
|
|
43521
|
+
const cleoDir = resolveLegacyCleoDir3(args["cleo-dir"]);
|
|
43521
43522
|
const dryRun = args["dry-run"];
|
|
43522
43523
|
try {
|
|
43523
43524
|
const gcResult = await runGC({ cleoDir, dryRun });
|
|
@@ -43559,7 +43560,7 @@ var init_gc = __esm({
|
|
|
43559
43560
|
}
|
|
43560
43561
|
},
|
|
43561
43562
|
async run({ args }) {
|
|
43562
|
-
const cleoDir = args["cleo-dir"]
|
|
43563
|
+
const cleoDir = resolveLegacyCleoDir3(args["cleo-dir"]);
|
|
43563
43564
|
const statePath = join18(cleoDir, "gc-state.json");
|
|
43564
43565
|
try {
|
|
43565
43566
|
const state = await readGCState(statePath);
|
|
@@ -43613,7 +43614,7 @@ var init_gc = __esm({
|
|
|
43613
43614
|
}
|
|
43614
43615
|
},
|
|
43615
43616
|
async run({ args }) {
|
|
43616
|
-
const xdgData = process.env["XDG_DATA_HOME"] ?? join18(
|
|
43617
|
+
const xdgData = process.env["XDG_DATA_HOME"] ?? join18(homedir4(), ".local", "share");
|
|
43617
43618
|
const worktreesRoot = args["worktrees-root"] ?? join18(xdgData, "cleo", "worktrees");
|
|
43618
43619
|
const projectHash = args["project-hash"];
|
|
43619
43620
|
const dryRun = args["dry-run"];
|
|
@@ -47583,7 +47584,7 @@ __export(memory_exports, {
|
|
|
47583
47584
|
});
|
|
47584
47585
|
import { createHash as createHash3 } from "node:crypto";
|
|
47585
47586
|
import { existsSync as existsSync15, mkdirSync as mkdirSync6, readdirSync as readdirSync3, readFileSync as readFileSync15, writeFileSync as writeFileSync6 } from "node:fs";
|
|
47586
|
-
import { homedir as
|
|
47587
|
+
import { homedir as homedir5 } from "node:os";
|
|
47587
47588
|
import { join as join21 } from "node:path";
|
|
47588
47589
|
import { getProjectRoot as getProjectRoot32 } from "@cleocode/core";
|
|
47589
47590
|
import {
|
|
@@ -48697,7 +48698,7 @@ var init_memory3 = __esm({
|
|
|
48697
48698
|
}
|
|
48698
48699
|
},
|
|
48699
48700
|
async run({ args }) {
|
|
48700
|
-
const sourceDir = args.from ?? join21(
|
|
48701
|
+
const sourceDir = args.from ?? join21(homedir5(), ".claude", "projects", "-mnt-projects-cleocode", "memory");
|
|
48701
48702
|
const isDryRun = !!args["dry-run"];
|
|
48702
48703
|
const projectRoot = getProjectRoot32();
|
|
48703
48704
|
const stateFile = join21(projectRoot, CLEO_DIR_NAME, MIGRATE_MEMORY_HASHES_JSON);
|
|
@@ -49703,14 +49704,14 @@ __export(nexus_exports, {
|
|
|
49703
49704
|
nexusCommand: () => nexusCommand
|
|
49704
49705
|
});
|
|
49705
49706
|
import { appendFile, mkdir as mkdir2 } from "node:fs/promises";
|
|
49706
|
-
import { homedir as
|
|
49707
|
+
import { homedir as homedir6 } from "node:os";
|
|
49707
49708
|
import path4 from "node:path";
|
|
49708
49709
|
import { getProjectRoot as getProjectRoot34 } from "@cleocode/core";
|
|
49709
49710
|
import { generateGexf, getSymbolImpact } from "@cleocode/core/nexus";
|
|
49710
49711
|
async function appendDeprecationTelemetry(op, replacement) {
|
|
49711
49712
|
try {
|
|
49712
49713
|
const dateStr = (/* @__PURE__ */ new Date()).toISOString().slice(0, 10);
|
|
49713
|
-
const dir = path4.join(
|
|
49714
|
+
const dir = path4.join(homedir6(), ".local", "state", "cleo", "nexus-deprecation");
|
|
49714
49715
|
await mkdir2(dir, { recursive: true });
|
|
49715
49716
|
const record = JSON.stringify({ ts: (/* @__PURE__ */ new Date()).toISOString(), op, replacement }) + "\n";
|
|
49716
49717
|
await appendFile(path4.join(dir, `${dateStr}.jsonl`), record, "utf8");
|
|
@@ -49964,9 +49965,9 @@ var init_nexus4 = __esm({
|
|
|
49964
49965
|
args: {},
|
|
49965
49966
|
async run() {
|
|
49966
49967
|
try {
|
|
49967
|
-
const { homedir:
|
|
49968
|
+
const { homedir: homedir8 } = await import("node:os");
|
|
49968
49969
|
const { installNexusAugmentHook } = await import("@cleocode/core/internal");
|
|
49969
|
-
const homeDir =
|
|
49970
|
+
const homeDir = homedir8();
|
|
49970
49971
|
installNexusAugmentHook(homeDir);
|
|
49971
49972
|
cliOutput({ homeDir }, { command: "nexus-setup", operation: "nexus.setup" });
|
|
49972
49973
|
} catch (err) {
|
|
@@ -60897,7 +60898,7 @@ var transcript_exports = {};
|
|
|
60897
60898
|
__export(transcript_exports, {
|
|
60898
60899
|
transcriptCommand: () => transcriptCommand
|
|
60899
60900
|
});
|
|
60900
|
-
import { homedir as
|
|
60901
|
+
import { homedir as homedir7 } from "node:os";
|
|
60901
60902
|
import { join as join25 } from "node:path";
|
|
60902
60903
|
import { getProjectRoot as getProjectRoot39 } from "@cleocode/core";
|
|
60903
60904
|
import {
|
|
@@ -60952,7 +60953,7 @@ var init_transcript = __esm({
|
|
|
60952
60953
|
}
|
|
60953
60954
|
return;
|
|
60954
60955
|
}
|
|
60955
|
-
const projectsDir = args["projects-dir"] ?? join25(
|
|
60956
|
+
const projectsDir = args["projects-dir"] ?? join25(homedir7(), ".claude", "projects");
|
|
60956
60957
|
try {
|
|
60957
60958
|
const result = await scanTranscripts(projectsDir);
|
|
60958
60959
|
cliOutput(
|
|
@@ -61258,7 +61259,7 @@ var init_transcript = __esm({
|
|
|
61258
61259
|
process.exit(2);
|
|
61259
61260
|
return;
|
|
61260
61261
|
}
|
|
61261
|
-
const projectsDir = args["projects-dir"] ?? join25(
|
|
61262
|
+
const projectsDir = args["projects-dir"] ?? join25(homedir7(), ".claude", "projects");
|
|
61262
61263
|
try {
|
|
61263
61264
|
const pruneResult = await pruneTranscripts({
|
|
61264
61265
|
olderThanMs,
|