@nervekit/desktop 0.40.0 → 0.40.2

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.
Files changed (114) hide show
  1. package/THIRD-PARTY-LICENSES.txt +5087 -485
  2. package/dist/{chunk-KSZJ3HGD.js → chunk-2BKMOJYJ.js} +1 -1
  3. package/dist/{chunk-5UT23MT6.js → chunk-3JJN36GV.js} +70 -71
  4. package/dist/{chunk-2Z5FLMLE.js → chunk-3SSNDIQT.js} +1 -1
  5. package/dist/{chunk-PUM6UCBT.js → chunk-3VZR3ZUY.js} +55 -8
  6. package/dist/{chunk-BXVRC3HF.js → chunk-4H3WR7IT.js} +1 -1
  7. package/dist/{chunk-QVHYARC2.js → chunk-4VPX67B7.js} +3 -1
  8. package/dist/chunk-5NN7JAJ2.js +258 -0
  9. package/dist/{chunk-BPOIFVQO.js → chunk-6FSDDGFZ.js} +731 -605
  10. package/dist/chunk-6PACEIUY.js +183 -0
  11. package/dist/{chunk-XNYZEQ3U.js → chunk-6TAN6WG6.js} +1 -1
  12. package/dist/{chunk-RWLLVZ7I.js → chunk-7FLZA2BD.js} +31 -15
  13. package/dist/{chunk-WTHP3VH6.js → chunk-7JQBECUL.js} +1 -1
  14. package/dist/{chunk-5Y3NEEOK.js → chunk-AAEIGAGD.js} +9 -9
  15. package/dist/{chunk-UN3GLM4U.js → chunk-ANI6J75M.js} +68 -65
  16. package/dist/chunk-B4IE2GAM.js +14 -0
  17. package/dist/chunk-BNVMNV4O.js +69 -0
  18. package/dist/{chunk-L3YB2QLN.js → chunk-C6RO4LP3.js} +2 -2
  19. package/dist/chunk-DTGL5P2V.js +250 -0
  20. package/dist/{chunk-U4DBQKHO.js → chunk-E4JNHQGT.js} +11 -9
  21. package/dist/chunk-EJM4HMEL.js +45 -0
  22. package/dist/chunk-ER2ES2RH.js +64 -0
  23. package/dist/{chunk-SQ7CWNIT.js → chunk-EX63VKXY.js} +1 -1
  24. package/dist/{chunk-JDI4D5EM.js → chunk-F3MHINI6.js} +19 -23
  25. package/dist/chunk-FGZX4Q7W.js +22828 -0
  26. package/dist/{chunk-LPCHTKEK.js → chunk-FZ5N6WXF.js} +31 -160
  27. package/dist/chunk-H2G55ZPG.js +783 -0
  28. package/dist/chunk-HDBDYGJQ.js +40 -0
  29. package/dist/{chunk-RU6S57LK.js → chunk-HOCODVKL.js} +22 -24
  30. package/dist/chunk-JCF3ZRP4.js +481 -0
  31. package/dist/chunk-K2J2VZXO.js +142 -0
  32. package/dist/chunk-KBNEZR7T.js +135 -0
  33. package/dist/chunk-KSSM6LUI.js +340 -0
  34. package/dist/{chunk-HHUSIAK3.js → chunk-KTGSBL6T.js} +14 -17
  35. package/dist/chunk-L2DHKP5C.js +42 -0
  36. package/dist/{chunk-DBXMYYPJ.js → chunk-M3ELKCNA.js} +1 -1
  37. package/dist/chunk-M7WTH5K5.js +822 -0
  38. package/dist/{chunk-LZRPWVVJ.js → chunk-MWIKZIAI.js} +9 -8
  39. package/dist/{chunk-AON37AL2.js → chunk-O2652RWY.js} +29 -4
  40. package/dist/chunk-O6U226AI.js +249 -0
  41. package/dist/{chunk-5R3UAHXF.js → chunk-OAEV22IW.js} +48 -26
  42. package/dist/chunk-OANTMDXI.js +29 -0
  43. package/dist/{chunk-UGDIHDAR.js → chunk-ODS5QROC.js} +1 -1
  44. package/dist/{chunk-Q7LPOIKN.js → chunk-OQC3F6JA.js} +3 -471
  45. package/dist/{chunk-YA2WJRUO.js → chunk-PST63OUS.js} +5 -5
  46. package/dist/{chunk-S2PITDVA.js → chunk-QBAIDKF6.js} +1 -1
  47. package/dist/chunk-RPLBWENJ.js +224 -0
  48. package/dist/{chunk-GCSWN326.js → chunk-S62LLS4I.js} +33 -55
  49. package/dist/chunk-SHEU5KLD.js +32 -0
  50. package/dist/{chunk-FESN7DND.js → chunk-SU2USXTD.js} +1 -1
  51. package/dist/chunk-T6NRMNLQ.js +22 -0
  52. package/dist/{chunk-NSA42OOT.js → chunk-TGKIV3F4.js} +53 -65
  53. package/dist/{chunk-MN7PZ2PH.js → chunk-TSV3PFU2.js} +2 -2
  54. package/dist/{chunk-D5WJKB4R.js → chunk-UDC7NPQJ.js} +4 -3
  55. package/dist/{chunk-CEX2GWGZ.js → chunk-VBM7TD3X.js} +1 -1
  56. package/dist/chunk-VC6TX2Y2.js +359 -0
  57. package/dist/{chunk-7FI3LC3O.js → chunk-VTDI5KP7.js} +241 -104
  58. package/dist/{chunk-P2GSKP6N.js → chunk-WIN7KHMV.js} +15 -18
  59. package/dist/chunk-WJULIJOU.js +168 -0
  60. package/dist/{chunk-HKLAYK2Z.js → chunk-WRTA5G57.js} +23 -0
  61. package/dist/{chunk-4ZNLXHTH.js → chunk-WYPVD3HW.js} +10 -9
  62. package/dist/{chunk-V7EAFXAX.js → chunk-XE2E2KBP.js} +10 -9
  63. package/dist/chunk-XY53EFK3.js +39 -0
  64. package/dist/chunk-XZYFB566.js +153 -0
  65. package/dist/{chunk-H4CDZRIE.js → chunk-YJT4NXMV.js} +5 -5
  66. package/dist/{chunk-ET5RYBGZ.js → chunk-YQFENES6.js} +3 -3
  67. package/dist/chunk-YUO5V75X.js +128 -0
  68. package/dist/chunk-YYLKI74V.js +8778 -0
  69. package/dist/daemon.js +15 -10
  70. package/dist/git-isolated-reader-helper.js +1 -1
  71. package/dist/main.js +14 -9
  72. package/dist/web/assets/{AsyncBashCenterHost-HGsdxUJ3.js → AsyncBashCenterHost-BvXKoCVr.js} +1 -1
  73. package/dist/web/assets/{ConversationsWorkbenchPanel-B6dzWkG1.js → ConversationsWorkbenchPanel-CIfK_e3I.js} +1 -1
  74. package/dist/web/assets/{DiscoverCenterHost-B186WBRA.js → DiscoverCenterHost-Ep8EN9iJ.js} +1 -1
  75. package/dist/web/assets/{FileCenterHost-DigJOU5M.js → FileCenterHost-C_7XZAFZ.js} +1 -1
  76. package/dist/web/assets/{FilesWorkbenchPanel-VPvx3Bmi.js → FilesWorkbenchPanel-CtXo7ywG.js} +1 -1
  77. package/dist/web/assets/{GitDiffCenterHost-IuZfF3hG.js → GitDiffCenterHost-Cr7lqGI_.js} +1 -1
  78. package/dist/web/assets/{GitWorkbenchPanel-CScC0CfH.js → GitWorkbenchPanel-BFbwUgIN.js} +1 -1
  79. package/dist/web/assets/{LaunchConfigurationNotice-5yb4cH27.js → LaunchConfigurationNotice-CJjWkMhv.js} +1 -1
  80. package/dist/web/assets/{LaunchesWorkbenchPanel-Vy0Gm7gg.js → LaunchesWorkbenchPanel-BqzJvsrj.js} +1 -1
  81. package/dist/web/assets/{LogsCenterHost-BXBozCYw.js → LogsCenterHost-BI1fSxFW.js} +1 -1
  82. package/dist/web/assets/{MermaidCenterHost-DDh4ArdK.js → MermaidCenterHost-DVsZB8nB.js} +1 -1
  83. package/dist/web/assets/{MobileFilesBody-Cda_7gDp.js → MobileFilesBody-BJMoaP9I.js} +1 -1
  84. package/dist/web/assets/{MobileFilesHost-C1jev2Un.js → MobileFilesHost-D843vkDF.js} +1 -1
  85. package/dist/web/assets/{MobileLaunchOutputHost-Bsv12o2H.js → MobileLaunchOutputHost-vpltMcar.js} +1 -1
  86. package/dist/web/assets/{MobileLaunchesHost-C9VH-2bn.js → MobileLaunchesHost-CdDrKASg.js} +1 -1
  87. package/dist/web/assets/{MobileLogsHost-BMDXc-WC.js → MobileLogsHost-qK7N-C1y.js} +1 -1
  88. package/dist/web/assets/{MobileNoteEditorHost-BA6WIY1Y.js → MobileNoteEditorHost-Bg1N8o54.js} +1 -1
  89. package/dist/web/assets/{MobileNotesHost-BZeYpK9H.js → MobileNotesHost-meLV39Yw.js} +1 -1
  90. package/dist/web/assets/{MobileProjectSettingsHost-U3Mx3EN8.js → MobileProjectSettingsHost-A49Fdn54.js} +1 -1
  91. package/dist/web/assets/{MobileProjectSettingsPageHost-CMvxbjfs.js → MobileProjectSettingsPageHost-BXpUqS_N.js} +1 -1
  92. package/dist/web/assets/{MobileSettingsHost-CP8Z_-gH.js → MobileSettingsHost-DPKPajzI.js} +1 -1
  93. package/dist/web/assets/{MobileSettingsPageHost-BPjXKTMV.js → MobileSettingsPageHost-izNWGN0i.js} +1 -1
  94. package/dist/web/assets/{MobileSettingsPageScreen-C5rHdrUU.js → MobileSettingsPageScreen-DWMg4fDo.js} +1 -1
  95. package/dist/web/assets/{ProjectSettingsCenterHost-BVXpBixy.js → ProjectSettingsCenterHost-DHeb274m.js} +1 -1
  96. package/dist/web/assets/{PullRequestCenterHost-CZhXfCX2.js → PullRequestCenterHost-BYkWxXQe.js} +1 -1
  97. package/dist/web/assets/{PullRequestsWorkbenchPanel-BBnZJVnI.js → PullRequestsWorkbenchPanel-ZvGbi1Cr.js} +1 -1
  98. package/dist/web/assets/{SearchWorkbenchPanel-qLgszneN.js → SearchWorkbenchPanel-DaC0smfe.js} +1 -1
  99. package/dist/web/assets/{SettingsCenter-7BfrBfiy.js → SettingsCenter-C_NLBsi6.js} +1 -1
  100. package/dist/web/assets/{SettingsCenterHost-Ck5uHILP.js → SettingsCenterHost-jP8MULEj.js} +1 -1
  101. package/dist/web/assets/{SystemPromptCenterHost-ya5AvXsd.js → SystemPromptCenterHost-B1hfsfAn.js} +1 -1
  102. package/dist/web/assets/{discover-B3I5g1_G.js → discover-B-aZ504j.js} +1 -1
  103. package/dist/web/assets/{index-FJEmK_L5.js → index-TZ1KAAsX.js} +34 -34
  104. package/dist/web/assets/{settings-page-controllers.svelte-CU0i08wo.js → settings-page-controllers.svelte-D_ydJF8u.js} +1 -1
  105. package/dist/web/assets/{shell-layout.svelte-BT2508sa.js → shell-layout.svelte-OoLFwzzJ.js} +2 -2
  106. package/dist/web/assets/{views-Z-n-GTYY.js → views-ByPCKDiZ.js} +1 -1
  107. package/dist/web/index.html +3 -3
  108. package/dist/web/sw.js +1 -1
  109. package/dist/worker.js +14 -9
  110. package/package.json +8 -9
  111. package/dist/chunk-RUZ2UAYH.js +0 -365
  112. package/dist/resize-worker.js +0 -168
  113. /package/dist/{chunk-PUM6UCBT.js.LEGAL.txt → chunk-3VZR3ZUY.js.LEGAL.txt} +0 -0
  114. /package/dist/{chunk-YA2WJRUO.js.LEGAL.txt → chunk-PST63OUS.js.LEGAL.txt} +0 -0
