@hiveai/mcp 0.9.26 → 0.9.27

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
@@ -1223,7 +1223,8 @@ var SessionTracker = class {
1223
1223
  const ranPostTask = this.events.some(
1224
1224
  (e) => e.tool === "mem_session_end" && !e.summary?.startsWith("Auto-captured")
1225
1225
  );
1226
- if (!ranPostTask && existsSync16(this.ctx.paths.haiveDir)) {
1226
+ const isSubstantialSession = totalCalls >= 3 || writingTools.length > 0;
1227
+ if (!ranPostTask && isSubstantialSession && existsSync16(this.ctx.paths.haiveDir)) {
1227
1228
  try {
1228
1229
  const memoriesSaved = writingTools.map((e) => e.summary ?? "").filter(Boolean).slice(0, 20);
1229
1230
  const payload = {
@@ -3088,9 +3089,36 @@ function isDocLikePath(file) {
3088
3089
  function isPackageOrConfigPath(file) {
3089
3090
  const lower = file.toLowerCase();
3090
3091
  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
+ 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") || isJsonConfigFile(base) || 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
3093
  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");
3093
3094
  }
3095
+ function isJsonConfigFile(base) {
3096
+ const knownConfigs = /* @__PURE__ */ new Set([
3097
+ "tsconfig.json",
3098
+ "jsconfig.json",
3099
+ "deno.json",
3100
+ "deno.jsonc",
3101
+ "nx.json",
3102
+ "turbo.json",
3103
+ "lerna.json",
3104
+ "rush.json",
3105
+ "jest.config.json",
3106
+ "vitest.config.json",
3107
+ "babel.config.json",
3108
+ ".babelrc.json",
3109
+ ".swcrc",
3110
+ ".mocharc.json",
3111
+ "renovate.json",
3112
+ "dependabot.json",
3113
+ ".prettierrc.json",
3114
+ ".eslintrc.json",
3115
+ ".stylelintrc.json"
3116
+ ]);
3117
+ if (knownConfigs.has(base)) return true;
3118
+ if (/^tsconfig\..+\.json$/.test(base)) return true;
3119
+ if (/^\.[a-z]+rc\.json$/.test(base)) return true;
3120
+ return false;
3121
+ }
3094
3122
  function repairCommandForWarning(warning, paths) {
3095
3123
  const firstPath = paths[0];
3096
3124
  return firstPath ? `haive briefing --files "${firstPath}" --task "review ${warning.id}"` : `haive memory show ${warning.id}`;
@@ -3681,7 +3709,7 @@ When done, respond with: "Imported N memories: [list of IDs]" or "Nothing action
3681
3709
  // src/server.ts
3682
3710
  import { loadConfigSync } from "@hiveai/core";
3683
3711
  var SERVER_NAME = "haive";
3684
- var SERVER_VERSION = "0.9.26";
3712
+ var SERVER_VERSION = "0.9.27";
3685
3713
  function jsonResult(data) {
3686
3714
  return {
3687
3715
  content: [