@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/index.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import { $ as QueuedRunResponseSchema, A as ListOrganizationInvitationsResponseSchema, B as PollRunResponseSchema, C as HealthResponseSchema, Ct as WorkflowSummaryDetailResponseSchema, D as HistoryRunListResponseSchema, Dt as originFromPublicUrl, E as HistoryRunListQuerySchema, F as ListProjectMetricsResponseSchema, G as PresignUserAvatarRequestSchema, H as PresignOrgLogoResponseSchema, I as ListProjectsResponseSchema, J as ProjectResponseSchema, K as PresignUserAvatarResponseSchema, L as OrganizationSidebarBrandingPatchSchema, M as ListOrganizationsResponseSchema, N as ListProjectDeploymentsResponseSchema, O as InviteOrganizationMembersRequestSchema, Ot as parseErrorResponse, P as ListProjectFilesResponseSchema, Q as QueuedAgentPromptResponseSchema, R as OrganizationSidebarBrandingSchema, S as GatewayAttachmentRecordSchema, St as WorkflowRunListResponseSchema, T as HistoryRunDetailResponseSchema, Tt as listenPortFromPublicUrl, U as PresignProjectSourceRequestSchema, V as PresignOrgLogoRequestSchema, W as PresignProjectSourceResponseSchema, X as PromptInputSchema, Y as ProjectSlugAvailabilityResponseSchema, Z as PromptResponseSchema, _ as CreateProjectResponseSchema, _t as UserAvatarPatchSchema, a as AgentSessionDetailResponseSchema, at as TriggerDetailResponseSchema, b as DeclineOrganizationInvitationResponseSchema, bt as UserPreferencesSchema, c as AgentSummaryListResponseSchema, ct as TriggerRunListResponseSchema, d as ConnectProvidersResponseSchema, dt as UpdateOrganizationMemberResponseSchema, et as ROUTE_MANIFEST_REL_PATH, f as CreateCredentialInstanceBodySchema, ft as UpdateOrganizationRequestSchema, g as CreateProjectRequestSchema, gt as UpsertGatewayAttachmentBodySchema, h as CreateProjectArtifactResponseSchema, ht as UploadProjectSourceResponseSchema, i as AgentListResponseSchema, it as SlugAvailabilityResponseSchema, j as ListOrganizationMembersResponseSchema, k as InviteOrganizationMembersResponseSchema, l as CompleteProjectArtifactResponseSchema, lt as UpdateCredentialInstanceBodySchema, m as CreateOrganizationResponseSchema, mt as UploadProjectSourceManifestRequestSchema, n as AcceptOrganizationInvitationResponseSchema, nt as SkillSummaryDetailResponseSchema, o as AgentSessionListResponseSchema, ot as TriggerListResponseSchema, p as CreateOrganizationRequestSchema, pt as UpdateProjectRequestSchema, q as ProjectReachabilityResponseSchema, r as ActiveOrganizationResponseSchema, rt as SkillSummaryListResponseSchema, s as AgentSummaryDetailResponseSchema, st as TriggerRunDetailResponseSchema, t as ACTIVE_ORG_HEADER, tt as RecentResourceListResponseSchema, u as ConnectAuthorizeUrlResponseSchema, ut as UpdateOrganizationMemberRequestSchema, v as CredentialInstanceListResponseSchema, vt as UserAvatarSchema, w as HistoryRunCancelResponseSchema, wt as WorkflowSummaryListResponseSchema, x as ErrorResponseSchema, xt as WorkflowRunDetailResponseSchema, y as CredentialInstanceRecordSchema, yt as UserPreferencesPatchSchema, z as PROJECT_REACHABILITY_REQUEST_TIMEOUT_MS } from "./dist-B3JNNLsy.mjs";
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
- async listProjectAgents(projectId) {
3492
- try {
3493
- const data = await http.get(`/api/projects/${encodeURIComponent(projectId)}/agents`).json();
3494
- return AgentListResponseSchema.parse(data).agents;
3495
- } catch (error) {
3496
- throw await toPlatformError(error);
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-BRv4QMNA.mjs");
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-BRv4QMNA.mjs");
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-BRv4QMNA.mjs");
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-BRv4QMNA.mjs");
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-BRv4QMNA.mjs");
8087
+ const { buildApp } = await import("./dist-Dswf_uJt.mjs");
8098
8088
  await buildApp({
8099
8089
  root,
8100
8090
  clean: false