@keystrokehq/keystroke 0.0.151 → 0.0.152

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 (35) hide show
  1. package/dist/action.cjs +1 -1
  2. package/dist/action.mjs +1 -1
  3. package/dist/agent.cjs +3 -3
  4. package/dist/agent.mjs +3 -3
  5. package/dist/credentials.cjs +1 -1
  6. package/dist/credentials.mjs +1 -1
  7. package/dist/{dist-UsJmzx6N.cjs → dist-BI6vOjTL.cjs} +15 -3
  8. package/dist/{dist-UsJmzx6N.cjs.map → dist-BI6vOjTL.cjs.map} +1 -1
  9. package/dist/{dist-AYybP-_r.mjs → dist-BPQOlCQz.mjs} +3 -3
  10. package/dist/{dist-AYybP-_r.mjs.map → dist-BPQOlCQz.mjs.map} +1 -1
  11. package/dist/{dist-vuSksyzQ.cjs → dist-BbumQbIu.cjs} +54 -10
  12. package/dist/dist-BbumQbIu.cjs.map +1 -0
  13. package/dist/{dist-DbZOAt18.mjs → dist-Ck8qiM5U.mjs} +54 -10
  14. package/dist/dist-Ck8qiM5U.mjs.map +1 -0
  15. package/dist/{dist-CXZLZoZO.cjs → dist-U42YpdV3.cjs} +3 -3
  16. package/dist/{dist-CXZLZoZO.cjs.map → dist-U42YpdV3.cjs.map} +1 -1
  17. package/dist/{dist-CXONdNWW.mjs → dist-jQ_wX9Un.mjs} +15 -3
  18. package/dist/{dist-CXONdNWW.mjs.map → dist-jQ_wX9Un.mjs.map} +1 -1
  19. package/dist/index-CiuCYKLw.d.cts.map +1 -1
  20. package/dist/index-CiuCYKLw.d.mts.map +1 -1
  21. package/dist/{mistral-Dp78jjN3.cjs → mistral-BNHkoQYq.cjs} +2 -2
  22. package/dist/{mistral-Dp78jjN3.cjs.map → mistral-BNHkoQYq.cjs.map} +1 -1
  23. package/dist/{mistral-C2xaGIUN.mjs → mistral-ByX76aC4.mjs} +2 -2
  24. package/dist/{mistral-C2xaGIUN.mjs.map → mistral-ByX76aC4.mjs.map} +1 -1
  25. package/dist/{sse-C6qFG99O.mjs → sse-CUYXQIim.mjs} +2 -2
  26. package/dist/{sse-C6qFG99O.mjs.map → sse-CUYXQIim.mjs.map} +1 -1
  27. package/dist/{sse-S5aMzXcs.cjs → sse-P3zsZNyf.cjs} +2 -2
  28. package/dist/{sse-S5aMzXcs.cjs.map → sse-P3zsZNyf.cjs.map} +1 -1
  29. package/dist/trigger.cjs +1 -1
  30. package/dist/trigger.mjs +1 -1
  31. package/dist/workflow.cjs +1 -1
  32. package/dist/workflow.mjs +1 -1
  33. package/package.json +1 -1
  34. package/dist/dist-DbZOAt18.mjs.map +0 -1
  35. package/dist/dist-vuSksyzQ.cjs.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-vuSksyzQ.cjs");
