@mastra/spanner 0.0.0-knowledge-studio-20261029065150 → 0.0.0-knowledge-alpha-studio-20261030162625
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 +1 -1
- package/dist/index.cjs +55 -64
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +55 -64
- package/dist/index.js.map +1 -1
- package/dist/storage/domains/background-tasks/index.d.ts +1 -0
- package/dist/storage/domains/background-tasks/index.d.ts.map +1 -1
- package/package.json +11 -12
package/dist/docs/SKILL.md
CHANGED
|
@@ -3,7 +3,7 @@ name: mastra-spanner
|
|
|
3
3
|
description: Documentation for @mastra/spanner. Use when working with @mastra/spanner APIs, configuration, or implementation.
|
|
4
4
|
metadata:
|
|
5
5
|
package: "@mastra/spanner"
|
|
6
|
-
version: "0.0.0-knowledge-studio-
|
|
6
|
+
version: "0.0.0-knowledge-alpha-studio-20261030162625"
|
|
7
7
|
---
|
|
8
8
|
|
|
9
9
|
## When to use
|
package/dist/index.cjs
CHANGED
|
@@ -6,7 +6,7 @@ let _mastra_core_base = require("@mastra/core/base");
|
|
|
6
6
|
let _mastra_core_utils = require("@mastra/core/utils");
|
|
7
7
|
let _mastra_core_agent = require("@mastra/core/agent");
|
|
8
8
|
let _mastra_core_evals = require("@mastra/core/evals");
|
|
9
|
-
|
|
9
|
+
// src/storage/db/utils.ts
|
|
10
10
|
/**
|
|
11
11
|
* Quote a Spanner identifier with backticks. GoogleSQL uses backticks for
|
|
12
12
|
* identifiers that may collide with reserved keywords.
|
|
@@ -58,8 +58,7 @@ function getColumnDef(table, column) {
|
|
|
58
58
|
function isInOperator(value) {
|
|
59
59
|
return typeof value === "object" && value !== null && "$in" in value && Array.isArray(value.$in);
|
|
60
60
|
}
|
|
61
|
-
|
|
62
|
-
//#region src/storage/db/index.ts
|
|
61
|
+
// src/storage/db/index.ts
|
|
63
62
|
/**
|
|
64
63
|
* Resolves a SpannerDomainConfig into a concrete Database handle plus options.
|
|
65
64
|
*/
|
|
@@ -1142,8 +1141,7 @@ var SpannerDB = class extends _mastra_core_base.MastraBase {
|
|
|
1142
1141
|
}
|
|
1143
1142
|
}
|
|
1144
1143
|
};
|
|
1145
|
-
|
|
1146
|
-
//#region src/storage/domains/utils.ts
|
|
1144
|
+
// src/storage/domains/utils.ts
|
|
1147
1145
|
/**
|
|
1148
1146
|
* Build storage filter entries for a date range, using the operator suffixes
|
|
1149
1147
|
* understood by `SpannerDB.prepareWhereClause`.
|
|
@@ -1196,8 +1194,7 @@ function transformFromSpannerRow({ tableName, row }) {
|
|
|
1196
1194
|
}
|
|
1197
1195
|
return result;
|
|
1198
1196
|
}
|
|
1199
|
-
|
|
1200
|
-
//#region src/storage/domains/agents/index.ts
|
|
1197
|
+
// src/storage/domains/agents/index.ts
|
|
1201
1198
|
const VERSION_CONFIG_KEYS = [
|
|
1202
1199
|
"name",
|
|
1203
1200
|
"description",
|
|
@@ -1857,8 +1854,7 @@ var AgentsSpanner = class AgentsSpanner extends _mastra_core_storage.AgentsStora
|
|
|
1857
1854
|
}
|
|
1858
1855
|
}
|
|
1859
1856
|
};
|
|
1860
|
-
|
|
1861
|
-
//#region src/storage/domains/background-tasks/index.ts
|
|
1857
|
+
// src/storage/domains/background-tasks/index.ts
|
|
1862
1858
|
function buildStatusCondition(filter, params, startIdx) {
|
|
1863
1859
|
if (filter.status === void 0) return { kind: "no-filter" };
|
|
1864
1860
|
const statuses = Array.isArray(filter.status) ? filter.status : [filter.status];
|
|
@@ -1912,10 +1908,13 @@ function rowToTask(row) {
|
|
|
1912
1908
|
suspendedAt: transformed.suspendedAt ? transformed.suspendedAt instanceof Date ? transformed.suspendedAt : new Date(transformed.suspendedAt) : void 0,
|
|
1913
1909
|
completedAt: transformed.completedAt ? transformed.completedAt instanceof Date ? transformed.completedAt : new Date(transformed.completedAt) : void 0,
|
|
1914
1910
|
ownerId: transformed.ownerId != null ? String(transformed.ownerId) : void 0,
|
|
1915
|
-
leaseExpiresAt: transformed.leaseExpiresAt ? transformed.leaseExpiresAt instanceof Date ? transformed.leaseExpiresAt : new Date(transformed.leaseExpiresAt) : void 0
|
|
1911
|
+
leaseExpiresAt: transformed.leaseExpiresAt ? transformed.leaseExpiresAt instanceof Date ? transformed.leaseExpiresAt : new Date(transformed.leaseExpiresAt) : void 0,
|
|
1912
|
+
expiresAt: transformed.expiresAt ? transformed.expiresAt instanceof Date ? transformed.expiresAt : new Date(transformed.expiresAt) : void 0,
|
|
1913
|
+
metadata: parseJson(transformed.metadata) ?? void 0
|
|
1916
1914
|
};
|
|
1917
1915
|
}
|
|
1918
1916
|
var BackgroundTasksSpanner = class BackgroundTasksSpanner extends _mastra_core_storage.BackgroundTasksStorage {
|
|
1917
|
+
supportsTaskExpiry = true;
|
|
1919
1918
|
database;
|
|
1920
1919
|
db;
|
|
1921
1920
|
skipDefaultIndexes;
|
|
@@ -1945,7 +1944,9 @@ var BackgroundTasksSpanner = class BackgroundTasksSpanner extends _mastra_core_s
|
|
|
1945
1944
|
"suspend_payload",
|
|
1946
1945
|
"suspendedAt",
|
|
1947
1946
|
"ownerId",
|
|
1948
|
-
"leaseExpiresAt"
|
|
1947
|
+
"leaseExpiresAt",
|
|
1948
|
+
"expiresAt",
|
|
1949
|
+
"metadata"
|
|
1949
1950
|
]
|
|
1950
1951
|
});
|
|
1951
1952
|
await this.createDefaultIndexes();
|
|
@@ -2028,7 +2029,9 @@ var BackgroundTasksSpanner = class BackgroundTasksSpanner extends _mastra_core_s
|
|
|
2028
2029
|
suspendedAt: task.suspendedAt ?? null,
|
|
2029
2030
|
completedAt: task.completedAt ?? null,
|
|
2030
2031
|
ownerId: task.ownerId ?? null,
|
|
2031
|
-
leaseExpiresAt: task.leaseExpiresAt ?? null
|
|
2032
|
+
leaseExpiresAt: task.leaseExpiresAt ?? null,
|
|
2033
|
+
expiresAt: task.expiresAt ?? null,
|
|
2034
|
+
metadata: task.metadata ?? null
|
|
2032
2035
|
}
|
|
2033
2036
|
});
|
|
2034
2037
|
}
|
|
@@ -2044,12 +2047,18 @@ var BackgroundTasksSpanner = class BackgroundTasksSpanner extends _mastra_core_s
|
|
|
2044
2047
|
if ("completedAt" in update) data.completedAt = update.completedAt ?? null;
|
|
2045
2048
|
if ("ownerId" in update) data.ownerId = update.ownerId ?? null;
|
|
2046
2049
|
if ("leaseExpiresAt" in update) data.leaseExpiresAt = update.leaseExpiresAt ?? null;
|
|
2050
|
+
if ("expiresAt" in update) data.expiresAt = update.expiresAt ?? null;
|
|
2051
|
+
if ("metadata" in update) data.metadata = update.metadata ?? null;
|
|
2047
2052
|
if (Object.keys(data).length === 0) return false;
|
|
2048
2053
|
const setClauses = Object.keys(data).map((field) => `${quoteIdent(field, "column name")} = @${field}`);
|
|
2049
|
-
const params = {
|
|
2050
|
-
|
|
2051
|
-
|
|
2052
|
-
|
|
2054
|
+
const params = { id: taskId };
|
|
2055
|
+
const types = {};
|
|
2056
|
+
for (const [field, value] of Object.entries(data)) {
|
|
2057
|
+
const prepared = this.db.prepareValue(value, field, _mastra_core_storage.TABLE_BACKGROUND_TASKS);
|
|
2058
|
+
params[field] = prepared;
|
|
2059
|
+
const colType = getColumnDef(_mastra_core_storage.TABLE_BACKGROUND_TASKS, field)?.type;
|
|
2060
|
+
if (prepared === null || colType === "jsonb" || colType === "timestamp") types[field] = getSpannerParamType(colType);
|
|
2061
|
+
}
|
|
2053
2062
|
const predicates = [];
|
|
2054
2063
|
if (options?.expectedStatus) {
|
|
2055
2064
|
predicates.push("status = @expectedStatus");
|
|
@@ -2066,15 +2075,16 @@ var BackgroundTasksSpanner = class BackgroundTasksSpanner extends _mastra_core_s
|
|
|
2066
2075
|
if (options.expectedLeaseExpiresAt === null) predicates.push("leaseExpiresAt IS NULL");
|
|
2067
2076
|
else {
|
|
2068
2077
|
predicates.push("leaseExpiresAt = @expectedLeaseExpiresAt");
|
|
2069
|
-
params.expectedLeaseExpiresAt = options.expectedLeaseExpiresAt;
|
|
2078
|
+
params.expectedLeaseExpiresAt = this.db.prepareValue(options.expectedLeaseExpiresAt, "leaseExpiresAt", _mastra_core_storage.TABLE_BACKGROUND_TASKS);
|
|
2079
|
+
types.expectedLeaseExpiresAt = getSpannerParamType("timestamp");
|
|
2070
2080
|
}
|
|
2071
2081
|
}
|
|
2072
2082
|
const predicateSql = predicates.length > 0 ? ` AND ${predicates.join(" AND ")}` : "";
|
|
2073
|
-
|
|
2083
|
+
return await this.db.runDml({
|
|
2074
2084
|
sql: `UPDATE ${this.tableName()} SET ${setClauses.join(", ")} WHERE id = @id${predicateSql}`,
|
|
2075
|
-
params
|
|
2076
|
-
|
|
2077
|
-
|
|
2085
|
+
params,
|
|
2086
|
+
types
|
|
2087
|
+
}) > 0;
|
|
2078
2088
|
}
|
|
2079
2089
|
async getTask(taskId) {
|
|
2080
2090
|
const [rows] = await this.database.run({
|
|
@@ -2144,7 +2154,8 @@ var BackgroundTasksSpanner = class BackgroundTasksSpanner extends _mastra_core_s
|
|
|
2144
2154
|
params[name] = filter.toolCallId;
|
|
2145
2155
|
conditions.push(`${quoteIdent("tool_call_id", "column name")} = @${name}`);
|
|
2146
2156
|
}
|
|
2147
|
-
const dateCol = filter.dateFilterBy === "startedAt" ? quoteIdent("startedAt", "column name") : filter.dateFilterBy === "suspendedAt" ? quoteIdent("suspendedAt", "column name") : filter.dateFilterBy === "completedAt" ? quoteIdent("completedAt", "column name") : quoteIdent("createdAt", "column name");
|
|
2157
|
+
const dateCol = filter.dateFilterBy === "startedAt" ? quoteIdent("startedAt", "column name") : filter.dateFilterBy === "suspendedAt" ? quoteIdent("suspendedAt", "column name") : filter.dateFilterBy === "completedAt" ? quoteIdent("completedAt", "column name") : filter.dateFilterBy === "expiresAt" ? quoteIdent("expiresAt", "column name") : quoteIdent("createdAt", "column name");
|
|
2158
|
+
if (filter.hasExpiresAt !== void 0) conditions.push(`${quoteIdent("expiresAt", "column name")} IS ${filter.hasExpiresAt ? "NOT NULL" : "NULL"}`);
|
|
2148
2159
|
if (filter.fromDate) {
|
|
2149
2160
|
const name = `p${idx++}`;
|
|
2150
2161
|
params[name] = filter.fromDate.toISOString();
|
|
@@ -2209,7 +2220,8 @@ var BackgroundTasksSpanner = class BackgroundTasksSpanner extends _mastra_core_s
|
|
|
2209
2220
|
conditions.push(statusCondition.sql);
|
|
2210
2221
|
idx = statusCondition.nextIdx;
|
|
2211
2222
|
}
|
|
2212
|
-
const dateCol = filter.dateFilterBy === "startedAt" ? quoteIdent("startedAt", "column name") : filter.dateFilterBy === "completedAt" ? quoteIdent("completedAt", "column name") : quoteIdent("createdAt", "column name");
|
|
2223
|
+
const dateCol = filter.dateFilterBy === "startedAt" ? quoteIdent("startedAt", "column name") : filter.dateFilterBy === "suspendedAt" ? quoteIdent("suspendedAt", "column name") : filter.dateFilterBy === "completedAt" ? quoteIdent("completedAt", "column name") : filter.dateFilterBy === "expiresAt" ? quoteIdent("expiresAt", "column name") : quoteIdent("createdAt", "column name");
|
|
2224
|
+
if (filter.hasExpiresAt !== void 0) conditions.push(`${quoteIdent("expiresAt", "column name")} IS ${filter.hasExpiresAt ? "NOT NULL" : "NULL"}`);
|
|
2213
2225
|
if (filter.fromDate) {
|
|
2214
2226
|
const name = `p${idx++}`;
|
|
2215
2227
|
params[name] = filter.fromDate.toISOString();
|
|
@@ -2270,8 +2282,7 @@ var BackgroundTasksSpanner = class BackgroundTasksSpanner extends _mastra_core_s
|
|
|
2270
2282
|
return Number(rows[0]?.count ?? 0);
|
|
2271
2283
|
}
|
|
2272
2284
|
};
|
|
2273
|
-
|
|
2274
|
-
//#region src/storage/domains/blobs/index.ts
|
|
2285
|
+
// src/storage/domains/blobs/index.ts
|
|
2275
2286
|
/**
|
|
2276
2287
|
* Content-addressable blob store backed by Spanner. Blobs are keyed by their
|
|
2277
2288
|
* SHA-256 hash; duplicate puts are no-ops thanks to `INSERT OR IGNORE`.
|
|
@@ -2489,8 +2500,7 @@ var BlobsSpanner = class BlobsSpanner extends _mastra_core_storage.BlobStore {
|
|
|
2489
2500
|
}
|
|
2490
2501
|
}
|
|
2491
2502
|
};
|
|
2492
|
-
|
|
2493
|
-
//#region src/storage/domains/channels/index.ts
|
|
2503
|
+
// src/storage/domains/channels/index.ts
|
|
2494
2504
|
const INSTALLATIONS = _mastra_core_storage.TABLE_CHANNEL_INSTALLATIONS;
|
|
2495
2505
|
const CONFIG = _mastra_core_storage.TABLE_CHANNEL_CONFIG;
|
|
2496
2506
|
const WEBHOOK_INDEX = "mastra_channel_installations_webhookid_idx";
|
|
@@ -2834,8 +2844,7 @@ var ChannelsSpanner = class ChannelsSpanner extends _mastra_core_storage.Channel
|
|
|
2834
2844
|
}
|
|
2835
2845
|
}
|
|
2836
2846
|
};
|
|
2837
|
-
|
|
2838
|
-
//#region src/storage/domains/datasets/index.ts
|
|
2847
|
+
// src/storage/domains/datasets/index.ts
|
|
2839
2848
|
function toDate$1(value) {
|
|
2840
2849
|
return value instanceof Date ? value : new Date(value);
|
|
2841
2850
|
}
|
|
@@ -4185,8 +4194,7 @@ var DatasetsSpanner = class DatasetsSpanner extends _mastra_core_storage.Dataset
|
|
|
4185
4194
|
}
|
|
4186
4195
|
}
|
|
4187
4196
|
};
|
|
4188
|
-
|
|
4189
|
-
//#region src/storage/domains/experiments/index.ts
|
|
4197
|
+
// src/storage/domains/experiments/index.ts
|
|
4190
4198
|
function toDate(value) {
|
|
4191
4199
|
return value instanceof Date ? value : new Date(value);
|
|
4192
4200
|
}
|
|
@@ -5180,8 +5188,7 @@ var ExperimentsSpanner = class ExperimentsSpanner extends _mastra_core_storage.E
|
|
|
5180
5188
|
}
|
|
5181
5189
|
}
|
|
5182
5190
|
};
|
|
5183
|
-
|
|
5184
|
-
//#region src/storage/domains/favorites/index.ts
|
|
5191
|
+
// src/storage/domains/favorites/index.ts
|
|
5185
5192
|
/**
|
|
5186
5193
|
* Maps a favorite entity type to the parent table whose denormalized
|
|
5187
5194
|
* `favoriteCount` column the favorites domain keeps in sync.
|
|
@@ -5526,8 +5533,7 @@ var FavoritesSpanner = class FavoritesSpanner extends _mastra_core_storage.Favor
|
|
|
5526
5533
|
} catch {}
|
|
5527
5534
|
}
|
|
5528
5535
|
};
|
|
5529
|
-
|
|
5530
|
-
//#region src/storage/domains/mcp-clients/index.ts
|
|
5536
|
+
// src/storage/domains/mcp-clients/index.ts
|
|
5531
5537
|
/**
|
|
5532
5538
|
* Spanner-backed storage for MCP-client definitions and their immutable versions.
|
|
5533
5539
|
* Mirrors the thin-record + versions pattern used by agents/skills/prompt-blocks.
|
|
@@ -6111,8 +6117,7 @@ var MCPClientsSpanner = class MCPClientsSpanner extends _mastra_core_storage.MCP
|
|
|
6111
6117
|
}
|
|
6112
6118
|
}
|
|
6113
6119
|
};
|
|
6114
|
-
|
|
6115
|
-
//#region src/storage/domains/mcp-servers/index.ts
|
|
6120
|
+
// src/storage/domains/mcp-servers/index.ts
|
|
6116
6121
|
/**
|
|
6117
6122
|
* Spanner-backed storage for MCP-server definitions and their immutable versions.
|
|
6118
6123
|
* Mirrors the thin-record + versions pattern used by agents/skills/prompt-blocks.
|
|
@@ -6720,8 +6725,7 @@ var MCPServersSpanner = class MCPServersSpanner extends _mastra_core_storage.MCP
|
|
|
6720
6725
|
}
|
|
6721
6726
|
}
|
|
6722
6727
|
};
|
|
6723
|
-
|
|
6724
|
-
//#region src/storage/db/run-fencing.ts
|
|
6728
|
+
// src/storage/db/run-fencing.ts
|
|
6725
6729
|
/** Epoch milliseconds on the database clock, read when the statement runs. */
|
|
6726
6730
|
const DB_NOW_MS = "UNIX_MILLIS(CURRENT_TIMESTAMP())";
|
|
6727
6731
|
/**
|
|
@@ -6774,8 +6778,7 @@ function withRunFence(db, claimsTable, fence, operation, write) {
|
|
|
6774
6778
|
return write(tx);
|
|
6775
6779
|
});
|
|
6776
6780
|
}
|
|
6777
|
-
|
|
6778
|
-
//#region src/storage/domains/memory/index.ts
|
|
6781
|
+
// src/storage/domains/memory/index.ts
|
|
6779
6782
|
function buildSpannerMessageMetadataFilter(metadataFilter) {
|
|
6780
6783
|
if (!metadataFilter) return {
|
|
6781
6784
|
clauses: [],
|
|
@@ -8045,8 +8048,7 @@ var MemorySpanner = class MemorySpanner extends _mastra_core_storage.MemoryStora
|
|
|
8045
8048
|
}
|
|
8046
8049
|
}
|
|
8047
8050
|
};
|
|
8048
|
-
|
|
8049
|
-
//#region src/storage/domains/observability/metrics.ts
|
|
8051
|
+
// src/storage/domains/observability/metrics.ts
|
|
8050
8052
|
/** Physical table name. Not exposed by `@mastra/core/storage` (no TABLE_METRICS
|
|
8051
8053
|
* constant exists), so the Spanner adapter owns the name itself. Follows the
|
|
8052
8054
|
* same `mastra_ai_*` convention as `TABLE_SPANS = 'mastra_ai_spans'`. */
|
|
@@ -9153,8 +9155,7 @@ async function clearMetrics(database) {
|
|
|
9153
9155
|
}
|
|
9154
9156
|
});
|
|
9155
9157
|
}
|
|
9156
|
-
|
|
9157
|
-
//#region src/storage/domains/observability/index.ts
|
|
9158
|
+
// src/storage/domains/observability/index.ts
|
|
9158
9159
|
function invalidTraceFilterKey(kind, key) {
|
|
9159
9160
|
return new _mastra_core_error.MastraError({
|
|
9160
9161
|
id: (0, _mastra_core_storage.createStorageErrorId)("SPANNER", "LIST_TRACES", "VALIDATE_FAILED"),
|
|
@@ -9770,8 +9771,7 @@ var ObservabilitySpanner = class ObservabilitySpanner extends _mastra_core_stora
|
|
|
9770
9771
|
return getMetricLabelValues(this.database, args, this.readOptions());
|
|
9771
9772
|
}
|
|
9772
9773
|
};
|
|
9773
|
-
|
|
9774
|
-
//#region src/storage/domains/prompt-blocks/index.ts
|
|
9774
|
+
// src/storage/domains/prompt-blocks/index.ts
|
|
9775
9775
|
/**
|
|
9776
9776
|
* Spanner-backed storage for prompt blocks and their immutable versions.
|
|
9777
9777
|
* Mirrors the thin-record + versions pattern used by agents/skills/scorer-definitions.
|
|
@@ -10362,8 +10362,7 @@ var PromptBlocksSpanner = class PromptBlocksSpanner extends _mastra_core_storage
|
|
|
10362
10362
|
}
|
|
10363
10363
|
}
|
|
10364
10364
|
};
|
|
10365
|
-
|
|
10366
|
-
//#region src/storage/domains/schedules/index.ts
|
|
10365
|
+
// src/storage/domains/schedules/index.ts
|
|
10367
10366
|
function rowToSchedule(row) {
|
|
10368
10367
|
const transformed = transformFromSpannerRow({
|
|
10369
10368
|
tableName: _mastra_core_storage.TABLE_SCHEDULES,
|
|
@@ -10861,8 +10860,7 @@ var SchedulesSpanner = class SchedulesSpanner extends _mastra_core_storage.Sched
|
|
|
10861
10860
|
}
|
|
10862
10861
|
}
|
|
10863
10862
|
};
|
|
10864
|
-
|
|
10865
|
-
//#region src/storage/domains/scorer-definitions/index.ts
|
|
10863
|
+
// src/storage/domains/scorer-definitions/index.ts
|
|
10866
10864
|
/**
|
|
10867
10865
|
* Spanner-backed storage for scorer definitions and their immutable versions.
|
|
10868
10866
|
* Mirrors the thin-record + versions pattern used by agents/skills/prompt-blocks.
|
|
@@ -11461,8 +11459,7 @@ var ScorerDefinitionsSpanner = class ScorerDefinitionsSpanner extends _mastra_co
|
|
|
11461
11459
|
}
|
|
11462
11460
|
}
|
|
11463
11461
|
};
|
|
11464
|
-
|
|
11465
|
-
//#region src/storage/domains/scores/index.ts
|
|
11462
|
+
// src/storage/domains/scores/index.ts
|
|
11466
11463
|
function transformScoreRow(row) {
|
|
11467
11464
|
const normalized = transformFromSpannerRow({
|
|
11468
11465
|
tableName: _mastra_core_storage.TABLE_SCORERS,
|
|
@@ -11744,8 +11741,7 @@ var ScoresSpanner = class ScoresSpanner extends _mastra_core_storage.ScoresStora
|
|
|
11744
11741
|
}
|
|
11745
11742
|
}
|
|
11746
11743
|
};
|
|
11747
|
-
|
|
11748
|
-
//#region src/storage/domains/skills/index.ts
|
|
11744
|
+
// src/storage/domains/skills/index.ts
|
|
11749
11745
|
/**
|
|
11750
11746
|
* Spanner-backed storage for skills and their immutable versions.
|
|
11751
11747
|
* Mirrors the thin-record + versions pattern used by agents/prompt-blocks/scorer-definitions.
|
|
@@ -12369,8 +12365,7 @@ var SkillsSpanner = class SkillsSpanner extends _mastra_core_storage.SkillsStora
|
|
|
12369
12365
|
}
|
|
12370
12366
|
}
|
|
12371
12367
|
};
|
|
12372
|
-
|
|
12373
|
-
//#region src/storage/domains/workflow-definitions/index.ts
|
|
12368
|
+
// src/storage/domains/workflow-definitions/index.ts
|
|
12374
12369
|
function rowToDefinition(row) {
|
|
12375
12370
|
const parsed = transformFromSpannerRow({
|
|
12376
12371
|
tableName: _mastra_core_storage.TABLE_WORKFLOW_DEFINITIONS,
|
|
@@ -12540,8 +12535,7 @@ var WorkflowDefinitionsSpanner = class WorkflowDefinitionsSpanner extends _mastr
|
|
|
12540
12535
|
});
|
|
12541
12536
|
}
|
|
12542
12537
|
};
|
|
12543
|
-
|
|
12544
|
-
//#region src/storage/domains/workflows/index.ts
|
|
12538
|
+
// src/storage/domains/workflows/index.ts
|
|
12545
12539
|
const RUN_OWNERS_TABLE = quoteIdent(_mastra_core_storage.TABLE_WORKFLOW_RUN_OWNERS, "table name");
|
|
12546
12540
|
const RUN_ID = quoteIdent("runId", "column name");
|
|
12547
12541
|
const OWNER_ID = quoteIdent("ownerId", "column name");
|
|
@@ -13247,8 +13241,7 @@ var WorkflowsSpanner = class WorkflowsSpanner extends _mastra_core_storage.Workf
|
|
|
13247
13241
|
}
|
|
13248
13242
|
}
|
|
13249
13243
|
};
|
|
13250
|
-
|
|
13251
|
-
//#region src/storage/domains/workspaces/index.ts
|
|
13244
|
+
// src/storage/domains/workspaces/index.ts
|
|
13252
13245
|
/** Snapshot config fields that live exclusively on version rows. */
|
|
13253
13246
|
const SNAPSHOT_FIELDS = [
|
|
13254
13247
|
"name",
|
|
@@ -13877,8 +13870,7 @@ var WorkspacesSpanner = class WorkspacesSpanner extends _mastra_core_storage.Wor
|
|
|
13877
13870
|
}
|
|
13878
13871
|
}
|
|
13879
13872
|
};
|
|
13880
|
-
|
|
13881
|
-
//#region src/storage/index.ts
|
|
13873
|
+
// src/storage/index.ts
|
|
13882
13874
|
/** Domain keys this adapter implements; the only valid values for `enabledDomains`. */
|
|
13883
13875
|
const SPANNER_DOMAIN_KEYS = [
|
|
13884
13876
|
"scores",
|
|
@@ -14073,7 +14065,6 @@ var SpannerStore = class extends _mastra_core_storage.MastraCompositeStore {
|
|
|
14073
14065
|
if (this.spanner) this.spanner.close();
|
|
14074
14066
|
}
|
|
14075
14067
|
};
|
|
14076
|
-
//#endregion
|
|
14077
14068
|
exports.AgentsSpanner = AgentsSpanner;
|
|
14078
14069
|
exports.BackgroundTasksSpanner = BackgroundTasksSpanner;
|
|
14079
14070
|
exports.BlobsSpanner = BlobsSpanner;
|