@phi-code-admin/phi-code 0.60.2 → 0.60.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@phi-code-admin/phi-code",
3
- "version": "0.60.2",
3
+ "version": "0.60.3",
4
4
  "description": "Coding agent CLI with read, bash, edit, write tools and session management",
5
5
  "type": "module",
6
6
  "piConfig": {
@@ -58,15 +58,21 @@ for (const pkg of sigmaPackages) {
58
58
  createLink(srcPkg, destLink, pkg);
59
59
  }
60
60
 
61
- // 3. Create default settings.json with quietStartup if it doesn't exist
61
+ // 3. Ensure settings.json has quietStartup: true
62
62
  const settingsPath = join(agentDir, "settings.json");
63
- if (!existsSync(settingsPath)) {
64
- try {
65
- const defaults = { quietStartup: true };
66
- require("fs").writeFileSync(settingsPath, JSON.stringify(defaults, null, 2), "utf-8");
67
- console.log(` Φ Created settings.json (quietStartup: true)`);
68
- } catch { /* skip */ }
69
- }
63
+ try {
64
+ let settings = {};
65
+ if (existsSync(settingsPath)) {
66
+ try {
67
+ settings = JSON.parse(require("fs").readFileSync(settingsPath, "utf-8"));
68
+ } catch { settings = {}; }
69
+ }
70
+ if (settings.quietStartup !== true) {
71
+ settings.quietStartup = true;
72
+ require("fs").writeFileSync(settingsPath, JSON.stringify(settings, null, 2), "utf-8");
73
+ console.log(` Φ Set quietStartup: true in settings.json`);
74
+ }
75
+ } catch { /* skip */ }
70
76
 
71
77
  function createLink(src, dest, name) {
72
78
  try {