sticky-note-cli 3.1.13 → 3.1.14
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/bin/cli.js +7 -0
- package/package.json +1 -1
package/bin/cli.js
CHANGED
|
@@ -847,6 +847,9 @@ async function cmdInit() {
|
|
|
847
847
|
configTemplate.inject_token_budget = injectTokenBudgetResolved;
|
|
848
848
|
configTemplate.hook_version = VERSION;
|
|
849
849
|
configTemplate.min_version = VERSION;
|
|
850
|
+
// When cloud is configured, default auto_push to true so threads reach
|
|
851
|
+
// GitHub even when Cloudflare KV hits its daily write limit.
|
|
852
|
+
if (cloudProvisionedUrl || configStickyUrl) configTemplate.auto_push = true;
|
|
850
853
|
fs.writeFileSync(configDest, JSON.stringify(configTemplate, null, 2) + "\n");
|
|
851
854
|
} else {
|
|
852
855
|
// Update existing config with new settings
|
|
@@ -859,6 +862,10 @@ async function cmdInit() {
|
|
|
859
862
|
existing.hook_version = VERSION;
|
|
860
863
|
existing.min_version = bumpMinVersion(existing.min_version, VERSION);
|
|
861
864
|
if (cloudProvisionedUrl) existing.sticky_url = cloudProvisionedUrl;
|
|
865
|
+
// Enable auto_push when cloud is configured (if not already explicitly set)
|
|
866
|
+
if ((cloudProvisionedUrl || configStickyUrl) && existing.auto_push === false) {
|
|
867
|
+
existing.auto_push = true;
|
|
868
|
+
}
|
|
862
869
|
fs.writeFileSync(configDest, JSON.stringify(existing, null, 2) + "\n");
|
|
863
870
|
}
|
|
864
871
|
print(" [OK] .sticky-note/sticky-note-config.json");
|