@keystrokehq/cli 0.0.21 → 0.0.23

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.
Files changed (83) hide show
  1. package/dist/{accept.handler-C6KBLKmW.mjs → accept.handler-tvT9pleH.mjs} +1 -1
  2. package/dist/{admin-D2CQoZAN.mjs → admin-DsAQ0WWj.mjs} +9 -9
  3. package/dist/{agents-Bn0g5o0o.mjs → agents-Ccw0IZCx.mjs} +4 -4
  4. package/dist/{api-J9UL8pqZ.mjs → api-O5tdGdzc.mjs} +29 -3
  5. package/dist/{api-keys-BixCnZJW.mjs → api-keys-tle_m3kk.mjs} +5 -5
  6. package/dist/{auth-yCNMT8sJ.mjs → auth-DLaY5yCZ.mjs} +6 -11
  7. package/dist/{auth.handler-BedGpKh1.mjs → auth.handler-Dq2fXO3S.mjs} +16 -47
  8. package/dist/{build.handler-CyDc8jiZ.mjs → build.handler-ChqSwsT_.mjs} +3 -3
  9. package/dist/{clear-cache.handler-FmJPHdWG.mjs → clear-cache.handler-DpP1VlbR.mjs} +1 -1
  10. package/dist/{clear.handler-Cvb9chs4.mjs → clear.handler-FzohTmpU.mjs} +2 -6
  11. package/dist/{commander-9Kro0Dl3.mjs → commander-BTMzBiLq.mjs} +1 -1
  12. package/dist/{connect-DzVxjeYr.mjs → connect-BUu2ojK7.mjs} +26 -2
  13. package/dist/{connect.handler-DFQdxkWZ.mjs → connect.handler-D7oO_5WS.mjs} +38 -3
  14. package/dist/{context-B2cQ-Nt3.mjs → context-DHOTSgPb.mjs} +5 -10
  15. package/dist/{create.handler-v9B0Z9Yf.mjs → create.handler-BuxP18uj.mjs} +1 -1
  16. package/dist/{credential-env-map-Dvp00a4M.mjs → credential-env-map-CtmzNkwU.mjs} +1 -1
  17. package/dist/{credentials-Dr5lD7Hm.mjs → credentials-CELZ0QHu.mjs} +5 -5
  18. package/dist/{current-deployment-workflow-qMfOrRIu.mjs → current-deployment-workflow-CnzlDCBv.mjs} +2 -2
  19. package/dist/{current.handler-Cm_-JLyZ.mjs → current.handler-BXec-Bhy.mjs} +1 -1
  20. package/dist/{delete.handler-DtP_zUaq.mjs → delete.handler-CpYOMtsv.mjs} +1 -1
  21. package/dist/{deploy-CB6pfCuB.mjs → deploy-Cn3jN7Rl.mjs} +2 -2
  22. package/dist/{deploy.handler-Bg0dpSTj.mjs → deploy.handler-BikVS9ER.mjs} +7 -7
  23. package/dist/{diff.handler-CJPrszL1.mjs → diff.handler-C3EWVBOj.mjs} +3 -3
  24. package/dist/dist-D_KgdxW5.mjs +539 -0
  25. package/dist/{env.handler-6TrLd3fo.mjs → env.handler-BuFdzUoX.mjs} +4 -4
  26. package/dist/{init-DBMtY3eO.mjs → init-6tGGTpYO.mjs} +2 -2
  27. package/dist/{init.handler-BoYbE-6H.mjs → init.handler-Dcg9MOqx.mjs} +2 -2
  28. package/dist/{inspect.handler-Juu2vGbB.mjs → inspect.handler-BN6p2hI_.mjs} +3 -3
  29. package/dist/{integration-catalog-cYlTmOSb.mjs → integration-catalog-Cub_7xCw.mjs} +1 -1
  30. package/dist/{integrations-cwRfplNG.mjs → integrations-BRMzYHz1.mjs} +4 -4
  31. package/dist/{invites-DHyHZOY_.mjs → invites-RO4Dy-m6.mjs} +4 -4
  32. package/dist/{invites.list.handler-C-QpsG2J.mjs → invites.list.handler-B2RoiFCu.mjs} +1 -1
  33. package/dist/{invites.resend.handler-KFKbSPzR.mjs → invites.resend.handler-C4rzRkqX.mjs} +1 -1
  34. package/dist/{invites.revoke.handler-Cuz7jrGC.mjs → invites.revoke.handler-CMf6PpeL.mjs} +1 -1
  35. package/dist/keystroke.mjs +21 -21
  36. package/dist/{list.handler-DRe38pAj.mjs → list.handler-BjKZ9-QO.mjs} +2 -2
  37. package/dist/{list.handler-Cc-V1TNz.mjs → list.handler-DpdVFRYl.mjs} +1 -1
  38. package/dist/{list.handler-Do2tVOnu.mjs → list.handler-DrY5bgm1.mjs} +1 -1
  39. package/dist/{list.handler-CLGQDuo5.mjs → list.handler-cK8Y-daR.mjs} +3 -3
  40. package/dist/{list.handler-BWsl4iYw.mjs → list.handler-fcyAKTQe.mjs} +3 -3
  41. package/dist/{list.handler-6x3GVumu.mjs → list.handler-ijBH6Ow_.mjs} +1 -1
  42. package/dist/{list.handler-RtHhrTZ3.mjs → list.handler-wYGZhl1g.mjs} +1 -1
  43. package/dist/{listen-DZdSevsB.mjs → listen-CEn4PucV.mjs} +2 -2
  44. package/dist/{listen.handler-BccHe1jh.mjs → listen.handler-B7s6mz82.mjs} +1 -1
  45. package/dist/{logs-Bh_PBnu6.mjs → logs-DiH8JXn1.mjs} +1 -1
  46. package/dist/{logs.handler-DItDS1zw.mjs → logs.handler-D0sNlOz4.mjs} +1 -1
  47. package/dist/{members.add.handler-D3nQ_Ln6.mjs → members.add.handler-Dr9SCjrS.mjs} +1 -1
  48. package/dist/{members.invite.handler-rKhg5n_C.mjs → members.invite.handler-8-pTOtw_.mjs} +1 -1
  49. package/dist/{members.list.handler-C9Yh469k.mjs → members.list.handler-CUZGd-3B.mjs} +1 -1
  50. package/dist/{members.remove.handler-Dnrck-E6.mjs → members.remove.handler-BCiLt3pa.mjs} +1 -1
  51. package/dist/{members.update.handler-qo5r6arJ.mjs → members.update.handler-BAbB9ssa.mjs} +1 -1
  52. package/dist/{org-DnES84sS.mjs → org-BD4fj8Yh.mjs} +15 -15
  53. package/dist/{orgs.create.handler-DF4eEL-2.mjs → orgs.create.handler-B_7WjV3s.mjs} +1 -1
  54. package/dist/{orgs.get.handler-BmJnseQa.mjs → orgs.get.handler-BgjeDmfl.mjs} +1 -1
  55. package/dist/{orgs.list.handler-DDVvSbsT.mjs → orgs.list.handler-ZRdb-yu5.mjs} +1 -1
  56. package/dist/{paused.handler-BLUchSMD.mjs → paused.handler-CzQkBKS6.mjs} +1 -1
  57. package/dist/{projects-Cv14bBGy.mjs → projects-CgtfPFGu.mjs} +4 -4
  58. package/dist/{requirements.handler-BKFocUof.mjs → requirements.handler-ZZfHV6f0.mjs} +2 -2
  59. package/dist/{resolve-cli-credentials-DaMDaamj.mjs → resolve-cli-credentials-B4crOe_y.mjs} +5 -5
  60. package/dist/{resolve-project-Cj3MFnU0.mjs → resolve-project-DJJZIOmu.mjs} +1 -1
  61. package/dist/{run.handler-DZuUx0fi.mjs → run.handler-xeUVmlFk.mjs} +4 -4
  62. package/dist/{runs-BOo3j297.mjs → runs-CZRwB58H.mjs} +2 -2
  63. package/dist/{skills.command-B-MhRN3J.mjs → skills.command-DGIIIRX_.mjs} +1 -1
  64. package/dist/{status.handler-CW-EFhy3.mjs → status.handler-Ch_DtyBp.mjs} +4 -11
  65. package/dist/{switch.handler-BFGvj5c6.mjs → switch.handler-B3QBoSSl.mjs} +2 -2
  66. package/dist/{sync-CZ3iUPTA.mjs → sync-BlmgsC2W.mjs} +2 -2
  67. package/dist/{sync.handler-B1L8I9lF.mjs → sync.handler-xVxeG-S0.mjs} +4 -4
  68. package/dist/{task-target-build-CTgl4L42.mjs → task-target-build-CrPLSXnu.mjs} +1 -1
  69. package/dist/task-target-deploy-runner.mjs +4 -4
  70. package/dist/{test-Byq4hG3C.mjs → test-cuU0rf9C.mjs} +2 -2
  71. package/dist/{test.handler-BsrMMj5O.mjs → test.handler-B_C-T_IM.mjs} +4 -4
  72. package/dist/{test.handler-CAsVgOpT.mjs → test.handler-CLqnDqY6.mjs} +1 -1
  73. package/dist/{tool.handler-BHS5Z4J_.mjs → tool.handler-CmpzYYiC.mjs} +6 -6
  74. package/dist/{upgrade-bZVjVXnu.mjs → upgrade-B6Prb1K-.mjs} +1 -1
  75. package/dist/{upload.handler-DXVx2u3A.mjs → upload.handler-81mbKHTY.mjs} +4 -4
  76. package/dist/{users.get.handler-DqD2ELK2.mjs → users.get.handler-DoajzImx.mjs} +1 -1
  77. package/dist/{users.list.handler-DZSPvpGF.mjs → users.list.handler-CRk2J8mi.mjs} +1 -1
  78. package/dist/{users.set-role.handler-73smNUVF.mjs → users.set-role.handler-CHYjbx5M.mjs} +1 -1
  79. package/dist/{validate.handler-CmfcMX0t.mjs → validate.handler-CWG5HyO3.mjs} +3 -3
  80. package/dist/{workflow-build-Bi1Aacc5.mjs → workflow-build-CVG4DSCw.mjs} +1 -1
  81. package/dist/{workflows-C_C13Zr0.mjs → workflows-eztTnue4.mjs} +12 -12
  82. package/package.json +8 -8
  83. package/dist/dist-DuJjDZIf.mjs +0 -1094
