@keystrokehq/keystroke 0.0.88 → 0.0.90

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 (69) hide show
  1. package/dist/action.cjs +1 -1
  2. package/dist/action.d.cts +2 -2
  3. package/dist/action.d.mts +2 -2
  4. package/dist/action.mjs +1 -1
  5. package/dist/agent.cjs +3 -3
  6. package/dist/agent.d.cts +3 -3
  7. package/dist/agent.d.mts +3 -3
  8. package/dist/agent.mjs +3 -3
  9. package/dist/config.d.cts +1 -1
  10. package/dist/config.d.cts.map +1 -1
  11. package/dist/config.d.mts +1 -1
  12. package/dist/config.d.mts.map +1 -1
  13. package/dist/credentials.cjs +1 -1
  14. package/dist/credentials.d.cts +1 -1
  15. package/dist/credentials.d.mts +1 -1
  16. package/dist/credentials.mjs +1 -1
  17. package/dist/{dist-DgIJtGrg.mjs → dist-BFyot0Xl.mjs} +27 -41
  18. package/dist/{dist-DgIJtGrg.mjs.map → dist-BFyot0Xl.mjs.map} +1 -1
  19. package/dist/{dist-B1Dy8DVb.cjs → dist-CIwENY01.cjs} +27 -41
  20. package/dist/{dist-B1Dy8DVb.cjs.map → dist-CIwENY01.cjs.map} +1 -1
  21. package/dist/{dist-DYbhRy-F.mjs → dist-CnS5tygi.mjs} +13 -1
  22. package/dist/dist-CnS5tygi.mjs.map +1 -0
  23. package/dist/{dist-BdtvGgfO.mjs → dist-DL6FMwfb.mjs} +200 -122
  24. package/dist/dist-DL6FMwfb.mjs.map +1 -0
  25. package/dist/{dist-BM_f7hFN.cjs → dist-DLFFj5pe.cjs} +13 -1
  26. package/dist/dist-DLFFj5pe.cjs.map +1 -0
  27. package/dist/{dist-CZZMGcuu.cjs → dist-iCJ9uxzf.cjs} +211 -127
  28. package/dist/dist-iCJ9uxzf.cjs.map +1 -0
  29. package/dist/{index-Bv6uZ8Xd.d.mts → index-C6_DVB_V.d.cts} +14 -17
  30. package/dist/index-C6_DVB_V.d.cts.map +1 -0
  31. package/dist/{index-avLUReqf.d.cts → index-CfK7yBQI.d.cts} +2 -2
  32. package/dist/{index-CvXJv3hY.d.mts.map → index-CfK7yBQI.d.cts.map} +1 -1
  33. package/dist/{index-BeEymXir.d.cts → index-CiuCYKLw.d.cts} +22 -2
  34. package/dist/index-CiuCYKLw.d.cts.map +1 -0
  35. package/dist/{index-BeEymXir.d.mts → index-CiuCYKLw.d.mts} +22 -2
  36. package/dist/index-CiuCYKLw.d.mts.map +1 -0
  37. package/dist/{index-CpJJgeJ2.d.cts → index-DwZkaYLS.d.mts} +14 -17
  38. package/dist/index-DwZkaYLS.d.mts.map +1 -0
  39. package/dist/{index-BwRlj7pv.d.cts → index-MfPRY7cK.d.cts} +2 -2
  40. package/dist/{index-BspW44XX.d.mts.map → index-MfPRY7cK.d.cts.map} +1 -1
  41. package/dist/{index-CvXJv3hY.d.mts → index-by6PXA-8.d.mts} +2 -2
  42. package/dist/{index-avLUReqf.d.cts.map → index-by6PXA-8.d.mts.map} +1 -1
  43. package/dist/{index-BspW44XX.d.mts → index-ptRM3z9H.d.mts} +2 -2
  44. package/dist/{index-BwRlj7pv.d.cts.map → index-ptRM3z9H.d.mts.map} +1 -1
  45. package/dist/{mistral-Deqt4GvJ.cjs → mistral-BPMTd7Oz.cjs} +2 -2
  46. package/dist/{mistral-Deqt4GvJ.cjs.map → mistral-BPMTd7Oz.cjs.map} +1 -1
  47. package/dist/{mistral-wT_K1dZn.mjs → mistral-DoHWkziU.mjs} +2 -2
  48. package/dist/{mistral-wT_K1dZn.mjs.map → mistral-DoHWkziU.mjs.map} +1 -1
  49. package/dist/{sse-D12n5Ckf.mjs → sse-CWAja0ZC.mjs} +2 -2
  50. package/dist/{sse-D12n5Ckf.mjs.map → sse-CWAja0ZC.mjs.map} +1 -1
  51. package/dist/{sse-DvOq9Ntd.cjs → sse-D-SrPUr3.cjs} +2 -2
  52. package/dist/{sse-DvOq9Ntd.cjs.map → sse-D-SrPUr3.cjs.map} +1 -1
  53. package/dist/trigger.cjs +1 -1
  54. package/dist/trigger.d.cts +2 -2
  55. package/dist/trigger.d.mts +2 -2
  56. package/dist/trigger.mjs +1 -1
  57. package/dist/workflow.cjs +3 -2
  58. package/dist/workflow.d.cts +2 -2
  59. package/dist/workflow.d.mts +2 -2
  60. package/dist/workflow.mjs +2 -2
  61. package/package.json +1 -1
  62. package/dist/dist-BM_f7hFN.cjs.map +0 -1
  63. package/dist/dist-BdtvGgfO.mjs.map +0 -1
  64. package/dist/dist-CZZMGcuu.cjs.map +0 -1
  65. package/dist/dist-DYbhRy-F.mjs.map +0 -1
  66. package/dist/index-BeEymXir.d.cts.map +0 -1
  67. package/dist/index-BeEymXir.d.mts.map +0 -1
  68. package/dist/index-Bv6uZ8Xd.d.mts.map +0 -1
  69. package/dist/index-CpJJgeJ2.d.cts.map +0 -1
