nolo-cli 0.47.0-alpha.3 → 0.47.0-alpha.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/{_executeModel-5PG6CUWD.js → _executeModel-Q4NLKUPH.js} +22 -20
- package/{agentDeleteCommand-SHSPQZHI.js → agentDeleteCommand-6MHA67Q2.js} +10 -10
- package/{agentEmailCommands-TNFWV6XO.js → agentEmailCommands-L3XZ237J.js} +27 -24
- package/{agentListCommands-5QTNEYMQ.js → agentListCommands-6PIBJFKH.js} +12 -12
- package/{agentMachineCommands-OENA64ZO.js → agentMachineCommands-POTNZ57E.js} +14 -13
- package/{agentRecordCommands-JLN2EWGC.js → agentRecordCommands-IMRKLUIK.js} +26 -23
- package/{agentRunCommand-CQM7DINV.js → agentRunCommand-LFZCDJLJ.js} +26 -23
- package/{agentRuntimeLocal-ZKXYFLXI.js → agentRuntimeLocal-BVUV26QD.js} +10 -10
- package/{agentSlice-NKFLP3RI.js → agentSlice-CIN6FY6Z.js} +1 -1
- package/{appDeleteCommands-XYGAZIJX.js → appDeleteCommands-QZBYALTD.js} +10 -10
- package/{appDeployCommands-7T5CABRB.js → appDeployCommands-UDUJPOBN.js} +10 -10
- package/{appDeployStatusCommands-KTFQMRPZ.js → appDeployStatusCommands-P2ZTUCDR.js} +10 -10
- package/{appGetCommands-HOX2ULSV.js → appGetCommands-346YWTIX.js} +10 -10
- package/{appListCommands-3SLCEHND.js → appListCommands-ML7PAZXO.js} +10 -10
- package/{authCommand-OY2E2VQK.js → authCommand-7A4LJ7RD.js} +7 -7
- package/{chatQueueReduxAdapter-WMMBQK3Y.js → chatQueueReduxAdapter-46OTJS77.js} +7 -7
- package/{chunk-5UOBIU5G.js → chunk-2PGAWTDB.js} +2 -2
- package/{chunk-RQSOAMPJ.js → chunk-3L2WKC3W.js} +12 -7
- package/{chunk-XO3G35OV.js → chunk-4UOFNBUR.js} +1 -1
- package/chunk-5XTOKQLW.js +121 -0
- package/{chunk-5BPZLBFB.js → chunk-5Z7NTYAZ.js} +13 -11
- package/{chunk-FAWK6DBF.js → chunk-6DYGT4IA.js} +11 -11
- package/{chunk-MQRZ5QUH.js → chunk-ALXHV7NK.js} +4 -2
- package/{chunk-WPFNAEIW.js → chunk-BEDKTILE.js} +1 -1
- package/{chunk-OLNC7AWK.js → chunk-C2WF2OY7.js} +1 -1
- package/{chunk-5OUK7FZE.js → chunk-CKCHKUQZ.js} +1 -1
- package/{chunk-I4JISVWK.js → chunk-D45NILIX.js} +1 -1
- package/{chunk-MUIJYGYW.js → chunk-D57WA7W3.js} +5 -5
- package/{chunk-URBGEE42.js → chunk-E5HKZ4TR.js} +2 -2
- package/chunk-EADNWBAZ.js +59 -0
- package/{chunk-6LYUN76O.js → chunk-EK6J2BLB.js} +3 -3
- package/{chunk-3N2KFW63.js → chunk-EUG45QJR.js} +43 -20
- package/{chunk-XLIHNL4X.js → chunk-FTGZTG2J.js} +15 -13
- package/{chunk-XMI3APSU.js → chunk-H3YNPYSN.js} +8 -8
- package/{chunk-G46DB6KG.js → chunk-HMMOAG2I.js} +3 -3
- package/{chunk-AV2CELZZ.js → chunk-IGQMIZ5L.js} +2 -2
- package/{chunk-5QRCPERU.js → chunk-K3HS5RNN.js} +1 -1
- package/{chunk-5PPFYHU2.js → chunk-KZCDMZ6M.js} +2 -2
- package/chunk-NF64D32W.js +8 -0
- package/{chunk-GYXN23QE.js → chunk-OTYXCO4M.js} +21 -182
- package/{chunk-5TNI2BMD.js → chunk-QKF5I66W.js} +3 -3
- package/{chunk-H2JQB6B6.js → chunk-QPIMHSA5.js} +2 -2
- package/{chunk-IWUPQUWA.js → chunk-U72222TN.js} +2 -2
- package/{chunk-YNOGNUBC.js → chunk-UL3AIGAQ.js} +77 -31
- package/{chunk-OZVGA4SY.js → chunk-UX4WJK6W.js} +1 -1
- package/{chunk-EXLOROHG.js → chunk-UYWXQCPH.js} +1 -1
- package/{chunk-4MXGXSYN.js → chunk-V5LQH25J.js} +2 -2
- package/{chunk-ENYDQKOB.js → chunk-VFN256RI.js} +0 -1
- package/{chunk-4ZNDBDWG.js → chunk-XY3V7K4L.js} +5 -6
- package/{chunk-7XTC3KRG.js → chunk-Y7TGWSUN.js} +1 -1
- package/{chunk-MZXZJVVD.js → chunk-YB7675WX.js} +2 -2
- package/{chunk-E2QH2AYX.js → chunk-Z7A54NFZ.js} +1 -1
- package/{createAgentAutomationAction-ENDNA3Q4.js → createAgentAutomationAction-OFRNHZWC.js} +8 -8
- package/{createDialogAction-2KNX6S2D.js → createDialogAction-2FF2JSWP.js} +9 -9
- package/{createPageAction-SNBCYPK6.js → createPageAction-6MTVIU3J.js} +8 -8
- package/{dialogCommands-COU5C635.js → dialogCommands-MMLBXSBC.js} +14 -11
- package/{dialogSlice-RTPOD6EW.js → dialogSlice-MONRO6AH.js} +7 -7
- package/{docCreateCommands-JWY25UFB.js → docCreateCommands-K53AHACN.js} +10 -10
- package/{docDeleteCommands-BPJOCSX4.js → docDeleteCommands-MJVGF67W.js} +10 -10
- package/{docReadCommands-BSEZCYTQ.js → docReadCommands-VWNRVF6W.js} +10 -10
- package/{docStore-TYHVLU7G.js → docStore-A3UWWGMV.js} +9 -9
- package/{docUpdateCommands-S2IE2VV4.js → docUpdateCommands-QUDD5TUR.js} +10 -10
- package/{getPricing-X3HXP6VQ.js → getPricing-AQ5MSXFO.js} +3 -3
- package/{handleSendMessageAction-QYXDQXGH.js → handleSendMessageAction-6TQ7JM5X.js} +7 -7
- package/index.js +47 -47
- package/{machineCommands-MHKXEUGC.js → machineCommands-W7QEV6Q6.js} +27 -24
- package/{machineWsRunDispatch-ZV736PJZ.js → machineWsRunDispatch-5P6X4WMI.js} +26 -23
- package/{models-7LWATQFH.js → models-N4NXQ44D.js} +2 -2
- package/package.json +1 -1
- package/{readlineWorkspace-L3IFOIIV.js → readlineWorkspace-PPPF6OCO.js} +28 -25
- package/{runAgentClientLoop-GBLDVBT5.js → runAgentClientLoop-YBZTAE2J.js} +20 -18
- package/{spaceCommands-XOLPJMRK.js → spaceCommands-FDZ4P33G.js} +10 -10
- package/{spaceSlice-OQPAGQDP.js → spaceSlice-NTZBL55S.js} +8 -8
- package/{streamAgentChatTurn-SN5XJJ7U.js → streamAgentChatTurn-N56LGQG4.js} +23 -21
- package/{tools-Y65Y3CI4.js → tools-GROQHVCL.js} +15 -13
- package/{tuiSummaryLlmCaller-NBTWT57U.js → tuiSummaryLlmCaller-32XPVSRB.js} +5 -5
- package/{updateDialogTitleAction-OAOP7CCE.js → updateDialogTitleAction-WYAVJPLS.js} +8 -8
|
@@ -4,7 +4,10 @@ import {
|
|
|
4
4
|
refreshAntigravityOAuthToken,
|
|
5
5
|
refreshOpenAiCodexToken,
|
|
6
6
|
xaiRefresh
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-D45NILIX.js";
|
|
8
|
+
import {
|
|
9
|
+
defaultLoopbackRequest
|
|
10
|
+
} from "./chunk-EADNWBAZ.js";
|
|
8
11
|
import {
|
|
9
12
|
clearCredentialAvailability,
|
|
10
13
|
markCredentialUnavailable,
|
|
@@ -53,7 +56,7 @@ import {
|
|
|
53
56
|
import {
|
|
54
57
|
inlineImageUrlsForCustomProvider,
|
|
55
58
|
prepareTools
|
|
56
|
-
} from "./chunk-
|
|
59
|
+
} from "./chunk-U72222TN.js";
|
|
57
60
|
import {
|
|
58
61
|
getServerProviderSecret
|
|
59
62
|
} from "./chunk-HS7MLR74.js";
|
|
@@ -62,7 +65,7 @@ import {
|
|
|
62
65
|
isAntigravityOAuthAgent,
|
|
63
66
|
readAntigravityProjectId,
|
|
64
67
|
resolveAntigravityCloudCodeBaseUrl
|
|
65
|
-
} from "./chunk-
|
|
68
|
+
} from "./chunk-UYWXQCPH.js";
|
|
66
69
|
import {
|
|
67
70
|
deleteMemoryFunctionSchema,
|
|
68
71
|
readXPostFunc,
|
|
@@ -72,13 +75,11 @@ import {
|
|
|
72
75
|
rememberMemoryFunctionSchema,
|
|
73
76
|
resolveAgentRequiredPackIds,
|
|
74
77
|
setTodoListFunc
|
|
75
|
-
} from "./chunk-
|
|
78
|
+
} from "./chunk-UL3AIGAQ.js";
|
|
76
79
|
import {
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
parseRetryAfterHeaderMs
|
|
81
|
-
} from "./chunk-RQSOAMPJ.js";
|
|
80
|
+
fetchWithTransientRetry,
|
|
81
|
+
isTransientFetchError
|
|
82
|
+
} from "./chunk-5XTOKQLW.js";
|
|
82
83
|
import {
|
|
83
84
|
TASK_PREVIEW_MAX,
|
|
84
85
|
formatListRunsCard,
|
|
@@ -97,13 +98,13 @@ import {
|
|
|
97
98
|
prepareTokenUsageData,
|
|
98
99
|
resolveBuiltinPlatformAgentConfig,
|
|
99
100
|
runKeyed
|
|
100
|
-
} from "./chunk-
|
|
101
|
+
} from "./chunk-6DYGT4IA.js";
|
|
101
102
|
import {
|
|
102
103
|
BUILTIN_TITLE_LLM_CONFIG
|
|
103
104
|
} from "./chunk-EVBFYPDC.js";
|
|
104
105
|
import {
|
|
105
106
|
fetchServerSyncedCredential
|
|
106
|
-
} from "./chunk-
|
|
107
|
+
} from "./chunk-EK6J2BLB.js";
|
|
107
108
|
import {
|
|
108
109
|
require_date_fns
|
|
109
110
|
} from "./chunk-M76ECQRD.js";
|
|
@@ -142,7 +143,7 @@ import {
|
|
|
142
143
|
parseSyncServersEnv,
|
|
143
144
|
resolveOpenAiCompatibleProviderConfig,
|
|
144
145
|
summarizeToolArguments
|
|
145
|
-
} from "./chunk-
|
|
146
|
+
} from "./chunk-D57WA7W3.js";
|
|
146
147
|
import {
|
|
147
148
|
buildPlatformChatCompletionRequest,
|
|
148
149
|
canUsePlatformChatProvider,
|
|
@@ -154,18 +155,18 @@ import {
|
|
|
154
155
|
resolvePlatformChatProviderConfig,
|
|
155
156
|
shouldUsePlatformChatProvider,
|
|
156
157
|
streamSseDataValues
|
|
157
|
-
} from "./chunk-
|
|
158
|
+
} from "./chunk-IGQMIZ5L.js";
|
|
158
159
|
import {
|
|
159
160
|
resolveAgentRuntimeConfigFromRecord,
|
|
160
161
|
resolveHistoricalToolContentCap
|
|
161
|
-
} from "./chunk-
|
|
162
|
+
} from "./chunk-4UOFNBUR.js";
|
|
162
163
|
import {
|
|
163
164
|
convertMessagesToResponsesInput,
|
|
164
165
|
toResponsesTools
|
|
165
166
|
} from "./chunk-6BYAXNH5.js";
|
|
166
167
|
import {
|
|
167
168
|
resolvePlatformAuthToken
|
|
168
|
-
} from "./chunk-
|
|
169
|
+
} from "./chunk-2PGAWTDB.js";
|
|
169
170
|
import {
|
|
170
171
|
buildNoloWorkspaceOpenAiTools,
|
|
171
172
|
parseNoloWorkspaceToolArguments,
|
|
@@ -197,7 +198,7 @@ import {
|
|
|
197
198
|
} from "./chunk-FD36SCCD.js";
|
|
198
199
|
import {
|
|
199
200
|
isAdaptiveThinkingModelId
|
|
200
|
-
} from "./chunk-
|
|
201
|
+
} from "./chunk-UX4WJK6W.js";
|
|
201
202
|
import {
|
|
202
203
|
compactWhitespace
|
|
203
204
|
} from "./chunk-DWLEOOGR.js";
|
|
@@ -235,9 +236,6 @@ import {
|
|
|
235
236
|
import {
|
|
236
237
|
NOLO_CLUSTER_SERVERS
|
|
237
238
|
} from "./chunk-LCBAMY2M.js";
|
|
238
|
-
import {
|
|
239
|
-
isLoopbackHostname
|
|
240
|
-
} from "./chunk-4SN6J65J.js";
|
|
241
239
|
import {
|
|
242
240
|
normalizeServerOrigin
|
|
243
241
|
} from "./chunk-CF7PE763.js";
|
|
@@ -1474,164 +1472,6 @@ function isAnthropicOAuthAgent(agent) {
|
|
|
1474
1472
|
return agent.apiKeyRef?.trim().toLowerCase() === "claude";
|
|
1475
1473
|
}
|
|
1476
1474
|
|
|
1477
|
-
// packages/cli/client/localRuntimeFetchRetry.ts
|
|
1478
|
-
import { request as httpRequest } from "node:http";
|
|
1479
|
-
import { request as httpsRequest } from "node:https";
|
|
1480
|
-
var TRANSIENT_FETCH_MAX_ATTEMPTS = 3;
|
|
1481
|
-
var TRANSIENT_FETCH_RETRY_BASE_DELAY_MS = 250;
|
|
1482
|
-
var CORE_DRAINING_MAX_ATTEMPTS = 30;
|
|
1483
|
-
var RETRYABLE_HTTP_STATUSES = /* @__PURE__ */ new Set([429, 503]);
|
|
1484
|
-
function isTransientFetchError(error) {
|
|
1485
|
-
const message = toErrorMessage(error);
|
|
1486
|
-
return /certificate|handshake|network|socket|timed out|timeout|ECONNRESET/i.test(
|
|
1487
|
-
message
|
|
1488
|
-
);
|
|
1489
|
-
}
|
|
1490
|
-
async function defaultSleep(ms) {
|
|
1491
|
-
await new Promise((resolve) => setTimeout(resolve, ms));
|
|
1492
|
-
}
|
|
1493
|
-
function transientFetchRetryDelayMs(attempt) {
|
|
1494
|
-
return Math.min(attempt * TRANSIENT_FETCH_RETRY_BASE_DELAY_MS, 2e3);
|
|
1495
|
-
}
|
|
1496
|
-
var MAX_RETRY_DELAY_MS = 1e4;
|
|
1497
|
-
async function resolveRetryAfterMs(response, attempt) {
|
|
1498
|
-
const headerMs = parseRetryAfterHeaderMs(
|
|
1499
|
-
response.headers.get("retry-after")
|
|
1500
|
-
);
|
|
1501
|
-
if (headerMs !== null) {
|
|
1502
|
-
return Math.min(headerMs, MAX_RETRY_DELAY_MS);
|
|
1503
|
-
}
|
|
1504
|
-
try {
|
|
1505
|
-
const body = await response.clone().text();
|
|
1506
|
-
const parsed = JSON.parse(body);
|
|
1507
|
-
const ms = normalizeNonNegativeMs(parsed?.retryAfterMs, 0);
|
|
1508
|
-
if (ms > 0) return Math.min(ms, MAX_RETRY_DELAY_MS);
|
|
1509
|
-
} catch {
|
|
1510
|
-
}
|
|
1511
|
-
return transientFetchRetryDelayMs(attempt);
|
|
1512
|
-
}
|
|
1513
|
-
function isLoopbackUrl(input) {
|
|
1514
|
-
try {
|
|
1515
|
-
const target = typeof input === "string" || input instanceof URL ? new URL(String(input)) : new URL(input.url);
|
|
1516
|
-
return isLoopbackHostname(target.hostname);
|
|
1517
|
-
} catch {
|
|
1518
|
-
return false;
|
|
1519
|
-
}
|
|
1520
|
-
}
|
|
1521
|
-
function toNodeRequestBody(body) {
|
|
1522
|
-
if (typeof body === "string") return Buffer.from(body);
|
|
1523
|
-
if (body instanceof Uint8Array) return Buffer.from(body);
|
|
1524
|
-
if (body instanceof ArrayBuffer) return Buffer.from(body);
|
|
1525
|
-
return null;
|
|
1526
|
-
}
|
|
1527
|
-
async function defaultLoopbackRequest(input, init) {
|
|
1528
|
-
const target = typeof input === "string" || input instanceof URL ? new URL(String(input)) : new URL(input.url);
|
|
1529
|
-
const headers = new Headers(init?.headers);
|
|
1530
|
-
const body = toNodeRequestBody(init?.body);
|
|
1531
|
-
if (body && !headers.has("Content-Length")) {
|
|
1532
|
-
headers.set("Content-Length", String(body.byteLength));
|
|
1533
|
-
}
|
|
1534
|
-
return await new Promise((resolve, reject) => {
|
|
1535
|
-
const requestImpl = target.protocol === "https:" ? httpsRequest : httpRequest;
|
|
1536
|
-
const req = requestImpl(
|
|
1537
|
-
target,
|
|
1538
|
-
{
|
|
1539
|
-
method: init?.method ?? "GET",
|
|
1540
|
-
headers: Object.fromEntries(headers.entries())
|
|
1541
|
-
},
|
|
1542
|
-
(res) => {
|
|
1543
|
-
const chunks = [];
|
|
1544
|
-
res.on(
|
|
1545
|
-
"data",
|
|
1546
|
-
(chunk) => chunks.push(Buffer.isBuffer(chunk) ? chunk : Buffer.from(chunk))
|
|
1547
|
-
);
|
|
1548
|
-
res.on("end", () => {
|
|
1549
|
-
resolve(
|
|
1550
|
-
new Response(Buffer.concat(chunks), {
|
|
1551
|
-
status: res.statusCode ?? 500,
|
|
1552
|
-
headers: res.headers
|
|
1553
|
-
})
|
|
1554
|
-
);
|
|
1555
|
-
});
|
|
1556
|
-
}
|
|
1557
|
-
);
|
|
1558
|
-
req.on("error", reject);
|
|
1559
|
-
init?.signal?.addEventListener(
|
|
1560
|
-
"abort",
|
|
1561
|
-
() => {
|
|
1562
|
-
req.destroy(
|
|
1563
|
-
init.signal?.reason instanceof Error ? init.signal.reason : new Error("request aborted")
|
|
1564
|
-
);
|
|
1565
|
-
reject(init.signal?.reason ?? new Error("request aborted"));
|
|
1566
|
-
},
|
|
1567
|
-
{ once: true }
|
|
1568
|
-
);
|
|
1569
|
-
if (body) req.write(body);
|
|
1570
|
-
req.end();
|
|
1571
|
-
});
|
|
1572
|
-
}
|
|
1573
|
-
async function isCoreDrainingResponse(response) {
|
|
1574
|
-
if (response.status !== 503) return false;
|
|
1575
|
-
try {
|
|
1576
|
-
const body = await response.clone().json();
|
|
1577
|
-
return isCoreDrainingBody(body);
|
|
1578
|
-
} catch {
|
|
1579
|
-
return false;
|
|
1580
|
-
}
|
|
1581
|
-
}
|
|
1582
|
-
async function fetchWithTransientRetry(fetchImpl, input, init, options = {}) {
|
|
1583
|
-
const retryableStatuses = options.retryableStatuses ?? RETRYABLE_HTTP_STATUSES;
|
|
1584
|
-
const requestedMaxAttempts = Number(options.maxAttempts);
|
|
1585
|
-
const maxAttempts = Number.isFinite(requestedMaxAttempts) ? Math.min(100, Math.max(1, Math.floor(requestedMaxAttempts))) : TRANSIENT_FETCH_MAX_ATTEMPTS;
|
|
1586
|
-
const requestedCoreDrainingMaxAttempts = Number(options.coreDrainingMaxAttempts);
|
|
1587
|
-
const coreDrainingMaxAttempts = Number.isFinite(requestedCoreDrainingMaxAttempts) ? Math.min(100, Math.max(1, Math.floor(requestedCoreDrainingMaxAttempts))) : CORE_DRAINING_MAX_ATTEMPTS;
|
|
1588
|
-
const loopMaxAttempts = Math.max(maxAttempts, coreDrainingMaxAttempts);
|
|
1589
|
-
let lastError;
|
|
1590
|
-
for (let attempt = 1; attempt <= loopMaxAttempts; attempt += 1) {
|
|
1591
|
-
try {
|
|
1592
|
-
if (options.loopbackRequest && isLoopbackUrl(input)) {
|
|
1593
|
-
return await options.loopbackRequest(input, init);
|
|
1594
|
-
}
|
|
1595
|
-
const response = await fetchImpl(input, init);
|
|
1596
|
-
const retryableStatus = retryableStatuses.has(response.status) && !init?.signal?.aborted;
|
|
1597
|
-
const callerAllowsRetry = retryableStatus ? await options.shouldRetryResponse?.(response) ?? true : false;
|
|
1598
|
-
if (retryableStatus && callerAllowsRetry) {
|
|
1599
|
-
const coreDraining = await isCoreDrainingResponse(response);
|
|
1600
|
-
const attemptBudget = coreDraining ? coreDrainingMaxAttempts : maxAttempts;
|
|
1601
|
-
if (attempt < attemptBudget) {
|
|
1602
|
-
const delayMs = await resolveRetryAfterMs(response, attempt);
|
|
1603
|
-
options.onRetry?.({
|
|
1604
|
-
attempt: attempt + 1,
|
|
1605
|
-
maxAttempts: attemptBudget,
|
|
1606
|
-
delayMs
|
|
1607
|
-
});
|
|
1608
|
-
await (options.sleep ?? defaultSleep)(delayMs);
|
|
1609
|
-
continue;
|
|
1610
|
-
}
|
|
1611
|
-
if (coreDraining) {
|
|
1612
|
-
return createDrainExhaustedResponse(response);
|
|
1613
|
-
}
|
|
1614
|
-
}
|
|
1615
|
-
return response;
|
|
1616
|
-
} catch (error) {
|
|
1617
|
-
if (init?.signal?.aborted) throw error;
|
|
1618
|
-
if (!isTransientFetchError(error)) throw error;
|
|
1619
|
-
if (options.retryNetworkErrors === false) throw error;
|
|
1620
|
-
lastError = error;
|
|
1621
|
-
if (attempt < maxAttempts) {
|
|
1622
|
-
const delayMs = transientFetchRetryDelayMs(attempt);
|
|
1623
|
-
options.onRetry?.({
|
|
1624
|
-
attempt: attempt + 1,
|
|
1625
|
-
maxAttempts,
|
|
1626
|
-
delayMs
|
|
1627
|
-
});
|
|
1628
|
-
await (options.sleep ?? defaultSleep)(delayMs);
|
|
1629
|
-
}
|
|
1630
|
-
}
|
|
1631
|
-
}
|
|
1632
|
-
throw lastError;
|
|
1633
|
-
}
|
|
1634
|
-
|
|
1635
1475
|
// packages/cli/client/cliWorkspaceToolVariants.ts
|
|
1636
1476
|
function shouldUseDeclaredOnlyLocalWorkspaceTools(env) {
|
|
1637
1477
|
const value = env.NOLO_LOCAL_WORKSPACE_TOOLSET || env.NOLO_LOCAL_TOOLSET_MODE || "";
|
|
@@ -2836,7 +2676,7 @@ async function readSseEvents(response) {
|
|
|
2836
2676
|
return ev && !Array.isArray(ev) ? ev : null;
|
|
2837
2677
|
});
|
|
2838
2678
|
}
|
|
2839
|
-
var
|
|
2679
|
+
var defaultSleep = (ms) => new Promise((resolve) => setTimeout(resolve, ms));
|
|
2840
2680
|
async function callCodexResponsesOnce(args, accountId) {
|
|
2841
2681
|
const fetchImpl = args.fetchImpl ?? fetch;
|
|
2842
2682
|
const identity = createCodexRequestIdentity();
|
|
@@ -2901,7 +2741,7 @@ async function fetchCodexResponsesCompletion(args) {
|
|
|
2901
2741
|
}
|
|
2902
2742
|
};
|
|
2903
2743
|
}
|
|
2904
|
-
const sleep = args.sleep ??
|
|
2744
|
+
const sleep = args.sleep ?? defaultSleep;
|
|
2905
2745
|
const requestedMaxAttempts = Number(args.maxAttempts);
|
|
2906
2746
|
const maxAttempts = Number.isFinite(requestedMaxAttempts) ? Math.min(10, Math.max(1, Math.floor(requestedMaxAttempts))) : CODEX_STREAM_MAX_ATTEMPTS;
|
|
2907
2747
|
let result = await callCodexResponsesOnce(args, accountId);
|
|
@@ -9561,7 +9401,7 @@ var BUSY_STREAM_RETRY_DELAY_MS = 1200;
|
|
|
9561
9401
|
function isBusyProviderStreamError(error) {
|
|
9562
9402
|
return BUSY_STREAM_ERROR_RE.test(toErrorMessage(error));
|
|
9563
9403
|
}
|
|
9564
|
-
async function
|
|
9404
|
+
async function defaultSleep2(ms) {
|
|
9565
9405
|
await new Promise((resolve) => setTimeout(resolve, ms));
|
|
9566
9406
|
}
|
|
9567
9407
|
function isRetryableProviderStreamError(error) {
|
|
@@ -9602,7 +9442,7 @@ function withProviderStreamRetry(provider, deps) {
|
|
|
9602
9442
|
}
|
|
9603
9443
|
if (isBusyProviderStreamError(error)) {
|
|
9604
9444
|
deps.activityReporter?.("\u670D\u52A1\u5668\u7D27\u5F20 \xB7 \u7A0D\u5019\u81EA\u52A8\u91CD\u8BD5");
|
|
9605
|
-
await (deps.sleep ??
|
|
9445
|
+
await (deps.sleep ?? defaultSleep2)(BUSY_STREAM_RETRY_DELAY_MS);
|
|
9606
9446
|
} else {
|
|
9607
9447
|
deps.activityReporter?.("\u4E0A\u6E38\u6D41\u4E2D\u65AD \xB7 \u81EA\u52A8\u91CD\u8BD5");
|
|
9608
9448
|
}
|
|
@@ -12417,7 +12257,6 @@ function createCliLocalRuntimeAdapter(deps) {
|
|
|
12417
12257
|
|
|
12418
12258
|
export {
|
|
12419
12259
|
clearCliLocalRuntimePreparedAgentCache,
|
|
12420
|
-
isTransientFetchError,
|
|
12421
12260
|
isSubtaskRun,
|
|
12422
12261
|
summarizeEndpoint,
|
|
12423
12262
|
isBuiltinNoloAgentRef,
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createCliLocalRuntimeAdapter,
|
|
3
3
|
summarizeEndpoint
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-OTYXCO4M.js";
|
|
5
5
|
import {
|
|
6
6
|
clipMultilineText
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-UL3AIGAQ.js";
|
|
8
8
|
import {
|
|
9
9
|
runLocalAgentTurn
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-D57WA7W3.js";
|
|
11
11
|
import {
|
|
12
12
|
resolveLocalRuntimeEnvFromPolicy
|
|
13
13
|
} from "./chunk-NQ4N4IGO.js";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
deleteDialog,
|
|
3
3
|
toast
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-6DYGT4IA.js";
|
|
5
5
|
import {
|
|
6
6
|
deleteServerSyncedCredential
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-EK6J2BLB.js";
|
|
8
8
|
import {
|
|
9
9
|
require_date_fns
|
|
10
10
|
} from "./chunk-M76ECQRD.js";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
i18n_default,
|
|
3
3
|
toolRegistry
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-UL3AIGAQ.js";
|
|
5
5
|
import {
|
|
6
6
|
canonicalizeToolNames
|
|
7
7
|
} from "./chunk-O6OSWFZQ.js";
|
|
8
8
|
import {
|
|
9
9
|
isNoloHostedProvider
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-VFN256RI.js";
|
|
11
11
|
import {
|
|
12
12
|
asTrimmedLowercaseString
|
|
13
13
|
} from "./chunk-QSJ3HFEF.js";
|