@keystrokehq/keystroke 0.1.29 → 0.1.31
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 +1 -1
- package/dist/agent.mjs +1 -1
- package/dist/{dist-BhZzyQbf.cjs → dist-C6YL0luQ.cjs} +10 -11
- package/dist/{dist-BhZzyQbf.cjs.map → dist-C6YL0luQ.cjs.map} +1 -1
- package/dist/{dist-BmiFk6Ob.mjs → dist-CeFq1rYM.mjs} +10 -11
- package/dist/{dist-BmiFk6Ob.mjs.map → dist-CeFq1rYM.mjs.map} +1 -1
- package/dist/{token-mxIy839B.mjs → token-B-BvTLFu.mjs} +2 -2
- package/dist/{token-mxIy839B.mjs.map → token-B-BvTLFu.mjs.map} +1 -1
- package/dist/{token-YuzUWDJM.cjs → token-CsfM7UoL.cjs} +2 -2
- package/dist/{token-YuzUWDJM.cjs.map → token-CsfM7UoL.cjs.map} +1 -1
- package/dist/trigger.cjs +8464 -369
- package/dist/trigger.cjs.map +1 -1
- package/dist/trigger.d.cts +837 -65
- package/dist/trigger.d.cts.map +1 -1
- package/dist/trigger.d.mts +837 -65
- package/dist/trigger.d.mts.map +1 -1
- package/dist/trigger.mjs +8463 -368
- package/dist/trigger.mjs.map +1 -1
- package/dist/workflow.cjs +1 -1
- package/dist/workflow.mjs +1 -1
- package/package.json +1 -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-B-BvTLFu.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();
|
|
@@ -9001,10 +9001,16 @@ function runSource(kind, id) {
|
|
|
9001
9001
|
id: id ?? null
|
|
9002
9002
|
};
|
|
9003
9003
|
}
|
|
9004
|
+
function runSourceFromWorkflowRunMetadata(metadata) {
|
|
9005
|
+
if (metadata && typeof metadata === "object" && "runId" in metadata) {
|
|
9006
|
+
const runId = metadata.runId;
|
|
9007
|
+
if (typeof runId === "string") return runSource("workflow", runId);
|
|
9008
|
+
}
|
|
9009
|
+
}
|
|
9004
9010
|
function sourceFromSpan(span) {
|
|
9005
9011
|
switch (span.kind) {
|
|
9006
9012
|
case "workflow_run": return runSource("workflow", span.refId);
|
|
9007
|
-
case "agent_session": return runSource("agent", span.refId);
|
|
9013
|
+
case "agent_session": return runSourceFromWorkflowRunMetadata(span.metadata) ?? runSource("agent", span.refId);
|
|
9008
9014
|
case "trigger_run": return runSource("trigger", span.refId);
|
|
9009
9015
|
case "gateway_event": {
|
|
9010
9016
|
const metadata = span.metadata;
|
|
@@ -9014,14 +9020,7 @@ function sourceFromSpan(span) {
|
|
|
9014
9020
|
}
|
|
9015
9021
|
return;
|
|
9016
9022
|
}
|
|
9017
|
-
case "action":
|
|
9018
|
-
const metadata = span.metadata;
|
|
9019
|
-
if (metadata && typeof metadata === "object" && "runId" in metadata) {
|
|
9020
|
-
const runId = metadata.runId;
|
|
9021
|
-
if (typeof runId === "string") return runSource("workflow", runId);
|
|
9022
|
-
}
|
|
9023
|
-
return;
|
|
9024
|
-
}
|
|
9023
|
+
case "action": return runSourceFromWorkflowRunMetadata(span.metadata);
|
|
9025
9024
|
default: return;
|
|
9026
9025
|
}
|
|
9027
9026
|
}
|
|
@@ -46825,4 +46824,4 @@ function resolveWorkflowTool(workflow, context = {}) {
|
|
|
46825
46824
|
//#endregion
|
|
46826
46825
|
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 };
|
|
46827
46826
|
|
|
46828
|
-
//# sourceMappingURL=dist-
|
|
46827
|
+
//# sourceMappingURL=dist-CeFq1rYM.mjs.map
|