@kody-ade/kody-engine 0.4.257 → 0.4.258

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 +7 -4
  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.257",
18
+ version: "0.4.258",
19
19
  description: "kody \u2014 autonomous development engine. Single-session Claude Code agent behind a generic executor + declarative agentAction profiles.",
20
20
  license: "MIT",
21
21
  type: "module",
@@ -8090,15 +8090,17 @@ function agentResponsibilityReportToEvidence(report) {
8090
8090
  };
8091
8091
  }
8092
8092
  function agentResponsibilityResultToEvidence(result, fallbackGoalId, explicitEvidence) {
8093
- const targetId = result.target?.type === "goal" ? result.target.id : fallbackGoalId;
8093
+ if (result.target && result.target.type !== "goal") return null;
8094
+ const targetId = result.target?.id ?? fallbackGoalId;
8094
8095
  if (!targetId) return null;
8096
+ const hasEvidenceValues = Object.keys(result.evidence ?? {}).length > 0;
8095
8097
  return {
8096
8098
  version: 1,
8097
8099
  target: { type: "goal", id: targetId },
8098
8100
  status: result.status,
8099
8101
  summary: result.summary,
8100
8102
  evidence: result.evidence,
8101
- explicitEvidence,
8103
+ explicitEvidence: hasEvidenceValues ? void 0 : explicitEvidence,
8102
8104
  facts: result.facts,
8103
8105
  artifacts: result.artifacts,
8104
8106
  missingEvidence: result.missingEvidence,
@@ -8138,7 +8140,8 @@ function applyAgentResponsibilityEvidenceToGoalState(state, evidence) {
8138
8140
  nextFacts[key] = value;
8139
8141
  }
8140
8142
  const pending = typeof nextFacts.pendingEvidence === "string" ? nextFacts.pendingEvidence : "";
8141
- const statusEvidence = evidence.explicitEvidence || pending;
8143
+ const hasEvidenceValues = Object.keys(evidence.evidence ?? {}).length > 0;
8144
+ const statusEvidence = evidence.explicitEvidence || (hasEvidenceValues ? "" : pending);
8142
8145
  const hasPendingEvidenceValue = pending ? Object.hasOwn(evidence.evidence ?? {}, pending) : false;
8143
8146
  const terminalStatus = evidence.status === "pass" || evidence.status === "fail" || evidence.status === "blocked";
8144
8147
  if (statusEvidence && !Object.hasOwn(evidence.evidence ?? {}, statusEvidence)) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kody-ade/kody-engine",
3
- "version": "0.4.257",
3
+ "version": "0.4.258",
4
4
  "description": "kody — autonomous development engine. Single-session Claude Code agent behind a generic executor + declarative agentAction profiles.",
5
5
  "license": "MIT",
6
6
  "type": "module",