@keystrokehq/cli 0.1.170 → 0.1.171

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,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  import { n as __require, r as __toESM, t as __commonJSMin } from "./chunk-DiodbrVj.mjs";
3
- import { Aa as NEVER, Ca as record, Ci as parseStoredRouteManifest, Da as url, Di as zodToStoredJsonSchema, Ea as unknown, Fi as credentialInputSchema, Gi as PublicModelsResponseSchema, Ii as getOpenApiJsonSchema, Li as normalizeCredentialList, Oa as datetime, On as ProjectArtifactIndexSchema, Ri as requiredDisplayTextSchema, Rn as PromptResponseSchema, Sa as preprocess, Ta as union, _a as literal, aa as ZodIssueCode, ba as object, ca as _function, da as array, fa as boolean$1, ga as lazy, ha as intersection, ia as number$1, ka as safeParse$1, la as _null, ma as discriminatedUnion, oa as ZodType, on as PROJECT_MANIFEST_REL_PATH, pa as custom, sa as _enum, ua as any, va as looseObject, wa as string, xa as optional, xi as parseProjectManifest, ya as number, zi as DEFAULT_CLOUD_PLATFORM_ORIGIN } from "./dist-DaFb2eM_.mjs";
3
+ import { Aa as NEVER, Ca as record, Ci as parseStoredRouteManifest, Da as url, Di as zodToStoredJsonSchema, Ea as unknown, Fi as credentialInputSchema, Gi as PublicModelsResponseSchema, Ii as getOpenApiJsonSchema, Li as normalizeCredentialList, Oa as datetime, On as ProjectArtifactIndexSchema, Ri as requiredDisplayTextSchema, Rn as PromptResponseSchema, Sa as preprocess, Ta as union, _a as literal, aa as ZodIssueCode, ba as object, ca as _function, da as array, fa as boolean$1, ga as lazy, ha as intersection, ia as number$1, ka as safeParse$1, la as _null, ma as discriminatedUnion, oa as ZodType, on as PROJECT_MANIFEST_REL_PATH, pa as custom, sa as _enum, ua as any, va as looseObject, wa as string, xa as optional, xi as parseProjectManifest, ya as number, zi as DEFAULT_CLOUD_PLATFORM_ORIGIN } from "./dist-CnddVrzY.mjs";
4
4
  import "./chunk-4RUAZWKT-D60fyWAB.mjs";
5
5
  import "./chunk-SAI2SPQQ-CVRoDNs9.mjs";
6
6
  import "./chunk-WNH3HOQA-BCZUOjCJ.mjs";
@@ -46479,6 +46479,17 @@ async function discoverIntegrationActions(projectRoot, sourceFiles, options) {
46479
46479
  registry
46480
46480
  };
46481
46481
  }
