linkque-cli-v2 1.6.5 → 1.6.6

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 (25) hide show
  1. package/dev/worker.js +16 -3
  2. package/linkquejs.js +1015 -631
  3. package/package.json +1 -1
  4. package/vendor/linkque-agent-appwrite-integrate/dist/esm/anthropic-messages-GSYNBLMR.js +17 -0
  5. package/vendor/linkque-agent-appwrite-integrate/dist/esm/{azure-openai-responses-HVAVRLTK.js → azure-openai-responses-NPKMM3LF.js} +7 -9
  6. package/vendor/linkque-agent-appwrite-integrate/dist/esm/{chunk-IATVK6CO.js → chunk-FC6S43DG.js} +1 -1
  7. package/vendor/linkque-agent-appwrite-integrate/dist/esm/{chunk-UTJ7DVT7.js → chunk-FH2M6YD6.js} +407 -59
  8. package/vendor/linkque-agent-appwrite-integrate/dist/esm/{chunk-YZLXAZFT.js → chunk-ICPH34ZQ.js} +36 -11
  9. package/vendor/linkque-agent-appwrite-integrate/dist/esm/{chunk-Q2Y6LMNC.js → chunk-J4JCPZDI.js} +5 -7
  10. package/vendor/linkque-agent-appwrite-integrate/dist/esm/{chunk-4XAZNSEQ.js → chunk-JMBJJF7P.js} +18 -5
  11. package/vendor/linkque-agent-appwrite-integrate/dist/esm/{anthropic-messages-5DOLTIGP.js → chunk-KDHBKVSL.js} +14 -15
  12. package/vendor/linkque-agent-appwrite-integrate/dist/esm/{chunk-Y3G4J3TB.js → chunk-XOLFZ4XS.js} +316 -1
  13. package/vendor/linkque-agent-appwrite-integrate/dist/esm/{dist-ZPLSQEAM.js → dist-TGBYXSBU.js} +27 -42
  14. package/vendor/linkque-agent-appwrite-integrate/dist/esm/{google-generative-ai-OLT56CSV.js → google-generative-ai-KD7MXONK.js} +8 -10
  15. package/vendor/linkque-agent-appwrite-integrate/dist/esm/{google-vertex-4DBBJ7SR.js → google-vertex-TREYA472.js} +9 -11
  16. package/vendor/linkque-agent-appwrite-integrate/dist/esm/{mistral-conversations-OEBGEDLQ.js → mistral-conversations-OEOTQWE5.js} +7 -9
  17. package/vendor/linkque-agent-appwrite-integrate/dist/esm/{openai-codex-responses-3KOC6KHN.js → openai-codex-responses-GEFKSNVN.js} +10 -12
  18. package/vendor/linkque-agent-appwrite-integrate/dist/esm/{openai-completions-HG6OJRL5.js → openai-completions-TAACO6T5.js} +13 -15
  19. package/vendor/linkque-agent-appwrite-integrate/dist/esm/{openai-responses-F6V2PG3Y.js → openai-responses-4DDTXIGI.js} +12 -14
  20. package/vendor/linkque-agent-appwrite-integrate/dist/esm/runtime/handler/chat.js +197 -71
  21. package/vendor/linkque-agent-appwrite-integrate/dist/esm/runtime/handler/clientCapability.js +2 -2
  22. package/vendor/linkque-agent-appwrite-integrate/dist/esm/runtime/protocol.js +2 -2
  23. package/worker.js +357 -94
  24. package/vendor/linkque-agent-appwrite-integrate/dist/esm/chunk-RYONFGPP.js +0 -317
  25. package/vendor/linkque-agent-appwrite-integrate/dist/esm/{pi-messages-DC4DVRAJ.js → pi-messages-7JN3W3BC.js} +4 -4
package/dev/worker.js CHANGED
@@ -2321,11 +2321,23 @@ var require_websocket = __commonJS({
2321
2321
  this._isServer = false;
2322
2322
  this._redirects = 0;
2323
2323
  if (protocols === void 0) {
2324
- protocols = [];
2324
+ if (!options || options.protocols === void 0) {
2325
+ protocols = [];
2326
+ } else if (Array.isArray(options.protocols)) {
2327
+ protocols = options.protocols;
2328
+ } else {
2329
+ protocols = [options.protocols];
2330
+ }
2325
2331
  } else if (!Array.isArray(protocols)) {
2326
2332
  if (typeof protocols === "object" && protocols !== null) {
2327
2333
  options = protocols;
2328
- protocols = [];
2334
+ if (options.protocols === void 0) {
2335
+ protocols = [];
2336
+ } else if (Array.isArray(options.protocols)) {
2337
+ protocols = options.protocols;
2338
+ } else {
2339
+ protocols = [options.protocols];
2340
+ }
2329
2341
  } else {
2330
2342
  protocols = [protocols];
2331
2343
  }
@@ -2522,7 +2534,6 @@ var require_websocket = __commonJS({
2522
2534
  }
2523
2535
  return;
2524
2536
  }
2525
- this._readyState = _WebSocket.CLOSING;
2526
2537
  this._sender.close(code, data, !this._isServer, (err) => {
2527
2538
  if (err) return;
2528
2539
  this._closeFrameSent = true;
@@ -2530,6 +2541,7 @@ var require_websocket = __commonJS({
2530
2541
  this._socket.end();
2531
2542
  }
2532
2543
  });
2544
+ this._readyState = _WebSocket.CLOSING;
2533
2545
  setCloseTimer(this);
2534
2546
  }
2535
2547
  /**
@@ -2754,6 +2766,7 @@ var require_websocket = __commonJS({
2754
2766
  socketPath: void 0,
2755
2767
  hostname: void 0,
2756
2768
  protocol: void 0,
2769
+ protocols: void 0,
2757
2770
  timeout: void 0,
2758
2771
  method: "GET",
2759
2772
  host: void 0,