@eminent337/aery 0.1.86 → 0.1.88

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.
@@ -24,6 +24,7 @@ import { isInstallTelemetryEnabled } from "../../core/telemetry.js";
24
24
  import { getChangelogPath, getNewEntries, parseChangelog } from "../../utils/changelog.js";
25
25
  import { copyToClipboard } from "../../utils/clipboard.js";
26
26
  import { extensionForImageMimeType, readClipboardImage } from "../../utils/clipboard-image.js";
27
+ import { wireCoreExtensions } from "../../migrations.js";
27
28
  import { parseGitUrl } from "../../utils/git.js";
28
29
  import { killTrackedDetachedChildren } from "../../utils/shell.js";
29
30
  import { ensureTool } from "../../utils/tools-manager.js";
@@ -683,41 +684,9 @@ export class InteractiveMode {
683
684
  // Wire core extensions into settings.json
684
685
  const repoPath = join(homedir(), ".aery", "agent", "git", "github.com", "eminent337", "aery-extensions");
685
686
  const settingsPath = join(homedir(), ".aery", "agent", "settings.json");
686
- const CORE = [
687
- "damage-control",
688
- "provider-profiles",
689
- "model-failover",
690
- "web-search",
691
- "web-fetch",
692
- "commands",
693
- "hooks",
694
- "circuit-breaker",
695
- "auto-router",
696
- "memory-include",
697
- "aery-header",
698
- "aery-footer",
699
- "multi-agent",
700
- "agent-chain",
701
- "agent-teams",
702
- "help",
703
- "default-agents",
704
- "aery-doctor",
705
- "aery-team",
706
- ["subagent", "subagent/index"],
707
- ];
708
- if (existsSync(settingsPath)) {
709
- const settings = JSON.parse(readFileSync(settingsPath, "utf-8"));
710
- const existing = new Set(settings.extensions || []);
711
- for (const ext of CORE) {
712
- const [_name, filePath] = Array.isArray(ext) ? ext : [ext, ext];
713
- const p = join(repoPath, "core", `${filePath}.ts`);
714
- if (existsSync(p) && !existing.has(p)) {
715
- settings.extensions = settings.extensions || [];
716
- settings.extensions.push(p);
717
- }
718
- }
719
- writeFileSync(settingsPath, JSON.stringify({ ...settings, quietStartup: true }, null, 2));
720
- }
687
+ wireCoreExtensions(repoPath, settingsPath);
688
+ const settings = existsSync(settingsPath) ? JSON.parse(readFileSync(settingsPath, "utf-8")) : {};
689
+ writeFileSync(settingsPath, `${JSON.stringify({ ...settings, quietStartup: true }, null, 2)}\n`);
721
690
  }
722
691
  catch {
723
692
  // Silent fail — user can install manually