@quikit/quikpilot-runner 9.3.0-rc.12 → 9.3.0-rc.13

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/README.md CHANGED
@@ -150,6 +150,15 @@ it, the callback carries it as `unsuppliedInputs` (at most 10 functions, 5 names
150
150
  noticed" as a check. This is the shape of a change whose new tests pass only because they hand the function the field themselves. It can be
151
151
  wrong (a field that arrives from a database row or a request), so it only warns and never blocks. TypeScript is not covered (QUIKTR-1547).
152
152
 
153
+ **9.3.0-rc.13 — a run that finds no file to change now fails (QUIKTR-1557).** When targeting answers "no file" for a run that has an approved
154
+ issue (every real run: dispatch attaches one after Gate 1), the runner no longer writes the Phase 0 marker file, runs setup and tests, pushes a
155
+ branch and reports success. The run ends at once, before anything is written, installed or pushed, with the reason
156
+ `QuikPilot found no file to change for this request — <the AI's own reason>` (`no reason was given.` when it gave none; credentials scrubbed,
157
+ cut at 1,000 characters like every reason). The callback is `failed`, carries that reason in `unresolved`, and still carries the targeting
158
+ record (outcome `NO_TARGET` and the AI's reason), so no pull request is opened and the work item is free for a new run. A run with NO approved
159
+ issue (the development skeleton) keeps the old marker path unchanged. QuikProjects shows what to change in the request; nothing in the
160
+ workflow file changes.
161
+
153
162
  **9.1.0 — the code-writing step sees the files the changed file imports.** For every existing file a run changes (code or
154
163
  test), the runner now reads that file's own imports (JavaScript and TypeScript, one hop, never what those files import)
155
164
  and sends the repository files they point to as extra context. They come after the files targeting named and never in
package/dist/index.js CHANGED
@@ -14048,7 +14048,7 @@ var FAILURE_ARTIFACT_DIR = "quikpilot-failure";
14048
14048
  var REPORT_COPY = "final-test-report.xml";
14049
14049
  var MAX_REPORT_BYTES = 5 * 1024 * 1024;
14050
14050
  var MAX_FILES = 200;
14051
- var RUNNER_VERSION = true ? "9.3.0-rc.12" : "dev";
14051
+ var RUNNER_VERSION = true ? "9.3.0-rc.13" : "dev";
14052
14052
  function safeDestination(base, repoPath) {
14053
14053
  if (!repoPath || (0, import_node_path12.isAbsolute)(repoPath)) return null;
14054
14054
  const destination = (0, import_node_path12.resolve)(base, repoPath);
@@ -14844,6 +14844,9 @@ async function run(env2) {
14844
14844
  }
14845
14845
  }
14846
14846
  if (targeting.outcome === "NO_TARGET") {
14847
+ if (packet.issueKey !== null) {
14848
+ throw new Error(`QuikPilot found no file to change for this request \u2014 ${targeting.reason?.trim() || "no reason was given."}`);
14849
+ }
14847
14850
  writePhase0Marker(env2.runId);
14848
14851
  runCommand(packet.commands.setup, "Setup");
14849
14852
  runCommand(packet.commands.lint, "Lint");