@@ -2,7 +2,7 @@
2
2
 
3
3
  import { a as ui, j as throwReportedCliExit, y as toErrorMessage } from "./keystroke.mjs";
4
4
  import { i as writeJson } from "./output-BWcVRt-T.mjs";
5
- import { i as requireClient } from "./context-B2cQ-Nt3.mjs";
5
+ import { i as requireClient } from "./context-DHOTSgPb.mjs";
6
6
  //#region src/commands/workflows/paused/paused.handler.ts
7
7
  async function handleWorkflowsPaused(options, ctx) {
8
8
  const client = requireClient(ctx);
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
 
3
3
  import { n as JsonOptionSchema, t as JSON_OPTION_CONFIG } from "./output-BWcVRt-T.mjs";
4
- import { t as createTypedCommand } from "./commander-9Kro0Dl3.mjs";
4
+ import { t as createTypedCommand } from "./commander-BTMzBiLq.mjs";
5
5
  import { z } from "zod";
6
6
  //#region src/commands/projects/projects.command.ts
7
7
  function createProjectsCommand() {
@@ -10,19 +10,19 @@ function createProjectsCommand() {
10
10
  description: "List tracked Keystroke projects",
11
11
  schema: JsonOptionSchema,
12
12
  optionsConfig: { ...JSON_OPTION_CONFIG },
13
- loadHandler: async () => (await import("./list.handler-Cc-V1TNz.mjs")).handleProjectsList,
13
+ loadHandler: async () => (await import("./list.handler-DpdVFRYl.mjs")).handleProjectsList,
14
14
  subcommands: [createTypedCommand({
15
15
  name: "list",
16
16
  description: "List all tracked Keystroke projects",
17
17
  schema: JsonOptionSchema,
18
18
  optionsConfig: { ...JSON_OPTION_CONFIG },
19
- loadHandler: async () => (await import("./list.handler-Cc-V1TNz.mjs")).handleProjectsList
19
+ loadHandler: async () => (await import("./list.handler-DpdVFRYl.mjs")).handleProjectsList
20
20
  }), createTypedCommand({
21
21
  name: "clear-cache",
22
22
  description: "Clear the stored projects cache (projects.json)",
23
23
  schema: z.object({}),
24
24
  optionsConfig: {},
25
- loadHandler: async () => (await import("./clear-cache.handler-FmJPHdWG.mjs")).handleProjectsClearCache
25
+ loadHandler: async () => (await import("./clear-cache.handler-DpP1VlbR.mjs")).handleProjectsClearCache
26
26
  })]
27
27
  });
28
28
  }
