Repository navigation
-
Built on pi 1.7.0: every Earendil package moves from 1.5.0 to exactly 1.7.0. The first start migrates the
database (tool and generation task records); an older release cannot open it again, so stop the service and back
up the data directory first. The OAuth rotation retry patch (INF-18) is retargeted to pi-durable 1.7.0. -
Channel hooks: a plugin registers the owner's own answer rules with
ctx.channel(hooks), kept outside this package
so an upgrade never erases them:choicesGuide(replaces the buttons guidance in the prompt),checkAnswer(one
rewrite request before anything is sent),keepQuiet(keep an answer unsent),prepareAnswer(rewrite rich
Markdown; a line===PART===starts a new message),previewText: false,voiceFallback. See docs/hooks.md. -
Voice: OpenAI transcription (
OPENAI_STT_API_KEYorOPENAI_STT_API_KEY_FILE,OPENAI_STT_MODEL,
PI_STT_LANGUAGE) first, Deepgram as the fallback;DEEPGRAM_MODELpicks the Deepgram model. A failed download
is retried once, then thevoiceFallbackhooks are asked. -
A tap on a button outside any row disables only its group of button lines, so a message may ask several questions
with loose buttons. -
New built-in plugin
history(history_search,history_open) over the durable store, with its own index file.
Dates followPI_TIMEZONE(default UTC); the owner's own messages are labelled withPI_HISTORY_OWNER(default
owner). -
helperstarts a background job and returns its ID. Each result, error or interruption arrives as a new input in the calling chat./stopand the draft stop button end only the active turn. -
The helper task (
tg.helper, now version 2) admits its job and sleeps on pi-durable'sSubmissionSettledsignal in one commit: it holds no invocation while the helper works and needs no waiter after a restart. A version-1 helper caught mid-flight by the upgrade finishes the old way (phaselegacy). A version-2 task cannot be run by an older release. -
New built-in plugin
approval: anask_approvaltool sends a question with two buttons and parks (pi-durable tool park on thetg.approvalsignal, no worker held) until a tap, a typed reply orPI_APPROVAL_TIMEOUT_MINUTES(default 60). Plugins getctx.telegram(the channel's port and rich mode). New documenttg.approval-pending. -
Images over the model's limits are fitted instead of refused:
readof a large photo or screenshot attaches a downscaled copy made by pi-durable's Photon processor (WebAssembly, in a worker thread; no native dependency), cached per file; the file is not changed. pi-durable'sfit-imagesextension fits images in every other tool result (MCP tools, plugins) before they are stored. Without the processor the old error stays. -
/stopno longer drops a message that was steered into the run it stops: the message is submitted again and answered after the stop (tg.stop-resumedocument). Queued messages already stayed.