@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
|
const require_dist$1 = require("./dist-CLqJza2Y.cjs");
|
|
2
|
-
const require_dist$2 = require("./dist-
|
|
2
|
+
const require_dist$2 = require("./dist-C5IMYQuJ.cjs");
|
|
3
3
|
let node_async_hooks = require("node:async_hooks");
|
|
4
4
|
require("node:fs");
|
|
5
5
|
let zod_v3 = require("zod/v3");
|
|
@@ -13262,7 +13262,7 @@ async function connectMcpServer(name, options) {
|
|
|
13262
13262
|
}
|
|
13263
13263
|
async function createTransport(url, transport, requestInit, fetchImpl) {
|
|
13264
13264
|
if (transport === "sse") {
|
|
13265
|
-
const { SSEClientTransport } = await Promise.resolve().then(() => require("./sse-
|
|
13265
|
+
const { SSEClientTransport } = await Promise.resolve().then(() => require("./sse-BttqM5xp.cjs"));
|
|
13266
13266
|
return new SSEClientTransport(url, {
|
|
13267
13267
|
requestInit,
|
|
13268
13268
|
fetch: fetchImpl
|
|
@@ -16490,6 +16490,10 @@ const triggerAttachments = pgTable("trigger_attachments", {
|
|
|
16490
16490
|
agentKey: text$1("agent_key"),
|
|
16491
16491
|
moduleFile: text$1("module_file").notNull(),
|
|
16492
16492
|
source: jsonb("source").$type().notNull(),
|
|
16493
|
+
origin: text$1("origin").$type().notNull().default("project"),
|
|
16494
|
+
prompt: text$1("prompt"),
|
|
16495
|
+
lifecycle: jsonb("lifecycle").$type(),
|
|
16496
|
+
createdBySessionId: text$1("created_by_session_id"),
|
|
16493
16497
|
registeredAt: timestamp("registered_at", { withTimezone: true }).notNull(),
|
|
16494
16498
|
updatedAt: timestamp("updated_at", { withTimezone: true }).notNull(),
|
|
16495
16499
|
deletedAt: timestamp("deleted_at", { withTimezone: true })
|
|
@@ -16503,6 +16507,10 @@ const triggerAttachmentsSqlite = sqliteTable("trigger_attachments", {
|
|
|
16503
16507
|
agentKey: text("agent_key"),
|
|
16504
16508
|
moduleFile: text("module_file").notNull(),
|
|
16505
16509
|
source: text("source", { mode: "json" }).$type().notNull(),
|
|
16510
|
+
origin: text("origin").$type().notNull().default("project"),
|
|
16511
|
+
prompt: text("prompt"),
|
|
16512
|
+
lifecycle: text("lifecycle", { mode: "json" }).$type(),
|
|
16513
|
+
createdBySessionId: text("created_by_session_id"),
|
|
16506
16514
|
registeredAt: integer("registered_at", { mode: "timestamp_ms" }).notNull(),
|
|
16507
16515
|
updatedAt: integer("updated_at", { mode: "timestamp_ms" }).notNull(),
|
|
16508
16516
|
deletedAt: integer("deleted_at", { mode: "timestamp_ms" })
|
|
@@ -16657,58 +16665,6 @@ const workflowHooksSqlite = sqliteTable("workflow_hooks", {
|
|
|
16657
16665
|
createdAt: integer("created_at", { mode: "timestamp_ms" }).notNull(),
|
|
16658
16666
|
resumedAt: integer("resumed_at", { mode: "timestamp_ms" })
|
|
16659
16667
|
}, (table) => [uniqueIndex("workflow_hooks_token_unique").on(table.token), index("workflow_hooks_run_id_idx").on(table.runId)]);
|
|
16660
|
-
const oauthApps$1 = pgTable("oauth_apps", {
|
|
16661
|
-
id: text$1("id").primaryKey(),
|
|
16662
|
-
projectId: text$1("project_id").notNull(),
|
|
16663
|
-
provider: text$1("provider").notNull(),
|
|
16664
|
-
key: text$1("key").notNull(),
|
|
16665
|
-
tokenStrategy: text$1("token_strategy").$type().notNull(),
|
|
16666
|
-
clientIdCiphertext: text$1("client_id_ciphertext").notNull(),
|
|
16667
|
-
clientSecretCiphertext: text$1("client_secret_ciphertext").notNull(),
|
|
16668
|
-
signingSecretCiphertext: text$1("signing_secret_ciphertext"),
|
|
16669
|
-
redirectUri: text$1("redirect_uri"),
|
|
16670
|
-
metadata: jsonb("metadata").$type(),
|
|
16671
|
-
createdAt: timestamp("created_at", { withTimezone: true }).notNull(),
|
|
16672
|
-
updatedAt: timestamp("updated_at", { withTimezone: true }).notNull()
|
|
16673
|
-
}, (table) => [uniqueIndex$1("oauth_apps_project_id_key_idx").on(table.projectId, table.key)]);
|
|
16674
|
-
const oauthAppsSqlite = sqliteTable("oauth_apps", {
|
|
16675
|
-
id: text("id").primaryKey(),
|
|
16676
|
-
projectId: text("project_id").notNull(),
|
|
16677
|
-
provider: text("provider").notNull(),
|
|
16678
|
-
key: text("key").notNull(),
|
|
16679
|
-
tokenStrategy: text("token_strategy").$type().notNull(),
|
|
16680
|
-
clientIdCiphertext: text("client_id_ciphertext").notNull(),
|
|
16681
|
-
clientSecretCiphertext: text("client_secret_ciphertext").notNull(),
|
|
16682
|
-
signingSecretCiphertext: text("signing_secret_ciphertext"),
|
|
16683
|
-
redirectUri: text("redirect_uri"),
|
|
16684
|
-
metadata: text("metadata", { mode: "json" }).$type(),
|
|
16685
|
-
createdAt: integer("created_at", { mode: "timestamp_ms" }).notNull(),
|
|
16686
|
-
updatedAt: integer("updated_at", { mode: "timestamp_ms" }).notNull()
|
|
16687
|
-
}, (table) => [uniqueIndex("oauth_apps_project_id_key_idx").on(table.projectId, table.key)]);
|
|
16688
|
-
const oauthConnections$1 = pgTable("oauth_connections", {
|
|
16689
|
-
id: text$1("id").primaryKey(),
|
|
16690
|
-
appId: text$1("app_id").notNull().references(() => oauthApps$1.id, { onDelete: "cascade" }),
|
|
16691
|
-
externalId: text$1("external_id").notNull(),
|
|
16692
|
-
accessTokenCiphertext: text$1("access_token_ciphertext").notNull(),
|
|
16693
|
-
refreshTokenCiphertext: text$1("refresh_token_ciphertext"),
|
|
16694
|
-
accessTokenExpiresAt: timestamp("access_token_expires_at", { withTimezone: true }),
|
|
16695
|
-
grantedScopes: jsonb("granted_scopes").$type(),
|
|
16696
|
-
metadata: jsonb("metadata").$type(),
|
|
16697
|
-
connectedAt: timestamp("connected_at", { withTimezone: true }).notNull(),
|
|
16698
|
-
updatedAt: timestamp("updated_at", { withTimezone: true }).notNull()
|
|
16699
|
-
}, (table) => [uniqueIndex$1("oauth_connections_app_external_unique").on(table.appId, table.externalId)]);
|
|
16700
|
-
const oauthConnectionsSqlite = sqliteTable("oauth_connections", {
|
|
16701
|
-
id: text("id").primaryKey(),
|
|
16702
|
-
appId: text("app_id").notNull().references(() => oauthAppsSqlite.id, { onDelete: "cascade" }),
|
|
16703
|
-
externalId: text("external_id").notNull(),
|
|
16704
|
-
accessTokenCiphertext: text("access_token_ciphertext").notNull(),
|
|
16705
|
-
refreshTokenCiphertext: text("refresh_token_ciphertext"),
|
|
16706
|
-
accessTokenExpiresAt: integer("access_token_expires_at", { mode: "timestamp_ms" }),
|
|
16707
|
-
grantedScopes: text("granted_scopes", { mode: "json" }).$type(),
|
|
16708
|
-
metadata: text("metadata", { mode: "json" }).$type(),
|
|
16709
|
-
connectedAt: integer("connected_at", { mode: "timestamp_ms" }).notNull(),
|
|
16710
|
-
updatedAt: integer("updated_at", { mode: "timestamp_ms" }).notNull()
|
|
16711
|
-
}, (table) => [uniqueIndex("oauth_connections_app_external_unique").on(table.appId, table.externalId)]);
|
|
16712
16668
|
const credentialInstances = pgTable("credential_instances", {
|
|
16713
16669
|
id: text$1("id").primaryKey(),
|
|
16714
16670
|
projectId: text$1("project_id").notNull(),
|
|
@@ -16719,7 +16675,7 @@ const credentialInstances = pgTable("credential_instances", {
|
|
|
16719
16675
|
isDefault: integer$1("is_default").notNull(),
|
|
16720
16676
|
authKind: text$1("auth_kind").$type().notNull(),
|
|
16721
16677
|
ciphertext: text$1("ciphertext"),
|
|
16722
|
-
connectionId: text$1("connection_id")
|
|
16678
|
+
connectionId: text$1("connection_id"),
|
|
16723
16679
|
createdAt: timestamp("created_at", { withTimezone: true }).notNull(),
|
|
16724
16680
|
updatedAt: timestamp("updated_at", { withTimezone: true }).notNull()
|
|
16725
16681
|
}, (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)]);
|
|
@@ -16733,7 +16689,7 @@ const credentialInstancesSqlite = sqliteTable("credential_instances", {
|
|
|
16733
16689
|
isDefault: integer("is_default", { mode: "boolean" }).notNull(),
|
|
16734
16690
|
authKind: text("auth_kind").$type().notNull(),
|
|
16735
16691
|
ciphertext: text("ciphertext"),
|
|
16736
|
-
connectionId: text("connection_id")
|
|
16692
|
+
connectionId: text("connection_id"),
|
|
16737
16693
|
createdAt: integer("created_at", { mode: "timestamp_ms" }).notNull(),
|
|
16738
16694
|
updatedAt: integer("updated_at", { mode: "timestamp_ms" }).notNull()
|
|
16739
16695
|
}, (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)]);
|
|
@@ -16861,6 +16817,58 @@ const traceLogsSqlite = sqliteTable("trace_logs", {
|
|
|
16861
16817
|
source: text("source").$type().notNull(),
|
|
16862
16818
|
createdAt: integer("created_at", { mode: "timestamp_ms" }).notNull()
|
|
16863
16819
|
}, (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)]);
|
|
16820
|
+
const oauthApps$1 = pgTable("oauth_apps", {
|
|
16821
|
+
id: text$1("id").primaryKey(),
|
|
16822
|
+
projectId: text$1("project_id").notNull(),
|
|
16823
|
+
provider: text$1("provider").notNull(),
|
|
16824
|
+
key: text$1("key").notNull(),
|
|
16825
|
+
tokenStrategy: text$1("token_strategy").$type().notNull(),
|
|
16826
|
+
clientIdCiphertext: text$1("client_id_ciphertext").notNull(),
|
|
16827
|
+
clientSecretCiphertext: text$1("client_secret_ciphertext").notNull(),
|
|
16828
|
+
signingSecretCiphertext: text$1("signing_secret_ciphertext"),
|
|
16829
|
+
redirectUri: text$1("redirect_uri"),
|
|
16830
|
+
metadata: jsonb("metadata").$type(),
|
|
16831
|
+
createdAt: timestamp("created_at", { withTimezone: true }).notNull(),
|
|
16832
|
+
updatedAt: timestamp("updated_at", { withTimezone: true }).notNull()
|
|
16833
|
+
}, (table) => [uniqueIndex$1("oauth_apps_project_id_key_idx").on(table.projectId, table.key)]);
|
|
16834
|
+
const oauthAppsSqlite = sqliteTable("oauth_apps", {
|
|
16835
|
+
id: text("id").primaryKey(),
|
|
16836
|
+
projectId: text("project_id").notNull(),
|
|
16837
|
+
provider: text("provider").notNull(),
|
|
16838
|
+
key: text("key").notNull(),
|
|
16839
|
+
tokenStrategy: text("token_strategy").$type().notNull(),
|
|
16840
|
+
clientIdCiphertext: text("client_id_ciphertext").notNull(),
|
|
16841
|
+
clientSecretCiphertext: text("client_secret_ciphertext").notNull(),
|
|
16842
|
+
signingSecretCiphertext: text("signing_secret_ciphertext"),
|
|
16843
|
+
redirectUri: text("redirect_uri"),
|
|
16844
|
+
metadata: text("metadata", { mode: "json" }).$type(),
|
|
16845
|
+
createdAt: integer("created_at", { mode: "timestamp_ms" }).notNull(),
|
|
16846
|
+
updatedAt: integer("updated_at", { mode: "timestamp_ms" }).notNull()
|
|
16847
|
+
}, (table) => [uniqueIndex("oauth_apps_project_id_key_idx").on(table.projectId, table.key)]);
|
|
16848
|
+
const oauthConnections$1 = pgTable("oauth_connections", {
|
|
16849
|
+
id: text$1("id").primaryKey(),
|
|
16850
|
+
appId: text$1("app_id").notNull().references(() => oauthApps$1.id, { onDelete: "cascade" }),
|
|
16851
|
+
externalId: text$1("external_id").notNull(),
|
|
16852
|
+
accessTokenCiphertext: text$1("access_token_ciphertext").notNull(),
|
|
16853
|
+
refreshTokenCiphertext: text$1("refresh_token_ciphertext"),
|
|
16854
|
+
accessTokenExpiresAt: timestamp("access_token_expires_at", { withTimezone: true }),
|
|
16855
|
+
grantedScopes: jsonb("granted_scopes").$type(),
|
|
16856
|
+
metadata: jsonb("metadata").$type(),
|
|
16857
|
+
connectedAt: timestamp("connected_at", { withTimezone: true }).notNull(),
|
|
16858
|
+
updatedAt: timestamp("updated_at", { withTimezone: true }).notNull()
|
|
16859
|
+
}, (table) => [uniqueIndex$1("oauth_connections_app_external_unique").on(table.appId, table.externalId)]);
|
|
16860
|
+
const oauthConnectionsSqlite = sqliteTable("oauth_connections", {
|
|
16861
|
+
id: text("id").primaryKey(),
|
|
16862
|
+
appId: text("app_id").notNull().references(() => oauthAppsSqlite.id, { onDelete: "cascade" }),
|
|
16863
|
+
externalId: text("external_id").notNull(),
|
|
16864
|
+
accessTokenCiphertext: text("access_token_ciphertext").notNull(),
|
|
16865
|
+
refreshTokenCiphertext: text("refresh_token_ciphertext"),
|
|
16866
|
+
accessTokenExpiresAt: integer("access_token_expires_at", { mode: "timestamp_ms" }),
|
|
16867
|
+
grantedScopes: text("granted_scopes", { mode: "json" }).$type(),
|
|
16868
|
+
metadata: text("metadata", { mode: "json" }).$type(),
|
|
16869
|
+
connectedAt: integer("connected_at", { mode: "timestamp_ms" }).notNull(),
|
|
16870
|
+
updatedAt: integer("updated_at", { mode: "timestamp_ms" }).notNull()
|
|
16871
|
+
}, (table) => [uniqueIndex("oauth_connections_app_external_unique").on(table.appId, table.externalId)]);
|
|
16864
16872
|
const secretValues$1 = pgTable("secret_values", {
|
|
16865
16873
|
id: text$1("id").primaryKey(),
|
|
16866
16874
|
projectId: text$1("project_id").notNull(),
|
|
@@ -17434,7 +17442,7 @@ const oauthApps = pgTable("oauth_apps", {
|
|
|
17434
17442
|
metadata: jsonb("metadata").$type(),
|
|
17435
17443
|
createdAt: timestamp("created_at", { withTimezone: true }).notNull(),
|
|
17436
17444
|
updatedAt: timestamp("updated_at", { withTimezone: true }).notNull()
|
|
17437
|
-
}, (table) => [uniqueIndex$1("oauth_apps_organization_id_key_idx").on(table.organizationId, table.key)]);
|
|
17445
|
+
}, (table) => [uniqueIndex$1("oauth_apps_organization_id_key_idx").on(table.organizationId, table.key), index$1("oauth_apps_key_idx").on(table.key)]);
|
|
17438
17446
|
const oauthConnections = pgTable("oauth_connections", {
|
|
17439
17447
|
id: text$1("id").primaryKey(),
|
|
17440
17448
|
appId: text$1("app_id").notNull().references(() => oauthApps.id, { onDelete: "cascade" }),
|
|
@@ -17446,7 +17454,7 @@ const oauthConnections = pgTable("oauth_connections", {
|
|
|
17446
17454
|
metadata: jsonb("metadata").$type(),
|
|
17447
17455
|
connectedAt: timestamp("connected_at", { withTimezone: true }).notNull(),
|
|
17448
17456
|
updatedAt: timestamp("updated_at", { withTimezone: true }).notNull()
|
|
17449
|
-
}, (table) => [uniqueIndex$1("oauth_connections_app_external_unique").on(table.appId, table.externalId)]);
|
|
17457
|
+
}, (table) => [uniqueIndex$1("oauth_connections_app_external_unique").on(table.appId, table.externalId), index$1("oauth_connections_external_id_idx").on(table.externalId)]);
|
|
17450
17458
|
const organizationUsers = pgTable("organization_users", {
|
|
17451
17459
|
organizationId: text$1("organization_id").notNull().references(() => organizations.id, { onDelete: "cascade" }),
|
|
17452
17460
|
userId: text$1("user_id").notNull().references(() => users.id, { onDelete: "cascade" }),
|
|
@@ -18295,4 +18303,4 @@ Object.defineProperty(exports, "zodToJsonSchema", {
|
|
|
18295
18303
|
}
|
|
18296
18304
|
});
|
|
18297
18305
|
|
|
18298
|
-
//# sourceMappingURL=dist-
|
|
18306
|
+
//# sourceMappingURL=dist-CU4Mv5ac.cjs.map
|