@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.
- package/dist/{dist-DE0Y6ctP.mjs → dist-B8ZXKNXj.mjs} +17 -6
- package/dist/{dist-DE0Y6ctP.mjs.map → dist-B8ZXKNXj.mjs.map} +1 -1
- package/dist/dist-Brtmx-yx.mjs +3 -0
- package/dist/{dist-DGYjDQkx.mjs → dist-C5ooQsTQ.mjs} +4 -4
- package/dist/{dist-DGYjDQkx.mjs.map → dist-C5ooQsTQ.mjs.map} +1 -1
- package/dist/dist-CPGQbDRC.mjs +4 -0
- package/dist/{dist-DaFb2eM_.mjs → dist-CnddVrzY.mjs} +49 -44
- package/dist/dist-CnddVrzY.mjs.map +1 -0
- package/dist/index.mjs +1 -1
- package/dist/{maybe-auto-update-B2T950BL.mjs → maybe-auto-update-28IpqxhP.mjs} +2 -2
- package/dist/{maybe-auto-update-B2T950BL.mjs.map → maybe-auto-update-28IpqxhP.mjs.map} +1 -1
- package/dist/{program-D15UmszI.mjs → program-Ckl_ELbL.mjs} +120 -55
- package/dist/program-Ckl_ELbL.mjs.map +1 -0
- package/dist/{run-package-manager-update-5Us7eEJy.mjs → run-package-manager-update-CcJWW5xj.mjs} +2 -2
- package/dist/{run-package-manager-update-5Us7eEJy.mjs.map → run-package-manager-update-CcJWW5xj.mjs.map} +1 -1
- package/dist/skills-bundle/_AGENTS.md +2 -2
- package/package.json +2 -2
- package/dist/dist-Bm8mJjD0.mjs +0 -4
- package/dist/dist-C1SO9rxP.mjs +0 -3
- package/dist/dist-DaFb2eM_.mjs.map +0 -1
- package/dist/program-D15UmszI.mjs.map +0 -1
|
@@ -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-
|
|
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
|
|
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
|
|
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
|
|
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 {
|
|
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-
|
|
46802
|
+
//# sourceMappingURL=dist-B8ZXKNXj.mjs.map
|