@@ -1,2 +1,2 @@
1
- import { C as toCredentialRequirement, S as normalizeCredentialList, _ as ResolvedCredentials, a as CredentialInput, b as defineCredential, d as DefineCredentialInput, f as DefineOAuthCredentialInput, l as CredentialScopeLevel, m as NormalizeCredential, n as Credential, o as CredentialList, p as DefineStaticCredentialInput, r as CredentialAuthKind, s as CredentialRequirement, t as CREDENTIAL_SCOPE_LEVELS, u as DEFAULT_CREDENTIAL_RESOLUTION_CHAIN, v as credential, x as isCredentialInput, y as credentialInputSchema } from "./index-BeEymXir.cjs";
1
+ import { C as normalizeCredentialList, S as isCredentialInput, _ as ResolvedCredentials, a as CredentialInput, b as credentialInputSchema, d as DefineCredentialInput, f as DefineOAuthCredentialInput, l as CredentialScopeLevel, m as NormalizeCredential, n as Credential, o as CredentialList, p as DefineStaticCredentialInput, r as CredentialAuthKind, s as CredentialRequirement, t as CREDENTIAL_SCOPE_LEVELS, u as DEFAULT_CREDENTIAL_RESOLUTION_CHAIN, w as toCredentialRequirement, x as defineCredential, y as credential } from "./index-CiuCYKLw.cjs";
2
2
  export { CREDENTIAL_SCOPE_LEVELS, type Credential, type CredentialAuthKind, type CredentialInput, type CredentialList, type CredentialRequirement, type CredentialScopeLevel, DEFAULT_CREDENTIAL_RESOLUTION_CHAIN, type DefineCredentialInput, type DefineOAuthCredentialInput, type DefineStaticCredentialInput, type NormalizeCredential, type ResolvedCredentials, credential, credentialInputSchema, defineCredential, isCredentialInput, normalizeCredentialList, toCredentialRequirement };
