engineering-memory 1.6.2 → 1.6.3
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.6.
|
|
3
|
+
"version": "1.6.3",
|
|
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",
|
|
@@ -163,9 +163,16 @@ export class BridgeService {
|
|
|
163
163
|
return asJsonValue({ authentication, repository: publicRepository(repository) });
|
|
164
164
|
}
|
|
165
165
|
const live = await this.dependencies.activeContexts.list(repository.repoFingerprint);
|
|
166
|
-
let pointer =
|
|
167
|
-
|
|
168
|
-
|
|
166
|
+
let pointer = null;
|
|
167
|
+
if (input.taskSlug) {
|
|
168
|
+
pointer = live.find((entry) => entry.taskSlug === input.taskSlug) ?? null;
|
|
169
|
+
}
|
|
170
|
+
else if (input.sessionId) {
|
|
171
|
+
pointer = live.find((entry) => entry.sessionId === input.sessionId) ?? null;
|
|
172
|
+
}
|
|
173
|
+
else if (live.length === 1) {
|
|
174
|
+
pointer = live[0];
|
|
175
|
+
}
|
|
169
176
|
if (!pointer && input.taskSlug) {
|
|
170
177
|
return asJsonValue({
|
|
171
178
|
taskChoiceRequired: true,
|
|
@@ -174,7 +181,15 @@ export class BridgeService {
|
|
|
174
181
|
repository: publicRepository(repository),
|
|
175
182
|
});
|
|
176
183
|
}
|
|
177
|
-
if (!pointer &&
|
|
184
|
+
if (!pointer && input.sessionId && live.length > 0) {
|
|
185
|
+
return asJsonValue({
|
|
186
|
+
taskChoiceRequired: true,
|
|
187
|
+
requestedSessionId: input.sessionId,
|
|
188
|
+
liveTasks: live.map(describePointer),
|
|
189
|
+
repository: publicRepository(repository),
|
|
190
|
+
});
|
|
191
|
+
}
|
|
192
|
+
if (!pointer && live.length > 1) {
|
|
178
193
|
return asJsonValue({
|
|
179
194
|
taskChoiceRequired: true,
|
|
180
195
|
liveTasks: live.map(describePointer),
|