@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
package/dist/agent.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { l as ThinkingLevel, u as getModel } from "./index-BcMCpDKh.cjs";
|
|
2
|
-
import { A as messages, B as AgentCreateInput, C as createAgent, D as errorMessage, E as defineTool, F as resolveAgentId, G as ThinkingLevelSchema, H as DEFAULT_THINKING_LEVEL, I as resolveAgentTools, K as parseAgentCreateInput, L as resolveAgentWorkspaceRoot, M as prepareAgentSession, N as prompt, O as getSubagentToolMetadata, P as resolveAgentAssets, R as runAgentPrompt, S as buildAgentRuntime, T as defineSubagentTool, U as ModelRef, V as AgentCreateInputSchema, W as ModelRefSchema, _ as SessionAgentMismatchError, a as AgentDefinitionInput, b as SubagentToolInherit, c as BuildAgentRuntimeContext, d as PromptInput, f as PromptResponse, g as SandboxedAgentRuntime, h as SUBAGENT_TOOL, i as AgentDefinition, j as normalizeAgentDefinition, k as loadAssetManifest, l as DefineAgentOptions, m as RunAgentPromptOptions, n as AgentAssetInput, o as AgentRuntime, p as ResolvedAgentAssets, q as resolveThinkingLevel, r as AgentConfig, s as AgentSnapshot, t as Agent, u as DefineSubagentToolInput, v as SubagentTool, w as defineAgent, x as SubagentToolMetadata, y as SubagentToolDetails, z as snapshot } from "./index-
|
|
2
|
+
import { A as messages, B as AgentCreateInput, C as createAgent, D as errorMessage, E as defineTool, F as resolveAgentId, G as ThinkingLevelSchema, H as DEFAULT_THINKING_LEVEL, I as resolveAgentTools, K as parseAgentCreateInput, L as resolveAgentWorkspaceRoot, M as prepareAgentSession, N as prompt, O as getSubagentToolMetadata, P as resolveAgentAssets, R as runAgentPrompt, S as buildAgentRuntime, T as defineSubagentTool, U as ModelRef, V as AgentCreateInputSchema, W as ModelRefSchema, _ as SessionAgentMismatchError, a as AgentDefinitionInput, b as SubagentToolInherit, c as BuildAgentRuntimeContext, d as PromptInput, f as PromptResponse, g as SandboxedAgentRuntime, h as SUBAGENT_TOOL, i as AgentDefinition, j as normalizeAgentDefinition, k as loadAssetManifest, l as DefineAgentOptions, m as RunAgentPromptOptions, n as AgentAssetInput, o as AgentRuntime, p as ResolvedAgentAssets, q as resolveThinkingLevel, r as AgentConfig, s as AgentSnapshot, t as Agent, u as DefineSubagentToolInput, v as SubagentTool, w as defineAgent, x as SubagentToolMetadata, y as SubagentToolDetails, z as snapshot } from "./index-BC85cqTS.cjs";
|
|
3
3
|
import { a as McpDefinition, c as McpServerOptions, d as McpTransport, f as connectMcpDefinition, g as isMcp, h as defineMcp, i as McpConnection, l as McpStdioOptions, m as connectMcpStdio, n as McpAuthOptions, o as McpDefinitionInput, p as connectMcpServer, r as McpCallToolOptions, s as McpHttpTransport, t as ToolCredentialResolver, u as McpStdioTransport } from "./index-MfPRY7cK.cjs";
|
|
4
4
|
export { type Agent, type AgentAssetInput, type AgentConfig, type AgentCreateInput, AgentCreateInputSchema, type AgentDefinition, type AgentDefinitionInput, type AgentRuntime, type AgentSnapshot, type BuildAgentRuntimeContext, DEFAULT_THINKING_LEVEL, type DefineAgentOptions, type DefineSubagentToolInput, type McpAuthOptions, type McpCallToolOptions, type McpConnection, type McpDefinition, type McpDefinitionInput, type McpHttpTransport, type McpServerOptions, type McpStdioOptions, type McpStdioTransport, type McpTransport, type ModelRef, ModelRefSchema, type PromptInput, type PromptResponse, type ResolvedAgentAssets, type RunAgentPromptOptions, SUBAGENT_TOOL, type SandboxedAgentRuntime, SessionAgentMismatchError, type SubagentTool, type SubagentToolDetails, type SubagentToolInherit, type SubagentToolMetadata, type ThinkingLevel, ThinkingLevelSchema, type ToolCredentialResolver, buildAgentRuntime, connectMcpDefinition, connectMcpServer, connectMcpStdio, createAgent, defineAgent, defineMcp, defineSubagentTool, defineTool, errorMessage, getModel, getSubagentToolMetadata, isMcp, loadAssetManifest, messages, normalizeAgentDefinition, parseAgentCreateInput, prepareAgentSession, prompt, resolveAgentAssets, resolveAgentId, resolveAgentTools, resolveAgentWorkspaceRoot, resolveThinkingLevel, runAgentPrompt, snapshot };
|
package/dist/agent.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { l as ThinkingLevel, u as getModel } from "./index-Bd_asjgz.mjs";
|
|
2
|
-
import { A as messages, B as AgentCreateInput, C as createAgent, D as errorMessage, E as defineTool, F as resolveAgentId, G as ThinkingLevelSchema, H as DEFAULT_THINKING_LEVEL, I as resolveAgentTools, K as parseAgentCreateInput, L as resolveAgentWorkspaceRoot, M as prepareAgentSession, N as prompt, O as getSubagentToolMetadata, P as resolveAgentAssets, R as runAgentPrompt, S as buildAgentRuntime, T as defineSubagentTool, U as ModelRef, V as AgentCreateInputSchema, W as ModelRefSchema, _ as SessionAgentMismatchError, a as AgentDefinitionInput, b as SubagentToolInherit, c as BuildAgentRuntimeContext, d as PromptInput, f as PromptResponse, g as SandboxedAgentRuntime, h as SUBAGENT_TOOL, i as AgentDefinition, j as normalizeAgentDefinition, k as loadAssetManifest, l as DefineAgentOptions, m as RunAgentPromptOptions, n as AgentAssetInput, o as AgentRuntime, p as ResolvedAgentAssets, q as resolveThinkingLevel, r as AgentConfig, s as AgentSnapshot, t as Agent, u as DefineSubagentToolInput, v as SubagentTool, w as defineAgent, x as SubagentToolMetadata, y as SubagentToolDetails, z as snapshot } from "./index-
|
|
2
|
+
import { A as messages, B as AgentCreateInput, C as createAgent, D as errorMessage, E as defineTool, F as resolveAgentId, G as ThinkingLevelSchema, H as DEFAULT_THINKING_LEVEL, I as resolveAgentTools, K as parseAgentCreateInput, L as resolveAgentWorkspaceRoot, M as prepareAgentSession, N as prompt, O as getSubagentToolMetadata, P as resolveAgentAssets, R as runAgentPrompt, S as buildAgentRuntime, T as defineSubagentTool, U as ModelRef, V as AgentCreateInputSchema, W as ModelRefSchema, _ as SessionAgentMismatchError, a as AgentDefinitionInput, b as SubagentToolInherit, c as BuildAgentRuntimeContext, d as PromptInput, f as PromptResponse, g as SandboxedAgentRuntime, h as SUBAGENT_TOOL, i as AgentDefinition, j as normalizeAgentDefinition, k as loadAssetManifest, l as DefineAgentOptions, m as RunAgentPromptOptions, n as AgentAssetInput, o as AgentRuntime, p as ResolvedAgentAssets, q as resolveThinkingLevel, r as AgentConfig, s as AgentSnapshot, t as Agent, u as DefineSubagentToolInput, v as SubagentTool, w as defineAgent, x as SubagentToolMetadata, y as SubagentToolDetails, z as snapshot } from "./index-BzeJy2rY.mjs";
|
|
3
3
|
import { a as McpDefinition, c as McpServerOptions, d as McpTransport, f as connectMcpDefinition, g as isMcp, h as defineMcp, i as McpConnection, l as McpStdioOptions, m as connectMcpStdio, n as McpAuthOptions, o as McpDefinitionInput, p as connectMcpServer, r as McpCallToolOptions, s as McpHttpTransport, t as ToolCredentialResolver, u as McpStdioTransport } from "./index-ptRM3z9H.mjs";
|
|
4
4
|
export { type Agent, type AgentAssetInput, type AgentConfig, type AgentCreateInput, AgentCreateInputSchema, type AgentDefinition, type AgentDefinitionInput, type AgentRuntime, type AgentSnapshot, type BuildAgentRuntimeContext, DEFAULT_THINKING_LEVEL, type DefineAgentOptions, type DefineSubagentToolInput, type McpAuthOptions, type McpCallToolOptions, type McpConnection, type McpDefinition, type McpDefinitionInput, type McpHttpTransport, type McpServerOptions, type McpStdioOptions, type McpStdioTransport, type McpTransport, type ModelRef, ModelRefSchema, type PromptInput, type PromptResponse, type ResolvedAgentAssets, type RunAgentPromptOptions, SUBAGENT_TOOL, type SandboxedAgentRuntime, SessionAgentMismatchError, type SubagentTool, type SubagentToolDetails, type SubagentToolInherit, type SubagentToolMetadata, type ThinkingLevel, ThinkingLevelSchema, type ToolCredentialResolver, buildAgentRuntime, connectMcpDefinition, connectMcpServer, connectMcpStdio, createAgent, defineAgent, defineMcp, defineSubagentTool, defineTool, errorMessage, getModel, getSubagentToolMetadata, isMcp, loadAssetManifest, messages, normalizeAgentDefinition, parseAgentCreateInput, prepareAgentSession, prompt, resolveAgentAssets, resolveAgentId, resolveAgentTools, resolveAgentWorkspaceRoot, resolveThinkingLevel, runAgentPrompt, snapshot };
|
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-
|
|
2
|
+
import { d as resolveActionTool, l as isWithinActionExecution, o as getWorkflowRunHandle, s as isAction } from "./dist-B_1Y6KLb.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-
|
|
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-CAA_Ik8x.mjs";
|
|
7
7
|
import { createRequire } from "node:module";
|
|
8
8
|
import { z } from "zod";
|
|
9
9
|
import { AsyncLocalStorage } from "node:async_hooks";
|
|
@@ -928,7 +928,7 @@ function loadGoogleVertexProviderModule() {
|
|
|
928
928
|
return googleVertexProviderModulePromise;
|
|
929
929
|
}
|
|
930
930
|
function loadMistralProviderModule() {
|
|
931
|
-
mistralProviderModulePromise ||= import("./mistral-
|
|
931
|
+
mistralProviderModulePromise ||= import("./mistral-C0v9IUYz.mjs").then((module) => {
|
|
932
932
|
const provider = module;
|
|
933
933
|
return {
|
|
934
934
|
stream: provider.streamMistral,
|
|
@@ -13889,7 +13889,11 @@ async function buildAgentRuntime(def, ctx, runPrompt = {}) {
|
|
|
13889
13889
|
});
|
|
13890
13890
|
const memoryTools = memory ? [createMemorySearchTool(memory.config, memory.db, workspaceRoot)] : [];
|
|
13891
13891
|
const resolved = await resolveAgentTools(def.tools ?? [], resolver);
|
|
13892
|
-
const captured = captureCredentialToolErrors([
|
|
13892
|
+
const captured = captureCredentialToolErrors([
|
|
13893
|
+
...memoryTools,
|
|
13894
|
+
...resolved.tools,
|
|
13895
|
+
...runPrompt.hostTools ?? []
|
|
13896
|
+
]);
|
|
13893
13897
|
const hostTools = captured.tools;
|
|
13894
13898
|
const runtimeProvider = runPrompt.runtimeProvider ?? def.runtimeProvider;
|
|
13895
13899
|
const handle = await createSandbox({
|