sideby 0.0.0-stage → 0.2.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.
Files changed (154) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +111 -2
  3. package/README.zh-CN.md +112 -0
  4. package/dist/build.json +1 -0
  5. package/dist/src/cli/args.d.ts +13 -0
  6. package/dist/src/cli/args.js +38 -0
  7. package/dist/src/cli/commands.d.ts +50 -0
  8. package/dist/src/cli/commands.js +566 -0
  9. package/dist/src/cli/format.d.ts +16 -0
  10. package/dist/src/cli/format.js +80 -0
  11. package/dist/src/cli/json-schemas.d.ts +2 -0
  12. package/dist/src/cli/json-schemas.js +259 -0
  13. package/dist/src/cli/main.d.ts +2 -0
  14. package/dist/src/cli/main.js +276 -0
  15. package/dist/src/cli/schemas.d.ts +1 -0
  16. package/dist/src/cli/schemas.js +16 -0
  17. package/dist/src/core/account-name.d.ts +2 -0
  18. package/dist/src/core/account-name.js +2 -0
  19. package/dist/src/core/accounts.d.ts +20 -0
  20. package/dist/src/core/accounts.js +131 -0
  21. package/dist/src/core/config.d.ts +61 -0
  22. package/dist/src/core/config.js +184 -0
  23. package/dist/src/core/create.d.ts +30 -0
  24. package/dist/src/core/create.js +126 -0
  25. package/dist/src/core/doctor.d.ts +41 -0
  26. package/dist/src/core/doctor.js +171 -0
  27. package/dist/src/core/errors.d.ts +12 -0
  28. package/dist/src/core/errors.js +14 -0
  29. package/dist/src/core/file-memo.d.ts +24 -0
  30. package/dist/src/core/file-memo.js +41 -0
  31. package/dist/src/core/fs-safe.d.ts +38 -0
  32. package/dist/src/core/fs-safe.js +205 -0
  33. package/dist/src/core/handoff.d.ts +41 -0
  34. package/dist/src/core/handoff.js +54 -0
  35. package/dist/src/core/identity.d.ts +23 -0
  36. package/dist/src/core/identity.js +79 -0
  37. package/dist/src/core/last-doctor.d.ts +36 -0
  38. package/dist/src/core/last-doctor.js +69 -0
  39. package/dist/src/core/launch.d.ts +37 -0
  40. package/dist/src/core/launch.js +108 -0
  41. package/dist/src/core/login-path.d.ts +23 -0
  42. package/dist/src/core/login-path.js +96 -0
  43. package/dist/src/core/paths.d.ts +13 -0
  44. package/dist/src/core/paths.js +32 -0
  45. package/dist/src/core/quota-levels.d.ts +19 -0
  46. package/dist/src/core/quota-levels.js +34 -0
  47. package/dist/src/core/resume.d.ts +9 -0
  48. package/dist/src/core/resume.js +15 -0
  49. package/dist/src/core/secret-file.d.ts +30 -0
  50. package/dist/src/core/secret-file.js +116 -0
  51. package/dist/src/core/share-meaning.d.ts +6 -0
  52. package/dist/src/core/share-meaning.js +32 -0
  53. package/dist/src/core/share-mode-names.d.ts +1 -0
  54. package/dist/src/core/share-mode-names.js +10 -0
  55. package/dist/src/core/share-modes.d.ts +24 -0
  56. package/dist/src/core/share-modes.js +405 -0
  57. package/dist/src/core/shell-init.d.ts +31 -0
  58. package/dist/src/core/shell-init.js +84 -0
  59. package/dist/src/core/skill-check.d.ts +11 -0
  60. package/dist/src/core/skill-check.js +57 -0
  61. package/dist/src/core/usage-days.d.ts +15 -0
  62. package/dist/src/core/usage-days.js +33 -0
  63. package/dist/src/core/version.d.ts +9 -0
  64. package/dist/src/core/version.js +46 -0
  65. package/dist/src/desktop/app.d.ts +60 -0
  66. package/dist/src/desktop/app.js +316 -0
  67. package/dist/src/desktop/icon.d.ts +16 -0
  68. package/dist/src/desktop/icon.js +174 -0
  69. package/dist/src/families/claude/index.d.ts +10 -0
  70. package/dist/src/families/claude/index.js +127 -0
  71. package/dist/src/families/claude/layout.d.ts +6 -0
  72. package/dist/src/families/claude/layout.js +5 -0
  73. package/dist/src/families/claude/quota-cache.d.ts +31 -0
  74. package/dist/src/families/claude/quota-cache.js +111 -0
  75. package/dist/src/families/claude/quota.d.ts +3 -0
  76. package/dist/src/families/claude/quota.js +53 -0
  77. package/dist/src/families/claude/usage.d.ts +22 -0
  78. package/dist/src/families/claude/usage.js +146 -0
  79. package/dist/src/families/codex/index.d.ts +5 -0
  80. package/dist/src/families/codex/index.js +70 -0
  81. package/dist/src/families/codex/rollout.d.ts +67 -0
  82. package/dist/src/families/codex/rollout.js +298 -0
  83. package/dist/src/families/grok/index.d.ts +8 -0
  84. package/dist/src/families/grok/index.js +82 -0
  85. package/dist/src/families/index.d.ts +3 -0
  86. package/dist/src/families/index.js +40 -0
  87. package/dist/src/families/logos.d.ts +21 -0
  88. package/dist/src/families/logos.js +26 -0
  89. package/dist/src/families/pi/index.d.ts +3 -0
  90. package/dist/src/families/pi/index.js +54 -0
  91. package/dist/src/families/shared/sessions.d.ts +9 -0
  92. package/dist/src/families/shared/sessions.js +70 -0
  93. package/dist/src/families/shared/toml.d.ts +5 -0
  94. package/dist/src/families/shared/toml.js +16 -0
  95. package/dist/src/index.d.ts +5 -0
  96. package/dist/src/index.js +4 -0
  97. package/dist/src/panel/background.d.ts +62 -0
  98. package/dist/src/panel/background.js +274 -0
  99. package/dist/src/panel/handler.d.ts +91 -0
  100. package/dist/src/panel/handler.js +396 -0
  101. package/dist/src/panel/i18n.d.ts +287 -0
  102. package/dist/src/panel/i18n.js +570 -0
  103. package/dist/src/panel/page-logic.d.ts +154 -0
  104. package/dist/src/panel/page-logic.js +326 -0
  105. package/dist/src/panel/page-script.d.ts +2 -0
  106. package/dist/src/panel/page-script.js +1633 -0
  107. package/dist/src/panel/page-styles.d.ts +7 -0
  108. package/dist/src/panel/page-styles.js +514 -0
  109. package/dist/src/panel/page.d.ts +20 -0
  110. package/dist/src/panel/page.js +96 -0
  111. package/dist/src/panel/server.d.ts +32 -0
  112. package/dist/src/panel/server.js +133 -0
  113. package/dist/src/panel/theme.d.ts +116 -0
  114. package/dist/src/panel/theme.js +132 -0
  115. package/dist/src/plugins/account-script.d.ts +4 -0
  116. package/dist/src/plugins/account-script.js +66 -0
  117. package/dist/src/plugins/bus.d.ts +33 -0
  118. package/dist/src/plugins/bus.js +84 -0
  119. package/dist/src/plugins/loader.d.ts +58 -0
  120. package/dist/src/plugins/loader.js +250 -0
  121. package/dist/src/quota/claude-statusline.d.ts +28 -0
  122. package/dist/src/quota/claude-statusline.js +301 -0
  123. package/dist/src/quota/statusline-tap.d.ts +11 -0
  124. package/dist/src/quota/statusline-tap.js +104 -0
  125. package/dist/src/runtime.d.ts +195 -0
  126. package/dist/src/runtime.js +424 -0
  127. package/dist/src/types.d.ts +285 -0
  128. package/dist/src/types.js +3 -0
  129. package/dist/testing/demo.d.ts +8 -0
  130. package/dist/testing/demo.js +50 -0
  131. package/dist/testing/index.d.ts +36 -0
  132. package/dist/testing/index.js +118 -0
  133. package/package.json +66 -4
  134. package/schemas/alias.json +102 -0
  135. package/schemas/app-install.json +74 -0
  136. package/schemas/app-uninstall.json +54 -0
  137. package/schemas/config.json +170 -0
  138. package/schemas/doctor.json +229 -0
  139. package/schemas/error.json +25 -0
  140. package/schemas/families.json +205 -0
  141. package/schemas/list.json +177 -0
  142. package/schemas/new.json +199 -0
  143. package/schemas/next.json +127 -0
  144. package/schemas/plugins.json +74 -0
  145. package/schemas/quota-setup.json +60 -0
  146. package/schemas/quota-teardown.json +30 -0
  147. package/schemas/quota.json +203 -0
  148. package/skills/sideby/SKILL.md +61 -0
  149. package/skills/sideby/references/accounts.md +31 -0
  150. package/skills/sideby/references/diagnose.md +47 -0
  151. package/skills/sideby/references/handoff.md +41 -0
  152. package/skills/sideby/references/quota.md +14 -0
  153. package/skills/sideby/references/setup.md +31 -0
  154. package/skills/sideby/references/sharing.md +17 -0
