@keystrokehq/cli 0.0.18 → 0.0.19
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 +1 -1
- package/dist/{accept.handler-B7QzdKCh.mjs → accept.handler-BVmNNAgL.mjs} +1 -1
- package/dist/{admin-CYpulx_A.mjs → admin-DQlHFuXn.mjs} +9 -9
- package/dist/{agents-Co6Jy_N8.mjs → agents-Dd7UeQCw.mjs} +3 -3
- package/dist/{api-keys-BUCLzRv_.mjs → api-keys-BsMBFiD_.mjs} +5 -5
- package/dist/{api-DsK8M-ZH.mjs → api-nR61stdq.mjs} +3 -4
- package/dist/{auth-niNm-yNT.mjs → auth-ZTuuEoD6.mjs} +5 -5
- package/dist/{auth.handler-BTH-Qb00.mjs → auth.handler-C1dZBdaG.mjs} +2 -2
- package/dist/{build-tasks-GVuMLS0h-CCxCqd02.mjs → build-tasks-GVuMLS0h-BaPhhGXO.mjs} +1 -1
- package/dist/{build-workflows-CV4tBo6S-DhFBlp6m.mjs → build-workflows-CV4tBo6S-szwrAGWT.mjs} +3 -3
- package/dist/{build.handler-BmlXPhed.mjs → build.handler-DJrEMCBw.mjs} +1 -1
- package/dist/{clear.handler-BDlwBzX4.mjs → clear.handler-BgeAg2de.mjs} +1 -1
- package/dist/{commander-BE37hxR3.mjs → commander-C5qcOo8m.mjs} +1 -1
- package/dist/{connect-C9NMD8Ky.mjs → connect-BtBKoXpi.mjs} +2 -2
- package/dist/{connect.handler-C7kysvhz.mjs → connect.handler-E8CmLRSF.mjs} +2 -2
- package/dist/{context-Bid-Rqj7.mjs → context-BydAGTiB.mjs} +1 -1
- package/dist/{create.handler-Cp9CV6SN.mjs → create.handler-CBxIPC3r.mjs} +1 -1
- package/dist/{credential-requirements-DrrQ9x9P.mjs → credential-requirements-Ob-7H-0F.mjs} +1 -1
- package/dist/{credentials-fMfKVlEn.mjs → credentials-BGaRMclS.mjs} +5 -5
- package/dist/{credentials-DUkVbhvj.mjs → credentials-jRiXEr6P.mjs} +1 -1
- package/dist/{current-deployment-workflow-DiwUcKoB.mjs → current-deployment-workflow-BVliROAz.mjs} +2 -2
- package/dist/{current.handler-eCR4nClu.mjs → current.handler-DBl9S67d.mjs} +1 -1
- package/dist/{default-urls-CTQqM1_A.mjs → default-urls-BoSm4s9C.mjs} +1 -1
- package/dist/{delete.handler-D4ElSAcr.mjs → delete.handler-Buu7Ip0D.mjs} +1 -1
- package/dist/{deploy-DyZh--f7.mjs → deploy-BPDUTKZD.mjs} +1 -1
- package/dist/{deploy-B7LRWcp6.mjs → deploy-CzTlgAFj.mjs} +2 -2
- package/dist/{deploy.handler-DVnH-Niv.mjs → deploy.handler-CCcJ7y3A.mjs} +9 -9
- package/dist/{diff.handler-lIA2pRBX.mjs → diff.handler-DUVFixeG.mjs} +2 -2
- package/dist/{dist-WFPTDQB3.mjs → dist-Cx0RV8s7.mjs} +4 -4
- package/dist/{env.handler-BIzQLlmo.mjs → env.handler-C8kNFz2U.mjs} +4 -4
- package/dist/{import-module--8x5SLum-D7EiPjwl.mjs → import-module--8x5SLum-DjPUZr4i.mjs} +9 -8
- package/dist/{init-jaqNLGmB.mjs → init-DeeOVc9m.mjs} +2 -2
- package/dist/{init.handler-DamvbPEw.mjs → init.handler-BMdhpusQ.mjs} +1 -1
- package/dist/{inspect.handler-_UcN7dxE.mjs → inspect.handler-QyTo8rWO.mjs} +2 -2
- package/dist/{integration-catalog-m8tj_XlD.mjs → integration-catalog-CmvYPvI6.mjs} +1 -1
- package/dist/integrations-tXZM-84g.mjs +185 -0
- package/dist/{invites-VntHNMYk.mjs → invites-ClyAatBW.mjs} +4 -4
- package/dist/{invites.list.handler-CPl4QHfc.mjs → invites.list.handler-CPkK_tPM.mjs} +1 -1
- package/dist/{invites.resend.handler-BAtb3AX4.mjs → invites.resend.handler-DIRI7tS2.mjs} +1 -1
- package/dist/{invites.revoke.handler-qXOF1Vgx.mjs → invites.revoke.handler-CcXcDBlU.mjs} +1 -1
- package/dist/keystroke.mjs +25 -24
- package/dist/{list-enrichment-DYvr3XDb.mjs → list-enrichment-B9238wom.mjs} +1 -1
- package/dist/{list.handler-BdRsjRlf.mjs → list.handler-BB-Dcm5B.mjs} +1 -1
- package/dist/{list.handler-C_iBLBmS.mjs → list.handler-Cbc9rlBx.mjs} +1 -1
- package/dist/{list.handler-CEjKSezx.mjs → list.handler-ClPAPSWm.mjs} +2 -2
- package/dist/{list.handler-pHnPFep8.mjs → list.handler-DdFGHkqt.mjs} +3 -3
- package/dist/{list.handler-DUz1bJ4x.mjs → list.handler-Xl_F89kq.mjs} +1 -1
- package/dist/{list.handler-CJUFdmaU.mjs → list.handler-tnsRn-Rj.mjs} +1 -1
- package/dist/{listen-DLGZEQRL.mjs → listen-ksMVpdNa.mjs} +2 -2
- package/dist/{listen.handler-kaAvYk-B.mjs → listen.handler-DEJSBg8y.mjs} +1 -1
- package/dist/{logs-CcYqFKRU.mjs → logs-C-JxXsgc.mjs} +1 -1
- package/dist/{logs.handler-lboRKNoE.mjs → logs.handler-BIegqc2p.mjs} +1 -1
- package/dist/{members.add.handler-DBydP0SR.mjs → members.add.handler-D4ggN2Xi.mjs} +1 -1
- package/dist/{members.invite.handler-D4-7fiYC.mjs → members.invite.handler-BYIt6Oib.mjs} +1 -1
- package/dist/{members.list.handler-Z4cIbcNg.mjs → members.list.handler-CvpeYKC4.mjs} +1 -1
- package/dist/{members.remove.handler-J56D83O7.mjs → members.remove.handler-C4GBUVYE.mjs} +1 -1
- package/dist/{members.update.handler-B5rBv6dt.mjs → members.update.handler-TpM1oi0L.mjs} +1 -1
- package/dist/{org-DGS91uc-.mjs → org-DIGyb7XZ.mjs} +15 -15
- package/dist/{orgs.create.handler-B4naNUSN.mjs → orgs.create.handler-RIYhse_Q.mjs} +1 -1
- package/dist/{orgs.get.handler-Ci_JrT08.mjs → orgs.get.handler-BfOpbSom.mjs} +1 -1
- package/dist/{orgs.list.handler-CJ2byIEj.mjs → orgs.list.handler-BMgj9yTD.mjs} +1 -1
- package/dist/{paused.handler-BQSQvQhB.mjs → paused.handler-DAZ1EaLN.mjs} +1 -1
- package/dist/{projects-fWvIJQ80.mjs → projects-BndElPAx.mjs} +4 -2
- package/dist/{projects-D90_uEC2.mjs → projects-Cy6CH3fI.mjs} +1 -1
- package/dist/{register.handler-CleQJhtQ.mjs → register.handler-BXeh5mdb.mjs} +18 -9
- package/dist/{requirements.handler-B51sxQSy.mjs → requirements.handler-C5vobjdJ.mjs} +3 -3
- package/dist/{run-polling-CC6y2XXI.mjs → run-polling-BhOdFyh3.mjs} +1 -1
- package/dist/{run.handler-B31BpZJP.mjs → run.handler-BpLmwF_a.mjs} +3 -3
- package/dist/{runs-Bg_qDeQi.mjs → runs-DaSd4eXn.mjs} +2 -2
- package/dist/{schemas-B8c7Z5Iy.mjs → schemas-BxFPUGWT.mjs} +3 -2
- package/dist/{skills.command-JwKWpGvU.mjs → skills.command-DQc_qGAF.mjs} +1 -1
- package/dist/{src-B0tNjKMg.mjs → src-0XVwHXNp.mjs} +1 -1
- package/dist/{switch.handler-Cu81T2HY.mjs → switch.handler-CCjMrRZN.mjs} +1 -1
- package/dist/{sync-CXNveL61.mjs → sync-BdTQDZjP.mjs} +2 -2
- package/dist/{sync.handler-7g1yDt0H.mjs → sync.handler-DjY8nqbB.mjs} +3 -3
- package/dist/{task-BguWXIiH.mjs → task-BRmL2lmw.mjs} +1 -1
- package/dist/{task-target-build-BaMtXnN7.mjs → task-target-build-DCV0UDaz.mjs} +1 -1
- package/dist/task-target-deploy-runner.mjs +5 -5
- package/dist/{test-A5hz3c7j.mjs → test-TTQXrhHm.mjs} +2 -2
- package/dist/{test.handler-CJtaMZVy.mjs → test.handler-B7Ahe9ta.mjs} +4 -4
- package/dist/{test.handler-Cq2l7SAr.mjs → test.handler-CkkplyX6.mjs} +1 -1
- package/dist/{tool.handler-B-mOL128.mjs → tool.handler-DMfFZCRg.mjs} +5 -5
- package/dist/{trigger-manifest-Bq2zRbkV.mjs → trigger-manifest-DxdCjGz_.mjs} +1 -1
- package/dist/{upgrade-DhfpoyRV.mjs → upgrade-Cx-bUWUc.mjs} +1 -1
- package/dist/{upload.handler-D3-W_1kq.mjs → upload.handler-_d2WZwxd.mjs} +4 -4
- package/dist/{users.get.handler-Bd0OBI-E.mjs → users.get.handler-DIooG7Wy.mjs} +1 -1
- package/dist/{users.list.handler-CacJz6eC.mjs → users.list.handler-DdGW-DSg.mjs} +1 -1
- package/dist/{users.set-role.handler-bZMQtUR0.mjs → users.set-role.handler-Ek-kntLp.mjs} +1 -1
- package/dist/{validate.handler-Ccq66ki4.mjs → validate.handler-Cq2uJjXY.mjs} +1 -1
- package/dist/{workflow-build-_WNsLKwW.mjs → workflow-build-C8AiYxqp.mjs} +7 -7
- package/dist/{workflow-build-manifest-B2GqHyWE.mjs → workflow-build-manifest-BKKW9D05.mjs} +1 -1
- package/dist/{workflows-Dy2M9bEr.mjs → workflows-K6zetcqI.mjs} +14 -14
- package/dist/{writer-B-SpZ0G2-tq1MFgid.mjs → writer-B-SpZ0G2-CLh7sXRd.mjs} +1 -1
- package/package.json +3 -3
- package/dist/integrations-DRL3JmC8.mjs +0 -85
|
@@ -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-
|
|
5
|
+
import { i as requireClient } from "./context-BydAGTiB.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) {
|
|
@@ -4,7 +4,7 @@ import { a as ui, j as throwReportedCliExit, y as toErrorMessage } from "./keyst
|
|
|
4
4
|
import { i as projects } from "./dist-CIInPRGh.mjs";
|
|
5
5
|
import { i as writeJson } from "./output-BWcVRt-T.mjs";
|
|
6
6
|
import { t as requireWorkflowsDir } from "./resolve-project-CNQtOWE4.mjs";
|
|
7
|
-
import { s as build, t as WorkflowNotFoundError } from "./workflow-build-
|
|
7
|
+
import { s as build, t as WorkflowNotFoundError } from "./workflow-build-C8AiYxqp.mjs";
|
|
8
8
|
import { t as createBuildProgress } from "./build-progress-AR8xow4_.mjs";
|
|
9
9
|
import * as os from "node:os";
|
|
10
10
|
import * as path$1 from "node:path";
|
|
@@ -4,15 +4,15 @@ 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
5
|
import { r as getKeystrokeTmpDir } from "./dist-CIInPRGh.mjs";
|
|
6
6
|
import { t as assertWorkflowProjectRoot } from "./project-config-DudGRFPO.mjs";
|
|
7
|
-
import { a as FlowGraphSchema, r as WorkflowBuildManifestSchema } from "./workflow-build-manifest-
|
|
7
|
+
import { a as FlowGraphSchema, r as WorkflowBuildManifestSchema } from "./workflow-build-manifest-BKKW9D05.mjs";
|
|
8
8
|
import { t as AgentVersionManifestSchema } from "./agent-manifest-tIsqF2OP.mjs";
|
|
9
9
|
import { r as RelativeFilePathSchema } from "./file-metadata-lrX05iRt.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-P1v-Gssz.mjs";
|
|
11
11
|
import { t as resolveConfiguredBuildOutputDir } from "./utils-BMUWnz1P.mjs";
|
|
12
12
|
import { a as readAgentSandboxPackage, r as AGENT_VM_TOOLS_RUNTIME_RELATIVE_PATH } from "./agent-bundle-package-DWV6B_5q-FPT0bJaA.mjs";
|
|
13
13
|
import { a as prewarmFileContentCache, c as typedEntries, i as createFileContentCache, l as require_out, n as computeBuilderFingerprint, o as resetFileContentCache, r as computeWorkflowFingerprint, s as sha256String } from "./metadata-layout-Bv-B0nHj-B1c5giJ7.mjs";
|
|
14
|
-
import { a as getAgentArtifactPaths, c as hashWorkflowManifestForDisk, d as resolveOutputDir, i as createAgentOutputFiles, l as removeAgentArtifacts, n as BUILD_CACHE_FILE_NAME, o as hashAgentManifestForDisk, r as allOutputFilesExist, s as hashWorkflowFlowForDisk, t as AGENT_ARTIFACT_DIR_PREFIX, u as removeWorkflowArtifacts } from "./writer-B-SpZ0G2-
|
|
15
|
-
import { a as createDiscoveryFailure, c as createNamespaceStarExportDiscoveryError, d as isWorkflowLoadResult, f as loadWorkflowMetadataBatch, i as createAmbiguousExportDiscoveryError, l as isAgentLoadResult, o as createDuplicateWorkflowIdFailure, t as DuplicateWorkflowIdError, u as isTaskLoadResult } from "./import-module--8x5SLum-
|
|
14
|
+
import { a as getAgentArtifactPaths, c as hashWorkflowManifestForDisk, d as resolveOutputDir, i as createAgentOutputFiles, l as removeAgentArtifacts, n as BUILD_CACHE_FILE_NAME, o as hashAgentManifestForDisk, r as allOutputFilesExist, s as hashWorkflowFlowForDisk, t as AGENT_ARTIFACT_DIR_PREFIX, u as removeWorkflowArtifacts } from "./writer-B-SpZ0G2-CLh7sXRd.mjs";
|
|
15
|
+
import { a as createDiscoveryFailure, c as createNamespaceStarExportDiscoveryError, d as isWorkflowLoadResult, f as loadWorkflowMetadataBatch, i as createAmbiguousExportDiscoveryError, l as isAgentLoadResult, o as createDuplicateWorkflowIdFailure, t as DuplicateWorkflowIdError, u as isTaskLoadResult } from "./import-module--8x5SLum-DjPUZr4i.mjs";
|
|
16
16
|
import { a as literalString, n as identifierName, o as parseSourceFile, r as isNode } from "./oxc-B3KI3rf_-Cvx4Z-4H.mjs";
|
|
17
17
|
import { a as getLocalModuleSpecifier, c as removeAllMetadataArtifacts, d as resolveDefaultExportAssignment, f as resolveLocalModulePath, i as collectWorkflowImportNames, n as DISCOVERY_IGNORE, o as getVariableDeclarators, r as collectLocalWorkflowBindings, s as isExportedVariableStatement, t as DISCOVERY_GLOB, u as removeMetadataArtifacts } from "./source-analysis-BBg2E_6G-Ut7kYHOz.mjs";
|
|
18
18
|
import { n as parseRelativeFilePath } from "./normalize-path-CojS-CgQ-D4wSBHgG.mjs";
|
|
@@ -978,7 +978,7 @@ async function buildDiscoveredWorkflows(options) {
|
|
|
978
978
|
const failures = [...buildPlan.failures];
|
|
979
979
|
const warnings = [];
|
|
980
980
|
if (buildPlan.workflows.length > 0) {
|
|
981
|
-
const { buildWorkflowArtifacts } = await import("./build-workflows-CV4tBo6S-
|
|
981
|
+
const { buildWorkflowArtifacts } = await import("./build-workflows-CV4tBo6S-szwrAGWT.mjs");
|
|
982
982
|
const result = await buildWorkflowArtifacts({
|
|
983
983
|
entries: buildPlan.workflows,
|
|
984
984
|
workflowsByKey,
|
|
@@ -1002,7 +1002,7 @@ async function buildDiscoveredWorkflows(options) {
|
|
|
1002
1002
|
failures.push(...result.failures);
|
|
1003
1003
|
}
|
|
1004
1004
|
if (buildPlan.tasks.length > 0) {
|
|
1005
|
-
const { buildTaskArtifacts } = await import("./build-tasks-GVuMLS0h-
|
|
1005
|
+
const { buildTaskArtifacts } = await import("./build-tasks-GVuMLS0h-BaPhhGXO.mjs");
|
|
1006
1006
|
const result = await buildTaskArtifacts({
|
|
1007
1007
|
entries: buildPlan.tasks,
|
|
1008
1008
|
projectRoot: options.projectRoot,
|
|
@@ -1110,7 +1110,7 @@ async function createBuildPlan(options) {
|
|
|
1110
1110
|
const currentWorkflowIndex = workflowProgressIndex;
|
|
1111
1111
|
workflowProgressIndex += 1;
|
|
1112
1112
|
if (!loadResult?.ok) {
|
|
1113
|
-
const { createWorkflowMetadataFailure } = await import("./build-workflows-CV4tBo6S-
|
|
1113
|
+
const { createWorkflowMetadataFailure } = await import("./build-workflows-CV4tBo6S-szwrAGWT.mjs");
|
|
1114
1114
|
plan.failures.push(createWorkflowMetadataFailure(discoveredWorkflow, loadResult?.error));
|
|
1115
1115
|
continue;
|
|
1116
1116
|
}
|
|
@@ -1308,7 +1308,7 @@ async function runBuild(config, initialTargetBindingKeys, metadataRebuildDecisio
|
|
|
1308
1308
|
cacheResolvedBindingKeys,
|
|
1309
1309
|
releaseBundleMemory: config.releaseBundleMemory
|
|
1310
1310
|
};
|
|
1311
|
-
const { writeBuildOutput, writeTargetedBuildOutput } = await import("./writer-B-SpZ0G2-
|
|
1311
|
+
const { writeBuildOutput, writeTargetedBuildOutput } = await import("./writer-B-SpZ0G2-CLh7sXRd.mjs").then((n) => n.f).then((n) => n.t);
|
|
1312
1312
|
const writeResult = targetBindingKeys ? await writeTargetedBuildOutput({
|
|
1313
1313
|
artifacts: finalizedScopedArtifacts,
|
|
1314
1314
|
agentArtifacts,
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
import { n as SHA256HashSchema, t as JsonSchemaSchema } from "./common-AK0q0Oz0.mjs";
|
|
4
4
|
import { a as SourceLocationSchema, i as ImportSourceSchema, n as CallsiteFingerprintSchema, t as CallKindSchema } from "./source-analysis-Cs0CTBQk.mjs";
|
|
5
|
-
import { c as TriggerUploadDataSchema, i as ResolvedCredentialSetSchema, r as IntegrationScopeSchema, t as CredentialRequirementsSchema, u as WorkflowStepEntrySchema } from "./credential-requirements-
|
|
5
|
+
import { c as TriggerUploadDataSchema, i as ResolvedCredentialSetSchema, r as IntegrationScopeSchema, t as CredentialRequirementsSchema, u as WorkflowStepEntrySchema } from "./credential-requirements-Ob-7H-0F.mjs";
|
|
6
6
|
import { z } from "zod";
|
|
7
7
|
//#region ../../packages/workflow-build-contracts/src/flow-graph-schema.ts
|
|
8
8
|
const DecisionKindSchema = z.enum([
|
|
@@ -1,10 +1,10 @@
|
|
|
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-
|
|
4
|
+
import { t as createTypedCommand } from "./commander-C5qcOo8m.mjs";
|
|
5
5
|
import { n as SHA256HashSchema, t as JsonSchemaSchema } from "./common-AK0q0Oz0.mjs";
|
|
6
|
-
import { c as TriggerUploadDataSchema } from "./credential-requirements-
|
|
7
|
-
import { a as FlowGraphSchema, r as WorkflowBuildManifestSchema } from "./workflow-build-manifest-
|
|
6
|
+
import { c as TriggerUploadDataSchema } from "./credential-requirements-Ob-7H-0F.mjs";
|
|
7
|
+
import { a as FlowGraphSchema, r as WorkflowBuildManifestSchema } from "./workflow-build-manifest-BKKW9D05.mjs";
|
|
8
8
|
import { z } from "zod";
|
|
9
9
|
const GitProviderSchema = z.enum(["codestorage", "github"]);
|
|
10
10
|
const GitTreeEntryTypeSchema = z.enum(["file", "directory"]);
|
|
@@ -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-DJrEMCBw.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-DUVFixeG.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-C8kNFz2U.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-QyTo8rWO.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-
|
|
511
|
+
loadHandler: async () => (await import("./logs.handler-BIegqc2p.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-
|
|
701
|
+
loadHandler: async () => (await import("./paused.handler-DAZ1EaLN.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-
|
|
795
|
+
loadHandler: async () => (await import("./run.handler-BpLmwF_a.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-B7Ahe9ta.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-Cq2uJjXY.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-tnsRn-Rj.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-tnsRn-Rj.mjs")).handleWorkflowsList
|
|
915
915
|
}),
|
|
916
916
|
createWorkflowsBuildCommand(),
|
|
917
917
|
createWorkflowsTestCommand(),
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
import { n as __exportAll } from "./chunk-CH6r78ws.mjs";
|
|
4
4
|
import { f as getTriggersDir, n as BUILD_OUTPUT_DIR_NAME, p as getWorkflowArtifactPaths, t as BUILD_DIR_NAME } from "./layout-P1v-Gssz.mjs";
|
|
5
|
-
import { t as TriggerBuildManifestSchema } from "./trigger-manifest-
|
|
5
|
+
import { t as TriggerBuildManifestSchema } from "./trigger-manifest-DxdCjGz_.mjs";
|
|
6
6
|
import { t as __exportAll$1 } from "./rolldown-runtime-twds-ZHy-8uqgIurC.mjs";
|
|
7
7
|
import { s as sha256String } from "./metadata-layout-Bv-B0nHj-B1c5giJ7.mjs";
|
|
8
8
|
import { t as runWithConcurrency } from "./concurrency-gXn9Rw8x-BTlfau8D.mjs";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@keystrokehq/cli",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.19",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Command-line interface for creating, managing, and deploying Keystroke automations.",
|
|
6
6
|
"type": "module",
|
|
@@ -48,10 +48,10 @@
|
|
|
48
48
|
"@keystroke/utils": "0.0.0",
|
|
49
49
|
"@keystroke/workflow-builder": "0.0.5",
|
|
50
50
|
"@keystrokehq/core": "0.0.6",
|
|
51
|
-
"@keystrokehq/workflow-build-contracts": "0.0.2",
|
|
52
51
|
"@keystrokehq/testing": "0.2.1",
|
|
52
|
+
"@keystroke/workflow-sdk": "0.0.2",
|
|
53
53
|
"@keystroke/workflow-deploy": "0.0.4",
|
|
54
|
-
"@
|
|
54
|
+
"@keystrokehq/workflow-build-contracts": "0.0.2"
|
|
55
55
|
},
|
|
56
56
|
"keywords": [
|
|
57
57
|
"automation",
|
|
@@ -1,85 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
|
|
3
|
-
import { n as JsonOptionSchema, t as JSON_OPTION_CONFIG } from "./output-BWcVRt-T.mjs";
|
|
4
|
-
import { t as createTypedCommand } from "./commander-BE37hxR3.mjs";
|
|
5
|
-
import { t as ConnectionKindValues } from "./api-DsK8M-ZH.mjs";
|
|
6
|
-
import { z } from "zod";
|
|
7
|
-
//#region src/commands/integrations/integrations.command.ts
|
|
8
|
-
const IntegrationsListOptionsSchema = JsonOptionSchema.extend({
|
|
9
|
-
kind: z.enum(ConnectionKindValues).optional(),
|
|
10
|
-
search: z.string().optional(),
|
|
11
|
-
connected: z.boolean().optional(),
|
|
12
|
-
details: z.boolean().optional()
|
|
13
|
-
});
|
|
14
|
-
const INTEGRATIONS_LIST_OPTIONS_CONFIG = {
|
|
15
|
-
...JSON_OPTION_CONFIG,
|
|
16
|
-
kind: {
|
|
17
|
-
flag: "--kind <kind>",
|
|
18
|
-
description: `Filter by connection kind: ${ConnectionKindValues.join(" | ")}`
|
|
19
|
-
},
|
|
20
|
-
search: {
|
|
21
|
-
flag: "--search <query>",
|
|
22
|
-
description: "Case-insensitive substring match against publicId, name, and aliases"
|
|
23
|
-
},
|
|
24
|
-
connected: {
|
|
25
|
-
flag: "--connected",
|
|
26
|
-
description: "Only show integrations with at least one configured connection in the current org"
|
|
27
|
-
},
|
|
28
|
-
details: {
|
|
29
|
-
flag: "--details",
|
|
30
|
-
description: "Show connection names, IDs, scope, status, and default selection"
|
|
31
|
-
}
|
|
32
|
-
};
|
|
33
|
-
const IntegrationsRegisterOptionsSchema = JsonOptionSchema.extend({
|
|
34
|
-
integrationId: z.string().optional(),
|
|
35
|
-
clientApp: z.string().optional().describe("Internal credential set id holding clientId + clientSecret"),
|
|
36
|
-
displayName: z.string().optional().describe("Human-readable display name for the workspace integration")
|
|
37
|
-
});
|
|
38
|
-
const INTEGRATIONS_REGISTER_OPTIONS_CONFIG = {
|
|
39
|
-
...JSON_OPTION_CONFIG,
|
|
40
|
-
clientApp: {
|
|
41
|
-
flag: "--client-app <credentialSetId>",
|
|
42
|
-
description: "Internal credential set id holding clientId + clientSecret (required)"
|
|
43
|
-
},
|
|
44
|
-
displayName: {
|
|
45
|
-
flag: "--display-name <name>",
|
|
46
|
-
description: "Human-readable display name for the workspace integration"
|
|
47
|
-
}
|
|
48
|
-
};
|
|
49
|
-
function createIntegrationsCommand() {
|
|
50
|
-
return createTypedCommand({
|
|
51
|
-
name: "integrations",
|
|
52
|
-
description: "List Keystroke integrations available to your organization",
|
|
53
|
-
schema: IntegrationsListOptionsSchema,
|
|
54
|
-
optionsConfig: INTEGRATIONS_LIST_OPTIONS_CONFIG,
|
|
55
|
-
loadHandler: async () => (await import("./list.handler-CEjKSezx.mjs")).handleIntegrationsList,
|
|
56
|
-
subcommands: [createTypedCommand({
|
|
57
|
-
name: "list",
|
|
58
|
-
description: "List Keystroke integrations available to your organization",
|
|
59
|
-
schema: IntegrationsListOptionsSchema,
|
|
60
|
-
optionsConfig: INTEGRATIONS_LIST_OPTIONS_CONFIG,
|
|
61
|
-
loadHandler: async () => (await import("./list.handler-CEjKSezx.mjs")).handleIntegrationsList
|
|
62
|
-
}), createTypedCommand({
|
|
63
|
-
name: "register",
|
|
64
|
-
description: "Register a workspace provider app for future workspace-authored OAuth support",
|
|
65
|
-
schema: IntegrationsRegisterOptionsSchema,
|
|
66
|
-
optionsConfig: INTEGRATIONS_REGISTER_OPTIONS_CONFIG,
|
|
67
|
-
handler: async (opts, ctx) => {
|
|
68
|
-
const { handleIntegrationsRegister } = await import("./register.handler-CleQJhtQ.mjs");
|
|
69
|
-
await handleIntegrationsRegister({
|
|
70
|
-
integrationId: opts.integrationId,
|
|
71
|
-
clientAppCredentialSetId: opts.clientApp,
|
|
72
|
-
displayName: opts.displayName,
|
|
73
|
-
json: opts.json
|
|
74
|
-
}, ctx);
|
|
75
|
-
},
|
|
76
|
-
argument: {
|
|
77
|
-
name: "integrationId",
|
|
78
|
-
description: "Workspace integration id to register (e.g., acmeCrm)",
|
|
79
|
-
key: "integrationId"
|
|
80
|
-
}
|
|
81
|
-
})]
|
|
82
|
-
});
|
|
83
|
-
}
|
|
84
|
-
//#endregion
|
|
85
|
-
export { createIntegrationsCommand };
|