@keystrokehq/keystroke 0.0.138 → 0.0.140
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 +6 -6
- 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 +6 -6
- package/dist/agent.mjs.map +1 -1
- package/dist/credentials.cjs +1 -1
- package/dist/credentials.mjs +1 -1
- package/dist/{dist-DkLDEVmh.mjs → dist-BNQqTOFy.mjs} +3 -3
- package/dist/{dist-DkLDEVmh.mjs.map → dist-BNQqTOFy.mjs.map} +1 -1
- package/dist/{dist-DRpkKWT3.mjs → dist-BdWFNOUY.mjs} +172 -2
- package/dist/dist-BdWFNOUY.mjs.map +1 -0
- package/dist/{dist-Do4-nLe3.cjs → dist-CTrlIh_f.cjs} +172 -2
- package/dist/dist-CTrlIh_f.cjs.map +1 -0
- package/dist/{dist-CsyntC4f.cjs → dist-CnMZ1hvK.cjs} +17 -11
- package/dist/{dist-CsyntC4f.cjs.map → dist-CnMZ1hvK.cjs.map} +1 -1
- package/dist/{dist-D2_PNNdg.mjs → dist-CtNtlPF1.mjs} +17 -11
- package/dist/{dist-D2_PNNdg.mjs.map → dist-CtNtlPF1.mjs.map} +1 -1
- package/dist/{dist-CsgSwVY2.cjs → dist-Dr0pndoF.cjs} +3 -3
- package/dist/{dist-CsgSwVY2.cjs.map → dist-Dr0pndoF.cjs.map} +1 -1
- package/dist/{index-BrCBKmB8.d.cts → index-COm9NdJ2.d.cts} +4 -2
- package/dist/index-COm9NdJ2.d.cts.map +1 -0
- package/dist/index-CiuCYKLw.d.cts.map +1 -1
- package/dist/index-CiuCYKLw.d.mts.map +1 -1
- package/dist/{index-Bcr_vyxW.d.mts → index-D-CtqeAA.d.mts} +4 -2
- package/dist/index-D-CtqeAA.d.mts.map +1 -0
- package/dist/{mistral-Doo1vAfq.cjs → mistral-C8BLCSQV.cjs} +2 -2
- package/dist/{mistral-Doo1vAfq.cjs.map → mistral-C8BLCSQV.cjs.map} +1 -1
- package/dist/{mistral-CU4sYriZ.mjs → mistral-yyEKTPq_.mjs} +2 -2
- package/dist/{mistral-CU4sYriZ.mjs.map → mistral-yyEKTPq_.mjs.map} +1 -1
- package/dist/{sse-DqD9H1Q3.mjs → sse-CZB6IpEJ.mjs} +2 -2
- package/dist/{sse-DqD9H1Q3.mjs.map → sse-CZB6IpEJ.mjs.map} +1 -1
- package/dist/{sse-vcZK__fp.cjs → sse-Q-62VwSM.cjs} +2 -2
- package/dist/{sse-vcZK__fp.cjs.map → sse-Q-62VwSM.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-DRpkKWT3.mjs.map +0 -1
- package/dist/dist-Do4-nLe3.cjs.map +0 -1
- package/dist/index-Bcr_vyxW.d.mts.map +0 -1
- package/dist/index-BrCBKmB8.d.cts.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-CTrlIh_f.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-
|
|
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-BdWFNOUY.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-
|
|
3
|
+
const require_dist$2 = require("./dist-CTrlIh_f.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-
|
|
7
|
+
const require_dist$3 = require("./dist-CnMZ1hvK.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-
|
|
904
|
+
mistralProviderModulePromise ||= Promise.resolve().then(() => require("./mistral-C8BLCSQV.cjs")).then((module) => {
|
|
905
905
|
const provider = module;
|
|
906
906
|
return {
|
|
907
907
|
stream: provider.streamMistral,
|
|
@@ -13774,14 +13774,14 @@ async function persistAgentEvent(sessionId, event, memoryConfig) {
|
|
|
13774
13774
|
payload: event.message
|
|
13775
13775
|
});
|
|
13776
13776
|
}
|
|
13777
|
-
async function prepareAgentSession(agentId, sessionId) {
|
|
13777
|
+
async function prepareAgentSession(agentId, sessionId, options) {
|
|
13778
13778
|
if (sessionId) {
|
|
13779
13779
|
const session = await require_dist$3.getSession(sessionId);
|
|
13780
|
-
if (!session) await require_dist$3.createSession(agentId, sessionId, await require_dist$3.resolveRunSourceFromTraceContext());
|
|
13780
|
+
if (!session) await require_dist$3.createSession(agentId, sessionId, await require_dist$3.resolveRunSourceFromTraceContext(), { ranByUserId: options?.ranByUserId ?? null });
|
|
13781
13781
|
else if (session.agentId !== agentId) throw new SessionAgentMismatchError(sessionId);
|
|
13782
13782
|
return { sessionId };
|
|
13783
13783
|
}
|
|
13784
|
-
return { sessionId: (await require_dist$3.createSession(agentId, void 0, await require_dist$3.resolveRunSourceFromTraceContext())).id };
|
|
13784
|
+
return { sessionId: (await require_dist$3.createSession(agentId, void 0, await require_dist$3.resolveRunSourceFromTraceContext(), { ranByUserId: options?.ranByUserId ?? null })).id };
|
|
13785
13785
|
}
|
|
13786
13786
|
async function runAgentPrompt(agent, agentId, input, options = {}) {
|
|
13787
13787
|
const { sessionId } = await prepareAgentSession(agentId, input.sessionId);
|