Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
63 commits
Select commit Hold shift + click to select a range
aca94c4
test(transcription): send OpenAI diarization no part over 1400 s
chhoumann Nov 13, 2026
217b040
fix(transcription): cap OpenAI diarization chunks at 1400 s
chhoumann Nov 13, 2026
61c8c52
test(transcription): send a rejected OpenAI request once
chhoumann Nov 13, 2026
44947b5
fix(transcription): send a rejected OpenAI request once
chhoumann Nov 13, 2026
a9a3b07
fix(transcription): keep OpenAI diarization requests inside the timeout
chhoumann Nov 13, 2026
6958e09
test(credentials): pin key handling a credentials table will derive
chhoumann Nov 13, 2026
ff81dbd
refactor(credentials): derive API key handling from one table
chhoumann Nov 13, 2026
f128d4c
refactor(transcription): keep the speaker label format in the renderer
chhoumann Nov 13, 2026
6887b5a
feat(transcription): add one engine for transcription providers
chhoumann Nov 13, 2026
42b55a3
feat(transcription): transcribe through the engine with current models
chhoumann Nov 13, 2026
2f9cd67
test(verify): answer OpenAI and Deepgram as the engine reads them
chhoumann Nov 13, 2026
989185f
test(e2e): read the abort rejection through waitForLifecycle
chhoumann Nov 13, 2026
7d46678
fix(transcription): stop sooner after an abort or a long Retry-After
chhoumann Nov 13, 2026
d34a410
Merge remote-tracking branch 'origin/refactor/credentials-table' into…
chhoumann Nov 13, 2026
fcb830e
refactor(transcription): name providers from the credentials table
chhoumann Nov 13, 2026
f79a09a
feat(transcription): choose the provider and model in settings
chhoumann Nov 13, 2026
e1e9b29
feat(transcription): add ElevenLabs Scribe v3 and make it the default
chhoumann Nov 13, 2026
0b796cf
test(e2e): transcribe through the provider the settings choose
chhoumann Nov 13, 2026
b31e544
test(verify): answer ElevenLabs as the engine reads it
chhoumann Nov 13, 2026
8cae654
refactor(settings): read the provider and speaker labels through the …
chhoumann Nov 13, 2026
77201f7
test(settings): find the Transcripts rows by role and name
chhoumann Nov 13, 2026
19a96c5
build(size): raise the gzip budget by the 866 bytes the provider sett…
chhoumann Nov 13, 2026
4c09afa
fix(settings): export Deepgram to 2.24.0 importers only for a Deepgra…
chhoumann Nov 14, 2026
1eef3e6
fix(settings): let speaker labels be turned off for a model without them
chhoumann Nov 14, 2026
ccc2439
test(transcription): name a provider no PodNotes plans as the unknown…
chhoumann Nov 14, 2026
4b18cee
feat(transcription): transcribe with OpenRouter
chhoumann Nov 14, 2026
cb3b63d
feat(transcription): say when speaker labels are missing or restart a…
chhoumann Nov 14, 2026
d9886c9
feat(transcription): offer only the OpenRouter models its catalog sti…
chhoumann Nov 14, 2026
bfe28e5
test(e2e): transcribe through OpenRouter's Scribe v2 and Grok STT 2.0
chhoumann Nov 14, 2026
9764051
test(verify): answer OpenRouter and its model catalog as the engine r…
chhoumann Nov 14, 2026
a844ca7
build(size): raise the gzip budget by the 1,296 bytes OpenRouter meas…
chhoumann Nov 14, 2026
c46f215
fix(transcription): time words in a later part to the millisecond
chhoumann Nov 14, 2026
23a4d86
fix(transcription): ask OpenRouter for word times and upload when it …
chhoumann Nov 14, 2026
4b94a94
test(transcription): number each voice once across the parts of an ep…
chhoumann Nov 14, 2026
cefa1fe
feat(transcription): one speaker label per voice across the parts of …
chhoumann Nov 14, 2026
8b82f9a
build(size): raise the gzip budget by the 808 bytes the speaker reel …
chhoumann Nov 14, 2026
5eebf37
test(verify): hear Grok's MP3 uploads, so the speaker reel answers as…
chhoumann Nov 14, 2026
3cbd5d1
fix(transcription): name the model that does not label speakers
chhoumann Nov 14, 2026
df8361b
test(transcription): Voxtral Mini Transcribe 3 and Qwen3 ASR on OpenR…
chhoumann Nov 14, 2026
7e62c77
feat(transcription): offer Voxtral Mini Transcribe 3 and Qwen3 ASR on…
chhoumann Nov 14, 2026
0b032d8
test(e2e): Voxtral Mini Transcribe 3 and Qwen3 ASR upload as multipar…
chhoumann Nov 14, 2026
41089b7
build(size): raise the gzip budget by the 211 bytes Voxtral and Qwen3…
chhoumann Nov 14, 2026
979f2bb
test(verify): answer Voxtral Mini Transcribe 3 and Qwen3 ASR as they …
chhoumann Nov 14, 2026
7d08923
feat(network): let a request reach a private host when the caller asks
chhoumann Nov 14, 2026
8842b6c
fix(transcription): punctuate Qwen3 ASR words from its text
chhoumann Nov 14, 2026
92b5a19
build(size): raise the gzip budget by the 100 bytes Qwen3 ASR punctua…
chhoumann Nov 14, 2026
947f917
docs(transcripts): capture provider, model and transcript note screen…
chhoumann Nov 14, 2026
6931423
docs(transcripts): choose a provider, set up keys and read transcripts
chhoumann Nov 14, 2026
444938f
feat(transcription): transcribe with any OpenAI-compatible server
chhoumann Nov 14, 2026
325c115
test(e2e): transcribe through an OpenAI-compatible server on this mac…
chhoumann Nov 14, 2026
ed3bfa4
test(verify): serve an OpenAI-compatible transcription route from the…
chhoumann Nov 14, 2026
0140c5f
build(size): raise both budgets by the bytes the OpenAI-compatible pr…
chhoumann Nov 14, 2026
4b04909
Merge branch 'feat/transcription-openrouter-models' into feat/transcr…
chhoumann Nov 14, 2026
c78a331
fix(transcription): read verbose_json one way and fall back to json o…
chhoumann Nov 14, 2026
3fe2dab
build(size): set both budgets to the merged branch's size plus the ke…
chhoumann Nov 14, 2026
8997d44
fix(transcription): join Whisper word pieces back into words
chhoumann Nov 14, 2026
a891aa0
Merge remote-tracking branch 'origin/feat/transcription-openai-compat…
chhoumann Nov 14, 2026
6b374af
docs(transcripts): document OpenAI-compatible server and new OpenRout…
chhoumann Nov 14, 2026
a96df75
docs(transcripts): state only what the code shows about models and se…
chhoumann Nov 14, 2026
1934a51
Merge remote-tracking branch 'origin/master' into docs/transcription-…
chhoumann Nov 17, 2026
7bc0d55
docs(transcripts): describe 2.25.0 as released
chhoumann Nov 17, 2026
49c7c74
docs(transcripts): qualify uploads, speaker numbers, retries and the …
chhoumann Nov 17, 2026
7060f8f
docs(transcripts): note Scribe v2's 30-minute URL limit and which for…
chhoumann Nov 17, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
47 changes: 30 additions & 17 deletions .claude/skills/verify/net.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -74,12 +74,10 @@ async function evaluate(code) {
return output.slice(3);
}

