linkque-cli-v2 1.6.25-alpha.0 → 1.6.26
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/dev/worker.js +78 -21
- package/linkquejs.js +28272 -26795
- package/package.json +1 -1
- package/vendor/linkque-agent-appwrite-integrate/dist/esm/{chunk-LTZQZY5N.js → chunk-2QJITP7G.js} +83 -26
- package/vendor/linkque-agent-appwrite-integrate/dist/esm/{chunk-VBVOUDAY.js → chunk-5BACHYVZ.js} +3524 -6022
- package/vendor/linkque-agent-appwrite-integrate/dist/esm/{chunk-Q5VTO4BZ.js → chunk-FC7MJHC3.js} +1 -1
- package/vendor/linkque-agent-appwrite-integrate/dist/esm/{chunk-6POVPTQH.js → chunk-GAYNLDWK.js} +2545 -5930
- package/vendor/linkque-agent-appwrite-integrate/dist/esm/{chunk-EXYGBKWJ.js → chunk-LL6AYQ4U.js} +1 -1
- package/vendor/linkque-agent-appwrite-integrate/dist/esm/{chunk-GTEZTRCK.js → chunk-XUFLSZM4.js} +190 -35
- package/vendor/linkque-agent-appwrite-integrate/dist/esm/{chunk-XYAYDSKW.js → chunk-ZVZ2LH7U.js} +11 -11
- package/vendor/linkque-agent-appwrite-integrate/dist/esm/{dist-JRQ7GIV4.js → dist-6U5W3RLM.js} +46 -31
- package/vendor/linkque-agent-appwrite-integrate/dist/esm/{google-generative-ai-WBIK2BRB.js → google-generative-ai-RT2OOQDJ.js} +1 -1
- package/vendor/linkque-agent-appwrite-integrate/dist/esm/{google-vertex-2TMP5HDA.js → google-vertex-HVFMVQVY.js} +1 -1
- package/vendor/linkque-agent-appwrite-integrate/dist/esm/{mistral-conversations-X6KT35XW.js → mistral-conversations-KIOTOF73.js} +4 -4
- package/vendor/linkque-agent-appwrite-integrate/dist/esm/{multipart-parser-HCLTR6CW.js → multipart-parser-TAD6XL3Q.js} +2 -2
- package/vendor/linkque-agent-appwrite-integrate/dist/esm/{otel-3OUODIOB.js → otel-LQR5KPZ3.js} +580 -268
- package/vendor/linkque-agent-appwrite-integrate/dist/esm/runtime/handler/chat.js +326 -227
- package/vendor/linkque-agent-appwrite-integrate/dist/esm/runtime/handler/clientCapability.js +4 -5
- package/vendor/linkque-agent-appwrite-integrate/dist/esm/runtime/protocol.js +4 -5
- package/vendor/linkque-agent-appwrite-integrate/dist/esm/{src-MFXPXO5F.js → src-JSJTYJV5.js} +25 -25
- package/worker.js +60698 -49399
- package/vendor/linkque-agent-appwrite-integrate/dist/esm/chunk-EAODRPW4.js +0 -518
package/vendor/linkque-agent-appwrite-integrate/dist/esm/{chunk-GTEZTRCK.js → chunk-XUFLSZM4.js}
RENAMED
|
@@ -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 =
|
|
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
|
};
|
package/vendor/linkque-agent-appwrite-integrate/dist/esm/{chunk-XYAYDSKW.js → chunk-ZVZ2LH7U.js}
RENAMED
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
RuntimeConfigProvider,
|
|
24
24
|
getRunEmbeddedQuery,
|
|
25
25
|
isDebugLoggingEnabled
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-5BACHYVZ.js";
|
|
27
27
|
import {
|
|
28
28
|
__commonJS,
|
|
29
29
|
__require,
|
|
@@ -7465,11 +7465,11 @@ var $ = !o && globalThis.Request || dt;
|
|
|
7465
7465
|
var C = !o && globalThis.Response || le;
|
|
7466
7466
|
var A = !o && globalThis.AbortController || Mn;
|
|
7467
7467
|
|
|
7468
|
-
//
|
|
7468
|
+
// ../../node_modules/@alipay/appbase-node-sdk/dist/client.mjs
|
|
7469
7469
|
var import_agent = __toESM(require_agent(), 1);
|
|
7470
7470
|
var import_json_bigint2 = __toESM(require_json_bigint(), 1);
|
|
7471
7471
|
|
|
7472
|
-
//
|
|
7472
|
+
// ../../node_modules/@alipay/appbase-node-sdk/dist/query.mjs
|
|
7473
7473
|
var import_json_bigint = __toESM(require_json_bigint(), 1);
|
|
7474
7474
|
var JSONbig = (0, import_json_bigint.default)({ useNativeBigInt: true });
|
|
7475
7475
|
var _Query = class _Query2 {
|
|
@@ -7562,7 +7562,7 @@ _Query.touches = (attribute, values) => new _Query("touches", attribute, [values
|
|
|
7562
7562
|
_Query.notTouches = (attribute, values) => new _Query("notTouches", attribute, [values]).toString();
|
|
7563
7563
|
var Query = _Query;
|
|
7564
7564
|
|
|
7565
|
-
//
|
|
7565
|
+
// ../../node_modules/@alipay/appbase-node-sdk/dist/client.mjs
|
|
7566
7566
|
var JSONbigParser = (0, import_json_bigint2.default)({ storeAsString: false });
|
|
7567
7567
|
var JSONbigSerializer = (0, import_json_bigint2.default)({ useNativeBigInt: true });
|
|
7568
7568
|
var MAX_SAFE = BigInt(Number.MAX_SAFE_INTEGER);
|
|
@@ -8030,7 +8030,7 @@ var _Client = class _Client2 {
|
|
|
8030
8030
|
_Client.CHUNK_SIZE = 1024 * 1024 * 5;
|
|
8031
8031
|
var Client = _Client;
|
|
8032
8032
|
|
|
8033
|
-
//
|
|
8033
|
+
// ../../node_modules/@alipay/appbase-node-sdk/dist/services/databases.mjs
|
|
8034
8034
|
var Databases = class {
|
|
8035
8035
|
constructor(client) {
|
|
8036
8036
|
this.client = client;
|
|
@@ -11458,7 +11458,7 @@ var Databases = class {
|
|
|
11458
11458
|
}
|
|
11459
11459
|
};
|
|
11460
11460
|
|
|
11461
|
-
//
|
|
11461
|
+
// ../../node_modules/@alipay/appbase-node-sdk/dist/services/memory.mjs
|
|
11462
11462
|
var Memory = class {
|
|
11463
11463
|
constructor(client) {
|
|
11464
11464
|
this.client = client;
|
|
@@ -14281,7 +14281,7 @@ var Memory = class {
|
|
|
14281
14281
|
}
|
|
14282
14282
|
};
|
|
14283
14283
|
|
|
14284
|
-
//
|
|
14284
|
+
// ../../node_modules/@alipay/appbase-node-sdk/dist/services/tables-db.mjs
|
|
14285
14285
|
var TablesDB = class {
|
|
14286
14286
|
constructor(client) {
|
|
14287
14287
|
this.client = client;
|
|
@@ -17958,7 +17958,7 @@ var TablesDB = class {
|
|
|
17958
17958
|
}
|
|
17959
17959
|
};
|
|
17960
17960
|
|
|
17961
|
-
//
|
|
17961
|
+
// ../../node_modules/@alipay/appbase-node-sdk/dist/permission.mjs
|
|
17962
17962
|
var Permission = class {
|
|
17963
17963
|
};
|
|
17964
17964
|
Permission.read = (role) => {
|
|
@@ -17977,7 +17977,7 @@ Permission.delete = (role) => {
|
|
|
17977
17977
|
return `delete("${role}")`;
|
|
17978
17978
|
};
|
|
17979
17979
|
|
|
17980
|
-
//
|
|
17980
|
+
// ../../node_modules/@alipay/appbase-node-sdk/dist/operator.mjs
|
|
17981
17981
|
var _Operator = class _Operator2 {
|
|
17982
17982
|
/**
|
|
17983
17983
|
* Constructor for Operator class.
|
|
@@ -18102,7 +18102,7 @@ _Operator.dateAddDays = (days) => new _Operator("dateAddDays", [days]).toString(
|
|
|
18102
18102
|
_Operator.dateSubDays = (days) => new _Operator("dateSubDays", [days]).toString();
|
|
18103
18103
|
_Operator.dateSetNow = () => new _Operator("dateSetNow", []).toString();
|
|
18104
18104
|
|
|
18105
|
-
//
|
|
18105
|
+
// ../../node_modules/@alipay/appbase-node-sdk/dist/enums/memory-scope.mjs
|
|
18106
18106
|
var MemoryScope = /* @__PURE__ */ ((MemoryScope2) => {
|
|
18107
18107
|
MemoryScope2["Private"] = "private";
|
|
18108
18108
|
MemoryScope2["StrictPrivate"] = "strict_private";
|
|
@@ -18112,7 +18112,7 @@ var MemoryScope = /* @__PURE__ */ ((MemoryScope2) => {
|
|
|
18112
18112
|
return MemoryScope2;
|
|
18113
18113
|
})(MemoryScope || {});
|
|
18114
18114
|
|
|
18115
|
-
//
|
|
18115
|
+
// ../../node_modules/@alipay/appbase-node-sdk/dist/enums/memory-record-kind.mjs
|
|
18116
18116
|
var MemoryRecordKind = /* @__PURE__ */ ((MemoryRecordKind2) => {
|
|
18117
18117
|
MemoryRecordKind2["Conversation"] = "conversation";
|
|
18118
18118
|
MemoryRecordKind2["Fact"] = "fact";
|
package/vendor/linkque-agent-appwrite-integrate/dist/esm/{dist-JRQ7GIV4.js → dist-6U5W3RLM.js}
RENAMED
|
@@ -3,9 +3,9 @@ import {
|
|
|
3
3
|
__require
|
|
4
4
|
} from "./chunk-2ESYSVXG.js";
|
|
5
5
|
|
|
6
|
-
// ../../node_modules/
|
|
6
|
+
// ../../node_modules/ms/index.js
|
|
7
7
|
var require_ms = __commonJS({
|
|
8
|
-
"../../node_modules/
|
|
8
|
+
"../../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,50 +222,64 @@ var require_common = __commonJS({
|
|
|
222
222
|
createDebug.namespaces = namespaces;
|
|
223
223
|
createDebug.names = [];
|
|
224
224
|
createDebug.skips = [];
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
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);
|
|
231
231
|
}
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
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;
|
|
235
253
|
} else {
|
|
236
|
-
|
|
254
|
+
return false;
|
|
237
255
|
}
|
|
238
256
|
}
|
|
257
|
+
while (templateIndex < template.length && template[templateIndex] === "*") {
|
|
258
|
+
templateIndex++;
|
|
259
|
+
}
|
|
260
|
+
return templateIndex === template.length;
|
|
239
261
|
}
|
|
240
262
|
function disable() {
|
|
241
263
|
const namespaces = [
|
|
242
|
-
...createDebug.names
|
|
243
|
-
...createDebug.skips.map(
|
|
264
|
+
...createDebug.names,
|
|
265
|
+
...createDebug.skips.map((namespace) => "-" + namespace)
|
|
244
266
|
].join(",");
|
|
245
267
|
createDebug.enable("");
|
|
246
268
|
return namespaces;
|
|
247
269
|
}
|
|
248
270
|
function enabled(name) {
|
|
249
|
-
|
|
250
|
-
|
|
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)) {
|
|
271
|
+
for (const skip of createDebug.skips) {
|
|
272
|
+
if (matchesTemplate(name, skip)) {
|
|
256
273
|
return false;
|
|
257
274
|
}
|
|
258
275
|
}
|
|
259
|
-
for (
|
|
260
|
-
if (
|
|
276
|
+
for (const ns of createDebug.names) {
|
|
277
|
+
if (matchesTemplate(name, ns)) {
|
|
261
278
|
return true;
|
|
262
279
|
}
|
|
263
280
|
}
|
|
264
281
|
return false;
|
|
265
282
|
}
|
|
266
|
-
function toNamespace(regexp) {
|
|
267
|
-
return regexp.toString().substring(2, regexp.toString().length - 2).replace(/\.\*\?$/, "*");
|
|
268
|
-
}
|
|
269
283
|
function coerce(val) {
|
|
270
284
|
if (val instanceof Error) {
|
|
271
285
|
return val.stack || val.message;
|
|
@@ -384,10 +398,11 @@ var require_browser = __commonJS({
|
|
|
384
398
|
if (typeof navigator !== "undefined" && navigator.userAgent && navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)) {
|
|
385
399
|
return false;
|
|
386
400
|
}
|
|
401
|
+
let m;
|
|
387
402
|
return typeof document !== "undefined" && document.documentElement && document.documentElement.style && document.documentElement.style.WebkitAppearance || // Is firebug? http://stackoverflow.com/a/398120/376773
|
|
388
403
|
typeof window !== "undefined" && window.console && (window.console.firebug || window.console.exception && window.console.table) || // Is firefox >= v31?
|
|
389
404
|
// https://developer.mozilla.org/en-US/docs/Tools/Web_Console#Styling_messages
|
|
390
|
-
typeof navigator !== "undefined" && navigator.userAgent && navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/) && parseInt(
|
|
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
|
|
391
406
|
typeof navigator !== "undefined" && navigator.userAgent && navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/);
|
|
392
407
|
}
|
|
393
408
|
function formatArgs(args) {
|
|
@@ -425,7 +440,7 @@ var require_browser = __commonJS({
|
|
|
425
440
|
function load() {
|
|
426
441
|
let r;
|
|
427
442
|
try {
|
|
428
|
-
r = exports.storage.getItem("debug");
|
|
443
|
+
r = exports.storage.getItem("debug") || exports.storage.getItem("DEBUG");
|
|
429
444
|
} catch (error) {
|
|
430
445
|
}
|
|
431
446
|
if (!r && typeof process !== "undefined" && "env" in process) {
|
|
@@ -451,9 +466,9 @@ var require_browser = __commonJS({
|
|
|
451
466
|
}
|
|
452
467
|
});
|
|
453
468
|
|
|
454
|
-
// ../../node_modules/has-flag/index.js
|
|
469
|
+
// ../../node_modules/supports-color/node_modules/has-flag/index.js
|
|
455
470
|
var require_has_flag = __commonJS({
|
|
456
|
-
"../../node_modules/has-flag/index.js"(exports, module) {
|
|
471
|
+
"../../node_modules/supports-color/node_modules/has-flag/index.js"(exports, module) {
|
|
457
472
|
"use strict";
|
|
458
473
|
module.exports = function(flag, argv) {
|
|
459
474
|
argv = argv || process.argv;
|
|
@@ -672,7 +687,7 @@ var require_node = __commonJS({
|
|
|
672
687
|
return (/* @__PURE__ */ new Date()).toISOString() + " ";
|
|
673
688
|
}
|
|
674
689
|
function log(...args) {
|
|
675
|
-
return process.stderr.write(util.
|
|
690
|
+
return process.stderr.write(util.formatWithOptions(exports.inspectOpts, ...args) + "\n");
|
|
676
691
|
}
|
|
677
692
|
function save(namespaces) {
|
|
678
693
|
if (namespaces) {
|
|
@@ -36,7 +36,7 @@ import {
|
|
|
36
36
|
safeParse,
|
|
37
37
|
smartUnion,
|
|
38
38
|
unwrapAsync
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-FC7MJHC3.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-XUFLSZM4.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-GAYNLDWK.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-LQR5KPZ3.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/node-fetch/src/utils/multipart-parser.js
|
|
11
|
+
// ../../node_modules/gaxios/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/node-fetch/src/utils/multipart-parser.js"() {
|
|
101
|
+
"../../node_modules/gaxios/node_modules/node-fetch/src/utils/multipart-parser.js"() {
|
|
102
102
|
init_from();
|
|
103
103
|
init_esm_min();
|
|
104
104
|
s = 0;
|