@kody-ade/kody-engine 0.4.252 → 0.4.254

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 +14 -3
  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.252",
18
+ version: "0.4.254",
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",
@@ -7648,6 +7648,15 @@ function groupGoalReports(reports) {
7648
7648
  }
7649
7649
  return grouped;
7650
7650
  }
7651
+ function completeSatisfiedManagedGoal(state) {
7652
+ if (state.state !== "active") return state;
7653
+ const managed = managedGoalFromState(state);
7654
+ if (!managed) return state;
7655
+ if (!managed.destination.evidence.every((evidence) => managed.facts[evidence] === true)) return state;
7656
+ const decision = planManagedGoalTick(managed);
7657
+ if (decision.kind !== "done") return state;
7658
+ return writeManagedGoalToState({ ...state, state: "done" }, managed);
7659
+ }
7651
7660
  function describeMessage(goalId, reports, results) {
7652
7661
  const pieces = [];
7653
7662
  if (reports && reports.length > 0) pieces.push(`report=${reports.length}`);
@@ -7660,6 +7669,7 @@ var init_applyAgentResponsibilityReports = __esm({
7660
7669
  "use strict";
7661
7670
  init_agent_responsibilityReport();
7662
7671
  init_agent_responsibilityResult();
7672
+ init_manager();
7663
7673
  init_state2();
7664
7674
  init_stateStore();
7665
7675
  applyAgentResponsibilityReports = async (ctx, _profile, agentResult) => {
@@ -7687,6 +7697,7 @@ var init_applyAgentResponsibilityReports = __esm({
7687
7697
  next = applyAgentResponsibilityResultToObjectiveState(next, result, evidence);
7688
7698
  }
7689
7699
  }
7700
+ next = completeSatisfiedManagedGoal(next);
7690
7701
  if (serializeGoalState(next) === serializeGoalState(prior)) continue;
7691
7702
  putGoalState(
7692
7703
  ctx.config,
@@ -18120,9 +18131,9 @@ async function runCi(argv) {
18120
18131
  `);
18121
18132
  return 64;
18122
18133
  }
18123
- process.stdout.write(`\u2192 kody: no action for event ${process.env.GITHUB_EVENT_NAME} \u2014 exiting cleanly
18134
+ process.stdout.write(`\u2192 kody: no action for event ${process.env.GITHUB_EVENT_NAME} \u2014 checking scheduled watches
18124
18135
  `);
18125
- return 0;
18136
+ return runScheduledFanOut(cwd, args, { force: false });
18126
18137
  }
18127
18138
  if (!args.issueNumber && !autoFallback) {
18128
18139
  } else {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kody-ade/kody-engine",
3
- "version": "0.4.252",
3
+ "version": "0.4.254",
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",