linkque-cli-v2 1.6.27 → 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.
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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "linkque-cli-v2",
3
- "version": "1.6.27",
3
+ "version": "1.6.28",
4
4
  "description": "Public Linkque CLI bundle for sandbox debugging",
5
5
  "bin": {
6
6
  "linkquejs": "linkquejs.js"
@@ -1,3 +1,37 @@
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
+
1
35
  // ../../node_modules/zod/v3/helpers/util.js
2
36
  var util;
3
37
  (function(util2) {
@@ -151,10 +185,6 @@ var ZodIssueCode = util.arrayToEnum([
151
185
  "not_multiple_of",
152
186
  "not_finite"
153
187
  ]);
154
- var quotelessJson = (obj) => {
155
- const json = JSON.stringify(obj, null, 2);
156
- return json.replace(/"([^"]+)":/g, "$1:");
157
- };
158
188
  var ZodError = class _ZodError extends Error {
159
189
  get errors() {
160
190
  return this.issues;
@@ -198,13 +228,28 @@ var ZodError = class _ZodError extends Error {
198
228
  while (i < issue.path.length) {
199
229
  const el = issue.path[i];
200
230
  const terminal = i === issue.path.length - 1;
201
- if (!terminal) {
202
- curr[el] = curr[el] || { _errors: [] };
203
- } else {
204
- curr[el] = curr[el] || { _errors: [] };
205
- curr[el]._errors.push(mapper(issue));
231
+ if (el === "_errors") {
232
+ if (terminal)
233
+ curr._errors.push(mapper(issue));
234
+ i++;
235
+ continue;
236
+ }
237
+ if (!Object.prototype.hasOwnProperty.call(curr, el)) {
238
+ if (el === "__proto__") {
239
+ Object.defineProperty(curr, el, {
240
+ value: { _errors: [] },
241
+ writable: true,
242
+ enumerable: true,
243
+ configurable: true
244
+ });
245
+ } else {
246
+ curr[el] = { _errors: [] };
247
+ }
206
248
  }
207
249
  curr = curr[el];
250
+ if (terminal) {
251
+ curr._errors.push(mapper(issue));
252
+ }
208
253
  i++;
209
254
  }
210
255
  }
@@ -228,7 +273,7 @@ var ZodError = class _ZodError extends Error {
228
273
  return this.issues.length === 0;
229
274
  }
230
275
  flatten(mapper = (issue) => issue.message) {
231
- const fieldErrors = {};
276
+ const fieldErrors = /* @__PURE__ */ Object.create(null);
232
277
  const formErrors = [];
233
278
  for (const sub of this.issues) {
234
279
  if (sub.path.length > 0) {
@@ -355,9 +400,6 @@ var en_default = errorMap;
355
400
 
356
401
  // ../../node_modules/zod/v3/errors.js
357
402
  var overrideErrorMap = en_default;
358
- function setErrorMap(map) {
359
- overrideErrorMap = map;
360
- }
361
403
  function getErrorMap() {
362
404
  return overrideErrorMap;
363
405
  }
@@ -388,7 +430,6 @@ var makeIssue = (params) => {
388
430
  message: errorMessage
389
431
  };
390
432
  };
391
- var EMPTY_PATH = [];
392
433
  function addIssueToContext(ctx, issueData) {
393
434
  const overrideMap = getErrorMap();
394
435
  const issue = makeIssue({
@@ -832,7 +873,7 @@ var nanoidRegex = /^[a-z0-9_-]{21}$/i;
832
873
  var jwtRegex = /^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/;
833
874
  var durationRegex = /^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/;
834
875
  var emailRegex = /^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i;
835
- var _emojiRegex = `^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$`;
876
+ var _emojiRegex = `^[\\p{Extended_Pictographic}\\p{Emoji_Component}]+$`;
836
877
  var emojiRegex;
837
878
  var ipv4Regex = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/;
838
879
  var ipv4CidrRegex = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/;
@@ -2799,7 +2840,11 @@ function mergeValues(a, b) {
2799
2840
  const bKeys = util.objectKeys(b);
2800
2841
  const sharedKeys = util.objectKeys(a).filter((key) => bKeys.indexOf(key) !== -1);
2801
2842
  const newObj = { ...a, ...b };
2843
+ if (Object.prototype.hasOwnProperty.call(newObj, "__proto__"))
2844
+ delete newObj.__proto__;
2802
2845
  for (const key of sharedKeys) {
2846
+ if (key === "__proto__")
2847
+ continue;
2803
2848
  const sharedValue = mergeValues(a[key], b[key]);
2804
2849
  if (!sharedValue.valid) {
2805
2850
  return { valid: false };
@@ -3806,33 +3851,6 @@ ZodReadonly.create = (type, params) => {
3806
3851
  ...processCreateParams(params)
3807
3852
  });
3808
3853
  };
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
- }
3836
3854
  var late = {
3837
3855
  object: ZodObject.lazycreate
3838
3856
  };
@@ -3875,9 +3893,6 @@ var ZodFirstPartyTypeKind;
3875
3893
  ZodFirstPartyTypeKind2["ZodPipeline"] = "ZodPipeline";
3876
3894
  ZodFirstPartyTypeKind2["ZodReadonly"] = "ZodReadonly";
3877
3895
  })(ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {}));
3878
- var instanceOfType = (cls, params = {
3879
- message: `Input not instance of ${cls.name}`
3880
- }) => custom((data) => data instanceof cls, params);
3881
3896
  var stringType = ZodString.create;
3882
3897
  var numberType = ZodNumber.create;
3883
3898
  var nanType = ZodNaN.create;
@@ -3912,54 +3927,6 @@ var optionalType = ZodOptional.create;
3912
3927
  var nullableType = ZodNullable.create;
3913
3928
  var preprocessType = ZodEffects.createWithPreprocess;
3914
3929
  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
- };
3963
3930
 
3964
3931
  // ../../node_modules/zod-to-json-schema/dist/esm/getRelativePath.js
3965
3932
  var getRelativePath = (pathA, pathB) => {
@@ -5212,108 +5179,5 @@ var zodToJsonSchema = (schema, options) => {
5212
5179
  };
5213
5180
 
5214
5181
  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,
5318
5182
  zodToJsonSchema
5319
5183
  };
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  EModelProvider
3
- } from "./chunk-PYP7WCXN.js";
3
+ } from "./chunk-BQHLF2GE.js";
4
4
 
5
5
  // ../linkque-agent-appwrite-integrate/dist/esm/runtime/protocol.js
6
6
  var baked;