loopshouse 0.2.3 → 0.2.4
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/dist/loops.js +6 -6
- package/package.json +2 -2
package/dist/loops.js
CHANGED
|
@@ -50976,10 +50976,10 @@ if (shouldShowDeprecationWarning())
|
|
|
50976
50976
|
import os4 from "node:os";
|
|
50977
50977
|
import path4 from "node:path";
|
|
50978
50978
|
import fs4 from "node:fs";
|
|
50979
|
-
var SUPABASE_URL = process.env.
|
|
50980
|
-
var SUPABASE_ANON_KEY = process.env.
|
|
50981
|
-
var VERSION = "0.2.
|
|
50982
|
-
var PLATFORM_URL = (process.env.
|
|
50979
|
+
var SUPABASE_URL = process.env.LOOPS_SUPABASE_URL ?? "https://api.loops.house";
|
|
50980
|
+
var SUPABASE_ANON_KEY = process.env.LOOPS_SUPABASE_ANON_KEY ?? "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6ImVubmx2cmp4cHFleHZnZmhmaWF3Iiwicm9sZSI6ImFub24iLCJpYXQiOjE3NzgwOTY3NTEsImV4cCI6MjA5MzY3Mjc1MX0.chKog_0lD39fqQi7R8pwhvTLWxEdwNidS-_BFtlknXE";
|
|
50981
|
+
var VERSION = "0.2.4";
|
|
50982
|
+
var PLATFORM_URL = (process.env.LOOPS_PLATFORM_URL ?? "https://www.loops.house").replace(/\/+$/, "");
|
|
50983
50983
|
var CONFIG_DIR = path4.join(os4.homedir(), ".loops");
|
|
50984
50984
|
var CREDENTIALS_PATH = path4.join(CONFIG_DIR, "credentials.json");
|
|
50985
50985
|
function loadCredentials() {
|
|
@@ -51160,7 +51160,7 @@ async function verifyOtp(email3, code) {
|
|
|
51160
51160
|
}
|
|
51161
51161
|
async function oauthLogin(provider, port, onUrl) {
|
|
51162
51162
|
const supabase = createSupabase();
|
|
51163
|
-
const redirectTo =
|
|
51163
|
+
const redirectTo = `http://localhost:${port}/callback`;
|
|
51164
51164
|
const { data, error: error51 } = await supabase.auth.signInWithOAuth({
|
|
51165
51165
|
provider,
|
|
51166
51166
|
options: {
|
|
@@ -51198,7 +51198,7 @@ async function linkOAuthIdentity(provider, port, onUrl) {
|
|
|
51198
51198
|
});
|
|
51199
51199
|
if (sessErr)
|
|
51200
51200
|
throw new Error(`Session expired — run \`loops auth login\` first (${sessErr.message})`);
|
|
51201
|
-
const redirectTo =
|
|
51201
|
+
const redirectTo = `http://localhost:${port}/callback`;
|
|
51202
51202
|
const { data, error: error51 } = await supabase.auth.linkIdentity({
|
|
51203
51203
|
provider,
|
|
51204
51204
|
options: {
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "loopshouse",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.4",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Loops House CLI — manage hackathon projects, ideate with AI, query sponsor knowledge graphs, and submit from your terminal or AI agent",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"bin": {
|
|
8
|
-
"loops": "
|
|
8
|
+
"loops": "dist/loops.js"
|
|
9
9
|
},
|
|
10
10
|
"files": [
|
|
11
11
|
"dist",
|