@keystrokehq/cli 0.0.100 → 0.0.101
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/index.mjs +58 -22
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -6459,6 +6459,17 @@ const PollRunResponseSchema = union([
|
|
|
6459
6459
|
SkipResponseSchema,
|
|
6460
6460
|
object({ runId: string() })
|
|
6461
6461
|
]);
|
|
6462
|
+
const RunSourceKindSchema = _enum([
|
|
6463
|
+
"api",
|
|
6464
|
+
"trigger",
|
|
6465
|
+
"gateway",
|
|
6466
|
+
"workflow",
|
|
6467
|
+
"agent"
|
|
6468
|
+
]);
|
|
6469
|
+
object({
|
|
6470
|
+
kind: RunSourceKindSchema,
|
|
6471
|
+
id: string().nullable()
|
|
6472
|
+
});
|
|
6462
6473
|
const WorkflowRunStatusSchema = _enum([
|
|
6463
6474
|
"pending",
|
|
6464
6475
|
"running",
|
|
@@ -6491,6 +6502,8 @@ const WorkflowRunSummarySchema = object({
|
|
|
6491
6502
|
triggeredAt: string(),
|
|
6492
6503
|
startedAt: string().nullable(),
|
|
6493
6504
|
finishedAt: string().nullable(),
|
|
6505
|
+
sourceKind: RunSourceKindSchema,
|
|
6506
|
+
sourceId: string().nullable(),
|
|
6494
6507
|
triggerRunId: string().nullable(),
|
|
6495
6508
|
attachmentId: string().nullable()
|
|
6496
6509
|
});
|
|
@@ -6502,6 +6515,8 @@ const WorkflowRunRecordSchema = object({
|
|
|
6502
6515
|
triggeredAt: string(),
|
|
6503
6516
|
startedAt: string().nullable(),
|
|
6504
6517
|
finishedAt: string().nullable(),
|
|
6518
|
+
sourceKind: RunSourceKindSchema,
|
|
6519
|
+
sourceId: string().nullable(),
|
|
6505
6520
|
triggerRunId: string().nullable(),
|
|
6506
6521
|
attachmentId: string().nullable(),
|
|
6507
6522
|
parentWorkflowRunId: string().nullable(),
|
|
@@ -6604,11 +6619,11 @@ const AgentSessionStatusSchema = _enum([
|
|
|
6604
6619
|
"completed",
|
|
6605
6620
|
"failed"
|
|
6606
6621
|
]);
|
|
6607
|
-
const AgentSessionSourceSchema = _enum(["api", "gateway"]);
|
|
6608
6622
|
const AgentSessionSummarySchema = object({
|
|
6609
6623
|
id: string(),
|
|
6610
6624
|
status: AgentSessionStatusSchema,
|
|
6611
|
-
source:
|
|
6625
|
+
source: RunSourceKindSchema,
|
|
6626
|
+
sourceId: string().nullable(),
|
|
6612
6627
|
createdAt: string(),
|
|
6613
6628
|
updatedAt: string(),
|
|
6614
6629
|
messageCount: number$1()
|
|
@@ -6617,7 +6632,8 @@ const AgentSessionRecordSchema = object({
|
|
|
6617
6632
|
id: string(),
|
|
6618
6633
|
agentKey: string(),
|
|
6619
6634
|
status: AgentSessionStatusSchema,
|
|
6620
|
-
source:
|
|
6635
|
+
source: RunSourceKindSchema,
|
|
6636
|
+
sourceId: string().nullable(),
|
|
6621
6637
|
createdAt: string(),
|
|
6622
6638
|
updatedAt: string(),
|
|
6623
6639
|
parentSpanId: string().nullable(),
|
|
@@ -6628,7 +6644,7 @@ object({
|
|
|
6628
6644
|
limit: number().int().min(1).max(100).optional().default(20),
|
|
6629
6645
|
cursor: string().min(1).optional(),
|
|
6630
6646
|
status: AgentSessionStatusSchema.optional(),
|
|
6631
|
-
source:
|
|
6647
|
+
source: RunSourceKindSchema.optional()
|
|
6632
6648
|
});
|
|
6633
6649
|
const AgentSessionListResponseSchema = object({
|
|
6634
6650
|
items: array(AgentSessionSummarySchema),
|
|
@@ -6738,12 +6754,17 @@ const TriggerRunWorkflowSummarySchema = object({
|
|
|
6738
6754
|
status: WorkflowRunStatusSchema,
|
|
6739
6755
|
workflowKey: string()
|
|
6740
6756
|
});
|
|
6757
|
+
const TriggerRunAgentSessionSummarySchema = object({
|
|
6758
|
+
id: string(),
|
|
6759
|
+
agentKey: string()
|
|
6760
|
+
});
|
|
6741
6761
|
const TriggerRunSummarySchema = object({
|
|
6742
6762
|
id: string(),
|
|
6743
6763
|
triggerType: TriggerRunTypeSchema,
|
|
6744
6764
|
triggeredAt: string(),
|
|
6745
6765
|
sourcePath: string().nullable(),
|
|
6746
|
-
workflowRun: TriggerRunWorkflowSummarySchema.nullable()
|
|
6766
|
+
workflowRun: TriggerRunWorkflowSummarySchema.nullable(),
|
|
6767
|
+
agentSession: TriggerRunAgentSessionSummarySchema.nullable()
|
|
6747
6768
|
});
|
|
6748
6769
|
const TriggerRunRecordSchema = object({
|
|
6749
6770
|
id: string(),
|
|
@@ -6763,11 +6784,20 @@ const TriggerRunListResponseSchema = object({
|
|
|
6763
6784
|
items: array(TriggerRunSummarySchema),
|
|
6764
6785
|
nextCursor: string().nullable()
|
|
6765
6786
|
});
|
|
6766
|
-
_enum([
|
|
6787
|
+
_enum([
|
|
6788
|
+
"workflows",
|
|
6789
|
+
"agents",
|
|
6790
|
+
"trace"
|
|
6791
|
+
]);
|
|
6767
6792
|
object({ include: string().optional() });
|
|
6793
|
+
const TriggerRunAgentSessionDetailSchema = object({
|
|
6794
|
+
id: string(),
|
|
6795
|
+
agentKey: string()
|
|
6796
|
+
});
|
|
6768
6797
|
const TriggerRunDetailResponseSchema = object({
|
|
6769
6798
|
run: TriggerRunRecordSchema,
|
|
6770
6799
|
workflowRuns: array(WorkflowRunSummarySchema),
|
|
6800
|
+
agentSessions: array(TriggerRunAgentSessionDetailSchema),
|
|
6771
6801
|
trace: TraceResponseSchema.nullable()
|
|
6772
6802
|
});
|
|
6773
6803
|
const TriggerTypeSchema = _enum([
|
|
@@ -6775,12 +6805,15 @@ const TriggerTypeSchema = _enum([
|
|
|
6775
6805
|
"poll",
|
|
6776
6806
|
"cron"
|
|
6777
6807
|
]);
|
|
6808
|
+
const TriggerTargetKindSchema = _enum(["workflow", "agent"]);
|
|
6778
6809
|
const TriggerListItemSchema = object({
|
|
6779
6810
|
key: string(),
|
|
6780
6811
|
type: TriggerTypeSchema,
|
|
6781
6812
|
route: string().optional(),
|
|
6782
6813
|
webhookUrl: string().url().optional(),
|
|
6783
|
-
|
|
6814
|
+
targetKind: TriggerTargetKindSchema,
|
|
6815
|
+
workflowKey: string().optional(),
|
|
6816
|
+
agentKey: string().optional()
|
|
6784
6817
|
});
|
|
6785
6818
|
const TriggerListResponseSchema = object({ triggers: array(TriggerListItemSchema) });
|
|
6786
6819
|
object({ endpoint: string().min(1).optional() });
|
|
@@ -10068,6 +10101,7 @@ const historyDetailById = {
|
|
|
10068
10101
|
agentKey: "support-agent",
|
|
10069
10102
|
status: "completed",
|
|
10070
10103
|
source: "gateway",
|
|
10104
|
+
sourceId: "gw-slack-incoming",
|
|
10071
10105
|
createdAt: "2026-04-20T15:44:00Z",
|
|
10072
10106
|
updatedAt: "2026-04-20T15:44:42Z",
|
|
10073
10107
|
messageCount: 8,
|
|
@@ -10095,6 +10129,7 @@ const historyDetailById = {
|
|
|
10095
10129
|
agentKey: "support-agent",
|
|
10096
10130
|
status: "failed",
|
|
10097
10131
|
source: "gateway",
|
|
10132
|
+
sourceId: "gw-slack-incoming",
|
|
10098
10133
|
createdAt: "2026-04-19T18:22:00Z",
|
|
10099
10134
|
updatedAt: "2026-04-19T18:22:12Z",
|
|
10100
10135
|
messageCount: 2,
|
|
@@ -10152,6 +10187,7 @@ const historyDetailById = {
|
|
|
10152
10187
|
agentKey: "research-agent",
|
|
10153
10188
|
status: "completed",
|
|
10154
10189
|
source: "api",
|
|
10190
|
+
sourceId: null,
|
|
10155
10191
|
createdAt: "2026-06-01T09:15:00Z",
|
|
10156
10192
|
updatedAt: "2026-06-01T09:16:24Z",
|
|
10157
10193
|
messageCount: 12,
|
|
@@ -11815,7 +11851,7 @@ function registerCredentialsCommand(program) {
|
|
|
11815
11851
|
/** OAuth device-flow client id for `keystroke auth login`. */
|
|
11816
11852
|
const CLI_CLIENT_ID = "keystroke-cli";
|
|
11817
11853
|
//#endregion
|
|
11818
|
-
//#region ../../node_modules/.pnpm/better-auth@1.6.11_@tanstack+react-start@1.168.
|
|
11854
|
+
//#region ../../node_modules/.pnpm/better-auth@1.6.11_@tanstack+react-start@1.168.24_crossws@0.4.5_srvx@0.11.15__react-dom_463872d76b17572f2c53583f9fbba239/node_modules/better-auth/dist/version.mjs
|
|
11819
11855
|
const PACKAGE_VERSION = "1.6.11";
|
|
11820
11856
|
//#endregion
|
|
11821
11857
|
//#region ../../node_modules/.pnpm/better-call@1.3.5_zod@4.4.3/node_modules/better-call/dist/error.mjs
|
|
@@ -11940,7 +11976,7 @@ var BetterAuthError = class extends Error {
|
|
|
11940
11976
|
}
|
|
11941
11977
|
};
|
|
11942
11978
|
//#endregion
|
|
11943
|
-
//#region ../../node_modules/.pnpm/better-auth@1.6.11_@tanstack+react-start@1.168.
|
|
11979
|
+
//#region ../../node_modules/.pnpm/better-auth@1.6.11_@tanstack+react-start@1.168.24_crossws@0.4.5_srvx@0.11.15__react-dom_463872d76b17572f2c53583f9fbba239/node_modules/better-auth/dist/plugins/device-authorization/client.mjs
|
|
11944
11980
|
const deviceAuthorizationClient = () => {
|
|
11945
11981
|
return {
|
|
11946
11982
|
id: "device-authorization",
|
|
@@ -12085,7 +12121,7 @@ let onMount = ($store, initialize) => {
|
|
|
12085
12121
|
});
|
|
12086
12122
|
};
|
|
12087
12123
|
//#endregion
|
|
12088
|
-
//#region ../../node_modules/.pnpm/better-auth@1.6.11_@tanstack+react-start@1.168.
|
|
12124
|
+
//#region ../../node_modules/.pnpm/better-auth@1.6.11_@tanstack+react-start@1.168.24_crossws@0.4.5_srvx@0.11.15__react-dom_463872d76b17572f2c53583f9fbba239/node_modules/better-auth/dist/client/query.mjs
|
|
12089
12125
|
const isServer = () => typeof window === "undefined";
|
|
12090
12126
|
const useAuthQuery = (initializedAtom, path, $fetch, options) => {
|
|
12091
12127
|
const value = /* @__PURE__ */ atom({
|
|
@@ -12179,7 +12215,7 @@ const useAuthQuery = (initializedAtom, path, $fetch, options) => {
|
|
|
12179
12215
|
return value;
|
|
12180
12216
|
};
|
|
12181
12217
|
//#endregion
|
|
12182
|
-
//#region ../../node_modules/.pnpm/better-auth@1.6.11_@tanstack+react-start@1.168.
|
|
12218
|
+
//#region ../../node_modules/.pnpm/better-auth@1.6.11_@tanstack+react-start@1.168.24_crossws@0.4.5_srvx@0.11.15__react-dom_463872d76b17572f2c53583f9fbba239/node_modules/better-auth/dist/client/broadcast-channel.mjs
|
|
12183
12219
|
const kBroadcastChannel = Symbol.for("better-auth:broadcast-channel");
|
|
12184
12220
|
const now$1 = () => Math.floor(Date.now() / 1e3);
|
|
12185
12221
|
var WindowBroadcastChannel = class {
|
|
@@ -12222,7 +12258,7 @@ function getGlobalBroadcastChannel(name = "better-auth.message") {
|
|
|
12222
12258
|
return globalThis[kBroadcastChannel];
|
|
12223
12259
|
}
|
|
12224
12260
|
//#endregion
|
|
12225
|
-
//#region ../../node_modules/.pnpm/better-auth@1.6.11_@tanstack+react-start@1.168.
|
|
12261
|
+
//#region ../../node_modules/.pnpm/better-auth@1.6.11_@tanstack+react-start@1.168.24_crossws@0.4.5_srvx@0.11.15__react-dom_463872d76b17572f2c53583f9fbba239/node_modules/better-auth/dist/client/focus-manager.mjs
|
|
12226
12262
|
const kFocusManager = Symbol.for("better-auth:focus-manager");
|
|
12227
12263
|
var WindowFocusManager = class {
|
|
12228
12264
|
listeners = /* @__PURE__ */ new Set();
|
|
@@ -12251,7 +12287,7 @@ function getGlobalFocusManager() {
|
|
|
12251
12287
|
return globalThis[kFocusManager];
|
|
12252
12288
|
}
|
|
12253
12289
|
//#endregion
|
|
12254
|
-
//#region ../../node_modules/.pnpm/better-auth@1.6.11_@tanstack+react-start@1.168.
|
|
12290
|
+
//#region ../../node_modules/.pnpm/better-auth@1.6.11_@tanstack+react-start@1.168.24_crossws@0.4.5_srvx@0.11.15__react-dom_463872d76b17572f2c53583f9fbba239/node_modules/better-auth/dist/client/online-manager.mjs
|
|
12255
12291
|
const kOnlineManager = Symbol.for("better-auth:online-manager");
|
|
12256
12292
|
var WindowOnlineManager = class {
|
|
12257
12293
|
listeners = /* @__PURE__ */ new Set();
|
|
@@ -12283,7 +12319,7 @@ function getGlobalOnlineManager() {
|
|
|
12283
12319
|
return globalThis[kOnlineManager];
|
|
12284
12320
|
}
|
|
12285
12321
|
//#endregion
|
|
12286
|
-
//#region ../../node_modules/.pnpm/better-auth@1.6.11_@tanstack+react-start@1.168.
|
|
12322
|
+
//#region ../../node_modules/.pnpm/better-auth@1.6.11_@tanstack+react-start@1.168.24_crossws@0.4.5_srvx@0.11.15__react-dom_463872d76b17572f2c53583f9fbba239/node_modules/better-auth/dist/client/parser.mjs
|
|
12287
12323
|
const PROTO_POLLUTION_PATTERNS = {
|
|
12288
12324
|
proto: /"(?:_|\\u0{2}5[Ff]){2}(?:p|\\u0{2}70)(?:r|\\u0{2}72)(?:o|\\u0{2}6[Ff])(?:t|\\u0{2}74)(?:o|\\u0{2}6[Ff])(?:_|\\u0{2}5[Ff]){2}"\s*:/,
|
|
12289
12325
|
constructor: /"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/,
|
|
@@ -12353,7 +12389,7 @@ function parseJSON(value, options = { strict: true }) {
|
|
|
12353
12389
|
return betterJSONParse(value, options);
|
|
12354
12390
|
}
|
|
12355
12391
|
//#endregion
|
|
12356
|
-
//#region ../../node_modules/.pnpm/better-auth@1.6.11_@tanstack+react-start@1.168.
|
|
12392
|
+
//#region ../../node_modules/.pnpm/better-auth@1.6.11_@tanstack+react-start@1.168.24_crossws@0.4.5_srvx@0.11.15__react-dom_463872d76b17572f2c53583f9fbba239/node_modules/better-auth/dist/client/session-refresh.mjs
|
|
12357
12393
|
const now = () => Math.floor(Date.now() / 1e3);
|
|
12358
12394
|
/**
|
|
12359
12395
|
* Normalize $fetch response: `throw: true` returns data directly, otherwise `{ data, error }`.
|
|
@@ -12551,7 +12587,7 @@ Object.freeze({
|
|
|
12551
12587
|
}
|
|
12552
12588
|
});
|
|
12553
12589
|
//#endregion
|
|
12554
|
-
//#region ../../node_modules/.pnpm/better-auth@1.6.11_@tanstack+react-start@1.168.
|
|
12590
|
+
//#region ../../node_modules/.pnpm/better-auth@1.6.11_@tanstack+react-start@1.168.24_crossws@0.4.5_srvx@0.11.15__react-dom_463872d76b17572f2c53583f9fbba239/node_modules/better-auth/dist/utils/url.mjs
|
|
12555
12591
|
function checkHasPath(url) {
|
|
12556
12592
|
try {
|
|
12557
12593
|
return (new URL(url).pathname.replace(/\/+$/, "") || "/") !== "/";
|
|
@@ -12623,7 +12659,7 @@ function getOrigin(url) {
|
|
|
12623
12659
|
}
|
|
12624
12660
|
}
|
|
12625
12661
|
//#endregion
|
|
12626
|
-
//#region ../../node_modules/.pnpm/better-auth@1.6.11_@tanstack+react-start@1.168.
|
|
12662
|
+
//#region ../../node_modules/.pnpm/better-auth@1.6.11_@tanstack+react-start@1.168.24_crossws@0.4.5_srvx@0.11.15__react-dom_463872d76b17572f2c53583f9fbba239/node_modules/better-auth/dist/client/fetch-plugins.mjs
|
|
12627
12663
|
const redirectPlugin = {
|
|
12628
12664
|
id: "redirect",
|
|
12629
12665
|
name: "Redirect",
|
|
@@ -12638,7 +12674,7 @@ const redirectPlugin = {
|
|
|
12638
12674
|
} }
|
|
12639
12675
|
};
|
|
12640
12676
|
//#endregion
|
|
12641
|
-
//#region ../../node_modules/.pnpm/better-auth@1.6.11_@tanstack+react-start@1.168.
|
|
12677
|
+
//#region ../../node_modules/.pnpm/better-auth@1.6.11_@tanstack+react-start@1.168.24_crossws@0.4.5_srvx@0.11.15__react-dom_463872d76b17572f2c53583f9fbba239/node_modules/better-auth/dist/client/session-atom.mjs
|
|
12642
12678
|
function getSessionAtom($fetch, options) {
|
|
12643
12679
|
const $signal = /* @__PURE__ */ atom(false);
|
|
12644
12680
|
const session = useAuthQuery($signal, "/get-session", $fetch, { method: "GET" });
|
|
@@ -13125,7 +13161,7 @@ var betterFetch = async (url, options) => {
|
|
|
13125
13161
|
};
|
|
13126
13162
|
};
|
|
13127
13163
|
//#endregion
|
|
13128
|
-
//#region ../../node_modules/.pnpm/better-auth@1.6.11_@tanstack+react-start@1.168.
|
|
13164
|
+
//#region ../../node_modules/.pnpm/better-auth@1.6.11_@tanstack+react-start@1.168.24_crossws@0.4.5_srvx@0.11.15__react-dom_463872d76b17572f2c53583f9fbba239/node_modules/better-auth/dist/client/config.mjs
|
|
13129
13165
|
const resolvePublicAuthUrl = (basePath) => {
|
|
13130
13166
|
if (typeof process === "undefined") return void 0;
|
|
13131
13167
|
const path = basePath ?? "/api/auth";
|
|
@@ -13223,12 +13259,12 @@ const getClientConfig = (options, loadEnv) => {
|
|
|
13223
13259
|
};
|
|
13224
13260
|
};
|
|
13225
13261
|
//#endregion
|
|
13226
|
-
//#region ../../node_modules/.pnpm/better-auth@1.6.11_@tanstack+react-start@1.168.
|
|
13262
|
+
//#region ../../node_modules/.pnpm/better-auth@1.6.11_@tanstack+react-start@1.168.24_crossws@0.4.5_srvx@0.11.15__react-dom_463872d76b17572f2c53583f9fbba239/node_modules/better-auth/dist/utils/is-atom.mjs
|
|
13227
13263
|
function isAtom(value) {
|
|
13228
13264
|
return typeof value === "object" && value !== null && "get" in value && typeof value.get === "function" && "lc" in value && typeof value.lc === "number";
|
|
13229
13265
|
}
|
|
13230
13266
|
//#endregion
|
|
13231
|
-
//#region ../../node_modules/.pnpm/better-auth@1.6.11_@tanstack+react-start@1.168.
|
|
13267
|
+
//#region ../../node_modules/.pnpm/better-auth@1.6.11_@tanstack+react-start@1.168.24_crossws@0.4.5_srvx@0.11.15__react-dom_463872d76b17572f2c53583f9fbba239/node_modules/better-auth/dist/client/proxy.mjs
|
|
13232
13268
|
function getMethod(path, knownPathMethods, args) {
|
|
13233
13269
|
const method = knownPathMethods[path];
|
|
13234
13270
|
const { fetchOptions, query: _query, ...body } = args || {};
|
|
@@ -13308,7 +13344,7 @@ function capitalizeFirstLetter(str) {
|
|
|
13308
13344
|
return str.charAt(0).toUpperCase() + str.slice(1);
|
|
13309
13345
|
}
|
|
13310
13346
|
//#endregion
|
|
13311
|
-
//#region ../../node_modules/.pnpm/better-auth@1.6.11_@tanstack+react-start@1.168.
|
|
13347
|
+
//#region ../../node_modules/.pnpm/better-auth@1.6.11_@tanstack+react-start@1.168.24_crossws@0.4.5_srvx@0.11.15__react-dom_463872d76b17572f2c53583f9fbba239/node_modules/better-auth/dist/client/vanilla.mjs
|
|
13312
13348
|
function createAuthClient(options) {
|
|
13313
13349
|
const { pluginPathMethods, pluginsActions, pluginsAtoms, $fetch, atomListeners, $store } = getClientConfig(options);
|
|
13314
13350
|
const resolvedHooks = {};
|