bugpatrol 0.4.1 → 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.
Files changed (2) hide show
  1. package/dist/bin.js +14 -9
  2. package/package.json +2 -2
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: schema3({
25268
- candidate_ids: { type: "array", items: string3 },
25269
- issue_id: string3,
25270
- title: string3,
25271
- body: string3,
25272
- severity: { type: "string", enum: ["cosmetic", "minor", "major", "critical"] },
25273
- reason: string3
25274
- }, ["candidate_ids", "reason"]),
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.1";
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 {
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "bugpatrol",
3
- "version": "0.4.1",
3
+ "version": "0.4.3",
4
4
  "description": "AI agents that explore your app, find bugs, and fix them.",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",
7
7
  "bin": {
8
- "bugpatrol": "./dist/bin.js"
8
+ "bugpatrol": "dist/bin.js"
9
9
  },
10
10
  "engines": {
11
11
  "node": ">=22"