@coresource/hz 0.20.4 → 0.20.5
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/hz.mjs +7 -3
- package/package.json +1 -1
package/dist/hz.mjs
CHANGED
|
@@ -3976,6 +3976,7 @@ import ora2 from "ora";
|
|
|
3976
3976
|
import pc9 from "picocolors";
|
|
3977
3977
|
var DEFAULT_ANALYSIS_TIMEOUT_MS = 5 * 60 * 1e3;
|
|
3978
3978
|
var DEFAULT_POLL_INTERVAL_MS = 5e3;
|
|
3979
|
+
var DEFAULT_PLANNER_MUTATION_TIMEOUT_MS = 6e4;
|
|
3979
3980
|
var FREE_TEXT_OPTION_ID = "free_text";
|
|
3980
3981
|
function isRecord7(value) {
|
|
3981
3982
|
return value !== null && !Array.isArray(value) && typeof value === "object";
|
|
@@ -4206,7 +4207,8 @@ async function postClarification(client, sessionId, signal, body) {
|
|
|
4206
4207
|
body,
|
|
4207
4208
|
method: "POST",
|
|
4208
4209
|
path: `/plan/${sessionId}/clarify`,
|
|
4209
|
-
signal
|
|
4210
|
+
signal,
|
|
4211
|
+
timeoutMs: DEFAULT_PLANNER_MUTATION_TIMEOUT_MS
|
|
4210
4212
|
});
|
|
4211
4213
|
}
|
|
4212
4214
|
async function postMilestoneConfirmation(client, sessionId, signal, body) {
|
|
@@ -4214,14 +4216,16 @@ async function postMilestoneConfirmation(client, sessionId, signal, body) {
|
|
|
4214
4216
|
body,
|
|
4215
4217
|
method: "POST",
|
|
4216
4218
|
path: `/plan/${sessionId}/confirm-milestones`,
|
|
4217
|
-
signal
|
|
4219
|
+
signal,
|
|
4220
|
+
timeoutMs: DEFAULT_PLANNER_MUTATION_TIMEOUT_MS
|
|
4218
4221
|
});
|
|
4219
4222
|
}
|
|
4220
4223
|
async function postDraftApproval(client, sessionId, signal) {
|
|
4221
4224
|
return client.request({
|
|
4222
4225
|
method: "POST",
|
|
4223
4226
|
path: `/plan/${sessionId}/approve`,
|
|
4224
|
-
signal
|
|
4227
|
+
signal,
|
|
4228
|
+
timeoutMs: DEFAULT_PLANNER_MUTATION_TIMEOUT_MS
|
|
4225
4229
|
});
|
|
4226
4230
|
}
|
|
4227
4231
|
function writeSection3(stdout, title) {
|