@@ -1,190 +1,61 @@
1
1
  import { createRequire as __nerveCreateRequire } from "node:module";
2
2
  const require = __nerveCreateRequire(import.meta.url);
3
+ import {
4
+ resolveHttpProxyUrlForTarget
5
+ } from "./chunk-KBNEZR7T.js";
3
6
  import {
4
7
  combineAbortSignals
5
- } from "./chunk-XNYZEQ3U.js";
8
+ } from "./chunk-6TAN6WG6.js";
6
9
  import {
7
10
  convertResponsesMessages,
8
11
  convertResponsesTools,
9
12
  getResponsesToolSupport,
10
13
  processResponsesStream
11
- } from "./chunk-UN3GLM4U.js";
14
+ } from "./chunk-ANI6J75M.js";
15
+ import {
16
+ registerSessionResourceCleanup
17
+ } from "./chunk-OANTMDXI.js";
12
18
  import {
13
19
  clampOpenAIPromptCacheKey
14
- } from "./chunk-UGDIHDAR.js";
15
- import "./chunk-KSZJ3HGD.js";
16
- import "./chunk-RUZ2UAYH.js";
20
+ } from "./chunk-ODS5QROC.js";
21
+ import "./chunk-2BKMOJYJ.js";
17
22
  import {
18
23
  buildBaseOptions,
19
24
  createGrammarToolInputProperties
20
- } from "./chunk-5R3UAHXF.js";
21
- import "./chunk-2Z5FLMLE.js";
25
+ } from "./chunk-OAEV22IW.js";
26
+ import "./chunk-3SSNDIQT.js";
22
27
  import {
23
28
  formatProviderError,
24
29
  normalizeProviderError
25
- } from "./chunk-AON37AL2.js";
30
+ } from "./chunk-O2652RWY.js";
26
31
  import {
27
32
  headersToRecord
28
- } from "./chunk-CEX2GWGZ.js";
29
- import {
30
- getProviderEnvValue
31
- } from "./chunk-FESN7DND.js";
33
+ } from "./chunk-VBM7TD3X.js";
34
+ import "./chunk-SU2USXTD.js";
35
+ import "./chunk-H2G55ZPG.js";
32
36
  import {
33
37
  clampThinkingLevel,
34
38
  getDeclaredTools,
35
39
  getInitialSystemMessage,
36
- getSystemMessageText,
37
40
  normalizeContext,
38
41
  resolveTranscript,
39
42
  resolveTranscriptTools
40
- } from "./chunk-NSA42OOT.js";
43
+ } from "./chunk-TGKIV3F4.js";
41
44
  import {
42
45
  AssistantMessageEventStream,
43
46
  appendAssistantMessageDiagnostic,
44
47
  createAssistantMessageDiagnostic,
45
48
  formatThrownValue
46
- } from "./chunk-MN7PZ2PH.js";
49
+ } from "./chunk-TSV3PFU2.js";
47
50
  import {
48
51
  getIdentityHeaders
49
- } from "./chunk-D5WJKB4R.js";
52
+ } from "./chunk-UDC7NPQJ.js";
53
+ import {
54
+ getSystemMessageText
55
+ } from "./chunk-XY53EFK3.js";
50
56
  import "./chunk-CWESUMYQ.js";
