Publish the reviewed accumulated runtime, scheduler, profile, UI, native recipes and historical maintenance evidence. Includes Qwen GPU ASR correction and shared Anna/atelier ownership. Validated with 784 local tests, Python/JSON parsing and eight JavaScript syntax checks. Live GPU acceptance and full fresh-host restore limits remain documented.
18 lines
1.1 KiB
Python
18 lines
1.1 KiB
Python
#!/usr/bin/env python3
|
|
"""NAS: copy only two public live UI assets byte-exactly for a safe merge.
|
|
|
|
Never handles credentials, recordings or model data. Avoid copying rendered
|
|
terminal text: numeric literals can be masked by tool-output redaction.
|
|
"""
|
|
import hashlib,json,shlex,subprocess,os
|
|
from pathlib import Path
|
|
root=Path(os.environ['TMPDIR'])/'shared-qwen-live-ui';root.mkdir(exist_ok=True)
|
|
code="import sys;from pathlib import Path;sys.stdout.buffer.write((Path('/app')/sys.argv[1]).read_bytes())"
|
|
for name in ('app.js','index.html'):
|
|
command='docker exec athena-stimmatelier python3 -B -c '+shlex.quote(code)+' '+shlex.quote(name)
|
|
raw=subprocess.check_output(['athena-ssh',command],timeout=20)
|
|
(root/name).write_bytes(raw)
|
|
expected=subprocess.check_output(['athena-ssh','docker exec athena-stimmatelier python3 -B -c '+shlex.quote("from pathlib import Path;import hashlib;print(hashlib.sha256((Path('/app')/"+repr(name)+").read_bytes()).hexdigest())")],text=True,timeout=20).strip()
|
|
assert hashlib.sha256((root/name).read_bytes()).hexdigest()==expected
|
|
print(json.dumps({'byte_exact_live_assets_verified':True,'directory':str(root)}))
|