@keystrokehq/cli 0.1.6 → 0.1.9
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-CWgqwAeq.mjs → dist-BPdyQaUt.mjs} +5 -5
- package/dist/dist-BPdyQaUt.mjs.map +1 -0
- package/dist/dist-Dz6iW5q5.mjs +3 -0
- package/dist/{dist-jchdNGBU.mjs → dist-IOphuHYN.mjs} +3 -3
- package/dist/{dist-jchdNGBU.mjs.map → dist-IOphuHYN.mjs.map} +1 -1
- package/dist/{dist-H53GUsol.mjs → dist-YV-kApfg.mjs} +28 -13
- package/dist/{dist-H53GUsol.mjs.map → dist-YV-kApfg.mjs.map} +1 -1
- package/dist/index.mjs +19 -11
- package/dist/index.mjs.map +1 -1
- package/dist/{maybe-auto-update-ClXO7U-6.mjs → maybe-auto-update-BiR_kXZX.mjs} +2 -2
- package/dist/{maybe-auto-update-ClXO7U-6.mjs.map → maybe-auto-update-BiR_kXZX.mjs.map} +1 -1
- package/dist/{pack-artifact-DVnIKrsg-CETr40a-.mjs → pack-artifact-DVnIKrsg-BtNTTQcz.mjs} +2 -2
- package/dist/{pack-artifact-DVnIKrsg-CETr40a-.mjs.map → pack-artifact-DVnIKrsg-BtNTTQcz.mjs.map} +1 -1
- package/dist/{version-CiPDVUdk.mjs → version-BGuC7Cpu.mjs} +2 -2
- package/dist/{version-CiPDVUdk.mjs.map → version-BGuC7Cpu.mjs.map} +1 -1
- package/package.json +1 -1
- package/dist/dist-CWgqwAeq.mjs.map +0 -1
- package/dist/dist-DohqaxIM.mjs +0 -3
package/dist/index.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { $ as
|
|
3
|
-
import { a as installPlaygroundDependencies, c as createCliConfig, d as getEffectiveApiTarget, f as getPlatformUrl, g as resolvePlatformUrlForWebUrl, i as installDependencies, l as getCliConfigDir, m as DEFAULT_PLATFORM_URL, n as buildPlaygroundWorkspace, o as resolvePackageManager, p as getWebUrl, s as resolveCliRoot, t as readCliVersion, u as getConfigDir } from "./version-
|
|
4
|
-
import { n as packProjectArtifact, t as mergeFilteredArtifact } from "./pack-artifact-DVnIKrsg-
|
|
2
|
+
import { $ as HistoryRunDetailResponseSchema, $t as TriggerDetailResponseSchema, A as CreateCustomAppRequestSchema, At as PresignUserAvatarRequestSchema, B as CredentialConsumerListQuerySchema, C as ConnectAuthorizeUrlResponseSchema, Cn as WorkflowSummaryListResponseSchema, Ct as OrganizationSidebarBrandingSchema, D as CreateCredentialInstanceBodySchema, Dn as WorkspaceTriggerOverviewSchema, Dt as PresignOrgLogoResponseSchema, E as CreateApiKeyResponseSchema, En as WorkspaceTriggerListResponseSchema, Et as PresignOrgLogoRequestSchema, F as CreateProjectRequestSchema, Fn as parseErrorResponse, Ft as ProjectSlugAvailabilityResponseSchema, G as DownloadActiveProjectArtifactResponseSchema, Gt as StartKeystrokeConnectionInputSchema, H as CredentialInstanceListResponseSchema, Ht as SkillSummaryDetailResponseSchema, I as CreateProjectResponseSchema, It as PromptInputSchema, J as GetCredentialResponseSchema, Jt as StartMcpOAuthConnectionResultSchema, K as ErrorResponseSchema, Kt as StartKeystrokeConnectionResultSchema, L as CredentialAssignmentListQuerySchema, Ln as resolvePublicPlatformOrigin, Lt as PromptResponseSchema, M as CreateOrganizationRequestSchema, Mt as ProjectReachabilityResponseSchema, N as CreateOrganizationResponseSchema, Nt as ProjectResponseSchema, O as CreateCredentialsRequestSchema, On as WorkspaceTriggerRunListResponseSchema, Ot as PresignProjectSourceRequestSchema, P as CreateProjectArtifactResponseSchema, Pn as parseAppSlug, Pt as ProjectSettingsResponseSchema, Q as HistoryRunCancelResponseSchema, Qt as SubmitTeamRequestRequestSchema, R as CredentialAssignmentListResponseSchema, Rn as slugifyAppName, Rt as QueuedAgentPromptResponseSchema, S as CompleteProjectArtifactResponseSchema, Sn as WorkflowSummaryDetailResponseSchema, St as OrganizationSidebarBrandingPatchSchema, T as CreateApiKeyRequestSchema, Tn as WorkspaceTriggerFileSchema, Tt as PollRunResponseSchema, U as CredentialInstanceRecordSchema, Ut as SkillSummaryListResponseSchema, V as CredentialConsumerListResponseSchema, Vt as RecentResourceListResponseSchema, W as DeclineOrganizationInvitationResponseSchema, Wt as SlugAvailabilityResponseSchema, X as GraphqlDiscoverResponseSchema, Xt as StartOAuthConnectionResultSchema, Y as GetCustomAppResponseSchema, Yt as StartOAuthConnectionInputSchema, Z as HealthResponseSchema, Zt as SubmitMarketingContactRequestSchema, _ as ChannelAccountListResponseSchema, _n as UserAvatarSchema, _t as ListProjectMembersResponseSchema, a as AgentSessionDetailResponseSchema, an as UpdateCredentialRequestSchema, at as InviteProjectMembersResponseSchema, b as ChannelDirectoryListResponseSchema, bn as WorkflowRunDetailResponseSchema, bt as McpDiscoverResponseSchema, c as AgentSummaryListResponseSchema, cn as UpdateOrganizationRequestSchema, ct as ListAgentWorkspaceFilesResponseSchema, d as AssignCredentialBodySchema, dn as UpdateProjectRequestSchema, dt as ListCredentialsResponseSchema, en as TriggerListResponseSchema, et as HistoryRunListQuerySchema, f as BindChannelBodySchema, fn as UpdateProjectSettingsRequestSchema, ft as ListOrganizationInvitationsResponseSchema, g as CatalogAppsPageResponseSchema, gn as UserAvatarPatchSchema, gt as ListProjectFilesResponseSchema, h as CatalogAppDetailResponseSchema, hn as UpsertGatewayAttachmentBodySchema, ht as ListProjectDeploymentsResponseSchema, i as AgentSessionChatStateResponseSchema, in as UpdateCredentialInstanceBodySchema, it as InviteProjectMembersRequestSchema, j as CreateCustomAppResponseSchema, jn as listenPortFromPublicUrl, jt as PresignUserAvatarResponseSchema, k as CreateCredentialsResponseSchema, kn as buildConnectDeeplink, kt as PresignProjectSourceResponseSchema, l as AgentTriggerSummaryListResponseSchema, ln as UpdateProjectMemberRequestSchema, lt as ListApiKeysResponseSchema, m as CatalogActionsPageResponseSchema, mn as UploadProjectSourceResponseSchema, mt as ListOrganizationsResponseSchema, n as AcceptOrganizationInvitationResponseSchema, nn as TriggerRunListResponseSchema, nt as InviteOrganizationMembersRequestSchema, o as AgentSessionListResponseSchema, on as UpdateOrganizationMemberRequestSchema, p as CatalogActionDetailResponseSchema, pn as UploadProjectSourceManifestRequestSchema, pt as ListOrganizationMembersResponseSchema, q as GatewayAttachmentRecordSchema, qt as StartMcpOAuthConnectionInputSchema, r as ActiveOrganizationResponseSchema, rn as UpdateChannelBindingBodySchema, rt as InviteOrganizationMembersResponseSchema, s as AgentSummaryDetailResponseSchema, sn as UpdateOrganizationMemberResponseSchema, st as ListAgentMemoryFilesResponseSchema, t as ACTIVE_ORG_HEADER, tn as TriggerRunDetailResponseSchema, tt as HistoryRunListResponseSchema, u as AppSlugAvailabilityResponseSchema, un as UpdateProjectMemberResponseSchema, ut as ListAppsResponseSchema, v as ChannelConnectionListResponseSchema, vn as UserPreferencesPatchSchema, vt as ListProjectMetricsResponseSchema, w as ConnectProvidersResponseSchema, wn as WorkspaceTriggerDetailSchema, wt as PROJECT_REACHABILITY_REQUEST_TIMEOUT_MS, x as ChannelPlatformSchema, xn as WorkflowRunListResponseSchema, xt as OpenApiDiscoverResponseSchema, y as ChannelConnectionSchema, yn as UserPreferencesSchema, yt as ListProjectsResponseSchema, z as CredentialAssignmentRecordSchema, zt as QueuedRunResponseSchema } from "./dist-YV-kApfg.mjs";
|
|
3
|
+
import { a as installPlaygroundDependencies, c as createCliConfig, d as getEffectiveApiTarget, f as getPlatformUrl, g as resolvePlatformUrlForWebUrl, i as installDependencies, l as getCliConfigDir, m as DEFAULT_PLATFORM_URL, n as buildPlaygroundWorkspace, o as resolvePackageManager, p as getWebUrl, s as resolveCliRoot, t as readCliVersion, u as getConfigDir } from "./version-BGuC7Cpu.mjs";
|
|
4
|
+
import { n as packProjectArtifact, t as mergeFilteredArtifact } from "./pack-artifact-DVnIKrsg-BtNTTQcz.mjs";
|
|
5
5
|
import { createRequire } from "node:module";
|
|
6
6
|
import { Command } from "commander";
|
|
7
7
|
import { platform } from "node:os";
|
|
@@ -4129,6 +4129,14 @@ function createAppsResource(http) {
|
|
|
4129
4129
|
throw await toPlatformError(error);
|
|
4130
4130
|
}
|
|
4131
4131
|
},
|
|
4132
|
+
async discoverGraphql(input) {
|
|
4133
|
+
try {
|
|
4134
|
+
const data = await http.post("/api/apps/discover-graphql", { json: input }).json();
|
|
4135
|
+
return GraphqlDiscoverResponseSchema.parse(data);
|
|
4136
|
+
} catch (error) {
|
|
4137
|
+
throw await toPlatformError(error);
|
|
4138
|
+
}
|
|
4139
|
+
},
|
|
4132
4140
|
async startMcpOAuthConnection(slug, input) {
|
|
4133
4141
|
try {
|
|
4134
4142
|
const body = StartMcpOAuthConnectionInputSchema.parse({
|
|
@@ -6095,7 +6103,7 @@ function registerBuildCommand(program) {
|
|
|
6095
6103
|
program.command("build").description("Build the keystroke project for production").option("--dir <path>", "Project directory", process.cwd()).action(async (options) => {
|
|
6096
6104
|
try {
|
|
6097
6105
|
const root = resolveProjectRoot(options.dir);
|
|
6098
|
-
const { buildApp } = await import("./dist-
|
|
6106
|
+
const { buildApp } = await import("./dist-IOphuHYN.mjs");
|
|
6099
6107
|
await buildApp({ root });
|
|
6100
6108
|
process.stdout.write(`Built ${root}\n`);
|
|
6101
6109
|
} catch (error) {
|
|
@@ -6149,7 +6157,7 @@ async function sleep(ms) {
|
|
|
6149
6157
|
}
|
|
6150
6158
|
async function buildDeployArchive(client, root, projectId, filter) {
|
|
6151
6159
|
if (filter?.length) {
|
|
6152
|
-
const { buildFilteredApp } = await import("./dist-
|
|
6160
|
+
const { buildFilteredApp } = await import("./dist-IOphuHYN.mjs");
|
|
6153
6161
|
const filtered = await buildFilteredApp({
|
|
6154
6162
|
root,
|
|
6155
6163
|
filter,
|
|
@@ -6171,7 +6179,7 @@ async function buildDeployArchive(client, root, projectId, filter) {
|
|
|
6171
6179
|
sourceFiles: filtered.sourceFiles
|
|
6172
6180
|
};
|
|
6173
6181
|
}
|
|
6174
|
-
const { buildApp } = await import("./dist-
|
|
6182
|
+
const { buildApp } = await import("./dist-IOphuHYN.mjs");
|
|
6175
6183
|
const { sourceFiles } = await buildApp({
|
|
6176
6184
|
root,
|
|
6177
6185
|
collectSources: true,
|
|
@@ -6290,7 +6298,7 @@ function runtimeChildEnv(parentEnv, overrides) {
|
|
|
6290
6298
|
//#region src/project/bootstrap-run.ts
|
|
6291
6299
|
/** Node args + env for `@keystrokehq/build` bootstrap (shared by start + dev). */
|
|
6292
6300
|
async function resolveBootstrapRun(options) {
|
|
6293
|
-
const { resolveRuntimeBuildArtifact } = await import("./dist-
|
|
6301
|
+
const { resolveRuntimeBuildArtifact } = await import("./dist-IOphuHYN.mjs");
|
|
6294
6302
|
const loader = pathToFileURL(resolveRuntimeBuildArtifact(options.runtimeNodeModules, "dist/runtime-loader.mjs")).href;
|
|
6295
6303
|
const bootstrap = resolveRuntimeBuildArtifact(options.runtimeNodeModules, "dist/standalone-bootstrap.mjs");
|
|
6296
6304
|
const args = [`--import=${loader}`];
|
|
@@ -6439,7 +6447,7 @@ async function runDev(options) {
|
|
|
6439
6447
|
process.on("SIGINT", shutdown);
|
|
6440
6448
|
process.on("SIGTERM", shutdown);
|
|
6441
6449
|
try {
|
|
6442
|
-
const { watchApp } = await import("./dist-
|
|
6450
|
+
const { watchApp } = await import("./dist-IOphuHYN.mjs");
|
|
6443
6451
|
await watchApp({
|
|
6444
6452
|
root,
|
|
6445
6453
|
clean: false,
|
|
@@ -6589,7 +6597,7 @@ const INIT_CATALOG_VERSIONS = {
|
|
|
6589
6597
|
vitest: "^4.1.7",
|
|
6590
6598
|
"@types/node": "^25.9.1"
|
|
6591
6599
|
};
|
|
6592
|
-
const INIT_KEYSTROKE_VERSION = "^0.1.
|
|
6600
|
+
const INIT_KEYSTROKE_VERSION = "^0.1.8";
|
|
6593
6601
|
//#endregion
|
|
6594
6602
|
//#region src/init/copy-template.ts
|
|
6595
6603
|
function renderTemplate(content, variables) {
|
|
@@ -7298,7 +7306,7 @@ async function runStart(options) {
|
|
|
7298
7306
|
const apiPort = Number(new URL(serverUrl).port || 80);
|
|
7299
7307
|
const runtimeNodeModules = resolveCliRuntimeNodeModules(resolveCliRoot(import.meta.url));
|
|
7300
7308
|
ensureNativeDeps(runtimeNodeModules);
|
|
7301
|
-
const { buildApp } = await import("./dist-
|
|
7309
|
+
const { buildApp } = await import("./dist-IOphuHYN.mjs");
|
|
7302
7310
|
await buildApp({
|
|
7303
7311
|
root,
|
|
7304
7312
|
clean: false
|
|
@@ -7877,7 +7885,7 @@ function createProgram() {
|
|
|
7877
7885
|
return program;
|
|
7878
7886
|
}
|
|
7879
7887
|
async function runCli(argv) {
|
|
7880
|
-
const { maybeAutoUpdate } = await import("./maybe-auto-update-
|
|
7888
|
+
const { maybeAutoUpdate } = await import("./maybe-auto-update-BiR_kXZX.mjs");
|
|
7881
7889
|
await maybeAutoUpdate(argv);
|
|
7882
7890
|
createProgram().parse(argv);
|
|
7883
7891
|
}
|