@mastra/duckdb 1.11.1 → 1.11.2-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/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/{observability-BVE7R9Oz.js → observability-D4A1jrAF.js} +24 -6
- package/dist/{observability-BVE7R9Oz.js.map → observability-D4A1jrAF.js.map} +1 -1
- package/dist/{observability-B8uK8pWn.cjs → observability-DRS8TmSs.cjs} +24 -6
- package/dist/{observability-B8uK8pWn.cjs.map → observability-DRS8TmSs.cjs.map} +1 -1
- package/dist/storage/domains/observability/tracing.d.ts.map +1 -1
- package/package.json +2 -2
package/dist/docs/SKILL.md
CHANGED
package/dist/index.cjs
CHANGED
|
@@ -550,7 +550,7 @@ var ObservabilityStorageDuckDB = class extends _mastra_core_storage.Observabilit
|
|
|
550
550
|
async loadDelegate() {
|
|
551
551
|
if (this.delegate) return this.delegate;
|
|
552
552
|
if (this.unavailableError) return null;
|
|
553
|
-
if (!this.loadPromise) this.loadPromise = Promise.resolve().then(() => require("./observability-
|
|
553
|
+
if (!this.loadPromise) this.loadPromise = Promise.resolve().then(() => require("./observability-DRS8TmSs.cjs")).then(({ ObservabilityStorageDuckDB }) => {
|
|
554
554
|
const delegate = new ObservabilityStorageDuckDB({ db: this.db });
|
|
555
555
|
this.delegate = delegate;
|
|
556
556
|
return delegate;
|
package/dist/index.js
CHANGED
|
@@ -549,7 +549,7 @@ var ObservabilityStorageDuckDB = class extends ObservabilityStorage {
|
|
|
549
549
|
async loadDelegate() {
|
|
550
550
|
if (this.delegate) return this.delegate;
|
|
551
551
|
if (this.unavailableError) return null;
|
|
552
|
-
if (!this.loadPromise) this.loadPromise = import("./observability-
|
|
552
|
+
if (!this.loadPromise) this.loadPromise = import("./observability-D4A1jrAF.js").then(({ ObservabilityStorageDuckDB }) => {
|
|
553
553
|
const delegate = new ObservabilityStorageDuckDB({ db: this.db });
|
|
554
554
|
this.delegate = delegate;
|
|
555
555
|
return delegate;
|
|
@@ -4204,6 +4204,15 @@ async function listTraceRows(db, args, reconstructSelect, mapRow, toSpans) {
|
|
|
4204
4204
|
`;
|
|
4205
4205
|
const countResult = await db.query(countSql, prefilterParams);
|
|
4206
4206
|
const total = Number(countResult[0]?.total ?? 0);
|
|
4207
|
+
if (total === 0 || offset >= total) return {
|
|
4208
|
+
pagination: {
|
|
4209
|
+
total,
|
|
4210
|
+
page,
|
|
4211
|
+
perPage,
|
|
4212
|
+
hasMore: false
|
|
4213
|
+
},
|
|
4214
|
+
spans: []
|
|
4215
|
+
};
|
|
4207
4216
|
const pageSql = `
|
|
4208
4217
|
WITH page_roots AS (
|
|
4209
4218
|
SELECT traceId, spanId, min(timestamp) AS anchorStartedAt
|
|
@@ -4260,6 +4269,15 @@ async function listTraceRows(db, args, reconstructSelect, mapRow, toSpans) {
|
|
|
4260
4269
|
`;
|
|
4261
4270
|
const countResult = await db.query(countSql, [...prefilterParams, ...postAggParams]);
|
|
4262
4271
|
const total = Number(countResult[0]?.total ?? 0);
|
|
4272
|
+
if (total === 0 || page * perPage >= total) return {
|
|
4273
|
+
pagination: {
|
|
4274
|
+
total,
|
|
4275
|
+
page,
|
|
4276
|
+
perPage,
|
|
4277
|
+
hasMore: false
|
|
4278
|
+
},
|
|
4279
|
+
spans: []
|
|
4280
|
+
};
|
|
4263
4281
|
const dataSql = `
|
|
4264
4282
|
${cteSql},
|
|
4265
4283
|
page_roots AS (
|
|
@@ -4567,9 +4585,9 @@ async function listBranches(db, args) {
|
|
|
4567
4585
|
`;
|
|
4568
4586
|
const countResult = await db.query(countSql, prefilterParams);
|
|
4569
4587
|
const total = Number(countResult[0]?.total ?? 0);
|
|
4570
|
-
if (total === 0) return {
|
|
4588
|
+
if (total === 0 || page * perPage >= total) return {
|
|
4571
4589
|
pagination: {
|
|
4572
|
-
total
|
|
4590
|
+
total,
|
|
4573
4591
|
page,
|
|
4574
4592
|
perPage,
|
|
4575
4593
|
hasMore: false
|
|
@@ -4630,9 +4648,9 @@ async function listBranches(db, args) {
|
|
|
4630
4648
|
`;
|
|
4631
4649
|
const countResult = await db.query(countSql, [...prefilterParams, ...postAggParams]);
|
|
4632
4650
|
const total = Number(countResult[0]?.total ?? 0);
|
|
4633
|
-
if (total === 0) return {
|
|
4651
|
+
if (total === 0 || page * perPage >= total) return {
|
|
4634
4652
|
pagination: {
|
|
4635
|
-
total
|
|
4653
|
+
total,
|
|
4636
4654
|
page,
|
|
4637
4655
|
perPage,
|
|
4638
4656
|
hasMore: false
|
|
@@ -4744,7 +4762,7 @@ async function getBranchDeltaCursor(db, filters) {
|
|
|
4744
4762
|
branch_anchors AS (
|
|
4745
4763
|
SELECT reconstructed.*, candidate_anchors.cursorId AS anchorCursorId
|
|
4746
4764
|
FROM (
|
|
4747
|
-
${
|
|
4765
|
+
${buildPostAggReconstructSelect(postAgg, "startedAt")}
|
|
4748
4766
|
WHERE (traceId, spanId) IN (SELECT traceId, spanId FROM candidate_anchors)
|
|
4749
4767
|
GROUP BY traceId, spanId
|
|
4750
4768
|
) AS reconstructed
|
|
@@ -5065,4 +5083,4 @@ var ObservabilityStorageDuckDB = class ObservabilityStorageDuckDB extends Observ
|
|
|
5065
5083
|
//#endregion
|
|
5066
5084
|
export { ObservabilityStorageDuckDB };
|
|
5067
5085
|
|
|
5068
|
-
//# sourceMappingURL=observability-
|
|
5086
|
+
//# sourceMappingURL=observability-D4A1jrAF.js.map
|