Skip to content

feat(cli): port functions new#5680

Merged
Coly010 merged 3 commits into
supabase:developfrom
7ttp:feat/new-port
Jun 24, 2026
Merged

feat(cli): port functions new#5680
Coly010 merged 3 commits into
supabase:developfrom
7ttp:feat/new-port

Conversation

@7ttp

@7ttp 7ttp commented Jun 24, 2026

Copy link
Copy Markdown
Contributor

TL;DR

Ports supabase functions new to the native ts

Whats Introduced?

This replaces the proxy-backed functions new path with a native legacy TypeScript implementation
that preserves the command’s local scaffolding flow, including auth specific templates,
supabase/config.toml updates, first function IDE setup prompts

w integration coverage around the main paths and edge cases...

Ref

  • towards CLI-1319

@7ttp 7ttp requested a review from a team as a code owner June 24, 2026 10:41
@chatgpt-codex-connector

Copy link
Copy Markdown

Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits.
Credits must be used to enable repository wide code reviews.

@7ttp 7ttp self-assigned this Jun 24, 2026
@Coly010 Coly010 self-assigned this Jun 24, 2026
Address code review on the functions new port:

- Gate IDE settings scaffolding on text mode so json/stream-json runs
  stay payload-only and never write .vscode/.idea as an undisclosed
  side effect.
- Append the [functions.<slug>] section with O_APPEND semantics
  (flag: "a") instead of read-then-rewrite, matching Go's appendConfigFile
  and removing the truncation risk on a partial write.
- Move IDE write-error mapping into new.errors.ts as a path-parameterized
  helper, fixing the hardcoded .vscode path on IntelliJ failures.
- Match Go's non-TTY prompt bytes (trailing space) and document the
  raw-text vs parsed-config declaration scan divergence.
- Add a config.toml write-failure test and flip the json-mode test to
  assert no IDE files are written.
@Coly010 Coly010 added this pull request to the merge queue Jun 24, 2026
Merged via the queue into supabase:develop with commit 1712f9d Jun 24, 2026
19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants