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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/server.py +4 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "visualknowledge",
3
- "version": "0.1.2",
3
+ "version": "0.1.3",
4
4
  "description": "Interactive AI Chat with Visualization - one-click launch via npx",
5
5
  "bin": {
6
6
  "visualknowledge": "./bin/visualknowledge.js"
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