@keystrokehq/keystroke 0.0.127 → 0.0.129

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-CSMnDtYw.cjs → dist-269Dbh_B.cjs} +23 -3
  8. package/dist/{dist-CSMnDtYw.cjs.map → dist-269Dbh_B.cjs.map} +1 -1
  9. package/dist/{dist-keSU-jn1.mjs → dist-43TWfS7x.mjs} +25 -1
  10. package/dist/dist-43TWfS7x.mjs.map +1 -0
  11. package/dist/{dist-NyPM5JIH.cjs → dist-CYgJ4TAV.cjs} +25 -1
  12. package/dist/dist-CYgJ4TAV.cjs.map +1 -0
  13. package/dist/{dist-DSnJ564v.mjs → dist-CtVI23QG.mjs} +3 -3
  14. package/dist/{dist-DSnJ564v.mjs.map → dist-CtVI23QG.mjs.map} +1 -1
  15. package/dist/{dist-DBRnIfZG.cjs → dist-RCPLvk2O.cjs} +3 -3
  16. package/dist/{dist-DBRnIfZG.cjs.map → dist-RCPLvk2O.cjs.map} +1 -1
  17. package/dist/{dist-CMXsafJ5.mjs → dist-d_1yOiLZ.mjs} +23 -3
  18. package/dist/{dist-CMXsafJ5.mjs.map → dist-d_1yOiLZ.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-mdMK3Nbf.cjs → mistral-C4NoV_JX.cjs} +2 -2
  22. package/dist/{mistral-mdMK3Nbf.cjs.map → mistral-C4NoV_JX.cjs.map} +1 -1
  23. package/dist/{mistral-CfoK9vPT.mjs → mistral-uMw8pYma.mjs} +2 -2
  24. package/dist/{mistral-CfoK9vPT.mjs.map → mistral-uMw8pYma.mjs.map} +1 -1
  25. package/dist/{sse-DKIjO4pC.cjs → sse-BnYZBS9d.cjs} +2 -2
  26. package/dist/{sse-DKIjO4pC.cjs.map → sse-BnYZBS9d.cjs.map} +1 -1
  27. package/dist/{sse-C9Wcwf2r.mjs → sse-CESgApME.mjs} +2 -2
  28. package/dist/{sse-C9Wcwf2r.mjs.map → sse-CESgApME.mjs.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-NyPM5JIH.cjs.map +0 -1
  35. package/dist/dist-keSU-jn1.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-NyPM5JIH.cjs");
2
+ const require_dist = require("./dist-CYgJ4TAV.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-keSU-jn1.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-43TWfS7x.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-CzlcKYAU.cjs");
3
- const require_dist$2 = require("./dist-NyPM5JIH.cjs");
3
+ const require_dist$2 = require("./dist-CYgJ4TAV.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-CWDTOYvX.cjs");
7
- const require_dist$3 = require("./dist-CSMnDtYw.cjs");
7
+ const require_dist$3 = require("./dist-269Dbh_B.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-mdMK3Nbf.cjs")).then((module) => {
904
+ mistralProviderModulePromise ||= Promise.resolve().then(() => require("./mistral-C4NoV_JX.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, 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-f_JGyGWx.mjs";
2
- import { d as resolveActionTool, l as isWithinActionExecution, o as getWorkflowRunHandle, s as isAction } from "./dist-keSU-jn1.mjs";
2
+ import { d as resolveActionTool, l as isWithinActionExecution, o as getWorkflowRunHandle, s as isAction } from "./dist-43TWfS7x.mjs";
3
3
  import "./env-api-keys-BSMeSmLq.mjs";
4
4
  import { i as getModel, t as AssistantMessageEventStream } from "./event-stream-C7YBbzsc.mjs";
5
5
  import "./json-parse-BhvKZ346.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-CMXsafJ5.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-d_1yOiLZ.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-CfoK9vPT.mjs").then((module) => {
903
+ mistralProviderModulePromise ||= import("./mistral-uMw8pYma.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-NyPM5JIH.cjs");
2
+ const require_dist = require("./dist-CYgJ4TAV.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-keSU-jn1.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-43TWfS7x.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-CzlcKYAU.cjs");
2
- const require_dist$2 = require("./dist-NyPM5JIH.cjs");
2
+ const require_dist$2 = require("./dist-CYgJ4TAV.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-DKIjO4pC.cjs"));
13265
+ const { SSEClientTransport } = await Promise.resolve().then(() => require("./sse-BnYZBS9d.cjs"));
13266
13266
  return new SSEClientTransport(url, {
13267
13267
  requestInit,
13268
13268
  fetch: fetchImpl
@@ -16929,6 +16929,22 @@ const workflowsSqlite = sqliteTable("workflows", {
16929
16929
  updatedAt: integer("updated_at", { mode: "timestamp_ms" }).notNull(),
16930
16930
  deletedAt: integer("deleted_at", { mode: "timestamp_ms" })
16931
16931
  }, (table) => [uniqueIndex("workflows_project_id_key_idx").on(table.projectId, table.key)]);
16932
+ const resourceActivity = pgTable("resource_activity", {
16933
+ id: text$1("id").primaryKey(),
16934
+ projectId: text$1("project_id").notNull(),
16935
+ userId: text$1("user_id").notNull(),
16936
+ resourceKind: text$1("resource_kind").notNull(),
16937
+ resourceId: text$1("resource_id").notNull(),
16938
+ lastOpenedAt: timestamp("last_opened_at", { withTimezone: true }).notNull()
16939
+ }, (table) => [uniqueIndex$1("resource_activity_project_user_kind_resource").on(table.projectId, table.userId, table.resourceKind, table.resourceId), index$1("resource_activity_user_last_opened_at").on(table.userId, table.lastOpenedAt)]);
16940
+ const resourceActivitySqlite = sqliteTable("resource_activity", {
16941
+ id: text("id").primaryKey(),
16942
+ projectId: text("project_id").notNull(),
16943
+ userId: text("user_id").notNull(),
16944
+ resourceKind: text("resource_kind").notNull(),
16945
+ resourceId: text("resource_id").notNull(),
16946
+ lastOpenedAt: integer("last_opened_at", { mode: "timestamp_ms" }).notNull()
16947
+ }, (table) => [uniqueIndex("resource_activity_project_user_kind_resource").on(table.projectId, table.userId, table.resourceKind, table.resourceId), index("resource_activity_user_last_opened_at").on(table.userId, table.lastOpenedAt)]);
16932
16948
  /**
16933
16949
  * Project server tables — Postgres (hosted) or SQLite (local dev).
16934
16950
  */
@@ -17016,6 +17032,10 @@ const tableRegistry = {
17016
17032
  workflowSubscriptions: {
17017
17033
  pg: workflowSubscriptions,
17018
17034
  sqlite: workflowSubscriptionsSqlite
17035
+ },
17036
+ resourceActivity: {
17037
+ pg: resourceActivity,
17038
+ sqlite: resourceActivitySqlite
17019
17039
  }
17020
17040
  };
17021
17041
  buildPgSchema$1(tableRegistry);
@@ -18336,4 +18356,4 @@ Object.defineProperty(exports, "zodToJsonSchema", {
18336
18356
  }
18337
18357
  });
18338
18358
 
18339
- //# sourceMappingURL=dist-CSMnDtYw.cjs.map
18359
+ //# sourceMappingURL=dist-269Dbh_B.cjs.map