@keystrokehq/cli 1.0.18 → 1.0.20
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-DfEfdcEL.mjs → dist-CZRI7PWQ.mjs} +101 -10
- package/dist/dist-CZRI7PWQ.mjs.map +1 -0
- package/dist/dist-Dgc11aA7.mjs +3 -0
- package/dist/dist-Dxwg1VnB.mjs +15465 -0
- package/dist/dist-Dxwg1VnB.mjs.map +1 -0
- package/dist/{dist-l_IVhEIH.mjs → dist-oTiFrO4p.mjs} +3 -3
- package/dist/{dist-l_IVhEIH.mjs.map → dist-oTiFrO4p.mjs.map} +1 -1
- package/dist/index.mjs +12 -114
- package/dist/index.mjs.map +1 -1
- package/dist/{maybe-auto-update-CBMFERvz.mjs → maybe-auto-update-JREZXMGG.mjs} +2 -2
- package/dist/{maybe-auto-update-CBMFERvz.mjs.map → maybe-auto-update-JREZXMGG.mjs.map} +1 -1
- package/dist/pack-artifact-NGxvGcXq-DZAPPWSA.mjs +112 -0
- package/dist/pack-artifact-NGxvGcXq-DZAPPWSA.mjs.map +1 -0
- package/dist/{version-D1cOuBm2.mjs → version-D7gucZjM.mjs} +2 -2
- package/dist/{version-D1cOuBm2.mjs.map → version-D7gucZjM.mjs.map} +1 -1
- package/package.json +1 -1
- package/dist/dist-CuGYI4rV.mjs +0 -1921
- package/dist/dist-CuGYI4rV.mjs.map +0 -1
- package/dist/dist-DfEfdcEL.mjs.map +0 -1
- package/dist/dist-bJOzwzok.mjs +0 -3
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
//#region ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/core.js
|
|
3
3
|
var _a$1;
|
|
4
|
+
/** A special constant with type `never` */
|
|
5
|
+
const NEVER = /* @__PURE__ */ Object.freeze({ status: "aborted" });
|
|
4
6
|
function $constructor(name, initializer, params) {
|
|
5
7
|
function init(inst, def) {
|
|
6
8
|
if (!inst._zod) Object.defineProperty(inst, "_zod", {
|
|
@@ -607,6 +609,7 @@ const string$1 = (params) => {
|
|
|
607
609
|
const integer = /^-?\d+$/;
|
|
608
610
|
const number$2 = /^-?\d+(?:\.\d+)?$/;
|
|
609
611
|
const boolean$1 = /^(?:true|false)$/i;
|
|
612
|
+
const _null$2 = /^null$/i;
|
|
610
613
|
const lowercase = /^[^A-Z]*$/;
|
|
611
614
|
const uppercase = /^[^a-z]*$/;
|
|
612
615
|
//#endregion
|
|
@@ -1419,6 +1422,26 @@ const $ZodBoolean = /* @__PURE__ */ $constructor("$ZodBoolean", (inst, def) => {
|
|
|
1419
1422
|
return payload;
|
|
1420
1423
|
};
|
|
1421
1424
|
});
|
|
1425
|
+
const $ZodNull = /* @__PURE__ */ $constructor("$ZodNull", (inst, def) => {
|
|
1426
|
+
$ZodType.init(inst, def);
|
|
1427
|
+
inst._zod.pattern = _null$2;
|
|
1428
|
+
inst._zod.values = new Set([null]);
|
|
1429
|
+
inst._zod.parse = (payload, _ctx) => {
|
|
1430
|
+
const input = payload.value;
|
|
1431
|
+
if (input === null) return payload;
|
|
1432
|
+
payload.issues.push({
|
|
1433
|
+
expected: "null",
|
|
1434
|
+
code: "invalid_type",
|
|
1435
|
+
input,
|
|
1436
|
+
inst
|
|
1437
|
+
});
|
|
1438
|
+
return payload;
|
|
1439
|
+
};
|
|
1440
|
+
});
|
|
1441
|
+
const $ZodAny = /* @__PURE__ */ $constructor("$ZodAny", (inst, def) => {
|
|
1442
|
+
$ZodType.init(inst, def);
|
|
1443
|
+
inst._zod.parse = (payload) => payload;
|
|
1444
|
+
});
|
|
1422
1445
|
const $ZodUnknown = /* @__PURE__ */ $constructor("$ZodUnknown", (inst, def) => {
|
|
1423
1446
|
$ZodType.init(inst, def);
|
|
1424
1447
|
inst._zod.parse = (payload) => payload;
|
|
@@ -2340,6 +2363,9 @@ function handlePipeResult(left, next, ctx) {
|
|
|
2340
2363
|
fallback: left.fallback
|
|
2341
2364
|
}, ctx);
|
|
2342
2365
|
}
|
|
2366
|
+
const $ZodPreprocess = /* @__PURE__ */ $constructor("$ZodPreprocess", (inst, def) => {
|
|
2367
|
+
$ZodPipe.init(inst, def);
|
|
2368
|
+
});
|
|
2343
2369
|
const $ZodReadonly = /* @__PURE__ */ $constructor("$ZodReadonly", (inst, def) => {
|
|
2344
2370
|
$ZodType.init(inst, def);
|
|
2345
2371
|
defineLazy(inst._zod, "propValues", () => def.innerType._zod.propValues);
|
|
@@ -2805,6 +2831,17 @@ function _boolean(Class, params) {
|
|
|
2805
2831
|
});
|
|
2806
2832
|
}
|
|
2807
2833
|
/* @__NO_SIDE_EFFECTS__ */
|
|
2834
|
+
function _null$1(Class, params) {
|
|
2835
|
+
return new Class({
|
|
2836
|
+
type: "null",
|
|
2837
|
+
...normalizeParams(params)
|
|
2838
|
+
});
|
|
2839
|
+
}
|
|
2840
|
+
/* @__NO_SIDE_EFFECTS__ */
|
|
2841
|
+
function _any(Class) {
|
|
2842
|
+
return new Class({ type: "any" });
|
|
2843
|
+
}
|
|
2844
|
+
/* @__NO_SIDE_EFFECTS__ */
|
|
2808
2845
|
function _unknown(Class) {
|
|
2809
2846
|
return new Class({ type: "unknown" });
|
|
2810
2847
|
}
|
|
@@ -4247,6 +4284,22 @@ const ZodBoolean = /* @__PURE__ */ $constructor("ZodBoolean", (inst, def) => {
|
|
|
4247
4284
|
function boolean(params) {
|
|
4248
4285
|
return /* @__PURE__ */ _boolean(ZodBoolean, params);
|
|
4249
4286
|
}
|
|
4287
|
+
const ZodNull = /* @__PURE__ */ $constructor("ZodNull", (inst, def) => {
|
|
4288
|
+
$ZodNull.init(inst, def);
|
|
4289
|
+
ZodType.init(inst, def);
|
|
4290
|
+
inst._zod.processJSONSchema = (ctx, json, params) => nullProcessor(inst, ctx, json, params);
|
|
4291
|
+
});
|
|
4292
|
+
function _null(params) {
|
|
4293
|
+
return /* @__PURE__ */ _null$1(ZodNull, params);
|
|
4294
|
+
}
|
|
4295
|
+
const ZodAny = /* @__PURE__ */ $constructor("ZodAny", (inst, def) => {
|
|
4296
|
+
$ZodAny.init(inst, def);
|
|
4297
|
+
ZodType.init(inst, def);
|
|
4298
|
+
inst._zod.processJSONSchema = (ctx, json, params) => void 0;
|
|
4299
|
+
});
|
|
4300
|
+
function any() {
|
|
4301
|
+
return /* @__PURE__ */ _any(ZodAny);
|
|
4302
|
+
}
|
|
4250
4303
|
const ZodUnknown = /* @__PURE__ */ $constructor("ZodUnknown", (inst, def) => {
|
|
4251
4304
|
$ZodUnknown.init(inst, def);
|
|
4252
4305
|
ZodType.init(inst, def);
|
|
@@ -4360,6 +4413,14 @@ function object(shape, params) {
|
|
|
4360
4413
|
...normalizeParams(params)
|
|
4361
4414
|
});
|
|
4362
4415
|
}
|
|
4416
|
+
function looseObject(shape, params) {
|
|
4417
|
+
return new ZodObject({
|
|
4418
|
+
type: "object",
|
|
4419
|
+
shape,
|
|
4420
|
+
catchall: unknown(),
|
|
4421
|
+
...normalizeParams(params)
|
|
4422
|
+
});
|
|
4423
|
+
}
|
|
4363
4424
|
const ZodUnion = /* @__PURE__ */ $constructor("ZodUnion", (inst, def) => {
|
|
4364
4425
|
$ZodUnion.init(inst, def);
|
|
4365
4426
|
ZodType.init(inst, def);
|
|
@@ -4632,6 +4693,10 @@ function pipe(in_, out) {
|
|
|
4632
4693
|
out
|
|
4633
4694
|
});
|
|
4634
4695
|
}
|
|
4696
|
+
const ZodPreprocess = /* @__PURE__ */ $constructor("ZodPreprocess", (inst, def) => {
|
|
4697
|
+
ZodPipe.init(inst, def);
|
|
4698
|
+
$ZodPreprocess.init(inst, def);
|
|
4699
|
+
});
|
|
4635
4700
|
const ZodReadonly = /* @__PURE__ */ $constructor("ZodReadonly", (inst, def) => {
|
|
4636
4701
|
$ZodReadonly.init(inst, def);
|
|
4637
4702
|
ZodType.init(inst, def);
|
|
@@ -4670,6 +4735,13 @@ function refine(fn, _params = {}) {
|
|
|
4670
4735
|
function superRefine(fn, params) {
|
|
4671
4736
|
return /* @__PURE__ */ _superRefine(fn, params);
|
|
4672
4737
|
}
|
|
4738
|
+
function preprocess(fn, schema) {
|
|
4739
|
+
return new ZodPreprocess({
|
|
4740
|
+
type: "pipe",
|
|
4741
|
+
in: transform(fn),
|
|
4742
|
+
out: schema
|
|
4743
|
+
});
|
|
4744
|
+
}
|
|
4673
4745
|
//#endregion
|
|
4674
4746
|
//#region ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/classic/coerce.js
|
|
4675
4747
|
function number(params) {
|
|
@@ -5403,6 +5475,10 @@ const attachmentSchemasSchema = record(string(), object({
|
|
|
5403
5475
|
requestSchema: record(string(), unknown()),
|
|
5404
5476
|
filterSchema: record(string(), unknown()).optional()
|
|
5405
5477
|
}));
|
|
5478
|
+
const attachmentMetaSchema = record(string(), object({
|
|
5479
|
+
name: string().optional(),
|
|
5480
|
+
description: string().optional()
|
|
5481
|
+
}));
|
|
5406
5482
|
const storedRouteManifestEntryV2Schema = discriminatedUnion("kind", [
|
|
5407
5483
|
object({ kind: literal("health") }),
|
|
5408
5484
|
object({
|
|
@@ -5432,13 +5508,16 @@ const storedRouteManifestEntryV2Schema = discriminatedUnion("kind", [
|
|
|
5432
5508
|
endpoint: string(),
|
|
5433
5509
|
attachmentIds: array(string()),
|
|
5434
5510
|
moduleFile: string(),
|
|
5435
|
-
attachmentSchemas: attachmentSchemasSchema
|
|
5511
|
+
attachmentSchemas: attachmentSchemasSchema,
|
|
5512
|
+
attachmentMeta: attachmentMetaSchema.optional()
|
|
5436
5513
|
}),
|
|
5437
5514
|
object({
|
|
5438
5515
|
kind: literal("trigger-poll"),
|
|
5439
5516
|
attachmentId: string(),
|
|
5440
5517
|
moduleFile: string(),
|
|
5441
|
-
schedule: string()
|
|
5518
|
+
schedule: string(),
|
|
5519
|
+
name: string().optional(),
|
|
5520
|
+
description: string().optional()
|
|
5442
5521
|
}),
|
|
5443
5522
|
object({
|
|
5444
5523
|
kind: literal("trigger-poll-group"),
|
|
@@ -5451,7 +5530,9 @@ const storedRouteManifestEntryV2Schema = discriminatedUnion("kind", [
|
|
|
5451
5530
|
kind: literal("cron-schedule"),
|
|
5452
5531
|
attachmentId: string(),
|
|
5453
5532
|
moduleFile: string(),
|
|
5454
|
-
schedule: string()
|
|
5533
|
+
schedule: string(),
|
|
5534
|
+
name: string().optional(),
|
|
5535
|
+
description: string().optional()
|
|
5455
5536
|
})
|
|
5456
5537
|
]);
|
|
5457
5538
|
const StoredRouteManifestSchema = object({
|
|
@@ -5982,6 +6063,12 @@ const SubmitMarketingContactRequestSchema = object({
|
|
|
5982
6063
|
/** Honeypot — must stay empty; bots that fill it are ignored silently. */
|
|
5983
6064
|
companyWebsite: string().optional()
|
|
5984
6065
|
});
|
|
6066
|
+
function isCredentialInput(value) {
|
|
6067
|
+
if (typeof value !== "object" || value === null) return false;
|
|
6068
|
+
const candidate = value;
|
|
6069
|
+
return typeof candidate.key === "string" && CredentialAuthKindSchema.safeParse(candidate.kind).success && candidate.schema instanceof ZodType;
|
|
6070
|
+
}
|
|
6071
|
+
const credentialInputSchema = custom((value) => isCredentialInput(value), "must be a credential requirement");
|
|
5985
6072
|
function normalizeCredentialList(list) {
|
|
5986
6073
|
return list.map((item) => toCredentialRequirement(item));
|
|
5987
6074
|
}
|
|
@@ -6071,7 +6158,7 @@ object({
|
|
|
6071
6158
|
attachments: array(string().min(1)).optional()
|
|
6072
6159
|
});
|
|
6073
6160
|
const PollRunMultiResponseSchema = object({ results: array(object({
|
|
6074
|
-
|
|
6161
|
+
attachmentSlug: string(),
|
|
6075
6162
|
workflowKey: string(),
|
|
6076
6163
|
runId: string().optional(),
|
|
6077
6164
|
body: unknown().optional(),
|
|
@@ -6109,6 +6196,8 @@ const AgentTriggerTypeSchema = _enum([
|
|
|
6109
6196
|
const AgentTriggerSummaryListResponseSchema = array(object({
|
|
6110
6197
|
id: string(),
|
|
6111
6198
|
label: string(),
|
|
6199
|
+
name: string().nullable().optional(),
|
|
6200
|
+
description: string().nullable().optional(),
|
|
6112
6201
|
type: AgentTriggerTypeSchema,
|
|
6113
6202
|
schedule: string().nullable(),
|
|
6114
6203
|
endpoint: string().nullable(),
|
|
@@ -6454,7 +6543,7 @@ const HistoryTraceTriggerSchema = object({
|
|
|
6454
6543
|
workflowKey: string().optional(),
|
|
6455
6544
|
agentKey: string().optional(),
|
|
6456
6545
|
attachmentId: string().nullable().optional(),
|
|
6457
|
-
|
|
6546
|
+
attachmentSlug: string().nullable().optional(),
|
|
6458
6547
|
route: string().optional(),
|
|
6459
6548
|
sourcePath: string().nullable().optional()
|
|
6460
6549
|
}).nullable();
|
|
@@ -6494,7 +6583,7 @@ const HistoryRunDetailSchema = discriminatedUnion("kind", [object({
|
|
|
6494
6583
|
}),
|
|
6495
6584
|
trigger: object({
|
|
6496
6585
|
id: string(),
|
|
6497
|
-
|
|
6586
|
+
attachmentSlug: string().nullable(),
|
|
6498
6587
|
triggerType: string(),
|
|
6499
6588
|
sourcePath: string().nullable(),
|
|
6500
6589
|
payload: unknown().nullable(),
|
|
@@ -6526,7 +6615,7 @@ const HistoryRunDetailSchema = discriminatedUnion("kind", [object({
|
|
|
6526
6615
|
}),
|
|
6527
6616
|
gateway: object({
|
|
6528
6617
|
threadId: string(),
|
|
6529
|
-
|
|
6618
|
+
attachmentSlug: string().nullable()
|
|
6530
6619
|
}).nullable(),
|
|
6531
6620
|
messages: array(record(string(), unknown())),
|
|
6532
6621
|
trace: HistoryTraceSchema.nullable(),
|
|
@@ -6645,7 +6734,9 @@ const TriggerTypeSchema = _enum([
|
|
|
6645
6734
|
]);
|
|
6646
6735
|
const TriggerTargetKindSchema = _enum(["workflow", "agent"]);
|
|
6647
6736
|
const TriggerListItemSchema = object({
|
|
6648
|
-
|
|
6737
|
+
slug: string(),
|
|
6738
|
+
name: string().optional(),
|
|
6739
|
+
description: string().optional(),
|
|
6649
6740
|
type: TriggerTypeSchema,
|
|
6650
6741
|
route: string().optional(),
|
|
6651
6742
|
webhookUrl: string().url().optional(),
|
|
@@ -7026,6 +7117,6 @@ const ListAgentMemoryFilesResponseSchema = object({ files: array(object({
|
|
|
7026
7117
|
path: string().min(1)
|
|
7027
7118
|
})) });
|
|
7028
7119
|
//#endregion
|
|
7029
|
-
export { HistoryRunListQuerySchema as $, UpdateCredentialInstanceBodySchema as $t, CreateCustomAppRequestSchema as A,
|
|
7120
|
+
export { HistoryRunListQuerySchema as $, UpdateCredentialInstanceBodySchema as $t, CreateCustomAppRequestSchema as A, _enum as An, ProjectSettingsResponseSchema as At, CredentialConsumerListQuerySchema as B, looseObject as Bn, SlugAvailabilityResponseSchema as Bt, ConnectAuthorizeUrlResponseSchema as C, originFromPublicUrl as Cn, PresignOrgLogoResponseSchema as Ct, CreateCredentialInstanceBodySchema as D, slugifyAppName as Dn, PresignUserAvatarResponseSchema as Dt, CreateApiKeyResponseSchema as E, resolvePublicPlatformOrigin as En, PresignUserAvatarRequestSchema as Et, CreateProjectRequestSchema as F, boolean as Fn, QueuedRunResponseSchema as Ft, DownloadActiveProjectArtifactResponseSchema as G, record as Gn, StoredRouteManifestSchema as Gt, CredentialInstanceListResponseSchema as H, object as Hn, StartKeystrokeConnectionResultSchema as Ht, CreateProjectResponseSchema as I, custom as In, ROUTE_MANIFEST_REL_PATH as It, GetCredentialResponseSchema as J, unknown as Jn, TriggerDetailResponseSchema as Jt, ErrorResponseSchema as K, string as Kn, SubmitMarketingContactRequestSchema as Kt, CredentialAssignmentListQuerySchema as L, discriminatedUnion as Ln, RecentResourceListResponseSchema as Lt, CreateOrganizationRequestSchema as M, _null as Mn, PromptInputSchema as Mt, CreateOrganizationResponseSchema as N, any as Nn, PromptResponseSchema as Nt, CreateCredentialsRequestSchema as O, number as On, ProjectReachabilityResponseSchema as Ot, CreateProjectArtifactResponseSchema as P, array as Pn, QueuedAgentPromptResponseSchema as Pt, HistoryRunDetailResponseSchema as Q, NEVER as Qn, UpdateChannelBindingBodySchema as Qt, CredentialAssignmentListResponseSchema as R, intersection as Rn, SkillSummaryDetailResponseSchema as Rt, CompleteProjectArtifactResponseSchema as S, normalizeCredentialList as Sn, PresignOrgLogoRequestSchema as St, CreateApiKeyRequestSchema as T, parseErrorResponse as Tn, PresignProjectSourceResponseSchema as Tt, CredentialInstanceRecordSchema as U, optional as Un, StartOAuthConnectionInputSchema as Ut, CredentialConsumerListResponseSchema as V, number$1 as Vn, StartKeystrokeConnectionInputSchema as Vt, DeclineOrganizationInvitationResponseSchema as W, preprocess as Wn, StartOAuthConnectionResultSchema as Wt, HealthResponseSchema as X, datetime as Xn, TriggerRunDetailResponseSchema as Xt, GetCustomAppResponseSchema as Y, url as Yn, TriggerListResponseSchema as Yt, HistoryRunCancelResponseSchema as Z, toJSONSchema as Zn, TriggerRunListResponseSchema as Zt, ChannelAccountListResponseSchema as _, WorkflowSummaryDetailResponseSchema as _n, ListProjectsResponseSchema as _t, AgentSessionDetailResponseSchema as a, UpdateProjectMemberResponseSchema as an, LOCAL_PLATFORM_ORIGIN as at, ChannelDirectoryListResponseSchema as b, credentialInputSchema as bn, PROJECT_REACHABILITY_REQUEST_TIMEOUT_MS as bt, AgentSummaryListResponseSchema as c, UploadProjectSourceManifestRequestSchema as cn, ListAppsResponseSchema as ct, AssignCredentialBodySchema as d, UserAvatarPatchSchema as dn, ListOrganizationMembersResponseSchema as dt, UpdateCredentialRequestSchema as en, HistoryRunListResponseSchema as et, BindChannelBodySchema as f, UserAvatarSchema as fn, ListOrganizationsResponseSchema as ft, CatalogAppsPageResponseSchema as g, WorkflowRunListResponseSchema as gn, ListProjectMetricsResponseSchema as gt, CatalogAppDetailResponseSchema as h, WorkflowRunDetailResponseSchema as hn, ListProjectMembersResponseSchema as ht, AgentSessionChatStateResponseSchema as i, UpdateProjectMemberRequestSchema as in, InviteProjectMembersResponseSchema as it, CreateCustomAppResponseSchema as j, _function as jn, ProjectSlugAvailabilityResponseSchema as jt, CreateCredentialsResponseSchema as k, ZodType as kn, ProjectResponseSchema as kt, AgentTriggerSummaryListResponseSchema as l, UploadProjectSourceResponseSchema as ln, ListCredentialsResponseSchema as lt, CatalogActionsPageResponseSchema as m, UserPreferencesSchema as mn, ListProjectFilesResponseSchema as mt, AcceptOrganizationInvitationResponseSchema as n, UpdateOrganizationMemberResponseSchema as nn, InviteOrganizationMembersResponseSchema as nt, AgentSessionListResponseSchema as o, UpdateProjectRequestSchema as on, ListAgentMemoryFilesResponseSchema as ot, CatalogActionDetailResponseSchema as p, UserPreferencesPatchSchema as pn, ListProjectDeploymentsResponseSchema as pt, GatewayAttachmentRecordSchema as q, union as qn, SubmitTeamRequestRequestSchema as qt, ActiveOrganizationResponseSchema as r, UpdateOrganizationRequestSchema as rn, InviteProjectMembersRequestSchema as rt, AgentSummaryDetailResponseSchema as s, UpdateProjectSettingsRequestSchema as sn, ListApiKeysResponseSchema as st, ACTIVE_ORG_HEADER as t, UpdateOrganizationMemberRequestSchema as tn, InviteOrganizationMembersRequestSchema as tt, AppSlugAvailabilityResponseSchema as u, UpsertGatewayAttachmentBodySchema as un, ListOrganizationInvitationsResponseSchema as ut, ChannelConnectionListResponseSchema as v, WorkflowSummaryListResponseSchema as vn, OrganizationSidebarBrandingPatchSchema as vt, ConnectProvidersResponseSchema as w, parseAppSlug as wn, PresignProjectSourceRequestSchema as wt, ChannelPlatformSchema as x, listenPortFromPublicUrl as xn, PollRunResponseSchema as xt, ChannelConnectionSchema as y, buildConnectDeeplink as yn, OrganizationSidebarBrandingSchema as yt, CredentialAssignmentRecordSchema as z, literal as zn, SkillSummaryListResponseSchema as zt };
|
|
7030
7121
|
|
|
7031
|
-
//# sourceMappingURL=dist-
|
|
7122
|
+
//# sourceMappingURL=dist-CZRI7PWQ.mjs.map
|