@keystrokehq/cli 0.0.142 → 0.0.144
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-CUKz2Bnx.mjs → dist-DGjUjUJn.mjs} +2 -2
- package/dist/{dist-CUKz2Bnx.mjs.map → dist-DGjUjUJn.mjs.map} +1 -1
- package/dist/{dist-BRv4QMNA.mjs → dist-Dswf_uJt.mjs} +2 -2
- package/dist/{dist-BRv4QMNA.mjs.map → dist-Dswf_uJt.mjs.map} +1 -1
- package/dist/{dist-B3JNNLsy.mjs → dist-RyUAxTtn.mjs} +3 -3
- package/dist/{dist-B3JNNLsy.mjs.map → dist-RyUAxTtn.mjs.map} +1 -1
- package/dist/index.mjs +14 -24
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { $ as
|
|
2
|
+
import { $ as ROUTE_MANIFEST_REL_PATH, A as ListOrganizationMembersResponseSchema, B as PresignOrgLogoRequestSchema, C as HistoryRunCancelResponseSchema, Ct as WorkflowSummaryListResponseSchema, D as InviteOrganizationMembersRequestSchema, Dt as parseErrorResponse, E as HistoryRunListResponseSchema, Et as originFromPublicUrl, F as ListProjectsResponseSchema, G as PresignUserAvatarResponseSchema, H as PresignProjectSourceRequestSchema, I as OrganizationSidebarBrandingPatchSchema, J as ProjectSlugAvailabilityResponseSchema, K as ProjectReachabilityResponseSchema, L as OrganizationSidebarBrandingSchema, M as ListProjectDeploymentsResponseSchema, N as ListProjectFilesResponseSchema, O as InviteOrganizationMembersResponseSchema, P as ListProjectMetricsResponseSchema, Q as QueuedRunResponseSchema, R as PROJECT_REACHABILITY_REQUEST_TIMEOUT_MS, S as HealthResponseSchema, St as WorkflowSummaryDetailResponseSchema, T as HistoryRunListQuerySchema, U as PresignProjectSourceResponseSchema, V as PresignOrgLogoResponseSchema, W as PresignUserAvatarRequestSchema, X as PromptResponseSchema, Y as PromptInputSchema, Z as QueuedAgentPromptResponseSchema, _ as CredentialInstanceListResponseSchema, _t as UserAvatarSchema, a as AgentSessionListResponseSchema, at as TriggerListResponseSchema, b as ErrorResponseSchema, bt as WorkflowRunDetailResponseSchema, c as CompleteProjectArtifactResponseSchema, ct as UpdateCredentialInstanceBodySchema, d as CreateCredentialInstanceBodySchema, dt as UpdateOrganizationRequestSchema, et as RecentResourceListResponseSchema, f as CreateOrganizationRequestSchema, ft as UpdateProjectRequestSchema, g as CreateProjectResponseSchema, gt as UserAvatarPatchSchema, h as CreateProjectRequestSchema, ht as UpsertGatewayAttachmentBodySchema, i as AgentSessionDetailResponseSchema, it as TriggerDetailResponseSchema, j as ListOrganizationsResponseSchema, k as ListOrganizationInvitationsResponseSchema, l as ConnectAuthorizeUrlResponseSchema, lt as UpdateOrganizationMemberRequestSchema, m as CreateProjectArtifactResponseSchema, mt as UploadProjectSourceResponseSchema, n as AcceptOrganizationInvitationResponseSchema, nt as SkillSummaryListResponseSchema, o as AgentSummaryDetailResponseSchema, ot as TriggerRunDetailResponseSchema, p as CreateOrganizationResponseSchema, pt as UploadProjectSourceManifestRequestSchema, q as ProjectResponseSchema, r as ActiveOrganizationResponseSchema, rt as SlugAvailabilityResponseSchema, s as AgentSummaryListResponseSchema, st as TriggerRunListResponseSchema, t as ACTIVE_ORG_HEADER, tt as SkillSummaryDetailResponseSchema, u as ConnectProvidersResponseSchema, ut as UpdateOrganizationMemberResponseSchema, v as CredentialInstanceRecordSchema, vt as UserPreferencesPatchSchema, w as HistoryRunDetailResponseSchema, wt as listenPortFromPublicUrl, x as GatewayAttachmentRecordSchema, xt as WorkflowRunListResponseSchema, y as DeclineOrganizationInvitationResponseSchema, yt as UserPreferencesSchema, z as PollRunResponseSchema } from "./dist-RyUAxTtn.mjs";
|
|
3
3
|
import { t as walkProject } from "./walk-project-171B4cvO-DJy3qZKd.mjs";
|
|
4
4
|
import { a as installPlaygroundDependencies, i as installDependencies, n as buildPlaygroundWorkspace, o as resolvePackageManager, s as resolveCliRoot, t as readCliVersion } from "./version-DESgLEkE.mjs";
|
|
5
5
|
import { createRequire } from "node:module";
|
|
@@ -3487,25 +3487,15 @@ function createDeploymentsResource(http) {
|
|
|
3487
3487
|
}
|
|
3488
3488
|
function createGatewayAttachmentsResource(http) {
|
|
3489
3489
|
const projectPrefix = (projectId) => `/api/projects/${encodeURIComponent(projectId)}/gateways/slack/attachments`;
|
|
3490
|
-
return {
|
|
3491
|
-
|
|
3492
|
-
|
|
3493
|
-
|
|
3494
|
-
|
|
3495
|
-
|
|
3496
|
-
|
|
3497
|
-
}
|
|
3498
|
-
},
|
|
3499
|
-
async upsertSlackAttachment(projectId, channelId, body) {
|
|
3500
|
-
const payload = UpsertGatewayAttachmentBodySchema.parse(body);
|
|
3501
|
-
try {
|
|
3502
|
-
const data = await http.put(`${projectPrefix(projectId)}/${encodeURIComponent(channelId)}`, { json: payload }).json();
|
|
3503
|
-
return GatewayAttachmentRecordSchema.parse(data);
|
|
3504
|
-
} catch (error) {
|
|
3505
|
-
throw await toPlatformError(error);
|
|
3506
|
-
}
|
|
3490
|
+
return { async upsertSlackAttachment(projectId, channelId, body) {
|
|
3491
|
+
const payload = UpsertGatewayAttachmentBodySchema.parse(body);
|
|
3492
|
+
try {
|
|
3493
|
+
const data = await http.put(`${projectPrefix(projectId)}/${encodeURIComponent(channelId)}`, { json: payload }).json();
|
|
3494
|
+
return GatewayAttachmentRecordSchema.parse(data);
|
|
3495
|
+
} catch (error) {
|
|
3496
|
+
throw await toPlatformError(error);
|
|
3507
3497
|
}
|
|
3508
|
-
};
|
|
3498
|
+
} };
|
|
3509
3499
|
}
|
|
3510
3500
|
function createProjectFilesResource(http) {
|
|
3511
3501
|
return {
|
|
@@ -7132,7 +7122,7 @@ function registerBuildCommand(program) {
|
|
|
7132
7122
|
program.command("build").description("Build the keystroke project for production").option("--dir <path>", "Project directory", process.cwd()).action(async (options) => {
|
|
7133
7123
|
try {
|
|
7134
7124
|
const root = resolveProjectRoot(options.dir);
|
|
7135
|
-
const { buildApp } = await import("./dist-
|
|
7125
|
+
const { buildApp } = await import("./dist-Dswf_uJt.mjs");
|
|
7136
7126
|
await buildApp({ root });
|
|
7137
7127
|
process.stdout.write(`Built ${root}\n`);
|
|
7138
7128
|
} catch (error) {
|
|
@@ -7229,7 +7219,7 @@ async function runDeploy(options) {
|
|
|
7229
7219
|
const client = createCliPlatformClient(config);
|
|
7230
7220
|
let source;
|
|
7231
7221
|
if (!options.skipBuild) {
|
|
7232
|
-
const { buildApp } = await import("./dist-
|
|
7222
|
+
const { buildApp } = await import("./dist-Dswf_uJt.mjs");
|
|
7233
7223
|
source = { files: (await buildApp({
|
|
7234
7224
|
root,
|
|
7235
7225
|
collectSources: true,
|
|
@@ -7329,7 +7319,7 @@ function runtimeChildEnv(parentEnv, overrides) {
|
|
|
7329
7319
|
//#region src/project/bootstrap-run.ts
|
|
7330
7320
|
/** Node args + env for `@keystrokehq/build` bootstrap (shared by start + dev). */
|
|
7331
7321
|
async function resolveBootstrapRun(options) {
|
|
7332
|
-
const { resolveRuntimeBuildArtifact } = await import("./dist-
|
|
7322
|
+
const { resolveRuntimeBuildArtifact } = await import("./dist-Dswf_uJt.mjs");
|
|
7333
7323
|
const loader = pathToFileURL(resolveRuntimeBuildArtifact(options.runtimeNodeModules, "dist/runtime-loader.mjs")).href;
|
|
7334
7324
|
const bootstrap = resolveRuntimeBuildArtifact(options.runtimeNodeModules, "dist/bootstrap.mjs");
|
|
7335
7325
|
const args = [`--import=${loader}`];
|
|
@@ -7479,7 +7469,7 @@ async function runDev(options) {
|
|
|
7479
7469
|
process.on("SIGINT", shutdown);
|
|
7480
7470
|
process.on("SIGTERM", shutdown);
|
|
7481
7471
|
try {
|
|
7482
|
-
const { watchApp } = await import("./dist-
|
|
7472
|
+
const { watchApp } = await import("./dist-Dswf_uJt.mjs");
|
|
7483
7473
|
await watchApp({
|
|
7484
7474
|
root,
|
|
7485
7475
|
clean: false,
|
|
@@ -8094,7 +8084,7 @@ async function runStart(options) {
|
|
|
8094
8084
|
const apiPort = Number(new URL(serverUrl).port || 80);
|
|
8095
8085
|
const runtimeNodeModules = resolveCliRuntimeNodeModules(resolveCliRoot(import.meta.url));
|
|
8096
8086
|
ensureNativeDeps(runtimeNodeModules);
|
|
8097
|
-
const { buildApp } = await import("./dist-
|
|
8087
|
+
const { buildApp } = await import("./dist-Dswf_uJt.mjs");
|
|
8098
8088
|
await buildApp({
|
|
8099
8089
|
root,
|
|
8100
8090
|
clean: false
|