@keystrokehq/keystroke 0.0.106 → 0.0.108

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.
@@ -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-BxnLcsGm.mjs");
13258
+ const { SSEClientTransport } = await import("./sse-BLQNWTIl.mjs");
13259
13259
  return new SSEClientTransport(url, {
13260
13260
  requestInit,
13261
13261
  fetch: fetchImpl
@@ -16658,58 +16658,6 @@ const workflowHooksSqlite = sqliteTable("workflow_hooks", {
16658
16658
  createdAt: integer("created_at", { mode: "timestamp_ms" }).notNull(),
16659
16659
  resumedAt: integer("resumed_at", { mode: "timestamp_ms" })
16660
16660
  }, (table) => [uniqueIndex("workflow_hooks_token_unique").on(table.token), index("workflow_hooks_run_id_idx").on(table.runId)]);
16661
- const oauthApps$1 = pgTable("oauth_apps", {
16662
- id: text$1("id").primaryKey(),
16663
- projectId: text$1("project_id").notNull(),
16664
- provider: text$1("provider").notNull(),
16665
- key: text$1("key").notNull(),
16666
- tokenStrategy: text$1("token_strategy").$type().notNull(),
16667
- clientIdCiphertext: text$1("client_id_ciphertext").notNull(),
16668
- clientSecretCiphertext: text$1("client_secret_ciphertext").notNull(),
16669
- signingSecretCiphertext: text$1("signing_secret_ciphertext"),
16670
- redirectUri: text$1("redirect_uri"),
16671
- metadata: jsonb("metadata").$type(),
16672
- createdAt: timestamp("created_at", { withTimezone: true }).notNull(),
16673
- updatedAt: timestamp("updated_at", { withTimezone: true }).notNull()
16674
- }, (table) => [uniqueIndex$1("oauth_apps_project_id_key_idx").on(table.projectId, table.key)]);
16675
- const oauthAppsSqlite = sqliteTable("oauth_apps", {
16676
- id: text("id").primaryKey(),
16677
- projectId: text("project_id").notNull(),
16678
- provider: text("provider").notNull(),
16679
- key: text("key").notNull(),
16680
- tokenStrategy: text("token_strategy").$type().notNull(),
16681
- clientIdCiphertext: text("client_id_ciphertext").notNull(),
16682
- clientSecretCiphertext: text("client_secret_ciphertext").notNull(),
16683
- signingSecretCiphertext: text("signing_secret_ciphertext"),
16684
- redirectUri: text("redirect_uri"),
16685
- metadata: text("metadata", { mode: "json" }).$type(),
16686
- createdAt: integer("created_at", { mode: "timestamp_ms" }).notNull(),
16687
- updatedAt: integer("updated_at", { mode: "timestamp_ms" }).notNull()
16688
- }, (table) => [uniqueIndex("oauth_apps_project_id_key_idx").on(table.projectId, table.key)]);
16689
- const oauthConnections$1 = pgTable("oauth_connections", {
16690
- id: text$1("id").primaryKey(),
16691
- appId: text$1("app_id").notNull().references(() => oauthApps$1.id, { onDelete: "cascade" }),
16692
- externalId: text$1("external_id").notNull(),
16693
- accessTokenCiphertext: text$1("access_token_ciphertext").notNull(),
16694
- refreshTokenCiphertext: text$1("refresh_token_ciphertext"),
16695
- accessTokenExpiresAt: timestamp("access_token_expires_at", { withTimezone: true }),
16696
- grantedScopes: jsonb("granted_scopes").$type(),
16697
- metadata: jsonb("metadata").$type(),
16698
- connectedAt: timestamp("connected_at", { withTimezone: true }).notNull(),
16699
- updatedAt: timestamp("updated_at", { withTimezone: true }).notNull()
16700
- }, (table) => [uniqueIndex$1("oauth_connections_app_external_unique").on(table.appId, table.externalId)]);
16701
- const oauthConnectionsSqlite = sqliteTable("oauth_connections", {
16702
- id: text("id").primaryKey(),
16703
- appId: text("app_id").notNull().references(() => oauthAppsSqlite.id, { onDelete: "cascade" }),
16704
- externalId: text("external_id").notNull(),
16705
- accessTokenCiphertext: text("access_token_ciphertext").notNull(),
16706
- refreshTokenCiphertext: text("refresh_token_ciphertext"),
16707
- accessTokenExpiresAt: integer("access_token_expires_at", { mode: "timestamp_ms" }),
16708
- grantedScopes: text("granted_scopes", { mode: "json" }).$type(),
16709
- metadata: text("metadata", { mode: "json" }).$type(),
16710
- connectedAt: integer("connected_at", { mode: "timestamp_ms" }).notNull(),
16711
- updatedAt: integer("updated_at", { mode: "timestamp_ms" }).notNull()
16712
- }, (table) => [uniqueIndex("oauth_connections_app_external_unique").on(table.appId, table.externalId)]);
16713
16661
  const credentialInstances = pgTable("credential_instances", {
16714
16662
  id: text$1("id").primaryKey(),
16715
16663
  projectId: text$1("project_id").notNull(),
@@ -16720,7 +16668,7 @@ const credentialInstances = pgTable("credential_instances", {
16720
16668
  isDefault: integer$1("is_default").notNull(),
16721
16669
  authKind: text$1("auth_kind").$type().notNull(),
16722
16670
  ciphertext: text$1("ciphertext"),
16723
- connectionId: text$1("connection_id").references(() => oauthConnections$1.id, { onDelete: "set null" }),
16671
+ connectionId: text$1("connection_id"),
16724
16672
  createdAt: timestamp("created_at", { withTimezone: true }).notNull(),
16725
16673
  updatedAt: timestamp("updated_at", { withTimezone: true }).notNull()
16726
16674
  }, (table) => [uniqueIndex$1("credential_instances_project_key_scope_label_unique").on(table.projectId, table.key, table.scopeType, table.scopeId, table.label), index$1("credential_instances_project_key_scope_idx").on(table.projectId, table.key, table.scopeType, table.scopeId)]);
@@ -16734,7 +16682,7 @@ const credentialInstancesSqlite = sqliteTable("credential_instances", {
16734
16682
  isDefault: integer("is_default", { mode: "boolean" }).notNull(),
16735
16683
  authKind: text("auth_kind").$type().notNull(),
16736
16684
  ciphertext: text("ciphertext"),
16737
- connectionId: text("connection_id").references(() => oauthConnectionsSqlite.id, { onDelete: "set null" }),
16685
+ connectionId: text("connection_id"),
16738
16686
  createdAt: integer("created_at", { mode: "timestamp_ms" }).notNull(),
16739
16687
  updatedAt: integer("updated_at", { mode: "timestamp_ms" }).notNull()
16740
16688
  }, (table) => [uniqueIndex("credential_instances_project_key_scope_label_unique").on(table.projectId, table.key, table.scopeType, table.scopeId, table.label), index("credential_instances_project_key_scope_idx").on(table.projectId, table.key, table.scopeType, table.scopeId)]);
@@ -16862,6 +16810,58 @@ const traceLogsSqlite = sqliteTable("trace_logs", {
16862
16810
  source: text("source").$type().notNull(),
16863
16811
  createdAt: integer("created_at", { mode: "timestamp_ms" }).notNull()
16864
16812
  }, (table) => [index("trace_logs_trace_id_seq_idx").on(table.traceId, table.seq), index("trace_logs_span_id_seq_idx").on(table.spanId, table.seq)]);
16813
+ const oauthApps$1 = pgTable("oauth_apps", {
16814
+ id: text$1("id").primaryKey(),
16815
+ projectId: text$1("project_id").notNull(),
16816
+ provider: text$1("provider").notNull(),
16817
+ key: text$1("key").notNull(),
16818
+ tokenStrategy: text$1("token_strategy").$type().notNull(),
16819
+ clientIdCiphertext: text$1("client_id_ciphertext").notNull(),
16820
+ clientSecretCiphertext: text$1("client_secret_ciphertext").notNull(),
16821
+ signingSecretCiphertext: text$1("signing_secret_ciphertext"),
16822
+ redirectUri: text$1("redirect_uri"),
16823
+ metadata: jsonb("metadata").$type(),
16824
+ createdAt: timestamp("created_at", { withTimezone: true }).notNull(),
16825
+ updatedAt: timestamp("updated_at", { withTimezone: true }).notNull()
16826
+ }, (table) => [uniqueIndex$1("oauth_apps_project_id_key_idx").on(table.projectId, table.key)]);
16827
+ const oauthAppsSqlite = sqliteTable("oauth_apps", {
16828
+ id: text("id").primaryKey(),
16829
+ projectId: text("project_id").notNull(),
16830
+ provider: text("provider").notNull(),
16831
+ key: text("key").notNull(),
16832
+ tokenStrategy: text("token_strategy").$type().notNull(),
16833
+ clientIdCiphertext: text("client_id_ciphertext").notNull(),
16834
+ clientSecretCiphertext: text("client_secret_ciphertext").notNull(),
16835
+ signingSecretCiphertext: text("signing_secret_ciphertext"),
16836
+ redirectUri: text("redirect_uri"),
16837
+ metadata: text("metadata", { mode: "json" }).$type(),
16838
+ createdAt: integer("created_at", { mode: "timestamp_ms" }).notNull(),
16839
+ updatedAt: integer("updated_at", { mode: "timestamp_ms" }).notNull()
16840
+ }, (table) => [uniqueIndex("oauth_apps_project_id_key_idx").on(table.projectId, table.key)]);
16841
+ const oauthConnections$1 = pgTable("oauth_connections", {
16842
+ id: text$1("id").primaryKey(),
16843
+ appId: text$1("app_id").notNull().references(() => oauthApps$1.id, { onDelete: "cascade" }),
16844
+ externalId: text$1("external_id").notNull(),
16845
+ accessTokenCiphertext: text$1("access_token_ciphertext").notNull(),
16846
+ refreshTokenCiphertext: text$1("refresh_token_ciphertext"),
16847
+ accessTokenExpiresAt: timestamp("access_token_expires_at", { withTimezone: true }),
16848
+ grantedScopes: jsonb("granted_scopes").$type(),
16849
+ metadata: jsonb("metadata").$type(),
16850
+ connectedAt: timestamp("connected_at", { withTimezone: true }).notNull(),
16851
+ updatedAt: timestamp("updated_at", { withTimezone: true }).notNull()
16852
+ }, (table) => [uniqueIndex$1("oauth_connections_app_external_unique").on(table.appId, table.externalId)]);
16853
+ const oauthConnectionsSqlite = sqliteTable("oauth_connections", {
16854
+ id: text("id").primaryKey(),
16855
+ appId: text("app_id").notNull().references(() => oauthAppsSqlite.id, { onDelete: "cascade" }),
16856
+ externalId: text("external_id").notNull(),
16857
+ accessTokenCiphertext: text("access_token_ciphertext").notNull(),
16858
+ refreshTokenCiphertext: text("refresh_token_ciphertext"),
16859
+ accessTokenExpiresAt: integer("access_token_expires_at", { mode: "timestamp_ms" }),
16860
+ grantedScopes: text("granted_scopes", { mode: "json" }).$type(),
16861
+ metadata: text("metadata", { mode: "json" }).$type(),
16862
+ connectedAt: integer("connected_at", { mode: "timestamp_ms" }).notNull(),
16863
+ updatedAt: integer("updated_at", { mode: "timestamp_ms" }).notNull()
16864
+ }, (table) => [uniqueIndex("oauth_connections_app_external_unique").on(table.appId, table.externalId)]);
16865
16865
  const secretValues$1 = pgTable("secret_values", {
16866
16866
  id: text$1("id").primaryKey(),
16867
16867
  projectId: text$1("project_id").notNull(),
@@ -17435,7 +17435,7 @@ const oauthApps = pgTable("oauth_apps", {
17435
17435
  metadata: jsonb("metadata").$type(),
17436
17436
  createdAt: timestamp("created_at", { withTimezone: true }).notNull(),
17437
17437
  updatedAt: timestamp("updated_at", { withTimezone: true }).notNull()
17438
- }, (table) => [uniqueIndex$1("oauth_apps_organization_id_key_idx").on(table.organizationId, table.key)]);
17438
+ }, (table) => [uniqueIndex$1("oauth_apps_organization_id_key_idx").on(table.organizationId, table.key), index$1("oauth_apps_key_idx").on(table.key)]);
17439
17439
  const oauthConnections = pgTable("oauth_connections", {
17440
17440
  id: text$1("id").primaryKey(),
17441
17441
  appId: text$1("app_id").notNull().references(() => oauthApps.id, { onDelete: "cascade" }),
@@ -17447,7 +17447,7 @@ const oauthConnections = pgTable("oauth_connections", {
17447
17447
  metadata: jsonb("metadata").$type(),
17448
17448
  connectedAt: timestamp("connected_at", { withTimezone: true }).notNull(),
17449
17449
  updatedAt: timestamp("updated_at", { withTimezone: true }).notNull()
17450
- }, (table) => [uniqueIndex$1("oauth_connections_app_external_unique").on(table.appId, table.externalId)]);
17450
+ }, (table) => [uniqueIndex$1("oauth_connections_app_external_unique").on(table.appId, table.externalId), index$1("oauth_connections_external_id_idx").on(table.externalId)]);
17451
17451
  const organizationUsers = pgTable("organization_users", {
17452
17452
  organizationId: text$1("organization_id").notNull().references(() => organizations.id, { onDelete: "cascade" }),
17453
17453
  userId: text$1("user_id").notNull().references(() => users.id, { onDelete: "cascade" }),
@@ -18111,4 +18111,4 @@ async function resolveActionCredentials(requirements, options) {
18111
18111
  //#endregion
18112
18112
  export { zodToJsonSchema as A, isMcp as C, extractWWWAuthenticateParams as D, auth as E, createFetchWithInit as O, defineMcp as S, UnauthorizedError as T, logSystem as _, resolveActionCredentials as a, connectMcpServer as b, appendEvent as c, getSession as d, listMessageEvents as f, getTraceContext as g, captureConsole as h, isCredentialError as i, JSONRPCMessageSchema as j, normalizeHeaders as k, createSession as l, touchSession as m, captureCredentialToolErrors as n, resolveMcpTools as o, resolveRunSourceFromTraceContext as p, createCredentialResolver as r, MESSAGE_EVENT_TYPE as s, buildCredentialRunContext as t, getAgentByRoute as u, withSpan as v, createParser as w, connectMcpStdio as x, connectMcpDefinition as y };
18113
18113
 
18114
- //# sourceMappingURL=dist-D-zdAX6C.mjs.map
18114
+ //# sourceMappingURL=dist-CAA_Ik8x.mjs.map