@keystrokehq/keystroke 0.0.65 → 0.0.68
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 +3 -3
- package/dist/agent.mjs +3 -3
- package/dist/credentials.cjs +1 -1
- package/dist/credentials.mjs +1 -1
- package/dist/{dist-D2apKUWN.mjs → dist-BNJUEQuz.mjs} +22 -3
- package/dist/{dist-D2apKUWN.mjs.map → dist-BNJUEQuz.mjs.map} +1 -1
- package/dist/{dist-DwaQgupy.mjs → dist-BmPy5M5x.mjs} +184 -7
- package/dist/dist-BmPy5M5x.mjs.map +1 -0
- package/dist/{dist-CNECye-C.cjs → dist-CEwjYC2P.cjs} +3 -3
- package/dist/{dist-CNECye-C.cjs.map → dist-CEwjYC2P.cjs.map} +1 -1
- package/dist/{dist-BIzKfLyv.cjs → dist-CMtsXlvx.cjs} +184 -7
- package/dist/dist-CMtsXlvx.cjs.map +1 -0
- package/dist/{dist-CfqtAm2a.cjs → dist-ItsoC5HL.cjs} +22 -3
- package/dist/{dist-CfqtAm2a.cjs.map → dist-ItsoC5HL.cjs.map} +1 -1
- package/dist/{dist-e4hTZORP.mjs → dist-tz7FGihf.mjs} +3 -3
- package/dist/{dist-e4hTZORP.mjs.map → dist-tz7FGihf.mjs.map} +1 -1
- package/dist/index-BeEymXir.d.cts.map +1 -1
- package/dist/index-BeEymXir.d.mts.map +1 -1
- package/dist/{mistral-C5zeYR8O.cjs → mistral-CQYg1JOM.cjs} +2 -2
- package/dist/{mistral-C5zeYR8O.cjs.map → mistral-CQYg1JOM.cjs.map} +1 -1
- package/dist/{mistral-CCsOaxvh.mjs → mistral-D7a1LQ-6.mjs} +2 -2
- package/dist/{mistral-CCsOaxvh.mjs.map → mistral-D7a1LQ-6.mjs.map} +1 -1
- package/dist/{sse-JXoU6noN.cjs → sse-DT9Dj_UC.cjs} +2 -2
- package/dist/{sse-JXoU6noN.cjs.map → sse-DT9Dj_UC.cjs.map} +1 -1
- package/dist/{sse-B2sEoxtv.mjs → sse-Du6RPHfh.mjs} +2 -2
- package/dist/{sse-B2sEoxtv.mjs.map → sse-Du6RPHfh.mjs.map} +1 -1
- package/dist/trigger.cjs +1 -1
- package/dist/trigger.mjs +1 -1
- package/dist/workflow.cjs +1 -1
- package/dist/workflow.mjs +1 -1
- package/package.json +9 -9
- package/dist/dist-BIzKfLyv.cjs.map +0 -1
- package/dist/dist-DwaQgupy.mjs.map +0 -1
package/dist/action.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_dist = require("./dist-
|
|
2
|
+
const require_dist = require("./dist-CMtsXlvx.cjs");
|
|
3
3
|
exports.CREDENTIAL_SCOPE_LEVELS = require_dist.CREDENTIAL_SCOPE_LEVELS;
|
|
4
4
|
exports.DEFAULT_CREDENTIAL_RESOLUTION_CHAIN = require_dist.DEFAULT_CREDENTIAL_RESOLUTION_CHAIN;
|
|
5
5
|
exports.actionCoreSchema = require_dist.actionCoreSchema;
|
package/dist/action.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { _ as credentialInputSchema, a as getActionCredentialRequirements, b as normalizeCredentialList, c as isStepInvocation, d as runOutsideActionExecution, f as runWithinActionExecution, g as credential, h as DEFAULT_CREDENTIAL_RESOLUTION_CHAIN, i as executeAction, l as registerWorkflowRunGetter, n as createStepInvocation, o as getWorkflowRunHandle, p as CREDENTIAL_SCOPE_LEVELS, r as defineAction, s as isAction, t as actionCoreSchema, u as resolveActionTool, v as defineCredential, x as toCredentialRequirement, y as isCredentialInput } from "./dist-
|
|
1
|
+
import { _ as credentialInputSchema, a as getActionCredentialRequirements, b as normalizeCredentialList, c as isStepInvocation, d as runOutsideActionExecution, f as runWithinActionExecution, g as credential, h as DEFAULT_CREDENTIAL_RESOLUTION_CHAIN, i as executeAction, l as registerWorkflowRunGetter, n as createStepInvocation, o as getWorkflowRunHandle, p as CREDENTIAL_SCOPE_LEVELS, r as defineAction, s as isAction, t as actionCoreSchema, u as resolveActionTool, v as defineCredential, x as toCredentialRequirement, y as isCredentialInput } from "./dist-BmPy5M5x.mjs";
|
|
2
2
|
export { CREDENTIAL_SCOPE_LEVELS, DEFAULT_CREDENTIAL_RESOLUTION_CHAIN, actionCoreSchema, createStepInvocation, credential, credentialInputSchema, defineAction, defineCredential, executeAction, getActionCredentialRequirements, getWorkflowRunHandle, isAction, isCredentialInput, isStepInvocation, normalizeCredentialList, registerWorkflowRunGetter, resolveActionTool, runOutsideActionExecution, runWithinActionExecution, toCredentialRequirement };
|
package/dist/agent.cjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
const require_dist$1 = require("./dist-C7Fgk61q.cjs");
|
|
3
|
-
const require_dist$2 = require("./dist-
|
|
3
|
+
const require_dist$2 = require("./dist-CMtsXlvx.cjs");
|
|
4
4
|
require("./env-api-keys-BFptfIIs.cjs");
|
|
5
5
|
const require_event_stream = require("./event-stream-CS-ls7wC.cjs");
|
|
6
6
|
require("./json-parse-DV41_cbO.cjs");
|
|
7
|
-
const require_dist$3 = require("./dist-
|
|
7
|
+
const require_dist$3 = require("./dist-ItsoC5HL.cjs");
|
|
8
8
|
let zod = require("zod");
|
|
9
9
|
let node_module = require("node:module");
|
|
10
10
|
let node_fs = require("node:fs");
|
|
@@ -928,7 +928,7 @@ function loadGoogleVertexProviderModule() {
|
|
|
928
928
|
return googleVertexProviderModulePromise;
|
|
929
929
|
}
|
|
930
930
|
function loadMistralProviderModule() {
|
|
931
|
-
mistralProviderModulePromise ||= Promise.resolve().then(() => require("./mistral-
|
|
931
|
+
mistralProviderModulePromise ||= Promise.resolve().then(() => require("./mistral-CQYg1JOM.cjs")).then((module) => {
|
|
932
932
|
const provider = module;
|
|
933
933
|
return {
|
|
934
934
|
stream: provider.streamMistral,
|
package/dist/agent.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { $ as Options, $t as IsMap, An as IsSymbol$1, At as Unreachable, Bn as __require, Bt as IsRef$1, Cn as IsMinLength$2, Ct as IsInteger$2, Dn as IsObject$1, Dt as IsCodec, En as IsNumber$1, Et as IsBigInt$2, Fn as Symbols, Ft as IsUnion, G as ensureWorkspaceDir, Gt as IsArray$2, Ht as IsFunction$2, In as guard_exports, It as Union, Jt as IsOptional, K as materializeSandbox, Kt as Base, Ln as __commonJSMin, Lt as IsObject$2, Mn as IsUnsafePropertyKey, Mt as IsEnum$1, Nn as IsValueLike, Nt as IsCyclic, On as IsObjectNotArray$1, Ot as Hash, Pn as Keys$1, Pt as Unknown, Q as Instantiate, Qt as Get$3, Rt as _Object_, Sn as IsMaxLength$2, St as IsIterator$2, Tn as IsNull$1, Tt as IsBoolean$2, Ut as IsConstructor$2, Vt as Ref$1, W as defineSandbox, Wt as IsAsyncIterator$2, X as resolveSandboxRoot, Xt as IsPromise, Y as resolveAppRootFromModule, Yt as Optional, Z as Evaluate$1, Zt as IsSchema$1, _n as IsGreaterThan$1, _t as IsLiteralBigInt, a as createSandbox, an as EveryAll, at as RecordPattern, bn as IsLessEqualThan$1, bt as IsLiteralString, c as defineTool$1, cn as IsAsyncIterator$1, ct as EnumToUnion, d as resolveRunProvider, dn as IsClassInstance, dt as String$1, en as IsSet, et as Compare, fn as IsConstructor$1, ft as IsSymbol$2, gn as IsGreaterEqualThan$1, gt as IsLiteral, hn as IsFunction$1, ht as IsNull$2, i as createJustBashProvider, in as Every$1, it as IsRecord, jn as IsUndefined$1, jt as IsIntersect, kn as IsString$1, kt as hash_exports, ln as IsBigInt$1, lt as TemplateLiteralDecode, mn as IsEqual$1, mt as Number$1, nn as Entries$2, nt as IsVoid, o as defaultWorkspacesRoot, on as HasPropertyKey$1, ot as RecordValue, pn as IsDeepEqual$1, pt as IsNumber$2, q as packAssetDirs, qt as IsBase, r as createInvokeToolBridge, rn as EntriesRegExp, rt as IsUndefined$2, s as defineSkill, sn as IsArray$1, st as IsTuple, tn as IsTypeArray, tt as IsTemplateLiteral, u as materializeSkills, un as IsBoolean$1, ut as IsString$2, vn as IsInteger$1, vt as IsLiteralBoolean, wn as IsMultipleOf$1, wt as Boolean$1, xn as IsLessThan$1, xt as Literal, yn as IsIterator$1, yt as IsLiteralNumber, zn as __exportAll, zt as IsNever } from "./dist-PFUo6XmY.mjs";
|
|
2
|
-
import { s as isAction, u as resolveActionTool } from "./dist-
|
|
2
|
+
import { s as isAction, u as resolveActionTool } from "./dist-BmPy5M5x.mjs";
|
|
3
3
|
import "./env-api-keys-CdN4tAK8.mjs";
|
|
4
4
|
import { i as getModel, t as AssistantMessageEventStream } from "./event-stream-C7YBbzsc.mjs";
|
|
5
5
|
import "./json-parse-CQOxNUrj.mjs";
|
|
6
|
-
import { S as isMcp, _ as touchSession, a as buildCredentialRunContext, b as connectMcpStdio, c as isCredentialError, d as MESSAGE_EVENT_TYPE$1, f as appendEvent, g as listMessageEvents, h as getSession, i as withSpan, l as resolveActionCredentials, m as getAgentByRoute, n as getTraceContext, o as captureCredentialToolErrors, p as createSession, s as createCredentialResolver, t as captureConsole, u as resolveMcpTools, v as connectMcpDefinition, x as defineMcp, y as connectMcpServer } from "./dist-
|
|
6
|
+
import { S as isMcp, _ as touchSession, a as buildCredentialRunContext, b as connectMcpStdio, c as isCredentialError, d as MESSAGE_EVENT_TYPE$1, f as appendEvent, g as listMessageEvents, h as getSession, i as withSpan, l as resolveActionCredentials, m as getAgentByRoute, n as getTraceContext, o as captureCredentialToolErrors, p as createSession, s as createCredentialResolver, t as captureConsole, u as resolveMcpTools, v as connectMcpDefinition, x as defineMcp, y as connectMcpServer } from "./dist-BNJUEQuz.mjs";
|
|
7
7
|
import { createRequire } from "node:module";
|
|
8
8
|
import { z } from "zod";
|
|
9
9
|
import { existsSync, mkdirSync, readFileSync, readdirSync, statSync, writeFileSync } from "node:fs";
|
|
@@ -927,7 +927,7 @@ function loadGoogleVertexProviderModule() {
|
|
|
927
927
|
return googleVertexProviderModulePromise;
|
|
928
928
|
}
|
|
929
929
|
function loadMistralProviderModule() {
|
|
930
|
-
mistralProviderModulePromise ||= import("./mistral-
|
|
930
|
+
mistralProviderModulePromise ||= import("./mistral-D7a1LQ-6.mjs").then((module) => {
|
|
931
931
|
const provider = module;
|
|
932
932
|
return {
|
|
933
933
|
stream: provider.streamMistral,
|
package/dist/credentials.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_dist = require("./dist-
|
|
2
|
+
const require_dist = require("./dist-CMtsXlvx.cjs");
|
|
3
3
|
exports.CREDENTIAL_SCOPE_LEVELS = require_dist.CREDENTIAL_SCOPE_LEVELS;
|
|
4
4
|
exports.DEFAULT_CREDENTIAL_RESOLUTION_CHAIN = require_dist.DEFAULT_CREDENTIAL_RESOLUTION_CHAIN;
|
|
5
5
|
exports.credential = require_dist.credential;
|
package/dist/credentials.mjs
CHANGED
|
@@ -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-
|
|
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-BmPy5M5x.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-PFUo6XmY.mjs";
|
|
2
|
-
import { b as normalizeCredentialList, m as CREDENTIAL_SCOPE_LEVEL_TO_SCOPE_TYPE } from "./dist-
|
|
2
|
+
import { b as normalizeCredentialList, m as CREDENTIAL_SCOPE_LEVEL_TO_SCOPE_TYPE } from "./dist-BmPy5M5x.mjs";
|
|
3
3
|
import { AsyncLocalStorage } from "node:async_hooks";
|
|
4
4
|
import "node:fs";
|
|
5
5
|
import { ZodFirstPartyTypeKind } from "zod/v3";
|
|
@@ -13252,7 +13252,7 @@ async function connectMcpServer(name, options) {
|
|
|
13252
13252
|
}
|
|
13253
13253
|
async function createTransport(url, transport, requestInit, fetchImpl) {
|
|
13254
13254
|
if (transport === "sse") {
|
|
13255
|
-
const { SSEClientTransport } = await import("./sse-
|
|
13255
|
+
const { SSEClientTransport } = await import("./sse-Du6RPHfh.mjs");
|
|
13256
13256
|
return new SSEClientTransport(url, {
|
|
13257
13257
|
requestInit,
|
|
13258
13258
|
fetch: fetchImpl
|
|
@@ -17333,10 +17333,27 @@ const organizationUsers = pgTable("organization_users", {
|
|
|
17333
17333
|
organizationId: text$1("organization_id").notNull().references(() => organizations.id, { onDelete: "cascade" }),
|
|
17334
17334
|
userId: text$1("user_id").notNull().references(() => users.id, { onDelete: "cascade" }),
|
|
17335
17335
|
role: text$1("role").notNull().$type(),
|
|
17336
|
+
status: text$1("status").notNull().$type().default("active"),
|
|
17336
17337
|
createdAt: timestamp("created_at", { withTimezone: true }).notNull(),
|
|
17337
17338
|
updatedAt: timestamp("updated_at", { withTimezone: true }).notNull(),
|
|
17338
17339
|
deletedAt: timestamp("deleted_at", { withTimezone: true })
|
|
17339
17340
|
}, (table) => [primaryKey$1({ columns: [table.organizationId, table.userId] }), index$1("organization_users_user_id_idx").on(table.userId)]);
|
|
17341
|
+
const organizationInvitations = pgTable("organization_invitations", {
|
|
17342
|
+
id: text$1("id").primaryKey(),
|
|
17343
|
+
organizationId: text$1("organization_id").notNull().references(() => organizations.id, { onDelete: "cascade" }),
|
|
17344
|
+
userId: text$1("user_id").notNull().references(() => users.id, { onDelete: "cascade" }),
|
|
17345
|
+
email: text$1("email").notNull(),
|
|
17346
|
+
role: text$1("role").notNull().$type(),
|
|
17347
|
+
status: text$1("status").notNull().$type(),
|
|
17348
|
+
invitedByUserId: text$1("invited_by_user_id").notNull().references(() => users.id, { onDelete: "cascade" }),
|
|
17349
|
+
createdAt: timestamp("created_at", { withTimezone: true }).notNull(),
|
|
17350
|
+
updatedAt: timestamp("updated_at", { withTimezone: true }).notNull(),
|
|
17351
|
+
expiresAt: timestamp("expires_at", { withTimezone: true })
|
|
17352
|
+
}, (table) => [
|
|
17353
|
+
index$1("organization_invitations_user_id_idx").on(table.userId),
|
|
17354
|
+
index$1("organization_invitations_organization_id_idx").on(table.organizationId),
|
|
17355
|
+
uniqueIndex$1("organization_invitations_org_user_pending_unique").on(table.organizationId, table.userId).where(sql`${table.status} = 'pending'`)
|
|
17356
|
+
]);
|
|
17340
17357
|
const projectStatusEnum = pgEnum("project_status", [
|
|
17341
17358
|
"inactive",
|
|
17342
17359
|
"starting",
|
|
@@ -17351,6 +17368,7 @@ const projects = pgTable("projects", {
|
|
|
17351
17368
|
baseUrl: text$1("base_url"),
|
|
17352
17369
|
runtimeId: text$1("runtime_id"),
|
|
17353
17370
|
activeArtifactId: text$1("active_artifact_id"),
|
|
17371
|
+
pendingArtifactId: text$1("pending_artifact_id"),
|
|
17354
17372
|
lastError: text$1("last_error"),
|
|
17355
17373
|
createdAt: timestamp("created_at", { withTimezone: true }).notNull(),
|
|
17356
17374
|
updatedAt: timestamp("updated_at", { withTimezone: true }).notNull(),
|
|
@@ -17379,6 +17397,7 @@ const secretValues = pgTable("secret_values", {
|
|
|
17379
17397
|
buildPgSchema({
|
|
17380
17398
|
organizations: { pg: organizations },
|
|
17381
17399
|
organizationUsers: { pg: organizationUsers },
|
|
17400
|
+
organizationInvitations: { pg: organizationInvitations },
|
|
17382
17401
|
projects: { pg: projects },
|
|
17383
17402
|
projectArtifacts: { pg: projectArtifacts },
|
|
17384
17403
|
users: { pg: users },
|
|
@@ -18006,4 +18025,4 @@ async function withSpan(input, fn) {
|
|
|
18006
18025
|
//#endregion
|
|
18007
18026
|
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 };
|
|
18008
18027
|
|
|
18009
|
-
//# sourceMappingURL=dist-
|
|
18028
|
+
//# sourceMappingURL=dist-BNJUEQuz.mjs.map
|