@keystrokehq/keystroke 0.0.105 → 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.
- package/dist/action.cjs +1 -1
- package/dist/action.mjs +1 -1
- package/dist/agent.cjs +8 -4
- package/dist/agent.cjs.map +1 -1
- package/dist/agent.d.cts +1 -1
- package/dist/agent.d.mts +1 -1
- package/dist/agent.mjs +8 -4
- package/dist/agent.mjs.map +1 -1
- package/dist/config.d.cts +26 -3
- package/dist/config.d.cts.map +1 -1
- package/dist/config.d.mts +26 -3
- package/dist/config.d.mts.map +1 -1
- package/dist/credentials.cjs +1 -1
- package/dist/credentials.mjs +1 -1
- package/dist/{dist-SGAuX401.mjs → dist-B_1Y6KLb.mjs} +6 -2
- package/dist/dist-B_1Y6KLb.mjs.map +1 -0
- package/dist/{dist-DnqDVVpK.cjs → dist-C5IMYQuJ.cjs} +6 -2
- package/dist/dist-C5IMYQuJ.cjs.map +1 -0
- package/dist/{dist-BUfE2se6.mjs → dist-CAA_Ik8x.mjs} +67 -59
- package/dist/{dist-BUfE2se6.mjs.map → dist-CAA_Ik8x.mjs.map} +1 -1
- package/dist/{dist-BkC9pJIu.cjs → dist-CU4Mv5ac.cjs} +67 -59
- package/dist/{dist-BkC9pJIu.cjs.map → dist-CU4Mv5ac.cjs.map} +1 -1
- package/dist/{dist-C8RdaDkW.cjs → dist-CVVoyUXL.cjs} +3 -3
- package/dist/{dist-C8RdaDkW.cjs.map → dist-CVVoyUXL.cjs.map} +1 -1
- package/dist/{dist-DY_F2zw5.mjs → dist-CdeDUiky.mjs} +3 -3
- package/dist/{dist-DY_F2zw5.mjs.map → dist-CdeDUiky.mjs.map} +1 -1
- package/dist/{index-FlkwP4zn.d.cts → index-BC85cqTS.d.cts} +3 -2
- package/dist/index-BC85cqTS.d.cts.map +1 -0
- package/dist/{index-TLlgJ1q1.d.mts → index-BzeJy2rY.d.mts} +3 -2
- package/dist/index-BzeJy2rY.d.mts.map +1 -0
- package/dist/index-CiuCYKLw.d.cts.map +1 -1
- package/dist/index-CiuCYKLw.d.mts.map +1 -1
- package/dist/{mistral-DUtxOD_C.mjs → mistral-C0v9IUYz.mjs} +2 -2
- package/dist/{mistral-DUtxOD_C.mjs.map → mistral-C0v9IUYz.mjs.map} +1 -1
- package/dist/{mistral-DXb4X3t4.cjs → mistral-wxp5Ba0T.cjs} +2 -2
- package/dist/{mistral-DXb4X3t4.cjs.map → mistral-wxp5Ba0T.cjs.map} +1 -1
- package/dist/{sse-DezHFNKg.mjs → sse-BLQNWTIl.mjs} +2 -2
- package/dist/{sse-DezHFNKg.mjs.map → sse-BLQNWTIl.mjs.map} +1 -1
- package/dist/{sse-SwZnScle.cjs → sse-BttqM5xp.cjs} +2 -2
- package/dist/{sse-SwZnScle.cjs.map → sse-BttqM5xp.cjs.map} +1 -1
- package/dist/trigger.cjs +56 -1
- package/dist/trigger.cjs.map +1 -1
- package/dist/trigger.d.cts +21 -2
- package/dist/trigger.d.cts.map +1 -1
- package/dist/trigger.d.mts +21 -2
- package/dist/trigger.d.mts.map +1 -1
- package/dist/trigger.mjs +55 -2
- package/dist/trigger.mjs.map +1 -1
- package/dist/workflow.cjs +1 -1
- package/dist/workflow.mjs +1 -1
- package/package.json +1 -1
- package/dist/dist-DnqDVVpK.cjs.map +0 -1
- package/dist/dist-SGAuX401.mjs.map +0 -1
- package/dist/index-FlkwP4zn.d.cts.map +0 -1
- package/dist/index-TLlgJ1q1.d.mts.map +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Bn as __require, Ln as __commonJSMin, Vn as __toESM } from "./dist-f_JGyGWx.mjs";
|
|
2
|
-
import { h as CREDENTIAL_SCOPE_LEVEL_TO_SCOPE_TYPE, x as normalizeCredentialList } from "./dist-
|
|
2
|
+
import { h as CREDENTIAL_SCOPE_LEVEL_TO_SCOPE_TYPE, x as normalizeCredentialList } from "./dist-B_1Y6KLb.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-
|
|
13258
|
+
const { SSEClientTransport } = await import("./sse-BLQNWTIl.mjs");
|
|
13259
13259
|
return new SSEClientTransport(url, {
|
|
13260
13260
|
requestInit,
|
|
13261
13261
|
fetch: fetchImpl
|
|
@@ -16483,6 +16483,10 @@ const triggerAttachments = pgTable("trigger_attachments", {
|
|
|
16483
16483
|
agentKey: text$1("agent_key"),
|
|
16484
16484
|
moduleFile: text$1("module_file").notNull(),
|
|
16485
16485
|
source: jsonb("source").$type().notNull(),
|
|
16486
|
+
origin: text$1("origin").$type().notNull().default("project"),
|
|
16487
|
+
prompt: text$1("prompt"),
|
|
16488
|
+
lifecycle: jsonb("lifecycle").$type(),
|
|
16489
|
+
createdBySessionId: text$1("created_by_session_id"),
|
|
16486
16490
|
registeredAt: timestamp("registered_at", { withTimezone: true }).notNull(),
|
|
16487
16491
|
updatedAt: timestamp("updated_at", { withTimezone: true }).notNull(),
|
|
16488
16492
|
deletedAt: timestamp("deleted_at", { withTimezone: true })
|
|
@@ -16496,6 +16500,10 @@ const triggerAttachmentsSqlite = sqliteTable("trigger_attachments", {
|
|
|
16496
16500
|
agentKey: text("agent_key"),
|
|
16497
16501
|
moduleFile: text("module_file").notNull(),
|
|
16498
16502
|
source: text("source", { mode: "json" }).$type().notNull(),
|
|
16503
|
+
origin: text("origin").$type().notNull().default("project"),
|
|
16504
|
+
prompt: text("prompt"),
|
|
16505
|
+
lifecycle: text("lifecycle", { mode: "json" }).$type(),
|
|
16506
|
+
createdBySessionId: text("created_by_session_id"),
|
|
16499
16507
|
registeredAt: integer("registered_at", { mode: "timestamp_ms" }).notNull(),
|
|
16500
16508
|
updatedAt: integer("updated_at", { mode: "timestamp_ms" }).notNull(),
|
|
16501
16509
|
deletedAt: integer("deleted_at", { mode: "timestamp_ms" })
|
|
@@ -16650,58 +16658,6 @@ const workflowHooksSqlite = sqliteTable("workflow_hooks", {
|
|
|
16650
16658
|
createdAt: integer("created_at", { mode: "timestamp_ms" }).notNull(),
|
|
16651
16659
|
resumedAt: integer("resumed_at", { mode: "timestamp_ms" })
|
|
16652
16660
|
}, (table) => [uniqueIndex("workflow_hooks_token_unique").on(table.token), index("workflow_hooks_run_id_idx").on(table.runId)]);
|
|
16653
|
-
const oauthApps$1 = pgTable("oauth_apps", {
|
|
16654
|
-
id: text$1("id").primaryKey(),
|
|
16655
|
-
projectId: text$1("project_id").notNull(),
|
|
16656
|
-
provider: text$1("provider").notNull(),
|
|
16657
|
-
key: text$1("key").notNull(),
|
|
16658
|
-
tokenStrategy: text$1("token_strategy").$type().notNull(),
|
|
16659
|
-
clientIdCiphertext: text$1("client_id_ciphertext").notNull(),
|
|
16660
|
-
clientSecretCiphertext: text$1("client_secret_ciphertext").notNull(),
|
|
16661
|
-
signingSecretCiphertext: text$1("signing_secret_ciphertext"),
|
|
16662
|
-
redirectUri: text$1("redirect_uri"),
|
|
16663
|
-
metadata: jsonb("metadata").$type(),
|
|
16664
|
-
createdAt: timestamp("created_at", { withTimezone: true }).notNull(),
|
|
16665
|
-
updatedAt: timestamp("updated_at", { withTimezone: true }).notNull()
|
|
16666
|
-
}, (table) => [uniqueIndex$1("oauth_apps_project_id_key_idx").on(table.projectId, table.key)]);
|
|
16667
|
-
const oauthAppsSqlite = sqliteTable("oauth_apps", {
|
|
16668
|
-
id: text("id").primaryKey(),
|
|
16669
|
-
projectId: text("project_id").notNull(),
|
|
16670
|
-
provider: text("provider").notNull(),
|
|
16671
|
-
key: text("key").notNull(),
|
|
16672
|
-
tokenStrategy: text("token_strategy").$type().notNull(),
|
|
16673
|
-
clientIdCiphertext: text("client_id_ciphertext").notNull(),
|
|
16674
|
-
clientSecretCiphertext: text("client_secret_ciphertext").notNull(),
|
|
16675
|
-
signingSecretCiphertext: text("signing_secret_ciphertext"),
|
|
16676
|
-
redirectUri: text("redirect_uri"),
|
|
16677
|
-
metadata: text("metadata", { mode: "json" }).$type(),
|
|
16678
|
-
createdAt: integer("created_at", { mode: "timestamp_ms" }).notNull(),
|
|
16679
|
-
updatedAt: integer("updated_at", { mode: "timestamp_ms" }).notNull()
|
|
16680
|
-
}, (table) => [uniqueIndex("oauth_apps_project_id_key_idx").on(table.projectId, table.key)]);
|
|
16681
|
-
const oauthConnections$1 = pgTable("oauth_connections", {
|
|
16682
|
-
id: text$1("id").primaryKey(),
|
|
16683
|
-
appId: text$1("app_id").notNull().references(() => oauthApps$1.id, { onDelete: "cascade" }),
|
|
16684
|
-
externalId: text$1("external_id").notNull(),
|
|
16685
|
-
accessTokenCiphertext: text$1("access_token_ciphertext").notNull(),
|
|
16686
|
-
refreshTokenCiphertext: text$1("refresh_token_ciphertext"),
|
|
16687
|
-
accessTokenExpiresAt: timestamp("access_token_expires_at", { withTimezone: true }),
|
|
16688
|
-
grantedScopes: jsonb("granted_scopes").$type(),
|
|
16689
|
-
metadata: jsonb("metadata").$type(),
|
|
16690
|
-
connectedAt: timestamp("connected_at", { withTimezone: true }).notNull(),
|
|
16691
|
-
updatedAt: timestamp("updated_at", { withTimezone: true }).notNull()
|
|
16692
|
-
}, (table) => [uniqueIndex$1("oauth_connections_app_external_unique").on(table.appId, table.externalId)]);
|
|
16693
|
-
const oauthConnectionsSqlite = sqliteTable("oauth_connections", {
|
|
16694
|
-
id: text("id").primaryKey(),
|
|
16695
|
-
appId: text("app_id").notNull().references(() => oauthAppsSqlite.id, { onDelete: "cascade" }),
|
|
16696
|
-
externalId: text("external_id").notNull(),
|
|
16697
|
-
accessTokenCiphertext: text("access_token_ciphertext").notNull(),
|
|
16698
|
-
refreshTokenCiphertext: text("refresh_token_ciphertext"),
|
|
16699
|
-
accessTokenExpiresAt: integer("access_token_expires_at", { mode: "timestamp_ms" }),
|
|
16700
|
-
grantedScopes: text("granted_scopes", { mode: "json" }).$type(),
|
|
16701
|
-
metadata: text("metadata", { mode: "json" }).$type(),
|
|
16702
|
-
connectedAt: integer("connected_at", { mode: "timestamp_ms" }).notNull(),
|
|
16703
|
-
updatedAt: integer("updated_at", { mode: "timestamp_ms" }).notNull()
|
|
16704
|
-
}, (table) => [uniqueIndex("oauth_connections_app_external_unique").on(table.appId, table.externalId)]);
|
|
16705
16661
|
const credentialInstances = pgTable("credential_instances", {
|
|
16706
16662
|
id: text$1("id").primaryKey(),
|
|
16707
16663
|
projectId: text$1("project_id").notNull(),
|
|
@@ -16712,7 +16668,7 @@ const credentialInstances = pgTable("credential_instances", {
|
|
|
16712
16668
|
isDefault: integer$1("is_default").notNull(),
|
|
16713
16669
|
authKind: text$1("auth_kind").$type().notNull(),
|
|
16714
16670
|
ciphertext: text$1("ciphertext"),
|
|
16715
|
-
connectionId: text$1("connection_id")
|
|
16671
|
+
connectionId: text$1("connection_id"),
|
|
16716
16672
|
createdAt: timestamp("created_at", { withTimezone: true }).notNull(),
|
|
16717
16673
|
updatedAt: timestamp("updated_at", { withTimezone: true }).notNull()
|
|
16718
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)]);
|
|
@@ -16726,7 +16682,7 @@ const credentialInstancesSqlite = sqliteTable("credential_instances", {
|
|
|
16726
16682
|
isDefault: integer("is_default", { mode: "boolean" }).notNull(),
|
|
16727
16683
|
authKind: text("auth_kind").$type().notNull(),
|
|
16728
16684
|
ciphertext: text("ciphertext"),
|
|
16729
|
-
connectionId: text("connection_id")
|
|
16685
|
+
connectionId: text("connection_id"),
|
|
16730
16686
|
createdAt: integer("created_at", { mode: "timestamp_ms" }).notNull(),
|
|
16731
16687
|
updatedAt: integer("updated_at", { mode: "timestamp_ms" }).notNull()
|
|
16732
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)]);
|
|
@@ -16854,6 +16810,58 @@ const traceLogsSqlite = sqliteTable("trace_logs", {
|
|
|
16854
16810
|
source: text("source").$type().notNull(),
|
|
16855
16811
|
createdAt: integer("created_at", { mode: "timestamp_ms" }).notNull()
|
|
16856
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)]);
|
|
16857
16865
|
const secretValues$1 = pgTable("secret_values", {
|
|
16858
16866
|
id: text$1("id").primaryKey(),
|
|
16859
16867
|
projectId: text$1("project_id").notNull(),
|
|
@@ -17427,7 +17435,7 @@ const oauthApps = pgTable("oauth_apps", {
|
|
|
17427
17435
|
metadata: jsonb("metadata").$type(),
|
|
17428
17436
|
createdAt: timestamp("created_at", { withTimezone: true }).notNull(),
|
|
17429
17437
|
updatedAt: timestamp("updated_at", { withTimezone: true }).notNull()
|
|
17430
|
-
}, (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)]);
|
|
17431
17439
|
const oauthConnections = pgTable("oauth_connections", {
|
|
17432
17440
|
id: text$1("id").primaryKey(),
|
|
17433
17441
|
appId: text$1("app_id").notNull().references(() => oauthApps.id, { onDelete: "cascade" }),
|
|
@@ -17439,7 +17447,7 @@ const oauthConnections = pgTable("oauth_connections", {
|
|
|
17439
17447
|
metadata: jsonb("metadata").$type(),
|
|
17440
17448
|
connectedAt: timestamp("connected_at", { withTimezone: true }).notNull(),
|
|
17441
17449
|
updatedAt: timestamp("updated_at", { withTimezone: true }).notNull()
|
|
17442
|
-
}, (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)]);
|
|
17443
17451
|
const organizationUsers = pgTable("organization_users", {
|
|
17444
17452
|
organizationId: text$1("organization_id").notNull().references(() => organizations.id, { onDelete: "cascade" }),
|
|
17445
17453
|
userId: text$1("user_id").notNull().references(() => users.id, { onDelete: "cascade" }),
|
|
@@ -18103,4 +18111,4 @@ async function resolveActionCredentials(requirements, options) {
|
|
|
18103
18111
|
//#endregion
|
|
18104
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 };
|
|
18105
18113
|
|
|
18106
|
-
//# sourceMappingURL=dist-
|
|
18114
|
+
//# sourceMappingURL=dist-CAA_Ik8x.mjs.map
|