@keystrokehq/cli 0.0.20 → 0.0.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{accept.handler-CiqqUxKN.mjs → accept.handler-C6KBLKmW.mjs} +1 -1
- package/dist/{admin-B0U2Aghv.mjs → admin-D2CQoZAN.mjs} +9 -9
- package/dist/{agent-bundle-package-DWV6B_5q-BsbCEeMw.mjs → agent-bundle-package-DWV6B_5q-B-qzc3zC.mjs} +1 -1
- package/dist/{agents-DBebUEwk.mjs → agents-Bn0g5o0o.mjs} +7 -7
- package/dist/{api-BjBpWWlm.mjs → api-J9UL8pqZ.mjs} +1 -1
- package/dist/{api-keys-BHAgmC4E.mjs → api-keys-BixCnZJW.mjs} +5 -5
- package/dist/{auth-D-PZAjdd.mjs → auth-yCNMT8sJ.mjs} +14 -7
- package/dist/{auth.handler-CxTDSO6O.mjs → auth.handler-BedGpKh1.mjs} +7 -12
- package/dist/{build-agents-DseUtzd4-BNtZrqoY.mjs → build-agents-DseUtzd4-DFh2e5Cn.mjs} +5 -5
- package/dist/{build-metadata-BB_L45ZS-d5-QLDZ5.mjs → build-metadata-BB_L45ZS-BtGGjHIV.mjs} +7 -7
- package/dist/{build-progress-BVwDg6lC.mjs → build-progress-nYa14iBP.mjs} +1 -1
- package/dist/{build-tasks-C09SdfjC-DxKcmENc.mjs → build-tasks-C09SdfjC-B0F7BZZG.mjs} +3 -3
- package/dist/{build-workflows-BZ_m97Pr-DwcnRlyh.mjs → build-workflows-BZ_m97Pr-DKANy85L.mjs} +9 -8
- package/dist/{build.handler-CTX80S1K.mjs → build.handler-CyDc8jiZ.mjs} +5 -5
- package/dist/{chunk-DYxdGL9S.mjs → chunk-CH6r78ws.mjs} +1 -2
- package/dist/{clear-cache.handler-8RFmjHoo.mjs → clear-cache.handler-FmJPHdWG.mjs} +1 -1
- package/dist/{clear.handler-Bksm2HI4.mjs → clear.handler-Cvb9chs4.mjs} +27 -13
- package/dist/{commander-DQLrBSIW.mjs → commander-9Kro0Dl3.mjs} +4 -7
- package/dist/common-AK0q0Oz0.mjs +20 -0
- package/dist/{connect-DV_EztVs.mjs → connect-DzVxjeYr.mjs} +2 -2
- package/dist/{connect.handler-DbuGt3Xb.mjs → connect.handler-DFQdxkWZ.mjs} +3 -3
- package/dist/{context-BUzxM3QI.mjs → context-B2cQ-Nt3.mjs} +30 -4
- package/dist/{create.handler-CQCRk-Na.mjs → create.handler-v9B0Z9Yf.mjs} +1 -1
- package/dist/{credential-env-map-qLCR_QbO.mjs → credential-env-map-Dvp00a4M.mjs} +1 -1
- package/dist/credential-requirements-D0mavK8j-CFMf0Xwu.mjs +619 -0
- package/dist/{credentials-xPtLFTjW.mjs → credentials-DQW8xxof.mjs} +2 -2
- package/dist/{credentials-m18a1_hw.mjs → credentials-Dr5lD7Hm.mjs} +6 -6
- package/dist/{current-deployment-workflow-pyBoobIm.mjs → current-deployment-workflow-qMfOrRIu.mjs} +4 -4
- package/dist/{current.handler-BJGJgdGP.mjs → current.handler-Cm_-JLyZ.mjs} +1 -1
- package/dist/declared-credential-requirements-B6h4WRv4.mjs +103 -0
- package/dist/{delete.handler-DNoehdOH.mjs → delete.handler-DtP_zUaq.mjs} +1 -1
- package/dist/{deploy-BKjcO_sm.mjs → deploy-BURTx92e.mjs} +1 -1
- package/dist/{deploy-3tHCBGky.mjs → deploy-CB6pfCuB.mjs} +2 -2
- package/dist/{deploy-progress-CyolzjRB.mjs → deploy-progress-Dlp9aBDW.mjs} +1 -1
- package/dist/{deploy.handler-TnPNBYXZ.mjs → deploy.handler-Bg0dpSTj.mjs} +16 -16
- package/dist/{detect-env-access-CwkOYeYM-D8-hxij0.mjs → detect-env-access-CwkOYeYM-D4aTZv4R.mjs} +2 -2
- package/dist/{diff.handler-DO2WzdGB.mjs → diff.handler-CJPrszL1.mjs} +4 -4
- package/dist/{dist-BGrWr5fp.mjs → dist-Br4m3sFZ.mjs} +14 -12
- package/dist/{dist-CIInPRGh.mjs → dist-DuJjDZIf.mjs} +25 -2
- package/dist/{env.handler-C5GNyiJt.mjs → env.handler-6TrLd3fo.mjs} +7 -7
- package/dist/{error-boundary-GtRvP2oP.mjs → error-boundary-DVZipk-A.mjs} +1 -1
- package/dist/{file-metadata-B8c7Y5yg.mjs → file-metadata-DQVDjr7M.mjs} +1 -1
- package/dist/{import-module-y0glInUe-CfNsQNia.mjs → import-module-y0glInUe-DxX0-BRO.mjs} +274 -28
- package/dist/{init-D9RIT2CY.mjs → init-DBMtY3eO.mjs} +3 -3
- package/dist/{init.handler-0TJY1YNy.mjs → init.handler-BoYbE-6H.mjs} +3 -3
- package/dist/{inspect.handler-BrYFfN4H.mjs → inspect.handler-Juu2vGbB.mjs} +4 -4
- package/dist/{integration-catalog-BrJsBkfx.mjs → integration-catalog-cYlTmOSb.mjs} +1 -1
- package/dist/{integrations-vSyAQ6HA.mjs → integrations-cwRfplNG.mjs} +5 -5
- package/dist/{invites-BASM4PJr.mjs → invites-DHyHZOY_.mjs} +4 -4
- package/dist/{invites.list.handler-c-aw6g5o.mjs → invites.list.handler-C-QpsG2J.mjs} +1 -1
- package/dist/{invites.resend.handler-MnMEjP_Z.mjs → invites.resend.handler-KFKbSPzR.mjs} +1 -1
- package/dist/{invites.revoke.handler-CHX6Z8kj.mjs → invites.revoke.handler-Cuz7jrGC.mjs} +1 -1
- package/dist/keystroke.mjs +21 -21
- package/dist/{list-enrichment-DcplcioC.mjs → list-enrichment-CCRHYslm.mjs} +1 -1
- package/dist/{list.handler-DJNtXw7C.mjs → list.handler-6x3GVumu.mjs} +1 -1
- package/dist/{list2.handler-BdE1k2kl.mjs → list.handler-BWsl4iYw.mjs} +4 -4
- package/dist/{list.handler-BsgCd1oF.mjs → list.handler-CLGQDuo5.mjs} +5 -5
- package/dist/{list.handler-CynN-ezD.mjs → list.handler-Cc-V1TNz.mjs} +1 -1
- package/dist/{list.handler-DXwKdfIv.mjs → list.handler-DRe38pAj.mjs} +2 -2
- package/dist/{list.handler-CDtjm-6d.mjs → list.handler-Do2tVOnu.mjs} +1 -1
- package/dist/{list.handler-BBzB1_1l.mjs → list.handler-RtHhrTZ3.mjs} +1 -1
- package/dist/{listen-Ca9KdiB2.mjs → listen-DZdSevsB.mjs} +2 -2
- package/dist/{listen.handler-KWPN03S8.mjs → listen.handler-BccHe1jh.mjs} +2 -2
- package/dist/{logs-BEDf7hZ0.mjs → logs-Bh_PBnu6.mjs} +3 -3
- package/dist/{logs.handler-mk1lcZbU.mjs → logs.handler-DItDS1zw.mjs} +2 -2
- package/dist/{members.add.handler-CTvlxBZU.mjs → members.add.handler-D3nQ_Ln6.mjs} +1 -1
- package/dist/{members.invite.handler-wFO0r7Pi.mjs → members.invite.handler-rKhg5n_C.mjs} +1 -1
- package/dist/{members.list.handler-PPdqs4nI.mjs → members.list.handler-C9Yh469k.mjs} +1 -1
- package/dist/{members.remove.handler-a5WI6zE4.mjs → members.remove.handler-Dnrck-E6.mjs} +1 -1
- package/dist/{members.update.handler-3xblTzmz.mjs → members.update.handler-qo5r6arJ.mjs} +1 -1
- package/dist/{metadata-layout-Bv-B0nHj-DtMWZ7Cc.mjs → metadata-layout-Bv-B0nHj-CO8mjjSl.mjs} +1 -1
- package/dist/{normalize-path-CojS-CgQ-CRqBc6D6.mjs → normalize-path-CojS-CgQ-aOM0agxS.mjs} +1 -1
- package/dist/{org-CzLw3neZ.mjs → org-DnES84sS.mjs} +15 -15
- package/dist/{orgs.create.handler-CcPpDweZ.mjs → orgs.create.handler-DF4eEL-2.mjs} +1 -1
- package/dist/{orgs.get.handler-BACPg7vR.mjs → orgs.get.handler-BmJnseQa.mjs} +1 -1
- package/dist/{orgs.list.handler-DEF8OyvM.mjs → orgs.list.handler-DDVvSbsT.mjs} +1 -1
- package/dist/{paused.handler-D4j8_Za4.mjs → paused.handler-BLUchSMD.mjs} +1 -1
- package/dist/{projects-CJCKxG2u.mjs → projects-Cv14bBGy.mjs} +4 -4
- package/dist/{projects-s5ehKLil.mjs → projects-ZNcKwds2.mjs} +2 -2
- package/dist/{requirements.handler-Bk-sAE9C.mjs → requirements.handler-BKFocUof.mjs} +5 -5
- package/dist/{resolve-cli-credentials-DytxgMwn.mjs → resolve-cli-credentials-DaMDaamj.mjs} +1 -1
- package/dist/{resolve-project-CWP2fji3.mjs → resolve-project-Cj3MFnU0.mjs} +1 -1
- package/dist/{run-polling-DKclfet-.mjs → run-polling-3XOGl4hh.mjs} +3 -3
- package/dist/{run.handler-x0B-CjNF.mjs → run.handler-DZuUx0fi.mjs} +5 -5
- package/dist/{runs-DoMVOCNj.mjs → runs-BOo3j297.mjs} +2 -2
- package/dist/schemas-D2zfmyC-.mjs +671 -0
- package/dist/{skills-sync.handler-CYkCeuQn.mjs → skills-sync.handler-09mDbx5q.mjs} +1 -1
- package/dist/{skills.command-DeAgMGGw.mjs → skills.command-B-MhRN3J.mjs} +4 -4
- package/dist/{source-analysis-BBg2E_6G-BJTRqWrQ.mjs → source-analysis-BBg2E_6G-wPP9mjQx.mjs} +3 -3
- package/dist/{source-analysis-BMMPIHN9.mjs → source-analysis-z2RSZw6X.mjs} +1 -1
- package/dist/{src-BYQwp8Ig.mjs → src-DNhUmpSl.mjs} +1 -1
- package/dist/{switch.handler-CV4ZBXAu.mjs → switch.handler-BFGvj5c6.mjs} +2 -2
- package/dist/{sync-KCVM02IY.mjs → sync-CZ3iUPTA.mjs} +2 -2
- package/dist/{sync.handler-Cuw89341.mjs → sync.handler-B1L8I9lF.mjs} +7 -7
- package/dist/{task-BSCN9cU4.mjs → task-BWuIKWh4.mjs} +2 -392
- package/dist/{task-target-build-B0HF2_At.mjs → task-target-build-CTgl4L42.mjs} +5 -5
- package/dist/{task-target-deploy-ClbwKJ8K.mjs → task-target-deploy-DeUyfi9H.mjs} +1 -1
- package/dist/{task-target-deploy-dQYnMO8n-CeTmRcDw.mjs → task-target-deploy-dQYnMO8n-d2vdeqXH.mjs} +1 -1
- package/dist/task-target-deploy-runner.mjs +6 -6
- package/dist/{test-Rm3thni3.mjs → test-Byq4hG3C.mjs} +2 -2
- package/dist/{test.handler-CTd-heRS.mjs → test.handler-BsrMMj5O.mjs} +9 -9
- package/dist/{test.handler-DhhcsvHN.mjs → test.handler-CAsVgOpT.mjs} +1 -1
- package/dist/{tool.handler-C3LNyQbc.mjs → tool.handler-BHS5Z4J_.mjs} +63 -9
- package/dist/{trigger-artifacts-BcRScRSp-DqFgzl_B.mjs → trigger-artifacts-BcRScRSp-C-JBJ6y8.mjs} +4 -4
- package/dist/{trigger-manifest-DTni4NaZ.mjs → trigger-manifest-C07EM-b2.mjs} +6 -5
- package/dist/{upgrade-Cf7y38xR.mjs → upgrade-bZVjVXnu.mjs} +2 -2
- package/dist/{upload-CJWApEgz.mjs → upload-CE4H5R1h.mjs} +1 -1
- package/dist/{upload.handler-BHIWYPph.mjs → upload.handler-DXVx2u3A.mjs} +7 -7
- package/dist/{users.get.handler-spWaHG8h.mjs → users.get.handler-DqD2ELK2.mjs} +1 -1
- package/dist/{users.list.handler-DLuU7cd_.mjs → users.list.handler-DZSPvpGF.mjs} +1 -1
- package/dist/{users.set-role.handler-CojFmpcD.mjs → users.set-role.handler-73smNUVF.mjs} +1 -1
- package/dist/{utils-Ddltm1sR.mjs → utils-BaxDlCsW.mjs} +1 -1
- package/dist/{validate.handler-DIJBuX1P.mjs → validate.handler-CmfcMX0t.mjs} +4 -4
- package/dist/{workflow-build-IGYhEC8Y.mjs → workflow-build-Bi1Aacc5.mjs} +20 -20
- package/dist/workflow-build-manifest-1sC52TIG.mjs +259 -0
- package/dist/{workflow-bundler-BzHk73PM-Cs-4Ml-p.mjs → workflow-bundler-BzHk73PM-xQwAF08W.mjs} +2 -2
- package/dist/{workflows-MANdvLft.mjs → workflows-C_C13Zr0.mjs} +16 -14
- package/dist/{writer-byNNUjRm-w5O7-VT_.mjs → writer-byNNUjRm-B-on1n6c.mjs} +6 -6
- package/package.json +7 -7
- package/dist/schemas-U2OzP9gP.mjs +0 -281
- package/dist/src-BHTjsZ9V.mjs +0 -456
- /package/dist/{agent-manifest-CZ7BeUSG.mjs → agent-manifest-Pg0aURo7.mjs} +0 -0
- /package/dist/{browser-Cu4k-wT_.mjs → browser-Dvv5OQrt.mjs} +0 -0
- /package/dist/{clear.handler-mfNmIUYP.mjs → clear.handler-BdR56Cok.mjs} +0 -0
- /package/dist/{concurrency-gXn9Rw8x-BSBbRfVp.mjs → concurrency-gXn9Rw8x-CnBnF2cg.mjs} +0 -0
- /package/dist/{credential-schema-mismatch-BHI_B-U-.mjs → credential-schema-mismatch-kfGeiSB1.mjs} +0 -0
- /package/dist/{diff-utils-x5pi8SrL.mjs → diff-utils-CXKNQUXO.mjs} +0 -0
- /package/dist/{layout-DRf9qUf8.mjs → layout-B95Tku8F.mjs} +0 -0
- /package/dist/{logs.handler-CcA1UzJm.mjs → logs.handler-Bs1DVMaO.mjs} +0 -0
- /package/dist/{oxc-B3KI3rf_-Cnk0L10M.mjs → oxc-B3KI3rf_-B9omBIuN.mjs} +0 -0
- /package/dist/{read-credential-keys-77a91T8M-CzXPGxdU.mjs → read-credential-keys-77a91T8M-aLuQvlIq.mjs} +0 -0
- /package/dist/{register.handler-CSvlOMF6.mjs → register.handler-C_NqMLir.mjs} +0 -0
- /package/dist/{rolldown-runtime-twds-ZHy-BoF7MLzP.mjs → rolldown-runtime-twds-ZHy-RuJszab7.mjs} +0 -0
- /package/dist/{run-polling-CzyVv7Ba.mjs → run-polling-DKWPGLyF.mjs} +0 -0
- /package/dist/{schema-CvSZqa3t.mjs → schema-DFJiNWyd.mjs} +0 -0
- /package/dist/{schema-display-DxLA3j5H.mjs → schema-display-XrRCdFL0.mjs} +0 -0
- /package/dist/{skill-installer-CYFshTBy.mjs → skill-installer-Cm9hF6OB.mjs} +0 -0
- /package/dist/{skills.handler-Bma-MJX-.mjs → skills.handler-KEUkV5NH.mjs} +0 -0
- /package/dist/{spinner-progress-DV28G4tP.mjs → spinner-progress-BtEIJRX4.mjs} +0 -0
- /package/dist/{status.handler-BOV0eX3J.mjs → status.handler-CW-EFhy3.mjs} +0 -0
- /package/dist/{types-DamInJD6.mjs → types-D1cVpE7_.mjs} +0 -0
- /package/dist/{upgrade.handler-Bz_oQcAw.mjs → upgrade.handler-C7KvNL0x.mjs} +0 -0
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
3
|
import { n as findProjectRoot } from "./project-config-DudGRFPO.mjs";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { t as
|
|
4
|
+
import { _ as descriptionString, b as trimmedNonEmptyString, g as createStructuralSchema, h as anyZodSchemaSchema, l as TriggerTypeSchema, m as CredentialSetManifestSchema, n as DeclaredCredentialRequirementSchema, r as ExecutionIdentityPolicySchema, v as jsonSchemaObject, y as jsonValueSchema } from "./credential-requirements-D0mavK8j-CFMf0Xwu.mjs";
|
|
5
|
+
import { a as FlowGraphSchema, i as WorkflowCoreManifestSchema, n as WORKFLOW_MANIFEST_SCHEMA_VERSION } from "./workflow-build-manifest-1sC52TIG.mjs";
|
|
6
|
+
import { c as optionalDescriptionString, f as parseCronExpression, i as createStructuralSchema$1, l as optionalTrimmedNonEmptyString, o as idNoSpacesString, r as anyZodSchemaSchema$1, s as jsonSchemaObject$1, t as CredentialSetManifestSchema$1, u as trimmedNonEmptyString$1 } from "./schemas-D2zfmyC-.mjs";
|
|
7
|
+
import { t as runWithConcurrency } from "./concurrency-gXn9Rw8x-CnBnF2cg.mjs";
|
|
7
8
|
import { createRequire } from "node:module";
|
|
8
9
|
import * as os from "node:os";
|
|
9
10
|
import * as path$1 from "node:path";
|
|
@@ -12,9 +13,8 @@ import { z } from "zod";
|
|
|
12
13
|
import { execFile } from "node:child_process";
|
|
13
14
|
import { randomUUID } from "node:crypto";
|
|
14
15
|
import { promisify } from "node:util";
|
|
15
|
-
import { cronTriggerManifestSchema, pollingTriggerManifestSchema, webhookTriggerManifestSchema } from "@keystrokehq/core/trigger";
|
|
16
16
|
//#region ../../packages/core/src/mcp-server/schemas.ts
|
|
17
|
-
const credentialSetInstanceSchema$
|
|
17
|
+
const credentialSetInstanceSchema$2 = createStructuralSchema$1([
|
|
18
18
|
"id",
|
|
19
19
|
"auth",
|
|
20
20
|
"connections"
|
|
@@ -22,27 +22,27 @@ const credentialSetInstanceSchema$1 = createStructuralSchema([
|
|
|
22
22
|
const McpTransportSchema = z.discriminatedUnion("type", [
|
|
23
23
|
z.object({
|
|
24
24
|
type: z.literal("stdio"),
|
|
25
|
-
command: trimmedNonEmptyString("Command"),
|
|
25
|
+
command: trimmedNonEmptyString$1("Command"),
|
|
26
26
|
args: z.array(z.string()).optional(),
|
|
27
27
|
env: z.record(z.string(), z.string()).optional()
|
|
28
28
|
}),
|
|
29
29
|
z.object({
|
|
30
30
|
type: z.literal("http"),
|
|
31
|
-
url: trimmedNonEmptyString("URL"),
|
|
31
|
+
url: trimmedNonEmptyString$1("URL"),
|
|
32
32
|
headers: z.record(z.string(), z.string()).optional()
|
|
33
33
|
}),
|
|
34
34
|
z.object({
|
|
35
35
|
type: z.literal("sse"),
|
|
36
|
-
url: trimmedNonEmptyString("URL"),
|
|
36
|
+
url: trimmedNonEmptyString$1("URL"),
|
|
37
37
|
headers: z.record(z.string(), z.string()).optional()
|
|
38
38
|
})
|
|
39
39
|
]);
|
|
40
40
|
z.object({
|
|
41
|
-
id: trimmedNonEmptyString("MCP server ID"),
|
|
41
|
+
id: trimmedNonEmptyString$1("MCP server ID"),
|
|
42
42
|
name: optionalTrimmedNonEmptyString("MCP server name"),
|
|
43
43
|
description: optionalDescriptionString("MCP server description"),
|
|
44
44
|
transport: McpTransportSchema,
|
|
45
|
-
credentialSets: z.array(credentialSetInstanceSchema$
|
|
45
|
+
credentialSets: z.array(credentialSetInstanceSchema$2).optional(),
|
|
46
46
|
credentials: z.function().optional()
|
|
47
47
|
});
|
|
48
48
|
const McpServerManifestSchema = z.object({
|
|
@@ -52,7 +52,7 @@ const McpServerManifestSchema = z.object({
|
|
|
52
52
|
name: z.string().min(1),
|
|
53
53
|
description: z.string().optional(),
|
|
54
54
|
transport: McpTransportSchema,
|
|
55
|
-
credentialSets: z.array(CredentialSetManifestSchema),
|
|
55
|
+
credentialSets: z.array(CredentialSetManifestSchema$1),
|
|
56
56
|
credentialInjection: z.object({
|
|
57
57
|
env: z.record(z.string(), z.object({
|
|
58
58
|
credentialSetId: z.string().min(1),
|
|
@@ -66,7 +66,7 @@ const McpServerManifestSchema = z.object({
|
|
|
66
66
|
});
|
|
67
67
|
//#endregion
|
|
68
68
|
//#region ../../packages/core/src/messaging-gateway/schemas.ts
|
|
69
|
-
const credentialSetInstanceSchema = createStructuralSchema([
|
|
69
|
+
const credentialSetInstanceSchema$1 = createStructuralSchema$1([
|
|
70
70
|
"id",
|
|
71
71
|
"auth",
|
|
72
72
|
"connections"
|
|
@@ -79,7 +79,7 @@ z.object({
|
|
|
79
79
|
description: optionalDescriptionString("MessagingGateway description"),
|
|
80
80
|
provider: z.string().min(1, "MessagingGateway provider is required"),
|
|
81
81
|
mode: MessagingGatewayModeSchema,
|
|
82
|
-
credentialSet: credentialSetInstanceSchema,
|
|
82
|
+
credentialSet: credentialSetInstanceSchema$1,
|
|
83
83
|
credentialScope: MessagingGatewayCredentialScopeSchema.optional(),
|
|
84
84
|
appRef: z.string().min(1).optional()
|
|
85
85
|
});
|
|
@@ -91,7 +91,7 @@ const MessagingGatewayManifestSchema = z.object({
|
|
|
91
91
|
description: z.string().optional(),
|
|
92
92
|
provider: z.string().min(1),
|
|
93
93
|
mode: MessagingGatewayModeSchema,
|
|
94
|
-
credentialSet: CredentialSetManifestSchema,
|
|
94
|
+
credentialSet: CredentialSetManifestSchema$1,
|
|
95
95
|
credentialScope: MessagingGatewayCredentialScopeSchema.optional(),
|
|
96
96
|
appRef: z.string().min(1).optional()
|
|
97
97
|
});
|
|
@@ -117,7 +117,7 @@ const SandboxRuntimeSchema = z.object({
|
|
|
117
117
|
const SandboxFileSourceSchema = z.discriminatedUnion("type", [z.object({
|
|
118
118
|
type: z.literal("git"),
|
|
119
119
|
/** Remote git URL to clone. */
|
|
120
|
-
url: trimmedNonEmptyString("Git URL"),
|
|
120
|
+
url: trimmedNonEmptyString$1("Git URL"),
|
|
121
121
|
/** Branch to clone. Omit for default branch. */
|
|
122
122
|
branch: z.string().optional(),
|
|
123
123
|
/**
|
|
@@ -129,7 +129,7 @@ const SandboxFileSourceSchema = z.discriminatedUnion("type", [z.object({
|
|
|
129
129
|
}), z.object({
|
|
130
130
|
type: z.literal("local"),
|
|
131
131
|
/** Source path on the host (the dev's machine), resolved against project root. */
|
|
132
|
-
path: trimmedNonEmptyString("Local path"),
|
|
132
|
+
path: trimmedNonEmptyString$1("Local path"),
|
|
133
133
|
/**
|
|
134
134
|
* Where the file/dir lands inside the VM. Relative paths resolve
|
|
135
135
|
* against the sandbox `workdir`; absolute paths must stay under
|
|
@@ -169,18 +169,18 @@ const AgentThinkingLevelSchema = z.enum([
|
|
|
169
169
|
"high",
|
|
170
170
|
"xhigh"
|
|
171
171
|
]);
|
|
172
|
-
const mcpServerInstanceSchema = createStructuralSchema([
|
|
172
|
+
const mcpServerInstanceSchema = createStructuralSchema$1([
|
|
173
173
|
"id",
|
|
174
174
|
"transport",
|
|
175
175
|
"credentialSets"
|
|
176
176
|
], "a McpServer instance");
|
|
177
|
-
const sandboxInstanceSchema = createStructuralSchema([
|
|
177
|
+
const sandboxInstanceSchema = createStructuralSchema$1([
|
|
178
178
|
"id",
|
|
179
179
|
"runtime",
|
|
180
180
|
"fileSources",
|
|
181
181
|
"setupCommands"
|
|
182
182
|
], "a Sandbox instance");
|
|
183
|
-
const messagingGatewayInstanceSchema = createStructuralSchema([
|
|
183
|
+
const messagingGatewayInstanceSchema = createStructuralSchema$1([
|
|
184
184
|
"id",
|
|
185
185
|
"provider",
|
|
186
186
|
"mode",
|
|
@@ -198,14 +198,14 @@ const AgentToolCredentialSetReferenceSchema = z.object({
|
|
|
198
198
|
required: z.boolean()
|
|
199
199
|
});
|
|
200
200
|
z.object({
|
|
201
|
-
id: trimmedNonEmptyString("Agent ID"),
|
|
202
|
-
name: trimmedNonEmptyString("Agent name"),
|
|
201
|
+
id: trimmedNonEmptyString$1("Agent ID"),
|
|
202
|
+
name: trimmedNonEmptyString$1("Agent name"),
|
|
203
203
|
description: optionalDescriptionString("Agent description"),
|
|
204
204
|
systemPrompt: z.string().min(1, { error: "System prompt is required" }),
|
|
205
|
-
model: trimmedNonEmptyString("Model"),
|
|
205
|
+
model: trimmedNonEmptyString$1("Model"),
|
|
206
206
|
thinkingLevel: AgentThinkingLevelSchema.optional(),
|
|
207
|
-
input: anyZodSchemaSchema.optional(),
|
|
208
|
-
output: anyZodSchemaSchema.optional(),
|
|
207
|
+
input: anyZodSchemaSchema$1.optional(),
|
|
208
|
+
output: anyZodSchemaSchema$1.optional(),
|
|
209
209
|
tools: z.array(z.unknown()).optional(),
|
|
210
210
|
mcpServers: z.array(mcpServerInstanceSchema).optional(),
|
|
211
211
|
sandbox: sandboxInstanceSchema.optional(),
|
|
@@ -229,10 +229,10 @@ const AgentManifestSchema = z.object({
|
|
|
229
229
|
systemPrompt: z.string(),
|
|
230
230
|
model: z.string(),
|
|
231
231
|
thinkingLevel: AgentThinkingLevelSchema,
|
|
232
|
-
input: jsonSchemaObject,
|
|
233
|
-
output: jsonSchemaObject,
|
|
232
|
+
input: jsonSchemaObject$1,
|
|
233
|
+
output: jsonSchemaObject$1,
|
|
234
234
|
maxSteps: z.number(),
|
|
235
|
-
credentialSets: z.array(CredentialSetManifestSchema).optional(),
|
|
235
|
+
credentialSets: z.array(CredentialSetManifestSchema$1).optional(),
|
|
236
236
|
tools: z.array(z.object({
|
|
237
237
|
id: z.string(),
|
|
238
238
|
displayName: z.string(),
|
|
@@ -252,6 +252,252 @@ const AgentManifestSchema = z.object({
|
|
|
252
252
|
sandbox: SandboxManifestSchema.optional(),
|
|
253
253
|
messaging: z.array(MessagingGatewayManifestSchema).optional()
|
|
254
254
|
});
|
|
255
|
+
z.union([z.number().int().positive().finite(), z.string().regex(/^[1-9]\d*[smhdwy]$/)]);
|
|
256
|
+
const DurationStringSchema = z.string().refine((val) => /^\d+[smhdwy]$/.test(val), { message: "Invalid duration format. Must be a positive integer followed by s, m, h, d, w, or y (e.g., \"5m\", \"1h\")" }).refine((val) => {
|
|
257
|
+
const match = val.match(/^(\d+)[smhdwy]$/);
|
|
258
|
+
if (!match?.[1]) return false;
|
|
259
|
+
const num = Number.parseInt(match[1], 10);
|
|
260
|
+
return num > 0 && Number.isFinite(num);
|
|
261
|
+
}, { message: "Duration value must be a positive integer greater than 0" });
|
|
262
|
+
const CronExpressionSchema = z.string().superRefine((val, ctx) => {
|
|
263
|
+
try {
|
|
264
|
+
parseCronExpression(val);
|
|
265
|
+
} catch (error) {
|
|
266
|
+
const errorMessage = error instanceof Error ? error.message : "Invalid cron expression format";
|
|
267
|
+
ctx.addIssue({
|
|
268
|
+
code: "custom",
|
|
269
|
+
message: `Invalid cron expression: ${errorMessage}. Must be a valid 5-field cron: minute hour day month weekday (e.g., "0 9 * * *", "*/15 * * * *")`
|
|
270
|
+
});
|
|
271
|
+
}
|
|
272
|
+
});
|
|
273
|
+
const ScheduleSchema = z.union([
|
|
274
|
+
z.number().refine((val) => val > 0, { message: "Duration in milliseconds must be positive" }).refine(Number.isFinite, { message: "Duration in milliseconds must be finite" }).refine(Number.isInteger, { message: "Duration in milliseconds must be an integer" }),
|
|
275
|
+
DurationStringSchema,
|
|
276
|
+
CronExpressionSchema
|
|
277
|
+
]);
|
|
278
|
+
const IANATimezoneSchema = z.enum([
|
|
279
|
+
"UTC",
|
|
280
|
+
"GMT",
|
|
281
|
+
"Etc/UTC",
|
|
282
|
+
"Etc/GMT",
|
|
283
|
+
"America/New_York",
|
|
284
|
+
"America/Chicago",
|
|
285
|
+
"America/Denver",
|
|
286
|
+
"America/Los_Angeles",
|
|
287
|
+
"America/Phoenix",
|
|
288
|
+
"America/Anchorage",
|
|
289
|
+
"America/Toronto",
|
|
290
|
+
"America/Vancouver",
|
|
291
|
+
"America/Mexico_City",
|
|
292
|
+
"America/Sao_Paulo",
|
|
293
|
+
"America/Buenos_Aires",
|
|
294
|
+
"Europe/London",
|
|
295
|
+
"Europe/Paris",
|
|
296
|
+
"Europe/Berlin",
|
|
297
|
+
"Europe/Rome",
|
|
298
|
+
"Europe/Madrid",
|
|
299
|
+
"Europe/Amsterdam",
|
|
300
|
+
"Europe/Stockholm",
|
|
301
|
+
"Europe/Vienna",
|
|
302
|
+
"Europe/Zurich",
|
|
303
|
+
"Europe/Moscow",
|
|
304
|
+
"Europe/Athens",
|
|
305
|
+
"Europe/Dublin",
|
|
306
|
+
"Asia/Tokyo",
|
|
307
|
+
"Asia/Shanghai",
|
|
308
|
+
"Asia/Hong_Kong",
|
|
309
|
+
"Asia/Singapore",
|
|
310
|
+
"Asia/Seoul",
|
|
311
|
+
"Asia/Dubai",
|
|
312
|
+
"Asia/Kolkata",
|
|
313
|
+
"Asia/Bangkok",
|
|
314
|
+
"Asia/Jakarta",
|
|
315
|
+
"Asia/Manila",
|
|
316
|
+
"Asia/Taipei",
|
|
317
|
+
"Australia/Sydney",
|
|
318
|
+
"Australia/Melbourne",
|
|
319
|
+
"Australia/Brisbane",
|
|
320
|
+
"Australia/Perth",
|
|
321
|
+
"Australia/Adelaide",
|
|
322
|
+
"Pacific/Auckland",
|
|
323
|
+
"Pacific/Honolulu",
|
|
324
|
+
"Africa/Cairo",
|
|
325
|
+
"Africa/Johannesburg",
|
|
326
|
+
"Africa/Lagos",
|
|
327
|
+
"Africa/Nairobi",
|
|
328
|
+
"Asia/Riyadh",
|
|
329
|
+
"Asia/Tehran",
|
|
330
|
+
"Asia/Jerusalem",
|
|
331
|
+
"Asia/Doha"
|
|
332
|
+
]);
|
|
333
|
+
//#endregion
|
|
334
|
+
//#region ../../packages/core/dist/chunks/schemas-CRXLuZkZ.mjs
|
|
335
|
+
const trimmedString = z.string().trim().min(1);
|
|
336
|
+
const payloadHashSchema = z.object({
|
|
337
|
+
from: z.literal("payload"),
|
|
338
|
+
strategy: z.literal("hash")
|
|
339
|
+
});
|
|
340
|
+
const payloadPathSchema = z.object({
|
|
341
|
+
from: z.literal("payload"),
|
|
342
|
+
path: trimmedString
|
|
343
|
+
});
|
|
344
|
+
const headerHashSchema = z.object({
|
|
345
|
+
from: z.literal("header"),
|
|
346
|
+
strategy: z.literal("hash")
|
|
347
|
+
});
|
|
348
|
+
const headerNameSchema = z.object({
|
|
349
|
+
from: z.literal("header"),
|
|
350
|
+
name: trimmedString
|
|
351
|
+
});
|
|
352
|
+
const idempotencyKeyConfigSchema = z.union([
|
|
353
|
+
payloadHashSchema,
|
|
354
|
+
payloadPathSchema,
|
|
355
|
+
headerHashSchema,
|
|
356
|
+
headerNameSchema
|
|
357
|
+
]);
|
|
358
|
+
const credentialSetInstanceSchema = createStructuralSchema([
|
|
359
|
+
"id",
|
|
360
|
+
"auth",
|
|
361
|
+
"connections"
|
|
362
|
+
], "a CredentialSet instance");
|
|
363
|
+
const TriggerModeDefaultSchema = z.enum(["managed", "subscribable"]);
|
|
364
|
+
const TriggerRuntimeDescriptorSchema = z.object({
|
|
365
|
+
/**
|
|
366
|
+
* True when this trigger bundles a `poll` export executed inside a
|
|
367
|
+
* microsandbox VM at trigger time. Polling-only — webhook/cron always
|
|
368
|
+
* leave this undefined. Replaces the legacy `callbacks: { poll, ... }`
|
|
369
|
+
* descriptor (the other callbacks are gone now that filter/idempotency/
|
|
370
|
+
* verify/transform are declarative or run in the workflow VM).
|
|
371
|
+
*/
|
|
372
|
+
poll: z.boolean().optional(),
|
|
373
|
+
filterSchema: jsonSchemaObject.optional(),
|
|
374
|
+
/** Webhook-only declarative idempotency-key resolver. */
|
|
375
|
+
idempotencyConfig: idempotencyKeyConfigSchema.optional()
|
|
376
|
+
});
|
|
377
|
+
z.object({
|
|
378
|
+
manifestVersion: z.literal(1),
|
|
379
|
+
type: z.literal("trigger"),
|
|
380
|
+
triggerType: TriggerTypeSchema,
|
|
381
|
+
id: trimmedNonEmptyString("Trigger id"),
|
|
382
|
+
description: descriptionString("Trigger description"),
|
|
383
|
+
enabled: z.boolean(),
|
|
384
|
+
modeDefault: TriggerModeDefaultSchema,
|
|
385
|
+
executionIdentityPolicy: ExecutionIdentityPolicySchema.optional(),
|
|
386
|
+
credentialSets: z.array(CredentialSetManifestSchema).optional(),
|
|
387
|
+
runtime: TriggerRuntimeDescriptorSchema
|
|
388
|
+
});
|
|
389
|
+
const triggerBaseConfigSchema = z.object({
|
|
390
|
+
credentialSets: z.array(credentialSetInstanceSchema).optional(),
|
|
391
|
+
description: descriptionString("Trigger description"),
|
|
392
|
+
enabled: z.boolean().default(true),
|
|
393
|
+
executionIdentityPolicy: ExecutionIdentityPolicySchema.optional(),
|
|
394
|
+
modeDefault: TriggerModeDefaultSchema.default("managed"),
|
|
395
|
+
id: trimmedNonEmptyString("Trigger id")
|
|
396
|
+
});
|
|
397
|
+
triggerBaseConfigSchema.extend({
|
|
398
|
+
input: anyZodSchemaSchema,
|
|
399
|
+
payload: z.custom((value) => {
|
|
400
|
+
return jsonValueSchema.safeParse(value).success;
|
|
401
|
+
}, "Expected a JSON-serializable payload"),
|
|
402
|
+
schedule: ScheduleSchema,
|
|
403
|
+
timezone: IANATimezoneSchema.optional()
|
|
404
|
+
});
|
|
405
|
+
const cronTriggerRuntimeSchema = TriggerRuntimeDescriptorSchema.extend({
|
|
406
|
+
input: jsonSchemaObject,
|
|
407
|
+
payloadMode: z.literal("static"),
|
|
408
|
+
schedule: z.string(),
|
|
409
|
+
timezone: z.string().optional()
|
|
410
|
+
});
|
|
411
|
+
const cronTriggerManifestSchema = z.object({
|
|
412
|
+
manifestVersion: z.literal(1),
|
|
413
|
+
type: z.literal("trigger"),
|
|
414
|
+
triggerType: z.literal("cron"),
|
|
415
|
+
id: trimmedNonEmptyString("Trigger id"),
|
|
416
|
+
description: descriptionString("Trigger description"),
|
|
417
|
+
enabled: z.boolean(),
|
|
418
|
+
modeDefault: z.enum(["managed", "subscribable"]),
|
|
419
|
+
executionIdentityPolicy: triggerBaseConfigSchema.shape.executionIdentityPolicy,
|
|
420
|
+
credentialSets: z.array(CredentialSetManifestSchema).optional(),
|
|
421
|
+
runtime: cronTriggerRuntimeSchema,
|
|
422
|
+
/** Static payload for cron triggers — the workflow input when this trigger fires */
|
|
423
|
+
payload: jsonValueSchema.optional()
|
|
424
|
+
});
|
|
425
|
+
z.object({
|
|
426
|
+
lastPolledAt: z.string().optional(),
|
|
427
|
+
lastResponse: z.unknown().optional()
|
|
428
|
+
});
|
|
429
|
+
triggerBaseConfigSchema.extend({
|
|
430
|
+
poll: z.function(),
|
|
431
|
+
filter: anyZodSchemaSchema.optional(),
|
|
432
|
+
response: anyZodSchemaSchema,
|
|
433
|
+
schedule: ScheduleSchema
|
|
434
|
+
});
|
|
435
|
+
const pollingTriggerRuntimeSchema = TriggerRuntimeDescriptorSchema.extend({
|
|
436
|
+
response: jsonSchemaObject,
|
|
437
|
+
schedule: z.string(),
|
|
438
|
+
state: z.object({
|
|
439
|
+
lastPolledAt: z.literal(true),
|
|
440
|
+
lastResponse: z.literal(true)
|
|
441
|
+
})
|
|
442
|
+
});
|
|
443
|
+
const pollingTriggerManifestSchema = z.object({
|
|
444
|
+
manifestVersion: z.literal(1),
|
|
445
|
+
type: z.literal("trigger"),
|
|
446
|
+
triggerType: z.literal("polling"),
|
|
447
|
+
id: trimmedNonEmptyString("Trigger id"),
|
|
448
|
+
description: descriptionString("Trigger description"),
|
|
449
|
+
enabled: z.boolean(),
|
|
450
|
+
modeDefault: z.enum(["managed", "subscribable"]),
|
|
451
|
+
executionIdentityPolicy: triggerBaseConfigSchema.shape.executionIdentityPolicy,
|
|
452
|
+
credentialSets: z.array(CredentialSetManifestSchema).optional(),
|
|
453
|
+
runtime: pollingTriggerRuntimeSchema
|
|
454
|
+
});
|
|
455
|
+
z.object({
|
|
456
|
+
method: z.string(),
|
|
457
|
+
path: z.string(),
|
|
458
|
+
query: z.record(z.string(), z.union([
|
|
459
|
+
z.string(),
|
|
460
|
+
z.array(z.string()),
|
|
461
|
+
z.undefined()
|
|
462
|
+
])),
|
|
463
|
+
headers: z.record(z.string(), z.string().optional()),
|
|
464
|
+
rawBody: z.string()
|
|
465
|
+
});
|
|
466
|
+
const webhookCustomSourceConfigSchema = z.object({ type: z.literal("custom") });
|
|
467
|
+
const webhookAppSourceConfigSchema = z.object({
|
|
468
|
+
type: z.literal("app"),
|
|
469
|
+
appRef: trimmedNonEmptyString("appRef")
|
|
470
|
+
});
|
|
471
|
+
const webhookSourceConfigSchema = z.discriminatedUnion("type", [webhookCustomSourceConfigSchema, webhookAppSourceConfigSchema]);
|
|
472
|
+
const webhookCustomSourceManifestSchema = z.object({ type: z.literal("custom") });
|
|
473
|
+
const webhookAppSourceManifestSchema = z.object({
|
|
474
|
+
type: z.literal("app"),
|
|
475
|
+
appRef: trimmedNonEmptyString("appRef")
|
|
476
|
+
});
|
|
477
|
+
const WebhookSourceManifestSchema = z.discriminatedUnion("type", [webhookCustomSourceManifestSchema, webhookAppSourceManifestSchema]);
|
|
478
|
+
triggerBaseConfigSchema.omit({ credentialSets: true }).extend({
|
|
479
|
+
source: webhookSourceConfigSchema,
|
|
480
|
+
payload: anyZodSchemaSchema.optional(),
|
|
481
|
+
filter: anyZodSchemaSchema.optional(),
|
|
482
|
+
idempotencyKey: idempotencyKeyConfigSchema.optional()
|
|
483
|
+
});
|
|
484
|
+
const webhookTriggerRuntimeSchema = TriggerRuntimeDescriptorSchema.extend({
|
|
485
|
+
source: WebhookSourceManifestSchema,
|
|
486
|
+
payload: jsonSchemaObject
|
|
487
|
+
});
|
|
488
|
+
const webhookTriggerManifestSchema = z.object({
|
|
489
|
+
manifestVersion: z.literal(1),
|
|
490
|
+
type: z.literal("trigger"),
|
|
491
|
+
triggerType: z.literal("webhook"),
|
|
492
|
+
id: trimmedNonEmptyString("Trigger id"),
|
|
493
|
+
description: descriptionString("Trigger description"),
|
|
494
|
+
enabled: z.boolean(),
|
|
495
|
+
modeDefault: z.enum(["managed", "subscribable"]),
|
|
496
|
+
executionIdentityPolicy: triggerBaseConfigSchema.shape.executionIdentityPolicy,
|
|
497
|
+
credentialSets: z.array(CredentialSetManifestSchema).optional(),
|
|
498
|
+
runtime: webhookTriggerRuntimeSchema
|
|
499
|
+
});
|
|
500
|
+
z.unknown();
|
|
255
501
|
//#endregion
|
|
256
502
|
//#region ../../packages/workflow-builder/dist/import-module-y0glInUe.mjs
|
|
257
503
|
var DiscoveryError = class extends Error {
|
|
@@ -1725,7 +1971,7 @@ const LoaderTimingSchema = z.object({
|
|
|
1725
1971
|
manifestMs: z.number(),
|
|
1726
1972
|
flowGraphMs: z.number()
|
|
1727
1973
|
});
|
|
1728
|
-
const DeclaredCredentialEntrySchema =
|
|
1974
|
+
const DeclaredCredentialEntrySchema = DeclaredCredentialRequirementSchema;
|
|
1729
1975
|
const CredentialsByCallsiteFingerprintSchema = z.record(z.string(), z.array(DeclaredCredentialEntrySchema));
|
|
1730
1976
|
const CredentialAttributionWarningSchema = z.object({
|
|
1731
1977
|
category: z.literal("unmatched-callsite"),
|
|
@@ -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-9Kro0Dl3.mjs";
|
|
4
|
+
import { t as SKILL_INSTALL_METHODS } from "./types-D1cVpE7_.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-BoYbE-6H.mjs")).handleInit
|
|
49
49
|
});
|
|
50
50
|
}
|
|
51
51
|
//#endregion
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
3
|
import { D as CliExitError, a as ui, i as fetchLatestNpmPackageVersion } from "./keystroke.mjs";
|
|
4
|
-
import { i as projects } from "./dist-
|
|
4
|
+
import { i as projects } from "./dist-DuJjDZIf.mjs";
|
|
5
5
|
import { a as writeProjectConfig, i as readProjectConfig, r as getProjectConfigPath } from "./project-config-DudGRFPO.mjs";
|
|
6
|
-
import { i as requireClient } from "./context-
|
|
7
|
-
import { i as UnknownSkillAgentError, n as resolveSkillInstallChoices, r as installKeystrokeAgentSkills, t as summarizeSkillInstall } from "./skill-installer-
|
|
6
|
+
import { i as requireClient } from "./context-B2cQ-Nt3.mjs";
|
|
7
|
+
import { i as UnknownSkillAgentError, n as resolveSkillInstallChoices, r as installKeystrokeAgentSkills, t as summarizeSkillInstall } from "./skill-installer-Cm9hF6OB.mjs";
|
|
8
8
|
import { createRequire } from "node:module";
|
|
9
9
|
import path from "node:path";
|
|
10
10
|
import { access, mkdir, readFile, writeFile } from "node:fs/promises";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
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-
|
|
4
|
+
import { i as projects } from "./dist-DuJjDZIf.mjs";
|
|
5
5
|
import { i as writeJson } from "./output-BWcVRt-T.mjs";
|
|
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-
|
|
6
|
+
import { i as requireClient, t as assertProjectConfigMatchesAuthenticatedOrg } from "./context-B2cQ-Nt3.mjs";
|
|
7
|
+
import { i as resolveTypeHint } from "./schema-display-XrRCdFL0.mjs";
|
|
8
|
+
import { n as resolveLocalWorkflowManifest, r as resolveProjectContext, t as lookupCurrentDeploymentWorkflow } from "./current-deployment-workflow-qMfOrRIu.mjs";
|
|
9
9
|
import dayjs from "dayjs";
|
|
10
10
|
//#region src/commands/workflows/inspect/inspect-display.ts
|
|
11
11
|
function formatBuildTimestamp(iso) {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
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
4
|
import { a as writeJsonError } from "./output-BWcVRt-T.mjs";
|
|
5
|
-
import { i as requireClient } from "./context-
|
|
5
|
+
import { i as requireClient } from "./context-B2cQ-Nt3.mjs";
|
|
6
6
|
//#region src/lib/integration-catalog.ts
|
|
7
7
|
const catalogCache = /* @__PURE__ */ new WeakMap();
|
|
8
8
|
function buildView(entries) {
|
|
@@ -1,8 +1,8 @@
|
|
|
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-
|
|
5
|
-
import { t as ConnectionKindValues } from "./api-
|
|
4
|
+
import { t as createTypedCommand } from "./commander-9Kro0Dl3.mjs";
|
|
5
|
+
import { t as ConnectionKindValues } from "./api-J9UL8pqZ.mjs";
|
|
6
6
|
import { z } from "zod";
|
|
7
7
|
//#region ../../packages/shared-types/src/platform-providers/index.ts
|
|
8
8
|
const platformProviderRegistry = {
|
|
@@ -150,20 +150,20 @@ function createIntegrationsCommand() {
|
|
|
150
150
|
description: "List Keystroke integrations available to your organization",
|
|
151
151
|
schema: IntegrationsListOptionsSchema,
|
|
152
152
|
optionsConfig: INTEGRATIONS_LIST_OPTIONS_CONFIG,
|
|
153
|
-
loadHandler: async () => (await import("./list.handler-
|
|
153
|
+
loadHandler: async () => (await import("./list.handler-DRe38pAj.mjs")).handleIntegrationsList,
|
|
154
154
|
subcommands: [createTypedCommand({
|
|
155
155
|
name: "list",
|
|
156
156
|
description: "List Keystroke integrations available to your organization",
|
|
157
157
|
schema: IntegrationsListOptionsSchema,
|
|
158
158
|
optionsConfig: INTEGRATIONS_LIST_OPTIONS_CONFIG,
|
|
159
|
-
loadHandler: async () => (await import("./list.handler-
|
|
159
|
+
loadHandler: async () => (await import("./list.handler-DRe38pAj.mjs")).handleIntegrationsList
|
|
160
160
|
}), createTypedCommand({
|
|
161
161
|
name: "register",
|
|
162
162
|
description: "Register an org-scoped custom provider app for workspace-authored OAuth support",
|
|
163
163
|
schema: IntegrationsRegisterOptionsSchema,
|
|
164
164
|
optionsConfig: INTEGRATIONS_REGISTER_OPTIONS_CONFIG,
|
|
165
165
|
handler: async (opts, ctx) => {
|
|
166
|
-
const { handleIntegrationsRegister } = await import("./register.handler-
|
|
166
|
+
const { handleIntegrationsRegister } = await import("./register.handler-C_NqMLir.mjs");
|
|
167
167
|
await handleIntegrationsRegister({
|
|
168
168
|
integrationId: opts.integrationId,
|
|
169
169
|
clientAppCredentialSetId: opts.clientApp,
|
|
@@ -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-
|
|
4
|
+
import { t as createTypedCommand } from "./commander-9Kro0Dl3.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-6x3GVumu.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-6x3GVumu.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-C6KBLKmW.mjs")).handleInvitesAccept
|
|
40
40
|
})]
|
|
41
41
|
});
|
|
42
42
|
}
|
|
@@ -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-B2cQ-Nt3.mjs";
|
|
6
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
|
|
@@ -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-B2cQ-Nt3.mjs";
|
|
6
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) {
|
|
@@ -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-B2cQ-Nt3.mjs";
|
|
6
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) {
|