@mastra/inngest 1.2.1 → 1.2.2-alpha.0
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/CHANGELOG.md +10 -0
- package/dist/index.cjs +10 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +10 -2
- package/dist/index.js.map +1 -1
- package/package.json +10 -10
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# @mastra/inngest
|
|
2
2
|
|
|
3
|
+
## 1.2.2-alpha.0
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- dependencies updates: ([#15526](https://github.com/mastra-ai/mastra/pull/15526))
|
|
8
|
+
- Updated dependency [`@opentelemetry/api@^1.9.1` ↗︎](https://www.npmjs.com/package/@opentelemetry/api/v/1.9.1) (from `^1.9.0`, in `dependencies`)
|
|
9
|
+
- Updated dependency [`@opentelemetry/core@^1.30.1` ↗︎](https://www.npmjs.com/package/@opentelemetry/core/v/1.30.1) (from `^1.30.0`, in `dependencies`)
|
|
10
|
+
- Updated dependencies [[`aba393e`](https://github.com/mastra-ai/mastra/commit/aba393e2da7390c69b80e516a4f153cda6f09376), [`0a5fa1d`](https://github.com/mastra-ai/mastra/commit/0a5fa1d3cb0583889d06687155f26fd7d2edc76c), [`ea43e64`](https://github.com/mastra-ai/mastra/commit/ea43e646dd95d507694b6112b0bf1df22ad552b2), [`00d1b16`](https://github.com/mastra-ai/mastra/commit/00d1b16b401199cb294fa23f43336547db4dca9b), [`af8a57e`](https://github.com/mastra-ai/mastra/commit/af8a57ed9ba9685ad8601d5b71ae3706da6222f9)]:
|
|
11
|
+
- @mastra/core@1.26.0-alpha.10
|
|
12
|
+
|
|
3
13
|
## 1.2.1
|
|
4
14
|
|
|
5
15
|
### Patch Changes
|
package/dist/index.cjs
CHANGED
|
@@ -2038,7 +2038,8 @@ function createStepFromProcessor(processor) {
|
|
|
2038
2038
|
providerOptions,
|
|
2039
2039
|
modelSettings,
|
|
2040
2040
|
structuredOutput,
|
|
2041
|
-
steps
|
|
2041
|
+
steps,
|
|
2042
|
+
usage
|
|
2042
2043
|
} = input;
|
|
2043
2044
|
const abort = (reason, options) => {
|
|
2044
2045
|
throw new agent.TripWire(reason || `Tripwire triggered by ${processor.id}`, options, processor.id);
|
|
@@ -2090,7 +2091,8 @@ function createStepFromProcessor(processor) {
|
|
|
2090
2091
|
providerOptions,
|
|
2091
2092
|
modelSettings,
|
|
2092
2093
|
structuredOutput,
|
|
2093
|
-
steps
|
|
2094
|
+
steps,
|
|
2095
|
+
usage
|
|
2094
2096
|
};
|
|
2095
2097
|
const executePhaseWithSpan = async (fn) => {
|
|
2096
2098
|
try {
|
|
@@ -2355,6 +2357,11 @@ function createStepFromProcessor(processor) {
|
|
|
2355
2357
|
}
|
|
2356
2358
|
const idsBeforeProcessing = messages.map((m) => m.id);
|
|
2357
2359
|
const check = passThrough.messageList.makeMessageSourceChecker();
|
|
2360
|
+
const defaultUsage = {
|
|
2361
|
+
inputTokens: void 0,
|
|
2362
|
+
outputTokens: void 0,
|
|
2363
|
+
totalTokens: void 0
|
|
2364
|
+
};
|
|
2358
2365
|
const result2 = await processor.processOutputStep({
|
|
2359
2366
|
...baseContext,
|
|
2360
2367
|
messages,
|
|
@@ -2363,6 +2370,7 @@ function createStepFromProcessor(processor) {
|
|
|
2363
2370
|
finishReason,
|
|
2364
2371
|
toolCalls,
|
|
2365
2372
|
text,
|
|
2373
|
+
usage: usage ?? defaultUsage,
|
|
2366
2374
|
systemMessages: systemMessages ?? [],
|
|
2367
2375
|
steps: steps ?? [],
|
|
2368
2376
|
state: {}
|