@mastra/core 1.5.0 → 1.6.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 +386 -0
- package/dist/agent/index.cjs +13 -13
- package/dist/agent/index.js +2 -2
- package/dist/agent/message-list/adapters/AIV5Adapter.d.ts.map +1 -1
- package/dist/agent/message-list/conversion/output-converter.d.ts.map +1 -1
- package/dist/agent/message-list/index.cjs +18 -18
- package/dist/agent/message-list/index.js +1 -1
- package/dist/agent/workflows/prepare-stream/index.d.ts +7 -7
- package/dist/agent/workflows/prepare-stream/prepare-memory-step.d.ts +7 -7
- package/dist/agent/workflows/prepare-stream/schema.d.ts +11 -11
- package/dist/{chunk-CQ4Z6ZAV.cjs → chunk-3U3XFMGJ.cjs} +7 -7
- package/dist/{chunk-CQ4Z6ZAV.cjs.map → chunk-3U3XFMGJ.cjs.map} +1 -1
- package/dist/{chunk-D57U4II4.js → chunk-4WG5K4CK.js} +9 -8
- package/dist/chunk-4WG5K4CK.js.map +1 -0
- package/dist/{chunk-UZFGMMKU.js → chunk-5K45E5VE.js} +37 -3
- package/dist/chunk-5K45E5VE.js.map +1 -0
- package/dist/{chunk-OQ5LZ6OV.cjs → chunk-5VQPSWPG.cjs} +149 -61
- package/dist/chunk-5VQPSWPG.cjs.map +1 -0
- package/dist/{chunk-AIRMLZ43.js → chunk-7EXW4AAG.js} +4 -4
- package/dist/{chunk-AIRMLZ43.js.map → chunk-7EXW4AAG.js.map} +1 -1
- package/dist/{chunk-S4VVZI4E.cjs → chunk-AYHSPIT6.cjs} +326 -5
- package/dist/chunk-AYHSPIT6.cjs.map +1 -0
- package/dist/{chunk-YW54RH77.cjs → chunk-DB7U2C5B.cjs} +12 -5
- package/dist/chunk-DB7U2C5B.cjs.map +1 -0
- package/dist/{chunk-DST75PA4.js → chunk-DGS2KGDI.js} +4 -4
- package/dist/{chunk-DST75PA4.js.map → chunk-DGS2KGDI.js.map} +1 -1
- package/dist/{chunk-YIN5F7VO.js → chunk-EEU5NHHU.js} +4254 -3958
- package/dist/chunk-EEU5NHHU.js.map +1 -0
- package/dist/{chunk-A6EWCOGA.cjs → chunk-H5S4PS44.cjs} +197 -27
- package/dist/chunk-H5S4PS44.cjs.map +1 -0
- package/dist/{chunk-3YMDR4OL.cjs → chunk-HTAUP7ER.cjs} +4 -4
- package/dist/{chunk-3YMDR4OL.cjs.map → chunk-HTAUP7ER.cjs.map} +1 -1
- package/dist/{chunk-OHLVZVIK.js → chunk-IC5OUWKJ.js} +12 -5
- package/dist/chunk-IC5OUWKJ.js.map +1 -0
- package/dist/{chunk-MZIMV2BB.js → chunk-IHDE4CJV.js} +244 -213
- package/dist/chunk-IHDE4CJV.js.map +1 -0
- package/dist/{chunk-3KJW4EMO.js → chunk-IHEYJDJP.js} +3 -3
- package/dist/{chunk-3KJW4EMO.js.map → chunk-IHEYJDJP.js.map} +1 -1
- package/dist/{chunk-CXVMDV2B.js → chunk-IOY7Y5GV.js} +197 -27
- package/dist/chunk-IOY7Y5GV.js.map +1 -0
- package/dist/{chunk-MDC6VYA6.cjs → chunk-KAVAKMOQ.cjs} +4 -8
- package/dist/chunk-KAVAKMOQ.cjs.map +1 -0
- package/dist/{chunk-7WC7ALDW.cjs → chunk-LNKS4TJ6.cjs} +6 -6
- package/dist/{chunk-7WC7ALDW.cjs.map → chunk-LNKS4TJ6.cjs.map} +1 -1
- package/dist/{chunk-R3364RAL.js → chunk-MWGGSA5Q.js} +4 -4
- package/dist/{chunk-R3364RAL.js.map → chunk-MWGGSA5Q.js.map} +1 -1
- package/dist/{chunk-QSN5KQXZ.cjs → chunk-O7PZ4VOO.cjs} +11 -11
- package/dist/{chunk-QSN5KQXZ.cjs.map → chunk-O7PZ4VOO.cjs.map} +1 -1
- package/dist/chunk-OQDRPRKM.cjs +46 -0
- package/dist/chunk-OQDRPRKM.cjs.map +1 -0
- package/dist/{chunk-YV2YGQRY.js → chunk-RHKNKJNM.js} +101 -13
- package/dist/chunk-RHKNKJNM.js.map +1 -0
- package/dist/{chunk-TPDMP7OD.js → chunk-RHYZ6CQN.js} +4 -8
- package/dist/chunk-RHYZ6CQN.js.map +1 -0
- package/dist/{chunk-G5JVVFIG.cjs → chunk-RZNHRIM7.cjs} +9 -9
- package/dist/{chunk-G5JVVFIG.cjs.map → chunk-RZNHRIM7.cjs.map} +1 -1
- package/dist/{chunk-JZ6TH4HQ.cjs → chunk-TL2TTA4X.cjs} +4260 -3962
- package/dist/chunk-TL2TTA4X.cjs.map +1 -0
- package/dist/{chunk-KNXZ7KYL.cjs → chunk-TVPANHLE.cjs} +40 -2
- package/dist/chunk-TVPANHLE.cjs.map +1 -0
- package/dist/{chunk-7S6LA43E.cjs → chunk-VJWRJWSC.cjs} +278 -248
- package/dist/chunk-VJWRJWSC.cjs.map +1 -0
- package/dist/chunk-X2HAI3OX.js +39 -0
- package/dist/chunk-X2HAI3OX.js.map +1 -0
- package/dist/{chunk-FZ5DRHKE.js → chunk-XB3DA67Q.js} +325 -5
- package/dist/chunk-XB3DA67Q.js.map +1 -0
- package/dist/{chunk-NUV3BLRH.cjs → chunk-XWZAKKFT.cjs} +17 -16
- package/dist/chunk-XWZAKKFT.cjs.map +1 -0
- package/dist/{chunk-4GB2GS4S.js → chunk-YM6245EM.js} +5 -5
- package/dist/{chunk-4GB2GS4S.js.map → chunk-YM6245EM.js.map} +1 -1
- package/dist/datasets/index.cjs +17 -17
- package/dist/datasets/index.js +2 -2
- package/dist/docs/SKILL.md +2 -1
- package/dist/docs/assets/SOURCE_MAP.json +417 -391
- package/dist/docs/references/docs-memory-observational-memory.md +2 -0
- package/dist/docs/references/docs-streaming-tool-streaming.md +6 -0
- package/dist/docs/references/docs-workspace-filesystem.md +21 -1
- package/dist/docs/references/reference-harness-harness-class.md +645 -0
- package/dist/docs/references/reference-memory-memory-class.md +1 -1
- package/dist/docs/references/reference-memory-observational-memory.md +1 -0
- package/dist/docs/references/reference-workspace-local-filesystem.md +25 -0
- package/dist/docs/references/reference-workspace-workspace-class.md +1 -24
- package/dist/docs/references/reference.md +1 -0
- package/dist/editor/types.d.ts +20 -1
- package/dist/editor/types.d.ts.map +1 -1
- package/dist/evals/base.d.ts.map +1 -1
- package/dist/evals/index.cjs +20 -20
- package/dist/evals/index.js +3 -3
- package/dist/evals/scoreTraces/index.cjs +5 -5
- package/dist/evals/scoreTraces/index.js +2 -2
- package/dist/events/index.cjs +6 -2
- package/dist/events/index.d.ts +1 -0
- package/dist/events/index.d.ts.map +1 -1
- package/dist/events/index.js +1 -1
- package/dist/harness/harness.d.ts +105 -35
- package/dist/harness/harness.d.ts.map +1 -1
- package/dist/harness/index.cjs +472 -64
- package/dist/harness/index.cjs.map +1 -1
- package/dist/harness/index.d.ts +2 -1
- package/dist/harness/index.d.ts.map +1 -1
- package/dist/harness/index.js +468 -62
- package/dist/harness/index.js.map +1 -1
- package/dist/harness/tools.d.ts +38 -0
- package/dist/harness/tools.d.ts.map +1 -1
- package/dist/harness/types.d.ts +64 -9
- package/dist/harness/types.d.ts.map +1 -1
- package/dist/index.cjs +2 -2
- package/dist/index.js +1 -1
- package/dist/llm/index.cjs +12 -12
- package/dist/llm/index.js +3 -3
- package/dist/llm/model/gateways/models-dev.d.ts.map +1 -1
- package/dist/loop/index.cjs +12 -12
- package/dist/loop/index.js +1 -1
- package/dist/loop/network/index.d.ts +6 -6
- package/dist/loop/network/index.d.ts.map +1 -1
- package/dist/loop/test-utils/options.d.ts.map +1 -1
- package/dist/loop/workflows/agentic-execution/index.d.ts +21 -21
- package/dist/loop/workflows/agentic-execution/llm-execution-step.d.ts +14 -14
- package/dist/loop/workflows/agentic-execution/llm-execution-step.d.ts.map +1 -1
- package/dist/loop/workflows/agentic-execution/llm-mapping-step.d.ts +7 -7
- package/dist/loop/workflows/agentic-execution/llm-mapping-step.d.ts.map +1 -1
- package/dist/loop/workflows/agentic-execution/tool-call-step.d.ts.map +1 -1
- package/dist/loop/workflows/agentic-loop/index.d.ts +21 -21
- package/dist/loop/workflows/agentic-loop/index.d.ts.map +1 -1
- package/dist/loop/workflows/schema.d.ts +30 -30
- package/dist/loop/workflows/stream.d.ts +0 -13
- package/dist/loop/workflows/stream.d.ts.map +1 -1
- package/dist/mastra/index.cjs +2 -2
- package/dist/mastra/index.js +1 -1
- package/dist/memory/index.cjs +14 -14
- package/dist/memory/index.js +1 -1
- package/dist/models-dev-6P4CM74H.js +3 -0
- package/dist/{models-dev-MDI5E2YA.js.map → models-dev-6P4CM74H.js.map} +1 -1
- package/dist/models-dev-CLLSNT5L.cjs +12 -0
- package/dist/{models-dev-BW2GAM3K.cjs.map → models-dev-CLLSNT5L.cjs.map} +1 -1
- package/dist/processor-provider/index.cjs +256 -0
- package/dist/processor-provider/index.cjs.map +1 -0
- package/dist/processor-provider/index.d.ts +5 -0
- package/dist/processor-provider/index.d.ts.map +1 -0
- package/dist/processor-provider/index.js +243 -0
- package/dist/processor-provider/index.js.map +1 -0
- package/dist/processor-provider/phase-filtered-processor.d.ts +22 -0
- package/dist/processor-provider/phase-filtered-processor.d.ts.map +1 -0
- package/dist/processor-provider/providers/index.d.ts +12 -0
- package/dist/processor-provider/providers/index.d.ts.map +1 -0
- package/dist/processor-provider/types.d.ts +65 -0
- package/dist/processor-provider/types.d.ts.map +1 -0
- package/dist/processors/index.cjs +41 -41
- package/dist/processors/index.js +1 -1
- package/dist/processors/memory/message-history.d.ts.map +1 -1
- package/dist/processors/step-schema.d.ts +14 -14
- package/dist/provider-registry-HMTFO5FV.cjs +40 -0
- package/dist/{provider-registry-4PH2JPIA.cjs.map → provider-registry-HMTFO5FV.cjs.map} +1 -1
- package/dist/provider-registry-TTZ2WN2P.js +3 -0
- package/dist/{provider-registry-VEJ3PN4S.js.map → provider-registry-TTZ2WN2P.js.map} +1 -1
- package/dist/relevance/index.cjs +3 -3
- package/dist/relevance/index.js +1 -1
- package/dist/storage/base.d.ts +2 -1
- package/dist/storage/base.d.ts.map +1 -1
- package/dist/storage/constants.cjs +68 -52
- package/dist/storage/constants.d.ts +6 -2
- package/dist/storage/constants.d.ts.map +1 -1
- package/dist/storage/constants.js +1 -1
- package/dist/storage/domains/index.d.ts +1 -0
- package/dist/storage/domains/index.d.ts.map +1 -1
- package/dist/storage/domains/inmemory-db.d.ts +4 -1
- package/dist/storage/domains/inmemory-db.d.ts.map +1 -1
- package/dist/storage/domains/mcp-servers/base.d.ts +47 -0
- package/dist/storage/domains/mcp-servers/base.d.ts.map +1 -0
- package/dist/storage/domains/mcp-servers/index.d.ts +3 -0
- package/dist/storage/domains/mcp-servers/index.d.ts.map +1 -0
- package/dist/storage/domains/mcp-servers/inmemory.d.ts +31 -0
- package/dist/storage/domains/mcp-servers/inmemory.d.ts.map +1 -0
- package/dist/storage/domains/memory/inmemory.d.ts.map +1 -1
- package/dist/storage/domains/observability/types.d.ts +44 -44
- package/dist/storage/domains/operations/inmemory.d.ts.map +1 -1
- package/dist/storage/index.cjs +178 -154
- package/dist/storage/index.js +2 -2
- package/dist/storage/mock.d.ts.map +1 -1
- package/dist/storage/types.d.ts +220 -6
- package/dist/storage/types.d.ts.map +1 -1
- package/dist/stream/MastraAgentNetworkStream.d.ts +1 -1
- package/dist/stream/MastraWorkflowStream.d.ts +1 -1
- package/dist/stream/aisdk/v5/input.d.ts.map +1 -1
- package/dist/stream/base/input.d.ts +19 -0
- package/dist/stream/base/input.d.ts.map +1 -1
- package/dist/stream/base/output.d.ts.map +1 -1
- package/dist/stream/index.cjs +11 -11
- package/dist/stream/index.js +2 -2
- package/dist/tool-loop-agent/index.cjs +4 -4
- package/dist/tool-loop-agent/index.js +1 -1
- package/dist/vector/index.cjs +9 -9
- package/dist/vector/index.js +2 -2
- package/dist/workflows/evented/execution-engine.d.ts.map +1 -1
- package/dist/workflows/evented/index.cjs +10 -10
- package/dist/workflows/evented/index.js +1 -1
- package/dist/workflows/evented/step-executor.d.ts.map +1 -1
- package/dist/workflows/evented/workflow-event-processor/index.d.ts.map +1 -1
- package/dist/workflows/index.cjs +25 -25
- package/dist/workflows/index.js +1 -1
- package/dist/workflows/step.d.ts.map +1 -1
- package/dist/workspace/constants/index.d.ts +1 -0
- package/dist/workspace/constants/index.d.ts.map +1 -1
- package/dist/workspace/index.cjs +64 -64
- package/dist/workspace/index.js +1 -1
- package/dist/workspace/tools/ast-edit.d.ts +97 -0
- package/dist/workspace/tools/ast-edit.d.ts.map +1 -0
- package/dist/workspace/tools/search.d.ts +1 -1
- package/dist/workspace/tools/tools.d.ts.map +1 -1
- package/package.json +12 -11
- package/processor-provider.d.ts +1 -0
- package/dist/chunk-4D4KB75Y.cjs +0 -9
- package/dist/chunk-4D4KB75Y.cjs.map +0 -1
- package/dist/chunk-7S6LA43E.cjs.map +0 -1
- package/dist/chunk-A6EWCOGA.cjs.map +0 -1
- package/dist/chunk-BVUMKER5.js +0 -7
- package/dist/chunk-BVUMKER5.js.map +0 -1
- package/dist/chunk-CXVMDV2B.js.map +0 -1
- package/dist/chunk-D57U4II4.js.map +0 -1
- package/dist/chunk-FZ5DRHKE.js.map +0 -1
- package/dist/chunk-JZ6TH4HQ.cjs.map +0 -1
- package/dist/chunk-KNXZ7KYL.cjs.map +0 -1
- package/dist/chunk-MDC6VYA6.cjs.map +0 -1
- package/dist/chunk-MZIMV2BB.js.map +0 -1
- package/dist/chunk-NUV3BLRH.cjs.map +0 -1
- package/dist/chunk-OHLVZVIK.js.map +0 -1
- package/dist/chunk-OQ5LZ6OV.cjs.map +0 -1
- package/dist/chunk-S4VVZI4E.cjs.map +0 -1
- package/dist/chunk-TPDMP7OD.js.map +0 -1
- package/dist/chunk-UZFGMMKU.js.map +0 -1
- package/dist/chunk-YIN5F7VO.js.map +0 -1
- package/dist/chunk-YV2YGQRY.js.map +0 -1
- package/dist/chunk-YW54RH77.cjs.map +0 -1
- package/dist/models-dev-BW2GAM3K.cjs +0 -12
- package/dist/models-dev-MDI5E2YA.js +0 -3
- package/dist/provider-registry-4PH2JPIA.cjs +0 -40
- package/dist/provider-registry-VEJ3PN4S.js +0 -3
package/dist/workspace/index.cjs
CHANGED
|
@@ -1,260 +1,260 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkAYHSPIT6_cjs = require('../chunk-AYHSPIT6.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
Object.defineProperty(exports, "CompositeFilesystem", {
|
|
8
8
|
enumerable: true,
|
|
9
|
-
get: function () { return
|
|
9
|
+
get: function () { return chunkAYHSPIT6_cjs.CompositeFilesystem; }
|
|
10
10
|
});
|
|
11
11
|
Object.defineProperty(exports, "CompositeVersionedSkillSource", {
|
|
12
12
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
13
|
+
get: function () { return chunkAYHSPIT6_cjs.CompositeVersionedSkillSource; }
|
|
14
14
|
});
|
|
15
15
|
Object.defineProperty(exports, "DirectoryNotEmptyError", {
|
|
16
16
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunkAYHSPIT6_cjs.DirectoryNotEmptyError; }
|
|
18
18
|
});
|
|
19
19
|
Object.defineProperty(exports, "DirectoryNotFoundError", {
|
|
20
20
|
enumerable: true,
|
|
21
|
-
get: function () { return
|
|
21
|
+
get: function () { return chunkAYHSPIT6_cjs.DirectoryNotFoundError; }
|
|
22
22
|
});
|
|
23
23
|
Object.defineProperty(exports, "FileExistsError", {
|
|
24
24
|
enumerable: true,
|
|
25
|
-
get: function () { return
|
|
25
|
+
get: function () { return chunkAYHSPIT6_cjs.FileExistsError; }
|
|
26
26
|
});
|
|
27
27
|
Object.defineProperty(exports, "FileNotFoundError", {
|
|
28
28
|
enumerable: true,
|
|
29
|
-
get: function () { return
|
|
29
|
+
get: function () { return chunkAYHSPIT6_cjs.FileNotFoundError; }
|
|
30
30
|
});
|
|
31
31
|
Object.defineProperty(exports, "FileReadRequiredError", {
|
|
32
32
|
enumerable: true,
|
|
33
|
-
get: function () { return
|
|
33
|
+
get: function () { return chunkAYHSPIT6_cjs.FileReadRequiredError; }
|
|
34
34
|
});
|
|
35
35
|
Object.defineProperty(exports, "FilesystemError", {
|
|
36
36
|
enumerable: true,
|
|
37
|
-
get: function () { return
|
|
37
|
+
get: function () { return chunkAYHSPIT6_cjs.FilesystemError; }
|
|
38
38
|
});
|
|
39
39
|
Object.defineProperty(exports, "FilesystemNotAvailableError", {
|
|
40
40
|
enumerable: true,
|
|
41
|
-
get: function () { return
|
|
41
|
+
get: function () { return chunkAYHSPIT6_cjs.FilesystemNotAvailableError; }
|
|
42
42
|
});
|
|
43
43
|
Object.defineProperty(exports, "FilesystemNotMountableError", {
|
|
44
44
|
enumerable: true,
|
|
45
|
-
get: function () { return
|
|
45
|
+
get: function () { return chunkAYHSPIT6_cjs.FilesystemNotMountableError; }
|
|
46
46
|
});
|
|
47
47
|
Object.defineProperty(exports, "FilesystemNotReadyError", {
|
|
48
48
|
enumerable: true,
|
|
49
|
-
get: function () { return
|
|
49
|
+
get: function () { return chunkAYHSPIT6_cjs.FilesystemNotReadyError; }
|
|
50
50
|
});
|
|
51
51
|
Object.defineProperty(exports, "IsDirectoryError", {
|
|
52
52
|
enumerable: true,
|
|
53
|
-
get: function () { return
|
|
53
|
+
get: function () { return chunkAYHSPIT6_cjs.IsDirectoryError; }
|
|
54
54
|
});
|
|
55
55
|
Object.defineProperty(exports, "IsolationUnavailableError", {
|
|
56
56
|
enumerable: true,
|
|
57
|
-
get: function () { return
|
|
57
|
+
get: function () { return chunkAYHSPIT6_cjs.IsolationUnavailableError; }
|
|
58
58
|
});
|
|
59
59
|
Object.defineProperty(exports, "LocalFilesystem", {
|
|
60
60
|
enumerable: true,
|
|
61
|
-
get: function () { return
|
|
61
|
+
get: function () { return chunkAYHSPIT6_cjs.LocalFilesystem; }
|
|
62
62
|
});
|
|
63
63
|
Object.defineProperty(exports, "LocalSandbox", {
|
|
64
64
|
enumerable: true,
|
|
65
|
-
get: function () { return
|
|
65
|
+
get: function () { return chunkAYHSPIT6_cjs.LocalSandbox; }
|
|
66
66
|
});
|
|
67
67
|
Object.defineProperty(exports, "LocalSkillSource", {
|
|
68
68
|
enumerable: true,
|
|
69
|
-
get: function () { return
|
|
69
|
+
get: function () { return chunkAYHSPIT6_cjs.LocalSkillSource; }
|
|
70
70
|
});
|
|
71
71
|
Object.defineProperty(exports, "MastraFilesystem", {
|
|
72
72
|
enumerable: true,
|
|
73
|
-
get: function () { return
|
|
73
|
+
get: function () { return chunkAYHSPIT6_cjs.MastraFilesystem; }
|
|
74
74
|
});
|
|
75
75
|
Object.defineProperty(exports, "MastraSandbox", {
|
|
76
76
|
enumerable: true,
|
|
77
|
-
get: function () { return
|
|
77
|
+
get: function () { return chunkAYHSPIT6_cjs.MastraSandbox; }
|
|
78
78
|
});
|
|
79
79
|
Object.defineProperty(exports, "MountError", {
|
|
80
80
|
enumerable: true,
|
|
81
|
-
get: function () { return
|
|
81
|
+
get: function () { return chunkAYHSPIT6_cjs.MountError; }
|
|
82
82
|
});
|
|
83
83
|
Object.defineProperty(exports, "MountManager", {
|
|
84
84
|
enumerable: true,
|
|
85
|
-
get: function () { return
|
|
85
|
+
get: function () { return chunkAYHSPIT6_cjs.MountManager; }
|
|
86
86
|
});
|
|
87
87
|
Object.defineProperty(exports, "MountNotSupportedError", {
|
|
88
88
|
enumerable: true,
|
|
89
|
-
get: function () { return
|
|
89
|
+
get: function () { return chunkAYHSPIT6_cjs.MountNotSupportedError; }
|
|
90
90
|
});
|
|
91
91
|
Object.defineProperty(exports, "NotDirectoryError", {
|
|
92
92
|
enumerable: true,
|
|
93
|
-
get: function () { return
|
|
93
|
+
get: function () { return chunkAYHSPIT6_cjs.NotDirectoryError; }
|
|
94
94
|
});
|
|
95
95
|
Object.defineProperty(exports, "PermissionError", {
|
|
96
96
|
enumerable: true,
|
|
97
|
-
get: function () { return
|
|
97
|
+
get: function () { return chunkAYHSPIT6_cjs.PermissionError; }
|
|
98
98
|
});
|
|
99
99
|
Object.defineProperty(exports, "SandboxError", {
|
|
100
100
|
enumerable: true,
|
|
101
|
-
get: function () { return
|
|
101
|
+
get: function () { return chunkAYHSPIT6_cjs.SandboxError; }
|
|
102
102
|
});
|
|
103
103
|
Object.defineProperty(exports, "SandboxExecutionError", {
|
|
104
104
|
enumerable: true,
|
|
105
|
-
get: function () { return
|
|
105
|
+
get: function () { return chunkAYHSPIT6_cjs.SandboxExecutionError; }
|
|
106
106
|
});
|
|
107
107
|
Object.defineProperty(exports, "SandboxFeatureNotSupportedError", {
|
|
108
108
|
enumerable: true,
|
|
109
|
-
get: function () { return
|
|
109
|
+
get: function () { return chunkAYHSPIT6_cjs.SandboxFeatureNotSupportedError; }
|
|
110
110
|
});
|
|
111
111
|
Object.defineProperty(exports, "SandboxNotAvailableError", {
|
|
112
112
|
enumerable: true,
|
|
113
|
-
get: function () { return
|
|
113
|
+
get: function () { return chunkAYHSPIT6_cjs.SandboxNotAvailableError; }
|
|
114
114
|
});
|
|
115
115
|
Object.defineProperty(exports, "SandboxNotReadyError", {
|
|
116
116
|
enumerable: true,
|
|
117
|
-
get: function () { return
|
|
117
|
+
get: function () { return chunkAYHSPIT6_cjs.SandboxNotReadyError; }
|
|
118
118
|
});
|
|
119
119
|
Object.defineProperty(exports, "SandboxTimeoutError", {
|
|
120
120
|
enumerable: true,
|
|
121
|
-
get: function () { return
|
|
121
|
+
get: function () { return chunkAYHSPIT6_cjs.SandboxTimeoutError; }
|
|
122
122
|
});
|
|
123
123
|
Object.defineProperty(exports, "SearchNotAvailableError", {
|
|
124
124
|
enumerable: true,
|
|
125
|
-
get: function () { return
|
|
125
|
+
get: function () { return chunkAYHSPIT6_cjs.SearchNotAvailableError; }
|
|
126
126
|
});
|
|
127
127
|
Object.defineProperty(exports, "VersionedSkillSource", {
|
|
128
128
|
enumerable: true,
|
|
129
|
-
get: function () { return
|
|
129
|
+
get: function () { return chunkAYHSPIT6_cjs.VersionedSkillSource; }
|
|
130
130
|
});
|
|
131
131
|
Object.defineProperty(exports, "WORKSPACE_TOOLS", {
|
|
132
132
|
enumerable: true,
|
|
133
|
-
get: function () { return
|
|
133
|
+
get: function () { return chunkAYHSPIT6_cjs.WORKSPACE_TOOLS; }
|
|
134
134
|
});
|
|
135
135
|
Object.defineProperty(exports, "WORKSPACE_TOOLS_PREFIX", {
|
|
136
136
|
enumerable: true,
|
|
137
|
-
get: function () { return
|
|
137
|
+
get: function () { return chunkAYHSPIT6_cjs.WORKSPACE_TOOLS_PREFIX; }
|
|
138
138
|
});
|
|
139
139
|
Object.defineProperty(exports, "Workspace", {
|
|
140
140
|
enumerable: true,
|
|
141
|
-
get: function () { return
|
|
141
|
+
get: function () { return chunkAYHSPIT6_cjs.Workspace; }
|
|
142
142
|
});
|
|
143
143
|
Object.defineProperty(exports, "WorkspaceError", {
|
|
144
144
|
enumerable: true,
|
|
145
|
-
get: function () { return
|
|
145
|
+
get: function () { return chunkAYHSPIT6_cjs.WorkspaceError; }
|
|
146
146
|
});
|
|
147
147
|
Object.defineProperty(exports, "WorkspaceNotAvailableError", {
|
|
148
148
|
enumerable: true,
|
|
149
|
-
get: function () { return
|
|
149
|
+
get: function () { return chunkAYHSPIT6_cjs.WorkspaceNotAvailableError; }
|
|
150
150
|
});
|
|
151
151
|
Object.defineProperty(exports, "WorkspaceNotReadyError", {
|
|
152
152
|
enumerable: true,
|
|
153
|
-
get: function () { return
|
|
153
|
+
get: function () { return chunkAYHSPIT6_cjs.WorkspaceNotReadyError; }
|
|
154
154
|
});
|
|
155
155
|
Object.defineProperty(exports, "WorkspaceReadOnlyError", {
|
|
156
156
|
enumerable: true,
|
|
157
|
-
get: function () { return
|
|
157
|
+
get: function () { return chunkAYHSPIT6_cjs.WorkspaceReadOnlyError; }
|
|
158
158
|
});
|
|
159
159
|
Object.defineProperty(exports, "callLifecycle", {
|
|
160
160
|
enumerable: true,
|
|
161
|
-
get: function () { return
|
|
161
|
+
get: function () { return chunkAYHSPIT6_cjs.callLifecycle; }
|
|
162
162
|
});
|
|
163
163
|
Object.defineProperty(exports, "collectSkillForPublish", {
|
|
164
164
|
enumerable: true,
|
|
165
|
-
get: function () { return
|
|
165
|
+
get: function () { return chunkAYHSPIT6_cjs.collectSkillForPublish; }
|
|
166
166
|
});
|
|
167
167
|
Object.defineProperty(exports, "createGlobMatcher", {
|
|
168
168
|
enumerable: true,
|
|
169
|
-
get: function () { return
|
|
169
|
+
get: function () { return chunkAYHSPIT6_cjs.createGlobMatcher; }
|
|
170
170
|
});
|
|
171
171
|
Object.defineProperty(exports, "createWorkspaceTools", {
|
|
172
172
|
enumerable: true,
|
|
173
|
-
get: function () { return
|
|
173
|
+
get: function () { return chunkAYHSPIT6_cjs.createWorkspaceTools; }
|
|
174
174
|
});
|
|
175
175
|
Object.defineProperty(exports, "deleteFileTool", {
|
|
176
176
|
enumerable: true,
|
|
177
|
-
get: function () { return
|
|
177
|
+
get: function () { return chunkAYHSPIT6_cjs.deleteFileTool; }
|
|
178
178
|
});
|
|
179
179
|
Object.defineProperty(exports, "detectIsolation", {
|
|
180
180
|
enumerable: true,
|
|
181
|
-
get: function () { return
|
|
181
|
+
get: function () { return chunkAYHSPIT6_cjs.detectIsolation; }
|
|
182
182
|
});
|
|
183
183
|
Object.defineProperty(exports, "editFileTool", {
|
|
184
184
|
enumerable: true,
|
|
185
|
-
get: function () { return
|
|
185
|
+
get: function () { return chunkAYHSPIT6_cjs.editFileTool; }
|
|
186
186
|
});
|
|
187
187
|
Object.defineProperty(exports, "executeCommandTool", {
|
|
188
188
|
enumerable: true,
|
|
189
|
-
get: function () { return
|
|
189
|
+
get: function () { return chunkAYHSPIT6_cjs.executeCommandTool; }
|
|
190
190
|
});
|
|
191
191
|
Object.defineProperty(exports, "extractGlobBase", {
|
|
192
192
|
enumerable: true,
|
|
193
|
-
get: function () { return
|
|
193
|
+
get: function () { return chunkAYHSPIT6_cjs.extractGlobBase; }
|
|
194
194
|
});
|
|
195
195
|
Object.defineProperty(exports, "fileStatTool", {
|
|
196
196
|
enumerable: true,
|
|
197
|
-
get: function () { return
|
|
197
|
+
get: function () { return chunkAYHSPIT6_cjs.fileStatTool; }
|
|
198
198
|
});
|
|
199
199
|
Object.defineProperty(exports, "getRecommendedIsolation", {
|
|
200
200
|
enumerable: true,
|
|
201
|
-
get: function () { return
|
|
201
|
+
get: function () { return chunkAYHSPIT6_cjs.getRecommendedIsolation; }
|
|
202
202
|
});
|
|
203
203
|
Object.defineProperty(exports, "indexContentTool", {
|
|
204
204
|
enumerable: true,
|
|
205
|
-
get: function () { return
|
|
205
|
+
get: function () { return chunkAYHSPIT6_cjs.indexContentTool; }
|
|
206
206
|
});
|
|
207
207
|
Object.defineProperty(exports, "isGlobPattern", {
|
|
208
208
|
enumerable: true,
|
|
209
|
-
get: function () { return
|
|
209
|
+
get: function () { return chunkAYHSPIT6_cjs.isGlobPattern; }
|
|
210
210
|
});
|
|
211
211
|
Object.defineProperty(exports, "isIsolationAvailable", {
|
|
212
212
|
enumerable: true,
|
|
213
|
-
get: function () { return
|
|
213
|
+
get: function () { return chunkAYHSPIT6_cjs.isIsolationAvailable; }
|
|
214
214
|
});
|
|
215
215
|
Object.defineProperty(exports, "listFilesTool", {
|
|
216
216
|
enumerable: true,
|
|
217
|
-
get: function () { return
|
|
217
|
+
get: function () { return chunkAYHSPIT6_cjs.listFilesTool; }
|
|
218
218
|
});
|
|
219
219
|
Object.defineProperty(exports, "matchGlob", {
|
|
220
220
|
enumerable: true,
|
|
221
|
-
get: function () { return
|
|
221
|
+
get: function () { return chunkAYHSPIT6_cjs.matchGlob; }
|
|
222
222
|
});
|
|
223
223
|
Object.defineProperty(exports, "mkdirTool", {
|
|
224
224
|
enumerable: true,
|
|
225
|
-
get: function () { return
|
|
225
|
+
get: function () { return chunkAYHSPIT6_cjs.mkdirTool; }
|
|
226
226
|
});
|
|
227
227
|
Object.defineProperty(exports, "publishSkillFromSource", {
|
|
228
228
|
enumerable: true,
|
|
229
|
-
get: function () { return
|
|
229
|
+
get: function () { return chunkAYHSPIT6_cjs.publishSkillFromSource; }
|
|
230
230
|
});
|
|
231
231
|
Object.defineProperty(exports, "readFileTool", {
|
|
232
232
|
enumerable: true,
|
|
233
|
-
get: function () { return
|
|
233
|
+
get: function () { return chunkAYHSPIT6_cjs.readFileTool; }
|
|
234
234
|
});
|
|
235
235
|
Object.defineProperty(exports, "requireFilesystem", {
|
|
236
236
|
enumerable: true,
|
|
237
|
-
get: function () { return
|
|
237
|
+
get: function () { return chunkAYHSPIT6_cjs.requireFilesystem; }
|
|
238
238
|
});
|
|
239
239
|
Object.defineProperty(exports, "requireSandbox", {
|
|
240
240
|
enumerable: true,
|
|
241
|
-
get: function () { return
|
|
241
|
+
get: function () { return chunkAYHSPIT6_cjs.requireSandbox; }
|
|
242
242
|
});
|
|
243
243
|
Object.defineProperty(exports, "requireWorkspace", {
|
|
244
244
|
enumerable: true,
|
|
245
|
-
get: function () { return
|
|
245
|
+
get: function () { return chunkAYHSPIT6_cjs.requireWorkspace; }
|
|
246
246
|
});
|
|
247
247
|
Object.defineProperty(exports, "resolveToolConfig", {
|
|
248
248
|
enumerable: true,
|
|
249
|
-
get: function () { return
|
|
249
|
+
get: function () { return chunkAYHSPIT6_cjs.resolveToolConfig; }
|
|
250
250
|
});
|
|
251
251
|
Object.defineProperty(exports, "searchTool", {
|
|
252
252
|
enumerable: true,
|
|
253
|
-
get: function () { return
|
|
253
|
+
get: function () { return chunkAYHSPIT6_cjs.searchTool; }
|
|
254
254
|
});
|
|
255
255
|
Object.defineProperty(exports, "writeFileTool", {
|
|
256
256
|
enumerable: true,
|
|
257
|
-
get: function () { return
|
|
257
|
+
get: function () { return chunkAYHSPIT6_cjs.writeFileTool; }
|
|
258
258
|
});
|
|
259
259
|
//# sourceMappingURL=index.cjs.map
|
|
260
260
|
//# sourceMappingURL=index.cjs.map
|
package/dist/workspace/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { CompositeFilesystem, CompositeVersionedSkillSource, DirectoryNotEmptyError, DirectoryNotFoundError, FileExistsError, FileNotFoundError, FileReadRequiredError, FilesystemError, FilesystemNotAvailableError, FilesystemNotMountableError, FilesystemNotReadyError, IsDirectoryError, IsolationUnavailableError, LocalFilesystem, LocalSandbox, LocalSkillSource, MastraFilesystem, MastraSandbox, MountError, MountManager, MountNotSupportedError, NotDirectoryError, PermissionError, SandboxError, SandboxExecutionError, SandboxFeatureNotSupportedError, SandboxNotAvailableError, SandboxNotReadyError, SandboxTimeoutError, SearchNotAvailableError, VersionedSkillSource, WORKSPACE_TOOLS, WORKSPACE_TOOLS_PREFIX, Workspace, WorkspaceError, WorkspaceNotAvailableError, WorkspaceNotReadyError, WorkspaceReadOnlyError, callLifecycle, collectSkillForPublish, createGlobMatcher, createWorkspaceTools, deleteFileTool, detectIsolation, editFileTool, executeCommandTool, extractGlobBase, fileStatTool, getRecommendedIsolation, indexContentTool, isGlobPattern, isIsolationAvailable, listFilesTool, matchGlob, mkdirTool, publishSkillFromSource, readFileTool, requireFilesystem, requireSandbox, requireWorkspace, resolveToolConfig, searchTool, writeFileTool } from '../chunk-
|
|
1
|
+
export { CompositeFilesystem, CompositeVersionedSkillSource, DirectoryNotEmptyError, DirectoryNotFoundError, FileExistsError, FileNotFoundError, FileReadRequiredError, FilesystemError, FilesystemNotAvailableError, FilesystemNotMountableError, FilesystemNotReadyError, IsDirectoryError, IsolationUnavailableError, LocalFilesystem, LocalSandbox, LocalSkillSource, MastraFilesystem, MastraSandbox, MountError, MountManager, MountNotSupportedError, NotDirectoryError, PermissionError, SandboxError, SandboxExecutionError, SandboxFeatureNotSupportedError, SandboxNotAvailableError, SandboxNotReadyError, SandboxTimeoutError, SearchNotAvailableError, VersionedSkillSource, WORKSPACE_TOOLS, WORKSPACE_TOOLS_PREFIX, Workspace, WorkspaceError, WorkspaceNotAvailableError, WorkspaceNotReadyError, WorkspaceReadOnlyError, callLifecycle, collectSkillForPublish, createGlobMatcher, createWorkspaceTools, deleteFileTool, detectIsolation, editFileTool, executeCommandTool, extractGlobBase, fileStatTool, getRecommendedIsolation, indexContentTool, isGlobPattern, isIsolationAvailable, listFilesTool, matchGlob, mkdirTool, publishSkillFromSource, readFileTool, requireFilesystem, requireSandbox, requireWorkspace, resolveToolConfig, searchTool, writeFileTool } from '../chunk-XB3DA67Q.js';
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
3
3
|
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* AST Edit Tool
|
|
3
|
+
*
|
|
4
|
+
* Provides AST-aware code transformations for workspace files.
|
|
5
|
+
* Uses @ast-grep/napi for syntax-aware pattern matching and transforms.
|
|
6
|
+
*
|
|
7
|
+
* Requires @ast-grep/napi as an optional peer dependency.
|
|
8
|
+
*/
|
|
9
|
+
interface TransformResult {
|
|
10
|
+
content: string;
|
|
11
|
+
count: number;
|
|
12
|
+
error?: string;
|
|
13
|
+
}
|
|
14
|
+
interface ImportSpec {
|
|
15
|
+
module: string;
|
|
16
|
+
names: string[];
|
|
17
|
+
isDefault?: boolean;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Minimal interface for an ast-grep SgNode.
|
|
21
|
+
* Avoids importing @ast-grep/napi types directly since it's an optional dep.
|
|
22
|
+
*/
|
|
23
|
+
interface SgNode {
|
|
24
|
+
text(): string;
|
|
25
|
+
range(): {
|
|
26
|
+
start: {
|
|
27
|
+
index: number;
|
|
28
|
+
};
|
|
29
|
+
end: {
|
|
30
|
+
index: number;
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
findAll(config: {
|
|
34
|
+
rule: Record<string, unknown>;
|
|
35
|
+
}): SgNode[];
|
|
36
|
+
getMatch(name: string): SgNode | null;
|
|
37
|
+
}
|
|
38
|
+
/** Minimal interface for the ast-grep Lang enum values. */
|
|
39
|
+
type LangValue = unknown;
|
|
40
|
+
/** The subset of @ast-grep/napi we use after dynamic import. */
|
|
41
|
+
interface AstGrepModule {
|
|
42
|
+
parse(lang: LangValue, content: string): {
|
|
43
|
+
root(): SgNode;
|
|
44
|
+
};
|
|
45
|
+
Lang: Record<string, LangValue>;
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* Try to load @ast-grep/napi. Returns null if not available.
|
|
49
|
+
* Uses dynamic import to avoid compile-time dependency.
|
|
50
|
+
* Concurrent callers share the same in-flight promise.
|
|
51
|
+
*/
|
|
52
|
+
export declare function loadAstGrep(): Promise<AstGrepModule | null>;
|
|
53
|
+
/**
|
|
54
|
+
* Check if @ast-grep/napi is available without importing it.
|
|
55
|
+
* Useful for deciding whether to create the tool at registration time.
|
|
56
|
+
*/
|
|
57
|
+
export declare function isAstGrepAvailable(): boolean;
|
|
58
|
+
/**
|
|
59
|
+
* Map file extension to ast-grep Lang enum.
|
|
60
|
+
*
|
|
61
|
+
* Only languages with built-in tree-sitter grammars in @ast-grep/napi are
|
|
62
|
+
* supported. Python, Go, Rust, etc. require separate @ast-grep/lang-* packages
|
|
63
|
+
* which are not currently integrated.
|
|
64
|
+
*/
|
|
65
|
+
export declare function getLanguageFromPath(filePath: string, Lang: Record<string, LangValue>): LangValue | null;
|
|
66
|
+
/**
|
|
67
|
+
* Add an import statement to the file.
|
|
68
|
+
* Inserts after the last existing import, or at the beginning if none exist.
|
|
69
|
+
* If the module is already imported, merges new names into it.
|
|
70
|
+
*/
|
|
71
|
+
export declare function addImport(content: string, root: SgNode, importSpec: ImportSpec): string;
|
|
72
|
+
/**
|
|
73
|
+
* Remove an import by module name.
|
|
74
|
+
* Matches against the import source string.
|
|
75
|
+
*/
|
|
76
|
+
export declare function removeImport(content: string, root: SgNode, targetName: string): string;
|
|
77
|
+
/**
|
|
78
|
+
* Pattern-based replacement using AST metavariables.
|
|
79
|
+
* Pattern uses $VARNAME placeholders that match any AST node.
|
|
80
|
+
* Replacement substitutes matched text back in.
|
|
81
|
+
*/
|
|
82
|
+
export declare function patternReplace(content: string, root: SgNode, pattern: string, replacement: string): TransformResult;
|
|
83
|
+
export declare const astEditTool: import("../../tools").Tool<{
|
|
84
|
+
path: string;
|
|
85
|
+
pattern?: string | undefined;
|
|
86
|
+
transform?: "add-import" | "remove-import" | "rename" | undefined;
|
|
87
|
+
replacement?: string | undefined;
|
|
88
|
+
targetName?: string | undefined;
|
|
89
|
+
newName?: string | undefined;
|
|
90
|
+
importSpec?: {
|
|
91
|
+
module: string;
|
|
92
|
+
names: string[];
|
|
93
|
+
isDefault?: boolean | undefined;
|
|
94
|
+
} | undefined;
|
|
95
|
+
}, string, unknown, unknown, import("../../tools").ToolExecutionContext<unknown, unknown, unknown>, "mastra_workspace_ast_edit", unknown>;
|
|
96
|
+
export {};
|
|
97
|
+
//# sourceMappingURL=ast-edit.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ast-edit.d.ts","sourceRoot":"","sources":["../../../src/workspace/tools/ast-edit.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAqBH,UAAU,eAAe;IACvB,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,UAAU,UAAU;IAClB,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAED;;;GAGG;AACH,UAAU,MAAM;IACd,IAAI,IAAI,MAAM,CAAC;IACf,KAAK,IAAI;QAAE,KAAK,EAAE;YAAE,KAAK,EAAE,MAAM,CAAA;SAAE,CAAC;QAAC,GAAG,EAAE;YAAE,KAAK,EAAE,MAAM,CAAA;SAAE,CAAA;KAAE,CAAC;IAC9D,OAAO,CAAC,MAAM,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;KAAE,GAAG,MAAM,EAAE,CAAC;IAC7D,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAAC;CACvC;AAED,2DAA2D;AAC3D,KAAK,SAAS,GAAG,OAAO,CAAC;AAEzB,gEAAgE;AAChE,UAAU,aAAa;IACrB,KAAK,CAAC,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,GAAG;QAAE,IAAI,IAAI,MAAM,CAAA;KAAE,CAAC;IAC5D,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,CAAC;CACjC;AAUD;;;;GAIG;AACH,wBAAsB,WAAW,IAAI,OAAO,CAAC,aAAa,GAAG,IAAI,CAAC,CAmBjE;AAED;;;GAGG;AACH,wBAAgB,kBAAkB,IAAI,OAAO,CAY5C;AAMD;;;;;;GAMG;AACH,wBAAgB,mBAAmB,CAAC,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,GAAG,SAAS,GAAG,IAAI,CAiBvG;AA+HD;;;;GAIG;AACH,wBAAgB,SAAS,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,UAAU,EAAE,UAAU,GAAG,MAAM,CAmCvF;AAED;;;GAGG;AACH,wBAAgB,YAAY,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,GAAG,MAAM,CAgBtF;AAED;;;;GAIG;AACH,wBAAgB,cAAc,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,GAAG,eAAe,CAyCnH;AAMD,eAAO,MAAM,WAAW;;;;;;;;;;;;yIAgJtB,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export declare const searchTool: import("../../tools").Tool<{
|
|
2
2
|
topK: number;
|
|
3
3
|
query: string;
|
|
4
|
-
minScore?: number | undefined;
|
|
5
4
|
mode?: "vector" | "bm25" | "hybrid" | undefined;
|
|
5
|
+
minScore?: number | undefined;
|
|
6
6
|
}, string, unknown, unknown, import("../../tools").ToolExecutionContext<unknown, unknown, unknown>, "mastra_workspace_search", unknown>;
|
|
7
7
|
//# sourceMappingURL=search.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tools.d.ts","sourceRoot":"","sources":["../../../src/workspace/tools/tools.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AAKtD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"tools.d.ts","sourceRoot":"","sources":["../../../src/workspace/tools/tools.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AAKtD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAY9C,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAC;AAIpD;;;;;;;GAOG;AACH,wBAAgB,iBAAiB,CAC/B,WAAW,EAAE,oBAAoB,GAAG,SAAS,EAC7C,QAAQ,EAAE,iBAAiB,GAC1B;IAAE,OAAO,EAAE,OAAO,CAAC;IAAC,eAAe,EAAE,OAAO,CAAC;IAAC,sBAAsB,CAAC,EAAE,OAAO,CAAA;CAAE,CA4BlF;AA8ED;;;;;GAKG;AACH,wBAAgB,oBAAoB,CAAC,SAAS,EAAE,SAAS,uBAoFxD"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mastra/core",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.6.0",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -217,12 +217,13 @@
|
|
|
217
217
|
"picomatch": "^4.0.3",
|
|
218
218
|
"radash": "^12.1.1",
|
|
219
219
|
"xxhash-wasm": "^1.1.0",
|
|
220
|
-
"@mastra/schema-compat": "1.1.
|
|
220
|
+
"@mastra/schema-compat": "1.1.2"
|
|
221
221
|
},
|
|
222
222
|
"peerDependencies": {
|
|
223
223
|
"zod": "^3.25.0 || ^4.0.0"
|
|
224
224
|
},
|
|
225
225
|
"devDependencies": {
|
|
226
|
+
"@ast-grep/napi": "^0.40.0",
|
|
226
227
|
"@ai-sdk/anthropic-v5": "npm:@ai-sdk/anthropic@2.0.61",
|
|
227
228
|
"@ai-sdk/azure": "^2.0.0",
|
|
228
229
|
"@ai-sdk/cerebras-v5": "npm:@ai-sdk/cerebras@1.0.36",
|
|
@@ -247,8 +248,8 @@
|
|
|
247
248
|
"@types/json-schema": "^7.0.15",
|
|
248
249
|
"@types/node": "22.19.7",
|
|
249
250
|
"@types/picomatch": "4.0.2",
|
|
250
|
-
"@vitest/coverage-v8": "4.0.
|
|
251
|
-
"@vitest/ui": "4.0.
|
|
251
|
+
"@vitest/coverage-v8": "4.0.18",
|
|
252
|
+
"@vitest/ui": "4.0.18",
|
|
252
253
|
"eslint": "^9.37.0",
|
|
253
254
|
"fast-deep-equal": "^3.1.3",
|
|
254
255
|
"globby": "^14.1.0",
|
|
@@ -256,14 +257,14 @@
|
|
|
256
257
|
"ts-morph": "^27.0.2",
|
|
257
258
|
"tsup": "^8.5.1",
|
|
258
259
|
"typescript": "^5.9.3",
|
|
259
|
-
"vitest": "4.0.
|
|
260
|
+
"vitest": "4.0.18",
|
|
260
261
|
"zod": "^3.25.76",
|
|
261
|
-
"@internal/ai-sdk-v4": "0.0.
|
|
262
|
-
"@internal/ai-
|
|
263
|
-
"@internal/ai-
|
|
264
|
-
"@internal/
|
|
265
|
-
"@internal/
|
|
266
|
-
"@internal/types-builder": "0.0.
|
|
262
|
+
"@internal/ai-sdk-v4": "0.0.8",
|
|
263
|
+
"@internal/ai-sdk-v5": "0.0.8",
|
|
264
|
+
"@internal/ai-v6": "0.0.8",
|
|
265
|
+
"@internal/lint": "0.0.61",
|
|
266
|
+
"@internal/external-types": "0.0.11",
|
|
267
|
+
"@internal/types-builder": "0.0.36"
|
|
267
268
|
},
|
|
268
269
|
"engines": {
|
|
269
270
|
"node": ">=22.13.0"
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './dist/processor-provider';
|
package/dist/chunk-4D4KB75Y.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/events/pubsub.ts"],"names":[],"mappings":";;;AAEO,IAAe,SAAf,MAAsB;AAK7B","file":"chunk-4D4KB75Y.cjs","sourcesContent":["import type { Event } from './types';\n\nexport abstract class PubSub {\n abstract publish(topic: string, event: Omit<Event, 'id' | 'createdAt'>): Promise<void>;\n abstract subscribe(topic: string, cb: (event: Event, ack?: () => Promise<void>) => void): Promise<void>;\n abstract unsubscribe(topic: string, cb: (event: Event, ack?: () => Promise<void>) => void): Promise<void>;\n abstract flush(): Promise<void>;\n}\n"]}
|