@keystrokehq/cli 0.1.56 → 0.1.57
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-BzB-gu5C.mjs → dist-9l627wBh.mjs} +2 -2
- package/dist/{dist-BzB-gu5C.mjs.map → dist-9l627wBh.mjs.map} +1 -1
- package/dist/{dist-BOMPr8bd.mjs → dist-BmKyXz37.mjs} +132 -8
- package/dist/dist-BmKyXz37.mjs.map +1 -0
- package/dist/{dist-BAEU9vmA.mjs → dist-CriFiA_0.mjs} +3 -3
- package/dist/{dist-BAEU9vmA.mjs.map → dist-CriFiA_0.mjs.map} +1 -1
- package/dist/{dist-COJ2wk-j.mjs → dist-Cu-iYO0U.mjs} +1 -1
- package/dist/{dist-DPWhoGsR.mjs → dist-D-HLTE5g.mjs} +7 -3
- package/dist/dist-D-HLTE5g.mjs.map +1 -0
- package/dist/index.mjs +93 -10
- package/dist/index.mjs.map +1 -1
- package/dist/{maybe-auto-update-BZXzV9hF.mjs → maybe-auto-update-D0iOIIOM.mjs} +2 -2
- package/dist/{maybe-auto-update-BZXzV9hF.mjs.map → maybe-auto-update-D0iOIIOM.mjs.map} +1 -1
- package/dist/{version-Cvojea9B.mjs → version-CCXlsr0M.mjs} +2 -2
- package/dist/{version-Cvojea9B.mjs.map → version-CCXlsr0M.mjs.map} +1 -1
- package/package.json +1 -1
- package/dist/dist-BOMPr8bd.mjs.map +0 -1
- package/dist/dist-DPWhoGsR.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 getPlatformUrl, c as detectPackageManager, d as resolveGithubPackagesToken, f as resolvePackageManager, g as getEffectiveApiTarget, h as getConfigDir, i as isReleaseAgeBlock, l as installDependencies$1, m as getCliConfigDir, n as resolveCliRoot, o as detectManagerFromLockfile, p as createCliConfig, s as buildPlaygroundWorkspace, t as readCliVersion, u as installPlaygroundDependencies, v as getWebUrl, x as resolvePlatformUrlForWebUrl, y as DEFAULT_PLATFORM_URL } from "./version-
|
|
2
|
+
import { $ as CredentialInstanceListResponseSchema, $n as WorkspaceTriggerDetailSchema, $t as ProjectResponseSchema, A as ConfirmCheckoutResponseSchema, An as UpdateOrganizationRequestSchema, At as ListOrganizationsResponseSchema, B as CreateCustomAppRequestSchema, Bn as UserPreferencesPatchSchema, Bt as PROJECT_PULL_STATE_RELATIVE_PATH, C as ChannelAccountListResponseSchema, Cn as TriggerRunListResponseSchema, Ct as ListAgentMemoryFilesResponseSchema, D as ChannelPlatformSchema, Dn as UpdateCredentialRequestSchema, Dt as ListCredentialsResponseSchema, E as ChannelDirectoryListResponseSchema, En as UpdateCredentialInstanceBodySchema, Et as ListAppsResponseSchema, F as CreateBillingPortalRequestSchema, Fn as UploadProjectSourceManifestRequestSchema, Ft as ListProjectsResponseSchema, G as CreateProjectRequestSchema, Gn as WorkflowRunDetailResponseSchema, Gt as PresignOrgLogoRequestSchema, H as CreateOrganizationRequestSchema, Hn as WorkflowCanvasCredentialBindingsSchema, Ht as PollRunResponseSchema, I as CreateCredentialInstanceBodySchema, In as UploadProjectSourceResponseSchema, It as McpDiscoverResponseSchema, J as CredentialAssignmentListQuerySchema, Jn as WorkflowRunInputsSchema, Jt as PresignProjectSourceResponseSchema, K as CreateProjectResponseSchema, Kn as WorkflowRunHooksResponseSchema, Kt as PresignOrgLogoResponseSchema, L as CreateCredentialsRequestSchema, Ln as UpsertGatewayAttachmentBodySchema, Lt as OpenApiDiscoverResponseSchema, M as ConnectProvidersResponseSchema, Mn as UpdateProjectMemberResponseSchema, Mt as ListProjectFilesResponseSchema, N as CreateApiKeyRequestSchema, Nn as UpdateProjectRequestSchema, Nt as ListProjectMembersResponseSchema, O as CompleteProjectArtifactResponseSchema, On as UpdateOrganizationMemberRequestSchema, Ot as ListOrganizationInvitationsResponseSchema, P as CreateApiKeyResponseSchema, Pn as UpdateProjectSettingsRequestSchema, Pt as ListProjectMetricsResponseSchema, Q as CredentialConsumerListResponseSchema, Qn as WorkflowSummaryListResponseSchema, Qt as ProjectReachabilityResponseSchema, R as CreateCredentialsResponseSchema, Rn as UserAvatarPatchSchema, Rt as OrganizationSidebarBrandingPatchSchema, S as CatalogAppsPageResponseSchema, Sn as TriggerRunDetailResponseSchema, T as ChannelConnectionSchema, Tn as UpdateChannelBindingBodySchema, Tt as ListApiKeysResponseSchema, U as CreateOrganizationResponseSchema, Un as WorkflowCanvasRunSchema, Ut as PresignChatAttachmentRequestSchema, V as CreateCustomAppResponseSchema, Vn as UserPreferencesSchema, Vt as PROJECT_REACHABILITY_REQUEST_TIMEOUT_MS, W as CreateProjectArtifactResponseSchema, Wn as WorkflowCanvasSchema, Wt as PresignChatAttachmentResponseSchema, X as CredentialAssignmentRecordSchema, Xn as WorkflowRunResponseSchema, Xt as PresignUserAvatarResponseSchema, Y as CredentialAssignmentListResponseSchema, Yn as WorkflowRunListResponseSchema, Yt as PresignUserAvatarRequestSchema, Z as CredentialConsumerListQuerySchema, Zn as WorkflowSummaryDetailResponseSchema, Zt as ProjectPullStateSchema, _ as BillingUsageResponseSchema, _n as StartOAuthConnectionResultSchema, _r as resolveConnectAppSlug, _t as HistoryRunListResponseSchema, a as AgentSessionDetailResponseSchema, an as QueuedAgentPromptResponseSchema, ar as buildConnectDeeplink, at as DownloadActiveProjectArtifactResponseSchema, b as CatalogActionsPageResponseSchema, bn as TriggerDetailResponseSchema, br as slugifyAppName, bt as InviteProjectMembersRequestSchema, c as AgentSummaryListResponseSchema, cn as RecentResourceListResponseSchema, cr as detectProjectPackageManagerFromSnapshot, ct as ExecuteKeystrokeToolRequestSchema, d as AssignCredentialBodySchema, dn as SlugAvailabilityResponseSchema, dt as GetCustomAppResponseSchema, en as ProjectSettingsResponseSchema, er as WorkspaceTriggerFileSchema, et as CredentialInstanceRecordSchema, f as AutoTopupSummarySchema, fn as StartKeystrokeConnectionInputSchema, ft as GraphqlDiscoverResponseSchema, g as BillingSummaryResponseSchema, gn as StartOAuthConnectionInputSchema, gt as HistoryRunListQuerySchema, h as BillingRedirectResponseSchema, hn as StartMcpOAuthConnectionResultSchema, ht as HistoryRunDetailResponseSchema, i as AgentSessionChatStateResponseSchema, ir as WorkspaceWorkflowOverviewSchema, it as DeclineOrganizationInvitationResponseSchema, j as ConnectAuthorizeUrlResponseSchema, jn as UpdateProjectMemberRequestSchema, jt as ListProjectDeploymentsResponseSchema, k as ConfirmCheckoutRequestSchema, kn as UpdateOrganizationMemberResponseSchema, kt as ListOrganizationMembersResponseSchema, l as AgentTriggerSummaryListResponseSchema, ln as SkillSummaryDetailResponseSchema, lr as isAcceptableInstallExit, lt as GatewayAttachmentRecordSchema, m as BillingInvoiceUrlResponseSchema, mn as StartMcpOAuthConnectionInputSchema, mr as parseErrorResponse, mt as HistoryRunCancelResponseSchema, n as AcceptOrganizationInvitationResponseSchema, nn as PromptInputSchema, nr as WorkspaceTriggerOverviewSchema, nt as DOCS_QUERY_TOOL, o as AgentSessionListResponseSchema, on as QueuedRunResponseSchema, ot as DownloadActiveProjectSourceResponseSchema, p as BillingActivityResponseSchema, pn as StartKeystrokeConnectionResultSchema, pr as parseAppSlug, pt as HealthResponseSchema, q as CreateSubscriptionCheckoutRequestSchema, qn as WorkflowRunInputsPutBodySchema, qt as PresignProjectSourceRequestSchema, r as ActiveOrganizationResponseSchema, rn as PromptResponseSchema, rr as WorkspaceTriggerRunListResponseSchema, rt as DOCS_SEARCH_TOOL, s as AgentSummaryDetailResponseSchema, sr as deriveCustomAppDisplay, st as ErrorResponseSchema, t as ACTIVE_ORG_HEADER, tn as ProjectSlugAvailabilityResponseSchema, tr as WorkspaceTriggerListResponseSchema, u as AppSlugAvailabilityResponseSchema, un as SkillSummaryListResponseSchema, ur as listenPortFromPublicUrl, ut as GetCredentialResponseSchema, v as BindChannelBodySchema, vn as SubmitMarketingContactRequestSchema, vr as resolveDocsMcpUrl, vt as InviteOrganizationMembersRequestSchema, w as ChannelConnectionListResponseSchema, wn as UpdateAutoTopupRequestSchema, wt as ListAgentWorkspaceFilesResponseSchema, x as CatalogAppDetailResponseSchema, xn as TriggerListResponseSchema, xt as InviteProjectMembersResponseSchema, y as CatalogActionDetailResponseSchema, yn as SubmitTeamRequestRequestSchema, yr as resolvePublicPlatformOrigin, yt as InviteOrganizationMembersResponseSchema, z as CreateCreditsCheckoutRequestSchema, zn as UserAvatarSchema, zt as OrganizationSidebarBrandingSchema } from "./dist-BmKyXz37.mjs";
|
|
3
|
+
import { i as packProjectArtifact, n as withMcpReadClient, r as mergeFilteredArtifact, t as mapInParallelBatches } from "./dist-9l627wBh.mjs";
|
|
4
|
+
import { _ as getPlatformUrl, c as detectPackageManager, d as resolveGithubPackagesToken, f as resolvePackageManager, g as getEffectiveApiTarget, h as getConfigDir, i as isReleaseAgeBlock, l as installDependencies$1, m as getCliConfigDir, n as resolveCliRoot, o as detectManagerFromLockfile, p as createCliConfig, s as buildPlaygroundWorkspace, t as readCliVersion, u as installPlaygroundDependencies, v as getWebUrl, x as resolvePlatformUrlForWebUrl, y as DEFAULT_PLATFORM_URL } from "./version-CCXlsr0M.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";
|
|
@@ -4458,6 +4458,88 @@ function createApiKeysResource(http) {
|
|
|
4458
4458
|
}
|
|
4459
4459
|
};
|
|
4460
4460
|
}
|
|
4461
|
+
function createBillingResource(http) {
|
|
4462
|
+
return {
|
|
4463
|
+
async summary() {
|
|
4464
|
+
try {
|
|
4465
|
+
const data = await http.get("/api/billing").json();
|
|
4466
|
+
return BillingSummaryResponseSchema.parse(data);
|
|
4467
|
+
} catch (error) {
|
|
4468
|
+
throw await toPlatformError(error);
|
|
4469
|
+
}
|
|
4470
|
+
},
|
|
4471
|
+
async usage() {
|
|
4472
|
+
try {
|
|
4473
|
+
const data = await http.get("/api/billing/usage").json();
|
|
4474
|
+
return BillingUsageResponseSchema.parse(data);
|
|
4475
|
+
} catch (error) {
|
|
4476
|
+
throw await toPlatformError(error);
|
|
4477
|
+
}
|
|
4478
|
+
},
|
|
4479
|
+
async activity() {
|
|
4480
|
+
try {
|
|
4481
|
+
const data = await http.get("/api/billing/activity").json();
|
|
4482
|
+
return BillingActivityResponseSchema.parse(data);
|
|
4483
|
+
} catch (error) {
|
|
4484
|
+
throw await toPlatformError(error);
|
|
4485
|
+
}
|
|
4486
|
+
},
|
|
4487
|
+
/** Fresh Stripe-hosted links for one invoice — resolve on click, don't cache. */
|
|
4488
|
+
async invoiceUrl(invoiceId) {
|
|
4489
|
+
try {
|
|
4490
|
+
const data = await http.get(`/api/billing/invoice-url/${encodeURIComponent(invoiceId)}`).json();
|
|
4491
|
+
return BillingInvoiceUrlResponseSchema.parse(data);
|
|
4492
|
+
} catch (error) {
|
|
4493
|
+
throw await toPlatformError(error);
|
|
4494
|
+
}
|
|
4495
|
+
},
|
|
4496
|
+
async createSubscriptionCheckout(input = {}) {
|
|
4497
|
+
const body = CreateSubscriptionCheckoutRequestSchema.parse(input);
|
|
4498
|
+
try {
|
|
4499
|
+
const data = await http.post("/api/billing/checkout/subscription", { json: body }).json();
|
|
4500
|
+
return BillingRedirectResponseSchema.parse(data);
|
|
4501
|
+
} catch (error) {
|
|
4502
|
+
throw await toPlatformError(error);
|
|
4503
|
+
}
|
|
4504
|
+
},
|
|
4505
|
+
async createCreditsCheckout(input) {
|
|
4506
|
+
const body = CreateCreditsCheckoutRequestSchema.parse(input);
|
|
4507
|
+
try {
|
|
4508
|
+
const data = await http.post("/api/billing/checkout/credits", { json: body }).json();
|
|
4509
|
+
return BillingRedirectResponseSchema.parse(data);
|
|
4510
|
+
} catch (error) {
|
|
4511
|
+
throw await toPlatformError(error);
|
|
4512
|
+
}
|
|
4513
|
+
},
|
|
4514
|
+
async confirmCheckout(input) {
|
|
4515
|
+
const body = ConfirmCheckoutRequestSchema.parse(input);
|
|
4516
|
+
try {
|
|
4517
|
+
const data = await http.post("/api/billing/checkout/confirm", { json: body }).json();
|
|
4518
|
+
return ConfirmCheckoutResponseSchema.parse(data);
|
|
4519
|
+
} catch (error) {
|
|
4520
|
+
throw await toPlatformError(error);
|
|
4521
|
+
}
|
|
4522
|
+
},
|
|
4523
|
+
async createPortalSession(input = {}) {
|
|
4524
|
+
const body = CreateBillingPortalRequestSchema.parse(input);
|
|
4525
|
+
try {
|
|
4526
|
+
const data = await http.post("/api/billing/portal", { json: body }).json();
|
|
4527
|
+
return BillingRedirectResponseSchema.parse(data);
|
|
4528
|
+
} catch (error) {
|
|
4529
|
+
throw await toPlatformError(error);
|
|
4530
|
+
}
|
|
4531
|
+
},
|
|
4532
|
+
async updateAutoTopup(input) {
|
|
4533
|
+
const body = UpdateAutoTopupRequestSchema.parse(input);
|
|
4534
|
+
try {
|
|
4535
|
+
const data = await http.patch("/api/billing/auto-topup", { json: body }).json();
|
|
4536
|
+
return AutoTopupSummarySchema.parse(data);
|
|
4537
|
+
} catch (error) {
|
|
4538
|
+
throw await toPlatformError(error);
|
|
4539
|
+
}
|
|
4540
|
+
}
|
|
4541
|
+
};
|
|
4542
|
+
}
|
|
4461
4543
|
function createHistoryResource(http) {
|
|
4462
4544
|
return {
|
|
4463
4545
|
/** Runs across projects the current user can access in the active org. */
|
|
@@ -4763,6 +4845,7 @@ function createPlatformClient(options) {
|
|
|
4763
4845
|
members: createMembersResource(http),
|
|
4764
4846
|
invitations: createInvitationsResource(http),
|
|
4765
4847
|
apiKeys: createApiKeysResource(http),
|
|
4848
|
+
billing: createBillingResource(http),
|
|
4766
4849
|
recents: createRecentsResource(http),
|
|
4767
4850
|
userPreferences: createUserPreferencesResource(http),
|
|
4768
4851
|
userAvatar: createUserAvatarResource(http),
|
|
@@ -6579,7 +6662,7 @@ function registerBuildCommand(program) {
|
|
|
6579
6662
|
try {
|
|
6580
6663
|
const root = resolveProjectRoot(options.dir);
|
|
6581
6664
|
ensureSdkCurrent(root);
|
|
6582
|
-
const { buildApp } = await import("./dist-
|
|
6665
|
+
const { buildApp } = await import("./dist-CriFiA_0.mjs");
|
|
6583
6666
|
await buildApp({ root });
|
|
6584
6667
|
process.stdout.write(`Built ${root}\n`);
|
|
6585
6668
|
} catch (error) {
|
|
@@ -6702,7 +6785,7 @@ async function sleep(ms) {
|
|
|
6702
6785
|
}
|
|
6703
6786
|
async function buildDeployArchive(client, root, projectId, filter) {
|
|
6704
6787
|
if (filter?.length) {
|
|
6705
|
-
const { buildFilteredApp } = await import("./dist-
|
|
6788
|
+
const { buildFilteredApp } = await import("./dist-CriFiA_0.mjs");
|
|
6706
6789
|
const filtered = await buildFilteredApp({
|
|
6707
6790
|
root,
|
|
6708
6791
|
filter,
|
|
@@ -6724,7 +6807,7 @@ async function buildDeployArchive(client, root, projectId, filter) {
|
|
|
6724
6807
|
sourceFiles: filtered.sourceFiles
|
|
6725
6808
|
};
|
|
6726
6809
|
}
|
|
6727
|
-
const { buildApp } = await import("./dist-
|
|
6810
|
+
const { buildApp } = await import("./dist-CriFiA_0.mjs");
|
|
6728
6811
|
const { sourceFiles } = await buildApp({
|
|
6729
6812
|
root,
|
|
6730
6813
|
collectSources: true,
|
|
@@ -6849,7 +6932,7 @@ function runtimeChildEnv(parentEnv, overrides) {
|
|
|
6849
6932
|
//#region src/project/bootstrap-run.ts
|
|
6850
6933
|
/** Node args + env for `@keystrokehq/build` bootstrap (shared by start + dev). */
|
|
6851
6934
|
async function resolveBootstrapRun(options) {
|
|
6852
|
-
const { resolveRuntimeBuildArtifact } = await import("./dist-
|
|
6935
|
+
const { resolveRuntimeBuildArtifact } = await import("./dist-CriFiA_0.mjs");
|
|
6853
6936
|
const loader = pathToFileURL(resolveRuntimeBuildArtifact(options.runtimeNodeModules, "dist/runtime-loader.mjs")).href;
|
|
6854
6937
|
const bootstrap = resolveRuntimeBuildArtifact(options.runtimeNodeModules, "dist/standalone-bootstrap.mjs");
|
|
6855
6938
|
const args = [`--import=${loader}`];
|
|
@@ -6998,7 +7081,7 @@ async function runDev(options) {
|
|
|
6998
7081
|
process.on("SIGINT", shutdown);
|
|
6999
7082
|
process.on("SIGTERM", shutdown);
|
|
7000
7083
|
try {
|
|
7001
|
-
const { watchApp } = await import("./dist-
|
|
7084
|
+
const { watchApp } = await import("./dist-CriFiA_0.mjs");
|
|
7002
7085
|
await watchApp({
|
|
7003
7086
|
root,
|
|
7004
7087
|
clean: false,
|
|
@@ -8031,7 +8114,7 @@ async function runStart(options) {
|
|
|
8031
8114
|
const apiPort = Number(new URL(serverUrl).port || 80);
|
|
8032
8115
|
const runtimeNodeModules = resolveCliRuntimeNodeModules(resolveCliRoot(import.meta.url));
|
|
8033
8116
|
ensureNativeDeps(runtimeNodeModules);
|
|
8034
|
-
const { buildApp } = await import("./dist-
|
|
8117
|
+
const { buildApp } = await import("./dist-CriFiA_0.mjs");
|
|
8035
8118
|
await buildApp({
|
|
8036
8119
|
root,
|
|
8037
8120
|
clean: false
|
|
@@ -8642,7 +8725,7 @@ function createProgram() {
|
|
|
8642
8725
|
return program;
|
|
8643
8726
|
}
|
|
8644
8727
|
async function runCli(argv) {
|
|
8645
|
-
const { maybeAutoUpdate } = await import("./maybe-auto-update-
|
|
8728
|
+
const { maybeAutoUpdate } = await import("./maybe-auto-update-D0iOIIOM.mjs");
|
|
8646
8729
|
await maybeAutoUpdate(argv);
|
|
8647
8730
|
createProgram().parse(argv);
|
|
8648
8731
|
}
|