meshcode 1.1.0__tar.gz → 1.1.1__tar.gz
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.
- {meshcode-1.1.0 → meshcode-1.1.1}/PKG-INFO +1 -1
- {meshcode-1.1.0 → meshcode-1.1.1}/meshcode/comms_v4.py +17 -8
- {meshcode-1.1.0 → meshcode-1.1.1}/meshcode/meshcode_mcp/backend.py +8 -8
- {meshcode-1.1.0 → meshcode-1.1.1}/meshcode.egg-info/PKG-INFO +1 -1
- {meshcode-1.1.0 → meshcode-1.1.1}/pyproject.toml +1 -1
- {meshcode-1.1.0 → meshcode-1.1.1}/README.md +0 -0
- {meshcode-1.1.0 → meshcode-1.1.1}/meshcode/__init__.py +0 -0
- {meshcode-1.1.0 → meshcode-1.1.1}/meshcode/cli.py +0 -0
- {meshcode-1.1.0 → meshcode-1.1.1}/meshcode/meshcode_mcp/__init__.py +0 -0
- {meshcode-1.1.0 → meshcode-1.1.1}/meshcode/meshcode_mcp/__main__.py +0 -0
- {meshcode-1.1.0 → meshcode-1.1.1}/meshcode/meshcode_mcp/realtime.py +0 -0
- {meshcode-1.1.0 → meshcode-1.1.1}/meshcode/meshcode_mcp/server.py +0 -0
- {meshcode-1.1.0 → meshcode-1.1.1}/meshcode/meshcode_mcp/test_backend.py +0 -0
- {meshcode-1.1.0 → meshcode-1.1.1}/meshcode/meshcode_mcp/test_realtime.py +0 -0
- {meshcode-1.1.0 → meshcode-1.1.1}/meshcode.egg-info/SOURCES.txt +0 -0
- {meshcode-1.1.0 → meshcode-1.1.1}/meshcode.egg-info/dependency_links.txt +0 -0
- {meshcode-1.1.0 → meshcode-1.1.1}/meshcode.egg-info/entry_points.txt +0 -0
- {meshcode-1.1.0 → meshcode-1.1.1}/meshcode.egg-info/requires.txt +0 -0
- {meshcode-1.1.0 → meshcode-1.1.1}/meshcode.egg-info/top_level.txt +0 -0
- {meshcode-1.1.0 → meshcode-1.1.1}/setup.cfg +0 -0
|
@@ -36,16 +36,25 @@ from urllib.parse import quote
|
|
|
36
36
|
# ============================================================
|
|
37
37
|
# CONFIG — Supabase connection
|
|
38
38
|
# ============================================================
|
|
39
|
-
SUPABASE_URL = os.environ.get(
|
|
40
|
-
|
|
41
|
-
"https://wwgzzmydrwrjgaebspdo.supabase.co"
|
|
42
|
-
)
|
|
43
|
-
SUPABASE_KEY = os.environ.get(
|
|
44
|
-
"SUPABASE_KEY",
|
|
45
|
-
"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6Ind3Z3p6bXlkcndyamdhZWJzcGRvIiwicm9sZSI6InNlcnZpY2Vfcm9sZSIsImlhdCI6MTc2NzY1NDc3MCwiZXhwIjoyMDgzMjMwNzcwfQ.0SBXfb8OtyHmfaKW3dFQ6JYbcLUzCS1d4oXg4V-RAag"
|
|
46
|
-
)
|
|
39
|
+
SUPABASE_URL = os.environ.get("SUPABASE_URL", "")
|
|
40
|
+
SUPABASE_KEY = os.environ.get("SUPABASE_KEY", "")
|
|
47
41
|
SCHEMA = "meshcode"
|
|
48
42
|
|
|
43
|
+
if not SUPABASE_URL or not SUPABASE_KEY:
|
|
44
|
+
# Allow `--help` and the help command to run without credentials
|
|
45
|
+
_is_help = (
|
|
46
|
+
len(sys.argv) <= 1
|
|
47
|
+
or sys.argv[1] in ("help", "--help", "-h")
|
|
48
|
+
or (len(sys.argv) >= 3 and sys.argv[2] in ("--help", "-h", "help"))
|
|
49
|
+
)
|
|
50
|
+
if not _is_help:
|
|
51
|
+
sys.stderr.write(
|
|
52
|
+
"[meshcode] ERROR: SUPABASE_URL and SUPABASE_KEY env vars are required.\n"
|
|
53
|
+
"[meshcode] Set them in your shell, in a .env file, or via `meshcode login <api_key>`.\n"
|
|
54
|
+
"[meshcode] See .env.example for the full list.\n"
|
|
55
|
+
)
|
|
56
|
+
sys.exit(2)
|
|
57
|
+
|
|
49
58
|
# Local paths for session/TTY tracking (still needed for nudge)
|
|
50
59
|
COMMS_DIR = Path(__file__).parent
|
|
51
60
|
SESSIONS_DIR = COMMS_DIR / "sessions"
|
|
@@ -11,16 +11,16 @@ from urllib.error import HTTPError, URLError
|
|
|
11
11
|
from urllib.parse import quote
|
|
12
12
|
from urllib.request import Request, urlopen
|
|
13
13
|
|
|
14
|
-
SUPABASE_URL = os.environ.get(
|
|
15
|
-
|
|
16
|
-
"https://wwgzzmydrwrjgaebspdo.supabase.co",
|
|
17
|
-
)
|
|
18
|
-
SUPABASE_KEY = os.environ.get(
|
|
19
|
-
"SUPABASE_KEY",
|
|
20
|
-
"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6Ind3Z3p6bXlkcndyamdhZWJzcGRvIiwicm9sZSI6InNlcnZpY2Vfcm9sZSIsImlhdCI6MTc2NzY1NDc3MCwiZXhwIjoyMDgzMjMwNzcwfQ.0SBXfb8OtyHmfaKW3dFQ6JYbcLUzCS1d4oXg4V-RAag",
|
|
21
|
-
)
|
|
14
|
+
SUPABASE_URL = os.environ.get("SUPABASE_URL", "")
|
|
15
|
+
SUPABASE_KEY = os.environ.get("SUPABASE_KEY", "")
|
|
22
16
|
SCHEMA = "meshcode"
|
|
23
17
|
|
|
18
|
+
if not SUPABASE_URL or not SUPABASE_KEY:
|
|
19
|
+
raise RuntimeError(
|
|
20
|
+
"SUPABASE_URL and SUPABASE_KEY env vars are required. "
|
|
21
|
+
"Set them in your shell or .env file. See .env.example."
|
|
22
|
+
)
|
|
23
|
+
|
|
24
24
|
|
|
25
25
|
def _now_iso() -> str:
|
|
26
26
|
return datetime.utcnow().strftime("%Y-%m-%dT%H:%M:%S+00:00")
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|