Skip to content

Commit 6b3f65b

Browse files
committed
chore: bump version to 1.0.8
- Updated version from 1.0.7 to 1.0.8 in package.json. - Upgraded dependency "@ai-sdk/openai" from ^2.0.77 to ^2.0.79. - Upgraded dependency "@ai-sdk/react" from ^2.0.108 to ^2.0.109. - Removed deprecated dependency "@opeoginni/github-copilot-openai-compatible". - Added new dependency "monaco-editor-webpack-plugin" with version ^7.1.1. - Added new dependency "jws" with version ^4.0.1.
1 parent f49cf9c commit 6b3f65b

5 files changed

Lines changed: 606 additions & 59 deletions

File tree

.env.example

Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,18 +20,23 @@ ANTHROPIC_API_KEY='your_anthropic_api_key_here'
2020
# OpenRouter Configuration
2121
OPENROUTER_API_KEY='your_openrouter_api_key_here'
2222

23-
SUPERMEMORY_API_KEY='your_supermemory_api_key_here'
24-
2523
# Langfuse Configuration (optional, for monitoring and logging)
2624
# Get your keys from https://langfuse.com
2725
LANGFUSE_SECRET_KEY="sk-lf-your_secret_key_here"
2826
LANGFUSE_PUBLIC_KEY="pk-lf-your_public_key_here"
2927
LANGFUSE_BASE_URL="https://cloud.langfuse.com"
3028

31-
V0_API_KEY='your_v0'
29+
# Database (Postgres / PgVector) - Supabase Configuration
30+
# Get from Supabase Dashboard > Project Settings > Database > Connection String (Session Pooler)
31+
SUPABASE='postgresql://user:password@your-supabase-url.supabase.co:5432/mastra'
32+
33+
# Authentication for Supabase { to be used by lib/auth.ts not used directly by Mastra }
34+
SUPABASE_KEY='your_supabase_anon_key_here'
35+
SUPABASE_URL='https://your-project.supabase.co'
36+
USER_EMAIL=''
37+
USER_PASSWORD=''
3238

33-
# Database (Postgres / PgVector)
34-
SUPABASE='postgresql://user:password@localhost:5432/mastra'
39+
# Direct Database URL (for connection pooling)
3540
DATABASE_URL='postgresql://user:password@localhost:5432/mastra'
3641
DB_SCHEMA='mastra'
3742
DB_MAX_CONNECTIONS='20'
@@ -63,7 +68,13 @@ LOG_LEVEL='debug'
6368

6469
# Next.js + Mastra Client SDK
6570
NEXT_PUBLIC_MASTRA_API_URL='http://localhost:4111'
66-
71+
# used by server-side code
72+
MASTRA_API_URL='http://localhost:4111'
6773
# Example placeholders for local testing
6874
LOCAL_DEV='true'
6975

76+
# UPSTASH Configuration (for Redis and Vector DB) as an alternative to Supabase
77+
UPSTASH_REDIS_REST_URL='your_upstash_redis_rest_url_here'
78+
UPSTASH_REDIS_REST_TOKEN='your_upstash_redis_rest_token_here'
79+
UPSTASH_VECTOR_REST_URL='your_upstash_vector_rest_url_here'
80+
UPSTASH_VECTOR_REST_TOKEN='your_upstash_vector_rest_token_here'

app/workflows/page.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,19 @@
11
"use client"
22

3+
import { Suspense } from "react"
34
import { WorkflowProvider } from "./providers/workflow-context"
45
import { WorkflowHeader } from "./components/workflow-header"
56
import { WorkflowCanvas } from "./components/workflow-canvas"
67

78
export default function WorkflowsPage() {
89
return (
10+
<Suspense fallback={<div>Loading...</div>}>
911
<WorkflowProvider defaultWorkflow="contentStudioWorkflow">
1012
<main className="flex h-screen flex-col bg-background">
1113
<WorkflowHeader />
1214
<WorkflowCanvas />
1315
</main>
1416
</WorkflowProvider>
17+
</Suspense>
1518
)
1619
}

lib/auth.ts

Lines changed: 28 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,35 @@
11
import { createClient } from "@supabase/supabase-js";
22

3-
const supabase = createClient("<supabase-url>", "<supabase-key>");
3+
const supabase = createClient(
4+
process.env.SUPABASE_URL ?? "https://your-project.supabase.co",
5+
process.env.SUPABASE_KEY ?? "anonymous-public-key"
6+
);
47

58
const authTokenResponse = await supabase.auth.signInWithPassword({
6-
email: "<user's email>",
7-
password: "<user's password>",
9+
email: process.env.USER_EMAIL ?? 'admin@example.com',
10+
password: process.env.USER_PASSWORD ?? 'defaultPassword123',
811
});
912

1013
const accessToken = authTokenResponse.data?.session?.access_token;
14+
if (accessToken && accessToken !== '') {
15+
// eslint-disable-next-line no-console
16+
console.log('Signed in successfully.');
17+
} else {
18+
// eslint-disable-next-line no-console
19+
console.error('Failed to retrieve access token during sign-in.');
20+
}
21+
22+
23+
const { data, error } = await supabase.auth.signInWithOAuth({
24+
provider: 'github'
25+
});
26+
27+
if (error) {
28+
// eslint-disable-next-line no-console
29+
console.error('Error signing in with OAuth:', error);
30+
} else {
31+
// eslint-disable-next-line no-console
32+
console.log('User signed in with OAuth:', data);
33+
}
34+
35+
export default supabase;

0 commit comments

Comments
 (0)