@hyperwindmill/caretaker-cli 0.14.2 → 0.15.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.
@@ -0,0 +1,180 @@
1
+ import { loadConfig } from '../../store/json.js';
2
+ import { decrypt, isEncrypted } from '../../lib/encryption.js';
3
+ export function voiceClientConfig(config) {
4
+ const voice = config.voice;
5
+ if (!voice)
6
+ return null;
7
+ const out = {
8
+ enabled: voice.enabled === true,
9
+ configured: typeof voice.endpoint === 'string' && voice.endpoint.trim().length > 0,
10
+ canSpeak: typeof voice.ttsModel === 'string' && voice.ttsModel.trim().length > 0,
11
+ };
12
+ if (voice.lang)
13
+ out.lang = voice.lang;
14
+ return out;
15
+ }
16
+ /** Resolve the usable voice config, or a reason it cannot be used. Shared with
17
+ * voice_backend.ts so the two surfaces refuse for the same reasons, in the same
18
+ * words (the HTTP status is the caller's choice, the wording is not). */
19
+ export async function resolveVoice() {
20
+ const config = await loadConfig();
21
+ const voice = config.voice;
22
+ if (!voice || voice.enabled !== true) {
23
+ return { error: 'Voice mode is disabled. Enable it in Settings → Voice.' };
24
+ }
25
+ if (!voice.endpoint || voice.endpoint.trim().length === 0) {
26
+ return { error: 'No voice endpoint configured. Set one in Settings → Voice.' };
27
+ }
28
+ return { voice };
29
+ }
30
+ /** Resolve a key that may be stored encrypted (the settings form round-trips the
31
+ * stored blob, so what comes back from the view is not necessarily plaintext). */
32
+ function plainKey(apiKey) {
33
+ if (!apiKey)
34
+ return null;
35
+ return isEncrypted(apiKey) ? decrypt(apiKey) : apiKey;
36
+ }
37
+ export function voiceAuthHeaders(voice) {
38
+ const key = plainKey(voice.apiKey);
39
+ return key ? { authorization: `Bearer ${key}` } : {};
40
+ }
41
+ /** Join a base URL and a path without doubling or dropping the slash. */
42
+ function url(endpoint, suffix) {
43
+ return `${endpoint.replace(/\/+$/, '')}${suffix}`;
44
+ }
45
+ export function registerVoiceProxy(app) {
46
+ app.post('/api/voice/transcribe', async (c) => {
47
+ const resolved = await resolveVoice();
48
+ if ('error' in resolved)
49
+ return c.text(resolved.error, 503);
50
+ const { voice } = resolved;
51
+ if (!voice.sttModel)
52
+ return c.text('No transcription model configured.', 400);
53
+ const incoming = await c.req.formData();
54
+ const file = incoming.get('file');
55
+ if (!file)
56
+ return c.text('No audio uploaded (expected a "file" part).', 400);
57
+ const form = new FormData();
58
+ form.set('file', file);
59
+ form.set('model', voice.sttModel);
60
+ if (voice.lang)
61
+ form.set('language', voice.lang.split('-')[0]);
62
+ let upstream;
63
+ try {
64
+ upstream = await fetch(url(voice.endpoint, '/audio/transcriptions'), {
65
+ method: 'POST',
66
+ headers: voiceAuthHeaders(voice),
67
+ body: form,
68
+ });
69
+ }
70
+ catch (err) {
71
+ return c.text(`Could not reach the voice endpoint: ${err}`, 502);
72
+ }
73
+ // Propagate failures verbatim: with no validation button in the UI, a wrong
74
+ // model id must surface as the provider's own message.
75
+ if (!upstream.ok) {
76
+ return c.body(await upstream.arrayBuffer(), upstream.status, {
77
+ 'content-type': upstream.headers.get('content-type') ?? 'text/plain',
78
+ });
79
+ }
80
+ return c.body(await upstream.arrayBuffer(), 200, {
81
+ 'content-type': upstream.headers.get('content-type') ?? 'application/json',
82
+ });
83
+ });
84
+ app.post('/api/voice/speak', async (c) => {
85
+ const resolved = await resolveVoice();
86
+ if ('error' in resolved)
87
+ return c.text(resolved.error, 503);
88
+ const { voice } = resolved;
89
+ if (!voice.ttsModel)
90
+ return c.text('No synthesis model configured.', 400);
91
+ const { text } = await c.req.json();
92
+ if (!text || text.trim().length === 0)
93
+ return c.text('No text to speak.', 400);
94
+ const payload = { model: voice.ttsModel, input: text };
95
+ if (voice.ttsVoice)
96
+ payload.voice = voice.ttsVoice;
97
+ if (Number.isFinite(voice.ttsSpeed) && voice.ttsSpeed > 0) {
98
+ payload.speed = voice.ttsSpeed;
99
+ }
100
+ let upstream;
101
+ try {
102
+ upstream = await fetch(url(voice.endpoint, '/audio/speech'), {
103
+ method: 'POST',
104
+ headers: { ...voiceAuthHeaders(voice), 'content-type': 'application/json' },
105
+ body: JSON.stringify(payload),
106
+ });
107
+ }
108
+ catch (err) {
109
+ return c.text(`Could not reach the voice endpoint: ${err}`, 502);
110
+ }
111
+ if (!upstream.ok) {
112
+ return c.body(await upstream.arrayBuffer(), upstream.status, {
113
+ 'content-type': upstream.headers.get('content-type') ?? 'text/plain',
114
+ });
115
+ }
116
+ return c.body(await upstream.arrayBuffer(), 200, {
117
+ 'content-type': upstream.headers.get('content-type') ?? 'audio/mpeg',
118
+ });
119
+ });
120
+ }
121
+ /**
122
+ * Read a speech endpoint's installed models so the settings form can offer real
123
+ * choices instead of free text.
124
+ *
125
+ * Speaches reports `task` per model and embeds each TTS model's own voices — and
126
+ * those are correctly scoped, unlike the global /v1/audio/voices catalogue, which
127
+ * ignores its model_id parameter. A plain OpenAI-compatible endpoint reports
128
+ * neither, so every id is offered for both tasks and the voice stays free text.
129
+ */
130
+ export async function fetchVoiceCatalog(endpoint, apiKey) {
131
+ const key = plainKey(apiKey);
132
+ const res = await fetch(url(endpoint, '/models'), {
133
+ headers: key ? { authorization: `Bearer ${key}` } : {},
134
+ });
135
+ if (!res.ok) {
136
+ throw new Error(`${res.status} ${res.statusText}: ${(await res.text()).slice(0, 300)}`);
137
+ }
138
+ const body = (await res.json());
139
+ const rows = Array.isArray(body?.data) ? body.data : [];
140
+ const stt = [];
141
+ const tts = [];
142
+ const untasked = [];
143
+ for (const row of rows) {
144
+ if (!row || typeof row !== 'object')
145
+ continue;
146
+ const model = row;
147
+ if (typeof model.id !== 'string')
148
+ continue;
149
+ if (model.task === 'automatic-speech-recognition') {
150
+ stt.push(model.id);
151
+ continue;
152
+ }
153
+ if (model.task === 'text-to-speech') {
154
+ const voices = Array.isArray(model.voices) ? model.voices : [];
155
+ tts.push({
156
+ id: model.id,
157
+ voices: voices.flatMap((v) => {
158
+ const voice = v;
159
+ if (typeof voice.id !== 'string')
160
+ return [];
161
+ return [
162
+ {
163
+ id: voice.id,
164
+ ...(typeof voice.language === 'string' ? { language: voice.language } : {}),
165
+ ...(typeof voice.gender === 'string' ? { gender: voice.gender } : {}),
166
+ },
167
+ ];
168
+ }),
169
+ });
170
+ continue;
171
+ }
172
+ untasked.push(model.id);
173
+ }
174
+ // No task metadata anywhere: offer everything for both, voices unknown.
175
+ if (stt.length === 0 && tts.length === 0) {
176
+ return { stt: untasked, tts: untasked.map((id) => ({ id, voices: [] })) };
177
+ }
178
+ // Mixed: keep the untasked ids selectable for transcription, the likelier use.
179
+ return { stt: [...stt, ...untasked], tts };
180
+ }
@@ -18,6 +18,8 @@ export declare function containerName(projectId: number, taskId: number): string
18
18
  * ponytail: if an image lacks a matching /etc/passwd entry, set HOME=/tmp; tune when a real image needs it. */
