linkque-cli-v2 1.5.0 → 1.6.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.
Files changed (18) hide show
  1. package/dataTransformWorker.js +1880 -0
  2. package/emscripten-module.wasm +0 -0
  3. package/linkquejs.js +1211 -584
  4. package/package.json +1 -1
  5. package/vendor/linkque-agent-appwrite-integrate/data-transform/dataTransformWorker.js +1880 -0
  6. package/vendor/linkque-agent-appwrite-integrate/data-transform/emscripten-module.wasm +0 -0
  7. package/vendor/linkque-agent-appwrite-integrate/dist/esm/{chunk-EWGNYBVV.js → chunk-3WYLH7P7.js} +1883 -1201
  8. package/vendor/linkque-agent-appwrite-integrate/dist/esm/{chunk-GQ4TD3EQ.js → chunk-4XAZNSEQ.js} +1 -1
  9. package/vendor/linkque-agent-appwrite-integrate/dist/esm/{chunk-CBGTFDSE.js → chunk-GPVKBHKR.js} +1 -2
  10. package/vendor/linkque-agent-appwrite-integrate/dist/esm/{chunk-UIU24A4Z.js → chunk-TSJX2OMA.js} +2 -19
  11. package/vendor/linkque-agent-appwrite-integrate/dist/esm/{dist-TGBYXSBU.js → dist-ZPLSQEAM.js} +42 -27
  12. package/vendor/linkque-agent-appwrite-integrate/dist/esm/{google-generative-ai-ENBYCHYT.js → google-generative-ai-OLT56CSV.js} +1 -1
  13. package/vendor/linkque-agent-appwrite-integrate/dist/esm/{google-vertex-RIGAEYLC.js → google-vertex-4DBBJ7SR.js} +1 -1
  14. package/vendor/linkque-agent-appwrite-integrate/dist/esm/runtime/handler/chat.js +1153 -624
  15. package/vendor/linkque-agent-appwrite-integrate/dist/esm/runtime/handler/clientCapability.js +2 -2
  16. package/vendor/linkque-agent-appwrite-integrate/dist/esm/runtime/protocol.js +2 -2
  17. package/vendor/linkque-agent-appwrite-integrate/package.json +1 -1
  18. package/worker.js +3005 -1872
@@ -1324,7 +1324,7 @@ Content-Type: ${partContentType}\r
1324
1324
  * @returns A proxy agent
1325
1325
  */
1326
1326
  static async #getProxyAgent() {
1327
- this.#proxyAgent ||= (await import("./dist-TGBYXSBU.js")).HttpsProxyAgent;
1327
+ this.#proxyAgent ||= (await import("./dist-ZPLSQEAM.js")).HttpsProxyAgent;
1328
1328
  return this.#proxyAgent;
1329
1329
  }
1330
1330
  static async #getFetch() {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  EModelProvider
3
- } from "./chunk-EWGNYBVV.js";
3
+ } from "./chunk-3WYLH7P7.js";
4
4
 
5
5
  // ../linkque-agent-appwrite-integrate/dist/esm/runtime/protocol.js
6
6
  var baked;
@@ -16,7 +16,6 @@ function getBakedProtocol() {
16
16
  systemPrompt: { content: "" },
17
17
  multimodel: { enabled: false },
18
18
  resources: []
19
- // harness 缺省:走 runtime 内置默认预制提示梁(DEFAULT_HARNESS_PROMPT 兜底)。
20
19
  }
21
20
  };
22
21
  }
