Compare commits

...
Author SHA1 Message Date
waozi 6e58768825 Save Arcade's unfinished reminder and pin work 2026-11-02 11:12:09 -03:00
waozi 2e98b878a6 Release Arcade catalog 0.7.118 with the latest game releases 2026-11-02 04:43:13 +00:00
waozi 3007fa8ed2 Bound each separately loaded Arcade payload and use locked game packages 2026-11-02 01:28:27 -03:00
waozi 1063591d2f Keep qualified game UI imports in the Kryon namespace 2026-11-02 00:53:23 -03:00
waozi 6f6d13cbfa Accept the explicit node permission in the browser smoke test 2026-11-01 23:55:21 -03:00
waozi d5eb9ff080 Update shared sign-in and disambiguate the KSS build dependency 2026-11-01 23:40:30 -03:00
waozi 5a386646b9 Pin Entity sign-in and Android profile fixes 2026-11-01 23:08:01 -03:00
waozi b4cb5815c6 Adopt reviewed shared profile dependencies and lossless game packaging 2026-11-01 22:47:56 -03:00
waozi 22bbe66f7d Pass the KSS package to game bundles so Choano 0.1.5 and later build 2026-11-01 21:57:17 -03:00
waozi 8bef62f896 Offer the signed-in account to other Waozi apps on Android 2026-11-01 20:46:39 -03:00
waozi 02eb8248d8 Build liboqs with ML-KEM for device links 2026-11-01 20:03:27 -03:00
waozi 9bae15b7ce Build Arcade on Ziran 972dc244 so Breeze hosts reading ZX 26 open it
Toolchain b8d0ac17 wrote and read only ZX 27, which the Breeze host on
Ziran c8c6c96c refuses ("unsupported ZX version"). 972dc244 writes ZX 26
except for add-ons composing library modules (Shovey Editor) and reads both.
The rebuilt Apps controller differs only by that header: trust cc913d86.

The Android catalog check and tests accept both versions, and the
collection UI test answers consent before waiting for the library and
expects the declared titles shown since 755e0ae.
2026-10-31 12:23:56 -03:00
42 changed files with 1676 additions and 323 deletions

No files matched your search

