linkque-cli-v2 1.6.27 → 1.6.29

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 (21) hide show
  1. package/linkquejs.js +4222 -1507
  2. package/package.json +1 -1
  3. package/vendor/linkque-agent-appwrite-integrate/dist/esm/{chunk-XUFLSZM4.js → chunk-33Q6KVN2.js} +60 -196
  4. package/vendor/linkque-agent-appwrite-integrate/dist/esm/{chunk-TX2XRFJ4.js → chunk-BMMEXZ52.js} +1 -1
  5. package/vendor/linkque-agent-appwrite-integrate/dist/esm/{chunk-PYP7WCXN.js → chunk-BQHLF2GE.js} +3979 -138
  6. package/vendor/linkque-agent-appwrite-integrate/dist/esm/chunk-KQTRZ2SZ.js +19744 -0
  7. package/vendor/linkque-agent-appwrite-integrate/dist/esm/{chunk-GDCT36JV.js → chunk-NA35NOK4.js} +1 -1
  8. package/vendor/linkque-agent-appwrite-integrate/dist/esm/{chunk-2QJITP7G.js → chunk-RTUO3ZWI.js} +2 -2
  9. package/vendor/linkque-agent-appwrite-integrate/dist/esm/{chunk-FC7MJHC3.js → chunk-TIXVMTXT.js} +1 -1
  10. package/vendor/linkque-agent-appwrite-integrate/dist/esm/{dist-6U5W3RLM.js → dist-JRQ7GIV4.js} +31 -46
  11. package/vendor/linkque-agent-appwrite-integrate/dist/esm/{google-generative-ai-RT2OOQDJ.js → google-generative-ai-5VYDRFFM.js} +1 -1
  12. package/vendor/linkque-agent-appwrite-integrate/dist/esm/{google-vertex-HVFMVQVY.js → google-vertex-JO4CT7NF.js} +1 -1
  13. package/vendor/linkque-agent-appwrite-integrate/dist/esm/{mistral-conversations-KIOTOF73.js → mistral-conversations-43TLMTO6.js} +4 -4
  14. package/vendor/linkque-agent-appwrite-integrate/dist/esm/{multipart-parser-TAD6XL3Q.js → multipart-parser-HCLTR6CW.js} +2 -2
  15. package/vendor/linkque-agent-appwrite-integrate/dist/esm/{otel-LQR5KPZ3.js → otel-UCKXDLYZ.js} +2 -2
  16. package/vendor/linkque-agent-appwrite-integrate/dist/esm/runtime/handler/chat.js +340 -7477
  17. package/vendor/linkque-agent-appwrite-integrate/dist/esm/runtime/handler/clientCapability.js +4 -4
  18. package/vendor/linkque-agent-appwrite-integrate/dist/esm/runtime/protocol.js +4 -4
  19. package/vendor/linkque-agent-appwrite-integrate/dist/esm/{src-JSJTYJV5.js → src-MFXPXO5F.js} +25 -25
  20. package/worker.js +226177 -220585
  21. package/vendor/linkque-agent-appwrite-integrate/dist/esm/chunk-GAYNLDWK.js +0 -11166
@@ -23,7 +23,7 @@ import {
23
23
  RuntimeConfigProvider,
24
24
  getRunEmbeddedQuery,
25
25
  isDebugLoggingEnabled
26
- } from "./chunk-PYP7WCXN.js";
26
+ } from "./chunk-BQHLF2GE.js";
27
27
  import {
28
28
  __commonJS,
29
29
  __require,
@@ -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-6U5W3RLM.js")).HttpsProxyAgent;
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-JSJTYJV5.js")).default;
1332
+ this.#fetch ||= hasWindow ? window.fetch : (await import("./src-MFXPXO5F.js")).default;
1333
1333
  return this.#fetch;
1334
1334
  }
1335
1335
  /**
@@ -13,7 +13,7 @@ import {
13
13
  string,
14
14
  union,
15
15
  unknown
16
- } from "./chunk-GAYNLDWK.js";
16
+ } from "./chunk-KQTRZ2SZ.js";
17
17
 
18
18
  // ../../node_modules/@mistralai/mistralai/esm/lib/primitives.js
19
19
  function remap(inp, mappings) {
@@ -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
- const split = (typeof namespaces === "string" ? namespaces : "").trim().replace(/\s+/g, ",").split(",").filter(Boolean);
226
- for (const ns of split) {
227
- if (ns[0] === "-") {
228
- createDebug.skips.push(ns.slice(1));
229
- } else {
230
- createDebug.names.push(ns);
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
- function matchesTemplate(search, template) {
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
- return false;
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
- for (const skip of createDebug.skips) {
272
- if (matchesTemplate(name, skip)) {
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 (const ns of createDebug.names) {
277
- if (matchesTemplate(name, ns)) {
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 && (m = navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)) && parseInt(m[1], 10) >= 31 || // Double check webkit in userAgent just in case we are in a worker
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") || 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/supports-color/node_modules/has-flag/index.js
454
+ // ../../node_modules/has-flag/index.js
470
455
  var require_has_flag = __commonJS({
471
- "../../node_modules/supports-color/node_modules/has-flag/index.js"(exports, module) {
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.formatWithOptions(exports.inspectOpts, ...args) + "\n");
675
+ return process.stderr.write(util.format(...args) + "\n");
691
676
  }
692
677
  function save(namespaces) {
693
678
  if (namespaces) {
@@ -6,7 +6,7 @@ import {
6
6
  mapStopReason,
7
7
  mapToolChoice,
8
8
  retainThoughtSignature
9
- } from "./chunk-2QJITP7G.js";
9
+ } from "./chunk-RTUO3ZWI.js";
10
10
  import {
11
11
  formatProviderError,
12
12
  normalizeProviderError
@@ -8,7 +8,7 @@ import {
8
8
  mapStopReason,
9
9
  mapToolChoice,
10
10
  retainThoughtSignature
11
- } from "./chunk-2QJITP7G.js";
11
+ } from "./chunk-RTUO3ZWI.js";
12
12
  import {
13
13
  formatProviderError,
14
14
  normalizeProviderError
@@ -36,7 +36,7 @@ import {
36
36
  safeParse,
37
37
  smartUnion,
38
38
  unwrapAsync
39
- } from "./chunk-FC7MJHC3.js";
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-XUFLSZM4.js";
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-GAYNLDWK.js";
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-LQR5KPZ3.js");
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/gaxios/node_modules/node-fetch/src/utils/multipart-parser.js
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/gaxios/node_modules/node-fetch/src/utils/multipart-parser.js"() {
101
+ "../../node_modules/node-fetch/src/utils/multipart-parser.js"() {
102
102
  init_from();
103
103
  init_esm_min();
104
104
  s = 0;
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  UsageInfo$outboundSchema,
3
3
  completionChunkFromJSON
4
- } from "./chunk-FC7MJHC3.js";
5
- import "./chunk-GAYNLDWK.js";
4
+ } from "./chunk-TIXVMTXT.js";
5
+ import "./chunk-KQTRZ2SZ.js";
6
6
  import {
7
7
  SpanStatusCode,
8
8
  context,