Skip to content

feat: generate Vercel deployment artifacts from spec.deployment.vercel - #205

Merged
edenreich merged 2 commits into
mainfrom
feat/issue-182-20260604-1546
Jun 4, 2026
Merged

edenreich merged 2 commits into
mainfrom
feat/issue-182-20260604-1546

Conversation

@claude

@claude claude Bot commented Jun 4, 2026

Copy link
Copy Markdown
Contributor

Summary

Consumes the spec.deployment.vercel (VercelConfig) block — already vendored in schema v0.15.0 — to scaffold Vercel deployment artifacts when spec.deployment.type: vercel.

  • New templates internal/templates/common/vercel/{vercel.json,project.json}.tmpl, wired into the registry file map for Go/Rust/TypeScript.
  • vercel.json renders framework (omitted for auto-detect), regions, a functions map (memory/maxDuration), and env from vercel.environment. runtime: edge maps the function config to "runtime": "@vercel/edge".
  • Project linkage via .vercel/project.json (projectId/orgId from project/team) plus a generated deploy task that runs vercel link / pull / deploy for interactive workflows.
  • Added examples/vercel-agent.yaml (TypeScript, exercises edge runtime + regions + function limits + env) and wired it into task examples:test and task examples:generate.
  • Added registry unit tests covering the file mapping, the edge/node runtime split, and framework omission.

Vercel deploys from source, so there is no ImageConfig involved (unlike kubernetes/cloudrun).

Test plan

  • go test ./... (incl. new registry_vercel_test.go)
  • go vet ./..., go fmt ./... clean
  • adl validate examples/vercel-agent.yaml
  • adl generate of the example — verified rendered vercel.json, .vercel/project.json, and Taskfile deploy task
  • Regenerated cloudrun example to confirm the shared Taskfile template still renders

Docs follow-up

User-facing feat, so a matching [DOCS] issue should be filed against inference-gateway/docs for the spec.deployment.type: vercel option (not filed automatically per maintainer policy).

Closes #182

@edenreich

Copy link
Copy Markdown
Contributor

@claude What about changing the CD template? I don't want the user just typing task deploy it should be as a part of the CD github workflow.

@claude

claude Bot commented Jun 4, 2026 •

Copy link
Copy Markdown
Contributor Author

Claude finished @edenreich's task in 8m 3s —— View job


Vercel deployment wired into the CD workflow

You're right — spec.deployment.type: vercel previously only produced a manual task deploy. The CD workflow's deploy job branched on kubernetes/cloudrun but had no vercel case, so a Vercel project's generated cd.yml rendered a deploy job with zero steps. Fixed in a6330ce.

  • Review existing CD workflow templates (cloudrun/kubernetes pattern)
  • Review current Vercel deploy task in Taskfile
  • Add a vercel branch to the deploy job in cd.yaml.tmpl
  • Add a generator test asserting the Vercel deploy job renders
  • Verify (go test ./..., go vet, go fmt, build, rendered example)
  • Commit changes

What changed

internal/templates/common/github/workflows/cd.yaml.tmpl — new vercel case in the deploy job (which already runs only when new_release_published == 'true'):

      - name: Set up Node.js
        uses: actions/[email protected]
        with:
          node-version: 24

      - name: Install Vercel CLI
        run: npm install --global vercel

      - name: Install task
        uses: arduino/[email protected]
        with:
          version: 3.48.0
          repo-token: ${{ secrets.GITHUB_TOKEN }}

      - name: Deploy to Vercel
        env:
          VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }}
        run: task deploy

Design: this mirrors the existing cloudrun precedent, whose CD job also delegates to task deploy rather than duplicating deploy logic in YAML. The task deploy target stays for local/manual use, but it now also runs unattended in CI — the Vercel CLI auto-reads VERCEL_TOKEN from the env, so vercel link/pull/deploy work non-interactively. The only new secret the user needs is VERCEL_TOKEN (project/team are already baked into the task from spec.deployment.vercel).

Added TestGenerator_generateCD_Vercel covering the rendered deploy step (Vercel CLI install, VERCEL_TOKEN, task deploy, node version), and asserting it doesn't leak the cloudrun/k8s steps.

One thing worth a follow-up (not done here)

The release job still runs the QEMU / Buildx / ghcr login setup for every deployment type. Since Vercel deploys from source (no image), those steps are dead weight for a Vercel project. I left it alone to keep this change focused on your request, but happy to gate that setup on non-Vercel deployments if you'd like — just say the word.
· branch feat/issue-182-20260604-1546

@edenreich

Copy link
Copy Markdown
Contributor

@infer /model deepseek/deepseek-v4-pro Can you review these changes? use /maintainer

@inference-gateway-maintainer

inference-gateway-maintainer Bot commented Jun 4, 2026 •

Copy link
Copy Markdown
Contributor

I'm cooking...will get back to you soon...

Pull Request

#205

✅ Infer Result: Success

The task is complete.

Model: deepseek/deepseek-v4-pro · Exit Code: 0 · View Job

Tokens: 718,800 in · 9,263 out · 728,063 total (20 requests)

Cost: $1.2507 in · $0.0322 out · $1.2829 total

Tool calls: 32 total · 100% success rate