51
57
 
52
- // node_modules/.pnpm/@earendil-works+pi-ai@1.4.0_@aws-sdk+credential-provider-node@3.972.83_@smithy+signatur_c4dd529f1cf5cdf12d9a6e2070ccac62/node_modules/@earendil-works/pi-ai/dist/session-resources.js
53
- var sessionResourceCleanups = /* @__PURE__ */ new Set();
54
- function registerSessionResourceCleanup(cleanup) {
55
- sessionResourceCleanups.add(cleanup);
56
- return () => {
57
- sessionResourceCleanups.delete(cleanup);
58
- };
59
- }
60
-
61
- // node_modules/.pnpm/@earendil-works+pi-ai@1.4.0_@aws-sdk+credential-provider-node@3.972.83_@smithy+signatur_c4dd529f1cf5cdf12d9a6e2070ccac62/node_modules/@earendil-works/pi-ai/dist/utils/node-http-proxy.js
62
- var DEFAULT_PROXY_PORTS = {
63
- ftp: 21,
64
- gopher: 70,
65
- http: 80,
66
- https: 443,
67
- ws: 80,
68
- wss: 443
69
- };
70
- function getProxyEnv(key, env) {
71
- const lowercaseKey = key.toLowerCase();
72
- const uppercaseKey = key.toUpperCase();
73
- return env?.[lowercaseKey] || env?.[uppercaseKey] || getProviderEnvValue(lowercaseKey) || getProviderEnvValue(uppercaseKey) || "";
74
- }
75
- function parseProxyTargetUrl(targetUrl) {
76
- if (targetUrl instanceof URL) {
77
- return targetUrl;
78
- }
79
- try {
80
- return new URL(targetUrl);
81
- } catch {
82
- return void 0;
83
- }
84
- }
85
- function stripBrackets(host) {
86
- return host.startsWith("[") && host.endsWith("]") ? host.slice(1, -1) : host;
87
- }
88
- function parseNoProxyEntry(entry) {
89
- const trimmed = entry.trim().toLowerCase();
90
- if (!trimmed)
91
- return void 0;
92
- if (trimmed.startsWith("[")) {
93
- const closingBracket = trimmed.indexOf("]");
94
- if (closingBracket !== -1) {
95
- const host = trimmed.slice(1, closingBracket);
96
- const rest = trimmed.slice(closingBracket + 1);
97
- if (rest.startsWith(":")) {
98
- const port = Number.parseInt(rest.slice(1), 10);
99
- return { host, port: Number.isNaN(port) ? 0 : port };
100
- }
101
- return { host, port: 0 };
102
- }
103
- }
104
- if (trimmed.includes(":") && trimmed.split(":").length > 2) {
105
- return { host: trimmed, port: 0 };
106
- }
107
- const colonIndex = trimmed.lastIndexOf(":");
108
- if (colonIndex !== -1 && colonIndex === trimmed.indexOf(":")) {
109
- const host = trimmed.slice(0, colonIndex);
110
- const port = Number.parseInt(trimmed.slice(colonIndex + 1), 10);
111
- if (!Number.isNaN(port)) {
112
- return { host, port };
113
- }
114
- }
115
- return { host: trimmed, port: 0 };
116
- }
117
- function shouldProxyHostname(hostname, port, env) {
118
- const noProxy = getProxyEnv("no_proxy", env).toLowerCase();
119
- if (!noProxy) {
120
- return true;
121
- }
122
- if (noProxy === "*") {
123
- return false;
124
- }
125
- const normalizedTargetHost = stripBrackets(hostname.toLowerCase());
126
- return noProxy.split(/[,\s]/).every((entry) => {
127
- const parsed = parseNoProxyEntry(entry);
128
- if (!parsed) {
129
- return true;
130
- }
131
- if (parsed.port && parsed.port !== port) {
132
- return true;
133
- }
134
- let domain = stripBrackets(parsed.host);
135
- if (domain.startsWith("*.")) {
136
- domain = domain.slice(2);
137
- } else if (domain.startsWith(".") || domain.startsWith("*")) {
138
- domain = domain.slice(1);
139
- }
140
- if (!domain) {
141
- return true;
142
- }
143
- if (normalizedTargetHost === domain) {
144
- return false;
145
- }
146
- if (normalizedTargetHost.endsWith(`.${domain}`)) {
147
- return false;
148
- }
149
- return true;
150
- });
151
- }
152
- function getProxyForUrl(targetUrl, env) {
153
- const parsedUrl = parseProxyTargetUrl(targetUrl);
154
- if (!parsedUrl?.protocol || !parsedUrl.host) {
155
- return "";
156
- }
157
- const protocol = parsedUrl.protocol.split(":", 1)[0];
158
- const hostname = stripBrackets(parsedUrl.hostname || parsedUrl.host.replace(/:\d*$/, ""));
159
- const port = Number.parseInt(parsedUrl.port, 10) || DEFAULT_PROXY_PORTS[protocol] || 0;
160
- if (!shouldProxyHostname(hostname, port, env)) {
161
- return "";
162
- }
163
- let proxy = getProxyEnv(`${protocol}_proxy`, env) || getProxyEnv("all_proxy", env);
164
- if (proxy && !proxy.includes("://")) {
165
- proxy = `${protocol}://${proxy}`;
166
- }
167
- return proxy;
168
- }
169
- var UNSUPPORTED_PROXY_PROTOCOL_MESSAGE = "Unsupported proxy protocol. SOCKS and PAC proxy URLs are not supported; use an HTTP or HTTPS proxy URL.";
170
- function resolveHttpProxyUrlForTarget(targetUrl, env) {
171
- const proxy = getProxyForUrl(targetUrl, env);
172
- if (!proxy) {
173
- return void 0;
174
- }
175
- let proxyUrl;
176
- try {
177
- proxyUrl = new URL(proxy);
178
- } catch (error) {
179
- throw new Error(`Invalid proxy URL ${JSON.stringify(proxy)}: ${error instanceof Error ? error.message : String(error)}`);
180
- }
181
- if (proxyUrl.protocol !== "http:" && proxyUrl.protocol !== "https:") {
182
- throw new Error(`${UNSUPPORTED_PROXY_PROTOCOL_MESSAGE} Got ${proxyUrl.protocol}`);
183
- }
184
- return proxyUrl;
185
- }
186
-
187
- // node_modules/.pnpm/@earendil-works+pi-ai@1.4.0_@aws-sdk+credential-provider-node@3.972.83_@smithy+signatur_c4dd529f1cf5cdf12d9a6e2070ccac62/node_modules/@earendil-works/pi-ai/dist/utils/uuid.js
58
+ // node_modules/.pnpm/@earendil-works+pi-ai@1.5.1_@aws-sdk+credential-provider-node@3.972.83_@smithy+signatur_e7d72008f907c45a36788e380ed24019/node_modules/@earendil-works/pi-ai/dist/utils/uuid.js
188
59
  var MAX_UUID_V7_TIMESTAMP = 281474976710655;
