sideby 0.28.0 → 0.28.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.
package/dist/build.json CHANGED
@@ -1 +1 @@
1
- {"id":"20261028T132743-ee8214"}
1
+ {"id":"20261028T142001-4db631"}
@@ -255,6 +255,17 @@ export declare function codeSwapOutcome(s: {
255
255
  landed: boolean | null;
256
256
  waitedOut: boolean;
257
257
  }): 'done' | 'waiting' | 'failed' | 'unknown';
258
+ /**
259
+ * Whether a page whose server now runs another build reloads now (spec §3.23). It waits while the viewer is in the
260
+ * middle of something, except in the update dialog or the version popover: they describe the old build, so a stale
261
+ * version or error would stay on screen, and nothing is typed there. A running fix, check or update still waits.
262
+ */
263
+ export declare function reloadForBuild(s: {
264
+ newBuild: boolean;
265
+ busy: boolean;
266
+ working: boolean;
267
+ updateView: boolean;
268
+ }): boolean;
258
269
  /**
259
270
  * Runs a request that may swap the server's code (an Update, a Local Build switch; spec §3.23). A background Panel
260
271
  * restarting from the new code drops the answer, and a Portal moving to it may answer 5xx: without an answer only a
@@ -498,6 +498,16 @@ export function codeSwapOutcome(s) {
498
498
  return 'waiting';
499
499
  return s.landed === false ? 'failed' : 'unknown';
500
500
  }
501
+ /**
502
+ * Whether a page whose server now runs another build reloads now (spec §3.23). It waits while the viewer is in the
503
+ * middle of something, except in the update dialog or the version popover: they describe the old build, so a stale
504
+ * version or error would stay on screen, and nothing is typed there. A running fix, check or update still waits.
505
+ */
506
+ export function reloadForBuild(s) {
507
+ if (!s.newBuild || s.working)
508
+ return false;
509
+ return !s.busy || s.updateView;
510
+ }
501
511
  /**
502
512
  * Runs a request that may swap the server's code (an Update, a Local Build switch; spec §3.23). A background Panel
503
513
  * restarting from the new code drops the answer, and a Portal moving to it may answer 5xx: without an answer only a
@@ -4,7 +4,7 @@ import { groupsToAccept } from '../core/inbound.js';
4
4
  import { quotaIsStale } from '../core/quota-levels.js';
5
5
  import { remoteControlTodo } from '../core/remote-control.js';
6
6
  import { catalogMatchLevel, catalogNorm, searchCatalog } from '../core/search-catalog.js';
7
- import { aiTaskAccounts, aliasArgsOf, aliasIssue, askBridge, askBridged, askCopy, attentionReasons, attentionWhy, autostartNote, bindingWindow, cacheHitRate, canLeaveLocal, categoryOrder, codeSwapOutcome, dotsKeepKeyboard, enableOutcome, fileSize, fixPrompt, foldSkips, foldToolCalls, formatDuration, handoffChangeOf, handoffHintAccount, handoffTaskFacts, hiddenIn, highlightParts, histFilters, historyEmpty, historyWhen, hotkeyFromKey, hotkeyPressKind, inDisplayOrder, loginClusters, loginKey, maskEmail, matchesQuery, mdBlocks, mdInline, menuPlacement, mergeDaily, mergeUsage, messageChip, messageNews, networkTaskFacts, newAccountDir, nextReset, panelFixes, panelHint, panelLang, panelMigration, panelPrefs, passedWindow, pinnedIn, quotaAskable, quotaHighLevel, quotaPressure, radioStep, remoteControlSummary, reorder, rowBadge, runCodeSwap, saveHandoffChange, sendBlock, sendFileProblem, sendResultView, sessionAge, sessionLabelParts, shortCwd, shortSessionLabel, sortAccounts, sortSessions, steadyOrder, stripSecrets, suggestAlias, suggestName, switchFailure, tailInView, taskFindings, updatedAge, widthFollower, widthTier, windowState, withPinned, } from './page-logic.js';
7
+ import { aiTaskAccounts, aliasArgsOf, aliasIssue, askBridge, askBridged, askCopy, attentionReasons, attentionWhy, autostartNote, bindingWindow, cacheHitRate, canLeaveLocal, categoryOrder, codeSwapOutcome, dotsKeepKeyboard, enableOutcome, fileSize, fixPrompt, foldSkips, foldToolCalls, formatDuration, handoffChangeOf, handoffHintAccount, handoffTaskFacts, hiddenIn, highlightParts, histFilters, historyEmpty, historyWhen, hotkeyFromKey, hotkeyPressKind, inDisplayOrder, loginClusters, loginKey, maskEmail, matchesQuery, mdBlocks, mdInline, menuPlacement, mergeDaily, mergeUsage, messageChip, messageNews, networkTaskFacts, newAccountDir, nextReset, panelFixes, panelHint, panelLang, panelMigration, panelPrefs, passedWindow, pinnedIn, quotaAskable, quotaHighLevel, quotaPressure, radioStep, reloadForBuild, remoteControlSummary, reorder, rowBadge, runCodeSwap, saveHandoffChange, sendBlock, sendFileProblem, sendResultView, sessionAge, sessionLabelParts, shortCwd, shortSessionLabel, sortAccounts, sortSessions, steadyOrder, stripSecrets, suggestAlias, suggestName, switchFailure, tailInView, taskFindings, updatedAge, widthFollower, widthTier, windowState, withPinned, } from './page-logic.js';
8
8
  const LOGIC = [
9
9
  quotaIsStale,
10
10
  catalogNorm,
@@ -46,6 +46,7 @@ const LOGIC = [
46
46
  matchesQuery,
47
47
  menuPlacement,
48
48
  radioStep,
49
+ reloadForBuild,
49
50
  dotsKeepKeyboard,
50
51
  mergeDaily,
51
52
  mergeUsage,
@@ -7569,8 +7570,11 @@ const MAIN = String.raw `
7569
7570
  reloadForNewBuild()
7570
7571
  }
7571
7572
  // Reloads into the new build once the viewer is not in the middle of something (a dialog, a form, a selection).
7573
+ // The update dialog and the version popover describe the old build, so they do not hold the reload back.
7572
7574
  function reloadForNewBuild() {
7573
- if (S.newBuild && !uiBusy() && !S.fixing && !S.checking && !dlg.busy) location.reload()
7575
+ if (!S.newBuild) return
7576
+ const updateView = (dlg.kind === 'update' && Boolean(dlg.el && dlg.el.open)) || menu.kind === 'version'
7577
+ if (reloadForBuild({ newBuild: true, busy: uiBusy(), working: Boolean(S.fixing || S.checking || dlg.busy || (up && up.autoBusy)), updateView })) location.reload()
7574
7578
  }
7575
7579
  // Once a second: the "Updated" age ticks, a deferred render lands once the viewer is done, and the state
7576
7580
  // reloads on schedule while the page is visible.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sideby",
3
- "version": "0.28.0",
3
+ "version": "0.28.1",
4
4
  "description": "Run work, personal and API-key accounts at the same time, without their configs drifting apart.",
5
5
  "license": "MIT",
6
6
  "author": "Adonis0123 (https://github.com/Adonis0123)",
@@ -2,7 +2,7 @@
2
2
  name: sideby
3
3
  description: Use when the user runs, or wants to run, several AI coding accounts (Claude Code, Codex, Grok Build, pi) side by side. Covers installing sideby and setting up a new account ("install sideby", "set up another Claude account", "add cc008", "配置一个 cc00x", "再加一个 Codex 账号"), explaining what accounts share and what stays separate ("what do my accounts share?", "这些账号共享了什么"), showing which account a session is ("show [cc001] in the status line", "加上账号标识"), finding a past session of any account ("找一下我上周改登录页的那个会话"), seeing accounts, quota and usage, moving on when one hits its 5-hour or weekly limit, moving the current task to another account ("用 cc008 继续", "交回 cc008"), adding a short command (alias) or a pick command that starts whichever account has the most quota ("加个 cc"), adding an API account from a vendor's docs ("加一个 DeepSeek API 账号"), supporting a new tool, and repairing drifted account directories (skills, hooks, rules or settings not shared, wrong symlinks, credential file permissions). Drives the `sideby` CLI with `--json`; the agent does every step except browser sign-in, filling in secrets and starting interactive sessions, which it hands to the user as one command (inside an Auto Handoff session, `sideby handoff ready --to` moves the task itself).
4
4
  metadata:
5
- version: "0.28.0"
5
+ version: "0.28.1"
6
6
  requires:
7
7
  bins: [sideby, node]
8
8
  cliHelp: sideby --help