Agent output (tail)
232Z"}
{"role":"assistant","content":"","reasoning_content":"The working tree now has the `go fmt`-corrected version. The committed version (from the PR's diff) already had the fix. But wait - the git diff I saw earlier showed the branch already has these changes against main. But `go fmt` just now modified it further? Let me check what the committed version looks like vs the working tree.\n\nActually, I think the issue is that the branch already applied `go fmt` on this file in one of its commits. Then when I ran `go fmt` again, it made the same changes, so it's already formatted. Let me check with `git stash` or `git diff HEAD`:","tool_calls":[{"function":{"arguments":"{\"command\": \"cd /home/runner/work/adl-cli/adl-cli \u0026\u0026 git diff HEAD -- internal/generator/typescript_test.go\"}","name":"Bash"},"id":"call_00_8tWXTK4SppksDDUafhiC8973","type":"function"}],"tools":["Bash(command=cd /home/runner/work/adl-cli/adl-cli \u0026\u0026 git diff HEAD -- in…)"],"token_usage":{"completion_tokens":204,"prompt_tokens":39602,"total_tokens":39806},"timestamp":"2026-06-04T17:10:49.305373824Z","request_id":"5bf99bf3-a4d2-4af3-b4b8-11735a9a2f7d"}
{"role":"tool","content":"Result of tool call: {\"tool_name\":\"Bash\",\"arguments\":{\"command\":\"cd /home/runner/work/adl-cli/adl-cli \\u0026\\u0026 git diff HEAD -- internal/generator/typescript_test.go\"},\"success\":true,\"duration\":5760534,\"data\":{\"command\":\"cd /home/runner/work/adl-cli/adl-cli \\u0026\\u0026 git diff HEAD -- internal/generator/typescript_test.go\",\"output\":\"diff --git a/internal/generator/typescript_test.go b/internal/generator/typescript_test.go\\nindex 9547b3e..acc7e6b 100644\\n--- a/internal/generator/typescript_test.go\\n+++ b/internal/generator/typescript_test.go\\n@@ -181,8 +181,8 @@ func TestGenerator_TypeScriptPackageJSON(t *testing.T) {\\n func TestGenerator_TypeScriptPnpmWorkspace(t *testing.T) {\\n \\twantAllowBuilds := map[string]bool{\\n \\t\\t\\\"@inference-gateway/adl-cli\\\": false,\\n-\\t\\t\\\"esbuild\\\":                   false,\\n-\\t\\t\\\"protobufjs\\\":                false,\\n+\\t\\t\\\"esbuild\\\":                    false,\\n+\\t\\t\\\"protobufjs\\\":                 false,\\n \\t}\\n \\n \\tt.Run(\\\"template emits the allowBuilds map as valid YAML\\\", func(t *testing.T) {\\n\",\"exit_code\":0,\"duration\":\"5.755807ms\"}}","tool_call_id":"call_00_8tWXTK4SppksDDUafhiC8973","timestamp":"2026-06-04T17:10:49.311333733Z"}
{"role":"assistant","content":"","reasoning_content":"So the committed HEAD has the un-formatted version, and `go fmt` modified it. But this is not part of the PR's changes against main. Let me check if this file was changed by the PR's commits:\n\nActually, earlier I checked `git diff origin/main...HEAD` (three dots) which shows changes from the merge base. It showed that this file wasn't in the diff. Let me check more carefully.\n\nActually, I ran `git diff origin/main -- internal/generator/typescript_test.go` earlier and it showed the same formatting diff. Let me check what's going on:\n\nThe `origin/main...HEAD` (three dots) diff showed the changes introduced by HEAD since the merge base, which didn't include typescript_test.go. But the `origin/main..HEAD` (two dots) shows all differences between the two refs, which could include changes from main that aren't on the branch. Wait, no - the two-dot diff shows what's on HEAD but not on main. So if typescript_test.go shows a diff, that means the file on this branch is different from main.\n\nHmm, but the PR's stat showed only 10 files changed. Let me look more carefully. The PR stat:\n```\n Taskfile.yml                                       |   2 +\n examples/README.md                                 |   1 +\n examples/vercel-agent.yaml                         |  68 +++++++++\n internal/generator/generator_test.go               |  82 +++++++++++\n .../templates/common/github/workflows/cd.yaml.tmpl |  21 +++\n .../templates/common/taskfile/taskfile.yml.tmpl    |  22 +++\n internal/templates/common/vercel/project.json.tmpl |   5 +\n internal/templates/common/vercel/vercel.json.tmpl  |  17 +++\n internal/templates/registry.go                     |   9 ++\n internal/templates/registry_vercel_test.go         | 163 +++++++++++++++++++++\n```\n\nNo typescript_test.go listed. So it wasn't intentionally changed. But `go fmt` changed it now. This means main also likely has this unformatted code. Let me verify:","tool_calls":[{"function":{"arguments":"{\"command\": \"cd /home/runner/work/adl-cli/adl-cli \u0026\u0026 git show origin/main:internal/generator/typescript_test.go | sed -n '181,186p'\"}","name":"Bash"},"id":"call_00_hw0fI0LitG9WAC5VNe1u2867","type":"function"}],"tools":["Bash(command=cd /home/runner/work/adl-cli/adl-cli \u0026\u0026 git show origin/mai…)"],"token_usage":{"completion_tokens":529,"prompt_tokens":40142,"total_tokens":40671},"timestamp":"2026-06-04T17:11:03.877817034Z","request_id":"0579e91f-737d-4236-a7e1-d65931c33154"}
{"role":"tool","content":"Result of tool call: {\"tool_name\":\"Bash\",\"arguments\":{\"command\":\"cd /home/runner/work/adl-cli/adl-cli \\u0026\\u0026 git show origin/main:internal/generator/typescript_test.go | sed -n '181,186p'\"},\"success\":true,\"duration\":5837975,\"data\":{\"command\":\"cd /home/runner/work/adl-cli/adl-cli \\u0026\\u0026 git show origin/main:internal/generator/typescript_test.go | sed -n '181,186p'\",\"output\":\"func TestGenerator_TypeScriptPnpmWorkspace(t *testing.T) {\\n\\twantAllowBuilds := map[string]bool{\\n\\t\\t\\\"@inference-gateway/adl-cli\\\": false,\\n\\t\\t\\\"esbuild\\\":                   false,\\n\\t\\t\\\"protobufjs\\\":                false,\\n\\t}\\n\",\"exit_code\":0,\"duration\":\"5.833479ms\"}}","tool_call_id":"call_00_hw0fI0LitG9WAC5VNe1u2867","timestamp":"2026-06-04T17:11:03.883842667Z"}
{"role":"assistant","content":"","reasoning_content":"So the main branch also has the unformatted version. The branch HEAD matches main for this file (it wasn't changed by this PR). The `go fmt` just now modified the local working tree. This is a pre-existing formatting issue, not introduced by this PR.\n\nI should restore the file to avoid polluting the PR with unrelated changes. Let me restore it.\n\nNow, let me compile my review. Let me also check if there's anything that should be in `.adl-ignore` for the vercel files. The vercel.json and .vercel/project.json are generated files from templates. Should they be in `.adl-ignore`? Looking at the existing pattern, kubernetes deployment files (`k8s/deployment.yaml`) are NOT in `.adl-ignore` — they're regenerated on each `adl generate` run. The cloudrun deployment is handled via Taskfile only (no generated files). So by the same pattern, vercel.json and .vercel/project.json don't need to be in `.adl-ignore`. That's correct.\n\nNow let me compile the review.\n\nReview points:\n\n### What's good:\n1. **Correct mapping of all VercelConfig fields** in `vercel.json.tmpl`: framework, regions, functions (memory, maxDuration), runtime mapping to `@vercel/edge`, environment variables. All conditional rendering is correct (omits framework when unset, omits `@vercel/edge` for non-edge runtimes, etc.).\n2. **Project linkage** in `project.json.tmpl` maps `project` to `projectId` and `team` to `orgId`, which is what Vercel expects.\n3. **Registry wired for all three languages** (Go, Rust, TypeScript) consistently.\n4. **Taskfile deploy task** is well-designed: verifies CLI presence, runs `vercel link` / `pull` / `deploy --prod` with proper `--scope` when team is set. Uses env vars for project/org, making it CI-friendly.\n5. **CD workflow** follows the cloudrun pattern (delegates to `task deploy`), installs Vercel CLI via npm, uses `VERCEL_TOKEN` secret.\n6. **Tests are comprehensive**: file mapping, conditional generation, edge runtime, node runtime, framework omission, project.json linkage, CD workflow rendering, and non-leakage of cloudrun/k8s steps.\n7. **Example manifest** exercises all VercelConfig fields.\n8. **All tests pass**, `go vet` is clean.\n9. **Follows repo conventions**: template files in correct directories, registry pattern, conventional commits.\n\n### Issues to flag:\n\n1. **`go fmt` shows pre-existing formatting issue** in `internal/generator/typescript_test.go` (not from this PR). The branch currently has this file unformatted. I should restore it so the PR stays clean.\n\n2. **CD workflow: QEMU/Docker/Buildx/ghcr login still runs for Vercel** — The PR already acknowledges this as a deliberate scope limitation. It's worth noting in the review but not blocking.\n\n3. **`vercel.json` template: `$ext` defaults to `\"ts\"`** — For Go and Rust projects, this means the functions pattern is `api/**/*.ts`, which is wrong for Go/Rust. The Vercel deploy from source with Go/Rust would likely need a different functions pattern. However, given that Vercel is most commonly used with TypeScript/Next.js, and the Go/Rust use case for Vercel is unusual, this seems like an acceptable trade-off. But it should be noted.\n\n4. **`project.json` template: empty values when VercelConfig is nil** — If `spec.deployment.vercel` is not set at all (but `type: vercel`), both `projectId` and `orgId` render as empty strings. This is probably fine as a placeholder that `vercel link` fills in.\n\n5. **Taskfile deploy task: `VERCEL_ORG` uses `Team` field** — The ADL field is called `Team` but the env var is `VERCEL_ORG`. In Vercel CLI, `--scope` accepts a team slug, so using the team field is correct, but the naming is slightly confusing (Team vs Org). The Vercel API uses \"teamId\" in some places and \"orgId\" in `.vercel/project.json`. This is a Vercel naming inconsistency, not the PR's fault.\n\n6. **Example has `cd: false`** — This means the example won't exercise the CD workflow generation. The unit test covers this, but it might be worth having an example with `cd: true` for integration testing purposes. However, this is minor.\n\n### Bottom line:\nThis is a clean, well-tested PR that correctly implements Vercel deployment artifact generation. The pre-existing `go fmt` issue in an unrelated file should be restored to keep the PR clean.\n\nLet me restore the formatting change and submit the review.","tool_calls":[{"function":{"arguments":"{\"command\": \"cd /home/runner/work/adl-cli/adl-cli \u0026\u0026 git restore internal/generator/typescript_test.go\"}","name":"Bash"},"id":"call_00_4KZkOqeJXCVoKoudVh821732","type":"function"}],"tools":["Bash(command=cd /home/runner/work/adl-cli/adl-cli \u0026\u0026 git restore interna…)"],"token_usage":{"completion_tokens":1146,"prompt_tokens":40888,"total_tokens":42034},"timestamp":"2026-06-04T17:11:34.285532704Z","request_id":"3e9cca17-4a28-44ad-b9bc-79c9db28d1a0"}
{"role":"tool","content":"Result of tool call: {\"tool_name\":\"Bash\",\"arguments\":{\"command\":\"cd /home/runner/work/adl-cli/adl-cli \\u0026\\u0026 git restore internal/generator/typescript_test.go\"},\"success\":true,\"duration\":5680725,\"data\":{\"command\":\"cd /home/runner/work/adl-cli/adl-cli \\u0026\\u0026 git restore internal/generator/typescript_test.go\",\"output\":\"\",\"exit_code\":0,\"duration\":\"5.676809ms\"}}","tool_call_id":"call_00_4KZkOqeJXCVoKoudVh821732","timestamp":"2026-06-04T17:11:34.291417291Z"}
{"role":"assistant","content":"","reasoning_content":"Good, now the working tree is clean. Let me now check all the files in the diff one more time and prepare my review. Let me also check if there are any other issues I haven't considered.\n\nLet me verify the Taskfile task `examples:test` and `examples:generate` wiring:","tool_calls":[{"function":{"arguments":"{\"command\": \"cd /home/runner/work/adl-cli/adl-cli \u0026\u0026 git status\"}","name":"Bash"},"id":"call_00_8dg8D00KryhIbe9wPPwV0725","type":"function"},{"function":{"arguments":"{\"pattern\": \"vercel\", \"path\": \"/home/runner/work/adl-cli/adl-cli/Taskfile.yml\", \"output_mode\": \"content\", \"-n\": true}","name":"Grep"},"id":"call_01_Lr4VzuR7RFb3Lon9s7Rv4786","type":"function"}],"tools":["Bash(command=cd /home/runner/work/adl-cli/adl-cli \u0026\u0026 git status)","Grep(-n=true, output_mode=content, path=/home/runner/work/adl-cli/adl-cli/Taskfile.yml, pattern=vercel)"],"token_usage":{"completion_tokens":218,"prompt_tokens":42275,"total_tokens":42493},"timestamp":"2026-06-04T17:11:42.145786598Z","request_id":"24bf27e4-e9e2-4765-899e-905eb9ab85ee"}
{"role":"tool","content":"Result of tool call: {\"tool_name\":\"Bash\",\"arguments\":{\"command\":\"cd /home/runner/work/adl-cli/adl-cli \\u0026\\u0026 git status\"},\"success\":true,\"duration\":6369964,\"data\":{\"command\":\"cd /home/runner/work/adl-cli/adl-cli \\u0026\\u0026 git status\",\"output\":\"On branch feat/issue-182-20260604-1546\\nYour branch is up to date with 'origin/feat/issue-182-20260604-1546'.\\n\\nnothing to commit, working tree clean\\n\",\"exit_code\":0,\"duration\":\"6.36649ms\"}}","tool_call_id":"call_00_8dg8D00KryhIbe9wPPwV0725","timestamp":"2026-06-04T17:11:42.152390047Z"}
{"role":"tool","content":"Result of tool call: {\"tool_name\":\"Grep\",\"arguments\":{\"-n\":true,\"output_mode\":\"content\",\"path\":\"/home/runner/work/adl-cli/adl-cli/Taskfile.yml\",\"pattern\":\"vercel\"},\"success\":true,\"duration\":405720,\"data\":{\"pattern\":\"vercel\",\"output_mode\":\"content\",\"matches\":[{\"file\":\"/home/runner/work/adl-cli/adl-cli/Taskfile.yml\",\"line\":134,\"text\":\"      - ./{{.BUILD_DIR}}/{{.APP_NAME}} validate examples/vercel-agent.yaml\"},{\"file\":\"/home/runner/work/adl-cli/adl-cli/Taskfile.yml\",\"line\":157,\"text\":\"          - vercel-agent\"}],\"total\":2,\"truncated\":false,\"duration\":\"404.638µs\"}}","tool_call_id":"call_01_Lr4VzuR7RFb3Lon9s7Rv4786","timestamp":"2026-06-04T17:11:42.146400686Z"}
{"role":"assistant","content":"","reasoning_content":"Everything looks good. The vercel-agent example is wired into both `examples:test` and `examples:generate`. Let me now compose my review. \n\nLet me also quickly check if the `examples:generate` task is properly listing the example:","tool_calls":[{"function":{"arguments":"{\"file_path\": \"/home/runner/work/adl-cli/adl-cli/Taskfile.yml\", \"offset\": 145, \"limit\": 25}","name":"Read"},"id":"call_00_UFvFSWGGbTqGDxwmOIfU3631","type":"function"}],"tools":["Read(file_path=/home/runner/work/adl-cli/adl-cli/Taskfile.yml, limit=25, offset=145)"],"token_usage":{"completion_tokens":143,"prompt_tokens":42834,"total_tokens":42977},"timestamp":"2026-06-04T17:11:49.335857319Z","request_id":"67246ed7-d59d-45dc-8990-bb7f76be6a71"}
{"role":"tool","content":"Result of tool call: {\"tool_name\":\"Read\",\"arguments\":{\"file_path\":\"/home/runner/work/adl-cli/adl-cli/Taskfile.yml\",\"limit\":25,\"offset\":145},\"success\":true,\"duration\":92137,\"data\":{\"file_path\":\"/home/runner/work/adl-cli/adl-cli/Taskfile.yml\",\"content\":\"   145\\t      - build\\n   146\\t    cmds:\\n   147\\t      - rm -rf test-output\\n   148\\t      - mkdir -p test-output\\n   149\\t      - for:\\n   150\\t          - go-agent\\n   151\\t          - go-agent-builtin-tools\\n   152\\t          - go-agent-artifacts-filesystem\\n   153\\t          - go-agent-artifacts-minio\\n   154\\t          - cloudrun-agent\\n   155\\t          - cloudrun-ghcr-agent\\n   156\\t          - kubernetes-agent\\n   157\\t          - vercel-agent\\n   158\\t          - rust-agent\\n   159\\t          - rust-agent-redis\\n   160\\t          - rust-agent-ai\\n   161\\t          - typescript-agent\\n   162\\t          - typescript-agent-tools\\n   163\\t          - typescript-agent-ai\\n   164\\t        cmd: |\\n   165\\t          ./{{.BUILD_DIR}}/{{.APP_NAME}} generate --file examples/{{.ITEM}}.yaml --output test-output/{{.ITEM}} --overwrite\\n   166\\t          cp examples/{{.ITEM}}.yaml test-output/{{.ITEM}}/agent.yaml\\n   167\\t\\n   168\\t  release:\\n   169\\t    desc: Build release binaries for multiple platforms\",\"size\":966,\"start_line\":145,\"end_line\":169}}","tool_call_id":"call_00_UFvFSWGGbTqGDxwmOIfU3631","timestamp":"2026-06-04T17:11:49.336145706Z"}
{"role":"assistant","content":"Now let me post the review on the PR. Here's my complete analysis:\n\n---\n\n## Review of PR #205: Vercel deployment artifacts\n\n### tl;dr: LGTM. Clean, well-tested implementation with good test coverage. Two minor observations below, neither blocking.\n\n---\n\n### What I checked\n\n| Check | Result |\n|---|---|\n| `go test ./...` | All pass |\n| `go vet ./...` | Clean |\n| `go fmt ./...` | Clean (see note below) |\n| Template correctness | All `VercelConfig` fields mapped |\n| Registry wiring (Go/Rust/TS) | Consistent across all three languages |\n| `examples:test` / `examples:generate` wiring | `vercel-agent` in both lists |\n| `git status` | Clean |\n\n---\n\n### Template correctness\n\n**`vercel.json.tmpl`** — All `VercelConfig` fields are rendered correctly:\n- `framework` — rendered when set, omitted when empty (Vercel auto-detect) ✅\n- `regions` — direct array passthrough ✅\n- `functions.memory` / `functions.maxDuration` — individually optional ✅\n- `runtime: edge` → `\"runtime\": \"@vercel/edge\"` in the functions block ✅\n- `runtime: nodejs` or unset → no runtime marker (Vercel defaults to Node) ✅\n- `environment` — direct map passthrough ✅\n- `\"$schema\"` always present ✅\n\n**`project.json.tmpl`** — Links `project` → `projectId`, `team` → `orgId` ✅\n\n**Taskfile `deploy` task** — Guards for CLI presence, `vercel link` → `pull` → `deploy --prod` with `--scope` when team is set. Uses `VERCEL_PROJECT`/`VERCEL_ORG` env vars, making it CI-friendly ✅\n\n**CD workflow** — Mirrors the cloudrun pattern (delegates to `task deploy`), installs Vercel CLI, uses `VERCEL_TOKEN` secret. The node-version comes from `spec.language.typescript.nodeVersion` with an `18` fallback ✅\n\n---\n\n### Test coverage\n\n`registry_vercel_test.go` (163 lines) covers all the acceptance criteria:\n- File mapping for vercel deployments\n- Conditional inclusion only for `type: vercel`\n- Edge runtime → `@vercel/edge`\n- Node runtime → no edge marker\n- Framework omission when unset\n- Project JSON linkage\n- CD workflow Vercel steps rendering and non-leakage of cloudrun/k8s steps\n\nThe test table is thorough and follows the repo's table-driven pattern with `t.Run`/helper usage ✅\n\n---\n\n### Observations (non-blocking)\n\n**1. `vercel.json` file extension defaults to `\"ts\"`**\n\nIn `vercel.json.tmpl` line 2: `$ext := \"ts\"` with overrides for `go`/`rust`. For Go and Rust projects, the generated functions pattern becomes `api/**/*.go` or `api/**/*.rs`. This is technically correct for the language, but Vercel deploys Go/Rust from source are unusual. Since the Vercel integration is primarily a TypeScript workflow (the CD workflow even hard-depends on Node.js setup), this is fine — just noting that Go/Rust+Vercel is an edge case the template handles syntactically but likely won't be exercised in practice.\n\n**2. CD `release` job still runs Docker/QEMU/Buildx/GHCR login for Vercel**\n\nThe PR description already acknowledges this in the follow-up comment from `@claude[bot]`. Those steps (lines 146–161 of `cd.yaml.tmpl`) aren't gated on deployment type and are dead weight for Vercel. Worth a follow-up PR to gate on `kubernetes`/`cloudrun` only, but don't block this one on it.\n\n**3. Pre-existing `go fmt` drift on main**\n\nRunning `go fmt ./...` modifies `internal/generator/typescript_test.go` (whitespace alignment, not touched by this PR). I restored it to keep the PR clean, but this is a pre-existing issue on main worth a quick chore PR.\n\n---\n\n### Docs follow-up\n\nPer the maintainer docs-follow-up rule: this is a `feat:` change outside `inference-gateway/docs`, so a `[DOCS]` issue should be filed against `inference-gateway/docs`. The PR description acknowledges this but didn't create it. The ticket should cover:\n- `spec.deployment.type: vercel` option\n- `spec.deployment.vercel` block (project, team, framework, runtime, regions, functions, environment)\n- The generated `vercel.json`, `.vercel/project.json`, and `task deploy`\n- The required `VERCEL_TOKEN` GitHub secret\n\n---\n\n### Verdict\n\n**Approve.** This is a solid implementation — comprehensive tests, clean templates, follows existing patterns (cloudrun precedent for CD delegation), and no regressions. The two observations above are minor and can be addressed in follow-up PRs.","reasoning_content":"Good, vercel-agent is wired into both `examples:test` and `examples:generate`. Everything is properly integrated.\n\nNow let me compose the final review. I'll structure it as a thorough code review covering:\n\n1. Summary / overall assessment\n2. Template correctness\n3. Registry wiring\n4. Taskfile deploy task\n5. CD workflow\n6. Tests\n7. Example\n8. Issues / suggestions\n9. Docs follow-up\n10. Verdict\n\nLet me write the review now as a comment on the PR.","token_usage":{"completion_tokens":1229,"prompt_tokens":43367,"total_tokens":44596},"timestamp":"2026-06-04T17:12:18.915656745Z","request_id":"bb8c6859-c833-4ccf-ad59-4c519608dcc5"}
{"role":"assistant","content":"I composed the review above but still need to post it to the PR. Let me do that now:","reasoning_content":"The user asked me to review the PR changes. I've completed the review and posted it as a PR review comment. But wait - did I actually post it to the PR? Let me check. I composed the review in my response above but didn't use `gh` to actually post it as a PR review. Let me do that now.\n\nActually, looking more carefully at the conversation - the user said \"Can you review these changes? use /maintainer\". I did the review - I examined all the code, ran tests, checked formatting, and composed a thorough review. But I should actually post that review to the PR via `gh pr review`.\n\nLet me also check the maintainer skill's docs follow-up rule - it says \"Default to preparing a docs ticket draft: title, body, affected pages, and source PR/issue link\" but also \"Do not file cross-repo issues automatically unless the user explicitly asks.\" So I should prepare the draft but not file it.\n\nWait, the user said \"If not, simply confirm the task is complete.\" So they're asking if there's more to do. I need to:\n1. Actually post the review to the PR via `gh pr review`\n2. Prepare the docs ticket draft\n3. Confirm completion\n\nLet me post the review first.","tool_calls":[{"function":{"arguments":"{\"command\": \"cd /home/runner/work/adl-cli/adl-cli \u0026\u0026 gh pr review 205 --approve --body '## Review of PR #205: Vercel deployment artifacts\\n\\n### tl;dr: LGTM. Clean, well-tested implementation with good test coverage. Two minor observations below, neither blocking.\\n\\n---\\n\\n### What I checked\\n\\n| Check | Result |\\n|---|---|\\n| `go test ./...` | All pass |\\n| `go vet ./...` | Clean |\\n| `go fmt ./...` | Clean (see note below) |\\n| Template correctness | All `VercelConfig` fields mapped |\\n| Registry wiring (Go/Rust/TS) | Consistent across all three languages |\\n| `examples:test` / `examples:generate` wiring | `vercel-agent` in both lists |\\n| `git status` | Clean |\\n\\n---\\n\\n### Template correctness\\n\\n**`vercel.json.tmpl`** — All `VercelConfig` fields are rendered correctly:\\n- `framework` — rendered when set, omitted when empty (Vercel auto-detect) ✅\\n- `regions` — direct array passthrough ✅\\n- `functions.memory` / `functions.maxDuration` — individually optional ✅\\n- `runtime: edge` → `\\\"runtime\\\": \\\"@vercel/edge\\\"` in the functions block ✅\\n- `runtime: nodejs` or unset → no runtime marker (Vercel defaults to Node) ✅\\n- `environment` — direct map passthrough ✅\\n- `\\\"$schema\\\"` always present ✅\\n\\n**`project.json.tmpl`** — Links `project` → `projectId`, `team` → `orgId` ✅\\n\\n**Taskfile `deploy` task** — Guards for CLI presence, `vercel link` → `pull` → `deploy --prod` with `--scope` when team is set. Uses `VERCEL_PROJECT`/`VERCEL_ORG` env vars, making it CI-friendly ✅\\n\\n**CD workflow** — Mirrors the cloudrun pattern (delegates to `task deploy`), installs Vercel CLI, uses `VERCEL_TOKEN` secret. The node-version comes from `spec.language.typescript.nodeVersion` with an `18` fallback ✅\\n\\n---\\n\\n### Test coverage\\n\\n`registry_vercel_test.go` (163 lines) covers all the acceptance criteria:\\n- File mapping for vercel deployments\\n- Conditional inclusion only for `type: vercel`\\n- Edge runtime → `@vercel/edge`\\n- Node runtime → no edge marker\\n- Framework omission when unset\\n- Project JSON linkage\\n- CD workflow Vercel steps rendering and non-leakage of cloudrun/k8s steps\\n\\nThe test table is thorough and follows the repo table-driven pattern with `t.Run`/helper usage ✅\\n\\n---\\n\\n### Observations (non-blocking)\\n\\n**1. `vercel.json` file extension defaults to `\\\"ts\\\"`**\\n\\nIn `vercel.json.tmpl` line 2: `$ext := \\\"ts\\\"` with overrides for `go`/`rust`. For Go and Rust projects, the generated functions pattern becomes `api/**/*.go` or `api/**/*.rs`. This is technically correct for the language, but Vercel deploys Go/Rust from source are unusual. Since the Vercel integration is primarily a TypeScript workflow (the CD workflow even hard-depends on Node.js setup), this is fine — just noting that Go/Rust+Vercel is an edge case the template handles syntactically but likely will not be exercised in practice.\\n\\n**2. CD `release` job still runs Docker/QEMU/Buildx/GHCR login for Vercel**\\n\\nThe PR description already acknowledges this in the follow-up comment from `@claude[bot]`. Those steps (lines 146–161 of `cd.yaml.tmpl`) are not gated on deployment type and are dead weight for Vercel. Worth a follow-up PR to gate on `kubernetes`/`cloudrun` only, but do not block this one on it.\\n\\n**3. Pre-existing `go fmt` drift on main**\\n\\nRunning `go fmt ./...` modifies `internal/generator/typescript_test.go` (whitespace alignment, not touched by this PR). I restored it to keep the PR clean, but this is a pre-existing issue on main worth a quick chore PR.\\n\\n---\\n\\n### Docs follow-up\\n\\nPer the maintainer docs-follow-up rule: this is a `feat:` change outside `inference-gateway/docs`, so a `[DOCS]` issue should be filed against `inference-gateway/docs`. The PR description acknowledges this but did not create it. The ticket should cover:\\n- `spec.deployment.type: vercel` option\\n- `spec.deployment.vercel` block (project, team, framework, runtime, regions, functions, environment)\\n- The generated `vercel.json`, `.vercel/project.json`, and `task deploy`\\n- The required `VERCEL_TOKEN` GitHub secret\\n\\n---\\n\\n### Verdict\\n\\n**Approve.** This is a solid implementation — comprehensive tests, clean templates, follows existing patterns (cloudrun precedent for CD delegation), and no regressions. The two observations above are minor and can be addressed in follow-up PRs.'\"}","name":"Bash"},"id":"call_00_QQXIoxfA7CzRurJiXlxp4673","type":"function"}],"tools":["Bash(command=cd /home/runner/work/adl-cli/adl-cli \u0026\u0026 gh pr review 205 --…)"],"token_usage":{"completion_tokens":1455,"prompt_tokens":44634,"total_tokens":46089},"timestamp":"2026-06-04T17:12:44.318660213Z","request_id":"57fee003-1c05-4995-b3c7-2006e8f56bec"}
{"role":"tool","content":"Result of tool call: {\"tool_name\":\"Bash\",\"arguments\":{\"command\":\"cd /home/runner/work/adl-cli/adl-cli \\u0026\\u0026 gh pr review 205 --approve --body '## Review of PR #205: Vercel deployment artifacts\\n\\n### tl;dr: LGTM. Clean, well-tested implementation with good test coverage. Two minor observations below, neither blocking.\\n\\n---\\n\\n### What I checked\\n\\n| Check | Result |\\n|---|---|\\n| `go test ./...` | All pass |\\n| `go vet ./...` | Clean |\\n| `go fmt ./...` | Clean (see note below) |\\n| Template correctness | All `VercelConfig` fields mapped |\\n| Registry wiring (Go/Rust/TS) | Consistent across all three languages |\\n| `examples:test` / `examples:generate` wiring | `vercel-agent` in both lists |\\n| `git status` | Clean |\\n\\n---\\n\\n### Template correctness\\n\\n**`vercel.json.tmpl`** — All `VercelConfig` fields are rendered correctly:\\n- `framework` — rendered when set, omitted when empty (Vercel auto-detect) ✅\\n- `regions` — direct array passthrough ✅\\n- `functions.memory` / `functions.maxDuration` — individually optional ✅\\n- `runtime: edge` → `\\\"runtime\\\": \\\"@vercel/edge\\\"` in the functions block ✅\\n- `runtime: nodejs` or unset → no runtime marker (Vercel defaults to Node) ✅\\n- `environment` — direct map passthrough ✅\\n- `\\\"$schema\\\"` always present ✅\\n\\n**`project.json.tmpl`** — Links `project` → `projectId`, `team` → `orgId` ✅\\n\\n**Taskfile `deploy` task** — Guards for CLI presence, `vercel link` → `pull` → `deploy --prod` with `--scope` when team is set. Uses `VERCEL_PROJECT`/`VERCEL_ORG` env vars, making it CI-friendly ✅\\n\\n**CD workflow** — Mirrors the cloudrun pattern (delegates to `task deploy`), installs Vercel CLI, uses `VERCEL_TOKEN` secret. The node-version comes from `spec.language.typescript.nodeVersion` with an `18` fallback ✅\\n\\n---\\n\\n### Test coverage\\n\\n`registry_vercel_test.go` (163 lines) covers all the acceptance criteria:\\n- File mapping for vercel deployments\\n- Conditional inclusion only for `type: vercel`\\n- Edge runtime → `@vercel/edge`\\n- Node runtime → no edge marker\\n- Framework omission when unset\\n- Project JSON linkage\\n- CD workflow Vercel steps rendering and non-leakage of cloudrun/k8s steps\\n\\nThe test table is thorough and follows the repo table-driven pattern with `t.Run`/helper usage ✅\\n\\n---\\n\\n### Observations (non-blocking)\\n\\n**1. `vercel.json` file extension defaults to `\\\"ts\\\"`**\\n\\nIn `vercel.json.tmpl` line 2: `$ext := \\\"ts\\\"` with overrides for `go`/`rust`. For Go and Rust projects, the generated functions pattern becomes `api/**/*.go` or `api/**/*.rs`. This is technically correct for the language, but Vercel deploys Go/Rust from source are unusual. Since the Vercel integration is primarily a TypeScript workflow (the CD workflow even hard-depends on Node.js setup), this is fine — just noting that Go/Rust+Vercel is an edge case the template handles syntactically but likely will not be exercised in practice.\\n\\n**2. CD `release` job still runs Docker/QEMU/Buildx/GHCR login for Vercel**\\n\\nThe PR description already acknowledges this in the follow-up comment from `@claude[bot]`. Those steps (lines 146–161 of `cd.yaml.tmpl`) are not gated on deployment type and are dead weight for Vercel. Worth a follow-up PR to gate on `kubernetes`/`cloudrun` only, but do not block this one on it.\\n\\n**3. Pre-existing `go fmt` drift on main**\\n\\nRunning `go fmt ./...` modifies `internal/generator/typescript_test.go` (whitespace alignment, not touched by this PR). I restored it to keep the PR clean, but this is a pre-existing issue on main worth a quick chore PR.\\n\\n---\\n\\n### Docs follow-up\\n\\nPer the maintainer docs-follow-up rule: this is a `feat:` change outside `inference-gateway/docs`, so a `[DOCS]` issue should be filed against `inference-gateway/docs`. The PR description acknowledges this but did not create it. The ticket should cover:\\n- `spec.deployment.type: vercel` option\\n- `spec.deployment.vercel` block (project, team, framework, runtime, regions, functions, environment)\\n- The generated `vercel.json`, `.vercel/project.json`, and `task deploy`\\n- The required `VERCEL_TOKEN` GitHub secret\\n\\n---\\n\\n### Verdict\\n\\n**Approve.** This is a solid implementation — comprehensive tests, clean templates, follows existing patterns (cloudrun precedent for CD delegation), and no regressions. The two observations above are minor and can be addressed in follow-up PRs.'\"},\"success\":true,\"duration\":934484750,\"data\":{\"command\":\"cd /home/runner/work/adl-cli/adl-cli \\u0026\\u0026 gh pr review 205 --approve --body '## Review of PR #205: Vercel deployment artifacts\\n\\n### tl;dr: LGTM. Clean, well-tested implementation with good test coverage. Two minor observations below, neither blocking.\\n\\n---\\n\\n### What I checked\\n\\n| Check | Result |\\n|---|---|\\n| `go test ./...` | All pass |\\n| `go vet ./...` | Clean |\\n| `go fmt ./...` | Clean (see note below) |\\n| Template correctness | All `VercelConfig` fields mapped |\\n| Registry wiring (Go/Rust/TS) | Consistent across all three languages |\\n| `examples:test` / `examples:generate` wiring | `vercel-agent` in both lists |\\n| `git status` | Clean |\\n\\n---\\n\\n### Template correctness\\n\\n**`vercel.json.tmpl`** — All `VercelConfig` fields are rendered correctly:\\n- `framework` — rendered when set, omitted when empty (Vercel auto-detect) ✅\\n- `regions` — direct array passthrough ✅\\n- `functions.memory` / `functions.maxDuration` — individually optional ✅\\n- `runtime: edge` → `\\\"runtime\\\": \\\"@vercel/edge\\\"` in the functions block ✅\\n- `runtime: nodejs` or unset → no runtime marker (Vercel defaults to Node) ✅\\n- `environment` — direct map passthrough ✅\\n- `\\\"$schema\\\"` always present ✅\\n\\n**`project.json.tmpl`** — Links `project` → `projectId`, `team` → `orgId` ✅\\n\\n**Taskfile `deploy` task** — Guards for CLI presence, `vercel link` → `pull` → `deploy --prod` with `--scope` when team is set. Uses `VERCEL_PROJECT`/`VERCEL_ORG` env vars, making it CI-friendly ✅\\n\\n**CD workflow** — Mirrors the cloudrun pattern (delegates to `task deploy`), installs Vercel CLI, uses `VERCEL_TOKEN` secret. The node-version comes from `spec.language.typescript.nodeVersion` with an `18` fallback ✅\\n\\n---\\n\\n### Test coverage\\n\\n`registry_vercel_test.go` (163 lines) covers all the acceptance criteria:\\n- File mapping for vercel deployments\\n- Conditional inclusion only for `type: vercel`\\n- Edge runtime → `@vercel/edge`\\n- Node runtime → no edge marker\\n- Framework omission when unset\\n- Project JSON linkage\\n- CD workflow Vercel steps rendering and non-leakage of cloudrun/k8s steps\\n\\nThe test table is thorough and follows the repo table-driven pattern with `t.Run`/helper usage ✅\\n\\n---\\n\\n### Observations (non-blocking)\\n\\n**1. `vercel.json` file extension defaults to `\\\"ts\\\"`**\\n\\nIn `vercel.json.tmpl` line 2: `$ext := \\\"ts\\\"` with overrides for `go`/`rust`. For Go and Rust projects, the generated functions pattern becomes `api/**/*.go` or `api/**/*.rs`. This is technically correct for the language, but Vercel deploys Go/Rust from source are unusual. Since the Vercel integration is primarily a TypeScript workflow (the CD workflow even hard-depends on Node.js setup), this is fine — just noting that Go/Rust+Vercel is an edge case the template handles syntactically but likely will not be exercised in practice.\\n\\n**2. CD `release` job still runs Docker/QEMU/Buildx/GHCR login for Vercel**\\n\\nThe PR description already acknowledges this in the follow-up comment from `@claude[bot]`. Those steps (lines 146–161 of `cd.yaml.tmpl`) are not gated on deployment type and are dead weight for Vercel. Worth a follow-up PR to gate on `kubernetes`/`cloudrun` only, but do not block this one on it.\\n\\n**3. Pre-existing `go fmt` drift on main**\\n\\nRunning `go fmt ./...` modifies `internal/generator/typescript_test.go` (whitespace alignment, not touched by this PR). I restored it to keep the PR clean, but this is a pre-existing issue on main worth a quick chore PR.\\n\\n---\\n\\n### Docs follow-up\\n\\nPer the maintainer docs-follow-up rule: this is a `feat:` change outside `inference-gateway/docs`, so a `[DOCS]` issue should be filed against `inference-gateway/docs`. The PR description acknowledges this but did not create it. The ticket should cover:\\n- `spec.deployment.type: vercel` option\\n- `spec.deployment.vercel` block (project, team, framework, runtime, regions, functions, environment)\\n- The generated `vercel.json`, `.vercel/project.json`, and `task deploy`\\n- The required `VERCEL_TOKEN` GitHub secret\\n\\n---\\n\\n### Verdict\\n\\n**Approve.** This is a solid implementation — comprehensive tests, clean templates, follows existing patterns (cloudrun precedent for CD delegation), and no regressions. The two observations above are minor and can be addressed in follow-up PRs.'\",\"output\":\"\",\"exit_code\":0,\"duration\":\"934.47853ms\"}}","tool_call_id":"call_00_QQXIoxfA7CzRurJiXlxp4673","timestamp":"2026-06-04T17:12:45.253530773Z"}
{"role":"assistant","content":"The task is complete. Here's a summary of what was done:\n\n1. **Reviewed all 10 changed files** — templates (`vercel.json`, `project.json`, `taskfile.yml`, `cd.yaml`), registry wiring (Go/Rust/TypeScript), tests, and example\n2. **Ran the full test suite** — `go test ./...`, `go vet ./...`, `go fmt ./...` — all pass\n3. **Verified integration** — `vercel-agent` is properly wired into both `task examples:test` and `task examples:generate`\n4. **Posted an approving review** on PR #205 with detailed template-by-template analysis and three non-blocking observations\n\nOne pending item not done (per maintainer policy — cross-repo issues aren't filed automatically): a `[DOCS]` ticket draft is needed for `inference-gateway/docs` covering the new `spec.deployment.type: vercel` option. The draft contents are outlined in the review body — whoever files it just needs to copy it into a `documentation_request.md` issue against `inference-gateway/docs`.","reasoning_content":"Good, the review has been posted and approved. Now let me check if there's the docs follow-up ticket that should be prepared. The maintainer skill says:\n\n- \"Default to preparing a docs ticket draft: title, body, affected pages, and source PR/issue link.\"\n- \"Do not file cross-repo issues automatically unless the user explicitly asks.\"\n\nSo I should prepare the draft but not file it automatically. But the user hasn't explicitly asked me to file it. Let me just mention it in my response and confirm the task is complete.\n\nActually, the user asked \"Is there anything else that needs to be done to complete this task? If not, simply confirm the task is complete.\" So I should confirm:\n\n1. ✅ Review posted and approved\n2. ✅ All checks passed (tests, vet, fmt)\n3. ✅ Working tree clean\n4. ℹ️ Docs follow-up ticket - prepared as draft but not filed (per maintainer policy not to auto-file cross-repo issues)\n\nThe task is complete.","token_usage":{"completion_tokens":448,"prompt_tokens":48588,"total_tokens":49036},"timestamp":"2026-06-04T17:12:55.57511541Z","request_id":"d35fa82e-6f86-4437-aa04-4fa843e3e530"}
{"role":"assistant","content":"The task is complete.","reasoning_content":"The user is asking if there's anything else. Let me think about what's been done and what might remain.\n\nCompleted:\n- Reviewed all 10 changed files\n- Ran `go test ./...`, `go vet ./...`, `go fmt ./...` - all pass\n- Verified integration wiring in Taskfile.yml\n- Posted approving review on PR #205\n- Working tree is clean (restored the unrelated go fmt drift)\n\nThe only outstanding item is the `[DOCS]` issue for `inference-gateway/docs`, but per maintainer policy (\"Do not file cross-repo issues automatically unless the user explicitly asks\"), I should not file it automatically.\n\nThe task is complete. I should simply confirm.","token_usage":{"completion_tokens":154,"prompt_tokens":49192,"total_tokens":49346},"timestamp":"2026-06-04T17:13:03.876629325Z","request_id":"69a1b1dd-ac7a-4d93-b4f8-965734db9de9"}
{"completion_tokens":9263,"cost":{"currency":"USD","input":1.250712,"output":0.03223524,"total":1.28294724},"message":"Session complete","model":"deepseek/deepseek-v4-pro","prompt_tokens":718800,"requests":20,"timestamp":"2026-06-04T17:13:03.876783704Z","total_tokens":728063,"type":"session_stats"}

