@mrciphersmith/keryx 0.2.132 → 0.2.133

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/cli.js +13 -9
  2. package/package.json +1 -1
package/dist/cli.js CHANGED
@@ -22216,8 +22216,12 @@ import { existsSync as existsSync14 } from "fs";
22216
22216
  import path89 from "path";
22217
22217
  async function gdgraphCommand(args) {
22218
22218
  if (process.env.KERYX_GDGRAPH_LOCAL !== "1") {
22219
- const delegated = await delegateToLocalRunner(args);
22220
- if (delegated) {
22219
+ const delegation = await delegateToLocalRunner(args);
22220
+ if (delegation.delegated) {
22221
+ if (args[0] === "build" && delegation.exitCode === 0) {
22222
+ await Promise.resolve().then(() => init_provenance());
22223
+ await recordProvenance(process.cwd(), "gdgraph", new Date().toISOString());
22224
+ }
22221
22225
  return;
22222
22226
  }
22223
22227
  }
@@ -22825,15 +22829,15 @@ async function changedFiles() {
22825
22829
  async function delegateToLocalRunner(args) {
22826
22830
  const localRunner = path89.join(process.cwd(), ".metaproject", "core", "gdgraph", "cli.ts");
22827
22831
  if (!existsSync14(localRunner)) {
22828
- return false;
22832
+ return { delegated: false };
22829
22833
  }
22830
22834
  const command = args[0];
22831
22835
  const treesitterOn = command === "build" && await isCapabilityEnabled(process.cwd(), "gdgraph.treesitter");
22832
22836
  const delegatable = command === "build" && !treesitterOn || command === "query" && !args.includes("--json") && (args[1] === "cycles" || args[1] === "orphans");
22833
22837
  if (!delegatable) {
22834
- return false;
22838
+ return { delegated: false };
22835
22839
  }
22836
- await new Promise((resolve, reject) => {
22840
+ const exitCode = await new Promise((resolve, reject) => {
22837
22841
  const child = spawn4(process.execPath, [localRunner, ...args], {
22838
22842
  cwd: process.cwd(),
22839
22843
  stdio: "inherit",
@@ -22844,11 +22848,11 @@ async function delegateToLocalRunner(args) {
22844
22848
  });
22845
22849
  child.on("error", reject);
22846
22850
  child.on("close", (code) => {
22847
- process.exitCode = code ?? 1;
22848
- resolve();
22851
+ resolve(code ?? 1);
22849
22852
  });
22850
22853
  });
22851
- return true;
22854
+ process.exitCode = exitCode;
22855
+ return { delegated: true, exitCode };
22852
22856
  }
22853
22857
  function printHelp3() {
22854
22858
  console.log(`keryx gdgraph
@@ -51129,7 +51133,7 @@ import path47 from "path";
51129
51133
  // package.json
51130
51134
  var package_default = {
51131
51135
  name: "@mrciphersmith/keryx",
51132
- version: "0.2.132",
51136
+ version: "0.2.133",
51133
51137
  description: "Version-controlled project context for AI coding agents: code graph, architecture wiki, project memory, relevant tests, quality signals, and task flows.",
51134
51138
  private: false,
51135
51139
  publishConfig: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mrciphersmith/keryx",
3
- "version": "0.2.132",
3
+ "version": "0.2.133",
4
4
  "description": "Version-controlled project context for AI coding agents: code graph, architecture wiki, project memory, relevant tests, quality signals, and task flows.",
5
5
  "private": false,
6
6
  "publishConfig": {