linkque-cli-v2 1.3.2 → 1.3.4
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/linkquejs.js +1188 -570
- package/package.json +1 -1
- package/vendor/linkque-agent-appwrite-integrate/dist/esm/{anthropic-messages-YOPI234A.js → anthropic-messages-EL2IU4YU.js} +7 -7
- package/vendor/linkque-agent-appwrite-integrate/dist/esm/{azure-openai-responses-67YPFLZQ.js → azure-openai-responses-A4XURCOX.js} +9 -9
- package/vendor/linkque-agent-appwrite-integrate/dist/esm/{chunk-JQKPMWIR.js → chunk-23PMJWOG.js} +37 -28
- package/vendor/linkque-agent-appwrite-integrate/dist/esm/{chunk-VS2QQHAK.js → chunk-2ESYSVXG.js} +3 -1
- package/vendor/linkque-agent-appwrite-integrate/dist/esm/{chunk-OXGCUIKV.js → chunk-B5XRGKYX.js} +1 -1
- package/vendor/linkque-agent-appwrite-integrate/dist/esm/{chunk-2NGJGNYB.js → chunk-ETG6PNHQ.js} +1 -1
- package/vendor/linkque-agent-appwrite-integrate/dist/esm/{chunk-7BQRUS4C.js → chunk-FC7MJHC3.js} +1 -1
- package/vendor/linkque-agent-appwrite-integrate/dist/esm/chunk-G64JTU26.js +20 -0
- package/vendor/linkque-agent-appwrite-integrate/dist/esm/{chunk-I64V3ICJ.js → chunk-GAYNLDWK.js} +1 -1
- package/vendor/linkque-agent-appwrite-integrate/dist/esm/{chunk-6WHNFJT4.js → chunk-GQ4TD3EQ.js} +6 -6
- package/vendor/linkque-agent-appwrite-integrate/dist/esm/chunk-HM7KNEG3.js +1639 -0
- package/vendor/linkque-agent-appwrite-integrate/dist/esm/{chunk-MKS245OU.js → chunk-IWOFD643.js} +2 -2
- package/vendor/linkque-agent-appwrite-integrate/dist/esm/{chunk-YDKZZ6EH.js → chunk-PXCGFBV5.js} +2 -2
- package/vendor/linkque-agent-appwrite-integrate/dist/esm/{chunk-LSBJJGJC.js → chunk-Q2Y6LMNC.js} +3 -3
- package/vendor/linkque-agent-appwrite-integrate/dist/esm/{chunk-UEVQXSKG.js → chunk-RR2GJPNV.js} +1 -1
- package/vendor/linkque-agent-appwrite-integrate/dist/esm/{chunk-NIEA4H2C.js → chunk-VSZ3UDC7.js} +1 -1
- package/vendor/linkque-agent-appwrite-integrate/dist/esm/{chunk-DYEQRE6N.js → chunk-WJHOHUET.js} +1 -1
- package/vendor/linkque-agent-appwrite-integrate/dist/esm/{chunk-MDZWPPOW.js → chunk-YSRA6KFZ.js} +2663 -1236
- package/vendor/linkque-agent-appwrite-integrate/dist/esm/{dist-QD3CV4KC.js → dist-TGBYXSBU.js} +1 -1
- package/vendor/linkque-agent-appwrite-integrate/dist/esm/getMachineId-bsd-H2ZLZRGB.js +40 -0
- package/vendor/linkque-agent-appwrite-integrate/dist/esm/getMachineId-darwin-HUKYR46U.js +39 -0
- package/vendor/linkque-agent-appwrite-integrate/dist/esm/getMachineId-linux-M5ZADHBA.js +33 -0
- package/vendor/linkque-agent-appwrite-integrate/dist/esm/getMachineId-unsupported-BM5RZZVM.js +23 -0
- package/vendor/linkque-agent-appwrite-integrate/dist/esm/getMachineId-win-BQPUF5TW.js +42 -0
- package/vendor/linkque-agent-appwrite-integrate/dist/esm/{google-generative-ai-R5DASQKW.js → google-generative-ai-ENBYCHYT.js} +3 -3
- package/vendor/linkque-agent-appwrite-integrate/dist/esm/{google-vertex-OLX2NFGJ.js → google-vertex-RIGAEYLC.js} +6 -6
- package/vendor/linkque-agent-appwrite-integrate/dist/esm/{mistral-conversations-L6T7EWC2.js → mistral-conversations-TQA2MPJJ.js} +24 -24
- package/vendor/linkque-agent-appwrite-integrate/dist/esm/{multipart-parser-AJMV6U6H.js → multipart-parser-BXFNUG5H.js} +2 -2
- package/vendor/linkque-agent-appwrite-integrate/dist/esm/{multipart-parser-PULXGNYO.js → multipart-parser-TAD6XL3Q.js} +2 -2
- package/vendor/linkque-agent-appwrite-integrate/dist/esm/{multipart-parser-2VJ7LVQD.js → multipart-parser-ZRVTGJCT.js} +2 -2
- package/vendor/linkque-agent-appwrite-integrate/dist/esm/{openai-codex-responses-7QJMWGY5.js → openai-codex-responses-WLREQPZK.js} +14 -14
- package/vendor/linkque-agent-appwrite-integrate/dist/esm/{openai-completions-75YD6VJJ.js → openai-completions-U6LUBY4P.js} +10 -10
- package/vendor/linkque-agent-appwrite-integrate/dist/esm/{openai-responses-G6MVJCGC.js → openai-responses-SFZAU5JA.js} +9 -9
- package/vendor/linkque-agent-appwrite-integrate/dist/esm/{openrouter-images-LMBZZQ76.js → openrouter-images-VSKAO4O5.js} +1 -1
- package/vendor/linkque-agent-appwrite-integrate/dist/esm/{otel-7GSG7QQO.js → otel-RXJWJ2TU.js} +277 -1206
- package/vendor/linkque-agent-appwrite-integrate/dist/esm/{pi-messages-ZX3KUWSZ.js → pi-messages-QQA6ZGV2.js} +8 -8
- package/vendor/linkque-agent-appwrite-integrate/dist/esm/runtime/handler/chat.js +1458 -400
- package/vendor/linkque-agent-appwrite-integrate/dist/esm/runtime/handler/clientCapability.js +8 -7
- package/vendor/linkque-agent-appwrite-integrate/dist/esm/runtime/protocol.js +5 -4
- package/vendor/linkque-agent-appwrite-integrate/dist/esm/{src-NGZW4JXI.js → src-JSJTYJV5.js} +3 -3
- package/worker.js +22311 -4507
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import {
|
|
2
|
+
require_execAsync
|
|
3
|
+
} from "./chunk-G64JTU26.js";
|
|
4
|
+
import {
|
|
5
|
+
esm_exports,
|
|
6
|
+
init_esm
|
|
7
|
+
} from "./chunk-HM7KNEG3.js";
|
|
8
|
+
import {
|
|
9
|
+
__commonJS,
|
|
10
|
+
__require,
|
|
11
|
+
__toCommonJS
|
|
12
|
+
} from "./chunk-2ESYSVXG.js";
|
|
13
|
+
|
|
14
|
+
// ../../node_modules/@opentelemetry/resources/build/src/detectors/platform/node/machine-id/getMachineId-bsd.js
|
|
15
|
+
var require_getMachineId_bsd = __commonJS({
|
|
16
|
+
"../../node_modules/@opentelemetry/resources/build/src/detectors/platform/node/machine-id/getMachineId-bsd.js"(exports) {
|
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
exports.getMachineId = void 0;
|
|
19
|
+
var fs_1 = __require("fs");
|
|
20
|
+
var execAsync_1 = require_execAsync();
|
|
21
|
+
var api_1 = (init_esm(), __toCommonJS(esm_exports));
|
|
22
|
+
async function getMachineId() {
|
|
23
|
+
try {
|
|
24
|
+
const result = await fs_1.promises.readFile("/etc/hostid", { encoding: "utf8" });
|
|
25
|
+
return result.trim();
|
|
26
|
+
} catch (e) {
|
|
27
|
+
api_1.diag.debug(`error reading machine id: ${e}`);
|
|
28
|
+
}
|
|
29
|
+
try {
|
|
30
|
+
const result = await (0, execAsync_1.execAsync)("kenv -q smbios.system.uuid");
|
|
31
|
+
return result.stdout.trim();
|
|
32
|
+
} catch (e) {
|
|
33
|
+
api_1.diag.debug(`error reading machine id: ${e}`);
|
|
34
|
+
}
|
|
35
|
+
return void 0;
|
|
36
|
+
}
|
|
37
|
+
exports.getMachineId = getMachineId;
|
|
38
|
+
}
|
|
39
|
+
});
|
|
40
|
+
export default require_getMachineId_bsd();
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import {
|
|
2
|
+
require_execAsync
|
|
3
|
+
} from "./chunk-G64JTU26.js";
|
|
4
|
+
import {
|
|
5
|
+
esm_exports,
|
|
6
|
+
init_esm
|
|
7
|
+
} from "./chunk-HM7KNEG3.js";
|
|
8
|
+
import {
|
|
9
|
+
__commonJS,
|
|
10
|
+
__toCommonJS
|
|
11
|
+
} from "./chunk-2ESYSVXG.js";
|
|
12
|
+
|
|
13
|
+
// ../../node_modules/@opentelemetry/resources/build/src/detectors/platform/node/machine-id/getMachineId-darwin.js
|
|
14
|
+
var require_getMachineId_darwin = __commonJS({
|
|
15
|
+
"../../node_modules/@opentelemetry/resources/build/src/detectors/platform/node/machine-id/getMachineId-darwin.js"(exports) {
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
exports.getMachineId = void 0;
|
|
18
|
+
var execAsync_1 = require_execAsync();
|
|
19
|
+
var api_1 = (init_esm(), __toCommonJS(esm_exports));
|
|
20
|
+
async function getMachineId() {
|
|
21
|
+
try {
|
|
22
|
+
const result = await (0, execAsync_1.execAsync)('ioreg -rd1 -c "IOPlatformExpertDevice"');
|
|
23
|
+
const idLine = result.stdout.split("\n").find((line) => line.includes("IOPlatformUUID"));
|
|
24
|
+
if (!idLine) {
|
|
25
|
+
return void 0;
|
|
26
|
+
}
|
|
27
|
+
const parts = idLine.split('" = "');
|
|
28
|
+
if (parts.length === 2) {
|
|
29
|
+
return parts[1].slice(0, -1);
|
|
30
|
+
}
|
|
31
|
+
} catch (e) {
|
|
32
|
+
api_1.diag.debug(`error reading machine id: ${e}`);
|
|
33
|
+
}
|
|
34
|
+
return void 0;
|
|
35
|
+
}
|
|
36
|
+
exports.getMachineId = getMachineId;
|
|
37
|
+
}
|
|
38
|
+
});
|
|
39
|
+
export default require_getMachineId_darwin();
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import {
|
|
2
|
+
esm_exports,
|
|
3
|
+
init_esm
|
|
4
|
+
} from "./chunk-HM7KNEG3.js";
|
|
5
|
+
import {
|
|
6
|
+
__commonJS,
|
|
7
|
+
__require,
|
|
8
|
+
__toCommonJS
|
|
9
|
+
} from "./chunk-2ESYSVXG.js";
|
|
10
|
+
|
|
11
|
+
// ../../node_modules/@opentelemetry/resources/build/src/detectors/platform/node/machine-id/getMachineId-linux.js
|
|
12
|
+
var require_getMachineId_linux = __commonJS({
|
|
13
|
+
"../../node_modules/@opentelemetry/resources/build/src/detectors/platform/node/machine-id/getMachineId-linux.js"(exports) {
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.getMachineId = void 0;
|
|
16
|
+
var fs_1 = __require("fs");
|
|
17
|
+
var api_1 = (init_esm(), __toCommonJS(esm_exports));
|
|
18
|
+
async function getMachineId() {
|
|
19
|
+
const paths = ["/etc/machine-id", "/var/lib/dbus/machine-id"];
|
|
20
|
+
for (const path of paths) {
|
|
21
|
+
try {
|
|
22
|
+
const result = await fs_1.promises.readFile(path, { encoding: "utf8" });
|
|
23
|
+
return result.trim();
|
|
24
|
+
} catch (e) {
|
|
25
|
+
api_1.diag.debug(`error reading machine id: ${e}`);
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
return void 0;
|
|
29
|
+
}
|
|
30
|
+
exports.getMachineId = getMachineId;
|
|
31
|
+
}
|
|
32
|
+
});
|
|
33
|
+
export default require_getMachineId_linux();
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import {
|
|
2
|
+
esm_exports,
|
|
3
|
+
init_esm
|
|
4
|
+
} from "./chunk-HM7KNEG3.js";
|
|
5
|
+
import {
|
|
6
|
+
__commonJS,
|
|
7
|
+
__toCommonJS
|
|
8
|
+
} from "./chunk-2ESYSVXG.js";
|
|
9
|
+
|
|
10
|
+
// ../../node_modules/@opentelemetry/resources/build/src/detectors/platform/node/machine-id/getMachineId-unsupported.js
|
|
11
|
+
var require_getMachineId_unsupported = __commonJS({
|
|
12
|
+
"../../node_modules/@opentelemetry/resources/build/src/detectors/platform/node/machine-id/getMachineId-unsupported.js"(exports) {
|
|
13
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
+
exports.getMachineId = void 0;
|
|
15
|
+
var api_1 = (init_esm(), __toCommonJS(esm_exports));
|
|
16
|
+
async function getMachineId() {
|
|
17
|
+
api_1.diag.debug("could not read machine-id: unsupported platform");
|
|
18
|
+
return void 0;
|
|
19
|
+
}
|
|
20
|
+
exports.getMachineId = getMachineId;
|
|
21
|
+
}
|
|
22
|
+
});
|
|
23
|
+
export default require_getMachineId_unsupported();
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import {
|
|
2
|
+
require_execAsync
|
|
3
|
+
} from "./chunk-G64JTU26.js";
|
|
4
|
+
import {
|
|
5
|
+
esm_exports,
|
|
6
|
+
init_esm
|
|
7
|
+
} from "./chunk-HM7KNEG3.js";
|
|
8
|
+
import {
|
|
9
|
+
__commonJS,
|
|
10
|
+
__require,
|
|
11
|
+
__toCommonJS
|
|
12
|
+
} from "./chunk-2ESYSVXG.js";
|
|
13
|
+
|
|
14
|
+
// ../../node_modules/@opentelemetry/resources/build/src/detectors/platform/node/machine-id/getMachineId-win.js
|
|
15
|
+
var require_getMachineId_win = __commonJS({
|
|
16
|
+
"../../node_modules/@opentelemetry/resources/build/src/detectors/platform/node/machine-id/getMachineId-win.js"(exports) {
|
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
exports.getMachineId = void 0;
|
|
19
|
+
var process = __require("process");
|
|
20
|
+
var execAsync_1 = require_execAsync();
|
|
21
|
+
var api_1 = (init_esm(), __toCommonJS(esm_exports));
|
|
22
|
+
async function getMachineId() {
|
|
23
|
+
const args = "QUERY HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Cryptography /v MachineGuid";
|
|
24
|
+
let command = "%windir%\\System32\\REG.exe";
|
|
25
|
+
if (process.arch === "ia32" && "PROCESSOR_ARCHITEW6432" in process.env) {
|
|
26
|
+
command = "%windir%\\sysnative\\cmd.exe /c " + command;
|
|
27
|
+
}
|
|
28
|
+
try {
|
|
29
|
+
const result = await (0, execAsync_1.execAsync)(`${command} ${args}`);
|
|
30
|
+
const parts = result.stdout.split("REG_SZ");
|
|
31
|
+
if (parts.length === 2) {
|
|
32
|
+
return parts[1].trim();
|
|
33
|
+
}
|
|
34
|
+
} catch (e) {
|
|
35
|
+
api_1.diag.debug(`error reading machine id: ${e}`);
|
|
36
|
+
}
|
|
37
|
+
return void 0;
|
|
38
|
+
}
|
|
39
|
+
exports.getMachineId = getMachineId;
|
|
40
|
+
}
|
|
41
|
+
});
|
|
42
|
+
export default require_getMachineId_win();
|
|
@@ -6,8 +6,7 @@ import {
|
|
|
6
6
|
mapStopReason,
|
|
7
7
|
mapToolChoice,
|
|
8
8
|
retainThoughtSignature
|
|
9
|
-
} from "./chunk-
|
|
10
|
-
import "./chunk-2NGJGNYB.js";
|
|
9
|
+
} from "./chunk-GQ4TD3EQ.js";
|
|
11
10
|
import {
|
|
12
11
|
formatProviderError,
|
|
13
12
|
normalizeProviderError
|
|
@@ -28,7 +27,8 @@ import {
|
|
|
28
27
|
import {
|
|
29
28
|
AssistantMessageEventStream
|
|
30
29
|
} from "./chunk-46SEH6ER.js";
|
|
31
|
-
import "./chunk-
|
|
30
|
+
import "./chunk-ETG6PNHQ.js";
|
|
31
|
+
import "./chunk-2ESYSVXG.js";
|
|
32
32
|
|
|
33
33
|
// ../../node_modules/@earendil-works/pi-ai/dist/api/google-generative-ai.js
|
|
34
34
|
var toolCallCounter = 0;
|
|
@@ -8,8 +8,7 @@ import {
|
|
|
8
8
|
mapStopReason,
|
|
9
9
|
mapToolChoice,
|
|
10
10
|
retainThoughtSignature
|
|
11
|
-
} from "./chunk-
|
|
12
|
-
import "./chunk-2NGJGNYB.js";
|
|
11
|
+
} from "./chunk-GQ4TD3EQ.js";
|
|
13
12
|
import {
|
|
14
13
|
formatProviderError,
|
|
15
14
|
normalizeProviderError
|
|
@@ -23,17 +22,18 @@ import {
|
|
|
23
22
|
import {
|
|
24
23
|
providerHeadersToRecord
|
|
25
24
|
} from "./chunk-Y6UTJIT4.js";
|
|
25
|
+
import {
|
|
26
|
+
getProviderEnvValue
|
|
27
|
+
} from "./chunk-B5XRGKYX.js";
|
|
26
28
|
import {
|
|
27
29
|
calculateCost,
|
|
28
30
|
clampThinkingLevel
|
|
29
31
|
} from "./chunk-Y3G4J3TB.js";
|
|
30
|
-
import {
|
|
31
|
-
getProviderEnvValue
|
|
32
|
-
} from "./chunk-OXGCUIKV.js";
|
|
33
32
|
import {
|
|
34
33
|
AssistantMessageEventStream
|
|
35
34
|
} from "./chunk-46SEH6ER.js";
|
|
36
|
-
import "./chunk-
|
|
35
|
+
import "./chunk-ETG6PNHQ.js";
|
|
36
|
+
import "./chunk-2ESYSVXG.js";
|
|
37
37
|
|
|
38
38
|
// ../../node_modules/@earendil-works/pi-ai/dist/api/google-vertex.js
|
|
39
39
|
var API_VERSION = "v1";
|
|
@@ -1,3 +1,13 @@
|
|
|
1
|
+
import {
|
|
2
|
+
shortHash
|
|
3
|
+
} from "./chunk-UFVAKOTZ.js";
|
|
4
|
+
import {
|
|
5
|
+
buildBaseOptions,
|
|
6
|
+
transformMessages
|
|
7
|
+
} from "./chunk-RYONFGPP.js";
|
|
8
|
+
import {
|
|
9
|
+
sanitizeSurrogates
|
|
10
|
+
} from "./chunk-CT4G24PS.js";
|
|
1
11
|
import {
|
|
2
12
|
BuiltInConnectors$inboundSchema,
|
|
3
13
|
BuiltInConnectors$outboundSchema,
|
|
@@ -33,7 +43,17 @@ import {
|
|
|
33
43
|
safeParse,
|
|
34
44
|
smartUnion,
|
|
35
45
|
unwrapAsync
|
|
36
|
-
} from "./chunk-
|
|
46
|
+
} from "./chunk-FC7MJHC3.js";
|
|
47
|
+
import {
|
|
48
|
+
parseStreamingJson
|
|
49
|
+
} from "./chunk-WJHOHUET.js";
|
|
50
|
+
import {
|
|
51
|
+
calculateCost,
|
|
52
|
+
clampThinkingLevel
|
|
53
|
+
} from "./chunk-Y3G4J3TB.js";
|
|
54
|
+
import {
|
|
55
|
+
AssistantMessageEventStream
|
|
56
|
+
} from "./chunk-46SEH6ER.js";
|
|
37
57
|
import {
|
|
38
58
|
zodToJsonSchema
|
|
39
59
|
} from "./chunk-XUFLSZM4.js";
|
|
@@ -59,28 +79,8 @@ import {
|
|
|
59
79
|
record,
|
|
60
80
|
string,
|
|
61
81
|
union
|
|
62
|
-
} from "./chunk-
|
|
63
|
-
import
|
|
64
|
-
shortHash
|
|
65
|
-
} from "./chunk-UFVAKOTZ.js";
|
|
66
|
-
import {
|
|
67
|
-
buildBaseOptions,
|
|
68
|
-
transformMessages
|
|
69
|
-
} from "./chunk-RYONFGPP.js";
|
|
70
|
-
import {
|
|
71
|
-
sanitizeSurrogates
|
|
72
|
-
} from "./chunk-CT4G24PS.js";
|
|
73
|
-
import {
|
|
74
|
-
calculateCost,
|
|
75
|
-
clampThinkingLevel
|
|
76
|
-
} from "./chunk-Y3G4J3TB.js";
|
|
77
|
-
import {
|
|
78
|
-
parseStreamingJson
|
|
79
|
-
} from "./chunk-DYEQRE6N.js";
|
|
80
|
-
import {
|
|
81
|
-
AssistantMessageEventStream
|
|
82
|
-
} from "./chunk-46SEH6ER.js";
|
|
83
|
-
import "./chunk-VS2QQHAK.js";
|
|
82
|
+
} from "./chunk-GAYNLDWK.js";
|
|
83
|
+
import "./chunk-2ESYSVXG.js";
|
|
84
84
|
|
|
85
85
|
// ../../node_modules/@mistralai/mistralai/esm/lib/url.js
|
|
86
86
|
var hasOwn = Object.prototype.hasOwnProperty;
|
|
@@ -390,7 +390,7 @@ async function getObservabilityModule() {
|
|
|
390
390
|
return observabilityModule;
|
|
391
391
|
}
|
|
392
392
|
try {
|
|
393
|
-
observabilityModule = await import("./otel-
|
|
393
|
+
observabilityModule = await import("./otel-RXJWJ2TU.js");
|
|
394
394
|
} catch {
|
|
395
395
|
observabilityModule = null;
|
|
396
396
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
require_node,
|
|
3
3
|
require_node_fetch_native_with_agent_61758d11
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-PXCGFBV5.js";
|
|
5
5
|
import {
|
|
6
6
|
__commonJS,
|
|
7
7
|
__require
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-2ESYSVXG.js";
|
|
9
9
|
|
|
10
10
|
// ../../node_modules/node-fetch-native-with-agent/dist/chunks/multipart-parser.cjs
|
|
11
11
|
var require_multipart_parser = __commonJS({
|
|
@@ -3,10 +3,10 @@ import {
|
|
|
3
3
|
file_default,
|
|
4
4
|
init_esm_min,
|
|
5
5
|
init_from
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-RR2GJPNV.js";
|
|
7
7
|
import {
|
|
8
8
|
__esm
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-2ESYSVXG.js";
|
|
10
10
|
|
|
11
11
|
// ../../node_modules/gaxios/node_modules/node-fetch/src/utils/multipart-parser.js
|
|
12
12
|
function _fileName(headerValue) {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
On,
|
|
3
3
|
br
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import "./chunk-
|
|
4
|
+
} from "./chunk-IWOFD643.js";
|
|
5
|
+
import "./chunk-2ESYSVXG.js";
|
|
6
6
|
|
|
7
7
|
// ../../node_modules/node-fetch-native-with-agent/dist/chunks/multipart-parser.mjs
|
|
8
8
|
var B = Object.defineProperty;
|
|
@@ -1,11 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
registerSessionResourceCleanup
|
|
3
|
-
} from "./chunk-6MHDOBWO.js";
|
|
4
|
-
import {
|
|
5
|
-
appendAssistantMessageDiagnostic,
|
|
6
|
-
createAssistantMessageDiagnostic,
|
|
7
|
-
formatThrownValue
|
|
8
|
-
} from "./chunk-E2P6TIFG.js";
|
|
9
1
|
import {
|
|
10
2
|
splitDeferredTools
|
|
11
3
|
} from "./chunk-HTG7JBF2.js";
|
|
@@ -13,7 +5,7 @@ import {
|
|
|
13
5
|
convertResponsesMessages,
|
|
14
6
|
convertResponsesTools,
|
|
15
7
|
processResponsesStream
|
|
16
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-Q2Y6LMNC.js";
|
|
17
9
|
import "./chunk-UFVAKOTZ.js";
|
|
18
10
|
import {
|
|
19
11
|
clampOpenAIPromptCacheKey
|
|
@@ -30,16 +22,24 @@ import {
|
|
|
30
22
|
headersToRecord
|
|
31
23
|
} from "./chunk-Y6UTJIT4.js";
|
|
32
24
|
import {
|
|
33
|
-
|
|
34
|
-
} from "./chunk-
|
|
25
|
+
registerSessionResourceCleanup
|
|
26
|
+
} from "./chunk-6MHDOBWO.js";
|
|
27
|
+
import {
|
|
28
|
+
appendAssistantMessageDiagnostic,
|
|
29
|
+
createAssistantMessageDiagnostic,
|
|
30
|
+
formatThrownValue
|
|
31
|
+
} from "./chunk-E2P6TIFG.js";
|
|
32
|
+
import "./chunk-WJHOHUET.js";
|
|
35
33
|
import {
|
|
36
34
|
getProviderEnvValue
|
|
37
|
-
} from "./chunk-
|
|
38
|
-
import
|
|
35
|
+
} from "./chunk-B5XRGKYX.js";
|
|
36
|
+
import {
|
|
37
|
+
clampThinkingLevel
|
|
38
|
+
} from "./chunk-Y3G4J3TB.js";
|
|
39
39
|
import {
|
|
40
40
|
AssistantMessageEventStream
|
|
41
41
|
} from "./chunk-46SEH6ER.js";
|
|
42
|
-
import "./chunk-
|
|
42
|
+
import "./chunk-2ESYSVXG.js";
|
|
43
43
|
|
|
44
44
|
// ../../node_modules/@earendil-works/pi-ai/dist/utils/abort-signals.js
|
|
45
45
|
function combineAbortSignals(signals) {
|
|
@@ -2,12 +2,12 @@ import {
|
|
|
2
2
|
buildCopilotDynamicHeaders,
|
|
3
3
|
hasCopilotVisionInput
|
|
4
4
|
} from "./chunk-XMVFOHGJ.js";
|
|
5
|
-
import {
|
|
6
|
-
OpenAI
|
|
7
|
-
} from "./chunk-7QWAKKTY.js";
|
|
8
5
|
import {
|
|
9
6
|
clampOpenAIPromptCacheKey
|
|
10
7
|
} from "./chunk-FHNQ6DPF.js";
|
|
8
|
+
import {
|
|
9
|
+
OpenAI
|
|
10
|
+
} from "./chunk-7QWAKKTY.js";
|
|
11
11
|
import {
|
|
12
12
|
formatProviderError,
|
|
13
13
|
normalizeProviderError
|
|
@@ -23,19 +23,19 @@ import {
|
|
|
23
23
|
headersToRecord
|
|
24
24
|
} from "./chunk-Y6UTJIT4.js";
|
|
25
25
|
import {
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
} from "./chunk-Y3G4J3TB.js";
|
|
26
|
+
parseStreamingJson
|
|
27
|
+
} from "./chunk-WJHOHUET.js";
|
|
29
28
|
import {
|
|
30
29
|
getProviderEnvValue
|
|
31
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-B5XRGKYX.js";
|
|
32
31
|
import {
|
|
33
|
-
|
|
34
|
-
|
|
32
|
+
calculateCost,
|
|
33
|
+
clampThinkingLevel
|
|
34
|
+
} from "./chunk-Y3G4J3TB.js";
|
|
35
35
|
import {
|
|
36
36
|
AssistantMessageEventStream
|
|
37
37
|
} from "./chunk-46SEH6ER.js";
|
|
38
|
-
import "./chunk-
|
|
38
|
+
import "./chunk-2ESYSVXG.js";
|
|
39
39
|
|
|
40
40
|
// ../../node_modules/@earendil-works/pi-ai/dist/api/openai-completions.js
|
|
41
41
|
function hasHeader(headers, name) {
|
|
@@ -9,14 +9,14 @@ import {
|
|
|
9
9
|
convertResponsesMessages,
|
|
10
10
|
convertResponsesTools,
|
|
11
11
|
processResponsesStream
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-Q2Y6LMNC.js";
|
|
13
13
|
import "./chunk-UFVAKOTZ.js";
|
|
14
|
-
import {
|
|
15
|
-
OpenAI
|
|
16
|
-
} from "./chunk-7QWAKKTY.js";
|
|
17
14
|
import {
|
|
18
15
|
clampOpenAIPromptCacheKey
|
|
19
16
|
} from "./chunk-FHNQ6DPF.js";
|
|
17
|
+
import {
|
|
18
|
+
OpenAI
|
|
19
|
+
} from "./chunk-7QWAKKTY.js";
|
|
20
20
|
import {
|
|
21
21
|
formatProviderError,
|
|
22
22
|
normalizeProviderError
|
|
@@ -28,17 +28,17 @@ import "./chunk-CT4G24PS.js";
|
|
|
28
28
|
import {
|
|
29
29
|
headersToRecord
|
|
30
30
|
} from "./chunk-Y6UTJIT4.js";
|
|
31
|
+
import "./chunk-WJHOHUET.js";
|
|
32
|
+
import {
|
|
33
|
+
getProviderEnvValue
|
|
34
|
+
} from "./chunk-B5XRGKYX.js";
|
|
31
35
|
import {
|
|
32
36
|
clampThinkingLevel
|
|
33
37
|
} from "./chunk-Y3G4J3TB.js";
|
|
34
|
-
import {
|
|
35
|
-
getProviderEnvValue
|
|
36
|
-
} from "./chunk-OXGCUIKV.js";
|
|
37
|
-
import "./chunk-DYEQRE6N.js";
|
|
38
38
|
import {
|
|
39
39
|
AssistantMessageEventStream
|
|
40
40
|
} from "./chunk-46SEH6ER.js";
|
|
41
|
-
import "./chunk-
|
|
41
|
+
import "./chunk-2ESYSVXG.js";
|
|
42
42
|
|
|
43
43
|
// ../../node_modules/@earendil-works/pi-ai/dist/api/openai-responses.js
|
|
44
44
|
var OPENAI_TOOL_CALL_PROVIDERS = /* @__PURE__ */ new Set(["openai", "openai-codex", "opencode"]);
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
headersToRecord,
|
|
13
13
|
providerHeadersToRecord
|
|
14
14
|
} from "./chunk-Y6UTJIT4.js";
|
|
15
|
-
import "./chunk-
|
|
15
|
+
import "./chunk-2ESYSVXG.js";
|
|
16
16
|
|
|
17
17
|
// ../../node_modules/@earendil-works/pi-ai/dist/api/openrouter-images.js
|
|
18
18
|
var generateImages = async (model, context, options) => {
|