189
60
  var MAX_SEQUENCE = (1n << 41n) - 1n;
190
61
  var lastOrdinaryTimestamp = -1;
@@ -220,7 +91,7 @@ function uuidv7(timestampMs) {
220
91
  return `${hex.slice(0, 4).join("")}-${hex.slice(4, 6).join("")}-${hex.slice(6, 8).join("")}-${hex.slice(8, 10).join("")}-${hex.slice(10).join("")}`;
221
92
  }
222
93
 
223
- // node_modules/.pnpm/@earendil-works+pi-ai@1.4.0_@aws-sdk+credential-provider-node@3.972.83_@smithy+signatur_c4dd529f1cf5cdf12d9a6e2070ccac62/node_modules/@earendil-works/pi-ai/dist/api/openai-codex-responses.js
94
+ // node_modules/.pnpm/@earendil-works+pi-ai@1.5.1_@aws-sdk+credential-provider-node@3.972.83_@smithy+signatur_e7d72008f907c45a36788e380ed24019/node_modules/@earendil-works/pi-ai/dist/api/openai-codex-responses.js
224
95
  var DEFAULT_CODEX_BASE_URL = "https://chatgpt.com/backend-api";
225
96
  var JWT_CLAIM_PATH = "https://api.openai.com/auth";
226
97
  var DEFAULT_MAX_RETRIES = 0;