2
+ const require_dist = require("./dist-BbumQbIu.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 { S as toCredentialRequirement, _ as credential, a as getActionCredentialRequirements, b as isCredentialInput, c as isStepInvocation, d as resolveActionTool, f as runOutsideActionExecution, g as DEFAULT_CREDENTIAL_RESOLUTION_CHAIN, i as executeAction, l as isWithinActionExecution, m as CREDENTIAL_SCOPE_LEVELS, n as createStepInvocation, o as getWorkflowRunHandle, p as runWithinActionExecution, r as defineAction, s as isAction, t as actionCoreSchema, u as registerWorkflowRunGetter, v as credentialInputSchema, x as normalizeCredentialList, y as defineCredential } from "./dist-DbZOAt18.mjs";
1
+ import { S as toCredentialRequirement, _ as credential, a as getActionCredentialRequirements, b as isCredentialInput, c as isStepInvocation, d as resolveActionTool, f as runOutsideActionExecution, g as DEFAULT_CREDENTIAL_RESOLUTION_CHAIN, i as executeAction, l as isWithinActionExecution, m as CREDENTIAL_SCOPE_LEVELS, n as createStepInvocation, o as getWorkflowRunHandle, p as runWithinActionExecution, r as defineAction, s as isAction, t as actionCoreSchema, u as registerWorkflowRunGetter, v as credentialInputSchema, x as normalizeCredentialList, y as defineCredential } from "./dist-Ck8qiM5U.mjs";
2
2
  export { CREDENTIAL_SCOPE_LEVELS, DEFAULT_CREDENTIAL_RESOLUTION_CHAIN, actionCoreSchema, createStepInvocation, credential, credentialInputSchema, defineAction, defineCredential, executeAction, getActionCredentialRequirements, getWorkflowRunHandle, isAction, isCredentialInput, isStepInvocation, isWithinActionExecution, 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-DnGkWV6x.cjs");
3
- const require_dist$2 = require("./dist-vuSksyzQ.cjs");
3
+ const require_dist$2 = require("./dist-BbumQbIu.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-CwSaKHrs.cjs");
7
- const require_dist$3 = require("./dist-UsJmzx6N.cjs");
7
+ const require_dist$3 = require("./dist-BI6vOjTL.cjs");
8
8
  let zod = require("zod");
9
9
  let node_async_hooks = require("node:async_hooks");
10
10
  let node_fs = require("node:fs");
@@ -901,7 +901,7 @@ function loadGoogleVertexProviderModule() {
901
901
  return googleVertexProviderModulePromise;
902
902
  }
903
903
  function loadMistralProviderModule() {
904
- mistralProviderModulePromise ||= Promise.resolve().then(() => require("./mistral-Dp78jjN3.cjs")).then((module) => {
904
+ mistralProviderModulePromise ||= Promise.resolve().then(() => require("./mistral-BNHkoQYq.cjs")).then((module) => {
905
905
  const provider = module;
906
906
  return {
907
907
  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, 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-Dv44b9V1.mjs";
2
- import { d as resolveActionTool, l as isWithinActionExecution, o as getWorkflowRunHandle, s as isAction } from "./dist-DbZOAt18.mjs";
2
+ import { d as resolveActionTool, l as isWithinActionExecution, o as getWorkflowRunHandle, s as isAction } from "./dist-Ck8qiM5U.mjs";
3
3
  import "./env-api-keys-mjSaOeuP.mjs";
4
4
  import { i as getModel, t as AssistantMessageEventStream } from "./event-stream-C7YBbzsc.mjs";
5
5
  import "./json-parse-Drlv-g_X.mjs";
6
- import { C as isMcp, S as defineMcp, a as resolveActionCredentials, b as connectMcpServer, c as appendEvent, d as getSession, f as listMessageEvents, g as getTraceContext, h as captureConsole, i as isCredentialError, l as createSession, m as touchSession, n as captureCredentialToolErrors, o as resolveMcpTools, p as resolveRunSourceFromTraceContext, r as createCredentialResolver, s as MESSAGE_EVENT_TYPE$1, t as buildCredentialRunContext, u as getAgentByRoute, v as withSpan, x as connectMcpStdio, y as connectMcpDefinition } from "./dist-CXONdNWW.mjs";
6
+ import { C as isMcp, S as defineMcp, a as resolveActionCredentials, b as connectMcpServer, c as appendEvent, d as getSession, f as listMessageEvents, g as getTraceContext, h as captureConsole, i as isCredentialError, l as createSession, m as touchSession, n as captureCredentialToolErrors, o as resolveMcpTools, p as resolveRunSourceFromTraceContext, r as createCredentialResolver, s as MESSAGE_EVENT_TYPE$1, t as buildCredentialRunContext, u as getAgentByRoute, v as withSpan, x as connectMcpStdio, y as connectMcpDefinition } from "./dist-jQ_wX9Un.mjs";
7
7
  import { createRequire } from "node:module";
8
8
  import { z } from "zod";
9
9
  import { AsyncLocalStorage } from "node:async_hooks";
@@ -900,7 +900,7 @@ function loadGoogleVertexProviderModule() {
900
900
  return googleVertexProviderModulePromise;
901
901
  }
902
902
  function loadMistralProviderModule() {
903
- mistralProviderModulePromise ||= import("./mistral-C2xaGIUN.mjs").then((module) => {
903
+ mistralProviderModulePromise ||= import("./mistral-ByX76aC4.mjs").then((module) => {
904
904
  const provider = module;
905
905
  return {
906
906
  stream: provider.streamMistral,
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_dist = require("./dist-vuSksyzQ.cjs");
2
+ const require_dist = require("./dist-BbumQbIu.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;
@@ -1,2 +1,2 @@
1
- import { S as toCredentialRequirement, _ as credential, b as isCredentialInput, g as DEFAULT_CREDENTIAL_RESOLUTION_CHAIN, m as CREDENTIAL_SCOPE_LEVELS, v as credentialInputSchema, x as normalizeCredentialList, y as defineCredential } from "./dist-DbZOAt18.mjs";
1
+ import { S as toCredentialRequirement, _ as credential, b as isCredentialInput, g as DEFAULT_CREDENTIAL_RESOLUTION_CHAIN, m as CREDENTIAL_SCOPE_LEVELS, v as credentialInputSchema, x as normalizeCredentialList, y as defineCredential } from "./dist-Ck8qiM5U.mjs";
2
2
  export { CREDENTIAL_SCOPE_LEVELS, DEFAULT_CREDENTIAL_RESOLUTION_CHAIN, credential, credentialInputSchema, defineCredential, isCredentialInput, normalizeCredentialList, toCredentialRequirement };
@@ -1,5 +1,5 @@
1
1
  const require_dist$1 = require("./dist-DnGkWV6x.cjs");
2
- const require_dist$2 = require("./dist-vuSksyzQ.cjs");
2
+ const require_dist$2 = require("./dist-BbumQbIu.cjs");
3
3
  let node_async_hooks = require("node:async_hooks");
4
4
  require("node:fs");
5
5
  let zod_v3 = require("zod/v3");
@@ -13258,7 +13258,7 @@ async function connectMcpServer(name, options) {
13258
13258
  }
13259
13259
  async function createTransport(url, transport, requestInit, fetchImpl) {
13260
13260
  if (transport === "sse") {
13261
- const { SSEClientTransport } = await Promise.resolve().then(() => require("./sse-S5aMzXcs.cjs"));
13261
+ const { SSEClientTransport } = await Promise.resolve().then(() => require("./sse-P3zsZNyf.cjs"));
13262
13262
  return new SSEClientTransport(url, {
13263
13263
  requestInit,
13264
13264
  fetch: fetchImpl
@@ -17567,6 +17567,8 @@ const projects = pgTable("projects", {
17567
17567
  name: text$1("name").notNull(),
17568
17568
  slug: text$1("slug").notNull(),
17569
17569
  description: text$1("description"),
17570
+ defaultMemberRole: text$1("default_member_role").notNull().$type().default("builder"),
17571
+ invitePermission: text$1("invite_permission").notNull().$type().default("admin"),
17570
17572
  createdByUserId: text$1("created_by_user_id").references(() => users.id, { onDelete: "set null" }),
17571
17573
  status: projectStatusEnum("status").notNull(),
17572
17574
  baseUrl: text$1("base_url"),
@@ -17595,6 +17597,15 @@ const projectArtifacts = pgTable("project_artifacts", {
17595
17597
  createdAt: timestamp("created_at", { withTimezone: true }).notNull(),
17596
17598
  updatedAt: timestamp("updated_at", { withTimezone: true }).notNull()
17597
17599
  }, (table) => [index$1("project_artifacts_project_id_idx").on(table.projectId)]);
17600
+ const projectUsers = pgTable("project_users", {
17601
+ projectId: text$1("project_id").notNull().references(() => projects.id, { onDelete: "cascade" }),
17602
+ userId: text$1("user_id").notNull().references(() => users.id, { onDelete: "cascade" }),
17603
+ role: text$1("role").notNull().$type(),
17604
+ status: text$1("status").notNull().$type().default("active"),
17605
+ createdAt: timestamp("created_at", { withTimezone: true }).notNull(),
17606
+ updatedAt: timestamp("updated_at", { withTimezone: true }).notNull(),
17607
+ deletedAt: timestamp("deleted_at", { withTimezone: true })
17608
+ }, (table) => [primaryKey({ columns: [table.projectId, table.userId] }), index$1("project_users_user_id_idx").on(table.userId)]);
17598
17609
  const secretValues = pgTable("secret_values", {
17599
17610
  id: text$1("id").primaryKey(),
17600
17611
  organizationId: text$1("organization_id").notNull().references(() => organizations.id, { onDelete: "cascade" }),
@@ -17610,6 +17621,7 @@ buildPgSchema({
17610
17621
  organizationUsers: { pg: organizationUsers },
17611
17622
  organizationInvitations: { pg: organizationInvitations },
17612
17623
  projects: { pg: projects },
17624
+ projectUsers: { pg: projectUsers },
17613
17625
  projectArtifacts: { pg: projectArtifacts },
17614
17626
  users: { pg: users },
17615
17627
  authSessions: { pg: authSessions },
@@ -18387,4 +18399,4 @@ Object.defineProperty(exports, "zodToJsonSchema", {
18387
18399
  }
18388
18400
  });
18389
18401
 
18390
- //# sourceMappingURL=dist-UsJmzx6N.cjs.map
18402
+ //# sourceMappingURL=dist-BI6vOjTL.cjs.map