@keystrokehq/cli 0.1.71 → 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 +29 -19
- 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 +3 -3
- 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) {
|
|
@@ -6795,8 +6803,8 @@ function resolveConfigsDir(fromModuleUrl = import.meta.url) {
|
|
|
6795
6803
|
const require = createRequire(import.meta.url);
|
|
6796
6804
|
/**
|
|
6797
6805
|
* Resolve a bundled dev tool's executable from the CLI's own node_modules. The tools
|
|
6798
|
-
* (oxlint, vitest, typescript) ship as CLI dependencies, so user projects don't
|
|
6799
|
-
* them. Their bins are Node launchers, so callers run them with `node <bin>`.
|
|
6806
|
+
* (oxlint, vitest, typescript/`tsc6`) ship as CLI dependencies, so user projects don't
|
|
6807
|
+
* declare them. Their bins are Node launchers, so callers run them with `node <bin>`.
|
|
6800
6808
|
*/
|
|
6801
6809
|
function resolveToolBin(pkg, binName) {
|
|
6802
6810
|
const packageJsonPath = require.resolve(`${pkg}/package.json`);
|
|
@@ -6838,11 +6846,13 @@ function runLint(root, args = ["."]) {
|
|
|
6838
6846
|
/**
|
|
6839
6847
|
* Type-check the project with the bundled TypeScript. tsdown (build) strips types without
|
|
6840
6848
|
* checking them, so build/deploy call this as a gate. Resolves with the tsc exit code.
|
|
6849
|
+
*
|
|
6850
|
+
* Catalog `typescript` is `@typescript/typescript6`, whose bin is `tsc6` (not `tsc`).
|
|
6841
6851
|
*/
|
|
6842
6852
|
async function runTypecheck(root) {
|
|
6843
6853
|
return runToolBin({
|
|
6844
6854
|
pkg: "typescript",
|
|
6845
|
-
binName: "
|
|
6855
|
+
binName: "tsc6",
|
|
6846
6856
|
args: [
|
|
6847
6857
|
"--noEmit",
|
|
6848
6858
|
"-p",
|
|
@@ -6895,7 +6905,7 @@ async function sleep(ms) {
|
|
|
6895
6905
|
}
|
|
6896
6906
|
async function buildDeployArchive(client, root, projectId, filter) {
|
|
6897
6907
|
if (filter?.length) {
|
|
6898
|
-
const { buildFilteredApp } = await import("./dist-
|
|
6908
|
+
const { buildFilteredApp } = await import("./dist-CYvtmJ0Y.mjs");
|
|
6899
6909
|
const filtered = await buildFilteredApp({
|
|
6900
6910
|
root,
|
|
6901
6911
|
filter,
|
|
@@ -6917,7 +6927,7 @@ async function buildDeployArchive(client, root, projectId, filter) {
|
|
|
6917
6927
|
sourceFiles: filtered.sourceFiles
|
|
6918
6928
|
};
|
|
6919
6929
|
}
|
|
6920
|
-
const { buildApp } = await import("./dist-
|
|
6930
|
+
const { buildApp } = await import("./dist-CYvtmJ0Y.mjs");
|
|
6921
6931
|
const { sourceFiles } = await buildApp({
|
|
6922
6932
|
root,
|
|
6923
6933
|
collectSources: true,
|
|
@@ -7039,7 +7049,7 @@ function runtimeChildEnv(parentEnv, overrides) {
|
|
|
7039
7049
|
//#region src/project/bootstrap-run.ts
|
|
7040
7050
|
/** Node args + env for `@keystrokehq/build` bootstrap (shared by start + dev). */
|
|
7041
7051
|
async function resolveBootstrapRun(options) {
|
|
7042
|
-
const { resolveRuntimeBuildArtifact } = await import("./dist-
|
|
7052
|
+
const { resolveRuntimeBuildArtifact } = await import("./dist-CYvtmJ0Y.mjs");
|
|
7043
7053
|
const loader = pathToFileURL(resolveRuntimeBuildArtifact(options.runtimeNodeModules, "dist/runtime-loader.mjs")).href;
|
|
7044
7054
|
const bootstrap = resolveRuntimeBuildArtifact(options.runtimeNodeModules, "dist/standalone-bootstrap.mjs");
|
|
7045
7055
|
const args = [`--import=${loader}`];
|
|
@@ -7188,7 +7198,7 @@ async function runDev(options) {
|
|
|
7188
7198
|
process.on("SIGINT", shutdown);
|
|
7189
7199
|
process.on("SIGTERM", shutdown);
|
|
7190
7200
|
try {
|
|
7191
|
-
const { watchApp } = await import("./dist-
|
|
7201
|
+
const { watchApp } = await import("./dist-CYvtmJ0Y.mjs");
|
|
7192
7202
|
await watchApp({
|
|
7193
7203
|
root,
|
|
7194
7204
|
clean: false,
|
|
@@ -8231,7 +8241,7 @@ async function runStart(options) {
|
|
|
8231
8241
|
const apiPort = Number(new URL(serverUrl).port || 80);
|
|
8232
8242
|
const runtimeNodeModules = resolveCliRuntimeNodeModules(resolveCliRoot(import.meta.url));
|
|
8233
8243
|
ensureNativeDeps(runtimeNodeModules);
|
|
8234
|
-
const { buildApp } = await import("./dist-
|
|
8244
|
+
const { buildApp } = await import("./dist-CYvtmJ0Y.mjs");
|
|
8235
8245
|
await buildApp({
|
|
8236
8246
|
root,
|
|
8237
8247
|
clean: false
|
|
@@ -8827,7 +8837,7 @@ function createProgram() {
|
|
|
8827
8837
|
return program;
|
|
8828
8838
|
}
|
|
8829
8839
|
async function runCli(argv) {
|
|
8830
|
-
const { maybeAutoUpdate } = await import("./maybe-auto-update-
|
|
8840
|
+
const { maybeAutoUpdate } = await import("./maybe-auto-update-Cc2JdiaK.mjs");
|
|
8831
8841
|
await maybeAutoUpdate(argv);
|
|
8832
8842
|
createProgram().parse(argv);
|
|
8833
8843
|
}
|