@appchy/jarvis 0.1.91 → 0.1.92

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/dist/data/mcp.mjs CHANGED
@@ -1651,16 +1651,25 @@ function planScope(ctx, req) {
1651
1651
  anticipated,
1652
1652
  editCodeNodes,
1653
1653
  governance,
1654
- obligations: toObligations(governance, anticipated, testsCovering),
1654
+ obligations: toObligations(governance, anticipated, testsCovering, ctx.config.evidence),
1655
1655
  references,
1656
1656
  testsCovering,
1657
1657
  blastRadius,
1658
1658
  lowConfidence
1659
1659
  };
1660
1660
  }
1661
- function toObligations(governance, existing = [], keep = []) {
1661
+ function toObligations(governance, existing = [], keep = [], evidenceRelations = []) {
1662
+ const isEvidence = new Set(evidenceRelations);
1662
1663
  const rules = governance.map((g) => {
1663
1664
  const full = g.body !== void 0;
1665
+ if (g.relations.some((r) => isEvidence.has(r))) {
1666
+ return {
1667
+ type: "keep",
1668
+ id: g.id,
1669
+ full,
1670
+ statement: `This code is what keeps it true today. Say how the change leaves it true.`
1671
+ };
1672
+ }
1664
1673
  return {
1665
1674
  type: "governance",
1666
1675
  id: g.id,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@appchy/jarvis",
3
- "version": "0.1.91",
3
+ "version": "0.1.92",
4
4
  "description": "Jarvis — local AI coding assistant CLI",
5
5
  "private": false,
6
6
  "type": "module",
@@ -61,12 +61,12 @@
61
61
  "@jarvis/board": "0.1.0",
62
62
  "@jarvis/errors": "1.0.0",
63
63
  "@jarvis/logger": "1.0.0",
64
- "@jarvis/rpc": "1.0.0",
65
64
  "@jarvis/types": "1.0.0",
66
- "@jarvis/typescript-config": "1.0.0",
65
+ "@jarvis/rpc": "1.0.0",
66
+ "@jarvis/data": "0.1.0",
67
67
  "@jarvis/ui": "0.1.0",
68
68
  "@jarvis/vitest-config": "1.0.0",
69
- "@jarvis/data": "0.1.0"
69
+ "@jarvis/typescript-config": "1.0.0"
70
70
  },
71
71
  "scripts": {
72
72
  "dev": "tsx watch src/bin.ts start --foreground",