Compare commits

...
48 Commits
Author SHA1 Message Date
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
189 changed files with 8043 additions and 1542 deletions

No files matched your search

+2
View File
@@ -138,6 +138,8 @@ jobs:
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
+10 -1
View File
@@ -123,6 +123,8 @@ jobs:
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
build-web:
@@ -351,7 +353,7 @@ jobs:
- name: Build Linux AppImage
env:
APPIMAGE_EXTRACT_AND_RUN: "1"
RAY_RAYLIB_CONFIG: -DSUPPORT_SCREEN_CAPTURE=0 -DSUPPORT_COMPRESSION_API=0 -DSUPPORT_AUTOMATION_EVENTS=0 -DSUPPORT_CLIPBOARD_IMAGE=0 -DSUPPORT_FILEFORMAT_BMP=0 -DSUPPORT_FILEFORMAT_GIF=0 -DSUPPORT_FILEFORMAT_QOI=0 -DSUPPORT_FILEFORMAT_DDS=0 -DSUPPORT_FILEFORMAT_TTF=0
RAY_RAYLIB_CONFIG: -DSUPPORT_SCREEN_CAPTURE=0 -DSUPPORT_COMPRESSION_API=0 -DSUPPORT_AUTOMATION_EVENTS=0 -DSUPPORT_CLIPBOARD_IMAGE=0 -DSUPPORT_FILEFORMAT_BMP=0 -DSUPPORT_FILEFORMAT_GIF=0 -DSUPPORT_FILEFORMAT_QOI=0 -DSUPPORT_FILEFORMAT_DDS=0 -DSUPPORT_FILEFORMAT_TTF=1
run: |
set -euo pipefail
RAY_SDL_INCLUDE_DIR="$(pkg-config --variable=includedir sdl2 | sed 's,/SDL2$,,')"
@@ -381,6 +383,13 @@ jobs:
app_pid=$!
for _ in $(seq 1 30); do
if xwininfo -tree -root | grep -q 'Inner Breeze'; then
sleep 3
# A build without TrueType support draws a pixel font.
if grep -q 'Font is not supported' /tmp/inbe-appimage.log; then
echo "AppImage could not load its fonts"
cat /tmp/inbe-appimage.log || true
exit 1
fi
exit 0
fi
if ! kill -0 "$app_pid" >/dev/null 2>&1; then
+25
View File
@@ -1,4 +1,29 @@
# Changelog
## [2.1.28] - 2026-10-10
### Added
- Connect a phone and a computer by QR code in Profile.
- Leaderboard is its own app.
- Profile > Data shows each sync node's storage.
### Changed
- Profile holds your account, data and Telegram; Settings holds device preferences.
- Diary shows bold text as bold.
- On desktop, a minimized practice opens in its own window.
### Fixed
- Linux: text uses Inner Breeze's fonts again.
- Smoother minimized breathing count.
- The desktop close prompt shows above Apps.
## [2.1.27] - 2026-10-10
### Added
- End a held breath from the minimized practice window with Breath or a double tap.
- Lumi feedback includes the app version, device and system.
### Fixed
- Picture-in-picture opens when you leave Inbe during a practice and returns to it.
- Lumi keeps answers that arrive during picture-in-picture.
- Lumi says whether feedback reached the developer and keeps it to retry.
- Feedback saved by older versions is now sent.
- Fix a startup crash on 32-bit Android phones.
## [2.1.26] - 2026-10-09
### Added
- Detach a running practice into its own resizable desktop window.
+41 -5
View File
@@ -393,12 +393,12 @@ IMAGE_FILES += assets/app/icon-sky-cradle.png assets/app/icon-ink-and-air.png
IMAGE_FILES += $(wildcard assets/social/*.png)
IMAGE_FILES += $(wildcard assets/profile-pictures/*.png)
IMAGE_FILES += $(KRYON_DIR)/icons/ui.png $(KRYON_DIR)/icons/pfp.png
CELL_BUNDLES := $(addprefix $(BUILD_DIR)/cells/,lists.zib habits.zib practices.zib diary.zib lumi.zib)
CELL_BUNDLES := $(addprefix $(BUILD_DIR)/cells/,lists.zib habits.zib practices.zib diary.zib lumi.zib leaderboard.zib)
INBE_BUNDLE := $(BUILD_DIR)/inbe.zib
INBE_FULL_BUNDLE := $(BUILD_DIR)/inbe-full.zib
CELL_SOURCES := $(shell find apps src/cells -name '*.zi' | LC_ALL=C sort) src/core/types.zi src/core/breath_timing.zi $(wildcard src/practices/patterns/*rules.zi) src/practices/patterns/patterns_clock.zi src/practices/patterns/patterns_types.zi src/practices/sun_salutation/sun_salutation_rules.zi src/practices/meditation/meditation_timing.zi
CELL_RESOURCES := $(shell rg --files assets/habits assets/lists assets/diary assets/lumi assets/mcp 2>/dev/null)
WIDGET_SCHEMAS := $(addprefix $(KRYON_DIR)/src/ui/,session.zi geometry.zi drawing_props.zi text_props.zi image_props.zi button_props.zi control_props.zi text_input.zi text_input_props.zi scroll.zi scroll_props.zi semantic.zi text_align.zi checkbox_props.zi toggle_props.zi tab_bar_props.zi box_props.zi) $(addprefix src/cells/,diary_ui_types.zi inbe_ui_types.zi lists_ui_types.zi lumi_ui_types.zi lumi_types.zi)
WIDGET_SCHEMAS := $(addprefix $(KRYON_DIR)/src/ui/,session.zi geometry.zi drawing_props.zi text_props.zi image_props.zi button_props.zi control_props.zi text_input.zi text_input_props.zi scroll.zi scroll_props.zi semantic.zi text_align.zi checkbox_props.zi toggle_props.zi tab_bar_props.zi box_props.zi) $(addprefix src/cells/,diary_ui_types.zi inbe_ui_types.zi lists_ui_types.zi lumi_ui_types.zi lumi_types.zi leaderboard_ui_types.zi)
src/cells/widget_codec.zi: scripts/generate-widget-codecs.py $(WIDGET_SCHEMAS)
python3 scripts/generate-widget-codecs.py
@@ -506,7 +506,9 @@ KRYON_RAYLIB_AUDIO_PERIODS ?= 2
endif
KRYON_RAYLIB_AUDIO_PERIOD_CONFIG := $(if $(strip $(KRYON_RAYLIB_AUDIO_PERIOD_FRAMES)),-DAUDIO_DEVICE_PERIOD_SIZE_IN_FRAMES=$(KRYON_RAYLIB_AUDIO_PERIOD_FRAMES),)
KRYON_RAYLIB_AUDIO_PERIODS_CONFIG := $(if $(strip $(KRYON_RAYLIB_AUDIO_PERIODS)),-DAUDIO_DEVICE_PERIODS=$(KRYON_RAYLIB_AUDIO_PERIODS),)
APP_RAYLIB_CONFIG := $(filter-out -DSUPPORT_MODULE_RAUDIO=0 -DSUPPORT_FILEFORMAT_PNG=0 -DSUPPORT_FILEFORMAT_JPG=0 -DSUPPORT_FILEFORMAT_OGG=0 -DSUPPORT_FILEFORMAT_MP3=%,$(RAY_RAYLIB_CONFIG)) -DSUPPORT_MODULE_RAUDIO=1 -DSUPPORT_FILEFORMAT_JPG=1 -DSUPPORT_FILEFORMAT_OGG=1 -DSUPPORT_FILEFORMAT_MP3=0 $(KRYON_RAYLIB_AUDIO_PERIOD_CONFIG) $(KRYON_RAYLIB_AUDIO_PERIODS_CONFIG)
# Inbe's fonts are TrueType and OpenType files, so every host keeps TTF
# support; without it raylib draws its fallback pixel font.
APP_RAYLIB_CONFIG := $(filter-out -DSUPPORT_MODULE_RAUDIO=0 -DSUPPORT_FILEFORMAT_PNG=0 -DSUPPORT_FILEFORMAT_JPG=0 -DSUPPORT_FILEFORMAT_OGG=0 -DSUPPORT_FILEFORMAT_MP3=% -DSUPPORT_FILEFORMAT_TTF=%,$(RAY_RAYLIB_CONFIG)) -DSUPPORT_MODULE_RAUDIO=1 -DSUPPORT_FILEFORMAT_JPG=1 -DSUPPORT_FILEFORMAT_OGG=1 -DSUPPORT_FILEFORMAT_MP3=0 -DSUPPORT_FILEFORMAT_TTF=1 $(KRYON_RAYLIB_AUDIO_PERIOD_CONFIG) $(KRYON_RAYLIB_AUDIO_PERIODS_CONFIG)
COMMON_CFLAGS := -Wall -Wextra -Os -D_DEFAULT_SOURCE -D_GNU_SOURCE -ffunction-sections -fdata-sections -DSUPPORT_FILEFORMAT_JPG=1 -DUI_EMBEDDED_ONLY=1 -DNATIVE_WINDOW_HAVE_SDL -DKRYON_WITH_SYNC=1
CFLAGS := $(COMMON_CFLAGS) -std=c99 $(RUNTIME_ASSET_CFLAGS) $(SYSTEM_THEME_CFLAGS) $(KRYON_NOTIFICATION_CPPFLAGS) $(KRYON_NOTIFICATION_CFLAGS)
NATIVE_SYSTEM_LDLIBS := $(KRYON_NOTIFICATION_LDLIBS) -lz -lm -lpthread -latomic $(if $(filter linux,$(NATIVE_PLATFORM)),-ldl -lrt,) $(SYSTEM_THEME_LDLIBS)
@@ -950,7 +952,7 @@ native-text-pixels-test: $(TARGET)
sh $(KRYON_DIR)/tests/raylib_text_pixels_test.sh
# Run every visual suite and retain a receipt even when an earlier suite fails.
VISUAL_TEST_TARGETS := native-screenshot-test native-text-pixels-test native-zoom-test native-visual-test launcher-ui-test settings-sidebar-ui-test startup-quit-ui-test locale-render-ui-test lumi-ui-test lumi-history-ui-test habits-cards-ui-test lists-ui-test sync-review-ui-test data-back-ui-test
VISUAL_TEST_TARGETS := practice-images-ui-test leaderboard-ui-test native-screenshot-test native-text-pixels-test native-zoom-test native-visual-test launcher-ui-test settings-sidebar-ui-test startup-quit-ui-test locale-render-ui-test lumi-ui-test lumi-history-ui-test habits-cards-ui-test lists-ui-test sync-review-ui-test data-back-ui-test
visual-test: $(TARGET) $(INBE_FULL_BUNDLE)
env -u DISPLAY -u WAYLAND_DISPLAY -u XAUTHORITY -u GDK_DISPLAY \
-u DBUS_SESSION_BUS_ADDRESS -u SESSION_MANAGER YUE_DESKTOP_RECOVERY=0 \
@@ -998,6 +1000,7 @@ $(KRY_GEN_STAMP): Makefile ziran.lock $(ZI2C_BIN) $(ZI_SRCS) $(KRYON_ZI_MODULES)
--module-path $(KSS_DIR)/src --module-path oqs=$(OQS_DIR)/src --module-path kryon=$(KRYON_DIR)/src/ui --module-path kryon=$(KRYON_DIR)/src/backend \
--module-path $(KRYON_DIR)/src/backend \
--module-path $(GAME2D_DIR)/src \
--module-path qrcode=build/packages/qrcode/src \
--module-path $(ZIRAN_DIR)/std \
--module-path build/packages/daochi-client \
-o $(KRY_GEN_DIR) $(ZI_SRCS)
@@ -1012,6 +1015,7 @@ $(WEB_GEN_STAMP): Makefile ziran.lock $(ZI2C_BIN) $(ZI_SRCS) $(KRYON_ZI_MODULES)
--module-path $(KSS_DIR)/src --module-path oqs=$(OQS_DIR)/src --module-path kryon=$(KRYON_DIR)/src/ui --module-path kryon=$(KRYON_DIR)/src/backend \
--module-path $(KRYON_DIR)/src/backend \
--module-path $(GAME2D_DIR)/src \
--module-path qrcode=build/packages/qrcode/src \
--module-path $(ZIRAN_DIR)/std \
--module-path build/packages/daochi-client \
-o $(WEB_GEN_DIR) $(ZI_SRCS) $(KRYON_DIR)/src/backend/canvas_raster.zi $(KRYON_DIR)/src/backend/canvas_audio.zi $(KRYON_DIR)/src/backend/page_route.zi
@@ -1031,6 +1035,7 @@ $(WINDOWS_GEN_STAMP): Makefile ziran.lock $(ZI2C_BIN) $(ZI_SRCS) $(KRYON_ZI_MODU
--module-path $(KSS_DIR)/src --module-path oqs=$(OQS_DIR)/src --module-path kryon=$(KRYON_DIR)/src/ui --module-path kryon=$(KRYON_DIR)/src/backend \
--module-path $(KRYON_DIR)/src/backend \
--module-path $(GAME2D_DIR)/src \
--module-path qrcode=build/packages/qrcode/src \
--module-path $(ZIRAN_DIR)/std \
--module-path build/packages/daochi-client \
-o $(WINDOWS_GEN_DIR) $(ZI_SRCS)
@@ -1058,6 +1063,7 @@ zi-c-plan9: $(KRY_GEN_STAMP)
--module-path $(KSS_DIR)/src --module-path oqs=$(OQS_DIR)/src --module-path kryon=$(KRYON_DIR)/src/ui --module-path kryon=$(KRYON_DIR)/src/backend \
--module-path $(KRYON_DIR)/src/backend \
--module-path $(GAME2D_DIR)/src \
--module-path qrcode=build/packages/qrcode/src \
--module-path $(ZIRAN_DIR)/std \
--include-dir build/packages/kryon/include --include-dir src \
--include-dir $(KRY_GEN_DIR) --include-dir vendor-builds/sqlite \
@@ -1288,6 +1294,11 @@ hooks-install:
embedded-image-assets-check: $(EMBEDDED_ASSETS_C)
bash ./tests/embedded_image_assets_test.sh
# An icon from a Kryon sheet Inbe does not ship shows "Missing image".
.PHONY: icon-sheets-check
icon-sheets-check: $(PACKAGES_MK)
python3 tests/icon_sheets_test.py $(KRYON_DIR)/src/ui/icon.zi
.PHONY: habits-cards-ui-test
habits-cards-ui-test: $(TARGET)
bash tests/habits_cards_ui_test.sh "$(abspath $(TARGET))"
@@ -1301,7 +1312,7 @@ storage-literals-check:
python3 tests/storage_literals_test.py
bash ./scripts/check-storage-literals.sh
test: clean-text-api-check package-check secret-check storage-literals-check font-bundle-check audio-test-fixture-check embedded-image-assets-check
test: clean-text-api-check package-check secret-check storage-literals-check font-bundle-check audio-test-fixture-check embedded-image-assets-check icon-sheets-check
test: screenshot-scene-test
.PHONY: screenshot-scene-test
@@ -3067,6 +3078,15 @@ app-click-block-zi-test: $(ZI2C_BIN)
data-back-ui-test: $(TARGET)
@sh tests/data_back_ui_test.sh $(abspath $(TARGET))
.PHONY: leaderboard-ui-test
leaderboard-ui-test: $(TARGET)
@sh tests/leaderboard_ui_test.sh $(abspath $(TARGET))
# Missing practice pictures fail the visual gate in CI and releases.
.PHONY: practice-images-ui-test
practice-images-ui-test: $(TARGET)
@sh tests/practice_images_ui_test.sh $(abspath $(TARGET))
test: app-click-block-zi-test
.PHONY: package-release-test
@@ -3176,3 +3196,19 @@ android-geometry-probe-test:
@env -u DISPLAY -u WAYLAND_DISPLAY -u XAUTHORITY -u DBUS_SESSION_BUS_ADDRESS sh tests/android_geometry_probe_test.sh
test: android-geometry-probe-test
.PHONY: lumi-feedback-delivery-test
lumi-feedback-delivery-test: $(ZIRAN_BIN) $(LIBOQS_A) | build-laws
@sh tests/lumi_feedback_delivery_test.sh $(ZIRAN_BIN) $(LIBOQS_A)
test: lumi-feedback-delivery-test
# Lumi reports name the device, system and version (no identifiers).
.PHONY: device-info-test
device-info-test: $(ZIRAN_BIN)
@env -u DISPLAY -u WAYLAND_DISPLAY -u XAUTHORITY $(ZIRAN_BIN) build --target=c --define PLATFORM_DESKTOP --root tests \
--module-path src --module-path build/packages/ziran/std --entry device_info_behavior:Main --exe \
-o build/device-info-test tests/device_info_behavior.zi
@build/device-info-test/device_info_behavior
test: device-info-test
+10
View File
@@ -1,5 +1,15 @@
# Changelog
## [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.
+76 -7
View File
@@ -10,6 +10,10 @@
#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"
@@ -20,6 +24,7 @@
#import, file "../../src/cells/diary_ui_types.zi";
using ImageFit;
using TextAlign;
using ButtonTone;
using ButtonEmphasis;
host_api :: #system_library "host_api";
@@ -38,6 +43,53 @@ 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",
@@ -187,6 +239,9 @@ DiaryView :: (message: DiaryMessage, observed: DiaryUiFrame, today: Date) -> Dia
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
@@ -214,13 +269,27 @@ DiaryView :: (message: DiaryMessage, observed: DiaryUiFrame, today: Date) -> Dia
}
if state.photo_count > 0 {
photo_top := area.bounds.y + area.bounds.height + cast(float32)Scale(60)
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 = Rectangle.{left, photo_top, width, cast(float32)Scale(240)},
.fit = cast(ImageFit)ImageFitContain})
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})
+4
View File
@@ -1,5 +1,9 @@
# 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.
+21
View File
@@ -1,5 +1,26 @@
# Changelog
## [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.
+7 -2
View File
@@ -1,5 +1,6 @@
// The portable root owns app selection and unified navigation policy.
// Its assets contain Lumi, Habits and Practices as recommended cells.
// 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";
@@ -16,6 +17,9 @@ InbeAppForScreen :: (screen: s32) -> s32 {
if screen == ScreenDiary {
return APP_DIARY
}
if screen == ScreenLeaderboard {
return APP_LEADERBOARD
}
if screen == ScreenEList {
return APP_LISTS
}
@@ -62,7 +66,8 @@ InbeApply :: (message: InbeMessage) -> InbeMessage {
}
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_PRACTICE && message.app != APP_DIARY && message.app != APP_LUMI &&
message.app != APP_LEADERBOARD {
message.succeeded = false
return message
}
+7
View File
@@ -0,0 +1,7 @@
# Changelog
## [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()
}
+4
View File
@@ -1,5 +1,9 @@
# 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.
+10
View File
@@ -1,5 +1,15 @@
# Changelog
## [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.
+229 -18
View File
@@ -23,11 +23,13 @@
#import, file "../../src/cells/lumi_types.zi";
#import, file "../../src/cells/lumi_ui_types.zi";
#import, file "../../src/cells/lumi_chart.zi";
#import, file "command_text.zi";
#import, file "engine.zi";
#import, file "message_text.zi";
using ImageFit;
using TextWrap;
using TextAlign;
using ButtonTone;
using ButtonEmphasis;
host_api :: #system_library "host_api";
@@ -70,6 +72,100 @@ candidate_ready: s32;
// Reading a command takes many text matches, so typing reads one per frame.
LUMI_CANDIDATES_PER_FRAME :: 1
// Typing "/" lists Lumi's commands as in Telegram. The list matches the
// command menu of Lumi's Telegram bot, without its Telegram-only commands.
LumiMenuCommand :: struct {
name: string
description: string
// These commands insert "/name " for the text instead of sending.
needs_text: bool
requirement: s32
// Shown only while Lumi waits for a Diary text or a habit name.
choice_only: bool
}
LUMI_MENU_COMMANDS :: 16
menu_revision: s64 = -1;
menu_commands: [LUMI_MENU_COMMANDS]LumiMenuCommand;
menu_scroll: s32;
focus_request: s32;
// A rounded square with a slash, and a paper plane, in Kryon's 24 x 24 icon
// shape format.
LUMI_COMMANDS_ICON :: "S1.8rr:M7 3H17C19.2091 3 21 4.79086 21 7V17C21 19.2091 19.2091 21 17 21H7C4.79086 21 3 19.2091 3 17V7C3 4.79086 4.79086 3 7 3Z|S1.8rr:M14.5 7.5L9.5 16.5"
LUMI_SEND_ICON :: "F:M3.4 20.6L21.2 12.9C21.94 12.58 21.94 11.42 21.2 11.1L3.4 3.4C2.66 3.08 1.9 3.8 2.14 4.57L4.2 11L13 12L4.2 13L2.14 19.43C1.9 20.2 2.66 20.92 3.4 20.6Z"
MenuCommands :: (revision: s64) -> []LumiMenuCommand {
if revision != menu_revision {
menu_revision = revision
table: [LUMI_MENU_COMMANDS]LumiMenuCommand = .[
LumiMenuCommand.{.name = "/help", .description = LumiViewLocaleHost("lumi_command_help")},
LumiMenuCommand.{.name = "/todo", .description = LumiViewLocaleHost("lumi_add"),
.needs_text = true, .requirement = LUMI_LISTS},
LumiMenuCommand.{.name = "/done", .description = LumiViewLocaleHost("lumi_complete"),
.needs_text = true, .requirement = LUMI_LISTS},
LumiMenuCommand.{.name = "/reopen", .description = LumiViewLocaleHost("lumi_reopen"),
.needs_text = true, .requirement = LUMI_LISTS},
LumiMenuCommand.{.name = "/lists", .description = LumiViewLocaleHost("lumi_open_lists"),
.requirement = LUMI_LISTS},
LumiMenuCommand.{.name = "/habit", .description = LumiViewLocaleHost("lumi_complete_habit"),
.requirement = LUMI_HABITS},
LumiMenuCommand.{.name = "/habits", .description = LumiViewLocaleHost("lumi_open_habits"),
.requirement = LUMI_HABITS},
LumiMenuCommand.{.name = "/journal", .description = LumiViewLocaleHost("lumi_write_diary"),
.requirement = LUMI_DIARY},
LumiMenuCommand.{.name = "/diary", .description = LumiViewLocaleHost("lumi_open_diary"),
.requirement = LUMI_DIARY},
LumiMenuCommand.{.name = "/meditate", .description = LumiViewLocaleHost("lumi_start_meditation"),
.requirement = LUMI_PRACTICES},
LumiMenuCommand.{.name = "/whm", .description = LumiViewLocaleHost("lumi_start_whm"),
.requirement = LUMI_PRACTICES},
LumiMenuCommand.{.name = "/practices", .description = LumiViewLocaleHost("lumi_open_practices"),
.requirement = LUMI_PRACTICES},
LumiMenuCommand.{.name = "/progress", .description = LumiViewLocaleHost("lumi_show_progress"),
.requirement = LUMI_PRACTICES},
LumiMenuCommand.{.name = "/feedback", .description = LumiViewLocaleHost("lumi_command_feedback"),
.needs_text = true},
LumiMenuCommand.{.name = "/donate", .description = LumiViewLocaleHost("lumi_show_donations")},
LumiMenuCommand.{.name = "/cancel", .description = LumiViewLocaleHost("cancel_button"),
.choice_only = true}]
menu_commands = table
}
return menu_commands[:]
}
// A draft of "/" and a command name opens the list; a space closes it,
// since the command then takes its text.
MenuOpen :: (value: string) -> bool {
if value.count == 0 || value[0] != cast(u8)47 {
return false
}
for byte: value {
if CommandSpace(byte) {
return false
}
}
return true
}
CommandText :: (command: LumiMenuCommand) -> string {
if !command.needs_text {
return command.name
}
out: Vec(u8)
BuilderPrint(*out, "% ", command.name)
return BuilderFinish(out)
}
FillDraft :: (text: string) {
frame.value = text
frame.cursor = cast(s32)text.count
frame.anchor = frame.cursor
frame.input_scroll = 0
frame.selecting = false
frame.preferred_x_valid = false
frame.focused = true
}
// Interpretation depends on the draft and translated command set. Cursor
// blinking, scrolling and unchanged frames reuse the result, while sending
// still validates the request against the current tools in LumiRespond.
@@ -116,13 +212,7 @@ Suggestion :: (id: s32, text: string, bounds: Rectangle, label: string = "") ->
if Button(frame.session, ButtonProps.{.id = id, .bounds = bounds,
.label = ifx label.count > 0 then label else text, .pill = true, .tone = cast(ButtonTone)ButtonToneNeutral,
.emphasis = cast(ButtonEmphasis)ButtonEmphasisSoft}) != 0 {
frame.value = text
frame.cursor = cast(s32)text.count
frame.anchor = frame.cursor
frame.input_scroll = 0
frame.selecting = false
frame.preferred_x_valid = false
frame.focused = true
FillDraft(text)
return true
}
return false
@@ -254,6 +344,44 @@ LumiView :: (message: LumiMessage, commands: LumiCommands, revision: s64) -> Lum
footer := frame.height - frame.bottom - Scale(16) - input_height
suggestions_top := footer - Scale(ifx LumiTrim(frame.value).count > 0 then 46 else 0)
history_top := Scale(12)
menu := MenuCommands(revision)
menu_matches: [LUMI_MENU_COMMANDS]s32
menu_count: s32 = 0
// Enter chooses the exact command, otherwise the first one listed.
menu_target: s32 = -1
if MenuOpen(frame.value) {
for index: cast(s32)0..LUMI_MENU_COMMANDS - 1 {
command := menu[index]
if (command.requirement != 0 && (frame.available_apps & command.requirement) == 0) ||
(command.choice_only && !frame.choosing_habit && !frame.choosing_diary) ||
!LumiStarts(command.name, frame.value) {
continue
}
if menu_target < 0 || LumiEqual(command.name, frame.value) {
menu_target = menu_count
}
menu_matches[menu_count] = index
menu_count += 1
}
}
menu_row := Scale(44)
menu_height := menu_count * menu_row
// Four and a half rows show that a longer list scrolls.
if menu_height > menu_row * 9 / 2 {
menu_height = menu_row * 9 / 2
}
if menu_count > 0 && footer - Scale(8) - menu_height - history_top < Scale(68) {
menu_height = footer - Scale(8) - history_top - Scale(68)
if menu_height < menu_row {
menu_height = menu_row
}
}
menu_top := footer - Scale(8) - menu_height
if menu_count > 0 {
suggestions_top = menu_top
} else {
menu_scroll = 0
}
chat_height := suggestions_top - history_top - Scale(8)
if chat_height < Scale(60) {
chat_height = Scale(60)
@@ -342,8 +470,9 @@ LumiView :: (message: LumiMessage, commands: LumiCommands, revision: s64) -> Lum
LUMI_LISTS, LUMI_HABITS, LUMI_PRACTICES, LUMI_DIARY, 0, 0, 0, 0, 0, LUMI_DIARY, LUMI_PRACTICES, 0]
suggestion_count: s32 = 0
selected: bool
limit: s32 = 2
chip_width := (width - Scale(8)) / limit
// The command list replaces the suggestion chips while it is open.
limit: s32 = ifx menu_count > 0 then 0 else 2
chip_width := (width - Scale(8)) / 2
action := DraftIntent(typed, commands, revision)
if action.kind == 0 && frame.choosing_habit {
action = LumiAction.{.kind = LUMI_COMPLETE_HABIT, .title = typed}
@@ -411,13 +540,79 @@ LumiView :: (message: LumiMessage, commands: LumiCommands, revision: s64) -> Lum
Bounds(x + suggestion_count * (chip_width + Scale(8)), suggestions_top, chip_width, Scale(36))) || selected
suggestion_count += 1
}
chosen: s32 = -1
if menu_count > 0 {
Box(frame.session, BoxProps.{.key = cast(u64)360000,
.bounds = Bounds(x, menu_top, width, menu_height),
.fill = Color.{156, 156, 156, 24}, .radius = cast(float32)Scale(12)})
menu_list := Scroll(frame.session, ScrollProps.{.key = cast(u64)360001,
.bounds = Bounds(x, menu_top, width, menu_height),
.content_height = menu_count * menu_row, .scroll_offset = menu_scroll, .scale = frame.scale})
menu_scroll = menu_list.scroll_offset
if menu_list.opened {
name_width := Scale(104)
for row: cast(s32)0..menu_count - 1 {
top := cast(s32)menu_list.content.y + row * menu_row
if top + menu_row < menu_top || top > menu_top + menu_height {
continue
}
index := menu_matches[row]
command := menu[index]
key := 360100 + index * 4
if row == menu_target {
Box(frame.session, BoxProps.{.key = cast(u64)key,
.bounds = Bounds(x, top, width, menu_row),
.fill = Color.{156, 188, 143, 48}, .radius = cast(float32)Scale(12)})
}
if Button(frame.session, ButtonProps.{.id = 360200 + index,
.bounds = Bounds(x, top, width, menu_row), .invisible = true,
.label = command.description}) != 0 {
chosen = index
}
strong: [1]TextRange = .[TextRange.{.start = 0, .end = cast(s32)command.name.count}]
Text(frame.session, TextProps.{.key = cast(u64)(key + 1),
.bounds = Bounds(x + Scale(16), top, name_width, menu_row),
.text = command.name, .font = frame.font, .strong = strong[:],
.wrap = cast(TextWrap)TextWrapNone, .vertical_align = cast(TextAlign)TextAlignCenter})
// Long translations wrap to a second line on narrow phones.
Text(frame.session, TextProps.{.key = cast(u64)(key + 2),
.bounds = Bounds(x + Scale(16) + name_width, top,
width - Scale(32) - name_width, menu_row),
.text = command.description, .font = Scale(14),
.wrap = cast(TextWrap)TextWrapAuto, .vertical_align = cast(TextAlign)TextAlignCenter})
}
End(frame.session)
}
}
// As in Telegram, an empty draft offers the command button and a draft
// offers Send. A pending answer keeps Send visible as its progress.
show_commands := LumiTrim(frame.value).count == 0 && !frame.waiting
if show_commands && Button(frame.session, ButtonProps.{.id = 30012,
.bounds = Bounds(x + width - Scale(48), footer, Scale(48), Scale(48)),
.label = LumiViewLocaleHost("lumi_commands"), .icon_shape = LUMI_COMMANDS_ICON, .icon_only = true,
.tone = cast(ButtonTone)ButtonToneNeutral, .emphasis = cast(ButtonEmphasis)ButtonEmphasisGhost}) != 0 {
FillDraft("/")
selected = true
}
// The command button and the list keep typing in the draft, as Telegram
// does, rather than leaving the focus on the pressed button. Apps built
// before Kryon's focus fix give the focus back to that button on the
// next frame, so the request lasts two frames.
if selected || chosen >= 0 {
focus_request = 2
}
field_input := frame.input
if focus_request > 0 {
field_input.focus = true
focus_request -= 1
}
field := TextArea(frame.session, TextAreaProps.{.key = cast(u64)300200, .focus_id = 30010,
.bounds = Bounds(x, footer, width - Scale(80), input_height),
.bounds = Bounds(x, footer, width - Scale(56), input_height),
.value = frame.value, .placeholder = LumiViewLocaleHost("lumi_placeholder"), .label = "Lumi",
.cursor = frame.cursor, .anchor = frame.anchor, .scroll_y = frame.input_scroll,
.selecting = frame.selecting, .preferred_x = frame.preferred_x,
.preferred_x_valid = frame.preferred_x_valid, .wrap = true,
.focused = frame.focused, .input = frame.input, .max_bytes = LUMI_INPUT_MAX - 1,
.focused = frame.focused, .input = field_input, .max_bytes = LUMI_INPUT_MAX - 1,
.max_codepoints = LUMI_INPUT_MAX - 1})
if !selected {
if field.edit.changed && field.edit.start >= 0 && field.edit.end >= field.edit.start &&
@@ -441,17 +636,33 @@ LumiView :: (message: LumiMessage, commands: LumiCommands, revision: s64) -> Lum
}
frame.clipboard_write = field.clipboard_write
frame.clipboard_text = field.clipboard_text
send := Button(frame.session, ButtonProps.{.id = 30011,
.bounds = Bounds(x + width - Scale(72), footer, Scale(72), Scale(48)),
.label = LumiViewLocaleHost("lumi_send"), .disabled = frame.waiting,
.loading = frame.waiting, .tone = cast(ButtonTone)ButtonToneNeutral,
.emphasis = cast(ButtonEmphasis)ButtonEmphasisSoft}) != 0
if !frame.waiting && (send || field.committed) && LumiTrim(frame.value).count > 0 && !selected {
send := !show_commands && Button(frame.session, ButtonProps.{.id = 30011,
.bounds = Bounds(x + width - Scale(48), footer, Scale(48), Scale(48)),
.label = LumiViewLocaleHost("lumi_send"), .icon_shape = LUMI_SEND_ICON, .icon_only = true,
.disabled = frame.waiting, .loading = frame.waiting, .tone = cast(ButtonTone)ButtonToneNeutral,
.emphasis = cast(ButtonEmphasis)ButtonEmphasisGhost}) != 0
if chosen < 0 && field.committed && !send && menu_target >= 0 && !frame.waiting && !selected {
chosen = menu_matches[menu_target]
}
submit := ""
if chosen >= 0 {
// A command that needs text, or one chosen while Lumi is answering,
// waits in the draft.
text := CommandText(menu[chosen])
if menu[chosen].needs_text || frame.waiting {
FillDraft(text)
} else {
submit = text
}
} else if !frame.waiting && (send || field.committed) && LumiTrim(frame.value).count > 0 && !selected {
submit = frame.value
}
if submit.count > 0 {
message.action = LUMI_SEND
// The host owns the draft buffer. Keep the submitted text before
// WriteLumiUiHost clears that buffer for the next message.
submitted: Vec(u8)
BuilderPrint(*submitted, "%", frame.value)
BuilderPrint(*submitted, "%", submit)
message.input = BuilderFinish(submitted)
frame.value = ""
frame.cursor = 0
+4
View File
@@ -1,5 +1,9 @@
# 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.
+2 -1
View File
@@ -8,7 +8,8 @@
"inbe.practices",
"inbe.lists",
"inbe.diary",
"inbe.lumi"
"inbe.lumi",
"inbe.leaderboard"
]
}
]
+19 -13
View File
@@ -1,41 +1,47 @@
{
"host_api": 4,
"host_api": 5,
"module_api": 2,
"apps": {
"inbe": {
"id": "inbe",
"version": "2.1.20",
"sequence": 17,
"version": "2.1.25",
"sequence": 22,
"bundled": true
},
"habits": {
"id": "inbe.habits",
"version": "1.0.3",
"sequence": 4,
"version": "1.0.4",
"sequence": 5,
"bundled": true
},
"practices": {
"id": "inbe.practices",
"version": "1.1.3",
"sequence": 5,
"version": "1.1.4",
"sequence": 6,
"bundled": true
},
"lists": {
"id": "inbe.lists",
"version": "1.0.3",
"sequence": 4,
"version": "1.0.4",
"sequence": 5,
"bundled": true
},
"diary": {
"id": "inbe.diary",
"version": "1.1.5",
"sequence": 7,
"version": "1.1.7",
"sequence": 9,
"bundled": true
},
"lumi": {
"id": "inbe.lumi",
"version": "1.3.3",
"sequence": 10,
"version": "1.3.5",
"sequence": 12,
"bundled": true
},
"leaderboard": {
"id": "inbe.leaderboard",
"version": "1.0.0",
"sequence": 1,
"bundled": true
}
}
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
+11
View File
@@ -9,6 +9,8 @@ tokens {
review-added: #17663a;
review-removed: #b3261e;
review-changed: #805000;
storage-warning: #a36200;
storage-full: #b3261e;
launcher-canvas: #14202b;
launcher-panel: #1d2c39;
launcher-hover: #293d4c;
@@ -37,6 +39,15 @@ Text.review-detail {
Text.review-heading {
foreground: text;
}
Text.storage-detail {
foreground: muted;
}
Text.storage-warning {
foreground: storage-warning;
}
Text.storage-full {
foreground: storage-full;
}
Text.practice-heading {
foreground: text;
+21 -12
View File
@@ -1,14 +1,16 @@
# Inner Breeze cell packages
Inner Breeze has a root package and five cells, including Lumi.
Inner Breeze has a root package and six cells, including Lumi and Leaderboard.
The interface calls these Apps and presents them in one sidebar settings list.
All five cells ship with the app and can be added to the sidebar offline.
All six cells ship with the app and can be added to the sidebar offline.
Leaderboard is installed for every profile but is not pinned by default.
Selections are stored per app and synced with the account. Lumi always ships with
Inner Breeze. Her selection controls her sidebar shortcut, while her harness and
tools remain available.
The root contains shared fonts, translations, themes and icons; Practices owns
its images and sounds. Each feature can add private package resources under
`assets/lumi/`, `assets/habits/`, `assets/practices/`, `assets/lists/` or `assets/diary/`.
`assets/lumi/`, `assets/habits/`, `assets/practices/`, `assets/lists/`, `assets/diary/`
or `assets/leaderboard/`.
The cell picker, Lists and Diary editor/calendar compose the
standard Kryon widgets inside their ZIBs. Raylib, Android and canvas bind the
same typed render effects to their normal widgets. File dialogs, persistence,
@@ -70,6 +72,13 @@ app effects; no database pointers or arbitrary code cross the cell boundary.
Lumi can open Settings or Appearance, change the app theme with `/theme forest`
(or another published theme name), and choose light, dark or system mode.
These actions use the same validation, persistence and refresh path as Settings.
Bug reports and suggestions still require the feedback card's Yes. The first
acknowledgement means the report is queued on this device; delivery requires an
Inner Breeze account and internet access. Lumi confirms receipt by the private
developer inbox only after Daochi returns the matching report ID. A failed or
invalid acknowledgement leaves the approved report queued for retry and adds a
failure notice once, including across restarts. Inbox receipt does not mean a
developer has reviewed the report or started a fix.
Lumi can display typed chart and donation cards alongside text replies. Ask
`/progress sessions 7`, `/progress meditation 30`, `/progress retention 7`, or
`/progress habits 7` (1–31 days including today). Charts use the active account's
@@ -95,9 +104,9 @@ Enable chat / Disable chat control preserves the agent and saved conversation.
`make cells` produces:
- `build/inbe.zib`, containing `cells/lumi.zib`, `cells/habits.zib` and `cells/practices.zib`.
- Independent `build/cells/{lumi,habits,practices,lists,diary}.zib` files.
- `build/inbe-full.zib`, a local development and test bundle containing all five.
- `build/inbe.zib`, containing every cell under `cells/`.
- Independent `build/cells/{lumi,habits,practices,lists,diary,leaderboard}.zib` files.
- `build/inbe-full.zib`, a local development and test bundle containing all six.
Native and browser builds embed the base root. Android stores `inbe.zib`
once in APK assets and opens its bytes through the NDK asset manager. Each
@@ -186,9 +195,9 @@ configured. Incomplete configuration produces downloadable build artifacts
without claiming publication. When only the signing configuration is present,
the archived artifacts include signed releases ready to import on the node.
1. Register the six app IDs and an active Ed25519 publisher key in Daochi.
2. Add the public key to `apps/publishers.json`, scoped to the six app IDs:
`[{"key_id":"<registered ID>","public_key":"<64 lowercase hex digits>","app_ids":["inbe","inbe.habits","inbe.practices","inbe.lists","inbe.diary","inbe.lumi"]}]`.
1. Register the seven app IDs and an active Ed25519 publisher key in Daochi.
2. Add the public key to `apps/publishers.json`, scoped to the seven app IDs:
`[{"key_id":"<registered ID>","public_key":"<64 lowercase hex digits>","app_ids":["inbe","inbe.habits","inbe.practices","inbe.lists","inbe.diary","inbe.lumi","inbe.leaderboard"]}]`.
3. Configure repository secrets `INBE_PACKAGE_SIGNING_KEY` (PEM Ed25519 key)
and `INBE_NODE_SSH_KEY` (deployment SSH key), plus
`INBE_NODE_KNOWN_HOSTS`, `INBE_NODE_SSH_TARGET` and
@@ -222,9 +231,9 @@ suspended, revoked and node-restricted registrations are not replaced. Repeating
the preparation retains the registry protocol version and existing scopes while
updating the app's client version.
The wrapper release workflow requires public pins covering all six app IDs,
The wrapper release workflow requires public pins covering all seven app IDs,
so each included cell has a configured publisher for its updates.
The public pin `inbe-2026-10` covers the root and all five apps. The private
The public pin `inbe-2026-10` covers the root and all six apps. The private
signing key is kept in an ignored local backup and is excluded from every
package artifact. Optional production installation requires registering this
public key on the node and publishing the signed packages. Automatic server
@@ -233,7 +242,7 @@ configuration above; a checked build does not establish that configuration.
## Account app choices
Sync v6 uses `private.inbe.v1.app-preferences`. Each of the five `app_used_*`
Sync v6 uses `private.inbe.v1.app-preferences`. Each of the six `app_used_*`
keys is a separate timestamped record, including explicit zero values for
removals. Independent changes merge without overwriting unrelated selections.
Pending local choices win equal timestamps; newer remote choices win.
+5 -2
View File
@@ -56,8 +56,8 @@ android {
minSdk 21
targetSdk 36
testInstrumentationRunner "android.test.InstrumentationTestRunner"
versionCode 163
versionName "2.1.26"
versionCode 165
versionName "2.1.28"
manifestPlaceholders = [
inbeAppLabel: "Inner Breeze",
inbeUsesCleartextTraffic: "false"
@@ -219,6 +219,9 @@ dependencies {
implementation 'androidx.core:core:1.12.0'
implementation 'androidx.health.connect:connect-client:1.1.0'
implementation 'org.unifiedpush.android:connector:3.3.3-rc1'
// QR code scanning. ZXing core 3.3 keeps Android 5 supported.
implementation('com.journeyapps:zxing-android-embedded:4.3.0') { transitive = false }
implementation 'com.google.zxing:core:3.3.0'
gplayImplementation platform('com.google.firebase:firebase-bom:34.18.0')
gplayImplementation 'com.google.firebase:firebase-messaging'
}
+7
View File
@@ -131,5 +131,12 @@
<action android:name="org.unifiedpush.android.connector.PUSH_EVENT" />
</intent-filter>
</service>
<!-- The QR scanner follows how the device is held; ZXing's own
manifest locks it to landscape. -->
<activity
android:name="com.journeyapps.barcodescanner.CaptureActivity"
android:screenOrientation="fullSensor"
tools:replace="screenOrientation" />
</application>
</manifest>
+2
View File
@@ -25,6 +25,7 @@ set(SQLITE_BUILD_DIR "${CMAKE_BINARY_DIR}/sqlite")
set(SQLITE_AMALGAMATION_C "${SQLITE_BUILD_DIR}/sqlite3.c")
set(SQLITE_AMALGAMATION_H "${SQLITE_BUILD_DIR}/sqlite3.h")
include("${KRYON_DIR}/cmake/KryonAndroid.cmake")
kryon_android_reproducible_paths("${REPO_ROOT}")
set(OQS_BUILD_ONLY_LIB ON CACHE BOOL "" FORCE)
set(OQS_USE_OPENSSL OFF CACHE BOOL "" FORCE)
set(OQS_MINIMAL_BUILD "SIG_ml_dsa_44;KEM_ml_kem_768" CACHE STRING "" FORCE)
@@ -84,6 +85,7 @@ file(GLOB_RECURSE APP_ZIRAN_SOURCES CONFIGURE_DEPENDS "${SRC_DIR}/*.zi")
file(GLOB_RECURSE APP_LIBRARY_ZIRAN_SOURCES CONFIGURE_DEPENDS
"${KRYON_DIR}/src/ui/*.zi" "${KRYON_DIR}/src/backend/*.zi"
"${REPO_ROOT}/build/packages/kss/src/*.zi" "${REPO_ROOT}/build/packages/oqs/src/*.zi" "${REPO_ROOT}/build/packages/game2d/src/*.zi"
"${REPO_ROOT}/build/packages/qrcode/src/*.zi"
"${ZIRAN_DIR}/std/*.zi" "${REPO_ROOT}/build/packages/daochi-client/*.zi")
set(APP_ZIRAN_DEFINES --define ANDROID_BUILD)
set(APP_ZIRAN_CHECK_DEFINES "ANDROID_BUILD")
@@ -32,6 +32,7 @@ final class HttpTransport {
final URL url;
final int capacity;
final int timeout;
final long deadline;
final Map<String, String> headers = new LinkedHashMap<>();
volatile HttpURLConnection connection;
volatile Future<?> worker;
@@ -46,6 +47,7 @@ final class HttpTransport {
this.url = url;
this.capacity = capacity;
this.timeout = timeout;
this.deadline = System.nanoTime() + TimeUnit.MILLISECONDS.toNanos(timeout);
}
}
@@ -59,10 +61,15 @@ final class HttpTransport {
synchronized int create(byte[] methodBytes, byte[] urlBytes, int capacity, int timeout) {
if (closed || methodBytes == null || urlBytes == null || methodBytes.length < 1 ||
methodBytes.length > 31 || urlBytes.length < 1 || urlBytes.length >= 2048 ||
capacity < 1 || capacity > LIMIT || timeout < 1 || timeout > 900000 ||
transfers.size() >= 8) {
capacity < 1 || capacity > LIMIT || timeout < 1 || timeout > 900000) {
return 0;
}
if (transfers.size() >= 8) {
reclaimUncollected();
if (transfers.size() >= 8) {
return 0;
}
}
try {
String method = text(methodBytes);
URL url = new URL(text(urlBytes));
@@ -127,12 +134,13 @@ final class HttpTransport {
}
private void expire(int id, Transfer transfer) {
// Also reclaim completed responses whose native caller lost its JNI
// attachment or stopped polling. A handle never outlives its deadline.
if (!transfers.remove(id, transfer)) {
return;
}
// The deadline bounds the exchange, not its collection. A completed
// response waits for the caller, which does not poll while paused,
// in picture-in-picture or during a practice.
synchronized (transfer) {
if (transfer.state >= 0 || !transfers.remove(id, transfer)) {
return;
}
transfer.cancelled = true;
transfer.state = 0;
transfer.response = null;
@@ -140,6 +148,23 @@ final class HttpTransport {
stop(transfer);
}
// Free the slots of completed responses left uncollected past their
// deadline, so a caller that lost its JNI handle cannot exhaust them.
private void reclaimUncollected() {
long now = System.nanoTime();
for (Map.Entry<Integer, Transfer> entry : transfers.entrySet()) {
Transfer transfer = entry.getValue();
synchronized (transfer) {
if (transfer.state < 0 || now - transfer.deadline < 0 ||
!transfers.remove(entry.getKey(), transfer)) {
continue;
}
transfer.cancelled = true;
transfer.response = null;
}
}
}
private static void stop(Transfer transfer) {
Future<?> worker = transfer.worker;
if (worker != null) {
@@ -164,7 +189,7 @@ final class HttpTransport {
connection.setInstanceFollowRedirects(false);
connection.setUseCaches(false);
connection.setConnectTimeout(Math.min(15000, transfer.timeout));
connection.setReadTimeout(Math.min(30000, transfer.timeout));
connection.setReadTimeout(transfer.timeout);
connection.setRequestMethod(transfer.method);
// System HTTPS trust and hostname verification are left intact.
for (Map.Entry<String, String> header : transfer.headers.entrySet()) {
@@ -64,6 +64,10 @@ public class MainActivity extends NativeActivity {
private boolean pictureWindowEntering;
private boolean activityStopped;
private int pictureWindowGeneration;
// Flips each time the floating window opens back into the app, so native
// shows the practice instead of the page behind its in-app window. It is
// static because native state also outlives a recreated activity.
private static int pictureWindowReturns;
// Called by the native frame thread. A volatile snapshot avoids changing
// practice state from Android's UI callbacks.
@@ -87,8 +91,9 @@ public class MainActivity extends NativeActivity {
}
private void refreshPictureWindowState() {
pictureWindowGeneration = (pictureWindowGeneration + 1) & 0x1fffffff;
pictureWindowState = (pictureWindowGeneration << 2) | (supportsPictureWindow() ? 1 : 0)
pictureWindowGeneration = (pictureWindowGeneration + 1) & 0x0fffffff;
pictureWindowState = (pictureWindowGeneration << 3) | ((pictureWindowReturns & 1) << 2)
| (supportsPictureWindow() ? 1 : 0)
| (Build.VERSION.SDK_INT >= 26 && isInPictureInPictureMode()
&& !activityStopped ? 2 : 0);
}
@@ -102,8 +107,10 @@ public class MainActivity extends NativeActivity {
return params.build();
}
public void updatePictureWindow(boolean enabled, boolean requested) {
if (enabled == pictureWindowEnabled && !requested) {
// Leaving the app opens the floating window on its own; nothing in the
// app asks for it.
public void updatePictureWindow(boolean enabled) {
if (enabled == pictureWindowEnabled) {
return;
}
pictureWindowEnabled = enabled;
@@ -112,25 +119,12 @@ public class MainActivity extends NativeActivity {
return;
}
setPictureInPictureParams(pictureWindowParams());
if (requested && enabled) {
enterPictureWindow(true);
}
});
}
private void enterPictureWindow(boolean explicit) {
private void enterPictureWindow() {
if (!supportsPictureWindow() || !pictureWindowEnabled ||
isInPictureInPictureMode() || isFinishing()) {
return;
}
if (!allowsPictureWindow()) {
if (explicit) {
Intent settings = new Intent("android.settings.PICTURE_IN_PICTURE_SETTINGS",
Uri.parse("package:" + getPackageName()));
if (settings.resolveActivity(getPackageManager()) != null) {
startActivity(settings);
}
}
isInPictureInPictureMode() || isFinishing() || !allowsPictureWindow()) {
return;
}
pictureWindowEntering = true;
@@ -147,8 +141,11 @@ public class MainActivity extends NativeActivity {
@Override
protected void onUserLeaveHint() {
super.onUserLeaveHint();
if (Build.VERSION.SDK_INT >= 26 && Build.VERSION.SDK_INT < 31) {
enterPictureWindow(false);
// Android 12 enters on its own only when the next activity resumes
// while this one pauses, as the stock launcher does. Leaving for a
// third-party launcher or another app comes here instead.
if (Build.VERSION.SDK_INT >= 26) {
enterPictureWindow();
}
}
@@ -156,6 +153,11 @@ public class MainActivity extends NativeActivity {
public void onPictureInPictureModeChanged(boolean visible, Configuration configuration) {
super.onPictureInPictureModeChanged(visible, configuration);
pictureWindowEntering = false;
// Closing the floating window stops the activity first; opening it
// back into the app leaves the activity started.
if (!visible && !activityStopped) {
pictureWindowReturns++;
}
refreshPictureWindowState();
requestInsetRefresh();
syncLifecycleState("onPictureInPictureModeChanged");
@@ -234,6 +236,7 @@ public class MainActivity extends NativeActivity {
private static final String TAG = "MainActivity";
private static final int REQUEST_IMPORT_ZIP = 1001;
private static final int REQUEST_POST_NOTIFICATIONS = 1002;
private static final int REQUEST_QR_SCAN = 1003;
private static final int REQUEST_HEALTH_CONNECT = HealthConnectExport.REQUEST_CODE;
private static final String DOWNLOAD_CHANNEL_ID = "runtime_downloads";
private static final int DOWNLOAD_NOTIFICATION_ID = 2001;
@@ -258,6 +261,7 @@ public class MainActivity extends NativeActivity {
private boolean notificationPermissionRequestInFlight = false;
private int lastDeleteRepeatCount = -1;
private int pendingImportKind = 0;
private int pendingQrScanKind = 5;
String lastHealthConnectPath = null;
private boolean pendingStartPractice = false;
private int pendingStartPracticeId = -1;
@@ -549,6 +553,30 @@ public class MainActivity extends NativeActivity {
return SyncNetwork.webSocketWait(TAG, urlText, headers);
}
// Scans a QR code with ZXing's camera screen. The text returns through the
// import result channel under `kind`.
public void openQrScanner(final String prompt, final int kind) {
runOnUiThread(new Runnable() {
@Override
public void run() {
try {
com.google.zxing.integration.android.IntentIntegrator integrator =
new com.google.zxing.integration.android.IntentIntegrator(MainActivity.this);
integrator.setDesiredBarcodeFormats(com.google.zxing.integration.android.IntentIntegrator.QR_CODE);
integrator.setPrompt(prompt == null ? "" : prompt);
integrator.setBeepEnabled(false);
integrator.setOrientationLocked(false);
integrator.setRequestCode(REQUEST_QR_SCAN);
pendingQrScanKind = kind;
integrator.initiateScan();
} catch (Exception e) {
Log.e(TAG, "Failed to open QR scanner", e);
nativeImportCancelled(kind);
}
}
});
}
public void openImportPicker(final String mimeTypesCsv, final int kind) {
runOnUiThread(new Runnable() {
@Override
@@ -795,6 +823,18 @@ public class MainActivity extends NativeActivity {
return;
}
if (requestCode == REQUEST_QR_SCAN) {
com.google.zxing.integration.android.IntentResult scanned =
com.google.zxing.integration.android.IntentIntegrator.parseActivityResult(resultCode, data);
String contents = scanned == null ? null : scanned.getContents();
if (contents == null || contents.isEmpty()) {
nativeImportCancelled(pendingQrScanKind);
} else {
nativeImportSelectedFile(pendingQrScanKind, contents);
}
return;
}
if (requestCode != REQUEST_IMPORT_ZIP) return;
if (resultCode != RESULT_OK || data == null || data.getData() == null) {
@@ -0,0 +1,11 @@
Added
---
- End a held breath from the minimized practice window with Breath or a double tap.
- Lumi feedback includes the app version, device and system.
Fixed
---
- Picture-in-picture opens when you leave Inbe during a practice and returns to it.
- Lumi keeps answers that arrive during picture-in-picture.
- Lumi says whether feedback reached the developer and keeps it to retry.
- Feedback saved by older versions is now sent.
- Fix a startup crash on 32-bit Android phones.
@@ -0,0 +1,15 @@
Added
---
- Connect a phone and a computer by QR code in Profile.
- Leaderboard is its own app.
- Profile > Data shows each sync node's storage.
Changed
---
- Profile holds your account, data and Telegram; Settings holds device preferences.
- Diary shows bold text as bold.
- On desktop, a minimized practice opens in its own window.
Fixed
---
- Linux: text uses Inner Breeze's fonts again.
- Smoother minimized breathing count.
- The desktop close prompt shows above Apps.
+148 -15
View File
@@ -100,9 +100,6 @@ Odchozi
[profile_no_leaderboard_data]
Zadna data zebricku
---
[profile_practice_label]
Cviceni
---
[profile_my_habits_title]
Moje návyky
---
@@ -1920,12 +1917,6 @@ Data
[profile_data_management_body]
Import, export a úložiště
---
[profile_leaderboard_preview_body]
Zobrazit žebříček a aktuální sérii
---
[profile_no_rank_short]
Zatím bez umístění
---
[appearance_style_label]
Styl
---
@@ -2324,7 +2315,7 @@ Odpověď vývojáře:
---
[lumi_feedback_saved]
Zpětná vazba byla uložena pro vývojáře.
Uloženo v tomto zařízení a čeká na odeslání do schránky vývojáře. Je potřeba účet Inner Breeze a přístup k internetu.
---
[lumi_show_progress]
@@ -2358,7 +2349,7 @@ V tomto období není zaznamenána žádná aktivita.
---
[lumi_feedback_confirm]
Odeslat tuto zpětnou vazbu vývojáři?
Odeslat tuto zpětnou vazbu vývojáři? Přiloží se verze aplikace, model zařízení a verze systému.
---
[lumi_feedback_yes]
@@ -2368,6 +2359,15 @@ Ano
[lumi_feedback_no]
Ne
---
[lumi_commands]
Příkazy
---
[lumi_command_help]
Ukázat, co Lumi umí
---
[lumi_command_feedback]
Poslat zpětnou vazbu vývojáři
---
[lumi_telegram]
Zprávy z Telegramu
@@ -2655,10 +2655,143 @@ Poslední známé cvičení · čekání na aktualizace
Čekání na zařízení, kde cvičení probíhá
---
[session_detach_button]
Oddělit okno cvičení
[lumi_feedback_delivered]
Schránka vývojáře přijala vaši zpětnou vazbu.
---
[session_attach_button]
Vrátit okno do aplikace
[lumi_feedback_unavailable]
Doručení do schránky vývojáře není potvrzeno. Vaše zpětná vazba zůstává uložená v tomto zařízení a odeslání se zkusí znovu.
---
[sync_storage_full]
Synchronizační uzel nemá místo pro tyto změny, proto se nesynchronizují. Vypni pro něj nahrávání fotek v Profil › Data.
---
[profile_node_storage_title]
Úložiště uzlů
---
[profile_node_storage_hint]
Místo, které tvůj účet zabírá na každém uzlu, se kterým se synchronizuješ.
---
[profile_node_storage_active]
Používá se
---
[profile_node_storage_unknown]
Využití se zobrazí po příští synchronizaci s tímto uzlem.
---
[profile_node_storage_used_of]
Využito %s z %s
---
[profile_node_storage_used_unlimited]
Využito %s · bez limitu
---
[profile_node_storage_nearly_full]
Téměř plné. Až se zaplní, změny se sem přestanou synchronizovat.
---
[profile_node_storage_nearly_full_media]
Téměř plné. Nejrychleji ho plní fotky; vypni nahrávání fotek, aby se záznamy dál synchronizovaly.
---
[profile_node_storage_full]
Pro nejnovější změny není místo, proto se do tohoto uzlu nesynchronizují.
---
[profile_node_storage_full_media]
Pro nejnovější změny není místo, proto se do tohoto uzlu nesynchronizují. Vypni níže nahrávání fotek, aby se synchronizovalo vše ostatní.
---
[profile_node_storage_photos]
Fotky a videa z tohoto zařízení zaberou na uzlu asi %s.
---
[profile_node_storage_media]
Nahrávat fotky a videa
---
[profile_node_storage_media_on]
Fotky se do tohoto uzlu synchronizují spolu se záznamy v deníku.
---
[profile_node_storage_media_off]
Fotky zůstanou v tomto zařízení. Záznamy se dál synchronizují a ostatní zařízení ukážou, kde fotka je.
---
[profile_node_storage_media_failed]
Nahrávání fotek pro tento uzel se nepodařilo změnit.
---
[diary_photo_no_room]
Na %s není místo pro tuto fotku. Vypni nahrávání fotek v Profil › Data.
---
[diary_photo_unavailable]
Tato fotka není v tomto zařízení. Zůstává v zařízení nebo uzlu, který fotky uchovává.
---
[device_link_title]
Připojit zařízení
---
[device_link_intro_send]
Přidejte k tomuto účtu další telefon nebo počítač pomocí QR kódu.
---
[device_link_intro_receive]
Používáte Inner Breeze už na jiném zařízení? Připojte toto pomocí QR kódu.
---
[device_link_show]
Zobrazit kód
---
[device_link_scan]
Naskenovat kód
---
[device_link_show_hint_send]
Na novém zařízení otevřete Profil, potom Připojit zařízení, klepněte na Naskenovat kód a namiřte fotoaparát sem.
---
[device_link_show_hint_receive]
Na telefonu, který už váš účet používá, otevřete Profil, potom Připojit zařízení, klepněte na Naskenovat kód a namiřte fotoaparát sem.
---
[device_link_scan_prompt]
Namiřte fotoaparát na kód na druhém zařízení
---
[device_link_compare]
Zkontrolujte, že druhé zařízení ukazuje stejné číslo, a pak připojte.
---
[device_link_waiting_compare]
Na druhém zařízení zkontrolujte toto číslo a klepněte na Připojit.
---
[device_link_ask]
Připojit druhé zařízení k vašemu účtu?
---
[device_link_connect]
Připojit
---
[device_link_working]
Připojování…
---
[device_link_connected]
Zařízení připojeno.
---
[device_link_failed]
Zařízení se nepodařilo připojit. Zkuste to znovu.
---
[device_link_offline]
Synchronizační server je nedostupný. Zkontrolujte připojení a zkuste to znovu.
---
[device_link_expired]
Platnost kódu vypršela. Zobrazte nový.
---
[device_link_not_a_code]
To není připojovací kód Inner Breeze.
---
[device_link_no_account]
Toto zařízení zatím nemá účet ke sdílení. Zobrazte kód zde.
---
[return_to_apps]
Zpět do Aplikací
---
+148 -15
View File
@@ -100,9 +100,6 @@ Ausgehend
[profile_no_leaderboard_data]
Keine Bestenlistendaten
---
[profile_practice_label]
Praxis
---
[profile_my_habits_title]
Meine Gewohnheiten
---
@@ -1920,12 +1917,6 @@ Daten
[profile_data_management_body]
Import, Export und Speicher
---
[profile_leaderboard_preview_body]
Rangliste und aktuelle Serie ansehen
---
[profile_no_rank_short]
Noch keine Platzierung
---
[appearance_style_label]
Stil
---
@@ -2324,7 +2315,7 @@ Antwort vom Entwickler:
---
[lumi_feedback_saved]
Dein Feedback wurde für den Entwickler gespeichert.
Auf diesem Gerät gespeichert und wartet auf den Versand an den Entwicklereingang. Dafür sind ein Inner Breeze-Konto und Internetzugang erforderlich.
---
[lumi_show_progress]
@@ -2358,7 +2349,7 @@ Keine aufgezeichnete Aktivität in diesem Zeitraum.
---
[lumi_feedback_confirm]
Dieses Feedback an den Entwickler senden?
Dieses Feedback an den Entwickler senden? App-Version, Gerätemodell und Systemversion werden mitgesendet.
---
[lumi_feedback_yes]
@@ -2368,6 +2359,15 @@ Ja
[lumi_feedback_no]
Nein
---
[lumi_commands]
Befehle
---
[lumi_command_help]
Zeigen, was Lumi kann
---
[lumi_command_feedback]
Feedback an den Entwickler senden
---
[lumi_telegram]
Telegram-Eingabe
@@ -2655,10 +2655,143 @@ Letzte bekannte Sitzung · warte auf Aktualisierung
Warte auf das Gerät mit der laufenden Sitzung
---
[session_detach_button]
Übungsfenster ablösen
[lumi_feedback_delivered]
Dein Feedback ist im Entwicklereingang angekommen.
---
[session_attach_button]
Fenster in die App zurückholen
[lumi_feedback_unavailable]
Die Zustellung an den Entwicklereingang ist nicht bestätigt. Dein Feedback bleibt auf diesem Gerät gespeichert und der Versand wird erneut versucht.
---
[sync_storage_full]
Der Sync-Knoten hat keinen Platz für diese Änderungen, daher werden sie nicht synchronisiert. Schalte den Foto-Upload für ihn unter Profil › Daten aus.
---
[profile_node_storage_title]
Knotenspeicher
---
[profile_node_storage_hint]
Speicher, den dein Konto auf jedem Knoten belegt, mit dem du synchronisierst.
---
[profile_node_storage_active]
In Verwendung
---
[profile_node_storage_unknown]
Die Nutzung erscheint nach der nächsten Synchronisierung mit diesem Knoten.
---
[profile_node_storage_used_of]
%s von %s belegt
---
[profile_node_storage_used_unlimited]
%s belegt · kein Limit
---
[profile_node_storage_nearly_full]
Fast voll. Ist er voll, werden Änderungen hier nicht mehr synchronisiert.
---
[profile_node_storage_nearly_full_media]
Fast voll. Fotos füllen ihn am schnellsten; schalte den Foto-Upload aus, damit deine Einträge weiter synchronisiert werden.
---
[profile_node_storage_full]
Kein Platz für die neuesten Änderungen, daher werden sie nicht mit diesem Knoten synchronisiert.
---
[profile_node_storage_full_media]
Kein Platz für die neuesten Änderungen, daher werden sie nicht mit diesem Knoten synchronisiert. Schalte unten den Foto-Upload aus, damit alles andere synchronisiert wird.
---
[profile_node_storage_photos]
Fotos und Videos von diesem Gerät belegen auf einem Knoten etwa %s.
---
[profile_node_storage_media]
Fotos und Videos hochladen
---
[profile_node_storage_media_on]
Fotos werden mit deinen Tagebucheinträgen auf diesen Knoten synchronisiert.
---
[profile_node_storage_media_off]
Fotos bleiben auf diesem Gerät. Einträge werden weiter synchronisiert, und andere Geräte zeigen, wo ein Foto ist.
---
[profile_node_storage_media_failed]
Der Foto-Upload für diesen Knoten konnte nicht geändert werden.
---
[diary_photo_no_room]
Auf %s ist kein Platz für dieses Foto. Schalte den Foto-Upload unter Profil › Daten aus.
---
[diary_photo_unavailable]
Dieses Foto ist nicht auf diesem Gerät. Es bleibt auf dem Gerät oder Knoten, der Fotos speichert.
---
[device_link_title]
Gerät verbinden
---
[device_link_intro_send]
Füge diesem Konto mit einem QR-Code ein weiteres Telefon oder einen Computer hinzu.
---
[device_link_intro_receive]
Nutzt du Inner Breeze schon auf einem anderen Gerät? Verbinde dieses mit einem QR-Code.
---
[device_link_show]
Code zeigen
---
[device_link_scan]
Code scannen
---
[device_link_show_hint_send]
Öffne auf dem neuen Gerät Profil und dann Gerät verbinden, tippe auf Code scannen und richte die Kamera hierher.
---
[device_link_show_hint_receive]
Öffne auf einem Telefon, das dein Konto schon nutzt, Profil und dann Gerät verbinden, tippe auf Code scannen und richte die Kamera hierher.
---
[device_link_scan_prompt]
Richte die Kamera auf den Code auf dem anderen Gerät
---
[device_link_compare]
Prüfe, ob das andere Gerät dieselbe Zahl zeigt, und verbinde dann.
---
[device_link_waiting_compare]
Prüfe auf dem anderen Gerät diese Zahl und tippe auf Verbinden.
---
[device_link_ask]
Das andere Gerät mit deinem Konto verbinden?
---
[device_link_connect]
Verbinden
---
[device_link_working]
Wird verbunden…
---
[device_link_connected]
Gerät verbunden.
---
[device_link_failed]
Das Gerät konnte nicht verbunden werden. Versuche es erneut.
---
[device_link_offline]
Der Sync-Server ist nicht erreichbar. Prüfe deine Verbindung und versuche es erneut.
---
[device_link_expired]
Der Code ist abgelaufen. Zeige einen neuen.
---
[device_link_not_a_code]
Das ist kein Verbindungscode von Inner Breeze.
---
[device_link_no_account]
Dieses Gerät hat noch kein Konto zum Teilen. Zeige stattdessen hier einen Code.
---
[return_to_apps]
Zurück zu Apps
---
+148 -15
View File
@@ -49,12 +49,6 @@ Data
[profile_data_management_body]
Import, export, and storage
---
[profile_leaderboard_preview_body]
See rankings and your current streak
---
[profile_no_rank_short]
No rank yet
---
[tab_habits]
Habits
---
@@ -136,9 +130,6 @@ Outgoing
[profile_no_leaderboard_data]
No leaderboard data
---
[profile_practice_label]
Practice
---
[profile_my_habits_title]
My habits
---
@@ -2323,7 +2314,7 @@ Developer reply:
---
[lumi_feedback_saved]
Saved your feedback for the developer.
Saved on this device, waiting to send to the developer inbox. Delivery needs an Inner Breeze account and internet access.
---
[lumi_show_progress]
@@ -2357,7 +2348,7 @@ No recorded activity in this period.
---
[lumi_feedback_confirm]
Send this feedback to the developer?
Send this feedback to the developer? It includes your app version, device model and system version.
---
[lumi_feedback_yes]
@@ -2367,6 +2358,15 @@ Yes
[lumi_feedback_no]
No
---
[lumi_commands]
Commands
---
[lumi_command_help]
Show what Lumi can do
---
[lumi_command_feedback]
Send feedback to the developer
---
[lumi_telegram]
Telegram input
@@ -2654,10 +2654,143 @@ Last known session · awaiting updates
Waiting for the running device
---
[session_detach_button]
Detach practice window
[lumi_feedback_delivered]
The developer inbox received your feedback.
---
[session_attach_button]
Return window to app
[lumi_feedback_unavailable]
Delivery to the developer inbox is not confirmed. Your feedback is saved on this device and will retry.
---
[sync_storage_full]
The sync node has no room for these changes, so they are not syncing. Turn off photo upload for it in Profile › Data.
---
[profile_node_storage_title]
Node storage
---
[profile_node_storage_hint]
Space your account uses on each node you sync with.
---
[profile_node_storage_active]
In use
---
[profile_node_storage_unknown]
Usage appears after the next sync with this node.
---
[profile_node_storage_used_of]
%s of %s used
---
[profile_node_storage_used_unlimited]
%s used · no limit
---
[profile_node_storage_nearly_full]
Almost full. Changes stop syncing here when it is full.
---
[profile_node_storage_nearly_full_media]
Almost full. Photos fill it fastest; turn off photo upload to keep your entries syncing.
---
[profile_node_storage_full]
No room for the latest changes, so they are not syncing to this node.
---
[profile_node_storage_full_media]
No room for the latest changes, so they are not syncing to this node. Turn off photo upload below to sync everything else.
---
[profile_node_storage_photos]
Photos and videos from this device take about %s on a node.
---
[profile_node_storage_media]
Upload photos and videos
---
[profile_node_storage_media_on]
Photos sync to this node with your Diary entries.
---
[profile_node_storage_media_off]
Photos stay on this device. Entries still sync, and other devices show where a photo is.
---
[profile_node_storage_media_failed]
Could not change photo upload for this node.
---
[diary_photo_no_room]
No room on %s for this photo. Turn off photo upload in Profile › Data.
---
[diary_photo_unavailable]
This photo is not on this device. It stays on the device or node that keeps photos.
---
[device_link_title]
Connect a device
---
[device_link_intro_send]
Add another phone or computer to this account with a QR code.
---
[device_link_intro_receive]
Already use Inner Breeze on another device? Connect this one with a QR code.
---
[device_link_show]
Show code
---
[device_link_scan]
Scan code
---
[device_link_show_hint_send]
On the new device, open Profile, then Connect a device, tap Scan code and point the camera here.
---
[device_link_show_hint_receive]
On a phone that already uses your account, open Profile, then Connect a device, tap Scan code and point the camera here.
---
[device_link_scan_prompt]
Point the camera at the code on the other device
---
[device_link_compare]
Check that the other device shows the same number, then connect.
---
[device_link_waiting_compare]
On the other device, check this number and tap Connect.
---
[device_link_ask]
Connect the other device to your account?
---
[device_link_connect]
Connect
---
[device_link_working]
Connecting…
---
[device_link_connected]
Device connected.
---
[device_link_failed]
Could not connect the device. Try again.
---
[device_link_offline]
Could not reach the sync server. Check your connection and try again.
---
[device_link_expired]
The code expired. Show a new one.
---
[device_link_not_a_code]
That is not an Inner Breeze connection code.
---
[device_link_no_account]
This device has no account to share yet. Show a code here instead.
---
[return_to_apps]
Back to Apps
---
+148 -15
View File
@@ -100,9 +100,6 @@ Salientes
[profile_no_leaderboard_data]
Sin datos de clasificacion
---
[profile_practice_label]
Practica
---
[profile_my_habits_title]
Mis hábitos
---
@@ -1929,12 +1926,6 @@ Datos
[profile_data_management_body]
Importación, exportación y almacenamiento
---
[profile_leaderboard_preview_body]
Ver la clasificación y tu racha actual
---
[profile_no_rank_short]
Aún sin clasificación
---
[appearance_style_label]
Estilo
---
@@ -2324,7 +2315,7 @@ Respuesta del desarrollador:
---
[lumi_feedback_saved]
Guardé tus comentarios para el desarrollador.
Guardado en este dispositivo, pendiente de envío al buzón del desarrollador. Se necesita una cuenta de Inner Breeze y acceso a internet.
---
[lumi_show_progress]
@@ -2358,7 +2349,7 @@ No hay actividad registrada en este período.
---
[lumi_feedback_confirm]
¿Enviar estos comentarios al desarrollador?
¿Enviar estos comentarios al desarrollador? Incluyen la versión de la app, el modelo del dispositivo y la versión del sistema.
---
[lumi_feedback_yes]
@@ -2368,6 +2359,15 @@ Sí
[lumi_feedback_no]
No, gracias
---
[lumi_commands]
Comandos
---
[lumi_command_help]
Mostrar lo que Lumi puede hacer
---
[lumi_command_feedback]
Enviar comentarios al desarrollador
---
[lumi_telegram]
Mensajes desde Telegram
@@ -2655,10 +2655,143 @@ En pausa en otro dispositivo
Esperando al dispositivo con la sesión en curso
---
[session_detach_button]
Separar la ventana de práctica
[lumi_feedback_delivered]
El buzón del desarrollador recibió tus comentarios.
---
[session_attach_button]
Devolver la ventana a la aplicación
[lumi_feedback_unavailable]
No se ha confirmado la entrega al buzón del desarrollador. Tus comentarios están guardados en este dispositivo y se volverá a intentar el envío.
---
[sync_storage_full]
El nodo de sincronización no tiene espacio para estos cambios, así que no se sincronizan. Desactiva la subida de fotos para él en Perfil › Datos.
---
[profile_node_storage_title]
Almacenamiento en nodos
---
[profile_node_storage_hint]
Espacio que usa tu cuenta en cada nodo con el que sincronizas.
---
[profile_node_storage_active]
En uso
---
[profile_node_storage_unknown]
El uso aparecerá tras la próxima sincronización con este nodo.
---
[profile_node_storage_used_of]
%s de %s usados
---
[profile_node_storage_used_unlimited]
%s usados · sin límite
---
[profile_node_storage_nearly_full]
Casi lleno. Cuando se llene, los cambios dejarán de sincronizarse aquí.
---
[profile_node_storage_nearly_full_media]
Casi lleno. Las fotos lo llenan más rápido; desactiva la subida de fotos para que tus entradas sigan sincronizándose.
---
[profile_node_storage_full]
No hay espacio para los últimos cambios, así que no se sincronizan con este nodo.
---
[profile_node_storage_full_media]
No hay espacio para los últimos cambios, así que no se sincronizan con este nodo. Desactiva abajo la subida de fotos para sincronizar todo lo demás.
---
[profile_node_storage_photos]
Las fotos y los vídeos de este dispositivo ocupan unos %s en un nodo.
---
[profile_node_storage_media]
Subir fotos y vídeos
---
[profile_node_storage_media_on]
Las fotos se sincronizan con este nodo junto con tus entradas del diario.
---
[profile_node_storage_media_off]
Las fotos se quedan en este dispositivo. Las entradas se siguen sincronizando y los demás dispositivos muestran dónde hay una foto.
---
[profile_node_storage_media_failed]
No se pudo cambiar la subida de fotos para este nodo.
---
[diary_photo_no_room]
No hay espacio en %s para esta foto. Desactiva la subida de fotos en Perfil › Datos.
---
[diary_photo_unavailable]
Esta foto no está en este dispositivo. Se guarda en el dispositivo o nodo que conserva las fotos.
---
[device_link_title]
Conectar un dispositivo
---
[device_link_intro_send]
Añade otro teléfono u ordenador a esta cuenta con un código QR.
---
[device_link_intro_receive]
¿Ya usas Inner Breeze en otro dispositivo? Conecta este con un código QR.
---
[device_link_show]
Mostrar código
---
[device_link_scan]
Escanear código
---
[device_link_show_hint_send]
En el nuevo dispositivo, abre Perfil y luego Conectar un dispositivo, toca Escanear código y apunta la cámara aquí.
---
[device_link_show_hint_receive]
En un teléfono que ya usa tu cuenta, abre Perfil y luego Conectar un dispositivo, toca Escanear código y apunta la cámara aquí.
---
[device_link_scan_prompt]
Apunta la cámara al código del otro dispositivo
---
[device_link_compare]
Comprueba que el otro dispositivo muestra el mismo número y luego conecta.
---
[device_link_waiting_compare]
En el otro dispositivo, comprueba este número y toca Conectar.
---
[device_link_ask]
¿Conectar el otro dispositivo a tu cuenta?
---
[device_link_connect]
Conectar
---
[device_link_working]
Conectando…
---
[device_link_connected]
Dispositivo conectado.
---
[device_link_failed]
No se pudo conectar el dispositivo. Inténtalo de nuevo.
---
[device_link_offline]
No se pudo contactar con el servidor de sincronización. Revisa tu conexión e inténtalo de nuevo.
---
[device_link_expired]
El código caducó. Muestra uno nuevo.
---
[device_link_not_a_code]
Ese no es un código de conexión de Inner Breeze.
---
[device_link_no_account]
Este dispositivo aún no tiene una cuenta que compartir. Muestra un código aquí.
---
[return_to_apps]
Volver a Aplicaciones
---
+148 -15
View File
@@ -100,9 +100,6 @@ Envoyees
[profile_no_leaderboard_data]
Aucune donnee de classement
---
[profile_practice_label]
Pratique
---
[profile_my_habits_title]
Mes habitudes
---
@@ -1920,12 +1917,6 @@ Données
[profile_data_management_body]
Importation, exportation et stockage
---
[profile_leaderboard_preview_body]
Voir le classement et votre série actuelle
---
[profile_no_rank_short]
Pas encore de classement
---
[appearance_style_label]
Style
---
@@ -2324,7 +2315,7 @@ Réponse du développeur :
---
[lumi_feedback_saved]
Tes commentaires ont été enregistrés pour le développeur.
Enregistré sur cet appareil, en attente d’envoi à la boîte du développeur. Un compte Inner Breeze et un accès à internet sont nécessaires.
---
[lumi_show_progress]
@@ -2358,7 +2349,7 @@ Aucune activité enregistrée sur cette période.
---
[lumi_feedback_confirm]
Envoyer ces commentaires au développeur ?
Envoyer ces commentaires au développeur ? Ils incluent la version de l’app, le modèle de l’appareil et la version du système.
---
[lumi_feedback_yes]
@@ -2368,6 +2359,15 @@ Oui
[lumi_feedback_no]
Non
---
[lumi_commands]
Commandes
---
[lumi_command_help]
Voir ce que Lumi sait faire
---
[lumi_command_feedback]
Envoyer un avis au développeur
---
[lumi_telegram]
Messages depuis Telegram
@@ -2655,10 +2655,143 @@ Dernière séance connue · en attente de mises à jour
En attente de l’appareil où la séance est en cours
---
[session_detach_button]
Détacher la fenêtre de pratique
[lumi_feedback_delivered]
La boîte du développeur a reçu votre retour.
---
[session_attach_button]
Ramener la fenêtre dans l’application
[lumi_feedback_unavailable]
La livraison à la boîte du développeur n’est pas confirmée. Votre retour reste enregistré sur cet appareil et l’envoi sera réessayé.
---
[sync_storage_full]
Le nœud de synchronisation n’a pas de place pour ces modifications, elles ne se synchronisent donc pas. Désactive l’envoi de photos pour ce nœud dans Profil › Données.
---
[profile_node_storage_title]
Stockage des nœuds
---
[profile_node_storage_hint]
Espace utilisé par ton compte sur chaque nœud avec lequel tu synchronises.
---
[profile_node_storage_active]
Utilisé
---
[profile_node_storage_unknown]
L’utilisation s’affichera après la prochaine synchronisation avec ce nœud.
---
[profile_node_storage_used_of]
%s utilisés sur %s
---
[profile_node_storage_used_unlimited]
%s utilisés · sans limite
---
[profile_node_storage_nearly_full]
Presque plein. Une fois plein, les modifications ne s’y synchronisent plus.
---
[profile_node_storage_nearly_full_media]
Presque plein. Les photos le remplissent le plus vite ; désactive l’envoi de photos pour que tes entrées continuent à se synchroniser.
---
[profile_node_storage_full]
Pas de place pour les dernières modifications, elles ne se synchronisent donc pas avec ce nœud.
---
[profile_node_storage_full_media]
Pas de place pour les dernières modifications, elles ne se synchronisent donc pas avec ce nœud. Désactive l’envoi de photos ci-dessous pour synchroniser tout le reste.
---
[profile_node_storage_photos]
Les photos et vidéos de cet appareil occupent environ %s sur un nœud.
---
[profile_node_storage_media]
Envoyer les photos et vidéos
---
[profile_node_storage_media_on]
Les photos se synchronisent avec ce nœud en même temps que tes entrées du journal.
---
[profile_node_storage_media_off]
Les photos restent sur cet appareil. Les entrées continuent à se synchroniser et les autres appareils indiquent où se trouve une photo.
---
[profile_node_storage_media_failed]
Impossible de modifier l’envoi de photos pour ce nœud.
---
[diary_photo_no_room]
Pas de place sur %s pour cette photo. Désactive l’envoi de photos dans Profil › Données.
---
[diary_photo_unavailable]
Cette photo n’est pas sur cet appareil. Elle reste sur l’appareil ou le nœud qui garde les photos.
---
[device_link_title]
Connecter un appareil
---
[device_link_intro_send]
Ajoutez un autre téléphone ou ordinateur à ce compte avec un code QR.
---
[device_link_intro_receive]
Vous utilisez déjà Inner Breeze sur un autre appareil ? Connectez celui-ci avec un code QR.
---
[device_link_show]
Afficher le code
---
[device_link_scan]
Scanner le code
---
[device_link_show_hint_send]
Sur le nouvel appareil, ouvrez Profil puis Connecter un appareil, touchez Scanner le code et pointez la caméra ici.
---
[device_link_show_hint_receive]
Sur un téléphone qui utilise déjà votre compte, ouvrez Profil puis Connecter un appareil, touchez Scanner le code et pointez la caméra ici.
---
[device_link_scan_prompt]
Pointez la caméra vers le code de l'autre appareil
---
[device_link_compare]
Vérifiez que l'autre appareil affiche le même nombre, puis connectez.
---
[device_link_waiting_compare]
Sur l'autre appareil, vérifiez ce nombre et touchez Connecter.
---
[device_link_ask]
Connecter l'autre appareil à votre compte ?
---
[device_link_connect]
Connecter
---
[device_link_working]
Connexion…
---
[device_link_connected]
Appareil connecté.
---
[device_link_failed]
Impossible de connecter l'appareil. Réessayez.
---
[device_link_offline]
Impossible de joindre le serveur de synchronisation. Vérifiez votre connexion et réessayez.
---
[device_link_expired]
Le code a expiré. Affichez-en un nouveau.
---
[device_link_not_a_code]
Ce n'est pas un code de connexion Inner Breeze.
---
[device_link_no_account]
Cet appareil n'a pas encore de compte à partager. Affichez plutôt un code ici.
---
[return_to_apps]
Retour aux Applications
---
+148 -15
View File
@@ -100,9 +100,6 @@ Keluar
[profile_no_leaderboard_data]
Tidak ada data papan peringkat
---
[profile_practice_label]
Latihan
---
[profile_my_habits_title]
Kebiasaan saya
---
@@ -1929,12 +1926,6 @@ Data
[profile_data_management_body]
Impor, ekspor, dan penyimpanan
---
[profile_leaderboard_preview_body]
Lihat peringkat dan rangkaian hari aktif Anda
---
[profile_no_rank_short]
Belum ada peringkat
---
[appearance_style_label]
Gaya
---
@@ -2324,7 +2315,7 @@ Balasan pengembang:
---
[lumi_feedback_saved]
Masukanmu telah disimpan untuk pengembang.
Tersimpan di perangkat ini dan menunggu dikirim ke kotak masuk pengembang. Pengiriman memerlukan akun Inner Breeze dan akses internet.
---
[lumi_show_progress]
@@ -2358,7 +2349,7 @@ Tidak ada aktivitas tercatat dalam periode ini.
---
[lumi_feedback_confirm]
Kirim masukan ini kepada pengembang?
Kirim masukan ini kepada pengembang? Termasuk versi aplikasi, model perangkat, dan versi sistem.
---
[lumi_feedback_yes]
@@ -2368,6 +2359,15 @@ Ya
[lumi_feedback_no]
Tidak
---
[lumi_commands]
Perintah
---
[lumi_command_help]
Tampilkan apa yang bisa dilakukan Lumi
---
[lumi_command_feedback]
Kirim masukan ke pengembang
---
[lumi_telegram]
Pesan dari Telegram
@@ -2655,10 +2655,143 @@ Sesi terakhir yang diketahui · menunggu pembaruan
Menunggu perangkat yang menjalankan sesi
---
[session_detach_button]
Pisahkan jendela latihan
[lumi_feedback_delivered]
Kotak masuk pengembang telah menerima masukanmu.
---
[session_attach_button]
Kembalikan jendela ke aplikasi
[lumi_feedback_unavailable]
Pengiriman ke kotak masuk pengembang belum terkonfirmasi. Masukanmu tersimpan di perangkat ini dan pengiriman akan dicoba lagi.
---
[sync_storage_full]
Simpul sinkronisasi tidak punya ruang untuk perubahan ini, jadi perubahan tidak disinkronkan. Matikan unggahan foto untuk simpul ini di Profil › Data.
---
[profile_node_storage_title]
Penyimpanan simpul
---
[profile_node_storage_hint]
Ruang yang dipakai akunmu di setiap simpul yang kamu sinkronkan.
---
[profile_node_storage_active]
Dipakai
---
[profile_node_storage_unknown]
Penggunaan muncul setelah sinkronisasi berikutnya dengan simpul ini.
---
[profile_node_storage_used_of]
%s dari %s terpakai
---
[profile_node_storage_used_unlimited]
%s terpakai · tanpa batas
---
[profile_node_storage_nearly_full]
Hampir penuh. Setelah penuh, perubahan berhenti disinkronkan ke sini.
---
[profile_node_storage_nearly_full_media]
Hampir penuh. Foto paling cepat mengisinya; matikan unggahan foto agar catatanmu tetap tersinkron.
---
[profile_node_storage_full]
Tidak ada ruang untuk perubahan terbaru, jadi tidak disinkronkan ke simpul ini.
---
[profile_node_storage_full_media]
Tidak ada ruang untuk perubahan terbaru, jadi tidak disinkronkan ke simpul ini. Matikan unggahan foto di bawah agar semua yang lain tersinkron.
---
[profile_node_storage_photos]
Foto dan video dari perangkat ini memakai sekitar %s di sebuah simpul.
---
[profile_node_storage_media]
Unggah foto dan video
---
[profile_node_storage_media_on]
Foto disinkronkan ke simpul ini bersama catatan buku harianmu.
---
[profile_node_storage_media_off]
Foto tetap di perangkat ini. Catatan tetap tersinkron, dan perangkat lain menunjukkan letak foto.
---
[profile_node_storage_media_failed]
Tidak dapat mengubah unggahan foto untuk simpul ini.
---
[diary_photo_no_room]
Tidak ada ruang di %s untuk foto ini. Matikan unggahan foto di Profil › Data.
---
[diary_photo_unavailable]
Foto ini tidak ada di perangkat ini. Foto tetap di perangkat atau simpul yang menyimpan foto.
---
[device_link_title]
Hubungkan perangkat
---
[device_link_intro_send]
Tambahkan ponsel atau komputer lain ke akun ini dengan kode QR.
---
[device_link_intro_receive]
Sudah memakai Inner Breeze di perangkat lain? Hubungkan perangkat ini dengan kode QR.
---
[device_link_show]
Tampilkan kode
---
[device_link_scan]
Pindai kode
---
[device_link_show_hint_send]
Di perangkat baru, buka Profil lalu Hubungkan perangkat, ketuk Pindai kode, dan arahkan kamera ke sini.
---
[device_link_show_hint_receive]
Di ponsel yang sudah memakai akun Anda, buka Profil lalu Hubungkan perangkat, ketuk Pindai kode, dan arahkan kamera ke sini.
---
[device_link_scan_prompt]
Arahkan kamera ke kode di perangkat lain
---
[device_link_compare]
Pastikan perangkat lain menampilkan angka yang sama, lalu hubungkan.
---
[device_link_waiting_compare]
Di perangkat lain, periksa angka ini lalu ketuk Hubungkan.
---
[device_link_ask]
Hubungkan perangkat lain ke akun Anda?
---
[device_link_connect]
Hubungkan
---
[device_link_working]
Menghubungkan…
---
[device_link_connected]
Perangkat terhubung.
---
[device_link_failed]
Tidak dapat menghubungkan perangkat. Coba lagi.
---
[device_link_offline]
Tidak dapat menjangkau server sinkronisasi. Periksa koneksi Anda dan coba lagi.
---
[device_link_expired]
Kode kedaluwarsa. Tampilkan kode baru.
---
[device_link_not_a_code]
Itu bukan kode koneksi Inner Breeze.
---
[device_link_no_account]
Perangkat ini belum punya akun untuk dibagikan. Tampilkan kode di sini.
---
[return_to_apps]
Kembali ke Aplikasi
---
+148 -15
View File
@@ -100,9 +100,6 @@ In uscita
[profile_no_leaderboard_data]
Nessun dato classifica
---
[profile_practice_label]
Pratica
---
[profile_my_habits_title]
Le mie abitudini
---
@@ -1920,12 +1917,6 @@ Dati
[profile_data_management_body]
Importazione, esportazione e archiviazione
---
[profile_leaderboard_preview_body]
Visualizza la classifica e la tua serie attuale
---
[profile_no_rank_short]
Ancora nessuna posizione
---
[appearance_style_label]
Stile
---
@@ -2324,7 +2315,7 @@ Risposta dello sviluppatore:
---
[lumi_feedback_saved]
Ho salvato il tuo feedback per lo sviluppatore.
Salvato su questo dispositivo, in attesa di invio alla casella dello sviluppatore. Servono un account Inner Breeze e una connessione internet.
---
[lumi_show_progress]
@@ -2358,7 +2349,7 @@ Nessuna attività registrata in questo periodo.
---
[lumi_feedback_confirm]
Inviare questo feedback allo sviluppatore?
Inviare questo feedback allo sviluppatore? Include la versione dell’app, il modello del dispositivo e la versione del sistema.
---
[lumi_feedback_yes]
@@ -2368,6 +2359,15 @@ Sì
[lumi_feedback_no]
No, grazie
---
[lumi_commands]
Comandi
---
[lumi_command_help]
Mostra cosa sa fare Lumi
---
[lumi_command_feedback]
Invia un feedback allo sviluppatore
---
[lumi_telegram]
Messaggi da Telegram
@@ -2655,10 +2655,143 @@ Ultima sessione nota · in attesa di aggiornamenti
In attesa del dispositivo con la sessione in corso
---
[session_detach_button]
Stacca la finestra della pratica
[lumi_feedback_delivered]
La casella dello sviluppatore ha ricevuto il tuo feedback.
---
[session_attach_button]
Riporta la finestra nell’app
[lumi_feedback_unavailable]
La consegna alla casella dello sviluppatore non è confermata. Il tuo feedback resta salvato su questo dispositivo e l’invio verrà ritentato.
---
[sync_storage_full]
Il nodo di sincronizzazione non ha spazio per queste modifiche, quindi non vengono sincronizzate. Disattiva il caricamento delle foto per questo nodo in Profilo › Dati.
---
[profile_node_storage_title]
Spazio sui nodi
---
[profile_node_storage_hint]
Spazio usato dal tuo account su ogni nodo con cui sincronizzi.
---
[profile_node_storage_active]
In uso
---
[profile_node_storage_unknown]
L’utilizzo apparirà dopo la prossima sincronizzazione con questo nodo.
---
[profile_node_storage_used_of]
%s usati su %s
---
[profile_node_storage_used_unlimited]
%s usati · nessun limite
---
[profile_node_storage_nearly_full]
Quasi pieno. Quando sarà pieno, le modifiche smetteranno di sincronizzarsi qui.
---
[profile_node_storage_nearly_full_media]
Quasi pieno. Le foto lo riempiono più in fretta; disattiva il caricamento delle foto per continuare a sincronizzare le voci.
---
[profile_node_storage_full]
Non c’è spazio per le ultime modifiche, quindi non vengono sincronizzate con questo nodo.
---
[profile_node_storage_full_media]
Non c’è spazio per le ultime modifiche, quindi non vengono sincronizzate con questo nodo. Disattiva qui sotto il caricamento delle foto per sincronizzare tutto il resto.
---
[profile_node_storage_photos]
Le foto e i video di questo dispositivo occupano circa %s su un nodo.
---
[profile_node_storage_media]
Carica foto e video
---
[profile_node_storage_media_on]
Le foto si sincronizzano con questo nodo insieme alle voci del diario.
---
[profile_node_storage_media_off]
Le foto restano su questo dispositivo. Le voci continuano a sincronizzarsi e gli altri dispositivi mostrano dove si trova una foto.
---
[profile_node_storage_media_failed]
Impossibile modificare il caricamento delle foto per questo nodo.
---
[diary_photo_no_room]
Non c’è spazio su %s per questa foto. Disattiva il caricamento delle foto in Profilo › Dati.
---
[diary_photo_unavailable]
Questa foto non è su questo dispositivo. Resta sul dispositivo o sul nodo che conserva le foto.
---
[device_link_title]
Collega un dispositivo
---
[device_link_intro_send]
Aggiungi un altro telefono o computer a questo account con un codice QR.
---
[device_link_intro_receive]
Usi già Inner Breeze su un altro dispositivo? Collega questo con un codice QR.
---
[device_link_show]
Mostra codice
---
[device_link_scan]
Scansiona codice
---
[device_link_show_hint_send]
Sul nuovo dispositivo, apri Profilo e poi Collega un dispositivo, tocca Scansiona codice e inquadra qui.
---
[device_link_show_hint_receive]
Su un telefono che usa già il tuo account, apri Profilo e poi Collega un dispositivo, tocca Scansiona codice e inquadra qui.
---
[device_link_scan_prompt]
Inquadra il codice sull'altro dispositivo
---
[device_link_compare]
Controlla che l'altro dispositivo mostri lo stesso numero, poi collega.
---
[device_link_waiting_compare]
Sull'altro dispositivo, controlla questo numero e tocca Collega.
---
[device_link_ask]
Collegare l'altro dispositivo al tuo account?
---
[device_link_connect]
Collega
---
[device_link_working]
Collegamento…
---
[device_link_connected]
Dispositivo collegato.
---
[device_link_failed]
Impossibile collegare il dispositivo. Riprova.
---
[device_link_offline]
Impossibile raggiungere il server di sincronizzazione. Controlla la connessione e riprova.
---
[device_link_expired]
Il codice è scaduto. Mostrane uno nuovo.
---
[device_link_not_a_code]
Questo non è un codice di collegamento di Inner Breeze.
---
[device_link_no_account]
Questo dispositivo non ha ancora un account da condividere. Mostra un codice qui.
---
[return_to_apps]
Torna alle App
---
+148 -15
View File
@@ -100,9 +100,6 @@
[profile_no_leaderboard_data]
ランキングデータなし
---
[profile_practice_label]
プラクティス
---
[profile_my_habits_title]
自分の習慣
---
@@ -1922,12 +1919,6 @@ Inner Breezeは無料のオープンソースです。役に立ったら、少
[profile_data_management_body]
インポート、エクスポート、ストレージ
---
[profile_leaderboard_preview_body]
ランキングと現在の連続記録を見る
---
[profile_no_rank_short]
まだ順位はありません
---
[appearance_style_label]
スタイル
---
@@ -2326,7 +2317,7 @@ WHMを開始
---
[lumi_feedback_saved]
開発者へのフィードバックを保存しました。
この端末に保存され、開発者の受信箱への送信を待っています。送信には Inner Breeze アカウントとインターネット接続が必要です。
---
[lumi_show_progress]
@@ -2360,7 +2351,7 @@ WHMの最長息止め時間(秒)
---
[lumi_feedback_confirm]
このフィードバックを開発者に送信しますか?
このフィードバックを開発者に送信しますか?アプリのバージョン、端末のモデル、システムのバージョンが含まれます。
---
[lumi_feedback_yes]
@@ -2370,6 +2361,15 @@ WHMの最長息止め時間(秒)
[lumi_feedback_no]
いいえ
---
[lumi_commands]
コマンド
---
[lumi_command_help]
Lumiにできることを表示
---
[lumi_command_feedback]
開発者にフィードバックを送る
---
[lumi_telegram]
Telegramからの入力
@@ -2657,10 +2657,143 @@ Lumiに相談
実行中のデバイスからの応答を待っています
---
[session_detach_button]
練習ウィンドウを切り離す
[lumi_feedback_delivered]
開発者の受信箱でフィードバックを受信しました。
---
[session_attach_button]
ウィンドウをアプリに戻す
[lumi_feedback_unavailable]
開発者の受信箱への配信は確認できていません。フィードバックはこの端末に保存され、送信を再試行します。
---
[sync_storage_full]
同期ノードにこれらの変更を保存する空きがないため、同期されていません。プロフィール › データで、このノードへの写真のアップロードをオフにしてください。
---
[profile_node_storage_title]
ノードのストレージ
---
[profile_node_storage_hint]
同期している各ノードで、このアカウントが使っている容量です。
---
[profile_node_storage_active]
使用中
---
[profile_node_storage_unknown]
このノードと次に同期すると、使用量が表示されます。
---
[profile_node_storage_used_of]
%s / %s 使用
---
[profile_node_storage_used_unlimited]
%s 使用 · 上限なし
---
[profile_node_storage_nearly_full]
残りわずかです。いっぱいになると、ここへの変更は同期されなくなります。
---
[profile_node_storage_nearly_full_media]
残りわずかです。写真がいちばん容量を使います。写真のアップロードをオフにすると、日記は同期され続けます。
---
[profile_node_storage_full]
最新の変更を保存する空きがないため、このノードへ同期されていません。
---
[profile_node_storage_full_media]
最新の変更を保存する空きがないため、このノードへ同期されていません。下で写真のアップロードをオフにすると、ほかのデータは同期されます。
---
[profile_node_storage_photos]
このデバイスの写真と動画は、ノード上で約 %s を使います。
---
[profile_node_storage_media]
写真と動画をアップロード
---
[profile_node_storage_media_on]
写真は日記と一緒にこのノードへ同期されます。
---
[profile_node_storage_media_off]
写真はこのデバイスに残ります。日記は引き続き同期され、ほかのデバイスには写真がある場所が表示されます。
---
[profile_node_storage_media_failed]
このノードの写真のアップロード設定を変更できませんでした。
---
[diary_photo_no_room]
%s にこの写真を保存する空きがありません。プロフィール › データで写真のアップロードをオフにしてください。
---
[diary_photo_unavailable]
この写真はこのデバイスにありません。写真を保存しているデバイスまたはノードに残っています。
---
[device_link_title]
デバイスを接続
---
[device_link_intro_send]
QRコードでこのアカウントに別のスマートフォンやパソコンを追加します。
---
[device_link_intro_receive]
別のデバイスでInner Breezeを使っていますか?QRコードでこのデバイスを接続しましょう。
---
[device_link_show]
コードを表示
---
[device_link_scan]
コードを読み取る
---
[device_link_show_hint_send]
新しいデバイスで「プロフィール」から「デバイスを接続」を開き、「コードを読み取る」をタップしてカメラをここに向けてください。
---
[device_link_show_hint_receive]
あなたのアカウントを使っているスマートフォンで「プロフィール」から「デバイスを接続」を開き、「コードを読み取る」をタップしてカメラをここに向けてください。
---
[device_link_scan_prompt]
もう一方のデバイスのコードにカメラを向けてください
---
[device_link_compare]
もう一方のデバイスに同じ番号が表示されていることを確認してから接続してください。
---
[device_link_waiting_compare]
もう一方のデバイスでこの番号を確認し、「接続」をタップしてください。
---
[device_link_ask]
もう一方のデバイスをあなたのアカウントに接続しますか?
---
[device_link_connect]
接続
---
[device_link_working]
接続中…
---
[device_link_connected]
デバイスを接続しました。
---
[device_link_failed]
デバイスを接続できませんでした。もう一度お試しください。
---
[device_link_offline]
同期サーバーに接続できません。接続を確認してもう一度お試しください。
---
[device_link_expired]
コードの有効期限が切れました。新しいコードを表示してください。
---
[device_link_not_a_code]
Inner Breezeの接続コードではありません。
---
[device_link_no_account]
このデバイスには共有するアカウントがまだありません。ここでコードを表示してください。
---
[return_to_apps]
アプリに戻る
---
+148 -15
View File
@@ -100,9 +100,6 @@ Inner Breeze
[profile_no_leaderboard_data]
순위표 데이터 없음
---
[profile_practice_label]
연습
---
[profile_my_habits_title]
내 습관
---
@@ -1920,12 +1917,6 @@ Inner Breeze는 무료 오픈 소스입니다. 도움이 되셨다면 작은 후
[profile_data_management_body]
가져오기, 내보내기 및 저장 공간
---
[profile_leaderboard_preview_body]
순위와 현재 연속 기록 보기
---
[profile_no_rank_short]
아직 순위 없음
---
[appearance_style_label]
스타일
---
@@ -2324,7 +2315,7 @@ WHM 시작
---
[lumi_feedback_saved]
개발자에게 보낼 의견을 저장했어요.
이 기기에 저장되었으며 개발자 수신함으로 전송을 기다리고 있어요. 전송하려면 Inner Breeze 계정과 인터넷 연결이 필요해요.
---
[lumi_show_progress]
@@ -2358,7 +2349,7 @@ WHM 시작
---
[lumi_feedback_confirm]
이 피드백을 개발자에게 보낼까요?
이 피드백을 개발자에게 보낼까요? 앱 버전, 기기 이름, 시스템 버전이 함께 전송됩니다.
---
[lumi_feedback_yes]
@@ -2368,6 +2359,15 @@ WHM 시작
[lumi_feedback_no]
아니요
---
[lumi_commands]
명령어
---
[lumi_command_help]
Lumi가 할 수 있는 일 보기
---
[lumi_command_feedback]
개발자에게 피드백 보내기
---
[lumi_telegram]
Telegram에서 메시지 보내기
@@ -2655,10 +2655,143 @@ Lumi에게 요청
세션이 실행 중인 기기의 응답을 기다리는 중
---
[session_detach_button]
연습 창 분리하기
[lumi_feedback_delivered]
개발자 수신함에서 피드백을 받았어요.
---
[session_attach_button]
창을 앱으로 되돌리기
[lumi_feedback_unavailable]
개발자 수신함으로 전달되었는지 확인되지 않았어요. 피드백은 이 기기에 저장되어 있으며 전송을 다시 시도할 거예요.
---
[sync_storage_full]
동기화 노드에 이 변경 사항을 저장할 공간이 없어 동기화되지 않습니다. 프로필 › 데이터에서 이 노드의 사진 업로드를 끄세요.
---
[profile_node_storage_title]
노드 저장 공간
---
[profile_node_storage_hint]
동기화하는 각 노드에서 계정이 사용하는 공간입니다.
---
[profile_node_storage_active]
사용 중
---
[profile_node_storage_unknown]
이 노드와 다음에 동기화하면 사용량이 표시됩니다.
---
[profile_node_storage_used_of]
%s / %s 사용
---
[profile_node_storage_used_unlimited]
%s 사용 · 제한 없음
---
[profile_node_storage_nearly_full]
거의 가득 찼습니다. 가득 차면 이곳으로 변경 사항이 동기화되지 않습니다.
---
[profile_node_storage_nearly_full_media]
거의 가득 찼습니다. 사진이 가장 빨리 채웁니다. 사진 업로드를 끄면 일기는 계속 동기화됩니다.
---
[profile_node_storage_full]
최신 변경 사항을 저장할 공간이 없어 이 노드로 동기화되지 않습니다.
---
[profile_node_storage_full_media]
최신 변경 사항을 저장할 공간이 없어 이 노드로 동기화되지 않습니다. 아래에서 사진 업로드를 끄면 나머지는 모두 동기화됩니다.
---
[profile_node_storage_photos]
이 기기의 사진과 동영상은 노드에서 약 %s를 차지합니다.
---
[profile_node_storage_media]
사진 및 동영상 업로드
---
[profile_node_storage_media_on]
사진은 일기 항목과 함께 이 노드로 동기화됩니다.
---
[profile_node_storage_media_off]
사진은 이 기기에 남습니다. 일기는 계속 동기화되고, 다른 기기에는 사진이 있던 자리가 표시됩니다.
---
[profile_node_storage_media_failed]
이 노드의 사진 업로드 설정을 바꾸지 못했습니다.
---
[diary_photo_no_room]
%s에 이 사진을 저장할 공간이 없습니다. 프로필 › 데이터에서 사진 업로드를 끄세요.
---
[diary_photo_unavailable]
이 사진은 이 기기에 없습니다. 사진을 보관하는 기기나 노드에 남아 있습니다.
---
[device_link_title]
기기 연결
---
[device_link_intro_send]
QR 코드로 이 계정에 다른 휴대폰이나 컴퓨터를 추가하세요.
---
[device_link_intro_receive]
다른 기기에서 이미 Inner Breeze를 사용하나요? QR 코드로 이 기기를 연결하세요.
---
[device_link_show]
코드 표시
---
[device_link_scan]
코드 스캔
---
[device_link_show_hint_send]
새 기기에서 프로필을 열고 기기 연결로 이동한 다음 코드 스캔을 누르고 카메라를 여기에 비추세요.
---
[device_link_show_hint_receive]
이미 내 계정을 사용하는 휴대폰에서 프로필을 열고 기기 연결로 이동한 다음 코드 스캔을 누르고 카메라를 여기에 비추세요.
---
[device_link_scan_prompt]
다른 기기의 코드에 카메라를 비추세요
---
[device_link_compare]
다른 기기에 같은 번호가 표시되는지 확인한 다음 연결하세요.
---
[device_link_waiting_compare]
다른 기기에서 이 번호를 확인하고 연결을 누르세요.
---
[device_link_ask]
다른 기기를 내 계정에 연결할까요?
---
[device_link_connect]
연결
---
[device_link_working]
연결 중…
---
[device_link_connected]
기기가 연결되었습니다.
---
[device_link_failed]
기기를 연결하지 못했습니다. 다시 시도하세요.
---
[device_link_offline]
동기화 서버에 연결할 수 없습니다. 연결을 확인하고 다시 시도하세요.
---
[device_link_expired]
코드가 만료되었습니다. 새 코드를 표시하세요.
---
[device_link_not_a_code]
Inner Breeze 연결 코드가 아닙니다.
---
[device_link_no_account]
이 기기에는 아직 공유할 계정이 없습니다. 여기에서 코드를 표시하세요.
---
[return_to_apps]
앱으로 돌아가기
---
+148 -15
View File
@@ -100,9 +100,6 @@ Enviados
[profile_no_leaderboard_data]
Sem dados de classificacao
---
[profile_practice_label]
Pratica
---
[profile_my_habits_title]
Meus hábitos
---
@@ -1929,12 +1926,6 @@ Dados
[profile_data_management_body]
Importação, exportação e armazenamento
---
[profile_leaderboard_preview_body]
Ver a classificação e sua sequência atual
---
[profile_no_rank_short]
Ainda sem classificação
---
[appearance_style_label]
Estilo
---
@@ -2324,7 +2315,7 @@ Resposta do desenvolvedor:
---
[lumi_feedback_saved]
Salvei seu feedback para o desenvolvedor.
Guardado neste dispositivo, à espera de envio para a caixa de entrada do programador. É necessária uma conta Inner Breeze e acesso à internet.
---
[lumi_show_progress]
@@ -2358,7 +2349,7 @@ Nenhuma atividade registrada neste período.
---
[lumi_feedback_confirm]
Enviar este feedback ao desenvolvedor?
Enviar este feedback ao desenvolvedor? Ele inclui a versão do app, o modelo do dispositivo e a versão do sistema.
---
[lumi_feedback_yes]
@@ -2368,6 +2359,15 @@ Sim
[lumi_feedback_no]
Não
---
[lumi_commands]
Comandos
---
[lumi_command_help]
Mostrar o que a Lumi pode fazer
---
[lumi_command_feedback]
Enviar feedback ao desenvolvedor
---
[lumi_telegram]
Mensagens do Telegram
@@ -2655,10 +2655,143 @@ Pausado em outro dispositivo
Aguardando o dispositivo com a sessão em andamento
---
[session_detach_button]
Separar a janela da prática
[lumi_feedback_delivered]
A caixa de entrada do programador recebeu o teu comentário.
---
[session_attach_button]
Devolver a janela ao aplicativo
[lumi_feedback_unavailable]
A entrega na caixa de entrada do programador não está confirmada. O teu comentário continua guardado neste dispositivo e o envio será tentado novamente.
---
[sync_storage_full]
O nó de sincronização não tem espaço para estas alterações, por isso elas não estão sendo sincronizadas. Desative o envio de fotos para ele em Perfil › Dados.
---
[profile_node_storage_title]
Armazenamento nos nós
---
[profile_node_storage_hint]
Espaço que sua conta usa em cada nó com que você sincroniza.
---
[profile_node_storage_active]
Em uso
---
[profile_node_storage_unknown]
O uso aparece após a próxima sincronização com este nó.
---
[profile_node_storage_used_of]
%s de %s usados
---
[profile_node_storage_used_unlimited]
%s usados · sem limite
---
[profile_node_storage_nearly_full]
Quase cheio. Quando encher, as alterações deixam de ser sincronizadas aqui.
---
[profile_node_storage_nearly_full_media]
Quase cheio. As fotos o enchem mais rápido; desative o envio de fotos para continuar sincronizando suas entradas.
---
[profile_node_storage_full]
Não há espaço para as alterações mais recentes, por isso elas não estão sendo sincronizadas com este nó.
---
[profile_node_storage_full_media]
Não há espaço para as alterações mais recentes, por isso elas não estão sendo sincronizadas com este nó. Desative abaixo o envio de fotos para sincronizar todo o resto.
---
[profile_node_storage_photos]
As fotos e vídeos deste dispositivo ocupam cerca de %s em um nó.
---
[profile_node_storage_media]
Enviar fotos e vídeos
---
[profile_node_storage_media_on]
As fotos são sincronizadas com este nó junto com as entradas do diário.
---
[profile_node_storage_media_off]
As fotos ficam neste dispositivo. As entradas continuam sincronizando, e os outros dispositivos mostram onde há uma foto.
---
[profile_node_storage_media_failed]
Não foi possível alterar o envio de fotos para este nó.
---
[diary_photo_no_room]
Não há espaço em %s para esta foto. Desative o envio de fotos em Perfil › Dados.
---
[diary_photo_unavailable]
Esta foto não está neste dispositivo. Ela fica no dispositivo ou nó que guarda as fotos.
---
[device_link_title]
Conectar um dispositivo
---
[device_link_intro_send]
Adicione outro telefone ou computador a esta conta com um código QR.
---
[device_link_intro_receive]
Já usa o Inner Breeze em outro dispositivo? Conecte este com um código QR.
---
[device_link_show]
Mostrar código
---
[device_link_scan]
Escanear código
---
[device_link_show_hint_send]
No novo dispositivo, abra Perfil e depois Conectar um dispositivo, toque em Escanear código e aponte a câmera para cá.
---
[device_link_show_hint_receive]
Em um telefone que já usa sua conta, abra Perfil e depois Conectar um dispositivo, toque em Escanear código e aponte a câmera para cá.
---
[device_link_scan_prompt]
Aponte a câmera para o código no outro dispositivo
---
[device_link_compare]
Confira se o outro dispositivo mostra o mesmo número e depois conecte.
---
[device_link_waiting_compare]
No outro dispositivo, confira este número e toque em Conectar.
---
[device_link_ask]
Conectar o outro dispositivo à sua conta?
---
[device_link_connect]
Conectar
---
[device_link_working]
Conectando…
---
[device_link_connected]
Dispositivo conectado.
---
[device_link_failed]
Não foi possível conectar o dispositivo. Tente novamente.
---
[device_link_offline]
Não foi possível acessar o servidor de sincronização. Verifique sua conexão e tente novamente.
---
[device_link_expired]
O código expirou. Mostre um novo.
---
[device_link_not_a_code]
Esse não é um código de conexão do Inner Breeze.
---
[device_link_no_account]
Este dispositivo ainda não tem uma conta para compartilhar. Mostre um código aqui.
---
[return_to_apps]
Voltar para Aplicativos
---
+148 -15
View File
@@ -100,9 +100,6 @@ Inner Breeze
[profile_no_leaderboard_data]
Нет данных рейтинга
---
[profile_practice_label]
Практика
---
[profile_my_habits_title]
Мои привычки
---
@@ -1920,12 +1917,6 @@ Inner Breeze бесплатное приложение с открытым ис
[profile_data_management_body]
Импорт, экспорт и хранение
---
[profile_leaderboard_preview_body]
Посмотреть рейтинг и текущую серию
---
[profile_no_rank_short]
Пока нет места в рейтинге
---
[appearance_style_label]
Стиль
---
@@ -2324,7 +2315,7 @@ Inner Breeze бесплатное приложение с открытым ис
---
[lumi_feedback_saved]
Ваш отзыв сохранён для разработчика.
Сохранено на этом устройстве и ожидает отправки в почтовый ящик разработчика. Для доставки нужны аккаунт Inner Breeze и доступ к интернету.
---
[lumi_show_progress]
@@ -2358,7 +2349,7 @@ Inner Breeze бесплатное приложение с открытым ис
---
[lumi_feedback_confirm]
Отправить этот отзыв разработчику?
Отправить этот отзыв разработчику? К нему прилагаются версия приложения, модель устройства и версия системы.
---
[lumi_feedback_yes]
@@ -2368,6 +2359,15 @@ Inner Breeze бесплатное приложение с открытым ис
[lumi_feedback_no]
Нет
---
[lumi_commands]
Команды
---
[lumi_command_help]
Показать, что умеет Lumi
---
[lumi_command_feedback]
Отправить отзыв разработчику
---
[lumi_telegram]
Сообщения из Telegram
@@ -2655,10 +2655,143 @@ Inner Breeze бесплатное приложение с открытым ис
Ожидание устройства с текущим сеансом
---
[session_detach_button]
Отделить окно практики
[lumi_feedback_delivered]
Ваш отзыв получен в почтовом ящике разработчика.
---
[session_attach_button]
Вернуть окно в приложение
[lumi_feedback_unavailable]
Доставка в почтовый ящик разработчика не подтверждена. Ваш отзыв сохранён на этом устройстве, и отправка будет повторена.
---
[sync_storage_full]
На узле синхронизации нет места для этих изменений, поэтому они не синхронизируются. Отключите загрузку фото для этого узла в разделе Профиль › Данные.
---
[profile_node_storage_title]
Хранилище узлов
---
[profile_node_storage_hint]
Сколько места ваш аккаунт занимает на каждом узле, с которым вы синхронизируетесь.
---
[profile_node_storage_active]
Используется
---
[profile_node_storage_unknown]
Объём появится после следующей синхронизации с этим узлом.
---
[profile_node_storage_used_of]
Занято %s из %s
---
[profile_node_storage_used_unlimited]
Занято %s · без ограничения
---
[profile_node_storage_nearly_full]
Почти заполнено. Когда место закончится, изменения перестанут синхронизироваться сюда.
---
[profile_node_storage_nearly_full_media]
Почти заполнено. Быстрее всего место занимают фото; отключите загрузку фото, чтобы записи продолжали синхронизироваться.
---
[profile_node_storage_full]
Для последних изменений нет места, поэтому они не синхронизируются с этим узлом.
---
[profile_node_storage_full_media]
Для последних изменений нет места, поэтому они не синхронизируются с этим узлом. Отключите ниже загрузку фото, чтобы синхронизировалось всё остальное.
---
[profile_node_storage_photos]
Фото и видео с этого устройства занимают на узле около %s.
---
[profile_node_storage_media]
Загружать фото и видео
---
[profile_node_storage_media_on]
Фото синхронизируются с этим узлом вместе с записями дневника.
---
[profile_node_storage_media_off]
Фото остаются на этом устройстве. Записи продолжают синхронизироваться, а другие устройства показывают, где есть фото.
---
[profile_node_storage_media_failed]
Не удалось изменить загрузку фото для этого узла.
---
[diary_photo_no_room]
На %s нет места для этого фото. Отключите загрузку фото в разделе Профиль › Данные.
---
[diary_photo_unavailable]
Этого фото нет на этом устройстве. Оно хранится на устройстве или узле, где сохраняются фото.
---
[device_link_title]
Подключить устройство
---
[device_link_intro_send]
Добавьте к этому аккаунту другой телефон или компьютер с помощью QR-кода.
---
[device_link_intro_receive]
Уже пользуетесь Inner Breeze на другом устройстве? Подключите это с помощью QR-кода.
---
[device_link_show]
Показать код
---
[device_link_scan]
Сканировать код
---
[device_link_show_hint_send]
На новом устройстве откройте «Профиль», затем «Подключить устройство», нажмите «Сканировать код» и наведите камеру сюда.
---
[device_link_show_hint_receive]
На телефоне, где уже есть ваш аккаунт, откройте «Профиль», затем «Подключить устройство», нажмите «Сканировать код» и наведите камеру сюда.
---
[device_link_scan_prompt]
Наведите камеру на код на другом устройстве
---
[device_link_compare]
Убедитесь, что на другом устройстве то же число, затем подключите.
---
[device_link_waiting_compare]
На другом устройстве проверьте это число и нажмите «Подключить».
---
[device_link_ask]
Подключить другое устройство к вашему аккаунту?
---
[device_link_connect]
Подключить
---
[device_link_working]
Подключение…
---
[device_link_connected]
Устройство подключено.
---
[device_link_failed]
Не удалось подключить устройство. Попробуйте ещё раз.
---
[device_link_offline]
Сервер синхронизации недоступен. Проверьте подключение и попробуйте ещё раз.
---
[device_link_expired]
Срок действия кода истёк. Покажите новый.
---
[device_link_not_a_code]
Это не код подключения Inner Breeze.
---
[device_link_no_account]
На этом устройстве пока нет аккаунта для передачи. Покажите код здесь.
---
[return_to_apps]
Назад к приложениям
---
+148 -15
View File
@@ -100,9 +100,6 @@
[profile_no_leaderboard_data]
没有排行榜数据
---
[profile_practice_label]
练习
---
[profile_my_habits_title]
我的习惯
---
@@ -1920,12 +1917,6 @@ Inner Breeze 免费且开源。如果它对您有帮助,一点小额捐赠将
[profile_data_management_body]
导入、导出和存储
---
[profile_leaderboard_preview_body]
查看排名和当前连续记录
---
[profile_no_rank_short]
暂无排名
---
[appearance_style_label]
样式
---
@@ -2324,7 +2315,7 @@ Inner Breeze 免费且开源。如果它对您有帮助,一点小额捐赠将
---
[lumi_feedback_saved]
已保存你的反馈,供开发者查看。
已保存在此设备上,等待发送到开发者收件箱。发送需要 Inner Breeze 账户和互联网连接。
---
[lumi_show_progress]
@@ -2358,7 +2349,7 @@ WHM 最长屏息时间(秒)
---
[lumi_feedback_confirm]
将此反馈发送给开发者吗?
将此反馈发送给开发者吗?应用版本、设备名称和系统版本会一起发送。
---
[lumi_feedback_yes]
@@ -2368,6 +2359,15 @@ WHM 最长屏息时间(秒)
[lumi_feedback_no]
否
---
[lumi_commands]
命令
---
[lumi_command_help]
查看 Lumi 能做什么
---
[lumi_command_feedback]
向开发者发送反馈
---
[lumi_telegram]
从Telegram输入
@@ -2655,10 +2655,143 @@ Daochi 节点
正在等待运行练习的设备
---
[session_detach_button]
弹出练习窗口
[lumi_feedback_delivered]
开发者收件箱已收到你的反馈。
---
[session_attach_button]
将窗口移回应用
[lumi_feedback_unavailable]
尚未确认反馈已送达开发者收件箱。反馈已保存在此设备上,稍后会重试发送。
---
[sync_storage_full]
同步节点没有空间保存这些更改,因此无法同步。请在“个人资料 › 数据”中关闭该节点的照片上传。
---
[profile_node_storage_title]
节点存储
---
[profile_node_storage_hint]
你的账户在每个同步节点上占用的空间。
---
[profile_node_storage_active]
使用中
---
[profile_node_storage_unknown]
与此节点下次同步后会显示用量。
---
[profile_node_storage_used_of]
已用 %s / %s
---
[profile_node_storage_used_unlimited]
已用 %s · 无上限
---
[profile_node_storage_nearly_full]
即将用完。用完后,更改将不再同步到这里。
---
[profile_node_storage_nearly_full_media]
即将用完。照片占用空间最快;关闭照片上传可让日记继续同步。
---
[profile_node_storage_full]
没有空间保存最新的更改,因此无法同步到此节点。
---
[profile_node_storage_full_media]
没有空间保存最新的更改,因此无法同步到此节点。在下方关闭照片上传后,其他内容会继续同步。
---
[profile_node_storage_photos]
此设备上的照片和视频在节点上约占 %s。
---
[profile_node_storage_media]
上传照片和视频
---
[profile_node_storage_media_on]
照片会随日记一起同步到此节点。
---
[profile_node_storage_media_off]
照片保留在此设备上。日记仍会同步,其他设备会显示照片所在的位置。
---
[profile_node_storage_media_failed]
无法更改此节点的照片上传设置。
---
[diary_photo_no_room]
%s 上没有空间保存这张照片。请在“个人资料 › 数据”中关闭照片上传。
---
[diary_photo_unavailable]
这张照片不在此设备上。它保存在存放照片的设备或节点上。
---
[device_link_title]
连接设备
---
[device_link_intro_send]
用二维码将另一部手机或电脑添加到此账户。
---
[device_link_intro_receive]
已在其他设备上使用 Inner Breeze?用二维码连接这台设备。
---
[device_link_show]
显示二维码
---
[device_link_scan]
扫描二维码
---
[device_link_show_hint_send]
在新设备上打开“个人资料”,再进入“连接设备”,点按“扫描二维码”并将相机对准这里。
---
[device_link_show_hint_receive]
在已登录你账户的手机上打开“个人资料”,再进入“连接设备”,点按“扫描二维码”并将相机对准这里。
---
[device_link_scan_prompt]
将相机对准另一台设备上的二维码
---
[device_link_compare]
确认另一台设备显示的是相同的数字,然后连接。
---
[device_link_waiting_compare]
在另一台设备上核对这个数字,然后点按“连接”。
---
[device_link_ask]
将另一台设备连接到你的账户?
---
[device_link_connect]
连接
---
[device_link_working]
正在连接…
---
[device_link_connected]
设备已连接。
---
[device_link_failed]
无法连接设备,请重试。
---
[device_link_offline]
无法连接同步服务器。请检查网络后重试。
---
[device_link_expired]
二维码已过期,请显示新的二维码。
---
[device_link_not_a_code]
这不是 Inner Breeze 的连接二维码。
---
[device_link_no_account]
这台设备还没有可共享的账户。请在此显示二维码。
---
[return_to_apps]
返回应用
---
+1 -1
View File
@@ -1,5 +1,5 @@
Package: inbe.waozi
Version: 2.1.26
Version: 2.1.28
Architecture: arm64
Maintainer: Waozi <[email protected]>
Click-Version: 0.4
+1 -1
View File
@@ -28,7 +28,7 @@
<binary>inbe</binary>
</provides>
<releases>
<release version="2.1.26" date="2026-10-09"/>
<release version="2.1.28" date="2026-10-10"/>
</releases>
<content_rating type="oars-1.1"/>
</component>
+1 -1
View File
@@ -1,7 +1,7 @@
{
"name": "inbe",
"title": "Inner Breeze",
"version": "2.1.26",
"version": "2.1.28",
"architecture": "arm64",
"framework": "ubuntu-sdk-20.04",
"description": "Syncable breathing, meditation, and habit practice app.",
+1 -1
View File
@@ -2,7 +2,7 @@
"manifest_version": 3,
"name": "Inner Breeze",
"short_name": "Inbe",
"version": "2.1.26",
"version": "2.1.28",
"description": "Breathing, meditation, habit tracking, and encrypted sync.",
"permissions": [
"contextMenus"
+1 -1
View File
@@ -22,7 +22,7 @@
<binary>inbe</binary>
</provides>
<releases>
<release version="2.1.26" date="2026-10-09"/>
<release version="2.1.28" date="2026-10-10"/>
</releases>
<content_rating type="oars-1.1"/>
</component>
+1 -1
View File
@@ -22,7 +22,7 @@
<binary>inbe</binary>
</provides>
<releases>
<release version="2.1.26" date="2026-10-09"/>
<release version="2.1.28" date="2026-10-10"/>
</releases>
<content_rating type="oars-1.1"/>
</component>
+1 -1
View File
@@ -6,7 +6,7 @@ description: |
meditation, and habit tracking with visual and audio cues, meditation
timers, habit counters, session history, and optional sync.
version: '2.1.26'
version: '2.1.28'
license: BSD-3-Clause
base: core22
confinement: strict
+2 -2
View File
@@ -19,7 +19,7 @@ python3 scripts/animation_inventory.py --check
python3 scripts/prepare-package-assets.py
mkdir -p "$output" build/bundled-cells
rm -f "$output/practice.zib"
for feature in lists habits practices diary lumi; do
for feature in lists habits practices diary lumi leaderboard; do
source=$feature
entry=$feature
if [ "$feature" = practices ]; then source=practice; entry=practice; fi
@@ -33,7 +33,7 @@ for feature in lists habits practices diary lumi; do
done
# Removing a sidebar shortcut never removes its bundled package.
rm -f build/bundled-cells/practice.zib
for feature in lists habits practices diary lumi; do
for feature in lists habits practices diary lumi leaderboard; do
cp "$output/$feature.zib" build/bundled-cells/
done
"$ziran" bundle --root . --module-path src \
+3 -2
View File
@@ -8,7 +8,8 @@ import re
import sys
NAMES = {"inbe": "inbe", "lists": "lists", "habits": "habits",
"practices": "practice", "diary": "diary", "lumi": "lumi"}
"practices": "practice", "diary": "diary", "lumi": "lumi",
"leaderboard": "leaderboard"}
VERSION = r"(?:0|[1-9][0-9]{0,8})\.(?:0|[1-9][0-9]{0,8})\.(?:0|[1-9][0-9]{0,8})"
@@ -18,7 +19,7 @@ def validate(root):
if type(ledger.get(api)) is not int or not 0 < ledger[api] <= 2147483647:
raise ValueError(f"invalid {api}")
if set(ledger["apps"]) != set(NAMES):
raise ValueError("the ledger must contain the root and all five cells")
raise ValueError("the ledger must contain the root and all six cells")
for name, source in NAMES.items():
component = ledger["apps"][name]
expected_id = "inbe" if name == "inbe" else "inbe." + name
+2
View File
@@ -56,6 +56,8 @@ result = subprocess.run(
"--module-path",
str(game2d),
"--module-path",
f"qrcode={root / 'build/packages/qrcode/src'}",
"--module-path",
str(standard),
"--module-path",
str(client),
+1
View File
@@ -33,6 +33,7 @@ for directory in (
# KSS imports Kryon as kryon/NAME, and account code imports oqs/Oqs.
command.extend(["--module-path", f"kryon={kryon / 'src/ui'}"])
command.extend(["--module-path", f"kryon={kryon / 'src/backend'}"])
command.extend(["--module-path", f"qrcode={root / 'build/packages/qrcode/src'}"])
command.extend(["--module-path", f"oqs={root / 'build/packages/oqs/src'}"])
command.extend(["-o", str(args.output)])
command.extend(str(path.relative_to(root)) for path in sources)
+2 -1
View File
@@ -29,6 +29,7 @@ roots = [
"ListsMutationResult",
"HabitsMessage",
"PracticeMessage",
"LeaderboardMessage",
]
needed = []
@@ -50,7 +51,7 @@ lines = [
"// No native application pointers cross the portable module boundary.",
*[
f'#import, file "{name}_types.zi";'
for name in ["module", "lists", "habits", "practice", "inbe", "diary", "lumi"]
for name in ["module", "lists", "habits", "practice", "inbe", "diary", "lumi", "leaderboard"]
],
'#import "bundle_host"',
'#import "byte_text_linux"',
+5 -5
View File
@@ -6,7 +6,7 @@ import re
root = Path(__file__).resolve().parent.parent
ledger = json.loads((root / "apps/versions.json").read_text())
names = ("inbe", "lists", "habits", "practices", "diary", "lumi")
names = ("inbe", "lists", "habits", "practices", "diary", "lumi", "leaderboard")
apps = ledger["apps"]
for name in names:
value = apps[name]
@@ -16,12 +16,12 @@ for name in names:
raise SystemExit(f"invalid {name} sequence")
lines = ["// Generated from apps/versions.json; module releases are independent.",
"PackageBundledVersion :: (index: s32) -> string {",
" if index < 0 || index >= 6 {", " return \"\"", " }",
" versions: [6]string = .[" + ", ".join(json.dumps(apps[n]["version"]) for n in names) + "]",
f" if index < 0 || index >= {len(names)} {{", " return \"\"", " }",
f" versions: [{len(names)}]string = .[" + ", ".join(json.dumps(apps[n]["version"]) for n in names) + "]",
" return versions[index]", "}", "",
"PackageBundledSequence :: (index: s32) -> s32 {",
" if index < 0 || index >= 6 {", " return 0", " }",
" sequences: [6]s32 = .[" + ", ".join(str(apps[n]["sequence"] if apps[n]["bundled"] else 0) for n in names) + "]",
f" if index < 0 || index >= {len(names)} {{", " return 0", " }",
f" sequences: [{len(names)}]s32 = .[" + ", ".join(str(apps[n]["sequence"] if apps[n]["bundled"] else 0) for n in names) + "]",
" return sequences[index]", "}", ""]
path = root / "src/cells/versions.zi"
content = "\n".join(lines)
+5 -2
View File
@@ -10,7 +10,8 @@ modules = ['session', 'geometry', 'drawing_props', 'text_props', 'image_props',
schema = {}
for path in [*(root / 'build/packages/kryon/src/ui' / (m + '.zi') for m in modules),
root / 'src/cells/diary_ui_types.zi', root / 'src/cells/inbe_ui_types.zi',
root / 'src/cells/lists_ui_types.zi', root / 'src/cells/lumi_ui_types.zi', root / 'src/cells/lumi_types.zi']:
root / 'src/cells/lists_ui_types.zi', root / 'src/cells/lumi_ui_types.zi', root / 'src/cells/lumi_types.zi',
root / 'src/cells/leaderboard_ui_types.zi']:
for name, body in re.findall(r'(\w+)\s*::\s*struct\s*\{([^{}]*)\}', path.read_text()):
schema[name] = [(n, re.sub(r'\s+', '', t.split('//')[0])) for n, t in
re.findall(r'^\s*(\w+)\s*:\s*([^\n;]+)', body, re.M)]
@@ -18,7 +19,8 @@ roots = ['TextProps','ImageProps','ButtonProps','TextAreaProps','TextAreaResult'
'ScrollProps','ScrollResult','DiaryUiFrame','Session','InbeUiFrame',
'CheckboxProps','CheckboxValueResult','ToggleProps','ToggleValueResult',
'TextFieldProps','TextFieldResult','Tab','TabBarProps','TabBarResult',
'BoxProps','ListsUiFrame','ListsUiRow','LumiUiFrame','LumiChatRow','LumiTask','LumiAction','LumiTools','LumiDonation']
'BoxProps','ListsUiFrame','ListsUiRow','LumiUiFrame','LumiChatRow','LumiTask','LumiAction','LumiTools','LumiDonation',
'LeaderboardUiFrame','LeaderboardUiRow']
needed = []
def discover(t):
if t.startswith('[]'): discover(t[2:]); return
@@ -30,6 +32,7 @@ lines = ['// Generated by scripts/generate-widget-codecs.py; bounded public widg
'#import "bundle_host"', '#import "byte_text_linux"',
'#import, file "value_codec.zi";', '#import, file "diary_ui_types.zi";', '#import, file "inbe_ui_types.zi";',
'#import, file "lists_ui_types.zi";', '#import, file "lumi_ui_types.zi";', '#import, file "lumi_types.zi";',
'#import, file "leaderboard_ui_types.zi";',
*(f'#import "{m}"' for m in modules), 'using HostValueKind;', '']
def scalar(t):
return 'HostString' if t == 'string' else 'HostReal' if t.startswith('float') else 'HostUnsigned' if t.startswith('u') else 'HostInteger'
+3 -2
View File
@@ -18,7 +18,8 @@ from cryptography.hazmat.primitives.asymmetric.ed25519 import Ed25519PrivateKey
ROOT = Path(__file__).resolve().parent.parent
NAMES = {"inbe": "Inner Breeze", "habits": "Habits", "practices": "Practices",
"lists": "Lists", "diary": "Diary", "lumi": "Lumi"}
"lists": "Lists", "diary": "Diary", "lumi": "Lumi",
"leaderboard": "Leaderboard"}
# Declaration order is part of Daochi's Go JSON signature contract.
FIELDS = ("manifest_version", "app_id", "display_name", "description",
"homepage_url", "source_url", "status", "expires_at", "lan_only",
@@ -116,7 +117,7 @@ def registrations(origin, key_path, approval_path, key_id, output, open_url=urlo
pin = next((pin for pin in pins if pin["key_id"] == key_id and pin["public_key"] == public), None)
versions = json.loads((ROOT / "apps/versions.json").read_text())
if pin is None or not {app["id"] for app in versions["apps"].values()} <= set(pin["app_ids"]):
raise ValueError("publisher must match the shipped pin for the root and all five cells")
raise ValueError("publisher must match the shipped pin for the root and every cell")
prepared = {}
for name, component in versions["apps"].items():
try:
+18 -8
View File
@@ -19,7 +19,7 @@ from cryptography.hazmat.primitives import serialization
from cryptography.hazmat.primitives.asymmetric.ed25519 import Ed25519PrivateKey, Ed25519PublicKey
ROOT = Path(__file__).resolve().parent.parent
NAMES = ("habits", "practices", "lumi", "lists", "diary", "inbe")
NAMES = ("habits", "practices", "lumi", "lists", "diary", "leaderboard", "inbe")
IDENTIFIER = re.compile(r"[a-z0-9][a-z0-9_.-]{0,62}\Z")
VERSION = re.compile(r"(?:0|[1-9][0-9]{0,8})\.(?:0|[1-9][0-9]{0,8})\.(?:0|[1-9][0-9]{0,8})\Z")
@@ -83,7 +83,7 @@ def stage(store, key_path, key_id, publishers_path=None):
artifact = dict(variant="module", sha256=sha256(data).hexdigest(), size=len(data))
dependencies = []
if name == "inbe":
for child in ("habits", "practices", "lumi", "lists", "diary"):
for child in (name for name in NAMES if name != "inbe"):
release = releases[child]
nested = payloads[child]
if data.count(nested) != 1:
@@ -210,7 +210,7 @@ def verify_origin(store, origin, open_url=open_public_url):
checksum.update(block)
if size != artifact["size"] or checksum.hexdigest() != digest:
raise ValueError(f"{app_id}: public package hash or size differs from the signed publication")
print("Verified public signed metadata and package bytes for the root and all five cells")
print("Verified public signed metadata and package bytes for the root and all six cells")
def validate_release(value, app_id, publishers):
@@ -235,6 +235,10 @@ def validate_release(value, app_id, publishers):
raise ValueError("invalid module artifact")
dependencies = value["dependencies"]
expected = sorted("inbe." + name for name in NAMES if name != "inbe") if app_id == "inbe" else []
# Roots built before Leaderboard became an app have no dependency on it.
if app_id == "inbe" and isinstance(dependencies, list) and \
len(dependencies) == len(expected) - 1:
expected.remove("inbe.leaderboard")
if not isinstance(dependencies, list) or len(dependencies) != len(expected):
raise ValueError("invalid root dependencies")
for dependency, expected_id in zip(dependencies, expected):
@@ -261,7 +265,8 @@ def import_archive(archive, store, publishers_path=None):
"""Node-side merge. Daochi still checks registry/key status on every GET."""
import tarfile
publishers = json.loads((publishers_path or ROOT / "apps/publishers.json").read_text())
ids = {"inbe", "inbe.habits", "inbe.practices", "inbe.lists", "inbe.diary", "inbe.lumi"}
ids = {"inbe", "inbe.habits", "inbe.practices", "inbe.lists", "inbe.diary", "inbe.lumi",
"inbe.leaderboard"}
entries = {}
total = 0
with tarfile.open(archive) as tar:
@@ -272,12 +277,17 @@ def import_archive(archive, store, publishers_path=None):
if member.name in entries:
raise ValueError("duplicate archive member")
total += member.size
if len(entries) >= 24 or total > 6 * 64 * 1024 * 1024 + 1024 * 1024:
if len(entries) >= 28 or total > 7 * 64 * 1024 * 1024 + 1024 * 1024:
raise ValueError("archive exceeds the release size limit")
entries[member.name] = tar.extractfile(member).read()
# The node accepts archives built before and after Leaderboard became an
# app, so the importer and the app can be updated in either order.
present = {name.split("/")[0] for name in entries}
if present != ids and present != ids - {"inbe.leaderboard"}:
raise ValueError("archive must contain the root and every cell")
with ExitStack() as stack:
releases = {}
for app_id in sorted(ids):
for app_id in sorted(present):
directory = store / app_id
directory.mkdir(parents=True, exist_ok=True, mode=0o700)
lock = stack.enter_context((directory / ".publish.lock").open("a+b"))
@@ -312,7 +322,7 @@ def import_archive(archive, store, publishers_path=None):
sha256=artifact["sha256"], size=artifact["size"]) or root[2].count(payload) != 1:
raise ValueError("root does not contain its exact signed cell dependency")
# Dependencies go first. Publishing the root is the final step.
for app_id in sorted(ids, key=lambda value: value == "inbe"):
for app_id in sorted(present, key=lambda value: value == "inbe"):
value, encoded, data = releases[app_id]
directory = store / app_id
payload = directory / (value["artifacts"][0]["sha256"] + ".zib")
@@ -332,7 +342,7 @@ def receive_archive(store, publishers_path):
raise ValueError("upload key permits only publication to its configured package store")
with tempfile.TemporaryDirectory(prefix="inbe-receive-") as directory:
archive = Path(directory) / "packages.tar"
maximum = 5 * 64 * 1024 * 1024 + 1024 * 1024
maximum = 7 * 64 * 1024 * 1024 + 1024 * 1024
total = 0
with archive.open("wb") as output:
while True:
+1
View File
@@ -86,6 +86,7 @@ link kss kss
link oqs oqs
link raylib raylib
link game2d game2d
link qrcode qrcode
link daochi-client daochi_client
link sqlite sqlite
link curl curl
+1 -1
View File
@@ -10,7 +10,7 @@ _, _, unique_animation = inventory()
unique_animation = set(unique_animation)
if OUTPUT.exists():
shutil.rmtree(OUTPUT)
for name in ('inbe', 'lists', 'habits', 'practices', 'diary', 'lumi'):
for name in ('inbe', 'lists', 'habits', 'practices', 'diary', 'lumi', 'leaderboard'):
(OUTPUT / name / 'assets').mkdir(parents=True)
patterns = (
'assets/mcp/*.json', 'assets/app/icon.png', 'assets/app/icon-sky-cradle.png',
+2 -1
View File
@@ -21,6 +21,7 @@
{"scene":"practice_manual_whm", "slug":"13-breathing-guide", "app":"practices", "expected":["How to"], "store":false},
{"scene":"cobalt_dark", "slug":"14-dark-patterns", "app":"practices", "expected":["Steady Box Breath"], "theme":11, "dark":1, "store":false},
{"scene":"settings_overview", "slug":"15-settings", "app":"inbe", "expected":["Language"], "store":false},
{"scene":"lists_completed", "slug":"16-completed-list", "app":"lists", "expected":["Hide completed", "Fresh fruit"], "store":false}
{"scene":"lists_completed", "slug":"16-completed-list", "app":"lists", "expected":["Hide completed", "Fresh fruit"], "store":false},
{"scene":"leaderboard", "slug":"17-leaderboard", "app":"leaderboard", "expected":["Breathing Patterns", "maple"], "store":false}
]
}
+3 -2
View File
@@ -7,9 +7,10 @@ import sys
root = Path(__file__).resolve().parent.parent
names = {"inbe": "inbe", "lists": "lists", "habits": "habits",
"practices": "practice", "diary": "diary", "lumi": "lumi"}
"practices": "practice", "diary": "diary", "lumi": "lumi",
"leaderboard": "leaderboard"}
if len(sys.argv) != 2 or sys.argv[1] not in names:
raise SystemExit("usage: ./update_version.sh --cell inbe|lists|habits|practices|diary")
raise SystemExit("usage: ./update_version.sh --cell inbe|lists|habits|practices|diary|lumi|leaderboard")
name = sys.argv[1]
changelog = (root / "apps" / names[name] / "CHANGELOG.md").read_text()
version = re.search(r"^## \[((?:0|[1-9][0-9]{0,8})\.(?:0|[1-9][0-9]{0,8})\.(?:0|[1-9][0-9]{0,8}))\]", changelog, re.M)
+3 -3
View File
@@ -244,10 +244,10 @@ app_draw_launcher :: (app: *InnerBreeze) {
if searched.clipboard_write { unused TextInputWriteClipboard(searched.clipboard_text) }
query := AppTextFromCString(*app.launcher_search[0], 128)
routes := LauncherRoutes()
canonical: [5]string = .{"Diary", "Habits", "Lists", "Lumi", "Practice"}
matches: [5]s32
canonical: [LAUNCHER_APP_COUNT]string = .{"Diary", "Habits", "Lists", "Lumi", "Practice", "Leaderboard"}
matches: [LAUNCHER_APP_COUNT]s32
match_count: s32 = 0
for index: cast(s32)0..4 {
for index: cast(s32)0..LAUNCHER_APP_COUNT - 1 {
if LauncherMatches(app_nav_route_label(routes[index]), query) ||
LauncherMatches(canonical[index], query) {
matches[match_count] = routes[index]
+1
View File
@@ -92,4 +92,5 @@ BeginScreenDraw :: (value: *void, viewport: Rectangle) {
}
app.ui.view_width = cast(s32)viewport.width
app.ui.view_height = cast(s32)viewport.height
app.ui.navigation_height = cast(s32)viewport.height
}
+13 -4
View File
@@ -48,6 +48,9 @@ app_nav_route_bit :: (route: s32) -> s32 {
if route == APP_NAV_ROUTE_LUMI {
bit = APP_LUMI
}
if route == APP_NAV_ROUTE_LEADERBOARD {
bit = APP_LEADERBOARD
}
return bit
}
@@ -87,6 +90,7 @@ app_capture_navigation_viewport :: (app: *InnerBreeze, width: s32,
}
app.ui.view_width = width
app.ui.view_height = height
app.ui.navigation_height = height
// The width is already the layout width: the window divided by the zoom.
app.ui.desktop_mode = cast(s32)IsDesktopWidth(width, 1.0)
}
@@ -116,7 +120,9 @@ app_nav_desktop_rail_enabled :: (app: *InnerBreeze) -> s32 {
return 0
}
placement := app_navigation_placement(app)
full_height := ifx app != null then app.ui.view_height else 0
// Decide from the whole window, so a return bar never turns the sidebar
// into a bottom bar.
full_height := ifx app != null then app.ui.navigation_height else 0
if app == null || (placement != NAVIGATION_LEFT && placement != NAVIGATION_RIGHT) || full_height < AppScale(476) {
return 0
}
@@ -135,7 +141,7 @@ app_nav_desktop_rail_enabled :: (app: *InnerBreeze) -> s32 {
if app.breathing.screen == ScreenHabitSessionEdit || app.breathing.screen == ScreenSession || app.breathing.screen == ScreenMeditation || app.breathing.screen == ScreenSunSalutation || app.breathing.screen == ScreenPatterns || app.breathing.screen == ScreenResults {
return 0
}
return cast(s32)(app.breathing.screen == ScreenStart || app.breathing.screen == ScreenHabits || app.breathing.screen == ScreenHabitEdit || app.breathing.screen == ScreenEList || app.breathing.screen == ScreenLumi || app.breathing.screen == ScreenDiary || app.breathing.screen == ScreenProfile || app.breathing.screen == ScreenSettings || app.breathing.screen == ScreenAppSelection)
return cast(s32)(app.breathing.screen == ScreenStart || app.breathing.screen == ScreenHabits || app.breathing.screen == ScreenHabitEdit || app.breathing.screen == ScreenEList || app.breathing.screen == ScreenLumi || app.breathing.screen == ScreenDiary || app.breathing.screen == ScreenLeaderboard || app.breathing.screen == ScreenProfile || app.breathing.screen == ScreenSettings || app.breathing.screen == ScreenAppSelection)
}
app_bottom_nav_configurable_route :: (route: s32) -> s32 {
@@ -249,7 +255,7 @@ app_open_main_tab :: (app: *InnerBreeze, main_tab: s32, persist: s32) {
return
}
app.main_tab = Clamp(main_tab, APP_MAIN_TAB_HABITS, APP_MAIN_TAB_LUMI)
app.main_tab = Clamp(main_tab, APP_MAIN_TAB_HABITS, APP_MAIN_TAB_LEADERBOARD)
if app.main_tab == APP_MAIN_TAB_PRACTICE {
app.practice_tab = PRACTICE_TAB_PLAY
}
@@ -302,7 +308,7 @@ app_apply_nav_route :: (app: *InnerBreeze, route: s32) {
case APP_NAV_ROUTE_FRIENDS;
app_open_profile_tab(app, PROFILE_TAB_FRIENDS)
case APP_NAV_ROUTE_LEADERBOARD;
app_open_profile_tab(app, PROFILE_TAB_LEADERBOARD)
app_open_main_tab(app, APP_MAIN_TAB_LEADERBOARD, 1)
case APP_NAV_ROUTE_PRACTICE;
app_open_main_tab(app, APP_MAIN_TAB_PRACTICE, 1)
case APP_NAV_ROUTE_HABITS;
@@ -453,6 +459,9 @@ app_current_nav_route :: (app: *InnerBreeze) -> s32 {
if app.breathing.screen == ScreenDiary {
return APP_NAV_ROUTE_DIARY
}
if app.breathing.screen == ScreenLeaderboard {
return APP_NAV_ROUTE_LEADERBOARD
}
return APP_NAV_ROUTE_NONE
}
+5 -4
View File
@@ -15,7 +15,7 @@ c :: #system_library "c";
// The social screen owns these native cache effects. Declaring the calls here
// keeps its screen drawing and storage implementation out of route checking.
profile_social_load_friends_cache :: (app: *InnerBreeze) #foreign c;
profile_social_load_leaderboard_cache :: (app: *InnerBreeze) #foreign c;
leaderboard_screen_enter :: (app: *InnerBreeze) #foreign c;
app_request_social_refresh :: (app: *InnerBreeze) #foreign c;
app_diary_save :: () -> bool #foreign c;
app_lumi_session_result :: (app: *InnerBreeze) #foreign c;
@@ -39,13 +39,14 @@ app_current_route :: (app: *InnerBreeze) -> AppRoute {
}
enter_route :: (app: *InnerBreeze, route: AppRoute) {
if route.screen == ScreenLeaderboard {
leaderboard_screen_enter(app)
return
}
if route.screen != ScreenProfile { return }
if route.profile_tab == PROFILE_TAB_FRIENDS {
profile_social_load_friends_cache(app)
app_request_social_refresh(app)
} else if route.profile_tab == PROFILE_TAB_LEADERBOARD {
profile_social_load_leaderboard_cache(app)
app_request_social_refresh(app)
}
}
+12 -1
View File
@@ -609,7 +609,7 @@ app_load_settings :: (app: *InnerBreeze) -> s32 {
"ui_scale", 10, 5, 25)
load_clamped_setting(*app.main_tab, "main_tab",
APP_MAIN_TAB_LUMI, APP_MAIN_TAB_NONE,
APP_MAIN_TAB_LUMI)
APP_MAIN_TAB_LEADERBOARD)
load_clamped_setting(*app.habits.screen_mode,
"habits_screen_mode", HABITS_SCREEN_OVERVIEW,
HABITS_SCREEN_OVERVIEW, HABITS_SCREEN_STATISTICS)
@@ -740,6 +740,17 @@ app_load_settings :: (app: *InnerBreeze) -> s32 {
save_setting_int("enabled_apps", app.enabled_apps)
save_setting_int("lumi_introduced", 1)
}
// Leaderboard moved from Profile into its own app. Fresh profiles start
// with every app; existing ones get it installed once. Removing it later
// is respected.
if !TelegramHostPresent() && !SettingsCacheContains("leaderboard_introduced") {
if settings_missing == 0 && !SettingsCacheContains("app_used_leaderboard") {
app.enabled_apps |= APP_LEADERBOARD
save_setting_int("app_used_leaderboard", 1)
save_setting_int("enabled_apps", app.enabled_apps)
}
save_setting_int("leaderboard_introduced", 1)
}
app.apps_selected = SettingsCacheInt("apps_setup_done",
ifx settings_missing != 0 then 0 else 1)
+4 -1
View File
@@ -479,7 +479,10 @@ StyleInstall :: (theme_id: s32, dark: bool, style_index: s32) -> bool {
app_apply_style :: (app: *InnerBreeze) -> bool {
if app == null { return false }
scope := StyleActiveScope(app)
if scope == 0 {
// An app without its own sheet compiles to exactly the shared rules, so
// opening it keeps them. Compiling every sheet again on the frame stalled
// a minimized practice's window when an app such as Lumi opened.
if scope == 0 || StyleAppliedSource(scope).count == 0 {
return StyleInstall(app.theme_id, app.dark_mode != 0, app.style_index)
}
if style_installed && style_installed_theme == app.theme_id &&
+18 -15
View File
@@ -395,22 +395,23 @@ app_social_apply_result :: (app: *InnerBreeze, requests_json: string,
if leaderboard_key.count > 0 && leaderboard_json.count > 0 {
current_key: [96] u8
app_social_leaderboard_key(*current_key[0], 96,
app.profile_leaderboard_practice,
app.profile_leaderboard_metric)
app.leaderboard_practice,
app.leaderboard_metric)
if AppTextFromCString(*current_key[0], 96) == leaderboard_key {
AppCopyText(ifx (leaderboard_json.count > 0) then (leaderboard_json) else ("{\"rows\":[]}"), app.profile_leaderboard_json[:])
AppCopyText(ifx (leaderboard_json.count > 0) then (leaderboard_json) else ("{\"rows\":[]}"), app.leaderboard_json[:])
}
}
if leaderboard_avg_key.count > 0 && leaderboard_avg_json.count > 0 {
current_avg_key: [96] u8
app_social_leaderboard_key(*current_avg_key[0], 96,
app.profile_leaderboard_practice, 1)
app.leaderboard_practice, 1)
if AppTextFromCString(*current_avg_key[0], 96) == leaderboard_avg_key {
AppCopyText(ifx (leaderboard_avg_json.count > 0) then (leaderboard_avg_json) else ("{\"rows\":[]}"), app.profile_leaderboard_avg_json[:])
AppCopyText(ifx (leaderboard_avg_json.count > 0) then (leaderboard_avg_json) else ("{\"rows\":[]}"), app.leaderboard_avg_json[:])
}
}
app.profile_friends_loaded = 1
app.profile_leaderboard_loaded = 1
app.leaderboard_loaded = 1
app.leaderboard_revision += 1
app_notifications_on_friends_synced(app)
}
}
@@ -455,7 +456,9 @@ app_social_apply_result :: (app: *InnerBreeze, requests_json: string,
*friends_json[0], size_of(type_of(friends_json)),
*leaderboard_json[0], size_of(type_of(leaderboard_json)))
SyncCopyText(*leaderboard_avg_json[0], size_of(type_of(leaderboard_avg_json)), "{\"rows\":[]}")
if result == cast(SyncResult)SYNC_OK && AppTextFromCString(*args.practice[0], 32) == "whm" {
// Wim Hof ranks average holds and meditation average time as well.
if result == cast(SyncResult)SYNC_OK && (AppTextFromCString(*args.practice[0], 32) == "whm" ||
AppTextFromCString(*args.practice[0], 32) == "meditation") {
avg_metric: string = ifx (AppTextFromCString(*args.practice[0], 32) == "meditation") then ("avg_time") else ("avg_hold")
leaderboard_avg_result = cast(SyncResult)FetchFriendStats(
AppTextFromCString(*args.url[0], 256),
@@ -780,16 +783,16 @@ app_apply_pending_social_refresh :: (app: *InnerBreeze) {
sync_unlock()
SyncCopyText(*args.url[0], 256, AppTextFromCString(*url[0], 256))
SyncCopyText(*args.practice[0], 32, app_social_practice_id(app.profile_leaderboard_practice))
SyncCopyText(*args.metric[0], 32, app_social_metric_id(app.profile_leaderboard_practice,
app.profile_leaderboard_metric))
SyncCopyText(*args.practice[0], 32, app_social_practice_id(app.leaderboard_practice))
SyncCopyText(*args.metric[0], 32, app_social_metric_id(app.leaderboard_practice,
app.leaderboard_metric))
app_social_leaderboard_key(*args.leaderboard_key[0],
size_of(type_of(args.leaderboard_key)),
app.profile_leaderboard_practice,
app.leaderboard_practice,
PROFILE_LEADERBOARD_STREAK)
app_social_leaderboard_key(*args.leaderboard_avg_key[0],
size_of(type_of(args.leaderboard_avg_key)),
app.profile_leaderboard_practice,
app.leaderboard_practice,
PROFILE_LEADERBOARD_AVG_HOLD)
SyncCopyText(*args.metric[0], 32, "streak")
SyncCopyText(*args.action[0], 16, AppTextFromCString(*action[0], 16))
@@ -818,12 +821,12 @@ app_apply_pending_social_refresh :: (app: *InnerBreeze) {
}
SocialQueuePeek(action[:], action_value[:])
app_social_leaderboard_key(*g_social_streak_key[0], 96,
app.profile_leaderboard_practice, PROFILE_LEADERBOARD_STREAK)
app.leaderboard_practice, PROFILE_LEADERBOARD_STREAK)
app_social_leaderboard_key(*g_social_average_key[0], 96,
app.profile_leaderboard_practice, PROFILE_LEADERBOARD_AVG_HOLD)
app.leaderboard_practice, PROFILE_LEADERBOARD_AVG_HOLD)
if !BeginSocialRefresh(*g_social_async, AppTextFromCString(*url[0], 256),
NetworkTransport(*g_social_transfer),
app_social_practice_id(app.profile_leaderboard_practice),
app_social_practice_id(app.leaderboard_practice),
AppTextFromCString(*action[0], 16), AppTextFromCString(*action_value[0], 96)) {
app_social_record_result(g_social_async.result)
return
+16 -9
View File
@@ -103,9 +103,9 @@ SETTINGS_TAB_BREAKS :: 2
SETTINGS_TAB_NOTIFICATIONS :: 3
SETTINGS_TAB_THEME :: 4
SETTINGS_TAB_ABOUT :: 5
// Settings slot 6 is retired; keep Telegram at its persisted ID.
SETTINGS_TAB_TELEGRAM :: 7
SETTINGS_TAB_COUNT :: 8
// Saved slots 6 (the removed Apps panel) and 7 (Telegram, now in Profile)
// open Device.
SETTINGS_TAB_COUNT :: 6
AUDIO_CUE_BREATH_IN :: 0
AUDIO_CUE_BREATH_OUT :: 1
@@ -139,7 +139,7 @@ PROFILE_TAB_OVERVIEW :: 0
PROFILE_TAB_SYNC :: 1
PROFILE_TAB_DATA :: 2
PROFILE_TAB_FRIENDS :: 3
PROFILE_TAB_LEADERBOARD :: 4
PROFILE_TAB_TELEGRAM :: 4
PROFILE_TAB_COUNT :: 5
PRACTICE_CATEGORY_MIND :: 0
@@ -319,6 +319,8 @@ AppUiState :: struct {
view_width: s32
view_height: s32
desktop_mode: s32
// The window's layout height; a return bar shortens only view_height.
navigation_height: s32
config_scroll: s32
pointer_active: bool
mouse_x: s32
@@ -359,6 +361,9 @@ SessionWindow :: struct {
system_visible: bool
system_screen: s32
system_generation: s32
// Flips with Android each time the floating window opens back into the
// app.
system_returned: bool
system_last_tick: float64
system_elapsed_carry: float64
last_tick: float64
@@ -424,9 +429,11 @@ InnerBreeze :: struct {
profile_tab: s32
profile_tab_scroll: s32
profile_scroll: s32
profile_leaderboard_practice: s32
profile_leaderboard_metric: s32
profile_leaderboard_loaded: s32
leaderboard_practice: s32
leaderboard_metric: s32
leaderboard_loaded: s32
// Advances whenever saved or fetched leaderboard results change.
leaderboard_revision: s32
profile_friend_input_cursor: s32
profile_friend_input_focused: s32
profile_friends_loaded: s32
@@ -441,8 +448,8 @@ InnerBreeze :: struct {
profile_pending_friend_remove_name: [96] u8
profile_friends_json: [8192] u8
profile_friend_requests_json: [8192] u8
profile_leaderboard_json: [8192] u8
profile_leaderboard_avg_json: [8192] u8
leaderboard_json: [8192] u8
leaderboard_avg_json: [8192] u8
sync_server_url_cursor: s32
sync_server_url_focused: s32
sync_server_url: [256] u8
+35 -8
View File
@@ -54,6 +54,7 @@ PackageNow :: () -> s64 #foreign c "now_seconds";
#import, file "app_nav.zi";
#import, file "app_launcher.zi";
#import, file "app_launcher_state.zi";
#import, file "return_bar.zi";
#import, file "session_window.zi";
#import, file "session_window_view.zi";
#import, file "../platform/practice_window_host.zi";
@@ -96,6 +97,7 @@ PackageNow :: () -> s64 #foreign c "now_seconds";
#import, file "../screens/app_selection_screen.zi";
#import, file "../screens/diary_screen.zi";
#import, file "../screens/lumi_screen.zi";
#import, file "../screens/leaderboard_screen.zi";
#import, file "../cells/package_manager.zi";
#import, file "../cells/catalog.zi";
#import, file "../cells/inbe_types.zi";
@@ -615,6 +617,9 @@ app_open_feature :: (vapp: *void, feature: s32) -> s32 {
bit = APP_DIARY
tab = APP_MAIN_TAB_DIARY
} else if feature == APP_LEADERBOARD {
bit = APP_LEADERBOARD
tab = APP_MAIN_TAB_LEADERBOARD
} else {
return 0
}
@@ -812,6 +817,10 @@ handle_back_button :: (app: *InnerBreeze) {
if app.modal.active != 0 {
return
}
if app_return_bar_takes_back(app) {
app_return_to_apps(app)
return
}
screen := app.breathing.screen
if screen == ScreenStart {
if app.practice_tab == PRACTICE_TAB_CONFIG {
@@ -1138,6 +1147,7 @@ updateapp :: (app: *InnerBreeze) {
// bottom-dock click must draw its destination in this frame, just like
// the desktop rail, so a cold page cannot swallow the next tap.
app_draw_bottom_nav(app)
app_draw_return_bar(app)
back_requested := IsKeyPressed(APP_KEY_BACK) ||
(app.launcher_open && IsKeyPressed(APP_KEY_ESCAPE))
#if !#defined(ANDROID_BUILD) && !#defined(PLATFORM_WEB) {
@@ -1208,6 +1218,9 @@ updateapp :: (app: *InnerBreeze) {
diary_screen_draw(app)
handled_screen = true
} else if app.breathing.screen == ScreenLeaderboard {
leaderboard_screen_draw(app)
handled_screen = true
} else if app.breathing.screen == ScreenEList {
draw_elist_screen(app)
handled_screen = true
@@ -1304,15 +1317,18 @@ updateapp :: (app: *InnerBreeze) {
if !global_modal_drawn {
draw_global_modal(app)
}
app_draw_close_prompt(app)
if !launcher_covers_page {
app_draw_close_prompt(app)
}
app_draw_launcher(app)
if launcher_covers_page {
// Apps is an overlay above the page, so the window is drawn inside
// its panel, above the apps. If Apps closed during this frame, the
// window is drawn over the page instead.
// Apps is an overlay above the page, so the window and the close
// prompt are drawn inside its panel, above the apps. If Apps closed
// during this frame, they are drawn over the page instead.
inside_launcher := app.launcher_panel_node >= 0 &&
TreePushScope(app.ui.session, app.launcher_panel_node)
app_session_window_draw(app)
app_draw_close_prompt(app)
if inside_launcher {
unused End(app.ui.session)
}
@@ -1443,14 +1459,21 @@ app_update_draw :: (vapp: *void, viewport: Rectangle) {
}
#if #defined(ANDROID_BUILD) {
picture_state := AndroidPictureWindowState()
app.session_window.system_available = (picture_state & 1) != 0 &&
app.picture_in_picture_enabled != 0
app.session_window.system_visible = (picture_state & 2) != 0
generation := picture_state >> 2
generation := picture_state >> 3
if generation != app.session_window.system_generation {
app.session_window.system_generation = generation
app.session_window.system_last_tick = GetTime()
}
// Opening the floating window back into the app shows its practice,
// not the page that was open behind the practice's in-app window.
// Like other window input from outside the frame, the window tick
// applies it after the frame has read the current route.
returned := (picture_state & 4) != 0
if returned != app.session_window.system_returned {
app.session_window.system_returned = returned
app.session_window.restore_requested = true
}
if app.session_window.system_visible {
app_draw_android_picture_window(app, viewport)
return
@@ -1493,7 +1516,11 @@ app_update_draw :: (vapp: *void, viewport: Rectangle) {
}
content_x = cast(s32)(cast(float32)layout_content_x * render_scale + 0.5f)
rail_width = cast(s32)(cast(float32)rail_width * render_scale + 0.5f)
top_height = ifx (app_navigation_placement(app) == NAVIGATION_TOP) then (cast(s32)(cast(float32)app_navigation_height(app) * render_scale + 0.5f)) else (0)
top_layout := app_return_bar_height(app)
if app_navigation_placement(app) == NAVIGATION_TOP {
top_layout += app_navigation_height(app)
}
top_height = cast(s32)(cast(float32)top_layout * render_scale + 0.5f)
practice_update_circle_bounds(app, app_content_top_reserved(app),
app_content_bottom_reserved(app))
app_device_preferences_update(app)
+420
View File
@@ -0,0 +1,420 @@
// One QR code connection at a time, advanced by the frame loop. The device
// showing the code polls Daochi's link mailbox for the other device; the
// scanning device answers. See src/storage/device_link.zi for the protocol.
#import "json_scan"
#import "text"
#import "vec"
#import "text_buffer"
#import "net_http"
#import "byte_text_linux"
#import "c_string"
#import, file "../platform/network_transport.zi";
#import, file "../storage/account_types.zi";
#import, file "../storage/device_link.zi";
#import, file "../storage/sync_crypto.zi";
#import, file "../storage/storage_core.zi";
#import, file "../storage/sync_account.zi";
#import, file "../storage/sync_nodes.zi";
#import, file "../cells/package_files.zi";
#import, file "../platform/trace_log.zi";
c :: #system_library "c";
DeviceLinkClock :: () -> float64 #foreign c "GetTime";
DeviceLinkGetenv :: (name: *u8) -> *u8 #foreign c "getenv";
DeviceLinkRemove :: (path: *u8) -> s32 #foreign c "remove";
DeviceLinkStage :: enum {
DeviceLinkIdle :: 0
// This device shows its code and waits for a phone to scan it.
DeviceLinkShowing :: 1
// A scanner answered; compare the digits, then send the account.
DeviceLinkConfirm :: 2
// This device scanned a code and waits for the other device to confirm.
DeviceLinkWaiting :: 3
// This device scanned a device without an account; send it ours?
DeviceLinkAsk :: 4
DeviceLinkWorking :: 5
DeviceLinkConnected :: 6
DeviceLinkFailed :: 7
// The account arrived; the screen imports it with the same choices as
// importing a key file, then calls DeviceLinkImported.
DeviceLinkReceived :: 8
}
using DeviceLinkStage;
// Requests to the mailbox, one in flight at a time.
DEVICE_LINK_PUT_REQUEST :: 1
DEVICE_LINK_GET_REQUEST :: 2
DEVICE_LINK_PUT_RESPONSE :: 3
DEVICE_LINK_GET_RESPONSE :: 4
DEVICE_LINK_CLOSE :: 5
// Links expire on the node after ten minutes.
DEVICE_LINK_LIFETIME :: 590.0
DEVICE_LINK_POLL :: 1.0
DEVICE_LINK_LOG_WARNING :: 4
DeviceLinkSession :: struct {
stage: DeviceLinkStage
shows: bool
sends: bool
keys: DeviceLinkKeys
id: [DEVICE_LINK_ID_HEX + 1]u8
other: [DEVICE_LINK_KEY]u8
server: [DEVICE_LINK_SERVER_MAX + 1]u8
code: [DEVICE_LINK_CODE_MAX + 1]u8
confirmation: s32
expires_at: float64
next_poll: float64
error: string
request: s32
request_active: bool
// Close the link once the current request finishes.
close_next: bool
}
device_link: DeviceLinkSession;
device_link_transfer: NetworkTransfer;
device_link_url: [DEVICE_LINK_SERVER_MAX + 32]u8;
device_link_body: [DEVICE_LINK_MESSAGE_MAX + 128]u8;
device_link_output: [DEVICE_LINK_MESSAGE_MAX + 256]u8;
device_link_pending: DeviceLinkAccount;
device_link_message_in: [DEVICE_LINK_MESSAGE_MAX]u8;
DeviceLinkActive :: () -> bool {
return device_link.stage != cast(DeviceLinkStage)DeviceLinkIdle
}
DeviceLinkCodeShown :: () -> string {
return TextUntilNul(device_link.code[:])
}
DeviceLinkReset :: () {
if device_link.request_active {
transport := NetworkTransport(*device_link_transfer)
transport.cancel(transport.context)
}
DeviceLinkForget(*device_link.keys)
device_link = DeviceLinkSession.{}
}
DeviceLinkFail :: (error: string) {
DeviceLinkForget(*device_link.keys)
device_link_pending = DeviceLinkAccount.{}
device_link.stage = cast(DeviceLinkStage)DeviceLinkFailed
device_link.error = error
}
// Names the step that failed in the log, without keys or account data.
DeviceLinkFailAt :: (error: string, step: string, status: s32) {
out: Vec(u8)
BuilderPrint(*out, "DEVICE LINK: % at % (request %, status %)", error, step, device_link.request, status)
line := BuilderFinish(out)
TraceLog(DEVICE_LINK_LOG_WARNING, line)
PackageFree(line)
DeviceLinkFail(error)
}
DeviceLinkServer :: (output: []u8) -> bool {
saved := storage_get_setting_text("sync_server_url")
if saved.count == 0 {
saved = "https://api.waozi.xyz"
}
return SyncNodeAddress(saved, output)
}
// Shows a code. With an account here, the scanning device receives it;
// without one, the scanning device sends its account to this device.
DeviceLinkShow :: () -> bool {
DeviceLinkReset()
account: SyncAccount
device_link.sends = sync_account_load(*account) != 0
device_link.shows = true
if !DeviceLinkServer(device_link.server[:]) || !DeviceLinkNewKeys(*device_link.keys) ||
!DeviceLinkNewID(device_link.id[:]) {
DeviceLinkFail("device_link_failed")
return false
}
text := DeviceLinkCodeText(TextUntilNul(device_link.id[:]), *device_link.keys, device_link.sends,
TextUntilNul(device_link.server[:]))
if text.count == 0 || text.count > DEVICE_LINK_CODE_MAX {
DeviceLinkFail("device_link_failed")
return false
}
for byte, index: text { device_link.code[index] = byte }
device_link.stage = cast(DeviceLinkStage)DeviceLinkShowing
device_link.expires_at = DeviceLinkClock() + DEVICE_LINK_LIFETIME
device_link.next_poll = DeviceLinkClock()
return true
}
// Starts from a scanned code.
DeviceLinkScan :: (text: string) -> bool {
DeviceLinkReset()
code := DeviceLinkParse(text)
if !code.valid {
DeviceLinkFail("device_link_not_a_code")
return false
}
device_link.shows = false
device_link.sends = code.sends
for byte, index: code.id { device_link.id[index] = byte }
for byte, index: code.public { device_link.other[index] = byte }
for byte, index: code.server { device_link.server[index] = byte }
if !DeviceLinkNewKeys(*device_link.keys) {
DeviceLinkFail("device_link_failed")
return false
}
device_link.expires_at = DeviceLinkClock() + DEVICE_LINK_LIFETIME
if code.sends {
// The other device holds the account: send our key and show the
// digits it must match before it sends anything.
device_link.confirmation = DeviceLinkConfirmation(*device_link.other[0], *device_link.keys.public[0])
device_link.stage = cast(DeviceLinkStage)DeviceLinkWaiting
DeviceLinkSend(DEVICE_LINK_PUT_REQUEST)
return true
}
account: SyncAccount
if sync_account_load(*account) == 0 {
DeviceLinkFail("device_link_no_account")
return false
}
device_link.stage = cast(DeviceLinkStage)DeviceLinkAsk
return true
}
// The person confirmed on this device: send the account.
DeviceLinkAccept :: () {
stage := device_link.stage
if stage != cast(DeviceLinkStage)DeviceLinkConfirm && stage != cast(DeviceLinkStage)DeviceLinkAsk {
return
}
device_link.stage = cast(DeviceLinkStage)DeviceLinkWorking
DeviceLinkSend(DEVICE_LINK_PUT_RESPONSE)
}
DeviceLinkCancel :: () {
open := device_link.stage != cast(DeviceLinkStage)DeviceLinkIdle && device_link.id[0] != cast(u8)0 &&
device_link.stage != cast(DeviceLinkStage)DeviceLinkConnected
id := device_link.id
server := device_link.server
DeviceLinkReset()
if open {
// Let the other device stop waiting. The idle session still
// finishes this one request.
device_link.id = id
device_link.server = server
DeviceLinkSend(DEVICE_LINK_CLOSE)
}
}
DeviceLinkSend :: (request: s32) {
if device_link.request_active {
return
}
id := TextUntilNul(device_link.id[:])
out: Vec(u8)
path := "/api/v1/link/get"
if request == DEVICE_LINK_PUT_REQUEST {
public: [DEVICE_LINK_KEY * 2 + 1]u8
unused SyncCryptoBytesToHex(*device_link.keys.public[0], DEVICE_LINK_KEY, *public[0], public.count)
BuilderPrint(*out, "{\"id\":\"%\",\"slot\":\"request\",\"data\":\"%\"}", id, TextUntilNul(public[:]))
path = "/api/v1/link/put"
} else if request == DEVICE_LINK_PUT_RESPONSE {
account: SyncAccount
if sync_account_load(*account) == 0 {
DeviceLinkFail("device_link_no_account")
return
}
server: [DEVICE_LINK_SERVER_MAX + 1]u8
unused DeviceLinkServer(server[:])
sealed := DeviceLinkSeal(*account, TextUntilNul(server[:]), id, *device_link.keys,
*device_link.other[0], device_link.shows)
if sealed.count == 0 {
DeviceLinkFail("device_link_failed")
return
}
BuilderPrint(*out, "{\"id\":\"%\",\"slot\":\"response\",\"data\":\"%\"}", id, sealed)
path = "/api/v1/link/put"
} else if request == DEVICE_LINK_CLOSE {
BuilderPrint(*out, "{\"id\":\"%\"}", id)
path = "/api/v1/link/close"
} else {
slot := ifx request == DEVICE_LINK_GET_REQUEST then "request" else "response"
BuilderPrint(*out, "{\"id\":\"%\",\"slot\":\"%\"}", id, slot)
}
body := BuilderFinish(out)
url: Vec(u8)
BuilderPrint(*url, "%", TextUntilNul(device_link.server[:]))
BuilderPrint(*url, "%", path)
address := BuilderFinish(url)
if body.count >= device_link_body.count || address.count >= device_link_url.count {
DeviceLinkFail("device_link_failed")
return
}
for byte, index: body { device_link_body[index] = byte }
device_link_body[body.count] = cast(u8)0
for byte, index: address { device_link_url[index] = byte }
device_link_url[address.count] = cast(u8)0
transport := NetworkTransport(*device_link_transfer)
started := transport.start(transport.context, HttpRequest.{.method = "POST",
.url = TextUntilNul(device_link_url[:]), .content_type = "application/json",
.accept = "application/json", .body = TextUntilNul(device_link_body[:])},
device_link_output[:])
if !started {
if request != DEVICE_LINK_CLOSE { DeviceLinkFail("device_link_offline") }
return
}
device_link.request = request
device_link.request_active = true
}
// Handles a finished request. status is the HTTP status, 0 for no response.
DeviceLinkFinished :: (status: s32) {
request := device_link.request
response := TextUntilNul(device_link_output[:])
polling := request == DEVICE_LINK_GET_REQUEST || request == DEVICE_LINK_GET_RESPONSE
// A poll that gets no answer, or reaches a node that is restarting or
// busy (5xx, 429), is retried until the link expires.
if polling && (status == 0 || status == 429 || status >= 500) {
return
}
if status == 0 {
DeviceLinkFailAt("device_link_offline", "no response", status)
return
}
if request == DEVICE_LINK_PUT_REQUEST {
if status != 200 { DeviceLinkFailAt("device_link_failed", "sending the key", status) }
return
}
if request == DEVICE_LINK_PUT_RESPONSE {
if status != 200 {
DeviceLinkFailAt("device_link_failed", "sending the account", status)
return
}
// Both devices now hold the account; the receiver closes the link.
DeviceLinkForget(*device_link.keys)
device_link.stage = cast(DeviceLinkStage)DeviceLinkConnected
return
}
if request == DEVICE_LINK_CLOSE || status == 404 {
return
}
if status != 200 {
DeviceLinkFailAt("device_link_failed", "polling", status)
return
}
length := ReadStringText(response, FieldAt(response, 0, "data"), device_link_message_in[:])
message := TextFromBytes(device_link_message_in[:length])
if request == DEVICE_LINK_GET_REQUEST {
// The scanner's key: compare digits before sending the account.
if length != DEVICE_LINK_KEY * 2 || SyncCryptoHexToBytes(message, *device_link.other[0], DEVICE_LINK_KEY) == 0 {
DeviceLinkFailAt("device_link_failed", "reading the key", status)
return
}
device_link.confirmation = DeviceLinkConfirmation(*device_link.keys.public[0], *device_link.other[0])
device_link.stage = cast(DeviceLinkStage)DeviceLinkConfirm
return
}
// The sealed account. A scanner accepts only the key from the code.
expected: *u8 = null
if !device_link.shows { expected = *device_link.other[0] }
device_link_pending = DeviceLinkOpen(message, TextUntilNul(device_link.id[:]), *device_link.keys,
device_link.shows, expected)
DeviceLinkForget(*device_link.keys)
if !device_link_pending.valid {
DeviceLinkFailAt("device_link_failed", "opening the account", status)
return
}
if !DeviceLinkUseServer() {
DeviceLinkFailAt("device_link_failed", "using the account's node", status)
return
}
device_link.stage = cast(DeviceLinkStage)DeviceLinkReceived
device_link.close_next = true
}
// The account's node becomes this device's preferred node.
DeviceLinkUseServer :: () -> bool {
server := TextUntilNul(device_link_pending.server[:])
return server.count == 0 || (SyncNodeAdd(server) && SyncNodeActivate(server))
}
// The received account for the screen to import.
DeviceLinkAccountReceived :: () -> *SyncAccount {
if device_link.stage != cast(DeviceLinkStage)DeviceLinkReceived || !device_link_pending.valid {
return null
}
return *device_link_pending.account
}
DeviceLinkImported :: () {
device_link_pending = DeviceLinkAccount.{}
if device_link.stage == cast(DeviceLinkStage)DeviceLinkReceived {
device_link.stage = cast(DeviceLinkStage)DeviceLinkConnected
}
}
// Advances the session; call once a frame while it is active.
DeviceLinkPump :: () {
if device_link.request_active {
transport := NetworkTransport(*device_link_transfer)
status: s32 = 0
state := transport.poll(transport.context, *status)
if state < 0 {
return
}
device_link.request_active = false
if device_link.stage != cast(DeviceLinkStage)DeviceLinkIdle {
DeviceLinkFinished(ifx state == 0 then 0 else status)
}
return
}
if device_link.close_next {
device_link.close_next = false
DeviceLinkSend(DEVICE_LINK_CLOSE)
return
}
stage := device_link.stage
waiting := stage == cast(DeviceLinkStage)DeviceLinkShowing || stage == cast(DeviceLinkStage)DeviceLinkWaiting
if !waiting {
return
}
now := DeviceLinkClock()
if now > device_link.expires_at {
DeviceLinkFail("device_link_expired")
return
}
if now < device_link.next_poll {
return
}
device_link.next_poll = now + DEVICE_LINK_POLL
if stage == cast(DeviceLinkStage)DeviceLinkShowing && device_link.sends {
DeviceLinkSend(DEVICE_LINK_GET_REQUEST)
} else {
DeviceLinkSend(DEVICE_LINK_GET_RESPONSE)
}
}
// Tests on a desktop without a camera hand over a scanned code as a file
// named by INBE_TEST_DEVICE_LINK_SCAN; the file is removed once read.
DeviceLinkTestScan :: () {
name: [32]u8
if !CopyCString("INBE_TEST_DEVICE_LINK_SCAN", name[:]) {
return
}
path := DeviceLinkGetenv(*name[0])
if path == null || path[0] == cast(u8)0 {
return
}
text := PackageRead(TextFromCString(path), DEVICE_LINK_CODE_MAX)
defer { PackageFree(text) }
end := text.count
while end > 0 && (text[end - 1] == cast(u8)10 || text[end - 1] == cast(u8)13 || text[end - 1] == cast(u8)32) {
end -= 1
}
if end == 0 {
return
}
unused DeviceLinkRemove(path)
unused DeviceLinkScan(text[:end])
}
+7 -4
View File
@@ -5,18 +5,21 @@
using AppNavRoute;
// Storage follows the app catalog; there is no separate favorites quota.
LAUNCHER_APP_COUNT :: 5
LAUNCHER_APP_COUNT :: 6
LauncherRoutes :: () -> [LAUNCHER_APP_COUNT]s32 {
// Leaderboard comes last, so adding it moved no existing app.
return .{APP_NAV_ROUTE_DIARY, APP_NAV_ROUTE_HABITS,
APP_NAV_ROUTE_ELIST, APP_NAV_ROUTE_LUMI, APP_NAV_ROUTE_PRACTICE}
APP_NAV_ROUTE_ELIST, APP_NAV_ROUTE_LUMI, APP_NAV_ROUTE_PRACTICE,
APP_NAV_ROUTE_LEADERBOARD}
}
// Leaderboard is installed with the other apps but is not pinned.
LauncherDefaults :: (routes: []s32, desktop: bool) -> s32 {
defaults: [LAUNCHER_APP_COUNT]s32 = .{APP_NAV_ROUTE_LUMI,
defaults: [5]s32 = .{APP_NAV_ROUTE_LUMI,
APP_NAV_ROUTE_HABITS, APP_NAV_ROUTE_PRACTICE,
APP_NAV_ROUTE_ELIST, APP_NAV_ROUTE_DIARY}
count := cast(s32)(ifx desktop then LAUNCHER_APP_COUNT else 3)
count := cast(s32)(ifx desktop then 5 else 3)
if routes.count < count { return 0 }
for index: cast(s32)0..count - 1 {
routes[index] = defaults[index]
+9
View File
@@ -21,6 +21,9 @@ app_main_tab_route :: (main_tab: s32) -> s32 {
if main_tab == APP_MAIN_TAB_LUMI {
return APP_NAV_ROUTE_LUMI
}
if main_tab == APP_MAIN_TAB_LEADERBOARD {
return APP_NAV_ROUTE_LEADERBOARD
}
return APP_NAV_ROUTE_NONE
}
@@ -41,6 +44,9 @@ app_main_tab_for_route :: (route: s32) -> s32 {
if route == APP_NAV_ROUTE_LUMI {
return APP_MAIN_TAB_LUMI
}
if route == APP_NAV_ROUTE_LEADERBOARD {
return APP_MAIN_TAB_LEADERBOARD
}
return APP_MAIN_TAB_NONE
}
@@ -58,6 +64,9 @@ app_screen_for_main_tab :: (main_tab: s32) -> s32 {
if main_tab == APP_MAIN_TAB_LUMI {
return ScreenLumi
}
if main_tab == APP_MAIN_TAB_LEADERBOARD {
return ScreenLeaderboard
}
return ScreenStart
}
+101
View File
@@ -0,0 +1,101 @@
// An app opened from Apps without a pin has no navigation item to return
// through, so a bar above it names the app and leads back to Apps. The bar
// sits above the page's coordinates, like top navigation, so every app keeps
// its own layout.
#import "dropdown_props"
#import "geometry"
#import "layout"
#import "title_bar_props"
#import "title_bar_widget"
#import, file "app_types.zi";
#import, file "../core/types.zi";
#import, file "route_types.zi";
#import, file "../habits/habit_types.zi";
#import, file "app_nav_state.zi";
#import, file "app_launcher_state.zi";
#import, file "app_modal_state.zi";
#import, file "launcher_policy.zi";
#import, file "route_list.zi";
#import, file "metrics.zi";
#import, file "locale.zi";
#import, file "mini_mode.zi";
#import, file "../cells/module_host.zi";
#import, file "../platform/environment.zi";
using AppNavRoute;
// The app on screen when Apps opened it and it has no visible pin.
#program_export
app_return_bar_route :: (app: *InnerBreeze) -> s32 {
if app == null || AppMiniMode() || app.host_feature != 0 || PreviewMode() != 0 ||
app.launcher_open {
return APP_NAV_ROUTE_NONE
}
route := app_current_nav_route(app)
apps := LauncherRoutes()
if !RouteListContains(apps[:], cast(s32)apps.count, route) {
return APP_NAV_ROUTE_NONE
}
visible := app.enabled_apps & CellsInstalledMask()
for index: cast(s32)0..app.launcher_favorite_count - 1 {
if app.launcher_favorites[index] == route && (app_nav_route_bit(route) & visible) != 0 {
return APP_NAV_ROUTE_NONE
}
}
return route
}
#program_export
app_return_bar_height :: (app: *InnerBreeze) -> s32 {
if app_return_bar_route(app) == APP_NAV_ROUTE_NONE {
return 0
}
return AppTitleBarHeight()
}
app_return_to_apps :: (app: *InnerBreeze) {
app_block_current_click(app)
if !app.launcher_open {
app_launcher_toggle(app)
}
}
// Back at an unpinned app's first page returns to Apps; inner pages keep
// their own Back.
app_return_bar_takes_back :: (app: *InnerBreeze) -> bool {
route := app_return_bar_route(app)
if route == APP_NAV_ROUTE_NONE {
return false
}
if route == APP_NAV_ROUTE_HABITS {
return app.habits.screen_mode != HABITS_SCREEN_HISTORY &&
app.habits.screen_mode != HABITS_SCREEN_STATISTICS &&
!(app.habits.tab == HABIT_TAB_EDIT && app.habit_edit.active != 0)
}
if route == APP_NAV_ROUTE_PRACTICE {
return app.practice_tab == PRACTICE_TAB_PLAY
}
return true
}
#program_export
app_draw_return_bar :: (app: *InnerBreeze) {
route := app_return_bar_route(app)
if route == APP_NAV_ROUTE_NONE || app.file_dialog_active != 0 {
return
}
height := app_return_bar_height(app)
bar: TitleBarProps
bar.key = KeyHash("inbe/return-bar")
bar.title = app_nav_route_label(route)
bar.height = height
bar.bounds = Rectangle.{0.0, -cast(float32)height,
cast(float32)app.ui.view_width, cast(float32)height}
bar.has_leading_action = app.modal.active == 0
bar.leading_label = LocaleText("return_to_apps")
options: [1]DropdownOption
result := TitleBar(app.ui.session, bar, options[0:0])
if result.clicked_leading {
app_return_to_apps(app)
}
}
+2 -1
View File
@@ -2,7 +2,7 @@
#import "router"
#import "router_props"
RouteCount :: 18
RouteCount :: 19
FillRoutes :: (routes: []RouterRoute) {
if routes.count < RouteCount { return }
@@ -24,6 +24,7 @@ FillRoutes :: (routes: []RouterRoute) {
routes[15] = RouterRoute.{ScreenAppSelection, ScreenSettings, "apps", "Apps", "settings" }
routes[16] = RouterRoute.{ScreenLumi, -1, "lumi", "Lumi", "main" }
routes[17] = RouterRoute.{ScreenDiary, -1, "diary", "Diary", "main" }
routes[18] = RouterRoute.{ScreenLeaderboard, -1, "leaderboard", "Leaderboard", "main" }
}
ScreenForPath :: (path: string) -> s32 {
+1
View File
@@ -11,6 +11,7 @@ AppMainTab :: enum {
APP_MAIN_TAB_ELIST :: 2
APP_MAIN_TAB_DIARY :: 3
APP_MAIN_TAB_LUMI :: 4
APP_MAIN_TAB_LEADERBOARD :: 5
}
AppNavRoute :: enum {
+17 -1
View File
@@ -361,6 +361,20 @@ setup_screenshot_scene :: (app: *InnerBreeze, request: *ScreenshotRequest) {
} else {
app.elist.show_completed = 0
}
} else if scene_text == "leaderboard" {
// Friends' saved results, ranked without a network fetch.
unused storage_set_social_cache_json("friends.list",
"{\"friends\":[{\"user_id_hash\":\"river\",\"alias\":\"river\"},{\"user_id_hash\":\"cedar\",\"alias\":\"cedar\"}]}")
unused storage_set_social_cache_json("leaderboard.breathing.whm.streak",
"{\"rows\":[{\"user_id_hash\":\"river\",\"alias\":\"river\",\"value\":12,\"label\":\"12\"},{\"user_id_hash\":\"maple\",\"alias\":\"maple\",\"value\":30,\"label\":\"30\"}]}")
unused storage_set_social_cache_json("leaderboard.breathing.whm.avg_hold",
"{\"rows\":[{\"user_id_hash\":\"river\",\"value\":95,\"label\":\"95\"},{\"user_id_hash\":\"maple\",\"value\":61,\"label\":\"61\"}]}")
app.enabled_apps = APP_ALL
unused CellsSetEnabled(APP_ALL)
app.leaderboard_practice = EXERCISE_WIM_HOF
app.leaderboard_loaded = 0
app.main_tab = APP_MAIN_TAB_LEADERBOARD
app.breathing.screen = ScreenLeaderboard
} else if scene_text == "habits" {
app.main_tab = APP_MAIN_TAB_HABITS
app.breathing.screen = ScreenHabits
@@ -580,9 +594,11 @@ setup_screenshot_scene :: (app: *InnerBreeze, request: *ScreenshotRequest) {
app.main_tab = APP_MAIN_TAB_PRACTICE
app.breathing.screen = ScreenStart
app.launcher_open = true
} else if AppTextFromCString(*request.scene[0], 64) == "close_prompt" {
} else if scene_text == "close_prompt" || scene_text == "close_prompt_over_apps" {
app.main_tab = APP_MAIN_TAB_PRACTICE
app.breathing.screen = ScreenStart
// Closing the window while Apps is open must still show the prompt.
app.launcher_open = scene_text == "close_prompt_over_apps"
app.close_prompt_open = 1
app.close_prompt_result = cast(AppClosePromptResult)AppClosePromptNone
} else if scene_text == "data_from_navigation" {
+6 -2
View File
@@ -73,7 +73,7 @@ app_session_window_route :: (app: *InnerBreeze, route: s32) -> bool {
app_session_nav_rail :: (app: *InnerBreeze) -> bool {
placement := app_navigation_placement(app)
return (placement == NAVIGATION_LEFT || placement == NAVIGATION_RIGHT) &&
app.ui.view_height >= AppScale(476)
app.ui.navigation_height >= AppScale(476)
}
// Slides the navigation toward where it belongs: shown on app pages and
@@ -141,7 +141,8 @@ session_window_return_route :: (app: *InnerBreeze) -> s32 {
}
// The minimize button shrinks the practice into its small window and
// returns to the page the practice was started from.
// returns to the page the practice was started from. On desktop that window
// is its own, unless picture-in-picture is turned off.
app_session_window_take_minimize :: (app: *InnerBreeze) {
if app == null || !app.session_window.minimize_requested {
return
@@ -150,6 +151,9 @@ app_session_window_take_minimize :: (app: *InnerBreeze) {
if !app_session_window_open(app) {
return
}
if app.session_window.system_available && app.picture_in_picture_enabled != 0 {
app.session_window.detach_requested = true
}
app_apply_nav_route(app, session_window_return_route(app))
}
+73 -19
View File
@@ -37,6 +37,7 @@ c :: #system_library "c";
GetTime :: () -> float64 #foreign c;
using ButtonEmphasis;
using ButtonTone;
using ModalType;
using ExerciseType;
using TextAlign;
@@ -47,7 +48,8 @@ SESSION_WINDOW_CARD_ID :: 7480
SESSION_WINDOW_CLOSE_ID :: 7481
SESSION_WINDOW_MAXIMIZE_ID :: 7482
SESSION_WINDOW_RESIZE_ID :: 7483
SESSION_WINDOW_DETACH_ID :: 7484
SESSION_WINDOW_DESKTOP_ID :: 7484
SESSION_WINDOW_BREATHE_ID :: 7488
// Units: the window's starting and smallest sizes, its inner margin, the
// row holding its buttons, the lines below the picture and the corner that
// resizes it.
@@ -59,6 +61,12 @@ SESSION_WINDOW_PADDING :: 8
SESSION_WINDOW_BUTTON_ROW :: 40
SESSION_WINDOW_TEXT_HEIGHT :: 46
SESSION_WINDOW_GRIP :: 32
// Units: the height of the window's Breath button and the space beside
// its label.
SESSION_WINDOW_BREATHE_HEIGHT :: 36
SESSION_WINDOW_BREATHE_SPACE :: 32
// Seconds between the two taps of a double tap, as on the practice's screen.
SESSION_WINDOW_DOUBLE_TAP_SECONDS :: 0.35
session_window_practice :: (screen: s32) -> s32 {
if screen == ScreenMeditation {
@@ -273,8 +281,52 @@ session_window_resize :: (app: *InnerBreeze, bounds: Rectangle) {
TreeSetDragCapture(session, node, true)
}
// The running practice waits for the person to breathe, as a held breath
// does.
session_window_can_breathe :: (app: *InnerBreeze, practice: *PracticeDefinition) -> bool {
return practice != null && practice.can_breathe != null && practice.breathe != null &&
practice.can_breathe(app) != 0
}
// The window's Breath button, centered along the bottom of its picture,
// below the held breath's small circle. Returns true when it was pressed.
session_window_breathe_button :: (app: *InnerBreeze, bounds: Rectangle) -> bool {
label := LocaleText("breath_button")
padding := cast(float32)AppScale(SESSION_WINDOW_PADDING)
height := cast(float32)AppScale(SESSION_WINDOW_BREATHE_HEIGHT)
width := cast(float32)(AppTextWidth(label, AppFontSize()) +
AppScale(SESSION_WINDOW_BREATHE_SPACE))
if width > bounds.width - padding * 2.0 {
width = bounds.width - padding * 2.0
}
bottom := bounds.y + bounds.height - cast(float32)AppScale(SESSION_WINDOW_TEXT_HEIGHT) - padding
button: ButtonProps
button.id = SESSION_WINDOW_BREATHE_ID
button.bounds = Rectangle.{bounds.x + (bounds.width - width) * 0.5, bottom - height,
width, height}
button.label = label
button.tone = cast(ButtonTone)ButtonToneAccent
button.emphasis = cast(ButtonEmphasis)ButtonEmphasisFilled
return Button(app.ui.session, button) != 0
}
// A tap on the window while the practice is set to double tap to breathe:
// the second tap in quick succession breathes.
session_window_breathe_tap :: (app: *InnerBreeze, practice: *PracticeDefinition) {
now := GetTime()
last := app.breath_tap_last_time
if last > 0.0 && now - last <= SESSION_WINDOW_DOUBLE_TAP_SECONDS {
app.breath_tap_last_time = 0.0
practice.breathe(app)
return
}
app.breath_tap_last_time = now
}
// The running practice's small window: tap or maximize to return, drag to
// move, and the X asks to end the practice over the open page.
// move, and the X asks to end the practice over the open page. While the
// practice waits for a breath, its Breath button or a double tap, as it is
// set, breathes right from the window.
app_session_window_draw :: (app: *InnerBreeze) {
if app == null || app.session_window.screen == ScreenStart ||
app_is_session_screen(app.breathing.screen) ||
@@ -350,21 +402,6 @@ app_session_window_draw :: (app: *InnerBreeze) {
session_window_resize(app, bounds)
button_size := cast(float32)AppScale(36)
if app.session_window.system_available {
detach: ButtonProps
detach.id = SESSION_WINDOW_DETACH_ID
detach.bounds = Rectangle.{bounds.x + width - cast(float32)AppScale(114),
bounds.y + cast(float32)AppScale(2), button_size, button_size}
detach.label = LocaleText("session_detach_button")
detach.icon_only = true
detach.icon_shape = "S1.8rr:M13 4H20V11M20 4L11 13M10 5H4V20H19V14"
detach.emphasis = cast(ButtonEmphasis)ButtonEmphasisGhost
detach.class_name = KssClassId(KssMakeName("launcher-action"))
if Button(session, detach) != 0 {
window.detach_requested = true
return
}
}
// Maximize returns to the practice; the X asks to end it right here.
maximize: ButtonProps
@@ -393,12 +430,29 @@ app_session_window_draw :: (app: *InnerBreeze) {
app_session_window_close(app)
return
}
practice := practice_get(session_window_practice(window.screen))
can_breathe := session_window_can_breathe(app, practice)
double_tap := can_breathe && app.double_tap_to_breathe != 0
if !double_tap {
app.breath_tap_last_time = 0.0
}
if can_breathe && !double_tap && session_window_breathe_button(app, bounds) {
practice.breathe(app)
return
}
if session_window_exit_prompt(app) {
return
}
if activated && !window.drag_moved {
unused app_session_window_restore(app)
if !activated || window.drag_moved {
return
}
// Set to double tap, taps on the window are for breathing; maximize
// still returns to the practice.
if double_tap {
session_window_breathe_tap(app, practice)
return
}
unused app_session_window_restore(app)
}
// Shared content for the in-app card, detached desktop window and Android PiP.
+4 -3
View File
@@ -30,9 +30,10 @@ SocialStep :: struct {
// Stages 1-3 (action, requests, friends) are required: their failure ends the
// refresh, so known friends and requests are never replaced by partial data.
// Stages 4-5 are optional statistics: their failure clears only that
// statistic, unless the account changed, which ends the refresh.
// statistic, unless the account changed, which ends the refresh. Stage 5 runs
// only for practices with an average (Wim Hof holds, meditation time).
social_step :: (stage: s32, succeeded: s32, identity_current: s32,
practice_is_whm: s32) -> SocialStep {
has_average: s32) -> SocialStep {
clear_streak: s32 = 0
clear_average: s32 = 0
if succeeded == 0 {
@@ -52,7 +53,7 @@ social_step :: (stage: s32, succeeded: s32, identity_current: s32,
next := stage + 1
finished: s32 = 0
if next > SocialStageAverage ||
(next == SocialStageAverage && practice_is_whm == 0) {
(next == SocialStageAverage && has_average == 0) {
finished = 1
}
return SocialStep.{0, clear_streak, clear_average, action_done, next, finished}
+3
View File
@@ -15,6 +15,9 @@
#law WireSignFailed custom cast(s32) SyncResult.SYNC_SIGN_FAILED == 5;
#law WireRequestFailed custom cast(s32) SyncResult.SYNC_REQUEST_FAILED == 6;
#law WireAuthFailed custom cast(s32) SyncResult.SYNC_AUTH_FAILED == 7;
// A full node needs the user to free space or stop photo uploads there, so
// UnknownResultStops covers it: no automatic retry (owner request 2026-10-10).
#law WireStorageFull custom cast(s32) SyncResult.SYNC_STORAGE_FULL == 8;
// Expected schedule: 5, 15, 30, 60 seconds, then saturated at 60.
ExpectedNext :: (attempt: s32) -> s32 {
+1
View File
@@ -13,6 +13,7 @@ SyncStatusKeyFor :: (enabled: bool, loading: bool, result: s32,
if result == cast(s32)SYNC_INVALID_URL { return "sync_server_url_invalid" }
if result == cast(s32)SYNC_SIGN_FAILED { return "sync_sign_failed" }
if result == cast(s32)SYNC_PAYLOAD_FAILED { return "sync_failed" }
if result == cast(s32)SYNC_STORAGE_FULL { return "sync_storage_full" }
if result != cast(s32)SYNC_OK { return "sync_retry_waiting" }
if has_status {
if status.review_pending != 0 { return "sync_status_review_pending" }
+14 -1
View File
@@ -28,6 +28,8 @@
#import, file "../app/assets.zi";
#import, file "../app/locale.zi";
#import, file "../app/text_buffers.zi";
#import, file "../core/device_info.zi";
#import, file "../core/version.zi";
#import, file "../app/exercise_types.zi";
#import, file "../practices/practice_registry.zi";
#import, file "../app/account_activity.zi";
@@ -78,8 +80,19 @@ AppToolContext :: (app: *InnerBreeze) -> string {
AppFeedbackContext :: (app: *InnerBreeze) -> string {
out: Vec(u8)
// Reports carry diagnostics without copying diary, task or habit contents.
BuilderPrint(*out, "{\"screen\":%,\"apps\":%,\"theme\":\"%\",\"scale\":%}",
// The version, system and device let the developer check whether a newer
// release already fixes the problem.
BuilderPrint(*out, "{\"screen\":%,\"apps\":%,\"theme\":\"%\",\"scale\":%",
app.breathing.screen, app.enabled_apps & CellsInstalledMask(), AppThemeName(app.theme_id), app.ui_scale_tenths)
details: DeviceDetails
DeviceDescribe(*details)
BuilderPrint(*out, ",\"version\":\"%\",\"platform\":\"%\",\"system\":", VersionString, DevicePlatform())
LumiJsonString(*out, DeviceSystem(*details))
BuilderPrint(*out, ",\"device\":")
LumiJsonString(*out, DeviceModel(*details))
BuilderPrint(*out, ",\"package\":")
LumiJsonString(*out, DevicePackage(*details))
BuilderPrint(*out, "}")
return BuilderFinish(out)
}
+3
View File
@@ -54,6 +54,9 @@ PackageResourceValid :: (name: string, kind: s32) -> bool {
if kind == MODULE_DIARY {
return name.count > 13 && name[:13] == "assets/diary/"
}
if kind == MODULE_LEADERBOARD {
return name.count > 19 && name[:19] == "assets/leaderboard/"
}
if kind != MODULE_INBE {
return false
}
+7 -6
View File
@@ -1,13 +1,13 @@
// Stable IDs and mask bits are shared by account preferences and packages.
#import, file "inbe_types.zi";
PackageCount :: 6
PackageHostAPI :: 4
PackageCount :: 7
PackageHostAPI :: 5
PackageModuleAPI :: 2
PackageMaximumBytes :: 67108864
PackageName :: (index: s32) -> string {
names: [6]string = .["inbe", "lists", "habits", "practices", "diary", "lumi"]
names: [PackageCount]string = .["inbe", "lists", "habits", "practices", "diary", "lumi", "leaderboard"]
if index < 0 || index >= PackageCount {
return ""
}
@@ -15,7 +15,7 @@ PackageName :: (index: s32) -> string {
}
PackageID :: (index: s32) -> string {
ids: [6]string = .["inbe", "inbe.lists", "inbe.habits", "inbe.practices", "inbe.diary", "inbe.lumi"]
ids: [PackageCount]string = .["inbe", "inbe.lists", "inbe.habits", "inbe.practices", "inbe.diary", "inbe.lumi", "inbe.leaderboard"]
if index < 0 || index >= PackageCount {
return ""
}
@@ -30,7 +30,7 @@ PackageBit :: (index: s32) -> s32 {
}
PackagePreferenceKey :: (index: s32) -> string {
keys: [6]string = .["", "app_used_lists", "app_used_habits", "app_used_practices", "app_used_diary", "app_used_lumi"]
keys: [PackageCount]string = .["", "app_used_lists", "app_used_habits", "app_used_practices", "app_used_diary", "app_used_lumi", "app_used_leaderboard"]
if index < 1 || index >= PackageCount {
return ""
}
@@ -39,5 +39,6 @@ PackagePreferenceKey :: (index: s32) -> string {
AppPreferenceValid :: (key: string) -> bool {
return key == "app_used_lists" || key == "app_used_habits" ||
key == "app_used_practices" || key == "app_used_diary" || key == "app_used_lumi"
key == "app_used_practices" || key == "app_used_diary" || key == "app_used_lumi" ||
key == "app_used_leaderboard"
}
+8
View File
@@ -14,6 +14,7 @@
#import, file "../storage/paths.zi";
#import, file "../storage/temporary_data.zi";
#import, file "../platform/web_storage.zi";
#import, file "../storage/sync_node_storage.zi";
c :: #system_library "c";
#if #defined(PLATFORM_WEB) {
@@ -38,6 +39,8 @@ diary_prepared: bool;
diary_account: string;
diary_preview_name: string;
diary_preview_bytes: string;
// Why the last attach failed when the sync node had no room for the photo.
diary_attach_room: SyncNodeMediaRoom;
#if !#defined(_WIN32) && !#defined(PLATFORM_WEB) {
DiaryLock :: (descriptor: s32, operation: s32) -> s32 #foreign c "flock";
}
@@ -403,11 +406,16 @@ DiaryStorePreview :: (name: string) -> string {
}
// Only the picker-selected file is copied; the bundle never receives its path.
// A photo that would not fit on a sync node that stores photos is refused,
// so one photo cannot stop the account from syncing there.
DiaryStoreAttach :: (source: string) -> string {
diary_attach_room = SyncNodeMediaRoom.{.fits = true}
if !DiaryStorePrepare() { return "" }
data := PackageRead(source, 16777216)
defer { PackageFree(data) }
if DiaryImageFormat(data).count == 0 { return "" }
diary_attach_room = SyncNodeMediaFits(data.count)
if !diary_attach_room.fits { return "" }
serial: s32 = 1
while serial < 10000 {
out: Vec(u8)
+80
View File
@@ -90,7 +90,87 @@ FeedbackEnqueue :: (title: string, message: string, context: string) -> string {
return PackageText(value, "")
}
// Earlier hosts stored already-queued reports together in this account's
// setting. Keep their IDs and existing delivery tombstones when upgrading.
FeedbackMigratePending :: () -> bool {
owner := PackageText(AppTextFromCString(storage_user_id_buffer(), 64), "")
defer { PackageFree(owner) }
statement: *void
if SqlitePrepareText(storage_db_handle(),
"SELECT value FROM settings WHERE user_id=?1 AND key='lumi_feedback_pending'",
-1, *statement, null) != SQLITE_OK {
return false
}
bind_text(statement, 1, owner)
document: string
if SqliteStep(statement) == SQLITE_ROW {
// Read the whole SQLite value, including older multi-report queues
// larger than the general setting getter's text buffer.
document = PackageText(TextFromCString(SqliteColumnText(statement, 0)), "")
}
SqliteFinalize(statement)
defer { PackageFree(document) }
if document.count == 0 {
return true
}
count := ArrayCount(document, 0)
end := ValueEnd(document, 0, 0)
if count < 0 || end < 0 || Space(document, end) != document.count {
return false
}
if count == 0 {
return true
}
for index: cast(s32)0..count - 1 {
if owner != AppTextFromCString(storage_user_id_buffer(), 64) {
return false
}
at := ElementAt(document, 0, index)
id_bytes: [65]u8
app_bytes: [16]u8
id_count := ReadStringText(document, FieldAt(document, at, "id"), id_bytes[:])
app_count := ReadStringText(document, FieldAt(document, at, "app_id"), app_bytes[:])
if id_count != 64 || app_count != 4 || TextFromBytes(app_bytes[:app_count]) != "inbe" {
return false
}
id := TextFromBytes(id_bytes[:id_count])
key := PackageText("cell.feedback.pending.", id)
existing := CellRecordRead(key)
defer { PackageFree(key); PackageFree(existing) }
if existing.count != 0 {
if existing == "{\"delivered\":true}" {
continue
}
saved_id: [65]u8
saved_count := ReadStringText(existing, FieldAt(existing, 0, "id"), saved_id[:])
if saved_count != 64 || TextFromBytes(saved_id[:saved_count]) != id {
return false
}
continue
}
title: [161]u8
message: [4097]u8
context: [2049]u8
title_count := ReadStringText(document, FieldAt(document, at, "title"), title[:])
message_count := ReadStringText(document, FieldAt(document, at, "message"), message[:])
context_count := ReadStringText(document, FieldAt(document, at, "context"), context[:])
if title_count <= 0 || message_count <= 0 || context_count < 0 ||
!FeedbackEnqueueID(TextFromBytes(title[:title_count]),
TextFromBytes(message[:message_count]), TextFromBytes(context[:context_count]), id) {
return false
}
}
if owner != AppTextFromCString(storage_user_id_buffer(), 64) {
return false
}
// A restart after a partial upgrade can safely resume with the same IDs.
// Retain the original queue whenever any row could not be preserved.
storage_set_setting_text("lumi_feedback_pending", "[]")
return storage_setting_text_equals("lumi_feedback_pending", "[]") != 0
}
FeedbackFirst :: () -> string {
unused FeedbackMigratePending()
statement: *void
if SqlitePrepareText(storage_db_handle(), "SELECT value FROM settings WHERE user_id=?1 AND key LIKE 'cell.feedback.pending.%' AND json_extract(value,'$.id') IS NOT NULL ORDER BY updated_at,key LIMIT 1", -1, *statement, null) != SQLITE_OK { return "" }
defer { SqliteFinalize(statement) }
+2 -1
View File
@@ -11,8 +11,9 @@ APP_HABITS :: 2
APP_PRACTICE :: 4
APP_DIARY :: 8
APP_LUMI :: 16
APP_LEADERBOARD :: 32
APP_RECOMMENDED :: 22
APP_ALL :: 31
APP_ALL :: 63
InbeMessage :: struct {
abi: s32
+21
View File
@@ -0,0 +1,21 @@
#import, file "module_types.zi";
LEADERBOARD_ROUTE :: 1
LEADERBOARD_FRAME :: 2
LEADERBOARD_STREAK :: 0
LEADERBOARD_AVERAGE :: 1
// The host owns friends, server results and local stats. The board chooses
// what to show and asks the host to fetch or reorder.
LeaderboardMessage :: struct {
abi: s32
action: s32
screen: s32
practice: s32
metric: s32
row_count: s32
signed_in: bool
loading: bool
has_average: bool
refresh: bool
succeeded: bool
}
+21
View File
@@ -0,0 +1,21 @@
#import "session"
// Device observations and retained scroll, never native pointers.
LeaderboardUiFrame :: struct {
session: Session
width: s32
height: s32
bottom: s32
scale: float32
font: s32
scroll: s32
}
// Rows arrive ranked for the chosen metric, with display text prepared once.
LeaderboardUiRow :: struct {
rank: s32
name: string
streak: string
average: string
own: bool
}
+69 -4
View File
@@ -17,6 +17,7 @@
#import, file "../app/assets.zi";
#import, file "../practices/practice_actions.zi";
#import, file "../storage/storage_core.zi";
#import, file "../storage/cell_records.zi";
#import, file "../storage/state.zi";
#import, file "../storage/delegate_store.zi";
#import, file "app_tools.zi";
@@ -268,6 +269,49 @@ LumiOnlineAnswer :: (app: *InnerBreeze) -> bool {
return true
}
// A stable history key makes failure and receipt notices account-scoped and
// idempotent across retries and restarts, using the existing Lumi archive.
LumiFeedbackNotice :: (id: string, delivered: bool) -> bool {
if id.count != 64 {
return false
}
notice_id := PackageText("feedback-", id)
defer { PackageFree(notice_id) }
message_id := PackageText(notice_id, ifx delivered then "-delivered" else "-failed")
defer { PackageFree(message_id) }
message_key := PackageText("cell.lumi.message.", message_id)
defer { PackageFree(message_key) }
existing := CellRecordRead(message_key)
defer { PackageFree(existing) }
if existing.count != 0 {
return true
}
report_key := PackageText("cell.feedback.pending.", id)
defer { PackageFree(report_key) }
report := CellRecordRead(report_key)
defer { PackageFree(report) }
bytes: [161]u8
title := ToolString(report, "title", bytes[:])
if title.count == 0 {
return false
}
out: Vec(u8)
BuilderPrint(*out, "%\n%", LocaleText(ifx delivered then
"lumi_feedback_delivered" else "lumi_feedback_unavailable"), title)
message := BuilderFinish(out)
defer { PackageFree(message) }
if lumi_next_message_id.count != 0 {
return false
}
lumi_next_message_id = message_id
saved := LumiStoreAppendCard(message, false, LUMI_CHAT_TEXT, "")
lumi_next_message_id = ""
if saved && lumi_ui.follow_end {
lumi_ui.scroll = 1000000
}
return saved
}
LumiFeedbackStart :: () -> bool {
if StoredAccountMode() == AccountModeDelegate {
return false
@@ -278,9 +322,13 @@ LumiFeedbackStart :: () -> bool {
return false
}
id := ToolString(body, "id", lumi_feedback_id[:])
if id.count != 64 || !BeginStoredRequest(*lumi_online_operation, "https://api.waozi.xyz",
if id.count != 64 {
return false
}
if !BeginStoredRequest(*lumi_online_operation, "https://api.waozi.xyz",
NetworkTransport(*lumi_online_transfer), "POST", "/api/v1/feedback",
body, lumi_online_response[:], false, *lumi_online_session) {
unused LumiFeedbackNotice(id, false)
return false
}
lumi_online_stage = 2
@@ -340,6 +388,13 @@ app_lumi_pump :: (app: *InnerBreeze) {
if !PollStoredOperation(*lumi_online_operation) {
return
}
// A transport callback can switch accounts while polling. Never write
// the old account's receipt or notice into the new account's archive.
if owner != AppTextFromCString(storage_user_id_buffer(), 64) {
LumiOnlineCancel()
app_lumi_reset()
return
}
stage := lumi_online_stage
lumi_online_stage = 0
success := lumi_online_operation.result == cast(s32)AuthResult.AUTH_OK
@@ -361,9 +416,19 @@ app_lumi_pump :: (app: *InnerBreeze) {
LumiOnlineClearTurn()
}
unused LumiStoreSave()
} else if stage == 2 && success {
unused FeedbackDelivered(TextUntilNul(lumi_feedback_id[:]))
lumi_feedback_retry = 0
} else if stage == 2 {
id := TextUntilNul(lumi_feedback_id[:])
confirmed := success && LumiFeedbackReceiptMatches(
TextUntilNul(lumi_online_response[:]), id)
if confirmed {
// Persist the receipt notice before removing the outbox item.
// A local write failure leaves delivery safe to retry.
if LumiFeedbackNotice(id, true) && FeedbackDelivered(id) {
lumi_feedback_retry = 0
}
} else {
unused LumiFeedbackNotice(id, false)
}
} else if stage == 3 && success {
LumiFeedbackReplies()
unused LumiStoreSave()
+16
View File
@@ -1,4 +1,5 @@
#import "json_scan"
#import "byte_text_linux"
LumiResponseMessageAt :: (document: string) -> s32 {
end := ValueEnd(document, 0, 0)
@@ -7,3 +8,18 @@ LumiResponseMessageAt :: (document: string) -> s32 {
}
return FieldAt(document, 0, "message")
}
// HTTP success alone is not a feedback receipt. Daochi acknowledges the exact
// report ID as a JSON string, optionally followed by JSON whitespace.
LumiFeedbackReceiptMatches :: (document: string, id: string) -> bool {
if id.count != 64 {
return false
}
end := ValueEnd(document, 0, 0)
if end < 0 || Space(document, end) != document.count {
return false
}
bytes: [65]u8
count := ReadStringText(document, Space(document, 0), bytes[:])
return count == 64 && TextFromBytes(bytes[:count]) == id
}
+132 -22
View File
@@ -10,6 +10,7 @@
#import, file "value_codec.zi";
#import, file "diary_types.zi";
#import, file "lumi_types.zi";
#import, file "leaderboard_types.zi";
#import, file "diary_store.zi";
#import, file "package_manager.zi";
#import, file "package_files.zi";
@@ -33,7 +34,9 @@ ModuleSlot :: struct {
}
#scope_file
slots: [6]ModuleSlot;
slots: [PackageCount]ModuleSlot;
leaderboard_message: LeaderboardMessage;
leaderboard_codec: LeaderboardMessageCodec;
lumi_message: LumiMessage;
lumi_codec: LumiMessageCodec;
lumi_message_input: [1024]u8;
@@ -118,6 +121,23 @@ ModuleHostCall :: (context: *void, module: *u8, function: *u8,
}
return 0
}
if slot.kind == MODULE_LEADERBOARD {
if name == "ReadLeaderboardHost" && count == 0 {
message := ifx identifying then LeaderboardMessage.{.abi = MODULE_ABI} else leaderboard_message
result.* = EncodeLeaderboardMessage(message, *leaderboard_codec)
return 1
}
if name == "WriteLeaderboardHost" && count == 1 && !identifying &&
ValidLeaderboardMessage(arguments[0]) {
leaderboard_message = DecodeLeaderboardMessage(arguments[0])
slot.received = true
return 1
}
if ui_active && !identifying && ui_call != null {
return ui_call(ui_context, module, function, arguments, count, result)
}
return 0
}
if slot.kind == MODULE_DIARY {
if name == "ReadDiaryHost" && count == 0 {
message := ifx identifying then DiaryMessage.{.abi = MODULE_ABI} else diary_message
@@ -230,6 +250,10 @@ ModuleHostCall :: (context: *void, module: *u8, function: *u8,
else if feature == APP_DIARY {
allowed = DiaryRoute(screen)
}
else if feature == APP_LEADERBOARD {
allowed = LeaderboardRun(LeaderboardMessage.{.action = LEADERBOARD_ROUTE,
.screen = screen}).succeeded
}
result.* = ModuleScalar("bool", ifx allowed then 1 else 0)
return 1
}
@@ -371,6 +395,9 @@ ModuleCapabilityAllowed :: (kind: s32, name: string) -> bool {
name == "PerformLumiActionHost" || name == "AppendLumiChatHost" || name == "LumiLocaleHost" ||
name == "StartLumiOnlineHost" || name == "LumiLocaleRevisionHost"
}
if kind == MODULE_LEADERBOARD {
return name == "ReadLeaderboardHost" || name == "WriteLeaderboardHost"
}
if kind == MODULE_DIARY {
return name == "ReadDiaryHost" || name == "WriteDiaryHost" ||
name == "ReadDiaryFileHost" || name == "SaveDiaryFileHost" || name == "DiaryClockHost"
@@ -399,7 +426,8 @@ CellsReady :: () -> bool {
((enabled_apps & APP_HABITS) == 0 || slots[1].instance != null) &&
((enabled_apps & APP_PRACTICE) == 0 || slots[2].instance != null) &&
((enabled_apps & APP_DIARY) == 0 || slots[4].instance != null) &&
((enabled_apps & APP_LUMI) == 0 || slots[5].instance != null)
((enabled_apps & APP_LUMI) == 0 || slots[5].instance != null) &&
((enabled_apps & APP_LEADERBOARD) == 0 || slots[6].instance != null)
}
#program_export
@@ -474,11 +502,11 @@ ModuleInstantiate :: (slot: *ModuleSlot) -> bool {
while index < count {
module_name := BundleCapabilityModuleName(slot.bundle, index)
name := BundleCapabilityFunctionName(slot.bundle, index)
owner := ifx kind == MODULE_LISTS then "lists" else ifx kind == MODULE_HABITS then "habits" else ifx kind == MODULE_PRACTICE then "practice" else ifx kind == MODULE_DIARY then "diary" else ifx kind == MODULE_LUMI then "lumi" else "inbe"
owner := ifx kind == MODULE_LISTS then "lists" else ifx kind == MODULE_HABITS then "habits" else ifx kind == MODULE_PRACTICE then "practice" else ifx kind == MODULE_DIARY then "diary" else ifx kind == MODULE_LUMI then "lumi" else ifx kind == MODULE_LEADERBOARD then "leaderboard" else "inbe"
allowed := TextFromCString(module_name) == owner && ModuleCapabilityAllowed(kind, TextFromCString(name))
if TextFromCString(module_name) == owner {
read_name := ifx kind == MODULE_LISTS then "ReadListsHost" else ifx kind == MODULE_HABITS then "ReadHabitsHost" else ifx kind == MODULE_PRACTICE then "ReadPracticeHost" else ifx kind == MODULE_DIARY then "ReadDiaryHost" else ifx kind == MODULE_LUMI then "ReadLumiHost" else "ReadInbeHost"
write_name := ifx kind == MODULE_LISTS then "WriteListsHost" else ifx kind == MODULE_HABITS then "WriteHabitsHost" else ifx kind == MODULE_PRACTICE then "WritePracticeHost" else ifx kind == MODULE_DIARY then "WriteDiaryHost" else ifx kind == MODULE_LUMI then "WriteLumiHost" else "WriteInbeHost"
read_name := ifx kind == MODULE_LISTS then "ReadListsHost" else ifx kind == MODULE_HABITS then "ReadHabitsHost" else ifx kind == MODULE_PRACTICE then "ReadPracticeHost" else ifx kind == MODULE_DIARY then "ReadDiaryHost" else ifx kind == MODULE_LUMI then "ReadLumiHost" else ifx kind == MODULE_LEADERBOARD then "ReadLeaderboardHost" else "ReadInbeHost"
write_name := ifx kind == MODULE_LISTS then "WriteListsHost" else ifx kind == MODULE_HABITS then "WriteHabitsHost" else ifx kind == MODULE_PRACTICE then "WritePracticeHost" else ifx kind == MODULE_DIARY then "WriteDiaryHost" else ifx kind == MODULE_LUMI then "WriteLumiHost" else ifx kind == MODULE_LEADERBOARD then "WriteLeaderboardHost" else "WriteInbeHost"
has_read = has_read || TextFromCString(name) == read_name
has_write = has_write || TextFromCString(name) == write_name
}
@@ -507,6 +535,12 @@ ModuleInstantiate :: (slot: *ModuleSlot) -> bool {
TextFromCString(name) == "ReadLumiSuggestionTaskHost" ||
TextFromCString(name) == "ReadLumiSuggestionHabitHost" || TextFromCString(name) == "LumiViewLocaleHost"))
}
if kind == MODULE_LEADERBOARD {
allowed = allowed || ModuleWidgetCapability(TextFromCString(module_name), TextFromCString(name)) ||
(TextFromCString(module_name) == "leaderboard_view" &&
(TextFromCString(name) == "ReadLeaderboardUiHost" || TextFromCString(name) == "WriteLeaderboardUiHost" ||
TextFromCString(name) == "ReadLeaderboardRowHost" || TextFromCString(name) == "LeaderboardLocaleHost"))
}
if kind == MODULE_INBE {
owner_name := TextFromCString(module_name)
function_name := TextFromCString(name)
@@ -693,6 +727,8 @@ PackageFeature :: (index: s32) -> string {
name = "cells/diary.zib"
} else if index == 4 {
name = "cells/lumi.zib"
} else if index == 5 {
name = "cells/leaderboard.zib"
}
asset: u64 = 0
while asset < BundleAssets(slots[3].bundle) {
@@ -735,23 +771,69 @@ CellsAsset :: (path: string) -> AssetView {
return AssetView.{.data = data, .mime = mime,
.found = format.count > 0 && path[at + 1:] == format}
}
// Frames read a few assets each time, and Practices holds thousands.
// Search the package that owns the path first, then the others.
owner := CellsAssetOwner(path)
found := CellsAssetIn(owner, path)
if found.found {
return found
}
for slot: cast(s32)0..cast(s32)(PackageCount - 1) {
if slots[slot].bundle == null { continue }
index: u64 = 0
while index < BundleAssets(slots[slot].bundle) {
if TextFromCString(BundleAssetPath(slots[slot].bundle, index)) == path {
return AssetView.{.found = true,
.mime = CellsAssetMime(path),
.data = TextFromBytes(BytesFromPointer(
BundleAssetBytes(slots[slot].bundle, index),
BundleAssetLength(slots[slot].bundle, index)))}
}
index += 1
if slot == owner { continue }
found = CellsAssetIn(slot, path)
if found.found {
return found
}
}
return AssetView.{}
}
// The slot whose package may supply the path, as PackageResourceValid allows.
CellsAssetOwner :: (path: string) -> s32 {
prefixes: [7]string = .["assets/lists/", "assets/habits/", "assets/practices/",
"assets/sounds/", "assets/diary/", "assets/lumi/", "assets/leaderboard/"]
owners: [7]s32 = .[0, 1, 2, 2, 4, 5, 6]
for index: cast(s32)0..cast(s32)6 {
prefix := prefixes[index]
if path.count > prefix.count && path[:prefix.count] == prefix {
return owners[index]
}
}
return 3
}
// Compare bytes in place; most names differ early, so no length scan is needed.
CellsAssetNamed :: (name: *u8, path: string) -> bool {
if name == null {
return false
}
for index: cast(s64)0..path.count - 1 {
if name[index] != path[index] {
return false
}
}
return name[path.count] == cast(u8)0
}
CellsAssetIn :: (slot: s32, path: string) -> AssetView {
if slot < 0 || slot >= PackageCount || slots[slot].bundle == null {
return AssetView.{}
}
count := BundleAssets(slots[slot].bundle)
index: u64 = 0
while index < count {
if CellsAssetNamed(BundleAssetPath(slots[slot].bundle, index), path) {
return AssetView.{.found = true,
.mime = CellsAssetMime(path),
.data = TextFromBytes(BytesFromPointer(
BundleAssetBytes(slots[slot].bundle, index),
BundleAssetLength(slots[slot].bundle, index)))}
}
index += 1
}
return AssetView.{}
}
#program_export
CellsOpenPackage :: (bytes: string) -> bool {
CellsClose()
@@ -769,10 +851,10 @@ CellsOpenPackage :: (bytes: string) -> bool {
index: s32 = 0
while ready && index < PackageCount - 1 {
feature := PackageFeature(index)
// Older root packages may omit Lists and Diary. Current builds
// include every cell for offline sidebar changes.
// Older root packages may omit Lists, Diary and Leaderboard.
// Current builds include every cell for offline sidebar changes.
if feature.count == 0 {
ready = index == 0 || index == 3
ready = index == 0 || index == 3 || index == 5
} else {
slot := ModuleSlotForPackage(index + 1)
@@ -835,6 +917,7 @@ CellsSetEnabled :: (mask: s32) -> bool {
habits_message = HabitsMessage.{.abi = MODULE_ABI}
practice_message = PracticeMessage.{.abi = MODULE_ABI}
diary_message = DiaryMessage.{.abi = MODULE_ABI}
leaderboard_message = LeaderboardMessage.{.abi = MODULE_ABI}
identifying = true
index: s32 = 0
while index < PackageCount - 1 {
@@ -903,6 +986,9 @@ CellsInstalledMask :: () -> s32 {
if slots[5].instance != null {
mask |= APP_LUMI
}
if slots[6].instance != null {
mask |= APP_LEADERBOARD
}
return mask
}
@@ -951,11 +1037,12 @@ ModulePackageAssetsValid :: (bundle: *void, validate_features: bool) -> bool {
if count < cast(u64)2 || count > cast(u64)8192 {
return false
}
found: [5]bool
names: [5]string = .["cells/lists.zib", "cells/habits.zib", "cells/practices.zib", "cells/diary.zib", "cells/lumi.zib"]
found: [PackageCount - 1]bool
names: [PackageCount - 1]string = .["cells/lists.zib", "cells/habits.zib", "cells/practices.zib",
"cells/diary.zib", "cells/lumi.zib", "cells/leaderboard.zib"]
for asset: cast(u64)0..count - cast(u64)1 {
matched := false
for feature: cast(s32)0..cast(s32)4 {
for feature: cast(s32)0..cast(s32)(PackageCount - 2) {
if CellBundlePath(TextFromCString(BundleAssetPath(bundle, asset))) == names[feature] && !found[feature] {
bytes := TextFromBytes(BytesFromPointer(BundleAssetBytes(bundle, asset), BundleAssetLength(bundle, asset)))
if validate_features && !CellsValidatePackage(feature + 1, bytes) {
@@ -1091,6 +1178,9 @@ ModuleSlotForPackage :: (index: s32) -> s32 {
if index == 5 {
return 5
}
if index == 6 {
return 6
}
return index - 1
}
@@ -1104,6 +1194,9 @@ ModuleKindForPackage :: (index: s32) -> s32 {
if index == 5 {
return MODULE_LUMI
}
if index == 6 {
return MODULE_LEADERBOARD
}
return index
}
@@ -1126,3 +1219,20 @@ LumiRun :: (message: LumiMessage) -> LumiMessage {
}
return lumi_message
}
#program_export
LeaderboardRun :: (message: LeaderboardMessage) -> LeaderboardMessage {
message.abi = MODULE_ABI
message.succeeded = false
if slots[6].bundle == null {
return message
}
if slots[6].failed && !ModuleRestart(*slots[6]) {
return message
}
leaderboard_message = message
if !ModuleRun(*slots[6]) {
return message
}
return leaderboard_message
}
+1
View File
@@ -6,6 +6,7 @@ MODULE_PRACTICE :: 3
MODULE_INBE :: 4
MODULE_DIARY :: 5
MODULE_LUMI :: 6
MODULE_LEADERBOARD :: 7
MODULE_IDENTIFY :: 0
ModuleIdentity :: struct {
+6 -6
View File
@@ -21,17 +21,17 @@ using AssetDownloadStatus;
package_download: AssetDownload;
package_index: s32 = -1;
package_phase: s32;
package_requested: [6]bool;
package_requested: [PackageCount]bool;
package_automatic: bool;
package_requested_automatic: [6]bool;
package_requested_automatic: [PackageCount]bool;
package_initialized: bool;
package_release: PackageRelease;
package_metadata: string;
package_origin: [512]u8;
package_versions: [6][32]u8;
package_fallback_versions: [6][32]u8;
package_cached_releases: [6]PackageRelease;
package_status: [6]s32;
package_versions: [PackageCount][32]u8;
package_fallback_versions: [PackageCount][32]u8;
package_cached_releases: [PackageCount]PackageRelease;
package_status: [PackageCount]s32;
package_revision: s32;
c :: #system_library "c";
PackageSettingText :: (key: string) -> string #foreign c "storage_get_setting_text";
+14 -8
View File
@@ -23,9 +23,9 @@ PackageRelease :: struct {
key_id: [64]u8
size: s64
valid: bool
dependency_hashes: [6][65]u8
dependency_sizes: [6]s64
dependency_versions: [6][32]u8
dependency_hashes: [PackageCount][65]u8
dependency_sizes: [PackageCount]s64
dependency_versions: [PackageCount][32]u8
}
PackageField :: (json: string, at: s32, key: string, output: []u8) -> string {
@@ -131,7 +131,8 @@ PackageParseRelease :: (json: string, index: s32, public_hex: string) -> Package
count := ArrayCount(json, artifacts)
dependencies := FieldAt(json, 0, "dependencies")
dependency_count := ArrayCount(json, dependencies)
if count < 1 || count > 2 || (index == 0 && dependency_count != 3 && dependency_count != 5) ||
if count < 1 || count > 2 || (index == 0 && dependency_count != 3 && dependency_count != 5 &&
dependency_count != 6) ||
(index != 0 && dependency_count != 0) {
return release
}
@@ -241,9 +242,11 @@ PackageVerifyBytes :: (bytes: string, release: PackageRelease) -> bool {
if TextFromCString(*actual[0]) != TextFromBytes(release.hash[0:64]) {
return false
}
if release.dependency_sizes[1] == 0 && release.dependency_sizes[2] == 0 &&
release.dependency_sizes[3] == 0 && release.dependency_sizes[4] == 0 &&
release.dependency_sizes[5] == 0 {
dependent := false
for index: cast(s32)1..cast(s32)(PackageCount - 1) {
dependent = dependent || release.dependency_sizes[index] != 0
}
if !dependent {
return true
}
root := OpenBundleBytes(payload.data, cast(u64)bytes.count)
@@ -256,7 +259,7 @@ PackageVerifyBytes :: (bytes: string, release: PackageRelease) -> bool {
if BundleAssets(root) < cast(u64)2 || BundleAssets(root) > cast(u64)2048 {
return false
}
matched: [6]bool
matched: [PackageCount]bool
asset: u64 = 0
while asset < BundleAssets(root) {
name := CellBundlePath(TextFromCString(BundleAssetPath(root, asset)))
@@ -276,6 +279,9 @@ PackageVerifyBytes :: (bytes: string, release: PackageRelease) -> bool {
if name == "cells/diary.zib" {
index = 4
}
if name == "cells/leaderboard.zib" {
index = 6
}
if index < 0 {
if !PackageResourceValid(name, MODULE_INBE) { return false }
asset += 1
+126
View File
@@ -7,6 +7,7 @@
#import, file "inbe_types.zi";
#import, file "diary_types.zi";
#import, file "lumi_types.zi";
#import, file "leaderboard_types.zi";
#import "bundle_host"
#import "byte_text_linux"
#import "drawing_props"
@@ -964,6 +965,57 @@ DecodePracticeMessage :: (value: HostValue) -> PracticeMessage {
return data
}
LeaderboardMessageCodec :: struct {
fields: [11]HostField
}
EncodeLeaderboardMessage :: (data: LeaderboardMessage, codec: *LeaderboardMessageCodec) -> HostValue {
value: HostValue
value.kind = cast(s32)HostRecord
value.type_name = ModuleTextData("LeaderboardMessage")
value.fields = *codec.fields[0]
value.field_count = 11
codec.fields[0].name = ModuleTextData("abi")
codec.fields[0].value = ModuleScalar("s32", cast(s64)data.abi)
codec.fields[1].name = ModuleTextData("action")
codec.fields[1].value = ModuleScalar("s32", cast(s64)data.action)
codec.fields[2].name = ModuleTextData("screen")
codec.fields[2].value = ModuleScalar("s32", cast(s64)data.screen)
codec.fields[3].name = ModuleTextData("practice")
codec.fields[3].value = ModuleScalar("s32", cast(s64)data.practice)
codec.fields[4].name = ModuleTextData("metric")
codec.fields[4].value = ModuleScalar("s32", cast(s64)data.metric)
codec.fields[5].name = ModuleTextData("row_count")
codec.fields[5].value = ModuleScalar("s32", cast(s64)data.row_count)
codec.fields[6].name = ModuleTextData("signed_in")
codec.fields[6].value = ModuleScalar("bool", ifx data.signed_in then 1 else 0)
codec.fields[7].name = ModuleTextData("loading")
codec.fields[7].value = ModuleScalar("bool", ifx data.loading then 1 else 0)
codec.fields[8].name = ModuleTextData("has_average")
codec.fields[8].value = ModuleScalar("bool", ifx data.has_average then 1 else 0)
codec.fields[9].name = ModuleTextData("refresh")
codec.fields[9].value = ModuleScalar("bool", ifx data.refresh then 1 else 0)
codec.fields[10].name = ModuleTextData("succeeded")
codec.fields[10].value = ModuleScalar("bool", ifx data.succeeded then 1 else 0)
return value
}
DecodeLeaderboardMessage :: (value: HostValue) -> LeaderboardMessage {
data: LeaderboardMessage
data.abi = cast(s32)value.fields[0].value.integer
data.action = cast(s32)value.fields[1].value.integer
data.screen = cast(s32)value.fields[2].value.integer
data.practice = cast(s32)value.fields[3].value.integer
data.metric = cast(s32)value.fields[4].value.integer
data.row_count = cast(s32)value.fields[5].value.integer
data.signed_in = value.fields[6].value.integer != 0
data.loading = value.fields[7].value.integer != 0
data.has_average = value.fields[8].value.integer != 0
data.refresh = value.fields[9].value.integer != 0
data.succeeded = value.fields[10].value.integer != 0
return data
}
ValidLumiMessage :: (value: HostValue) -> bool {
if value.kind != cast(s32)HostRecord || TextFromCString(value.type_name) != "LumiMessage" ||
value.field_count != 5 || value.fields == null {
@@ -2188,6 +2240,80 @@ ValidPracticeMessage :: (value: HostValue) -> bool {
return true
}
ValidLeaderboardMessage :: (value: HostValue) -> bool {
if value.kind != cast(s32)HostRecord || TextFromCString(value.type_name) != "LeaderboardMessage" ||
value.field_count != 11 || value.fields == null {
return false
}
if TextFromCString(value.fields[0].name) != "abi" {
return false
}
if !ModuleScalarValid(value.fields[0].value, "s32", cast(s32)HostInteger) {
return false
}
if TextFromCString(value.fields[1].name) != "action" {
return false
}
if !ModuleScalarValid(value.fields[1].value, "s32", cast(s32)HostInteger) {
return false
}
if TextFromCString(value.fields[2].name) != "screen" {
return false
}
if !ModuleScalarValid(value.fields[2].value, "s32", cast(s32)HostInteger) {
return false
}
if TextFromCString(value.fields[3].name) != "practice" {
return false
}
if !ModuleScalarValid(value.fields[3].value, "s32", cast(s32)HostInteger) {
return false
}
if TextFromCString(value.fields[4].name) != "metric" {
return false
}
if !ModuleScalarValid(value.fields[4].value, "s32", cast(s32)HostInteger) {
return false
}
if TextFromCString(value.fields[5].name) != "row_count" {
return false
}
if !ModuleScalarValid(value.fields[5].value, "s32", cast(s32)HostInteger) {
return false
}
if TextFromCString(value.fields[6].name) != "signed_in" {
return false
}
if !ModuleScalarValid(value.fields[6].value, "bool", cast(s32)HostInteger) {
return false
}
if TextFromCString(value.fields[7].name) != "loading" {
return false
}
if !ModuleScalarValid(value.fields[7].value, "bool", cast(s32)HostInteger) {
return false
}
if TextFromCString(value.fields[8].name) != "has_average" {
return false
}
if !ModuleScalarValid(value.fields[8].value, "bool", cast(s32)HostInteger) {
return false
}
if TextFromCString(value.fields[9].name) != "refresh" {
return false
}
if !ModuleScalarValid(value.fields[9].value, "bool", cast(s32)HostInteger) {
return false
}
if TextFromCString(value.fields[10].name) != "succeeded" {
return false
}
if !ModuleScalarValid(value.fields[10].value, "bool", cast(s32)HostInteger) {
return false
}
return true
}
ModuleScalarValid :: (value: HostValue, type_name: string, kind: s32) -> bool {
if value.kind != kind || TextFromCString(value.type_name) != type_name {
return false
+4 -4
View File
@@ -1,16 +1,16 @@
// Generated from apps/versions.json; module releases are independent.
PackageBundledVersion :: (index: s32) -> string {
if index < 0 || index >= 6 {
if index < 0 || index >= 7 {
return ""
}
versions: [6]string = .["2.1.20", "1.0.3", "1.0.3", "1.1.3", "1.1.5", "1.3.3"]
versions: [7]string = .["2.1.25", "1.0.4", "1.0.4", "1.1.4", "1.1.7", "1.3.5", "1.0.0"]
return versions[index]
}
PackageBundledSequence :: (index: s32) -> s32 {
if index < 0 || index >= 6 {
if index < 0 || index >= 7 {
return 0
}
sequences: [6]s32 = .[17, 4, 4, 5, 7, 10]
sequences: [7]s32 = .[22, 5, 5, 6, 9, 12, 1]
return sequences[index]
}
Loaded 100 of 189 files, more files were not shown because too many files have changed in this diff. Show more