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'})
|
||||
|
||||
|
||||
@@ -69,8 +69,8 @@ try:
|
||||
except ImportError:
|
||||
HAS_PIPELINE = False
|
||||
|
||||
VALID_AGENTS = ["muse", "pip", "646", "opm"]
|
||||
DEFAULT_PORTS = {"muse": 9410, "pip": 9420, "646": 9430, "opm": 9440}
|
||||
VALID_AGENTS = ["muse", "pip", "646", "opm", "dev", "def"]
|
||||
DEFAULT_PORTS = {"muse": 9410, "pip": 9420, "646": 9430, "opm": 9440, "def": 9450, "dev": 9460}
|
||||
|
||||
# Matches EVERY [RESULT <job_id>] marker in a message (use with finditer, not
|
||||
# search). The result text is lazy and stops before the next marker (or end of
|
||||
|
||||
Reference in New Issue
Block a user