@keystrokehq/cli 0.1.170 → 0.1.172

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.
@@ -0,0 +1,4 @@
1
+ #!/usr/bin/env node
2
+ import "./dist-CnddVrzY.mjs";
3
+ import { _ as emitStoredRouteManifestForProject } from "./dist-B8ZXKNXj.mjs";
4
+ export { emitStoredRouteManifestForProject };
@@ -5948,6 +5948,41 @@ function zodToStoredJsonSchema(schema, options = {}) {
5948
5948
  }
5949
5949
  /** Thin modular project index (source of truth for emit hashes + shard paths). */
5950
5950
  const PROJECT_MANIFEST_REL_PATH = "dist/.keystroke/manifest.json";
5951
+ const TriggerTypeSchema = _enum([
5952
+ "webhook",
5953
+ "poll",
5954
+ "cron"
5955
+ ]);
5956
+ const TriggerTargetKindSchema = _enum(["workflow", "agent"]);
5957
+ const TriggerStatusSchema = _enum(["active", "disabled"]);
5958
+ const TriggerAttachmentStatusSchema = _enum(["active", "disabled"]);
5959
+ const TriggerListItemSchema = object({
5960
+ slug: string(),
5961
+ name: string().optional(),
5962
+ description: string().optional(),
5963
+ type: TriggerTypeSchema,
5964
+ status: TriggerStatusSchema.optional(),
5965
+ schedule: string().nullable().optional(),
5966
+ sourcePath: string().optional(),
5967
+ route: string().optional(),
5968
+ webhookUrl: string().url().optional(),
5969
+ targetKind: TriggerTargetKindSchema,
5970
+ workflowKey: string().optional(),
5971
+ agentKey: string().optional()
5972
+ });
5973
+ const TriggerListResponseSchema = object({ triggers: array(TriggerListItemSchema) });
5974
+ object({ endpoint: string().min(1).optional() });
5975
+ const TriggerDetailResponseSchema = TriggerListItemSchema;
5976
+ const TriggerAssignmentSchema = object({
5977
+ kind: TriggerTargetKindSchema,
5978
+ id: string(),
5979
+ slug: string(),
5980
+ name: string(),
5981
+ attachmentId: string(),
5982
+ attachmentSlug: string(),
5983
+ status: TriggerAttachmentStatusSchema,
5984
+ disabledAt: string().nullable()
5985
+ });
5951
5986
  /**
5952
5987
  * Structural workflow-canvas graph contract.
5953
5988
  *
@@ -6177,6 +6212,11 @@ const attachmentMetaSchema = record(string(), object({
6177
6212
  name: requiredDisplayTextSchema,
6178
6213
  description: requiredDisplayTextSchema
6179
6214
  }));
6215
+ const TriggerManifestAttachmentSchema = union([string(), object({
6216
+ id: string(),
6217
+ targetKind: TriggerTargetKindSchema,
6218
+ targetSlug: string()
6219
+ })]);
6180
6220
  const storedRouteManifestEntryV2Schema = discriminatedUnion("kind", [
6181
6221
  object({ kind: literal("health") }),
6182
6222
  object({
@@ -6235,7 +6275,7 @@ const storedRouteManifestEntryV2Schema = discriminatedUnion("kind", [
6235
6275
  object({
6236
6276
  kind: literal("trigger-webhook"),
6237
6277
  endpoint: string(),
6238
- attachmentIds: array(string()),
6278
+ attachmentIds: array(TriggerManifestAttachmentSchema),
6239
6279
  moduleFile: string(),
6240
6280
  /** sha256 of the trigger source file, baked at build time for overview change-detection. */
6241
6281
  sourceHash: string().optional(),
