@d3ara1n/pi-session-namer 0.1.2 → 0.1.3

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/README.md CHANGED
@@ -47,9 +47,7 @@ Project-level `.pi/settings.json` overrides global settings.
47
47
 
48
48
  ## Dependencies
49
49
 
50
- - `@earendil-works/pi-ai` — `complete()` for LLM calls
51
- - `@earendil-works/pi-coding-agent` — Extension API
52
- - `@d3ara1n/pi-model-roles` — Model role resolution
50
+ - [`@d3ara1n/pi-model-roles`](../pi-model-roles)model role resolution
53
51
 
54
52
  ## Install
55
53
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@d3ara1n/pi-session-namer",
3
- "version": "0.1.2",
3
+ "version": "0.1.3",
4
4
  "type": "module",
5
5
  "description": "Auto-name pi sessions using a cheap side agent — generates concise titles from the first user message",
6
6
  "main": "src/index.ts",
package/src/config.ts CHANGED
@@ -21,8 +21,7 @@ function readSettingsFile(filePath: string): any {
21
21
  try {
22
22
  if (!fs.existsSync(filePath)) return {};
23
23
  const content = fs.readFileSync(filePath, "utf-8");
24
- const stripped = content.replace(/\/\/.*$/gm, "").replace(/\/\*[\s\S]*?\*\//g, "");
25
- return JSON.parse(stripped);
24
+ return JSON.parse(content);
26
25
  } catch {
27
26
  return {};
28
27
  }