@@ -22,7 +22,7 @@ import {
22
22
  RUNTIME_CONFIG_DEFAULTS,
23
23
  RuntimeConfigProvider,
24
24
  isDebugLoggingEnabled
25
- } from "./chunk-EWGNYBVV.js";
25
+ } from "./chunk-3WYLH7P7.js";
26
26
  import {
27
27
  __commonJS,
28
28
  __require,
@@ -7345,6 +7345,7 @@ var APPBASE_RUNTIME_CONFIG_DEFAULTS = Object.freeze({
7345
7345
  AGENT_CONFIG_URL_PRE: `${LINKQUE_ENDPOINT_PRE}/api/agent/config`,
7346
7346
  LINKQUE_BASE_URL_PRE: `${LINKQUE_ENDPOINT_PRE}/api/anthropic`,
7347
7347
  LINKQUEGW_KNOWLEDGE_BASE_URL_PRE: LINKQUE_ENDPOINT_PRE,
7348
+ LINKQUEGW_SKILL_LOADER_BASE_URL_PRE: LINKQUE_ENDPOINT_PRE,
7348
7349
  LINKQUEGW_WEB_SEARCH_BASE_URL_PRE: LINKQUE_ENDPOINT_PRE,
7349
7350
  LINKQUEGW_EVENT_BASE_URL_PRE: LINKQUE_ENDPOINT_PRE,
7350
7351
  LINKQUEGW_TELEMETRY_LOGS_ENDPOINT: `${LINKQUE_ENDPOINT_PROD}/api/telemetry/v1/logs`,
@@ -15270,23 +15271,6 @@ function withIsoTimestamp(logCtx, now = () => /* @__PURE__ */ new Date()) {
15270
15271
  ...logCtx.error ? { error: wrap(logCtx.error) } : {}
15271
15272
  };
15272
15273
  }
15273
- function createA2UIInfoLog(env, logCtx, traceId, getMcpTraceId) {
15274
- const level = new AppbaseRuntimeConfigProvider(env).get("LOG_LEVEL").trim().toLowerCase();
15275
- if (!logCtx?.log || !["info", "debug"].includes(level))
15276
- return void 0;
15277
- return (line, scope) => {
15278
- try {
15279
- logCtx.log?.("[a2ui-action][info]", JSON.stringify({
15280
- ...JSON.parse(line),
15281
- level: "info",
15282
- scope,
15283
- traceId,
15284
- mcpTraceId: getMcpTraceId?.()
15285
- }));
15286
- } catch {
15287
- }
15288
- };
15289
- }
15290
15274
  function maskSecret(raw) {
15291
15275
  return raw ? "<set>" : "<unset>";
15292
15276
  }
@@ -15894,7 +15878,6 @@ export {
15894
15878
  resolveRunStorage,
15895
15879
  createAppBaseClient,
15896
15880
  withIsoTimestamp,
15897
- createA2UIInfoLog,
15898
15881
  isDebugLogLevel,
15899
15882
  describeRuntimeEnv,
15900
15883
  LinkqueGatewayAuthError,
@@ -222,50 +222,64 @@ var require_common = __commonJS({
222
222
  createDebug.namespaces = namespaces;
223
223
  createDebug.names = [];
224
224
  createDebug.skips = [];
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;
225
+ const split = (typeof namespaces === "string" ? namespaces : "").trim().replace(/\s+/g, ",").split(",").filter(Boolean);
226
+ for (const ns of split) {
227
+ if (ns[0] === "-") {
228
+ createDebug.skips.push(ns.slice(1));
229
+ } else {
230
+ createDebug.names.push(ns);
231
231
  }
232
- namespaces = split[i].replace(/\*/g, ".*?");
233
- if (namespaces[0] === "-") {
234
- createDebug.skips.push(new RegExp("^" + namespaces.slice(1) + "$"));
232
+ }
233
+ }
234
+ function matchesTemplate(search, template) {
235
+ let searchIndex = 0;
236
+ let templateIndex = 0;
237
+ let starIndex = -1;
238
+ let matchIndex = 0;
239
+ while (searchIndex < search.length) {
240
+ if (templateIndex < template.length && (template[templateIndex] === search[searchIndex] || template[templateIndex] === "*")) {
241
+ if (template[templateIndex] === "*") {
242
+ starIndex = templateIndex;
243
+ matchIndex = searchIndex;
244
+ templateIndex++;
245
+ } else {
246
+ searchIndex++;
247
+ templateIndex++;
248
+ }
249
+ } else if (starIndex !== -1) {
250
+ templateIndex = starIndex + 1;
251
+ matchIndex++;
252
+ searchIndex = matchIndex;
235
253
  } else {
236
- createDebug.names.push(new RegExp("^" + namespaces + "$"));
254
+ return false;
237
255
  }
238
256
  }
257
+ while (templateIndex < template.length && template[templateIndex] === "*") {
258
+ templateIndex++;
259
+ }
260
+ return templateIndex === template.length;
239
261
  }
240
262
  function disable() {
241
263
  const namespaces = [
242
- ...createDebug.names.map(toNamespace),
243
- ...createDebug.skips.map(toNamespace).map((namespace) => "-" + namespace)
264
+ ...createDebug.names,
265
+ ...createDebug.skips.map((namespace) => "-" + namespace)
244
266
  ].join(",");
245
267
  createDebug.enable("");
246
268
  return namespaces;
247
269
  }
248
270
  function enabled(name) {
249
- 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)) {
271
+ for (const skip of createDebug.skips) {
272
+ if (matchesTemplate(name, skip)) {
256
273
  return false;
257
274
  }
258
275
  }
259
- for (i = 0, len = createDebug.names.length; i < len; i++) {
260
- if (createDebug.names[i].test(name)) {
276
+ for (const ns of createDebug.names) {
277
+ if (matchesTemplate(name, ns)) {
261
278
  return true;
262
279
  }
263
280
  }
264
281
  return false;
265
282
  }
266
- function toNamespace(regexp) {
267
- return regexp.toString().substring(2, regexp.toString().length - 2).replace(/\.\*\?$/, "*");
268
- }
269
283
  function coerce(val) {
270
284
  if (val instanceof Error) {
271
285
  return val.stack || val.message;
@@ -384,10 +398,11 @@ var require_browser = __commonJS({
384
398
  if (typeof navigator !== "undefined" && navigator.userAgent && navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)) {
385
399
  return false;
386
400
  }
401
+ let m;
387
402
  return typeof document !== "undefined" && document.documentElement && document.documentElement.style && document.documentElement.style.WebkitAppearance || // Is firebug? http://stackoverflow.com/a/398120/376773
388
403
  typeof window !== "undefined" && window.console && (window.console.firebug || window.console.exception && window.console.table) || // Is firefox >= v31?
389
404
  // https://developer.mozilla.org/en-US/docs/Tools/Web_Console#Styling_messages
390
- typeof navigator !== "undefined" && navigator.userAgent && navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/) && parseInt(RegExp.$1, 10) >= 31 || // Double check webkit in userAgent just in case we are in a worker
405
+ typeof navigator !== "undefined" && navigator.userAgent && (m = navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)) && parseInt(m[1], 10) >= 31 || // Double check webkit in userAgent just in case we are in a worker
391
406
  typeof navigator !== "undefined" && navigator.userAgent && navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/);
392
407
  }
393
408
  function formatArgs(args) {
@@ -425,7 +440,7 @@ var require_browser = __commonJS({
425
440
  function load() {
426
441
  let r;
427
442
  try {
428
- r = exports.storage.getItem("debug");
443
+ r = exports.storage.getItem("debug") || exports.storage.getItem("DEBUG");
429
444
  } catch (error) {
430
445
  }
431
446
  if (!r && typeof process !== "undefined" && "env" in process) {
@@ -708,7 +723,7 @@ var require_node = __commonJS({
708
723
  return (/* @__PURE__ */ new Date()).toISOString() + " ";
709
724
  }
710
725
  function log(...args) {
711
- return process.stderr.write(util.format(...args) + "\n");
726
+ return process.stderr.write(util.formatWithOptions(exports.inspectOpts, ...args) + "\n");
712
727
  }
713
728
  function save(namespaces) {
714
729
  if (namespaces) {
@@ -6,7 +6,7 @@ import {
6
6
  mapStopReason,
7
7
  mapToolChoice,
8
8
  retainThoughtSignature
9
- } from "./chunk-GQ4TD3EQ.js";
9
+ } from "./chunk-4XAZNSEQ.js";
10
10
  import {
11
11
  formatProviderError,
12
12
  normalizeProviderError
@@ -8,7 +8,7 @@ import {
8
8
  mapStopReason,
9
9
  mapToolChoice,
10
10
  retainThoughtSignature
11
- } from "./chunk-GQ4TD3EQ.js";
11
+ } from "./chunk-4XAZNSEQ.js";
12
12
  import {
13
13
  formatProviderError,
14
14
  normalizeProviderError