@keystrokehq/cli 0.1.68 → 0.1.69

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.
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import { n as __require, t as __commonJSMin } from "./chunk-DiodbrVj.mjs";
3
- import { Br as object, Dr as ZodType, Fr as discriminatedUnion, Gr as union, Hr as preprocess, Lr as literal, Mr as array, Nr as boolean$1, Or as _enum, Pr as custom, Wr as string, Yr as toJSONSchema, br as parseStoredRouteManifest, cn as PublicModelsResponseSchema, dn as ROUTE_MANIFEST_REL_PATH, dr as credentialInputSchema, gr as normalizeCredentialList, kr as _function, nt as DEFAULT_CLOUD_PLATFORM_ORIGIN, sn as PromptResponseSchema, xr as requiredDisplayTextSchema, zr as number } from "./dist-qP0YVL-T.mjs";
4
- import "./dist-lGYSzJPL.mjs";
3
+ import { Ar as _null, Br as number, Dr as ZodType, Fr as discriminatedUnion, Gr as string, Kr as union, Lr as lazy, Mr as array, Nr as boolean$1, Or as _enum, Pr as custom, Rr as literal, Ur as preprocess, Vr as object, Wr as record, Xr as toJSONSchema, br as parseStoredRouteManifest, cn as PublicModelsResponseSchema, dn as ROUTE_MANIFEST_REL_PATH, dr as credentialInputSchema, gr as normalizeCredentialList, kr as _function, nt as DEFAULT_CLOUD_PLATFORM_ORIGIN, sn as PromptResponseSchema, xr as requiredDisplayTextSchema } from "./dist-FSvBEy0q.mjs";
4
+ import "./dist-DUQegnm2.mjs";
5
5
  import "./chunk-BZUGFHVS-CPWRFwK8.mjs";
6
6
  import "./chunk-DLL7UR66-BUYgzxnR.mjs";
7
7
  import "./chunk-TN7HHBQW-CSB_R-XD.mjs";
@@ -28,6 +28,7 @@ import ts from "typescript";
28
28
  import { bigint, boolean, doublePrecision, index, integer, jsonb, pgEnum, pgTable, primaryKey, text, timestamp, uniqueIndex } from "drizzle-orm/pg-core";
29
29
  import { index as index$1, integer as integer$1, primaryKey as primaryKey$1, real, sqliteTable, text as text$1, uniqueIndex as uniqueIndex$1 } from "drizzle-orm/sqlite-core";
30
30
  import { sql } from "drizzle-orm";
31
+ import "drizzle-orm/pg-proxy";
31
32
  import "better-sqlite3";
32
33
  import "drizzle-orm/better-sqlite3";
33
34
  import "drizzle-orm/migrator";
@@ -29638,6 +29639,16 @@ function isParseableCron(value) {
29638
29639
  return false;
29639
29640
  }
29640
29641
  }
29642
+ const jsonValueSchema = lazy(() => union([
29643
+ string(),
29644
+ number(),
29645
+ boolean$1(),
29646
+ _null(),
29647
+ array(jsonValueSchema),
29648
+ record(string(), jsonValueSchema)
29649
+ ]));
29650
+ /** Runtime schema for an optional static cron payload (JSON only). */
29651
+ const cronPayloadSchema = jsonValueSchema;
29641
29652
  const zodSchema$1 = custom((v) => v instanceof ZodType, "must be a Zod schema");
29642
29653
  const workflowSchema$1 = custom((v) => isWorkflow(v), "must be defineWorkflow(...)");
29643
29654
  const agentSchema$1 = custom((v) => typeof v === "object" && v !== null && typeof v.slug === "string" && v.slug.trim().length > 0 && typeof v.prompt === "function", "must be defineAgent(...)");
@@ -29673,7 +29684,8 @@ const triggerSourceSchema$1 = preprocess(normalizeLegacySlugFields$1, discrimina
29673
29684
  object({
29674
29685
  kind: literal("cron"),
29675
29686
  ...baseSourceShape$1,
29676
- schedule: cronScheduleSchema$1
29687
+ schedule: cronScheduleSchema$1,
29688
+ payload: cronPayloadSchema.optional()
29677
29689
  }),
29678
29690
  object({
29679
29691
  kind: literal("poll"),
@@ -30369,7 +30381,8 @@ const triggerSourceSchema = preprocess(normalizeLegacySlugFields, discriminatedU
30369
30381
  object({
30370
30382
  kind: literal("cron"),
30371
30383
  ...baseSourceShape,
30372
- schedule: cronScheduleSchema
30384
+ schedule: cronScheduleSchema,
30385
+ payload: cronPayloadSchema.optional()
30373
30386
  }),
30374
30387
  object({
30375
30388
  kind: literal("poll"),
@@ -30980,4 +30993,4 @@ async function emitStoredRouteManifestForProject(projectRoot) {
30980
30993
  //#endregion
30981
30994
  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 };
30982
30995
 
30983
- //# sourceMappingURL=dist-DNsgHccO.mjs.map
30996
+ //# sourceMappingURL=dist-29Z9arBu.mjs.map