@keystrokehq/cli 0.1.72 → 0.1.73
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-Bzry3J_e.mjs → dist-B3vdweIn.mjs} +23 -6
- package/dist/{dist-Bzry3J_e.mjs.map → dist-B3vdweIn.mjs.map} +1 -1
- package/dist/{dist-Dfp6ywxz.mjs → dist-C5M3Q_LK.mjs} +2 -2
- package/dist/{dist-Dfp6ywxz.mjs.map → dist-C5M3Q_LK.mjs.map} +1 -1
- package/dist/{dist-B8-vsCpf.mjs → dist-CYvtmJ0Y.mjs} +3 -3
- package/dist/{dist-B8-vsCpf.mjs.map → dist-CYvtmJ0Y.mjs.map} +1 -1
- package/dist/dist-DkyuIIPg.mjs +3 -0
- package/dist/{dist-JMNXwH6-.mjs → dist-xF4UCj_H.mjs} +7 -5
- package/dist/dist-xF4UCj_H.mjs.map +1 -0
- package/dist/index.mjs +24 -16
- package/dist/index.mjs.map +1 -1
- package/dist/{maybe-auto-update-Du4nv2q8.mjs → maybe-auto-update-Cc2JdiaK.mjs} +2 -2
- package/dist/{maybe-auto-update-Du4nv2q8.mjs.map → maybe-auto-update-Cc2JdiaK.mjs.map} +1 -1
- package/dist/{version-DEkbd-OE.mjs → version-BwOB_biD.mjs} +2 -2
- package/dist/{version-DEkbd-OE.mjs.map → version-BwOB_biD.mjs.map} +1 -1
- package/package.json +4 -4
- package/dist/dist-0KLRARak.mjs +0 -3
- package/dist/dist-JMNXwH6-.mjs.map +0 -1
package/dist/index.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { $ as CredentialConsumerListResponseSchema, $n 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 CredentialConsumerListResponseSchema, $n as WorkflowRunHooksResponseSchema, $t as PresignProjectSourceRequestSchema, A as ConfirmCheckoutResponseSchema, An as UpdateAutoTopupRequestSchema, At as ListManagedServiceCredentialsResponseSchema, B as CreateCreditsCheckoutRequestSchema, Bn as UpdateProjectRequestSchema, Bt as ManagedServiceCredentialSchema, C as ChannelAccountListResponseSchema, Cn as StartOAuthConnectionResultSchema, D as ChannelPlatformSchema, Dn as TriggerListResponseSchema, Dr as slugifyAppName, Dt as ListAppsResponseSchema, E as ChannelDirectoryListResponseSchema, En as TriggerDetailResponseSchema, Er as resolvePublicPlatformOrigin, Et as ListApiKeysResponseSchema, F as CreateApiKeyResponseSchema, Fn as UpdateOrganizationMemberRequestSchema, Ft as ListProjectDeploymentsResponseSchema, G as CreateProjectArtifactResponseSchema, Gn as UserAvatarPatchSchema, Gt as OrganizationSidebarBrandingSchema, H as CreateCustomAppResponseSchema, Hn as UploadProjectSourceManifestRequestSchema, Ht as McpDiscoverResponseSchema, I as CreateBillingPortalRequestSchema, In as UpdateOrganizationMemberResponseSchema, It as ListProjectFilesResponseSchema, J as CreateSubscriptionCheckoutRequestSchema, Jn as UserPreferencesSchema, Jt as PollRunResponseSchema, K as CreateProjectRequestSchema, Kn as UserAvatarSchema, Kt as PROJECT_PULL_STATE_RELATIVE_PATH, L as CreateCredentialInstanceBodySchema, Ln as UpdateOrganizationRequestSchema, Lt as ListProjectMembersResponseSchema, M as ConnectManagedServiceCredentialRequestSchema, Mn as UpdateCredentialInstanceBodySchema, Mt as ListOrganizationMembersPageQuerySchema, N as ConnectProvidersResponseSchema, Nn as UpdateCredentialRequestSchema, Nt as ListOrganizationMembersPageResponseSchema, O as CompleteProjectArtifactResponseSchema, On as TriggerRunDetailResponseSchema, Ot as ListCredentialsPageQuerySchema, P as CreateApiKeyRequestSchema, Pn as UpdateManagedServiceCredentialRequestSchema, Pt as ListOrganizationsResponseSchema, Q as CredentialConsumerListQuerySchema, Qn as WorkflowRunDetailResponseSchema, Qt as PresignOrgLogoResponseSchema, R as CreateCredentialsRequestSchema, Rn as UpdateProjectMemberRequestSchema, Rt as ListProjectMetricsResponseSchema, S as CatalogAppsPageResponseSchema, Sn as StartOAuthConnectionInputSchema, St as InviteProjectMembersResponseSchema, T as ChannelConnectionSchema, Tn as SubmitTeamRequestRequestSchema, Tr as resolveDocsMcpUrl, Tt as ListAgentWorkspaceFilesResponseSchema, U as CreateOrganizationRequestSchema, Un as UploadProjectSourceResponseSchema, Ut as OpenApiDiscoverResponseSchema, V as CreateCustomAppRequestSchema, Vn as UpdateProjectSettingsRequestSchema, Vt as ManagedServiceKindSchema, W as CreateOrganizationResponseSchema, Wn as UpsertGatewayAttachmentBodySchema, Wt as OrganizationSidebarBrandingPatchSchema, X as CredentialAssignmentListResponseSchema, Xn as WorkflowCanvasRunSchema, Xt as PresignChatAttachmentResponseSchema, Y as CredentialAssignmentListQuerySchema, Yn as WorkflowCanvasCredentialBindingsSchema, Yt as PresignChatAttachmentRequestSchema, Z as CredentialAssignmentRecordSchema, Zn as WorkflowCanvasSchema, Zt as PresignOrgLogoRequestSchema, _ as BillingUsageResponseSchema, _n as SlugAvailabilityResponseSchema, _r as listenPortFromPublicUrl, _t as HistoryRunListQuerySchema, a as AgentSessionDetailResponseSchema, an as ProjectResponseSchema, ar as WorkflowSummaryListResponseSchema, at as DeclineOrganizationInvitationResponseSchema, b as CatalogActionsPageResponseSchema, bn as StartMcpOAuthConnectionInputSchema, br as parseAppSlug, bt as InviteOrganizationMembersResponseSchema, c as AgentSummaryListResponseSchema, cn as PromptInputSchema, cr as WorkspaceTriggerListResponseSchema, ct as ErrorResponseSchema, d as AssignCredentialBodySchema, dn as QueuedAgentPromptResponseSchema, dr as WorkspaceWorkflowOverviewSchema, dt as GetCredentialResponseSchema, en as PresignProjectSourceResponseSchema, er as WorkflowRunInputsPutBodySchema, et as CredentialInstanceListResponseSchema, f as AutoTopupSummarySchema, fn as QueuedRunResponseSchema, fr as buildConnectDeeplink, ft as GetCustomAppResponseSchema, g as BillingSummaryResponseSchema, gn as SkillSummaryListResponseSchema, gr as isAcceptableInstallExit, gt as HistoryRunDetailResponseSchema, h as BillingRedirectResponseSchema, hn as SkillSummaryDetailResponseSchema, hr as detectProjectPackageManagerFromSnapshot, ht as HistoryRunCancelResponseSchema, i as AgentSessionChatStateResponseSchema, in as ProjectReachabilityResponseSchema, ir as WorkflowSummaryDetailResponseSchema, it as DOCS_SEARCH_TOOL, j as ConnectAuthorizeUrlResponseSchema, jn as UpdateChannelBindingBodySchema, jt as ListOrganizationInvitationsResponseSchema, k as ConfirmCheckoutRequestSchema, kn as TriggerRunListResponseSchema, kt as ListCredentialsPageResponseSchema, l as AgentTriggerSummaryListResponseSchema, ln as PromptResponseSchema, lr as WorkspaceTriggerOverviewSchema, lt as ExecuteKeystrokeToolRequestSchema, m as BillingInvoiceUrlResponseSchema, mn as RecentResourceListResponseSchema, mr as deriveCustomAppDisplay, mt as HealthResponseSchema, n as AcceptOrganizationInvitationResponseSchema, nn as PresignUserAvatarResponseSchema, nr as WorkflowRunListResponseSchema, o as AgentSessionListResponseSchema, on as ProjectSettingsResponseSchema, or as WorkspaceTriggerDetailSchema, ot as DownloadActiveProjectArtifactResponseSchema, p as BillingActivityResponseSchema, pt as GraphqlDiscoverResponseSchema, q as CreateProjectResponseSchema, qn as UserPreferencesPatchSchema, qt as PROJECT_REACHABILITY_REQUEST_TIMEOUT_MS, r as ActiveOrganizationResponseSchema, rn as ProjectPullStateSchema, rr as WorkflowRunResponseSchema, rt as DOCS_QUERY_TOOL, s as AgentSummaryDetailResponseSchema, sn as ProjectSlugAvailabilityResponseSchema, sr as WorkspaceTriggerFileSchema, st as DownloadActiveProjectSourceResponseSchema, t as ACTIVE_ORG_HEADER, tn as PresignUserAvatarRequestSchema, tr as WorkflowRunInputsSchema, tt as CredentialInstanceRecordSchema, u as AppSlugAvailabilityResponseSchema, ur as WorkspaceTriggerRunListResponseSchema, ut as GatewayAttachmentRecordSchema, v as BindChannelBodySchema, vn as StartKeystrokeConnectionInputSchema, vt as HistoryRunListResponseSchema, w as ChannelConnectionListResponseSchema, wn as SubmitMarketingContactRequestSchema, wr as resolveConnectAppSlug, wt as ListAgentMemoryFilesResponseSchema, x as CatalogAppDetailResponseSchema, xn as StartMcpOAuthConnectionResultSchema, xr as parseErrorResponse, xt as InviteProjectMembersRequestSchema, y as CatalogActionDetailResponseSchema, yn as StartKeystrokeConnectionResultSchema, yt as InviteOrganizationMembersRequestSchema, z as CreateCredentialsResponseSchema, zn as UpdateProjectMemberResponseSchema, zt as ListProjectsResponseSchema } from "./dist-B3vdweIn.mjs";
|
|
3
|
+
import { i as packProjectArtifact, n as withMcpReadClient, r as mergeFilteredArtifact, t as mapInParallelBatches } from "./dist-C5M3Q_LK.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-BwOB_biD.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";
|
|
@@ -4105,10 +4105,14 @@ function buildOAuthAuthorizeSearchParams(input) {
|
|
|
4105
4105
|
}
|
|
4106
4106
|
function createCredentialsResource(http) {
|
|
4107
4107
|
return {
|
|
4108
|
-
async list() {
|
|
4108
|
+
async list(query) {
|
|
4109
|
+
const params = ListCredentialsPageQuerySchema.parse(query ?? {});
|
|
4109
4110
|
try {
|
|
4110
|
-
const data = await http.get("/api/credentials"
|
|
4111
|
-
|
|
4111
|
+
const data = await http.get("/api/credentials", { searchParams: {
|
|
4112
|
+
...params.limit !== void 0 ? { limit: String(params.limit) } : {},
|
|
4113
|
+
...params.cursor ? { cursor: params.cursor } : {}
|
|
4114
|
+
} }).json();
|
|
4115
|
+
return ListCredentialsPageResponseSchema.parse(data);
|
|
4112
4116
|
} catch (error) {
|
|
4113
4117
|
throw await toPlatformError(error);
|
|
4114
4118
|
}
|
|
@@ -4322,10 +4326,14 @@ function createAppsResource(http) {
|
|
|
4322
4326
|
}
|
|
4323
4327
|
function createMembersResource(http) {
|
|
4324
4328
|
return {
|
|
4325
|
-
async listOrganizationMembers() {
|
|
4329
|
+
async listOrganizationMembers(query) {
|
|
4330
|
+
const params = ListOrganizationMembersPageQuerySchema.parse(query ?? {});
|
|
4326
4331
|
try {
|
|
4327
|
-
const data = await http.get("/api/members"
|
|
4328
|
-
|
|
4332
|
+
const data = await http.get("/api/members", { searchParams: {
|
|
4333
|
+
...params.limit !== void 0 ? { limit: String(params.limit) } : {},
|
|
4334
|
+
...params.cursor ? { cursor: params.cursor } : {}
|
|
4335
|
+
} }).json();
|
|
4336
|
+
return ListOrganizationMembersPageResponseSchema.parse(data);
|
|
4329
4337
|
} catch (error) {
|
|
4330
4338
|
throw await toPlatformError(error);
|
|
4331
4339
|
}
|
|
@@ -6772,7 +6780,7 @@ function registerBuildCommand(program) {
|
|
|
6772
6780
|
try {
|
|
6773
6781
|
const root = resolveProjectRoot(options.dir);
|
|
6774
6782
|
await ensureSdkCurrent(root);
|
|
6775
|
-
const { buildApp } = await import("./dist-
|
|
6783
|
+
const { buildApp } = await import("./dist-CYvtmJ0Y.mjs");
|
|
6776
6784
|
await buildApp({ root });
|
|
6777
6785
|
process.stdout.write(`Built ${root}\n`);
|
|
6778
6786
|
} catch (error) {
|
|
@@ -6897,7 +6905,7 @@ async function sleep(ms) {
|
|
|
6897
6905
|
}
|
|
6898
6906
|
async function buildDeployArchive(client, root, projectId, filter) {
|
|
6899
6907
|
if (filter?.length) {
|
|
6900
|
-
const { buildFilteredApp } = await import("./dist-
|
|
6908
|
+
const { buildFilteredApp } = await import("./dist-CYvtmJ0Y.mjs");
|
|
6901
6909
|
const filtered = await buildFilteredApp({
|
|
6902
6910
|
root,
|
|
6903
6911
|
filter,
|
|
@@ -6919,7 +6927,7 @@ async function buildDeployArchive(client, root, projectId, filter) {
|
|
|
6919
6927
|
sourceFiles: filtered.sourceFiles
|
|
6920
6928
|
};
|
|
6921
6929
|
}
|
|
6922
|
-
const { buildApp } = await import("./dist-
|
|
6930
|
+
const { buildApp } = await import("./dist-CYvtmJ0Y.mjs");
|
|
6923
6931
|
const { sourceFiles } = await buildApp({
|
|
6924
6932
|
root,
|
|
6925
6933
|
collectSources: true,
|
|
@@ -7041,7 +7049,7 @@ function runtimeChildEnv(parentEnv, overrides) {
|
|
|
7041
7049
|
//#region src/project/bootstrap-run.ts
|
|
7042
7050
|
/** Node args + env for `@keystrokehq/build` bootstrap (shared by start + dev). */
|
|
7043
7051
|
async function resolveBootstrapRun(options) {
|
|
7044
|
-
const { resolveRuntimeBuildArtifact } = await import("./dist-
|
|
7052
|
+
const { resolveRuntimeBuildArtifact } = await import("./dist-CYvtmJ0Y.mjs");
|
|
7045
7053
|
const loader = pathToFileURL(resolveRuntimeBuildArtifact(options.runtimeNodeModules, "dist/runtime-loader.mjs")).href;
|
|
7046
7054
|
const bootstrap = resolveRuntimeBuildArtifact(options.runtimeNodeModules, "dist/standalone-bootstrap.mjs");
|
|
7047
7055
|
const args = [`--import=${loader}`];
|
|
@@ -7190,7 +7198,7 @@ async function runDev(options) {
|
|
|
7190
7198
|
process.on("SIGINT", shutdown);
|
|
7191
7199
|
process.on("SIGTERM", shutdown);
|
|
7192
7200
|
try {
|
|
7193
|
-
const { watchApp } = await import("./dist-
|
|
7201
|
+
const { watchApp } = await import("./dist-CYvtmJ0Y.mjs");
|
|
7194
7202
|
await watchApp({
|
|
7195
7203
|
root,
|
|
7196
7204
|
clean: false,
|
|
@@ -8233,7 +8241,7 @@ async function runStart(options) {
|
|
|
8233
8241
|
const apiPort = Number(new URL(serverUrl).port || 80);
|
|
8234
8242
|
const runtimeNodeModules = resolveCliRuntimeNodeModules(resolveCliRoot(import.meta.url));
|
|
8235
8243
|
ensureNativeDeps(runtimeNodeModules);
|
|
8236
|
-
const { buildApp } = await import("./dist-
|
|
8244
|
+
const { buildApp } = await import("./dist-CYvtmJ0Y.mjs");
|
|
8237
8245
|
await buildApp({
|
|
8238
8246
|
root,
|
|
8239
8247
|
clean: false
|
|
@@ -8829,7 +8837,7 @@ function createProgram() {
|
|
|
8829
8837
|
return program;
|
|
8830
8838
|
}
|
|
8831
8839
|
async function runCli(argv) {
|
|
8832
|
-
const { maybeAutoUpdate } = await import("./maybe-auto-update-
|
|
8840
|
+
const { maybeAutoUpdate } = await import("./maybe-auto-update-Cc2JdiaK.mjs");
|
|
8833
8841
|
await maybeAutoUpdate(argv);
|
|
8834
8842
|
createProgram().parse(argv);
|
|
8835
8843
|
}
|