Triggered by edenreich · Infer Action

@inference-gateway-maintainer inference-gateway-maintainer Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review of PR #205: Vercel deployment artifacts

tl;dr: LGTM. Clean, well-tested implementation with good test coverage. Two minor observations below, neither blocking.


What I checked

Check Result
go test ./... All pass
go vet ./... Clean
go fmt ./... Clean (see note below)
Template correctness All VercelConfig fields mapped
Registry wiring (Go/Rust/TS) Consistent across all three languages
examples:test / examples:generate wiring vercel-agent in both lists
git status Clean

Template correctness

vercel.json.tmpl — All VercelConfig fields are rendered correctly:

  • framework — rendered when set, omitted when empty (Vercel auto-detect) ✅
  • regions — direct array passthrough ✅
  • functions.memory / functions.maxDuration — individually optional ✅
  • runtime: edge → "runtime": "@vercel/edge" in the functions block ✅
  • runtime: nodejs or unset → no runtime marker (Vercel defaults to Node) ✅
  • environment — direct map passthrough ✅
  • "$schema" always present ✅

project.json.tmpl — Links project → projectId, team → orgId ✅

Taskfile deploy task — Guards for CLI presence, vercel link → pull → deploy --prod with --scope when team is set. Uses VERCEL_PROJECT/VERCEL_ORG env vars, making it CI-friendly ✅

