@cleocode/cleo 2026.5.58 → 2026.5.59
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 +6 -113
- package/dist/cli/index.js.map +3 -3
- package/package.json +10 -10
package/dist/cli/index.js
CHANGED
|
@@ -34549,106 +34549,6 @@ var init_briefing = __esm({
|
|
|
34549
34549
|
}
|
|
34550
34550
|
});
|
|
34551
34551
|
|
|
34552
|
-
// packages/cleo/src/cli/commands/bug.ts
|
|
34553
|
-
var bug_exports = {};
|
|
34554
|
-
__export(bug_exports, {
|
|
34555
|
-
bugCommand: () => bugCommand
|
|
34556
|
-
});
|
|
34557
|
-
import { appendSignedSeverityAttestation as appendSignedSeverityAttestation2 } from "@cleocode/core";
|
|
34558
|
-
var SEVERITY_MAP, VALID_SEVERITIES, bugCommand;
|
|
34559
|
-
var init_bug = __esm({
|
|
34560
|
-
"packages/cleo/src/cli/commands/bug.ts"() {
|
|
34561
|
-
"use strict";
|
|
34562
|
-
init_dist();
|
|
34563
|
-
init_cli();
|
|
34564
|
-
init_renderers();
|
|
34565
|
-
SEVERITY_MAP = {
|
|
34566
|
-
P0: { priority: "critical", labels: ["bug", "p0"] },
|
|
34567
|
-
P1: { priority: "high", labels: ["bug", "p1"] },
|
|
34568
|
-
P2: { priority: "medium", labels: ["bug", "p2"] },
|
|
34569
|
-
P3: { priority: "low", labels: ["bug", "p3"] }
|
|
34570
|
-
};
|
|
34571
|
-
VALID_SEVERITIES = Object.keys(SEVERITY_MAP);
|
|
34572
|
-
bugCommand = defineCommand({
|
|
34573
|
-
meta: {
|
|
34574
|
-
name: "bug",
|
|
34575
|
-
description: "Create a bug report task with severity mapping (requires active session)"
|
|
34576
|
-
},
|
|
34577
|
-
args: {
|
|
34578
|
-
title: {
|
|
34579
|
-
type: "positional",
|
|
34580
|
-
description: "Bug report title",
|
|
34581
|
-
required: true
|
|
34582
|
-
},
|
|
34583
|
-
severity: {
|
|
34584
|
-
type: "string",
|
|
34585
|
-
description: "Severity level (P0, P1, P2, P3)",
|
|
34586
|
-
alias: "s",
|
|
34587
|
-
default: "P2"
|
|
34588
|
-
},
|
|
34589
|
-
epic: {
|
|
34590
|
-
type: "string",
|
|
34591
|
-
description: "Epic ID to link as parent (optional)",
|
|
34592
|
-
alias: "e"
|
|
34593
|
-
},
|
|
34594
|
-
description: {
|
|
34595
|
-
type: "string",
|
|
34596
|
-
description: "Bug description",
|
|
34597
|
-
alias: "d"
|
|
34598
|
-
},
|
|
34599
|
-
"dry-run": {
|
|
34600
|
-
type: "boolean",
|
|
34601
|
-
description: "Show what would be created without making changes",
|
|
34602
|
-
default: false
|
|
34603
|
-
}
|
|
34604
|
-
},
|
|
34605
|
-
async run({ args }) {
|
|
34606
|
-
const severity = args.severity ?? "P2";
|
|
34607
|
-
if (!VALID_SEVERITIES.includes(severity)) {
|
|
34608
|
-
cliError(
|
|
34609
|
-
`Invalid severity "${severity}". Must be one of: ${VALID_SEVERITIES.join(", ")}`,
|
|
34610
|
-
1,
|
|
34611
|
-
{ name: "E_VALIDATION", fix: `Use one of: ${VALID_SEVERITIES.join(", ")}` }
|
|
34612
|
-
);
|
|
34613
|
-
process.exit(1);
|
|
34614
|
-
}
|
|
34615
|
-
const mapping = SEVERITY_MAP[severity];
|
|
34616
|
-
const params = {
|
|
34617
|
-
title: args.title,
|
|
34618
|
-
type: "task",
|
|
34619
|
-
priority: mapping.priority,
|
|
34620
|
-
labels: mapping.labels,
|
|
34621
|
-
origin: "bug-report",
|
|
34622
|
-
description: args.description ?? args.title
|
|
34623
|
-
};
|
|
34624
|
-
if (args.epic !== void 0) {
|
|
34625
|
-
params["parent"] = args.epic;
|
|
34626
|
-
}
|
|
34627
|
-
if (args["dry-run"]) {
|
|
34628
|
-
params["dryRun"] = true;
|
|
34629
|
-
}
|
|
34630
|
-
if (!args["dry-run"]) {
|
|
34631
|
-
try {
|
|
34632
|
-
await appendSignedSeverityAttestation2({
|
|
34633
|
-
timestamp: (/* @__PURE__ */ new Date()).toISOString(),
|
|
34634
|
-
title: args.title,
|
|
34635
|
-
severity,
|
|
34636
|
-
...args.epic !== void 0 ? { epic: args.epic } : {}
|
|
34637
|
-
});
|
|
34638
|
-
} catch (err) {
|
|
34639
|
-
const code = err.code;
|
|
34640
|
-
if (code === "E_OWNER_ONLY") {
|
|
34641
|
-
cliError(err.message, 72, { name: "E_OWNER_ONLY" });
|
|
34642
|
-
process.exit(72);
|
|
34643
|
-
}
|
|
34644
|
-
}
|
|
34645
|
-
}
|
|
34646
|
-
await dispatchFromCli("mutate", "tasks", "add", params, { command: "bug" });
|
|
34647
|
-
}
|
|
34648
|
-
});
|
|
34649
|
-
}
|
|
34650
|
-
});
|
|
34651
|
-
|
|
34652
34552
|
// packages/cleo/src/cli/commands/caamp.ts
|
|
34653
34553
|
var caamp_exports = {};
|
|
34654
34554
|
__export(caamp_exports, {
|
|
@@ -41411,7 +41311,7 @@ async function handleIssueType(issueType, opts) {
|
|
|
41411
41311
|
}
|
|
41412
41312
|
cliOutput(result, { command: "issue", operation: `tools.issue.add.${issueType}` });
|
|
41413
41313
|
}
|
|
41414
|
-
var CLEO_REPO,
|
|
41314
|
+
var CLEO_REPO, bugCommand, featureCommand, helpCommand, diagnosticsCommand2, issueCommand;
|
|
41415
41315
|
var init_issue = __esm({
|
|
41416
41316
|
"packages/cleo/src/cli/commands/issue.ts"() {
|
|
41417
41317
|
"use strict";
|
|
@@ -41419,7 +41319,7 @@ var init_issue = __esm({
|
|
|
41419
41319
|
init_cli();
|
|
41420
41320
|
init_renderers();
|
|
41421
41321
|
CLEO_REPO = BUILD_CONFIG.repository.fullName;
|
|
41422
|
-
|
|
41322
|
+
bugCommand = defineCommand({
|
|
41423
41323
|
meta: { name: "bug", description: "File a bug report" },
|
|
41424
41324
|
args: {
|
|
41425
41325
|
title: { type: "string", description: "Issue title", required: true },
|
|
@@ -41497,7 +41397,7 @@ var init_issue = __esm({
|
|
|
41497
41397
|
description: "File bug reports, feature requests, or questions to CLEO GitHub repo"
|
|
41498
41398
|
},
|
|
41499
41399
|
subCommands: {
|
|
41500
|
-
bug:
|
|
41400
|
+
bug: bugCommand,
|
|
41501
41401
|
feature: featureCommand,
|
|
41502
41402
|
help: helpCommand,
|
|
41503
41403
|
diagnostics: diagnosticsCommand2
|
|
@@ -54945,7 +54845,7 @@ var update_exports = {};
|
|
|
54945
54845
|
__export(update_exports, {
|
|
54946
54846
|
updateCommand: () => updateCommand2
|
|
54947
54847
|
});
|
|
54948
|
-
import { appendSignedSeverityAttestation as
|
|
54848
|
+
import { appendSignedSeverityAttestation as appendSignedSeverityAttestation2 } from "@cleocode/core";
|
|
54949
54849
|
var updateCommand2;
|
|
54950
54850
|
var init_update = __esm({
|
|
54951
54851
|
"packages/cleo/src/cli/commands/update.ts"() {
|
|
@@ -55175,7 +55075,7 @@ var init_update = __esm({
|
|
|
55175
55075
|
if (args["depends-waiver"] !== void 0) params["dependsWaiver"] = args["depends-waiver"];
|
|
55176
55076
|
if (args.severity !== void 0) {
|
|
55177
55077
|
try {
|
|
55178
|
-
await
|
|
55078
|
+
await appendSignedSeverityAttestation2({
|
|
55179
55079
|
timestamp: (/* @__PURE__ */ new Date()).toISOString(),
|
|
55180
55080
|
title: String(args.taskId),
|
|
55181
55081
|
severity: args.severity,
|
|
@@ -55941,12 +55841,6 @@ var COMMAND_MANIFEST = [
|
|
|
55941
55841
|
description: "Session resume context: last handoff, current task, next tasks, bugs, blockers, epics, and memory. Use at session start to restore context.",
|
|
55942
55842
|
load: async () => (await Promise.resolve().then(() => (init_briefing(), briefing_exports))).briefingCommand
|
|
55943
55843
|
},
|
|
55944
|
-
{
|
|
55945
|
-
exportName: "bugCommand",
|
|
55946
|
-
name: "bug",
|
|
55947
|
-
description: "Create a bug report task with severity mapping (requires active session)",
|
|
55948
|
-
load: async () => (await Promise.resolve().then(() => (init_bug(), bug_exports))).bugCommand
|
|
55949
|
-
},
|
|
55950
55844
|
{
|
|
55951
55845
|
exportName: "caampCommand",
|
|
55952
55846
|
name: "caamp",
|
|
@@ -56590,8 +56484,7 @@ var COMMAND_GROUPS = [
|
|
|
56590
56484
|
"stop",
|
|
56591
56485
|
"current",
|
|
56592
56486
|
"next",
|
|
56593
|
-
"exists"
|
|
56594
|
-
"bug"
|
|
56487
|
+
"exists"
|
|
56595
56488
|
]
|
|
56596
56489
|
},
|
|
56597
56490
|
{
|