@@ -1,2 +1,2 @@
1
- import { C as toCredentialRequirement, S as normalizeCredentialList, _ as ResolvedCredentials, a as CredentialInput, b as defineCredential, d as DefineCredentialInput, f as DefineOAuthCredentialInput, l as CredentialScopeLevel, m as NormalizeCredential, n as Credential, o as CredentialList, p as DefineStaticCredentialInput, r as CredentialAuthKind, s as CredentialRequirement, t as CREDENTIAL_SCOPE_LEVELS, u as DEFAULT_CREDENTIAL_RESOLUTION_CHAIN, v as credential, x as isCredentialInput, y as credentialInputSchema } from "./index-BeEymXir.mjs";
1
+ import { C as normalizeCredentialList, S as isCredentialInput, _ as ResolvedCredentials, a as CredentialInput, b as credentialInputSchema, d as DefineCredentialInput, f as DefineOAuthCredentialInput, l as CredentialScopeLevel, m as NormalizeCredential, n as Credential, o as CredentialList, p as DefineStaticCredentialInput, r as CredentialAuthKind, s as CredentialRequirement, t as CREDENTIAL_SCOPE_LEVELS, u as DEFAULT_CREDENTIAL_RESOLUTION_CHAIN, w as toCredentialRequirement, x as defineCredential, y as credential } from "./index-CiuCYKLw.mjs";
2
2
  export { CREDENTIAL_SCOPE_LEVELS, type Credential, type CredentialAuthKind, type CredentialInput, type CredentialList, type CredentialRequirement, type CredentialScopeLevel, DEFAULT_CREDENTIAL_RESOLUTION_CHAIN, type DefineCredentialInput, type DefineOAuthCredentialInput, type DefineStaticCredentialInput, type NormalizeCredential, type ResolvedCredentials, credential, credentialInputSchema, defineCredential, isCredentialInput, normalizeCredentialList, toCredentialRequirement };
@@ -1,2 +1,2 @@
1
- import { _ as credentialInputSchema, b as normalizeCredentialList, g as credential, h as DEFAULT_CREDENTIAL_RESOLUTION_CHAIN, p as CREDENTIAL_SCOPE_LEVELS, v as defineCredential, x as toCredentialRequirement, y as isCredentialInput } from "./dist-DYbhRy-F.mjs";
1
+ import { _ as credentialInputSchema, b as normalizeCredentialList, g as credential, h as DEFAULT_CREDENTIAL_RESOLUTION_CHAIN, p as CREDENTIAL_SCOPE_LEVELS, v as defineCredential, x as toCredentialRequirement, y as isCredentialInput } from "./dist-CnS5tygi.mjs";
2
2
  export { CREDENTIAL_SCOPE_LEVELS, DEFAULT_CREDENTIAL_RESOLUTION_CHAIN, credential, credentialInputSchema, defineCredential, isCredentialInput, normalizeCredentialList, toCredentialRequirement };
@@ -1,5 +1,5 @@
1
1
  import { Bn as __require, Ln as __commonJSMin, Vn as __toESM } from "./dist-f_JGyGWx.mjs";
2
- import { b as normalizeCredentialList, m as CREDENTIAL_SCOPE_LEVEL_TO_SCOPE_TYPE } from "./dist-DYbhRy-F.mjs";
2
+ import { b as normalizeCredentialList, m as CREDENTIAL_SCOPE_LEVEL_TO_SCOPE_TYPE } from "./dist-CnS5tygi.mjs";
3
3
  import { AsyncLocalStorage } from "node:async_hooks";
4
4
  import "node:fs";
5
5
  import { ZodFirstPartyTypeKind } from "zod/v3";
@@ -13255,7 +13255,7 @@ async function connectMcpServer(name, options) {
13255
13255
  }