19
19
  export declare function containerRunArgs(name: string, image: string, mountRoot: string, workdir: string, uid?: number, gid?: number, extraMounts?: string[]): string[];
20
20
  export declare function containerExecArgs(name: string, cwd: string, cmd: string): string[];
21
+ /** Returns 'running' | 'stopped' | 'absent' for a container name. */
22
+ export declare function containerState(name: string): Promise<'running' | 'stopped' | 'absent'>;
21
23
  /** Idempotent: reuse a running container of this name; recreate a stopped/absent one. */
22
24
  export declare function ensureContainer(name: string, image: string, mountRoot: string, workdir: string, extraMounts?: string[]): Promise<void>;
23
25
  /** True if `git` is on PATH inside the container. In-container git is
@@ -1 +1 @@
1
- {"version":3,"file":"docker.d.ts","sourceRoot":"","sources":["../../src/lib/docker.ts"],"names":[],"mappings":"AASA,4EAA4E;AAC5E,wBAAgB,aAAa,CAAC,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,MAAM,CAEvE;AAED;;;;;;;;;;;;;;;gHAegH;AAChH,wBAAgB,gBAAgB,CAC9B,IAAI,EAAE,MAAM,EACZ,KAAK,EAAE,MAAM,EACb,SAAS,EAAE,MAAM,EACjB,OAAO,EAAE,MAAM,EACf,GAAG,CAAC,EAAE,MAAM,EACZ,GAAG,CAAC,EAAE,MAAM,EACZ,WA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EACX,SAAS,EAAE,MAAM,EACjB,MAAM,CAAC,EAAE,WAAW,GACnB,OAAO,CAAC;IAAE,QAAQ,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,CAAC,CAc/C;AAED,wBAAsB,eAAe,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAEjE;AAED,6DAA6D;AAC7D,wBAAsB,gBAAgB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAErE;AAED;;qFAEqF;AACrF,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAEvD;AAED;;2DAE2D;AAC3D,wBAAsB,UAAU,CAC9B,cAAc,EAAE,MAAM,EACtB,UAAU,EAAE,MAAM,EAClB,GAAG,EAAE,MAAM,GACV,OAAO,CAAC,IAAI,CAAC,CAWf;AAKD,eAAO,MAAM,uBAAuB,ojBAYnC,CAAC;AAEF,wBAAgB,oBAAoB,CAClC,SAAS,EAAE,MAAM,EACjB,OAAO,EAAE,MAAM,EACf,cAAc,EAAE,MAAM,GACrB,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAWzB;AAED;;;;;;wFAMwF;AACxF,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,EAAE,CAY5D"}
@@ -42,7 +42,7 @@ export function containerExecArgs(name, cwd, cmd) {
42
42
  return ['exec', '-w', cwd, name, 'sh', '-lc', cmd];
43
43
  }
44
44
  /** Returns 'running' | 'stopped' | 'absent' for a container name. */
