@keystrokehq/keystroke 0.1.90 → 0.1.92
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-types.cjs +1 -1
- package/dist/agent-types.d.cts +2 -2
- package/dist/agent-types.d.mts +2 -2
- package/dist/agent-types.mjs +1 -1
- package/dist/agent.cjs +81 -11
- package/dist/agent.cjs.map +1 -1
- package/dist/agent.d.cts +3 -3
- package/dist/agent.d.mts +3 -3
- package/dist/agent.mjs +81 -11
- package/dist/agent.mjs.map +1 -1
- package/dist/{context-compaction-D2_B1nky-BZ0Nxnlz.cjs → context-compaction-D2_B1nky-BGm3K1E7.cjs} +2 -2
- package/dist/{context-compaction-D2_B1nky-BZ0Nxnlz.cjs.map → context-compaction-D2_B1nky-BGm3K1E7.cjs.map} +1 -1
- package/dist/{context-compaction-D2_B1nky-Z-RHprX6.mjs → context-compaction-D2_B1nky-_2obJBC9.mjs} +2 -2
- package/dist/{context-compaction-D2_B1nky-Z-RHprX6.mjs.map → context-compaction-D2_B1nky-_2obJBC9.mjs.map} +1 -1
- package/dist/{dist-BquLTvmJ.cjs → dist-CSveenjr.cjs} +2 -11
- package/dist/{dist-BquLTvmJ.cjs.map → dist-CSveenjr.cjs.map} +1 -1
- package/dist/{dist-CBMAwfqk.mjs → dist-CUpLAhRj.mjs} +3 -6
- package/dist/{dist-CBMAwfqk.mjs.map → dist-CUpLAhRj.mjs.map} +1 -1
- package/dist/{dist-DV-u1dSU.cjs → dist-Ca7vInBw.cjs} +3 -20
- package/dist/dist-Ca7vInBw.cjs.map +1 -0
- package/dist/{dist-D5LMFsGS.mjs → dist-K7JjYweY.mjs} +3 -20
- package/dist/{dist-D5LMFsGS.mjs.map → dist-K7JjYweY.mjs.map} +1 -1
- package/dist/{index-IsjwL1qE.d.cts → index-BAERW4m3.d.mts} +4 -4
- package/dist/{index-IsjwL1qE.d.cts.map → index-BAERW4m3.d.mts.map} +1 -1
- package/dist/{index-C1LkEWsV.d.mts → index-BNptJCCC.d.mts} +4 -4
- package/dist/{index-C1LkEWsV.d.mts.map → index-BNptJCCC.d.mts.map} +1 -1
- package/dist/{index-XtUIsmsf.d.mts → index-C614Tmd_.d.cts} +4 -4
- package/dist/{index-XtUIsmsf.d.mts.map → index-C614Tmd_.d.cts.map} +1 -1
- package/dist/{index-DnlzDIsv.d.mts → index-CIz44roq.d.mts} +2 -2
- package/dist/{index-DnlzDIsv.d.mts.map → index-CIz44roq.d.mts.map} +1 -1
- package/dist/{index-BYUo1T9j.d.cts → index-DFkYFZEw.d.cts} +2 -2
- package/dist/{index-BYUo1T9j.d.cts.map → index-DFkYFZEw.d.cts.map} +1 -1
- package/dist/{index-CE-pKU-3.d.cts → index-N9Wzbx7A.d.cts} +4 -4
- package/dist/{index-CE-pKU-3.d.cts.map → index-N9Wzbx7A.d.cts.map} +1 -1
- package/dist/{schemas-lSbMfQRy-XXpvG020.d.mts → schemas-lSbMfQRy-CIfs2xv6.d.mts} +2 -2
- package/dist/{schemas-lSbMfQRy-EZTAAsXz.d.cts.map → schemas-lSbMfQRy-CIfs2xv6.d.mts.map} +1 -1
- package/dist/{schemas-lSbMfQRy-EZTAAsXz.d.cts → schemas-lSbMfQRy-YsonGA_B.d.cts} +2 -2
- package/dist/{schemas-lSbMfQRy-XXpvG020.d.mts.map → schemas-lSbMfQRy-YsonGA_B.d.cts.map} +1 -1
- package/dist/{token-CiaIOCoy.cjs → token-C3FIUHfv.cjs} +2 -2
- package/dist/{token-CiaIOCoy.cjs.map → token-C3FIUHfv.cjs.map} +1 -1
- package/dist/{token-BFGvC19A.mjs → token-FDWSsULw.mjs} +2 -2
- package/dist/{token-BFGvC19A.mjs.map → token-FDWSsULw.mjs.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-DV-u1dSU.cjs.map +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { n as __require, t as __commonJSMin } from "./chunk-DnnnRqeS.mjs";
|
|
2
2
|
import { E as normalizeCredentialList, _ as defineTool, a as FilePartSchema, d as buildConnectDeeplink, f as chatAttachmentExtension, k as requiredDisplayTextSchema, p as chatAttachmentServePath, t as CHAT_ATTACHMENT_MAX_BYTES, w as mcpEntityId } from "./dist-C5CAGMAz.mjs";
|
|
3
3
|
import { _ as runWithMcpCredentialContext, a as getActionCredentialRequirements, c as getRunSignal, i as executeAction, l as getWorkflowRunHandle, m as registerWorkflowRunGetter, s as getRegisteredProjectScopeId } from "./dist-CnmWGOj7.mjs";
|
|
4
|
-
import { $ as
|
|
4
|
+
import { $ as decryptCredentialPayload, B as listCredentialAssignmentsByTarget, C as safeValidateTypes, D as AISDKError, E as EventSourceParserStream, G as selectCredentialInstancesForScope, J as touchCredentialInstanceLastUsed, N as decryptCredentialPayload$1, O as isJSONObject, Q as withSpan, R as isDatabaseInitialized, S as safeParseJSON, T as withUserAgentSuffix, W as selectCredentialInstanceById, X as captureConsole, _ as dynamicTool, at as getServerTenantScopeId, b as jsonSchema, ct as requireOrganizationScopeId, dt as selectProjectById, et as encryptCredentialPayload, ft as and, g as asSchema, lt as secretValues, nt as getDb, ot as oauthApps, pt as eq, rt as getOrganizationScopeId, st as oauthConnections, tt as getBoundProjectScopeId, ut as selectOrganizationById, w as tool, x as parseJSON, y as getRuntimeEnvironmentUserAgent } from "./dist-CUpLAhRj.mjs";
|
|
5
5
|
import { z } from "zod";
|
|
6
6
|
import { AsyncLocalStorage } from "node:async_hooks";
|
|
7
7
|
import "node:fs";
|
|
@@ -18776,20 +18776,7 @@ async function runDurableStep(state, options) {
|
|
|
18776
18776
|
[options.metadataKey]: options.key,
|
|
18777
18777
|
correlationId
|
|
18778
18778
|
};
|
|
18779
|
-
if (cached.completed)
|
|
18780
|
-
await withSpan({
|
|
18781
|
-
kind: options.kind,
|
|
18782
|
-
name: options.key,
|
|
18783
|
-
refId: `${runId}:${correlationId}`,
|
|
18784
|
-
metadata: {
|
|
18785
|
-
...metadata,
|
|
18786
|
-
replayed: true
|
|
18787
|
-
}
|
|
18788
|
-
}, async () => {
|
|
18789
|
-
await logSystem("info", options.replayMessage, metadata);
|
|
18790
|
-
});
|
|
18791
|
-
return options.parseCached ? options.parseCached(cached.result) : cached.result;
|
|
18792
|
-
}
|
|
18779
|
+
if (cached.completed) return options.parseCached ? options.parseCached(cached.result) : cached.result;
|
|
18793
18780
|
return withSpan({
|
|
18794
18781
|
kind: options.kind,
|
|
18795
18782
|
name: options.key,
|
|
@@ -18857,7 +18844,6 @@ function createActionRunner(state, options = {}) {
|
|
|
18857
18844
|
key: action.slug,
|
|
18858
18845
|
correlationKey: runOptions?.callSiteId,
|
|
18859
18846
|
metadataKey: "actionKey",
|
|
18860
|
-
replayMessage: "action replayed from checkpoint",
|
|
18861
18847
|
parseCached: (cached) => action.output.parse(cached),
|
|
18862
18848
|
execute: async (correlationId) => {
|
|
18863
18849
|
return executeActionWithResolvedCredentials(action, input, options, runOptions, runOptions?.callSiteId ? stepConsumerId(runOptions.callSiteId) : correlationId);
|
|
@@ -18908,7 +18894,6 @@ function createAgentStepRunner(state, runAgent, queueChildren = false) {
|
|
|
18908
18894
|
key: slug,
|
|
18909
18895
|
correlationKey: options?.callSiteId,
|
|
18910
18896
|
metadataKey: "agentKey",
|
|
18911
|
-
replayMessage: "agent step replayed from checkpoint",
|
|
18912
18897
|
execute: (_correlationId) => runAgent(agent, input, options?.runPrompt)
|
|
18913
18898
|
});
|
|
18914
18899
|
};
|
|
@@ -18924,7 +18909,6 @@ function createLlmStepRunner(state, runLlm) {
|
|
|
18924
18909
|
key: "promptLlm",
|
|
18925
18910
|
correlationKey: opts.callSiteId,
|
|
18926
18911
|
metadataKey: "llmKey",
|
|
18927
|
-
replayMessage: "llm step replayed from checkpoint",
|
|
18928
18912
|
parseCached: (cached) => opts.outputSchema ? opts.outputSchema.parse(cached) : cached,
|
|
18929
18913
|
execute: (_correlationId) => runLlm(opts)
|
|
18930
18914
|
});
|
|
@@ -18958,7 +18942,6 @@ function createWorkflowStepRunner(state, ctx, queueChildren = false) {
|
|
|
18958
18942
|
key: workflow.slug,
|
|
18959
18943
|
correlationKey: options?.callSiteId,
|
|
18960
18944
|
metadataKey: "workflowKey",
|
|
18961
|
-
replayMessage: "workflow step replayed from checkpoint",
|
|
18962
18945
|
parseCached: (cached) => workflow.output.parse(cached),
|
|
18963
18946
|
execute: async () => {
|
|
18964
18947
|
return runInStepScope(options?.callSiteId ?? workflow.slug, async () => {
|
|
@@ -19239,4 +19222,4 @@ async function storeFile(data, options) {
|
|
|
19239
19222
|
//#endregion
|
|
19240
19223
|
export { defineMcp as A, isCredentialError as C, connectMcpDefinition as D, withCredentialAssignments as E, connectMcpServer as O, enrichCredentialError as S, resolveMcpTools as T, serializeWorkflowError as _, createDirectActionRunner as a, captureCredentialToolErrors as b, executeWorkflow as c, isWorkflow as d, promptLlm as f, runWithWorkflowContext as g, resolveWorkflowTool as h, createActionRunner as i, isMcp as j, connectMcpStdio as k, isRunCanceledError as l, registerWorkflowToolExecutor as m, RunCanceledError as n, defineWorkflow as o, registerFileStore as p, RunTimeoutError as r, deserializeWorkflowError as s, MemoryEventLog as t, isRunTimeoutError as u, storeFile as v, resolveActionCredentials as w, createCredentialResolver as x, buildCredentialRunContext as y };
|
|
19241
19224
|
|
|
19242
|
-
//# sourceMappingURL=dist-
|
|
19225
|
+
//# sourceMappingURL=dist-K7JjYweY.mjs.map
|