@@ -6251,7 +6291,7 @@ const storedRouteManifestEntryV2Schema = discriminatedUnion("kind", [
6251
6291
  object({
6252
6292
  kind: literal("trigger-poll"),
6253
6293
  attachmentId: string(),
6254
- attachmentIds: array(string()),
6294
+ attachmentIds: array(TriggerManifestAttachmentSchema),
6255
6295
  moduleFile: string(),
6256
6296
  sourceHash: string().optional(),
6257
6297
  schedule: string(),
@@ -6263,7 +6303,7 @@ const storedRouteManifestEntryV2Schema = discriminatedUnion("kind", [
6263
6303
  object({
6264
6304
  kind: literal("trigger-poll-group"),
6265
6305
  pollId: string(),
6266
- attachmentIds: array(string()),
6306
+ attachmentIds: array(TriggerManifestAttachmentSchema),
6267
6307
  moduleFile: string(),
6268
6308
  schedule: string(),
6269
6309
  /** IANA timezone for schedule wall-clock fields. When omitted, UTC. */
@@ -6272,7 +6312,7 @@ const storedRouteManifestEntryV2Schema = discriminatedUnion("kind", [
6272
6312
  object({
6273
6313
  kind: literal("cron-schedule"),
6274
6314
  attachmentId: string(),
6275
- attachmentIds: array(string()),
6315
+ attachmentIds: array(TriggerManifestAttachmentSchema),
6276
6316
  moduleFile: string(),
6277
6317
  sourceHash: string().optional(),
6278
6318
  schedule: string(),
@@ -6364,7 +6404,7 @@ object({ entries: array(discriminatedUnion("kind", [
6364
6404
  object({
6365
6405
  kind: literal("trigger-webhook"),
6366
6406
  endpoint: string(),
6367
- attachmentIds: array(string()),
6407
+ attachmentIds: array(TriggerManifestAttachmentSchema),
6368
6408
  moduleFile: string(),
6369
6409
  sourceHash: string().optional(),
6370
6410
  attachmentSchemas: attachmentSchemasSchema,
@@ -6374,7 +6414,7 @@ object({ entries: array(discriminatedUnion("kind", [
6374
6414
  object({
6375
6415
  kind: literal("trigger-poll"),
6376
6416
  attachmentId: string(),
6377
- attachmentIds: array(string()),
6417
+ attachmentIds: array(TriggerManifestAttachmentSchema),
6378
6418
  moduleFile: string(),
6379
6419
  sourceHash: string().optional(),
6380
6420
  schedule: string(),
@@ -6385,7 +6425,7 @@ object({ entries: array(discriminatedUnion("kind", [
6385
6425
  object({
6386
6426
  kind: literal("trigger-poll-group"),
6387
6427
  pollId: string(),
6388
- attachmentIds: array(string()),
6428
+ attachmentIds: array(TriggerManifestAttachmentSchema),
6389
6429
  moduleFile: string(),
6390
6430
  schedule: string(),
6391
6431
  timezone: string().optional()
@@ -6393,7 +6433,7 @@ object({ entries: array(discriminatedUnion("kind", [
6393
6433
  object({
6394
6434
  kind: literal("cron-schedule"),
6395
6435
  attachmentId: string(),
6396
- attachmentIds: array(string()),
6436
+ attachmentIds: array(TriggerManifestAttachmentSchema),
6397
6437
  moduleFile: string(),
6398
6438
  sourceHash: string().optional(),
6399
6439
  schedule: string(),
@@ -8276,41 +8316,6 @@ const TriggerRunDetailResponseSchema = object({
8276
8316
  agentSessions: array(TriggerRunAgentSessionDetailSchema),
8277
8317
  trace: TraceResponseSchema.nullable()
8278
8318
  });
8279
- const TriggerTypeSchema = _enum([
8280
- "webhook",
8281
- "poll",
8282
- "cron"
8283
- ]);
8284
- const TriggerTargetKindSchema = _enum(["workflow", "agent"]);
8285
- const TriggerStatusSchema = _enum(["active", "disabled"]);
8286
- const TriggerAttachmentStatusSchema = _enum(["active", "disabled"]);
8287
- const TriggerListItemSchema = object({
8288
- slug: string(),
8289
- name: string().optional(),
8290
- description: string().optional(),
8291
- type: TriggerTypeSchema,
8292
- status: TriggerStatusSchema.optional(),
8293
- schedule: string().nullable().optional(),
8294
- sourcePath: string().optional(),
8295
- route: string().optional(),
8296
- webhookUrl: string().url().optional(),
8297
- targetKind: TriggerTargetKindSchema,
8298
- workflowKey: string().optional(),
8299
- agentKey: string().optional()
8300
- });
8301
- const TriggerListResponseSchema = object({ triggers: array(TriggerListItemSchema) });
8302
- object({ endpoint: string().min(1).optional() });
8303
- const TriggerDetailResponseSchema = TriggerListItemSchema;
8304
- const TriggerAssignmentSchema = object({
8305
- kind: TriggerTargetKindSchema,
8306
- id: string(),
8307
- slug: string(),
8308
- name: string(),
8309
- attachmentId: string(),
8310
- attachmentSlug: string(),
8311
- status: TriggerAttachmentStatusSchema,
8312
- disabledAt: string().nullable()
8313
- });
8314
8319
  /** Status of the downstream run/session a dispatched fire produced. */
8315
8320
  const WorkspaceTriggerRunStatusSchema = _enum([
8316
8321
  "completed",
@@ -9788,4 +9793,4 @@ const WorkflowRunInputsPutBodySchema = record(string(), unknown());
9788
9793
  //#endregion
9789
9794
  export { DeclineOrganizationInvitationResponseSchema as $, ConfirmCheckoutResponseSchema as $i, STORED_JSON_SCHEMA_TARGET as $n, WorkflowRunResponseSchema as $r, McpDiscoverResponseSchema as $t, CreateApiKeyRequestSchema as A, NEVER as Aa, CredentialAssignmentListResponseSchema as Ai, ProjectGitRemoteResponseSchema as An, UpdateOrganizationMemberResponseSchema as Ar, ListAgentWorkspaceFilesResponseSchema as At, CreateOrganizationResponseSchema as B, LOCAL_PLATFORM_ORIGIN as Bi, PublicFormSubmitBodySchema as Bn, UserAvatarSchema as Br, ListOrganizationMembersPageQuerySchema as Bt, CompleteManagedDeployArtifactRequestSchema as C, record as Ca, parseStoredRouteManifest as Ci, PresignOrgLogoResponseSchema as Cn, TriggerRunDetailResponseSchema as Cr, HistoryRunListQuerySchema as Ct, ConnectAuthorizeUrlResponseSchema as D, url as Da, zodToStoredJsonSchema as Di, PresignUserAvatarResponseSchema as Dn, UpdateCredentialRequestSchema as Dr, InviteProjectMembersRequestSchema as Dt, CompleteProjectArtifactResponseSchema as E, unknown as Ea, slugifyAppName as Ei, PresignUserAvatarRequestSchema as En, UpdateCredentialInstanceBodySchema as Er, InviteOrganizationMembersResponseSchema as Et, CreateCustomAppRequestSchema as F, credentialInputSchema as Fi, ProjectSettingsResponseSchema as Fn, UpdateProjectSettingsRequestSchema as Fr, ListCredentialsPageResponseSchema as Ft, CreateSlackAppRequestSchema as G, PublicModelsResponseSchema as Gi, PublishedFormSchema as Gn, WorkflowCanvasSchema as Gr, ListProjectMembersResponseSchema as Gt, CreateProjectArtifactResponseSchema as H, CLIENT_CHANNEL_HEADER as Hi, PublishManagedDeployCandidateRequestSchema as Hn, UserPreferencesSchema as Hr, ListOrganizationsResponseSchema as Ht, CreateCustomAppResponseSchema as I, getOpenApiJsonSchema as Ii, ProjectSlugAvailabilityResponseSchema as In, UploadProjectSourceManifestRequestSchema as Ir, ListDraftFilesResponseSchema as It, CreateSlackChannelResponseSchema as J, BillingInvoiceUrlResponseSchema as Ji, RecentResourceListResponseSchema as Jn, WorkflowRunDetailResponseSchema as Jr, ListTemplatesResponseSchema as Jt, CreateSlackAppResponseSchema as K, AutoTopupSummarySchema as Ki, QueuedAgentPromptResponseSchema as Kn, WorkflowFormResponseSchema as Kr, ListProjectMetricsResponseSchema as Kt, CreateDraftCommitRequestSchema as L, normalizeCredentialList as Li, PromptInputSchema as Ln, UploadProjectSourceResponseSchema as Lr, ListManagedServiceCredentialsResponseSchema as Lt, CreateCredentialInstanceBodySchema as M, CredentialConsumerListQuerySchema as Mi, ProjectPullStateSchema as Mn, UpdateProjectMemberRequestSchema as Mr, ListAppsResponseSchema as Mt, CreateCredentialsRequestSchema as N, CredentialConsumerListResponseSchema as Ni, ProjectReachabilityResponseSchema as Nn, UpdateProjectMemberResponseSchema as Nr, ListChannelPlatformsResponseSchema as Nt, ConnectManagedServiceCredentialRequestSchema as O, datetime as Oa, AssignCredentialBodySchema as Oi, ProjectArtifactIndexSchema as On, UpdateManagedServiceCredentialRequestSchema as Or, InviteProjectMembersResponseSchema as Ot, CreateCredentialsResponseSchema as P, ExecuteKeystrokeToolRequestSchema as Pi, ProjectResponseSchema as Pn, UpdateProjectRequestSchema as Pr, ListCredentialsPageQuerySchema as Pt, DOCS_SEARCH_TOOL as Q, ConfirmCheckoutRequestSchema as Qi, SLACK_PERSONAL_APP_SLUG as Qn, WorkflowRunListResponseSchema as Qr, ManagedServiceKindSchema as Qt, CreateDraftDiffCommitRequestSchema as R, requiredDisplayTextSchema as Ri, PromptResponseSchema as Rn, UpsertGatewayAttachmentBodySchema as Rr, ListMcpAppToolsResponseSchema as Rt, ChannelDirectoryListResponseSchema as S, preprocess as Sa, parseSlackConnectFlow as Si, PresignOrgLogoRequestSchema as Sn, TriggerListResponseSchema as Sr, HistoryRunDetailResponseSchema as St, CompleteProjectArtifactRequestSchema as T, union as Ta, resolveDocsMcpUrl as Ti, PresignProjectSourceResponseSchema as Tn, UpdateChannelBindingBodySchema as Tr, InviteOrganizationMembersRequestSchema as Tt, CreateProjectRequestSchema as U, PresignChatAttachmentRequestSchema as Ui, PublishManagedDeployCandidateResponseSchema as Un, WorkflowCanvasCredentialBindingsSchema as Ur, ListProjectDeploymentsResponseSchema as Ut, CreateProjectArtifactRequestSchema as V, ACTIVE_ORG_HEADER as Vi, PublicFormSubmitResponseSchema as Vn, UserPreferencesPatchSchema as Vr, ListOrganizationMembersPageResponseSchema as Vt, CreateProjectResponseSchema as W, PresignChatAttachmentResponseSchema as Wi, PublishedFormListResponseSchema as Wn, WorkflowCanvasRunSchema as Wr, ListProjectFilesResponseSchema as Wt, CredentialInstanceRecordSchema as X, BillingSummaryResponseSchema as Xi, RenewManagedDeployUploadResponseSchema as Xn, WorkflowRunInputsPutBodySchema as Xr, ManagedDeployResourceKeySchema as Xt, CredentialInstanceListResponseSchema as Y, BillingRedirectResponseSchema as Yi, RenewManagedDeployUploadRequestSchema as Yn, WorkflowRunHooksResponseSchema as Yr, MANAGED_DEPLOY_REQUEST_TIMEOUT_MS as Yt, DOCS_QUERY_TOOL as Z, BillingUsageResponseSchema as Zi, SLACK_KEYSTROKE_APP_SLUG as Zn, WorkflowRunInputsSchema as Zr, ManagedServiceCredentialSchema as Zt, CatalogAppDetailResponseSchema as _, literal as _a, normalizeDocsSearchPaths as _i, PlatformAgentSessionListResponseSchema as _n, SubmitTeamRequestRequestSchema as _r, GraphqlDiscoverResponseSchema as _t, AgentSessionDetailResponseSchema as a, ZodIssueCode as aa, WorkspaceTriggerOverviewSchema as ai, PROJECT_DRAFT_DIFF_MAX_BYTES as an, SlackAppManifestRequestSchema as ar, DraftRevisionResponseSchema as at, ChannelConnectionListResponseSchema as b, object as ba, parseErrorResponse as bi, PresignCustomAppLogoRequestSchema as bn, TriggerInvokeInputsSchema as br, HeartbeatManagedDeployResponseSchema as bt, AgentSummaryListResponseSchema as c, _function as ca, buildAgentSlackDeeplink as ci, PROJECT_REACHABILITY_REQUEST_TIMEOUT_MS as cn, SlugAvailabilityResponseSchema as cr, DuplicateCredentialsResponseSchema as ct, BindAgentSlackAppBodySchema as d, array as da, detectProjectPackageManagerFromSnapshot as di, PROJECT_SOURCE_MAX_FILE_BYTES as dn, StartMcpOAuthConnectionInputSchema as dr, FormFieldConfigSchema as dt, CreateBillingPortalRequestSchema as ea, WorkflowSummaryDetailResponseSchema as ei, OpenApiDiscoverResponseSchema as en, SkillSummaryDetailResponseSchema as er, DownloadActiveProjectArtifactResponseSchema as et, BindChannelBodySchema as f, boolean as fa, gitPorcelainLineTouchesManagedDraftPublishPath as fi, PROJECT_SOURCE_MAX_TOTAL_BYTES as fn, StartMcpOAuthConnectionResultSchema as fr, GatewayAttachmentRecordSchema as ft, CatalogActionsPageResponseSchema as g, lazy as ga, isProbablyBinaryProjectSource as gi, PlatformAgentSessionDetailResponseSchema as gn, SubmitMarketingContactRequestSchema as gr, GetTemplateResponseSchema as gt, CatalogActionDetailResponseSchema as h, intersection as ha, isIgnoredProjectSourcePath as hi, PlatformAgentPromptResponseSchema as hn, SubmitAgentFeedbackRequestSchema as hr, GetCustomAppResponseSchema as ht, AgentEnvImageSnapshotResponseSchema as i, number as ia, WorkspaceTriggerListResponseSchema as ii, PROJECT_DRAFT_COMMIT_REQUEST_TIMEOUT_MS as in, SlackAppListResponseSchema as ir, DraftFileContentResponseSchema as it, CreateApiKeyResponseSchema as j, CredentialAssignmentRecordSchema as ji, ProjectGitStatusResponseSchema as jn, UpdateOrganizationRequestSchema as jr, ListApiKeysResponseSchema as jt, ConnectProvidersResponseSchema as k, safeParse$1 as ka, CredentialAssignmentListQuerySchema as ki, ProjectGitRemoteRequestSchema as kn, UpdateOrganizationMemberRequestSchema as kr, ListAgentMemoryFilesResponseSchema as kt, AgentTriggerSummaryListResponseSchema as l, _null as la, buildConnectDeeplink as li, PROJECT_SOURCE_IGNORED_DIRS as ln, StartKeystrokeConnectionInputSchema as lr, FinalizeCustomAppLogoRequestSchema as lt, CancelManagedDeployResponseSchema as m, discriminatedUnion as ma, isIgnoredProjectSourceFileName as mi, PlatformAgentPromptInputSchema as mn, StartOAuthConnectionResultSchema as mr, GetCredentialResponseSchema as mt, ActiveOrganizationResponseSchema as n, CreateSubscriptionCheckoutRequestSchema as na, WorkspaceTriggerDetailSchema as ni, OrganizationSidebarBrandingSchema as nn, SlackAgentMembershipsResponseSchema as nr, DraftCommitResponseSchema as nt, AgentSessionListResponseSchema as o, ZodType as oa, WorkspaceTriggerRunListResponseSchema as oi, PROJECT_MANIFEST_REL_PATH as on, SlackAppManifestResponseSchema as or, DraftUpdateEventSchema as ot, CancelManagedDeployRequestSchema as p, custom as pa, isAcceptableInstallExit as pi, PlatformAgentCancelResponseSchema as pn, StartOAuthConnectionInputSchema as pr, GetAppCatalogEntryResponseSchema as pt, CreateSlackChannelBodySchema as q, BillingActivityResponseSchema as qi, QueuedRunResponseSchema as qn, WorkflowFormUpsertBodySchema as qr, ListProjectsResponseSchema as qt, ActiveProjectSourceRevisionSchema as r, UpdateAutoTopupRequestSchema as ra, WorkspaceTriggerFileSchema as ri, PNPM_FROZEN_INSTALL_ARGS as rn, SlackAppInstallStartResponseSchema as rr, DraftConflictResponseSchema as rt, AgentSummaryDetailResponseSchema as s, _enum as sa, WorkspaceWorkflowOverviewSchema as si, PROJECT_PULL_STATE_RELATIVE_PATH as sn, SlackMembershipChannelBodySchema as sr, DuplicateCredentialRequestSchema as st, AcceptOrganizationInvitationResponseSchema as t, CreateCreditsCheckoutRequestSchema as ta, WorkflowSummaryListResponseSchema as ti, OrganizationSidebarBrandingPatchSchema as tn, SkillSummaryListResponseSchema as tr, DownloadActiveProjectSourceResponseSchema as tt, AppSlugAvailabilityResponseSchema as u, any as ua, deriveCustomAppDisplay as ui, PROJECT_SOURCE_MAX_FILES as un, StartKeystrokeConnectionResultSchema as ur, FinalizeCustomAppLogoResponseSchema as ut, CatalogAppsPageResponseSchema as v, looseObject as va, originFromPublicUrl as vi, PrepareManagedDeployRequestSchema as vn, TemplateFilesResponseSchema as vr, HealthResponseSchema as vt, CompleteManagedDeployArtifactResponseSchema as w, string as wa, resolveConnectAppSlug as wi, PresignProjectSourceRequestSchema as wn, TriggerRunListResponseSchema as wr, HistoryRunListResponseSchema as wt, ChannelConnectionSchema as x, optional as xa, parseProjectManifest as xi, PresignCustomAppLogoResponseSchema as xn, TriggerInvokeResponseSchema as xr, HistoryRunCancelResponseSchema as xt, ChannelAccountListResponseSchema as y, number$1 as ya, parseAppSlug as yi, PrepareManagedDeployResponseSchema as yn, TriggerDetailResponseSchema as yr, HeartbeatManagedDeployRequestSchema as yt, CreateOrganizationRequestSchema as z, DEFAULT_CLOUD_PLATFORM_ORIGIN as zi, PublicFormMetadataSchema as zn, UserAvatarPatchSchema as zr, ListOrganizationInvitationsResponseSchema as zt };
9790
9795
 
9791
- //# sourceMappingURL=dist-DaFb2eM_.mjs.map
9796
+ //# sourceMappingURL=dist-CnddVrzY.mjs.map