@agentprojectcontext/apx 1.56.0 → 1.56.2
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/package.json +1 -1
- package/src/core/stores/routines.js +2 -2
- package/src/interfaces/web/dist/assets/{index-nL0K1Vt_.js → index-DaE_memX.js} +105 -105
- package/src/interfaces/web/dist/assets/{index-nL0K1Vt_.js.map → index-DaE_memX.js.map} +1 -1
- package/src/interfaces/web/dist/index.html +1 -1
- package/src/interfaces/web/package-lock.json +6 -6
- package/src/interfaces/web/src/screens/ProjectScreen.tsx +2 -2
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// Replaces the SQLite `routines` table for project-scoped scheduled tasks.
|
|
3
3
|
import fs from "node:fs";
|
|
4
4
|
import path from "node:path";
|
|
5
|
-
import
|
|
5
|
+
import { CronExpressionParser } from "cron-parser";
|
|
6
6
|
import { nowIso, isoToMs } from "../util/time.js";
|
|
7
7
|
|
|
8
8
|
function routinesPath(storagePath) {
|
|
@@ -50,7 +50,7 @@ export function parseSchedule(s, baseMs = Date.now()) {
|
|
|
50
50
|
|
|
51
51
|
// Fallback: Try parsing as standard cron expression using cron-parser
|
|
52
52
|
try {
|
|
53
|
-
const interval =
|
|
53
|
+
const interval = CronExpressionParser.parse(s, { currentDate: new Date(baseMs) });
|
|
54
54
|
return { kind: "cron", parser: interval };
|
|
55
55
|
} catch (err) {
|
|
56
56
|
return { kind: "invalid" };
|