linkque-cli-v2 1.6.26 → 1.6.28
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 +4233 -1514
- package/package.json +1 -1
- package/vendor/linkque-agent-appwrite-integrate/dist/esm/{chunk-XUFLSZM4.js → chunk-33Q6KVN2.js} +60 -196
- package/vendor/linkque-agent-appwrite-integrate/dist/esm/{chunk-LL6AYQ4U.js → chunk-BMMEXZ52.js} +1 -1
- package/vendor/linkque-agent-appwrite-integrate/dist/esm/{chunk-5BACHYVZ.js → chunk-BQHLF2GE.js} +4518 -666
- package/vendor/linkque-agent-appwrite-integrate/dist/esm/chunk-KQTRZ2SZ.js +19744 -0
- package/vendor/linkque-agent-appwrite-integrate/dist/esm/{chunk-ZVZ2LH7U.js → chunk-NA35NOK4.js} +1 -1
- package/vendor/linkque-agent-appwrite-integrate/dist/esm/{chunk-2QJITP7G.js → chunk-RTUO3ZWI.js} +2 -2
- package/vendor/linkque-agent-appwrite-integrate/dist/esm/{chunk-FC7MJHC3.js → chunk-TIXVMTXT.js} +1 -1
- package/vendor/linkque-agent-appwrite-integrate/dist/esm/{dist-6U5W3RLM.js → dist-JRQ7GIV4.js} +31 -46
- package/vendor/linkque-agent-appwrite-integrate/dist/esm/{google-generative-ai-RT2OOQDJ.js → google-generative-ai-5VYDRFFM.js} +1 -1
- package/vendor/linkque-agent-appwrite-integrate/dist/esm/{google-vertex-HVFMVQVY.js → google-vertex-JO4CT7NF.js} +1 -1
- package/vendor/linkque-agent-appwrite-integrate/dist/esm/{mistral-conversations-KIOTOF73.js → mistral-conversations-43TLMTO6.js} +4 -4
- package/vendor/linkque-agent-appwrite-integrate/dist/esm/{multipart-parser-TAD6XL3Q.js → multipart-parser-HCLTR6CW.js} +2 -2
- package/vendor/linkque-agent-appwrite-integrate/dist/esm/{otel-LQR5KPZ3.js → otel-UCKXDLYZ.js} +2 -2
- package/vendor/linkque-agent-appwrite-integrate/dist/esm/runtime/handler/chat.js +565 -220
- package/vendor/linkque-agent-appwrite-integrate/dist/esm/runtime/handler/clientCapability.js +4 -4
- package/vendor/linkque-agent-appwrite-integrate/dist/esm/runtime/protocol.js +4 -4
- package/vendor/linkque-agent-appwrite-integrate/dist/esm/{src-JSJTYJV5.js → src-MFXPXO5F.js} +25 -25
- package/worker.js +22554 -9439
- package/vendor/linkque-agent-appwrite-integrate/dist/esm/chunk-GAYNLDWK.js +0 -11166
package/vendor/linkque-agent-appwrite-integrate/dist/esm/{chunk-2QJITP7G.js → chunk-RTUO3ZWI.js}
RENAMED
|
@@ -1324,12 +1324,12 @@ Content-Type: ${partContentType}\r
|
|
|
1324
1324
|
* @returns A proxy agent
|
|
1325
1325
|
*/
|
|
1326
1326
|
static async #getProxyAgent() {
|
|
1327
|
-
this.#proxyAgent ||= (await import("./dist-
|
|
1327
|
+
this.#proxyAgent ||= (await import("./dist-JRQ7GIV4.js")).HttpsProxyAgent;
|
|
1328
1328
|
return this.#proxyAgent;
|
|
1329
1329
|
}
|
|
1330
1330
|
static async #getFetch() {
|
|
1331
1331
|
const hasWindow = typeof window !== "undefined" && !!window;
|
|
1332
|
-
this.#fetch ||= hasWindow ? window.fetch : (await import("./src-
|
|
1332
|
+
this.#fetch ||= hasWindow ? window.fetch : (await import("./src-MFXPXO5F.js")).default;
|
|
1333
1333
|
return this.#fetch;
|
|
1334
1334
|
}
|
|
1335
1335
|
/**
|
package/vendor/linkque-agent-appwrite-integrate/dist/esm/{dist-6U5W3RLM.js → dist-JRQ7GIV4.js}
RENAMED
|
@@ -3,9 +3,9 @@ import {
|
|
|
3
3
|
__require
|
|
4
4
|
} from "./chunk-2ESYSVXG.js";
|
|
5
5
|
|
|
6
|
-
// ../../node_modules/ms/index.js
|
|
6
|
+
// ../../node_modules/debug/node_modules/ms/index.js
|
|
7
7
|
var require_ms = __commonJS({
|
|
8
|
-
"../../node_modules/ms/index.js"(exports, module) {
|
|
8
|
+
"../../node_modules/debug/node_modules/ms/index.js"(exports, module) {
|
|
9
9
|
var s = 1e3;
|
|
10
10
|
var m = s * 60;
|
|
11
11
|
var h = m * 60;
|
|
@@ -222,64 +222,50 @@ var require_common = __commonJS({
|
|
|
222
222
|
createDebug.namespaces = namespaces;
|
|
223
223
|
createDebug.names = [];
|
|
224
224
|
createDebug.skips = [];
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
225
|
+
let i;
|
|
226
|
+
const split = (typeof namespaces === "string" ? namespaces : "").split(/[\s,]+/);
|
|
227
|
+
const len = split.length;
|
|
228
|
+
for (i = 0; i < len; i++) {
|
|
229
|
+
if (!split[i]) {
|
|
230
|
+
continue;
|
|
231
231
|
}
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
let searchIndex = 0;
|
|
236
|
-
let templateIndex = 0;
|
|
237
|
-
let starIndex = -1;
|
|
238
|
-
let matchIndex = 0;
|
|
239
|
-
while (searchIndex < search.length) {
|
|
240
|
-
if (templateIndex < template.length && (template[templateIndex] === search[searchIndex] || template[templateIndex] === "*")) {
|
|
241
|
-
if (template[templateIndex] === "*") {
|
|
242
|
-
starIndex = templateIndex;
|
|
243
|
-
matchIndex = searchIndex;
|
|
244
|
-
templateIndex++;
|
|
245
|
-
} else {
|
|
246
|
-
searchIndex++;
|
|
247
|
-
templateIndex++;
|
|
248
|
-
}
|
|
249
|
-
} else if (starIndex !== -1) {
|
|
250
|
-
templateIndex = starIndex + 1;
|
|
251
|
-
matchIndex++;
|
|
252
|
-
searchIndex = matchIndex;
|
|
232
|
+
namespaces = split[i].replace(/\*/g, ".*?");
|
|
233
|
+
if (namespaces[0] === "-") {
|
|
234
|
+
createDebug.skips.push(new RegExp("^" + namespaces.slice(1) + "$"));
|
|
253
235
|
} else {
|
|
254
|
-
|
|
236
|
+
createDebug.names.push(new RegExp("^" + namespaces + "$"));
|
|
255
237
|
}
|
|
256
238
|
}
|
|
257
|
-
while (templateIndex < template.length && template[templateIndex] === "*") {
|
|
258
|
-
templateIndex++;
|
|
259
|
-
}
|
|
260
|
-
return templateIndex === template.length;
|
|
261
239
|
}
|
|
262
240
|
function disable() {
|
|
263
241
|
const namespaces = [
|
|
264
|
-
...createDebug.names,
|
|
265
|
-
...createDebug.skips.map((namespace) => "-" + namespace)
|
|
242
|
+
...createDebug.names.map(toNamespace),
|
|
243
|
+
...createDebug.skips.map(toNamespace).map((namespace) => "-" + namespace)
|
|
266
244
|
].join(",");
|
|
267
245
|
createDebug.enable("");
|
|
268
246
|
return namespaces;
|
|
269
247
|
}
|
|
270
248
|
function enabled(name) {
|
|
271
|
-
|
|
272
|
-
|
|
249
|
+
if (name[name.length - 1] === "*") {
|
|
250
|
+
return true;
|
|
251
|
+
}
|
|
252
|
+
let i;
|
|
253
|
+
let len;
|
|
254
|
+
for (i = 0, len = createDebug.skips.length; i < len; i++) {
|
|
255
|
+
if (createDebug.skips[i].test(name)) {
|
|
273
256
|
return false;
|
|
274
257
|
}
|
|
275
258
|
}
|
|
276
|
-
for (
|
|
277
|
-
if (
|
|
259
|
+
for (i = 0, len = createDebug.names.length; i < len; i++) {
|
|
260
|
+
if (createDebug.names[i].test(name)) {
|
|
278
261
|
return true;
|
|
279
262
|
}
|
|
280
263
|
}
|
|
281
264
|
return false;
|
|
282
265
|
}
|
|
266
|
+
function toNamespace(regexp) {
|
|
267
|
+
return regexp.toString().substring(2, regexp.toString().length - 2).replace(/\.\*\?$/, "*");
|
|
268
|
+
}
|
|
283
269
|
function coerce(val) {
|
|
284
270
|
if (val instanceof Error) {
|
|
285
271
|
return val.stack || val.message;
|
|
@@ -398,11 +384,10 @@ var require_browser = __commonJS({
|
|
|
398
384
|
if (typeof navigator !== "undefined" && navigator.userAgent && navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)) {
|
|
399
385
|
return false;
|
|
400
386
|
}
|
|
401
|
-
let m;
|
|
402
387
|
return typeof document !== "undefined" && document.documentElement && document.documentElement.style && document.documentElement.style.WebkitAppearance || // Is firebug? http://stackoverflow.com/a/398120/376773
|
|
403
388
|
typeof window !== "undefined" && window.console && (window.console.firebug || window.console.exception && window.console.table) || // Is firefox >= v31?
|
|
404
389
|
// https://developer.mozilla.org/en-US/docs/Tools/Web_Console#Styling_messages
|
|
405
|
-
typeof navigator !== "undefined" && navigator.userAgent &&
|
|
390
|
+
typeof navigator !== "undefined" && navigator.userAgent && navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/) && parseInt(RegExp.$1, 10) >= 31 || // Double check webkit in userAgent just in case we are in a worker
|
|
406
391
|
typeof navigator !== "undefined" && navigator.userAgent && navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/);
|
|
407
392
|
}
|
|
408
393
|
function formatArgs(args) {
|
|
@@ -440,7 +425,7 @@ var require_browser = __commonJS({
|
|
|
440
425
|
function load() {
|
|
441
426
|
let r;
|
|
442
427
|
try {
|
|
443
|
-
r = exports.storage.getItem("debug")
|
|
428
|
+
r = exports.storage.getItem("debug");
|
|
444
429
|
} catch (error) {
|
|
445
430
|
}
|
|
446
431
|
if (!r && typeof process !== "undefined" && "env" in process) {
|
|
@@ -466,9 +451,9 @@ var require_browser = __commonJS({
|
|
|
466
451
|
}
|
|
467
452
|
});
|
|
468
453
|
|
|
469
|
-
// ../../node_modules/
|
|
454
|
+
// ../../node_modules/has-flag/index.js
|
|
470
455
|
var require_has_flag = __commonJS({
|
|
471
|
-
"../../node_modules/
|
|
456
|
+
"../../node_modules/has-flag/index.js"(exports, module) {
|
|
472
457
|
"use strict";
|
|
473
458
|
module.exports = function(flag, argv) {
|
|
474
459
|
argv = argv || process.argv;
|
|
@@ -687,7 +672,7 @@ var require_node = __commonJS({
|
|
|
687
672
|
return (/* @__PURE__ */ new Date()).toISOString() + " ";
|
|
688
673
|
}
|
|
689
674
|
function log(...args) {
|
|
690
|
-
return process.stderr.write(util.
|
|
675
|
+
return process.stderr.write(util.format(...args) + "\n");
|
|
691
676
|
}
|
|
692
677
|
function save(namespaces) {
|
|
693
678
|
if (namespaces) {
|
|
@@ -36,7 +36,7 @@ import {
|
|
|
36
36
|
safeParse,
|
|
37
37
|
smartUnion,
|
|
38
38
|
unwrapAsync
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-TIXVMTXT.js";
|
|
40
40
|
import {
|
|
41
41
|
parseStreamingJson
|
|
42
42
|
} from "./chunk-WJHOHUET.js";
|
|
@@ -54,7 +54,7 @@ import {
|
|
|
54
54
|
} from "./chunk-CT4G24PS.js";
|
|
55
55
|
import {
|
|
56
56
|
zodToJsonSchema
|
|
57
|
-
} from "./chunk-
|
|
57
|
+
} from "./chunk-33Q6KVN2.js";
|
|
58
58
|
import {
|
|
59
59
|
$ZodError,
|
|
60
60
|
NEVER,
|
|
@@ -77,7 +77,7 @@ import {
|
|
|
77
77
|
record,
|
|
78
78
|
string,
|
|
79
79
|
union
|
|
80
|
-
} from "./chunk-
|
|
80
|
+
} from "./chunk-KQTRZ2SZ.js";
|
|
81
81
|
import "./chunk-2ESYSVXG.js";
|
|
82
82
|
|
|
83
83
|
// ../../node_modules/@mistralai/mistralai/esm/lib/url.js
|
|
@@ -388,7 +388,7 @@ async function getObservabilityModule() {
|
|
|
388
388
|
return observabilityModule;
|
|
389
389
|
}
|
|
390
390
|
try {
|
|
391
|
-
observabilityModule = await import("./otel-
|
|
391
|
+
observabilityModule = await import("./otel-UCKXDLYZ.js");
|
|
392
392
|
} catch {
|
|
393
393
|
observabilityModule = null;
|
|
394
394
|
}
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
__esm
|
|
9
9
|
} from "./chunk-2ESYSVXG.js";
|
|
10
10
|
|
|
11
|
-
// ../../node_modules/
|
|
11
|
+
// ../../node_modules/node-fetch/src/utils/multipart-parser.js
|
|
12
12
|
function _fileName(headerValue) {
|
|
13
13
|
const m = headerValue.match(/\bfilename=("(.*?)"|([^()<>@,;:\\"/[\]?={}\s\t]+))($|;\s)/i);
|
|
14
14
|
if (!m) {
|
|
@@ -98,7 +98,7 @@ async function toFormData(Body, ct) {
|
|
|
98
98
|
}
|
|
99
99
|
var s, S, f, F, LF, CR, SPACE, HYPHEN, COLON, A, Z, lower, noop, MultipartParser;
|
|
100
100
|
var init_multipart_parser = __esm({
|
|
101
|
-
"../../node_modules/
|
|
101
|
+
"../../node_modules/node-fetch/src/utils/multipart-parser.js"() {
|
|
102
102
|
init_from();
|
|
103
103
|
init_esm_min();
|
|
104
104
|
s = 0;
|