@adhdev/daemon-standalone 0.9.82-rc.184 → 0.9.82-rc.185
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.js +15 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/vendor/mcp-server/index.js +9 -10
- package/vendor/mcp-server/index.js.map +1 -1
package/dist/index.js
CHANGED
|
@@ -87131,6 +87131,21 @@ var StandaloneServer = class {
|
|
|
87131
87131
|
}
|
|
87132
87132
|
};
|
|
87133
87133
|
async function main() {
|
|
87134
|
+
if (!process.env.ADHDEV_CONFIG_DIR || !process.env.ADHDEV_CONFIG_DIR.trim()) {
|
|
87135
|
+
process.env.ADHDEV_CONFIG_DIR = path4.join(os5.homedir(), ".adhdev-standalone");
|
|
87136
|
+
}
|
|
87137
|
+
try {
|
|
87138
|
+
const isolatedDir = process.env.ADHDEV_CONFIG_DIR;
|
|
87139
|
+
const legacyLedger = path4.join(os5.homedir(), ".adhdev", "mesh-ledger");
|
|
87140
|
+
const isolatedExists = fs3.existsSync(isolatedDir);
|
|
87141
|
+
const isolatedEmpty = !isolatedExists || fs3.readdirSync(isolatedDir).filter((name) => name !== ".DS_Store").length === 0;
|
|
87142
|
+
const legacyHasLedger = fs3.existsSync(legacyLedger) && fs3.readdirSync(legacyLedger).some((name) => name.endsWith(".jsonl"));
|
|
87143
|
+
if (isolatedEmpty && legacyHasLedger) {
|
|
87144
|
+
const line = "\u2139 standalone now stores its state under " + isolatedDir + ". If you want to carry over prior mesh ledger from ~/.adhdev/mesh-ledger, copy ~/.adhdev/mesh-ledger to " + path4.join(isolatedDir, "mesh-ledger") + " once and restart. (Set ADHDEV_CONFIG_DIR=~/.adhdev to keep the legacy location.)";
|
|
87145
|
+
process.stderr.write(line + "\n");
|
|
87146
|
+
}
|
|
87147
|
+
} catch {
|
|
87148
|
+
}
|
|
87134
87149
|
const helperMode = await (0, import_daemon_core2.maybeRunDaemonUpgradeHelperFromEnv)();
|
|
87135
87150
|
if (helperMode) {
|
|
87136
87151
|
return;
|