@spences10/pi-settings
v0.1.1
Published
Shared my-pi settings store
Readme
@spences10/pi-settings
Shared settings store for my-pi and related @spences10/pi-*
packages.
This package is published so other published packages can depend on
the same settings helpers at install time. It is support
infrastructure, not a Pi extension package users normally install
directly with pi install.
Relationship to upstream Pi
Audit baseline: upstream Pi
0.82.0
owns ~/.pi/agent/settings.json, trusted project overrides in
.pi/settings.json, package/resource selection through pi config,
and project deltas using autoload: false. Use those native settings
for packages, extensions, skills, prompts, and themes.
This package intentionally keeps my-pi-settings.json as a separate,
global store for namespaced extension state such as profiles, UI
preferences, and resource-specific trust records. Those values are
outside Pi's SettingsManager schema and must not be read from
repo-controlled .pi/settings.json. The store delegates agent
directory resolution to Pi's getAgentDir(); it does not duplicate
Pi's global/project resource merge behavior.
API
get_settings_path()returns the canonical globalmy-pi-settings.jsonpath. It never resolves to.pi/settings.json.read_settings()andwrite_settings()read and write the full settings file.read_settings_section()reads a top-level settings section with a fallback.read_package_settings()andwrite_package_settings()manage package-specific settings.read_trust_settings()andwrite_trust_settings()manage trust settings.