46482
+ function triggerManifestAttachments(attachments) {
46483
+ return attachments.map((attachment) => isWorkflowTriggerAttachment(attachment.attachment) ? {
46484
+ id: attachment.slug,
46485
+ targetKind: "workflow",
46486
+ targetSlug: attachment.attachment.workflow.slug
46487
+ } : {
46488
+ id: attachment.slug,
46489
+ targetKind: "agent",
46490
+ targetSlug: attachment.attachment.agent.slug
46491
+ });
46492
+ }
46482
46493
  function resolveDistModuleDirs(projectRoot) {
46483
46494
  const distBase = join(projectRoot, "dist");
46484
46495
  if (!existsSync(distBase)) throw new Error(`Build output missing at ${distBase}. Run keystroke build before emitting the route manifest.`);
@@ -46705,7 +46716,7 @@ async function buildStoredRouteManifestForProject(projectRoot, options) {
46705
46716
  manifest.push({
46706
46717
  kind: "cron-schedule",
46707
46718
  attachmentId: triggerSlug,
46708
- attachmentIds: group.map((attachment) => attachment.slug),
46719
+ attachmentIds: triggerManifestAttachments(group),
46709
46720
  moduleFile,
46710
46721
  ...sourceHash ? { sourceHash } : {},
46711
46722
  schedule: source.schedule,
@@ -46723,7 +46734,7 @@ async function buildStoredRouteManifestForProject(projectRoot, options) {
46723
46734
  manifest.push({
46724
46735
  kind: "trigger-poll",
46725
46736
  attachmentId: groupId,
46726
- attachmentIds: group.map((attachment) => attachment.slug),
46737
+ attachmentIds: triggerManifestAttachments(group),
46727
46738
  moduleFile,
46728
46739
  ...sourceHash ? { sourceHash } : {},
46729
46740
  schedule: source.schedule,
@@ -46760,7 +46771,7 @@ async function buildStoredRouteManifestForProject(projectRoot, options) {
46760
46771
  manifest.push({
46761
46772
  kind: "trigger-webhook",
46762
46773
  endpoint: source.endpoint,
46763
- attachmentIds: group.map((row) => row.slug),
46774
+ attachmentIds: triggerManifestAttachments(group),
46764
46775
  moduleFile,
46765
46776
  ...sourceHash ? { sourceHash } : {},
46766
46777
  request: webhookMatchSchemaForBindings(bindings),
@@ -46786,6 +46797,6 @@ async function emitStoredRouteManifestForProject(projectRoot) {
46786
46797
  persistModularRouteManifest(projectRoot, await buildStoredRouteManifestForProject(projectRoot));
46787
46798
  }
46788
46799
  //#endregion
46789
- export { artifactIndexFromModules as $, serializeRouteManifest as A, validateProjectModules as B, isModularManifestEmitCacheHit as C, pollRouteFromSourceSlug as D, pollGroupRouteFromId as E, tryReadProjectManifest as F, webhookMatchSchemaForBindings as G, validateUniqueAttachmentSlugs as H, validateAttachmentTargets as I, workflowRouteFromKey as J, webhookRouteFromEndpoint as K, validateImportedTriggerAttachment as L, sha256File as M, splitStoredRouteManifest as N, projectActionsFingerprint as O, toStoredRouteManifest as P, withMcpReadClient as Q, validateImportedWorkflowDefinition as R, integrationPackagesFingerprint as S, pollGroupId as T, validateUniqueTriggerSourceSlugs as U, validateTriggerAttachments as V, webhookManifestAttachmentSchemasFromBindings as W, PublicHttpUrlError as X, attachmentSlugFromRecord as Y, assertPublicHttpUrl as Z, emitStoredRouteManifestForProject as _, configureTelemetry as _t, buildPollGroups as a, computeCallSiteIds as at, importTriggerAttachments as b, shutdownTelemetry as bt, collectAgentAppSlugs as c, discoverEntries as ct, countAgentCredentials as d, readKeystrokeIgnoreDirective as dt, collectArtifactModules as et, discoverAgentEntries as f, shouldSkipKeystrokeModuleFile as ft, discoverWorkflows as g, captureException as gt, discoverWorkflowEntries as h, alias as ht, agentRouteFromKey as i, classifyCall as it, sha256Bytes as j, schemaToJson as k, collectAgentToolSlugs as l, discoverModuleFileEntries as lt, discoverTriggerAttachments as m, walkTypeScriptFiles as mt, agentKeyForAttachment as n, moduleBlobRefsFromModules as nt, buildStoredRouteManifestForProject as o, diagnoseWorkflowSource as ot, discoverSkillManifestEntries as p, validateUniqueModuleKeys as pt, workflowKeyForAttachment as q, agentManifestEntry as r, packDirFromDisk as rt, buildStoredRouteManifestFromContext as s, locateWorkflow as st, actionsCatalogFingerprint as t, mapInParallelBatches as tt, contentHashForModule as u, entryIdFromFile as ut, hashDirectoryContents as v, event as vt, persistModularRouteManifest as w, importWorkflowDefinition as x, importAgentDefinition as y, flushTelemetry as yt, validatePollGroups as z };
46800
+ export { withMcpReadClient as $, serializeRouteManifest as A, validatePollGroups as B, isModularManifestEmitCacheHit as C, pollRouteFromSourceSlug as D, pollGroupRouteFromId as E, triggerManifestAttachments as F, webhookManifestAttachmentSchemasFromBindings as G, validateTriggerAttachments as H, tryReadProjectManifest as I, workflowKeyForAttachment as J, webhookMatchSchemaForBindings as K, validateAttachmentTargets as L, sha256File as M, splitStoredRouteManifest as N, projectActionsFingerprint as O, toStoredRouteManifest as P, assertPublicHttpUrl as Q, validateImportedTriggerAttachment as R, integrationPackagesFingerprint as S, pollGroupId as T, validateUniqueAttachmentSlugs as U, validateProjectModules as V, validateUniqueTriggerSourceSlugs as W, attachmentSlugFromRecord as X, workflowRouteFromKey as Y, PublicHttpUrlError as Z, emitStoredRouteManifestForProject as _, captureException as _t, buildPollGroups as a, classifyCall as at, importTriggerAttachments as b, flushTelemetry as bt, collectAgentAppSlugs as c, locateWorkflow as ct, countAgentCredentials as d, entryIdFromFile as dt, artifactIndexFromModules as et, discoverAgentEntries as f, readKeystrokeIgnoreDirective as ft, discoverWorkflows as g, alias as gt, discoverWorkflowEntries as h, walkTypeScriptFiles as ht, agentRouteFromKey as i, packDirFromDisk as it, sha256Bytes as j, schemaToJson as k, collectAgentToolSlugs as l, discoverEntries as lt, discoverTriggerAttachments as m, validateUniqueModuleKeys as mt, agentKeyForAttachment as n, mapInParallelBatches as nt, buildStoredRouteManifestForProject as o, computeCallSiteIds as ot, discoverSkillManifestEntries as p, shouldSkipKeystrokeModuleFile as pt, webhookRouteFromEndpoint as q, agentManifestEntry as r, moduleBlobRefsFromModules as rt, buildStoredRouteManifestFromContext as s, diagnoseWorkflowSource as st, actionsCatalogFingerprint as t, collectArtifactModules as tt, contentHashForModule as u, discoverModuleFileEntries as ut, hashDirectoryContents as v, configureTelemetry as vt, persistModularRouteManifest as w, importWorkflowDefinition as x, shutdownTelemetry as xt, importAgentDefinition as y, event as yt, validateImportedWorkflowDefinition as z };
46790
46801
 
46791
- //# sourceMappingURL=dist-DE0Y6ctP.mjs.map
46802
+ //# sourceMappingURL=dist-B8ZXKNXj.mjs.map