@keystrokehq/cli 0.1.15 → 0.1.17

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.
Files changed (46) hide show
  1. package/dist/{dist-BnIugffH.mjs → dist-BRA_tOTT.mjs} +47 -5
  2. package/dist/{dist-BnIugffH.mjs.map → dist-BRA_tOTT.mjs.map} +1 -1
  3. package/dist/dist-BZBvPUyu.mjs +3 -0
  4. package/dist/{dist-PBiyADK0.mjs → dist-C6KqfgGN.mjs} +3 -3
  5. package/dist/{dist-PBiyADK0.mjs.map → dist-C6KqfgGN.mjs.map} +1 -1
  6. package/dist/{dist-B4pkCJsM.mjs → dist-DeRE4uJW.mjs} +2 -2
  7. package/dist/dist-DeRE4uJW.mjs.map +1 -0
  8. package/dist/{dist-BW3AMCud.mjs → dist-E9nHDRnf.mjs} +3 -3
  9. package/dist/{dist-BW3AMCud.mjs.map → dist-E9nHDRnf.mjs.map} +1 -1
  10. package/dist/index.mjs +27 -15
  11. package/dist/index.mjs.map +1 -1
  12. package/dist/{maybe-auto-update-BIarxWf3.mjs → maybe-auto-update-douMZFWJ.mjs} +2 -2
  13. package/dist/{maybe-auto-update-BIarxWf3.mjs.map → maybe-auto-update-douMZFWJ.mjs.map} +1 -1
  14. package/dist/skills-bundle/_AGENTS.mcp.md +10 -3
  15. package/dist/skills-bundle/_AGENTS.md +61 -70
  16. package/dist/skills-bundle/skills/keystroke-actions/SKILL.md +60 -12
  17. package/dist/skills-bundle/skills/keystroke-actions/references/catalog-and-imports.md +32 -3
  18. package/dist/skills-bundle/skills/keystroke-agents/SKILL.md +50 -8
  19. package/dist/skills-bundle/skills/keystroke-agents/references/models.md +11 -13
  20. package/dist/skills-bundle/skills/keystroke-agents/references/tools-mcp-codemode.md +45 -3
  21. package/dist/skills-bundle/skills/keystroke-agents/references/workflows-and-testing.md +1 -1
  22. package/dist/skills-bundle/skills/keystroke-apps/SKILL.md +26 -13
  23. package/dist/skills-bundle/skills/keystroke-apps/references/cli-and-catalog.md +47 -16
  24. package/dist/skills-bundle/skills/keystroke-channels/SKILL.md +66 -0
  25. package/dist/skills-bundle/skills/keystroke-channels/references/slack-setup.md +41 -0
  26. package/dist/skills-bundle/skills/keystroke-cli/SKILL.md +41 -93
  27. package/dist/skills-bundle/skills/keystroke-deploy/SKILL.md +10 -9
  28. package/dist/skills-bundle/skills/keystroke-deploy/references/build-and-full-deploy.md +3 -1
  29. package/dist/skills-bundle/skills/keystroke-deploy/references/filtered-deploy.md +3 -2
  30. package/dist/skills-bundle/skills/keystroke-deploy/references/wip-ignore.md +5 -2
  31. package/dist/skills-bundle/skills/keystroke-files/SKILL.md +12 -4
  32. package/dist/skills-bundle/skills/keystroke-skills/SKILL.md +7 -2
  33. package/dist/skills-bundle/skills/keystroke-triggers/SKILL.md +30 -17
  34. package/dist/skills-bundle/skills/keystroke-workflows/SKILL.md +27 -12
  35. package/dist/skills-bundle/skills/keystroke-workflows/references/authoring.md +116 -4
  36. package/dist/skills-bundle/skills/keystroke-workflows/references/testing.md +17 -9
  37. package/dist/templates/hello-world/README.md +19 -8
  38. package/dist/templates/hello-world/src/workflows/greeting.test.ts +1 -1
  39. package/dist/{version-DScIhncv.mjs → version-CJd1mEoq.mjs} +2 -2
  40. package/dist/{version-DScIhncv.mjs.map → version-CJd1mEoq.mjs.map} +1 -1
  41. package/package.json +2 -2
  42. package/dist/dist-B4pkCJsM.mjs.map +0 -1
  43. package/dist/dist-c4WWC9_F.mjs +0 -3
  44. package/dist/skills-bundle/skills/keystroke-cli/references/api-targets.md +0 -87
  45. package/dist/skills-bundle/skills/keystroke-gateways/SKILL.md +0 -43
  46. package/dist/skills-bundle/skills/keystroke-gateways/references/slack-setup.md +0 -27
@@ -6506,6 +6506,43 @@ function parseErrorResponse(body) {
6506
6506
  message: messageOnly.data.message
6507
6507
  };
6508
6508
  }
6509
+ const CHAT_ATTACHMENT_MAX_BYTES = 10 * 1024 * 1024;
6510
+ [
6511
+ {
6512
+ mediaType: "image/png",
6513
+ ext: "png"
6514
+ },
6515
+ {
6516
+ mediaType: "image/jpeg",
6517
+ ext: "jpg"
6518
+ },
6519
+ {
6520
+ mediaType: "image/webp",
6521
+ ext: "webp"
6522
+ },
6523
+ {
6524
+ mediaType: "image/gif",
6525
+ ext: "gif"
6526
+ },
6527
+ {
6528
+ mediaType: "application/pdf",
6529
+ ext: "pdf"
6530
+ }
6531
+ ].map((type) => type.mediaType);
6532
+ const ChatAttachmentInputSchema = object({
6533
+ storageKey: string().min(1),
6534
+ mediaType: string().min(1),
6535
+ filename: string().optional()
6536
+ });
6537
+ const PresignChatAttachmentRequestSchema = object({
6538
+ contentType: string().min(1),
6539
+ filename: string().min(1),
6540
+ size: number$1().int().positive().max(CHAT_ATTACHMENT_MAX_BYTES)
6541
+ });
6542
+ const PresignChatAttachmentResponseSchema = object({
6543
+ uploadUrl: string().url(),
6544
+ storageKey: string().min(1)
6545
+ });
6509
6546
  const CredentialRunContextSchema = object({
6510
6547
  orgId: string().min(1).optional(),
6511
6548
  projectId: string().min(1).optional(),
@@ -6523,12 +6560,13 @@ const ThinkingLevelSchema = _enum([
6523
6560
  "xhigh"
6524
6561
  ]);
6525
6562
  const PromptInputSchema = object({
6526
- message: string().min(1),
6563
+ message: string(),
6527
6564
  sessionId: string().min(1).optional(),
6528
6565
  subscriptionId: string().min(1).optional(),
6529
6566
  context: CredentialRunContextSchema.optional(),
6530
- thinkingLevel: ThinkingLevelSchema.optional()
6531
- });
6567
+ thinkingLevel: ThinkingLevelSchema.optional(),
6568
+ files: array(ChatAttachmentInputSchema).max(5).optional()
6569
+ }).refine((data) => data.message.trim().length > 0 || (data.files?.length ?? 0) > 0, { message: "message or files is required" });
6532
6570
  const PromptResponseSchema = object({
6533
6571
  sessionId: string(),
6534
6572
  messages: array(record(string(), unknown())),
@@ -7557,6 +7595,10 @@ const AgentSummarySchema = object({
7557
7595
  description: string().optional(),
7558
7596
  sourcePath: string().min(1).optional(),
7559
7597
  model: string().optional(),
7598
+ capabilities: object({
7599
+ images: boolean(),
7600
+ files: boolean()
7601
+ }).optional(),
7560
7602
  systemPrompt: string().optional(),
7561
7603
  toolCount: optionalCount,
7562
7604
  credentialCount: optionalCount,
@@ -7702,6 +7744,6 @@ const ListAgentWorkspaceFilesResponseSchema = object({ files: array(object({
7702
7744
  path: string().min(1)
7703
7745
  })) });
7704
7746
  //#endregion
7705
- export { HistoryRunCancelResponseSchema as $, boolean as $n, StartOAuthConnectionResultSchema as $t, CreateCustomAppRequestSchema as A, WorkspaceTriggerListResponseSchema as An, PresignProjectSourceRequestSchema as At, CredentialConsumerListQuerySchema as B, parseAppSlug as Bn, PromptResponseSchema as Bt, ConnectAuthorizeUrlResponseSchema as C, WorkflowRunDetailResponseSchema as Cn, OrganizationSidebarBrandingPatchSchema as Ct, CreateCredentialInstanceBodySchema as D, WorkflowSummaryListResponseSchema as Dn, PollRunResponseSchema as Dt, CreateApiKeyResponseSchema as E, WorkflowSummaryDetailResponseSchema as En, PROJECT_REACHABILITY_REQUEST_TIMEOUT_MS as Et, CreateProjectRequestSchema as F, detectProjectPackageManagerFromSnapshot as Fn, ProjectReachabilityResponseSchema as Ft, DownloadActiveProjectArtifactResponseSchema as G, slugifyAppName as Gn, SkillSummaryDetailResponseSchema as Gt, CredentialInstanceListResponseSchema as H, parseStoredRouteManifest as Hn, QueuedRunResponseSchema as Ht, CreateProjectResponseSchema as I, isAcceptableInstallExit as In, ProjectResponseSchema as It, GatewayAttachmentRecordSchema as J, _enum as Jn, StartKeystrokeConnectionInputSchema as Jt, DownloadActiveProjectSourceResponseSchema as K, number as Kn, SkillSummaryListResponseSchema as Kt, CredentialAssignmentListQuerySchema as L, listenPortFromPublicUrl as Ln, ProjectSettingsResponseSchema as Lt, CreateOrganizationRequestSchema as M, WorkspaceTriggerRunListResponseSchema as Mn, PresignUserAvatarRequestSchema as Mt, CreateOrganizationResponseSchema as N, buildConnectDeeplink as Nn, PresignUserAvatarResponseSchema as Nt, CreateCredentialsRequestSchema as O, WorkspaceTriggerDetailSchema as On, PresignOrgLogoRequestSchema as Ot, CreateProjectArtifactResponseSchema as P, credentialInputSchema as Pn, ProjectPullStateSchema as Pt, HealthResponseSchema as Q, array as Qn, StartOAuthConnectionInputSchema as Qt, CredentialAssignmentListResponseSchema as R, normalizeCredentialList as Rn, ProjectSlugAvailabilityResponseSchema as Rt, CompleteProjectArtifactResponseSchema as S, UserPreferencesSchema as Sn, OpenApiDiscoverResponseSchema as St, CreateApiKeyRequestSchema as T, WorkflowRunListResponseSchema as Tn, PROJECT_PULL_STATE_RELATIVE_PATH as Tt, CredentialInstanceRecordSchema as U, resolveConnectAppSlug as Un, ROUTE_MANIFEST_REL_PATH as Ut, CredentialConsumerListResponseSchema as V, parseErrorResponse as Vn, QueuedAgentPromptResponseSchema as Vt, DeclineOrganizationInvitationResponseSchema as W, resolvePublicPlatformOrigin as Wn, RecentResourceListResponseSchema as Wt, GetCustomAppResponseSchema as X, _null as Xn, StartMcpOAuthConnectionInputSchema as Xt, GetCredentialResponseSchema as Y, _function as Yn, StartKeystrokeConnectionResultSchema as Yt, GraphqlDiscoverResponseSchema as Z, any as Zn, StartMcpOAuthConnectionResultSchema as Zt, ChannelAccountListResponseSchema as _, UploadProjectSourceResponseSchema as _n, ListProjectFilesResponseSchema as _t, AgentSessionDetailResponseSchema as a, TriggerRunListResponseSchema as an, number$1 as ar, InviteProjectMembersRequestSchema as at, ChannelDirectoryListResponseSchema as b, UserAvatarSchema as bn, ListProjectsResponseSchema as bt, AgentSummaryListResponseSchema as c, UpdateCredentialRequestSchema as cn, preprocess as cr, ListAgentMemoryFilesResponseSchema as ct, AssignCredentialBodySchema as d, UpdateOrganizationRequestSchema as dn, union as dr, ListAppsResponseSchema as dt, SubmitMarketingContactRequestSchema as en, custom as er, HistoryRunDetailResponseSchema as et, BindChannelBodySchema as f, UpdateProjectMemberRequestSchema as fn, unknown as fr, ListCredentialsResponseSchema as ft, CatalogAppsPageResponseSchema as g, UploadProjectSourceManifestRequestSchema as gn, NEVER as gr, ListProjectDeploymentsResponseSchema as gt, CatalogAppDetailResponseSchema as h, UpdateProjectSettingsRequestSchema as hn, toJSONSchema as hr, ListOrganizationsResponseSchema as ht, AgentSessionChatStateResponseSchema as i, TriggerRunDetailResponseSchema as in, looseObject as ir, InviteOrganizationMembersResponseSchema as it, CreateCustomAppResponseSchema as j, WorkspaceTriggerOverviewSchema as jn, PresignProjectSourceResponseSchema as jt, CreateCredentialsResponseSchema as k, WorkspaceTriggerFileSchema as kn, PresignOrgLogoResponseSchema as kt, AgentTriggerSummaryListResponseSchema as l, UpdateOrganizationMemberRequestSchema as ln, record as lr, ListAgentWorkspaceFilesResponseSchema as lt, CatalogActionsPageResponseSchema as m, UpdateProjectRequestSchema as mn, datetime as mr, ListOrganizationMembersResponseSchema as mt, AcceptOrganizationInvitationResponseSchema as n, TriggerDetailResponseSchema as nn, intersection as nr, HistoryRunListResponseSchema as nt, AgentSessionListResponseSchema as o, UpdateChannelBindingBodySchema as on, object as or, InviteProjectMembersResponseSchema as ot, CatalogActionDetailResponseSchema as p, UpdateProjectMemberResponseSchema as pn, url as pr, ListOrganizationInvitationsResponseSchema as pt, ErrorResponseSchema as q, ZodType as qn, SlugAvailabilityResponseSchema as qt, ActiveOrganizationResponseSchema as r, TriggerListResponseSchema as rn, literal as rr, InviteOrganizationMembersRequestSchema as rt, AgentSummaryDetailResponseSchema as s, UpdateCredentialInstanceBodySchema as sn, optional as sr, LOCAL_PLATFORM_ORIGIN as st, ACTIVE_ORG_HEADER as t, SubmitTeamRequestRequestSchema as tn, discriminatedUnion as tr, HistoryRunListQuerySchema as tt, AppSlugAvailabilityResponseSchema as u, UpdateOrganizationMemberResponseSchema as un, string as ur, ListApiKeysResponseSchema as ut, ChannelConnectionListResponseSchema as v, UpsertGatewayAttachmentBodySchema as vn, ListProjectMembersResponseSchema as vt, ConnectProvidersResponseSchema as w, WorkflowRunHooksResponseSchema as wn, OrganizationSidebarBrandingSchema as wt, ChannelPlatformSchema as x, UserPreferencesPatchSchema as xn, McpDiscoverResponseSchema as xt, ChannelConnectionSchema as y, UserAvatarPatchSchema as yn, ListProjectMetricsResponseSchema as yt, CredentialAssignmentRecordSchema as z, originFromPublicUrl as zn, PromptInputSchema as zt };
7747
+ export { HistoryRunCancelResponseSchema as $, any as $n, StartMcpOAuthConnectionResultSchema as $t, CreateCustomAppRequestSchema as A, WorkspaceTriggerDetailSchema as An, PresignOrgLogoRequestSchema as At, CredentialConsumerListQuerySchema as B, normalizeCredentialList as Bn, ProjectSlugAvailabilityResponseSchema as Bt, ConnectAuthorizeUrlResponseSchema as C, UserPreferencesPatchSchema as Cn, OrganizationSidebarBrandingPatchSchema as Ct, CreateCredentialInstanceBodySchema as D, WorkflowRunListResponseSchema as Dn, PollRunResponseSchema as Dt, CreateApiKeyResponseSchema as E, WorkflowRunHooksResponseSchema as En, PROJECT_REACHABILITY_REQUEST_TIMEOUT_MS as Et, CreateProjectRequestSchema as F, buildConnectDeeplink as Fn, PresignUserAvatarResponseSchema as Ft, DownloadActiveProjectArtifactResponseSchema as G, resolveConnectAppSlug as Gn, ROUTE_MANIFEST_REL_PATH as Gt, CredentialInstanceListResponseSchema as H, parseAppSlug as Hn, PromptResponseSchema as Ht, CreateProjectResponseSchema as I, credentialInputSchema as In, ProjectPullStateSchema as It, GatewayAttachmentRecordSchema as J, number as Jn, SkillSummaryListResponseSchema as Jt, DownloadActiveProjectSourceResponseSchema as K, resolvePublicPlatformOrigin as Kn, RecentResourceListResponseSchema as Kt, CredentialAssignmentListQuerySchema as L, detectProjectPackageManagerFromSnapshot as Ln, ProjectReachabilityResponseSchema as Lt, CreateOrganizationRequestSchema as M, WorkspaceTriggerListResponseSchema as Mn, PresignProjectSourceRequestSchema as Mt, CreateOrganizationResponseSchema as N, WorkspaceTriggerOverviewSchema as Nn, PresignProjectSourceResponseSchema as Nt, CreateCredentialsRequestSchema as O, WorkflowSummaryDetailResponseSchema as On, PresignChatAttachmentRequestSchema as Ot, CreateProjectArtifactResponseSchema as P, WorkspaceTriggerRunListResponseSchema as Pn, PresignUserAvatarRequestSchema as Pt, HealthResponseSchema as Q, _null as Qn, StartMcpOAuthConnectionInputSchema as Qt, CredentialAssignmentListResponseSchema as R, isAcceptableInstallExit as Rn, ProjectResponseSchema as Rt, CompleteProjectArtifactResponseSchema as S, UserAvatarSchema as Sn, OpenApiDiscoverResponseSchema as St, CreateApiKeyRequestSchema as T, WorkflowRunDetailResponseSchema as Tn, PROJECT_PULL_STATE_RELATIVE_PATH as Tt, CredentialInstanceRecordSchema as U, parseErrorResponse as Un, QueuedAgentPromptResponseSchema as Ut, CredentialConsumerListResponseSchema as V, originFromPublicUrl as Vn, PromptInputSchema as Vt, DeclineOrganizationInvitationResponseSchema as W, parseStoredRouteManifest as Wn, QueuedRunResponseSchema as Wt, GetCustomAppResponseSchema as X, _enum as Xn, StartKeystrokeConnectionInputSchema as Xt, GetCredentialResponseSchema as Y, ZodType as Yn, SlugAvailabilityResponseSchema as Yt, GraphqlDiscoverResponseSchema as Z, _function as Zn, StartKeystrokeConnectionResultSchema as Zt, ChannelAccountListResponseSchema as _, UpdateProjectSettingsRequestSchema as _n, toJSONSchema as _r, ListProjectFilesResponseSchema as _t, AgentSessionDetailResponseSchema as a, TriggerListResponseSchema as an, literal as ar, InviteProjectMembersRequestSchema as at, ChannelDirectoryListResponseSchema as b, UpsertGatewayAttachmentBodySchema as bn, ListProjectsResponseSchema as bt, AgentSummaryListResponseSchema as c, UpdateChannelBindingBodySchema as cn, object as cr, ListAgentMemoryFilesResponseSchema as ct, AssignCredentialBodySchema as d, UpdateOrganizationMemberRequestSchema as dn, record as dr, ListAppsResponseSchema as dt, StartOAuthConnectionInputSchema as en, array as er, HistoryRunDetailResponseSchema as et, BindChannelBodySchema as f, UpdateOrganizationMemberResponseSchema as fn, string as fr, ListCredentialsResponseSchema as ft, CatalogAppsPageResponseSchema as g, UpdateProjectRequestSchema as gn, datetime as gr, ListProjectDeploymentsResponseSchema as gt, CatalogAppDetailResponseSchema as h, UpdateProjectMemberResponseSchema as hn, url as hr, ListOrganizationsResponseSchema as ht, AgentSessionChatStateResponseSchema as i, TriggerDetailResponseSchema as in, intersection as ir, InviteOrganizationMembersResponseSchema as it, CreateCustomAppResponseSchema as j, WorkspaceTriggerFileSchema as jn, PresignOrgLogoResponseSchema as jt, CreateCredentialsResponseSchema as k, WorkflowSummaryListResponseSchema as kn, PresignChatAttachmentResponseSchema as kt, AgentTriggerSummaryListResponseSchema as l, UpdateCredentialInstanceBodySchema as ln, optional as lr, ListAgentWorkspaceFilesResponseSchema as lt, CatalogActionsPageResponseSchema as m, UpdateProjectMemberRequestSchema as mn, unknown as mr, ListOrganizationMembersResponseSchema as mt, AcceptOrganizationInvitationResponseSchema as n, SubmitMarketingContactRequestSchema as nn, custom as nr, HistoryRunListResponseSchema as nt, AgentSessionListResponseSchema as o, TriggerRunDetailResponseSchema as on, looseObject as or, InviteProjectMembersResponseSchema as ot, CatalogActionDetailResponseSchema as p, UpdateOrganizationRequestSchema as pn, union as pr, ListOrganizationInvitationsResponseSchema as pt, ErrorResponseSchema as q, slugifyAppName as qn, SkillSummaryDetailResponseSchema as qt, ActiveOrganizationResponseSchema as r, SubmitTeamRequestRequestSchema as rn, discriminatedUnion as rr, InviteOrganizationMembersRequestSchema as rt, AgentSummaryDetailResponseSchema as s, TriggerRunListResponseSchema as sn, number$1 as sr, LOCAL_PLATFORM_ORIGIN as st, ACTIVE_ORG_HEADER as t, StartOAuthConnectionResultSchema as tn, boolean as tr, HistoryRunListQuerySchema as tt, AppSlugAvailabilityResponseSchema as u, UpdateCredentialRequestSchema as un, preprocess as ur, ListApiKeysResponseSchema as ut, ChannelConnectionListResponseSchema as v, UploadProjectSourceManifestRequestSchema as vn, NEVER as vr, ListProjectMembersResponseSchema as vt, ConnectProvidersResponseSchema as w, UserPreferencesSchema as wn, OrganizationSidebarBrandingSchema as wt, ChannelPlatformSchema as x, UserAvatarPatchSchema as xn, McpDiscoverResponseSchema as xt, ChannelConnectionSchema as y, UploadProjectSourceResponseSchema as yn, ListProjectMetricsResponseSchema as yt, CredentialAssignmentRecordSchema as z, listenPortFromPublicUrl as zn, ProjectSettingsResponseSchema as zt };
7706
7748
 
7707
- //# sourceMappingURL=dist-BnIugffH.mjs.map
7749
+ //# sourceMappingURL=dist-BRA_tOTT.mjs.map