You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(cli): Align init scaffold with example Nitro app (#749)
`junior init` now emits the same core Nitro app shape that
`apps/example` exercises: direct `nitro dev`/`nitro build` scripts,
explicit `plugins.ts` wiring into `createApp({ plugins })`, current
Nitro-related dependency versions, and `tsconfig.json`. It no longer
generates the stale Vite scaffold or top-level
`/api/internal/agent/continue.ts` source, and the generated env/CI
templates include the database variables and install flow a fresh app
actually needs.
The init unit test now uses `apps/example` as a canary for core scripts,
dependencies, `vercel.json`, Nitro config, server wiring, and TypeScript
config so future drift fails deterministically. The setup docs and
README snippets now match that generated shape.
Validation:
- `pnpm --filter @sentry/junior exec vitest run
tests/unit/cli/init-cli.test.ts`
- `pnpm docs:check`
- Garfield review pass
Co-authored-by: GPT-5 Codex <codex@openai.com>
Copy file name to clipboardExpand all lines: packages/docs/src/content/docs/start-here/quickstart.md
+15-7Lines changed: 15 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -321,6 +321,7 @@ Use the same baseline that the scaffolded CI workflow uses:
321
321
322
322
- Node.js 24
323
323
- pnpm
324
+
- A Postgres database for Junior SQL records and the default memory plugin
324
325
- A Redis URL for runtime state, locks, and durable task records
325
326
326
327
Slack credentials are needed before the bot can reply in Slack. You can scaffold and verify the local health route first, then finish [Slack App Setup](/start-here/slack-app-setup/).
@@ -335,7 +336,7 @@ cd my-bot
335
336
pnpm install
336
337
```
337
338
338
-
`junior init` creates the app entrypoint, Nitro/Vite config, Vercel config, Vercel queue consumer source, CI workflow, app context files, local plugin and skill directories, `.env.example`, and a `plugins.ts` with maintenance and memory enabled by default.
339
+
`junior init` creates the app entrypoint, Nitro config, Vercel config, TypeScript config, CI workflow, app context files, local plugin and skill directories, `.env.example`, and a `plugins.ts` with maintenance and memory enabled by default.
339
340
340
341
The generated `app/` files have separate jobs:
341
342
@@ -363,6 +364,8 @@ Set these values before running real turns:
0 commit comments