@hiveai/mcp 0.9.25 → 0.9.26

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/index.js CHANGED
@@ -1317,7 +1317,12 @@ async function memSessionEnd(input, ctx) {
1317
1317
  }
1318
1318
  const body = buildBody(input);
1319
1319
  const topic = recapTopic(input.scope, input.module);
1320
- const invalidPaths = input.files_touched.filter(
1320
+ const normalizedFiles = input.files_touched.map((p) => {
1321
+ if (!p || !path8.isAbsolute(p)) return p;
1322
+ const rel = path8.relative(ctx.paths.root, p);
1323
+ return rel.startsWith("..") ? p : rel;
1324
+ });
1325
+ const invalidPaths = normalizedFiles.filter(
1321
1326
  (p) => !existsSync17(path8.resolve(ctx.paths.root, p))
1322
1327
  );
1323
1328
  if (invalidPaths.length > 0) {
@@ -1336,7 +1341,7 @@ async function memSessionEnd(input, ctx) {
1336
1341
  revision_count: revisionCount,
1337
1342
  anchor: {
1338
1343
  ...fm.anchor,
1339
- paths: input.files_touched.length ? input.files_touched : fm.anchor.paths
1344
+ paths: normalizedFiles.length ? normalizedFiles : fm.anchor.paths
1340
1345
  }
1341
1346
  };
1342
1347
  await writeFile10(
@@ -1359,7 +1364,7 @@ async function memSessionEnd(input, ctx) {
1359
1364
  scope: input.scope,
1360
1365
  module: input.module,
1361
1366
  tags: ["session", "recap"],
1362
- paths: input.files_touched,
1367
+ paths: normalizedFiles,
1363
1368
  topic,
1364
1369
  status: "validated"
1365
1370
  });
@@ -3082,7 +3087,9 @@ function isDocLikePath(file) {
3082
3087
  }
3083
3088
  function isPackageOrConfigPath(file) {
3084
3089
  const lower = file.toLowerCase();
3085
- return lower.endsWith("package.json") || lower.endsWith("package-lock.json") || lower.endsWith("pnpm-lock.yaml") || lower.endsWith("yarn.lock") || lower.endsWith("bun.lockb") || lower.endsWith(".config.ts") || lower.endsWith(".config.js") || lower.endsWith(".json") || lower.endsWith(".yml") || lower.endsWith(".yaml") || lower.startsWith(".github/workflows/");
3090
+ const base = lower.split("/").pop() ?? lower;
3091
+ return lower.endsWith("package.json") || lower.endsWith("package-lock.json") || lower.endsWith("pnpm-lock.yaml") || lower.endsWith("yarn.lock") || lower.endsWith("bun.lockb") || lower.endsWith(".config.ts") || lower.endsWith(".config.js") || lower.endsWith(".json") || lower.endsWith(".yml") || lower.endsWith(".yaml") || lower.endsWith(".toml") || lower.startsWith(".github/workflows/") || lower.startsWith(".github/") && lower.endsWith(".yml") || // Dotfiles that are pure configuration/tooling — never trigger runtime gotchas
3092
+ base === ".gitignore" || base === ".gitattributes" || base === ".gitmodules" || base === ".editorconfig" || base === ".nvmrc" || base === ".node-version" || base === ".npmrc" || base === ".yarnrc" || base === ".yarnrc.yml" || base === ".dockerignore" || base === "dockerfile" || base.startsWith("dockerfile.") || base === ".env.example" || base === ".env.template" || lower.endsWith(".prettierrc") || lower.endsWith(".eslintrc") || lower.endsWith(".eslintignore") || lower.endsWith(".prettierignore") || lower.endsWith(".stylelintrc") || lower.endsWith(".browserslistrc");
3086
3093
  }
3087
3094
  function repairCommandForWarning(warning, paths) {
3088
3095
  const firstPath = paths[0];
@@ -3674,7 +3681,7 @@ When done, respond with: "Imported N memories: [list of IDs]" or "Nothing action
3674
3681
  // src/server.ts
3675
3682
  import { loadConfigSync } from "@hiveai/core";
3676
3683
  var SERVER_NAME = "haive";
3677
- var SERVER_VERSION = "0.9.25";
3684
+ var SERVER_VERSION = "0.9.26";
3678
3685
  function jsonResult(data) {
3679
3686
  return {
3680
3687
  content: [