@mastra/libsql 1.3.0-alpha.0 → 1.3.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # @mastra/libsql
2
2
 
3
+ ## 1.3.0-alpha.1
4
+
5
+ ### Patch Changes
6
+
7
+ - Fixed observational memory progress bars resetting to zero after agent responses finish. The messages and observations sidebar bars now retain their values on stream completion, cancellation, and page reload. Also added a buffer-status endpoint so buffering badges resolve with accurate token counts instead of spinning forever when buffering outlives the stream. ([#12934](https://github.com/mastra-ai/mastra/pull/12934))
8
+
9
+ - Updated dependencies [[`b31c922`](https://github.com/mastra-ai/mastra/commit/b31c922215b513791d98feaea1b98784aa00803a)]:
10
+ - @mastra/core@1.3.0-alpha.2
11
+
3
12
  ## 1.3.0-alpha.0
4
13
 
5
14
  ### Minor Changes
@@ -3,7 +3,7 @@ name: mastra-libsql
3
3
  description: Documentation for @mastra/libsql. Use when working with @mastra/libsql APIs, configuration, or implementation.
4
4
  metadata:
5
5
  package: "@mastra/libsql"
6
- version: "1.3.0-alpha.0"
6
+ version: "1.3.0-alpha.1"
7
7
  ---
8
8
 
9
9
  ## When to use
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.3.0-alpha.0",
2
+ "version": "1.3.0-alpha.1",
3
3
  "package": "@mastra/libsql",
4
4
  "exports": {},
5
5
  "modules": {}
package/dist/index.cjs CHANGED
@@ -4335,18 +4335,18 @@ var MemoryLibSQL = class extends storage.MemoryStorage {
4335
4335
  );
4336
4336
  }
4337
4337
  }
4338
- async addPendingMessageTokens(id, tokenCount) {
4338
+ async setPendingMessageTokens(id, tokenCount) {
4339
4339
  try {
4340
4340
  const result = await this.#client.execute({
4341
4341
  sql: `UPDATE "${OM_TABLE}" SET
4342
- "pendingMessageTokens" = "pendingMessageTokens" + ?,
4342
+ "pendingMessageTokens" = ?,
4343
4343
  "updatedAt" = ?
4344
4344
  WHERE id = ?`,
4345
4345
  args: [tokenCount, (/* @__PURE__ */ new Date()).toISOString(), id]
4346
4346
  });
4347
4347
  if (result.rowsAffected === 0) {
4348
4348
  throw new error.MastraError({
4349
- id: storage.createStorageErrorId("LIBSQL", "ADD_PENDING_MESSAGE_TOKENS", "NOT_FOUND"),
4349
+ id: storage.createStorageErrorId("LIBSQL", "SET_PENDING_MESSAGE_TOKENS", "NOT_FOUND"),
4350
4350
  text: `Observational memory record not found: ${id}`,
4351
4351
  domain: error.ErrorDomain.STORAGE,
4352
4352
  category: error.ErrorCategory.THIRD_PARTY,
@@ -4359,7 +4359,7 @@ var MemoryLibSQL = class extends storage.MemoryStorage {
4359
4359
  }
4360
4360
  throw new error.MastraError(
4361
4361
  {
4362
- id: storage.createStorageErrorId("LIBSQL", "ADD_PENDING_MESSAGE_TOKENS", "FAILED"),
4362
+ id: storage.createStorageErrorId("LIBSQL", "SET_PENDING_MESSAGE_TOKENS", "FAILED"),
4363
4363
  domain: error.ErrorDomain.STORAGE,
4364
4364
  category: error.ErrorCategory.THIRD_PARTY,
4365
4365
  details: { id, tokenCount }