@cleocode/cleo 2026.3.64 → 2026.3.65
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 +37 -3
- package/dist/cli/index.js.map +2 -2
- package/dist/mcp/index.js +5 -3
- package/dist/mcp/index.js.map +2 -2
- package/package.json +3 -3
package/dist/cli/index.js
CHANGED
|
@@ -90711,16 +90711,18 @@ var PipelineHandler = class {
|
|
|
90711
90711
|
return wrapResult(result, "query", "pipeline", "phase.list", startTime);
|
|
90712
90712
|
}
|
|
90713
90713
|
const listData = result.data;
|
|
90714
|
+
const phases = listData.phases ?? [];
|
|
90715
|
+
const total = listData.summary?.total ?? phases.length;
|
|
90714
90716
|
const { limit, offset } = getListParams(params);
|
|
90715
|
-
const page = paginate(
|
|
90717
|
+
const page = paginate(phases, limit, offset);
|
|
90716
90718
|
return {
|
|
90717
90719
|
_meta: dispatchMeta("query", "pipeline", "phase.list", startTime),
|
|
90718
90720
|
success: true,
|
|
90719
90721
|
data: {
|
|
90720
90722
|
...listData,
|
|
90721
90723
|
phases: page.items,
|
|
90722
|
-
total
|
|
90723
|
-
filtered:
|
|
90724
|
+
total,
|
|
90725
|
+
filtered: total
|
|
90724
90726
|
},
|
|
90725
90727
|
page: page.page
|
|
90726
90728
|
};
|
|
@@ -94603,6 +94605,38 @@ function findProjectRoot() {
|
|
|
94603
94605
|
function registerDetectDriftCommand(program) {
|
|
94604
94606
|
program.command("detect-drift").description("Detect documentation drift against TypeScript source of truth").action(async () => {
|
|
94605
94607
|
const projectRoot = findProjectRoot();
|
|
94608
|
+
const isCleoRepo = existsSync121(join114(projectRoot, "src", "cli", "commands")) || existsSync121(join114(projectRoot, "packages", "cleo", "src"));
|
|
94609
|
+
if (!isCleoRepo) {
|
|
94610
|
+
const userResult = {
|
|
94611
|
+
summary: { totalChecks: 1, passed: 0, warnings: 0, errors: 0, exitCode: 0 },
|
|
94612
|
+
checks: [],
|
|
94613
|
+
recommendations: []
|
|
94614
|
+
};
|
|
94615
|
+
const injPath = join114(projectRoot, ".cleo", "templates", "CLEO-INJECTION.md");
|
|
94616
|
+
if (existsSync121(injPath)) {
|
|
94617
|
+
const content = safeRead(injPath);
|
|
94618
|
+
userResult.checks.push({
|
|
94619
|
+
name: "Agent injection",
|
|
94620
|
+
status: content.length > 100 ? "pass" : "warn",
|
|
94621
|
+
message: content.length > 100 ? "Agent injection template exists" : "Template appears incomplete",
|
|
94622
|
+
issues: []
|
|
94623
|
+
});
|
|
94624
|
+
userResult.summary.passed = content.length > 100 ? 1 : 0;
|
|
94625
|
+
userResult.summary.warnings = content.length > 100 ? 0 : 1;
|
|
94626
|
+
} else {
|
|
94627
|
+
userResult.checks.push({
|
|
94628
|
+
name: "Agent injection",
|
|
94629
|
+
status: "warn",
|
|
94630
|
+
message: "No injection template found \u2014 run `cleo init` to create one",
|
|
94631
|
+
issues: []
|
|
94632
|
+
});
|
|
94633
|
+
userResult.summary.warnings = 1;
|
|
94634
|
+
}
|
|
94635
|
+
userResult.summary.exitCode = userResult.summary.errors > 0 ? 2 : userResult.summary.warnings > 0 ? 1 : 0;
|
|
94636
|
+
userResult.recommendations.push("detect-drift source checks only apply to the CLEO monorepo. Run from the cleo source tree for full analysis.");
|
|
94637
|
+
cliOutput(userResult, { command: "detect-drift" });
|
|
94638
|
+
process.exit(userResult.summary.exitCode);
|
|
94639
|
+
}
|
|
94606
94640
|
const result = {
|
|
94607
94641
|
summary: {
|
|
94608
94642
|
totalChecks: 0,
|