@mrciphersmith/keryx 0.3.9 → 0.3.10

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 +14 -2
  2. package/package.json +1 -1
package/dist/cli.js CHANGED
@@ -17628,7 +17628,7 @@ var package_default;
17628
17628
  var init_package = __esm(() => {
17629
17629
  package_default = {
17630
17630
  name: "@mrciphersmith/keryx",
17631
- version: "0.3.9",
17631
+ version: "0.3.10",
17632
17632
  description: "Version-controlled project context for AI coding agents: code graph, architecture wiki, project memory, relevant tests, quality signals, and task flows.",
17633
17633
  private: false,
17634
17634
  publishConfig: {
@@ -74043,10 +74043,13 @@ ${blockEnd}`;
74043
74043
  const metaprojectIgnoreLines = new Set(metaprojectIgnoreBlock.split(`
74044
74044
  `));
74045
74045
  const withoutExistingManagedBlock = existing.replace(blockPattern, "");
74046
+ const keepBlanketIgnore = !await metaprojectIsTracked(projectRoot);
74046
74047
  const withoutLegacyMetaprojectIgnore = withoutExistingManagedBlock.split(`
74047
74048
  `).filter((line) => {
74048
74049
  const trimmed = line.trim();
74049
- return trimmed !== ".metaproject/" && !metaprojectIgnoreLines.has(trimmed);
74050
+ if (trimmed === ".metaproject/" || trimmed === ".metaproject")
74051
+ return keepBlanketIgnore;
74052
+ return !metaprojectIgnoreLines.has(trimmed);
74050
74053
  }).join(`
74051
74054
  `);
74052
74055
  const next = `${withoutLegacyMetaprojectIgnore.trimEnd()}
@@ -74057,6 +74060,15 @@ ${managedBlock}
74057
74060
  await writeContained(projectRoot, ".gitignore", next);
74058
74061
  }
74059
74062
  }
74063
+ async function metaprojectIsTracked(projectRoot) {
74064
+ try {
74065
+ const proc = Bun.spawn(["git", "ls-files", "--", ".metaproject"], { cwd: projectRoot, stdout: "pipe", stderr: "ignore" });
74066
+ const out = await new Response(proc.stdout).text();
74067
+ return await proc.exited === 0 && out.trim().length > 0;
74068
+ } catch {
74069
+ return false;
74070
+ }
74071
+ }
74060
74072
  async function findLegacyMemoryArtifacts(projectRoot) {
74061
74073
  const found = [];
74062
74074
  for (const relativePath of LEGACY_MEMORY_ARTIFACT_PATHS) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mrciphersmith/keryx",
3
- "version": "0.3.9",
3
+ "version": "0.3.10",
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": {