@mastra/pg 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 +54 -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
|
@@ -5692,7 +5692,7 @@ var MemoryPG = class _MemoryPG extends MemoryStorage {
|
|
|
5692
5692
|
);
|
|
5693
5693
|
}
|
|
5694
5694
|
}
|
|
5695
|
-
async
|
|
5695
|
+
async setPendingMessageTokens(id, tokenCount) {
|
|
5696
5696
|
try {
|
|
5697
5697
|
const tableName = getTableName3({
|
|
5698
5698
|
indexName: OM_TABLE,
|
|
@@ -5701,7 +5701,7 @@ var MemoryPG = class _MemoryPG extends MemoryStorage {
|
|
|
5701
5701
|
const nowStr = (/* @__PURE__ */ new Date()).toISOString();
|
|
5702
5702
|
const result = await this.#db.client.query(
|
|
5703
5703
|
`UPDATE ${tableName} SET
|
|
5704
|
-
"pendingMessageTokens" =
|
|
5704
|
+
"pendingMessageTokens" = $1,
|
|
5705
5705
|
"updatedAt" = $2,
|
|
5706
5706
|
"updatedAtZ" = $3
|
|
5707
5707
|
WHERE id = $4`,
|
|
@@ -5709,7 +5709,7 @@ var MemoryPG = class _MemoryPG extends MemoryStorage {
|
|
|
5709
5709
|
);
|
|
5710
5710
|
if (result.rowCount === 0) {
|
|
5711
5711
|
throw new MastraError({
|
|
5712
|
-
id: createStorageErrorId("PG", "
|
|
5712
|
+
id: createStorageErrorId("PG", "SET_PENDING_MESSAGE_TOKENS", "NOT_FOUND"),
|
|
5713
5713
|
text: `Observational memory record not found: ${id}`,
|
|
5714
5714
|
domain: ErrorDomain.STORAGE,
|
|
5715
5715
|
category: ErrorCategory.THIRD_PARTY,
|
|
@@ -5722,7 +5722,7 @@ var MemoryPG = class _MemoryPG extends MemoryStorage {
|
|
|
5722
5722
|
}
|
|
5723
5723
|
throw new MastraError(
|
|
5724
5724
|
{
|
|
5725
|
-
id: createStorageErrorId("PG", "
|
|
5725
|
+
id: createStorageErrorId("PG", "SET_PENDING_MESSAGE_TOKENS", "FAILED"),
|
|
5726
5726
|
domain: ErrorDomain.STORAGE,
|
|
5727
5727
|
category: ErrorCategory.THIRD_PARTY,
|
|
5728
5728
|
details: { id, tokenCount }
|