pi-readseek 0.5.4 → 0.5.5

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pi-readseek",
3
- "version": "0.5.4",
3
+ "version": "0.5.5",
4
4
  "description": "Pi extension for readseek-backed hash-anchored read/edit/grep, structural code maps, structural search, and file exploration",
5
5
  "type": "module",
6
6
  "exports": {
@@ -143,8 +143,13 @@ function validateSettings(raw: unknown, source: string): ReadSeekSettingsResult
143
143
  return { settings, warnings };
144
144
  }
145
145
  if (!("readseek" in raw)) {
146
- if (Object.keys(raw).length > 0) {
147
- warnings.push({ source, path: "readseek", message: "Missing readseek section: every setting belongs under \"readseek\"" });
146
+ const misplaced = READSEEK_KEYS.filter((key) => key in raw);
147
+ if (misplaced.length > 0) {
148
+ warnings.push({
149
+ source,
150
+ path: misplaced[0],
151
+ message: `Readseek setting at top level: move ${misplaced.join(", ")} under "readseek"`,
152
+ });
148
153
  }
149
154
  return { settings, warnings };
150
155
  }