@rubytech/create-realagent 1.0.437 → 1.0.438

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.
Files changed (2) hide show
  1. package/dist/index.js +18 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -206,7 +206,7 @@ function installSystemDeps() {
206
206
  return;
207
207
  }
208
208
  shell("apt-get", ["update"], { sudo: true });
209
- shell("apt-get", ["install", "-y", "curl", "git", "unzip", "jq", "avahi-daemon", "avahi-utils", "poppler-utils"], { sudo: true });
209
+ shell("apt-get", ["install", "-y", "curl", "git", "unzip", "jq", "avahi-daemon", "avahi-utils", "poppler-utils", "ffmpeg"], { sudo: true });
210
210
  shell("apt-get", ["install", "-y", "tigervnc-standalone-server", "python3-websockify", "novnc", "xdg-utils", "chromium"], { sudo: true });
211
211
  // Set hostname from brand manifest
212
212
  try {
@@ -541,6 +541,23 @@ function deployPayload() {
541
541
  mkdirSync(persistentDir, { recursive: true });
542
542
  cpSync(oldAccountsDir, persistentAccountsDir, { recursive: true });
543
543
  }
544
+ // Migrate secrets from ~/.maxy/ to brand-specific config dir.
545
+ // Pre-fix code (before Task 262) hardcoded ~/.maxy/ for all brands.
546
+ // On branded builds (configDir != .maxy), secrets may exist at ~/.maxy/ but not
547
+ // at the brand-specific location. Copy them over so they survive the path fix.
548
+ if (BRAND.configDir !== ".maxy") {
549
+ const legacyDir = resolve(process.env.HOME ?? "/root", ".maxy");
550
+ const MIGRATABLE_SECRETS = [".anthropic-api-key", ".admin-pin", ".remote-password"];
551
+ for (const secret of MIGRATABLE_SECRETS) {
552
+ const legacyFile = join(legacyDir, secret);
553
+ const brandFile = join(persistentDir, secret);
554
+ if (existsSync(legacyFile) && !existsSync(brandFile)) {
555
+ mkdirSync(persistentDir, { recursive: true });
556
+ cpSync(legacyFile, brandFile);
557
+ console.log(` Migrated ${secret} from ~/.maxy/ to ~/${BRAND.configDir}/`);
558
+ }
559
+ }
560
+ }
544
561
  // Sync runtime account data to persistent backup before wipe.
545
562
  // The admin agent writes SOUL.md and other files at runtime — capture
546
563
  // those changes so they survive the directory wipe that follows.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rubytech/create-realagent",
3
- "version": "1.0.437",
3
+ "version": "1.0.438",
4
4
  "description": "Install Real Agent — Built for agents. By agents.",
5
5
  "bin": {
6
6
  "create-realagent": "./dist/index.js"