@kody-ade/kody-engine 0.4.303 → 0.4.304

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/kody.js +16 -2
  2. package/package.json +1 -1
package/dist/bin/kody.js CHANGED
@@ -15,7 +15,7 @@ var init_package = __esm({
15
15
  "package.json"() {
16
16
  package_default = {
17
17
  name: "@kody-ade/kody-engine",
18
- version: "0.4.303",
18
+ version: "0.4.304",
19
19
  description: "kody \u2014 autonomous development engine. Single-session Claude Code agent behind a generic executor + declarative executable profiles.",
20
20
  license: "MIT",
21
21
  type: "module",
@@ -10969,7 +10969,7 @@ QA_GOAL_TARGETED=(no manifest issue) (id: ${goalId}, verdict: ${verdict})
10969
10969
  });
10970
10970
  ctx.output.exitCode = verdict === "FAIL" ? 1 : 0;
10971
10971
  }
10972
- var MANIFEST_LABEL, MANIFEST_TITLE, MANIFEST_START, MANIFEST_END, FINDING_LABEL, REPORT_JSON_OPEN, REPORT_JSON_CLOSE, SEVERITY_COLORS, createQaGoal;
10972
+ var MANIFEST_LABEL, MANIFEST_TITLE, MANIFEST_START, MANIFEST_END, FINDING_LABEL, QA_REPORT_LABEL, REPORT_JSON_OPEN, REPORT_JSON_CLOSE, SEVERITY_COLORS, createQaGoal;
10973
10973
  var init_createQaGoal = __esm({
10974
10974
  "src/scripts/createQaGoal.ts"() {
10975
10975
  "use strict";
@@ -10982,6 +10982,7 @@ var init_createQaGoal = __esm({
10982
10982
  MANIFEST_START = "<!-- kody-goals-start -->";
10983
10983
  MANIFEST_END = "<!-- kody-goals-end -->";
10984
10984
  FINDING_LABEL = "kody:qa-finding";
10985
+ QA_REPORT_LABEL = "kody:qa-report";
10985
10986
  REPORT_JSON_OPEN = "<!-- KODY_QA_REPORT_JSON";
10986
10987
  REPORT_JSON_CLOSE = "-->";
10987
10988
  SEVERITY_COLORS = {
@@ -11021,6 +11022,11 @@ var init_createQaGoal = __esm({
11021
11022
  ctx.data.action = failedAction2(ctx.output.reason);
11022
11023
  return;
11023
11024
  }
11025
+ try {
11026
+ ensureLabel(QA_REPORT_LABEL, "8b5cf6", "kody: QA report", ctx.cwd);
11027
+ gh(["issue", "edit", String(existingIssue), "--add-label", QA_REPORT_LABEL], { cwd: ctx.cwd });
11028
+ } catch {
11029
+ }
11024
11030
  process.stdout.write(
11025
11031
  `
11026
11032
  QA_REPORT_POSTED=https://github.com/${ctx.config.github.owner}/${ctx.config.github.repo}/issues/${existingIssue} (verdict: ${verdict})
@@ -14163,6 +14169,13 @@ function ensureLabel2(cwd) {
14163
14169
  return false;
14164
14170
  }
14165
14171
  }
14172
+ function markIssueWithReportLabel(issue, cwd) {
14173
+ if (!ensureLabel2(cwd)) return;
14174
+ try {
14175
+ gh(["issue", "edit", String(issue), "--add-label", QA_LABEL], { cwd });
14176
+ } catch {
14177
+ }
14178
+ }
14166
14179
  function createQaIssue(title, body, hasLabel, cwd) {
14167
14180
  const args = ["issue", "create", "--title", title, "--body-file", "-"];
14168
14181
  if (hasLabel) args.push("--label", QA_LABEL);
@@ -14204,6 +14217,7 @@ var init_openQaIssue = __esm({
14204
14217
  if (typeof existingIssue === "number" && Number.isFinite(existingIssue) && existingIssue > 0) {
14205
14218
  try {
14206
14219
  postIssueComment(existingIssue, reportBody, ctx.cwd);
14220
+ markIssueWithReportLabel(existingIssue, ctx.cwd);
14207
14221
  } catch (err) {
14208
14222
  const msg = err instanceof Error ? err.message : String(err);
14209
14223
  ctx.output.exitCode = 4;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kody-ade/kody-engine",
3
- "version": "0.4.303",
3
+ "version": "0.4.304",
4
4
  "description": "kody — autonomous development engine. Single-session Claude Code agent behind a generic executor + declarative executable profiles.",
5
5
  "license": "MIT",
6
6
  "type": "module",