@keystrokehq/cli 0.1.135 → 0.1.137
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/README.md +16 -0
- package/dist/{dist-Df6dR-oX.mjs → dist-BcY5XTlp.mjs} +91 -7
- package/dist/dist-BcY5XTlp.mjs.map +1 -0
- package/dist/{dist-DR0jFfjU.mjs → dist-BkXtCIR2.mjs} +2 -21
- package/dist/dist-BkXtCIR2.mjs.map +1 -0
- package/dist/{dist-CKoP7vd1.mjs → dist-Bo7OJs1C.mjs} +3 -3
- package/dist/{dist-CKoP7vd1.mjs.map → dist-Bo7OJs1C.mjs.map} +1 -1
- package/dist/dist-C3AKWkMS.mjs +3 -0
- package/dist/{dist-BPfI27v8.mjs → dist-Wf-gc7FZ.mjs} +137 -60
- package/dist/dist-Wf-gc7FZ.mjs.map +1 -0
- package/dist/index.mjs +1 -1
- package/dist/{maybe-auto-update-BhqEC4Jc.mjs → maybe-auto-update-C99Obm7k.mjs} +2 -2
- package/dist/{maybe-auto-update-BhqEC4Jc.mjs.map → maybe-auto-update-C99Obm7k.mjs.map} +1 -1
- package/dist/{program-iqGXieZx.mjs → program-D-Lfv2dw.mjs} +43 -11
- package/dist/program-D-Lfv2dw.mjs.map +1 -0
- package/dist/{run-package-manager-update-CNqKe2c2.mjs → run-package-manager-update-CQT2HD0m.mjs} +2 -2
- package/dist/{run-package-manager-update-CNqKe2c2.mjs.map → run-package-manager-update-CQT2HD0m.mjs.map} +1 -1
- package/dist/skills-bundle/_AGENTS.mcp.md +26 -0
- package/dist/skills-bundle/_AGENTS.md +27 -0
- package/package.json +1 -1
- package/dist/dist-BPfI27v8.mjs.map +0 -1
- package/dist/dist-DR0jFfjU.mjs.map +0 -1
- package/dist/dist-Df6dR-oX.mjs.map +0 -1
- package/dist/dist-DpzPOV7H.mjs +0 -3
- package/dist/program-iqGXieZx.mjs.map +0 -1
package/README.md
CHANGED
|
@@ -53,6 +53,22 @@ keystroke apps actions list|get <app> [<tool>]
|
|
|
53
53
|
keystroke apps execute <app> <tool> --input '{...}'
|
|
54
54
|
keystroke templates list|show|apply <slug>
|
|
55
55
|
keystroke credentials create|get|rotate|delete <key>
|
|
56
|
+
keystroke feedback create --message "…"
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
### `feedback`
|
|
60
|
+
|
|
61
|
+
Authenticated, org-scoped. Coding agents use this to send build-experience reports (snags, unclear docs, CLI papercuts) to the Keystroke team. The platform attaches the signed-in user, org, CLI version, and linked project slug when available.
|
|
62
|
+
|
|
63
|
+
```bash
|
|
64
|
+
keystroke feedback create --message "$(cat <<'EOF'
|
|
65
|
+
*Quick Recap and Context*
|
|
66
|
+
…
|
|
67
|
+
|
|
68
|
+
*Feedback for Keystroke Team*
|
|
69
|
+
*1. …*
|
|
70
|
+
EOF
|
|
71
|
+
)"
|
|
56
72
|
```
|
|
57
73
|
|
|
58
74
|
### `auth`
|
|
@@ -4770,6 +4770,25 @@ function preprocess(fn, schema) {
|
|
|
4770
4770
|
});
|
|
4771
4771
|
}
|
|
4772
4772
|
//#endregion
|
|
4773
|
+
//#region ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/classic/compat.js
|
|
4774
|
+
/** @deprecated Use the raw string literal codes instead, e.g. "invalid_type". */
|
|
4775
|
+
const ZodIssueCode = {
|
|
4776
|
+
invalid_type: "invalid_type",
|
|
4777
|
+
too_big: "too_big",
|
|
4778
|
+
too_small: "too_small",
|
|
4779
|
+
invalid_format: "invalid_format",
|
|
4780
|
+
not_multiple_of: "not_multiple_of",
|
|
4781
|
+
unrecognized_keys: "unrecognized_keys",
|
|
4782
|
+
invalid_union: "invalid_union",
|
|
4783
|
+
invalid_key: "invalid_key",
|
|
4784
|
+
invalid_element: "invalid_element",
|
|
4785
|
+
invalid_value: "invalid_value",
|
|
4786
|
+
custom: "custom"
|
|
4787
|
+
};
|
|
4788
|
+
/** @deprecated Do not use. Stub definition, only included for zod-to-json-schema compatibility. */
|
|
4789
|
+
var ZodFirstPartyTypeKind;
|
|
4790
|
+
(function(ZodFirstPartyTypeKind) {})(ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {}));
|
|
4791
|
+
//#endregion
|
|
4773
4792
|
//#region ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/classic/coerce.js
|
|
4774
4793
|
function number(params) {
|
|
4775
4794
|
return /* @__PURE__ */ _coercedNumber(ZodNumber, params);
|
|
@@ -5794,7 +5813,9 @@ const storedRouteManifestEntryV2Schema = discriminatedUnion("kind", [
|
|
|
5794
5813
|
appSlugs: array(string()).default([]),
|
|
5795
5814
|
toolSlugs: array(string()).default([]),
|
|
5796
5815
|
/** Credential requirements per tool slug (the agent's credential consumer key). */
|
|
5797
|
-
toolRequirements: record(string(), array(CredentialRequirementSummarySchema)).optional()
|
|
5816
|
+
toolRequirements: record(string(), array(CredentialRequirementSummarySchema)).optional(),
|
|
5817
|
+
/** Credential requirements for the agent's VM sandbox env / git bootstrap. */
|
|
5818
|
+
sandboxRequirements: array(CredentialRequirementSummarySchema).optional()
|
|
5798
5819
|
}),
|
|
5799
5820
|
object({
|
|
5800
5821
|
kind: literal("action"),
|
|
@@ -6883,9 +6904,24 @@ const SubmitTeamRequestRequestSchema = object({
|
|
|
6883
6904
|
"contact",
|
|
6884
6905
|
"enterprise-upgrade",
|
|
6885
6906
|
"verification",
|
|
6886
|
-
"slack-connect"
|
|
6907
|
+
"slack-connect",
|
|
6908
|
+
"connector-access"
|
|
6887
6909
|
]),
|
|
6888
|
-
message: string().trim().max(5e3).optional()
|
|
6910
|
+
message: string().trim().max(5e3).optional(),
|
|
6911
|
+
/** Required for connector-access requests (sandbox VM secret exposure). */
|
|
6912
|
+
appSlug: string().trim().min(1).optional()
|
|
6913
|
+
}).superRefine((value, ctx) => {
|
|
6914
|
+
if (value.type === "connector-access" && !value.appSlug) ctx.addIssue({
|
|
6915
|
+
code: ZodIssueCode.custom,
|
|
6916
|
+
path: ["appSlug"],
|
|
6917
|
+
message: "appSlug is required for connector-access requests"
|
|
6918
|
+
});
|
|
6919
|
+
});
|
|
6920
|
+
object({ ok: literal(true) });
|
|
6921
|
+
const SubmitAgentFeedbackRequestSchema = object({
|
|
6922
|
+
message: string().trim().min(1).max(1e4),
|
|
6923
|
+
cliVersion: string().trim().min(1).max(64).optional(),
|
|
6924
|
+
projectSlug: string().trim().min(1).max(128).optional()
|
|
6889
6925
|
});
|
|
6890
6926
|
object({ ok: literal(true) });
|
|
6891
6927
|
const TemplateKindSchema = _enum([
|
|
@@ -6943,10 +6979,11 @@ const SubmitMarketingContactRequestSchema = object({
|
|
|
6943
6979
|
companyWebsite: string().optional()
|
|
6944
6980
|
});
|
|
6945
6981
|
const PublicModelsResponseSchema = object({ models: array(string()) });
|
|
6982
|
+
object({ accessToken: string() });
|
|
6946
6983
|
function isCredentialInput(value) {
|
|
6947
6984
|
if (typeof value !== "object" || value === null) return false;
|
|
6948
6985
|
const candidate = value;
|
|
6949
|
-
return typeof candidate.key === "string" && CredentialAuthKindSchema.safeParse(candidate.kind).success && candidate.schema instanceof ZodType;
|
|
6986
|
+
return typeof candidate.key === "string" && CredentialAuthKindSchema.safeParse(candidate.kind).success && candidate.schema instanceof ZodType && (candidate.materializedSchema === void 0 || candidate.materializedSchema instanceof ZodType);
|
|
6950
6987
|
}
|
|
6951
6988
|
const credentialInputSchema = custom((value) => isCredentialInput(value), "must be a credential requirement");
|
|
6952
6989
|
function normalizeCredentialList(list) {
|
|
@@ -6956,14 +6993,61 @@ function isCredentialRequirement(item) {
|
|
|
6956
6993
|
return typeof item.scope !== "function";
|
|
6957
6994
|
}
|
|
6958
6995
|
function toCredentialRequirement(item) {
|
|
6959
|
-
if (isCredentialRequirement(item)) return
|
|
6996
|
+
if (isCredentialRequirement(item)) return {
|
|
6997
|
+
key: item.key,
|
|
6998
|
+
kind: item.kind,
|
|
6999
|
+
schema: item.schema,
|
|
7000
|
+
materializedSchema: item.materializedSchema ?? item.schema,
|
|
7001
|
+
...item.scope !== void 0 ? { scope: item.scope } : {},
|
|
7002
|
+
...item.tokenField !== void 0 ? { tokenField: item.tokenField } : {}
|
|
7003
|
+
};
|
|
6960
7004
|
return {
|
|
6961
7005
|
key: item.key,
|
|
6962
7006
|
kind: item.kind,
|
|
6963
7007
|
schema: item.schema,
|
|
7008
|
+
materializedSchema: item.materializedSchema,
|
|
6964
7009
|
...item.tokenField !== void 0 ? { tokenField: item.tokenField } : {}
|
|
6965
7010
|
};
|
|
6966
7011
|
}
|
|
7012
|
+
const CredentialAccessUnavailableReasonSchema = _enum(["request_access", "reconnect_required"]);
|
|
7013
|
+
object({
|
|
7014
|
+
error: literal("credential_access_unavailable"),
|
|
7015
|
+
code: literal("credential_access_unavailable"),
|
|
7016
|
+
appSlug: string().min(1),
|
|
7017
|
+
reason: CredentialAccessUnavailableReasonSchema,
|
|
7018
|
+
requestAccessUrl: string().url().optional(),
|
|
7019
|
+
message: string().optional()
|
|
7020
|
+
});
|
|
7021
|
+
discriminatedUnion("kind", [
|
|
7022
|
+
object({
|
|
7023
|
+
kind: literal("api_key"),
|
|
7024
|
+
instanceId: string().min(1)
|
|
7025
|
+
}),
|
|
7026
|
+
object({
|
|
7027
|
+
kind: literal("oauth"),
|
|
7028
|
+
connectionId: string().min(1)
|
|
7029
|
+
}),
|
|
7030
|
+
object({
|
|
7031
|
+
kind: literal("keystroke"),
|
|
7032
|
+
instanceId: string().min(1),
|
|
7033
|
+
connectionId: string().min(1),
|
|
7034
|
+
appSlug: string().min(1)
|
|
7035
|
+
})
|
|
7036
|
+
]);
|
|
7037
|
+
discriminatedUnion("kind", [
|
|
7038
|
+
object({
|
|
7039
|
+
kind: literal("api_key"),
|
|
7040
|
+
value: unknown()
|
|
7041
|
+
}),
|
|
7042
|
+
object({
|
|
7043
|
+
kind: literal("oauth"),
|
|
7044
|
+
accessToken: string().min(1)
|
|
7045
|
+
}),
|
|
7046
|
+
object({
|
|
7047
|
+
kind: literal("keystroke"),
|
|
7048
|
+
value: unknown()
|
|
7049
|
+
})
|
|
7050
|
+
]);
|
|
6967
7051
|
const ValidationErrorDetailSchema = object({
|
|
6968
7052
|
path: string(),
|
|
6969
7053
|
message: string()
|
|
@@ -8704,6 +8788,6 @@ const ListAgentWorkspaceFilesResponseSchema = object({ files: array(object({
|
|
|
8704
8788
|
})) });
|
|
8705
8789
|
const WorkflowRunInputsPutBodySchema = record(string(), unknown());
|
|
8706
8790
|
//#endregion
|
|
8707
|
-
export { CredentialInstanceListResponseSchema as $,
|
|
8791
|
+
export { CredentialInstanceListResponseSchema as $, UpdateOrganizationMemberRequestSchema as $n, _null as $r, OrganizationSidebarBrandingSchema as $t, ConnectAuthorizeUrlResponseSchema as A, SkillSummaryListResponseSchema as An, WorkspaceTriggerRunListResponseSchema as Ar, ListAgentMemoryFilesResponseSchema as At, CreateCustomAppRequestSchema as B, SubmitTeamRequestRequestSchema as Bn, parseAppSlug as Br, ListOrganizationMembersPageResponseSchema as Bt, ChannelAccountListResponseSchema as C, PublishedFormListResponseSchema as Cn, WorkflowRunResponseSchema as Cr, HistoryRunListQuerySchema as Ct, CompleteProjectArtifactResponseSchema as D, ROUTE_MANIFEST_REL_PATH as Dn, WorkspaceTriggerFileSchema as Dr, InviteProjectMembersRequestSchema as Dt, ChannelDirectoryListResponseSchema as E, QueuedRunResponseSchema as En, WorkspaceTriggerDetailSchema as Er, InviteOrganizationMembersResponseSchema as Et, CreateBillingPortalRequestSchema as F, StartMcpOAuthConnectionResultSchema as Fn, detectProjectPackageManagerFromSnapshot as Fr, ListCredentialsPageQuerySchema as Ft, CreateProjectRequestSchema as G, TriggerListResponseSchema as Gn, resolveDocsMcpUrl as Gr, ListProjectMetricsResponseSchema as Gt, CreateOrganizationRequestSchema as H, TriggerDetailResponseSchema as Hn, parseStoredRouteManifest as Hr, ListProjectDeploymentsResponseSchema as Ht, CreateCredentialInstanceBodySchema as I, StartOAuthConnectionInputSchema as In, isAcceptableInstallExit as Ir, ListCredentialsPageResponseSchema as It, CredentialAssignmentListQuerySchema as J, UpdateAutoTopupRequestSchema as Jn, number as Jr, ManagedServiceCredentialSchema as Jt, CreateProjectResponseSchema as K, TriggerRunDetailResponseSchema as Kn, resolvePublicPlatformOrigin as Kr, ListProjectsResponseSchema as Kt, CreateCredentialsRequestSchema as L, StartOAuthConnectionResultSchema as Ln, listenPortFromPublicUrl as Lr, ListManagedServiceCredentialsResponseSchema as Lt, ConnectProvidersResponseSchema as M, StartKeystrokeConnectionInputSchema as Mn, buildConnectDeeplink as Mr, ListApiKeysResponseSchema as Mt, CreateApiKeyRequestSchema as N, StartKeystrokeConnectionResultSchema as Nn, credentialInputSchema as Nr, ListAppsResponseSchema as Nt, ConfirmCheckoutRequestSchema as O, RecentResourceListResponseSchema as On, WorkspaceTriggerListResponseSchema as Or, InviteProjectMembersResponseSchema as Ot, CreateApiKeyResponseSchema as P, StartMcpOAuthConnectionInputSchema as Pn, deriveCustomAppDisplay as Pr, ListChannelPlatformsResponseSchema as Pt, CredentialConsumerListResponseSchema as Q, UpdateManagedServiceCredentialRequestSchema as Qn, _function as Qr, OrganizationSidebarBrandingPatchSchema as Qt, CreateCredentialsResponseSchema as R, SubmitAgentFeedbackRequestSchema as Rn, normalizeCredentialList as Rr, ListOrganizationInvitationsResponseSchema as Rt, CatalogAppsPageResponseSchema as S, PublicModelsResponseSchema as Sn, WorkflowRunListResponseSchema as Sr, HistoryRunDetailResponseSchema as St, ChannelConnectionSchema as T, QueuedAgentPromptResponseSchema as Tn, WorkflowSummaryListResponseSchema as Tr, InviteOrganizationMembersRequestSchema as Tt, CreateOrganizationResponseSchema as U, TriggerInvokeInputsSchema as Un, requiredDisplayTextSchema as Ur, ListProjectFilesResponseSchema as Ut, CreateCustomAppResponseSchema as V, TemplateFilesResponseSchema as Vn, parseErrorResponse as Vr, ListOrganizationsResponseSchema as Vt, CreateProjectArtifactResponseSchema as W, TriggerInvokeResponseSchema as Wn, resolveConnectAppSlug as Wr, ListProjectMembersResponseSchema as Wt, CredentialAssignmentRecordSchema as X, UpdateCredentialInstanceBodySchema as Xn, ZodType as Xr, McpDiscoverResponseSchema as Xt, CredentialAssignmentListResponseSchema as Y, UpdateChannelBindingBodySchema as Yn, ZodIssueCode as Yr, ManagedServiceKindSchema as Yt, CredentialConsumerListQuerySchema as Z, UpdateCredentialRequestSchema as Zn, _enum as Zr, OpenApiDiscoverResponseSchema as Zt, BindChannelBodySchema as _, url as _i, PromptInputSchema as _n, WorkflowFormUpsertBodySchema as _r, GetCustomAppResponseSchema as _t, AgentSessionListResponseSchema as a, intersection as ai, PresignCustomAppLogoResponseSchema as an, UpdateProjectSettingsRequestSchema as ar, DownloadActiveProjectArtifactResponseSchema as at, CatalogActionsPageResponseSchema as b, safeParse$1 as bi, PublicFormSubmitBodySchema as bn, WorkflowRunInputsPutBodySchema as br, HealthResponseSchema as bt, AgentTriggerSummaryListResponseSchema as c, looseObject as ci, PresignProjectSourceRequestSchema as cn, UpsertGatewayAttachmentBodySchema as cr, DuplicateCredentialsResponseSchema as ct, AutoTopupSummarySchema as d, optional as di, PresignUserAvatarResponseSchema as dn, UserPreferencesPatchSchema as dr, FinalizeCustomAppLogoRequestSchema as dt, any as ei, PROJECT_PULL_STATE_RELATIVE_PATH as en, UpdateOrganizationMemberResponseSchema as er, CredentialInstanceRecordSchema as et, BillingActivityResponseSchema as f, preprocess as fi, ProjectPullStateSchema as fn, UserPreferencesSchema as fr, FinalizeCustomAppLogoResponseSchema as ft, BillingUsageResponseSchema as g, unknown as gi, ProjectSlugAvailabilityResponseSchema as gn, WorkflowFormResponseSchema as gr, GetCredentialResponseSchema as gt, BillingSummaryResponseSchema as h, union as hi, ProjectSettingsResponseSchema as hn, WorkflowCanvasSchema as hr, GetAppCatalogEntryResponseSchema as ht, AgentSessionDetailResponseSchema as i, discriminatedUnion as ii, PresignCustomAppLogoRequestSchema as in, UpdateProjectRequestSchema as ir, DeclineOrganizationInvitationResponseSchema as it, ConnectManagedServiceCredentialRequestSchema as j, SlugAvailabilityResponseSchema as jn, WorkspaceWorkflowOverviewSchema as jr, ListAgentWorkspaceFilesResponseSchema as jt, ConfirmCheckoutResponseSchema as k, SkillSummaryDetailResponseSchema as kn, WorkspaceTriggerOverviewSchema as kr, LOCAL_PLATFORM_ORIGIN as kt, AppSlugAvailabilityResponseSchema as l, number$1 as li, PresignProjectSourceResponseSchema as ln, UserAvatarPatchSchema as lr, ExecuteKeystrokeToolRequestSchema as lt, BillingRedirectResponseSchema as m, string as mi, ProjectResponseSchema as mn, WorkflowCanvasRunSchema as mr, GatewayAttachmentRecordSchema as mt, AcceptOrganizationInvitationResponseSchema as n, boolean as ni, PresignChatAttachmentRequestSchema as nn, UpdateProjectMemberRequestSchema as nr, DOCS_QUERY_TOOL as nt, AgentSummaryDetailResponseSchema as o, lazy as oi, PresignOrgLogoRequestSchema as on, UploadProjectSourceManifestRequestSchema as or, DownloadActiveProjectSourceResponseSchema as ot, BillingInvoiceUrlResponseSchema as p, record as pi, ProjectReachabilityResponseSchema as pn, WorkflowCanvasCredentialBindingsSchema as pr, FormFieldConfigSchema as pt, CreateSubscriptionCheckoutRequestSchema as q, TriggerRunListResponseSchema as qn, slugifyAppName as qr, ListTemplatesResponseSchema as qt, ActiveOrganizationResponseSchema as r, custom as ri, PresignChatAttachmentResponseSchema as rn, UpdateProjectMemberResponseSchema as rr, DOCS_SEARCH_TOOL as rt, AgentSummaryListResponseSchema as s, literal as si, PresignOrgLogoResponseSchema as sn, UploadProjectSourceResponseSchema as sr, DuplicateCredentialRequestSchema as st, ACTIVE_ORG_HEADER as t, array as ti, PROJECT_REACHABILITY_REQUEST_TIMEOUT_MS as tn, UpdateOrganizationRequestSchema as tr, DEFAULT_CLOUD_PLATFORM_ORIGIN as tt, AssignCredentialBodySchema as u, object as ui, PresignUserAvatarRequestSchema as un, UserAvatarSchema as ur, FilePartSchema as ut, CLIENT_CHANNEL_HEADER as v, datetime as vi, PromptResponseSchema as vn, WorkflowRunDetailResponseSchema as vr, GetTemplateResponseSchema as vt, ChannelConnectionListResponseSchema as w, PublishedFormSchema as wn, WorkflowSummaryDetailResponseSchema as wr, HistoryRunListResponseSchema as wt, CatalogAppDetailResponseSchema as x, NEVER as xi, PublicFormSubmitResponseSchema as xn, WorkflowRunInputsSchema as xr, HistoryRunCancelResponseSchema as xt, CatalogActionDetailResponseSchema as y, toJSONSchema as yi, PublicFormMetadataSchema as yn, WorkflowRunHooksResponseSchema as yr, GraphqlDiscoverResponseSchema as yt, CreateCreditsCheckoutRequestSchema as z, SubmitMarketingContactRequestSchema as zn, originFromPublicUrl as zr, ListOrganizationMembersPageQuerySchema as zt };
|
|
8708
8792
|
|
|
8709
|
-
//# sourceMappingURL=dist-
|
|
8793
|
+
//# sourceMappingURL=dist-BcY5XTlp.mjs.map
|