feat(collab): launch JZAO-only HoloLake stage one
This commit is contained in:
parent
01e8c2ec5c
commit
1dd4a6a39e
17 changed files with 492 additions and 21 deletions
|
|
@ -95,15 +95,16 @@ def load_context(host, intent, channel=None):
|
|||
architecture_mode = os.environ.get('PERSONA_ARCHITECTURE_OFFICIAL_MODE', 'verify')
|
||||
if architecture_mode not in {'verify', 'local-only'}:
|
||||
raise ValueError('PERSONA_ARCHITECTURE_OFFICIAL_MODE_INVALID')
|
||||
channel_context = load_channels(channel)
|
||||
selected_channel = channel_context['selected_channel']
|
||||
canonical_channel = selected_channel['id'] if selected_channel else None
|
||||
architecture_args = [
|
||||
sys.executable, str(ARCHITECTURE_AGENT), '--persona', topology['persona_id'],
|
||||
'--host', host_id, '--official-mode', architecture_mode, '--format', 'json'
|
||||
]
|
||||
if channel:
|
||||
architecture_args.extend(['--channel', channel])
|
||||
if canonical_channel:
|
||||
architecture_args.extend(['--channel', canonical_channel])
|
||||
architecture_perception = command_json(architecture_args, timeout=60)
|
||||
channel_context = load_channels(channel)
|
||||
selected_channel = channel_context['selected_channel']
|
||||
selected_channel_id = selected_channel['id'] if selected_channel else 'DYNAMIC_CHANNEL_PENDING_PERSONA_INTERPRETATION'
|
||||
intent_sha256 = hashlib.sha256(intent.encode('utf-8')).hexdigest()
|
||||
session_id = os.environ.get('CODEX_THREAD_ID') or os.environ.get('CODEX_SESSION_ID') or f'{host_id}:{current["current_day"]}:{intent_sha256[:16]}'
|
||||
|
|
|
|||
Loading…
Reference in a new issue