10 Commits
Author SHA1 Message Date
waozi 8566e4cf1b Relay signed owner Lumi developer turns 2026-11-18 22:41:51 -03:00
waozi 35159302be Rename Daochi to Mesh with compatible state and deployment migrations 2026-11-17 14:57:07 -03:00
waozi fa98f4f6d2 Quote each feedback reply's report title for apps
Apps show a developer's reply like a chat reply, quoting the feedback it
answers. The replies page now carries the report's title (still without
its message or diagnostics) for the single reply and for added replies.

Also bring testdata/package_paths.json up to date with the history asset
described in c80d978, which the OpenAPI baseline test compares.
2026-10-18 22:33:10 -03:00
waozi bbf655ddae Let a feedback report carry several developer replies
A developer reply replaced the report's single reply, so a second reply
overwrote the first and apps that had shown the first never showed the
second. A reply sent with its own 64-character reply_id is now added
beside the report's earlier replies in a new table, and retrying the same
reply_id and text adds nothing, while reusing a reply_id for other text is
refused. A reply without reply_id keeps its single-reply behavior.

Lumi's reply list returns every reply once, oldest first, each under its
own ID (the report's ID for the single reply), so released Inner Breeze
versions show every reply in order without an app update. Report lists show
each report's latest reply, replies leave with their report, and
scripts/feedback.py takes --reply-id.
2026-10-17 18:24:09 -03:00
waozi 81ea61c998 Deliver slow Lumi answers and accept up to 64 app tools
Lumi's chat, spelling and habit-icon answers can take as long as the node
waits for the model: 35 seconds, or 60 for spelling. The node's 15-second
write timeout cut those answers off, so the app never received them. These
routes now keep the response open for the model's wait plus 15 seconds;
every other route keeps its 15 seconds.

Inner Breeze now offers exactly 32 tools, the old maximum, so a chat
request may now carry up to 64.
2026-10-13 19:22:07 -03:00
waozi 17994f92f9 Choose habit icons with the node's GLM service
POST /api/v1/chat/habit-icons lets Inner Breeze give an icon to habits
that have none of their own. The app sends its icon names (1 to 64
distinct names of lowercase letters, digits and underscores) and up to
32 habits with a name and an optional description. The node answers with
one entry per habit, in order: an offered icon name that obviously fits
the habit, or "" when none clearly fits. Names the model invents are
dropped, so the app only ever receives icons it has.

Like spelling correction, each request uses one unit of the same daily
account and node allowance as Lumi's chat, invalid requests are refused
before they reach the provider or spend the allowance, and habits and
answers are neither stored nor logged. Habit names and descriptions are
data for the model, never instructions.

The committed Go of a few unchanged sources is regenerated so that it
matches the current compiler output again.
2026-10-12 14:30:05 -03:00
waozi e24aa56d1c Correct the spelling of diary entries with the node's GLM service
POST /api/v1/chat/spelling takes one text of up to 8192 bytes and returns
it with only misspelled words corrected. The model sees the text without its
surrounding blank space, which is restored exactly around the correction,
and is told to keep wording, punctuation, line breaks and Markdown as they
are. Each request uses one unit of the same daily account and node
allowance as Lumi's chat, and the text is neither stored nor logged.

Chat and spelling now share the account check, the allowance and the
provider call, and spelling gets a longer timeout and output budget because
a corrected entry is about as long as the entry.
2026-10-10 23:00:21 -03:00
waozi 990fc185bb Match chat OpenAPI fixture to the 32-tool limit 2026-10-09 01:21:08 -03:00
waozi f050a8a784 Keep feedback API contract fixtures account-scoped 2026-10-07 01:08:19 -03:00
waozi 5c1c2f3a4f Add node-hosted Lumi chat and account-scoped app feedback 2026-10-07 01:03:12 -03:00