@cleocode/cleo 2026.4.157 → 2026.4.161

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
@@ -744,7 +744,8 @@ var init_facade = __esm({
744
744
  "bugfix",
745
745
  "decision",
746
746
  "refactor",
747
- "diary"
747
+ "diary",
748
+ "session-summary"
748
749
  ];
749
750
  AGENT_INSTANCE_STATUSES = [
750
751
  "starting",
@@ -9080,7 +9081,7 @@ var init_registry = __esm({
9080
9081
  gateway: "mutate",
9081
9082
  domain: "orchestrate",
9082
9083
  operation: "worktree.complete",
9083
- description: "orchestrate.worktree.complete (mutate) \u2014 cherry-pick commits from a task worktree back to main and clean up the worktree",
9084
+ description: "orchestrate.worktree.complete (mutate) \u2014 merge (--no-ff) a task worktree branch into the project default branch (preserves agent commit SHAs per ADR-062) and clean up the worktree",
9084
9085
  tier: 2,
9085
9086
  idempotent: false,
9086
9087
  sessionRequired: false,
@@ -15178,10 +15179,14 @@ import {
15178
15179
  appendForceBypassLine,
15179
15180
  appendGateAuditLine,
15180
15181
  checkAndIncrementOverrideCap,
15182
+ checkCallsiteCoverageAtom,
15183
+ checkEngineMigrationLocDrop,
15181
15184
  checkGateEvidenceMinimum,
15182
15185
  composeGateEvidence,
15183
15186
  enforceSharedEvidence,
15184
15187
  getAccessor as getAccessor7,
15188
+ hasCallsiteCoverageLabel,
15189
+ hasEngineMigrationLabel,
15185
15190
  parseEvidence,
15186
15191
  validateAtom
15187
15192
  } from "@cleocode/core/internal";
@@ -15773,6 +15778,19 @@ Or set CLEO_OWNER_OVERRIDE=1 with CLEO_OWNER_OVERRIDE_REASON=<reason> for emerge
15773
15778
  return engineError("E_EVIDENCE_INSUFFICIENT", missing2);
15774
15779
  }
15775
15780
  }
15781
+ const isImplementedTarget = targets.includes("implemented");
15782
+ if (isImplementedTarget && hasEngineMigrationLabel(task.labels ?? [])) {
15783
+ const locDropError = checkEngineMigrationLocDrop(validatedAtoms);
15784
+ if (locDropError) {
15785
+ return engineError("E_EVIDENCE_INSUFFICIENT", locDropError);
15786
+ }
15787
+ }
15788
+ if (isImplementedTarget && hasCallsiteCoverageLabel(task.labels ?? [])) {
15789
+ const callsiteError = checkCallsiteCoverageAtom(validatedAtoms);
15790
+ if (callsiteError) {
15791
+ return engineError("E_EVIDENCE_INSUFFICIENT", callsiteError);
15792
+ }
15793
+ }
15776
15794
  }
15777
15795
  evidenceStored.push(...validatedAtoms);
15778
15796
  const evidence = composeGateEvidence(
@@ -28893,8 +28911,17 @@ async function orchestrateAnalyzeParallelSafety(taskIds, projectRoot) {
28893
28911
  }
28894
28912
  async function handleWorktreeComplete(taskId, projectRoot) {
28895
28913
  try {
28896
- const { completeAgentWorktree } = await import("@cleocode/core/internal");
28897
- const result = completeAgentWorktree(taskId, projectRoot);
28914
+ const { completeAgentWorktreeViaMerge } = await import("@cleocode/core/internal");
28915
+ const result = completeAgentWorktreeViaMerge(taskId, projectRoot);
28916
+ if (!result.merged && result.error) {
28917
+ return {
28918
+ success: false,
28919
+ error: {
28920
+ code: "E_WORKTREE_COMPLETE_FAILED",
28921
+ message: result.error
28922
+ }
28923
+ };
28924
+ }
28898
28925
  return { success: true, data: result };
28899
28926
  } catch (error) {
28900
28927
  getLogger11("domain:orchestrate").error(
@@ -46642,7 +46669,7 @@ var observeCommand = defineCommand({
46642
46669
  },
46643
46670
  type: {
46644
46671
  type: "string",
46645
- description: "Category: discovery (found something new), decision (choice made), bugfix (bug found/fixed), refactor (code restructured), feature (feature added), change (general change), pattern (recurring pattern), session_summary (end-of-session recap)"
46672
+ description: "Category: discovery (found something new), decision (choice made), bugfix (bug found/fixed), refactor (code restructured), feature (feature added), change (general change), diary (journal entry), session-summary (end-of-session recap auto-created by cleo session end)"
46646
46673
  },
46647
46674
  agent: {
46648
46675
  type: "string",
@@ -48482,7 +48509,7 @@ var recentCommand = makeMemorySubcommand({
48482
48509
  },
48483
48510
  type: {
48484
48511
  type: "string",
48485
- description: "Filter by observation type (discovery, decision, bugfix, refactor, feature, change, pattern, diary, session_summary)."
48512
+ description: "Filter by observation type (discovery, decision, bugfix, refactor, feature, change, diary, session-summary)."
48486
48513
  },
48487
48514
  since: {
48488
48515
  type: "string",