@mastra/mysql 0.15.0 → 0.16.0-alpha.1

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.
@@ -1,90 +1,52 @@
1
1
  import { KnowledgeStorage } from '@mastra/core/storage';
2
- import type { AppendKnowledgeInput, ClaimKnowledgeSemanticOutboxInput, CreateKnowledgeNodeInput, KnowledgeActivityEvent, KnowledgeCurationCursor, KnowledgeNode, KnowledgeRecord, KnowledgeScope, KnowledgeSemanticOutboxEntry, ListKnowledgeNodesInput, QueryKnowledgeBySourceInput, QueryKnowledgeInput, QueryKnowledgeOutput, SearchKnowledgeInput, SearchKnowledgeResult, UpdateKnowledgeNodeInput } from '@mastra/core/storage';
2
+ import type { KnowledgePageStore } from '@mastra/core/storage';
3
3
  import type { Pool } from 'mysql2/promise';
4
4
  import type { StoreOperationsMySQL } from '../operations/index.js';
5
5
  export declare class KnowledgeMySQL extends KnowledgeStorage {
6
6
  #private;
7
7
  static getExportDDL(): string[];
8
- constructor({ pool, operations }: {
8
+ constructor({ pool }: {
9
9
  pool: Pool;
10
10
  operations: StoreOperationsMySQL;
11
11
  });
12
+ getCapabilities(): {
13
+ readonly contractVersion: 4;
14
+ readonly schemaVersion: 4;
15
+ readonly supportsSchemaInspection: true;
16
+ readonly supportsExplicitReset: true;
17
+ };
18
+ inspectSchema(): Promise<import("../../../_types/@internal_core/dist/knowledge-compat/index.js").KnowledgePagesSchemaInspection>;
12
19
  init(): Promise<void>;
20
+ dangerouslyReset(): Promise<void>;
21
+ materializeScope(input: Parameters<KnowledgePageStore['materializeScope']>[0]): ReturnType<KnowledgePageStore['materializeScope']>;
22
+ listScopeDeclarations(): ReturnType<KnowledgePageStore['listScopeDeclarations']>;
23
+ renameScopeDeclaration(input: Parameters<KnowledgePageStore['renameScopeDeclaration']>[0]): ReturnType<KnowledgePageStore['renameScopeDeclaration']>;
24
+ getScopesByAddress(input: Parameters<KnowledgePageStore['getScopesByAddress']>[0]): ReturnType<KnowledgePageStore['getScopesByAddress']>;
25
+ listChildScopes(input: Parameters<KnowledgePageStore['listChildScopes']>[0]): ReturnType<KnowledgePageStore['listChildScopes']>;
26
+ getPage(input: Parameters<KnowledgePageStore['getPage']>[0]): ReturnType<KnowledgePageStore['getPage']>;
27
+ getPageByPath(input: Parameters<KnowledgePageStore['getPageByPath']>[0]): ReturnType<KnowledgePageStore['getPageByPath']>;
28
+ findPagesByName(input: Parameters<KnowledgePageStore['findPagesByName']>[0]): ReturnType<KnowledgePageStore['findPagesByName']>;
29
+ listChildPages(input: Parameters<KnowledgePageStore['listChildPages']>[0]): ReturnType<KnowledgePageStore['listChildPages']>;
30
+ listPages(input: Parameters<KnowledgePageStore['listPages']>[0]): ReturnType<KnowledgePageStore['listPages']>;
31
+ createPage(input: Parameters<KnowledgePageStore['createPage']>[0]): ReturnType<KnowledgePageStore['createPage']>;
32
+ updatePage(input: Parameters<KnowledgePageStore['updatePage']>[0]): ReturnType<KnowledgePageStore['updatePage']>;
33
+ movePage(input: Parameters<KnowledgePageStore['movePage']>[0]): ReturnType<KnowledgePageStore['movePage']>;
34
+ mergePages(input: Parameters<KnowledgePageStore['mergePages']>[0]): ReturnType<KnowledgePageStore['mergePages']>;
35
+ deletePage(input: Parameters<KnowledgePageStore['deletePage']>[0]): ReturnType<KnowledgePageStore['deletePage']>;
36
+ getNote(input: Parameters<KnowledgePageStore['getNote']>[0]): ReturnType<KnowledgePageStore['getNote']>;
37
+ listNotes(input: Parameters<KnowledgePageStore['listNotes']>[0]): ReturnType<KnowledgePageStore['listNotes']>;
38
+ countNotes(input: Parameters<KnowledgePageStore['countNotes']>[0]): ReturnType<KnowledgePageStore['countNotes']>;
39
+ listNotesMentioning(input: Parameters<KnowledgePageStore['listNotesMentioning']>[0]): ReturnType<KnowledgePageStore['listNotesMentioning']>;
40
+ addNote(input: Parameters<KnowledgePageStore['addNote']>[0]): ReturnType<KnowledgePageStore['addNote']>;
41
+ restampNote(input: Parameters<KnowledgePageStore['restampNote']>[0]): ReturnType<KnowledgePageStore['restampNote']>;
42
+ removeNote(input: Parameters<KnowledgePageStore['removeNote']>[0]): ReturnType<KnowledgePageStore['removeNote']>;
43
+ restoreNote(input: Parameters<KnowledgePageStore['restoreNote']>[0]): ReturnType<KnowledgePageStore['restoreNote']>;
44
+ searchPages(input: Parameters<KnowledgePageStore['searchPages']>[0]): ReturnType<KnowledgePageStore['searchPages']>;
45
+ listPageActivity(input: Parameters<KnowledgePageStore['listPageActivity']>[0]): ReturnType<KnowledgePageStore['listPageActivity']>;
46
+ addPinAudience(input: Parameters<KnowledgePageStore['addPinAudience']>[0]): ReturnType<KnowledgePageStore['addPinAudience']>;
47
+ removePinAudience(input: Parameters<KnowledgePageStore['removePinAudience']>[0]): ReturnType<KnowledgePageStore['removePinAudience']>;
48
+ getPages(input: Parameters<KnowledgePageStore['getPages']>[0]): ReturnType<KnowledgePageStore['getPages']>;
49
+ listPins(input: Parameters<KnowledgePageStore['listPins']>[0]): ReturnType<KnowledgePageStore['listPins']>;
13
50
  dangerouslyClearAll(): Promise<void>;
14
- createNode(input: CreateKnowledgeNodeInput): Promise<KnowledgeNode>;
15
- getNode(id: string): Promise<KnowledgeNode | null>;
16
- getNodeByName(input: {
17
- name: string;
18
- scope: KnowledgeScope;
19
- }): Promise<KnowledgeNode | null>;
20
- resolveNode(input: {
21
- name: string;
22
- scope: KnowledgeScope;
23
- }): Promise<KnowledgeNode | null>;
24
- listNodes(input: ListKnowledgeNodesInput): Promise<KnowledgeNode[]>;
25
- updateNode(input: UpdateKnowledgeNodeInput): Promise<KnowledgeNode>;
26
- mergeNodes(input: {
27
- sourceId: string;
28
- targetId: string;
29
- sourceVersion: number;
30
- }): Promise<KnowledgeNode>;
31
- appendKnowledge(input: AppendKnowledgeInput): Promise<KnowledgeRecord>;
32
- getKnowledge(input: {
33
- id: string;
34
- includeDeleted?: boolean;
35
- }): Promise<KnowledgeRecord | null>;
36
- listKnowledgeAbout(input: QueryKnowledgeInput): Promise<QueryKnowledgeOutput>;
37
- listKnowledgeMentioning(input: QueryKnowledgeInput): Promise<QueryKnowledgeOutput>;
38
- listKnowledgeRelatedTo(input: QueryKnowledgeInput): Promise<QueryKnowledgeOutput>;
39
- knowledgeBySource(input: QueryKnowledgeBySourceInput): Promise<QueryKnowledgeOutput>;
40
- removeKnowledge(input: {
41
- id: string;
42
- deletedBy: string;
43
- }): Promise<KnowledgeRecord>;
44
- restoreKnowledge(input: {
45
- id: string;
46
- }): Promise<KnowledgeRecord>;
47
- rescopeKnowledge(input: {
48
- id: string;
49
- scope: KnowledgeScope;
50
- }): Promise<KnowledgeRecord>;
51
- search(input: SearchKnowledgeInput): Promise<SearchKnowledgeResult[]>;
52
- /**
53
- * @deprecated Curation cursors were removed. Observation-time curate is the only Knowledge writer and needs no
54
- * cursor. Always throws.
55
- */
56
- getCurationCursor(_input: {
57
- sourceThreadId: string;
58
- agent: string;
59
- }): Promise<KnowledgeCurationCursor | null>;
60
- /**
61
- * @deprecated Curation cursors were removed. Observation-time curate is the only Knowledge writer and needs no
62
- * cursor. Always throws.
63
- */
64
- advanceCurationCursor(_input: {
65
- sourceThreadId: string;
66
- agent: string;
67
- lastKnowledgeId: string;
68
- }): Promise<KnowledgeCurationCursor>;
69
- listActivity(input: {
70
- scope: KnowledgeScope;
71
- after?: string;
72
- limit?: number;
73
- }): Promise<KnowledgeActivityEvent[]>;
74
- listSemanticOutbox(input?: {
75
- status?: KnowledgeSemanticOutboxEntry['status'];
76
- scope?: KnowledgeScope;
77
- limit?: number;
78
- }): Promise<KnowledgeSemanticOutboxEntry[]>;
79
- claimSemanticOutbox(input: ClaimKnowledgeSemanticOutboxInput): Promise<KnowledgeSemanticOutboxEntry[]>;
80
- completeSemanticOutbox(input: {
81
- ids: string[];
82
- workerId: string;
83
- }): Promise<void>;
84
- releaseSemanticOutbox(input: {
85
- ids: string[];
86
- workerId: string;
87
- retryAt?: Date;
88
- }): Promise<void>;
89
51
  }
90
52
  //# sourceMappingURL=index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KAAK,EAAE,UAAU,CAAC,kBAAkB,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,UAAU,CAAC,kBAAkB,CAAC,UAAU,CAAC,CAAC,CAElH;IAEQ,QAAQ,CAAC,KAAK,EAAE,UAAU,CAAC,kBAAkB,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,UAAU,CAAC,kBAAkB,CAAC,UAAU,CAAC,CAAC,CAElH;IAEc,mBAAmB,IAAI,OAAO,CAAC,IAAI,CAAC,CAElD;CACF"}
@@ -0,0 +1,167 @@
1
+ import type { AddKnowledgeNoteInput, CreateKnowledgePageInput, KnowledgeNote, KnowledgeNoteListOutput, KnowledgePage, KnowledgePageActivityEvent, KnowledgePageListOutput, KnowledgePageSearchHit, KnowledgePageStore, KnowledgeListedPin, KnowledgeScopeDeclarationCount, KnowledgeScopeDeclarationRename, KnowledgePin, KnowledgeProvenance, KnowledgeReadScope, MaterializeKnowledgeScopeInput, MaterializeKnowledgeScopeResult, MergeKnowledgePagesInput, MoveKnowledgePageInput, SearchKnowledgePagesInput, UpdateKnowledgePageInput } from '@mastra/core/storage';
2
+ export type InValue = string | number | null;
3
+ /** Runs one statement and returns its rows. */
4
+ export interface PageExecutor {
5
+ execute(statement: {
6
+ sql: string;
7
+ args?: InValue[];
8
+ }): Promise<{
9
+ rows: unknown[];
10
+ }>;
11
+ }
12
+ /** Runs `operation` in one write transaction. */
13
+ export type PageTransaction = <T>(operation: (tx: PageExecutor) => Promise<T>) => Promise<T>;
14
+ export declare const KNOWLEDGE_PAGE_TABLES: {
15
+ readonly pages: '`mastra_knowledge_pages`';
16
+ readonly notes: '`mastra_knowledge_notes`';
17
+ readonly stamps: '`mastra_knowledge_note_stamps`';
18
+ readonly mentions: '`mastra_knowledge_mentions`';
19
+ readonly pins: '`mastra_knowledge_pins`';
20
+ readonly pinAudiences: '`mastra_knowledge_pin_audiences`';
21
+ readonly activity: '`mastra_knowledge_activity`';
22
+ };
23
+ /** Upgrades for Knowledge databases created by an earlier alpha build; `needed` returns a row when `apply` must run. */
24
+ export declare const KNOWLEDGE_PAGE_UPGRADES: ReadonlyArray<{
25
+ needed: string;
26
+ args: string[];
27
+ apply: string[];
28
+ }>;
29
+ /** DDL for the schema-4 page tables, in creation order. Every statement is idempotent. */
30
+ export declare const KNOWLEDGE_PAGE_DDL: string[];
31
+ export declare class MySQLKnowledgePages implements KnowledgePageStore {
32
+ #private;
33
+ constructor(config: {
34
+ read: PageExecutor;
35
+ transaction: PageTransaction;
36
+ });
37
+ /** Deletes every row from the page tables (scopes, pages, notes, pins, activity). */
38
+ clearAll(): Promise<void>;
39
+ materializeScope(input: MaterializeKnowledgeScopeInput): Promise<MaterializeKnowledgeScopeResult>;
40
+ listScopeDeclarations(): Promise<KnowledgeScopeDeclarationCount[]>;
41
+ renameScopeDeclaration(input: {
42
+ from: string;
43
+ to: string;
44
+ check: (scopes: KnowledgeScopeDeclarationRename[]) => void;
45
+ }): Promise<number>;
46
+ getScopesByAddress(addresses: string[]): Promise<KnowledgePage[]>;
47
+ listChildScopes(input: {
48
+ parentId: string | null;
49
+ cursor?: string;
50
+ limit?: number;
51
+ }): Promise<KnowledgePageListOutput>;
52
+ getPage(input: {
53
+ id: string;
54
+ read: KnowledgeReadScope;
55
+ }): Promise<KnowledgePage | null>;
56
+ getPages(input: {
57
+ ids: string[];
58
+ read: KnowledgeReadScope;
59
+ }): Promise<KnowledgePage[]>;
60
+ getPageByPath(input: {
61
+ scopeId: string;
62
+ path: string[];
63
+ read: KnowledgeReadScope;
64
+ }): Promise<KnowledgePage | null>;
65
+ findPagesByName(input: {
66
+ name: string;
67
+ read: KnowledgeReadScope;
68
+ scopeId?: string;
69
+ limit?: number;
70
+ }): Promise<KnowledgePage[]>;
71
+ listChildPages(input: {
72
+ parentId: string;
73
+ read: KnowledgeReadScope;
74
+ cursor?: string;
75
+ limit?: number;
76
+ }): Promise<KnowledgePageListOutput>;
77
+ listPages(input: {
78
+ read: KnowledgeReadScope;
79
+ scopeId?: string;
80
+ namePrefix?: string;
81
+ cursor?: string;
82
+ limit?: number;
83
+ }): Promise<KnowledgePageListOutput>;
84
+ createPage(input: CreateKnowledgePageInput): Promise<KnowledgePage>;
85
+ updatePage(input: UpdateKnowledgePageInput): Promise<KnowledgePage>;
86
+ movePage(input: MoveKnowledgePageInput): Promise<KnowledgePage>;
87
+ mergePages(input: MergeKnowledgePagesInput): Promise<KnowledgePage>;
88
+ deletePage(input: {
89
+ id: string;
90
+ expectedVersion: number;
91
+ deletedBy: string;
92
+ }): Promise<KnowledgePage>;
93
+ getNote(input: {
94
+ id: string;
95
+ read: KnowledgeReadScope;
96
+ includeDeleted?: boolean;
97
+ }): Promise<KnowledgeNote | null>;
98
+ listNotes(input: {
99
+ pageId: string;
100
+ read: KnowledgeReadScope;
101
+ cursor?: string;
102
+ limit?: number;
103
+ includeDeleted?: boolean;
104
+ }): Promise<KnowledgeNoteListOutput>;
105
+ countNotes(input: {
106
+ pageIds: string[];
107
+ read: KnowledgeReadScope;
108
+ }): Promise<Record<string, number>>;
109
+ listNotesMentioning(input: {
110
+ pageId: string;
111
+ read: KnowledgeReadScope;
112
+ cursor?: string;
113
+ limit?: number;
114
+ }): Promise<KnowledgeNoteListOutput>;
115
+ addNote(input: AddKnowledgeNoteInput): Promise<KnowledgeNote>;
116
+ restampNote(input: {
117
+ id: string;
118
+ expectedVersion: number;
119
+ stampScopeIds: string[];
120
+ provenance: KnowledgeProvenance;
121
+ }): Promise<KnowledgeNote>;
122
+ removeNote(input: {
123
+ id: string;
124
+ deletedBy: string;
125
+ provenance: KnowledgeProvenance;
126
+ }): Promise<KnowledgeNote>;
127
+ restoreNote(input: {
128
+ id: string;
129
+ provenance: KnowledgeProvenance;
130
+ }): Promise<KnowledgeNote>;
131
+ searchPages(input: SearchKnowledgePagesInput): Promise<KnowledgePageSearchHit[]>;
132
+ listPageActivity(input: {
133
+ read: KnowledgeReadScope;
134
+ scopeId?: string;
135
+ pageId?: string;
136
+ cursor?: string;
137
+ limit?: number;
138
+ }): Promise<{
139
+ events: KnowledgePageActivityEvent[];
140
+ nextCursor?: string;
141
+ }>;
142
+ addPinAudience(input: {
143
+ pageId: string;
144
+ audience: string[];
145
+ createdBy: string;
146
+ }): Promise<KnowledgePin>;
147
+ removePinAudience(input: {
148
+ pageId: string;
149
+ audience: string[];
150
+ removedBy: string;
151
+ }): Promise<KnowledgePin | null>;
152
+ listPins(input: {
153
+ audience: string[] | 'all';
154
+ read: KnowledgeReadScope;
155
+ pageIds?: string[];
156
+ excludePageIds?: string[];
157
+ withBody?: boolean;
158
+ count?: boolean;
159
+ cursor?: string;
160
+ limit?: number;
161
+ }): Promise<{
162
+ pins: KnowledgeListedPin[];
163
+ nextCursor?: string;
164
+ total?: number;
165
+ }>;
166
+ }
167
+ //# sourceMappingURL=pages.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pages.d.ts","sourceRoot":"","sources":["../../../../src/storage/domains/knowledge/pages.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EACV,qBAAqB,EACrB,wBAAwB,EACxB,aAAa,EACb,uBAAuB,EACvB,aAAa,EAEb,0BAA0B,EAC1B,uBAAuB,EACvB,sBAAsB,EACtB,kBAAkB,EAClB,kBAAkB,EAClB,8BAA8B,EAC9B,+BAA+B,EAC/B,YAAY,EACZ,mBAAmB,EACnB,kBAAkB,EAClB,8BAA8B,EAC9B,+BAA+B,EAC/B,wBAAwB,EACxB,sBAAsB,EACtB,yBAAyB,EACzB,wBAAwB,EACzB,MAAM,sBAAsB,CAAC;AAQ9B,MAAM,MAAM,OAAO,GAAG,MAAM,GAAG,MAAM,GAAG,IAAI,CAAC;AAE7C,+CAA+C;AAC/C,MAAM,WAAW,YAAY;IAC3B,OAAO,CAAC,SAAS,EAAE;QAAE,GAAG,EAAE,MAAM,CAAC;QAAC,IAAI,CAAC,EAAE,OAAO,EAAE,CAAA;KAAE,GAAG,OAAO,CAAC;QAAE,IAAI,EAAE,OAA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C,EAAE,MAAM,CAAA;KAAE,CAAC,CAuCzE;IAeD,cAAc,CAAC,KAAK,EAAE;QAAE,MAAM,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,MAAM,EAAE,CAAC;QAAC,SAAS,EAAE,MAAM,CAAA;KAAE,GAAG,OAAO,CAAC,YAAY,CAAC,CAqCtG;IAED,iBAAiB,CAAC,KAAK,EAAE;QAAE,MAAM,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,MAAM,EAAE,CAAC;QAAC,SAAS,EAAE,MAAM,CAAA;KAAE,GAAG,OAAO,CAAC,YAAY,GAAG,IAAI,CAAC,CA8BhH;IAEK,QAAQ,CAAC,KAAK,EAAE;QACpB,QAAQ,EAAE,MAAM,EAAE,GAAG,KAAK,CAAC;QAC3B,IAAI,EAAE,kBAAkB,CAAC;QACzB,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;QACnB,cAAc,CAAC,EAAE,MAAM,EAAE,CAAC;QAC1B,QAAQ,CAAC,EAAE,OAAO,CAAC;QACnB,KAAK,CAAC,EAAE,OAAO,CAAC;QAChB,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB,KAAK,CAAC,EAAE,MAAM,CAAC;KAChB,GAAG,OAAO,CAAC;QAAE,IAAI,EAAE,kBAAkB,EAAE,CAAC;QAAC,UAAU,CAAC,EAAE,MAAM,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC,CA+C/E;CACF"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mastra/mysql",
3
- "version": "0.15.0",
3
+ "version": "0.16.0-alpha.1",
4
4
  "description": "MySQL provider for Mastra - db storage capabilities",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -30,11 +30,11 @@
30
30
  "tsx": "^4.23.15",
31
31
  "typescript": "^7.0.2",
32
32
  "vitest": "4.1.12",
33
+ "@internal/core": "0.1.4",
33
34
  "@internal/lint": "0.0.147",
34
35
  "@internal/storage-test-utils": "0.0.143",
35
- "@internal/core": "0.1.4",
36
36
  "@internal/types-builder": "0.0.122",
37
- "@mastra/core": "1.81.0"
37
+ "@mastra/core": "1.82.0-alpha.1"
38
38
  },
39
39
  "peerDependencies": {
40
40
  "@mastra/core": ">=1.76.0-0 <2.0.0-0"