@mastra/core 0.15.3-alpha.1 → 0.15.3-alpha.3
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/index.cjs +11 -11
- package/dist/agent/index.js +2 -2
- package/dist/agent/input-processor/index.cjs +6 -6
- package/dist/agent/input-processor/index.js +1 -1
- package/dist/agent/message-list/index.d.ts +5 -1
- package/dist/agent/message-list/index.d.ts.map +1 -1
- package/dist/agent/message-list/prompt/convert-file.d.ts +7 -0
- package/dist/agent/message-list/prompt/convert-file.d.ts.map +1 -0
- package/dist/agent/message-list/prompt/download-assets.d.ts +15 -0
- package/dist/agent/message-list/prompt/download-assets.d.ts.map +1 -0
- package/dist/{chunk-6VROHRAR.cjs → chunk-24TFSB6Z.cjs} +30 -7
- package/dist/chunk-24TFSB6Z.cjs.map +1 -0
- package/dist/{chunk-BRNBKCHE.js → chunk-5TFCIXWE.js} +10 -8
- package/dist/chunk-5TFCIXWE.js.map +1 -0
- package/dist/{chunk-TINMY4WA.js → chunk-APVV75XG.js} +3 -3
- package/dist/{chunk-TINMY4WA.js.map → chunk-APVV75XG.js.map} +1 -1
- package/dist/{chunk-HRDADYVX.cjs → chunk-AYFN43FB.cjs} +4 -4
- package/dist/{chunk-HRDADYVX.cjs.map → chunk-AYFN43FB.cjs.map} +1 -1
- package/dist/{chunk-FGCA6CCM.js → chunk-BGOXFBFK.js} +295 -275
- package/dist/chunk-BGOXFBFK.js.map +1 -0
- package/dist/{chunk-XEY3CWQW.cjs → chunk-D2GH2HAK.cjs} +9 -9
- package/dist/{chunk-XEY3CWQW.cjs.map → chunk-D2GH2HAK.cjs.map} +1 -1
- package/dist/{chunk-6Z7D7CA3.cjs → chunk-DJKIK6ZB.cjs} +326 -306
- package/dist/chunk-DJKIK6ZB.cjs.map +1 -0
- package/dist/{chunk-XOZ737RO.js → chunk-EMAAAVRA.js} +3 -3
- package/dist/{chunk-XOZ737RO.js.map → chunk-EMAAAVRA.js.map} +1 -1
- package/dist/chunk-GOG77M6R.js +103 -0
- package/dist/chunk-GOG77M6R.js.map +1 -0
- package/dist/{chunk-UG3KS3XV.cjs → chunk-HXEHQLBD.cjs} +4 -4
- package/dist/{chunk-UG3KS3XV.cjs.map → chunk-HXEHQLBD.cjs.map} +1 -1
- package/dist/{chunk-MKWJKRSX.js → chunk-MEROMP3Z.js} +3 -3
- package/dist/{chunk-MKWJKRSX.js.map → chunk-MEROMP3Z.js.map} +1 -1
- package/dist/{chunk-C5C4PN54.js → chunk-O7IQL4DX.js} +288 -5
- package/dist/chunk-O7IQL4DX.js.map +1 -0
- package/dist/{chunk-VBAWR62U.cjs → chunk-QHEB6ZLO.cjs} +13 -11
- package/dist/chunk-QHEB6ZLO.cjs.map +1 -0
- package/dist/{chunk-5MCNXLGT.js → chunk-TQRLZH64.js} +4 -4
- package/dist/{chunk-5MCNXLGT.js.map → chunk-TQRLZH64.js.map} +1 -1
- package/dist/{chunk-QA2TWVUS.cjs → chunk-TWNFR6MQ.cjs} +288 -5
- package/dist/chunk-TWNFR6MQ.cjs.map +1 -0
- package/dist/{chunk-CDLIHAX2.cjs → chunk-UGN2UU3K.cjs} +4 -4
- package/dist/{chunk-CDLIHAX2.cjs.map → chunk-UGN2UU3K.cjs.map} +1 -1
- package/dist/{chunk-E3LAPNKY.js → chunk-WUQSFK7W.js} +4 -4
- package/dist/{chunk-E3LAPNKY.js.map → chunk-WUQSFK7W.js.map} +1 -1
- package/dist/{chunk-QBNRMJAN.cjs → chunk-YTVX52NU.cjs} +6 -6
- package/dist/{chunk-QBNRMJAN.cjs.map → chunk-YTVX52NU.cjs.map} +1 -1
- package/dist/chunk-ZAJTIZZF.cjs +108 -0
- package/dist/chunk-ZAJTIZZF.cjs.map +1 -0
- package/dist/{chunk-FLXWZUIG.js → chunk-ZC64CG7J.js} +26 -4
- package/dist/chunk-ZC64CG7J.js.map +1 -0
- package/dist/index.cjs +47 -43
- package/dist/index.js +10 -10
- package/dist/integration/index.cjs +3 -3
- package/dist/integration/index.js +1 -1
- package/dist/llm/model/model.d.ts.map +1 -1
- package/dist/llm/model/model.loop.d.ts +1 -1
- package/dist/llm/model/model.loop.d.ts.map +1 -1
- package/dist/loop/index.cjs +2 -2
- package/dist/loop/index.js +1 -1
- package/dist/loop/types.d.ts +2 -0
- package/dist/loop/types.d.ts.map +1 -1
- package/dist/loop/workflow/llm-execution.d.ts +1 -1
- package/dist/loop/workflow/llm-execution.d.ts.map +1 -1
- package/dist/mastra/index.cjs +2 -2
- package/dist/mastra/index.js +1 -1
- package/dist/memory/index.cjs +4 -4
- package/dist/memory/index.js +1 -1
- package/dist/network/index.cjs +4 -4
- package/dist/network/index.js +2 -2
- package/dist/network/vNext/index.cjs +14 -14
- package/dist/network/vNext/index.js +2 -2
- package/dist/processors/index.cjs +8 -8
- package/dist/processors/index.js +2 -2
- package/dist/relevance/index.cjs +4 -4
- package/dist/relevance/index.js +1 -1
- package/dist/scores/index.cjs +5 -5
- package/dist/scores/index.js +1 -1
- package/dist/storage/index.cjs +3 -3
- package/dist/storage/index.js +1 -1
- package/dist/stream/aisdk/v5/compat/consume-stream.d.ts +8 -0
- package/dist/stream/aisdk/v5/compat/consume-stream.d.ts.map +1 -0
- package/dist/stream/aisdk/v5/compat/content.d.ts +7 -0
- package/dist/stream/aisdk/v5/compat/content.d.ts.map +1 -0
- package/dist/stream/aisdk/v5/compat/delayed-promise.d.ts +23 -0
- package/dist/stream/aisdk/v5/compat/delayed-promise.d.ts.map +1 -0
- package/dist/stream/aisdk/v5/compat/index.d.ts +8 -0
- package/dist/stream/aisdk/v5/compat/index.d.ts.map +1 -0
- package/dist/stream/aisdk/v5/compat/media.d.ts +91 -0
- package/dist/stream/aisdk/v5/compat/media.d.ts.map +1 -0
- package/dist/stream/aisdk/v5/compat/prepare-tools.d.ts +11 -0
- package/dist/stream/aisdk/v5/compat/prepare-tools.d.ts.map +1 -0
- package/dist/stream/aisdk/v5/compat/ui-message.d.ts +20 -0
- package/dist/stream/aisdk/v5/compat/ui-message.d.ts.map +1 -0
- package/dist/stream/aisdk/v5/compat/validation.d.ts +17 -0
- package/dist/stream/aisdk/v5/compat/validation.d.ts.map +1 -0
- package/dist/stream/aisdk/v5/output.d.ts +1 -1
- package/dist/stream/base/output.d.ts +1 -1
- package/dist/stream/index.cjs +3 -3
- package/dist/stream/index.js +1 -1
- package/dist/test-utils/llm-mock.cjs +2 -2
- package/dist/test-utils/llm-mock.js +1 -1
- package/dist/tools/index.cjs +4 -4
- package/dist/tools/index.js +1 -1
- package/dist/tools/is-vercel-tool.cjs +2 -2
- package/dist/tools/is-vercel-tool.js +1 -1
- package/dist/tools/validation.d.ts.map +1 -1
- package/dist/utils.cjs +20 -16
- package/dist/utils.d.ts +9 -0
- package/dist/utils.d.ts.map +1 -1
- package/dist/utils.js +1 -1
- package/dist/workflows/evented/index.cjs +10 -10
- package/dist/workflows/evented/index.js +1 -1
- package/dist/workflows/index.cjs +10 -10
- package/dist/workflows/index.js +1 -1
- package/dist/workflows/legacy/index.cjs +22 -22
- package/dist/workflows/legacy/index.js +1 -1
- package/package.json +3 -3
- package/dist/chunk-6VROHRAR.cjs.map +0 -1
- package/dist/chunk-6Z7D7CA3.cjs.map +0 -1
- package/dist/chunk-BRNBKCHE.js.map +0 -1
- package/dist/chunk-C5C4PN54.js.map +0 -1
- package/dist/chunk-E4XQMNEI.cjs +0 -77
- package/dist/chunk-E4XQMNEI.cjs.map +0 -1
- package/dist/chunk-FGCA6CCM.js.map +0 -1
- package/dist/chunk-FLXWZUIG.js.map +0 -1
- package/dist/chunk-IVGAHFAJ.js +0 -72
- package/dist/chunk-IVGAHFAJ.js.map +0 -1
- package/dist/chunk-QA2TWVUS.cjs.map +0 -1
- package/dist/chunk-VBAWR62U.cjs.map +0 -1
- package/dist/stream/aisdk/v5/compat.d.ts +0 -182
- package/dist/stream/aisdk/v5/compat.d.ts.map +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkDJKIK6ZB_cjs = require('../chunk-DJKIK6ZB.cjs');
|
|
4
4
|
var lite = require('js-tiktoken/lite');
|
|
5
5
|
var o200k_base = require('js-tiktoken/ranks/o200k_base');
|
|
6
6
|
var zod = require('zod');
|
|
@@ -271,7 +271,7 @@ var SystemPromptScrubber = class {
|
|
|
271
271
|
this.placeholderText = options.placeholderText || "[SYSTEM_PROMPT]";
|
|
272
272
|
this.instructions = options.instructions || this.getDefaultInstructions();
|
|
273
273
|
this.model = options.model;
|
|
274
|
-
this.detectionAgent = new
|
|
274
|
+
this.detectionAgent = new chunkDJKIK6ZB_cjs.Agent({
|
|
275
275
|
name: "system-prompt-detector",
|
|
276
276
|
model: this.model,
|
|
277
277
|
instructions: this.instructions
|
|
@@ -497,27 +497,27 @@ Be thorough but avoid false positives. Only flag content that genuinely represen
|
|
|
497
497
|
|
|
498
498
|
Object.defineProperty(exports, "LanguageDetector", {
|
|
499
499
|
enumerable: true,
|
|
500
|
-
get: function () { return
|
|
500
|
+
get: function () { return chunkDJKIK6ZB_cjs.LanguageDetector; }
|
|
501
501
|
});
|
|
502
502
|
Object.defineProperty(exports, "ModerationProcessor", {
|
|
503
503
|
enumerable: true,
|
|
504
|
-
get: function () { return
|
|
504
|
+
get: function () { return chunkDJKIK6ZB_cjs.ModerationProcessor; }
|
|
505
505
|
});
|
|
506
506
|
Object.defineProperty(exports, "PIIDetector", {
|
|
507
507
|
enumerable: true,
|
|
508
|
-
get: function () { return
|
|
508
|
+
get: function () { return chunkDJKIK6ZB_cjs.PIIDetector; }
|
|
509
509
|
});
|
|
510
510
|
Object.defineProperty(exports, "PromptInjectionDetector", {
|
|
511
511
|
enumerable: true,
|
|
512
|
-
get: function () { return
|
|
512
|
+
get: function () { return chunkDJKIK6ZB_cjs.PromptInjectionDetector; }
|
|
513
513
|
});
|
|
514
514
|
Object.defineProperty(exports, "StructuredOutputProcessor", {
|
|
515
515
|
enumerable: true,
|
|
516
|
-
get: function () { return
|
|
516
|
+
get: function () { return chunkDJKIK6ZB_cjs.StructuredOutputProcessor; }
|
|
517
517
|
});
|
|
518
518
|
Object.defineProperty(exports, "UnicodeNormalizer", {
|
|
519
519
|
enumerable: true,
|
|
520
|
-
get: function () { return
|
|
520
|
+
get: function () { return chunkDJKIK6ZB_cjs.UnicodeNormalizer; }
|
|
521
521
|
});
|
|
522
522
|
exports.BatchPartsProcessor = BatchPartsProcessor;
|
|
523
523
|
exports.SystemPromptScrubber = SystemPromptScrubber;
|
package/dist/processors/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Agent } from '../chunk-
|
|
2
|
-
export { LanguageDetector, ModerationProcessor, PIIDetector, PromptInjectionDetector, StructuredOutputProcessor, UnicodeNormalizer } from '../chunk-
|
|
1
|
+
import { Agent } from '../chunk-BGOXFBFK.js';
|
|
2
|
+
export { LanguageDetector, ModerationProcessor, PIIDetector, PromptInjectionDetector, StructuredOutputProcessor, UnicodeNormalizer } from '../chunk-BGOXFBFK.js';
|
|
3
3
|
import { Tiktoken } from 'js-tiktoken/lite';
|
|
4
4
|
import o200k_base from 'js-tiktoken/ranks/o200k_base';
|
|
5
5
|
import { z } from 'zod';
|
package/dist/relevance/index.cjs
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkUGN2UU3K_cjs = require('../chunk-UGN2UU3K.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
Object.defineProperty(exports, "CohereRelevanceScorer", {
|
|
8
8
|
enumerable: true,
|
|
9
|
-
get: function () { return
|
|
9
|
+
get: function () { return chunkUGN2UU3K_cjs.CohereRelevanceScorer; }
|
|
10
10
|
});
|
|
11
11
|
Object.defineProperty(exports, "MastraAgentRelevanceScorer", {
|
|
12
12
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
13
|
+
get: function () { return chunkUGN2UU3K_cjs.MastraAgentRelevanceScorer; }
|
|
14
14
|
});
|
|
15
15
|
Object.defineProperty(exports, "createSimilarityPrompt", {
|
|
16
16
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunkUGN2UU3K_cjs.createSimilarityPrompt; }
|
|
18
18
|
});
|
|
19
19
|
//# sourceMappingURL=index.cjs.map
|
|
20
20
|
//# sourceMappingURL=index.cjs.map
|
package/dist/relevance/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { CohereRelevanceScorer, MastraAgentRelevanceScorer, createSimilarityPrompt } from '../chunk-
|
|
1
|
+
export { CohereRelevanceScorer, MastraAgentRelevanceScorer, createSimilarityPrompt } from '../chunk-MEROMP3Z.js';
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
3
3
|
//# sourceMappingURL=index.js.map
|
package/dist/scores/index.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkDJKIK6ZB_cjs = require('../chunk-DJKIK6ZB.cjs');
|
|
4
4
|
var chunkC73WLCY3_cjs = require('../chunk-C73WLCY3.cjs');
|
|
5
5
|
var zod = require('zod');
|
|
6
6
|
var crypto = require('crypto');
|
|
@@ -161,7 +161,7 @@ var MastraScorer = class _MastraScorer {
|
|
|
161
161
|
}
|
|
162
162
|
toMastraWorkflow() {
|
|
163
163
|
const workflowSteps = this.steps.map((scorerStep) => {
|
|
164
|
-
return
|
|
164
|
+
return chunkDJKIK6ZB_cjs.createStep({
|
|
165
165
|
id: scorerStep.name,
|
|
166
166
|
description: `Scorer step: ${scorerStep.name}`,
|
|
167
167
|
inputSchema: zod.z.any(),
|
|
@@ -194,7 +194,7 @@ var MastraScorer = class _MastraScorer {
|
|
|
194
194
|
}
|
|
195
195
|
});
|
|
196
196
|
});
|
|
197
|
-
const workflow =
|
|
197
|
+
const workflow = chunkDJKIK6ZB_cjs.createWorkflow({
|
|
198
198
|
id: `scorer-${this.config.name}`,
|
|
199
199
|
description: this.config.description,
|
|
200
200
|
inputSchema: zod.z.object({
|
|
@@ -249,7 +249,7 @@ var MastraScorer = class _MastraScorer {
|
|
|
249
249
|
}
|
|
250
250
|
});
|
|
251
251
|
}
|
|
252
|
-
const judge = new
|
|
252
|
+
const judge = new chunkDJKIK6ZB_cjs.Agent({ name: "judge", model, instructions });
|
|
253
253
|
if (scorerStep.name === "generateScore") {
|
|
254
254
|
let result;
|
|
255
255
|
if (model.specificationVersion === "v2") {
|
|
@@ -433,7 +433,7 @@ async function runExperiment(config) {
|
|
|
433
433
|
};
|
|
434
434
|
}
|
|
435
435
|
function isWorkflow(target) {
|
|
436
|
-
return target instanceof
|
|
436
|
+
return target instanceof chunkDJKIK6ZB_cjs.Workflow;
|
|
437
437
|
}
|
|
438
438
|
function isWorkflowScorerConfig(scorers) {
|
|
439
439
|
return typeof scorers === "object" && !Array.isArray(scorers) && ("workflow" in scorers || "steps" in scorers);
|
package/dist/scores/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { createStep, createWorkflow, Agent, Workflow } from '../chunk-
|
|
1
|
+
import { createStep, createWorkflow, Agent, Workflow } from '../chunk-BGOXFBFK.js';
|
|
2
2
|
import { MastraError } from '../chunk-MCOVMKIS.js';
|
|
3
3
|
import { z } from 'zod';
|
|
4
4
|
import { randomUUID } from 'crypto';
|
package/dist/storage/index.cjs
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
var chunkK6UMYGK5_cjs = require('../chunk-K6UMYGK5.cjs');
|
|
4
4
|
var chunkXUAWHRUO_cjs = require('../chunk-XUAWHRUO.cjs');
|
|
5
|
-
var
|
|
5
|
+
var chunkTWNFR6MQ_cjs = require('../chunk-TWNFR6MQ.cjs');
|
|
6
6
|
var chunkC73WLCY3_cjs = require('../chunk-C73WLCY3.cjs');
|
|
7
7
|
var chunkKXCUCBEI_cjs = require('../chunk-KXCUCBEI.cjs');
|
|
8
8
|
|
|
@@ -310,7 +310,7 @@ var InMemoryMemory = class extends MemoryStorage {
|
|
|
310
310
|
}) {
|
|
311
311
|
this.logger.debug(`MockStore: getMessagesById called`);
|
|
312
312
|
const rawMessages = messageIds.map((id) => this.collection.messages.get(id)).filter((message) => !!message);
|
|
313
|
-
const list = new
|
|
313
|
+
const list = new chunkTWNFR6MQ_cjs.MessageList().add(rawMessages.map(this.parseStoredMessage), "memory");
|
|
314
314
|
if (format === "v1") return list.get.all.v1();
|
|
315
315
|
return list.get.all.v2();
|
|
316
316
|
}
|
|
@@ -340,7 +340,7 @@ var InMemoryMemory = class extends MemoryStorage {
|
|
|
340
340
|
};
|
|
341
341
|
this.collection.messages.set(key, storageMessage);
|
|
342
342
|
}
|
|
343
|
-
const list = new
|
|
343
|
+
const list = new chunkTWNFR6MQ_cjs.MessageList().add(messages, "memory");
|
|
344
344
|
if (format === `v2`) return list.get.all.v2();
|
|
345
345
|
return list.get.all.v1();
|
|
346
346
|
}
|
package/dist/storage/index.js
CHANGED
|
@@ -2,7 +2,7 @@ import { MastraStorage } from '../chunk-YGW2WEJ5.js';
|
|
|
2
2
|
export { MastraStorage, ensureDate, resolveMessageLimit, serializeDate } from '../chunk-YGW2WEJ5.js';
|
|
3
3
|
import { TABLE_WORKFLOW_SNAPSHOT, TABLE_EVALS, TABLE_TRACES } from '../chunk-R5GESRGB.js';
|
|
4
4
|
export { AI_SPAN_SCHEMA, SCORERS_SCHEMA, TABLE_AI_SPANS, TABLE_EVALS, TABLE_MESSAGES, TABLE_RESOURCES, TABLE_SCHEMAS, TABLE_SCORERS, TABLE_THREADS, TABLE_TRACES, TABLE_WORKFLOW_SNAPSHOT } from '../chunk-R5GESRGB.js';
|
|
5
|
-
import { MessageList } from '../chunk-
|
|
5
|
+
import { MessageList } from '../chunk-O7IQL4DX.js';
|
|
6
6
|
import { MastraError } from '../chunk-MCOVMKIS.js';
|
|
7
7
|
import { MastraBase } from '../chunk-6GF5M4GX.js';
|
|
8
8
|
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export type ConsumeStreamOptions = {
|
|
2
|
+
onError?: (error: unknown) => void;
|
|
3
|
+
};
|
|
4
|
+
export declare function consumeStream({ stream, onError, }: {
|
|
5
|
+
stream: ReadableStream;
|
|
6
|
+
onError?: (error: unknown) => void;
|
|
7
|
+
}): Promise<void>;
|
|
8
|
+
//# sourceMappingURL=consume-stream.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"consume-stream.d.ts","sourceRoot":"","sources":["../../../../../src/stream/aisdk/v5/compat/consume-stream.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,oBAAoB,GAAG;IACjC,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;CACpC,CAAC;AAEF,wBAAsB,aAAa,CAAC,EAClC,MAAM,EACN,OAAO,GACR,EAAE;IACD,MAAM,EAAE,cAAc,CAAC;IACvB,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;CACpC,GAAG,OAAO,CAAC,IAAI,CAAC,CAahB"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { LanguageModelV2DataContent } from '@ai-sdk/provider-v5';
|
|
2
|
+
import type { DataContent } from 'ai-v5';
|
|
3
|
+
export declare function convertToDataContent(content: DataContent | URL): {
|
|
4
|
+
data: LanguageModelV2DataContent;
|
|
5
|
+
mediaType: string | undefined;
|
|
6
|
+
};
|
|
7
|
+
//# sourceMappingURL=content.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"content.d.ts","sourceRoot":"","sources":["../../../../../src/stream/aisdk/v5/compat/content.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,qBAAqB,CAAC;AACtE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AAqBzC,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,WAAW,GAAG,GAAG,GAAG;IAChE,IAAI,EAAE,0BAA0B,CAAC;IACjC,SAAS,EAAE,MAAM,GAAG,SAAS,CAAC;CAC/B,CAsCA"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Delayed promise. It is only constructed once the value is accessed.
|
|
3
|
+
* This is useful to avoid unhandled promise rejections when the promise is created
|
|
4
|
+
* but not accessed.
|
|
5
|
+
*/
|
|
6
|
+
export declare class DelayedPromise<T> {
|
|
7
|
+
status: {
|
|
8
|
+
type: 'pending';
|
|
9
|
+
} | {
|
|
10
|
+
type: 'resolved';
|
|
11
|
+
value: T;
|
|
12
|
+
} | {
|
|
13
|
+
type: 'rejected';
|
|
14
|
+
error: unknown;
|
|
15
|
+
};
|
|
16
|
+
private _promise;
|
|
17
|
+
private _resolve;
|
|
18
|
+
private _reject;
|
|
19
|
+
get promise(): Promise<T>;
|
|
20
|
+
resolve(value: T): void;
|
|
21
|
+
reject(error: unknown): void;
|
|
22
|
+
}
|
|
23
|
+
//# sourceMappingURL=delayed-promise.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"delayed-promise.d.ts","sourceRoot":"","sources":["../../../../../src/stream/aisdk/v5/compat/delayed-promise.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,qBAAa,cAAc,CAAC,CAAC;IACpB,MAAM,EAAE;QAAE,IAAI,EAAE,SAAS,CAAA;KAAE,GAAG;QAAE,IAAI,EAAE,UAAU,CAAC;QAAC,KAAK,EAAE,CAAC,CAAA;KAAE,GAAG;QAAE,IAAI,EAAE,UAAU,CAAC;QAAC,KAAK,EAAE,OAAO,CAAA;KAAE,CAExG;IACF,OAAO,CAAC,QAAQ,CAAyB;IACzC,OAAO,CAAC,QAAQ,CAA+C;IAC/D,OAAO,CAAC,OAAO,CAAqD;IAEpE,IAAI,OAAO,IAAI,OAAO,CAAC,CAAC,CAAC,CAiBxB;IAED,OAAO,CAAC,KAAK,EAAE,CAAC,GAAG,IAAI;IAQvB,MAAM,CAAC,KAAK,EAAE,OAAO,GAAG,IAAI;CAO7B"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export * from './content.js';
|
|
2
|
+
export * from './media.js';
|
|
3
|
+
export * from './ui-message.js';
|
|
4
|
+
export * from './validation.js';
|
|
5
|
+
export * from './delayed-promise.js';
|
|
6
|
+
export * from './prepare-tools.js';
|
|
7
|
+
export * from './consume-stream.js';
|
|
8
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/stream/aisdk/v5/compat/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,mBAAmB,CAAC;AAClC,cAAc,iBAAiB,CAAC;AAChC,cAAc,kBAAkB,CAAC"}
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
export declare const imageMediaTypeSignatures: readonly [{
|
|
2
|
+
readonly mediaType: "image/gif";
|
|
3
|
+
readonly bytesPrefix: readonly [71, 73, 70];
|
|
4
|
+
readonly base64Prefix: "R0lG";
|
|
5
|
+
}, {
|
|
6
|
+
readonly mediaType: "image/png";
|
|
7
|
+
readonly bytesPrefix: readonly [137, 80, 78, 71];
|
|
8
|
+
readonly base64Prefix: "iVBORw";
|
|
9
|
+
}, {
|
|
10
|
+
readonly mediaType: "image/jpeg";
|
|
11
|
+
readonly bytesPrefix: readonly [255, 216];
|
|
12
|
+
readonly base64Prefix: "/9j/";
|
|
13
|
+
}, {
|
|
14
|
+
readonly mediaType: "image/webp";
|
|
15
|
+
readonly bytesPrefix: readonly [82, 73, 70, 70];
|
|
16
|
+
readonly base64Prefix: "UklGRg";
|
|
17
|
+
}, {
|
|
18
|
+
readonly mediaType: "image/bmp";
|
|
19
|
+
readonly bytesPrefix: readonly [66, 77];
|
|
20
|
+
readonly base64Prefix: "Qk";
|
|
21
|
+
}, {
|
|
22
|
+
readonly mediaType: "image/tiff";
|
|
23
|
+
readonly bytesPrefix: readonly [73, 73, 42, 0];
|
|
24
|
+
readonly base64Prefix: "SUkqAA";
|
|
25
|
+
}, {
|
|
26
|
+
readonly mediaType: "image/tiff";
|
|
27
|
+
readonly bytesPrefix: readonly [77, 77, 0, 42];
|
|
28
|
+
readonly base64Prefix: "TU0AKg";
|
|
29
|
+
}, {
|
|
30
|
+
readonly mediaType: "image/avif";
|
|
31
|
+
readonly bytesPrefix: readonly [0, 0, 0, 32, 102, 116, 121, 112, 97, 118, 105, 102];
|
|
32
|
+
readonly base64Prefix: "AAAAIGZ0eXBhdmlm";
|
|
33
|
+
}, {
|
|
34
|
+
readonly mediaType: "image/heic";
|
|
35
|
+
readonly bytesPrefix: readonly [0, 0, 0, 32, 102, 116, 121, 112, 104, 101, 105, 99];
|
|
36
|
+
readonly base64Prefix: "AAAAIGZ0eXBoZWlj";
|
|
37
|
+
}];
|
|
38
|
+
export declare const audioMediaTypeSignatures: readonly [{
|
|
39
|
+
readonly mediaType: "audio/mpeg";
|
|
40
|
+
readonly bytesPrefix: readonly [255, 251];
|
|
41
|
+
readonly base64Prefix: "//s=";
|
|
42
|
+
}, {
|
|
43
|
+
readonly mediaType: "audio/mpeg";
|
|
44
|
+
readonly bytesPrefix: readonly [255, 250];
|
|
45
|
+
readonly base64Prefix: "//o=";
|
|
46
|
+
}, {
|
|
47
|
+
readonly mediaType: "audio/mpeg";
|
|
48
|
+
readonly bytesPrefix: readonly [255, 243];
|
|
49
|
+
readonly base64Prefix: "//M=";
|
|
50
|
+
}, {
|
|
51
|
+
readonly mediaType: "audio/mpeg";
|
|
52
|
+
readonly bytesPrefix: readonly [255, 242];
|
|
53
|
+
readonly base64Prefix: "//I=";
|
|
54
|
+
}, {
|
|
55
|
+
readonly mediaType: "audio/mpeg";
|
|
56
|
+
readonly bytesPrefix: readonly [255, 227];
|
|
57
|
+
readonly base64Prefix: "/+M=";
|
|
58
|
+
}, {
|
|
59
|
+
readonly mediaType: "audio/mpeg";
|
|
60
|
+
readonly bytesPrefix: readonly [255, 226];
|
|
61
|
+
readonly base64Prefix: "/+I=";
|
|
62
|
+
}, {
|
|
63
|
+
readonly mediaType: "audio/wav";
|
|
64
|
+
readonly bytesPrefix: readonly [82, 73, 70, 70];
|
|
65
|
+
readonly base64Prefix: "UklGR";
|
|
66
|
+
}, {
|
|
67
|
+
readonly mediaType: "audio/ogg";
|
|
68
|
+
readonly bytesPrefix: readonly [79, 103, 103, 83];
|
|
69
|
+
readonly base64Prefix: "T2dnUw";
|
|
70
|
+
}, {
|
|
71
|
+
readonly mediaType: "audio/flac";
|
|
72
|
+
readonly bytesPrefix: readonly [102, 76, 97, 67];
|
|
73
|
+
readonly base64Prefix: "ZkxhQw";
|
|
74
|
+
}, {
|
|
75
|
+
readonly mediaType: "audio/aac";
|
|
76
|
+
readonly bytesPrefix: readonly [64, 21, 0, 0];
|
|
77
|
+
readonly base64Prefix: "QBUA";
|
|
78
|
+
}, {
|
|
79
|
+
readonly mediaType: "audio/mp4";
|
|
80
|
+
readonly bytesPrefix: readonly [102, 116, 121, 112];
|
|
81
|
+
readonly base64Prefix: "ZnR5cA";
|
|
82
|
+
}, {
|
|
83
|
+
readonly mediaType: "audio/webm";
|
|
84
|
+
readonly bytesPrefix: readonly [26, 69, 223, 163];
|
|
85
|
+
readonly base64Prefix: "GkXf";
|
|
86
|
+
}];
|
|
87
|
+
export declare function detectMediaType({ data, signatures, }: {
|
|
88
|
+
data: Uint8Array | string;
|
|
89
|
+
signatures: typeof audioMediaTypeSignatures | typeof imageMediaTypeSignatures;
|
|
90
|
+
}): (typeof signatures)[number]['mediaType'] | undefined;
|
|
91
|
+
//# sourceMappingURL=media.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"media.d.ts","sourceRoot":"","sources":["../../../../../src/stream/aisdk/v5/compat/media.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA8C3B,CAAC;AAEX,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA6D3B,CAAC;AA8BX,wBAAgB,eAAe,CAAC,EAC9B,IAAI,EACJ,UAAU,GACX,EAAE;IACD,IAAI,EAAE,UAAU,GAAG,MAAM,CAAC;IAC1B,UAAU,EAAE,OAAO,wBAAwB,GAAG,OAAO,wBAAwB,CAAC;CAC/E,GAAG,CAAC,OAAO,UAAU,CAAC,CAAC,MAAM,CAAC,CAAC,WAAW,CAAC,GAAG,SAAS,CAevD"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { LanguageModelV2FunctionTool, LanguageModelV2ProviderDefinedTool, LanguageModelV2ToolChoice } from '@ai-sdk/provider-v5';
|
|
2
|
+
import type { Tool, ToolChoice } from 'ai-v5';
|
|
3
|
+
export declare function prepareToolsAndToolChoice<TOOLS extends Record<string, Tool>>({ tools, toolChoice, activeTools, }: {
|
|
4
|
+
tools: TOOLS | undefined;
|
|
5
|
+
toolChoice: ToolChoice<TOOLS> | undefined;
|
|
6
|
+
activeTools: Array<keyof TOOLS> | undefined;
|
|
7
|
+
}): {
|
|
8
|
+
tools: Array<LanguageModelV2FunctionTool | LanguageModelV2ProviderDefinedTool> | undefined;
|
|
9
|
+
toolChoice: LanguageModelV2ToolChoice | undefined;
|
|
10
|
+
};
|
|
11
|
+
//# sourceMappingURL=prepare-tools.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"prepare-tools.d.ts","sourceRoot":"","sources":["../../../../../src/stream/aisdk/v5/compat/prepare-tools.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,2BAA2B,EAC3B,kCAAkC,EAClC,yBAAyB,EAC1B,MAAM,qBAAqB,CAAC;AAE7B,OAAO,KAAK,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAE9C,wBAAgB,yBAAyB,CAAC,KAAK,SAAS,MAAM,CAAC,MAAM,EAAE,IAAI,CAAC,EAAE,EAC5E,KAAK,EACL,UAAU,EACV,WAAW,GACZ,EAAE;IACD,KAAK,EAAE,KAAK,GAAG,SAAS,CAAC;IACzB,UAAU,EAAE,UAAU,CAAC,KAAK,CAAC,GAAG,SAAS,CAAC;IAC1C,WAAW,EAAE,KAAK,CAAC,MAAM,KAAK,CAAC,GAAG,SAAS,CAAC;CAC7C,GAAG;IACF,KAAK,EAAE,KAAK,CAAC,2BAA2B,GAAG,kCAAkC,CAAC,GAAG,SAAS,CAAC;IAC3F,UAAU,EAAE,yBAAyB,GAAG,SAAS,CAAC;CACnD,CAuEA"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { InferUIMessageChunk, TextStreamPart, ToolSet, UIMessage } from 'ai-v5';
|
|
2
|
+
export declare function getResponseUIMessageId({ originalMessages, responseMessageId, }: {
|
|
3
|
+
originalMessages: UIMessage[] | undefined;
|
|
4
|
+
responseMessageId: string | any;
|
|
5
|
+
}): any;
|
|
6
|
+
export declare function convertFullStreamChunkToUIMessageStream<UI_MESSAGE extends UIMessage>({ part, messageMetadataValue, sendReasoning, sendSources, onError, sendStart, sendFinish, responseMessageId, }: {
|
|
7
|
+
part: TextStreamPart<ToolSet> | {
|
|
8
|
+
type: 'tool-output';
|
|
9
|
+
toolCallId: string;
|
|
10
|
+
output: any;
|
|
11
|
+
};
|
|
12
|
+
messageMetadataValue?: any;
|
|
13
|
+
sendReasoning?: boolean;
|
|
14
|
+
sendSources?: boolean;
|
|
15
|
+
onError: (error: any) => string;
|
|
16
|
+
sendStart?: boolean;
|
|
17
|
+
sendFinish?: boolean;
|
|
18
|
+
responseMessageId?: string;
|
|
19
|
+
}): InferUIMessageChunk<UI_MESSAGE> | undefined;
|
|
20
|
+
//# sourceMappingURL=ui-message.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ui-message.d.ts","sourceRoot":"","sources":["../../../../../src/stream/aisdk/v5/compat/ui-message.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,cAAc,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAErF,wBAAgB,sBAAsB,CAAC,EACrC,gBAAgB,EAChB,iBAAiB,GAClB,EAAE;IACD,gBAAgB,EAAE,SAAS,EAAE,GAAG,SAAS,CAAC;IAC1C,iBAAiB,EAAE,MAAM,GAAG,GAAG,CAAC;CACjC,OAcA;AAED,wBAAgB,uCAAuC,CAAC,UAAU,SAAS,SAAS,EAAE,EACpF,IAAI,EACJ,oBAAoB,EACpB,aAAa,EACb,WAAW,EACX,OAAO,EACP,SAAS,EACT,UAAU,EACV,iBAAiB,GAClB,EAAE;IACD,IAAI,EAAE,cAAc,CAAC,OAAO,CAAC,GAAG;QAAE,IAAI,EAAE,aAAa,CAAC;QAAC,UAAU,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,GAAG,CAAA;KAAE,CAAC;IACzF,oBAAoB,CAAC,EAAE,GAAG,CAAC;IAC3B,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,OAAO,EAAE,CAAC,KAAK,EAAE,GAAG,KAAK,MAAM,CAAC;IAChC,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B,GAAG,mBAAmB,CAAC,UAAU,CAAC,GAAG,SAAS,CAyM9C"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { Schema } from 'ai-v5';
|
|
2
|
+
export type ValidationResult<T> = {
|
|
3
|
+
success: true;
|
|
4
|
+
value: T;
|
|
5
|
+
} | {
|
|
6
|
+
success: false;
|
|
7
|
+
error: Error;
|
|
8
|
+
};
|
|
9
|
+
/**
|
|
10
|
+
* Safely validates the types of an unknown object using a schema.
|
|
11
|
+
* Based on @ai-sdk/provider-utils safeValidateTypes
|
|
12
|
+
*/
|
|
13
|
+
export declare function safeValidateTypes<OBJECT>({ value, schema, }: {
|
|
14
|
+
value: unknown;
|
|
15
|
+
schema: Schema<OBJECT>;
|
|
16
|
+
}): Promise<ValidationResult<OBJECT>>;
|
|
17
|
+
//# sourceMappingURL=validation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"validation.d.ts","sourceRoot":"","sources":["../../../../../src/stream/aisdk/v5/compat/validation.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AAEpC,MAAM,MAAM,gBAAgB,CAAC,CAAC,IAC1B;IACE,OAAO,EAAE,IAAI,CAAC;IACd,KAAK,EAAE,CAAC,CAAC;CACV,GACD;IACE,OAAO,EAAE,KAAK,CAAC;IACf,KAAK,EAAE,KAAK,CAAC;CACd,CAAC;AAEN;;;GAGG;AACH,wBAAsB,iBAAiB,CAAC,MAAM,EAAE,EAC9C,KAAK,EACL,MAAM,GACP,EAAE;IACD,KAAK,EAAE,OAAO,CAAC;IACf,MAAM,EAAE,MAAM,CAAC,MAAM,CAAC,CAAC;CACxB,GAAG,OAAO,CAAC,gBAAgB,CAAC,MAAM,CAAC,CAAC,CAiCpC"}
|
|
@@ -4,7 +4,7 @@ import type z from 'zod';
|
|
|
4
4
|
import type { MessageList } from '../../../agent/message-list/index.js';
|
|
5
5
|
import type { MastraModelOutput } from '../../base/output.js';
|
|
6
6
|
import type { OutputSchema } from '../../base/schema.js';
|
|
7
|
-
import type { ConsumeStreamOptions } from './compat.js';
|
|
7
|
+
import type { ConsumeStreamOptions } from './compat/index.js';
|
|
8
8
|
import type { OutputChunkType } from './transform.js';
|
|
9
9
|
type AISDKV5OutputStreamOptions<OUTPUT extends OutputSchema = undefined> = {
|
|
10
10
|
toolCallStreaming?: boolean;
|
|
@@ -8,7 +8,7 @@ import type { AIV5Type } from '../../agent/message-list/types.js';
|
|
|
8
8
|
import { MastraBase } from '../../base.js';
|
|
9
9
|
import type { OutputProcessor } from '../../processors/index.js';
|
|
10
10
|
import { ProcessorRunner } from '../../processors/runner.js';
|
|
11
|
-
import type { ConsumeStreamOptions } from '../aisdk/v5/compat.js';
|
|
11
|
+
import type { ConsumeStreamOptions } from '../aisdk/v5/compat/index.js';
|
|
12
12
|
import { AISDKV5OutputStream } from '../aisdk/v5/output.js';
|
|
13
13
|
import type { ChunkType, StepBufferItem } from '../types.js';
|
|
14
14
|
import type { InferSchemaOutput, OutputSchema, PartialSchemaOutput } from './schema.js';
|
package/dist/stream/index.cjs
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkDJKIK6ZB_cjs = require('../chunk-DJKIK6ZB.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
Object.defineProperty(exports, "AISDKV5OutputStream", {
|
|
8
8
|
enumerable: true,
|
|
9
|
-
get: function () { return
|
|
9
|
+
get: function () { return chunkDJKIK6ZB_cjs.AISDKV5OutputStream; }
|
|
10
10
|
});
|
|
11
11
|
Object.defineProperty(exports, "MastraModelOutput", {
|
|
12
12
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
13
|
+
get: function () { return chunkDJKIK6ZB_cjs.MastraModelOutput; }
|
|
14
14
|
});
|
|
15
15
|
//# sourceMappingURL=index.cjs.map
|
|
16
16
|
//# sourceMappingURL=index.cjs.map
|
package/dist/stream/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkQHEB6ZLO_cjs = require('../chunk-QHEB6ZLO.cjs');
|
|
4
4
|
var ai = require('ai');
|
|
5
5
|
var test = require('ai/test');
|
|
6
6
|
|
|
@@ -58,7 +58,7 @@ function createMockModel({
|
|
|
58
58
|
});
|
|
59
59
|
return mockModel;
|
|
60
60
|
}
|
|
61
|
-
var MockProvider = class extends
|
|
61
|
+
var MockProvider = class extends chunkQHEB6ZLO_cjs.MastraLLMV1 {
|
|
62
62
|
constructor({
|
|
63
63
|
spyGenerate,
|
|
64
64
|
spyStream,
|
package/dist/tools/index.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var chunkS6MAHT7F_cjs = require('../chunk-S6MAHT7F.cjs');
|
|
4
|
-
var
|
|
4
|
+
var chunkZAJTIZZF_cjs = require('../chunk-ZAJTIZZF.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
@@ -11,15 +11,15 @@ Object.defineProperty(exports, "ToolStream", {
|
|
|
11
11
|
});
|
|
12
12
|
Object.defineProperty(exports, "Tool", {
|
|
13
13
|
enumerable: true,
|
|
14
|
-
get: function () { return
|
|
14
|
+
get: function () { return chunkZAJTIZZF_cjs.Tool; }
|
|
15
15
|
});
|
|
16
16
|
Object.defineProperty(exports, "createTool", {
|
|
17
17
|
enumerable: true,
|
|
18
|
-
get: function () { return
|
|
18
|
+
get: function () { return chunkZAJTIZZF_cjs.createTool; }
|
|
19
19
|
});
|
|
20
20
|
Object.defineProperty(exports, "isVercelTool", {
|
|
21
21
|
enumerable: true,
|
|
22
|
-
get: function () { return
|
|
22
|
+
get: function () { return chunkZAJTIZZF_cjs.isVercelTool; }
|
|
23
23
|
});
|
|
24
24
|
//# sourceMappingURL=index.cjs.map
|
|
25
25
|
//# sourceMappingURL=index.cjs.map
|
package/dist/tools/index.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkZAJTIZZF_cjs = require('../chunk-ZAJTIZZF.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
Object.defineProperty(exports, "isVercelTool", {
|
|
8
8
|
enumerable: true,
|
|
9
|
-
get: function () { return
|
|
9
|
+
get: function () { return chunkZAJTIZZF_cjs.isVercelTool; }
|
|
10
10
|
});
|
|
11
11
|
//# sourceMappingURL=is-vercel-tool.cjs.map
|
|
12
12
|
//# sourceMappingURL=is-vercel-tool.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"validation.d.ts","sourceRoot":"","sources":["../../src/tools/validation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAE7B,MAAM,WAAW,eAAe,CAAC,CAAC,GAAG,GAAG;IACtC,KAAK,EAAE,IAAI,CAAC;IACZ,OAAO,EAAE,MAAM,CAAC;IAChB,gBAAgB,EAAE,CAAC,CAAC,iBAAiB,CAAC,CAAC,CAAC,CAAC;CAC1C;AAED;;;;;;GAMG;AACH,wBAAgB,iBAAiB,CAAC,CAAC,GAAG,GAAG,EACvC,MAAM,EAAE,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,GAAG,SAAS,EAClC,KAAK,EAAE,OAAO,EACd,MAAM,CAAC,EAAE,MAAM,GACd;IAAE,IAAI,EAAE,CAAC,GAAG,OAAO,CAAC;IAAC,KAAK,CAAC,EAAE,eAAe,CAAC,CAAC,CAAC,CAAA;CAAE,
|
|
1
|
+
{"version":3,"file":"validation.d.ts","sourceRoot":"","sources":["../../src/tools/validation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAE7B,MAAM,WAAW,eAAe,CAAC,CAAC,GAAG,GAAG;IACtC,KAAK,EAAE,IAAI,CAAC;IACZ,OAAO,EAAE,MAAM,CAAC;IAChB,gBAAgB,EAAE,CAAC,CAAC,iBAAiB,CAAC,CAAC,CAAC,CAAC;CAC1C;AAED;;;;;;GAMG;AACH,wBAAgB,iBAAiB,CAAC,CAAC,GAAG,GAAG,EACvC,MAAM,EAAE,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,GAAG,SAAS,EAClC,KAAK,EAAE,OAAO,EACd,MAAM,CAAC,EAAE,MAAM,GACd;IAAE,IAAI,EAAE,CAAC,GAAG,OAAO,CAAC;IAAC,KAAK,CAAC,EAAE,eAAe,CAAC,CAAC,CAAC,CAAA;CAAE,CA8FnD"}
|
package/dist/utils.cjs
CHANGED
|
@@ -1,68 +1,72 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunk24TFSB6Z_cjs = require('./chunk-24TFSB6Z.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
Object.defineProperty(exports, "checkEvalStorageFields", {
|
|
8
8
|
enumerable: true,
|
|
9
|
-
get: function () { return
|
|
9
|
+
get: function () { return chunk24TFSB6Z_cjs.checkEvalStorageFields; }
|
|
10
10
|
});
|
|
11
11
|
Object.defineProperty(exports, "createMastraProxy", {
|
|
12
12
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
13
|
+
get: function () { return chunk24TFSB6Z_cjs.createMastraProxy; }
|
|
14
14
|
});
|
|
15
15
|
Object.defineProperty(exports, "deepMerge", {
|
|
16
16
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunk24TFSB6Z_cjs.deepMerge; }
|
|
18
18
|
});
|
|
19
19
|
Object.defineProperty(exports, "delay", {
|
|
20
20
|
enumerable: true,
|
|
21
|
-
get: function () { return
|
|
21
|
+
get: function () { return chunk24TFSB6Z_cjs.delay; }
|
|
22
22
|
});
|
|
23
23
|
Object.defineProperty(exports, "ensureToolProperties", {
|
|
24
24
|
enumerable: true,
|
|
25
|
-
get: function () { return
|
|
25
|
+
get: function () { return chunk24TFSB6Z_cjs.ensureToolProperties; }
|
|
26
|
+
});
|
|
27
|
+
Object.defineProperty(exports, "fetchWithRetry", {
|
|
28
|
+
enumerable: true,
|
|
29
|
+
get: function () { return chunk24TFSB6Z_cjs.fetchWithRetry; }
|
|
26
30
|
});
|
|
27
31
|
Object.defineProperty(exports, "generateEmptyFromSchema", {
|
|
28
32
|
enumerable: true,
|
|
29
|
-
get: function () { return
|
|
33
|
+
get: function () { return chunk24TFSB6Z_cjs.generateEmptyFromSchema; }
|
|
30
34
|
});
|
|
31
35
|
Object.defineProperty(exports, "isCoreMessage", {
|
|
32
36
|
enumerable: true,
|
|
33
|
-
get: function () { return
|
|
37
|
+
get: function () { return chunk24TFSB6Z_cjs.isCoreMessage; }
|
|
34
38
|
});
|
|
35
39
|
Object.defineProperty(exports, "isUiMessage", {
|
|
36
40
|
enumerable: true,
|
|
37
|
-
get: function () { return
|
|
41
|
+
get: function () { return chunk24TFSB6Z_cjs.isUiMessage; }
|
|
38
42
|
});
|
|
39
43
|
Object.defineProperty(exports, "isZodType", {
|
|
40
44
|
enumerable: true,
|
|
41
|
-
get: function () { return
|
|
45
|
+
get: function () { return chunk24TFSB6Z_cjs.isZodType; }
|
|
42
46
|
});
|
|
43
47
|
Object.defineProperty(exports, "makeCoreTool", {
|
|
44
48
|
enumerable: true,
|
|
45
|
-
get: function () { return
|
|
49
|
+
get: function () { return chunk24TFSB6Z_cjs.makeCoreTool; }
|
|
46
50
|
});
|
|
47
51
|
Object.defineProperty(exports, "makeCoreToolV5", {
|
|
48
52
|
enumerable: true,
|
|
49
|
-
get: function () { return
|
|
53
|
+
get: function () { return chunk24TFSB6Z_cjs.makeCoreToolV5; }
|
|
50
54
|
});
|
|
51
55
|
Object.defineProperty(exports, "maskStreamTags", {
|
|
52
56
|
enumerable: true,
|
|
53
|
-
get: function () { return
|
|
57
|
+
get: function () { return chunk24TFSB6Z_cjs.maskStreamTags; }
|
|
54
58
|
});
|
|
55
59
|
Object.defineProperty(exports, "parseFieldKey", {
|
|
56
60
|
enumerable: true,
|
|
57
|
-
get: function () { return
|
|
61
|
+
get: function () { return chunk24TFSB6Z_cjs.parseFieldKey; }
|
|
58
62
|
});
|
|
59
63
|
Object.defineProperty(exports, "parseSqlIdentifier", {
|
|
60
64
|
enumerable: true,
|
|
61
|
-
get: function () { return
|
|
65
|
+
get: function () { return chunk24TFSB6Z_cjs.parseSqlIdentifier; }
|
|
62
66
|
});
|
|
63
67
|
Object.defineProperty(exports, "resolveSerializedZodOutput", {
|
|
64
68
|
enumerable: true,
|
|
65
|
-
get: function () { return
|
|
69
|
+
get: function () { return chunk24TFSB6Z_cjs.resolveSerializedZodOutput; }
|
|
66
70
|
});
|
|
67
71
|
//# sourceMappingURL=utils.cjs.map
|
|
68
72
|
//# sourceMappingURL=utils.cjs.map
|