bugpatrol 0.4.2 → 0.4.3
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/bin.js +14 -9
- package/package.json +1 -1
package/dist/bin.js
CHANGED
|
@@ -25264,14 +25264,19 @@ ${formatHttpExchange(capture.exchange)}`);
|
|
|
25264
25264
|
{
|
|
25265
25265
|
name: "file_issue",
|
|
25266
25266
|
description: "File a real user problem with an 80-character title, Markdown body, and one-sentence reason; merge candidates with the same cause. To add candidates to an open or fixed issue, pass its issue_id and a reason; the title, body and severity are then not needed.",
|
|
25267
|
-
inputSchema:
|
|
25268
|
-
|
|
25269
|
-
|
|
25270
|
-
|
|
25271
|
-
|
|
25272
|
-
|
|
25273
|
-
|
|
25274
|
-
|
|
25267
|
+
inputSchema: {
|
|
25268
|
+
...schema3({
|
|
25269
|
+
candidate_ids: { type: "array", items: string3 },
|
|
25270
|
+
issue_id: string3,
|
|
25271
|
+
title: string3,
|
|
25272
|
+
body: string3,
|
|
25273
|
+
severity: { type: "string", enum: ["cosmetic", "minor", "major", "critical"] },
|
|
25274
|
+
reason: string3
|
|
25275
|
+
}, ["candidate_ids", "reason"]),
|
|
25276
|
+
// A new issue needs the title, body and severity; adding to an open issue passes issue_id
|
|
25277
|
+
// instead. State it in the schema, or a model that fills only the required keys omits them.
|
|
25278
|
+
anyOf: [{ required: ["issue_id"] }, { required: ["title", "body", "severity"] }]
|
|
25279
|
+
},
|
|
25275
25280
|
async run(input) {
|
|
25276
25281
|
if (typeof input.reason !== "string" || !input.reason.trim()) {
|
|
25277
25282
|
return { ...response("A one-sentence reason is required"), isError: true };
|
|
@@ -33893,7 +33898,7 @@ legacyEnv(process.env);
|
|
|
33893
33898
|
var root = findProjectRoot(process.cwd());
|
|
33894
33899
|
function version() {
|
|
33895
33900
|
if (true)
|
|
33896
|
-
return "0.4.
|
|
33901
|
+
return "0.4.3";
|
|
33897
33902
|
try {
|
|
33898
33903
|
return JSON.parse(readFileSync11(new URL("../package.json", import.meta.url), "utf8")).version;
|
|
33899
33904
|
} catch {
|