+11
View File
@@ -1,5 +1,16 @@
# Arcade changelog
## [Unreleased]
- Support evening chest reminders from compatible games on Android, with the device's notification permission and only the selected game counted as opened.
- Password fields start empty and show one star per character, including long passwords.
- Use Entity's reviewed account authorization and shared Apps controller.
- Keep the full game collection within the host payload limit by packing opaque pictures without redundant alpha data; decoded pixels stay identical.
- On Android, Continue as can use the account from another signed-in Waozi app, once you approve it there.
- Arcade and its games open again in Breeze builds that read the previous app bundle format.
## 0.7.117
- Ask before connecting to the node for Arcade's signed app library and compressed previews, with an offline choice and a connection control.
+10
View File
@@ -36,6 +36,11 @@ collection: games $(APPS_BUNDLE)
collection-test:
python3 tests/collection_test.py
.PHONY: collection-notifications-test
collection-notifications-test:
python3 tests/game_host_compatibility_test.py
python3 tests/collection_notifications_test.py
src/catalog.zi: games
build/entity.zx: ziran.lock $(wildcard $(ENTITY_DIR)/src/*.zi)
@@ -54,6 +59,11 @@ run: all
./build/arcade
test: all
python3 tests/game_host_compatibility_test.py
python3 tests/collection_notifications_test.py
python3 tests/game_module_paths_test.py
python3 tests/game_resource_packing_test.py
python3 tests/game_translation_keys_test.py
python3 tests/android_catalog_test.py
python3 tests/android_jni_contract_test.py
python3 tests/game_updates_test.py
+1 -1
View File
@@ -1 +1 @@
d9348aac9e83664a55510ec34acacf9e4bedb568ad47aa09474bb79121f98d02
367e6e4a787467e0c2d3dc428749eb700031cc1cb0db16f730d2639bb8bcd33d
+10 -10
View File
@@ -1,5 +1,5 @@
{
"host_api": 41,
"host_api": 42,
"oldest_host_api": 41,
"module_api": 2,
"node_apps": {
@@ -13,8 +13,8 @@
"choano": {
"id": "xyz.waozi.choano",
"title": "Choano",
"version": "0.1.3",
"sequence": 2,
"version": "0.1.8",
"sequence": 3,
"host_api": 41
},
"shovey": {
@@ -34,22 +34,22 @@
"arcade": {
"id": "inbe.arcade",
"title": "Arcade",
"version": "0.7.117",
"sequence": 196,
"version": "0.7.118",
"sequence": 197,
"host_api": 41
},
"wurm": {
"id": "xyz.waozi.wurm",
"title": "Apfelwurm",
"version": "0.2.27",
"sequence": 22,
"host_api": 41
"version": "0.2.29",
"sequence": 24,
"host_api": 42
},
"wurm-editor": {
"id": "xyz.waozi.wurm-editor",
"title": "Apfelwurm Editor",
"version": "0.1.0",
"sequence": 1,
"version": "0.1.1",
"sequence": 2,
"host_api": 41
}
}
+10 -1
View File
@@ -1,6 +1,15 @@
# Arcade catalog changelog
## [Unreleased]
## 0.7.118
- Apfelwurm 0.2.28: The editor title painting includes the Apfelwurm Editor logo in portrait and landscape.
- Choano 0.1.8: Keep the Fish HUD clear of the misleading Avoid indicator and introduce the sea with a little fish guide and speech bubbles.
- Choano 0.1.8: Wear a better-fitted ribbon or crown, with three optional Dew decorations: a pearl, a flower, and a wizard hat.
- Choano 0.1.8: Choose decorations by tapping their Shop cards, with clear locks and Dew purchase confirmation.
- Choano 0.1.8: Sign in through the shared Profile in native editions and restore Dew decorations with the same account.
- Choano 0.1.8: Meet a slimmer shark whose fins flash red on contact.
- Choano 0.1.8: Keep Shop and Settings navigation separate and preserve each icon’s original colors.
- Choano 0.1.8: Fit Profile and Downloads beside the title icons on narrow screens.
## 0.7.117
+1 -1
View File
@@ -1 +1 @@
0.7.117
0.7.118
+3
View File
@@ -103,3 +103,6 @@ tasks.register('prepareEntity', Exec) {
commandLine 'python3', 'scripts/build-entity.py'
}
tasks.named('preBuild').configure { dependsOn 'prepareEntity' }
// "Continue as @name" between waozi apps, in every edition.
apply from: new File(kryonDir, 'templates/android-account-handoff.gradle')
+1 -1
View File
@@ -95,7 +95,7 @@ if(NOT MONOCYPHER_DIR)
endif()
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" CACHE STRING "" FORCE)
set(OQS_MINIMAL_BUILD "SIG_ml_dsa_44;KEM_ml_kem_768" CACHE STRING "" FORCE)
set(OQS_DIST_BUILD OFF CACHE BOOL "" FORCE)
set(OQS_OPT_TARGET generic CACHE STRING "" FORCE)
foreach(feature ADX AES AVX AVX2 AVX512 AVX512BW AVX512DQ AVX512F BMI1 BMI2 FMA PCLMULQDQ POPCNT SSE SSE2 SSE3 VPCLMULQDQ)
+2 -1
View File
@@ -45,7 +45,8 @@ def bundle_assets(payload, limit):
return struct.unpack('<I', take(4))[0]
def text():
return take(number())
assert take(8) == b'ZX\0\0\x1b\0\0\0', 'Unsupported catalog bundle'
# ZX 26 and 27 share this layout; 27 only marks composed library modules.
assert take(8) in (b'ZX\0\0\x1a\0\0\0', b'ZX\0\0\x1b\0\0\0'), 'Unsupported catalog bundle'
text(); text()
for _ in range(number()):
text(); text()
+71 -22
View File
@@ -10,6 +10,7 @@ import re
import shutil
import subprocess
import tarfile
import tempfile
from game_packages import declared_packages
from node_config import node_source
@@ -18,6 +19,41 @@ MAX_PAYLOAD_BYTES = 64 * 1024 * 1024
MAX_GAMES = 16
def payload_limit(size, label):
if size > MAX_PAYLOAD_BYTES:
raise ValueError(f"{label} exceeds the host's payload limit")
def catalog_bytes(catalog):
return (json.dumps(catalog, indent=2) + "\n").encode()
def child_paths(child):
return [child["bundle"], child["preview"], *(
value for key, value in child.get("cover", {}).items()
if key in ("portrait", "landscape", "logo"))]
def package_catalog(package, children):
return dict(schema=1, id=package["id"], title=package["title"],
harness="assets/apps/apps.zx", children=children)
def bundle(command, root, source, entry, assets, target, env):
"""Check the complete ZX (including code/index overhead) before promotion."""
work = root / "work"
subprocess.run(["git", "check-ignore", "-q", "work/"], cwd=root, check=True)
work.mkdir(exist_ok=True)
with tempfile.TemporaryDirectory(prefix="collection-bundle-", dir=work) as directory:
candidate = Path(directory) / target.name
subprocess.run([*command, "--root", str(root / "src"), "--entry", entry,
"--asset-dir", "assets=" + str(assets), "-o", str(candidate),
str(root / "src" / source)], cwd=root, env=env, check=True)
payload_limit(candidate.stat().st_size, target.name)
target.parent.mkdir(parents=True, exist_ok=True)
candidate.replace(target)
def digest(path):
return hashlib.sha256(path.read_bytes()).hexdigest()
@@ -52,18 +88,20 @@ def stage(root, controller, expected_controller_digest, output):
catalog and each game package with the IDs of its packed apps."""
if not re.fullmatch(r"[0-9a-f]{64}", expected_controller_digest):
raise ValueError("An exact trusted Apps controller SHA-256 is required")
payload_limit(controller.stat().st_size, "Apps controller")
controller_bytes = controller.read_bytes()
controller_digest = hashlib.sha256(controller_bytes).hexdigest()
if controller_digest != expected_controller_digest:
raise ValueError(f"Apps controller differs from the trusted SHA-256: {controller_digest} != {expected_controller_digest}")
packages = declared_packages(root)
payload_limit(len(controller_bytes), "Apps controller")
lock_flags = () if (root / "ziran.local.toml").is_file() else ("--locked",)
packages = declared_packages(root, lock_flags=lock_flags)
arcade = packages[0]
if not 1 <= sum(len(package["apps"]) for package in packages) <= MAX_GAMES:
raise ValueError("Arcade needs 1 to 16 games")
ledger = json.loads((root / "apps/versions.json").read_text())["node_apps"]
children, copies, identities = [], [], set()
collection_ids = {package["id"] for package in packages}
total = len(controller_bytes)
for package in packages:
package["children"] = []
for app in package["apps"]:
@@ -88,12 +126,13 @@ def stage(root, controller, expected_controller_digest, output):
preview = root / "build/games" / (name + "-preview.png")
# The game build embeds this exact legacy descriptor. Its verified
# name binds node/2's legacy handshake to the stable signed app ID.
payload_limit(bundle.stat().st_size, f"Game {name}")
bundle_bytes, preview_bytes = bundle.read_bytes(), preview.read_bytes()
if not bundle_bytes or not preview_bytes:
raise ValueError("Game bundles and previews must be built first")
payload_limit(len(bundle_bytes), f"Game {name}")
preview_bytes, preview_suffix = library_art(root, name, "preview",
(app["art_source"] / game["preview"]).read_bytes())
total += len(bundle_bytes) + len(preview_bytes)
child = dict(
id=identifier, title=game["title"],
bundle=f"assets/arcade/games/{name}.zx", protocol="node/2",
@@ -128,16 +167,31 @@ def stage(root, controller, expected_controller_digest, output):
destination = Path("arcade/covers") / f"{name}-{key}{suffix}"
packed_cover[key] = "assets/" + destination.as_posix()
copies.append((contents, destination))
total += len(contents)
child["cover"] = packed_cover
children.append(child)
package["children"].append(identifier)
copies += [(bundle_bytes, Path("arcade/games") / (name + ".zx")),
(preview_bytes, Path("arcade/previews") / (name + preview_suffix))]
if total > MAX_PAYLOAD_BYTES:
raise ValueError("Arcade collection exceeds the host's payload limit")
catalog = dict(schema=1, id=arcade["id"], title=arcade["title"],
harness="assets/apps/apps.zx", presentation={"mode": "covers"}, children=children)
sidebar = (root / "assets/arcade/sidebar.shape").read_bytes()
# The stage is a source for several independently loaded roots, not one
# root containing the whole library. Bound their input bytes separately;
# bundle() also checks the final compiled sizes, including ZX overhead.
payloads = {"assets/" + path.as_posix(): data for data, path in copies}
art_paths = {path for child in children for path in child_paths(child)[1:]}
payload_limit(sum(len(payloads[path]) for path in art_paths), "Library art")
payload_limit(len(catalog_bytes(catalog)) + len(sidebar), "Arcade catalog")
for package in packages[1:]:
if not (root / "src" / f"{package['name']}_collection.zi").is_file():
continue
leaves = [child for child in children if child["id"] in package["children"]]
if not leaves:
raise ValueError(f"{package['name']} declares no enabled apps")
paths = {path for child in leaves for path in child_paths(child)}
size = (len(controller_bytes) + len(catalog_bytes(package_catalog(package, leaves)))
+ sum(len(payloads[path]) for path in paths))
payload_limit(size, f"Standalone {package['name']}")
# This stable directory contains disposable build output only. Clear it
# after all inputs validate so removed registrations cannot linger.
if output.exists():
@@ -145,14 +199,14 @@ def stage(root, controller, expected_controller_digest, output):
assets = output / "assets"
(assets / "apps").mkdir(parents=True)
(assets / "apps/apps.zx").write_bytes(controller_bytes)
(assets / "apps/catalog.json").write_text(json.dumps(catalog, indent=2) + "\n")
(assets / "apps/catalog.json").write_bytes(catalog_bytes(catalog))
for contents, relative in copies:
destination = assets / relative
destination.parent.mkdir(parents=True, exist_ok=True)
destination.write_bytes(contents)
# Inbe draws Arcade's launcher icon from assets/arcade/sidebar.shape.
(assets / "arcade").mkdir(exist_ok=True)
(assets / "arcade/sidebar.shape").write_bytes((root / "assets/arcade/sidebar.shape").read_bytes())
(assets / "arcade/sidebar.shape").write_bytes(sidebar)
return catalog, packages[1:]
@@ -170,6 +224,7 @@ def stage_downloads(catalog, source, output, games, art):
data = (source / child["bundle"]).read_bytes()
if hashlib.sha256(data).hexdigest() != child["sha256"]:
raise ValueError("Game differs from the collection's declared digest")
payload_limit(len(data), f"Game {child['id']}")
payloads[child["sha256"]] = data
for directory in (output, games, art):
if directory.exists():
@@ -194,6 +249,7 @@ def stage_downloads(catalog, source, output, games, art):
def add_art(output, games, art_bundle):
"""Publish the art bundle beside the games and name it in the catalog."""
data = art_bundle.read_bytes()
payload_limit(len(data), "Library art bundle")
digest = hashlib.sha256(data).hexdigest()
(games / (digest + ".zx")).write_bytes(data)
path = output / "assets/apps/catalog.json"
@@ -226,10 +282,6 @@ def main():
catalog, packages = stage(ROOT, args.apps_bundle, args.apps_sha256, output)
command = [args.ziran, "bundle", "--project", *(["--locked"] if args.locked else [])]
env = os.environ.copy()
def bundle(source, entry, assets, target):
subprocess.run([*command, "--root", str(ROOT / "src"), "--entry", entry,
"--asset-dir", "assets=" + str(assets), "-o", str(target),
str(ROOT / "src" / source)], cwd=ROOT, env=env, check=True)
# A game package with a standalone player (src/NAME_collection.zi) also
# gets its own collection of exactly the leaves Arcade packs, with their
@@ -247,18 +299,15 @@ def main():
assets = standalone / "assets"
(assets / "apps").mkdir(parents=True)
shutil.copyfile(output / "assets/apps/apps.zx", assets / "apps/apps.zx")
standalone_catalog = dict(schema=1, id=package["id"], title=package["title"],
harness="assets/apps/apps.zx", children=children)
(assets / "apps/catalog.json").write_text(json.dumps(standalone_catalog, indent=2) + "\n")
standalone_catalog = package_catalog(package, children)
(assets / "apps/catalog.json").write_bytes(catalog_bytes(standalone_catalog))
for child in children:
resources = [child[field] for field in ("bundle", "preview")]
resources += [value for field, value in child.get("cover", {}).items()
if field in ("portrait", "landscape", "logo")]
for relative in resources:
for relative in child_paths(child):
destination = standalone / relative
destination.parent.mkdir(parents=True, exist_ok=True)
shutil.copyfile(output / relative, destination)
bundle(f"{name}_collection.zi", f"{name}_collection:Main", assets, ROOT / f"build/{name}.zx")
bundle(command, ROOT, f"{name}_collection.zi", f"{name}_collection:Main",
assets, ROOT / f"build/{name}.zx", env)
metadata = dict(id=package["id"], version=children[0]["version"],
sha256=digest(ROOT / f"build/{name}.zx"), apps_sha256=args.apps_sha256,
children=children, source_mode="project")
@@ -271,10 +320,10 @@ def main():
game_downloads = node_apps / "arcade.games"
art_assets = node_apps / "arcade-art"
stage_downloads(catalog, output, catalog_assets, game_downloads, art_assets)
bundle("art.zi", "art:Main", art_assets / "assets", node_apps / "arcade-art.zx")
bundle(command, ROOT, "art.zi", "art:Main", art_assets / "assets", node_apps / "arcade-art.zx", env)
art = add_art(catalog_assets, game_downloads, node_apps / "arcade-art.zx")
archive_downloads(game_downloads, node_apps / "arcade.games.tar")
bundle("collection.zi", "collection:Main", catalog_assets / "assets", node_apps / "arcade.zx")
bundle(command, ROOT, "collection.zi", "collection:Main", catalog_assets / "assets", node_apps / "arcade.zx", env)
shutil.copyfile(node_apps / "arcade.zx", ROOT / "build/arcade.zx")
# The desktop host supplies its controller from beside the collection.
shutil.copyfile(args.apps_bundle, ROOT / "build/apps.zx")
+1 -1
View File
@@ -54,7 +54,7 @@ def main():
subprocess.run(['cmake', '-S', str(oqs_source), '-B', str(oqs),
'-DCMAKE_BUILD_TYPE=MinSizeRel', '-DBUILD_SHARED_LIBS=OFF',
'-DOQS_BUILD_ONLY_LIB=ON', '-DOQS_USE_OPENSSL=OFF', '-DOQS_DIST_BUILD=OFF',
'-DOQS_OPT_TARGET=generic', '-DOQS_MINIMAL_BUILD=SIG_ml_dsa_44'], check=True)
'-DOQS_OPT_TARGET=generic', '-DOQS_MINIMAL_BUILD=SIG_ml_dsa_44;KEM_ml_kem_768'], check=True)
subprocess.run(['cmake', '--build', str(oqs), '--target', 'oqs', '-j2'], check=True)
temporary = output.with_suffix('.new')
output.parent.mkdir(parents=True, exist_ok=True)
+7 -4
View File
@@ -7,7 +7,8 @@ import shutil
import subprocess
from pathlib import Path
from game_packages import declared_apps
from game_resources import dependency_order, share_resources
from game_module_paths import kryon_module_paths
from game_resources import dependency_order, pack_opaque_pngs, share_resources
ROOT = Path(__file__).resolve().parents[1]
@@ -46,6 +47,8 @@ def build(ziran, lock_flags):
# Resolve transitive packages from Arcade's lock, never their private graphs.
daochi_client = package("daochi_client")
crypto = package("crypto")
# Shared KSS themes (Choano 0.1.5 and later import kss/Kss).
kss = package("kss")
entries = []
apps = dependency_order(declared_apps(ROOT, ziran, lock_flags))
by_id = {app['descriptor']['id']: app for app in apps}
@@ -110,6 +113,7 @@ def build(ziran, lock_flags):
subprocess.run([str(tool / prepare.stem), str(resources), str(generated)], cwd=source, check=True)
else:
subprocess.run(['python3', str(source / prepare), str(resources), str(generated)], check=True)
pack_opaque_pngs(resources)
shared = share_resources(app, apps, resources, ROOT / 'build/game-assets')
metadata = ROOT / 'build/games' / (name + '-resources.json')
metadata.parent.mkdir(parents=True, exist_ok=True)
@@ -138,9 +142,7 @@ def build(ziran, lock_flags):
# Game packages without a src folder (Shovey) keep sources beside their catalogs.
*(["--module-path", str(source / "src")] if (source / "src").is_dir() else []),
"--module-path", str(generated),
"--module-path", str(kryon / "src/ui"),
"--module-path", "kryon=" + str(kryon / "src/ui"),
"--module-path", "kryon=" + str(kryon / "src/backend"),
*kryon_module_paths(source, descriptor, kryon),
"--module-path", "game2d=" + str(game2d / "src"),
"--module-path", "std=" + str(toolchain / "std"),
"--module-path", str(toolchain / "std"),
@@ -149,6 +151,7 @@ def build(ziran, lock_flags):
"--module-path", "entity=" + str(entity / "src"),
"--module-path", "daochi_client=" + str(daochi_client),
"--module-path", "crypto=" + str(crypto / "src"),
"--module-path", "kss=" + str(kss / "src"),
*[flag for name in defines for flag in ('--define', name)],
*[flag for entry in app['library_entries'] for flag in ('--retain', entry)],
*[flag for dependency_id in app['requires'] if app['shared_code']
+1 -1
View File
@@ -119,7 +119,7 @@ def main():
oqs = BUILD / 'oqs/lib/liboqs.a'
if not built(oqs, oqs_source):
cmake(oqs_source, BUILD / 'oqs', tools, '-DCMAKE_BUILD_TYPE=MinSizeRel', '-DOQS_BUILD_ONLY_LIB=ON',
'-DOQS_USE_OPENSSL=OFF', '-DOQS_DIST_BUILD=OFF', '-DOQS_OPT_TARGET=generic', '-DOQS_MINIMAL_BUILD=SIG_ml_dsa_44')
'-DOQS_USE_OPENSSL=OFF', '-DOQS_DIST_BUILD=OFF', '-DOQS_OPT_TARGET=generic', '-DOQS_MINIMAL_BUILD=SIG_ml_dsa_44;KEM_ml_kem_768')
subprocess.run(['cmake', '--build', str(BUILD / 'oqs'), '--target', 'oqs', '-j4'], check=True)
record(oqs, oqs_source)
+21 -5
View File
@@ -9,6 +9,22 @@ from game_packages import declared_apps
ROOT = Path(__file__).resolve().parents[1]
def translation_keys(code, prefix):
# Package imports and integer fields read from server JSON are not labels.
# Strip only those argument occurrences: the same key used by the UI must
# still have a translation.
code = re.sub(r'^\s*#import\s+"[^"\n]*"', '', code, flags=re.M)
code = re.sub(r'\bShopInteger\s*\(\s*[^,\n]+,\s*"[^"\n]*"', '', code)
return set(re.findall(r'"(' + re.escape(prefix) + r'[a-z0-9_]+)"', code))
def compatible(game, standard):
for field in ('contract_version', 'module_api'):
assert game[field] == standard[field], f'{game["name"]}: incompatible {field}'
assert type(game['host_api']) is int and standard['oldest_host_api'] <= game['host_api'] <= standard['host_api'], \
f'{game["name"]}: incompatible host_api'
def check(ziran, lock_flags):
standard = json.loads((ROOT / 'standards/game-v1.json').read_text())
ledger = json.loads((ROOT / 'apps/versions.json').read_text())
@@ -17,10 +33,12 @@ def check(ziran, lock_flags):
player = re.search(r'^GAME_HOST_API :: (\d+)$', (ROOT / 'src/game_contract.zi').read_text(), re.M)
assert player and int(player[1]) == standard['host_api'] == ledger['host_api'], \
'src/game_contract.zi GAME_HOST_API, standards/game-v1.json and apps/versions.json must name the same host interface'
oldest = re.search(r'^GAME_OLDEST_HOST_API :: (\d+)$', (ROOT / 'src/game_contract.zi').read_text(), re.M)
assert oldest and int(oldest[1]) == standard['oldest_host_api'] == ledger['oldest_host_api'], \
'The player, standard and ledger must agree on the oldest supported host interface'
for app in declared_apps(ROOT, ziran, lock_flags):
source, manifest, game = app['source'], app['manifest'], app['descriptor']
for field in ['contract_version', 'module_api', 'host_api']:
assert game[field] == standard[field], f'{game["name"]}: incompatible {field}'
compatible(game, standard)
component = ledger['node_apps'][game['name']]
assert game['id'] == component['id'] and game['host_api'] == component['host_api']
assert game['kind'] == 'game' and 'arcade' in game['harnesses']
@@ -33,9 +51,7 @@ def check(ziran, lock_flags):
assert component['sequence'] > 0
required = set()
for file in manifest.parent.glob('*.zi'):
# Module names in #import lines share the prefix but are not text keys.
code = re.sub(r'^\s*#import\s+"[^"\n]*"', '', file.read_text(), flags=re.M)
required.update(re.findall(r'"(' + re.escape(game['locale_prefix']) + r'[a-z0-9_]+)"', code))
required.update(translation_keys(file.read_text(), game['locale_prefix']))
locales = {}
for file in (source / game['locales']).glob('*.txt'):
text = file.read_text()
+41
View File
@@ -0,0 +1,41 @@
"""Select Kryon namespaces from a game's own source imports."""
import re
from pathlib import Path
_TOKENS = re.compile(r'//[^\n]*|/\*.*?\*/|"(?:\\.|[^"\\])*"|#import\b|\S', re.DOTALL)
def _imports(text):
previous = None
for match in _TOKENS.finditer(text):
token = match.group()
if token.startswith(('//', '/*')):
continue
if previous == '#import' and token.startswith('"'):
yield token[1:-1]
previous = token
def _module_names(root):
return ({path.stem for path in root.glob('*.zi')} |
{path.parent.name for path in root.glob('*/module.zi')})
def kryon_module_paths(source: Path, descriptor: dict, kryon: Path) -> list[str]:
"""Keep qualified UI imports scoped unless game code needs short imports.
Registering the UI directory both plain and named makes Ziran load Kryon
into the application's flat namespace. Only direct imports of UI modules
the application does not own justify that legacy mode.
"""
ui = kryon / 'src/ui'
roots = {source / 'src' if (source / 'src').is_dir() else source,
(source / descriptor['source']).parent}
owned = set().union(*(_module_names(root) for root in roots))
shared = _module_names(ui) - owned
needs_plain = any(name in shared for root in roots for path in root.rglob('*.zi')
for name in _imports(path.read_text()))
paths = [str(ui)] if needs_plain else []
paths += ['kryon=' + str(ui), 'kryon=' + str(kryon / 'src/backend')]
return [flag for path in paths for flag in ('--module-path', path)]
+33
View File
@@ -1,5 +1,8 @@
"""Pack additions once; signed collection links bind shared game resources."""
import hashlib
import io
import json
from PIL import Image
from pathlib import Path
import shutil
@@ -83,3 +86,33 @@ def share_resources(app, apps, resources, staged):
if len(links) > 16:
raise ValueError('Too many shared resource links')
return dict(dependencies=requirements, resources=links)
def pack_opaque_pngs(resources):
"""Drop redundant alpha bytes without changing any decoded pixel.
Prepared copies receive the same encoding before dependency comparison.
Metadata-bearing images stay untouched so their color interpretation is
preserved; transparent images keep their alpha channel.
"""
changed = set()
for path in resources.rglob('*.png'):
with Image.open(path) as image:
if image.mode != 'RGBA' or image.info or image.getextrema()[3] != (255, 255):
continue
packed = io.BytesIO()
image.convert('RGB').save(packed, format='PNG', optimize=True)
if packed.tell() < path.stat().st_size:
path.write_bytes(packed.getbuffer())
changed.add(path)
# Art inventories describe the staged bytes, including lossless encoding.
for manifest in resources.rglob('art.json'):
inventory = json.loads(manifest.read_text())
updated = False
for item in inventory.get('files', []):
asset = manifest.parent / item['path']
if asset in changed and 'sha256' in item:
item['sha256'] = hashlib.sha256(asset.read_bytes()).hexdigest()
updated = True
if updated:
manifest.write_text(json.dumps(inventory, indent=2) + '\n')
+2
View File
@@ -1,5 +1,6 @@
#import "android_device"
#import "android_jni"
Handoff :: #import "entity/account_handoff";
#import "android_picker"
#import "c_string"
@@ -23,6 +24,7 @@ JNI_OnLoad :: (vm: *JniVm, reserved: *void) -> s32 {
unused reserved
version := AndroidJniOnLoad(vm, "xyz/waozi/arcade/ArcadeActivity")
if version != JniVersion { return version }
Handoff.AccountHandoffJniOnLoad(vm)
env: *JniEnv
if vm.functions.GetEnv(vm, *env, JniVersion) != 0 || env == null { return -1 }
class_name: [64]u8
+44 -42
View File
@@ -26,6 +26,8 @@
#import "kryon/app_files"
#import "kryon/app_protocol"
#import "kryon/app_context_host"
#import "kryon/notification_schedule_host"
#import "collection_notification_platform"
#if !#defined(PLATFORM_DESKTOP) && !#defined(ANDROID_BUILD) && !#defined(PLATFORM_WEB) {
CollectionHost :: #import "kryon/app_context";
}
@@ -56,7 +58,7 @@ Codec :: #import "apps/node_codec";
#import "apps/connection"
#import "apps/remote_catalog"
Labels :: #import "apps/words";
#import "shovey/shovey_theme"
#import "profile_palette"
ProfileIcon :: #import "mingcute/mingcute_regular_user_4";
DewIcon :: #import "mingcute/mingcute_filled_drop";
collection_dew_text: [32]u8;
@@ -98,6 +100,24 @@ collection_leave_to_library: bool;
// covers and passed to the games as arcade.updates. -1 unread, 0 off, 1 on,
// 2 not answered yet.
collection_updates: s32 = -1;
collection_notification_node: *AppNode;
collection_notification_requested: bool;
// Called by Apps only after its verified identity/frame checks. Native focus
// alone is insufficient: Profile, library and other games own no opened marker.
CollectionNotificationFocused :: (context: *void, node: *AppNode) -> bool {
return node != null && node == collection_notification_node && !node.collection &&
!entity_visible && AppTreeNode(*collection_host.tree, collection_host.tree.active) == node &&
CollectionNotificationsForeground()
}
CollectionRunFrame :: () -> bool {
runtime := AppHostActiveRuntime(*collection_host)
if runtime == null { return false }
collection_notification_node = runtime.node
defer { collection_notification_node = null }
return AppHostRun(*collection_host, APP_FRAME)
}
// Whether the device's main input is a keyboard and mouse. A native build
// knows its platform; the collection running as a bundle inside Breeze asks
@@ -146,6 +166,16 @@ CollectionRecordsFor :: (id: string) -> *CollectionRecords {
}
CollectionAllows :: (context: *void, node: *AppNode, name: string) -> bool {
if name == KRYON_NOTIFICATION_SCHEDULE {
if node == null || node.collection { return false }
// Ask only when a game actually uses reminders in its native focused
// frame. Loading an older game or opening the library never prompts.
if CollectionNotificationFocused(context, node) && !collection_notification_requested {
collection_notification_requested = true
if !CollectionNotificationsAllowed() { CollectionNotificationsRequest() }
}
return CollectionNotificationsAllowed()
}
return name == "AppRecordHost" || name == "SaveAppRecordHost" ||
name == "AppFriendHost" || name == "AppSharedHost" || name == "AppSharedItemHost" ||
name == "AppInvitationHost" || name == "RefreshAppSharedHost" || name == "SendAppSharedHost" ||
@@ -509,6 +539,7 @@ CollectionOpen :: (bundle: string, digest: string, harness_digest: string,
CollectionStart :: (bundle: string, digest: string, harness_digest: string,
locale: string, packed: bool) -> bool {
platform := AppPlatform.{.allows = CollectionAllows, .call = CollectionCall,
.focused = CollectionNotificationFocused,
.widgets = CollectionWidgets, .save = CollectionSave, .state = CollectionState,
.effect = CollectionEffect, .host_api = GAME_HOST_API,
// Covers show only the art; the download dialog names the size.
@@ -619,6 +650,7 @@ CollectionOpenShoveyBytes :: (bytes: string, metadata: string, data: string) ->
locale := EnvironmentText("LANG")
language := ifx locale.count >= 2 then locale[:2] else "en"
platform := AppPlatform.{.allows = CollectionAllows, .call = CollectionCall,
.focused = CollectionNotificationFocused,
.widgets = CollectionWidgets, .save = CollectionSave, .state = CollectionState,
.effect = CollectionEffect, .host_api = GAME_HOST_API}
collection_ready = AppHostStart(*collection_host, bytes, "arcade.local", "arcade.shovey-player",
@@ -834,7 +866,7 @@ CollectionFrame :: (session: Session, viewport: Rectangle, key: s32, modifiers:
}
WidgetHostBegin(session, CollectionAssetAllowed, CollectionAssetPath)
collection_pictures_missing = false
drawn := AppHostRun(*collection_host, APP_FRAME)
drawn := CollectionRunFrame()
WidgetHostEnd()
if !drawn {
Report("collection frame failed\n")
@@ -856,7 +888,7 @@ CollectionFrame :: (session: Session, viewport: Rectangle, key: s32, modifiers:
collection_host.tree.active.generation, pictures_ready) {
collection_toolbar_visible = false
Box(session, BoxProps.{.key = cast(u64)49400, .bounds = viewport,
.fill = ColorFromPacked(ifx entity_shovey then ShoveyPalette().background else AppCoversPalette().background)})
.fill = ColorFromPacked(ifx entity_shovey then ShoveyHostPalette().background else AppCoversPalette().background)})
unused Button(session, ButtonProps.{.key = cast(u64)49401, .id = 49401,
.bounds = viewport, .invisible = true})
LoadingIndicator(session, LoadingIndicatorProps.{.key = cast(u64)49402,
@@ -865,10 +897,9 @@ CollectionFrame :: (session: Session, viewport: Rectangle, key: s32, modifiers:
}
} else if runtime.node.collection {
collection_loading = .{}
CollectionNodeToolbar(session, viewport)
}
if asking {
unused WidgetPaletteUse(session, ifx entity_shovey then ShoveyPalette() else AppCoversPalette())
unused WidgetPaletteUse(session, ifx entity_shovey then ShoveyHostPalette() else AppCoversPalette())
CollectionUpdatesQuestion(session, viewport)
unused WidgetPaletteRestore(session)
return true
@@ -894,7 +925,7 @@ CollectionFrame :: (session: Session, viewport: Rectangle, key: s32, modifiers:
CollectionToolbar :: (session: Session, viewport: Rectangle) {
if !entity_ready || !collection_toolbar_visible { return }
unused WidgetPaletteUse(session, ifx entity_shovey then ShoveyPalette() else AppCoversPalette())
unused WidgetPaletteUse(session, ifx entity_shovey then ShoveyHostPalette() else AppCoversPalette())
defer { unused WidgetPaletteRestore(session) }
// The account's Dew beside the Profile: a drop and the number, 0 until an
// account is connected; it opens the Profile too.
@@ -941,7 +972,7 @@ CollectionVerifyRelease :: (signature: *u8, public_key: *u8, message: *u8,
CollectionNodeOpen :: (metadata: string, data: string, seed: string,
digest: string, harness: string, locale: string) -> bool {
source: AppRemoteSource
source.oldest_host_api = 1
source.oldest_host_api = GAME_OLDEST_HOST_API
source.host_api = GAME_HOST_API
source.module_api = 2
at := FieldAt(metadata, 0, "node")
@@ -1022,7 +1053,8 @@ CollectionNodeActivate :: () -> bool {
CollectionNodePump :: () {
if collection_node.files == null { return }
AppRemoteCatalogPump(*collection_node)
if collection_node_apply && collection_node.stage == 0 {
// A newer library applies on its own once the background fetch finishes.
if (collection_node_apply || collection_node_choice == APP_CONNECTION_ALLOWED) && collection_node.stage == 0 {
if collection_node.changed && !CollectionNodeActivate() { return }
collection_node_apply = false
collection_node_initial = false
@@ -1041,11 +1073,11 @@ CollectionNodeScreen :: (session: Session, viewport: Rectangle) -> bool {
if collection_node_initial && collection_node.stage != 0 {
Box(session, BoxProps.{.key = cast(u64)49510, .bounds = viewport, .fill = Color.{17, 18, 35, 255}})
Text(session, TextProps.{.key = cast(u64)49511, .text = Labels.AppsLabel(TextUntilNul(collection_node_locale[:]), "loading_library"),
.font = 20, .bounds = Rectangle.{viewport.x + 24.0, viewport.y + viewport.height / 2.0, viewport.width - 48.0, 64.0}})
.font = 20, .bounds = Rectangle.{viewport.x + 24.0, viewport.y + viewport.height / 2.0, viewport.width - 48.0, 64.0}})
if Button(session, ButtonProps.{.key = cast(u64)49512, .id = 49512,
.label = Labels.AppsLabel(TextUntilNul(collection_node_locale[:]), "stay_offline"),
.bounds = Rectangle.{viewport.x + 24.0, viewport.y + viewport.height / 2.0 + 72.0, viewport.width - 48.0, 44.0},
.tone = ButtonTone.ButtonToneNeutral, .emphasis = ButtonEmphasis.ButtonEmphasisSoft}) != 0 {
.label = Labels.AppsLabel(TextUntilNul(collection_node_locale[:]), "stay_offline"),
.bounds = Rectangle.{viewport.x + 24.0, viewport.y + viewport.height / 2.0 + 72.0, viewport.width - 48.0, 44.0},
.tone = ButtonTone.ButtonToneNeutral, .emphasis = ButtonEmphasis.ButtonEmphasisSoft}) != 0 {
unused CollectionNodeChoose(APP_CONNECTION_OFFLINE)
}
return true
@@ -1053,36 +1085,6 @@ CollectionNodeScreen :: (session: Session, viewport: Rectangle) -> bool {
return false
}
CollectionNodeToolbar :: (session: Session, viewport: Rectangle) {
if collection_node.files == null { return }
unused WidgetPaletteUse(session, AppCoversPalette())
defer { unused WidgetPaletteRestore(session) }
Box(session, BoxProps.{.key = cast(u64)49519,
.bounds = Rectangle.{viewport.x, viewport.y, viewport.width, 88.0},
.fill = Color.{17, 18, 35, 255}})
locale := TextUntilNul(collection_node_locale[:])
allowed := collection_node_choice == APP_CONNECTION_ALLOWED
status := ifx !allowed then "offline_library" else ifx collection_node.stage != 0 then "loading_library" else ifx collection_node.failed then "library_unavailable" else "saved_library"
width := ifx viewport.width - 180.0 < 320.0 then viewport.width - 180.0 else 320.0
if Button(session, ButtonProps.{.key = cast(u64)49520, .id = 49520,
.label = Labels.AppsLabel(locale, ifx allowed then "refresh_library" else "connect_node"),
.bounds = Rectangle.{viewport.x + 8.0, viewport.y + 6.0, width, 44.0},
.tone = ButtonTone.ButtonToneNeutral, .emphasis = ButtonEmphasis.ButtonEmphasisSoft}) != 0 {
if !allowed { collection_node_notice = true }
else if collection_node.changed { collection_node_apply = true }
else { collection_node_apply = true; unused AppRemoteCatalogRefresh(*collection_node) }
}
// A separate connection control keeps revocation available after consent.
if Button(session, ButtonProps.{.key = cast(u64)49521, .id = 49521,
.label = Labels.AppsLabel(locale, "node_connection"),
.bounds = Rectangle.{viewport.x + viewport.width - 170.0, viewport.y + 52.0, 158.0, 28.0},
.tone = ButtonTone.ButtonToneNeutral, .emphasis = ButtonEmphasis.ButtonEmphasisSoft}) != 0 {
collection_node_notice = true
}
Text(session, TextProps.{.key = cast(u64)49522, .text = Labels.AppsLabel(locale, status), .font = 12, .wrap = TextWrap.TextWrapAuto,
.bounds = Rectangle.{viewport.x + 16.0, viewport.y + 58.0, viewport.width - 196.0, 26.0}})
}
CollectionNodeClose :: () {
CollectionDownloadsAllow(false)
AppFileFree(collection_package_origin)
+26
View File
@@ -0,0 +1,26 @@
// Native facts only. Portable games never request OS permission themselves.
// Persistent alarms currently have an Android provider; other hosts fail closed.
#if #defined(ANDROID_BUILD) {
#import "kryon/notification_android"
}
CollectionNotificationsAllowed :: () -> bool {
#if #defined(ANDROID_BUILD) {
return AndroidNotificationAllowedHost()
}
return false
}
CollectionNotificationsForeground :: () -> bool {
#if #defined(ANDROID_BUILD) {
return AndroidNotificationWindowFocusedHost()
}
return false
}
CollectionNotificationsRequest :: () {
#if #defined(ANDROID_BUILD) {
// Kryon's native permission flow remembers refusal across launches.
unused AndroidNotificationRequestHost()
}
}
+2 -2
View File
@@ -12,7 +12,7 @@
#import "kryon/button_props"
#import "kryon/button_widget"
#import "platform"
#import "shovey/shovey_theme"
#import "profile_palette"
#import "kryon/widget_palette"
#import "apps/appearance"
#import "kryon/drawing_props"
@@ -85,7 +85,7 @@ EntityBack :: () -> bool {
}
EntityFrame :: (session: Session, viewport: Rectangle, key: s32, modifiers: s32) -> bool {
unused WidgetPaletteUse(session, ifx entity_shovey then ShoveyPalette() else AppCoversPalette())
unused WidgetPaletteUse(session, ifx entity_shovey then ShoveyHostPalette() else AppCoversPalette())
defer { unused WidgetPaletteRestore(session) }
Box(session, BoxProps.{.key = cast(u64)49010, .bounds = viewport,
.fill = StyleTokenColorOr("canvas", Color.{239, 246, 244, 255})})
+5 -1
View File
@@ -3,4 +3,8 @@
// that declares a newer one is refused. scripts/check-games.py fails while it
// differs from the standard and the ledger.
GAME_CONTRACT_VERSION :: 1
GAME_HOST_API :: 41
GAME_OLDEST_HOST_API :: 41
GAME_HOST_API :: 42
// The older direct loader has no verified reminder dispatch. Products use
// CollectionHost; do not advertise its API42 authority from the direct loader.
GAME_DIRECT_HOST_API :: 41
+1 -1
View File
@@ -245,7 +245,7 @@ GameAssetsValid :: () -> bool {
if !id.valid || manifest.data[id.start:id.end] != GameAt(host.index).id ||
!contract.valid || contract.value != GAME_CONTRACT_VERSION ||
!module_api.valid || module_api.value != MODULE_ABI ||
!host_api.valid || host_api.value < 1 || host_api.value > GAME_HOST_API ||
!host_api.valid || host_api.value < 1 || host_api.value > GAME_DIRECT_HOST_API ||
!save_schema.valid || save_schema.value < 1 { return false }
read: bool
write: bool
+13
View File
@@ -0,0 +1,13 @@
GameTheme :: #import "shovey/shovey_theme";
HostPalette :: #import "kryon/widget_palette";
// A separately pinned game owns its colours; the native host owns the
// widget types used to draw them.
ShoveyHostPalette :: () -> HostPalette.WidgetPalette {
game := GameTheme.ShoveyPalette()
return HostPalette.WidgetPalette.{
.background = game.background, .base = game.base, .text = game.text,
.selected = game.selected, .selected_text = game.selected_text,
.border = game.border, .danger = game.danger, .warning = game.warning,
.success = game.success, .material = game.material}
}
+3 -2
View File
@@ -2,7 +2,8 @@
"name": "kryon-node-app",
"contract_version": 1,
"module_api": 2,
"host_api": 41,
"host_api": 42,
"oldest_host_api": 41,
"identity": "Stable signed package ID; moving source must not rename installed games",
"frames": {
"matching": "Fields match by name",
@@ -11,7 +12,7 @@
"input": "Only the supervised game receives its frame and input"
},
"required_host_calls": ["ReadAppHost", "WriteAppHost", "ReadAppUiHost", "AppLocaleHost", "AppRecordHost", "SaveAppRecordHost"],
"optional_features": {"friends": "Explicitly unavailable without a connected account; never report an unsent action as sent"},
"optional_features": {"friends": "Explicitly unavailable without a connected account; never report an unsent action as sent", "notifications": "API42: kryon.notification.schedule uses the verified active game's identity, an explicit native permission grant and native selected-game focus; unsupported or denied returns false. Guests cannot request OS permission or address another game's reminders."},
"resources": {"root": "assets/<game>/", "locales": "assets/<game>/locales/<locale>.txt", "preview": "Required real game preview; no host files or texture handles"},
"records": {"scope": "Game and account", "name_bytes_less_than": 64, "value_bytes_less_than": 65536, "save_schema": "Versioned by the game; upgrades preserve older saves"},
"updates": {"signature": "Existing Ed25519 publisher", "identity": "Preserve package ID and publisher pins", "order": "Increasing version and sequence; immutable payload hashes", "gate": "Check the exact bundle in Arcade and an intended Inbe host, including its VM format, before node publication"}
+8 -4
View File
@@ -77,14 +77,18 @@ class AndroidCatalogTests(unittest.TestCase):
return struct.pack('<I', n)
def text(data):
return number(len(data)) + data
# Structurally valid ZX with a catalog and an extra embedded asset.
for path in (b'assets/arcade/games/test.zx', b'assets/arcade/covers/test.png'):
payload = b'ZX\0\0\x1b\0\0\0' + text(b'') * 2 + number(0) * 4
# Structurally valid ZX with a catalog and an extra embedded asset,
# in both bundle versions the toolchain writes (26 plain, 27 composed).
cases = [(version, path) for version in (26, 27)
for path in (b'assets/arcade/games/test.zx', b'assets/arcade/covers/test.png')]
for version, path in cases:
payload = b'ZX\0\0' + number(version) + text(b'') * 2 + number(0) * 4
payload += number(2) + text(b'assets/apps/catalog.json') + text(b'{}')
payload += text(path) + text(b'payload')
metadata = json.loads(self.assets['arcade.json'])
metadata['sha256'] = hashlib.sha256(payload).hexdigest()
with self.subTest(path=path), self.assertRaisesRegex(AssertionError, 'Game payload or art'):
with self.subTest(version=version, path=path), \
self.assertRaisesRegex(AssertionError, 'Game payload or art'):
verify_assets(self.assets | {'arcade.zx': payload, 'arcade.json': json.dumps(metadata).encode()})
def test_reject_game_art_nested_in_entity(self):
+2 -4
View File
@@ -119,11 +119,9 @@ with tempfile.TemporaryDirectory(prefix='host-', dir=output) as temporary, packa
driver.wait(label='Account', role='text')
driver.press(label='Back', role='button')
driver.key('escape')
driver.wait(label='Node connection', role='button')
driver.press(label='Node connection', role='button')
driver.wait(label='Stay offline', role='button')
driver.press(label='Stay offline', role='button')
driver.wait(label='Shovey', role='button')
assert not driver.find(label='Node connection', role='button'), 'The library has no node controls'
assert not driver.find(label='Refresh library', role='button'), 'The library refreshes by itself'
saved = record.read_bytes()
for name in ('shovey', 'shovey-editor', 'wurm'):
entry = entries[name]
@@ -0,0 +1,7 @@
// Recording OS boundary only; CollectionAllows/Focused/RunFrame stay production.
allowed: bool = true;
foreground: bool;
requests: s32;
CollectionNotificationsAllowed :: () -> bool { return allowed }
CollectionNotificationsForeground :: () -> bool { return foreground }
CollectionNotificationsRequest :: () { requests += 1 }
+185
View File
@@ -0,0 +1,185 @@
#import, file "../src/collection_host.zi";
#import "kryon/Frame"
#import "kryon/tree"
#import "kryon/session"
#import "kryon/geometry"
#import "kryon/widget_host"
#import "kryon/hosted_values"
#import "kryon/app_files"
#import "kryon/app_protocol"
#import "apps/host"
#import "apps/tree"
#import "apps/protocol"
#import "kryon/notification_schedule_host"
#import "std/file"
#import "std/bundle_host"
#import "std/c_string"
#import "std/vec"
#import "std/text_buffer"
#import "game_contract"
#import "entity_host"
Node :: #import "apps/node_types";
using HostValueKind;
Provider :: #import "kryon/notification_schedule";
OS :: #import "collection_notification_platform";
test_session: Session;
Open :: (game: string, protocol: s32, wrong: bool = false, api: s32 = GAME_HOST_API) -> bool {
path: Vec(u8); hash: Vec(u8)
BuilderPrint(*path, "work/notification-api42/%-%.zx", game, protocol)
BuilderPrint(*hash, "work/notification-api42/%-%.sha256", game, protocol)
key := BuilderFinish(path); hash_key := BuilderFinish(hash)
bytes, found := ReadEntireFile(key); digest, hash_found := ReadEntireFile(hash_key)
AppFileFree(key); AppFileFree(hash_key)
if !found || !hash_found { return false }
defer { AppFileFree(bytes); AppFileFree(digest) }
id := ifx game == "wurm" then "xyz.waozi.wurm" else "arcade.shovey"
if wrong { id = "other.game" }
platform := AppPlatform.{.host_api = api, .allows = CollectionAllows,
.call = CollectionCall, .focused = CollectionNotificationFocused}
return AppHostStart(*collection_host, bytes, "fixture.arcade", id, "notification", digest,
"account-a", platform, "", "en", protocol)
}
Draw :: (scenario: s32) -> bool {
runtime := AppHostActiveRuntime(*collection_host)
runtime.app.session = test_session
runtime.app.bounds = Rectangle.{0.0, 0.0, cast(float32)(100 + scenario), 100.0}
runtime.legacy.frame.session = test_session
runtime.legacy.frame.width = 100 + scenario
runtime.legacy.frame.height = 100
runtime.legacy.message.screen = scenario
BeginFrame(test_session, cast(u64)1, runtime.app.bounds)
WidgetHostBegin(test_session, CollectionAssetAllowed)
ran := CollectionRunFrame()
WidgetHostEnd()
return EndFrame(test_session) == FrameStatus.FrameOk && ran && collection_notification_node == null
}
Denied :: (runtime: *AppRuntime) -> bool {
answer: HostValue
unused AppHostNotifications(cast(*void)runtime, HostTextData("notification_schedule"),
HostTextData("DailyNotificationsSupportedHost"), null, 0, *answer)
return answer.kind == cast(s32)HostInteger && answer.integer == 0
}
Boundaries :: () -> bool {
runtime := AppHostActiveRuntime(*collection_host)
if !Denied(runtime) { return false } // out of run
if !AppTreeBegin(*collection_host.tree, collection_host.tree.active) { return false }
runtime.busy = true
runtime.app.mode = APP_FRAME
runtime.legacy.message.action = Node.APP_FRAME
forged: AppRuntime
forged.host = *collection_host; forged.node = runtime.node; forged.busy = true
if !Denied(*forged) { return false }
runtime.controller = true
if !Denied(runtime) { return false }
runtime.controller = false; runtime.retired = true
if !Denied(runtime) { return false }
runtime.retired = false
if runtime.protocol == APPS_NODE_PROTOCOL {
saved := runtime.legacy.id
unused CopyCString("forged.game", runtime.legacy.id[:])
refused := Denied(runtime)
runtime.legacy.id = saved
if !refused { return false }
} else {
saved := runtime.app.expected_id
runtime.app.expected_id = "forged.game"
refused := Denied(runtime)
runtime.app.expected_id = saved
if !refused { return false }
}
runtime.app.mode = APP_BACK; runtime.legacy.message.action = Node.APP_BACK
if !Denied(runtime) { return false }
runtime.app.mode = APP_FRAME; runtime.legacy.message.action = Node.APP_FRAME
active := collection_host.tree.active; collection_host.tree.active = AppHandle.{}
refused := Denied(runtime)
collection_host.tree.active = active
if !refused { return false }
runtime.busy = false
return AppTreeEnd(*collection_host.tree, collection_host.tree.active)
}
#if #defined(ARCADE_API41_GAMES) {
OldGame :: (name: string, id: string) -> bool {
path: Vec(u8); hash: Vec(u8)
BuilderPrint(*path, "build/games/%.zx", name)
BuilderPrint(*hash, "work/notification-api42/%-41.sha256", name)
key := BuilderFinish(path); hash_key := BuilderFinish(hash)
bytes, found := ReadEntireFile(key); digest, hash_found := ReadEntireFile(hash_key)
AppFileFree(key); AppFileFree(hash_key)
if !found || !hash_found { return false }
defer { AppFileFree(bytes); AppFileFree(digest) }
platform := AppPlatform.{.host_api = GAME_HOST_API, .allows = CollectionAllows,
.call = CollectionCall, .focused = CollectionNotificationFocused}
opened := AppHostStart(*collection_host, bytes, "fixture.arcade", id, name, digest,
"account-a", platform, "", "en", APPS_NODE_PROTOCOL)
AppHostStop(*collection_host); AppHostCollect(*collection_host)
return opened
}
}
#program_export
Check :: () -> s32 {
test_session = SessionOpen()
if !SessionValid(test_session) { return 1 }
for protocol: cast(s32)1..2 {
for game: cast(s32)0..1 {
key := ifx game == 0 then "wurm" else "shovey"
OS.allowed = true; OS.foreground = false
if !Open(key, protocol) { return 10 + protocol }
runtime := AppHostActiveRuntime(*collection_host)
Provider.expected_tag = ifx game == 0 then "hosted:xyz.waozi.wurm:wurm.daily_chest" else "hosted:arcade.shovey:shovey.daily-chest"
if !Boundaries() { return 20 + protocol }
collection_notification_requested = false
OS.allowed = false
requests := OS.requests
if !Draw(1) || OS.requests != requests { return 25 + protocol }
OS.foreground = true
if !Draw(1) || !Draw(1) || OS.requests != requests + 1 { return 27 + protocol }
OS.allowed = true; OS.foreground = false
// Real production frame grants permission and forwards typed schedules.
if !Draw(0) { return 30 + protocol }
before := Provider.opened
if !Draw(3) || Provider.opened != before { return 40 + protocol }
OS.foreground = true
if !Draw(2) || Provider.opened != before + 1 { return 50 + protocol }
// Native focus alone, or another selected node, cannot mark opened.
collection_notification_node = runtime.node
other: AppNode
if CollectionNotificationFocused(null, *other) { return 60 + protocol }
entity_visible = true
if CollectionNotificationFocused(null, runtime.node) { return 70 + protocol }
entity_visible = false; collection_notification_node = null
if CollectionNotificationFocused(null, runtime.node) { return 80 + protocol }
no_focus: AppPlatform
collection_host.platform.focused = no_focus.focused
if !Draw(3) || Provider.opened != before + 1 { return 90 + protocol }
collection_host.platform.focused = CollectionNotificationFocused
OS.allowed = false
if !Draw(1) || !Draw(3) || !Draw(4) { return 100 + protocol }
Provider.expected_tag = ifx game == 0 then "hosted:xyz.waozi.wurm:hosted:arcade.shovey:shovey.daily-chest" else "hosted:arcade.shovey:hosted:arcade.shovey:shovey.daily-chest"
if !Draw(5) { return 110 + protocol }
AppHostStop(*collection_host); AppHostCollect(*collection_host)
if protocol == APPS_NODE_PROTOCOL {
if Open(key, protocol, true) { return 120 }
AppHostStop(*collection_host); AppHostCollect(*collection_host)
if Open(key, protocol, false, 41) { return 121 }
AppHostStop(*collection_host); AppHostCollect(*collection_host)
}
}
}
if CollectionAllows(null, null, KRYON_NOTIFICATION_SCHEDULE) { return 122 }
controller: AppNode; controller.collection = true; OS.allowed = true
if CollectionAllows(null, *controller, KRYON_NOTIFICATION_SCHEDULE) { return 123 }
#if #defined(ARCADE_API41_GAMES) {
if !OldGame("chess", "inbe.chess") || !OldGame("shovey", "arcade.shovey") { return 125 }
}
unused SessionClose(test_session)
if Provider.failures != 0 || Provider.daily != 4 || Provider.dated != 4 || Provider.queued != 4 ||
Provider.cancelled != 8 || Provider.opened != 4 { return 124 }
return 0
}
+52
View File
@@ -0,0 +1,52 @@
// A real portable guest; only the native fixture substitutes OS effects.
#import "kryon/notification"
#import "kryon/notification_schedule"
#import "kryon/app_context"
#import "kryon/app_protocol"
#if #defined(APPS_NOTIFICATION_NODE) {
#import "apps/node_types"
#import "apps/node_app"
host_api :: #system_library "host_api";
ReadAppUiHost :: () -> AppUiFrame #foreign host_api;
}
Exercise :: (scenario: s32) -> bool {
tag := "wurm.daily_chest"
#if #defined(APPS_NOTIFICATION_SHOVEY) {
tag = "shovey.daily-chest"
}
props := NotificationProps.{.title = "Chest", .body = "Ready", .tag = tag, .id = 1}
if scenario == 0 || scenario == 1 {
allowed := scenario == 0
dates: [2]s32 = .[20280229, 20300101]
return DailyNotificationsSupported() == allowed &&
ScheduleDailyNotification(props, 19, 0, true, 1793700000000, 127, 20261102) == allowed &&
ScheduleNotificationAt(props, 2028, 2, 29, 19) == allowed &&
ScheduleNotificationDates(props, dates[:], 19) == allowed
}
if scenario == 2 || scenario == 3 { return NotificationAppOpened(tag, 1) == (scenario == 2) }
if scenario == 4 { return CancelDailyNotification(tag, 1) }
return scenario == 5 && CancelDailyNotification("hosted:arcade.shovey:shovey.daily-chest", 1)
}
#if #defined(APPS_NOTIFICATION_NODE) {
Draw :: (message: AppMessage) -> bool {
unused ReadAppUiHost()
return Exercise(message.screen)
}
}
#program_export
Main :: () -> s32 {
#if #defined(APPS_NOTIFICATION_NODE) {
return RunNodeApp(Draw)
} else {
if AppMode() == APP_IDENTIFY {
AppIdentity("notification")
AppDescribe("Arcade notification fixture", "")
return APP_PROTOCOL
}
if AppMode() == APP_FRAME { return ifx Exercise(cast(s32)AppBounds().width - 100) then 0 else -1 }
return 0
}
}
+130
View File
@@ -0,0 +1,130 @@
#!/usr/bin/env python3
"""Portable guests through Arcade's production Collection notification boundary."""
import hashlib
import argparse
import json
import os
from pathlib import Path
import subprocess
ROOT = Path(__file__).resolve().parents[1]
WORK = ROOT / 'work/notification-api42'
ZIRAN = ROOT / 'scripts/ziran.sh'
LOCK = ['--locked']
def run(*args):
subprocess.run(list(map(str, args)), cwd=ROOT, check=True)
def package(name):
return Path(subprocess.check_output([ZIRAN, 'pkg', 'path', name, *LOCK],
cwd=ROOT, text=True).strip())
def main():
parser = argparse.ArgumentParser(description=__doc__)
parser.add_argument('--api41-games', action='store_true', help='Also identify the built API41 Chess and Shovey games')
args = parser.parse_args()
for key in ('DISPLAY', 'WAYLAND_DISPLAY', 'XAUTHORITY', 'DBUS_SESSION_BUS_ADDRESS',
'SESSION_MANAGER', 'DESKTOP_SESSION', 'XDG_SESSION_ID', 'XDG_SESSION_TYPE'):
os.environ.pop(key, None)
os.environ.update(YUE_DESKTOP_RECOVERY='0', SDL_AUDIODRIVER='dummy', ZIRAN_JOBS='1')
run('git', 'check-ignore', '-q', 'work/')
WORK.mkdir(parents=True, exist_ok=True)
if args.api41_games:
for name in ('chess', 'shovey'):
path = ROOT / 'build/games' / (name + '.zx')
(WORK / (name + '-41.sha256')).write_text(hashlib.sha256(path.read_bytes()).hexdigest())
apps = package('apps')
toolchain = package('ziran')
compiler = toolchain / 'build/bin/zi2c'
if not compiler.is_file():
compiler = ROOT / 'build/toolchain/bin/zi2c'
zx = compiler.with_name('zi2zx')
# Reuse the locked package's maintained recording scheduler provider.
# No package source or cache is modified; only OS effects are substituted.
source = ROOT / 'tests/collection_notifications_guest.zi'
for game, identifier in [('wurm', 'xyz.waozi.wurm'), ('shovey', 'arcade.shovey')]:
assets = WORK / game / 'assets/notification'
assets.mkdir(parents=True, exist_ok=True)
(assets / 'catalog.json').write_text(json.dumps(dict(id=identifier, name='notification',
contract_version=1, module_api=2, host_api=42, save_schema=1)))
for protocol in (1, 2):
defines = ['--define', 'KRYON_HOSTED_UI']
if protocol == 2:
defines += ['--define', 'APPS_NOTIFICATION_NODE']
if game == 'shovey':
defines += ['--define', 'APPS_NOTIFICATION_SHOVEY']
common = ['--project', *LOCK, '--root', ROOT / 'tests',
'--entry', 'collection_notifications_guest:Main', *defines]
path = WORK / f'{game}-{protocol}.zx'
run(ZIRAN, 'bundle', *common, '--asset-dir', 'assets=' + str(assets.parent),
'-o', path, source)
(WORK / f'{game}-{protocol}.sha256').write_text(hashlib.sha256(path.read_bytes()).hexdigest())
ir = WORK / f'ir-{game}-{protocol}'
run(ZIRAN, 'ir', *common, '-o', ir, source)
saved = WORK / f'{game}-{protocol}-saved.zx'
run(zx, 'bundle', '--root', ir, '--module-path', ir,
'--entry', 'collection_notifications_guest:Main', '--asset-dir', 'assets=' + str(assets.parent),
'-o', saved, ir / 'collection_notifications_guest.zir')
if path.read_bytes() != saved.read_bytes():
raise RuntimeError(f'Source/saved guest differs: {game} protocol {protocol}')
lines = (ROOT / 'build/.ziran/module-map.tsv').read_text().splitlines()
replacements = {'notification_schedule': apps / 'tests/notification_provider.zi',
'collection_notification_platform': ROOT / 'tests/collection_notification_native_fixture.zi'}
kryon_id = json.loads((ROOT / 'ziran.lock').read_text())['root']['dependencies']['kryon']
replaced = dict.fromkeys(replacements, 0)
for index, line in enumerate(lines):
fields = line.split('\t')
if len(fields) == 4 and fields[0] == 'M' and fields[2] in replacements:
# Replace only Arcade's own OS facts and its resolved Kryon provider.
if fields[2] == 'collection_notification_platform' and fields[1] != 'root':
continue
if fields[2] == 'notification_schedule' and fields[1] != kryon_id:
continue
fields[3] = str(replacements[fields[2]])
replaced[fields[2]] += 1
lines[index] = '\t'.join(fields)
if any(count != 1 for count in replaced.values()):
raise RuntimeError(f'Expected unique OS providers: {replaced}')
mapping = WORK / 'module-map.tsv'
mapping.write_text('\n'.join(lines) + '\n')
os.environ['ZIRAN_PACKAGE_MAP'] = str(mapping)
output = WORK / 'c'
run(compiler, '--prune-stale', '--module-path', toolchain / 'std', '--no-main',
'--define', 'PLATFORM_DESKTOP', *(['--define', 'ARCADE_API41_GAMES'] if args.api41_games else []),
'--entry', 'collection_notifications_behavior:Check',
'--root', ROOT / 'tests', '-o', output, ROOT / 'tests/collection_notifications_behavior.zi')
(output / 'entry.c').write_text('#include <stdio.h>\n#include "collection_notifications_behavior.h"\n'
'int main(void) { int r=Check(); if(r) fprintf(stderr,"Arcade notification test %d failed\\n",r); return r; }\n')
runtime = ROOT / 'build/ziran/libziran.a'
run('make', '-j1', 'build/ziran/libziran.a')
oqs_source = package('liboqs')
oqs = ROOT / 'build' / ('entity-oqs-' + oqs_source.name)
if not (oqs / 'lib/liboqs.a').is_file():
run('cmake', '-S', oqs_source, '-B', oqs, '-DCMAKE_BUILD_TYPE=MinSizeRel',
'-DBUILD_SHARED_LIBS=OFF', '-DOQS_BUILD_ONLY_LIB=ON', '-DOQS_USE_OPENSSL=OFF',
'-DOQS_DIST_BUILD=OFF', '-DOQS_OPT_TARGET=generic',
'-DOQS_MINIMAL_BUILD=SIG_ml_dsa_44;KEM_ml_kem_768')
run('cmake', '--build', oqs, '--target', 'oqs', '--', '-j1')
libraries = subprocess.check_output(['pkg-config', '--libs', 'sdl2', 'cairo', 'freetype2',
'fontconfig', 'pangocairo', 'gtk+-3.0'], text=True).split()
monocypher = package('monocypher')
includes = [arg for p in [output, *sorted(output.rglob('*'))] if p.is_dir()
for arg in ('-iquote', str(p))]
temporary = WORK / 'test.new'
run(os.environ.get('CC', 'cc'), '-std=c11', '-O1', '-ffunction-sections', '-fdata-sections',
'-I' + str(toolchain / 'include'), *includes, *sorted(output.rglob('*.c')),
runtime, '-I' + str(monocypher / 'src'), monocypher / 'src/monocypher.c',
monocypher / 'src/optional/monocypher-ed25519.c', oqs / 'lib/liboqs.a',
'-Wl,--gc-sections', *libraries, '-lX11', '-l:libcurl.so.4', '-lz', '-lm', '-lpthread', '-o', temporary)
temporary.replace(WORK / 'test')
run(WORK / 'test')
print('Arcade Collection API42: source/saved node/2 + app/1 guests, native schedules, verified identity, permission, focus and tag isolation passed')
if args.api41_games:
print('Arcade API42 host also identified the built API41 Chess and Shovey games')
if __name__ == '__main__':
main()
+1 -1
View File
@@ -60,7 +60,7 @@ def main():
"-DCMAKE_BUILD_TYPE=MinSizeRel", "-DBUILD_SHARED_LIBS=OFF",
"-DOQS_BUILD_ONLY_LIB=ON", "-DOQS_USE_OPENSSL=OFF",
"-DOQS_DIST_BUILD=OFF", "-DOQS_OPT_TARGET=generic",
"-DOQS_MINIMAL_BUILD=SIG_ml_dsa_44")
"-DOQS_MINIMAL_BUILD=SIG_ml_dsa_44;KEM_ml_kem_768")
run("cmake", "--build", str(oqs), "--target", "oqs", "--", "-j1")
libraries = subprocess.check_output(
["pkg-config", "--libs", "sdl2", "cairo", "freetype2", "fontconfig",
+178 -10
View File
@@ -3,11 +3,14 @@ import hashlib
import importlib.util
import io
import json
import os
from pathlib import Path
import shlex
import shutil
import subprocess
import tempfile
import unittest
from unittest.mock import patch
import sys
import tarfile
from PIL import Image
@@ -28,7 +31,7 @@ spec.loader.exec_module(published_games)
def bundle_asset_paths(path):
"""Read the actual bundle index without loading its images or executing it."""
with published_games.Reader(path) as reader:
if reader.take(8) != b"ZX\0\0\x1b\0\0\0":
if reader.take(8) not in (b"ZX\0\0\x1a\0\0\0", b"ZX\0\0\x1b\0\0\0"):
raise ValueError("Unsupported game bundle")
reader.text()
reader.text()
@@ -66,9 +69,15 @@ class CollectionTests(unittest.TestCase):
self.assertTrue(path in assets, "Choano runtime image missing from its bundle: " + path)
def setUp(self):
self.directory = tempfile.TemporaryDirectory(prefix="collection-", dir=ROOT / "build")
subprocess.run(["git", "check-ignore", "-q", "work/"], cwd=ROOT, check=True)
(ROOT / "work").mkdir(exist_ok=True)
self.directory = tempfile.TemporaryDirectory(prefix="collection-", dir=ROOT / "work")
self.addCleanup(self.directory.cleanup)
self.root = Path(self.directory.name)
self.lock_flags = ("--locked",)
if (ROOT / "ziran.local.toml").is_file():
(self.root / "ziran.local.toml").touch()
self.lock_flags = ()
(self.root / "apps").mkdir()
for name in ("games.json", "apps.json", "apps/versions.json"):
shutil.copyfile(ROOT / name, self.root / name)
@@ -86,6 +95,9 @@ class CollectionTests(unittest.TestCase):
(self.root / "assets/arcade").mkdir(parents=True)
shutil.copyfile(ROOT / "assets/arcade/sidebar.shape", self.root / "assets/arcade/sidebar.shape")
shutil.copytree(ROOT / "assets/arcade/library", self.root / "assets/arcade/library")
(self.root / "src").mkdir()
for source in (ROOT / "src").glob("*_collection.zi"):
shutil.copyfile(source, self.root / "src" / source.name)
# Only a native VM identity gate can trust a controller. This fixture
# tests packing and its exact-content requirement, not that handshake.
self.controller = self.root / "controller.zx"
@@ -96,8 +108,135 @@ class CollectionTests(unittest.TestCase):
def stage(self):
return builder.stage(self.root, self.controller, self.controller_digest, self.output)[0]
def staged_bytes(self):
return {str(path.relative_to(self.output)): builder.digest(path)
for path in self.output.rglob("*") if path.is_file()}
def small_payloads(self):
# Real on-disk input sizes, bounded independently of production limits.
for path in (self.root / "build/games").glob("*.zx"):
path.write_bytes(b"game fixture".ljust(32 * 1024, b"\0"))
for path in (self.root / "assets/arcade/library").iterdir():
if path.suffix in (".png", ".jpg"):
path.write_bytes(b"art fixture".ljust(128, b"\0"))
def test_separately_loaded_games_can_exceed_one_root_limit_together(self):
# The registered games exceed 64 MiB together; each game and the
# Shovey standalone pair still fit. Never alter the real build outputs.
for path in (self.root / "build/games").glob("*.zx"):
with path.open("r+b") as data:
data.truncate(max(path.stat().st_size, 16 * 1024 * 1024))
catalog = self.stage()
self.assertGreater(sum(child["bytes"] for child in catalog["children"]), 64 * 1024 * 1024)
small, games, art = (self.root / name for name in ("small", "downloads", "art"))
builder.stage_downloads(catalog, self.output, small, games, art)
for child in catalog["children"]:
packed = games / (child["sha256"] + ".zx")
self.assertEqual(builder.digest(packed), child["sha256"])
self.assertEqual(packed.stat().st_size, child["bytes"])
self.assertLessEqual(packed.stat().st_size, 64 * 1024 * 1024)
def test_oversized_single_payload_preserves_previous_stage(self):
self.stage()
previous = self.staged_bytes()
largest = max(path.stat().st_size for path in (self.root / "build/games").glob("*.zx"))
with patch.object(builder, "MAX_PAYLOAD_BYTES", largest - 1):
with self.assertRaisesRegex(ValueError, "Game .* exceeds.*payload limit"):
self.stage()
self.assertEqual(self.staged_bytes(), previous)
with patch.object(builder, "MAX_PAYLOAD_BYTES", self.controller.stat().st_size - 1):
with self.assertRaisesRegex(ValueError, "Apps controller exceeds.*payload limit"):
self.stage()
self.assertEqual(self.staged_bytes(), previous)
def test_oversized_standalone_group_preserves_previous_stage(self):
self.stage()
previous = self.staged_bytes()
self.small_payloads()
# Each game is 32 KiB; the offline Shovey pair exceeds 48 KiB before
# even counting its controller, catalog and art. Other roots fit.
with patch.object(builder, "MAX_PAYLOAD_BYTES", 48 * 1024):
with self.assertRaisesRegex(ValueError, "Standalone shovey exceeds.*payload limit"):
self.stage()
self.assertEqual(self.staged_bytes(), previous)
def test_oversized_art_and_catalog_preserve_previous_stage(self):
self.stage()
previous = self.staged_bytes()
self.small_payloads()
for path in (self.root / "build/games").glob("*.zx"):
path.write_bytes(b"game")
# Art is one separately loaded root, even though it has many files.
pictures = [path for path in (self.root / "assets/arcade/library").iterdir()
if path.suffix in (".png", ".jpg")]
for path in pictures:
path.write_bytes(b"x" * 8192)
with patch.object(builder, "MAX_PAYLOAD_BYTES", 48 * 1024):
with self.assertRaisesRegex(ValueError, "Library art exceeds.*payload limit"):
self.stage()
self.assertEqual(self.staged_bytes(), previous)
for path in pictures:
path.write_bytes(b"art")
catalog_size = (self.output / "assets/apps/catalog.json").stat().st_size
with patch.object(builder, "MAX_PAYLOAD_BYTES", catalog_size - 1):
with self.assertRaisesRegex(ValueError, "Arcade catalog exceeds.*payload limit"):
self.stage()
self.assertEqual(self.staged_bytes(), previous)
def test_compiled_limit_includes_zx_overhead_and_preserves_previous_bundle(self):
assets = self.root / "bundle-assets"
assets.mkdir()
(assets / "fixture").write_bytes(b"asset fixture")
target = self.root / "art.zx"
command = [os.environ.get("ZIRAN", str(ROOT / "scripts/ziran.sh")),
"bundle", "--project", *self.lock_flags]
def compile_art():
builder.bundle(command, ROOT, "art.zi", "art:Main", assets, target, None)
compile_art()
previous = target.read_bytes()
self.assertGreater(len(previous), (assets / "fixture").stat().st_size)
with patch.object(builder, "MAX_PAYLOAD_BYTES", len(previous)):
compile_art()
self.assertEqual(target.read_bytes(), previous)
with patch.object(builder, "MAX_PAYLOAD_BYTES", len(previous) - 1):
with self.assertRaisesRegex(ValueError, "art.zx exceeds.*payload limit"):
compile_art()
self.assertEqual(target.read_bytes(), previous)
def test_staging_uses_locked_packages_unless_local_overrides_exist(self):
packages = builder.declared_packages(self.root, lock_flags=self.lock_flags)
artwork = json.loads((self.root / "games.json").read_text()).get("artwork", {})
sources = {package["name"]: package["source"] for package in packages[1:]}
for package in packages[1:]:
if package["name"] in artwork:
sources[artwork[package["name"]]] = package["apps"][0]["art_source"]
log = self.root / "resolver-args"
# Capture real subprocess arguments while resolving the same selected
# source directories, including the deliberately unlocked local case.
lines = ["#!/bin/sh", f"printf '%s\\n' \"$*\" >> {shlex.quote(str(log))}",
'case "$3" in']
lines += [f"{shlex.quote(name)}) printf '%s\\n' {shlex.quote(str(path))} ;;"
for name, path in sources.items()]
lines += ["*) exit 1 ;;", "esac"]
(self.root / "scripts/ziran.sh").write_text("\n".join(lines) + "\n")
local = self.root / "ziran.local.toml"
for override in (False, True):
with self.subTest(local_override=override):
if override:
local.touch()
else:
local.unlink(missing_ok=True)
log.unlink(missing_ok=True)
self.stage()
calls = [line.split() for line in log.read_text().splitlines()]
self.assertEqual({call[2] for call in calls}, set(sources))
for call in calls:
self.assertEqual(call, ["pkg", "path", call[2]] + ([] if override else ["--locked"]))
def assert_children_match_declarations(self, catalog, packages, payload_root):
declarations = builder.declared_packages(self.root)
declarations = builder.declared_packages(self.root, lock_flags=self.lock_flags)
ledger = json.loads((self.root / "apps/versions.json").read_text())["node_apps"]
expected_children = []
for app in (app for package in declarations for app in package["apps"] if app["enabled"]):
@@ -149,6 +288,8 @@ class CollectionTests(unittest.TestCase):
(library / "sources.json").write_text(json.dumps(sources))
def stage_four_leaf_wurm_fixture(self):
ledger_path = self.root / "apps/versions.json"
ledger = json.loads(ledger_path.read_text())
registration = self.root / 'games.json'
value = json.loads(registration.read_text())
value.pop('artwork', None)
@@ -164,7 +305,8 @@ class CollectionTests(unittest.TestCase):
(source / "catalog.json").write_text(json.dumps({
"id": "xyz.waozi.wurm", "name": "wurm", "title": "Apfelwurm",
"kind": "game", "contract_version": 1, "module_api": 2, "host_api": 41,
"kind": "game", "contract_version": 1, "module_api": 2,
"host_api": ledger["node_apps"]["wurm"]["host_api"],
"harnesses": ["arcade"], "preview": "assets/wurm-preview.png",
}))
(source / "editor/catalog.json").write_text(json.dumps({
@@ -201,8 +343,6 @@ class CollectionTests(unittest.TestCase):
for name, key in (("wurm", "preview"), ("wurm", "portrait"),
("wurm-editor", "preview"), ("wurm-editor", "portrait")):
self.add_library_copy(name, key, images[f"{name}-{key}"])
ledger_path = self.root / "apps/versions.json"
ledger = json.loads(ledger_path.read_text())
ledger["node_apps"]["wurm-editor"] = {
"id": "xyz.waozi.wurm-editor", "title": "Apfelwurm Editor", "version": "0.1.0",
"sequence": 1, "host_api": 41,
@@ -240,7 +380,7 @@ class CollectionTests(unittest.TestCase):
self.assertEqual(wurm_package["children"], ["xyz.waozi.wurm", "xyz.waozi.wurm-editor"])
children = {child["id"]: child for child in catalog["children"]}
self.assertEqual(children["xyz.waozi.choano"]["title"], "Choano")
self.assertEqual(children["xyz.waozi.choano"]["version"], "0.1.3")
self.assertEqual(children["xyz.waozi.choano"]["version"], pinned_ledger["choano"]["version"])
self.assertEqual(children["xyz.waozi.choano"]["expected_id"], "choano")
self.assertEqual(children["xyz.waozi.wurm"]["version"], wurm_version)
self.assertEqual(children["xyz.waozi.wurm-editor"]["version"], "0.1.0")
@@ -265,16 +405,44 @@ class CollectionTests(unittest.TestCase):
self.stage()
def test_artwork_input_changes_no_game_payload_or_version(self):
packages = builder.declared_packages(self.root)
packages = builder.declared_packages(self.root, lock_flags=self.lock_flags)
# Released code/art aliases may resolve to the same package revision.
# Give the artwork its own fixture source so this still exercises an
# independent override, retaining the exact reviewed artwork bytes.
art_source = self.root / 'fixture-art'
wurm = next(package for package in packages if package['name'] == 'wurm')
for app in wurm['apps']:
paths = [app['descriptor']['preview']]
paths += [value for key, value in (app['cover'] or {}).items()
if key in ('portrait', 'landscape', 'logo')]
for relative in paths:
destination = art_source / relative
destination.parent.mkdir(parents=True, exist_ok=True)
shutil.copyfile(app['art_source'] / relative, destination)
alias = json.loads((self.root / 'games.json').read_text())['artwork']['wurm']
(self.root / 'scripts/ziran.sh').write_text(
'#!/bin/sh\n'
f'if [ "$1" = pkg ] && [ "$2" = path ] && [ "$3" = {shlex.quote(alias)} ]; then\n'
f' printf \'%s\\n\' {shlex.quote(str(art_source))}\n'
' exit 0\n'
'fi\n'
f'cd {shlex.quote(str(ROOT))} && exec ./scripts/ziran.sh "$@"\n')
packages = builder.declared_packages(self.root, lock_flags=self.lock_flags)
game = next(app for package in packages for app in package['apps']
if app['descriptor']['name'] == 'wurm-editor')
self.assertNotEqual(game['source'], game['art_source'])
self.assertEqual(hashlib.sha256((game['art_source'] / game['cover']['portrait']).read_bytes()).hexdigest(),
'07ff2ff0142c262cdcba3643bbc4d7d3d71643b7f9f4e678a910fee2bfd3eba1')
ledger_path = self.root / 'apps/versions.json'
ledger = ledger_path.read_bytes()
version = json.loads(ledger)['node_apps']['wurm-editor']['version']
game_digest = builder.digest(self.root / 'build/games/wurm-editor.zx')
catalog = self.stage()
child = next(item for item in catalog['children'] if item['expected_id'] == 'wurm-editor')
self.assertEqual(child['version'], '0.1.0')
self.assertEqual(child['sha256'], builder.digest(self.root / 'build/games/wurm-editor.zx'))
self.assertEqual(child['version'], version)
self.assertEqual(child['sha256'], game_digest)
self.assertEqual(builder.digest(self.root / 'build/games/wurm-editor.zx'), game_digest)
self.assertEqual(ledger_path.read_bytes(), ledger)
def test_artwork_override_must_name_a_registered_game(self):
path = self.root / 'games.json'
+53 -25
View File
@@ -19,14 +19,12 @@ LEVEL_UPDATES = 'Download new levels when they come out?'
def answer_library_question(driver):
"""Consent to the loopback library, keeping bundled game levels."""
deadline = time.monotonic() + 60
while time.monotonic() < deadline:
if driver.find(label='Connect', role='button', visible=True):
driver.press(label='Connect', role='button')
break
if driver.find(label='Shovey', role='button', visible=True):
break
driver.wait_idle(frames=3)
question = 'Allow fetching content and automatic app updates?'
driver.wait(label=question, role='text')
driver.wait(label='The app library, previews and the apps you’ve downloaded stay up to date automatically.', role='text')
driver.wait(label='Stay offline', role='button')
driver.press(label='Allow', role='button')
driver.wait_gone(label=question, role='text')
driver.wait(label='Shovey', role='button', timeout=60)
if driver.find(label=LEVEL_UPDATES, role='text'):
driver.press(label='Not now', role='button')
@@ -98,7 +96,7 @@ def main():
def size_text(size):
return f"{(size * 10 + 500000) // 1000000 / 10:.1f} MB"
sizes = {name: size_text(entry['bytes']) for name, entry in by_name.items()}
output = root / "build/collection-ui-test"
output = root / "work/collection-ui-test"
# The Classic heading counts its levels, which Shovey's level file lists.
shovey = Path(subprocess.check_output([str(root / "scripts/ziran.sh"), "pkg", "path", "shovey"], text=True).strip())
classic = len(json.loads((shovey / "levels/approved.json").read_text())["levels"])
@@ -114,12 +112,20 @@ def main():
child = subprocess.Popen([str(args.binary.resolve()), *arguments], cwd=root,
env=os.environ | driver.environment() |
{"ARCADE_DATA": str(profile), "ENTITY_DATA": str(profile / "entity"),
"XDG_DATA_HOME": str(profile / "share"),
"XDG_CONFIG_HOME": str(profile / "config"),
"XDG_CACHE_HOME": str(profile / "cache"),
"LANG": "en_US.UTF-8", "ARCADE_PACKAGE_ORIGIN": origin},
stdout=log, stderr=subprocess.STDOUT)
driver.attach(child, log_path)
try:
driver.tree()
yield child
except Exception:
driver.tree()
(output / (name + '-failure-tree.json')).write_text(json.dumps(driver.last, indent=2) + '\n')
capture(child, name + '-failure')
raise
finally:
if child.poll() is None:
child.terminate()
@@ -155,13 +161,14 @@ def main():
assert wurm_card['y'] == classic_card['y'], 'A phone row holds all three covers'
assert 100 <= classic_card['width'] < 200, 'Phone covers must be small cards'
else:
assert classic_card['width'] >= 200 and classic_card['height'] >= 350
# Short landscape windows use wide artwork above the title.
assert classic_card['width'] >= 200 and classic_card['height'] >= 156
assert not driver.find(label='Play', role='button')
assert not driver.find(label='Open', role='button')
for label in ('Shovey', 'Shovey Editor', 'Apfelwurm'):
assert not driver.find(label=label, role='text'), 'Title artwork must not repeat its name underneath'
assert driver.find(label=label, role='text'), 'Every library cover shows its declared title'
driver.wait(label='Apfelwurm', role='button', visible=False)
smallest = (100, 140) if phone else (180, 200)
smallest = (100, 140) if phone else (180, 120)
covers = [node for node in driver.find(role='image', visible=True)
if node['width'] >= smallest[0] and node['height'] >= smallest[1]]
assert len(covers) >= 2, "Apps must use large title-screen artwork"
@@ -219,7 +226,7 @@ def main():
return value[:start], state[:32]
with application(profile, "grid") as child:
driver.wait(label="Shovey", role="button")
# A fresh profile asks for consent before it shows the library.
answer_library_question(driver)
window = subprocess.check_output(['xdotool', 'search', '--onlyvisible', '--pid', str(child.pid)], text=True).splitlines()[0]
subprocess.run(['xdotool', 'windowsize', window, '480', '820'], check=True)
@@ -233,8 +240,12 @@ def main():
driver.wait(label='Account', role='text')
capture(child, 'arcade-profile')
driver.press(label='Leaderboard', role='button')
driver.wait(label='Leaderboard', role='text')
driver.wait(label='No leaderboard data yet.', role='text')
driver.wait_idle(frames=3)
# Entity uses the native host's navigation. With no installed
# boards its page contains no duplicate heading or empty rows.
assert not driver.find(role='scroll', visible=True), 'An undownloaded game has a board'
assert not driver.find(label='Account', role='text', visible=True)
driver.wait(label='Back', role='button')
capture(child, 'leaderboard-empty')
driver.press(label='Back', role='button')
driver.wait(label='Account', role='text')
@@ -249,9 +260,12 @@ def main():
primary_download()
driver.wait(label=f"Level 1 / {classic}")
answer_level_updates(driver)
driver.wait(label="How do you want to move?", role="text")
driver.press(label="Swipe and tap")
driver.wait_gone(label="How do you want to move?", role="text")
# Desktop input already chooses keyboard controls; touch hosts
# still ask before the first level.
if driver.find(label="How do you want to move?", role="text"):
driver.press(label="Swipe and tap")
driver.wait_gone(label="How do you want to move?", role="text")
driver.wait(label='Restart', role='button')
assert not driver.find(label="Play", role="button"), "Arcade must skip the second title screen"
assert len(driver.find(label="Back", role="button", visible=True)) == 1
driver.press(label="Levels", role="button")
@@ -277,17 +291,22 @@ def main():
driver.wait(label="Shovey Editor", role="button")
driver.press(label='Profile', role='button')
driver.press(label='Leaderboard', role='button')
driver.wait(label='Shovey', role='button')
# A single installed board needs no app selector. Its metric and
# local row still appear, and disappear when that game is removed.
driver.wait(label='Levels solved', role='text')
driver.wait(label='local', role='text')
assert not driver.find(label='Apfelwurm', role='button'), 'An undownloaded game has a board'
assert not driver.find(label='Shovey Editor', role='button'), 'An unranked editor has a board'
capture(child, 'leaderboard-installed')
state = profile / 'resources/state/arcade.shovey.json'
state.parent.mkdir(parents=True, exist_ok=True)
state.write_text('{"v":1,"installed":0,"favorite":0}')
driver.wait(label='No leaderboard data yet.', role='text')
driver.wait_gone(label='Levels solved', role='text')
assert not driver.find(role='scroll', visible=True), 'An uninstalled board kept its rows'
assert not driver.find(label='Shovey', role='button'), 'A retained score kept an uninstalled board visible'
state.write_text('{"v":1,"installed":1,"favorite":0}')
driver.wait(label='Shovey', role='button')
driver.wait(label='Levels solved', role='text')
driver.wait(label='local', role='text')
driver.press(label='Back', role='button')
driver.wait(label='Account', role='text')
driver.press(label='Back', role='button')
@@ -321,8 +340,10 @@ def main():
# The hosted player opens its title before its first steering choice.
driver.wait(label='Play', role='button', timeout=60)
driver.press(label='Play', role='button')
driver.wait(label='How do you want to move?', role='text')
driver.press(label='Swipe', role='button')
wait(lambda: driver.find(label='How do you want to move?', role='text') or
driver.find(label='Pause', role='button'), 'Apfelwurm did not open play or its controls choice')
if driver.find(label='How do you want to move?', role='text'):
driver.press(label='Swipe', role='button')
driver.wait(label='Pause', role='button')
capture(child, 'wurm-playing')
driver.press(label='Pause', role='button')
@@ -332,7 +353,11 @@ def main():
capture(child, 'wurm-title')
driver.key('escape')
driver.wait(label='Shovey', role='button')
for entry in json.loads((root / 'build/arcade.json').read_text())['children']:
exercised = [by_name[name] for name in ('shovey', 'shovey-editor', 'wurm')]
expected_downloads = {entry['sha256'] for entry in exercised}
actual_downloads = {path.stem for path in (profile / 'resources/downloads').glob('*.zx') if path.stem in games}
assert actual_downloads == expected_downloads, 'Only the games opened with consent may download'
for entry in exercised:
path = profile / 'resources/downloads' / (entry['sha256'] + '.zx')
assert hashlib.sha256(path.read_bytes()).hexdigest() == entry['sha256']
requested = list(server['requests'])
@@ -340,7 +365,10 @@ def main():
with application(profile, "restore", "--app", "arcade.shovey"):
driver.wait(label=f"Level 1 / {classic}")
assert progress(record.read_bytes()) == progress(saved), "Classic progress changed on restart"
assert server['requests'] == requested, 'A cached game must reopen offline without downloading'
# Allowed automatic library refresh may retry its metadata while
# offline. Cached game/art bytes must never be requested again.
cached_payloads = games | {json.loads((root / 'build/arcade.json').read_text())['art']['sha256']}
assert not cached_payloads & set(server['requests'][len(requested):]), 'A cached game must reopen offline without downloading'
assert chess.read_bytes() == b"existing private Chess save"
assert not (profile / "inbe.db").exists()
refused = subprocess.run([str(args.binary.resolve()), "--app", "chess"], env=os.environ | {"ARCADE_DATA": str(profile)}, capture_output=True, timeout=10)
+99
View File
@@ -0,0 +1,99 @@
"""Standalone Shovey's editor keeps custom levels as the account's entity
records: levels in the editor's old records are copied over once and stay
in place, new levels are saved as records, and a restart lists each one
once. Runs privately with a throwaway profile and no account."""
import argparse
import contextlib
import json
import os
from pathlib import Path
import subprocess
import sys
def board():
cells = []
for y in range(20):
for x in range(12):
cells.append(12 if x in (0, 11) or y in (0, 19) else 0)
cells[4 * 12 + 6], cells[15 * 12 + 6] = 10, 7
return ''.join(f'{value:02x}' for value in cells)
def main():
parser = argparse.ArgumentParser(description=__doc__)
parser.add_argument('--binary', type=Path, required=True)
parser.add_argument('--inbe-source', type=Path, required=True)
args = parser.parse_args()
assert int(os.environ['DISPLAY'].split(':')[-1].split('.')[0]) >= 400
assert os.environ['YUE_DESKTOP_RECOVERY'] == '0'
root = Path(__file__).resolve().parents[1]
output = root / 'build/editor-records-ui-test'
output.mkdir(parents=True, exist_ok=True)
sys.path.insert(0, str(args.inbe_source / 'tests'))
from ui_driver import UiDriver
driver = UiDriver(output / 'driver')
profile = output / 'profile'
subprocess.run(['rm', '-rf', str(profile)], check=True)
old = profile / 'games/arcade.shovey-editor/records'
old.mkdir(parents=True, mode=0o700)
index = 'I1\nnext 2\nlevel 1 0 - 0 - Kept garden\n'
level = f'E1\nboard {board()}\nroute \n'
(old / 'classic-levels').write_text(index)
(old / 'classic-1').write_text(level)
records = profile / 'entity/records/local/levels'
def documents():
return {path.stem: json.loads(path.read_text()) for path in records.glob('*.json')}
@contextlib.contextmanager
def editor(name):
log_path = output / (name + '.log')
with log_path.open('w') as log:
child = subprocess.Popen([str(args.binary.resolve())], cwd=args.binary.resolve().parent,
env=os.environ | driver.environment() |
{'ARCADE_DATA': str(profile), 'LANG': 'en_US.UTF-8'},
stdout=log, stderr=subprocess.STDOUT)
driver.attach(child, log_path)
try:
driver.wait(label='Play', role='button')
driver.press(label='Next', role='button')
driver.press(label='Open', role='button')
driver.wait(label='Explore', role='button')
driver.press(label='Classic', role='button')
driver.wait(label='Story levels', role='text')
yield child
finally:
if child.poll() is None:
child.terminate()
child.wait(timeout=10)
with editor('first'):
driver.wait(label='Kept garden', role='button')
saved = documents()
assert len(saved) == 1, saved
document = next(iter(saved.values()))
assert document['format'] == 'shovey-levels-1' and document['edition'] == 'classic', document
assert document['title'] == 'Kept garden' and document['proof'] == '-', document
assert ''.join(document['levels'][0]['cells']) == board(), 'The copied board changed'
assert isinstance(document['updated_at'], int) and document['updated_at'] > 1700000000
assert (old / 'entity-moved').read_text() == 'M1\nclassic 1\n'
assert (old / 'classic-levels').read_text() == index and (old / 'classic-1').read_text() == level, \
'The old records must stay for older editors'
driver.press(label='New level', role='button')
driver.wait(label='Play', role='button')
driver.key('escape')
driver.wait(label='Kept garden', role='button')
assert len(documents()) == 2, documents()
for path in [profile / 'entity', *(profile / 'entity').rglob('*')]:
assert path.stat().st_mode & 0o077 == 0, f'Non-private record path: {path}'
with editor('again'):
driver.wait(label='Kept garden', role='button')
assert len(driver.find(label='Kept garden', role='button')) == 1, 'The old level was copied twice'
assert len(documents()) == 2, documents()
print("Standalone Shovey's editor: old custom levels copied once into private entity records, kept in place, "
'new levels saved as records and listed once after a restart passed')
if __name__ == '__main__':
main()
+123 -6
View File
@@ -1,4 +1,4 @@
"""Verify standalone Shovey reuses Entity without losing the game."""
"""Verify native Arcade and standalone Shovey reuse the shared Entity profile."""
import argparse
import json
import os
@@ -6,23 +6,140 @@ from pathlib import Path
import subprocess
import sys
import tempfile
from PIL import Image
from PIL import Image, ImageChops
def arcade_profile(binary, inbe_source, root):
"""Exercise the production Arcade entry without accounts or public services."""
sys.path.insert(0, str(inbe_source / 'tests'))
from ui_driver import UiDriver
out = root / 'work/entity-ui-test'
out.mkdir(parents=True, exist_ok=True)
with tempfile.TemporaryDirectory(dir=out) as temporary:
data = Path(temporary)
driver = UiDriver(data / 'driver')
env = os.environ | driver.environment() | {
'ARCADE_DATA': str(data / 'arcade'), 'ENTITY_DATA': str(data / 'entity'),
'HOME': str(data), 'XDG_DATA_HOME': str(data / 'share'),
'XDG_CONFIG_HOME': str(data / 'config'), 'XDG_CACHE_HOME': str(data / 'cache'),
'LANG': 'en_US.UTF-8', 'APP_NO_TRAY': '1',
'ARCADE_PACKAGE_ORIGIN': 'http://127.0.0.1:9'}
log_path = out / 'app.log'
with log_path.open('w') as log:
child = subprocess.Popen([str(binary.resolve())], cwd=binary.resolve().parent,
env=env, stdout=log, stderr=subprocess.STDOUT)
driver.attach(child, log_path)
try:
driver.wait(label='Stay offline', role='button')
driver.press(label='Stay offline', role='button')
driver.wait(label='Profile', role='button')
driver.press(label='Profile', role='button')
driver.press(label='Sign in', role='button')
# The native sign-in page includes file recovery before the
# online password. Scroll only this test's private window.
for _ in range(20):
if driver.find(label='Password', role='text_field', visible=True):
break
driver.pointer(500, 650, wheel=-3)
field = driver.wait(label='Password', role='text_field')
assert field['secure'] and field['value'] == '' and field['cursor'] == 0
windows = subprocess.check_output(
['xdotool', 'search', '--onlyvisible', '--pid', str(child.pid)],
env=env, text=True).split()
assert len(windows) == 1
window = windows[0]
assert subprocess.check_output(['xdotool', 'getwindowpid', window],
env=env, text=True).strip() == str(child.pid)
subprocess.run(['xdotool', 'windowfocus', '--sync', window], env=env, check=True)
def keyboard(*keys):
subprocess.run(['xdotool', 'key', '--clearmodifiers', *keys], env=env, check=True)
driver.wait_idle(frames=3)
def field_image(name):
driver.press(label='Username or public ID', role='text_field')
driver.wait_idle(frames=3)
node = driver.wait(label='Password', role='text_field')
path = out / (name + '.png')
subprocess.run(['import', '-window', window, str(path)], env=env, check=True)
with Image.open(path) as picture:
return picture.convert('RGB').crop((round(node['x'] + 14), round(node['y'] + 12),
round(node['x'] + node['width'] - 14), round(node['y'] + node['height'] - 12)))
def star_count(image):
# Bright text stands above the muted placeholder. Each
# ASCII star occupies one separate run of pixel columns.
background = image.getpixel((image.width - 1, image.height // 2))
columns = [any(max(abs(a - b) for a, b in zip(image.getpixel((x, y)), background)) > 90
for y in range(image.height)) for x in range(image.width)]
return sum(lit and (x == 0 or not columns[x - 1]) for x, lit in enumerate(columns))
empty = field_image('empty')
assert star_count(empty) == 0, 'An empty password must not prefill stars'
counts = []
for name, text in [('twelve', 'Ab3defghijkl'), ('thirty-two', 'Ab3' + 'x' * 29),
('unicode', 'Ab3é中🙂')]:
driver.press(label='Password', role='text_field')
assert driver.wait(label='Password', role='text_field')['focused'], 'Password must take focus'
keyboard('ctrl+a')
# Arcade forwards the physical SDL text/modifier path;
# its entry does not consume UiDriver's typed-text queue.
subprocess.run(['xdotool', 'type', '--clearmodifiers', '--delay', '20', text],
env=env, check=True)
image = field_image(name)
groups = star_count(image)
assert groups == len(text), (name, groups, len(text))
counts.append(groups)
assert driver.wait(label='Password', role='text_field')['value'] == ''
driver.press(label='Password', role='text_field')
keyboard('BackSpace')
assert star_count(field_image('backspace')) == 5, 'Backspace removes one Unicode symbol'
driver.press(label='Password', role='text_field')
keyboard('ctrl+a', 'BackSpace')
cleared = field_image('cleared')
assert ImageChops.difference(empty, cleared).getbbox() is None, 'Clearing must restore the empty field'
driver.press(label='Password', role='text_field')
subprocess.run(['xdotool', 'type', '--clearmodifiers', 'Ab3-not-retained'], env=env, check=True)
driver.press(label='Back', role='button')
driver.press(label='Back', role='button')
driver.wait(label='Profile', role='button')
driver.press(label='Profile', role='button')
driver.press(label='Sign in', role='button')
assert driver.wait(label='Password', role='text_field')['cursor'] == 0
assert star_count(field_image('reopened')) == 0, 'Returning must not prefill the old password'
driver.press(label='Back', role='button')
driver.press(label='Back', role='button')
driver.wait(label='Profile', role='button')
(out / 'result.json').write_text(json.dumps({'rendered_stars': counts,
'empty_initially': True, 'empty_after_clear': True,
'empty_after_reopen': True, 'returned_to_library': True}) + '\n')
finally:
if child.poll() is None:
child.terminate()
child.wait(timeout=10)
print('Arcade native Profile: empty password, 12/32/Unicode stars, editing and return navigation passed')
parser = argparse.ArgumentParser()
parser.add_argument('--binary', type=Path, required=True)
parser.add_argument('--inbe-source', type=Path, required=True)
parser.add_argument('--product', choices=('arcade', 'shovey'), default='shovey')
args = parser.parse_args()
assert int(os.environ['DISPLAY'].split(':')[-1].split('.')[0]) >= 400
assert os.environ['YUE_DESKTOP_RECOVERY'] == '0'
root = Path(__file__).resolve().parents[1]
out = root / 'build/entity-ui-test'
if args.product == 'arcade':
arcade_profile(args.binary, args.inbe_source, root)
sys.exit(0)
out = root / 'work/entity-ui-test-shovey'
out.mkdir(parents=True, exist_ok=True)
sys.path.insert(0, str(args.inbe_source / 'tests'))
from ui_driver import UiDriver
with tempfile.TemporaryDirectory(dir=out) as temporary:
data = Path(temporary)
driver = UiDriver(out / 'driver')
env = os.environ | driver.environment() | {'ARCADE_DATA': str(data), 'ENTITY_DATA': str(data / 'shared'), 'LANG': 'en_US.UTF-8'}
env = os.environ | driver.environment() | {'ARCADE_DATA': str(data), 'ENTITY_DATA': str(data / 'shared'),
'XDG_DATA_HOME': str(data / 'share'), 'XDG_CONFIG_HOME': str(data / 'config'),
'XDG_CACHE_HOME': str(data / 'cache'), 'LANG': 'en_US.UTF-8'}
log_path = out / 'app.log'
with log_path.open('w') as log:
child = subprocess.Popen([str(args.binary.resolve())], cwd=args.binary.resolve().parent,
@@ -51,7 +168,7 @@ with tempfile.TemporaryDirectory(dir=out) as temporary:
title.crop((round(profile_button['x']), round(profile_button['y']),
round(profile_button['x'] + profile_button['width']), round(profile_button['y'] + profile_button['height']))).save(out / 'profile-icon.png')
driver.press(label='Profile', role='button')
driver.wait(label='Connect an account', role='button')
driver.wait(label='Sign in', role='button')
driver.wait(label='Profile', role='text')
driver.wait_idle(frames=3)
subprocess.run(['import', '-window', window, str(out / 'profile.png')], env=env, check=True)
@@ -71,7 +188,7 @@ with tempfile.TemporaryDirectory(dir=out) as temporary:
driver.wait(label='Profile', role='button')
before = record.read_bytes() if record.exists() else b''
driver.press(label='Profile', role='button')
driver.wait(label='Connect an account', role='button')
driver.wait(label='Sign in', role='button')
driver.press(label='Back', role='button')
driver.wait(label='Play', role='button')
assert (record.read_bytes() if record.exists() else b'') == before
+152
View File
@@ -0,0 +1,152 @@
#!/usr/bin/env python3
"""Game imports select scoped Kryon paths; real bundles cover theme collisions."""
import os
from pathlib import Path
import subprocess
import sys
import tempfile
import unittest
ROOT = Path(__file__).resolve().parents[1]
sys.path.insert(0, str(ROOT / 'scripts'))
from game_module_paths import kryon_module_paths
class SourceFixture(unittest.TestCase):
def setUp(self):
scratch = ROOT / 'work/game-module-path-tests'
subprocess.run(['git', 'check-ignore', '-q', str(scratch)], cwd=ROOT, check=True)
scratch.mkdir(parents=True, exist_ok=True)
self.folder = tempfile.TemporaryDirectory(dir=scratch)
self.addCleanup(self.folder.cleanup)
self.root = Path(self.folder.name)
self.source = self.root / 'game'
self.ui = self.root / 'kryon/src/ui'
self.ui.mkdir(parents=True)
for name in ('scroll', 'theme', 'geometry'):
(self.ui / (name + '.zi')).touch()
def write(self, path, text=''):
path.parent.mkdir(parents=True, exist_ok=True)
path.write_text(text)
def paths(self, entry='src/app.zi'):
return kryon_module_paths(self.source, {'source': entry}, self.root / 'kryon')
class ModulePathsTest(SourceFixture):
def test_qualified_imports_and_owned_theme_stay_scoped(self):
self.write(self.source / 'src/app.zi', '#import "theme"\n#import "kryon/scroll"')
self.write(self.source / 'src/theme.zi')
self.assertEqual(self.paths(), ['--module-path', 'kryon=' + str(self.ui),
'--module-path', 'kryon=' + str(self.ui.parent / 'backend')])
def test_short_import_in_nested_source_needs_plain_path(self):
self.write(self.source / 'src/app.zi', '#import "theme"')
self.write(self.source / 'src/theme.zi')
self.write(self.source / 'src/views/game.zi', 'Geometry :: #import /* reason */ "geometry";')
self.assertEqual(self.paths()[:2], ['--module-path', str(self.ui)])
def test_entry_outside_src_and_package_without_src(self):
self.write(self.source / 'src/host.zi')
self.write(self.source / 'apps/chess/view.zi', '#import "geometry"')
self.assertEqual(self.paths('apps/chess/view.zi')[:2], ['--module-path', str(self.ui)])
self.write(self.source / 'view.zi', '#import "scroll"')
(self.source / 'src/host.zi').unlink()
(self.source / 'src').rmdir()
self.assertEqual(self.paths('view.zi')[:2], ['--module-path', str(self.ui)])
def test_only_owned_root_names_shadow_shared_modules(self):
self.write(self.source / 'src/app.zi', '#import "geometry"')
self.write(self.source / 'src/nested/geometry.zi')
self.assertIn(str(self.ui), self.paths())
self.write(self.source / 'src/geometry/module.zi')
self.assertNotIn(str(self.ui), self.paths())
def test_comments_strings_file_imports_and_other_packages_do_not_flatten(self):
self.write(self.source / 'src/app.zi', '''
// #import "scroll"
/* #import "geometry" */
Text :: "#import \\"scroll\\""
#import, file "scroll.zi";
#import "other/geometry"
#import "not_a_ui_module"
''')
self.assertNotIn(str(self.ui), self.paths())
class BundleTest(SourceFixture):
@classmethod
def setUpClass(cls):
wrapper = str(ROOT / 'scripts/ziran.sh')
flags = [] if (ROOT / 'ziran.local.toml').exists() else ['--locked']
def package(name):
return Path(subprocess.check_output([wrapper, 'pkg', 'path', name, *flags], cwd=ROOT, text=True).strip())
cls.toolchain = Path(os.environ['ZIRAN_SOURCE']) if 'ZIRAN_SOURCE' in os.environ else package('ziran')
cls.kryon = Path(os.environ['KRYON_SOURCE']) if 'KRYON_SOURCE' in os.environ else package('kryon')
cls.compiler = os.environ.get('ZIRAN', str(cls.toolchain / 'build/bin/ziran'))
def compiler_run(self, *args):
env = os.environ.copy()
for key in ('DISPLAY', 'WAYLAND_DISPLAY', 'XAUTHORITY', 'DBUS_SESSION_BUS_ADDRESS'):
env.pop(key, None)
return subprocess.run([self.compiler, *map(str, args)],
cwd=ROOT, env=env, text=True, capture_output=True, timeout=180)
def bundle(self, imports, local_theme=False, old_paths=False):
entry = self.source / 'src/guest.zi'
self.write(entry, imports + '''
using ButtonState;
#program_export
Answer :: () -> s32 {
thumb := ScrollFace(StyleKindScrollThumb(), 0, false,
cast(s32)ButtonStateNormal, 10.0)
''' + (' if AppTheme.LocalTheme() != cast(u32)0xaabbccdd { return 1 }\n' if local_theme else '') + '''
if thumb.value.background != cast(u32)0x889faaff { return 2 }
return 42
}
''')
if local_theme:
self.write(entry.with_name('theme.zi'), '''
#program_export
LocalTheme :: () -> u32 { return cast(u32)0xaabbccdd }
''')
paths = kryon_module_paths(self.source, {'source': 'src/guest.zi'}, self.kryon)
if old_paths:
paths = ['--module-path', str(self.kryon / 'src/ui'), *paths]
output = self.root / 'guest.zx'
result = self.compiler_run('bundle', '--root', entry.parent, *paths,
'--module-path', self.toolchain / 'std',
'--entry', 'guest:Answer', '-o', output, entry)
return result, output
def test_scoped_bundle_preserves_app_theme_and_kryon_palette(self):
imports = '''AppTheme :: #import "theme";
#import "kryon/scroll"
#import "kryon/style_sheet"
#import "kryon/control_props"
'''
old, _ = self.bundle(imports, local_theme=True, old_paths=True)
self.assertNotEqual(old.returncode, 0, old.stdout)
self.assertIn('LightBorderStrong', old.stderr + old.stdout)
result, output = self.bundle(imports, local_theme=True)
self.assertEqual(result.returncode, 0, (result.stderr + result.stdout)[-8000:])
run = self.compiler_run('run', output)
self.assertEqual(run.returncode, 0, run.stderr)
self.assertEqual(run.stdout.strip(), '42')
def test_legacy_short_import_bundle_keeps_shared_path(self):
result, output = self.bundle('''#import "scroll"
#import "style_sheet"
#import "control_props"
''')
self.assertEqual(result.returncode, 0, (result.stderr + result.stdout)[-8000:])
run = self.compiler_run('run', output)
self.assertEqual(run.returncode, 0, run.stderr)
self.assertEqual(run.stdout.strip(), '42')
if __name__ == '__main__':
unittest.main()
+55
View File
@@ -0,0 +1,55 @@
#!/usr/bin/env python3
"""Lossless resource packing keeps color, transparency and dependency copies."""
import hashlib
import json
import random
import sys
import tempfile
import unittest
from pathlib import Path
from PIL import Image, PngImagePlugin
sys.path.insert(0, str(Path(__file__).resolve().parents[1] / 'scripts'))
from game_resources import pack_opaque_pngs
class PackingTest(unittest.TestCase):
def test_only_redundant_alpha_is_removed(self):
scratch = Path(__file__).resolve().parents[1] / 'work/resource-packing-tests'
scratch.mkdir(parents=True, exist_ok=True, mode=0o700)
with tempfile.TemporaryDirectory(dir=scratch) as folder:
root = Path(folder)
rng = random.Random(1)
image = Image.new('RGBA', (64, 64))
image.putdata([(rng.randrange(256), rng.randrange(256), rng.randrange(256), 255)
for _ in range(64 * 64)])
opaque = root / 'opaque.png'
image.save(opaque, compress_level=0)
inventory = root / 'art.json'
inventory.write_text(json.dumps({'files': [{'path': 'opaque.png', 'sha256': hashlib.sha256(opaque.read_bytes()).hexdigest()}]}))
expected = image.tobytes()
old_size = opaque.stat().st_size
transparent = root / 'transparent.png'
image.putpixel((0, 0), (1, 2, 3, 127))
image.save(transparent)
before_transparent = transparent.read_bytes()
tagged = root / 'tagged.png'
info = PngImagePlugin.PngInfo()
info.add_text('source', 'fixture')
image.putpixel((0, 0), (1, 2, 3, 255))
image.save(tagged, pnginfo=info)
before_tagged = tagged.read_bytes()
pack_opaque_pngs(root)
self.assertLess(opaque.stat().st_size, old_size)
with Image.open(opaque) as actual:
self.assertEqual(actual.convert('RGBA').tobytes(), expected)
self.assertEqual(json.loads(inventory.read_text())['files'][0]['sha256'], hashlib.sha256(opaque.read_bytes()).hexdigest())
self.assertEqual(transparent.read_bytes(), before_transparent)
self.assertEqual(tagged.read_bytes(), before_tagged)
once = opaque.read_bytes()
pack_opaque_pngs(root)
self.assertEqual(opaque.read_bytes(), once)
if __name__ == '__main__':
unittest.main()
+21
View File
@@ -0,0 +1,21 @@
#!/usr/bin/env python3
"""Data fields must not suppress translation validation for actual labels."""
import importlib.util
from pathlib import Path
import sys
root = Path(__file__).resolve().parents[1]
sys.path.insert(0, str(root / 'scripts'))
spec = importlib.util.spec_from_file_location('check_games', root / 'scripts/check-games.py')
checker = importlib.util.module_from_spec(spec)
spec.loader.exec_module(checker)
code = '\n'.join([
'#import "shovey_data"',
'owned := ShopInteger(reply, "shovey_owned", 7)',
'coins := ShopInteger(reply, "shovey_coins", 1000)',
'Text(Label("shovey_title"))',
])
assert checker.translation_keys(code, 'shovey_') == {'shovey_title'}
assert checker.translation_keys(code + '\nText(Label("shovey_owned"))', 'shovey_') == {'shovey_title', 'shovey_owned'}
assert checker.translation_keys('Label("shovey_missing_translation")', 'shovey_') == {'shovey_missing_translation'}
print('JSON fields excluded; actual labels still require translations')
+27 -16
View File
@@ -82,7 +82,7 @@ def with_catalog(payload, catalog):
return struct.unpack('<I', source.read(4))[0]
def text():
return source.read(number())
assert source.read(8) == b'ZX\0\0\x1b\0\0\0'
assert source.read(8) in (b'ZX\0\0\x1a\0\0\0', b'ZX\0\0\x1b\0\0\0')
text(); text()
for _ in range(number()):
text(); text()
@@ -210,7 +210,17 @@ def main():
time.sleep(0.05)
driver.wait_idle(frames=20)
with application('consent-refresh') as child:
consent = profile / 'node/node-connection'
def assert_plain_library():
# Players never see node or refresh controls; the library loads by itself.
forbidden = ('refresh library', 'node connection', 'saved library', 'connect node', 'offline_library')
for node in driver.tree():
text = ' '.join(str(node.get(key) or '') for key in ('label', 'text')).lower()
assert not any(word in text for word in forbidden), \
'Node language must not reach players: ' + text
with application('consent-offline') as child:
driver.wait(label='Connect', role='button')
driver.wait_idle(frames=20)
assert not state['requests'], 'No node traffic before consent'
@@ -222,7 +232,9 @@ def main():
driver.wait(label='Shovey', role='button')
driver.wait_idle(frames=20)
assert not state['requests'], 'Offline choice must prevent preview downloads'
driver.press(label='Node connection', role='button')
assert_plain_library()
consent.unlink()
with application('consent-refresh') as child:
driver.wait(label='Connect', role='button')
driver.press(label='Connect', role='button')
driver.wait(label='Node Shovey', role='button', timeout=60)
@@ -231,41 +243,40 @@ def main():
assert any(path.endswith(catalog['art']['sha256'] + '.zx') for path in state['requests']), 'Node previews must be fetched'
assert driver.find(role='image', visible=True), 'Verified previews must draw'
card = driver.wait(label='Node Shovey', role='button')
assert card['y'] >= 88, 'The library must leave room for its connection controls'
assert card['y'] < 88, 'The library must not reserve room for removed controls'
assert_plain_library()
with Image.open(capture(child, 'node-library')) as image:
crop = image.crop((card['x'], card['y'], card['x'] + card['width'], card['y'] + card['height']))
assert len(crop.convert('RGB').getcolors(1000000) or []) > 500, 'The preview must paint actual image pixels'
game_hashes = {entry['sha256'] for entry in catalog['children']}
assert not any(any(digest in path for digest in game_hashes) for path in state['requests']), 'No game payload before Download'
state['revision'] = 1
driver.press(label='Refresh library', role='button')
state['revision'] = 1
with application('automatic-refresh') as child:
# A newer signed library appears without any refresh control.
driver.wait(label='Choano', role='button', timeout=60)
driver.wait(label='Apfelwurm Editor', role='button')
driver.wait_idle(frames=20)
assert_plain_library()
capture(child, 'refreshed-library')
resize(child, 360, 740)
capture(child, 'phone-library')
resize(child, 1000, 820)
assert save.read_bytes() == b'prior saved game'
driver.press(label='Node connection', role='button')
driver.wait(label='Stay offline', role='button')
driver.press(label='Stay offline', role='button')
driver.wait(label='Choano', role='button')
driver.wait_idle(frames=10)
count = len(state['requests'])
driver.wait_idle(frames=40)
assert len(state['requests']) == count, 'Revocation must stop node traffic'
consent.write_text('off\n' + origin)
with application('cached-offline'):
driver.wait(label='Choano', role='button', timeout=60)
driver.wait(label='Apfelwurm Editor', role='button')
driver.wait_idle(frames=40)
assert len(state['requests']) == count, 'Saved offline choice and signed catalog must survive restart'
count = len(state['requests'])
driver.wait_idle(frames=40)
assert len(state['requests']) == count, 'Saved offline choice must stop node traffic'
assert_plain_library()
assert save.read_bytes() == b'prior saved game'
finally:
server.shutdown()
server.server_close()
thread.join()
print('Arcade node consent, signed membership refresh, preview rendering, game download consent and offline restart passed')
print('Arcade node consent, automatic signed membership refresh, preview rendering, game download consent and offline restart passed')
if __name__ == '__main__':
+3 -1
View File
@@ -242,8 +242,10 @@ try {
.filter(name => /\\/library\\//.test(new URL(name).pathname) || name.includes(${JSON.stringify(library?.art || '-')}))`);
// This private page chooses the public node connection explicitly. A
// returning visit reuses its saved origin-specific answer.
const initial = await waitButton(['Connect', 'Shovey']);
const initial = await waitButton(['Connect', 'Allow', 'Shovey']);
if (initial.label === 'Connect') await click(initial);
const permission = initial.label === 'Connect' ? await waitButton(['Allow', 'Shovey']) : initial;
if (permission.label === 'Allow') await click(permission);
await waitButton('Shovey');
if (library) {
// The first visit draws every cover from the small copies alone.
+248 -152
View File
@@ -2,13 +2,22 @@
"format": 1,
"packages": [
{
"commit": "a02feeb703192f1481e72160b1ccff401d17ef9d",
"dependencies": {"raylib": "pcc7aa76725f2fb2f"},
"dependency_refs": {"raylib": "fafa2cea97d0cb379d832086ba45a989fa6f9c8e"},
"id": "p0797a2ec7b9d9b0e",
"name": "kryon",
"ref": "a02feeb703192f1481e72160b1ccff401d17ef9d",
"url": "https://github.com/kryonlabs/kryon.git"
"commit": "907e90ddd4c78f02e0d49e90384e4197f7dcdf26",
"dependencies": {},
"id": "p0002f862b297522d",
"name": "monocypher",
"ref": "master",
"source": true,
"url": "https://github.com/LoupVaillant/Monocypher.git"
},
{
"commit": "b31299434c785d0f2bd82f36b5bfd2fd36ba1216",
"dependencies": {},
"id": "p09fa77e94b0dfc6c",
"name": "rini",
"ref": "main",
"source": true,
"url": "https://github.com/raysan5/rini.git"
},
{
"commit": "2944b2e668e735438d8ce24e47a39be3f5c36af5",
@@ -20,8 +29,7 @@
},
{
"commit": "d74348c2e288ac55740461f7e106cda365b4db4a",
"dependencies": {"apps": "pf1707c15f1b95b28", "crypto": "pc23fbf455e97614d", "curl": "p8da229d15597ab5c", "daochi_client": "p89503086b39ba0fb", "entity": "p22476639990592a5", "game2d": "pf2f54c7603f6e861", "kryon": "pb1ba3b1950f642b9", "kss": "p1b13dda539ed2a39", "liboqs": "p983c695d118b6109", "mingcute": "pe1027b9d16704793", "monocypher": "p6c9f89ec97d929eb", "oqs": "p7098ac9cd92f7e5f", "plot": "pab5377a2950368a2", "practices": "p71f489a3ce887de0", "qrcode": "p0dfa70137405b096", "rini": "p8ea355e8cb04093e", "sqlite": "p810dc0509cd1b75d"},
"dependency_refs": {"apps": "master", "crypto": "master", "curl": "master", "daochi_client": "master", "entity": "master", "game2d": "master", "kryon": "master", "kss": "master", "liboqs": "main", "mingcute": "master", "monocypher": "master", "oqs": "master", "plot": "master", "practices": "master", "qrcode": "master", "rini": "main", "sqlite": "master"},
"dependencies": {"apps": "pdea1492d0d16298f", "crypto": "pc23fbf455e97614d", "curl": "p1ca0e8d3c19dbe4c", "daochi_client": "p89503086b39ba0fb", "entity": "p53f5eefa1f190fe5", "game2d": "pf2f54c7603f6e861", "kryon": "p1f27ccd7e2463271", "kss": "p1b13dda539ed2a39", "liboqs": "p7bc48564c6b606fe", "mingcute": "pe1027b9d16704793", "monocypher": "p0002f862b297522d", "oqs": "p7098ac9cd92f7e5f", "plot": "pab5377a2950368a2", "practices": "p9079dde0fcc11248", "qrcode": "p0dfa70137405b096", "rini": "p09fa77e94b0dfc6c", "sqlite": "p1d80baafaa5fa18a"},
"id": "p183b01bccc6424e7",
"name": "Inbe",
"ref": "master",
@@ -29,80 +37,25 @@
},
{
"commit": "1cb9df183089a77c8a16448a556186f30b261a98",
"dependencies": {"kryon": "pb1ba3b1950f642b9"},
"dependency_refs": {"kryon": "master"},
"dependencies": {"kryon": "p1f27ccd7e2463271"},
"id": "p1b13dda539ed2a39",
"name": "Kss",
"ref": "master",
"url": "https://github.com/kryonlabs/kss.git"
},
{
"commit": "dc47384266d96aaa0f86b8fe104404878179e90b",
"dependencies": {"curl": "p8da229d15597ab5c", "daochi_client": "p6af0b5bd9fd0cd31", "kryon": "p0797a2ec7b9d9b0e", "monocypher": "p6c9f89ec97d929eb", "qrcode": "p0dfa70137405b096", "zlib": "p82dbc05081cd4d96"},
"dependency_refs": {"curl": "19b299005fbe2d895f4ad525cfdae62a2220c3ea", "daochi_client": "970d5e44b1702158cb16469892da6ff50f142427", "kryon": "a02feeb703192f1481e72160b1ccff401d17ef9d", "monocypher": "master", "qrcode": "master", "zlib": "51b7f2abdade71cd9bb0e7a373ef2610ec6f9daf"},
"id": "p22476639990592a5",
"name": "Entity",
"ref": "master",
"url": "https://github.com/waozixyz/entity.git"
},
{
"commit": "2fa52f64eb0c29e8351b437176e896b938ece8e8",
"commit": "19b299005fbe2d895f4ad525cfdae62a2220c3ea",
"dependencies": {},
"id": "p276ae0189cfc10bc",
"name": "wurm_art",
"ref": "2fa52f64eb0c29e8351b437176e896b938ece8e8",
"source": true,
"url": "https://github.com/waozixyz/wurm.git"
},
{
"commit": "970d5e44b1702158cb16469892da6ff50f142427",
"dependencies": {"crypto": "pc23fbf455e97614d", "oqs": "p7098ac9cd92f7e5f"},
"dependency_refs": {"crypto": "master", "oqs": "master"},
"id": "p6af0b5bd9fd0cd31",
"name": "DaochiClient",
"ref": "970d5e44b1702158cb16469892da6ff50f142427",
"url": "https://github.com/ziranlang/daochi-client.git"
},
{
"commit": "f5f0a19a5dc6c14a49adb3cd63ea79a60f6ba77b",
"dependencies": {},
"id": "p6c9f89ec97d929eb",
"name": "monocypher",
"id": "p1ca0e8d3c19dbe4c",
"name": "curl",
"ref": "master",
"source": true,
"url": "https://github.com/LoupVaillant/Monocypher.git"
},
{
"commit": "51f8cc62a9ab61d114d246897b7b2ba76c4e3766",
"dependencies": {"curl": "p8da229d15597ab5c", "daochi_client": "p6af0b5bd9fd0cd31", "kryon": "p0797a2ec7b9d9b0e", "monocypher": "p6c9f89ec97d929eb", "qrcode": "p0dfa70137405b096", "zlib": "p82dbc05081cd4d96"},
"dependency_refs": {"curl": "19b299005fbe2d895f4ad525cfdae62a2220c3ea", "daochi_client": "970d5e44b1702158cb16469892da6ff50f142427", "kryon": "a02feeb703192f1481e72160b1ccff401d17ef9d", "monocypher": "master", "qrcode": "master", "zlib": "51b7f2abdade71cd9bb0e7a373ef2610ec6f9daf"},
"id": "p70971d078c43aca3",
"name": "Entity",
"ref": "51f8cc62a9ab61d114d246897b7b2ba76c4e3766",
"url": "https://github.com/waozixyz/entity.git"
},
{
"commit": "22d2ddbdc236796953c905a05a2cebf5ab1b4ff3",
"dependencies": {"liboqs": "p983c695d118b6109"},
"dependency_refs": {"liboqs": "main"},
"id": "p7098ac9cd92f7e5f",
"name": "Oqs",
"ref": "master",
"url": "https://github.com/ziranlang/oqs.git"
},
{
"commit": "8b81994303400255ddb0ee2da49044dbaef4397f",
"dependencies": {},
"id": "p71f489a3ce887de0",
"name": "practices",
"ref": "master",
"source": true,
"url": "https://github.com/waozixyz/practices.git"
"url": "https://github.com/curl/curl.git"
},
{
"commit": "5d1ee888094efc63d1fb25a58af93478b103d441",
"dependencies": {},
"id": "p810dc0509cd1b75d",
"id": "p1d80baafaa5fa18a",
"name": "sqlite",
"ref": "master",
"source": true,
@@ -111,83 +64,183 @@
{
"commit": "51b7f2abdade71cd9bb0e7a373ef2610ec6f9daf",
"dependencies": {},
"id": "p82dbc05081cd4d96",
"id": "p1dff88558141400b",
"name": "zlib",
"ref": "51b7f2abdade71cd9bb0e7a373ef2610ec6f9daf",
"source": true,
"url": "https://github.com/madler/zlib.git"
},
{
"commit": "256fe6ff049d48a25dfe2a8b0db7ad84477fd282",
"dependencies": {"crypto": "pc23fbf455e97614d", "oqs": "p7098ac9cd92f7e5f"},
"dependency_refs": {"crypto": "master", "oqs": "master"},
"id": "p89503086b39ba0fb",
"name": "DaochiClient",
"commit": "3152a6e501bcc6ed05e9ec2e8ce1f4eb59cc74a2",
"dependencies": {"libwebp": "p651a2c7a393977c0", "raylib": "p5a77c9c35110e925"},
"id": "p1f27ccd7e2463271",
"name": "kryon",
"ref": "master",
"url": "https://github.com/kryonlabs/kryon.git"
},
{
"commit": "f7ff3e546657a0f90de16802fc9fc4a700412481",
"dependencies": {"libwebp": "p651a2c7a393977c0", "raylib": "p5a77c9c35110e925"},
"id": "p2a656232910109dd",
"name": "kryon",
"ref": "f7ff3e546657a0f90de16802fc9fc4a700412481",
"url": "https://github.com/kryonlabs/kryon.git"
},
{
"commit": "43701aaf0da1e114df7793bf9876a044b96572e1",
"dependencies": {"curl": "p1ca0e8d3c19dbe4c", "daochi_client": "p6af0b5bd9fd0cd31", "kryon": "p2a656232910109dd", "monocypher": "p0002f862b297522d", "oqs": "p7098ac9cd92f7e5f", "qrcode": "p0dfa70137405b096", "zlib": "p1dff88558141400b"},
"id": "p300040f426184cc0",
"name": "Entity",
"ref": "43701aaf0da1e114df7793bf9876a044b96572e1",
"url": "https://github.com/waozixyz/entity.git"
},
{
"commit": "4204ef694f54aff644ac6627e74a9fb9bcc6b643",
"dependencies": {"apps": "pdea1492d0d16298f", "entity": "p53f5eefa1f190fe5", "kryon": "pcd450c600194cee7", "mingcute": "pe1027b9d16704793"},
"id": "p352b02504698188c",
"name": "Shovey",
"ref": "4204ef694f54aff644ac6627e74a9fb9bcc6b643",
"url": "https://github.com/waozixyz/shovey.git"
},
{
"commit": "6a29dfde2742a5081d477bebefcddf3a733383c5",
"dependencies": {"apps": "p9b5024e78127fbee", "entity": "pca086a043cf8d1f9", "game2d": "p9d83dc63fcae6cd0", "kryon": "pfa65f8437b3d3740", "kss": "paedcd9d605ed94a1", "mingcute": "pe1027b9d16704793"},
"id": "p36c2bd12ffeea1c8",
"name": "Choano",
"ref": "6a29dfde2742a5081d477bebefcddf3a733383c5",
"url": "https://github.com/waozixyz/choano.git"
},
{
"commit": "d208dc030fe068ff8a40ed49444536736b4b45d6",
"dependencies": {"kryon": "pcec085fc76d6fd7b"},
"id": "p415d809184a859cd",
"name": "Kss",
"ref": "d208dc030fe068ff8a40ed49444536736b4b45d6",
"url": "https://github.com/kryonlabs/kss.git"
},
{
"commit": "925ceb810d9b6e3b2fcb3e95adb3dd9c35ecb41f",
"dependencies": {"curl": "p1ca0e8d3c19dbe4c", "daochi_client": "p6af0b5bd9fd0cd31", "kryon": "pb9d1c52c45ad3f51", "monocypher": "p0002f862b297522d", "oqs": "p7098ac9cd92f7e5f", "qrcode": "p0dfa70137405b096", "zlib": "p1dff88558141400b"},
"id": "p53f5eefa1f190fe5",
"name": "Entity",
"ref": "master",
"url": "https://github.com/waozixyz/entity.git"
},
{
"commit": "fafa2cea97d0cb379d832086ba45a989fa6f9c8e",
"dependencies": {},
"id": "p5a77c9c35110e925",
"name": "raylib",
"ref": "fafa2cea97d0cb379d832086ba45a989fa6f9c8e",
"source": true,
"url": "https://github.com/raysan5/raylib.git"
},
{
"commit": "1844042d1ca751e62e61df7617dba19c98588339",
"dependencies": {},
"id": "p651a2c7a393977c0",
"name": "libwebp",
"ref": "1844042d1ca751e62e61df7617dba19c98588339",
"source": true,
"url": "https://github.com/webmproject/libwebp.git"
},
{
"commit": "970d5e44b1702158cb16469892da6ff50f142427",
"dependencies": {"crypto": "pc23fbf455e97614d", "oqs": "p7098ac9cd92f7e5f"},
"id": "p6af0b5bd9fd0cd31",
"name": "DaochiClient",
"ref": "970d5e44b1702158cb16469892da6ff50f142427",
"url": "https://github.com/ziranlang/daochi-client.git"
},
{
"commit": "19b299005fbe2d895f4ad525cfdae62a2220c3ea",
"dependencies": {},
"id": "p8da229d15597ab5c",
"name": "curl",
"commit": "22d2ddbdc236796953c905a05a2cebf5ab1b4ff3",
"dependencies": {"liboqs": "p7bc48564c6b606fe"},
"id": "p7098ac9cd92f7e5f",
"name": "Oqs",
"ref": "master",
"source": true,
"url": "https://github.com/curl/curl.git"
"url": "https://github.com/ziranlang/oqs.git"
},
{
"commit": "b31299434c785d0f2bd82f36b5bfd2fd36ba1216",
"commit": "619888d404e7d7e441921702c41a5838a8981408",
"dependencies": {},
"id": "p8ea355e8cb04093e",
"name": "rini",
"ref": "main",
"source": true,
"url": "https://github.com/raysan5/rini.git"
},
{
"commit": "e77d81dab791c13bf1c4e5d9a7160c403be9bbe0",
"dependencies": {},
"id": "p983c695d118b6109",
"id": "p7bc48564c6b606fe",
"name": "liboqs",
"ref": "main",
"source": true,
"url": "https://github.com/open-quantum-safe/liboqs.git"
},
{
"commit": "256fe6ff049d48a25dfe2a8b0db7ad84477fd282",
"dependencies": {"crypto": "pc23fbf455e97614d", "oqs": "p7098ac9cd92f7e5f"},
"id": "p89503086b39ba0fb",
"name": "DaochiClient",
"ref": "master",
"url": "https://github.com/ziranlang/daochi-client.git"
},
{
"commit": "8b81994303400255ddb0ee2da49044dbaef4397f",
"dependencies": {},
"id": "p9079dde0fcc11248",
"name": "practices",
"ref": "master",
"source": true,
"url": "https://github.com/waozixyz/practices.git"
},
{
"commit": "5d1541025b33a4b19c6ec73bea19dc314e0ef5cb",
"dependencies": {"crypto": "pc23fbf455e97614d", "daochi_client": "p6af0b5bd9fd0cd31", "kryon": "pfa65f8437b3d3740"},
"id": "p9b5024e78127fbee",
"name": "Apps",
"ref": "5d1541025b33a4b19c6ec73bea19dc314e0ef5cb",
"url": "https://github.com/waozixyz/apps.git"
},
{
"commit": "fd4541da5ba2b4da9d0489f20ac463c6e6576253",
"dependencies": {"kryon": "pfa65f8437b3d3740"},
"id": "p9d83dc63fcae6cd0",
"name": "Game2D",
"ref": "fd4541da5ba2b4da9d0489f20ac463c6e6576253",
"url": "https://github.com/kryonlabs/game2d.git"
},
{
"commit": "5157b63b703981c1e637c78c71b4c475d9699932",
"dependencies": {"crypto": "pc23fbf455e97614d", "daochi_client": "p6af0b5bd9fd0cd31", "kryon": "p2a656232910109dd"},
"id": "pa53467b904293b28",
"name": "Apps",
"ref": "5157b63b703981c1e637c78c71b4c475d9699932",
"url": "https://github.com/waozixyz/apps.git"
},
{
"commit": "3f888653b6b97010163d824c4cc72476be3214f3",
"dependencies": {"kryon": "pb1ba3b1950f642b9"},
"dependency_refs": {"kryon": "master"},
"dependencies": {"kryon": "p1f27ccd7e2463271"},
"id": "pab5377a2950368a2",
"name": "plot",
"ref": "master",
"url": "https://github.com/kryonlabs/plot.git"
},
{
"commit": "849eb903e5b6fb9aed996c530ab82f94c4371ee5",
"dependencies": {"raylib": "pcc7aa76725f2fb2f"},
"dependency_refs": {"raylib": "fafa2cea97d0cb379d832086ba45a989fa6f9c8e"},
"id": "pb1ba3b1950f642b9",
"commit": "7b125ad80a1398bd122f9c8e2017ebdb66b9e141",
"dependencies": {"kryon": "pfa65f8437b3d3740"},
"id": "paedcd9d605ed94a1",
"name": "Kss",
"ref": "7b125ad80a1398bd122f9c8e2017ebdb66b9e141",
"url": "https://github.com/kryonlabs/kss.git"
},
{
"commit": "bd34ddbe3b169f3fdec1a93cea1aba9fc3c62bbf",
"dependencies": {"libwebp": "p651a2c7a393977c0", "raylib": "p5a77c9c35110e925"},
"id": "pb9d1c52c45ad3f51",
"name": "kryon",
"ref": "master",
"ref": "bd34ddbe3b169f3fdec1a93cea1aba9fc3c62bbf",
"url": "https://github.com/kryonlabs/kryon.git"
},
{
"commit": "99d9ad777325e9dfc15cd8610056948819dc1f07",
"dependencies": {"apps": "pf1707c15f1b95b28", "crypto": "pc23fbf455e97614d", "entity": "p22476639990592a5", "kryon": "pb1ba3b1950f642b9", "mingcute": "pe1027b9d16704793"},
"dependency_refs": {"apps": "master", "crypto": "master", "entity": "master", "kryon": "master", "mingcute": "master"},
"id": "pb4256918f4b7855d",
"name": "Apfelwurm",
"ref": "99d9ad777325e9dfc15cd8610056948819dc1f07",
"url": "https://github.com/waozixyz/wurm.git"
},
{
"commit": "528618898db605b0f2960759d49871cde2209086",
"dependencies": {"apps": "pf1707c15f1b95b28", "entity": "p22476639990592a5", "game2d": "pf2f54c7603f6e861", "kryon": "pb1ba3b1950f642b9", "mingcute": "pe1027b9d16704793"},
"dependency_refs": {"apps": "master", "entity": "master", "game2d": "master", "kryon": "master", "mingcute": "master"},
"id": "pba7b4d6a4dcf84ae",
"name": "Choano",
"ref": "528618898db605b0f2960759d49871cde2209086",
"url": "https://github.com/waozixyz/choano.git"
"commit": "42db0b20e0fd431f254ea8a06e553accda7d2e84",
"dependencies": {"kryon": "p1f27ccd7e2463271"},
"id": "pbebe1f485bbc1a48",
"name": "Game2D",
"ref": "42db0b20e0fd431f254ea8a06e553accda7d2e84",
"url": "https://github.com/kryonlabs/game2d.git"
},
{
"commit": "944826f70779a6b6cd53f6b06a75b36f4d8a2558",
@@ -198,13 +251,52 @@
"url": "https://github.com/ziranlang/crypto.git"
},
{
"commit": "fafa2cea97d0cb379d832086ba45a989fa6f9c8e",
"dependencies": {},
"id": "pcc7aa76725f2fb2f",
"name": "raylib",
"ref": "fafa2cea97d0cb379d832086ba45a989fa6f9c8e",
"source": true,
"url": "https://github.com/raysan5/raylib.git"
"commit": "139f299d00f3921b386e07ee1fc5e9fad5216b9b",
"dependencies": {"libwebp": "p651a2c7a393977c0", "raylib": "p5a77c9c35110e925"},
"id": "pc9ddbcb0ebcff235",
"name": "kryon",
"ref": "139f299d00f3921b386e07ee1fc5e9fad5216b9b",
"url": "https://github.com/kryonlabs/kryon.git"
},
{
"commit": "b8f959234e41a597bde5c3d8508e9c3052897349",
"dependencies": {"curl": "p1ca0e8d3c19dbe4c", "daochi_client": "p6af0b5bd9fd0cd31", "kryon": "pfa65f8437b3d3740", "monocypher": "p0002f862b297522d", "qrcode": "p0dfa70137405b096", "zlib": "p1dff88558141400b"},
"id": "pca086a043cf8d1f9",
"name": "Entity",
"ref": "b8f959234e41a597bde5c3d8508e9c3052897349",
"url": "https://github.com/waozixyz/entity.git"
},
{
"commit": "e373b8a7f8821256b86de12dd5ee05a32d373e87",
"dependencies": {"raylib": "p5a77c9c35110e925"},
"id": "pcd450c600194cee7",
"name": "kryon",
"ref": "e373b8a7f8821256b86de12dd5ee05a32d373e87",
"url": "https://github.com/kryonlabs/kryon.git"
},
{
"commit": "7dc62902389544bf8d1fb3a159152cbd3b889c78",
"dependencies": {"libwebp": "p651a2c7a393977c0", "raylib": "p5a77c9c35110e925"},
"id": "pcec085fc76d6fd7b",
"name": "kryon",
"ref": "7dc62902389544bf8d1fb3a159152cbd3b889c78",
"url": "https://github.com/kryonlabs/kryon.git"
},
{
"commit": "1b7d5c8472e52eecd4de0faa7c94a422a1ade4a3",
"dependencies": {"crypto": "pc23fbf455e97614d", "daochi_client": "p6af0b5bd9fd0cd31", "kryon": "pc9ddbcb0ebcff235"},
"id": "pd6fdf2b1210fe2cb",
"name": "Apps",
"ref": "1b7d5c8472e52eecd4de0faa7c94a422a1ade4a3",
"url": "https://github.com/waozixyz/apps.git"
},
{
"commit": "0dd054932180a8e8cda4550af7030b527ee3c285",
"dependencies": {"crypto": "pc23fbf455e97614d", "daochi_client": "p6af0b5bd9fd0cd31", "kryon": "pb9d1c52c45ad3f51"},
"id": "pdea1492d0d16298f",
"name": "Apps",
"ref": "master",
"url": "https://github.com/waozixyz/apps.git"
},
{
"commit": "9cc6872f75447c3a24c16764f9829d0f58751cb0",
@@ -215,50 +307,54 @@
"url": "https://github.com/kryonlabs/mingcute.git"
},
{
"commit": "d32e4b606ece83e8869c954f66c334f44f7b4838",
"dependencies": {"kryon": "pb1ba3b1950f642b9"},
"dependency_refs": {"kryon": "master"},
"id": "pe878ed78ee9f8300",
"name": "Game2D",
"ref": "d32e4b606ece83e8869c954f66c334f44f7b4838",
"url": "https://github.com/kryonlabs/game2d.git"
"commit": "a9e6431c8c4d688e9395f7f68d30a6ee726528f9",
"dependencies": {"apps": "pd6fdf2b1210fe2cb", "crypto": "pc23fbf455e97614d", "entity": "pf5085d0b43200dc5", "game2d": "pbebe1f485bbc1a48", "kryon": "pc9ddbcb0ebcff235", "mingcute": "pe1027b9d16704793"},
"id": "pe22548296a8e67a7",
"name": "Apfelwurm",
"ref": "a9e6431c8c4d688e9395f7f68d30a6ee726528f9",
"url": "https://github.com/waozixyz/wurm.git"
},
{
"commit": "c152526893b92e75c82f55b0adf2c684e47fdbc2",
"dependencies": {"apps": "pf1707c15f1b95b28", "entity": "p22476639990592a5", "kryon": "p0797a2ec7b9d9b0e", "mingcute": "pe1027b9d16704793"},
"dependency_refs": {"apps": "master", "entity": "master", "kryon": "a02feeb703192f1481e72160b1ccff401d17ef9d", "mingcute": "master"},
"id": "peb73114e93098006",
"name": "Shovey",
"ref": "c152526893b92e75c82f55b0adf2c684e47fdbc2",
"url": "https://github.com/waozixyz/shovey.git"
},
{
"commit": "47ce0302664fe2f87f3cb05407eac7aa09066c96",
"dependencies": {"crypto": "pc23fbf455e97614d", "daochi_client": "p6af0b5bd9fd0cd31", "kryon": "p0797a2ec7b9d9b0e"},
"dependency_refs": {"crypto": "master", "daochi_client": "970d5e44b1702158cb16469892da6ff50f142427", "kryon": "a02feeb703192f1481e72160b1ccff401d17ef9d"},
"id": "pf1707c15f1b95b28",
"name": "Apps",
"ref": "master",
"url": "https://github.com/waozixyz/apps.git"
"commit": "2fa52f64eb0c29e8351b437176e896b938ece8e8",
"dependencies": {},
"id": "pef8c9ab30363ef38",
"name": "wurm_art",
"ref": "2fa52f64eb0c29e8351b437176e896b938ece8e8",
"source": true,
"url": "https://github.com/waozixyz/wurm.git"
},
{
"commit": "cee04692f3461dcb098833472f071c434980debb",
"dependencies": {"kryon": "pb1ba3b1950f642b9"},
"dependency_refs": {"kryon": "master"},
"dependencies": {"kryon": "p1f27ccd7e2463271"},
"id": "pf2f54c7603f6e861",
"name": "Game2D",
"ref": "master",
"url": "https://github.com/kryonlabs/game2d.git"
},
{
"commit": "463f3bd4ea7ea8a3ace207cc21d72b3a56287c3b",
"dependencies": {"curl": "p1ca0e8d3c19dbe4c", "daochi_client": "p6af0b5bd9fd0cd31", "kryon": "pc9ddbcb0ebcff235", "monocypher": "p0002f862b297522d", "oqs": "p7098ac9cd92f7e5f", "qrcode": "p0dfa70137405b096", "zlib": "p1dff88558141400b"},
"id": "pf5085d0b43200dc5",
"name": "Entity",
"ref": "463f3bd4ea7ea8a3ace207cc21d72b3a56287c3b",
"url": "https://github.com/waozixyz/entity.git"
},
{
"commit": "f6299fa1c71a6d9930df7a9a725d1a571adcbc68",
"dependencies": {"raylib": "p5a77c9c35110e925"},
"id": "pfa65f8437b3d3740",
"name": "kryon",
"ref": "f6299fa1c71a6d9930df7a9a725d1a571adcbc68",
"url": "https://github.com/kryonlabs/kryon.git"
}
],
"root": {
"dependencies": {"apps": "pf1707c15f1b95b28", "choano": "pba7b4d6a4dcf84ae", "daochi_client": "p6af0b5bd9fd0cd31", "entity": "p70971d078c43aca3", "game2d": "pe878ed78ee9f8300", "inbe": "p183b01bccc6424e7", "kryon": "p0797a2ec7b9d9b0e", "mingcute": "pe1027b9d16704793", "shovey": "peb73114e93098006", "wurm": "pb4256918f4b7855d", "wurm_art": "p276ae0189cfc10bc"},
"dependency_refs": {"apps": "47ce0302664fe2f87f3cb05407eac7aa09066c96", "choano": "528618898db605b0f2960759d49871cde2209086", "daochi_client": "970d5e44b1702158cb16469892da6ff50f142427", "entity": "51f8cc62a9ab61d114d246897b7b2ba76c4e3766", "game2d": "d32e4b606ece83e8869c954f66c334f44f7b4838", "inbe": "master", "kryon": "a02feeb703192f1481e72160b1ccff401d17ef9d", "mingcute": "master", "shovey": "c152526893b92e75c82f55b0adf2c684e47fdbc2", "wurm": "99d9ad777325e9dfc15cd8610056948819dc1f07", "wurm_art": "2fa52f64eb0c29e8351b437176e896b938ece8e8"},
"dependencies": {"apps": "pa53467b904293b28", "choano": "p36c2bd12ffeea1c8", "daochi_client": "p6af0b5bd9fd0cd31", "entity": "p300040f426184cc0", "game2d": "pbebe1f485bbc1a48", "inbe": "p183b01bccc6424e7", "kryon": "p2a656232910109dd", "kss": "p415d809184a859cd", "mingcute": "pe1027b9d16704793", "shovey": "p352b02504698188c", "wurm": "pe22548296a8e67a7", "wurm_art": "pef8c9ab30363ef38"},
"name": "Arcade"
},
"toolchain": {
"commit": "b8d0ac17eb1e2d2d9997729a769dbea681cc74ac",
"ref": "b8d0ac17eb1e2d2d9997729a769dbea681cc74ac",
"commit": "93af347a2a7af4a5a6a88906dbf7808189438b9b",
"ref": "93af347a2a7af4a5a6a88906dbf7808189438b9b",
"url": "https://github.com/ziranlang/ziran.git"
}
}
+12 -8
View File
@@ -7,7 +7,7 @@ bridge_modules = ["app"]
[toolchain]
git = "https://github.com/ziranlang/ziran.git"
ref = "b8d0ac17eb1e2d2d9997729a769dbea681cc74ac"
ref = "93af347a2a7af4a5a6a88906dbf7808189438b9b"
[install]
bin = "arcade"
@@ -29,17 +29,17 @@ abis = "arm64-v8a,x86_64"
[dependencies.kryon]
git = "https://github.com/kryonlabs/kryon.git"
ref = "a02feeb703192f1481e72160b1ccff401d17ef9d"
ref = "f7ff3e546657a0f90de16802fc9fc4a700412481"
[dependencies.apps]
git = "https://github.com/waozixyz/apps.git"
# Use the shared controller reviewed with the supported collection host.
ref = "47ce0302664fe2f87f3cb05407eac7aa09066c96"
ref = "5157b63b703981c1e637c78c71b4c475d9699932"
# Shovey's editions and editor are available as separate downloads.
[dependencies.shovey]
git = "https://github.com/waozixyz/shovey.git"
ref = "c152526893b92e75c82f55b0adf2c684e47fdbc2"
ref = "4204ef694f54aff644ac6627e74a9fb9bcc6b643"
# Compatibility tooling runs Inner Breeze's host checks; releases check its publisher pins.
[dependencies.inbe]
@@ -48,7 +48,7 @@ ref = "master"
[dependencies.entity]
git = "https://github.com/waozixyz/entity.git"
ref = "51f8cc62a9ab61d114d246897b7b2ba76c4e3766"
ref = "43701aaf0da1e114df7793bf9876a044b96572e1"
[dependencies.mingcute]
git = "https://github.com/kryonlabs/mingcute.git"
@@ -56,15 +56,15 @@ ref = "master"
[dependencies.wurm]
git = "https://github.com/waozixyz/wurm.git"
ref = "99d9ad777325e9dfc15cd8610056948819dc1f07"
ref = "a9e6431c8c4d688e9395f7f68d30a6ee726528f9"
[dependencies.game2d]
git = "https://github.com/kryonlabs/game2d.git"
ref = "d32e4b606ece83e8869c954f66c334f44f7b4838"
ref = "42db0b20e0fd431f254ea8a06e553accda7d2e84"
[dependencies.choano]
git = "https://github.com/waozixyz/choano.git"
ref = "528618898db605b0f2960759d49871cde2209086"
ref = "6a29dfde2742a5081d477bebefcddf3a733383c5"
# Library art can advance independently of the tested game payload.
[dependencies.wurm_art]
@@ -75,3 +75,7 @@ source = true
[dependencies.daochi_client]
git = "https://github.com/ziranlang/daochi-client.git"
ref = "970d5e44b1702158cb16469892da6ff50f142427"
[dependencies.kss]
git = "https://github.com/kryonlabs/kss.git"
ref = "d208dc030fe068ff8a40ed49444536736b4b45d6"