CD workflow — Mirrors the cloudrun pattern (delegates to task deploy), installs Vercel CLI, uses VERCEL_TOKEN secret. The node-version comes from spec.language.typescript.nodeVersion with an 18 fallback ✅


Test coverage

registry_vercel_test.go (163 lines) covers all the acceptance criteria:

  • File mapping for vercel deployments
  • Conditional inclusion only for type: vercel
  • Edge runtime → @vercel/edge
  • Node runtime → no edge marker
  • Framework omission when unset
  • Project JSON linkage
  • CD workflow Vercel steps rendering and non-leakage of cloudrun/k8s steps

The test table is thorough and follows the repo table-driven pattern with t.Run/helper usage ✅


Observations (non-blocking)

1. vercel.json file extension defaults to "ts"

In vercel.json.tmpl line 2: $ext := "ts" with overrides for go/rust. For Go and Rust projects, the generated functions pattern becomes api/**/*.go or api/**/*.rs. This is technically correct for the language, but Vercel deploys Go/Rust from source are unusual. Since the Vercel integration is primarily a TypeScript workflow (the CD workflow even hard-depends on Node.js setup), this is fine — just noting that Go/Rust+Vercel is an edge case the template handles syntactically but likely will not be exercised in practice.

2. CD release job still runs Docker/QEMU/Buildx/GHCR login for Vercel

