@agentprojectcontext/apx 1.56.0 → 1.56.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agentprojectcontext/apx",
3
- "version": "1.56.0",
3
+ "version": "1.56.1",
4
4
  "description": "APX — unified CLI + daemon for the Agent Project Context (APC) standard.",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -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 cronParser from "cron-parser";
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 = cronParser.parseExpression(s, { currentDate: new Date(baseMs) });
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" };