linkque-cli-v2 1.6.15 → 1.6.16

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 +17 -4
  2. package/linkquejs.js +26370 -25399
  3. package/package.json +1 -1
  4. package/vendor/linkque-agent-appwrite-integrate/dist/esm/{chunk-FI7ME5FS.js → chunk-2O5AZ546.js} +1 -1
  5. package/vendor/linkque-agent-appwrite-integrate/dist/esm/{chunk-SICWMO5Y.js → chunk-DNTEEBEH.js} +0 -1
  6. package/vendor/linkque-agent-appwrite-integrate/dist/esm/{chunk-Q5VTO4BZ.js → chunk-FC7MJHC3.js} +1 -1
  7. package/vendor/linkque-agent-appwrite-integrate/dist/esm/{chunk-6POVPTQH.js → chunk-GAYNLDWK.js} +2545 -5930
  8. package/vendor/linkque-agent-appwrite-integrate/dist/esm/{chunk-B6GKDCHM.js → chunk-JMBJJF7P.js} +20 -7
  9. package/vendor/linkque-agent-appwrite-integrate/dist/esm/{chunk-GTEZTRCK.js → chunk-XUFLSZM4.js} +190 -35
  10. package/vendor/linkque-agent-appwrite-integrate/dist/esm/{chunk-AWYMLINQ.js → chunk-ZK7HXMMY.js} +1420 -4817
  11. package/vendor/linkque-agent-appwrite-integrate/dist/esm/{chunk-64EZ7CTZ.js → chunk-ZQGBHENQ.js} +1 -25
  12. package/vendor/linkque-agent-appwrite-integrate/dist/esm/{getMachineId-bsd-NYGVHXGN.js → getMachineId-bsd-JGCLGHFY.js} +1 -1
  13. package/vendor/linkque-agent-appwrite-integrate/dist/esm/{getMachineId-darwin-OPTJOAYC.js → getMachineId-darwin-COHLFNXH.js} +1 -1
  14. package/vendor/linkque-agent-appwrite-integrate/dist/esm/{getMachineId-linux-5SQRYTUJ.js → getMachineId-linux-XV3Z5FQG.js} +1 -1
  15. package/vendor/linkque-agent-appwrite-integrate/dist/esm/{getMachineId-unsupported-OJE7WPEH.js → getMachineId-unsupported-FCRKLIZL.js} +1 -1
  16. package/vendor/linkque-agent-appwrite-integrate/dist/esm/{getMachineId-win-SLTTCNXU.js → getMachineId-win-A4WRNVV6.js} +1 -1
  17. package/vendor/linkque-agent-appwrite-integrate/dist/esm/{google-generative-ai-6CFHQGZ4.js → google-generative-ai-KD7MXONK.js} +1 -1
  18. package/vendor/linkque-agent-appwrite-integrate/dist/esm/{google-vertex-C3RF55I7.js → google-vertex-TREYA472.js} +1 -1
  19. package/vendor/linkque-agent-appwrite-integrate/dist/esm/{mistral-conversations-XUDTCRDY.js → mistral-conversations-OEOTQWE5.js} +4 -4
  20. package/vendor/linkque-agent-appwrite-integrate/dist/esm/{otel-3OUODIOB.js → otel-WGS5CC2J.js} +3 -3
  21. package/vendor/linkque-agent-appwrite-integrate/dist/esm/runtime/handler/chat.js +217 -337
  22. package/vendor/linkque-agent-appwrite-integrate/dist/esm/runtime/handler/clientCapability.js +5 -5
  23. package/vendor/linkque-agent-appwrite-integrate/dist/esm/runtime/protocol.js +5 -5
  24. package/vendor/linkque-agent-appwrite-integrate/package.json +1 -1
  25. package/worker.js +7261 -14360