@@ -3,8 +3,8 @@
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
5
  import { a as readManifestsFromOutDir } from "./dist-Br4m3sFZ.mjs";
6
- import { t as requireWorkflowsDir } from "./resolve-project-Cj3MFnU0.mjs";
7
- import { t as readCredentialEnvMap } from "./credential-env-map-Dvp00a4M.mjs";
6
+ import { t as requireWorkflowsDir } from "./resolve-project-DJJZIOmu.mjs";
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";
9
9
  import { t as groupCredentialRequirements } from "./credentials-DQW8xxof.mjs";
10
10
  //#region src/commands/credentials/requirements/requirements-display.ts
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
 
3
- import { n as credentials } from "./dist-DuJjDZIf.mjs";
3
+ import { n as credentials } from "./dist-D_KgdxW5.mjs";
4
4
  //#region src/lib/resolve-cli-credentials.ts
5
5
  /**
6
6
  * Resolves CLI credential inputs using explicit overrides first, then stored
@@ -25,12 +25,12 @@ async function resolveCliCredentials(input = {}) {
25
25
  } catch (error) {
26
26
  const message = error instanceof Error ? error.message : String(error);
27
27
  readErrorMessage = message;
28
- input.logger?.warn(`Could not read saved credentials from ${cred.metadataFilePath}: ${message}`);
28
+ input.logger?.warn(`Could not read saved credentials from ${cred.credentialsFilePath}: ${message}`);
29
29
  }
30
30
  const apiKey = input.apiKey ?? active?.apiKey;
31
31
  const serverUrl = input.serverUrl ?? urls?.serverUrl;
32
- if (!input.apiKey && active?.apiKey) input.logger?.info(`Using saved API key from ${cred.metadataFilePath}`);
33
- if (!input.serverUrl && urls?.serverUrl) input.logger?.info(`Using saved API URL from ${cred.metadataFilePath}`);
32
+ if (!input.apiKey && active?.apiKey) input.logger?.info(`Using saved API key from ${cred.credentialsFilePath}`);
33
+ if (!input.serverUrl && urls?.serverUrl) input.logger?.info(`Using saved API URL from ${cred.credentialsFilePath}`);
34
34
  return {
35
35
  apiKey,
36
36
  serverUrl,
@@ -39,7 +39,7 @@ async function resolveCliCredentials(input = {}) {
39
39
  organizationName: active.org.organizationName,
40
40
  apiKey: active.apiKey
41
41
  } : void 0,
42
- metadataFilePath: cred.metadataFilePath,
42
+ credentialsFilePath: cred.credentialsFilePath,
43
43
  readErrorMessage
44
44
  };
45
45
  }
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
 
3
3
  import { a as ui, k as ProjectNotFoundError } from "./keystroke.mjs";
4
- import { i as projects } from "./dist-DuJjDZIf.mjs";
4
+ import { i as projects } from "./dist-D_KgdxW5.mjs";
5
5
  import { n as findProjectRoot } from "./project-config-DudGRFPO.mjs";
6
6
  import path from "node:path";
7
7
  //#region src/lib/resolve-project.ts
@@ -1,12 +1,12 @@
1
1
  #!/usr/bin/env node
2
2
 
3
3
  import { D as CliExitError, a as ui, j as throwReportedCliExit, y as toErrorMessage } from "./keystroke.mjs";
4
- import { i as projects } from "./dist-DuJjDZIf.mjs";
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 writeJson } from "./output-BWcVRt-T.mjs";
7
- import { i as requireClient, t as assertProjectConfigMatchesAuthenticatedOrg } from "./context-B2cQ-Nt3.mjs";
8
- import { n as resolveWorkflowsDir } from "./resolve-project-Cj3MFnU0.mjs";
9
- import { t as lookupCurrentDeploymentWorkflow } from "./current-deployment-workflow-qMfOrRIu.mjs";
7
+ import { i as requireClient, t as assertProjectConfigMatchesAuthenticatedOrg } from "./context-DHOTSgPb.mjs";
8
+ import { n as resolveWorkflowsDir } from "./resolve-project-DJJZIOmu.mjs";
9
+ import { t as lookupCurrentDeploymentWorkflow } from "./current-deployment-workflow-CnzlDCBv.mjs";
10
10
  import { i as resolveWorkflowGlobals, o as validateInputOrExit, r as resolveRunInput, s as validateWorkflowGlobalsOrExit, t as pollForCompletion } from "./run-polling-3XOGl4hh.mjs";
11
11
  //#region src/commands/workflows/run.handler.ts
12
12
  async function handleWorkflowsRun(options, ctx) {
@@ -2,8 +2,8 @@
2
2
 
3
3
  import { a as ui, j as throwReportedCliExit, n as style, t as ANSI, y as toErrorMessage } from "./keystroke.mjs";
4
4
  import { i as writeJson, n as JsonOptionSchema, t as JSON_OPTION_CONFIG } from "./output-BWcVRt-T.mjs";
5
- import { t as createTypedCommand } from "./commander-9Kro0Dl3.mjs";
6
- import { i as requireClient } from "./context-B2cQ-Nt3.mjs";
5
+ import { t as createTypedCommand } from "./commander-BTMzBiLq.mjs";
6
+ import { i as requireClient } from "./context-DHOTSgPb.mjs";
7
7
  import { z } from "zod";
8
8
  //#region src/commands/runs/inspect-display.ts
9
9
  function renderRunInspect(input) {
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
 
3
3
  import { n as JsonOptionSchema, t as JSON_OPTION_CONFIG } from "./output-BWcVRt-T.mjs";
4
- import { t as createTypedCommand } from "./commander-9Kro0Dl3.mjs";
4
+ import { t as createTypedCommand } from "./commander-BTMzBiLq.mjs";
5
5
  import { t as SKILL_INSTALL_METHODS } from "./types-D1cVpE7_.mjs";
6
6
  import { z } from "zod";
7
7
  //#region src/commands/skills/skills.command.ts
@@ -84,17 +84,11 @@ function printValidationStatus(validation) {
84
84
  }
85
85
  function printCredentialStorage(ctx) {
86
86
  const info = ctx.credentialStorageInfo;
87
- if (info.secretStorageKind === "keychain") {
88
- ui.hint("Credential storage: OS credential store");
89
- if (ctx.credentialReadError) {
90
- ui.warn("Saved credential metadata exists, but the OS credential store is unavailable.");
91
- ui.hint("Unlock your keychain or rerun `keystroke auth`.");
92
- ui.hint(`Credential store error: ${ctx.credentialReadError}`);
93
- }
94
- return;
87
+ ui.hint(`Credentials: ${info.credentialsFilePath}`);
88
+ if (ctx.credentialReadError) {
89
+ ui.warn("Saved credentials exist, but the saved API key could not be read.");
90
+ ui.hint(`Credential read error: ${ctx.credentialReadError}`);
95
91
  }
96
- ui.warn("Credential storage: plaintext file (insecure)");
97
- ui.hint(`Secrets: ${info.legacySecretsFilePath}`);
98
92
  }
99
93
  async function handleAuthStatus(_options, ctx) {
100
94
  const validation = await getValidationStatus(ctx);
@@ -110,7 +104,6 @@ async function handleAuthStatus(_options, ctx) {
110
104
  printValidationStatus(validation);
111
105
  if (ctx.baseUrl) ui.hint(`API URL: ${ctx.baseUrl}`);
112
106
  printCredentialStorage(ctx);
113
- ui.hint(`Credentials: ${ctx.metadataFilePath}`);
114
107
  }
115
108
  //#endregion
116
109
  export { handleAuthStatus };
@@ -1,8 +1,8 @@
1
1
  #!/usr/bin/env node
2
2
 
3
3
  import { a as ui, j as throwReportedCliExit } from "./keystroke.mjs";
4
- import { n as credentials } from "./dist-DuJjDZIf.mjs";
5
- import { i as requireClient } from "./context-B2cQ-Nt3.mjs";
4
+ import { n as credentials } from "./dist-D_KgdxW5.mjs";
5
+ import { i as requireClient } from "./context-DHOTSgPb.mjs";
6
6
  import { select } from "@clack/prompts";
7
7
  //#region src/commands/org/switch.handler.ts
8
8
  async function handleOrgSwitch(_options, ctx) {
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
 
3
- import { t as createTypedCommand } from "./commander-9Kro0Dl3.mjs";
3
+ import { t as createTypedCommand } from "./commander-BTMzBiLq.mjs";
4
4
  import { z } from "zod";
5
5
  //#region src/commands/sync/sync.command.ts
6
6
  /**
@@ -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-B1L8I9lF.mjs")).handleSync
35
+ loadHandler: async () => (await import("./sync.handler-xVxeG-S0.mjs")).handleSync
36
36
  });
37
37
  }
38
38
  //#endregion
@@ -1,11 +1,11 @@
1
1
  #!/usr/bin/env node
2
2
 
3
3
  import { P as logger, a as ui, j as throwReportedCliExit, l as isLocalMode, y as toErrorMessage } from "./keystroke.mjs";
4
- import { i as projects } from "./dist-DuJjDZIf.mjs";
5
- import { a as validateApiKey, i as requireClient } from "./context-B2cQ-Nt3.mjs";
4
+ import { i as projects } from "./dist-D_KgdxW5.mjs";
5
+ import { a as validateApiKey, i as requireClient } from "./context-DHOTSgPb.mjs";
6
6
  import { n as deployFromDir } from "./dist-Br4m3sFZ.mjs";
7
- import { t as requireWorkflowsDir } from "./resolve-project-Cj3MFnU0.mjs";
8
- import { a as runWorkflowBuild, n as renderBuildFailure, r as renderBuildHeader } from "./workflow-build-Bi1Aacc5.mjs";
7
+ import { t as requireWorkflowsDir } from "./resolve-project-DJJZIOmu.mjs";
8
+ import { a as runWorkflowBuild, n as renderBuildFailure, r as renderBuildHeader } from "./workflow-build-CVG4DSCw.mjs";
9
9
  import { t as createBuildProgress } from "./build-progress-nYa14iBP.mjs";
10
10
  import { t as createDeployProgress } from "./deploy-progress-Dlp9aBDW.mjs";
11
11
  //#region src/commands/sync/sync.handler.ts
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
 
3
3
  import { r as getKeystrokeProjectPath } from "./paths-JzzFkXQA-CEipIeVl.mjs";
4
- import "./dist-DuJjDZIf.mjs";
4
+ import "./dist-D_KgdxW5.mjs";
5
5
  import { t as readCredentialKeysFromSchemaObject } from "./read-credential-keys-77a91T8M-aLuQvlIq.mjs";
6
6
  import path from "node:path";
7
7
  import { mkdir, writeFile } from "node:fs/promises";
@@ -2,9 +2,9 @@
2
2
 
3
3
  import { r as getKeystrokeProjectPath } from "./paths-JzzFkXQA-CEipIeVl.mjs";
4
4
  import "./default-urls-BoSm4s9C.mjs";
5
- import "./dist-DuJjDZIf.mjs";
5
+ import "./dist-D_KgdxW5.mjs";
6
6
  import { n as findProjectRoot, t as assertWorkflowProjectRoot } from "./project-config-DudGRFPO.mjs";
7
- import { t as resolveCliCredentials } from "./resolve-cli-credentials-DaMDaamj.mjs";
7
+ import { t as resolveCliCredentials } from "./resolve-cli-credentials-B4crOe_y.mjs";
8
8
  import path from "node:path";
9
9
  import { mkdir, readFile, writeFile } from "node:fs/promises";
10
10
  import { spawnSync } from "node:child_process";
@@ -119,7 +119,7 @@ function restartStage(options, projectRoot, stage) {
119
119
  }
120
120
  async function runBuildPhase(options, projectRoot) {
121
121
  const projectConfig = await assertWorkflowProjectRoot(projectRoot);
122
- const { buildTaskTargetEntries } = await import("./task-target-build-CTgl4L42.mjs");
122
+ const { buildTaskTargetEntries } = await import("./task-target-build-CrPLSXnu.mjs");
123
123
  await writeBuildDescriptor(projectRoot, {
124
124
  projectRoot,
125
125
  projectConfig,
@@ -132,7 +132,7 @@ async function runBuildPhase(options, projectRoot) {
132
132
  }
133
133
  async function runPreparePhase(projectRoot) {
134
134
  const buildDescriptor = await readBuildDescriptor(projectRoot);
135
- const { prepareTaskTargetBuiltTasks } = await import("./task-target-build-CTgl4L42.mjs");
135
+ const { prepareTaskTargetBuiltTasks } = await import("./task-target-build-CrPLSXnu.mjs");
136
136
  const prepareResult = await prepareTaskTargetBuiltTasks({
137
137
  builtTasks: buildDescriptor.builtTasks,
138
138
  projectRoot
@@ -2,7 +2,7 @@
2
2
 
3
3
  import { a as ui } from "./keystroke.mjs";
4
4
  import { n as JsonOptionSchema, t as JSON_OPTION_CONFIG } from "./output-BWcVRt-T.mjs";
5
- import { t as createTypedCommand } from "./commander-9Kro0Dl3.mjs";
5
+ import { t as createTypedCommand } from "./commander-BTMzBiLq.mjs";
6
6
  import { z } from "zod";
7
7
  //#region src/commands/test/test.command.ts
8
8
  const TestOptionsSchema = JsonOptionSchema;
@@ -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-BHS5Z4J_.mjs")).handleTestTool
66
+ loadHandler: async () => (await import("./tool.handler-CmpzYYiC.mjs")).handleTestTool
67
67
  })]
68
68
  });
69
69
  cmd.enablePositionalOptions();
@@ -1,12 +1,12 @@
1
1
  #!/usr/bin/env node
2
2
 
3
3
  import { D as CliExitError, a as ui, l as isLocalMode, y as toErrorMessage } from "./keystroke.mjs";
4
- import { i as projects } from "./dist-DuJjDZIf.mjs";
4
+ import { i as projects } from "./dist-D_KgdxW5.mjs";
5
5
  import { t as assertWorkflowProjectRoot } from "./project-config-DudGRFPO.mjs";
6
- import { i as requireClient, t as assertProjectConfigMatchesAuthenticatedOrg } from "./context-B2cQ-Nt3.mjs";
6
+ import { i as requireClient, t as assertProjectConfigMatchesAuthenticatedOrg } from "./context-DHOTSgPb.mjs";
7
7
  import { o as readWorkflowsFromDisk, s as uploadTestBundle } from "./dist-Br4m3sFZ.mjs";
8
- import { t as requireWorkflowsDir } from "./resolve-project-Cj3MFnU0.mjs";
9
- import { a as runWorkflowBuild, t as WorkflowNotFoundError } from "./workflow-build-Bi1Aacc5.mjs";
8
+ import { t as requireWorkflowsDir } from "./resolve-project-DJJZIOmu.mjs";
9
+ import { a as runWorkflowBuild, t as WorkflowNotFoundError } from "./workflow-build-CVG4DSCw.mjs";
10
10
  import { r as isUnknownSchema } from "./schema-display-XrRCdFL0.mjs";
11
11
  import { t as createBuildProgress } from "./build-progress-nYa14iBP.mjs";
12
12
  import { t as withErrorBoundary } from "./error-boundary-DVZipk-A.mjs";
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
 
3
3
  import { a as ui } from "./keystroke.mjs";
4
- import { a as validateApiKey, i as requireClient } from "./context-B2cQ-Nt3.mjs";
4
+ import { a as validateApiKey, i as requireClient } from "./context-DHOTSgPb.mjs";
5
5
  //#region src/commands/auth/test.handler.ts
6
6
  async function handleAuthTest(_options, ctx) {
7
7
  const result = await validateApiKey(requireClient(ctx));
@@ -1,14 +1,14 @@
1
1
  #!/usr/bin/env node
2
2
 
3
3
  import { D as CliExitError, a as ui, c as getProcessEnv, j as throwReportedCliExit, y as toErrorMessage } from "./keystroke.mjs";
4
- import { t as Credentials } from "./dist-DuJjDZIf.mjs";
4
+ 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
- import { i as requireClient, t as assertProjectConfigMatchesAuthenticatedOrg } from "./context-B2cQ-Nt3.mjs";
7
+ import { i as requireClient, t as assertProjectConfigMatchesAuthenticatedOrg } from "./context-DHOTSgPb.mjs";
8
8
  import { a as readManifestsFromOutDir } from "./dist-Br4m3sFZ.mjs";
9
- import { t as requireWorkflowsDir } from "./resolve-project-Cj3MFnU0.mjs";
10
- import { a as runWorkflowBuild, n as renderBuildFailure } from "./workflow-build-Bi1Aacc5.mjs";
11
- import { t as lookupCurrentDeploymentWorkflow } from "./current-deployment-workflow-qMfOrRIu.mjs";
9
+ import { t as requireWorkflowsDir } from "./resolve-project-DJJZIOmu.mjs";
10
+ import { a as runWorkflowBuild, n as renderBuildFailure } from "./workflow-build-CVG4DSCw.mjs";
11
+ import { t as lookupCurrentDeploymentWorkflow } from "./current-deployment-workflow-CnzlDCBv.mjs";
12
12
  import { n as resolveInput, o as validateInputOrExit, t as pollForCompletion } from "./run-polling-3XOGl4hh.mjs";
13
13
  import * as os from "node:os";
14
14
  import { tmpdir } from "node:os";
@@ -414,7 +414,7 @@ async function executeOperationTool(params) {
414
414
  mode: "auto",
415
415
  apiKey: ctx.apiKey,
416
416
  baseUrl: ctx.baseUrl,
417
- credentialsPath: ctx.metadataFilePath
417
+ credentialsPath: ctx.credentialsFilePath
418
418
  },
419
419
  source: "cli",
420
420
  sourceLabel: "CLI"
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
 
3
- import { t as createTypedCommand } from "./commander-9Kro0Dl3.mjs";
3
+ import { t as createTypedCommand } from "./commander-BTMzBiLq.mjs";
4
4
  import { z } from "zod";
5
5
  //#region src/commands/upgrade/upgrade.command.ts
6
6
  const PackageManagerSchema = z.enum([
@@ -3,11 +3,11 @@
3
3
  import { a as ui, c as getProcessEnv, j as throwReportedCliExit, y as toErrorMessage } from "./keystroke.mjs";
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
- import { i as requireClient } from "./context-B2cQ-Nt3.mjs";
6
+ import { i as requireClient } from "./context-DHOTSgPb.mjs";
7
7
  import { a as readManifestsFromOutDir, t as collectCredentialFingerprintMapFromProjectDist } from "./dist-Br4m3sFZ.mjs";
8
- import { t as requireWorkflowsDir } from "./resolve-project-Cj3MFnU0.mjs";
9
- import { t as getIntegrationCatalog } from "./integration-catalog-cYlTmOSb.mjs";
10
- import { t as readCredentialEnvMap } from "./credential-env-map-Dvp00a4M.mjs";
8
+ import { t as requireWorkflowsDir } from "./resolve-project-DJJZIOmu.mjs";
9
+ import { t as getIntegrationCatalog } from "./integration-catalog-Cub_7xCw.mjs";
10
+ import { t as readCredentialEnvMap } from "./credential-env-map-CtmzNkwU.mjs";
11
11
  import { a as verifyCredentialResolvable, i as validateManualCredentialWithHook, n as resolveCredentialValuesFromEnv, r as uploadCredential, t as groupCredentialRequirements } from "./credentials-DQW8xxof.mjs";
12
12
  import { n as renderCredentialSchemaMismatchText, r as writeCredentialSchemaMismatchJson, t as isCredentialSchemaMismatchErrorLike } from "./credential-schema-mismatch-kfGeiSB1.mjs";
13
13
  import * as path$1 from "node:path";
@@ -2,7 +2,7 @@
2
2
 
3
3
  import { a as ui } from "./keystroke.mjs";
4
4
  import { i as writeJson } from "./output-BWcVRt-T.mjs";
5
- import { i as requireClient } from "./context-B2cQ-Nt3.mjs";
5
+ import { i as requireClient } from "./context-DHOTSgPb.mjs";
6
6
  import { n as isIamJsonMode, t as handleIamError } from "./iam-command-utils-CSZj4XlH.mjs";
7
7
  //#region src/commands/admin/users.get.handler.ts
8
8
  async function handleAdminUsersGet(options, ctx) {
@@ -2,7 +2,7 @@
2
2
 
3
3
  import { a as ui } from "./keystroke.mjs";
4
4
  import { i as writeJson } from "./output-BWcVRt-T.mjs";
5
- import { i as requireClient } from "./context-B2cQ-Nt3.mjs";
5
+ import { i as requireClient } from "./context-DHOTSgPb.mjs";
6
6
  import { n as isIamJsonMode, t as handleIamError } from "./iam-command-utils-CSZj4XlH.mjs";
7
7
  import Table from "cli-table3";
8
8
  //#region src/commands/admin/users.list.handler.ts
@@ -2,7 +2,7 @@
2
2
 
3
3
  import { a as ui } from "./keystroke.mjs";
4
4
  import { i as writeJson } from "./output-BWcVRt-T.mjs";
5
- import { i as requireClient } from "./context-B2cQ-Nt3.mjs";
5
+ import { i as requireClient } from "./context-DHOTSgPb.mjs";
6
6
  import { n as isIamJsonMode, r as requireConfirmation, t as handleIamError } from "./iam-command-utils-CSZj4XlH.mjs";
7
7
  //#region src/commands/admin/users.set-role.handler.ts
8
8
  async function handleAdminUsersSetRole(options, ctx) {
@@ -1,10 +1,10 @@
1
1
  #!/usr/bin/env node
2
2
 
3
3
  import { a as ui, j as throwReportedCliExit, y as toErrorMessage } from "./keystroke.mjs";
4
- import { i as projects } from "./dist-DuJjDZIf.mjs";
4
+ import { i as projects } from "./dist-D_KgdxW5.mjs";
5
5
  import { i as writeJson } from "./output-BWcVRt-T.mjs";
6
- import { t as requireWorkflowsDir } from "./resolve-project-Cj3MFnU0.mjs";
7
- import { s as build, t as WorkflowNotFoundError } from "./workflow-build-Bi1Aacc5.mjs";
6
+ import { t as requireWorkflowsDir } from "./resolve-project-DJJZIOmu.mjs";
7
+ import { s as build, t as WorkflowNotFoundError } from "./workflow-build-CVG4DSCw.mjs";
8
8
  import { t as createBuildProgress } from "./build-progress-nYa14iBP.mjs";
9
9
  import * as os from "node:os";
10
10
  import * as path$1 from "node:path";
@@ -2,7 +2,7 @@
2
2
 
3
3
  import { i as __toESM, n as __exportAll } from "./chunk-CH6r78ws.mjs";
4
4
  import { F as originalConsole, P as logger, a as ui, n as style, t as ANSI, y as toErrorMessage } from "./keystroke.mjs";
5
- import { r as getKeystrokeTmpDir } from "./dist-DuJjDZIf.mjs";
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
8
  import { t as AgentVersionManifestSchema } from "./agent-manifest-Pg0aURo7.mjs";
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
 
3
3
  import { n as JsonOptionSchema, t as JSON_OPTION_CONFIG } from "./output-BWcVRt-T.mjs";
4
- import { t as createTypedCommand } from "./commander-9Kro0Dl3.mjs";
4
+ import { t as createTypedCommand } from "./commander-BTMzBiLq.mjs";
5
5
  import { n as SHA256HashSchema, t as JsonSchemaSchema } from "./common-AK0q0Oz0.mjs";
6
6
  import { u as TriggerUploadDataSchema } from "./credential-requirements-D0mavK8j-CFMf0Xwu.mjs";
7
7
  import { a as FlowGraphSchema, r as WorkflowBuildManifestSchema } from "./workflow-build-manifest-1sC52TIG.mjs";
@@ -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-CyDc8jiZ.mjs")).handleWorkflowsBuild
323
+ loadHandler: async () => (await import("./build.handler-ChqSwsT_.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-CJPrszL1.mjs")).handleWorkflowsDiff
350
+ loadHandler: async () => (await import("./diff.handler-C3EWVBOj.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-6TrLd3fo.mjs")).handleWorkflowsEnv
383
+ loadHandler: async () => (await import("./env.handler-BuFdzUoX.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-Juu2vGbB.mjs")).handleWorkflowsInspect
415
+ loadHandler: async () => (await import("./inspect.handler-BN6p2hI_.mjs")).handleWorkflowsInspect
416
416
  });
417
417
  }
418
418
  //#endregion
@@ -508,7 +508,7 @@ function createWorkflowsLogsCommand() {
508
508
  key: "workflow",
509
509
  required: false
510
510
  },
511
- loadHandler: async () => (await import("./logs.handler-DItDS1zw.mjs")).handleWorkflowsLogs
511
+ loadHandler: async () => (await import("./logs.handler-D0sNlOz4.mjs")).handleWorkflowsLogs
512
512
  });
513
513
  }
514
514
  //#endregion
@@ -698,7 +698,7 @@ function createWorkflowsPausedCommand() {
698
698
  key: "workflow",
699
699
  required: false
700
700
  },
701
- loadHandler: async () => (await import("./paused.handler-BLUchSMD.mjs")).handleWorkflowsPaused
701
+ loadHandler: async () => (await import("./paused.handler-CzQkBKS6.mjs")).handleWorkflowsPaused
702
702
  });
703
703
  }
704
704
  //#endregion
@@ -792,7 +792,7 @@ function createWorkflowsRunCommand() {
792
792
  key: "payload",
793
793
  required: false
794
794
  }],
795
- loadHandler: async () => (await import("./run.handler-DZuUx0fi.mjs")).handleWorkflowsRun
795
+ loadHandler: async () => (await import("./run.handler-xeUVmlFk.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-BsrMMj5O.mjs")).handleWorkflowsTest
850
+ loadHandler: async () => (await import("./test.handler-B_C-T_IM.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-CmfcMX0t.mjs")).handleWorkflowsValidate
888
+ loadHandler: async () => (await import("./validate.handler-CWG5HyO3.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-BWsl4iYw.mjs")).handleWorkflowsList,
907
+ loadHandler: async () => (await import("./list.handler-fcyAKTQe.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-BWsl4iYw.mjs")).handleWorkflowsList
914
+ loadHandler: async () => (await import("./list.handler-fcyAKTQe.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.21",
3
+ "version": "0.0.23",
4
4
  "private": false,
5
5
  "description": "Command-line interface for creating, managing, and deploying Keystroke automations.",
6
6
  "type": "module",
@@ -39,19 +39,19 @@
39
39
  "tsdown": "0.21.10",
40
40
  "typescript": "^5.9.3",
41
41
  "vitest": "^4.1.5",
42
- "@keystrokehq/config": "0.0.2",
43
- "@keystroke/shared-types": "0.0.4",
44
42
  "@keystroke/local-memory": "0.0.1",
45
43
  "@keystroke/env-utils": "0.0.0",
44
+ "@keystrokehq/config": "0.0.2",
45
+ "@keystroke/shared-types": "0.0.5",
46
46
  "@keystroke/typescript-config": "0.0.0",
47
- "@keystroke/test-utils": "0.0.3",
48
47
  "@keystroke/utils": "0.0.0",
49
- "@keystroke/workflow-builder": "0.0.6",
48
+ "@keystroke/workflow-builder": "0.0.7",
49
+ "@keystrokehq/workflow-build-contracts": "0.0.3",
50
50
  "@keystrokehq/testing": "0.2.2",
51
+ "@keystroke/workflow-deploy": "0.0.6",
52
+ "@keystroke/workflow-sdk": "0.0.4",
51
53
  "@keystrokehq/core": "0.0.7",
52
- "@keystroke/workflow-deploy": "0.0.5",
53
- "@keystrokehq/workflow-build-contracts": "0.0.3",
54
- "@keystroke/workflow-sdk": "0.0.3"
54
+ "@keystroke/test-utils": "0.0.3"
55
55
  },
56
56
  "keywords": [
57
57
  "automation",