engineering-memory 1.3.0 → 1.3.1
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "engineering-memory",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.1",
|
|
4
4
|
"description": "Installs the Engineering Memory skill and its local MCP bridge. Sign in after installing; your organization and project are resolved from your account.",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"type": "module",
|
|
@@ -957,6 +957,7 @@ export class BridgeService {
|
|
|
957
957
|
}
|
|
958
958
|
let taskChangedPaths = [];
|
|
959
959
|
let taskChanges = [];
|
|
960
|
+
let foreignChangedPaths = [];
|
|
960
961
|
const snapshotResponse = await this.dependencies.client.request(endpoints.sessionResume, {
|
|
961
962
|
method: 'POST',
|
|
962
963
|
body: {
|
|
@@ -994,7 +995,13 @@ export class BridgeService {
|
|
|
994
995
|
if (!baseline || activeLease?.baselineDiffHash !== baseline.diffHash) {
|
|
995
996
|
throw new Error('Write task verification requires its locally pinned change baseline');
|
|
996
997
|
}
|
|
997
|
-
|
|
998
|
+
const wholeTreeDelta = manifestDelta(baseline.changedPaths, repository.git.changedPaths);
|
|
999
|
+
const leased = new Set(normalizeChangedPaths([...baseline.leasePaths, ...leaseChangedPaths]));
|
|
1000
|
+
taskChanges = wholeTreeDelta.filter((entry) => leased.has(normalizeChangedPaths([entry.path])[0]));
|
|
1001
|
+
foreignChangedPaths = wholeTreeDelta
|
|
1002
|
+
.filter((entry) => !leased.has(normalizeChangedPaths([entry.path])[0]))
|
|
1003
|
+
.map((entry) => entry.path)
|
|
1004
|
+
.sort();
|
|
998
1005
|
taskChangedPaths = taskChanges.map((entry) => entry.path).sort();
|
|
999
1006
|
if (input.changedPaths &&
|
|
1000
1007
|
stableStringify(normalizeChangedPaths(input.changedPaths)) !==
|
|
@@ -1072,6 +1079,9 @@ export class BridgeService {
|
|
|
1072
1079
|
return asJsonValue({
|
|
1073
1080
|
...objectOrEmpty(response.data),
|
|
1074
1081
|
mode: taskMode,
|
|
1082
|
+
...(foreignChangedPaths.length > 0
|
|
1083
|
+
? { changedPathsOutsideThisTask: foreignChangedPaths }
|
|
1084
|
+
: {}),
|
|
1075
1085
|
repository: publicRepository(repository),
|
|
1076
1086
|
});
|
|
1077
1087
|
});
|