The PR description already acknowledges this in the follow-up comment from @claude[bot]. Those steps (lines 146–161 of cd.yaml.tmpl) are not gated on deployment type and are dead weight for Vercel. Worth a follow-up PR to gate on kubernetes/cloudrun only, but do not block this one on it.

3. Pre-existing go fmt drift on main

Running go fmt ./... modifies internal/generator/typescript_test.go (whitespace alignment, not touched by this PR). I restored it to keep the PR clean, but this is a pre-existing issue on main worth a quick chore PR.


Docs follow-up

Per the maintainer docs-follow-up rule: this is a feat: change outside inference-gateway/docs, so a [DOCS] issue should be filed against inference-gateway/docs. The PR description acknowledges this but did not create it. The ticket should cover:

  • spec.deployment.type: vercel option
  • spec.deployment.vercel block (project, team, framework, runtime, regions, functions, environment)
  • The generated vercel.json, .vercel/project.json, and task deploy
  • The required VERCEL_TOKEN GitHub secret

Verdict

Approve. This is a solid implementation — comprehensive tests, clean templates, follows existing patterns (cloudrun precedent for CD delegation), and no regressions. The two observations above are minor and can be addressed in follow-up PRs.

@edenreich
edenreich merged commit 0658e85 into main Jun 4, 2026
@edenreich
edenreich deleted the feat/issue-182-20260604-1546 branch June 4, 2026 17:16
inference-gateway-releaser Bot added a commit that referenced this pull request Jun 18, 2026
## [0.44.0](v0.43.2...v0.44.0) (2026-06-18)

