@cleocode/cleo 2026.4.103 → 2026.4.105
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 +53 -10
- package/dist/cli/index.js.map +2 -2
- package/package.json +9 -9
package/dist/cli/index.js
CHANGED
|
@@ -139728,6 +139728,42 @@ var init_registry5 = __esm({
|
|
|
139728
139728
|
sessionRequired: false,
|
|
139729
139729
|
requiredParams: [],
|
|
139730
139730
|
params: []
|
|
139731
|
+
},
|
|
139732
|
+
{
|
|
139733
|
+
gateway: "mutate",
|
|
139734
|
+
domain: "orchestrate",
|
|
139735
|
+
operation: "worktree.complete",
|
|
139736
|
+
description: "orchestrate.worktree.complete (mutate) \u2014 cherry-pick commits from a task worktree back to main and clean up the worktree",
|
|
139737
|
+
tier: 2,
|
|
139738
|
+
idempotent: false,
|
|
139739
|
+
sessionRequired: false,
|
|
139740
|
+
requiredParams: ["taskId"],
|
|
139741
|
+
params: [
|
|
139742
|
+
{
|
|
139743
|
+
name: "taskId",
|
|
139744
|
+
type: "string",
|
|
139745
|
+
required: true,
|
|
139746
|
+
description: "Task ID whose worktree should be merged and cleaned up"
|
|
139747
|
+
}
|
|
139748
|
+
]
|
|
139749
|
+
},
|
|
139750
|
+
{
|
|
139751
|
+
gateway: "mutate",
|
|
139752
|
+
domain: "orchestrate",
|
|
139753
|
+
operation: "worktree.cleanup",
|
|
139754
|
+
description: "orchestrate.worktree.cleanup (mutate) \u2014 prune orphaned agent worktrees (e.g. after agent crash or session end)",
|
|
139755
|
+
tier: 2,
|
|
139756
|
+
idempotent: true,
|
|
139757
|
+
sessionRequired: false,
|
|
139758
|
+
requiredParams: [],
|
|
139759
|
+
params: [
|
|
139760
|
+
{
|
|
139761
|
+
name: "olderThanHours",
|
|
139762
|
+
type: "number",
|
|
139763
|
+
required: false,
|
|
139764
|
+
description: "Remove worktrees idle for longer than this many hours (default: 24)"
|
|
139765
|
+
}
|
|
139766
|
+
]
|
|
139731
139767
|
}
|
|
139732
139768
|
];
|
|
139733
139769
|
counts = getCounts();
|
|
@@ -151217,14 +151253,14 @@ async function handleTopEntries(operation, params, startTime) {
|
|
|
151217
151253
|
try {
|
|
151218
151254
|
const nexusDb = getNexusNativeDb();
|
|
151219
151255
|
if (!nexusDb) {
|
|
151220
|
-
|
|
151221
|
-
|
|
151222
|
-
|
|
151223
|
-
|
|
151224
|
-
|
|
151225
|
-
'Neither brain.db nor nexus.db is available. Run "cleo nexus init" to initialize.'
|
|
151226
|
-
|
|
151227
|
-
);
|
|
151256
|
+
const emptyData = {
|
|
151257
|
+
entries: [],
|
|
151258
|
+
count: 0,
|
|
151259
|
+
limit,
|
|
151260
|
+
kind: params?.kind ?? null,
|
|
151261
|
+
note: 'Neither brain.db nor nexus.db is available. Run "cleo nexus init" to initialize.'
|
|
151262
|
+
};
|
|
151263
|
+
return wrapResult({ success: true, data: emptyData }, "query", "nexus", operation, startTime);
|
|
151228
151264
|
}
|
|
151229
151265
|
return handleTopEntriesFromNexus(
|
|
151230
151266
|
operation,
|
|
@@ -152126,7 +152162,10 @@ var init_nexus3 = __esm({
|
|
|
152126
152162
|
"route-map",
|
|
152127
152163
|
"shape-check",
|
|
152128
152164
|
"search-code",
|
|
152129
|
-
"wiki"
|
|
152165
|
+
"wiki",
|
|
152166
|
+
// T1117 — Contracts + ingestion bridges
|
|
152167
|
+
"contracts-show",
|
|
152168
|
+
"task-symbols"
|
|
152130
152169
|
],
|
|
152131
152170
|
mutate: [
|
|
152132
152171
|
"share.snapshot.export",
|
|
@@ -152137,7 +152176,11 @@ var init_nexus3 = __esm({
|
|
|
152137
152176
|
"sync",
|
|
152138
152177
|
"permission.set",
|
|
152139
152178
|
"reconcile",
|
|
152140
|
-
"transfer"
|
|
152179
|
+
"transfer",
|
|
152180
|
+
// T1117 — Contracts + ingestion bridges
|
|
152181
|
+
"contracts-sync",
|
|
152182
|
+
"contracts-link-tasks",
|
|
152183
|
+
"conduit-scan"
|
|
152141
152184
|
]
|
|
152142
152185
|
};
|
|
152143
152186
|
}
|