@compass-aiden/neo 0.2.0 → 0.2.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/dist/index.js CHANGED
@@ -8,7 +8,7 @@ import { spawn as spawn2 } from "node:child_process";
8
8
  import fs23 from "node:fs/promises";
9
9
 
10
10
  // ../core/dist/version.js
11
- var NEO_VERSION = "0.2.0";
11
+ var NEO_VERSION = "0.2.1";
12
12
 
13
13
  // ../core/dist/error.js
14
14
  var NeoError = class extends Error {
@@ -174,7 +174,7 @@ var isRecord = (value) => typeof value === "object" && value !== null && !Array.
174
174
  import path3 from "node:path";
175
175
  function resolveNeoHome({ env, homedir }) {
176
176
  const raw = env?.NEO_HOME?.trim();
177
- const value = raw ? expandTilde(raw, homedir) : path3.join(homedir, "neo");
177
+ const value = raw ? expandTilde(raw, homedir) : path3.join(homedir, ".neo");
178
178
  if (!path3.isAbsolute(value)) {
179
179
  throw new NeoError("state", `NEO_HOME must resolve to an absolute path, got: ${JSON.stringify(raw ?? value)}`);
180
180
  }
@@ -3722,6 +3722,10 @@ async function statusAudit(ports, home, opts) {
3722
3722
  report.notes.push(`ledger still records unconfigured target ${dir} (agent ${entry.agent}); links left as-is`);
3723
3723
  }
3724
3724
  }
3725
+ const legacyHome = path15.join(opts.homedir, "neo");
3726
+ if (!samePath(home, legacyHome) && await fileExists(path15.join(legacyHome, "config.yaml"))) {
3727
+ report.notes.push("legacy neo home found at ~/neo; move it to ~/.neo (or set NEO_HOME=~/neo to keep using it)");
3728
+ }
3725
3729
  for (const [dir, entry] of Object.entries(ledger.targets)) {
3726
3730
  const skills = [...entry.skills ?? []].length;
3727
3731
  const agentsMd = isRecord(entry.agentsMd) && entry.agentsMd.mounted === true;
@@ -5064,6 +5068,15 @@ async function cmdInit(args, io, deps) {
5064
5068
  const confirm = deps.confirm ?? confirmOnTty;
5065
5069
  io.stdout(`neo init: ${home}
5066
5070
  `);
5071
+ if (home !== path21.join(deps.homedir, "neo")) {
5072
+ try {
5073
+ await fs23.stat(path21.join(deps.homedir, "neo", "config.yaml"));
5074
+ io.stderr(
5075
+ "hint: legacy home ~/neo still exists; this version uses ~/.neo \u2014 move it (mv ~/neo ~/.neo) or set NEO_HOME=~/neo\n"
5076
+ );
5077
+ } catch {
5078
+ }
5079
+ }
5067
5080
  if (loaded.config.targets.length > 0) {
5068
5081
  io.stdout(`existing targets: ${[...configured].join(", ")}
5069
5082
  `);