@keystrokehq/cli 0.1.168 → 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-DeuNAZM1.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";
@@ -2005,6 +2005,7 @@ function hasAppLayout(dir) {
2005
2005
  const dist = join(dir, "dist");
2006
2006
  return existsSync(join(src, "agents")) || existsSync(join(src, "skills")) || existsSync(join(src, "files")) || existsSync(join(dist, "agents")) || existsSync(join(dist, ".keystroke", "assets.mjs"));
2007
2007
  }
2008
+ string().trim().min(1).max(80).describe("Short UI label for this command (prefer 2–5 words)");
2008
2009
  const replaceEditSchema = object({
2009
2010
  oldText: string().describe("Exact text to replace. Must be unique in the file and must not overlap other edits in this call."),
2010
2011
  newText: string().describe("Replacement text")
@@ -46478,6 +46479,17 @@ async function discoverIntegrationActions(projectRoot, sourceFiles, options) {
46478
46479
  registry
46479
46480
  };
46480
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
+ }
46481
46493
  function resolveDistModuleDirs(projectRoot) {
46482
46494
  const distBase = join(projectRoot, "dist");
46483
46495
  if (!existsSync(distBase)) throw new Error(`Build output missing at ${distBase}. Run keystroke build before emitting the route manifest.`);
@@ -46704,7 +46716,7 @@ async function buildStoredRouteManifestForProject(projectRoot, options) {
46704
46716
  manifest.push({
46705
46717
  kind: "cron-schedule",
46706
46718
  attachmentId: triggerSlug,
46707
- attachmentIds: group.map((attachment) => attachment.slug),
46719
+ attachmentIds: triggerManifestAttachments(group),
46708
46720
  moduleFile,
46709
46721
  ...sourceHash ? { sourceHash } : {},
46710
46722
  schedule: source.schedule,
@@ -46722,7 +46734,7 @@ async function buildStoredRouteManifestForProject(projectRoot, options) {
46722
46734
  manifest.push({
46723
46735
  kind: "trigger-poll",
46724
46736
  attachmentId: groupId,
46725
- attachmentIds: group.map((attachment) => attachment.slug),
46737
+ attachmentIds: triggerManifestAttachments(group),
46726
46738
  moduleFile,
46727
46739
  ...sourceHash ? { sourceHash } : {},
46728
46740
  schedule: source.schedule,
@@ -46759,7 +46771,7 @@ async function buildStoredRouteManifestForProject(projectRoot, options) {
46759
46771
  manifest.push({
46760
46772
  kind: "trigger-webhook",
46761
46773
  endpoint: source.endpoint,
46762
- attachmentIds: group.map((row) => row.slug),
46774
+ attachmentIds: triggerManifestAttachments(group),
46763
46775
  moduleFile,
46764
46776
  ...sourceHash ? { sourceHash } : {},
46765
46777
  request: webhookMatchSchemaForBindings(bindings),
@@ -46785,6 +46797,6 @@ async function emitStoredRouteManifestForProject(projectRoot) {
46785
46797
  persistModularRouteManifest(projectRoot, await buildStoredRouteManifestForProject(projectRoot));
46786
46798
  }
46787
46799
  //#endregion
46788
- 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 };
46789
46801
 
46790
- //# sourceMappingURL=dist-DS8gbyzx.mjs.map
46802
+ //# sourceMappingURL=dist-B8ZXKNXj.mjs.map