@keystrokehq/cli 0.0.17 → 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-BPwp_UAE.mjs → accept.handler-BVmNNAgL.mjs} +4 -4
- package/dist/{admin-Bb9Hx-gO.mjs → admin-DQlHFuXn.mjs} +11 -11
- package/dist/{agents-CbmvvOAx.mjs → agents-Dd7UeQCw.mjs} +10 -10
- package/dist/{api-keys-DJlyIf10.mjs → api-keys-BsMBFiD_.mjs} +6 -6
- package/dist/{api-jkf0TTgD.mjs → api-nR61stdq.mjs} +4 -5
- package/dist/{auth-DpDEkJz7.mjs → auth-ZTuuEoD6.mjs} +12 -7
- package/dist/{auth.handler-u3qmoUX0.mjs → auth.handler-C1dZBdaG.mjs} +60 -27
- package/dist/{build-agents-DseUtzd4-VYWtIZy9.mjs → build-agents-DseUtzd4-CthuIecx.mjs} +6 -6
- package/dist/{build-metadata-C8Ra_Gi--BdoyLQMl.mjs → build-metadata-C8Ra_Gi--L3l8w0rh.mjs} +7 -7
- package/dist/{build-progress-BZivcVz4.mjs → build-progress-AR8xow4_.mjs} +2 -2
- package/dist/{build-tasks-GVuMLS0h-p08mMOyK.mjs → build-tasks-GVuMLS0h-BaPhhGXO.mjs} +3 -3
- package/dist/{build-workflows-CV4tBo6S-knCnBKTc.mjs → build-workflows-CV4tBo6S-szwrAGWT.mjs} +10 -10
- package/dist/{build.handler-BNSC_zhQ.mjs → build.handler-DJrEMCBw.mjs} +7 -7
- package/dist/{clear-cache.handler-gr5VmEYB.mjs → clear-cache.handler-CTLQ1PIN.mjs} +3 -3
- package/dist/clear.handler-BgeAg2de.mjs +68 -0
- package/dist/{clear.handler-CtOZ4aRn.mjs → clear.handler-C_pXAeBG.mjs} +3 -2
- package/dist/{commander-D15UZVjp.mjs → commander-C5qcOo8m.mjs} +4 -4
- package/dist/{connect-DzSNDSmI.mjs → connect-BtBKoXpi.mjs} +3 -3
- package/dist/{connect.handler-DRO05ak3.mjs → connect.handler-E8CmLRSF.mjs} +5 -5
- package/dist/{context-B1L8pZsH.mjs → context-BydAGTiB.mjs} +49 -17
- package/dist/{create.handler-DF1Ye4nr.mjs → create.handler-CBxIPC3r.mjs} +3 -3
- package/dist/{credential-env-map-B2nVJXPn.mjs → credential-env-map-BA4LNI7x.mjs} +6 -5
- package/dist/{credential-requirements-FtBk5JVB.mjs → credential-requirements-Ob-7H-0F.mjs} +3 -3
- package/dist/{credential-schema-mismatch-CfyBUMPS.mjs → credential-schema-mismatch-z74ud-YZ.mjs} +1 -1
- package/dist/{credentials-VidBoOd7.mjs → credentials-BGaRMclS.mjs} +7 -7
- package/dist/{credentials-CiOwDS5y.mjs → credentials-jRiXEr6P.mjs} +1 -1
- package/dist/{current-deployment-workflow-BRUEdPrN.mjs → current-deployment-workflow-BVliROAz.mjs} +6 -6
- package/dist/{current.handler-QZQ-l84v.mjs → current.handler-DBl9S67d.mjs} +3 -3
- package/dist/{default-urls-BS4twrsS.mjs → default-urls-BoSm4s9C.mjs} +1 -1
- package/dist/{delete.handler-Bude0SVP.mjs → delete.handler-Buu7Ip0D.mjs} +2 -2
- package/dist/{deploy-CJbVB7e2.mjs → deploy-BPDUTKZD.mjs} +1 -1
- package/dist/{deploy-eshEEiP-.mjs → deploy-CzTlgAFj.mjs} +2 -2
- package/dist/{deploy-progress-DJHph1Fz.mjs → deploy-progress-DK87VKJ-.mjs} +2 -2
- package/dist/{deploy.handler-BxxWI7nV.mjs → deploy.handler-CCcJ7y3A.mjs} +20 -20
- package/dist/{detect-env-access-CwkOYeYM-CZIixHeR.mjs → detect-env-access-CwkOYeYM-CNTyUzme.mjs} +1 -1
- package/dist/{diff-utils-4OQTpP5s.mjs → diff-utils-B0ED-Igv.mjs} +1 -1
- package/dist/{diff.handler-CzrKCj7N.mjs → diff.handler-DUVFixeG.mjs} +7 -7
- package/dist/dist-CIInPRGh.mjs +1071 -0
- package/dist/{dist-FQYQ2FLm.mjs → dist-Cx0RV8s7.mjs} +15 -15
- package/dist/{env.handler-B3YDQIVE.mjs → env.handler-C8kNFz2U.mjs} +10 -10
- package/dist/{error-boundary-CyLcinp1.mjs → error-boundary-B8cmSwJH.mjs} +3 -3
- package/dist/{file-metadata-DaPPpiTh.mjs → file-metadata-lrX05iRt.mjs} +1 -1
- package/dist/{iam-command-utils-ByLX0A-V.mjs → iam-command-utils-CSZj4XlH.mjs} +2 -2
- package/dist/{import-module--8x5SLum-DaUNACER.mjs → import-module--8x5SLum-DjPUZr4i.mjs} +12 -11
- package/dist/{init-CWFJdKNs.mjs → init-DeeOVc9m.mjs} +3 -3
- package/dist/{init.handler-BZSoM76V.mjs → init.handler-BMdhpusQ.mjs} +8 -8
- package/dist/{inspect.handler-umc7of-r.mjs → inspect.handler-QyTo8rWO.mjs} +8 -8
- package/dist/{integration-catalog-BgT4mLzW.mjs → integration-catalog-CmvYPvI6.mjs} +3 -3
- package/dist/integrations-tXZM-84g.mjs +185 -0
- package/dist/{invites-Cqi7iyIN.mjs → invites-ClyAatBW.mjs} +5 -5
- package/dist/{invites.list.handler-CErgY35S.mjs → invites.list.handler-CPkK_tPM.mjs} +4 -4
- package/dist/{invites.resend.handler-DRCRIA4F.mjs → invites.resend.handler-DIRI7tS2.mjs} +4 -4
- package/dist/{invites.revoke.handler-C0FZdAR0.mjs → invites.revoke.handler-CcXcDBlU.mjs} +4 -4
- package/dist/keystroke.mjs +561 -209
- package/dist/{list-enrichment-C6u5eI0j.mjs → list-enrichment-B9238wom.mjs} +3 -3
- package/dist/{list.handler-CBEXiTAK.mjs → list.handler-BB-Dcm5B.mjs} +3 -3
- package/dist/{list.handler-c-8RpgB9.mjs → list.handler-BLkQKiV1.mjs} +17 -16
- package/dist/{list.handler-Cr_DFAae.mjs → list.handler-Cbc9rlBx.mjs} +3 -3
- package/dist/{list.handler-DYdNWjgk.mjs → list.handler-ClPAPSWm.mjs} +4 -4
- package/dist/{list.handler-D-YFoKLU.mjs → list.handler-DdFGHkqt.mjs} +7 -7
- package/dist/{list.handler-FlchXrKz.mjs → list.handler-Xl_F89kq.mjs} +4 -4
- package/dist/{list2.handler-T5v4EK20.mjs → list.handler-tnsRn-Rj.mjs} +7 -7
- package/dist/{listen-rHLiCWbn.mjs → listen-ksMVpdNa.mjs} +3 -3
- package/dist/{listen.handler-B9T58yAj.mjs → listen.handler-DEJSBg8y.mjs} +4 -4
- package/dist/logs-C-JxXsgc.mjs +58 -0
- package/dist/{logs.handler-DGcGN2qb.mjs → logs.handler-BIegqc2p.mjs} +4 -4
- package/dist/logs.handler-DyRoevtO.mjs +53 -0
- package/dist/{members.add.handler-DmYI43rZ.mjs → members.add.handler-D4ggN2Xi.mjs} +4 -4
- package/dist/{members.invite.handler-B_KVxv5m.mjs → members.invite.handler-BYIt6Oib.mjs} +4 -4
- package/dist/{members.list.handler-BtuuIgQS.mjs → members.list.handler-CvpeYKC4.mjs} +4 -4
- package/dist/{members.remove.handler-Lvg-CqVv.mjs → members.remove.handler-C4GBUVYE.mjs} +4 -4
- package/dist/{members.update.handler-D-8izeso.mjs → members.update.handler-TpM1oi0L.mjs} +4 -4
- package/dist/{normalize-path-CojS-CgQ-DFTvyA27.mjs → normalize-path-CojS-CgQ-D4wSBHgG.mjs} +1 -1
- package/dist/{org-DUCts2MV.mjs → org-DIGyb7XZ.mjs} +17 -17
- package/dist/{orgs.create.handler-vXQgDJZ_.mjs → orgs.create.handler-RIYhse_Q.mjs} +4 -4
- package/dist/{orgs.get.handler-D_Jfl18x.mjs → orgs.get.handler-BfOpbSom.mjs} +4 -4
- package/dist/{orgs.list.handler-BNjoTJvV.mjs → orgs.list.handler-BMgj9yTD.mjs} +4 -4
- package/dist/{output-CGdYhH0p.mjs → output-BWcVRt-T.mjs} +1 -1
- package/dist/paths-JzzFkXQA-CEipIeVl.mjs +36 -0
- package/dist/{paused.handler-ST9dCe8E.mjs → paused.handler-DAZ1EaLN.mjs} +3 -3
- package/dist/{projects-DfaG_3WP.mjs → projects-BndElPAx.mjs} +5 -3
- package/dist/{projects-CbquwUlm.mjs → projects-Cy6CH3fI.mjs} +5 -5
- package/dist/{register.handler-BAx0IC-u.mjs → register.handler-BXeh5mdb.mjs} +20 -11
- package/dist/{requirements.handler-D5dFi7XZ.mjs → requirements.handler-C5vobjdJ.mjs} +7 -7
- package/dist/resolve-cli-credentials-DytxgMwn.mjs +47 -0
- package/dist/{resolve-project-CURYMjex.mjs → resolve-project-CNQtOWE4.mjs} +7 -7
- package/dist/{run-polling-BWcLQvm0.mjs → run-polling-BhOdFyh3.mjs} +5 -5
- package/dist/{run.handler-BiBDLoeH.mjs → run.handler-BpLmwF_a.mjs} +9 -9
- package/dist/{runs-Bc3zjk7V.mjs → runs-DaSd4eXn.mjs} +4 -4
- package/dist/{schemas-DodkHgnS.mjs → schemas-BxFPUGWT.mjs} +3 -2
- package/dist/{skill-installer-DkRJ6oLi.mjs → skill-installer-BBgN2tzW.mjs} +2 -2
- package/dist/{skills-sync.handler-C4ztv1Vu.mjs → skills-sync.handler-DOxudKmV.mjs} +3 -3
- package/dist/{skills.command-DuL4kLUi.mjs → skills.command-DQc_qGAF.mjs} +5 -5
- package/dist/{skills.handler-R5KAbioE.mjs → skills.handler-Do9I3dQS.mjs} +1 -1
- package/dist/{source-analysis-BBg2E_6G-BQqm16RR.mjs → source-analysis-BBg2E_6G-Ut7kYHOz.mjs} +4 -4
- package/dist/{spinner-progress-DfkMzwGx.mjs → spinner-progress-Bx-fYItP.mjs} +1 -1
- package/dist/{src-BQdOWkyv.mjs → src-0XVwHXNp.mjs} +1 -1
- package/dist/{status.handler-DxCJRm1n.mjs → status.handler-BsVtDW_V.mjs} +19 -4
- package/dist/{switch.handler-CTwhIcaQ.mjs → switch.handler-CCjMrRZN.mjs} +5 -5
- package/dist/{sync-Pssitj6K.mjs → sync-BdTQDZjP.mjs} +2 -2
- package/dist/{sync.handler-Be0U3x-n.mjs → sync.handler-DjY8nqbB.mjs} +9 -9
- package/dist/{task-BNXDZU71.mjs → task-BRmL2lmw.mjs} +2 -2
- package/dist/{task-target-build-BG6cC3bz.mjs → task-target-build-DCV0UDaz.mjs} +8 -7
- package/dist/{task-target-deploy-CZBGNC0H-Ck724yF4.mjs → task-target-deploy-CZBGNC0H-I-tvkGCC.mjs} +1 -1
- package/dist/{task-target-deploy-gMQC8kXU.mjs → task-target-deploy-DmpCWE3u.mjs} +1 -1
- package/dist/task-target-deploy-runner.mjs +22 -17
- package/dist/{test-CKBpp1gg.mjs → test-TTQXrhHm.mjs} +4 -4
- package/dist/{test.handler-DkizZhVu.mjs → test.handler-B7Ahe9ta.mjs} +12 -12
- package/dist/{test.handler-Dk3CmTa7.mjs → test.handler-CkkplyX6.mjs} +2 -2
- package/dist/{tool.handler--IzRGelu.mjs → tool.handler-DMfFZCRg.mjs} +34 -14
- package/dist/{trigger-artifacts-RizI57RC-CxHwCkQ_.mjs → trigger-artifacts-RizI57RC-DjhOsdOm.mjs} +4 -4
- package/dist/{trigger-manifest-PTjVYL1r.mjs → trigger-manifest-DxdCjGz_.mjs} +1 -1
- package/dist/{upgrade-cH9I_pZq.mjs → upgrade-Cx-bUWUc.mjs} +2 -2
- package/dist/{upgrade.handler-CXEF4ue0.mjs → upgrade.handler-5qSzPC7D.mjs} +1 -1
- package/dist/{upload.handler-CpKuAaQ_.mjs → upload.handler-_d2WZwxd.mjs} +10 -10
- package/dist/{users.get.handler-D0WO6D1K.mjs → users.get.handler-DIooG7Wy.mjs} +4 -4
- package/dist/{users.list.handler-BSTIniF1.mjs → users.list.handler-DdGW-DSg.mjs} +4 -4
- package/dist/{users.set-role.handler-DAKdSkbn.mjs → users.set-role.handler-Ek-kntLp.mjs} +4 -4
- package/dist/{utils-VC0Vl_pm.mjs → utils-BMUWnz1P.mjs} +2 -2
- package/dist/{validate.handler-I8LY-UkG.mjs → validate.handler-Cq2uJjXY.mjs} +8 -8
- package/dist/{workflow-build-C9rQQ4qU.mjs → workflow-build-C8AiYxqp.mjs} +23 -23
- package/dist/{workflow-build-manifest-OPFqFD6f.mjs → workflow-build-manifest-BKKW9D05.mjs} +3 -3
- package/dist/{workflow-bundler-BzHk73PM-AIB4-u4Y.mjs → workflow-bundler-BzHk73PM-WI31RJjH.mjs} +3 -3
- package/dist/{workflows-CL1jYSLR.mjs → workflows-K6zetcqI.mjs} +16 -16
- package/dist/{writer-B-SpZ0G2-olEAgSLc.mjs → writer-B-SpZ0G2-CLh7sXRd.mjs} +6 -6
- package/package.json +5 -5
- package/dist/clear.handler-Dpe05eTq.mjs +0 -42
- package/dist/dist-BF6r1hfv.mjs +0 -308
- package/dist/integrations-DKtl_aES.mjs +0 -85
- package/dist/logs-DUwdYZB-.mjs +0 -28
- package/dist/logs.handler-dcRq-zoc.mjs +0 -35
- package/dist/{agent-bundle-package-DWV6B_5q-rRTPU13L.mjs → agent-bundle-package-DWV6B_5q-FPT0bJaA.mjs} +0 -0
- package/dist/{agent-manifest-CZdlCTFs.mjs → agent-manifest-tIsqF2OP.mjs} +0 -0
- package/dist/{browser-3cUiPlk2.mjs → browser-BpJ8ut9z.mjs} +0 -0
- package/dist/{common-BaGFkj3n.mjs → common-AK0q0Oz0.mjs} +0 -0
- package/dist/{concurrency-gXn9Rw8x-BI6HQNfC.mjs → concurrency-gXn9Rw8x-BTlfau8D.mjs} +0 -0
- package/dist/{cron-parser-C2eJD0yD.mjs → cron-parser-Dw_cWzFu.mjs} +0 -0
- package/dist/{declared-credential-requirements-B6h4WRv4.mjs → declared-credential-requirements-D6KT-r-e.mjs} +0 -0
- package/dist/{layout-CXkZEsXI.mjs → layout-P1v-Gssz.mjs} +0 -0
- package/dist/{metadata-layout-Bv-B0nHj-CqlcZz_g.mjs → metadata-layout-Bv-B0nHj-B1c5giJ7.mjs} +1 -1
- package/dist/{oxc-B3KI3rf_-DdiZWqe2.mjs → oxc-B3KI3rf_-Cvx4Z-4H.mjs} +0 -0
- package/dist/{project-config-CsBMT4TL.mjs → project-config-DudGRFPO.mjs} +1 -1
- package/dist/{read-credential-keys-77a91T8M-DMmY6oDW.mjs → read-credential-keys-77a91T8M-B0eiobOd.mjs} +0 -0
- package/dist/{rolldown-runtime-twds-ZHy-CO5ir_za.mjs → rolldown-runtime-twds-ZHy-8uqgIurC.mjs} +0 -0
- package/dist/{run-polling-CwlzB5-9.mjs → run-polling-DARidqo-.mjs} +0 -0
- package/dist/{schema-O9xTWad_.mjs → schema-BjH_e4Fo.mjs} +0 -0
- package/dist/{schema-_FQrHcIS.mjs → schema-Lbp5lGJu.mjs} +0 -0
- package/dist/{schema-display-CNqiYBIb.mjs → schema-display-NVEl_DFY.mjs} +0 -0
- package/dist/{source-analysis-CJPymdaA.mjs → source-analysis-Cs0CTBQk.mjs} +0 -0
- package/dist/{types-D04ah3uY.mjs → types-BMBuhHhW.mjs} +0 -0
- package/dist/{upload-wwSPAC5_.mjs → upload-BbcMkyVl.mjs} +1 -1
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
3
|
import { n as __exportAll } from "./chunk-CH6r78ws.mjs";
|
|
4
|
-
import { t as assertWorkflowProjectRoot } from "./project-config-
|
|
5
|
-
import { n as SHA256HashSchema } from "./common-
|
|
6
|
-
import { c as TriggerUploadDataSchema, d as collectCredentialRequirementEntries } from "./credential-requirements-
|
|
7
|
-
import { a as FlowGraphSchema, r as WorkflowBuildManifestSchema } from "./workflow-build-manifest-
|
|
8
|
-
import { t as AgentVersionManifestSchema } from "./agent-manifest-
|
|
9
|
-
import { n as TaskBuildManifestSchema } from "./task-
|
|
10
|
-
import { n as FileMetadataSchema } from "./file-metadata-
|
|
11
|
-
import { t as computeProjectSnapshotHash } from "./task-target-deploy-CZBGNC0H-
|
|
12
|
-
import { a as MANIFEST_FILE_NAME, d as getMetadataRoot, f as getTriggersDir, m as getWorkflowManifestPath, p as getWorkflowArtifactPaths, t as BUILD_DIR_NAME } from "./layout-
|
|
13
|
-
import { n as resolveProjectBuildOutputDir } from "./utils-
|
|
14
|
-
import { t as TriggerBuildManifestSchema } from "./trigger-manifest-
|
|
15
|
-
import { t as batchUpload } from "./upload-
|
|
16
|
-
import { createReadStream } from "node:fs";
|
|
17
|
-
import * as fs from "node:fs/promises";
|
|
18
|
-
import { stat } from "node:fs/promises";
|
|
4
|
+
import { t as assertWorkflowProjectRoot } from "./project-config-DudGRFPO.mjs";
|
|
5
|
+
import { n as SHA256HashSchema } from "./common-AK0q0Oz0.mjs";
|
|
6
|
+
import { c as TriggerUploadDataSchema, d as collectCredentialRequirementEntries } from "./credential-requirements-Ob-7H-0F.mjs";
|
|
7
|
+
import { a as FlowGraphSchema, r as WorkflowBuildManifestSchema } from "./workflow-build-manifest-BKKW9D05.mjs";
|
|
8
|
+
import { t as AgentVersionManifestSchema } from "./agent-manifest-tIsqF2OP.mjs";
|
|
9
|
+
import { n as TaskBuildManifestSchema } from "./task-BRmL2lmw.mjs";
|
|
10
|
+
import { n as FileMetadataSchema } from "./file-metadata-lrX05iRt.mjs";
|
|
11
|
+
import { t as computeProjectSnapshotHash } from "./task-target-deploy-CZBGNC0H-I-tvkGCC.mjs";
|
|
12
|
+
import { a as MANIFEST_FILE_NAME, d as getMetadataRoot, f as getTriggersDir, m as getWorkflowManifestPath, p as getWorkflowArtifactPaths, t as BUILD_DIR_NAME } from "./layout-P1v-Gssz.mjs";
|
|
13
|
+
import { n as resolveProjectBuildOutputDir } from "./utils-BMUWnz1P.mjs";
|
|
14
|
+
import { t as TriggerBuildManifestSchema } from "./trigger-manifest-DxdCjGz_.mjs";
|
|
15
|
+
import { t as batchUpload } from "./upload-BbcMkyVl.mjs";
|
|
19
16
|
import * as path$1 from "node:path";
|
|
20
17
|
import path from "node:path";
|
|
18
|
+
import * as fs from "node:fs/promises";
|
|
19
|
+
import { stat } from "node:fs/promises";
|
|
20
|
+
import { createReadStream } from "node:fs";
|
|
21
21
|
import { createHash } from "node:crypto";
|
|
22
22
|
//#region ../../packages/workflow-deploy/dist/index.mjs
|
|
23
23
|
var dist_exports = /* @__PURE__ */ __exportAll({
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { i as writeJson } from "./output-
|
|
6
|
-
import { i as requireClient } from "./context-
|
|
7
|
-
import { n as CredentialConnectionIdSchema, r as CredentialScopeSchema, t as ConnectionStatusSchema } from "./schema-
|
|
8
|
-
import { a as readManifestsFromOutDir } from "./dist-
|
|
9
|
-
import { t as requireWorkflowsDir } from "./resolve-project-
|
|
10
|
-
import { t as getIntegrationCatalog } from "./integration-catalog-
|
|
11
|
-
import { t as groupCredentialRequirements } from "./credentials-
|
|
3
|
+
import { D as CliExitError, _ as isAuthError, a as ui, j as throwReportedCliExit, m as REAUTH_HINT, n as style, t as ANSI, v as isNetworkError, y as toErrorMessage } from "./keystroke.mjs";
|
|
4
|
+
import { i as projects } from "./dist-CIInPRGh.mjs";
|
|
5
|
+
import { i as writeJson } from "./output-BWcVRt-T.mjs";
|
|
6
|
+
import { i as requireClient } from "./context-BydAGTiB.mjs";
|
|
7
|
+
import { n as CredentialConnectionIdSchema, r as CredentialScopeSchema, t as ConnectionStatusSchema } from "./schema-BjH_e4Fo.mjs";
|
|
8
|
+
import { a as readManifestsFromOutDir } from "./dist-Cx0RV8s7.mjs";
|
|
9
|
+
import { t as requireWorkflowsDir } from "./resolve-project-CNQtOWE4.mjs";
|
|
10
|
+
import { t as getIntegrationCatalog } from "./integration-catalog-CmvYPvI6.mjs";
|
|
11
|
+
import { t as groupCredentialRequirements } from "./credentials-jRiXEr6P.mjs";
|
|
12
12
|
import { z } from "zod";
|
|
13
13
|
import Table from "cli-table3";
|
|
14
14
|
//#region ../../packages/shared-types/src/credentials/api/responses.ts
|
|
@@ -119,7 +119,7 @@ function isCredentialNotConfiguredError(error) {
|
|
|
119
119
|
async function handleWorkflowsEnv(options, ctx) {
|
|
120
120
|
const client = requireClient(ctx);
|
|
121
121
|
const workflowsDir = await requireWorkflowsDir(options.path);
|
|
122
|
-
|
|
122
|
+
projects.track(workflowsDir);
|
|
123
123
|
const manifests = await readManifestsFromOutDir(workflowsDir, options.workflow);
|
|
124
124
|
if (manifests.length === 0) if (options.workflow) {
|
|
125
125
|
ui.error(`Workflow "${options.workflow}" not found.`);
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
|
-
import {
|
|
4
|
-
import { r as isJsonMode } from "./output-
|
|
5
|
-
import { n as renderCredentialSchemaMismatchText, r as writeCredentialSchemaMismatchJson, t as isCredentialSchemaMismatchErrorLike } from "./credential-schema-mismatch-
|
|
3
|
+
import { D as CliExitError, P as logger, a as ui, v as isNetworkError, y as toErrorMessage } from "./keystroke.mjs";
|
|
4
|
+
import { r as isJsonMode } from "./output-BWcVRt-T.mjs";
|
|
5
|
+
import { n as renderCredentialSchemaMismatchText, r as writeCredentialSchemaMismatchJson, t as isCredentialSchemaMismatchErrorLike } from "./credential-schema-mismatch-z74ud-YZ.mjs";
|
|
6
6
|
//#region src/lib/error-boundary.ts
|
|
7
7
|
async function withErrorBoundary(commandName, fn, options = {}) {
|
|
8
8
|
const jsonMode = options.json ?? isJsonMode({});
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
|
-
import { a as SourceLocationSchema, r as CapturedVariableSchema } from "./source-analysis-
|
|
3
|
+
import { a as SourceLocationSchema, r as CapturedVariableSchema } from "./source-analysis-Cs0CTBQk.mjs";
|
|
4
4
|
import { z } from "zod";
|
|
5
5
|
z.enum([
|
|
6
6
|
"pending",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
|
-
import {
|
|
4
|
-
import { a as writeJsonError } from "./output-
|
|
3
|
+
import { a as ui, g as getHttpStatus, j as throwReportedCliExit, y as toErrorMessage } from "./keystroke.mjs";
|
|
4
|
+
import { a as writeJsonError } from "./output-BWcVRt-T.mjs";
|
|
5
5
|
//#region src/lib/iam-command-utils.ts
|
|
6
6
|
function requireOrganizationId(ctx) {
|
|
7
7
|
if (ctx.organizationId) return ctx.organizationId;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
|
-
import { n as findProjectRoot } from "./project-config-
|
|
4
|
-
import { c as optionalDescriptionString$1, i as createStructuralSchema$1, l as optionalTrimmedNonEmptyString$1, o as idNoSpacesString, r as anyZodSchemaSchema$1, s as jsonSchemaObject$1, t as CredentialSetManifestSchema$1, u as trimmedNonEmptyString$1 } from "./schemas-
|
|
5
|
-
import { n as DeclaredCredentialRequirementSchema } from "./credential-requirements-
|
|
6
|
-
import { a as FlowGraphSchema, i as WorkflowCoreManifestSchema, n as WORKFLOW_MANIFEST_SCHEMA_VERSION } from "./workflow-build-manifest-
|
|
7
|
-
import { t as parseCronExpression } from "./cron-parser-
|
|
8
|
-
import { t as runWithConcurrency } from "./concurrency-gXn9Rw8x-
|
|
3
|
+
import { n as findProjectRoot } from "./project-config-DudGRFPO.mjs";
|
|
4
|
+
import { c as optionalDescriptionString$1, i as createStructuralSchema$1, l as optionalTrimmedNonEmptyString$1, o as idNoSpacesString, r as anyZodSchemaSchema$1, s as jsonSchemaObject$1, t as CredentialSetManifestSchema$1, u as trimmedNonEmptyString$1 } from "./schemas-BxFPUGWT.mjs";
|
|
5
|
+
import { n as DeclaredCredentialRequirementSchema } from "./credential-requirements-Ob-7H-0F.mjs";
|
|
6
|
+
import { a as FlowGraphSchema, i as WorkflowCoreManifestSchema, n as WORKFLOW_MANIFEST_SCHEMA_VERSION } from "./workflow-build-manifest-BKKW9D05.mjs";
|
|
7
|
+
import { t as parseCronExpression } from "./cron-parser-Dw_cWzFu.mjs";
|
|
8
|
+
import { t as runWithConcurrency } from "./concurrency-gXn9Rw8x-BTlfau8D.mjs";
|
|
9
9
|
import { createRequire } from "node:module";
|
|
10
10
|
import * as os from "node:os";
|
|
11
11
|
import * as path$1 from "node:path";
|
|
@@ -347,7 +347,7 @@ const IANATimezoneSchema = z.enum([
|
|
|
347
347
|
"Asia/Doha"
|
|
348
348
|
]);
|
|
349
349
|
//#endregion
|
|
350
|
-
//#region ../../packages/core/dist/chunks/schema-
|
|
350
|
+
//#region ../../packages/core/dist/chunks/schema-RilQR7M-.mjs
|
|
351
351
|
const MAX_JSON_DEPTH = 20;
|
|
352
352
|
function buildJsonValueSchema(depth) {
|
|
353
353
|
const primitives = z.union([
|
|
@@ -381,10 +381,11 @@ function trimmedNonEmptyString(fieldName) {
|
|
|
381
381
|
}
|
|
382
382
|
/**
|
|
383
383
|
* Non-empty trimmed string for credential definition ids.
|
|
384
|
-
*
|
|
384
|
+
* Allows namespaced ids such as `keystroke:slack` plus letters, numbers,
|
|
385
|
+
* hyphens, and underscores.
|
|
385
386
|
*/
|
|
386
387
|
function credentialSetIdString(fieldName) {
|
|
387
|
-
return z.string().trim().min(1, { error: `${fieldName} cannot be empty` }).max(255, { error: `${fieldName} cannot exceed 255 characters` }).refine((s) => /^[a-zA-Z0-9_
|
|
388
|
+
return z.string().trim().min(1, { error: `${fieldName} cannot be empty` }).max(255, { error: `${fieldName} cannot exceed 255 characters` }).refine((s) => /^[a-zA-Z0-9_:-]+$/.test(s), { error: `${fieldName} must only contain letters, numbers, hyphens, underscores, and colons` });
|
|
388
389
|
}
|
|
389
390
|
function optionalTrimmedNonEmptyString(fieldName) {
|
|
390
391
|
return trimmedNonEmptyString(fieldName).optional();
|
|
@@ -396,7 +397,7 @@ function optionalDescriptionString(fieldName) {
|
|
|
396
397
|
return descriptionString(fieldName).optional();
|
|
397
398
|
}
|
|
398
399
|
//#endregion
|
|
399
|
-
//#region ../../packages/core/dist/chunks/schemas-
|
|
400
|
+
//#region ../../packages/core/dist/chunks/schemas-CUxIyWrr.mjs
|
|
400
401
|
/**
|
|
401
402
|
* Shared constants for the credential/connection system.
|
|
402
403
|
* Defined in core (bottom of dependency chain) so all packages can import them.
|
|
@@ -610,7 +611,7 @@ z.object({
|
|
|
610
611
|
connections: z.array(connectionConfigSchema).readonly().optional()
|
|
611
612
|
});
|
|
612
613
|
//#endregion
|
|
613
|
-
//#region ../../packages/core/dist/chunks/schemas-
|
|
614
|
+
//#region ../../packages/core/dist/chunks/schemas-B8U1MF_0.mjs
|
|
614
615
|
const SourceLocationSchema = z.object({
|
|
615
616
|
filePath: z.string().min(1),
|
|
616
617
|
absoluteFilePath: z.string().min(1).optional(),
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
|
-
import { t as createTypedCommand } from "./commander-
|
|
4
|
-
import { t as SKILL_INSTALL_METHODS } from "./types-
|
|
3
|
+
import { t as createTypedCommand } from "./commander-C5qcOo8m.mjs";
|
|
4
|
+
import { t as SKILL_INSTALL_METHODS } from "./types-BMBuhHhW.mjs";
|
|
5
5
|
import { z } from "zod";
|
|
6
6
|
//#region src/commands/init/init.command.ts
|
|
7
7
|
const InitOptionsSchema = z.object({
|
|
@@ -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-BMdhpusQ.mjs")).handleInit
|
|
49
49
|
});
|
|
50
50
|
}
|
|
51
51
|
//#endregion
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { a as writeProjectConfig, i as readProjectConfig, r as getProjectConfigPath } from "./project-config-
|
|
6
|
-
import { i as requireClient } from "./context-
|
|
7
|
-
import { i as UnknownSkillAgentError, n as resolveSkillInstallChoices, r as installKeystrokeAgentSkills, t as summarizeSkillInstall } from "./skill-installer-
|
|
3
|
+
import { D as CliExitError, a as ui, i as fetchLatestNpmPackageVersion } from "./keystroke.mjs";
|
|
4
|
+
import { i as projects } from "./dist-CIInPRGh.mjs";
|
|
5
|
+
import { a as writeProjectConfig, i as readProjectConfig, r as getProjectConfigPath } from "./project-config-DudGRFPO.mjs";
|
|
6
|
+
import { i as requireClient } from "./context-BydAGTiB.mjs";
|
|
7
|
+
import { i as UnknownSkillAgentError, n as resolveSkillInstallChoices, r as installKeystrokeAgentSkills, t as summarizeSkillInstall } from "./skill-installer-BBgN2tzW.mjs";
|
|
8
8
|
import { createRequire } from "node:module";
|
|
9
|
-
import { readFileSync } from "node:fs";
|
|
10
|
-
import { access, mkdir, readFile, writeFile } from "node:fs/promises";
|
|
11
9
|
import path from "node:path";
|
|
10
|
+
import { access, mkdir, readFile, writeFile } from "node:fs/promises";
|
|
11
|
+
import { readFileSync } from "node:fs";
|
|
12
12
|
import { cancel, isCancel, text } from "@clack/prompts";
|
|
13
13
|
//#region src/lib/keystroke-scaffold-version-ranges.ts
|
|
14
14
|
const WORKFLOW_CORE_PACKAGE_NAME = "@keystrokehq/core";
|
|
@@ -405,7 +405,7 @@ async function handleInit(options, ctx) {
|
|
|
405
405
|
});
|
|
406
406
|
ui.hint(`Project "${projectName}" is now tracked.`);
|
|
407
407
|
ui.hint(`Project ID: ${projectId}`);
|
|
408
|
-
await
|
|
408
|
+
await projects.track(targetDir, { name: projectName });
|
|
409
409
|
await installAgentSkillsForInit(targetDir, options);
|
|
410
410
|
if (options.scaffold) {
|
|
411
411
|
const [workflowCoreVersionRange, configVersionRange] = await Promise.all([workflowCoreScaffoldVersionRange(), configScaffoldVersionRange()]);
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { i as writeJson } from "./output-
|
|
6
|
-
import { i as requireClient, t as assertProjectConfigMatchesAuthenticatedOrg } from "./context-
|
|
7
|
-
import { i as resolveTypeHint } from "./schema-display-
|
|
8
|
-
import { n as resolveLocalWorkflowManifest, r as resolveProjectContext, t as lookupCurrentDeploymentWorkflow } from "./current-deployment-workflow-
|
|
3
|
+
import { a as ui, j as throwReportedCliExit, n as style, t as ANSI, y as toErrorMessage } from "./keystroke.mjs";
|
|
4
|
+
import { i as projects } from "./dist-CIInPRGh.mjs";
|
|
5
|
+
import { i as writeJson } from "./output-BWcVRt-T.mjs";
|
|
6
|
+
import { i as requireClient, t as assertProjectConfigMatchesAuthenticatedOrg } from "./context-BydAGTiB.mjs";
|
|
7
|
+
import { i as resolveTypeHint } from "./schema-display-NVEl_DFY.mjs";
|
|
8
|
+
import { n as resolveLocalWorkflowManifest, r as resolveProjectContext, t as lookupCurrentDeploymentWorkflow } from "./current-deployment-workflow-BVliROAz.mjs";
|
|
9
9
|
import dayjs from "dayjs";
|
|
10
10
|
//#region src/commands/workflows/inspect/inspect-display.ts
|
|
11
11
|
function formatBuildTimestamp(iso) {
|
|
@@ -104,7 +104,7 @@ async function handleWorkflowsInspect(options, ctx) {
|
|
|
104
104
|
async function handleInspectLocal(options, ctx) {
|
|
105
105
|
const resolved = await resolveLocalWorkflowManifest(options.workflow, options.path, { jsonMode: ctx.jsonMode });
|
|
106
106
|
const workflowsDir = resolved.workflowsDir;
|
|
107
|
-
|
|
107
|
+
projects.track(workflowsDir);
|
|
108
108
|
if (ctx.jsonMode) {
|
|
109
109
|
writeJson(resolved.manifest);
|
|
110
110
|
return;
|
|
@@ -113,7 +113,7 @@ async function handleInspectLocal(options, ctx) {
|
|
|
113
113
|
}
|
|
114
114
|
async function handleInspectDeployed(options, ctx) {
|
|
115
115
|
const resolved = await resolveProjectContext(options.workflow, options.path, { jsonMode: ctx.jsonMode });
|
|
116
|
-
|
|
116
|
+
projects.track(resolved.workflowsDir);
|
|
117
117
|
const client = requireClient(ctx);
|
|
118
118
|
await assertProjectConfigMatchesAuthenticatedOrg(client, { organizationId: resolved.organizationId });
|
|
119
119
|
let deploymentLookup;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
|
-
import {
|
|
4
|
-
import { a as writeJsonError } from "./output-
|
|
5
|
-
import { i as requireClient } from "./context-
|
|
3
|
+
import { D as CliExitError, _ as isAuthError, a as ui, j as throwReportedCliExit, m as REAUTH_HINT, v as isNetworkError, y as toErrorMessage } from "./keystroke.mjs";
|
|
4
|
+
import { a as writeJsonError } from "./output-BWcVRt-T.mjs";
|
|
5
|
+
import { i as requireClient } from "./context-BydAGTiB.mjs";
|
|
6
6
|
//#region src/lib/integration-catalog.ts
|
|
7
7
|
const catalogCache = /* @__PURE__ */ new WeakMap();
|
|
8
8
|
function buildView(entries) {
|
|
@@ -0,0 +1,185 @@
|
|
|
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-C5qcOo8m.mjs";
|
|
5
|
+
import { t as ConnectionKindValues } from "./api-nR61stdq.mjs";
|
|
6
|
+
import { z } from "zod";
|
|
7
|
+
//#region ../../packages/shared-types/src/platform-providers/index.ts
|
|
8
|
+
const platformProviderRegistry = {
|
|
9
|
+
airtable: {
|
|
10
|
+
supportsMessagingGateway: false,
|
|
11
|
+
messagingAdapterType: null
|
|
12
|
+
},
|
|
13
|
+
slack: {
|
|
14
|
+
supportsMessagingGateway: true,
|
|
15
|
+
messagingAdapterType: "slack"
|
|
16
|
+
},
|
|
17
|
+
linear: {
|
|
18
|
+
supportsMessagingGateway: true,
|
|
19
|
+
messagingAdapterType: "linear"
|
|
20
|
+
},
|
|
21
|
+
github: {
|
|
22
|
+
supportsMessagingGateway: true,
|
|
23
|
+
messagingAdapterType: "github"
|
|
24
|
+
},
|
|
25
|
+
google: {
|
|
26
|
+
supportsMessagingGateway: true,
|
|
27
|
+
messagingAdapterType: null
|
|
28
|
+
},
|
|
29
|
+
notion: {
|
|
30
|
+
supportsMessagingGateway: false,
|
|
31
|
+
messagingAdapterType: null
|
|
32
|
+
},
|
|
33
|
+
salesforce: {
|
|
34
|
+
supportsMessagingGateway: false,
|
|
35
|
+
messagingAdapterType: null
|
|
36
|
+
},
|
|
37
|
+
shopify: {
|
|
38
|
+
supportsMessagingGateway: false,
|
|
39
|
+
messagingAdapterType: null
|
|
40
|
+
},
|
|
41
|
+
spotify: {
|
|
42
|
+
supportsMessagingGateway: false,
|
|
43
|
+
messagingAdapterType: null
|
|
44
|
+
},
|
|
45
|
+
strava: {
|
|
46
|
+
supportsMessagingGateway: false,
|
|
47
|
+
messagingAdapterType: null
|
|
48
|
+
},
|
|
49
|
+
zoom: {
|
|
50
|
+
supportsMessagingGateway: false,
|
|
51
|
+
messagingAdapterType: null
|
|
52
|
+
},
|
|
53
|
+
calendly: {
|
|
54
|
+
supportsMessagingGateway: false,
|
|
55
|
+
messagingAdapterType: null
|
|
56
|
+
},
|
|
57
|
+
docusign: {
|
|
58
|
+
supportsMessagingGateway: false,
|
|
59
|
+
messagingAdapterType: null
|
|
60
|
+
},
|
|
61
|
+
ramp: {
|
|
62
|
+
supportsMessagingGateway: false,
|
|
63
|
+
messagingAdapterType: null
|
|
64
|
+
},
|
|
65
|
+
zendesk: {
|
|
66
|
+
supportsMessagingGateway: false,
|
|
67
|
+
messagingAdapterType: null
|
|
68
|
+
},
|
|
69
|
+
supabase: {
|
|
70
|
+
supportsMessagingGateway: false,
|
|
71
|
+
messagingAdapterType: null
|
|
72
|
+
},
|
|
73
|
+
gusto: {
|
|
74
|
+
supportsMessagingGateway: false,
|
|
75
|
+
messagingAdapterType: null
|
|
76
|
+
},
|
|
77
|
+
sentry: {
|
|
78
|
+
supportsMessagingGateway: false,
|
|
79
|
+
messagingAdapterType: null
|
|
80
|
+
},
|
|
81
|
+
typeform: {
|
|
82
|
+
supportsMessagingGateway: false,
|
|
83
|
+
messagingAdapterType: null
|
|
84
|
+
}
|
|
85
|
+
};
|
|
86
|
+
function toNonEmptyTuple(values) {
|
|
87
|
+
if (values.length === 0) throw new Error("Expected at least one provider value");
|
|
88
|
+
return values;
|
|
89
|
+
}
|
|
90
|
+
const PlatformProviderValues = toNonEmptyTuple(Object.freeze(Object.keys(platformProviderRegistry)));
|
|
91
|
+
const MessagingGatewayProviderValues = toNonEmptyTuple(Object.freeze(PlatformProviderValues.filter((provider) => platformProviderRegistry[provider].supportsMessagingGateway)));
|
|
92
|
+
const PlatformProviderSchema = z.enum(PlatformProviderValues);
|
|
93
|
+
z.enum(MessagingGatewayProviderValues);
|
|
94
|
+
//#endregion
|
|
95
|
+
//#region src/commands/integrations/integrations.command.ts
|
|
96
|
+
const IntegrationsListOptionsSchema = JsonOptionSchema.extend({
|
|
97
|
+
kind: z.enum(ConnectionKindValues).optional(),
|
|
98
|
+
search: z.string().optional(),
|
|
99
|
+
connected: z.boolean().optional(),
|
|
100
|
+
details: z.boolean().optional()
|
|
101
|
+
});
|
|
102
|
+
const INTEGRATIONS_LIST_OPTIONS_CONFIG = {
|
|
103
|
+
...JSON_OPTION_CONFIG,
|
|
104
|
+
kind: {
|
|
105
|
+
flag: "--kind <kind>",
|
|
106
|
+
description: `Filter by connection kind: ${ConnectionKindValues.join(" | ")}`
|
|
107
|
+
},
|
|
108
|
+
search: {
|
|
109
|
+
flag: "--search <query>",
|
|
110
|
+
description: "Case-insensitive substring match against publicId, name, and aliases"
|
|
111
|
+
},
|
|
112
|
+
connected: {
|
|
113
|
+
flag: "--connected",
|
|
114
|
+
description: "Only show integrations with at least one configured connection in the current org"
|
|
115
|
+
},
|
|
116
|
+
details: {
|
|
117
|
+
flag: "--details",
|
|
118
|
+
description: "Show connection names, IDs, scope, status, and default selection"
|
|
119
|
+
}
|
|
120
|
+
};
|
|
121
|
+
const IntegrationsRegisterOptionsSchema = JsonOptionSchema.extend({
|
|
122
|
+
integrationId: z.string().optional(),
|
|
123
|
+
clientApp: z.string().optional().describe("Internal credential set id holding clientId + clientSecret"),
|
|
124
|
+
provider: PlatformProviderSchema.optional().describe("Provider id for the provider app"),
|
|
125
|
+
externalAppId: z.string().optional().describe("External provider app id"),
|
|
126
|
+
displayName: z.string().optional().describe("Human-readable display name for the workspace integration")
|
|
127
|
+
});
|
|
128
|
+
const INTEGRATIONS_REGISTER_OPTIONS_CONFIG = {
|
|
129
|
+
...JSON_OPTION_CONFIG,
|
|
130
|
+
clientApp: {
|
|
131
|
+
flag: "--client-app <credentialSetId>",
|
|
132
|
+
description: "Internal credential set id holding clientId + clientSecret (required)"
|
|
133
|
+
},
|
|
134
|
+
provider: {
|
|
135
|
+
flag: "--provider <provider>",
|
|
136
|
+
description: `Provider app provider: ${PlatformProviderValues.join(" | ")} (required)`
|
|
137
|
+
},
|
|
138
|
+
externalAppId: {
|
|
139
|
+
flag: "--external-app-id <id>",
|
|
140
|
+
description: "External provider app id from the provider (required)"
|
|
141
|
+
},
|
|
142
|
+
displayName: {
|
|
143
|
+
flag: "--display-name <name>",
|
|
144
|
+
description: "Human-readable display name for the workspace integration"
|
|
145
|
+
}
|
|
146
|
+
};
|
|
147
|
+
function createIntegrationsCommand() {
|
|
148
|
+
return createTypedCommand({
|
|
149
|
+
name: "integrations",
|
|
150
|
+
description: "List Keystroke integrations available to your organization",
|
|
151
|
+
schema: IntegrationsListOptionsSchema,
|
|
152
|
+
optionsConfig: INTEGRATIONS_LIST_OPTIONS_CONFIG,
|
|
153
|
+
loadHandler: async () => (await import("./list.handler-ClPAPSWm.mjs")).handleIntegrationsList,
|
|
154
|
+
subcommands: [createTypedCommand({
|
|
155
|
+
name: "list",
|
|
156
|
+
description: "List Keystroke integrations available to your organization",
|
|
157
|
+
schema: IntegrationsListOptionsSchema,
|
|
158
|
+
optionsConfig: INTEGRATIONS_LIST_OPTIONS_CONFIG,
|
|
159
|
+
loadHandler: async () => (await import("./list.handler-ClPAPSWm.mjs")).handleIntegrationsList
|
|
160
|
+
}), createTypedCommand({
|
|
161
|
+
name: "register",
|
|
162
|
+
description: "Register an org-scoped custom provider app for workspace-authored OAuth support",
|
|
163
|
+
schema: IntegrationsRegisterOptionsSchema,
|
|
164
|
+
optionsConfig: INTEGRATIONS_REGISTER_OPTIONS_CONFIG,
|
|
165
|
+
handler: async (opts, ctx) => {
|
|
166
|
+
const { handleIntegrationsRegister } = await import("./register.handler-BXeh5mdb.mjs");
|
|
167
|
+
await handleIntegrationsRegister({
|
|
168
|
+
integrationId: opts.integrationId,
|
|
169
|
+
clientAppCredentialSetId: opts.clientApp,
|
|
170
|
+
provider: opts.provider,
|
|
171
|
+
externalAppId: opts.externalAppId,
|
|
172
|
+
displayName: opts.displayName,
|
|
173
|
+
json: opts.json
|
|
174
|
+
}, ctx);
|
|
175
|
+
},
|
|
176
|
+
argument: {
|
|
177
|
+
name: "integrationId",
|
|
178
|
+
description: "Workspace integration id to register (e.g., acmeCrm)",
|
|
179
|
+
key: "integrationId"
|
|
180
|
+
}
|
|
181
|
+
})]
|
|
182
|
+
});
|
|
183
|
+
}
|
|
184
|
+
//#endregion
|
|
185
|
+
export { createIntegrationsCommand };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
|
-
import { n as JsonOptionSchema, t as JSON_OPTION_CONFIG } from "./output-
|
|
4
|
-
import { t as createTypedCommand } from "./commander-
|
|
3
|
+
import { n as JsonOptionSchema, t as JSON_OPTION_CONFIG } from "./output-BWcVRt-T.mjs";
|
|
4
|
+
import { t as createTypedCommand } from "./commander-C5qcOo8m.mjs";
|
|
5
5
|
import { z } from "zod";
|
|
6
6
|
//#region src/commands/invites/invites.command.ts
|
|
7
7
|
const InvitesListOptionsSchema = JsonOptionSchema;
|
|
@@ -19,13 +19,13 @@ function createInvitesCommand() {
|
|
|
19
19
|
description: "Manage invitations for the current user",
|
|
20
20
|
schema: InvitesListOptionsSchema,
|
|
21
21
|
optionsConfig: { ...JSON_OPTION_CONFIG },
|
|
22
|
-
loadHandler: async () => (await import("./list.handler-
|
|
22
|
+
loadHandler: async () => (await import("./list.handler-Xl_F89kq.mjs")).handleInvitesList,
|
|
23
23
|
subcommands: [createTypedCommand({
|
|
24
24
|
name: "list",
|
|
25
25
|
description: "List pending invites for the current user",
|
|
26
26
|
schema: InvitesListOptionsSchema,
|
|
27
27
|
optionsConfig: { ...JSON_OPTION_CONFIG },
|
|
28
|
-
loadHandler: async () => (await import("./list.handler-
|
|
28
|
+
loadHandler: async () => (await import("./list.handler-Xl_F89kq.mjs")).handleInvitesList
|
|
29
29
|
}), createTypedCommand({
|
|
30
30
|
name: "accept",
|
|
31
31
|
description: "Accept a pending invite",
|
|
@@ -36,7 +36,7 @@ function createInvitesCommand() {
|
|
|
36
36
|
description: "Invite ID to accept",
|
|
37
37
|
key: "inviteId"
|
|
38
38
|
},
|
|
39
|
-
loadHandler: async () => (await import("./accept.handler-
|
|
39
|
+
loadHandler: async () => (await import("./accept.handler-BVmNNAgL.mjs")).handleInvitesAccept
|
|
40
40
|
})]
|
|
41
41
|
});
|
|
42
42
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
|
-
import {
|
|
4
|
-
import { i as writeJson } from "./output-
|
|
5
|
-
import { i as requireClient } from "./context-
|
|
6
|
-
import { i as requireOrganizationId, n as isIamJsonMode, t as handleIamError } from "./iam-command-utils-
|
|
3
|
+
import { a as ui } from "./keystroke.mjs";
|
|
4
|
+
import { i as writeJson } from "./output-BWcVRt-T.mjs";
|
|
5
|
+
import { i as requireClient } from "./context-BydAGTiB.mjs";
|
|
6
|
+
import { i as requireOrganizationId, n as isIamJsonMode, t as handleIamError } from "./iam-command-utils-CSZj4XlH.mjs";
|
|
7
7
|
import Table from "cli-table3";
|
|
8
8
|
//#region src/commands/org/invites.list.handler.ts
|
|
9
9
|
async function handleOrgInvitesList(_options, ctx) {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
|
-
import {
|
|
4
|
-
import { i as writeJson } from "./output-
|
|
5
|
-
import { i as requireClient } from "./context-
|
|
6
|
-
import { i as requireOrganizationId, n as isIamJsonMode, t as handleIamError } from "./iam-command-utils-
|
|
3
|
+
import { a as ui } from "./keystroke.mjs";
|
|
4
|
+
import { i as writeJson } from "./output-BWcVRt-T.mjs";
|
|
5
|
+
import { i as requireClient } from "./context-BydAGTiB.mjs";
|
|
6
|
+
import { i as requireOrganizationId, n as isIamJsonMode, t as handleIamError } from "./iam-command-utils-CSZj4XlH.mjs";
|
|
7
7
|
//#region src/commands/org/invites.resend.handler.ts
|
|
8
8
|
async function handleOrgInvitesResend(options, ctx) {
|
|
9
9
|
const client = requireClient(ctx);
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
|
-
import {
|
|
4
|
-
import { i as writeJson } from "./output-
|
|
5
|
-
import { i as requireClient } from "./context-
|
|
6
|
-
import { i as requireOrganizationId, n as isIamJsonMode, r as requireConfirmation, t as handleIamError } from "./iam-command-utils-
|
|
3
|
+
import { a as ui } from "./keystroke.mjs";
|
|
4
|
+
import { i as writeJson } from "./output-BWcVRt-T.mjs";
|
|
5
|
+
import { i as requireClient } from "./context-BydAGTiB.mjs";
|
|
6
|
+
import { i as requireOrganizationId, n as isIamJsonMode, r as requireConfirmation, t as handleIamError } from "./iam-command-utils-CSZj4XlH.mjs";
|
|
7
7
|
//#region src/commands/org/invites.revoke.handler.ts
|
|
8
8
|
async function handleOrgInvitesRevoke(options, ctx) {
|
|
9
9
|
const client = requireClient(ctx);
|