@phi-code-admin/phi-code 0.60.0 → 0.60.1
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 +1 -1
- package/scripts/postinstall.cjs +10 -0
package/package.json
CHANGED
package/scripts/postinstall.cjs
CHANGED
|
@@ -58,6 +58,16 @@ 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
|
|
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
|
+
}
|
|
70
|
+
|
|
61
71
|
function createLink(src, dest, name) {
|
|
62
72
|
try {
|
|
63
73
|
// Remove existing (symlink or directory)
|