@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 +12 -5
- package/dist/index.js.map +1 -1
- package/dist/server.js +12 -5
- package/dist/server.js.map +1 -1
- package/package.json +3 -3
package/dist/server.js
CHANGED
|
@@ -1315,7 +1315,12 @@ async function memSessionEnd(input, ctx) {
|
|
|
1315
1315
|
}
|
|
1316
1316
|
const body = buildBody(input);
|
|
1317
1317
|
const topic = recapTopic(input.scope, input.module);
|
|
1318
|
-
const
|
|
1318
|
+
const normalizedFiles = input.files_touched.map((p) => {
|
|
1319
|
+
if (!p || !path8.isAbsolute(p)) return p;
|
|
1320
|
+
const rel = path8.relative(ctx.paths.root, p);
|
|
1321
|
+
return rel.startsWith("..") ? p : rel;
|
|
1322
|
+
});
|
|
1323
|
+
const invalidPaths = normalizedFiles.filter(
|
|
1319
1324
|
(p) => !existsSync17(path8.resolve(ctx.paths.root, p))
|
|
1320
1325
|
);
|
|
1321
1326
|
if (invalidPaths.length > 0) {
|
|
@@ -1334,7 +1339,7 @@ async function memSessionEnd(input, ctx) {
|
|
|
1334
1339
|
revision_count: revisionCount,
|
|
1335
1340
|
anchor: {
|
|
1336
1341
|
...fm.anchor,
|
|
1337
|
-
paths:
|
|
1342
|
+
paths: normalizedFiles.length ? normalizedFiles : fm.anchor.paths
|
|
1338
1343
|
}
|
|
1339
1344
|
};
|
|
1340
1345
|
await writeFile10(
|
|
@@ -1357,7 +1362,7 @@ async function memSessionEnd(input, ctx) {
|
|
|
1357
1362
|
scope: input.scope,
|
|
1358
1363
|
module: input.module,
|
|
1359
1364
|
tags: ["session", "recap"],
|
|
1360
|
-
paths:
|
|
1365
|
+
paths: normalizedFiles,
|
|
1361
1366
|
topic,
|
|
1362
1367
|
status: "validated"
|
|
1363
1368
|
});
|
|
@@ -3080,7 +3085,9 @@ function isDocLikePath(file) {
|
|
|
3080
3085
|
}
|
|
3081
3086
|
function isPackageOrConfigPath(file) {
|
|
3082
3087
|
const lower = file.toLowerCase();
|
|
3083
|
-
|
|
3088
|
+
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") || 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
|
|
3090
|
+
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");
|
|
3084
3091
|
}
|
|
3085
3092
|
function repairCommandForWarning(warning, paths) {
|
|
3086
3093
|
const firstPath = paths[0];
|
|
@@ -3672,7 +3679,7 @@ When done, respond with: "Imported N memories: [list of IDs]" or "Nothing action
|
|
|
3672
3679
|
// src/server.ts
|
|
3673
3680
|
import { loadConfigSync } from "@hiveai/core";
|
|
3674
3681
|
var SERVER_NAME = "haive";
|
|
3675
|
-
var SERVER_VERSION = "0.9.
|
|
3682
|
+
var SERVER_VERSION = "0.9.26";
|
|
3676
3683
|
function jsonResult(data) {
|
|
3677
3684
|
return {
|
|
3678
3685
|
content: [
|