circuit-mcp 1.0.5 → 1.0.7
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/src/auth.js +20 -19
- package/publish.sh +0 -21
package/package.json
CHANGED
package/src/auth.js
CHANGED
|
@@ -100,12 +100,14 @@ export async function authenticate() {
|
|
|
100
100
|
// Store token
|
|
101
101
|
await storeToken(token);
|
|
102
102
|
|
|
103
|
-
// Send success page
|
|
103
|
+
// Send success page and close after response is fully sent
|
|
104
104
|
res.writeHead(200, { 'Content-Type': 'text/html' });
|
|
105
|
-
res.end(getSuccessPage())
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
105
|
+
res.end(getSuccessPage(), () => {
|
|
106
|
+
setTimeout(() => {
|
|
107
|
+
server.close();
|
|
108
|
+
resolve(token);
|
|
109
|
+
}, 100);
|
|
110
|
+
});
|
|
109
111
|
}
|
|
110
112
|
});
|
|
111
113
|
|
|
@@ -139,47 +141,46 @@ function getSuccessPage() {
|
|
|
139
141
|
* { margin: 0; padding: 0; box-sizing: border-box; }
|
|
140
142
|
body {
|
|
141
143
|
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
|
|
142
|
-
background:
|
|
144
|
+
background: #F5F1EA;
|
|
143
145
|
min-height: 100vh;
|
|
144
146
|
display: flex;
|
|
145
147
|
align-items: center;
|
|
146
148
|
justify-content: center;
|
|
147
|
-
color:
|
|
149
|
+
color: #1C1A18;
|
|
148
150
|
}
|
|
149
151
|
.container {
|
|
150
152
|
text-align: center;
|
|
151
153
|
padding: 48px;
|
|
152
154
|
}
|
|
153
155
|
.icon {
|
|
154
|
-
font-size:
|
|
156
|
+
font-size: 48px;
|
|
155
157
|
margin-bottom: 24px;
|
|
156
158
|
}
|
|
157
159
|
h1 {
|
|
158
|
-
font-size:
|
|
160
|
+
font-size: 24px;
|
|
159
161
|
font-weight: 600;
|
|
160
162
|
margin-bottom: 16px;
|
|
161
|
-
color: #6366F1;
|
|
162
163
|
}
|
|
163
164
|
p {
|
|
164
|
-
font-size:
|
|
165
|
-
color: rgba(
|
|
165
|
+
font-size: 16px;
|
|
166
|
+
color: rgba(28,26,24,0.6);
|
|
166
167
|
margin-bottom: 8px;
|
|
167
168
|
}
|
|
168
169
|
.hint {
|
|
169
|
-
margin-top:
|
|
170
|
+
margin-top: 24px;
|
|
170
171
|
font-size: 14px;
|
|
171
|
-
color: rgba(
|
|
172
|
+
color: rgba(28,26,24,0.4);
|
|
172
173
|
}
|
|
173
174
|
</style>
|
|
174
175
|
</head>
|
|
175
176
|
<body>
|
|
176
177
|
<div class="container">
|
|
177
|
-
<div class="icon"
|
|
178
|
-
<h1>Connected to Circuit
|
|
179
|
-
<p>You can close this window
|
|
180
|
-
<p class="hint">
|
|
178
|
+
<div class="icon">◉</div>
|
|
179
|
+
<h1>Connected to Circuit</h1>
|
|
180
|
+
<p>You can close this window.</p>
|
|
181
|
+
<p class="hint">Return to your terminal to continue.</p>
|
|
181
182
|
</div>
|
|
182
|
-
<script>setTimeout(() => window.close(),
|
|
183
|
+
<script>setTimeout(() => window.close(), 2000);</script>
|
|
183
184
|
</body>
|
|
184
185
|
</html>`;
|
|
185
186
|
}
|
package/publish.sh
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
#!/bin/bash
|
|
2
|
-
|
|
3
|
-
# Publish script for circuit-mcp package
|
|
4
|
-
# Uses token to bypass 2FA
|
|
5
|
-
|
|
6
|
-
set -e
|
|
7
|
-
|
|
8
|
-
# NPM token for publishing (bypasses 2FA)
|
|
9
|
-
NPM_TOKEN="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"
|
|
10
|
-
|
|
11
|
-
# Create temporary .npmrc with token
|
|
12
|
-
echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" > .npmrc
|
|
13
|
-
|
|
14
|
-
# Publish the package
|
|
15
|
-
npm publish --access public
|
|
16
|
-
|
|
17
|
-
# Clean up .npmrc
|
|
18
|
-
rm .npmrc
|
|
19
|
-
|
|
20
|
-
echo "✅ Published successfully!"
|
|
21
|
-
|