sleev 0.0.12 → 0.0.15

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/providers.js DELETED
@@ -1,30 +0,0 @@
1
- // Provider registry owns Sleev support metadata shared across harness adapters.
2
- export const PROVIDERS = [
3
- { id: 'openai', label: 'OpenAI' },
4
- { id: 'anthropic', label: 'Anthropic' },
5
- {
6
- id: 'opencode',
7
- label: 'OpenCode Zen',
8
- models: [
9
- 'claude-sonnet-4-5',
10
- 'claude-sonnet-4-6',
11
- 'claude-opus-4-5',
12
- 'claude-opus-4-6',
13
- 'claude-opus-4-7',
14
- 'gpt-5.3-codex',
15
- 'gpt-5.3-codex-spark',
16
- 'gpt-5.4',
17
- 'gpt-5.4-mini',
18
- 'gpt-5.4-nano',
19
- 'gpt-5.4-pro',
20
- 'gpt-5.5',
21
- 'gpt-5.5-pro',
22
- ],
23
- },
24
- ];
25
- export function provider(id) {
26
- const value = PROVIDERS.find((item) => item.id === id);
27
- if (!value)
28
- throw new Error(`Unsupported provider: ${id}`);
29
- return value;
30
- }
package/dist/terminal.js DELETED
@@ -1,55 +0,0 @@
1
- // Terminal presentation helpers keep command output consistent without deps.
2
- const styles = {
3
- accent: ['\x1b[36m', '\x1b[39m'],
4
- bold: ['\x1b[1m', '\x1b[22m'],
5
- dim: ['\x1b[2m', '\x1b[22m'],
6
- good: ['\x1b[32m', '\x1b[39m'],
7
- bad: ['\x1b[31m', '\x1b[39m'],
8
- };
9
- export function brand(output) {
10
- line(output, paint(output, 'accent', 'sleev'));
11
- line(output);
12
- }
13
- export function step(output, text) {
14
- line(output, `${paint(output, 'accent', '>')} ${text}`);
15
- }
16
- export function success(output, text) {
17
- line(output, `${paint(output, 'good', 'OK')} ${text}`);
18
- }
19
- export function failure(output, text) {
20
- line(output, `${paint(output, 'bad', 'ERR')} ${text}`);
21
- }
22
- export function note(output, text) {
23
- line(output, paint(output, 'dim', text));
24
- }
25
- export function field(output, name, value) {
26
- line(output, ` ${paint(output, 'dim', name.padEnd(10))} ${value}`);
27
- }
28
- export function choice(output, label, active) {
29
- if (!active)
30
- return ` ${label}`;
31
- return `${paint(output, 'accent', '>')} ${paint(output, 'bold', label)}`;
32
- }
33
- export function prompt(output, text) {
34
- return `${paint(output, 'accent', '?')} ${text} `;
35
- }
36
- export function inlineCode(output, value) {
37
- return paint(output, 'bold', value);
38
- }
39
- export function line(output, text = '') {
40
- output.write(`${text}\n`);
41
- }
42
- function paint(output, style, text) {
43
- if (!color(output))
44
- return text;
45
- const [open, close] = styles[style];
46
- return `${open}${text}${close}`;
47
- }
48
- function color(output) {
49
- const stream = output;
50
- if (process.env.NO_COLOR)
51
- return false;
52
- if (process.env.FORCE_COLOR && process.env.FORCE_COLOR !== '0')
53
- return true;
54
- return stream.isTTY === true;
55
- }