refactor(sf-ext): remove local sfHome() clone in preferences.js
preferences.js had its own copy of sfHome() (without resolve() canonicalization). Replace with import from sf-home.js — single source of truth. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
parent
90dc3c6798
commit
e18a0001bb
1 changed files with 1 additions and 4 deletions
|
|
@ -10,11 +10,11 @@
|
|||
* statements continue to work without modification.
|
||||
*/
|
||||
import { existsSync, readFileSync } from "node:fs";
|
||||
import { homedir } from "node:os";
|
||||
import { dirname, join, resolve } from "node:path";
|
||||
import { normalizeStringArray } from "@singularity-forge/coding-agent";
|
||||
import { parse as parseYaml } from "yaml";
|
||||
import { sfRoot } from "./paths.js";
|
||||
import { sfHome } from "./sf-home.js";
|
||||
import {
|
||||
_initPrefsLoader,
|
||||
resolveProfileDefaults as _resolveProfileDefaults,
|
||||
|
|
@ -70,9 +70,6 @@ export {
|
|||
} from "./preferences-models.js";
|
||||
|
||||
// ─── Path Constants & Getters ───────────────────────────────────────────────
|
||||
function sfHome() {
|
||||
return process.env.SF_HOME || join(homedir(), ".sf");
|
||||
}
|
||||
|
||||
/**
|
||||
* Return the canonical path to the SF agent settings file (~/.sf/agent/settings.json).
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue