@cortexkit/common-auth 0.29.1 → 0.31.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/dist/claustrum/consumer.d.ts +10 -0
- package/dist/claustrum/consumer.js +25 -0
- package/dist/claustrum/hub.d.ts +3 -1
- package/dist/claustrum/hub.js +55 -5
- package/dist/claustrum/roster.js +1 -1
- package/dist/fs/refresh-file-lock.d.ts +2 -1
- package/dist/fs/refresh-file-lock.js +3 -1
- package/dist/fs/with-lock.js +1 -1
- package/dist/opencode2/index.d.ts +1 -1
- package/dist/opencode2/install.d.ts +4 -3
- package/dist/opencode2/install.js +144 -17
- package/dist/opencode2/types.d.ts +52 -1
- package/dist/quota-sidebar/index.d.ts +84 -0
- package/dist/quota-sidebar/index.jsx +282 -0
- package/package.json +10 -2
- package/src/quota/format.ts +530 -0
- package/src/quota/map.ts +282 -0
- package/src/quota/projection.ts +223 -0
- package/src/quota-sidebar/index.tsx +497 -0
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import type { RGBA } from '@opentui/core';
|
|
2
|
+
import type { JSX } from '@opentui/solid';
|
|
3
|
+
import type { QuotaWindowPart } from '../quota/format.js';
|
|
4
|
+
import type { ProjectedQuota } from '../quota/projection.js';
|
|
5
|
+
export type Tone = 'text' | 'textMuted' | 'accent' | 'success' | 'warning' | 'error';
|
|
6
|
+
export type SidebarTheme = Readonly<Record<Tone | 'background' | 'borderActive', RGBA>>;
|
|
7
|
+
export interface SidebarAppearance {
|
|
8
|
+
barWidth: number;
|
|
9
|
+
barFilledChar: string;
|
|
10
|
+
barEmptyChar: string;
|
|
11
|
+
warnThreshold: number;
|
|
12
|
+
errorThreshold: number;
|
|
13
|
+
}
|
|
14
|
+
export interface PaceView {
|
|
15
|
+
text: string;
|
|
16
|
+
tone: Tone;
|
|
17
|
+
/** The elapsed-window percentage, not the difference from usage. */
|
|
18
|
+
overlay?: {
|
|
19
|
+
kind: 'reserve' | 'deficit';
|
|
20
|
+
percent: number;
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
export interface QuotaGroupView {
|
|
24
|
+
title?: string;
|
|
25
|
+
rows: readonly {
|
|
26
|
+
part: QuotaWindowPart;
|
|
27
|
+
pace?: PaceView;
|
|
28
|
+
}[];
|
|
29
|
+
}
|
|
30
|
+
export interface AccountView {
|
|
31
|
+
id: string;
|
|
32
|
+
label: string;
|
|
33
|
+
titleSuffix?: string;
|
|
34
|
+
status: {
|
|
35
|
+
text: string;
|
|
36
|
+
tone: Tone;
|
|
37
|
+
};
|
|
38
|
+
blocked: boolean;
|
|
39
|
+
indicatorTone: Tone;
|
|
40
|
+
quota: ProjectedQuota | undefined;
|
|
41
|
+
groups: readonly QuotaGroupView[];
|
|
42
|
+
emptyQuotaText?: {
|
|
43
|
+
expanded: string;
|
|
44
|
+
collapsed: string;
|
|
45
|
+
};
|
|
46
|
+
/** Presentation decided by the plugin, never inferred from status or freshness. */
|
|
47
|
+
collapsed?: {
|
|
48
|
+
quotaTone?: Tone;
|
|
49
|
+
muted?: boolean;
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
export interface SidebarFrameProps {
|
|
53
|
+
header: {
|
|
54
|
+
badge: string;
|
|
55
|
+
version?: string;
|
|
56
|
+
};
|
|
57
|
+
accounts: readonly AccountView[];
|
|
58
|
+
theme: SidebarTheme;
|
|
59
|
+
appearance: SidebarAppearance;
|
|
60
|
+
showQuota: boolean;
|
|
61
|
+
now: number;
|
|
62
|
+
collapsed: boolean;
|
|
63
|
+
onToggle: () => void;
|
|
64
|
+
beforeQuota?: (account: AccountView) => JSX.Element;
|
|
65
|
+
afterQuota?: (account: AccountView) => JSX.Element;
|
|
66
|
+
sections?: () => JSX.Element;
|
|
67
|
+
}
|
|
68
|
+
/** A heading and its plugin-owned rows, with the frame's section spacing. */
|
|
69
|
+
export declare function SidebarSection(props: {
|
|
70
|
+
title: string;
|
|
71
|
+
children?: JSX.Element;
|
|
72
|
+
}): any;
|
|
73
|
+
/** Keep labels whole and reserve one blank cell before an ellipsized value. */
|
|
74
|
+
export declare function SidebarStatRow(props: {
|
|
75
|
+
label: string;
|
|
76
|
+
value: string;
|
|
77
|
+
tone?: Tone;
|
|
78
|
+
}): any;
|
|
79
|
+
export declare function SidebarTextRow(props: {
|
|
80
|
+
text: string;
|
|
81
|
+
tone?: Tone;
|
|
82
|
+
}): any;
|
|
83
|
+
/** Borderless, controlled presentation; host registration and provider policy stay in the plugin. */
|
|
84
|
+
export declare function SidebarFrame(props: SidebarFrameProps): any;
|
|
@@ -0,0 +1,282 @@
|
|
|
1
|
+
import { createContext, createMemo, createSignal, For, Show, useContext, } from 'solid-js';
|
|
2
|
+
import { formatQuota, quotaWindowParts } from '../quota/format.js';
|
|
3
|
+
const FrameContext = createContext();
|
|
4
|
+
function frameContext() {
|
|
5
|
+
const context = useContext(FrameContext);
|
|
6
|
+
if (!context)
|
|
7
|
+
throw new Error('Sidebar primitives must be inside SidebarFrame');
|
|
8
|
+
return context;
|
|
9
|
+
}
|
|
10
|
+
function displayWidth(text) {
|
|
11
|
+
const bun = globalThis.Bun;
|
|
12
|
+
return bun?.stringWidth ? bun.stringWidth(text) : Array.from(text).length;
|
|
13
|
+
}
|
|
14
|
+
function fitText(text, columns) {
|
|
15
|
+
if (displayWidth(text) <= columns)
|
|
16
|
+
return text;
|
|
17
|
+
if (columns < 1)
|
|
18
|
+
return '';
|
|
19
|
+
let kept = '';
|
|
20
|
+
let used = 0;
|
|
21
|
+
for (const char of text) {
|
|
22
|
+
const width = displayWidth(char);
|
|
23
|
+
if (used + width > columns - 1)
|
|
24
|
+
break;
|
|
25
|
+
kept += char;
|
|
26
|
+
used += width;
|
|
27
|
+
}
|
|
28
|
+
return `${kept}\u2026`;
|
|
29
|
+
}
|
|
30
|
+
/** A heading and its plugin-owned rows, with the frame's section spacing. */
|
|
31
|
+
export function SidebarSection(props) {
|
|
32
|
+
const context = frameContext();
|
|
33
|
+
return (<>
|
|
34
|
+
<box width='100%' marginTop={1}>
|
|
35
|
+
<text fg={context.theme.text}>
|
|
36
|
+
<b>{props.title}</b>
|
|
37
|
+
</text>
|
|
38
|
+
</box>
|
|
39
|
+
{props.children}
|
|
40
|
+
</>);
|
|
41
|
+
}
|
|
42
|
+
/** Keep labels whole and reserve one blank cell before an ellipsized value. */
|
|
43
|
+
export function SidebarStatRow(props) {
|
|
44
|
+
const context = frameContext();
|
|
45
|
+
const [width, setWidth] = createSignal(0);
|
|
46
|
+
let row;
|
|
47
|
+
const value = () => width() <= 0
|
|
48
|
+
? props.value
|
|
49
|
+
: fitText(props.value, width() - displayWidth(props.label) - 1);
|
|
50
|
+
return (<box ref={(element) => {
|
|
51
|
+
row = element;
|
|
52
|
+
}} onSizeChange={() => setWidth(row?.width ?? 0)} width='100%' flexDirection='row' justifyContent='space-between' columnGap={1}>
|
|
53
|
+
<text fg={context.theme.textMuted} wrapMode='none' flexShrink={0}>
|
|
54
|
+
{props.label}
|
|
55
|
+
</text>
|
|
56
|
+
<text fg={context.theme[props.tone ?? 'text']} wrapMode='none' flexShrink={1}>
|
|
57
|
+
<b>{value()}</b>
|
|
58
|
+
</text>
|
|
59
|
+
</box>);
|
|
60
|
+
}
|
|
61
|
+
export function SidebarTextRow(props) {
|
|
62
|
+
const context = frameContext();
|
|
63
|
+
return <text fg={context.theme[props.tone ?? 'textMuted']}>{props.text}</text>;
|
|
64
|
+
}
|
|
65
|
+
function usageTone(used, appearance) {
|
|
66
|
+
if (used >= appearance.errorThreshold)
|
|
67
|
+
return 'error';
|
|
68
|
+
if (used >= appearance.warnThreshold)
|
|
69
|
+
return 'warning';
|
|
70
|
+
return 'success';
|
|
71
|
+
}
|
|
72
|
+
function barSegments(used, appearance, pace) {
|
|
73
|
+
const width = appearance.barWidth;
|
|
74
|
+
const cells = (pct) => Math.max(0, Math.min(Math.round((pct / 100) * width), width));
|
|
75
|
+
const usedCells = cells(used);
|
|
76
|
+
const tone = usageTone(used, appearance);
|
|
77
|
+
const plain = [
|
|
78
|
+
{ text: appearance.barFilledChar.repeat(usedCells), tone },
|
|
79
|
+
{ text: appearance.barEmptyChar.repeat(width - usedCells), tone },
|
|
80
|
+
];
|
|
81
|
+
const overlay = pace?.overlay;
|
|
82
|
+
if (!overlay)
|
|
83
|
+
return plain.filter((segment) => segment.text.length > 0);
|
|
84
|
+
const paceCells = cells(overlay.percent);
|
|
85
|
+
const lo = Math.min(usedCells, paceCells);
|
|
86
|
+
const hi = Math.max(usedCells, paceCells);
|
|
87
|
+
if (lo === hi)
|
|
88
|
+
return plain.filter((segment) => segment.text.length > 0);
|
|
89
|
+
return [
|
|
90
|
+
{ text: appearance.barFilledChar.repeat(lo), tone },
|
|
91
|
+
{
|
|
92
|
+
text: (overlay.kind === 'deficit' ? '\u2593' : '\u2592').repeat(hi - lo),
|
|
93
|
+
tone: overlay.kind === 'deficit' ? 'error' : 'success',
|
|
94
|
+
},
|
|
95
|
+
{ text: appearance.barEmptyChar.repeat(width - hi), tone },
|
|
96
|
+
].filter((segment) => segment.text.length > 0);
|
|
97
|
+
}
|
|
98
|
+
function QuotaRow(props) {
|
|
99
|
+
const context = frameContext();
|
|
100
|
+
const [columns, setColumns] = createSignal(0);
|
|
101
|
+
let row;
|
|
102
|
+
const label = () => props.part.name.padEnd(props.labelWidth);
|
|
103
|
+
const figure = () => ` ${props.part.kind === 'budget' && props.part.figure.startsWith(`${props.part.name} `) ? props.part.figure.slice(props.part.name.length + 1) : props.part.figure}`;
|
|
104
|
+
const reset = () => props.part.resetIn ?? (props.part.resetSinceReading ? 'reset' : undefined);
|
|
105
|
+
const used = () => 100 - (props.part.remainingPercent ?? 100);
|
|
106
|
+
const fit = () => {
|
|
107
|
+
const barWidth = context.appearance.barWidth;
|
|
108
|
+
const resetWidth = displayWidth(reset() ?? '');
|
|
109
|
+
if (columns() <= 0)
|
|
110
|
+
return { barCells: barWidth, showReset: resetWidth > 0 };
|
|
111
|
+
const fixed = displayWidth(label()) + displayWidth(figure());
|
|
112
|
+
if (resetWidth > 0 && fixed + barWidth + 1 + resetWidth <= columns())
|
|
113
|
+
return { barCells: barWidth, showReset: true };
|
|
114
|
+
const room = columns() - fixed;
|
|
115
|
+
return {
|
|
116
|
+
barCells: room >= barWidth ? barWidth : room >= 3 ? room : 0,
|
|
117
|
+
showReset: false,
|
|
118
|
+
};
|
|
119
|
+
};
|
|
120
|
+
// Stable fits keep existing bar nodes alive through the first measurement.
|
|
121
|
+
const barCells = createMemo(() => fit().barCells);
|
|
122
|
+
const showReset = createMemo(() => fit().showReset);
|
|
123
|
+
const paceLine = () => {
|
|
124
|
+
const text = props.pace?.text;
|
|
125
|
+
if (!text || columns() <= 0)
|
|
126
|
+
return text;
|
|
127
|
+
return fitText(text, columns() - props.labelWidth);
|
|
128
|
+
};
|
|
129
|
+
return (<>
|
|
130
|
+
<box ref={(element) => {
|
|
131
|
+
row = element;
|
|
132
|
+
}} onSizeChange={() => setColumns(row?.width ?? 0)} width='100%' flexDirection='row' justifyContent='space-between'>
|
|
133
|
+
<box flexDirection='row' flexShrink={0}>
|
|
134
|
+
<text fg={context.theme.textMuted} wrapMode='none'>
|
|
135
|
+
{label()}
|
|
136
|
+
</text>
|
|
137
|
+
<For each={barSegments(used(), { ...context.appearance, barWidth: barCells() }, props.pace)}>
|
|
138
|
+
{(segment) => (<text fg={context.theme[segment.tone]} wrapMode='none'>
|
|
139
|
+
{segment.text}
|
|
140
|
+
</text>)}
|
|
141
|
+
</For>
|
|
142
|
+
<text fg={context.theme[usageTone(used(), context.appearance)]} wrapMode='none'>
|
|
143
|
+
{figure()}
|
|
144
|
+
</text>
|
|
145
|
+
</box>
|
|
146
|
+
<Show when={showReset()}>
|
|
147
|
+
<text fg={context.theme.textMuted} wrapMode='none' flexShrink={0}>
|
|
148
|
+
{reset()}
|
|
149
|
+
</text>
|
|
150
|
+
</Show>
|
|
151
|
+
</box>
|
|
152
|
+
{/* A changed fitted line needs a fresh text node to draw at its new width. */}
|
|
153
|
+
<Show when={paceLine()} keyed>
|
|
154
|
+
{(line) => (<box width='100%' flexDirection='row'>
|
|
155
|
+
<text fg={context.theme.textMuted}>
|
|
156
|
+
{''.padEnd(props.labelWidth)}
|
|
157
|
+
</text>
|
|
158
|
+
<text fg={context.theme[props.pace?.tone ?? 'textMuted']} wrapMode='none'>
|
|
159
|
+
{line}
|
|
160
|
+
</text>
|
|
161
|
+
</box>)}
|
|
162
|
+
</Show>
|
|
163
|
+
</>);
|
|
164
|
+
}
|
|
165
|
+
function CollapsedAccountRow(props) {
|
|
166
|
+
const context = frameContext();
|
|
167
|
+
const [width, setWidth] = createSignal(0);
|
|
168
|
+
let row;
|
|
169
|
+
const hasQuota = () => quotaWindowParts(props.account.quota, { now: context.now }).windows.length >
|
|
170
|
+
0;
|
|
171
|
+
const text = () => hasQuota()
|
|
172
|
+
? formatQuota(props.account.quota, { now: context.now, form: 'narrow' })
|
|
173
|
+
: null;
|
|
174
|
+
const label = () => {
|
|
175
|
+
if (width() <= 0)
|
|
176
|
+
return props.account.label;
|
|
177
|
+
const value = text() === null
|
|
178
|
+
? displayWidth(props.account.emptyQuotaText?.collapsed ?? '\u2014')
|
|
179
|
+
: displayWidth(text() ?? '') + 2;
|
|
180
|
+
return fitText(props.account.label, width() - value - 1);
|
|
181
|
+
};
|
|
182
|
+
const muted = () => props.account.collapsed?.muted ?? false;
|
|
183
|
+
const quotaTone = () => muted() ? 'textMuted' : (props.account.collapsed?.quotaTone ?? 'success');
|
|
184
|
+
return (<box ref={(element) => {
|
|
185
|
+
row = element;
|
|
186
|
+
}} onSizeChange={() => setWidth(row?.width ?? 0)} width='100%' flexDirection='row' justifyContent='space-between'>
|
|
187
|
+
<text fg={context.theme[muted() ? 'textMuted' : 'text']} wrapMode='none' flexShrink={1}>
|
|
188
|
+
{label()}
|
|
189
|
+
</text>
|
|
190
|
+
<Show when={text() !== null} fallback={<text fg={context.theme.textMuted}>
|
|
191
|
+
{props.account.emptyQuotaText?.collapsed ?? '\u2014'}
|
|
192
|
+
</text>}>
|
|
193
|
+
<box flexDirection='row' flexShrink={0}>
|
|
194
|
+
<Show when={!muted()} fallback={<text fg={context.theme.textMuted}>{text()}</text>}>
|
|
195
|
+
<text fg={context.theme[quotaTone()]}>
|
|
196
|
+
<b>{text()}</b>
|
|
197
|
+
</text>
|
|
198
|
+
</Show>
|
|
199
|
+
<text fg={context.theme[props.account.indicatorTone]}>
|
|
200
|
+
{props.account.blocked ? ' \u2298' : ' \u25cf'}
|
|
201
|
+
</text>
|
|
202
|
+
</box>
|
|
203
|
+
</Show>
|
|
204
|
+
</box>);
|
|
205
|
+
}
|
|
206
|
+
function AccountBlock(props) {
|
|
207
|
+
const context = frameContext();
|
|
208
|
+
const age = () => quotaWindowParts(props.account.quota, { now: context.now }).age;
|
|
209
|
+
const hasRows = () => props.account.groups.some((group) => group.rows.length > 0);
|
|
210
|
+
return (<box width='100%' flexDirection='column' marginTop={props.marginTop}>
|
|
211
|
+
<box width='100%' flexDirection='row' justifyContent='space-between'>
|
|
212
|
+
<text fg={context.theme.text}>
|
|
213
|
+
<b>
|
|
214
|
+
{props.account.label}
|
|
215
|
+
{props.account.titleSuffix ? ` · ${props.account.titleSuffix}` : ''}
|
|
216
|
+
</b>
|
|
217
|
+
</text>
|
|
218
|
+
<text fg={context.theme[props.account.status.tone]}>
|
|
219
|
+
<b>{props.account.status.text}</b>
|
|
220
|
+
</text>
|
|
221
|
+
</box>
|
|
222
|
+
{context.beforeQuota?.(props.account)}
|
|
223
|
+
<Show when={hasRows()} fallback={<SidebarTextRow text={props.account.emptyQuotaText?.expanded ?? '\u2014'}/>}>
|
|
224
|
+
<For each={props.account.groups}>
|
|
225
|
+
{(group) => (<>
|
|
226
|
+
<Show when={group.title}>
|
|
227
|
+
<SidebarTextRow text={group.title ?? ''} tone='text'/>
|
|
228
|
+
</Show>
|
|
229
|
+
<For each={group.rows}>
|
|
230
|
+
{(row) => (<QuotaRow part={row.part} pace={row.pace} labelWidth={props.labelWidth}/>)}
|
|
231
|
+
</For>
|
|
232
|
+
</>)}
|
|
233
|
+
</For>
|
|
234
|
+
</Show>
|
|
235
|
+
<Show when={age()}>
|
|
236
|
+
{(text) => <SidebarTextRow text={text()}/>}
|
|
237
|
+
</Show>
|
|
238
|
+
{context.afterQuota?.(props.account)}
|
|
239
|
+
</box>);
|
|
240
|
+
}
|
|
241
|
+
/** Borderless, controlled presentation; host registration and provider policy stay in the plugin. */
|
|
242
|
+
export function SidebarFrame(props) {
|
|
243
|
+
const hasData = () => props.accounts.length > 0;
|
|
244
|
+
const headerLabel = () => !hasData()
|
|
245
|
+
? props.header.badge
|
|
246
|
+
: `${props.collapsed ? '\u25b6' : '\u25bc'} ${props.header.badge}`;
|
|
247
|
+
const labelWidth = () => Math.max(3, ...props.accounts.flatMap((account) => account.groups.flatMap((group) => group.rows.map((row) => row.part.name.length + 1))));
|
|
248
|
+
return (<FrameContext.Provider value={props}>
|
|
249
|
+
<box width='100%' flexDirection='column' paddingTop={1} paddingBottom={1} paddingLeft={1} paddingRight={1}>
|
|
250
|
+
{/* Blocked accounts retain their own indicators; the header always keeps its version. */}
|
|
251
|
+
{/* biome-ignore lint/a11y/noStaticElementInteractions: OpenTUI terminal widgets do not have DOM roles */}
|
|
252
|
+
<box width='100%' flexDirection='row' justifyContent='space-between' alignItems='center' onMouseDown={() => {
|
|
253
|
+
if (hasData())
|
|
254
|
+
props.onToggle();
|
|
255
|
+
}}>
|
|
256
|
+
<box paddingLeft={1} paddingRight={1} backgroundColor={props.theme.accent}>
|
|
257
|
+
<text fg={props.theme.background}>
|
|
258
|
+
<b>{headerLabel()}</b>
|
|
259
|
+
</text>
|
|
260
|
+
</box>
|
|
261
|
+
<Show when={props.header.version}>
|
|
262
|
+
<text fg={props.theme.textMuted}>{props.header.version}</text>
|
|
263
|
+
</Show>
|
|
264
|
+
</box>
|
|
265
|
+
<Show when={props.collapsed && hasData()}>
|
|
266
|
+
<For each={props.accounts}>
|
|
267
|
+
{(account) => <CollapsedAccountRow account={account}/>}
|
|
268
|
+
</For>
|
|
269
|
+
</Show>
|
|
270
|
+
<Show when={!props.collapsed || !hasData()}>
|
|
271
|
+
<Show when={props.showQuota && hasData()}>
|
|
272
|
+
<SidebarSection title='Quota'>
|
|
273
|
+
<For each={props.accounts}>
|
|
274
|
+
{(account, index) => (<AccountBlock account={account} labelWidth={labelWidth()} marginTop={index() === 0 ? 0 : 1}/>)}
|
|
275
|
+
</For>
|
|
276
|
+
</SidebarSection>
|
|
277
|
+
</Show>
|
|
278
|
+
{props.sections?.()}
|
|
279
|
+
</Show>
|
|
280
|
+
</box>
|
|
281
|
+
</FrameContext.Provider>);
|
|
282
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cortexkit/common-auth",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.31.0",
|
|
4
4
|
"description": "Shared code for the CortexKit auth plugins: account pool, quota and routing, commands and auth menu, OpenCode 2 hooks, Claustrum custody, and plumbing (loopback RPC, file locks, logger, sidebar state, TUI preferences and build).",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -56,6 +56,10 @@
|
|
|
56
56
|
"types": "./dist/tui/index.d.ts",
|
|
57
57
|
"import": "./dist/tui/index.js"
|
|
58
58
|
},
|
|
59
|
+
"./quota-sidebar": {
|
|
60
|
+
"types": "./dist/quota-sidebar/index.d.ts",
|
|
61
|
+
"import": "./src/quota-sidebar/index.tsx"
|
|
62
|
+
},
|
|
59
63
|
"./store": {
|
|
60
64
|
"types": "./dist/store/index.d.ts",
|
|
61
65
|
"import": "./dist/store/index.js"
|
|
@@ -94,7 +98,11 @@
|
|
|
94
98
|
}
|
|
95
99
|
},
|
|
96
100
|
"files": [
|
|
97
|
-
"dist/"
|
|
101
|
+
"dist/",
|
|
102
|
+
"src/quota-sidebar/",
|
|
103
|
+
"src/quota/format.ts",
|
|
104
|
+
"src/quota/map.ts",
|
|
105
|
+
"src/quota/projection.ts"
|
|
98
106
|
],
|
|
99
107
|
"scripts": {
|
|
100
108
|
"build": "bun scripts/check-local-deps.mjs && bun scripts/check-installed-ranges.mjs && tsc -p tsconfig.build.json && bun scripts/check-private-files-external.ts",
|