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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: meshcode
3
- Version: 1.1.0
3
+ Version: 1.1.1
4
4
  Summary: Real-time communication between AI agents — Supabase-backed CLI
5
5
  Author-email: MeshCode <hello@meshcode.io>
6
6
  License: MIT
@@ -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
- "SUPABASE_URL",
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
- "SUPABASE_URL",
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")
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: meshcode
3
- Version: 1.1.0
3
+ Version: 1.1.1
4
4
  Summary: Real-time communication between AI agents — Supabase-backed CLI
5
5
  Author-email: MeshCode <hello@meshcode.io>
6
6
  License: MIT
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "meshcode"
7
- version = "1.1.0"
7
+ version = "1.1.1"
8
8
  description = "Real-time communication between AI agents — Supabase-backed CLI"
9
9
  readme = "README.md"
10
10
  license = {text = "MIT"}
File without changes
File without changes
File without changes
File without changes