@nervekit/desktop 0.40.0 → 0.40.1

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 (37) hide show
  1. package/THIRD-PARTY-LICENSES.txt +5087 -463
  2. package/dist/{chunk-D5WJKB4R.js → chunk-24GQ74HM.js} +1 -0
  3. package/dist/{chunk-ET5RYBGZ.js → chunk-3DGBM7UW.js} +1 -1
  4. package/dist/{chunk-5UT23MT6.js → chunk-4MMJDHFX.js} +3 -3
  5. package/dist/{chunk-RWLLVZ7I.js → chunk-55OGZFNA.js} +1 -1
  6. package/dist/{chunk-BPOIFVQO.js → chunk-AJGPULMX.js} +2543 -124
  7. package/dist/{chunk-PUM6UCBT.js → chunk-CKVFGRVV.js} +4 -4
  8. package/dist/{chunk-GCSWN326.js → chunk-CWHAK2HX.js} +3 -3
  9. package/dist/{chunk-V7EAFXAX.js → chunk-D7WIIZAV.js} +4 -4
  10. package/dist/chunk-EJM4HMEL.js +45 -0
  11. package/dist/{chunk-4ZNLXHTH.js → chunk-FOFVPPPV.js} +4 -4
  12. package/dist/{chunk-UN3GLM4U.js → chunk-H5UKINTD.js} +2 -2
  13. package/dist/{chunk-LPCHTKEK.js → chunk-I6NVW4NX.js} +8 -133
  14. package/dist/chunk-JCF3ZRP4.js +481 -0
  15. package/dist/chunk-KAZFF2RD.js +22804 -0
  16. package/dist/{chunk-LZRPWVVJ.js → chunk-KIGB3FK6.js} +3 -3
  17. package/dist/{chunk-JDI4D5EM.js → chunk-KQPEOUCA.js} +4 -4
  18. package/dist/chunk-M7WTH5K5.js +822 -0
  19. package/dist/chunk-MH3SUHI2.js +135 -0
  20. package/dist/{chunk-5R3UAHXF.js → chunk-N5B2RRSS.js} +2 -1
  21. package/dist/{chunk-P2GSKP6N.js → chunk-ONWQH2W6.js} +4 -4
  22. package/dist/{chunk-Q7LPOIKN.js → chunk-OQC3F6JA.js} +3 -471
  23. package/dist/{chunk-H4CDZRIE.js → chunk-OY6PIAR7.js} +2 -2
  24. package/dist/{chunk-HHUSIAK3.js → chunk-QFXKQNMT.js} +4 -4
  25. package/dist/{chunk-U4DBQKHO.js → chunk-QWTKCUIZ.js} +1 -1
  26. package/dist/{chunk-RU6S57LK.js → chunk-TJR6ASRW.js} +4 -4
  27. package/dist/{chunk-YA2WJRUO.js → chunk-TW6FURZ7.js} +2 -2
  28. package/dist/{chunk-7FI3LC3O.js → chunk-V53CETNZ.js} +3 -3
  29. package/dist/{chunk-NSA42OOT.js → chunk-WXRYBXYR.js} +1 -1
  30. package/dist/{chunk-WTHP3VH6.js → chunk-XBHEYY65.js} +1 -1
  31. package/dist/chunk-YYLKI74V.js +8778 -0
  32. package/dist/daemon.js +5 -5
  33. package/dist/main.js +4 -4
  34. package/dist/worker.js +4 -4
  35. package/package.json +7 -7
  36. /package/dist/{chunk-PUM6UCBT.js.LEGAL.txt → chunk-CKVFGRVV.js.LEGAL.txt} +0 -0
  37. /package/dist/{chunk-YA2WJRUO.js.LEGAL.txt → chunk-TW6FURZ7.js.LEGAL.txt} +0 -0
@@ -7,7 +7,7 @@ import {
7
7
  getJsonSchemaToolParameters,
8
8
  resolveJsonSchemaStrictSampling,
9
9
  transformMessages
10
- } from "./chunk-5R3UAHXF.js";
10
+ } from "./chunk-N5B2RRSS.js";
11
11
  import {
12
12
  sanitizeSurrogates
13
13
  } from "./chunk-2Z5FLMLE.js";
@@ -18,7 +18,7 @@ import {
18
18
  clampThinkingLevel,
19
19
  collapseSystemMessages,
20
20
  withoutInitialSystemMessage
21
- } from "./chunk-NSA42OOT.js";
21
+ } from "./chunk-WXRYBXYR.js";
22
22
  import {
23
23
  __commonJS,
24
24
  __require,
@@ -1336,7 +1336,7 @@ Content-Type: ${partContentType}\r
1336
1336
  * @returns A proxy agent
1337
1337
  */
1338
1338
  static async #getProxyAgent() {
1339
- this.#proxyAgent ||= (await import("./chunk-Q7LPOIKN.js")).HttpsProxyAgent;
1339
+ this.#proxyAgent ||= (await import("./chunk-JCF3ZRP4.js")).HttpsProxyAgent;
1340
1340
  return this.#proxyAgent;
1341
1341
  }
