@mastra/mongodb 1.28.0 → 1.28.1-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/dist/docs/SKILL.md
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "1.28.0",
|
|
2
|
+
"version": "1.28.1-alpha.0",
|
|
3
3
|
"package": "@mastra/mongodb",
|
|
4
4
|
"exports": {
|
|
5
5
|
"BackgroundTasksStorageMongoDB": {
|
|
@@ -10,17 +10,17 @@
|
|
|
10
10
|
"KnowledgeMongoDB": {
|
|
11
11
|
"types": "dist/storage/domains/knowledge/index.d.ts",
|
|
12
12
|
"implementation": "dist/index.js",
|
|
13
|
-
"line":
|
|
13
|
+
"line": 9091
|
|
14
14
|
},
|
|
15
15
|
"MONGODB_PROMPT": {
|
|
16
16
|
"types": "dist/vector/prompt.d.ts",
|
|
17
17
|
"implementation": "dist/index.js",
|
|
18
|
-
"line":
|
|
18
|
+
"line": 16780
|
|
19
19
|
},
|
|
20
20
|
"MemoryStorageMongoDB": {
|
|
21
21
|
"types": "dist/storage/domains/memory/index.d.ts",
|
|
22
22
|
"implementation": "dist/index.js",
|
|
23
|
-
"line":
|
|
23
|
+
"line": 10358
|
|
24
24
|
},
|
|
25
25
|
"MongoDBAgentsStorage": {
|
|
26
26
|
"types": "dist/storage/domains/agents/index.d.ts",
|
|
@@ -45,32 +45,32 @@
|
|
|
45
45
|
"MongoDBMCPClientsStorage": {
|
|
46
46
|
"types": "dist/storage/domains/mcp-clients/index.d.ts",
|
|
47
47
|
"implementation": "dist/index.js",
|
|
48
|
-
"line":
|
|
48
|
+
"line": 9245
|
|
49
49
|
},
|
|
50
50
|
"MongoDBMCPServersStorage": {
|
|
51
51
|
"types": "dist/storage/domains/mcp-servers/index.d.ts",
|
|
52
52
|
"implementation": "dist/index.js",
|
|
53
|
-
"line":
|
|
53
|
+
"line": 9698
|
|
54
54
|
},
|
|
55
55
|
"MongoDBPromptBlocksStorage": {
|
|
56
56
|
"types": "dist/storage/domains/prompt-blocks/index.d.ts",
|
|
57
57
|
"implementation": "dist/index.js",
|
|
58
|
-
"line":
|
|
58
|
+
"line": 13450
|
|
59
59
|
},
|
|
60
60
|
"MongoDBScorerDefinitionsStorage": {
|
|
61
61
|
"types": "dist/storage/domains/scorer-definitions/index.d.ts",
|
|
62
62
|
"implementation": "dist/index.js",
|
|
63
|
-
"line":
|
|
63
|
+
"line": 14160
|
|
64
64
|
},
|
|
65
65
|
"MongoDBSkillsStorage": {
|
|
66
66
|
"types": "dist/storage/domains/skills/index.d.ts",
|
|
67
67
|
"implementation": "dist/index.js",
|
|
68
|
-
"line":
|
|
68
|
+
"line": 14990
|
|
69
69
|
},
|
|
70
70
|
"MongoDBStore": {
|
|
71
71
|
"types": "dist/storage/index.d.ts",
|
|
72
72
|
"implementation": "dist/index.js",
|
|
73
|
-
"line":
|
|
73
|
+
"line": 16701
|
|
74
74
|
},
|
|
75
75
|
"MongoDBVector": {
|
|
76
76
|
"types": "dist/vector/index.d.ts",
|
|
@@ -80,37 +80,37 @@
|
|
|
80
80
|
"MongoDBWorkflowDefinitionsStore": {
|
|
81
81
|
"types": "dist/storage/domains/workflow-definitions/index.d.ts",
|
|
82
82
|
"implementation": "dist/index.js",
|
|
83
|
-
"line":
|
|
83
|
+
"line": 15491
|
|
84
84
|
},
|
|
85
85
|
"MongoDBWorkspacesStorage": {
|
|
86
86
|
"types": "dist/storage/domains/workspaces/index.d.ts",
|
|
87
87
|
"implementation": "dist/index.js",
|
|
88
|
-
"line":
|
|
88
|
+
"line": 16199
|
|
89
89
|
},
|
|
90
90
|
"NotificationsMongoDB": {
|
|
91
91
|
"types": "dist/storage/domains/notifications/index.d.ts",
|
|
92
92
|
"implementation": "dist/index.js",
|
|
93
|
-
"line":
|
|
93
|
+
"line": 12478
|
|
94
94
|
},
|
|
95
95
|
"ObservabilityMongoDB": {
|
|
96
96
|
"types": "dist/storage/domains/observability/index.d.ts",
|
|
97
97
|
"implementation": "dist/index.js",
|
|
98
|
-
"line":
|
|
98
|
+
"line": 12768
|
|
99
99
|
},
|
|
100
100
|
"SchedulesMongoDB": {
|
|
101
101
|
"types": "dist/storage/domains/schedules/index.d.ts",
|
|
102
102
|
"implementation": "dist/index.js",
|
|
103
|
-
"line":
|
|
103
|
+
"line": 13957
|
|
104
104
|
},
|
|
105
105
|
"ScoresStorageMongoDB": {
|
|
106
106
|
"types": "dist/storage/domains/scores/index.d.ts",
|
|
107
107
|
"implementation": "dist/index.js",
|
|
108
|
-
"line":
|
|
108
|
+
"line": 14609
|
|
109
109
|
},
|
|
110
110
|
"WorkflowsStorageMongoDB": {
|
|
111
111
|
"types": "dist/storage/domains/workflows/index.d.ts",
|
|
112
112
|
"implementation": "dist/index.js",
|
|
113
|
-
"line":
|
|
113
|
+
"line": 15661
|
|
114
114
|
}
|
|
115
115
|
},
|
|
116
116
|
"modules": {}
|
package/dist/index.cjs
CHANGED
|
@@ -11,7 +11,7 @@ let _mastra_core_agent = require("@mastra/core/agent");
|
|
|
11
11
|
let _mastra_core_evals = require("@mastra/core/evals");
|
|
12
12
|
let _mastra_core_storage_domains_skills = require("@mastra/core/storage/domains/skills");
|
|
13
13
|
// package.json
|
|
14
|
-
var version = "1.28.0";
|
|
14
|
+
var version = "1.28.1-alpha.0";
|
|
15
15
|
// src/vector/filter.ts
|
|
16
16
|
/**
|
|
17
17
|
* Translator for MongoDB filter queries.
|
|
@@ -8801,6 +8801,7 @@ var MongoKnowledgePages = class {
|
|
|
8801
8801
|
return hits;
|
|
8802
8802
|
}
|
|
8803
8803
|
async listPageActivity(input) {
|
|
8804
|
+
if (input.order === "asc" || input.after !== void 0) throw new RangeError("This Knowledge store does not support oldest-first activity (supportsActivityAscending)");
|
|
8804
8805
|
const core = await loadPagesCore();
|
|
8805
8806
|
const limit = clampLimit(input.limit, core.MAX_KNOWLEDGE_PAGE_LIST_LIMIT);
|
|
8806
8807
|
const ids = await this.#readable(input.read);
|
package/dist/index.js
CHANGED
|
@@ -10,7 +10,7 @@ import { MessageList } from "@mastra/core/agent";
|
|
|
10
10
|
import { saveScorePayloadSchema } from "@mastra/core/evals";
|
|
11
11
|
import { skillSnapshotFieldValuesEqual } from "@mastra/core/storage/domains/skills";
|
|
12
12
|
// package.json
|
|
13
|
-
var version = "1.28.0";
|
|
13
|
+
var version = "1.28.1-alpha.0";
|
|
14
14
|
// src/vector/filter.ts
|
|
15
15
|
/**
|
|
16
16
|
* Translator for MongoDB filter queries.
|
|
@@ -8800,6 +8800,7 @@ var MongoKnowledgePages = class {
|
|
|
8800
8800
|
return hits;
|
|
8801
8801
|
}
|
|
8802
8802
|
async listPageActivity(input) {
|
|
8803
|
+
if (input.order === "asc" || input.after !== void 0) throw new RangeError("This Knowledge store does not support oldest-first activity (supportsActivityAscending)");
|
|
8803
8804
|
const core = await loadPagesCore();
|
|
8804
8805
|
const limit = clampLimit(input.limit, core.MAX_KNOWLEDGE_PAGE_LIST_LIMIT);
|
|
8805
8806
|
const ids = await this.#readable(input.read);
|
|
@@ -11,6 +11,7 @@ export declare class KnowledgeMongoDB extends KnowledgeStorage {
|
|
|
11
11
|
readonly supportsTransactions?: boolean;
|
|
12
12
|
readonly enforcesTransactionDeadline?: boolean;
|
|
13
13
|
readonly supportsActivityDateRange?: boolean;
|
|
14
|
+
readonly supportsActivityAscending?: boolean;
|
|
14
15
|
readonly schemaVersion: 4;
|
|
15
16
|
readonly supportsSchemaInspection: true;
|
|
16
17
|
readonly supportsExplicitReset: true;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { KnowledgePagesSchemaInspection } from '../../../_types/@internal_core@0.1.4/dist/knowledge-compat/index.js';
|
|
2
|
-
import type { AddKnowledgeNoteInput, CreateKnowledgePageInput, KnowledgeNote, KnowledgeNoteListOutput, KnowledgePage, KnowledgePageBodyLink, KnowledgePageLinkCounts, KnowledgePageLinkEdge, KnowledgePageLinkKind,
|
|
2
|
+
import type { AddKnowledgeNoteInput, CreateKnowledgePageInput, KnowledgeListedPin, KnowledgeNote, KnowledgeNoteListOutput, KnowledgePage, KnowledgePageActivityEvent, KnowledgePageActivityInput, KnowledgePageBodyLink, KnowledgePageLinkCounts, KnowledgePageLinkEdge, KnowledgePageLinkKind, KnowledgePageListOutput, KnowledgePageSearchHit, KnowledgePageStore, KnowledgePin, KnowledgePinKind, KnowledgeProvenance, KnowledgeReadScope, KnowledgeScopeDeclarationCount, KnowledgeScopeDeclarationRename, MaterializeKnowledgeScopeInput, MaterializeKnowledgeScopeResult, MergeKnowledgePagesInput, MoveKnowledgePageInput, SearchKnowledgePagesInput, UpdateKnowledgePageInput } from '@mastra/core/storage';
|
|
3
3
|
import type { MongoDBConnector } from '../../connectors/MongoDBConnector.js';
|
|
4
4
|
export declare const MONGO_KNOWLEDGE_PAGES_COLLECTIONS: {
|
|
5
5
|
readonly pages: 'mastra_knowledge_pages';
|
|
@@ -158,13 +158,7 @@ export declare class MongoKnowledgePages implements KnowledgePageStore {
|
|
|
158
158
|
provenance: KnowledgeProvenance;
|
|
159
159
|
}): Promise<KnowledgeNote>;
|
|
160
160
|
searchPages(input: SearchKnowledgePagesInput): Promise<KnowledgePageSearchHit[]>;
|
|
161
|
-
listPageActivity(input: {
|
|
162
|
-
read: KnowledgeReadScope;
|
|
163
|
-
scopeId?: string;
|
|
164
|
-
pageId?: string;
|
|
165
|
-
cursor?: string;
|
|
166
|
-
limit?: number;
|
|
167
|
-
}): Promise<{
|
|
161
|
+
listPageActivity(input: KnowledgePageActivityInput): Promise<{
|
|
168
162
|
events: KnowledgePageActivityEvent[];
|
|
169
163
|
nextCursor?: string;
|
|
170
164
|
}>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mastra/mongodb",
|
|
3
|
-
"version": "1.28.0",
|
|
3
|
+
"version": "1.28.1-alpha.0",
|
|
4
4
|
"description": "MongoDB provider for Mastra - includes vector store capabilities",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"type": "module",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"@internal/lint": "0.0.152",
|
|
37
37
|
"@internal/storage-test-utils": "0.0.148",
|
|
38
38
|
"@internal/types-builder": "0.0.127",
|
|
39
|
-
"@mastra/core": "1.
|
|
39
|
+
"@mastra/core": "1.87.0-alpha.0",
|
|
40
40
|
"@mastra/memory": "1.41.3"
|
|
41
41
|
},
|
|
42
42
|
"peerDependencies": {
|