ccdeck 3.48.0 → 3.48.1

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.
@@ -1 +1 @@
1
- import"./app-F1xryJpn.js";(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const e of document.querySelectorAll('link[rel="modulepreload"]'))i(e);new MutationObserver(e=>{for(const r of e)if(r.type==="childList")for(const o of r.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&i(o)}).observe(document,{childList:!0,subtree:!0});function s(e){const r={};return e.integrity&&(r.integrity=e.integrity),e.referrerPolicy&&(r.referrerPolicy=e.referrerPolicy),e.crossOrigin==="use-credentials"?r.credentials="include":e.crossOrigin==="anonymous"?r.credentials="omit":r.credentials="same-origin",r}function i(e){if(e.ep)return;e.ep=!0;const r=s(e);fetch(e.href,r)}})();
1
+ import"./app-BFaxhiED.js";(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const e of document.querySelectorAll('link[rel="modulepreload"]'))i(e);new MutationObserver(e=>{for(const r of e)if(r.type==="childList")for(const o of r.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&i(o)}).observe(document,{childList:!0,subtree:!0});function s(e){const r={};return e.integrity&&(r.integrity=e.integrity),e.referrerPolicy&&(r.referrerPolicy=e.referrerPolicy),e.crossOrigin==="use-credentials"?r.credentials="include":e.crossOrigin==="anonymous"?r.credentials="omit":r.credentials="same-origin",r}function i(e){if(e.ep)return;e.ep=!0;const r=s(e);fetch(e.href,r)}})();
@@ -77,8 +77,8 @@
77
77
  document.documentElement.setAttribute("data-density", density === "tightest" || density === "tighter" || density === "compact" || density === "comfortable" ? density : "default");
78
78
  })();
79
79
  </script>
80
- <script type="module" crossorigin src="/assets/index-BK9avF1k.js"></script>
81
- <link rel="modulepreload" crossorigin href="/assets/app-F1xryJpn.js">
80
+ <script type="module" crossorigin src="/assets/index-ByovgZ_7.js"></script>
81
+ <link rel="modulepreload" crossorigin href="/assets/app-BFaxhiED.js">
82
82
  <link rel="stylesheet" crossorigin href="/assets/app-DjlHxWHg.css">
83
83
  </head>
84
84
  <body>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ccdeck",
3
- "version": "3.48.0",
3
+ "version": "3.48.1",
4
4
  "description": "Local dashboard for Claude Code and Codex CLI sessions: which Claude Code session needs input, every tool call and Claude Code subagent live, token cost and quota, several Claude accounts. Run npx ccdeck.",
5
5
  "type": "module",
6
6
  "bin": {
@@ -78,7 +78,8 @@
78
78
  "3.40.1",
79
79
  "3.41.3",
80
80
  "3.43.1",
81
- "3.43.3"
81
+ "3.43.3",
82
+ "3.48.1"
82
83
  ],
83
84
  "3.48.0": [
84
85
  {
@@ -171,16 +171,18 @@ export const DEFAULTS = Object.freeze({
171
171
  // of one person's machines show each other where they are working; off, and
172
172
  // paired decks read "current account hidden" instead.
173
173
  shareActive: true,
174
- // THE LOGIN THIS DECK IS USING, SENT TO A PAIRED DECK, off unless somebody
175
- // turns it on (#2192). A ticked account goes to every paired deck that
176
- // lacks it or holds an expired copy — and when it is the one this deck is
177
- // signed in to, the two machines then hold one login. A Claude login renews
178
- // once: whichever copy renews it first keeps it, and the other machine is
179
- // signed out. So while this deck is on an account, that account stays
180
- // here, and goes out like any other the moment this deck switches away. A
181
- // new field, so nobody's saved choice is changed: the ticks are untouched,
182
- // and what they hand out is every login except the one in use.
183
- sendInUse: false,
174
+ // THE LOGIN THIS DECK IS USING, SENT TO A PAIRED DECK, on unless somebody
175
+ // turns it off: a ticked account goes out whether or not this deck is on it
176
+ // (owner, 2026-10-27, 3.48.1). From #2192 until then it was off, and people
177
+ // read a ticked account that never arrived as sharing being broken. The
178
+ // cost is the one #2192 found: the two machines then hold one login, and a
179
+ // Claude login renews once, so whichever copy renews second is signed out.
180
+ // The "Also active on" warning and Auto-switch avoiding an account active
181
+ // on another deck (#2192) stay, and the switch keeps it here for whoever
182
+ // wants that. See `sendInUseSet` in normalise for why a saved false from
183
+ // before 3.48.1 does not count.
184
+ sendInUse: true,
185
+ sendInUseSet: false,
184
186
  // FINDING THIS PERSON'S OTHER MACHINES OVER TAILSCALE, off until they turn
185
187
  // it on: it is a new path off this machine, and the owner chooses it. Its
186
188
  // two permissions ship on, like the local pair above, and they are narrower
@@ -321,9 +323,14 @@ function normaliseLan(raw) {
321
323
  // Whether paired decks are told which shared account this one is on. Absent
322
324
  // is on — the default above — and only a real boolean turns it off.
323
325
  shareActive: flagOr(src.shareActive, DEFAULTS.lan.shareActive),
324
- // Whether the login in use here may be sent. Off unless a real boolean
325
- // says on.
326
- sendInUse: flagOr(src.sendInUse, DEFAULTS.lan.sendInUse),
326
+ // Whether the login in use here may be sent. On unless somebody turned it
327
+ // off on 3.48.1 or later. Every write saves the whole normalised `lan`, so
328
+ // a deck from before then holds `sendInUse: false` whether or not anybody
329
+ // pressed the switch: the old default, written back with a tick or a name.
330
+ // That false says nothing, so it counts only beside `sendInUseSet`, which
331
+ // the page's own write of the switch adds (pagePatch).
332
+ sendInUse: src.sendInUseSet === true ? flagOr(src.sendInUse, DEFAULTS.lan.sendInUse) : DEFAULTS.lan.sendInUse,
333
+ sendInUseSet: src.sendInUseSet === true,
327
334
  // The Tailscale switch and its two permissions. Only a real boolean
328
335
  // overrides a default, as above.
329
336
  tailscale: flagOr(src.tailscale, DEFAULTS.lan.tailscale),
@@ -753,6 +760,9 @@ export function pagePatch(body) {
753
760
  };
754
761
  const patch = pick(body, PAGE_FIELDS.top);
755
762
  const lan = pick(body?.lan, PAGE_FIELDS.lan);
763
+ // Somebody pressed the switch, so from now on its value is a choice, not the
764
+ // default written back (see `sendInUseSet` in normalise).
765
+ if (Object.hasOwn(lan, "sendInUse")) lan.sendInUseSet = true;
756
766
  return Object.keys(lan).length ? { ...patch, lan } : patch;
757
767
  }
758
768
 
@@ -360,7 +360,8 @@ export function lanApplyFields(prefs, { load = false, env = process.env } = {})
360
360
  // Whether paired decks are told which shared account this one is on.
361
361
  shareActive: lan.shareActive !== false,
362
362
  // Whether the account this deck is using right now may be sent to a paired
363
- // deck. Off unless somebody turned it on (#2192).
363
+ // deck. On since 3.48.1 unless somebody turned it off (normalise in
364
+ // deck-prefs.mjs, #2192).
364
365
  sendInUse: lan.sendInUse === true,
365
366
  // Discovery over Tailscale, off unless somebody turned it on, and the two
366
367
  // permissions that answer for the owner's own machines there.