@cleocode/cleo 2026.4.104 → 2026.4.106

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