Support bridge-owned TALK layers and recover free P4a candidate

This commit is contained in:
zenord
2026-10-13 04:35:33 +08:00
parent fcc55b8370
commit a53600db92
22 changed files with 18696 additions and 43 deletions
+4 -2
View File
@@ -73,8 +73,10 @@ for name, main, real in suites:
index_path=args.index_manifest.resolve(strict=True)
raw=index_path.read_bytes();digest=hashlib.sha256(raw).hexdigest()
data=json.loads(raw);runtimes={};hashes={}
for row in data['conversationPackages']:
reference=row['runtimeManifest'];path=reference['path']
references=[row['runtimeManifest'] for row in data['conversationPackages']]
references += [edge['mouthRuntimeManifest'] for edge in data['edges'] if 'mouthRuntimeManifest' in edge]
for reference in references:
path=reference['path']
runtime_path=(index_path.parent/path).resolve(strict=True)
if not runtime_path.is_relative_to(index_path.parent): raise ValueError('Runtime path escape')
runtime_raw=runtime_path.read_bytes();runtime_hash=hashlib.sha256(runtime_raw).hexdigest()