@keystrokehq/cli 1.0.0 → 1.0.2
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-6GfH430k.mjs → dist-BrhJhyvP.mjs} +1 -1
- package/dist/{dist-D5mdqlok.mjs → dist-DEwhZoDf.mjs} +2 -2
- package/dist/{dist-D5mdqlok.mjs.map → dist-DEwhZoDf.mjs.map} +1 -1
- package/dist/{dist-D0bvBuXk.mjs → dist-DtUH9rOc.mjs} +3 -3
- package/dist/{dist-D0bvBuXk.mjs.map → dist-DtUH9rOc.mjs.map} +1 -1
- package/dist/{dist-DAVSXcfW.mjs → dist-_46DIPBj.mjs} +18 -2
- package/dist/{dist-DAVSXcfW.mjs.map → dist-_46DIPBj.mjs.map} +1 -1
- package/dist/index.mjs +21 -12
- package/dist/index.mjs.map +1 -1
- package/dist/{maybe-auto-update-C5I7EUot.mjs → maybe-auto-update-DGBkB562.mjs} +2 -2
- package/dist/{maybe-auto-update-C5I7EUot.mjs.map → maybe-auto-update-DGBkB562.mjs.map} +1 -1
- package/dist/{version-_fM2Xco6.mjs → version-CKAYz1xm.mjs} +2 -2
- package/dist/{version-_fM2Xco6.mjs.map → version-CKAYz1xm.mjs.map} +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { $ as ListCredentialsResponseSchema, $t as
|
|
3
|
-
import { _ as resolvePlatformUrlForWebUrl, a as installPlaygroundDependencies, c as createCliConfig, d as getEffectiveApiTarget, f as getPlatformUrl, h as DEFAULT_PLATFORM_URL, i as installDependencies, l as getCliConfigDir, m as getWebUrl, n as buildPlaygroundWorkspace, o as resolvePackageManager, p as getServerUrl, s as resolveCliRoot, t as readCliVersion, u as getConfigDir } from "./version-
|
|
2
|
+
import { $ as ListCredentialsResponseSchema, $t as UploadProjectSourceResponseSchema, A as CreateOrganizationResponseSchema, At as SlugAvailabilityResponseSchema, B as GetCredentialResponseSchema, Bt as TriggerRunDetailResponseSchema, C as CreateApiKeyResponseSchema, Ct as PromptResponseSchema, D as CreateCustomAppRequestSchema, Dt as RecentResourceListResponseSchema, E as CreateCredentialsResponseSchema, Et as ROUTE_MANIFEST_REL_PATH, F as CredentialInstanceRecordSchema, Ft as StoredRouteManifestSchema, G as HistoryRunListQuerySchema, Gt as UpdateOrganizationMemberRequestSchema, H as HealthResponseSchema, Ht as UpdateChannelBindingBodySchema, I as DeclineOrganizationInvitationResponseSchema, It as SubmitMarketingContactRequestSchema, J as InviteOrganizationMembersResponseSchema, Jt as UpdateProjectMemberRequestSchema, K as HistoryRunListResponseSchema, Kt as UpdateOrganizationMemberResponseSchema, L as DownloadActiveProjectArtifactResponseSchema, Lt as SubmitTeamRequestRequestSchema, M as CreateProjectRequestSchema, Mt as StartKeystrokeConnectionResultSchema, N as CreateProjectResponseSchema, Nt as StartOAuthConnectionInputSchema, O as CreateCustomAppResponseSchema, Ot as SkillSummaryDetailResponseSchema, P as CredentialInstanceListResponseSchema, Pt as StartOAuthConnectionResultSchema, Q as ListAppsResponseSchema, Qt as UploadProjectSourceManifestRequestSchema, R as ErrorResponseSchema, Rt as TriggerDetailResponseSchema, S as CreateApiKeyRequestSchema, St as PromptInputSchema, T as CreateCredentialsRequestSchema, Tt as QueuedRunResponseSchema, U as HistoryRunCancelResponseSchema, Ut as UpdateCredentialInstanceBodySchema, V as GetCustomAppResponseSchema, Vt as TriggerRunListResponseSchema, W as HistoryRunDetailResponseSchema, Wt as UpdateCredentialRequestSchema, X as InviteProjectMembersResponseSchema, Xt as UpdateProjectRequestSchema, Y as InviteProjectMembersRequestSchema, Yt as UpdateProjectMemberResponseSchema, Z as ListApiKeysResponseSchema, Zt as UpdateProjectSettingsRequestSchema, _ as ChannelDirectoryListResponseSchema, _t as PresignUserAvatarResponseSchema, a as AgentSessionListResponseSchema, an as WorkflowRunDetailResponseSchema, at as ListProjectMembersResponseSchema, b as ConnectAuthorizeUrlResponseSchema, bt as ProjectSettingsResponseSchema, c as AppSlugAvailabilityResponseSchema, cn as WorkflowSummaryListResponseSchema, ct as OrganizationSidebarBrandingPatchSchema, d as CatalogActionsPageResponseSchema, dt as PollRunResponseSchema, en as UpsertGatewayAttachmentBodySchema, et as ListOrganizationInvitationsResponseSchema, f as CatalogAppDetailResponseSchema, fn as parseAppSlug, ft as PresignOrgLogoRequestSchema, g as ChannelConnectionSchema, gt as PresignUserAvatarRequestSchema, h as ChannelConnectionListResponseSchema, ht as PresignProjectSourceResponseSchema, i as AgentSessionDetailResponseSchema, in as UserPreferencesSchema, it as ListProjectFilesResponseSchema, j as CreateProjectArtifactResponseSchema, jt as StartKeystrokeConnectionInputSchema, k as CreateOrganizationRequestSchema, kt as SkillSummaryListResponseSchema, l as BindChannelBodySchema, ln as listenPortFromPublicUrl, lt as OrganizationSidebarBrandingSchema, m as ChannelAccountListResponseSchema, mn as slugifyAppName, mt as PresignProjectSourceRequestSchema, n as AcceptOrganizationInvitationResponseSchema, nn as UserAvatarSchema, nt as ListOrganizationsResponseSchema, o as AgentSummaryDetailResponseSchema, on as WorkflowRunListResponseSchema, ot as ListProjectMetricsResponseSchema, p as CatalogAppsPageResponseSchema, pn as parseErrorResponse, pt as PresignOrgLogoResponseSchema, q as InviteOrganizationMembersRequestSchema, qt as UpdateOrganizationRequestSchema, r as ActiveOrganizationResponseSchema, rn as UserPreferencesPatchSchema, rt as ListProjectDeploymentsResponseSchema, s as AgentSummaryListResponseSchema, sn as WorkflowSummaryDetailResponseSchema, st as ListProjectsResponseSchema, t as ACTIVE_ORG_HEADER, tn as UserAvatarPatchSchema, tt as ListOrganizationMembersResponseSchema, u as CatalogActionDetailResponseSchema, ut as PROJECT_REACHABILITY_REQUEST_TIMEOUT_MS, v as ChannelPlatformSchema, vt as ProjectReachabilityResponseSchema, w as CreateCredentialInstanceBodySchema, wt as QueuedAgentPromptResponseSchema, x as ConnectProvidersResponseSchema, xt as ProjectSlugAvailabilityResponseSchema, y as CompleteProjectArtifactResponseSchema, yt as ProjectResponseSchema, z as GatewayAttachmentRecordSchema, zt as TriggerListResponseSchema } from "./dist-_46DIPBj.mjs";
|
|
3
|
+
import { _ as resolvePlatformUrlForWebUrl, a as installPlaygroundDependencies, c as createCliConfig, d as getEffectiveApiTarget, f as getPlatformUrl, h as DEFAULT_PLATFORM_URL, i as installDependencies, l as getCliConfigDir, m as getWebUrl, n as buildPlaygroundWorkspace, o as resolvePackageManager, p as getServerUrl, s as resolveCliRoot, t as readCliVersion, u as getConfigDir } from "./version-CKAYz1xm.mjs";
|
|
4
4
|
import { createRequire } from "node:module";
|
|
5
5
|
import { Command } from "commander";
|
|
6
6
|
import { platform, tmpdir } from "node:os";
|
|
@@ -3718,6 +3718,16 @@ function createTeamRequestsResource(http) {
|
|
|
3718
3718
|
}
|
|
3719
3719
|
} };
|
|
3720
3720
|
}
|
|
3721
|
+
function createMarketingContactResource(http) {
|
|
3722
|
+
return { async submit(input) {
|
|
3723
|
+
const body = SubmitMarketingContactRequestSchema.parse(input);
|
|
3724
|
+
try {
|
|
3725
|
+
await http.post("/api/public/contact", { json: body }).json();
|
|
3726
|
+
} catch (error) {
|
|
3727
|
+
throw await toPlatformError(error);
|
|
3728
|
+
}
|
|
3729
|
+
} };
|
|
3730
|
+
}
|
|
3721
3731
|
function createRecentsResource(http) {
|
|
3722
3732
|
return {
|
|
3723
3733
|
/** Always the viewer's own recents, scoped to their project memberships. */
|
|
@@ -4378,6 +4388,7 @@ function createPlatformClient(options) {
|
|
|
4378
4388
|
userAvatar: createUserAvatarResource(http),
|
|
4379
4389
|
organizationSidebarBranding: createOrganizationSidebarBrandingResource(http, { getActiveOrganizationId: () => activeOrganizationId }),
|
|
4380
4390
|
teamRequests: createTeamRequestsResource(http),
|
|
4391
|
+
marketingContact: createMarketingContactResource(http),
|
|
4381
4392
|
getActiveOrganizationId: () => activeOrganizationId,
|
|
4382
4393
|
setActiveOrganizationId
|
|
4383
4394
|
};
|
|
@@ -5762,7 +5773,7 @@ function registerBuildCommand(program) {
|
|
|
5762
5773
|
program.command("build").description("Build the keystroke project for production").option("--dir <path>", "Project directory", process.cwd()).action(async (options) => {
|
|
5763
5774
|
try {
|
|
5764
5775
|
const root = resolveProjectRoot(options.dir);
|
|
5765
|
-
const { buildApp } = await import("./dist-
|
|
5776
|
+
const { buildApp } = await import("./dist-DtUH9rOc.mjs");
|
|
5766
5777
|
await buildApp({ root });
|
|
5767
5778
|
process.stdout.write(`Built ${root}\n`);
|
|
5768
5779
|
} catch (error) {
|
|
@@ -5919,7 +5930,7 @@ async function sleep(ms) {
|
|
|
5919
5930
|
}
|
|
5920
5931
|
async function buildDeployArchive(client, root, projectId, filter) {
|
|
5921
5932
|
if (filter?.length) {
|
|
5922
|
-
const { buildFilteredApp } = await import("./dist-
|
|
5933
|
+
const { buildFilteredApp } = await import("./dist-DtUH9rOc.mjs");
|
|
5923
5934
|
const filtered = await buildFilteredApp({
|
|
5924
5935
|
root,
|
|
5925
5936
|
filter,
|
|
@@ -5941,7 +5952,7 @@ async function buildDeployArchive(client, root, projectId, filter) {
|
|
|
5941
5952
|
sourceFiles: filtered.sourceFiles
|
|
5942
5953
|
};
|
|
5943
5954
|
}
|
|
5944
|
-
const { buildApp } = await import("./dist-
|
|
5955
|
+
const { buildApp } = await import("./dist-DtUH9rOc.mjs");
|
|
5945
5956
|
const { sourceFiles } = await buildApp({
|
|
5946
5957
|
root,
|
|
5947
5958
|
collectSources: true,
|
|
@@ -6047,14 +6058,13 @@ function runtimeChildEnv(parentEnv, overrides) {
|
|
|
6047
6058
|
env.DATABASE_URL = "file:./data/public.db";
|
|
6048
6059
|
}
|
|
6049
6060
|
env.KEYSTROKE_APP_MODE ??= "standalone";
|
|
6050
|
-
env.PROJECT_ID ??= "default";
|
|
6051
6061
|
return env;
|
|
6052
6062
|
}
|
|
6053
6063
|
//#endregion
|
|
6054
6064
|
//#region src/project/bootstrap-run.ts
|
|
6055
6065
|
/** Node args + env for `@keystrokehq/build` bootstrap (shared by start + dev). */
|
|
6056
6066
|
async function resolveBootstrapRun(options) {
|
|
6057
|
-
const { resolveRuntimeBuildArtifact } = await import("./dist-
|
|
6067
|
+
const { resolveRuntimeBuildArtifact } = await import("./dist-DtUH9rOc.mjs");
|
|
6058
6068
|
const loader = pathToFileURL(resolveRuntimeBuildArtifact(options.runtimeNodeModules, "dist/runtime-loader.mjs")).href;
|
|
6059
6069
|
const bootstrap = resolveRuntimeBuildArtifact(options.runtimeNodeModules, "dist/standalone-bootstrap.mjs");
|
|
6060
6070
|
const args = [`--import=${loader}`];
|
|
@@ -6064,8 +6074,7 @@ async function resolveBootstrapRun(options) {
|
|
|
6064
6074
|
const childEnv = runtimeChildEnv(process.env, {
|
|
6065
6075
|
KEYSTROKE_ROOT: options.root,
|
|
6066
6076
|
KEYSTROKE_RUNTIME_NODE_MODULES: options.runtimeNodeModules,
|
|
6067
|
-
KEYSTROKE_APP_MODE: "standalone"
|
|
6068
|
-
PROJECT_ID: process.env.PROJECT_ID ?? "default"
|
|
6077
|
+
KEYSTROKE_APP_MODE: "standalone"
|
|
6069
6078
|
});
|
|
6070
6079
|
childEnv.PORT = String(listenPortFromPublicUrl(childEnv.PUBLIC_SERVER_URL, options.apiPort));
|
|
6071
6080
|
return {
|
|
@@ -6205,7 +6214,7 @@ async function runDev(options) {
|
|
|
6205
6214
|
process.on("SIGINT", shutdown);
|
|
6206
6215
|
process.on("SIGTERM", shutdown);
|
|
6207
6216
|
try {
|
|
6208
|
-
const { watchApp } = await import("./dist-
|
|
6217
|
+
const { watchApp } = await import("./dist-DtUH9rOc.mjs");
|
|
6209
6218
|
await watchApp({
|
|
6210
6219
|
root,
|
|
6211
6220
|
clean: false,
|
|
@@ -7031,7 +7040,7 @@ async function runStart(options) {
|
|
|
7031
7040
|
const apiPort = Number(new URL(serverUrl).port || 80);
|
|
7032
7041
|
const runtimeNodeModules = resolveCliRuntimeNodeModules(resolveCliRoot(import.meta.url));
|
|
7033
7042
|
ensureNativeDeps(runtimeNodeModules);
|
|
7034
|
-
const { buildApp } = await import("./dist-
|
|
7043
|
+
const { buildApp } = await import("./dist-DtUH9rOc.mjs");
|
|
7035
7044
|
await buildApp({
|
|
7036
7045
|
root,
|
|
7037
7046
|
clean: false
|
|
@@ -7554,7 +7563,7 @@ function createProgram() {
|
|
|
7554
7563
|
return program;
|
|
7555
7564
|
}
|
|
7556
7565
|
async function runCli(argv) {
|
|
7557
|
-
const { maybeAutoUpdate } = await import("./maybe-auto-update-
|
|
7566
|
+
const { maybeAutoUpdate } = await import("./maybe-auto-update-DGBkB562.mjs");
|
|
7558
7567
|
await maybeAutoUpdate(argv);
|
|
7559
7568
|
createProgram().parse(argv);
|
|
7560
7569
|
}
|