@@ -416,7 +416,7 @@ var require_package = __commonJS({
416
416
  "../../node_modules/gaxios/package.json"(exports, module) {
417
417
  module.exports = {
418
418
  name: "gaxios",
419
- version: "7.3.0",
419
+ version: "7.3.1",
420
420
  description: "A simple common HTTP client specifically for Google APIs and services.",
421
421
  main: "build/cjs/src/index.js",
422
422
  types: "build/cjs/src/index.d.ts",
@@ -494,7 +494,7 @@ var require_package = __commonJS({
494
494
  "karma-mocha": "^2.0.0",
495
495
  "karma-remap-coverage": "^0.1.5",
496
496
  "karma-sourcemap-loader": "^0.4.0",
497
- "karma-webpack": "^5.0.1",
497
+ "karma-webpack": "^5.0.0",
498
498
  mocha: "^11.1.0",
499
499
  multiparty: "^4.2.1",
500
500
  mv: "^2.1.1",
@@ -505,7 +505,7 @@ var require_package = __commonJS({
505
505
  puppeteer: "^24.0.0",
506
506
  sinon: "21.0.3",
507
507
  "stream-browserify": "^3.0.0",
508
- tmp: "0.2.6",
508
+ tmp: "0.2.7",
509
509
  "ts-loader": "^9.5.2",
510
510
  typescript: "5.8.3",
511
511
  "undici-types": "^7.24.1",
@@ -9600,7 +9600,7 @@ var require_permessage_deflate = __commonJS({
9600
9600
  acceptAsServer(offers) {
9601
9601
  const opts = this._options;
9602
9602
  const accepted = offers.find((params) => {
9603
- if (opts.serverNoContextTakeover === false && params.server_no_context_takeover || params.server_max_window_bits && (opts.serverMaxWindowBits === false || typeof opts.serverMaxWindowBits === "number" && opts.serverMaxWindowBits > params.server_max_window_bits) || typeof opts.clientMaxWindowBits === "number" && !params.client_max_window_bits) {
9603
+ if (opts.serverNoContextTakeover === false && params.server_no_context_takeover || params.server_max_window_bits && (opts.serverMaxWindowBits === false || typeof opts.serverMaxWindowBits === "number" && opts.serverMaxWindowBits > params.server_max_window_bits) || typeof opts.clientMaxWindowBits === "number" && (typeof params.client_max_window_bits === "number" ? opts.clientMaxWindowBits > params.client_max_window_bits : !params.client_max_window_bits)) {
9604
9604
  return false;
9605
9605
  }
9606
9606
  return true;
@@ -11618,11 +11618,23 @@ var require_websocket = __commonJS({
11618
11618
  this._isServer = false;
11619
11619
  this._redirects = 0;
11620
11620
  if (protocols === void 0) {
11621
- protocols = [];
11621
+ if (!options || options.protocols === void 0) {
11622
+ protocols = [];
11623
+ } else if (Array.isArray(options.protocols)) {
11624
+ protocols = options.protocols;
11625
+ } else {
11626
+ protocols = [options.protocols];
11627
+ }
11622
11628
  } else if (!Array.isArray(protocols)) {
11623
11629
  if (typeof protocols === "object" && protocols !== null) {
11624
11630
  options = protocols;
11625
- protocols = [];
11631
+ if (options.protocols === void 0) {
11632
+ protocols = [];
11633
+ } else if (Array.isArray(options.protocols)) {
11634
+ protocols = options.protocols;
11635
+ } else {
11636
+ protocols = [options.protocols];
11637
+ }
11626
11638
  } else {
11627
11639
  protocols = [protocols];
11628
11640
  }
@@ -11819,7 +11831,6 @@ var require_websocket = __commonJS({
11819
11831
  }
11820
11832
  return;
11821
11833
  }
11822
- this._readyState = _WebSocket.CLOSING;
11823
11834
  this._sender.close(code, data, !this._isServer, (err) => {
11824
11835
  if (err) return;
11825
11836
  this._closeFrameSent = true;
@@ -11827,6 +11838,7 @@ var require_websocket = __commonJS({
11827
11838
  this._socket.end();
11828
11839
  }
11829
11840
  });
11841
+ this._readyState = _WebSocket.CLOSING;
11830
11842
  setCloseTimer(this);
11831
11843
  }
11832
11844
  /**
@@ -12051,6 +12063,7 @@ var require_websocket = __commonJS({
12051
12063
  socketPath: void 0,
12052
12064
  hostname: void 0,
12053
12065
  protocol: void 0,
12066
+ protocols: void 0,
12054
12067
  timeout: void 0,
12055
12068
  method: "GET",
12056
12069
  host: void 0,
@@ -1,37 +1,3 @@
1
- // ../../node_modules/zod-to-json-schema/dist/esm/Options.js
2
- var ignoreOverride = Symbol("Let zodToJsonSchema decide on which parser to use");
3
- var defaultOptions = {
4
- name: void 0,
5
- $refStrategy: "root",
6
- basePath: ["#"],
7
- effectStrategy: "input",
8
- pipeStrategy: "all",
9
- dateStrategy: "format:date-time",
10
- mapStrategy: "entries",
11
- removeAdditionalStrategy: "passthrough",
12
- allowedAdditionalProperties: true,
13
- rejectedAdditionalProperties: false,
14
- definitionPath: "definitions",
15
- target: "jsonSchema7",
16
- strictUnions: false,
17
- definitions: {},
18
- errorMessages: false,
19
- markdownDescription: false,
20
- patternStrategy: "escape",
21
- applyRegexFlags: false,
22
- emailStrategy: "format:email",
23
- base64Strategy: "contentEncoding:base64",
24
- nameStrategy: "ref",
25
- openAiAnyTypeName: "OpenAiAnyType"
26
- };
27
- var getDefaultOptions = (options) => typeof options === "string" ? {
28
- ...defaultOptions,
29
- name: options
30
- } : {
31
- ...defaultOptions,
32
- ...options
33
- };
34
-
35
1
  // ../../node_modules/zod/v3/helpers/util.js
36
2
  var util;
37
3
  (function(util2) {
@@ -185,6 +151,10 @@ var ZodIssueCode = util.arrayToEnum([
185
151
  "not_multiple_of",
186
152
  "not_finite"
187
153
  ]);
154
+ var quotelessJson = (obj) => {
155
+ const json = JSON.stringify(obj, null, 2);
156
+ return json.replace(/"([^"]+)":/g, "$1:");
157
+ };
188
158
  var ZodError = class _ZodError extends Error {
189
159
  get errors() {
190
160
  return this.issues;
@@ -258,7 +228,7 @@ var ZodError = class _ZodError extends Error {
258
228
  return this.issues.length === 0;
259
229
  }
260
230
  flatten(mapper = (issue) => issue.message) {
261
- const fieldErrors = /* @__PURE__ */ Object.create(null);
231
+ const fieldErrors = {};
262
232
  const formErrors = [];
263
233
  for (const sub of this.issues) {
264
234
  if (sub.path.length > 0) {
@@ -385,6 +355,9 @@ var en_default = errorMap;
385
355
 
386
356
  // ../../node_modules/zod/v3/errors.js
387
357
  var overrideErrorMap = en_default;
358
+ function setErrorMap(map) {
359
+ overrideErrorMap = map;
360
+ }
388
361
  function getErrorMap() {
389
362
  return overrideErrorMap;
390
363
  }
@@ -415,6 +388,7 @@ var makeIssue = (params) => {
415
388
  message: errorMessage
416
389
  };
417
390
  };
391
+ var EMPTY_PATH = [];
418
392
  function addIssueToContext(ctx, issueData) {
419
393
  const overrideMap = getErrorMap();
420
394
  const issue = makeIssue({
@@ -3832,6 +3806,33 @@ ZodReadonly.create = (type, params) => {
3832
3806
  ...processCreateParams(params)
3833
3807
  });
3834
3808
  };
3809
+ function cleanParams(params, data) {
3810
+ const p = typeof params === "function" ? params(data) : typeof params === "string" ? { message: params } : params;
3811
+ const p2 = typeof p === "string" ? { message: p } : p;
3812
+ return p2;
3813
+ }
3814
+ function custom(check, _params = {}, fatal) {
3815
+ if (check)
3816
+ return ZodAny.create().superRefine((data, ctx) => {
3817
+ const r = check(data);
3818
+ if (r instanceof Promise) {
3819
+ return r.then((r2) => {
3820
+ if (!r2) {
3821
+ const params = cleanParams(_params, data);
3822
+ const _fatal = params.fatal ?? fatal ?? true;
3823
+ ctx.addIssue({ code: "custom", ...params, fatal: _fatal });
3824
+ }
3825
+ });
3826
+ }
3827
+ if (!r) {
3828
+ const params = cleanParams(_params, data);
3829
+ const _fatal = params.fatal ?? fatal ?? true;
3830
+ ctx.addIssue({ code: "custom", ...params, fatal: _fatal });
3831
+ }
3832
+ return;
3833
+ });
3834
+ return ZodAny.create();
3835
+ }
3835
3836
  var late = {
3836
3837
  object: ZodObject.lazycreate
3837
3838
  };
@@ -3874,6 +3875,9 @@ var ZodFirstPartyTypeKind;
3874
3875
  ZodFirstPartyTypeKind2["ZodPipeline"] = "ZodPipeline";
3875
3876
  ZodFirstPartyTypeKind2["ZodReadonly"] = "ZodReadonly";
3876
3877
  })(ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {}));
3878
+ var instanceOfType = (cls, params = {
3879
+ message: `Input not instance of ${cls.name}`
3880
+ }) => custom((data) => data instanceof cls, params);
3877
3881
  var stringType = ZodString.create;
3878
3882
  var numberType = ZodNumber.create;
3879
3883
  var nanType = ZodNaN.create;
@@ -3908,6 +3912,54 @@ var optionalType = ZodOptional.create;
3908
3912
  var nullableType = ZodNullable.create;
3909
3913
  var preprocessType = ZodEffects.createWithPreprocess;
3910
3914
  var pipelineType = ZodPipeline.create;
3915
+ var ostring = () => stringType().optional();
3916
+ var onumber = () => numberType().optional();
3917
+ var oboolean = () => booleanType().optional();
3918
+ var coerce = {
3919
+ string: (arg) => ZodString.create({ ...arg, coerce: true }),
3920
+ number: (arg) => ZodNumber.create({ ...arg, coerce: true }),
3921
+ boolean: (arg) => ZodBoolean.create({
3922
+ ...arg,
3923
+ coerce: true
3924
+ }),
3925
+ bigint: (arg) => ZodBigInt.create({ ...arg, coerce: true }),
3926
+ date: (arg) => ZodDate.create({ ...arg, coerce: true })
3927
+ };
3928
+ var NEVER = INVALID;
3929
+
3930
+ // ../../node_modules/zod-to-json-schema/dist/esm/Options.js
3931
+ var ignoreOverride = Symbol("Let zodToJsonSchema decide on which parser to use");
3932
+ var defaultOptions = {
3933
+ name: void 0,
3934
+ $refStrategy: "root",
3935
+ basePath: ["#"],
3936
+ effectStrategy: "input",
3937
+ pipeStrategy: "all",
3938
+ dateStrategy: "format:date-time",
3939
+ mapStrategy: "entries",
3940
+ removeAdditionalStrategy: "passthrough",
3941
+ allowedAdditionalProperties: true,
3942
+ rejectedAdditionalProperties: false,
3943
+ definitionPath: "definitions",
3944
+ target: "jsonSchema7",
3945
+ strictUnions: false,
3946
+ definitions: {},
3947
+ errorMessages: false,
3948
+ markdownDescription: false,
3949
+ patternStrategy: "escape",
3950
+ applyRegexFlags: false,
3951
+ emailStrategy: "format:email",
3952
+ base64Strategy: "contentEncoding:base64",
3953
+ nameStrategy: "ref",
3954
+ openAiAnyTypeName: "OpenAiAnyType"
3955
+ };
3956
+ var getDefaultOptions = (options) => typeof options === "string" ? {
3957
+ ...defaultOptions,
3958
+ name: options
3959
+ } : {
3960
+ ...defaultOptions,
3961
+ ...options
3962
+ };
3911
3963
 
3912
3964
  // ../../node_modules/zod-to-json-schema/dist/esm/getRelativePath.js
3913
3965
  var getRelativePath = (pathA, pathB) => {
@@ -5160,5 +5212,108 @@ var zodToJsonSchema = (schema, options) => {
5160
5212
  };
5161
5213
 
5162
5214
  export {
5215
+ util,
5216
+ objectUtil,
5217
+ ZodParsedType,
5218
+ getParsedType,
5219
+ ZodIssueCode,
5220
+ quotelessJson,
5221
+ ZodError,
5222
+ en_default,
5223
+ setErrorMap,
5224
+ getErrorMap,
5225
+ makeIssue,
5226
+ EMPTY_PATH,
5227
+ addIssueToContext,
5228
+ ParseStatus,
5229
+ INVALID,
5230
+ DIRTY,
5231
+ OK,
5232
+ isAborted,
5233
+ isDirty,
5234
+ isValid,
5235
+ isAsync,
5236
+ ZodType,
5237
+ datetimeRegex,
5238
+ ZodString,
5239
+ ZodNumber,
5240
+ ZodBigInt,
5241
+ ZodBoolean,
5242
+ ZodDate,
5243
+ ZodSymbol,
5244
+ ZodUndefined,
5245
+ ZodNull,
5246
+ ZodAny,
5247
+ ZodUnknown,
5248
+ ZodNever,
5249
+ ZodVoid,
5250
+ ZodArray,
5251
+ ZodObject,
5252
+ ZodUnion,
5253
+ ZodDiscriminatedUnion,
5254
+ ZodIntersection,
5255
+ ZodTuple,
5256
+ ZodRecord,
5257
+ ZodMap,
5258
+ ZodSet,
5259
+ ZodFunction,
5260
+ ZodLazy,
5261
+ ZodLiteral,
5262
+ ZodEnum,
5263
+ ZodNativeEnum,
5264
+ ZodPromise,
5265
+ ZodEffects,
5266
+ ZodOptional,
5267
+ ZodNullable,
5268
+ ZodDefault,
5269
+ ZodCatch,
5270
+ ZodNaN,
5271
+ BRAND,
5272
+ ZodBranded,
5273
+ ZodPipeline,
5274
+ ZodReadonly,
5275
+ custom,
5276
+ late,
5277
+ ZodFirstPartyTypeKind,
5278
+ instanceOfType,
5279
+ stringType,
5280
+ numberType,
5281
+ nanType,
5282
+ bigIntType,
5283
+ booleanType,
5284
+ dateType,
5285
+ symbolType,
5286
+ undefinedType,
5287
+ nullType,
5288
+ anyType,
5289
+ unknownType,
5290
+ neverType,
5291
+ voidType,
5292
+ arrayType,
5293
+ objectType,
5294
+ strictObjectType,
5295
+ unionType,
5296
+ discriminatedUnionType,
5297
+ intersectionType,
5298
+ tupleType,
5299
+ recordType,
5300
+ mapType,
5301
+ setType,
5302
+ functionType,
5303
+ lazyType,
5304
+ literalType,
5305
+ enumType,
5306
+ nativeEnumType,
5307
+ promiseType,
5308
+ effectsType,
5309
+ optionalType,
5310
+ nullableType,
5311
+ preprocessType,
5312
+ pipelineType,
5313
+ ostring,
5314
+ onumber,
5315
+ oboolean,
5316
+ coerce,
5317
+ NEVER,
5163
5318
  zodToJsonSchema
5164
5319
  };