@@ -297,11 +168,15 @@ function sleep(ms, signal) {
297
168
  reject(new Error("Request was aborted"));
298
169
  return;
299
170
  }
300
- const timeout = setTimeout(resolve, ms);
301
- signal?.addEventListener("abort", () => {
171
+ const onAbort = () => {
302
172
  clearTimeout(timeout);
303
173
  reject(new Error("Request was aborted"));
304
- });
174
+ };
175
+ const timeout = setTimeout(() => {
176
+ signal?.removeEventListener("abort", onAbort);
177
+ resolve();
178
+ }, ms);
179
+ signal?.addEventListener("abort", onAbort, { once: true });
305
180
  });
306
181
  }
307
182
  function normalizeTimeoutMs(value) {
@@ -516,10 +391,6 @@ var stream = (model, context, options) => {
516
391
  stream2.push({ type: "done", reason: output.stopReason, message: output });
517
392
  stream2.end();
518
393
  } catch (error) {
519
- for (const block of output.content) {
520
- delete block.partialJson;
521
- delete block.customInput;
522
- }
523
394
  output.stopReason = options?.signal?.aborted ? "aborted" : "error";
524
395
  output.errorMessage = formatProviderError(normalizeProviderError(error));
525
396
  stream2.push({ type: "error", reason: output.stopReason, error: output });