@keystrokehq/cli 0.1.16 → 0.1.18
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-BW3AMCud.mjs → dist-BaOUOcKY.mjs} +3 -3
- package/dist/{dist-BW3AMCud.mjs.map → dist-BaOUOcKY.mjs.map} +1 -1
- package/dist/{dist-BnIugffH.mjs → dist-CNZVjlhC.mjs} +68 -5
- package/dist/{dist-BnIugffH.mjs.map → dist-CNZVjlhC.mjs.map} +1 -1
- package/dist/{dist-PBiyADK0.mjs → dist-DR8DYUc4.mjs} +3 -3
- package/dist/{dist-PBiyADK0.mjs.map → dist-DR8DYUc4.mjs.map} +1 -1
- package/dist/{dist-B4pkCJsM.mjs → dist-RRjysgkw.mjs} +2 -2
- package/dist/dist-RRjysgkw.mjs.map +1 -0
- package/dist/{dist-c4WWC9_F.mjs → dist-Wchlpwl7.mjs} +1 -1
- package/dist/index.mjs +118 -17
- package/dist/index.mjs.map +1 -1
- package/dist/{maybe-auto-update-BIarxWf3.mjs → maybe-auto-update-BNvizwom.mjs} +2 -2
- package/dist/{maybe-auto-update-BIarxWf3.mjs.map → maybe-auto-update-BNvizwom.mjs.map} +1 -1
- package/dist/skills-bundle/skills/keystroke-apps/SKILL.md +5 -0
- package/dist/skills-bundle/skills/keystroke-apps/references/cli-and-catalog.md +9 -2
- package/dist/{version-DScIhncv.mjs → version-Dv-7vfQn.mjs} +2 -2
- package/dist/{version-DScIhncv.mjs.map → version-Dv-7vfQn.mjs.map} +1 -1
- package/package.json +2 -2
- package/dist/dist-B4pkCJsM.mjs.map +0 -1
|
@@ -6070,6 +6070,27 @@ const StartMcpOAuthConnectionInputSchema = object({
|
|
|
6070
6070
|
scopes: array(string()).optional()
|
|
6071
6071
|
});
|
|
6072
6072
|
const StartMcpOAuthConnectionResultSchema = object({ authorizeUrl: string().url() });
|
|
6073
|
+
function displayNameFromUrl$1(url) {
|
|
6074
|
+
let hostname;
|
|
6075
|
+
try {
|
|
6076
|
+
hostname = new URL(url.trim()).hostname.replace(/^www\./, "");
|
|
6077
|
+
} catch {
|
|
6078
|
+
return;
|
|
6079
|
+
}
|
|
6080
|
+
const parts = hostname.split(".").filter(Boolean);
|
|
6081
|
+
let label = parts[0] ?? hostname;
|
|
6082
|
+
if (label === "mcp" && parts.length > 1) label = parts[1] ?? label;
|
|
6083
|
+
if (!label) return;
|
|
6084
|
+
return label.charAt(0).toUpperCase() + label.slice(1);
|
|
6085
|
+
}
|
|
6086
|
+
/** Default name and description for a custom app from a discover template. */
|
|
6087
|
+
function deriveCustomAppDisplay(template, opts) {
|
|
6088
|
+
const name = template.serverName?.trim() || template.name?.trim() || displayNameFromUrl$1(opts.url) || opts.url;
|
|
6089
|
+
return {
|
|
6090
|
+
name,
|
|
6091
|
+
description: template.serverDescription?.trim() || template.description?.trim() || (opts.mcp ? `Connect to ${name} via MCP.` : `Connect to ${name}.`)
|
|
6092
|
+
};
|
|
6093
|
+
}
|
|
6073
6094
|
object({ url: string().url() });
|
|
6074
6095
|
const OpenApiDiscoverResponseSchema = object({
|
|
6075
6096
|
detected: boolean(),
|
|
@@ -6506,6 +6527,43 @@ function parseErrorResponse(body) {
|
|
|
6506
6527
|
message: messageOnly.data.message
|
|
6507
6528
|
};
|
|
6508
6529
|
}
|
|
6530
|
+
const CHAT_ATTACHMENT_MAX_BYTES = 10 * 1024 * 1024;
|
|
6531
|
+
[
|
|
6532
|
+
{
|
|
6533
|
+
mediaType: "image/png",
|
|
6534
|
+
ext: "png"
|
|
6535
|
+
},
|
|
6536
|
+
{
|
|
6537
|
+
mediaType: "image/jpeg",
|
|
6538
|
+
ext: "jpg"
|
|
6539
|
+
},
|
|
6540
|
+
{
|
|
6541
|
+
mediaType: "image/webp",
|
|
6542
|
+
ext: "webp"
|
|
6543
|
+
},
|
|
6544
|
+
{
|
|
6545
|
+
mediaType: "image/gif",
|
|
6546
|
+
ext: "gif"
|
|
6547
|
+
},
|
|
6548
|
+
{
|
|
6549
|
+
mediaType: "application/pdf",
|
|
6550
|
+
ext: "pdf"
|
|
6551
|
+
}
|
|
6552
|
+
].map((type) => type.mediaType);
|
|
6553
|
+
const ChatAttachmentInputSchema = object({
|
|
6554
|
+
storageKey: string().min(1),
|
|
6555
|
+
mediaType: string().min(1),
|
|
6556
|
+
filename: string().optional()
|
|
6557
|
+
});
|
|
6558
|
+
const PresignChatAttachmentRequestSchema = object({
|
|
6559
|
+
contentType: string().min(1),
|
|
6560
|
+
filename: string().min(1),
|
|
6561
|
+
size: number$1().int().positive().max(CHAT_ATTACHMENT_MAX_BYTES)
|
|
6562
|
+
});
|
|
6563
|
+
const PresignChatAttachmentResponseSchema = object({
|
|
6564
|
+
uploadUrl: string().url(),
|
|
6565
|
+
storageKey: string().min(1)
|
|
6566
|
+
});
|
|
6509
6567
|
const CredentialRunContextSchema = object({
|
|
6510
6568
|
orgId: string().min(1).optional(),
|
|
6511
6569
|
projectId: string().min(1).optional(),
|
|
@@ -6523,12 +6581,13 @@ const ThinkingLevelSchema = _enum([
|
|
|
6523
6581
|
"xhigh"
|
|
6524
6582
|
]);
|
|
6525
6583
|
const PromptInputSchema = object({
|
|
6526
|
-
message: string()
|
|
6584
|
+
message: string(),
|
|
6527
6585
|
sessionId: string().min(1).optional(),
|
|
6528
6586
|
subscriptionId: string().min(1).optional(),
|
|
6529
6587
|
context: CredentialRunContextSchema.optional(),
|
|
6530
|
-
thinkingLevel: ThinkingLevelSchema.optional()
|
|
6531
|
-
|
|
6588
|
+
thinkingLevel: ThinkingLevelSchema.optional(),
|
|
6589
|
+
files: array(ChatAttachmentInputSchema).max(5).optional()
|
|
6590
|
+
}).refine((data) => data.message.trim().length > 0 || (data.files?.length ?? 0) > 0, { message: "message or files is required" });
|
|
6532
6591
|
const PromptResponseSchema = object({
|
|
6533
6592
|
sessionId: string(),
|
|
6534
6593
|
messages: array(record(string(), unknown())),
|
|
@@ -7557,6 +7616,10 @@ const AgentSummarySchema = object({
|
|
|
7557
7616
|
description: string().optional(),
|
|
7558
7617
|
sourcePath: string().min(1).optional(),
|
|
7559
7618
|
model: string().optional(),
|
|
7619
|
+
capabilities: object({
|
|
7620
|
+
images: boolean(),
|
|
7621
|
+
files: boolean()
|
|
7622
|
+
}).optional(),
|
|
7560
7623
|
systemPrompt: string().optional(),
|
|
7561
7624
|
toolCount: optionalCount,
|
|
7562
7625
|
credentialCount: optionalCount,
|
|
@@ -7702,6 +7765,6 @@ const ListAgentWorkspaceFilesResponseSchema = object({ files: array(object({
|
|
|
7702
7765
|
path: string().min(1)
|
|
7703
7766
|
})) });
|
|
7704
7767
|
//#endregion
|
|
7705
|
-
export { HistoryRunCancelResponseSchema as $,
|
|
7768
|
+
export { HistoryRunCancelResponseSchema as $, _null as $n, StartMcpOAuthConnectionResultSchema as $t, CreateCustomAppRequestSchema as A, WorkspaceTriggerDetailSchema as An, PresignOrgLogoRequestSchema as At, CredentialConsumerListQuerySchema as B, listenPortFromPublicUrl 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, parseStoredRouteManifest as Gn, ROUTE_MANIFEST_REL_PATH as Gt, CredentialInstanceListResponseSchema as H, originFromPublicUrl as Hn, PromptResponseSchema as Ht, CreateProjectResponseSchema as I, credentialInputSchema as In, ProjectPullStateSchema as It, GatewayAttachmentRecordSchema as J, slugifyAppName as Jn, SkillSummaryListResponseSchema as Jt, DownloadActiveProjectSourceResponseSchema as K, resolveConnectAppSlug as Kn, RecentResourceListResponseSchema as Kt, CredentialAssignmentListQuerySchema as L, deriveCustomAppDisplay 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, _function as Qn, StartMcpOAuthConnectionInputSchema as Qt, CredentialAssignmentListResponseSchema as R, detectProjectPackageManagerFromSnapshot 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, parseAppSlug as Un, QueuedAgentPromptResponseSchema as Ut, CredentialConsumerListResponseSchema as V, normalizeCredentialList as Vn, PromptInputSchema as Vt, DeclineOrganizationInvitationResponseSchema as W, parseErrorResponse as Wn, QueuedRunResponseSchema as Wt, GetCustomAppResponseSchema as X, ZodType as Xn, StartKeystrokeConnectionInputSchema as Xt, GetCredentialResponseSchema as Y, number as Yn, SlugAvailabilityResponseSchema as Yt, GraphqlDiscoverResponseSchema as Z, _enum as Zn, StartKeystrokeConnectionResultSchema as Zt, ChannelAccountListResponseSchema as _, UpdateProjectSettingsRequestSchema as _n, datetime as _r, ListProjectFilesResponseSchema as _t, AgentSessionDetailResponseSchema as a, TriggerListResponseSchema as an, intersection as ar, InviteProjectMembersRequestSchema as at, ChannelDirectoryListResponseSchema as b, UpsertGatewayAttachmentBodySchema as bn, ListProjectsResponseSchema as bt, AgentSummaryListResponseSchema as c, UpdateChannelBindingBodySchema as cn, number$1 as cr, ListAgentMemoryFilesResponseSchema as ct, AssignCredentialBodySchema as d, UpdateOrganizationMemberRequestSchema as dn, preprocess as dr, ListAppsResponseSchema as dt, StartOAuthConnectionInputSchema as en, any as er, HistoryRunDetailResponseSchema as et, BindChannelBodySchema as f, UpdateOrganizationMemberResponseSchema as fn, record as fr, ListCredentialsResponseSchema as ft, CatalogAppsPageResponseSchema as g, UpdateProjectRequestSchema as gn, url as gr, ListProjectDeploymentsResponseSchema as gt, CatalogAppDetailResponseSchema as h, UpdateProjectMemberResponseSchema as hn, unknown as hr, ListOrganizationsResponseSchema as ht, AgentSessionChatStateResponseSchema as i, TriggerDetailResponseSchema as in, discriminatedUnion 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, object as lr, ListAgentWorkspaceFilesResponseSchema as lt, CatalogActionsPageResponseSchema as m, UpdateProjectMemberRequestSchema as mn, union as mr, ListOrganizationMembersResponseSchema as mt, AcceptOrganizationInvitationResponseSchema as n, SubmitMarketingContactRequestSchema as nn, boolean as nr, HistoryRunListResponseSchema as nt, AgentSessionListResponseSchema as o, TriggerRunDetailResponseSchema as on, literal as or, InviteProjectMembersResponseSchema as ot, CatalogActionDetailResponseSchema as p, UpdateOrganizationRequestSchema as pn, string as pr, ListOrganizationInvitationsResponseSchema as pt, ErrorResponseSchema as q, resolvePublicPlatformOrigin as qn, SkillSummaryDetailResponseSchema as qt, ActiveOrganizationResponseSchema as r, SubmitTeamRequestRequestSchema as rn, custom as rr, InviteOrganizationMembersRequestSchema as rt, AgentSummaryDetailResponseSchema as s, TriggerRunListResponseSchema as sn, looseObject as sr, LOCAL_PLATFORM_ORIGIN as st, ACTIVE_ORG_HEADER as t, StartOAuthConnectionResultSchema as tn, array as tr, HistoryRunListQuerySchema as tt, AppSlugAvailabilityResponseSchema as u, UpdateCredentialRequestSchema as un, optional as ur, ListApiKeysResponseSchema as ut, ChannelConnectionListResponseSchema as v, UploadProjectSourceManifestRequestSchema as vn, toJSONSchema 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, NEVER as yr, ListProjectMetricsResponseSchema as yt, CredentialAssignmentRecordSchema as z, isAcceptableInstallExit as zn, ProjectSettingsResponseSchema as zt };
|
|
7706
7769
|
|
|
7707
|
-
//# sourceMappingURL=dist-
|
|
7770
|
+
//# sourceMappingURL=dist-CNZVjlhC.mjs.map
|