const WATCH = `(() => {
/** @param {[number, number, string][]} turns */
const watchSource = (turns) => `(() => {
const previous = window.__podnotesVerifyNet;
if (previous) {
previous.entries.length = 0;
return "reset";
}
if (previous) previous.restore();
const entries = [];
// Other hosts log only their origin, because a private feed's path can hold its token.
const pathHosts = new Set(${jsLiteral(PATH_HOSTS)});
Expand All @@ -91,32 +89,39 @@ const WATCH = `(() => {
return "(unparsable URL)";
}
};
const text = ${jsLiteral(FIXTURE_TRANSCRIPTION)};
// Deepgram's words: one every 0.4 s, the reply 12 s in from a second speaker.
const turns = ${jsLiteral(turns)};
const text = turns[0][2];
const fullText = turns.map(([, , line]) => line).join(" ");
// Deepgram's words: one every 0.4 s for each turn.
const words = (sentence, speaker, from) => sentence.split(" ").map((word, index) => ({
word: word.toLowerCase().replace(/[^a-z]/g, ""),
punctuated_word: word,
start: from + index * 0.4,
end: from + index * 0.4 + 0.3,
speaker,
}));
const reply = ${jsLiteral(FIXTURE_REPLY)};
const deepgram = { results: { channels: [{ alternatives: [{ words: [...words(text, 0, 0), ...words(reply, 1, 12)] }] }] } };
const deepgram = { results: { channels: [{ alternatives: [{ words: turns.flatMap(([from, speaker, line]) => words(line, speaker, from)) }] }] } };
// ElevenLabs' words, at the same times, with a spacing item between each two.
const scribeWords = (sentence, speaker, from) => words(sentence, speaker, from).flatMap(({ punctuated_word, start, end }, index) => {
const word = { text: punctuated_word, type: "word", start, end, speaker_id: "speaker_" + speaker };
return index === 0 ? [word] : [{ text: " ", type: "spacing", start, end: start, speaker_id: word.speaker_id }, word];
});
const elevenlabs = { language_code: "eng", text: text + " " + reply, words: [...scribeWords(text, 0, 0), ...scribeWords(reply, 1, 12)] };
const elevenlabs = { language_code: "eng", text: fullText, words: turns.flatMap(([from, speaker, line]) => scribeWords(line, speaker, from)) };
// OpenRouter's verbose_json words, at the same times, with numbered speakers.
const openRouterWords = (sentence, speaker, from) => words(sentence, speaker, from).map(({ punctuated_word, start, end }) => ({ word: punctuated_word, start, end, speaker, speaker_label: "speaker_" + speaker, confidence: 0.99 }));
const openrouter = { text: text + " " + reply, words: [...openRouterWords(text, 0, 0), ...openRouterWords(reply, 1, 12)] };
const openrouter = { text: fullText, words: turns.flatMap(([from, speaker, line]) => openRouterWords(line, speaker, from)) };
// Voxtral times segments and refuses word times; Qwen3 ASR times words and labels no speaker.
const plainOpenRouter = {
"mistralai/voxtral-mini-transcribe-3-0": (form) =>
form.has("timestamp_granularities[]")
? Promise.reject({ status: 400, json: { error: { message: "Provider returned 400", code: 400 } } })
: { text: openrouter.text, segments: [{ id: 0, start: 0, end: 2.7, text: " " + text }, { id: 1, start: 12, end: 13.5, text: " " + reply }] },
: {
text: openrouter.text,
segments: turns.map(([from, , line], id) => {
const turnWords = words(line, 0, from);
return { id, start: from, end: Math.round(turnWords[turnWords.length - 1].end * 10) / 10, text: " " + line };
}),
},
"qwen/qwen3-asr-1.7b": () => ({ text: openrouter.text, words: openrouter.words.map(({ word, start, end }) => ({ word, start, end })) }),
};
const openrouterCatalog = { data: ${jsLiteral(OPENROUTER_MODELS)}.map((id) => ({ id, expiration_date: null })) };
Expand Down Expand Up @@ -209,7 +214,7 @@ const WATCH = `(() => {
return originalSend.call(ipc, channel, replyChannel, request, ...rest);
};
window.__podnotesVerifyNet = { entries, restore: () => { window.fetch = originalFetch; ipc.send = originalSend; } };
return "watching";
return previous ? "reset" : "watching";
})()`;

const LOG = `JSON.stringify(window.__podnotesVerifyNet?.entries ?? null)`;
Expand All @@ -220,15 +225,23 @@ const UNWATCH = `(() => {
return "restored";
})()`;

const [verb] = process.argv.slice(2);
/** @type {[number, number, string][]} */
const DEFAULT_TURNS = [
[0, 0, FIXTURE_TRANSCRIPTION],
[12, 1, FIXTURE_REPLY],
];

const [verb, flag, value] = process.argv.slice(2);
try {
if (verb === "watch") console.log(await evaluate(WATCH));
else if (verb === "log") {
if (verb === "watch") {
const turns = flag === "--turns" && value ? JSON.parse(value) : DEFAULT_TURNS;
console.log(await evaluate(watchSource(turns)));
} else if (verb === "log") {
const entries = JSON.parse(await evaluate(LOG));
if (entries === null) throw new Error("Not watching: run net.mjs watch first.");
for (const entry of entries) console.log(JSON.stringify(entry));
} else if (verb === "unwatch") console.log(await evaluate(UNWATCH));
else throw new Error("Usage: net.mjs watch | log | unwatch");
else throw new Error("Usage: net.mjs watch [--turns <json>] | log | unwatch");
} catch (error) {
console.error(error instanceof Error ? error.message : String(error));
process.exitCode = 1;
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/public/screenshots/openrouter-models.webp
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/public/screenshots/transcript-note.webp
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
18 changes: 18 additions & 0 deletions docs/screenshots/seed.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,5 +45,23 @@
"demo": {
"at": 2287,
"note": "Opportunity cost is a man at the door with two keys. Use it in the talk."
},
"transcript": {
"podcast": "Slow Thinking",
"title": "Walking as thinking",
"turns": [
[
0,
0,
"Why do so many writers say the sentence only came together once they stood up from the desk?"
],
[
8,
1,
"At a desk your eyes stay fixed on the page, and the argument narrows to whatever is already in front of you."
],
[19, 0, "And ten minutes into a walk, the knot comes undone on its own."],
[25, 1, "Your pace gives the thought a rhythm, without asking you to finish it yet."]
]
}
}
Loading
Loading