13256
13256
  async function createTransport(url, transport, requestInit, fetchImpl) {
13257
13257
  if (transport === "sse") {
13258
- const { SSEClientTransport } = await import("./sse-D12n5Ckf.mjs");
13258
+ const { SSEClientTransport } = await import("./sse-CWAja0ZC.mjs");
13259
13259
  return new SSEClientTransport(url, {
13260
13260
  requestInit,
13261
13261
  fetch: fetchImpl
@@ -16481,6 +16481,26 @@ const triggerAttachmentsSqlite = sqliteTable("trigger_attachments", {
16481
16481
  updatedAt: integer("updated_at", { mode: "timestamp_ms" }).notNull(),
16482
16482
  deletedAt: integer("deleted_at", { mode: "timestamp_ms" })
16483
16483
  }, (table) => [uniqueIndex("trigger_attachments_project_id_key_idx").on(table.projectId, table.key)]);
16484
+ const triggerSchedules = pgTable("trigger_schedules", {
16485
+ id: text$1("id").primaryKey(),
16486
+ projectId: text$1("project_id").notNull(),
16487
+ attachmentKey: text$1("attachment_key").notNull(),
16488
+ kind: text$1("kind").$type().notNull(),
16489
+ schedule: text$1("schedule").notNull(),
16490
+ nextRunAt: timestamp("next_run_at", { withTimezone: true }).notNull(),
16491
+ enabled: integer$1("enabled").notNull(),
16492
+ updatedAt: timestamp("updated_at", { withTimezone: true }).notNull()
16493
+ }, (table) => [uniqueIndex$1("trigger_schedules_project_id_attachment_key_idx").on(table.projectId, table.attachmentKey), index$1("trigger_schedules_next_run_at_idx").on(table.nextRunAt, table.enabled)]);
16494
+ const triggerSchedulesSqlite = sqliteTable("trigger_schedules", {
16495
+ id: text("id").primaryKey(),
16496
+ projectId: text("project_id").notNull(),
16497
+ attachmentKey: text("attachment_key").notNull(),
16498
+ kind: text("kind").$type().notNull(),
16499
+ schedule: text("schedule").notNull(),
16500
+ nextRunAt: integer("next_run_at", { mode: "timestamp_ms" }).notNull(),
16501
+ enabled: integer("enabled").notNull(),
16502
+ updatedAt: integer("updated_at", { mode: "timestamp_ms" }).notNull()
16503
+ }, (table) => [uniqueIndex("trigger_schedules_project_id_attachment_key_idx").on(table.projectId, table.attachmentKey), index("trigger_schedules_next_run_at_idx").on(table.nextRunAt, table.enabled)]);
16484
16504
  const triggerRuns = pgTable("trigger_runs", {
16485
16505
  id: text$1("id").primaryKey(),
16486
16506
  projectId: text$1("project_id").notNull(),
@@ -16553,40 +16573,10 @@ const workflowRunsSqlite = sqliteTable("workflow_runs", {
16553
16573
  output: text("output", { mode: "json" }),
16554
16574
  error: text("error", { mode: "json" })
16555
16575
  });
16556
- const actionRuns = pgTable("step_runs", {
16557
- id: text$1("id").primaryKey(),
16558
- runId: text$1("run_id").notNull().references(() => workflowRuns.id),
16559
- actionKey: text$1("step_id").notNull(),
16560
- output: jsonb("output").notNull(),
16561
- completedAt: timestamp("completed_at", { withTimezone: true }).notNull()
16562
- }, (table) => [uniqueIndex$1("step_runs_run_id_step_id_unique").on(table.runId, table.actionKey)]);
16563
- const actionRunsSqlite = sqliteTable("step_runs", {
16564
- id: text("id").primaryKey(),
16565
- runId: text("run_id").notNull().references(() => workflowRunsSqlite.id),
16566
- actionKey: text("step_id").notNull(),
16567
- output: text("output", { mode: "json" }).notNull(),
16568
- completedAt: integer("completed_at", { mode: "timestamp_ms" }).notNull()
16569
- }, (table) => [uniqueIndex("step_runs_run_id_step_id_unique").on(table.runId, table.actionKey)]);
16570
- const triggerSchedules = pgTable("trigger_schedules", {
16571
- id: text$1("id").primaryKey(),
16572
- projectId: text$1("project_id").notNull(),
16573
- attachmentKey: text$1("attachment_key").notNull(),
16574
- kind: text$1("kind").$type().notNull(),
16575
- schedule: text$1("schedule").notNull(),
16576
- nextRunAt: timestamp("next_run_at", { withTimezone: true }).notNull(),
16577
- enabled: integer$1("enabled").notNull(),
16578
- updatedAt: timestamp("updated_at", { withTimezone: true }).notNull()
16579
- }, (table) => [uniqueIndex$1("trigger_schedules_project_id_attachment_key_idx").on(table.projectId, table.attachmentKey), index$1("trigger_schedules_next_run_at_idx").on(table.nextRunAt, table.enabled)]);
16580
- const triggerSchedulesSqlite = sqliteTable("trigger_schedules", {
16581
- id: text("id").primaryKey(),
16582
- projectId: text("project_id").notNull(),
16583
- attachmentKey: text("attachment_key").notNull(),
16584
- kind: text("kind").$type().notNull(),
16585
- schedule: text("schedule").notNull(),
16586
- nextRunAt: integer("next_run_at", { mode: "timestamp_ms" }).notNull(),
16587
- enabled: integer("enabled").notNull(),
16588
- updatedAt: integer("updated_at", { mode: "timestamp_ms" }).notNull()
16589
- }, (table) => [uniqueIndex("trigger_schedules_project_id_attachment_key_idx").on(table.projectId, table.attachmentKey), index("trigger_schedules_next_run_at_idx").on(table.nextRunAt, table.enabled)]);
16576
+ /**
16577
+ * Append-only durable execution log. One row per workflow lifecycle transition.
16578
+ * Replay reads these in `seq` order and short-circuits already-completed primitives.
16579
+ */
16590
16580
  const workflowEvents = pgTable("workflow_events", {
16591
16581
  id: text$1("id").primaryKey(),
16592
16582
  runId: text$1("run_id").notNull().references(() => workflowRuns.id),
@@ -16917,10 +16907,6 @@ const tableRegistry = {
16917
16907
  pg: triggerSchedules,
16918
16908
  sqlite: triggerSchedulesSqlite
16919
16909
  },
16920
- actionRuns: {
16921
- pg: actionRuns,
16922
- sqlite: actionRunsSqlite
16923
- },
16924
16910
  triggerRuns: {
16925
16911
  pg: triggerRuns,
16926
16912
  sqlite: triggerRunsSqlite
@@ -18094,4 +18080,4 @@ async function withSpan(input, fn) {
18094
18080
  //#endregion
18095
18081
  export { JSONRPCMessageSchema as A, createParser as C, createFetchWithInit as D, extractWWWAuthenticateParams as E, normalizeHeaders as O, isMcp as S, auth as T, touchSession as _, buildCredentialRunContext as a, connectMcpStdio as b, isCredentialError as c, MESSAGE_EVENT_TYPE as d, appendEvent as f, listMessageEvents as g, getSession as h, withSpan as i, zodToJsonSchema as k, resolveActionCredentials as l, getAgentByRoute as m, getTraceContext as n, captureCredentialToolErrors as o, createSession as p, logSystem as r, createCredentialResolver as s, captureConsole as t, resolveMcpTools as u, connectMcpDefinition as v, UnauthorizedError as w, defineMcp as x, connectMcpServer as y };
18096
18082
 
18097
- //# sourceMappingURL=dist-DgIJtGrg.mjs.map
18083
+ //# sourceMappingURL=dist-BFyot0Xl.mjs.map