Compare commits

...
1549 Commits
Author SHA1 Message Date
waoziandClaude Opus 5.5 7d65025806 Record the 2.1.31 phone check: 57.7 fps on the Moto
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-11 20:12:08 -03:00
waoziandClaude Opus 5.5 1eb5fd3de2 Release Inner Breeze 2.1.31
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-11 20:09:13 -03:00
waoziandClaude Opus 5.5 ccbad38a60 Fail the phone check when the app comes back shifted
The check measured the layout shift after leaving and resuming a practice
but only warned, so 2.1.28 to 2.1.30 passed with the app shifted after the
floating window. A shift above 2 now fails the check and the release gate.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-11 20:04:47 -03:00
waoziandClaude Opus 5.5 4097ce5d79 Keep the app inside the screen after the floating window
Android's floating window gives Inbe's window a shadow that makes its
drawing surface 18 pixels larger on every side, and keeps it after the
window opens back to full screen. The app then sat under the camera and
status bar, ran into the navigation and lost its sides. The activity now
reports its window size and Kryon draws and takes touches inside the
window's part of the surface; the floating window itself still fills its
whole surface, without a border.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-11 20:04:47 -03:00
waoziandClaude Opus 5.5 4b77d513a1 Test the web orientation preference without a canvas resize
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-11 16:57:44 -03:00
waoziandClaude Opus 5.5 a733f87cba Record the 2.1.30 phone check: 57.7 fps on the Moto
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-11 16:19:30 -03:00
waoziandClaude Opus 5.5 d0993d71ad Release Inner Breeze 2.1.30
Long menus scroll by touch, open at the current choice, stay above the
navigation and close when the navigation is tapped, switching screens in
one tap. The web app draws at the screen's pixel density with sharp
icons. The app packages are unchanged.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-11 16:15:29 -03:00
waoziandClaude Opus 5.5 b5f4ebfa16 Keep open dropdowns inside the page above the navigation
Kryon sizes a dropdown's menu to the page that shows it, so a long menu
ends above the navigation and scrolls to its last row.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-11 16:01:17 -03:00
waoziandClaude Opus 5.5 f1dc2a1dff Let an open dropdown close when the sidebar is tapped
Kryon's dropdown menu is now a popup over the page: a tap on the
sidebar or anywhere outside closes it and still switches the screen.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-11 15:51:40 -03:00
waoziandClaude Opus 5.5 7d18f5089d Scroll dropdown menus by touch and sharpen vector icons
Kryon's dropdown menu now scrolls like any list, by finger, wheel and
fling, and opens at the chosen row; it keeps its own highlight and
scroll, so the language dropdown stops passing them. Vector icons
rasterize at the screen's real pixels, without seams.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-11 15:25:50 -03:00
waoziandClaude Opus 5.5 900850f1a9 Draw the web app at the screen's pixel density
Applying the orientation preference resized the canvas to its CSS size,
over Kryon's canvas host, which keeps it at CSS size times
devicePixelRatio and resizes it when its box changes. On a 2x screen the
app then drew its 2x frame into a 1x canvas: magnified, cropped and soft.
The web build also tells the icon painter its render scale, as the
native builds do, so icons rasterize on whole screen pixels.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-11 15:25:50 -03:00
waoziandClaude Opus 5.5 d30e918704 Record the 2.1.29 phone check: 57.7 fps on the Moto
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-11 13:59:48 -03:00
waoziandClaude Opus 5.5 736882b1bd Release Inner Breeze 2.1.29
Scrolling Lumi's commands keeps the keyboard open: Kryon 83f1dde0 lets
a focused text field keep the focus while a press on another control
turns into a scroll. Lumi 1.3.9, Diary 1.1.9, Lists 1.0.5, Leaderboard
1.0.1 and the root package 2.1.29 carry the updated widgets, so the node
accepts them. The Moto and Pixel keyboard tests that scroll the command
list come from the GLM session that took the owner's report.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-11 13:54:45 -03:00
waoziandClaude Opus 5.5 7a6b8207e1 Leave Wim Hof without reloading the app
Leaving a Wim Hof session early, or going back from a paused one or from
its results, reinitialized the whole app: data, fonts, audio and a new UI
session. On the Moto that froze the screen for 3.2 seconds. It now stops
the session and returns to the practice screen like Meditation and
Patterns, and the Wim Hof test checks that leaving does not initialize
the app again.

The floating practice window asks for Kryon's new resizable flag by
name; 32 means sticky. The lock pins Kryon 51afdffe.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-11 12:01:43 -03:00
waoziandClaude Opus 5.5 1dab289a8f Download, export, pick, sign and listen through Kryon and the Daochi client
Inner Breeze's platform services now come from their shared homes:

- Kryon: file_download (runtime assets and music), file_export (data
  and key file downloads and Android's share sheet), android_picker
  (document picker and QR scanner), page_socket (live sync events in
  the browser), browser_viewport (canvas sizing), and Android's device,
  insets and input method text editing.
- Daochi client: crypto (SHA-256, HMAC, ChaCha20-Poly1305), account
  keys (now wiping secrets as Inbe's copy did), and signed package
  release parsing; Inbe keeps only its own package policy.

About 5,000 lines of duplicated Zi, C and JavaScript are gone. The lock
pins Kryon f2c230be and the Daochi client d453a26.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-11 11:40:54 -03:00
waoziandClaude Opus 5.5 11324d6ece Pin the Kryon that has the platform modules Inbe now imports
open_uri, raylib_trace, window_close, idle_time, file_picker,
http_transfer and the other services Inbe moved to Kryon were missing
from the pinned Kryon, so locked builds could not find them.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-11 11:17:05 -03:00
waoziandClaude Opus 5.5 3818deacec Send requests and draw floating windows through Kryon
HTTP requests now run in Kryon's http_transfer on every platform; the
app's network_transport adapts it to Daochi's AsyncTransport and keeps
its own deadlines. The browser's requests use fetch through the web
bridge instead of Inner Breeze's JavaScript, which keeps only the event
socket and downloads. The floating practice window and break windows use
Kryon's raylib_secondary_window.

The Telegram account flow test answers requests through a stand-in
http_transfer module, and the JavaScript socket test drops the removed
HTTP checks. Fixed on the way: the socket table was being recreated on
every call after the HTTP table went away.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-11 10:45:00 -03:00
waoziandClaude Opus 5.5 2325a89629 Log, pick files, watch window close, read idle time and notify through Kryon
These platform services now come from Kryon: raylib_trace routes raylib's
log (trace_log.zi keeps only Inner Breeze's formatted lines),
window_close watches the app's own window, idle_time reads the session's
idle time for break reminders, notification_desktop sends desktop
notifications, and file_picker opens data, photo and audio pickers,
including the browser's chooser, which no longer needs Inner Breeze's
JavaScript. Audio files are still picked only on Linux and BSD desktops.

Tests that compile host services gain Kryon's backend module path; the
tests of the moved code live in Kryon now.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-11 10:15:34 -03:00
waoziandClaude Opus 5.5 d23b515003 Make app updates without an APK a standing goal
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-11 10:04:09 -03:00
waoziandClaude Opus 5.5 5b43aa3c3d Open links and reach the Android activity through Kryon
Kryon's open_uri now opens links on every platform, including a new tab
in the browser without Inner Breeze's JavaScript, and Kryon's android_jni
replaces the app's copy of the JNI bridge. The app's own Android modules
call AndroidJniAttachCurrent, AndroidJniMethod and the other Kryon names.
Tests that compile those modules add Kryon's backend to their module path,
and Kryon's own test now checks the JNI and android_app layouts.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-11 09:53:35 -03:00
waoziandClaude Opus 5.5 0b8aadc911 Wait for the Habits overview to draw before reading it
On a slow CI runner the app seeds its habits before its first frame, so
the overview screenshot was black and the check failed with 'did not
render Yoga' (CI on 10-09, 10-10 and 10-11). The test now captures again
until Yoga's controls are readable, for up to about ten seconds.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-11 02:21:54 -03:00
waoziandClaude Opus 5.5 63bd330b81 Page through Lumi's history in the cells test
Lumi opens with its newest 20 messages and adds 20 older ones on each
scroll since the history paging change, but the cells test still expected
one scroll to load all 69 archived messages. It now checks each page
(20, 40, 60, 69) and that nothing older remains.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-11 01:40:04 -03:00
waoziandClaude Opus 5.5 af81a9a23a Show feedback as one card, pause Lumi's typing dots and fix habit colours
Sending feedback through Lumi gave three messages: the card with Yes and
No, then 'Saved on this device, waiting to send…' after Yes, then the
model's own 'I've drafted your bug report, click Yes…'. Offline commands
also repeated the card's question as a second message. The card is now
the whole exchange: the online turn ends when the card appears, choosing
Yes or No adds nothing, and delivery adds no message (a failed delivery
is still told once).

Lumi's typing dots appear 1.2 seconds after a message is sent, as a
person reads before typing; sending stays locked meanwhile. The frame
gains typing_pause as its last field; hosts without it show the dots at
once (Lumi 1.3.8).

The new-habit colour choices all showed the theme colour, purple under
Lavender: Kryon's button drew the style's fill for swatches. The Kryon
lock moves to the release that paints a swatch in its own colour with a
ring on the chosen one.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-11 01:38:40 -03:00
waoziandClaude Opus 5.5 b6f405010e Repair a missing package pointer without hashing the payload
The update check skipped re-hashing installed packages by confirming only
that the payload file had its signed size, so a missing current-release
pointer was no longer repaired and the package release test aborted. The
check now also reads the small signed pointer and requires it to name the
release's hash; the payload is still not read and hashed on the frame
thread.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-11 01:33:35 -03:00
waoziandClaude Opus 5.5 7ad56a3d3e Run hosted apps with Kryon's hosted_app
module_host opened each app's bundle, checked its capabilities, bound
them, limited its steps and kept a working instance through restarts.
Kryon's hosted_app does that now; Inner Breeze keeps its policy:
ModuleAllows decides each app's capabilities and notes whether it has the
read and write calls of the message protocol, and ModuleHandshake checks a
restarted app identifies itself before it replaces the working one.
Opening a bundle into a slot that still held one now closes the old
bundle instead of leaking it.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-11 01:32:17 -03:00
waoziandClaude Opus 5.5 f11c8b1174 Scroll Lumi's chat while dragging a selection to its edges
Holding a message and dragging up stopped at the visible messages: the
chat's own drag took over and cancelled the selection. Kryon now lets a held
press keep the gesture, and dragging near the chat's top or bottom scrolls
it, faster nearer the edge, through older messages as they load. Selections
are counted from the newest message, so rows loading above keep their
choice. The selection bar covers the top of the chat on the page's colour
instead of pushing the messages down, so the row under the finger stays the
one being selected.

The Apps grid tests now click Diary and the Practice card where the
reflowing grid puts them. The Kryon lock moves to the release with these
press and scroll fixes.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-11 01:12:28 -03:00
waoziandClaude Opus 5.5 860cc9af13 Stop the package check from freezing phones after launch
On the owner's Pixel the first frames after launch blocked for over ten
seconds and Android reported the app not responding. The native stack showed
PackagePump verifying package bytes with software SHA-256 on the frame
thread: whenever the node's release matched the installed one, the update
check read and hashed the whole installed package again, the root package
with every app included. The payload was verified when it was written and is
verified whenever it loads, so the check now only confirms the payload file
is present at its signed size.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-11 01:12:28 -03:00
waoziandClaude Opus 5.5 11b013134c Draw hosted apps with Kryon's widget host
Inner Breeze kept its own host for the widgets its apps draw: a generated
codec for Kryon's widget records, the dispatcher and the helpers for
bundle values. Kryon now owns them, so the codec shrinks to the frames and
rows the apps exchange with their screens (src/cells/app_codec.zi, from
Kryon's generator via scripts/generate-app-codec.py; make test checks it is
current). The record codec uses Kryon's helpers instead of a private copy.

Inner Breeze keeps its policy: hosted_assets.zi decides which images an app
may draw, and module_host asks Kryon's WidgetHostSupports which widget calls
exist, which now includes Toggle. Lumi can delete a selected chat row.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-11 00:52:36 -03:00
waoziandClaude Opus 5.5 269a277103 Select Lumi messages like Telegram, then copy or delete them
Hold a message for half a second to select it; while selecting, tap
messages or drag across them to select or clear them all, and checkboxes on
the left show which are selected. A bar at the top shows a close button,
how many messages are selected, then copy and delete. Delete asks first.
Text is no longer selectable inside a message, so a hold anywhere on it
selects the message, as on Telegram's phone apps.

Each message is a Kryon Press area under its buttons. The rows a sweep
reaches follow the pointer's movement since it began, so the chat making
room for the bar does not change which row is meant, and older messages do
not load while selecting, so row numbers stay put.

A deleted message keeps a small record under its key with deleted set, so
other devices learn of it through account sync; the history skips it.
Inner Breeze 2.1.28 and older show such a record as a dash instead of
failing to load the chat. Lumi 1.3.8 and the root package 2.1.28 need host
interface 7; the Kryon lock moves to the release that hosts Press.

The host function LumiDeleteRowHost lands with the hosted-app refactor in
src/screens/lumi_screen.zi and src/cells/module_host.zi.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-11 00:33:43 -03:00
waoziandClaude Opus 5.5 01522177f3 Reflow the Apps grid to the window's width
Apps always laid its cards out in two columns, so a wide window showed a
narrow strip of tall rows. The cards now use Kryon's responsive grid: as
many columns as fit at 140 points each, up to six, so a phone keeps two and
a desktop window shows a row of five. Dropping a dragged card into Pinned
finds the slot under the pointer with the same grid. The Kryon lock moves to
the release with those grid helpers.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-11 00:12:27 -03:00
waoziandClaude Opus 5.5 76fdecaccd Open Lumi with its newest messages and load older ones on scroll, like Telegram
Lumi loaded 64 messages at once and kept every page it had loaded, so a
history scrolled through once was read and measured again on every change.
It now opens with the newest 20 and adds 20 older ones each time the chat
reaches its top; opening the chat again starts from the newest page. While
the loaded messages do not fill the chat, which then cannot scroll, older
ones load at once (Lumi 1.3.7, root package 2.1.27).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-11 00:04:48 -03:00
waoziandClaude Opus 5.5 5595bd70df Release the root package 2.1.26 with Diary 1.1.8 and Lumi 1.3.6
The root package carries every bundled app package, so its bytes changed
with Diary and Lumi, and the node refused it at the unchanged 2.1.25. It
moves to 2.1.26 and declares host interface 7, like the Diary it carries, so
apps on 2.1.28 keep their current root package.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-10 23:57:05 -03:00
waoziandClaude Opus 5.5 7260d62662 Test host interface bounds from the ledger instead of fixed numbers
The package version test treated host interface 7 as out of range, so it
failed once the host moved to 7 for Diary's undo, redo and spelling. Its
out-of-range values now come from the ledger's oldest_host_api and
host_api, just outside each end.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-10 23:52:23 -03:00
waoziandClaude Opus 5.5 a6473d2adf Show Lumi's message and typing dots at once, and send habit progress
Enter sent a message, but its online request was prepared in the same frame
before the message was drawn, so it appeared late. The request now starts
one frame later, after the message and Lumi's typing dots are on screen.

While Lumi answers, three dots that brighten and rise in turn show in its
bubble where the answer will appear (Lumi 1.3.6). The frame gains the host
clock as its last field; hosts without it show the dots still.

Lumi's context gives each habit its scheduled and done days over the last
two weeks and its current streak, so the node can coach from real progress
instead of only today's checkmarks.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-10 23:49:17 -03:00
waoziandClaude Opus 5.5 d631050d0d Put Diary's calendar beside Today and let the entry reach the bottom
The calendar moves between days like Today, so it sits next to it on the
left; undo, redo, spelling, the time and photos change the entry and stay
together on the right. The editor no longer leaves a 60-point gap below it
for notices: that room appears only while a notice is shown.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-10 23:49:17 -03:00
waoziandClaude Opus 5.5 5d4ab56ed8 Retry sync automatically after a payload could not be built
A payload failure is local, for example a briefly locked database, yet it
stopped automatic sync until the person pressed Sync now. The owner wants
sync to recover by itself (2026-10-10), so it now retries on the 5, 15, 30
and 60 second schedule like a failed request, without switching nodes, and
the status line keeps saying sync failed until it succeeds.

This changes the retry contract: PayloadFailureStops becomes
PayloadFailureRetries, and a payload failure no longer needs action.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-10 23:49:17 -03:00
waoziandClaude Opus 5.5 7b9f01b870 Keep sync from failing on a locked habit-count table
Building a sync payload rebuilds session habit counts in temporary tables,
which were dropped and created each time. DROP TABLE fails with "database
table is locked" while any other statement on the connection is still
reading, so a background sync failed with a payload error and waited for
Sync now. The tables now live for the connection and are emptied with
DELETE, which needs no such lock.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-10 23:49:17 -03:00
waoziandClaude Opus 5.5 690c0db1bb Send Tab, Enter and Space to Kryon for keyboard navigation
Inner Breeze runs its own frame loop, so Kryon never received these keys and
Tab did nothing. The host now sends them each frame, and a frame without one
sends 0 to clear the last. Kryon moves the focus with Tab and Shift+Tab, shows
a focus ring and presses the focused control with Enter or Space after Tab;
after a click these keys stay with the screen, such as a practice's pause.

The Kryon lock moves to the release with that keyboard navigation.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-10 23:49:17 -03:00
waoziandClaude Opus 5.5 019de0a0d6 Give Diary a title bar, icon tools, undo and redo, and spelling correction
The date now sits in the middle of a title bar between the previous and
next day. Today, the calendar, the time and photos move into one row of
compact icon buttons above the entry, so the editor starts much higher.

A spelling button sends the entry to the Waozi node, whose GLM service
returns it with only misspelled words corrected (POST /api/v1/chat/spelling,
the same signed requests and daily allowance as Lumi). The entry stays
read-only while it is checked, and the correction applies only to the
unchanged text of the same day. Notices explain a missing account, an entry
over 8192 bytes, the daily limit, a failed check and an entry without
mistakes.

Undo and redo buttons step through the entry's earlier versions. The host
keeps them because package values last one run: typing within a moment is
one step, a correction is its own step, and another day starts afresh.
Undo, redo and corrections apply as the smallest edit on whole UTF-8
characters, so the caret lands after the change.

DiaryUiFrame gains the fields for these controls, so the host interface
moves to 7 and Diary 1.1.8 requires it; older apps keep Diary 1.1.7. Model
requests get one deadline helper on desktop, Android and the web, where
spelling waits up to 70 s.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-10 23:49:17 -03:00
waoziandClaude Opus 5.5 3c11971227 Let Android APKs installed from the release update themselves
Desktop builds update themselves from the release's appcast, but Android
APKs downloaded from GitHub stayed on their version until the owner
reinstalled them. Once a day these builds now read the release feed in the
background, download the APK for the device's ABI (or the universal one),
and keep it only when its size and SHA-256 match the feed and Android
reports it as this app, newer, and signed by the same key. The next start
that does not open a practice hands it to Android's own installer, which
asks for confirmation; a cancelled offer returns at most once a day.

The release workflow adds android and android-<abi> channels to the appcast,
leaving out the Google Play APK. The Play build removes the install
permission and leaves the updater off, as does an F-Droid build; debug
builds use it only with -Papp.updateFeed=URL.

Checked on the development Moto: the instrumented AppUpdateTest passes, and
against a local feed the app picked the armeabi-v7a APK, downloaded it,
matched its hash and refused it as not newer. Installing a genuinely newer
build still needs a real release.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-10 23:49:17 -03:00
waoziandClaude Opus 5.5 af43d15d63 Calibrate the phone check on the development Moto
The Moto e6 play refreshes at 58.2 Hz, so the check now requires 94% of the
display's own refresh rate instead of a fixed 55 fps; the released 2.1.28
debug build and this master both hold 57.7 fps with no late frames over a
minute of Wim Hof. Window layers on Android 9 carry an id prefix and can be
named after a launcher alias, so layers and focus match any activity of the
app. The check finds the phone on this machine first, then on the ThinkPad.

It also measures whether the practice comes back with the same layout after
the app goes to the background, and warns when it does not: on Android 9 the
floating window leaves an 18-pixel larger surface behind, and the practice
returns shifted up and left until the app restarts.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-10 23:49:17 -03:00
waoziandClaude Opus 5.5 75e5d449b3 Set aside a package that keeps failing at startup and check updates sooner
A downloaded package now goes on trial when a start opens it and proves itself
once the app has run ten seconds. If three starts in a row never prove it, the
app uses its bundled package instead and does not download that release again
until a different one is published, so a release that crashes at startup
cannot keep Inner Breeze from opening.

Update checks also run once after a start when the last check is an hour old,
and ten minutes after a sync reports a newer root package through the node's
package_sequence, instead of only once a day. The schedule stays in memory,
which also removes a settings query the frame loop made on every frame.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-10 23:49:17 -03:00
waoziandClaude Opus 5.5 e58d9194a5 Check packages across app versions and release only after a phone check
make package-compat-test runs every package the Waozi node serves in this
build, and unpacks the last released Linux app to run each new package that
declares an interface it has. A failed host call inside a package fails the
check, since the screen would otherwise silently lose that part. The Release
test job runs both directions, and the package workflow runs new packages in
the last release before publishing them.

make phone-check APK=... installs the exact APK on the development Moto,
starts the Wim Hof session through the app's start-practice intent, reads
SurfaceFlinger's frame times for a minute, checks resuming from the
background and records releases/phone-checks/VERSION.json for the commit it
checked. The Release workflow creates a new version tag only with a passing
receipt whose sources match the release, so a laggy build cannot publish.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-10 23:49:17 -03:00
waoziandClaude Opus 5.5 a84907925a Accept packages from a range of host interfaces and stage releases
A package loaded only on an app with exactly its host interface, so every
interface change stranded packages on older apps. The host now runs packages
built for interfaces from oldest_host_api to host_api (5 to 6), and each
package declares the oldest interface it needs in apps/versions.json; all
current packages keep 5, so their signed releases are unchanged. Interface 6
marks hosts that match record fields by name. The constants are generated into
src/cells/host_api.zi, apart from the package versions, because they are
compiled host behavior.

Update checks name the host and module interfaces and a stable random device
bucket, so the Waozi node answers with the newest release this app can run.
package-release.py --rollout PERCENT --rollout-hours HOURS uploads changed
releases staged to that share of devices; the node releases them to everyone
when the time runs out, and a full upload promotes them earlier.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-10 23:49:17 -03:00
waoziandClaude Opus 5.5 12380d75ab Run app packages built against older or newer record layouts
The host and its packages exchanged records that had to match field for field,
so adding one field to a shared record broke every package built before it,
and every package built after it on older apps. The generated codecs now take
each field by name: a field the other side lacks keeps its zero value and an
unknown field is ignored, while a field of the wrong kind still fails. Package
instances opt into Ziran's matching for records the host returns, and the
widget host finds slice lengths by name instead of by position.

With this, the Diary package phones run today (built for the previous host
interface) keeps its writing area in this build instead of aborting the app,
and the Lumi package's calls no longer fail.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-10 23:49:17 -03:00
waoziandClaude Opus 5.5 43cd7f3908 List Leaderboard after the apps that existed before it
Apps listed Leaderboard alphabetically, between Habits and Lists. In a
browser window with the default pins, that moved Lists one row down, past
the bottom of the window, and the web smoke test could not reach it.
Leaderboard now comes last, so adding it moved no existing app.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-10 22:25:37 -03:00
waoziandClaude Opus 5.5 7389a549cd Release 2.1.28
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-10 21:41:14 -03:00
waoziandClaude Opus 5.5 17c9564fbd Open Telegram from Profile in the Lumi history test
Telegram moved from Settings to Profile, so the test's click on the old
Settings tab opened About. It now goes to Apps, Profile and the Telegram
card, finding each by its rendered label.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-10 21:31:34 -03:00
waoziandClaude Opus 5.5 398c87020b Sync the Leaderboard app choice with the account
Incoming app choices and the full-state upload listed only the five older
apps, so a Leaderboard choice made on another device was ignored and a
restored account never uploaded it. Both now include app_used_leaderboard.
The app choice merge test covers it, and the Telegram account test expects
six choices.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-10 21:19:21 -03:00
waoziandClaude Opus 5.5 35577f8fa6 Give four Lumi and Telegram tests the qrcode package
Their sources now reach the QR code view, whose qrcode import needs the
package path. Without it, Lumi's Telegram input, delegate scope and feedback
delivery tests and the Telegram account flow test stopped compiling.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-10 21:18:14 -03:00
waoziandClaude Opus 5.5 4ef4081b52 Add a Leaderboard screenshot scene
The screenshot harness requires a scene for every bundled app. Leaderboard
now has one with saved friend results. It is not a store screenshot, so the
eight store shots are unchanged.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-10 21:17:51 -03:00
waoziandClaude Opus 5.5 3c08c08edc Build Inner Breeze with the faster portable VM
The Ziran toolchain moves from 307ffcb to 9ec88f5, which caches call
resolution and scalar operation plans and reduces allocation in the
interpreter that runs Lists, Diary, Lumi and Leaderboard. On a Moto e6 play,
the minimized breathing circle over Lists rose from 35 to 48 fps, and over
Leaderboard from about 39 to 55 fps.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-10 21:03:41 -03:00
waoziandClaude Opus 5.5 419899fd3b Leave Leaderboard out of the Lumi test's restricted app choices
The Lumi UI test restricts the profile to recommended apps and to Lumi
alone. Leaderboard is now installed once on existing profiles, so the test
also turns it off in those choices.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-10 20:54:31 -03:00
waoziandClaude Opus 5.5 d3154ea5a0 Keep a QR connection waiting through a node restart, and scan upright
A phone showing its code gave up on the first poll that met a restarting
node: a deploy answered 502 and the phone said it could not connect while
the computer had already sent the account. Polls now retry on no answer,
429 and 5xx until the link expires, and a failed link logs which step
failed. The local mailbox test answers three polls with 502 and the
receiving device must still connect.

The QR scanner follows how the phone is held instead of ZXing's landscape
lock.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-10 20:53:36 -03:00
waoziandClaude Opus 5.5 782ad3d24a Use the Kryon that draws bold text with whole-pixel strokes
Bold Diary and Lumi text was a second copy shifted one logical unit, which
left a light seam inside the strokes at 110% and on phones. Kryon now
thickens emphasized glyphs by whole screen pixels on raylib.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-10 20:38:50 -03:00
waoziandClaude Opus 5.5 fdf38893ea Keep the desktop sidebar in place with Apps in its bottom corner
On desktop the sidebar keeps the window's full height, and Apps sits in
its bottom corner instead of right under the pinned apps. The phone's
bottom bar still keeps Apps beside them.

An app opened from Apps without a pin shows a return bar above its
page. That bar shifted the page's coordinates, and the sidebar is drawn
in them, so every icon moved down. In a window under about 524 units
tall it also turned the sidebar into a bottom bar, because the sidebar
check read the page height after the bar. The sidebar now ignores the
bar, and the sidebar decision uses the whole window's height.

The launcher test opens Diary unpinned on both sidebar sides, clicks
every pin and Apps under the bar, and uses the bar's Back arrow to
prove the bar is shown. Tests that clicked Apps under the pins now
click the bottom corner.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-10 20:23:42 -03:00
waoziandClaude Opus 5.5 bfd50cdf62 Draw the Linux AppImage's text in Inner Breeze's fonts
The AppImage release job built raylib with -DSUPPORT_FILEFORMAT_TTF=0, so
the published Linux app could not load its Noto fonts and drew every screen
in raylib's fallback pixel font. The app's raylib configuration now always
keeps TrueType support, whatever a build passes in, and the release job asks
for it too. The AppImage smoke test fails when the app reports a font it
cannot load.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-10 20:23:08 -03:00
waoziandClaude Opus 5.5 e277757410 Show every app's version in About without crashing
About listed versions with a label array sized for six apps, so with
Leaderboard as the seventh it read past the end and Inner Breeze aborted
when About opened. The labels now follow the package count and include
Leaderboard. The Leaderboard UI test opens About, and pins the app so the
return bar does not move its controls.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-10 20:15:58 -03:00
waoziandClaude Opus 5.5 268888ff95 Fail the build when an icon comes from a sheet Inbe does not ship
The Profile Telegram card used an icon from Kryon's platforms sheet, which
Inbe does not bundle, so phones showed "Missing image". The new check in
make test maps every icon Inbe names to its Kryon sheet and fails unless
both the desktop embed and the app packages ship that sheet.

Raw icon numbers bypassed such a check: Habits' actions now name Calendar,
Stat and Edit, and the practice shortcuts name Wrench and Manual instead of
stale numbers that pointed at Mute and Habits.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-10 20:01:32 -03:00
waoziandClaude Opus 5.5 17fbd99469 Show an icon on the Profile Telegram card
The card asked for the Telegram icon, which lives in Kryon's platforms
sheet, and Inner Breeze bundles only the UI and profile picture sheets, so
the card showed "Missing image". It now uses the link icon from the UI
sheet.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-10 19:57:55 -03:00
waoziandClaude Opus 5.5 e09048a3b3 Use the Kryon that loads pictures in Inner Breeze's own frame loop
The pinned Kryon spread image decoding over frames but renewed its budget
only in Kryon's own frame loop, which Inner Breeze does not use, so the
Meditation and Sun Salutation pictures never appeared. Kryon 8305e26d
renews the budget every frame interval for any host.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-10 19:56:35 -03:00
waoziandClaude Opus 5.5 2d1759f560 Return to Apps from an app opened there without a pin
An app opened from More apps has no item in the navigation, so nothing on
screen led back to Apps. Such an app now shows a bar with its name and a
Back arrow that returns to Apps, and the system Back on its first page does
the same. The bar sits above the page like top navigation, so every app,
including installed app packages, keeps its own layout. Pinned apps and
directly hosted apps are unchanged.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-10 19:49:11 -03:00
waoziandClaude Opus 5.5 ed470b98fe Fail the visual tests when practice pictures are missing
The new test opens each practice and a running Sun Salutation, and fails
when a picture or the figure is missing. It runs in the visual gate of CI
and releases.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-10 19:33:32 -03:00
waoziandClaude Opus 5.5 43ae482eb3 Show the close prompt above Apps
Closing the desktop window while Apps was open opened the Keep running or
Quit prompt behind the Apps overlay. It could not be seen or used, and
further close clicks did nothing, so Inner Breeze could not be closed. The
prompt is now drawn inside the Apps panel when Apps is open. The quit test
covers both cases.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-10 19:33:28 -03:00
waoziandClaude Opus 5.5 1ef26f4d79 Stop a tapped control from staying highlighted on Android
A lifted finger hovers nothing, but the host kept reporting the last touch
position, so the tapped control kept its hover style. A selected tab then
showed no fill until the next touch elsewhere.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-10 19:33:28 -03:00
waoziandClaude Opus 5.5 7b5e324779 Show every practice in Leaderboard on phones
The practices were a scrolling tab bar, and a swipe does not scroll it, so
Meditation and Sun Salutation could not be reached on a phone. They are now
buttons, two per row on phones and four in a wide window. Column headers
shrink their labels to fit, so Current streak is no longer cut off.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-10 19:33:28 -03:00
waoziandClaude Opus 5.5 55db65df1d Keep account, data and Telegram in Profile, and device preferences in Settings
Profile gains a Telegram card beside Friends, Data and Account & sync,
opening the same Telegram panel Settings had; without an account its button
opens Account & sync. Settings drops its Telegram tab and the Data row on
phones, so it lists only this device's preferences. A saved Telegram tab
opens Device.

The Data Back test checks that Settings no longer lists Data; the QR test
finds Apps by its label wherever the rail puts it; the Telegram panel test
gets the qrcode package path its imports now need.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-10 19:21:20 -03:00
waoziandClaude Opus 5.5 7216521a43 Connect a device to the account by QR code
Profile's account view gains Connect a device. A device shows a QR code that
carries a one-time link ID and a fresh X25519 key; a phone scans it with the
camera (ZXing). When the showing device holds the account, the scanner sends
its key, both screens show the same six digits, and the account is sealed to
the scanner after confirming. When it has none, the scanner confirms and
seals its account to the key from the code. Daochi's link mailbox relays the
sealed messages without reading them, and the receiving device imports the
account as a key file import would.

The QR code comes from the new qrcode package; Kryon moves to the release
with text area hidden ranges. Tests cover the protocol with Monocypher and
both directions on owned Xvfb windows against a local mailbox, reading each
code back from a screenshot.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-10 19:11:50 -03:00
waoziandClaude Opus 5.5 841b7e9bfc Report a full sync node on desktop and say when there is no room for changes
Desktop sync runs on a worker thread that did not read the node's reply to
a refused upload, so a full node looked like a failed connection there and
its usage was never recorded. It now reports storage full and records each
node's usage like Android and the web.

A node can refuse an upload while it is far from its limit, when one batch
of photos would not fit. The card now says there is no room for the latest
changes instead of calling the node full, and points to the photo switch
when photos still upload there.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-10 19:06:06 -03:00
waoziandClaude Opus 5.5 a78d30c778 Look up app assets in the package that owns them
Each frame reads a few assets, such as the Lumi dock icon and the tool list
for Harmony. The lookup compared every file name of every package in turn,
measuring each name first, so a path outside Lists and Habits first scanned
the thousands of Practices images. It now searches the package that owns
the path first and compares names in place.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-10 19:05:27 -03:00
waoziandClaude Opus 5.5 31456658f2 Move Leaderboard out of Profile into its own app
Leaderboard is now a seventh app with its own package, so it can update
without a new Inner Breeze release. It is installed for new and existing
profiles, listed in Apps and left out of the dock; removing it is kept.
Profile keeps Friends and loses its Leaderboard tab.

The board ranks you with your friends for Wim Hof, breathing patterns,
meditation and Sun Salutation, by current streak or by average hold or
average time. Meditation averages were sent by the server but never
fetched; they are now. Saved and fetched results are parsed and ranked once
when they change instead of with SQLite queries on every frame, and up to
64 rows are shown in a scrolling list.

The package importer on the node accepts archives with and without the new
app, so the node and the app can be updated in either order.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-10 19:05:27 -03:00
waoziandClaude Opus 5.5 81ff4593ae Show each sync node's storage and keep photos off nodes that should not store them
Diary photos sync as encrypted chunks, which take about four times the
photo's size on a node, and the Waozi node now gives each account 10 MB.

Profile > Data has a Node storage section with a card for every node the
account syncs with: how much it stores there, its limit and a bar that
turns amber near the limit and red when full, an estimate of what this
device's photos and videos take, and a switch to upload photos and videos
to that node. With the switch off, photo chunks never leave the device
for that node, while each photo's entry still syncs, so other devices
show where a photo is instead of an empty space (Diary 1.1.7).

A node that refuses an upload with storage_full now stops sync with a
clear message instead of retrying a connection error, and Diary refuses a
photo that would not fit on a node that stores photos, saying which node
is out of room. Usage is remembered per account and node from each sync.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-10 18:53:20 -03:00
waoziandClaude Opus 5.5 4fe2486539 Show Diary bold text as bold, with markers only on the edited line
Diary entries are Markdown, so **bold** words and the inserted times showed
their asterisks. The editor now hides the ** markers and draws the words
bold, except on the lines holding the caret or a selection, where the
markers can be edited directly. Text areas carry Kryon's new hidden and
strong ranges through the app widget codec, so the host API advances to 5
and every app package moves to a release that requires it.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-10 15:34:16 -03:00
waoziandClaude Opus 5.5 278b115944 Name SQLite's reason when a storage statement fails
A desktop sync failed while rebuilding habit counts and its log only said
"SQL failed", so the cause could not be found. The log now includes
SQLite's error message.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-10 15:19:21 -03:00
waoziandClaude Opus 5.5 b86a904a0a Open a minimized practice in its own desktop window
On desktop, minimizing a practice now opens it in a separate window instead
of the in-app card, unless picture-in-picture is turned off. The window keeps
its maximize and end controls; closing it brings the practice back to the
app. The card no longer offers a detach button, and the window no longer
returns to the card, so their unused labels are removed and the root package
advances.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-10 15:18:33 -03:00
waoziandClaude Opus 5.5 1f8fd4b8d0 Remove the Android button that opens picture-in-picture from the app
Leaving the app already opens the floating window on its own, so the
minimized practice no longer shows a button that does it from inside the app.
The desktop keeps its button for opening a separate practice window.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-10 14:40:46 -03:00
waoziandClaude Opus 5.5 fbbe884b27 Keep the minimized breathing count at one font size
The small practice window sized the Wim Hof count from the breathing circle's
current radius, so the count asked for a new font size almost every frame.
Each new size baked a font atlas on the frame thread, and with more sizes
than the cache holds the window stalled for 50-60 ms every few seconds. Size
the count for the circle at its smallest so it always fits and stays one
size. The window test now fails if a breathing circle bakes new font sizes.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-10 14:40:46 -03:00
waoziandClaude Opus 5.5 7fa42e6785 Keep typing in a text field after a button asks for focus
Kryon now moves the session focus to a text field that asks for it, so a
button that focuses Lumi's message box no longer keeps the focus.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-10 14:12:54 -03:00
waoziandClaude Opus 5.5 a128a47328 Add a Telegram-style command menu to Lumi
An empty message box now shows a / button, and typing / lists Lumi's
commands with their descriptions, narrowing as you type, like the command
menu of Lumi's Telegram bot. Tapping a command or pressing Enter uses it;
commands that need text, such as /todo, wait for it in the message box,
and /cancel appears only while Lumi waits for a Diary text or habit name.
A draft shows an arrow Send button instead.

The menu and button ask the message box for focus so typing continues
there. The request lasts two frames, so apps released before Kryon's
focus fix keep the keyboard as well. Lumi 1.3.4 and the root package
2.1.23 carry the change and the translated descriptions.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-10 13:39:06 -03:00
waoziandClaude Opus 5.5 09d066216a Open apps without their own style sheet without recompiling styles
Switching between Lists, Habits, Diary, Lumi and practices compiled the
whole style pack and Inbe sheet again on the frame, although an app
without its own sheet uses exactly the shared rules. On a slow phone
that stalled a minimized practice's window for about 190 ms whenever
Lumi opened. Those apps now keep the installed rules.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-10 12:35:37 -03:00
waoziandClaude Opus 5.5 4b6a2def2d Use Kryon's two-field file path list on the web
Kryon's web backend returned raylib 5.0's three-field FilePathList while Inbe
now reads raylib 5.5's two fields, so the web app freed invalid pointers while
scanning session files at startup.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-10 12:35:37 -03:00
waoziandClaude Opus 5.5 47952f78e5 Advance the root app package for the feedback details text
The root package bundles the translations, and the feedback confirmation now
says which app, device and system details a report includes. Publishing the
changed package needs a new version and sequence.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-10 12:35:37 -03:00
waoziandClaude Opus 5.5 31b0f8a4bf List the Lumi answer, older feedback and 32-bit fixes in 2.1.27
Shorten the release notes so the Play notes stay within 500 characters.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-10 12:16:57 -03:00
waoziandClaude Opus 5.5 4ebbf0d691 Keep Lumi answers that arrive during picture-in-picture
Android discarded any finished response the app had not collected within 20
seconds. Lumi does not poll while a practice is on screen, so an answer that
arrived in picture-in-picture was thrown away and Lumi said it could not
connect, losing the feedback card. The deadline now bounds only the network
exchange; a finished response waits until the app collects it, and a slot is
reclaimed from a stale uncollected response only when a new request needs it.
Lumi chat requests get the same 45 second deadline as on desktop.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-10 12:09:08 -03:00
waoziandClaude Opus 5.5 163a0e5e88 Send Lumi feedback that earlier versions saved but never delivered
Inbe 2.1.12 and 2.1.13 kept approved reports in one account setting that the
current outbox never read. Move those reports into the current outbox with
their original IDs, keep delivered reports from being sent again, read only
the signed-in account's queue, and keep damaged older data for recovery.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-10 12:09:08 -03:00
waoziandClaude Opus 5.5 0be7d77a49 Match the sync test host to raylib's file path list
The legacy session scanner now reads raylib's two-field FilePathList, so the
test host returns the same layout instead of crashing the storage tests.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-10 12:09:08 -03:00
waoziandClaude Opus 5.5 e6ad9d0991 Include app version, device and system in Lumi reports
Lumi feedback context now carries the Inner Breeze version, platform,
system version, device model and installed package (Android system
properties, Linux os-release and DMI names), with no identifiers or user
data, so the developer can see whether a newer release already fixes a
report. The confirmation card says what is included, in every locale.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-10 12:06:10 -03:00
waozi c908342167 Fix session file scanning on 32-bit Android 2026-10-10 11:15:45 -03:00
waoziandClaude Opus 5.5 1f094bf922 List picture-in-picture and Lumi feedback fixes in 2.1.27
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-10 11:01:02 -03:00
waozi bed1b70504 Verify Lumi feedback consent and release its delivery messages
Exercise the real Yes confirmation, account-scoped outbox and restart in a private display. Advance the root app package for translated feedback delivery messages.
2026-10-10 10:58:30 -03:00
waoziandClaude Opus 5.5 7bc8c17c0a Keep practices floating and interactive in picture-in-picture
Leaving Inbe for another app or a third-party launcher now opens the
picture-in-picture window on Android 12, which enters on its own only
for the stock launcher. Opening the floating window back into the app
shows the running practice instead of the page behind its in-app
window, and a held Wim Hof breath ends from the in-app window with its
Breath button, or a double tap when set to double tap to breathe.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-10 10:57:09 -03:00
waozi 99833a0b8c Use reproducible native Android build paths 2026-10-10 10:56:49 -03:00
waozi 18e79b36fd Confirm Lumi feedback delivery before removing its outbox report
Distinguish local queuing from the matching Daochi inbox receipt. Keep
failed or invalid acknowledgements queued and archive a notice once per
report, including across restarts. Preserve Yes/No consent and account
scoping, and translate the statuses in every locale.
2026-10-10 10:50:43 -03:00
waoziandClaude Opus 5.5 f0529e8234 Save Diary entries without a waiting-to-save note
Diary 1.1.5 still saves shortly after typing stops, but no longer shows
"Waiting to save…" below the entry. Photo and read errors still show.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-10 00:50:33 -03:00
waoziandClaude Opus 5.5 6712e5db0c List the Diary keyboard, Apps window and Lumi fixes in 2.1.26
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-10 00:40:57 -03:00
waoziandClaude Opus 5.5 2b3d10148e Open Lumi without freezing the practice window
A long chat is measured across frames behind a loading bar, and rows keep
heights measured for the same content after a sync moves them. Account
access is read once per pass instead of per row, and Lumi 1.3.3 prepares
command suggestions only while you type.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-10 00:40:57 -03:00
waoziandClaude Opus 5.5 dda2d2e894 Keep the minimized practice window over the Apps screen
Apps is a Kryon overlay above the page, so the window is now drawn inside
its panel, above the apps, where its buttons keep working.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-10 00:40:57 -03:00
waoziandClaude Opus 5.5 475476ebfc Show the Android keyboard for Diary and other Kryon text fields
Kryon now reports any focused editable TextField or TextArea, so the
Android host shows the keyboard for the Diary entry without listing
every input. Kryon is updated to that change.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-10 00:40:57 -03:00
waoziandClaude Opus 5.5 c5482abf97 Let people turn off picture-in-picture in Settings
Playback on Android gets a Picture-in-picture toggle, on by default. Off,
a running practice no longer floats over other apps on its own and the
small window's detach button is hidden. The choice is saved, imported
from backups and translated for every locale.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-09 22:21:52 -03:00
waoziandClaude Opus 5.5 fab864ea17 Exchange sync on one thread at a time around picture-in-picture
Picture-in-picture keeps frames running while the activity is paused, so
the background practice timer and the frame both polled the same pending
sync. One applied the response while the other released it, which crashed
Inbe on a Pixel 3a when leaving the app during a practice. The frame and
the timer now take a pump lock and skip the exchange while the other
holds it. The session window test also waits for the app's first state.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-09 22:21:51 -03:00
waoziandClaude Opus 5.5 25e703aeda Preview the practice itself in its taller minimized window
The minimized window opens at 220 by 320 units. Wim Hof shows its band
and breath count in the breathing circle, Meditation its time left and
Patterns its phase, as on the practice screens, drawn with Kryon boxes
and text so they stay above the page.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-09 22:02:40 -03:00
waozi 7b18c1d8be Preserve live Android practices through floating-window transitions 2026-10-09 20:16:59 -03:00
waozi 5d090d0e4e Restore meditation music downloads from the Inbe website 2026-10-09 19:06:37 -03:00
waozi e77b982aa0 Add detached desktop practice windows and Android picture-in-picture 2026-10-09 16:15:05 -03:00
waoziandClaude Opus 5.5 ab3919c04b Show each minimized practice live in a resizable window
Minimizing a practice returns to the page it was started from instead
of the first pinned app, which was usually Lumi. Lumi was then drawn
cold on the minimize frame (about 56 ms on desktop, several times that
on a phone), which made the switch stutter; the start page is already
drawn. Lumi is still used when the practice was started from its chat.

The window is taller and shows the practice's own live picture above its
name and status: the Wim Hof circle breathing at its real size range,
the meditation circle, the pattern's growing circle and the moving Sun
Salutation figure. Each practice draws this through a draw_window hook,
and Sun Salutation now advances in the window like the others. The
circle is solid, so it is clearly visible on every theme. A corner
handle resizes the window; elapsed time carries between frames so a
minimized practice keeps the real clock's pace.

The window test covers all four practices: each returns to its page,
draws its picture and keeps moving until maximize returns to it.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-09 15:54:42 -03:00
waoziandClaude Opus 5.5 45309a5b6c Refresh the Play screenshots from the current app
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-09 15:04:19 -03:00
waoziandClaude Opus 5.5 7930aa9914 Test that a hosted Practice child keeps its own navigation
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-09 12:04:46 -03:00
waoziandClaude Opus 5.5 6eb166e377 Move the dropped lake-bob and dusk-braid proposals to the attic
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-09 12:04:46 -03:00
waoziandClaude Opus 5.5 7c6d5a128d Note the small practice window and sync fixes for 2.1.25
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-09 12:03:24 -03:00
waoziandClaude Opus 5.5 98c2c6ef6f Run the minimized practice window like a small player
The practice window is larger and shows the live breathing circle, with
a maximize button beside the X. The X asks to end the practice right over
the open app, and ending it keeps that app open; the prompt belongs to
the running practice, so it is no longer cleared off its own screen.
Breath cues keep playing while the practice runs in the window. Practice
opens its home while a practice is minimized, and Start or any other
start returns to the running practice instead of starting another.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-09 12:02:32 -03:00
waoziandClaude Opus 5.5 6c5da2dee3 Keep visible practices free of frame-thread sync and request work
On Android and the web a sync runs on the frame thread, and every one
stopped the breathing circle for about 0.3 s on a Pixel 3a while a
practice was running. A practice on screen, also in its small window,
now holds back starting a sync and finishing one that began before it;
Lumi and package requests, which use the frame thread everywhere, wait
too. Scheduled work runs when the practice ends. In the background
nothing is drawn, so background practice sync continues.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-09 11:25:31 -03:00
waoziandClaude Opus 5.5 33874fd8cb Keep two release screenshot checks steady on CI
The zoom test could read the app database before its tables existed on
a slow runner. CI's tesseract 5.3.4 read one letter of the large
"Material" value wrong at 250% although the pixels are complete; one-word
labels now accept a single misread letter.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-09 10:53:31 -03:00
waozi 1f36722f3c Use pinned Android foreign declaration syntax 2026-10-09 10:48:30 -03:00
waozi 06b21c4d67 Keep WHM animation smooth and reduce per-frame sync work 2026-10-09 10:41:28 -03:00
waoziandClaude Opus 5.5 06d1c49694 Check the reminder menu stays open through its Kryon node
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-09 10:00:23 -03:00
waoziandClaude Opus 5.5 bbe4f08d85 Prepare 2.1.24
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-09 09:52:38 -03:00
waoziandClaude Opus 5.5 73deeeaca4 Let Kryon dropdowns keep their own menu state
Kryon now keeps a dropdown's open menu, highlight and scroll on its
retained node, so the screens pass only the selected value and read
changed and selected_index. The stored menu results in the app and
settings state, and the code that shifted or reset them, are gone.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-09 09:52:13 -03:00
waozi 1007f934f9 Verify Pixel focus through its native launcher alias 2026-10-09 09:44:19 -03:00
waoziandClaude Opus 5.5 a4138169aa Link the session screen into the frame pacing test
Also check that a practice in its small window keeps the full rate.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-09 09:42:49 -03:00
waoziandClaude Opus 5.5 677be34dbb Keep practice animation smooth while sharing it across devices
On Android and the web each sync runs on the frame thread. A running
practice published its live state and started a sync every two seconds,
and read the shared record four times a second, which made the breathing
circle stutter on phones signed in to an account. It now republishes
every ten seconds (phase, round and pause changes still publish at
once), reads the record only after stored data changes, and other
devices count the shared clock on between snapshots. Lumi Telegram polls
every ten seconds during a practice, and a practice in its small window
keeps the full frame rate.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-09 09:35:35 -03:00
waoziandClaude Opus 5.5 e54c7fdca6 Make Customize menus open and keep the chosen breathing animation
The breathing animation, background music and leaderboard practice
dropdowns never kept their open state, so their menus closed again in
the next frame and nothing could be chosen. They now keep it like the
other dropdowns. A Wim Hof session also reset the animation to Linear
when it started; it now keeps In / Out. Customize treats an imported
music track as installed when its file is there, offering Test instead
of "not installed" and a download meant for the built-in tracks.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-09 09:35:35 -03:00
waoziandClaude Opus 5.5 6ef450d90d Wait for the seeded habits before checking their order
The screenshot scene seeds habits after its window and database appear.
On a slower CI runner a fixed one-second wait read an empty list.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-09 03:35:13 -03:00
waoziandClaude Opus 5.5 edcb5f8302 Read the selected phone navigation label without its icons
CI's tesseract 5.3.4 could not read Practice when the dock crop included
the icons and the new selection outline; the label row alone reads every
label on both tesseract versions.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-09 02:58:30 -03:00
waoziandClaude Opus 5.5 99c819fa88 Keep the release visual tests in step with the compact Apps dock and cards
The phone dock is 56 units tall since the compact navigation, app cards
show their size just below the name, and the first-use Apps guide covers
cards in the startup check, so the visual tests read the dock and card
names where they are now and the startup check opens Diary from its card.
The navigation slide also keeps frames coming until it settles, and the
first frame shows the navigation in place.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-09 02:30:51 -03:00
waoziandClaude Opus 5.5 c54c90edcb Keep release visual tests in step with Profile Back and older Pillow
Profile's Back now returns to Apps, so the Data test expects the hub Back
to leave Profile once and finds the Settings Data row by its text instead
of a fixed offset. The sync review test reads pixels with tobytes(), which
every Pillow release supports.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-09 02:07:12 -03:00
waozi 00b27d9804 Use native Android rotation geometry and scoped debug verification 2026-10-09 01:40:28 -03:00
waozi d7b92a5aaf Keep Telegram as input while retaining complete Lumi history 2026-10-09 01:34:04 -03:00
waozi 890eb99381 Resolve protocol modules in preference test harnesses 2026-10-09 01:30:58 -03:00
waozi c4cc79a107 Test shared account activity against the current sync server 2026-10-09 01:24:02 -03:00
waozi dd3895b2a0 Add live KSS appearance editing and Lumi style tools 2026-10-09 01:12:24 -03:00
waozi 87ac93168b Include account activity in production app builds 2026-10-09 01:09:51 -03:00
waozi 7827f0cda4 Use shell input for the physical Gboard glide check 2026-10-09 01:06:42 -03:00
waozi b45cab3719 Keep Telegram access and share active practices across account devices 2026-10-09 01:06:01 -03:00
waoziandClaude Opus 5.5 56354be0f2 Keep the unreleased 2.1.23 notes out of the 2.1.22 changelog
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-09 00:54:05 -03:00
waoziandClaude Opus 5.5 37f85b8b4f List the practice window in 2.1.22 within the store limit
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-09 00:52:12 -03:00
waoziandClaude Opus 5.5 6483eeff03 Fit app card actions within the style rule table
The install and remove symbols added two hover rules that took the
classic style pack plus Inbe's sheet past the KSS rule table, so the
style failed to install and the 2.1.22 release test stopped. Hover now
uses the style pack default; the selected card keeps readable icons.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-09 00:52:12 -03:00
waozi f9d2b03579 Include additional translated labels in bundled fonts 2026-10-09 00:48:46 -03:00
waozi 0e724f6484 Avoid repeat uploads when old Lumi history is replayed 2026-10-09 00:37:40 -03:00
waoziandClaude Opus 5.5 2b05b9e41d Keep a running practice in a small window with a minimize button
Every practice's title bar has a minimize button beside its close button.
It opens the first pinned app, or Lumi when the practice was started from
Lumi, and the practice keeps running in a small window above the app:
tap it to return, drag it anywhere, or use its X to end the practice with
the practice's own confirmation. Opening Practice returns to it. The
navigation slides away when a practice starts and back when it ends.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-09 00:34:34 -03:00
waozi 89d5735e06 Support approved YouTube previews in Play listing publishing 2026-10-09 00:33:48 -03:00
waozi 912109b58c Keep promo screens still and sharpen Lumi wing animation 2026-10-09 00:15:26 -03:00
waozi d47ea26fed Turn Lumi toward the app after each flight 2026-10-09 00:09:48 -03:00
waozi 0fd81dff0d Include newly translated characters in bundled fonts 2026-10-09 00:07:33 -03:00
waozi f394a4c6d4 Animate Lumi wing strokes and narrate the promo through OpenRouter 2026-10-09 00:01:11 -03:00
waoziandClaude Opus 5.5 5ae1079708 List the Lumi Telegram changes in 2.1.22 within the store limit
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-08 23:59:53 -03:00
waozi 5dca47fd0e Exclude the obsolete background migration marker from imports 2026-10-08 23:59:32 -03:00
waoziandClaude Opus 5.5 9eac5812be Answer Lumi Telegram lists quickly with one connect action
Telegram messages now reach Inbe within two seconds while it is open, and
acknowledgements, replies and queued messages follow each other without
the five-second wait that made every message take ten seconds or more. A
message from Telegram no longer moves this device to the Lumi screen.
/lists and /habits answer in Telegram with the open items and today's
habits instead of opening a screen on another device. Settings shows one
line and one button for Telegram, with a quiet Disconnect; Mini App
approval appears only while a request waits for this device.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-08 23:59:25 -03:00
waozi dc91713e77 Support Android keyboard composition and glide typing 2026-10-08 23:58:20 -03:00
waoziandClaude Opus 5.5 2955e44e05 Keep quick taps and swipes on slow Android frames
Use Kryon's Android touch replay for Inbe's pointer, so a tap or swipe that
starts and lifts within one slow frame, or lifts before its next movement
arrives, reaches the app where the finger actually lifted.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-08 23:54:15 -03:00
waoziandClaude Opus 5.5 8564441d2d Fit the 2.1.22 release notes within the store limit
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-08 23:48:44 -03:00
waoziandClaude Opus 5.5 b44b78c2d4 List the background practice fix in 2.1.22
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-08 23:48:17 -03:00
waoziandClaude Opus 5.5 22b4e3e4a3 Keep practices playing when Inbe goes to the background
Background play is on by default again. An older release switched it off
for every install, so each install is moved back on once; after that the
Settings toggle stays the user's choice. A practice also no longer pauses
when the session notification is hidden, dismissed or not allowed: the
foreground service always starts and the two-second notification check
that paused running sessions is gone. The lifecycle laws now state that
background play never depends on the notification.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-08 23:47:42 -03:00
waozi 5188d17398 Check locked sources afresh before Play screenshot publishing 2026-10-08 23:44:55 -03:00
waozi 16742b4670 Retain the registry protocol when updating signed app releases 2026-10-08 23:36:46 -03:00
waozi 878b4638e7 Verify app screenshots before Play updates and add Lumi promo 2026-10-08 23:36:36 -03:00
waozi 96a7312a81 Keep Diary package updates bound to their permanent app runtime 2026-10-08 23:34:19 -03:00
waozi b05e5314e4 Keep practice navigation visible and reuse app runtimes 2026-10-08 23:25:00 -03:00
waozi 576ac323c5 Keep Diary dates in the past and migrate entries into the synced account 2026-10-08 23:19:34 -03:00
waozi d8e0209494 Resume sync on startup and honor explicit retries after saved failures 2026-10-08 23:03:39 -03:00
waoziandClaude Opus 5.5 5b0482ce08 Scroll Lumi and other lists with quick swipes on slow phone frames
Update Kryon to the release-frame swipe fix.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-08 23:00:04 -03:00
waoziandClaude Opus 5.5 221e3090a4 Show app install and remove symbols inside their cards
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-08 22:50:52 -03:00
waozi 0707f7f530 Simplify app management, compact navigation, and support saved sync nodes 2026-10-08 22:40:33 -03:00
waozi 4b6fb732ce Reduce Lumi input work and preserve focused drafts during sync 2026-10-08 22:40:22 -03:00
waozi a2f5802933 Make tab switching immediate and keep rapid navigation responsive 2026-10-08 22:20:55 -03:00
waozi fbf3e1ed72 Wait efficiently for Android startup and remove Apps search X 2026-10-08 21:19:39 -03:00
waozi e27ceb65c8 Keep Lumi responsive and resize its composer above the keyboard 2026-10-08 20:50:13 -03:00
waozi a92f9c8c6b Keep every pinned app visible in the navigation dock 2026-10-08 19:06:02 -03:00
waozi 7b6028b86c Prepare 2.1.21 with a complete visual release gate 2026-10-08 18:43:02 -03:00
waozi 90a951c7aa Make the selected navigation app clearly visible 2026-10-08 16:06:48 -03:00
waozi 7aedf02555 Keep native text crisp and stable throughout the zoom range 2026-10-08 15:15:00 -03:00
waozi c3d3441f02 Use crisp native text rendering at fractional zoom 2026-10-08 14:23:41 -03:00
waozi d049726f05 Open Apps as a full content screen 2026-10-08 13:27:19 -03:00
waozi 6a5d9e11a4 Fix blank desktop pages when the GTK tray changes locale 2026-10-08 10:58:42 -03:00
waozi 0af6d263d9 Group desktop navigation and move Profile into Apps 2026-10-08 10:24:46 -03:00
waozi 59de0d5b2e Optimize web animation rendering for slower devices 2026-10-08 08:32:08 -03:00
waozi 662a0b1063 Use the Windows-safe Kryon font loader 2026-10-08 07:47:27 -03:00
waozi 291e287178 Use the Windows-capable Ziran toolchain for releases 2026-10-08 06:32:58 -03:00
waozi 92130510d8 Provide font checks in isolated Linux package builders 2026-10-08 06:12:19 -03:00
waozi 71700229a3 Retain failed Pages web output for diagnosis 2026-10-08 05:57:49 -03:00
waozi e4e42f4880 Prepare dependencies for clean CI test runners 2026-10-08 05:24:38 -03:00
waozi 14a5383b34 Keep owner authorization IDs stable across storage reads 2026-10-08 04:37:57 -03:00
waozi 31c38e8b93 Show complete Telegram consent identities in Settings 2026-10-08 04:26:28 -03:00
waozi 5d2bbdadc6 Keep Telegram consent content within the scrollbar clip 2026-10-08 04:08:48 -03:00
waozi 49d94d7430 Prevent Telegram startup from saving owner app preferences 2026-10-08 03:47:24 -03:00
waozi adf7431ad4 Fix generated Telegram Mini App bootstrap quoting 2026-10-08 03:26:58 -03:00
waozi 28562a0a36 Link published Android downloads with a universal APK fallback 2026-10-08 03:17:48 -03:00
waozi 9874794062 Show Telegram recovery labels and complete approval fingerprints 2026-10-08 03:05:11 -03:00
waozi 9ac1270bb5 Package embedded web assets without requiring an external data file 2026-10-08 02:56:03 -03:00
waozi 664095e190 Release 2.1.19 with secure Telegram account setup 2026-10-08 02:46:54 -03:00
waozi 1d127c6503 Fix desktop window icon channel masks 2026-10-08 02:41:34 -03:00
waozi f250bcb0c8 Connect Telegram through verified scoped account authorization 2026-10-08 02:29:51 -03:00
waozi 0e8b5e4725 Unify the default palette and simplify app navigation and onboarding 2026-10-08 02:15:36 -03:00
waozi cb3d4c9079 Isolate Lumi private data and preserve legacy storage safely 2026-10-08 01:19:19 -03:00
waozi 87059a67bf Keep app behavior harnesses linked to current host capabilities 2026-10-08 01:18:07 -03:00
waozi 77016527bc Exercise Apps navigation in browser checks 2026-10-08 00:43:35 -03:00
waozi 803d5266f0 Start in Apps with ready bundles and default favorites 2026-10-08 00:22:40 -03:00
waozi aaed0c2d14 Show each app bundle size in the Apps library 2026-10-08 00:20:02 -03:00
waozi 081495a671 Arrange app favorites by dragging tiles in the launcher 2026-10-07 23:43:53 -03:00
waozi b0e3a807fa Use the toolchain fix for web directory reads 2026-10-07 23:01:52 -03:00
waozi 3302c98e32 Pin every app with a hold gesture in the launcher 2026-10-07 22:47:50 -03:00
waozi 989271d3e1 Add searchable app launcher and saved favorites dock 2026-10-07 21:31:20 -03:00
waozi 4200187a00 Design four Inbe app launcher concepts 2026-10-07 20:54:01 -03:00
waozi f7fc3ff223 Reduce Android startup work and show progress until the first frame 2026-10-07 20:42:28 -03:00
waozi 804d86f09d Open Lumi Telegram links directly in the Android app 2026-10-07 20:26:31 -03:00
waozi 2df0197470 Move Telegram sync into Settings and load Lumi history on scroll 2026-10-07 20:13:18 -03:00
waozi 0627f7dd37 Apply sync review choices directly below colored changes 2026-10-07 15:40:56 -03:00
waozi 06de5b2721 Ship compatible app bundles for Lumi text emphasis 2026-10-07 02:41:39 -03:00
waozi 59ed4e766b Format Lumi replies and save feature suggestions as feedback 2026-10-07 02:35:43 -03:00
waozi 8e12645767 Show Lumi progress charts and donation cards
Render account-scoped daily session, meditation, WHM retention and habit progress from saved data, with bounded chart snapshots and selectable values. Provide canonical Bitcoin and Monero donation actions in typed chat cards through the shared Lumi app tools. Preserve text history and translate the new UI in every locale.

Validation: native build and build laws; engine, chart, SQL and cell persistence checks; proof, sync recovery, version and locale gates; complete private-display UI suite including narrow cards, clipboard and URI routing; full-history performance and memory stability. Android, web runtime and live online-model invocation were not exercised. Changes are local and are not deployed.
2026-10-07 02:24:34 -03:00
waozi 1f67f8df52 Enable Lumi online conversation and shared app tools
Save the existing Lumi harness foundation separately from the progress-chart and donation-card extension. It provides account-scoped online conversation, validated app actions, offline feedback delivery, and the same tools for standalone and Harmony-hosted use.

Validation of the combined final working checkout: native build and build laws, cell and storage tests, proof mutations, sync recovery, version and locale checks, private-display Lumi UI checks, and full-history performance.
2026-10-07 02:21:28 -03:00
waozi 579ebeb531 Accept whitespace in Lumi server responses and tighten UI verification 2026-10-07 02:01:50 -03:00
waozi f060ec3988 Store Android artwork once and shrink offline practice packages 2026-10-07 02:00:52 -03:00
waozi bd4bbd4f73 Keep Lumi chat responsive and restore offline app navigation 2026-10-06 23:39:20 -03:00
waozi 69f83c616a Write timestamped Diary entries from multiline Lumi chat 2026-10-06 23:05:23 -03:00
waozi d828c0817b Add Lumi app tools and unify cell navigation and sidebar settings 2026-10-06 22:47:06 -03:00
waozi f82cf222ed Preserve all cell navigation slots and desktop choices at startup 2026-10-06 20:18:24 -03:00
waozi e9e93b609e Keep scale slider geometry fixed until release 2026-10-06 18:09:46 -03:00
waozi e5d2a49b45 Fix translation catalog lifetime and complete font coverage 2026-10-06 17:25:00 -03:00
waozi bde0598680 Add modular apps, signed package updates and synced app choices 2026-10-06 14:37:10 -03:00
waozi 8d86507d82 [skip ci] Build signed Moto APKs from verified release sources 2026-10-06 13:50:58 -03:00
waozi 56a269ff74 Verify complete embedded style payloads independently of selector order 2026-10-06 12:50:58 -03:00
waozi 61c6bab406 Complete release checks for current bundles, styles and translated fonts 2026-10-06 12:45:56 -03:00
waozi 8050af9df6 Run habit form regression checks through the packaged app bundles 2026-10-06 12:31:44 -03:00
waozi bd4b7b107e Build the algorithms exported by the pinned Oqs package 2026-10-06 12:24:43 -03:00
waozi 88a2f31385 Release 2.0.12 with Android graphics recovery and regression checks 2026-10-06 12:01:56 -03:00
waozi 016cb75c18 Restore Android images and retained frames when graphics resume 2026-10-06 09:23:30 -03:00
waozi fafa785611 Restore the original practice screen with padded centered headings 2026-10-06 00:37:17 -03:00
waozi d9f960ee26 Improve profile header typography and flower avatar detail 2026-10-06 00:14:23 -03:00
waozi eef1c98a1a Unify practice artwork, heading and Start in a responsive card 2026-10-05 23:55:15 -03:00
waozi 4cdb0394b7 Consume navigation clicks and return Data to its entry screen 2026-10-05 23:55:10 -03:00
waozi 9f8fc5bd48 Give practice headings room and frame artwork without cropping 2026-10-05 23:37:09 -03:00
waozi ca8e50bb12 Skip sync reviews when the merge preview has no changes 2026-10-05 23:26:11 -03:00
waozi d2dd96cf32 Explain sync changes without raw JSON or empty habit days 2026-10-05 21:07:19 -03:00
waozi 79688b9f4c Use the Ziran organization for Daochi Client 2026-10-05 20:55:14 -03:00
waozi 0e73811320 Start hosted practices and keep feature routes stable 2026-10-05 14:35:04 -03:00
waoziandClaude Opus 5.5 df0112dcf5 Stop flooding the log with DPI warnings on the SDL desktop
Inner Breeze asked raylib for the window's DPI scale every frame. raylib's
SDL2 backend has no such value: it returns 1.0 and logs "GetWindowScaleDPI()
not implemented" each time, 30 lines a second into the owner's log while the
app runs inside Harmony. SDL2 desktop builds now keep the 1.0 scale without
asking; their display density still comes from the SDL device host.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-05 12:16:11 -03:00
waoziandClaude Opus 5.5 ab8a354038 Keep background sync from freezing Inner Breeze inside Harmony
The owner saw Inner Breeze stop rendering inside Harmony. Its frame loop and
live-update worker were both waiting forever for the database connection,
held by a social-refresh worker that had already exited.

Settings write batches shared one depth counter across threads. When two
workers saved their sync session together, the second joined the first's
batch without its own BEGIN, so the first returned without COMMIT and exited
while its open transaction still held the connection. Each batch now holds
the connection for its own thread until it commits, a failed COMMIT rolls
back, and a failed sync savepoint release is rolled back too, so no worker
can leave the connection held.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-05 11:58:26 -03:00
waoziandClaude Opus 5.5 a19f1ee6ff Keep a waiting sync review from restarting sync every few seconds
When the server asked for a full snapshot that waits for the person's
review, the app kept its applied version behind the server's. Every
live-update greeting then looked newer, so an open desktop app synced again
every two or three seconds. The app now remembers the newest server version
it has received, also while a review waits, and only a newer version starts
a sync. Changes from other devices still arrive.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-04 21:19:25 -03:00
waozi cbdec667c6 Load Inner Breeze feature bundles from its portable root 2026-10-04 21:00:15 -03:00
waoziandClaude Opus 5.5 c58d4e602e Stop desktop Inner Breeze from syncing again every few seconds
The server greets each live-update connection with its current version.
The app treated that greeting as a change, synced, reconnected and was
greeted again, so an open desktop app downloaded all of its records every two
or three seconds. A greeting or event no newer than the last sync is now not
a change: the app waits and checks again, so changes from other devices still
arrive within seconds.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-04 20:53:20 -03:00
waoziandClaude Opus 5.5 1266c5378e Expect a rejected sign-in to retry in the sync recovery test
The recovery test still expected sync and social refresh to stop after a
rejected sign-in, which a9744124 changed to an automatic retry. It now checks
that a rejected sign-in retries on the usual schedule and still shows why,
and that a failure the person must fix, such as a signing error, still stops.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-04 20:53:20 -03:00
waoziandClaude Opus 5.5 a974412497 Keep syncing automatically after a rejected sign-in
When two sign-ins of one account overlapped right after an account was
attached, the server rejected one, and Inner Breeze stopped syncing until the
person reconnected by hand: the username and new sessions stayed on the
device. A rejected sign-in is now retried with a fresh challenge on the usual
schedule while the account key exists, and the sync status still shows the
failure until a sync succeeds.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-04 20:33:10 -03:00
waozi af112e4d25 Verify sync review inside the Harmony app host 2026-10-04 19:33:00 -03:00
waozi 2d78b1ac7c Keep expanded habit cards within their own column 2026-10-04 19:32:51 -03:00
waozi 13bbb79cf0 Reject incomplete sync review previews 2026-10-04 18:53:55 -03:00
waozi 63ba83aca6 Show exact sync review outcomes and preserve local edits 2026-10-04 18:44:39 -03:00
waozi 5cf7366861 Use the verified modal input fix from Kryon 2026-10-04 18:17:57 -03:00
waozi 51a93a19d9 Own persistent UI messages during portable app checking 2026-10-04 01:54:54 -03:00
waozi 621b181f34 Correct Sun Salutation necks and clean clothing edges 2026-10-02 18:20:42 -03:00
waoziandClaude Opus 5.5 747472ecb2 Upload store listing text with the Play screenshots
The Play upload script now also sends each Fastlane locale's short and
full description, keeping titles as they are on Play.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-02 18:15:06 -03:00
waoziandClaude Opus 5.5 f49e072148 Refresh store listing text and screenshots for the current app
Store screenshots now render at real phone and tablet density
(--screenshot-ui-scale), show the painted Wim Hof, Sun Salutation and
Meditation cards, an Upward salute pose and showcase habits instead of
test fixtures. Descriptions in all five store locales name the actual
practices, patterns and habit features. TODO.md tracks the marketing plan.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-02 18:10:41 -03:00
waozi 36d6f99de9 Stream large web assets within the website file size limit 2026-10-02 17:40:25 -03:00
waozi 28b5ab04ca Include all translated character glyphs and artwork test dependencies 2026-10-02 17:10:37 -03:00
waoziandClaude Opus 5.5 d125ce4f2d Ignore the local Wrangler deploy cache
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-02 16:57:43 -03:00
waozi 0e1f20e298 Add four selectable Sun Salutation characters with distinct outfits 2026-10-02 16:56:12 -03:00
waozi 53add1473d Use the standard native clock without portable symbol collisions 2026-10-02 14:59:31 -03:00
waoziandClaude Opus 5.5 53bf4f2eb2 Keep 1.8 themes and count 32-bit Android profile weeks
Settings last saved before 1.8.5 hold the picked theme without a theme
source, and the upgrade defaulted the source to System, which replaced
the user's theme. A theme picked there now stays the app theme.

Profile week stats declared mktime and difftime with a 64-bit time_t,
which is 32-bit on 32-bit Android, so every day fell outside the week
and active days and sessions read 0. Day offsets now use civil day
arithmetic. Verified by upgrading real Inbe 1.8.0 data to this build on
an armeabi-v7a Moto: theme, language, habits, counts, sessions and
settings carry over, and the week shows 6 active days and 1 session.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-02 14:23:52 -03:00
waozi 11bcaf4ee0 Describe verified Wim Hof customization fixes 2026-10-02 13:57:20 -03:00
waoziandClaude Opus 5.5 19d5411a24 Hold the Customize breathing preview under any covering modal
The preview paused only for the start-speed editor. Any modal other than
Customize itself now covers the page, and the preview holds still
behind it, as it does behind the music network-error dialog.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-02 13:56:48 -03:00
waoziandClaude Opus 5.5 843bd6fe66 Draw modal content inside Kryon modal panels again
Kryon paints overlays above page content, and the ModalPanel wrapper
dropped the panel node, so the start-speed editor, habit counter, theme
picker and app icon dialogs drew their content under the opaque panel
and looked empty. Kryon's ModalFrame now opens the panel scope itself;
those dialogs call it directly with Kryon's close glyph, and the other
modals stop pushing the scope a second time.

The breathing preview paints into the current widget scope, so the
start-speed editor shows its circle, and the Customize preview holds
still while that editor is open. Wim Hof sliders show their values,
Start Practice uses the large button size, and screenshot scenes cover
the start-speed editor and theme picker.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-02 13:49:15 -03:00
waozi b8efa68601 Pin validated safety fixes and wait for browser guide layout 2026-10-02 13:15:20 -03:00
waozi e1989a20aa Prepare 2.0.8 with Android startup recovery and upgrade regressions 2026-10-02 04:54:56 -03:00
waozi 0377b9181b Wait for decoded audio before clicking browser music controls 2026-10-01 18:38:13 -03:00
waozi 00fabf1981 Wait for app transitions before querying music controls 2026-10-01 18:26:27 -03:00
waozi f992a9180b Restore web audio and verify music across internal tabs 2026-10-01 18:13:11 -03:00
waozi 41df5d5dba Keep music playing across internal app tabs 2026-10-01 17:45:20 -03:00
waozi 7a1bf94ceb Measure web animation only during active playback 2026-10-01 15:34:22 -03:00
waozi 9ae46c627e Release Inner Breeze 2.0.7 with FreeBSD packages paused 2026-10-01 14:56:40 -03:00
waozi f5390d85a5 Simplify the Inbe landing page and practice flow 2026-10-01 13:48:29 -03:00
waoziandClaude Opus 5.5 a1260b624f Tuck the women's necks inside their round collars
In the half lift, both planks and upward dog the head tilts back up to 42°
from the spine, which swung Sunrise ponytail's and Sage bun's throats out
below the collar. Their necks now attach 11% down the torso, like the male
proposals' joined necks, so the neck stays inside the collar in every pose
while the standing neck keeps its length. Both women and the first male
are rerendered with the current sun salutation motion, so the paired loops
match again.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-01 11:51:34 -03:00
waoziandClaude Opus 5.5 50f3a8ed6d Slim the second male proposal's seat
His painted leg is about a fifth thicker for its length than the first
man's, with a pronounced rear curve, and the rig widened it further behind
the hip. Draw his leg at the first man's thickness without the seat
fullness, and re-render his loop, GIF, sequence and the review montage.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-01 11:11:59 -03:00
waoziandClaude Opus 5.5 3599bad770 Sweep sun salutation arms clear of the face and step without kicking
From prayer the hands open forward into straight arms that rise in front
of her, instead of sliding up across her face, and come down the same way.
The half lift keeps straight legs and a long back. Planting the hands now
uses long arms and soft knees with her head up, instead of folding her
face to the floor. A stepping foot skims the floor and travels while her
hips are high, leading hips that lower and following hips that rise, so
the leg reaches long instead of kicking up behind her.

Both renderers share the change; the app's frames are regenerated.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-01 11:09:46 -03:00
waozi 328b5aff3f Add paired male sun salutation proposals with joined necks 2026-10-01 10:53:09 -03:00
waozi 46a175fa34 Measure salutation timing after the resume gesture completes 2026-09-30 23:56:37 -03:00
waozi 550e00de88 Keep skipped release refreshes from cancelling site deployments 2026-09-30 23:47:05 -03:00
waozi 9dcecd6a50 Deploy the website independently with published download links 2026-09-30 23:43:43 -03:00
waozi f33b8a191d Add four banner-inspired animated character proposals 2026-09-30 23:13:42 -03:00
waozi 7e7f0329d4 Replace landing preview with the real mini app 2026-09-30 23:02:01 -03:00
waozi f11cbc80fb Deliver oversized web asset packages within the Pages limit 2026-09-30 22:34:16 -03:00
waozi f107b2a0df Use Waozi colors in opt-in mini previews 2026-09-30 22:05:30 -03:00
waozi 82ac24d32f Smooth Sun Salutation timing and foot transitions 2026-09-30 21:52:19 -03:00
waozi 573b632c41 Align Kryon and Game2D package names in the application lock 2026-09-30 17:48:33 -03:00
waozi 6339dab94c Tuck sun salutation neck beneath the shirt collar
Paint the face and neck before the shirt so the collar covers the neck base as the head turns. Keep the front hair above the shirt and regenerate all app animation frames.
2026-09-30 17:38:01 -03:00
waozi 85cd06159f Replace pixel sun salutation with smooth painted animation
Use 30 fps transparent frames across all twelve poses, fuller hips, and solid hand and foot contact drawings. Make practice Customize pages fill the view and simplify the session timer.

Verify frame timing, storage settings, native navigation, and session playback controls.
2026-09-30 17:10:34 -03:00
waoziandClaude Opus 5.5 305053dec5 Keep the sun salutation girl's top over her leggings
In plank, low plank and upward dog the leggings' waistband stuck out above
the back of her top, and in the fold, down dog and the lunges the seat ran
flush into the hem, so the top looked tucked into the leggings.

Above the hem the leggings are now clipped away behind her back, and the
lower top flares out over them, more at the back while she is upside down,
where it hangs away from her. Each leg's painted seat follows the pelvis
and bends round into the thigh, with extra rows across the joint and a
turn that stays round even when the hip folds all the way; the separate
hips piece and the sliding of the top are gone, since the bent seat forms
a smooth bottom in every pose. The Ziran renderer does the same.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-09-30 14:56:53 -03:00
waoziandClaude Opus 5.5 ecde810b97 Update Kryon: habit day dots and other rounded shapes are anti-aliased
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-09-30 13:07:47 -03:00
waoziandClaude Opus 5.5 45d118b733 Declare local flags as bool
`ziran check --lint` found three s32 locals that only ever hold 0 or 1
and are only compared with them: handled_screen, the desktop loop's quit,
and has_prev. They are bools now, set with true and tested directly.
The other quit, passed to the tray by pointer as an s32, stays.

Inbe checks with both the pinned 8bc31e8 and the current Ziran.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-09-30 08:00:44 -03:00
waoziandClaude Opus 5.5 bbf4f16b02 Write constant dispatch chains as if-cases
Seventeen if/else-if chains that compare one variable with three or more
constants now read as Jai's `if value == { case A; ... case; ... }`,
which Ziran checks as the same chain and compiles to a switch where it
can. Chains in procedures that also use opened enum members, or over an
enum with a plain else, stay as they are until the pinned Ziran includes
the fixes for those (008874f, 9fb3d30).

Inbe checks with both the pinned 8bc31e8 and the current Ziran, and the
app navigation, bottom navigation, text input, and sync review tests pass
with both. route_navigation_test.sh and settings_shell_test.sh fail as
they did before this change.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-09-30 07:47:36 -03:00
waoziandClaude Opus 5.5 bd2bb39f29 Let Ziran widen values without explicit casts
The pinned Ziran (8bc31e8) converts narrower numbers implicitly where no
value can change. `ziran check --lint` found seven casts that only widen
a whole initializer, argument, or result (s32 or u8 to s64, u32 to u64);
they are removed, with the parentheses they no longer need. Arithmetic
still happens in the narrower type first, as before. The two casts in
range headers stay for readability.

Inbe checks, and the settings cache, statistics date, and sync crypto
tests pass, with both the pinned and the current Ziran.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-09-30 07:30:16 -03:00
waoziandClaude Opus 5.5 5eef3ea535 Write compared characters as #char literals
The locale parser and settings cache compared bytes with character codes
written as numbers (45, 91, 48..57). `ziran check --lint` found 42 such
comparisons; they now read #char "-", #char "[", #char "0" and so on.
Control characters such as 9 and 10 stay numbers.

Inbe checks, and the locale parser, locale policy, and settings cache
tests pass, with both the current Ziran tree and the pinned 8bc31e8.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-09-30 07:24:07 -03:00
waoziandClaude Opus 5.5 a587b06673 Drop casts to a value's own type
`ziran check --lint` found 42 casts that convert a value to the type it
already has, such as cast(u8) on a []u8 element or cast(s64) on a count.
They are removed; nothing else changes. Casts that only widen are left
for when the pinned Ziran widens implicitly.

Inbe still checks with both the current Ziran tree and the pinned
package checkout (8bc31e8).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-09-30 07:19:11 -03:00
waoziandClaude Opus 5.5 85905afe96 Render the sun salutation girl from Ziran too
scripts/sun_salutation_girl.zi is the Ziran version of the Python girl
renderer: it reads the same rig JSON and painted parts, draws with Cairo,
and pipes frames to FFmpeg. scripts/render-sun-salutation-girl-zi.sh
builds it to Python with the pinned toolchain's zi2py and runs it.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-09-30 06:11:19 -03:00
waoziandClaude Opus 5.5 997a9163f1 Keep mini mode temporary and without a tray icon
Mini mode is a quick practice, so it no longer opens a tray icon and its
extra window, and it keeps nothing: finished practices, mood check-ins,
and changed settings stay in memory, and nothing is synced or counted
toward habits. The results page drops the save status and the mood
picker, which had nothing to record. Opening the full app from mini mode
saves as usual from then on.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-09-30 06:08:40 -03:00
waoziandClaude Opus 5.5 fb5134114d Open the practice Customize page again
The Customize page closed itself on its first frame because it treated
any drawn title bar as a press of Back. It now closes only when Back is
pressed, and its title bar shows the Back button again.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-09-30 06:08:40 -03:00
waoziandClaude Opus 5.5 6122de4296 Keep widgets drawn on animated screens
Since the previous frame could be reused, every screen that animates with
direct draws, such as the Wim Hof session and its Customize preview, lost
its text and controls: Kryon dropped the unchanged widget paint while Inbe
repainted for the animation. Inbe now tells Kryon whether it will reuse the
previous frame, and Kryon 001a2a20 emits the paint when it will not.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-09-30 06:08:40 -03:00
waoziandClaude Opus 5.5 ad7095ec7c Pass the Oqs package path to the title bar and navigation tests
Both compile sync_crypto_random.zi, which imports oqs/Oqs by its package
name since decfee42.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-09-30 01:54:51 -03:00
waoziandClaude Opus 5.5 685eb4e143 Build Windows again, for 64-bit Windows only
The Windows link failed on code that ELF links drop unused: MinGW's PE
linker reports undefined symbols even in dead functions. Ziran's file,
mapping, and curl modules now build for Windows (ziran 1a4bd23), and here:

- the CRT's _time64, _localtime64_s, and _gmtime64_s replace MinGW's
  inline-only localtime_s and gmtime_s;
- the density lock needs SDL, which the Windows build does not use;
- the pthread-based Android mutex compiles only for Android;
- the dead whm_session.session and its stale C names are gone;
- the native host declines net_http's blocking Send, which inbe never
  uses (native requests go through SendCurl);
- the link takes zlib from Ubuntu's MinGW zlib package.

The 32-bit build is dropped: Win32 APIs are stdcall there, and Ziran's C
output has no calling-convention support. The installer refuses 32-bit
Windows, and winget lists x64 only.

Tested under Wine: the screenshot scenes render, the data directory and
database are created, and the installer installs, runs, and uninstalls.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-09-30 01:54:51 -03:00
waoziandClaude Opus 5.5 333ba2f875 Animate the painted girl through the sun salutation
A new renderer draws the Codex-painted girl through Inbe's twelve steps
from a tracked rig: docs/sun-salutation-girl.json holds the poses, timing,
bones, camera and part key points. The upward salute folds as a swan dive,
the half lift steps back through a low lunge, lifted feet point along the
shin, the shirt always covers the leggings, and the layered head lets the
long hair fall behind a fully painted neck. Output is deterministic and
goes under build/.

Also track the first person-rig renderer and the tool that cut the
generated reference video into poses, and move the Ziran toolchain pin to
8bc31e8 so Python builds load LDLIBS libraries and pass C strings.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-09-30 01:53:35 -03:00
waoziandClaude Opus 5.5 decfee4212 Import Oqs by its package-qualified name
Oqs names its module file after its export, so Inbe imports it as
oqs/Oqs through a named module path, as project builds of other apps
do. The lock moves Oqs to that commit and keeps liboqs where it was.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-09-30 01:21:16 -03:00
waoziandClaude Opus 5.5 2fbebbec05 Sign accounts and draw random bytes through the Oqs package
Account key pairs, signatures, secure random bytes, and wiping secrets
now go through ziranlang/oqs, the Ziran binding for liboqs, instead of
Inbe's own OQS_* declarations and size_t shim. Inbe still builds the
same ML-DSA-44 liboqs from its locked source, which Oqs shares.

Every build and test that compiles the account modules finds the
package, and the account, device key, and Daochi tests stub liboqs by
its own names.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-09-30 01:10:36 -03:00
waoziandClaude Opus 5.5 7198ebc587 Build snap, flatpak, and FreeBSD packages from the fetched packages
- Kryon's library is built alone (libkryon.a), without its C++ and Go
  backend checks, so snap and flatpak builds no longer need Go.
- The flatpak keeps its fetched packages in the build directory; each build
  command runs in a fresh sandbox, so links into $HOME/.cache dangled.
- packages.sh builds the Ziran toolchain with GNU make, gmake on FreeBSD,
  where make is BSD make.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-09-30 01:06:03 -03:00
waoziandClaude Opus 5.5 a2fd6b63c8 Pin Ziran d4489a3, which proves the guide laws
The guide and pager laws are outside the pinned 18d60d0's compile-time
evaluator, so every build stopped at the proofs gate. d4489a3 proves all
eight law modules, and the desktop and web sources check with it. The
version test also copies mk/package-freebsd.mk, which the Makefile now
includes.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-09-29 22:20:58 -03:00
waoziandClaude Opus 5.5 e13d77aaaf Let snap and flatpak builds fetch their own packages
A snap or flatpak build starts from a copy of the tree without the host's
package links, which point into the host's cache anyway. Make checked the
build environment while first reading the Makefile, before it fetched the
packages, so it stopped on "libcurl >= 7.86.0 is required" by reading a
curl header that was not there yet. The checks now wait for the fetch. The
snap installs git for the fetch; the flatpak leaves the host build tree out
and may use the network while building.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-09-29 22:19:13 -03:00
waoziandClaude Opus 5.5 e228b1acc8 Build Windows raylib and FreeBSD packages without Kryon's old make files
Kryon deleted its legacy make fragments on 09-24, and Inbe still relied on
two of them: the MinGW raylib rule, so Windows builds found no rule for
libraylib.a, and package-freebsd.mk, which also provided install, stage,
and uninstall. Inbe now builds Windows raylib like the native library and
keeps the FreeBSD packaging rules itself. The FreeBSD VM also installs
git, which fetching the pinned packages needs.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-09-29 22:15:49 -03:00
waoziandClaude Opus 5.5 6f692b7e32 State guide and guide pager laws
The guide and guide pager laws that were Bend models on Kryon's old
.kry runtime are now Ziran laws on Inbe's guide code: which keys go
forward, back, and close, that a swipe blocks a keyboard finish, that
steps and pages stay in range, and how closing, finishing, and moving
between steps and pages decide. The proofs gate checks them on native
builds and Android builds.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-09-29 22:14:52 -03:00
waoziandClaude Opus 5.5 8a528a6e47 Keep CI toolchains per runner image and detect glibc without ripgrep
The Ziran compiler cache was keyed by OS family and CPU only, so jobs on
ubuntu-22.04 restored a compiler built on ubuntu-latest and failed with
"GLIBC_2.38 not found". The key now includes the runner image and its C
library. The build also detected glibc with rg, which runners lack, so it
silently dropped the __GLIBC__ define there; it uses grep now.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-09-29 22:11:51 -03:00
waoziandClaude Opus 5.5 493ad25947 Drop paths into the removed vendor trees
Kryon no longer vendors utf8proc, Monocypher, liboqs, or raylib; each is
its own Ziran package. The native build stops passing include paths and
a sync crypto list that point into Kryon's old vendor tree, the
secondary window test reads raylib's headers from its package, and the
Firefox add-on source zip leaves out liboqs's and raylib's docs, tests,
and examples from their package folders.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-09-29 21:44:41 -03:00
waoziandClaude Opus 5.5 5de8e26024 Center the Week and Calendar tab labels
Kryon 58c83781 centers segment labels that style sheets pad, so the
habit page's Week and Calendar tabs no longer sit right of center.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-09-29 21:37:33 -03:00
waoziandClaude Opus 5.5 8c2f07ae66 Show counts in the habit calendar and name its month
A counting habit's calendar day now shows its date above a dot with the
day's count, filled once the day reaches its target, like the week
markers. The calendar names its month in the app's language, such as
"September 2026" or "2026年9月", centered between the arrows, and a
habit's title sits level with the Back button.

The minus and plus steps beside Today and in the count dialog are drawn
as bars sized to their buttons instead of small "-" and "+" glyphs, and
the digits in a day's dot grow with the dot.

The month names that are the same in German and Indonesian as in
English are allowed to match it, and the CJK fonts now carry 年 and 년
for the month names.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-09-29 21:26:12 -03:00
waoziandClaude Opus 5.5 fc0729181e Pass the Ziran std path to every route catalog test step
Kryon's geometry module now imports math, so the bundle and native
steps failed to find it in source mode.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-09-29 21:20:06 -03:00
waoziandClaude Opus 5.5 d0613da5c4 Add a mini mode with only the practices
Inbe started with --mini, or opened with ?mini in the page address, shows
the practice start page, the practices, and their results: no navigation,
habits, lists, profile, settings, language picker, first-run guide,
donation reminder, breaks, reminders, update check, or sync. It opens on
Wim Hof. An expand button in the top-right corner (or next to a practice's
close button) opens the full app: a page opens it in a new tab without
?mini, and the desktop window grows into it in place. The desktop mini
window is phone-sized and quits on close.

Launch commands (?launch=...) are now removed from the address once run,
since route changes keep the page query and a reload would repeat them.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-09-29 21:14:33 -03:00
waoziandClaude Opus 5.5 ac944513cd Build KSS and the style packs from the KSS package
KSS moved out of Kryon into kryonlabs/kss. Inbe depends on it, compiles
it from build/packages/kss/src with --module-path kryon=... for its
Kryon imports, and embeds the style packs from build/packages/kss/styles
as styles/NAME.kss. The Android build, the source check, and the tests
use the same paths, and the lock moves Kryon and Ziran to the commits
that carry the move.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-09-29 21:09:07 -03:00
waoziandClaude Opus 5.5 6cd29b096c Add screenshot scenes for habit counts and the count dialog
habit_counts shows the counter habit expanded with a full day, a
partial day, and a two-digit count; habit_count_dialog opens the count
dialog over it for today.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-09-29 21:04:43 -03:00
waoziandClaude Opus 5.5 b19f3c4c4c Count habit days in a dialog and show counts without a check
A counted day's circle now shows only its count, centered in the circle
and drawn in a color that reads on the filled circle, instead of a check
with the number on top.

Tapping a counting habit's day opens a dialog with the day's count, its
daily target, and large minus and plus steps, instead of adding one per
tap. Days with linked practice sessions count up from those sessions,
never below them, and open the sessions from the dialog. For today the
habit card also has minus and plus buttons beside the Today count.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-09-29 20:55:49 -03:00
waoziandClaude Opus 5.5 28e90d8747 Reuse the previous frame when nothing drawn has changed
Direct draw calls are recorded into a per-frame plan. When both the
widget paint and the plan match the previous frame, the native host
presents the retained frame instead of repainting it.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-09-29 20:48:51 -03:00
waoziandClaude Opus 5.5 53b70d16d5 Keep CI toolchain caches complete and readably keyed
Jobs that only fetch packages saved the toolchain cache first, before
any job had built the compiler, so later runs restored a cache without
it. They now restore it without saving. Cache keys use runner.os, since
ImageOS is empty inside composite actions.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-09-29 19:36:06 -03:00
waoziandClaude Opus 5.5 9a243a8019 Speed up CI: shard the tests, build the web app once, cache toolchains
- make test runs as three parallel shards (scripts/test-shard.sh), so
  the test job takes about a third as long.
- One job builds the web app, packages it for Chrome and Firefox, and
  runs the smoke test in both, instead of two jobs building it twice.
- Emscripten is pinned to the version CI already used (6.0.10) and
  cached, including the libraries it builds on first use.
- The built Ziran compiler is cached by the toolchain commit instead of
  the whole lock, so a Kryon bump no longer rebuilds it.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-09-29 19:20:12 -03:00
waozi feab1a9350 Add sun salutation previews with fixed character proportions 2026-09-29 19:19:18 -03:00
waoziandClaude Opus 5.5 b193a2e726 Stop reading sync settings from SQLite every frame
The sync pump prepared SQL statements on every frame to read whether
sync is on, the server URL, and whether a sync review waits: about a
tenth of each frame on a phone. They are now cached until stored data
changes, using a revision that advances on every row change on the
app's connection (storage_data_revision, which session caches use too).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-09-29 19:16:59 -03:00
waoziandClaude Opus 5.5 70bedd0473 Build the browser add-ons beside the tests and run their smoke test once
The Chrome and Firefox jobs waited for the whole test job before
starting, so a CI run took the two back to back. They now start with it.
The Chrome job also rebuilt the web app through make web-canvas and ran
the same canvas smoke test twice more.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-09-29 19:09:24 -03:00
waoziandClaude Opus 5.5 7bf57c56d5 Update Kryon: quick taps during slow frames are no longer dropped
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-09-29 19:02:43 -03:00
waoziandClaude Opus 5.5 6c47e79b09 Give a habit separate view, statistics, and edit pages
Opening a habit showed a tab-like row of Week, Calendar, and Current
streak buttons with New habit and Edit habit under it, so switching the
view, reading statistics, and editing were mixed on one screen.

The habit view now has only Back, the habit's name, and one Week or
Calendar switch. Statistics is its own page with Back and its own title,
and editing stays on the edit page reached from the habit card. New
habit lives only on the habits overview.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-09-29 19:00:48 -03:00
waozi 28759c07e3 Add selected cartoon-pixel sun salutation animation drafts 2026-09-29 18:42:58 -03:00
waoziandClaude Opus 5.5 9ea2e00696 Make Inbe fast and correctly sized on phones, on Kryon's Material theme
On a Moto e6 Play, Habits scrolled at about 4 fps and buttons were drawn
three times their size. The phone's density was applied twice (by the
render scale and again by app metrics), the whole stylesheet was parsed
every frame, and each habit marker reloaded every session from SQLite
while checking a change clock that ran a query.

- App metrics no longer rescale by the density; the render scale does it.
- The style is installed only when the theme, dark mode, or style pack
  changes, and body text follows the theme's Text size.
- Session records are cached once per database change, and the change
  clock counts row changes on the connection instead of querying
  MAX(updated_at), which missed writes within the same second.
- Route fades run at the active frame rate, so tab switches are smooth
  and taps are not dropped while the fade holds input.
- The bottom bar takes its height from Kryon's Material 3 navigation bar.
- Android clears the system bar strips black through Kryon.
- Generic styling moved into Kryon's default material theme; inbe.kss
  keeps only Inbe's own classes.
- Kryon and the Ziran toolchain are updated.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-09-29 18:16:17 -03:00
waoziandClaude Opus 5.5 910902d5cc Count a pending route fade as running in the web test hook
A route change starts its fade on the next frame and ignores input while
it runs. The smoke test waited only for a running fade, so a click sent
between the request and the first fade frame was dropped. Also update
Kryon, which no longer flashes a blank frame when a screen awaits an
image.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-09-29 17:18:09 -03:00
waozi 779413138e Explore clean cartoon and pixel sun salutation characters 2026-09-29 16:46:34 -03:00
waozi 009263e870 Explore ten generated styles for the first sun salutation frame 2026-09-29 16:34:20 -03:00
waozi 28ece54b9f Add complete sun salutation videos in separate light and dark themes 2026-09-29 16:23:30 -03:00
waoziandClaude Opus 5.5 a9f3646f8c Drop the removed scroll input tests from make test
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-09-29 16:13:39 -03:00
waoziandClaude Opus 5.5 6605d396dd Use Kryon's scroll device: momentum, wheel glide, full canvas text
Scrolling now comes from Kryon, which observes the pointer for every
list by itself. Flicked lists keep coasting, wheel steps glide instead
of jumping, and dragging a list no longer presses the button under the
finger. On the web, arrows, ellipses, and non-Latin text such as the
profile cards' chevrons draw as themselves instead of ?.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-09-29 16:08:03 -03:00
waoziandClaude Opus 5.5 90c36f55d5 Trim unused library resources and metadata from the Android APK
Keep Firebase and AndroidX resources only in the app's own languages
(Play build: 88 resource locales down to the app's 12) and leave out
protobuf schema sources and Kotlin reflection metadata files.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-09-29 15:44:11 -03:00
waoziandClaude Opus 5.5 d1a6db792a Fix the Android release build and use Kryon's Android CMake helpers
The Android release step called a Kryon embed script that no longer
exists, so 2.0.x Android builds (and F-Droid's prebuild) failed. The
prepare script now fetches the locked packages the CMake build needs.

The native build uses Kryon's kryon_android_raylib and kryon_android_app
instead of its own copy of those settings, and no longer embeds the
unused banner.png copies of banner-light.png (~0.5 MB per ABI).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-09-29 15:36:31 -03:00
waoziandClaude Opus 5.5 12fb43d300 Update Kryon: canvas text no longer clipped or missing
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-09-29 15:25:47 -03:00
waoziandClaude Opus 5.5 dbe11dffbb Make practice carousel swipes work and fix web screen hooks
The practice home carousel passed an empty pointer frame to Swipe and
dropped the gesture state, so swiping between practices never worked.
It now uses the app's pointer frame, as the manual screen does.

Web hooks that change the screen between frames now tell the router, so
the next frame's URL sync no longer switches the screen back. The habits
click target reads the first habit's today marker again instead of a
guide anchor the overview never sets.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-09-29 14:46:18 -03:00
waoziandClaude Sonnet 5.5 61d7d0dbb0 Have the web smoke test wait on the app's route transition state
The app now reports whether a route fade is running, and the smoke test's click
helper waits until it is not, instead of guessing with fixed frame counts.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-09-29 11:16:12 -03:00
waoziandClaude Sonnet 5.5 fe43032ccc Let the route fade finish before the smoke test's next guide click
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-09-29 10:55:31 -03:00
waoziandClaude Sonnet 5.5 d3b5cb815b Port the sync recovery test to Ziran and put it back in make test
The legacy C test included a generated app_sync.c that no longer exists. The
Ziran test runs the same retry, backoff, social retry and status-line checks
against app_sync with the storage layer replaced by in-memory settings.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-09-29 10:33:41 -03:00
waoziandClaude Sonnet 5.5 e2ff252eec Build the web extensions on Kryon's canvas backend
The web link takes Kryon's canvas window, draw, input, texture, audio, raster
and route modules instead of the deleted JS hosts, builds liboqs for
WebAssembly, and no longer pulls the native raylib runtime into the page.
Foreign declarations that shared a name with a canvas function are renamed to
the same C symbol under a different Ziran name, main takes no arguments on web,
and the Ziran and Kryon pins move to the commits that add the missing pieces.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-09-29 10:29:24 -03:00
waozi ea24cd0e6f Fix Android build law check and raylib package path 2026-09-29 10:05:45 -03:00
waoziandClaude Sonnet 5.5 b83d2a35cd Start moving the web build onto Kryon's canvas backend
Allocator sizes use usize so the generated C matches wasm32's size_t, the web
link uses Ziran's web runtime instead of the deleted Kryon JS hosts (and exports
FS), and the native-only screenshot declarations are left out on web.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-09-29 01:36:47 -03:00
waoziandClaude Sonnet 5.5 e7bf8829ec Use Kryon's canvas backend modules for the web build
src/main.zi and the raylib host imported a canvas_runtime.zi that no Kryon
release has. On web they now import the canvas window, draw, input, texture and
host modules, and the native raylib runtime is left out.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-09-29 01:15:33 -03:00
waoziandClaude Sonnet 5.5 c83b05f1ac Take the unbuildable sync recovery C test out of make test
It includes the generated app_sync.c, which the Ziran port stopped producing.
The retry decisions it exercised are covered by sync-retry-zi-test; the target
stays until the rest is ported to a Ziran test.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-09-28 23:37:00 -03:00
waoziandClaude Sonnet 5.5 3077f00966 Take raylib from its Ziran package and move Kryon to the release that ships it
The app source imports Kryon's frame transitions, which only exist in Kryon
releases where raylib is a locked package instead of a submodule. Link that
package and point the raylib build and includes at it.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-09-28 23:24:11 -03:00
waoziandClaude Sonnet 5.5 e8dfd3db3d Keep inbe.kss starting with its first rule; declare panel tokens where they are first used
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-09-28 23:12:28 -03:00
waoziandClaude Sonnet 5.5 1f5a2a6c6d Define the panel tokens the title bars use so Classic and Lightfield install
The refined title bars use panel, panel-hover and panel-pressed, which only the
Material pack defines, so choosing Classic or Lightfield failed to parse and left
the previous style installed. The fallback values are replaced by the theme's own
colors like every other token.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-09-28 23:03:27 -03:00
waoziandClaude Sonnet 5.5 4175783d93 Pin Kryon to the commit with DPI zoom and the opaque Lightfield popup
The app's DPI zoom and Lightfield style overrides need ZoomDPI, RaylibSetZoom and
the popup token, which the previously locked Kryon does not have.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-09-28 22:53:13 -03:00
waoziandClaude Sonnet 5.5 d527f78a8d Fix tests that only passed on stale local build directories
The export filename test linked the renamed layout.c, and the DPI test linked a
raylib_game.c that no longer exists and needed a RaylibSetZoom stub.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-09-28 22:45:11 -03:00
waoziandClaude Sonnet 5.5 39a2c2e1b0 Link storage_layout.c in the archive file test
The generated layout module was renamed; a stale build directory hid it locally.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-09-28 22:36:58 -03:00
waoziandClaude Sonnet 5.5 529e8aac90 Link the locale lookup into the music library test
The custom audio title now comes from the locale catalog, so the test needs
LocaleText and stubs for the embedded asset table.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-09-28 22:28:58 -03:00
waoziandClaude Sonnet 5.5 f17fed4326 Install fontTools for the glyph coverage test
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-09-28 22:22:26 -03:00
waoziandClaude Sonnet 5.5 da62a1a546 Add a promo_habits screenshot scene with a realistic habit set
The existing habits fixtures stay untouched because tests rely on them;
promo_habits renames the extra habits and seeds a natural mix of completed
days for store and promotional captures.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-09-28 22:19:31 -03:00
waoziandClaude Sonnet 5.5 d6801e3316 Install SDL2 and GL headers for the tests that build raylib
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-09-28 22:18:37 -03:00
waoziandClaude Sonnet 5.5 85813b4c1f Cache the second Ziran build the tests make
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-09-28 22:12:16 -03:00
waoziandClaude Sonnet 5.5 c0dc855f77 Build raylib before the Ziran behavior tests that link it
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-09-28 22:12:08 -03:00
waoziandClaude Sonnet 5.5 871ea723bb Cache the Ziran toolchain and package sources; run tests beside the secret scan
Every job rebuilt Ziran and re-cloned Kryon, curl, sqlite, and liboqs, about three
minutes each. A shared step now caches both by the hash of ziran.lock. In CI the
tests no longer wait for the secret scan, since CI publishes nothing.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-09-28 22:11:46 -03:00
waozi 529512c48d Fade route changes over retained frames 2026-09-28 21:21:17 -03:00
waoziandClaude Sonnet 5.5 cf270ba04b Track the Ziran master ref again so ziran.toml matches ziran.lock
The lock pins a commit newer than v0.2.0 (forall laws), so the manifest must
name master or the locked fetch fails with 'dependencies differ from ziran.lock'.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-09-28 20:34:28 -03:00
waoziandClaude Sonnet 5.5 e366faee1f Remove breath sound generator; keep the original breathing sounds
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-09-28 20:24:13 -03:00
waoziandClaude Sonnet 5.5 bab3db1c26 Prove dialog placement rules and pin a Ziran with sequence laws
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-09-28 19:44:27 -03:00
waoziandClaude Sonnet 5.5 11867cf71c Prove that restoring an account queues every local change
Restore clears the upload queue and queues all local data again. Four laws
state that no local entity is left unqueued and none is invented, and a test
runs the real restore SQL on every subset of already-queued entities.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-09-28 19:42:58 -03:00
waoziandClaude Sonnet 5.5 3ac1f58405 Prove the habit merge rule and check the real SQL against it
The merge takes the larger value for every day, so it keeps both sides,
invents nothing, and gives the same result in any order or grouping. Seven
laws prove this for every three-day sequence, and a test runs the real merge
SQL on all 729 pairs and requires the same behavior.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-09-28 19:40:50 -03:00
waoziandClaude Sonnet 5.5 8128a83c4c Replace legacy C tests with Ziran/Python tests
Port the practice pager test behind recording widget doubles, wire the
new behaviour tests into the Makefile and delete the C tests they replace.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-09-28 19:40:14 -03:00
waoziandClaude Sonnet 5.5 4ce7121044 Port habit form, session results and sync server tests to Ziran
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-09-28 19:35:02 -03:00
waoziandClaude Sonnet 5.5 842543c6cb Update the build laws plan for lifecycle and recovery laws
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-09-28 19:33:32 -03:00
waoziandClaude Sonnet 5.5 0a25f04da5 Decide sync recovery in a checked pure policy
A response for a switched account or server is never applied, and a partial
social refresh ends on a failed required stage instead of replacing known
friends, dropping only the optional statistic that failed. Thirteen laws
prove this for every stage and flag combination.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-09-28 19:33:18 -03:00
waoziandClaude Sonnet 5.5 f8c4513d2c Decide practice lifecycle behavior in a checked pure policy
Desktop focus loss cannot pause a practice, a user pause is never resumed by
the lifecycle, and mobile background transitions keep the timer only with
permission and a visible indicator. Android applies the decision and twelve
laws prove it for every input combination.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-09-28 19:29:45 -03:00
waoziandClaude Sonnet 5.5 838fbd3ea6 Pin a Ziran toolchain that checks forall laws
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-09-28 19:25:32 -03:00
waoziandClaude Sonnet 5.5 2797478457 Check build laws with Ziran instead of Bend
Sync retry and the private-data layout are ordinary Ziran modules with
#law obligations checked by ziran check. The Bend proofs, Node generators,
pinned Bend dependency and Node build tool are removed, and a mutation test
shows each law rejects a deliberately broken implementation.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-09-28 19:23:19 -03:00
waoziandClaude Sonnet 5.5 a1ef965a0a Port the break engine and settings key tests to Ziran and Python
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-09-28 19:21:56 -03:00
waoziandClaude Sonnet 5.5 83733697ab Regenerate font subsets for the current locales; port font, locale and storage path tests
The Chinese profile picture string used a character (U+50CF) that no shipped font contained. New glyph coverage and locale key tests replace the old C ones; storage path scenarios run as Ziran processes.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-09-28 19:19:47 -03:00
waoziandClaude Sonnet 5.5 2a9cf6dc16 Fix habit day-save dirty flag and date/duration padding; port the habit model test
The dirty flag was set when a day save succeeded instead of when it failed, and dates and durations lost their zero padding.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-09-28 19:16:48 -03:00
waoziandClaude Sonnet 5.5 17a8c616a8 Port more storage, habit and breathing tests to Ziran; fix habit record merging and the legacy path list
Habit records from a sync response are now applied together, so habits sharing a name merge with their days instead of orphaning them. LegacyPaths now matches raylib's FilePathList so the legacy scan reads the real count.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-09-28 19:15:10 -03:00
waoziandClaude Sonnet 5.5 3cba691a49 Pin the Ziran toolchain to release v0.2.0
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-09-28 19:12:22 -03:00
waoziandClaude Sonnet 5.5 108e4775b6 Translate the custom audio title in every language
An untitled custom sound or track now takes its name from the current language
instead of a fixed English default. The default is no longer saved as text, and
saves that stored the English default are read the same way.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-09-28 19:04:14 -03:00
waoziandClaude Sonnet 5.5 02b90adeb8 Fix deleted sync records and long ciphertexts; add sync deletion and counter tests
Deleted encrypted records were serialised with a stray comma (invalid JSON), so deletions could not sync, and ciphertext hex was cut at 4096 characters.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-09-28 19:04:01 -03:00
waoziandClaude Sonnet 5.5 6c84ebe030 Fix sync and import regressions from the Ziran port; port storage tests to Ziran
Found by running the old storage tests as Ziran behaviour tests against real SQLite: encrypted habit/habit-day/session/list records were serialised without most fields (malformed JSON, so habits could not sync between devices); the remote habit apply SQL was truncated to 2048 bytes; check-in import queries lacked their SELECT prefix. Adds sync round-trip, payload, habit and import tests.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-09-28 19:02:49 -03:00
waoziandClaude Sonnet 5.5 c8efea2e2f Translate the profile picture dialog title in every language
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-09-28 19:02:45 -03:00
waoziandClaude Sonnet 5.5 058afcf19b Document the untranslated-string test
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-09-28 19:00:55 -03:00
waoziandClaude Sonnet 5.5 72c7ca0286 Pin the Ziran toolchain to the commit whose clean build links
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-09-28 18:57:02 -03:00
waoziandClaude Sonnet 5.5 6758780183 Stop tracking the leftover vendor/kryon gitlink
Dependencies are Ziran packages; a gitlink without a .gitmodules entry breaks
fresh checkouts.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-09-28 18:55:35 -03:00
waoziandClaude Sonnet 5.5 d7eb388daf Translate remaining English strings, enforce it with a test, and fix CI
Every locale string that matched English by accident is now translated in French,
Italian, Portuguese, Indonesian, and German. tests/locale_translated_test.py
fails on any new untranslated string, and on allowlist entries that have since
been translated. The stale submodule entries are removed, since dependencies are
Ziran packages, and the toolchain pin moves to a Ziran commit whose clean
parallel build links.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-09-28 18:55:19 -03:00
waoziandClaude Sonnet 5.5 78bf4f81e0 Keep dropdown menus opaque in the Lightfield style
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-09-28 18:55:17 -03:00
waozi ff68e1b8b3 Refine shared title bars and session controls 2026-09-28 18:52:43 -03:00
waoziandClaude Sonnet 5.5 f3e3f55cbe Replace legacy sync_account and activity_monitor C tests; fix three storage regressions they exposed
The Ziran sync_account test runs account import/export, migration, payload and account-switch behaviour against a real SQLite database pinned to a temp APP_DATA_ROOT. It found regressions from the Ziran port: the meta text buffer aliased the 64-byte user id buffer (corrupting the current user id on any meta read), the sync record key used only 32 bytes of the account private key instead of all 2560, and storage_init no longer ran the sync-enabled flag migration. The activity_monitor C test tested a Kryon C monitor that no longer exists; tests/activity_host_zi_test.sh covers the Ziran host.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-09-28 18:48:19 -03:00
waoziandClaude Sonnet 5.5 f9913eddb7 Update Kryon for wrapping Japanese and Chinese text
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-09-28 18:47:24 -03:00
waoziandClaude Sonnet 5.5 ba07c4d563 Translate the strings that were still English in every language
About 100 strings added with recent features were English placeholders in
all eleven other languages: the audio sounds and import buttons, desktop
startup and close options, breathing patterns, sync alias, the tray menu,
weekday names, export, and the donation reminder. Each is now translated in
Czech, German, Spanish, French, Indonesian, Italian, Japanese, Korean,
Portuguese, Russian, and Chinese, reusing the app's existing wording where
the same text was already translated. Brand names stay as they are. The CJK
subset fonts are regenerated for the new characters.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-09-28 18:47:22 -03:00
waozi f99157cc3e Refresh Profile, Lists, Habits, and Practice pages 2026-09-28 18:41:38 -03:00
waoziandClaude Sonnet 5.5 c88f9eed06 Update Kryon for measuring buttons by label
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-09-28 18:34:35 -03:00
waoziandClaude Sonnet 5.5 fb80f5e0d4 Size Settings buttons from their labels so translations are not cut off
The Play, Import sound, and Remove buttons had fixed widths, so a longer
translation was clipped (Russian "Воспроизвести" showed as "Воспроизвест").
Each now takes the larger of the width the layout reserved and the width
Kryon measures for its label, and the picker or title beside it gives up
the room.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-09-28 18:34:33 -03:00
waozi b12a05f2f1 Keep Profile header above scrolling content 2026-09-28 18:27:42 -03:00
waoziandClaude Sonnet 5.5 1cd6a4c1f7 Update Kryon for zoom and the Ziran-only sources
Kryon now provides the zoom module the app uses for Ctrl and the mouse
wheel, the DPI zoom that scales everything drawn, and font rebaking at the
scaled size.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-09-28 18:19:40 -03:00
waoziandClaude Sonnet 5.5 5ffd6f861a Zoom the whole app with Ctrl and the mouse wheel
Ctrl with the wheel, or Ctrl with plus, minus, or zero, now steps the UI
scale setting the Appearance slider edits, so the wheel moves the slider,
persists, and scales the entire app like a browser page zoom. Kryon's zoom
decides when the wheel means zoom and takes the wheel away from scrolling;
the frame stores the result in ui_scale_tenths (50% to 250%) and hands it to
the DPI state, where the zoom multiplies the display density: everything
drawn scales, including widget text, and the layout is the window divided by
the result, so the navigation switches between rail and bottom bar as it
does when the window gets narrower or wider. The raylib runtime rebakes
fonts at the scaled size so text stays sharp.

The Appearance scale slider only moved the navigation breakpoint since the
Ziran port; it scales the app again.

app_zoom_behavior covers the policy on source, saved IR, C, C++, and Go;
native_zoom_test drives the real binary on a private display with the wheel
and keys, checks the layout scale, and reads the saved setting.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-09-28 18:19:08 -03:00
waozi 59ee3d24b1 Improve Settings and profile visuals and Customize navigation 2026-09-28 18:00:59 -03:00
waoziandClaude Sonnet 5.5 e5d94569d0 Include the generated timer host header in the timer host test
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-09-28 17:17:21 -03:00
waoziandClaude Sonnet 5.5 dbf802f809 Update the audio runtime test to the native type names
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-09-28 17:17:14 -03:00
waoziandClaude Sonnet 5.5 a91426bd90 Update the legacy session test for current Ziran output
Foreign imports keep their C names as asm labels now, so the test takes
the time function from the module that defines it, declares zlibVersion
itself, and links Ziran's file module that its zip code uses.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-09-28 17:16:58 -03:00
waoziandClaude Sonnet 5.5 bf2b3ec0e3 Let the break stats link test use the vendor SQLite constants
The generated SQLite module and the vendor header define the same
constants with different spellings, which the test's -Werror rejects.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-09-28 17:16:34 -03:00
waoziandClaude Sonnet 5.5 400a8e516d Drop the hand-written Android timer header
The Ziran timer host generates the same declarations, and the old C
header shadowed the generated one so the timer test could not compile.
The test includes the generated host header instead.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-09-28 17:15:46 -03:00
waoziandClaude Sonnet 5.5 108b3af91c Link Ziran's math module in the scroll link test and clear stale Android output
Kryon geometry calls Ziran's math module, which the scroll input link
test neither put on the module path nor linked. The Android JNI test
reused its output directory, so files from an earlier naming layout were
compiled again and failed; it now starts from an empty directory.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-09-28 17:11:59 -03:00
waoziandClaude Opus 5.5 e1d856c79a Bring route, settings, and language tests up to date
The route host test checks web routing but built the host without the
web define, so every route query came back empty; it also links Ziran's
byte text module now. Settings and language tests put Kryon's style
sheet modules on the module path, expect the current switch width, and
give the settings mutation test the line host its section dividers use.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-09-28 13:07:56 -03:00
waoziandClaude Opus 5.5 b07e8810ea Link Ziran's byte text module into text link tests
AppTextFromCString now reads the buffer in Ziran through byte_text_linux,
so the text, list screen, and raylib text input link tests build that
generated module instead of stubbing the old C host function.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-09-28 13:05:37 -03:00
waoziandClaude Opus 5.5 4f13f01ccb Read bounded C text in Ziran and bring Ziran tests up to date
AppTextFromCString reached a C host for work the app's own Ziran code
already does, so every test that touched text had to stub it in C. It
now reads the bounded buffer directly and the C export forwards to it.

Tests failed on current Kryon and Ziran: Kryon geometry imports Ziran's
math module, which several test scripts did not put on the module path,
enum members now need their using declaration, and the device policy
test lacked the font metric host its text measurement reaches.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-09-28 12:57:10 -03:00
waoziandClaude Opus 5.5 0beb8868d9 Match the sessions tile icon to the other profile tiles
The sessions tile tinted its icon with the link color, a dark navy in
the app themes, so it showed as a black circle beside the light accent
icons of the neighbouring tiles.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-09-28 12:50:21 -03:00
waoziandClaude Opus 5.5 934366bf76 Fill in counts in sync and data messages
Three messages used %lld, which the app's formatters do not substitute:
clearing data announced Deleted %lld sessions, upload progress appended
the count after the raw placeholder, and sync status showed a bare
number with no label. They use %d now, the queued count and deleted
count are formatted into their messages, and Italian round labels get
back the round number and time they had lost. The locale test now also
checks that each translation keeps its English placeholders.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-09-28 12:49:19 -03:00
waoziandClaude Opus 5.5 8ea8894f07 Tidy the break overlay layout
Practice shortcuts measured their labels at one size and drew them at
another, so the labels spilled out of their chips. The title, countdown,
and notes were centred by widths measured with the wrong font, and each
action button treated the start of its slot as its centre, leaving them
misaligned and uneven. Text now centres in the panel, the actions share
one width, and the shortcuts are rounded chips with fitting labels.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-09-28 12:46:39 -03:00
waoziandClaude Opus 5.5 888c57e216 Show the mood faces on the results check-in buttons
The faces were drawn immediately while their buttons were queued, so
every button painted over its face and the How did you feel? choices
were blank. The faces now use queued paint and land on top.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-09-28 12:43:45 -03:00
waoziandClaude Opus 5.5 446d7ba73e Stop habit statistics from crashing and add missing labels
Opening a habit's statistics aborted the app when checked-in sessions
had no before-mood, energy, or stress rating, because the averages
divided by a zero count. Averages now skip empty groups and keep their
fraction instead of truncating to whole numbers.

The habit edit button and the sync review dialog showed raw locale keys;
they are now translated in every locale, along with the sync review
message, and a test checks that every key the app uses exists in every
locale. Habit statistics and calendar screenshot scenes now select a
habit so they show those views.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-09-28 12:42:22 -03:00
waoziandClaude Opus 5.5 786aa6cca7 Show the practice manual and settings opened from How to
With the practice manual or configuration modal open, the practice page
also drew the same manual under it, so its widgets repeated their keys
and the whole frame was rejected, leaving a blank screen. Those modals
now cover the page like the start speed editor, and rejected frames log
the widget key and kind that caused them.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-09-28 12:35:58 -03:00
waoziandClaude Opus 5.5 3dd7f1c67d Match cast asset table entries in the embedded image check
The asset table now writes each path behind a byte-pointer cast, so the
check reported every embedded image as missing.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-09-28 12:30:13 -03:00
waoziandClaude Opus 5.5 9a73f8287f Give build gate tests a complete scratch project
The version and sync-retry gate tests linked Ziran packages into
build/packages without creating it and left out the package manifest
and mk/sync.mk, so Make stopped before reaching the gate being tested.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-09-28 12:29:12 -03:00
waoziandClaude Opus 5.5 279341cbe5 Group break settings into sections
Timer status with Rest break now, general break options, each timer, and
the weekly summary each sit in their own section with label-beside-control
rows, instead of one long stack of floating headers and controls.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-09-28 12:25:15 -03:00
waoziandClaude Opus 5.5 64726e6c83 Group audio settings into sections
Audio settings sit in Output, Sounds, and Music sections. Each sound cue
is one row with its picker, Play, and Import instead of a picker and a
full-width import button per cue, and music tracks use the same list row.
Preview buttons say Play or Stop rather than the practice start label,
soft remove buttons use a light danger tint instead of a dark block,
and the pause label is translated in every locale.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-09-28 12:23:23 -03:00
waoziandClaude Opus 5.5 1af803c684 Center the about text and add audio and breaks screenshot scenes
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-09-28 12:18:03 -03:00
waozi fbb84fd8ce Polish first-run guide focus and navigation 2026-09-28 12:13:14 -03:00
waoziandClaude Opus 5.5 e9f90216c1 Group appearance settings and show the mode and scale labels
Appearance settings sit in Theme and Layout sections with each label
beside its control. The theme mode picker lost its Follow device label
and the scale factor never showed its percentage because both texts
were formatted into a stack buffer that was gone by paint time; they
now live in frame text. Customize Nav is a regular row action instead
of a large accent button.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-09-28 11:59:53 -03:00
waoziandClaude Opus 5.5 e58742909f Group notification settings into sections
Notification switches and the test button share a card, and each
reminder is one row with its switch, practice, time, and remove action
instead of an unlabeled switch floating under a full-width picker.
Narrow screens split a reminder over two lines.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-09-28 11:53:07 -03:00
waoziandClaude Opus 5.5 b91804a656 Group device settings into titled sections
Device settings were a flat stack of floating labels, full-width
dropdowns, and a lone checkbox. They now sit in Language, Display,
Window, and Playback sections with each label beside its control, a
divider between rows, and switches for every on/off setting. The
language picker is disabled while the system language is used, and
switch knobs stay white on every color theme.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-09-28 11:49:00 -03:00
waoziandClaude Opus 5.5 666cf6dec4 Rebuild every Ziran tool together
Only zi2c and zi2zir were rebuilt when Ziran changed, so tests that run
the whole toolchain mixed a new zi2zir with an old ziran and failed with
an unsupported ZIR version.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-09-28 11:49:00 -03:00
waozi 3232483494 Keep Wim Hof session progress active through exit prompt 2026-09-28 11:45:18 -03:00
waoziandClaude Opus 5.5 560bfd14e3 Compile native sources to reusable objects in parallel
The native build handed every generated module, SQLite, and the embedded
assets to one compiler call and wiped and re-touched the generated tree
first, so any change recompiled everything on one core. Generation now
updates the tree in place and prunes stale files, and each source builds
its own object with header dependencies, so rebuilds recompile only
what changed and use every core.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-09-28 11:21:32 -03:00
waozi 8b82d6ccca Fix Customize Nav click carryover 2026-09-28 03:00:14 -03:00
waozi 6458781bfb Enlarge the desktop profile avatar 2026-09-28 02:38:37 -03:00
waozi 3e37e8d9dc Fix habit summary and expanded card bounds 2026-09-28 02:01:56 -03:00
waozi d7ee514132 Fix habit expansion and compact readability 2026-09-28 01:52:26 -03:00
waoziandClaude Opus 5.5 c8a45734eb Use Kryon's tray instead of a private copy
The GTK/AppIndicator and Win32 tray backends moved into Kryon as the Ziran
`tray` module. Inbe keeps only its menu, actions, and status text in
desktop_tray.zi. Kryon picks StatusNotifierItem or a GTK status icon at
runtime and loads GTK only when the tray opens, so the build no longer
probes pkg-config for AppIndicator or links it.

On desktops with an AppIndicator host (GNOME, KDE, Xfce), closing the
window now hides Inner Breeze to the tray: the tray reports itself visible
once a StatusNotifierWatcher accepts it, where it previously never did.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-09-28 00:56:19 -03:00
waozi 9fd589f704 Pin Kryon focused library build 2026-09-28 00:45:52 -03:00
waozi 1c3e45f824 Use focused Ziran tools and pin Kryon visual fixes 2026-09-28 00:42:47 -03:00
waozi 366e9e0a3b Pin Ziran text borrow source tracking 2026-09-27 21:11:25 -03:00
waoziandClaude Opus 5.5 bd42eff987 Let Cancel close the exit-session dialog
Each branch declared a new modal_result with :=, shadowing the one checked
after the branches, so the Cancel result was always read as zero and the
dialog stayed open. Assign the outer result instead.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-09-27 20:31:00 -03:00
waozi c7446fcdd3 Use field-aware Ziran text borrow checking 2026-09-27 20:26:37 -03:00
waoziandClaude Opus 5.5 f3aba36d00 Draw the profile row arrows and dashes
The UI font subset is built from locale text and input_common.txt, but the
profile rows use ›, the leaderboard shows — for missing averages, and practice
status joins parts with ·. Add them to the subset corpus, regenerate the
fonts, and update Kryon so the raylib backend loads glyphs beyond ASCII.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-09-27 17:39:25 -03:00
waoziandClaude Opus 5.5 fbbad35a1a Show real icons on list and friend actions
The Ziran port replaced the list edit and delete icons with ✎ and × text,
which the UI font cannot draw, and pointed the friend removal icon at a
language flag. Use Kryon's IconEdit and IconTrash, and update Kryon so
icon-only buttons and modal action labels draw again.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-09-27 17:25:38 -03:00
waoziandClaude Opus 5.5 1d2207b045 Build dependencies from local sources before the network
scripts/packages.sh now seeds the Ziran package cache from Git checkouts that
already contain the locked commits, found in $ZIRAN_PACKAGE_SOURCES or
F-Droid's ../srclib, including submodules such as Kryon's raylib. Builders
that supply every source never fetch; anything missing is still downloaded.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-09-27 17:12:16 -03:00
waoziandClaude Opus 5.5 e5c7d4be1a Restore the practice banner fade
The banner image is now queued paint, so the fade drawn directly with raylib
ended up underneath it and the banner stopped with a hard edge. Queue the fade
and the title background after the image with Kryon's vertical gradient paint.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-09-27 16:52:13 -03:00
waoziandClaude Opus 5.5 94b3bd5f9d Fetch dependencies as Ziran packages instead of submodules
ziran.toml and ziran.lock pin the Ziran toolchain, Kryon, Game2D, the Daochi
client, and the C libraries (as source packages) at the commits the vendor
submodules used. scripts/packages.sh bootstraps the locked toolchain, runs
ziran fetch, and links each checkout under build/packages/; make, Gradle, and
CI run it before building. make package-check replaces no-vendor-edits.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-09-27 16:44:19 -03:00
waoziandClaude Opus 5.5 900553a78c Keep selected navigation readable in dark themes
Style packs pair their own accent-soft background with accent text. Inbe
replaces accent with the theme button color, so selected soft buttons in the
navigation rail rendered dark text on a dark background. Use the theme accent
and its computed ink instead, and give cards the themed surface.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-09-27 15:40:53 -03:00
waoziandClaude Opus 5.5 dc67b1bfbe Port Inbe screens, storage, and platform hosts to Ziran
Replace the remaining .kry and C application sources with Ziran modules,
move vendored dependencies to their current pointers, and add Ziran tests for
the ported hosts and policies.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-09-27 15:40:52 -03:00
waozi 0287ec2c42 Advance Ziran imported global type resolution 2026-09-26 22:44:25 -03:00
waozi 60a7ea95d8 Advance Ziran for platform-specific app generation 2026-09-26 22:25:01 -03:00
waozi 70d6ebd5d1 Update Kryon point collision surface 2026-09-26 21:48:27 -03:00
waozi 0051b8606d Update Kryon window and pointer surface 2026-09-26 21:00:12 -03:00
waozi 8105d9c2a1 Update Kryon text view fixes 2026-09-26 20:44:03 -03:00
waozi 30b7fe49f7 Update Kryon screenshot and DPI Ziran surface 2026-09-26 20:21:20 -03:00
waozi 6cae610826 Update Kryon Ziran raylib game surface 2026-09-26 20:11:38 -03:00
waozi c33e306696 Update Kryon modular packages and libdraw host 2026-09-26 17:48:41 -03:00
waozi bb2ca352c0 Own guide and locale policy in Inbe 2026-09-26 16:11:26 -03:00
waozi a47e9659f6 Advance Ziran compiler diagnostics for migration 2026-09-26 15:58:21 -03:00
waozi 90d70c554f Pin vendor/ziran to e586ff5 for portable array-literal file-scope initializers 2026-09-25 23:57:32 -03:00
waozi 9518791a68 Pin vendor/kryon to verified kryon HEAD 1d916bc2
Move the clean submodule pointer to the upstream kryon revision that
passes its full make test gate (89/89 plus header/source/project/
typeface checks). The library builds through inbe's kryon-library-check
and the scroll-input link test passes against the new pointer. Commit
only the pointer; concurrent source migration is untouched.
2026-09-25 21:04:09 -03:00
waozi 447ca785fb Move habit screen contracts into Kry modules 2026-09-22 17:52:12 -03:00
waozi 413e944db0 Ignore new output artifacts 2026-09-22 17:42:25 -03:00
waozi 49544e7deb Import Kry modules directly for practice interfaces 2026-09-22 17:37:52 -03:00
waozi ad0f17ebb7 Fix selected color themes in packaged builds 2026-09-22 11:21:12 -03:00
waozi 85330a2390 Remove the completed kry-migration tracking doc
The migration it tracked is complete: vendor/kryon is at master, app colors
read StyleTokenColor through the app_style bridge, and the native build and
contract gates pass. The stale in-flight pointers (8f1a8608, per-area
remaining-work tables) documented a state twenty commits old.
2026-09-21 15:47:05 -03:00
waozi c9904167b2 Bump Kryon: use the tracked profile picker types and field-order fix 2026-09-21 15:46:06 -03:00
waozi b8ad52294b Show plain numbers while editing rounds 2026-09-21 12:48:19 -03:00
waozi 39a1be8b24 Center session detail text within rows 2026-09-21 12:45:35 -03:00
waozi 9130be924f Clarify session rounds and editing 2026-09-21 12:40:15 -03:00
waozi f7eec1888c Retry transient Emscripten zlib port downloads 2026-09-21 12:02:40 -03:00
waozi 8e38e2a6f4 Keep release appcast tool with Inbe 2026-09-21 11:46:14 -03:00
waozi 3575ba97f0 Exclude unused terminal clipboard protocol from Inbe builds 2026-09-21 11:23:33 -03:00
waozi 4479ef83e2 Keep session origin on habit day marks only 2026-09-21 10:55:11 -03:00
waozi 0e17c333d5 Keep new style tokens and Habits styling in generated arrays 2026-09-21 10:38:07 -03:00
waozi f4e3522523 Migrate app colors onto StyleTokenColor
Replace every legacy theme getter outside the style bridge with
StyleTokenColor reads against the tokens app_style.kry already registers:
GetThemeBackground->canvas, Text->text, MutedText->muted, Surface->surface,
SurfaceAlt->panel, Button->accent, ButtonHover->accent-hover,
ButtonText->accent-ink, Border->border, Circle->accent, plus new Link and Icon
tokens added to the bridge table (45->47). GetTheme* calls now live only in
app_style.kry (the bridge), the theme settings screen's catalog listing
(GetThemeLabel), one GetThemeMetrics, and GetThemeReadableText (a pure
contrast function, not palette state).

make native, no-vendor-edits, clean-text-api-check, and button-api-check
pass; an xvfb screenshot smoke shows the full palette rendering (292 sampled
colors, not black). lists-ui-test fails identically at HEAD before this
change (pre-existing). Visual parity review of the mapped tokens is still
pending.
2026-09-21 10:37:36 -03:00
waozi bfd8d552d2 Update navigation test stub for style tokens 2026-09-21 10:37:01 -03:00
waozi e3cbeda015 Distinguish linked session progress in Habits 2026-09-21 10:35:31 -03:00
waozi 1c242eac02 Bump Kryon for the StyleTokenColor getter 2026-09-21 10:26:26 -03:00
waozi 3220a032df Show synchronized Lists and items on the account screen 2026-09-21 10:11:28 -03:00
waozi 7b6a7aa9db Translate sync server label in every locale 2026-09-21 10:04:05 -03:00
waozi c36d80a247 Bump Kryon for the native-window props declarations 2026-09-21 10:03:29 -03:00
waozi eedcbdc38e Fix Android icon asset generation with current Kryon 2026-09-21 10:00:32 -03:00
waozi d1307b06f4 Release 2.0.4 with complete account and Lists sync 2026-09-21 09:59:08 -03:00
waozi 61f6e2ca41 Bump Kryon for the app host props declarations 2026-09-21 09:57:01 -03:00
waozi 43d9fabfbc Bump Kryon for the key props declaration 2026-09-21 03:45:48 -03:00
waozi 48ef3929fc Bump Kryon for the icon props declarations 2026-09-21 03:40:23 -03:00
waozi 02774c652c Bump Kryon for the style-pack props declarations 2026-09-21 03:30:23 -03:00
waozi 8c692e51e5 Bump Kryon for the locale props declarations 2026-09-21 03:16:51 -03:00
waozi 00faaf7e93 Bump Kryon for the node host props declarations 2026-09-21 03:06:42 -03:00
waozi ac8400e57c Bump Kryon for the text-layout props declarations 2026-09-21 03:02:00 -03:00
waozi 6eedd34bb0 Bump Kryon for the orphaned ui_inspect cleanup 2026-09-21 02:56:51 -03:00
waozi 00603e09bb Bump Kryon for the app-shell props declarations 2026-09-21 02:49:57 -03:00
waozi 9c3cf327b2 Bump Kryon for the tree props declarations 2026-09-21 02:42:13 -03:00
waozi ebcb99e944 Bump Kryon for the interface props declarations and unified focus symbols
Take the interface host declared in runtime/core_props.kry and follow the
KryonSetFocus/KryonGetFocus rename in the elist screen and its test. The Go
API keeps its SetFocus spelling. make native passes against 790159020.
2026-09-21 02:29:03 -03:00
waozi ca763d9183 Bump Kryon for the controls props declarations 2026-09-21 02:15:54 -03:00
waozi c89f5e9b09 Bump Kryon for the frame host props declarations 2026-09-21 02:07:44 -03:00
waozi 1d373214f2 Bump Kryon for the capability and text-backend props declarations 2026-09-21 01:52:00 -03:00
waozi ca6747894a Bump Kryon for the instance-state props declaration 2026-09-21 01:42:25 -03:00
waozi 7337178a2b Bump Kryon for the text and profile props declarations 2026-09-21 01:35:20 -03:00
waozi c238bc5bd3 Bump Kryon for the scaling, clip, and layout props declarations 2026-09-21 01:25:20 -03:00
waozi 197fc01897 Bump Kryon for the page host props declarations 2026-09-21 01:18:05 -03:00
waozi 68622fbab8 Bump Kryon for node-registry and inspector props declarations 2026-09-21 01:09:18 -03:00
waozi 49f929c3f4 Bump Kryon for props-header host declarations
Take the reorder, swipe, toast, transition, nav, and scrollbar hosts declared
in their tracked props headers, which deletes the six handwritten shim headers.
Inbe's SwipeGesture record now imports ui_swipe_props.generated.h directly.
make native passes against cf152103; the vendor tree stays clean.
2026-09-21 00:56:11 -03:00
waozi 61f016831d Bump Kryon for the shim header cleanup 2026-09-21 00:29:57 -03:00
waozi 90fbe0f049 Clarify sync account actions and empty-state wording
Rename the sync account onboarding buttons and status so the two
actions are unambiguous:

- "Create Account" -> "Create New Account"
- "Import .key File" -> "Import Account Key"
- "Create an account before connecting" -> "No account connected yet"
- "Create account or import key" -> "Create a new account or import an existing key"

Updated across all 12 locales with real translations, no English
placeholders.
2026-09-21 00:23:29 -03:00
waozi 9b25bd887d Bump Kryon for shared runtime color math
Move the LightenColor/DarkenColor host shim onto Kryon's shared runtime and take
the k2c re-entrant runtime-parsing fix. Inbe's DarkenColor/LightenColor callers
resolve through kryon.h as before. make native passes; vendor stays clean.
2026-09-21 00:23:05 -03:00
waozi 6764286c22 Bump Kryon for bounded file dialog portal deadline
Pulls kryon master 60b59a9 ("file_dialog: bound portal deadline and
fall back to external helpers") which prevents the xdg-desktop-portal
file chooser from blocking the main thread forever.  When the portal
window cannot be associated with the parent the call returns after 15 s
and falls through to the installed external helper (zenity / kdialog /
yad).
2026-09-21 00:06:58 -03:00
waozi 8cbb34a62c Log sync key import traces at warning level
Keep the temporary sync_import_key_trace scene's diagnostics visible in the app
log while the key import path is traced.
2026-09-20 23:58:30 -03:00
waozi 33082cebf4 Record the committed Kryon pointer and gate results 2026-09-20 23:57:53 -03:00
waozi 64c1b6b7db Migrate Inbe's UI onto the .kry Kryon runtime
Author the remaining app UI, platform hosts, and storage helpers in .kry,
generate Kryon's src/ui modules and headers in the Inbe build, and follow the
migrated Kryon surface (generated props ABI and Button ImageProps). Move the
Plan 9 app loop and music fallback, Android lifecycle/share titles, desktop
tray, screenshots, and style tokens to their .kry owners, and delete the C
owners they replace.

Stop background execution whenever no visible indicator is present: the
desktop tray, Chrome worker, and Android foreground service now confirm their
indicator before continuing. Report gates: make native, no-vendor-edits,
clean-text-api-check, button-api-check, version-test, proof-test, and
sync-recovery-test pass.

vendor/kryon moves to 8f1a8608.
2026-09-20 23:56:13 -03:00
waozi 7e84a69098 Release 2.0.3 with custom sync server support in web builds 2026-09-20 20:09:07 -03:00
waozi 727eaa1f72 Release Inbe 2.0.2 2026-09-20 19:15:20 -03:00
waozi 0d1a7c12f8 Save habit editor polish, sync probe, and design captures 2026-09-20 18:24:58 -03:00
waozi e50f8d1e7b Make browser swipe smoke resilient to slow frames 2026-09-20 17:57:10 -03:00
waozi 0024cd84ef Reset navigation once for Lists layout update 2026-09-20 17:36:32 -03:00
waozi 2c673ada7f Stabilize carousel swipes in web smoke test 2026-09-20 17:28:42 -03:00
waozi 5efa30658b Keep Node available in web CI and site builds 2026-09-20 17:04:48 -03:00
waozi 35f7807d40 Align web loading and icons with meditation logo 2026-09-20 16:50:56 -03:00
waozi f03acd1d06 Pin CI sync server to device registration support 2026-09-20 16:27:17 -03:00
waozi ba0c1efa73 Clarify device theme and interface scale labels 2026-09-20 16:05:23 -03:00
waozi 060f7dbc9a Keep practice images neutral across themes 2026-09-20 15:58:44 -03:00
waozi b862f62ec3 Use Kryon navigation layout and simplify settings rows 2026-09-20 12:52:20 -03:00
waozi 9e9d0c49cc Fix canvas artifacts and center meditation circle labels 2026-09-20 11:40:08 -03:00
waozi 43ab976379 Keep canvas guide aligned at scaled viewports 2026-09-20 11:15:47 -03:00
waozi 7c1c87ec7a Keep Node executable available in web release jobs 2026-09-20 11:00:56 -03:00
waozi ae852f168e Bypass proxies in local sync recovery test 2026-09-20 10:36:06 -03:00
waozi b253620fb7 Check current Inbe embedded assets in CI 2026-09-20 10:24:56 -03:00
waozi dee24910bd Migrate legacy navigation once and fix clean CI builds 2026-09-20 10:12:56 -03:00
waozi d5fdb4ec28 Fetch Kryon for CI version checks 2026-09-20 10:03:56 -03:00
waozi bc29d46e53 Release Inbe 2.0.0 with reliable profile recovery 2026-09-20 10:02:47 -03:00
waozi 7ce52bd753 Redesign session results around the round chart 2026-09-19 21:06:01 -03:00
waozi dd62b60496 Smooth Customize preview and correct scrollbar thumb 2026-09-19 20:03:11 -03:00
waozi f47c5c1345 Fix Customize modal and scrollbar behavior 2026-09-19 19:25:43 -03:00
waozi 5c3b4945ee Fix Customize scroll interactions 2026-09-19 19:10:01 -03:00
waozi 7224e76310 Fix Customize scrolling on Android 2026-09-19 18:46:50 -03:00
waozi 2467615bb3 Fix WHM customize layout on phones 2026-09-19 17:57:28 -03:00
waozi 0350f52640 Fix Customize scrolling and action placement 2026-09-19 17:24:58 -03:00
waozi d793416c61 Prepare Inner Breeze 2.0.0 release 2026-09-19 17:14:05 -03:00
waozi f390f6f587 Polish Customize and About support screens 2026-09-19 17:04:21 -03:00
waozi d924f4125f Keep Settings layout consistent across breakpoints 2026-09-19 16:38:00 -03:00
waozi 6ec903d67e Resolve responsive navigation from the full viewport before laying out content 2026-09-19 16:15:19 -03:00
waozi 83b08d2d3b Anchor practice controls above navigation and preserve the image fade 2026-09-19 16:09:17 -03:00
waozi cba84c24b0 Add breathing room above list bottom navigation 2026-09-19 15:58:05 -03:00
waozi babf23e499 Unify settings navigation and preserve empty lists and account identity 2026-09-19 15:49:04 -03:00
waozi c45d5db712 Center list text and hide completed items behind a bottom toggle 2026-09-19 15:28:43 -03:00
waozi 336e4e95ee Use the shared Kryon scale slider with readable values and step controls 2026-09-19 15:09:24 -03:00
waozi 30a9a56b37 Enable Android material rendering cache to reduce UI lag 2026-09-19 14:13:11 -03:00
waozi c6592f670f Use a pale blue background for masked app icons 2026-09-19 13:13:27 -03:00
waozi 4380b0211b Update translated practice guidance and inherit arrow button styling 2026-09-19 13:13:14 -03:00
waozi 5b5572e822 Fix guide placement and keep glow specific to Lightfield 2026-09-19 13:12:26 -03:00
waozi f13ad7eae6 Prove sync retry policy with Bend and enforce build contracts 2026-09-19 12:18:05 -03:00
waozi 7a88e3df9e Move Inbe application logic to Kryon and refresh the app
Move product behavior, app types, storage, audio, and tray logic into .kry modules. Use shared Kryon widgets, layout policies, asset-backed images, and app KSS styling with a smaller native boundary.

Include the pending navigation, sync recovery, localization, launcher icon, design asset, and 2.0.0 release metadata updates. Add version consistency checks and improve browser persistence and interaction validation.
2026-09-19 11:58:09 -03:00
waozi ad2bb49238 Use Kryon with mandatory compiler laws 2026-09-19 11:51:52 -03:00
waozi 2cbad01e93 Update Kryon with shared flex alignment 2026-09-19 11:35:03 -03:00
waozi c284ce8274 Read the canonical version when checking site download links 2026-09-19 11:34:42 -03:00
waozi 79154be186 Preserve the released meditation audio URL in site builds 2026-09-19 11:34:26 -03:00
waozi b6fcfc21b7 Package meditation audio for website-only deployments 2026-09-19 11:31:13 -03:00
waozi 91a6e99df2 Allow website updates to reuse the published Inbe web app 2026-09-19 11:29:07 -03:00
waozi 2b44df84c9 Give Inner Breeze an illustrated editorial website 2026-09-19 11:21:19 -03:00
waozi c810e52642 Update Kryon renderer smoke fixes 2026-09-19 10:56:31 -03:00
waozi 6647f5fd8e Update Kryon generated style startup 2026-09-19 01:58:15 -03:00
waozi acb2fc9b3b Update Kryon release table emitter 2026-09-19 01:53:30 -03:00
waozi a965e5a6d4 Update Kryon release table gate 2026-09-19 01:45:15 -03:00
waozi fb3b1118e0 Update Kryon backend degradation reports 2026-09-19 01:39:37 -03:00
waozi 5784b9a7b9 Update Kryon native KSS source trace 2026-09-19 01:37:05 -03:00
waozi d5330f3973 Update Kryon Go style trace API 2026-09-19 01:33:53 -03:00
waozi 8773a00523 Update Kryon KSS host service ledger 2026-09-19 01:16:02 -03:00
waozi ed5d4875be Update Kryon KSS diagnostics coverage 2026-09-19 01:12:58 -03:00
waozi cd3cfe5f3f Update Kryon no-style render coverage 2026-09-19 01:06:54 -03:00
waozi 4c4bb6979d Update Kryon KSS diagnostics coverage 2026-09-19 01:03:42 -03:00
waozi 723fda6258 Update Kryon interaction policy coverage 2026-09-19 01:00:19 -03:00
waozi d13060afec Update Kryon typed style table checks 2026-09-19 00:54:42 -03:00
waozi d13eb27613 Update Kryon KSS formatter reflow 2026-09-19 00:49:15 -03:00
waozi f07bb2c3ac Update Kryon bridge ledger gate 2026-09-19 00:43:10 -03:00
waozi 58364d8efb Update Kryon style trace support 2026-09-19 00:40:06 -03:00
waozi af9b733f1d Update Kryon Go frame presence 2026-09-19 00:35:12 -03:00
waozi 1267cc9c92 Update Kryon active spec gates 2026-09-19 00:30:02 -03:00
waozi 1fd6be3618 Update Kryon Go prop shadowing 2026-09-19 00:22:21 -03:00
waozi 5cf75b5255 Update Kryon style law gates 2026-09-19 00:13:47 -03:00
waozi 4cd969e49c Quiet frame pacing timer logs 2026-09-19 00:03:13 -03:00
waozi 82aaa8e4b3 Use classic Kryon style pack 2026-09-19 00:02:13 -03:00
waozi 7dcaa9987e Update Kryon downstream scan 2026-09-18 23:53:20 -03:00
waozi f4fec780c2 Update Kryon downstream inventory 2026-09-18 23:50:43 -03:00
waozi b097ccc5df Smooth frame pacing activity grace 2026-09-18 23:49:28 -03:00
waozi 9e1df485bd Update Kryon ktrem recovery ledger 2026-09-18 23:48:46 -03:00
waozi b14f7cab65 Update Kryon matrix evidence ledger 2026-09-18 23:44:48 -03:00
waozi 01273e63b5 Update Kryon submodule 2026-09-18 23:43:25 -03:00
waozi de29b9ec3c Update Kryon style evidence ledger 2026-09-18 23:39:50 -03:00
waozi 0d6f18475e Update Kryon paused web evidence 2026-09-18 23:37:49 -03:00
waozi a6e15595ec Update Kryon tools package evidence 2026-09-18 23:35:21 -03:00
waozi c1f1462331 Update Kryon plan coverage ledger 2026-09-18 23:33:46 -03:00
waozi fe9600fe8b Update Kryon ownership ledger 2026-09-18 23:31:16 -03:00
waozi fa4be7a4b2 Update Kryon paused target docs 2026-09-18 23:27:15 -03:00
waozi 20ae8b4eca Update Kryon modal action layout 2026-09-18 23:18:19 -03:00
waozi 61c0d0ea2a Update Kryon paused web target 2026-09-18 23:09:17 -03:00
waozi b13fa53bd9 Update Kryon popup early exit parity 2026-09-18 23:00:07 -03:00
waozi ab21a5ee5d Update Kryon popup shortcut parity 2026-09-18 22:58:42 -03:00
waozi 46180bdcdd Update Kryon popup drag parity 2026-09-18 22:52:55 -03:00
waozi 45413e3bff Update Kryon context popup parity 2026-09-18 22:50:20 -03:00
waozi e9a4c56fe3 Update Kryon modal capture parity 2026-09-18 22:48:19 -03:00
waozi 4fbfa6f30f Update Kryon tree keyboard parity 2026-09-18 22:46:18 -03:00
waozi aaaf626ab5 Update Kryon rotated table resize parity 2026-09-18 22:42:06 -03:00
waozi 064fae5af0 Update Kryon dropdown edge parity 2026-09-18 22:40:04 -03:00
waozi ca8b1677f6 Update Kryon dropdown keyboard parity 2026-09-18 22:32:23 -03:00
waozi 9c8c06d1ee Update Kryon rotated table parity 2026-09-18 22:25:18 -03:00
waozi 47b529a894 Update Kryon table cell parity 2026-09-18 22:21:49 -03:00
waozi 48550f0e1c Update Kryon dropdown overlay parity 2026-09-18 22:14:45 -03:00
waozi 33cd6e3157 Update Kryon scroll offsets 2026-09-18 22:11:24 -03:00
waozi a7fef0f52b Update Kryon scroll parity 2026-09-18 22:08:50 -03:00
waozi 901805b7d3 Update Kryon composed popup parity 2026-09-18 22:00:03 -03:00
waozi 91c0cdf370 Update Kryon menu parity 2026-09-18 21:53:48 -03:00
waozi 98bb53259f Update Kryon drag drop parity 2026-09-18 21:41:39 -03:00
waozi 9466051b66 Update Kryon web input driver 2026-09-18 21:37:58 -03:00
waozi f4c9eda118 Update Kryon parity baseline 2026-09-18 21:33:39 -03:00
waozi 4051049fd7 Update Kryon runtime 2026-09-18 21:29:13 -03:00
waozi 8dacb6789a Fix desktop close-window Xvfb harness 2026-09-18 21:17:22 -03:00
waozi 99105c8655 Update vendored Kryon 2026-09-18 20:28:35 -03:00
waozi 111e0a56db Update vendored Kryon 2026-09-18 20:13:08 -03:00
waozi 6f12159e1a Update vendored Kryon 2026-09-18 20:00:49 -03:00
waozi deffd1cdba Update vendored Kryon 2026-09-18 18:56:14 -03:00
waozi 7e76bc8a14 Restore meditation circle and close prompt text 2026-09-18 18:06:36 -03:00
waozi 5417759974 Update Kryon for standalone generated array indexing 2026-09-15 18:24:56 -03:00
waozi 5cc65ceb82 Remove superseded C profile picture picker 2026-09-15 18:21:48 -03:00
waozi 258e60265f Use scrollable Kry picker with cat turtle and moon avatars 2026-09-15 18:21:36 -03:00
waozi 4ebb3b2dab Center Settings row labels and chevrons with their icons 2026-09-15 16:04:07 -03:00
waozi c8a5d216bb Update Kryon to fix transparent guide and modal panels 2026-09-15 15:52:14 -03:00
waozi 6be736192f Follow Kryon master after styling cleanup 2026-09-15 12:22:16 -03:00
waozi 781b1536ca Remove Vanilla from Appearance and default to Material 2026-09-15 12:21:01 -03:00
waozi 3d7445c0ca Update Kryon for current text input and focus fixes 2026-09-15 12:13:13 -03:00
waozi 482ca0cd46 Open the Settings overview from primary navigation 2026-09-15 10:12:10 -03:00
waozi 82ea299405 Update Kryon style rollout status 2026-09-15 10:03:36 -03:00
waozi cb09108156 Fix navigation and add themed style choices in Appearance 2026-09-15 10:03:10 -03:00
waozi 6e7b9884f6 Update Kryon keyboard policy and canonical runtime checks 2026-09-14 17:44:24 -03:00
waozi e79b6b9596 Update Kryon and finish the canonical widget migration
Bump vendor/kryon to master (651a82cda) and complete the move to the canonical Kryon widget surface with no legacy compatibility:

- Drop removed per-widget visual props (font/color/style); typography and colors resolve from the active Material style pack (new src/app/app_style.kry).

- Replace removed helpers with app-owned metrics in app.h (AppFontSize, AppTextWidth, AppParagraphHeight, AppTitleBarHeight, AppFitFontSize...).

- Convert imperative scroll scaffolds to declarative Scroll blocks; modals keep an app-owned clamped scroll.

- Icons resolve from embedded sheets via icon_type instead of app-loaded textures.

- Own the composed chrome widgets in src/app/app_widgets.c (modal frame, guide overlay, icon slider popup, bottom icon row, profile picture picker, reorder affordances) on public widgets only.

- Remove the theme_style setting and its persistence key; swipe/image enum names use canonical CamelCase.

- Test stubs updated to the current API; bottom-nav expectations track the Material nav height.
2026-09-14 15:58:21 -03:00
waozi 460ddbf847 Update Kryon icon size names 2026-09-12 00:22:38 -03:00
waozi 1a589b4ff9 Update Kryon swipe names 2026-09-12 00:21:44 -03:00
waozi 547fcd754f Update Kryon icon helpers 2026-09-12 00:19:12 -03:00
waozi c9aec322ae Update Kryon icon names 2026-09-12 00:17:02 -03:00
waozi a1db6006ac Update Kryon transition names 2026-09-12 00:13:22 -03:00
waozi 53393b482f Update Kryon semantic names 2026-09-12 00:10:23 -03:00
waozi de34680ee2 Document canonical Kryon image usage 2026-09-12 00:06:48 -03:00
waozi e10e3e716e Update Kryon checkbox rendering 2026-09-11 13:15:09 -03:00
waozi 0eea38fdd0 Update Kryon compact navigation bar 2026-09-11 00:53:01 -03:00
waozi 0238933e51 Update Kryon navigation bar API 2026-09-11 00:41:41 -03:00
waozi 7f719c7631 Update Kryon navigation runtime 2026-09-11 00:22:20 -03:00
waozi 3bf4288f64 Update Kryon toggle runtime 2026-09-11 00:17:02 -03:00
waozi a033748d87 Update Kryon toggle focus 2026-09-11 00:06:42 -03:00
waozi ed9ca9ec46 Use declarative social icons 2026-09-11 00:03:40 -03:00
waozi 8436b66d6b Use declarative Card blocks 2026-09-10 22:18:37 -03:00
waozi 9ed8b5e1f5 Adopt declarative Kryon Card API 2026-09-10 21:51:48 -03:00
waozi f9dd0209c4 Update Kryon vendor pointer 2026-09-10 14:39:38 -03:00
waozi d45d224f91 Keep frame pacing active for text input 2026-09-10 14:34:32 -03:00
waozi 08517097e7 Reset habit child routes on navigation 2026-09-10 14:19:20 -03:00
waozi c171836e86 Make habit expansion explicit 2026-09-10 14:12:32 -03:00
waozi 14dc8f46f2 Use Kryon Grid for habit cards 2026-09-10 13:54:38 -03:00
waozi 124223901e Fix habit day clicks and update Kryon APIs 2026-09-10 13:24:14 -03:00
waozi 1ee1e6223c Stop per-frame update and tray work 2026-09-10 12:54:53 -03:00
waozi a8bfce26a9 Refine navigation and habit card controls 2026-09-10 12:48:27 -03:00
waozi 78df44e946 Build Inbe native artifacts under the Inbe name 2026-09-10 11:38:33 -03:00
waozi 1b0f0f301a Use Kryon's consolidated modern dropdown 2026-09-10 11:30:15 -03:00
waozi 5f8492f8f7 Support navigation placement and collapsed rails with fitted guide images 2026-09-10 00:53:12 -03:00
waozi ef56c59207 Give desktop navigation room and use standard carousel buttons 2026-09-10 00:04:13 -03:00
waozi 8c7aaa4183 Remove the secondary task input from Lists 2026-09-09 23:18:21 -03:00
waozi 54b0144903 Inline thin button and toggle forwarding helpers 2026-09-09 23:11:33 -03:00
waozi ee3cf84e8d Use standard Kryon buttons throughout Inbe and show lists as tabs 2026-09-09 22:04:05 -03:00
waozi 6d67c320d4 Restore button interactions and keep desktop practices running unfocused 2026-09-09 21:16:56 -03:00
waozi 15715808b2 Update Kryon and build shared widget policies from canonical sources 2026-09-09 19:44:05 -03:00
waozi dbde235112 Port Android build to kryon master control styling
Bump vendor/kryon to k2kir 737ac56 and adapt inbe to the API it
brings: kryon's runtime button policy now ships as Kry modules that
the Android CMake build transpiles and links, ButtonStyle gave way to
ButtonTone/ButtonEmphasis, UIStyleTokens became ThemeMetrics, and
UIButtonRowItem became ButtonRowItem. StyledButton survives as an
inbe-side shim (src/app/styled_button.c) over the new Button API so
the 80 existing call sites keep one visual mapping. Kry constants
migrate off the removed '#define' syntax.

Also fix stale Android package references that crashed startup:
JNI registration looked for xyz.waozi.breathing.MainActivity, share
calls targeted the old ShareHelper name, the files directory pointed
at the pre-rename package, and the Makefile launch target used the
old app id.
2026-09-09 01:28:54 -03:00
waozi ea9280964d Fix habits tutorial targets 2026-09-08 15:17:29 -03:00
waozi 97a37e6cc8 Point practice guide at carousel controls 2026-09-08 15:13:13 -03:00
waozi 2887335be1 Fix selected navigation contrast 2026-09-08 15:08:02 -03:00
waozi 5c49391d3a Update Kryon tutorial guide rendering 2026-09-08 15:01:41 -03:00
waozi 9f7bb76455 Move shared app chrome to Kry 2026-09-08 13:50:27 -03:00
waozi 9e718e8e4b Move modal state management to Kry 2026-09-08 13:34:50 -03:00
waozi 52688313d4 Move deferred persistence to Kry 2026-09-08 13:32:06 -03:00
waozi f5e843de98 Move app host lifecycle to Kry 2026-09-08 13:26:52 -03:00
waozi 3696afcffb Move frame pacing policy to Kry 2026-09-08 13:24:43 -03:00
waozi 73a54f56c3 Move frame profiling to Kry 2026-09-08 13:23:04 -03:00
waozi 0ded03a8e3 Move donation reminder policy to Kry 2026-09-08 13:16:05 -03:00
waozi 55a60dc61d Move donation links to Kry 2026-09-08 12:35:23 -03:00
waozi 8d1c989312 Move URL routing to Kry 2026-09-08 12:32:08 -03:00
waozi 20382dd89d Move route state transitions to Kry 2026-09-08 12:15:00 -03:00
waozi ae4e110259 Use Kryon activity abstraction directly 2026-09-08 12:06:33 -03:00
waozi 58a0a2eb88 Adopt unprefixed Kryon platform APIs 2026-09-08 12:04:25 -03:00
waozi ff2b4e5b14 Rewrite EList storage in Kry 2026-09-08 11:46:51 -03:00
waozi 87d4f6a5c1 Merge remote-tracking branch 'origin/master'
# Conflicts:
#	vendor/kryon
2026-09-08 11:26:12 -03:00
waozi 95e370b634 Move EList interfaces into Kry modules 2026-09-08 11:25:19 -03:00
waozi 26af3768f0 Sanitize default EList navigation 2026-09-08 10:34:44 -03:00
waozi 7f4935fe58 Rename app plumbing and remove bundled miniz 2026-09-08 10:34:16 -03:00
waozi 253f04ee46 Use Kryon frame pacing on Android 2026-09-08 09:18:55 -03:00
waozi 3c541b087f Reduce Android idle battery usage 2026-09-08 09:07:34 -03:00
waozi 9cc67b287c Separate habit reminders from practice notifications 2026-09-08 00:50:48 -03:00
waozi c59af4dc1a Remove old navigation and theme names 2026-09-08 00:26:37 -03:00
waozi 9ffc7e1490 Cache statistics mood aggregates 2026-09-08 00:07:29 -03:00
waozi 2097f8cb90 Cache linked habit session summaries 2026-09-08 00:05:04 -03:00
waozi 1c26a83989 Update Kryon reconcile performance fix 2026-09-07 23:58:04 -03:00
waozi ae93e11df3 Use clean habit expand chevrons 2026-09-07 23:44:45 -03:00
waozi 9634744036 Clean up settings toggle rows 2026-09-07 23:34:27 -03:00
waozi e339f1c616 Remove legacy stack nav menu 2026-09-07 23:29:02 -03:00
waozi 7c1dca9c6b Update Kryon text rendering fix 2026-09-07 23:23:31 -03:00
waozi 7502cb455c Polish desktop rail profile layout 2026-09-07 19:49:27 -03:00
waozi ffeb534ced Refine navigation profile behavior 2026-09-07 19:42:22 -03:00
waozi 6d3e76b160 Implement mobile settings hub 2026-09-07 19:10:28 -03:00
waozi eb7db35f0e Replace desktop settings drawer 2026-09-07 18:53:00 -03:00
waozi 45c89d2b8f Redesign desktop settings layout 2026-09-07 16:34:19 -03:00
waozi 71f976fa69 Fix desktop rail layout 2026-09-07 16:09:53 -03:00
waozi cb8efebcfd Update Kryon text alpha fix 2026-09-07 15:46:52 -03:00
waozi dbd68442cf Update Kryon profile picture atlas 2026-09-07 15:39:23 -03:00
waozi 3b33b9d3b6 Update Kryon drag click handling 2026-09-07 15:08:21 -03:00
waozi 70a623b11c Apply modern Kryon navigation defaults 2026-09-07 14:47:34 -03:00
waozi bd0dcef286 Move active practice title bar to Kry 2026-09-07 13:31:07 -03:00
waozi e9343dad76 Clean up stale app title declarations 2026-09-07 13:30:47 -03:00
waozi 80c754c053 Move Inbe entry point to Kry 2026-09-07 13:30:24 -03:00
waozi eab60dd4ac Match WHM guide spacing to Option B 2026-09-06 21:20:24 -03:00
waozi 2bf0d4920b Redesign practice guides with canonical Kryon UI 2026-09-06 19:48:08 -03:00
waozi 284b955e81 vendor: fix clean native package builds 2026-09-05 10:01:23 -03:00
waozi a3a27341f8 vendor: update Kryon CI-stable runtime 2026-09-05 08:39:36 -03:00
waozi 9790b7a9f2 vendor: stabilize Kryon web asset startup 2026-09-05 00:50:01 -03:00
waozi 2fa5f95253 vendor: update Kryon slider API and theme build 2026-09-04 21:06:12 -03:00
waozi 9b8da214ea release: prepare 1.9.19 2026-09-04 20:59:16 -03:00
waozi dbaa13d399 vendor: update Kryon held-key repeat 2026-09-04 20:58:21 -03:00
waozi dd63d00afe vendor: update Kryon to v0.1.48 2026-09-04 20:53:27 -03:00
waozi 1e8a1b15fa vendor: update Kryon to v0.1.47 2026-09-04 20:50:28 -03:00
waozi 5dc0d8a019 ui: update to latest Kryon icon runtime 2026-09-04 20:39:19 -03:00
waozi 6713feffd5 vendor: update Kryon to v0.1.45 2026-09-04 20:29:15 -03:00
waozi 285c7b1d6b vendor: keep indicator menus open during updates 2026-09-04 19:28:46 -03:00
waozi d3ff335f13 vendor: enable tear-free Kryon presentation 2026-09-04 19:24:59 -03:00
waozi c57c5ff5b3 vendor: smooth large Kryon circles 2026-09-04 19:20:07 -03:00
waozi 194d6d88ae Update Kryon for Windows close handling 2026-09-04 19:17:30 -03:00
waozi d0e011b9aa Document Windows close handling fix 2026-09-04 19:15:21 -03:00
waozi 359b0de16f vendor: enable Kryon anti-aliasing 2026-09-04 19:05:06 -03:00
waozi 8acc832404 ci: fix Windows and FreeBSD release builds 2026-09-04 18:48:41 -03:00
waozi 83ac5dfba1 release: prepare 1.9.18 2026-09-04 18:33:50 -03:00
waozi 9618237931 practice: add guides for every activity 2026-09-04 18:21:05 -03:00
waozi 370fea5bd3 ui: redesign Wim Hof how-to flow 2026-09-04 17:46:01 -03:00
waozi 30d86a2db4 Add swipe navigation to practice guides 2026-09-04 16:38:42 -03:00
waozi a81b741976 Use Kryon outlined buttons for Practice actions 2026-09-04 16:13:44 -03:00
waozi e24af8038a Refine Practice screen hierarchy 2026-09-04 16:03:21 -03:00
waozi b1aceaccf6 Fix Android build with shared Kryon image decoding 2026-09-04 15:36:48 -03:00
waozi d43384147c Update Kryon to latest master 2026-09-04 15:28:28 -03:00
waozi 0f28310634 Bring the legacy converter into the Inbe theme 2026-09-02 16:13:18 -03:00
waozi 2d261e369b Add a creative color system to the Inbe site 2026-09-02 15:30:39 -03:00
waozi c40e444a4f Expose direct Inbe platform downloads 2026-09-02 15:20:06 -03:00
waozi 4ad1792021 Expand Inbe downloads and modernize web icons 2026-09-02 15:14:43 -03:00
waozi d0d97fc3b8 Link Inbe production downloads 2026-09-02 14:58:42 -03:00
waozi 01fded007e Redesign the Inner Breeze website in blue 2026-09-02 14:51:30 -03:00
waozi fe878997f6 Fix GPlay bundle resource splits 2026-09-01 22:10:40 -03:00
waozi 6ee6e5b5ad Stabilize web smoke async hooks 2026-09-01 21:29:33 -03:00
waozi cc8e8a41bd Stabilize web smoke guide hooks 2026-09-01 20:45:25 -03:00
waozi 18daef3d69 Bump Kryon for KRB mount test fix 2026-09-01 20:13:56 -03:00
waozi 4fc9f7db00 Bump Kryon for app storage CI fix 2026-09-01 20:05:14 -03:00
waozi 61c372330c Support LAN Daochi sync in debug builds 2026-09-01 19:31:19 -03:00
waozi 93d0e881fc Guard miniz with a real include guard
The header used #pragma once, which the native Plan 9 toolchain does
not honor; a second inclusion in one translation unit redeclared every
enum value. The plan9 build no longer needs the wrapper header that
masked this.
2026-08-31 18:21:01 -03:00
waozi c41011ff4b Keep the source includes ahead of the generated ones 2026-08-31 18:10:41 -03:00
waozi 7631dfae28 Carry the generated src include for the project file 2026-08-31 18:01:04 -03:00
waozi 1f8e16e491 Build with the shared plan9 rules and resolve the data root from Kryon
The mkfile now includes kryon's mk/plan9-app.mk instead of carrying
its own copy of the recipe, and the data root falls back to
KryAppDataRoot so the per-platform path policy lives in the runtime.
2026-08-31 17:50:50 -03:00
waozi d262e9babb Bump the vendored Kryon for the nested literal plan9 fixes 2026-08-31 17:21:07 -03:00
waozi 4728ba8bec Type the member and struct copy locals for the plan9 pass 2026-08-31 17:08:54 -03:00
waozi 89343e0607 Type the generated habit name as text 2026-08-31 16:54:41 -03:00
waozi 4bcc744c8d Move site deployment to Cloudflare Pages 2026-08-31 16:48:31 -03:00
waozi 618a77f3a2 Type the mouse delta locals 2026-08-31 16:45:34 -03:00
waozi 272aea7bd4 Type the leaderboard metric selection 2026-08-31 16:36:42 -03:00
waozi 3a40c10336 Type the nav scrim as Color 2026-08-31 16:25:09 -03:00
waozi 843c908e0a Declare the viewport extents in app.h
The generated sources reference view_width and view_height; the
declarations lived in narrower headers, and the Plan 9 include order
no longer reaches them through the per-app shim the old rewriter
injected.
2026-08-31 16:00:59 -03:00
waozi 0a267df3f6 Generate the Plan 9 build with k2c --plan9
The vendored Kryon compiler now emits 8c-safe C directly, so the
per-project rewriter script is gone: kry-c-plan9 runs k2c with --plan9
across the kryon, sqlite, and generated include dirs, writes the
generated file list, and builds the embedded asset table. The handful
of declarations the pass cannot type (member pointers and ternaries
over locals) now carry explicit types in the Kry sources, which reads
better anyway and keeps every platform's generated code identical.
2026-08-31 15:50:41 -03:00
waozi 8aac9b7f53 Keep sqlite stubbed on Plan 9 and build the new storage sources
8c panics the kernel compiling the sqlite amalgamation even with
gigabytes of guest memory, so the stub stays and habit data is not
persisted on Plan 9 yet. The hand-written storage sources that moved
out of the Kry files (habits, materialization, sync, JSON builder) join
the build; the VFS and amalgamation rewrite stay in the tree for when
the compiler can handle them.
2026-08-31 13:56:44 -03:00
waozi 3cae1b8a57 Replace short compound literals for 8c
The native compiler rejects compound literals that initialize fewer
fields than the struct carries, so use zeroed locals for the empty
texture and rectangle arguments. Hosted behavior is unchanged.
2026-08-31 13:08:43 -03:00
waozi e36c1f0654 Flatten the sync progress bar initializer for 8c
Same nested designated compound literal problem as the donation modal;
build the props through a zeroed local struct.
2026-08-31 12:56:24 -03:00
waozi a0ca798cc9 Flatten the donation modal scroll area initializer for 8c
The native Plan 9 compiler cannot parse the nested designated compound
literal; assign the fields through a zeroed struct instead. Hosted
behavior is unchanged.
2026-08-31 12:44:50 -03:00
waozi 6911eb3f3e Exit cleanly from the mkfile host-preparation check
A plan9 rc if whose condition is false and that has no else branch
returns failure, so the check rule failed exactly when the preparation
was present. Finish with an explicit exit 0.
2026-08-31 12:18:56 -03:00
waozi d05f187772 Add a native Plan 9 mkfile and finish the port
- Build with a proper mkfile (mk install copies to /$objtype/bin) that
  compiles the host-prepared generated sources together with the real
  sqlite amalgamation and the Plan 9 VFS instead of the old sqlite test
  stub, and links the generated embedded-asset table instead of the
  empty placeholder, so the binary no longer reads assets, locales, and
  subset fonts from the source tree
- Drop the superseded plan9-build.rc, the empty asset stub, and the
  sqlite stub
- Resolve the data root from Plan 9's $home when HOME is unset, so the
  database and user files land in the user's home instead of the source
  directory
- Leave OGG sounds out of the Plan 9 embedded assets; the libdraw audio
  backend decodes WAV only and meditation music is stubbed
2026-08-31 11:57:17 -03:00
waozi 55abf4518f Move Inbe Waozi return link 2026-08-31 11:57:05 -03:00
waozi 4f53c58e1f Bump Kryon warning cleanup 2026-08-31 11:42:02 -03:00
waozi 55ac631cb8 Clean up app build warnings 2026-08-31 11:16:29 -03:00
waozi e142907078 Clean up settings import and nav startup 2026-08-31 10:49:18 -03:00
waozi 349e2e11d7 Update Inbe social preview assets 2026-08-31 10:48:43 -03:00
waozi a3e505228b Collapse input frame guard 2026-08-31 10:18:31 -03:00
waozi 0062f8daa9 Bump Kryon overlay capture tests 2026-08-31 10:06:28 -03:00
waozi 02c9086fc2 Use Kryon dismissible overlay for Stack 2026-08-31 10:00:42 -03:00
waozi 89c5b6775a Consume Stack sidebar close clicks 2026-08-31 09:53:19 -03:00
waozi 3e93770831 Bump Kryon Android DPI default 2026-08-31 09:49:20 -03:00
waozi c02bda07c7 Use Kryon Android viewport defaults 2026-08-31 09:44:30 -03:00
waozi f6ef1ea93d Reduce Inbe package sizes 2026-08-30 19:46:13 -03:00
waozi 6267a226be Remove itch.io README badge [skip ci] 2026-08-30 13:54:43 -03:00
waozi b48d9db866 Fix Android Kryon codegen host build 2026-08-30 13:37:19 -03:00
waozi 18e6cbb8a7 Release 1.9.17 2026-08-30 13:19:27 -03:00
waozi f935f547cb Smooth web habit toggles 2026-08-30 12:17:04 -03:00
waozi 09f97b5275 Update Kryon submodule 2026-08-30 10:34:49 -03:00
waozi 8795455af8 Remove bottom nav titlebar stub 2026-08-30 03:15:05 -03:00
waozi 64baee6962 Stub title bar in bottom nav test 2026-08-30 03:14:29 -03:00
waozi abe7d91db7 Fix bottom nav scaffold test link 2026-08-30 03:14:02 -03:00
waozi eb4bbb3987 Use Kryon screen scaffold helpers 2026-08-30 03:06:40 -03:00
waozi 59de2b7eea Limit Google services to Play Android build 2026-08-30 02:51:07 -03:00
waozi 13b7a95663 Make F-Droid Android release the default build 2026-08-30 02:39:58 -03:00
waozi b23e4fe58e Improve donation modal 2026-08-29 22:33:30 -03:00
waozi 665174edaa Release 1.9.16 2026-08-29 21:59:29 -03:00
waozi adea75fae4 Site: stop syncing the inbe icon from kryon (removed there); use the committed web-assets copy 2026-08-29 21:55:24 -03:00
waozi 654ef7d4f3 Site: lotus at dawn theme — dawn palette, rose accents, garamond + mono type
Same structure and behavior; only the theme changes:
- css/base.css: dawn neutrals (paper gradient, warm ink), fonts, teal links
- themes/inbe.css: rose accent family (#b46a5a) with warm per-platform hovers
- index.html: theme-color matches the dawn paper
2026-08-29 21:31:53 -03:00
waozi e1cb8dd110 Release 1.9.15 2026-08-29 14:48:09 -03:00
waozi e42b820db4 Release 1.9.14 2026-08-29 14:32:24 -03:00
waozi d5007ed418 Stabilize Firefox web smoke import check 2026-08-29 12:58:30 -03:00
waozi d6cc224c5a Update Kryon to v0.1.25 2026-08-29 12:48:02 -03:00
waozi 7cd4b40f3b Stabilize web release smoke test 2026-08-29 12:45:08 -03:00
waozi 941b1eaf36 Fix web release smoke test 2026-08-29 12:29:53 -03:00
waozi fb7d4be430 Use Kryon Android window insets 2026-08-29 12:28:56 -03:00
waozi c11dcf401a Release 1.9.13 2026-08-29 12:16:00 -03:00
waozi 7b01acf79b Use Kryon instance handling for desktop startup 2026-08-29 12:04:40 -03:00
waozi 748cea4772 Fix Android landscape insets 2026-08-29 11:59:43 -03:00
waozi 19ad6ab1a6 Add secure sync migration flow 2026-08-29 11:38:13 -03:00
waozi f98cc4a5a1 Release 1.9.12 2026-08-28 20:20:15 -03:00
waozi 624a7a83e1 Refactor habit storage and guide persistence 2026-08-28 17:51:53 -03:00
waozi cc03f1712a Release Inbe 1.9.11 2026-08-27 23:34:17 -03:00
waozi 8c8b74d9a2 Update Kryon app framework 2026-08-27 19:46:24 -03:00
waozi 0bc03b608d Update Kryon termi frame handling 2026-08-26 05:17:46 -03:00
waozi 74eaa050e0 Add termi screenshot regression test 2026-08-26 04:52:15 -03:00
waozi 2a549c25c8 Update Kryon termi thick lines 2026-08-26 04:39:59 -03:00
waozi cf9aada500 Advance WHM session by elapsed time 2026-08-26 04:27:59 -03:00
waozi 991d350721 Update Kryon termi sixel fallback 2026-08-26 04:22:32 -03:00
waozi 6708809da2 Update Kryon termi defaults 2026-08-26 03:48:29 -03:00
waozi cc615fbfd2 Update Kryon termi frame reset 2026-08-26 03:38:52 -03:00
waozi 31ccb43a81 Update Kryon termi viewport handling 2026-08-26 03:32:19 -03:00
waozi fafa84dc5d Update Kryon termi animation rendering 2026-08-26 03:21:30 -03:00
waozi 5893a652e3 Update Kryon termi frame pacing 2026-08-26 03:09:25 -03:00
waozi a2c901d178 Update Kryon termi shape rendering 2026-08-26 02:59:50 -03:00
waozi 2d89023775 Use shared circle click handling for WHM 2026-08-26 02:54:40 -03:00
waozi 52174dea04 Update Kryon termi click handling 2026-08-26 00:21:57 -03:00
waozi 5f91f75485 Update Kryon termi runtime speedups 2026-08-25 23:59:54 -03:00
waozi 007a77a171 Update Kryon termi button states 2026-08-25 23:42:35 -03:00
waozi ccafb682d9 Update Kryon termi sixel cache 2026-08-25 23:38:38 -03:00
waozi 465234ae66 Avoid relinking Inbe on termi launch 2026-08-25 23:35:52 -03:00
waozi 07f66a0155 Update Kryon termi click handling 2026-08-25 23:29:01 -03:00
waozi d27fd2d4ff Make Inbe terminal launch quiet 2026-08-25 23:23:48 -03:00
waozi 62af672f6a Add Inbe termi run target 2026-08-25 23:04:55 -03:00
waozi 9d42b70e46 Remove remaining Inbe TUI wiring 2026-08-25 22:43:47 -03:00
waozi 6eb502d09d Revert "Add Inbe TUI run target"
This reverts commit 4cad4f8599.
2026-08-25 22:42:52 -03:00
waozi 8136ea7c43 Revert "Bump Kryon TUI backend fix"
This reverts commit 674e2c39ff.
2026-08-25 22:42:52 -03:00
waozi 2f63bd0f2d Revert "Bump Kryon TUI scaling fix"
This reverts commit f3bda4ab45.
2026-08-25 22:42:52 -03:00
waozi f3bda4ab45 Bump Kryon TUI scaling fix 2026-08-25 22:38:57 -03:00
waozi 674e2c39ff Bump Kryon TUI backend fix 2026-08-25 22:34:43 -03:00
waozi 4cad4f8599 Add Inbe TUI run target 2026-08-25 22:30:47 -03:00
waozi 20ecd2954e Run Inbe with Kryon TUI backend 2026-08-25 22:28:12 -03:00
waozi 92e651fa24 Prepare X release posts from saved profile 2026-08-25 19:38:55 -03:00
waozi 0115ae1017 Add Inner Breeze social posting helper 2026-08-25 19:03:23 -03:00
waozi 687f5af9c0 Deploy Netlify site to production directly 2026-08-25 18:57:11 -03:00
waozi cf87438af5 Fix Netlify release deploy ordering 2026-08-25 18:53:51 -03:00
waozi c7235be76e Fix 1.9.10 release packaging 2026-08-25 18:27:39 -03:00
waozi d34b690fbc Fix 1.9.10 release tests 2026-08-25 18:00:28 -03:00
waozi 9a2b1c6827 Release Inbe 1.9.10 2026-08-25 17:52:56 -03:00
waozi eaf9abd4de Add session mood results and statistics 2026-08-25 15:01:20 -03:00
waozi 4e88505ce4 Bump Kryon for bottom nav icon color fix 2026-08-25 09:33:21 -03:00
waozi 83c2920ef3 Drop Plan 9 generated screen root wrappers 2026-08-24 14:27:19 -03:00
waozi 86ae49a9a6 Use ordered Kryon UI include for Plan 9 generated code 2026-08-24 14:22:48 -03:00
waozi 010956fbcb Include Kryon UI prototypes in Plan 9 generated header 2026-08-24 14:19:03 -03:00
waozi 3ba8d3c234 Avoid Plan 9 language route wrapper 2026-08-24 14:10:48 -03:00
waozi 8d39895e1f Defer language onboarding settings save 2026-08-24 13:37:44 -03:00
waozi e97378a77e Bump Kryon submodule 2026-08-23 23:17:45 -03:00
waozi a8618c2903 Adopt Kryon #ui hierarchy syntax 2026-08-23 23:17:20 -03:00
waozi f4ba954b10 Update Kryon canvas test fix 2026-08-23 22:45:54 -03:00
waozi 6909ad936f Update Kryon for canvas guide text 2026-08-23 22:40:57 -03:00
waozi f832eeeb80 Fix showcase banner dimensions 2026-08-23 22:29:53 -03:00
waozi 7f588ae1e2 Update showcase banner 2026-08-23 22:27:53 -03:00
waozi f808c29750 Sync web icons from Kryon 2026-08-23 17:59:58 -03:00
waozi de935ce908 Enable Plan 9 meditation music 2026-08-23 17:57:24 -03:00
waozi 0b3957c9ba Enable native Plan 9 cue audio 2026-08-23 17:28:49 -03:00
waozi 159804cc14 Bump vendor/kryon: fix native Plan 9 libdraw font scaling 2026-08-23 17:08:19 -03:00
waozi 0c985f7da1 Add native Plan 9 build path 2026-08-23 15:54:09 -03:00
waozi 6576b5a72d Bump Kryon: drop the unused Clay dependency 2026-08-23 13:42:55 -03:00
waozi 94c47248cc Fix release runner package checks 2026-08-23 12:05:30 -03:00
waozi fb2a5f2f4f Fix hosted builds with Plan 9 Kryon sources 2026-08-23 09:43:28 -03:00
waozi 09ec8a7938 Build arm64 Linux release assets 2026-08-23 09:30:52 -03:00
waozi bc7d0e099f Bump Kryon native Plan 9 compatibility 2026-08-22 23:45:40 -03:00
waozi c39c6a4df0 Fix CI after Kryon UI API cleanup 2026-08-22 23:09:05 -03:00
waozi 1f80cd26fb Bump Kryon libdraw backend 2026-08-22 23:00:10 -03:00
waozi 9593fbb6fd Wire Inbe native libdraw backend 2026-08-22 22:30:04 -03:00
waozi c7b7e5528a Version site CSS and split Linux package downloads 2026-08-22 22:24:26 -03:00
waozi 6bbc48d32b Use public toast helper for break prompts 2026-08-22 22:24:13 -03:00
waozi 0aeea0b335 Use Kryon widget APIs in Inbe 2026-08-22 20:41:11 -03:00
waozi 7805dae046 Update Chrome privacy disclosures 2026-08-22 17:29:56 -03:00
waozi 7c9229c146 Release Inbe 1.9.9 2026-08-22 01:58:40 -03:00
waozi b5cb8df4c5 Regenerate app icons from tracked source 2026-08-22 01:04:26 -03:00
waozi b63cb38ff3 Add Kryon showcase metadata 2026-08-22 01:02:04 -03:00
waozi 8bb5135cd7 Retry FreeBSD package dependency installs 2026-08-21 21:20:47 -03:00
waozi 8931999778 Fix Android OpenURI link references 2026-08-21 21:08:23 -03:00
waozi 17713b6a49 Fix 1.9.8 CI release build 2026-08-21 20:57:58 -03:00
waozi 76b69263fd Fix donation wallet URI handling 2026-08-21 19:58:07 -03:00
waozi 6a7be61ec0 Update Kryon read-only text behavior 2026-08-21 17:11:07 -03:00
waozi bd2ae932bd Fix web smoke onboarding persistence 2026-08-21 17:03:41 -03:00
waozi b9e74d6c9d Add donation modal 2026-08-21 16:56:48 -03:00
waozi e401f237de Release 1.9.9 2026-08-21 16:41:33 -03:00
waozi ff69fa71b3 Make image asset test portable 2026-08-21 16:24:17 -03:00
waozi 75b41115af Fix embedded practice banner assets 2026-08-21 16:20:08 -03:00
waozi f7efa49a6b Update practice imagery and Kryon integration 2026-08-21 16:03:39 -03:00
waozi ccdeb5ae61 Release 1.9.8 2026-08-21 13:26:00 -03:00
waozi 69f91ae928 Fix web startup readiness 2026-08-19 23:10:48 -03:00
waozi 2f66434a44 Merge remote master and release Inbe 1.9.7 2026-08-19 22:58:30 -03:00
waozi a6910f76b7 Release Inbe 1.9.6 2026-08-19 22:48:20 -03:00
waozi 33ddd5aea5 Fix practice banner spacing and order 2026-08-19 22:36:03 -03:00
waozi 90e3ba03a7 Clean up music settings and leaderboard sorting 2026-08-19 22:29:39 -03:00
waozi 88b89b3b90 Remove Aero style and fix styled banners 2026-08-19 22:16:20 -03:00
waozi 4161a481b7 Fix leaderboard refresh and styled banners 2026-08-19 21:43:42 -03:00
waozi 5dcf41016c Keep break timer windows on all workspaces 2026-08-19 20:44:42 -03:00
waozi 0f54ce97ba Release Inner Breeze 1.9.6 2026-08-19 20:36:33 -03:00
waozi 9bb4af9545 Update guide overlay test stubs 2026-08-19 20:21:11 -03:00
waozi fb9decdd85 Fix non-desktop Breaks guards 2026-08-19 20:17:14 -03:00
waozi 031dcc29aa Make donation reminder practice-based 2026-08-19 20:12:28 -03:00
waozi 13aacab312 Limit release appcast submodule checkout 2026-08-19 19:42:15 -03:00
waozi 9458c1e4b2 Use Canvas fallback when WebGL is unavailable 2026-08-19 19:25:44 -03:00
waozi 72736b010f Fetch submodules for release appcast 2026-08-19 19:15:05 -03:00
waozi 8aa253d4d6 Disable stale GitHub apt mirrorlist 2026-08-19 18:59:42 -03:00
waozi 97f303be23 Pin CI apt installs to Ubuntu archive 2026-08-19 18:37:24 -03:00
waozi 0928bd1012 Harden release workflow installs 2026-08-19 18:10:29 -03:00
waozi d9d2485e83 Delay support prompt and bump Canvas fixes 2026-08-19 17:47:13 -03:00
waozi a763b582d7 Fix release appcast publishing 2026-08-19 17:40:07 -03:00
waozi 0c2156154f Use Kryon helpers and enable Canvas sync parity 2026-08-19 17:27:42 -03:00
waozi 1a124cb444 Add web renderer comparison gate 2026-08-19 17:14:43 -03:00
waozi 2fd164865d Fix Android release build 2026-08-19 17:01:48 -03:00
waozi 74a5cda45d Fix non-desktop SDL guards 2026-08-19 16:44:56 -03:00
waozi b51e7403c3 Speed up CI workflow checkouts 2026-08-19 16:22:01 -03:00
waozi 97cc83ab2f Speed up release workflow checkouts 2026-08-19 16:15:46 -03:00
waozi 4c95be8e09 Add monthly donation reminder 2026-08-19 15:56:01 -03:00
waozi 4ecc53c052 HUD drag follows the pointer exactly; assert it in the e2e suite
Vendor kryon diffs the global pointer position during borderless-
window drags instead of accumulating motion events (pointer batching
ate the last step), baselines the drag at the true press position
(the first step was lost between press and the first pump frame), and
captures the mouse for the drag duration. The desktop window-mode
suite now asserts the HUD lands within 2px of the exact drag path.
2026-08-19 15:31:55 -03:00
waozi e3de8ec99d CI: gate on public-HTTPS submodule URLs
A guard job with a plain checkout fails the run when any .gitmodules
URL is not https:// — SSH URLs work only with a developer key and
break fresh clones and CI instead. The test job needs the guard.
2026-08-19 15:28:53 -03:00
waozi 5f08aa12b1 Close the window for real; drag the break HUD; e2e window-mode tests
The title-bar close button did nothing: SDL2 delivers the close
request as SDL_WINDOWEVENT_CLOSE and raylib's SDL backend only
latches SDL_QUIT. The main loop now consumes the close request
kryon's window pump records (StealUICoreWindowClose) and runs the
normal close flow, so every mode works again: ask prompts, keep-
running hides to the tray, quit exits.

raylib also asks SDL for mouse capture at window creation; the
resulting active pointer grab on the main window swallowed every
click and drag aimed at the break HUD. The grab is released right
after InitWindow.

Adds scripts/test-desktop-windows.sh (make test-desktop-windows):
end-to-end coverage on a private Xvfb display for the window-close
matrix (startup, keep-running, ask+quit, ask+keep-running) and
break-HUD dragging.

Vendor kryon brings the close bridge, SDL-path drag support and the
StealUICoreWindowClose API.
2026-08-19 15:18:53 -03:00
waozi f2f8107352 Drop leftover startup-diagnostic logging from app_update_draw 2026-08-19 14:29:06 -03:00
waozi 668ccaf628 Start hidden only with a live tray; throttle the break HUD
The 'Start minimized' desktop startup mode hid the window even when
the tray failed to initialize - the fallback minimized a window with
nothing to restore it from, leaving the app running completely
unreachable: no window, no taskbar entry, nothing to click or close.
Hidden startup is now honored only when the tray is actually ready,
and both hidden startup and tray hides say so in the log.

The break HUD now presents at ~2 Hz instead of every frame: each
present swaps GL contexts and stalls the main context with a
glFinish, which kept a core busy and widened the multi-window race
window for content that changes once per second.

Vendor kryon ignores systray XEMBED-handshake activations, which
could toggle the window hidden right after launch, and resolves
gtk_status_icon_is_embedded through the lazy GTK table.
2026-08-19 14:28:46 -03:00
waozi aa1dc4e451 Add Windows installer and winget publishing (1.9.5)
make windows-setup builds an NSIS installer (both portable exes,
shortcuts, ARP entries, silent /S installs) beside the zip; verified
by running a silent install under wine. The release workflow builds
and ships it, and a gated publish-winget job keeps the winget manifest
current on each release (needs the WINGET_TOKEN secret; the one-time
new-package submission uses the template in packaging/winget).
2026-08-19 14:22:08 -03:00
waozi 169835e3af Bump kryon: Go bindings, arch-aware AppImage appcast key
The appcast appimage channel is now appimage-<dpkg arch> so multi-arch
publishers list one channel per arch and each machine resolves its own.
Also brings the kry_update_flow kryui bindings (not yet used by inbe).
2026-08-19 14:15:50 -03:00
waozi c6ce731acb Fix Windows build: guard setenv in screenshot mode
KRYON_SHOT_ARM armed via POSIX setenv in a path that compiles on
Windows; every other env write in main.c already branches to _putenv.
Older mingw gcc let it slide as a warning, gcc 14+ makes the implicit
declaration an error. Found by cross-compiling with gcc 15; the exe
then builds and runs under wine.
2026-08-19 14:13:40 -03:00
waozi ae419fb8ae Ride the shared kry_update_flow for the desktop updater
app_update_check.c keeps only inbe's persistence (daily check stamp in
settings), locale strings, the toast, and the miniz zip extractor
handed to the flow as a callback; check/channel/download/verify/apply
now come from kryon's kry_update_flow so every kryon app embeds the
same lifecycle. The release workflow generates appcast.json through
kryon's scripts/make_appcast.py instead of inline python. Verified end
to end against a local appcast server: available -> staged+verified.
2026-08-19 14:03:28 -03:00
waozi 9dcacc26c7 Add in-app self-update for AppImage and Windows portable (1.9.5)
Settings -> About now walks the whole update for self-service channels:
Download (checksum-verified, progress in the row), then one click on
Restart to update. On AppImage the verified file is staged next to the
running image and atomically swapped in before re-exec; on Windows the
zip is extracted beside the install and a detached swap script waits
for exit, swaps directories, and relaunches. Packaged, Snap, Flatpak
and source installs keep the link-only row. The AppImage build also
embeds AppImageUpdate (zsync) delta information now.

Vendor kryon brings kry_http_download, kry_sha256 and the kry_update
download/verify/apply primitives. The tray main loop now honors
app->request_quit so a confirmed update restart exits without the
keep-running prompt. INBE_UPDATE_AUTO_DOWNLOAD drives the flow for
tests (verified end to end against a local appcast server).
2026-08-19 13:49:33 -03:00
waozi 7077d5aaa4 Add desktop update notifications (1.9.5)
The app checks the release appcast once a day on desktop and surfaces a
new version with a toast plus a download link in Settings -> About.
AppImage and Windows users get the direct artifact URL; deb/rpm, Snap
and Flatpak installs are left to the system updater. The release
workflow now publishes appcast.json (version, notes, per-channel URL,
SHA-256, size) alongside the release artifacts, and the vendor kryon
pointer brings in the new kry_update module. INBE_UPDATE_APPCAST_OVERRIDE
overrides the URL for testing.
2026-08-19 13:26:23 -03:00
waozi 81de6ff998 Ship a true 512px desktop icon
The packaging icon was a 256px image, but the desktop install suite (make install / install-user, deb, AppImage) stages it into icons/hicolor/512x512. Replace it with the canonical 512px artwork so installed menu icons match their hicolor size slot.
2026-08-19 12:20:10 -03:00
waozi 2996fcadef Follow the system theme by default on every platform
Fresh installs now default the theme source to System on desktop, Android and web instead of the Sky app palette. The web theme settings no longer hide the System option, so the default is not clamped back to the app palette when the appearance screen opens. Includes the kryon bump that makes GetDefaultPlatformThemeSource() return SYSTEM everywhere.
2026-08-19 12:14:25 -03:00
waozi 1e0c81dbf7 web: exclude canvas backend sources from the raylib web build
The web build's src sweep picked up kryon's canvas backend, which
defines the same public surface as the generated raylib wrappers and
broke the wasm link with duplicate symbols. KRYON_WEB_SRCS now filters
canvas_*.c, mirroring how web-canvas drops the wrappers instead.

Bump vendor/kryon: the canvas backend is now split into per-concern
sources (window/input/draw/texture/text/os/audio) with deduplicated JS
glue and a zero-initialized LoadFont failure return; kryon's node
call-sequence gate records an identical trace before and after.
2026-08-19 09:48:11 -03:00
waozi d26cdd72a6 Add web-canvas target: the web build on kryon's Canvas2D backend
Vendor kryon forward to master, which now carries the canvas Tier A
backend (HTML5 Canvas2D through EM_JS: no libraylib.web.a, no GLFW, no
WebGL). make web-canvas compiles the same generated app sources with
kryon's src tree + canvas_backend.c under emcc (-sASYNCIFY so the
while-loop frame pacing survives, -fexceptions for the set_main_loop
unwind) and preloads locales and assets.

Sync-account crypto and audio are not carried in this target:
scripts/ksync-canvas-shim.c reports sync unavailable (the app runs
local-only) and kryon's canvas audio is null-grade. The host page
(web-assets/canvas_index.html) drives requestAnimationFrame from timers
because embedded webviews suspend RAF while timers keep running.

Verified in a real browser: full boot, storage, fonts, icons, theming,
tinting, and input all render on the canvas backend.
2026-08-18 20:57:09 -03:00
waozi f5bde88490 Localize the theme section and follow the system locale
The theme settings UI shipped English in every language: the locale
files carried none of kryon's theme_* keys, and the picker's label
fallbacks bypassed the locale catalog entirely (kryon b969d0f fixes
that side). Add the full theme-section key set to all 13 locale files
and default the language to the system locale (kryon's new
GetDefaultLocaleCode) instead of hardcoded English; a saved language
choice still wins. Verified by rendering the theme screen under de and
pt_BR system locales - Modus/Hell/Dunkel/Farbschema/Stil and
Tema/Modo/Claro/Escuro/Esquema de cores/Estilo all come through.
2026-08-18 18:57:50 -03:00
waozi 204f4dc0d3 Vendor kryon with the dropdown click-vs-drag fix
Bump vendored kryon to master (79d4fed): wobbled and slow clicks now
select from dropdown popups instead of being swallowed as drags - the
press-Dark-and-nothing-happens case. Verified end to end against the
running app with synthetic X clicks and the persisted settings.
2026-08-18 18:42:27 -03:00
waozi 6d064565c4 Vendor kryon without the dedicated Aero palette
Bump vendored kryon to master (eb9967c): the Aero style is
palette-agnostic and defaults to Sky; the 13th palette entry is gone.
A previously saved palette id beyond the new count falls back through
the normal out-of-range clamp.
2026-08-18 18:14:35 -03:00
waozi 9217d9e98f Vendor kryon with dropdown Escape/focus dismissal
Bump vendored kryon to master (0adf507): open dropdown popups now also
close on Escape and on window focus loss, on top of the popup flip
fix.
2026-08-18 18:04:57 -03:00
waozi cac6a7d540 Vendor kryon with the tall-dropdown popup fix
Bump vendored kryon to master (54a71e6): dropdown popups that do not
fit below the control now flip above it instead of running off-screen,
so the tail options of long lists (the palette picker) are reachable
and clickable again.
2026-08-18 17:54:10 -03:00
waozi 79e9bd73a1 Vendor kryon with self-arming screenshot capture
Bump vendored kryon to master (112ebe3). Screenshot mode now arms
kryon's pre-swap capture itself (no wrapper-script env needed) and
writes the PNG through kryon's own writer, which works on this GL
stack where raylib's ExportImage silently drops the image.

Aero renders verified across home, practice config, WHM session,
calendar, habits stats, my practices, settings and theme selection,
light and dark, at 1080x1920.
2026-08-18 17:12:26 -03:00
waozi 2bdcb8911d Vendor kryon with the Aero widget style
Bump the vendored kryon to master (cba5140) which adds the Aero
(Vista/7 glass) widget style and the Aero palette, and widen the theme
style clamps so the style and palette are selectable in theme settings.
Existing Retro/Material/Mono picks are unaffected.
2026-08-18 16:15:28 -03:00
waozi fed87680e0 Harden CI and Release workflows against apt stalls
Add timeout-minutes to every job and apt retry/timeout options
(Acquire::Retries, Acquire::http/https::Timeout) to all apt-get
update/install calls, so a stalled package download fails fast
instead of hanging until the 6-hour job limit cancels the run.
2026-08-18 15:57:02 -03:00
waozi 70a805be76 Release 1.9.4 with corrected secondary windows 2026-08-17 22:10:42 -03:00
waozi b72c87380e Update Kryon secondary window texture sync 2026-08-17 21:42:46 -03:00
waozi af3d46ed32 Update Kryon Linux multi-window renderer 2026-08-17 21:39:41 -03:00
waozi fd74ec0bc9 Update Kryon tray path overflow fix 2026-08-17 20:23:25 -03:00
waozi 46bad17ccc Fix web build platform flags 2026-08-17 20:14:42 -03:00
waozi e2ed1b9f9f Update Kryon direct GNOME icon path 2026-08-17 20:10:27 -03:00
waozi 8baa7e81f0 release: add Android custom music support 2026-08-17 19:54:15 -03:00
waozi 722d8538b2 Update Kryon GNOME tray icon fix 2026-08-17 19:49:52 -03:00
waozi e11823cadc Finish WHM declaration modernization 2026-08-17 19:47:17 -03:00
waozi 0d1e6caeb4 Modernize WHM Kry declarations 2026-08-17 19:44:34 -03:00
waozi 2f66466ff8 Update Kryon code generator fix 2026-08-17 19:42:58 -03:00
waozi ed1564da24 Show break window separately on Wayland 2026-08-17 19:30:16 -03:00
waozi 7543d78fd8 Improve Wayland tray and break support 2026-08-17 19:11:24 -03:00
waozi 7ae492e1e5 site: use Kryon monospace stack 2026-08-17 13:51:25 -03:00
waozi d5c08cd510 fix: keep native social result out of web build 2026-08-17 13:21:58 -03:00
waozi e6fc671ac7 release: prepare 1.9.2 2026-08-17 13:11:03 -03:00
waozi d18c4908e2 art: restore original WHM banner 2026-08-17 12:58:15 -03:00
waozi c65267b190 art: create new WHM ice-bath scene 2026-08-17 12:56:29 -03:00
waozi 0ad05dcab4 art: restore original WHM banner character style 2026-08-17 12:51:15 -03:00
waozi 4827f96230 art: refine practice banner characters 2026-08-17 12:47:11 -03:00
waozi 9ad2905f31 art: refresh Wim Hof practice banner 2026-08-17 12:42:51 -03:00
waozi 13e47af93f feat: simplify meditation and pattern sessions 2026-08-17 12:38:23 -03:00
waozi f872ee84ac feat: refine profile and breathing experience 2026-08-17 12:29:35 -03:00
waozi 6f5ffdb193 windows: retain 32-bit OpenGL import 2026-08-17 10:25:06 -03:00
waozi 2120dfb3f1 Merge branch 'master' into archive 2026-08-17 08:59:46 -03:00
waozi b5f3bb9efb ci: fix OpenStore arm64 apt sources 2026-08-17 08:59:09 -03:00
waozi bc004c25fd archive: incorporate clean master history 2026-08-17 08:57:53 -03:00
waozi 6243a7b769 docs: make 1.9.1 notes user-facing 2026-08-17 08:55:16 -03:00
waozi 32dff85145 release: repair 1.9.1 builds 2026-08-17 08:54:18 -03:00
waozi 25d73f2f9c main: statistics, profile, habit_edit screenshot scenes
The three newly cartridge-ported screens join the screenshot scene
set (habits statistics tab, profile screen, habit editor) so the
krb native-exactness harness can capture their reference frames.
2026-08-17 08:30:39 -03:00
waozi 3c0df6f264 ci: exactness via the armed pre-swap capture; kryon ffd53ee 2026-08-17 05:58:55 -03:00
waozi 2c3cc5ab1b ci: compositor capture at exact screen size (480x640); kryon 15d2369 2026-08-17 05:02:44 -03:00
waozi aa668cab48 ci: softpipe with the internal front-buffer export (compositor path OOMs/kills) 2026-08-17 04:21:32 -03:00
waozi 6746f71ed9 ci: softpipe for the exactness GL stack (llvmpipe+xcompmgr crashed Xvfb) 2026-08-17 04:04:27 -03:00
waozi 48dd70f571 ci: composite the Xvfb root with xcompmgr and capture via KRB_EXACT_XWD
raylib's ES2 context has no glReadBuffer/GL_FRONT, so the internal
export cannot work on software GL; an ARGB window also never reaches
the root framebuffer without a compositor. xcompmgr composites it and
the harness's xwd path captures the result.
2026-08-17 03:46:44 -03:00
waozi 74d0136f98 ci: exactness uses the internal front-buffer export; kryon kill hardening 2026-08-17 03:25:28 -03:00
waozi 1cf44f0965 vendor/kryon: bump to af7c1d2 (front-buffer LoadImageFromScreen) 2026-08-17 02:26:26 -03:00
waozi 7474f360bf ci: exactness gate captures via Xvfb root composite; kryon e7a8795 2026-08-17 01:58:03 -03:00
waozi 06f18ccc28 ci: upload the exactness comparison frames as artifacts 2026-08-17 01:40:13 -03:00
waozi 58d9fb40da ci: pass the runner workspace, not a dev path, to the exactness harness 2026-08-17 01:23:26 -03:00
waozi 21ea7794b3 ci: native exactness job installs the native build deps (sdl2/gles/gtk) 2026-08-17 01:07:56 -03:00
waozi 112ac01599 Android: Health Connect export, breathe widget, quick-settings tile, launcher shortcuts
- Data & export gains a Health Connect button on Android: sessions push
  as mindfulness records (meditation / breathing) and sun salutation as
  a yoga exercise session; incremental marker, permission flow and
  toasts live in a small Kotlin helper (connect-client 1.1.0)
- "Breathe" home-screen widget and quick-settings tile start the
  last-used practice instantly; long-press shortcuts pin each practice
- ACTION_START_PRACTICE handled from cold launch (pending retry on
  first focus) and warm launch; replaces an active break like the
  desktop break-window chips do
- storage_export_health_connect_csv writes start,end,activity rows;
  android_health.kry bridges settings -> Java via the JNI session helper
- AGP 8.9.1 / Gradle 8.11.1 (compileSdk 36 + connect-client requirement);
  vendor/kryon bumped for the multi-line array-initializer k2c fix
  (kryon 581f9aa)
2026-08-17 00:43:51 -03:00
waozi 6a3e5dff26 ci: pass repo root to the native exactness harness; kryon f903111 2026-08-17 00:00:57 -03:00
waozi 38d583f349 ci: krb native-exactness gate + vendor/kryon bump to 47820cc
Bump the vendored kryon to master 47820cc (KRB v2: logic VM with
else/arithmetic/TIME expressions and animated geometry, embedded
PNG/KRAW assets + KFA1 glyph atlas, scroll, text input, dropdowns,
nav buttons, the kry_sw/SDL/web renderers, and the exactness
harnesses). New CI job runs the language screen both ways — the C
build's --screenshot scene export under xvfb and the cartridge
render — and pixel-compares with zero tolerance.
2026-08-16 23:54:44 -03:00
waozi 3b3dc6f4ff Run a practice instead of taking a break
- Break window shows a chip per visible practice below the panel
  (shared geometry for draw + both click paths)
- Starting one takes the break (timers reset) and freeze break
  scheduling for the whole session, so the effective restart lands
  after the practice ends regardless of its length
- No break window or prompt appears over a running practice
2026-08-16 23:13:18 -03:00
waozi fa2df6ad63 Add breathing patterns practice (box, 4-7-8, coherent, extended exhale, custom)
- New timed-ratio breathing practice with animated circle, phase cues,
  pause/resume and duration cap; sessions saved under EXERCISE_PATTERNS
  with habit linking, CSV export and sync support
- Config screen: preset picker, per-phase custom steppers, duration row
- Tray quick-start entry, session-complete notification label
- Practice home metadata shows the active ratio and duration
- New locale keys in all 12 languages
2026-08-16 22:53:07 -03:00
waozi 73ec438e06 main: 'language' screenshot scene + INBE_SHOT_WINDOW hold hook 2026-08-16 22:47:51 -03:00
waozi eff4fee861 habits: weekly schedules, per-habit reminders, 32-habit cap
- habits carry a weekday cadence (bit0=Mon..bit6=Sun, 0=every day):
  off-schedule days render muted in the overview, don't count toward
  today's done total, and neither extend nor break streaks
- per-habit reminder hour (Off..23:00) fires a local notification when
  the hour arrives and the habit isn't completed yet
- INBE_HABIT_MAX 10 -> 32 (tray quick-mark stays at 10 entries)
- schema: habits.weekdays / habits.reminder_hour columns with
  migrations; fields ride the sync payloads with COALESCE fallbacks
2026-08-16 22:19:00 -03:00
waozi c988e6f363 data: export sessions as CSV (date, practice, rounds, hold/meditation seconds) 2026-08-16 22:02:49 -03:00
waozi 0a6baa6331 remove the pet/gamification placeholder screen (unreachable stub) 2026-08-16 21:59:16 -03:00
waozi 52ccb89622 practice home: per-practice visibility checkboxes (wires up the dormant practice_visible_mask) 2026-08-16 21:56:24 -03:00
waozi f31b5f83dc sun salutation: graduate from WIP - drop the work-in-progress label, enable the man/woman figure selector 2026-08-16 21:50:33 -03:00
waozi a742c6b915 meditation: optional interval bell every N minutes (off/1/2/5/10/15/30) 2026-08-16 21:45:02 -03:00
waozi c615175754 droid: exclude the whole kryon src/backend software renderer, not just surface_math 2026-08-16 21:02:00 -03:00
waozi 8281a3b7da droid: exclude kry_surface_math.c - duplicate raylib symbols on Android 2026-08-16 20:43:21 -03:00
waozi b80ebd10b9 main: _putenv on Windows for the SDL screensaver env var (mingw has no setenv) 2026-08-16 20:24:32 -03:00
waozi ed426cbef2 vendor/kryon: kir typed-decl fix + tray cast fix; link ksync_crypto in sync tests 2026-08-16 20:06:29 -03:00
waozi 865bb80769 vendor/kryon: tray cast-macro fix (unresolved get_type on GTK-unlinked builds) 2026-08-16 19:58:36 -03:00
waozi cb24f8d319 breaks: fall back to opening Break settings directly when the tray is not built (click) 2026-08-16 19:41:32 -03:00
waozi a31bb71b39 ci: pass absolute cross-tool paths to the click build 2026-08-16 19:29:23 -03:00
waozi c4723fe829 ci: fix OpenStore arm64 apt sources (ports.ubuntu.com for the added architecture) 2026-08-16 19:16:36 -03:00
waozi 28172681a1 release: 1.9.1 2026-08-16 19:10:40 -03:00
waozi 343025097c breaks: own centered break window, draggable HUD, desktop startup/close settings, single instance
- breaks render in a separate centered always-on-top OS window; the main
  window (possibly hidden to tray) is no longer taken over, and the
  overlay's Postpone/Skip/Rest-now buttons + right-click settings work
  through click-position hit-testing
- micro breaks open immediately when due (toast-prompt phase removed);
  rest/daily keep prompts
- HUD: drag anywhere to move (position persists), right-click opens
  Break settings, disabled timers are hidden, and it stays visible during
  a break with the remaining rest countdown
- Device settings (desktop): startup mode and on-close behavior dropdowns
- single-instance handover via PID lock; a new launch replaces the old
  one gracefully (screenshot mode exempt)
- break exercises removed for now (settings rows, tray entry, overlay);
  practices-during-break is the planned follow-up
- vendor/kryon bumped to pushed master: ui_window center/drag/right-click
  + per-window XImage buffers + X11 Time layout fix; system_theme reads
  the GTK palette from the theme's gtk.css
- locales: new desktop/tray keys everywhere; unused exercise keys dropped
2026-08-16 19:10:34 -03:00
waozi c4d5cf863e breaks: desktop-only in sidebar on every platform; drop the desktop-only notice
The sidebar settings list is gated on PLATFORM_DESKTOP directly (undefined
ANDROID/DESKTOP identifiers silently compiled the 6-entry branch on web and
Android). The breaks screen no longer shows a 'desktop only' notice on
non-desktop; Android never links the input-block monitor, so those calls are
desktop-gated too.
2026-08-16 08:04:10 -05:00
waozi 1da7fdbc11 android_jni: attach() keeps the session by value; helpers are public
The attach() local is a struct value, not a pointer (the regex that fixed
the pointer-side access flipped it too), and the JNI helpers were marked
#private so cross-module callers never saw their declarations - the
Android release build caught both.
2026-08-15 18:44:53 -05:00
waozi 9ee923e4ae widgetize: kryon PickerDialog/Spinbox/ButtonRow adopted; JNI dispatcher; drift tests
- reminder hour rows use kryon Spinbox (value_text "08:00", wrap mode);
  the push distributor picker is kryon PickerDialog instead of ~90 lines
  of hand-drawn scrim/panel/rows; audio output buttons use ButtonRow with
  GetUIButtonRowHeight (kryon 442c868)
- android_jni.kry: one attach/call/detach dispatcher (wakelock pattern);
  android_push.kry's four hand-rolled JNI blocks rebuilt on it
- tests/settings_keys_test.c: save/load/import key parity guard (scans
  the .kry/.c sources like the locale test); caught nothing outstanding
  after scoping loads in app.c too
- locale test now also fails on translation keys absent from en.txt and
  caught practice_music_title dead in 11 locales (removed)
- language dropdown id 200 -> 260 (collided with the add-reminder
  button); dead device_picker_open field and a duplicate import dropped
2026-08-15 18:20:50 -05:00
waozi 7454aadcbb web: the notification permission gate actually applies now
The #if !WEB guard in app_notifications.kry referenced an undefined
identifier, so the startup permission request still compiled into the
web build and Firefox rejected it outside a user gesture. WEB is now
defined from PLATFORM_WEB in that module.
2026-08-15 17:09:43 -05:00
waozi 3ab0604f3d web: request notification permission from the user gesture only
Browsers only allow Notification.requestPermission() inside a
user-generated event handler; asking at app startup threw in Firefox and
failed the web smoke. The startup ask stays for native platforms; on web
the test-notification button asks first.
2026-08-15 16:49:29 -05:00
waozi d903bd5ade vendor/kryon: Windows/macOS build the ui_window stubs 2026-08-15 16:26:58 -05:00
waozi 7e6d2c0126 Release 1.9.0: settings load cache grows dynamically
The 192-entry fixed settings cache silently dropped keys once the
notification-era setting count passed it, which broke the web
reload-persistence smoke (tutorial_seen fell off the end). The cache now
reallocs on the heap and warns if allocation fails.
2026-08-15 16:09:45 -05:00
waozi 7c4250ab6d Release 1.9.0 2026-08-15 15:42:02 -05:00
waozi 9b5f53acae nav sidebar: scroll container sized to the real content height
The sidebar scroll area reported a fixed 300px content height, so with the
profile row and all settings entries the list overflowed its viewport with
no way to scroll. The height now matches what is actually drawn.
2026-08-15 15:30:08 -05:00
waozi 60cfc0ee01 push picker shows distributor labels and icons; tutorial stops returning
- picker rows render the distributor's app label and launcher icon (Java
  exports 96px PNGs to the cache dir, JNI caches labels + paths, textures
  load on open and unload on close); registering still uses the package
- first-run guide no longer reappears after quitting mid-tour: the guide
  only auto-starts at step 0, advancing persists tutorial_step, and the
  Android back key now closes the guide (kryon vendor bump for that)
2026-08-15 15:12:43 -05:00
waozi 37cd330f76 push setup opens an in-app distributor picker
'Set up push' now queries the installed UnifiedPush distributors via JNI
(getUnifiedPushDistributors) and opens a kryon modal listing them; picking
one registers through configureUnifiedPushWith(pkg) on the UI thread. With
no distributor installed the button keeps the toast + F-Droid hint path.
The old always-register-with-the-only-one and the Android AlertDialog
picker are gone - the app owns the UI now.
2026-08-15 14:24:18 -05:00
waozi 9e640a6948 push setup: run UnifiedPush configuration on the UI thread
configureUnifiedPush is invoked via JNI from the native render thread, which
has no Looper. The toast (and the permission request / distributor dialog)
threw 'Can't toast on a thread that has not called Looper.prepare()' and the
exception aborted the method before UnifiedPush.register() ran — so tapping
'Set up push' did nothing. The body now runs via runOnUiThread.
2026-08-15 13:45:17 -05:00
waozi 3e5393d880 mobile sidebar drops Breaks; push setup shows real state; reminder time centered
- nav sidebar lists no Breaks entry on Android (desktop-only feature) and
  the settings screen falls back to Device if a restored tab was Breaks
- push status now reports actual UnifiedPush registration (endpoint saved),
  refreshed every ~30 frames, not just notification permission; the setup
  button asks for notification permission first and toasts which distributor
  it registers with, so tapping it always gives visible feedback
- reminder time drawn with DrawCenteredUIControlText at the button-row
  center: exact vertical alignment with the -/+ glyphs
2026-08-15 13:13:14 -05:00
waozi 9e33cd673a practice home: exact below-card sizing; guide anchored to the drawn rects
The first-run guide highlighted rects computed by a parallel layout that
ignored the scroll-page path and the stacked manual/config rows, so on
narrow screens (moto) every anchor was offset and the home flipped into
scroll mode even though the content fit.

- practice_home_below_card_height() mirrors the drawn stack exactly
  (carousel + start + 12px gaps + manual/config rows + padding), replacing
  the fixed 176px reserve in practice_home_card_height; content_height
  uses the same helper so the page no longer scrolls when it fits
- start_kry_draw records the card/start/manual/config rects it actually
  renders into the app; the guide anchors to those bounds, so the
  highlight can never drift from the real widgets
- practice_home_layout and its guide-anchor helper are gone (no parallel
  math left to fall out of sync)
2026-08-15 12:45:23 -05:00
waozi 6a78a2b5e6 notifications: editable reminder list, friend-request setting; first-run guide stays on practice home
- reminders are now a list: add/remove entries, practice dropdown, [-] HH:00 [+] stepper
  with the time exactly centered (DrawCenteredUIControlText + MeasureUIText sizing)
- default list is one WHM reminder at 08:00 that can be disabled or deleted
- new friend-request notification setting (on by default): fires when a social
  sync reports new incoming requests (app_notifications_on_friends_synced)
- dropped the session-complete setting; in-practice completion notifications
  are unconditional and independent of reminders
- push section stays Android-only; reminder loading moved to all platforms
  (desktop notifies via GDBus too)
- first-run guide no longer activates on the blank welcome screen, where its
  anchors pointed at widgets that were not on screen (moto misalignment)
- settings_ui.toggle_switch_width is public now; new screenshot scenes
  first_run_guide, first_run_guide_blank, settings_notifications
2026-08-15 12:17:32 -05:00
waozi 2e22958c0e vendor/kryon: bump for ui_window android build fix 2026-08-15 12:17:29 -05:00
waozi 8dde45c17e breaks: HUD as a real OS window via the new kryon UIWindow API
The break timer mini window is now a separate top-right OS window
(borderless, always-on-top, taskbar-free) instead of an overlay inside
the app window, using kryon's new OpenUIWindow/BeginUIWindow/
EndUIWindow/IsUIWindowClicked. Content is the same Micro/Rest/Daily
countdown rows with progress bars; clicking it opens Settings ->
Breaks; it closes while the break overlay itself is up and when breaks
are disabled. Desktop only. vendor/kryon at da646a7.
2026-08-15 10:08:02 -05:00
waozi 802c203673 breaks: off by default; top-right timer HUD when enabled
Fresh installs start with break reminders disabled — the Breaks tab's
master toggle opts in (existing users keep their choice). While breaks
are on, a compact HUD sits top-right over every screen: Micro/Rest/
Daily rows with live countdowns and activity progress bars (orange when
a break is due); a due break's row turns orange. Clicking the HUD opens
the Breaks settings tab. Hidden on the break overlay itself; desktop
only. Screenshot scenes: break_settings now enables breaks so the HUD
is verifiable.
2026-08-15 07:19:28 -05:00
waozi 390805e20b UnifiedPush support: push notifications without Google services
Integrate unifiedpush.org (spec AND_3.1.0) via the official connector
(org.unifiedpush.android:connector). The user installs any distributor
-- Sunup from F-Droid (org.unifiedpush.distributor.sunup), ntfy,
NextPush, ... -- and Inner Breeze receives push:

- PushServiceImpl: the distributor starts it directly, so pushes show a
  notification even when the native app is not running (own
  inbe.push channel). Message protocol v1: first line is the title,
  the rest is the body (cleartext, spec limit ~3993 bytes).
- onNewEndpoint persists the endpoint URL (SharedPreferences, exposed
  via PushServiceImpl.getEndpoint) for the sync server to send to.
- Settings > Device (Android): 'Push notifications' button --
  no distributor installed opens Sunup's F-Droid page; several offer a
  picker; one registers silently.
- android_push.kry: JNI bridge driving MainActivity.configureUnifiedPush
  from the native settings screen.

Verified: full Android build green with the connector dep, desktop/web
builds clean, all tests pass.
2026-08-15 07:18:56 -05:00
waozi 20a5b0f340 vendor/kryon at 301c1e6 2026-08-15 07:14:59 -05:00
waozi 37cf862ea2 breaks: add the Breaks tab to the settings sidebar list
The tab existed (screen, label, dispatch) but the sidebar's settings
section table only enumerated Device/Audio/Theme/About — the only
desktop entry point to the breaks settings was invisible.
2026-08-15 06:59:16 -05:00
waozi b13f01ee05 Notifications: settings, persistence, session-complete (kryon backend)
First app-side use of kryon's new notification helpers:

- New app.notifications module (app_notifications.kry): init sets the
  app name and requests permission; sends are gated on the user
  setting + permission. Session-complete notifications only fire when
  the window is unfocused (no noise while you watch the app).
- Settings > Device: Notifications toggle (persisted as
  notifications_enabled, default on) + 'Send test notification' button;
  enabling requests POST_NOTIFICATIONS when not granted.
- Session completion (WHM rounds done, meditation/sun-salutation
  finish) sends a localized notification.
- Desktop Linux compiles the GDBus backend in (vendor.mk gio probe);
  Android/web get their branches automatically.
- 6 new locale keys in all 12 languages; CJK font subsets regenerated
  -- the glyph coverage test caught 通知/工作 glyphs missing from the
  old subsets before they could ship.

Verified: desktop/web/android builds 0 errors, all tests green
(incl. glyph coverage on the regenerated subsets), app boots.
2026-08-15 00:27:07 -05:00
waozi 66b9b91487 Android + web builds on the notification-era kryon (droid CMake fixes)
vendor/kryon -> d01d8c7.

- droid CMakeLists host-k2c rule: CMake VERBATIM escapes embedded
  quotes, so -I"..." passed a literally-quoted include path and the
  host compiler could not find kir.h. Unquoted (no spaces in paths).
- Drop the kc-era db.kry/import.kry -> *_impl.c output mapping: k2c
  emits natural names, matching the Makefile (the CMake copy had
  drifted).

With that, the full corpus + kryon's new notification backend (pure-JNI
Android branch, EM_JS web branch) compile: all APK ABIs build, web
builds clean.
2026-08-14 22:39:43 -05:00
waozi a68c67f907 web: ship kryon-web-present.js — WebKitGTK software-GL survival
One script tag before the Emscripten bootstrap plus a Makefile copy of
vendor/kryon/web/kryon-web-present.js. On WebKit + software GL it moves
the GL context to a never-composited hidden canvas and presents each
frame through the visible canvas' 2D context — verified on Epiphany:
shim ACTIVE, web process flat at ~380MB for the whole run (was leaking
~150MB/s and dying within minutes), app rendering normally; Chromium
correctly no-ops ('not webkit'). vendor/kryon -> 86e90c2 (also carries
the kry_http stub const fix that broke the web link and the user's
kry_std additions).
2026-08-14 22:21:12 -05:00
waozi 6438f1754f audio: lazy device init on web
WebKitGTK's WebAudio backend (GStreamer) leaks gigabytes per second
once an audio stream opens — reproduced: web process 3.5GB -> 11GB in
45s, crash, respawn without a user gesture stays flat at ~312MB. The
audio device (and its always-on mix-meter processor) now initializes
only when something actually plays: first cue, meditation music load,
or opening the Audio settings tab. Native platforms keep eager init at
startup.
2026-08-14 21:07:35 -05:00
waozi 9c5a1c7e81 vendor/kryon at 5776814 2026-08-14 21:03:10 -05:00
waozi e044078f9a Android host tool is k2c: build cmd/k2c + the shared kir frontend
cmd/kc no longer exists; the host-cc command compiles cmd/k2c/*.c with
cmd/kir on the include path (validated locally: builds and transpiles).
2026-08-14 21:02:56 -05:00
waozi bf7dc08c4d Material theme default everywhere; retro toggle row alignment
theme_style now defaults to THEME_STYLE_MATERIAL (fresh installs and
web storages see Material on every platform; Android already did via
SYSTEM). Settings toggle rows compute the switch width the widget
actually uses in retro ((max(OFF,ON)+16)*2+6) so the right-aligned
switch no longer overhangs the panel edge; Material keeps 52. vendor/
kryon -> fdc1854 (theme picker switch width matches the same minimum).
2026-08-14 20:55:40 -05:00
waozi c0714e8091 breaks: multi-line SQL restored through fixed k2c; window-restore guard
vendor/kryon -> 7ebedf9: the joiner now continues statements across
adjacent string literals ("..." "..." "..."), so the multi-line SQL
reads naturally again — verified live: the runtime string carries all
fragments. The original INSERT failure was this k2c bug PLUS a double
'(' typo in the SQL itself ('break_days(' + '(user_id'), now fixed.

break_engine_close_window only restores window state when the overlay
actually took the window over (break_window_taken) — natural breaks
must not ClearWindowState/ungrab out of nowhere.

Note: this box's X server currently receives phantom input every few
seconds with no app running (verified by probe), so idle-based live
verification is flaky here; the 130s/4-natural-takes run remains the
reference, and the focused-fallback covers such environments.
2026-08-14 20:30:10 -05:00
waozi 02b48be3e9 breaks: font subsets for new CJK glyphs + unsupported-glyph cleanup
Em-dashes and guillemets replaced with ASCII equivalents (missing from
the Latin subset); zh/ja/ko break translations regenerated the CJK
subsets. Note: the long-failing sync_account_test now passes — its key
export was writing to the empty data root produced by the '} #else_if'
kryon joiner bug fixed in 807e3fd.
2026-08-14 18:25:20 -05:00
waozi 1ec74d89c3 breaks: wall-clock engine timing + storage fixes (phases 4-7 hardening)
Two integration bugs found by live end-to-end runs:

1. Frame-based ticking broke under throttling: an unfocused/occluded
   window renders at a fraction of 60fps, so '60 ticks = 1 second' ran
   slow and idle time never reached break duration. The driver now
   derives ticks from GetTime() deltas with a fractional-tick carry
   (truncation alone halves the rate at 120Hz) and a 5-minute catch-up
   cap, matching the practice advance_elapsed pattern.

2. Multi-line string literals get shredded by per-line inspect markers
   in current k2c, so the SQL held only its first fragment and every
   break_days INSERT silently failed — SQL now single-line. (Kryon bug
   reported; joiner drops string continuations.)

Verified live: 130s idle run takes 4 natural micro-breaks on exact
30s cadence, usage seconds counted correctly, rows persisted per
second and at the 4am rollover. vendor/kryon -> 807e3fd (chain-region
joiner fix: '} #else_if {' chains used to collapse to the first
region, leaving desktop data_root empty and storage dead).
2026-08-14 18:23:20 -05:00
waozi a49a534941 breaks: complete Workrave parity — settings, exercises, stats, tray (phases 4-7)
Settings: 26 break_* keys persisted per-timer (enable/limit/duration/
postpone/max prompts/show skip/show postpone) plus master enable, block
mode, sounds, reading mode, micro-counts-as-activity, exercise count;
all importable. New SETTINGS_TAB_BREAKS screen: live timer status rows
(countdown + progress bars, the Workrave status-window analogue), block
mode dropdown, per-timer sliders, rest-break-now + view-exercises
buttons, last-7-days stats section. Driver constants now settings;
focused-fallback requires recent raylib input (90 ticks) so reading
with the window focused no longer freezes breaks; bell cues on
prompt/start/taken gated by break_sounds_enabled.

Exercises: rest overlay hosts the player — shuffled picks seeded per
day, step text advancing with idle time (freezing when you type, like
Workrave), prev/pause/next/stop via offset-freeze semantics; standalone
exercises screen with live step cycling for browsing.

Storage: break_days table (per user/date/type: prompts, repeated,
taken, natural, skipped, postponed, overdue, usage) upserted every 60 s
and at the 4 AM rollover; storage_break_history feeds the stats UI.

Tray: Breaks submenu (Rest break now, Exercises, Mode submenu with
Normal/Quiet/Suspended, Reading mode, settings shortcut) and tray
status shows the next-break countdown. locale_keys_test now also
collects key literals from data tables (break_ex_* steps resolve via
helpers). 71 new keys translated across all 14 languages.
2026-08-14 17:48:59 -05:00
waozi 6c4b968480 breaks: locale keys for all 14 languages + scanner-visible overlay strings
13 break_* keys (titles/bodies per break type, countdown, idle note,
lock note, buttons, prelude) with real translations across cs de es fr
id it ja ko pt ru zh. Overlay now calls GetLocaleText with literal keys
at the call site so locale_keys_test sees them. breath_timing_test
keeps its local count_value decode — the engine marks it #private and
k2c now correctly keeps it out of the header.
2026-08-14 17:18:16 -05:00
waozi 120b1fbc55 breaks: break_micro/break_rest/break_daily screenshot scenes
Drives the engine straight into Breaking at limit with a third of the
duration idle, on the overlay screen, so --screenshot exercises the
overlay standalone (verified all three variants render correctly:
panel, green bar fill, per-type buttons).
2026-08-14 17:10:06 -05:00
waozi 72d6d3f9bc vendor/kryon at 412ee35 2026-08-14 17:09:29 -05:00
waozi b2bd6b92b6 vendor/kryon at e2df69c (kc remnant cleanup) 2026-08-14 17:08:03 -05:00
waozi 0fd31c551b Build inbe through the Kir-only k2c
- K2C comes from mk/vendor.mk's canonical per-platform bin path; the
  rule builds via 'make -C kryon k2c' (the old flat build/bin/k2c
  target is gone).
- vendor/kryon at 058c277: '#if' regions lower to C preprocessor
  conditionals, joiner fixes (ternary/bare-brace/blank-line spans),
  guard statements, file-static #private functions with forward
  prototypes, shadow-aware name resolution, array-typed parameters.
2026-08-14 16:52:12 -05:00
waozi 787c3270ed breaks: overlay screen, frame driver, exercise data (phases 3+5 core)
break_overlay.kry: InbeScreenBreak full-screen overlay — green progress
bar (idle/duration), orange flashing border while the user types through
the break, per-timer title/body, Skip/Postpone honoring show_* and the
promotion button lock with countdown, micro-break 'rest break now'
button, auto-dismiss if no timer is breaking.

app_breaks.kry: per-frame driver wired first in updateapp — samples the
X idle monitor (focused-window fallback), 4am daily-limit day rollover,
ticks the engine, and consumes the event queue: prelude toasts on
prompt, window takeover on start (RestoreWindow + TOPMOST, undecorated
maximize + keyboard grab for block modes 1/2), full restore on end.
Desktop-only guard; Android/Web no-op.

break_exercises.kry: 10 original exercises (Workrave is GPL — no content
copied) as parallel-array data with step accessors, totals, and a
deterministic seeded shuffle for the rest-break player. Exercise player
UI + locale keys land with phase 4/5 wiring.

app.h/app.c/types.kry: BreakEngine in InbeApp + breaks_enabled/
prev_screen/block_mode/input_active fields, engine init + desktop
enable, overlay in g_simple_screens, app_breaks_update call site.

All three new modules syntax-check clean with app flags; app.c compiles
error-free. Full link still blocked on remaining kir joiner fixes in
flight.
2026-08-14 15:25:04 -05:00
waozi 08730301cc breaks: activity monitor platform layer (phase 2)
dlopen'd libX11/libXss idle counter (no build-time dependency): reports
system-wide ms-since-last-input for the break engine's active/idle
counters, plus the break keyboard grab for block mode (pointer stays
free for the overlay buttons). Wayland-native sessions report
unavailable so the app can fall back to a focus heuristic; other
platforms are stubs pending their pass. Standalone smoke test covers
both available and unavailable paths.
2026-08-14 14:59:22 -05:00
waozi 0b8aa53075 vendor/kryon -> f9cd8b2 (tip) 2026-08-14 14:58:31 -05:00
waozi 9099e188d5 App-side k2c cutover fixes; vendor -> b81a2bd
- db.kry/import.kry imported their hand-written companion headers by
  bare name ('db.h'), which in the generated tree resolves to the
  generated header itself -> self-include, StorageState and friends
  invisible. Import by 'storage/<name>.h' so -Isrc wins.
- import.kry: kryon.h and miniz.h must not be #private -- exported
  declarations use Color and mz_zip_archive, so the generated header
  needs those includes.
- vendor/kryon -> b81a2bd: array-typed parameters now emit 'T name[N]'.
2026-08-14 14:50:07 -05:00
waozi 8f213bb6bb breaks: Workrave break-reminder engine + tests (phase 1)
Pure tick-driven engine in src/breaks/break_engine.kry modeling Workrave's
three timers (micro 3min/30s, rest 45min/10min, daily 4h with 4am reset),
activity/idle counters with natural takes, the prelude prompt loop with
max-prompts escalation, skip/postpone, micro->rest promotion with button
locking, quiet/suspended/reading modes (timed), and per-day stats counters.
break_engine_test drives all of it tick-by-tick; breath_timing_test drops
its static count_value copy (the generated header declares it now).
vendor/kryon -> db8ae14 (K&R '} else {' kir fix this engine depends on).
2026-08-14 14:43:59 -05:00
waozi 79e1893dab Use the canonical kryon K2C path (no legacy build/bin alias)
vendor/kryon -> 3abe069: mk/vendor.mk exports the canonical per-platform
tool path, and kryon dropped the legacy top-level build/bin aliases.
Drop inbe's hardcoded legacy path and build the compiler via the new
phony 'make -C vendor/kryon k2c'. Regeneration verified byte-identical.
2026-08-14 14:15:23 -05:00
waozi abbee06bbc No legacy kc remnants: k2c comment fix + multi-file K2C prerequisite
- breath_timing_test comments said 'kc transpiler'/'kc-emitted' -- k2c.
- The $(K2C) rule depended only on cmd/k2c/main.c (a kc-era habit: kc
  was a single file). k2c is multi-file and links kir, so a compiler
  change did not rebuild the binary and regeneration silently used old
  behavior. Prerequisite is now the full source set, mirroring kryon's
  own K2C_SRCS.
2026-08-14 13:57:38 -05:00
waozi efdecf4ec7 Configure the desktop install suite so 'make install' is complete
The kryon-provided install suite (mk/package-freebsd.mk: install /
install-user / uninstall / stage) was shipping a bare binary only,
because inbe never set APP_DESKTOP/APP_ICON/APP_METAINFO/APP_ID -- so
'make install' gave you an executable with no menu entry or icon.

Set them to the existing packaging assets (same desktop/icon/appdata
the .deb and AppImage ship). Everything the app needs at runtime is
embedded (UI_EMBEDDED_ONLY=1), so the install set is exactly: binary,
desktop entry, hicolor icon, metainfo.

Verified on Debian: 'make install-user' lands all four files under
~/.local and the installed binary boots; 'make stage DESTDIR=...' stages
the same tree; 'make uninstall' removes them; 'make deb' still builds
inbe_1.8.23_amd64.deb with the identical layout; desktop entry passes
desktop-file-validate.
2026-08-14 13:54:13 -05:00
waozi a8367fa5bc Finish k2c cutover app side: vendor tip, natural db/import names
The k2c migration commit pinned vendor/kryon one commit short of the
extension-less include fix (274d68b), and kept kc-era output renaming
that k2c does not implement:

- vendor/kryon -> 6db4f0e (tip): '#include "core/types"' now emits as
  core/types.h. Note the k2c binary must be rebuilt when any cmd/k2c
  source changes -- the $(K2C) rule only tracks kc.c, so a stale binary
  silently regenerates with old behavior.
- Drop the db.c/import.c -> db_impl/import_impl remap and the dead
  '#output "db_impl"' / '#output "import_impl"' directives: k2c has no
  #output support and emits natural names; all Makefile/test references
  updated.

With this the generated tree is name-correct and db_impl.c is no longer
missing (the current CI failure). Remaining k2c gaps before inbe's
corpus compiles (krait's does): #if ANDROID conditional imports are
emitted unguarded (android/native_activity.h etc. on native builds) and
emscripten.h appears unguarded in generated headers -- those are
compiler-side and left for k2c.
2026-08-14 13:41:07 -05:00
waozi 6cda28dbd4 k2c: angled includes stay angled; extension-less header imports append .h
'#import "core/types"' now emits '#include "core/types.h"' and angled
system includes pass through unchanged.
2026-08-14 13:15:02 -05:00
waozi 785bec395c Fix Firefox CI smoke: provide software GL (xvfb + mesa llvmpipe)
The Mozilla-build Firefox created WebGL contexts as disabled in the
container: no GPU and no software rasterizer. Install xvfb +
libgl1-mesa-dri, run the smoke under xvfb-run with
LIBGL_ALWAYS_SOFTWARE=1 (same recipe as the screenshot pipeline), so
llvmpipe provides the WebGL context.
2026-08-14 08:42:43 -05:00
waozi f5efd5049f Fix Firefox CI install: correct mozilla.org product slug (firefox-latest)
'firefox-latest-release' 404s on download.mozilla.org; 'firefox-latest'
redirects to the CDN tar.xz. Also fail the step loudly if the browser
binary is missing after extraction.
2026-08-14 08:27:34 -05:00
waozi 9d71c6c66f Fix Firefox CI install: mozilla.org serves .tar.xz, not .tar.bz2 2026-08-14 08:12:59 -05:00
waozi 42bbbe61f5 Harden web smoke test; Makefile housekeeping
Smoke test:
- Clear error when global WebSocket is missing (Node < 21) instead of a
  cryptic ReferenceError; Node 20 works with --experimental-websocket.
- New render-liveness check in both the CDP and Firefox BiDi paths: the
  page must have a nonzero-size canvas, a live WebGL context, and a
  cycling requestAnimationFrame loop -- catches 'boots to a black
  screen' that console-error checks cannot see. Verified PASS locally
  in both chromium and firefox.
- CI: the Firefox job now installs the Mozilla build (tarball; Ubuntu's
  apt firefox is a snap wrapper that fails in containers) and runs
  make web-smoke-test-firefox after the add-on build.

Makefile:
- KRYON_WITH_PHYSICS := 0 (was ?=): the app is UI-only; flipping the
  knob to 1 cannot work anyway because KRYON_PHYSICS_DEPS (libbox2d) is
  never linked, so it is a property, not a configuration.
- KRYON_CURL_VERSION_HEX is lazy now: := forced the curlver
  preprocessor shell at parse time on every invocation including
  'make clean'. Its only consumer is the NEEDS_NATIVE_ENV version
  guard, which expands it only for build goals.
- Added android-copy-debug-apks/-release-apks/-copy-bundle/android-smoke
  to .PHONY.

Raylib-config dedup vs kryon common.mk was considered and skipped:
inbe cannot include common.mk just for RAY_RAYLIB_CONFIG because it
defines kryon build targets; a flags-only include would be a kryon-side
change, out of housekeeping scope.
2026-08-14 07:58:39 -05:00
waozi 689d0b8086 Link font_locale_test to the real selector; run web smoke test in CI
font_locale_test re-implemented the locale->font mapping by hand, so it
kept passing while testing a stale copy (and its zh-TW branch had no test
case). Move ui_font_asset_for_locale + the INBE_FONT_* macros into
src/app/app_font_assets.h (dependency-free static inline, matching the
android_wakelock.h pattern), include it from app_fonts.c, and make the
test exercise the real selector -- now covering zh-TW, zh_Hant, and NULL.
Verified the link is real by breaking the mapping and watching the test
fail.

Also wire the existing web smoke test (scripts/web-smoke-test.mjs, 851
lines of headless-browser CDP checks) into ci.yml's chrome job. It was
written but never ran in CI: the chrome zip depends on the WEB_TARGET
file, not the phony 'web' target that chains web-smoke-test, so no
workflow executed it. Runs after the build with Node 22 + preinstalled
google-chrome-stable (auto --no-sandbox under CI).
2026-08-14 07:15:31 -05:00
waozi ef6ec9212a Add font glyph coverage test
Fonts were previously only checked as files on disk (existence), never as
glyph coverage -- which is how the broken-font regression shipped twice:
a subset regeneration that dropped the typed-input characters rendered
ae/oe/ue/ss/e'/n~/c~ in a fallback face, and no test failed.

The new test parses each shipped subset font's sfnt cmap (format 4 BMP +
format 12) in pure C -- no GPU, no kryon dependency -- and asserts:
 1. the Latin font covers every non-ASCII codepoint of the Latin/Cyrillic
    locale files plus assets/fonts/input_common.txt (the typed charset);
    CJK ranges are skipped -- they render via the CJK subset fonts;
 2. every CJK locale / language-index codepoint is covered by at least one
    shipped font, so the picker and cross-font fallback can render it.

Parser validated by a full sweep against fontTools: 5665 (font,
codepoint) pairs, 0 disagreements. Also adds a --probe mode for
debugging future failures.
2026-08-14 06:50:19 -05:00
waozi fa6b6fa891 Add 'make ci' for local parity with the ci.yml gate
Runs the unit tests plus the web (emcc) build -- the two things ci.yml
runs that are reproducible locally. Run before pushing to catch web-only
breakage (code under #if defined(PLATFORM_WEB)) that 'make test'
(desktop-native) misses. This is exactly the gap that let the
app_web_bridge.c include failure reach CI this session.
2026-08-13 22:33:23 -05:00
waozi 82039b3cf2 Fix OpenStore publish checkout: fetch submodules + LFS
publish-openstore.yml used a bare actions/checkout@v4 with no submodules
or LFS, but 'make click' needs vendor/kryon (submodule) and the build
pulls LFS-tracked audio assets -- so the publish job could never even
configure. Match ci.yml/release.yml: submodules: recursive, fetch-depth:
0, lfs: true.
2026-08-13 22:28:47 -05:00
waozi e5e47dde0c Glob src/app/*.c in both build systems to stop source-list drift
The app source list was maintained explicitly in both the Makefile
APP_SRCS and the Android CMakeLists add_library(), so adding an app
module (app_fonts/audio/web_bridge this session) required editing both
-- and the Android copy was missed twice, breaking release builds.

Both build systems now glob src/app/*.c (sorted): dropping a new
cross-platform app module needs no build-system edit. The directory is
the single source of truth. The Makefile wildcard expands at parse time;
the CMake uses CONFIGURE_DEPENDS to re-glob on changes.
2026-08-13 21:59:09 -05:00
waozi 449edd731e Add extracted app sources to the Android CMake build
The app.c split moved font/audio/web functions into app_fonts.c,
app_audio.c, and app_web_bridge.c, but the Android CMakeLists used an
explicit source list that only had app.c + audio_library.c, so the moved
symbols were undefined at link time. Add the three new files.
2026-08-13 21:28:32 -05:00
waozi aed4ceae6e Fix app_web_bridge.c includes for the web build
The bridge body is #if PLATFORM_WEB, so the desktop build compiled it to
empty and masked missing includes. The web build (emcc) needs <stdio.h>
(snprintf), data.h (data_init), and practices/practice_registry.h
(practice_get, PracticeDefinition, practice_clamp_id,
practice_active_advance_elapsed).
2026-08-13 21:04:43 -05:00
waozi 5d27c8641d Table-drive the simple screen dispatch in updateapp
Replace the 9-branch if(screen==X){draw; goto finish_frame;} chain with a
g_simple_screens[] table (screen id -> draw fn) and a loop, mirroring the
PracticeDefinition vtable already used for practices. Adding a simple
screen is now a one-line table entry. Practice screens keep their switch
(circle-bounds/active-session logic). int-returning draws go through tiny
wrappers so the table holds a uniform void(*)(InbeApp*).
2026-08-13 20:56:53 -05:00
waozi fc6ce63fe3 Extract the web/JS test bridge into app_web_bridge.c
Move the PLATFORM_WEB test hooks and emscripten exports (app_web_*,
web_test_*) out of app.c into a focused app_web_bridge.c. app.c is now
1,777 lines. No behavior change; build + tests + screenshot smoke pass.
2026-08-13 20:49:14 -05:00
waozi ab9689a9d3 Extract the audio subsystem into app_audio.c
Move load_sound_asset, the cue/breath/bell playback helpers, the audio
meter callback, init_audio/app_audio_reinitialize, and SafeUnloadSound
out of app.c into app_audio.c. Cross-module entry points (init_audio,
unload_cue_sounds, audio_mixed_meter) are prototyped in app_internal.h.
app.c is now 1,961 lines. No behavior change; build + tests + screenshot
smoke pass.
2026-08-13 20:41:54 -05:00
waozi dd2fc1f901 Extract font/locale registration into app_fonts.c
Move the font registration chain (ui_font_asset_for_locale, register_*,
load/unload/discard_locale_font, app_running_in_kryon_preview) out of the
2,393-line app.c into a focused app_fonts.c, with cross-module prototypes
in the new app_internal.h. No behavior change; build + tests + screenshot
smoke pass.
2026-08-13 20:20:14 -05:00
waozi 21ba5b2c9a Remove orphaned wasm4/ and uxn/ experimental backends
These directories (~700 KB combined) were referenced by nothing: no
Makefile target, no .github/workflows, no scripts/, and they are not
git submodules. They mislead readers into thinking WASM4/Varvara are
supported targets.
2026-08-13 19:58:43 -05:00
waozi 37d9e0d9df Update app sources 2026-08-13 16:40:57 -03:00
waozi efa0425456 Fix site nav styling 2026-08-13 16:39:14 -03:00
waozi 305b1016b0 Refresh site theme 2026-08-13 16:32:21 -03:00
waozi 929d26f2c7 Fix Netlify workflow syntax 2026-08-13 13:25:40 -03:00
waozi e6990935a9 Use Netlify zip deploy for production 2026-08-13 13:24:48 -03:00
waozi ded220804e Track kryon a1a5f13: guard KryScenePhysicsDestroy (fix Windows link)
Kryon now guards the KryScenePhysicsDestroy() call with KRYON_WITH_PHYSICS,
so physics-off builds (inbe) link cleanly under mingw's static linker
without relying on --gc-sections to drop KrySceneDestroy.
2026-08-13 10:13:11 -05:00
waozi c6f8cf638a Exclude kryon 2D physics from all build variants (fix web/Netlify build)
The KRYON_WITH_PHYSICS=0 opt-out and KRYON_PHYSICS_SRCS filter existed
only in the working tree (uncommitted) and only filtered KRYON_SRCS
(desktop). CI runs the committed Makefile, which had no opt-out at all,
so the kryon d84db61 vendor bump (which added node_area2d/body2d/
physics_world/collision_shape2d.c requiring box2d.h) broke the web build:
  fatal error: 'box2d/box2d.h' file not found

KRYON_WEB/WINDOWS/CLICK_SRCS are snapshotted from KRYON_SRCS before the
filter, so re-apply filter-out to each variant. Desktop unchanged.
2026-08-13 09:43:08 -05:00
waozi af98862868 Release 1.8.23
Root-cause fix for accented characters rendering in a broken fallback
font in text fields (kryon dynamic font loading), plus the Android build
fix for the kryon vendor bump.
2026-08-13 09:34:04 -05:00
waozi 55fb0759db Exclude kryon 2D physics (Box2D) sources from the Android build
inbe is UI-only (KRYON_WITH_PHYSICS=0); the desktop Makefile already
filters KRYON_PHYSICS_SRCS out via vendor.mk. The Android CMakeLists
globs kryon src/*.c unfiltered, so the kryon vendor bump that added
node_area2d/body2d/physics_world/collision_shape2d broke the APK build
(box2d/box2d.h not found). Mirror the desktop exclusion in CMake and
define KRYON_WITH_PHYSICS=0.
2026-08-13 09:32:58 -05:00
waozi 03a056678c Render German/European glyphs in-font via dynamic kryon font loading
Track kryon d84db61. Kryon source fonts are now dynamic: the atlas grows
on demand for any glyph the file contains, so characters like ae oe ue ss
typed into text fields render in the active font's own typeface instead of
falling through font_for_codepoint() to a different registered font.

Drop the now-removed RegisterUIFontFileSource dynamic_codepoints argument,
and delete the locale .txt codepoint-scanning machinery (UIFontCodepoints
and helpers) -- Kryon seeds the standard Latin/Cyrillic/Greek range and
grows from there, so the per-locale pre-bake is no longer needed. The
language-picker CJK subset fonts remain registered as cross-font fallback
for native script names.
2026-08-13 08:48:38 -05:00
waozi df28b09ca0 Release Inbe 1.8.22 2026-08-12 15:04:28 -05:00
waozi f64b7f44e7 Release Inbe 1.8.21 2026-08-12 04:52:54 -05:00
waozi 800a01493c Release Inbe 1.8.20 2026-08-12 04:39:50 -05:00
waozi 975f524954 Bump kryon pin: best-available DPI estimate for correct Android scaling 2026-08-12 04:32:16 -05:00
waozi a866bfc54c Fix release build: upstream SetUIDeviceDensity and other kryon fixes
The vendored kryon working tree had uncommitted local edits (SetUIDeviceDensity in ui_dpi, dropdown resize radius, theme picker spacing) that the local debug build relied on but the pinned commit lacked — causing the CI release build to fail with 'undefined symbol: SetUIDeviceDensity'. These changes are now committed upstream in kryon (a7cefee) and the vendor pin is bumped to that commit. Also removes the per-frame 'INBE_EMBED: DPI scale' TraceLog spam.
2026-08-11 04:22:56 -05:00
waozi 95209154d3 Fix locale key tests: add missing translations, remove unused key
Backfill appearance_scale_label, audio_music_none_option, and the four audio_import_error_* keys across all 11 non-English locales with proper translations. Remove the now-unused practice_music_title key from en.txt. All make test targets pass.
2026-08-11 03:49:15 -05:00
waozi 3dba70c3b5 Release Inbe 1.8.19 2026-08-11 03:28:26 -05:00
waozi 19ebfc1a14 Release Inbe 1.8.18 2026-08-10 21:10:38 -05:00
waozi 825f005640 Release Inbe 1.8.17 2026-08-09 23:45:45 -03:00
waozi 6e5c9c1297 Release Inbe 1.8.16 2026-08-09 22:08:59 -03:00
waozi 09f86315ab Extract Android native libs for older devices 2026-08-09 21:22:06 -03:00
waozi 7728331e80 Update Kryon vendor pointer 2026-08-09 20:14:51 -03:00
waozi 7cfecf82cb Update Kryon widget API usage 2026-08-09 20:11:55 -03:00
waozi f177840e93 release inbe 1.8.15 2026-08-09 13:13:51 -03:00
waozi 6d06296a6c bump kryon vendor 2026-08-09 12:54:26 -03:00
waozi 9f10cc341b bump kryon vendor 2026-08-09 12:49:06 -03:00
waozi 20ba52226c update inbe for clean kryon api 2026-08-09 12:47:38 -03:00
waozi 0c89957e27 Update vendored Kryon 2026-08-08 16:24:54 -03:00
waozi 2553e98811 Use Material theme widgets 2026-08-08 15:05:09 -03:00
waozi cacc19d561 Fix web storage smoke persistence 2026-08-08 15:04:32 -03:00
waozi 2bf7d4062d Await web smoke storage flushes 2026-08-08 14:02:49 -03:00
waozi e532af4f0c Drain web storage flushes before reload 2026-08-08 13:55:47 -03:00
waozi e3ce456cdd Update Kryon stable tool targets 2026-08-08 13:48:28 -03:00
waozi 9328257bba Fix web smoke persistence and icon colors 2026-08-08 13:40:02 -03:00
waozi 64ee0e1d14 Use GTK file dialog for audio import 2026-08-08 13:21:31 -03:00
waozi 8b658c113f Fix desktop audio import flow 2026-08-08 12:44:51 -03:00
waozi a0a98e8f46 Fix audio import picker state 2026-08-08 12:37:25 -03:00
waozi 486eb64647 Add audio preview controls 2026-08-08 11:25:06 -03:00
waozi 2d3b5c8d72 Fix Android smoke under Ubuntu chroot 2026-08-08 11:10:50 -03:00
waozi 2e4e96b24f Add unified audio settings 2026-08-08 10:33:48 -03:00
waozi 452871eae7 Use Kryon Ksync transport 2026-08-08 09:35:46 -03:00
waozi 0dbd5c8e4a Report module/runtime/exception state when web smoke stalls
When the web app does not become healthy the smoke test now reports
whether the emscripten Module loaded, whether the runtime reached
__inbeRuntimeReady, the last Module.setStatus text, and any
Runtime.exceptionThrown events. This distinguishes a preRun/IDBFS
deadlock from a silent wasm abort and points at the failing stage
instead of an empty recent= field.
2026-08-08 00:04:07 +00:00
waozi a9e9a5fa8a Fix duplicate device entry in sidebar and move audio settings to bottom
app_draw_nav_sidebar passed count 4 to app_draw_sidebar_settings_items
but the settings_items array only holds 3 entries (Device, Appearance,
About), so the sidebar read past the array and rendered a phantom
fourth entry. Pass the correct count.

Reorder settings_device_draw so the play-in-background toggle and the
audio output section sit at the bottom, below language, orientation,
fullscreen, and the on-screen keyboard toggle.
2026-08-07 23:42:06 +00:00
waozi 9f4d0311fd Fix UI tests for kryon node API and add missing locale keys
Update guide_overlay_test and app_bottom_nav_test to the current
kryon UI API: UIRenderGuideOverlay replaces DrawUIGuideOverlay, and
the bottom nav test stubs the UI*Node dispatchers instead of the
removed DrawUI* renderers. These compile errors were gating the
release workflow on every master push.

Add the missing skip_button translation to the ten non-English
locales; the key existed in en/fr but was never translated.

Bump vendor/kryon to pick up kryon's own theme-picker labels and
the public text-drawing helper declarations.
2026-08-07 23:36:51 +00:00
waozi ad9abc0fbd Release 1.8.14 Kryon UI fixes 2026-08-06 08:37:45 -03:00
waozi 85ee4c64a7 Update Inbe for Kryon node runtime 2026-08-06 08:09:09 -03:00
waozi 287944c3fa Add Inbe theme style selector 2026-08-05 17:27:44 -03:00
waozi cd8f406aec Fix Kryon pointer and cue test 2026-08-05 15:21:05 -03:00
waozi d61eb701bc Release 1.8.13 audio settings 2026-08-05 15:13:33 -03:00
waozi 79b49e317c Update Kryon submodule for kt visual targets 2026-07-30 18:10:11 -03:00
waozi 1b72211ea9 Update Kryon submodule for kt scenarios 2026-07-30 18:05:24 -03:00
waozi 0ad982c05b Update Kryon submodule for kt runner 2026-07-30 18:01:41 -03:00
waozi 0a4f86a270 Update Kryon IDE chrome polish 2026-07-30 17:39:05 -03:00
waozi c96b9c26a6 Update Kryon IDE console panel 2026-07-30 17:30:49 -03:00
waozi 3833daf519 Update Kryon IDE problems panel 2026-07-30 17:04:26 -03:00
waozi 9a4bcece22 Update Kryon source path normalization fix 2026-07-30 16:50:07 -03:00
waozi 6880d8a838 Fix practice home guide layout 2026-07-30 16:41:37 -03:00
waozi b2c9006b79 Remove obsolete WHM hold display modes 2026-07-30 16:40:48 -03:00
waozi bbcb81ff3f Merge WHM timing fix branch 2026-07-30 16:35:58 -03:00
waozi 600c52a434 Fix Android Kry source path reproducibility 2026-07-30 16:35:43 -03:00
waozi e4d656693c Release 1.8.12
- Fix Wim Hof between-round countdown: round 0 counts from 3 (the
  intentional 3-2-1); rounds 1+ honor the configured 'Pause after round'.
  Breath engine now owns the full session state machine, so auto-play and
  manual round-advance share one path and final-round results always persist.
- Desktop quit shortcuts: Ctrl+Q quits from any screen; Esc quits when idle on
  the home screen. Tray builds route through the keep-running/quit prompt;
  no-tray builds exit immediately, matching the window close button.
- Enable WAL mode for app storage.

Bumps version to 1.8.12 (Android versionCode 87) via update_version.sh.
2026-07-29 16:47:31 -03:00
waozi 4099d1ab6c Fix Wim Hof between-round countdown; engine owns session state
The "3-2-1 countdown is broken between rounds" report traced to two
divergent round-advance paths that had drifted apart. During auto-play the
engine's next() advanced rounds but never restored the user's configured
pause_seconds (it stayed pinned at the 3s forced for round 0), so every round
counted down from 3 and the "Pause after round" setting was silently ignored.
Auto-play also never persisted results on the final round -- only the manual
step-forward path did.

Make the engine the single source of truth and turn the app layer into a thin
orchestrator:

- inbe_effective_pause_seconds() encodes the round-0 special case once;
  starting() and all three display/notification sites use it. The
  pause_seconds=3 clobber in session_start and the saved_pause_seconds
  save/restore dance in finish_round are gone.
- Extract the struct mutations from finish_hold into inbe_end_hold().
- next() sets a completed flag (surfaced via inbe_just_completed()/
  inbe_clear_completed()) instead of silently flipping the screen.
  inbestep is a no-op once completed.
- New session_complete() handles results persistence + screen flip and is
  called from both the auto-play per-frame check and the background
  catch-up loop, so auto-play now saves like manual play.

Add tests/breath_timing_test.c -- the first coverage of the breath engine --
asserting round-0 == 3s regardless of config, rounds 1+ == configured pause,
configured 0 skips the countdown, results populate each round, and the final
round completes and freezes the engine. Wired into `make test`.
2026-07-29 14:24:13 -03:00
waozi 8db7470369 Use WAL mode for app storage 2026-07-27 21:10:58 -03:00
waozi 8ad30513e0 Release 1.8.11 2026-07-27 19:46:55 -03:00
waozi 01654d24e8 Keep font subsetting explicit 2026-07-27 19:16:23 -03:00
waozi 9aab1d0eff Avoid CI font regeneration 2026-07-27 19:04:30 -03:00
waozi affe16e573 Use subset fonts with Android fallback 2026-07-27 19:01:58 -03:00
waozi 841dce6dd9 Fix Netlify prebuilt deploy 2026-07-27 18:09:23 -03:00
waozi 8d1d2259c8 Update Kryon for Windows build fix 2026-07-27 17:59:52 -03:00
waozi b88b4b7a47 Fix non-Android builds after runtime asset import 2026-07-27 17:34:18 -03:00
waozi ddc4b978b8 Fix Kryon preview and Android tooling 2026-07-27 16:06:33 -03:00
waozi 1650b9211a Let habit color selector fit one row 2026-07-27 12:08:51 -03:00
waozi 0ea57714d8 Update Kryon text input isolation fix 2026-07-27 12:01:38 -03:00
waozi cfe51468b7 Use Ksync sync backend 2026-07-27 08:57:49 -03:00
waozi 6118cfc0ec Bump Kryon to 22afa31 + platform_thread NULL fix (c26b7ec)
Pin vendor/kryon to c26b7ec on the fix/platform-thread-stddef branch:
22afa31 (Kryon master) plus a one-line #include <stddef.h> in
src/platform/platform_thread.c so the emscripten/web build can resolve
NULL (previously masked by pthread.h on native).

This unblocks both the web build AND the practice_screen.kry UI work,
which depends on WidgetButton (added in Kryon since the old 93913f1 pin).

Reverts commit 0fa7c31 (which had dropped the pin back to 93913f1 and
broke the practice screen in the process).
2026-07-26 11:00:02 -05:00
waozi 0fa7c31668 Revert Kryon vendor bump to 93913f1
The bumped pin (22afa31) exposed a pre-existing Kryon bug on the
emscripten/web build: vendor/kryon/src/platform/platform_thread.c uses
NULL without including <stddef.h>, which only surfaces under emscripten's
stricter header setup (on native, pthread.h transitively provides NULL).
The bug is identical at both pins — it was previously masked by the
EM_ASM_INT failure in sync_account.kry, which is now fixed.

Reverting unblocks the 1.8.10 web release. The upstream Kryon fix
(one-line #include <stddef.h>) is noted as a follow-up; once it lands in
kryonlabs/kryon we can re-bump.
2026-07-26 10:49:38 -05:00
waozi 8c21dee6dd Fix web build: import emscripten.h for #intrinsic "web" in sync_account.kry
The #intrinsic "web" declaration expands to EM_ASM_INT(...) in the generated
C, which requires <emscripten.h>. sync_account.kry was missing the import
(the other two files using this intrinsic, habits_screen.kry and
settings_data_ui.kry, already had it). This broke the emscripten/web build
with 'call to undeclared function EM_ASM_INT'.
2026-07-26 10:05:20 -05:00
waozi 83800a8886 Release Inbe 1.8.10
- Migrate src/storage/import.c to Kry (import.kry -> import_impl.c)
- Bump Kryon vendor to 22afa31 (persistent text input focus, minimal Kry
  language with sugar verbs removed)
- Rework desktop close behavior: disable raylib ESC-to-exit on native; tray
  builds route close through the keep-running/quit prompt, non-tray builds
  quit immediately on window close
- Habits editor description scroll state
- Screen/settings UI refinements across habits, pet, practice, profile,
  language, manual, and settings screens
2026-07-26 09:58:05 -05:00
waozi f86b264c0a Migrate src/storage/import.c to Kry
Translate the legacy-file / Tickmate / SQLite zip import logic to Kry
following the established db.kry pattern (kept hand-written import.h as
the public contract, used #output "import_impl" to avoid filename
collision, #export preserves the exact C ABI names). The X-macro
setting-key list is materialized into an explicit const char* array
since Kry has no X-macro support. All four storage/sync tests pass.

Verified: kc transpile + native build + storage_import_test,
sync_account_test, sync_review_test all green.
2026-07-26 08:04:58 -05:00
waozi 0047a3f486 Migrate Inbe app code to Kry 2026-07-23 14:00:07 -03:00
waozi 05bc292477 Show zero for missing leaderboard data 2026-07-18 08:37:21 -03:00
waozi ee4c883599 Update Flint vendor 2026-07-18 08:31:25 -03:00
waozi 2b070e56d9 Split Linux release package jobs 2026-07-17 22:59:38 -03:00
waozi 236df8a509 Fix Inbe 1.8.9 release build 2026-07-17 22:37:19 -03:00
waozi 12705f06a6 Release Inbe 1.8.9 2026-07-17 17:35:00 -03:00
waozi 5e350e1f5c Reject invalid cached meditation audio 2026-07-12 23:29:55 -03:00
waozi 5cc64ff4cc Update Flint vendor icon asset formatting 2026-07-12 23:20:00 -03:00
waozi 6bc425a3bc Consolidate storage DB helpers 2026-07-12 23:18:47 -03:00
waozi a85fe05814 Stabilize embedded app geometry handling 2026-07-12 23:08:04 -03:00
waozi e24cb49c69 Update Flint vendor fallback fixes 2026-07-12 22:58:34 -03:00
waozi 01223c0329 Centralize pointer frame blocking 2026-07-12 22:55:05 -03:00
waozi 4b54bd925d Prevent consumed modal clicks closing sidebar 2026-07-12 22:50:24 -03:00
waozi b768431ced Release 1.8.8 with Flint icon integration 2026-07-12 22:01:33 -03:00
waozi 2e56021fac Add Inbe host close callback 2026-07-12 19:36:53 -03:00
waozi 2a51aaeb63 Use JDK 17 for Android Gradle builds 2026-07-12 18:46:20 -03:00
waozi e8590c0a61 Improve Firefox add-on packaging and app storage 2026-07-12 18:37:26 -03:00
waozi 045da1d497 Revert hosted size callback 2026-07-12 17:44:58 -03:00
waozi 70d93875f1 Use hosted content size for resize requests 2026-07-12 17:43:04 -03:00
waozi 9dbfecf87b Route embedded resize requests through host 2026-07-12 17:36:00 -03:00
waozi 11e7b1cd7c Avoid host resize when embedded in Lotus 2026-07-12 17:26:12 -03:00
waozi b7e349f389 Release 1.8.7 2026-07-12 15:39:59 -03:00
waozi 733981e68b Use Flint file dialog on web imports 2026-07-12 00:42:39 -03:00
waozi 87df605739 Update Flint to v0.1.1 2026-07-12 00:13:07 -03:00
waozi 34b21faae4 Update Flint to v0.1.0 2026-07-12 00:07:21 -03:00
waozi 83c9a4eb70 Prepare 1.8.6 web extension release 2026-07-11 22:32:01 -03:00
waozi 129c141d6d Change Inbe license to BSD 3-Clause 2026-07-11 20:47:18 -03:00
waozi e114821967 Release Inbe 1.8.5 with Flint UI updates 2026-07-11 20:42:51 -03:00
waozi eca791cdc8 Update Flint widgets and release-store publishing 2026-07-11 18:49:15 -03:00
waozi 4b62a3e7f3 Refine profile navigation and sidebar flows 2026-07-11 18:49:15 -03:00
waozi b0a9bb0cee Improve Practice screen UI 2026-07-11 18:49:15 -03:00
waozi 940de1077c Improve desktop playback and file dialogs 2026-07-11 18:49:15 -03:00
waozi 7315ad854d Add system theme support 2026-07-11 18:49:15 -03:00
waozi afb56a3f84 Fix Android 17+ storage settings 2026-07-11 18:49:15 -03:00
waozi c253a2228d Fix sync UI and review flow 2026-07-11 18:49:15 -03:00
waozi a6959bc7b0 Upgrade sync protocol v3 2026-07-11 18:49:15 -03:00
waozi dbdc08b396 Fix web build and deduplicate code 2026-07-11 18:49:15 -03:00
waozi 037e0c1548 Add practice banners 2026-07-11 18:49:15 -03:00
waozi c276713e24 Update WHM banner 2026-07-11 18:49:15 -03:00
waozi 3c45fc262d Improve sync review 2026-07-11 18:49:15 -03:00
waozi 1b50836ef0 Add shared practice music configuration 2026-07-11 18:49:15 -03:00
waozi 1b5bcab759 Redesign Practice cards and actions 2026-07-11 18:49:15 -03:00
waozi 3926e61590 Rework Settings overview navigation 2026-07-11 18:49:15 -03:00
waozi 9839cfa4c3 Move habit overview into Habits tab 2026-07-11 18:49:15 -03:00
waozi b1410bd4f6 Add habits overview 2026-07-11 18:49:15 -03:00
waozi 5951fcb2a1 Fix Android relaunch freeze and clean up code 2026-07-11 18:49:15 -03:00
waozi 3ea2e799ac Fix practice stats, sync review, and Android insets 2026-07-11 18:49:15 -03:00
waozi 8057757132 Improve habit management and bottom insets 2026-07-11 18:49:15 -03:00
waozi 083229b521 Add habit ordering and local install support 2026-07-11 18:49:15 -03:00
waozi 4937252e29 Move Lyra sync protocol into Flint 2026-07-11 18:49:15 -03:00
waozi 4b94f9444e Fix profile sync, modals, and asset embedding 2026-07-11 18:49:15 -03:00
waozi ef21b40643 Move leaderboard stats to synced data 2026-07-11 18:49:15 -03:00
waozi 37dadfc21d Rework Android safe areas 2026-07-11 18:49:15 -03:00
waozi 221d021938 Update practice screen UI 2026-07-11 18:49:15 -03:00
waozi d98a1e04df Fix habit-day sync and sync build dependencies 2026-07-11 18:49:15 -03:00
waozi 39d280e38d Use Flint-managed crypto build paths 2026-07-11 18:49:15 -03:00
waozi 8aca590fdb Improve meditation configuration 2026-07-11 18:49:15 -03:00
waozi c023738180 Polish themes, habits, and localization 2026-07-11 18:49:15 -03:00
waozi 41f7697767 Improve Sun Salutation 2026-07-11 18:49:15 -03:00
waozi f38f18a1d1 Improve session notifications and settings 2026-07-11 18:49:15 -03:00
waozi 08f218a89d Improve sync reliability and review handling 2026-07-11 18:49:15 -03:00
waozi a0c6af2982 Add Sun Salutation practice 2026-07-11 18:49:15 -03:00
waozi 703e69d3e4 Fix Android notification and wakelock playback 2026-07-11 18:49:15 -03:00
waozi fb2e5e1ed1 Fix meditation background play 2026-07-11 18:49:15 -03:00
waozi b9dd9c48d6 Fix test music 2026-07-11 18:49:15 -03:00
waozi 6b2ad0130f Fix modal buttons 2026-07-11 18:49:15 -03:00
waozi 44b2c60f99 Fix modal capture and sync diffs 2026-07-11 18:49:15 -03:00
waozi 7cf4c18fe3 Harden sync review and font coverage 2026-07-11 18:49:15 -03:00
waozi c6f33454fa Add sync aliases and public ID display 2026-07-11 18:49:15 -03:00
waozi 8024137b33 Adopt Flint modal handling 2026-07-11 18:49:15 -03:00
waozi fe1df49496 Fix modal behavior 2026-07-11 18:49:15 -03:00
waozi 3e80ad1a57 Add theme modal and transition setting 2026-07-11 18:49:15 -03:00
waozi 5b6920384e Add background music toggle 2026-07-11 18:49:15 -03:00
waozi ea9a4b64ce Fix icon scaling and Android insets 2026-07-11 18:49:15 -03:00
waozi 72db66c482 Fix sync issues 2026-07-11 18:49:15 -03:00
waozi 207a7be355 Refresh logo and tab bar UI 2026-07-11 18:49:15 -03:00
waozi 4c604f5b10 Add tab bar mode and fix Click file handling 2026-07-11 18:49:15 -03:00
waozi 63695823f8 Add habits guide and fix orientation 2026-07-11 18:49:15 -03:00
waozi c021bfff95 Fix Practice startup and guide skip flow 2026-07-11 18:49:15 -03:00
waozi 749be66d5d Fix start screen and first-sync schema 2026-07-11 18:49:15 -03:00
waozi 6f03e693ac Rework Practice tabs and first-run guide 2026-07-11 18:49:15 -03:00
waozi f4930e67fe Reorganize habit views and Flint widgets 2026-07-11 18:49:15 -03:00
waozi 8828130cbd Fix spacing and translations 2026-07-11 18:49:15 -03:00
waozi 8535e41da6 Fix Click packaging and habit sync settings 2026-07-11 18:49:15 -03:00
waozi 8d489e2171 Refactor habit UI and Flint screen helpers 2026-07-11 18:49:15 -03:00
waozi 66f847a2e3 Add habit statistics and Russian localization 2026-07-11 18:49:15 -03:00
waozi ae882bf838 Fix native sync auth and first-run tutorial flow 2026-07-11 18:49:15 -03:00
waozi 2b880b4222 Fix queued sync updates and Linux builds 2026-07-11 18:49:15 -03:00
waozi ff2478bb4f Fix sync auth and reconnects 2026-07-11 18:49:15 -03:00
waozi 100be8648b Improve account management 2026-07-11 18:49:15 -03:00
waozi 392de3c60e Add optional sync client and offline accounts 2026-07-11 18:49:15 -03:00
waozi b8a2927c87 Fix Tickmate database imports 2026-07-11 18:49:15 -03:00
waozi 1b64ca84ba Improve Android data imports 2026-07-11 18:49:15 -03:00
waozi 683cd98673 Expand release automation across platforms 2026-07-11 18:49:15 -03:00
waozi 270210cbaf Reorganize practice modules and manuals 2026-07-11 18:49:15 -03:00
waozi 7d2c4f505d Restore settings and habits from SQLite exports 2026-07-11 18:49:15 -03:00
waozi 5d3ab3d2cf Support Windows runtime audio downloads 2026-07-11 18:49:15 -03:00
waozi 732785f45a Fix scrolling and Android audio download errors 2026-07-11 18:49:15 -03:00
waozi 64ce53b111 Fix orientation resizing and habit import merge 2026-07-11 18:49:15 -03:00
waozi 96eeec622c Add meditation practice and monochrome theme 2026-07-11 18:49:15 -03:00
waozi 3f84b3e52c Add habit tracker and habit editing 2026-07-11 18:49:15 -03:00
waozi fa561e338c Fix ZIP import replacement and web scaling 2026-07-11 18:49:15 -03:00
waozi 1be4050ab0 Add donation address 2026-07-11 18:49:15 -03:00
waozi ae0d4d7da3 Fix Android background sessions and safe areas 2026-07-11 18:49:15 -03:00
waozi c26c3309f0 Fix history editing scroll and text alignment 2026-07-11 18:49:15 -03:00
waozi 8e2786b288 Fix Android inset touch alignment 2026-07-11 18:49:15 -03:00
waozi 0f2963b22c Add hold display and progressive speed controls 2026-07-11 18:49:15 -03:00
waozi aa4c21f0ec Add file import picker and session volume 2026-07-11 18:49:15 -03:00
waozi d790ea0589 Adopt Flint UI, themes, and font support 2026-07-11 18:49:15 -03:00
waozi d838b28ec3 Reorganize settings navigation 2026-07-11 18:49:15 -03:00
waozi 3960b15465 Improve history editing and session controls 2026-07-11 18:49:15 -03:00
waozi e71491b918 Add editable history and sound settings 2026-07-11 18:49:15 -03:00
waozi ec4fbf7bed Add multilingual onboarding and metadata 2026-07-11 18:49:15 -03:00
waozi c032798065 Add Android background playback 2026-07-11 18:49:15 -03:00
waozi 9bdcf1ca9f Fix results and tutorial layout 2026-07-11 18:49:15 -03:00
waozi 85c606a7be Add text reflow and package all assets 2026-07-11 18:49:15 -03:00
waozi 79faa229af Add procedural icon fallbacks 2026-07-11 18:49:15 -03:00
waozi df95084b09 Fix storage paths and modern Android crashes 2026-07-11 18:49:15 -03:00
waozi d5578b1117 Fix slider focus release 2026-07-11 18:49:15 -03:00
waozi 0071ae2c2a Fix changelog extraction 2026-07-11 18:49:15 -03:00
waozi 0a4650ea03 Add Android ZIP sharing 2026-07-11 18:49:15 -03:00
waozi 6bbecf3178 Add Android back-button session handling 2026-07-11 18:49:15 -03:00
waozi ac8812467c Add F-Droid metadata and release tagging 2026-07-11 18:49:15 -03:00
waozi 81ccbde44c Fix session history and bell timing 2026-07-11 18:49:15 -03:00
waozi e4cb7edc98 Add themes and fullscreen scaling 2026-07-11 18:49:15 -03:00
waozi 76bed1c151 Standardize icon sizing and mobile buttons 2026-07-11 18:49:15 -03:00
waozi 3c3f4cd063 Improve scrolling, sounds, and settings links 2026-07-11 18:49:15 -03:00
waozi 1badb0387c Fix countdown and DPI scaling 2026-07-11 18:49:15 -03:00
waozi 968c9cb848 Fix web persistence and Android target SDK 2026-07-11 18:49:15 -03:00
waozi 1bae20b891 Initial breathing app 2026-07-11 18:49:15 -03:00
waozi a424a34f0b Fix release store publish workflow 2026-07-11 18:30:16 -03:00
waozi 6d85152660 Update Flint Windows raylib rename fix 2026-07-11 18:13:12 -03:00
waozi a4a984e2b2 Refresh Windows vendor cache inputs 2026-07-11 17:51:31 -03:00
waozi ee767e040a Fix Windows raylib wrapper build 2026-07-11 17:36:40 -03:00
waozi 5fa192dff5 Update Flint release build fixes 2026-07-11 17:18:36 -03:00
waozi 293bcb9a08 Update Flint for Windows raylib audio build 2026-07-11 16:50:08 -03:00
waozi 45e9b34407 Remove unused starting countdown locale 2026-07-11 16:50:00 -03:00
waozi 8dff6487a8 Polish session audio and controls 2026-07-11 15:22:02 -03:00
waozi 4cf505245c Make habits overview columns responsive 2026-07-11 15:12:42 -03:00
waozi 978fb6d364 Use wider profile picture picker 2026-07-11 15:10:04 -03:00
waozi be56cec972 Fix web smoke Chrome DevTools startup 2026-07-11 14:58:41 -03:00
waozi 03cc1ba034 new sidebar mode 2026-07-11 13:26:17 -03:00
waozi dd0f459bb3 Update changelog for profile dropdown 2026-07-11 13:24:23 -03:00
waozi 6a10ccb740 Use profile content width for dropdown 2026-07-11 13:22:42 -03:00
waozi 94276fc41e Update Flint profile icons 2026-07-11 13:22:10 -03:00
waozi 96ebe2e243 Return settings to sidebar and update Flint 2026-07-11 13:17:49 -03:00
waozi 41b542f499 Update Flint vendor and desktop tray wrapper 2026-07-11 13:15:37 -03:00
waozi 76d2a4fc48 Keep profile outside bottom navigation 2026-07-11 12:29:14 -03:00
waozi 77de5d8d92 improve sidebar 2026-07-11 12:22:10 -03:00
waozi 15212d40c2 improve berathing circle and ui/ux 2026-07-11 00:41:08 -03:00
waozi b58224f393 Update navigation sidebar and profile icon 2026-07-11 00:34:33 -03:00
waozi f9a869116c implemnet sidebar 2026-07-10 23:59:43 -03:00
waozi 77b86e5611 Link Raylib through Flint wrappers 2026-07-10 23:55:12 -03:00
waozi 4b800a710e Use Flint public include 2026-07-10 23:40:07 -03:00
waozi 4ca5721098 Update Flint vendor 2026-07-10 23:08:03 -03:00
waozi 64cc6fefd5 Refine habit count labels 2026-07-10 23:05:58 -03:00
waozi ae6dda4883 Improve desktop tray habit actions 2026-07-10 23:01:00 -03:00
waozi cea2abd328 Add FreeBSD package release build 2026-07-10 19:30:06 -03:00
waozi eaea0cddee fix ci issues 2026-07-10 09:24:28 -03:00
waozi b94c7f4920 fix test 2026-07-10 09:16:56 -03:00
waozi 42ab82e712 fix gh action 2026-07-10 08:24:16 -03:00
waozi f5b5aab0cc fix web 2026-07-10 08:07:01 -03:00
waozi 81b88ae30d improve ui in practice screen 2026-07-10 01:28:18 -03:00
waozi 54931026fb Use adaptive Flint modal for close prompt 2026-07-10 01:16:35 -03:00
waozi 2344d48020 Use PNG practice assets in Android builds 2026-07-10 01:09:01 -03:00
waozi 4f7bb91fb8 Avoid double-driving Android background sessions 2026-07-10 01:05:46 -03:00
waozi a96e6b7c16 fix locales 2026-07-10 00:49:37 -03:00
waozi 126a8e821f Use platform native paths for screenshots 2026-07-10 00:42:59 -03:00
waozi b5141b2632 improve guid images 2026-07-10 00:40:14 -03:00
waozi 61f0787d8f Update Flint submodule for overlay hover fix 2026-07-09 22:19:42 -03:00
waozi 054faea80e desktop and sync improvements 2026-07-09 20:13:56 -03:00
waozi fcb2e7c298 Update Flint make shims 2026-07-09 18:38:48 -03:00
waozi a5293813a0 Update Flint for GTK file dialogs 2026-07-09 18:37:37 -03:00
waozi 27878c449e Update Flint for FreeBSD audio latency 2026-07-09 18:33:59 -03:00
waozi 9a01d75437 improve audio signals 2026-07-09 18:09:45 -03:00
waozi 14695aee16 Enable UI cues with transitions 2026-07-09 16:05:53 -03:00
waozi 7870ed7dcd Use smooth time-based screen transitions 2026-07-09 15:58:27 -03:00
waozi 76eeaf9eb5 use new flint api 2026-07-09 15:47:05 -03:00
waozi 7dfbcd97dc add bg play for desktop 2026-07-09 15:27:17 -03:00
waozi 4060099226 Advance desktop background sessions by elapsed time 2026-07-09 15:22:29 -03:00
waozi f9f0a6ee08 Hide bottom nav during file dialogs 2026-07-09 15:14:05 -03:00
waozi 061c23af2c fix file picker 2026-07-09 15:11:14 -03:00
waozi 3208e83ce8 Smooth theme switching and update default habits 2026-07-09 15:05:09 -03:00
waozi 821a00e621 Clarify system theme settings 2026-07-09 14:50:25 -03:00
waozi 8d17b440ba Use native system theme source 2026-07-09 14:42:15 -03:00
waozi 149aee1604 improve bsd compat 2026-07-09 14:23:19 -03:00
waozi 9199da2cb2 add system tray for unix 2026-07-09 14:23:10 -03:00
waozi 29a1778141 Update Flint FreeBSD color fix 2026-07-09 13:44:20 -03:00
waozi 47c4408835 Simplify habits overview date grid 2026-07-09 13:38:08 -03:00
waozi 5e9a3f4511 Use FreeBSD-capable Flint native build 2026-07-09 13:26:27 -03:00
waozi 4379d293ec ubuntu click build 2026-07-03 20:54:45 -03:00
waozi d2451d46ef add openstore publishing 2026-07-03 20:34:48 -03:00
waozi b01888fcfb fix for ubuntu touch click 2026-07-03 20:27:10 -03:00
waozi 9436ce938a fix amazon action 2026-07-03 19:02:20 -03:00
waozi b843c642e1 update version 2026-07-03 18:32:12 -03:00
waozi 93fd29bdd0 update avd to use latest version 2026-07-03 18:27:52 -03:00
waozi 02ece55c02 small fixes 2026-07-02 19:14:16 -03:00
waozi d73385b6a4 update gh action 2026-07-02 01:38:32 -03:00
waozi ef2a4d0e00 more ui fixes 2026-07-02 01:18:31 -03:00
waozi d539a29e8f more banners 2026-07-01 15:03:34 -03:00
waozi 1499d3e09b update whm banner 2026-07-01 12:26:13 -03:00
waozi 8cfaebf43d fix pipeline 2026-07-01 11:40:36 -03:00
waozi 38d13f3135 update 2026-07-01 10:52:14 -03:00
waozi 83c4f180b4 redesign habits and practice screen 2026-07-01 00:37:04 -03:00
waozi a1914a1415 add habits overview 2026-06-30 18:55:29 -03:00
waozi e9f95d8c89 update workflow 2026-06-29 13:39:42 -03:00
waozi 40a660249c fix locale string 2026-06-29 11:34:05 -03:00
waozi 14a270c7b6 refactor 2026-06-29 11:30:54 -03:00
waozi d39ea8fd4d improve friend sync 2026-06-29 11:05:54 -03:00
waozi 88818aea09 cleanup 2026-06-29 10:54:28 -03:00
waozi 3aec019348 update verson 2026-06-29 10:51:31 -03:00
waozi 8e01c0fa7d publish to amazon 2026-06-29 10:49:57 -03:00
waozi 5e98458257 fix android bug 2026-06-29 10:47:24 -03:00
waozi 1209e29078 fixes for modern android 2026-06-29 04:03:43 -03:00
waozi a3743c9b37 improve profile screen 2026-06-29 03:16:43 -03:00
waozi fe96b6c61e bug fixes 2026-06-29 03:06:17 -03:00
waozi eabbff2972 fix critical inset issue 2026-06-29 00:15:28 -03:00
waozi 157788fa5c improve habit management 2026-06-28 23:58:01 -03:00
waozi e89f63e382 improve my profile screen 2026-06-28 23:45:36 -03:00
waozi 1105b51c24 fix translations 2026-06-28 22:08:00 -03:00
waozi c9cf77d05a new version 2026-06-28 21:31:46 -03:00
waozi 8315898d00 Fix profile sync and leaderboard flow 2026-06-28 21:26:38 -03:00
waozi f61a9e9094 update web release for chrome 2026-06-28 12:01:24 -03:00
waozi f7cb61cf57 updated practic screen layout 2026-06-28 11:36:06 -03:00
waozi 407e4fa2a0 fix sync 2026-06-28 01:41:05 -03:00
waozi 7093dd1a51 Publish Chrome Web Store extension 2026-06-27 22:57:05 -03:00
waozi f78cd854c8 Use current Google Play upload track input 2026-06-27 19:42:51 -03:00
waozi 44725b5bf6 fix changelog 2026-06-27 18:55:59 -03:00
waozi 894552e1b6 update version 2026-06-27 18:55:11 -03:00
waozi 2695cf99a1 Update Flint vendor runtime paths 2026-06-27 18:39:48 -03:00
waozi 62317fa294 improved meditation practice 2026-06-27 18:15:36 -03:00
waozi b492e59c90 move liboqs account managemnt to flint 2026-06-27 16:14:13 -03:00
waozi 86e529db36 polish theme and translations 2026-06-27 15:37:08 -03:00
waozi a9248d0645 improve sun salutation 2026-06-27 13:18:16 -03:00
waozi 0d6f853775 Remove Inbe all builds page 2026-06-27 11:48:14 -03:00
waozi 841018451d Move Inbe site into project 2026-06-27 11:09:05 -03:00
waozi 15d3176a0b improve notifications and settings 2026-06-27 10:13:49 -03:00
waozi 67e55bc931 Update Flint vendor after Netlify restore 2026-06-27 00:18:26 -03:00
waozi 8d3265732e Update Flint vendor for Netlify deploy 2026-06-27 00:12:25 -03:00
waozi 15eab9f75c Use raylib from Flint vendor 2026-06-27 00:09:25 -03:00
waozi ca6d0c1a51 update version 2026-06-26 18:57:00 -03:00
waozi edac1da85c improve sync and add wip sun salutation 2026-06-26 18:56:46 -03:00
waozi 48ee4615d1 background service working on modern android 2026-06-26 11:34:38 -03:00
waozi 631a3d4666 update github action for itch 2026-06-25 20:30:01 -03:00
waozi 0a325d2dc7 fix background play for practice meditation 2026-06-25 20:14:25 -03:00
waozi 32e76391ef fix test music 2026-06-25 00:38:24 -03:00
waozi 57af29796e update itch upload 2026-06-25 00:29:52 -03:00
waozi d87a9fd7e7 fix modal issues and ci 2026-06-25 00:14:35 -03:00
waozi 6396281b9c Update Flint modal input handling 2026-06-24 23:58:37 -03:00
waozi cac8afab9e Make disabled transitions instant 2026-06-24 23:40:12 -03:00
waozi 39c11965ca Skip empty sync review modal 2026-06-24 23:38:25 -03:00
waozi 2f45dc30a1 Show sync review as diff 2026-06-24 23:33:06 -03:00
waozi 0b85606f98 Simplify sync review habit details 2026-06-24 23:23:45 -03:00
waozi 2b3183eb38 Fix sync review build warnings 2026-06-24 23:17:30 -03:00
waozi 810436f3bb Group sync review sessions by practice 2026-06-24 23:15:41 -03:00
waozi c51911383f Improve sync review details 2026-06-24 23:12:22 -03:00
waozi a0ea5d987c Fix hidden startup modal input block 2026-06-24 21:35:09 -03:00
waozi b7b470ca1c Remove guide pre-blocking from app UI 2026-06-24 21:32:04 -03:00
waozi 63acc477e5 Prevent stale modal capture blocking input 2026-06-24 21:29:50 -03:00
waozi aebc742384 Update Flint guide include fix 2026-06-24 21:27:30 -03:00
waozi 37856cef75 Prevent inactive guide input blocking 2026-06-24 21:26:19 -03:00
waozi 240ae3345f Harden AppImage release smoke test 2026-06-24 21:20:16 -03:00
waozi 8b314ef21f improvements with modal and syn settings 2026-06-24 21:16:25 -03:00
waozi 604f1adc0b Use Flint readonly box for public ID 2026-06-24 21:08:58 -03:00
waozi 05d55bf845 Update Flint submodule to master 2026-06-24 21:02:11 -03:00
waozi 393f62e5f0 Improve WHM breath controls 2026-06-24 21:00:44 -03:00
waozi a12cdac763 Clarify alias change flow 2026-06-24 20:55:21 -03:00
waozi 5da72c3710 Fix alias registration flow 2026-06-24 20:21:26 -03:00
waozi 73b6e5a2dc Test chopped locale font coverage 2026-06-24 20:09:16 -03:00
waozi 9930131571 Add account aliases and Flint font tooling 2026-06-24 20:05:04 -03:00
waozi 8f8114b8d7 Add sync state review flow 2026-06-24 19:24:46 -03:00
waozi cfd92e587a update sun salutation 2026-06-24 19:09:56 -03:00
waozi e6aa9b1d84 Use Flint modal capture throughout Inbe 2026-06-24 19:09:06 -03:00
waozi e625044648 Update vendor/flint submodule to modal capture release 2026-06-24 18:59:51 -03:00
waozi f28daf7668 fix modal bug 2026-06-23 17:58:29 -03:00
waozi cddac728b1 fix bug 2026-06-23 14:25:11 -03:00
waozi cc92f494e3 add missing locales 2026-06-23 13:33:26 -03:00
waozi fd3d10521a udpate appimage build 2026-06-23 13:14:27 -03:00
waozi 351c1334c6 improve settings tehem 2026-06-23 11:52:07 -03:00
waozi 414a6ea198 move flint back to submodule 2026-06-22 21:46:54 -03:00
waozi aebb706eac update screenshot script 2026-06-22 14:07:51 -03:00
waozi 3ff584355c rm snap from gh actions 2026-06-22 12:52:54 -03:00
waozi 4d7538f46e update workflow 2026-06-22 12:43:14 -03:00
waozi b5d1fa617a update locales 2026-06-22 12:29:59 -03:00
waozi c700c5a616 fix logo 2026-06-22 11:51:04 -03:00
waozi 285a93fa58 fix image scaling 2026-06-22 11:39:33 -03:00
waozi 92777d5425 fix dropdown mode 2026-06-22 01:46:10 -03:00
waozi 05170a2846 hardn sql 2026-06-22 04:37:31 +00:00
waozi c34ad06050 fix last write wins 2026-06-22 04:35:18 +00:00
waozi 3cef21ab54 update wpa icons 2026-06-22 04:25:19 +00:00
waozi 1b0a50e248 simplify account model 2026-06-22 01:10:05 -03:00
waozi a6616d3cb2 bug fixes 2026-06-22 00:40:29 -03:00
waozi 0cf6f436e1 fi xstorage 2026-06-22 00:27:14 -03:00
waozi 06358b5bfb update icons 2026-06-22 00:13:14 -03:00
waozi 201dced542 update logos 2026-06-21 23:43:39 -03:00
waozi c580bc28ed tab bar 2026-06-21 20:37:40 -03:00
waozi 7b0ecd1e13 cleaner first user guide 2026-06-21 17:17:07 -03:00
waozi 53fdc50827 update version 2026-06-21 12:52:33 -03:00
waozi 0fb6e98993 fix orientation issues 2026-06-21 12:52:12 -03:00
waozi 2a95e1652f fix rotation bug 2026-06-21 12:43:00 -03:00
waozi 9a04b9893b improve avd script 2026-06-21 12:36:51 -03:00
waozi 4b093aef18 more cleanup and guided habits tetx 2026-06-21 12:00:35 -03:00
waozi 9f0a136689 clean up code 2026-06-21 11:41:16 -03:00
waozi 78507b44eb add skip feature in guide 2026-06-21 11:22:33 -03:00
waozi 7b7fb07717 fix padding issues 2026-06-21 01:59:07 -03:00
waozi 0f34ddc97d bug fixes 2026-06-21 01:46:41 -03:00
waozi c679b11b73 improve github action caching 2026-06-21 01:28:57 -03:00
waozi 82ccb092c2 improve edit icon 2026-06-21 01:16:41 -03:00
waozi 8bbbfe0be0 add new first time user guid 2026-06-21 01:08:35 -03:00
waozi ee89a9623a add basic transit]ion between screens 2026-06-21 00:22:03 -03:00
waozi df91739754 fix new hhabit creation 2026-06-21 00:01:55 -03:00
waozi 5fadbcacea improve workflow 2026-06-20 23:49:08 -03:00
waozi c0912d29f0 rm click 2026-06-20 23:35:31 -03:00
waozi a6648a51d1 fix ci 2026-06-20 19:52:44 -03:00
waozi 37cee8b105 ui improvements 2026-06-20 19:38:14 -03:00
waozi c766b84796 improve edit habit 2026-06-20 19:03:04 -03:00
waozi 663ad10fba refactor and bug fixes 2026-06-20 18:34:58 -03:00
waozi 1072d38690 sidebar + bottom nav 2026-06-20 18:18:27 -03:00
waozi fd1ac9403b add version 2026-06-20 16:24:56 -03:00
waozi 43286f23c9 fix line wrap 2026-06-20 16:20:47 -03:00
waozi c2f63faee6 fix locales 2026-06-20 16:09:34 -03:00
waozi 081357578b update screenshots 2026-06-20 14:43:58 -03:00
waozi a047d036f3 polish 2026-06-20 14:04:54 -03:00
waozi cdd14267f2 better abstractions 2026-06-20 11:24:25 -03:00
waozi 6ab4bd6e61 refactor 2026-06-20 10:48:11 -03:00
waozi 376c2ee40b split storage file 2026-06-20 10:31:34 -03:00
waozi 779699ac43 improve breath button positioning 2026-06-20 03:41:33 -03:00
waozi ce01d33aac improve meta and add .click 2026-06-20 03:31:01 -03:00
waozi 807aa54166 fix makefile 2026-06-20 00:49:19 -03:00
waozi 96de9c2492 update version 2026-06-20 00:38:47 -03:00
waozi 117e75c158 fix dropdown bug 2026-06-20 00:25:18 -03:00
waozi 8f556fd5a5 new release 2026-06-20 00:15:18 -03:00
waozi 2807328b00 implement proper sync 2026-06-19 23:46:29 -03:00
waozi 77c4078b9f code cleanup 2026-06-19 22:34:50 -03:00
waozi ed4f1f4d82 fix sync 2026-06-19 22:28:10 -03:00
waozi 41aab988cb consolidate sync logic 2026-06-19 20:17:22 -03:00
waozi 04c8ea1e82 bug fixes on web 2026-06-19 14:43:41 -03:00
waozi ef325ed4af improve account management 2026-06-19 14:20:17 -03:00
waozi 0ce5f1ecd5 improve account maangement 2026-06-19 14:19:52 -03:00
waozi 57a93fb1a2 fix icon row 2026-06-19 13:18:26 -03:00
waozi 3fac68a0c5 ui improvements 2026-06-19 13:15:21 -03:00
waozi 194c98327e implement habit conutr 2026-06-19 13:05:40 -03:00
waozi 1ece2a38f4 simplify tutorial 2026-06-19 11:49:43 -03:00
waozi 8d5fa97bc4 add sync settings 2026-06-19 11:13:30 -03:00
waozi f5488096d4 refactor and add private id generation 2026-06-19 01:59:20 -03:00
waozi 200be33406 improve file dialog 2026-06-19 00:00:41 -03:00
waozi c83544e512 fix tickmate import 2026-06-18 18:32:52 -03:00
waozi 26b3845a01 improved android data import for .db 2026-06-18 17:27:23 -03:00
waozi 6928984362 allow import db files 2026-06-18 17:09:50 -03:00
waozi bebdbbbd38 reduce apk mess 2026-06-18 11:56:47 -03:00
waozi f5e643b096 fix gituhb action 2026-06-18 11:45:56 -03:00
waozi 513c2822ae Build release artifacts without Nix 2026-06-18 11:04:08 -03:00
waozi 7170bdef0b Run CI tests without Nix 2026-06-18 02:33:08 -03:00
waozi 75e01ce333 split up workflows 2026-06-18 01:59:50 -03:00
waozi 92dc51e7a8 improve github action 2026-06-18 01:54:01 -03:00
waozi a8c3ec5166 improve github actino 2026-06-18 01:44:45 -03:00
waozi bd42b9f151 fix audio linux 2026-06-18 01:30:30 -03:00
waozi 22e7a9eafc multi platform build on gh 2026-06-18 01:18:48 -03:00
waozi 4b90c5a079 refactor practices 2026-06-18 01:11:15 -03:00
waozi 9f08f2ad4b cleanup and refactor 2026-06-17 23:12:37 -03:00
waozi e9e2862b13 fix improt web 2026-06-17 19:32:00 -03:00
waozi d50369a777 update version 2026-06-17 18:50:36 -03:00
waozi 896b122c9f improve and fix improt 2026-06-17 18:50:24 -03:00
waozi 5feb0c44fe fix issues with runtime assets 2026-06-17 16:43:48 -03:00
waozi 95b6553a6f fix no of assets 2026-06-17 16:33:01 -03:00
waozi c4d2a92448 bug fixes 2026-06-17 16:30:25 -03:00
waozi 61bd0a9ea4 fix appimage 2026-06-17 15:36:27 -03:00
waozi 89de246311 fix merge import 2026-06-17 13:47:05 -03:00
waozi c169a4c6ad fix orientation change 2026-06-17 13:37:38 -03:00
waozi 861ca9ad2e bug fixes 2026-06-17 13:21:00 -03:00
waozi cda90a0617 improve weelky view and dropdowns 2026-06-17 11:46:23 -03:00
waozi 9d49f9ce57 fix improt issues and add packaging for appimages 2026-06-17 11:18:21 -03:00
waozi 30fc4584c3 fix font issues mobile 2026-06-17 09:43:41 -03:00
waozi cf593bf554 fix clipping 2026-06-17 09:04:07 -03:00
waozi c0f2939c9f bug fixes, otf chop for 8px 2026-06-17 01:19:52 -03:00
waozi ea800cd672 improve settings page 2026-06-16 23:10:41 -03:00
waozi 76ea43832c improve settings page 2026-06-16 23:04:59 -03:00
waozi c50d857cba refactor code base 2026-06-16 22:46:15 -03:00
waozi 09c87a8d9a better tracker managemnt and practice screenr 2026-06-16 22:27:04 -03:00
waozi ea8604392b refactor tracker and themes 2026-06-16 16:18:45 -03:00
waozi c02d6ae02a refactor to habits screen 2026-06-16 15:17:06 -03:00
waozi 12637cc7ef refactor 2026-06-16 11:01:22 -03:00
waozi f4c753b2f4 cleaner icon loading 2026-06-16 00:35:29 -03:00
waozi 9a231007f1 more cleanup 2026-06-14 14:46:27 -03:00
waozi 1ad4e8ee78 unify icon system 2026-06-14 14:35:54 -03:00
waozi ed1993bff8 simplify play butotn 2026-06-14 12:45:01 -03:00
waozi 7ff89fd78b cleanup and fixes 2026-06-14 11:40:56 -03:00
waozi 801f49d470 cleanup 2026-06-14 01:05:09 -03:00
waozi 7bf9c1859d cleanup theme usage 2026-06-14 00:49:25 -03:00
waozi 689d08eefa cleanup and add tests 2026-06-13 23:31:30 -03:00
waozi 60eb87f5f1 add changelog 2026-06-13 21:47:21 -03:00
waozi 784d14ac2e improve file browser 2026-06-13 21:43:41 -03:00
waozi 4db5c1dcf7 better data management 2026-06-13 21:11:44 -03:00
waozi 4eb7b5f19b merge with flint 2026-06-13 21:11:30 -03:00
waozi b07aeced88 add round label 2026-06-12 23:01:59 -03:00
waozi 8eb52b6515 Update Flint web dist packaging 2026-06-12 21:49:08 -03:00
waozi 1d219ca706 use latset flint 2026-06-12 11:33:50 -03:00
waozi 6f6b7a09e1 fix workflow 2026-06-12 10:34:36 -03:00
waozi c39d54b42a fix make 2026-06-12 10:25:56 -03:00
waozi 4a83138cb7 update version 2026-06-12 09:58:40 -03:00
waozi 0fbd274f4d cleanup 2026-06-12 09:56:44 -03:00
waozi 1f21d4d3af clean flint version 2026-06-12 00:42:22 -03:00
waozi d92c06a0b4 flint cli fully working 2026-06-12 00:11:22 -03:00
waozi e416d9419a use flint for cross building 2026-06-12 00:07:56 -03:00
waozi 5157746aca clean windows build 2026-06-11 23:45:54 -03:00
waozi 4993ad48e4 Embed runtime assets in desktop builds 2026-06-11 22:20:24 -03:00
waozi efd8de98cd upload all versions on itch 2026-06-11 16:48:08 -03:00
waozi a5729306ae update version 2026-06-11 13:06:54 -03:00
waozi d6373dab29 bug fixes and improve setting management 2026-06-11 13:03:51 -03:00
waozi 91a250a9be fix versioning 2026-06-10 08:41:39 -03:00
waozi 22d2b0916d fix history page 2026-06-10 08:38:18 -03:00
waozi 6a1d83f8f8 simplify scripts 2026-06-10 00:22:12 -03:00
5738 changed files with 213625 additions and 25955 deletions

No files matched your search

+19
View File
@@ -0,0 +1,19 @@
# Copy to .env.play when you want to upload the store listing.
# Do not commit .env.play or the service-account JSON.
PLAY_PACKAGE_NAME=xyz.waozi.inbe
PLAY_SERVICE_ACCOUNT_JSON=/absolute/path/to/google-play-service-account.json
PLAY_LANGUAGE=en-US
PLAY_METADATA_IMAGES_DIR=fastlane/metadata/android/en-US/images
PLAY_IMAGE_TYPES=phoneScreenshots,sevenInchScreenshots,tenInchScreenshots
PLAY_DELETE_EXISTING=1
# Short and full descriptions from every locale folder here. 0 skips text.
PLAY_METADATA_DIR=fastlane/metadata/android
PLAY_LISTING_TEXT=1
# Optional public/unlisted, embeddable YouTube video for PLAY_LANGUAGE.
# Leave empty to preserve the existing video.
PLAY_VIDEO_URL=
# Default is validate-only and discards the draft edit.
# Set to 1 only when you want the uploaded screenshots committed to Play.
# Uploads require make screenshot-review, screenshot-export and play-preflight.
PLAY_COMMIT=0
+3
View File
@@ -0,0 +1,3 @@
unpackaged_assets/**/*.ogg filter=lfs diff=lfs merge=lfs -text
test-fixtures/audio/*.mp3 filter=lfs diff=lfs merge=lfs -text
themes/catalog_*.kss whitespace=-blank-at-eof
+4
View File
@@ -0,0 +1,4 @@
#!/bin/sh
set -eu
scripts/check-secrets.py --staged
+17
View File
@@ -0,0 +1,17 @@
#!/bin/sh
set -eu
tmp=$(mktemp "${TMPDIR:-/tmp}/inbe-pre-push.XXXXXX")
trap 'rm -f "$tmp"' EXIT
cat > "$tmp"
if command -v git-lfs >/dev/null 2>&1; then
git lfs pre-push "$@" < "$tmp"
elif git lfs version >/dev/null 2>&1; then
git lfs pre-push "$@" < "$tmp"
else
printf '%s\n' "This repository uses Git LFS, but git-lfs is not available." >&2
exit 2
fi
scripts/check-secrets.py --pre-push "$@" < "$tmp"
+42
View File
@@ -0,0 +1,42 @@
name: Set up Emscripten
description: >
Install the Emscripten SDK version named in .github/emscripten-version and
put it on PATH. The SDK, including the system libraries and ports it builds
on first use, is cached per version, so a job only downloads it when the
pinned version changes.
runs:
using: composite
steps:
- name: Read the pinned Emscripten version
id: version
shell: bash
run: echo "version=$(tr -d '[:space:]' < .github/emscripten-version)" >> "$GITHUB_OUTPUT"
- name: Restore the Emscripten SDK
uses: actions/cache@v4
with:
path: ~/emsdk
key: emsdk-${{ runner.os }}-${{ runner.arch }}-${{ steps.version.outputs.version }}-${{ hashFiles('scripts/ensure-emscripten-zlib.sh') }}
restore-keys: |
emsdk-${{ runner.os }}-${{ runner.arch }}-${{ steps.version.outputs.version }}-
- name: Install and activate Emscripten
shell: bash
env:
EMSCRIPTEN_VERSION: ${{ steps.version.outputs.version }}
run: |
set -euo pipefail
if [ ! -x "$HOME/emsdk/emsdk" ]; then
rm -rf "$HOME/emsdk"
git clone --depth 1 https://github.com/emscripten-core/emsdk.git "$HOME/emsdk"
fi
if [ ! -x "$HOME/emsdk/upstream/emscripten/emcc" ]; then
"$HOME/emsdk/emsdk" install "$EMSCRIPTEN_VERSION"
fi
"$HOME/emsdk/emsdk" activate "$EMSCRIPTEN_VERSION"
echo "EMSDK=$HOME/emsdk" >> "$GITHUB_ENV"
echo "EM_CONFIG=$HOME/emsdk/.emscripten" >> "$GITHUB_ENV"
echo "INBE_NODE_BIN=$(dirname "$(command -v node)")" >> "$GITHUB_ENV"
echo "$HOME/emsdk/upstream/emscripten" >> "$GITHUB_PATH"
bash scripts/ensure-emscripten-zlib.sh "$HOME/emsdk/upstream/emscripten/embuilder"
+61
View File
@@ -0,0 +1,61 @@
name: Fetch Ziran packages
description: >
Fetch the packages pinned in ziran.lock. The built Ziran compiler is cached
by the runner image and the toolchain commit, so bumping another package
such as Kryon keeps it; the package checkouts are cached by the whole lock and fall back
to the previous checkouts, so a bump fetches only what changed.
inputs:
save-toolchain:
description: >
Save the built compiler to the cache. A job that only fetches packages
must not, or it would store a toolchain cache without the compiler.
default: 'true'
runs:
using: composite
steps:
- name: Read the Ziran toolchain commit
id: toolchain
shell: sh
run: |
commit=$(python3 -c 'import json; print(json.load(open("ziran.lock"))["toolchain"]["commit"])')
echo "commit=$commit" >> "$GITHUB_OUTPUT"
# A compiler built on a newer image needs its newer C library, so
# images do not share one: ubuntu-22.04 cannot run a glibc 2.39 build.
libc=$(getconf GNU_LIBC_VERSION 2>/dev/null | tr ' ' '-' || true)
echo "system=${ImageOS:-local}-${libc:-nolibc}" >> "$GITHUB_OUTPUT"
- name: Restore the Ziran toolchain
if: inputs.save-toolchain == 'true'
uses: actions/cache@v4
with:
path: |
build/ziran-bootstrap
build/ziran-toolchain
key: ziran-toolchain-${{ runner.os }}-${{ runner.arch }}-${{ steps.toolchain.outputs.system }}-${{ steps.toolchain.outputs.commit }}
restore-keys: |
ziran-toolchain-${{ runner.os }}-${{ runner.arch }}-${{ steps.toolchain.outputs.system }}-
- name: Restore the Ziran toolchain without saving it
if: inputs.save-toolchain != 'true'
uses: actions/cache/restore@v4
with:
path: |
build/ziran-bootstrap
build/ziran-toolchain
key: ziran-toolchain-${{ runner.os }}-${{ runner.arch }}-${{ steps.toolchain.outputs.system }}-${{ steps.toolchain.outputs.commit }}
restore-keys: |
ziran-toolchain-${{ runner.os }}-${{ runner.arch }}-${{ steps.toolchain.outputs.system }}-
- name: Restore the package sources
uses: actions/cache@v4
with:
path: ~/.cache/ziran/sources
key: ziran-sources-${{ runner.os }}-${{ runner.arch }}-${{ hashFiles('ziran.lock') }}
restore-keys: |
ziran-sources-${{ runner.os }}-${{ runner.arch }}-
- name: Fetch Ziran packages
shell: sh
run: sh scripts/packages.sh --locked
+1
View File
@@ -0,0 +1 @@
+29
View File
@@ -0,0 +1,29 @@
build-essential
ca-certificates
curl
dpkg
libcurl4-openssl-dev
libdrm-dev
libdrm2
libegl1-mesa-dev
libegl1
libgbm-dev
libgbm1
libgles2-mesa-dev
libgl1
libgl1-mesa-dri
libglvnd0
libgtk-3-dev
libx11-6
libx11-dev
libxext6
libsdl2-2.0-0
libsdl2-dev
patchelf
pkg-config
python3-fonttools
podman
rpm
x11-utils
xvfb
zip
+27
View File
@@ -0,0 +1,27 @@
build-essential
ca-certificates
libcurl4-openssl-dev
ripgrep
zlib1g-dev
libdrm-dev
libegl1-mesa-dev
libgbm-dev
libgles2-mesa-dev
libsdl2-dev
pkg-config
python3-fonttools
python3-numpy
python3-pil
python3-requests
python3-scipy
xvfb
xauth
xdotool
x11-apps
x11-utils
xclip
sqlite3
imagemagick
tesseract-ocr
python3-cryptography
+5
View File
@@ -0,0 +1,5 @@
build-essential
zlib1g-dev
zip
tcl
python3-fonttools
+7
View File
@@ -0,0 +1,7 @@
build-essential
gcc-mingw-w64-x86-64-win32
zlib1g-dev
libz-mingw-w64-dev
zip
nsis
python3-fonttools
+1
View File
@@ -0,0 +1 @@
6.0.10
+79
View File
@@ -0,0 +1,79 @@
#!/usr/bin/env bash
set -euo pipefail
if [ "$#" -lt 1 ]; then
echo "usage: $0 PACKAGE_FILE [EXTRA_PACKAGE ...]" >&2
exit 2
fi
package_file="$1"
shift
if [ ! -f "$package_file" ]; then
echo "package file not found: $package_file" >&2
exit 2
fi
APT_CACHE_DIR="${APT_CACHE_DIR:-/tmp/apt-cache}"
apt_arch="$(dpkg --print-architecture)"
ubuntu_archive="https://archive.ubuntu.com/ubuntu"
if [ "$apt_arch" = "arm64" ]; then
ubuntu_archive="http://ports.ubuntu.com/ubuntu-ports"
fi
codename="$(
. /etc/os-release
printf '%s' "${VERSION_CODENAME:-jammy}"
)"
# GitHub-hosted Ubuntu runners sometimes use an Azure mirrorlist that stalls.
# Pin Ubuntu packages to the canonical archive before running apt. arm64
# packages live on ports.ubuntu.com, not archive.ubuntu.com.
if [ -f /etc/apt/apt-mirrors.txt ]; then
printf '%s\n' "$ubuntu_archive" | sudo tee /etc/apt/apt-mirrors.txt >/dev/null
fi
while IFS= read -r -d '' source_file; do
sudo sed -i \
-e "s|mirror+file:/etc/apt/apt-mirrors.txt|$ubuntu_archive|g" \
-e "s|http://azure.archive.ubuntu.com/ubuntu|$ubuntu_archive|g" \
-e "s|https://azure.archive.ubuntu.com/ubuntu|$ubuntu_archive|g" \
-e "s|http://archive.ubuntu.com/ubuntu|$ubuntu_archive|g" \
-e "s|https://archive.ubuntu.com/ubuntu|$ubuntu_archive|g" \
-e "s|http://ports.ubuntu.com/ubuntu-ports|$ubuntu_archive|g" \
-e "s|https://ports.ubuntu.com/ubuntu-ports|$ubuntu_archive|g" \
"$source_file"
done < <(find /etc/apt -type f \( -name '*.list' -o -name '*.sources' \) -print0)
sudo tee /etc/apt/sources.list.d/ubuntu.sources >/dev/null <<EOF
Types: deb
URIs: $ubuntu_archive
Suites: $codename ${codename}-updates ${codename}-backports ${codename}-security
Components: main restricted universe multiverse
Signed-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg
EOF
mapfile -t raw_packages < "$package_file"
packages=()
for package in "${raw_packages[@]}" "$@"; do
if [ -z "$package" ] || [[ "$package" == \#* ]]; then
continue
fi
packages+=("$package")
done
mkdir -p "$APT_CACHE_DIR/partial"
sudo rm -rf /var/lib/apt/lists/*
sudo apt-get \
-o Acquire::Retries=3 \
-o Acquire::http::Timeout=20 \
-o Acquire::https::Timeout=20 \
update
if [ "${#packages[@]}" -gt 0 ]; then
sudo apt-get \
-o Acquire::Retries=3 \
-o Acquire::http::Timeout=20 \
-o Acquire::https::Timeout=20 \
-o Dir::Cache::archives="$APT_CACHE_DIR" \
install -y "${packages[@]}"
fi
sudo chown -R "$USER:$USER" "$APT_CACHE_DIR"
+148
View File
@@ -0,0 +1,148 @@
name: Android Moto APK
"on":
workflow_dispatch:
inputs:
source_commit:
description: Full commit hash whose Release checks passed
required: true
verified_run:
description: Release run with successful Secret Scan and Test jobs
required: true
permissions:
contents: read
actions: read
jobs:
android:
name: Build signed Moto APK
runs-on: ubuntu-latest
timeout-minutes: 60
steps:
- name: Require passing checks for the exact source commit
env:
GH_TOKEN: ${{ github.token }}
SOURCE_COMMIT: ${{ inputs.source_commit }}
VERIFIED_RUN: ${{ inputs.verified_run }}
run: |
python3 - <<'PY'
import json
import os
import re
import subprocess
commit = os.environ['SOURCE_COMMIT']
run_id = os.environ['VERIFIED_RUN']
repository = os.environ['GITHUB_REPOSITORY']
if not re.fullmatch(r'[0-9a-f]{40}', commit):
raise SystemExit('A full, immutable source commit is required')
if not re.fullmatch(r'[0-9]+', run_id):
raise SystemExit('A numeric Release run ID is required')
def api(path):
return json.loads(subprocess.check_output(['gh', 'api', path], text=True))
run = api(f'repos/{repository}/actions/runs/{run_id}')
if run['head_sha'] != commit or run['path'] != '.github/workflows/release.yml':
raise SystemExit('The Release checks must belong to the requested source commit')
jobs = api(f'repos/{repository}/actions/runs/{run_id}/jobs?per_page=100')['jobs']
for name in ('Secret Scan', 'Test'):
checks = [job for job in jobs if job['name'] == name]
if len(checks) != 1 or checks[0]['conclusion'] != 'success':
raise SystemExit(f'{name} must have passed before signing')
print('Verified passing Secret Scan and full Test jobs for ' + commit)
PY
- name: Checkout verified source
uses: actions/checkout@v4
with:
ref: ${{ inputs.source_commit }}
fetch-depth: 1
- name: Fetch Ziran packages
uses: ./.github/actions/ziran-packages
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 22
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: '21'
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3
- name: Cache Android SDK packages
uses: actions/cache@v4
with:
path: |
${{ env.ANDROID_HOME }}/platforms/android-36
${{ env.ANDROID_HOME }}/build-tools/34.0.0
${{ env.ANDROID_HOME }}/ndk/28.2.13676358
${{ env.ANDROID_HOME }}/cmake/3.22.1
key: android-moto-sdk-${{ runner.os }}-api36-ndk28-cmake322
restore-keys: |
android-sdk-${{ runner.os }}-${{ runner.arch }}-
- name: Install Android SDK components
run: |
set -euo pipefail
SDKMANAGER="$ANDROID_HOME/cmdline-tools/latest/bin/sdkmanager"
yes | "$SDKMANAGER" --licenses >/dev/null || true
"$SDKMANAGER" "platforms;android-36" "build-tools;34.0.0" "ndk;28.2.13676358" "cmake;3.22.1"
- name: Prepare Android signing key
env:
KEYSTORE_BASE64: ${{ secrets.KEYSTORE_BASE64 }}
run: |
set -euo pipefail
umask 077
mkdir -p ~/.android
printf '%s' "$KEYSTORE_BASE64" | base64 -d > ~/.android/inbe-release.keystore
- name: Prepare Firebase config
env:
GOOGLE_SERVICES_JSON_BASE64: ${{ secrets.GOOGLE_SERVICES_JSON_BASE64 }}
run: ./scripts/write-google-services-json.sh
- name: Copy Android assets
run: ./scripts/copy-android-assets.sh
- name: Build signed ARMv7 release APK
env:
KEYSTORE_PASSWORD: ${{ secrets.KEYSTORE_PASSWORD }}
KEY_ALIAS: ${{ secrets.KEY_ALIAS }}
SOURCE_COMMIT: ${{ inputs.source_commit }}
run: |
set -euo pipefail
./droid/gradlew -p droid assembleRelease \
-Papp.onlyAbi=armeabi-v7a \
-Pkeystore.path="$HOME/.android/inbe-release.keystore" \
-Pkeystore.alias="$KEY_ALIAS" \
-Pkeystore.password="$KEYSTORE_PASSWORD" \
--stacktrace
VERSION=$(python3 scripts/check-version.py --print-version)
mkdir -p build/release/moto
cp droid/app/build/outputs/apk/release/app-armeabi-v7a-release.apk "build/release/moto/inbe-$VERSION-moto.apk"
"$ANDROID_HOME/build-tools/34.0.0/apksigner" verify --print-certs "build/release/moto/inbe-$VERSION-moto.apk"
printf '%s\n' "$SOURCE_COMMIT" > build/release/moto/source-commit.txt
(
cd build/release/moto
sha256sum "inbe-$VERSION-moto.apk" > "inbe-$VERSION-moto.apk.sha256"
)
- name: Remove signing key
if: always()
run: rm -f ~/.android/inbe-release.keystore
- name: Upload signed Moto APK
uses: actions/upload-artifact@v4
with:
name: android-moto
path: build/release/moto/*
if-no-files-found: error
-103
View File
@@ -1,103 +0,0 @@
name: Android Build
on:
push:
branches:
- master
pull_request:
branches:
- master
workflow_dispatch:
permissions:
contents: write
jobs:
release:
name: Build Release APK
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4
with:
submodules: recursive
fetch-depth: 0
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '21'
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3
- name: Grant execute permission for gradlew
run: chmod +x droid/gradlew
- name: Create keystore directory
run: mkdir -p ~/.android
- name: Decode Keystore
env:
KEYSTORE_BASE64: ${{ secrets.KEYSTORE_BASE64 }}
run: |
echo "$KEYSTORE_BASE64" | base64 -d > ~/.android/inbe-release.keystore
echo "Keystore decoded successfully"
- name: Copy Assets to Android Project
run: ./scripts/copy-android-assets.sh
- name: Build Release APK
working-directory: ./droid
env:
KEYSTORE_PASSWORD: ${{ secrets.KEYSTORE_PASSWORD }}
KEY_ALIAS: ${{ secrets.KEY_ALIAS }}
KEY_PASSWORD: ${{ secrets.KEY_PASSWORD }}
run: |
./gradlew assembleRelease \
-Pkeystore.password="$KEYSTORE_PASSWORD" \
-Pkeystore.path="/home/runner/.android/inbe-release.keystore" \
--stacktrace
- name: Rename APK
run: |
VERSION=$(grep "versionName" droid/app/build.gradle | awk '{print $2}' | tr -d '"')
find droid/app/build/outputs/apk/release -name "*-universal-release.apk" -exec cp {} inbe-$VERSION.apk \; 2>/dev/null || true
- name: Upload APK to Artifacts
uses: actions/upload-artifact@v4
with:
name: release-apk
path: inbe-*.apk
if-no-files-found: warn
- name: Create and Push Tag (if new version)
id: tag_version
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
run: |
VERSION=$(grep "versionName" droid/app/build.gradle | awk '{print $2}' | tr -d '"')
TAG="v$VERSION"
if git rev-parse "$TAG" >/dev/null 2>&1; then
echo "Tag $TAG exists, skipping"
echo "tag_pushed=false" >> $GITHUB_OUTPUT
else
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git tag -a "$TAG" -m "Release $VERSION"
git push origin "$TAG"
echo "tag_pushed=true" >> $GITHUB_OUTPUT
echo "tag_name=$TAG" >> $GITHUB_OUTPUT
fi
- name: Create GitHub Release
if: steps.tag_version.outputs.tag_pushed == 'true'
uses: softprops/action-gh-release@v1
with:
tag_name: ${{ steps.tag_version.outputs.tag_name }}
files: inbe-*.apk
generate_release_notes: true
draft: false
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+253
View File
@@ -0,0 +1,253 @@
name: CI
on:
push:
branches:
- master
pull_request:
branches:
- master
workflow_dispatch:
permissions:
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
secret-scan:
name: Secret Scan
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Fetch Ziran packages
uses: ./.github/actions/ziran-packages
with:
save-toolchain: 'false'
- name: Check Version Consistency
run: |
python3 scripts/check-version.py
python3 tests/version_test.py
- name: Scan Tracked Files and History
run: |
set -euo pipefail
python3 scripts/check-secrets.py --working-tree
python3 scripts/check-secrets.py --history
guard-package-urls:
name: Package URLs are public HTTPS
runs-on: ubuntu-latest
steps:
# Plain checkout on purpose: the guard must not depend on fetching
# the packages it validates (an SSH URL would break that fetch).
- name: Checkout Repository
uses: actions/checkout@v4
- name: Reject submodules and non-HTTPS package URLs
run: |
set -eu
if [ -f .gitmodules ]; then
echo "::error::Dependencies are Ziran packages in ziran.toml, not submodules"
exit 1
fi
bad=$(grep -nE '^[[:space:]]*git[[:space:]]*=' ziran.toml \
| grep -vE '^[0-9]+:[[:space:]]*git[[:space:]]*=[[:space:]]*"https://' || true)
if [ -n "$bad" ]; then
echo "::error::Non-HTTPS package URL(s) break fresh clones and CI:$bad"
exit 1
fi
echo "all package URLs HTTPS - ok"
test:
# make test split across runners; each shard is a third of its targets.
name: Test (${{ matrix.shard }}/3)
runs-on: ubuntu-latest
# Secret Scan runs beside the tests; nothing here publishes, so it need not gate them.
needs:
- guard-package-urls
timeout-minutes: 60
strategy:
fail-fast: false
matrix:
shard: [0, 1, 2]
env:
APT_CACHE_DIR: /tmp/apt-cache
steps:
- name: Checkout Repository
uses: actions/checkout@v4
with:
fetch-depth: 1
lfs: true
- name: Fetch Ziran packages
uses: ./.github/actions/ziran-packages
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 22
- name: Cache Test apt packages
uses: actions/cache@v4
with:
path: ${{ env.APT_CACHE_DIR }}
key: test-apt-${{ runner.os }}-${{ runner.arch }}-${{ hashFiles('.github/apt/test-packages.txt') }}
restore-keys: |
test-apt-${{ runner.os }}-${{ runner.arch }}-
- name: Install Test Dependencies
timeout-minutes: 15
run: .github/scripts/install-apt-packages.sh .github/apt/test-packages.txt
- name: Run Tests
run: sh scripts/test-shard.sh ${{ matrix.shard }} 3
- name: Require Visual Tests
if: matrix.shard == 1
run: make visual-test
- name: Save Visual Test Evidence
if: always() && matrix.shard == 1
uses: actions/upload-artifact@v4
with:
name: native-visual-tests
path: |
build/visual-test/
build/native-visual-test/
build/native-zoom-test/*.png
build/native-zoom-test/app.log
build/launcher-ui-test/
build/locale-render-ui-test/
build/native-screenshot-test/
build/native-text-pixels-test/*.png
build/native-text-pixels-test/*.log
build/settings-sidebar-test/
build/startup-quit-test/
build/lumi-ui-test/
build/lumi-history-ui-test/
build/habits-cards-ui-test/
build/lists-ui-test/
build/sync-review-ui-test/
build/data-back-ui-test/
build/leaderboard-ui-test/
build/practice-images-ui-test/
retention-days: 7
- name: Check out sync test server
if: matrix.shard == 0
uses: actions/checkout@v4
with:
repository: kryonlabs/daochi
# Includes the private Lumi collection used for shared account activity.
ref: f850456a7e039e9ba39fcf03cb7cb802ff6a3329
path: .test-server
submodules: recursive
- name: Set up Go for sync test server
if: matrix.shard == 0
uses: actions/setup-go@v5
with:
go-version-file: .test-server/go.mod
cache-dependency-path: .test-server/go.sum
- name: Verify sync and recovery
if: matrix.shard == 0
run: |
make -C .test-server build
make sync-server-test DAOCHI_BIN="$GITHUB_WORKSPACE/.test-server/daochi"
browser-addons:
# Builds the web app once, packages it for Chrome and Firefox, and runs
# the smoke test in both browsers. It runs beside the tests; a failure in
# either still fails the run.
name: Build Browser Add-ons
runs-on: ubuntu-latest
timeout-minutes: 60
needs:
- guard-package-urls
env:
APT_CACHE_DIR: /tmp/apt-cache
steps:
- name: Checkout Repository
uses: actions/checkout@v4
with:
fetch-depth: 1
lfs: true
- name: Fetch Ziran packages
uses: ./.github/actions/ziran-packages
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 22
- name: Cache Web apt packages
uses: actions/cache@v4
with:
path: ${{ env.APT_CACHE_DIR }}
key: web-apt-${{ runner.os }}-${{ runner.arch }}-${{ hashFiles('.github/apt/web-packages.txt') }}
restore-keys: |
web-apt-${{ runner.os }}-${{ runner.arch }}-
- name: Install Web Dependencies
timeout-minutes: 15
run: .github/scripts/install-apt-packages.sh .github/apt/web-packages.txt
- name: Set up Emscripten
uses: ./.github/actions/emscripten
- name: Build Chrome and Firefox ZIPs
run: |
set -euo pipefail
export PATH="$INBE_NODE_BIN:$PATH"
node --version
make package-unpackaged-assets
make chrome-web-store
test -f build/dist/inbe-chrome-web-store.zip
make firefox-addons
test -f build/dist/inbe-firefox-addons.zip
make firefox-addons-lint
# The web build renders on canvas, so this is also the canvas smoke
# test.
- name: Run Web Smoke Test (Chrome)
run: |
set -euo pipefail
export PATH="$INBE_NODE_BIN:$PATH"
make web-smoke-test
- name: Install Firefox (Mozilla build)
timeout-minutes: 15
run: |
set -euo pipefail
.github/scripts/install-apt-packages.sh .github/apt/empty-packages.txt \
xvfb libgl1-mesa-dri libgl1 libegl1 mesa-utils || true
.github/scripts/install-apt-packages.sh .github/apt/empty-packages.txt \
libgtk-3-0t64 libx11-xcb1 libxcb-shm0 libasound2t64 libdbus-glib-1-2 \
libxt6t64 libxtst6 libpci3 || \
.github/scripts/install-apt-packages.sh .github/apt/empty-packages.txt \
libgtk-3-0 libx11-xcb1 libxcb-shm0 libasound2 libdbus-glib-1-2 libxt6 libxtst6 libpci3
curl -sL "https://download.mozilla.org/?product=firefox-latest&os=linux64&lang=en-US" \
-o "$HOME/firefox.tar.xz"
tar -xJf "$HOME/firefox.tar.xz" -C "$HOME"
test -x "$HOME/firefox/firefox"
echo "$HOME/firefox" >> "$GITHUB_PATH"
- name: Run Web Smoke Test (Firefox)
env:
LIBGL_ALWAYS_SOFTWARE: '1'
run: |
set -euo pipefail
export PATH="$INBE_NODE_BIN:$PATH"
xvfb-run -a --server-args="-screen 0 1280x1024x24" make web-smoke-test-firefox
+121
View File
@@ -0,0 +1,121 @@
name: App packages
on:
push:
branches: [master]
paths:
- 'apps/**'
- 'assets/**'
- 'locales/**'
- 'themes/**'
- 'scripts/prepare-package-assets.py'
- 'src/**'
- 'scripts/build-cells.sh'
- 'scripts/package-release.py'
- 'scripts/generate-package-versions.py'
- 'scripts/update-package-version.py'
- 'scripts/check-package-versions.py'
- 'scripts/check-package-publishers.py'
- 'scripts/package-manifests.py'
- 'tests/package_manifests_test.py'
- 'tests/package_upload_test.py'
- 'tests/package_versions_test.py'
- 'tests/package_workflow_test.py'
- 'ziran.lock'
- '.github/workflows/packages.yml'
workflow_dispatch:
permissions:
contents: read
concurrency:
group: inbe-package-publishing
cancel-in-progress: false
jobs:
packages:
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/ziran-packages
- name: Install signing and test dependencies
run: |
sudo apt-get update && sudo apt-get install -y python3-cryptography python3-fonttools
.github/scripts/install-apt-packages.sh .github/apt/test-packages.txt
- name: Build independent packages and check signatures
run: |
make package-version-test
make package-workflow-test
make package-manifest-test
make package-upload-test
make cells build-laws
python3 tests/package_release_test.py
- name: Run new packages in the last released app
run: python3 tests/package_compat_test.py --skip-forward
- name: Configure publisher
id: publisher
env:
SIGNING_KEY: ${{ secrets.INBE_PACKAGE_SIGNING_KEY }}
KEY_ID: ${{ vars.INBE_PACKAGE_KEY_ID }}
SSH_KEY: ${{ secrets.INBE_NODE_SSH_KEY }}
SSH_HOSTS: ${{ secrets.INBE_NODE_KNOWN_HOSTS }}
TARGET: ${{ secrets.INBE_NODE_SSH_TARGET }}
STORE: ${{ secrets.INBE_NODE_PACKAGE_STORE }}
run: |
python3 - <<'PY'
import os
from pathlib import Path
signing = all(os.environ.get(name) for name in ('SIGNING_KEY', 'KEY_ID'))
configured = signing and all(os.environ.get(name) for name in ('SSH_KEY', 'SSH_HOSTS', 'TARGET', 'STORE'))
with open(os.environ['GITHUB_OUTPUT'], 'a') as output:
output.write('signing=' + str(signing).lower() + '\n')
output.write('configured=' + str(configured).lower() + '\n')
if signing:
directory = Path(os.environ['RUNNER_TEMP']) / 'inbe-publisher'
directory.mkdir(mode=0o700)
files = [('publisher.pem', 'SIGNING_KEY')]
if configured:
files += [('node.key', 'SSH_KEY'), ('known_hosts', 'SSH_HOSTS')]
for filename, name in files:
path = directory / filename
path.write_text(os.environ[name] + '\n')
path.chmod(0o600)
if signing and not configured:
print('Node deployment is not configured; signed releases will be archived for installation on the node.')
elif not signing:
print('Signing is not configured; unsigned build artifacts will be archived without publication.')
PY
- name: Sign app releases
if: steps.publisher.outputs.signing == 'true'
env:
KEY_ID: ${{ vars.INBE_PACKAGE_KEY_ID }}
run: |
python3 scripts/check-package-publishers.py
python3 scripts/package-release.py --store build/package-releases \
--key "$RUNNER_TEMP/inbe-publisher/publisher.pem" --key-id "$KEY_ID"
- name: Sign and publish to Waozi's Daochi node
if: steps.publisher.outputs.configured == 'true'
env:
KEY_ID: ${{ vars.INBE_PACKAGE_KEY_ID }}
TARGET: ${{ secrets.INBE_NODE_SSH_TARGET }}
STORE: ${{ secrets.INBE_NODE_PACKAGE_STORE }}
run: |
export INBE_SSH_IDENTITY="$RUNNER_TEMP/inbe-publisher/node.key"
export INBE_SSH_KNOWN_HOSTS="$RUNNER_TEMP/inbe-publisher/known_hosts"
python3 scripts/package-release.py --store build/package-releases \
--key "$RUNNER_TEMP/inbe-publisher/publisher.pem" --key-id "$KEY_ID" \
--ssh-target "$TARGET" --remote-store "$STORE" \
--verify-origin https://api.waozi.xyz
- name: Archive packages
uses: actions/upload-artifact@v4
with:
name: inbe-app-packages
path: |
build/inbe.zib
build/cells/*.zib
build/package-releases/
if-no-files-found: error
- name: Remove signing material
if: always()
run: rm -rf "$RUNNER_TEMP/inbe-publisher"
+186
View File
@@ -0,0 +1,186 @@
name: Cloudflare Pages
on:
push:
branches:
- master
# Refresh available downloads after a release; pushes deploy independently.
workflow_run:
workflows: [Release]
types: [completed]
branches: [master]
pull_request:
workflow_dispatch:
inputs:
released_web:
description: Use the published web app for a website-only update
type: boolean
default: false
permissions:
contents: read
concurrency:
# A failed Release produces a skipped refresh, which must not cancel a push.
group: pages-${{ github.ref }}-${{ github.event_name == 'workflow_run' && github.event.workflow_run.conclusion != 'success' && 'skipped' || 'deploy' }}
cancel-in-progress: true
jobs:
build:
name: Build Site
runs-on: ubuntu-latest
timeout-minutes: 60
if: github.event_name != 'workflow_run' || github.event.workflow_run.conclusion == 'success'
steps:
- name: Checkout Repository
uses: actions/checkout@v4
with:
lfs: true
- name: Fetch Ziran packages
uses: ./.github/actions/ziran-packages
- name: Set up Node.js for the web build
uses: actions/setup-node@v4
with:
node-version: 22
- name: Resolve published downloads
env:
GH_TOKEN: ${{ github.token }}
run: |
set -euo pipefail
gh api repos/waozixyz/inbe/releases/latest > "$RUNNER_TEMP/inbe-published-release.json"
python3 - "$RUNNER_TEMP/inbe-published-release.json" >> "$GITHUB_ENV" <<'PY'
import json
import re
import sys
from pathlib import Path
release = json.loads(Path(sys.argv[1]).read_text())
tag = release["tag_name"]
version = tag.removeprefix("v")
assert re.fullmatch(r"(?:0|[1-9][0-9]*)\.(?:0|[1-9][0-9]*)\.(?:0|[1-9][0-9]*)", version), "Invalid published release version"
assets = {asset["name"] for asset in release["assets"]}
candidates = [f"inbe-{version}-arm64-v8a.apk", f"inbe-{version}.apk"]
android = next((name for name in candidates if name in assets), None)
assert android is not None, "Published release has no compatible Android APK"
print(f"SITE_RELEASE_VERSION={version}")
print(f"SITE_ANDROID_APK_ASSET={android}")
PY
- name: Install Packages
if: ${{ !inputs.released_web }}
timeout-minutes: 15
run: .github/scripts/install-apt-packages.sh .github/apt/web-packages.txt
- name: Set Up Emscripten
if: ${{ !inputs.released_web }}
uses: ./.github/actions/emscripten
- name: Download Released Web App
if: ${{ inputs.released_web }}
env:
GH_TOKEN: ${{ github.token }}
run: |
set -euo pipefail
version="$SITE_RELEASE_VERSION"
test -n "$version"
mkdir -p build/released-web build/dist/web
gh release download "v$version" --pattern inbe-web.zip --dir build/released-web
unzip -q build/released-web/inbe-web.zip -d build/dist/web
test -s build/dist/web/index.wasm
- name: Web runner diagnostics
if: ${{ !inputs.released_web }}
run: |
set -euo pipefail
lscpu
free -m
for browser in chromium chromium-browser google-chrome google-chrome-stable; do
if command -v "$browser" >/dev/null 2>&1; then
"$browser" --version
fi
done
- name: Build Site
run: |
set -euo pipefail
if [ "$RELEASED_WEB" = "true" ]; then
make package-unpackaged-assets
sh site/build.sh
else
export PATH="$INBE_NODE_BIN:$PATH"
node --version
make build-laws
make site
fi
test -f build/site/index.html
test -f build/site/build/web/index.html
test -f build/site/build/web/index.js
test -f build/site/build/web/index.wasm || test -f build/site/build/web/index.wasm.gz || test -f build/site/build/web/index.wasm.parts.json
if [ "$GITHUB_EVENT_NAME" != "pull_request" ]; then
make site-release-assets-check
else
echo "Skipping release asset availability check for pull request build"
fi
env:
GH_TOKEN: ${{ github.token }}
RELEASED_WEB: ${{ inputs.released_web }}
- name: Upload Web diagnostics after a failed build
if: ${{ failure() && !inputs.released_web }}
uses: actions/upload-artifact@v4
with:
name: inbe-web-diagnostics
path: build/dist/web
if-no-files-found: warn
retention-days: 3
- name: Upload Site Artifact
uses: actions/upload-artifact@v4
with:
name: inbe-site
path: build/site
if-no-files-found: error
deploy-preview:
name: Deploy Preview
runs-on: ubuntu-latest
needs: build
if: github.event_name == 'pull_request'
steps:
- name: Download Site Artifact
uses: actions/download-artifact@v4
with:
name: inbe-site
path: build/site
- name: Deploy Preview To Cloudflare Pages
uses: cloudflare/wrangler-action@v3
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
command: pages deploy build/site --project-name=inbe --branch=${{ github.head_ref || github.ref_name }} --commit-hash=${{ github.sha }}
deploy-production:
name: Deploy Production
runs-on: ubuntu-latest
needs: build
if: github.event_name != 'pull_request' && github.ref == 'refs/heads/master'
steps:
- name: Download Site Artifact
uses: actions/download-artifact@v4
with:
name: inbe-site
path: build/site
- name: Deploy Production To Cloudflare Pages
uses: cloudflare/wrangler-action@v3
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
command: pages deploy build/site --project-name=inbe --branch=master --commit-hash=${{ github.sha }}
+117
View File
@@ -0,0 +1,117 @@
name: Publish OpenStore
on:
workflow_dispatch:
inputs:
changelog:
description: Changelog text for the OpenStore revision
required: false
default: ""
channel:
description: OpenStore channel
required: false
default: focal
release:
types: [published]
push:
tags:
- "v*"
permissions:
contents: read
jobs:
publish:
runs-on: ubuntu-latest
timeout-minutes: 90
env:
OPENSTORE_API_KEY: ${{ secrets.OPENSTORE_API_KEY }}
OPENSTORE_APP_ID: inbe
OPENSTORE_CHANNEL: ${{ github.event.inputs.channel || 'focal' }}
CHANGELOG: ${{ github.event.inputs.changelog || github.event.release.name || github.event.release.tag_name || '' }}
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
lfs: true
- name: Fetch Ziran packages
uses: ./.github/actions/ziran-packages
- name: Scan Tracked Files and History
run: |
set -euo pipefail
python3 scripts/check-secrets.py --working-tree
python3 scripts/check-secrets.py --history
- name: Install build dependencies
run: |
sudo dpkg --add-architecture arm64
# Ubuntu's archive/security mirrors only carry amd64/i386; arm64
# lives on ports.ubuntu.com. Pin the stock deb822 sources to amd64
# and add a ports source, otherwise apt-get update 404s on
# binary-arm64 and the install step fails.
sudo sed -i 's/^Types: deb$/Types: deb\nArchitectures: amd64 i386/' /etc/apt/sources.list.d/ubuntu.sources
printf 'Types: deb\nURIs: http://ports.ubuntu.com/ubuntu-ports\nSuites: noble noble-updates noble-backports noble-security\nComponents: main universe restricted multiverse\nArchitectures: arm64\nSigned-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg\n' | sudo tee /etc/apt/sources.list.d/ports-arm64.sources >/dev/null
sudo apt-get update
sudo apt-get install -y --no-install-recommends \
build-essential \
binutils-aarch64-linux-gnu \
ccache \
click \
cmake \
curl \
gcc-aarch64-linux-gnu \
jq \
make \
patchelf \
pkg-config \
tcl \
zlib1g-dev \
libcurl4-openssl-dev:arm64 \
libdrm-dev:arm64 \
libegl-dev:arm64 \
libgbm-dev:arm64 \
libgles-dev:arm64 \
libsdl2-dev:arm64 \
libssl-dev:arm64 \
zlib1g-dev:arm64
- name: Build Click package
run: |
set -euo pipefail
# Absolute paths: CMake cross builds do not resolve bare tool names
# (CMAKE_AR=aarch64-linux-gnu-ar ends up NOTFOUND and the liboqs
# archive step fails with "No such file or directory").
export AARCH64_CC="$(command -v aarch64-linux-gnu-gcc)"
export AARCH64_AR="$(command -v aarch64-linux-gnu-ar)"
export AARCH64_RANLIB="$(command -v aarch64-linux-gnu-ranlib)"
export AARCH64_PKG_CONFIG_PATH=/usr/lib/aarch64-linux-gnu/pkgconfig:/usr/share/pkgconfig
export PKG_CONFIG_LIBDIR="$AARCH64_PKG_CONFIG_PATH"
export AARCH64_RAY_SDL_CFLAGS="$(pkg-config --cflags sdl2)"
export AARCH64_RAY_SDL_LDLIBS="$(pkg-config --libs sdl2)"
export AARCH64_RAY_GL_CFLAGS="$(pkg-config --cflags libdrm gbm egl glesv2)"
export AARCH64_RAY_GL_LDLIBS="$(pkg-config --libs libdrm gbm egl glesv2)"
export AARCH64_RAY_CFLAGS="$AARCH64_RAY_SDL_CFLAGS $AARCH64_RAY_GL_CFLAGS"
export AARCH64_RAY_LDLIBS="$AARCH64_RAY_SDL_LDLIBS $AARCH64_RAY_GL_LDLIBS"
export AARCH64_RAY_SDL_INCLUDE_DIR=/usr/include/SDL2
export AARCH64_KRYON_CURL_CFLAGS="$(pkg-config --cflags libcurl)"
export AARCH64_KRYON_CURL_LDLIBS="$(pkg-config --libs libcurl)"
export AARCH64_CLICK_RUNTIME_LIBS="/usr/lib/aarch64-linux-gnu/libSDL2-2.0.so.0 /usr/lib/aarch64-linux-gnu/libcurl.so.4 /usr/lib/aarch64-linux-gnu/libssl.so.3 /usr/lib/aarch64-linux-gnu/libcrypto.so.3 /usr/lib/aarch64-linux-gnu/libdrm.so.2 /usr/lib/aarch64-linux-gnu/libgbm.so.1 /usr/lib/aarch64-linux-gnu/libEGL.so.1 /usr/lib/aarch64-linux-gnu/libGLESv2.so.2 /usr/lib/aarch64-linux-gnu/libz.so.1"
make CLICK_ARCH=arm64 click
- name: Show package contents
run: |
set -euo pipefail
click_file="$(ls -t build/dist/click/*.click | head -1)"
echo "Built $click_file"
dpkg-deb --contents "$click_file" | grep -E 'manifest.json|inbe.png|metainfo|inbe.desktop'
- name: Publish to OpenStore
run: |
set -euo pipefail
click_file="$(ls -t build/dist/click/*.click | head -1)"
scripts/publish-openstore.sh "$click_file"
File diff suppressed because it is too large. Load diff
+30
View File
@@ -8,16 +8,28 @@
.claude/
.local/
.codex/
.zcode
.agents/
.kryon-ide-state
.cache/
.ccache
*.wasm
build/
/backup/
/output/
tmp/
vendor-builds/
node_modules
*.nix-defexpr
*.npm
*.nix-profile
.claude.json
.bash_history
.env
.env.play
.secrets/
social-posts.local.json
/inbe.log
*.exe
@@ -26,6 +38,9 @@ node_modules
/main
!droid/app/src/main
droid/app/src/main/assets
droid/app/src/gplay/google-services.json
droid/*.apk
droid/*.aab
.direnv/
.node-repl-history
@@ -45,9 +60,24 @@ Captures/
Thumbs.db
*.bak
*.swp
*.core
local.properties
*.o
*.9
*.8
*.a
__pycache__/
*.py[cod]
/pro/
.kotlin/
ziran.local.toml
# Sun salutation reference videos and frames, and check images; the
# renderers write their videos and frames under build/.
design/sun-salutation/*/reference.mp4
design/sun-salutation/*/reference-*.png
design/sun-salutation/generated-video-cut/source.mp4
design/sun-salutation/girl-parts/head-layers-check.png
.wrangler/
-12
View File
@@ -1,12 +0,0 @@
[submodule "vendor/raylib"]
path = vendor/raylib
url = https://github.com/raysan5/raylib.git
[submodule "vendor/rini"]
path = vendor/rini
url = https://github.com/raysan5/rini.git
[submodule "vendor/flint"]
path = vendor/flint
url = https://github.com/waozixyz/flint
[submodule "vendor/otfchop"]
path = vendor/otfchop
url = https://github.com/waozixyz/otfchop
+88
View File
@@ -0,0 +1,88 @@
# Inbe repository rules
## Ownership and releases
- Dependencies are Ziran packages pinned in `ziran.toml`/`ziran.lock` and
linked under `build/packages/`; there is no `vendor/`. Never edit a package
checkout. Change Kryon (or any dependency) in its own repository on `master`,
commit and push there, then run `ziran update NAME` here and commit
`ziran.lock`. Run `make package-check` after dependency changes. For local
debugging, map a package to a working repository in the ignored
`ziran.local.toml`; release builds use `PACKAGE_FLAGS=--locked`.
- Add the numeric release to `CHANGELOG.md`, then run `./update_version.sh`.
The canonical macros are `APP_VERSION_STRING`, `APP_VERSION_MAJOR`,
`APP_VERSION_MINOR`, and `APP_VERSION_PATCH`; do not create aliases.
Only the GitHub Actions release workflow creates or pushes release tags.
- A new version publishes only with a passing phone check of its exact
sources: build the APK from the committed release, run
`make phone-check APK=...` with the development Moto connected through the
ThinkPad, and commit `releases/phone-checks/VERSION.json`. Changes to app
sources after the check require a new one.
- Packages declare the oldest host interface they run on (`host_api` per app
in `apps/versions.json`); the host runs `oldest_host_api` to `host_api`.
Raise `host_api` when the host interface changes and `oldest_host_api` only
when it can no longer run older packages. `make package-compat-test` runs
the node's packages in this build and new packages in the last release.
- Goal (owner, 2026-10-11): every app updates through its own package
without a new APK. Work toward it in small steps alongside requested work;
discuss larger moves with the owner first. Put app screens, rules and text
in `apps/<app>/`, not in the host under `src/`. Habits and Practices still
draw compiled host screens (see [docs/cells.md](docs/cells.md)); when work
touches one, prefer moving it into its package. Keep the host interface
small and generic (storage, network, locale, platform effects), because
each new host call needs an APK before a package can use it. Apps share
data only through the host interface, never another app's internals.
- Translate changed strings in every affected locale; no English placeholders.
- `make locale-translated-test` fails on any locale string that still equals
its English text. Translate it; add it to `tests/locale_same_as_english.txt`
only when it is a real brand name, loanword, or format string.
## Machine-checked contracts
- `make build-laws` is mandatory for native, web, and Windows artifacts;
Gradle and CMake enforce the same version and proof checks independently.
Never bypass a failed gate.
- Laws are Ziran `#law` obligations checked by `ziran check`. Retry behavior
lives in `src/app/sync_retry.zi` with its laws in `sync_retry_laws.zi`;
private-data names live in `src/storage/storage_layout.zi` with laws in
`storage_layout_laws.zi`. Change the implementation freely, but do not
weaken laws to make an implementation pass. Contract changes require
explicit product intent and separate review from implementation changes.
- Run `make proof-test sync-recovery-test version-test` for these contracts.
Coverage, trust boundaries, and the next proof migrations are described in
[docs/build-laws-plan.md](docs/build-laws-plan.md).
## Public UI and sync boundaries
- Use current Kryon calls `Text(session, TextProps)`,
`Image(session, ImageProps)`, and `Button(session, ButtonProps)` directly.
Semantic images use the same `Image` surface. No positional Text, legacy
drawing calls, alternate widgets, or thin local forwarding wrappers.
Keep meaningful compositions and gestures; use standard Checkbox and Toggle.
Run `make clean-text-api-check button-api-check` for UI changes.
- If a required widget capability is missing, implement the reusable primitive
upstream first. Do not work around it in Inbe or generated code.
- Use sync protocol v6 and the clean Kryon API; no new `Ksync` names or wrappers.
Remove old wire projections and format fallbacks as the storage and sync
modules are converted to current Ziran. Keep the current protocol and data
model in Inbe rather than adding compatibility adapters.
- Keep on-disk schema and user-data upgrade paths. Convert their implementation
to checked Ziran; do not delete a migration merely because it handles an old
database. An upgrade must preserve existing data, and its replacement needs
a test using an older database fixture before the prior path is removed.
- A `.zi` filename is not a completed migration. All owned application
behavior, including storage upgrades, must compile as current Ziran. Prefer
direct Ziran foreign imports for native libraries; migrate owned C adapters
as Ziran gains the required ABI support. Never keep application policy in C.
## Product behavior and readability
- Desktop focus loss must not pause practices, freeze animation, suppress
updates, or enter the mobile background-timer path. Preserve mobile/web
lifecycle handling and explicit user pause as separate behavior.
- Preserve hover, press, and focus transitions. Session audio controls have
44-unit targets (24-unit icons plus 10-unit padding), scaled and spaced.
- Lists starts with list tabs, without a separate title bar or dropdown.
- Use descriptive names, explicit control flow, and focused helpers. Never
compress multiple statements, branches, declarations, or checks onto one line.
Format changed source, inspect the final diff, and run `git diff --check`.
+1066
View File
File diff suppressed because it is too large. Load diff
+1
View File
@@ -0,0 +1 @@
include Makefile
+24 -17
View File
@@ -1,21 +1,28 @@
MIT License
BSD 3-Clause License
Copyright (c) 2026 waozi
Copyright (c) 2026, waozi
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
1. Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
2. Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.
3. Neither the name of the copyright holder nor the names of its contributors
may be used to endorse or promote products derived from this software without
specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+3158 -39
View File
File diff suppressed because it is too large. Load diff
+180 -59
View File
@@ -1,93 +1,214 @@
<p align="center">
<img src="assets/app/readme-banner.png" alt="Inner Breeze" width="100%">
</p>
<p align="center">
<a href="https://play.google.com/store/apps/details?id=xyz.waozi.inbe">
<img src="assets/app/badge-google-play.png" alt="Get it on Google Play" height="56">
</a>
<a href="https://f-droid.org/packages/xyz.waozi.inbe/">
<img src="assets/app/badge-f-droid.png" alt="Get it on F-Droid" height="56">
</a>
</p>
# Inner Breeze
Inner Breeze - A free, open-source guided breathing meditation app based on the Wim Hof method.
Inner Breeze is a free, open-source practice app for breathing, meditation, and
habit tracking. It works offline, stores data locally in SQLite, and can
optionally sync user-owned data through a Daochi-compatible sync server.
[Account activity](docs/ACCOUNT_ACTIVITY.md) explains persistent Telegram linking,
reopening an authorized installation, and seeing and controlling the running
practice from another device connected to the same account.
## Features
- Guided breathing sessions with visual and audio cues
- Configurable breath counts and hold times
- Session history with local storage
- 8 color themes (Forest, Ocean, Sky, Sunset, Lavender - each with light/dark variants)
- Sound effects (breath in/out, bell)
- Fullscreen mode with proper DPI scaling
- Touch-optimized UI for mobile devices
- Lumi, a local firefly companion with private chat, habit completion, practice starts, and optional todo tools
- Guided practice sessions with visual and audio cues
- Mind, Yoga, and Fitness organization for different practice routines
- Customizable breathing sessions, meditation timers, and habit counters
- Habit tracking with session history and linked practice counts
- Local import and export support
- Theme customization with light and dark variants
- Repeat the last completed practice using its current settings
## Building
## Build
inbe uses [raylib](https://github.com/raysan5/raylib) and requires a Nix development environment.
The build checks Inbe's laws with the Ziran compiler (`ziran check`); no
separate proof tool is needed. The build host needs Python 3 and the platform's
native build dependencies. See [build laws](docs/build-laws-plan.md) for the
checked behavior.
### Prerequisites
Build commands fetch the dependencies pinned in `ziran.lock`.
- [Nix](https://nixos.org/download.html) with flakes enabled
- For Android builds: Java 17+ JDK
### Native Build
Build and run the desktop app:
```bash
# Enter the development shell
nix develop
# Build for your current platform (Linux x86_64/aarch64)
make
# Run
./build/linux/inbe-linux-$(uname -m)
make native
make run
```
### Cross-Platform Builds
Run the terminal backend:
```bash
# Linux (both architectures)
make linux
make tui
```
# Windows (from Linux)
make windows
Build Android artifacts:
# Android APK
make android
```bash
make android-debug
PASSWORD=your-keystore-password make android-release
PASSWORD=your-keystore-password make android-bundle
```
# WebAssembly
Build the web app:
```bash
make web
make site
```
### Android Emulator Testing
Run the test suite:
For automated testing with camera notch (cutout) support:
[Custom appearance](docs/appearance.md) describes live KSS editing, per-app
customizations, reset, and Lumi's appearance tools.
```bash
# Enter the development shell and run everything automatically
nix develop
./scripts/emulator.sh # Creates AVD, launches emulator, builds & runs app
make test
make visual-test
```
This single script handles:
- AVD creation (if missing)
- Emulator launch
- APK build
- App installation and launch
CI and releases require the visual gate. It uses disposable profiles and
private Xvfb displays to check glyph pixels, every zoom from 50% to 250%,
selected navigation and app cards in all 13 palettes and both color modes,
enlarged Appearance labels, shipped locales, and page interactions. It keeps
screenshots and logs under `build/`; CI uploads them even when a check fails.
Every visual suite runs even if an earlier suite fails. The complete result,
including hashes of the tested binary and bundles, is in
`build/visual-test/results.json`; changing an artifact during the gate fails it.
Its system tools are listed in `.github/apt/test-packages.txt`.
The AVD is configured with:
- **Device**: Pixel 6 (punch-hole camera style)
- **Display**: 1080×2400 @ 420dpi
- **RAM**: 4GB with hardware acceleration
- **Cutout**: Punch-hole camera for testing window insets
Store captures cover Apps, Lumi, Practices, Habits, Lists, Diary, Appearance,
and supporting pages in phone, 7-inch tablet, 10-inch tablet, and Chromebook
layouts. Capture runs use disposable profiles on private Xvfb displays and
check viewport sizes, nonblank rendering, and expected screen text. They do
not copy images into the store listing until visual review is recorded:
### Platform-Specific Notes
```bash
make native cells PACKAGE_FLAGS=--locked
make screenshot
# Inspect build/screenshots/review-*.jpg and the full-size PNGs.
make screenshot-review REVIEWER="your name"
make screenshot-export
make play-preflight
python3 scripts/upload-play-screenshots.py
```
- **Linux**: Requires SDL2 runtime libraries
- **Windows**: Standalone executable, no dependencies
- **Android**: Requires Android NDK in the development shell
- **Web**: Requires Emscripten toolchain
The scene list in `scripts/screenshot-scenes.json` selects eight store images
per phone/tablet type while retaining all 64 captures for review. Changing
source, scene definitions, Kryon, binaries, bundles, or screenshot bytes
invalidates publishing preflight. A historical capture can still be visually
reviewed and used for a review video; Play requires a fresh capture of the
current locked build. Local Kryon preview builds cannot pass Play preflight.
Preflight checks every dependency against its locked commit and runs a fresh
source check, so reused incremental preview outputs cannot hide missing imports.
Keep credentials in the ignored `.env.play` using `.env.play.example`.
The uploader defaults to validating and discarding its remote edit. After
review, `PLAY_COMMIT=1 python3 scripts/upload-play-screenshots.py` validates
and commits the listing; a failed edit is discarded. This updates listing
assets only. App releases follow the numeric changelog, `update_version.sh`,
and the existing release workflow, which builds and publishes the signed
Google Play AAB and owns release tags. A local build or commit is not a Play
deployment.
## Project Structure
`make lumi-promo` renders a narrated portrait review MP4 from the exact
reviewed phone captures and the generated artwork in `design/lumi-promo/`.
Lumi uses eight generated wing-flapping frames, flies to each screen and settles
facing the app while a narrator explains it. Lumi turns with the flight direction
and flips inward after arriving on the right. Wings flap continuously using
distinct poses; each app screen stays in a fixed position without sliding in.
The audio contains speech only, without music or sound effects. Scene timings
expand to fit the complete spoken lines.
`make lumi-narration` generates the stored narrator clips through OpenRouter
using a locally configured `OPENROUTER_API_KEY`; unchanged clips are reused.
The voice, script and provider options are in `design/lumi-promo/narration.json`.
The chat example runs real local theme actions; the surrounding forest and
glow are marketing effects. Inspect `build/lumi-promo/storyboard.jpg` and
`build/lumi-promo/inner-breeze-lumi-review.mp4` before using it publicly.
Google Play's preview video field takes a YouTube URL, so the MP4 needs an
approved public or unlisted YouTube upload with embedding enabled before it can
be added to the listing. Pass `--video-url https://www.youtube.com/watch?v=VIDEO_ID`
to the listing uploader, or configure `PLAY_VIDEO_URL`. To update only the
video, use `PLAY_COMMIT=1 python3 scripts/upload-play-screenshots.py --video-only --video-url URL`.
The approved [Lumi preview](https://www.youtube.com/watch?v=XESpbMRaz4o) is
available on YouTube and configured in the English Google Play listing.
Screenshot publishing still requires the complete current
capture, visual review, export and locked build preflight.
- `src/` - Main application code (raylib frontend)
- `libinbe/` - Core meditation logic (platform-agnostic)
- `assets/` - Images and sounds
- `themes/` - Color theme definitions
- `droid/` - Android build configuration
- `vendor/raylib/` - raylib submodule
To test sync and recovery against an isolated local server:
```bash
make sync-server-test DAOCHI_BIN=/absolute/path/to/daochi
```
This uses disposable client databases and a loopback server; see
[web and sync test coverage](WEB_RENDERER_TESTS.md) for details.
The Apps picker, independent ZIB packages, update settings, account choices and
publisher setup are described in [app packages](docs/cells.md).
Native binaries are written to `build/bin/<platform>/`. Release artifacts are
written under `build/dist/`.
Dependencies, including Kryon and the Ziran toolchain, are pinned in
`ziran.lock`. `make` fetches them into the Ziran package cache and links them
under `build/packages/`; `sh scripts/packages.sh` does the same by hand.
Builders that supply the sources themselves need no network: put Git checkouts
containing the locked commits (including Kryon's `raylib` submodule) in
`$ZIRAN_PACKAGE_SOURCES`, or declare them as F-Droid srclibs, which are found
in `../srclib` automatically.
To debug Inbe against the root Kryon checkout, map it in an ignored
`ziran.local.toml`:
```toml
[overrides]
kryon = "../../kryonlabs/kryon"
```
Use this only for local debugging. Permanent Kryon fixes should be committed in
the root Kryon repository and then brought into Inbe with `ziran update kryon`.
## Project Layout
- `src/` - app code
- `assets/` - images, fonts, and sounds
- `locales/` - translations
- `droid/` - Android project
- `site/` - website
- `ziran.toml`, `ziran.lock` - pinned Ziran toolchain and dependencies
## Support
Monero:
```text
48ms5LfFrPJ2LUvqP9Mm5BhDSnZnqu14jB8XpAukw3jDBKxRAxYvq3k4fEwXY7kCY3LrtycMUayJZR1YJuyvJHCDCcyw6pA
```
Bitcoin:
```text
bc1qxzcetg50f6epgddc09n82xqn3zswlmk44235y5
```
Lightning:
```text
[email protected]
```
## License
MIT - see [LICENSE](LICENSE)
BSD 3-Clause. See [LICENSE](LICENSE).
+78
View File
@@ -0,0 +1,78 @@
# Inner Breeze TODO
Marketing plan from 2026-10-02. Tick items off as they land and add a date or
link where it helps. Inner Breeze's edge: free, no ads, no account, offline,
open source, against breathing apps that charge $60–100 a year. It is also
visual (painted practice art, the Sun Salutation characters), so put effort
where those two things matter.
## Store listing
- [x] Rewrite the Play/F-Droid short and full descriptions around what people
search for (Wim Hof breathing, box and 4-7-8 breathing, Sun Salutation,
meditation timer, habit tracker, no ads, no account) in en-US, de-DE,
es-ES, fr-FR and pt-BR. (2026-10-02)
- [x] Regenerate the store screenshots from the current app at real phone and
tablet scale: painted practice cards, a Sun Salutation pose and showcase
habits (`make screenshot`). (2026-10-02)
- [ ] Publish the new text and screenshots on Google Play. F-Droid reads them
from this repo at the next release. `scripts/upload-play-screenshots.py`
uploads images only; the text goes in through Play Console.
- [ ] Make a new 1024x500 feature graphic in the painted style. The current
one is the old pixel art.
- [ ] Add a one-line caption to each store screenshot ("Wim Hof-style
rounds", "Follow the Sun Salutation").
- [ ] Keep "Wim Hof" out of the app title and icon. Wim Hof Method is a
registered trademark; a description that says "based on the Wim Hof
Method" is fine.
- [ ] Fix the Portuguese app string "Saudacao ao sol" to "Saudação ao sol".
- [ ] Give each channel its own tagged Play link, for example
`https://play.google.com/store/apps/details?id=xyz.waozi.inbe&referrer=utm_source%3Dreddit`,
and check Play Console's acquisition report every month.
## Short vertical video (best reach for new users)
- [ ] Record 30–60 second "breathe with me" sessions: a Wim Hof round, box
breathing, a Sun Salutation sequence.
- [ ] Post them on YouTube Shorts, TikTok and Instagram Reels. Reels can be
posted by hand from the phone; the Meta API hold only blocks automation.
- [ ] Finish Social's YouTube path: approval in Telegram and a background
upload worker (yuebot `plugins/social`).
- [ ] Optional: Pinterest pins for Sun Salutation and breathing technique
guides, which keep bringing traffic for a long time.
## Reddit
Read each subreddit's self-promotion rules first. Post as the developer, show
the app, and stay to answer comments.
- [ ] For users: r/WimHofMethod, r/breathwork, r/Meditation, r/yoga
- [ ] For the free/open-source angle: r/androidapps, r/fossdroid,
r/opensource, r/degoogle, r/linux
## Website (inbe.waozi.xyz)
- [ ] One page per technique with the `?mini` embed, so visitors practise on
the page: box breathing timer, 4-7-8 breathing, Wim Hof-style breathing,
Sun Salutation steps, meditation timer.
- [ ] Put the Play and F-Droid links under each embed.
## Directories and launches (one-time)
- [ ] AlternativeTo: list Inner Breeze as an alternative to Calm, Headspace,
Breathwrk and Prana Breath.
- [ ] Flathub: check whether `packaging/flatpak/xyz.waozi.inbe.yml` is
published, and submit it if not.
- [ ] Open-source app lists (awesome lists, F-Droid collections).
- [ ] Product Hunt launch.
- [ ] One Show HN about how it is built: the whole app in Ziran and Kryon,
running on Android, web, Linux and Windows. This brings developers and
GitHub stars, not meditators, so do it once.
## Channels to keep small
- Facebook and Threads Pages: the Meta API is on hold (no business
verification). Social is moving Facebook to the ThinkPad's signed-in
Chromium instead.
- X: the audience is mostly developers; keep it for Ziran and Kryon.
- Telegram @lotusinbe: keeps current users engaged but does not find new ones.
+37
View File
@@ -0,0 +1,37 @@
# Web Renderer Tests
Inbe ships the Kryon Canvas2D renderer. `web-canvas` is an alias for `web`.
| Target | Renderer | Purpose |
|---|---|---|
| `make web` | Kryon Canvas2D | Shipping Emscripten/WASM build with liboqs sync support; WebGL is not required. |
| `make web-canvas` | Kryon Canvas2D | Alias for the shipping web build. |
| `make web-compare-test` | Kryon Canvas2D | Builds the web target and runs its smoke suite. |
| `make web-side-by-side-test` | Kryon Canvas2D | Builds, tests, and serves a preview page. |
The shared smoke test is `scripts/web-smoke-test.mjs`:
- `WEB_SMOKE_RENDERER=canvas` requires a live Canvas2D context and nonblank pixels.
- It requires the app runtime-ready hook, a cycling render loop, IDBFS idle/flush behavior, and app settings persistence.
- It verifies sync-key import, practice startup, and habit navigation without reloading.
- The Chromium path also completes a one-minute meditation through pause and
background elapsed time, saves its mood, and verifies the saved check-in after reload.
Server integration:
- Run `make sync-server-test DAOCHI_BIN=/absolute/path/to/daochi` with a built
Daochi server. The runner starts a disposable loopback server and two isolated
client databases, and retains test data and logs in a printed temporary directory.
- It checks offline recovery, a lost upload response, retry without duplicates,
conflicting mood edits, backup restoration, and synced deletion. It uses Inbe's
native storage and sync code; browser transport remains covered by the web smoke suite.
For a manual preview, run:
```bash
make web-side-by-side-test
```
The script prints a local preview URL. Use
`scripts/web-side-by-side-test.sh --no-serve` for build-and-smoke validation
without starting the preview server.
+56
View File
@@ -0,0 +1,56 @@
# Changelog
## [1.1.9] - 2026-10-11
### Changed
- Scrollbars use your theme's colours and show how much of the page is in view.
## [1.1.8] - 2026-10-10
### Added
- Correct the spelling of an entry with one button. Inner Breeze sends the entry to the Waozi node, which returns it with only misspelled words corrected. It uses the same daily online allowance as Lumi.
- Undo and redo buttons, so a correction or any other change can be taken back.
### Changed
- A title bar shows the date in the middle, between the previous and next day. Today and the calendar sit together on the left, and the entry's tools are compact buttons on the right, leaving more room for writing.
- The entry reaches the bottom of the screen; a notice takes room below it only while it is shown.
## [1.1.7] - 2026-10-10
### Changed
- When a photo is not on this device, for example because your sync node does not store photos, the entry shows where the photo is instead of an empty space.
## [1.1.6] - 2026-10-10
### Changed
- Show **bold** text as bold. The ** marks appear only on the line you are editing, so you can still change them.
## [1.1.5] - 2026-10-10
### Changed
- Save your writing quietly, without a "Waiting to save…" note below the entry.
## [1.1.4] - 2026-10-08
- Keep date limits working when Diary updates on existing Inbe installations.
## [1.1.3] - 2026-10-08
- Keep the journal on today or earlier dates and show an empty editor without a writing prompt.
- Open the same account-synced Diary from Inner Breeze and Harmony, preserving earlier entries and photos.
## [1.1.2] - 2026-10-07
- Keep app labels and content visible after updating Inner Breeze.
## [1.1.1] - 2026-10-06
- Use Cells consistently in the cell and its independently delivered package.
## [1.1.0] - 2026-10-06
- The journal editor and calendar can update independently through the Diary package.
- Attach and browse photos in daily entries, including photos imported from Harmony. Removing an attachment preserves its original private file.
## [1.0.0] - 2026-10-06
- First independently versioned Diary module.
+405
View File
@@ -0,0 +1,405 @@
// Date arithmetic and per-day documents moved from Harmony's original Diary.
// File effects belong to the host; this bundle has no OS or database access.
#import "json_scan"
#import, file "diary_view.zi";
#import, file "diary_date.zi";
#import "text"
#import "vec"
#import "byte_text_linux"
#import, file "../../src/cells/diary_types.zi";
#import, file "../../src/cells/module_types.zi";
#import, file "../../src/core/types.zi";
host_api :: #system_library "host_api";
ReadDiaryHost :: () -> DiaryMessage #foreign host_api;
WriteDiaryHost :: (message: DiaryMessage) #foreign host_api;
ReadDiaryFileHost :: (name: string) -> DiaryFileResult #foreign host_api;
SaveDiaryFileHost :: (name: string, data: string) -> bool #foreign host_api;
DiaryClockHost :: () -> string #foreign host_api;
Today :: () -> Date {
clock := DiaryClockHost()
if clock.count < 10 {
return Date.{}
}
return ParseDate(clock[:10])
}
Filename :: (date: Date) -> string {
out: Vec(u8)
BuilderPrint(*out, "%.json", ISO(date))
return BuilderFinish(out)
}
Decode :: (value: string, at: s32) -> string {
bytes: Vec(u8)
for index: 0..value.count {
if !VecPush(bytes, cast(u8)0) {
VecFree(bytes);
return ""
}
}
count := ReadStringText(value, at, VecSlice(bytes, 0, bytes.count))
if count < 0 {
VecFree(bytes);
return ""
}
out: Vec(u8)
BuilderPrint(*out, "%", TextFromBytes(VecSlice(bytes, 0, count)))
VecFree(bytes)
return BuilderFinish(out)
}
Json :: (out: *Vec(u8), value: string) {
BuilderPrint(out, "\"")
for index: 0..value.count - 1 {
byte := value[index]
if byte == cast(u8)34 {
BuilderPrint(out, "\\\"")
}
else if byte == cast(u8)92 {
BuilderPrint(out, "\\\\")
}
else if byte == cast(u8)10 {
BuilderPrint(out, "\\n")
}
else if byte == cast(u8)13 {
BuilderPrint(out, "\\r")
}
else if byte == cast(u8)9 {
BuilderPrint(out, "\\t")
}
else if byte < cast(u8)32 {
BuilderPrint(out, " ")
}
else {
BuilderPrint(out, "%", value[index:index + 1])
}
}
BuilderPrint(out, "\"")
}
Document :: (message: DiaryMessage) -> string {
out: Vec(u8)
BuilderPrint(*out, "{\"version\":1,\"date\":")
Json(*out, ISO(Date.{message.year, message.month, message.day}))
BuilderPrint(*out, ",\"text\":")
Json(*out, message.text)
BuilderPrint(*out, ",\"photos\":")
photos := FieldAt(message.document, 0, "photos")
if photos >= 0 && ArrayCount(message.document, photos) >= 0 {
end := ValueEnd(message.document, photos, 0)
BuilderPrint(*out, "%", message.document[photos:end])
} else {
BuilderPrint(*out, "[]")
}
BuilderPrint(*out, "}")
return BuilderFinish(out)
}
SafePhoto :: (file: string) -> bool {
if file.count == 0 || file.count > 200 || file == "." || file == ".." {
return false
}
for byte: file {
if !((byte >= cast(u8)48 && byte <= cast(u8)57) ||
(byte >= cast(u8)97 && byte <= cast(u8)122) ||
byte == cast(u8)45 || byte == cast(u8)46) {
return false
}
}
return true
}
PhotoSelection :: (message: DiaryMessage) -> DiaryMessage {
rows := FieldAt(message.document, 0, "photos")
message.photo_count = ArrayCount(message.document, rows)
if message.photo_count < 0 {
message.photo_count = 0
}
message.photo_file = ""
message.photo_name = ""
if message.photo_count == 0 {
message.photo_index = 0
return message
}
if message.photo_index < 0 || message.photo_index >= message.photo_count {
message.photo_index = 0
}
row := ElementAt(message.document, rows, message.photo_index)
message.photo_file = Decode(message.document, FieldAt(message.document, row, "file"))
message.photo_name = Decode(message.document, FieldAt(message.document, row, "name"))
return message
}
PhotoChange :: (message: DiaryMessage, remove: bool) -> DiaryMessage {
if !OnOrBefore(Date.{message.year, message.month, message.day}, Today()) ||
message.load_error || (!remove && !SafePhoto(message.attachment_file)) {
message.succeeded = false
return message
}
rows := FieldAt(message.document, 0, "photos")
count := ArrayCount(message.document, rows)
out: Vec(u8)
BuilderPrint(*out, "{\"photos\":[")
written: s32 = 0
for index: cast(s32)0..count - 1 {
if remove && index == message.photo_index {
continue
}
row := ElementAt(message.document, rows, index)
end := ValueEnd(message.document, row, 0)
if written > 0 { BuilderPrint(*out, ",") }
BuilderPrint(*out, "%", message.document[row:end])
written += 1
}
if !remove {
if written > 0 { BuilderPrint(*out, ",") }
BuilderPrint(*out, "{\"file\":")
Json(*out, message.attachment_file)
BuilderPrint(*out, ",\"name\":")
Json(*out, message.attachment_name)
BuilderPrint(*out, "}")
message.photo_index = written
}
BuilderPrint(*out, "]}")
previous := message
message.document = BuilderFinish(out)
message.saved = false
message = Save(message)
if !message.saved {
previous.succeeded = false
return previous
}
// Removing a reference keeps its private original bytes. A damaged entry
// or another imported document can still refer to that same photo.
return PhotoSelection(message)
}
Load :: (message: DiaryMessage, date: Date) -> DiaryMessage {
if !OnOrBefore(date, Today()) {
message.succeeded = false;
return message
}
loaded := ReadDiaryFileHost(Filename(date))
message.year = date.year
message.month = date.month
message.day = date.day
message.text = ""
message.document = loaded.data
message.photo_index = 0
message.photo_count = 0
message.photo_file = ""
message.photo_name = ""
message.cursor = 0
message.anchor = 0
message.load_error = !loaded.succeeded
message.saved = true
if loaded.missing {
message.load_error = false;
return message
}
version := ReadNumber(loaded.data, FieldAt(loaded.data, 0, "version"))
day := Decode(loaded.data, FieldAt(loaded.data, 0, "date"))
text := FieldAt(loaded.data, 0, "text")
if !version.valid || version.value != 1.0 || day != ISO(date) || text < 0 ||
loaded.data[text] != cast(u8)34 ||
ArrayCount(loaded.data, FieldAt(loaded.data, 0, "photos")) < 0 ||
Space(loaded.data, ValueEnd(loaded.data, 0, 0)) != loaded.data.count {
message.load_error = true
return message
}
rows := FieldAt(loaded.data, 0, "photos")
for index: cast(s32)0..ArrayCount(loaded.data, rows) - 1 {
row := ElementAt(loaded.data, rows, index)
file := Decode(loaded.data, FieldAt(loaded.data, row, "file"))
label := FieldAt(loaded.data, row, "name")
if !SafePhoto(file) || label < 0 || loaded.data[label] != cast(u8)34 {
message.load_error = true
return message
}
}
message.text = Decode(loaded.data, text)
return PhotoSelection(message)
}
Save :: (message: DiaryMessage) -> DiaryMessage {
if message.load_error || !OnOrBefore(Date.{message.year, message.month, message.day}, Today()) {
message.succeeded = false;
return message
}
if message.saved {
return message
}
message.document = Document(message)
message.saved = SaveDiaryFileHost(Filename(Date.{message.year, message.month, message.day}),
message.document)
message.succeeded = message.saved
return message
}
Apply :: (message: DiaryMessage) -> DiaryMessage {
message.succeeded = true
if message.action == DIARY_ROUTE {
message.succeeded = message.screen == ScreenDiary
return message
}
if message.action == DIARY_LOAD {
date := Date.{message.year, message.month, message.day}
if !Valid(date) {
date = Today()
}
return Load(message, date)
}
if message.action == DIARY_SAVE {
return Save(message)
}
if message.action == DIARY_ATTACH {
return PhotoChange(message, false)
}
if message.action == DIARY_EDIT {
if !OnOrBefore(Date.{message.year, message.month, message.day}, Today()) ||
message.load_error || message.edit_start < 0 ||
message.edit_end < message.edit_start || message.edit_end > message.text.count {
message.succeeded = false
return message
}
out: Vec(u8)
BuilderPrint(*out, "%", message.text[0:message.edit_start])
BuilderPrint(*out, "%", message.replacement)
BuilderPrint(*out, "%", message.text[message.edit_end:message.text.count])
message.text = BuilderFinish(out)
message.cursor = message.edit_start + cast(s32)message.replacement.count
message.anchor = message.cursor
message.saved = false
return message
}
if message.action != DIARY_CONTROL {
message.succeeded = false;
return message
}
if message.control == 29008 || message.control == 29009 {
if message.photo_count > 0 {
message.photo_index = (message.photo_index + message.photo_count +
(ifx message.control == 29008 then -1 else 1)) % message.photo_count
}
return PhotoSelection(message)
}
if message.control == 29010 {
if message.photo_count > 0 {
return PhotoChange(message, true)
}
return message
}
if message.control == 29013 {
clock := DiaryClockHost()
if message.load_error || message.calendar || clock.count < 16 {
message.succeeded = false
return message
}
stamp: Vec(u8)
BuilderPrint(*stamp, "**%**", clock[11:16])
message.replacement = BuilderFinish(stamp)
message.edit_start = ifx message.cursor < message.anchor then message.cursor else message.anchor
message.edit_end = ifx message.cursor > message.anchor then message.cursor else message.anchor
message.action = DIARY_EDIT
return Apply(message)
}
if message.control == 29003 {
message.calendar = !message.calendar
message.month_year = message.year
message.month_number = message.month
} else if message.control == 29011 || message.control == 29012 {
previous_year := message.month_year
previous_month := message.month_number
message.month_number += ifx message.control == 29011 then -1 else 1
if message.month_number < 1 {
message.month_number = 12;
message.month_year -= 1
}
if message.month_number > 12 {
message.month_number = 1;
message.month_year += 1
}
if !OnOrBefore(Date.{message.month_year, message.month_number, 1}, Today()) {
message.month_year = previous_year
message.month_number = previous_month
message.succeeded = false;
return message
}
} else {
before := message
date := Date.{before.year, before.month, before.day}
if message.control == 29001 {
date = Next(date, -1)
}
else if message.control == 29002 {
date = Next(date, 1)
}
else if message.control == 29004 {
date = Today()
}
else if message.control >= 29101 && message.control <= 29131 {
date = Date.{message.month_year, message.month_number, message.control - 29100}
} else {
message.succeeded = false;
return message
}
if !OnOrBefore(date, Today()) {
message.succeeded = false
return message
}
message = Save(message)
if !message.saved && !message.load_error {
return message
}
message = Load(message, date)
message.calendar = false
}
if message.calendar {
if !Valid(Date.{message.month_year, message.month_number, 1}) {
message.succeeded = false
message.calendar = false
return message
}
message.month_days = Days(message.month_year, message.month_number)
message.month_weekday = Weekday(Date.{message.month_year, message.month_number, 1})
for day: cast(s32)0..cast(s32)31 {
message.marks[day] = cast(u8)0
}
for day: cast(s32)1..Days(message.month_year, message.month_number) {
file := ReadDiaryFileHost(Filename(Date.{message.month_year, message.month_number, day}))
text := FieldAt(file.data, 0, "text")
has_text := text >= 0 && text + 1 < file.data.count && file.data[text + 1] != cast(u8)34
message.marks[day] = ifx has_text ||
ArrayCount(file.data, FieldAt(file.data, 0, "photos")) > 0 then cast(u8)1 else cast(u8)0
}
}
return message
}
#program_export "DiaryMain"
Main :: () -> s32 {
message := ReadDiaryHost()
if message.abi != MODULE_ABI {
return -1
}
if message.action == MODULE_IDENTIFY {
return MODULE_DIARY
}
if message.action == DIARY_FRAME {
message.succeeded = true
message = DiaryView(message, DiaryObserve(), Today())
if message.action != DIARY_FRAME {
message = Apply(message)
}
// A quiet editor saves after its typing delay; file errors stay visible.
if !message.saved && DiarySaveDue() {
message = Save(message)
}
WriteDiaryHost(message)
} else {
WriteDiaryHost(Apply(message))
}
return 0
}
+124
View File
@@ -0,0 +1,124 @@
#import "text"
#import "vec"
#import "byte_text_linux"
Date :: struct {
year: s32;
month: s32;
day: s32;
}
Leap :: (year: s32) -> bool {
return year % 4 == 0 && (year % 100 != 0 || year % 400 == 0)
}
Days :: (year: s32, month: s32) -> s32 {
lengths: [12]s32 = .[31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31]
if month < 1 || month > 12 {
return 0
}
if month == 2 && Leap(year) {
return 29
}
return lengths[month - 1]
}
Valid :: (date: Date) -> bool {
return date.year >= 1 && date.year <= 9999 && date.month >= 1 &&
date.month <= 12 && date.day >= 1 && date.day <= Days(date.year, date.month)
}
Next :: (date: Date, delta: s32) -> Date {
value := date
if delta > 0 {
value.day += 1
if value.day > Days(value.year, value.month) {
value.day = 1
value.month += 1
if value.month > 12 {
value.month = 1;
value.year += 1
}
}
}
if delta < 0 {
value.day -= 1
if value.day < 1 {
value.month -= 1
if value.month < 1 {
value.month = 12;
value.year -= 1
}
value.day = Days(value.year, value.month)
}
}
return ifx Valid(value) then value else date
}
Weekday :: (date: Date) -> s32 {
year := date.year
if date.month < 3 {
year -= 1
}
offsets: [12]s32 = .[0, 3, 2, 5, 0, 3, 5, 1, 4, 6, 2, 4]
return (year + year / 4 - year / 100 + year / 400 +
offsets[date.month - 1] + date.day + 6) % 7
}
ISO :: (date: Date) -> string {
bytes: [10]u8
values: [3]s32 = .[date.year, date.month, date.day]
starts: [3]s32 = .[0, 5, 8]
lengths: [3]s32 = .[4, 2, 2]
bytes[4] = cast(u8)45
bytes[7] = cast(u8)45
for index: cast(s32)0..cast(s32)2 {
number := values[index]
for digit: cast(s32)0..lengths[index] - 1 {
bytes[starts[index] + lengths[index] - digit - 1] = cast(u8)(48 + number % 10)
number /= 10
}
}
out: Vec(u8)
BuilderPrint(*out, "%", TextFromBytes(bytes[:]))
return BuilderFinish(out)
}
ParseDate :: (value: string) -> Date {
date: Date
if value.count != 10 || value[4] != cast(u8)45 || value[7] != cast(u8)45 {
return date
}
for index: cast(s32)0..cast(s32)9 {
if index == 4 || index == 7 {
continue
}
if value[index] < cast(u8)48 || value[index] > cast(u8)57 {
return Date.{}
}
number := cast(s32)value[index] - 48
if index < 4 {
date.year = date.year * 10 + number
}
else if index < 7 {
date.month = date.month * 10 + number
}
else {
date.day = date.day * 10 + number
}
}
return ifx Valid(date) then date else Date.{}
}
OnOrBefore :: (date: Date, limit: Date) -> bool {
if !Valid(date) || !Valid(limit) {
return false
}
if date.year != limit.year {
return date.year < limit.year
}
if date.month != limit.month {
return date.month < limit.month
}
return date.day <= limit.day
}
+393
View File
@@ -0,0 +1,393 @@
#import "geometry"
#import, file "diary_date.zi";
#import "image_props"
#import "image_widget"
#import "layout"
#import "text_props"
#import "text_widget"
#import "text_input_props"
#import "text_area_widget"
#import "button_props"
#import "button_widget"
#import "control_props"
#import "drawing_props"
#import "box_props"
#import "box_widget"
#import "text_align"
#import "text"
#import "vec"
#import "byte_text_linux"
#import "scroll_props"
#import "scroll_widget"
#import "tree"
#import, file "../../src/cells/diary_types.zi";
#import, file "../../src/cells/diary_ui_types.zi";
using ImageFit;
using TextAlign;
using TextWrap;
using ButtonTone;
using ButtonEmphasis;
host_api :: #system_library "host_api";
ReadDiaryUiHost :: () -> DiaryUiFrame #foreign host_api;
WriteDiaryUiHost :: (frame: DiaryUiFrame) #foreign host_api;
DiaryLocaleHost :: (key: string) -> string #foreign host_api;
state: DiaryMessage;
frame: DiaryUiFrame;
pending: bool;
DIARY_PREVIOUS_ICON :: "S1.8rr:M15 5L8 12L15 19"
DIARY_NEXT_ICON :: "S1.8rr:M9 5L16 12L9 19"
DIARY_CALENDAR_ICON :: "S1.6rr:M4 5H20V20H4ZM4 10H20M8 3V7M16 3V7"
DIARY_TIME_ICON :: "S1.6rr:M21 12C21 16.97 16.97 21 12 21C7.03 21 3 16.97 3 12C3 7.03 7.03 3 12 3C16.97 3 21 7.03 21 12ZM12 7V12L15.5 14"
DIARY_PHOTO_ICON :: "S1.6rr:M3 5H21V19H3ZM3 16L8 11L13 16L16 13L21 18M17.5 8.5C17.5 9.33 16.83 10 16 10C15.17 10 14.5 9.33 14.5 8.5C14.5 7.67 15.17 7 16 7C16.83 7 17.5 7.67 17.5 8.5Z"
DIARY_UNDO_ICON :: "S1.8rr:M9 14L4 9L9 4M4 9H14C17.31 9 20 11.69 20 15C20 18.31 17.31 21 14 21H11"
DIARY_REDO_ICON :: "S1.8rr:M15 14L20 9L15 4M20 9H10C6.69 9 4 11.69 4 15C4 18.31 6.69 21 10 21H13"
DIARY_SPELLING_ICON :: "S2rr:M3 14L7.5 3L12 14M4.8 10H10.2M12 17L15.5 20.5L21.5 13"
DiaryObserve :: () -> DiaryUiFrame {
return ReadDiaryUiHost()
}
DiarySaveDue :: () -> bool {
return frame.now >= frame.save_at
}
// Markdown bold reads as bold text. Its ** markers stay in the entry but are
// hidden, except on the lines holding the caret or a selection, where they
// can be edited directly.
DIARY_EMPHASIS_MAX :: 256
emphasis_hidden: [DIARY_EMPHASIS_MAX * 2]TextRange;
emphasis_strong: [DIARY_EMPHASIS_MAX]TextRange;
emphasis_hidden_count: s32;
emphasis_strong_count: s32;
DiaryEmphasis :: (value: string, cursor: s32, anchor: s32, editing: bool) {
emphasis_hidden_count = 0
emphasis_strong_count = 0
first := ifx cursor < anchor then cursor else anchor
last := ifx cursor < anchor then anchor else cursor
line: s32 = 0
while line <= cast(s32)value.count && emphasis_strong_count < DIARY_EMPHASIS_MAX {
end := line
while end < cast(s32)value.count && value[end] != cast(u8)10 { end += 1 }
active := editing && last >= line && first <= end
at := line
while at + 1 < end && emphasis_strong_count < DIARY_EMPHASIS_MAX {
if value[at] != cast(u8)42 || value[at + 1] != cast(u8)42 {
at += 1
continue
}
close := at + 2
while close + 1 < end && (value[close] != cast(u8)42 || value[close + 1] != cast(u8)42) {
close += 1
}
if close + 1 >= end {
break
}
if close > at + 2 {
emphasis_strong[emphasis_strong_count] = TextRange.{.start = at + 2, .end = close}
emphasis_strong_count += 1
if !active {
emphasis_hidden[emphasis_hidden_count] = TextRange.{.start = at, .end = at + 2}
emphasis_hidden[emphasis_hidden_count + 1] = TextRange.{.start = close, .end = close + 2}
emphasis_hidden_count += 2
}
}
at = close + 2
}
line = end + 1
}
}
DateTitle :: (year: s32, month: s32, day: s32) -> string {
if month < 1 || month > 12 { return "" }
keys: [12]string = .["habit_month_1", "habit_month_2", "habit_month_3",
"habit_month_4", "habit_month_5", "habit_month_6", "habit_month_7",
"habit_month_8", "habit_month_9", "habit_month_10", "habit_month_11", "habit_month_12"]
month_text := DiaryLocaleHost(keys[month - 1])
title: Vec(u8)
eastern := month_text.count >= 2 && month_text[:2] == "%d"
if day > 0 && !eastern { BuilderPrint(*title, "% ", day) }
index: s64 = 0
while index < month_text.count {
if index + 1 < month_text.count && month_text[index:index + 2] == "%d" {
BuilderPrint(*title, "%", year)
index += 2
} else {
BuilderPrint(*title, "%", month_text[index:index + 1])
index += 1
}
}
if day > 0 && eastern {
BuilderPrint(*title, "%", day)
suffix := ifx month_text[month_text.count - 3:] == "월" then "일" else "日"
BuilderPrint(*title, "%", suffix)
}
return BuilderFinish(title)
}
HasWords :: (text: string) -> bool {
for byte: text {
if byte != cast(u8)32 && byte != cast(u8)10 && byte != cast(u8)13 && byte != cast(u8)9 {
return true
}
}
return false
}
Scale :: (value: s32) -> s32 {
return cast(s32)(cast(float32)value * frame.scale)
}
FinishView :: () -> DiaryMessage {
WriteDiaryUiHost(frame)
return state
}
// A button with an icon shows only the icon; its label names it for
// accessibility.
DiaryAction :: ( id: s32, label: string, bounds: Rectangle, enabled: bool = true,
icon: string = "", selected: bool = false, loading: bool = false) {
if Button(frame.session, ButtonProps.{.id = id, .bounds = bounds,
.label = label, .disabled = !enabled, .selected = selected, .loading = loading,
.icon_shape = icon, .icon_only = icon != "", .fit_content = true,
.tone = cast(ButtonTone)ButtonToneNeutral,
.emphasis = cast(ButtonEmphasis)(ifx icon != "" then ButtonEmphasisGhost else ButtonEmphasisSoft)}) != 0 {
// Photos, undo, redo and spelling are host effects.
frame.focused = false
if id == 29005 {
frame.photo_requested = true
return
}
if id == 29014 {
frame.undo_requested = true
return
}
if id == 29015 {
frame.redo_requested = true
return
}
if id == 29016 {
frame.spelling_requested = true
return
}
state.action = DIARY_CONTROL
state.control = id
pending = true
frame.scroll = 0
}
}
DiaryView :: (message: DiaryMessage, observed: DiaryUiFrame, today: Date) -> DiaryMessage {
state = message
frame = observed
column := CenteredColumnFor(frame.width, Scale(640), Scale(16))
left := cast(float32)column.x
width := cast(float32)column.width
part := (width - cast(float32)Scale(12)) / 3.0
compact := frame.height < Scale(480)
top := cast(float32)(ifx compact then Scale(4) else Scale(12))
control := cast(float32)Scale(44)
gap := cast(float32)Scale(8)
// Title bar: the selected date, centered between the previous and next day.
DiaryAction(29001, "‹", Rectangle.{left, top, control, control}, true, DIARY_PREVIOUS_ICON)
DiaryAction(29002, "›", Rectangle.{left + width - control, top, control, control},
OnOrBefore(Next(Date.{state.year, state.month, state.day}, 1), today) &&
!OnOrBefore(today, Date.{state.year, state.month, state.day}),
DIARY_NEXT_ICON)
title := DateTitle(state.year, state.month, state.day)
title_strong: [1]TextRange = .[TextRange.{.start = 0, .end = cast(s32)title.count}]
Text(frame.session, TextProps.{.bounds = Rectangle.{left + control + gap, top,
width - 2.0 * (control + gap), control}, .text = title,
.font = frame.font + Scale(4), .strong = title_strong[:],
.align = cast(TextAlign)TextAlignCenter, .vertical_align = cast(TextAlign)TextAlignCenter,
.wrap = cast(TextWrap)TextWrapNone})
// Tools: Today and the calendar move between days; undo, redo, spelling,
// the time and photos change the entry. Today narrows on phones so every
// icon keeps its target.
tools := top + control + gap
tool_gap := cast(float32)Scale(4)
tool := control
today_width := width - 6.0 * tool - 5.0 * tool_gap - gap
if today_width < cast(float32)Scale(64) {
// The narrowest phones keep Today readable with smaller icon targets.
today_width = cast(float32)Scale(64)
tool = (width - today_width - gap - 5.0 * tool_gap) / 6.0
}
if today_width > cast(float32)Scale(128) {
today_width = cast(float32)Scale(128)
}
DiaryAction(29004, DiaryLocaleHost("diary_today"), Rectangle.{left, tools, today_width, control})
DiaryAction(29003, DiaryLocaleHost("tab_diary_calendar"),
Rectangle.{left + today_width + gap, tools, tool, control},
true, DIARY_CALENDAR_ICON, state.calendar)
editable := !state.load_error && state.year > 0
if !state.calendar {
idle := editable && !frame.spelling_busy
DiaryAction(29014, DiaryLocaleHost("diary_undo"),
Rectangle.{left + width - 5.0 * tool - 4.0 * tool_gap, tools, tool, control},
idle && frame.can_undo, DIARY_UNDO_ICON)
DiaryAction(29015, DiaryLocaleHost("diary_redo"),
Rectangle.{left + width - 4.0 * tool - 3.0 * tool_gap, tools, tool, control},
idle && frame.can_redo, DIARY_REDO_ICON)
DiaryAction(29016, DiaryLocaleHost("diary_check_spelling"),
Rectangle.{left + width - 3.0 * tool - 2.0 * tool_gap, tools, tool, control},
idle && HasWords(state.text), DIARY_SPELLING_ICON, false, frame.spelling_busy)
DiaryAction(29013, DiaryLocaleHost("diary_insert_time"),
Rectangle.{left + width - 2.0 * tool - tool_gap, tools, tool, control},
!frame.spelling_busy, DIARY_TIME_ICON)
DiaryAction(29005, DiaryLocaleHost("diary_attach_photo"),
Rectangle.{left + width - tool, tools, tool, control},
true, DIARY_PHOTO_ICON)
}
content := tools + control + cast(float32)Scale(12)
content_height := cast(float32)(frame.height - frame.bottom) - content - cast(float32)Scale(16)
if state.calendar {
scroll := Scroll(frame.session, ScrollProps.{.key = cast(u64)290300,
.bounds = Rectangle.{left, content, width, content_height},
.content_height = Scale(344), .scroll_offset = frame.calendar_scroll})
frame.calendar_scroll = scroll.scroll_offset
if !scroll.opened {
return FinishView()
}
origin := scroll.content.y
DiaryAction(29011, "‹", Rectangle.{left, origin, part, cast(float32)Scale(44)})
DiaryAction(29012, "›", Rectangle.{left + 2.0 * (part + cast(float32)Scale(6)),
origin, part, cast(float32)Scale(44)},
state.month_year < today.year ||
(state.month_year == today.year && state.month_number < today.month))
Text(frame.session, TextProps.{.bounds = Rectangle.{left + part,
origin + cast(float32)Scale(8), part, cast(float32)Scale(32)},
.text = DateTitle(state.month_year, state.month_number, 0), .font = frame.font})
weekdays: [7]string = .["habit_day_mon", "habit_day_tue", "habit_day_wed", "habit_day_thu",
"habit_day_fri", "habit_day_sat", "habit_day_sun"]
for day: cast(s32)0..cast(s32)6 {
Text(frame.session, TextProps.{.bounds = Rectangle.{left + cast(float32)day * width / 7.0,
origin + cast(float32)Scale(52), width / 7.0, cast(float32)Scale(24)},
.text = DiaryLocaleHost(weekdays[day]), .font = frame.font})
}
for day: cast(s32)1..state.month_days {
position := state.month_weekday + day - 1
label: Vec(u8)
BuilderPrint(*label, "%", day)
if state.marks[day] != cast(u8)0 { BuilderPrint(*label, " •") }
day_title := BuilderFinish(label)
cell := width / 7.0
DiaryAction(29100 + day, day_title,
Rectangle.{left + cast(float32)(position % 7) * cell,
origin + cast(float32)Scale(80 + (position / 7) * 44), cell - 2.0,
cast(float32)Scale(42)},
OnOrBefore(Date.{state.month_year, state.month_number, day}, today))
}
End(frame.session)
return FinishView()
}
// The editor reaches the bottom; a notice takes room below it only while
// it is shown.
notice := frame.photo_error || state.load_error || frame.spelling_notice != ""
notice_room := ifx notice then Scale(60) else 0
editor_height := cast(s32)content_height - notice_room
if editor_height < Scale(120) {
editor_height = Scale(120)
}
page := Scroll(frame.session, ScrollProps.{.key = cast(u64)290301,
.bounds = Rectangle.{left, content, width, content_height},
.content_height = editor_height + notice_room +
(ifx state.photo_count > 0 then Scale(392) else 0), .scroll_offset = frame.page_scroll})
frame.page_scroll = page.scroll_offset
if !page.opened {
return FinishView()
}
area: TextAreaProps
area.key = cast(u64)290200
area.focus_id = 29020
area.bounds = Rectangle.{left, page.content.y, width, cast(float32)editor_height}
area.value = state.text
area.label = DiaryLocaleHost("tab_diary")
area.wrap = true
area.cursor = state.cursor
area.anchor = state.anchor
area.scroll_y = frame.scroll
area.focused = frame.focused
area.selecting = frame.selecting
// The entry waits while its spelling is checked, so the correction
// always applies to the text that was sent.
area.read_only = !editable || frame.spelling_busy
area.max_bytes = 2147483646
area.max_codepoints = 2147483646
area.input = frame.input
DiaryEmphasis(state.text, state.cursor, state.anchor, frame.focused && !area.read_only)
area.hidden = emphasis_hidden[:emphasis_hidden_count]
area.strong = emphasis_strong[:emphasis_strong_count]
edited := TextArea(frame.session, area)
state.cursor = edited.cursor
state.anchor = edited.anchor
frame.scroll = edited.scroll_y
frame.focused = edited.focused
frame.selecting = edited.selecting
if edited.edit.changed {
state.action = DIARY_EDIT
state.edit_start = edited.edit.start
state.edit_end = edited.edit.end
state.replacement = edited.edit.replacement
pending = true
frame.save_at = frame.now + 0.75
}
if edited.clipboard_write {
frame.clipboard_write = true
frame.clipboard_text = edited.clipboard_text
}
if notice {
status := frame.spelling_notice
if state.load_error {
status = "diary_read_error"
}
if frame.photo_error {
status = "diary_photo_error"
}
Text(frame.session, TextProps.{.bounds = Rectangle.{left,
area.bounds.y + area.bounds.height + cast(float32)Scale(12), width, cast(float32)Scale(40)},
.text = DiaryLocaleHost(status), .font = frame.font})
}
if state.photo_count > 0 {
photo_top := area.bounds.y + area.bounds.height + cast(float32)(notice_room + Scale(12))
photo_bounds := Rectangle.{left, photo_top, width, cast(float32)Scale(240)}
if frame.photo_format.count > 0 {
path: Vec(u8)
BuilderPrint(*path, "diary/photos/%.%", state.photo_file, frame.photo_format)
image := BuilderFinish(path)
Image(frame.session, ImageProps.{.asset_path = image,
.alt_text = state.photo_name,
.bounds = photo_bounds,
.fit = cast(ImageFit)ImageFitContain})
} else {
// The entry names a photo whose bytes are not on this device, for
// example when a sync node keeps photos off. The entry still works.
Box(frame.session, BoxProps.{.key = cast(u64)29011, .bounds = photo_bounds,
.fill = Color.{156, 156, 156, 36}, .radius = cast(float32)Scale(12)})
Text(frame.session, TextProps.{.key = cast(u64)29012,
.text = DiaryLocaleHost("diary_photo_unavailable"),
.bounds = Rectangle.{left + cast(float32)Scale(16), photo_top,
width - cast(float32)Scale(32), cast(float32)Scale(240)},
.font = frame.font, .align = cast(TextAlign)TextAlignCenter,
.vertical_align = cast(TextAlign)TextAlignCenter})
}
Text(frame.session, TextProps.{.text = state.photo_name,
.bounds = Rectangle.{left, photo_top + cast(float32)Scale(248), width,
cast(float32)Scale(32)}, .font = frame.font})
DiaryAction(29008, "‹", Rectangle.{left, photo_top + cast(float32)Scale(288),
part, cast(float32)Scale(44)})
DiaryAction(29010, DiaryLocaleHost("diary_remove_photo"),
Rectangle.{left + part + cast(float32)Scale(6), photo_top + cast(float32)Scale(288),
part, cast(float32)Scale(44)})
DiaryAction(29009, "›", Rectangle.{left + 2.0 * (part + cast(float32)Scale(6)),
photo_top + cast(float32)Scale(288), part, cast(float32)Scale(44)})
}
End(frame.session)
return FinishView()
}
+21
View File
@@ -0,0 +1,21 @@
# Changelog
## [1.0.4] - 2026-10-10
- Requires Inner Breeze 2.1.28 or later.
## [1.0.3] - 2026-10-07
- Keep app labels and content visible after updating Inner Breeze.
## [1.0.2] - 2026-10-06
- Use Cells consistently in the cell and its independently delivered package.
## [1.0.1] - 2026-10-06
- Load independently in the updated app host while retaining saved tracking.
## [1.0.0] - 2026-10-06
- First independently versioned Habits module.
+128
View File
@@ -0,0 +1,128 @@
// Habits owns page transitions, linked-day actions and form validation.
#import, file "../../src/cells/habits_types.zi";
#import, file "../../src/habits/habit_types.zi";
#import, file "../../src/core/types.zi";
#import, file "../../src/cells/module_types.zi";
host_api :: #system_library "host_api";
ReadHabitsHost :: () -> HabitsMessage #foreign host_api;
WriteHabitsHost :: (message: HabitsMessage) #foreign host_api;
HabitNameExistsHost :: (name: string, excluding: s32) -> bool #foreign host_api;
SaveHabitHost :: (message: HabitsMessage) -> bool #foreign host_api;
HabitTrimName :: (name: string) -> string {
start: s64 = 0
end := name.count
while start < end && (name[start] == cast(u8)32 || name[start] == cast(u8)9) {
start += 1
}
while end > start && (name[end - 1] == cast(u8)32 || name[end - 1] == cast(u8)9) {
end -= 1
}
return name[start:end]
}
using HabitSyncMode;
HabitsApply :: (message: HabitsMessage) -> HabitsMessage {
message.succeeded = true
if message.action == HABITS_ROUTE {
message.succeeded = message.screen == ScreenHabits ||
message.screen == ScreenHabitEdit || message.screen == ScreenHabitSessionEdit
return message
}
if message.action == HABITS_DAY_ACTION {
if message.modal_active || message.index < 0 || message.index >= message.count ||
(!message.scheduled && !message.completed) {
return message
}
if message.counter_enabled != 0 {
message.day_action = ifx message.decrement then HABITS_DAY_DECREMENT else HABITS_DAY_COUNT
} else if message.linked_count > 0 {
message.day_action = HABITS_DAY_LINKED
} else {
message.day_action = HABITS_DAY_TOGGLE
}
message.block_click = true
return message
}
if message.action == HABITS_COMMIT {
if !message.active {
return message
}
if !message.is_new && (message.index < 0 || message.index >= message.count) {
message.cancel_edit = true
return message
}
message.name_error = 0
message.name = HabitTrimName(message.name)
if message.name.count == 0 {
message.name_error = 1
} else if HabitNameExistsHost(message.name,
ifx message.is_new then -1 else message.index) {
message.name_error = 2
}
if message.name_error != 0 {
message.reset_scroll = true
return message
}
message.sync_mode = ifx message.sync_activity != 0 then HABIT_SYNC_ACTIVITIES else HABIT_SYNC_NONE
message.weekdays = message.weekdays & 0xff
message.color.a = 255
message.succeeded = SaveHabitHost(message)
if !message.succeeded {
return message
}
message.cancel_edit = true
message.action = HABITS_OVERVIEW
}
if message.action == HABITS_EXPAND {
if message.index < 0 || message.index >= message.count {
return message
}
message.selected = message.index
message.screen_mode = HABITS_SCREEN_OVERVIEW
message.tab = HABIT_TAB_WEEKLY
message.view_mode = HABIT_VIEW_WEEKLY
} else if message.action == HABITS_HISTORY || message.action == HABITS_STATISTICS {
if message.selected < 0 || message.selected >= message.count {
return message
}
message.reset_scroll = true
if message.action == HABITS_HISTORY {
message.screen_mode = HABITS_SCREEN_HISTORY
message.view_mode = HABIT_VIEW_CALENDAR
message.tab = HABIT_TAB_MONTHLY
} else {
message.screen_mode = HABITS_SCREEN_STATISTICS
message.tab = HABIT_TAB_STATISTICS
}
} else if message.action == HABITS_FOCUS {
message.screen_mode = HABITS_SCREEN_OVERVIEW
message.tab = HABIT_TAB_WEEKLY
message.reset_scroll = true
} else if message.action == HABITS_OVERVIEW {
message.selected = -1
message.screen_mode = HABITS_SCREEN_OVERVIEW
message.tab = HABIT_TAB_WEEKLY
message.view_mode = HABIT_VIEW_WEEKLY
message.reset_scroll = true
} else if message.action == HABITS_COLLAPSE {
message.selected = -1
} else {
message.succeeded = false
}
return message
}
#program_export "HabitsMain"
Main :: () -> s32 {
message := ReadHabitsHost()
if message.abi != MODULE_ABI {
return -1
}
if message.action == MODULE_IDENTIFY {
return MODULE_HABITS
}
WriteHabitsHost(HabitsApply(message))
return 0
}
+122
View File
@@ -0,0 +1,122 @@
# Changelog
## [2.1.29] - 2026-10-11
- Bring Lumi 1.3.9, Diary 1.1.9, Lists 1.0.5 and Leaderboard 1.0.1.
- Requires Inner Breeze 2.1.29 or later.
## [2.1.28] - 2026-10-11
- Bring Lumi's message selection with copy and delete.
- Requires Inner Breeze 2.1.29 or later.
## [2.1.27] - 2026-10-11
- Bring Lumi's chat that loads older messages as you scroll up.
- Requires Inner Breeze 2.1.29 or later.
## [2.1.26] - 2026-10-10
- Bring Diary's title bar, undo and redo, and spelling correction, and Lumi's typing dots.
- Requires Inner Breeze 2.1.29 or later.
## [2.1.25] - 2026-10-10
- Open Leaderboard as its own app.
- Requires Inner Breeze 2.1.28 or later.
## [2.1.24] - 2026-10-10
- Remove the text of practice window buttons that are no longer shown.
## [2.1.23] - 2026-10-10
- Translate the descriptions in Lumi's command list.
## [2.1.22] - 2026-10-10
- Say which app, device and system details Lumi feedback includes before you send it.
## [2.1.21] - 2026-10-10
- Explain when approved Lumi feedback is still waiting to send and when the developer inbox has received it.
## [2.1.20] - 2026-10-09
- Customize each app in Appearance using live KSS editing, inspection, undo, and reset to defaults.
- Ask Lumi to preview and save your appearance changes.
## [2.1.19] - 2026-10-08
- Deliver the updated Diary to existing Inbe installations with today as its latest date.
## [2.1.18] - 2026-10-08
- Keep Diary in the same account as Habits, including existing entries and photos.
- Limit Diary to today and earlier dates and open a blank editor without a writing prompt.
## [2.1.17] - 2026-10-07
- Find every app in a searchable library and keep up to two favorites in the compact dock.
- Preserve saved app data when changing favorites and keep Profile and Settings close by.
## [2.1.13] - 2026-10-07
- Show clean, colored sync changes with translated explanations and complete change symbols.
## [2.1.12] - 2026-10-07
- Keep all apps working with Lumi's bold formatting and offline feature suggestions.
## [2.1.11] - 2026-10-07
- Connect Lumi to online conversation and app actions without blocking the interface.
- Deliver saved app feedback and show developer replies in chat.
## [2.1.10] - 2026-10-06
- Preserve the selected page during upgrades and add hidden apps instantly offline.
- Keep the interface responsive when an app cannot reset its view.
- Open Lumi smoothly and distinguish Lists from Diary with a checkmark icon.
## [2.1.8] - 2026-10-06
- Call sidebar choices Apps in setup and settings, with shorter instructions.
## [2.1.7] - 2026-10-06
- Show Lumi alongside every other cell in one compact, reorderable list.
- Include all cells for instant sidebar additions without a download.
## [2.1.6] - 2026-10-06
- Show a clearer firefly icon for Lumi and keep the bundled companion available when her shortcut is hidden.
- Keep every selected startup cell in the sidebar and preserve cached packages for quick reinstallation.
- Provide app tools for changing themes, appearance and settings directly.
## [2.1.5] - 2026-10-06
- Use a standard cell icon for Lumi and include translations for her habit and practice commands.
## [2.1.4] - 2026-10-06
- Recommend Lumi first in the cell picker and open her chat as the default home.
- Keep the firefly helper available offline alongside Habits and Practices.
- Include every character used by the current translations in the shared fonts.
## [2.1.3] - 2026-10-06
- Use Cells consistently in the cell picker and its independently delivered package.
## [2.1.2] - 2026-10-06
- Keep all app choices, the automatic update switch and the manual update button visible at normal desktop sizes.
## [2.1.1] - 2026-10-06
- The app picker and its update controls now travel with the app package, together with shared fonts, translations, styles and icons.
## [2.1.0] - 2026-10-06
- First independently versioned Inner Breeze module.
+120
View File
@@ -0,0 +1,120 @@
// The portable root owns app selection and unified navigation policy.
// Its assets contain Lumi, Habits and Practices as recommended cells, and
// Lists, Diary and Leaderboard as optional ones.
#import, file "../../src/cells/inbe_types.zi";
#import, file "inbe_view.zi";
#import, file "../../src/cells/module_types.zi";
#import, file "../../src/core/types.zi";
host_api :: #system_library "host_api";
ReadInbeHost :: () -> InbeMessage #foreign host_api;
WriteInbeHost :: (message: InbeMessage) #foreign host_api;
RouteFeatureHost :: (app: s32, screen: s32) -> bool #foreign host_api;
InbeAppForScreen :: (screen: s32) -> s32 {
if screen == ScreenLumi {
return APP_LUMI
}
if screen == ScreenDiary {
return APP_DIARY
}
if screen == ScreenLeaderboard {
return APP_LEADERBOARD
}
if screen == ScreenEList {
return APP_LISTS
}
if screen == ScreenHabits || screen == ScreenHabitEdit ||
screen == ScreenHabitSessionEdit {
return APP_HABITS
}
if screen == ScreenStart || screen == ScreenSession ||
screen == ScreenMeditation || screen == ScreenSunSalutation ||
screen == ScreenPatterns || screen == ScreenResults ||
screen == ScreenPracticeConfig || screen == ScreenManual {
return APP_PRACTICE
}
return 0
}
InbeHome :: (apps: s32) -> s32 {
if (apps & APP_LUMI) != 0 {
return ScreenLumi
}
if (apps & APP_PRACTICE) != 0 {
return ScreenStart
}
if (apps & APP_HABITS) != 0 {
return ScreenHabits
}
if (apps & APP_LISTS) != 0 {
return ScreenEList
}
if (apps & APP_DIARY) != 0 {
return ScreenDiary
}
return ScreenSettings
}
InbeApply :: (message: InbeMessage) -> InbeMessage {
message.enabled_apps &= APP_ALL
message.succeeded = true
if message.action == INBE_MINI_CONFIGURE {
// An explicit mini launch is a temporary practice session. It does
// not replace the profile's saved selection for the full app.
message.enabled_apps = APP_PRACTICE
message.screen = ScreenStart
}
if message.action == INBE_TOGGLE_APP {
if message.app != APP_LISTS && message.app != APP_HABITS &&
message.app != APP_PRACTICE && message.app != APP_DIARY && message.app != APP_LUMI &&
message.app != APP_LEADERBOARD {
message.succeeded = false
return message
}
if message.checked {
message.enabled_apps |= message.app
} else {
message.enabled_apps &= ~message.app
}
}
if message.action == INBE_CONFIGURE || message.action == INBE_TOGGLE_APP ||
message.action == INBE_MINI_CONFIGURE {
message.screen = InbeHome(message.enabled_apps)
} else if message.action == INBE_INITIAL_SCREEN {
if !message.language_selected {
message.screen = ScreenLanguage
} else if !message.apps_selected {
message.screen = ScreenAppSelection
} else {
app := InbeAppForScreen(message.screen)
if app != 0 && (message.enabled_apps & app) == 0 {
message.screen = InbeHome(message.enabled_apps)
}
}
} else if message.action != INBE_ROUTE {
message.succeeded = false
}
app := InbeAppForScreen(message.screen)
message.allowed = app == 0 || (message.enabled_apps & app) != 0
if message.action == INBE_ROUTE && message.allowed && app != 0 {
message.succeeded = RouteFeatureHost(app, message.screen)
}
return message
}
#program_export "InnerBreezeMain"
Main :: () -> s32 {
message := ReadInbeHost()
if message.abi != MODULE_ABI {
return -1
}
if message.action == MODULE_IDENTIFY {
return MODULE_INBE
}
if message.action == INBE_FRAME {
WriteInbeHost(InbePickerView(message))
} else {
WriteInbeHost(InbeApply(message))
}
return 0
}
+159
View File
@@ -0,0 +1,159 @@
#import "button_props"
#import "button_widget"
#import "checkbox_props"
#import "checkbox_widget"
#import "geometry"
#import "layout"
#import "text_props"
#import "text_widget"
#import "control_props"
#import "scroll_props"
#import "scroll_widget"
#import "tree"
#import "toggle_props"
#import "toggle_widget"
#import, file "../../src/cells/inbe_types.zi";
#import, file "../../src/cells/inbe_ui_types.zi";
using ButtonTone;
using ButtonEmphasis;
host_api :: #system_library "host_api";
ReadPickerUiHost :: () -> InbeUiFrame #foreign host_api;
WritePickerUiHost :: (frame: InbeUiFrame) #foreign host_api;
PickerLocaleHost :: (key: string) -> string #foreign host_api;
frame: InbeUiFrame;
state: InbeMessage;
Scale :: (pixels: s32) -> s32 {
return cast(s32)(cast(float32)pixels * frame.scale)
}
Bit :: (package: s32) -> s32 { return cast(s32)1 << (package - 1) }
Row :: (package: s32) -> AppPackageView {
if package == 1 { return frame.lists }
if package == 2 { return frame.habits }
if package == 3 { return frame.practices }
if package == 5 { return frame.lumi }
return frame.diary
}
Status :: (package: s32) -> s32 { return Row(package).status }
Available :: (package: s32) -> bool { return Row(package).available }
FinishPicker :: () -> InbeMessage {
WritePickerUiHost(frame)
state.succeeded = true
return state
}
InbePickerView :: (message: InbeMessage) -> InbeMessage {
frame = ReadPickerUiHost()
state = message
column := CenteredColumnFor(frame.width, Scale(420), Scale(16))
top := Scale(20)
compact := frame.height < Scale(480)
scroll_top := ifx compact then Scale(104) else Scale(156)
content_height := Scale(548)
for package: cast(s32)1..cast(s32)5 {
if Status(package) >= 3 {
content_height += Scale(16)
}
}
Text(frame.session, TextProps.{
.bounds = Rectangle.{cast(float32)column.x, cast(float32)top,
cast(float32)column.width, cast(float32)(ifx compact then Scale(28) else Scale(40))},
.text = PickerLocaleHost("cells_picker_title"), .font = Scale(24)})
Text(frame.session, TextProps.{
.bounds = Rectangle.{cast(float32)column.x, cast(float32)(top + (ifx compact then Scale(32) else Scale(48))),
cast(float32)column.width, cast(float32)(ifx compact then Scale(44) else Scale(84))},
.text = PickerLocaleHost("cells_picker_body"), .font = frame.font})
scroll := Scroll(frame.session, ScrollProps.{.key = cast(u64)27000,
.bounds = Rectangle.{cast(float32)column.x, cast(float32)scroll_top,
cast(float32)column.width, cast(float32)(frame.height - scroll_top - Scale(80))},
.content_height = content_height, .scroll_offset = frame.scroll})
frame.scroll = scroll.scroll_offset
if !scroll.opened {
return FinishPicker()
}
content_width := cast(s32)scroll.content.width
row_top := cast(s32)scroll.content.y
labels: [5]string = .["Lumi", PickerLocaleHost("tab_habits"), PickerLocaleHost("tab_practices"),
PickerLocaleHost("tab_elist"), PickerLocaleHost("tab_diary")]
packages: [5]s32 = .[5, 2, 3, 1, 4]
index: s32 = 0
while index < 5 {
if index == 0 || index == 3 {
Text(frame.session, TextProps.{.bounds = Rectangle.{cast(float32)column.x,
cast(float32)row_top, cast(float32)content_width, cast(float32)Scale(36)},
.text = PickerLocaleHost(ifx index == 0 then "cells_recommended" else "cells_optional"),
.font = frame.font})
row_top += Scale(40)
}
package := packages[index]
bit := Bit(package)
checkbox := Checkbox(frame.session, CheckboxProps.{
.id = ifx package == 5 then 278 else 270 + package - 1,
.bounds = Rectangle.{cast(float32)column.x,
cast(float32)row_top,
cast(float32)content_width, cast(float32)Scale(44)},
.label = labels[index], .checked = (state.enabled_apps & bit) != 0})
if checkbox.changed {
if checkbox.checked {
state.enabled_apps |= bit
} else {
state.enabled_apps &= ~bit
}
}
row_top += Scale(44)
{
status := Status(package)
key := ifx ((frame.installed & bit) != 0 || Available(package)) then "cells_installed" else "cells_download"
if status == 1 {
key = "update_downloading"
}
else if status == 3 {
key = "cells_download_failed"
}
else if status == 4 {
key = "cells_signing_setup"
}
Text(frame.session, TextProps.{.bounds = Rectangle.{cast(float32)(column.x + Scale(32)),
cast(float32)row_top, cast(float32)(content_width - Scale(32)),
cast(float32)(ifx status >= 3 then Scale(44) else Scale(28))},
.text = PickerLocaleHost(key), .font = Scale(14)})
row_top += ifx status >= 3 then Scale(44) else Scale(28)
}
index += 1
}
Text(frame.session, TextProps.{
.bounds = Rectangle.{cast(float32)column.x, cast(float32)(row_top + Scale(12)),
cast(float32)(content_width - Scale(80)), cast(float32)Scale(44)},
.text = PickerLocaleHost("cells_auto_update"), .font = frame.font})
automatic := Toggle(frame.session, ToggleProps.{.id = 276,
.bounds = Rectangle.{cast(float32)(column.x + content_width - Scale(64)),
cast(float32)(row_top + Scale(12)), cast(float32)Scale(64), cast(float32)Scale(44)},
.label = PickerLocaleHost("cells_auto_update"), .value = frame.automatic})
if automatic.changed {
frame.automatic = automatic.value
}
row_top += Scale(64)
if Button(frame.session, ButtonProps.{.id = 277,
.bounds = Rectangle.{cast(float32)column.x, cast(float32)row_top,
cast(float32)content_width, cast(float32)Scale(44)},
.label = PickerLocaleHost("cells_check_updates"),
.tone = cast(ButtonTone)ButtonToneNeutral,
.emphasis = cast(ButtonEmphasis)ButtonEmphasisSoft}) != 0 {
frame.check_updates = true
}
End(frame.session)
if Button(frame.session, ButtonProps.{.id = 274,
.bounds = Rectangle.{cast(float32)column.x,
cast(float32)(frame.height - Scale(64)), cast(float32)column.width,
cast(float32)Scale(44)},
.label = PickerLocaleHost("next_button"),
.tone = cast(ButtonTone)ButtonToneNeutral,
.emphasis = cast(ButtonEmphasis)ButtonEmphasisSoft}) != 0 {
frame.confirm = true
}
return FinishPicker()
}
+11
View File
@@ -0,0 +1,11 @@
# Changelog
## [1.0.1] - 2026-10-11
- Scrollbars use your theme's colours and show how much of the list is in view.
## [1.0.0] - 2026-10-10
- Rank yourself with your friends for Wim Hof, breathing patterns, meditation and Sun Salutation.
- Sort by current streak, or by average hold in Wim Hof and average time in meditation.
- Requires Inner Breeze 2.1.28 or later.
+34
View File
@@ -0,0 +1,34 @@
// Leaderboard ranks you with your friends for each practice. The unified
// host fetches friend results, keeps them for offline use and ranks rows.
#import, file "../../src/cells/leaderboard_types.zi";
#import, file "../../src/cells/module_types.zi";
#import, file "../../src/core/types.zi";
#import, file "leaderboard_view.zi";
host_api :: #system_library "host_api";
ReadLeaderboardHost :: () -> LeaderboardMessage #foreign host_api;
WriteLeaderboardHost :: (message: LeaderboardMessage) #foreign host_api;
LeaderboardApply :: (message: LeaderboardMessage) -> LeaderboardMessage {
message.succeeded = true
if message.action == LEADERBOARD_ROUTE {
message.succeeded = message.screen == ScreenLeaderboard
} else if message.action == LEADERBOARD_FRAME {
message = LeaderboardView(message)
} else {
message.succeeded = false
}
return message
}
#program_export "LeaderboardMain"
Main :: () -> s32 {
message := ReadLeaderboardHost()
if message.abi != MODULE_ABI {
return -1
}
if message.action == MODULE_IDENTIFY {
return MODULE_LEADERBOARD
}
WriteLeaderboardHost(LeaderboardApply(message))
return 0
}
+168
View File
@@ -0,0 +1,168 @@
// Leaderboard owns its screen composition; the host supplies ranked rows,
// prepared once when results arrive, and ordinary Kryon widget effects.
#import "session"
#import "geometry"
#import "text"
#import "vec"
#import "drawing_props"
#import "text_props"
#import "text_align"
#import "text_widget"
#import "button_props"
#import "button_widget"
#import "control_props"
#import "scroll_props"
#import "scroll_widget"
#import "box_props"
#import "box_widget"
#import "tree"
#import, file "../../src/cells/leaderboard_ui_types.zi";
#import, file "../../src/cells/leaderboard_types.zi";
using ButtonTone;
using ButtonEmphasis;
using TextAlign;
using TextWrap;
host_api :: #system_library "host_api";
ReadLeaderboardUiHost :: () -> LeaderboardUiFrame #foreign host_api;
WriteLeaderboardUiHost :: (frame: LeaderboardUiFrame) #foreign host_api;
ReadLeaderboardRowHost :: (index: s32) -> LeaderboardUiRow #foreign host_api;
LeaderboardLocaleHost :: (key: string) -> string #foreign host_api;
frame: LeaderboardUiFrame;
state: LeaderboardMessage;
// Wim Hof, breathing patterns, meditation and Sun Salutation, as in Practice.
PRACTICE_COUNT :: 4
PracticeAt :: (index: s32) -> s32 {
ids: [PRACTICE_COUNT]s32 = .[0, 3, 1, 2]
return ids[index]
}
PracticeLabel :: (practice: s32) -> string {
if practice == 1 { return LeaderboardLocaleHost("exercise_meditation") }
if practice == 2 { return LeaderboardLocaleHost("exercise_sun_salutation") }
if practice == 3 { return LeaderboardLocaleHost("exercise_patterns") }
return LeaderboardLocaleHost("exercise_wim_hof")
}
Scale :: (pixels: s32) -> s32 {
return cast(s32)(cast(float32)pixels * frame.scale)
}
Bounds :: (x: s32, y: s32, width: s32, height: s32) -> Rectangle {
return Rectangle.{cast(float32)x, cast(float32)y,
cast(float32)width, cast(float32)height}
}
Finish :: () -> LeaderboardMessage {
WriteLeaderboardUiHost(frame)
state.succeeded = true
return state
}
Cell :: (key: u64, x: s32, y: s32, width: s32, height: s32, text: string) {
Text(frame.session, TextProps.{.key = key, .bounds = Bounds(x, y, width, height),
.text = text, .font = frame.font, .wrap = cast(TextWrap)TextWrapNone,
.vertical_align = cast(TextAlign)TextAlignCenter})
}
LeaderboardView :: (message: LeaderboardMessage) -> LeaderboardMessage {
frame = ReadLeaderboardUiHost()
state = message
x := Scale(16)
width := frame.width - x * 2
y := Scale(12)
// Every practice stays visible: two per row on phones, four when wide.
per_row: s32 = ifx width >= Scale(600) then PRACTICE_COUNT else 2
gap := Scale(8)
choice_width := (width - gap * (per_row - 1)) / per_row
for index: cast(s32)0..PRACTICE_COUNT - 1 {
practice := PracticeAt(index)
chosen := practice == state.practice
choice_x := x + (index % per_row) * (choice_width + gap)
choice_y := y + (index / per_row) * (Scale(40) + gap)
if Button(frame.session, ButtonProps.{.id = 7100 + index,
.bounds = Bounds(choice_x, choice_y, choice_width, Scale(40)),
.label = PracticeLabel(practice), .selected = chosen, .fit_content = true,
.tone = cast(ButtonTone)(ifx chosen then ButtonToneAccent else ButtonToneNeutral),
.emphasis = cast(ButtonEmphasis)ButtonEmphasisSoft}) != 0 && !chosen {
state.practice = practice
state.metric = LEADERBOARD_STREAK
state.refresh = true
frame.scroll = 0
return Finish()
}
}
y += (PRACTICE_COUNT / per_row) * (Scale(40) + gap) + Scale(8)
// The name column is wider when only the streak is ranked.
columns: s32 = ifx state.has_average then 3 else 2
name_width := ifx state.has_average then width / 2 else (width * 2) / 3
value_width := ifx state.has_average then (width - name_width) / 2 else width - name_width
average_label := ifx state.practice == 1 then "profile_metric_avg_time" else "profile_metric_avg_hold"
labels: [3]string = .[LeaderboardLocaleHost("profile_friends_title"),
LeaderboardLocaleHost("profile_metric_streak"), LeaderboardLocaleHost(average_label)]
header_x := x
for column: cast(s32)0..columns - 1 {
column_width := ifx column == 0 then name_width else ifx column == columns - 1 then x + width - header_x else value_width
metric := column - 1
active := column > 0 && state.metric == metric
if Button(frame.session, ButtonProps.{.id = 7110 + column,
.bounds = Bounds(header_x, y, column_width, Scale(36)),
.label = labels[column], .disabled = column == 0, .selected = active,
.fit_content = true,
.tone = cast(ButtonTone)(ifx active then ButtonToneAccent else ButtonToneNeutral),
.emphasis = cast(ButtonEmphasis)ButtonEmphasisSoft}) != 0 &&
column > 0 && !active {
state.metric = metric
return Finish()
}
header_x += column_width
}
y += Scale(44)
if state.row_count == 0 {
key := ifx state.loading then "profile_updating_status" else "profile_no_leaderboard_data"
Text(frame.session, TextProps.{.key = cast(u64)7120,
.bounds = Bounds(x, y, width, Scale(32)), .text = LeaderboardLocaleHost(key),
.font = frame.font, .wrap = cast(TextWrap)TextWrapAuto})
return Finish()
}
row_height := Scale(40)
scroll := Scroll(frame.session, ScrollProps.{.key = cast(u64)7130,
.bounds = Bounds(x, y, width, frame.height - frame.bottom - y - Scale(8)),
.content_height = state.row_count * row_height, .scroll_offset = frame.scroll})
frame.scroll = scroll.scroll_offset
if !scroll.opened {
return Finish()
}
row_y := cast(s32)scroll.content.y
left := cast(s32)scroll.content.x
for index: cast(s32)0..state.row_count - 1 {
// Rows outside the viewport are not read from the host.
if row_y + row_height > cast(s32)scroll.viewport.y &&
row_y < cast(s32)(scroll.viewport.y + scroll.viewport.height) {
row := ReadLeaderboardRowHost(index)
key := cast(u64)(7200 + index * 4)
if row.own || index % 2 == 1 {
Box(frame.session, BoxProps.{.key = key, .bounds = Bounds(left, row_y, width, row_height),
.fill = ifx row.own then Color.{156, 188, 143, 64} else Color.{156, 156, 156, 24},
.radius = cast(float32)Scale(8)})
}
name: Vec(u8)
BuilderPrint(*name, "%. %", row.rank, row.name)
pad := Scale(8)
Cell(key + 1, left + pad, row_y, name_width - pad * 2, row_height, BuilderFinish(name))
Cell(key + 2, left + name_width + pad, row_y, value_width - pad, row_height, row.streak)
if state.has_average {
Cell(key + 3, left + name_width + value_width + pad, row_y,
width - name_width - value_width - pad, row_height, row.average)
}
}
row_y += row_height
}
End(frame.session)
return Finish()
}
+27
View File
@@ -0,0 +1,27 @@
# Changelog
## [1.0.5] - 2026-10-11
- Scrollbars use your theme's colours and show how much of the list is in view.
- Scrolling while you type a new item keeps the keyboard open.
## [1.0.4] - 2026-10-10
- Requires Inner Breeze 2.1.28 or later.
## [1.0.3] - 2026-10-07
- Keep app labels and content visible after updating Inner Breeze.
## [1.0.2] - 2026-10-06
- Use Cells consistently in the cell and its independently delivered package.
## [1.0.1] - 2026-10-06
- Load independently in the updated app host while retaining saved lists.
- Update the list tabs, editor and completion controls with the Lists package.
## [1.0.0] - 2026-10-06
- First independently versioned Lists module.
+140
View File
@@ -0,0 +1,140 @@
// Lists owns edit decisions and list/item mutations. Storage capabilities use
// the unified host's open database and identity.
#import, file "../../src/cells/lists_types.zi";
#import, file "../../src/core/types.zi";
#import, file "../../src/cells/module_types.zi";
#import, file "lists_view.zi";
host_api :: #system_library "host_api";
ReadListsHost :: () -> ListsMessage #foreign host_api;
WriteListsHost :: (message: ListsMessage) #foreign host_api;
PersistListsHost :: (mutation: ListsMutation) -> ListsMutationResult #foreign host_api;
ListsApply :: (message: ListsMessage) -> ListsMessage {
message.succeeded = true
if message.action == LISTS_FRAME {
return message
}
if message.action == LISTS_ROUTE {
message.visible = message.screen == ScreenEList
return message
}
if message.action == LISTS_SELECT {
if message.index < 0 || message.index >= message.list_count ||
message.index == message.selected_list {
return message
}
message.selected_list = message.index
message.show_completed = 0
message.completing_id = ""
message.completing_until = 0.0
message.editing_item = -1
message.reset_input = true
message.reset_scroll = true
message.changed = true
return message
}
if message.action == LISTS_VISIBLE {
message.visibility_deadline = 0.0
message.visible = message.index >= 0 && message.index < message.item_count &&
message.selected_list >= 0 && message.selected_list < message.list_count &&
message.parent_id == message.selected_id &&
(message.done == 0 || message.show_completed != 0 ||
(message.now < message.completing_until &&
message.id == message.completing_id))
if message.visible && message.done != 0 && message.show_completed == 0 {
message.visibility_deadline = message.completing_until
}
return message
}
mutation: ListsMutation
mutation.id = message.id
mutation.parent_id = message.parent_id
mutation.title = message.title
mutation.comment = message.comment
mutation.done = message.done
mutation.sort_order = message.sort_order
if message.action == LISTS_COMMIT {
if message.title.count == 0 {
return message
}
if message.editing_item == -2 {
mutation.kind = LISTS_CREATE_LIST
} else if message.editing_item == -3 && message.selected_list >= 0 &&
message.selected_list < message.list_count {
mutation.kind = LISTS_UPDATE_LIST
} else if message.editing_item >= 0 &&
message.editing_item < message.item_count {
mutation.kind = LISTS_UPDATE_ITEM
} else if message.selected_list >= 0 && message.selected_list < message.list_count {
mutation.kind = LISTS_CREATE_ITEM
mutation.parent_id = message.selected_id
mutation.comment = ""
} else {
message.input_error = 1
message.succeeded = false
return message
}
} else if message.action == LISTS_SET_DONE {
if message.index < 0 || message.index >= message.item_count {
message.succeeded = false
return message
}
mutation.kind = LISTS_UPDATE_ITEM
} else if message.action == LISTS_DELETE_LIST {
if message.selected_list < 0 || message.selected_list >= message.list_count {
message.succeeded = false
return message
}
mutation.kind = LISTS_REMOVE_LIST
} else if message.action == LISTS_DELETE_ITEM {
if message.index < 0 || message.index >= message.item_count {
message.succeeded = false
return message
}
mutation.kind = LISTS_REMOVE_ITEM
} else {
message.succeeded = false
return message
}
result := PersistListsHost(mutation)
message.succeeded = result.saved
if !result.saved {
message.input_error = 1
return message
}
message.input_error = 0
message.changed = true
message.reload = true
message.sync = true
if message.action == LISTS_COMMIT {
message.reset_input = true
message.editing_item = -1
message.selected_id = result.created_id
} else if message.action == LISTS_SET_DONE {
if message.done != 0 {
message.completing_id = message.id
message.completing_until = message.now + 0.45
} else if message.id == message.completing_id {
message.completing_id = ""
}
} else if message.action == LISTS_DELETE_LIST {
message.selected_list = 0
}
return message
}
#program_export "ListsMain"
Main :: () -> s32 {
message := ReadListsHost()
if message.abi != MODULE_ABI {
return -1
}
if message.action == MODULE_IDENTIFY {
return MODULE_LISTS
}
if message.action == LISTS_FRAME {
message = ListsView(message)
}
WriteListsHost(ListsApply(message))
return 0
}
+277
View File
@@ -0,0 +1,277 @@
// Lists owns its complete screen composition; the host supplies saved rows,
// device input and ordinary Kryon widget effects.
#import "session"
#import "geometry"
#import "text"
#import "vec"
#import "text_props"
#import "text_align"
#import "text_widget"
#import "text_input_props"
#import "text_field_widget"
#import "button_props"
#import "button_widget"
#import "control_props"
#import "checkbox_props"
#import "checkbox_widget"
#import "tab_bar_props"
#import "tab_bar_widget"
#import "scroll_props"
#import "scroll_widget"
#import "tree"
#import "icon"
#import, file "../../src/cells/lists_ui_types.zi";
#import, file "../../src/cells/lists_types.zi";
using ButtonTone;
using ButtonEmphasis;
using TextAlign;
using TextWrap;
using IconType;
host_api :: #system_library "host_api";
ReadListsUiHost :: () -> ListsUiFrame #foreign host_api;
WriteListsUiHost :: (frame: ListsUiFrame) #foreign host_api;
ReadListsRowHost :: (index: s32, item: bool) -> ListsUiRow #foreign host_api;
ListsLocaleHost :: (key: string) -> string #foreign host_api;
frame: ListsUiFrame;
state: ListsMessage;
Scale :: (pixels: s32) -> s32 {
return cast(s32)(cast(float32)pixels * frame.scale)
}
Bounds :: (x: s32, y: s32, width: s32, height: s32) -> Rectangle {
return Rectangle.{cast(float32)x, cast(float32)y,
cast(float32)width, cast(float32)height}
}
ListsActionProps :: (key: u64, label: string, bounds: Rectangle,
accent: bool, disabled: bool, icon: s32) -> ButtonProps {
return ButtonProps.{.key = key, .bounds = bounds,
.label = label, .tone = cast(ButtonTone)(ifx accent then ButtonToneAccent else ButtonToneNeutral),
.emphasis = cast(ButtonEmphasis)(ifx accent then ButtonEmphasisFilled else ButtonEmphasisSoft),
.pill = icon == 0, .icon_only = icon != 0, .icon_type = icon,
.disabled = disabled}
}
BeginInput :: (item: s32, value: string) {
state.editing_item = item
state.input_error = 0
frame.value = value
frame.cursor = cast(s32)value.count
frame.anchor = frame.cursor
frame.scroll_x = 0
frame.focused = true
}
Finish :: () -> ListsMessage {
WriteListsUiHost(frame)
state.succeeded = true
return state
}
Mutation :: (action: s32, index: s32) {
state.action = action
state.index = index
if state.selected_list >= 0 && state.selected_list < state.list_count {
row := ReadListsRowHost(state.selected_list, false)
state.id = row.id
state.selected_id = row.id
state.sort_order = row.sort_order
}
item := ifx action == LISTS_COMMIT then state.editing_item else index
if item >= 0 && item < state.item_count {
row := ReadListsRowHost(item, true)
state.id = row.id
state.parent_id = row.parent_id
state.title = row.title
state.comment = row.comment
state.done = row.done
state.sort_order = row.sort_order
}
if action == LISTS_COMMIT {
state.title = frame.value
}
}
Field :: (bounds: Rectangle) -> bool {
edited := TextField(frame.session, TextFieldProps.{.key = cast(u64)6501,
.bounds = bounds, .value = frame.value, .cursor = frame.cursor,
.anchor = frame.anchor, .scroll_x = frame.scroll_x,
.focused = frame.focused, .focus_id = 6501,
.max_bytes = 127, .max_codepoints = 127, .input = frame.input})
if edited.edit.changed {
start := edited.edit.start
end := edited.edit.end
if start >= 0 && end >= start && end <= frame.value.count {
value: Vec(u8)
BuilderPrint(*value, "%", frame.value[:start])
BuilderPrint(*value, "%", edited.edit.replacement)
BuilderPrint(*value, "%", frame.value[end:])
replacement := BuilderFinish(value)
if replacement.count <= 127 {
frame.value = replacement
}
}
}
frame.cursor = edited.cursor
frame.anchor = edited.anchor
frame.scroll_x = edited.scroll_x
frame.focused = edited.focused
frame.clipboard_write = edited.clipboard_write
frame.clipboard_text = edited.clipboard_text
return edited.committed
}
ListsView :: (message: ListsMessage) -> ListsMessage {
frame = ReadListsUiHost()
state = message
x := Scale(16)
width := frame.width - x * 2
y := Scale(12)
tabs: [32]Tab
for index: cast(s32)0..state.list_count - 1 {
row := ReadListsRowHost(index, false)
tabs[index] = Tab.{.key = cast(u64)(6800 + index), .label = row.title}
}
action_width := Scale(118)
actions := action_width
if state.list_count > 0 && state.selected_list >= 0 {
actions += Scale(88)
}
selector := width - actions - Scale(10)
if selector < Scale(160) {
actions = action_width
selector = width - actions - Scale(10)
}
if state.list_count > 0 && selector > 0 {
selected := TabBar(frame.session, TabBarProps.{.id = 6500,
.bounds = Bounds(x, y, selector, Scale(44)),
.selected_index = state.selected_list, .min_tab_width = Scale(72),
.max_tab_width = selector}, tabs[:state.list_count])
if selected.selected_index != state.selected_list {
state.action = LISTS_SELECT
state.index = selected.selected_index
return Finish()
}
}
if Button(frame.session, ListsActionProps(cast(u64)6505, ListsLocaleHost("elist_new_list"),
Bounds(x + width - action_width, y, action_width, Scale(44)), false, false, 0)) != 0 {
BeginInput(-2, "")
return Finish()
}
if state.list_count > 0 && state.selected_list >= 0 && actions > action_width {
edit_x := x + width - action_width - Scale(84)
if Button(frame.session, ListsActionProps(cast(u64)6503, "", Bounds(edit_x, y, Scale(38), Scale(38)),
false, false, cast(s32)IconEdit)) != 0 {
BeginInput(-3, ReadListsRowHost(state.selected_list, false).title)
}
if Button(frame.session, ListsActionProps(cast(u64)6504, "", Bounds(edit_x + Scale(40), y, Scale(38), Scale(38)),
false, false, cast(s32)IconTrash)) != 0 {
Mutation(LISTS_DELETE_LIST, -1)
return Finish()
}
}
y += Scale(60)
if state.input_error != 0 {
Text(frame.session, TextProps.{.bounds = Bounds(x, y, width, Scale(40)),
.text = ListsLocaleHost("results_write_failed"), .wrap = cast(TextWrap)TextWrapAuto})
y += Scale(48)
}
if state.editing_item == -2 || state.editing_item == -3 {
committed := Field(Bounds(x, y, width, Scale(44)))
if Button(frame.session, ListsActionProps(cast(u64)6506,
ListsLocaleHost(ifx state.editing_item == -3 then "done_button" else "elist_create_list"),
Bounds(x, y + Scale(52), width, Scale(40)), true, frame.value.count == 0, 0)) != 0 || committed {
Mutation(LISTS_COMMIT, -1)
}
return Finish()
}
if state.list_count == 0 {
Text(frame.session, TextProps.{.bounds = Bounds(x, y + Scale(48), width, Scale(30)),
.text = ListsLocaleHost("elist_empty_title"), .align = cast(TextAlign)TextAlignCenter})
Text(frame.session, TextProps.{.bounds = Bounds(x, y + Scale(88), width, Scale(48)),
.text = ListsLocaleHost("elist_empty_detail"), .align = cast(TextAlign)TextAlignCenter,
.wrap = cast(TextWrap)TextWrapAuto})
return Finish()
}
field_width := width - Scale(92)
committed := Field(Bounds(x, y, field_width, Scale(44)))
if Button(frame.session, ListsActionProps(cast(u64)6507,
ListsLocaleHost(ifx state.editing_item >= 0 then "done_button" else "elist_add_item"),
Bounds(x + field_width + Scale(8), y, Scale(84), Scale(44)),
true, frame.value.count == 0, 0)) != 0 || committed {
Mutation(LISTS_COMMIT, -1)
return Finish()
}
y += Scale(52)
footer := frame.height - frame.bottom - Scale(72)
if footer < y + Scale(58) {
footer = y + Scale(58)
}
footer_width := ifx Scale(176) > width then width else Scale(176)
if Button(frame.session, ListsActionProps(cast(u64)6502,
ListsLocaleHost(ifx state.show_completed != 0 then "elist_hide_completed" else "elist_show_completed"),
Bounds(x + width - footer_width, footer, footer_width, Scale(44)), false, false, 0)) != 0 {
state.show_completed = ifx state.show_completed == 0 then 1 else 0
frame.scroll = 0
}
visible: [256]bool
count: s32 = 0
selected_id := ReadListsRowHost(state.selected_list, false).id
for index: cast(s32)0..state.item_count - 1 {
row := ReadListsRowHost(index, true)
visible[index] = row.parent_id == selected_id && (row.done == 0 ||
state.show_completed != 0 || (row.id == state.completing_id && state.now < state.completing_until))
if visible[index] {
count += 1
}
}
scroll := Scroll(frame.session, ScrollProps.{.key = cast(u64)6600,
.bounds = Bounds(x, y, width, footer - y - Scale(12)),
.content_height = count * Scale(66), .scroll_offset = frame.scroll})
frame.scroll = scroll.scroll_offset
if scroll.opened {
row_y := cast(s32)scroll.content.y
for index: cast(s32)0..state.item_count - 1 {
if !visible[index] {
continue
}
if row_y + Scale(58) > cast(s32)scroll.viewport.y &&
row_y < cast(s32)(scroll.viewport.y + scroll.viewport.height) {
row := ReadListsRowHost(index, true)
key := cast(u64)(7000 + index * 4)
checked := Checkbox(frame.session, CheckboxProps.{.key = key,
.bounds = Bounds(x + Scale(10), row_y + Scale(17), Scale(28), Scale(28)),
.checked = row.done != 0})
if checked.changed {
Mutation(LISTS_SET_DONE, index)
state.done = ifx checked.checked then 1 else 0
End(frame.session)
return Finish()
}
Text(frame.session, TextProps.{.bounds = Bounds(x + Scale(52), row_y,
width - Scale(138), ifx row.comment.count > 0 then Scale(28) else Scale(58)),
.text = row.title, .vertical_align = cast(TextAlign)TextAlignCenter,
.strikethrough = row.done != 0})
if row.comment.count > 0 {
Text(frame.session, TextProps.{.bounds = Bounds(x + Scale(52), row_y + Scale(32),
width - Scale(138), Scale(18)), .text = row.comment})
}
if Button(frame.session, ListsActionProps(key + cast(u64)1, "", Bounds(x + width - Scale(78), row_y + Scale(12), Scale(34), Scale(34)),
false, false, cast(s32)IconEdit)) != 0 {
BeginInput(index, row.title)
}
if Button(frame.session, ListsActionProps(key + cast(u64)2, "", Bounds(x + width - Scale(40), row_y + Scale(12), Scale(34), Scale(34)),
false, false, cast(s32)IconTrash)) != 0 {
Mutation(LISTS_DELETE_ITEM, index)
End(frame.session)
return Finish()
}
}
row_y += Scale(66)
}
End(frame.session)
}
return Finish()
}
+87
View File
@@ -0,0 +1,87 @@
# Changelog
## [1.3.9] - 2026-10-11
### Fixed
- Scrolling the command list keeps the keyboard open.
### Changed
- Scrollbars use your theme's colours and show how much of the chat is in view.
## [1.3.8] - 2026-10-11
### Added
- Select messages like in Telegram: hold a message to select it, then tap or drag across others; dragging to the top or bottom of the chat scrolls it, through older messages too. Checkmarks show what is selected, and a bar over the top of the chat shows how many, with copy and delete.
### Changed
- Lumi's typing dots appear after a short pause, as a person reads before typing.
- Feedback shows only its card with Yes and No, without a second copy of the question.
## [1.3.7] - 2026-10-11
### Changed
- Like Telegram, the chat shows your newest messages and loads older ones as you scroll up, right away while the newest do not fill the screen.
## [1.3.6] - 2026-10-10
### Added
- While Lumi is answering, three dots show in its bubble where the answer will appear.
## [1.3.5] - 2026-10-10
- Requires Inner Breeze 2.1.28 or later.
## [1.3.4] - 2026-10-10
### Added
- Tap the / button or type / to see Lumi's commands, as in Telegram. The list narrows as you type; tap a command or press Enter to use it, and commands that need text wait for it in the message box.
### Changed
- Send with an arrow button.
## [1.3.3] - 2026-10-10
### Fixed
- Open the chat without a pause by preparing command suggestions only while you type.
## [1.3.2] - 2026-10-07
### Changed
- Load earlier chat messages automatically as you scroll up, preserving your reading position.
- Move Telegram setup from the chat toolbar into Settings.
## [1.3.1] - 2026-10-07
- Format bold emphasis in replies and save explicit feature suggestions as feedback offline.
## [1.3.0] - 2026-10-07
- Show daily progress charts from saved practices, meditation, breath retention and completed habits.
- Keep charts in chat, select daily values, and show an empty state when no activity is recorded.
- Show donation cards with Bitcoin and Monero addresses, wallet links and browser donation links.
## [1.2.0] - 2026-10-07
- Understand natural conversation online with the same tools in Inner Breeze and Harmony.
- Save explicit app feedback offline and receive private developer replies in chat.
## [1.1.3] - 2026-10-06
- Keep longer conversations responsive when opening, scrolling and typing.
## [1.1.2] - 2026-10-06
- Write to today's Diary from chat, with the current time above each message.
- Ask for text when a Diary request has no entry yet, and preserve multiline messages.
- Insert a new line with Shift+Enter and send with Enter.
- Keep replies short when a request is unclear.
- Display the mirrored avatar beside replies.
## [1.1.1] - 2026-10-06
- Change color themes, light and dark mode directly from chat, and open Settings or Appearance.
- Keep the bundled companion available when its sidebar shortcut is hidden.
- Show a clearer firefly icon in the sidebar.
## [1.1.0] - 2026-10-06
- Place Lumi’s avatar beside her replies in a chat without a title bar.
- Complete habits for today and start WHM, meditation, Sun Salutation or breathing patterns directly from chat.
- Offer only commands supported by installed and enabled cells.
- Ask which habit to complete, choose it by name, and use compact autocomplete chips with case-insensitive matching and command spelling correction.
## [1.0.0] - 2026-10-06
- Meet Lumi, Inner Breeze's firefly companion, in a private local chat.
- Complete commands and todo names as you type, add todos, mark them complete, reopen them, and open your selected apps.
+140
View File
@@ -0,0 +1,140 @@
#import "text"
#import "vec"
#import "utf8"
CommandSpace :: (byte: u8) -> bool {
return byte == 32 || byte == 9 || byte == 10 || byte == 13
}
CommandFold :: (codepoint: u32) -> u32 {
if (codepoint >= 65 && codepoint <= 90) || (codepoint >= 192 && codepoint <= 222 && codepoint != 215) ||
(codepoint >= 1040 && codepoint <= 1071) {
return codepoint + cast(u32)32
}
if codepoint >= 1024 && codepoint <= 1039 {
return codepoint + cast(u32)80
}
if ((codepoint >= 256 && codepoint <= 311) || (codepoint >= 330 && codepoint <= 375)) && codepoint % cast(u32)2 == 0 {
return codepoint + cast(u32)1
}
if codepoint >= 313 && codepoint <= 328 && codepoint % cast(u32)2 == 1 {
return codepoint + cast(u32)1
}
if codepoint == 376 {
return cast(u32)255
}
return codepoint
}
CommandEqual :: (left: string, right: string) -> bool {
a: s32 = 0
b: s32 = 0
while a < left.count && b < right.count {
x := Decode(left, a)
y := Decode(right, b)
if CommandFold(x.value) != CommandFold(y.value) {
return false
}
a = x.after
b = y.after
}
return a == left.count && b == right.count
}
// One insertion, deletion, substitution or adjacent transposition in a command
// word. Names and IDs never pass through this spelling correction.
CommandTypo :: (left: string, right: string) -> bool {
if CommandEqual(left, right) {
return true
}
if (left.count > 0 && left[0] == cast(u8)47) || (right.count > 0 && right[0] == cast(u8)47) {
return false
}
if left.count < 4 || right.count < 4 || left.count > 32 || right.count > 32 ||
left.count > right.count + 1 || right.count > left.count + 1 {
return false
}
for byte: left {
if byte >= 128 { return false }
}
for byte: right {
if byte >= 128 { return false }
}
a: s64 = 0
b: s64 = 0
edits: s32 = 0
while a < left.count && b < right.count {
if LowerASCII(left[a]) == LowerASCII(right[b]) {
a += 1
b += 1
continue
}
edits += 1
if edits > 1 { return false }
if left.count == right.count && a + 1 < left.count && b + 1 < right.count &&
LowerASCII(left[a]) == LowerASCII(right[b + 1]) && LowerASCII(left[a + 1]) == LowerASCII(right[b]) {
a += 2
b += 2
} else if left.count > right.count {
a += 1
} else if right.count > left.count {
b += 1
} else {
a += 1
b += 1
}
}
if a < left.count || b < right.count { edits += 1 }
return edits <= 1
}
CommandPrefixEnd :: (input: string, command: string) -> s32 {
a: s32 = 0
b: s32 = 0
while b < command.count {
while a < input.count && CommandSpace(input[a]) { a += 1 }
while b < command.count && CommandSpace(command[b]) { b += 1 }
if b >= command.count { break }
start_a := a
start_b := b
while a < input.count && !CommandSpace(input[a]) { a += 1 }
while b < command.count && !CommandSpace(command[b]) { b += 1 }
if !CommandTypo(input[start_a:a], command[start_b:b]) { return -1 }
}
return a
}
CommandPhrase :: (input: string, command: string) -> bool {
return command.count > 0 && CommandPrefixEnd(input, command) == input.count
}
CommandNormalize :: (input: string) -> string {
words: [10]string = .["start", "meditation", "sun", "salutation", "salutations",
"breathing", "patterns", "wim", "hof", "method"]
out: Vec(u8)
at: s32 = 0
while at < input.count {
while at < input.count && CommandSpace(input[at]) { at += 1 }
start := at
while at < input.count && !CommandSpace(input[at]) { at += 1 }
if start == at { break }
word := input[start:at]
matches: s32 = 0
replacement := word
for candidate: words {
if CommandEqual(word, candidate) {
replacement = candidate
matches = 1
break
}
if CommandTypo(word, candidate) {
replacement = candidate
matches += 1
}
}
if matches != 1 { replacement = word }
if out.count > 0 { BuilderPrint(*out, " ") }
BuilderPrint(*out, "%", replacement)
}
return BuilderFinish(out)
}
+297
View File
@@ -0,0 +1,297 @@
// A small offline engine. UI and host effects do not depend on its internals;
// an on-device model can later produce the same typed LumiAction values.
#import "utf8"
#import, file "command_text.zi";
#import, file "regex.zi";
#import, file "../../src/cells/lumi_types.zi";
#import, file "../../src/app/route_types.zi";
using AppNavRoute;
LumiTrim :: (value: string) -> string {
start: s64 = 0
end := value.count
while start < end && CommandSpace(value[start]) {
start += 1
}
while end > start && CommandSpace(value[end - 1]) {
end -= 1
}
return value[start:end]
}
LumiLower :: (byte: u8) -> u8 {
if byte >= cast(u8)65 && byte <= cast(u8)90 {
return byte + cast(u8)32
}
return byte
}
LumiStarts :: (value: string, prefix: string) -> bool {
a: s32 = 0
b: s32 = 0
while b < prefix.count {
if a >= value.count { return false }
x := Decode(value, a)
y := Decode(prefix, b)
if CommandFold(x.value) != CommandFold(y.value) { return false }
a = x.after
b = y.after
}
return true
}
LumiEqual :: (left: string, right: string) -> bool {
return CommandEqual(left, right)
}
LumiSuggests :: (candidate: string, typed: string) -> bool {
a: s32 = 0
b: s32 = 0
while b < typed.count {
while a < candidate.count && CommandSpace(candidate[a]) { a += 1 }
while b < typed.count && CommandSpace(typed[b]) { b += 1 }
if b >= typed.count { return true }
start_a := a
start_b := b
while a < candidate.count && !CommandSpace(candidate[a]) { a += 1 }
while b < typed.count && !CommandSpace(typed[b]) { b += 1 }
word := typed[start_b:b]
option := candidate[start_a:a]
if b == typed.count && LumiStarts(option, word) { return true }
if !CommandTypo(word, option) { return false }
}
return true
}
LumiArgument :: (input: string, command: string) -> string {
end := CommandPrefixEnd(input, command)
if command.count == 0 || end < 0 || end >= input.count || !CommandSpace(input[end]) {
return ""
}
return LumiTrim(input[end:])
}
LumiProgressIntent :: (input: string, commands: LumiCommands) -> LumiAction {
prefixes: [2]string = .[commands.progress, "/progress"]
for prefix: prefixes {
if prefix.count == 0 {
continue
}
if LumiEqual(input, prefix) {
return LumiAction.{.kind = LUMI_SHOW_PROGRESS, .practice = LUMI_PROGRESS_SESSIONS, .route = 7}
}
argument := LumiArgument(input, prefix)
if argument.count == 0 {
continue
}
boundary: s64 = 0
while boundary < argument.count && !CommandSpace(argument[boundary]) {
boundary += 1
}
metrics: [4]string = .["sessions", "meditation", "retention", "habits"]
for metric: cast(s32)0..cast(s32)3 {
if !LumiEqual(argument[:boundary], metrics[metric]) {
continue
}
days_text := LumiTrim(argument[boundary:])
days: s32 = 7
if days_text.count > 0 {
if days_text.count > 2 {
return LumiAction.{}
}
days = 0
for byte: days_text {
if byte < cast(u8)48 || byte > cast(u8)57 {
return LumiAction.{}
}
days = days * 10 + cast(s32)(byte - cast(u8)48)
}
}
if days >= 1 && days <= LUMI_PROGRESS_MAX_DAYS {
return LumiAction.{.kind = LUMI_SHOW_PROGRESS, .practice = metric, .route = days}
}
}
}
aliases: [4]string = .["show my progress", "show progress", "show progress chart", "progress chart"]
for alias: aliases {
if CommandPhrase(input, alias) {
return LumiAction.{.kind = LUMI_SHOW_PROGRESS, .practice = LUMI_PROGRESS_SESSIONS, .route = 7}
}
}
return LumiAction.{}
}
LumiIntent :: (input: string, commands: LumiCommands) -> LumiAction {
input = LumiTrim(input)
progress := LumiProgressIntent(input, commands)
if progress.kind != 0 {
return progress
}
donation_aliases: [5]string = .[commands.donations, "/donate", "donation links", "show donation links", "how can I donate?"]
for alias: donation_aliases {
if alias.count > 0 && LumiEqual(input, alias) {
return LumiAction.{.kind = LUMI_SHOW_DONATIONS}
}
}
// Explicit reports remain usable without a network or a model allowance.
feedback_prefixes: [19]string = .["/feedback ", "feedback:", "feedback ", "fix ", "please fix ",
"/suggest ", "suggestion:", "suggestion ", "feature request:", "feature request ",
"app idea:", "improve the app ", "the app should ", "this app should ", "inbe should ",
"inner breeze should ", "lumi should ", "i wish the app ", "i suggest "]
for prefix: feedback_prefixes {
if LumiStarts(input, prefix) && input.count > prefix.count {
return LumiAction.{.kind = LUMI_REPORT_FEEDBACK, .title = input}
}
}
diary_prefixes: [7]string = .[commands.write_diary, "write this to my diary",
"write to my diary", "add to my diary", "save to my diary", "/journal", "/diary"]
boundary: s32 = 0
while boundary < input.count && input[boundary] != cast(u8)58 && input[boundary] != cast(u8)10 {
boundary += 1
}
for prefix: diary_prefixes {
if prefix.count == 0 || (prefix == "/diary" && LumiEqual(input, prefix)) {
continue
}
if boundary < input.count && CommandPhrase(LumiTrim(input[:boundary]), prefix) {
return LumiAction.{.kind = LUMI_WRITE_DIARY, .title = LumiTrim(input[boundary + 1:])}
}
end := CommandPrefixEnd(input, prefix)
if end >= 0 && (end == input.count || CommandSpace(input[end])) {
return LumiAction.{.kind = LUMI_WRITE_DIARY, .title = LumiTrim(input[end:])}
}
}
if LumiEqual(input, commands.settings) || LumiEqual(input, "/settings") ||
CommandPhrase(input, "open settings") {
return LumiAction.{.kind = LUMI_OPEN, .route = APP_NAV_ROUTE_SETTINGS}
}
if LumiEqual(input, commands.appearance) || LumiEqual(input, "/appearance") ||
CommandPhrase(input, "open appearance") {
return LumiAction.{.kind = LUMI_OPEN, .route = APP_NAV_ROUTE_SETTINGS, .practice = 1}
}
modes: [3]string = .[commands.system, commands.light, commands.dark]
mode_aliases: [3]string = .["system mode", "light mode", "dark mode"]
mode_commands: [3]string = .["/system", "/light", "/dark"]
for index: cast(s32)0..cast(s32)2 {
if LumiEqual(input, modes[index]) || LumiEqual(input, mode_commands[index]) ||
CommandPhrase(input, mode_aliases[index]) {
return LumiAction.{.kind = LUMI_SET_MODE, .route = index}
}
}
theme := LumiArgument(input, commands.theme)
if theme.count == 0 {
theme = LumiArgument(input, "/theme")
}
if theme.count == 0 {
theme = LumiArgument(input, "theme")
}
if theme.count > 0 {
return LumiAction.{.kind = LUMI_SET_THEME, .title = theme}
}
starts: [4]string = .[commands.start_whm, commands.start_meditation,
commands.start_sun, commands.start_patterns]
for index: cast(s32)0..cast(s32)3 {
if starts[index].count > 0 && CommandPhrase(input, starts[index]) {
return LumiAction.{.kind = LUMI_START_PRACTICE, .practice = index}
}
}
first_word_end: s32 = 0
while first_word_end < input.count && !CommandSpace(input[first_word_end]) {
first_word_end += 1
}
// All practice expressions start with the corrected word "start". Free
// text needs neither a normalized copy nor seven regex evaluations.
if CommandTypo(input[:first_word_end], "start") {
normalized := CommandNormalize(input)
practice_patterns: [7]string = .["^start\\s+whm[.!?]*$", "^start\\s+wim\\s+hof$",
"^start\\s+wim\\s+hof\\s+method$", "^start\\s+meditation[.!?]*$",
"^start\\s+sun\\s+salutations?[.!?]*$", "^start\\s+breathing\\s+patterns[.!?]*$",
"^start\\s+patterns[.!?]*$"]
ids: [7]s32 = .[0, 0, 0, 1, 2, 3, 3]
for index: cast(s32)0..cast(s32)6 {
if RegexMatch(practice_patterns[index], normalized) {
return LumiAction.{.kind = LUMI_START_PRACTICE, .practice = ids[index]}
}
}
}
practice_aliases: [10]string = .["start whm", "start wim hof", "start wim hof method",
"/whm", "start meditation", "start sun salutation", "start sun salutations",
"start breathing patterns", "start patterns", "/meditate"]
practice_ids: [10]s32 = .[0, 0, 0, 0, 1, 2, 2, 3, 3, 1]
for index: cast(s32)0..cast(s32)9 {
if LumiEqual(input, practice_aliases[index]) {
return LumiAction.{.kind = LUMI_START_PRACTICE, .practice = practice_ids[index]}
}
}
habit_prefixes: [5]string = .[commands.complete_habit, "/habit", "complete habit",
"done habit", "mark habit complete"]
for prefix: habit_prefixes {
if CommandPhrase(input, prefix) {
return LumiAction.{.kind = LUMI_COMPLETE_HABIT}
}
title := LumiArgument(input, prefix)
if title.count > 0 {
return LumiAction.{.kind = LUMI_COMPLETE_HABIT, .title = title}
}
}
routes: [4]s32 = .[APP_NAV_ROUTE_ELIST, APP_NAV_ROUTE_HABITS,
APP_NAV_ROUTE_PRACTICE, APP_NAV_ROUTE_DIARY]
labels: [4]string = .[commands.lists, commands.habits, commands.practices, commands.diary]
aliases: [4]string = .["/lists", "/habits", "/practices", "/diary"]
for index: cast(s32)0..cast(s32)3 {
if CommandPhrase(input, labels[index]) || LumiEqual(input, aliases[index]) {
return LumiAction.{.kind = LUMI_OPEN, .route = routes[index]}
}
}
prefixes: [9]string = .[commands.add, "/todo", "add todo", commands.complete,
"/done", "complete todo", commands.reopen, "/reopen", "reopen todo"]
for index: cast(s32)0..cast(s32)8 {
title := LumiArgument(input, prefixes[index])
if title.count > 0 {
kind: s32 = ifx index < 3 then LUMI_ADD_TODO else ifx index < 6 then LUMI_COMPLETE_TODO else LUMI_REOPEN_TODO
return LumiAction.{.kind = kind, .title = title}
}
}
// Common English shorthand remains available beside translated commands.
add := LumiArgument(input, "add")
if add.count > 0 {
return LumiAction.{.kind = LUMI_ADD_TODO, .title = add}
}
done := LumiArgument(input, "done")
if done.count > 0 {
return LumiAction.{.kind = LUMI_COMPLETE_TODO, .title = done}
}
return LumiAction.{}
}
// Both the conversation and autocomplete use the same installed tool policy.
LumiActionAvailable :: (action: LumiAction, available_apps: s32) -> bool {
if action.kind == LUMI_SHOW_DONATIONS || action.kind == LUMI_REPORT_FEEDBACK || action.kind == LUMI_SET_THEME || action.kind == LUMI_SET_MODE ||
(action.kind == LUMI_OPEN && action.route == APP_NAV_ROUTE_SETTINGS) {
return true
}
bit: s32 = 0
if action.kind == LUMI_SHOW_PROGRESS {
bit = ifx action.practice == LUMI_PROGRESS_HABITS then LUMI_HABITS else LUMI_PRACTICES
} else if action.kind == LUMI_ADD_TODO || action.kind == LUMI_COMPLETE_TODO || action.kind == LUMI_REOPEN_TODO {
bit = LUMI_LISTS
} else if action.kind == LUMI_WRITE_DIARY {
bit = LUMI_DIARY
} else if action.kind == LUMI_COMPLETE_HABIT {
bit = LUMI_HABITS
} else if action.kind == LUMI_START_PRACTICE {
bit = LUMI_PRACTICES
} else if action.kind == LUMI_OPEN {
if action.route == APP_NAV_ROUTE_ELIST {
bit = LUMI_LISTS
} else if action.route == APP_NAV_ROUTE_HABITS {
bit = LUMI_HABITS
} else if action.route == APP_NAV_ROUTE_PRACTICE {
bit = LUMI_PRACTICES
} else if action.route == APP_NAV_ROUTE_DIARY {
bit = LUMI_DIARY
}
}
return bit != 0 && (available_apps & bit) != 0
}
+223
View File
@@ -0,0 +1,223 @@
// Lumi owns conversation decisions. The host supplies only explicit app tools.
#import "text"
#import "vec"
#import, file "../../src/cells/lumi_types.zi";
#import, file "../../src/cells/module_types.zi";
#import, file "../../src/cells/lumi_ui_types.zi";
#import, file "../../src/core/types.zi";
#import, file "engine.zi";
#import, file "lumi_view.zi";
host_api :: #system_library "host_api";
ReadLumiHost :: () -> LumiMessage #foreign host_api;
WriteLumiHost :: (message: LumiMessage) #foreign host_api;
ReadLumiTaskHost :: (index: s32) -> LumiTask #foreign host_api;
ReadLumiHabitHost :: (index: s32) -> LumiTask #foreign host_api;
LumiTaskCountHost :: () -> s32 #foreign host_api;
PerformLumiActionHost :: (action: LumiAction) -> bool #foreign host_api;
AppendLumiChatHost :: (text: string, user: bool) #foreign host_api;
LumiLocaleHost :: (key: string) -> string #foreign host_api;
LumiLocaleRevisionHost :: () -> s64 #foreign host_api;
command_revision: s64 = -1;
command_cache: LumiCommands;
ReadLumiToolsHost :: () -> LumiTools #foreign host_api;
SetLumiHabitChoiceHost :: (choosing: bool) #foreign host_api;
SetLumiDiaryChoiceHost :: (choosing: bool) #foreign host_api;
StartLumiOnlineHost :: (input: string) -> bool #foreign host_api;
LumiAskHabit :: (tools: LumiTools) {
if tools.habit_count == 0 {
SetLumiHabitChoiceHost(false)
AppendLumiChatHost(LumiLocaleHost("lumi_no_habits"), false)
return
}
SetLumiHabitChoiceHost(true)
out: Vec(u8)
BuilderPrint(*out, "%", LumiLocaleHost("lumi_choose_habit"))
for index: cast(s32)0..tools.habit_count - 1 {
habit := ReadLumiHabitHost(index)
if out.count + habit.title.count + 6 >= LUMI_INPUT_MAX {
AppendLumiChatHost(BuilderFinish(out), false)
out = Vec(u8).{}
}
BuilderPrint(*out, "\n• %", habit.title)
}
AppendLumiChatHost(BuilderFinish(out), false)
}
LumiCommandSet :: () -> LumiCommands {
revision := LumiLocaleRevisionHost()
if revision == command_revision { return command_cache }
command_revision = revision
command_cache = LumiCommands.{.add = LumiLocaleHost("lumi_add"),
.complete = LumiLocaleHost("lumi_complete"), .reopen = LumiLocaleHost("lumi_reopen"),
.complete_habit = LumiLocaleHost("lumi_complete_habit"),
.start_whm = LumiLocaleHost("lumi_start_whm"),
.start_meditation = LumiLocaleHost("lumi_start_meditation"),
.start_sun = LumiLocaleHost("lumi_start_sun"), .start_patterns = LumiLocaleHost("lumi_start_patterns"),
.lists = LumiLocaleHost("lumi_open_lists"), .habits = LumiLocaleHost("lumi_open_habits"),
.practices = LumiLocaleHost("lumi_open_practices"), .diary = LumiLocaleHost("lumi_open_diary"),
.write_diary = LumiLocaleHost("lumi_write_diary"),
.settings = LumiLocaleHost("lumi_open_settings"), .appearance = LumiLocaleHost("lumi_open_appearance"),
.theme = LumiLocaleHost("lumi_theme"), .dark = LumiLocaleHost("lumi_dark"),
.light = LumiLocaleHost("lumi_light"), .system = LumiLocaleHost("lumi_system"),
.progress = LumiLocaleHost("lumi_show_progress"), .donations = LumiLocaleHost("lumi_show_donations")}
return command_cache
}
LumiRespond :: (input: string) {
input = LumiTrim(input)
if input.count == 0 || input.count >= LUMI_INPUT_MAX {
return
}
AppendLumiChatHost(input, true)
tools := ReadLumiToolsHost()
help_requested := LumiEqual(input, "help") || LumiEqual(input, "/help") || LumiEqual(input, "how can you help?")
if (tools.choosing_diary || tools.choosing_habit) &&
(LumiEqual(input, "/cancel") || LumiEqual(input, "cancel") || LumiEqual(input, LumiLocaleHost("cancel_button"))) {
SetLumiDiaryChoiceHost(false)
SetLumiHabitChoiceHost(false)
AppendLumiChatHost(LumiLocaleHost("lumi_cancelled"), false)
return
}
action := LumiIntent(input, LumiCommandSet())
if tools.choosing_diary && !help_requested {
action = LumiAction.{.kind = LUMI_WRITE_DIARY, .title = input}
} else if action.kind == 0 && tools.choosing_habit && !help_requested {
action = LumiAction.{.kind = LUMI_COMPLETE_HABIT, .title = input}
}
reply := ifx help_requested then "lumi_help" else "lumi_unknown"
if action.kind != 0 && !LumiActionAvailable(action, tools.available_apps) {
action.kind = 0
reply = "lumi_unavailable"
}
if action.kind == LUMI_COMPLETE_HABIT && action.title.count == 0 {
SetLumiDiaryChoiceHost(false)
LumiAskHabit(tools)
return
}
if action.kind == LUMI_WRITE_DIARY && action.title.count == 0 {
SetLumiHabitChoiceHost(false)
SetLumiDiaryChoiceHost(true)
AppendLumiChatHost(LumiLocaleHost("lumi_diary_prompt"), false)
return
}
if action.kind == LUMI_COMPLETE_TODO || action.kind == LUMI_REOPEN_TODO || action.kind == LUMI_COMPLETE_HABIT {
count := ifx action.kind == LUMI_COMPLETE_HABIT then tools.habit_count else tools.task_count
matches: s32 = 0
exact_matches: s32 = 0
id: string
exact_id: string
for index: cast(s32)0..count - 1 {
task := ifx action.kind == LUMI_COMPLETE_HABIT then ReadLumiHabitHost(index) else ReadLumiTaskHost(index)
eligible := action.kind == LUMI_COMPLETE_HABIT || (action.kind == LUMI_COMPLETE_TODO && !task.done) ||
(action.kind == LUMI_REOPEN_TODO && task.done)
if eligible && LumiStarts(task.title, action.title) {
matches += 1
id = task.id
if LumiEqual(task.title, action.title) {
exact_matches += 1
exact_id = task.id
}
}
}
if exact_matches == 1 {
action.id = exact_id
} else if exact_matches == 0 && matches == 1 {
action.id = id
} else {
reply = ifx matches == 0 then "lumi_not_found" else "lumi_ambiguous"
action.kind = 0
if tools.choosing_habit {
SetLumiHabitChoiceHost(true)
}
}
}
if action.kind != 0 {
if PerformLumiActionHost(action) {
SetLumiHabitChoiceHost(false)
SetLumiDiaryChoiceHost(false)
if action.kind == LUMI_SHOW_PROGRESS || action.kind == LUMI_SHOW_DONATIONS ||
action.kind == LUMI_REPORT_FEEDBACK {
// These tools already appended their typed card to the chat;
// the feedback card with Yes and No is the whole answer.
return
}
reply = "lumi_opened"
if action.kind == LUMI_ADD_TODO {
reply = "lumi_added"
} else if action.kind == LUMI_COMPLETE_TODO {
reply = "lumi_completed"
} else if action.kind == LUMI_REOPEN_TODO {
reply = "lumi_reopened"
} else if action.kind == LUMI_COMPLETE_HABIT {
reply = "lumi_habit_completed"
} else if action.kind == LUMI_SET_THEME || action.kind == LUMI_SET_MODE {
reply = "lumi_settings_changed"
} else if action.kind == LUMI_START_PRACTICE {
reply = "lumi_practice_started"
} else if action.kind == LUMI_WRITE_DIARY {
reply = "lumi_diary_saved"
}
} else {
reply = "lumi_unavailable"
}
}
if action.kind == 0 && !help_requested && StartLumiOnlineHost(input) {
return
}
if reply == "lumi_help" {
out: Vec(u8)
BuilderPrint(*out, "%", LumiLocaleHost(reply))
commands := LumiCommandSet()
if (tools.available_apps & LUMI_PRACTICES) != 0 {
BuilderPrint(*out, "\n%", commands.start_whm)
}
if (tools.available_apps & LUMI_HABITS) != 0 {
BuilderPrint(*out, " · %", commands.complete_habit)
}
if (tools.available_apps & LUMI_LISTS) != 0 {
BuilderPrint(*out, " · %", commands.add)
}
if (tools.available_apps & LUMI_DIARY) != 0 {
BuilderPrint(*out, " · %", commands.write_diary)
}
if (tools.available_apps & LUMI_PRACTICES) != 0 {
BuilderPrint(*out, "\n/progress sessions 7 · /progress meditation 30 · /progress retention 7")
}
if (tools.available_apps & LUMI_HABITS) != 0 {
BuilderPrint(*out, "\n/progress habits 7")
}
BuilderPrint(*out, "\n%", commands.donations)
AppendLumiChatHost(BuilderFinish(out), false)
} else {
AppendLumiChatHost(LumiLocaleHost(reply), false)
}
}
#program_export "LumiMain"
Main :: () -> s32 {
message := ReadLumiHost()
if message.abi != MODULE_ABI {
return -1
}
if message.action == MODULE_IDENTIFY {
return MODULE_LUMI
}
message.succeeded = true
if message.action == LUMI_ROUTE {
message.succeeded = message.screen == ScreenLumi
} else if message.action == LUMI_FRAME {
commands := LumiCommandSet()
message = LumiView(message, commands, command_revision)
if message.action == LUMI_SEND {
LumiRespond(message.input)
}
} else if message.action == LUMI_SEND {
LumiRespond(message.input)
} else {
message.succeeded = false
}
WriteLumiHost(message)
return 0
}
File diff suppressed because it is too large. Load diff
+90
View File
@@ -0,0 +1,90 @@
// Reply emphasis is presentation only. Stored messages remain verbatim, and
// typed messages and code keep their literal text.
#import "text_props"
#import "byte_text_linux"
#import, file "../../src/cells/lumi_types.zi";
LumiMessageText :: struct {
bytes: [LUMI_INPUT_MAX]u8
count: s32
strong: [256]TextRange
strong_count: s32
}
LumiTextEscaped :: (value: string, at: s32) -> bool {
slashes: s32 = 0
at -= 1
while at >= 0 && value[at] == cast(u8)92 {
slashes += 1
at -= 1
}
return slashes % 2 == 1
}
LumiTextMarker :: (value: string, at: s32) -> bool {
if at < 0 || at + 1 >= value.count || LumiTextEscaped(value, at) {
return false
}
marker := value[at]
return (marker == cast(u8)42 || marker == cast(u8)95) && value[at + 1] == marker &&
(at == 0 || value[at - 1] != marker) &&
(at + 2 >= value.count || value[at + 2] != marker)
}
LumiTextClosing :: (value: string, at: s32) -> s32 {
marker := value[at]
start := at + 2
if start >= value.count || value[start] <= cast(u8)32 {
return -1
}
code: bool
while start + 1 < value.count {
if value[start] == cast(u8)96 && !LumiTextEscaped(value, start) {
code = !code
}
if !code && value[start] == marker && LumiTextMarker(value, start) &&
start > at + 2 && value[start - 1] > cast(u8)32 {
return start
}
start += 1
}
return -1
}
LumiFormatMessage :: (value: string, formatted: bool) -> LumiMessageText {
result: LumiMessageText
at: s32 = 0
code: bool
while at < value.count && result.count < LUMI_INPUT_MAX - 1 {
byte := value[at]
if formatted && byte == cast(u8)96 && !LumiTextEscaped(value, at) {
code = !code
}
if formatted && !code && LumiTextMarker(value, at) && result.strong_count < 256 {
end := LumiTextClosing(value, at)
if end >= 0 {
range := TextRange.{.start = result.count}
at += 2
while at < end && result.count < LUMI_INPUT_MAX - 1 {
result.bytes[result.count] = value[at]
result.count += 1
at += 1
}
range.end = result.count
result.strong[result.strong_count] = range
result.strong_count += 1
at = end + 2
continue
}
}
if formatted && byte == cast(u8)92 && at + 1 < value.count &&
(value[at + 1] == cast(u8)42 || value[at + 1] == cast(u8)95 || value[at + 1] == cast(u8)92) {
at += 1
byte = value[at]
}
result.bytes[result.count] = byte
result.count += 1
at += 1
}
return result
}
+85
View File
@@ -0,0 +1,85 @@
// Bounded, case-insensitive regex matching for Lumi's fixed command patterns.
// Supports anchors, character classes, escapes and ?, * and + quantifiers.
RegexAtom :: struct {
after: s32
matches: bool
}
RegexLower :: (byte: u8) -> u8 {
return ifx byte >= 65 && byte <= 90 then byte + cast(u8)32 else byte
}
RegexReadAtom :: (pattern: string, at: s32, value: u8) -> RegexAtom {
atom := RegexAtom.{.after = at + 1}
byte := pattern[at]
if byte == cast(u8)92 && at + 1 < pattern.count {
atom.after += 1
escaped := pattern[at + 1]
atom.matches = ifx escaped == cast(u8)115 then value == 32 || value == 9 || value == 10 || value == 13 else RegexLower(escaped) == RegexLower(value)
} else if byte == cast(u8)91 {
cursor := at + 1
while cursor < pattern.count && pattern[cursor] != cast(u8)93 {
if RegexLower(pattern[cursor]) == RegexLower(value) {
atom.matches = true
}
cursor += 1
}
atom.after = cursor + 1
} else {
atom.matches = byte == cast(u8)46 || RegexLower(byte) == RegexLower(value)
}
return atom
}
RegexHere :: (pattern: string, at: s32, input: string, position: s32, budget: *s32) -> bool {
budget.* -= 1
if budget.* <= 0 {
return false
}
if at >= pattern.count {
return true
}
if pattern[at] == cast(u8)36 && at + 1 == pattern.count {
return position == input.count
}
atom := RegexReadAtom(pattern, at, ifx position < input.count then input[position] else cast(u8)0)
if atom.after > pattern.count {
return false
}
quantifier := ifx atom.after < pattern.count then pattern[atom.after] else cast(u8)0
if quantifier == 42 || quantifier == 43 || quantifier == 63 {
minimum := ifx quantifier == 43 then 1 else 0
maximum: s32 = 0
while position + maximum < input.count &&
RegexReadAtom(pattern, at, input[position + maximum]).matches {
maximum += 1
if quantifier == 63 {
break
}
}
while maximum >= minimum {
if RegexHere(pattern, atom.after + 1, input, position + maximum, budget) {
return true
}
maximum -= 1
}
return false
}
return position < input.count && atom.matches && RegexHere(pattern, atom.after, input, position + 1, budget)
}
RegexMatch :: (pattern: string, input: string) -> bool {
if pattern.count == 0 || pattern.count > 128 || input.count >= 1024 {
return false
}
budget: s32 = 8192
if pattern[0] == cast(u8)94 {
return RegexHere(pattern, 1, input, 0, *budget)
}
for position: cast(s32)0..cast(s32)input.count {
if RegexHere(pattern, 0, input, position, *budget) {
return true
}
}
return false
}
+26
View File
@@ -0,0 +1,26 @@
# Changelog
## [1.1.4] - 2026-10-10
- Requires Inner Breeze 2.1.28 or later.
## [1.1.3] - 2026-10-07
- Keep app labels and content visible after updating Inner Breeze.
## [1.1.2] - 2026-10-07
- Keep all four Sun Salutation characters and smooth movement in a smaller offline package.
- Keep older installations on their working practice graphics until the app is upgraded.
## [1.1.1] - 2026-10-06
- Use Cells consistently in the cell and its independently delivered package.
## [1.1.0] - 2026-10-06
- Practice banners, characters and sounds now travel with Practices and update with its package.
## [1.0.0] - 2026-10-06
- First independently versioned Practices module.
+69
View File
@@ -0,0 +1,69 @@
// The live practice clocks run in this bundle; the unified host performs
// audio, notification, session-save and mobile lifecycle effects.
#import, file "../../src/cells/practice_types.zi";
#import, file "../../src/core/breath_timing.zi";
#import, file "../../src/practices/meditation/meditation_timing.zi";
#import, file "../../src/practices/patterns/patterns_clock.zi";
#import, file "../../src/cells/module_types.zi";
#import, file "../../src/core/types.zi";
#import, file "../../src/practices/sun_salutation/sun_salutation_rules.zi";
host_api :: #system_library "host_api";
ReadPracticeHost :: () -> PracticeMessage #foreign host_api;
WritePracticeHost :: (message: PracticeMessage) #foreign host_api;
SunSalutationStoredFrame :: (timeline_frame: s32) -> s32 #foreign host_api;
PracticeApply :: (message: PracticeMessage) -> PracticeMessage {
message.succeeded = true
if message.action == PRACTICE_ROUTE {
message.succeeded = message.screen == ScreenStart || message.screen == ScreenSession ||
message.screen == ScreenMeditation || message.screen == ScreenSunSalutation ||
message.screen == ScreenPatterns || message.screen == ScreenResults ||
message.screen == ScreenPracticeConfig || message.screen == ScreenManual
return message
}
if message.paused {
return message
}
if message.action == PRACTICE_BREATH_STEP {
message.breathing = BreathSessionStep(message.breathing)
message.completed = message.breathing.completed != 0
} else if message.action == PRACTICE_MEDITATION_STEP {
next := AdvanceMeditationTime(message.remaining_seconds,
message.remainder_ms, message.elapsed_ms)
message.remaining_seconds = next.remaining_seconds
message.remainder_ms = next.remainder_ms
message.elapsed_seconds = next.elapsed_seconds
message.completed = next.completed
} else if message.action == PRACTICE_SALUTATION_STEP {
next := SalutationAdvance(message.salutation, message.elapsed)
message.salutation = next.state
message.completed = next.completed != 0
} else if message.action == PRACTICE_PATTERNS_STEP {
next := PatternsAdvance(message.patterns)
message.patterns = next.state
message.cue = next.cue
message.completed = next.completed
} else {
message.succeeded = false
}
return message
}
#program_export "PracticeMain"
Main :: () -> s32 {
message := ReadPracticeHost()
if message.abi != MODULE_ABI {
return -1
}
if message.action == MODULE_IDENTIFY {
// The smaller frame inventory needs the wrapper's frame mapping.
// Older wrappers reject this required capability before replacing
// their working package.
if SunSalutationStoredFrame(0) != 0 {
return -1
}
return MODULE_PRACTICE
}
WritePracticeHost(PracticeApply(message))
return 0
}
+15
View File
@@ -0,0 +1,15 @@
[
{
"key_id": "inbe-2026-10",
"public_key": "d9a549043c0ac91a5197d85053a815c831d342a1082143c2bd1ffd43e1e6f145",
"app_ids": [
"inbe",
"inbe.habits",
"inbe.practices",
"inbe.lists",
"inbe.diary",
"inbe.lumi",
"inbe.leaderboard"
]
}
]
+56
View File
@@ -0,0 +1,56 @@
{
"host_api": 7,
"oldest_host_api": 5,
"module_api": 2,
"apps": {
"inbe": {
"id": "inbe",
"version": "2.1.29",
"sequence": 26,
"bundled": true,
"host_api": 7
},
"habits": {
"id": "inbe.habits",
"version": "1.0.4",
"sequence": 5,
"bundled": true,
"host_api": 5
},
"practices": {
"id": "inbe.practices",
"version": "1.1.4",
"sequence": 6,
"bundled": true,
"host_api": 5
},
"lists": {
"id": "inbe.lists",
"version": "1.0.5",
"sequence": 6,
"bundled": true,
"host_api": 5
},
"diary": {
"id": "inbe.diary",
"version": "1.1.9",
"sequence": 11,
"bundled": true,
"host_api": 7
},
"lumi": {
"id": "inbe.lumi",
"version": "1.3.9",
"sequence": 16,
"bundled": true,
"host_api": 7
},
"leaderboard": {
"id": "inbe.leaderboard",
"version": "1.0.1",
"sequence": 2,
"bundled": true,
"host_api": 5
}
}
}
BIN
View File
Binary file not shown.

Before

Width:  |  Height:  |  Size: 42 KiB

BIN
View File
Binary file not shown.

Before

Width:  |  Height:  |  Size: 49 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 35 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 32 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 464 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 349 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 512 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 747 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 MiB

BIN
View File
Binary file not shown.

Before

Width:  |  Height:  |  Size: 54 KiB

BIN
View File
Binary file not shown.

Before

Width:  |  Height:  |  Size: 51 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 198 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

+15
View File
@@ -0,0 +1,15 @@
ABCDEFGHIJKLMNOPQRSTUVWXYZ
abcdefghijklmnopqrstuvwxyz
0123456789
!"#$%&'()*+,-./:;<=>?@[\]^_`{|}~
 
ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖØÙÚÛÜÝÞß
àáâãäåæçèéêëìíîïðñòóôõöøùúûüýþÿ
ĀāĂ㥹ĆćĈĉĊċČčĎďĐđĒēĔĕĖėĘęĚě
ĞğĪīŁłŃńŇňŌōŘřŚśŞşŠšŤťŪūŮůŰűŹźŻżŽž
АБВГДЕЁЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯ
абвгдеёжзийклмнопрстуфхцчшщъыьэюя
。,、!?:;()[]「」『』ー〜・
中文简体繁體日本語한국어
·—›
+ −
Binary file not shown.
Binary file not shown.

Before

Width:  |  Height:  |  Size: 66 KiB

After

Width:  |  Height:  |  Size: 98 KiB

Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
+1
View File
@@ -0,0 +1 @@
↔ →
Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 MiB

+6
View File
@@ -0,0 +1,6 @@
Lumi's navigation glyph is an outlined firefly with antennae and wings.
Its 1.6-unit rounded stroke in a 24-unit view box matches the app's navigation
icons. sidebar.shape uses Kryon's vector icon format, so the sidebar applies
the same size and foreground color as other buttons. sidebar.svg contains the
same path; sidebar.png is its 64-pixel transparent export for navigation bars.
The full-color conversation avatar remains mascot.png.
Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

+1
View File
@@ -0,0 +1 @@
S1.6rr:M9 7C9 5 7.5 4 6 4M15 7C15 5 16.5 4 18 4M12 7C15 7 17 9 17 12C17 15 15 17 12 17C9 17 7 15 7 12C7 9 9 7 12 7ZM9.5 12L9.5 12.1M14.5 12L14.5 12.1M10 17C10 19 11 20 12 20C13 20 14 19 14 17M7 12C4 10 3 12 4 14C4.5 16 6 17 9 16M17 12C20 10 21 12 20 14C19.5 16 18 17 15 16
+3
View File
@@ -0,0 +1,3 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
<path fill="none" stroke="white" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round" d="M9 7C9 5 7.5 4 6 4M15 7C15 5 16.5 4 18 4M12 7C15 7 17 9 17 12C17 15 15 17 12 17C9 17 7 15 7 12C7 9 9 7 12 7ZM9.5 12L9.5 12.1M14.5 12L14.5 12.1M10 17C10 19 11 20 12 20C13 20 14 19 14 17M7 12C4 10 3 12 4 14C4.5 16 6 17 9 16M17 12C20 10 21 12 20 14C19.5 16 18 17 15 16"/>
</svg>

After

Width:  |  Height:  |  Size: 441 B

+621
View File
@@ -0,0 +1,621 @@
[
{
"name": "get_settings",
"description": "Read the current Inner Breeze theme, appearance, scale and sidebar settings.",
"inputSchema": {
"type": "object",
"properties": {},
"required": [],
"additionalProperties": false
},
"annotations": {
"readOnlyHint": true
}
},
{
"name": "set_theme",
"description": "Change and save the Inner Breeze color theme immediately.",
"inputSchema": {
"type": "object",
"properties": {
"theme": {
"type": "string",
"enum": [
"system",
"sky",
"ocean",
"forest",
"sunset",
"lavender",
"cherry",
"dawn",
"sage",
"sepia",
"mono",
"mint",
"cobalt",
"sweet"
]
}
},
"required": [
"theme"
],
"additionalProperties": false
}
},
{
"name": "set_theme_mode",
"description": "Change and save light, dark or device-following mode.",
"inputSchema": {
"type": "object",
"properties": {
"mode": {
"type": "string",
"enum": [
"system",
"light",
"dark"
]
}
},
"required": [
"mode"
],
"additionalProperties": false
}
},
{
"name": "set_setting",
"description": "Change one app preference. Scale is in tenths (5 to 25), navigation is automatic/left/bottom/right/top (0 to 4), compact sidebar is 0 or 1, style is material/classic/lightfield (1 to 3).",
"inputSchema": {
"type": "object",
"properties": {
"name": {
"type": "string",
"enum": [
"scale",
"navigation",
"sidebar_compact",
"style"
]
},
"value": {
"type": "integer"
}
},
"required": [
"name",
"value"
],
"additionalProperties": false
}
},
{
"name": "open_view",
"description": "Open an installed view or Settings in the same Inner Breeze app. Hidden Lumi remains available.",
"inputSchema": {
"type": "object",
"properties": {
"view": {
"type": "string",
"enum": [
"lumi",
"habits",
"lists",
"practices",
"diary",
"settings",
"appearance"
]
}
},
"required": [
"view"
],
"additionalProperties": false
}
},
{
"name": "practice",
"description": "Start an installed practice, or pause/resume the active session.",
"inputSchema": {
"type": "object",
"properties": {
"action": {
"type": "string",
"enum": [
"whm",
"meditation",
"sun_salutation",
"patterns",
"pause",
"resume"
]
}
},
"required": [
"action"
],
"additionalProperties": false
}
},
{
"name": "read_context",
"description": "Read the current app state, available apps, tasks and habits.",
"inputSchema": {
"type": "object",
"properties": {},
"required": [],
"additionalProperties": false
},
"annotations": {
"readOnlyHint": true
}
},
{
"name": "add_todo",
"description": "Add a task to the selected list.",
"inputSchema": {
"type": "object",
"properties": {
"title": {
"type": "string",
"maxLength": 255
}
},
"required": [
"title"
],
"additionalProperties": false
}
},
{
"name": "complete_todo",
"description": "Mark a task done using its exact ID.",
"inputSchema": {
"type": "object",
"properties": {
"id": {
"type": "string"
}
},
"required": [
"id"
],
"additionalProperties": false
}
},
{
"name": "reopen_todo",
"description": "Reopen a completed task using its exact ID.",
"inputSchema": {
"type": "object",
"properties": {
"id": {
"type": "string"
}
},
"required": [
"id"
],
"additionalProperties": false
}
},
{
"name": "complete_habit",
"description": "Complete a habit for today using its exact ID.",
"inputSchema": {
"type": "object",
"properties": {
"id": {
"type": "string"
}
},
"required": [
"id"
],
"additionalProperties": false
}
},
{
"name": "write_diary",
"description": "Append the requested text to today's diary with the current time. Preserve the user's wording.",
"inputSchema": {
"type": "object",
"properties": {
"text": {
"type": "string",
"maxLength": 1000
}
},
"required": [
"text"
],
"additionalProperties": false
}
},
{
"name": "read_diary",
"description": "Read the diary entry for a date when the user asks for it.",
"inputSchema": {
"type": "object",
"properties": {
"date": {
"type": "string",
"pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
}
},
"required": [
"date"
],
"additionalProperties": false
},
"annotations": {
"readOnlyHint": true
}
},
{
"name": "report_feedback",
"description": "Save an app bug report or suggestion and queue it for the developer. Preserve the original report; exclude unrelated personal data. This reports feedback; it does not fix code.",
"inputSchema": {
"type": "object",
"properties": {
"title": {
"type": "string",
"maxLength": 160
},
"message": {
"type": "string",
"maxLength": 4096
}
},
"required": [
"title",
"message"
],
"additionalProperties": false
}
},
{
"name": "show_progress_chart",
"description": "Show a daily progress chart in Lumi from the active account's saved activity. Use only when requested. Includes today, fills missing days with zero, and keeps a snapshot in chat. sessions counts practices; meditation sums meditation seconds; retention shows each day's best WHM retention in seconds; habits counts scheduled habits that reached their completion target. Do not invent values or render a text imitation of the chart.",
"inputSchema": {
"type": "object",
"properties": {
"metric": {
"type": "string",
"enum": [
"sessions",
"meditation",
"retention",
"habits"
]
},
"days": {
"type": "integer",
"minimum": 1,
"maximum": 31
}
},
"required": [
"metric",
"days"
],
"additionalProperties": false
},
"annotations": {
"readOnlyHint": true
}
},
{
"name": "show_donation_links",
"description": "Show Inner Breeze's official Bitcoin and Monero donation cards in Lumi when asked, with copy address, open wallet and Trocador browser actions. No payment or external navigation occurs until the user clicks. Use the returned official links; never invent a donation destination.",
"inputSchema": {
"type": "object",
"properties": {},
"required": [],
"additionalProperties": false
},
"annotations": {
"readOnlyHint": true
}
},
{
"name": "read_style",
"description": "Read editable KSS, saved and live preview sources, shipped app/style-pack defaults, precedence and current revision for a scope. Always read before editing; preserve existing edits. Use supported KSS properties and existing component classes.",
"inputSchema": {
"type": "object",
"properties": {
"scope": {
"type": "string",
"enum": [
"all",
"lists",
"habits",
"practices",
"diary",
"lumi"
]
}
},
"required": [
"scope"
],
"additionalProperties": false
},
"annotations": {
"readOnlyHint": true,
"destructiveHint": false
}
},
{
"name": "inspect_style",
"description": "Inspect effective values and matching source rules for a widget/class/state in the selected scope. This reads the last valid preview without changing it.",
"inputSchema": {
"type": "object",
"properties": {
"scope": {
"type": "string",
"enum": [
"all",
"lists",
"habits",
"practices",
"diary",
"lumi"
]
},
"widget": {
"type": "string",
"enum": [
"App",
"Button",
"Text",
"Card",
"TextArea",
"TextField",
"NavigationBar",
"NavigationBarItem",
"Image",
"Surface"
]
},
"class": {
"type": "string",
"maxLength": 63
},
"state": {
"type": "string",
"enum": [
"normal",
"hover",
"pressed",
"focus",
"selected",
"disabled"
]
}
},
"required": [
"scope",
"widget",
"state"
],
"additionalProperties": false
},
"annotations": {
"readOnlyHint": true,
"destructiveHint": false
}
},
{
"name": "preview_style",
"description": "Replace the selected custom KSS draft and preview validated changes immediately. Invalid code remains editable and leaves the last working appearance intact. This does not save. Read the current revision first; send the complete custom sheet, preserving unrelated rules.",
"inputSchema": {
"type": "object",
"properties": {
"scope": {
"type": "string",
"enum": [
"all",
"lists",
"habits",
"practices",
"diary",
"lumi"
]
},
"revision": {
"type": "integer",
"minimum": 0,
"description": "The latest revision returned by read_style or the last successful style operation. Read again if another edit changed it."
},
"source": {
"type": "string",
"maxLength": 8191
}
},
"required": [
"scope",
"revision",
"source"
],
"additionalProperties": false
},
"annotations": {
"readOnlyHint": false,
"destructiveHint": false
}
},
{
"name": "save_style",
"description": "Validate and save the selected custom KSS draft for this account. Use after the user requests applying or keeping the preview.",
"inputSchema": {
"type": "object",
"properties": {
"scope": {
"type": "string",
"enum": [
"all",
"lists",
"habits",
"practices",
"diary",
"lumi"
]
},
"revision": {
"type": "integer",
"minimum": 0,
"description": "The latest revision returned by read_style or the last successful style operation. Read again if another edit changed it."
}
},
"required": [
"scope",
"revision"
],
"additionalProperties": false
},
"annotations": {
"readOnlyHint": false,
"destructiveHint": false
}
},
{
"name": "reset_style",
"description": "Reset the selected customization to its shipped default by saving an empty override. Other scopes and app data remain intact.",
"inputSchema": {
"type": "object",
"properties": {
"scope": {
"type": "string",
"enum": [
"all",
"lists",
"habits",
"practices",
"diary",
"lumi"
]
},
"revision": {
"type": "integer",
"minimum": 0,
"description": "The latest revision returned by read_style or the last successful style operation. Read again if another edit changed it."
}
},
"required": [
"scope",
"revision"
],
"additionalProperties": false
},
"annotations": {
"readOnlyHint": false,
"destructiveHint": false
}
},
{
"name": "undo_style",
"description": "Undo the latest edit in this scope and preview the restored draft. It is not saved until save_style.",
"inputSchema": {
"type": "object",
"properties": {
"scope": {
"type": "string",
"enum": [
"all",
"lists",
"habits",
"practices",
"diary",
"lumi"
]
},
"revision": {
"type": "integer",
"minimum": 0,
"description": "The latest revision returned by read_style or the last successful style operation. Read again if another edit changed it."
}
},
"required": [
"scope",
"revision"
],
"additionalProperties": false
},
"annotations": {
"readOnlyHint": false,
"destructiveHint": false
}
},
{
"name": "discard_style",
"description": "Discard unsaved changes in this scope and restore its saved appearance.",
"inputSchema": {
"type": "object",
"properties": {
"scope": {
"type": "string",
"enum": [
"all",
"lists",
"habits",
"practices",
"diary",
"lumi"
]
},
"revision": {
"type": "integer",
"minimum": 0,
"description": "The latest revision returned by read_style or the last successful style operation. Read again if another edit changed it."
}
},
"required": [
"scope",
"revision"
],
"additionalProperties": false
},
"annotations": {
"readOnlyHint": false,
"destructiveHint": false
}
},
{
"name": "format_style",
"description": "Format the current KSS draft without changing its meaning, then preview it. Saving is separate.",
"inputSchema": {
"type": "object",
"properties": {
"scope": {
"type": "string",
"enum": [
"all",
"lists",
"habits",
"practices",
"diary",
"lumi"
]
},
"revision": {
"type": "integer",
"minimum": 0,
"description": "The latest revision returned by read_style or the last successful style operation. Read again if another edit changed it."
}
},
"required": [
"scope",
"revision"
],
"additionalProperties": false
},
"annotations": {
"readOnlyHint": false,
"destructiveHint": false
}
}
]
Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 163 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 149 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 136 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 136 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 125 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 105 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 105 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 109 KiB

Loaded 100 of 5738 files, more files were not shown because too many files have changed in this diff. Show more