@keystrokehq/cli 0.1.143 → 0.1.144

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.
@@ -0,0 +1,4 @@
1
+ #!/usr/bin/env node
2
+ import "./dist-B3Tr74Uv.mjs";
3
+ import { g as emitStoredRouteManifestForProject } from "./dist-YtNRS_BV.mjs";
4
+ export { emitStoredRouteManifestForProject };
@@ -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 { $r as _function, Dn as ROUTE_MANIFEST_REL_PATH, Nr as credentialInputSchema, Qr as _enum, Rr as normalizeCredentialList, Sn as PublicModelsResponseSchema, Ur as parseStoredRouteManifest, Wr as requiredDisplayTextSchema, Zr as ZodType, ai as discriminatedUnion, bi as toJSONSchema, ci as literal, di as object, ei as _null, gi as union, hi as string, ii as custom, mi as record, ni as array, pi as preprocess, ri as boolean$1, si as lazy, tt as DEFAULT_CLOUD_PLATFORM_ORIGIN, ui as number, ut as FilePartSchema, vn as PromptResponseSchema } from "./dist-DcNWYQFI.mjs";
4
- import "./dist-D7mPzqIx.mjs";
3
+ import { $r as ZodType, Dn as ROUTE_MANIFEST_REL_PATH, Gr as requiredDisplayTextSchema, Pr as credentialInputSchema, Sn as PublicModelsResponseSchema, Wr as parseStoredRouteManifest, Xr as zodToStoredJsonSchema, _i as string, ai as boolean$1, ei as _enum, fi as number, gi as record, hi as preprocess, ii as array, li as lazy, ni as _null, oi as custom, pi as object, si as discriminatedUnion, ti as _function, tt as DEFAULT_CLOUD_PLATFORM_ORIGIN, ui as literal, ut as FilePartSchema, vi as union, vn as PromptResponseSchema, zr as normalizeCredentialList } from "./dist-B3Tr74Uv.mjs";
4
+ import "./dist-DwD4VJLx.mjs";
5
5
  import "./chunk-BZUGFHVS-CPWRFwK8.mjs";
6
6
  import "./chunk-DLL7UR66-BUYgzxnR.mjs";
7
7
  import "./chunk-TN7HHBQW-CSB_R-XD.mjs";
@@ -30573,16 +30573,15 @@ function findNonExportableSchemaNode(schema, path = "schema") {
30573
30573
  function formatSchemaExportError(cause) {
30574
30574
  return /* @__PURE__ */ new Error(`Cannot export schema to JSON Schema: ${cause}. ${EXPORT_FIX}`);
30575
30575
  }
30576
+ /**
30577
+ * Export a Zod schema to the stored OpenAPI 3.0 JSON Schema wire format.
30578
+ * Inverse: `jsonSchemaToZod` from `@keystrokehq/shared`.
30579
+ */
30576
30580
  function schemaToJson(schema, options = {}) {
30577
30581
  const issue = findNonExportableSchemaNode(schema);
30578
30582
  if (issue) throw formatSchemaExportError(issue);
30579
30583
  try {
30580
- return toJSONSchema(schema, {
30581
- target: "openapi-3.0",
30582
- ...options.allowAdditionalProperties ? { override(ctx) {
30583
- if (ctx.jsonSchema.type === "object") ctx.jsonSchema.additionalProperties = true;
30584
- } } : {}
30585
- });
30584
+ return zodToStoredJsonSchema(schema, options);
30586
30585
  } catch (error) {
30587
30586
  throw formatSchemaExportError(error instanceof Error ? error.message : String(error));
30588
30587
  }
@@ -31374,4 +31373,4 @@ async function emitStoredRouteManifestForProject(projectRoot) {
31374
31373
  //#endregion
31375
31374
  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 };
31376
31375
 
31377
- //# sourceMappingURL=dist-BUwglLzQ.mjs.map
31376
+ //# sourceMappingURL=dist-YtNRS_BV.mjs.map