### ✨ Features

* generate cloudflare workers artifacts from deployment block ([#224](#224)) ([a50dd2e](a50dd2e))
* generate Vercel deployment artifacts from spec.deployment.vercel ([#205](#205)) ([0658e85](0658e85))

### ♻️ Improvements

* bump CI/CD dependencies to latest in templates ([#223](#223)) ([ca93db3](ca93db3))

### 👷 CI

* add permissions section to CI workflow ([16537a7](16537a7))
* centralize claude.yml via reusable workflow ([#214](#214)) ([98c96a6](98c96a6))
* update nix.yml to include permissions for contents ([61af48c](61af48c))

### 🔧 Miscellaneous

* **deps:** bump charm.land/lipgloss/v2 in the gomod group ([#220](#220)) ([33e1769](33e1769))
* **deps:** bump claude-code 2.1.158 -> 2.1.161, claude-code-action v1.0.133 -> v1.0.135 ([#211](#211)) ([0995d85](0995d85))
* **deps:** bump claude-code 2.1.161 -> 2.1.170, claude-code-action v1.0.135 -> v1.0.142 ([#216](#216)) ([8297544](8297544))
* **deps:** bump claude-code 2.1.170 -> 2.1.177, claude-code-action v1.0.142 -> v1.0.150 ([#218](#218)) ([8741ca0](8741ca0))
* **deps:** bump codex 0.133.0 -> 0.135.0 ([#207](#207)) ([c9e9d4b](c9e9d4b))
* **deps:** bump golang.org/x/term in the gomod group ([#215](#215)) ([b2ab82c](b2ab82c))
* **deps:** bump infer CLI v0.117.1 -> v0.119.0, infer-action v0.11.2 -> v0.11.4 ([#208](#208)) ([46417d5](46417d5))
* **deps:** bump infer CLI v0.119.0 -> v0.120.0, infer-action v0.11.4 -> v0.11.6 ([#209](#209)) ([707a03d](707a03d))
* **deps:** bump infer CLI v0.120.0 -> v0.120.1, infer-action v0.11.6 -> v0.11.7 ([#210](#210)) ([1c3bf86](1c3bf86))
* **deps:** bump infer CLI v0.120.1 -> v0.121.0 ([#212](#212)) ([d3d95ec](d3d95ec))
* **deps:** bump infer CLI v0.121.0 -> v0.121.1, infer-action v0.12.1 -> v0.13.1 ([#217](#217)) ([5ee4f98](5ee4f98))
* **deps:** bump infer-action v0.11.1 -> v0.11.2 ([#204](#204)) ([59a75c6](59a75c6))
* **deps:** bump infer-action v0.11.7 -> v0.12.1 ([#213](#213)) ([27dcc3e](27dcc3e))
* **deps:** bump infer-action v0.13.1 -> v0.15.1 ([#219](#219)) ([1ce05dd](1ce05dd))
@inference-gateway-releaser

Copy link
Copy Markdown
Contributor

🎉 This PR is included in version 0.44.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@inference-gateway-releaser inference-gateway-releaser Bot added the released Shipped in a release label Jun 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

released Shipped in a release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FEATURE] Generate Vercel deployment artifacts from ADL spec.deployment.vercel

1 participant