delimit-cli 3.14.43 → 3.14.44
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 +5 -1
- package/gateway/ai/founding_users.py +0 -163
- package/gateway/ai/inbox_daemon.py +0 -684
- package/gateway/ai/social.py +0 -666
- package/gateway/ai/social_target.py +0 -1583
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "delimit-cli",
|
|
3
3
|
"mcpName": "io.github.delimit-ai/delimit-mcp-server",
|
|
4
|
-
"version": "3.14.
|
|
4
|
+
"version": "3.14.44",
|
|
5
5
|
"description": "Unify Claude Code, Codex, Cursor, and Gemini CLI with persistent context, governance, and multi-model debate.",
|
|
6
6
|
"main": "index.js",
|
|
7
7
|
"files": [
|
|
@@ -9,6 +9,10 @@
|
|
|
9
9
|
"lib/",
|
|
10
10
|
"adapters/",
|
|
11
11
|
"gateway/",
|
|
12
|
+
"!gateway/ai/social_target.py",
|
|
13
|
+
"!gateway/ai/social.py",
|
|
14
|
+
"!gateway/ai/founding_users.py",
|
|
15
|
+
"!gateway/ai/inbox_daemon.py",
|
|
12
16
|
"scripts/",
|
|
13
17
|
"server.json",
|
|
14
18
|
"README.md",
|
|
@@ -1,163 +0,0 @@
|
|
|
1
|
-
"""Founding User tracker — manages the 25 founding user slots.
|
|
2
|
-
|
|
3
|
-
Monitors Supabase for new signups, sends welcome emails,
|
|
4
|
-
tracks slots remaining, and manages the 12-month term.
|
|
5
|
-
"""
|
|
6
|
-
import json
|
|
7
|
-
import os
|
|
8
|
-
import smtplib
|
|
9
|
-
import imaplib
|
|
10
|
-
from email.mime.text import MIMEText
|
|
11
|
-
from email.mime.multipart import MIMEMultipart
|
|
12
|
-
from pathlib import Path
|
|
13
|
-
from datetime import datetime, timezone
|
|
14
|
-
|
|
15
|
-
SECRETS_DIR = Path.home() / ".delimit" / "secrets"
|
|
16
|
-
FOUNDING_USERS_FILE = Path.home() / ".delimit" / "founding_users.json"
|
|
17
|
-
MAX_FOUNDING_USERS = 25
|
|
18
|
-
SMTP_HOST = "mail.spacemail.com"
|
|
19
|
-
SMTP_PORT = 465
|
|
20
|
-
IMAP_HOST = "mail.spacemail.com"
|
|
21
|
-
EMAIL = "pro@delimit.ai"
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
def _load_creds():
|
|
25
|
-
"""Load email credentials."""
|
|
26
|
-
return {"email": EMAIL, "password": os.environ.get("DELIMIT_FOUNDING_PASSWORD", "")}
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
def _load_founding_users() -> dict:
|
|
30
|
-
"""Load founding users registry."""
|
|
31
|
-
if FOUNDING_USERS_FILE.exists():
|
|
32
|
-
return json.loads(FOUNDING_USERS_FILE.read_text())
|
|
33
|
-
return {"users": [], "created_at": datetime.now(timezone.utc).isoformat()}
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
def _save_founding_users(data: dict):
|
|
37
|
-
"""Save founding users registry."""
|
|
38
|
-
FOUNDING_USERS_FILE.parent.mkdir(parents=True, exist_ok=True)
|
|
39
|
-
FOUNDING_USERS_FILE.write_text(json.dumps(data, indent=2))
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
def get_status() -> dict:
|
|
43
|
-
"""Get founding user program status."""
|
|
44
|
-
data = _load_founding_users()
|
|
45
|
-
users = data.get("users", [])
|
|
46
|
-
return {
|
|
47
|
-
"total_slots": MAX_FOUNDING_USERS,
|
|
48
|
-
"claimed": len(users),
|
|
49
|
-
"remaining": MAX_FOUNDING_USERS - len(users),
|
|
50
|
-
"users": [{"email": u["email"], "name": u.get("name", ""), "joined": u["joined_at"]} for u in users],
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
def register_founding_user(email: str, name: str = "", github_username: str = "") -> dict:
|
|
55
|
-
"""Register a new founding user."""
|
|
56
|
-
data = _load_founding_users()
|
|
57
|
-
users = data.get("users", [])
|
|
58
|
-
|
|
59
|
-
if len(users) >= MAX_FOUNDING_USERS:
|
|
60
|
-
return {"error": "All 25 founding user spots are claimed.", "remaining": 0}
|
|
61
|
-
|
|
62
|
-
if any(u["email"] == email for u in users):
|
|
63
|
-
return {"error": "Already registered as a founding user.", "email": email}
|
|
64
|
-
|
|
65
|
-
user = {
|
|
66
|
-
"email": email,
|
|
67
|
-
"name": name,
|
|
68
|
-
"github_username": github_username,
|
|
69
|
-
"joined_at": datetime.now(timezone.utc).isoformat(),
|
|
70
|
-
"term_months": 12,
|
|
71
|
-
"status": "active",
|
|
72
|
-
}
|
|
73
|
-
users.append(user)
|
|
74
|
-
data["users"] = users
|
|
75
|
-
_save_founding_users(data)
|
|
76
|
-
|
|
77
|
-
# Send welcome email
|
|
78
|
-
try:
|
|
79
|
-
_send_welcome_email(email, name)
|
|
80
|
-
except Exception:
|
|
81
|
-
pass # Don't fail registration if email fails
|
|
82
|
-
|
|
83
|
-
return {
|
|
84
|
-
"registered": True,
|
|
85
|
-
"email": email,
|
|
86
|
-
"slot": len(users),
|
|
87
|
-
"remaining": MAX_FOUNDING_USERS - len(users),
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
def _send_welcome_email(to_email: str, name: str = ""):
|
|
92
|
-
"""Send welcome email to new founding user."""
|
|
93
|
-
creds = _load_creds()
|
|
94
|
-
greeting = f"Hi {name}," if name else "Hi,"
|
|
95
|
-
|
|
96
|
-
html = f"""
|
|
97
|
-
<div style="font-family: -apple-system, sans-serif; max-width: 600px; margin: 0 auto; background: #0a0a1a; color: #e5e7eb; padding: 40px; border-radius: 12px;">
|
|
98
|
-
<div style="text-align: center; margin-bottom: 32px;">
|
|
99
|
-
<span style="font-size: 32px; font-weight: 800; background: linear-gradient(135deg, #3b82f6, #8b5cf6); -webkit-background-clip: text; -webkit-text-fill-color: transparent;">
|
|
100
|
-
</> Delimit
|
|
101
|
-
</span>
|
|
102
|
-
</div>
|
|
103
|
-
|
|
104
|
-
<h1 style="color: #fff; font-size: 24px; margin-bottom: 16px;">Welcome, Founding User</h1>
|
|
105
|
-
|
|
106
|
-
<p>{greeting}</p>
|
|
107
|
-
|
|
108
|
-
<p>You're one of 25 founding users getting full access to Delimit for 12 months. That includes:</p>
|
|
109
|
-
|
|
110
|
-
<ul style="line-height: 2;">
|
|
111
|
-
<li>Full enterprise dashboard (app.delimit.ai)</li>
|
|
112
|
-
<li>106 MCP tools across Claude Code, Codex, Cursor, Gemini CLI</li>
|
|
113
|
-
<li>Multi-model deliberation</li>
|
|
114
|
-
<li>Team management, audit trail, policy editor</li>
|
|
115
|
-
<li>Priority feedback channel</li>
|
|
116
|
-
<li>Permanent Founding User badge</li>
|
|
117
|
-
</ul>
|
|
118
|
-
|
|
119
|
-
<div style="background: #1a1a2e; border: 1px solid #374151; border-radius: 8px; padding: 16px; margin: 24px 0;">
|
|
120
|
-
<p style="margin: 0; font-family: monospace; color: #22c55e;">$ npx delimit-cli setup</p>
|
|
121
|
-
</div>
|
|
122
|
-
|
|
123
|
-
<p>Questions? Reply to this email — it goes straight to the founder.</p>
|
|
124
|
-
|
|
125
|
-
<p style="color: #9ca3af; font-size: 14px; margin-top: 32px;">
|
|
126
|
-
— The Delimit Team<br>
|
|
127
|
-
delimit.ai
|
|
128
|
-
</p>
|
|
129
|
-
</div>
|
|
130
|
-
"""
|
|
131
|
-
|
|
132
|
-
msg = MIMEMultipart("alternative")
|
|
133
|
-
msg["From"] = f"Delimit <{EMAIL}>"
|
|
134
|
-
msg["To"] = to_email
|
|
135
|
-
msg["Subject"] = "Welcome to Delimit — You're a Founding User"
|
|
136
|
-
msg.attach(MIMEText(html, "html"))
|
|
137
|
-
|
|
138
|
-
with smtplib.SMTP_SSL(SMTP_HOST, SMTP_PORT) as server:
|
|
139
|
-
server.login(creds["email"], creds["password"])
|
|
140
|
-
server.send_message(msg)
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
def check_inbox() -> list:
|
|
144
|
-
"""Check pro@delimit.ai inbox for new messages."""
|
|
145
|
-
creds = _load_creds()
|
|
146
|
-
try:
|
|
147
|
-
mail = imaplib.IMAP4_SSL(IMAP_HOST, 993)
|
|
148
|
-
mail.login(creds["email"], creds["password"])
|
|
149
|
-
mail.select("inbox")
|
|
150
|
-
status, messages = mail.search(None, "UNSEEN")
|
|
151
|
-
if not messages[0]:
|
|
152
|
-
mail.logout()
|
|
153
|
-
return []
|
|
154
|
-
|
|
155
|
-
results = []
|
|
156
|
-
for mid in messages[0].split():
|
|
157
|
-
status, data = mail.fetch(mid, "(BODY[HEADER.FIELDS (FROM SUBJECT DATE)])")
|
|
158
|
-
header = data[0][1].decode()
|
|
159
|
-
results.append(header.strip())
|
|
160
|
-
mail.logout()
|
|
161
|
-
return results
|
|
162
|
-
except Exception as e:
|
|
163
|
-
return [{"error": str(e)}]
|