sideby 0.17.0 → 0.19.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/README.md +11 -1
- package/ai-tasks.json +90 -0
- package/dist/build.json +1 -1
- package/dist/src/cli/commands.d.ts +9 -1
- package/dist/src/cli/commands.js +507 -26
- package/dist/src/cli/json-schemas.js +196 -19
- package/dist/src/cli/main.js +79 -13
- package/dist/src/core/after-install.d.ts +54 -0
- package/dist/src/core/after-install.js +78 -0
- package/dist/src/core/ask.d.ts +87 -1
- package/dist/src/core/ask.js +122 -7
- package/dist/src/core/autostart.d.ts +38 -8
- package/dist/src/core/autostart.js +85 -39
- package/dist/src/core/brand-mark.d.ts +49 -11
- package/dist/src/core/brand-mark.js +116 -38
- package/dist/src/core/browser-profiles.js +7 -32
- package/dist/src/core/config.d.ts +19 -0
- package/dist/src/core/config.js +75 -2
- package/dist/src/core/desktop-app.d.ts +1 -1
- package/dist/src/core/desktop-app.js +2 -2
- package/dist/src/core/edit-settings.d.ts +24 -0
- package/dist/src/core/edit-settings.js +97 -0
- package/dist/src/core/handoff-brief.d.ts +4 -2
- package/dist/src/core/handoff-brief.js +6 -1
- package/dist/src/core/handoff-chain.d.ts +24 -0
- package/dist/src/core/handoff-chain.js +2 -0
- package/dist/src/core/handoff-run.d.ts +4 -3
- package/dist/src/core/handoff-run.js +14 -9
- package/dist/src/core/launch.d.ts +2 -0
- package/dist/src/core/launch.js +14 -10
- package/dist/src/core/local-build.d.ts +12 -5
- package/dist/src/core/local-build.js +49 -31
- package/dist/src/core/lock.d.ts +30 -0
- package/dist/src/core/lock.js +143 -0
- package/dist/src/core/pick-commands.d.ts +42 -0
- package/dist/src/core/pick-commands.js +44 -0
- package/dist/src/core/quota-levels.d.ts +6 -1
- package/dist/src/core/quota-levels.js +16 -5
- package/dist/src/core/shell-init.js +3 -1
- package/dist/src/core/shell-setup.d.ts +40 -0
- package/dist/src/core/shell-setup.js +54 -0
- package/dist/src/core/skill-check.d.ts +2 -0
- package/dist/src/core/skill-check.js +2 -0
- package/dist/src/core/task-spec.d.ts +95 -0
- package/dist/src/core/task-spec.js +209 -0
- package/dist/src/core/terminal.d.ts +21 -4
- package/dist/src/core/terminal.js +155 -10
- package/dist/src/core/update.d.ts +27 -16
- package/dist/src/core/update.js +69 -95
- package/dist/src/core/windows-dirs.d.ts +19 -0
- package/dist/src/core/windows-dirs.js +39 -0
- package/dist/src/desktop/icon.js +12 -15
- package/dist/src/families/claude/ai-task.d.ts +8 -0
- package/dist/src/families/claude/ai-task.js +38 -0
- package/dist/src/families/claude/handoff-hook.js +4 -4
- package/dist/src/families/claude/index.js +3 -0
- package/dist/src/families/codex/handoff-hook.js +4 -4
- package/dist/src/families/codex/index.js +9 -0
- package/dist/src/families/grok/handoff-hook.js +4 -4
- package/dist/src/families/grok/index.js +1 -0
- package/dist/src/families/pi/index.js +1 -0
- package/dist/src/handoff/hook.js +51 -30
- package/dist/src/handoff/levels.d.ts +24 -0
- package/dist/src/handoff/levels.js +70 -0
- package/dist/src/handoff/messages.d.ts +6 -3
- package/dist/src/handoff/messages.js +20 -7
- package/dist/src/handoff/reader.d.ts +6 -3
- package/dist/src/menubar/agent.d.ts +3 -0
- package/dist/src/menubar/agent.js +21 -0
- package/dist/src/menubar/script.d.ts +8 -0
- package/dist/src/menubar/script.js +457 -0
- package/dist/src/menubar/snapshot.d.ts +115 -0
- package/dist/src/menubar/snapshot.js +255 -0
- package/dist/src/menubar/strings.d.ts +87 -0
- package/dist/src/menubar/strings.js +88 -0
- package/dist/src/panel/background.js +12 -19
- package/dist/src/panel/handler.d.ts +30 -0
- package/dist/src/panel/handler.js +148 -80
- package/dist/src/panel/i18n.d.ts +72 -0
- package/dist/src/panel/i18n.js +144 -0
- package/dist/src/panel/page-logic.d.ts +105 -0
- package/dist/src/panel/page-logic.js +170 -15
- package/dist/src/panel/page-script.js +419 -111
- package/dist/src/panel/page-styles.js +45 -13
- package/dist/src/panel/page.d.ts +7 -0
- package/dist/src/panel/page.js +11 -1
- package/dist/src/runtime.d.ts +44 -2
- package/dist/src/runtime.js +107 -6
- package/dist/src/types.d.ts +14 -0
- package/package.json +4 -3
- package/schemas/alias-list.json +119 -0
- package/schemas/alias.json +27 -1
- package/schemas/ask-choices.json +168 -0
- package/schemas/ask-print.json +87 -0
- package/schemas/config.json +28 -1
- package/schemas/edit.json +119 -0
- package/schemas/error.json +4 -0
- package/schemas/families.json +4 -0
- package/schemas/list.json +4 -0
- package/schemas/local.json +1 -1
- package/schemas/menubar-snapshot.json +646 -0
- package/schemas/menubar-start.json +112 -0
- package/schemas/menubar.json +165 -0
- package/schemas/new.json +19 -0
- package/schemas/shell-init-setup.json +124 -0
- package/skills/sideby/SKILL.md +11 -4
- package/skills/sideby/references/accounts.md +10 -0
- package/skills/sideby/references/ai-tasks.md +10 -0
- package/skills/sideby/references/handoff.md +3 -1
- package/skills/sideby/references/panel.md +6 -0
- package/skills/sideby/references/setup.md +1 -1
- package/skills/sideby/references/update.md +1 -1
|
@@ -125,7 +125,7 @@ code, .mono { font-family: var(--mono); font-size: 0.92em; }
|
|
|
125
125
|
|
|
126
126
|
/* Toolbar */
|
|
127
127
|
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 12px; }
|
|
128
|
-
.search { position: relative; flex: 1 1
|
|
128
|
+
.search { position: relative; flex: 1 1 160px; min-width: 120px; display: block; }
|
|
129
129
|
.search-ic { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--faint); pointer-events: none; }
|
|
130
130
|
.search .search-input { padding-left: 34px; padding-right: 34px; height: var(--ctl-h); }
|
|
131
131
|
.kbd { position: absolute; right: 9px; top: 50%; transform: translateY(-50%); font: 11px/16px var(--mono); color: var(--faint); border: 1px solid var(--border); border-radius: 4px; padding: 0 5px; pointer-events: none; }
|
|
@@ -139,6 +139,8 @@ code, .mono { font-family: var(--mono); font-size: 0.92em; }
|
|
|
139
139
|
.pages { margin: 0 0 14px; }
|
|
140
140
|
.row-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
|
|
141
141
|
.tune-confirm { display: flex; flex-direction: column; gap: 8px; border-top: 1px solid var(--border); padding-top: 10px; }
|
|
142
|
+
.pk-row { display: flex; flex-direction: column; gap: 6px; padding: 12px 0; border-top: 1px solid var(--border); }
|
|
143
|
+
.pk-row p { margin: 0; }
|
|
142
144
|
.tune-confirm ul { margin: 0; padding-left: 18px; }
|
|
143
145
|
.tune-undo { margin: 0; }
|
|
144
146
|
.tune-details { margin-top: 4px; }
|
|
@@ -236,6 +238,7 @@ code, .mono { font-family: var(--mono); font-size: 0.92em; }
|
|
|
236
238
|
/* The arrow at a row's start opens and closes its details; so does a click anywhere else in the row. */
|
|
237
239
|
.row-toggle { width: 28px; height: 28px; margin: -4px -6px -4px -8px; }
|
|
238
240
|
.fold-hit { cursor: pointer; }
|
|
241
|
+
.fold-hit .row-detail { cursor: auto; }
|
|
239
242
|
.fold-hit:hover .row-toggle { background: var(--hover); color: var(--text); }
|
|
240
243
|
.row-toggle[aria-expanded=true] .chev { transform: rotate(90deg); }
|
|
241
244
|
.row-toggle[aria-expanded=true]:not(:hover) { background: transparent; color: var(--muted); }
|
|
@@ -286,6 +289,9 @@ code, .mono { font-family: var(--mono); font-size: 0.92em; }
|
|
|
286
289
|
.plan { text-transform: capitalize; }
|
|
287
290
|
.row > .quota { grid-area: quota; }
|
|
288
291
|
.row > .last { grid-area: last; }
|
|
292
|
+
.ident-meta { display: flex; align-items: baseline; gap: 6px; min-width: 0; }
|
|
293
|
+
.ident-meta > :first-child { min-width: 0; }
|
|
294
|
+
.last-inline { display: none; }
|
|
289
295
|
.row > .row-end { grid-area: more; display: flex; align-items: center; justify-content: flex-end; gap: 4px; }
|
|
290
296
|
.row-run { width: 28px; height: 28px; color: var(--muted); }
|
|
291
297
|
.row-run .ic { width: 15px; height: 15px; }
|
|
@@ -305,14 +311,15 @@ code, .mono { font-family: var(--mono); font-size: 0.92em; }
|
|
|
305
311
|
.row-notes { grid-area: notes; display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
|
|
306
312
|
|
|
307
313
|
/* Quota meters: percent and countdown over a bar colored by level (ok, warn at 60%, fail at 85% used). */
|
|
308
|
-
.quota { display: grid; grid-template-columns: repeat(var(--qn), minmax(0, 1fr)); column-gap: var(--col-gap); row-gap: 4px; min-width: 0; }
|
|
314
|
+
.quota { display: grid; grid-template-columns: repeat(var(--qr, var(--qn)), minmax(0, 1fr)); column-gap: var(--col-gap); row-gap: 4px; min-width: 0; }
|
|
309
315
|
.row > .quota { grid-template-columns: repeat(var(--qn), var(--q-w)); }
|
|
310
316
|
.meter { min-width: 0; }
|
|
311
|
-
|
|
317
|
+
/* The countdown never ends in an ellipsis: where the line is too short it wraps to a line of its own, at the right. */
|
|
318
|
+
.m-top { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 6px; font-size: 12px; line-height: 1.35; white-space: nowrap; min-width: 0; }
|
|
312
319
|
.m-label { color: var(--muted); font-weight: var(--strong-weight); }
|
|
313
320
|
.m-pct { font-weight: var(--strong-weight); font-size: 13px; font-variant-numeric: tabular-nums; }
|
|
314
321
|
.m-unit { color: var(--faint); font-weight: 400; font-size: 11.5px; }
|
|
315
|
-
.m-reset { margin-left: auto; color: var(--faint); font-size: 11.5px; font-variant-numeric: tabular-nums;
|
|
322
|
+
.m-reset { margin-left: auto; color: var(--faint); font-size: 11.5px; font-variant-numeric: tabular-nums; }
|
|
316
323
|
.m-passed { color: var(--muted); }
|
|
317
324
|
.m-none { color: var(--faint); }
|
|
318
325
|
.bar { height: 6px; border-radius: 999px; background: var(--track); overflow: hidden; margin-top: 5px; }
|
|
@@ -441,6 +448,7 @@ a.btn:hover { text-decoration: none; }
|
|
|
441
448
|
.icon-btn:disabled { color: var(--faint); cursor: not-allowed; }
|
|
442
449
|
.top-actions .icon-btn { width: var(--ctl-h); height: var(--ctl-h); border-color: var(--border-strong); background: var(--surface); }
|
|
443
450
|
.top-actions .icon-btn:hover { background: var(--hover); }
|
|
451
|
+
.repo-link svg { width: 17px; height: 17px; fill: currentColor; }
|
|
444
452
|
.btn:focus-visible, .icon-btn:focus-visible, input:focus-visible, select:focus-visible, a:focus-visible, .stat-btn:focus-visible { outline: var(--focus-outline); outline-offset: 2px; box-shadow: var(--focus-ring); }
|
|
445
453
|
.btn:focus-visible { border-color: var(--focus); }
|
|
446
454
|
.note a, .banner a { color: inherit; text-decoration: underline; text-underline-offset: 2px; font-weight: var(--strong-weight); }
|
|
@@ -704,25 +712,36 @@ select:is(:hover, :focus) { --chevron: var(--text); }
|
|
|
704
712
|
.checkup { margin-top: 8px; }
|
|
705
713
|
.foot { margin-top: 28px; text-align: center; }
|
|
706
714
|
|
|
707
|
-
|
|
715
|
+
/* The narrow-screen layouts hang on the root's data-width (page-logic.ts widthTier: up to 1100px medium, 760 narrow,
|
|
716
|
+
560 phone) rather than on media queries, so the page script can change them once a sliding width settles, inside a
|
|
717
|
+
View Transition. :where() keeps each rule's specificity what it was inside a media query. */
|
|
718
|
+
:where(:root[data-width=medium], :root[data-width=narrow], :root[data-width=phone]) {
|
|
708
719
|
.col-head { display: none; }
|
|
709
720
|
.app-row { flex-wrap: wrap; }
|
|
710
721
|
.app-actions { width: 100%; justify-content: flex-start; }
|
|
711
|
-
|
|
722
|
+
/* No column titles here, so the last use sits right after the name and email, on the email's line, and the
|
|
723
|
+
menu stays on the name's line; the quota windows share the full width below. */
|
|
724
|
+
.row { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "id more" "quota quota" "detail detail" "notes notes"; row-gap: 8px; }
|
|
712
725
|
.row-detail { margin-left: 0; }
|
|
713
726
|
|
|
714
|
-
.row > .quota { grid-template-columns: repeat(var(--qn), minmax(0, 1fr));
|
|
727
|
+
.row > .quota { grid-template-columns: repeat(var(--qr, var(--qn)), minmax(0, 1fr)); }
|
|
715
728
|
.rows .m-label, .rows .m-unit, .rows .u-unit { display: inline; }
|
|
716
729
|
.rows .usage { justify-content: flex-start; }
|
|
717
|
-
.row > .last {
|
|
730
|
+
.row > .last { display: none; }
|
|
731
|
+
.last-inline { display: flex; flex: none; gap: 6px; color: var(--muted); font-size: 12px; white-space: nowrap; margin-top: 1px; }
|
|
732
|
+
.last-inline::before { content: "·"; color: var(--faint); }
|
|
733
|
+
.row > .row-end { align-self: start; margin-top: -2px; }
|
|
718
734
|
}
|
|
719
|
-
|
|
735
|
+
:where(:root[data-width=narrow], :root[data-width=phone]) {
|
|
736
|
+
/* The toolbar stays one line: "New account" keeps its icon, its name moves to the tooltip and the label. */
|
|
737
|
+
.toolbar > .btn-primary { width: var(--ctl-h); padding: 0; justify-content: center; }
|
|
738
|
+
.toolbar > .btn-primary > span { display: none; }
|
|
720
739
|
.summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
|
|
721
740
|
.stat:nth-child(3) { border-left: 0; }
|
|
722
741
|
.stat:nth-child(n+3) { border-top: 1px solid var(--border); }
|
|
723
742
|
}
|
|
724
|
-
|
|
725
|
-
|
|
743
|
+
:root[data-width=phone] { --gutter: 14px; }
|
|
744
|
+
:where(:root[data-width=phone]) {
|
|
726
745
|
.top-in { padding: 16px var(--gutter) 0; }
|
|
727
746
|
.header-bar .top-in { min-height: 0; padding: 12px var(--gutter); }
|
|
728
747
|
.update-btn span { display: none; }
|
|
@@ -739,8 +758,13 @@ select:is(:hover, :focus) { --chevron: var(--text); }
|
|
|
739
758
|
.search { flex-basis: 100%; }
|
|
740
759
|
.tools { width: 100%; }
|
|
741
760
|
.tools .tb-select { flex: 1 1 140px; min-width: 0; }
|
|
742
|
-
.toolbar > .btn-primary { flex: 1; }
|
|
743
|
-
.
|
|
761
|
+
.toolbar > .btn-primary { flex: 1; width: auto; padding: 0 14px; }
|
|
762
|
+
.toolbar > .btn-primary > span { display: inline; }
|
|
763
|
+
/* A phone keeps the last use as a column of its own: the line under the name has no room for it. */
|
|
764
|
+
.row { padding: 10px 12px; grid-template-columns: minmax(0, 1fr) auto auto; grid-template-areas: "id last more" "quota quota quota" "detail detail detail" "notes notes notes"; }
|
|
765
|
+
.row > .last { display: block; justify-self: end; }
|
|
766
|
+
.last-inline { display: none; }
|
|
767
|
+
.row > .row-end { align-self: center; margin-top: 0; }
|
|
744
768
|
#accounts { --col-gap: 14px; }
|
|
745
769
|
/* One window per line, so the reset time is never cut off. */
|
|
746
770
|
.row > .quota { grid-template-columns: 1fr; row-gap: 10px; max-width: none; }
|
|
@@ -756,6 +780,14 @@ select:is(:hover, :focus) { --chevron: var(--text); }
|
|
|
756
780
|
.panel { padding: 14px; }
|
|
757
781
|
.dlg-head { padding: 14px 14px 2px; } .dlg-body { padding: 10px 14px 14px; } .dlg-foot { padding: 10px 14px; }
|
|
758
782
|
}
|
|
783
|
+
/* A change of layout band runs as a short View Transition (page-script.ts followWidth): each block below moves and
|
|
784
|
+
resizes to its new place while its old and new look cross-fade; the rest of the page cross-fades as one. Same
|
|
785
|
+
length and ease as a Portal's sliding sidebar (.26s, quick start, soft landing), so both read as one move. */
|
|
786
|
+
::view-transition-group(*) { animation-duration: .26s; animation-timing-function: cubic-bezier(.32, .72, 0, 1); }
|
|
787
|
+
/* Old and new looks keep their own size (pinned top left) instead of stretching to the moving box, so text never
|
|
788
|
+
grows or shrinks on the way. */
|
|
789
|
+
::view-transition-old(*), ::view-transition-new(*) { animation-duration: .26s; height: 100%; object-fit: none; object-position: left top; }
|
|
790
|
+
.vt-width :is(.top-in, .summary, .stat, .section-head, .toolbar, .group-list, .group-head, .row) { view-transition-name: match-element; }
|
|
759
791
|
@media (prefers-reduced-motion: reduce) {
|
|
760
792
|
.sk, .spin, .is-spinning svg, .toast, .toast.bump, .view-in > *, .row.flash, .card.flash, .pulse { animation: none; }
|
|
761
793
|
.bar > span, .chev, .row { transition: none; }
|
package/dist/src/panel/page.d.ts
CHANGED
|
@@ -21,6 +21,13 @@ export interface PageOptions {
|
|
|
21
21
|
lang?: 'auto' | 'en' | 'zh';
|
|
22
22
|
/** createPanelHandler's `updates`: false hides everything about sideby updates. */
|
|
23
23
|
updates?: boolean;
|
|
24
|
+
/**
|
|
25
|
+
* createPanelHandler's `ask`: with the bridge, inside a frame, AI Task entries post to the Portal and the page script
|
|
26
|
+
* hides the header button; opened on its own, the Panel keeps both.
|
|
27
|
+
*/
|
|
28
|
+
ask?: {
|
|
29
|
+
bridge: 'postMessage';
|
|
30
|
+
};
|
|
24
31
|
/** Config `panel` (spec §3.29): the theme and language saved for the Panel. */
|
|
25
32
|
panel?: {
|
|
26
33
|
theme?: string;
|
package/dist/src/panel/page.js
CHANGED
|
@@ -5,11 +5,14 @@ import { createHash } from 'node:crypto';
|
|
|
5
5
|
import { FAVICON_SVG, MARK_SVG } from '../core/brand-mark.js';
|
|
6
6
|
import { ALIAS_NAME, RESERVED_ALIASES } from '../core/config.js';
|
|
7
7
|
import { QUOTA_FAIL_PERCENT, QUOTA_WARN_PERCENT, USAGE_DAYS } from '../core/quota-levels.js';
|
|
8
|
-
import { SKILL_INSTALL } from '../core/skill-check.js';
|
|
8
|
+
import { REPO_URL, SKILL_INSTALL } from '../core/skill-check.js';
|
|
9
9
|
import { MESSAGES } from './i18n.js';
|
|
10
|
+
import { widthTier } from './page-logic.js';
|
|
10
11
|
import { PAGE_SCRIPT } from './page-script.js';
|
|
11
12
|
import { pageStyles } from './page-styles.js';
|
|
12
13
|
import { resolveTheme } from './theme.js';
|
|
14
|
+
/** GitHub's mark, from Simple Icons (CC0 1.0, https://simpleicons.org); a trademark of GitHub that only names the site. */
|
|
15
|
+
const GITHUB_MARK = 'M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12';
|
|
13
16
|
/** Browsers keep a favicon past `no-cache`; a link that changes with the mark makes them fetch the new one. */
|
|
14
17
|
export const FAVICON_VERSION = createHash('sha256').update(FAVICON_SVG).digest('hex').slice(0, 10);
|
|
15
18
|
export { pageStyles };
|
|
@@ -25,6 +28,8 @@ export function jsonForScript(value) {
|
|
|
25
28
|
function attr(value) {
|
|
26
29
|
return value.replace(/&/g, '&').replace(/"/g, '"').replace(/</g, '<');
|
|
27
30
|
}
|
|
31
|
+
// The layout band (page-logic.ts widthTier) is set in the head, so the first paint already has the narrow-screen
|
|
32
|
+
// layout; the page script then follows the width as it changes.
|
|
28
33
|
const SKELETON_ROW = `<div class="sk-row"><span class="sk sk-badge"></span><span class="sk sk-title"></span><span class="sk sk-bar"></span><span class="sk sk-bar"></span></div>`;
|
|
29
34
|
const SKELETON_STAT = `<div class="stat"><span class="sk sk-stat w70"></span></div>`;
|
|
30
35
|
export function renderPage(opts) {
|
|
@@ -40,6 +45,7 @@ export function renderPage(opts) {
|
|
|
40
45
|
local: opts.local ?? null,
|
|
41
46
|
readOnly: Boolean(opts.readOnly),
|
|
42
47
|
updates: opts.updates !== false,
|
|
48
|
+
ask: opts.ask ?? null,
|
|
43
49
|
colorScheme: theme.colorScheme,
|
|
44
50
|
lang,
|
|
45
51
|
panel: opts.panel ?? {},
|
|
@@ -51,6 +57,8 @@ export function renderPage(opts) {
|
|
|
51
57
|
reservedAliases: [...RESERVED_ALIASES],
|
|
52
58
|
// The command that installs the sideby Agent Skill, which the Panel offers so an AI assistant can do the same.
|
|
53
59
|
skillInstall: SKILL_INSTALL,
|
|
60
|
+
// sideby's repository for the header link, set by the script: the page itself names no outside address.
|
|
61
|
+
repoUrl: REPO_URL,
|
|
54
62
|
});
|
|
55
63
|
return `<!doctype html>
|
|
56
64
|
<html lang="${lang === 'zh' ? 'zh-CN' : 'en'}">
|
|
@@ -62,6 +70,7 @@ export function renderPage(opts) {
|
|
|
62
70
|
<title>sideby</title>
|
|
63
71
|
<link rel="icon" type="image/svg+xml" href="${attr(opts.basePath)}/favicon.svg?v=${FAVICON_VERSION}">
|
|
64
72
|
<style${nonce}>${pageStyles(theme)}</style>
|
|
73
|
+
<script${nonce}>document.documentElement.dataset.width = (${widthTier})(window.innerWidth)</script>
|
|
65
74
|
</head>
|
|
66
75
|
<body${theme.header === 'bar' ? ' class="header-bar"' : ''}>
|
|
67
76
|
<header class="top">
|
|
@@ -76,6 +85,7 @@ export function renderPage(opts) {
|
|
|
76
85
|
<div class="top-actions">
|
|
77
86
|
<button id="update" class="btn update-btn" type="button" hidden></button>
|
|
78
87
|
<button id="ask-ai" class="btn" type="button" aria-haspopup="dialog" aria-label="Let AI do it"><svg viewBox="0 0 24 24" aria-hidden="true"><path d="M6 9h12a2 2 0 0 1 2 2v6a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2v-6a2 2 0 0 1 2-2zM12 5v4M9.5 13.5v1M14.5 13.5v1"/></svg><span class="hide-sm" data-i18n="ask.button">Let AI do it</span></button>
|
|
88
|
+
<a id="repo" class="icon-btn repo-link" target="_blank" rel="noopener noreferrer" aria-label="sideby on GitHub" title="sideby on GitHub" hidden><svg viewBox="0 0 24 24" aria-hidden="true"><path d="${GITHUB_MARK}"/></svg></a>
|
|
79
89
|
<button id="settings" class="btn" type="button" aria-haspopup="dialog" aria-expanded="false"${lang === 'auto' ? '' : ' hidden'}><span data-i18n="set.button">Settings</span></button>
|
|
80
90
|
<button id="refresh" class="btn" type="button" aria-label="Refresh"><svg viewBox="0 0 24 24" aria-hidden="true"><path d="M20 11a8 8 0 1 0-2.3 5.7"/><path d="M20 4v7h-7"/></svg><span class="hide-sm" data-i18n="top.refresh">Refresh</span></button>
|
|
81
91
|
</div>
|
package/dist/src/runtime.d.ts
CHANGED
|
@@ -9,6 +9,7 @@ import { type HandoffDecision } from './core/handoff-select.ts';
|
|
|
9
9
|
import { type DoctorHistory } from './core/last-doctor.ts';
|
|
10
10
|
import { type HostLaunch, type PreparedLaunch } from './core/launch.ts';
|
|
11
11
|
import { type Paths } from './core/paths.ts';
|
|
12
|
+
import { type PickChoice } from './core/pick-commands.ts';
|
|
12
13
|
import { type QuotaFetchMode } from './core/quota-fetch.ts';
|
|
13
14
|
import { type RemoteControlChange, type RemoteControlGroup } from './core/remote-control.ts';
|
|
14
15
|
import { type Shell, type ShellInitWrite } from './core/shell-init.ts';
|
|
@@ -41,9 +42,16 @@ export interface AliasResult {
|
|
|
41
42
|
export interface AliasEditResult {
|
|
42
43
|
ok: boolean;
|
|
43
44
|
alias: string;
|
|
44
|
-
|
|
45
|
+
/** `confirm`: a Pick Command would hide a command on PATH, so nothing was written until the user agrees. */
|
|
46
|
+
status: 'added' | 'exists' | 'removed' | 'absent' | 'confirm';
|
|
47
|
+
/** `pick` for a Pick Command, `account` for an Alias; absent for `absent`. */
|
|
48
|
+
kind?: 'account' | 'pick';
|
|
45
49
|
/** The Account ref the alias starts (for `rm`, started before it was removed). */
|
|
46
50
|
account?: string;
|
|
51
|
+
/** The Family a Pick Command picks in. */
|
|
52
|
+
family?: string;
|
|
53
|
+
/** The command on PATH a Pick Command of this name hides in the shell (`/usr/bin/cc`). */
|
|
54
|
+
shadows?: string;
|
|
47
55
|
/** Host arguments the alias adds to `sideby run`; absent when there are none. */
|
|
48
56
|
args?: string[];
|
|
49
57
|
/** One entry per file in config `shellInitFile`; absent when none is configured. */
|
|
@@ -68,6 +76,8 @@ export interface FamilyInfo {
|
|
|
68
76
|
plugin: string;
|
|
69
77
|
/** The Family can estimate a Compaction Threshold (spec §3.18). */
|
|
70
78
|
tuning: boolean;
|
|
79
|
+
/** The Host's settings file that `sideby edit` opens (spec §3.30), relative to the account directory. */
|
|
80
|
+
settingsFile?: string;
|
|
71
81
|
}
|
|
72
82
|
/** One Shared Item as `sideby families` reports it (spec §3.16). */
|
|
73
83
|
export interface SharedItemInfo {
|
|
@@ -196,13 +206,45 @@ export interface Runtime {
|
|
|
196
206
|
addAlias(alias: string, target: string, args?: readonly string[]): Promise<AliasEditResult>;
|
|
197
207
|
/** Removes a short command from the config, then rewrites every `shellInitFile`. */
|
|
198
208
|
removeAlias(alias: string): Promise<AliasEditResult>;
|
|
209
|
+
/**
|
|
210
|
+
* Adds a Pick Command (spec §3.13, ADR-0035), then rewrites every `shellInitFile`. Without `opts.yes` it only
|
|
211
|
+
* returns `confirm`, with the command on PATH the name would hide, and writes nothing. Refuses a name taken by an
|
|
212
|
+
* Alias or another Family.
|
|
213
|
+
*/
|
|
214
|
+
addPickCommand(name: string, family: string, opts?: {
|
|
215
|
+
yes?: boolean;
|
|
216
|
+
}): Promise<AliasEditResult>;
|
|
217
|
+
/** The Family a Pick Command picks in, or undefined when `name` is not one. */
|
|
218
|
+
pickCommandFamily(name: string): string | undefined;
|
|
219
|
+
/** The Account the Pick Command `name` starts now, or why it starts nothing (ADR-0035). */
|
|
220
|
+
pickChoice(name: string): Promise<{
|
|
221
|
+
name: string;
|
|
222
|
+
family: string;
|
|
223
|
+
choice: PickChoice;
|
|
224
|
+
}>;
|
|
225
|
+
/**
|
|
226
|
+
* The Pick Command to offer for a Family: the existing one, else a free name following its Aliases (or cc, cx, gk),
|
|
227
|
+
* with the command on PATH it would hide, or `name: null` when no such name is free (the user types one); null when
|
|
228
|
+
* the Family has fewer than two Subscription Accounts. `all` saves discovering the Accounts again.
|
|
229
|
+
*/
|
|
230
|
+
pickSuggestion(family: string, all?: readonly Account[]): Promise<{
|
|
231
|
+
name: string | null;
|
|
232
|
+
exists: boolean;
|
|
233
|
+
shadows?: string;
|
|
234
|
+
} | null>;
|
|
199
235
|
/** Why `alias` cannot start `ref` (shell-safe, not reserved, not taken by another Account), or null. */
|
|
200
236
|
aliasProblem(alias: string, ref: string): string | null;
|
|
201
237
|
/** What `sideby shell-init <shell>` prints, from the Accounts on disk and the config aliases. */
|
|
202
238
|
shellInitScript(shell: Shell): Promise<string>;
|
|
203
239
|
/** Rewrites the configured `shellInitFile` of each shell (all configured ones by default). */
|
|
204
240
|
writeShellInitFiles(shells?: readonly Shell[]): Promise<ShellInitWrite[]>;
|
|
205
|
-
|
|
241
|
+
/**
|
|
242
|
+
* `opts.aiTask`: the Launch is an AI Task's (spec §3.28), so the Family's `aiTaskArgs` removes every permission
|
|
243
|
+
* bypass from it (ADR-0031). `sideby run` never sets it.
|
|
244
|
+
*/
|
|
245
|
+
prepareLaunch(ref: string, userArgs: readonly string[], command: 'run' | 'login', opts?: {
|
|
246
|
+
aiTask?: boolean;
|
|
247
|
+
}): Promise<PreparedLaunch>;
|
|
206
248
|
/**
|
|
207
249
|
* The Host and arguments `prepareLaunch` starts from, without reading the Secret File or running `launch.before`
|
|
208
250
|
* hooks: what a preview may show before the user agrees to start anything.
|
package/dist/src/runtime.js
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
// The one service layer the CLI and the Panel share. Frozen contract for v0.1 (plan: 审核修订).
|
|
2
2
|
import { aliasesByAccount, discoverAccounts, resolveRef } from './core/accounts.js';
|
|
3
|
-
import { addConfigAlias, aliasAccount, aliasArgs, aliasProblem, aliasRefs, editConfigDisplay, editConfigQuotaCheck, handoffSettings, loadConfig, removeConfigAlias, } from './core/config.js';
|
|
3
|
+
import { addConfigAlias, addConfigPickCommand, aliasAccount, aliasArgs, aliasProblem, aliasRefs, editConfigDisplay, editConfigQuotaCheck, handoffSettings, loadConfig, removeConfigAlias, removeConfigPickCommand, } from './core/config.js';
|
|
4
4
|
import { createAccount } from './core/create.js';
|
|
5
5
|
import { bindDesktopDeps, checkAppData } from './core/desktop-app.js';
|
|
6
6
|
import { applyFixes, runDoctor } from './core/doctor.js';
|
|
7
|
+
import { hostSettingsFile } from './core/edit-settings.js';
|
|
7
8
|
import { UserError } from './core/errors.js';
|
|
8
9
|
import { planHandoff } from './core/handoff.js';
|
|
9
10
|
import { handoffFindings } from './core/handoff-doctor.js';
|
|
@@ -13,6 +14,7 @@ import { mergeDoctorHistory, readDoctorHistory, writeDoctorHistory, } from './co
|
|
|
13
14
|
import { accountEnv, brokenOnPath, launchCommand, prepareLaunch, which, } from './core/launch.js';
|
|
14
15
|
import { memoStore } from './core/memo-store.js';
|
|
15
16
|
import { resolvePaths } from './core/paths.js';
|
|
17
|
+
import { choosePick, suggestPickName } from './core/pick-commands.js';
|
|
16
18
|
import { fetchedQuota, quotaCheckOff, shownQuota } from './core/quota-fetch.js';
|
|
17
19
|
import { remoteControlGroups, turnRemoteControlOff, turnRemoteControlOn, undoRemoteControlOff, } from './core/remote-control.js';
|
|
18
20
|
import { findResumeRoute } from './core/resume.js';
|
|
@@ -243,7 +245,7 @@ export async function createRuntime(opts = {}) {
|
|
|
243
245
|
ok: files.every((f) => f.ok),
|
|
244
246
|
alias,
|
|
245
247
|
status,
|
|
246
|
-
...(value === undefined ? {} : { account: aliasAccount(value) }),
|
|
248
|
+
...(value === undefined ? {} : { kind: 'account', account: aliasAccount(value) }),
|
|
247
249
|
...(args.length ? { args } : {}),
|
|
248
250
|
...(files.length ? { shellInitFiles: files } : {}),
|
|
249
251
|
};
|
|
@@ -271,6 +273,7 @@ export async function createRuntime(opts = {}) {
|
|
|
271
273
|
...(broken ? { brokenBin: broken } : {}),
|
|
272
274
|
plugin: loaded.familyOwner.get(f.id) ?? 'unknown',
|
|
273
275
|
tuning: Boolean(f.readTuning),
|
|
276
|
+
...(hostSettingsFile(f) ? { settingsFile: hostSettingsFile(f) } : {}),
|
|
274
277
|
};
|
|
275
278
|
}));
|
|
276
279
|
},
|
|
@@ -369,7 +372,7 @@ export async function createRuntime(opts = {}) {
|
|
|
369
372
|
// of that Family keeps its skill warning.
|
|
370
373
|
skillVersion: packageVersion(),
|
|
371
374
|
// Desktop App data folders sideby made for an Account (spec §3.20).
|
|
372
|
-
extraChecks: (a) => checkAppData(loaded.plugins, paths.home, a),
|
|
375
|
+
extraChecks: (a) => checkAppData(loaded.plugins, paths.home, a, Boolean(o.force)),
|
|
373
376
|
};
|
|
374
377
|
// Auto Handoff warnings (spec §3.17) join the general Findings; they never fail Doctor.
|
|
375
378
|
const all = await accounts();
|
|
@@ -466,6 +469,8 @@ export async function createRuntime(opts = {}) {
|
|
|
466
469
|
const bad = aliasProblem(alias);
|
|
467
470
|
if (bad)
|
|
468
471
|
throw new UserError(`alias "${alias}" ${bad} (it becomes a shell function name)`);
|
|
472
|
+
if (rt.pickCommandFamily(alias) !== undefined)
|
|
473
|
+
throw new UserError(`"${alias}" is already a pick command; pick another name, or remove it first with \`sideby alias rm ${alias}\``, { code: 'alias-invalid' });
|
|
469
474
|
// Resolve first so the config only ever names an Account that exists, by its ref.
|
|
470
475
|
const account = resolveRef(target, await accounts(), aliasRefs(config.aliases));
|
|
471
476
|
const r = await addConfigAlias(paths.configFile, alias, account.ref, args);
|
|
@@ -473,15 +478,98 @@ export async function createRuntime(opts = {}) {
|
|
|
473
478
|
return aliasEdit(alias, r.status, r.aliases[alias]);
|
|
474
479
|
},
|
|
475
480
|
async removeAlias(alias) {
|
|
481
|
+
const pickFamily = rt.pickCommandFamily(alias);
|
|
482
|
+
if (pickFamily !== undefined) {
|
|
483
|
+
const r = await removeConfigPickCommand(paths.configFile, alias);
|
|
484
|
+
config.pickCommands = Object.keys(r.pickCommands).length ? r.pickCommands : undefined;
|
|
485
|
+
const files = await rt.writeShellInitFiles();
|
|
486
|
+
return {
|
|
487
|
+
ok: files.every((f) => f.ok),
|
|
488
|
+
alias,
|
|
489
|
+
status: r.status,
|
|
490
|
+
...(r.status === 'removed' ? { kind: 'pick', family: pickFamily } : {}),
|
|
491
|
+
...(files.length ? { shellInitFiles: files } : {}),
|
|
492
|
+
};
|
|
493
|
+
}
|
|
476
494
|
const before = ownAlias(alias);
|
|
477
495
|
const r = await removeConfigAlias(paths.configFile, alias);
|
|
478
496
|
config.aliases = r.aliases;
|
|
479
497
|
return aliasEdit(alias, r.status, r.status === 'removed' ? before : undefined);
|
|
480
498
|
},
|
|
499
|
+
async addPickCommand(name, familyId, o = {}) {
|
|
500
|
+
const f = familyOf(familyId);
|
|
501
|
+
const bad = aliasProblem(name);
|
|
502
|
+
if (bad)
|
|
503
|
+
throw new UserError(`"${name}" ${bad} (it becomes a shell function name)`, { code: 'alias-invalid' });
|
|
504
|
+
const taken = ownAlias(name);
|
|
505
|
+
if (taken !== undefined)
|
|
506
|
+
throw new UserError(`"${name}" already starts ${aliasAccount(taken)}; pick another name, or remove it first with \`sideby alias rm ${name}\``, { code: 'alias-invalid' });
|
|
507
|
+
if (name === f.bin)
|
|
508
|
+
throw new UserError(`"${name}" is the ${f.title} command itself; pick another name`, {
|
|
509
|
+
code: 'alias-invalid',
|
|
510
|
+
});
|
|
511
|
+
const same = rt.pickCommandFamily(name) === f.id;
|
|
512
|
+
const shadows = same ? null : await which(name, env);
|
|
513
|
+
const base = { alias: name, kind: 'pick', family: f.id, ...(shadows ? { shadows } : {}) };
|
|
514
|
+
// A preview first, as for every change sideby offers (spec §3.13): it writes only with `yes`.
|
|
515
|
+
if (!same && !o.yes)
|
|
516
|
+
return { ok: true, status: 'confirm', ...base };
|
|
517
|
+
const r = await addConfigPickCommand(paths.configFile, name, f.id);
|
|
518
|
+
config.pickCommands = r.pickCommands;
|
|
519
|
+
const files = await rt.writeShellInitFiles();
|
|
520
|
+
return {
|
|
521
|
+
ok: files.every((f) => f.ok),
|
|
522
|
+
status: r.status,
|
|
523
|
+
...base,
|
|
524
|
+
...(files.length ? { shellInitFiles: files } : {}),
|
|
525
|
+
};
|
|
526
|
+
},
|
|
527
|
+
pickCommandFamily(name) {
|
|
528
|
+
return config.pickCommands && Object.hasOwn(config.pickCommands, name)
|
|
529
|
+
? config.pickCommands[name]
|
|
530
|
+
: undefined;
|
|
531
|
+
},
|
|
532
|
+
async pickChoice(name) {
|
|
533
|
+
const family = rt.pickCommandFamily(name);
|
|
534
|
+
if (family === undefined)
|
|
535
|
+
throw new UserError(`no pick command "${name}"; add one with \`sideby alias add ${name} --pick <family>\``);
|
|
536
|
+
const f = familyOf(family);
|
|
537
|
+
// API Accounts are never picked, also not as the fallback (ADR-0035).
|
|
538
|
+
const subs = (await accounts()).filter((a) => a.family === f.id && a.kind !== 'api');
|
|
539
|
+
if (!subs.length)
|
|
540
|
+
throw new UserError(`no ${f.title} subscription accounts yet; create one with \`sideby new ${f.id} --next\``, { code: 'no-accounts' });
|
|
541
|
+
const main = subs.find((a) => a.isMain)?.ref ?? null;
|
|
542
|
+
if (!f.readQuota && !f.fetchQuota)
|
|
543
|
+
return { name, family, choice: { ref: main ?? subs[0].ref, reason: 'no-quota-data' } };
|
|
544
|
+
return { name, family, choice: choosePick(await rt.handoff(f.id), main) };
|
|
545
|
+
},
|
|
546
|
+
async pickSuggestion(familyId, given) {
|
|
547
|
+
const f = families.get(familyId);
|
|
548
|
+
if (!f)
|
|
549
|
+
return null;
|
|
550
|
+
const existing = Object.entries(config.pickCommands ?? {}).find(([, fam]) => fam === f.id);
|
|
551
|
+
if (existing)
|
|
552
|
+
return { name: existing[0], exists: true };
|
|
553
|
+
const all = given ?? (await accounts());
|
|
554
|
+
if (all.filter((a) => a.family === f.id && a.kind !== 'api').length < 2)
|
|
555
|
+
return null;
|
|
556
|
+
const familyAliases = aliasesByAccount(aliasRefs(config.aliases), all);
|
|
557
|
+
const names = all.filter((a) => a.family === f.id).flatMap((a) => familyAliases.get(a.ref) ?? []);
|
|
558
|
+
const name = suggestPickName(f.id, f.bin, names);
|
|
559
|
+
if (!name ||
|
|
560
|
+
aliasProblem(name) ||
|
|
561
|
+
ownAlias(name) !== undefined ||
|
|
562
|
+
rt.pickCommandFamily(name) !== undefined)
|
|
563
|
+
return { name: null, exists: false };
|
|
564
|
+
const shadows = await which(name, env);
|
|
565
|
+
return { name, exists: false, ...(shadows ? { shadows } : {}) };
|
|
566
|
+
},
|
|
481
567
|
aliasProblem(alias, ref) {
|
|
482
568
|
const bad = aliasProblem(alias);
|
|
483
569
|
if (bad)
|
|
484
570
|
return `alias "${alias}" ${bad} (it becomes a shell function name)`;
|
|
571
|
+
if (rt.pickCommandFamily(alias) !== undefined)
|
|
572
|
+
return `"${alias}" is already a pick command; pick another name`;
|
|
485
573
|
const value = ownAlias(alias);
|
|
486
574
|
const taken = value === undefined ? undefined : aliasAccount(value);
|
|
487
575
|
if (taken !== undefined && taken !== ref)
|
|
@@ -496,9 +584,16 @@ export async function createRuntime(opts = {}) {
|
|
|
496
584
|
.filter((f) => f.resumedSession && f.sessionWrittenAt && list.some((a) => a.family === f.id && !a.isMain))
|
|
497
585
|
.map((f) => ({ family: f.id, bin: f.bin, selectVar: f.selectVar }))
|
|
498
586
|
: [];
|
|
499
|
-
return shellInitScript(list, config.aliases, routes);
|
|
587
|
+
return shellInitScript(list, { ...config.aliases, ...config.pickCommands }, routes);
|
|
500
588
|
},
|
|
501
589
|
async writeShellInitFiles(shells = SHELLS) {
|
|
590
|
+
// Another process may have changed the other kind of short command since this Runtime read the config: write
|
|
591
|
+
// what the file holds now, so a rewrite never drops one.
|
|
592
|
+
const fresh = await loadConfig(paths.configFile).catch(() => null);
|
|
593
|
+
if (fresh) {
|
|
594
|
+
config.aliases = fresh.aliases;
|
|
595
|
+
config.pickCommands = fresh.pickCommands;
|
|
596
|
+
}
|
|
502
597
|
const out = [];
|
|
503
598
|
for (const shell of shells) {
|
|
504
599
|
const file = config.shellInitFile?.[shell];
|
|
@@ -507,10 +602,16 @@ export async function createRuntime(opts = {}) {
|
|
|
507
602
|
}
|
|
508
603
|
return out;
|
|
509
604
|
},
|
|
510
|
-
async prepareLaunch(ref, userArgs, command) {
|
|
605
|
+
async prepareLaunch(ref, userArgs, command, opts = {}) {
|
|
511
606
|
const all = await accounts();
|
|
512
607
|
const inputs = launchInputs(ref, all, userArgs, command);
|
|
513
|
-
return prepareLaunch({
|
|
608
|
+
return prepareLaunch({
|
|
609
|
+
...inputs,
|
|
610
|
+
...(opts.aiTask ? { aiTask: true } : {}),
|
|
611
|
+
label: launchLabel(ref, inputs.account, all),
|
|
612
|
+
baseEnv: env,
|
|
613
|
+
bus,
|
|
614
|
+
});
|
|
514
615
|
},
|
|
515
616
|
async launchCommand(ref, userArgs, command) {
|
|
516
617
|
const inputs = launchInputs(ref, await accounts(), userArgs, command);
|
package/dist/src/types.d.ts
CHANGED
|
@@ -80,7 +80,21 @@ export interface FamilyDef {
|
|
|
80
80
|
* it read the images from the paths the prompt lists. Public contract, additive only.
|
|
81
81
|
*/
|
|
82
82
|
imageArg?: string;
|
|
83
|
+
/**
|
|
84
|
+
* Makes a Launch safe for an AI Task (spec §3.28 "权限检查", ADR-0031): given every argument the Host would get
|
|
85
|
+
* (Family defaults, the Account's config arguments, the task's own), returns them without any argument that
|
|
86
|
+
* switches the Host's permission checks off, and may add the Host's own safe mode. Keep the other arguments in
|
|
87
|
+
* order, and return the same list when nothing needs to change. Only AI Tasks use it; `sideby run` never does.
|
|
88
|
+
* Public contract, additive only: a Family without it starts AI Tasks with the arguments unchanged.
|
|
89
|
+
*/
|
|
90
|
+
aiTaskArgs?(args: readonly string[]): string[];
|
|
83
91
|
sharedItems: SharedItemDef[];
|
|
92
|
+
/**
|
|
93
|
+
* The Host's own settings file, relative to the account directory (`settings.json`), which `sideby edit` opens in
|
|
94
|
+
* the user's editor (spec §3.30, ADR-0033). sideby never reads or writes it for this. Public contract, additive
|
|
95
|
+
* only: a Family without it offers no such file.
|
|
96
|
+
*/
|
|
97
|
+
settingsFile?: string;
|
|
84
98
|
/** Arguments for the Host's sign-in command, or null when sign-in happens inside the Host. */
|
|
85
99
|
login: {
|
|
86
100
|
args: string[] | null;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sideby",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.19.0",
|
|
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)",
|
|
@@ -49,6 +49,7 @@
|
|
|
49
49
|
"dist",
|
|
50
50
|
"schemas",
|
|
51
51
|
"skills",
|
|
52
|
+
"ai-tasks.json",
|
|
52
53
|
"README.md",
|
|
53
54
|
"README.zh-CN.md",
|
|
54
55
|
"LICENSE"
|
|
@@ -75,10 +76,10 @@
|
|
|
75
76
|
"devDependencies": {
|
|
76
77
|
"@biomejs/biome": "2.5.15",
|
|
77
78
|
"@types/node": "^22.18.0",
|
|
78
|
-
"motion": "
|
|
79
|
+
"motion": "14.3.0",
|
|
79
80
|
"typescript": "^7.0.2"
|
|
80
81
|
},
|
|
81
82
|
"packageManager": "pnpm@10.15.0",
|
|
82
83
|
"readmeFilename": "README.md",
|
|
83
|
-
"readme": "<p align=\"center\">\n <img alt=\"sideby: work, personal and API-key accounts, one terminal each, one shared config\" src=\"https://raw.githubusercontent.com/Adonis0123/sideby/main/docs/assets/banner.jpg\" width=\"880\">\n</p>\n\n<p align=\"center\">\n <b>Run work, personal and API-key accounts at the same time, without their configs drifting apart.</b><br>\n Each account is its own directory and its own terminal. Skills, hooks and settings stay linked to your main account. Claude Code, Codex, Grok Build and pi.\n</p>\n\n<p align=\"center\">\n <a href=\"https://www.npmjs.com/package/sideby\"><img alt=\"npm\" src=\"https://img.shields.io/npm/v/sideby\"></a>\n <a href=\"https://github.com/Adonis0123/sideby/actions/workflows/ci.yml\"><img alt=\"CI\" src=\"https://github.com/Adonis0123/sideby/actions/workflows/ci.yml/badge.svg\"></a>\n <img alt=\"Node 22.18+\" src=\"https://img.shields.io/badge/node-%E2%89%A522.18-339933\">\n <a href=\"LICENSE\"><img alt=\"MIT\" src=\"https://img.shields.io/badge/license-MIT-blue\"></a>\n</p>\n\n<p align=\"center\">English | <a href=\"README.zh-CN.md\">中文</a></p>\n\n## Quick start\n\nRequires Node 22.18+ and at least one Host CLI (Claude Code, Codex, Grok Build or pi) installed. AI agents: follow the setup steps in [`llms.txt`](llms.txt) (\"Set up sideby for a user\") instead.\n\n```sh\nnpm i -g sideby\nsideby new claude work # create ~/.claude-work, sharing ~/.claude's skills and hooks\nsideby login claude:work # sign in once\nsideby run work # Claude Code on the work account\nsideby quota setup claude --yes # Claude quota in the panel; undo: sideby quota teardown claude\nsideby ui --background # every account's quota at http://127.0.0.1:17420, still there after you close the terminal\n```\n\n`sideby app install` adds a Dock icon that opens the panel, and `sideby autostart on` has it ready each time you log in. `sideby update` installs a newer sideby when there is one; sideby says so after a command and in the panel. `sideby run claude:main` keeps using `~/.claude` in another terminal at the same time. Arguments after `--` go to the Host: `sideby run work -- --resume`. To try it without installing, run `npx sideby`.\n\n## Set up with your AI agent\n\nPaste this into Claude Code, Codex or any coding agent:\n\n```text\nInstall the sideby CLI (npm package `sideby`) and its agent skill, then set up a second Claude Code account for me.\nFollow \"Set up sideby for a user\" in https://raw.githubusercontent.com/Adonis0123/sideby/main/llms.txt\n```\n\nThe agent checks Node and your Host CLIs, installs sideby and the skill, creates the account, tells you what it shares with your main one and makes its short command work. You sign in once in your browser; the agent gives you that one command. Once the skill is installed, short requests work too: \"add another Claude account, cc008\", \"what do my Codex accounts share?\", \"which account still has quota?\".\n\n## What it looks like\n\nThe 25-second story: one account buried in tasks, then accounts side by side sharing one setup, and a task moving on when one runs out.\n\nhttps://github.com/user-attachments/assets/fd6138ae-499d-4055-b94f-25ef9ce74035\n\n<img alt=\"Two terminals: the personal account and the work account running at the same time, both linked to the main account's skills and settings, then the local quota panel, and at 95% Auto Handoff moving work's session to the next account\" src=\"https://raw.githubusercontent.com/Adonis0123/sideby/main/docs/assets/demo.gif\" width=\"1280\">\n\n<picture>\n <source media=\"(prefers-color-scheme: dark)\" srcset=\"https://raw.githubusercontent.com/Adonis0123/sideby/main/docs/assets/panel-dark.png\">\n <source media=\"(prefers-color-scheme: light)\" srcset=\"https://raw.githubusercontent.com/Adonis0123/sideby/main/docs/assets/panel.png\">\n <img alt=\"sideby panel: every account's 5h and 7d quota, 7-day token usage and health in one page\" src=\"https://raw.githubusercontent.com/Adonis0123/sideby/main/docs/assets/panel.png\" width=\"1280\">\n</picture>\n\n## Why not just an alias?\n\n`CLAUDE_CONFIG_DIR` plus a shell alias already starts a second account. It does not keep skills and settings in one place, and it does not show quota for every account. [Does this break a provider's terms?](docs/guide/faq.md#terms)\n\n| | At the same time | Skills, hooks, settings | Quota and usage | Setup |\n|---|---|---|---|---|\n| `CLAUDE_CONFIG_DIR` and an alias | Yes. Each terminal exports the variable. | Each directory is its own copy. They drift unless you symlink by hand. | That session's status line | One alias per account |\n| [cc-switch](https://github.com/farion1231/cc-switch) | Enabling a provider writes the host's live config, so open sessions share that switch. | Plugin settings are copied across providers as a separate step. | The active provider, from its quota endpoint | Install the desktop app |\n| sideby | Yes. `sideby run` selects the directory for that process and leaves your shell alone. | Linked to the main account. `sideby doctor --fix` repairs copies. Sign-in and sessions stay separate. | Every account, from local files. Claude needs `quota setup`. | `npm i -g sideby`, then `sideby new` and sign in |\n\ncc-switch's docs describe that switch: it writes the live settings file ([README](https://github.com/farion1231/cc-switch#readme)). [#1105](https://github.com/farion1231/cc-switch/issues/1105) and [#2908](https://github.com/farion1231/cc-switch/issues/2908) ask for several sessions at once. [#1106](https://github.com/farion1231/cc-switch/issues/1106) is closed; the maintainer says Claude Code's \"open terminal\" can start one provider without changing the global config.\n\n## What else it does\n\n| You want to | Run | Guide |\n|---|---|---|\n| Hand a task to your own AI from the panel: set up an account, fix a problem, support a new tool | **Let AI do it** in the panel, or `sideby ask` | [Let AI do it](docs/guide/panel.md#let-ai-do-it) |\n| Have the panel ready in the background whenever you log in | **Settings › Startup** in the panel, or `sideby autostart on` | [Start at login](docs/guide/usage.md#start-at-login) |\n| Add an API key account (DeepSeek, a gateway, …) | `sideby new claude deepseek --api` | [API accounts](docs/guide/usage.md#api-accounts) |\n| Find and fix config drift between accounts | `sideby doctor --fix` | [Doctor](docs/guide/usage.md#doctor) |\n| See Claude quota (Codex needs no setup) | `sideby quota setup claude --yes` | [Claude quota](docs/guide/usage.md#claude-quota) |\n| Find the cheapest auto-compact size from your own sessions, and use it in one click | `sideby tune` (or the panel's Context tuning tab) | [Context tuning](docs/guide/usage.md#context-tuning) |\n| See each account's model and effort, and set them per account | `sideby model <account>` (or click the model in the panel) | [Model and effort](docs/guide/usage.md#model-and-effort) |\n| Choose whether Claude sessions connect to claude.ai by themselves (Remote Control), for every account at once | `sideby remote-control off` or `on` (or the panel's Settings) | [Remote Control](docs/guide/usage.md#remote-control) |\n| Pin the accounts you use most and put tools and accounts in your own order | `sideby pin claude:work`, `sideby order` (or the panel's Settings) | [Your own order](docs/guide/usage.md#your-own-order) |\n| Move on when an account hits its limit | `sideby next claude` | [Handoff](docs/guide/usage.md#when-an-account-hits-its-limit) |\n| Let a running task move to the next account by itself when quota runs low (off by default; see the risk) | `sideby handoff enable` (or the panel) | [Auto Handoff](docs/guide/usage.md#auto-handoff) |\n| Short commands such as `ccw` | `sideby alias add ccw claude:work` | [Shell functions](docs/guide/configuration.md#shell-functions) |\n| Reopen a session from Orca and the like in the account that holds it | `\"resumeRouting\": true` in config | [Resuming from other tools](docs/guide/configuration.md#resuming-from-other-tools) |\n| Open Claude Desktop or the Codex app as one account, several side by side (macOS) | `sideby desktop claude:work` (or the panel) | [Desktop apps](docs/guide/usage.md#desktop-apps) |\n| Keep several Grok Bot windows open, each signed in to its own account (macOS) | `sideby desktop grok-bot:002` (or the panel) | [Grok Bot windows](docs/guide/usage.md#grok-bot-windows) |\n| Open the panel from the Dock or app menu | `sideby app install` | [Panel app](docs/guide/panel.md#panel-app) |\n| Show the panel inside your own local page | `createPanelHandler()` | [Embed the panel](docs/guide/panel.md#embed-the-panel) |\n| Add a Host or a pre-launch check | a local plugin | [Plugins](docs/guide/plugins.md) |\n\n## Supported hosts\n\n| Host | Account directories | Sign-in | Quota | Usage (7 days) |\n|---|---|---|---|---|\n| Claude Code | `~/.claude`, `~/.claude-<name>` | `claude auth login` | ✓ after `quota setup claude` | ✓ |\n| Codex CLI | `~/.codex`, `~/.codex-<name>` | `codex login` | ✓ | ✓ |\n| Grok Build | `~/.grok`, `~/.grok-<name>` | `grok login` | weekly, asked from the `grok` CLI | no public source |\n| pi | `~/.pi/agent`, `~/.pi-<name>/agent` | `/login` inside pi | no public source | no public source |\n\nsideby starts the official binary on your `PATH` and never patches it. Tested versions and per-Host notes are in the [guide](docs/guide/usage.md#host-notes).\n\n## Platforms\n\nmacOS and Linux. CI runs the suite on `ubuntu-latest` and `macos-latest`, Node 22 and 24. **Windows is untested.** `sideby app` only installs a launcher on macOS and Linux. Linked items are symlinks, `sideby shell-init` prints bash and zsh functions, and the Claude quota wrapper runs `/bin/sh`.\n\n## Roadmap\n\n**Gemini CLI.** Gemini can point at another config directory with `GEMINI_CONFIG_DIR`. Older docs use `GEMINI_CLI_HOME`; current builds treat that name as deprecated, and exit on startup if it is set together with an exact directory override. A sideby family still needs a tested Gemini version, a login check that does not read tokens, and a list of which files to link or copy. That is more than a small patch, so it is not in this version.\n\n## Safe by design\n\n- It never edits a Host's global config to switch accounts. It moves a task to another account only when you turn on Auto Handoff, and never proxies requests or pools logins.\n- It never reads, prints or sends a credential value. Nothing about your accounts leaves your machine: the only request sideby makes on its own is a daily check of the npm registry for its newest version (off with `NO_UPDATE_NOTIFIER=1`; see [Updates](docs/guide/configuration.md#updates)).\n- `doctor --fix` never replaces a real file and never changes where a link points.\n\nDetails and the terms-of-service question are in the [FAQ](docs/guide/faq.md).\n\nUsage questions and ideas go in [Discussions](https://github.com/Adonis0123/sideby/discussions).\n\n## Docs\n\n- [Using sideby](docs/guide/usage.md): accounts, API accounts, Doctor, quota, Handoff, Host notes\n- [Commands](docs/guide/commands.md): every command, exit codes and `--json`\n- [Configuration](docs/guide/configuration.md): `config.json`, aliases, shell functions\n- [Panel](docs/guide/panel.md): the panel, panel app and embedding\n- [Plugins](docs/guide/plugins.md): write your own Family or launch hook\n- [FAQ](docs/guide/faq.md): terms of service, data locations, alternatives, uninstall\n- [Changelog](https://github.com/Adonis0123/sideby/releases)\n\n## For AI agents\n\n- [`llms.txt`](llms.txt): setup steps, commands, JSON contract and plugin API in one index. `sideby families --json` states what each Host's accounts share.\n- [`skills/sideby/SKILL.md`](skills/sideby/SKILL.md): one Agent Skill for seeing, repairing and creating accounts and for moving on when one hits its limit. Install with `npx skills add Adonis0123/sideby -g`; `sideby doctor` warns when the installed copy is for another sideby version.\n- [`AGENTS.md`](AGENTS.md): rules for agents working on this repository.\n\n## License\n\n[MIT](LICENSE)\n"
|
|
84
|
+
"readme": "<p align=\"center\">\n <img alt=\"sideby: work, personal and API-key accounts, one terminal each, one shared config\" src=\"https://raw.githubusercontent.com/Adonis0123/sideby/main/docs/assets/banner.jpg\" width=\"880\">\n</p>\n\n<p align=\"center\">\n <b>Run work, personal and API-key accounts at the same time, without their configs drifting apart.</b><br>\n Each account is its own directory and its own terminal. Skills, hooks and settings stay linked to your main account. Claude Code, Codex, Grok Build and pi.\n</p>\n\n<p align=\"center\">\n <a href=\"https://www.npmjs.com/package/sideby\"><img alt=\"npm\" src=\"https://img.shields.io/npm/v/sideby\"></a>\n <a href=\"https://github.com/Adonis0123/sideby/actions/workflows/ci.yml\"><img alt=\"CI\" src=\"https://github.com/Adonis0123/sideby/actions/workflows/ci.yml/badge.svg\"></a>\n <img alt=\"Node 22.18+\" src=\"https://img.shields.io/badge/node-%E2%89%A522.18-339933\">\n <a href=\"LICENSE\"><img alt=\"MIT\" src=\"https://img.shields.io/badge/license-MIT-blue\"></a>\n</p>\n\n<p align=\"center\">English | <a href=\"README.zh-CN.md\">中文</a></p>\n\n## Quick start\n\nRequires Node 22.18+ and at least one Host CLI (Claude Code, Codex, Grok Build or pi) installed. AI agents: follow the setup steps in [`llms.txt`](llms.txt) (\"Set up sideby for a user\") instead.\n\n```sh\nnpm i -g sideby\nsideby new claude work # create ~/.claude-work, sharing ~/.claude's skills and hooks\nsideby login claude:work # sign in once\nsideby run work # Claude Code on the work account\nsideby quota setup claude --yes # Claude quota in the panel; undo: sideby quota teardown claude\nsideby ui --background # every account's quota at http://127.0.0.1:17420, still there after you close the terminal\n```\n\n`sideby app install` adds a Dock icon that opens the panel, and `sideby autostart on` has it ready each time you log in. `sideby update` installs a newer sideby when there is one; sideby says so after a command and in the panel. `sideby run claude:main` keeps using `~/.claude` in another terminal at the same time. Arguments after `--` go to the Host: `sideby run work -- --resume`. To try it without installing, run `npx sideby`.\n\n## Set up with your AI agent\n\nPaste this into Claude Code, Codex or any coding agent:\n\n```text\nInstall the sideby CLI (npm package `sideby`) and its agent skill, then set up a second Claude Code account for me.\nFollow \"Set up sideby for a user\" in https://raw.githubusercontent.com/Adonis0123/sideby/main/llms.txt\n```\n\nThe agent checks Node and your Host CLIs, installs sideby and the skill, creates the account, tells you what it shares with your main one and makes its short command work. You sign in once in your browser; the agent gives you that one command. Once the skill is installed, short requests work too: \"add another Claude account, cc008\", \"what do my Codex accounts share?\", \"which account still has quota?\".\n\n## What it looks like\n\nThe 25-second story: one account buried in tasks, then accounts side by side sharing one setup, and a task moving on when one runs out.\n\nhttps://github.com/user-attachments/assets/d1d7e8dd-1df1-4881-ac88-e468c2dd4a1d\n\n<img alt=\"Two terminals: the personal account and the work account running at the same time, both linked to the main account's skills and settings, then the local quota panel, and at 95% Auto Handoff moving work's session to the next account\" src=\"https://raw.githubusercontent.com/Adonis0123/sideby/main/docs/assets/demo.gif\" width=\"1280\">\n\n<picture>\n <source media=\"(prefers-color-scheme: dark)\" srcset=\"https://raw.githubusercontent.com/Adonis0123/sideby/main/docs/assets/panel-dark.png\">\n <source media=\"(prefers-color-scheme: light)\" srcset=\"https://raw.githubusercontent.com/Adonis0123/sideby/main/docs/assets/panel.png\">\n <img alt=\"sideby panel: every account's 5h and 7d quota, 7-day token usage and health in one page\" src=\"https://raw.githubusercontent.com/Adonis0123/sideby/main/docs/assets/panel.png\" width=\"1280\">\n</picture>\n\nOn macOS, the same quota sits in the menu bar (`sideby menubar on`): click or press `⌥⌘S` to open it, and click an account to start it in the terminal.\n\n<picture>\n <source media=\"(prefers-color-scheme: dark)\" srcset=\"https://raw.githubusercontent.com/Adonis0123/sideby/main/docs/assets/menubar-dark.png\">\n <source media=\"(prefers-color-scheme: light)\" srcset=\"https://raw.githubusercontent.com/Adonis0123/sideby/main/docs/assets/menubar.png\">\n <img alt=\"sideby macOS menu bar dropdown: a status card, each tool with 5-hour and weekly quota bars, reset times, and the suggested account marked\" src=\"https://raw.githubusercontent.com/Adonis0123/sideby/main/docs/assets/menubar.png\" width=\"468\">\n</picture>\n\n## Why not just an alias?\n\n`CLAUDE_CONFIG_DIR` plus a shell alias already starts a second account. It does not keep skills and settings in one place, and it does not show quota for every account. [Does this break a provider's terms?](docs/guide/faq.md#terms)\n\n| | At the same time | Skills, hooks, settings | Quota and usage | Setup |\n|---|---|---|---|---|\n| `CLAUDE_CONFIG_DIR` and an alias | Yes. Each terminal exports the variable. | Each directory is its own copy. They drift unless you symlink by hand. | That session's status line | One alias per account |\n| [cc-switch](https://github.com/farion1231/cc-switch) | Enabling a provider writes the host's live config, so open sessions share that switch. | Plugin settings are copied across providers as a separate step. | The active provider, from its quota endpoint | Install the desktop app |\n| sideby | Yes. `sideby run` selects the directory for that process and leaves your shell alone. | Linked to the main account. `sideby doctor --fix` repairs copies. Sign-in and sessions stay separate. | Every account, from local files. Claude needs `quota setup`. | `npm i -g sideby`, then `sideby new` and sign in |\n\ncc-switch's docs describe that switch: it writes the live settings file ([README](https://github.com/farion1231/cc-switch#readme)). [#1105](https://github.com/farion1231/cc-switch/issues/1105) and [#2908](https://github.com/farion1231/cc-switch/issues/2908) ask for several sessions at once. [#1106](https://github.com/farion1231/cc-switch/issues/1106) is closed; the maintainer says Claude Code's \"open terminal\" can start one provider without changing the global config.\n\n## What else it does\n\n| You want to | Run | Guide |\n|---|---|---|\n| Hand a task to your own AI from the panel: set up an account, fix a problem, support a new tool | **Let AI do it** in the panel, or `sideby ask` | [Let AI do it](docs/guide/panel.md#let-ai-do-it) |\n| See quota at a glance in the macOS menu bar | **Settings › Startup** in the panel, or `sideby menubar on` | [Quota in the menu bar](docs/guide/usage.md#quota-in-the-menu-bar) |\n| Have the panel ready in the background whenever you log in | **Settings › Startup** in the panel, or `sideby autostart on` | [Start at login](docs/guide/usage.md#start-at-login) |\n| Add an API key account (DeepSeek, a gateway, …) | `sideby new claude deepseek --api` | [API accounts](docs/guide/usage.md#api-accounts) |\n| Find and fix config drift between accounts | `sideby doctor --fix` | [Doctor](docs/guide/usage.md#doctor) |\n| See Claude quota (Codex needs no setup) | `sideby quota setup claude --yes` | [Claude quota](docs/guide/usage.md#claude-quota) |\n| Find the cheapest auto-compact size from your own sessions, and use it in one click | `sideby tune` (or the panel's Context tuning tab) | [Context tuning](docs/guide/usage.md#context-tuning) |\n| See each account's model and effort, and set them per account | `sideby model <account>` (or click the model in the panel) | [Model and effort](docs/guide/usage.md#model-and-effort) |\n| Choose whether Claude sessions connect to claude.ai by themselves (Remote Control), for every account at once | `sideby remote-control off` or `on` (or the panel's Settings) | [Remote Control](docs/guide/usage.md#remote-control) |\n| Pin the accounts you use most and put tools and accounts in your own order | `sideby pin claude:work`, `sideby order` (or the panel's Settings) | [Your own order](docs/guide/usage.md#your-own-order) |\n| Move on when an account hits its limit | `sideby next claude` | [Handoff](docs/guide/usage.md#when-an-account-hits-its-limit) |\n| Let a running task move to the next account by itself when quota runs low (off by default; see the risk) | `sideby handoff enable` (or the panel) | [Auto Handoff](docs/guide/usage.md#auto-handoff) |\n| Short commands such as `ccw` | `sideby alias add ccw claude:work` | [Shell functions](docs/guide/configuration.md#shell-functions) |\n| Reopen a session from Orca and the like in the account that holds it | `\"resumeRouting\": true` in config | [Resuming from other tools](docs/guide/configuration.md#resuming-from-other-tools) |\n| Open Claude Desktop or the Codex app as one account, several side by side (macOS) | `sideby desktop claude:work` (or the panel) | [Desktop apps](docs/guide/usage.md#desktop-apps) |\n| Keep several Grok Bot windows open, each signed in to its own account (macOS) | `sideby desktop grok-bot:002` (or the panel) | [Grok Bot windows](docs/guide/usage.md#grok-bot-windows) |\n| Open the panel from the Dock or app menu | `sideby app install` | [Panel app](docs/guide/panel.md#panel-app) |\n| Show the panel inside your own local page | `createPanelHandler()` | [Embed the panel](docs/guide/panel.md#embed-the-panel) |\n| Add a Host or a pre-launch check | a local plugin | [Plugins](docs/guide/plugins.md) |\n\n## Supported hosts\n\n| Host | Account directories | Sign-in | Quota | Usage (7 days) |\n|---|---|---|---|---|\n| Claude Code | `~/.claude`, `~/.claude-<name>` | `claude auth login` | ✓ after `quota setup claude` | ✓ |\n| Codex CLI | `~/.codex`, `~/.codex-<name>` | `codex login` | ✓ | ✓ |\n| Grok Build | `~/.grok`, `~/.grok-<name>` | `grok login` | weekly, asked from the `grok` CLI | no public source |\n| pi | `~/.pi/agent`, `~/.pi-<name>/agent` | `/login` inside pi | no public source | no public source |\n\nsideby starts the official binary on your `PATH` and never patches it. Tested versions and per-Host notes are in the [guide](docs/guide/usage.md#host-notes).\n\n## Platforms\n\nmacOS and Linux. CI runs the suite on `ubuntu-latest` and `macos-latest`, Node 22 and 24. **Windows is untested.** `sideby app` only installs a launcher on macOS and Linux. Linked items are symlinks, `sideby shell-init` prints bash and zsh functions, and the Claude quota wrapper runs `/bin/sh`.\n\n## Roadmap\n\n**Gemini CLI.** Gemini can point at another config directory with `GEMINI_CONFIG_DIR`. Older docs use `GEMINI_CLI_HOME`; current builds treat that name as deprecated, and exit on startup if it is set together with an exact directory override. A sideby family still needs a tested Gemini version, a login check that does not read tokens, and a list of which files to link or copy. That is more than a small patch, so it is not in this version.\n\n## Safe by design\n\n- It never edits a Host's global config to switch accounts. It moves a task to another account only when you turn on Auto Handoff, and never proxies requests or pools logins.\n- It never reads, prints or sends a credential value. Nothing about your accounts leaves your machine: the only request sideby makes on its own is a daily check of the npm registry for its newest version (off with `NO_UPDATE_NOTIFIER=1`; see [Updates](docs/guide/configuration.md#updates)).\n- `doctor --fix` never replaces a real file and never changes where a link points.\n- The panel answers only on `127.0.0.1` and refuses web pages from other sites, but it trusts every user of this computer. On a shared Mac, do not leave it running in the background ([details](docs/guide/panel.md#who-can-reach-the-panel)).\n\nDetails and the terms-of-service question are in the [FAQ](docs/guide/faq.md).\n\nUsage questions and ideas go in [Discussions](https://github.com/Adonis0123/sideby/discussions).\n\n## Docs\n\n- [Using sideby](docs/guide/usage.md): accounts, API accounts, Doctor, quota, Handoff, Host notes\n- [Commands](docs/guide/commands.md): every command, exit codes and `--json`\n- [Configuration](docs/guide/configuration.md): `config.json`, aliases, shell functions\n- [Panel](docs/guide/panel.md): the panel, panel app and embedding\n- [Plugins](docs/guide/plugins.md): write your own Family or launch hook\n- [FAQ](docs/guide/faq.md): terms of service, data locations, alternatives, uninstall\n- [Changelog](https://github.com/Adonis0123/sideby/releases)\n\n## For AI agents\n\n- [`llms.txt`](llms.txt): setup steps, commands, JSON contract and plugin API in one index. `sideby families --json` states what each Host's accounts share.\n- [`skills/sideby/SKILL.md`](skills/sideby/SKILL.md): one Agent Skill for seeing, repairing and creating accounts and for moving on when one hits its limit. Install with `npx skills add Adonis0123/sideby -g`; `sideby doctor` warns when the installed copy is for another sideby version.\n- [`AGENTS.md`](AGENTS.md): rules for agents working on this repository.\n\n## License\n\n[MIT](LICENSE)\n"
|
|
84
85
|
}
|