45
- async function containerState(name) {
45
+ export async function containerState(name) {
46
46
  try {
47
47
  const { stdout } = await exec('docker', ['inspect', '-f', '{{.State.Running}}', name], {
48
48
  env: commandEnv(),
@@ -1 +1 @@
1
- {"version":3,"file":"json.d.ts","sourceRoot":"","sources":["../../src/store/json.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,WAAW,EAAE,eAAe,EAAE,cAAc,EAAE,WAA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nC;AACD,wBAAgB,WAAW,IAAI,MAAM,CAEpC;AACD,wBAAgB,cAAc,IAAI,MAAM,CAEvC;AAED,eAAO,MAAM,aAAa,EAAE,eAG3B,CAAC;AAqDF,wBAAsB,UAAU,IAAI,OAAO,CAAC,eAAe,CAAC,CAE3D;AAED,wBAAsB,UAAU,CAAC,CAAC,EAAE,eAAe,GAAG,OAAO,CAAC,IAAI,CAAC,CAclE;AAED,wBAAsB,UAAU,IAAI,OAAO,CAAC,WAAW,EAAE,CAAC,CAEzD;AAED,wBAAsB,UAAU,CAAC,CAAC,EAAE,WAAW,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC,CAEhE;AAED,wBAAsB,WAAW,IAAI,OAAO,CAAC,WAAW,CAAC,CASxD;AAED,wBAAsB,WAAW,CAAC,IAAI,EAAE,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC,CAElE;AAMD,wBAAsB,cAAc,IAAI,OAAO,CAAC,cAAc,CAAC,CAO9D;AAED,wBAAsB,cAAc,CAAC,IAAI,EAAE,cAAc,GAAG,OAAO,CAAC,IAAI,CAAC,CAExE;AAID;;;GAGG;AACH,wBAAsB,kBAAkB,CAAC,CAAC,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC,CAO5E"}
@@ -88,6 +88,9 @@ export async function saveConfig(c) {
88
88
  }
89
89
  }
90
90
  }
91
+ if (c.voice?.apiKey && !isEncrypted(c.voice.apiKey)) {
92
+ c.voice.apiKey = encrypt(c.voice.apiKey);
93
+ }
91
94
  await writeJson(configPath(), c);
92
95
  }
93
96
  export async function loadAgents() {
@@ -1 +1 @@
1
- {"version":3,"file":"logo.d.ts","sourceRoot":"","sources":["../../src/tui/logo.tsx"],"names":[],"mappings":"AAQA,MAAM,CAAC,OAAO,UAAU,IAAI,4CAe3B"}
1
+ {"version":3,"file":"logo.d.ts","sourceRoot":"","sources":["../../src/tui/logo.tsx"],"names":[],"mappings":"AAkBA,MAAM,CAAC,OAAO,UAAU,IAAI,4CAe3B"}
package/dist/tui/logo.js CHANGED
@@ -2,9 +2,18 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { readFileSync } from 'node:fs';
3
3
  import { fileURLToPath } from 'node:url';
4
4
  import { Box, Text } from 'ink';
5
- import BigText from 'ink-big-text';
6
5
  const ANS_PATH = fileURLToPath(new URL('../../assets/logo.ans', import.meta.url));
7
6
  const LOGO_ANS = readFileSync(ANS_PATH, 'utf8');
7
+ // Static banner (figlet "ANSI Shadow", MIT) embedded at authoring time.
8
+ // This used to be ink-big-text at runtime, but that pulls in cfonts, which is
9
+ // GPL-3.0 — not shippable inside the FSL-licensed Electron installers. A
10
+ // banner never changes; it does not need a rendering library in the prod tree.
11
+ const WORDMARK = ` ██████╗ █████╗ ██████╗ ███████╗████████╗ █████╗ ██╗ ██╗███████╗██████╗
12
+ ██╔════╝██╔══██╗██╔══██╗██╔════╝╚══██╔══╝██╔══██╗██║ ██╔╝██╔════╝██╔══██╗
13
+ ██║ ███████║██████╔╝█████╗ ██║ ███████║█████╔╝ █████╗ ██████╔╝
14
+ ██║ ██╔══██║██╔══██╗██╔══╝ ██║ ██╔══██║██╔═██╗ ██╔══╝ ██╔══██╗
15
+ ╚██████╗██║ ██║██║ ██║███████╗ ██║ ██║ ██║██║ ██╗███████╗██║ ██║
16
+ ╚═════╝╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝ ╚═╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝`;
8
17
  export default function Logo() {
9
- return (_jsxs(Box, { flexDirection: "row", alignItems: "center", borderStyle: "round", borderColor: "#1FA3E5", paddingX: 1, children: [_jsx(Box, { marginRight: 2, children: _jsx(Text, { children: LOGO_ANS }) }), _jsx(BigText, { text: "caretaker", font: "block", colors: ['#1FA3E5'], letterSpacing: 0, space: false })] }));
18
+ return (_jsxs(Box, { flexDirection: "row", alignItems: "center", borderStyle: "round", borderColor: "#1FA3E5", paddingX: 1, children: [_jsx(Box, { marginRight: 2, children: _jsx(Text, { children: LOGO_ANS }) }), _jsx(Text, { color: "#1FA3E5", children: WORDMARK })] }));
10
19
  }
@@ -1721,6 +1721,12 @@ body.vscode-light .settings-panel__tab-btn--active {
1721
1721
  .input-with-action button {
1722
1722
  flex-shrink: 0;
1723
1723
  }
1724
+ .voice-backend-status {
1725
+ display: flex;
1726
+ align-items: center;
1727
+ justify-content: space-between;
1728
+ gap: var(--spacing-sm);
1729
+ }
1724
1730
  .chips-container-vertical {
1725
1731
  display: flex;
1726
1732
  flex-direction: column;
@@ -2733,4 +2739,47 @@ body.vscode-light .composer__attachment {
2733
2739
  .task-view__project-filter:hover {
2734
2740
  border-color: var(--vscode-inputOption-activeBorder, var(--accent-cyan, #22d3ee));
2735
2741
  }
2742
+ .composer__voice {
2743
+ display: flex;
2744
+ align-items: center;
2745
+ gap: 4px;
2746
+ }
2747
+ .composer__voice-mode {
2748
+ font-size: 11px;
2749
+ padding: 2px 4px;
2750
+ background: transparent;
2751
+ color: inherit;
2752
+ border: 1px solid rgba(127, 127, 127, 0.3);
2753
+ border-radius: 4px;
2754
+ }
2755
+ .composer__voice-mode option {
2756
+ background: var(--vscode-dropdown-background, #252526);
2757
+ color: var(--vscode-dropdown-foreground, #cccccc);
2758
+ }
2759
+ .composer__voice-status {
2760
+ font-size: 11px;
2761
+ opacity: 0.7;
2762
+ min-width: 74px;
2763
+ }
2764
+ .composer__action-btn--recording {
2765
+ color: #e5484d;
2766
+ animation: composer-voice-pulse 1.4s ease-in-out infinite;
2767
+ }
2768
+ .composer__action-btn--speaking {
2769
+ animation: composer-voice-pulse 1.4s ease-in-out infinite;
2770
+ }
2771
+ @keyframes composer-voice-pulse {
2772
+ 0%, 100% {
2773
+ opacity: 1;
2774
+ }
2775
+ 50% {
2776
+ opacity: 0.45;
2777
+ }
2778
+ }
2779
+ .form-save-state {
2780
+ margin-left: 10px;
2781
+ font-size: 12px;
2782
+ opacity: 0.75;
2783
+ align-self: center;
2784
+ }
2736
2785
  /*# sourceMappingURL=standalone.css.map */