linkque-cli-v2 1.4.0 → 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.
package/linkquejs.js CHANGED
@@ -35183,8 +35183,8 @@ var FUNCTION_DEFS = [
35183
35183
  runtime: "node-22",
35184
35184
  entrypoint: AGENT_BUNDLE_ENTRY,
35185
35185
  commands: "",
35186
- timeout: 30,
35187
- schedule: "* * * * *",
35186
+ timeout: 800,
35187
+ schedule: "$RANDOM_DAILY",
35188
35188
  execute: ["users"],
35189
35189
  scopes: ["documents.read", "documents.write"],
35190
35190
  vars: []
@@ -35275,12 +35275,16 @@ var buildAppwriteConfigTemplate = (envOverrides = {}) => ({
35275
35275
  entrypoint: fn.entrypoint,
35276
35276
  commands: fn.commands,
35277
35277
  timeout: fn.timeout,
35278
- ...fn.schedule ? { schedule: fn.schedule } : {},
35278
+ ...fn.schedule === "$RANDOM_DAILY" ? { schedule: randomDailySchedule() } : fn.schedule ? { schedule: fn.schedule } : {},
35279
35279
  execute: fn.execute,
35280
35280
  scopes: fn.scopes,
35281
35281
  vars: mergeVars(fn.vars, envOverrides)
35282
35282
  }))
35283
35283
  });
35284
+ function randomDailySchedule() {
35285
+ const minute = Math.floor(Math.random() * 360);
35286
+ return `${minute % 60} ${16 + Math.floor(minute / 60)} * * *`;
35287
+ }
35284
35288
  function mergeVars(vars, overrides) {
35285
35289
  const merged = vars.map(
35286
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.4.0",
3
+ "version": "1.4.1",
4
4
  "description": "Public Linkque CLI bundle for sandbox debugging",
5
5
  "bin": {
6
6
  "linkquejs": "linkquejs.js"