@clinebot/core 0.0.13 → 0.0.14

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 CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@clinebot/core",
3
- "version": "0.0.13",
3
+ "version": "0.0.14",
4
4
  "main": "./dist/index.node.js",
5
5
  "dependencies": {
6
- "@clinebot/agents": "0.0.13",
7
- "@clinebot/llms": "0.0.13",
8
- "@clinebot/shared": "0.0.13",
6
+ "@clinebot/agents": "0.0.14",
7
+ "@clinebot/llms": "0.0.14",
8
+ "@clinebot/shared": "0.0.14",
9
9
  "@opentelemetry/api": "^1.9.0",
10
10
  "@opentelemetry/api-logs": "^0.56.0",
11
11
  "@opentelemetry/exporter-logs-otlp-http": "^0.56.0",
@@ -14,7 +14,6 @@
14
14
  "@opentelemetry/sdk-logs": "^0.56.0",
15
15
  "@opentelemetry/sdk-metrics": "^1.30.1",
16
16
  "@opentelemetry/semantic-conventions": "^1.37.0",
17
- "better-sqlite3": "^11.10.0",
18
17
  "jiti": "^1.21.7",
19
18
  "nanoid": "^5.1.7",
20
19
  "simple-git": "^3.32.3",
@@ -52,6 +51,9 @@
52
51
  "test:e2e": "vitest run --config vitest.e2e.config.ts",
53
52
  "test:watch": "vitest --config vitest.config.ts"
54
53
  },
54
+ "engines": {
55
+ "node": ">=20"
56
+ },
55
57
  "type": "module",
56
58
  "types": "./dist/index.node.d.ts"
57
59
  }
package/src/auth/cline.ts CHANGED
@@ -180,35 +180,7 @@ async function requestAuthorizationUrl(
180
180
  authUrl.searchParams.set("redirect_uri", params.callbackUrl);
181
181
  authUrl.searchParams.set("state", params.state);
182
182
 
183
- const response = await fetch(authUrl.toString(), {
184
- method: "GET",
185
- redirect: "manual",
186
- headers: await resolveHeaders(options.headers),
187
- signal: AbortSignal.timeout(
188
- options.requestTimeoutMs ?? DEFAULT_HTTP_TIMEOUT_MS,
189
- ),
190
- });
191
-
192
- if (response.status >= 300 && response.status < 400) {
193
- const redirectUrl = response.headers.get("location");
194
- if (redirectUrl) {
195
- return redirectUrl;
196
- }
197
- }
198
-
199
- if (!response.ok) {
200
- const text = await response.text().catch(() => "");
201
- throw new Error(
202
- `Authentication request failed: ${response.status} ${text}`,
203
- );
204
- }
205
-
206
- const body = (await response.json()) as { redirect_url?: string };
207
- if (typeof body.redirect_url === "string" && body.redirect_url.length > 0) {
208
- return body.redirect_url;
209
- }
210
-
211
- throw new Error("Authentication request did not return a redirect URL");
183
+ return authUrl.toString();
212
184
  }
213
185
 
214
186
  async function exchangeAuthorizationCode(