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