@keystrokehq/cli 1.0.31 → 1.0.32
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/index.mjs +8 -3
- package/dist/index.mjs.map +1 -1
- package/dist/{maybe-auto-update-HA7HooH4.mjs → maybe-auto-update-BD5o34qG.mjs} +2 -2
- package/dist/{maybe-auto-update-HA7HooH4.mjs.map → maybe-auto-update-BD5o34qG.mjs.map} +1 -1
- package/dist/{version-CQ7xeQi9.mjs → version-SEE2eWz0.mjs} +2 -1
- package/dist/version-SEE2eWz0.mjs.map +1 -0
- package/package.json +1 -1
- package/dist/version-CQ7xeQi9.mjs.map +0 -1
package/dist/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { $ as HistoryRunListQuerySchema, $t as UpdateCredentialInstanceBodySchema, A as CreateCustomAppRequestSchema, An as parseErrorResponse, At as ProjectResponseSchema, B as CredentialConsumerListQuerySchema, Bt as SkillSummaryListResponseSchema, C as ConnectAuthorizeUrlResponseSchema, Cn as WorkspaceTriggerRunListResponseSchema, Ct as PresignOrgLogoRequestSchema, D as CreateCredentialInstanceBodySchema, Dt as PresignUserAvatarRequestSchema, E as CreateApiKeyResponseSchema, En as listenPortFromPublicUrl, Et as PresignProjectSourceResponseSchema, F as CreateProjectRequestSchema, Ft as QueuedAgentPromptResponseSchema, G as DownloadActiveProjectArtifactResponseSchema, Gt as StartOAuthConnectionResultSchema, H as CredentialInstanceListResponseSchema, Ht as StartKeystrokeConnectionInputSchema, I as CreateProjectResponseSchema, It as QueuedRunResponseSchema, J as GetCredentialResponseSchema, Jt as TriggerDetailResponseSchema, K as ErrorResponseSchema, Kt as SubmitMarketingContactRequestSchema, L as CredentialAssignmentListQuerySchema, M as CreateOrganizationRequestSchema, Mn as resolvePublicPlatformOrigin, Mt as ProjectSlugAvailabilityResponseSchema, N as CreateOrganizationResponseSchema, Nn as slugifyAppName, Nt as PromptInputSchema, O as CreateCredentialsRequestSchema, Ot as PresignUserAvatarResponseSchema, P as CreateProjectArtifactResponseSchema, Pt as PromptResponseSchema, Q as HistoryRunDetailResponseSchema, Qt as UpdateChannelBindingBodySchema, R as CredentialAssignmentListResponseSchema, Rt as RecentResourceListResponseSchema, S as CompleteProjectArtifactResponseSchema, Sn as WorkspaceTriggerOverviewSchema, St as PollRunResponseSchema, T as CreateApiKeyRequestSchema, Tt as PresignProjectSourceRequestSchema, U as CredentialInstanceRecordSchema, Ut as StartKeystrokeConnectionResultSchema, V as CredentialConsumerListResponseSchema, Vt as SlugAvailabilityResponseSchema, W as DeclineOrganizationInvitationResponseSchema, Wt as StartOAuthConnectionInputSchema, X as HealthResponseSchema, Xt as TriggerRunDetailResponseSchema, Y as GetCustomAppResponseSchema, Yt as TriggerListResponseSchema, Z as HistoryRunCancelResponseSchema, Zt as TriggerRunListResponseSchema, _ as ChannelAccountListResponseSchema, _n as WorkflowSummaryDetailResponseSchema, _t as ListProjectMetricsResponseSchema, a as AgentSessionDetailResponseSchema, an as UpdateProjectMemberResponseSchema, b as ChannelDirectoryListResponseSchema, bn as WorkspaceTriggerFileSchema, bt as OrganizationSidebarBrandingSchema, c as AgentSummaryListResponseSchema, cn as UploadProjectSourceManifestRequestSchema, ct as ListApiKeysResponseSchema, d as AssignCredentialBodySchema, dn as UserAvatarPatchSchema, dt as ListOrganizationInvitationsResponseSchema, en as UpdateCredentialRequestSchema, et as HistoryRunListResponseSchema, f as BindChannelBodySchema, fn as UserAvatarSchema, ft as ListOrganizationMembersResponseSchema, g as CatalogAppsPageResponseSchema, gn as WorkflowRunListResponseSchema, gt as ListProjectMembersResponseSchema, h as CatalogAppDetailResponseSchema, hn as WorkflowRunDetailResponseSchema, ht as ListProjectFilesResponseSchema, i as AgentSessionChatStateResponseSchema, in as UpdateProjectMemberRequestSchema, it as InviteProjectMembersResponseSchema, j as CreateCustomAppResponseSchema, jt as ProjectSettingsResponseSchema, k as CreateCredentialsResponseSchema, kn as parseAppSlug, kt as ProjectReachabilityResponseSchema, l as AgentTriggerSummaryListResponseSchema, ln as UploadProjectSourceResponseSchema, lt as ListAppsResponseSchema, m as CatalogActionsPageResponseSchema, mn as UserPreferencesSchema, mt as ListProjectDeploymentsResponseSchema, n as AcceptOrganizationInvitationResponseSchema, nn as UpdateOrganizationMemberResponseSchema, nt as InviteOrganizationMembersResponseSchema, o as AgentSessionListResponseSchema, on as UpdateProjectRequestSchema, ot as ListAgentMemoryFilesResponseSchema, p as CatalogActionDetailResponseSchema, pn as UserPreferencesPatchSchema, pt as ListOrganizationsResponseSchema, q as GatewayAttachmentRecordSchema, qt as SubmitTeamRequestRequestSchema, r as ActiveOrganizationResponseSchema, rn as UpdateOrganizationRequestSchema, rt as InviteProjectMembersRequestSchema, s as AgentSummaryDetailResponseSchema, sn as UpdateProjectSettingsRequestSchema, st as ListAgentWorkspaceFilesResponseSchema, t as ACTIVE_ORG_HEADER, tn as UpdateOrganizationMemberRequestSchema, tt as InviteOrganizationMembersRequestSchema, u as AppSlugAvailabilityResponseSchema, un as UpsertGatewayAttachmentBodySchema, ut as ListCredentialsResponseSchema, v as ChannelConnectionListResponseSchema, vn as WorkflowSummaryListResponseSchema, vt as ListProjectsResponseSchema, w as ConnectProvidersResponseSchema, wn as buildConnectDeeplink, wt as PresignOrgLogoResponseSchema, x as ChannelPlatformSchema, xn as WorkspaceTriggerListResponseSchema, xt as PROJECT_REACHABILITY_REQUEST_TIMEOUT_MS, y as ChannelConnectionSchema, yn as WorkspaceTriggerDetailSchema, yt as OrganizationSidebarBrandingPatchSchema, z as CredentialAssignmentRecordSchema, zt as SkillSummaryDetailResponseSchema } from "./dist-BUK3crkq.mjs";
|
|
3
|
-
import { a as installPlaygroundDependencies, c as createCliConfig, d as getEffectiveApiTarget, f as getPlatformUrl, g as resolvePlatformUrlForWebUrl, i as installDependencies, l as getCliConfigDir, m as DEFAULT_PLATFORM_URL, n as buildPlaygroundWorkspace, o as resolvePackageManager, p as getWebUrl, s as resolveCliRoot, t as readCliVersion, u as getConfigDir } from "./version-
|
|
3
|
+
import { a as installPlaygroundDependencies, c as createCliConfig, d as getEffectiveApiTarget, f as getPlatformUrl, g as resolvePlatformUrlForWebUrl, i as installDependencies, l as getCliConfigDir, m as DEFAULT_PLATFORM_URL, n as buildPlaygroundWorkspace, o as resolvePackageManager, p as getWebUrl, s as resolveCliRoot, t as readCliVersion, u as getConfigDir } from "./version-SEE2eWz0.mjs";
|
|
4
4
|
import { n as packProjectArtifact, t as mergeFilteredArtifact } from "./pack-artifact-DVnIKrsg-CZTT2aF_.mjs";
|
|
5
5
|
import { createRequire } from "node:module";
|
|
6
6
|
import { Command } from "commander";
|
|
@@ -3338,8 +3338,13 @@ async function getCliJwt(platformUrl, force = false) {
|
|
|
3338
3338
|
}
|
|
3339
3339
|
//#endregion
|
|
3340
3340
|
//#region src/auth/resolve-cli-auth.ts
|
|
3341
|
-
/** Returns JWT bearer
|
|
3341
|
+
/** Returns API key, JWT bearer, or none auth for platform requests. */
|
|
3342
3342
|
function resolveCliAuth(config) {
|
|
3343
|
+
const apiKey = process.env.KEYSTROKE_API_KEY?.trim();
|
|
3344
|
+
if (apiKey) return {
|
|
3345
|
+
type: "apiKey",
|
|
3346
|
+
getKey: () => apiKey
|
|
3347
|
+
};
|
|
3343
3348
|
const platformUrl = getPlatformUrl(config);
|
|
3344
3349
|
if (!getAccessToken(platformUrl)) return { type: "none" };
|
|
3345
3350
|
return {
|
|
@@ -7746,7 +7751,7 @@ function createProgram() {
|
|
|
7746
7751
|
return program;
|
|
7747
7752
|
}
|
|
7748
7753
|
async function runCli(argv) {
|
|
7749
|
-
const { maybeAutoUpdate } = await import("./maybe-auto-update-
|
|
7754
|
+
const { maybeAutoUpdate } = await import("./maybe-auto-update-BD5o34qG.mjs");
|
|
7750
7755
|
await maybeAutoUpdate(argv);
|
|
7751
7756
|
createProgram().parse(argv);
|
|
7752
7757
|
}
|