sideby 0.35.9 → 0.36.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/build.json +1 -1
- package/dist/src/cli/commands.d.ts +12 -0
- package/dist/src/cli/commands.js +489 -6
- package/dist/src/cli/format.d.ts +12 -1
- package/dist/src/cli/format.js +23 -3
- package/dist/src/cli/json-schemas.js +166 -1
- package/dist/src/cli/main.js +18 -4
- package/dist/src/core/advisor.d.ts +187 -0
- package/dist/src/core/advisor.js +519 -0
- package/dist/src/core/browser-profiles.d.ts +16 -0
- package/dist/src/core/browser-profiles.js +45 -0
- package/dist/src/core/claude-settings-file.d.ts +14 -0
- package/dist/src/core/claude-settings-file.js +62 -23
- package/dist/src/core/cli-commands.js +25 -1
- package/dist/src/core/config.d.ts +29 -0
- package/dist/src/core/config.js +25 -0
- package/dist/src/core/handoff-select.d.ts +13 -2
- package/dist/src/core/handoff-select.js +6 -2
- package/dist/src/core/launch.d.ts +4 -0
- package/dist/src/core/launch.js +7 -0
- package/dist/src/core/limit-reset.d.ts +198 -0
- package/dist/src/core/limit-reset.js +299 -0
- package/dist/src/core/quota-fetch.d.ts +57 -2
- package/dist/src/core/quota-fetch.js +291 -13
- package/dist/src/core/quota-levels.d.ts +70 -0
- package/dist/src/core/quota-levels.js +80 -0
- package/dist/src/core/quota-store.d.ts +15 -1
- package/dist/src/core/quota-store.js +26 -1
- package/dist/src/core/same-login.d.ts +8 -0
- package/dist/src/core/same-login.js +39 -2
- package/dist/src/core/search-catalog.js +38 -0
- package/dist/src/families/claude/index.js +2 -0
- package/dist/src/families/codex/index.js +3 -1
- package/dist/src/families/codex/quota.d.ts +23 -1
- package/dist/src/families/codex/quota.js +122 -21
- package/dist/src/families/grok/quota-log.d.ts +1 -0
- package/dist/src/menubar/script.js +70 -18
- package/dist/src/menubar/snapshot.d.ts +33 -1
- package/dist/src/menubar/snapshot.js +79 -11
- package/dist/src/menubar/strings.d.ts +16 -0
- package/dist/src/menubar/strings.js +16 -0
- package/dist/src/panel/handler.d.ts +21 -0
- package/dist/src/panel/handler.js +134 -12
- package/dist/src/panel/i18n.d.ts +87 -0
- package/dist/src/panel/i18n.js +174 -0
- package/dist/src/panel/page-logic.d.ts +17 -0
- package/dist/src/panel/page-logic.js +23 -0
- package/dist/src/panel/page-script.js +442 -19
- package/dist/src/panel/page-styles.js +38 -2
- package/dist/src/plugins/loader.d.ts +2 -0
- package/dist/src/plugins/loader.js +27 -0
- package/dist/src/runtime.d.ts +65 -1
- package/dist/src/runtime.js +530 -9
- package/dist/src/types.d.ts +67 -0
- package/package.json +1 -1
- package/schemas/advisor.json +332 -0
- package/schemas/config.json +22 -0
- package/schemas/error.json +4 -0
- package/schemas/menubar-reset.json +93 -0
- package/schemas/menubar-snapshot.json +70 -2
- package/schemas/quota-reset.json +369 -0
- package/schemas/quota.json +30 -0
- package/schemas/update.json +4 -0
- package/skills/sideby/SKILL.md +6 -2
- package/skills/sideby/references/ai-tasks.md +1 -1
- package/skills/sideby/references/panel.md +14 -0
- package/skills/sideby/references/quota.md +27 -0
- package/skills/sideby/references/update.md +1 -1
package/dist/src/panel/i18n.d.ts
CHANGED
|
@@ -318,6 +318,51 @@ declare const en: {
|
|
|
318
318
|
'quota.resetNoData': string;
|
|
319
319
|
'quota.dataFrom': string;
|
|
320
320
|
'quota.asOf': string;
|
|
321
|
+
'quota.readAt': string;
|
|
322
|
+
'quota.readUnknown': string;
|
|
323
|
+
'quota.source': string;
|
|
324
|
+
'reset.count.one': string;
|
|
325
|
+
'reset.count.other': string;
|
|
326
|
+
'reset.tip': string;
|
|
327
|
+
'reset.expires': string;
|
|
328
|
+
'reset.noExpiry': string;
|
|
329
|
+
'reset.use': string;
|
|
330
|
+
'reset.useMenu': string;
|
|
331
|
+
'reset.useHint': string;
|
|
332
|
+
'reset.usePage': string;
|
|
333
|
+
'reset.page.tight': string;
|
|
334
|
+
'reset.page.who': string;
|
|
335
|
+
'reset.page.blind': string;
|
|
336
|
+
'reset.page.opened': string;
|
|
337
|
+
'reset.page.openedIn': string;
|
|
338
|
+
'reset.page.failed': string;
|
|
339
|
+
'reset.title': string;
|
|
340
|
+
'reset.peers': string;
|
|
341
|
+
'reset.reading': string;
|
|
342
|
+
'reset.after': string;
|
|
343
|
+
'reset.left.one': string;
|
|
344
|
+
'reset.left.other': string;
|
|
345
|
+
'reset.stockUnknown': string;
|
|
346
|
+
'reset.expiryUnknown': string;
|
|
347
|
+
'reset.blocked': string;
|
|
348
|
+
'reset.confirm.warn': string;
|
|
349
|
+
'reset.confirm.warnAll': string;
|
|
350
|
+
'reset.confirm.unresolved': string;
|
|
351
|
+
'reset.confirm.go': string;
|
|
352
|
+
'reset.confirm.check': string;
|
|
353
|
+
'reset.busy': string;
|
|
354
|
+
'reset.done': string;
|
|
355
|
+
'reset.done.already': string;
|
|
356
|
+
'reset.done.real': string;
|
|
357
|
+
'reset.done.pending': string;
|
|
358
|
+
'reset.nothing.window': string;
|
|
359
|
+
'reset.nothing.none': string;
|
|
360
|
+
'reset.unknown': string;
|
|
361
|
+
'reset.noAnswer': string;
|
|
362
|
+
'reset.pick.intro': string;
|
|
363
|
+
'reset.pick.none': string;
|
|
364
|
+
'reset.pick.unknown': string;
|
|
365
|
+
'ai.ask.reset': string;
|
|
321
366
|
'quota.staleSession': string;
|
|
322
367
|
'quota.quiet': string;
|
|
323
368
|
'quota.sharedFrom': string;
|
|
@@ -470,6 +515,7 @@ declare const en: {
|
|
|
470
515
|
'ai.ask.handoff': string;
|
|
471
516
|
'ai.ask.handoffRules': string;
|
|
472
517
|
'ai.ask.rc': string;
|
|
518
|
+
'ai.ask.advisor': string;
|
|
473
519
|
'ai.ask.relogin': string;
|
|
474
520
|
'ai.ask.expired': string;
|
|
475
521
|
'ai.orderHint': string;
|
|
@@ -1547,6 +1593,47 @@ declare const en: {
|
|
|
1547
1593
|
'rc.failedOn': string;
|
|
1548
1594
|
'rc.readOnlyBoth': string;
|
|
1549
1595
|
'rc.undone': string;
|
|
1596
|
+
'adv.button': string;
|
|
1597
|
+
'adv.title': string;
|
|
1598
|
+
'adv.explain': string;
|
|
1599
|
+
'adv.pick': string;
|
|
1600
|
+
'adv.state.fable': string;
|
|
1601
|
+
'adv.state.opus': string;
|
|
1602
|
+
'adv.state.sonnet': string;
|
|
1603
|
+
'adv.state.off': string;
|
|
1604
|
+
'adv.state.other': string;
|
|
1605
|
+
'adv.state.mixed': string;
|
|
1606
|
+
'adv.state.missing': string;
|
|
1607
|
+
'adv.state.blocked': string;
|
|
1608
|
+
'adv.otherValue': string;
|
|
1609
|
+
'adv.unlockSwitch': string;
|
|
1610
|
+
'adv.unlockHint': string;
|
|
1611
|
+
'adv.unlockNote': string;
|
|
1612
|
+
'adv.onNote': string;
|
|
1613
|
+
'adv.offNote': string;
|
|
1614
|
+
'adv.nothing': string;
|
|
1615
|
+
'adv.unavailable': string;
|
|
1616
|
+
'adv.envOff': string;
|
|
1617
|
+
'adv.state.betas': string;
|
|
1618
|
+
'adv.betasWarn': string;
|
|
1619
|
+
'adv.betasNote': string;
|
|
1620
|
+
'adv.apiUsedBy': string;
|
|
1621
|
+
'adv.apiNote': string;
|
|
1622
|
+
'adv.apiAlready': string;
|
|
1623
|
+
'adv.apiOn': string;
|
|
1624
|
+
'adv.apiOff': string;
|
|
1625
|
+
'adv.removed': string;
|
|
1626
|
+
'adv.confirmUse': string;
|
|
1627
|
+
'adv.confirmOff': string;
|
|
1628
|
+
'adv.undo': string;
|
|
1629
|
+
'adv.done': string;
|
|
1630
|
+
'adv.doneOff': string;
|
|
1631
|
+
'adv.failed': string;
|
|
1632
|
+
'adv.undone': string;
|
|
1633
|
+
'adv.unlockOn': string;
|
|
1634
|
+
'adv.unlockOff': string;
|
|
1635
|
+
'adv.readOnly': string;
|
|
1636
|
+
'adv.ask': string;
|
|
1550
1637
|
'banner.readOnly': string;
|
|
1551
1638
|
'banner.plugins.one': string;
|
|
1552
1639
|
'banner.plugins.other': string;
|
package/dist/src/panel/i18n.js
CHANGED
|
@@ -320,6 +320,51 @@ const en = {
|
|
|
320
320
|
'quota.resetNoData': 'Window reset · no new data since {date}',
|
|
321
321
|
'quota.dataFrom': 'Data from {ago}',
|
|
322
322
|
'quota.asOf': 'As of {ago}',
|
|
323
|
+
'quota.readAt': 'Read {at} ({ago})',
|
|
324
|
+
'quota.readUnknown': 'Read time unknown',
|
|
325
|
+
'quota.source': 'Source: {source}',
|
|
326
|
+
'reset.count.one': '{n} reset available',
|
|
327
|
+
'reset.count.other': '{n} resets available',
|
|
328
|
+
'reset.tip': 'A limit reset restores quota before a window resets by itself. {host} counted them {ago}.',
|
|
329
|
+
'reset.expires': 'The next one expires {at}.',
|
|
330
|
+
'reset.noExpiry': '{host} did not say when they expire.',
|
|
331
|
+
'reset.use': 'Use a reset',
|
|
332
|
+
'reset.useMenu': 'Use a limit reset…',
|
|
333
|
+
'reset.useHint': 'Shows the numbers first; nothing is used until you confirm.',
|
|
334
|
+
'reset.usePage': 'Use a reset on {site}',
|
|
335
|
+
'reset.page.tight': 'Running low: {list}.',
|
|
336
|
+
'reset.page.who': 'Opens {site}. Check that the page is signed in as {who}.',
|
|
337
|
+
'reset.page.blind': '{host} does not tell sideby whether this account holds a reset; the page shows it.',
|
|
338
|
+
'reset.page.opened': 'Opened {site} in your browser. Check that it is signed in as {who} before you use a reset.',
|
|
339
|
+
'reset.page.openedIn': 'Opened {site} in the browser user {name}. Check that it is signed in as {who} before you use a reset.',
|
|
340
|
+
'reset.page.failed': 'Could not open the page: {msg}. Open {url} yourself.',
|
|
341
|
+
'reset.title': 'Use a limit reset',
|
|
342
|
+
'reset.peers': 'Same login as {names}: one reset applies to all of them.',
|
|
343
|
+
'reset.reading': 'Reading the numbers from {host}…',
|
|
344
|
+
'reset.after': '{n} expected afterwards',
|
|
345
|
+
'reset.left.one': '{n} reset left',
|
|
346
|
+
'reset.left.other': '{n} resets left',
|
|
347
|
+
'reset.stockUnknown': 'Reset count unknown',
|
|
348
|
+
'reset.expiryUnknown': 'expiry unknown',
|
|
349
|
+
'reset.blocked': 'A reset cannot be used right now.',
|
|
350
|
+
'reset.confirm.warn': 'This uses one reset now and cannot be undone. {host} does not say beforehand which limits it restores.',
|
|
351
|
+
'reset.confirm.warnAll': 'This uses one reset now, for every account of this login, and cannot be undone. {host} does not say beforehand which limits it restores.',
|
|
352
|
+
'reset.confirm.unresolved': 'An earlier attempt got no answer from {host}. Checking again repeats that same request: it uses nothing more if the reset already went through, and it cannot be undone if it did not.',
|
|
353
|
+
'reset.confirm.go': 'Use 1 reset',
|
|
354
|
+
'reset.confirm.check': 'Check again',
|
|
355
|
+
'reset.busy': 'Using a reset… waiting for {host}.',
|
|
356
|
+
'reset.done': 'A reset was used for {ref}.',
|
|
357
|
+
'reset.done.already': 'This reset had already been used for {ref}; nothing more was spent.',
|
|
358
|
+
'reset.done.real': 'These are the numbers {host} reports now.',
|
|
359
|
+
'reset.done.pending': 'The quota could not be read yet, so these are still the old numbers; they update with the next check.',
|
|
360
|
+
'reset.nothing.window': 'Nothing was spent: no limit of {ref} can be reset right now.',
|
|
361
|
+
'reset.nothing.none': 'Nothing was spent: {ref} holds no reset.',
|
|
362
|
+
'reset.unknown': 'Outcome unknown: {host} did not answer in time, so sideby cannot tell whether the reset was used. "Check again" repeats the same request, which cannot use a second one.',
|
|
363
|
+
'reset.noAnswer': 'Outcome unknown: this page got no answer to the confirmation, so sideby cannot tell whether the reset was used. "Check again" asks about the same request, which cannot use a second one.',
|
|
364
|
+
'reset.pick.intro': 'Choose the account. Nothing is used until you confirm.',
|
|
365
|
+
'reset.pick.none': 'No account can use a limit reset right now.',
|
|
366
|
+
'reset.pick.unknown': 'Reset count not read yet',
|
|
367
|
+
'ai.ask.reset': 'Use a limit reset for codex:main. Show me the plan first.',
|
|
323
368
|
'quota.staleSession': 'These numbers update when a session runs in this account',
|
|
324
369
|
'quota.quiet': 'Not used on this computer since · use on the web or other computers is not included',
|
|
325
370
|
'quota.sharedFrom': 'Same login as {name}; quota read from {name}, {ago}',
|
|
@@ -472,6 +517,7 @@ const en = {
|
|
|
472
517
|
'ai.ask.handoff': 'Turn on Auto Handoff.',
|
|
473
518
|
'ai.ask.handoffRules': 'When does Auto Handoff switch accounts, and could it use my API accounts?',
|
|
474
519
|
'ai.ask.rc': 'Turn off Remote Control for every Claude account.',
|
|
520
|
+
'ai.ask.advisor': 'Let every Claude account ask Opus for advice at key moments.',
|
|
475
521
|
'ai.ask.relogin': 'Two of my accounts are the same login; help me sign one in with another account.',
|
|
476
522
|
'ai.ask.expired': 'Which of my accounts has an expired sign-in? Help me sign it in again.',
|
|
477
523
|
'ai.orderHint': 'or ask your AI',
|
|
@@ -1549,6 +1595,47 @@ const en = {
|
|
|
1549
1595
|
'rc.failedOn': 'Could not turn it on: {msg}',
|
|
1550
1596
|
'rc.readOnlyBoth': 'Run sideby remote-control on or off to change it.',
|
|
1551
1597
|
'rc.undone': 'Undone. New sessions go back to the previous setting.',
|
|
1598
|
+
'adv.button': 'Advisor (ask a stronger model)',
|
|
1599
|
+
'adv.title': 'Advisor',
|
|
1600
|
+
'adv.explain': 'Claude asks a stronger model for advice at key moments, such as before a big change or when it is stuck. This uses more quota.',
|
|
1601
|
+
'adv.pick': 'Ask for advice from',
|
|
1602
|
+
'adv.state.fable': 'Fable',
|
|
1603
|
+
'adv.state.opus': 'Opus',
|
|
1604
|
+
'adv.state.sonnet': 'Sonnet',
|
|
1605
|
+
'adv.state.off': 'Off',
|
|
1606
|
+
'adv.state.other': 'Another model',
|
|
1607
|
+
'adv.state.mixed': 'Mixed',
|
|
1608
|
+
'adv.state.missing': 'No settings file',
|
|
1609
|
+
'adv.state.blocked': 'Cannot read',
|
|
1610
|
+
'adv.otherValue': 'another value',
|
|
1611
|
+
'adv.unlockSwitch': 'Unlock /advisor in sessions sideby starts',
|
|
1612
|
+
'adv.unlockHint': 'Claude Code shows /advisor only on accounts Anthropic has turned it on for. With this on, every Claude account sideby starts gets it; sessions started with plain claude do not.',
|
|
1613
|
+
'adv.unlockNote': 'sideby will also unlock /advisor in the Claude sessions it starts, with',
|
|
1614
|
+
'adv.onNote': 'Restart sessions that are already running. Sessions started with plain claude get the advisor only where Anthropic has turned it on.',
|
|
1615
|
+
'adv.offNote': 'New sessions stop asking an advisor. Restart sessions that are already running.',
|
|
1616
|
+
'adv.nothing': 'Every file already says this; nothing to change.',
|
|
1617
|
+
'adv.unavailable': 'If a session says "Advisor unavailable", Anthropic has not enabled the advisor for that account yet, and sideby cannot change that. The first time you use Fable, Claude Code may ask you to agree.',
|
|
1618
|
+
'adv.envOff': 'Your shell sets {v}, so Claude Code hides the advisor in every session, also the ones sideby starts. sideby does not change your shell; remove it from your shell profile to use the advisor.',
|
|
1619
|
+
'adv.state.betas': 'Turned off by a setting',
|
|
1620
|
+
'adv.betasWarn': "This file sets {v}, which turns off Claude Code's experimental features, the advisor among them. Choosing a model offers to remove it.",
|
|
1621
|
+
'adv.betasNote': "Removing it also turns Claude Code's other experimental features back on.",
|
|
1622
|
+
'adv.apiUsedBy': 'Also used by API accounts {refs}',
|
|
1623
|
+
'adv.apiNote': 'API accounts {refs} use this file too, and their gateway may need the variable. From now on sideby gives it to them when it starts them (a value in their proxy.env still wins):',
|
|
1624
|
+
'adv.apiAlready': 'API accounts {refs} already get this variable from sideby when it starts them, so they keep it.',
|
|
1625
|
+
'adv.apiOn': 'sideby turns off experimental features for API accounts when it starts them ({v}=1). To stop that, run: sideby config set claude.apiBetasOff false',
|
|
1626
|
+
'adv.apiOff': 'sideby does not add {v} for API accounts.',
|
|
1627
|
+
'adv.removed': 'removed',
|
|
1628
|
+
'adv.confirmUse': 'Use {m}',
|
|
1629
|
+
'adv.confirmOff': 'Turn off',
|
|
1630
|
+
'adv.undo': 'Undo last change',
|
|
1631
|
+
'adv.done': 'New sessions ask {m} for advice. Restart sessions that are running.',
|
|
1632
|
+
'adv.doneOff': 'The advisor is off for new sessions. Restart sessions that are running.',
|
|
1633
|
+
'adv.failed': 'Could not change the advisor: {msg}',
|
|
1634
|
+
'adv.undone': 'Undone. New sessions go back to the previous advisor setting.',
|
|
1635
|
+
'adv.unlockOn': '/advisor is unlocked in sessions sideby starts. Restart sessions that are running.',
|
|
1636
|
+
'adv.unlockOff': 'sideby no longer unlocks /advisor.',
|
|
1637
|
+
'adv.readOnly': 'Run sideby advisor opus (or fable, sonnet, off) to change it.',
|
|
1638
|
+
'adv.ask': 'Or ask your AI to do it',
|
|
1552
1639
|
'banner.readOnly': 'Read-only view. Use the sideby CLI to fix or create accounts.',
|
|
1553
1640
|
'banner.plugins.one': '{n} plugin problem.',
|
|
1554
1641
|
'banner.plugins.other': '{n} plugin problems.',
|
|
@@ -1970,6 +2057,51 @@ const zh = {
|
|
|
1970
2057
|
'quota.resetNoData': '已重置,{date}后无新数据',
|
|
1971
2058
|
'quota.dataFrom': '数据来自 {ago}',
|
|
1972
2059
|
'quota.asOf': '截至 {ago}',
|
|
2060
|
+
'quota.readAt': '读于 {at}({ago})',
|
|
2061
|
+
'quota.readUnknown': '读取时间未知',
|
|
2062
|
+
'quota.source': '来源:{source}',
|
|
2063
|
+
'reset.count.one': '可用重置 {n} 次',
|
|
2064
|
+
'reset.count.other': '可用重置 {n} 次',
|
|
2065
|
+
'reset.tip': '用一次重置,能在窗口自己重置之前恢复额度。{host} {ago}报告的次数。',
|
|
2066
|
+
'reset.expires': '最近一次 {at} 到期。',
|
|
2067
|
+
'reset.noExpiry': '{host} 没有说什么时候到期。',
|
|
2068
|
+
'reset.use': '使用一次重置',
|
|
2069
|
+
'reset.useMenu': '使用一次重置…',
|
|
2070
|
+
'reset.useHint': '先给你看数字;你确认之前什么都不会用掉。',
|
|
2071
|
+
'reset.usePage': '去 {site} 使用重置',
|
|
2072
|
+
'reset.page.tight': '快用完了:{list}。',
|
|
2073
|
+
'reset.page.who': '会打开 {site}。请确认网页登录的是 {who}。',
|
|
2074
|
+
'reset.page.blind': '{host} 不告诉 sideby 这个账号有没有重置次数,要到网页上看。',
|
|
2075
|
+
'reset.page.opened': '已在浏览器打开 {site}。使用重置前,请确认网页登录的是 {who}。',
|
|
2076
|
+
'reset.page.openedIn': '已在浏览器用户 {name} 里打开 {site}。使用重置前,请确认网页登录的是 {who}。',
|
|
2077
|
+
'reset.page.failed': '打不开页面:{msg}。请自己打开 {url}。',
|
|
2078
|
+
'reset.title': '使用一次重置',
|
|
2079
|
+
'reset.peers': '与 {names} 是同一登录:用一次重置,这些账号都生效。',
|
|
2080
|
+
'reset.reading': '正在向 {host} 读取最新数字…',
|
|
2081
|
+
'reset.after': '用后预计剩 {n} 次',
|
|
2082
|
+
'reset.left.one': '还剩 {n} 次重置',
|
|
2083
|
+
'reset.left.other': '还剩 {n} 次重置',
|
|
2084
|
+
'reset.stockUnknown': '重置次数未知',
|
|
2085
|
+
'reset.expiryUnknown': '到期时间未知',
|
|
2086
|
+
'reset.blocked': '现在用不了重置。',
|
|
2087
|
+
'reset.confirm.warn': '确认后立刻用掉 1 次重置,不能撤销。{host} 不会事先说明它恢复哪些额度。',
|
|
2088
|
+
'reset.confirm.warnAll': '确认后立刻用掉 1 次重置,这个登录下的账号都生效,不能撤销。{host} 不会事先说明它恢复哪些额度。',
|
|
2089
|
+
'reset.confirm.unresolved': '上一次尝试没有等到 {host} 的回答。再查一次会重发同一个请求:如果上次已经用掉,不会再多用;如果没有,这次用掉后不能撤销。',
|
|
2090
|
+
'reset.confirm.go': '用掉 1 次重置',
|
|
2091
|
+
'reset.confirm.check': '再查一次',
|
|
2092
|
+
'reset.busy': '正在使用重置…等待 {host} 回答。',
|
|
2093
|
+
'reset.done': '已为 {ref} 用掉 1 次重置。',
|
|
2094
|
+
'reset.done.already': '{ref} 的这次重置之前已经用掉,没有再多用。',
|
|
2095
|
+
'reset.done.real': '下面是 {host} 现在报告的数字。',
|
|
2096
|
+
'reset.done.pending': '额度暂时没读到,下面还是旧数字,下次查询时更新。',
|
|
2097
|
+
'reset.nothing.window': '没有用掉任何次数:{ref} 现在没有可以重置的额度。',
|
|
2098
|
+
'reset.nothing.none': '没有用掉任何次数:{ref} 没有重置次数。',
|
|
2099
|
+
'reset.unknown': '结果未知:{host} 没有按时回答,sideby 无法判断重置有没有用掉。点「再查一次」会重发同一个请求,不会用掉第二次。',
|
|
2100
|
+
'reset.noAnswer': '结果未知:这个页面没有收到确认的回答,sideby 无法判断重置有没有用掉。点「再查一次」会查同一个请求,不会用掉第二次。',
|
|
2101
|
+
'reset.pick.intro': '选一个账号。你确认之前什么都不会用掉。',
|
|
2102
|
+
'reset.pick.none': '现在没有账号可以使用重置。',
|
|
2103
|
+
'reset.pick.unknown': '还没读到重置次数',
|
|
2104
|
+
'ai.ask.reset': '帮我给 codex:main 用一次重置,先给我看计划。',
|
|
1973
2105
|
'quota.staleSession': '在这个账号开一次会话,这些数字就会更新',
|
|
1974
2106
|
'quota.quiet': '之后这台电脑没用过这个账号 · 网页或其他电脑上的用量不在内',
|
|
1975
2107
|
'quota.sharedFrom': '与 {name} 同一登录;额度读自 {name},{ago}',
|
|
@@ -2122,6 +2254,7 @@ const zh = {
|
|
|
2122
2254
|
'ai.ask.handoff': '帮我开启自动接力。',
|
|
2123
2255
|
'ai.ask.handoffRules': '自动接力什么时候换号?会不会用到我的 API 账号?',
|
|
2124
2256
|
'ai.ask.rc': '把所有 Claude 账号的远程控制关掉。',
|
|
2257
|
+
'ai.ask.advisor': '让所有 Claude 账号在关键时刻请教 Opus。',
|
|
2125
2258
|
'ai.ask.relogin': '我有两个账号登录的是同一个号,帮我把其中一个换成别的账号。',
|
|
2126
2259
|
'ai.ask.expired': '哪个账号登录过期了?帮我重新登录。',
|
|
2127
2260
|
'ai.orderHint': '也可以让 AI 帮你排',
|
|
@@ -3199,6 +3332,47 @@ const zh = {
|
|
|
3199
3332
|
'rc.failedOn': '没能打开:{msg}',
|
|
3200
3333
|
'rc.readOnlyBoth': '运行 sideby remote-control on 或 off 来修改。',
|
|
3201
3334
|
'rc.undone': '已撤销,新会话恢复原来的设置。',
|
|
3335
|
+
'adv.button': '顾问模型(Advisor)',
|
|
3336
|
+
'adv.title': '顾问模型(Advisor)',
|
|
3337
|
+
'adv.explain': 'Claude 在关键时刻(比如大改动之前、卡住的时候)请教一个更强的模型。会多用额度。',
|
|
3338
|
+
'adv.pick': '请教哪个模型',
|
|
3339
|
+
'adv.state.fable': 'Fable',
|
|
3340
|
+
'adv.state.opus': 'Opus',
|
|
3341
|
+
'adv.state.sonnet': 'Sonnet',
|
|
3342
|
+
'adv.state.off': '关',
|
|
3343
|
+
'adv.state.other': '其他模型',
|
|
3344
|
+
'adv.state.mixed': '各不相同',
|
|
3345
|
+
'adv.state.missing': '没有设置文件',
|
|
3346
|
+
'adv.state.blocked': '读不了',
|
|
3347
|
+
'adv.otherValue': '其他值',
|
|
3348
|
+
'adv.unlockSwitch': '在 sideby 启动的会话里解锁 /advisor',
|
|
3349
|
+
'adv.unlockHint': 'Claude Code 只在 Anthropic 已开放的账号上显示 /advisor。打开后,sideby 启动的每个 Claude 账号都能用;直接运行 claude 开的会话不变。',
|
|
3350
|
+
'adv.unlockNote': 'sideby 还会在它启动的 Claude 会话里解锁 /advisor,方法是设置',
|
|
3351
|
+
'adv.onNote': '已经开着的会话要重开。直接运行 claude 开的会话,只有 Anthropic 已为账号开放时才有顾问。',
|
|
3352
|
+
'adv.offNote': '新会话不再请教顾问。已经开着的会话要重开。',
|
|
3353
|
+
'adv.nothing': '每个文件都已经是这个设置,不用改。',
|
|
3354
|
+
'adv.unavailable': '会话里出现「Advisor unavailable」,说明 Anthropic 还没给这个账号开放,sideby 改不了。第一次用 Fable 时,Claude Code 可能会请你同意。',
|
|
3355
|
+
'adv.envOff': '你的终端环境设了 {v},Claude Code 在每个会话里都会隐藏顾问,sideby 启动的也一样。sideby 不改你的终端环境;要用顾问,请从 shell 配置文件里删掉它。',
|
|
3356
|
+
'adv.state.betas': '被设置关掉了',
|
|
3357
|
+
'adv.betasWarn': '这个文件设了 {v},它会关掉 Claude Code 的实验功能,顾问也在其中。选模型时 sideby 会提议删掉它。',
|
|
3358
|
+
'adv.betasNote': '删掉它也会重新打开 Claude Code 的其他实验功能。',
|
|
3359
|
+
'adv.apiUsedBy': '同时被 API 账号 {refs} 使用',
|
|
3360
|
+
'adv.apiNote': 'API 账号 {refs} 也用这个文件,它们的网关可能需要这个变量。之后 sideby 启动它们时会自动带上(proxy.env 里写了的话以它为准):',
|
|
3361
|
+
'adv.apiAlready': 'API 账号 {refs} 已经由 sideby 在启动时带上这个变量,不受影响。',
|
|
3362
|
+
'adv.apiOn': 'sideby 启动 API 账号时会关掉实验功能({v}=1)。不想这样,运行:sideby config set claude.apiBetasOff false',
|
|
3363
|
+
'adv.apiOff': 'sideby 启动 API 账号时不会额外带上 {v}。',
|
|
3364
|
+
'adv.removed': '删除',
|
|
3365
|
+
'adv.confirmUse': '改用 {m}',
|
|
3366
|
+
'adv.confirmOff': '确认关闭',
|
|
3367
|
+
'adv.undo': '撤销上次更改',
|
|
3368
|
+
'adv.done': '新会话会请教 {m}。开着的会话要重开。',
|
|
3369
|
+
'adv.doneOff': '新会话不再请教顾问。开着的会话要重开。',
|
|
3370
|
+
'adv.failed': '没能修改顾问模型:{msg}',
|
|
3371
|
+
'adv.undone': '已撤销,新会话恢复之前的顾问设置。',
|
|
3372
|
+
'adv.unlockOn': '已在 sideby 启动的会话里解锁 /advisor。开着的会话要重开。',
|
|
3373
|
+
'adv.unlockOff': 'sideby 不再解锁 /advisor。',
|
|
3374
|
+
'adv.readOnly': '运行 sideby advisor opus(或 fable、sonnet、off)来修改。',
|
|
3375
|
+
'adv.ask': '或者让 AI 帮你设置',
|
|
3202
3376
|
'banner.readOnly': '只读视图。修复或创建账号请用 sideby 命令行。',
|
|
3203
3377
|
'banner.plugins.one': '{n} 个插件问题。',
|
|
3204
3378
|
'banner.plugins.other': '{n} 个插件问题。',
|
|
@@ -599,6 +599,23 @@ export declare function remoteControlSummary(groups: readonly {
|
|
|
599
599
|
accounts: readonly string[];
|
|
600
600
|
state: string;
|
|
601
601
|
}[], apiRefs: readonly string[]): 'on' | 'default' | 'off' | null;
|
|
602
|
+
/**
|
|
603
|
+
* What the Panel's Advisor row says (spec §3.41): the one state every readable settings file has (`fable`, `opus`,
|
|
604
|
+
* `sonnet`, `other` or `off`), `mixed` when they differ, `off` when none can be read; null without groups.
|
|
605
|
+
*/
|
|
606
|
+
export declare function advisorSummary(groups: readonly {
|
|
607
|
+
state: string;
|
|
608
|
+
}[]): string | null;
|
|
609
|
+
/**
|
|
610
|
+
* The choice the Advisor dialog waits to confirm after a click on `v` (spec §3.41): `v`, unless it is the model the
|
|
611
|
+
* files already name (`current`) and choosing it changes nothing (`pending`, from `advisorPending`); then nothing waits.
|
|
612
|
+
* A file that already names the model but still needs a change (its `env` turns experimental features off, or the
|
|
613
|
+
* unlock is off) keeps the choice, so the dialog offers that change.
|
|
614
|
+
*/
|
|
615
|
+
export declare function advisorPick(v: string, current: string | null, pending: {
|
|
616
|
+
todo: readonly unknown[];
|
|
617
|
+
unlocks: boolean;
|
|
618
|
+
}): string | null;
|
|
602
619
|
/**
|
|
603
620
|
* Where a menu or popover goes next to its anchor, all in viewport pixels. It opens below when its whole height fits
|
|
604
621
|
* there, else above when it fits there, else on the side with more room, its height capped at that room so it scrolls
|
|
@@ -1110,6 +1110,29 @@ export function remoteControlSummary(groups, apiRefs) {
|
|
|
1110
1110
|
return 'default';
|
|
1111
1111
|
return 'off';
|
|
1112
1112
|
}
|
|
1113
|
+
/**
|
|
1114
|
+
* What the Panel's Advisor row says (spec §3.41): the one state every readable settings file has (`fable`, `opus`,
|
|
1115
|
+
* `sonnet`, `other` or `off`), `mixed` when they differ, `off` when none can be read; null without groups.
|
|
1116
|
+
*/
|
|
1117
|
+
export function advisorSummary(groups) {
|
|
1118
|
+
if (!groups.length)
|
|
1119
|
+
return null;
|
|
1120
|
+
const seen = [
|
|
1121
|
+
...new Set(groups.filter((g) => g.state !== 'missing' && g.state !== 'blocked').map((g) => g.state)),
|
|
1122
|
+
];
|
|
1123
|
+
if (!seen.length)
|
|
1124
|
+
return 'off';
|
|
1125
|
+
return seen.length === 1 ? seen[0] : 'mixed';
|
|
1126
|
+
}
|
|
1127
|
+
/**
|
|
1128
|
+
* The choice the Advisor dialog waits to confirm after a click on `v` (spec §3.41): `v`, unless it is the model the
|
|
1129
|
+
* files already name (`current`) and choosing it changes nothing (`pending`, from `advisorPending`); then nothing waits.
|
|
1130
|
+
* A file that already names the model but still needs a change (its `env` turns experimental features off, or the
|
|
1131
|
+
* unlock is off) keeps the choice, so the dialog offers that change.
|
|
1132
|
+
*/
|
|
1133
|
+
export function advisorPick(v, current, pending) {
|
|
1134
|
+
return v === current && !pending.todo.length && !pending.unlocks ? null : v;
|
|
1135
|
+
}
|
|
1113
1136
|
/**
|
|
1114
1137
|
* Where a menu or popover goes next to its anchor, all in viewport pixels. It opens below when its whole height fits
|
|
1115
1138
|
* there, else above when it fits there, else on the side with more room, its height capped at that room so it scrolls
|