linkque-cli-v2 1.6.29 → 1.7.1

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 (21) hide show
  1. package/linkquejs.js +1639 -4239
  2. package/package.json +1 -1
  3. package/vendor/linkque-agent-appwrite-integrate/dist/esm/{chunk-RTUO3ZWI.js → chunk-2QJITP7G.js} +2 -2
  4. package/vendor/linkque-agent-appwrite-integrate/dist/esm/{chunk-BQHLF2GE.js → chunk-3AP3LROQ.js} +301 -4019
  5. package/vendor/linkque-agent-appwrite-integrate/dist/esm/{chunk-NA35NOK4.js → chunk-4GHCK6YF.js} +49 -1
  6. package/vendor/linkque-agent-appwrite-integrate/dist/esm/{chunk-BMMEXZ52.js → chunk-4JKRD3V2.js} +1 -1
  7. package/vendor/linkque-agent-appwrite-integrate/dist/esm/{chunk-TIXVMTXT.js → chunk-FC7MJHC3.js} +1 -1
  8. package/vendor/linkque-agent-appwrite-integrate/dist/esm/chunk-GAYNLDWK.js +11166 -0
  9. package/vendor/linkque-agent-appwrite-integrate/dist/esm/{chunk-33Q6KVN2.js → chunk-XUFLSZM4.js} +196 -60
  10. package/vendor/linkque-agent-appwrite-integrate/dist/esm/{dist-JRQ7GIV4.js → dist-6U5W3RLM.js} +46 -31
  11. package/vendor/linkque-agent-appwrite-integrate/dist/esm/{google-generative-ai-5VYDRFFM.js → google-generative-ai-RT2OOQDJ.js} +1 -1
  12. package/vendor/linkque-agent-appwrite-integrate/dist/esm/{google-vertex-JO4CT7NF.js → google-vertex-HVFMVQVY.js} +1 -1
  13. package/vendor/linkque-agent-appwrite-integrate/dist/esm/{mistral-conversations-43TLMTO6.js → mistral-conversations-KIOTOF73.js} +4 -4
  14. package/vendor/linkque-agent-appwrite-integrate/dist/esm/{multipart-parser-HCLTR6CW.js → multipart-parser-TAD6XL3Q.js} +2 -2
  15. package/vendor/linkque-agent-appwrite-integrate/dist/esm/{otel-UCKXDLYZ.js → otel-LQR5KPZ3.js} +2 -2
  16. package/vendor/linkque-agent-appwrite-integrate/dist/esm/runtime/handler/chat.js +7838 -642
  17. package/vendor/linkque-agent-appwrite-integrate/dist/esm/runtime/handler/clientCapability.js +4 -4
  18. package/vendor/linkque-agent-appwrite-integrate/dist/esm/runtime/protocol.js +4 -4
  19. package/vendor/linkque-agent-appwrite-integrate/dist/esm/{src-MFXPXO5F.js → src-JSJTYJV5.js} +25 -25
  20. package/worker.js +70369 -75959
  21. package/vendor/linkque-agent-appwrite-integrate/dist/esm/chunk-KQTRZ2SZ.js +0 -19744
