linkque-cli-v2 1.6.12 → 1.6.14
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 +17 -4
- package/linkquejs.js +25220 -24550
- package/package.json +1 -1
- package/vendor/linkque-agent-appwrite-integrate/dist/esm/{chunk-SICWMO5Y.js → chunk-DNTEEBEH.js} +0 -1
- 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-B6GKDCHM.js → chunk-JMBJJF7P.js} +20 -7
- package/vendor/linkque-agent-appwrite-integrate/dist/esm/{chunk-EHNI5TX3.js → chunk-M5DHKJDG.js} +8 -32
- package/vendor/linkque-agent-appwrite-integrate/dist/esm/{chunk-3J4AB676.js → chunk-OLLACFP7.js} +1 -1
- package/vendor/linkque-agent-appwrite-integrate/dist/esm/{chunk-DPHKD4SK.js → chunk-PSKPY5FI.js} +1396 -4814
- package/vendor/linkque-agent-appwrite-integrate/dist/esm/{chunk-GTEZTRCK.js → chunk-XUFLSZM4.js} +190 -35
- package/vendor/linkque-agent-appwrite-integrate/dist/esm/{getMachineId-bsd-NYGVHXGN.js → getMachineId-bsd-JGCLGHFY.js} +1 -1
- package/vendor/linkque-agent-appwrite-integrate/dist/esm/{getMachineId-darwin-OPTJOAYC.js → getMachineId-darwin-COHLFNXH.js} +1 -1
- package/vendor/linkque-agent-appwrite-integrate/dist/esm/{getMachineId-linux-5SQRYTUJ.js → getMachineId-linux-XV3Z5FQG.js} +1 -1
- package/vendor/linkque-agent-appwrite-integrate/dist/esm/{getMachineId-unsupported-OJE7WPEH.js → getMachineId-unsupported-FCRKLIZL.js} +1 -1
- package/vendor/linkque-agent-appwrite-integrate/dist/esm/{getMachineId-win-SLTTCNXU.js → getMachineId-win-A4WRNVV6.js} +1 -1
- package/vendor/linkque-agent-appwrite-integrate/dist/esm/{google-generative-ai-6CFHQGZ4.js → google-generative-ai-KD7MXONK.js} +1 -1
- package/vendor/linkque-agent-appwrite-integrate/dist/esm/{google-vertex-C3RF55I7.js → google-vertex-TREYA472.js} +1 -1
- package/vendor/linkque-agent-appwrite-integrate/dist/esm/{mistral-conversations-XUDTCRDY.js → mistral-conversations-OEOTQWE5.js} +4 -4
- package/vendor/linkque-agent-appwrite-integrate/dist/esm/{otel-3OUODIOB.js → otel-WGS5CC2J.js} +3 -3
- package/vendor/linkque-agent-appwrite-integrate/dist/esm/runtime/handler/chat.js +181 -188
- package/vendor/linkque-agent-appwrite-integrate/dist/esm/runtime/handler/clientCapability.js +5 -5
- package/vendor/linkque-agent-appwrite-integrate/dist/esm/runtime/protocol.js +5 -5
- package/worker.js +7236 -14242
|
@@ -41,9 +41,8 @@ import {
|
|
|
41
41
|
readAppwriteApiKey,
|
|
42
42
|
readAuthenticatedUserId,
|
|
43
43
|
readEnvSelector,
|
|
44
|
+
readFrontendAppId,
|
|
44
45
|
readMcpPhoneAuthorization,
|
|
45
|
-
readOtelTraceId,
|
|
46
|
-
readTemporaryFrontendAppId,
|
|
47
46
|
readTraceId,
|
|
48
47
|
resolveBodyJSON,
|
|
49
48
|
resolveGatewayAuthContext,
|
|
@@ -51,13 +50,13 @@ import {
|
|
|
51
50
|
resolveRunStorage,
|
|
52
51
|
toAgentRunMessages,
|
|
53
52
|
withIsoTimestamp
|
|
54
|
-
} from "../../chunk-
|
|
53
|
+
} from "../../chunk-M5DHKJDG.js";
|
|
55
54
|
import "../../chunk-IWOFD643.js";
|
|
56
55
|
import "../../chunk-PXCGFBV5.js";
|
|
57
56
|
import "../../chunk-ETG6PNHQ.js";
|
|
58
57
|
import {
|
|
59
58
|
getBakedProtocol
|
|
60
|
-
} from "../../chunk-
|
|
59
|
+
} from "../../chunk-OLLACFP7.js";
|
|
61
60
|
import {
|
|
62
61
|
ACTIVATE_SKILL_TOOL_NAME,
|
|
63
62
|
CANCEL_CONVERSATION_RUN_OPERATION,
|
|
@@ -197,11 +196,11 @@ import {
|
|
|
197
196
|
warnLogFailure,
|
|
198
197
|
wrapToolWithHooks,
|
|
199
198
|
writeJsonPointer
|
|
200
|
-
} from "../../chunk-
|
|
199
|
+
} from "../../chunk-PSKPY5FI.js";
|
|
201
200
|
import "../../chunk-EAODRPW4.js";
|
|
202
|
-
import "../../chunk-
|
|
203
|
-
import "../../chunk-
|
|
204
|
-
import "../../chunk-
|
|
201
|
+
import "../../chunk-XUFLSZM4.js";
|
|
202
|
+
import "../../chunk-GAYNLDWK.js";
|
|
203
|
+
import "../../chunk-DNTEEBEH.js";
|
|
205
204
|
import {
|
|
206
205
|
__commonJS,
|
|
207
206
|
__export,
|
|
@@ -209,9 +208,9 @@ import {
|
|
|
209
208
|
__toESM
|
|
210
209
|
} from "../../chunk-2ESYSVXG.js";
|
|
211
210
|
|
|
212
|
-
// ../../node_modules
|
|
211
|
+
// ../../node_modules/yaml/dist/nodes/identity.js
|
|
213
212
|
var require_identity = __commonJS({
|
|
214
|
-
"../../node_modules
|
|
213
|
+
"../../node_modules/yaml/dist/nodes/identity.js"(exports) {
|
|
215
214
|
"use strict";
|
|
216
215
|
var ALIAS = Symbol.for("yaml.alias");
|
|
217
216
|
var DOC = Symbol.for("yaml.document");
|
|
@@ -266,9 +265,9 @@ var require_identity = __commonJS({
|
|
|
266
265
|
}
|
|
267
266
|
});
|
|
268
267
|
|
|
269
|
-
// ../../node_modules
|
|
268
|
+
// ../../node_modules/yaml/dist/visit.js
|
|
270
269
|
var require_visit = __commonJS({
|
|
271
|
-
"../../node_modules
|
|
270
|
+
"../../node_modules/yaml/dist/visit.js"(exports) {
|
|
272
271
|
"use strict";
|
|
273
272
|
var identity = require_identity();
|
|
274
273
|
var BREAK = Symbol("break visit");
|
|
@@ -424,9 +423,9 @@ var require_visit = __commonJS({
|
|
|
424
423
|
}
|
|
425
424
|
});
|
|
426
425
|
|
|
427
|
-
// ../../node_modules
|
|
426
|
+
// ../../node_modules/yaml/dist/doc/directives.js
|
|
428
427
|
var require_directives = __commonJS({
|
|
429
|
-
"../../node_modules
|
|
428
|
+
"../../node_modules/yaml/dist/doc/directives.js"(exports) {
|
|
430
429
|
"use strict";
|
|
431
430
|
var identity = require_identity();
|
|
432
431
|
var visit = require_visit();
|
|
@@ -595,9 +594,9 @@ var require_directives = __commonJS({
|
|
|
595
594
|
}
|
|
596
595
|
});
|
|
597
596
|
|
|
598
|
-
// ../../node_modules
|
|
597
|
+
// ../../node_modules/yaml/dist/doc/anchors.js
|
|
599
598
|
var require_anchors = __commonJS({
|
|
600
|
-
"../../node_modules
|
|
599
|
+
"../../node_modules/yaml/dist/doc/anchors.js"(exports) {
|
|
601
600
|
"use strict";
|
|
602
601
|
var identity = require_identity();
|
|
603
602
|
var visit = require_visit();
|
|
@@ -665,9 +664,9 @@ var require_anchors = __commonJS({
|
|
|
665
664
|
}
|
|
666
665
|
});
|
|
667
666
|
|
|
668
|
-
// ../../node_modules
|
|
667
|
+
// ../../node_modules/yaml/dist/doc/applyReviver.js
|
|
669
668
|
var require_applyReviver = __commonJS({
|
|
670
|
-
"../../node_modules
|
|
669
|
+
"../../node_modules/yaml/dist/doc/applyReviver.js"(exports) {
|
|
671
670
|
"use strict";
|
|
672
671
|
function applyReviver(reviver, obj, key, val) {
|
|
673
672
|
if (val && typeof val === "object") {
|
|
@@ -715,9 +714,9 @@ var require_applyReviver = __commonJS({
|
|
|
715
714
|
}
|
|
716
715
|
});
|
|
717
716
|
|
|
718
|
-
// ../../node_modules
|
|
717
|
+
// ../../node_modules/yaml/dist/nodes/toJS.js
|
|
719
718
|
var require_toJS = __commonJS({
|
|
720
|
-
"../../node_modules
|
|
719
|
+
"../../node_modules/yaml/dist/nodes/toJS.js"(exports) {
|
|
721
720
|
"use strict";
|
|
722
721
|
var identity = require_identity();
|
|
723
722
|
function toJS(value, arg, ctx) {
|
|
@@ -745,9 +744,9 @@ var require_toJS = __commonJS({
|
|
|
745
744
|
}
|
|
746
745
|
});
|
|
747
746
|
|
|
748
|
-
// ../../node_modules
|
|
747
|
+
// ../../node_modules/yaml/dist/nodes/Node.js
|
|
749
748
|
var require_Node = __commonJS({
|
|
750
|
-
"../../node_modules
|
|
749
|
+
"../../node_modules/yaml/dist/nodes/Node.js"(exports) {
|
|
751
750
|
"use strict";
|
|
752
751
|
var applyReviver = require_applyReviver();
|
|
753
752
|
var identity = require_identity();
|
|
@@ -786,9 +785,9 @@ var require_Node = __commonJS({
|
|
|
786
785
|
}
|
|
787
786
|
});
|
|
788
787
|
|
|
789
|
-
// ../../node_modules
|
|
788
|
+
// ../../node_modules/yaml/dist/nodes/Alias.js
|
|
790
789
|
var require_Alias = __commonJS({
|
|
791
|
-
"../../node_modules
|
|
790
|
+
"../../node_modules/yaml/dist/nodes/Alias.js"(exports) {
|
|
792
791
|
"use strict";
|
|
793
792
|
var anchors = require_anchors();
|
|
794
793
|
var visit = require_visit();
|
|
@@ -902,9 +901,9 @@ var require_Alias = __commonJS({
|
|
|
902
901
|
}
|
|
903
902
|
});
|
|
904
903
|
|
|
905
|
-
// ../../node_modules
|
|
904
|
+
// ../../node_modules/yaml/dist/nodes/Scalar.js
|
|
906
905
|
var require_Scalar = __commonJS({
|
|
907
|
-
"../../node_modules
|
|
906
|
+
"../../node_modules/yaml/dist/nodes/Scalar.js"(exports) {
|
|
908
907
|
"use strict";
|
|
909
908
|
var identity = require_identity();
|
|
910
909
|
var Node = require_Node();
|
|
@@ -932,9 +931,9 @@ var require_Scalar = __commonJS({
|
|
|
932
931
|
}
|
|
933
932
|
});
|
|
934
933
|
|
|
935
|
-
// ../../node_modules
|
|
934
|
+
// ../../node_modules/yaml/dist/doc/createNode.js
|
|
936
935
|
var require_createNode = __commonJS({
|
|
937
|
-
"../../node_modules
|
|
936
|
+
"../../node_modules/yaml/dist/doc/createNode.js"(exports) {
|
|
938
937
|
"use strict";
|
|
939
938
|
var Alias = require_Alias();
|
|
940
939
|
var identity = require_identity();
|
|
@@ -1007,9 +1006,9 @@ var require_createNode = __commonJS({
|
|
|
1007
1006
|
}
|
|
1008
1007
|
});
|
|
1009
1008
|
|
|
1010
|
-
// ../../node_modules
|
|
1009
|
+
// ../../node_modules/yaml/dist/nodes/Collection.js
|
|
1011
1010
|
var require_Collection = __commonJS({
|
|
1012
|
-
"../../node_modules
|
|
1011
|
+
"../../node_modules/yaml/dist/nodes/Collection.js"(exports) {
|
|
1013
1012
|
"use strict";
|
|
1014
1013
|
var createNode = require_createNode();
|
|
1015
1014
|
var identity = require_identity();
|
|
@@ -1150,9 +1149,9 @@ var require_Collection = __commonJS({
|
|
|
1150
1149
|
}
|
|
1151
1150
|
});
|
|
1152
1151
|
|
|
1153
|
-
// ../../node_modules
|
|
1152
|
+
// ../../node_modules/yaml/dist/stringify/stringifyComment.js
|
|
1154
1153
|
var require_stringifyComment = __commonJS({
|
|
1155
|
-
"../../node_modules
|
|
1154
|
+
"../../node_modules/yaml/dist/stringify/stringifyComment.js"(exports) {
|
|
1156
1155
|
"use strict";
|
|
1157
1156
|
var stringifyComment = (str) => str.replace(/^(?!$)(?: $)?/gm, "#");
|
|
1158
1157
|
function indentComment(comment, indent) {
|
|
@@ -1167,9 +1166,9 @@ var require_stringifyComment = __commonJS({
|
|
|
1167
1166
|
}
|
|
1168
1167
|
});
|
|
1169
1168
|
|
|
1170
|
-
// ../../node_modules
|
|
1169
|
+
// ../../node_modules/yaml/dist/stringify/foldFlowLines.js
|
|
1171
1170
|
var require_foldFlowLines = __commonJS({
|
|
1172
|
-
"../../node_modules
|
|
1171
|
+
"../../node_modules/yaml/dist/stringify/foldFlowLines.js"(exports) {
|
|
1173
1172
|
"use strict";
|
|
1174
1173
|
var FOLD_FLOW = "flow";
|
|
1175
1174
|
var FOLD_BLOCK = "block";
|
|
@@ -1303,9 +1302,9 @@ ${indent}${text2.slice(fold + 1, end2)}`;
|
|
|
1303
1302
|
}
|
|
1304
1303
|
});
|
|
1305
1304
|
|
|
1306
|
-
// ../../node_modules
|
|
1305
|
+
// ../../node_modules/yaml/dist/stringify/stringifyString.js
|
|
1307
1306
|
var require_stringifyString = __commonJS({
|
|
1308
|
-
"../../node_modules
|
|
1307
|
+
"../../node_modules/yaml/dist/stringify/stringifyString.js"(exports) {
|
|
1309
1308
|
"use strict";
|
|
1310
1309
|
var Scalar = require_Scalar();
|
|
1311
1310
|
var foldFlowLines = require_foldFlowLines();
|
|
@@ -1586,9 +1585,9 @@ ${indent}`);
|
|
|
1586
1585
|
}
|
|
1587
1586
|
});
|
|
1588
1587
|
|
|
1589
|
-
// ../../node_modules
|
|
1588
|
+
// ../../node_modules/yaml/dist/stringify/stringify.js
|
|
1590
1589
|
var require_stringify = __commonJS({
|
|
1591
|
-
"../../node_modules
|
|
1590
|
+
"../../node_modules/yaml/dist/stringify/stringify.js"(exports) {
|
|
1592
1591
|
"use strict";
|
|
1593
1592
|
var anchors = require_anchors();
|
|
1594
1593
|
var identity = require_identity();
|
|
@@ -1710,9 +1709,9 @@ ${ctx.indent}${str}`;
|
|
|
1710
1709
|
}
|
|
1711
1710
|
});
|
|
1712
1711
|
|
|
1713
|
-
// ../../node_modules
|
|
1712
|
+
// ../../node_modules/yaml/dist/stringify/stringifyPair.js
|
|
1714
1713
|
var require_stringifyPair = __commonJS({
|
|
1715
|
-
"../../node_modules
|
|
1714
|
+
"../../node_modules/yaml/dist/stringify/stringifyPair.js"(exports) {
|
|
1716
1715
|
"use strict";
|
|
1717
1716
|
var identity = require_identity();
|
|
1718
1717
|
var Scalar = require_Scalar();
|
|
@@ -1843,9 +1842,9 @@ ${ctx.indent}`;
|
|
|
1843
1842
|
}
|
|
1844
1843
|
});
|
|
1845
1844
|
|
|
1846
|
-
// ../../node_modules
|
|
1845
|
+
// ../../node_modules/yaml/dist/log.js
|
|
1847
1846
|
var require_log = __commonJS({
|
|
1848
|
-
"../../node_modules
|
|
1847
|
+
"../../node_modules/yaml/dist/log.js"(exports) {
|
|
1849
1848
|
"use strict";
|
|
1850
1849
|
var node_process = __require("process");
|
|
1851
1850
|
function debug(logLevel, ...messages) {
|
|
@@ -1865,9 +1864,9 @@ var require_log = __commonJS({
|
|
|
1865
1864
|
}
|
|
1866
1865
|
});
|
|
1867
1866
|
|
|
1868
|
-
// ../../node_modules
|
|
1867
|
+
// ../../node_modules/yaml/dist/schema/yaml-1.1/merge.js
|
|
1869
1868
|
var require_merge = __commonJS({
|
|
1870
|
-
"../../node_modules
|
|
1869
|
+
"../../node_modules/yaml/dist/schema/yaml-1.1/merge.js"(exports) {
|
|
1871
1870
|
"use strict";
|
|
1872
1871
|
var identity = require_identity();
|
|
1873
1872
|
var Scalar = require_Scalar();
|
|
@@ -1925,9 +1924,9 @@ var require_merge = __commonJS({
|
|
|
1925
1924
|
}
|
|
1926
1925
|
});
|
|
1927
1926
|
|
|
1928
|
-
// ../../node_modules
|
|
1927
|
+
// ../../node_modules/yaml/dist/nodes/addPairToJSMap.js
|
|
1929
1928
|
var require_addPairToJSMap = __commonJS({
|
|
1930
|
-
"../../node_modules
|
|
1929
|
+
"../../node_modules/yaml/dist/nodes/addPairToJSMap.js"(exports) {
|
|
1931
1930
|
"use strict";
|
|
1932
1931
|
var log = require_log();
|
|
1933
1932
|
var merge = require_merge();
|
|
@@ -1989,9 +1988,9 @@ var require_addPairToJSMap = __commonJS({
|
|
|
1989
1988
|
}
|
|
1990
1989
|
});
|
|
1991
1990
|
|
|
1992
|
-
// ../../node_modules
|
|
1991
|
+
// ../../node_modules/yaml/dist/nodes/Pair.js
|
|
1993
1992
|
var require_Pair = __commonJS({
|
|
1994
|
-
"../../node_modules
|
|
1993
|
+
"../../node_modules/yaml/dist/nodes/Pair.js"(exports) {
|
|
1995
1994
|
"use strict";
|
|
1996
1995
|
var createNode = require_createNode();
|
|
1997
1996
|
var stringifyPair = require_stringifyPair();
|
|
@@ -2029,9 +2028,9 @@ var require_Pair = __commonJS({
|
|
|
2029
2028
|
}
|
|
2030
2029
|
});
|
|
2031
2030
|
|
|
2032
|
-
// ../../node_modules
|
|
2031
|
+
// ../../node_modules/yaml/dist/stringify/stringifyCollection.js
|
|
2033
2032
|
var require_stringifyCollection = __commonJS({
|
|
2034
|
-
"../../node_modules
|
|
2033
|
+
"../../node_modules/yaml/dist/stringify/stringifyCollection.js"(exports) {
|
|
2035
2034
|
"use strict";
|
|
2036
2035
|
var identity = require_identity();
|
|
2037
2036
|
var stringify = require_stringify();
|
|
@@ -2180,9 +2179,9 @@ ${indent}${end}`;
|
|
|
2180
2179
|
}
|
|
2181
2180
|
});
|
|
2182
2181
|
|
|
2183
|
-
// ../../node_modules
|
|
2182
|
+
// ../../node_modules/yaml/dist/nodes/YAMLMap.js
|
|
2184
2183
|
var require_YAMLMap = __commonJS({
|
|
2185
|
-
"../../node_modules
|
|
2184
|
+
"../../node_modules/yaml/dist/nodes/YAMLMap.js"(exports) {
|
|
2186
2185
|
"use strict";
|
|
2187
2186
|
var stringifyCollection = require_stringifyCollection();
|
|
2188
2187
|
var addPairToJSMap = require_addPairToJSMap();
|
|
@@ -2324,9 +2323,9 @@ var require_YAMLMap = __commonJS({
|
|
|
2324
2323
|
}
|
|
2325
2324
|
});
|
|
2326
2325
|
|
|
2327
|
-
// ../../node_modules
|
|
2326
|
+
// ../../node_modules/yaml/dist/schema/common/map.js
|
|
2328
2327
|
var require_map = __commonJS({
|
|
2329
|
-
"../../node_modules
|
|
2328
|
+
"../../node_modules/yaml/dist/schema/common/map.js"(exports) {
|
|
2330
2329
|
"use strict";
|
|
2331
2330
|
var identity = require_identity();
|
|
2332
2331
|
var YAMLMap = require_YAMLMap();
|
|
@@ -2346,9 +2345,9 @@ var require_map = __commonJS({
|
|
|
2346
2345
|
}
|
|
2347
2346
|
});
|
|
2348
2347
|
|
|
2349
|
-
// ../../node_modules
|
|
2348
|
+
// ../../node_modules/yaml/dist/nodes/YAMLSeq.js
|
|
2350
2349
|
var require_YAMLSeq = __commonJS({
|
|
2351
|
-
"../../node_modules
|
|
2350
|
+
"../../node_modules/yaml/dist/nodes/YAMLSeq.js"(exports) {
|
|
2352
2351
|
"use strict";
|
|
2353
2352
|
var createNode = require_createNode();
|
|
2354
2353
|
var stringifyCollection = require_stringifyCollection();
|
|
@@ -2462,9 +2461,9 @@ var require_YAMLSeq = __commonJS({
|
|
|
2462
2461
|
}
|
|
2463
2462
|
});
|
|
2464
2463
|
|
|
2465
|
-
// ../../node_modules
|
|
2464
|
+
// ../../node_modules/yaml/dist/schema/common/seq.js
|
|
2466
2465
|
var require_seq = __commonJS({
|
|
2467
|
-
"../../node_modules
|
|
2466
|
+
"../../node_modules/yaml/dist/schema/common/seq.js"(exports) {
|
|
2468
2467
|
"use strict";
|
|
2469
2468
|
var identity = require_identity();
|
|
2470
2469
|
var YAMLSeq = require_YAMLSeq();
|
|
@@ -2484,9 +2483,9 @@ var require_seq = __commonJS({
|
|
|
2484
2483
|
}
|
|
2485
2484
|
});
|
|
2486
2485
|
|
|
2487
|
-
// ../../node_modules
|
|
2486
|
+
// ../../node_modules/yaml/dist/schema/common/string.js
|
|
2488
2487
|
var require_string = __commonJS({
|
|
2489
|
-
"../../node_modules
|
|
2488
|
+
"../../node_modules/yaml/dist/schema/common/string.js"(exports) {
|
|
2490
2489
|
"use strict";
|
|
2491
2490
|
var stringifyString = require_stringifyString();
|
|
2492
2491
|
var string = {
|
|
@@ -2503,9 +2502,9 @@ var require_string = __commonJS({
|
|
|
2503
2502
|
}
|
|
2504
2503
|
});
|
|
2505
2504
|
|
|
2506
|
-
// ../../node_modules
|
|
2505
|
+
// ../../node_modules/yaml/dist/schema/common/null.js
|
|
2507
2506
|
var require_null = __commonJS({
|
|
2508
|
-
"../../node_modules
|
|
2507
|
+
"../../node_modules/yaml/dist/schema/common/null.js"(exports) {
|
|
2509
2508
|
"use strict";
|
|
2510
2509
|
var Scalar = require_Scalar();
|
|
2511
2510
|
var nullTag = {
|
|
@@ -2521,9 +2520,9 @@ var require_null = __commonJS({
|
|
|
2521
2520
|
}
|
|
2522
2521
|
});
|
|
2523
2522
|
|
|
2524
|
-
// ../../node_modules
|
|
2523
|
+
// ../../node_modules/yaml/dist/schema/core/bool.js
|
|
2525
2524
|
var require_bool = __commonJS({
|
|
2526
|
-
"../../node_modules
|
|
2525
|
+
"../../node_modules/yaml/dist/schema/core/bool.js"(exports) {
|
|
2527
2526
|
"use strict";
|
|
2528
2527
|
var Scalar = require_Scalar();
|
|
2529
2528
|
var boolTag = {
|
|
@@ -2545,9 +2544,9 @@ var require_bool = __commonJS({
|
|
|
2545
2544
|
}
|
|
2546
2545
|
});
|
|
2547
2546
|
|
|
2548
|
-
// ../../node_modules
|
|
2547
|
+
// ../../node_modules/yaml/dist/stringify/stringifyNumber.js
|
|
2549
2548
|
var require_stringifyNumber = __commonJS({
|
|
2550
|
-
"../../node_modules
|
|
2549
|
+
"../../node_modules/yaml/dist/stringify/stringifyNumber.js"(exports) {
|
|
2551
2550
|
"use strict";
|
|
2552
2551
|
function stringifyNumber({ format, minFractionDigits, tag, value }) {
|
|
2553
2552
|
if (typeof value === "bigint")
|
|
@@ -2572,9 +2571,9 @@ var require_stringifyNumber = __commonJS({
|
|
|
2572
2571
|
}
|
|
2573
2572
|
});
|
|
2574
2573
|
|
|
2575
|
-
// ../../node_modules
|
|
2574
|
+
// ../../node_modules/yaml/dist/schema/core/float.js
|
|
2576
2575
|
var require_float = __commonJS({
|
|
2577
|
-
"../../node_modules
|
|
2576
|
+
"../../node_modules/yaml/dist/schema/core/float.js"(exports) {
|
|
2578
2577
|
"use strict";
|
|
2579
2578
|
var Scalar = require_Scalar();
|
|
2580
2579
|
var stringifyNumber = require_stringifyNumber();
|
|
@@ -2618,9 +2617,9 @@ var require_float = __commonJS({
|
|
|
2618
2617
|
}
|
|
2619
2618
|
});
|
|
2620
2619
|
|
|
2621
|
-
// ../../node_modules
|
|
2620
|
+
// ../../node_modules/yaml/dist/schema/core/int.js
|
|
2622
2621
|
var require_int = __commonJS({
|
|
2623
|
-
"../../node_modules
|
|
2622
|
+
"../../node_modules/yaml/dist/schema/core/int.js"(exports) {
|
|
2624
2623
|
"use strict";
|
|
2625
2624
|
var stringifyNumber = require_stringifyNumber();
|
|
2626
2625
|
var intIdentify = (value) => typeof value === "bigint" || Number.isInteger(value);
|
|
@@ -2663,9 +2662,9 @@ var require_int = __commonJS({
|
|
|
2663
2662
|
}
|
|
2664
2663
|
});
|
|
2665
2664
|
|
|
2666
|
-
// ../../node_modules
|
|
2665
|
+
// ../../node_modules/yaml/dist/schema/core/schema.js
|
|
2667
2666
|
var require_schema = __commonJS({
|
|
2668
|
-
"../../node_modules
|
|
2667
|
+
"../../node_modules/yaml/dist/schema/core/schema.js"(exports) {
|
|
2669
2668
|
"use strict";
|
|
2670
2669
|
var map = require_map();
|
|
2671
2670
|
var _null = require_null();
|
|
@@ -2691,9 +2690,9 @@ var require_schema = __commonJS({
|
|
|
2691
2690
|
}
|
|
2692
2691
|
});
|
|
2693
2692
|
|
|
2694
|
-
// ../../node_modules
|
|
2693
|
+
// ../../node_modules/yaml/dist/schema/json/schema.js
|
|
2695
2694
|
var require_schema2 = __commonJS({
|
|
2696
|
-
"../../node_modules
|
|
2695
|
+
"../../node_modules/yaml/dist/schema/json/schema.js"(exports) {
|
|
2697
2696
|
"use strict";
|
|
2698
2697
|
var Scalar = require_Scalar();
|
|
2699
2698
|
var map = require_map();
|
|
@@ -2758,9 +2757,9 @@ var require_schema2 = __commonJS({
|
|
|
2758
2757
|
}
|
|
2759
2758
|
});
|
|
2760
2759
|
|
|
2761
|
-
// ../../node_modules
|
|
2760
|
+
// ../../node_modules/yaml/dist/schema/yaml-1.1/binary.js
|
|
2762
2761
|
var require_binary = __commonJS({
|
|
2763
|
-
"../../node_modules
|
|
2762
|
+
"../../node_modules/yaml/dist/schema/yaml-1.1/binary.js"(exports) {
|
|
2764
2763
|
"use strict";
|
|
2765
2764
|
var node_buffer = __require("buffer");
|
|
2766
2765
|
var Scalar = require_Scalar();
|
|
@@ -2824,9 +2823,9 @@ var require_binary = __commonJS({
|
|
|
2824
2823
|
}
|
|
2825
2824
|
});
|
|
2826
2825
|
|
|
2827
|
-
// ../../node_modules
|
|
2826
|
+
// ../../node_modules/yaml/dist/schema/yaml-1.1/pairs.js
|
|
2828
2827
|
var require_pairs = __commonJS({
|
|
2829
|
-
"../../node_modules
|
|
2828
|
+
"../../node_modules/yaml/dist/schema/yaml-1.1/pairs.js"(exports) {
|
|
2830
2829
|
"use strict";
|
|
2831
2830
|
var identity = require_identity();
|
|
2832
2831
|
var Pair = require_Pair();
|
|
@@ -2902,9 +2901,9 @@ ${cn.comment}` : item.comment;
|
|
|
2902
2901
|
}
|
|
2903
2902
|
});
|
|
2904
2903
|
|
|
2905
|
-
// ../../node_modules
|
|
2904
|
+
// ../../node_modules/yaml/dist/schema/yaml-1.1/omap.js
|
|
2906
2905
|
var require_omap = __commonJS({
|
|
2907
|
-
"../../node_modules
|
|
2906
|
+
"../../node_modules/yaml/dist/schema/yaml-1.1/omap.js"(exports) {
|
|
2908
2907
|
"use strict";
|
|
2909
2908
|
var identity = require_identity();
|
|
2910
2909
|
var toJS = require_toJS();
|
|
@@ -2980,9 +2979,9 @@ var require_omap = __commonJS({
|
|
|
2980
2979
|
}
|
|
2981
2980
|
});
|
|
2982
2981
|
|
|
2983
|
-
// ../../node_modules
|
|
2982
|
+
// ../../node_modules/yaml/dist/schema/yaml-1.1/bool.js
|
|
2984
2983
|
var require_bool2 = __commonJS({
|
|
2985
|
-
"../../node_modules
|
|
2984
|
+
"../../node_modules/yaml/dist/schema/yaml-1.1/bool.js"(exports) {
|
|
2986
2985
|
"use strict";
|
|
2987
2986
|
var Scalar = require_Scalar();
|
|
2988
2987
|
function boolStringify({ value, source }, ctx) {
|
|
@@ -3012,9 +3011,9 @@ var require_bool2 = __commonJS({
|
|
|
3012
3011
|
}
|
|
3013
3012
|
});
|
|
3014
3013
|
|
|
3015
|
-
// ../../node_modules
|
|
3014
|
+
// ../../node_modules/yaml/dist/schema/yaml-1.1/float.js
|
|
3016
3015
|
var require_float2 = __commonJS({
|
|
3017
|
-
"../../node_modules
|
|
3016
|
+
"../../node_modules/yaml/dist/schema/yaml-1.1/float.js"(exports) {
|
|
3018
3017
|
"use strict";
|
|
3019
3018
|
var Scalar = require_Scalar();
|
|
3020
3019
|
var stringifyNumber = require_stringifyNumber();
|
|
@@ -3061,9 +3060,9 @@ var require_float2 = __commonJS({
|
|
|
3061
3060
|
}
|
|
3062
3061
|
});
|
|
3063
3062
|
|
|
3064
|
-
// ../../node_modules
|
|
3063
|
+
// ../../node_modules/yaml/dist/schema/yaml-1.1/int.js
|
|
3065
3064
|
var require_int2 = __commonJS({
|
|
3066
|
-
"../../node_modules
|
|
3065
|
+
"../../node_modules/yaml/dist/schema/yaml-1.1/int.js"(exports) {
|
|
3067
3066
|
"use strict";
|
|
3068
3067
|
var stringifyNumber = require_stringifyNumber();
|
|
3069
3068
|
var intIdentify = (value) => typeof value === "bigint" || Number.isInteger(value);
|
|
@@ -3140,9 +3139,9 @@ var require_int2 = __commonJS({
|
|
|
3140
3139
|
}
|
|
3141
3140
|
});
|
|
3142
3141
|
|
|
3143
|
-
// ../../node_modules
|
|
3142
|
+
// ../../node_modules/yaml/dist/schema/yaml-1.1/set.js
|
|
3144
3143
|
var require_set = __commonJS({
|
|
3145
|
-
"../../node_modules
|
|
3144
|
+
"../../node_modules/yaml/dist/schema/yaml-1.1/set.js"(exports) {
|
|
3146
3145
|
"use strict";
|
|
3147
3146
|
var identity = require_identity();
|
|
3148
3147
|
var Pair = require_Pair();
|
|
@@ -3229,9 +3228,9 @@ var require_set = __commonJS({
|
|
|
3229
3228
|
}
|
|
3230
3229
|
});
|
|
3231
3230
|
|
|
3232
|
-
// ../../node_modules
|
|
3231
|
+
// ../../node_modules/yaml/dist/schema/yaml-1.1/timestamp.js
|
|
3233
3232
|
var require_timestamp = __commonJS({
|
|
3234
|
-
"../../node_modules
|
|
3233
|
+
"../../node_modules/yaml/dist/schema/yaml-1.1/timestamp.js"(exports) {
|
|
3235
3234
|
"use strict";
|
|
3236
3235
|
var stringifyNumber = require_stringifyNumber();
|
|
3237
3236
|
function parseSexagesimal(str, asBigInt) {
|
|
@@ -3317,9 +3316,9 @@ var require_timestamp = __commonJS({
|
|
|
3317
3316
|
}
|
|
3318
3317
|
});
|
|
3319
3318
|
|
|
3320
|
-
// ../../node_modules
|
|
3319
|
+
// ../../node_modules/yaml/dist/schema/yaml-1.1/schema.js
|
|
3321
3320
|
var require_schema3 = __commonJS({
|
|
3322
|
-
"../../node_modules
|
|
3321
|
+
"../../node_modules/yaml/dist/schema/yaml-1.1/schema.js"(exports) {
|
|
3323
3322
|
"use strict";
|
|
3324
3323
|
var map = require_map();
|
|
3325
3324
|
var _null = require_null();
|
|
@@ -3361,9 +3360,9 @@ var require_schema3 = __commonJS({
|
|
|
3361
3360
|
}
|
|
3362
3361
|
});
|
|
3363
3362
|
|
|
3364
|
-
// ../../node_modules
|
|
3363
|
+
// ../../node_modules/yaml/dist/schema/tags.js
|
|
3365
3364
|
var require_tags = __commonJS({
|
|
3366
|
-
"../../node_modules
|
|
3365
|
+
"../../node_modules/yaml/dist/schema/tags.js"(exports) {
|
|
3367
3366
|
"use strict";
|
|
3368
3367
|
var map = require_map();
|
|
3369
3368
|
var _null = require_null();
|
|
@@ -3455,9 +3454,9 @@ var require_tags = __commonJS({
|
|
|
3455
3454
|
}
|
|
3456
3455
|
});
|
|
3457
3456
|
|
|
3458
|
-
// ../../node_modules
|
|
3457
|
+
// ../../node_modules/yaml/dist/schema/Schema.js
|
|
3459
3458
|
var require_Schema = __commonJS({
|
|
3460
|
-
"../../node_modules
|
|
3459
|
+
"../../node_modules/yaml/dist/schema/Schema.js"(exports) {
|
|
3461
3460
|
"use strict";
|
|
3462
3461
|
var identity = require_identity();
|
|
3463
3462
|
var map = require_map();
|
|
@@ -3487,9 +3486,9 @@ var require_Schema = __commonJS({
|
|
|
3487
3486
|
}
|
|
3488
3487
|
});
|
|
3489
3488
|
|
|
3490
|
-
// ../../node_modules
|
|
3489
|
+
// ../../node_modules/yaml/dist/stringify/stringifyDocument.js
|
|
3491
3490
|
var require_stringifyDocument = __commonJS({
|
|
3492
|
-
"../../node_modules
|
|
3491
|
+
"../../node_modules/yaml/dist/stringify/stringifyDocument.js"(exports) {
|
|
3493
3492
|
"use strict";
|
|
3494
3493
|
var identity = require_identity();
|
|
3495
3494
|
var stringify = require_stringify();
|
|
@@ -3567,9 +3566,9 @@ var require_stringifyDocument = __commonJS({
|
|
|
3567
3566
|
}
|
|
3568
3567
|
});
|
|
3569
3568
|
|
|
3570
|
-
// ../../node_modules
|
|
3569
|
+
// ../../node_modules/yaml/dist/doc/Document.js
|
|
3571
3570
|
var require_Document = __commonJS({
|
|
3572
|
-
"../../node_modules
|
|
3571
|
+
"../../node_modules/yaml/dist/doc/Document.js"(exports) {
|
|
3573
3572
|
"use strict";
|
|
3574
3573
|
var Alias = require_Alias();
|
|
3575
3574
|
var Collection = require_Collection();
|
|
@@ -3876,9 +3875,9 @@ var require_Document = __commonJS({
|
|
|
3876
3875
|
}
|
|
3877
3876
|
});
|
|
3878
3877
|
|
|
3879
|
-
// ../../node_modules
|
|
3878
|
+
// ../../node_modules/yaml/dist/errors.js
|
|
3880
3879
|
var require_errors = __commonJS({
|
|
3881
|
-
"../../node_modules
|
|
3880
|
+
"../../node_modules/yaml/dist/errors.js"(exports) {
|
|
3882
3881
|
"use strict";
|
|
3883
3882
|
var YAMLError = class extends Error {
|
|
3884
3883
|
constructor(name, pos, code, message) {
|
|
@@ -3941,9 +3940,9 @@ ${pointer}
|
|
|
3941
3940
|
}
|
|
3942
3941
|
});
|
|
3943
3942
|
|
|
3944
|
-
// ../../node_modules
|
|
3943
|
+
// ../../node_modules/yaml/dist/compose/resolve-props.js
|
|
3945
3944
|
var require_resolve_props = __commonJS({
|
|
3946
|
-
"../../node_modules
|
|
3945
|
+
"../../node_modules/yaml/dist/compose/resolve-props.js"(exports) {
|
|
3947
3946
|
"use strict";
|
|
3948
3947
|
function resolveProps(tokens, { flow, indicator, next, offset, onError, parentIndent, startOnNewline }) {
|
|
3949
3948
|
let spaceBefore = false;
|
|
@@ -4074,9 +4073,9 @@ var require_resolve_props = __commonJS({
|
|
|
4074
4073
|
}
|
|
4075
4074
|
});
|
|
4076
4075
|
|
|
4077
|
-
// ../../node_modules
|
|
4076
|
+
// ../../node_modules/yaml/dist/compose/util-contains-newline.js
|
|
4078
4077
|
var require_util_contains_newline = __commonJS({
|
|
4079
|
-
"../../node_modules
|
|
4078
|
+
"../../node_modules/yaml/dist/compose/util-contains-newline.js"(exports) {
|
|
4080
4079
|
"use strict";
|
|
4081
4080
|
function containsNewline(key) {
|
|
4082
4081
|
if (!key)
|
|
@@ -4116,9 +4115,9 @@ var require_util_contains_newline = __commonJS({
|
|
|
4116
4115
|
}
|
|
4117
4116
|
});
|
|
4118
4117
|
|
|
4119
|
-
// ../../node_modules
|
|
4118
|
+
// ../../node_modules/yaml/dist/compose/util-flow-indent-check.js
|
|
4120
4119
|
var require_util_flow_indent_check = __commonJS({
|
|
4121
|
-
"../../node_modules
|
|
4120
|
+
"../../node_modules/yaml/dist/compose/util-flow-indent-check.js"(exports) {
|
|
4122
4121
|
"use strict";
|
|
4123
4122
|
var utilContainsNewline = require_util_contains_newline();
|
|
4124
4123
|
function flowIndentCheck(indent, fc, onError) {
|
|
@@ -4134,9 +4133,9 @@ var require_util_flow_indent_check = __commonJS({
|
|
|
4134
4133
|
}
|
|
4135
4134
|
});
|
|
4136
4135
|
|
|
4137
|
-
// ../../node_modules
|
|
4136
|
+
// ../../node_modules/yaml/dist/compose/util-map-includes.js
|
|
4138
4137
|
var require_util_map_includes = __commonJS({
|
|
4139
|
-
"../../node_modules
|
|
4138
|
+
"../../node_modules/yaml/dist/compose/util-map-includes.js"(exports) {
|
|
4140
4139
|
"use strict";
|
|
4141
4140
|
var identity = require_identity();
|
|
4142
4141
|
function mapIncludes(ctx, items, search) {
|
|
@@ -4150,9 +4149,9 @@ var require_util_map_includes = __commonJS({
|
|
|
4150
4149
|
}
|
|
4151
4150
|
});
|
|
4152
4151
|
|
|
4153
|
-
// ../../node_modules
|
|
4152
|
+
// ../../node_modules/yaml/dist/compose/resolve-block-map.js
|
|
4154
4153
|
var require_resolve_block_map = __commonJS({
|
|
4155
|
-
"../../node_modules
|
|
4154
|
+
"../../node_modules/yaml/dist/compose/resolve-block-map.js"(exports) {
|
|
4156
4155
|
"use strict";
|
|
4157
4156
|
var Pair = require_Pair();
|
|
4158
4157
|
var YAMLMap = require_YAMLMap();
|
|
@@ -4258,9 +4257,9 @@ var require_resolve_block_map = __commonJS({
|
|
|
4258
4257
|
}
|
|
4259
4258
|
});
|
|
4260
4259
|
|
|
4261
|
-
// ../../node_modules
|
|
4260
|
+
// ../../node_modules/yaml/dist/compose/resolve-block-seq.js
|
|
4262
4261
|
var require_resolve_block_seq = __commonJS({
|
|
4263
|
-
"../../node_modules
|
|
4262
|
+
"../../node_modules/yaml/dist/compose/resolve-block-seq.js"(exports) {
|
|
4264
4263
|
"use strict";
|
|
4265
4264
|
var YAMLSeq = require_YAMLSeq();
|
|
4266
4265
|
var resolveProps = require_resolve_props();
|
|
@@ -4309,9 +4308,9 @@ var require_resolve_block_seq = __commonJS({
|
|
|
4309
4308
|
}
|
|
4310
4309
|
});
|
|
4311
4310
|
|
|
4312
|
-
// ../../node_modules
|
|
4311
|
+
// ../../node_modules/yaml/dist/compose/resolve-end.js
|
|
4313
4312
|
var require_resolve_end = __commonJS({
|
|
4314
|
-
"../../node_modules
|
|
4313
|
+
"../../node_modules/yaml/dist/compose/resolve-end.js"(exports) {
|
|
4315
4314
|
"use strict";
|
|
4316
4315
|
function resolveEnd(end, offset, reqSpace, onError) {
|
|
4317
4316
|
let comment = "";
|
|
@@ -4352,9 +4351,9 @@ var require_resolve_end = __commonJS({
|
|
|
4352
4351
|
}
|
|
4353
4352
|
});
|
|
4354
4353
|
|
|
4355
|
-
// ../../node_modules
|
|
4354
|
+
// ../../node_modules/yaml/dist/compose/resolve-flow-collection.js
|
|
4356
4355
|
var require_resolve_flow_collection = __commonJS({
|
|
4357
|
-
"../../node_modules
|
|
4356
|
+
"../../node_modules/yaml/dist/compose/resolve-flow-collection.js"(exports) {
|
|
4358
4357
|
"use strict";
|
|
4359
4358
|
var identity = require_identity();
|
|
4360
4359
|
var Pair = require_Pair();
|
|
@@ -4546,9 +4545,9 @@ var require_resolve_flow_collection = __commonJS({
|
|
|
4546
4545
|
}
|
|
4547
4546
|
});
|
|
4548
4547
|
|
|
4549
|
-
// ../../node_modules
|
|
4548
|
+
// ../../node_modules/yaml/dist/compose/compose-collection.js
|
|
4550
4549
|
var require_compose_collection = __commonJS({
|
|
4551
|
-
"../../node_modules
|
|
4550
|
+
"../../node_modules/yaml/dist/compose/compose-collection.js"(exports) {
|
|
4552
4551
|
"use strict";
|
|
4553
4552
|
var identity = require_identity();
|
|
4554
4553
|
var Scalar = require_Scalar();
|
|
@@ -4611,9 +4610,9 @@ var require_compose_collection = __commonJS({
|
|
|
4611
4610
|
}
|
|
4612
4611
|
});
|
|
4613
4612
|
|
|
4614
|
-
// ../../node_modules
|
|
4613
|
+
// ../../node_modules/yaml/dist/compose/resolve-block-scalar.js
|
|
4615
4614
|
var require_resolve_block_scalar = __commonJS({
|
|
4616
|
-
"../../node_modules
|
|
4615
|
+
"../../node_modules/yaml/dist/compose/resolve-block-scalar.js"(exports) {
|
|
4617
4616
|
"use strict";
|
|
4618
4617
|
var Scalar = require_Scalar();
|
|
4619
4618
|
function resolveBlockScalar(ctx, scalar, onError) {
|
|
@@ -4792,9 +4791,9 @@ var require_resolve_block_scalar = __commonJS({
|
|
|
4792
4791
|
}
|
|
4793
4792
|
});
|
|
4794
4793
|
|
|
4795
|
-
// ../../node_modules
|
|
4794
|
+
// ../../node_modules/yaml/dist/compose/resolve-flow-scalar.js
|
|
4796
4795
|
var require_resolve_flow_scalar = __commonJS({
|
|
4797
|
-
"../../node_modules
|
|
4796
|
+
"../../node_modules/yaml/dist/compose/resolve-flow-scalar.js"(exports) {
|
|
4798
4797
|
"use strict";
|
|
4799
4798
|
var Scalar = require_Scalar();
|
|
4800
4799
|
var resolveEnd = require_resolve_end();
|
|
@@ -5010,9 +5009,9 @@ var require_resolve_flow_scalar = __commonJS({
|
|
|
5010
5009
|
}
|
|
5011
5010
|
});
|
|
5012
5011
|
|
|
5013
|
-
// ../../node_modules
|
|
5012
|
+
// ../../node_modules/yaml/dist/compose/compose-scalar.js
|
|
5014
5013
|
var require_compose_scalar = __commonJS({
|
|
5015
|
-
"../../node_modules
|
|
5014
|
+
"../../node_modules/yaml/dist/compose/compose-scalar.js"(exports) {
|
|
5016
5015
|
"use strict";
|
|
5017
5016
|
var identity = require_identity();
|
|
5018
5017
|
var Scalar = require_Scalar();
|
|
@@ -5091,9 +5090,9 @@ var require_compose_scalar = __commonJS({
|
|
|
5091
5090
|
}
|
|
5092
5091
|
});
|
|
5093
5092
|
|
|
5094
|
-
// ../../node_modules
|
|
5093
|
+
// ../../node_modules/yaml/dist/compose/util-empty-scalar-position.js
|
|
5095
5094
|
var require_util_empty_scalar_position = __commonJS({
|
|
5096
|
-
"../../node_modules
|
|
5095
|
+
"../../node_modules/yaml/dist/compose/util-empty-scalar-position.js"(exports) {
|
|
5097
5096
|
"use strict";
|
|
5098
5097
|
function emptyScalarPosition(offset, before, pos) {
|
|
5099
5098
|
if (before) {
|
|
@@ -5121,9 +5120,9 @@ var require_util_empty_scalar_position = __commonJS({
|
|
|
5121
5120
|
}
|
|
5122
5121
|
});
|
|
5123
5122
|
|
|
5124
|
-
// ../../node_modules
|
|
5123
|
+
// ../../node_modules/yaml/dist/compose/compose-node.js
|
|
5125
5124
|
var require_compose_node = __commonJS({
|
|
5126
|
-
"../../node_modules
|
|
5125
|
+
"../../node_modules/yaml/dist/compose/compose-node.js"(exports) {
|
|
5127
5126
|
"use strict";
|
|
5128
5127
|
var Alias = require_Alias();
|
|
5129
5128
|
var identity = require_identity();
|
|
@@ -5227,9 +5226,9 @@ var require_compose_node = __commonJS({
|
|
|
5227
5226
|
}
|
|
5228
5227
|
});
|
|
5229
5228
|
|
|
5230
|
-
// ../../node_modules
|
|
5229
|
+
// ../../node_modules/yaml/dist/compose/compose-doc.js
|
|
5231
5230
|
var require_compose_doc = __commonJS({
|
|
5232
|
-
"../../node_modules
|
|
5231
|
+
"../../node_modules/yaml/dist/compose/compose-doc.js"(exports) {
|
|
5233
5232
|
"use strict";
|
|
5234
5233
|
var Document = require_Document();
|
|
5235
5234
|
var composeNode = require_compose_node();
|
|
@@ -5270,9 +5269,9 @@ var require_compose_doc = __commonJS({
|
|
|
5270
5269
|
}
|
|
5271
5270
|
});
|
|
5272
5271
|
|
|
5273
|
-
// ../../node_modules
|
|
5272
|
+
// ../../node_modules/yaml/dist/compose/composer.js
|
|
5274
5273
|
var require_composer = __commonJS({
|
|
5275
|
-
"../../node_modules
|
|
5274
|
+
"../../node_modules/yaml/dist/compose/composer.js"(exports) {
|
|
5276
5275
|
"use strict";
|
|
5277
5276
|
var node_process = __require("process");
|
|
5278
5277
|
var directives = require_directives();
|
|
@@ -5478,9 +5477,9 @@ ${end.comment}` : end.comment;
|
|
|
5478
5477
|
}
|
|
5479
5478
|
});
|
|
5480
5479
|
|
|
5481
|
-
// ../../node_modules
|
|
5480
|
+
// ../../node_modules/yaml/dist/parse/cst-scalar.js
|
|
5482
5481
|
var require_cst_scalar = __commonJS({
|
|
5483
|
-
"../../node_modules
|
|
5482
|
+
"../../node_modules/yaml/dist/parse/cst-scalar.js"(exports) {
|
|
5484
5483
|
"use strict";
|
|
5485
5484
|
var resolveBlockScalar = require_resolve_block_scalar();
|
|
5486
5485
|
var resolveFlowScalar = require_resolve_flow_scalar();
|
|
@@ -5663,9 +5662,9 @@ var require_cst_scalar = __commonJS({
|
|
|
5663
5662
|
}
|
|
5664
5663
|
});
|
|
5665
5664
|
|
|
5666
|
-
// ../../node_modules
|
|
5665
|
+
// ../../node_modules/yaml/dist/parse/cst-stringify.js
|
|
5667
5666
|
var require_cst_stringify = __commonJS({
|
|
5668
|
-
"../../node_modules
|
|
5667
|
+
"../../node_modules/yaml/dist/parse/cst-stringify.js"(exports) {
|
|
5669
5668
|
"use strict";
|
|
5670
5669
|
var stringify = (cst) => "type" in cst ? stringifyToken(cst) : stringifyItem(cst);
|
|
5671
5670
|
function stringifyToken(token) {
|
|
@@ -5724,9 +5723,9 @@ var require_cst_stringify = __commonJS({
|
|
|
5724
5723
|
}
|
|
5725
5724
|
});
|
|
5726
5725
|
|
|
5727
|
-
// ../../node_modules
|
|
5726
|
+
// ../../node_modules/yaml/dist/parse/cst-visit.js
|
|
5728
5727
|
var require_cst_visit = __commonJS({
|
|
5729
|
-
"../../node_modules
|
|
5728
|
+
"../../node_modules/yaml/dist/parse/cst-visit.js"(exports) {
|
|
5730
5729
|
"use strict";
|
|
5731
5730
|
var BREAK = Symbol("break visit");
|
|
5732
5731
|
var SKIP = Symbol("skip children");
|
|
@@ -5786,9 +5785,9 @@ var require_cst_visit = __commonJS({
|
|
|
5786
5785
|
}
|
|
5787
5786
|
});
|
|
5788
5787
|
|
|
5789
|
-
// ../../node_modules
|
|
5788
|
+
// ../../node_modules/yaml/dist/parse/cst.js
|
|
5790
5789
|
var require_cst = __commonJS({
|
|
5791
|
-
"../../node_modules
|
|
5790
|
+
"../../node_modules/yaml/dist/parse/cst.js"(exports) {
|
|
5792
5791
|
"use strict";
|
|
5793
5792
|
var cstScalar = require_cst_scalar();
|
|
5794
5793
|
var cstStringify = require_cst_stringify();
|
|
@@ -5888,9 +5887,9 @@ var require_cst = __commonJS({
|
|
|
5888
5887
|
}
|
|
5889
5888
|
});
|
|
5890
5889
|
|
|
5891
|
-
// ../../node_modules
|
|
5890
|
+
// ../../node_modules/yaml/dist/parse/lexer.js
|
|
5892
5891
|
var require_lexer = __commonJS({
|
|
5893
|
-
"../../node_modules
|
|
5892
|
+
"../../node_modules/yaml/dist/parse/lexer.js"(exports) {
|
|
5894
5893
|
"use strict";
|
|
5895
5894
|
var cst = require_cst();
|
|
5896
5895
|
function isEmpty(ch) {
|
|
@@ -6472,9 +6471,9 @@ var require_lexer = __commonJS({
|
|
|
6472
6471
|
}
|
|
6473
6472
|
});
|
|
6474
6473
|
|
|
6475
|
-
// ../../node_modules
|
|
6474
|
+
// ../../node_modules/yaml/dist/parse/line-counter.js
|
|
6476
6475
|
var require_line_counter = __commonJS({
|
|
6477
|
-
"../../node_modules
|
|
6476
|
+
"../../node_modules/yaml/dist/parse/line-counter.js"(exports) {
|
|
6478
6477
|
"use strict";
|
|
6479
6478
|
var LineCounter = class {
|
|
6480
6479
|
constructor() {
|
|
@@ -6503,9 +6502,9 @@ var require_line_counter = __commonJS({
|
|
|
6503
6502
|
}
|
|
6504
6503
|
});
|
|
6505
6504
|
|
|
6506
|
-
// ../../node_modules
|
|
6505
|
+
// ../../node_modules/yaml/dist/parse/parser.js
|
|
6507
6506
|
var require_parser = __commonJS({
|
|
6508
|
-
"../../node_modules
|
|
6507
|
+
"../../node_modules/yaml/dist/parse/parser.js"(exports) {
|
|
6509
6508
|
"use strict";
|
|
6510
6509
|
var node_process = __require("process");
|
|
6511
6510
|
var cst = require_cst();
|
|
@@ -7373,9 +7372,9 @@ var require_parser = __commonJS({
|
|
|
7373
7372
|
}
|
|
7374
7373
|
});
|
|
7375
7374
|
|
|
7376
|
-
// ../../node_modules
|
|
7375
|
+
// ../../node_modules/yaml/dist/public-api.js
|
|
7377
7376
|
var require_public_api = __commonJS({
|
|
7378
|
-
"../../node_modules
|
|
7377
|
+
"../../node_modules/yaml/dist/public-api.js"(exports) {
|
|
7379
7378
|
"use strict";
|
|
7380
7379
|
var composer = require_composer();
|
|
7381
7380
|
var Document = require_Document();
|
|
@@ -7470,9 +7469,9 @@ var require_public_api = __commonJS({
|
|
|
7470
7469
|
}
|
|
7471
7470
|
});
|
|
7472
7471
|
|
|
7473
|
-
// ../../node_modules
|
|
7472
|
+
// ../../node_modules/yaml/dist/index.js
|
|
7474
7473
|
var require_dist = __commonJS({
|
|
7475
|
-
"../../node_modules
|
|
7474
|
+
"../../node_modules/yaml/dist/index.js"(exports) {
|
|
7476
7475
|
"use strict";
|
|
7477
7476
|
var composer = require_composer();
|
|
7478
7477
|
var Document = require_Document();
|
|
@@ -8444,13 +8443,13 @@ var bedrockModuleOverride;
|
|
|
8444
8443
|
var bedrockConverseStreamApi = () => lazyApi(async () => bedrockModuleOverride ?? await importNodeOnlyApi("./bedrock-converse-stream.ts"));
|
|
8445
8444
|
|
|
8446
8445
|
// ../../node_modules/@earendil-works/pi-ai/dist/api/google-generative-ai.lazy.js
|
|
8447
|
-
var googleGenerativeAIApi = () => lazyApi(() => import("../../google-generative-ai-
|
|
8446
|
+
var googleGenerativeAIApi = () => lazyApi(() => import("../../google-generative-ai-KD7MXONK.js"));
|
|
8448
8447
|
|
|
8449
8448
|
// ../../node_modules/@earendil-works/pi-ai/dist/api/google-vertex.lazy.js
|
|
8450
|
-
var googleVertexApi = () => lazyApi(() => import("../../google-vertex-
|
|
8449
|
+
var googleVertexApi = () => lazyApi(() => import("../../google-vertex-TREYA472.js"));
|
|
8451
8450
|
|
|
8452
8451
|
// ../../node_modules/@earendil-works/pi-ai/dist/api/mistral-conversations.lazy.js
|
|
8453
|
-
var mistralConversationsApi = () => lazyApi(() => import("../../mistral-conversations-
|
|
8452
|
+
var mistralConversationsApi = () => lazyApi(() => import("../../mistral-conversations-OEOTQWE5.js"));
|
|
8454
8453
|
|
|
8455
8454
|
// ../../node_modules/@earendil-works/pi-ai/dist/api/openai-codex-responses.lazy.js
|
|
8456
8455
|
var openAICodexResponsesApi = () => lazyApi(() => import("../../openai-codex-responses-GEFKSNVN.js"));
|
|
@@ -43757,6 +43756,7 @@ var LinkquegwEventPlugin = class {
|
|
|
43757
43756
|
if (!getAuthorizationHeader) {
|
|
43758
43757
|
throw new Error("LinkqueGW event trigger \u7F3A\u5C11\u8BA4\u8BC1\u5934\u63D0\u4F9B\u5668");
|
|
43759
43758
|
}
|
|
43759
|
+
const frontendAppId = options.frontendAppId ?? options.temporaryFrontendAppId;
|
|
43760
43760
|
const executorOptions = {
|
|
43761
43761
|
getAuthHeaders: async () => {
|
|
43762
43762
|
const authorization = await getAuthorizationHeader();
|
|
@@ -43774,9 +43774,7 @@ var LinkquegwEventPlugin = class {
|
|
|
43774
43774
|
...options.metricsSink !== void 0 && {
|
|
43775
43775
|
metricsSink: options.metricsSink
|
|
43776
43776
|
},
|
|
43777
|
-
...
|
|
43778
|
-
temporaryFrontendAppId: options.temporaryFrontendAppId
|
|
43779
|
-
},
|
|
43777
|
+
...frontendAppId !== void 0 && { frontendAppId },
|
|
43780
43778
|
...options.now !== void 0 && { now: options.now }
|
|
43781
43779
|
};
|
|
43782
43780
|
this.hookExecutorList = [new LinkquegwEventHookExecutor(executorOptions)];
|
|
@@ -44135,7 +44133,7 @@ var DEFAULT_OPEN_MCP_BASE_URL = APPBASE_RUNTIME_CONFIG_DEFAULTS.LINKQUE_OPEN_MCP
|
|
|
44135
44133
|
function createAppbaseMcpConfigResolver(options) {
|
|
44136
44134
|
return (resource) => ({
|
|
44137
44135
|
remoteBaseUrl: options.remoteBaseUrl ?? DEFAULT_OPEN_MCP_BASE_URL,
|
|
44138
|
-
sseEndpoint: `api/v1/open/mcps/${resource.config.serverName}/
|
|
44136
|
+
sseEndpoint: `api/v1/open/mcps/${resource.config.serverName}/sse`,
|
|
44139
44137
|
agentId: options.agentId,
|
|
44140
44138
|
...options.signEndpoint ? { signEndpoint: options.signEndpoint } : {}
|
|
44141
44139
|
});
|
|
@@ -44150,6 +44148,7 @@ function createAppbaseMcpProvider(options = {}) {
|
|
|
44150
44148
|
}
|
|
44151
44149
|
return new RemoteGatewayMcpServerProvider({
|
|
44152
44150
|
resolveConfig: options.resolveConfig,
|
|
44151
|
+
clientContext: options.clientContext,
|
|
44153
44152
|
...options.getAuthorizationHeader ? { getAuthorizationHeader: options.getAuthorizationHeader } : {},
|
|
44154
44153
|
...options.onTraceId ? { onTraceId: options.onTraceId } : {},
|
|
44155
44154
|
...options.debugLog ? { debugLog: options.debugLog } : {}
|
|
@@ -44192,6 +44191,7 @@ function createAppBaseRuntime(protocol, env = process.env, ports = {}, logCtx) {
|
|
|
44192
44191
|
const prefix = scope ? `[${scope}] ` : "";
|
|
44193
44192
|
logCtx.log?.(prefix + line);
|
|
44194
44193
|
}) : void 0;
|
|
44194
|
+
const frontendAppId = ports.frontendAppId ?? ports.temporaryFrontendAppId;
|
|
44195
44195
|
const runtimePorts = {};
|
|
44196
44196
|
if (ports.telemetry)
|
|
44197
44197
|
runtimePorts.telemetry = ports.telemetry;
|
|
@@ -44229,6 +44229,7 @@ function createAppBaseRuntime(protocol, env = process.env, ports = {}, logCtx) {
|
|
|
44229
44229
|
});
|
|
44230
44230
|
log("skillLoader:", ports.skillLoader ? "\u4F7F\u7528\u6CE8\u5165\u5B9E\u73B0" : "AppbaseSkillLoader(\u9ED8\u8BA4)");
|
|
44231
44231
|
runtimePorts.mcpServerProvider = ports.mcpServerProvider ?? createAppbaseMcpProvider({
|
|
44232
|
+
clientContext: { appId: frontendAppId },
|
|
44232
44233
|
...ports.mcpConfigResolver ? { resolveConfig: ports.mcpConfigResolver } : {},
|
|
44233
44234
|
...ports.mcpAuthorizationHeaderProvider ? { getAuthorizationHeader: ports.mcpAuthorizationHeaderProvider } : {},
|
|
44234
44235
|
...debugLog ? { debugLog } : {}
|
|
@@ -44267,9 +44268,7 @@ function createAppBaseRuntime(protocol, env = process.env, ports = {}, logCtx) {
|
|
|
44267
44268
|
getGatewayAuthorizationHeader: mcpAuthHeader,
|
|
44268
44269
|
...eventBaseUrl ? { baseUrl: eventBaseUrl } : {},
|
|
44269
44270
|
...ports.gatewayAgentId ? { agentId: ports.gatewayAgentId } : {},
|
|
44270
|
-
...
|
|
44271
|
-
temporaryFrontendAppId: ports.temporaryFrontendAppId
|
|
44272
|
-
},
|
|
44271
|
+
...frontendAppId !== void 0 && { frontendAppId },
|
|
44273
44272
|
...debugLog ? { debugLog } : {}
|
|
44274
44273
|
}));
|
|
44275
44274
|
}
|
|
@@ -45850,7 +45849,7 @@ function historyError(status, code, message) {
|
|
|
45850
45849
|
}
|
|
45851
45850
|
|
|
45852
45851
|
// ../linkque-agent-appwrite-integrate/dist/esm/runtime/handler/readStatus.js
|
|
45853
|
-
async function runMarkConversationRunsRead(method, bodyJSON, env, deps, logCtx, ownerId, appwriteApiKey, envSelector, traceId, gatewayAuth,
|
|
45852
|
+
async function runMarkConversationRunsRead(method, bodyJSON, env, deps, logCtx, ownerId, appwriteApiKey, envSelector, traceId, gatewayAuth, frontendAppId) {
|
|
45854
45853
|
if (method !== "POST") {
|
|
45855
45854
|
return readStatusError(405, "method_not_allowed", "\u4EC5\u652F\u6301 POST");
|
|
45856
45855
|
}
|
|
@@ -45889,7 +45888,7 @@ async function runMarkConversationRunsRead(method, bodyJSON, env, deps, logCtx,
|
|
|
45889
45888
|
envSelector,
|
|
45890
45889
|
traceId,
|
|
45891
45890
|
gatewayAuth,
|
|
45892
|
-
|
|
45891
|
+
frontendAppId,
|
|
45893
45892
|
logCtx
|
|
45894
45893
|
});
|
|
45895
45894
|
}
|
|
@@ -45920,12 +45919,11 @@ async function publishConversationRunReadHooks(input) {
|
|
|
45920
45919
|
}
|
|
45921
45920
|
const { eventBaseUrl } = resolveLinkqueEndpoints(input.env, input.envSelector);
|
|
45922
45921
|
const debugLog = input.logCtx?.log ? (line) => input.logCtx?.log?.("[readStatus]", line) : void 0;
|
|
45922
|
+
const frontendAppId = input.frontendAppId ?? input.temporaryFrontendAppId;
|
|
45923
45923
|
const plugin = new LinkquegwEventPlugin({
|
|
45924
45924
|
getGatewayAuthorizationHeader: async () => input.gatewayAuth?.authorizationHeader ?? "",
|
|
45925
45925
|
agentId: input.protocol.agentId,
|
|
45926
|
-
...
|
|
45927
|
-
temporaryFrontendAppId: input.temporaryFrontendAppId
|
|
45928
|
-
},
|
|
45926
|
+
...frontendAppId !== void 0 && { frontendAppId },
|
|
45929
45927
|
...eventBaseUrl ? { baseUrl: eventBaseUrl } : {},
|
|
45930
45928
|
...debugLog ? { debugLog } : {},
|
|
45931
45929
|
...input.fetchImpl ? { fetchImpl: input.fetchImpl } : {}
|
|
@@ -46246,7 +46244,6 @@ function createAppbaseTelemetry(options) {
|
|
|
46246
46244
|
environment: options.environment,
|
|
46247
46245
|
logsEndpoint: options.logsEndpoint,
|
|
46248
46246
|
tracesEndpoint: options.tracesEndpoint,
|
|
46249
|
-
...options.initialRootTraceId ? { initialRootTraceId: options.initialRootTraceId } : {},
|
|
46250
46247
|
diagnostic: ({ code }) => diagnostic(code)
|
|
46251
46248
|
});
|
|
46252
46249
|
} catch {
|
|
@@ -46397,7 +46394,7 @@ function createSecurityAnswerPlugin(historyStore, log) {
|
|
|
46397
46394
|
}
|
|
46398
46395
|
|
|
46399
46396
|
// ../linkque-agent-appwrite-integrate/dist/esm/runtime/handler/chatConfig.js
|
|
46400
|
-
function resolveChatDeps(env, deps, logCtx, historyOwnerId, appwriteApiKey, envSelector, gatewayAuth,
|
|
46397
|
+
function resolveChatDeps(env, deps, logCtx, historyOwnerId, appwriteApiKey, envSelector, gatewayAuth, frontendAppId) {
|
|
46401
46398
|
const log = (...a) => logCtx?.log?.("[chat]", ...a);
|
|
46402
46399
|
const logError = (...a) => logCtx?.error?.("[chat]", ...a);
|
|
46403
46400
|
const protocol = deps?.protocol ?? getBakedProtocol();
|
|
@@ -46486,7 +46483,8 @@ function resolveChatDeps(env, deps, logCtx, historyOwnerId, appwriteApiKey, envS
|
|
|
46486
46483
|
});
|
|
46487
46484
|
const rawMcpServerProvider = deps?.mcpServerProvider ?? createAppbaseMcpProvider({
|
|
46488
46485
|
resolveConfig: mcpConfigResolver,
|
|
46489
|
-
getAuthorizationHeader: mcpAuthorizationHeaderProvider
|
|
46486
|
+
getAuthorizationHeader: mcpAuthorizationHeaderProvider,
|
|
46487
|
+
clientContext: { appId: frontendAppId }
|
|
46490
46488
|
});
|
|
46491
46489
|
const mcpServerProvider = rawMcpServerProvider;
|
|
46492
46490
|
const securityAnswerPlugin = deps?.securityAnswerPlugin ?? createSecurityAnswerPlugin(historyStore, logCtx?.log);
|
|
@@ -46496,7 +46494,6 @@ function resolveChatDeps(env, deps, logCtx, historyOwnerId, appwriteApiKey, envS
|
|
|
46496
46494
|
environment: new AppbaseRuntimeConfigProvider(env).get("LINKQUE_TELEMETRY_ENVIRONMENT") ?? (envSelector === "PRE" ? "pre" : "prod"),
|
|
46497
46495
|
logsEndpoint: telemetryLogsEndpoint,
|
|
46498
46496
|
tracesEndpoint: telemetryTracesEndpoint,
|
|
46499
|
-
...initialRootTraceId ? { initialRootTraceId } : {},
|
|
46500
46497
|
logCtx
|
|
46501
46498
|
});
|
|
46502
46499
|
const runtime = deps?.runtime ?? createAppBaseRuntime(protocol, env, {
|
|
@@ -46516,7 +46513,7 @@ function resolveChatDeps(env, deps, logCtx, historyOwnerId, appwriteApiKey, envS
|
|
|
46516
46513
|
...skillLoaderBaseUrl ? { skillLoaderBaseUrl } : {},
|
|
46517
46514
|
...webSearchBaseUrl ? { webSearchBaseUrl } : {},
|
|
46518
46515
|
...eventBaseUrl ? { eventBaseUrl } : {},
|
|
46519
|
-
...
|
|
46516
|
+
...frontendAppId !== void 0 && { frontendAppId }
|
|
46520
46517
|
}, logCtx);
|
|
46521
46518
|
return {
|
|
46522
46519
|
...runAuthorization ? { runAuthorization } : {},
|
|
@@ -47208,7 +47205,7 @@ function failure2(status, code, message, retryable = false) {
|
|
|
47208
47205
|
}
|
|
47209
47206
|
|
|
47210
47207
|
// ../linkque-agent-appwrite-integrate/dist/esm/runtime/handler/chat.js
|
|
47211
|
-
async function runChat(method, bodyJSON, env, deps, logCtx, historyOwnerId, appwriteApiKey, envSelector, traceId, gatewayAuth,
|
|
47208
|
+
async function runChat(method, bodyJSON, env, deps, logCtx, historyOwnerId, appwriteApiKey, envSelector, traceId, gatewayAuth, frontendAppId) {
|
|
47212
47209
|
const log = (...args) => logCtx?.log?.("[chat]", ...args);
|
|
47213
47210
|
const logError = (...args) => logCtx?.error?.("[chat]", ...args);
|
|
47214
47211
|
const guarded = guardChatRequest(method, bodyJSON, logCtx);
|
|
@@ -47216,7 +47213,7 @@ async function runChat(method, bodyJSON, env, deps, logCtx, historyOwnerId, appw
|
|
|
47216
47213
|
return guarded;
|
|
47217
47214
|
let request = guarded;
|
|
47218
47215
|
const isPresentationRun = request.executionScope === "presentation";
|
|
47219
|
-
const cfg = resolveChatDeps(env, deps, logCtx, historyOwnerId, appwriteApiKey, envSelector, gatewayAuth,
|
|
47216
|
+
const cfg = resolveChatDeps(env, deps, logCtx, historyOwnerId, appwriteApiKey, envSelector, gatewayAuth, frontendAppId);
|
|
47220
47217
|
if ("status" in cfg)
|
|
47221
47218
|
return cfg;
|
|
47222
47219
|
const leaseOwnerId = randomUUID8();
|
|
@@ -47525,7 +47522,7 @@ function waitForCancellationPoll(delayMs, signal) {
|
|
|
47525
47522
|
}
|
|
47526
47523
|
});
|
|
47527
47524
|
}
|
|
47528
|
-
async function runGateway(method, bodyJSON, env, deps, logCtx, historyOwnerId, appwriteApiKey, envSelector, traceId, gatewayAuth,
|
|
47525
|
+
async function runGateway(method, bodyJSON, env, deps, logCtx, historyOwnerId, appwriteApiKey, envSelector, traceId, gatewayAuth, frontendAppId, mcpPhoneAuthorization) {
|
|
47529
47526
|
const operation = readOperation(bodyJSON);
|
|
47530
47527
|
const startedAt = Date.now();
|
|
47531
47528
|
const logGateway = (event, fields = {}, failed = false) => {
|
|
@@ -47575,7 +47572,7 @@ async function runGateway(method, bodyJSON, env, deps, logCtx, historyOwnerId, a
|
|
|
47575
47572
|
protocol: deps.protocol,
|
|
47576
47573
|
store: deps.historyStore,
|
|
47577
47574
|
publishReadHooks: deps.readStatusHookPublisher
|
|
47578
|
-
} : void 0, logCtx, historyOwnerId, appwriteApiKey, envSelector, traceId, gatewayAuth,
|
|
47575
|
+
} : void 0, logCtx, historyOwnerId, appwriteApiKey, envSelector, traceId, gatewayAuth, frontendAppId));
|
|
47579
47576
|
}
|
|
47580
47577
|
if (operation === ASR_CREATE_CREDENTIAL_OPERATION) {
|
|
47581
47578
|
return observe(() => runAsrCredential(method, env, historyOwnerId, deps?.protocol?.agentId ?? getBakedProtocol().agentId, void 0, envSelector, gatewayAuth, logCtx));
|
|
@@ -47606,7 +47603,7 @@ async function runGateway(method, bodyJSON, env, deps, logCtx, historyOwnerId, a
|
|
|
47606
47603
|
if (operation) {
|
|
47607
47604
|
return observe(() => jsonError(400, "operation_unsupported", `\u4E0D\u652F\u6301\u7684 operation: ${operation}`));
|
|
47608
47605
|
}
|
|
47609
|
-
return observe(() => runChat(method, bodyJSON, env, deps, logCtx, historyOwnerId, appwriteApiKey, envSelector, traceId, gatewayAuth,
|
|
47606
|
+
return observe(() => runChat(method, bodyJSON, env, deps, logCtx, historyOwnerId, appwriteApiKey, envSelector, traceId, gatewayAuth, frontendAppId));
|
|
47610
47607
|
}
|
|
47611
47608
|
async function chat(ctx) {
|
|
47612
47609
|
let result;
|
|
@@ -47615,19 +47612,15 @@ async function chat(ctx) {
|
|
|
47615
47612
|
const bodyJSON = resolveBodyJSON(ctx.req);
|
|
47616
47613
|
const historyOwnerId = readAuthenticatedUserId(ctx.req.headers);
|
|
47617
47614
|
const appwriteApiKey = readAppwriteApiKey(ctx.req.headers);
|
|
47618
|
-
|
|
47619
|
-
if (otelTraceIdResult.kind === "invalid") {
|
|
47620
|
-
result = jsonError(400, "invalid_otel_trace_id", "x-linkque-otel-trace-id \u683C\u5F0F\u975E\u6CD5");
|
|
47621
|
-
} else if (readOperation(bodyJSON) === REPLACE_ANSWER_OPERATION) {
|
|
47615
|
+
if (readOperation(bodyJSON) === REPLACE_ANSWER_OPERATION) {
|
|
47622
47616
|
const control = await runReplaceAnswer(ctx.req.method, bodyJSON, process.env, void 0, logCtx, appwriteApiKey);
|
|
47623
|
-
|
|
47624
|
-
} else {
|
|
47625
|
-
const envSelector = readEnvSelector(ctx.req.headers);
|
|
47626
|
-
const traceId = readTraceId(ctx.req.headers);
|
|
47627
|
-
const temporaryFrontendAppId = readTemporaryFrontendAppId(ctx.req.headers);
|
|
47628
|
-
const gatewayAuth = historyOwnerId ? resolveLinkqueGatewayRequestAuth(ctx.req.headers, process.env, logCtx) : void 0;
|
|
47629
|
-
result = historyOwnerId ? await runGateway(ctx.req.method, bodyJSON, process.env, void 0, logCtx, historyOwnerId, appwriteApiKey, envSelector, traceId, gatewayAuth, temporaryFrontendAppId, readMcpPhoneAuthorization(ctx.req.headers), otelTraceIdResult.kind === "valid" ? otelTraceIdResult.traceId : void 0) : jsonError(401, "authentication_required", "\u7F3A\u5C11 Appwrite \u8BA4\u8BC1\u7528\u6237");
|
|
47617
|
+
return ctx.res.json?.(control.body, control.status);
|
|
47630
47618
|
}
|
|
47619
|
+
const envSelector = readEnvSelector(ctx.req.headers);
|
|
47620
|
+
const traceId = readTraceId(ctx.req.headers);
|
|
47621
|
+
const frontendAppId = readFrontendAppId(ctx.req.headers);
|
|
47622
|
+
const gatewayAuth = historyOwnerId ? resolveLinkqueGatewayRequestAuth(ctx.req.headers, process.env, logCtx) : void 0;
|
|
47623
|
+
result = historyOwnerId ? await runGateway(ctx.req.method, bodyJSON, process.env, void 0, logCtx, historyOwnerId, appwriteApiKey, envSelector, traceId, gatewayAuth, frontendAppId, readMcpPhoneAuthorization(ctx.req.headers)) : jsonError(401, "authentication_required", "\u7F3A\u5C11 Appwrite \u8BA4\u8BC1\u7528\u6237");
|
|
47631
47624
|
} catch (err2) {
|
|
47632
47625
|
logCtx?.error?.(err2);
|
|
47633
47626
|
result = err2 instanceof LinkqueGatewayAuthError || err2 instanceof LinkqueGatewayAuthUnconfiguredError ? jsonError(err2.status, err2.code, err2.message) : {
|