1342
1342
  static async #getFetch() {
@@ -33630,4 +33630,4 @@ export {
33630
33630
  mapStopReason,
33631
33631
  retryGoogleRequest
33632
33632
  };
33633
- /*! For license information please see chunk-PUM6UCBT.js.LEGAL.txt */
33633
+ /*! For license information please see chunk-CKVFGRVV.js.LEGAL.txt */
@@ -15,7 +15,7 @@ import {
15
15
  getJsonSchemaToolParameters,
16
16
  resolveJsonSchemaStrictSampling,
17
17
  transformMessages
18
- } from "./chunk-5R3UAHXF.js";
18
+ } from "./chunk-N5B2RRSS.js";
19
19
  import {
20
20
  sanitizeSurrogates
21
21
  } from "./chunk-2Z5FLMLE.js";
@@ -29,13 +29,13 @@ import {
29
29
  getSystemMessageText,
30
30
  renderSystemMessageUpdate,
31
31
  resolveTranscript
32
- } from "./chunk-NSA42OOT.js";
32
+ } from "./chunk-WXRYBXYR.js";
33
33
  import {
34
34
  AssistantMessageEventStream
35
35
  } from "./chunk-MN7PZ2PH.js";
36
36
  import {
37
37
  getIdentityHeaders
38
- } from "./chunk-D5WJKB4R.js";
38
+ } from "./chunk-24GQ74HM.js";
39
39
  import "./chunk-CWESUMYQ.js";
40
40
 
41
41
  // 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/mistral-conversations.js
@@ -2,16 +2,16 @@ import { createRequire as __nerveCreateRequire } from "node:module";
2
2
  const require = __nerveCreateRequire(import.meta.url);
3
3
  import {
4
4
  classifySystemOne
5
- } from "./chunk-ET5RYBGZ.js";
5
+ } from "./chunk-3DGBM7UW.js";
6
6
  import {
7
7
  isRecord
8
- } from "./chunk-H4CDZRIE.js";
8
+ } from "./chunk-OY6PIAR7.js";
9
9
  import "./chunk-AON37AL2.js";
10
10
  import "./chunk-SQ7CWNIT.js";
11
11
  import "./chunk-CEX2GWGZ.js";
12
- import "./chunk-NSA42OOT.js";
12
+ import "./chunk-WXRYBXYR.js";
13
13
  import "./chunk-MN7PZ2PH.js";
14
- import "./chunk-D5WJKB4R.js";
14
+ import "./chunk-24GQ74HM.js";
15
15
  import "./chunk-CWESUMYQ.js";
16
16
 
17
17
  // 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/cloudflare-workers-ai-system-one.js
@@ -0,0 +1,45 @@
1
+ import { createRequire as __nerveCreateRequire } from "node:module";
2
+ const require = __nerveCreateRequire(import.meta.url);
3
+ import {
4
+ EventStreamCodec,
5
+ EventStreamMarshaller,
6
+ EventStreamMarshaller2,
7
+ EventStreamSerde,
8
+ HeaderMarshaller,
9
+ Int64,
10
+ MessageDecoderStream,
11
+ MessageEncoderStream,
12
+ SmithyMessageDecoderStream,
13
+ SmithyMessageEncoderStream,
14
+ eventStreamSerdeProvider,
15
+ eventStreamSerdeProvider2,
16
+ getChunkedStream,
17
+ getMessageUnmarshaller,
18
+ getUnmarshalledStream,
19
+ init_event_streams,
20
+ iterableToReadableStream,
21
+ readableStreamToIterable,
22
+ resolveEventStreamSerdeConfig
23
+ } from "./chunk-YYLKI74V.js";
24
+ import "./chunk-CWESUMYQ.js";
25
+ init_event_streams();
26
+ export {
27
+ EventStreamCodec,
28
+ EventStreamMarshaller2 as EventStreamMarshaller,
29
+ EventStreamSerde,
30
+ HeaderMarshaller,
31
+ Int64,
32
+ MessageDecoderStream,
33
+ MessageEncoderStream,
34
+ SmithyMessageDecoderStream,
35
+ SmithyMessageEncoderStream,
36
+ EventStreamMarshaller as UniversalEventStreamMarshaller,
37
+ eventStreamSerdeProvider2 as eventStreamSerdeProvider,
38
+ getChunkedStream,
39
+ getMessageUnmarshaller,
40
+ getUnmarshalledStream,
41
+ iterableToReadableStream,
42
+ readableStreamToIterable,
43
+ resolveEventStreamSerdeConfig,
44
+ eventStreamSerdeProvider as universalEventStreamSerdeProvider
45
+ };
@@ -2,16 +2,16 @@ import { createRequire as __nerveCreateRequire } from "node:module";
2
2
  const require = __nerveCreateRequire(import.meta.url);