@@ -0,0 +1,287 @@
1
+ export type PanelLang = 'en' | 'zh';
2
+ declare const en: {
3
+ 'top.tagline': string;
4
+ 'top.refresh': string;
5
+ 'top.loading': string;
6
+ 'top.refreshing': string;
7
+ 'top.updated': string;
8
+ 'top.updatedTitle': string;
9
+ 'top.language': string;
10
+ 'foot.text': string;
11
+ 'acct.title': string;
12
+ 'theme.system': string;
13
+ 'theme.light': string;
14
+ 'theme.dark': string;
15
+ 'err.noAnswer': string;
16
+ 'err.session': string;
17
+ 'err.expired': string;
18
+ 'err.server': string;
19
+ 'conn.lost': string;
20
+ 'load.failed': string;
21
+ 'load.failedShort': string;
22
+ 'btn.copy': string;
23
+ 'btn.copyText': string;
24
+ 'btn.retry': string;
25
+ 'btn.close': string;
26
+ 'btn.cancel': string;
27
+ 'btn.done': string;
28
+ 'time.justNow': string;
29
+ 'time.minAgo': string;
30
+ 'time.hAgo': string;
31
+ 'time.dAgo': string;
32
+ 'time.in': string;
33
+ 'toast.dismiss': string;
34
+ 'toast.copied': string;
35
+ 'toast.copyFailed': string;
36
+ 'toast.reconnected': string;
37
+ 'toast.refreshed': string;
38
+ 'toast.updated': string;
39
+ 'toast.refreshFailed': string;
40
+ 'toast.checkOk': string;
41
+ 'toast.checkFound': string;
42
+ 'toast.checkFailed': string;
43
+ 'toast.show': string;
44
+ 'toast.created': string;
45
+ 'toast.createdProblems': string;
46
+ 'toast.quotaOn': string;
47
+ 'toast.quotaOff': string;
48
+ 'toast.undo': string;
49
+ 'toast.undoFailed': string;
50
+ 'toast.undoMissing': string;
51
+ 'tip.label': string;
52
+ 'tip.api.term': string;
53
+ 'tip.api.body': string;
54
+ 'tip.shared.term': string;
55
+ 'tip.shared.body': string;
56
+ 'tip.drift.term': string;
57
+ 'tip.drift.body': string;
58
+ 'tip.quotaOff.term': string;
59
+ 'tip.quotaOff.body': string;
60
+ 'tip.quotaOff.cli': string;
61
+ 'tip.age.term': string;
62
+ 'tip.age.body': string;
63
+ 'stat.accounts': string;
64
+ 'stat.families.one': string;
65
+ 'stat.families.other': string;
66
+ 'stat.api.one': string;
67
+ 'stat.api.other': string;
68
+ 'stat.attention': string;
69
+ 'stat.attentionOn': string;
70
+ 'stat.attentionOff': string;
71
+ 'stat.btnLabel': string;
72
+ 'stat.allClear': string;
73
+ 'stat.tokens': string;
74
+ 'stat.sessions.one': string;
75
+ 'stat.sessions.other': string;
76
+ 'stat.nextReset': string;
77
+ 'stat.noQuota': string;
78
+ 'need.error.one': string;
79
+ 'need.error.other': string;
80
+ 'need.health-fail.one': string;
81
+ 'need.health-fail.other': string;
82
+ 'need.signed-out.one': string;
83
+ 'need.signed-out.other': string;
84
+ 'need.not-installed.one': string;
85
+ 'need.not-installed.other': string;
86
+ 'need.quota-high.one': string;
87
+ 'need.quota-high.other': string;
88
+ 'need.health-warn.one': string;
89
+ 'need.health-warn.other': string;
90
+ 'tb.search': string;
91
+ 'tb.searchPh': string;
92
+ 'tb.family': string;
93
+ 'tb.allFamilies': string;
94
+ 'tb.sort': string;
95
+ 'sort.pressure': string;
96
+ 'sort.name': string;
97
+ 'sort.recent': string;
98
+ 'tb.quota': string;
99
+ 'tb.used': string;
100
+ 'tb.left': string;
101
+ 'tb.view': string;
102
+ 'tb.list': string;
103
+ 'tb.cards': string;
104
+ 'tb.hideEmails': string;
105
+ 'tb.showEmails': string;
106
+ 'tb.segLabel': string;
107
+ 'tb.new': string;
108
+ 'count.accounts.one': string;
109
+ 'count.accounts.other': string;
110
+ 'count.filtered': string;
111
+ 'filter.none': string;
112
+ 'filter.noneQuery': string;
113
+ 'filter.noneBody': string;
114
+ 'filter.clear': string;
115
+ 'group.expand': string;
116
+ 'group.collapse': string;
117
+ 'group.toggle': string;
118
+ 'group.attention.one': string;
119
+ 'group.attention.other': string;
120
+ 'acct.alias': string;
121
+ 'acct.aliasArgs': string;
122
+ 'acct.api': string;
123
+ 'acct.model': string;
124
+ 'acct.signedOut': string;
125
+ 'acct.signInHint': string;
126
+ 'acct.signedOutLabel': string;
127
+ 'acct.next': string;
128
+ 'acct.nextHint': string;
129
+ 'acct.nextLabel': string;
130
+ 'acct.notInstalled': string;
131
+ 'acct.readError': string;
132
+ 'acct.installHost': string;
133
+ 'acct.installIt': string;
134
+ 'quota.pctUsed': string;
135
+ 'quota.pctLeft': string;
136
+ 'quota.meterUsed': string;
137
+ 'quota.meterLeft': string;
138
+ 'quota.resetsAt': string;
139
+ 'quota.resetPassed': string;
140
+ 'quota.resetNoData': string;
141
+ 'quota.dataFrom': string;
142
+ 'quota.asOf': string;
143
+ 'quota.noWindows': string;
144
+ 'quota.off': string;
145
+ 'quota.turnOnFamily': string;
146
+ 'quota.turnOnFamilyNote': string;
147
+ 'quota.turnOnFamilyLabel': string;
148
+ 'quota.blocked': string;
149
+ 'quota.api': string;
150
+ 'quota.noSession': string;
151
+ 'quota.noSessionHint': string;
152
+ 'quota.noSource': string;
153
+ 'quota.unrecognized': string;
154
+ 'quota.unavailable': string;
155
+ 'quota.unitUsed': string;
156
+ 'quota.unitLeft': string;
157
+ 'quota.resetShort': string;
158
+ 'quota.missing': string;
159
+ 'quota.waiting': string;
160
+ 'col.account': string;
161
+ 'col.used': string;
162
+ 'col.left': string;
163
+ 'col.tokens': string;
164
+ 'col.last': string;
165
+ 'col.health': string;
166
+ 'usage.tokens': string;
167
+ 'usage.cache': string;
168
+ 'usage.sessions.one': string;
169
+ 'usage.sessions.other': string;
170
+ 'usage.detail': string;
171
+ 'usage.none': string;
172
+ 'usage.noSource': string;
173
+ 'usage.unreadable': string;
174
+ 'usage.sparkLabel': string;
175
+ 'last.title': string;
176
+ 'last.unknown': string;
177
+ 'health.title': string;
178
+ 'health.intro': string;
179
+ 'health.lead': string;
180
+ 'health.sharedTerm': string;
181
+ 'health.driftTerm': string;
182
+ 'health.more.one': string;
183
+ 'health.more.other': string;
184
+ 'health.run': string;
185
+ 'health.running': string;
186
+ 'health.fixing': string;
187
+ 'health.checking': string;
188
+ 'health.waiting': string;
189
+ 'health.last': string;
190
+ 'health.never': string;
191
+ 'health.error': string;
192
+ 'health.notChecked': string;
193
+ 'health.ok': string;
194
+ 'health.issues.one': string;
195
+ 'health.issues.other': string;
196
+ 'health.warnings.one': string;
197
+ 'health.warnings.other': string;
198
+ 'health.filterHint': string;
199
+ 'health.chipLabel': string;
200
+ 'health.only': string;
201
+ 'health.filtered': string;
202
+ 'health.checkThis': string;
203
+ 'health.showAll': string;
204
+ 'health.autoFix': string;
205
+ 'health.from': string;
206
+ 'health.allGood': string;
207
+ 'health.refGood': string;
208
+ 'health.allGoodSub': string;
209
+ 'health.refNever': string;
210
+ 'fix.all': string;
211
+ 'fix.hintAction': string;
212
+ 'fix.off': string;
213
+ 'fix.whyNoCheck': string;
214
+ 'fix.whyManual': string;
215
+ 'fix.whyNothing': string;
216
+ 'fix.result': string;
217
+ 'fix.nothing': string;
218
+ 'menu.title': string;
219
+ 'menu.label': string;
220
+ 'menu.copyRun': string;
221
+ 'menu.copyAlias': string;
222
+ 'menu.copyLogin': string;
223
+ 'menu.copyDir': string;
224
+ 'menu.copyEmail': string;
225
+ 'menu.check': string;
226
+ 'menu.like': string;
227
+ 'nf.title': string;
228
+ 'nf.intro': string;
229
+ 'nf.tool': string;
230
+ 'nf.accounts.one': string;
231
+ 'nf.accounts.other': string;
232
+ 'nf.runOnce': string;
233
+ 'nf.notInstalled': string;
234
+ 'nf.name': string;
235
+ 'nf.namePh': string;
236
+ 'nf.api': string;
237
+ 'nf.apiHint': string;
238
+ 'nf.dir': string;
239
+ 'nf.launch': string;
240
+ 'nf.create': string;
241
+ 'nf.suggested': string;
242
+ 'nf.refusedApi': string;
243
+ 'nf.creating': string;
244
+ 'nf.mainTaken': string;
245
+ 'nf.badName': string;
246
+ 'nf.exists': string;
247
+ 'nf.enterName': string;
248
+ 'nf.noReady': string;
249
+ 'nf.created': string;
250
+ 'nf.createdProblems': string;
251
+ 'nf.next': string;
252
+ 'nf.fillIn': string;
253
+ 'nf.another': string;
254
+ 'nf.alias': string;
255
+ 'nf.optional': string;
256
+ 'nf.aliasPh': string;
257
+ 'nf.aliasHint': string;
258
+ 'nf.aliasSuggested': string;
259
+ 'nf.aliasBad': string;
260
+ 'nf.aliasReserved': string;
261
+ 'nf.aliasTaken': string;
262
+ 'nf.or': string;
263
+ 'nf.aliasNewShell': string;
264
+ 'nf.aliasNotAdded': string;
265
+ 'nf.shellFileUpdated': string;
266
+ 'nf.shellFileSame': string;
267
+ 'qs.title': string;
268
+ 'qs.preparing': string;
269
+ 'qs.changes': string;
270
+ 'qs.undoHint': string;
271
+ 'qs.apply': string;
272
+ 'qs.applying': string;
273
+ 'qs.alreadyOn': string;
274
+ 'empty.title': string;
275
+ 'empty.body': string;
276
+ 'empty.runOnce': string;
277
+ 'empty.install': string;
278
+ 'empty.noFamilies': string;
279
+ 'empty.create': string;
280
+ 'banner.readOnly': string;
281
+ 'banner.plugins.one': string;
282
+ 'banner.plugins.other': string;
283
+ 'banner.pluginsHint': string;
284
+ };
285
+ export type MessageKey = keyof typeof en;
286
+ export declare const MESSAGES: Record<PanelLang, Record<string, string>>;
287
+ export {};