bugpatrol 0.4.0 → 0.4.2

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 +20 -2
  2. package/package.json +2 -2
package/dist/bin.js CHANGED
@@ -8589,7 +8589,7 @@ var PRESETS = {
8589
8589
  // `-c` parses its value as TOML and keeps a bare URL as a string.
8590
8590
  // `--approve-for-me` is the codex auto mode, in the workspace-write sandbox.
8591
8591
  codex: {
8592
- tools: "codex exec --json --skip-git-repo-check -c mcp_servers.bugpatrol.url={mcpUrl} -",
8592
+ tools: "codex exec --json --skip-git-repo-check -c mcp_servers.bugpatrol.url={mcpUrl} -c mcp_servers.bugpatrol.default_tools_approval_mode=approve -",
8593
8593
  fixer: "codex exec --json --skip-git-repo-check --approve-for-me -"
8594
8594
  },
8595
8595
  // Print mode approves tool calls on its own. The inline config gives kimi
@@ -10529,6 +10529,17 @@ ${task.prompt}`;
10529
10529
  if (parsed.error) {
10530
10530
  return { stop: "error", steps, costUsd: 0, error: parsed.error, summary: summary || text3, finished };
10531
10531
  }
10532
+ const usesMcp = /\{(?:mcp|mcpUrl)\}/.test(this.use.command);
10533
+ if (usesMcp && !finished && task.tools.some((tool) => tool.name === "finish")) {
10534
+ return {
10535
+ stop: "error",
10536
+ steps,
10537
+ costUsd: 0,
10538
+ summary: summary || text3,
10539
+ finished,
10540
+ error: "CLI exited without completing the finish tool. Check tool approvals and agent output."
10541
+ };
10542
+ }
10532
10543
  return {
10533
10544
  stop: "done",
10534
10545
  steps,
@@ -32933,6 +32944,13 @@ Example: Sign in with the email {{TEST_EMAIL}} and the password {{TEST_PASSWORD}
32933
32944
 
32934
32945
  <!-- The flows that matter most. -->
32935
32946
 
32947
+ ## What to check, UX first
32948
+
32949
+ <!-- A UX defect is a bug. Tell the explorer to watch for the things a human tester notices:
32950
+ alignment and truncation, empty and error states, status colours matching their wording, and
32951
+ discoverable navigation. For terminal apps, wide characters and narrow windows are the common
32952
+ breakages; see docs/detection-rubric.md. -->
32953
+
32936
32954
  ## Never do these things
32937
32955
 
32938
32956
  - Do not delete data that you did not make.
@@ -33875,7 +33893,7 @@ legacyEnv(process.env);
33875
33893
  var root = findProjectRoot(process.cwd());
33876
33894
  function version() {
33877
33895
  if (true)
33878
- return "0.4.0";
33896
+ return "0.4.2";
33879
33897
  try {
33880
33898
  return JSON.parse(readFileSync11(new URL("../package.json", import.meta.url), "utf8")).version;
33881
33899
  } catch {
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "bugpatrol",
3
- "version": "0.4.0",
3
+ "version": "0.4.2",
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"