linkque-cli-v2 1.6.13 → 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 +25206 -24556
- 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-YJPCNMFN.js → chunk-M5DHKJDG.js} +1 -25
- package/vendor/linkque-agent-appwrite-integrate/dist/esm/{chunk-A3WEBQGR.js → chunk-OLLACFP7.js} +1 -1
- package/vendor/linkque-agent-appwrite-integrate/dist/esm/{chunk-WO3KBDHU.js → chunk-PSKPY5FI.js} +1362 -4817
- 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 +217 -337
- 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 +7199 -14356
|
@@ -43,7 +43,6 @@ import {
|
|
|
43
43
|
readEnvSelector,
|
|
44
44
|
readFrontendAppId,
|
|
45
45
|
readMcpPhoneAuthorization,
|
|
46
|
-
readOtelTraceId,
|
|
47
46
|
readTraceId,
|
|
48
47
|
resolveBodyJSON,
|
|
49
48
|
resolveGatewayAuthContext,
|
|
@@ -51,17 +50,16 @@ 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,
|
|
64
|
-
CARD_SEQUENCE,
|
|
65
63
|
CONTENT_VALUE_MAX_LENGTH,
|
|
66
64
|
CONVERSATION_HISTORY_VERSION,
|
|
67
65
|
CancellationScope,
|
|
@@ -136,10 +134,8 @@ import {
|
|
|
136
134
|
abortableDelay,
|
|
137
135
|
aggregateMcpServers,
|
|
138
136
|
authorizeAgentRun,
|
|
139
|
-
bindingSequence,
|
|
140
137
|
buildHookCommonParams,
|
|
141
138
|
buildSkillCatalog,
|
|
142
|
-
cacheGuidance,
|
|
143
139
|
cloneJsonObject,
|
|
144
140
|
cloneJsonValue,
|
|
145
141
|
createA2UICardPipelineModelInputSchema,
|
|
@@ -200,11 +196,11 @@ import {
|
|
|
200
196
|
warnLogFailure,
|
|
201
197
|
wrapToolWithHooks,
|
|
202
198
|
writeJsonPointer
|
|
203
|
-
} from "../../chunk-
|
|
199
|
+
} from "../../chunk-PSKPY5FI.js";
|
|
204
200
|
import "../../chunk-EAODRPW4.js";
|
|
205
|
-
import "../../chunk-
|
|
206
|
-
import "../../chunk-
|
|
207
|
-
import "../../chunk-
|
|
201
|
+
import "../../chunk-XUFLSZM4.js";
|
|
202
|
+
import "../../chunk-GAYNLDWK.js";
|
|
203
|
+
import "../../chunk-DNTEEBEH.js";
|
|
208
204
|
import {
|
|
209
205
|
__commonJS,
|
|
210
206
|
__export,
|
|
@@ -212,9 +208,9 @@ import {
|
|
|
212
208
|
__toESM
|
|
213
209
|
} from "../../chunk-2ESYSVXG.js";
|
|
214
210
|
|
|
215
|
-
// ../../node_modules
|
|
211
|
+
// ../../node_modules/yaml/dist/nodes/identity.js
|
|
216
212
|
var require_identity = __commonJS({
|
|
217
|
-
"../../node_modules
|
|
213
|
+
"../../node_modules/yaml/dist/nodes/identity.js"(exports) {
|
|
218
214
|
"use strict";
|
|
219
215
|
var ALIAS = Symbol.for("yaml.alias");
|
|
220
216
|
var DOC = Symbol.for("yaml.document");
|
|
@@ -269,9 +265,9 @@ var require_identity = __commonJS({
|
|
|
269
265
|
}
|
|
270
266
|
});
|
|
271
267
|
|
|
272
|
-
// ../../node_modules
|
|
268
|
+
// ../../node_modules/yaml/dist/visit.js
|
|
273
269
|
var require_visit = __commonJS({
|
|
274
|
-
"../../node_modules
|
|
270
|
+
"../../node_modules/yaml/dist/visit.js"(exports) {
|
|
275
271
|
"use strict";
|
|
276
272
|
var identity = require_identity();
|
|
277
273
|
var BREAK = Symbol("break visit");
|
|
@@ -427,9 +423,9 @@ var require_visit = __commonJS({
|
|
|
427
423
|
}
|
|
428
424
|
});
|
|
429
425
|
|
|
430
|
-
// ../../node_modules
|
|
426
|
+
// ../../node_modules/yaml/dist/doc/directives.js
|
|
431
427
|
var require_directives = __commonJS({
|
|
432
|
-
"../../node_modules
|
|
428
|
+
"../../node_modules/yaml/dist/doc/directives.js"(exports) {
|
|
433
429
|
"use strict";
|
|
434
430
|
var identity = require_identity();
|
|
435
431
|
var visit = require_visit();
|
|
@@ -598,9 +594,9 @@ var require_directives = __commonJS({
|
|
|
598
594
|
}
|
|
599
595
|
});
|
|
600
596
|
|
|
601
|
-
// ../../node_modules
|
|
597
|
+
// ../../node_modules/yaml/dist/doc/anchors.js
|
|
602
598
|
var require_anchors = __commonJS({
|
|
603
|
-
"../../node_modules
|
|
599
|
+
"../../node_modules/yaml/dist/doc/anchors.js"(exports) {
|
|
604
600
|
"use strict";
|
|
605
601
|
var identity = require_identity();
|
|
606
602
|
var visit = require_visit();
|
|
@@ -668,9 +664,9 @@ var require_anchors = __commonJS({
|
|
|
668
664
|
}
|
|
669
665
|
});
|
|
670
666
|
|
|
671
|
-
// ../../node_modules
|
|
667
|
+
// ../../node_modules/yaml/dist/doc/applyReviver.js
|
|
672
668
|
var require_applyReviver = __commonJS({
|
|
673
|
-
"../../node_modules
|
|
669
|
+
"../../node_modules/yaml/dist/doc/applyReviver.js"(exports) {
|
|
674
670
|
"use strict";
|
|
675
671
|
function applyReviver(reviver, obj, key, val) {
|
|
676
672
|
if (val && typeof val === "object") {
|
|
@@ -718,9 +714,9 @@ var require_applyReviver = __commonJS({
|
|
|
718
714
|
}
|
|
719
715
|
});
|
|
720
716
|
|
|
721
|
-
// ../../node_modules
|
|
717
|
+
// ../../node_modules/yaml/dist/nodes/toJS.js
|
|
722
718
|
var require_toJS = __commonJS({
|
|
723
|
-
"../../node_modules
|
|
719
|
+
"../../node_modules/yaml/dist/nodes/toJS.js"(exports) {
|
|
724
720
|
"use strict";
|
|
725
721
|
var identity = require_identity();
|
|
726
722
|
function toJS(value, arg, ctx) {
|
|
@@ -748,9 +744,9 @@ var require_toJS = __commonJS({
|
|
|
748
744
|
}
|
|
749
745
|
});
|
|
750
746
|
|
|
751
|
-
// ../../node_modules
|
|
747
|
+
// ../../node_modules/yaml/dist/nodes/Node.js
|
|
752
748
|
var require_Node = __commonJS({
|
|
753
|
-
"../../node_modules
|
|
749
|
+
"../../node_modules/yaml/dist/nodes/Node.js"(exports) {
|
|
754
750
|
"use strict";
|
|
755
751
|
var applyReviver = require_applyReviver();
|
|
756
752
|
var identity = require_identity();
|
|
@@ -789,9 +785,9 @@ var require_Node = __commonJS({
|
|
|
789
785
|
}
|
|
790
786
|
});
|
|
791
787
|
|
|
792
|
-
// ../../node_modules
|
|
788
|
+
// ../../node_modules/yaml/dist/nodes/Alias.js
|
|
793
789
|
var require_Alias = __commonJS({
|
|
794
|
-
"../../node_modules
|
|
790
|
+
"../../node_modules/yaml/dist/nodes/Alias.js"(exports) {
|
|
795
791
|
"use strict";
|
|
796
792
|
var anchors = require_anchors();
|
|
797
793
|
var visit = require_visit();
|
|
@@ -905,9 +901,9 @@ var require_Alias = __commonJS({
|
|
|
905
901
|
}
|
|
906
902
|
});
|
|
907
903
|
|
|
908
|
-
// ../../node_modules
|
|
904
|
+
// ../../node_modules/yaml/dist/nodes/Scalar.js
|
|
909
905
|
var require_Scalar = __commonJS({
|
|
910
|
-
"../../node_modules
|
|
906
|
+
"../../node_modules/yaml/dist/nodes/Scalar.js"(exports) {
|
|
911
907
|
"use strict";
|
|
912
908
|
var identity = require_identity();
|
|
913
909
|
var Node = require_Node();
|
|
@@ -935,9 +931,9 @@ var require_Scalar = __commonJS({
|
|
|
935
931
|
}
|
|
936
932
|
});
|
|
937
933
|
|
|
938
|
-
// ../../node_modules
|
|
934
|
+
// ../../node_modules/yaml/dist/doc/createNode.js
|
|
939
935
|
var require_createNode = __commonJS({
|
|
940
|
-
"../../node_modules
|
|
936
|
+
"../../node_modules/yaml/dist/doc/createNode.js"(exports) {
|
|
941
937
|
"use strict";
|
|
942
938
|
var Alias = require_Alias();
|
|
943
939
|
var identity = require_identity();
|
|
@@ -1010,9 +1006,9 @@ var require_createNode = __commonJS({
|
|
|
1010
1006
|
}
|
|
1011
1007
|
});
|
|
1012
1008
|
|
|
1013
|
-
// ../../node_modules
|
|
1009
|
+
// ../../node_modules/yaml/dist/nodes/Collection.js
|
|
1014
1010
|
var require_Collection = __commonJS({
|
|
1015
|
-
"../../node_modules
|
|
1011
|
+
"../../node_modules/yaml/dist/nodes/Collection.js"(exports) {
|
|
1016
1012
|
"use strict";
|
|
1017
1013
|
var createNode = require_createNode();
|
|
1018
1014
|
var identity = require_identity();
|
|
@@ -1153,9 +1149,9 @@ var require_Collection = __commonJS({
|
|
|
1153
1149
|
}
|
|
1154
1150
|
});
|
|
1155
1151
|
|
|
1156
|
-
// ../../node_modules
|
|
1152
|
+
// ../../node_modules/yaml/dist/stringify/stringifyComment.js
|
|
1157
1153
|
var require_stringifyComment = __commonJS({
|
|
1158
|
-
"../../node_modules
|
|
1154
|
+
"../../node_modules/yaml/dist/stringify/stringifyComment.js"(exports) {
|
|
1159
1155
|
"use strict";
|
|
1160
1156
|
var stringifyComment = (str) => str.replace(/^(?!$)(?: $)?/gm, "#");
|
|
1161
1157
|
function indentComment(comment, indent) {
|
|
@@ -1170,9 +1166,9 @@ var require_stringifyComment = __commonJS({
|
|
|
1170
1166
|
}
|
|
1171
1167
|
});
|
|
1172
1168
|
|
|
1173
|
-
// ../../node_modules
|
|
1169
|
+
// ../../node_modules/yaml/dist/stringify/foldFlowLines.js
|
|
1174
1170
|
var require_foldFlowLines = __commonJS({
|
|
1175
|
-
"../../node_modules
|
|
1171
|
+
"../../node_modules/yaml/dist/stringify/foldFlowLines.js"(exports) {
|
|
1176
1172
|
"use strict";
|
|
1177
1173
|
var FOLD_FLOW = "flow";
|
|
1178
1174
|
var FOLD_BLOCK = "block";
|
|
@@ -1306,9 +1302,9 @@ ${indent}${text2.slice(fold + 1, end2)}`;
|
|
|
1306
1302
|
}
|
|
1307
1303
|
});
|
|
1308
1304
|
|
|
1309
|
-
// ../../node_modules
|
|
1305
|
+
// ../../node_modules/yaml/dist/stringify/stringifyString.js
|
|
1310
1306
|
var require_stringifyString = __commonJS({
|
|
1311
|
-
"../../node_modules
|
|
1307
|
+
"../../node_modules/yaml/dist/stringify/stringifyString.js"(exports) {
|
|
1312
1308
|
"use strict";
|
|
1313
1309
|
var Scalar = require_Scalar();
|
|
1314
1310
|
var foldFlowLines = require_foldFlowLines();
|
|
@@ -1589,9 +1585,9 @@ ${indent}`);
|
|
|
1589
1585
|
}
|
|
1590
1586
|
});
|
|
1591
1587
|
|
|
1592
|
-
// ../../node_modules
|
|
1588
|
+
// ../../node_modules/yaml/dist/stringify/stringify.js
|
|
1593
1589
|
var require_stringify = __commonJS({
|
|
1594
|
-
"../../node_modules
|
|
1590
|
+
"../../node_modules/yaml/dist/stringify/stringify.js"(exports) {
|
|
1595
1591
|
"use strict";
|
|
1596
1592
|
var anchors = require_anchors();
|
|
1597
1593
|
var identity = require_identity();
|
|
@@ -1713,9 +1709,9 @@ ${ctx.indent}${str}`;
|
|
|
1713
1709
|
}
|
|
1714
1710
|
});
|
|
1715
1711
|
|
|
1716
|
-
// ../../node_modules
|
|
1712
|
+
// ../../node_modules/yaml/dist/stringify/stringifyPair.js
|
|
1717
1713
|
var require_stringifyPair = __commonJS({
|
|
1718
|
-
"../../node_modules
|
|
1714
|
+
"../../node_modules/yaml/dist/stringify/stringifyPair.js"(exports) {
|
|
1719
1715
|
"use strict";
|
|
1720
1716
|
var identity = require_identity();
|
|
1721
1717
|
var Scalar = require_Scalar();
|
|
@@ -1846,9 +1842,9 @@ ${ctx.indent}`;
|
|
|
1846
1842
|
}
|
|
1847
1843
|
});
|
|
1848
1844
|
|
|
1849
|
-
// ../../node_modules
|
|
1845
|
+
// ../../node_modules/yaml/dist/log.js
|
|
1850
1846
|
var require_log = __commonJS({
|
|
1851
|
-
"../../node_modules
|
|
1847
|
+
"../../node_modules/yaml/dist/log.js"(exports) {
|
|
1852
1848
|
"use strict";
|
|
1853
1849
|
var node_process = __require("process");
|
|
1854
1850
|
function debug(logLevel, ...messages) {
|
|
@@ -1868,9 +1864,9 @@ var require_log = __commonJS({
|
|
|
1868
1864
|
}
|
|
1869
1865
|
});
|
|
1870
1866
|
|
|
1871
|
-
// ../../node_modules
|
|
1867
|
+
// ../../node_modules/yaml/dist/schema/yaml-1.1/merge.js
|
|
1872
1868
|
var require_merge = __commonJS({
|
|
1873
|
-
"../../node_modules
|
|
1869
|
+
"../../node_modules/yaml/dist/schema/yaml-1.1/merge.js"(exports) {
|
|
1874
1870
|
"use strict";
|
|
1875
1871
|
var identity = require_identity();
|
|
1876
1872
|
var Scalar = require_Scalar();
|
|
@@ -1928,9 +1924,9 @@ var require_merge = __commonJS({
|
|
|
1928
1924
|
}
|
|
1929
1925
|
});
|
|
1930
1926
|
|
|
1931
|
-
// ../../node_modules
|
|
1927
|
+
// ../../node_modules/yaml/dist/nodes/addPairToJSMap.js
|
|
1932
1928
|
var require_addPairToJSMap = __commonJS({
|
|
1933
|
-
"../../node_modules
|
|
1929
|
+
"../../node_modules/yaml/dist/nodes/addPairToJSMap.js"(exports) {
|
|
1934
1930
|
"use strict";
|
|
1935
1931
|
var log = require_log();
|
|
1936
1932
|
var merge = require_merge();
|
|
@@ -1992,9 +1988,9 @@ var require_addPairToJSMap = __commonJS({
|
|
|
1992
1988
|
}
|
|
1993
1989
|
});
|
|
1994
1990
|
|
|
1995
|
-
// ../../node_modules
|
|
1991
|
+
// ../../node_modules/yaml/dist/nodes/Pair.js
|
|
1996
1992
|
var require_Pair = __commonJS({
|
|
1997
|
-
"../../node_modules
|
|
1993
|
+
"../../node_modules/yaml/dist/nodes/Pair.js"(exports) {
|
|
1998
1994
|
"use strict";
|
|
1999
1995
|
var createNode = require_createNode();
|
|
2000
1996
|
var stringifyPair = require_stringifyPair();
|
|
@@ -2032,9 +2028,9 @@ var require_Pair = __commonJS({
|
|
|
2032
2028
|
}
|
|
2033
2029
|
});
|
|
2034
2030
|
|
|
2035
|
-
// ../../node_modules
|
|
2031
|
+
// ../../node_modules/yaml/dist/stringify/stringifyCollection.js
|
|
2036
2032
|
var require_stringifyCollection = __commonJS({
|
|
2037
|
-
"../../node_modules
|
|
2033
|
+
"../../node_modules/yaml/dist/stringify/stringifyCollection.js"(exports) {
|
|
2038
2034
|
"use strict";
|
|
2039
2035
|
var identity = require_identity();
|
|
2040
2036
|
var stringify = require_stringify();
|
|
@@ -2183,9 +2179,9 @@ ${indent}${end}`;
|
|
|
2183
2179
|
}
|
|
2184
2180
|
});
|
|
2185
2181
|
|
|
2186
|
-
// ../../node_modules
|
|
2182
|
+
// ../../node_modules/yaml/dist/nodes/YAMLMap.js
|
|
2187
2183
|
var require_YAMLMap = __commonJS({
|
|
2188
|
-
"../../node_modules
|
|
2184
|
+
"../../node_modules/yaml/dist/nodes/YAMLMap.js"(exports) {
|
|
2189
2185
|
"use strict";
|
|
2190
2186
|
var stringifyCollection = require_stringifyCollection();
|
|
2191
2187
|
var addPairToJSMap = require_addPairToJSMap();
|
|
@@ -2327,9 +2323,9 @@ var require_YAMLMap = __commonJS({
|
|
|
2327
2323
|
}
|
|
2328
2324
|
});
|
|
2329
2325
|
|
|
2330
|
-
// ../../node_modules
|
|
2326
|
+
// ../../node_modules/yaml/dist/schema/common/map.js
|
|
2331
2327
|
var require_map = __commonJS({
|
|
2332
|
-
"../../node_modules
|
|
2328
|
+
"../../node_modules/yaml/dist/schema/common/map.js"(exports) {
|
|
2333
2329
|
"use strict";
|
|
2334
2330
|
var identity = require_identity();
|
|
2335
2331
|
var YAMLMap = require_YAMLMap();
|
|
@@ -2349,9 +2345,9 @@ var require_map = __commonJS({
|
|
|
2349
2345
|
}
|
|
2350
2346
|
});
|
|
2351
2347
|
|
|
2352
|
-
// ../../node_modules
|
|
2348
|
+
// ../../node_modules/yaml/dist/nodes/YAMLSeq.js
|
|
2353
2349
|
var require_YAMLSeq = __commonJS({
|
|
2354
|
-
"../../node_modules
|
|
2350
|
+
"../../node_modules/yaml/dist/nodes/YAMLSeq.js"(exports) {
|
|
2355
2351
|
"use strict";
|
|
2356
2352
|
var createNode = require_createNode();
|
|
2357
2353
|
var stringifyCollection = require_stringifyCollection();
|
|
@@ -2465,9 +2461,9 @@ var require_YAMLSeq = __commonJS({
|
|
|
2465
2461
|
}
|
|
2466
2462
|
});
|
|
2467
2463
|
|
|
2468
|
-
// ../../node_modules
|
|
2464
|
+
// ../../node_modules/yaml/dist/schema/common/seq.js
|
|
2469
2465
|
var require_seq = __commonJS({
|
|
2470
|
-
"../../node_modules
|
|
2466
|
+
"../../node_modules/yaml/dist/schema/common/seq.js"(exports) {
|
|
2471
2467
|
"use strict";
|
|
2472
2468
|
var identity = require_identity();
|
|
2473
2469
|
var YAMLSeq = require_YAMLSeq();
|
|
@@ -2487,9 +2483,9 @@ var require_seq = __commonJS({
|
|
|
2487
2483
|
}
|
|
2488
2484
|
});
|
|
2489
2485
|
|
|
2490
|
-
// ../../node_modules
|
|
2486
|
+
// ../../node_modules/yaml/dist/schema/common/string.js
|
|
2491
2487
|
var require_string = __commonJS({
|
|
2492
|
-
"../../node_modules
|
|
2488
|
+
"../../node_modules/yaml/dist/schema/common/string.js"(exports) {
|
|
2493
2489
|
"use strict";
|
|
2494
2490
|
var stringifyString = require_stringifyString();
|
|
2495
2491
|
var string = {
|
|
@@ -2506,9 +2502,9 @@ var require_string = __commonJS({
|
|
|
2506
2502
|
}
|
|
2507
2503
|
});
|
|
2508
2504
|
|
|
2509
|
-
// ../../node_modules
|
|
2505
|
+
// ../../node_modules/yaml/dist/schema/common/null.js
|
|
2510
2506
|
var require_null = __commonJS({
|
|
2511
|
-
"../../node_modules
|
|
2507
|
+
"../../node_modules/yaml/dist/schema/common/null.js"(exports) {
|
|
2512
2508
|
"use strict";
|
|
2513
2509
|
var Scalar = require_Scalar();
|
|
2514
2510
|
var nullTag = {
|
|
@@ -2524,9 +2520,9 @@ var require_null = __commonJS({
|
|
|
2524
2520
|
}
|
|
2525
2521
|
});
|
|
2526
2522
|
|
|
2527
|
-
// ../../node_modules
|
|
2523
|
+
// ../../node_modules/yaml/dist/schema/core/bool.js
|
|
2528
2524
|
var require_bool = __commonJS({
|
|
2529
|
-
"../../node_modules
|
|
2525
|
+
"../../node_modules/yaml/dist/schema/core/bool.js"(exports) {
|
|
2530
2526
|
"use strict";
|
|
2531
2527
|
var Scalar = require_Scalar();
|
|
2532
2528
|
var boolTag = {
|
|
@@ -2548,9 +2544,9 @@ var require_bool = __commonJS({
|
|
|
2548
2544
|
}
|
|
2549
2545
|
});
|
|
2550
2546
|
|
|
2551
|
-
// ../../node_modules
|
|
2547
|
+
// ../../node_modules/yaml/dist/stringify/stringifyNumber.js
|
|
2552
2548
|
var require_stringifyNumber = __commonJS({
|
|
2553
|
-
"../../node_modules
|
|
2549
|
+
"../../node_modules/yaml/dist/stringify/stringifyNumber.js"(exports) {
|
|
2554
2550
|
"use strict";
|
|
2555
2551
|
function stringifyNumber({ format, minFractionDigits, tag, value }) {
|
|
2556
2552
|
if (typeof value === "bigint")
|
|
@@ -2575,9 +2571,9 @@ var require_stringifyNumber = __commonJS({
|
|
|
2575
2571
|
}
|
|
2576
2572
|
});
|
|
2577
2573
|
|
|
2578
|
-
// ../../node_modules
|
|
2574
|
+
// ../../node_modules/yaml/dist/schema/core/float.js
|
|
2579
2575
|
var require_float = __commonJS({
|
|
2580
|
-
"../../node_modules
|
|
2576
|
+
"../../node_modules/yaml/dist/schema/core/float.js"(exports) {
|
|
2581
2577
|
"use strict";
|
|
2582
2578
|
var Scalar = require_Scalar();
|
|
2583
2579
|
var stringifyNumber = require_stringifyNumber();
|
|
@@ -2621,9 +2617,9 @@ var require_float = __commonJS({
|
|
|
2621
2617
|
}
|
|
2622
2618
|
});
|
|
2623
2619
|
|
|
2624
|
-
// ../../node_modules
|
|
2620
|
+
// ../../node_modules/yaml/dist/schema/core/int.js
|
|
2625
2621
|
var require_int = __commonJS({
|
|
2626
|
-
"../../node_modules
|
|
2622
|
+
"../../node_modules/yaml/dist/schema/core/int.js"(exports) {
|
|
2627
2623
|
"use strict";
|
|
2628
2624
|
var stringifyNumber = require_stringifyNumber();
|
|
2629
2625
|
var intIdentify = (value) => typeof value === "bigint" || Number.isInteger(value);
|
|
@@ -2666,9 +2662,9 @@ var require_int = __commonJS({
|
|
|
2666
2662
|
}
|
|
2667
2663
|
});
|
|
2668
2664
|
|
|
2669
|
-
// ../../node_modules
|
|
2665
|
+
// ../../node_modules/yaml/dist/schema/core/schema.js
|
|
2670
2666
|
var require_schema = __commonJS({
|
|
2671
|
-
"../../node_modules
|
|
2667
|
+
"../../node_modules/yaml/dist/schema/core/schema.js"(exports) {
|
|
2672
2668
|
"use strict";
|
|
2673
2669
|
var map = require_map();
|
|
2674
2670
|
var _null = require_null();
|
|
@@ -2694,9 +2690,9 @@ var require_schema = __commonJS({
|
|
|
2694
2690
|
}
|
|
2695
2691
|
});
|
|
2696
2692
|
|
|
2697
|
-
// ../../node_modules
|
|
2693
|
+
// ../../node_modules/yaml/dist/schema/json/schema.js
|
|
2698
2694
|
var require_schema2 = __commonJS({
|
|
2699
|
-
"../../node_modules
|
|
2695
|
+
"../../node_modules/yaml/dist/schema/json/schema.js"(exports) {
|
|
2700
2696
|
"use strict";
|
|
2701
2697
|
var Scalar = require_Scalar();
|
|
2702
2698
|
var map = require_map();
|
|
@@ -2761,9 +2757,9 @@ var require_schema2 = __commonJS({
|
|
|
2761
2757
|
}
|
|
2762
2758
|
});
|
|
2763
2759
|
|
|
2764
|
-
// ../../node_modules
|
|
2760
|
+
// ../../node_modules/yaml/dist/schema/yaml-1.1/binary.js
|
|
2765
2761
|
var require_binary = __commonJS({
|
|
2766
|
-
"../../node_modules
|
|
2762
|
+
"../../node_modules/yaml/dist/schema/yaml-1.1/binary.js"(exports) {
|
|
2767
2763
|
"use strict";
|
|
2768
2764
|
var node_buffer = __require("buffer");
|
|
2769
2765
|
var Scalar = require_Scalar();
|
|
@@ -2827,9 +2823,9 @@ var require_binary = __commonJS({
|
|
|
2827
2823
|
}
|
|
2828
2824
|
});
|
|
2829
2825
|
|
|
2830
|
-
// ../../node_modules
|
|
2826
|
+
// ../../node_modules/yaml/dist/schema/yaml-1.1/pairs.js
|
|
2831
2827
|
var require_pairs = __commonJS({
|
|
2832
|
-
"../../node_modules
|
|
2828
|
+
"../../node_modules/yaml/dist/schema/yaml-1.1/pairs.js"(exports) {
|
|
2833
2829
|
"use strict";
|
|
2834
2830
|
var identity = require_identity();
|
|
2835
2831
|
var Pair = require_Pair();
|
|
@@ -2905,9 +2901,9 @@ ${cn.comment}` : item.comment;
|
|
|
2905
2901
|
}
|
|
2906
2902
|
});
|
|
2907
2903
|
|
|
2908
|
-
// ../../node_modules
|
|
2904
|
+
// ../../node_modules/yaml/dist/schema/yaml-1.1/omap.js
|
|
2909
2905
|
var require_omap = __commonJS({
|
|
2910
|
-
"../../node_modules
|
|
2906
|
+
"../../node_modules/yaml/dist/schema/yaml-1.1/omap.js"(exports) {
|
|
2911
2907
|
"use strict";
|
|
2912
2908
|
var identity = require_identity();
|
|
2913
2909
|
var toJS = require_toJS();
|
|
@@ -2983,9 +2979,9 @@ var require_omap = __commonJS({
|
|
|
2983
2979
|
}
|
|
2984
2980
|
});
|
|
2985
2981
|
|
|
2986
|
-
// ../../node_modules
|
|
2982
|
+
// ../../node_modules/yaml/dist/schema/yaml-1.1/bool.js
|
|
2987
2983
|
var require_bool2 = __commonJS({
|
|
2988
|
-
"../../node_modules
|
|
2984
|
+
"../../node_modules/yaml/dist/schema/yaml-1.1/bool.js"(exports) {
|
|
2989
2985
|
"use strict";
|
|
2990
2986
|
var Scalar = require_Scalar();
|
|
2991
2987
|
function boolStringify({ value, source }, ctx) {
|
|
@@ -3015,9 +3011,9 @@ var require_bool2 = __commonJS({
|
|
|
3015
3011
|
}
|
|
3016
3012
|
});
|
|
3017
3013
|
|
|
3018
|
-
// ../../node_modules
|
|
3014
|
+
// ../../node_modules/yaml/dist/schema/yaml-1.1/float.js
|
|
3019
3015
|
var require_float2 = __commonJS({
|
|
3020
|
-
"../../node_modules
|
|
3016
|
+
"../../node_modules/yaml/dist/schema/yaml-1.1/float.js"(exports) {
|
|
3021
3017
|
"use strict";
|
|
3022
3018
|
var Scalar = require_Scalar();
|
|
3023
3019
|
var stringifyNumber = require_stringifyNumber();
|
|
@@ -3064,9 +3060,9 @@ var require_float2 = __commonJS({
|
|
|
3064
3060
|
}
|
|
3065
3061
|
});
|
|
3066
3062
|
|
|
3067
|
-
// ../../node_modules
|
|
3063
|
+
// ../../node_modules/yaml/dist/schema/yaml-1.1/int.js
|
|
3068
3064
|
var require_int2 = __commonJS({
|
|
3069
|
-
"../../node_modules
|
|
3065
|
+
"../../node_modules/yaml/dist/schema/yaml-1.1/int.js"(exports) {
|
|
3070
3066
|
"use strict";
|
|
3071
3067
|
var stringifyNumber = require_stringifyNumber();
|
|
3072
3068
|
var intIdentify = (value) => typeof value === "bigint" || Number.isInteger(value);
|
|
@@ -3143,9 +3139,9 @@ var require_int2 = __commonJS({
|
|
|
3143
3139
|
}
|
|
3144
3140
|
});
|
|
3145
3141
|
|
|
3146
|
-
// ../../node_modules
|
|
3142
|
+
// ../../node_modules/yaml/dist/schema/yaml-1.1/set.js
|
|
3147
3143
|
var require_set = __commonJS({
|
|
3148
|
-
"../../node_modules
|
|
3144
|
+
"../../node_modules/yaml/dist/schema/yaml-1.1/set.js"(exports) {
|
|
3149
3145
|
"use strict";
|
|
3150
3146
|
var identity = require_identity();
|
|
3151
3147
|
var Pair = require_Pair();
|
|
@@ -3232,9 +3228,9 @@ var require_set = __commonJS({
|
|
|
3232
3228
|
}
|
|
3233
3229
|
});
|
|
3234
3230
|
|
|
3235
|
-
// ../../node_modules
|
|
3231
|
+
// ../../node_modules/yaml/dist/schema/yaml-1.1/timestamp.js
|
|
3236
3232
|
var require_timestamp = __commonJS({
|
|
3237
|
-
"../../node_modules
|
|
3233
|
+
"../../node_modules/yaml/dist/schema/yaml-1.1/timestamp.js"(exports) {
|
|
3238
3234
|
"use strict";
|
|
3239
3235
|
var stringifyNumber = require_stringifyNumber();
|
|
3240
3236
|
function parseSexagesimal(str, asBigInt) {
|
|
@@ -3320,9 +3316,9 @@ var require_timestamp = __commonJS({
|
|
|
3320
3316
|
}
|
|
3321
3317
|
});
|
|
3322
3318
|
|
|
3323
|
-
// ../../node_modules
|
|
3319
|
+
// ../../node_modules/yaml/dist/schema/yaml-1.1/schema.js
|
|
3324
3320
|
var require_schema3 = __commonJS({
|
|
3325
|
-
"../../node_modules
|
|
3321
|
+
"../../node_modules/yaml/dist/schema/yaml-1.1/schema.js"(exports) {
|
|
3326
3322
|
"use strict";
|
|
3327
3323
|
var map = require_map();
|
|
3328
3324
|
var _null = require_null();
|
|
@@ -3364,9 +3360,9 @@ var require_schema3 = __commonJS({
|
|
|
3364
3360
|
}
|
|
3365
3361
|
});
|
|
3366
3362
|
|
|
3367
|
-
// ../../node_modules
|
|
3363
|
+
// ../../node_modules/yaml/dist/schema/tags.js
|
|
3368
3364
|
var require_tags = __commonJS({
|
|
3369
|
-
"../../node_modules
|
|
3365
|
+
"../../node_modules/yaml/dist/schema/tags.js"(exports) {
|
|
3370
3366
|
"use strict";
|
|
3371
3367
|
var map = require_map();
|
|
3372
3368
|
var _null = require_null();
|
|
@@ -3458,9 +3454,9 @@ var require_tags = __commonJS({
|
|
|
3458
3454
|
}
|
|
3459
3455
|
});
|
|
3460
3456
|
|
|
3461
|
-
// ../../node_modules
|
|
3457
|
+
// ../../node_modules/yaml/dist/schema/Schema.js
|
|
3462
3458
|
var require_Schema = __commonJS({
|
|
3463
|
-
"../../node_modules
|
|
3459
|
+
"../../node_modules/yaml/dist/schema/Schema.js"(exports) {
|
|
3464
3460
|
"use strict";
|
|
3465
3461
|
var identity = require_identity();
|
|
3466
3462
|
var map = require_map();
|
|
@@ -3490,9 +3486,9 @@ var require_Schema = __commonJS({
|
|
|
3490
3486
|
}
|
|
3491
3487
|
});
|
|
3492
3488
|
|
|
3493
|
-
// ../../node_modules
|
|
3489
|
+
// ../../node_modules/yaml/dist/stringify/stringifyDocument.js
|
|
3494
3490
|
var require_stringifyDocument = __commonJS({
|
|
3495
|
-
"../../node_modules
|
|
3491
|
+
"../../node_modules/yaml/dist/stringify/stringifyDocument.js"(exports) {
|
|
3496
3492
|
"use strict";
|
|
3497
3493
|
var identity = require_identity();
|
|
3498
3494
|
var stringify = require_stringify();
|
|
@@ -3570,9 +3566,9 @@ var require_stringifyDocument = __commonJS({
|
|
|
3570
3566
|
}
|
|
3571
3567
|
});
|
|
3572
3568
|
|
|
3573
|
-
// ../../node_modules
|
|
3569
|
+
// ../../node_modules/yaml/dist/doc/Document.js
|
|
3574
3570
|
var require_Document = __commonJS({
|
|
3575
|
-
"../../node_modules
|
|
3571
|
+
"../../node_modules/yaml/dist/doc/Document.js"(exports) {
|
|
3576
3572
|
"use strict";
|
|
3577
3573
|
var Alias = require_Alias();
|
|
3578
3574
|
var Collection = require_Collection();
|
|
@@ -3879,9 +3875,9 @@ var require_Document = __commonJS({
|
|
|
3879
3875
|
}
|
|
3880
3876
|
});
|
|
3881
3877
|
|
|
3882
|
-
// ../../node_modules
|
|
3878
|
+
// ../../node_modules/yaml/dist/errors.js
|
|
3883
3879
|
var require_errors = __commonJS({
|
|
3884
|
-
"../../node_modules
|
|
3880
|
+
"../../node_modules/yaml/dist/errors.js"(exports) {
|
|
3885
3881
|
"use strict";
|
|
3886
3882
|
var YAMLError = class extends Error {
|
|
3887
3883
|
constructor(name, pos, code, message) {
|
|
@@ -3944,9 +3940,9 @@ ${pointer}
|
|
|
3944
3940
|
}
|
|
3945
3941
|
});
|
|
3946
3942
|
|
|
3947
|
-
// ../../node_modules
|
|
3943
|
+
// ../../node_modules/yaml/dist/compose/resolve-props.js
|
|
3948
3944
|
var require_resolve_props = __commonJS({
|
|
3949
|
-
"../../node_modules
|
|
3945
|
+
"../../node_modules/yaml/dist/compose/resolve-props.js"(exports) {
|
|
3950
3946
|
"use strict";
|
|
3951
3947
|
function resolveProps(tokens, { flow, indicator, next, offset, onError, parentIndent, startOnNewline }) {
|
|
3952
3948
|
let spaceBefore = false;
|
|
@@ -4077,9 +4073,9 @@ var require_resolve_props = __commonJS({
|
|
|
4077
4073
|
}
|
|
4078
4074
|
});
|
|
4079
4075
|
|
|
4080
|
-
// ../../node_modules
|
|
4076
|
+
// ../../node_modules/yaml/dist/compose/util-contains-newline.js
|
|
4081
4077
|
var require_util_contains_newline = __commonJS({
|
|
4082
|
-
"../../node_modules
|
|
4078
|
+
"../../node_modules/yaml/dist/compose/util-contains-newline.js"(exports) {
|
|
4083
4079
|
"use strict";
|
|
4084
4080
|
function containsNewline(key) {
|
|
4085
4081
|
if (!key)
|
|
@@ -4119,9 +4115,9 @@ var require_util_contains_newline = __commonJS({
|
|
|
4119
4115
|
}
|
|
4120
4116
|
});
|
|
4121
4117
|
|
|
4122
|
-
// ../../node_modules
|
|
4118
|
+
// ../../node_modules/yaml/dist/compose/util-flow-indent-check.js
|
|
4123
4119
|
var require_util_flow_indent_check = __commonJS({
|
|
4124
|
-
"../../node_modules
|
|
4120
|
+
"../../node_modules/yaml/dist/compose/util-flow-indent-check.js"(exports) {
|
|
4125
4121
|
"use strict";
|
|
4126
4122
|
var utilContainsNewline = require_util_contains_newline();
|
|
4127
4123
|
function flowIndentCheck(indent, fc, onError) {
|
|
@@ -4137,9 +4133,9 @@ var require_util_flow_indent_check = __commonJS({
|
|
|
4137
4133
|
}
|
|
4138
4134
|
});
|
|
4139
4135
|
|
|
4140
|
-
// ../../node_modules
|
|
4136
|
+
// ../../node_modules/yaml/dist/compose/util-map-includes.js
|
|
4141
4137
|
var require_util_map_includes = __commonJS({
|
|
4142
|
-
"../../node_modules
|
|
4138
|
+
"../../node_modules/yaml/dist/compose/util-map-includes.js"(exports) {
|
|
4143
4139
|
"use strict";
|
|
4144
4140
|
var identity = require_identity();
|
|
4145
4141
|
function mapIncludes(ctx, items, search) {
|
|
@@ -4153,9 +4149,9 @@ var require_util_map_includes = __commonJS({
|
|
|
4153
4149
|
}
|
|
4154
4150
|
});
|
|
4155
4151
|
|
|
4156
|
-
// ../../node_modules
|
|
4152
|
+
// ../../node_modules/yaml/dist/compose/resolve-block-map.js
|
|
4157
4153
|
var require_resolve_block_map = __commonJS({
|
|
4158
|
-
"../../node_modules
|
|
4154
|
+
"../../node_modules/yaml/dist/compose/resolve-block-map.js"(exports) {
|
|
4159
4155
|
"use strict";
|
|
4160
4156
|
var Pair = require_Pair();
|
|
4161
4157
|
var YAMLMap = require_YAMLMap();
|
|
@@ -4261,9 +4257,9 @@ var require_resolve_block_map = __commonJS({
|
|
|
4261
4257
|
}
|
|
4262
4258
|
});
|
|
4263
4259
|
|
|
4264
|
-
// ../../node_modules
|
|
4260
|
+
// ../../node_modules/yaml/dist/compose/resolve-block-seq.js
|
|
4265
4261
|
var require_resolve_block_seq = __commonJS({
|
|
4266
|
-
"../../node_modules
|
|
4262
|
+
"../../node_modules/yaml/dist/compose/resolve-block-seq.js"(exports) {
|
|
4267
4263
|
"use strict";
|
|
4268
4264
|
var YAMLSeq = require_YAMLSeq();
|
|
4269
4265
|
var resolveProps = require_resolve_props();
|
|
@@ -4312,9 +4308,9 @@ var require_resolve_block_seq = __commonJS({
|
|
|
4312
4308
|
}
|
|
4313
4309
|
});
|
|
4314
4310
|
|
|
4315
|
-
// ../../node_modules
|
|
4311
|
+
// ../../node_modules/yaml/dist/compose/resolve-end.js
|
|
4316
4312
|
var require_resolve_end = __commonJS({
|
|
4317
|
-
"../../node_modules
|
|
4313
|
+
"../../node_modules/yaml/dist/compose/resolve-end.js"(exports) {
|
|
4318
4314
|
"use strict";
|
|
4319
4315
|
function resolveEnd(end, offset, reqSpace, onError) {
|
|
4320
4316
|
let comment = "";
|
|
@@ -4355,9 +4351,9 @@ var require_resolve_end = __commonJS({
|
|
|
4355
4351
|
}
|
|
4356
4352
|
});
|
|
4357
4353
|
|
|
4358
|
-
// ../../node_modules
|
|
4354
|
+
// ../../node_modules/yaml/dist/compose/resolve-flow-collection.js
|
|
4359
4355
|
var require_resolve_flow_collection = __commonJS({
|
|
4360
|
-
"../../node_modules
|
|
4356
|
+
"../../node_modules/yaml/dist/compose/resolve-flow-collection.js"(exports) {
|
|
4361
4357
|
"use strict";
|
|
4362
4358
|
var identity = require_identity();
|
|
4363
4359
|
var Pair = require_Pair();
|
|
@@ -4549,9 +4545,9 @@ var require_resolve_flow_collection = __commonJS({
|
|
|
4549
4545
|
}
|
|
4550
4546
|
});
|
|
4551
4547
|
|
|
4552
|
-
// ../../node_modules
|
|
4548
|
+
// ../../node_modules/yaml/dist/compose/compose-collection.js
|
|
4553
4549
|
var require_compose_collection = __commonJS({
|
|
4554
|
-
"../../node_modules
|
|
4550
|
+
"../../node_modules/yaml/dist/compose/compose-collection.js"(exports) {
|
|
4555
4551
|
"use strict";
|
|
4556
4552
|
var identity = require_identity();
|
|
4557
4553
|
var Scalar = require_Scalar();
|
|
@@ -4614,9 +4610,9 @@ var require_compose_collection = __commonJS({
|
|
|
4614
4610
|
}
|
|
4615
4611
|
});
|
|
4616
4612
|
|
|
4617
|
-
// ../../node_modules
|
|
4613
|
+
// ../../node_modules/yaml/dist/compose/resolve-block-scalar.js
|
|
4618
4614
|
var require_resolve_block_scalar = __commonJS({
|
|
4619
|
-
"../../node_modules
|
|
4615
|
+
"../../node_modules/yaml/dist/compose/resolve-block-scalar.js"(exports) {
|
|
4620
4616
|
"use strict";
|
|
4621
4617
|
var Scalar = require_Scalar();
|
|
4622
4618
|
function resolveBlockScalar(ctx, scalar, onError) {
|
|
@@ -4795,9 +4791,9 @@ var require_resolve_block_scalar = __commonJS({
|
|
|
4795
4791
|
}
|
|
4796
4792
|
});
|
|
4797
4793
|
|
|
4798
|
-
// ../../node_modules
|
|
4794
|
+
// ../../node_modules/yaml/dist/compose/resolve-flow-scalar.js
|
|
4799
4795
|
var require_resolve_flow_scalar = __commonJS({
|
|
4800
|
-
"../../node_modules
|
|
4796
|
+
"../../node_modules/yaml/dist/compose/resolve-flow-scalar.js"(exports) {
|
|
4801
4797
|
"use strict";
|
|
4802
4798
|
var Scalar = require_Scalar();
|
|
4803
4799
|
var resolveEnd = require_resolve_end();
|
|
@@ -5013,9 +5009,9 @@ var require_resolve_flow_scalar = __commonJS({
|
|
|
5013
5009
|
}
|
|
5014
5010
|
});
|
|
5015
5011
|
|
|
5016
|
-
// ../../node_modules
|
|
5012
|
+
// ../../node_modules/yaml/dist/compose/compose-scalar.js
|
|
5017
5013
|
var require_compose_scalar = __commonJS({
|
|
5018
|
-
"../../node_modules
|
|
5014
|
+
"../../node_modules/yaml/dist/compose/compose-scalar.js"(exports) {
|
|
5019
5015
|
"use strict";
|
|
5020
5016
|
var identity = require_identity();
|
|
5021
5017
|
var Scalar = require_Scalar();
|
|
@@ -5094,9 +5090,9 @@ var require_compose_scalar = __commonJS({
|
|
|
5094
5090
|
}
|
|
5095
5091
|
});
|
|
5096
5092
|
|
|
5097
|
-
// ../../node_modules
|
|
5093
|
+
// ../../node_modules/yaml/dist/compose/util-empty-scalar-position.js
|
|
5098
5094
|
var require_util_empty_scalar_position = __commonJS({
|
|
5099
|
-
"../../node_modules
|
|
5095
|
+
"../../node_modules/yaml/dist/compose/util-empty-scalar-position.js"(exports) {
|
|
5100
5096
|
"use strict";
|
|
5101
5097
|
function emptyScalarPosition(offset, before, pos) {
|
|
5102
5098
|
if (before) {
|
|
@@ -5124,9 +5120,9 @@ var require_util_empty_scalar_position = __commonJS({
|
|
|
5124
5120
|
}
|
|
5125
5121
|
});
|
|
5126
5122
|
|
|
5127
|
-
// ../../node_modules
|
|
5123
|
+
// ../../node_modules/yaml/dist/compose/compose-node.js
|
|
5128
5124
|
var require_compose_node = __commonJS({
|
|
5129
|
-
"../../node_modules
|
|
5125
|
+
"../../node_modules/yaml/dist/compose/compose-node.js"(exports) {
|
|
5130
5126
|
"use strict";
|
|
5131
5127
|
var Alias = require_Alias();
|
|
5132
5128
|
var identity = require_identity();
|
|
@@ -5230,9 +5226,9 @@ var require_compose_node = __commonJS({
|
|
|
5230
5226
|
}
|
|
5231
5227
|
});
|
|
5232
5228
|
|
|
5233
|
-
// ../../node_modules
|
|
5229
|
+
// ../../node_modules/yaml/dist/compose/compose-doc.js
|
|
5234
5230
|
var require_compose_doc = __commonJS({
|
|
5235
|
-
"../../node_modules
|
|
5231
|
+
"../../node_modules/yaml/dist/compose/compose-doc.js"(exports) {
|
|
5236
5232
|
"use strict";
|
|
5237
5233
|
var Document = require_Document();
|
|
5238
5234
|
var composeNode = require_compose_node();
|
|
@@ -5273,9 +5269,9 @@ var require_compose_doc = __commonJS({
|
|
|
5273
5269
|
}
|
|
5274
5270
|
});
|
|
5275
5271
|
|
|
5276
|
-
// ../../node_modules
|
|
5272
|
+
// ../../node_modules/yaml/dist/compose/composer.js
|
|
5277
5273
|
var require_composer = __commonJS({
|
|
5278
|
-
"../../node_modules
|
|
5274
|
+
"../../node_modules/yaml/dist/compose/composer.js"(exports) {
|
|
5279
5275
|
"use strict";
|
|
5280
5276
|
var node_process = __require("process");
|
|
5281
5277
|
var directives = require_directives();
|
|
@@ -5481,9 +5477,9 @@ ${end.comment}` : end.comment;
|
|
|
5481
5477
|
}
|
|
5482
5478
|
});
|
|
5483
5479
|
|
|
5484
|
-
// ../../node_modules
|
|
5480
|
+
// ../../node_modules/yaml/dist/parse/cst-scalar.js
|
|
5485
5481
|
var require_cst_scalar = __commonJS({
|
|
5486
|
-
"../../node_modules
|
|
5482
|
+
"../../node_modules/yaml/dist/parse/cst-scalar.js"(exports) {
|
|
5487
5483
|
"use strict";
|
|
5488
5484
|
var resolveBlockScalar = require_resolve_block_scalar();
|
|
5489
5485
|
var resolveFlowScalar = require_resolve_flow_scalar();
|
|
@@ -5666,9 +5662,9 @@ var require_cst_scalar = __commonJS({
|
|
|
5666
5662
|
}
|
|
5667
5663
|
});
|
|
5668
5664
|
|
|
5669
|
-
// ../../node_modules
|
|
5665
|
+
// ../../node_modules/yaml/dist/parse/cst-stringify.js
|
|
5670
5666
|
var require_cst_stringify = __commonJS({
|
|
5671
|
-
"../../node_modules
|
|
5667
|
+
"../../node_modules/yaml/dist/parse/cst-stringify.js"(exports) {
|
|
5672
5668
|
"use strict";
|
|
5673
5669
|
var stringify = (cst) => "type" in cst ? stringifyToken(cst) : stringifyItem(cst);
|
|
5674
5670
|
function stringifyToken(token) {
|
|
@@ -5727,9 +5723,9 @@ var require_cst_stringify = __commonJS({
|
|
|
5727
5723
|
}
|
|
5728
5724
|
});
|
|
5729
5725
|
|
|
5730
|
-
// ../../node_modules
|
|
5726
|
+
// ../../node_modules/yaml/dist/parse/cst-visit.js
|
|
5731
5727
|
var require_cst_visit = __commonJS({
|
|
5732
|
-
"../../node_modules
|
|
5728
|
+
"../../node_modules/yaml/dist/parse/cst-visit.js"(exports) {
|
|
5733
5729
|
"use strict";
|
|
5734
5730
|
var BREAK = Symbol("break visit");
|
|
5735
5731
|
var SKIP = Symbol("skip children");
|
|
@@ -5789,9 +5785,9 @@ var require_cst_visit = __commonJS({
|
|
|
5789
5785
|
}
|
|
5790
5786
|
});
|
|
5791
5787
|
|
|
5792
|
-
// ../../node_modules
|
|
5788
|
+
// ../../node_modules/yaml/dist/parse/cst.js
|
|
5793
5789
|
var require_cst = __commonJS({
|
|
5794
|
-
"../../node_modules
|
|
5790
|
+
"../../node_modules/yaml/dist/parse/cst.js"(exports) {
|
|
5795
5791
|
"use strict";
|
|
5796
5792
|
var cstScalar = require_cst_scalar();
|
|
5797
5793
|
var cstStringify = require_cst_stringify();
|
|
@@ -5891,9 +5887,9 @@ var require_cst = __commonJS({
|
|
|
5891
5887
|
}
|
|
5892
5888
|
});
|
|
5893
5889
|
|
|
5894
|
-
// ../../node_modules
|
|
5890
|
+
// ../../node_modules/yaml/dist/parse/lexer.js
|
|
5895
5891
|
var require_lexer = __commonJS({
|
|
5896
|
-
"../../node_modules
|
|
5892
|
+
"../../node_modules/yaml/dist/parse/lexer.js"(exports) {
|
|
5897
5893
|
"use strict";
|
|
5898
5894
|
var cst = require_cst();
|
|
5899
5895
|
function isEmpty(ch) {
|
|
@@ -6475,9 +6471,9 @@ var require_lexer = __commonJS({
|
|
|
6475
6471
|
}
|
|
6476
6472
|
});
|
|
6477
6473
|
|
|
6478
|
-
// ../../node_modules
|
|
6474
|
+
// ../../node_modules/yaml/dist/parse/line-counter.js
|
|
6479
6475
|
var require_line_counter = __commonJS({
|
|
6480
|
-
"../../node_modules
|
|
6476
|
+
"../../node_modules/yaml/dist/parse/line-counter.js"(exports) {
|
|
6481
6477
|
"use strict";
|
|
6482
6478
|
var LineCounter = class {
|
|
6483
6479
|
constructor() {
|
|
@@ -6506,9 +6502,9 @@ var require_line_counter = __commonJS({
|
|
|
6506
6502
|
}
|
|
6507
6503
|
});
|
|
6508
6504
|
|
|
6509
|
-
// ../../node_modules
|
|
6505
|
+
// ../../node_modules/yaml/dist/parse/parser.js
|
|
6510
6506
|
var require_parser = __commonJS({
|
|
6511
|
-
"../../node_modules
|
|
6507
|
+
"../../node_modules/yaml/dist/parse/parser.js"(exports) {
|
|
6512
6508
|
"use strict";
|
|
6513
6509
|
var node_process = __require("process");
|
|
6514
6510
|
var cst = require_cst();
|
|
@@ -7376,9 +7372,9 @@ var require_parser = __commonJS({
|
|
|
7376
7372
|
}
|
|
7377
7373
|
});
|
|
7378
7374
|
|
|
7379
|
-
// ../../node_modules
|
|
7375
|
+
// ../../node_modules/yaml/dist/public-api.js
|
|
7380
7376
|
var require_public_api = __commonJS({
|
|
7381
|
-
"../../node_modules
|
|
7377
|
+
"../../node_modules/yaml/dist/public-api.js"(exports) {
|
|
7382
7378
|
"use strict";
|
|
7383
7379
|
var composer = require_composer();
|
|
7384
7380
|
var Document = require_Document();
|
|
@@ -7473,9 +7469,9 @@ var require_public_api = __commonJS({
|
|
|
7473
7469
|
}
|
|
7474
7470
|
});
|
|
7475
7471
|
|
|
7476
|
-
// ../../node_modules
|
|
7472
|
+
// ../../node_modules/yaml/dist/index.js
|
|
7477
7473
|
var require_dist = __commonJS({
|
|
7478
|
-
"../../node_modules
|
|
7474
|
+
"../../node_modules/yaml/dist/index.js"(exports) {
|
|
7479
7475
|
"use strict";
|
|
7480
7476
|
var composer = require_composer();
|
|
7481
7477
|
var Document = require_Document();
|
|
@@ -8447,13 +8443,13 @@ var bedrockModuleOverride;
|
|
|
8447
8443
|
var bedrockConverseStreamApi = () => lazyApi(async () => bedrockModuleOverride ?? await importNodeOnlyApi("./bedrock-converse-stream.ts"));
|
|
8448
8444
|
|
|
8449
8445
|
// ../../node_modules/@earendil-works/pi-ai/dist/api/google-generative-ai.lazy.js
|
|
8450
|
-
var googleGenerativeAIApi = () => lazyApi(() => import("../../google-generative-ai-
|
|
8446
|
+
var googleGenerativeAIApi = () => lazyApi(() => import("../../google-generative-ai-KD7MXONK.js"));
|
|
8451
8447
|
|
|
8452
8448
|
// ../../node_modules/@earendil-works/pi-ai/dist/api/google-vertex.lazy.js
|
|
8453
|
-
var googleVertexApi = () => lazyApi(() => import("../../google-vertex-
|
|
8449
|
+
var googleVertexApi = () => lazyApi(() => import("../../google-vertex-TREYA472.js"));
|
|
8454
8450
|
|
|
8455
8451
|
// ../../node_modules/@earendil-works/pi-ai/dist/api/mistral-conversations.lazy.js
|
|
8456
|
-
var mistralConversationsApi = () => lazyApi(() => import("../../mistral-conversations-
|
|
8452
|
+
var mistralConversationsApi = () => lazyApi(() => import("../../mistral-conversations-OEOTQWE5.js"));
|
|
8457
8453
|
|
|
8458
8454
|
// ../../node_modules/@earendil-works/pi-ai/dist/api/openai-codex-responses.lazy.js
|
|
8459
8455
|
var openAICodexResponsesApi = () => lazyApi(() => import("../../openai-codex-responses-GEFKSNVN.js"));
|
|
@@ -41409,31 +41405,6 @@ var resolveAgentRuntimeHookExecutor = (plugins = [], portHookExecutorList = [],
|
|
|
41409
41405
|
return new MergedHookExecutorHandler(executorByName);
|
|
41410
41406
|
};
|
|
41411
41407
|
|
|
41412
|
-
// ../linkque-agent-runtime/dist/esm/core/cardReadError.js
|
|
41413
|
-
var CardReadError = class _CardReadError extends Error {
|
|
41414
|
-
code;
|
|
41415
|
-
constructor(code, message) {
|
|
41416
|
-
super(`${code}: ${message}`);
|
|
41417
|
-
this.code = code;
|
|
41418
|
-
this.name = "CardReadError";
|
|
41419
|
-
}
|
|
41420
|
-
static invalid(field, requirement) {
|
|
41421
|
-
return new _CardReadError("CARD_READ_INVALID_ARGUMENT", `${field} ${requirement} \u8BF7\u4FEE\u6B63\u53C2\u6570\u540E\u4F7F\u7528\u539F resultRef \u518D\u6B21\u8BFB\u53D6\u7F13\u5B58\uFF0C\u65E0\u9700\u91CD\u8C03 source \u6216\u4E1A\u52A1 MCP\u3002`);
|
|
41422
|
-
}
|
|
41423
|
-
static pathNotFound() {
|
|
41424
|
-
return new _CardReadError("CARD_READ_PATH_NOT_FOUND", "\u7F13\u5B58\u8DEF\u5F84\u4E0D\u5B58\u5728\u3002\u8BF7\u6838\u5BF9 view \u548C\u56DE\u6267 fields.path\uFF1B\u53EF\u5148\u7701\u7565 path/select \u67E5\u770B\u8BE5\u89C6\u56FE\u7ED3\u6784\uFF0C\u4E0D\u91CD\u65B0\u67E5\u8BE2\u4E1A\u52A1\u6570\u636E\u3002");
|
|
41425
|
-
}
|
|
41426
|
-
static viewUnavailable() {
|
|
41427
|
-
return new _CardReadError("CARD_READ_VIEW_UNAVAILABLE", "bound \u89C6\u56FE\u4E0D\u53EF\u7528\u3002\u8BF7\u6539\u7528 raw \u5E76\u91CD\u65B0\u6838\u5BF9\u539F\u59CB\u6570\u636E\u8DEF\u5F84\uFF0C\u4E0D\u8981\u76F4\u63A5\u6CBF\u7528\u7ED1\u5B9A\u8DEF\u5F84\uFF1B\u65E0\u9700\u91CD\u8C03\u4E1A\u52A1 MCP\u3002");
|
|
41428
|
-
}
|
|
41429
|
-
static resultNotFound() {
|
|
41430
|
-
return new _CardReadError("CARD_READ_RESULT_NOT_FOUND", "\u7F13\u5B58\u5F15\u7528\u4E0D\u5B58\u5728\u6216\u5DF2\u5931\u6548\u3002\u8BF7\u4F7F\u7528\u5F53\u524D\u5361\u7247\u3001\u672C\u8F6E\u56DE\u6267\u4E2D\u7684\u771F\u5B9E resultRef\uFF1B\u6CA1\u6709\u6709\u6548\u5F15\u7528\u65F6\u505C\u6B62\u91CD\u8BD5\uFF0C\u4E0D\u7F16\u9020\u5F15\u7528\u6216\u81EA\u52A8\u91CD\u8C03\u4E1A\u52A1 MCP\u3002");
|
|
41431
|
-
}
|
|
41432
|
-
static budgetExceeded() {
|
|
41433
|
-
return new _CardReadError("CARD_READ_BUDGET_EXCEEDED", "\u7F13\u5B58\u8BFB\u53D6\u8D85\u51FA\u9884\u7B97\u3002\u8BF7\u7F29\u5C0F path \u8303\u56F4\u3001\u51CF\u5C11 select \u6216 limit\uFF0C\u4F7F\u7528\u540C\u4E00 resultRef \u518D\u6B21\u8BFB\u53D6\uFF0C\u65E0\u9700\u91CD\u8C03\u4E1A\u52A1 MCP\u3002");
|
|
41434
|
-
}
|
|
41435
|
-
};
|
|
41436
|
-
|
|
41437
41408
|
// ../linkque-agent-runtime/dist/esm/core/cardSourceResult.js
|
|
41438
41409
|
import { randomUUID as randomUUID4 } from "node:crypto";
|
|
41439
41410
|
var MAX_RECEIPT_BYTES = 1e5;
|
|
@@ -41588,11 +41559,11 @@ function readCardSourceResult(entry, args) {
|
|
|
41588
41559
|
const request = readRequest(args);
|
|
41589
41560
|
const root = request.view === "raw" ? entry.raw : entry.bound;
|
|
41590
41561
|
if (root === void 0) {
|
|
41591
|
-
throw
|
|
41562
|
+
throw new Error(`\u7ED3\u679C ${entry.resultRef} \u6CA1\u6709\u53EF\u8BFB\u53D6\u7684 ${request.view} \u89C6\u56FE`);
|
|
41592
41563
|
}
|
|
41593
41564
|
const selected = request.path === "" ? root : readJsonPointer(root, request.path);
|
|
41594
41565
|
if (selected === void 0)
|
|
41595
|
-
throw
|
|
41566
|
+
throw new Error(`\u7F13\u5B58\u8DEF\u5F84\u4E0D\u5B58\u5728: ${request.path || "/"}`);
|
|
41596
41567
|
if (!isJsonValue(selected))
|
|
41597
41568
|
throw new Error(`\u7F13\u5B58\u8DEF\u5F84\u4E0D\u662F\u5408\u6CD5 JSON \u503C: ${request.path || "/"}`);
|
|
41598
41569
|
const readPage = paginate(selected, request.offset, request.limit, request.textLimit, request.select);
|
|
@@ -41614,7 +41585,7 @@ function readCardSourceResult(entry, args) {
|
|
|
41614
41585
|
};
|
|
41615
41586
|
fitReadReceipt(receipt, request.select.length > 0);
|
|
41616
41587
|
if (byteLength(receipt) > MAX_RECEIPT_BYTES)
|
|
41617
|
-
throw
|
|
41588
|
+
throw new Error("\u7F13\u5B58\u8BFB\u53D6\u56DE\u6267\u8D85\u51FA\u9884\u7B97\uFF0C\u8BF7\u7F29\u77ED\u8DEF\u5F84\u6216\u51CF\u5C11\u9009\u62E9\u5B57\u6BB5");
|
|
41618
41589
|
return receipt;
|
|
41619
41590
|
}
|
|
41620
41591
|
function byteLength(value) {
|
|
@@ -41622,26 +41593,21 @@ function byteLength(value) {
|
|
|
41622
41593
|
}
|
|
41623
41594
|
function readRequest(args) {
|
|
41624
41595
|
if (!args || typeof args !== "object" || Array.isArray(args)) {
|
|
41625
|
-
throw
|
|
41596
|
+
throw new Error("\u7F13\u5B58\u8BFB\u53D6\u53C2\u6570\u5FC5\u987B\u662F\u5BF9\u8C61");
|
|
41626
41597
|
}
|
|
41627
41598
|
const value = args;
|
|
41628
|
-
const view = value.view
|
|
41599
|
+
const view = value.view ?? "bound";
|
|
41629
41600
|
if (view !== "bound" && view !== "raw")
|
|
41630
|
-
throw
|
|
41631
|
-
const path = value.path
|
|
41601
|
+
throw new Error("view \u5FC5\u987B\u662F bound \u6216 raw");
|
|
41602
|
+
const path = value.path ?? "";
|
|
41632
41603
|
if (typeof path !== "string" || path !== "" && !isSafeJsonPointer(path, true)) {
|
|
41633
|
-
throw
|
|
41604
|
+
throw new Error("path \u5FC5\u987B\u662F\u5B89\u5168\u7684 JSON Pointer");
|
|
41634
41605
|
}
|
|
41635
41606
|
if (path.length > 2048)
|
|
41636
|
-
throw
|
|
41637
|
-
const select = value.select
|
|
41638
|
-
if (!Array.isArray(select)) {
|
|
41639
|
-
throw
|
|
41640
|
-
}
|
|
41641
|
-
for (const [index2, candidate] of select.entries()) {
|
|
41642
|
-
if (typeof candidate !== "string" || candidate !== "" && !isSafeJsonPointer(candidate, true)) {
|
|
41643
|
-
throw CardReadError.invalid(`select[${index2}]`, "\u5FC5\u987B\u662F\u5B89\u5168 JSON Pointer\uFF0C\u4F8B\u5982 /airlineName\uFF1B\u4E0D\u63A5\u53D7 airlineName \u6216 $.airlineName\uFF1B\u5B57\u6BB5\u540D\u4E2D\u7684 / \u548C ~ \u5206\u522B\u8F6C\u4E49\u4E3A ~1 \u548C ~0\u3002\u8BFB\u53D6\u6570\u7EC4\u5B57\u6BB5\u65F6\uFF0Cpath \u5FC5\u987B\u6307\u5411\u5B9E\u9645\u6570\u7EC4\uFF0Cselect \u76F8\u5BF9\u4E8E\u6BCF\u4E2A\u5143\u7D20\u3002");
|
|
41644
|
-
}
|
|
41607
|
+
throw new Error("path \u6700\u591A 2048 \u4E2A\u5B57\u7B26");
|
|
41608
|
+
const select = value.select ?? [];
|
|
41609
|
+
if (!Array.isArray(select) || select.some((candidate) => typeof candidate !== "string" || candidate !== "" && !isSafeJsonPointer(candidate, true))) {
|
|
41610
|
+
throw new Error("select \u5FC5\u987B\u662F\u5B89\u5168 JSON Pointer \u6570\u7EC4");
|
|
41645
41611
|
}
|
|
41646
41612
|
const offset = readInteger(value.offset, 0, 0, Number.MAX_SAFE_INTEGER, "offset");
|
|
41647
41613
|
const requestedLimit = readInteger(value.limit, DEFAULT_PAGE_ITEMS, 1, MAX_TEXT_PAGE, "limit");
|
|
@@ -41701,7 +41667,7 @@ function projectValue(value, path, maxItems, maxText) {
|
|
|
41701
41667
|
let visited2 = 0;
|
|
41702
41668
|
const visit = (candidate, candidatePath, depth) => {
|
|
41703
41669
|
if (++visited2 > 2e4 || depth > 32)
|
|
41704
|
-
throw
|
|
41670
|
+
throw new Error("\u6570\u636E\u6295\u5F71\u590D\u6742\u5EA6\u8D85\u51FA\u9884\u7B97");
|
|
41705
41671
|
if (typeof candidate === "string" && candidate.length > maxText) {
|
|
41706
41672
|
omissions.push({
|
|
41707
41673
|
path: candidatePath || "/",
|
|
@@ -41835,7 +41801,7 @@ function readInteger(value, fallback, min, max, name) {
|
|
|
41835
41801
|
if (value === void 0)
|
|
41836
41802
|
return fallback;
|
|
41837
41803
|
if (!Number.isInteger(value) || value < min || value > max) {
|
|
41838
|
-
throw
|
|
41804
|
+
throw new Error(`${name} \u5FC5\u987B\u662F ${min} \u5230 ${max} \u7684\u6574\u6570`);
|
|
41839
41805
|
}
|
|
41840
41806
|
return value;
|
|
41841
41807
|
}
|
|
@@ -41969,6 +41935,7 @@ function isJsonObject(value) {
|
|
|
41969
41935
|
}
|
|
41970
41936
|
|
|
41971
41937
|
// ../linkque-agent-runtime/dist/esm/core/cardRenderMcpServer.js
|
|
41938
|
+
var CARD_SEQUENCE = "\u540C\u4E00\u65F6\u95F4\u53EA\u80FD\u5236\u4F5C\u4E00\u5F20\u5361\u7247\uFF1A\u5148\u5B8C\u6210\u5F53\u524D\u5361\u7247\u7684\u9009\u62E9 \u2192 \u6570\u636E\u6E90\u8C03\u7528 \u2192 \u5C55\u793A\uFF0C\u518D\u9009\u62E9\u4E0B\u4E00\u5F20\u5361\u7247\u3002\u4E0D\u8981\u4EA4\u53C9\u8C03\u7528\u4E0D\u540C\u672A\u5B8C\u6210\u5361\u7247\u7684\u5DE5\u5177\u3002";
|
|
41972
41939
|
var AFTER_CARD_DESCRIPTION = "\u968F\u5361\u7247\u4E00\u8D77\u5C55\u793A\u7684\u6587\u5B57\u3002card_only \u5FC5\u987B\u4E3A\u7A7A\u5B57\u7B26\u4E32\u3002supplement \u53EA\u5B8C\u6210\u5269\u4F59\u95EE\u9898\uFF0C\u76F4\u63A5\u7ED9\u7ED3\u8BBA\uFF0C\u4E0D\u5148\u6982\u8FF0\u5404\u4E2A\u5019\u9009\uFF1A\u4EF7\u683C\u603B\u7ED3\u5E94\u8BF4\u8303\u56F4/\u96C6\u4E2D\u533A\u95F4/\u53D6\u820D\uFF0C\u4E0D\u6309\u9152\u5E97\u5206\u522B\u5199\u8BC4\u4EF7\uFF1B\u8FFD\u95EE\u53EA\u95EE\u6240\u9700\u6761\u4EF6\uFF0C\u4E0D\u5148\u4ECB\u7ECD\u5168\u90E8\u9152\u5E97\uFF1B\u9009\u4E00\u5BB6\u53EA\u7ED9\u8BE5\u9879\u53CA\u7406\u7531\u3002\u5141\u8BB8\u5FC5\u8981\u5F15\u7528\u4E2A\u522B\u540D\u79F0\u6570\u503C\u3002\u4E0D\u8981\u4ECE\u8BC4\u5206\u63A8\u65AD\u536B\u751F\u3001\u4ECE\u8FD1\u5730\u94C1\u63A8\u65AD\u7279\u5B9A\u666F\u70B9\u4FBF\u5229\u6027\uFF0C\u672A\u77E5\u4FDD\u6301\u672A\u77E5\u3002user_requested_text \u53EF\u63D0\u4F9B\u7528\u6237\u660E\u786E\u8981\u6C42\u7684\u5B8C\u6574\u6587\u5B57/\u8868\u683C\u3002\u591A\u5361\u7247\u65F6\u586B\u5199\u7D27\u63A5\u5F53\u524D\u5361\u7247\u7684\u8BF4\u660E\uFF0C\u7136\u540E\u7EE7\u7EED\u8C03\u7528\u4E0B\u4E00\u5F20\u5361\u7247\u5DE5\u5177\u3002\u6B64\u5904\u6587\u5B57\u4F1A\u76F4\u63A5\u5C55\u793A\uFF0Cfinish \u6210\u529F\u540E\u4E0D\u8981\u53E6\u5199\u4E00\u904D\uFF1B\u5361\u7247\u5931\u8D25\u65F6\u4ECD\u53EF\u6B63\u5E38\u6587\u5B57\u56DE\u7B54\u3002";
|
|
41973
41940
|
var RESPONSE_MODE_DESCRIPTION = "\u6309\u7528\u6237\u4EFB\u52A1\u9009\u62E9\uFF1Acard_only=\u67E5\u8BE2/\u5C55\u793A\u7ED3\u679C/\u6CDB\u6CDB\u63A8\u8350\u5019\u9009\uFF0C\u5361\u7247\u5DF2\u7ECF\u5B8C\u6210\u4EFB\u52A1\uFF0C\u4E0D\u4E3B\u52A8\u65B0\u589E\u89E3\u91CA\u6216\u8FFD\u95EE\uFF1Bsupplement=\u7528\u6237\u8FD8\u8981\u6C42\u9009\u4E00\u5BB6\u53CA\u7406\u7531\u3001\u603B\u7ED3\u53D6\u820D\u3001\u8865\u5145\u653F\u7B56\u3001\u9884\u8BA2\u6240\u9700\u4FE1\u606F\uFF0C\u6216\u67E5\u8BE2\u4E3A\u7A7A\u9700\u8BF4\u660E\uFF1Buser_requested_text=\u7528\u6237\u660E\u786E\u8981\u6C42\u53E6\u7ED9\u6587\u5B57/\u53EF\u590D\u5236\u8868\u683C\u3002\u793A\u4F8B\uFF1A\u201C\u63A8\u8350\u676D\u5DDE\u9152\u5E97\u201D\u2192card_only\uFF1B\u201C\u63A8\u8350\u676D\u5DDE\u9152\u5E97\uFF0C\u9009\u4E00\u5BB6\u9002\u5408\u5E26\u5B69\u5B50\u7684\u201D\u2192supplement\uFF1B\u201C\u65E2\u8981\u5361\u7247\u4E5F\u8981\u5B8C\u6574\u8868\u683C\u201D\u2192user_requested_text\u3002";
|
|
41974
41941
|
var CardRenderMcpServer = class {
|
|
@@ -42025,7 +41992,8 @@ var CardRenderMcpServer = class {
|
|
|
42025
41992
|
modelName: name,
|
|
42026
41993
|
resourceId: resource.resourceId,
|
|
42027
41994
|
label: config.displayName,
|
|
42028
|
-
description: createPresentationDescription(config)
|
|
41995
|
+
description: `${createPresentationDescription(config)}
|
|
41996
|
+
\u8C03\u7528\u540E\u4F1A\u4E00\u6B21\u6027\u6821\u9A8C\u53C2\u6570\u3001\u5E76\u884C\u83B7\u53D6\u5168\u90E8\u6570\u636E\u5E76\u751F\u6210\u5361\u7247\uFF1B\u4E0D\u9700\u8981\u518D\u8C03\u7528 card_source \u6216 card_finish\u3002`,
|
|
42029
41997
|
inputSchema: config.argumentMode === "model" ? createA2UICardPipelineModelInputSchema(config.dataSources) : config.presentationInputSchema,
|
|
42030
41998
|
execute: async (args, signal, context) => {
|
|
42031
41999
|
const startedAt = Date.now();
|
|
@@ -42080,7 +42048,8 @@ var CardRenderMcpServer = class {
|
|
|
42080
42048
|
modelName: name,
|
|
42081
42049
|
resourceId: resource.resourceId,
|
|
42082
42050
|
label: config.displayName,
|
|
42083
|
-
description: createPresentationDescription(config)
|
|
42051
|
+
description: `${createPresentationDescription(config)}
|
|
42052
|
+
\u5148\u9009\u62E9\u6B64\u5361\u7247\uFF0C\u518D\u4F9D\u6B21\u8C03\u7528\u5B83\u7684 card_source \u6570\u636E\u6E90\u5DE5\u5177\u548C card_finish \u5C55\u793A\u5DE5\u5177\u3002${CARD_SEQUENCE} \u82E5\u5361\u7247\u5DE5\u5177\u8FD4\u56DE card_skipped\uFF0C\u8BFB\u53D6\u5DF2\u6709\u6570\u636E\u7F13\u5B58\u5E76\u7528 Markdown \u56DE\u7B54\uFF0C\u4E0D\u8981\u91CD\u8C03 MCP \u6216\u5411\u7528\u6237\u63D0\u53CA\u5361\u7247\u6280\u672F\u6545\u969C\u3002`,
|
|
42084
42053
|
inputSchema: {
|
|
42085
42054
|
type: "object",
|
|
42086
42055
|
properties: {},
|
|
@@ -42108,7 +42077,7 @@ var CardRenderMcpServer = class {
|
|
|
42108
42077
|
dependsOn: source.dependsOn ?? []
|
|
42109
42078
|
})),
|
|
42110
42079
|
finishTool: createCardFinishToolName(resource.resourceId),
|
|
42111
|
-
|
|
42080
|
+
readTool: readName
|
|
42112
42081
|
};
|
|
42113
42082
|
}
|
|
42114
42083
|
});
|
|
@@ -42184,53 +42153,35 @@ var CardRenderMcpServer = class {
|
|
|
42184
42153
|
}
|
|
42185
42154
|
});
|
|
42186
42155
|
}
|
|
42187
|
-
|
|
42188
|
-
|
|
42189
|
-
|
|
42190
|
-
|
|
42191
|
-
|
|
42192
|
-
|
|
42193
|
-
|
|
42194
|
-
|
|
42195
|
-
|
|
42196
|
-
|
|
42197
|
-
|
|
42198
|
-
|
|
42199
|
-
|
|
42200
|
-
|
|
42201
|
-
|
|
42202
|
-
|
|
42203
|
-
|
|
42204
|
-
|
|
42205
|
-
|
|
42206
|
-
|
|
42207
|
-
|
|
42208
|
-
|
|
42209
|
-
|
|
42210
|
-
this.logMetric(metricMessage);
|
|
42211
|
-
return receipt;
|
|
42212
|
-
} catch (error) {
|
|
42213
|
-
if (error instanceof CardReadError) {
|
|
42214
|
-
this.logMetric(`phase=cache-read status=failed code=${error.code}`);
|
|
42215
|
-
throw error;
|
|
42216
|
-
}
|
|
42217
|
-
if (_signal?.aborted || error instanceof Error && error.name === "AbortError") {
|
|
42218
|
-
throw error;
|
|
42219
|
-
}
|
|
42220
|
-
this.logMetric("phase=cache-read status=failed code=CARD_TOOL_FAILED");
|
|
42221
|
-
throw new Error("CARD_TOOL_FAILED: \u5361\u7247\u7F13\u5B58\u8BFB\u53D6\u5931\u8D25\u3002", {
|
|
42222
|
-
cause: error
|
|
42223
|
-
});
|
|
42224
|
-
}
|
|
42225
|
-
}
|
|
42226
|
-
});
|
|
42227
|
-
}
|
|
42156
|
+
tools.push({
|
|
42157
|
+
name: readName,
|
|
42158
|
+
modelName: readName,
|
|
42159
|
+
resourceId: resource.resourceId,
|
|
42160
|
+
label: `\u8BFB\u53D6${config.displayName}\u6570\u636E\u6E90\u7F13\u5B58`,
|
|
42161
|
+
description: "\u8BFB\u53D6\u672C\u8F6E\u5DF2\u6210\u529F\u6267\u884C\u7684\u6570\u636E\u6E90\u7F13\u5B58\uFF0C\u4E0D\u4F1A\u518D\u6B21\u8C03\u7528 MCP\u3002\u4EC5\u5F53\u6570\u636E\u6E90\u56DE\u6267\u7F3A\u5C11\u51B3\u7B56\u6240\u9700\u5B57\u6BB5\u3001\u6807\u8BB0\u4E3A\u4E0D\u5B8C\u6574\uFF0C\u6216\u540E\u7EED\u5DE5\u5177\u9700\u8981\u672A\u7ED1\u5B9A\u5B57\u6BB5\u65F6\u8C03\u7528\u3002\u4F18\u5148\u8BFB\u53D6 bound \u89C6\u56FE\uFF1B\u8BFB\u53D6\u96C6\u5408\u540E\u7EED\u6761\u76EE\u65F6\uFF0C\u628A\u56DE\u6267 fields.path \u4F5C\u4E3A path \u5E76\u8BBE\u7F6E offset/limit\uFF1B\u53EA\u6709\u672A\u7ED1\u5B9A\u5B57\u6BB5\u624D\u4F7F\u7528 raw\u3002\u4E0D\u8981\u628A\u5206\u9875\u6216\u622A\u65AD\u7ED3\u679C\u5F53\u4F5C\u5168\u96C6\u3002",
|
|
42162
|
+
inputSchema: CARD_SOURCE_READ_INPUT_SCHEMA,
|
|
42163
|
+
outputSchema: CARD_SOURCE_READ_OUTPUT_SCHEMA,
|
|
42164
|
+
execute: async (args, _signal, context) => {
|
|
42165
|
+
const resultRef = readResultRef(args);
|
|
42166
|
+
const entry = this.sourceResultByRef.get(resultRef);
|
|
42167
|
+
const matchingEntry = entry?.cardId === resource.resourceId ? entry : void 0;
|
|
42168
|
+
this.observeCard(context, resource, config, "read", matchingEntry?.executionId);
|
|
42169
|
+
if (this.closed)
|
|
42170
|
+
throw new Error(`\u7F13\u5B58\u5DF2\u5931\u6548: ${resultRef}`);
|
|
42171
|
+
if (!matchingEntry)
|
|
42172
|
+
throw new Error(`\u672A\u77E5\u7ED3\u679C\u5F15\u7528: ${resultRef}`);
|
|
42173
|
+
const startedAt = Date.now();
|
|
42174
|
+
const receipt = readCardSourceResult(matchingEntry, args);
|
|
42175
|
+
this.logMetric(() => `source=${matchingEntry.sourceId} cacheReadMs=${Date.now() - startedAt} receiptBytes=${byteLength(receipt)}`);
|
|
42176
|
+
return receipt;
|
|
42177
|
+
}
|
|
42178
|
+
});
|
|
42228
42179
|
tools.push({
|
|
42229
42180
|
name: finishName,
|
|
42230
42181
|
modelName: finishName,
|
|
42231
42182
|
resourceId: resource.resourceId,
|
|
42232
42183
|
label: `\u5C55\u793A${config.displayName}`,
|
|
42233
|
-
description: `\u5B8C\u6210\u5E76\u5C55\u793A${config.displayName}\u3002
|
|
42184
|
+
description: `\u6240\u6709\u5FC5\u9700\u7684 card_source \u6570\u636E\u6E90\u5DE5\u5177\u6210\u529F\u540E\uFF0C\u5B8C\u6210\u5E76\u5C55\u793A${config.displayName}\u3002\u82E5\u8FD4\u56DE card_skipped\uFF0C\u4E0D\u8981\u91CD\u8BD5\u5361\u7247\u6216 MCP\uFF1B\u8BFB\u53D6\u5DF2\u6709\u7F13\u5B58\u5E76\u4F9D\u636E\u771F\u5B9E\u7ED3\u679C\u7528 Markdown \u56DE\u7B54\uFF0C\u4E0D\u5411\u7528\u6237\u63D0\u53CA\u5361\u7247\u6E32\u67D3\u6216\u6280\u672F\u95EE\u9898\u3002${CARD_SEQUENCE}
|
|
42234
42185
|
${AFTER_CARD_DESCRIPTION}`,
|
|
42235
42186
|
inputSchema: {
|
|
42236
42187
|
type: "object",
|
|
@@ -42408,65 +42359,15 @@ var CARD_SOURCE_RECEIPT_SCHEMA = {
|
|
|
42408
42359
|
},
|
|
42409
42360
|
additionalProperties: false
|
|
42410
42361
|
};
|
|
42411
|
-
var CARD_SOURCE_READ_DESCRIPTION = `\u529F\u80FD\u63CF\u8FF0
|
|
42412
|
-
\u8BFB\u53D6\u672C\u8F6E\u5F53\u524D\u5361\u7247\u5DF2\u6210\u529F\u6267\u884C\u7684\u6570\u636E\u6E90\u7F13\u5B58\uFF0C\u8FD4\u56DE\u6307\u5B9A\u5B57\u6BB5\u6216\u5206\u9875\u6570\u636E\uFF0C\u4E0D\u4F1A\u518D\u6B21\u8C03\u7528\u4E1A\u52A1 MCP\u3002
|
|
42413
|
-
|
|
42414
|
-
\u4F7F\u7528\u573A\u666F
|
|
42415
|
-
- \u6570\u636E\u6E90\u56DE\u6267\u7F3A\u5C11\u51B3\u7B56\u6240\u9700\u5B57\u6BB5\uFF0C\u6216\u9700\u8981\u7EE7\u7EED\u8BFB\u53D6\u672A\u8FD4\u56DE\u7684\u6761\u76EE\u65F6\u4F7F\u7528\u3002
|
|
42416
|
-
- \u9ED8\u8BA4\u8BFB\u53D6 bound\uFF08\u5DF2\u7ED1\u5B9A\u5B57\u6BB5\uFF09\uFF1B\u9700\u8981\u672A\u7ED1\u5B9A\u5B57\u6BB5\u6216 bound \u4E0D\u53EF\u7528\u65F6\u6539\u7528 raw\uFF08\u539F\u59CB\u7ED3\u679C\uFF09\uFF0C\u5E76\u91CD\u65B0\u6838\u5BF9\u539F\u59CB\u6570\u636E\u8DEF\u5F84\u3002
|
|
42417
|
-
- \u53C2\u6570\u9519\u8BEF\u540E\uFF0C\u53EF\u4FEE\u6B63\u53C2\u6570\u5E76\u4F7F\u7528\u539F resultRef \u518D\u6B21\u8BFB\u53D6\u7F13\u5B58\uFF0C\u65E0\u9700\u91CD\u8C03 source \u6216\u4E1A\u52A1 MCP\u3002
|
|
42418
|
-
- \u5206\u9875\u6216\u622A\u65AD\u7ED3\u679C\u4E0D\u662F\u5168\u96C6\uFF0C\u4E0D\u8981\u636E\u6B64\u65AD\u8A00\u6240\u6709\u6570\u636E\u5747\u5DF2\u8FD4\u56DE\u3002
|
|
42419
|
-
|
|
42420
|
-
\u53C2\u6570\u683C\u5F0F\u8981\u6C42
|
|
42421
|
-
- resultRef\uFF1A\u5FC5\u987B\u590D\u5236\u672C\u8F6E\u5F53\u524D\u5361\u7247\u6570\u636E\u6E90\u56DE\u6267\u4E2D\u7684\u771F\u5B9E\u503C\uFF0C\u4E0D\u5F97\u81EA\u884C\u751F\u6210\u3002
|
|
42422
|
-
- path\uFF1A\u4ECE\u6240\u9009\u89C6\u56FE\u7684\u6839\u8282\u70B9\u5B9A\u4F4D\u8981\u8BFB\u53D6\u7684\u6570\u636E\u3002\u8BFB\u53D6\u96C6\u5408\u65F6\u4F18\u5148\u590D\u5236\u56DE\u6267\u4E2D\u7684 fields.path\uFF1B\u7701\u7565\u6216\u4F20\u7A7A\u5B57\u7B26\u4E32\u8868\u793A\u6839\u8282\u70B9\u3002
|
|
42423
|
-
- select\uFF1A\u8981\u4FDD\u7559\u7684\u5B57\u6BB5\u8DEF\u5F84\u6570\u7EC4\u3002path \u9009\u4E2D\u6570\u7EC4\u65F6\uFF0C\u6BCF\u6761\u8DEF\u5F84\u4ECE\u6BCF\u4E2A\u6570\u7EC4\u5143\u7D20\u5F00\u59CB\uFF1B\u9009\u4E2D\u5BF9\u8C61\u65F6\uFF0C\u4ECE\u8BE5\u5BF9\u8C61\u5F00\u59CB\u3002\u7701\u7565\u8868\u793A\u4E0D\u7B5B\u9009\u5B57\u6BB5\u3002
|
|
42424
|
-
- path \u548C select \u4E2D\u7684\u6BCF\u6761\u8DEF\u5F84\u90FD\u5FC5\u987B\u4F7F\u7528 JSON Pointer\uFF1A\u7528 / \u5206\u9694\u9010\u5C42\u8BBF\u95EE\u7684\u5B57\u6BB5\u540D\uFF0C\u6570\u7EC4\u4E0B\u6807\u4ECE 0 \u5F00\u59CB\u3002\u4F8B\u5982 /flights \u8868\u793A\u6839\u5BF9\u8C61\u7684 flights \u5B57\u6BB5\uFF0C/flights/0/airlineName \u8868\u793A\u7B2C\u4E00\u4E2A\u822A\u73ED\u7684 airlineName \u5B57\u6BB5\uFF1B\u7A7A\u5B57\u7B26\u4E32\u8868\u793A\u5F53\u524D\u8D77\u70B9\u672C\u8EAB\u3002
|
|
42425
|
-
- \u4F8B\u5982 path \u4E3A /flights \u65F6\uFF0Cselect \u5E94\u5199\u6210 ["/airlineName", "/price"]\uFF0C\u8868\u793A\u8BFB\u53D6\u6BCF\u4E2A\u822A\u73ED\u7684\u8FD9\u4E24\u4E2A\u5B57\u6BB5\uFF0C\u4E0D\u8981\u91CD\u590D\u5199 /flights \u524D\u7F00\u3002/airlineName \u5408\u6CD5\uFF0CairlineName \u548C $.airlineName \u4E0D\u5408\u6CD5\uFF1B\u5DE5\u5177\u4E0D\u4F1A\u81EA\u52A8\u8865 /\u3002
|
|
42426
|
-
- \u5B57\u6BB5\u540D\u672C\u8EAB\u542B / \u6216 ~ \u65F6\uFF0C\u5206\u522B\u5199\u6210 ~1 \u6216 ~0\u3002\u4F8B\u5982\u5B57\u6BB5\u540D a/b \u5BF9\u5E94 /a~1b\uFF0C\u5B57\u6BB5\u540D a~b \u5BF9\u5E94 /a~0b\u3002
|
|
42427
|
-
- offset\uFF1A\u4ECE 0 \u5F00\u59CB\u7684\u5206\u9875\u504F\u79FB\uFF1Blimit\uFF1A\u672C\u6B21\u8BFB\u53D6\u6570\u91CF\u3002\u4E24\u8005\u5FC5\u987B\u4E3A\u6574\u6570\uFF0C\u5E76\u9075\u5B88\u53C2\u6570 Schema \u7684\u8303\u56F4\u9650\u5236\u3002
|
|
42428
|
-
|
|
42429
|
-
\u5B8C\u6574\u8C03\u7528\u793A\u4F8B\uFF08resultRef\u3001\u96C6\u5408\u8DEF\u5F84\u548C\u5B57\u6BB5\u5FC5\u987B\u66FF\u6362\u4E3A\u5B9E\u9645\u56DE\u6267\u53CA\u6570\u636E\u4E2D\u7684\u503C\uFF09\uFF1A
|
|
42430
|
-
{
|
|
42431
|
-
"resultRef": "\u590D\u5236\u672C\u8F6E\u56DE\u6267\u4E2D\u7684 resultRef",
|
|
42432
|
-
"view": "bound",
|
|
42433
|
-
"path": "/flights",
|
|
42434
|
-
"select": ["/airlineName", "/price"],
|
|
42435
|
-
"offset": 0,
|
|
42436
|
-
"limit": 10
|
|
42437
|
-
}`;
|
|
42438
42362
|
var CARD_SOURCE_READ_INPUT_SCHEMA = {
|
|
42439
42363
|
type: "object",
|
|
42440
42364
|
required: ["resultRef"],
|
|
42441
42365
|
properties: {
|
|
42442
|
-
resultRef: {
|
|
42443
|
-
|
|
42444
|
-
|
|
42445
|
-
},
|
|
42446
|
-
|
|
42447
|
-
description: "\u9ED8\u8BA4 bound\uFF1B\u4EC5\u5728\u9700\u8981\u672A\u7ED1\u5B9A\u5B57\u6BB5\u6216 bound \u4E0D\u53EF\u7528\u65F6\u4F7F\u7528 raw\uFF0C\u5E76\u91CD\u65B0\u6838\u5BF9\u8DEF\u5F84\u3002",
|
|
42448
|
-
type: "string",
|
|
42449
|
-
enum: ["bound", "raw"],
|
|
42450
|
-
default: "bound"
|
|
42451
|
-
},
|
|
42452
|
-
path: {
|
|
42453
|
-
description: "\u76F8\u5BF9\u4E8E\u6240\u9009\u89C6\u56FE\u6839\u8282\u70B9\u7684 JSON Pointer\uFF0C\u7A7A\u5B57\u7B26\u4E32\u8868\u793A\u6839\u8282\u70B9\u3002\u96C6\u5408\u8DEF\u5F84\u4F18\u5148\u590D\u5236\u56DE\u6267 fields.path\uFF0C\u5982 /flights\u3002",
|
|
42454
|
-
type: "string",
|
|
42455
|
-
maxLength: 2048,
|
|
42456
|
-
default: ""
|
|
42457
|
-
},
|
|
42458
|
-
select: {
|
|
42459
|
-
description: 'JSON Pointer \u6570\u7EC4\uFF0C\u5982 ["/airlineName","/price"]\u3002\u76F8\u5BF9\u4E8E path \u9009\u4E2D\u7684\u5BF9\u8C61\uFF1B\u82E5\u9009\u4E2D\u6570\u7EC4\uFF0C\u5219\u76F8\u5BF9\u4E8E\u6BCF\u4E2A\u5143\u7D20\u3002\u7701\u7565\u8868\u793A\u4E0D\u7B5B\u9009\u3002\u5B57\u6BB5\u540D\u4E2D\u7684 /\u3001~ \u8F6C\u4E49\u4E3A ~1\u3001~0\u3002',
|
|
42460
|
-
type: "array",
|
|
42461
|
-
items: { type: "string" },
|
|
42462
|
-
maxItems: 32
|
|
42463
|
-
},
|
|
42464
|
-
offset: {
|
|
42465
|
-
description: "\u4ECE 0 \u5F00\u59CB\u7684\u5206\u9875\u504F\u79FB\uFF1B\u5206\u9875\u4E0D\u662F\u5168\u96C6\u3002",
|
|
42466
|
-
type: "integer",
|
|
42467
|
-
minimum: 0,
|
|
42468
|
-
default: 0
|
|
42469
|
-
},
|
|
42366
|
+
resultRef: { type: "string" },
|
|
42367
|
+
view: { type: "string", enum: ["bound", "raw"], default: "bound" },
|
|
42368
|
+
path: { type: "string", maxLength: 2048, default: "" },
|
|
42369
|
+
select: { type: "array", items: { type: "string" }, maxItems: 32 },
|
|
42370
|
+
offset: { type: "integer", minimum: 0, default: 0 },
|
|
42470
42371
|
limit: {
|
|
42471
42372
|
type: "integer",
|
|
42472
42373
|
minimum: 1,
|
|
@@ -42536,7 +42437,7 @@ function skippedCardResult(resultRefs) {
|
|
|
42536
42437
|
resultRef,
|
|
42537
42438
|
view: "raw"
|
|
42538
42439
|
})),
|
|
42539
|
-
next:
|
|
42440
|
+
next: "\u672C\u8F6E\u5361\u7247\u65E0\u6CD5\u5C55\u793A\uFF0C\u4E0D\u8981\u91CD\u8BD5\u5361\u7247\u6216\u91CD\u65B0\u8C03\u7528 MCP\u3002\u6309 sources \u4E2D\u7684 resultRef \u548C view \u8C03\u7528\u672C\u5361\u7247\u7684 card_source_read\uFF0C\u53EA\u6839\u636E\u5DF2\u67E5\u8BE2\u5230\u7684\u6570\u636E\u7528 Markdown \u56DE\u7B54\u7528\u6237\uFF1B\u82E5\u7ED3\u679C\u4E3A\u7A7A\uFF0C\u5982\u5B9E\u8BF4\u660E\u6682\u65E0\u7ED3\u679C\uFF0C\u4E0D\u731C\u6D4B\u539F\u56E0\u3002\u4E0D\u8981\u5411\u7528\u6237\u63D0\u53CA\u5361\u7247\u3001\u6E32\u67D3\u6216\u6280\u672F\u6545\u969C\u3002"
|
|
42540
42441
|
};
|
|
42541
42442
|
}
|
|
42542
42443
|
function createCardSourceToolName(resourceId, sourceId) {
|
|
@@ -42551,7 +42452,7 @@ function createCardFinishToolName(resourceId) {
|
|
|
42551
42452
|
function readResultRef(args) {
|
|
42552
42453
|
const resultRef = args && typeof args === "object" && !Array.isArray(args) ? args.resultRef : void 0;
|
|
42553
42454
|
if (typeof resultRef !== "string" || resultRef.length === 0 || resultRef.length > 128) {
|
|
42554
|
-
throw
|
|
42455
|
+
throw new Error("resultRef \u5FC5\u987B\u662F\u957F\u5EA6 1 \u5230 128 \u7684\u5B57\u7B26\u4E32");
|
|
42555
42456
|
}
|
|
42556
42457
|
return resultRef;
|
|
42557
42458
|
}
|
|
@@ -43996,20 +43897,6 @@ var DefaultHarnessPromptPlugin = class {
|
|
|
43996
43897
|
// ../linkque-agent-runtime/dist/esm/impl/plugin/currentTimePlugin.js
|
|
43997
43898
|
var CURRENT_TIME_PLUGIN_NAME = "current-time";
|
|
43998
43899
|
var CURRENT_TIME_TOOL_NAME = "get_current_time";
|
|
43999
|
-
function formatLocalDateTime2(date) {
|
|
44000
|
-
const pad = (value, length = 2) => String(value).padStart(length, "0");
|
|
44001
|
-
const offsetMinutes = -date.getTimezoneOffset();
|
|
44002
|
-
const offsetSign = offsetMinutes >= 0 ? "+" : "-";
|
|
44003
|
-
const absoluteOffset = Math.abs(offsetMinutes);
|
|
44004
|
-
const offset = `${offsetSign}${pad(Math.floor(absoluteOffset / 60))}:${pad(absoluteOffset % 60)}`;
|
|
44005
|
-
return `${date.getFullYear()}-${pad(date.getMonth() + 1)}-${pad(date.getDate())}T${pad(date.getHours())}:${pad(date.getMinutes())}:${pad(date.getSeconds())}.${pad(date.getMilliseconds(), 3)}${offset}`;
|
|
44006
|
-
}
|
|
44007
|
-
function createCurrentTimePrompt() {
|
|
44008
|
-
const timestampMs = Date.now();
|
|
44009
|
-
const now = new Date(timestampMs);
|
|
44010
|
-
const timeZone = Intl.DateTimeFormat().resolvedOptions().timeZone;
|
|
44011
|
-
return `- \u5F53\u524D\u65F6\u95F4:\u5F53\u5730\u65F6\u95F4 ${formatLocalDateTime2(now)}\uFF0C\u5F53\u5730\u65F6\u533A ${timeZone}\uFF0CUnix \u6BEB\u79D2\u65F6\u95F4\u6233 ${timestampMs}\u3002`;
|
|
44012
|
-
}
|
|
44013
43900
|
function createCurrentTimeTool() {
|
|
44014
43901
|
return {
|
|
44015
43902
|
name: CURRENT_TIME_TOOL_NAME,
|
|
@@ -44074,7 +43961,6 @@ var CurrentTimePlugin = class {
|
|
|
44074
43961
|
ok: true,
|
|
44075
43962
|
patch: {
|
|
44076
43963
|
stage: EHookStage.PREPARE_AGENT_LOOP,
|
|
44077
|
-
systemPromptSuffixes: [createCurrentTimePrompt()],
|
|
44078
43964
|
additionalTools: [createCurrentTimeTool()]
|
|
44079
43965
|
}
|
|
44080
43966
|
} : { ok: true, skipped: true }
|
|
@@ -44247,7 +44133,7 @@ var DEFAULT_OPEN_MCP_BASE_URL = APPBASE_RUNTIME_CONFIG_DEFAULTS.LINKQUE_OPEN_MCP
|
|
|
44247
44133
|
function createAppbaseMcpConfigResolver(options) {
|
|
44248
44134
|
return (resource) => ({
|
|
44249
44135
|
remoteBaseUrl: options.remoteBaseUrl ?? DEFAULT_OPEN_MCP_BASE_URL,
|
|
44250
|
-
sseEndpoint: `api/v1/open/mcps/${resource.config.serverName}/
|
|
44136
|
+
sseEndpoint: `api/v1/open/mcps/${resource.config.serverName}/sse`,
|
|
44251
44137
|
agentId: options.agentId,
|
|
44252
44138
|
...options.signEndpoint ? { signEndpoint: options.signEndpoint } : {}
|
|
44253
44139
|
});
|
|
@@ -46358,7 +46244,6 @@ function createAppbaseTelemetry(options) {
|
|
|
46358
46244
|
environment: options.environment,
|
|
46359
46245
|
logsEndpoint: options.logsEndpoint,
|
|
46360
46246
|
tracesEndpoint: options.tracesEndpoint,
|
|
46361
|
-
...options.initialRootTraceId ? { initialRootTraceId: options.initialRootTraceId } : {},
|
|
46362
46247
|
diagnostic: ({ code }) => diagnostic(code)
|
|
46363
46248
|
});
|
|
46364
46249
|
} catch {
|
|
@@ -46509,7 +46394,7 @@ function createSecurityAnswerPlugin(historyStore, log) {
|
|
|
46509
46394
|
}
|
|
46510
46395
|
|
|
46511
46396
|
// ../linkque-agent-appwrite-integrate/dist/esm/runtime/handler/chatConfig.js
|
|
46512
|
-
function resolveChatDeps(env, deps, logCtx, historyOwnerId, appwriteApiKey, envSelector, gatewayAuth, frontendAppId
|
|
46397
|
+
function resolveChatDeps(env, deps, logCtx, historyOwnerId, appwriteApiKey, envSelector, gatewayAuth, frontendAppId) {
|
|
46513
46398
|
const log = (...a) => logCtx?.log?.("[chat]", ...a);
|
|
46514
46399
|
const logError = (...a) => logCtx?.error?.("[chat]", ...a);
|
|
46515
46400
|
const protocol = deps?.protocol ?? getBakedProtocol();
|
|
@@ -46609,7 +46494,6 @@ function resolveChatDeps(env, deps, logCtx, historyOwnerId, appwriteApiKey, envS
|
|
|
46609
46494
|
environment: new AppbaseRuntimeConfigProvider(env).get("LINKQUE_TELEMETRY_ENVIRONMENT") ?? (envSelector === "PRE" ? "pre" : "prod"),
|
|
46610
46495
|
logsEndpoint: telemetryLogsEndpoint,
|
|
46611
46496
|
tracesEndpoint: telemetryTracesEndpoint,
|
|
46612
|
-
...initialRootTraceId ? { initialRootTraceId } : {},
|
|
46613
46497
|
logCtx
|
|
46614
46498
|
});
|
|
46615
46499
|
const runtime = deps?.runtime ?? createAppBaseRuntime(protocol, env, {
|
|
@@ -47321,7 +47205,7 @@ function failure2(status, code, message, retryable = false) {
|
|
|
47321
47205
|
}
|
|
47322
47206
|
|
|
47323
47207
|
// ../linkque-agent-appwrite-integrate/dist/esm/runtime/handler/chat.js
|
|
47324
|
-
async function runChat(method, bodyJSON, env, deps, logCtx, historyOwnerId, appwriteApiKey, envSelector, traceId, gatewayAuth, frontendAppId
|
|
47208
|
+
async function runChat(method, bodyJSON, env, deps, logCtx, historyOwnerId, appwriteApiKey, envSelector, traceId, gatewayAuth, frontendAppId) {
|
|
47325
47209
|
const log = (...args) => logCtx?.log?.("[chat]", ...args);
|
|
47326
47210
|
const logError = (...args) => logCtx?.error?.("[chat]", ...args);
|
|
47327
47211
|
const guarded = guardChatRequest(method, bodyJSON, logCtx);
|
|
@@ -47329,7 +47213,7 @@ async function runChat(method, bodyJSON, env, deps, logCtx, historyOwnerId, appw
|
|
|
47329
47213
|
return guarded;
|
|
47330
47214
|
let request = guarded;
|
|
47331
47215
|
const isPresentationRun = request.executionScope === "presentation";
|
|
47332
|
-
const cfg = resolveChatDeps(env, deps, logCtx, historyOwnerId, appwriteApiKey, envSelector, gatewayAuth, frontendAppId
|
|
47216
|
+
const cfg = resolveChatDeps(env, deps, logCtx, historyOwnerId, appwriteApiKey, envSelector, gatewayAuth, frontendAppId);
|
|
47333
47217
|
if ("status" in cfg)
|
|
47334
47218
|
return cfg;
|
|
47335
47219
|
const leaseOwnerId = randomUUID8();
|
|
@@ -47638,7 +47522,7 @@ function waitForCancellationPoll(delayMs, signal) {
|
|
|
47638
47522
|
}
|
|
47639
47523
|
});
|
|
47640
47524
|
}
|
|
47641
|
-
async function runGateway(method, bodyJSON, env, deps, logCtx, historyOwnerId, appwriteApiKey, envSelector, traceId, gatewayAuth, frontendAppId, mcpPhoneAuthorization
|
|
47525
|
+
async function runGateway(method, bodyJSON, env, deps, logCtx, historyOwnerId, appwriteApiKey, envSelector, traceId, gatewayAuth, frontendAppId, mcpPhoneAuthorization) {
|
|
47642
47526
|
const operation = readOperation(bodyJSON);
|
|
47643
47527
|
const startedAt = Date.now();
|
|
47644
47528
|
const logGateway = (event, fields = {}, failed = false) => {
|
|
@@ -47719,7 +47603,7 @@ async function runGateway(method, bodyJSON, env, deps, logCtx, historyOwnerId, a
|
|
|
47719
47603
|
if (operation) {
|
|
47720
47604
|
return observe(() => jsonError(400, "operation_unsupported", `\u4E0D\u652F\u6301\u7684 operation: ${operation}`));
|
|
47721
47605
|
}
|
|
47722
|
-
return observe(() => runChat(method, bodyJSON, env, deps, logCtx, historyOwnerId, appwriteApiKey, envSelector, traceId, gatewayAuth, frontendAppId
|
|
47606
|
+
return observe(() => runChat(method, bodyJSON, env, deps, logCtx, historyOwnerId, appwriteApiKey, envSelector, traceId, gatewayAuth, frontendAppId));
|
|
47723
47607
|
}
|
|
47724
47608
|
async function chat(ctx) {
|
|
47725
47609
|
let result;
|
|
@@ -47728,19 +47612,15 @@ async function chat(ctx) {
|
|
|
47728
47612
|
const bodyJSON = resolveBodyJSON(ctx.req);
|
|
47729
47613
|
const historyOwnerId = readAuthenticatedUserId(ctx.req.headers);
|
|
47730
47614
|
const appwriteApiKey = readAppwriteApiKey(ctx.req.headers);
|
|
47731
|
-
|
|
47732
|
-
if (otelTraceIdResult.kind === "invalid") {
|
|
47733
|
-
result = jsonError(400, "invalid_otel_trace_id", "x-linkque-otel-trace-id \u683C\u5F0F\u975E\u6CD5");
|
|
47734
|
-
} else if (readOperation(bodyJSON) === REPLACE_ANSWER_OPERATION) {
|
|
47615
|
+
if (readOperation(bodyJSON) === REPLACE_ANSWER_OPERATION) {
|
|
47735
47616
|
const control = await runReplaceAnswer(ctx.req.method, bodyJSON, process.env, void 0, logCtx, appwriteApiKey);
|
|
47736
|
-
|
|
47737
|
-
} else {
|
|
47738
|
-
const envSelector = readEnvSelector(ctx.req.headers);
|
|
47739
|
-
const traceId = readTraceId(ctx.req.headers);
|
|
47740
|
-
const frontendAppId = readFrontendAppId(ctx.req.headers);
|
|
47741
|
-
const gatewayAuth = historyOwnerId ? resolveLinkqueGatewayRequestAuth(ctx.req.headers, process.env, logCtx) : void 0;
|
|
47742
|
-
result = historyOwnerId ? await runGateway(ctx.req.method, bodyJSON, process.env, void 0, logCtx, historyOwnerId, appwriteApiKey, envSelector, traceId, gatewayAuth, frontendAppId, 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);
|
|
47743
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");
|
|
47744
47624
|
} catch (err2) {
|
|
47745
47625
|
logCtx?.error?.(err2);
|
|
47746
47626
|
result = err2 instanceof LinkqueGatewayAuthError || err2 instanceof LinkqueGatewayAuthUnconfiguredError ? jsonError(err2.status, err2.code, err2.message) : {
|