3
3
  import {
4
4
  classifySystemOne
5
- } from "./chunk-ET5RYBGZ.js";
5
+ } from "./chunk-3DGBM7UW.js";
6
6
  import {
7
7
  isRecord
8
- } from "./chunk-H4CDZRIE.js";
8
+ } from "./chunk-OY6PIAR7.js";
9
9
  import "./chunk-AON37AL2.js";
10
10
  import "./chunk-SQ7CWNIT.js";
11
11
  import "./chunk-CEX2GWGZ.js";
12
- import "./chunk-NSA42OOT.js";
12
+ import "./chunk-WXRYBXYR.js";
13
13
  import "./chunk-MN7PZ2PH.js";
14
- import "./chunk-D5WJKB4R.js";
14
+ import "./chunk-24GQ74HM.js";
15
15
  import "./chunk-CWESUMYQ.js";
16
16
 
17
17
  // 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/typesafe-system-one.js
@@ -14,7 +14,7 @@ import {
14
14
  resolveGrammarConstrainedSampling,
15
15
  resolveJsonSchemaStrictSampling,
16
16
  transformMessages
17
- } from "./chunk-5R3UAHXF.js";
17
+ } from "./chunk-N5B2RRSS.js";
18
18
  import {
19
19
  sanitizeSurrogates
20
20
  } from "./chunk-2Z5FLMLE.js";
@@ -24,7 +24,7 @@ import {
24
24
  renderSystemMessageUpdate,
25
25
  resolveTranscript,
26
26
  resolveTranscriptTools
27
- } from "./chunk-NSA42OOT.js";
27
+ } from "./chunk-WXRYBXYR.js";
28
28
 
29
29
  // 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-responses-shared.js
30
30
  function encodeTextSignatureV1(id, phase) {
@@ -1,5 +1,8 @@
1
1
  import { createRequire as __nerveCreateRequire } from "node:module";
2
2
  const require = __nerveCreateRequire(import.meta.url);
3
+ import {
4
+ resolveHttpProxyUrlForTarget
5
+ } from "./chunk-MH3SUHI2.js";
3
6
  import {
4
7
  combineAbortSignals
5
8
  } from "./chunk-XNYZEQ3U.js";
@@ -8,7 +11,7 @@ import {
8
11
  convertResponsesTools,
9
12
  getResponsesToolSupport,
10
13
  processResponsesStream
11
- } from "./chunk-UN3GLM4U.js";
14
+ } from "./chunk-H5UKINTD.js";
12
15
  import {
13
16
  clampOpenAIPromptCacheKey
14
17
  } from "./chunk-UGDIHDAR.js";
@@ -17,7 +20,7 @@ import "./chunk-RUZ2UAYH.js";
17
20
  import {
18
21
  buildBaseOptions,
19
22
  createGrammarToolInputProperties
20
- } from "./chunk-5R3UAHXF.js";
23
+ } from "./chunk-N5B2RRSS.js";
21
24
  import "./chunk-2Z5FLMLE.js";
22
25
  import {
23
26
  formatProviderError,
@@ -26,9 +29,7 @@ import {
26
29
  import {
27
30
  headersToRecord
28
31
  } from "./chunk-CEX2GWGZ.js";
29
- import {
30
- getProviderEnvValue
31
- } from "./chunk-FESN7DND.js";
32
+ import "./chunk-FESN7DND.js";
32
33
  import {
33
34
  clampThinkingLevel,
34
35
  getDeclaredTools,
@@ -37,7 +38,7 @@ import {
37
38
  normalizeContext,
38
39
  resolveTranscript,
39
40
  resolveTranscriptTools
40
- } from "./chunk-NSA42OOT.js";
41
+ } from "./chunk-WXRYBXYR.js";
41
42
  import {
42
43
  AssistantMessageEventStream,
43
44
  appendAssistantMessageDiagnostic,
@@ -46,7 +47,7 @@ import {
46
47
  } from "./chunk-MN7PZ2PH.js";
47
48
  import {
48
49
  getIdentityHeaders
49
- } from "./chunk-D5WJKB4R.js";
50
+ } from "./chunk-24GQ74HM.js";
50
51
  import "./chunk-CWESUMYQ.js";
51
52
 
52
53
  // 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
@@ -58,132 +59,6 @@ function registerSessionResourceCleanup(cleanup) {
58
59
  };
59
60
  }
60
61
 
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
62
  // 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
188
63
  var MAX_UUID_V7_TIMESTAMP = 281474976710655;
189
64
  var MAX_SEQUENCE = (1n << 41n) - 1n;