plugin-updater 1.3.3 → 1.3.4
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/README.md +2 -0
- package/lib/core.js +2 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -91,6 +91,8 @@ Deployed automatically to both apps on each `earlyLaunch` (`~/.config/opencode/c
|
|
|
91
91
|
|
|
92
92
|
## Configuration
|
|
93
93
|
|
|
94
|
+
> Config files are **auto-created with defaults on first run** (via core `ensureConfig`). **Global console logging** for every plugin is toggled in `config/settings.json` (`logConsole: true`, the opencode.json-equivalent).
|
|
95
|
+
|
|
94
96
|
Config file: `~/.config/opencode/config/plugin-updater.json` (preferred) or `~/.config/opencode/plugin-updater.json` (fallback); same under `~/.claude` for Claude Code.
|
|
95
97
|
|
|
96
98
|
| Key | Type | Default | Description |
|
package/lib/core.js
CHANGED
|
@@ -84,9 +84,10 @@ function loadConfig(name, configDir = getAppConfigDir()) {
|
|
|
84
84
|
return CACHE[key];
|
|
85
85
|
}
|
|
86
86
|
function ensureConfig(name, defaults, configDir = getAppConfigDir()) {
|
|
87
|
+
const trivial = Object.keys(defaults).every((k) => k === "logging");
|
|
87
88
|
const preferred = join2(configDir, "config", `${name}.json`);
|
|
88
89
|
const fallback = join2(configDir, `${name}.json`);
|
|
89
|
-
if (!existsSync3(preferred) && !existsSync3(fallback)) {
|
|
90
|
+
if (!trivial && !existsSync3(preferred) && !existsSync3(fallback)) {
|
|
90
91
|
try {
|
|
91
92
|
writeJson(preferred, defaults);
|
|
92
93
|
} catch {
|