sideby 0.32.1 → 0.33.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/assets/brand/sai-painted-1024.png +0 -0
- package/assets/brand/sai-painted-128.png +0 -0
- package/assets/brand/sai-painted-256.png +0 -0
- package/assets/brand/sai-painted-64.png +0 -0
- package/dist/build.json +1 -1
- package/dist/src/cli/commands.js +57 -14
- package/dist/src/cli/format.js +3 -1
- package/dist/src/cli/json-schemas.js +30 -5
- package/dist/src/cli/main.js +9 -4
- package/dist/src/core/brand-mark.d.ts +18 -115
- package/dist/src/core/brand-mark.js +43 -174
- package/dist/src/core/messages.d.ts +17 -5
- package/dist/src/core/messages.js +38 -15
- package/dist/src/core/quota-fetch.js +9 -2
- package/dist/src/desktop/icon.d.ts +13 -1
- package/dist/src/desktop/icon.js +153 -285
- package/dist/src/families/claude/deliver.js +9 -1
- package/dist/src/families/claude/messaging.d.ts +7 -1
- package/dist/src/families/claude/messaging.js +10 -2
- package/dist/src/families/codex/deliver.d.ts +10 -1
- package/dist/src/families/codex/deliver.js +24 -2
- package/dist/src/families/messaging.d.ts +6 -1
- package/dist/src/menubar/script.d.ts +5 -0
- package/dist/src/menubar/script.js +111 -25
- package/dist/src/menubar/snapshot.d.ts +29 -8
- package/dist/src/menubar/snapshot.js +132 -31
- package/dist/src/menubar/strings.d.ts +22 -6
- package/dist/src/menubar/strings.js +22 -6
- package/dist/src/panel/handler.d.ts +2 -2
- package/dist/src/panel/handler.js +8 -2
- package/dist/src/panel/i18n.d.ts +5 -0
- package/dist/src/panel/i18n.js +14 -4
- package/dist/src/panel/page-logic.d.ts +25 -4
- package/dist/src/panel/page-logic.js +122 -10
- package/dist/src/panel/page-script.js +39 -8
- package/dist/src/panel/page-styles.js +5 -5
- package/dist/src/panel/page.js +2 -2
- package/dist/src/panel/theme.d.ts +4 -1
- package/dist/src/runtime.d.ts +3 -1
- package/dist/src/runtime.js +1 -1
- package/package.json +2 -1
- package/schemas/menubar-snapshot.json +102 -2
- package/schemas/messages.json +6 -2
- package/schemas/send.json +6 -2
- package/skills/sideby/SKILL.md +1 -1
- package/skills/sideby/references/panel.md +1 -1
- package/skills/sideby/references/sessions.md +6 -3
|
@@ -18,6 +18,101 @@ export function formatDuration(ms, lang) {
|
|
|
18
18
|
return zh ? `${h}小时${mm}分` : `${h}h ${mm}m`;
|
|
19
19
|
return zh ? `${m}分钟` : `${m}m`;
|
|
20
20
|
}
|
|
21
|
+
/**
|
|
22
|
+
* When a quota window resets, in words (spec §3.31): under 24 hours a countdown (`in 4h 20m`, `4小时20分后`); else
|
|
23
|
+
* the next local calendar day (`tomorrow 4:59 PM`, `明天 16:59`), up to 6 days the weekday (`Wed 4:59 PM`, `周三
|
|
24
|
+
* 16:59`), later the date (`Nov 11, 4:59 PM`, `11月11日 16:59`) with the year when it is not this year. One rule for
|
|
25
|
+
* the menu bar, the Panel and the CLI. `timeZone` is for tests; the local zone otherwise. Times are composed by hand
|
|
26
|
+
* from numbers, so ICU's spacing (a narrow no-break space before PM) never shows.
|
|
27
|
+
*/
|
|
28
|
+
export function resetWhen(resetsAt, now, lang, timeZone) {
|
|
29
|
+
const zh = lang === 'zh';
|
|
30
|
+
const at = Date.parse(resetsAt);
|
|
31
|
+
if (!Number.isFinite(at))
|
|
32
|
+
return '?';
|
|
33
|
+
// Decided on the exact difference, so 23 h 59 m 30 s is still a countdown, not tomorrow's date.
|
|
34
|
+
if (at - now < 86_400_000) {
|
|
35
|
+
const minutes = Math.min(1439, Math.max(1, Math.ceil((at - now) / 60000)));
|
|
36
|
+
const h = Math.floor(minutes / 60);
|
|
37
|
+
const m = minutes % 60;
|
|
38
|
+
if (zh)
|
|
39
|
+
return h > 0 ? `${h}小时${m}分后` : `${m}分后`;
|
|
40
|
+
return h > 0 ? `in ${h}h ${m}m` : `in ${m}m`;
|
|
41
|
+
}
|
|
42
|
+
const fmt = new Intl.DateTimeFormat('en-US', {
|
|
43
|
+
timeZone,
|
|
44
|
+
year: 'numeric',
|
|
45
|
+
month: 'numeric',
|
|
46
|
+
day: 'numeric',
|
|
47
|
+
hour: 'numeric',
|
|
48
|
+
minute: 'numeric',
|
|
49
|
+
hourCycle: 'h23',
|
|
50
|
+
});
|
|
51
|
+
const parts = (t) => {
|
|
52
|
+
const p = {};
|
|
53
|
+
for (const x of fmt.formatToParts(new Date(t)))
|
|
54
|
+
if (x.type !== 'literal')
|
|
55
|
+
p[x.type] = Number(x.value);
|
|
56
|
+
return { y: p.year, mo: p.month, d: p.day, h: p.hour % 24, mi: p.minute };
|
|
57
|
+
};
|
|
58
|
+
const r = parts(at);
|
|
59
|
+
const n = parts(now);
|
|
60
|
+
const dayOf = (x) => Math.round(Date.UTC(x.y, x.mo - 1, x.d) / 86400000);
|
|
61
|
+
const days = dayOf(r) - dayOf(n);
|
|
62
|
+
const mm = String(r.mi).padStart(2, '0');
|
|
63
|
+
const time = zh
|
|
64
|
+
? `${String(r.h).padStart(2, '0')}:${mm}`
|
|
65
|
+
: `${r.h % 12 || 12}:${mm} ${r.h < 12 ? 'AM' : 'PM'}`;
|
|
66
|
+
if (days === 1)
|
|
67
|
+
return zh ? `明天 ${time}` : `tomorrow ${time}`;
|
|
68
|
+
const weekday = new Date(Date.UTC(r.y, r.mo - 1, r.d)).getUTCDay();
|
|
69
|
+
if (days > 1 && days <= 6)
|
|
70
|
+
return zh
|
|
71
|
+
? `周${'日一二三四五六'.charAt(weekday)} ${time}`
|
|
72
|
+
: `${['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'][weekday]} ${time}`;
|
|
73
|
+
const month = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'][r.mo - 1];
|
|
74
|
+
if (zh)
|
|
75
|
+
return `${r.y !== n.y ? `${r.y}年` : ''}${r.mo}月${r.d}日 ${time}`;
|
|
76
|
+
return `${month} ${r.d}${r.y !== n.y ? `, ${r.y}` : ''}, ${time}`;
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
* A reset time in full for hover text, such as `Wed, Nov 4, 4:59 PM` or `11月4日周三 16:59`, with the year when it is
|
|
80
|
+
* not this year. `timeZone` is for tests.
|
|
81
|
+
*/
|
|
82
|
+
export function resetDate(resetsAt, now, lang, timeZone) {
|
|
83
|
+
const zh = lang === 'zh';
|
|
84
|
+
const at = Date.parse(resetsAt);
|
|
85
|
+
if (!Number.isFinite(at))
|
|
86
|
+
return '?';
|
|
87
|
+
const p = {};
|
|
88
|
+
const fmt = new Intl.DateTimeFormat('en-US', {
|
|
89
|
+
timeZone,
|
|
90
|
+
year: 'numeric',
|
|
91
|
+
month: 'numeric',
|
|
92
|
+
day: 'numeric',
|
|
93
|
+
hour: 'numeric',
|
|
94
|
+
minute: 'numeric',
|
|
95
|
+
hourCycle: 'h23',
|
|
96
|
+
});
|
|
97
|
+
for (const x of fmt.formatToParts(new Date(at)))
|
|
98
|
+
if (x.type !== 'literal')
|
|
99
|
+
p[x.type] = Number(x.value);
|
|
100
|
+
const y = p.year;
|
|
101
|
+
const mo = p.month;
|
|
102
|
+
const d = p.day;
|
|
103
|
+
const h = p.hour % 24;
|
|
104
|
+
const mm = String(p.minute).padStart(2, '0');
|
|
105
|
+
let thisYear = y;
|
|
106
|
+
for (const x of fmt.formatToParts(new Date(now)))
|
|
107
|
+
if (x.type === 'year')
|
|
108
|
+
thisYear = Number(x.value);
|
|
109
|
+
const weekday = new Date(Date.UTC(y, mo - 1, d)).getUTCDay();
|
|
110
|
+
if (zh)
|
|
111
|
+
return `${y !== thisYear ? `${y}年` : ''}${mo}月${d}日周${'日一二三四五六'.charAt(weekday)} ${String(h).padStart(2, '0')}:${mm}`;
|
|
112
|
+
const month = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'][mo - 1];
|
|
113
|
+
const wd = ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'][weekday];
|
|
114
|
+
return `${wd}, ${month} ${d}${y !== thisYear ? `, ${y}` : ''}, ${h % 12 || 12}:${mm} ${h < 12 ? 'AM' : 'PM'}`;
|
|
115
|
+
}
|
|
21
116
|
/**
|
|
22
117
|
* A Long Window: longer than one day (weekly, a billing period), from `windowMinutes` or else a label such as `7d`.
|
|
23
118
|
* The page's copy of `isLongWindow` in core/quota-levels.ts; a test keeps the two equal.
|
|
@@ -727,7 +822,9 @@ export function sessionLabelParts(s) {
|
|
|
727
822
|
* What the "Send to it" dialog shows after a send: `done` (the Host took it; `hint` is any note, shown as a yellow
|
|
728
823
|
* hint), `approve` (it took it, but the target shows it only once the user approves it there; `reason` says how, ADR-0045),
|
|
729
824
|
* `paste` (the user pastes `pasteText`; `reason` says why, `jump` offers the
|
|
730
|
-
* target's Orca tab)
|
|
825
|
+
* target's Orca tab), `stored` (kept as a file only; `pasteText` for reference) or `unknown` (sideby could not tell if
|
|
826
|
+
* it arrived, ADR-0065: `reason` says why, and `pasteText` is offered only with a caution, never as the next step).
|
|
827
|
+
* A status this page does not know is shown as `unknown`, never as a request to paste. `key` is the headline's key.
|
|
731
828
|
*/
|
|
732
829
|
export function sendResultView(m, orca) {
|
|
733
830
|
const pasteText = m.pasteText || '';
|
|
@@ -752,7 +849,9 @@ export function sendResultView(m, orca) {
|
|
|
752
849
|
hint: '',
|
|
753
850
|
jump: Boolean(orca && pasteText),
|
|
754
851
|
};
|
|
755
|
-
|
|
852
|
+
if (m.status === 'stored')
|
|
853
|
+
return { kind: 'stored', key: 'send.stored', pasteText, reason: note, hint: '', jump: false };
|
|
854
|
+
return { kind: 'unknown', key: 'send.unknown', pasteText, reason: note, hint: '', jump: false };
|
|
756
855
|
}
|
|
757
856
|
/** The chip a Sessions row shows for the latest Message to it, or null when there is none worth showing. */
|
|
758
857
|
export function messageChip(status, needsApproval) {
|
|
@@ -765,8 +864,18 @@ export function messageChip(status, needsApproval) {
|
|
|
765
864
|
return { key: 'send.chip.read', tone: 'ok' };
|
|
766
865
|
if (status === 'paste-needed')
|
|
767
866
|
return { key: 'send.chip.paste', tone: 'warn' };
|
|
867
|
+
// Given to the channel, but never confirmed (ADR-0065).
|
|
868
|
+
if (status === 'unknown')
|
|
869
|
+
return { key: 'send.chip.unknown', tone: 'warn' };
|
|
768
870
|
return null;
|
|
769
871
|
}
|
|
872
|
+
/**
|
|
873
|
+
* Whether a Session's latest Message asks the user to look: it waits for a paste, or it could not be confirmed. The
|
|
874
|
+
* Sessions tab counts running Sessions for which this holds.
|
|
875
|
+
*/
|
|
876
|
+
export function messageToCheck(status) {
|
|
877
|
+
return status === 'paste-needed' || status === 'unknown';
|
|
878
|
+
}
|
|
770
879
|
/** A Session Label without its short id: `cc002 · knip cleanup · 61230c3d` → `cc002 · knip cleanup`. */
|
|
771
880
|
export function shortSessionLabel(label) {
|
|
772
881
|
const parts = (label || '').split(' · ').filter(Boolean);
|
|
@@ -777,7 +886,8 @@ export function shortSessionLabel(label) {
|
|
|
777
886
|
/**
|
|
778
887
|
* What changed between two readings of the latest Messages, for the Panel's notices (spec §3.32): `new` (a Message
|
|
779
888
|
* reached a Session), `approve` (it reached one that shows it only once the user approves it, ADR-0045), `read` (its
|
|
780
|
-
* Session read it)
|
|
889
|
+
* Session read it), `paste` (it waits for the user to paste it) or `unknown` (sideby could not confirm it arrived,
|
|
890
|
+
* ADR-0065; announced once, as the status never changes by itself). The first reading (`before` null) only sets the
|
|
781
891
|
* baseline, so opening the Panel announces nothing that was already there.
|
|
782
892
|
*/
|
|
783
893
|
export function messageNews(before, after) {
|
|
@@ -795,13 +905,15 @@ export function messageNews(before, after) {
|
|
|
795
905
|
const fresh = !same || was.status === 'stored';
|
|
796
906
|
const kind = m.status === 'paste-needed'
|
|
797
907
|
? 'paste'
|
|
798
|
-
:
|
|
799
|
-
?
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
:
|
|
908
|
+
: m.status === 'unknown'
|
|
909
|
+
? 'unknown'
|
|
910
|
+
: fresh
|
|
911
|
+
? m.status === 'delivered' && m.needsApproval
|
|
912
|
+
? 'approve'
|
|
913
|
+
: 'new'
|
|
914
|
+
: m.status === 'read'
|
|
915
|
+
? 'read'
|
|
916
|
+
: null;
|
|
805
917
|
if (kind)
|
|
806
918
|
out.push({ kind, sessionId, id: m.id, to: shortSessionLabel(m.to), from: shortSessionLabel(m.from) });
|
|
807
919
|
}
|
|
@@ -5,7 +5,7 @@ import { groupsToAccept } from '../core/inbound.js';
|
|
|
5
5
|
import { quotaIsStale } from '../core/quota-levels.js';
|
|
6
6
|
import { remoteControlTodo } from '../core/remote-control.js';
|
|
7
7
|
import { catalogMatchLevel, catalogNorm, searchCatalog } from '../core/search-catalog.js';
|
|
8
|
-
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, longWindow, 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, uaDayRuns, uaGroupPending, uaOnChoices, uaParseClock, uaPickTime, uaSameSlot, uaShouldRead, uaSlotNight, uaStatusParts, uaStepClock, uaToggleDay, uaWaitingCount, uaWhen, updatedAge, widthFollower, widthTier, windowState, withPinned, } from './page-logic.js';
|
|
8
|
+
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, longWindow, maskEmail, matchesQuery, mdBlocks, mdInline, menuPlacement, mergeDaily, mergeUsage, messageChip, messageNews, messageToCheck, networkTaskFacts, newAccountDir, nextReset, panelFixes, panelHint, panelLang, panelMigration, panelPrefs, passedWindow, pinnedIn, quotaAskable, quotaHighLevel, quotaPressure, radioStep, reloadForBuild, remoteControlSummary, reorder, resetWhen, rowBadge, runCodeSwap, saveHandoffChange, sendBlock, sendFileProblem, sendResultView, sessionAge, sessionLabelParts, shortCwd, shortSessionLabel, sortAccounts, sortSessions, steadyOrder, stripSecrets, suggestAlias, suggestName, switchFailure, tailInView, taskFindings, uaDayRuns, uaGroupPending, uaOnChoices, uaParseClock, uaPickTime, uaSameSlot, uaShouldRead, uaSlotNight, uaStatusParts, uaStepClock, uaToggleDay, uaWaitingCount, uaWhen, updatedAge, widthFollower, widthTier, windowState, withPinned, } from './page-logic.js';
|
|
9
9
|
const LOGIC = [
|
|
10
10
|
quotaIsStale,
|
|
11
11
|
catalogNorm,
|
|
@@ -33,6 +33,7 @@ const LOGIC = [
|
|
|
33
33
|
fixPrompt,
|
|
34
34
|
foldSkips,
|
|
35
35
|
formatDuration,
|
|
36
|
+
resetWhen,
|
|
36
37
|
foldToolCalls,
|
|
37
38
|
highlightParts,
|
|
38
39
|
historyEmpty,
|
|
@@ -54,6 +55,7 @@ const LOGIC = [
|
|
|
54
55
|
mergeUsage,
|
|
55
56
|
messageChip,
|
|
56
57
|
messageNews,
|
|
58
|
+
messageToCheck,
|
|
57
59
|
longWindow,
|
|
58
60
|
newAccountDir,
|
|
59
61
|
nextReset,
|
|
@@ -1353,7 +1355,8 @@ const MAIN = String.raw `
|
|
|
1353
1355
|
const left = prefs.quota === 'left'
|
|
1354
1356
|
const shown = left ? 100 - st.pct : st.pct
|
|
1355
1357
|
const asOf = stale ? t('quota.asOf', { ago: ago(observedAt) }) : ''
|
|
1356
|
-
|
|
1358
|
+
// The same words as the menu bar and the CLI (spec §3.31): a countdown under a day, then tomorrow, a weekday, a date.
|
|
1359
|
+
const reset = passed ? t('quota.resetShort') : t('quota.resetsIn', { d: resetWhen(w.resetsAt, now, lang) })
|
|
1357
1360
|
// The wide list's column says only the model group, so the hover names which of its limits this is.
|
|
1358
1361
|
const title = [withLength ? winTitle(w.label) : '', passed ? t('quota.resetNoData', { date: day(passed.since) }) : t('quota.resetsAt', { at: clock(w.resetsAt) }), asOf].filter(Boolean).join(' · ')
|
|
1359
1362
|
return h('div', { class: 'meter lvl-' + st.level + (stale || passed ? ' lvl-stale' : ''), title },
|
|
@@ -2235,8 +2238,8 @@ const MAIN = String.raw `
|
|
|
2235
2238
|
function emptyState() {
|
|
2236
2239
|
const fams = S.state.families.slice().sort((x, y) => Number(y.installed) - Number(x.installed))
|
|
2237
2240
|
return h('div', { class: 'empty' },
|
|
2238
|
-
// The header's mark, cloned (page.ts
|
|
2239
|
-
h('span', { class: 'logo', 'aria-hidden': 'true' }, document.querySelector('.brand .logo
|
|
2241
|
+
// The header's mark, cloned (page.ts takes it from core/brand-mark.ts).
|
|
2242
|
+
h('span', { class: 'logo', 'aria-hidden': 'true' }, document.querySelector('.brand .logo img')?.cloneNode(true) ?? null),
|
|
2240
2243
|
h('h3', null, t('empty.title')),
|
|
2241
2244
|
h('p', { class: 'muted' }, t('empty.body')),
|
|
2242
2245
|
fams.length ? h('ul', { class: 'host-list' }, fams.map((f) => h('li', null, badge(f.id, 'sm'), h('span', null, f.title),
|
|
@@ -3396,10 +3399,10 @@ const MAIN = String.raw `
|
|
|
3396
3399
|
// "asked" numbers each reading and "applied" is the newest one used, so an answer that comes back late never
|
|
3397
3400
|
// replaces a newer one; "own" holds the ids this Panel sent, never announced.
|
|
3398
3401
|
const mn = { base: null, at: 0, loading: false, asked: 0, applied: 0, own: new Set() }
|
|
3399
|
-
// Running Sessions whose latest Message waits for a paste, for the count on the Sessions tab.
|
|
3402
|
+
// Running Sessions whose latest Message waits for a paste or could not be confirmed, for the count on the Sessions tab.
|
|
3400
3403
|
function pasteCount() {
|
|
3401
3404
|
if (!sp.data) return 0
|
|
3402
|
-
return sp.data.sessions.filter((s) => sp.msgs[s.sessionId] && sp.msgs[s.sessionId].status
|
|
3405
|
+
return sp.data.sessions.filter((s) => sp.msgs[s.sessionId] && messageToCheck(sp.msgs[s.sessionId].status)).length
|
|
3403
3406
|
}
|
|
3404
3407
|
function noteMessages(latest, seq) {
|
|
3405
3408
|
if (seq < mn.applied) return
|
|
@@ -3420,6 +3423,11 @@ const MAIN = String.raw `
|
|
|
3420
3423
|
toast(t('msgn.approve', { to: n.to || t('msgn.aSession') }), { kind: 'info', key: 'msg-' + n.sessionId, keep: true, duration: 12000, action: BOOT.readOnly ? null : { label: t('inb.go'), run: openInbound } })
|
|
3421
3424
|
continue
|
|
3422
3425
|
}
|
|
3426
|
+
if (n.kind === 'unknown') {
|
|
3427
|
+
// It may still arrive, so nothing is copied and nothing waits: "View" opens the row's chip with the reason (ADR-0065).
|
|
3428
|
+
toast(t('msgn.unknown', { to: n.to || t('msgn.aSession') }), { kind: 'info', key: 'msg-' + n.sessionId, action: { label: t('msgn.show'), run: () => showSession(n.sessionId, true) } })
|
|
3429
|
+
continue
|
|
3430
|
+
}
|
|
3423
3431
|
const key = n.kind === 'read' ? 'msgn.read' : n.kind === 'paste' ? 'msgn.paste' : n.from ? 'msgn.newFrom' : 'msgn.new'
|
|
3424
3432
|
const there = curPage === 'sessions' && hs.mode !== 'history'
|
|
3425
3433
|
const line = n.kind === 'paste' ? latest[n.sessionId].pasteText : null
|
|
@@ -3604,6 +3612,22 @@ const MAIN = String.raw `
|
|
|
3604
3612
|
}))
|
|
3605
3613
|
return btn
|
|
3606
3614
|
}
|
|
3615
|
+
// Not confirmed (ADR-0065): why, and the line only with the warning that a paste may deliver it twice.
|
|
3616
|
+
if (chip.key === 'send.chip.unknown') {
|
|
3617
|
+
const btn = h('button', { class: cls + ' sess-msg-paste', type: 'button', 'aria-haspopup': 'dialog', 'data-key': 'sess-msg-' + s.sessionId }, t(chip.key), icon('chevron'))
|
|
3618
|
+
btn.addEventListener('click', () => openPopover(btn, 'sess-paste', t(chip.key), () => {
|
|
3619
|
+
const out = [msg.note ? h('p', { class: 'small muted' }, msg.note) : null]
|
|
3620
|
+
if (msg.pasteText) {
|
|
3621
|
+
const area = h('textarea', { class: 'sess-copy-text mono', readonly: true, rows: '3', 'aria-label': t('send.copyLine') })
|
|
3622
|
+
area.value = msg.pasteText
|
|
3623
|
+
const copy = h('button', { class: 'btn btn-sm', type: 'button' }, icon('copy'), h('span', null, t('send.copyLine')))
|
|
3624
|
+
copy.addEventListener('click', () => sessCopy(copy, msg.pasteText, () => { closeMenu(true); toast(t('toast.copied', { text: msg.pasteText })) }))
|
|
3625
|
+
out.push(h('p', { class: 'small' }, t('send.unknownCaution')), area, h('div', { class: 'pop-actions' }, copy))
|
|
3626
|
+
}
|
|
3627
|
+
return out
|
|
3628
|
+
}))
|
|
3629
|
+
return btn
|
|
3630
|
+
}
|
|
3607
3631
|
if (chip.tone !== 'warn' || !msg.pasteText) return h('span', { class: cls, tabindex: '0', 'data-tip': t('send.chipTip') }, t(chip.key))
|
|
3608
3632
|
const btn = h('button', { class: cls + ' sess-msg-paste', type: 'button', 'aria-haspopup': 'dialog', 'data-key': 'sess-msg-' + s.sessionId }, t(chip.key), icon('chevron'))
|
|
3609
3633
|
btn.addEventListener('click', () => openPopover(btn, 'sess-paste', t('send.chip.paste'), () => {
|
|
@@ -4747,7 +4771,7 @@ const MAIN = String.raw `
|
|
|
4747
4771
|
const r = await api('/api/sessions/send', { sessionId: mine.s.sessionId, text, attachments: ready.map((f) => f.id), lang })
|
|
4748
4772
|
ready.forEach((f) => { f.sent = true })
|
|
4749
4773
|
mine.result = r
|
|
4750
|
-
ownMessage(mine.s.sessionId, { id: r.message.id, status: r.message.status, sentAt: r.message.sentAt, to: r.message.to, ...(r.message.status
|
|
4774
|
+
ownMessage(mine.s.sessionId, { id: r.message.id, status: r.message.status, sentAt: r.message.sentAt, to: r.message.to, ...(messageToCheck(r.message.status) ? { pasteText: r.message.pasteText } : {}), ...(r.message.note ? { note: r.message.note } : {}) })
|
|
4751
4775
|
renderSessionsPage()
|
|
4752
4776
|
} catch (e) { mine.error = e }
|
|
4753
4777
|
dlg.busy = false
|
|
@@ -4766,7 +4790,7 @@ const MAIN = String.raw `
|
|
|
4766
4790
|
const v = sendResultView(r.message, Boolean(r.orca))
|
|
4767
4791
|
const out = []
|
|
4768
4792
|
if (v.kind === 'done') out.push(h('div', { class: 'note note-ok', role: 'status' }, icon('tick'), h('span', null, t(v.key, { name }))))
|
|
4769
|
-
else out.push(h('div', { class: 'note' + (v.kind === 'paste' || v.kind === 'approve' ? ' note-warn' : ''), role: 'status' }, h('b', null, t(v.key, { name })), v.reason ? h('span', { class: 'note-line' }, v.reason) : null))
|
|
4793
|
+
else out.push(h('div', { class: 'note' + (v.kind === 'paste' || v.kind === 'approve' || v.kind === 'unknown' ? ' note-warn' : ''), role: 'status' }, h('b', null, t(v.key, { name })), v.reason ? h('span', { class: 'note-line' }, v.reason) : null))
|
|
4770
4794
|
if (v.hint) out.push(h('p', { class: 'note note-warn small' }, v.hint))
|
|
4771
4795
|
if (v.kind === 'approve' && !BOOT.readOnly)
|
|
4772
4796
|
out.push(h('div', { class: 'pop-actions' }, h('button', { class: 'btn btn-sm btn-primary', type: 'button', onclick: openInbound }, t('inb.go'))))
|
|
@@ -4777,6 +4801,13 @@ const MAIN = String.raw `
|
|
|
4777
4801
|
h('div', { class: 'send-line-actions' }, copy,
|
|
4778
4802
|
v.jump ? h('button', { class: 'btn btn-sm', type: 'button', onclick: () => jumpToOrca(sd.s) }, icon('link'), t('send.jump')) : null)))
|
|
4779
4803
|
}
|
|
4804
|
+
// Not confirmed: the line is there for when it never shows up, never the next step, and never copied by itself.
|
|
4805
|
+
if (v.kind === 'unknown' && v.pasteText) {
|
|
4806
|
+
const copy = h('button', { class: 'btn btn-sm', type: 'button' }, icon('copy'), t('send.copyLine'))
|
|
4807
|
+
copy.addEventListener('click', () => sessCopy(copy, v.pasteText, () => toast(t('send.copiedUnknown', { name }))))
|
|
4808
|
+
out.push(h('p', { class: 'small muted' }, t('send.unknownCaution')),
|
|
4809
|
+
h('div', { class: 'send-line' }, h('code', { class: 'send-line-text' }, v.pasteText), h('div', { class: 'send-line-actions' }, copy)))
|
|
4810
|
+
}
|
|
4780
4811
|
return out
|
|
4781
4812
|
}
|
|
4782
4813
|
function sendAgain() {
|
|
@@ -8,11 +8,11 @@ const colorDecls = (tokens) => Object.entries(tokens)
|
|
|
8
8
|
.map(([k, v]) => `${THEME_TOKENS[k]}: ${v}`)
|
|
9
9
|
.join('; ');
|
|
10
10
|
// Colors defined from other tokens, before each scheme's Theme colors so a Theme can set them; repeated in both schemes so they follow that scheme's base colors. Dark mode keeps
|
|
11
|
-
// the logo tile light: the mark
|
|
12
|
-
//
|
|
11
|
+
// the logo tile light: the painted mark (core/brand-mark.ts, ADR-0064) is drawn for a light ground. `--logo-fg` no longer
|
|
12
|
+
// colours the mark (it is a painting); it stays the brand blue so Themes that set it keep working (ADR-0050).
|
|
13
13
|
const DERIVED_COLORS = `
|
|
14
14
|
--btn-text: var(--text); --btn-hover-text: var(--accent); --check: var(--focus);
|
|
15
|
-
--logo-bg: var(--surface-2); --logo-fg: #3f8fc4; /* design-system-ignore: the
|
|
15
|
+
--logo-bg: var(--surface-2); --logo-fg: #3f8fc4; /* design-system-ignore: the brand blue (ADR-0050); the painted mark keeps its own colours (ADR-0064) */ --logo-line: var(--border);
|
|
16
16
|
--focus-outline: 2px solid var(--focus); --focus-ring: none;
|
|
17
17
|
--scrim: color-mix(in srgb, var(--text) 40%, transparent);`;
|
|
18
18
|
// The usage chart (--spark) takes the main button's hue at a readable lightness, keeping its chroma: a black-and-white
|
|
@@ -100,8 +100,8 @@ code, .mono { font-family: var(--mono); font-size: 0.92em; }
|
|
|
100
100
|
.ver-pill.has-update { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); }
|
|
101
101
|
.ver-pill.has-update::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
|
|
102
102
|
.logo { display: inline-flex; flex: none; width: 40px; height: 40px; border-radius: 10px; background: var(--logo-bg); box-shadow: inset 0 0 0 1px var(--logo-line); }
|
|
103
|
-
/*
|
|
104
|
-
.logo
|
|
103
|
+
/* The painted mark (core/brand-mark.ts), 3 px in from the tile's edge; desktop/icon.ts lays the app icon out the same way. */
|
|
104
|
+
.logo img { display: block; width: 100%; height: 100%; padding: 7.5%; box-sizing: border-box; object-fit: contain; }
|
|
105
105
|
.top-actions { display: flex; align-items: center; gap: 8px; }
|
|
106
106
|
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
|
|
107
107
|
.section-head > div:first-child { min-width: 0; }
|
package/dist/src/panel/page.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// sibling modules: page-styles.ts (tokens and CSS), page-script.ts (behaviour, with page-logic.ts helpers) and
|
|
3
3
|
// i18n.ts (English and Chinese text); this module assembles them under the CSP nonce.
|
|
4
4
|
import { createHash } from 'node:crypto';
|
|
5
|
-
import { FAVICON_SVG,
|
|
5
|
+
import { FAVICON_SVG, MARK_IMG } from '../core/brand-mark.js';
|
|
6
6
|
import { commandListForPage } from '../core/cli-commands.js';
|
|
7
7
|
import { ALIAS_NAME, RESERVED_ALIASES } from '../core/config.js';
|
|
8
8
|
import { QUOTA_FAIL_PERCENT, QUOTA_LONG_FAIL_PERCENT, QUOTA_LONG_WARN_PERCENT, QUOTA_WARN_PERCENT, USAGE_DAYS, } from '../core/quota-levels.js';
|
|
@@ -86,7 +86,7 @@ export function renderPage(opts) {
|
|
|
86
86
|
<header class="top">
|
|
87
87
|
<div class="top-in">
|
|
88
88
|
<div class="brand">
|
|
89
|
-
<span class="logo" aria-hidden="true">${
|
|
89
|
+
<span class="logo" aria-hidden="true">${MARK_IMG}</span>
|
|
90
90
|
<div>
|
|
91
91
|
<div class="title-row"><h1>sideby</h1><button id="ver-top" class="ver-pill" type="button" aria-haspopup="dialog" aria-expanded="false" hidden></button></div>
|
|
92
92
|
<p class="tagline" data-i18n="top.tagline">Every AI coding account, side by side.</p>
|
|
@@ -67,7 +67,10 @@ export interface PanelThemeTokens {
|
|
|
67
67
|
warnBar?: string;
|
|
68
68
|
failBar?: string;
|
|
69
69
|
track?: string;
|
|
70
|
-
/**
|
|
70
|
+
/**
|
|
71
|
+
* The tile behind the sideby mark in the page header. `logoColor` no longer colours the mark, which is a painting
|
|
72
|
+
* (ADR-0064); it is kept so existing Themes and Portals still load.
|
|
73
|
+
*/
|
|
71
74
|
logoBg?: string;
|
|
72
75
|
logoColor?: string;
|
|
73
76
|
logoBorder?: string;
|
package/dist/src/runtime.d.ts
CHANGED
|
@@ -359,10 +359,12 @@ export interface Runtime {
|
|
|
359
359
|
/**
|
|
360
360
|
* Which Account of a Family to move on to (spec §3.13), for a start the user asks for: past the Takeover Limit it
|
|
361
361
|
* falls back to the least used Account under 100% (`tight`). Throws a UserError with code `no-quota-source`
|
|
362
|
-
* when the Family cannot tell, `no-accounts` when it has none.
|
|
362
|
+
* when the Family cannot tell, `no-accounts` when it has none. `fetch` is as for `quota`; `never` reads only the kept
|
|
363
|
+
* answers (the menu bar's cache-only snapshot, spec §3.31).
|
|
363
364
|
*/
|
|
364
365
|
handoff(familyId: string, opts?: {
|
|
365
366
|
includeApi?: boolean;
|
|
367
|
+
fetch?: QuotaFetchMode;
|
|
366
368
|
}): Promise<HandoffPlan>;
|
|
367
369
|
/** The config `handoff` settings with every default filled in (spec §3.17). */
|
|
368
370
|
handoffSettings(): HandoffSettings;
|
package/dist/src/runtime.js
CHANGED
|
@@ -969,7 +969,7 @@ export async function createRuntime(opts = {}) {
|
|
|
969
969
|
code: 'no-accounts',
|
|
970
970
|
});
|
|
971
971
|
// Login state, Quota and Same Login (spec §3.21): no model or Host lookups are needed to rank.
|
|
972
|
-
const [quotas, groups] = await Promise.all([quotasOf(list), groupsOf(list)]);
|
|
972
|
+
const [quotas, groups] = await Promise.all([quotasOf(list, o.fetch), groupsOf(list)]);
|
|
973
973
|
const candidates = await Promise.all(list.map(async (a) => {
|
|
974
974
|
const peers = groups.get(a.ref);
|
|
975
975
|
return {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sideby",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.33.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)",
|
|
@@ -47,6 +47,7 @@
|
|
|
47
47
|
},
|
|
48
48
|
"files": [
|
|
49
49
|
"dist",
|
|
50
|
+
"assets/brand",
|
|
50
51
|
"schemas",
|
|
51
52
|
"skills",
|
|
52
53
|
"mods/claude/.claude-plugin",
|
|
@@ -273,6 +273,8 @@
|
|
|
273
273
|
"bars",
|
|
274
274
|
"groups",
|
|
275
275
|
"reset",
|
|
276
|
+
"resetLabel",
|
|
277
|
+
"resetTime",
|
|
276
278
|
"note"
|
|
277
279
|
],
|
|
278
280
|
"properties": {
|
|
@@ -370,6 +372,11 @@
|
|
|
370
372
|
"const": "none"
|
|
371
373
|
}
|
|
372
374
|
]
|
|
375
|
+
},
|
|
376
|
+
"passed": {
|
|
377
|
+
"type": "boolean",
|
|
378
|
+
"const": true,
|
|
379
|
+
"description": "The window is past its reset time and no newer reading has come: drawn grey with `–`, its level `none`."
|
|
373
380
|
}
|
|
374
381
|
}
|
|
375
382
|
},
|
|
@@ -413,6 +420,11 @@
|
|
|
413
420
|
"const": "none"
|
|
414
421
|
}
|
|
415
422
|
]
|
|
423
|
+
},
|
|
424
|
+
"passed": {
|
|
425
|
+
"type": "boolean",
|
|
426
|
+
"const": true,
|
|
427
|
+
"description": "The window is past its reset time and no newer reading has come: drawn grey with `–`, its level `none`."
|
|
416
428
|
}
|
|
417
429
|
}
|
|
418
430
|
},
|
|
@@ -440,6 +452,8 @@
|
|
|
440
452
|
"label",
|
|
441
453
|
"bars",
|
|
442
454
|
"reset",
|
|
455
|
+
"resetLabel",
|
|
456
|
+
"resetTime",
|
|
443
457
|
"tip"
|
|
444
458
|
],
|
|
445
459
|
"properties": {
|
|
@@ -487,6 +501,11 @@
|
|
|
487
501
|
"const": "none"
|
|
488
502
|
}
|
|
489
503
|
]
|
|
504
|
+
},
|
|
505
|
+
"passed": {
|
|
506
|
+
"type": "boolean",
|
|
507
|
+
"const": true,
|
|
508
|
+
"description": "The window is past its reset time and no newer reading has come: drawn grey with `–`, its level `none`."
|
|
490
509
|
}
|
|
491
510
|
}
|
|
492
511
|
},
|
|
@@ -530,6 +549,11 @@
|
|
|
530
549
|
"const": "none"
|
|
531
550
|
}
|
|
532
551
|
]
|
|
552
|
+
},
|
|
553
|
+
"passed": {
|
|
554
|
+
"type": "boolean",
|
|
555
|
+
"const": true,
|
|
556
|
+
"description": "The window is past its reset time and no newer reading has come: drawn grey with `–`, its level `none`."
|
|
533
557
|
}
|
|
534
558
|
}
|
|
535
559
|
},
|
|
@@ -549,6 +573,14 @@
|
|
|
549
573
|
"reset": {
|
|
550
574
|
"type": "string"
|
|
551
575
|
},
|
|
576
|
+
"resetLabel": {
|
|
577
|
+
"type": "string",
|
|
578
|
+
"description": "The window of `reset` as the column headers name it (`5h`, `7d`); empty when the cell names none."
|
|
579
|
+
},
|
|
580
|
+
"resetTime": {
|
|
581
|
+
"type": "string",
|
|
582
|
+
"description": "When it resets (`in 4h 20m`, `tomorrow 4:59 PM`, `Wed 4:59 PM`, `Nov 11, 4:59 PM`), or what the cell says instead: every window is past its reset, refreshing, or refresh failed."
|
|
583
|
+
},
|
|
552
584
|
"tip": {
|
|
553
585
|
"type": "string"
|
|
554
586
|
}
|
|
@@ -563,7 +595,25 @@
|
|
|
563
595
|
},
|
|
564
596
|
"reset": {
|
|
565
597
|
"type": "string",
|
|
566
|
-
"description": "Which window resets and
|
|
598
|
+
"description": "Which window resets and when, such as `7d · tomorrow 4:59 PM`: the window closest to its own red level (85% for 5 hours, 95% for longer windows); `resetLabel` and `resetTime` joined. Empty when nothing is used."
|
|
599
|
+
},
|
|
600
|
+
"resetLabel": {
|
|
601
|
+
"type": "string",
|
|
602
|
+
"description": "The window of `reset` as the column headers name it (`5h`, `7d`); empty when the cell names none."
|
|
603
|
+
},
|
|
604
|
+
"resetTime": {
|
|
605
|
+
"type": "string",
|
|
606
|
+
"description": "When it resets (`in 4h 20m`, `tomorrow 4:59 PM`, `Wed 4:59 PM`, `Nov 11, 4:59 PM`), or what the cell says instead: every window is past its reset, refreshing, or refresh failed."
|
|
607
|
+
},
|
|
608
|
+
"refreshing": {
|
|
609
|
+
"type": "boolean",
|
|
610
|
+
"const": true,
|
|
611
|
+
"description": "A manual refresh is asking the Host for this account and has no answer yet (`--refreshing-since`)."
|
|
612
|
+
},
|
|
613
|
+
"refreshFailed": {
|
|
614
|
+
"type": "boolean",
|
|
615
|
+
"const": true,
|
|
616
|
+
"description": "This refresh asked the Host for this account and the answer failed."
|
|
567
617
|
},
|
|
568
618
|
"note": {
|
|
569
619
|
"type": "string",
|
|
@@ -601,6 +651,8 @@
|
|
|
601
651
|
"bars",
|
|
602
652
|
"groups",
|
|
603
653
|
"reset",
|
|
654
|
+
"resetLabel",
|
|
655
|
+
"resetTime",
|
|
604
656
|
"note"
|
|
605
657
|
],
|
|
606
658
|
"properties": {
|
|
@@ -698,6 +750,11 @@
|
|
|
698
750
|
"const": "none"
|
|
699
751
|
}
|
|
700
752
|
]
|
|
753
|
+
},
|
|
754
|
+
"passed": {
|
|
755
|
+
"type": "boolean",
|
|
756
|
+
"const": true,
|
|
757
|
+
"description": "The window is past its reset time and no newer reading has come: drawn grey with `–`, its level `none`."
|
|
701
758
|
}
|
|
702
759
|
}
|
|
703
760
|
},
|
|
@@ -741,6 +798,11 @@
|
|
|
741
798
|
"const": "none"
|
|
742
799
|
}
|
|
743
800
|
]
|
|
801
|
+
},
|
|
802
|
+
"passed": {
|
|
803
|
+
"type": "boolean",
|
|
804
|
+
"const": true,
|
|
805
|
+
"description": "The window is past its reset time and no newer reading has come: drawn grey with `–`, its level `none`."
|
|
744
806
|
}
|
|
745
807
|
}
|
|
746
808
|
},
|
|
@@ -768,6 +830,8 @@
|
|
|
768
830
|
"label",
|
|
769
831
|
"bars",
|
|
770
832
|
"reset",
|
|
833
|
+
"resetLabel",
|
|
834
|
+
"resetTime",
|
|
771
835
|
"tip"
|
|
772
836
|
],
|
|
773
837
|
"properties": {
|
|
@@ -815,6 +879,11 @@
|
|
|
815
879
|
"const": "none"
|
|
816
880
|
}
|
|
817
881
|
]
|
|
882
|
+
},
|
|
883
|
+
"passed": {
|
|
884
|
+
"type": "boolean",
|
|
885
|
+
"const": true,
|
|
886
|
+
"description": "The window is past its reset time and no newer reading has come: drawn grey with `–`, its level `none`."
|
|
818
887
|
}
|
|
819
888
|
}
|
|
820
889
|
},
|
|
@@ -858,6 +927,11 @@
|
|
|
858
927
|
"const": "none"
|
|
859
928
|
}
|
|
860
929
|
]
|
|
930
|
+
},
|
|
931
|
+
"passed": {
|
|
932
|
+
"type": "boolean",
|
|
933
|
+
"const": true,
|
|
934
|
+
"description": "The window is past its reset time and no newer reading has come: drawn grey with `–`, its level `none`."
|
|
861
935
|
}
|
|
862
936
|
}
|
|
863
937
|
},
|
|
@@ -877,6 +951,14 @@
|
|
|
877
951
|
"reset": {
|
|
878
952
|
"type": "string"
|
|
879
953
|
},
|
|
954
|
+
"resetLabel": {
|
|
955
|
+
"type": "string",
|
|
956
|
+
"description": "The window of `reset` as the column headers name it (`5h`, `7d`); empty when the cell names none."
|
|
957
|
+
},
|
|
958
|
+
"resetTime": {
|
|
959
|
+
"type": "string",
|
|
960
|
+
"description": "When it resets (`in 4h 20m`, `tomorrow 4:59 PM`, `Wed 4:59 PM`, `Nov 11, 4:59 PM`), or what the cell says instead: every window is past its reset, refreshing, or refresh failed."
|
|
961
|
+
},
|
|
880
962
|
"tip": {
|
|
881
963
|
"type": "string"
|
|
882
964
|
}
|
|
@@ -891,7 +973,25 @@
|
|
|
891
973
|
},
|
|
892
974
|
"reset": {
|
|
893
975
|
"type": "string",
|
|
894
|
-
"description": "Which window resets and
|
|
976
|
+
"description": "Which window resets and when, such as `7d · tomorrow 4:59 PM`: the window closest to its own red level (85% for 5 hours, 95% for longer windows); `resetLabel` and `resetTime` joined. Empty when nothing is used."
|
|
977
|
+
},
|
|
978
|
+
"resetLabel": {
|
|
979
|
+
"type": "string",
|
|
980
|
+
"description": "The window of `reset` as the column headers name it (`5h`, `7d`); empty when the cell names none."
|
|
981
|
+
},
|
|
982
|
+
"resetTime": {
|
|
983
|
+
"type": "string",
|
|
984
|
+
"description": "When it resets (`in 4h 20m`, `tomorrow 4:59 PM`, `Wed 4:59 PM`, `Nov 11, 4:59 PM`), or what the cell says instead: every window is past its reset, refreshing, or refresh failed."
|
|
985
|
+
},
|
|
986
|
+
"refreshing": {
|
|
987
|
+
"type": "boolean",
|
|
988
|
+
"const": true,
|
|
989
|
+
"description": "A manual refresh is asking the Host for this account and has no answer yet (`--refreshing-since`)."
|
|
990
|
+
},
|
|
991
|
+
"refreshFailed": {
|
|
992
|
+
"type": "boolean",
|
|
993
|
+
"const": true,
|
|
994
|
+
"description": "This refresh asked the Host for this account and the answer failed."
|
|
895
995
|
},
|
|
896
996
|
"note": {
|
|
897
997
|
"type": "string",
|