Voice-to-text dictation app with local (Nvidia Parakeet/Whisper) and cloud models (BYOK). Privacy-first and available cross-platform.
JavaScript aianthropiccross-platformgeminigroqlinuxmacosnvidiaopen-sourceopenaiparakeetspeech-to-texttranscribewhisperwindows
chore: remove scratch files committed by mistake
Gabriel Stein62ab2d3e4339
diff --git a/probe.mjs b/probe.mjsdeleted file mode 100644index 2a7fd2952..000000000--- a/probe.mjs+++ /dev/null@@ -1,49 +0,0 @@-import { isSecureEndpoint } from "./src/utils/urlUtils.ts";-const cases = [- // must be REJECTED (public hosts that used to sneak through)- ["http://127.example.com/v1", false],- ["http://10.example.com/v1", false],- ["http://192.168.example.com/v1", false],- ["http://172.16.example.com/v1", false],- ["http://100.64.example.com/v1", false],- ["http://169.254.example.com/v1", false],- ["http://127.0.0.1.nip.io/v1", false],- ["http://0.0.0.0.evil.com/v1", false],- // must stay ALLOWED- ["http://127.0.0.1:5000", true],- ["http://localhost:8080", true],- ["http://0.0.0.0:1234", true],- ["http://10.0.0.5:8080", true],- ["http://192.168.1.10:1234", true],- ["http://172.16.0.1:1234", true],- ["http://172.31.255.255:1234", true],- ["http://100.64.0.1:8080", true],- ["http://169.254.1.1:80", true],- ["http://myhost.local:1234", true],- ["http://[::1]:8080", true],- ["http://[fd00::1]:8080", true],- ["http://[fe80::1]:8080", true],- ["https://api.openai.com/v1", true],- // boundary: NOT private, must require https- ["http://172.15.0.1:1234", false],- ["http://172.32.0.1:1234", false],- ["http://100.63.0.1:1234", false],- ["http://100.128.0.1:1234", false],- ["http://11.0.0.1:1234", false],- ["http://126.0.0.1:1234", false],- ["http://128.0.0.1:1234", false],- // abbreviated / alternate literals WHATWG normalises- ["http://127.1", true],- ["http://2130706433", true],- ["http://0x7f000001", true],- ["http://010.0.0.1", true],-];-let bad = 0;-for (const [url, want] of cases) {- let got;- try { got = isSecureEndpoint(url); } catch (e) { got = "THREW " + e.message; }- const ok = got === want;- if (!ok) bad++;- console.log(`${ok ? "ok " : "FAIL"} ${String(got).padEnd(5)} (want ${want}) ${url}`);-}-console.log(bad ? `\n${bad} MISMATCHES` : "\nall as expected");diff --git a/probe2.mjs b/probe2.mjsdeleted file mode 100644index f96e9d4fa..000000000--- a/probe2.mjs+++ /dev/null@@ -1,13 +0,0 @@-// After /^(0|[1-9]\d{0,2})$/, can Number(part) ever be a non-integer or negative?-const re = /^(0|[1-9]\d{0,2})$/;-let nonInt = 0, neg = 0, over = 0, n = 0;-for (let i = 0; i < 1000; i++) {- const s = String(i);- if (!re.test(s)) continue;- n++;- const v = Number(s);- if (!Number.isInteger(v)) nonInt++;- if (v < 0) neg++;- if (v > 255) over++;-}-console.log({ matched: n, nonInteger: nonInt, negative: neg, over255: over });