@oss-autopilot/core 3.12.0 → 3.13.0
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-registry.js +11 -11
- package/dist/cli.bundle.cjs +51 -51
- package/dist/commands/list-mark-done.d.ts +9 -1
- package/dist/commands/list-mark-done.js +14 -1
- package/dist/commands/search.d.ts +8 -0
- package/dist/commands/search.js +10 -0
- package/dist/formatters/json.d.ts +10 -1
- package/dist/formatters/json.js +7 -1
- package/package.json +1 -1
package/dist/cli-registry.js
CHANGED
|
@@ -332,6 +332,14 @@ export const commands = [
|
|
|
332
332
|
console.log(`[${recommendation.toUpperCase()}] ${issue.repo}#${issue.number}: ${issue.title}`);
|
|
333
333
|
console.log(` URL: ${issue.url}`);
|
|
334
334
|
console.log(` Viability: ${viabilityScore}/100`);
|
|
335
|
+
// #1244: say WHY a result surfaced so the user can calibrate
|
|
336
|
+
// trust in the strategy bias — and see the counterweight work.
|
|
337
|
+
if (candidate.boostReasons && candidate.boostReasons.length > 0) {
|
|
338
|
+
console.log(` Why surfaced: ${candidate.boostReasons.join(', ')}`);
|
|
339
|
+
}
|
|
340
|
+
if (candidate.diversitySlot) {
|
|
341
|
+
console.log(' Diversity slot: outside your usual languages/repos');
|
|
342
|
+
}
|
|
335
343
|
if (reasonsToApprove.length > 0)
|
|
336
344
|
console.log(` Approve: ${reasonsToApprove.join(', ')}`);
|
|
337
345
|
if (reasonsToSkip.length > 0)
|
|
@@ -609,17 +617,9 @@ export const commands = [
|
|
|
609
617
|
prStatus: options.prStatus,
|
|
610
618
|
listPath: options.listPath,
|
|
611
619
|
});
|
|
612
|
-
//
|
|
613
|
-
//
|
|
614
|
-
//
|
|
615
|
-
// library consumers, but as a CLI command "I asked you to mark X
|
|
616
|
-
// and you couldn't find X" is a failure the caller must see.
|
|
617
|
-
// The "already marked done" case stays as a success-shape return
|
|
618
|
-
// (it's idempotent — the caller's intent was achieved).
|
|
619
|
-
if (!result.marked && result.reason === 'issue URL not found in the list') {
|
|
620
|
-
throw new Error(`Issue URL not found in ${result.filePath}: ${result.url}. ` +
|
|
621
|
-
`Verify --list-path and the issue URL.`);
|
|
622
|
-
}
|
|
620
|
+
// Not-found now throws ValidationError inside the command (#1406),
|
|
621
|
+
// so library and CLI consumers see the same failure — no CLI-layer
|
|
622
|
+
// re-throw needed (mirrors list-move-tier after #1355).
|
|
623
623
|
return result;
|
|
624
624
|
}, (data) => {
|
|
625
625
|
if (data.marked) {
|