@keystrokehq/keystroke 0.1.24 → 0.1.25
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 +47 -8
- 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 +47 -8
- package/dist/agent.mjs.map +1 -1
- package/dist/{dist-8lWsO4r8.cjs → dist-C8V-TQaa.cjs} +7 -4
- package/dist/{dist-8lWsO4r8.cjs.map → dist-C8V-TQaa.cjs.map} +1 -1
- package/dist/{dist-CkW_0ydn.mjs → dist-DXQ9dYvL.mjs} +7 -4
- package/dist/{dist-CkW_0ydn.mjs.map → dist-DXQ9dYvL.mjs.map} +1 -1
- package/dist/{index-D4OqVz9B.d.mts → index-BboH3db0.d.mts} +15 -4
- package/dist/index-BboH3db0.d.mts.map +1 -0
- package/dist/{index-DAbG7A9m.d.cts → index-DHCs9z3O.d.cts} +15 -4
- package/dist/index-DHCs9z3O.d.cts.map +1 -0
- package/dist/{index-CYrYmgtQ.d.cts → index-RQo-Cn3t.d.cts} +15 -2
- package/dist/index-RQo-Cn3t.d.cts.map +1 -0
- package/dist/{index-DPKSoH6A.d.mts → index-aos8ZlFk.d.mts} +15 -2
- package/dist/index-aos8ZlFk.d.mts.map +1 -0
- package/dist/{token-aMT15EKk.cjs → token-BgVDRLkZ.cjs} +2 -2
- package/dist/{token-aMT15EKk.cjs.map → token-BgVDRLkZ.cjs.map} +1 -1
- package/dist/{token-Basg5yOB.mjs → token-C_E59byl.mjs} +2 -2
- package/dist/{token-Basg5yOB.mjs.map → token-C_E59byl.mjs.map} +1 -1
- package/dist/trigger.cjs +1 -1
- package/dist/trigger.d.cts +2 -2
- package/dist/trigger.d.mts +2 -2
- package/dist/trigger.mjs +1 -1
- package/dist/workflow.cjs +1 -1
- package/dist/workflow.d.cts +2 -2
- package/dist/workflow.d.mts +2 -2
- package/dist/workflow.mjs +1 -1
- package/package.json +2 -2
- package/dist/index-CYrYmgtQ.d.cts.map +0 -1
- package/dist/index-D4OqVz9B.d.mts.map +0 -1
- package/dist/index-DAbG7A9m.d.cts.map +0 -1
- package/dist/index-DPKSoH6A.d.mts.map +0 -1
|
@@ -2693,7 +2693,7 @@ var require_get_vercel_oidc_token = /* @__PURE__ */ __commonJSMin(((exports, mod
|
|
|
2693
2693
|
err = error;
|
|
2694
2694
|
}
|
|
2695
2695
|
try {
|
|
2696
|
-
const [{ getTokenPayload, isExpired }, { refreshToken }] = await Promise.all([await Promise.resolve().then(() => /* @__PURE__ */ __toESM(require_token_util())), await import("./token-
|
|
2696
|
+
const [{ getTokenPayload, isExpired }, { refreshToken }] = await Promise.all([await Promise.resolve().then(() => /* @__PURE__ */ __toESM(require_token_util())), await import("./token-C_E59byl.mjs").then((m) => /* @__PURE__ */ __toESM(m.default))]);
|
|
2697
2697
|
if (!token || isExpired(getTokenPayload(token), options?.expirationBufferMs)) {
|
|
2698
2698
|
await refreshToken(options);
|
|
2699
2699
|
token = getVercelOidcTokenSync();
|
|
@@ -46779,7 +46779,7 @@ function getWorkflowToolExecutor() {
|
|
|
46779
46779
|
function assertWorkflowToolInput(workflow) {
|
|
46780
46780
|
if (!("shape" in workflow.input) || typeof workflow.input.shape !== "object") throw new Error(`Workflow "${workflow.slug}" cannot be used as an agent tool: input schema must be a Zod object.`);
|
|
46781
46781
|
}
|
|
46782
|
-
function resolveWorkflowTool(workflow) {
|
|
46782
|
+
function resolveWorkflowTool(workflow, context = {}) {
|
|
46783
46783
|
assertWorkflowToolInput(workflow);
|
|
46784
46784
|
const key = workflow.slug;
|
|
46785
46785
|
const description = workflow.description;
|
|
@@ -46797,7 +46797,10 @@ function resolveWorkflowTool(workflow) {
|
|
|
46797
46797
|
tool: key,
|
|
46798
46798
|
type: "workflow"
|
|
46799
46799
|
}
|
|
46800
|
-
}, () => getWorkflowToolExecutor()(workflow, params, {
|
|
46800
|
+
}, () => getWorkflowToolExecutor()(workflow, params, {
|
|
46801
|
+
workflowKey: key,
|
|
46802
|
+
...context
|
|
46803
|
+
}));
|
|
46801
46804
|
return {
|
|
46802
46805
|
content: [{
|
|
46803
46806
|
type: "text",
|
|
@@ -46811,4 +46814,4 @@ function resolveWorkflowTool(workflow) {
|
|
|
46811
46814
|
//#endregion
|
|
46812
46815
|
export { require_token_error as $, output_exports as A, getProjectScopeId as B, defineMcp as C, generateObject as D, convertToModelMessages as E, appendEvent as F, setSessionLiveMessage as G, listMessageEvents as H, clearLiveMessage as I, captureConsole as J, setSessionTitle as K, createSession as L, toUIMessageStream as M, MESSAGE_EVENT_TYPE as N, generateText as O, addAgentSessionDuration as P, require_token_util as Q, failAgentSession as R, connectMcpStdio as S, ToolLoopAgent as T, recordLlmUsageFromAssistantMessage as U, getSession as V, resolveRunSourceFromTraceContext as W, withSpan as X, getTraceContext as Y, createGateway as Z, resolveActionCredentials as _, executeWorkflow as a, connectMcpDefinition as b, promptLlm as c, serializeWorkflowError as d, generateId as et, buildCredentialRunContext as f, isCredentialError as g, enrichCredentialError as h, deserializeWorkflowError as i, readUIMessageStream as j, isFileUIPart as k, registerWorkflowToolExecutor as l, createCredentialResolver as m, RunCanceledError as n, tool as nt, isRunCanceledError as o, captureCredentialToolErrors as p, touchSession as q, defineWorkflow as r, isWorkflow as s, MemoryEventLog as t, jsonSchema as tt, resolveWorkflowTool as u, resolveMcpTools as v, isMcp as w, connectMcpServer as x, withCredentialAssignments as y, getAgentByRoute as z };
|
|
46813
46816
|
|
|
46814
|
-
//# sourceMappingURL=dist-
|
|
46817
|
+
//# sourceMappingURL=dist-DXQ9dYvL.mjs.map
|