feat(fleet): expand sidechat auto-provisioning for muse and dev, integrate response harvesting
This commit is contained in:
@@ -661,6 +661,21 @@ class Handler(BaseHTTPRequestHandler):
|
||||
{'op': k, 'desc': v['desc'],
|
||||
'side_effecting': v['side_effecting']}
|
||||
for k, v in sorted(OPS.items())]})
|
||||
elif self.path in ('/box', '/box-relay.sh'):
|
||||
relay_path = os.path.join(BIN_DIR, 'box-relay.sh')
|
||||
if os.path.isfile(relay_path):
|
||||
try:
|
||||
with open(relay_path, 'rb') as f:
|
||||
data = f.read()
|
||||
self.send_response(200)
|
||||
self.send_header('Content-Type', 'text/x-shellscript')
|
||||
self.send_header('Content-Length', str(len(data)))
|
||||
self.end_headers()
|
||||
self.wfile.write(data)
|
||||
return
|
||||
except Exception:
|
||||
pass
|
||||
self._send(404, {'error': 'not found'})
|
||||
else:
|
||||
self._send(404, {'error': 'not found'})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user