Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion frontend/internal-packages/db/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"@biomejs/biome": "2.2.4",
"@liam-hq/configs": "workspace:*",
"eslint": "9.36.0",
"supabase": "2.40.6",
"supabase": "2.45.4",
"type-fest": "4.41.0",
"typescript": "5.9.2",
"vitest": "3.2.4"
Expand Down
2 changes: 1 addition & 1 deletion frontend/internal-packages/db/supabase/database.types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -762,7 +762,7 @@ export type Database = {
}
l2_normalize: {
Args: { '': string } | { '': unknown } | { '': unknown }
Returns: string
Returns: unknown
}
put_checkpoint: {
Args: { p_blobs: Json; p_checkpoint: Json }
Expand Down
19 changes: 9 additions & 10 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 8 additions & 8 deletions scripts/extract-supabase-anon-key.sh
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
#!/bin/bash

# Execute the supabase status command and capture its output
STATUS_OUTPUT=$(pnpm --filter @liam-hq/db exec supabase status)
# Execute the supabase status command with env output format and capture its output
STATUS_OUTPUT=$(pnpm --filter @liam-hq/db exec supabase status -o env)

# Extract the first anon key from the output
# Using a more precise grep pattern to match only the anon key line
ANON_KEY_LINE=$(echo "$STATUS_OUTPUT" | grep -m 1 "anon key:")
# Extract the anon key from the output
# Using grep to match the ANON_KEY line
ANON_KEY_LINE=$(echo "$STATUS_OUTPUT" | grep "^ANON_KEY=")

# Clean up and extract just the key
# Remove "anon key: " prefix
ANON_KEY=$(echo "$ANON_KEY_LINE" | sed 's/.*anon key: \(.*\)/\1/' | tr -d ' ')
# Clean up and extract just the key value
# Remove ANON_KEY=" prefix and trailing "
ANON_KEY=$(echo "$ANON_KEY_LINE" | sed 's/^ANON_KEY="\(.*\)"$/\1/')

if [ -z "$ANON_KEY" ]; then
echo "Failed to extract the anon key from Supabase status output"
Expand Down
14 changes: 7 additions & 7 deletions scripts/extract-supabase-service-key.sh
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
#!/bin/bash

# Execute the supabase status command and capture its output
STATUS_OUTPUT=$(pnpm --filter @liam-hq/db exec supabase status)
# Execute the supabase status command with env output format and capture its output
STATUS_OUTPUT=$(pnpm --filter @liam-hq/db exec supabase status -o env)

# Extract the service role key from the output
# Using a precise grep pattern to match only the service role key line
SERVICE_KEY_LINE=$(echo "$STATUS_OUTPUT" | grep -m 1 "service_role key:")
# Using grep to match the SERVICE_ROLE_KEY line
SERVICE_KEY_LINE=$(echo "$STATUS_OUTPUT" | grep "^SERVICE_ROLE_KEY=")

# Clean up and extract just the key
# Remove "service_role key: " prefix
SERVICE_KEY=$(echo "$SERVICE_KEY_LINE" | sed 's/.*service_role key: \(.*\)/\1/' | tr -d ' ')
# Clean up and extract just the key value
# Remove SERVICE_ROLE_KEY=" prefix and trailing "
SERVICE_KEY=$(echo "$SERVICE_KEY_LINE" | sed 's/^SERVICE_ROLE_KEY="\(.*\)"$/\1/')

if [ -z "$SERVICE_KEY" ]; then
echo "Failed to extract the service role key from Supabase status output"
Expand Down