@keystrokehq/cli 0.1.74 → 0.1.76
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/dist-C_FJB-6u.mjs +3 -0
- package/dist/{dist-CYvtmJ0Y.mjs → dist-D3z59-5y.mjs} +3 -3
- package/dist/{dist-CYvtmJ0Y.mjs.map → dist-D3z59-5y.mjs.map} +1 -1
- package/dist/{dist-B3vdweIn.mjs → dist-DI9IeZPy.mjs} +23 -7
- package/dist/{dist-B3vdweIn.mjs.map → dist-DI9IeZPy.mjs.map} +1 -1
- package/dist/{dist-C5M3Q_LK.mjs → dist-DONjp1Vu.mjs} +2 -2
- package/dist/{dist-C5M3Q_LK.mjs.map → dist-DONjp1Vu.mjs.map} +1 -1
- package/dist/{dist-xF4UCj_H.mjs → dist-DssSh3Yz.mjs} +5 -5
- package/dist/dist-DssSh3Yz.mjs.map +1 -0
- package/dist/index.mjs +27 -42
- package/dist/index.mjs.map +1 -1
- package/dist/{maybe-auto-update-Cc2JdiaK.mjs → maybe-auto-update-DzLYjlyI.mjs} +2 -2
- package/dist/{maybe-auto-update-Cc2JdiaK.mjs.map → maybe-auto-update-DzLYjlyI.mjs.map} +1 -1
- package/dist/{version-BwOB_biD.mjs → version-DtkdnpP8.mjs} +2 -2
- package/dist/{version-BwOB_biD.mjs.map → version-DtkdnpP8.mjs.map} +1 -1
- package/package.json +1 -1
- package/dist/dist-DkyuIIPg.mjs +0 -3
- package/dist/dist-xF4UCj_H.mjs.map +0 -1
package/dist/index.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { $ as
|
|
3
|
-
import { i as packProjectArtifact, n as withMcpReadClient, r as mergeFilteredArtifact, t as mapInParallelBatches } from "./dist-
|
|
4
|
-
import { _ as resolvePlatformUrlForWebUrl, a as installPlaygroundDependencies, c as isNewerVersion, d as getConfigDir, f as getEffectiveApiTarget, h as DEFAULT_PLATFORM_URL, i as installDependencies$1, l as createCliConfig, m as getWebUrl, n as buildPlaygroundWorkspace, o as resolvePackageManager, p as getPlatformUrl, s as resolveCliRoot, t as readCliVersion, u as getCliConfigDir } from "./version-
|
|
2
|
+
import { $ as CredentialInstanceListResponseSchema, $n as WorkflowRunDetailResponseSchema, $t as PresignOrgLogoResponseSchema, A as ConnectAuthorizeUrlResponseSchema, An as TriggerRunListResponseSchema, At as ListCredentialsPageResponseSchema, B as CreateCustomAppRequestSchema, Bn as UpdateProjectMemberResponseSchema, Bt as ListProjectsResponseSchema, C as ChannelAccountListResponseSchema, Cn as StartOAuthConnectionInputSchema, D as CompleteProjectArtifactResponseSchema, Dn as TriggerDetailResponseSchema, Dr as resolvePublicPlatformOrigin, Dt as ListAppsResponseSchema, E as ChannelDirectoryListResponseSchema, En as SubmitTeamRequestRequestSchema, Er as resolveDocsMcpUrl, Et as ListApiKeysResponseSchema, F as CreateBillingPortalRequestSchema, Fn as UpdateManagedServiceCredentialRequestSchema, Ft as ListOrganizationsResponseSchema, G as CreateProjectRequestSchema, Gn as UpsertGatewayAttachmentBodySchema, Gt as OrganizationSidebarBrandingPatchSchema, H as CreateOrganizationRequestSchema, Hn as UpdateProjectSettingsRequestSchema, Ht as ManagedServiceKindSchema, I as CreateCredentialInstanceBodySchema, In as UpdateOrganizationMemberRequestSchema, It as ListProjectDeploymentsResponseSchema, J as CredentialAssignmentListQuerySchema, Jn as UserPreferencesPatchSchema, Jt as PROJECT_REACHABILITY_REQUEST_TIMEOUT_MS, K as CreateProjectResponseSchema, Kn as UserAvatarPatchSchema, Kt as OrganizationSidebarBrandingSchema, L as CreateCredentialsRequestSchema, Ln as UpdateOrganizationMemberResponseSchema, Lt as ListProjectFilesResponseSchema, M as ConnectProvidersResponseSchema, Mn as UpdateChannelBindingBodySchema, Mt as ListOrganizationInvitationsResponseSchema, N as CreateApiKeyRequestSchema, Nn as UpdateCredentialInstanceBodySchema, Nt as ListOrganizationMembersPageQuerySchema, O as ConfirmCheckoutRequestSchema, On as TriggerListResponseSchema, Or as slugifyAppName, Ot as ListChannelPlatformsResponseSchema, P as CreateApiKeyResponseSchema, Pn as UpdateCredentialRequestSchema, Pt as ListOrganizationMembersPageResponseSchema, Q as CredentialConsumerListResponseSchema, Qn as WorkflowCanvasSchema, Qt as PresignOrgLogoRequestSchema, R as CreateCredentialsResponseSchema, Rn as UpdateOrganizationRequestSchema, Rt as ListProjectMembersResponseSchema, S as CatalogAppsPageResponseSchema, Sn as StartMcpOAuthConnectionResultSchema, Sr as parseErrorResponse, St as InviteProjectMembersResponseSchema, T as ChannelConnectionSchema, Tn as SubmitMarketingContactRequestSchema, Tr as resolveConnectAppSlug, Tt as ListAgentWorkspaceFilesResponseSchema, U as CreateOrganizationResponseSchema, Un as UploadProjectSourceManifestRequestSchema, Ut as McpDiscoverResponseSchema, V as CreateCustomAppResponseSchema, Vn as UpdateProjectRequestSchema, Vt as ManagedServiceCredentialSchema, W as CreateProjectArtifactResponseSchema, Wn as UploadProjectSourceResponseSchema, Wt as OpenApiDiscoverResponseSchema, X as CredentialAssignmentRecordSchema, Xn as WorkflowCanvasCredentialBindingsSchema, Xt as PresignChatAttachmentRequestSchema, Y as CredentialAssignmentListResponseSchema, Yn as UserPreferencesSchema, Yt as PollRunResponseSchema, Z as CredentialConsumerListQuerySchema, Zn as WorkflowCanvasRunSchema, Zt as PresignChatAttachmentResponseSchema, _ as BillingUsageResponseSchema, _n as SkillSummaryListResponseSchema, _r as isAcceptableInstallExit, _t as HistoryRunListQuerySchema, a as AgentSessionDetailResponseSchema, an as ProjectReachabilityResponseSchema, ar as WorkflowSummaryDetailResponseSchema, at as DownloadActiveProjectArtifactResponseSchema, b as CatalogActionsPageResponseSchema, bn as StartKeystrokeConnectionResultSchema, bt as InviteOrganizationMembersResponseSchema, c as AgentSummaryListResponseSchema, cn as ProjectSlugAvailabilityResponseSchema, cr as WorkspaceTriggerFileSchema, ct as ExecuteKeystrokeToolRequestSchema, d as AssignCredentialBodySchema, dr as WorkspaceTriggerRunListResponseSchema, dt as GetCredentialResponseSchema, en as PresignProjectSourceRequestSchema, er as WorkflowRunHooksResponseSchema, et as CredentialInstanceRecordSchema, f as AutoTopupSummarySchema, fn as QueuedAgentPromptResponseSchema, fr as WorkspaceWorkflowOverviewSchema, ft as GetCustomAppResponseSchema, g as BillingSummaryResponseSchema, gn as SkillSummaryDetailResponseSchema, gr as detectProjectPackageManagerFromSnapshot, gt as HistoryRunDetailResponseSchema, h as BillingRedirectResponseSchema, hn as RecentResourceListResponseSchema, hr as deriveCustomAppDisplay, ht as HistoryRunCancelResponseSchema, i as AgentSessionChatStateResponseSchema, in as ProjectPullStateSchema, ir as WorkflowRunResponseSchema, it as DeclineOrganizationInvitationResponseSchema, j as ConnectManagedServiceCredentialRequestSchema, jn as UpdateAutoTopupRequestSchema, jt as ListManagedServiceCredentialsResponseSchema, k as ConfirmCheckoutResponseSchema, kn as TriggerRunDetailResponseSchema, kt as ListCredentialsPageQuerySchema, l as AgentTriggerSummaryListResponseSchema, ln as PromptInputSchema, lr as WorkspaceTriggerListResponseSchema, lt as GatewayAttachmentRecordSchema, m as BillingInvoiceUrlResponseSchema, mt as HealthResponseSchema, n as AcceptOrganizationInvitationResponseSchema, nn as PresignUserAvatarRequestSchema, nr as WorkflowRunInputsSchema, nt as DOCS_QUERY_TOOL, o as AgentSessionListResponseSchema, on as ProjectResponseSchema, or as WorkflowSummaryListResponseSchema, ot as DownloadActiveProjectSourceResponseSchema, p as BillingActivityResponseSchema, pn as QueuedRunResponseSchema, pr as buildConnectDeeplink, pt as GraphqlDiscoverResponseSchema, q as CreateSubscriptionCheckoutRequestSchema, qn as UserAvatarSchema, qt as PROJECT_PULL_STATE_RELATIVE_PATH, r as ActiveOrganizationResponseSchema, rn as PresignUserAvatarResponseSchema, rr as WorkflowRunListResponseSchema, rt as DOCS_SEARCH_TOOL, s as AgentSummaryDetailResponseSchema, sn as ProjectSettingsResponseSchema, sr as WorkspaceTriggerDetailSchema, st as ErrorResponseSchema, t as ACTIVE_ORG_HEADER, tn as PresignProjectSourceResponseSchema, tr as WorkflowRunInputsPutBodySchema, u as AppSlugAvailabilityResponseSchema, un as PromptResponseSchema, ur as WorkspaceTriggerOverviewSchema, ut as GetAppCatalogEntryResponseSchema, v as BindChannelBodySchema, vn as SlugAvailabilityResponseSchema, vr as listenPortFromPublicUrl, vt as HistoryRunListResponseSchema, w as ChannelConnectionListResponseSchema, wn as StartOAuthConnectionResultSchema, wt as ListAgentMemoryFilesResponseSchema, x as CatalogAppDetailResponseSchema, xn as StartMcpOAuthConnectionInputSchema, xr as parseAppSlug, xt as InviteProjectMembersRequestSchema, y as CatalogActionDetailResponseSchema, yn as StartKeystrokeConnectionInputSchema, yt as InviteOrganizationMembersRequestSchema, z as CreateCreditsCheckoutRequestSchema, zn as UpdateProjectMemberRequestSchema, zt as ListProjectMetricsResponseSchema } from "./dist-DI9IeZPy.mjs";
|
|
3
|
+
import { i as packProjectArtifact, n as withMcpReadClient, r as mergeFilteredArtifact, t as mapInParallelBatches } from "./dist-DONjp1Vu.mjs";
|
|
4
|
+
import { _ as resolvePlatformUrlForWebUrl, a as installPlaygroundDependencies, c as isNewerVersion, d as getConfigDir, f as getEffectiveApiTarget, h as DEFAULT_PLATFORM_URL, i as installDependencies$1, l as createCliConfig, m as getWebUrl, n as buildPlaygroundWorkspace, o as resolvePackageManager, p as getPlatformUrl, s as resolveCliRoot, t as readCliVersion, u as getCliConfigDir } from "./version-DtkdnpP8.mjs";
|
|
5
5
|
import { createRequire } from "node:module";
|
|
6
6
|
import { Command } from "commander";
|
|
7
7
|
import { basename, dirname, isAbsolute, join, relative, resolve } from "node:path";
|
|
@@ -4000,9 +4000,9 @@ function listRunsSearchParams(query) {
|
|
|
4000
4000
|
function createTriggersResource(http) {
|
|
4001
4001
|
return {
|
|
4002
4002
|
/** Triggers across the projects the caller can access in the active org. */
|
|
4003
|
-
async list() {
|
|
4003
|
+
async list(options) {
|
|
4004
4004
|
try {
|
|
4005
|
-
const data = await http.get("api/triggers").json();
|
|
4005
|
+
const data = await http.get("api/triggers", { searchParams: listSearchParams(options) }).json();
|
|
4006
4006
|
return WorkspaceTriggerListResponseSchema.parse(data);
|
|
4007
4007
|
} catch (error) {
|
|
4008
4008
|
throw await toPlatformError(error);
|
|
@@ -4197,6 +4197,15 @@ function createAppsResource(http) {
|
|
|
4197
4197
|
throw await toPlatformError(error);
|
|
4198
4198
|
}
|
|
4199
4199
|
},
|
|
4200
|
+
/** Full catalog entry (scopes + credential template) for connect UI. */
|
|
4201
|
+
async getCatalogEntry(slug) {
|
|
4202
|
+
try {
|
|
4203
|
+
const data = await http.get(`/api/apps/${encodeURIComponent(slug)}/catalog`).json();
|
|
4204
|
+
return GetAppCatalogEntryResponseSchema.parse(data);
|
|
4205
|
+
} catch (error) {
|
|
4206
|
+
throw await toPlatformError(error);
|
|
4207
|
+
}
|
|
4208
|
+
},
|
|
4200
4209
|
async searchCatalog(options) {
|
|
4201
4210
|
try {
|
|
4202
4211
|
const searchParams = catalogSearchParams({
|
|
@@ -4764,40 +4773,16 @@ function createUserAvatarResource(http) {
|
|
|
4764
4773
|
}
|
|
4765
4774
|
};
|
|
4766
4775
|
}
|
|
4767
|
-
const PLATFORM_FALLBACK_DOMAINS = { slack: "slack.com" };
|
|
4768
|
-
function projectChannelPlatform(app) {
|
|
4769
|
-
if (!app.gateway) throw new Error(`App ${app.id} does not support gateway bindings`);
|
|
4770
|
-
return ChannelPlatformSchema.parse({
|
|
4771
|
-
key: app.id,
|
|
4772
|
-
name: app.name,
|
|
4773
|
-
appLogoId: app.id,
|
|
4774
|
-
fallbackDomain: PLATFORM_FALLBACK_DOMAINS[app.id] ?? `${app.id}.com`,
|
|
4775
|
-
description: app.integrationDescription,
|
|
4776
|
-
tagline: app.gateway.tagline ?? app.description,
|
|
4777
|
-
authKind: app.authKind,
|
|
4778
|
-
credentialFields: [],
|
|
4779
|
-
capabilities: app.gateway.capabilities,
|
|
4780
|
-
supportedModes: app.gateway.supportedModes,
|
|
4781
|
-
resourceNoun: app.gateway.resourceNoun,
|
|
4782
|
-
webhookPathHint: app.gateway.webhookPathHint,
|
|
4783
|
-
supportsChannelDirectory: app.gateway.supportsChannelDirectory,
|
|
4784
|
-
...app.gateway.connectAppId ? { connectAppId: app.gateway.connectAppId } : {},
|
|
4785
|
-
docsUrl: app.gateway.docsUrl
|
|
4786
|
-
});
|
|
4787
|
-
}
|
|
4788
4776
|
function createChannelsResource(http) {
|
|
4789
4777
|
const projectPrefix = (projectId) => `/api/projects/${encodeURIComponent(projectId)}`;
|
|
4790
|
-
async function listGatewayPlatforms() {
|
|
4791
|
-
try {
|
|
4792
|
-
const data = await http.get("/api/apps").json();
|
|
4793
|
-
return ListAppsResponseSchema.parse(data).filter((app) => app.gateway).map((app) => projectChannelPlatform(app));
|
|
4794
|
-
} catch (error) {
|
|
4795
|
-
throw await toPlatformError(error);
|
|
4796
|
-
}
|
|
4797
|
-
}
|
|
4798
4778
|
return {
|
|
4799
4779
|
async listPlatforms() {
|
|
4800
|
-
|
|
4780
|
+
try {
|
|
4781
|
+
const data = await http.get("/api/channel-platforms").json();
|
|
4782
|
+
return ListChannelPlatformsResponseSchema.parse(data);
|
|
4783
|
+
} catch (error) {
|
|
4784
|
+
throw await toPlatformError(error);
|
|
4785
|
+
}
|
|
4801
4786
|
},
|
|
4802
4787
|
async listAccounts(projectId, platform) {
|
|
4803
4788
|
try {
|
|
@@ -6780,7 +6765,7 @@ function registerBuildCommand(program) {
|
|
|
6780
6765
|
try {
|
|
6781
6766
|
const root = resolveProjectRoot(options.dir);
|
|
6782
6767
|
await ensureSdkCurrent(root);
|
|
6783
|
-
const { buildApp } = await import("./dist-
|
|
6768
|
+
const { buildApp } = await import("./dist-D3z59-5y.mjs");
|
|
6784
6769
|
await buildApp({ root });
|
|
6785
6770
|
process.stdout.write(`Built ${root}\n`);
|
|
6786
6771
|
} catch (error) {
|
|
@@ -6905,7 +6890,7 @@ async function sleep(ms) {
|
|
|
6905
6890
|
}
|
|
6906
6891
|
async function buildDeployArchive(client, root, projectId, filter) {
|
|
6907
6892
|
if (filter?.length) {
|
|
6908
|
-
const { buildFilteredApp } = await import("./dist-
|
|
6893
|
+
const { buildFilteredApp } = await import("./dist-D3z59-5y.mjs");
|
|
6909
6894
|
const filtered = await buildFilteredApp({
|
|
6910
6895
|
root,
|
|
6911
6896
|
filter,
|
|
@@ -6927,7 +6912,7 @@ async function buildDeployArchive(client, root, projectId, filter) {
|
|
|
6927
6912
|
sourceFiles: filtered.sourceFiles
|
|
6928
6913
|
};
|
|
6929
6914
|
}
|
|
6930
|
-
const { buildApp } = await import("./dist-
|
|
6915
|
+
const { buildApp } = await import("./dist-D3z59-5y.mjs");
|
|
6931
6916
|
const { sourceFiles } = await buildApp({
|
|
6932
6917
|
root,
|
|
6933
6918
|
collectSources: true,
|
|
@@ -7049,7 +7034,7 @@ function runtimeChildEnv(parentEnv, overrides) {
|
|
|
7049
7034
|
//#region src/project/bootstrap-run.ts
|
|
7050
7035
|
/** Node args + env for `@keystrokehq/build` bootstrap (shared by start + dev). */
|
|
7051
7036
|
async function resolveBootstrapRun(options) {
|
|
7052
|
-
const { resolveRuntimeBuildArtifact } = await import("./dist-
|
|
7037
|
+
const { resolveRuntimeBuildArtifact } = await import("./dist-D3z59-5y.mjs");
|
|
7053
7038
|
const loader = pathToFileURL(resolveRuntimeBuildArtifact(options.runtimeNodeModules, "dist/runtime-loader.mjs")).href;
|
|
7054
7039
|
const bootstrap = resolveRuntimeBuildArtifact(options.runtimeNodeModules, "dist/standalone-bootstrap.mjs");
|
|
7055
7040
|
const args = [`--import=${loader}`];
|
|
@@ -7198,7 +7183,7 @@ async function runDev(options) {
|
|
|
7198
7183
|
process.on("SIGINT", shutdown);
|
|
7199
7184
|
process.on("SIGTERM", shutdown);
|
|
7200
7185
|
try {
|
|
7201
|
-
const { watchApp } = await import("./dist-
|
|
7186
|
+
const { watchApp } = await import("./dist-D3z59-5y.mjs");
|
|
7202
7187
|
await watchApp({
|
|
7203
7188
|
root,
|
|
7204
7189
|
clean: false,
|
|
@@ -8241,7 +8226,7 @@ async function runStart(options) {
|
|
|
8241
8226
|
const apiPort = Number(new URL(serverUrl).port || 80);
|
|
8242
8227
|
const runtimeNodeModules = resolveCliRuntimeNodeModules(resolveCliRoot(import.meta.url));
|
|
8243
8228
|
ensureNativeDeps(runtimeNodeModules);
|
|
8244
|
-
const { buildApp } = await import("./dist-
|
|
8229
|
+
const { buildApp } = await import("./dist-D3z59-5y.mjs");
|
|
8245
8230
|
await buildApp({
|
|
8246
8231
|
root,
|
|
8247
8232
|
clean: false
|
|
@@ -8837,7 +8822,7 @@ function createProgram() {
|
|
|
8837
8822
|
return program;
|
|
8838
8823
|
}
|
|
8839
8824
|
async function runCli(argv) {
|
|
8840
|
-
const { maybeAutoUpdate } = await import("./maybe-auto-update-
|
|
8825
|
+
const { maybeAutoUpdate } = await import("./maybe-auto-update-DzLYjlyI.mjs");
|
|
8841
8826
|
await maybeAutoUpdate(argv);
|
|
8842
8827
|
createProgram().parse(argv);
|
|
8843
8828
|
}
|