Skip to content

v0.2.0 — pi 1.7.0

Latest

Choose a tag to compare

@smixs smixs released this 30 Nov 05:02
· 2 commits to main since this release
  • 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_KEY or OPENAI_STT_API_KEY_FILE, OPENAI_STT_MODEL,
    PI_STT_LANGUAGE) first, Deepgram as the fallback; DEEPGRAM_MODEL picks the Deepgram model. A failed download
    is retried once, then the voiceFallback hooks 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 follow PI_TIMEZONE (default UTC); the owner's own messages are labelled with PI_HISTORY_OWNER (default
    owner).

  • helper starts a background job and returns its ID. Each result, error or interruption arrives as a new input in the calling chat. /stop and 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's SubmissionSettled signal 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 (phase legacy). A version-2 task cannot be run by an older release.

  • New built-in plugin approval: an ask_approval tool sends a question with two buttons and parks (pi-durable tool park on the tg.approval signal, no worker held) until a tap, a typed reply or PI_APPROVAL_TIMEOUT_MINUTES (default 60). Plugins get ctx.telegram (the channel's port and rich mode). New document tg.approval-pending.

  • Images over the model's limits are fitted instead of refused: read of 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's fit-images extension fits images in every other tool result (MCP tools, plugins) before they are stored. Without the processor the old error stays.

  • /stop no longer drops a message that was steered into the run it stops: the message is submitted again and answered after the stop (tg.stop-resume document). Queued messages already stayed.