@bitcobblers/wod-wiki-wql 0.35.2117 → 0.35.2119

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/index.cjs CHANGED
@@ -654,10 +654,10 @@ function validateSourceFilter(filters) {
654
654
  if (val === "collection" || val === "collections") {
655
655
  return `source:${val} is retired \u2014 collections were renamed to feeds; use source:feeds or :feed{}.`;
656
656
  }
657
- if (WQL_SOURCE_VALUES.includes(val) || val === "feed" || val.startsWith("collection:")) {
657
+ if (WQL_SOURCE_VALUES.includes(val) || val === "feed" || val.startsWith("collection:") || val.startsWith("feed:")) {
658
658
  continue;
659
659
  }
660
- return `Unknown source "${val}". Try: ${WQL_SOURCE_VALUES.join(", ")} (or collection:<id>)`;
660
+ return `Unknown source "${val}". Try: ${WQL_SOURCE_VALUES.join(", ")} (or collection:<id>, feed:<id>)`;
661
661
  }
662
662
  }
663
663
  return void 0;
@@ -1144,9 +1144,7 @@ function findTargetAdvisories(query) {
1144
1144
  if (query.groupBy?.length) {
1145
1145
  const dimensions = wqlGroupingDimensions(target, "find");
1146
1146
  const unsupported = query.groupBy.filter((dim) => !dimensions.some((d) => d.toLowerCase() === dim.toLowerCase()));
1147
- if (target === "note" || target === "block") {
1148
- if (unsupported.length) advisories.push(`:${target} cannot group by ${unsupported.join(", ")}; grouped by tag instead. Valid alternatives: ${dimensions.join(", ")}.`);
1149
- } else if (target === "segment" || target === "event") {
1147
+ if (target === "note" || target === "block") ; else if (target === "segment" || target === "event") {
1150
1148
  const selected = query.pipes?.select?.map((column) => column.col);
1151
1149
  const unavailable = query.groupBy.filter((dim) => selected ? !selected.includes(dim) : !dimensions.includes(dim));
1152
1150
  if (unavailable.length) advisories.push(`:${target} groups only emitted table columns; ${unavailable.join(", ")} may be unassigned. Select each grouping column explicitly.`);
@@ -2934,6 +2932,12 @@ function sourceMatches(item, kind) {
2934
2932
  if (kind === "playground") {
2935
2933
  return sourceId === "playground" || item.type === "playground";
2936
2934
  }
2935
+ if (kind.startsWith("feed:")) {
2936
+ const rest = kind.slice("feed:".length).replace(/^feeds\//, "");
2937
+ if (!rest || !sourceId?.startsWith("feed:")) return false;
2938
+ const idRest = sourceId.slice("feed:".length).replace(/^feeds\//, "");
2939
+ return idRest === rest || idRest.startsWith(`${rest}/`);
2940
+ }
2937
2941
  return sourceId === kind;
2938
2942
  }
2939
2943
  function applySourceFilter(items, filters) {
@@ -5217,13 +5221,13 @@ ${query}
5217
5221
  }
5218
5222
 
5219
5223
  // src/version.ts
5220
- var VERSION = "0.35.2117";
5221
- var GIT_SHA = "03d1dfc";
5222
- var BUILD_TIME = "2026-10-12T20:08:12.374Z";
5224
+ var VERSION = "0.35.2119";
5225
+ var GIT_SHA = "e0eb840";
5226
+ var BUILD_TIME = "2026-10-13T06:24:52.520Z";
5223
5227
  var SEMVER = {
5224
- version: "0.35.2117",
5225
- gitSha: "03d1dfc",
5226
- buildTime: "2026-10-12T20:08:12.374Z"
5228
+ version: "0.35.2119",
5229
+ gitSha: "e0eb840",
5230
+ buildTime: "2026-10-13T06:24:52.520Z"
5227
5231
  };
5228
5232
 
5229
5233
  Object.defineProperty(exports, "SYSTEM_DEFAULT_OUTPUT_UNIT", {