kitowall 3.3.0 → 3.4.0
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/dist/cli.js +15 -0
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -1503,6 +1503,7 @@ async function main() {
|
|
|
1503
1503
|
const pack = cleanOpt(getOptionValue(args, '--pack'));
|
|
1504
1504
|
const namespace = cleanOpt(getOptionValue(args, '--namespace')) ?? 'kitowall';
|
|
1505
1505
|
const force = cmd === 'rotate-now' || args.includes('--force');
|
|
1506
|
+
const forceStatic = args.includes('--force-static');
|
|
1506
1507
|
if (state.mode === 'manual' && !force) {
|
|
1507
1508
|
console.log(JSON.stringify({
|
|
1508
1509
|
ok: true,
|
|
@@ -1513,6 +1514,20 @@ async function main() {
|
|
|
1513
1514
|
}, null, 2));
|
|
1514
1515
|
return;
|
|
1515
1516
|
}
|
|
1517
|
+
// If live mode currently owns wallpaper state, skip static rotation unless explicitly forced.
|
|
1518
|
+
if (!forceStatic) {
|
|
1519
|
+
const coexist = await (0, workshop_1.workshopCoexistenceStatus)().catch(() => ({ ok: true, snapshot: [], current: {} }));
|
|
1520
|
+
if (Array.isArray(coexist.snapshot) && coexist.snapshot.length > 0) {
|
|
1521
|
+
console.log(JSON.stringify({
|
|
1522
|
+
ok: true,
|
|
1523
|
+
skipped: true,
|
|
1524
|
+
reason: 'livewallpaper_active',
|
|
1525
|
+
hint: 'Use: kitowall next --force-static (or rotate-now --force-static) to switch back to static mode',
|
|
1526
|
+
namespace
|
|
1527
|
+
}, null, 2));
|
|
1528
|
+
return;
|
|
1529
|
+
}
|
|
1530
|
+
}
|
|
1516
1531
|
await switchToStaticWallpaperMode();
|
|
1517
1532
|
const result = await controller.applyNext(pack, namespace);
|
|
1518
1533
|
console.log(JSON.stringify({
|