@mastra/libsql 1.25.0 → 1.25.1-alpha.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/dist/docs/SKILL.md +1 -1
- package/dist/docs/assets/SOURCE_MAP.json +1 -1
- package/dist/docs/references/docs-memory-semantic-recall.md +35 -1
- package/dist/docs/references/docs-storage.md +1 -0
- package/dist/index.cjs +3 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +3 -2
- package/dist/index.js.map +1 -1
- package/dist/storage/domains/schedules/index.d.ts +2 -2
- package/dist/storage/domains/schedules/index.d.ts.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -11454,16 +11454,17 @@ var SchedulesLibSQL = class SchedulesLibSQL extends SchedulesStorage {
|
|
|
11454
11454
|
if (!updated) throw new Error(`Schedule ${id} not found`);
|
|
11455
11455
|
return updated;
|
|
11456
11456
|
}
|
|
11457
|
-
async updateScheduleNextFire(id, expectedNextFireAt, newNextFireAt, lastFireAt, lastRunId) {
|
|
11457
|
+
async updateScheduleNextFire(id, expectedNextFireAt, newNextFireAt, lastFireAt, lastRunId, newStatus) {
|
|
11458
11458
|
return ((await this.#client.execute({
|
|
11459
11459
|
sql: `UPDATE ${TABLE_SCHEDULES}
|
|
11460
|
-
SET next_fire_at = ?, last_fire_at = ?, last_run_id = ?, updated_at =
|
|
11460
|
+
SET next_fire_at = ?, last_fire_at = ?, last_run_id = ?, updated_at = ?, status = COALESCE(?, status)
|
|
11461
11461
|
WHERE id = ? AND next_fire_at = ? AND status = ?`,
|
|
11462
11462
|
args: [
|
|
11463
11463
|
newNextFireAt,
|
|
11464
11464
|
lastFireAt,
|
|
11465
11465
|
lastRunId,
|
|
11466
11466
|
Date.now(),
|
|
11467
|
+
newStatus ?? null,
|
|
11467
11468
|
id,
|
|
11468
11469
|
expectedNextFireAt,
|
|
11469
11470
|
"active"
|