Skip to content

Commit ed04f91

Browse files
lex00claude
andcommitted
refactor(reconcile): consume @intentius/chant/reconcile primitive (#20)
Swaps the vendored provider-agnostic reconcile core for the shared @intentius/chant/reconcile subpath (chant 0.9.0, chant#501/#502). src/reconcile/core.ts is now a thin re-export, so the in-repo import surface (diff.ts / guardrails.ts / index.ts) is unchanged. Bumps @intentius/chant + @intentius/chant-lexicon-github to ^0.9.0. core.test.ts is retained as an integration check that the consumed primitive behaves as warden expects. 468 tests green; action bundle rebuilt (primitive inlined). Closes #20. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
1 parent 61cd864 commit ed04f91

4 files changed

Lines changed: 51 additions & 357 deletions

File tree

action/index.mjs

Lines changed: 30 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ var init_app_client = __esm({
270270
}
271271
});
272272

273-
// src/reconcile/core.ts
273+
// node_modules/@intentius/chant/src/reconcile.ts
274274
function deepEqual(a, b) {
275275
if (a === b) return true;
276276
if (a === null || b === null) return false;
@@ -413,9 +413,16 @@ function removalDeltaCap(changeSet, opts = {}) {
413413
}
414414
return null;
415415
}
416+
var init_reconcile = __esm({
417+
"node_modules/@intentius/chant/src/reconcile.ts"() {
418+
}
419+
});
420+
421+
// src/reconcile/core.ts
416422
var init_core = __esm({
417423
"src/reconcile/core.ts"() {
418424
"use strict";
425+
init_reconcile();
419426
}
420427
});
421428

@@ -16450,6 +16457,7 @@ function setProvenance(entity, prov) {
1645016457
if (existing) {
1645116458
existing.sourceFile ??= prov.sourceFile;
1645216459
existing.composite ??= prov.composite;
16460+
existing.compositeInstance ??= prov.compositeInstance;
1645316461
return;
1645416462
}
1645516463
Object.defineProperty(entity, PROVENANCE, {
@@ -16876,7 +16884,7 @@ function collectEntities(modules) {
1687616884
"resolution"
1687716885
);
1687816886
}
16879-
setProvenance(entity, { sourceFile: file2 });
16887+
setProvenance(entity, { sourceFile: file2, compositeInstance: indexedName });
1688016888
entities.set(expandedName, entity);
1688116889
}
1688216890
}
@@ -16891,7 +16899,7 @@ function collectEntities(modules) {
1689116899
"resolution"
1689216900
);
1689316901
}
16894-
setProvenance(entity, { sourceFile: file2 });
16902+
setProvenance(entity, { sourceFile: file2, compositeInstance: name });
1689516903
entities.set(expandedName, entity);
1689616904
}
1689716905
} else if (isLexiconOutput(value)) {
@@ -17172,6 +17180,23 @@ var init_build = __esm({
1717217180
}
1717317181
});
1717417182

17183+
// node_modules/@intentius/chant/src/graph-ir.ts
17184+
var init_graph_ir = __esm({
17185+
"node_modules/@intentius/chant/src/graph-ir.ts"() {
17186+
init_attrref();
17187+
init_declarable();
17188+
init_lexicon_output();
17189+
init_provenance();
17190+
init_intrinsic();
17191+
}
17192+
});
17193+
17194+
// node_modules/@intentius/chant/src/graph-detail.ts
17195+
var init_graph_detail = __esm({
17196+
"node_modules/@intentius/chant/src/graph-detail.ts"() {
17197+
}
17198+
});
17199+
1717517200
// node_modules/@intentius/chant/src/detectLexicon.ts
1717617201
import { readFile } from "node:fs/promises";
1717717202
async function detectLexicons(files) {
@@ -228728,6 +228753,8 @@ var init_src = __esm({
228728228753
init_discovery();
228729228754
init_cache();
228730228755
init_build();
228756+
init_graph_ir();
228757+
init_graph_detail();
228731228758
init_detectLexicon();
228732228759
init_parser();
228733228760
init_rule();

package-lock.json

Lines changed: 9 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@
2121
"prepublishOnly": "npm run build"
2222
},
2323
"dependencies": {
24-
"@intentius/chant": "^0.8.2",
25-
"@intentius/chant-lexicon-github": "^0.8.2"
24+
"@intentius/chant": "^0.9.0",
25+
"@intentius/chant-lexicon-github": "^0.9.0"
2626
},
2727
"devDependencies": {
2828
"@types/node": "^22.0.0",

0 commit comments

Comments
 (0)