kodingo-cli 1.0.32 → 1.0.33

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.
@@ -60,13 +60,22 @@ class CloudEventPort {
60
60
  return;
61
61
  }
62
62
  }
63
- // No existing proposed/ignored record — insert new
63
+ // No existing proposed/ignored record — validate invariants via core then insert
64
+ try {
65
+ (0, kodingo_core_1.enforceDecisionInvariants)(decision, _context);
66
+ }
67
+ catch (e) {
68
+ console.warn(`[core] Decision invariant failed: ${e.message} — skipping`);
69
+ return;
70
+ }
71
+ // Apply lifecycle — produces events and new memory state
72
+ const outcome = (0, kodingo_core_1.applyDecisionLifecycle)(decision, _context);
64
73
  const input = {
65
74
  type: "decision",
66
75
  content,
67
76
  repoPath: this.repoPath,
68
77
  status: "proposed",
69
- confidence: 0.3,
78
+ confidence: decision.confidence ?? 0.3,
70
79
  externalId,
71
80
  tags: ["signal:git", "kind:decision"],
72
81
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kodingo-cli",
3
- "version": "1.0.32",
3
+ "version": "1.0.33",
4
4
  "description": "Kodingo CLI",
5
5
  "license": "MIT",
6
6
  "private": false,