@mastra/libsql 1.3.0-alpha.0 → 1.3.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 +50 -0
- package/dist/docs/SKILL.md +1 -1
- package/dist/docs/assets/SOURCE_MAP.json +1 -1
- package/dist/index.cjs +4 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +4 -4
- package/dist/index.js.map +1 -1
- package/dist/storage/domains/memory/index.d.ts +1 -1
- package/package.json +5 -5
package/dist/index.js
CHANGED
|
@@ -4333,18 +4333,18 @@ var MemoryLibSQL = class extends MemoryStorage {
|
|
|
4333
4333
|
);
|
|
4334
4334
|
}
|
|
4335
4335
|
}
|
|
4336
|
-
async
|
|
4336
|
+
async setPendingMessageTokens(id, tokenCount) {
|
|
4337
4337
|
try {
|
|
4338
4338
|
const result = await this.#client.execute({
|
|
4339
4339
|
sql: `UPDATE "${OM_TABLE}" SET
|
|
4340
|
-
"pendingMessageTokens" =
|
|
4340
|
+
"pendingMessageTokens" = ?,
|
|
4341
4341
|
"updatedAt" = ?
|
|
4342
4342
|
WHERE id = ?`,
|
|
4343
4343
|
args: [tokenCount, (/* @__PURE__ */ new Date()).toISOString(), id]
|
|
4344
4344
|
});
|
|
4345
4345
|
if (result.rowsAffected === 0) {
|
|
4346
4346
|
throw new MastraError({
|
|
4347
|
-
id: createStorageErrorId("LIBSQL", "
|
|
4347
|
+
id: createStorageErrorId("LIBSQL", "SET_PENDING_MESSAGE_TOKENS", "NOT_FOUND"),
|
|
4348
4348
|
text: `Observational memory record not found: ${id}`,
|
|
4349
4349
|
domain: ErrorDomain.STORAGE,
|
|
4350
4350
|
category: ErrorCategory.THIRD_PARTY,
|
|
@@ -4357,7 +4357,7 @@ var MemoryLibSQL = class extends MemoryStorage {
|
|
|
4357
4357
|
}
|
|
4358
4358
|
throw new MastraError(
|
|
4359
4359
|
{
|
|
4360
|
-
id: createStorageErrorId("LIBSQL", "
|
|
4360
|
+
id: createStorageErrorId("LIBSQL", "SET_PENDING_MESSAGE_TOKENS", "FAILED"),
|
|
4361
4361
|
domain: ErrorDomain.STORAGE,
|
|
4362
4362
|
category: ErrorCategory.THIRD_PARTY,
|
|
4363
4363
|
details: { id, tokenCount }
|