@keystrokehq/keystroke 1.0.15 → 1.0.18
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/agent.cjs +6 -5
- package/dist/agent.cjs.map +1 -1
- package/dist/agent.d.cts +2 -2
- package/dist/agent.d.mts +2 -2
- package/dist/agent.mjs +6 -5
- package/dist/agent.mjs.map +1 -1
- package/dist/{dist-qrlBz5eZ.mjs → dist-CFKSzdSZ.mjs} +4 -2
- package/dist/dist-CFKSzdSZ.mjs.map +1 -0
- package/dist/{dist-DESn8Gyx.mjs → dist-DtLObwAS.mjs} +2 -2
- package/dist/{dist-DESn8Gyx.mjs.map → dist-DtLObwAS.mjs.map} +1 -1
- package/dist/{dist-CIXPxH8Y.cjs → dist-DvZ4Dj_O.cjs} +4 -2
- package/dist/dist-DvZ4Dj_O.cjs.map +1 -0
- package/dist/{dist-jju5p8QW.cjs → dist-sGyB6KsC.cjs} +2 -2
- package/dist/{dist-jju5p8QW.cjs.map → dist-sGyB6KsC.cjs.map} +1 -1
- package/dist/index-BTz2OMAM.d.cts.map +1 -1
- package/dist/{index-BQEzTb7P.d.cts → index-C9qevi4R.d.cts} +10 -3
- package/dist/index-C9qevi4R.d.cts.map +1 -0
- package/dist/{index-ub0OqZXh.d.mts → index-CGa7YLSI.d.mts} +10 -3
- package/dist/index-CGa7YLSI.d.mts.map +1 -0
- package/dist/index-Cq2F2XdS.d.mts.map +1 -1
- package/dist/{mistral-HS6Ekkp2.cjs → mistral-BUpUX0vh.cjs} +2 -2
- package/dist/{mistral-HS6Ekkp2.cjs.map → mistral-BUpUX0vh.cjs.map} +1 -1
- package/dist/{mistral-B3AiRi15.mjs → mistral-Cy4OBeve.mjs} +2 -2
- package/dist/{mistral-B3AiRi15.mjs.map → mistral-Cy4OBeve.mjs.map} +1 -1
- package/dist/{sse-DISKrIFa.mjs → sse-4YoGxYO1.mjs} +2 -2
- package/dist/{sse-DISKrIFa.mjs.map → sse-4YoGxYO1.mjs.map} +1 -1
- package/dist/{sse-ELfo0nZE.cjs → sse-C0gnbJhp.cjs} +2 -2
- package/dist/{sse-ELfo0nZE.cjs.map → sse-C0gnbJhp.cjs.map} +1 -1
- package/dist/trigger.cjs +1 -1
- package/dist/trigger.d.cts +1 -1
- package/dist/trigger.d.mts +1 -1
- package/dist/trigger.mjs +1 -1
- package/dist/workflow.cjs +1 -1
- package/dist/workflow.mjs +1 -1
- package/package.json +1 -1
- package/dist/dist-CIXPxH8Y.cjs.map +0 -1
- package/dist/dist-qrlBz5eZ.mjs.map +0 -1
- package/dist/index-BQEzTb7P.d.cts.map +0 -1
- package/dist/index-ub0OqZXh.d.mts.map +0 -1
package/dist/agent.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { l as ThinkingLevel, u as getModel } from "./index-BByNfhJU.cjs";
|
|
2
|
-
import { A as
|
|
2
|
+
import { A as errorMessage, B as resolveAgentWorkspaceRoot, C as SubagentToolMetadata, D as defineAgent, E as createAgent, F as prepareAgentSession, G as AgentCreateInputSchema, H as runLlm, I as prompt, J as DEFAULT_THINKING_LEVEL, K as AgentModelId, L as resolveAgentAssets, M as getSubagentToolMetadata, N as messages, O as defineSubagentTool, P as normalizeAgentDefinition, Q as resolveThinkingLevel, R as resolveAgentId, S as SubagentToolInherit, T as buildAgentRuntime, U as snapshot, V as runAgentPrompt, W as AgentCreateInput, X as parseAgentCreateInput, Y as ThinkingLevelSchema, Z as resolveAgentModel, _ as SessionAgentMismatchError, a as AgentDefinitionInput, b as SubagentTool, c as BuildAgentRuntimeContext, d as PromptInput, f as PromptResponse, g as SandboxedAgentRuntime, h as SUBAGENT_TOOL, i as AgentDefinition, j as forceToolChoice, k as defineTool, l as DefineSubagentToolInput, m as RunAgentPromptOptions, n as AgentAssetInput, o as AgentRuntime, p as ResolvedAgentAssets, q as AgentModelIdSchema, r as AgentConfig, s as AgentSnapshot, t as Agent, u as ForcedToolChoice, v as SessionLifecycle, w as WebToolsOptions, x as SubagentToolDetails, y as SessionLifecycleContext, z as resolveAgentTools } from "./index-C9qevi4R.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-BTz2OMAM.cjs";
|
|
4
4
|
import { z as loadAssetManifest } from "./index-DstR-eGs.cjs";
|
|
5
|
-
export { type Agent, type AgentAssetInput, type AgentConfig, type AgentCreateInput, AgentCreateInputSchema, type AgentDefinition, type AgentDefinitionInput, type AgentModelId, AgentModelIdSchema, type AgentRuntime, type AgentSnapshot, type BuildAgentRuntimeContext, DEFAULT_THINKING_LEVEL, type DefineSubagentToolInput, type ForcedToolChoice, type McpAuthOptions, type McpCallToolOptions, type McpConnection, type McpDefinition, type McpDefinitionInput, type McpHttpTransport, type McpServerOptions, type McpStdioOptions, type McpStdioTransport, type McpTransport, type PromptInput, type PromptResponse, type ResolvedAgentAssets, type RunAgentPromptOptions, SUBAGENT_TOOL, type SandboxedAgentRuntime, SessionAgentMismatchError, type SessionLifecycle, type SessionLifecycleContext, type SubagentTool, type SubagentToolDetails, type SubagentToolInherit, type SubagentToolMetadata, type ThinkingLevel, ThinkingLevelSchema, type ToolCredentialResolver, buildAgentRuntime, connectMcpDefinition, connectMcpServer, connectMcpStdio, createAgent, defineAgent, defineMcp, defineSubagentTool, defineTool, errorMessage, forceToolChoice, getModel, getSubagentToolMetadata, isMcp, loadAssetManifest, messages, normalizeAgentDefinition, parseAgentCreateInput, prepareAgentSession, prompt, resolveAgentAssets, resolveAgentId, resolveAgentModel, resolveAgentTools, resolveAgentWorkspaceRoot, resolveThinkingLevel, runAgentPrompt, runLlm, snapshot };
|
|
5
|
+
export { type Agent, type AgentAssetInput, type AgentConfig, type AgentCreateInput, AgentCreateInputSchema, type AgentDefinition, type AgentDefinitionInput, type AgentModelId, AgentModelIdSchema, type AgentRuntime, type AgentSnapshot, type BuildAgentRuntimeContext, DEFAULT_THINKING_LEVEL, type DefineSubagentToolInput, type ForcedToolChoice, type McpAuthOptions, type McpCallToolOptions, type McpConnection, type McpDefinition, type McpDefinitionInput, type McpHttpTransport, type McpServerOptions, type McpStdioOptions, type McpStdioTransport, type McpTransport, type PromptInput, type PromptResponse, type ResolvedAgentAssets, type RunAgentPromptOptions, SUBAGENT_TOOL, type SandboxedAgentRuntime, SessionAgentMismatchError, type SessionLifecycle, type SessionLifecycleContext, type SubagentTool, type SubagentToolDetails, type SubagentToolInherit, type SubagentToolMetadata, type ThinkingLevel, ThinkingLevelSchema, type ToolCredentialResolver, type WebToolsOptions, buildAgentRuntime, connectMcpDefinition, connectMcpServer, connectMcpStdio, createAgent, defineAgent, defineMcp, defineSubagentTool, defineTool, errorMessage, forceToolChoice, getModel, getSubagentToolMetadata, isMcp, loadAssetManifest, messages, normalizeAgentDefinition, parseAgentCreateInput, prepareAgentSession, prompt, resolveAgentAssets, resolveAgentId, resolveAgentModel, resolveAgentTools, resolveAgentWorkspaceRoot, resolveThinkingLevel, runAgentPrompt, runLlm, snapshot };
|
package/dist/agent.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { l as ThinkingLevel, u as getModel } from "./index-ClGiGBy7.mjs";
|
|
2
|
-
import { A as
|
|
2
|
+
import { A as errorMessage, B as resolveAgentWorkspaceRoot, C as SubagentToolMetadata, D as defineAgent, E as createAgent, F as prepareAgentSession, G as AgentCreateInputSchema, H as runLlm, I as prompt, J as DEFAULT_THINKING_LEVEL, K as AgentModelId, L as resolveAgentAssets, M as getSubagentToolMetadata, N as messages, O as defineSubagentTool, P as normalizeAgentDefinition, Q as resolveThinkingLevel, R as resolveAgentId, S as SubagentToolInherit, T as buildAgentRuntime, U as snapshot, V as runAgentPrompt, W as AgentCreateInput, X as parseAgentCreateInput, Y as ThinkingLevelSchema, Z as resolveAgentModel, _ as SessionAgentMismatchError, a as AgentDefinitionInput, b as SubagentTool, c as BuildAgentRuntimeContext, d as PromptInput, f as PromptResponse, g as SandboxedAgentRuntime, h as SUBAGENT_TOOL, i as AgentDefinition, j as forceToolChoice, k as defineTool, l as DefineSubagentToolInput, m as RunAgentPromptOptions, n as AgentAssetInput, o as AgentRuntime, p as ResolvedAgentAssets, q as AgentModelIdSchema, r as AgentConfig, s as AgentSnapshot, t as Agent, u as ForcedToolChoice, v as SessionLifecycle, w as WebToolsOptions, x as SubagentToolDetails, y as SessionLifecycleContext, z as resolveAgentTools } from "./index-CGa7YLSI.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-Cq2F2XdS.mjs";
|
|
4
4
|
import { z as loadAssetManifest } from "./index-B3iWqXUd.mjs";
|
|
5
|
-
export { type Agent, type AgentAssetInput, type AgentConfig, type AgentCreateInput, AgentCreateInputSchema, type AgentDefinition, type AgentDefinitionInput, type AgentModelId, AgentModelIdSchema, type AgentRuntime, type AgentSnapshot, type BuildAgentRuntimeContext, DEFAULT_THINKING_LEVEL, type DefineSubagentToolInput, type ForcedToolChoice, type McpAuthOptions, type McpCallToolOptions, type McpConnection, type McpDefinition, type McpDefinitionInput, type McpHttpTransport, type McpServerOptions, type McpStdioOptions, type McpStdioTransport, type McpTransport, type PromptInput, type PromptResponse, type ResolvedAgentAssets, type RunAgentPromptOptions, SUBAGENT_TOOL, type SandboxedAgentRuntime, SessionAgentMismatchError, type SessionLifecycle, type SessionLifecycleContext, type SubagentTool, type SubagentToolDetails, type SubagentToolInherit, type SubagentToolMetadata, type ThinkingLevel, ThinkingLevelSchema, type ToolCredentialResolver, buildAgentRuntime, connectMcpDefinition, connectMcpServer, connectMcpStdio, createAgent, defineAgent, defineMcp, defineSubagentTool, defineTool, errorMessage, forceToolChoice, getModel, getSubagentToolMetadata, isMcp, loadAssetManifest, messages, normalizeAgentDefinition, parseAgentCreateInput, prepareAgentSession, prompt, resolveAgentAssets, resolveAgentId, resolveAgentModel, resolveAgentTools, resolveAgentWorkspaceRoot, resolveThinkingLevel, runAgentPrompt, runLlm, snapshot };
|
|
5
|
+
export { type Agent, type AgentAssetInput, type AgentConfig, type AgentCreateInput, AgentCreateInputSchema, type AgentDefinition, type AgentDefinitionInput, type AgentModelId, AgentModelIdSchema, type AgentRuntime, type AgentSnapshot, type BuildAgentRuntimeContext, DEFAULT_THINKING_LEVEL, type DefineSubagentToolInput, type ForcedToolChoice, type McpAuthOptions, type McpCallToolOptions, type McpConnection, type McpDefinition, type McpDefinitionInput, type McpHttpTransport, type McpServerOptions, type McpStdioOptions, type McpStdioTransport, type McpTransport, type PromptInput, type PromptResponse, type ResolvedAgentAssets, type RunAgentPromptOptions, SUBAGENT_TOOL, type SandboxedAgentRuntime, SessionAgentMismatchError, type SessionLifecycle, type SessionLifecycleContext, type SubagentTool, type SubagentToolDetails, type SubagentToolInherit, type SubagentToolMetadata, type ThinkingLevel, ThinkingLevelSchema, type ToolCredentialResolver, type WebToolsOptions, buildAgentRuntime, connectMcpDefinition, connectMcpServer, connectMcpStdio, createAgent, defineAgent, defineMcp, defineSubagentTool, defineTool, errorMessage, forceToolChoice, getModel, getSubagentToolMetadata, isMcp, loadAssetManifest, messages, normalizeAgentDefinition, parseAgentCreateInput, prepareAgentSession, prompt, resolveAgentAssets, resolveAgentId, resolveAgentModel, resolveAgentTools, resolveAgentWorkspaceRoot, resolveThinkingLevel, runAgentPrompt, runLlm, snapshot };
|
package/dist/agent.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { i as __require, r as __exportAll, t as __commonJSMin } from "./chunk-D0VCBZRD.mjs";
|
|
2
2
|
import { c as getRunSignal, f as isWithinActionExecution, h as resolveActionTool, k as toolParameters, l as getWorkflowRunHandle, u as isAction } from "./dist-BWGuF7Bi.mjs";
|
|
3
|
-
import { A as recordLlmUsageFromAssistantMessage, C as appendEvent, D as getProjectScopeId, E as getAgentByRoute, F as captureConsole, I as getTraceContext, M as setSessionLiveMessage, N as setSessionTitle, O as getSession, P as touchSession, R as withSpan, S as addAgentSessionDuration, T as createSession, a as resolveActionCredentials, c as connectMcpDefinition, d as defineMcp, f as isMcp, i as isCredentialError, j as resolveRunSourceFromTraceContext, k as listMessageEvents, l as connectMcpServer, n as captureCredentialToolErrors, o as resolveMcpTools, r as createCredentialResolver, s as withCredentialAssignments, t as buildCredentialRunContext, u as connectMcpStdio, w as clearLiveMessage, x as MESSAGE_EVENT_TYPE } from "./dist-
|
|
3
|
+
import { A as recordLlmUsageFromAssistantMessage, C as appendEvent, D as getProjectScopeId, E as getAgentByRoute, F as captureConsole, I as getTraceContext, M as setSessionLiveMessage, N as setSessionTitle, O as getSession, P as touchSession, R as withSpan, S as addAgentSessionDuration, T as createSession, a as resolveActionCredentials, c as connectMcpDefinition, d as defineMcp, f as isMcp, i as isCredentialError, j as resolveRunSourceFromTraceContext, k as listMessageEvents, l as connectMcpServer, n as captureCredentialToolErrors, o as resolveMcpTools, r as createCredentialResolver, s as withCredentialAssignments, t as buildCredentialRunContext, u as connectMcpStdio, w as clearLiveMessage, x as MESSAGE_EVENT_TYPE } from "./dist-CFKSzdSZ.mjs";
|
|
4
4
|
import { $t as _Object_, An as IsFunction$1, At as IsNull$2, Bn as IsNull$1, Bt as IsBoolean$2, Cn as IsAsyncIterator$1, Ct as EnumToUnion, Dn as IsConstructor$1, Dt as IsSymbol$2, En as IsClassInstance, Et as String$1, Fn as IsLessEqualThan$1, Ft as IsLiteralString, Gn as IsSymbol$1, Gt as Unreachable, Hn as IsObject$1, Ht as IsCodec, In as IsLessThan$1, It as Literal, J as getBoundAppRoot, Jn as IsValueLike, Jt as IsCyclic, Kn as IsUndefined$1, Kt as IsIntersect, Ln as IsMaxLength$2, Lt as IsIterator$2, Mn as IsGreaterThan$1, Mt as IsLiteralBigInt, Nn as IsInteger$1, Nt as IsLiteralBoolean, On as IsDeepEqual$1, Ot as IsNumber$2, Pn as IsIterator$1, Pt as IsLiteralNumber, Qt as IsObject$2, Rn as IsMinLength$2, Rt as IsInteger$2, Sn as IsArray$1, St as IsTuple, Tn as IsBoolean$1, Tt as IsString$2, Un as IsObjectNotArray$1, Ut as Hash, Vn as IsNumber$1, Vt as IsBigInt$2, Wn as IsString$1, Wt as hash_exports, X as materializeSandbox, Xn as Symbols, Xt as IsUnion, Y as loadAssetManifest, Yn as Keys$1, Yt as Unknown, Zn as guard_exports, Zt as Union, _n as Entries$2, _t as IsVoid, a as defaultWorkspacesRoot, an as IsAsyncIterator$2, bn as EveryAll, bt as RecordPattern, cn as IsBase, ct as ensureWorkspaceDir, dn as IsPromise, dt as resolveSessionRoot, en as IsNever, fn as IsSchema$1, ft as Evaluate$1, gn as IsTypeArray, gt as IsTemplateLiteral, hn as IsSet, ht as Compare, i as createSandbox, in as IsConstructor$2, jn as IsGreaterEqualThan$1, jt as IsLiteral, kn as IsEqual$1, kt as Number$1, l as materializeSkills, ln as IsOptional, lt as resolveAgentRoot, mn as IsMap, mt as Options, n as createInvokeToolBridge, nn as Ref$1, o as defineSkill, on as IsArray$2, p as sandboxSystemPromptInjection, pn as Get$3, pt as Instantiate, qn as IsUnsafePropertyKey, qt as IsEnum$1, rn as IsFunction$2, sn as Base, tn as IsRef$1, tt as resolveSandboxDefinition, un as Optional, vn as EntriesRegExp, vt as IsUndefined$2, wn as IsBigInt$1, wt as TemplateLiteralDecode, xn as HasPropertyKey$1, xt as RecordValue, yn as Every$1, yt as IsRecord, zn as IsMultipleOf$1, zt as Boolean$1 } from "./dist-CRsUBf24.mjs";
|
|
5
5
|
import "./env-api-keys-24ayFQZr.mjs";
|
|
6
6
|
import { i as getModel, t as AssistantMessageEventStream } from "./event-stream-C7YBbzsc.mjs";
|
|
@@ -901,7 +901,7 @@ function loadGoogleVertexProviderModule() {
|
|
|
901
901
|
return googleVertexProviderModulePromise;
|
|
902
902
|
}
|
|
903
903
|
function loadMistralProviderModule() {
|
|
904
|
-
mistralProviderModulePromise ||= import("./mistral-
|
|
904
|
+
mistralProviderModulePromise ||= import("./mistral-Cy4OBeve.mjs").then((module) => {
|
|
905
905
|
const provider = module;
|
|
906
906
|
return {
|
|
907
907
|
stream: provider.streamMistral,
|
|
@@ -14044,8 +14044,8 @@ async function generateSessionTitle(message) {
|
|
|
14044
14044
|
timestamp: Date.now()
|
|
14045
14045
|
}]
|
|
14046
14046
|
}, {
|
|
14047
|
-
maxTokens:
|
|
14048
|
-
|
|
14047
|
+
maxTokens: 256,
|
|
14048
|
+
reasoning: "minimal"
|
|
14049
14049
|
})).content.filter((part) => part.type === "text").map((part) => part.text).join(" "));
|
|
14050
14050
|
}
|
|
14051
14051
|
/**
|
|
@@ -14514,7 +14514,8 @@ function normalizeAgentDefinition(input, options = {}) {
|
|
|
14514
14514
|
...input.runtimeHooks !== void 0 ? { runtimeHooks: input.runtimeHooks } : {},
|
|
14515
14515
|
...sandbox !== void 0 ? { sandbox } : {},
|
|
14516
14516
|
...resolved.skills !== void 0 ? { skills: resolved.skills } : {},
|
|
14517
|
-
...input.memory !== void 0 ? { memory: input.memory } : {}
|
|
14517
|
+
...input.memory !== void 0 ? { memory: input.memory } : {},
|
|
14518
|
+
...input.web !== void 0 ? { web: input.web } : {}
|
|
14518
14519
|
};
|
|
14519
14520
|
}
|
|
14520
14521
|
/**
|