gitarsenal-cli 1.1.26 → 1.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
Binary file
|
@@ -223,6 +223,18 @@ def root():
|
|
223
223
|
"""Root endpoint for basic connectivity testing"""
|
224
224
|
return jsonify({"status": "ok", "message": "Modal proxy service is running"})
|
225
225
|
|
226
|
+
@app.route('/api/modal-tokens', methods=['GET'])
|
227
|
+
def get_modal_tokens():
|
228
|
+
"""Get Modal tokens (protected by API key)"""
|
229
|
+
if not authenticate_request():
|
230
|
+
return jsonify({"error": "Unauthorized"}), 401
|
231
|
+
|
232
|
+
# Return the server's Modal token
|
233
|
+
return jsonify({
|
234
|
+
"token_id": MODAL_TOKEN,
|
235
|
+
"token_secret": MODAL_TOKEN # For compatibility, use the same token
|
236
|
+
})
|
237
|
+
|
226
238
|
@app.route('/api/create-api-key', methods=['POST'])
|
227
239
|
def create_api_key():
|
228
240
|
"""Create a new API key (protected by admin key)"""
|
@@ -2453,8 +2453,8 @@ def create_modal_ssh_container(gpu_type, repo_url=None, repo_name=None, setup_co
|
|
2453
2453
|
print(f"❌ Error: {e.stderr}")
|
2454
2454
|
|
2455
2455
|
# Create SSH tunnel
|
2456
|
-
with modal.forward(22) as tunnel:
|
2457
|
-
host, port = tunnel.
|
2456
|
+
with modal.forward(22, unencrypted=True) as tunnel:
|
2457
|
+
host, port = tunnel.tcp_socket
|
2458
2458
|
|
2459
2459
|
print("\n" + "=" * 80)
|
2460
2460
|
print("🎉 SSH CONTAINER IS READY!")
|