@@ -23,7 +23,7 @@ import {
23
23
  RuntimeConfigProvider,
24
24
  getRunEmbeddedQuery,
25
25
  isDebugLoggingEnabled
26
- } from "./chunk-BQHLF2GE.js";
26
+ } from "./chunk-3AP3LROQ.js";
27
27
  import {
28
28
  __commonJS,
29
29
  __require,
@@ -7399,6 +7399,10 @@ var EXTERNAL_ACTION_COLUMNS = definitions.map(([key, size]) => ({
7399
7399
  default: null
7400
7400
  }));
7401
7401
 
7402
+ // ../linkque-agent-appwrite-integrate/dist/esm/runtime/userInfoSchemaDefinition.js
7403
+ var USER_INFO_DATABASE = "linkque";
7404
+ var USER_INFO_TABLE = "linkque_user_info";
7405
+
7402
7406
  // ../linkque-agent-appwrite-integrate/dist/esm/runtime/appbaseRuntimeConfigProvider.js
7403
7407
  var LINKQUE_ENDPOINT_PRE = "https://linkquegw-pre.alipay.com";
7404
7408
  var APPBASE_RUNTIME_CONFIG_DEFAULTS = Object.freeze({
@@ -17977,6 +17981,47 @@ Permission.delete = (role) => {
17977
17981
  return `delete("${role}")`;
17978
17982
  };
17979
17983
 
17984
+ // ../../node_modules/@alipay/appbase-node-sdk/dist/id.mjs
17985
+ var ID = class _ID {
17986
+ /**
17987
+ * Generate an hex ID based on timestamp.
17988
+ * Recreated from https://www.php.net/manual/en/function.uniqid.php
17989
+ *
17990
+ * @returns {string}
17991
+ */
17992
+ static #hexTimestamp() {
17993
+ const now = /* @__PURE__ */ new Date();
17994
+ const sec = Math.floor(now.getTime() / 1e3);
17995
+ const msec = now.getMilliseconds();
17996
+ const hexTimestamp = sec.toString(16) + msec.toString(16).padStart(5, "0");
17997
+ return hexTimestamp;
17998
+ }
17999
+ /**
18000
+ * Uses the provided ID as the ID for the resource.
18001
+ *
18002
+ * @param {string} id
18003
+ * @returns {string}
18004
+ */
18005
+ static custom(id) {
18006
+ return id;
18007
+ }
18008
+ /**
18009
+ * Have AppBase generate a unique ID for you.
18010
+ *
18011
+ * @param {number} padding. Default is 7.
18012
+ * @returns {string}
18013
+ */
18014
+ static unique(padding = 7) {
18015
+ const baseId = _ID.#hexTimestamp();
18016
+ let randomPadding = "";
18017
+ for (let i = 0; i < padding; i++) {
18018
+ const randomHexDigit = Math.floor(Math.random() * 16).toString(16);
18019
+ randomPadding += randomHexDigit;
18020
+ }
18021
+ return baseId + randomPadding;
18022
+ }
18023
+ };
18024
+
17980
18025
  // ../../node_modules/@alipay/appbase-node-sdk/dist/operator.mjs
17981
18026
  var _Operator = class _Operator2 {
17982
18027
  /**
@@ -18835,6 +18880,8 @@ export {
18835
18880
  AUTHORIZATION_CHECKPOINT_TABLE,
18836
18881
  SESSION_MEMORY_TABLE,
18837
18882
  EXTERNAL_ACTION_COLUMNS,
18883
+ USER_INFO_DATABASE,
18884
+ USER_INFO_TABLE,
18838
18885
  LINKQUE_ENDPOINT_PRE,
18839
18886
  APPBASE_RUNTIME_CONFIG_DEFAULTS,
18840
18887
  AppbaseRuntimeConfigProvider,
@@ -18842,6 +18889,7 @@ export {
18842
18889
  Databases,
18843
18890
  Memory,
18844
18891
  TablesDB,
18892
+ ID,
18845
18893
  MemoryScope,
18846
18894
  MemoryRecordKind,
18847
18895
  withIsoTimestamp,
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  EModelProvider
3
- } from "./chunk-BQHLF2GE.js";
3
+ } from "./chunk-3AP3LROQ.js";
4
4
 
5
5
  // ../linkque-agent-appwrite-integrate/dist/esm/runtime/protocol.js
6
6
  var baked;
@@ -13,7 +13,7 @@ import {
13
13
  string,
14
14
  union,
15
15
  unknown
16
- } from "./chunk-KQTRZ2SZ.js";
16
+ } from "./chunk-GAYNLDWK.js";
17
17
 
18
18
  // ../../node_modules/@mistralai/mistralai/esm/lib/primitives.js
19
19
  function remap(inp, mappings) {