linkque-cli-v2 1.6.23 → 1.6.25-alpha.0
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 +21 -78
- package/linkquejs.js +17776 -18677
- package/package.json +1 -1
- package/vendor/linkque-agent-appwrite-integrate/dist/esm/{chunk-GAYNLDWK.js → chunk-6POVPTQH.js} +6011 -2626
- package/vendor/linkque-agent-appwrite-integrate/dist/esm/chunk-EAODRPW4.js +518 -0
- package/vendor/linkque-agent-appwrite-integrate/dist/esm/{chunk-NOCU2PBJ.js → chunk-EXYGBKWJ.js} +1 -1
- package/vendor/linkque-agent-appwrite-integrate/dist/esm/{chunk-XUFLSZM4.js → chunk-GTEZTRCK.js} +35 -190
- package/vendor/linkque-agent-appwrite-integrate/dist/esm/{chunk-2QJITP7G.js → chunk-LTZQZY5N.js} +26 -83
- package/vendor/linkque-agent-appwrite-integrate/dist/esm/{chunk-FC7MJHC3.js → chunk-Q5VTO4BZ.js} +1 -1
- package/vendor/linkque-agent-appwrite-integrate/dist/esm/{chunk-55VHSCSE.js → chunk-VBVOUDAY.js} +6884 -3755
- package/vendor/linkque-agent-appwrite-integrate/dist/esm/{chunk-FB6H4CGZ.js → chunk-XYAYDSKW.js} +12 -11
- package/vendor/linkque-agent-appwrite-integrate/dist/esm/{dist-6U5W3RLM.js → dist-JRQ7GIV4.js} +31 -46
- package/vendor/linkque-agent-appwrite-integrate/dist/esm/{google-generative-ai-RT2OOQDJ.js → google-generative-ai-WBIK2BRB.js} +1 -1
- package/vendor/linkque-agent-appwrite-integrate/dist/esm/{google-vertex-HVFMVQVY.js → google-vertex-2TMP5HDA.js} +1 -1
- package/vendor/linkque-agent-appwrite-integrate/dist/esm/{mistral-conversations-KIOTOF73.js → mistral-conversations-X6KT35XW.js} +4 -4
- package/vendor/linkque-agent-appwrite-integrate/dist/esm/{multipart-parser-TAD6XL3Q.js → multipart-parser-HCLTR6CW.js} +2 -2
- package/vendor/linkque-agent-appwrite-integrate/dist/esm/{otel-LQR5KPZ3.js → otel-3OUODIOB.js} +268 -580
- package/vendor/linkque-agent-appwrite-integrate/dist/esm/runtime/handler/chat.js +14415 -6836
- package/vendor/linkque-agent-appwrite-integrate/dist/esm/runtime/handler/clientCapability.js +5 -4
- package/vendor/linkque-agent-appwrite-integrate/dist/esm/runtime/protocol.js +5 -4
- package/vendor/linkque-agent-appwrite-integrate/dist/esm/{src-JSJTYJV5.js → src-MFXPXO5F.js} +25 -25
- package/worker.js +39691 -25271
package/vendor/linkque-agent-appwrite-integrate/dist/esm/{chunk-FB6H4CGZ.js → chunk-XYAYDSKW.js}
RENAMED
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
RuntimeConfigProvider,
|
|
24
24
|
getRunEmbeddedQuery,
|
|
25
25
|
isDebugLoggingEnabled
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-VBVOUDAY.js";
|
|
27
27
|
import {
|
|
28
28
|
__commonJS,
|
|
29
29
|
__require,
|
|
@@ -7416,6 +7416,7 @@ var APPBASE_RUNTIME_CONFIG_DEFAULTS = Object.freeze({
|
|
|
7416
7416
|
LINKQUEGW_TELEMETRY_LOGS_ENDPOINT_PRE: `${LINKQUE_ENDPOINT_PRE}/api/telemetry/v1/logs`,
|
|
7417
7417
|
LINKQUEGW_TELEMETRY_TRACES_ENDPOINT_PRE: `${LINKQUE_ENDPOINT_PRE}/api/telemetry/v1/traces`,
|
|
7418
7418
|
LINKQUEGW_MCP_SIGN_ENDPOINT_PRE: `${LINKQUE_ENDPOINT_PRE}/api/mcp/signature`,
|
|
7419
|
+
LINKQUEGW_A2A_SIGN_ENDPOINT_PRE: `${LINKQUE_ENDPOINT_PRE}/api/a2a/signature`,
|
|
7419
7420
|
LINKQUE_OPEN_MCP_BASE_URL: "https://opengw.alipay.com",
|
|
7420
7421
|
LINKQUE_OPEN_MCP_BASE_URL_PRE: "https://opengw-pre.alipay.com",
|
|
7421
7422
|
EXTERNAL_ACTION_DATABASE_ID: "linkque",
|
|
@@ -7464,11 +7465,11 @@ var $ = !o && globalThis.Request || dt;
|
|
|
7464
7465
|
var C = !o && globalThis.Response || le;
|
|
7465
7466
|
var A = !o && globalThis.AbortController || Mn;
|
|
7466
7467
|
|
|
7467
|
-
//
|
|
7468
|
+
// ../linkque-agent-appwrite-integrate/node_modules/@alipay/appbase-node-sdk/dist/client.mjs
|
|
7468
7469
|
var import_agent = __toESM(require_agent(), 1);
|
|
7469
7470
|
var import_json_bigint2 = __toESM(require_json_bigint(), 1);
|
|
7470
7471
|
|
|
7471
|
-
//
|
|
7472
|
+
// ../linkque-agent-appwrite-integrate/node_modules/@alipay/appbase-node-sdk/dist/query.mjs
|
|
7472
7473
|
var import_json_bigint = __toESM(require_json_bigint(), 1);
|
|
7473
7474
|
var JSONbig = (0, import_json_bigint.default)({ useNativeBigInt: true });
|
|
7474
7475
|
var _Query = class _Query2 {
|
|
@@ -7561,7 +7562,7 @@ _Query.touches = (attribute, values) => new _Query("touches", attribute, [values
|
|
|
7561
7562
|
_Query.notTouches = (attribute, values) => new _Query("notTouches", attribute, [values]).toString();
|
|
7562
7563
|
var Query = _Query;
|
|
7563
7564
|
|
|
7564
|
-
//
|
|
7565
|
+
// ../linkque-agent-appwrite-integrate/node_modules/@alipay/appbase-node-sdk/dist/client.mjs
|
|
7565
7566
|
var JSONbigParser = (0, import_json_bigint2.default)({ storeAsString: false });
|
|
7566
7567
|
var JSONbigSerializer = (0, import_json_bigint2.default)({ useNativeBigInt: true });
|
|
7567
7568
|
var MAX_SAFE = BigInt(Number.MAX_SAFE_INTEGER);
|
|
@@ -8029,7 +8030,7 @@ var _Client = class _Client2 {
|
|
|
8029
8030
|
_Client.CHUNK_SIZE = 1024 * 1024 * 5;
|
|
8030
8031
|
var Client = _Client;
|
|
8031
8032
|
|
|
8032
|
-
//
|
|
8033
|
+
// ../linkque-agent-appwrite-integrate/node_modules/@alipay/appbase-node-sdk/dist/services/databases.mjs
|
|
8033
8034
|
var Databases = class {
|
|
8034
8035
|
constructor(client) {
|
|
8035
8036
|
this.client = client;
|
|
@@ -11457,7 +11458,7 @@ var Databases = class {
|
|
|
11457
11458
|
}
|
|
11458
11459
|
};
|
|
11459
11460
|
|
|
11460
|
-
//
|
|
11461
|
+
// ../linkque-agent-appwrite-integrate/node_modules/@alipay/appbase-node-sdk/dist/services/memory.mjs
|
|
11461
11462
|
var Memory = class {
|
|
11462
11463
|
constructor(client) {
|
|
11463
11464
|
this.client = client;
|
|
@@ -14280,7 +14281,7 @@ var Memory = class {
|
|
|
14280
14281
|
}
|
|
14281
14282
|
};
|
|
14282
14283
|
|
|
14283
|
-
//
|
|
14284
|
+
// ../linkque-agent-appwrite-integrate/node_modules/@alipay/appbase-node-sdk/dist/services/tables-db.mjs
|
|
14284
14285
|
var TablesDB = class {
|
|
14285
14286
|
constructor(client) {
|
|
14286
14287
|
this.client = client;
|
|
@@ -17957,7 +17958,7 @@ var TablesDB = class {
|
|
|
17957
17958
|
}
|
|
17958
17959
|
};
|
|
17959
17960
|
|
|
17960
|
-
//
|
|
17961
|
+
// ../linkque-agent-appwrite-integrate/node_modules/@alipay/appbase-node-sdk/dist/permission.mjs
|
|
17961
17962
|
var Permission = class {
|
|
17962
17963
|
};
|
|
17963
17964
|
Permission.read = (role) => {
|
|
@@ -17976,7 +17977,7 @@ Permission.delete = (role) => {
|
|
|
17976
17977
|
return `delete("${role}")`;
|
|
17977
17978
|
};
|
|
17978
17979
|
|
|
17979
|
-
//
|
|
17980
|
+
// ../linkque-agent-appwrite-integrate/node_modules/@alipay/appbase-node-sdk/dist/operator.mjs
|
|
17980
17981
|
var _Operator = class _Operator2 {
|
|
17981
17982
|
/**
|
|
17982
17983
|
* Constructor for Operator class.
|
|
@@ -18101,7 +18102,7 @@ _Operator.dateAddDays = (days) => new _Operator("dateAddDays", [days]).toString(
|
|
|
18101
18102
|
_Operator.dateSubDays = (days) => new _Operator("dateSubDays", [days]).toString();
|
|
18102
18103
|
_Operator.dateSetNow = () => new _Operator("dateSetNow", []).toString();
|
|
18103
18104
|
|
|
18104
|
-
//
|
|
18105
|
+
// ../linkque-agent-appwrite-integrate/node_modules/@alipay/appbase-node-sdk/dist/enums/memory-scope.mjs
|
|
18105
18106
|
var MemoryScope = /* @__PURE__ */ ((MemoryScope2) => {
|
|
18106
18107
|
MemoryScope2["Private"] = "private";
|
|
18107
18108
|
MemoryScope2["StrictPrivate"] = "strict_private";
|
|
@@ -18111,7 +18112,7 @@ var MemoryScope = /* @__PURE__ */ ((MemoryScope2) => {
|
|
|
18111
18112
|
return MemoryScope2;
|
|
18112
18113
|
})(MemoryScope || {});
|
|
18113
18114
|
|
|
18114
|
-
//
|
|
18115
|
+
// ../linkque-agent-appwrite-integrate/node_modules/@alipay/appbase-node-sdk/dist/enums/memory-record-kind.mjs
|
|
18115
18116
|
var MemoryRecordKind = /* @__PURE__ */ ((MemoryRecordKind2) => {
|
|
18116
18117
|
MemoryRecordKind2["Conversation"] = "conversation";
|
|
18117
18118
|
MemoryRecordKind2["Fact"] = "fact";
|
package/vendor/linkque-agent-appwrite-integrate/dist/esm/{dist-6U5W3RLM.js → dist-JRQ7GIV4.js}
RENAMED
|
@@ -3,9 +3,9 @@ import {
|
|
|
3
3
|
__require
|
|
4
4
|
} from "./chunk-2ESYSVXG.js";
|
|
5
5
|
|
|
6
|
-
// ../../node_modules/ms/index.js
|
|
6
|
+
// ../../node_modules/debug/node_modules/ms/index.js
|
|
7
7
|
var require_ms = __commonJS({
|
|
8
|
-
"../../node_modules/ms/index.js"(exports, module) {
|
|
8
|
+
"../../node_modules/debug/node_modules/ms/index.js"(exports, module) {
|
|
9
9
|
var s = 1e3;
|
|
10
10
|
var m = s * 60;
|
|
11
11
|
var h = m * 60;
|
|
@@ -222,64 +222,50 @@ var require_common = __commonJS({
|
|
|
222
222
|
createDebug.namespaces = namespaces;
|
|
223
223
|
createDebug.names = [];
|
|
224
224
|
createDebug.skips = [];
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
225
|
+
let i;
|
|
226
|
+
const split = (typeof namespaces === "string" ? namespaces : "").split(/[\s,]+/);
|
|
227
|
+
const len = split.length;
|
|
228
|
+
for (i = 0; i < len; i++) {
|
|
229
|
+
if (!split[i]) {
|
|
230
|
+
continue;
|
|
231
231
|
}
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
let searchIndex = 0;
|
|
236
|
-
let templateIndex = 0;
|
|
237
|
-
let starIndex = -1;
|
|
238
|
-
let matchIndex = 0;
|
|
239
|
-
while (searchIndex < search.length) {
|
|
240
|
-
if (templateIndex < template.length && (template[templateIndex] === search[searchIndex] || template[templateIndex] === "*")) {
|
|
241
|
-
if (template[templateIndex] === "*") {
|
|
242
|
-
starIndex = templateIndex;
|
|
243
|
-
matchIndex = searchIndex;
|
|
244
|
-
templateIndex++;
|
|
245
|
-
} else {
|
|
246
|
-
searchIndex++;
|
|
247
|
-
templateIndex++;
|
|
248
|
-
}
|
|
249
|
-
} else if (starIndex !== -1) {
|
|
250
|
-
templateIndex = starIndex + 1;
|
|
251
|
-
matchIndex++;
|
|
252
|
-
searchIndex = matchIndex;
|
|
232
|
+
namespaces = split[i].replace(/\*/g, ".*?");
|
|
233
|
+
if (namespaces[0] === "-") {
|
|
234
|
+
createDebug.skips.push(new RegExp("^" + namespaces.slice(1) + "$"));
|
|
253
235
|
} else {
|
|
254
|
-
|
|
236
|
+
createDebug.names.push(new RegExp("^" + namespaces + "$"));
|
|
255
237
|
}
|
|
256
238
|
}
|
|
257
|
-
while (templateIndex < template.length && template[templateIndex] === "*") {
|
|
258
|
-
templateIndex++;
|
|
259
|
-
}
|
|
260
|
-
return templateIndex === template.length;
|
|
261
239
|
}
|
|
262
240
|
function disable() {
|
|
263
241
|
const namespaces = [
|
|
264
|
-
...createDebug.names,
|
|
265
|
-
...createDebug.skips.map((namespace) => "-" + namespace)
|
|
242
|
+
...createDebug.names.map(toNamespace),
|
|
243
|
+
...createDebug.skips.map(toNamespace).map((namespace) => "-" + namespace)
|
|
266
244
|
].join(",");
|
|
267
245
|
createDebug.enable("");
|
|
268
246
|
return namespaces;
|
|
269
247
|
}
|
|
270
248
|
function enabled(name) {
|
|
271
|
-
|
|
272
|
-
|
|
249
|
+
if (name[name.length - 1] === "*") {
|
|
250
|
+
return true;
|
|
251
|
+
}
|
|
252
|
+
let i;
|
|
253
|
+
let len;
|
|
254
|
+
for (i = 0, len = createDebug.skips.length; i < len; i++) {
|
|
255
|
+
if (createDebug.skips[i].test(name)) {
|
|
273
256
|
return false;
|
|
274
257
|
}
|
|
275
258
|
}
|
|
276
|
-
for (
|
|
277
|
-
if (
|
|
259
|
+
for (i = 0, len = createDebug.names.length; i < len; i++) {
|
|
260
|
+
if (createDebug.names[i].test(name)) {
|
|
278
261
|
return true;
|
|
279
262
|
}
|
|
280
263
|
}
|
|
281
264
|
return false;
|
|
282
265
|
}
|
|
266
|
+
function toNamespace(regexp) {
|
|
267
|
+
return regexp.toString().substring(2, regexp.toString().length - 2).replace(/\.\*\?$/, "*");
|
|
268
|
+
}
|
|
283
269
|
function coerce(val) {
|
|
284
270
|
if (val instanceof Error) {
|
|
285
271
|
return val.stack || val.message;
|
|
@@ -398,11 +384,10 @@ var require_browser = __commonJS({
|
|
|
398
384
|
if (typeof navigator !== "undefined" && navigator.userAgent && navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)) {
|
|
399
385
|
return false;
|
|
400
386
|
}
|
|
401
|
-
let m;
|
|
402
387
|
return typeof document !== "undefined" && document.documentElement && document.documentElement.style && document.documentElement.style.WebkitAppearance || // Is firebug? http://stackoverflow.com/a/398120/376773
|
|
403
388
|
typeof window !== "undefined" && window.console && (window.console.firebug || window.console.exception && window.console.table) || // Is firefox >= v31?
|
|
404
389
|
// https://developer.mozilla.org/en-US/docs/Tools/Web_Console#Styling_messages
|
|
405
|
-
typeof navigator !== "undefined" && navigator.userAgent &&
|
|
390
|
+
typeof navigator !== "undefined" && navigator.userAgent && navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/) && parseInt(RegExp.$1, 10) >= 31 || // Double check webkit in userAgent just in case we are in a worker
|
|
406
391
|
typeof navigator !== "undefined" && navigator.userAgent && navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/);
|
|
407
392
|
}
|
|
408
393
|
function formatArgs(args) {
|
|
@@ -440,7 +425,7 @@ var require_browser = __commonJS({
|
|
|
440
425
|
function load() {
|
|
441
426
|
let r;
|
|
442
427
|
try {
|
|
443
|
-
r = exports.storage.getItem("debug")
|
|
428
|
+
r = exports.storage.getItem("debug");
|
|
444
429
|
} catch (error) {
|
|
445
430
|
}
|
|
446
431
|
if (!r && typeof process !== "undefined" && "env" in process) {
|
|
@@ -466,9 +451,9 @@ var require_browser = __commonJS({
|
|
|
466
451
|
}
|
|
467
452
|
});
|
|
468
453
|
|
|
469
|
-
// ../../node_modules/
|
|
454
|
+
// ../../node_modules/has-flag/index.js
|
|
470
455
|
var require_has_flag = __commonJS({
|
|
471
|
-
"../../node_modules/
|
|
456
|
+
"../../node_modules/has-flag/index.js"(exports, module) {
|
|
472
457
|
"use strict";
|
|
473
458
|
module.exports = function(flag, argv) {
|
|
474
459
|
argv = argv || process.argv;
|
|
@@ -687,7 +672,7 @@ var require_node = __commonJS({
|
|
|
687
672
|
return (/* @__PURE__ */ new Date()).toISOString() + " ";
|
|
688
673
|
}
|
|
689
674
|
function log(...args) {
|
|
690
|
-
return process.stderr.write(util.
|
|
675
|
+
return process.stderr.write(util.format(...args) + "\n");
|
|
691
676
|
}
|
|
692
677
|
function save(namespaces) {
|
|
693
678
|
if (namespaces) {
|
|
@@ -36,7 +36,7 @@ import {
|
|
|
36
36
|
safeParse,
|
|
37
37
|
smartUnion,
|
|
38
38
|
unwrapAsync
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-Q5VTO4BZ.js";
|
|
40
40
|
import {
|
|
41
41
|
parseStreamingJson
|
|
42
42
|
} from "./chunk-WJHOHUET.js";
|
|
@@ -54,7 +54,7 @@ import {
|
|
|
54
54
|
} from "./chunk-CT4G24PS.js";
|
|
55
55
|
import {
|
|
56
56
|
zodToJsonSchema
|
|
57
|
-
} from "./chunk-
|
|
57
|
+
} from "./chunk-GTEZTRCK.js";
|
|
58
58
|
import {
|
|
59
59
|
$ZodError,
|
|
60
60
|
NEVER,
|
|
@@ -77,7 +77,7 @@ import {
|
|
|
77
77
|
record,
|
|
78
78
|
string,
|
|
79
79
|
union
|
|
80
|
-
} from "./chunk-
|
|
80
|
+
} from "./chunk-6POVPTQH.js";
|
|
81
81
|
import "./chunk-2ESYSVXG.js";
|
|
82
82
|
|
|
83
83
|
// ../../node_modules/@mistralai/mistralai/esm/lib/url.js
|
|
@@ -388,7 +388,7 @@ async function getObservabilityModule() {
|
|
|
388
388
|
return observabilityModule;
|
|
389
389
|
}
|
|
390
390
|
try {
|
|
391
|
-
observabilityModule = await import("./otel-
|
|
391
|
+
observabilityModule = await import("./otel-3OUODIOB.js");
|
|
392
392
|
} catch {
|
|
393
393
|
observabilityModule = null;
|
|
394
394
|
}
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
__esm
|
|
9
9
|
} from "./chunk-2ESYSVXG.js";
|
|
10
10
|
|
|
11
|
-
// ../../node_modules/
|
|
11
|
+
// ../../node_modules/node-fetch/src/utils/multipart-parser.js
|
|
12
12
|
function _fileName(headerValue) {
|
|
13
13
|
const m = headerValue.match(/\bfilename=("(.*?)"|([^()<>@,;:\\"/[\]?={}\s\t]+))($|;\s)/i);
|
|
14
14
|
if (!m) {
|
|
@@ -98,7 +98,7 @@ async function toFormData(Body, ct) {
|
|
|
98
98
|
}
|
|
99
99
|
var s, S, f, F, LF, CR, SPACE, HYPHEN, COLON, A, Z, lower, noop, MultipartParser;
|
|
100
100
|
var init_multipart_parser = __esm({
|
|
101
|
-
"../../node_modules/
|
|
101
|
+
"../../node_modules/node-fetch/src/utils/multipart-parser.js"() {
|
|
102
102
|
init_from();
|
|
103
103
|
init_esm_min();
|
|
104
104
|
s = 0;
|