@mastra/spanner 1.12.2-alpha.0 → 1.12.2
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 +1 -1
- package/dist/docs/assets/SOURCE_MAP.json +17 -17
- package/dist/index.cjs +9 -0
- package/dist/index.js +9 -0
- package/package.json +5 -5
package/dist/docs/SKILL.md
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "1.12.2
|
|
2
|
+
"version": "1.12.2",
|
|
3
3
|
"package": "@mastra/spanner",
|
|
4
4
|
"exports": {
|
|
5
5
|
"AgentsSpanner": {
|
|
@@ -30,82 +30,82 @@
|
|
|
30
30
|
"ExperimentsSpanner": {
|
|
31
31
|
"types": "dist/storage/domains/experiments/index.d.ts",
|
|
32
32
|
"implementation": "dist/index.js",
|
|
33
|
-
"line":
|
|
33
|
+
"line": 4293
|
|
34
34
|
},
|
|
35
35
|
"FavoritesSpanner": {
|
|
36
36
|
"types": "dist/storage/domains/favorites/index.d.ts",
|
|
37
37
|
"implementation": "dist/index.js",
|
|
38
|
-
"line":
|
|
38
|
+
"line": 5231
|
|
39
39
|
},
|
|
40
40
|
"MCPClientsSpanner": {
|
|
41
41
|
"types": "dist/storage/domains/mcp-clients/index.d.ts",
|
|
42
42
|
"implementation": "dist/index.js",
|
|
43
|
-
"line":
|
|
43
|
+
"line": 5564
|
|
44
44
|
},
|
|
45
45
|
"MCPServersSpanner": {
|
|
46
46
|
"types": "dist/storage/domains/mcp-servers/index.d.ts",
|
|
47
47
|
"implementation": "dist/index.js",
|
|
48
|
-
"line":
|
|
48
|
+
"line": 6148
|
|
49
49
|
},
|
|
50
50
|
"MemorySpanner": {
|
|
51
51
|
"types": "dist/storage/domains/memory/index.d.ts",
|
|
52
52
|
"implementation": "dist/index.js",
|
|
53
|
-
"line":
|
|
53
|
+
"line": 6844
|
|
54
54
|
},
|
|
55
55
|
"ObservabilitySpanner": {
|
|
56
56
|
"types": "dist/storage/domains/observability/index.d.ts",
|
|
57
57
|
"implementation": "dist/index.js",
|
|
58
|
-
"line":
|
|
58
|
+
"line": 9197
|
|
59
59
|
},
|
|
60
60
|
"PromptBlocksSpanner": {
|
|
61
61
|
"types": "dist/storage/domains/prompt-blocks/index.d.ts",
|
|
62
62
|
"implementation": "dist/index.js",
|
|
63
|
-
"line":
|
|
63
|
+
"line": 9802
|
|
64
64
|
},
|
|
65
65
|
"SPANNER_DOMAIN_KEYS": {
|
|
66
66
|
"types": "dist/storage/index.d.ts",
|
|
67
67
|
"implementation": "dist/index.js",
|
|
68
|
-
"line":
|
|
68
|
+
"line": 13946
|
|
69
69
|
},
|
|
70
70
|
"SchedulesSpanner": {
|
|
71
71
|
"types": "dist/storage/domains/schedules/index.d.ts",
|
|
72
72
|
"implementation": "dist/index.js",
|
|
73
|
-
"line":
|
|
73
|
+
"line": 10441
|
|
74
74
|
},
|
|
75
75
|
"ScorerDefinitionsSpanner": {
|
|
76
76
|
"types": "dist/storage/domains/scorer-definitions/index.d.ts",
|
|
77
77
|
"implementation": "dist/index.js",
|
|
78
|
-
"line":
|
|
78
|
+
"line": 10902
|
|
79
79
|
},
|
|
80
80
|
"ScoresSpanner": {
|
|
81
81
|
"types": "dist/storage/domains/scores/index.d.ts",
|
|
82
82
|
"implementation": "dist/index.js",
|
|
83
|
-
"line":
|
|
83
|
+
"line": 11515
|
|
84
84
|
},
|
|
85
85
|
"SkillsSpanner": {
|
|
86
86
|
"types": "dist/storage/domains/skills/index.d.ts",
|
|
87
87
|
"implementation": "dist/index.js",
|
|
88
|
-
"line":
|
|
88
|
+
"line": 11783
|
|
89
89
|
},
|
|
90
90
|
"SpannerStore": {
|
|
91
91
|
"types": "dist/storage/index.d.ts",
|
|
92
92
|
"implementation": "dist/index.js",
|
|
93
|
-
"line":
|
|
93
|
+
"line": 13985
|
|
94
94
|
},
|
|
95
95
|
"WorkflowDefinitionsSpanner": {
|
|
96
96
|
"types": "dist/storage/domains/workflow-definitions/index.d.ts",
|
|
97
97
|
"implementation": "dist/index.js",
|
|
98
|
-
"line":
|
|
98
|
+
"line": 12427
|
|
99
99
|
},
|
|
100
100
|
"WorkflowsSpanner": {
|
|
101
101
|
"types": "dist/storage/domains/workflows/index.d.ts",
|
|
102
102
|
"implementation": "dist/index.js",
|
|
103
|
-
"line":
|
|
103
|
+
"line": 12632
|
|
104
104
|
},
|
|
105
105
|
"WorkspacesSpanner": {
|
|
106
106
|
"types": "dist/storage/domains/workspaces/index.d.ts",
|
|
107
107
|
"implementation": "dist/index.js",
|
|
108
|
-
"line":
|
|
108
|
+
"line": 13335
|
|
109
109
|
}
|
|
110
110
|
},
|
|
111
111
|
"modules": {}
|
package/dist/index.cjs
CHANGED
|
@@ -3855,6 +3855,15 @@ var DatasetsSpanner = class DatasetsSpanner extends _mastra_core_storage.Dataset
|
|
|
3855
3855
|
hasMore: false
|
|
3856
3856
|
}
|
|
3857
3857
|
};
|
|
3858
|
+
if (perPage === 0) return {
|
|
3859
|
+
items: [],
|
|
3860
|
+
pagination: {
|
|
3861
|
+
total,
|
|
3862
|
+
page,
|
|
3863
|
+
perPage: perPageForResponse,
|
|
3864
|
+
hasMore: true
|
|
3865
|
+
}
|
|
3866
|
+
};
|
|
3858
3867
|
const limit = perPageInput === false ? total : perPage;
|
|
3859
3868
|
const [rows] = await this.database.run({
|
|
3860
3869
|
sql: `SELECT ${ITEM_SELECT_COLUMNS} FROM ${tableName} ${whereSql}
|
package/dist/index.js
CHANGED
|
@@ -3854,6 +3854,15 @@ var DatasetsSpanner = class DatasetsSpanner extends DatasetsStorage {
|
|
|
3854
3854
|
hasMore: false
|
|
3855
3855
|
}
|
|
3856
3856
|
};
|
|
3857
|
+
if (perPage === 0) return {
|
|
3858
|
+
items: [],
|
|
3859
|
+
pagination: {
|
|
3860
|
+
total,
|
|
3861
|
+
page,
|
|
3862
|
+
perPage: perPageForResponse,
|
|
3863
|
+
hasMore: true
|
|
3864
|
+
}
|
|
3865
|
+
};
|
|
3857
3866
|
const limit = perPageInput === false ? total : perPage;
|
|
3858
3867
|
const [rows] = await this.database.run({
|
|
3859
3868
|
sql: `SELECT ${ITEM_SELECT_COLUMNS} FROM ${tableName} ${whereSql}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mastra/spanner",
|
|
3
|
-
"version": "1.12.2
|
|
3
|
+
"version": "1.12.2",
|
|
4
4
|
"description": "Google Cloud Spanner provider for Mastra - db storage capabilities (GoogleSQL dialect)",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -30,10 +30,10 @@
|
|
|
30
30
|
"tsx": "^4.23.15",
|
|
31
31
|
"typescript": "^7.0.2",
|
|
32
32
|
"vitest": "5.1.0",
|
|
33
|
-
"@internal/lint": "0.0.
|
|
34
|
-
"@internal/storage-test-utils": "0.0.
|
|
35
|
-
"@internal/types-builder": "0.0.
|
|
36
|
-
"@mastra/core": "1.86.0
|
|
33
|
+
"@internal/lint": "0.0.152",
|
|
34
|
+
"@internal/storage-test-utils": "0.0.148",
|
|
35
|
+
"@internal/types-builder": "0.0.127",
|
|
36
|
+
"@mastra/core": "1.86.0"
|
|
37
37
|
},
|
|
38
38
|
"peerDependencies": {
|
|
39
39
|
"@mastra/core": ">=1.76.0-0 <2.0.0-0"
|