opencode-supabase 0.2.3-alpha.0 → 0.2.3-alpha.2

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,6 +1,6 @@
1
1
  {
2
2
  "name": "opencode-supabase",
3
- "version": "0.2.3-alpha.0",
3
+ "version": "0.2.3-alpha.2",
4
4
  "type": "module",
5
5
  "description": "OpenCode plugin for Supabase integration with server and TUI components",
6
6
  "license": "Apache-2.0",
@@ -25,7 +25,7 @@ Supabase MCP adds project-scoped Supabase tools to OpenCode. Before MCP setup, t
25
25
  1. Resolve project with `supabase_list_projects`. If auth fails, tell user: "Run `/supabase` to connect your Supabase account." If multiple projects, use `question` tool listing name + ref for each.
26
26
  2. Use `question` tool to confirm: "Open Supabase MCP Connect for `<name>` (`<ref>`)?"
27
27
  3. Call `supabase_open_mcp_setup`. Always print returned URL in output.
28
- 4. Tell user to paste Studio prompt/config back for wiring into `opencode.json`.
28
+ 4. Tell user to paste Studio prompt/config back for wiring into `.opencode/opencode.json`.
29
29
 
30
30
  ## Studio Prompt Handling
31
31
 
@@ -33,7 +33,7 @@ Extract MCP JSON from Studio prompt. Strip line numbers (`1{`). Preserve URLs ex
33
33
 
34
34
  ## Config Rules
35
35
 
36
- Prefer repo-root `opencode.json` (or `.jsonc`). Global (`~/.config/opencode/opencode.json`) only on explicit request. Use `question` tool before editing. Remind to restart OpenCode.
36
+ Prefer `.opencode/opencode.json` (or `.opencode/opencode.jsonc`). Global (`~/.config/opencode/opencode.json`) only on explicit request. Use `question` tool before editing. Remind to restart OpenCode.
37
37
 
38
38
  ## Common Mistakes
39
39
 
@@ -42,7 +42,7 @@ Prefer repo-root `opencode.json` (or `.jsonc`). Global (`~/.config/opencode/open
42
42
  | Rebuilding/normalizing Studio URLs | Preserve pasted URLs exactly |
43
43
  | Omitting setup URL from output | Always print exact returned URL |
44
44
  | Installing separate Agent Skills | Already bundled in this plugin |
45
- | Writing global config by default | Prefer repo-root `opencode.json` |
45
+ | Writing global config by default | Prefer `.opencode/opencode.json` |
46
46
  | Choosing MCP features for user | Studio decides read-only, feature groups |
47
47
  | Calling MCP setup while unauthenticated | Tell user to run `/supabase` first |
48
48
  | Asking user without `question` tool | Always use `question` tool for confirmations, project selection, any interactive choice |
@@ -424,7 +424,7 @@ export async function ensureSupabaseToolAuth(
424
424
  }
425
425
 
426
426
  function createMcpSetupUrl(projectRef: string) {
427
- const url = new URL(`https://supabase.com/dashboard/project/${encodeURIComponent(projectRef)}`);
427
+ const url = new URL(`https://supabase.com/dashboard/project/${projectRef}`);
428
428
  url.searchParams.set("showConnect", "true");
429
429
  url.searchParams.set("connectTab", "mcp");
430
430
  url.searchParams.set("mcpClient", "opencode");