visualknowledge 0.1.2 → 0.1.3
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 +1 -1
- package/server.py +4 -0
package/package.json
CHANGED
package/server.py
CHANGED
|
@@ -1,10 +1,14 @@
|
|
|
1
1
|
import json
|
|
2
|
+
import mimetypes
|
|
2
3
|
import os
|
|
3
4
|
import sys
|
|
4
5
|
import logging
|
|
5
6
|
from flask import Flask, request, Response, jsonify, send_from_directory
|
|
6
7
|
from anthropic import Anthropic
|
|
7
8
|
|
|
9
|
+
# Ensure .jsx files are served with correct JS MIME type for ES modules
|
|
10
|
+
mimetypes.add_type('application/javascript', '.jsx')
|
|
11
|
+
|
|
8
12
|
sys.path.insert(0, os.path.join(os.path.dirname(__file__), 'skills'))
|
|
9
13
|
from visualize import get_skill_prompt
|
|
10
14
|
|