@cleocode/core 2026.3.47 → 2026.3.48

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/index.js CHANGED
@@ -18900,7 +18900,7 @@ function checkInjection2(projectRoot) {
18900
18900
  status: "warning",
18901
18901
  message: "AGENTS.md not found in project root",
18902
18902
  details: { path: agentsMdPath, exists: false },
18903
- fix: "cleo init --update-docs"
18903
+ fix: "cleo upgrade"
18904
18904
  };
18905
18905
  }
18906
18906
  let content;
@@ -18925,7 +18925,7 @@ function checkInjection2(projectRoot) {
18925
18925
  status: "warning",
18926
18926
  message: "AGENTS.md exists but has no CAAMP markers",
18927
18927
  details: { path: agentsMdPath, hasCaampMarker: false },
18928
- fix: "cleo init --update-docs"
18928
+ fix: "cleo upgrade"
18929
18929
  };
18930
18930
  }
18931
18931
  if (startCount !== endCount) {
@@ -18935,7 +18935,7 @@ function checkInjection2(projectRoot) {
18935
18935
  status: "warning",
18936
18936
  message: `CAAMP markers unbalanced: ${startCount} START vs ${endCount} END`,
18937
18937
  details: { path: agentsMdPath, startCount, endCount },
18938
- fix: "cleo init --update-docs"
18938
+ fix: "cleo upgrade"
18939
18939
  };
18940
18940
  }
18941
18941
  const caampMatch = content.match(/<!-- CAAMP:START -->([\s\S]*?)<!-- CAAMP:END -->/);
@@ -18957,7 +18957,7 @@ function checkInjection2(projectRoot) {
18957
18957
  status: "warning",
18958
18958
  message: `Missing @ reference targets: ${missing.join(", ")}`,
18959
18959
  details: { path: agentsMdPath, missing, totalRefs: refs.length },
18960
- fix: "cleo init --update-docs"
18960
+ fix: "cleo upgrade"
18961
18961
  };
18962
18962
  }
18963
18963
  }
@@ -18974,7 +18974,7 @@ function checkInjection2(projectRoot) {
18974
18974
  status: "warning",
18975
18975
  message: `CLAUDE.md CAAMP markers unbalanced: ${cStartCount} START vs ${cEndCount} END`,
18976
18976
  details: { file: "CLAUDE.md", startCount: cStartCount, endCount: cEndCount },
18977
- fix: "cleo init --update-docs"
18977
+ fix: "cleo upgrade"
18978
18978
  };
18979
18979
  }
18980
18980
  if (cStartCount === 0) {
@@ -18984,7 +18984,7 @@ function checkInjection2(projectRoot) {
18984
18984
  status: "warning",
18985
18985
  message: "CLAUDE.md has no CAAMP markers",
18986
18986
  details: { file: "CLAUDE.md", hasCaampMarker: false },
18987
- fix: "cleo init --update-docs"
18987
+ fix: "cleo upgrade"
18988
18988
  };
18989
18989
  }
18990
18990
  } catch {
@@ -55933,7 +55933,7 @@ function checkAgentsMdHub(projectRoot) {
55933
55933
  status: "warning",
55934
55934
  message: "AGENTS.md not found in project root",
55935
55935
  details: { path: agentsMdPath, exists: false },
55936
- fix: "cleo init --update-docs"
55936
+ fix: "cleo upgrade"
55937
55937
  };
55938
55938
  }
55939
55939
  let content;
@@ -55956,7 +55956,7 @@ function checkAgentsMdHub(projectRoot) {
55956
55956
  status: "warning",
55957
55957
  message: "AGENTS.md exists but has no CAAMP:START marker",
55958
55958
  details: { path: agentsMdPath, hasCaampMarker: false },
55959
- fix: "cleo init --update-docs"
55959
+ fix: "cleo upgrade"
55960
55960
  };
55961
55961
  }
55962
55962
  return {
@@ -56295,7 +56295,7 @@ function checkCaampMarkerIntegrity(projectRoot) {
56295
56295
  status: "warning",
56296
56296
  message: `CAAMP marker issues: ${issues.join("; ")}`,
56297
56297
  details: { issues },
56298
- fix: "cleo init --update-docs"
56298
+ fix: "cleo upgrade"
56299
56299
  };
56300
56300
  }
56301
56301
  return {
@@ -56361,7 +56361,7 @@ function checkAtReferenceTargetExists(projectRoot) {
56361
56361
  status: "warning",
56362
56362
  message: `Missing @ reference targets: ${missing.join(", ")}`,
56363
56363
  details: { missing, totalRefs: refs.length },
56364
- fix: "cleo init --update-docs"
56364
+ fix: "cleo upgrade"
56365
56365
  };
56366
56366
  }
56367
56367
  return {
@@ -61942,32 +61942,7 @@ async function installGitHubTemplates(projectRoot, created, skipped) {
61942
61942
  }
61943
61943
  }
61944
61944
  }
61945
- async function updateDocs() {
61946
- const cleoDir = getCleoDirAbsolute();
61947
- const projRoot = getProjectRoot();
61948
- const created = [];
61949
- const warnings = [];
61950
- try {
61951
- const result = await ensureInjection(projRoot);
61952
- if (result.action !== "skipped") {
61953
- created.push(`injection: ${result.details ?? result.action}`);
61954
- }
61955
- } catch (err) {
61956
- warnings.push(`CAAMP injection: ${err instanceof Error ? err.message : String(err)}`);
61957
- }
61958
- return {
61959
- initialized: true,
61960
- directory: cleoDir,
61961
- created,
61962
- skipped: [],
61963
- warnings,
61964
- updateDocsOnly: true
61965
- };
61966
- }
61967
61945
  async function initProject(opts = {}) {
61968
- if (opts.updateDocs) {
61969
- return updateDocs();
61970
- }
61971
61946
  const cleoDir = getCleoDirAbsolute();
61972
61947
  const projRoot = getProjectRoot();
61973
61948
  const alreadyInitialized = existsSync99(cleoDir) && (existsSync99(join100(cleoDir, "tasks.db")) || existsSync99(join100(cleoDir, "config.json")));
@@ -62315,7 +62290,7 @@ init_paths();
62315
62290
 
62316
62291
  // packages/core/src/project-info.ts
62317
62292
  init_paths();
62318
- import { existsSync as existsSync101, readFileSync as readFileSync75 } from "node:fs";
62293
+ import { existsSync as existsSync101, readFileSync as readFileSync75, writeFileSync as writeFileSync19 } from "node:fs";
62319
62294
  import { readFile as readFile18 } from "node:fs/promises";
62320
62295
  import { join as join102 } from "node:path";
62321
62296
  async function getProjectInfo(cwd) {