@keystrokehq/cli 0.0.27 → 0.0.29
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/{connect-BUu2ojK7.mjs → connect-zNUiEjbR.mjs} +1 -1
- package/dist/{connect.handler-D7oO_5WS.mjs → connect.handler-D1orna55.mjs} +1 -1
- package/dist/{credentials-C-MN9q-b.mjs → credentials-DzmutsMa.mjs} +4 -4
- package/dist/{credentials-DQW8xxof.mjs → credentials-N4L3Vaib.mjs} +1 -1
- package/dist/{env.handler-DzDtYyqj.mjs → env.handler-DYOsMM-G.mjs} +1 -1
- package/dist/{integrations-BfeKNPg6.mjs → integrations-CMg20Q9z.mjs} +1 -1
- package/dist/keystroke.mjs +5 -5
- package/dist/{list-enrichment-CCRHYslm.mjs → list-enrichment-6zUKzSyL.mjs} +1 -1
- package/dist/{list.handler-DxT7YHW7.mjs → list.handler-CYChUdMF.mjs} +1 -1
- package/dist/{requirements.handler-Cje-GJ8H.mjs → requirements.handler-C-5PIRvy.mjs} +2 -2
- package/dist/{upload.handler-B2vPQp8w.mjs → upload.handler-Capc50yH.mjs} +1 -1
- package/dist/{workflows-DYwiYttT.mjs → workflows-Lz8M15i7.mjs} +1 -1
- package/package.json +8 -8
|
@@ -61,7 +61,7 @@ function createConnectCommand() {
|
|
|
61
61
|
description: "Connect an official integration via OAuth (e.g., keystroke connect slack)",
|
|
62
62
|
schema: ConnectOptionsSchema,
|
|
63
63
|
optionsConfig: CONNECT_OPTIONS_CONFIG,
|
|
64
|
-
loadHandler: async () => (await import("./connect.handler-
|
|
64
|
+
loadHandler: async () => (await import("./connect.handler-D1orna55.mjs")).handleConnect,
|
|
65
65
|
argument: {
|
|
66
66
|
name: "integrationId",
|
|
67
67
|
description: "Integration to connect (e.g., slack, linear)",
|
|
@@ -181,7 +181,7 @@ async function handleConnect(options, ctx) {
|
|
|
181
181
|
if (!response.ok) {
|
|
182
182
|
if (response.status === 404) exitWithError(ctx, `Integration "${integrationId}" is not supported for platform OAuth.`, {
|
|
183
183
|
code: "UNSUPPORTED_INTEGRATION",
|
|
184
|
-
hint: `Currently supported official OAuth integrations: ${catalog.oauthPublicIds.join(", ")}.
|
|
184
|
+
hint: `Currently supported official OAuth integrations: ${catalog.oauthPublicIds.join(", ")}. Custom OAuth connect flows are not available yet.`
|
|
185
185
|
});
|
|
186
186
|
if (response.status === 503) exitWithError(ctx, `Platform credentials not configured for "${integrationId}".`, {
|
|
187
187
|
code: "PLATFORM_NOT_CONFIGURED",
|
|
@@ -46,7 +46,7 @@ function createCredentialsListCommand() {
|
|
|
46
46
|
description: "List credential sets on the server",
|
|
47
47
|
schema: ListOptionsSchema,
|
|
48
48
|
optionsConfig: LIST_OPTIONS_CONFIG,
|
|
49
|
-
loadHandler: async () => (await import("./list.handler-
|
|
49
|
+
loadHandler: async () => (await import("./list.handler-CYChUdMF.mjs")).handleCredentialsList
|
|
50
50
|
});
|
|
51
51
|
}
|
|
52
52
|
//#endregion
|
|
@@ -65,7 +65,7 @@ function createCredentialsRequirementsCommand() {
|
|
|
65
65
|
description: "Show what credentials built workflows need (keys, KEYSTROKE_* env names, workflows) — from dist manifests, no API call",
|
|
66
66
|
schema: RequirementsOptionsSchema,
|
|
67
67
|
optionsConfig: REQUIREMENTS_OPTIONS_CONFIG,
|
|
68
|
-
loadHandler: async () => (await import("./requirements.handler-
|
|
68
|
+
loadHandler: async () => (await import("./requirements.handler-C-5PIRvy.mjs")).handleCredentialsRequirements
|
|
69
69
|
});
|
|
70
70
|
}
|
|
71
71
|
//#endregion
|
|
@@ -126,7 +126,7 @@ function createCredentialsUploadCommand() {
|
|
|
126
126
|
description: "Upload credentials from env vars to the server. Default: reads requirements from built workflow manifests. Use --integration for an official integration or --credential-set + --keys for a custom explicit upload.",
|
|
127
127
|
schema: UploadOptionsSchema,
|
|
128
128
|
optionsConfig: UPLOAD_OPTIONS_CONFIG,
|
|
129
|
-
loadHandler: async () => (await import("./upload.handler-
|
|
129
|
+
loadHandler: async () => (await import("./upload.handler-Capc50yH.mjs")).handleCredentialsUpload
|
|
130
130
|
});
|
|
131
131
|
}
|
|
132
132
|
//#endregion
|
|
@@ -157,7 +157,7 @@ function createCredentialsCommand() {
|
|
|
157
157
|
}
|
|
158
158
|
},
|
|
159
159
|
handler: async (opts, ctx) => {
|
|
160
|
-
const { handleCredentialsList } = await import("./list.handler-
|
|
160
|
+
const { handleCredentialsList } = await import("./list.handler-CYChUdMF.mjs");
|
|
161
161
|
await handleCredentialsList({
|
|
162
162
|
...opts,
|
|
163
163
|
scope: void 0,
|
|
@@ -160,7 +160,7 @@ async function verifyCredentialResolvable(params) {
|
|
|
160
160
|
* Returns `{ status: 'skipped' }` when the credential set has no hook or is
|
|
161
161
|
* not an official integration. User-authored credential sets get the
|
|
162
162
|
* skipped path today; a separate cluster will add server-side validation
|
|
163
|
-
* for
|
|
163
|
+
* for custom integrations.
|
|
164
164
|
*
|
|
165
165
|
* @example
|
|
166
166
|
* ```ts
|
|
@@ -8,7 +8,7 @@ import { n as CredentialConnectionIdSchema, r as CredentialScopeSchema, t as Con
|
|
|
8
8
|
import { a as readManifestsFromOutDir } from "./dist-CTEtWDW4.mjs";
|
|
9
9
|
import { t as requireWorkflowsDir } from "./resolve-project-DJJZIOmu.mjs";
|
|
10
10
|
import { t as getIntegrationCatalog } from "./integration-catalog-Cub_7xCw.mjs";
|
|
11
|
-
import { t as groupCredentialRequirements } from "./credentials-
|
|
11
|
+
import { t as groupCredentialRequirements } from "./credentials-N4L3Vaib.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
|
|
@@ -159,7 +159,7 @@ function createIntegrationsCommand() {
|
|
|
159
159
|
loadHandler: async () => (await import("./list.handler-BjKZ9-QO.mjs")).handleIntegrationsList
|
|
160
160
|
}), createTypedCommand({
|
|
161
161
|
name: "register",
|
|
162
|
-
description: "Register an org-scoped custom provider app for
|
|
162
|
+
description: "Register an org-scoped custom provider app for custom OAuth support",
|
|
163
163
|
schema: IntegrationsRegisterOptionsSchema,
|
|
164
164
|
optionsConfig: INTEGRATIONS_REGISTER_OPTIONS_CONFIG,
|
|
165
165
|
handler: async (opts, ctx) => {
|
package/dist/keystroke.mjs
CHANGED
|
@@ -521,7 +521,7 @@ const logger = {
|
|
|
521
521
|
};
|
|
522
522
|
//#endregion
|
|
523
523
|
//#region package.json
|
|
524
|
-
var version = "0.0.
|
|
524
|
+
var version = "0.0.29";
|
|
525
525
|
//#endregion
|
|
526
526
|
//#region src/command-registry.ts
|
|
527
527
|
const ROOT_OPTIONS_WITH_VALUES$1 = new Set([
|
|
@@ -549,11 +549,11 @@ const lazyCommandDefinitions = [
|
|
|
549
549
|
},
|
|
550
550
|
{
|
|
551
551
|
name: "connect",
|
|
552
|
-
loadCommand: async () => (await import("./connect-
|
|
552
|
+
loadCommand: async () => (await import("./connect-zNUiEjbR.mjs")).createConnectCommand()
|
|
553
553
|
},
|
|
554
554
|
{
|
|
555
555
|
name: "credentials",
|
|
556
|
-
loadCommand: async () => (await import("./credentials-
|
|
556
|
+
loadCommand: async () => (await import("./credentials-DzmutsMa.mjs")).createCredentialsCommand(),
|
|
557
557
|
copyInheritedSettings: true
|
|
558
558
|
},
|
|
559
559
|
{
|
|
@@ -570,7 +570,7 @@ const lazyCommandDefinitions = [
|
|
|
570
570
|
},
|
|
571
571
|
{
|
|
572
572
|
name: "integrations",
|
|
573
|
-
loadCommand: async () => (await import("./integrations-
|
|
573
|
+
loadCommand: async () => (await import("./integrations-CMg20Q9z.mjs")).createIntegrationsCommand()
|
|
574
574
|
},
|
|
575
575
|
{
|
|
576
576
|
name: "invites",
|
|
@@ -610,7 +610,7 @@ const lazyCommandDefinitions = [
|
|
|
610
610
|
},
|
|
611
611
|
{
|
|
612
612
|
name: "workflows",
|
|
613
|
-
loadCommand: async () => (await import("./workflows-
|
|
613
|
+
loadCommand: async () => (await import("./workflows-Lz8M15i7.mjs")).createWorkflowsCommand()
|
|
614
614
|
}
|
|
615
615
|
];
|
|
616
616
|
function selectCommandRegistration(argv, commandNames = new Set(lazyCommandDefinitions.map((definition) => definition.name))) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
3
|
import { a as ui, n as style, t as ANSI } from "./keystroke.mjs";
|
|
4
|
-
import { n as resolveCredentialValuesFromEnv, t as groupCredentialRequirements } from "./credentials-
|
|
4
|
+
import { n as resolveCredentialValuesFromEnv, t as groupCredentialRequirements } from "./credentials-N4L3Vaib.mjs";
|
|
5
5
|
import path from "node:path";
|
|
6
6
|
import { readFile } from "node:fs/promises";
|
|
7
7
|
import { parse } from "dotenv";
|
|
@@ -6,7 +6,7 @@ import { i as requireClient } from "./context-DHOTSgPb.mjs";
|
|
|
6
6
|
import { a as readManifestsFromOutDir } from "./dist-CTEtWDW4.mjs";
|
|
7
7
|
import { n as resolveWorkflowsDir } from "./resolve-project-DJJZIOmu.mjs";
|
|
8
8
|
import { t as readCredentialEnvMap } from "./credential-env-map-CtmzNkwU.mjs";
|
|
9
|
-
import { a as loadProjectDotenvFile, i as enrichServerCredentialRow, l as renderCredentialListBlocks, n as buildSyntheticNotOnServerRows, r as collectMergedManifestGroups, t as buildCredentialWorkflowConsumersByGroup } from "./list-enrichment-
|
|
9
|
+
import { a as loadProjectDotenvFile, i as enrichServerCredentialRow, l as renderCredentialListBlocks, n as buildSyntheticNotOnServerRows, r as collectMergedManifestGroups, t as buildCredentialWorkflowConsumersByGroup } from "./list-enrichment-6zUKzSyL.mjs";
|
|
10
10
|
import dayjs from "dayjs";
|
|
11
11
|
//#region src/commands/credentials/list/fetch-all-credential-sets.ts
|
|
12
12
|
/**
|
|
@@ -5,8 +5,8 @@ import { i as writeJson } from "./output-BWcVRt-T.mjs";
|
|
|
5
5
|
import { a as readManifestsFromOutDir } from "./dist-CTEtWDW4.mjs";
|
|
6
6
|
import { t as requireWorkflowsDir } from "./resolve-project-DJJZIOmu.mjs";
|
|
7
7
|
import { t as readCredentialEnvMap } from "./credential-env-map-CtmzNkwU.mjs";
|
|
8
|
-
import { a as loadProjectDotenvFile, c as getTerminalContentWidth, o as manifestGroupKey, s as normalizeManifestScopeToServer, t as buildCredentialWorkflowConsumersByGroup, u as truncateWithEllipsis } from "./list-enrichment-
|
|
9
|
-
import { t as groupCredentialRequirements } from "./credentials-
|
|
8
|
+
import { a as loadProjectDotenvFile, c as getTerminalContentWidth, o as manifestGroupKey, s as normalizeManifestScopeToServer, t as buildCredentialWorkflowConsumersByGroup, u as truncateWithEllipsis } from "./list-enrichment-6zUKzSyL.mjs";
|
|
9
|
+
import { t as groupCredentialRequirements } from "./credentials-N4L3Vaib.mjs";
|
|
10
10
|
//#region src/commands/credentials/requirements/requirements-display.ts
|
|
11
11
|
function dimLabel(label, width = 10) {
|
|
12
12
|
return style(label.padEnd(width), ANSI.dim);
|
|
@@ -8,7 +8,7 @@ import { a as readManifestsFromOutDir, t as collectCredentialFingerprintMapFromP
|
|
|
8
8
|
import { t as requireWorkflowsDir } from "./resolve-project-DJJZIOmu.mjs";
|
|
9
9
|
import { t as getIntegrationCatalog } from "./integration-catalog-Cub_7xCw.mjs";
|
|
10
10
|
import { t as readCredentialEnvMap } from "./credential-env-map-CtmzNkwU.mjs";
|
|
11
|
-
import { a as verifyCredentialResolvable, i as validateManualCredentialWithHook, n as resolveCredentialValuesFromEnv, r as uploadCredential, t as groupCredentialRequirements } from "./credentials-
|
|
11
|
+
import { a as verifyCredentialResolvable, i as validateManualCredentialWithHook, n as resolveCredentialValuesFromEnv, r as uploadCredential, t as groupCredentialRequirements } from "./credentials-N4L3Vaib.mjs";
|
|
12
12
|
import { n as renderCredentialSchemaMismatchText, r as writeCredentialSchemaMismatchJson, t as isCredentialSchemaMismatchErrorLike } from "./credential-schema-mismatch-kfGeiSB1.mjs";
|
|
13
13
|
import * as path$1 from "node:path";
|
|
14
14
|
import { confirm, isCancel } from "@clack/prompts";
|
|
@@ -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-DYOsMM-G.mjs")).handleWorkflowsEnv
|
|
384
384
|
});
|
|
385
385
|
}
|
|
386
386
|
//#endregion
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@keystrokehq/cli",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.29",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Command-line interface for creating, managing, and deploying Keystroke automations.",
|
|
6
6
|
"type": "module",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"rolldown": "1.0.0",
|
|
33
33
|
"tsx": "^4.21.0",
|
|
34
34
|
"zod": "4.4.3",
|
|
35
|
-
"@keystrokehq/skills": "0.0.
|
|
35
|
+
"@keystrokehq/skills": "0.0.8"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
38
|
"tsdown": "0.21.10",
|
|
@@ -41,17 +41,17 @@
|
|
|
41
41
|
"@keystroke/env-utils": "0.0.0",
|
|
42
42
|
"@keystroke/local-memory": "0.0.1",
|
|
43
43
|
"@keystrokehq/config": "0.0.2",
|
|
44
|
-
"@keystroke/shared-types": "0.0.
|
|
44
|
+
"@keystroke/shared-types": "0.0.8",
|
|
45
|
+
"@keystroke/test-utils": "0.0.4",
|
|
45
46
|
"@keystroke/typescript-config": "0.0.0",
|
|
46
47
|
"@keystroke/utils": "0.0.0",
|
|
47
|
-
"@keystroke/
|
|
48
|
-
"@keystroke/workflow-builder": "0.0.9",
|
|
48
|
+
"@keystroke/workflow-builder": "0.0.10",
|
|
49
49
|
"@keystrokehq/core": "0.0.8",
|
|
50
|
-
"@keystrokehq/workflow-build-contracts": "0.0.4",
|
|
51
50
|
"@keystrokehq/runtime": "0.0.5",
|
|
51
|
+
"@keystrokehq/workflow-build-contracts": "0.0.4",
|
|
52
52
|
"@keystrokehq/testing": "0.2.3",
|
|
53
|
-
"@keystroke/workflow-
|
|
54
|
-
"@keystroke/workflow-
|
|
53
|
+
"@keystroke/workflow-deploy": "0.0.9",
|
|
54
|
+
"@keystroke/workflow-sdk": "0.0.7"
|
|
55
55
|
},
|
|
56
56
|
"keywords": [
|
|
57
57
|
"automation",
|