@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.
- package/dist/{dist-DS8gbyzx.mjs → dist-B8ZXKNXj.mjs} +18 -6
- package/dist/dist-B8ZXKNXj.mjs.map +1 -0
- package/dist/dist-Brtmx-yx.mjs +3 -0
- package/dist/{dist-DoHPZzrH.mjs → dist-C5ooQsTQ.mjs} +4 -4
- package/dist/{dist-DoHPZzrH.mjs.map → dist-C5ooQsTQ.mjs.map} +1 -1
- package/dist/dist-CPGQbDRC.mjs +4 -0
- package/dist/{dist-DeuNAZM1.mjs → dist-CnddVrzY.mjs} +50 -44
- package/dist/dist-CnddVrzY.mjs.map +1 -0
- package/dist/index.mjs +1 -1
- package/dist/{maybe-auto-update-BoJ046ks.mjs → maybe-auto-update-28IpqxhP.mjs} +2 -2
- package/dist/{maybe-auto-update-BoJ046ks.mjs.map → maybe-auto-update-28IpqxhP.mjs.map} +1 -1
- package/dist/{program-CHp0-LoQ.mjs → program-Ckl_ELbL.mjs} +120 -55
- package/dist/program-Ckl_ELbL.mjs.map +1 -0
- package/dist/{run-package-manager-update-CCvRXvyl.mjs → run-package-manager-update-CcJWW5xj.mjs} +2 -2
- package/dist/{run-package-manager-update-CCvRXvyl.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-BFgNzWan.mjs +0 -3
- package/dist/dist-DS8gbyzx.mjs.map +0 -1
- package/dist/dist-D_jn7u5p.mjs +0 -4
- package/dist/dist-DeuNAZM1.mjs.map +0 -1
- package/dist/program-CHp0-LoQ.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";
|
|
@@ -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
|
|
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
|
|
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
|
|
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 {
|
|
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-
|
|
46802
|
+
//# sourceMappingURL=dist-B8ZXKNXj.mjs.map
|