linkque-cli-v2 1.3.8 → 1.4.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 (16) hide show
  1. package/linkquejs.js +13 -10
  2. package/package.json +1 -1
  3. package/vendor/linkque-agent-appwrite-integrate/dist/esm/{chunk-RHMVQTA7.js → chunk-CUMXO6KK.js} +4015 -320
  4. package/vendor/linkque-agent-appwrite-integrate/dist/esm/{chunk-ZNU4GVF3.js → chunk-OHRCYI66.js} +146 -119
  5. package/vendor/linkque-agent-appwrite-integrate/dist/esm/{chunk-AACYYAZ6.js → chunk-XL6BPKTI.js} +1 -1
  6. package/vendor/linkque-agent-appwrite-integrate/dist/esm/runtime/handler/chat.js +111 -35
  7. package/vendor/linkque-agent-appwrite-integrate/dist/esm/runtime/handler/clientCapability.js +3 -3
  8. package/vendor/linkque-agent-appwrite-integrate/dist/esm/runtime/protocol.js +3 -3
  9. package/worker.js +135 -32
  10. package/vendor/linkque-agent-appwrite-integrate/dist/esm/{anthropic-messages-EL2IU4YU.js → anthropic-messages-5DOLTIGP.js} +3 -3
  11. package/vendor/linkque-agent-appwrite-integrate/dist/esm/{azure-openai-responses-A4XURCOX.js → azure-openai-responses-HVAVRLTK.js} +1 -1
  12. package/vendor/linkque-agent-appwrite-integrate/dist/esm/{mistral-conversations-5RZTVEO2.js → mistral-conversations-OEBGEDLQ.js} +10 -10
  13. package/vendor/linkque-agent-appwrite-integrate/dist/esm/{openai-codex-responses-WLREQPZK.js → openai-codex-responses-3KOC6KHN.js} +1 -1
  14. package/vendor/linkque-agent-appwrite-integrate/dist/esm/{openai-completions-U6LUBY4P.js → openai-completions-HG6OJRL5.js} +3 -3
  15. package/vendor/linkque-agent-appwrite-integrate/dist/esm/{openai-responses-SFZAU5JA.js → openai-responses-F6V2PG3Y.js} +1 -1
  16. package/vendor/linkque-agent-appwrite-integrate/dist/esm/{pi-messages-QQA6ZGV2.js → pi-messages-DC4DVRAJ.js} +3 -3
package/linkquejs.js CHANGED
@@ -7574,14 +7574,13 @@ var require_fast_uri = __commonJS({
7574
7574
  if (!malformedIPLiteral) {
7575
7575
  malformedHost = canonicalizeHost(parsed, options, schemeHandler, isIP);
7576
7576
  }
7577
- if (uri.indexOf("%") !== -1 && parsed.host !== void 0 && !malformedIPLiteral) {
7578
- let host = isIP ? parsed.host : normalizePercentEncoding(parsed.host, true);
7579
- if (!isIP) {
7580
- host = normalizePercentEncoding(host.toLowerCase());
7581
- }
7582
- parsed.host = reescapeHostDelimiters(host, isIP);
7583
- }
7584
7577
  if (!schemeHandler || schemeHandler && !schemeHandler.skipNormalize) {
7578
+ if (uri.indexOf("%") !== -1) {
7579
+ if (parsed.host !== void 0 && !malformedIPLiteral) {
7580
+ const host = isIP ? parsed.host : normalizePercentEncoding(parsed.host, true);
7581
+ parsed.host = reescapeHostDelimiters(host, isIP);
7582
+ }
7583
+ }
7585
7584
  if (parsed.path) {
7586
7585
  parsed.path = normalizePathEncoding(parsed.path);
7587
7586
  }
@@ -35184,8 +35183,8 @@ var FUNCTION_DEFS = [
35184
35183
  runtime: "node-22",
35185
35184
  entrypoint: AGENT_BUNDLE_ENTRY,
35186
35185
  commands: "",
35187
- timeout: 30,
35188
- schedule: "* * * * *",
35186
+ timeout: 800,
35187
+ schedule: "$RANDOM_DAILY",
35189
35188
  execute: ["users"],
35190
35189
  scopes: ["documents.read", "documents.write"],
35191
35190
  vars: []
@@ -35276,12 +35275,16 @@ var buildAppwriteConfigTemplate = (envOverrides = {}) => ({
35276
35275
  entrypoint: fn.entrypoint,
35277
35276
  commands: fn.commands,
35278
35277
  timeout: fn.timeout,
35279
- ...fn.schedule ? { schedule: fn.schedule } : {},
35278
+ ...fn.schedule === "$RANDOM_DAILY" ? { schedule: randomDailySchedule() } : fn.schedule ? { schedule: fn.schedule } : {},
35280
35279
  execute: fn.execute,
35281
35280
  scopes: fn.scopes,
35282
35281
  vars: mergeVars(fn.vars, envOverrides)
35283
35282
  }))
35284
35283
  });
35284
+ function randomDailySchedule() {
35285
+ const minute = Math.floor(Math.random() * 360);
35286
+ return `${minute % 60} ${16 + Math.floor(minute / 60)} * * *`;
35287
+ }
35285
35288
  function mergeVars(vars, overrides) {
35286
35289
  const merged = vars.map(
35287
35290
  (v2) => v2.key in overrides ? { key: v2.key, value: overrides[v2.key] } : v2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "linkque-cli-v2",
3
- "version": "1.3.8",
3
+ "version": "1.4.1",
4
4
  "description": "Public Linkque CLI bundle for sandbox debugging",
5
5
  "bin": {
6
6
  "linkquejs": "linkquejs.js"