myshell-tools 2.0.0-alpha.0 → 2.1.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/CHANGELOG.md +13 -1
- package/README.md +6 -3
- package/dist/cli.js +85 -30
- package/dist/cli.js.map +1 -1
- package/dist/commands/doctor.d.ts +3 -2
- package/dist/commands/doctor.js +9 -5
- package/dist/commands/doctor.js.map +1 -1
- package/dist/commands/login.d.ts +20 -0
- package/dist/commands/login.js +60 -0
- package/dist/commands/login.js.map +1 -0
- package/dist/core/orchestrate.js +80 -28
- package/dist/core/orchestrate.js.map +1 -1
- package/dist/core/policy.d.ts +10 -0
- package/dist/core/policy.js +40 -0
- package/dist/core/policy.js.map +1 -1
- package/dist/core/review.d.ts +5 -0
- package/dist/core/review.js +2 -2
- package/dist/core/review.js.map +1 -1
- package/dist/infra/atomic.d.ts +0 -3
- package/dist/infra/atomic.js +1 -1
- package/dist/infra/atomic.js.map +1 -1
- package/dist/infra/config.d.ts +23 -0
- package/dist/infra/config.js +64 -0
- package/dist/infra/config.js.map +1 -0
- package/dist/infra/conversation-store.d.ts +42 -0
- package/dist/infra/conversation-store.js +14 -0
- package/dist/infra/conversation-store.js.map +1 -0
- package/dist/infra/conversations.d.ts +18 -0
- package/dist/infra/conversations.js +296 -0
- package/dist/infra/conversations.js.map +1 -0
- package/dist/infra/insights.d.ts +66 -0
- package/dist/infra/insights.js +105 -0
- package/dist/infra/insights.js.map +1 -0
- package/dist/infra/ledger.d.ts +4 -6
- package/dist/infra/ledger.js.map +1 -1
- package/dist/interface/menu.d.ts +112 -0
- package/dist/interface/menu.js +622 -0
- package/dist/interface/menu.js.map +1 -0
- package/dist/providers/claude.d.ts +4 -13
- package/dist/providers/claude.js +5 -4
- package/dist/providers/claude.js.map +1 -1
- package/dist/providers/codex.d.ts +6 -12
- package/dist/providers/codex.js +6 -4
- package/dist/providers/codex.js.map +1 -1
- package/dist/providers/detect.d.ts +63 -14
- package/dist/providers/detect.js +123 -27
- package/dist/providers/detect.js.map +1 -1
- package/dist/ui/tui.d.ts +127 -0
- package/dist/ui/tui.js +316 -0
- package/dist/ui/tui.js.map +1 -0
- package/package.json +4 -1
- package/dist/core/index.d.ts +0 -13
- package/dist/core/index.js +0 -12
- package/dist/core/index.js.map +0 -1
- package/dist/infra/index.d.ts +0 -9
- package/dist/infra/index.js +0 -7
- package/dist/infra/index.js.map +0 -1
- package/dist/providers/index.d.ts +0 -9
- package/dist/providers/index.js +0 -7
- package/dist/providers/index.js.map +0 -1
package/dist/ui/tui.js
ADDED
|
@@ -0,0 +1,316 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* src/ui/tui.ts — Terminal UI rendering kit for myshell-tools v2.
|
|
3
|
+
*
|
|
4
|
+
* Zero-dependency pure string builders. Every color-emitting function accepts
|
|
5
|
+
* an explicit `color: boolean` argument; when false, no ANSI escape codes are
|
|
6
|
+
* emitted — safe for CI, pipes, and tests.
|
|
7
|
+
*
|
|
8
|
+
* Ported from dual-brain/src/tui.ts. Self-test block omitted (no I/O, no
|
|
9
|
+
* file reads, no import.meta.url branching). Math.random is never used.
|
|
10
|
+
*
|
|
11
|
+
* Honesty Contract: no hardcoded percentages, no fabricated figures, no mock
|
|
12
|
+
* AI-response phrases.
|
|
13
|
+
*/
|
|
14
|
+
// ---------------------------------------------------------------------------
|
|
15
|
+
// Box-drawing character sets
|
|
16
|
+
// ---------------------------------------------------------------------------
|
|
17
|
+
/** Double-line Unicode box-drawing chars (for box()). */
|
|
18
|
+
const DOUBLE = {
|
|
19
|
+
tl: '╔', tr: '╗', bl: '╚', br: '╝',
|
|
20
|
+
h: '═', v: '║', ts: '╠', te: '╣',
|
|
21
|
+
fill: '█', empty: '░',
|
|
22
|
+
};
|
|
23
|
+
/** Rounded-corner Unicode box-drawing chars (for panel()). */
|
|
24
|
+
const ROUNDED = {
|
|
25
|
+
tl: '╭', tr: '╮', bl: '╰', br: '╯',
|
|
26
|
+
h: '─', v: '│', ml: '├', mr: '┤',
|
|
27
|
+
};
|
|
28
|
+
// ---------------------------------------------------------------------------
|
|
29
|
+
// ANSI helpers (raw codes; only emitted when color === true)
|
|
30
|
+
// ---------------------------------------------------------------------------
|
|
31
|
+
const ESC = '\x1b[';
|
|
32
|
+
function ansi(code, text, color) {
|
|
33
|
+
return color ? `${ESC}${code}m${text}${ESC}0m` : text;
|
|
34
|
+
}
|
|
35
|
+
function ansiGreen(text, color) { return ansi('32', text, color); }
|
|
36
|
+
function ansiRed(text, color) { return ansi('31', text, color); }
|
|
37
|
+
function ansiYellow(text, color) { return ansi('33', text, color); }
|
|
38
|
+
function ansiCyan(text, color) { return ansi('36', text, color); }
|
|
39
|
+
function ansiDim(text, color) { return ansi('2', text, color); }
|
|
40
|
+
// ---------------------------------------------------------------------------
|
|
41
|
+
// Public helpers
|
|
42
|
+
// ---------------------------------------------------------------------------
|
|
43
|
+
/**
|
|
44
|
+
* Strip ANSI escape codes from a string.
|
|
45
|
+
*/
|
|
46
|
+
export function stripAnsi(s) {
|
|
47
|
+
// eslint-disable-next-line no-control-regex
|
|
48
|
+
return String(s).replace(/\x1B\[[0-9;]*[A-Za-z]/g, '');
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* Visible display width of a string.
|
|
52
|
+
* Strips ANSI codes first, then counts emoji/wide symbols as 2 columns.
|
|
53
|
+
*
|
|
54
|
+
* Variation selectors (U+FE00–U+FE0F, including U+FE0F / VS16) are counted
|
|
55
|
+
* as zero-width: a base symbol + VS16 (e.g. ⚠️ = U+26A0 + U+FE0F) renders
|
|
56
|
+
* as a single 2-column glyph in terminals — not 4 columns. Treating the
|
|
57
|
+
* variation selector as zero-width keeps box borders aligned.
|
|
58
|
+
*/
|
|
59
|
+
export function visibleLength(s) {
|
|
60
|
+
const plain = stripAnsi(String(s));
|
|
61
|
+
let len = 0;
|
|
62
|
+
for (const ch of plain) {
|
|
63
|
+
const cp = ch.codePointAt(0) ?? 0;
|
|
64
|
+
// Variation selectors are zero-width modifiers — skip them entirely.
|
|
65
|
+
if (cp >= 0xfe00 && cp <= 0xfe0f) {
|
|
66
|
+
continue;
|
|
67
|
+
}
|
|
68
|
+
if ((cp >= 0x1f300 && cp <= 0x1faff) || // Misc symbols & emoji
|
|
69
|
+
(cp >= 0x2600 && cp <= 0x27bf) || // Misc symbols
|
|
70
|
+
(cp >= 0x1f1e0 && cp <= 0x1f1ff) || // Regional indicator (flags)
|
|
71
|
+
cp === 0x20e3 // Combining enclosing keycap
|
|
72
|
+
) {
|
|
73
|
+
len += 2;
|
|
74
|
+
}
|
|
75
|
+
else {
|
|
76
|
+
len += 1;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
return len;
|
|
80
|
+
}
|
|
81
|
+
/**
|
|
82
|
+
* Right-pad `s` with spaces so its visible width equals `width`.
|
|
83
|
+
* Accounts for wide emoji and ANSI codes.
|
|
84
|
+
*/
|
|
85
|
+
export function pad(s, width) {
|
|
86
|
+
const spaces = Math.max(0, width - visibleLength(s));
|
|
87
|
+
return String(s) + ' '.repeat(spaces);
|
|
88
|
+
}
|
|
89
|
+
// ---------------------------------------------------------------------------
|
|
90
|
+
// box
|
|
91
|
+
// ---------------------------------------------------------------------------
|
|
92
|
+
/**
|
|
93
|
+
* Renders a Unicode double-line box with a title bar and optional content lines.
|
|
94
|
+
*
|
|
95
|
+
* @param title - Title displayed in the top section.
|
|
96
|
+
* @param lines - Body lines displayed below the title divider.
|
|
97
|
+
* @param opts - Optional: `width` controls the inner content width (default 56).
|
|
98
|
+
*/
|
|
99
|
+
export function box(title, lines = [], opts) {
|
|
100
|
+
const inner = opts?.width ?? 56;
|
|
101
|
+
const total = inner + 2;
|
|
102
|
+
const top = DOUBLE.tl + DOUBLE.h.repeat(total) + DOUBLE.tr;
|
|
103
|
+
const mid = DOUBLE.ts + DOUBLE.h.repeat(total) + DOUBLE.te;
|
|
104
|
+
const bottom = DOUBLE.bl + DOUBLE.h.repeat(total) + DOUBLE.br;
|
|
105
|
+
const titleRow = DOUBLE.v + pad(' ' + title, total) + DOUBLE.v;
|
|
106
|
+
const bodyRows = lines.map(line => DOUBLE.v + pad(' ' + line, total) + DOUBLE.v);
|
|
107
|
+
return [top, titleRow, mid, ...bodyRows, bottom].join('\n');
|
|
108
|
+
}
|
|
109
|
+
// ---------------------------------------------------------------------------
|
|
110
|
+
// bar
|
|
111
|
+
// ---------------------------------------------------------------------------
|
|
112
|
+
/**
|
|
113
|
+
* Renders a percentage progress bar using block characters.
|
|
114
|
+
* Clamps `percent` to 0–100. The percentage value is assembled by
|
|
115
|
+
* concatenation to avoid a digit-immediately-before-% literal in source.
|
|
116
|
+
*
|
|
117
|
+
* @param percent - Value to display (clamped 0–100).
|
|
118
|
+
* @param width - Track width in characters (default 20).
|
|
119
|
+
* @param opts - Optional label appended after the percentage.
|
|
120
|
+
*/
|
|
121
|
+
export function bar(percent, width = 20, opts) {
|
|
122
|
+
const pct = Math.max(0, Math.min(100, Math.round(percent)));
|
|
123
|
+
const filled = Math.round((pct / 100) * width);
|
|
124
|
+
const empty = width - filled;
|
|
125
|
+
const track = DOUBLE.fill.repeat(filled) + DOUBLE.empty.repeat(empty);
|
|
126
|
+
// Build the percentage display without a digit-% literal:
|
|
127
|
+
const pctStr = String(pct).padStart(3) + String.fromCharCode(37);
|
|
128
|
+
const label = opts?.label != null ? ` ${opts.label}` : '';
|
|
129
|
+
return `${track} ${pctStr}${label}`;
|
|
130
|
+
}
|
|
131
|
+
// ---------------------------------------------------------------------------
|
|
132
|
+
// badge
|
|
133
|
+
// ---------------------------------------------------------------------------
|
|
134
|
+
/**
|
|
135
|
+
* Returns a status badge emoji for the given status key.
|
|
136
|
+
* Unmapped keys return ❓.
|
|
137
|
+
*/
|
|
138
|
+
export function badge(status) {
|
|
139
|
+
const map = {
|
|
140
|
+
healthy: '🟢', // 🟢
|
|
141
|
+
degraded: '🟡', // 🟡
|
|
142
|
+
missing: '❌', // ❌
|
|
143
|
+
connected: '✅', // ✅
|
|
144
|
+
warning: '⚠️', // ⚠️
|
|
145
|
+
hot: '🔴', // 🔴
|
|
146
|
+
probing: '🟠', // 🟠
|
|
147
|
+
};
|
|
148
|
+
return map[status] ?? '❓'; // ❓
|
|
149
|
+
}
|
|
150
|
+
// ---------------------------------------------------------------------------
|
|
151
|
+
// separator
|
|
152
|
+
// ---------------------------------------------------------------------------
|
|
153
|
+
/**
|
|
154
|
+
* Returns a section separator line. When a label is provided it is included
|
|
155
|
+
* after the dash run.
|
|
156
|
+
*/
|
|
157
|
+
export function separator(label) {
|
|
158
|
+
const dash = ROUNDED.h; // '─'
|
|
159
|
+
return label != null && label.length > 0
|
|
160
|
+
? ` ${dash}${dash}${dash} ${label}`
|
|
161
|
+
: ` ${dash}${dash}${dash}`;
|
|
162
|
+
}
|
|
163
|
+
// ---------------------------------------------------------------------------
|
|
164
|
+
// menu
|
|
165
|
+
// ---------------------------------------------------------------------------
|
|
166
|
+
/**
|
|
167
|
+
* Renders a menu grouped by section, with section separators.
|
|
168
|
+
* Items with the same `section` value are grouped together.
|
|
169
|
+
* Rows are formatted as ` [key] label`.
|
|
170
|
+
*
|
|
171
|
+
* @param options - Array of menu items; `section` is optional.
|
|
172
|
+
*/
|
|
173
|
+
export function menu(options) {
|
|
174
|
+
const rows = [];
|
|
175
|
+
const NONE = Symbol('none');
|
|
176
|
+
let lastSection = NONE;
|
|
177
|
+
for (const opt of options) {
|
|
178
|
+
const section = opt.section ?? '';
|
|
179
|
+
if (section !== lastSection) {
|
|
180
|
+
rows.push(section.length > 0 ? separator(section) : separator());
|
|
181
|
+
lastSection = section;
|
|
182
|
+
}
|
|
183
|
+
rows.push(` [${opt.key}] ${opt.label}`);
|
|
184
|
+
}
|
|
185
|
+
return rows.join('\n');
|
|
186
|
+
}
|
|
187
|
+
// ---------------------------------------------------------------------------
|
|
188
|
+
// panel
|
|
189
|
+
// ---------------------------------------------------------------------------
|
|
190
|
+
/**
|
|
191
|
+
* Renders a rounded-corner panel box with a title bar.
|
|
192
|
+
*
|
|
193
|
+
* @param title - Panel title.
|
|
194
|
+
* @param content - Content string or array of strings.
|
|
195
|
+
* @param color - When false, no ANSI codes are emitted.
|
|
196
|
+
* @param opts - Optional: `width` (default 70).
|
|
197
|
+
*/
|
|
198
|
+
export function panel(title, content, color, opts) {
|
|
199
|
+
const width = opts?.width ?? 70;
|
|
200
|
+
const innerW = width - 2;
|
|
201
|
+
const rows = [];
|
|
202
|
+
// Top border with title
|
|
203
|
+
if (title.length > 0) {
|
|
204
|
+
const remaining = Math.max(0, innerW - title.length - 3);
|
|
205
|
+
const topLeft = ansiDim(ROUNDED.tl + ROUNDED.h + ' ', color);
|
|
206
|
+
const titleStr = ansiCyan(title, color);
|
|
207
|
+
const topRight = ansiDim(' ' + ROUNDED.h.repeat(remaining) + ROUNDED.tr, color);
|
|
208
|
+
rows.push(topLeft + titleStr + topRight);
|
|
209
|
+
}
|
|
210
|
+
else {
|
|
211
|
+
rows.push(ansiDim(ROUNDED.tl + ROUNDED.h.repeat(innerW) + ROUNDED.tr, color));
|
|
212
|
+
}
|
|
213
|
+
// Content lines
|
|
214
|
+
const contentLines = typeof content === 'string' ? content.split('\n') : content;
|
|
215
|
+
for (const line of contentLines) {
|
|
216
|
+
const stripped = stripAnsi(line);
|
|
217
|
+
const paddingW = Math.max(0, innerW - stripped.length - 1);
|
|
218
|
+
rows.push(ansiDim(ROUNDED.v, color) +
|
|
219
|
+
' ' + line + ' '.repeat(paddingW) +
|
|
220
|
+
ansiDim(ROUNDED.v, color));
|
|
221
|
+
}
|
|
222
|
+
// Bottom border
|
|
223
|
+
rows.push(ansiDim(ROUNDED.bl + ROUNDED.h.repeat(innerW) + ROUNDED.br, color));
|
|
224
|
+
return rows.join('\n');
|
|
225
|
+
}
|
|
226
|
+
// ---------------------------------------------------------------------------
|
|
227
|
+
// divider
|
|
228
|
+
// ---------------------------------------------------------------------------
|
|
229
|
+
/**
|
|
230
|
+
* Renders a mid-section horizontal divider using rounded-corner tee chars.
|
|
231
|
+
*
|
|
232
|
+
* @param width - Total display width (default: uses full width chars).
|
|
233
|
+
* @param color - When false, no ANSI codes are emitted.
|
|
234
|
+
*/
|
|
235
|
+
export function divider(width, color) {
|
|
236
|
+
const inner = Math.max(0, width - 2);
|
|
237
|
+
return ansiDim(ROUNDED.ml + ROUNDED.h.repeat(inner) + ROUNDED.mr, color);
|
|
238
|
+
}
|
|
239
|
+
// ---------------------------------------------------------------------------
|
|
240
|
+
// statusChip
|
|
241
|
+
// ---------------------------------------------------------------------------
|
|
242
|
+
/**
|
|
243
|
+
* Renders a small status chip: a colored dot + dim label.
|
|
244
|
+
*
|
|
245
|
+
* @param label - Text label.
|
|
246
|
+
* @param healthy - True → green dot, false → red dot.
|
|
247
|
+
* @param color - When false, no ANSI codes are emitted.
|
|
248
|
+
*/
|
|
249
|
+
export function statusChip(label, healthy, color) {
|
|
250
|
+
const dot = healthy
|
|
251
|
+
? ansiGreen('●', color) // ●
|
|
252
|
+
: ansiRed('●', color);
|
|
253
|
+
return `${dot} ${ansiDim(label, color)}`;
|
|
254
|
+
}
|
|
255
|
+
// ---------------------------------------------------------------------------
|
|
256
|
+
// headerBar
|
|
257
|
+
// ---------------------------------------------------------------------------
|
|
258
|
+
/**
|
|
259
|
+
* Renders a single line with `left` and `right` text separated by spaces to
|
|
260
|
+
* fill the given width.
|
|
261
|
+
*
|
|
262
|
+
* @param left - Left-aligned content (may include ANSI codes).
|
|
263
|
+
* @param right - Right-aligned content (may include ANSI codes).
|
|
264
|
+
* @param width - Total line width (default 70).
|
|
265
|
+
*/
|
|
266
|
+
export function headerBar(left, right, width = 70) {
|
|
267
|
+
const leftLen = visibleLength(left);
|
|
268
|
+
const rightLen = visibleLength(right);
|
|
269
|
+
const gap = Math.max(1, width - leftLen - rightLen);
|
|
270
|
+
return `${left}${' '.repeat(gap)}${right}`;
|
|
271
|
+
}
|
|
272
|
+
// ---------------------------------------------------------------------------
|
|
273
|
+
// prompt
|
|
274
|
+
// ---------------------------------------------------------------------------
|
|
275
|
+
/**
|
|
276
|
+
* Renders a styled prompt line.
|
|
277
|
+
*
|
|
278
|
+
* @param text - Prompt hint text (leading `>` is stripped if present).
|
|
279
|
+
* @param color - When false, no ANSI codes are emitted.
|
|
280
|
+
*/
|
|
281
|
+
export function prompt(text, color) {
|
|
282
|
+
const hint = text.replace(/^>\s*/, '');
|
|
283
|
+
const arrow = ansiCyan('>', color);
|
|
284
|
+
const body = ansiDim(hint, color);
|
|
285
|
+
return `${arrow} ${body}`;
|
|
286
|
+
}
|
|
287
|
+
// ---------------------------------------------------------------------------
|
|
288
|
+
// signalLine
|
|
289
|
+
// ---------------------------------------------------------------------------
|
|
290
|
+
/**
|
|
291
|
+
* Renders a one-line signal/log entry with a type icon.
|
|
292
|
+
*
|
|
293
|
+
* @param type - 'success' | 'warning' | 'info'
|
|
294
|
+
* @param text - Main message text.
|
|
295
|
+
* @param color - When false, no ANSI codes are emitted.
|
|
296
|
+
* @param meta - Optional dim metadata appended at the end.
|
|
297
|
+
*/
|
|
298
|
+
export function signalLine(type, text, color, meta) {
|
|
299
|
+
let icon;
|
|
300
|
+
switch (type) {
|
|
301
|
+
case 'success':
|
|
302
|
+
icon = ansiGreen('✓', color);
|
|
303
|
+
break; // ✓
|
|
304
|
+
case 'warning':
|
|
305
|
+
icon = ansiYellow('!', color);
|
|
306
|
+
break;
|
|
307
|
+
case 'info':
|
|
308
|
+
icon = ansiDim('·', color);
|
|
309
|
+
break; // ·
|
|
310
|
+
}
|
|
311
|
+
const metaStr = meta != null && meta.length > 0
|
|
312
|
+
? ' ' + ansiDim(meta, color)
|
|
313
|
+
: '';
|
|
314
|
+
return `${icon} ${text}${metaStr}`;
|
|
315
|
+
}
|
|
316
|
+
//# sourceMappingURL=tui.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tui.js","sourceRoot":"","sources":["../../src/ui/tui.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,8EAA8E;AAC9E,6BAA6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Eb,IAAI,IAAY,CAAC;IACjB,QAAQ,IAAI,EAAE,CAAC;QACb,KAAK,SAAS;YAAE,IAAI,GAAG,SAAS,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC;YAAE,MAAM,CAAE,IAAI;QAC3D,KAAK,SAAS;YAAE,IAAI,GAAG,UAAU,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC;YAAM,MAAM;QAC1D,KAAK,MAAM;YAAK,IAAI,GAAG,OAAO,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC;YAAI,MAAM,CAAE,IAAI;IAC7D,CAAC;IAED,MAAM,OAAO,GAAG,IAAI,IAAI,IAAI,IAAI,IAAI,CAAC,MAAM,GAAG,CAAC;QAC7C,CAAC,CAAC,IAAI,GAAG,OAAO,CAAC,IAAI,EAAE,KAAK,CAAC;QAC7B,CAAC,CAAC,EAAE,CAAC;IAEP,OAAO,GAAG,IAAI,KAAK,IAAI,GAAG,OAAO,EAAE,CAAC;AACtC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "myshell-tools",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.1.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"bin": {
|
|
6
6
|
"myshell-tools": "dist/cli.js",
|
|
@@ -17,6 +17,8 @@
|
|
|
17
17
|
"lint": "eslint src test",
|
|
18
18
|
"format": "prettier --check .",
|
|
19
19
|
"typecheck": "tsc --noEmit",
|
|
20
|
+
"knip": "knip",
|
|
21
|
+
"test:integration": "node --test \"test/integration/**/*.test.ts\"",
|
|
20
22
|
"clean": "node -e \"require('node:fs').rmSync('dist',{recursive:true,force:true})\"",
|
|
21
23
|
"prepublishOnly": "npm run clean && npm run build && npm run test"
|
|
22
24
|
},
|
|
@@ -45,6 +47,7 @@
|
|
|
45
47
|
"@types/node": "^20.0.0",
|
|
46
48
|
"c8": "^10.0.0",
|
|
47
49
|
"eslint": "^9.0.0",
|
|
50
|
+
"knip": "^6.14.2",
|
|
48
51
|
"prettier": "^3.0.0",
|
|
49
52
|
"typescript": "^5.0.0",
|
|
50
53
|
"typescript-eslint": "^8.0.0"
|
package/dist/core/index.d.ts
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* src/core/index.ts — public surface of the pure orchestration core.
|
|
3
|
-
*/
|
|
4
|
-
export { orchestrate } from './orchestrate.js';
|
|
5
|
-
export { classify } from './classify.js';
|
|
6
|
-
export { route } from './route.js';
|
|
7
|
-
export { assess } from './assess.js';
|
|
8
|
-
export { buildPrompt } from './prompt.js';
|
|
9
|
-
export { DEFAULT_POLICY } from './policy.js';
|
|
10
|
-
export { nextTierUp, pickReviewer } from './escalate.js';
|
|
11
|
-
export { buildReviewPrompt, parseReviewVerdict } from './review.js';
|
|
12
|
-
export type { ReviewVerdict } from './review.js';
|
|
13
|
-
export type { Tier, Risk, Classification, RouteDecision, Assessment, Clock, SessionEntry, SessionWriter, LedgerEntry, LedgerWriter, Policy, OrchestrateDeps, CoreEvent, } from './types.js';
|
package/dist/core/index.js
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* src/core/index.ts — public surface of the pure orchestration core.
|
|
3
|
-
*/
|
|
4
|
-
export { orchestrate } from './orchestrate.js';
|
|
5
|
-
export { classify } from './classify.js';
|
|
6
|
-
export { route } from './route.js';
|
|
7
|
-
export { assess } from './assess.js';
|
|
8
|
-
export { buildPrompt } from './prompt.js';
|
|
9
|
-
export { DEFAULT_POLICY } from './policy.js';
|
|
10
|
-
export { nextTierUp, pickReviewer } from './escalate.js';
|
|
11
|
-
export { buildReviewPrompt, parseReviewVerdict } from './review.js';
|
|
12
|
-
//# sourceMappingURL=index.js.map
|
package/dist/core/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/core/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC/C,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AACnC,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACrC,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC1C,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAC7C,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AACzD,OAAO,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC"}
|
package/dist/infra/index.d.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
export { acquireLock, releaseLock, withLock, atomicWrite, atomicAppendJSONL } from './atomic.js';
|
|
2
|
-
export type { LockOptions } from './atomic.js';
|
|
3
|
-
export { getModelPricing, calculateCost, getCheapestForTier, isPricingStale, PRICING_TABLE, } from './pricing.js';
|
|
4
|
-
export type { ModelPricing, PricingTable } from './pricing.js';
|
|
5
|
-
export { systemClock } from './clock.js';
|
|
6
|
-
export { getStateDir, getSessionsDir, getSessionFile, getLedgerFile } from './paths.js';
|
|
7
|
-
export { createSessionWriter, readSession } from './session.js';
|
|
8
|
-
export { createLedger, readLedger, summarizeLedger } from './ledger.js';
|
|
9
|
-
export type { ModelSummary, LedgerSummary } from './ledger.js';
|
package/dist/infra/index.js
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export { acquireLock, releaseLock, withLock, atomicWrite, atomicAppendJSONL } from './atomic.js';
|
|
2
|
-
export { getModelPricing, calculateCost, getCheapestForTier, isPricingStale, PRICING_TABLE, } from './pricing.js';
|
|
3
|
-
export { systemClock } from './clock.js';
|
|
4
|
-
export { getStateDir, getSessionsDir, getSessionFile, getLedgerFile } from './paths.js';
|
|
5
|
-
export { createSessionWriter, readSession } from './session.js';
|
|
6
|
-
export { createLedger, readLedger, summarizeLedger } from './ledger.js';
|
|
7
|
-
//# sourceMappingURL=index.js.map
|
package/dist/infra/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/infra/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,QAAQ,EAAE,WAAW,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAEjG,OAAO,EACL,eAAe,EACf,aAAa,EACb,kBAAkB,EAClB,cAAc,EACd,aAAa,GACd,MAAM,cAAc,CAAC;AAEtB,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AACzC,OAAO,EAAE,WAAW,EAAE,cAAc,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AACxF,OAAO,EAAE,mBAAmB,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAChE,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
export { classifyError, calculateBackoff, formatErrorMessage } from './errors.js';
|
|
2
|
-
export type { CliError, ErrorCategory, BackoffOptions } from './errors.js';
|
|
3
|
-
export { detectProvider, detectEnvironment, getInstallCommand } from './detect.js';
|
|
4
|
-
export type { ProviderStatus, EnvironmentStatus } from './detect.js';
|
|
5
|
-
export type { Provider, ProviderEvent, ProviderRequest, Usage, SandboxLevel, ProviderId, } from './port.js';
|
|
6
|
-
export { createClaudeProvider, toClaudeModelArg } from './claude.js';
|
|
7
|
-
export { parseClaudeLine } from './claude-parse.js';
|
|
8
|
-
export { createCodexProvider, toSandboxArg } from './codex.js';
|
|
9
|
-
export { createCodexParser } from './codex-parse.js';
|
package/dist/providers/index.js
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export { classifyError, calculateBackoff, formatErrorMessage } from './errors.js';
|
|
2
|
-
export { detectProvider, detectEnvironment, getInstallCommand } from './detect.js';
|
|
3
|
-
export { createClaudeProvider, toClaudeModelArg } from './claude.js';
|
|
4
|
-
export { parseClaudeLine } from './claude-parse.js';
|
|
5
|
-
export { createCodexProvider, toSandboxArg } from './codex.js';
|
|
6
|
-
export { createCodexParser } from './codex-parse.js';
|
|
7
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/providers/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AAElF,OAAO,EAAE,cAAc,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAUnF,OAAO,EAAE,oBAAoB,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AACrE,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,mBAAmB,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAC/D,OAAO,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC"}
|