Pin Kryon b9aed758 and its Ziran toolchain

Apps that style with the css package lock Kryon master; Game2D on the
same commit keeps those apps on one Kryon.
This commit is contained in:
waozi committed 2026-11-07 16:14:02 -03:00
1 parent a9c85df73f
commit 0b16a5be14
4 files changed
+166 -11

No files matched your search

@@ -0,0 +1,64 @@
# Agent switch context
Source session: glm-game2d-visible-touch-stick
Source agent: glm
Source conversation/resume ID: 01a18a43-30bb-7891-b966-5878991d1445
Source task: fbacd22044279c67a2db1023d9ab3ad130bd
Saved owner request:
Execute directly, do not create helper or delegate. Completed scoped parent context: owner exact latest request "and the touch inptu feedack is wveyr hard to see n ameobe moed teh ifrst one" in Choano. Parent verified phone-size headless screenshot /mnt/storage/Projects/waozixyz/games/choano/work/touch-before.portrait.png: thin white ring almost invisible against light cyan dish. Root cause shared GameStickIndicator in canonical /mnt/storage/Projects/kryonlabs/packages/game2d/src/controls.zi, used by Choano Shell at line252. Upstream master clean, no competing sessions (checked), origin https://github.com/kryonlabs/game2d.git. Parent read root instructions, game2d README, Ziran USAGE build/test and Kryon API touch section, entry AGENTS. No repository AGENTS. Package baseline local make test passed before launch. Do not reread broad context.
Improve visible stick globally: dark navy translucent backing, clearly thick contrasting light/cyan rim (Box has only thin border so use nested filled circles to get ~3px rim), larger outlined finger/heading markers. Base radius 34 may become 40-42 if layout and draw defaults stay aligned; preserve hit area and all GameStickSteer semantics. Preserve indicator hiding on release. No texts/locales changes. Draw noninteractive decoration after play as already done. Use at most existing key+nearby offsets (Choano key52020 next53000; enough space), no arbitrary huge keys. Existing file styles can be replaced with richer native Box composition. Avoid new package dependencies and no host/platform forks.
Need meaningful regression: test actual pending paint commands via Kryon SessionOpen/BeginFrame/PendingPaintAt if feasible so ring dark backing, strong contrasting edge, marker visibility and correct layering/hiding verified. Kryon paint_queue exports PendingPaintCount(session), PendingPaintAt(session,index); paint command color/bounds available; Box is decorative. An acceptable equivalent behavior-level test may use a small hosted-Box recording harness to test composition, no live display. Do not add vacuous literal/style mirror assertions. Extend navigation tests as appropriate, keep native and portable execution. Update existing CHANGELOG Unreleased user-facing line. Run full named suite CPU-restricted. No commits/pushes, phones, desktop launches/captures, worktrees, clones, vendor edits or unrelated files. Parent reruns test then commits/pushes upstream and updates Choano lock before full builds. Need package response line references and command result, any limits.
Task contract from the parent task:
Files:
src/controls.zi
tests/navigation_test.zi
tests/test.sh
CHANGELOG.md
Function: GameStickIndicator(session: Session, key: u64, state: GameStick, heading_x: float32, heading_y: float32, radius: float32 = 34.0)
Test: taskset -c 2-5,10-15 env ZIRAN_PAR_THREADS=1 MAKEFLAGS=-j1 make test
Done when: Touch ring/finger/heading clearly visible over bright teal dish using contrasting backing/rims and larger markers; meaningful rendering or contrast regression local test passes, existing steering tests and package suite pass; no commit/push.
Start from these files and read only what this change needs. Make this one change, run its test and the suite it belongs to, and report the exact command and result. Report anything outside this scope instead of doing it.
Complete saved conversation:
user:
Execute directly, do not create helper or delegate. Completed scoped parent context: owner exact latest request "and the touch inptu feedack is wveyr hard to see n ameobe moed teh ifrst one" in Choano. Parent verified phone-size headless screenshot /mnt/storage/Projects/waozixyz/games/choano/work/touch-before.portrait.png: thin white ring almost invisible against light cyan dish. Root cause shared GameStickIndicator in canonical /mnt/storage/Projects/kryonlabs/packages/game2d/src/controls.zi, used by Choano Shell at line252. Upstream master clean, no competing sessions (checked), origin https://github.com/kryonlabs/game2d.git. Parent read root instructions, game2d README, Ziran USAGE build/test and Kryon API touch section, entry AGENTS. No repository AGENTS. Package baseline local make test passed before launch. Do not reread broad context.
Improve visible stick globally: dark navy translucent backing, clearly thick contrasting light/cyan rim (Box has only thin border so use nested filled circles to get ~3px rim), larger outlined finger/heading markers. Base radius 34 may become 40-42 if layout and draw defaults stay aligned; preserve hit area and all GameStickSteer semantics. Preserve indicator hiding on release. No texts/locales changes. Draw noninteractive decoration after play as already done. Use at most existing key+nearby offsets (Choano key52020 next53000; enough space), no arbitrary huge keys. Existing file styles can be replaced with richer native Box composition. Avoid new package dependencies and no host/platform forks.
Need meaningful regression: test actual pending paint commands via Kryon SessionOpen/BeginFrame/PendingPaintAt if feasible so ring dark backing, strong contrasting edge, marker visibility and correct layering/hiding verified. Kryon paint_queue exports PendingPaintCount(session), PendingPaintAt(session,index); paint command color/bounds available; Box is decorative. An acceptable equivalent behavior-level test may use a small hosted-Box recording harness to test composition, no live display. Do not add vacuous literal/style mirror assertions. Extend navigation tests as appropriate, keep native and portable execution. Update existing CHANGELOG Unreleased user-facing line. Run full named suite CPU-restricted. No commits/pushes, phones, desktop launches/captures, worktrees, clones, vendor edits or unrelated files. Parent reruns test then commits/pushes upstream and updates Choano lock before full builds. Need package response line references and command result, any limits.
Task contract from the parent task:
Files:
src/controls.zi
tests/navigation_test.zi
tests/test.sh
CHANGELOG.md
Function: GameStickIndicator(session: Session, key: u64, state: GameStick, heading_x: float32, heading_y: float32, radius: float32 = 34.0)
Test: taskset -c 2-5,10-15 env ZIRAN_PAR_THREADS=1 MAKEFLAGS=-j1 make test
Done when: Touch ring/finger/heading clearly visible over bright teal dish using contrasting backing/rims and larger markers; meaningful rendering or contrast regression local test passes, existing steering tests and package suite pass; no commit/push.
Start from these files and read only what this change needs. Make this one change, run its test and the suite it belongs to, and report the exact command and result. Report anything outside this scope instead of doing it.
assistant:
I’ll inspect the four scoped files, then patch rendering and regression tests.
assistant:
The existing tests cover geometry only. I’m tracing Kryon’s pending-paint API to assert the actual composition.
assistant:
I found the API. I’m implementing nested filled circles plus paint-level contrast, thickness, ordering, and release tests.
assistant:
Rendering and regression assertions are in place. I’m running the required CPU-restricted package suite now.
assistant:
The first suite run exposed import/naming mismatches, not rendering behavior. I’m correcting the test’s dependency aliases and Ziran’s nested-call parsing.
user:
<turn_aborted>
The user interrupted the previous turn on purpose. Any running unified exec processes may still be running in the background. If any tools/commands were aborted, they may have partially executed.
</turn_aborted>
Latest checkpoint:
Search BeginFrame|EndFrame in pixmap_frame.zi (command exit 1) Search #program_export|^BeginFrame|^EndFrame|^CommitFrame in pixmap_frame.zi Search ^CommitFrame ::|#program_export\s*$ in tree_draw.zi ■ Conversation interrupted - use /feedback if something went wrong
+2
View File
@@ -2,6 +2,8 @@
## [Unreleased]
- Built on Kryon b9aed758, the Kryon the CSS style package installs into.
- Preserve the surrounding game theme when nested controls finish drawing.
- Swipe steering exposes accepted-step and tap events separately from retained direction.
+98 -9
View File
@@ -1,6 +1,15 @@
{
"format": 1,
"packages": [
{
"commit": "c96f5e3de9c4488f4e6c97f59f5245f22fda22f7",
"dependencies": {},
"id": "p0dd67588478f9a3e",
"name": "libsamplerate",
"ref": "c96f5e3de9c4488f4e6c97f59f5245f22fda22f7",
"source": true,
"url": "https://github.com/libsndfile/libsamplerate.git"
},
{
"commit": "829a65d769d935c4852f8159e964312c0957260a",
"dependencies": {},
@@ -20,14 +29,67 @@
"url": "https://github.com/webmproject/libwebp.git"
},
{
"commit": "b5ac5d1a303326009012d68016c1d8859b6b3a13",
"dependencies": {"libwebp": "p3b3c785a0e17e605", "raylib": "pcc7aa76725f2fb2f", "sdl3": "p16cd0434af3dff7b"},
"dependency_refs": {"libwebp": "1844042d1ca751e62e61df7617dba19c98588339", "raylib": "fafa2cea97d0cb379d832086ba45a989fa6f9c8e", "sdl3": "829a65d769d935c4852f8159e964312c0957260a"},
"id": "pbb0d432304fad5c6",
"commit": "1aadfad932c98c069a1204261b1856f81f3bc199",
"dependencies": {},
"id": "p57c0272208aae8db",
"name": "libavif",
"ref": "1aadfad932c98c069a1204261b1856f81f3bc199",
"source": true,
"url": "https://github.com/AOMediaCodec/libavif.git"
},
{
"commit": "b9aed7589e9af2935a9cd9cb260e72944c195762",
"dependencies": {"audio": "pd258d453b63edc1f", "avif": "pfcfd889420218f37", "image_codec": "p69c0e968ae5735d9", "libaom": "p74ab3cb6eb3b86fa", "libavif": "p57c0272208aae8db", "libwebp": "p3b3c785a0e17e605", "raylib": "pcc7aa76725f2fb2f", "sdl3": "p16cd0434af3dff7b", "webp": "pa068bd09450b2a80"},
"dependency_refs": {"audio": "f5eed1e6c817997d51508f9c3c7b948a0bb4ad0b", "avif": "2f349f8c4a46c7476c6c02b87ec570e66d3a8f34", "image_codec": "360553150917f352e49e1beb78917370792ccaef", "libaom": "b141d9c45db236335351c8a4b2a14b3ade27c937", "libavif": "1aadfad932c98c069a1204261b1856f81f3bc199", "libwebp": "1844042d1ca751e62e61df7617dba19c98588339", "raylib": "fafa2cea97d0cb379d832086ba45a989fa6f9c8e", "sdl3": "829a65d769d935c4852f8159e964312c0957260a", "webp": "02145a00a1f0df2a111da04a75f3fef260883897"},
"id": "p5d654550c4218378",
"name": "kryon",
"ref": "b5ac5d1a303326009012d68016c1d8859b6b3a13",
"ref": "b9aed7589e9af2935a9cd9cb260e72944c195762",
"url": "https://github.com/kryonlabs/kryon.git"
},
{
"commit": "bd278217e2bac754d868b3d6502eac4257658d4b",
"dependencies": {"dav1d": "pb24767b9eb34d961", "image_codec": "p69c0e968ae5735d9", "libaom": "p74ab3cb6eb3b86fa"},
"dependency_refs": {"dav1d": "54706fc6bc0cdecab7e9593974a4039cc038fca7", "image_codec": "360553150917f352e49e1beb78917370792ccaef", "libaom": "b141d9c45db236335351c8a4b2a14b3ade27c937"},
"id": "p5d7d12505a42f7b3",
"name": "av1",
"ref": "bd278217e2bac754d868b3d6502eac4257658d4b",
"url": "https://github.com/ziranlang/av1.git"
},
{
"commit": "360553150917f352e49e1beb78917370792ccaef",
"dependencies": {},
"id": "p69c0e968ae5735d9",
"name": "image-codec",
"ref": "360553150917f352e49e1beb78917370792ccaef",
"url": "https://github.com/ziranlang/image-codec.git"
},
{
"commit": "b141d9c45db236335351c8a4b2a14b3ade27c937",
"dependencies": {},
"id": "p74ab3cb6eb3b86fa",
"name": "libaom",
"ref": "b141d9c45db236335351c8a4b2a14b3ade27c937",
"source": true,
"url": "https://aomedia.googlesource.com/aom"
},
{
"commit": "02145a00a1f0df2a111da04a75f3fef260883897",
"dependencies": {"image_codec": "p69c0e968ae5735d9", "libwebp": "p3b3c785a0e17e605"},
"dependency_refs": {"image_codec": "360553150917f352e49e1beb78917370792ccaef", "libwebp": "1844042d1ca751e62e61df7617dba19c98588339"},
"id": "pa068bd09450b2a80",
"name": "webp",
"ref": "02145a00a1f0df2a111da04a75f3fef260883897",
"url": "https://github.com/ziranlang/webp.git"
},
{
"commit": "54706fc6bc0cdecab7e9593974a4039cc038fca7",
"dependencies": {},
"id": "pb24767b9eb34d961",
"name": "dav1d",
"ref": "54706fc6bc0cdecab7e9593974a4039cc038fca7",
"source": true,
"url": "https://github.com/videolan/dav1d.git"
},
{
"commit": "fafa2cea97d0cb379d832086ba45a989fa6f9c8e",
"dependencies": {},
@@ -36,16 +98,43 @@
"ref": "fafa2cea97d0cb379d832086ba45a989fa6f9c8e",
"source": true,
"url": "https://github.com/raysan5/raylib.git"
},
{
"commit": "f5eed1e6c817997d51508f9c3c7b948a0bb4ad0b",
"dependencies": {"libopus": "pe1fe9bbe80bf1d6d", "libsamplerate": "p0dd67588478f9a3e"},
"dependency_refs": {"libopus": "ddbe48383984d56acd9e1ab6a090c54ca6b735a6", "libsamplerate": "c96f5e3de9c4488f4e6c97f59f5245f22fda22f7"},
"id": "pd258d453b63edc1f",
"name": "audio",
"ref": "f5eed1e6c817997d51508f9c3c7b948a0bb4ad0b",
"url": "https://github.com/ziranlang/audio.git"
},
{
"commit": "ddbe48383984d56acd9e1ab6a090c54ca6b735a6",
"dependencies": {},
"id": "pe1fe9bbe80bf1d6d",
"name": "libopus",
"ref": "ddbe48383984d56acd9e1ab6a090c54ca6b735a6",
"source": true,
"url": "https://github.com/xiph/opus.git"
},
{
"commit": "2f349f8c4a46c7476c6c02b87ec570e66d3a8f34",
"dependencies": {"av1": "p5d7d12505a42f7b3", "dav1d": "pb24767b9eb34d961", "image_codec": "p69c0e968ae5735d9", "libaom": "p74ab3cb6eb3b86fa", "libavif": "p57c0272208aae8db"},
"dependency_refs": {"av1": "bd278217e2bac754d868b3d6502eac4257658d4b", "dav1d": "54706fc6bc0cdecab7e9593974a4039cc038fca7", "image_codec": "360553150917f352e49e1beb78917370792ccaef", "libaom": "b141d9c45db236335351c8a4b2a14b3ade27c937", "libavif": "1aadfad932c98c069a1204261b1856f81f3bc199"},
"id": "pfcfd889420218f37",
"name": "avif",
"ref": "2f349f8c4a46c7476c6c02b87ec570e66d3a8f34",
"url": "https://github.com/ziranlang/avif.git"
}
],
"root": {
"dependencies": {"kryon": "pbb0d432304fad5c6"},
"dependency_refs": {"kryon": "b5ac5d1a303326009012d68016c1d8859b6b3a13"},
"dependencies": {"kryon": "p5d654550c4218378"},
"dependency_refs": {"kryon": "b9aed7589e9af2935a9cd9cb260e72944c195762"},
"name": "Game2D"
},
"toolchain": {
"commit": "93af347a2a7af4a5a6a88906dbf7808189438b9b",
"ref": "master",
"commit": "9524616df1a1b6e63a3789b3aea055714a526c88",
"ref": "9524616df1a1b6e63a3789b3aea055714a526c88",
"url": "https://github.com/ziranlang/ziran.git"
}
}
+2 -2
View File
@@ -4,11 +4,11 @@ module_roots = ["src", "tests"]
[toolchain]
git = "https://github.com/ziranlang/ziran.git"
ref = "master"
ref = "9524616df1a1b6e63a3789b3aea055714a526c88"
[dependencies.kryon]
git = "https://github.com/kryonlabs/kryon.git"
ref = "b5ac5d1a303326009012d68016c1d8859b6b3a13"
ref = "b9aed7589e9af2935a9cd9cb260e72944c195762"
[exports]
Game2D = "src/Game2D/module.zi"