engineering-memory 1.11.19 → 1.11.20
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.11.
|
|
3
|
+
"version": "1.11.20",
|
|
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",
|
package/runtime/build.json
CHANGED
|
@@ -274,6 +274,8 @@ function formAnswers(record, content) {
|
|
|
274
274
|
}
|
|
275
275
|
function presentationMessage(record, compact = false) {
|
|
276
276
|
const copy = copyFor(record);
|
|
277
|
+
if (record.owner?.tool === 'decision.mode' && record.binding)
|
|
278
|
+
return [record.message, record.context].filter(Boolean).join('\n');
|
|
277
279
|
if (compact)
|
|
278
280
|
return [
|
|
279
281
|
record.message,
|
|
@@ -120,6 +120,12 @@ export class ApiClient {
|
|
|
120
120
|
}
|
|
121
121
|
headers.Authorization = `Bearer ${accessToken}`;
|
|
122
122
|
}
|
|
123
|
+
const requestSignal = request.networkTimeoutMs === undefined
|
|
124
|
+
? request.signal
|
|
125
|
+
: AbortSignal.any([
|
|
126
|
+
AbortSignal.timeout(request.networkTimeoutMs),
|
|
127
|
+
...(request.signal ? [request.signal] : []),
|
|
128
|
+
]);
|
|
123
129
|
const controller = new AbortController();
|
|
124
130
|
const timeout = setTimeout(() => controller.abort(), this.options.timeoutMs);
|
|
125
131
|
let response;
|
|
@@ -128,8 +134,8 @@ export class ApiClient {
|
|
|
128
134
|
method,
|
|
129
135
|
headers,
|
|
130
136
|
...(request.body === undefined ? {} : { body: JSON.stringify(request.body) }),
|
|
131
|
-
signal:
|
|
132
|
-
? AbortSignal.any([controller.signal,
|
|
137
|
+
signal: requestSignal
|
|
138
|
+
? AbortSignal.any([controller.signal, requestSignal])
|
|
133
139
|
: controller.signal,
|
|
134
140
|
});
|
|
135
141
|
}
|
|
@@ -74,7 +74,7 @@ export class ReleaseNotes {
|
|
|
74
74
|
async buildReport(clientVersion, language, requested) {
|
|
75
75
|
if (!version.safeParse(clientVersion).success)
|
|
76
76
|
return null;
|
|
77
|
-
const signal = AbortSignal.timeout(
|
|
77
|
+
const signal = AbortSignal.timeout(5000);
|
|
78
78
|
try {
|
|
79
79
|
const principal = await this.principal();
|
|
80
80
|
if (!principal)
|
|
@@ -102,6 +102,7 @@ export class ReleaseNotes {
|
|
|
102
102
|
const response = await this.client.request(endpoints.releases + '?' + query, {
|
|
103
103
|
headers: { 'x-client-version': clientVersion },
|
|
104
104
|
retryRefresh: false,
|
|
105
|
+
networkTimeoutMs: 500,
|
|
105
106
|
maxResponseBytes: 1024 * 1024,
|
|
106
107
|
signal,
|
|
107
108
|
});
|
|
@@ -165,6 +166,7 @@ export class ReleaseNotes {
|
|
|
165
166
|
signal.throwIfAborted();
|
|
166
167
|
if ((await this.principal()) !== principal)
|
|
167
168
|
return null;
|
|
169
|
+
signal.throwIfAborted();
|
|
168
170
|
const reportId = randomUUID();
|
|
169
171
|
const claimId = randomUUID();
|
|
170
172
|
const path = join(root, 'reports', reportId + '.html');
|
|
@@ -22,6 +22,8 @@ When the task mode calls for a user answer, use the host's native questionnaire
|
|
|
22
22
|
|
|
23
23
|
## Required decisions stay pending
|
|
24
24
|
|
|
25
|
+
The owned task-mode selector presents the question, its task-local scope and the consequences beside each option. Keep this routine choice short; complex decisions still need their context and example. Standard MCP exposes feedback as a separate optional field, and some Codex versions render that field and the choice on separate pages. This is one durable question, not two decisions. Do not claim an inline choice/free-input layout is supported by that renderer. Prefer the host's combined native control only where the host permits it; do not substitute asynchronous input for a required answer or bypass a tool's mode restrictions. Retain free feedback without adding a duplicate Other option or treating a comment as consent.
|
|
26
|
+
|
|
25
27
|
Use `questionnaire.ask` for a required decision. It records the question before opening a native MCP form. Use a stable question identifier belonging to the current task and decision, so a retry returns to the same question instead of creating another one. A new decision needs its own identifier; an answer to an earlier proposal, branch or delivery does not approve a later one.
|
|
26
28
|
|
|
27
29
|
Pass `repoRoot`, `questionnaireId`, `message` and two to twelve `options`, each with an `id` and `label`. Identifiers use letters, digits, underscores or hyphens.
|