@keystrokehq/cli 0.1.93 → 0.1.95
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-D81Ms0uu.mjs → dist-BChg8kdu.mjs} +7 -4
- package/dist/dist-BChg8kdu.mjs.map +1 -0
- package/dist/{dist-C7z6Dird.mjs → dist-BbKeSmsJ.mjs} +3 -3
- package/dist/{dist-C7z6Dird.mjs.map → dist-BbKeSmsJ.mjs.map} +1 -1
- package/dist/{dist-BxVsr24X.mjs → dist-CRQZ6dUM.mjs} +2 -2
- package/dist/{dist-BxVsr24X.mjs.map → dist-CRQZ6dUM.mjs.map} +1 -1
- package/dist/dist-CyFwRToz.mjs +3 -0
- package/dist/{dist-WHAEh05Y.mjs → dist-yxSyWJLs.mjs} +20 -4
- package/dist/{dist-WHAEh05Y.mjs.map → dist-yxSyWJLs.mjs.map} +1 -1
- package/dist/index.mjs +20 -10
- package/dist/index.mjs.map +1 -1
- package/dist/{maybe-auto-update-cyl5Rnot.mjs → maybe-auto-update-CRIaoRBQ.mjs} +2 -2
- package/dist/{maybe-auto-update-cyl5Rnot.mjs.map → maybe-auto-update-CRIaoRBQ.mjs.map} +1 -1
- package/dist/{run-package-manager-update-CT1F8EUI.mjs → run-package-manager-update-CEE3gsWX.mjs} +2 -2
- package/dist/{run-package-manager-update-CT1F8EUI.mjs.map → run-package-manager-update-CEE3gsWX.mjs.map} +1 -1
- package/package.json +1 -1
- package/dist/dist--hhBOtX7.mjs +0 -3
- package/dist/dist-D81Ms0uu.mjs.map +0 -1
package/dist/index.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { $ as CredentialInstanceRecordSchema, $n as
|
|
3
|
-
import { i as packProjectArtifact, n as withMcpReadClient, r as mergeFilteredArtifact, t as mapInParallelBatches } from "./dist-
|
|
4
|
-
import { C as getWebUrl, E as resolvePlatformUrlForWebUrl, S as getPlatformUrl, _ as isNewerVersion, a as formatReleaseAgeBlockMessage, b as getConfigDir, c as detectManagerFromLockfile, d as detectPackageManager, f as installDependencies$1, g as resolveCliRoot, h as resolvePackageManager, i as fetchLatestCliRelease, l as readCliVersion, m as resolveGithubPackagesToken, n as computeReleaseAgeRetryAfter, o as isReleaseAgeBlock, p as installPlaygroundDependencies, r as readPnpmMinimumReleaseAgeMinutes, s as detectCliInstall, t as runPackageManagerUpdate, u as buildPlaygroundWorkspace, v as createCliConfig, w as DEFAULT_PLATFORM_URL, x as getEffectiveApiTarget, y as getCliConfigDir } from "./run-package-manager-update-
|
|
2
|
+
import { $ as CredentialInstanceRecordSchema, $n as WorkflowCanvasSchema, $t as PresignProjectSourceRequestSchema, A as ConnectManagedServiceCredentialRequestSchema, An as TriggerRunDetailResponseSchema, At as ListCredentialsPageResponseSchema, B as CreateCustomAppResponseSchema, Bn as UpdateProjectMemberRequestSchema, Bt as ListProjectsResponseSchema, C as ChannelConnectionListResponseSchema, Cn as StartOAuthConnectionResultSchema, Cr as parseErrorResponse, D as ConfirmCheckoutRequestSchema, Dn as TriggerInvokeInputsSchema, Dr as resolveDocsMcpUrl, Dt as ListAppsResponseSchema, E as CompleteProjectArtifactResponseSchema, En as TriggerDetailResponseSchema, Er as resolveConnectAppSlug, Et as ListApiKeysResponseSchema, F as CreateCredentialInstanceBodySchema, Fn as UpdateCredentialRequestSchema, Ft as ListOrganizationsResponseSchema, G as CreateProjectResponseSchema, Gn as UploadProjectSourceResponseSchema, Gt as OrganizationSidebarBrandingPatchSchema, H as CreateOrganizationResponseSchema, Hn as UpdateProjectRequestSchema, Ht as ManagedServiceKindSchema, I as CreateCredentialsRequestSchema, In as UpdateManagedServiceCredentialRequestSchema, It as ListProjectDeploymentsResponseSchema, J as CredentialAssignmentListResponseSchema, Jn as UserAvatarSchema, Jt as PROJECT_REACHABILITY_REQUEST_TIMEOUT_MS, K as CreateSubscriptionCheckoutRequestSchema, Kn as UpsertGatewayAttachmentBodySchema, Kt as OrganizationSidebarBrandingSchema, L as CreateCredentialsResponseSchema, Ln as UpdateOrganizationMemberRequestSchema, Lt as ListProjectFilesResponseSchema, M as CreateApiKeyRequestSchema, Mn as UpdateAutoTopupRequestSchema, Mt as ListOrganizationInvitationsResponseSchema, N as CreateApiKeyResponseSchema, Nn as UpdateChannelBindingBodySchema, Nt as ListOrganizationMembersPageQuerySchema, O as ConfirmCheckoutResponseSchema, On as TriggerInvokeResponseSchema, Or as resolvePublicPlatformOrigin, Ot as ListChannelPlatformsResponseSchema, P as CreateBillingPortalRequestSchema, Pn as UpdateCredentialInstanceBodySchema, Pt as ListOrganizationMembersPageResponseSchema, Q as CredentialInstanceListResponseSchema, Qn as WorkflowCanvasRunSchema, Qt as PresignOrgLogoResponseSchema, R as CreateCreditsCheckoutRequestSchema, Rn as UpdateOrganizationMemberResponseSchema, Rt as ListProjectMembersResponseSchema, S as ChannelAccountListResponseSchema, Sn as StartOAuthConnectionInputSchema, Sr as parseAppSlug, St as InviteProjectMembersResponseSchema, T as ChannelDirectoryListResponseSchema, Tn as SubmitTeamRequestRequestSchema, Tt as ListAgentWorkspaceFilesResponseSchema, U as CreateProjectArtifactResponseSchema, Un as UpdateProjectSettingsRequestSchema, Ut as McpDiscoverResponseSchema, V as CreateOrganizationRequestSchema, Vn as UpdateProjectMemberResponseSchema, Vt as ManagedServiceCredentialSchema, W as CreateProjectRequestSchema, Wn as UploadProjectSourceManifestRequestSchema, Wt as OpenApiDiscoverResponseSchema, X as CredentialConsumerListQuerySchema, Xn as UserPreferencesSchema, Xt as PresignChatAttachmentResponseSchema, Y as CredentialAssignmentRecordSchema, Yn as UserPreferencesPatchSchema, Yt as PresignChatAttachmentRequestSchema, Z as CredentialConsumerListResponseSchema, Zn as WorkflowCanvasCredentialBindingsSchema, Zt as PresignOrgLogoRequestSchema, _ as BindChannelBodySchema, _n as SlugAvailabilityResponseSchema, _r as detectProjectPackageManagerFromSnapshot, _t as HistoryRunListQuerySchema, a as AgentSessionListResponseSchema, an as ProjectResponseSchema, ar as WorkflowRunResponseSchema, at as DownloadActiveProjectSourceResponseSchema, b as CatalogAppDetailResponseSchema, bn as StartMcpOAuthConnectionInputSchema, bt as InviteOrganizationMembersResponseSchema, c as AgentTriggerSummaryListResponseSchema, cn as PromptInputSchema, cr as WorkspaceTriggerDetailSchema, d as AutoTopupSummarySchema, dn as QueuedAgentPromptResponseSchema, dr as WorkspaceTriggerOverviewSchema, dt as GetCredentialResponseSchema, en as PresignProjectSourceResponseSchema, er as WorkflowRunDetailResponseSchema, f as BillingActivityResponseSchema, fn as QueuedRunResponseSchema, fr as WorkspaceTriggerRunListResponseSchema, ft as GetCustomAppResponseSchema, g as BillingUsageResponseSchema, gn as SkillSummaryListResponseSchema, gr as deriveCustomAppDisplay, gt as HistoryRunDetailResponseSchema, h as BillingSummaryResponseSchema, hn as SkillSummaryDetailResponseSchema, ht as HistoryRunCancelResponseSchema, i as AgentSessionDetailResponseSchema, in as ProjectReachabilityResponseSchema, ir as WorkflowRunListResponseSchema, it as DownloadActiveProjectArtifactResponseSchema, j as ConnectProvidersResponseSchema, jn as TriggerRunListResponseSchema, jt as ListManagedServiceCredentialsResponseSchema, k as ConnectAuthorizeUrlResponseSchema, kn as TriggerListResponseSchema, kr as slugifyAppName, kt as ListCredentialsPageQuerySchema, l as AppSlugAvailabilityResponseSchema, ln as PromptResponseSchema, lr as WorkspaceTriggerFileSchema, lt as GatewayAttachmentRecordSchema, m as BillingRedirectResponseSchema, mn as RecentResourceListResponseSchema, mr as buildConnectDeeplink, mt as HealthResponseSchema, n as AcceptOrganizationInvitationResponseSchema, nn as PresignUserAvatarResponseSchema, nr as WorkflowRunInputsPutBodySchema, nt as DOCS_SEARCH_TOOL, o as AgentSummaryDetailResponseSchema, on as ProjectSettingsResponseSchema, or as WorkflowSummaryDetailResponseSchema, ot as ErrorResponseSchema, p as BillingInvoiceUrlResponseSchema, pr as WorkspaceWorkflowOverviewSchema, pt as GraphqlDiscoverResponseSchema, q as CredentialAssignmentListQuerySchema, qn as UserAvatarPatchSchema, qt as PROJECT_PULL_STATE_RELATIVE_PATH, r as ActiveOrganizationResponseSchema, rn as ProjectPullStateSchema, rr as WorkflowRunInputsSchema, rt as DeclineOrganizationInvitationResponseSchema, s as AgentSummaryListResponseSchema, sn as ProjectSlugAvailabilityResponseSchema, sr as WorkflowSummaryListResponseSchema, st as ExecuteKeystrokeToolRequestSchema, t as ACTIVE_ORG_HEADER, tn as PresignUserAvatarRequestSchema, tr as WorkflowRunHooksResponseSchema, tt as DOCS_QUERY_TOOL, u as AssignCredentialBodySchema, ur as WorkspaceTriggerListResponseSchema, ut as GetAppCatalogEntryResponseSchema, v as CatalogActionDetailResponseSchema, vn as StartKeystrokeConnectionInputSchema, vr as isAcceptableInstallExit, vt as HistoryRunListResponseSchema, w as ChannelConnectionSchema, wn as SubmitMarketingContactRequestSchema, wt as ListAgentMemoryFilesResponseSchema, x as CatalogAppsPageResponseSchema, xn as StartMcpOAuthConnectionResultSchema, xt as InviteProjectMembersRequestSchema, y as CatalogActionsPageResponseSchema, yn as StartKeystrokeConnectionResultSchema, yr as listenPortFromPublicUrl, yt as InviteOrganizationMembersRequestSchema, z as CreateCustomAppRequestSchema, zn as UpdateOrganizationRequestSchema, zt as ListProjectMetricsResponseSchema } from "./dist-yxSyWJLs.mjs";
|
|
3
|
+
import { i as packProjectArtifact, n as withMcpReadClient, r as mergeFilteredArtifact, t as mapInParallelBatches } from "./dist-CRQZ6dUM.mjs";
|
|
4
|
+
import { C as getWebUrl, E as resolvePlatformUrlForWebUrl, S as getPlatformUrl, _ as isNewerVersion, a as formatReleaseAgeBlockMessage, b as getConfigDir, c as detectManagerFromLockfile, d as detectPackageManager, f as installDependencies$1, g as resolveCliRoot, h as resolvePackageManager, i as fetchLatestCliRelease, l as readCliVersion, m as resolveGithubPackagesToken, n as computeReleaseAgeRetryAfter, o as isReleaseAgeBlock, p as installPlaygroundDependencies, r as readPnpmMinimumReleaseAgeMinutes, s as detectCliInstall, t as runPackageManagerUpdate, u as buildPlaygroundWorkspace, v as createCliConfig, w as DEFAULT_PLATFORM_URL, x as getEffectiveApiTarget, y as getCliConfigDir } from "./run-package-manager-update-CEE3gsWX.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";
|
|
@@ -3929,6 +3929,16 @@ function createWorkflowsResource(http) {
|
|
|
3929
3929
|
throw await toPlatformError(error);
|
|
3930
3930
|
}
|
|
3931
3931
|
},
|
|
3932
|
+
/** Presign an upload for a file attached to a manual workflow run. */
|
|
3933
|
+
async presignAttachment(workflowId, input) {
|
|
3934
|
+
try {
|
|
3935
|
+
const payload = PresignChatAttachmentRequestSchema.parse(input);
|
|
3936
|
+
const data = await http.post(`api/workflows/${encodeURIComponent(workflowId)}/attachments/presign`, { json: payload }).json();
|
|
3937
|
+
return PresignChatAttachmentResponseSchema.parse(data);
|
|
3938
|
+
} catch (error) {
|
|
3939
|
+
throw await toPlatformError(error);
|
|
3940
|
+
}
|
|
3941
|
+
},
|
|
3932
3942
|
async cancelRun(runId) {
|
|
3933
3943
|
try {
|
|
3934
3944
|
const response = await http.post(`api/workflows/runs/${encodeURIComponent(runId)}/cancel`);
|
|
@@ -6760,7 +6770,7 @@ function registerBuildCommand(program) {
|
|
|
6760
6770
|
try {
|
|
6761
6771
|
const root = resolveProjectRoot(options.dir);
|
|
6762
6772
|
await ensureSdkCurrent(root);
|
|
6763
|
-
const { buildApp } = await import("./dist-
|
|
6773
|
+
const { buildApp } = await import("./dist-BbKeSmsJ.mjs");
|
|
6764
6774
|
await buildApp({ root });
|
|
6765
6775
|
process.stdout.write(`Built ${root}\n`);
|
|
6766
6776
|
} catch (error) {
|
|
@@ -6885,7 +6895,7 @@ async function sleep(ms) {
|
|
|
6885
6895
|
}
|
|
6886
6896
|
async function buildDeployArchive(client, root, projectId, filter) {
|
|
6887
6897
|
if (filter?.length) {
|
|
6888
|
-
const { buildFilteredApp } = await import("./dist-
|
|
6898
|
+
const { buildFilteredApp } = await import("./dist-BbKeSmsJ.mjs");
|
|
6889
6899
|
const filtered = await buildFilteredApp({
|
|
6890
6900
|
root,
|
|
6891
6901
|
filter,
|
|
@@ -6907,7 +6917,7 @@ async function buildDeployArchive(client, root, projectId, filter) {
|
|
|
6907
6917
|
sourceFiles: filtered.sourceFiles
|
|
6908
6918
|
};
|
|
6909
6919
|
}
|
|
6910
|
-
const { buildApp } = await import("./dist-
|
|
6920
|
+
const { buildApp } = await import("./dist-BbKeSmsJ.mjs");
|
|
6911
6921
|
const { sourceFiles } = await buildApp({
|
|
6912
6922
|
root,
|
|
6913
6923
|
collectSources: true,
|
|
@@ -7029,7 +7039,7 @@ function runtimeChildEnv(parentEnv, overrides) {
|
|
|
7029
7039
|
//#region src/project/bootstrap-run.ts
|
|
7030
7040
|
/** Node args + env for `@keystrokehq/build` bootstrap (shared by start + dev). */
|
|
7031
7041
|
async function resolveBootstrapRun(options) {
|
|
7032
|
-
const { resolveRuntimeBuildArtifact } = await import("./dist-
|
|
7042
|
+
const { resolveRuntimeBuildArtifact } = await import("./dist-BbKeSmsJ.mjs");
|
|
7033
7043
|
const loader = pathToFileURL(resolveRuntimeBuildArtifact(options.runtimeNodeModules, "dist/runtime-loader.mjs")).href;
|
|
7034
7044
|
const bootstrap = resolveRuntimeBuildArtifact(options.runtimeNodeModules, "dist/standalone-bootstrap.mjs");
|
|
7035
7045
|
const args = [`--import=${loader}`];
|
|
@@ -7178,7 +7188,7 @@ async function runDev(options) {
|
|
|
7178
7188
|
process.on("SIGINT", shutdown);
|
|
7179
7189
|
process.on("SIGTERM", shutdown);
|
|
7180
7190
|
try {
|
|
7181
|
-
const { watchApp } = await import("./dist-
|
|
7191
|
+
const { watchApp } = await import("./dist-BbKeSmsJ.mjs");
|
|
7182
7192
|
await watchApp({
|
|
7183
7193
|
root,
|
|
7184
7194
|
clean: false,
|
|
@@ -8220,7 +8230,7 @@ async function runStart(options) {
|
|
|
8220
8230
|
const apiPort = Number(new URL(serverUrl).port || 80);
|
|
8221
8231
|
const runtimeNodeModules = resolveCliRuntimeNodeModules(resolveCliRoot(import.meta.url));
|
|
8222
8232
|
ensureNativeDeps(runtimeNodeModules);
|
|
8223
|
-
const { buildApp } = await import("./dist-
|
|
8233
|
+
const { buildApp } = await import("./dist-BbKeSmsJ.mjs");
|
|
8224
8234
|
await buildApp({
|
|
8225
8235
|
root,
|
|
8226
8236
|
clean: false
|
|
@@ -9022,7 +9032,7 @@ function createProgram() {
|
|
|
9022
9032
|
return program;
|
|
9023
9033
|
}
|
|
9024
9034
|
async function runCli(argv) {
|
|
9025
|
-
const { maybeAutoUpdate } = await import("./maybe-auto-update-
|
|
9035
|
+
const { maybeAutoUpdate } = await import("./maybe-auto-update-CRIaoRBQ.mjs");
|
|
9026
9036
|
await maybeAutoUpdate(argv);
|
|
9027
9037
|
createProgram().parse(argv);
|
|
9028
9038
|
}
|