@keystrokehq/cli 0.1.82 → 0.1.84
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/dist/{dist-Digu3xY8.mjs → dist-BBhY5irR.mjs} +18 -4
- package/dist/dist-BBhY5irR.mjs.map +1 -0
- package/dist/{dist-CnsvKhw-.mjs → dist-CdlTh3Xw.mjs} +3 -3
- package/dist/{dist-CnsvKhw-.mjs.map → dist-CdlTh3Xw.mjs.map} +1 -1
- package/dist/dist-D1_ubR_K.mjs +3 -0
- package/dist/index.mjs +6 -6
- package/dist/skills-bundle/_AGENTS.md +2 -2
- package/package.json +1 -1
- package/dist/dist-CnRkj0Dr.mjs +0 -3
- package/dist/dist-Digu3xY8.mjs.map +0 -1
|
@@ -29618,15 +29618,27 @@ const pollScheduleSchema = cronScheduleSchema$1.refine(isMinuteLevelCron, "poll
|
|
|
29618
29618
|
function isMinuteLevelCron(schedule) {
|
|
29619
29619
|
return schedule.startsWith("@") || schedule.split(/\s+/).length === 5;
|
|
29620
29620
|
}
|
|
29621
|
-
|
|
29621
|
+
/**
|
|
29622
|
+
* Validates and brands an IANA timezone (e.g. `America/New_York`). Uses
|
|
29623
|
+
* `Intl.DateTimeFormat` so we don't need a timezone database dependency.
|
|
29624
|
+
*/
|
|
29625
|
+
const timezoneSchema = string().trim().min(1, "timezone must be a non-empty IANA timezone").refine(isValidIanaTimezone, "must be a valid IANA timezone").brand();
|
|
29626
|
+
function isValidIanaTimezone(value) {
|
|
29627
|
+
try {
|
|
29628
|
+
new Intl.DateTimeFormat("en-US", { timeZone: value });
|
|
29629
|
+
return true;
|
|
29630
|
+
} catch {
|
|
29631
|
+
return false;
|
|
29632
|
+
}
|
|
29633
|
+
}
|
|
29622
29634
|
/**
|
|
29623
29635
|
* Single touchpoint for the `cron-parser` library — every parse, validation,
|
|
29624
29636
|
* and next-run calculation in this package goes through here.
|
|
29625
29637
|
*/
|
|
29626
|
-
function parseCronExpression(schedule, currentDate) {
|
|
29638
|
+
function parseCronExpression(schedule, currentDate, timezone = "UTC") {
|
|
29627
29639
|
return import_dist.CronExpressionParser.parse(schedule, {
|
|
29628
29640
|
currentDate: currentDate ?? /* @__PURE__ */ new Date(),
|
|
29629
|
-
tz:
|
|
29641
|
+
tz: timezone
|
|
29630
29642
|
});
|
|
29631
29643
|
}
|
|
29632
29644
|
function isParseableCron(value) {
|
|
@@ -29683,6 +29695,7 @@ const triggerSourceSchema$1 = preprocess(normalizeLegacySlugFields$1, discrimina
|
|
|
29683
29695
|
kind: literal("cron"),
|
|
29684
29696
|
...baseSourceShape$1,
|
|
29685
29697
|
schedule: cronScheduleSchema$1,
|
|
29698
|
+
timezone: timezoneSchema.optional(),
|
|
29686
29699
|
payload: cronPayloadSchema.optional()
|
|
29687
29700
|
}),
|
|
29688
29701
|
object({
|
|
@@ -29690,6 +29703,7 @@ const triggerSourceSchema$1 = preprocess(normalizeLegacySlugFields$1, discrimina
|
|
|
29690
29703
|
...baseSourceShape$1,
|
|
29691
29704
|
id: string().optional(),
|
|
29692
29705
|
schedule: pollScheduleSchema,
|
|
29706
|
+
timezone: timezoneSchema.optional(),
|
|
29693
29707
|
run: _function(),
|
|
29694
29708
|
stateSchema: zodSchema$1.optional(),
|
|
29695
29709
|
filters: array(_function()),
|
|
@@ -30995,4 +31009,4 @@ async function emitStoredRouteManifestForProject(projectRoot) {
|
|
|
30995
31009
|
//#endregion
|
|
30996
31010
|
export { validatePollGroups as A, attachmentSlugFromRecord as B, pollRouteFromSourceSlug as C, validateAttachmentTargets as D, toStoredRouteManifest as E, webhookManifestAttachmentSchemasFromBindings as F, packAssetDirs as G, computeCallSiteIds as H, webhookMatchSchemaForBindings as I, entryIdFromFile as J, discoverEntries as K, webhookRouteFromEndpoint as L, validateTriggerAttachments as M, validateUniqueAttachmentSlugs as N, validateImportedTriggerAttachment as O, validateUniqueTriggerSourceSlugs as P, walkTypeScriptFiles as Q, workflowKeyForAttachment as R, pollGroupRouteFromId as S, serializeRouteManifest as T, diagnoseWorkflowSource as U, classifyCall as V, locateWorkflow as W, shouldSkipKeystrokeModuleFile as X, readKeystrokeIgnoreDirective as Y, validateUniqueModuleKeys as Z, importAgentDefinition as _, buildStoredRouteManifestForProject as a, persistStoredRouteManifest as b, collectAgentAppSlugs as c, discoverAgentEntries as d, discoverSkillManifestEntries as f, emitStoredRouteManifestForProject as g, discoverWorkflows as h, buildPollGroups as i, validateProjectModules as j, validateImportedWorkflowDefinition as k, collectAgentToolSlugs as l, discoverWorkflowEntries as m, agentManifestEntry as n, buildStoredRouteManifestFromContext as o, discoverTriggerAttachments as p, discoverModuleFileEntries as q, agentRouteFromKey as r, buildWebhookBindingsByRoute as s, agentKeyForAttachment as t, countAgentCredentials as u, importTriggerAttachments as v, schemaToJson as w, pollGroupId as x, importWorkflowDefinition as y, workflowRouteFromKey as z };
|
|
30997
31011
|
|
|
30998
|
-
//# sourceMappingURL=dist-
|
|
31012
|
+
//# sourceMappingURL=dist-BBhY5irR.mjs.map
|