@keystrokehq/cli 0.0.23 → 0.0.25
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/README.md +8 -0
- package/dist/{agent-manifest-Pg0aURo7.mjs → agent-manifest-UbtgIIhN.mjs} +1 -1
- package/dist/{agents-Ccw0IZCx.mjs → agents-B57hZo0M.mjs} +3 -3
- package/dist/{build-agents-DseUtzd4-DFh2e5Cn.mjs → build-agents-DseUtzd4-C6S-h9Gi.mjs} +1 -1
- package/dist/{build-progress-nYa14iBP.mjs → build-progress-O9f-4Z4D.mjs} +1 -1
- package/dist/{build.handler-ChqSwsT_.mjs → build.handler-Bd2x92wh.mjs} +2 -2
- package/dist/{credentials-CELZ0QHu.mjs → credentials-CJpJ5qmL.mjs} +4 -4
- package/dist/{current-deployment-workflow-CnzlDCBv.mjs → current-deployment-workflow-DupXGMGV.mjs} +3 -3
- package/dist/{deploy-Cn3jN7Rl.mjs → deploy-CPhSW3cB.mjs} +1 -1
- package/dist/{deploy-progress-Dlp9aBDW.mjs → deploy-progress-C1Y73QVM.mjs} +1 -1
- package/dist/{deploy.handler-BikVS9ER.mjs → deploy.handler-C_Wc90KP.mjs} +7 -7
- package/dist/{diff.handler-C3EWVBOj.mjs → diff.handler-jJEIJq41.mjs} +1 -1
- package/dist/{dist-Br4m3sFZ.mjs → dist-BGYSbs2V.mjs} +1 -1
- package/dist/{env.handler-BuFdzUoX.mjs → env.handler-BbH44f51.mjs} +1 -1
- package/dist/{init-6tGGTpYO.mjs → init-9PiVyCVi.mjs} +1 -1
- package/dist/{init.handler-Dcg9MOqx.mjs → init.handler-Cw-Wg5Fp.mjs} +1 -1
- package/dist/{inspect.handler-BN6p2hI_.mjs → inspect.handler-jtSz17z5.mjs} +1 -1
- package/dist/keystroke.mjs +9 -9
- package/dist/{list.handler-fcyAKTQe.mjs → list.handler-BapLGgXO.mjs} +2 -2
- package/dist/{list.handler-cK8Y-daR.mjs → list.handler-ClrceojF.mjs} +1 -1
- package/dist/{requirements.handler-ZZfHV6f0.mjs → requirements.handler-BXFoxG3f.mjs} +1 -1
- package/dist/{run-polling-3XOGl4hh.mjs → run-polling-DEO0A7ec.mjs} +1 -1
- package/dist/{run.handler-xeUVmlFk.mjs → run.handler-itMzf36_.mjs} +2 -2
- package/dist/{skill-installer-Cm9hF6OB.mjs → skill-installer-C-1et32n.mjs} +3 -3
- package/dist/{skills-sync.handler-09mDbx5q.mjs → skills-sync.handler-B_5dgdvs.mjs} +1 -1
- package/dist/{skills.command-DGIIIRX_.mjs → skills.command-DFpATWrm.mjs} +1 -1
- package/dist/{spinner-progress-BtEIJRX4.mjs → spinner-progress-lrKDs4YF.mjs} +1 -0
- package/dist/{sync-BlmgsC2W.mjs → sync-B1hBmhJM.mjs} +1 -1
- package/dist/{sync.handler-xVxeG-S0.mjs → sync.handler-B9Q_6jI8.mjs} +4 -4
- package/dist/{test-cuU0rf9C.mjs → test-BeSgMl0z.mjs} +1 -1
- package/dist/{test.handler-B_C-T_IM.mjs → test.handler-DxEIHSy2.mjs} +4 -4
- package/dist/{tool.handler-CmpzYYiC.mjs → tool.handler-CjjbaZJB.mjs} +4 -4
- package/dist/{upload.handler-81mbKHTY.mjs → upload.handler-ZSOVDEdc.mjs} +1 -1
- package/dist/{validate.handler-CWG5HyO3.mjs → validate.handler-zJIDu4gG.mjs} +2 -2
- package/dist/{workflow-build-CVG4DSCw.mjs → workflow-build-BIRjDduX.mjs} +2 -2
- package/dist/{workflows-eztTnue4.mjs → workflows--ulcsX9G.mjs} +9 -9
- package/package.json +8 -8
package/README.md
CHANGED
|
@@ -46,6 +46,14 @@ keystroke deploy
|
|
|
46
46
|
|
|
47
47
|
Most project commands auto-discover `keystroke.config.ts` from the current working directory. Pass `--path <dir>` when you want to run against another project directory.
|
|
48
48
|
|
|
49
|
+
## Command Guidelines
|
|
50
|
+
|
|
51
|
+
- Keep command modules focused on CLI parsing, user interaction, and orchestration.
|
|
52
|
+
- Move reusable logic into packages instead of hiding it in CLI commands.
|
|
53
|
+
- Validate inputs at command boundaries and prefer shared schemas when contracts cross package boundaries.
|
|
54
|
+
- Keep command output predictable and script-friendly; use explicit `console.info`, `console.warn`, or `console.error`.
|
|
55
|
+
- Do not introduce root barrel imports or package boundary violations to make CLI wiring convenient.
|
|
56
|
+
|
|
49
57
|
## Authentication
|
|
50
58
|
|
|
51
59
|
Start the device flow:
|
|
@@ -35,7 +35,7 @@ const CredentialSetProxyConfigSchema = z.object({
|
|
|
35
35
|
hostPatterns: z.array(z.string().min(1)).optional(),
|
|
36
36
|
injection: CredentialSetProxyInjectionSchema.optional()
|
|
37
37
|
});
|
|
38
|
-
const CredentialDefinitionIdSchema = z.string().trim().min(1).max(255).refine((value) => /^[a-zA-Z0-9_
|
|
38
|
+
const CredentialDefinitionIdSchema = z.string().trim().min(1).max(255).refine((value) => /^[a-zA-Z0-9_:-]+$/.test(value), { error: "resolvedId must be a valid credential definition id (e.g. \"slack\" or \"keystroke:slack\")" });
|
|
39
39
|
const McpTransportSchema = z.discriminatedUnion("type", [
|
|
40
40
|
z.object({
|
|
41
41
|
type: z.literal("stdio"),
|
|
@@ -4,10 +4,10 @@ import { a as ui, j as throwReportedCliExit, n as style, t as ANSI, y as toError
|
|
|
4
4
|
import { i as projects } from "./dist-D_KgdxW5.mjs";
|
|
5
5
|
import { i as writeJson, n as JsonOptionSchema, t as JSON_OPTION_CONFIG } from "./output-BWcVRt-T.mjs";
|
|
6
6
|
import { t as createTypedCommand } from "./commander-BTMzBiLq.mjs";
|
|
7
|
-
import { i as readAgentManifestsFromOutDir } from "./dist-
|
|
7
|
+
import { i as readAgentManifestsFromOutDir } from "./dist-BGYSbs2V.mjs";
|
|
8
8
|
import { t as requireWorkflowsDir } from "./resolve-project-DJJZIOmu.mjs";
|
|
9
|
-
import { t as createSpinnerProgress } from "./spinner-progress-
|
|
10
|
-
import { a as runWorkflowBuild, n as renderBuildFailure } from "./workflow-build-
|
|
9
|
+
import { t as createSpinnerProgress } from "./spinner-progress-lrKDs4YF.mjs";
|
|
10
|
+
import { a as runWorkflowBuild, n as renderBuildFailure } from "./workflow-build-BIRjDduX.mjs";
|
|
11
11
|
import { i as resolveTypeHint } from "./schema-display-XrRCdFL0.mjs";
|
|
12
12
|
import { z } from "zod";
|
|
13
13
|
//#region src/commands/agents/inspect-display.ts
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
3
|
import { n as readOptionalJsonSchemaKeys, t as manifestToDeclaredCredentialRequirement } from "./declared-credential-requirements-B6h4WRv4.mjs";
|
|
4
|
-
import { t as AgentVersionManifestSchema } from "./agent-manifest-
|
|
4
|
+
import { t as AgentVersionManifestSchema } from "./agent-manifest-UbtgIIhN.mjs";
|
|
5
5
|
import { i as createAgentSandboxPackage, n as AGENT_VM_PI_SKILLS_ROOT, r as AGENT_VM_TOOLS_RUNTIME_RELATIVE_PATH, t as AGENT_VM_HOST_CALL_RELATIVE_PATH } from "./agent-bundle-package-DWV6B_5q-B-qzc3zC.mjs";
|
|
6
6
|
import { t as readCredentialKeysFromSchemaObject } from "./read-credential-keys-77a91T8M-aLuQvlIq.mjs";
|
|
7
7
|
import { t as bundleSandboxAgentTarget } from "./workflow-bundler-BzHk73PM-xQwAF08W.mjs";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
3
|
import { P as logger } from "./keystroke.mjs";
|
|
4
|
-
import { n as formatProgressDuration, t as createSpinnerProgress } from "./spinner-progress-
|
|
4
|
+
import { n as formatProgressDuration, t as createSpinnerProgress } from "./spinner-progress-lrKDs4YF.mjs";
|
|
5
5
|
//#region src/lib/build-progress.ts
|
|
6
6
|
const NEW_STAGE_LABELS = {
|
|
7
7
|
start: "Starting build",
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
import { D as CliExitError } from "./keystroke.mjs";
|
|
4
4
|
import { i as projects } from "./dist-D_KgdxW5.mjs";
|
|
5
5
|
import { t as requireWorkflowsDir } from "./resolve-project-DJJZIOmu.mjs";
|
|
6
|
-
import { a as runWorkflowBuild, i as renderBuildSummary, n as renderBuildFailure, r as renderBuildHeader } from "./workflow-build-
|
|
7
|
-
import { t as createBuildProgress } from "./build-progress-
|
|
6
|
+
import { a as runWorkflowBuild, i as renderBuildSummary, n as renderBuildFailure, r as renderBuildHeader } from "./workflow-build-BIRjDduX.mjs";
|
|
7
|
+
import { t as createBuildProgress } from "./build-progress-O9f-4Z4D.mjs";
|
|
8
8
|
import { t as withErrorBoundary } from "./error-boundary-DVZipk-A.mjs";
|
|
9
9
|
//#region src/commands/workflows/build.handler.ts
|
|
10
10
|
async function handleWorkflowsBuild(options, _ctx) {
|
|
@@ -46,7 +46,7 @@ function createCredentialsListCommand() {
|
|
|
46
46
|
description: "List credential sets on the server",
|
|
47
47
|
schema: ListOptionsSchema,
|
|
48
48
|
optionsConfig: LIST_OPTIONS_CONFIG,
|
|
49
|
-
loadHandler: async () => (await import("./list.handler-
|
|
49
|
+
loadHandler: async () => (await import("./list.handler-ClrceojF.mjs")).handleCredentialsList
|
|
50
50
|
});
|
|
51
51
|
}
|
|
52
52
|
//#endregion
|
|
@@ -65,7 +65,7 @@ function createCredentialsRequirementsCommand() {
|
|
|
65
65
|
description: "Show what credentials built workflows need (keys, KEYSTROKE_* env names, workflows) — from dist manifests, no API call",
|
|
66
66
|
schema: RequirementsOptionsSchema,
|
|
67
67
|
optionsConfig: REQUIREMENTS_OPTIONS_CONFIG,
|
|
68
|
-
loadHandler: async () => (await import("./requirements.handler-
|
|
68
|
+
loadHandler: async () => (await import("./requirements.handler-BXFoxG3f.mjs")).handleCredentialsRequirements
|
|
69
69
|
});
|
|
70
70
|
}
|
|
71
71
|
//#endregion
|
|
@@ -126,7 +126,7 @@ function createCredentialsUploadCommand() {
|
|
|
126
126
|
description: "Upload credentials from env vars to the server. Default: reads requirements from built workflow manifests. Use --integration for an official integration or --credential-set + --keys for a custom explicit upload.",
|
|
127
127
|
schema: UploadOptionsSchema,
|
|
128
128
|
optionsConfig: UPLOAD_OPTIONS_CONFIG,
|
|
129
|
-
loadHandler: async () => (await import("./upload.handler-
|
|
129
|
+
loadHandler: async () => (await import("./upload.handler-ZSOVDEdc.mjs")).handleCredentialsUpload
|
|
130
130
|
});
|
|
131
131
|
}
|
|
132
132
|
//#endregion
|
|
@@ -157,7 +157,7 @@ function createCredentialsCommand() {
|
|
|
157
157
|
}
|
|
158
158
|
},
|
|
159
159
|
handler: async (opts, ctx) => {
|
|
160
|
-
const { handleCredentialsList } = await import("./list.handler-
|
|
160
|
+
const { handleCredentialsList } = await import("./list.handler-ClrceojF.mjs");
|
|
161
161
|
await handleCredentialsList({
|
|
162
162
|
...opts,
|
|
163
163
|
scope: void 0,
|
package/dist/{current-deployment-workflow-CnzlDCBv.mjs → current-deployment-workflow-DupXGMGV.mjs}
RENAMED
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
import { A as WorkflowResolutionError, a as ui, g as getHttpStatus, h as getApiErrorCode } from "./keystroke.mjs";
|
|
4
4
|
import { t as assertWorkflowProjectRoot } from "./project-config-DudGRFPO.mjs";
|
|
5
|
-
import { a as readManifestsFromOutDir } from "./dist-
|
|
5
|
+
import { a as readManifestsFromOutDir } from "./dist-BGYSbs2V.mjs";
|
|
6
6
|
import { t as requireWorkflowsDir } from "./resolve-project-DJJZIOmu.mjs";
|
|
7
|
-
import { t as createSpinnerProgress } from "./spinner-progress-
|
|
8
|
-
import { a as runWorkflowBuild, n as renderBuildFailure } from "./workflow-build-
|
|
7
|
+
import { t as createSpinnerProgress } from "./spinner-progress-lrKDs4YF.mjs";
|
|
8
|
+
import { a as runWorkflowBuild, n as renderBuildFailure } from "./workflow-build-BIRjDduX.mjs";
|
|
9
9
|
//#region src/commands/workflows/_shared/current-deployment-workflow.ts
|
|
10
10
|
/**
|
|
11
11
|
* Lightweight resolution: gets projectId from keystroke.config.ts and authoredWorkflowId
|
|
@@ -64,7 +64,7 @@ function createDeployCommand() {
|
|
|
64
64
|
schema: DeployOptionsSchema,
|
|
65
65
|
optionsConfig: DEPLOY_OPTIONS_CONFIG,
|
|
66
66
|
contextMode: "auth",
|
|
67
|
-
loadHandler: async () => (await import("./deploy.handler-
|
|
67
|
+
loadHandler: async () => (await import("./deploy.handler-C_Wc90KP.mjs")).handleDeploy
|
|
68
68
|
});
|
|
69
69
|
cmd.enablePositionalOptions();
|
|
70
70
|
cmd.passThroughOptions();
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
3
|
import { a as ui } from "./keystroke.mjs";
|
|
4
|
-
import { t as createSpinnerProgress } from "./spinner-progress-
|
|
4
|
+
import { t as createSpinnerProgress } from "./spinner-progress-lrKDs4YF.mjs";
|
|
5
5
|
//#region src/lib/deploy-progress.ts
|
|
6
6
|
function renderItemFailure(event, kind, spinner) {
|
|
7
7
|
if (event.result === "failure") spinner.fail(`${kind} failed (${event.name})`, void 0, event.error);
|
|
@@ -4,13 +4,13 @@ import { D as CliExitError, P as logger, a as ui, l as isLocalMode, n as style,
|
|
|
4
4
|
import { i as projects } from "./dist-D_KgdxW5.mjs";
|
|
5
5
|
import { t as assertWorkflowProjectRoot } from "./project-config-DudGRFPO.mjs";
|
|
6
6
|
import { r as requireAuthOptions, t as assertProjectConfigMatchesAuthenticatedOrg } from "./context-DHOTSgPb.mjs";
|
|
7
|
-
import { i as readAgentManifestsFromOutDir, o as readWorkflowsFromDisk } from "./dist-
|
|
7
|
+
import { i as readAgentManifestsFromOutDir, o as readWorkflowsFromDisk } from "./dist-BGYSbs2V.mjs";
|
|
8
8
|
import { t as requireWorkflowsDir } from "./resolve-project-DJJZIOmu.mjs";
|
|
9
|
-
import { n as renderBuildFailure, r as renderBuildHeader } from "./workflow-build-
|
|
10
|
-
import { t as createBuildProgress } from "./build-progress-
|
|
11
|
-
import { t as createDeployProgress } from "./deploy-progress-
|
|
9
|
+
import { n as renderBuildFailure, r as renderBuildHeader } from "./workflow-build-BIRjDduX.mjs";
|
|
10
|
+
import { t as createBuildProgress } from "./build-progress-O9f-4Z4D.mjs";
|
|
11
|
+
import { t as createDeployProgress } from "./deploy-progress-C1Y73QVM.mjs";
|
|
12
12
|
import { t as withErrorBoundary } from "./error-boundary-DVZipk-A.mjs";
|
|
13
|
-
import { t as lookupCurrentDeploymentWorkflow } from "./current-deployment-workflow-
|
|
13
|
+
import { t as lookupCurrentDeploymentWorkflow } from "./current-deployment-workflow-DupXGMGV.mjs";
|
|
14
14
|
import { t as computeWorkflowDiff } from "./diff-utils-CXKNQUXO.mjs";
|
|
15
15
|
import path from "node:path";
|
|
16
16
|
import { access } from "node:fs/promises";
|
|
@@ -198,7 +198,7 @@ async function handleDeploy(options, ctx) {
|
|
|
198
198
|
let outDir;
|
|
199
199
|
let artifactFilter;
|
|
200
200
|
try {
|
|
201
|
-
const { runWorkflowBuild } = await import("./workflow-build-
|
|
201
|
+
const { runWorkflowBuild } = await import("./workflow-build-BIRjDduX.mjs").then((n) => n.o);
|
|
202
202
|
const buildOutcome = await runWorkflowBuild({
|
|
203
203
|
workflowsDir,
|
|
204
204
|
verbose: options.verbose,
|
|
@@ -233,7 +233,7 @@ async function handleDeploy(options, ctx) {
|
|
|
233
233
|
const progress = createDeployProgress();
|
|
234
234
|
let result;
|
|
235
235
|
try {
|
|
236
|
-
result = await (deployHandlerDependencies.deployFromDir ?? (await import("./dist-
|
|
236
|
+
result = await (deployHandlerDependencies.deployFromDir ?? (await import("./dist-BGYSbs2V.mjs").then((n) => n.r)).deployFromDir)({
|
|
237
237
|
outDir,
|
|
238
238
|
workflowsDir,
|
|
239
239
|
client,
|
|
@@ -4,7 +4,7 @@ import { D as CliExitError, a as ui, j as throwReportedCliExit, y as toErrorMess
|
|
|
4
4
|
import { i as projects } from "./dist-D_KgdxW5.mjs";
|
|
5
5
|
import { i as writeJson } from "./output-BWcVRt-T.mjs";
|
|
6
6
|
import { i as requireClient, t as assertProjectConfigMatchesAuthenticatedOrg } from "./context-DHOTSgPb.mjs";
|
|
7
|
-
import { n as resolveLocalWorkflowManifest, t as lookupCurrentDeploymentWorkflow } from "./current-deployment-workflow-
|
|
7
|
+
import { n as resolveLocalWorkflowManifest, t as lookupCurrentDeploymentWorkflow } from "./current-deployment-workflow-DupXGMGV.mjs";
|
|
8
8
|
import { n as renderDiff, t as computeWorkflowDiff } from "./diff-utils-CXKNQUXO.mjs";
|
|
9
9
|
//#region src/commands/workflows/diff/diff.handler.ts
|
|
10
10
|
async function handleWorkflowsDiff(options, ctx) {
|
|
@@ -5,7 +5,7 @@ import { t as assertWorkflowProjectRoot } from "./project-config-DudGRFPO.mjs";
|
|
|
5
5
|
import { n as SHA256HashSchema } from "./common-AK0q0Oz0.mjs";
|
|
6
6
|
import { f as collectCredentialRequirementEntries, u as TriggerUploadDataSchema } from "./credential-requirements-D0mavK8j-CFMf0Xwu.mjs";
|
|
7
7
|
import { a as FlowGraphSchema, r as WorkflowBuildManifestSchema } from "./workflow-build-manifest-1sC52TIG.mjs";
|
|
8
|
-
import { t as AgentVersionManifestSchema } from "./agent-manifest-
|
|
8
|
+
import { t as AgentVersionManifestSchema } from "./agent-manifest-UbtgIIhN.mjs";
|
|
9
9
|
import { n as TaskBuildManifestSchema } from "./task-BWuIKWh4.mjs";
|
|
10
10
|
import { n as FileMetadataSchema } from "./file-metadata-DQVDjr7M.mjs";
|
|
11
11
|
import { t as computeProjectSnapshotHash } from "./task-target-deploy-dQYnMO8n-d2vdeqXH.mjs";
|
|
@@ -5,7 +5,7 @@ import { i as projects } from "./dist-D_KgdxW5.mjs";
|
|
|
5
5
|
import { i as writeJson } from "./output-BWcVRt-T.mjs";
|
|
6
6
|
import { i as requireClient } from "./context-DHOTSgPb.mjs";
|
|
7
7
|
import { n as CredentialConnectionIdSchema, r as CredentialScopeSchema, t as ConnectionStatusSchema } from "./schema-DFJiNWyd.mjs";
|
|
8
|
-
import { a as readManifestsFromOutDir } from "./dist-
|
|
8
|
+
import { a as readManifestsFromOutDir } from "./dist-BGYSbs2V.mjs";
|
|
9
9
|
import { t as requireWorkflowsDir } from "./resolve-project-DJJZIOmu.mjs";
|
|
10
10
|
import { t as getIntegrationCatalog } from "./integration-catalog-Cub_7xCw.mjs";
|
|
11
11
|
import { t as groupCredentialRequirements } from "./credentials-DQW8xxof.mjs";
|
|
@@ -45,7 +45,7 @@ function createInitCommand() {
|
|
|
45
45
|
description: "Initialize a Keystroke project (creates keystroke.config.ts)",
|
|
46
46
|
schema: InitOptionsSchema,
|
|
47
47
|
optionsConfig: INIT_OPTIONS_CONFIG,
|
|
48
|
-
loadHandler: async () => (await import("./init.handler-
|
|
48
|
+
loadHandler: async () => (await import("./init.handler-Cw-Wg5Fp.mjs")).handleInit
|
|
49
49
|
});
|
|
50
50
|
}
|
|
51
51
|
//#endregion
|
|
@@ -4,7 +4,7 @@ import { D as CliExitError, a as ui, i as fetchLatestNpmPackageVersion } from ".
|
|
|
4
4
|
import { i as projects } from "./dist-D_KgdxW5.mjs";
|
|
5
5
|
import { a as writeProjectConfig, i as readProjectConfig, r as getProjectConfigPath } from "./project-config-DudGRFPO.mjs";
|
|
6
6
|
import { i as requireClient } from "./context-DHOTSgPb.mjs";
|
|
7
|
-
import { i as UnknownSkillAgentError, n as resolveSkillInstallChoices, r as installKeystrokeAgentSkills, t as summarizeSkillInstall } from "./skill-installer-
|
|
7
|
+
import { i as UnknownSkillAgentError, n as resolveSkillInstallChoices, r as installKeystrokeAgentSkills, t as summarizeSkillInstall } from "./skill-installer-C-1et32n.mjs";
|
|
8
8
|
import { createRequire } from "node:module";
|
|
9
9
|
import path from "node:path";
|
|
10
10
|
import { access, mkdir, readFile, writeFile } from "node:fs/promises";
|
|
@@ -5,7 +5,7 @@ import { i as projects } from "./dist-D_KgdxW5.mjs";
|
|
|
5
5
|
import { i as writeJson } from "./output-BWcVRt-T.mjs";
|
|
6
6
|
import { i as requireClient, t as assertProjectConfigMatchesAuthenticatedOrg } from "./context-DHOTSgPb.mjs";
|
|
7
7
|
import { i as resolveTypeHint } from "./schema-display-XrRCdFL0.mjs";
|
|
8
|
-
import { n as resolveLocalWorkflowManifest, r as resolveProjectContext, t as lookupCurrentDeploymentWorkflow } from "./current-deployment-workflow-
|
|
8
|
+
import { n as resolveLocalWorkflowManifest, r as resolveProjectContext, t as lookupCurrentDeploymentWorkflow } from "./current-deployment-workflow-DupXGMGV.mjs";
|
|
9
9
|
import dayjs from "dayjs";
|
|
10
10
|
//#region src/commands/workflows/inspect/inspect-display.ts
|
|
11
11
|
function formatBuildTimestamp(iso) {
|
package/dist/keystroke.mjs
CHANGED
|
@@ -521,7 +521,7 @@ const logger = {
|
|
|
521
521
|
};
|
|
522
522
|
//#endregion
|
|
523
523
|
//#region package.json
|
|
524
|
-
var version = "0.0.
|
|
524
|
+
var version = "0.0.25";
|
|
525
525
|
//#endregion
|
|
526
526
|
//#region src/command-registry.ts
|
|
527
527
|
const ROOT_OPTIONS_WITH_VALUES$1 = new Set([
|
|
@@ -533,7 +533,7 @@ const ROOT_VERSION_FLAGS = new Set(["-V", "--version"]);
|
|
|
533
533
|
const lazyCommandDefinitions = [
|
|
534
534
|
{
|
|
535
535
|
name: "agents",
|
|
536
|
-
loadCommand: async () => (await import("./agents-
|
|
536
|
+
loadCommand: async () => (await import("./agents-B57hZo0M.mjs")).createAgentsCommand()
|
|
537
537
|
},
|
|
538
538
|
{
|
|
539
539
|
name: "admin",
|
|
@@ -553,7 +553,7 @@ const lazyCommandDefinitions = [
|
|
|
553
553
|
},
|
|
554
554
|
{
|
|
555
555
|
name: "credentials",
|
|
556
|
-
loadCommand: async () => (await import("./credentials-
|
|
556
|
+
loadCommand: async () => (await import("./credentials-CJpJ5qmL.mjs")).createCredentialsCommand(),
|
|
557
557
|
copyInheritedSettings: true
|
|
558
558
|
},
|
|
559
559
|
{
|
|
@@ -562,11 +562,11 @@ const lazyCommandDefinitions = [
|
|
|
562
562
|
},
|
|
563
563
|
{
|
|
564
564
|
name: "deploy",
|
|
565
|
-
loadCommand: async () => (await import("./deploy-
|
|
565
|
+
loadCommand: async () => (await import("./deploy-CPhSW3cB.mjs")).createDeployCommand()
|
|
566
566
|
},
|
|
567
567
|
{
|
|
568
568
|
name: "init",
|
|
569
|
-
loadCommand: async () => (await import("./init-
|
|
569
|
+
loadCommand: async () => (await import("./init-9PiVyCVi.mjs")).createInitCommand()
|
|
570
570
|
},
|
|
571
571
|
{
|
|
572
572
|
name: "integrations",
|
|
@@ -594,15 +594,15 @@ const lazyCommandDefinitions = [
|
|
|
594
594
|
},
|
|
595
595
|
{
|
|
596
596
|
name: "skills",
|
|
597
|
-
loadCommand: async () => (await import("./skills.command-
|
|
597
|
+
loadCommand: async () => (await import("./skills.command-DFpATWrm.mjs")).createSkillsCommand()
|
|
598
598
|
},
|
|
599
599
|
{
|
|
600
600
|
name: "sync",
|
|
601
|
-
loadCommand: async () => (await import("./sync-
|
|
601
|
+
loadCommand: async () => (await import("./sync-B1hBmhJM.mjs")).createSyncCommand()
|
|
602
602
|
},
|
|
603
603
|
{
|
|
604
604
|
name: "test",
|
|
605
|
-
loadCommand: async () => (await import("./test-
|
|
605
|
+
loadCommand: async () => (await import("./test-BeSgMl0z.mjs")).createTestCommand()
|
|
606
606
|
},
|
|
607
607
|
{
|
|
608
608
|
name: "upgrade",
|
|
@@ -610,7 +610,7 @@ const lazyCommandDefinitions = [
|
|
|
610
610
|
},
|
|
611
611
|
{
|
|
612
612
|
name: "workflows",
|
|
613
|
-
loadCommand: async () => (await import("./workflows
|
|
613
|
+
loadCommand: async () => (await import("./workflows--ulcsX9G.mjs")).createWorkflowsCommand()
|
|
614
614
|
}
|
|
615
615
|
];
|
|
616
616
|
function selectCommandRegistration(argv, commandNames = new Set(lazyCommandDefinitions.map((definition) => definition.name))) {
|
|
@@ -4,8 +4,8 @@ import { a as ui, j as throwReportedCliExit, n as style, t as ANSI } from "./key
|
|
|
4
4
|
import { i as projects } from "./dist-D_KgdxW5.mjs";
|
|
5
5
|
import { i as writeJson } from "./output-BWcVRt-T.mjs";
|
|
6
6
|
import { t as requireWorkflowsDir } from "./resolve-project-DJJZIOmu.mjs";
|
|
7
|
-
import { t as createSpinnerProgress } from "./spinner-progress-
|
|
8
|
-
import { a as runWorkflowBuild, n as renderBuildFailure } from "./workflow-build-
|
|
7
|
+
import { t as createSpinnerProgress } from "./spinner-progress-lrKDs4YF.mjs";
|
|
8
|
+
import { a as runWorkflowBuild, n as renderBuildFailure } from "./workflow-build-BIRjDduX.mjs";
|
|
9
9
|
//#region src/commands/workflows/list.handler.ts
|
|
10
10
|
function formatWorkflow(artifact) {
|
|
11
11
|
const name = style(artifact.manifest.name, `${ANSI.bold}${ANSI.cyan}`);
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
import { a as ui, c as getProcessEnv, j as throwReportedCliExit } from "./keystroke.mjs";
|
|
4
4
|
import { i as writeJson } from "./output-BWcVRt-T.mjs";
|
|
5
5
|
import { i as requireClient } from "./context-DHOTSgPb.mjs";
|
|
6
|
-
import { a as readManifestsFromOutDir } from "./dist-
|
|
6
|
+
import { a as readManifestsFromOutDir } from "./dist-BGYSbs2V.mjs";
|
|
7
7
|
import { n as resolveWorkflowsDir } from "./resolve-project-DJJZIOmu.mjs";
|
|
8
8
|
import { t as readCredentialEnvMap } from "./credential-env-map-CtmzNkwU.mjs";
|
|
9
9
|
import { a as loadProjectDotenvFile, i as enrichServerCredentialRow, l as renderCredentialListBlocks, n as buildSyntheticNotOnServerRows, r as collectMergedManifestGroups, t as buildCredentialWorkflowConsumersByGroup } from "./list-enrichment-CCRHYslm.mjs";
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
import { a as ui, c as getProcessEnv, n as style, t as ANSI } from "./keystroke.mjs";
|
|
4
4
|
import { i as writeJson } from "./output-BWcVRt-T.mjs";
|
|
5
|
-
import { a as readManifestsFromOutDir } from "./dist-
|
|
5
|
+
import { a as readManifestsFromOutDir } from "./dist-BGYSbs2V.mjs";
|
|
6
6
|
import { t as requireWorkflowsDir } from "./resolve-project-DJJZIOmu.mjs";
|
|
7
7
|
import { t as readCredentialEnvMap } from "./credential-env-map-CtmzNkwU.mjs";
|
|
8
8
|
import { a as loadProjectDotenvFile, c as getTerminalContentWidth, o as manifestGroupKey, s as normalizeManifestScopeToServer, t as buildCredentialWorkflowConsumersByGroup, u as truncateWithEllipsis } from "./list-enrichment-CCRHYslm.mjs";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
3
|
import { O as InputValidationError, a as ui, y as toErrorMessage } from "./keystroke.mjs";
|
|
4
|
-
import { a as readManifestsFromOutDir } from "./dist-
|
|
4
|
+
import { a as readManifestsFromOutDir } from "./dist-BGYSbs2V.mjs";
|
|
5
5
|
import { a as validateRequiredFields, n as formatValidationError, t as formatMissingInputError } from "./schema-display-XrRCdFL0.mjs";
|
|
6
6
|
import { n as sleep, t as TERMINAL_STATUSES } from "./run-polling-DKWPGLyF.mjs";
|
|
7
7
|
import * as path$1 from "node:path";
|
|
@@ -6,8 +6,8 @@ import { t as assertWorkflowProjectRoot } from "./project-config-DudGRFPO.mjs";
|
|
|
6
6
|
import { i as writeJson } from "./output-BWcVRt-T.mjs";
|
|
7
7
|
import { i as requireClient, t as assertProjectConfigMatchesAuthenticatedOrg } from "./context-DHOTSgPb.mjs";
|
|
8
8
|
import { n as resolveWorkflowsDir } from "./resolve-project-DJJZIOmu.mjs";
|
|
9
|
-
import { t as lookupCurrentDeploymentWorkflow } from "./current-deployment-workflow-
|
|
10
|
-
import { i as resolveWorkflowGlobals, o as validateInputOrExit, r as resolveRunInput, s as validateWorkflowGlobalsOrExit, t as pollForCompletion } from "./run-polling-
|
|
9
|
+
import { t as lookupCurrentDeploymentWorkflow } from "./current-deployment-workflow-DupXGMGV.mjs";
|
|
10
|
+
import { i as resolveWorkflowGlobals, o as validateInputOrExit, r as resolveRunInput, s as validateWorkflowGlobalsOrExit, t as pollForCompletion } from "./run-polling-DEO0A7ec.mjs";
|
|
11
11
|
//#region src/commands/workflows/run.handler.ts
|
|
12
12
|
async function handleWorkflowsRun(options, ctx) {
|
|
13
13
|
const client = requireClient(ctx);
|
|
@@ -8,7 +8,7 @@ import { fileURLToPath } from "node:url";
|
|
|
8
8
|
import { autocompleteMultiselect, cancel, isCancel, select } from "@clack/prompts";
|
|
9
9
|
//#region src/lib/skill-installer/package.ts
|
|
10
10
|
const SKILLS_PACKAGE_CONTENT_DIR = "src";
|
|
11
|
-
const AGENTS_PACKAGE_PATH = "src/
|
|
11
|
+
const AGENTS_PACKAGE_PATH = "src/_AGENTS.md";
|
|
12
12
|
async function resolveKeystrokeSkillsPackageRoot() {
|
|
13
13
|
try {
|
|
14
14
|
const require = createRequire(import.meta.url);
|
|
@@ -40,7 +40,7 @@ function normalizeGuidanceBlurb(value) {
|
|
|
40
40
|
return `${normalizeLineEndings$1(value).trim()}\n`;
|
|
41
41
|
}
|
|
42
42
|
function resolveMonorepoSkillsBlurbPath() {
|
|
43
|
-
return fileURLToPath(new URL("../../../../../packages/skills/src/
|
|
43
|
+
return fileURLToPath(new URL("../../../../../packages/skills/src/_AGENTS.md", import.meta.url));
|
|
44
44
|
}
|
|
45
45
|
function resolveCliPackageSkillsBlurbPath() {
|
|
46
46
|
const relativePath = import.meta.url.includes("/dist/") ? "../AGENTS-blurb.md" : "../../../AGENTS-blurb.md";
|
|
@@ -61,7 +61,7 @@ async function loadKeystrokeAgentsBlurb() {
|
|
|
61
61
|
try {
|
|
62
62
|
return normalizeGuidanceBlurb(await readFile(resolveBundledKeystrokeAgentsBlurbPath(), "utf-8"));
|
|
63
63
|
} catch (error) {
|
|
64
|
-
throw new CliExitError("Could not load the bundled Keystroke AGENTS.md content. Reinstall the CLI or republish @keystrokehq/cli with @keystrokehq/skills/src/
|
|
64
|
+
throw new CliExitError("Could not load the bundled Keystroke AGENTS.md content. Reinstall the CLI or republish @keystrokehq/cli with @keystrokehq/skills/src/_AGENTS.md.", { cause: error });
|
|
65
65
|
}
|
|
66
66
|
}
|
|
67
67
|
//#endregion
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
import { D as CliExitError, a as ui } from "./keystroke.mjs";
|
|
4
4
|
import { i as writeJson, r as isJsonMode } from "./output-BWcVRt-T.mjs";
|
|
5
|
-
import { i as UnknownSkillAgentError, n as resolveSkillInstallChoices, r as installKeystrokeAgentSkills, t as summarizeSkillInstall } from "./skill-installer-
|
|
5
|
+
import { i as UnknownSkillAgentError, n as resolveSkillInstallChoices, r as installKeystrokeAgentSkills, t as summarizeSkillInstall } from "./skill-installer-C-1et32n.mjs";
|
|
6
6
|
import path from "node:path";
|
|
7
7
|
//#region src/commands/skills/skills-sync.handler.ts
|
|
8
8
|
async function handleSkillsSync(options, _ctx) {
|
|
@@ -38,7 +38,7 @@ function createSkillsCommand() {
|
|
|
38
38
|
description: "Install bundled Keystroke skills into selected agent skill directories",
|
|
39
39
|
schema: SkillsCommandOptionsSchema,
|
|
40
40
|
optionsConfig: SKILLS_OPTIONS_CONFIG,
|
|
41
|
-
loadHandler: async () => (await import("./skills-sync.handler-
|
|
41
|
+
loadHandler: async () => (await import("./skills-sync.handler-B_5dgdvs.mjs")).handleSkillsSync
|
|
42
42
|
})]
|
|
43
43
|
});
|
|
44
44
|
cmd.enablePositionalOptions();
|
|
@@ -32,7 +32,7 @@ function createSyncCommand() {
|
|
|
32
32
|
description: "Sync local workflows with Keystroke",
|
|
33
33
|
schema: SyncOptionsSchema,
|
|
34
34
|
optionsConfig: SYNC_OPTIONS_CONFIG,
|
|
35
|
-
loadHandler: async () => (await import("./sync.handler-
|
|
35
|
+
loadHandler: async () => (await import("./sync.handler-B9Q_6jI8.mjs")).handleSync
|
|
36
36
|
});
|
|
37
37
|
}
|
|
38
38
|
//#endregion
|
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
import { P as logger, a as ui, j as throwReportedCliExit, l as isLocalMode, y as toErrorMessage } from "./keystroke.mjs";
|
|
4
4
|
import { i as projects } from "./dist-D_KgdxW5.mjs";
|
|
5
5
|
import { a as validateApiKey, i as requireClient } from "./context-DHOTSgPb.mjs";
|
|
6
|
-
import { n as deployFromDir } from "./dist-
|
|
6
|
+
import { n as deployFromDir } from "./dist-BGYSbs2V.mjs";
|
|
7
7
|
import { t as requireWorkflowsDir } from "./resolve-project-DJJZIOmu.mjs";
|
|
8
|
-
import { a as runWorkflowBuild, n as renderBuildFailure, r as renderBuildHeader } from "./workflow-build-
|
|
9
|
-
import { t as createBuildProgress } from "./build-progress-
|
|
10
|
-
import { t as createDeployProgress } from "./deploy-progress-
|
|
8
|
+
import { a as runWorkflowBuild, n as renderBuildFailure, r as renderBuildHeader } from "./workflow-build-BIRjDduX.mjs";
|
|
9
|
+
import { t as createBuildProgress } from "./build-progress-O9f-4Z4D.mjs";
|
|
10
|
+
import { t as createDeployProgress } from "./deploy-progress-C1Y73QVM.mjs";
|
|
11
11
|
//#region src/commands/sync/sync.handler.ts
|
|
12
12
|
async function handleSync(options, ctx) {
|
|
13
13
|
try {
|
|
@@ -63,7 +63,7 @@ function createTestCommand() {
|
|
|
63
63
|
description: "Agent tool name from the built manifest",
|
|
64
64
|
key: "toolName"
|
|
65
65
|
},
|
|
66
|
-
loadHandler: async () => (await import("./tool.handler-
|
|
66
|
+
loadHandler: async () => (await import("./tool.handler-CjjbaZJB.mjs")).handleTestTool
|
|
67
67
|
})]
|
|
68
68
|
});
|
|
69
69
|
cmd.enablePositionalOptions();
|
|
@@ -4,13 +4,13 @@ import { D as CliExitError, a as ui, l as isLocalMode, y as toErrorMessage } fro
|
|
|
4
4
|
import { i as projects } from "./dist-D_KgdxW5.mjs";
|
|
5
5
|
import { t as assertWorkflowProjectRoot } from "./project-config-DudGRFPO.mjs";
|
|
6
6
|
import { i as requireClient, t as assertProjectConfigMatchesAuthenticatedOrg } from "./context-DHOTSgPb.mjs";
|
|
7
|
-
import { o as readWorkflowsFromDisk, s as uploadTestBundle } from "./dist-
|
|
7
|
+
import { o as readWorkflowsFromDisk, s as uploadTestBundle } from "./dist-BGYSbs2V.mjs";
|
|
8
8
|
import { t as requireWorkflowsDir } from "./resolve-project-DJJZIOmu.mjs";
|
|
9
|
-
import { a as runWorkflowBuild, t as WorkflowNotFoundError } from "./workflow-build-
|
|
9
|
+
import { a as runWorkflowBuild, t as WorkflowNotFoundError } from "./workflow-build-BIRjDduX.mjs";
|
|
10
10
|
import { r as isUnknownSchema } from "./schema-display-XrRCdFL0.mjs";
|
|
11
|
-
import { t as createBuildProgress } from "./build-progress-
|
|
11
|
+
import { t as createBuildProgress } from "./build-progress-O9f-4Z4D.mjs";
|
|
12
12
|
import { t as withErrorBoundary } from "./error-boundary-DVZipk-A.mjs";
|
|
13
|
-
import { a as tryReadExistingInputSchema, n as resolveInput, o as validateInputOrExit, t as pollForCompletion } from "./run-polling-
|
|
13
|
+
import { a as tryReadExistingInputSchema, n as resolveInput, o as validateInputOrExit, t as pollForCompletion } from "./run-polling-DEO0A7ec.mjs";
|
|
14
14
|
//#region src/lib/format.ts
|
|
15
15
|
function formatBytes(bytes) {
|
|
16
16
|
if (bytes < 1024) return `${bytes} B`;
|
|
@@ -5,11 +5,11 @@ import { t as Credentials } from "./dist-D_KgdxW5.mjs";
|
|
|
5
5
|
import { t as assertWorkflowProjectRoot } from "./project-config-DudGRFPO.mjs";
|
|
6
6
|
import { i as writeJson } from "./output-BWcVRt-T.mjs";
|
|
7
7
|
import { i as requireClient, t as assertProjectConfigMatchesAuthenticatedOrg } from "./context-DHOTSgPb.mjs";
|
|
8
|
-
import { a as readManifestsFromOutDir } from "./dist-
|
|
8
|
+
import { a as readManifestsFromOutDir } from "./dist-BGYSbs2V.mjs";
|
|
9
9
|
import { t as requireWorkflowsDir } from "./resolve-project-DJJZIOmu.mjs";
|
|
10
|
-
import { a as runWorkflowBuild, n as renderBuildFailure } from "./workflow-build-
|
|
11
|
-
import { t as lookupCurrentDeploymentWorkflow } from "./current-deployment-workflow-
|
|
12
|
-
import { n as resolveInput, o as validateInputOrExit, t as pollForCompletion } from "./run-polling-
|
|
10
|
+
import { a as runWorkflowBuild, n as renderBuildFailure } from "./workflow-build-BIRjDduX.mjs";
|
|
11
|
+
import { t as lookupCurrentDeploymentWorkflow } from "./current-deployment-workflow-DupXGMGV.mjs";
|
|
12
|
+
import { n as resolveInput, o as validateInputOrExit, t as pollForCompletion } from "./run-polling-DEO0A7ec.mjs";
|
|
13
13
|
import * as os from "node:os";
|
|
14
14
|
import { tmpdir } from "node:os";
|
|
15
15
|
import * as path$1 from "node:path";
|
|
@@ -4,7 +4,7 @@ import { a as ui, c as getProcessEnv, j as throwReportedCliExit, y as toErrorMes
|
|
|
4
4
|
import { t as assertWorkflowProjectRoot } from "./project-config-DudGRFPO.mjs";
|
|
5
5
|
import { a as writeJsonError, i as writeJson } from "./output-BWcVRt-T.mjs";
|
|
6
6
|
import { i as requireClient } from "./context-DHOTSgPb.mjs";
|
|
7
|
-
import { a as readManifestsFromOutDir, t as collectCredentialFingerprintMapFromProjectDist } from "./dist-
|
|
7
|
+
import { a as readManifestsFromOutDir, t as collectCredentialFingerprintMapFromProjectDist } from "./dist-BGYSbs2V.mjs";
|
|
8
8
|
import { t as requireWorkflowsDir } from "./resolve-project-DJJZIOmu.mjs";
|
|
9
9
|
import { t as getIntegrationCatalog } from "./integration-catalog-Cub_7xCw.mjs";
|
|
10
10
|
import { t as readCredentialEnvMap } from "./credential-env-map-CtmzNkwU.mjs";
|
|
@@ -4,8 +4,8 @@ import { a as ui, j as throwReportedCliExit, y as toErrorMessage } from "./keyst
|
|
|
4
4
|
import { i as projects } from "./dist-D_KgdxW5.mjs";
|
|
5
5
|
import { i as writeJson } from "./output-BWcVRt-T.mjs";
|
|
6
6
|
import { t as requireWorkflowsDir } from "./resolve-project-DJJZIOmu.mjs";
|
|
7
|
-
import { s as build, t as WorkflowNotFoundError } from "./workflow-build-
|
|
8
|
-
import { t as createBuildProgress } from "./build-progress-
|
|
7
|
+
import { s as build, t as WorkflowNotFoundError } from "./workflow-build-BIRjDduX.mjs";
|
|
8
|
+
import { t as createBuildProgress } from "./build-progress-O9f-4Z4D.mjs";
|
|
9
9
|
import * as os from "node:os";
|
|
10
10
|
import * as path$1 from "node:path";
|
|
11
11
|
import { mkdtemp, rm } from "node:fs/promises";
|
|
@@ -5,7 +5,7 @@ import { F as originalConsole, P as logger, a as ui, n as style, t as ANSI, y as
|
|
|
5
5
|
import { r as getKeystrokeTmpDir } from "./dist-D_KgdxW5.mjs";
|
|
6
6
|
import { t as assertWorkflowProjectRoot } from "./project-config-DudGRFPO.mjs";
|
|
7
7
|
import { a as FlowGraphSchema, r as WorkflowBuildManifestSchema } from "./workflow-build-manifest-1sC52TIG.mjs";
|
|
8
|
-
import { t as AgentVersionManifestSchema } from "./agent-manifest-
|
|
8
|
+
import { t as AgentVersionManifestSchema } from "./agent-manifest-UbtgIIhN.mjs";
|
|
9
9
|
import { r as RelativeFilePathSchema } from "./file-metadata-DQVDjr7M.mjs";
|
|
10
10
|
import { c as createArtifactOutputFiles, l as createMetadataOutputFile, o as METADATA_ROOT_DIR_NAME, p as getWorkflowArtifactPaths, t as BUILD_DIR_NAME } from "./layout-B95Tku8F.mjs";
|
|
11
11
|
import { t as resolveConfiguredBuildOutputDir } from "./utils-BaxDlCsW.mjs";
|
|
@@ -993,7 +993,7 @@ async function buildDiscoveredWorkflows(options) {
|
|
|
993
993
|
warnings.push(...result.warnings);
|
|
994
994
|
}
|
|
995
995
|
if (buildPlan.agents.length > 0) {
|
|
996
|
-
const { buildAgentArtifacts } = await import("./build-agents-DseUtzd4-
|
|
996
|
+
const { buildAgentArtifacts } = await import("./build-agents-DseUtzd4-C6S-h9Gi.mjs");
|
|
997
997
|
const result = await buildAgentArtifacts({
|
|
998
998
|
entries: buildPlan.agents,
|
|
999
999
|
projectRoot: options.projectRoot
|
|
@@ -320,7 +320,7 @@ function createWorkflowsBuildCommand() {
|
|
|
320
320
|
description: "Build workflows locally",
|
|
321
321
|
schema: WorkflowsBuildOptionsSchema,
|
|
322
322
|
optionsConfig: BUILD_OPTIONS_CONFIG,
|
|
323
|
-
loadHandler: async () => (await import("./build.handler-
|
|
323
|
+
loadHandler: async () => (await import("./build.handler-Bd2x92wh.mjs")).handleWorkflowsBuild
|
|
324
324
|
});
|
|
325
325
|
}
|
|
326
326
|
//#endregion
|
|
@@ -347,7 +347,7 @@ function createWorkflowsDiffCommand() {
|
|
|
347
347
|
description: "Authored workflow id (preferred) or workflow name",
|
|
348
348
|
key: "workflow"
|
|
349
349
|
},
|
|
350
|
-
loadHandler: async () => (await import("./diff.handler-
|
|
350
|
+
loadHandler: async () => (await import("./diff.handler-jJEIJq41.mjs")).handleWorkflowsDiff
|
|
351
351
|
});
|
|
352
352
|
}
|
|
353
353
|
//#endregion
|
|
@@ -380,7 +380,7 @@ function createWorkflowsEnvCommand() {
|
|
|
380
380
|
key: "workflow",
|
|
381
381
|
required: false
|
|
382
382
|
},
|
|
383
|
-
loadHandler: async () => (await import("./env.handler-
|
|
383
|
+
loadHandler: async () => (await import("./env.handler-BbH44f51.mjs")).handleWorkflowsEnv
|
|
384
384
|
});
|
|
385
385
|
}
|
|
386
386
|
//#endregion
|
|
@@ -412,7 +412,7 @@ function createWorkflowsInspectCommand() {
|
|
|
412
412
|
description: "Authored workflow id (preferred) or workflow name",
|
|
413
413
|
key: "workflow"
|
|
414
414
|
},
|
|
415
|
-
loadHandler: async () => (await import("./inspect.handler-
|
|
415
|
+
loadHandler: async () => (await import("./inspect.handler-jtSz17z5.mjs")).handleWorkflowsInspect
|
|
416
416
|
});
|
|
417
417
|
}
|
|
418
418
|
//#endregion
|
|
@@ -792,7 +792,7 @@ function createWorkflowsRunCommand() {
|
|
|
792
792
|
key: "payload",
|
|
793
793
|
required: false
|
|
794
794
|
}],
|
|
795
|
-
loadHandler: async () => (await import("./run.handler-
|
|
795
|
+
loadHandler: async () => (await import("./run.handler-itMzf36_.mjs")).handleWorkflowsRun
|
|
796
796
|
});
|
|
797
797
|
}
|
|
798
798
|
//#endregion
|
|
@@ -847,7 +847,7 @@ function createWorkflowsTestCommand() {
|
|
|
847
847
|
description: "Authored workflow id (preferred) or workflow name. Multiple workflows with the same name run sequentially.",
|
|
848
848
|
key: "workflow"
|
|
849
849
|
},
|
|
850
|
-
loadHandler: async () => (await import("./test.handler-
|
|
850
|
+
loadHandler: async () => (await import("./test.handler-DxEIHSy2.mjs")).handleWorkflowsTest
|
|
851
851
|
});
|
|
852
852
|
}
|
|
853
853
|
//#endregion
|
|
@@ -885,7 +885,7 @@ function createWorkflowsValidateCommand() {
|
|
|
885
885
|
key: "workflow",
|
|
886
886
|
required: false
|
|
887
887
|
},
|
|
888
|
-
loadHandler: async () => (await import("./validate.handler-
|
|
888
|
+
loadHandler: async () => (await import("./validate.handler-zJIDu4gG.mjs")).handleWorkflowsValidate
|
|
889
889
|
});
|
|
890
890
|
}
|
|
891
891
|
//#endregion
|
|
@@ -904,14 +904,14 @@ function createWorkflowsCommand() {
|
|
|
904
904
|
description: "Manage, run, inspect, and debug workflows",
|
|
905
905
|
schema: WorkflowsOptionsSchema,
|
|
906
906
|
optionsConfig: WORKFLOWS_OPTIONS_CONFIG,
|
|
907
|
-
loadHandler: async () => (await import("./list.handler-
|
|
907
|
+
loadHandler: async () => (await import("./list.handler-BapLGgXO.mjs")).handleWorkflowsList,
|
|
908
908
|
subcommands: [
|
|
909
909
|
createTypedCommand({
|
|
910
910
|
name: "list",
|
|
911
911
|
description: "List all workflows in the project",
|
|
912
912
|
schema: WorkflowsOptionsSchema,
|
|
913
913
|
optionsConfig: WORKFLOWS_OPTIONS_CONFIG,
|
|
914
|
-
loadHandler: async () => (await import("./list.handler-
|
|
914
|
+
loadHandler: async () => (await import("./list.handler-BapLGgXO.mjs")).handleWorkflowsList
|
|
915
915
|
}),
|
|
916
916
|
createWorkflowsBuildCommand(),
|
|
917
917
|
createWorkflowsTestCommand(),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@keystrokehq/cli",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.25",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Command-line interface for creating, managing, and deploying Keystroke automations.",
|
|
6
6
|
"type": "module",
|
|
@@ -32,25 +32,25 @@
|
|
|
32
32
|
"oxc-parser": "^0.128.0",
|
|
33
33
|
"rolldown": "1.0.0",
|
|
34
34
|
"tsx": "^4.21.0",
|
|
35
|
-
"zod": "
|
|
36
|
-
"@keystrokehq/skills": "0.0.
|
|
35
|
+
"zod": "4.4.3",
|
|
36
|
+
"@keystrokehq/skills": "0.0.6"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
39
|
"tsdown": "0.21.10",
|
|
40
40
|
"typescript": "^5.9.3",
|
|
41
41
|
"vitest": "^4.1.5",
|
|
42
|
-
"@keystroke/local-memory": "0.0.1",
|
|
43
42
|
"@keystroke/env-utils": "0.0.0",
|
|
44
|
-
"@
|
|
43
|
+
"@keystroke/local-memory": "0.0.1",
|
|
45
44
|
"@keystroke/shared-types": "0.0.5",
|
|
45
|
+
"@keystrokehq/config": "0.0.2",
|
|
46
46
|
"@keystroke/typescript-config": "0.0.0",
|
|
47
|
+
"@keystrokehq/core": "0.0.7",
|
|
47
48
|
"@keystroke/utils": "0.0.0",
|
|
48
|
-
"@keystroke/workflow-builder": "0.0.7",
|
|
49
49
|
"@keystrokehq/workflow-build-contracts": "0.0.3",
|
|
50
|
-
"@
|
|
50
|
+
"@keystroke/workflow-builder": "0.0.7",
|
|
51
51
|
"@keystroke/workflow-deploy": "0.0.6",
|
|
52
|
+
"@keystrokehq/testing": "0.2.2",
|
|
52
53
|
"@keystroke/workflow-sdk": "0.0.4",
|
|
53
|
-
"@keystrokehq/core": "0.0.7",
|
|
54
54
|
"@keystroke/test-utils": "0.0.3"
|
|
55
55
|
},
|
|
56
56
|
"keywords": [
|